1/*! cmsmasters-elementor-addon - v1.25.1 - 16-06-2026 */ 2"use strict";(self.webpackChunkcmsmasters_elementor_addon=self.webpackChunkcmsmasters_elementor_addon||[]).push([[6398],{3792:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,s(4846),s(9655),s(5568);class _default extends elementorModules.frontend.handlers.Base{__construct(){super.__construct(...arguments),this.bindElements=[],this.deviceNames=["mobile","tablet","desktop"],this.devicePrefixMaps={mobile:"mobile",tablet:"tablet",desktop:""}}bindElementChange(e,t){this.bindElements.push([e,t])}onElementChange(e){this.bindElements&&this.bindElements.length&&this.bindElements.forEach(t=>{let[s]=t;Array.isArray(s)||(s=s.split(/\s/));const[,i]=t;s.some(t=>{if(-1!==[t,`${t}_tablet`,`${t}_mobile`].indexOf(e))return i(...arguments),!0})})}onDestroy(){this.trigger("destroy:before"),super.onDestroy()}getCurrentDeviceSettingInherit(e){const t=["desktop","tablet","mobile"],s=elementorFrontend.getCurrentDeviceMode(),i=this.getElementSettings();let n=t.indexOf(s);for(;n>0;){const s=i[e+"_"+t[n]];if(s&&"object"==typeof s&&Object.prototype.hasOwnProperty.call(s,"size")&&s.size)return s;n--}return i[e]}getCurrentDeviceSettingSize(e){let t=this.getCurrentDeviceSettingInherit(e);return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"size")&&(t=t.size),t}}t.default=_default},5149:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const i=s(8192);class Pagination extends elementorModules.ViewModule{__construct(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super.__construct(t),this.widget=e,this.pagedUrl=location.href,this.observer=null}getDefaultSettings(){const e={linkLoadMore:"a.page-numbers.next",root:"ul.page-numbers",link:"a.page-numbers"},t=this.getPagedCurrent();return{selectors:e,paged:t,pagedSafe:t}}getDefaultElements(){const{selectors:e}=this.getSettings(),t=this;return{get $root(){return t.widget.findElement(e.root)},get $linkLoadMore(){return t.widget.findElement(e.linkLoadMore)}}}bindEvents(){const{selectors:e}=this.getSettings();this.widget.$element.off("click touchstart keydown",e.link),this.widget.on("destroy:before",this.onDestroy.bind(this)),this.isShow()&&(this.isAjax()&&this.isPagination()||this.isLoadMore()||this.isInfiniteScroll())&&this.widget.$element.on("click touchstart keydown",e.link,e=>{"click"!==e.type&&"touchstart"!==e.type||this.onClickLink(e),"keydown"===e.type&&("Enter"!==e.key&&" "!==e.key&&32!==e.keyCode||this.onClickLink(e))})}onInit(){super.onInit(),this.isInfiniteScroll()&&setTimeout(this.initInfiniteScroll.bind(this),150)}getPagedCurrent(){return this.getPagedByUrl(location.href)}isCurrentQuery(){const e=this.widget.getElementSettings("query_control_prefix");return"current_query"===this.widget.getElementSettings(`${e}_post_type`)}getPagedByUrl(e){const t=new URL(e);let s=1;if(this.isCurrentQuery()){const e=t.pathname.split("/");let i=e.findIndex(e=>"page"===e);if(i++,-1!==i&&e[i])s=e[i];else{const e=new URLSearchParams(t.search).get("paged");e&&(s=e)}}else{s=new URLSearchParams(t.search).get(this.getPagedName())}return s=Math.max(1,Number(s)),s}getPagedName(){return`cmsmasters-page-${this.widget.getID()}`}isShow(){return this.widget.getElementSettings("pagination_show")}isAjax(){return this.isLoadMore()||this.isInfiniteScroll()||Boolean(this.widget.getElementSettings("pagination_via_ajax"))}isLoadMore(){return"load_more"===this.widget.getElementSettings("pagination_type")}isPagination(){return"pagination"===this.widget.getElementSettings("pagination_type")}isInfiniteScroll(){return"infinite_scroll"===this.widget.getElementSettings("pagination_type")}onClickLink(e){e.preventDefault();const t=this.getPagedByUrl(e.currentTarget.href);this.setPage(t),this.pagedUrl=e.currentTarget.href,this.trigger("click",t),this.isLoadMore()||this.isInfiniteScroll()||!this.widget.getElementSettings("pagination_scroll_into_view")||this.widget.$element.get(0).scrollIntoView({behavior:"smooth"})}setPage(e){this.setSettings("paged",e),this.updatePage(e)}updatePage(e){this.trigger("updatePage",e)}getPaged(){return Number(this.getSettings("paged"))}onSuccess(){if(this.pagedSafe(),this.saveState(),this.isInfiniteScroll()&&setTimeout(()=>{this.initInfiniteScroll()},150),this.isAjax()&&this.isPagination()){let e=this.widget.$element.offset().top;if(elementorFrontend.elements.$wpAdminBar.length){e-=elementorFrontend.elements.$wpAdminBar.height()}jQuery("html, body").animate({scrollTop:e})}}pagedSafe(){this.setSettings("pagedSafe",this.getPaged())}saveState(){if(!this.isSaveState()||this.isLoadMore())return;const e=this.getPaged();if(this.isCurrentQuery()){const e=new URL(this.pagedUrl);history.replaceState({},"",e.pathname+e.search)}else i.saveParameters({[this.getPagedName()]:1<e&&e})}isSaveState(){return!elementorFrontend.isEditMode()&&Boolean(this.widget.getElementSettings("pagination_save_state"))}initInfiniteScroll(){if(!this.isInfiniteScroll()||elementorFrontend.isEditMode())return;const checkScrollPosition=()=>{const e=this.widget.elements.$variable.get(0);if(e){e.getBoundingClientRect().bottom<=window.innerHeight&&this.elements.$linkLoadMore.trigger("click")}};window.addEventListener("scroll",checkScrollPosition),window.addEventListener("resize",checkScrollPosition),jQuery(document).on("ajaxComplete",function(){checkScrollPosition()})}onDestroy(){this.observer&&this.observer.disconnect()}onFail(){this.setPage(this.getSettings("pagedSafe"))}}t.default=Pagination},5568:(e,t,s)=>{s(9217)},5957:(e,t,s)=>{var i=s(6784);
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,s(6184);var n=i(s(9630));class _default extends elementorModules.ViewModule{__construct(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.widget=e.widget,this.ajaxVarsDefault=e.ajaxVarsDefault||{},super.__construct(e)}getDefaultSettings(){this.cachingManager=new n.default;const e=super.getDefaultSettings(...arguments);return Object.assign(e,{classes:{loading:"--loading",animationLoading:"--loading-animation"},response:null,responseData:null,ajaxVars:this.cloneObj(this.ajaxVarsDefault),ajaxVarsSafe:this.cloneObj(this.ajaxVarsDefault),requestFree:!0,cacheAllow:!1,animationLoading:!0})}cloneObj(e){return JSON.parse(JSON.stringify(e))}request(){return new Promise((e,t)=>{if(!this.isRequestFree())return;const s=this.isCacheAllow();this.setSettings("requestFree",!1);const i=this.getAjaxParameters();if(s){const t=this.getCache(i);if(t)return this.setSettings("responseData",t),this.responseSuccess(),e(t),void this.ajaxReset()}const n=jQuery.ajax(i);this.ajaxStart(),n.done(t=>{this.setSettings("response",t),this.setSettings("responseData",t.data),this.isValidResponse()?(s&&this.setCache(t.data),e(t.data),this.responseSuccess()):this.responseFail()}),n.fail(()=>{this.setSettings("response",n.responseJSON),n.responseJSON&&n.responseJSON.data&&this.setSettings("responseData",n.responseJSON.data),t(n),this.responseFail()}),n.always(()=>{this.ajaxReset(),this.ajaxFinish()})})}isRequestFree(){return this.getSettings("requestFree")}getAjaxParameters(){let e=this.widget.$element.data().documentId;e||(e=elementorFrontendConfig.post.id),e||(e=this.widget.$element.parents(".elementor[data-elementor-id]").data("elementor-id"));const t={url:elementorCmsmastersFrontendConfig.ajaxurl,type:"POST",dataType:"json",data:{_ajax_nonce:elementorCmsmastersFrontendConfig.nonces.ajax_widget,action:`ajax_widget_${this.widget.getWidgetType()}`,ajax_vars:this.getAjaxVars(),document_id:e,widget_id:this.widget.getID()}};if(elementorFrontend.isEditMode()){const e=elementorFrontend.config.elements.data[this.widget.getModelCID()];if(e){const s=e.toJSON({remove:["default","editSettings","defaultEditSettings"]});t.data.element_data={id:this.widget.getID(),elType:this.widget.getElementType(),widgetType:this.widget.getWidgetType(),elements:[],isInner:!1,settings:s}}}return this.trigger("parameters",t),t}getAjaxVars(){return this.getSettings("ajaxVars")}getCache(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.cachingManager.get(this.getCacheParameters(e))}getCacheParameters(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e||(e=this.getAjaxParameters()),e=this.cloneObj(e),delete e.data.element_data,this.trigger("parameters/cache",e),e}responseSuccess(){this.successQueryArgs(),this.trigger("response/success")}successQueryArgs(){this.setSettings("ajaxVarsSafe",this.cloneObj(this.getSettings("ajaxVars")))}ajaxReset(){this.setSettings("requestFree",!0),this.trigger("ajaxReset")}ajaxStart(){const{classes:e}=this.getSettings();this.widget.$element.addClass(e.loading),this.isAnimationLoading()&&this.widget.$element.addClass(e.animationLoading),this.trigger("ajaxReset")}isValidResponse(){const e=this.getResponse();return e&&e.success}getResponse(){return this.getSettings("response")}setCache(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.cachingManager.set(this.getCacheParameters(t),e)}responseFail(){this.failureQueryArgs(),this.trigger("response/fail")}failureQueryArgs(){this.setSettings("ajaxVars",this.cloneObj(this.getSettings("ajaxVarsSafe")))}ajaxFinish(){const{classes:e}=this.getSettings();this.widget.$element.removeClass(e.loading),this.isAnimationLoading()&&this.widget.$element.removeClass(e.animationLoading)}setAjaxVars(e,t){return e=`.${e}`,this.setSettings(`ajaxVars${e}`,t)}getResponseData(){return this.getSettings("responseData")}isCacheAllow(){return Boolean(this.getSettings("cacheAllow"))}isAnimationLoading(){return Boolean(this.getSettings("animationLoading"))}}t.default=_default},9217:(e,t,s)=>{var i=s(8612),n=s(1807),r=s(1506),a=s(8120),o=s(2293),l=s(41),g=s(6721),h=s(5267)("some",TypeError);i({target:"Iterator",proto:!0,real:!0,forced:h},{some:function some(e){o(this);try{a(e)}catch(e){g(this,"throw",e)}if(h)return n(h,this,e);var t=l(this),s=0;return r(t,function(t,i){if(e(t,s++))return i()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},9630:(e,t,s)=>
2{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,s(6184);t.default=class _default{constructor(){this.buffer={}}set(e,t){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i=this.toID(e);this.buffer[i]=JSON.stringify(t,null,""),s&&setTimeout(()=>this.remove(i),s)}toID(e){return"string"==typeof e?e:jQuery.param(e)}remove(e){const t=this.toID(e);return!!this.buffer[t]&&(this.buffer[t]=null,delete this.buffer[t],!0)}get(e){const t=this.toID(e);try{return JSON.parse(this.buffer[t])}catch(e){return this.buffer[t]||null}}}},9685:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,s(4846),s(6211),s(9655),s(7458);class _default extends elementorModules.ViewModule{__construct(){super.__construct(...arguments),this.isContainerGrid=!1}getDefaultSettings(){const e={columns:"cmsmasters-border-columns",wrap:"cmsmasters-border-columns-wrap"};return{widget:null,classes:e,selectors:{columns:`.${e.columns}`,wrap:`.${e.wrap}`},$items:null,$container:null,columns:null,type:()=>{const{widget:e}=this.getSettings();return e.getCurrentDeviceSetting("border_columns_type")},size:()=>{const{widget:e}=this.getSettings();return e.getCurrentDeviceSettingSize("border_vertical_width")}}}getDefaultElements(){const e=this.getSettings("selectors"),t={};return Object.defineProperty(t,"$container",{get:this.createMethodByType("$container")}),this.isContainerGrid="grid"===t.$container.css("display"),Object.defineProperty(t,"$items",{get:this.createMethodByType("$items")}),Object.defineProperty(t,"$columns",{get:()=>this.elements.$wrap.find("> "+e.columns)}),Object.defineProperty(t,"$wrap",{get:()=>this.elements.$container.find("> "+e.wrap)}),t}onInit(){super.onInit(),this.getColumns=(()=>{const e=this.createMethodByType("columns");return()=>e()||0})(),this.getType=this.createMethodByType("type"),this.getSize=this.createMethodByType("size"),this.update()}createMethodByType(e){const t=this.getSettings(e);return"function"==typeof t?t:()=>t}update(){this.clear();const e=this.getColumns(),t=this.getType(),s=this.getSize();if(1>=e||"none"===t||!t||0>=s)return this.clear(),!1;let i=e-1;if(this.elements.$items.length<=i&&(i=this.elements.$items.length-1),!this.elements.$columns.length||this.elements.$columns.length!==i){const{classes:e}=this.getSettings();this.elements.$wrap.length||jQuery("<div />").addClass(e.wrap).appendTo(this.elements.$container);const t=i-this.elements.$columns.length,s=jQuery("<div />");s.addClass(e.columns),0<t?[...Array(t)].forEach(()=>{s.clone().appendTo(this.elements.$wrap)}):this.elements.$columns.filter(`:nth-last-child(-n+${Math.abs(t)})`).remove()}if(this.elements.$columns.length){const t=this.elements.$items.get(1).getBoundingClientRect().left-this.elements.$items.get(0).getBoundingClientRect().right;let i="";i=this.isContainerGrid?this.elements.$container.css("grid-template-columns"):`repeat(${e}, minmax(0, 1fr))`,this.elements.$wrap.css({"grid-template-columns":i,"grid-column-gap":t+"px",left:`calc((${t}px + ${s}px) / 2)`})}}clear(){this.elements.$wrap.remove()}}t.default=_default}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.