From 6401f49f93e5c0454613fa730d99419ea5a19f8e Mon Sep 17 00:00:00 2001 From: nithinjohn22 Date: Thu, 26 Dec 2024 13:27:14 +0530 Subject: [PATCH] FIX: url filtering issue in block listing --- blocks/build/index.css | 889 ++++++++++++- blocks/build/index.css.map | 1 + blocks/build/index.js | 1149 ++++++++++++++++- blocks/build/index.js.map | 1 + blocks/build/style-index.css | 776 ++++++++++- blocks/build/style-index.css.map | 1 + blocks/build/view.asset.php | 2 +- blocks/build/view.js | 7 +- blocks/build/view.js.map | 2 +- blocks/src/view.js | 7 +- .../block-files/block-job-openings-view.php | 3 +- 11 files changed, 2825 insertions(+), 13 deletions(-) create mode 100644 blocks/build/index.css.map create mode 100644 blocks/build/index.js.map create mode 100644 blocks/build/style-index.css.map diff --git a/blocks/build/index.css b/blocks/build/index.css index 7389c985..f44703ba 100644 --- a/blocks/build/index.css +++ b/blocks/build/index.css @@ -1 +1,888 @@ -.wp-block-create-block-wjo-block{border:1px dotted red}.awsm-b-row{display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex;display:flexbox;-webkit-flex-flow:row wrap;margin:0 -15px;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap}.awsm-b-row,.awsm-b-row *,.awsm-b-row :after,.awsm-b-row :before{-webkit-box-sizing:border-box;box-sizing:border-box}.awsm-b-grid-item{display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex;float:left;padding:0 15px!important;width:33.333%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-flex-direction:column}.awsm-b-grid-col-4 .awsm-b-grid-item{width:25%}.awsm-b-grid-col-2 .awsm-b-grid-item{width:50%}.awsm-b-grid-col .awsm-b-grid-item{width:100%}.awsm-b-job-hide{display:none!important}.awsm-job-show{display:block!important}.awsm-b-job-item{background:#fff;font-size:14px;padding:20px}a.awsm-b-job-item{text-decoration:none!important}.awsm-b-grid-item .awsm-b-job-item{border:1px solid #dddfe3;border-radius:2px;-webkit-box-shadow:0 1px 4px 0 rgba(0,0,0,.05);box-shadow:0 1px 4px 0 rgba(0,0,0,.05);display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex;margin-bottom:30px;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-flex-direction:column;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-webkit-flex-grow:1;-webkit-transition:all .3s ease;transition:all .3s ease}.awsm-b-grid-item .awsm-b-job-item:focus,.awsm-b-grid-item .awsm-b-job-item:hover{-webkit-box-shadow:0 3px 15px -5px rgba(0,0,0,.2);box-shadow:0 3px 15px -5px rgba(0,0,0,.2)}.awsm-b-grid-item .awsm-job-featured-image{margin-bottom:14px}.awsm-b-job-item h2.awsm-b-job-post-title{font-size:18px;margin:0 0 15px;text-align:left}.awsm-b-job-item h2.awsm-b-job-post-title a{font-size:18px}.awsm-b-grid-item .awsm-job-info{margin-bottom:10px;min-height:83px}.awsm-b-grid-item .awsm-job-info p{margin:0 0 8px}.awsm-b-job-wrap:after{clear:both;content:"";display:table}.awsm-b-filter-wrap,.awsm-b-filter-wrap *{-webkit-box-sizing:border-box;box-sizing:border-box}.awsm-b-filter-wrap{margin:0 -10px 20px}.awsm-b-filter-wrap form{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.awsm-b-filter-wrap.awsm-b-full-width-search-filter-wrap .awsm-b-filter-item-search{width:100%}.awsm-b-filter-toggle{border:1px solid #ccc;border-radius:4px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:wrap;-ms-flex-flow:wrap;flex-flow:wrap;margin:0 10px 10px;outline:none!important;padding:12px;width:46px}.awsm-b-filter-toggle.awsm-on{background:#ccc}.awsm-b-filter-toggle svg{height:20px;width:20px}@media(min-width:768px){.awsm-b-filter-wrap .awsm-b-filter-items{display:-webkit-box!important;display:-webkit-flex!important;display:-ms-flexbox!important;display:flex!important;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;width:calc(100% - 250px)}.awsm-b-filter-toggle{display:none}.awsm-b-filter-item-search{width:250px}}.awsm-b-filter-wrap .awsm-b-filter-item{padding:0 10px 10px}.awsm-b-filter-item-search{padding:0 10px 10px;position:relative}.awsm-b-filter-wrap .awsm-b-filter-item .awsm-b-job-form-control{min-height:48px;padding-right:58px}.awsm-b-filter-item-search .awsm-b-job-form-control{min-height:48px;padding-right:48px}.awsm-b-filter-item-search-in{position:relative}.awsm-b-filter-item-search .awsm-b-job-search-icon-wrapper{color:#ccc;cursor:pointer;font-size:16px;height:100%;line-height:48px;position:absolute;right:0;text-align:center;top:0;width:48px}.awsm-b-jobs-none-container{padding:25px}.awsm-b-jobs-none-container p{margin:0;padding:5px}.awsm-b-row .awsm-b-jobs-pagination{padding:0 15px;width:100%}.awsm-b-jobs-pagination{float:left;width:100%}.awsm-b-load-more-main a.awsm-load-more,.awsm-load-more-classic a.page-numbers{background:#fff;border:1px solid #dddfe3;-webkit-box-shadow:0 1px 4px 0 rgba(0,0,0,.05);box-shadow:0 1px 4px 0 rgba(0,0,0,.05);display:block;margin:0!important;outline:none!important;padding:20px;text-align:center;text-decoration:none!important;-webkit-transition:all .3s ease;transition:all .3s ease}.awsm-load-more-classic a.page-numbers,.awsm-load-more-classic span.page-numbers{font-size:90%;padding:5px 10px}.awsm-load-more-classic{text-align:center}.awsm-b-load-more-main a.awsm-load-more:focus,.awsm-b-load-more-main a.awsm-load-more:hover,.awsm-load-more-classic a.page-numbers:focus,.awsm-load-more-classic a.page-numbers:hover{-webkit-box-shadow:0 3px 15px -5px rgba(0,0,0,.2);box-shadow:0 3px 15px -5px rgba(0,0,0,.2)}.awsm-b-jobs-pagination.awsm-load-more-classic ul{list-style:none;margin:0;padding:0}.awsm-b-jobs-pagination.awsm-load-more-classic ul li{display:inline-block}.awsm-b-lists{border:1px solid #ededed}.awsm-b-list-item{width:100%}.awsm-b-list-item h2.awsm-job-b-post-title{margin-bottom:0}.awsm-b-list-item .awsm-job-featured-image{float:left;margin-right:10px}.awsm-b-list-item .awsm-job-featured-image img{height:50px;width:50px}.awsm-b-list-item .awsm-b-job-item{border-bottom:1px solid rgba(0,0,0,.13)}.awsm-b-list-item .awsm-b-job-item:after{clear:both;content:"";display:table}.awsm-b-list-left-col{float:left;width:50%}.awsm-b-list-right-col{float:left;text-align:right;width:50%}.awsm-b-list-item .awsm-job-specification-wrapper{display:inline-block;vertical-align:middle}.awsm-b-list-item .awsm-job-specification-item{display:inline-block;margin:0 15px 0 0;vertical-align:middle}a.awsm-b-job-item .awsm-job-specification-item{color:#4c4c4c}.awsm-b-list-item .awsm-job-more-container{display:inline-block;vertical-align:middle}.awsm-job-more-container .awsm-job-more span:before{content:"→"}.awsm-b-lists .awsm-b-jobs-pagination{margin-top:30px}.awsm-job-specification-item>[class^=awsm-job-icon-]{margin-right:6px}.awsm-job-specification-term:after{content:", "}.awsm-job-specification-term:last-child:after{content:""}.awsm-job-single-wrap,.awsm-job-single-wrap *,.awsm-job-single-wrap :after,.awsm-job-single-wrap :before{-webkit-box-sizing:border-box;box-sizing:border-box}.awsm-job-single-wrap{margin-bottom:1.3em}.awsm-job-single-wrap:after{clear:both;content:"";display:table}.awsm-job-content{padding-bottom:32px}.awsm-job-single-wrap.awsm-col-2 .awsm-job-content{float:left;padding-right:15px;width:55%}.awsm-job-single-wrap.awsm-col-2 .awsm-job-form{float:left;padding-left:15px;width:45%}.awsm-job-head,.awsm_job_spec_above_content{margin-bottom:20px}.awsm-job-head h1{margin:0 0 20px}.awsm-job-list-info span{margin-right:10px}.awsm-job-single-wrap .awsm-job-expiration-label{font-weight:700}.awsm-job-form-inner{background:#fff;border:1px solid #dddfe3;padding:35px}.awsm-job-form-inner h2{margin:0 0 30px}.awsm-job-form-group{margin-bottom:20px}.awsm-job-form-group input[type=checkbox],.awsm-job-form-group input[type=radio]{margin-right:5px}.awsm-job-form-group label{display:block;margin-bottom:10px}.awsm-job-form-options-container label,.awsm-job-inline-group label{display:inline;font-weight:400}.awsm-b-job-form-control{display:block;width:100%}.awsm-job-form-options-container span{display:inline-block;margin-bottom:10px;margin-left:10px}.awsm-job-submit{background:#0195ff;border:1px solid #0195ff;color:#fff;padding:10px 30px}.awsm-job-submit:focus,.awsm-job-submit:hover{background:rgba(0,0,0,0);color:#0195ff}.awsm-job-form-error{color:#db4c4c;font-weight:500}.awsm-b-job-form-control.awsm-job-form-error,.awsm-b-job-form-control.awsm-job-form-error:focus{border:1px solid #db4c4c}.awsm-error-message,.awsm-success-message{padding:12px 25px}.awsm-error-message p:empty,.awsm-success-message p:empty{display:none}.awsm-error-message p,.awsm-success-message p{margin:0!important;padding:0!important}.awsm-success-message{border:1px solid #1ea508}.awsm-error-message{border:1px solid #db4c4c}ul.awsm-error-message li{line-height:1.8em;margin-left:1.2em}.awsm-expired-message{padding:25px}.awsm-expired-message p{margin:1em 0}.awsm-job-container{margin:0 auto;max-width:1170px;padding:50px 0;width:100%}.awsm-jobs-loading{position:relative}.awsm-b-job-listings:after{content:"";height:100%;left:0;opacity:0;position:absolute;top:0;-webkit-transition:all .3s ease;transition:all .3s ease;visibility:hidden;width:100%}.awsm-b-job-listings.awsm-jobs-loading:after{opacity:1;visibility:visible}.awsm-b-filter-wrap .awsm-b-filter-items{display:none}.awsm-b-filter-wrap.awsm-b-full-width-search-filter-wrap .awsm-b-filter-items,.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-items{width:100%}@media(min-width:768px){.awsm-b-filter-wrap .awsm-b-filter-items{display:-webkit-box!important;display:-webkit-flex!important;display:-ms-flexbox!important;display:flex!important;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;width:calc(100% - 250px)}.awsm-filter-toggle{display:none}.awsm-b-filter-item-search{width:250px}}@media(max-width:768px){.awsm-b-filter-wrap .awsm-b-filter-items{width:100%}.awsm-b-filter-item-search{width:calc(100% - 66px)}.awsm-b-filter-wrap .awsm-b-filter-item .awsm-selectric-wrapper{min-width:100%}}.awsm-b-sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border:0}@media(max-width:1024px){.awsm-b-grid-col-4 .awsm-b-grid-item{width:33.333%}}@media(max-width:992px){.awsm-job-single-wrap.awsm-col-2 .awsm-job-content{padding-right:0;width:100%}.awsm-job-single-wrap.awsm-col-2 .awsm-job-form{padding-left:0;width:100%}}@media(max-width:768px){.awsm-b-grid-col-3 .awsm-b-grid-item,.awsm-b-grid-col-4 .awsm-b-grid-item,.awsm-b-grid-item{width:50%}.awsm-b-list-left-col{padding-bottom:10px;width:100%}.awsm-b-list-right-col{text-align:left;width:100%}}@media(max-width:648px){.awsm-b-grid-col-2 .awsm-b-grid-item,.awsm-b-grid-col-3 .awsm-b-grid-item,.awsm-b-grid-col-4 .awsm-b-grid-item,.awsm-b-grid-item{width:100%}.awsm-b-list-item .awsm-job-specification-wrapper{display:block;float:none;padding-bottom:5px}.awsm-b-list-item .awsm-job-more-container{display:block;float:none}}.awsm-job-form-plugin-style .awsm-b-job-form-control{border:1px solid #ccc;border-radius:4px;color:#060606;display:block;font:inherit;line-height:1;min-height:46px;padding:8px 15px;-webkit-transition:all .3s ease;transition:all .3s ease;width:100%}.awsm-job-form-plugin-style .awsm-b-job-form-control:focus{border-color:#060606;-webkit-box-shadow:none;box-shadow:none;outline:none}.awsm-job-form-plugin-style .awsm-b-job-form-control.awsm-job-form-error{border-color:#db4c4c}.awsm-job-form-plugin-style textarea.awsm-b-job-form-control{min-height:80px}.awsm-job-form-plugin-style .awsm-application-submit-btn,.awsm-job-form-plugin-style .awsm-jobs-primary-button{background:#060606;border-radius:45px;color:#fff;padding:16px 32px;-webkit-transition:all .3s ease;transition:all .3s ease}.awsm-job-form-plugin-style .awsm-application-submit-btn:focus,.awsm-job-form-plugin-style .awsm-application-submit-btn:hover,.awsm-job-form-plugin-style .awsm-jobs-primary-button:focus,.awsm-job-form-plugin-style .awsm-jobs-primary-button:hover{background:#060606;color:#fff;outline:none}.awsm-job-form-plugin-style .awsm-jobs-primary-button{cursor:pointer}.awsm-job-form-plugin-style .awsm-jobs-primary-button:disabled{opacity:.5;pointer-events:none}.awsm-job-form-plugin-style .awsm-selectric{border-color:#ccc;border-radius:4px;-webkit-box-shadow:none;box-shadow:none}.awsm-job-form-plugin-style .awsm-selectric-open .awsm-selectric{border-color:#060606}.awsm-job-form-plugin-style .awsm-selectric .label{margin-left:15px}.awsm-jobs-is-block-theme .site-branding{padding:0 2.1rem}.awsm-jobs-is-block-theme .site-content{padding:0 2.1rem 3rem}.awsm-jobs-is-block-theme .site-title{margin-bottom:0}.awsm-b-filter-admin label.awsm-b-sr-only{-moz-appearance:none;-webkit-appearance:none;appearance:none;background:#fff url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTAuNDE1OTc5OHB4IiBoZWlnaHQ9IjUuMjA3OTg5OTFweCIgdmlld0JveD0iMCAwIDEwLjQxNTk3OTggNS4yMDc5ODk5MSIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KICAgIDx0aXRsZT5QYXRoPC90aXRsZT4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwb2x5Z29uIGlkPSJQYXRoIiBzdHJva2U9IiMwMDAwMDAiIGZpbGw9IiMwMDAwMDAiIHBvaW50cz0iMS4yOTMxODUxNSAwLjUgOS4yOTMxODUxNSAwLjUgNS42OTI2NDEzIDQuNSI+PC9wb2x5Z29uPgogICAgPC9nPgo8L3N2Zz4=) no-repeat;background-position:right 10px top 50%;border:1px solid #dddfe3;-webkit-box-shadow:0 1px 4px 0 rgba(0,0,0,.05);box-shadow:0 1px 4px 0 rgba(0,0,0,.05);color:#444;font-size:14px;font-size:12px;height:46px;line-height:46px;min-width:160px;overflow:hidden;padding:15px 50px 15px 15px;position:relative;text-overflow:ellipsis;white-space:nowrap}.awsm-b-filter-admin .awsm-b-filter-option{display:none!important}.awsm-b-job-icon-search:before{content:""}.awsm-b-job-icon-close-circle:before{color:#a6a6a6;content:""}.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-items,.awsm-b-filter-wrap.awsm-full-width-search-filter-wrap .awsm-b-filter-items{width:100%}.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-toggle{width:100%;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;text-decoration:none}.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-toggle svg{height:22px;width:22px}.awsm-b-filter-wrap.awsm-b-full-width-search-filter-wrap.awsm-b-jobs-alerts-on .awsm-b-filter-items,.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap.awsm-b-jobs-alerts-on .awsm-b-filter-items{width:calc(100% - 80px)}.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap.awsm-b-jobs-alerts-on .awsm-b-filter-toggle{width:calc(100% - 100px)}@media(max-width:767px){.awsm-b-jobs-alerts-on .awsm-b-filter-item-search{width:calc(100% - 146px)}}@media(min-width:768px){.awsm-b-filter-wrap.awsm-b-jobs-alerts-on .awsm-b-filter-items{width:calc(100% - 330px);-webkit-box-ordinal-group:3;-webkit-order:2;-ms-flex-order:2;order:2}.awsm-jobs-alerts-popup-trigger-btn{-webkit-box-ordinal-group:4;-webkit-order:3;-ms-flex-order:3;order:3}}.awsm-b-job-wrap,.awsm-b-job-wrap *{-webkit-box-sizing:border-box;box-sizing:border-box} +/*!****************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/editor.scss ***! + \****************************************************************************************************************************************************************************************************************************************/ +@charset "UTF-8"; +/** + * The following styles get applied inside the editor only. + * + * Replace them with your own styles or remove the file completely. + */ +.wp-block-create-block-wjo-block { + border: 1px dotted #f00; +} + +/** + * Editor styles. + * + */ +.awsm-b-row { + margin: 0 -15px; + display: -webkit-box; + display: -ms-flexbox; + display: -webkit-flex; + display: flex; + display: flexbox; + -webkit-flex-flow: row wrap; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + -ms-flex-flow: row wrap; + flex-flow: row wrap; +} + +.awsm-b-row, +.awsm-b-row *, +.awsm-b-row *::before, +.awsm-b-row *::after { + -webkit-box-sizing: border-box; + box-sizing: border-box; +} + +.awsm-b-grid-item { + float: left; + width: 33.333%; + padding: 0 15px !important; + display: -webkit-box; + display: -ms-flexbox; + display: -webkit-flex; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + -webkit-flex-direction: column; +} + +.awsm-b-grid-col-4 .awsm-b-grid-item { + width: 25%; +} + +.awsm-b-grid-col-2 .awsm-b-grid-item { + width: 50%; +} + +.awsm-b-grid-col .awsm-b-grid-item { + width: 100%; +} + +.awsm-b-job-hide { + display: none !important; +} + +.awsm-job-show { + display: block !important; +} + +.awsm-b-job-item { + background: #fff; + padding: 20px; + font-size: 14px; +} + +a.awsm-b-job-item { + text-decoration: none !important; +} + +.awsm-b-grid-item .awsm-b-job-item { + margin-bottom: 30px; + -webkit-box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05); + box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05); + border: 1px solid #dddfe3; + border-radius: 2px; + display: -webkit-box; + display: -ms-flexbox; + display: -webkit-flex; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + -webkit-flex-direction: column; + -webkit-box-flex: 1; + -ms-flex-positive: 1; + flex-grow: 1; + -webkit-flex-grow: 1; + -webkit-transition: all 0.3s ease; + transition: all 0.3s ease; +} + +.awsm-b-grid-item .awsm-b-job-item:hover, +.awsm-b-grid-item .awsm-b-job-item:focus { + -webkit-box-shadow: 0 3px 15px -5px rgba(0, 0, 0, 0.2); + box-shadow: 0 3px 15px -5px rgba(0, 0, 0, 0.2); +} + +.awsm-b-grid-item .awsm-job-featured-image { + margin-bottom: 14px; +} + +.awsm-b-job-item h2.awsm-b-job-post-title { + margin: 0 0 15px; + font-size: 18px; + text-align: left; +} + +.awsm-b-job-item h2.awsm-b-job-post-title a { + font-size: 18px; +} + +.awsm-b-grid-item .awsm-job-info { + min-height: 83px; + margin-bottom: 10px; +} + +.awsm-b-grid-item .awsm-job-info p { + margin: 0 0 8px; +} + +.awsm-b-job-wrap::after { + clear: both; + content: ""; + display: table; +} + +.awsm-b-filter-wrap, +.awsm-b-filter-wrap * { + -webkit-box-sizing: border-box; + box-sizing: border-box; +} + +.awsm-b-filter-wrap { + margin: 0 -10px 20px; +} + +.awsm-b-filter-wrap form { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-wrap: wrap; + -ms-flex-wrap: wrap; + flex-wrap: wrap; +} + +.awsm-b-filter-wrap .awsm-b-filter-items { + display: none; +} + +.awsm-b-filter-wrap.awsm-b-full-width-search-filter-wrap .awsm-b-filter-item-search { + width: 100%; +} + +.awsm-b-filter-wrap.awsm-b-full-width-search-filter-wrap .awsm-b-filter-items, +.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-items { + width: 100%; +} + +.awsm-b-filter-toggle { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-flow: wrap; + -ms-flex-flow: wrap; + flex-flow: wrap; + width: 46px; + padding: 12px; + border: 1px solid #ccc; + margin: 0 10px 10px; + border-radius: 4px; + outline: none !important; +} + +.awsm-b-filter-toggle.awsm-on { + background: #ccc; +} + +.awsm-b-filter-toggle svg { + width: 20px; + height: 20px; +} + +.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-toggle { + width: 100%; + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; + text-decoration: none; +} + +.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-toggle svg { + width: 22px; + height: 22px; +} + +@media (min-width: 768px) { + .awsm-b-filter-wrap .awsm-b-filter-items { + display: -webkit-box !important; + display: -webkit-flex !important; + display: -ms-flexbox !important; + display: flex !important; + -webkit-flex-wrap: wrap; + -ms-flex-wrap: wrap; + flex-wrap: wrap; + width: calc(100% - 250px); + } + .awsm-b-filter-toggle { + display: none; + } + .awsm-b-filter-item-search { + width: 250px; + } +} +.awsm-b-filter-wrap .awsm-b-filter-item { + /* display: inline-block; */ + padding: 0 10px 10px; + /* vertical-align: top; */ +} + +.awsm-b-filter-item-search { + position: relative; + padding: 0 10px 10px; +} + +@media (max-width: 768px) { + .awsm-b-filter-wrap .awsm-b-filter-items { + width: 100%; + } + .awsm-b-filter-item-search { + width: calc(100% - 66px); + } + .awsm-b-filter-wrap .awsm-b-filter-item .awsm-selectric-wrapper { + min-width: 100%; + } +} +.awsm-b-filter-wrap .awsm-b-filter-item .awsm-b-job-form-control { + min-height: 48px; + padding-right: 58px; +} + +.awsm-b-filter-item-search .awsm-b-job-form-control { + padding-right: 48px; + min-height: 48px; +} + +.awsm-b-filter-item-search-in { + position: relative; +} + +.awsm-b-filter-item-search .awsm-b-job-search-icon-wrapper { + position: absolute; + right: 0; + top: 0; + width: 48px; + height: 100%; + font-size: 16px; + color: #ccc; + line-height: 48px; + text-align: center; + cursor: pointer; +} + +.awsm-b-jobs-none-container { + padding: 25px; +} + +.awsm-b-jobs-none-container p { + margin: 0; + padding: 5px; +} + +.awsm-b-row .awsm-b-jobs-pagination { + padding: 0 15px; + width: 100%; +} + +.awsm-b-jobs-pagination { + float: left; + width: 100%; +} + +.awsm-b-load-more-main a.awsm-load-more, .awsm-load-more-classic a.page-numbers { + display: block; + text-align: center; + padding: 20px; + background: #fff; + -webkit-box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05); + box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05); + border: 1px solid #dddfe3; + margin: 0 !important; + text-decoration: none !important; + outline: none !important; + -webkit-transition: all 0.3s ease; + transition: all 0.3s ease; +} + +.awsm-load-more-classic a.page-numbers, .awsm-load-more-classic span.page-numbers { + padding: 5px 10px; + font-size: 90%; +} + +.awsm-load-more-classic { + text-align: center; +} + +.awsm-b-load-more-main a.awsm-load-more:hover, +.awsm-b-load-more-main a.awsm-load-more:focus, +.awsm-load-more-classic a.page-numbers:hover, +.awsm-load-more-classic a.page-numbers:focus { + -webkit-box-shadow: 0 3px 15px -5px rgba(0, 0, 0, 0.2); + box-shadow: 0 3px 15px -5px rgba(0, 0, 0, 0.2); +} + +.awsm-b-jobs-pagination.awsm-load-more-classic ul { + list-style: none; + margin: 0; + padding: 0; +} + +.awsm-b-jobs-pagination.awsm-load-more-classic ul li { + display: inline-block; +} + +/*---- List ----*/ +.awsm-b-lists { + border: 1px solid #ededed; +} + +.awsm-b-list-item { + width: 100%; +} + +.awsm-b-list-item h2.awsm-job-b-post-title { + margin-bottom: 0; +} + +.awsm-b-list-item .awsm-job-featured-image { + float: left; + margin-right: 10px; +} + +.awsm-b-list-item .awsm-job-featured-image img { + width: 50px; + height: 50px; +} + +.awsm-b-list-item .awsm-b-job-item { + border-bottom: 1px solid rgba(0, 0, 0, 0.13); +} + +.awsm-b-list-item .awsm-b-job-item::after { + content: ""; + display: table; + clear: both; +} + +.awsm-b-list-left-col { + float: left; + width: 50%; +} + +.awsm-b-list-right-col { + float: left; + width: 50%; + text-align: right; +} + +.awsm-b-list-item .awsm-job-specification-wrapper { + display: inline-block; + vertical-align: middle; +} + +.awsm-b-list-item .awsm-job-specification-item { + display: inline-block; + vertical-align: middle; + margin: 0 15px 0 0; +} + +a.awsm-b-job-item .awsm-job-specification-item { + color: #4C4C4C; +} + +.awsm-b-list-item .awsm-job-more-container { + display: inline-block; + vertical-align: middle; +} + +.awsm-job-more-container .awsm-job-more span::before { + content: "→"; +} + +.awsm-b-lists .awsm-b-jobs-pagination { + margin-top: 30px; +} + +.awsm-job-specification-item > [class^=awsm-job-icon-] { + margin-right: 6px; +} + +.awsm-job-specification-term::after { + content: ", "; +} + +.awsm-job-specification-term:last-child::after { + content: ""; +} + +/*----- Single ----*/ +.awsm-job-single-wrap, +.awsm-job-single-wrap *, +.awsm-job-single-wrap *::before, +.awsm-job-single-wrap *::after { + -webkit-box-sizing: border-box; + box-sizing: border-box; +} + +.awsm-job-single-wrap { + margin-bottom: 1.3em; +} + +.awsm-job-single-wrap::after { + content: ""; + display: table; + clear: both; +} + +.awsm-job-content { + padding-bottom: 32px; +} + +.awsm-job-single-wrap.awsm-col-2 .awsm-job-content { + float: left; + width: 55%; + padding-right: 15px; +} + +.awsm-job-single-wrap.awsm-col-2 .awsm-job-form { + float: left; + width: 45%; + padding-left: 15px; +} + +.awsm-job-head, +.awsm_job_spec_above_content { + margin-bottom: 20px; +} + +.awsm-job-head h1 { + margin: 0 0 20px; +} + +.awsm-job-list-info span { + margin-right: 10px; +} + +.awsm-job-single-wrap .awsm-job-expiration-label { + font-weight: bold; +} + +.awsm-job-form-inner { + background: #fff; + border: 1px solid #dddfe3; + padding: 35px; +} + +.awsm-job-form-inner h2 { + margin: 0 0 30px; +} + +.awsm-job-form-group { + margin-bottom: 20px; +} + +.awsm-job-form-group input[type=checkbox], +.awsm-job-form-group input[type=radio] { + margin-right: 5px; +} + +.awsm-job-form-group label { + display: block; + margin-bottom: 10px; +} + +.awsm-job-inline-group label, +.awsm-job-form-options-container label { + display: inline; + font-weight: normal; +} + +.awsm-b-job-form-control { + display: block; + width: 100%; +} + +.awsm-job-form-options-container span { + display: inline-block; + margin-bottom: 10px; + margin-left: 10px; +} + +.awsm-job-submit { + background: #0195ff; + border: 1px solid #0195ff; + padding: 10px 30px; + color: #fff; +} + +.awsm-job-submit:hover, +.awsm-job-submit:focus { + background: rgba(0, 0, 0, 0); + color: #0195ff; +} + +.awsm-job-form-error { + color: #db4c4c; + font-weight: 500; +} + +.awsm-b-job-form-control.awsm-job-form-error, +.awsm-b-job-form-control.awsm-job-form-error:focus { + border: 1px solid #db4c4c; +} + +.awsm-success-message, +.awsm-error-message { + padding: 12px 25px; +} + +.awsm-success-message p:empty, +.awsm-error-message p:empty { + display: none; +} + +.awsm-success-message p, +.awsm-error-message p { + margin: 0 !important; + padding: 0 !important; +} + +.awsm-success-message { + border: 1px solid #1ea508; +} + +.awsm-error-message { + border: 1px solid #db4c4c; +} + +ul.awsm-error-message li { + margin-left: 1.2em; + line-height: 1.8em; +} + +.awsm-expired-message { + padding: 25px; +} + +.awsm-expired-message p { + margin: 1em 0em; +} + +.awsm-job-container { + max-width: 1170px; + width: 100%; + margin: 0 auto; + padding: 50px 0; +} + +.awsm-jobs-loading { + position: relative; +} + +.awsm-b-job-listings::after { + content: ""; + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + opacity: 0; + visibility: hidden; + -webkit-transition: all 0.3s ease; + transition: all 0.3s ease; +} + +.awsm-b-job-listings.awsm-jobs-loading::after { + opacity: 1; + visibility: visible; +} + +/*---- Accessibility ----*/ +.awsm-b-filter-wrap .awsm-b-filter-items { + display: none; +} + +.awsm-b-filter-wrap.awsm-b-full-width-search-filter-wrap .awsm-b-filter-items, +.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-items { + width: 100%; +} + +@media (min-width: 768px) { + .awsm-b-filter-wrap .awsm-b-filter-items { + display: -webkit-box !important; + display: -webkit-flex !important; + display: -ms-flexbox !important; + display: flex !important; + -webkit-flex-wrap: wrap; + -ms-flex-wrap: wrap; + flex-wrap: wrap; + width: calc(100% - 250px); + } + .awsm-filter-toggle { + display: none; + } + .awsm-b-filter-item-search { + width: 250px; + } +} +@media (max-width: 768px) { + .awsm-b-filter-wrap .awsm-b-filter-items { + width: 100%; + } + .awsm-b-filter-item-search { + width: calc(100% - 66px); + } + .awsm-b-filter-wrap .awsm-b-filter-item .awsm-selectric-wrapper { + min-width: 100%; + } +} +.awsm-b-sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} + +/*---- Media Queries ----*/ +@media (max-width: 1024px) { + .awsm-b-grid-col-4 .awsm-b-grid-item { + width: 33.333%; + } +} +@media (max-width: 992px) { + .awsm-job-single-wrap.awsm-col-2 .awsm-job-content { + width: 100%; + padding-right: 0; + } + .awsm-job-single-wrap.awsm-col-2 .awsm-job-form { + width: 100%; + padding-left: 0; + } +} +@media (max-width: 768px) { + .awsm-b-grid-col-4 .awsm-b-grid-item, + .awsm-b-grid-col-3 .awsm-b-grid-item, + .awsm-b-grid-item { + width: 50%; + } + .awsm-b-list-left-col { + width: 100%; + padding-bottom: 10px; + } + .awsm-b-list-right-col { + width: 100%; + text-align: left; + } +} +@media (max-width: 648px) { + .awsm-b-grid-col-4 .awsm-b-grid-item, + .awsm-b-grid-col-3 .awsm-b-grid-item, + .awsm-b-grid-col-2 .awsm-b-grid-item, + .awsm-b-grid-item { + width: 100%; + } + .awsm-b-list-item .awsm-job-specification-wrapper { + display: block; + padding-bottom: 5px; + float: none; + } + .awsm-b-list-item .awsm-job-more-container { + display: block; + float: none; + } +} +.awsm-job-form-plugin-style .awsm-b-job-form-control { + display: block; + width: 100%; + font: inherit; + padding: 8px 15px; + min-height: 46px; + border: 1px solid #ccc; + border-radius: 4px; + line-height: 1; + color: #060606; + -webkit-transition: all 0.3s ease; + transition: all 0.3s ease; +} + +.awsm-job-form-plugin-style .awsm-b-job-form-control:focus { + outline: none; + -webkit-box-shadow: none; + box-shadow: none; + border-color: #060606; +} + +.awsm-job-form-plugin-style .awsm-b-job-form-control.awsm-job-form-error { + border-color: #db4c4c; +} + +.awsm-job-form-plugin-style textarea.awsm-b-job-form-control { + min-height: 80px; +} + +.awsm-job-form-plugin-style .awsm-jobs-primary-button, +.awsm-job-form-plugin-style .awsm-application-submit-btn { + background: #060606; + border-radius: 45px; + -webkit-transition: all 0.3s ease; + transition: all 0.3s ease; + padding: 16px 32px; + color: #fff; +} + +.awsm-job-form-plugin-style .awsm-jobs-primary-button:hover, +.awsm-job-form-plugin-style .awsm-jobs-primary-button:focus, +.awsm-job-form-plugin-style .awsm-application-submit-btn:hover, +.awsm-job-form-plugin-style .awsm-application-submit-btn:focus { + color: #fff; + outline: none; + background: #060606; +} + +.awsm-job-form-plugin-style .awsm-jobs-primary-button { + cursor: pointer; +} + +.awsm-job-form-plugin-style .awsm-jobs-primary-button:disabled { + opacity: 0.5; + pointer-events: none; +} + +.awsm-job-form-plugin-style .awsm-selectric { + border-color: #ccc; + -webkit-box-shadow: none; + box-shadow: none; + border-radius: 4px; +} + +.awsm-job-form-plugin-style .awsm-selectric-open .awsm-selectric { + border-color: #060606; +} + +.awsm-job-form-plugin-style .awsm-selectric .label { + margin-left: 15px; +} + +/* Block Theme - Compatibility Templates Styles */ +.awsm-jobs-is-block-theme .site-branding { + padding: 0 2.1rem; +} + +.awsm-jobs-is-block-theme .site-content { + padding: 0 2.1rem 3rem; +} + +.awsm-jobs-is-block-theme .site-title { + margin-bottom: 0; +} + +.awsm-b-filter-admin label.awsm-b-sr-only { + padding: 15px; + padding-right: 50px; + border: 1px solid #dddfe3; + min-width: 160px; + font-size: 14px; + position: relative; + -moz-appearance: none; + -webkit-appearance: none; + appearance: none; + background: #fff url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTAuNDE1OTc5OHB4IiBoZWlnaHQ9IjUuMjA3OTg5OTFweCIgdmlld0JveD0iMCAwIDEwLjQxNTk3OTggNS4yMDc5ODk5MSIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KICAgIDx0aXRsZT5QYXRoPC90aXRsZT4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwb2x5Z29uIGlkPSJQYXRoIiBzdHJva2U9IiMwMDAwMDAiIGZpbGw9IiMwMDAwMDAiIHBvaW50cz0iMS4yOTMxODUxNSAwLjUgOS4yOTMxODUxNSAwLjUgNS42OTI2NDEzIDQuNSI+PC9wb2x5Z29uPgogICAgPC9nPgo8L3N2Zz4=) no-repeat; + background-position: right 10px top 50%; + -webkit-box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05); + box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05); + font-size: 12px; + line-height: 46px; + color: #444; + height: 46px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.awsm-b-filter-admin .awsm-b-filter-option { + display: none !important; +} + +.awsm-b-job-icon-search:before { + content: "\f002"; +} + +.awsm-b-job-icon-close-circle:before { + content: "\e900"; + color: #a6a6a6; +} + +.awsm-b-filter-wrap.awsm-full-width-search-filter-wrap .awsm-b-filter-items, +.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-items { + width: 100%; +} + +.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-toggle { + width: 100%; + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; + text-decoration: none; +} + +.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-toggle svg { + width: 22px; + height: 22px; +} + +.awsm-b-filter-wrap.awsm-b-full-width-search-filter-wrap.awsm-b-jobs-alerts-on .awsm-b-filter-items, .awsm-b-filter-wrap.awsm-b-no-search-filter-wrap.awsm-b-jobs-alerts-on .awsm-b-filter-items { + width: calc(100% - 80px); +} + +.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap.awsm-b-jobs-alerts-on .awsm-b-filter-toggle { + width: calc(100% - 100px); +} + +@media (max-width: 767px) { + .awsm-b-jobs-alerts-on .awsm-b-filter-item-search { + width: calc(100% - 146px); + } +} +@media (min-width: 768px) { + .awsm-b-filter-wrap.awsm-b-jobs-alerts-on .awsm-b-filter-items { + width: calc(100% - 330px); + -webkit-box-ordinal-group: 3; + -webkit-order: 2; + -ms-flex-order: 2; + order: 2; + } + .awsm-jobs-alerts-popup-trigger-btn { + -webkit-box-ordinal-group: 4; + -webkit-order: 3; + -ms-flex-order: 3; + order: 3; + } +} +.awsm-b-job-wrap, .awsm-b-job-wrap * { + -webkit-box-sizing: border-box; + box-sizing: border-box; +} + +/*# sourceMappingURL=index.css.map*/ \ No newline at end of file diff --git a/blocks/build/index.css.map b/blocks/build/index.css.map new file mode 100644 index 00000000..1d6d0f72 --- /dev/null +++ b/blocks/build/index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"index.css","mappings":";;;AAAA,gBAAgB;AAAhB;;;;EAAA;AAMA;EACC;AACD;;AAEA;;;EAAA;AAIA;EACC;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EAAA;MAAA;UAAA;AACD;;AAEA;;;;EAIC;UAAA;AACD;;AAEA;EACC;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EAAA;MAAA;UAAA;EACA;AACD;;AAEA;EACC;AACD;;AAEA;EACC;AACD;;AAEA;EACC;AACD;;AAEA;EACC;AACD;;AAEA;EACC;AACD;;AAEA;EACC;EACA;EACA;AACD;;AAEA;EACC;AACD;;AAEA;EACC;EACA;UAAA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EAAA;MAAA;UAAA;EACA;EACA;MAAA;UAAA;EACA;EACA;EAIA;AACD;;AAEA;;EAEC;UAAA;AACD;;AAEA;EACC;AACD;;AAEA;EACC;EACA;EACA;AACD;;AAEA;EACC;AACD;;AAEA;EACC;EACA;AACD;;AAEA;EACC;AACD;;AAEA;EACC;EACA;EACA;AACD;;AACA;;EAEC;UAAA;AAED;;AAAA;EACC;AAGD;;AADA;EACC;EAAA;EAAA;EAAA;EACA;MAAA;UAAA;AAID;;AAFA;EACC;AAKD;;AAHA;EACC;AAMD;;AAJA;;EAEC;AAOD;;AALA;EACC;EAAA;EAAA;EAAA;EACA;MAAA;UAAA;EACA;EACA;EACA;EACA;EACA;EACA;AAQD;;AANA;EACC;AASD;;AAPA;EACC;EACA;AAUD;;AARA;EACC;EACA;EAAA;MAAA;UAAA;EACA;EAAA;MAAA;UAAA;EACA;AAWD;;AATA;EACC;EACA;AAYD;;AAVA;EACC;IACC;IAAA;IAAA;IAAA;IACA;QAAA;YAAA;IACA;EAaA;EAXD;IACC;EAaA;EAXD;IACC;EAaA;AACF;AAXA;EACC;EACA;EACA;AAaD;;AAVA;EACC;EACA;AAaD;;AAXA;EACC;IACC;EAcA;EAZD;IACC;EAcA;EAZD;IACC;EAcA;AACF;AAZA;EACC;EACA;AAcD;;AAZA;EACI;EACA;AAeJ;;AAbA;EACC;AAgBD;;AAdA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAiBD;;AAfA;EACC;AAkBD;;AAfA;EACC;EACA;AAkBD;;AAfA;EACC;EACA;AAkBD;;AAfA;EACC;EACA;AAkBD;;AAfA;EACC;EACA;EACA;EACA;EACA;UAAA;EACA;EACA;EACA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;AAfA;EACC;EACA;AAkBD;;AAfA;EACC;AAkBD;;AAfA;EACC;AAkBD;;AAfA;EACC;EACA;EACA;EACA;AAkBD;;AAfA;EACC;AAkBD;;AAfA;EACC;EACA;EACA;EACA;EACA;EACA;EAEA;EACA;EACA;EAIA;AAiBD;;AAdA;EACC;EACA;AAiBD;;AAdA;AAEA;EACC;AAgBD;;AAbA;;EAEC;AAgBD;;AAbA;EACC;IACC;IAAA;IAAA;IAAA;IACA;QAAA;YAAA;IACA;EAgBA;EAdD;IACC;EAgBA;EAdD;IACC;EAgBA;AACF;AAbA;EACC;IACC;EAeA;EAbD;IACC;EAeA;EAbD;IACC;EAeA;AACF;AAZA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAcD;;AAXA;AAEA;EACC;IACC;EAaA;AACF;AAVA;EACC;IACC;IACA;EAYA;EATD;IACC;IACA;EAWA;AACF;AARA;EAEC;;;IAGC;EASA;EAND;IACC;IACA;EAQA;EALD;IACC;IACA;EAOA;AACF;AAJA;EAEC;;;;IAIC;EAKA;EAFD;IACC;IACA;IACA;EAIA;EADD;IACC;IACA;EAGA;AACF;AAAA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAAA;AAED;;AAAA;EACC;EACA;UAAA;EACA;AAGD;;AADA;EACC;AAID;;AAFA;EACC;AAKD;;AAHA;;EAEC;EACA;EACA;EAAA;EACA;EACA;AAMD;;AAJA;;;;EAIC;EACG;EACA;AAOJ;;AALA;EACC;AAQD;;AANA;EACC;EACA;AASD;;AAPA;EACC;EACA;UAAA;EACA;AAUD;;AARA;EACC;AAWD;;AATA;EACC;AAYD;;AATA;AAEA;EACC;AAWD;;AARA;EACC;AAWD;;AARA;EACC;AAWD;;AARA;EAEC;EACA;EACG;EACA;EACH;EACA;EACA;EACA;EACA;EACA;EACA;EACA;UAAA;EACG;EACA;EACA;EACA;EACH;EACE;EACA;AAUH;;AARA;EACG;AAWH;;AARA;EACC;AAWD;;AARE;EACD;EACA;AAWD;;AARC;;EAEC;AAWF;;AATC;EACC;EACA;EAAA;MAAA;UAAA;EACA;EAAA;MAAA;UAAA;EACA;AAYF;;AAVC;EACC;EACA;AAaF;;AAVC;EACC;AAaF;;AAVC;EACE;AAaH;;AAVC;EACC;IACA;EAaA;AACF;AAVC;EACC;IACC;IACA;IAAA;QAAA;YAAA;EAYD;EAVA;IACC;IAAA;QAAA;YAAA;EAYD;AACF;AATC;EACA;UAAA;AAWD,C","sources":["webpack://joblistings/./src/editor.scss"],"sourcesContent":["/**\n * The following styles get applied inside the editor only.\n *\n * Replace them with your own styles or remove the file completely.\n */\n\n.wp-block-create-block-wjo-block {\n\tborder: 1px dotted #f00;\n}\n\n/**\n * Editor styles.\n *\n */\n.awsm-b-row {\n\tmargin: 0 -15px;\n\tdisplay: -webkit-box;\n\tdisplay: -moz-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: -webkit-flex;\n\tdisplay: flex;\n\tdisplay: flexbox;\n\t-webkit-flex-flow: row wrap;\n\tflex-flow: row wrap;\n}\n\n.awsm-b-row,\n.awsm-b-row *,\n.awsm-b-row *::before,\n.awsm-b-row *::after {\n\tbox-sizing: border-box;\n}\n\n.awsm-b-grid-item {\n\tfloat: left;\n\twidth: 33.333%;\n\tpadding: 0 15px !important;\n\tdisplay: -webkit-box;\n\tdisplay: -moz-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: -webkit-flex;\n\tdisplay: flex;\n\tflex-direction: column;\n\t-webkit-flex-direction: column;\n}\n\n.awsm-b-grid-col-4 .awsm-b-grid-item {\n\twidth: 25%;\n}\n\n.awsm-b-grid-col-2 .awsm-b-grid-item {\n\twidth: 50%;\n}\n\n.awsm-b-grid-col .awsm-b-grid-item {\n\twidth: 100%;\n}\n\n.awsm-b-job-hide {\n\tdisplay: none !important;\n}\n\n.awsm-job-show {\n\tdisplay: block !important;\n}\n\n.awsm-b-job-item {\n\tbackground: #fff;\n\tpadding: 20px;\n\tfont-size: 14px;\n}\n\na.awsm-b-job-item {\n\ttext-decoration: none !important;\n}\n\n.awsm-b-grid-item .awsm-b-job-item {\n\tmargin-bottom: 30px;\n\tbox-shadow: 0 1px 4px 0 rgb(0 0 0 / 5%);\n\tborder: 1px solid #dddfe3;\n\tborder-radius: 2px;\n\tdisplay: -webkit-box;\n\tdisplay: -moz-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: -webkit-flex;\n\tdisplay: flex;\n\tflex-direction: column;\n\t-webkit-flex-direction: column;\n\tflex-grow: 1;\n\t-webkit-flex-grow: 1;\n\t-webkit-transition: all 0.3s ease;\n\t-moz-transition: all 0.3s ease;\n\t-ms-transition: all 0.3s ease;\n\t-o-transition: all 0.3s ease;\n\ttransition: all 0.3s ease;\n}\n\n.awsm-b-grid-item .awsm-b-job-item:hover,\n.awsm-b-grid-item .awsm-b-job-item:focus {\n\tbox-shadow: 0 3px 15px -5px rgb(0 0 0 / 20%);\n}\n\n.awsm-b-grid-item .awsm-job-featured-image {\n\tmargin-bottom: 14px;\n}\n\n.awsm-b-job-item h2.awsm-b-job-post-title {\n\tmargin: 0 0 15px;\n\tfont-size: 18px;\n\ttext-align: left;\n}\n\n.awsm-b-job-item h2.awsm-b-job-post-title a {\n\tfont-size: 18px;\n}\n\n.awsm-b-grid-item .awsm-job-info {\n\tmin-height: 83px;\n\tmargin-bottom: 10px;\n}\n\n.awsm-b-grid-item .awsm-job-info p {\n\tmargin: 0 0 8px;\n}\n\n.awsm-b-job-wrap::after {\n\tclear: both;\n\tcontent: '';\n\tdisplay: table;\n}\n.awsm-b-filter-wrap,\n.awsm-b-filter-wrap * {\n\tbox-sizing: border-box;\n}\n.awsm-b-filter-wrap {\n\tmargin: 0 -10px 20px;\n}\n.awsm-b-filter-wrap form{\n\tdisplay: flex;\n\tflex-wrap: wrap;\n}\n.awsm-b-filter-wrap .awsm-b-filter-items{\n\tdisplay: none;\n}\n.awsm-b-filter-wrap.awsm-b-full-width-search-filter-wrap .awsm-b-filter-item-search {\n\twidth: 100%;\n}\n.awsm-b-filter-wrap.awsm-b-full-width-search-filter-wrap .awsm-b-filter-items,\n.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-items {\n\twidth: 100%;\n}\n.awsm-b-filter-toggle{\n\tdisplay: flex;\n\tflex-flow: wrap;\n\twidth: 46px;\n\tpadding: 12px;\n\tborder: 1px solid #ccc;\n\tmargin: 0 10px 10px;\n\tborder-radius: 4px;\n\toutline: none !important;\n}\n.awsm-b-filter-toggle.awsm-on{\n\tbackground: #ccc;\n}\n.awsm-b-filter-toggle svg{\n\twidth: 20px;\n\theight: 20px;\n}\n.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-toggle {\n\twidth: 100%;\n\talign-items: center;\n\tjustify-content: space-between;\n\ttext-decoration: none;\n}\n.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-toggle svg {\n\twidth: 22px;\n\theight: 22px;\n}\n@media (min-width:768px){\n\t.awsm-b-filter-wrap .awsm-b-filter-items{\n\t\tdisplay: flex !important;\n\t\tflex-wrap: wrap;\n\t\twidth: calc(100% - 250px);\n\t}\n\t.awsm-b-filter-toggle{\n\t\tdisplay: none;\n\t}\n\t.awsm-b-filter-item-search{\n\t\twidth: 250px;\n\t}\n}\n.awsm-b-filter-wrap .awsm-b-filter-item {\n\t/* display: inline-block; */\n\tpadding: 0 10px 10px;\n\t/* vertical-align: top; */\n}\n\n.awsm-b-filter-item-search{\n\tposition: relative;\n\tpadding: 0 10px 10px;\n}\n@media (max-width:768px){\n\t.awsm-b-filter-wrap .awsm-b-filter-items{\n\t\twidth: 100%;\n\t}\n\t.awsm-b-filter-item-search{\n\t\twidth: calc(100% - 66px);\n\t}\n\t.awsm-b-filter-wrap .awsm-b-filter-item .awsm-selectric-wrapper{\n\t\tmin-width: 100%;\n\t}\n}\n.awsm-b-filter-wrap .awsm-b-filter-item .awsm-b-job-form-control{\n\tmin-height: 48px;\n\tpadding-right: 58px;\n}\n.awsm-b-filter-item-search .awsm-b-job-form-control {\n padding-right: 48px;\n min-height: 48px;\n}\n.awsm-b-filter-item-search-in {\n\tposition: relative;\n}\n.awsm-b-filter-item-search .awsm-b-job-search-icon-wrapper {\n\tposition: absolute;\n\tright: 0;\n\ttop: 0;\n\twidth: 48px;\n\theight: 100%;\n\tfont-size: 16px;\n\tcolor: #ccc;\n\tline-height: 48px;\n\ttext-align: center;\n\tcursor: pointer;\n}\n.awsm-b-jobs-none-container {\n\tpadding: 25px;\n}\n\n.awsm-b-jobs-none-container p {\n\tmargin: 0;\n\tpadding: 5px;\n}\n\n.awsm-b-row .awsm-b-jobs-pagination {\n\tpadding: 0 15px;\n\twidth: 100%;\n}\n\n.awsm-b-jobs-pagination {\n\tfloat: left;\n\twidth: 100%;\n}\n\n.awsm-b-load-more-main a.awsm-load-more, .awsm-load-more-classic a.page-numbers\t {\n\tdisplay: block;\n\ttext-align: center;\n\tpadding: 20px;\n\tbackground: #fff;\n\tbox-shadow: 0 1px 4px 0 rgb(0 0 0 / 5%);\n\tborder: 1px solid #dddfe3;\n\tmargin: 0 !important;\n\ttext-decoration: none !important;\n\toutline: none !important;\n\t-webkit-transition: all 0.3s ease;\n\t-moz-transition: all 0.3s ease;\n\t-ms-transition: all 0.3s ease;\n\t-o-transition: all 0.3s ease;\n\ttransition: all 0.3s ease;\n}\n.awsm-load-more-classic a.page-numbers, .awsm-load-more-classic span.page-numbers {\n\tpadding: 5px 10px;\n\tfont-size: 90%;\n}\n.awsm-load-more-classic {\n\ttext-align: center;\n}\n\n.awsm-b-load-more-main a.awsm-load-more:hover,\n.awsm-b-load-more-main a.awsm-load-more:focus,\n.awsm-load-more-classic a.page-numbers:hover,\n.awsm-load-more-classic a.page-numbers:focus {\n\tbox-shadow: 0 3px 15px -5px rgb(0 0 0 / 20%);\n}\n\n.awsm-b-jobs-pagination.awsm-load-more-classic ul {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n.awsm-b-jobs-pagination.awsm-load-more-classic ul li {\n display: inline-block;\n}\n\n/*---- List ----*/\n\n.awsm-b-lists {\n\tborder: 1px solid #ededed;\n}\n\n.awsm-b-list-item {\n\twidth: 100%;\n}\n\n.awsm-b-list-item h2.awsm-job-b-post-title {\n\tmargin-bottom: 0;\n}\n\n.awsm-b-list-item .awsm-job-featured-image {\n\tfloat: left;\n margin-right: 10px;\n}\n\n.awsm-b-list-item .awsm-job-featured-image img {\n\twidth: 50px;\n height: 50px;\n}\n\n.awsm-b-list-item .awsm-b-job-item {\n\tborder-bottom: 1px solid rgba(0, 0, 0, 0.13);\n}\n\n.awsm-b-list-item .awsm-b-job-item::after {\n\tcontent: \"\";\n\tdisplay: table;\n\tclear: both;\n}\n\n.awsm-b-list-left-col {\n\tfloat: left;\n\twidth: 50%;\n}\n\n.awsm-b-list-right-col {\n\tfloat: left;\n\twidth: 50%;\n\ttext-align: right;\n}\n\n.awsm-b-list-item .awsm-job-specification-wrapper {\n\tdisplay: inline-block;\n\tvertical-align: middle;\n}\n\n.awsm-b-list-item .awsm-job-specification-item {\n\tdisplay: inline-block;\n\tvertical-align: middle;\n\tmargin: 0 15px 0 0;\n}\n\na.awsm-b-job-item .awsm-job-specification-item {\n\tcolor: #4C4C4C;\n}\n\n.awsm-b-list-item .awsm-job-more-container {\n\tdisplay: inline-block;\n\tvertical-align: middle;\n}\n\n.awsm-job-more-container .awsm-job-more span::before {\n\tcontent: \"\\002192\";\n}\n\n.awsm-b-lists .awsm-b-jobs-pagination {\n\tmargin-top: 30px;\n}\n\n.awsm-job-specification-item>[class^=\"awsm-job-icon-\"] {\n\tmargin-right: 6px;\n}\n\n.awsm-job-specification-term::after {\n\tcontent: \", \";\n}\n\n.awsm-job-specification-term:last-child::after {\n\tcontent: \"\";\n}\n\n/*----- Single ----*/\n\n.awsm-job-single-wrap,\n.awsm-job-single-wrap *,\n.awsm-job-single-wrap *::before,\n.awsm-job-single-wrap *::after {\n\tbox-sizing: border-box;\n}\n\n.awsm-job-single-wrap {\n\tmargin-bottom: 1.3em;\n}\n\n.awsm-job-single-wrap::after {\n\tcontent: \"\";\n\tdisplay: table;\n\tclear: both;\n}\n\n.awsm-job-content {\n\tpadding-bottom: 32px;\n}\n\n.awsm-job-single-wrap.awsm-col-2 .awsm-job-content {\n\tfloat: left;\n\twidth: 55%;\n\tpadding-right: 15px;\n}\n\n.awsm-job-single-wrap.awsm-col-2 .awsm-job-form {\n\tfloat: left;\n\twidth: 45%;\n\tpadding-left: 15px;\n}\n\n.awsm-job-head,\n.awsm_job_spec_above_content {\n\tmargin-bottom: 20px;\n}\n\n.awsm-job-head h1 {\n\tmargin: 0 0 20px;\n}\n\n.awsm-job-list-info span {\n\tmargin-right: 10px;\n}\n\n.awsm-job-single-wrap .awsm-job-expiration-label {\n\tfont-weight: bold;\n}\n\n.awsm-job-form-inner {\n\tbackground: #fff;\n\tborder: 1px solid #dddfe3;\n\tpadding: 35px;\n}\n\n.awsm-job-form-inner h2 {\n\tmargin: 0 0 30px;\n}\n\n.awsm-job-form-group {\n\tmargin-bottom: 20px;\n}\n\n.awsm-job-form-group input[type=checkbox],\n.awsm-job-form-group input[type=radio] {\n\tmargin-right: 5px;\n}\n\n.awsm-job-form-group label {\n\tdisplay: block;\n\tmargin-bottom: 10px;\n}\n\n.awsm-job-inline-group label,\n.awsm-job-form-options-container label {\n\tdisplay: inline;\n\tfont-weight: normal;\n}\n\n.awsm-b-job-form-control {\n\tdisplay: block;\n\twidth: 100%;\n}\n\n.awsm-job-form-options-container span {\n\tdisplay: inline-block;\n\tmargin-bottom: 10px;\n\tmargin-left: 10px;\n}\n\n.awsm-job-submit {\n\tbackground: #0195ff;\n\tborder: 1px solid #0195ff;\n\tpadding: 10px 30px;\n\tcolor: #fff;\n}\n\n.awsm-job-submit:hover,\n.awsm-job-submit:focus {\n\tbackground: rgba(0, 0, 0, 0);\n\tcolor: #0195ff;\n}\n\n.awsm-job-form-error {\n\tcolor: #db4c4c;\n\tfont-weight: 500;\n}\n\n.awsm-b-job-form-control.awsm-job-form-error,\n.awsm-b-job-form-control.awsm-job-form-error:focus {\n\tborder: 1px solid #db4c4c;\n}\n\n.awsm-success-message,\n.awsm-error-message {\n\tpadding: 12px 25px;\n}\n\n.awsm-success-message p:empty,\n.awsm-error-message p:empty {\n\tdisplay: none;\n}\n\n.awsm-success-message p,\n.awsm-error-message p {\n\tmargin: 0 !important;\n\tpadding: 0 !important;\n}\n\n.awsm-success-message {\n\tborder: 1px solid #1ea508;\n}\n\n.awsm-error-message {\n\tborder: 1px solid #db4c4c;\n}\n\nul.awsm-error-message li {\n\tmargin-left: 1.2em;\n\tline-height: 1.8em;\n}\n\n.awsm-expired-message {\n\tpadding: 25px;\n}\n\n.awsm-expired-message p {\n\tmargin: 1em 0em;\n}\n\n.awsm-job-container {\n\tmax-width: 1170px;\n\twidth: 100%;\n\tmargin: 0 auto;\n\tpadding: 50px 0;\n}\n\n.awsm-jobs-loading {\n\tposition: relative;\n}\n\n.awsm-b-job-listings::after {\n\tcontent: \"\";\n\tposition: absolute;\n\tleft: 0;\n\ttop: 0;\n\twidth: 100%;\n\theight: 100%;\n\t// background: rgba(255, 255, 255, 0.5) url(../img/loading.svg) no-repeat center;\n\topacity: 0;\n\tvisibility: hidden;\n\t-webkit-transition: all 0.3s ease;\n\t-moz-transition: all 0.3s ease;\n\t-ms-transition: all 0.3s ease;\n\t-o-transition: all 0.3s ease;\n\ttransition: all 0.3s ease;\n}\n\n.awsm-b-job-listings.awsm-jobs-loading::after {\n\topacity: 1;\n\tvisibility: visible;\n}\n\n/*---- Accessibility ----*/\n\n.awsm-b-filter-wrap .awsm-b-filter-items{\n\tdisplay: none;\n}\n\n.awsm-b-filter-wrap.awsm-b-full-width-search-filter-wrap .awsm-b-filter-items,\n.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-items {\n\twidth: 100%;\n}\n\n@media (min-width:768px){\n\t.awsm-b-filter-wrap .awsm-b-filter-items{\n\t\tdisplay: flex !important;\n\t\tflex-wrap: wrap;\n\t\twidth: calc(100% - 250px);\n\t}\n\t.awsm-filter-toggle{\n\t\tdisplay: none;\n\t}\n\t.awsm-b-filter-item-search{\n\t\twidth: 250px;\n\t}\n}\n\n@media (max-width:768px){\n\t.awsm-b-filter-wrap .awsm-b-filter-items{\n\t\twidth: 100%;\n\t}\n\t.awsm-b-filter-item-search{\n\t\twidth: calc(100% - 66px);\n\t}\n\t.awsm-b-filter-wrap .awsm-b-filter-item .awsm-selectric-wrapper{\n\t\tmin-width: 100%;\n\t}\n}\n\n.awsm-b-sr-only {\n\tposition: absolute;\n\twidth: 1px;\n\theight: 1px;\n\tpadding: 0;\n\tmargin: -1px;\n\toverflow: hidden;\n\tclip: rect(0,0,0,0);\n\tborder: 0;\n}\n\n/*---- Media Queries ----*/\n\n@media (max-width:1024px) {\n\t.awsm-b-grid-col-4 .awsm-b-grid-item {\n\t\twidth: 33.333%;\n\t}\n}\n\n@media (max-width:992px) {\n\t.awsm-job-single-wrap.awsm-col-2 .awsm-job-content {\n\t\twidth: 100%;\n\t\tpadding-right: 0;\n\t}\n\n\t.awsm-job-single-wrap.awsm-col-2 .awsm-job-form {\n\t\twidth: 100%;\n\t\tpadding-left: 0;\n\t}\n}\n\n@media (max-width:768px) {\n\n\t.awsm-b-grid-col-4 .awsm-b-grid-item,\n\t.awsm-b-grid-col-3 .awsm-b-grid-item,\n\t.awsm-b-grid-item {\n\t\twidth: 50%;\n\t}\n\n\t.awsm-b-list-left-col {\n\t\twidth: 100%;\n\t\tpadding-bottom: 10px;\n\t}\n\n\t.awsm-b-list-right-col {\n\t\twidth: 100%;\n\t\ttext-align: left;\n\t}\n}\n\n@media (max-width:648px) {\n\n\t.awsm-b-grid-col-4 .awsm-b-grid-item,\n\t.awsm-b-grid-col-3 .awsm-b-grid-item,\n\t.awsm-b-grid-col-2 .awsm-b-grid-item,\n\t.awsm-b-grid-item {\n\t\twidth: 100%;\n\t}\n\n\t.awsm-b-list-item .awsm-job-specification-wrapper {\n\t\tdisplay: block;\n\t\tpadding-bottom: 5px;\n\t\tfloat: none;\n\t}\n\n\t.awsm-b-list-item .awsm-job-more-container {\n\t\tdisplay: block;\n\t\tfloat: none;\n\t}\n}\n\n.awsm-job-form-plugin-style .awsm-b-job-form-control{\n\tdisplay: block;\n\twidth: 100%;\n\tfont: inherit;\n\tpadding: 8px 15px;\n\tmin-height: 46px;\n\tborder: 1px solid #ccc;\n\tborder-radius: 4px;\n\tline-height: 1;\n\tcolor: #060606;\n\ttransition: all 0.3s ease;\n}\n.awsm-job-form-plugin-style .awsm-b-job-form-control:focus{\n\toutline: none;\n\tbox-shadow: none;\n\tborder-color: #060606;\n}\n.awsm-job-form-plugin-style .awsm-b-job-form-control.awsm-job-form-error{\n\tborder-color: #db4c4c;\n}\n.awsm-job-form-plugin-style textarea.awsm-b-job-form-control{\n\tmin-height: 80px;\n}\n.awsm-job-form-plugin-style .awsm-jobs-primary-button,\n.awsm-job-form-plugin-style .awsm-application-submit-btn {\n\tbackground: #060606;\n\tborder-radius: 45px;\n\ttransition: all 0.3s ease;\n\tpadding: 16px 32px;\n\tcolor: #fff;\n}\n.awsm-job-form-plugin-style .awsm-jobs-primary-button:hover,\n.awsm-job-form-plugin-style .awsm-jobs-primary-button:focus,\n.awsm-job-form-plugin-style .awsm-application-submit-btn:hover,\n.awsm-job-form-plugin-style .awsm-application-submit-btn:focus{\n\tcolor: #fff;\n outline: none;\n background: #060606;\n}\n.awsm-job-form-plugin-style .awsm-jobs-primary-button {\n\tcursor: pointer;\n}\n.awsm-job-form-plugin-style .awsm-jobs-primary-button:disabled {\n\topacity: 0.5;\n\tpointer-events: none;\n}\n.awsm-job-form-plugin-style .awsm-selectric{\n\tborder-color: #ccc;\n\tbox-shadow: none;\n\tborder-radius: 4px;\n}\n.awsm-job-form-plugin-style .awsm-selectric-open .awsm-selectric{\n\tborder-color: #060606;\n}\n.awsm-job-form-plugin-style .awsm-selectric .label{\n\tmargin-left: 15px;\n}\n\n/* Block Theme - Compatibility Templates Styles */\n\n.awsm-jobs-is-block-theme .site-branding {\n\tpadding: 0 2.1rem;\n}\n\n.awsm-jobs-is-block-theme .site-content {\n\tpadding: 0 2.1rem 3rem;\n}\n\n.awsm-jobs-is-block-theme .site-title {\n\tmargin-bottom: 0;\n}\n\n.awsm-b-filter-admin label.awsm-b-sr-only {\n\n\tpadding: 15px;\n\tpadding-right: 50px;\n border: 1px solid #dddfe3;\n min-width: 160px;\n\tfont-size: 14px;\n\tposition: relative;\n\t-moz-appearance: none;\n\t-webkit-appearance: none;\n\tappearance: none;\n\tbackground: #fff url(../../assets/img/arrow.svg) no-repeat ;\n\tbackground-position: right 10px top 50%;\n\tbox-shadow: 0 1px 4px 0 rgb(0 0 0 / 5%);\n font-size: 12px;\n line-height: 46px;\n color: #444;\n height: 46px;\n\twhite-space: nowrap;\n \toverflow: hidden;\n \ttext-overflow: ellipsis;\n}\n.awsm-b-filter-admin .awsm-b-filter-option {\n display: none !important;\n}\n\n.awsm-b-job-icon-search:before {\n\tcontent: \"\\f002\";\n }\n\n .awsm-b-job-icon-close-circle:before {\n\tcontent: \"\\e900\";\n\tcolor: #a6a6a6;\n }\n\n .awsm-b-filter-wrap.awsm-full-width-search-filter-wrap .awsm-b-filter-items,\n .awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-items {\n\t width: 100%;\n }\n .awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-toggle {\n\t width: 100%;\n\t align-items: center;\n\t justify-content: space-between;\n\t text-decoration: none;\n }\n .awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-toggle svg {\n\t width: 22px;\n\t height: 22px;\n }\n \n .awsm-b-filter-wrap.awsm-b-full-width-search-filter-wrap.awsm-b-jobs-alerts-on .awsm-b-filter-items, .awsm-b-filter-wrap.awsm-b-no-search-filter-wrap.awsm-b-jobs-alerts-on .awsm-b-filter-items {\n\t width: calc(100% - 80px);\n }\n \n .awsm-b-filter-wrap.awsm-b-no-search-filter-wrap.awsm-b-jobs-alerts-on .awsm-b-filter-toggle {\n width: calc(100% - 100px);\n }\n \n @media (max-width: 767px){\n\t .awsm-b-jobs-alerts-on .awsm-b-filter-item-search {\n\t\twidth: calc(100% - 146px);\n\t}\n }\n \n @media (min-width: 768px){\n\t .awsm-b-filter-wrap.awsm-b-jobs-alerts-on .awsm-b-filter-items {\n\t\t width: calc(100% - 330px);\n\t\t order: 2;\n\t }\n\t .awsm-jobs-alerts-popup-trigger-btn{\n\t\t order: 3;\n\t }\n }\n\n .awsm-b-job-wrap, .awsm-b-job-wrap * {\n\tbox-sizing: border-box;\n }\n\n "],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/blocks/build/index.js b/blocks/build/index.js index 7c214c28..5955be38 100644 --- a/blocks/build/index.js +++ b/blocks/build/index.js @@ -1 +1,1148 @@ -!function(){"use strict";var e,t={347:function(e,t,n){var r=window.wp.blocks;function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t,n){return(t=function(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=window.React,a=window.wp.i18n,c=window.wp.blockEditor,s=window.wp.serverSideRender,u=n.n(s);function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n0&&void 0===o){var e=C.map((function(e){return e.value}));_({filter_options:e})}"undefined"!=typeof awsmJobsAdmin&&awsmJobsAdmin.isProEnabled&&k(!0)}),[]),(0,l.createElement)(c.InspectorControls,null,(0,l.createElement)(m.PanelBody,{title:(0,a.__)("Layout Options","wp-job-openings")},(0,l.createElement)(m.SelectControl,{label:(0,a.__)("Layout","wp-job-openings"),value:s,options:[{label:(0,a.__)("List view","wp-job-openings"),value:"list"},{label:(0,a.__)("Grid view","wp-job-openings"),value:"grid"}],onChange:function(e){return _({layout:e})}}),void 0!==s&&"grid"==s&&(0,l.createElement)(m.SelectControl,{label:(0,a.__)("Columns","wp-job-openings"),value:p,options:[{label:(0,a.__)("1 Column","wp-job-openings"),value:"1"},{label:(0,a.__)("2 Columns","wp-job-openings"),value:"2"},{label:(0,a.__)("3 Columns","wp-job-openings"),value:"3"},{label:(0,a.__)("4 Columns","wp-job-openings"),value:"4"}],onChange:function(e){return t=parseInt(e,10),void _({number_of_columns:isNaN(t)?0:t});var t}}),(0,l.createElement)(m.TextControl,{label:(0,a.__)("Listings per page","wp-job-openings"),value:u,onChange:function(e){return t=parseInt(e,10),void _({listing_per_page:isNaN(t)?0:t});var t}}),(0,l.createElement)(m.SelectControl,{label:(0,a.__)("Pagination","wp-job-openings"),value:w,options:[{label:(0,a.__)("Classic","wp-job-openings"),value:"classic"},{label:(0,a.__)("Modern","wp-job-openings"),value:"modern"}],onChange:function(e){return _({pagination:e})}}),wp.hooks.doAction("after_awsm_job_appearance",j,e),j),C.length>0&&(0,l.createElement)(m.PanelBody,{title:(0,a.__)("Search & Filters","wp-job-openings")},(0,l.createElement)(m.ToggleControl,{label:(0,a.__)("Enable Search","wp-job-openings"),checked:g,onChange:function(e){return _({search:e})}}),g&&(0,l.createElement)(m.TextControl,{label:(0,a.__)("Search Placeholder","wp-job-openings"),value:y,onChange:function(e){return _({search_placeholder:e})},placeholder:(0,a.__)("Search Jobs","wp-job-openings")}),(0,l.createElement)(m.ToggleControl,{label:(0,a.__)("Enable Filters","wp-job-openings"),checked:v,onChange:function(e){return _({enable_job_filter:e})}}),v&&(0,l.createElement)(d.Fragment,null,(0,l.createElement)("h2",null,(0,a.__)("Available Filters","wp-job-openings")),C.map((function(e){return(0,l.createElement)(m.ToggleControl,{key:e.key,label:e.label,checked:o.includes(e.key),onChange:function(t){return function(e,t){if(void 0!==o){var n=b(o);e?n.push(t):n=n.filter((function(e){return e!==t})),_({filter_options:n})}}(t,e.key)}})})))),(0,l.createElement)(m.PanelBody,{title:(0,a.__)("Job Listing","wp-job-openings")},(0,l.createElement)(m.ToggleControl,{label:(0,a.__)("Hide Expired Jobs","wp-job-openings"),checked:h,onChange:function(e){return _({hide_expired_jobs:e})}}),wp.hooks.doAction("after_awsm_block_job_listing",O,e),O,(0,l.createElement)("h2",null,(0,a.__)("Job Specs in the Listing","wp-job-openings")),C.length>0&&C.map((function(e){return(0,l.createElement)(m.ToggleControl,{label:e.label,checked:void 0!==i&&i.includes(e.key),onChange:function(t){return function(e,t){if(void 0!==i){var n=b(i);e?n.push(t):n=n.filter((function(e){return e!==t})),_({other_options:n})}}(t,e.key)}})}))))},h=function(e){return function(t){return"wp-job-openings/blocks"!==t.name?(0,l.createElement)(e,v({},t)):(0,l.createElement)(d.Fragment,null,(0,l.createElement)(e,v({},t)),(0,l.createElement)(y,v({},t)))}};(0,g.addFilter)("editor.BlockEdit","awsm-job-block-settings/awsm-block-inspector-controls",h);var _=h;function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t0){var n=t[0].getBoundingClientRect().top,r=t[t.length-1].getBoundingClientRect().top;if(window.innerWidth<768)return void e.classList.remove("awsm-b-full-width-search-filter-wrap");r>n&&e.classList.add("awsm-b-full-width-search-filter-wrap")}}))},i=function(){document.querySelector(".awsm-b-job-wrap")?o():setTimeout(i,300)};return(0,d.useEffect)((function(){return i(),o(),function(){window.removeEventListener("resize",o)}}),[]),(0,d.useEffect)((function(){}),[e.attributes.enable_job_filter,e.attributes.filter_options]),(0,d.useEffect)((function(){var t=new MutationObserver((function(){!function(){var t=document.querySelector("#block-"+e.clientId+" .awsm-b-filter-wrap");if(t){var n=document.querySelectorAll("#block-"+e.clientId+" .awsm-b-filter-item");if(n.length>0){var r=n[0].getBoundingClientRect().top,o=n[n.length-1].getBoundingClientRect().top;if(window.innerWidth<768)return void t.classList.remove("awsm-b-full-width-search-filter-wrap");o>r&&t.classList.add("awsm-b-full-width-search-filter-wrap")}}}()})),n=document.querySelector("#block-"+e.clientId);n&&t.observe(n,{childList:!0,subtree:!0})}),[]),(0,l.createElement)("div",O(O({},n),{},{onClick:function(e){e.preventDefault(),e.stopPropagation()}}),(0,l.createElement)(_,O({},e)),(0,l.createElement)(u(),{block:"wp-job-openings/blocks",attributes:e.attributes}))},save:function(){return(0,l.createElement)("p",function(e){for(var t=1;t=i)&&Object.keys(r.O).every((function(e){return r.O[e](n[c])}))?n.splice(c--,1):(a=!1,i0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,o,i]},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={57:0,350:0};r.O.j=function(t){return 0===e[t]};var t=function(t,n){var o,i,l=n[0],a=n[1],c=n[2],s=0;if(l.some((function(t){return 0!==e[t]}))){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(c)var u=c(r)}for(t&&t(n);s 0) { + var filterFirstTop = filterItems[0].getBoundingClientRect().top; + var filterLastTop = filterItems[filterItems.length - 1].getBoundingClientRect().top; + if (window.innerWidth < 768) { + wrapper.classList.remove("awsm-b-full-width-search-filter-wrap"); + return; + } + if (filterLastTop > filterFirstTop) { + wrapper.classList.add("awsm-b-full-width-search-filter-wrap"); + } + } + }); + }; + var _checkElement = function checkElement() { + var dynamicElement = document.querySelector(".awsm-b-job-wrap"); + if (dynamicElement) { + handleResize(); + } else { + setTimeout(_checkElement, 300); + } + }; + (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_7__.useEffect)(function () { + _checkElement(); + handleResize(); + return function () { + window.removeEventListener("resize", handleResize); + }; + }, []); + (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_7__.useEffect)(function () {}, [props.attributes.enable_job_filter, props.attributes.filter_options]); + var checkFilters = function checkFilters() { + var wrapper = document.querySelector("#block-" + props.clientId + " .awsm-b-filter-wrap"); + if (!wrapper) { + return; + } + var filterItems = document.querySelectorAll("#block-" + props.clientId + " .awsm-b-filter-item"); + if (filterItems.length > 0) { + var filterFirstTop = filterItems[0].getBoundingClientRect().top; + var filterLastTop = filterItems[filterItems.length - 1].getBoundingClientRect().top; + if (window.innerWidth < 768) { + wrapper.classList.remove("awsm-b-full-width-search-filter-wrap"); + return; + } + if (filterLastTop > filterFirstTop) { + wrapper.classList.add("awsm-b-full-width-search-filter-wrap"); + } + } + }; + (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_7__.useEffect)(function () { + var observer = new MutationObserver(function () { + checkFilters(); + }); + var observeItem = document.querySelector("#block-" + props.clientId); + if (observeItem) { + observer.observe(observeItem, { + childList: true, + subtree: true + }); + } + (function () { + observer.disconnect(); + }); + }, []); + return (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)("div", _objectSpread(_objectSpread({}, blockProps), {}, { + onClick: handleClick + }), (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)(_inspector__WEBPACK_IMPORTED_MODULE_6__["default"], _objectSpread({}, props)), (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)((_wordpress_server_side_render__WEBPACK_IMPORTED_MODULE_5___default()), { + block: "wp-job-openings/blocks", + attributes: props.attributes + })); +} + +/***/ }), + +/***/ "./src/icon.js": +/*!*********************!*\ + !*** ./src/icon.js ***! + \*********************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react"); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); + +var icon = { + block: (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("svg", { + width: "31", + height: "41", + viewBox: "0 0 31 41", + version: "1.1" + }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("title", null, "Job Listings"), (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("g", { + id: "Page-1", + stroke: "none", + "stroke-width": "1", + fill: "none", + "fill-rule": "evenodd" + }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("g", { + id: "wpjo-logo-v12", + transform: "translate(-9, -3.9998)", + fill: "#000000", + "fill-rule": "nonzero" + }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("g", { + id: "path42", + transform: "translate(24.5, 24.4998) rotate(180) translate(-24.5, -24.4998)translate(9, 3.9998)" + }, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)("path", { + d: "M22.5545146,31.023493 C22.5827932,30.996742 22.7426515,30.8370421 22.7684766,30.8050483 C23.1900735,30.2026791 23.0251794,29.0621967 22.8743601,28.3060424 C22.7365824,27.64802 22.5116447,27.0882641 22.2756022,26.8251897 C21.7061559,23.5291633 19.1725716,19.3702475 15.5973269,19.1807048 C12.7879293,19.0310871 9.28783599,22.6176109 8.72742851,26.8251897 C8.49241893,27.0893396 8.29059476,27.5121139 8.15953172,28.1663722 C8.00561335,28.921989 7.73083292,30.2037544 8.1534628,30.8050483 C8.21247345,30.8943081 8.28465496,30.966227 8.36277627,31.023493 C7.55018544,34.1908723 8.22151226,35.8607298 8.32545882,36.1238043 C9.76405323,39.8384376 12.8821914,42.0722183 17.298693,40.4791187 C18.7937155,39.9392583 20.4497583,39.2555602 21.6400433,37.8939448 C23.8397072,35.3829747 22.9566135,32.5893037 22.5545146,31.023493 L22.5545146,31.023493 Z M28.3531824,1.97033654 C22.28774,-0.656778846 8.71541978,-0.656778846 2.65191417,1.97033654 C2.16420472,2.18353844 -0.0828743212,4.42994188 0.00236184841,6.43217133 C0.124437708,9.32757698 0.280292968,12.5071891 2.62273166,16.2632261 C2.62273166,16.2632261 3.2905721,17.2457562 4.8763703,17.9000146 C4.8763703,17.9000146 8.3193899,19.0310871 9.90170171,20.2555865 C9.90170171,20.2555865 10.6370751,19.6790272 10.6275198,19.7200276 C10.6290693,19.7032241 10.5483654,14.6412247 10.5483654,14.6412247 L14.8926855,2.11632473 C14.9881098,1.84064094 15.2307378,1.66052162 15.5015153,1.66052162 C15.771389,1.66052162 16.0135005,1.84064094 16.1093121,2.11632473 L20.4547944,14.6412247 L20.3749944,19.7200276 L21.0973261,20.2555865 C22.6836408,19.0310871 26.1257564,17.9000146 26.1257564,17.9000146 C27.7125877,17.2457562 28.3793951,16.2632261 28.3793951,16.2632261 C30.7227765,12.5071891 30.8751453,9.32757698 30.997686,6.43217133 C31.0818763,4.42994188 28.8438618,2.18353844 28.3531824,1.97033654 Z M15.7163812,15.0790548 L17.2634416,13.4675387 L15.6715744,3.0389271 C15.6573706,2.94755678 15.5853182,2.88297785 15.5025483,2.88297785 C15.4178416,2.88297785 15.3466931,2.94755678 15.3326183,3.0389271 L13.7416551,13.4675387 L15.2876824,15.0790548 L13.5646231,17.9242115 C14.1911432,17.6899045 14.8281225,17.5576279 15.4596785,17.5576279 L15.6563376,17.5628706 C16.2733023,17.5881429 16.8588894,17.7057669 17.4127114,17.8821357 L15.7163812,15.0790548 Z", + id: "path-1" + }))))) +}; +/* harmony default export */ __webpack_exports__["default"] = (icon); + +/***/ }), + +/***/ "./src/index.js": +/*!**********************!*\ + !*** ./src/index.js ***! + \**********************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/blocks */ "@wordpress/blocks"); +/* harmony import */ var _wordpress_blocks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./style.scss */ "./src/style.scss"); +/* harmony import */ var _edit__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./edit */ "./src/edit.js"); +/* harmony import */ var _save__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./save */ "./src/save.js"); +/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./icon */ "./src/icon.js"); +/* harmony import */ var _block_json__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./block.json */ "./src/block.json"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__); +/** + * Registers a new block provided a unique name and an object defining its behavior. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/ + */ + + +/** + * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files. + * All files containing `style` keyword are bundled together. The code used + * gets applied both to the front of your site and to the editor. + * + * @see https://www.npmjs.com/package/@wordpress/scripts#using-css + */ + + +/** + * Internal dependencies + */ + + + + + + +/** + * Every block starts by registering a new block type definition. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/ + */ +(0,_wordpress_blocks__WEBPACK_IMPORTED_MODULE_0__.registerBlockType)(_block_json__WEBPACK_IMPORTED_MODULE_5__.name, { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)('Job Listings', 'wp-job-openings'), + // Block title. + description: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)('Super simple Job Listing plugin to manage Job Openings and Applicants on your WordPress site.', 'wp-job-openings'), + // Block description + icon: _icon__WEBPACK_IMPORTED_MODULE_4__["default"].block, + // Block icon + category: 'widgets', + // Block category, + keywords: [(0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)('jobs listings', 'wp-job-openings'), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)('add jobs', 'wp-job-openings'), (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_6__.__)('job application', 'wp-job-openings')], + // Access the block easily with keyword aliases + /** + * @see ./edit.js + */ + edit: _edit__WEBPACK_IMPORTED_MODULE_2__["default"], + /** + * @see ./save.js + */ + save: _save__WEBPACK_IMPORTED_MODULE_3__["default"] +}); + +/***/ }), + +/***/ "./src/inspector.js": +/*!**************************!*\ + !*** ./src/inspector.js ***! + \**************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +__webpack_require__.r(__webpack_exports__); +/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); +/* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js"); +/* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react"); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @wordpress/element */ "@wordpress/element"); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n"); +/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @wordpress/hooks */ "@wordpress/hooks"); +/* harmony import */ var _wordpress_hooks__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_hooks__WEBPACK_IMPORTED_MODULE_7__); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @wordpress/components */ "@wordpress/components"); +/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__); + + + + +function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } +function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } + + + + + +var WidgetInspectorControls = function WidgetInspectorControls(props) { + var _props$attributes = props.attributes, + filter_options = _props$attributes.filter_options, + other_options = _props$attributes.other_options, + layout = _props$attributes.layout, + listing_per_page = _props$attributes.listing_per_page, + number_of_columns = _props$attributes.number_of_columns, + search = _props$attributes.search, + pagination = _props$attributes.pagination, + enable_job_filter = _props$attributes.enable_job_filter, + search_placeholder = _props$attributes.search_placeholder, + hide_expired_jobs = _props$attributes.hide_expired_jobs, + setAttributes = props.setAttributes; + var block_appearance_list = []; + var block_job_listing = []; + var specifications = awsmJobsAdmin.awsm_filters_block; + var _useState = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_4__.useState)(false), + _useState2 = (0,_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState, 2), + isProEnabled = _useState2[0], + setIsProEnabled = _useState2[1]; + (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () { + if (specifications.length > 0 && typeof filter_options === "undefined") { + var initialspecs = specifications.map(function (spec) { + return spec.value; + }); + setAttributes({ + filter_options: initialspecs + }); + } + + // Set the pro add-on status + if (typeof awsmJobsAdmin !== "undefined" && awsmJobsAdmin.isProEnabled) { + setIsProEnabled(true); + } + }, []); + var specifications_handler = function specifications_handler(toggleValue, specKey) { + if (typeof filter_options !== "undefined") { + var modfilteroptions = (0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(filter_options); + if (!toggleValue) { + modfilteroptions = modfilteroptions.filter(function (specOption) { + return specOption !== specKey; + }); + } else { + modfilteroptions.push(specKey); + } + setAttributes({ + filter_options: modfilteroptions + }); + } + }; + var other_options_handler = function other_options_handler(toggleValue, specKey) { + if (typeof other_options !== "undefined") { + var modfilteroptions = (0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_1__["default"])(other_options); + if (!toggleValue) { + modfilteroptions = modfilteroptions.filter(function (specOption) { + return specOption !== specKey; + }); + } else { + modfilteroptions.push(specKey); + } + setAttributes({ + other_options: modfilteroptions + }); + } + }; + var onchange_listing_per_page = function onchange_listing_per_page(value) { + var numberValue = parseInt(value, 10); + setAttributes({ + listing_per_page: isNaN(numberValue) ? 0 : numberValue + }); + }; + var onchange_number_of_columns = function onchange_number_of_columns(value) { + var columnsValue = parseInt(value, 10); + setAttributes({ + number_of_columns: isNaN(columnsValue) ? 0 : columnsValue + }); + }; + return (0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_6__.InspectorControls, null, (0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.PanelBody, { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)("Layout Options", "wp-job-openings") + }, (0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.SelectControl, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)("Layout", "wp-job-openings"), + value: layout, + options: [{ + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)("List view", "wp-job-openings"), + value: "list" + }, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)("Grid view", "wp-job-openings"), + value: "grid" + }], + onChange: function onChange(layout) { + return setAttributes({ + layout: layout + }); + } + }), typeof layout !== "undefined" && layout == "grid" && (0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.SelectControl, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)("Columns", "wp-job-openings"), + value: number_of_columns, + options: [{ + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)("1 Column", "wp-job-openings"), + value: "1" + }, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)("2 Columns", "wp-job-openings"), + value: "2" + }, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)("3 Columns", "wp-job-openings"), + value: "3" + }, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)("4 Columns", "wp-job-openings"), + value: "4" + }], + onChange: function onChange(number_of_columns) { + return onchange_number_of_columns(number_of_columns); + } + }), (0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.TextControl, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)("Listings per page", "wp-job-openings"), + value: listing_per_page, + onChange: function onChange(listing_per_page) { + return onchange_listing_per_page(listing_per_page); + } + }), (0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.SelectControl, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)("Pagination", "wp-job-openings"), + value: pagination, + options: [{ + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)("Classic", "wp-job-openings"), + value: "classic" + }, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)("Modern", "wp-job-openings"), + value: "modern" + }], + onChange: function onChange(pagination) { + return setAttributes({ + pagination: pagination + }); + } + }), wp.hooks.doAction('after_awsm_job_appearance', block_appearance_list, props), block_appearance_list), specifications.length > 0 && (0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.PanelBody, { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)("Search & Filters", "wp-job-openings") + }, (0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.ToggleControl, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)("Enable Search", "wp-job-openings"), + checked: search, + onChange: function onChange(search) { + return setAttributes({ + search: search + }); + } + }), search && (0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.TextControl, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)("Search Placeholder", "wp-job-openings"), + value: search_placeholder, + onChange: function onChange(search_placeholder) { + return setAttributes({ + search_placeholder: search_placeholder + }); + }, + placeholder: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)("Search Jobs", "wp-job-openings") + }), (0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.ToggleControl, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)("Enable Filters", "wp-job-openings"), + checked: enable_job_filter, + onChange: function onChange(enable_job_filter) { + return setAttributes({ + enable_job_filter: enable_job_filter + }); + } + }), enable_job_filter && (0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)("h2", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)("Available Filters", "wp-job-openings")), specifications.map(function (spec) { + return (0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.ToggleControl, { + key: spec.key, + label: spec.label, + checked: filter_options.includes(spec.key), + onChange: function onChange(toggleValue) { + return specifications_handler(toggleValue, spec.key); + } + }); + }))), (0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.PanelBody, { + title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)("Job Listing", "wp-job-openings") + }, (0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.ToggleControl, { + label: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)("Hide Expired Jobs", "wp-job-openings"), + checked: hide_expired_jobs, + onChange: function onChange(hide_expired_jobs) { + return setAttributes({ + hide_expired_jobs: hide_expired_jobs + }); + } + }), wp.hooks.doAction('after_awsm_block_job_listing', block_job_listing, props), block_job_listing, (0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)("h2", null, (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_5__.__)("Job Specs in the Listing", "wp-job-openings")), specifications.length > 0 && specifications.map(function (spec) { + return (0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_8__.ToggleControl, { + label: spec.label, + checked: typeof other_options !== "undefined" && other_options.includes(spec.key), + onChange: function onChange(toggleValue) { + return other_options_handler(toggleValue, spec.key); + } + }); + }))); +}; + +// Define the HOC to add custom inspector controls +var withCustomInspectorControls = function withCustomInspectorControls(BlockEdit) { + return function (props) { + if (props.name !== 'wp-job-openings/blocks') { + return (0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)(BlockEdit, _objectSpread({}, props)); + } + return (0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)(BlockEdit, _objectSpread({}, props)), (0,react__WEBPACK_IMPORTED_MODULE_3__.createElement)(WidgetInspectorControls, _objectSpread({}, props))); + }; +}; + +// Add the filter to extend the block's inspector controls +(0,_wordpress_hooks__WEBPACK_IMPORTED_MODULE_7__.addFilter)('editor.BlockEdit', 'awsm-job-block-settings/awsm-block-inspector-controls', withCustomInspectorControls); +/* harmony default export */ __webpack_exports__["default"] = (withCustomInspectorControls); + +/***/ }), + +/***/ "./src/save.js": +/*!*********************!*\ + !*** ./src/save.js ***! + \*********************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": function() { return /* binding */ save; } +/* harmony export */ }); +/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js"); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react"); +/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @wordpress/block-editor */ "@wordpress/block-editor"); +/* harmony import */ var _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__); + + +function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } +function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } +/** + * React hook that is used to mark the block wrapper element. + * It provides all the necessary props like the class name. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-block-editor/#useblockprops + */ + + +/** + * The save function defines the way in which the different attributes should + * be combined into the final markup, which is then serialized by the block + * editor into `post_content`. + * + * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-edit-save/#save + * + * @return {Element} Element to render. + */ +function save() { + return (0,react__WEBPACK_IMPORTED_MODULE_1__.createElement)("p", _objectSpread({}, _wordpress_block_editor__WEBPACK_IMPORTED_MODULE_2__.useBlockProps.save())); +} + +/***/ }), + +/***/ "./src/editor.scss": +/*!*************************!*\ + !*** ./src/editor.scss ***! + \*************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "./src/style.scss": +/*!************************!*\ + !*** ./src/style.scss ***! + \************************/ +/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { + +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ "react": +/*!************************!*\ + !*** external "React" ***! + \************************/ +/***/ (function(module) { + +module.exports = window["React"]; + +/***/ }), + +/***/ "@wordpress/block-editor": +/*!*************************************!*\ + !*** external ["wp","blockEditor"] ***! + \*************************************/ +/***/ (function(module) { + +module.exports = window["wp"]["blockEditor"]; + +/***/ }), + +/***/ "@wordpress/blocks": +/*!********************************!*\ + !*** external ["wp","blocks"] ***! + \********************************/ +/***/ (function(module) { + +module.exports = window["wp"]["blocks"]; + +/***/ }), + +/***/ "@wordpress/components": +/*!************************************!*\ + !*** external ["wp","components"] ***! + \************************************/ +/***/ (function(module) { + +module.exports = window["wp"]["components"]; + +/***/ }), + +/***/ "@wordpress/element": +/*!*********************************!*\ + !*** external ["wp","element"] ***! + \*********************************/ +/***/ (function(module) { + +module.exports = window["wp"]["element"]; + +/***/ }), + +/***/ "@wordpress/hooks": +/*!*******************************!*\ + !*** external ["wp","hooks"] ***! + \*******************************/ +/***/ (function(module) { + +module.exports = window["wp"]["hooks"]; + +/***/ }), + +/***/ "@wordpress/i18n": +/*!******************************!*\ + !*** external ["wp","i18n"] ***! + \******************************/ +/***/ (function(module) { + +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ "@wordpress/server-side-render": +/*!******************************************!*\ + !*** external ["wp","serverSideRender"] ***! + \******************************************/ +/***/ (function(module) { + +module.exports = window["wp"]["serverSideRender"]; + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js": +/*!*********************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js ***! + \*********************************************************************/ +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": function() { return /* binding */ _arrayLikeToArray; } +/* harmony export */ }); +function _arrayLikeToArray(r, a) { + (null == a || a > r.length) && (a = r.length); + for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; + return n; +} + + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js": +/*!*******************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js ***! + \*******************************************************************/ +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": function() { return /* binding */ _arrayWithHoles; } +/* harmony export */ }); +function _arrayWithHoles(r) { + if (Array.isArray(r)) return r; +} + + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js": +/*!**********************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js ***! + \**********************************************************************/ +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": function() { return /* binding */ _arrayWithoutHoles; } +/* harmony export */ }); +/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ "./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js"); + +function _arrayWithoutHoles(r) { + if (Array.isArray(r)) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r); +} + + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js": +/*!*******************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/defineProperty.js ***! + \*******************************************************************/ +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": function() { return /* binding */ _defineProperty; } +/* harmony export */ }); +/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js"); + +function _defineProperty(e, r, t) { + return (r = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r)) in e ? Object.defineProperty(e, r, { + value: t, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[r] = t, e; +} + + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/iterableToArray.js": +/*!********************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js ***! + \********************************************************************/ +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": function() { return /* binding */ _iterableToArray; } +/* harmony export */ }); +function _iterableToArray(r) { + if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); +} + + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js": +/*!*************************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js ***! + \*************************************************************************/ +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": function() { return /* binding */ _iterableToArrayLimit; } +/* harmony export */ }); +function _iterableToArrayLimit(r, l) { + var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; + if (null != t) { + var e, + n, + i, + u, + a = [], + f = !0, + o = !1; + try { + if (i = (t = t.call(r)).next, 0 === l) { + if (Object(t) !== t) return; + f = !1; + } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); + } catch (r) { + o = !0, n = r; + } finally { + try { + if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; + } finally { + if (o) throw n; + } + } + return a; + } +} + + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js": +/*!********************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js ***! + \********************************************************************/ +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": function() { return /* binding */ _nonIterableRest; } +/* harmony export */ }); +function _nonIterableRest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} + + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js": +/*!**********************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js ***! + \**********************************************************************/ +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": function() { return /* binding */ _nonIterableSpread; } +/* harmony export */ }); +function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} + + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js": +/*!******************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js ***! + \******************************************************************/ +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": function() { return /* binding */ _slicedToArray; } +/* harmony export */ }); +/* harmony import */ var _arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithHoles.js */ "./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js"); +/* harmony import */ var _iterableToArrayLimit_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArrayLimit.js */ "./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js"); +/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"); +/* harmony import */ var _nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableRest.js */ "./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js"); + + + + +function _slicedToArray(r, e) { + return (0,_arrayWithHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r) || (0,_iterableToArrayLimit_js__WEBPACK_IMPORTED_MODULE_1__["default"])(r, e) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(r, e) || (0,_nonIterableRest_js__WEBPACK_IMPORTED_MODULE_3__["default"])(); +} + + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js": +/*!**********************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js ***! + \**********************************************************************/ +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": function() { return /* binding */ _toConsumableArray; } +/* harmony export */ }); +/* harmony import */ var _arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayWithoutHoles.js */ "./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js"); +/* harmony import */ var _iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./iterableToArray.js */ "./node_modules/@babel/runtime/helpers/esm/iterableToArray.js"); +/* harmony import */ var _unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"); +/* harmony import */ var _nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nonIterableSpread.js */ "./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js"); + + + + +function _toConsumableArray(r) { + return (0,_arrayWithoutHoles_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r) || (0,_iterableToArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(r) || (0,_unsupportedIterableToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(r) || (0,_nonIterableSpread_js__WEBPACK_IMPORTED_MODULE_3__["default"])(); +} + + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/toPrimitive.js": +/*!****************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js ***! + \****************************************************************/ +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": function() { return /* binding */ toPrimitive; } +/* harmony export */ }); +/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runtime/helpers/esm/typeof.js"); + +function toPrimitive(t, r) { + if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(t) || !t) return t; + var e = t[Symbol.toPrimitive]; + if (void 0 !== e) { + var i = e.call(t, r || "default"); + if ("object" != (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i)) return i; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return ("string" === r ? String : Number)(t); +} + + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js": +/*!******************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js ***! + \******************************************************************/ +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": function() { return /* binding */ toPropertyKey; } +/* harmony export */ }); +/* harmony import */ var _typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./typeof.js */ "./node_modules/@babel/runtime/helpers/esm/typeof.js"); +/* harmony import */ var _toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./toPrimitive.js */ "./node_modules/@babel/runtime/helpers/esm/toPrimitive.js"); + + +function toPropertyKey(t) { + var i = (0,_toPrimitive_js__WEBPACK_IMPORTED_MODULE_1__["default"])(t, "string"); + return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i) ? i : i + ""; +} + + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/typeof.js": +/*!***********************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/typeof.js ***! + \***********************************************************/ +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": function() { return /* binding */ _typeof; } +/* harmony export */ }); +function _typeof(o) { + "@babel/helpers - typeof"; + + return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { + return typeof o; + } : function (o) { + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; + }, _typeof(o); +} + + +/***/ }), + +/***/ "./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js": +/*!*******************************************************************************!*\ + !*** ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js ***! + \*******************************************************************************/ +/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) { + +__webpack_require__.r(__webpack_exports__); +/* harmony export */ __webpack_require__.d(__webpack_exports__, { +/* harmony export */ "default": function() { return /* binding */ _unsupportedIterableToArray; } +/* harmony export */ }); +/* harmony import */ var _arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arrayLikeToArray.js */ "./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js"); + +function _unsupportedIterableToArray(r, a) { + if (r) { + if ("string" == typeof r) return (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r, a); + var t = {}.toString.call(r).slice(8, -1); + return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? (0,_arrayLikeToArray_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r, a) : void 0; + } +} + + +/***/ }), + +/***/ "./src/block.json": +/*!************************!*\ + !*** ./src/block.json ***! + \************************/ +/***/ (function(module) { + +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"wp-job-openings/blocks","version":"1.0.0","title":"","category":"","icon":"","description":"","attributes":{"filter_options":{"type":"array","default":[]},"select_filter_full":{"type":"boolean","default":false},"other_options":{"type":"array","default":[]},"layout":{"type":"string","default":"list"},"listing_per_page":{"type":"number","default":10},"number_of_columns":{"type":"number","default":3},"pagination":{"type":"string","default":"modern"},"hide_expired_jobs":{"type":"boolean","default":false},"search":{"type":"boolean","default":false},"search_placeholder":{"type":"string","default":""},"enable_job_filter":{"type":"boolean","default":true}},"example":{},"supports":{"html":false},"textdomain":"wp-job-openings","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js"}'); + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = __webpack_modules__; +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/chunk loaded */ +/******/ !function() { +/******/ var deferred = []; +/******/ __webpack_require__.O = function(result, chunkIds, fn, priority) { +/******/ if(chunkIds) { +/******/ priority = priority || 0; +/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1]; +/******/ deferred[i] = [chunkIds, fn, priority]; +/******/ return; +/******/ } +/******/ var notFulfilled = Infinity; +/******/ for (var i = 0; i < deferred.length; i++) { +/******/ var chunkIds = deferred[i][0]; +/******/ var fn = deferred[i][1]; +/******/ var priority = deferred[i][2]; +/******/ var fulfilled = true; +/******/ for (var j = 0; j < chunkIds.length; j++) { +/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) { +/******/ chunkIds.splice(j--, 1); +/******/ } else { +/******/ fulfilled = false; +/******/ if(priority < notFulfilled) notFulfilled = priority; +/******/ } +/******/ } +/******/ if(fulfilled) { +/******/ deferred.splice(i--, 1) +/******/ var r = fn(); +/******/ if (r !== undefined) result = r; +/******/ } +/******/ } +/******/ return result; +/******/ }; +/******/ }(); +/******/ +/******/ /* webpack/runtime/compat get default export */ +/******/ !function() { +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function() { return module['default']; } : +/******/ function() { return module; }; +/******/ __webpack_require__.d(getter, { a: getter }); +/******/ return getter; +/******/ }; +/******/ }(); +/******/ +/******/ /* webpack/runtime/define property getters */ +/******/ !function() { +/******/ // define getter functions for harmony exports +/******/ __webpack_require__.d = function(exports, definition) { +/******/ for(var key in definition) { +/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { +/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); +/******/ } +/******/ } +/******/ }; +/******/ }(); +/******/ +/******/ /* webpack/runtime/hasOwnProperty shorthand */ +/******/ !function() { +/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } +/******/ }(); +/******/ +/******/ /* webpack/runtime/make namespace object */ +/******/ !function() { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ }(); +/******/ +/******/ /* webpack/runtime/jsonp chunk loading */ +/******/ !function() { +/******/ // no baseURI +/******/ +/******/ // object to store loaded and loading chunks +/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched +/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded +/******/ var installedChunks = { +/******/ "index": 0, +/******/ "./style-index": 0 +/******/ }; +/******/ +/******/ // no chunk on demand loading +/******/ +/******/ // no prefetching +/******/ +/******/ // no preloaded +/******/ +/******/ // no HMR +/******/ +/******/ // no HMR manifest +/******/ +/******/ __webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; }; +/******/ +/******/ // install a JSONP callback for chunk loading +/******/ var webpackJsonpCallback = function(parentChunkLoadingFunction, data) { +/******/ var chunkIds = data[0]; +/******/ var moreModules = data[1]; +/******/ var runtime = data[2]; +/******/ // add "moreModules" to the modules object, +/******/ // then flag all "chunkIds" as loaded and fire callback +/******/ var moduleId, chunkId, i = 0; +/******/ if(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) { +/******/ for(moduleId in moreModules) { +/******/ if(__webpack_require__.o(moreModules, moduleId)) { +/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; +/******/ } +/******/ } +/******/ if(runtime) var result = runtime(__webpack_require__); +/******/ } +/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data); +/******/ for(;i < chunkIds.length; i++) { +/******/ chunkId = chunkIds[i]; +/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { +/******/ installedChunks[chunkId][0](); +/******/ } +/******/ installedChunks[chunkId] = 0; +/******/ } +/******/ return __webpack_require__.O(result); +/******/ } +/******/ +/******/ var chunkLoadingGlobal = self["webpackChunkjoblistings"] = self["webpackChunkjoblistings"] || []; +/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0)); +/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal)); +/******/ }(); +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module depends on other loaded chunks and execution need to be delayed +/******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["./style-index"], function() { return __webpack_require__("./src/index.js"); }) +/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__); +/******/ +/******/ })() +; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/blocks/build/index.js.map b/blocks/build/index.js.map new file mode 100644 index 00000000..1d9401a4 --- /dev/null +++ b/blocks/build/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACqC;;AAErC;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACuB;;AAEvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACwD;AACK;AACX;AACK;AAExC,SAASM,IAAIA,CAACC,KAAK,EAAE;EAChC,IACkBC,cAAc,GAE5BD,KAAK,CAFLE,UAAU,CAAID,cAAc;IAC5BE,aAAa,GACbH,KAAK,CADLG,aAAa;EAGjB,IAAMC,UAAU,GAAGV,sEAAa,CAAC,CAAC;EAElC,IAAIW,cAAc,GAAGC,aAAa,CAACC,kBAAkB;EACrDF,cAAc,GAAGA,cAAc,CAACG,MAAM,CAAC,UAAAC,IAAI,EAAI;IAC3C,IACI,OAAOR,cAAc,KAAK,WAAW,IACrCA,cAAc,CAACS,QAAQ,CAACD,IAAI,CAACE,GAAG,CAAC,EACnC;MACE,OAAOF,IAAI;IACf;EACJ,CAAC,CAAC;;EAEF;EACA,IAAMG,WAAW,GAAG,SAAdA,WAAWA,CAAGC,KAAK,EAAI;IACzBA,KAAK,CAACC,cAAc,CAAC,CAAC;IACtBD,KAAK,CAACE,eAAe,CAAC,CAAC;EAC3B,CAAC;EAED,IAAMC,YAAY,GAAG,SAAfA,YAAYA,CAAA,EAAS;IACvB,IAAMC,YAAY,GAAGC,QAAQ,CAACC,gBAAgB,CAC1C,sDACJ,CAAC;IACDF,YAAY,CAACG,OAAO,CAAC,UAAAC,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AACH;;;;;;;;;;;;;;;;ACRqD;AACrD;AACA;AACA,qCAAqC,gEAAgB;AACrD,cAAc;AACd,+LAA+L,gEAAgB;AAC/M;AACA;;;;;;;;;;;;;;;;;UCPA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA;WACA;WACA,kBAAkB,qBAAqB;WACvC,oHAAoH,iDAAiD;WACrK;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;WC7BA;WACA;WACA;WACA,eAAe,4BAA4B;WAC3C,eAAe;WACf,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA,8CAA8C;;;;;WCA9C;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA,8CAA8C;;WAE9C;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,iCAAiC,mCAAmC;WACpE;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UEnDA;UACA;UACA;UACA,2FAA2F,+CAA+C;UAC1I","sources":["webpack://joblistings/./src/edit.js","webpack://joblistings/./src/icon.js","webpack://joblistings/./src/index.js","webpack://joblistings/./src/inspector.js","webpack://joblistings/./src/save.js","webpack://joblistings/./src/editor.scss?0339","webpack://joblistings/./src/style.scss?75bd","webpack://joblistings/external window \"React\"","webpack://joblistings/external window [\"wp\",\"blockEditor\"]","webpack://joblistings/external window [\"wp\",\"blocks\"]","webpack://joblistings/external window [\"wp\",\"components\"]","webpack://joblistings/external window [\"wp\",\"element\"]","webpack://joblistings/external window [\"wp\",\"hooks\"]","webpack://joblistings/external window [\"wp\",\"i18n\"]","webpack://joblistings/external window [\"wp\",\"serverSideRender\"]","webpack://joblistings/./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","webpack://joblistings/./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","webpack://joblistings/./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","webpack://joblistings/./node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack://joblistings/./node_modules/@babel/runtime/helpers/esm/iterableToArray.js","webpack://joblistings/./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","webpack://joblistings/./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","webpack://joblistings/./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","webpack://joblistings/./node_modules/@babel/runtime/helpers/esm/slicedToArray.js","webpack://joblistings/./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","webpack://joblistings/./node_modules/@babel/runtime/helpers/esm/toPrimitive.js","webpack://joblistings/./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","webpack://joblistings/./node_modules/@babel/runtime/helpers/esm/typeof.js","webpack://joblistings/./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","webpack://joblistings/webpack/bootstrap","webpack://joblistings/webpack/runtime/chunk loaded","webpack://joblistings/webpack/runtime/compat get default export","webpack://joblistings/webpack/runtime/define property getters","webpack://joblistings/webpack/runtime/hasOwnProperty shorthand","webpack://joblistings/webpack/runtime/make namespace object","webpack://joblistings/webpack/runtime/jsonp chunk loading","webpack://joblistings/webpack/before-startup","webpack://joblistings/webpack/startup","webpack://joblistings/webpack/after-startup"],"sourcesContent":["/**\n * Retrieves the translation of text.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-i18n/\n */\nimport { __ } from \"@wordpress/i18n\";\n\n/**\n * React hook that is used to mark the block wrapper element.\n * It provides all the necessary props like the class name.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-block-editor/#useblockprops\n */\n// import { useBlockProps } from '@wordpress/block-editor';\n\n/**\n * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files.\n * Those files can contain any CSS code that gets applied to the editor.\n *\n * @see https://www.npmjs.com/package/@wordpress/scripts#using-css\n */\nimport \"./editor.scss\";\n\n/**\n * The edit function describes the structure of your block in the context of the\n * editor. This represents what the editor will render when the block is used.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-edit-save/#edit\n *\n * @return {Element} Element to render.\n */\nimport { useBlockProps } from \"@wordpress/block-editor\";\nimport ServerSideRender from \"@wordpress/server-side-render\";\nimport WidgetInspectorControls from \"./inspector\";\nimport { useEffect, useRef } from \"@wordpress/element\";\n\nexport default function Edit(props) {\n const {\n attributes: { filter_options },\n setAttributes\n } = props;\n\n const blockProps = useBlockProps();\n\n let specifications = awsmJobsAdmin.awsm_filters_block;\n specifications = specifications.filter(spec => {\n if (\n typeof filter_options !== \"undefined\" &&\n filter_options.includes(spec.key)\n ) {\n return spec;\n }\n });\n\n // Event handler to ignore clicks\n const handleClick = event => {\n event.preventDefault();\n event.stopPropagation();\n };\n\n const handleResize = () => {\n const filtersWraps = document.querySelectorAll(\n \".awsm-b-filter-wrap:not(.awsm-no-search-filter-wrap)\"\n );\n filtersWraps.forEach(wrapper => {\n const filterItems = wrapper.querySelectorAll(\".awsm-b-filter-item\");\n if (filterItems.length > 0) {\n const filterFirstTop = filterItems[0].getBoundingClientRect().top;\n const filterLastTop = filterItems[\n filterItems.length - 1\n ].getBoundingClientRect().top;\n if (window.innerWidth < 768) {\n wrapper.classList.remove(\"awsm-b-full-width-search-filter-wrap\");\n return;\n }\n if (filterLastTop > filterFirstTop) {\n wrapper.classList.add(\"awsm-b-full-width-search-filter-wrap\");\n }\n }\n });\n };\n\n const checkElement = () => {\n const dynamicElement = document.querySelector(\".awsm-b-job-wrap\");\n if (dynamicElement) {\n handleResize();\n } else {\n setTimeout(checkElement, 300);\n }\n };\n\n useEffect(() => {\n checkElement();\n handleResize();\n\n return () => {\n window.removeEventListener(\"resize\", handleResize);\n };\n }, []);\n useEffect(() => {\n }, [props.attributes.enable_job_filter, props.attributes.filter_options]);\n\n const checkFilters = () => {\n const wrapper = document.querySelector(\n \"#block-\" + props.clientId + \" .awsm-b-filter-wrap\"\n );\n\n if (!wrapper) {\n return;\n }\n const filterItems = document.querySelectorAll(\"#block-\" + props.clientId + \" .awsm-b-filter-item\");\n\n if (filterItems.length > 0) {\n const filterFirstTop = filterItems[0].getBoundingClientRect().top;\n const filterLastTop = filterItems[\n filterItems.length - 1\n ].getBoundingClientRect().top;\n if (window.innerWidth < 768) {\n wrapper.classList.remove(\"awsm-b-full-width-search-filter-wrap\");\n return;\n }\n if (filterLastTop > filterFirstTop) {\n wrapper.classList.add(\"awsm-b-full-width-search-filter-wrap\");\n }\n }\n };\n\n useEffect(() => {\n const observer = new MutationObserver(() => {\n checkFilters();\n });\n\n const observeItem = document.querySelector(\"#block-\" + props.clientId);\n \n if(observeItem) {\n observer.observe( observeItem, { childList: true, subtree: true });\n }\n\n () => {\n observer.disconnect();\n }\n }, []);\n\n return (\n
\n \n \n
\n );\n}\n","const icon = {\n block: \n Job Listings\n \n \n \n \n \n \n \n\n};\nexport default icon;","/**\n * Registers a new block provided a unique name and an object defining its behavior.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/\n */\nimport { registerBlockType } from '@wordpress/blocks';\n\n/**\n * Lets webpack process CSS, SASS or SCSS files referenced in JavaScript files.\n * All files containing `style` keyword are bundled together. The code used\n * gets applied both to the front of your site and to the editor.\n *\n * @see https://www.npmjs.com/package/@wordpress/scripts#using-css\n */\nimport './style.scss';\n\n/**\n * Internal dependencies\n */\nimport Edit from './edit';\nimport save from './save';\nimport icon from './icon';\nimport metadata from './block.json';\nimport { __ } from \"@wordpress/i18n\";\n\n/**\n * Every block starts by registering a new block type definition.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/\n */\nregisterBlockType( metadata.name, {\n\ttitle: __( 'Job Listings', 'wp-job-openings' ), // Block title.\n\tdescription: __( 'Super simple Job Listing plugin to manage Job Openings and Applicants on your WordPress site.', 'wp-job-openings' ), // Block description\n\ticon: icon.block, // Block icon\n\tcategory: 'widgets', // Block category,\n\tkeywords: [ __( 'jobs listings', 'wp-job-openings' ), __( 'add jobs', 'wp-job-openings' ), __( 'job application', 'wp-job-openings' ) ], // Access the block easily with keyword aliases\n\t/**\n\t * @see ./edit.js\n\t */\n\tedit: Edit,\n\n\t/**\n\t * @see ./save.js\n\t */\n\tsave,\n} );\n","import { useEffect, Fragment, useState } from \"@wordpress/element\";\nimport { __ } from \"@wordpress/i18n\";\nimport { InspectorControls, BlockEdit } from \"@wordpress/block-editor\";\nimport { addFilter } from '@wordpress/hooks';\nimport {\n\tPanelBody,\n\tToggleControl,\n\tTextControl,\n\tSelectControl\n} from \"@wordpress/components\";\n\nconst WidgetInspectorControls = props => {\n\tconst {\n\t\tattributes: {\n\t\t\tfilter_options,\n\t\t\tother_options,\n\t\t\tlayout,\n\t\t\tlisting_per_page,\n\t\t\tnumber_of_columns,\n\t\t\tsearch,\n\t\t\tpagination,\n\t\t\tenable_job_filter,\n\t\t\tsearch_placeholder,\n\t\t\thide_expired_jobs\n\t\t},\n\t\tsetAttributes\n\t} = props;\n\n\tlet block_appearance_list = [];\n\tlet block_job_listing = [];\n\n\tconst specifications = awsmJobsAdmin.awsm_filters_block;\n\tconst [isProEnabled, setIsProEnabled] = useState(false);\n\n\tuseEffect(() => {\n\t\tif (specifications.length > 0 && typeof filter_options === \"undefined\") {\n\t\t\tlet initialspecs = specifications.map(spec => spec.value);\n\t\t\tsetAttributes({ filter_options: initialspecs });\n\t\t}\n\n\t\t// Set the pro add-on status\n\t\tif (typeof awsmJobsAdmin !== \"undefined\" && awsmJobsAdmin.isProEnabled) {\n\t\t\tsetIsProEnabled(true);\n\t\t}\n\t}, []);\n\n\tconst specifications_handler = (toggleValue, specKey) => {\n\t\tif (typeof filter_options !== \"undefined\") {\n\t\t\tlet modfilteroptions = [...filter_options];\n\t\t\tif (!toggleValue) {\n\t\t\t\tmodfilteroptions = modfilteroptions.filter(\n\t\t\t\t\tspecOption => specOption !== specKey\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tmodfilteroptions.push(specKey);\n\t\t\t}\n\t\t\tsetAttributes({ filter_options: modfilteroptions });\n\t\t}\n\t};\n\tconst other_options_handler = (toggleValue, specKey) => {\n\t\tif (typeof other_options !== \"undefined\") {\n\t\t\tlet modfilteroptions = [...other_options];\n\t\t\tif (!toggleValue) {\n\t\t\t\tmodfilteroptions = modfilteroptions.filter(\n\t\t\t\t\tspecOption => specOption !== specKey\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tmodfilteroptions.push(specKey);\n\t\t\t}\n\t\t\tsetAttributes({ other_options: modfilteroptions });\n\t\t}\n\t};\n\n\tconst onchange_listing_per_page = (value) => {\n\t\tconst numberValue = parseInt(value, 10);\n\t\tsetAttributes({ listing_per_page: isNaN(numberValue) ? 0 : numberValue });\n\t};\n\n\tconst onchange_number_of_columns = (value) => {\n\t\tconst columnsValue = parseInt(value, 10);\t\t\n\t\tsetAttributes({ number_of_columns: isNaN(columnsValue) ? 0 : columnsValue });\n\t};\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t setAttributes({ layout })}\n\t\t\t\t/>\n\n\t\t\t\t{typeof layout !== \"undefined\" && layout == \"grid\" && (\n\t\t\t\t\t onchange_number_of_columns(number_of_columns)}\n\t\t\t\t\t/>\n\t\t\t\t)} \n\n\t\t\t\t onchange_listing_per_page(listing_per_page)}\n\t\t\t\t/>\n\n\t\t\t\t setAttributes({ pagination })}\n\t\t\t\t/>\n\n\t\t\t\t{ wp.hooks.doAction( 'after_awsm_job_appearance',block_appearance_list,props ) }\n\t\t\t\t{ block_appearance_list }\n\t\t\t\n\t\t\t{specifications.length > 0 && (\n\t\t\t\t\n\t\t\t\t\t setAttributes({ search })}\n\t\t\t\t\t/>\n\n\t\t\t\t\t{search && (\n\t\t\t\t\t\t setAttributes({ search_placeholder })}\n\t\t\t\t\t\t\tplaceholder={__(\"Search Jobs\", \"wp-job-openings\")}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t setAttributes({ enable_job_filter })}\n\t\t\t\t\t/>\n\n\t\t\t\t\t{enable_job_filter && (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t

{__(\"Available Filters\", \"wp-job-openings\")}

\n\t\t\t\t\t\t\t{specifications.map(spec => (\n\t\t\t\t\t\t\t\t specifications_handler(toggleValue, spec.key)}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\n\t\t\t\t\t)}\n\n\t\t\t\t\n\t\t\t\t
\n\t\t\t)}\n\n\t\t\t\n\t\t\t\t setAttributes({ hide_expired_jobs })}\n\t\t\t\t/>\n\t\t\t\t{ wp.hooks.doAction( 'after_awsm_block_job_listing',block_job_listing,props ) }\n\t\t\t\t{ block_job_listing }\n\n\t\t\t\t

{__(\"Job Specs in the Listing\", \"wp-job-openings\")}

\n\t\t\t\t{specifications.length > 0 &&\n\t\t\t\t\tspecifications.map(spec => {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tother_options_handler(toggleValue, spec.key)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t);\n\t\t\t\t})}\t\t\t\t\n\t\t\t
\n\t\t
\n\t);\n};\n\n// Define the HOC to add custom inspector controls\nconst withCustomInspectorControls = (BlockEdit) => (props) => {\n\tif (props.name !== 'wp-job-openings/blocks') {\n\t\treturn ;\n\t}\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t);\n};\n\n// Add the filter to extend the block's inspector controls\naddFilter(\n\t'editor.BlockEdit',\n\t'awsm-job-block-settings/awsm-block-inspector-controls',\n\twithCustomInspectorControls\n);\n\nexport default withCustomInspectorControls;\n","/**\n * React hook that is used to mark the block wrapper element.\n * It provides all the necessary props like the class name.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-block-editor/#useblockprops\n */\nimport { useBlockProps } from '@wordpress/block-editor';\n\n/**\n * The save function defines the way in which the different attributes should\n * be combined into the final markup, which is then serialized by the block\n * editor into `post_content`.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-edit-save/#save\n *\n * @return {Element} Element to render.\n */\nexport default function save() { \n\treturn ( \n\t\t

\n\t\t

\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"React\"];","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"hooks\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"serverSideRender\"];","function _arrayLikeToArray(r, a) {\n (null == a || a > r.length) && (a = r.length);\n for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];\n return n;\n}\nexport { _arrayLikeToArray as default };","function _arrayWithHoles(r) {\n if (Array.isArray(r)) return r;\n}\nexport { _arrayWithHoles as default };","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nfunction _arrayWithoutHoles(r) {\n if (Array.isArray(r)) return arrayLikeToArray(r);\n}\nexport { _arrayWithoutHoles as default };","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperty(e, r, t) {\n return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n}\nexport { _defineProperty as default };","function _iterableToArray(r) {\n if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r);\n}\nexport { _iterableToArray as default };","function _iterableToArrayLimit(r, l) {\n var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (null != t) {\n var e,\n n,\n i,\n u,\n a = [],\n f = !0,\n o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) return;\n f = !1;\n } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return;\n } finally {\n if (o) throw n;\n }\n }\n return a;\n }\n}\nexport { _iterableToArrayLimit as default };","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nexport { _nonIterableRest as default };","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nexport { _nonIterableSpread as default };","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nfunction _slicedToArray(r, e) {\n return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();\n}\nexport { _slicedToArray as default };","import arrayWithoutHoles from \"./arrayWithoutHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableSpread from \"./nonIterableSpread.js\";\nfunction _toConsumableArray(r) {\n return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread();\n}\nexport { _toConsumableArray as default };","import _typeof from \"./typeof.js\";\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nexport { toPrimitive as default };","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nexport { toPropertyKey as default };","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}\nexport { _typeof as default };","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nfunction _unsupportedIterableToArray(r, a) {\n if (r) {\n if (\"string\" == typeof r) return arrayLikeToArray(r, a);\n var t = {}.toString.call(r).slice(8, -1);\n return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;\n }\n}\nexport { _unsupportedIterableToArray as default };","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"index\": 0,\n\t\"./style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkjoblistings\"] = self[\"webpackChunkjoblistings\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"./style-index\"], function() { return __webpack_require__(\"./src/index.js\"); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","useBlockProps","ServerSideRender","WidgetInspectorControls","useEffect","useRef","Edit","props","filter_options","attributes","setAttributes","blockProps","specifications","awsmJobsAdmin","awsm_filters_block","filter","spec","includes","key","handleClick","event","preventDefault","stopPropagation","handleResize","filtersWraps","document","querySelectorAll","forEach","wrapper","filterItems","length","filterFirstTop","getBoundingClientRect","top","filterLastTop","window","innerWidth","classList","remove","add","checkElement","dynamicElement","querySelector","setTimeout","removeEventListener","enable_job_filter","checkFilters","clientId","observer","MutationObserver","observeItem","observe","childList","subtree","disconnect","createElement","_objectSpread","onClick","block","icon","width","height","viewBox","version","id","stroke","fill","transform","d","registerBlockType","save","metadata","name","title","description","category","keywords","edit","Fragment","useState","InspectorControls","BlockEdit","addFilter","PanelBody","ToggleControl","TextControl","SelectControl","_props$attributes","other_options","layout","listing_per_page","number_of_columns","search","pagination","search_placeholder","hide_expired_jobs","block_appearance_list","block_job_listing","_useState","_useState2","_slicedToArray","isProEnabled","setIsProEnabled","initialspecs","map","value","specifications_handler","toggleValue","specKey","modfilteroptions","_toConsumableArray","specOption","push","other_options_handler","onchange_listing_per_page","numberValue","parseInt","isNaN","onchange_number_of_columns","columnsValue","label","options","onChange","wp","hooks","doAction","checked","placeholder","withCustomInspectorControls"],"sourceRoot":""} \ No newline at end of file diff --git a/blocks/build/style-index.css b/blocks/build/style-index.css index 78d6c552..b479270e 100644 --- a/blocks/build/style-index.css +++ b/blocks/build/style-index.css @@ -1 +1,775 @@ -.wp-block-create-block-wjo-block{background-color:#21759b;border:1px dotted red;color:#fff;padding:2px}.awsm-b-row{display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex;display:flexbox;-webkit-flex-flow:row wrap;margin:0 -15px;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap}.awsm-b-row,.awsm-b-row *,.awsm-b-row :after,.awsm-b-row :before{-webkit-box-sizing:border-box;box-sizing:border-box}.awsm-b-grid-item{display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex;float:left;padding:0 15px!important;width:33.333%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-flex-direction:column}.awsm-b-grid-col-4 .awsm-b-grid-item{width:25%}.awsm-b-grid-col-2 .awsm-b-grid-item{width:50%}.awsm-b-grid-col .awsm-b-grid-item{width:100%}.awsm-b-job-hide{display:none!important}.awsm-job-show{display:block!important}.awsm-b-job-item{background:#fff;font-size:14px;padding:20px}a.awsm-b-job-item{text-decoration:none!important}.awsm-b-grid-item .awsm-b-job-item{border:1px solid #dddfe3;border-radius:2px;-webkit-box-shadow:0 1px 4px 0 rgba(0,0,0,.05);box-shadow:0 1px 4px 0 rgba(0,0,0,.05);display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex;margin-bottom:30px;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-flex-direction:column;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-webkit-flex-grow:1;-webkit-transition:all .3s ease;transition:all .3s ease}.awsm-b-grid-item .awsm-b-job-item:focus,.awsm-b-grid-item .awsm-b-job-item:hover{-webkit-box-shadow:0 3px 15px -5px rgba(0,0,0,.2);box-shadow:0 3px 15px -5px rgba(0,0,0,.2)}.awsm-b-grid-item .awsm-job-featured-image{margin-bottom:14px}.awsm-b-job-item h2.awsm-b-job-post-title{font-size:18px;margin:0 0 15px;text-align:left}.awsm-b-job-item h2.awsm-b-job-post-title a{font-size:18px}.awsm-b-grid-item .awsm-job-info{margin-bottom:10px;min-height:83px}.awsm-b-grid-item .awsm-job-info p{margin:0 0 8px}.awsm-b-job-wrap:after{clear:both;content:"";display:table}.awsm-b-filter-wrap,.awsm-b-filter-wrap *{-webkit-box-sizing:border-box;box-sizing:border-box}.awsm-b-filter-wrap{margin:0 -10px 20px}.awsm-b-filter-wrap form{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.awsm-b-filter-wrap .awsm-b-filter-items{display:none}.awsm-b-filter-wrap.awsm-b-full-width-search-filter-wrap .awsm-b-filter-item-search,.awsm-b-filter-wrap.awsm-b-full-width-search-filter-wrap .awsm-b-filter-items,.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-items{width:100%}.awsm-b-filter-toggle{border:1px solid #ccc;border-radius:4px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:wrap;-ms-flex-flow:wrap;flex-flow:wrap;margin:0 10px 10px;outline:none!important;padding:12px;width:46px}.awsm-b-filter-toggle.awsm-on{background:#ccc}.awsm-b-filter-toggle svg{height:20px;width:20px}.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-toggle{width:100%;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;text-decoration:none}.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-toggle svg{height:22px;width:22px}@media(min-width:768px){.awsm-b-filter-wrap .awsm-b-filter-items{display:-webkit-box!important;display:-webkit-flex!important;display:-ms-flexbox!important;display:flex!important;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;width:calc(100% - 250px)}.awsm-b-filter-toggle{display:none}.awsm-b-filter-item-search{width:250px}}.awsm-b-filter-wrap .awsm-b-filter-item{padding:0 10px 10px}.awsm-b-filter-item-search{padding:0 10px 10px;position:relative}@media(max-width:768px){.awsm-b-filter-wrap .awsm-b-filter-items{width:100%}.awsm-b-filter-item-search{width:calc(100% - 66px)}.awsm-b-filter-wrap .awsm-b-filter-item .awsm-selectric-wrapper{min-width:100%}}.awsm-b-filter-wrap .awsm-b-filter-item .awsm-b-job-form-control{min-height:48px;padding-right:58px}.awsm-b-filter-item-search .awsm-b-job-form-control{min-height:48px;padding-right:48px}.awsm-b-filter-item-search-in{position:relative}.awsm-b-filter-item-search .awsm-b-job-search-icon-wrapper{color:#ccc;cursor:pointer;font-size:16px;height:100%;line-height:48px;position:absolute;right:0;text-align:center;top:0;width:48px}.awsm-b-jobs-none-container{padding:25px}.awsm-b-jobs-none-container p{margin:0;padding:5px}.awsm-b-row .awsm-b-jobs-pagination{padding:0 15px;width:100%}.awsm-b-jobs-pagination{float:left;width:100%}.awsm-b-load-more-main a.awsm-b-load-more,.awsm-load-more-classic a.page-numbers{background:#fff;border:1px solid #dddfe3;-webkit-box-shadow:0 1px 4px 0 rgba(0,0,0,.05);box-shadow:0 1px 4px 0 rgba(0,0,0,.05);display:block;margin:0!important;outline:none!important;padding:20px;text-align:center;text-decoration:none!important;-webkit-transition:all .3s ease;transition:all .3s ease}.awsm-load-more-classic a.page-numbers,.awsm-load-more-classic span.page-numbers{font-size:90%;padding:5px 10px}.awsm-load-more-classic{text-align:center}.awsm-b-load-more-main a.awsm-load-more:focus,.awsm-b-load-more-main a.awsm-load-more:hover,.awsm-load-more-classic a.page-numbers:focus,.awsm-load-more-classic a.page-numbers:hover{-webkit-box-shadow:0 3px 15px -5px rgba(0,0,0,.2);box-shadow:0 3px 15px -5px rgba(0,0,0,.2)}.awsm-b-jobs-pagination.awsm-load-more-classic ul{list-style:none;margin:0;padding:0}.awsm-b-jobs-pagination.awsm-load-more-classic ul li{display:inline-block}.awsm-b-lists{border:1px solid #ededed}.awsm-b-list-item{width:100%}.awsm-b-list-item h2.awsm-job-b-post-title{margin-bottom:0}.awsm-b-list-item .awsm-job-featured-image{float:left;margin-right:10px}.awsm-b-list-item .awsm-job-featured-image img{height:50px;width:50px}.awsm-b-list-item .awsm-b-job-item{border-bottom:1px solid rgba(0,0,0,.13)}.awsm-b-list-item .awsm-b-job-item:after{clear:both;content:"";display:table}.awsm-b-list-left-col{float:left;width:50%}.awsm-b-list-right-col{float:left;text-align:right;width:50%}.awsm-b-list-item .awsm-job-specification-wrapper{display:inline-block;vertical-align:middle}.awsm-b-list-item .awsm-job-specification-item{display:inline-block;margin:0 15px 0 0;vertical-align:middle}a.awsm-b-job-item .awsm-job-specification-item{color:#4c4c4c}.awsm-b-list-item .awsm-job-more-container{display:inline-block;vertical-align:middle}.awsm-job-more-container .awsm-job-more span:before{content:"→"}.awsm-b-lists .awsm-b-jobs-pagination{margin-top:30px}.awsm-job-specification-item>[class^=awsm-job-icon-]{margin-right:6px}.awsm-job-specification-term:after{content:", "}.awsm-job-specification-term:last-child:after{content:""}.awsm-job-single-wrap,.awsm-job-single-wrap *,.awsm-job-single-wrap :after,.awsm-job-single-wrap :before{-webkit-box-sizing:border-box;box-sizing:border-box}.awsm-job-single-wrap{margin-bottom:1.3em}.awsm-job-single-wrap:after{clear:both;content:"";display:table}.awsm-job-content{padding-bottom:32px}.awsm-job-single-wrap.awsm-col-2 .awsm-job-content{float:left;padding-right:15px;width:55%}.awsm-job-single-wrap.awsm-col-2 .awsm-job-form{float:left;padding-left:15px;width:45%}.awsm-job-head,.awsm_job_spec_above_content{margin-bottom:20px}.awsm-job-head h1{margin:0 0 20px}.awsm-job-list-info span{margin-right:10px}.awsm-job-single-wrap .awsm-job-expiration-label{font-weight:700}.awsm-job-form-inner{background:#fff;border:1px solid #dddfe3;padding:35px}.awsm-job-form-inner h2{margin:0 0 30px}.awsm-job-form-group{margin-bottom:20px}.awsm-job-form-group input[type=checkbox],.awsm-job-form-group input[type=radio]{margin-right:5px}.awsm-job-form-group label{display:block;margin-bottom:10px}.awsm-job-form-options-container label,.awsm-job-inline-group label{display:inline;font-weight:400}.awsm-b-job-form-control{display:block;width:100%}.awsm-job-form-options-container span{display:inline-block;margin-bottom:10px;margin-left:10px}.awsm-job-submit{background:#0195ff;border:1px solid #0195ff;color:#fff;padding:10px 30px}.awsm-job-submit:focus,.awsm-job-submit:hover{background:rgba(0,0,0,0);color:#0195ff}.awsm-job-form-error{color:#db4c4c;font-weight:500}.awsm-b-job-form-control.awsm-job-form-error,.awsm-b-job-form-control.awsm-job-form-error:focus{border:1px solid #db4c4c}.awsm-error-message,.awsm-success-message{padding:12px 25px}.awsm-error-message p:empty,.awsm-success-message p:empty{display:none}.awsm-error-message p,.awsm-success-message p{margin:0!important;padding:0!important}.awsm-success-message{border:1px solid #1ea508}.awsm-error-message{border:1px solid #db4c4c}ul.awsm-error-message li{line-height:1.8em;margin-left:1.2em}.awsm-expired-message{padding:25px}.awsm-expired-message p{margin:1em 0}.awsm-job-container{margin:0 auto;max-width:1170px;padding:50px 0;width:100%}.awsm-jobs-loading{position:relative}.awsm-b-job-listings:after{content:"";height:100%;left:0;opacity:0;position:absolute;top:0;-webkit-transition:all .3s ease;transition:all .3s ease;visibility:hidden;width:100%}.awsm-b-job-listings.awsm-jobs-loading:after{opacity:1;visibility:visible}.awsm-b-sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border:0}@media(max-width:1024px){.awsm-b-grid-col-4 .awsm-b-grid-item{width:33.333%}}@media(max-width:992px){.awsm-job-single-wrap.awsm-col-2 .awsm-job-content{padding-right:0;width:100%}.awsm-job-single-wrap.awsm-col-2 .awsm-job-form{padding-left:0;width:100%}}@media(max-width:768px){.awsm-b-grid-col-3 .awsm-b-grid-item,.awsm-b-grid-col-4 .awsm-b-grid-item,.awsm-b-grid-item{width:50%}.awsm-b-list-left-col{padding-bottom:10px;width:100%}.awsm-b-list-right-col{text-align:left;width:100%}}@media(max-width:648px){.awsm-b-grid-col-2 .awsm-b-grid-item,.awsm-b-grid-col-3 .awsm-b-grid-item,.awsm-b-grid-col-4 .awsm-b-grid-item,.awsm-b-grid-item{width:100%}.awsm-b-list-item .awsm-job-specification-wrapper{display:block;float:none;padding-bottom:5px}.awsm-b-list-item .awsm-job-more-container{display:block;float:none}}.awsm-job-form-plugin-style .awsm-b-job-form-control{border:1px solid #ccc;border-radius:4px;color:#060606;display:block;font:inherit;line-height:1;min-height:46px;padding:8px 15px;-webkit-transition:all .3s ease;transition:all .3s ease;width:100%}.awsm-job-form-plugin-style .awsm-b-job-form-control:focus{border-color:#060606;-webkit-box-shadow:none;box-shadow:none;outline:none}.awsm-job-form-plugin-style .awsm-b-job-form-control.awsm-job-form-error{border-color:#db4c4c}.awsm-job-form-plugin-style textarea.awsm-b-job-form-control{min-height:80px}.awsm-job-form-plugin-style .awsm-application-submit-btn,.awsm-job-form-plugin-style .awsm-jobs-primary-button{background:#060606;border-radius:45px;color:#fff;padding:16px 32px;-webkit-transition:all .3s ease;transition:all .3s ease}.awsm-job-form-plugin-style .awsm-application-submit-btn:focus,.awsm-job-form-plugin-style .awsm-application-submit-btn:hover,.awsm-job-form-plugin-style .awsm-jobs-primary-button:focus,.awsm-job-form-plugin-style .awsm-jobs-primary-button:hover{background:#060606;color:#fff;outline:none}.awsm-job-form-plugin-style .awsm-jobs-primary-button{cursor:pointer}.awsm-job-form-plugin-style .awsm-jobs-primary-button:disabled{opacity:.5;pointer-events:none}.awsm-job-form-plugin-style .awsm-selectric{border-color:#ccc;border-radius:4px;-webkit-box-shadow:none;box-shadow:none}.awsm-job-form-plugin-style .awsm-selectric-open .awsm-selectric{border-color:#060606}.awsm-job-form-plugin-style .awsm-selectric .label{margin-left:15px}.awsm-jobs-is-block-theme .site-branding{padding:0 2.1rem}.awsm-jobs-is-block-theme .site-content{padding:0 2.1rem 3rem}.awsm-jobs-is-block-theme .site-title{margin-bottom:0}.awsm-b-job-wrap,.awsm-b-job-wrap *{-webkit-box-sizing:border-box;box-sizing:border-box} +/*!***************************************************************************************************************************************************************************************************************************************!*\ + !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/style.scss ***! + \***************************************************************************************************************************************************************************************************************************************/ +@charset "UTF-8"; +/** + * The following styles get applied both on the front of your site + * and in the editor. + * + * Replace them with your own styles or remove the file completely. + */ +.wp-block-create-block-wjo-block { + background-color: #21759b; + color: #fff; + padding: 2px; +} + +/** + * The following styles get applied inside the editor only. + * + * Replace them with your own styles or remove the file completely. + */ +.wp-block-create-block-wjo-block { + border: 1px dotted #f00; +} + +/** + * Editor styles. + * + */ +.awsm-b-row { + margin: 0 -15px; + display: -webkit-box; + display: -ms-flexbox; + display: -webkit-flex; + display: flex; + display: flexbox; + -webkit-flex-flow: row wrap; + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + -ms-flex-flow: row wrap; + flex-flow: row wrap; +} + +.awsm-b-row, +.awsm-b-row *, +.awsm-b-row *::before, +.awsm-b-row *::after { + -webkit-box-sizing: border-box; + box-sizing: border-box; +} + +.awsm-b-grid-item { + float: left; + width: 33.333%; + padding: 0 15px !important; + display: -webkit-box; + display: -ms-flexbox; + display: -webkit-flex; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + -webkit-flex-direction: column; +} + +.awsm-b-grid-col-4 .awsm-b-grid-item { + width: 25%; +} + +.awsm-b-grid-col-2 .awsm-b-grid-item { + width: 50%; +} + +.awsm-b-grid-col .awsm-b-grid-item { + width: 100%; +} + +.awsm-b-job-hide { + display: none !important; +} + +.awsm-job-show { + display: block !important; +} + +.awsm-b-job-item { + background: #fff; + padding: 20px; + font-size: 14px; +} + +a.awsm-b-job-item { + text-decoration: none !important; +} + +.awsm-b-grid-item .awsm-b-job-item { + margin-bottom: 30px; + -webkit-box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05); + box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05); + border: 1px solid #dddfe3; + border-radius: 2px; + display: -webkit-box; + display: -ms-flexbox; + display: -webkit-flex; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + -webkit-flex-direction: column; + -webkit-box-flex: 1; + -ms-flex-positive: 1; + flex-grow: 1; + -webkit-flex-grow: 1; + -webkit-transition: all 0.3s ease; + transition: all 0.3s ease; +} + +.awsm-b-grid-item .awsm-b-job-item:hover, +.awsm-b-grid-item .awsm-b-job-item:focus { + -webkit-box-shadow: 0 3px 15px -5px rgba(0, 0, 0, 0.2); + box-shadow: 0 3px 15px -5px rgba(0, 0, 0, 0.2); +} + +.awsm-b-grid-item .awsm-job-featured-image { + margin-bottom: 14px; +} + +.awsm-b-job-item h2.awsm-b-job-post-title { + margin: 0 0 15px; + font-size: 18px; + text-align: left; +} + +.awsm-b-job-item h2.awsm-b-job-post-title a { + font-size: 18px; +} + +.awsm-b-grid-item .awsm-job-info { + min-height: 83px; + margin-bottom: 10px; +} + +.awsm-b-grid-item .awsm-job-info p { + margin: 0 0 8px; +} + +.awsm-b-job-wrap::after { + clear: both; + content: ""; + display: table; +} + +.awsm-b-filter-wrap, +.awsm-b-filter-wrap * { + -webkit-box-sizing: border-box; + box-sizing: border-box; +} + +.awsm-b-filter-wrap { + margin: 0 -10px 20px; +} + +.awsm-b-filter-wrap form { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-wrap: wrap; + -ms-flex-wrap: wrap; + flex-wrap: wrap; +} + +.awsm-b-filter-wrap .awsm-b-filter-items { + display: none; +} + +.awsm-b-filter-wrap.awsm-b-full-width-search-filter-wrap .awsm-b-filter-item-search { + width: 100%; +} + +.awsm-b-filter-wrap.awsm-b-full-width-search-filter-wrap .awsm-b-filter-items, +.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-items { + width: 100%; +} + +.awsm-b-filter-toggle { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-flow: wrap; + -ms-flex-flow: wrap; + flex-flow: wrap; + width: 46px; + padding: 12px; + border: 1px solid #ccc; + margin: 0 10px 10px; + border-radius: 4px; + outline: none !important; +} + +.awsm-b-filter-toggle.awsm-on { + background: #ccc; +} + +.awsm-b-filter-toggle svg { + width: 20px; + height: 20px; +} + +.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-toggle { + width: 100%; + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: justify; + -webkit-justify-content: space-between; + -ms-flex-pack: justify; + justify-content: space-between; + text-decoration: none; +} + +.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-toggle svg { + width: 22px; + height: 22px; +} + +@media (min-width: 768px) { + .awsm-b-filter-wrap .awsm-b-filter-items { + display: -webkit-box !important; + display: -webkit-flex !important; + display: -ms-flexbox !important; + display: flex !important; + -webkit-flex-wrap: wrap; + -ms-flex-wrap: wrap; + flex-wrap: wrap; + width: calc(100% - 250px); + } + .awsm-b-filter-toggle { + display: none; + } + .awsm-b-filter-item-search { + width: 250px; + } +} +.awsm-b-filter-wrap .awsm-b-filter-item { + /* display: inline-block; */ + padding: 0 10px 10px; + /* vertical-align: top; */ +} + +.awsm-b-filter-item-search { + position: relative; + padding: 0 10px 10px; +} + +@media (max-width: 768px) { + .awsm-b-filter-wrap .awsm-b-filter-items { + width: 100%; + } + .awsm-b-filter-item-search { + width: calc(100% - 66px); + } + .awsm-b-filter-wrap .awsm-b-filter-item .awsm-selectric-wrapper { + min-width: 100%; + } +} +.awsm-b-filter-wrap .awsm-b-filter-item .awsm-b-job-form-control { + min-height: 48px; + padding-right: 58px; +} + +.awsm-b-filter-item-search .awsm-b-job-form-control { + padding-right: 48px; + min-height: 48px; +} + +.awsm-b-filter-item-search-in { + position: relative; +} + +.awsm-b-filter-item-search .awsm-b-job-search-icon-wrapper { + position: absolute; + right: 0; + top: 0; + width: 48px; + height: 100%; + font-size: 16px; + color: #ccc; + line-height: 48px; + text-align: center; + cursor: pointer; +} + +.awsm-b-jobs-none-container { + padding: 25px; +} + +.awsm-b-jobs-none-container p { + margin: 0; + padding: 5px; +} + +.awsm-b-row .awsm-b-jobs-pagination { + padding: 0 15px; + width: 100%; +} + +.awsm-b-jobs-pagination { + float: left; + width: 100%; +} + +.awsm-b-load-more-main a.awsm-b-load-more, .awsm-load-more-classic a.page-numbers { + display: block; + text-align: center; + padding: 20px; + background: #fff; + -webkit-box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05); + box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05); + border: 1px solid #dddfe3; + margin: 0 !important; + text-decoration: none !important; + outline: none !important; + -webkit-transition: all 0.3s ease; + transition: all 0.3s ease; +} + +.awsm-load-more-classic a.page-numbers, .awsm-load-more-classic span.page-numbers { + padding: 5px 10px; + font-size: 90%; +} + +.awsm-load-more-classic { + text-align: center; +} + +.awsm-b-load-more-main a.awsm-load-more:hover, +.awsm-b-load-more-main a.awsm-load-more:focus, +.awsm-load-more-classic a.page-numbers:hover, +.awsm-load-more-classic a.page-numbers:focus { + -webkit-box-shadow: 0 3px 15px -5px rgba(0, 0, 0, 0.2); + box-shadow: 0 3px 15px -5px rgba(0, 0, 0, 0.2); +} + +.awsm-b-jobs-pagination.awsm-load-more-classic ul { + list-style: none; + margin: 0; + padding: 0; +} + +.awsm-b-jobs-pagination.awsm-load-more-classic ul li { + display: inline-block; +} + +/*---- List ----*/ +.awsm-b-lists { + border: 1px solid #ededed; +} + +.awsm-b-list-item { + width: 100%; +} + +.awsm-b-list-item h2.awsm-job-b-post-title { + margin-bottom: 0; +} + +.awsm-b-list-item .awsm-job-featured-image { + float: left; + margin-right: 10px; +} + +.awsm-b-list-item .awsm-job-featured-image img { + width: 50px; + height: 50px; +} + +.awsm-b-list-item .awsm-b-job-item { + border-bottom: 1px solid rgba(0, 0, 0, 0.13); +} + +.awsm-b-list-item .awsm-b-job-item::after { + content: ""; + display: table; + clear: both; +} + +.awsm-b-list-left-col { + float: left; + width: 50%; +} + +.awsm-b-list-right-col { + float: left; + width: 50%; + text-align: right; +} + +.awsm-b-list-item .awsm-job-specification-wrapper { + display: inline-block; + vertical-align: middle; +} + +.awsm-b-list-item .awsm-job-specification-item { + display: inline-block; + vertical-align: middle; + margin: 0 15px 0 0; +} + +a.awsm-b-job-item .awsm-job-specification-item { + color: #4C4C4C; +} + +.awsm-b-list-item .awsm-job-more-container { + display: inline-block; + vertical-align: middle; +} + +.awsm-job-more-container .awsm-job-more span::before { + content: "→"; +} + +.awsm-b-lists .awsm-b-jobs-pagination { + margin-top: 30px; +} + +.awsm-job-specification-item > [class^=awsm-job-icon-] { + margin-right: 6px; +} + +.awsm-job-specification-term::after { + content: ", "; +} + +.awsm-job-specification-term:last-child::after { + content: ""; +} + +/*----- Single ----*/ +.awsm-job-single-wrap, +.awsm-job-single-wrap *, +.awsm-job-single-wrap *::before, +.awsm-job-single-wrap *::after { + -webkit-box-sizing: border-box; + box-sizing: border-box; +} + +.awsm-job-single-wrap { + margin-bottom: 1.3em; +} + +.awsm-job-single-wrap::after { + content: ""; + display: table; + clear: both; +} + +.awsm-job-content { + padding-bottom: 32px; +} + +.awsm-job-single-wrap.awsm-col-2 .awsm-job-content { + float: left; + width: 55%; + padding-right: 15px; +} + +.awsm-job-single-wrap.awsm-col-2 .awsm-job-form { + float: left; + width: 45%; + padding-left: 15px; +} + +.awsm-job-head, +.awsm_job_spec_above_content { + margin-bottom: 20px; +} + +.awsm-job-head h1 { + margin: 0 0 20px; +} + +.awsm-job-list-info span { + margin-right: 10px; +} + +.awsm-job-single-wrap .awsm-job-expiration-label { + font-weight: bold; +} + +.awsm-job-form-inner { + background: #fff; + border: 1px solid #dddfe3; + padding: 35px; +} + +.awsm-job-form-inner h2 { + margin: 0 0 30px; +} + +.awsm-job-form-group { + margin-bottom: 20px; +} + +.awsm-job-form-group input[type=checkbox], +.awsm-job-form-group input[type=radio] { + margin-right: 5px; +} + +.awsm-job-form-group label { + display: block; + margin-bottom: 10px; +} + +.awsm-job-inline-group label, +.awsm-job-form-options-container label { + display: inline; + font-weight: normal; +} + +.awsm-b-job-form-control { + display: block; + width: 100%; +} + +.awsm-job-form-options-container span { + display: inline-block; + margin-bottom: 10px; + margin-left: 10px; +} + +.awsm-job-submit { + background: #0195ff; + border: 1px solid #0195ff; + padding: 10px 30px; + color: #fff; +} + +.awsm-job-submit:hover, +.awsm-job-submit:focus { + background: rgba(0, 0, 0, 0); + color: #0195ff; +} + +.awsm-job-form-error { + color: #db4c4c; + font-weight: 500; +} + +.awsm-b-job-form-control.awsm-job-form-error, +.awsm-b-job-form-control.awsm-job-form-error:focus { + border: 1px solid #db4c4c; +} + +.awsm-success-message, +.awsm-error-message { + padding: 12px 25px; +} + +.awsm-success-message p:empty, +.awsm-error-message p:empty { + display: none; +} + +.awsm-success-message p, +.awsm-error-message p { + margin: 0 !important; + padding: 0 !important; +} + +.awsm-success-message { + border: 1px solid #1ea508; +} + +.awsm-error-message { + border: 1px solid #db4c4c; +} + +ul.awsm-error-message li { + margin-left: 1.2em; + line-height: 1.8em; +} + +.awsm-expired-message { + padding: 25px; +} + +.awsm-expired-message p { + margin: 1em 0em; +} + +.awsm-job-container { + max-width: 1170px; + width: 100%; + margin: 0 auto; + padding: 50px 0; +} + +.awsm-jobs-loading { + position: relative; +} + +.awsm-b-job-listings::after { + content: ""; + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + opacity: 0; + visibility: hidden; + -webkit-transition: all 0.3s ease; + transition: all 0.3s ease; +} + +.awsm-b-job-listings.awsm-jobs-loading::after { + opacity: 1; + visibility: visible; +} + +/*---- Accessibility ----*/ +.awsm-b-sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} + +/*---- Media Queries ----*/ +@media (max-width: 1024px) { + .awsm-b-grid-col-4 .awsm-b-grid-item { + width: 33.333%; + } +} +@media (max-width: 992px) { + .awsm-job-single-wrap.awsm-col-2 .awsm-job-content { + width: 100%; + padding-right: 0; + } + .awsm-job-single-wrap.awsm-col-2 .awsm-job-form { + width: 100%; + padding-left: 0; + } +} +@media (max-width: 768px) { + .awsm-b-grid-col-4 .awsm-b-grid-item, + .awsm-b-grid-col-3 .awsm-b-grid-item, + .awsm-b-grid-item { + width: 50%; + } + .awsm-b-list-left-col { + width: 100%; + padding-bottom: 10px; + } + .awsm-b-list-right-col { + width: 100%; + text-align: left; + } +} +@media (max-width: 648px) { + .awsm-b-grid-col-4 .awsm-b-grid-item, + .awsm-b-grid-col-3 .awsm-b-grid-item, + .awsm-b-grid-col-2 .awsm-b-grid-item, + .awsm-b-grid-item { + width: 100%; + } + .awsm-b-list-item .awsm-job-specification-wrapper { + display: block; + padding-bottom: 5px; + float: none; + } + .awsm-b-list-item .awsm-job-more-container { + display: block; + float: none; + } +} +.awsm-job-form-plugin-style .awsm-b-job-form-control { + display: block; + width: 100%; + font: inherit; + padding: 8px 15px; + min-height: 46px; + border: 1px solid #ccc; + border-radius: 4px; + line-height: 1; + color: #060606; + -webkit-transition: all 0.3s ease; + transition: all 0.3s ease; +} + +.awsm-job-form-plugin-style .awsm-b-job-form-control:focus { + outline: none; + -webkit-box-shadow: none; + box-shadow: none; + border-color: #060606; +} + +.awsm-job-form-plugin-style .awsm-b-job-form-control.awsm-job-form-error { + border-color: #db4c4c; +} + +.awsm-job-form-plugin-style textarea.awsm-b-job-form-control { + min-height: 80px; +} + +.awsm-job-form-plugin-style .awsm-jobs-primary-button, +.awsm-job-form-plugin-style .awsm-application-submit-btn { + background: #060606; + border-radius: 45px; + -webkit-transition: all 0.3s ease; + transition: all 0.3s ease; + padding: 16px 32px; + color: #fff; +} + +.awsm-job-form-plugin-style .awsm-jobs-primary-button:hover, +.awsm-job-form-plugin-style .awsm-jobs-primary-button:focus, +.awsm-job-form-plugin-style .awsm-application-submit-btn:hover, +.awsm-job-form-plugin-style .awsm-application-submit-btn:focus { + color: #fff; + outline: none; + background: #060606; +} + +.awsm-job-form-plugin-style .awsm-jobs-primary-button { + cursor: pointer; +} + +.awsm-job-form-plugin-style .awsm-jobs-primary-button:disabled { + opacity: 0.5; + pointer-events: none; +} + +.awsm-job-form-plugin-style .awsm-selectric { + border-color: #ccc; + -webkit-box-shadow: none; + box-shadow: none; + border-radius: 4px; +} + +.awsm-job-form-plugin-style .awsm-selectric-open .awsm-selectric { + border-color: #060606; +} + +.awsm-job-form-plugin-style .awsm-selectric .label { + margin-left: 15px; +} + +/* Block Theme - Compatibility Templates Styles */ +.awsm-jobs-is-block-theme .site-branding { + padding: 0 2.1rem; +} + +.awsm-jobs-is-block-theme .site-content { + padding: 0 2.1rem 3rem; +} + +.awsm-jobs-is-block-theme .site-title { + margin-bottom: 0; +} + +.awsm-b-job-wrap, .awsm-b-job-wrap * { + -webkit-box-sizing: border-box; + box-sizing: border-box; +} + +/*# sourceMappingURL=style-index.css.map*/ \ No newline at end of file diff --git a/blocks/build/style-index.css.map b/blocks/build/style-index.css.map new file mode 100644 index 00000000..a3006027 --- /dev/null +++ b/blocks/build/style-index.css.map @@ -0,0 +1 @@ +{"version":3,"file":"./style-index.css","mappings":";;;AAAA,gBAAgB;AAAhB;;;;;EAAA;AAOA;EACC;EACA;EACA;AACD;;AACA;;;;EAAA;AAMC;EACA;AACD;;AAEA;;;EAAA;AAIA;EACC;EACA;EAEA;EACA;EACA;EACA;EACA;EACA;EAAA;MAAA;UAAA;AACD;;AAEA;;;;EAIC;UAAA;AACD;;AAEA;EACC;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EAAA;MAAA;UAAA;EACA;AACD;;AAEA;EACC;AACD;;AAEA;EACC;AACD;;AAEA;EACC;AACD;;AAEA;EACC;AACD;;AAEA;EACC;AACD;;AAEA;EACC;EACA;EACA;AACD;;AAEA;EACC;AACD;;AAEA;EACC;EACA;UAAA;EACA;EACA;EACA;EAEA;EACA;EACA;EACA;EAAA;MAAA;UAAA;EACA;EACA;MAAA;UAAA;EACA;EACA;EAIA;AACD;;AAEA;;EAEC;UAAA;AACD;;AAEA;EACC;AACD;;AAEA;EACC;EACA;EACA;AACD;;AAEA;EACC;AACD;;AAEA;EACC;EACA;AACD;;AAEA;EACC;AACD;;AAEA;EACC;EACA;EACA;AACD;;AACA;;EAEC;UAAA;AAED;;AAAA;EACC;AAGD;;AADA;EACC;EAAA;EAAA;EAAA;EACA;MAAA;UAAA;AAID;;AAFA;EACC;AAKD;;AAHA;EACC;AAMD;;AAJA;;EAEC;AAOD;;AALA;EACC;EAAA;EAAA;EAAA;EACA;MAAA;UAAA;EACA;EACA;EACA;EACA;EACA;EACA;AAQD;;AANA;EACC;AASD;;AAPA;EACC;EACA;AAUD;;AARA;EACC;EACA;EAAA;MAAA;UAAA;EACA;EAAA;MAAA;UAAA;EACA;AAWD;;AATA;EACC;EACA;AAYD;;AAVA;EACC;IACC;IAAA;IAAA;IAAA;IACA;QAAA;YAAA;IACA;EAaA;EAXD;IACC;EAaA;EAXD;IACC;EAaA;AACF;AAXA;EACC;EACA;EACA;AAaD;;AAVA;EACC;EACA;AAaD;;AAXA;EACC;IACC;EAcA;EAZD;IACC;EAcA;EAZD;IACC;EAcA;AACF;AAZA;EACC;EACA;AAcD;;AAZA;EACI;EACA;AAeJ;;AAbA;EACC;AAgBD;;AAdA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;AAiBD;;AAfA;EACC;AAkBD;;AAfA;EACC;EACA;AAkBD;;AAfA;EACC;EACA;AAkBD;;AAfA;EACC;EACA;AAkBD;;AAfA;EACC;EACA;EACA;EACA;EACA;UAAA;EACA;EACA;EACA;EACA;EACA;EAIA;AAkBD;;AAhBA;EACC;EACA;AAmBD;;AAjBA;EACC;AAoBD;;AAjBA;;;;EAIC;UAAA;AAoBD;;AAjBA;EACI;EACA;EACA;AAoBJ;;AAjBA;EACI;AAoBJ;;AAjBA;AAEA;EACC;AAmBD;;AAhBA;EACC;AAmBD;;AAhBA;EACC;AAmBD;;AAhBA;EACC;EACG;AAmBJ;;AAhBA;EACC;EACG;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AbA;AAEA;EACC;IACC;EAeA;AACF;AAZA;EACC;IACC;IACA;EAcA;EAXD;IACC;IACA;EAaA;AACF;AAVA;EAEC;;;IAGC;EAWA;EARD;IACC;IACA;EAUA;EAPD;IACC;IACA;EASA;AACF;AANA;EAEC;;;;IAIC;EAOA;EAJD;IACC;IACA;IACA;EAMA;EAHD;IACC;IACA;EAKA;AACF;AAFA;EACC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EAAA;AAID;;AAFA;EACC;EACA;UAAA;EACA;AAKD;;AAHA;EACC;AAMD;;AAJA;EACC;AAOD;;AALA;;EAEC;EACA;EACA;EAAA;EACA;EACA;AAQD;;AANA;;;;EAIC;EACG;EACA;AASJ;;AAPA;EACC;AAUD;;AARA;EACC;EACA;AAWD;;AATA;EACC;EACA;UAAA;EACA;AAYD;;AAVA;EACC;AAaD;;AAXA;EACC;AAcD;;AAXA;AAEA;EACC;AAaD;;AAVA;EACC;AAaD;;AAVA;EACC;AAaD;;AAVA;EACC;UAAA;AAaD,C","sources":["webpack://joblistings/./src/style.scss"],"sourcesContent":["/**\n * The following styles get applied both on the front of your site\n * and in the editor.\n *\n * Replace them with your own styles or remove the file completely.\n */\n\n.wp-block-create-block-wjo-block {\n\tbackground-color: #21759b;\n\tcolor: #fff;\n\tpadding: 2px;\n}\n/**\n * The following styles get applied inside the editor only.\n *\n * Replace them with your own styles or remove the file completely.\n */\n\n .wp-block-create-block-wjo-block {\n\tborder: 1px dotted #f00;\n}\n\n/**\n * Editor styles.\n *\n */\n.awsm-b-row {\n\tmargin: 0 -15px;\n\tdisplay: -webkit-box;\n\tdisplay: -moz-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: -webkit-flex;\n\tdisplay: flex;\n\tdisplay: flexbox;\n\t-webkit-flex-flow: row wrap;\n\tflex-flow: row wrap;\n}\n\n.awsm-b-row,\n.awsm-b-row *,\n.awsm-b-row *::before,\n.awsm-b-row *::after {\n\tbox-sizing: border-box;\n}\n\n.awsm-b-grid-item {\n\tfloat: left;\n\twidth: 33.333%;\n\tpadding: 0 15px !important;\n\tdisplay: -webkit-box;\n\tdisplay: -moz-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: -webkit-flex;\n\tdisplay: flex;\n\tflex-direction: column;\n\t-webkit-flex-direction: column;\n}\n\n.awsm-b-grid-col-4 .awsm-b-grid-item {\n\twidth: 25%;\n}\n\n.awsm-b-grid-col-2 .awsm-b-grid-item {\n\twidth: 50%;\n}\n\n.awsm-b-grid-col .awsm-b-grid-item {\n\twidth: 100%;\n}\n\n.awsm-b-job-hide {\n\tdisplay: none !important;\n}\n\n.awsm-job-show {\n\tdisplay: block !important;\n}\n\n.awsm-b-job-item {\n\tbackground: #fff;\n\tpadding: 20px;\n\tfont-size: 14px;\n}\n\na.awsm-b-job-item {\n\ttext-decoration: none !important;\n}\n\n.awsm-b-grid-item .awsm-b-job-item {\n\tmargin-bottom: 30px;\n\tbox-shadow: 0 1px 4px 0 rgb(0 0 0 / 5%);\n\tborder: 1px solid #dddfe3;\n\tborder-radius: 2px;\n\tdisplay: -webkit-box;\n\tdisplay: -moz-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: -webkit-flex;\n\tdisplay: flex;\n\tflex-direction: column;\n\t-webkit-flex-direction: column;\n\tflex-grow: 1;\n\t-webkit-flex-grow: 1;\n\t-webkit-transition: all 0.3s ease;\n\t-moz-transition: all 0.3s ease;\n\t-ms-transition: all 0.3s ease;\n\t-o-transition: all 0.3s ease;\n\ttransition: all 0.3s ease;\n}\n\n.awsm-b-grid-item .awsm-b-job-item:hover,\n.awsm-b-grid-item .awsm-b-job-item:focus {\n\tbox-shadow: 0 3px 15px -5px rgb(0 0 0 / 20%);\n}\n\n.awsm-b-grid-item .awsm-job-featured-image {\n\tmargin-bottom: 14px;\n}\n\n.awsm-b-job-item h2.awsm-b-job-post-title {\n\tmargin: 0 0 15px;\n\tfont-size: 18px;\n\ttext-align: left;\n}\n\n.awsm-b-job-item h2.awsm-b-job-post-title a {\n\tfont-size: 18px;\n}\n\n.awsm-b-grid-item .awsm-job-info {\n\tmin-height: 83px;\n\tmargin-bottom: 10px;\n}\n\n.awsm-b-grid-item .awsm-job-info p {\n\tmargin: 0 0 8px;\n}\n\n.awsm-b-job-wrap::after {\n\tclear: both;\n\tcontent: '';\n\tdisplay: table;\n}\n.awsm-b-filter-wrap,\n.awsm-b-filter-wrap * {\n\tbox-sizing: border-box;\n}\n.awsm-b-filter-wrap {\n\tmargin: 0 -10px 20px;\n}\n.awsm-b-filter-wrap form{\n\tdisplay: flex;\n\tflex-wrap: wrap;\n}\n.awsm-b-filter-wrap .awsm-b-filter-items{\n\tdisplay: none;\n}\n.awsm-b-filter-wrap.awsm-b-full-width-search-filter-wrap .awsm-b-filter-item-search {\n\twidth: 100%;\n}\n.awsm-b-filter-wrap.awsm-b-full-width-search-filter-wrap .awsm-b-filter-items,\n.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-items {\n\twidth: 100%;\n}\n.awsm-b-filter-toggle{\n\tdisplay: flex;\n\tflex-flow: wrap;\n\twidth: 46px;\n\tpadding: 12px;\n\tborder: 1px solid #ccc;\n\tmargin: 0 10px 10px;\n\tborder-radius: 4px;\n\toutline: none !important;\n}\n.awsm-b-filter-toggle.awsm-on{\n\tbackground: #ccc;\n}\n.awsm-b-filter-toggle svg{\n\twidth: 20px;\n\theight: 20px;\n}\n.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-toggle {\n\twidth: 100%;\n\talign-items: center;\n\tjustify-content: space-between;\n\ttext-decoration: none;\n}\n.awsm-b-filter-wrap.awsm-b-no-search-filter-wrap .awsm-b-filter-toggle svg {\n\twidth: 22px;\n\theight: 22px;\n}\n@media (min-width:768px){\n\t.awsm-b-filter-wrap .awsm-b-filter-items{\n\t\tdisplay: flex !important;\n\t\tflex-wrap: wrap;\n\t\twidth: calc(100% - 250px);\n\t}\n\t.awsm-b-filter-toggle{\n\t\tdisplay: none;\n\t}\n\t.awsm-b-filter-item-search{\n\t\twidth: 250px;\n\t}\n}\n.awsm-b-filter-wrap .awsm-b-filter-item {\n\t/* display: inline-block; */\n\tpadding: 0 10px 10px;\n\t/* vertical-align: top; */\n}\n\n.awsm-b-filter-item-search{\n\tposition: relative;\n\tpadding: 0 10px 10px;\n}\n@media (max-width:768px){\n\t.awsm-b-filter-wrap .awsm-b-filter-items{\n\t\twidth: 100%;\n\t}\n\t.awsm-b-filter-item-search{\n\t\twidth: calc(100% - 66px);\n\t}\n\t.awsm-b-filter-wrap .awsm-b-filter-item .awsm-selectric-wrapper{\n\t\tmin-width: 100%;\n\t}\n}\n.awsm-b-filter-wrap .awsm-b-filter-item .awsm-b-job-form-control{\n\tmin-height: 48px;\n\tpadding-right: 58px;\n}\n.awsm-b-filter-item-search .awsm-b-job-form-control {\n padding-right: 48px;\n min-height: 48px;\n}\n.awsm-b-filter-item-search-in {\n\tposition: relative;\n}\n.awsm-b-filter-item-search .awsm-b-job-search-icon-wrapper {\n\tposition: absolute;\n\tright: 0;\n\ttop: 0;\n\twidth: 48px;\n\theight: 100%;\n\tfont-size: 16px;\n\tcolor: #ccc;\n\tline-height: 48px;\n\ttext-align: center;\n\tcursor: pointer;\n}\n.awsm-b-jobs-none-container {\n\tpadding: 25px;\n}\n\n.awsm-b-jobs-none-container p {\n\tmargin: 0;\n\tpadding: 5px;\n}\n\n.awsm-b-row .awsm-b-jobs-pagination {\n\tpadding: 0 15px;\n\twidth: 100%;\n}\n\n.awsm-b-jobs-pagination {\n\tfloat: left;\n\twidth: 100%;\n}\n\n.awsm-b-load-more-main a.awsm-b-load-more, .awsm-load-more-classic a.page-numbers\t {\n\tdisplay: block;\n\ttext-align: center;\n\tpadding: 20px;\n\tbackground: #fff;\n\tbox-shadow: 0 1px 4px 0 rgb(0 0 0 / 5%);\n\tborder: 1px solid #dddfe3;\n\tmargin: 0 !important;\n\ttext-decoration: none !important;\n\toutline: none !important;\n\t-webkit-transition: all 0.3s ease;\n\t-moz-transition: all 0.3s ease;\n\t-ms-transition: all 0.3s ease;\n\t-o-transition: all 0.3s ease;\n\ttransition: all 0.3s ease;\n}\n.awsm-load-more-classic a.page-numbers, .awsm-load-more-classic span.page-numbers {\n\tpadding: 5px 10px;\n\tfont-size: 90%;\n}\n.awsm-load-more-classic {\n\ttext-align: center;\n}\n\n.awsm-b-load-more-main a.awsm-load-more:hover,\n.awsm-b-load-more-main a.awsm-load-more:focus,\n.awsm-load-more-classic a.page-numbers:hover,\n.awsm-load-more-classic a.page-numbers:focus {\n\tbox-shadow: 0 3px 15px -5px rgb(0 0 0 / 20%);\n}\n\n.awsm-b-jobs-pagination.awsm-load-more-classic ul {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n.awsm-b-jobs-pagination.awsm-load-more-classic ul li {\n display: inline-block;\n}\n\n/*---- List ----*/\n\n.awsm-b-lists {\n\tborder: 1px solid #ededed;\n}\n\n.awsm-b-list-item {\n\twidth: 100%;\n}\n\n.awsm-b-list-item h2.awsm-job-b-post-title {\n\tmargin-bottom: 0;\n}\n\n.awsm-b-list-item .awsm-job-featured-image {\n\tfloat: left;\n margin-right: 10px;\n}\n\n.awsm-b-list-item .awsm-job-featured-image img {\n\twidth: 50px;\n height: 50px;\n}\n\n.awsm-b-list-item .awsm-b-job-item {\n\tborder-bottom: 1px solid rgba(0, 0, 0, 0.13);\n}\n\n.awsm-b-list-item .awsm-b-job-item::after {\n\tcontent: \"\";\n\tdisplay: table;\n\tclear: both;\n}\n\n.awsm-b-list-left-col {\n\tfloat: left;\n\twidth: 50%;\n}\n\n.awsm-b-list-right-col {\n\tfloat: left;\n\twidth: 50%;\n\ttext-align: right;\n}\n\n.awsm-b-list-item .awsm-job-specification-wrapper {\n\tdisplay: inline-block;\n\tvertical-align: middle;\n}\n\n.awsm-b-list-item .awsm-job-specification-item {\n\tdisplay: inline-block;\n\tvertical-align: middle;\n\tmargin: 0 15px 0 0;\n}\n\na.awsm-b-job-item .awsm-job-specification-item {\n\tcolor: #4C4C4C;\n}\n\n.awsm-b-list-item .awsm-job-more-container {\n\tdisplay: inline-block;\n\tvertical-align: middle;\n}\n\n.awsm-job-more-container .awsm-job-more span::before {\n\tcontent: \"\\002192\";\n}\n\n.awsm-b-lists .awsm-b-jobs-pagination {\n\tmargin-top: 30px;\n}\n\n.awsm-job-specification-item>[class^=\"awsm-job-icon-\"] {\n\tmargin-right: 6px;\n}\n\n.awsm-job-specification-term::after {\n\tcontent: \", \";\n}\n\n.awsm-job-specification-term:last-child::after {\n\tcontent: \"\";\n}\n\n/*----- Single ----*/\n\n.awsm-job-single-wrap,\n.awsm-job-single-wrap *,\n.awsm-job-single-wrap *::before,\n.awsm-job-single-wrap *::after {\n\tbox-sizing: border-box;\n}\n\n.awsm-job-single-wrap {\n\tmargin-bottom: 1.3em;\n}\n\n.awsm-job-single-wrap::after {\n\tcontent: \"\";\n\tdisplay: table;\n\tclear: both;\n}\n\n.awsm-job-content {\n\tpadding-bottom: 32px;\n}\n\n.awsm-job-single-wrap.awsm-col-2 .awsm-job-content {\n\tfloat: left;\n\twidth: 55%;\n\tpadding-right: 15px;\n}\n\n.awsm-job-single-wrap.awsm-col-2 .awsm-job-form {\n\tfloat: left;\n\twidth: 45%;\n\tpadding-left: 15px;\n}\n\n.awsm-job-head,\n.awsm_job_spec_above_content {\n\tmargin-bottom: 20px;\n}\n\n.awsm-job-head h1 {\n\tmargin: 0 0 20px;\n}\n\n.awsm-job-list-info span {\n\tmargin-right: 10px;\n}\n\n.awsm-job-single-wrap .awsm-job-expiration-label {\n\tfont-weight: bold;\n}\n\n.awsm-job-form-inner {\n\tbackground: #fff;\n\tborder: 1px solid #dddfe3;\n\tpadding: 35px;\n}\n\n.awsm-job-form-inner h2 {\n\tmargin: 0 0 30px;\n}\n\n.awsm-job-form-group {\n\tmargin-bottom: 20px;\n}\n\n.awsm-job-form-group input[type=checkbox],\n.awsm-job-form-group input[type=radio] {\n\tmargin-right: 5px;\n}\n\n.awsm-job-form-group label {\n\tdisplay: block;\n\tmargin-bottom: 10px;\n}\n\n.awsm-job-inline-group label,\n.awsm-job-form-options-container label {\n\tdisplay: inline;\n\tfont-weight: normal;\n}\n\n.awsm-b-job-form-control {\n\tdisplay: block;\n\twidth: 100%;\n}\n\n.awsm-job-form-options-container span {\n\tdisplay: inline-block;\n\tmargin-bottom: 10px;\n\tmargin-left: 10px;\n}\n\n.awsm-job-submit {\n\tbackground: #0195ff;\n\tborder: 1px solid #0195ff;\n\tpadding: 10px 30px;\n\tcolor: #fff;\n}\n\n.awsm-job-submit:hover,\n.awsm-job-submit:focus {\n\tbackground: rgba(0, 0, 0, 0);\n\tcolor: #0195ff;\n}\n\n.awsm-job-form-error {\n\tcolor: #db4c4c;\n\tfont-weight: 500;\n}\n\n.awsm-b-job-form-control.awsm-job-form-error,\n.awsm-b-job-form-control.awsm-job-form-error:focus {\n\tborder: 1px solid #db4c4c;\n}\n\n.awsm-success-message,\n.awsm-error-message {\n\tpadding: 12px 25px;\n}\n\n.awsm-success-message p:empty,\n.awsm-error-message p:empty {\n\tdisplay: none;\n}\n\n.awsm-success-message p,\n.awsm-error-message p {\n\tmargin: 0 !important;\n\tpadding: 0 !important;\n}\n\n.awsm-success-message {\n\tborder: 1px solid #1ea508;\n}\n\n.awsm-error-message {\n\tborder: 1px solid #db4c4c;\n}\n\nul.awsm-error-message li {\n\tmargin-left: 1.2em;\n\tline-height: 1.8em;\n}\n\n.awsm-expired-message {\n\tpadding: 25px;\n}\n\n.awsm-expired-message p {\n\tmargin: 1em 0em;\n}\n\n.awsm-job-container {\n\tmax-width: 1170px;\n\twidth: 100%;\n\tmargin: 0 auto;\n\tpadding: 50px 0;\n}\n\n.awsm-jobs-loading {\n\tposition: relative;\n}\n\n.awsm-b-job-listings::after {\n\tcontent: \"\";\n\tposition: absolute;\n\tleft: 0;\n\ttop: 0;\n\twidth: 100%;\n\theight: 100%;\n\t// background: rgba(255, 255, 255, 0.5) url(../img/loading.svg) no-repeat center;\n\topacity: 0;\n\tvisibility: hidden;\n\t-webkit-transition: all 0.3s ease;\n\t-moz-transition: all 0.3s ease;\n\t-ms-transition: all 0.3s ease;\n\t-o-transition: all 0.3s ease;\n\ttransition: all 0.3s ease;\n}\n\n.awsm-b-job-listings.awsm-jobs-loading::after {\n\topacity: 1;\n\tvisibility: visible;\n}\n\n/*---- Accessibility ----*/\n\n.awsm-b-sr-only {\n\tposition: absolute;\n\twidth: 1px;\n\theight: 1px;\n\tpadding: 0;\n\tmargin: -1px;\n\toverflow: hidden;\n\tclip: rect(0,0,0,0);\n\tborder: 0;\n}\n\n/*---- Media Queries ----*/\n\n@media (max-width:1024px) {\n\t.awsm-b-grid-col-4 .awsm-b-grid-item {\n\t\twidth: 33.333%;\n\t}\n}\n\n@media (max-width:992px) {\n\t.awsm-job-single-wrap.awsm-col-2 .awsm-job-content {\n\t\twidth: 100%;\n\t\tpadding-right: 0;\n\t}\n\n\t.awsm-job-single-wrap.awsm-col-2 .awsm-job-form {\n\t\twidth: 100%;\n\t\tpadding-left: 0;\n\t}\n}\n\n@media (max-width:768px) {\n\n\t.awsm-b-grid-col-4 .awsm-b-grid-item,\n\t.awsm-b-grid-col-3 .awsm-b-grid-item,\n\t.awsm-b-grid-item {\n\t\twidth: 50%;\n\t}\n\n\t.awsm-b-list-left-col {\n\t\twidth: 100%;\n\t\tpadding-bottom: 10px;\n\t}\n\n\t.awsm-b-list-right-col {\n\t\twidth: 100%;\n\t\ttext-align: left;\n\t}\n}\n\n@media (max-width:648px) {\n\n\t.awsm-b-grid-col-4 .awsm-b-grid-item,\n\t.awsm-b-grid-col-3 .awsm-b-grid-item,\n\t.awsm-b-grid-col-2 .awsm-b-grid-item,\n\t.awsm-b-grid-item {\n\t\twidth: 100%;\n\t}\n\n\t.awsm-b-list-item .awsm-job-specification-wrapper {\n\t\tdisplay: block;\n\t\tpadding-bottom: 5px;\n\t\tfloat: none;\n\t}\n\n\t.awsm-b-list-item .awsm-job-more-container {\n\t\tdisplay: block;\n\t\tfloat: none;\n\t}\n}\n\n.awsm-job-form-plugin-style .awsm-b-job-form-control{\n\tdisplay: block;\n\twidth: 100%;\n\tfont: inherit;\n\tpadding: 8px 15px;\n\tmin-height: 46px;\n\tborder: 1px solid #ccc;\n\tborder-radius: 4px;\n\tline-height: 1;\n\tcolor: #060606;\n\ttransition: all 0.3s ease;\n}\n.awsm-job-form-plugin-style .awsm-b-job-form-control:focus{\n\toutline: none;\n\tbox-shadow: none;\n\tborder-color: #060606;\n}\n.awsm-job-form-plugin-style .awsm-b-job-form-control.awsm-job-form-error{\n\tborder-color: #db4c4c;\n}\n.awsm-job-form-plugin-style textarea.awsm-b-job-form-control{\n\tmin-height: 80px;\n}\n.awsm-job-form-plugin-style .awsm-jobs-primary-button,\n.awsm-job-form-plugin-style .awsm-application-submit-btn {\n\tbackground: #060606;\n\tborder-radius: 45px;\n\ttransition: all 0.3s ease;\n\tpadding: 16px 32px;\n\tcolor: #fff;\n}\n.awsm-job-form-plugin-style .awsm-jobs-primary-button:hover,\n.awsm-job-form-plugin-style .awsm-jobs-primary-button:focus,\n.awsm-job-form-plugin-style .awsm-application-submit-btn:hover,\n.awsm-job-form-plugin-style .awsm-application-submit-btn:focus{\n\tcolor: #fff;\n outline: none;\n background: #060606;\n}\n.awsm-job-form-plugin-style .awsm-jobs-primary-button {\n\tcursor: pointer;\n}\n.awsm-job-form-plugin-style .awsm-jobs-primary-button:disabled {\n\topacity: 0.5;\n\tpointer-events: none;\n}\n.awsm-job-form-plugin-style .awsm-selectric{\n\tborder-color: #ccc;\n\tbox-shadow: none;\n\tborder-radius: 4px;\n}\n.awsm-job-form-plugin-style .awsm-selectric-open .awsm-selectric{\n\tborder-color: #060606;\n}\n.awsm-job-form-plugin-style .awsm-selectric .label{\n\tmargin-left: 15px;\n}\n\n/* Block Theme - Compatibility Templates Styles */\n\n.awsm-jobs-is-block-theme .site-branding {\n\tpadding: 0 2.1rem;\n}\n\n.awsm-jobs-is-block-theme .site-content {\n\tpadding: 0 2.1rem 3rem;\n}\n\n.awsm-jobs-is-block-theme .site-title {\n\tmargin-bottom: 0;\n}\n\n.awsm-b-job-wrap, .awsm-b-job-wrap * {\n\tbox-sizing: border-box;\n }\n "],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/blocks/build/view.asset.php b/blocks/build/view.asset.php index 122aa9a5..05222d51 100644 --- a/blocks/build/view.asset.php +++ b/blocks/build/view.asset.php @@ -1 +1 @@ - array(), 'version' => 'a75d07c7a107b68260a6'); + array(), 'version' => 'b8f8e1b9a3512e1d8461'); diff --git a/blocks/build/view.js b/blocks/build/view.js index 543bc6af..9c36758e 100644 --- a/blocks/build/view.js +++ b/blocks/build/view.js @@ -196,19 +196,20 @@ jQuery(function ($) { $rootWrapper.find('input[name="paged"]').val(1); } }; - if ($('.awsm-job-no-more-jobs-get').length > 0) { + if ($('.awsm-b-job-no-more-jobs-get').length > 0) { $('.awsm-b-job-listings').hide(); - $('.awsm-job-no-more-jobs-get').slice(1).hide(); + $('.awsm-b-job-no-more-jobs-get').slice(1).hide(); } $(filterSelector + ' .awsm-b-filter-option').on('change', function (e) { e.preventDefault(); + $('.awsm-b-job-listings').show(); var $elem = $(this); var $selected = $elem.find('option:selected'); var $rootWrapper = $elem.parents(rootWrapperSelector); var currentSpec = $elem.parents('.awsm-b-filter-item').data('filter'); var slug = $selected.data('slug'); if ($('.awsm-b-job-listings').length > 0) { - $rootWrapper.find('.awsm-job-no-more-jobs-get').hide(); + $rootWrapper.find('.awsm-b-job-no-more-jobs-get').hide(); } slug = typeof slug !== 'undefined' ? slug : ''; setPaginationBase($rootWrapper, currentSpec, slug); diff --git a/blocks/build/view.js.map b/blocks/build/view.js.map index 35eb4f84..4fdf256c 100644 --- a/blocks/build/view.js.map +++ b/blocks/build/view.js.map @@ -1 +1 @@ -{"version":3,"file":"view.js","mappings":";;;;;AAAa;;AAEbA,MAAM,CAAC,UAASC,CAAC,EAAE;EAClB,IAAIC,mBAAmB,GAAG,kBAAkB;EAC5C,IAAIC,eAA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istings/./src/view.js"],"sourcesContent":["'use strict';\n\njQuery(function($) { \n\tvar rootWrapperSelector = '.awsm-b-job-wrap';\n\tvar wrapperSelector = '.awsm-b-job-listings';\n\n\t/* ========== Job Search and Filtering ========== */\n\n\tvar filterSelector = '.awsm-b-filter-wrap';\n\tvar currentUrl = window.location.protocol + '//' + window.location.host + window.location.pathname;\n\tvar triggerFilter = true;\n\n\tfunction getListingsData($wrapper) { \n\t\tvar data = [];\n\t\tvar parsedListingsAttrs = [ 'listings', 'specs', 'search', 'lang', 'taxonomy', 'termId' ];\n\n\t\t/* added for block */\n\t\tparsedListingsAttrs.push('awsm-layout');\n\t\tparsedListingsAttrs.push('awsm-hide-expired-jobs');\n\t\tparsedListingsAttrs.push('awsm-other-options');\n\t\t/* end */\n\t\t$(document).trigger('awsmJobBlockListingsData', [ parsedListingsAttrs ]);\n\n\t\tvar dataAttrs = $wrapper.data();\n\t\t$.each(dataAttrs, function(dataAttr, value) { \n\t\t\tif ($.inArray(dataAttr, parsedListingsAttrs) === -1) {\n\t\t\t\tdata.push({\n\t\t\t\t\tname: dataAttr,\n\t\t\t\t\tvalue: value\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\treturn data;\n\t}\n\n\tfunction awsmJobFilters($rootWrapper) { \n\t\tvar $wrapper = $rootWrapper.find(wrapperSelector);\n\t\tvar $filterForm = $rootWrapper.find(filterSelector + ' form');\n\t\tvar formData = $filterForm.serializeArray();\n\t\tvar listings = $wrapper.data('listings');\n\t\tvar specs = $wrapper.data('specs');\n\t\t\n\n\t\t/* added for block */\n\t\tvar layout \t\t\t\t= $wrapper.data('awsm-layout');\n\t\tvar hide_expired_jobs = $wrapper.data('awsm-hide-expired-jobs'); \n\t\tvar other_options \t\t= $wrapper.data('awsm-other-options'); \n\t\t/* end */\n\t\t\n\t\t$rootWrapper.find('.awsm-b-filter-item').each(function() {\n\t\t\tvar currentLoopSpec = $(this).data('filter');\n\t\t\tconsole.log($(this).data('filter'));\n\t\t\t\n\t\t\tvar searchParams = new URLSearchParams(document.location.search);\n\t\t\tvar currentSpecQueryVal = searchParams.get(currentLoopSpec); \n\t\t\tvar $currentOption = $(this).find('.awsm-b-filter-option');\n\t\t\t\n\t\t\tif ($currentOption.val().length === 0 && currentSpecQueryVal && currentSpecQueryVal.length > 0) {\n\t\t\t\tformData.forEach(function(item) {\n\t\t\t\t\tif (item.name === $currentOption.attr('name')) {\n\t\t\t\t\t\titem.value = '-1';\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\t\n\t\tformData.push({\n\t\t\tname: 'listings_per_page',\n\t\t\tvalue: listings\n\t\t});\n\t\tif (typeof specs !== 'undefined') {\n\t\t\tformData.push({\n\t\t\t\tname: 'shortcode_specs',\n\t\t\t\tvalue: specs\n\t\t\t});\n\t\t}\n\n\t\t/* added for block */\n\t\tif (typeof layout !== 'undefined') {\n\t\t\tformData.push({\n\t\t\t\tname: 'awsm-layout',\n\t\t\t\tvalue: layout\n\t\t\t});\n\t\t}\n\n\t\tif (typeof hide_expired_jobs !== 'undefined') {\n\t\t\tformData.push({\n\t\t\t\tname: 'awsm-hide-expired-jobs',\n\t\t\t\tvalue: hide_expired_jobs\n\t\t\t});\n\t\t}\n\n\t\tif (typeof other_options !== 'undefined') {\n\t\t\tformData.push({\n\t\t\t\tname: 'awsm-other-options',\n\t\t\t\tvalue: other_options\n\t\t\t});\n\t\t}\n\t\t/* end */\n\n\t\tvar listingsData = getListingsData($wrapper);\n\t\tif (listingsData.length > 0) {\n\t\t\tformData = formData.concat(listingsData);\n\t\t}\n\n\t\t// Trigger custom event to provide formData\n\t\t$(document).trigger('awsmJobBlockFiltersFormData', [$wrapper,formData]);\n\n\t\tif (triggerFilter) {\n\n\t\t\t// stop the duplicate requests.\n\t\t\ttriggerFilter = false;\n\n\t\t\t// now, make the request.\n\t\t\t$.ajax({\n\t\t\t\turl: $filterForm.attr('action'),\n\t\t\t\tbeforeSend: function() {\n\t\t\t\t\t$wrapper.addClass('awsm-b-jobs-loading');\n\t\t\t\t},\n\t\t\t\tdata: formData,\n\t\t\t\ttype: $filterForm.attr('method')\n\t\t\t}).done(function(data) {\n\t\t\t\t$wrapper.html(data);\n\t\t\t\tvar $searchControl = $rootWrapper.find('.awsm-b-job-search');\n\t\t\t\tif ($searchControl.length > 0) {\n\t\t\t\t\tif ($searchControl.val().length > 0) {\n\t\t\t\t\t\t$rootWrapper.find('.awsm-b-job-search-btn').addClass('awsm-b-job-hide');\n\t\t\t\t\t\t$rootWrapper.find('.awsm-b-job-search-close-btn').removeClass('awsm-b-job-hide');\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$rootWrapper.find('.awsm-b-job-search-btn').removeClass('awsm-b-job-hide');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$(document).trigger('awsmjobs_filtered_listings', [ $rootWrapper, data ]);\n\t\t\t}).fail(function(xhr) {\n\t\t\t\t// eslint-disable-next-line no-console\n\t\t\t\tconsole.log(xhr);\n\t\t\t}).always(function() {\n\t\t\t\t$wrapper.removeClass('awsm-b-jobs-loading');\n\t\t\t\ttriggerFilter = true;\n\t\t\t});\n\t\t}\n\t}\n\n\tfunction filterCheck($filterForm) {\n\t\tvar check = false;\n\t\tif ($filterForm.length > 0) {\n\t\t\tvar $filterOption = $filterForm.find('.awsm-b-filter-option');\n\t\t\t$filterOption.each(function() {\n\t\t\t\tif ($(this).val().length > 0) {\n\t\t\t\t\tcheck = true;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn check;\n\t}\n\n\tfunction searchJobs($elem) {\n\t\tvar $rootWrapper = $elem.parents(rootWrapperSelector);\n\t\tvar searchQuery = $rootWrapper.find('.awsm-b-job-search').val();\n\t\t$rootWrapper.find(wrapperSelector).data('search', searchQuery);\n\t\tif (searchQuery.length === 0) {\n\t\t\t$rootWrapper.find('.awsm-b-job-search-icon-wrapper').addClass('awsm-b-job-hide');\n\t\t}\n\t\tsetPaginationBase($rootWrapper, 'jq', searchQuery);\n\t\tif (awsmJobsPublic.deep_linking.search) {\n\t\t\tvar $paginationBase = $rootWrapper.find('input[name=\"awsm_pagination_base\"]');\n\t\t\tupdateQuery('jq', searchQuery, $paginationBase.val());\n\t\t}\n\t\tawsmJobFilters($rootWrapper);\n\t}\n\n\tvar updateQuery = function(key, value, url) {\n\t\turl = typeof url !== 'undefined' ? url : currentUrl;\n\t\turl = url.split('?')[0];\n\t\tvar searchParams = new URLSearchParams(document.location.search);\n\t\tif (searchParams.has('paged')) {\n\t\t\tsearchParams.delete('paged');\n\t\t}\n\t\tif (value.length > 0) {\n\t\t\tsearchParams.set(key, value);\n\t\t} else {\n\t\t\tsearchParams.delete(key);\n\t\t}\n\t\tvar modQueryString = searchParams.toString();\n\t\tif (modQueryString.length > 0) {\n\t\t\tmodQueryString = '?' + modQueryString;\n\t\t}\n\t\twindow.history.replaceState({}, '', url + modQueryString);\n\t};\n\n\tvar setPaginationBase = function($rootWrapper, key, value) {\n\t\tvar $paginationBase = $rootWrapper.find('input[name=\"awsm_pagination_base\"]');\n\t\tif ($paginationBase.length > 0) {\n\t\t\tvar splittedURL = $paginationBase.val().split('?');\n\t\t\tvar queryString = '';\n\t\t\tif (splittedURL.length > 1) {\n\t\t\t\tqueryString = splittedURL[1];\n\t\t\t}\n\t\t\tvar searchParams = new URLSearchParams(queryString);\n\t\t\tif (value.length > 0) {\n\t\t\t\tsearchParams.set(key, value);\n\t\t\t} else {\n\t\t\t\tsearchParams.delete(key);\n\t\t\t}\n\t\t\t$paginationBase.val(splittedURL[0] + '?' + searchParams.toString());\n\t\t\t$rootWrapper.find('input[name=\"paged\"]').val(1);\n\t\t}\n\t};\n\n\tif ($('.awsm-job-no-more-jobs-get').length > 0) {\n\t\t$('.awsm-b-job-listings').hide();\n\t\t$('.awsm-job-no-more-jobs-get').slice(1).hide();\n\t}\n\n\t$(filterSelector + ' .awsm-b-filter-option').on('change', function(e) { \n\t\te.preventDefault();\n\t\tvar $elem = $(this);\n\t\tvar $selected = $elem.find('option:selected');\n\t\tvar $rootWrapper = $elem.parents(rootWrapperSelector);\n\t\tvar currentSpec = $elem.parents('.awsm-b-filter-item').data('filter');\n\t\tvar slug = $selected.data('slug');\n\t\tif ($('.awsm-b-job-listings').length > 0) {\n\t\t\t$rootWrapper.find('.awsm-job-no-more-jobs-get').hide();\n\t\t}\n\t\tslug = typeof slug !== 'undefined' ? slug : '';\n\t\tsetPaginationBase($rootWrapper, currentSpec, slug);\n\t\tif (awsmJobsPublic.deep_linking.spec) {\n\t\t\tvar $paginationBase = $rootWrapper.find('input[name=\"awsm_pagination_base\"]');\n\t\t\tupdateQuery(currentSpec, slug, $paginationBase.val());\n\t\t}\n\t\tawsmJobFilters($rootWrapper);\n\t});\n\n\t$(filterSelector + ' .awsm-b-job-search-btn').on('click', function() {\n\t\tsearchJobs($(this));\n\t});\n\n\t$(filterSelector + ' .awsm-b-job-search-close-btn').on('click', function() {\n\t\tvar $elem = $(this);\n\t\t$elem.parents(rootWrapperSelector).find('.awsm-b-job-search').val('');\n\t\tsearchJobs($elem);\n\t});\n\n\t$(filterSelector + ' .awsm-b-job-search').on('keypress', function(e) {\n\t\tif (e.which == 13) {\n\t\t\te.preventDefault();\n\t\t\tsearchJobs($(this));\n\t\t}\n\t});\n\n\t/* ========== Job Listings Load More ========== */\n\t$(wrapperSelector).on('click', '.awsm-b-jobs-pagination .awsm-b-load-more-btn, .awsm-b-jobs-pagination a.page-numbers', function(e) {\n\t\te.preventDefault(); \n\t\tvar $triggerElem = $(this);\n\t\tvar isDefaultPagination = $triggerElem.hasClass('awsm-b-load-more-btn');\n\t\tvar paged = 1;\n\t\tvar wpData = [];\n\t\tvar $mainContainer = $triggerElem.parents(rootWrapperSelector);\n\t\tvar $listingsContainer = $mainContainer.find(wrapperSelector);\n\t\tvar $paginationWrapper = $triggerElem.parents('.awsm-b-jobs-pagination');\n\t\tvar listings = $listingsContainer.data('listings');\n\t\tvar specs = $listingsContainer.data('specs');\n\t\tvar lang = $listingsContainer.data('lang');\n\t\tvar searchQuery = $listingsContainer.data('search');\n\n\t\t/* added for block */\n\t\tvar layout = $listingsContainer.data('awsm-layout');\n\t\tvar hide_expired_jobs = $listingsContainer.data('awsm-hide-expired-jobs');\n\t\tvar other_options = $listingsContainer.data('awsm-other-options');\n\t\t/* end */\n\n\t\tif (isDefaultPagination) {\n\t\t\t$triggerElem.prop('disabled', true);\n\t\t\tpaged = $triggerElem.data('page');\n\t\t\tpaged = (typeof paged == 'undefined') ? 1 : paged;\n\t\t} else {\n\t\t\t$triggerElem.parents('.page-numbers').find('.page-numbers').removeClass('current').removeAttr('aria-current');\n\t\t\t$triggerElem.addClass('current').attr('aria-current', 'page');\n\t\t}\n\t\t$paginationWrapper.addClass('awsm-b-jobs-pagination-loading');\n\n\t\t// filters\n\t\tvar $filterForm = $mainContainer.find(filterSelector + ' form');\n\t\tif (filterCheck($filterForm)) {\n\t\t\tvar $filterOption = $filterForm.find('.awsm-b-filter-option');\n\t\t\twpData = $filterOption.serializeArray();\n\t\t}\n\n\t\tif (! isDefaultPagination) {\n\t\t\tvar paginationBaseURL = $triggerElem.attr('href');\n\t\t\tvar splittedURL = paginationBaseURL.split('?');\n\t\t\tvar queryString = '';\n\t\t\tif (splittedURL.length > 1) {\n\t\t\t\tvar searchParams = new URLSearchParams(splittedURL[1]);\n\t\t\t\tpaged = searchParams.get('paged');\n\t\t\t\tsearchParams.delete('paged');\n\t\t\t\tif (searchParams.toString().length > 0) {\n\t\t\t\t\tqueryString = '?' + searchParams.toString();\n\t\t\t\t}\n\t\t\t}\n\t\t\tpaginationBaseURL = splittedURL[0] + queryString;\n\t\t\twpData.push({\n\t\t\t\tname: 'awsm_pagination_base',\n\t\t\t\tvalue: splittedURL[0] + queryString\n\t\t\t});\n\t\t\tif (awsmJobsPublic.deep_linking.pagination) {\n\t\t\t\tupdateQuery('paged', paged, paginationBaseURL);\n\t\t\t}\n\t\t}\n\n\t\t// taxonomy archives\n\t\tif (awsmJobsPublic.is_tax_archive) {\n\t\t\tvar taxonomy = $listingsContainer.data('taxonomy');\n\t\t\tvar termId = $listingsContainer.data('termId');\n\t\t\tif (typeof taxonomy !== 'undefined' && typeof termId !== 'undefined') {\n\t\t\t\twpData.push({\n\t\t\t\t\tname: 'awsm_job_spec[' + taxonomy + ']',\n\t\t\t\t\tvalue: termId\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\twpData.push({\n\t\t\tname: 'action',\n\t\t\tvalue: 'block_loadmore'\n\t\t}, {\n\t\t\tname: 'paged',\n\t\t\tvalue: paged\n\t\t});\n\t\tif (typeof listings !== 'undefined') {\n\t\t\twpData.push({\n\t\t\t\tname: 'listings_per_page',\n\t\t\t\tvalue: listings\n\t\t\t});\n\t\t}\n\t\tif (typeof specs !== 'undefined') {\n\t\t\twpData.push({\n\t\t\t\tname: 'shortcode_specs',\n\t\t\t\tvalue: specs\n\t\t\t});\n\t\t}\n\n\t\t/* added for block */\n\t\tif (typeof layout !== 'undefined') {\n\t\t\twpData.push({\n\t\t\t\tname: 'awsm-layout',\n\t\t\t\tvalue: layout\n\t\t\t});\n\t\t}\n\t\tif (typeof hide_expired_jobs !== 'undefined') {\n\t\t\twpData.push({\n\t\t\t\tname: 'awsm-hide-expired-jobs',\n\t\t\t\tvalue: hide_expired_jobs\n\t\t\t});\n\t\t}\n\t\tif (typeof other_options !== 'undefined') {\n\t\t\twpData.push({\n\t\t\t\tname: 'awsm-other-options',\n\t\t\t\tvalue: other_options\n\t\t\t});\n\t\t}\n\t\t\n\t\tif (typeof lang !== 'undefined') {\n\t\t\twpData.push({\n\t\t\t\tname: 'lang',\n\t\t\t\tvalue: lang\n\t\t\t});\n\t\t}\n\t\tif (typeof searchQuery !== 'undefined') {\n\t\t\twpData.push({\n\t\t\t\tname: 'jq',\n\t\t\t\tvalue: searchQuery\n\t\t\t});\n\t\t}\n\n\t\t$(document).trigger('awsmjobs_block_load_more', [ $listingsContainer,wpData ]);\n\t\tvar listingsData = getListingsData($listingsContainer);\n\t\tif (listingsData.length > 0) {\n\t\t\twpData = wpData.concat(listingsData);\n\t\t}\n\n\t\t// now, handle ajax\n\t\t$.ajax({\n\t\t\turl: awsmJobsPublic.ajaxurl,\n\t\t\tdata: $.param(wpData),\n\t\t\ttype: 'POST',\n\t\t\tbeforeSend: function() {\n\t\t\t\tif (isDefaultPagination) {\n\t\t\t\t\t$triggerElem.text(awsmJobsPublic.i18n.loading_text);\n\t\t\t\t} else {\n\t\t\t\t\t$listingsContainer.addClass('awsm-b-jobs-loading');\n\t\t\t\t}\n\t\t\t}\n\t\t}).done(function(data) {\n\t\t\tif (data) {\n\t\t\t\tvar effectDuration = $paginationWrapper.data('effectDuration');\n\t\t\t\t$paginationWrapper.remove();\n\t\t\t\tif (isDefaultPagination) {\n\t\t\t\t\t$listingsContainer.append(data);\n\t\t\t\t} else {\n\t\t\t\t\t$listingsContainer.html(data);\n\t\t\t\t\t$listingsContainer.removeClass('awsm-b-jobs-loading');\n\t\t\t\t\tif (typeof effectDuration !== 'undefined') {\n\t\t\t\t\t\teffectDuration = isNaN(effectDuration) ? effectDuration : Number(effectDuration);\n\t\t\t\t\t\t$('html, body').animate({\n\t\t\t\t\t\t\tscrollTop: $mainContainer.offset().top - 25\n\t\t\t\t\t\t}, effectDuration);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$triggerElem.remove();\n\t\t\t}\n\t\t\t$(document).trigger('awsmjobs_load_more', [ $triggerElem, data ]);\n\t\t}).fail(function(xhr) {\n\t\t\t// eslint-disable-next-line no-console\n\t\t\tconsole.log(xhr);\n\t\t});\n\t});\n\n\t/**\n\t * Handle the filters toggle button in the job listing.\n\t */\n\t$(document).on('click', '.awsm-b-filter-toggle', function(e) {\n\t\te.preventDefault();\n\t\tvar $elem = $(this);\n\t\t$elem.toggleClass('awsm-on');\n\t\tif ($elem.hasClass('awsm-on')) {\n\t\t\t$elem.attr('aria-pressed', 'true');\n\t\t} else {\n\t\t\t$elem.attr('aria-pressed', 'false');\n\t\t}\n\t\tvar $parent = $elem.parent();\n\t\t$parent.find('.awsm-b-filter-items').slideToggle();\n\t});\n\n\t/**\n\t * Handle the responsive styles for filters in the job listing when search is enabled.\n\t */\n\tfunction filtersResponsiveStylesHandler() {\n\t\tvar $filtersWrap = $('.awsm-b-filter-wrap').not('.awsm-b-no-search-filter-wrap');\n\t\t$filtersWrap.each(function() {\n\t\t\tvar $wrapper = $(this); \n\t\t\tvar filterFirstTop = $wrapper.find('.awsm-b-filter-item').first().offset().top;\n\t\t\tvar filterLastTop = $wrapper.find('.awsm-b-filter-item').last().offset().top;\n\t\t\tif(window.innerWidth < 768) {\n\t\t\t\t$wrapper.removeClass('awsm-b-full-width-search-filter-wrap');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (filterLastTop > filterFirstTop) {\n\t\t\t\t$wrapper.addClass('awsm-b-full-width-search-filter-wrap');\n\t\t\t}\n\t\t});\n\t}\n\tif ($('.awsm-b-filter-wrap').not('.awsm-b-no-search-filter-wrap').length > 0) {\n\t\tfiltersResponsiveStylesHandler();\n\t\t$(window).on('resize', filtersResponsiveStylesHandler);\n\t}\n});\n\n"],"names":["jQuery","$","rootWrapperSelector","wrapperSelector","filterSelector","currentUrl","window","location","protocol","host","pathname","triggerFilter","getListingsData","$wrapper","data","parsedListingsAttrs","push","document","trigger","dataAttrs","each","dataAttr","value","inArray","name","awsmJobFilters","$rootWrapper","find","$filterForm","formData","serializeArray","listings","specs","layout","hide_expired_jobs","other_options","currentLoopSpec","console","log","searchParams","URLSearchParams","search","currentSpecQueryVal","get","$currentOption","val","length","forEach","item","attr","listingsData","concat","ajax","url","beforeSend","addClass","type","done","html","$searchControl","removeClass","fail","xhr","always","filterCheck","check","$filterOption","searchJobs","$elem","parents","searchQuery","setPaginationBase","awsmJobsPublic","deep_linking","$paginationBase","updateQuery","key","split","has","delete","set","modQueryString","toString","history","replaceState","splittedURL","queryString","hide","slice","on","e","preventDefault","$selected","currentSpec","slug","spec","which","$triggerElem","isDefaultPagination","hasClass","paged","wpData","$mainContainer","$listingsContainer","$paginationWrapper","lang","prop","removeAttr","paginationBaseURL","pagination","is_tax_archive","taxonomy","termId","ajaxurl","param","text","i18n","loading_text","effectDuration","remove","append","isNaN","Number","animate","scrollTop","offset","top","toggleClass","$parent","parent","slideToggle","filtersResponsiveStylesHandler","$filtersWrap","not","filterFirstTop","first","filterLastTop","last","innerWidth"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"view.js","mappings":";;;;;AAAa;;AAEbA,MAAM,CAAC,UAASC,CAAC,EAAE;EAClB,IAAIC,mBAAmB,GAAG,kBAAkB;EAC5C,IAAIC,eAAe,GAAG,sBAAsB;;EAE5C;;EAEA,IAAIC,cAAc,GAAG,qBAAqB;EAC1C,IAAIC,UAAU,GAAGC,MAAM,CAACC,QAAQ,CAACC,QAAQ,GAAG,IAAI,GAAGF,MAAM,CAACC,QAAQ,CAACE,IAAI,GAAGH,MAAM,CAACC,QAAQ,CAACG,QAAQ;EAClG,IAAIC,aAAa,GAAG,IAAI;EAExB,SAASC,eAAeA,CAACC,QAAQ,EAAE;IAClC,IAAIC,IAAI,GAAG,EAAE;IACb,IAAIC,mBAAmB,GAAG,CAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,CAAE;;IAEzF;IACAA,mBAAmB,CAACC,IAAI,CAAC,aAAa,CAAC;IACvCD,mBAAmB,CAACC,IAAI,CAAC,wBAAwB,CAAC;IAClDD,mBAAmB,CAACC,IAAI,CAAC,oBAAoB,CAAC;IAC9C;IACAf,CAAC,CAACgB,QAAQ,CAAC,CAACC,OAAO,CAAC,0BAA0B,EAAE,CAAEH,mBAAmB,CAAE,CAAC;IAExE,IAAII,SAAS,GAAGN,QAAQ,CAACC,IAAI,CAAC,CAAC;IAC/Bb,CAAC,CAACmB,IAAI,CAACD,SAAS,EAAE,UAASE,QAAQ,EAAEC,KAAK,EAAE;MAC3C,IAAIrB,CAAC,CAACsB,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AM,CAACqI,UAAU,GAAG,GAAG,EAAE;QAC3B9H,QAAQ,CAAC+C,WAAW,CAAC,sCAAsC,CAAC;QAC5D;MACD;MACA,IAAI6E,aAAa,GAAGF,cAAc,EAAE;QACnC1H,QAAQ,CAAC0C,QAAQ,CAAC,sCAAsC,CAAC;MAC1D;IACD,CAAC,CAAC;EACH;EACA,IAAItD,CAAC,CAAC,qBAAqB,CAAC,CAACqI,GAAG,CAAC,+BAA+B,CAAC,CAACxF,MAAM,GAAG,CAAC,EAAE;IAC7EsF,8BAA8B,CAAC,CAAC;IAChCnI,CAAC,CAACK,MAAM,CAAC,CAACmF,EAAE,CAAC,QAAQ,EAAE2C,8BAA8B,CAAC;EACvD;AACD,CAAC,CAAC,C","sources":["webpack://joblistings/./src/view.js"],"sourcesContent":["'use strict';\n\njQuery(function($) { \n\tvar rootWrapperSelector = '.awsm-b-job-wrap';\n\tvar wrapperSelector = '.awsm-b-job-listings';\n\n\t/* ========== Job Search and Filtering ========== */\n\n\tvar filterSelector = '.awsm-b-filter-wrap';\n\tvar currentUrl = window.location.protocol + '//' + window.location.host + window.location.pathname;\n\tvar triggerFilter = true;\n\n\tfunction getListingsData($wrapper) { \n\t\tvar data = [];\n\t\tvar parsedListingsAttrs = [ 'listings', 'specs', 'search', 'lang', 'taxonomy', 'termId' ];\n\n\t\t/* added for block */\n\t\tparsedListingsAttrs.push('awsm-layout');\n\t\tparsedListingsAttrs.push('awsm-hide-expired-jobs');\n\t\tparsedListingsAttrs.push('awsm-other-options');\n\t\t/* end */\n\t\t$(document).trigger('awsmJobBlockListingsData', [ parsedListingsAttrs ]);\n\n\t\tvar dataAttrs = $wrapper.data();\n\t\t$.each(dataAttrs, function(dataAttr, value) { \n\t\t\tif ($.inArray(dataAttr, parsedListingsAttrs) === -1) {\n\t\t\t\tdata.push({\n\t\t\t\t\tname: dataAttr,\n\t\t\t\t\tvalue: value\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\treturn data;\n\t}\n\n\tfunction awsmJobFilters($rootWrapper) { \n\t\tvar $wrapper = $rootWrapper.find(wrapperSelector);\n\t\tvar $filterForm = $rootWrapper.find(filterSelector + ' form');\n\t\tvar formData = $filterForm.serializeArray();\n\t\tvar listings = $wrapper.data('listings');\n\t\tvar specs = $wrapper.data('specs');\n\t\t\n\n\t\t/* added for block */\n\t\tvar layout \t\t\t\t= $wrapper.data('awsm-layout');\n\t\tvar hide_expired_jobs = $wrapper.data('awsm-hide-expired-jobs'); \n\t\tvar other_options \t\t= $wrapper.data('awsm-other-options'); \n\t\t/* end */\n\t\t\n\t\t$rootWrapper.find('.awsm-b-filter-item').each(function() {\n\t\t\tvar currentLoopSpec = $(this).data('filter');\n\t\t\tconsole.log($(this).data('filter'));\n\t\t\t\n\t\t\tvar searchParams = new URLSearchParams(document.location.search);\n\t\t\tvar currentSpecQueryVal = searchParams.get(currentLoopSpec); \n\t\t\tvar $currentOption = $(this).find('.awsm-b-filter-option');\n\t\t\t\n\t\t\tif ($currentOption.val().length === 0 && currentSpecQueryVal && currentSpecQueryVal.length > 0) {\n\t\t\t\tformData.forEach(function(item) {\n\t\t\t\t\tif (item.name === $currentOption.attr('name')) {\n\t\t\t\t\t\titem.value = '-1';\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\t\n\t\tformData.push({\n\t\t\tname: 'listings_per_page',\n\t\t\tvalue: listings\n\t\t});\n\t\tif (typeof specs !== 'undefined') {\n\t\t\tformData.push({\n\t\t\t\tname: 'shortcode_specs',\n\t\t\t\tvalue: specs\n\t\t\t});\n\t\t}\n\n\t\t/* added for block */\n\t\tif (typeof layout !== 'undefined') {\n\t\t\tformData.push({\n\t\t\t\tname: 'awsm-layout',\n\t\t\t\tvalue: layout\n\t\t\t});\n\t\t}\n\n\t\tif (typeof hide_expired_jobs !== 'undefined') {\n\t\t\tformData.push({\n\t\t\t\tname: 'awsm-hide-expired-jobs',\n\t\t\t\tvalue: hide_expired_jobs\n\t\t\t});\n\t\t}\n\n\t\tif (typeof other_options !== 'undefined') {\n\t\t\tformData.push({\n\t\t\t\tname: 'awsm-other-options',\n\t\t\t\tvalue: other_options\n\t\t\t});\n\t\t}\n\t\t/* end */\n\n\t\tvar listingsData = getListingsData($wrapper);\n\t\tif (listingsData.length > 0) {\n\t\t\tformData = formData.concat(listingsData);\n\t\t}\n\n\t\t// Trigger custom event to provide formData\n\t\t$(document).trigger('awsmJobBlockFiltersFormData', [$wrapper,formData]);\n\n\t\tif (triggerFilter) {\n\n\t\t\t// stop the duplicate requests.\n\t\t\ttriggerFilter = false;\n\n\t\t\t// now, make the request.\n\t\t\t$.ajax({\n\t\t\t\turl: $filterForm.attr('action'),\n\t\t\t\tbeforeSend: function() {\n\t\t\t\t\t$wrapper.addClass('awsm-b-jobs-loading');\n\t\t\t\t},\n\t\t\t\tdata: formData,\n\t\t\t\ttype: $filterForm.attr('method')\n\t\t\t}).done(function(data) {\n\t\t\t\t$wrapper.html(data);\n\t\t\t\tvar $searchControl = $rootWrapper.find('.awsm-b-job-search');\n\t\t\t\tif ($searchControl.length > 0) {\n\t\t\t\t\tif ($searchControl.val().length > 0) {\n\t\t\t\t\t\t$rootWrapper.find('.awsm-b-job-search-btn').addClass('awsm-b-job-hide');\n\t\t\t\t\t\t$rootWrapper.find('.awsm-b-job-search-close-btn').removeClass('awsm-b-job-hide');\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$rootWrapper.find('.awsm-b-job-search-btn').removeClass('awsm-b-job-hide');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$(document).trigger('awsmjobs_filtered_listings', [ $rootWrapper, data ]);\n\t\t\t}).fail(function(xhr) {\n\t\t\t\t// eslint-disable-next-line no-console\n\t\t\t\tconsole.log(xhr);\n\t\t\t}).always(function() {\n\t\t\t\t$wrapper.removeClass('awsm-b-jobs-loading');\n\t\t\t\ttriggerFilter = true;\n\t\t\t});\n\t\t}\n\t}\n\n\tfunction filterCheck($filterForm) {\n\t\tvar check = false;\n\t\tif ($filterForm.length > 0) {\n\t\t\tvar $filterOption = $filterForm.find('.awsm-b-filter-option');\n\t\t\t$filterOption.each(function() {\n\t\t\t\tif ($(this).val().length > 0) {\n\t\t\t\t\tcheck = true;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn check;\n\t}\n\n\tfunction searchJobs($elem) {\n\t\tvar $rootWrapper = $elem.parents(rootWrapperSelector);\n\t\tvar searchQuery = $rootWrapper.find('.awsm-b-job-search').val();\n\t\t$rootWrapper.find(wrapperSelector).data('search', searchQuery);\n\t\tif (searchQuery.length === 0) {\n\t\t\t$rootWrapper.find('.awsm-b-job-search-icon-wrapper').addClass('awsm-b-job-hide');\n\t\t}\n\t\tsetPaginationBase($rootWrapper, 'jq', searchQuery);\n\t\tif (awsmJobsPublic.deep_linking.search) {\n\t\t\tvar $paginationBase = $rootWrapper.find('input[name=\"awsm_pagination_base\"]');\n\t\t\tupdateQuery('jq', searchQuery, $paginationBase.val());\n\t\t}\n\t\tawsmJobFilters($rootWrapper);\n\t}\n\n\tvar updateQuery = function(key, value, url) {\n\t\turl = typeof url !== 'undefined' ? url : currentUrl;\n\t\turl = url.split('?')[0];\n\t\tvar searchParams = new URLSearchParams(document.location.search);\n\t\tif (searchParams.has('paged')) {\n\t\t\tsearchParams.delete('paged');\n\t\t}\n\t\tif (value.length > 0) {\n\t\t\tsearchParams.set(key, value);\n\t\t} else {\n\t\t\tsearchParams.delete(key);\n\t\t}\n\t\tvar modQueryString = searchParams.toString();\n\t\tif (modQueryString.length > 0) {\n\t\t\tmodQueryString = '?' + modQueryString;\n\t\t}\n\t\twindow.history.replaceState({}, '', url + modQueryString);\n\t};\n\n\tvar setPaginationBase = function($rootWrapper, key, value) {\n\t\tvar $paginationBase = $rootWrapper.find('input[name=\"awsm_pagination_base\"]');\n\t\tif ($paginationBase.length > 0) {\n\t\t\tvar splittedURL = $paginationBase.val().split('?');\n\t\t\tvar queryString = '';\n\t\t\tif (splittedURL.length > 1) {\n\t\t\t\tqueryString = splittedURL[1];\n\t\t\t}\n\t\t\tvar searchParams = new URLSearchParams(queryString);\n\t\t\tif (value.length > 0) {\n\t\t\t\tsearchParams.set(key, value);\n\t\t\t} else {\n\t\t\t\tsearchParams.delete(key);\n\t\t\t}\n\t\t\t$paginationBase.val(splittedURL[0] + '?' + searchParams.toString());\n\t\t\t$rootWrapper.find('input[name=\"paged\"]').val(1);\n\t\t}\n\t};\n\n\tif ($('.awsm-b-job-no-more-jobs-get').length > 0) {\n\t\t$('.awsm-b-job-listings').hide();\n\t\t$('.awsm-b-job-no-more-jobs-get').slice(1).hide();\n\t}\n\n\t$(filterSelector + ' .awsm-b-filter-option').on('change', function(e) { \n\t\te.preventDefault();\n\t\t$('.awsm-b-job-listings').show();\n\t\tvar $elem = $(this);\n\t\tvar $selected = $elem.find('option:selected');\n\t\tvar $rootWrapper = $elem.parents(rootWrapperSelector);\n\t\tvar currentSpec = $elem.parents('.awsm-b-filter-item').data('filter');\n\t\tvar slug = $selected.data('slug');\n\t\tif ($('.awsm-b-job-listings').length > 0) {\n\t\t\t$rootWrapper.find('.awsm-b-job-no-more-jobs-get').hide();\n\t\t}\n\t\tslug = typeof slug !== 'undefined' ? slug : '';\n\t\tsetPaginationBase($rootWrapper, currentSpec, slug);\n\t\tif (awsmJobsPublic.deep_linking.spec) {\n\t\t\tvar $paginationBase = $rootWrapper.find('input[name=\"awsm_pagination_base\"]');\n\t\t\tupdateQuery(currentSpec, slug, $paginationBase.val());\n\t\t}\n\t\tawsmJobFilters($rootWrapper);\n\t});\n\n\t$(filterSelector + ' .awsm-b-job-search-btn').on('click', function() {\n\t\tsearchJobs($(this));\n\t});\n\n\t$(filterSelector + ' .awsm-b-job-search-close-btn').on('click', function() {\n\t\tvar $elem = $(this);\n\t\t$elem.parents(rootWrapperSelector).find('.awsm-b-job-search').val('');\n\t\tsearchJobs($elem);\n\t});\n\n\t$(filterSelector + ' .awsm-b-job-search').on('keypress', function(e) {\n\t\tif (e.which == 13) {\n\t\t\te.preventDefault();\n\t\t\tsearchJobs($(this));\n\t\t}\n\t});\n\n\t/* ========== Job Listings Load More ========== */\n\t$(wrapperSelector).on('click', '.awsm-b-jobs-pagination .awsm-b-load-more-btn, .awsm-b-jobs-pagination a.page-numbers', function(e) {\n\t\te.preventDefault(); \n\t\tvar $triggerElem = $(this);\n\t\tvar isDefaultPagination = $triggerElem.hasClass('awsm-b-load-more-btn');\n\t\tvar paged = 1;\n\t\tvar wpData = [];\n\t\tvar $mainContainer = $triggerElem.parents(rootWrapperSelector);\n\t\tvar $listingsContainer = $mainContainer.find(wrapperSelector);\n\t\tvar $paginationWrapper = $triggerElem.parents('.awsm-b-jobs-pagination');\n\t\tvar listings = $listingsContainer.data('listings');\n\t\tvar specs = $listingsContainer.data('specs');\n\t\tvar lang = $listingsContainer.data('lang');\n\t\tvar searchQuery = $listingsContainer.data('search');\n\n\t\t/* added for block */\n\t\tvar layout = $listingsContainer.data('awsm-layout');\n\t\tvar hide_expired_jobs = $listingsContainer.data('awsm-hide-expired-jobs');\n\t\tvar other_options = $listingsContainer.data('awsm-other-options');\n\t\t/* end */\n\n\t\tif (isDefaultPagination) {\n\t\t\t$triggerElem.prop('disabled', true);\n\t\t\tpaged = $triggerElem.data('page');\n\t\t\tpaged = (typeof paged == 'undefined') ? 1 : paged;\n\t\t} else {\n\t\t\t$triggerElem.parents('.page-numbers').find('.page-numbers').removeClass('current').removeAttr('aria-current');\n\t\t\t$triggerElem.addClass('current').attr('aria-current', 'page');\n\t\t}\n\t\t$paginationWrapper.addClass('awsm-b-jobs-pagination-loading');\n\n\t\t// filters\n\t\tvar $filterForm = $mainContainer.find(filterSelector + ' form');\n\t\tif (filterCheck($filterForm)) {\n\t\t\tvar $filterOption = $filterForm.find('.awsm-b-filter-option');\n\t\t\twpData = $filterOption.serializeArray();\n\t\t}\n\n\t\tif (! isDefaultPagination) {\n\t\t\tvar paginationBaseURL = $triggerElem.attr('href');\n\t\t\tvar splittedURL = paginationBaseURL.split('?');\n\t\t\tvar queryString = '';\n\t\t\tif (splittedURL.length > 1) {\n\t\t\t\tvar searchParams = new URLSearchParams(splittedURL[1]);\n\t\t\t\tpaged = searchParams.get('paged');\n\t\t\t\tsearchParams.delete('paged');\n\t\t\t\tif (searchParams.toString().length > 0) {\n\t\t\t\t\tqueryString = '?' + searchParams.toString();\n\t\t\t\t}\n\t\t\t}\n\t\t\tpaginationBaseURL = splittedURL[0] + queryString;\n\t\t\twpData.push({\n\t\t\t\tname: 'awsm_pagination_base',\n\t\t\t\tvalue: splittedURL[0] + queryString\n\t\t\t});\n\t\t\tif (awsmJobsPublic.deep_linking.pagination) {\n\t\t\t\tupdateQuery('paged', paged, paginationBaseURL);\n\t\t\t}\n\t\t}\n\n\t\t// taxonomy archives\n\t\tif (awsmJobsPublic.is_tax_archive) {\n\t\t\tvar taxonomy = $listingsContainer.data('taxonomy');\n\t\t\tvar termId = $listingsContainer.data('termId');\n\t\t\tif (typeof taxonomy !== 'undefined' && typeof termId !== 'undefined') {\n\t\t\t\twpData.push({\n\t\t\t\t\tname: 'awsm_job_spec[' + taxonomy + ']',\n\t\t\t\t\tvalue: termId\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\twpData.push({\n\t\t\tname: 'action',\n\t\t\tvalue: 'block_loadmore'\n\t\t}, {\n\t\t\tname: 'paged',\n\t\t\tvalue: paged\n\t\t});\n\t\tif (typeof listings !== 'undefined') {\n\t\t\twpData.push({\n\t\t\t\tname: 'listings_per_page',\n\t\t\t\tvalue: listings\n\t\t\t});\n\t\t}\n\t\tif (typeof specs !== 'undefined') {\n\t\t\twpData.push({\n\t\t\t\tname: 'shortcode_specs',\n\t\t\t\tvalue: specs\n\t\t\t});\n\t\t}\n\n\t\t/* added for block */\n\t\tif (typeof layout !== 'undefined') {\n\t\t\twpData.push({\n\t\t\t\tname: 'awsm-layout',\n\t\t\t\tvalue: layout\n\t\t\t});\n\t\t}\n\t\tif (typeof hide_expired_jobs !== 'undefined') {\n\t\t\twpData.push({\n\t\t\t\tname: 'awsm-hide-expired-jobs',\n\t\t\t\tvalue: hide_expired_jobs\n\t\t\t});\n\t\t}\n\t\tif (typeof other_options !== 'undefined') {\n\t\t\twpData.push({\n\t\t\t\tname: 'awsm-other-options',\n\t\t\t\tvalue: other_options\n\t\t\t});\n\t\t}\n\t\t\n\t\tif (typeof lang !== 'undefined') {\n\t\t\twpData.push({\n\t\t\t\tname: 'lang',\n\t\t\t\tvalue: lang\n\t\t\t});\n\t\t}\n\t\tif (typeof searchQuery !== 'undefined') {\n\t\t\twpData.push({\n\t\t\t\tname: 'jq',\n\t\t\t\tvalue: searchQuery\n\t\t\t});\n\t\t}\n\n\t\t$(document).trigger('awsmjobs_block_load_more', [ $listingsContainer,wpData ]);\n\t\tvar listingsData = getListingsData($listingsContainer);\n\t\tif (listingsData.length > 0) {\n\t\t\twpData = wpData.concat(listingsData);\n\t\t}\n\n\t\t// now, handle ajax\n\t\t$.ajax({\n\t\t\turl: awsmJobsPublic.ajaxurl,\n\t\t\tdata: $.param(wpData),\n\t\t\ttype: 'POST',\n\t\t\tbeforeSend: function() {\n\t\t\t\tif (isDefaultPagination) {\n\t\t\t\t\t$triggerElem.text(awsmJobsPublic.i18n.loading_text);\n\t\t\t\t} else {\n\t\t\t\t\t$listingsContainer.addClass('awsm-b-jobs-loading');\n\t\t\t\t}\n\t\t\t}\n\t\t}).done(function(data) {\n\t\t\tif (data) {\n\t\t\t\tvar effectDuration = $paginationWrapper.data('effectDuration');\n\t\t\t\t$paginationWrapper.remove();\n\t\t\t\tif (isDefaultPagination) {\n\t\t\t\t\t$listingsContainer.append(data);\n\t\t\t\t} else {\n\t\t\t\t\t$listingsContainer.html(data);\n\t\t\t\t\t$listingsContainer.removeClass('awsm-b-jobs-loading');\n\t\t\t\t\tif (typeof effectDuration !== 'undefined') {\n\t\t\t\t\t\teffectDuration = isNaN(effectDuration) ? effectDuration : Number(effectDuration);\n\t\t\t\t\t\t$('html, body').animate({\n\t\t\t\t\t\t\tscrollTop: $mainContainer.offset().top - 25\n\t\t\t\t\t\t}, effectDuration);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$triggerElem.remove();\n\t\t\t}\n\t\t\t$(document).trigger('awsmjobs_load_more', [ $triggerElem, data ]);\n\t\t}).fail(function(xhr) {\n\t\t\t// eslint-disable-next-line no-console\n\t\t\tconsole.log(xhr);\n\t\t});\n\t});\n\n\t/**\n\t * Handle the filters toggle button in the job listing.\n\t */\n\t$(document).on('click', '.awsm-b-filter-toggle', function(e) {\n\t\te.preventDefault();\n\t\tvar $elem = $(this);\n\t\t$elem.toggleClass('awsm-on');\n\t\tif ($elem.hasClass('awsm-on')) {\n\t\t\t$elem.attr('aria-pressed', 'true');\n\t\t} else {\n\t\t\t$elem.attr('aria-pressed', 'false');\n\t\t}\n\t\tvar $parent = $elem.parent();\n\t\t$parent.find('.awsm-b-filter-items').slideToggle();\n\t});\n\n\t/**\n\t * Handle the responsive styles for filters in the job listing when search is enabled.\n\t */\n\tfunction filtersResponsiveStylesHandler() {\n\t\tvar $filtersWrap = $('.awsm-b-filter-wrap').not('.awsm-b-no-search-filter-wrap');\n\t\t$filtersWrap.each(function() {\n\t\t\tvar $wrapper = $(this); \n\t\t\tvar filterFirstTop = $wrapper.find('.awsm-b-filter-item').first().offset().top;\n\t\t\tvar filterLastTop = $wrapper.find('.awsm-b-filter-item').last().offset().top;\n\t\t\tif(window.innerWidth < 768) {\n\t\t\t\t$wrapper.removeClass('awsm-b-full-width-search-filter-wrap');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (filterLastTop > filterFirstTop) {\n\t\t\t\t$wrapper.addClass('awsm-b-full-width-search-filter-wrap');\n\t\t\t}\n\t\t});\n\t}\n\tif ($('.awsm-b-filter-wrap').not('.awsm-b-no-search-filter-wrap').length > 0) {\n\t\tfiltersResponsiveStylesHandler();\n\t\t$(window).on('resize', filtersResponsiveStylesHandler);\n\t}\n});\n\n"],"names":["jQuery","$","rootWrapperSelector","wrapperSelector","filterSelector","currentUrl","window","location","protocol","host","pathname","triggerFilter","getListingsData","$wrapper","data","parsedListingsAttrs","push","document","trigger","dataAttrs","each","dataAttr","value","inArray","name","awsmJobFilters","$rootWrapper","find","$filterForm","formData","serializeArray","listings","specs","layout","hide_expired_jobs","other_options","currentLoopSpec","console","log","searchParams","URLSearchParams","search","currentSpecQueryVal","get","$currentOption","val","length","forEach","item","attr","listingsData","concat","ajax","url","beforeSend","addClass","type","done","html","$searchControl","removeClass","fail","xhr","always","filterCheck","check","$filterOption","searchJobs","$elem","parents","searchQuery","setPaginationBase","awsmJobsPublic","deep_linking","$paginationBase","updateQuery","key","split","has","delete","set","modQueryString","toString","history","replaceState","splittedURL","queryString","hide","slice","on","e","preventDefault","show","$selected","currentSpec","slug","spec","which","$triggerElem","isDefaultPagination","hasClass","paged","wpData","$mainContainer","$listingsContainer","$paginationWrapper","lang","prop","removeAttr","paginationBaseURL","pagination","is_tax_archive","taxonomy","termId","ajaxurl","param","text","i18n","loading_text","effectDuration","remove","append","isNaN","Number","animate","scrollTop","offset","top","toggleClass","$parent","parent","slideToggle","filtersResponsiveStylesHandler","$filtersWrap","not","filterFirstTop","first","filterLastTop","last","innerWidth"],"sourceRoot":""} \ No newline at end of file diff --git a/blocks/src/view.js b/blocks/src/view.js index b2935206..a5f6b0fa 100644 --- a/blocks/src/view.js +++ b/blocks/src/view.js @@ -207,20 +207,21 @@ jQuery(function($) { } }; - if ($('.awsm-job-no-more-jobs-get').length > 0) { + if ($('.awsm-b-job-no-more-jobs-get').length > 0) { $('.awsm-b-job-listings').hide(); - $('.awsm-job-no-more-jobs-get').slice(1).hide(); + $('.awsm-b-job-no-more-jobs-get').slice(1).hide(); } $(filterSelector + ' .awsm-b-filter-option').on('change', function(e) { e.preventDefault(); + $('.awsm-b-job-listings').show(); var $elem = $(this); var $selected = $elem.find('option:selected'); var $rootWrapper = $elem.parents(rootWrapperSelector); var currentSpec = $elem.parents('.awsm-b-filter-item').data('filter'); var slug = $selected.data('slug'); if ($('.awsm-b-job-listings').length > 0) { - $rootWrapper.find('.awsm-job-no-more-jobs-get').hide(); + $rootWrapper.find('.awsm-b-job-no-more-jobs-get').hide(); } slug = typeof slug !== 'undefined' ? slug : ''; setPaginationBase($rootWrapper, currentSpec, slug); diff --git a/inc/templates/block-files/block-job-openings-view.php b/inc/templates/block-files/block-job-openings-view.php index 4df3d40e..988c4e7d 100644 --- a/inc/templates/block-files/block-job-openings-view.php +++ b/inc/templates/block-files/block-job-openings-view.php @@ -50,7 +50,6 @@ } if ( ! empty( $job_spec ) ) { - print_r('sefdsd'); ?>

%s

', + '

%s

', esc_html__( 'Sorry! No jobs to show.', 'wp-job-openings' ) ); echo $no_jobs_content;