PATH:
home
/
nappmpmd
/
salepaky.com
/
wp-content
/
plugins
/
elementor-pro
/
assets
/
js
/*! elementor-pro - v3.24.0 - 01-10-2024 */ "use strict";(self.webpackChunkelementor_pro=self.webpackChunkelementor_pro||[]).push([[187],{7112:(e,t,s)=>{var n=s(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(s(5707)),r=s(6914);class SearchKeyboardHandler extends elementorModules.frontend.handlers.Base{constructor(){super(...arguments),(0,i.default)(this,"focusableResultElements",void 0),(0,i.default)(this,"currentResultFocusedIndex",-1)}__construct(){super.__construct(...arguments),elementorFrontend.hooks.addAction("search:results-updated",this.loadResultElementsEvents.bind(this))}getDefaultSettings(){return{selectors:{searchWrapper:".e-search",searchField:".e-search-input",resultsContainer:".e-search-results-container",loopItem:".e-loop-item",clearIcon:".e-search-input-wrapper > svg, .e-search-input-wrapper > i"}}}getDefaultElements(){const e=this.getSettings("selectors");return{resultsContainer:this.$element[0].querySelector(e.resultsContainer),searchField:this.$element[0].querySelector(e.searchField),clearIcon:this.$element[0].querySelector(e.clearIcon)}}setFocusableElements(e){const t=(0,r.focusableElementSelectors)(),s=e.querySelectorAll(t);this.focusableResultElements=Array.from(s).filter((e=>!e.disabled&&!e.inert&&-1!==e.tabIndex))}isSearchInputFocused(){return this.elements.searchField===elementorFrontend.elements.window.document.activeElement}bindEvents(){this.boundHandleKeyboardNavigation=this.handleKeyboardNavigation.bind(this),this.boundHandleEscapeKey=this.handleEscapeKey.bind(this),this.elements.searchField.addEventListener("keydown",this.boundHandleKeyboardNavigation),elementorFrontend.elements.window.document.addEventListener("keydown",this.boundHandleEscapeKey),this.elements.searchField.addEventListener("focus",this.openResults.bind(this))}loadResultElementsEvents(){this.setFocusableElements(this.$element[0].querySelector(this.getSettings("selectors.resultsContainer"))),this.focusableResultElements?.forEach((e=>{e.addEventListener("keydown",this.handleKeyboardNavigation.bind(this))}))}unbindEvents(){this.boundHandleKeyboardNavigation&&this.elements.searchField.removeEventListener("keydown",this.boundHandleKeyboardNavigation),elementorFrontend.elements.window.document.removeEventListener("keydown",this.boundHandleEscapeKey),this.elements.searchField.removeEventListener("focus",this.openResults.bind(this))}handleKeyboardNavigation(e){switch(e.key){case"ArrowDown":this.focusNextElement();break;case"ArrowUp":this.focusPreviousElement();break;case"Enter":this.handleEnterKey()}}areResultsClosed(){return 0===this.elements.resultsContainer.querySelectorAll(this.getSettings("selectors.loopItem")).length||this.elements.resultsContainer.classList.contains("hidden")}openResults(){this.areResultsClosed()&&(this.elements.resultsContainer.classList.remove("hidden"),elementorFrontend.hooks.doAction("search:results-displayed",this.getID()))}handleEnterKey(){this.closeResults()}handleEscapeKey(e){if("Escape"!==e.key)return;const t=elementorFrontend.elements.window.document.activeElement;(this.elements.resultsContainer.contains(t)||!1)&&this.elements.searchField.focus(),this.closeResults()}focusNextElement(){this.isSearchInputFocused()?this.currentResultFocusedIndex=0:(this.currentResultFocusedIndex++,this.checkFocusIndexBounds()),this.updateFocus()}focusPreviousElement(){this.isSearchInputFocused()?this.currentResultFocusedIndex=this.focusableResultElements.length-1:(this.currentResultFocusedIndex--,this.checkFocusIndexBounds()),this.updateFocus()}checkFocusIndexBounds(){this.currentResultFocusedIndex>=this.focusableResultElements.length?this.currentResultFocusedIndex=-1:this.currentResultFocusedIndex<-1&&(this.currentResultFocusedIndex=this.focusableResultElements.length-1)}updateFocus(){-1===this.currentResultFocusedIndex?this.focusSearchAndMoveCursorToEnd():this.setFocusToElement(this.focusableResultElements[this.currentResultFocusedIndex])}closeResults(){this.elements.resultsContainer.classList.add("hidden"),this.updateAriaExpanded(!1)}updateAriaExpanded(e){this.elements.searchField.setAttribute("aria-expanded",e)}focusSearchAndMoveCursorToEnd(){const e=this.elements.searchField,t=e.value.length;this.setFocusToElement(this.elements.searchField),e.setSelectionRange(t,t)}setFocusToElement(e){e.focus()}}t.default=SearchKeyboardHandler},6963:(e,t,s)=>{var n=s(6784);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(s(5707)),r=n(s(5012));class Search extends elementorModules.frontend.handlers.Base{constructor(){super(...arguments),(0,i.default)(this,"debounceTimeoutId",void 0)}__construct(){super.__construct(...arguments),elementorFrontend.hooks.addAction("search:results-displayed",this.hideOtherResults.bind(this))}getDefaultSettings(){return{selectors:{searchWrapper:".e-search",searchField:".e-search-input",submitButton:".e-search-submit",clearIcon:".e-search-input-wrapper > svg, .e-search-input-wrapper > i",searchIcon:".e-search-label > svg, .e-search-label > i",resultsContainer:".e-search-results-container",results:".e-search-results"},classes:{searchResultsListWrapper:"e-search-results-list"}}}getDefaultElements(){const e=this.getSettings("selectors");return{searchWidget:this.$element[0],searchWrapper:this.$element[0].querySelector(e.searchWrapper),searchField:this.$element[0].querySelector(e.searchField),submitButton:this.$element[0].querySelector(e.submitButton),clearIcon:this.$element[0].querySelector(e.clearIcon),searchIcon:this.$element[0].querySelector(e.searchIcon),resultsContainer:this.$element[0].querySelector(e.resultsContainer),results:this.$element[0].querySelector(e.results)}}onInit(){super.onInit(),this.changeClearIconVisibility(!0),this.updateInputStyle(),this.toggleSearchResultsVisibility=this.toggleSearchResultsVisibility.bind(this),document.addEventListener("click",this.toggleSearchResultsVisibility),document.fonts.ready.then((()=>this.updateInputStyle()))}onDestroy(){document.removeEventListener("click",this.toggleSearchResultsVisibility)}bindEvents(){this.elements.submitButton.addEventListener("click",this.onSubmit.bind(this)),this.elements.searchField.addEventListener("input",(e=>{this.changeClearIconVisibility(!e.target.value.length),this.debounce(this.onType)(e)})),this.elements.searchField.addEventListener("keydown",this.onSearchFieldKeydown.bind(this)),this.elements.searchWidget.addEventListener("click",this.onClick.bind(this)),["focusin","focusout"].forEach((e=>{this.elements.searchField.addEventListener(e,this.toggleWidgetFocusClass.bind(this))})),this.elements.clearIcon?.addEventListener("click",this.onClear.bind(this))}onClick(){this.elements.resultsContainer.classList.add("hide-loader")}onType(e){if(e.preventDefault(),this.updateAriaLabel(this.elements.searchField.value),!this.elements.searchField.value.length)return void this.clearResultsMarkup();const t=this.getMinimumSearchLength();this.shouldShowLiveResults()&&this.elements.searchField.value.length>=t&&this.renderLiveResults()}toggleWidgetFocusClass(e){const t="focusin"===e.type;this.$element[0].classList.toggle("e-focus",t)}onSubmit(e){elementorFrontend.isEditMode()&&e.preventDefault()}onClear(e){e.preventDefault(),this.elements.searchField.value="",this.clearResultsMarkup(),this.elements.searchField.focus(),this.changeClearIconVisibility(!0)}onSearchFieldKeydown(e){"Enter"===e.code&&(this.clearResultsMarkup(),this.onSubmit(e))}fetchUpdatedSearchWidgetMarkup(){return fetch(`${elementorProFrontend.config.urls.rest}elementor-pro/v1/refresh-search`,this.getFetchArgumentsForSearchUpdate())}getMinimumSearchLength(){return this.getElementSettings().minimum_search_characters||3}shouldShowLiveResults(){return this.getElementSettings().live_results&&this.getElementSettings().template_id}renderLiveResults(){if(document.querySelector(`.elementor-element-${this.getID()}`)){if(this.elements.searchField.value)return this.elements.resultsContainer.classList.remove("hide-loader"),this.elements.resultsContainer.classList.remove("hidden"),this.fetchUpdatedSearchWidgetMarkup().then((e=>e instanceof Response&&e?.ok&&!(400<=e?.status)?e.json():{})).catch((()=>({}))).then((e=>{if(!e?.data)return void this.updateAriaExpanded(!1);const t=this.createResultNode(e.data);this.elements.results.replaceChildren(t),this.elements.resultsContainer.classList.add("hide-loader"),this.maybeHandleNoResults(t),elementorFrontend.hooks.doAction("search:results-updated")})).finally((()=>{const e=document.querySelectorAll(`[data-id="${this.getID()}"] .e-loop-item`);(0,r.default)(e),ElementorProFrontendConfig.settings.lazy_load_background_images&&document.dispatchEvent(new Event("elementor/lazyload/observe"))}));this.clearResultsMarkup()}}maybeHandleNoResults(e){const t=!!e.querySelector(".e-search-nothing-found-message");this.elements.results.classList[t?"add":"remove"]("no-results"),t||this.hideOtherResults()}hideOtherResults(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(e&&e!==this.getID())return;const t=document.querySelectorAll(`${this.getSettings("selectors").resultsContainer}:not(.hidden)`);Array.from(t).filter((e=>!e.closest(`.elementor-element-${this.getID()}`))).forEach((e=>e.classList.add("hidden")))}createResultNode(e){const t=document.createElement("div"),s=this.getSettings("classes.searchResultsListWrapper");t.setAttribute("class",s),t.innerHTML=e;const n=t.querySelectorAll(".e-loop-item").length>0;return this.updateAriaExpanded(n),t}updateAriaExpanded(e){this.elements.searchField.setAttribute("aria-expanded",e?"true":"false")}updateAriaLabel(e){e?this.elements.resultsContainer.setAttribute("aria-label",`Results for ${e}`):this.elements.resultsContainer.removeAttribute("aria-label")}clearResultsMarkup(){this.elements.results.innerHTML="",this.updateAriaExpanded(!1)}getFetchArgumentsForSearchUpdate(){const e=this.prepareSearchUpdateRequestData(),t={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)};return elementorFrontend.isEditMode()&&elementorPro.config.eSearch?.nonce&&(t.headers["X-WP-Nonce"]=elementorPro.config.eSearch?.nonce),t}prepareSearchUpdateRequestData(){const e=""+this.getID(),t={post_id:this.getClosestDataElementorId(this.$element[0]),widget_id:e,search_term:this.elements.searchField.value||""};if(elementorFrontend.isEditMode()){const s=window.top.$e.components.get("document").utils.findContainerById(e);t.widget_model=s.model.toJSON({remove:["default","editSettings","defaultEditSettings"]}),t.is_edit_mode=!0}return t}getClosestDataElementorId(e){const t=e.closest("[data-elementor-id]");return t?t.getAttribute("data-elementor-id"):0}debounce(e){var t=this;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300;return function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];clearTimeout(t.debounceTimeoutId),t.debounceTimeoutId=setTimeout((()=>e.apply(t,i)),s)}}updateInputStyle(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["searchIcon","clearIcon"];const t={searchIcon:"icon-label",clearIcon:"icon-clear"},s=this.$element[0].style,n=this.getAllDisplayNoneParents(this.$element[0].parentNode);this.setElementsDisplay(n,"block");for(const n of e){const{width:e}=this.elements[n]?.getBoundingClientRect()||{width:0},i=t[n];s.setProperty(`--e-search-${i}-absolute-width`,e+"px"),this.elements.searchField.classList[e?"remove":"add"](`no-${i}`)}this.setElementsDisplay(n,""),this.elements.searchWrapper.classList.remove("hidden")}changeClearIconVisibility(e){this.elements.clearIcon?.classList[e?"add":"remove"]("hidden")}toggleSearchResultsVisibility(e){const t=this.getSettings("selectors"),s=`.elementor-element-${this.getID()}`,{target:n}=e,i=!!n?.closest(`${s} ${t.resultsContainer}`)||n?.classList?.contains(t.resultsContainer)&&!!n?.closest(s),r=!!n?.closest(`${s} ${t.searchWrapper}`),l=n?.classList?.contains(t.searchField.replace(".","")),o=this.elements.resultsContainer?.children?.length;i&&this.hideOtherResults(),o&&!i&&(l&&r||this.elements.resultsContainer.classList.add("hidden"))}getAllDisplayNoneParents(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!e||e===document.body)return t;return"none"===window.getComputedStyle(e).display&&t.push(e),this.getAllDisplayNoneParents(e.parentNode,t)}setElementsDisplay(e,t){e.forEach((e=>{e.style.display=t}))}onElementChange(e){const t={search_field_icon_label_size:()=>this.updateInputStyle(["searchIcon"]),icon_clear_size:()=>this.updateInputStyle(["clearIcon"])};t[e]&&t[e]()}}t.default=Search}}]);
[+]
..
[-] off-canvas.bc9ebf2aa5a940324b7b.bundle.min.js
[edit]
[-] editor.js
[edit]
[-] gallery.57d49c99a6212add88bf.bundle.js
[edit]
[-] elements-handlers.js
[edit]
[-] product-add-to-cart.d5883897e035f9c53c5e.bundle.js
[edit]
[-] progress-tracker.8cccdda9737c272489fc.bundle.min.js
[edit]
[-] code-highlight.d86022c8668c4b072592.bundle.min.js
[edit]
[+]
packages
[-] frontend.js
[edit]
[-] table-of-contents.461c83bbf6bdd6aceaf2.bundle.js
[edit]
[-] display-conditions.min.js
[edit]
[-] elements-handlers.min.js
[edit]
[-] gallery.572e8a2bca1a0b7e4f42.bundle.min.js
[edit]
[-] qunit-tests.js
[edit]
[-] popup.f7b15b2ca565b152bf98.bundle.min.js
[edit]
[-] social.ac16c075939dcb93f70c.bundle.js
[edit]
[-] loop-carousel.f8067ec0c24b628c786e.bundle.min.js
[edit]
[-] mega-menu-editor.da8ac1f6ef887046ecf0.bundle.min.js
[edit]
[-] admin.js
[edit]
[-] loop.8130a6b4d3121c5aaaae.bundle.min.js
[edit]
[-] search.8457dd916c5a97a6dc73.bundle.js
[edit]
[-] mega-menu-stretch-content.0d76e4a3b7bf65ff6f9b.bundle.js
[edit]
[-] nested-carousel-editor.6d7500036d0766bbe2fc.bundle.min.js
[edit]
[-] menu-title-keyboard-handler.77332e668c3cf609c924.bundle.js
[edit]
[-] off-canvas-editor.0b71c4c17860dfe25d59.bundle.min.js
[edit]
[-] load-more.376b5bcb2e56386f470e.bundle.min.js
[edit]
[-] archive-posts.6e398ddd4a81a78bcea3.bundle.js
[edit]
[-] editor.min.js
[edit]
[-] mega-menu-stretch-content.480e081cebe071d683e8.bundle.min.js
[edit]
[-] jszip.vendor.eba4ace24dcc63eadac0.bundle.min.js
[edit]
[-] stripe-button.61d93594d6b7865f8b3f.bundle.min.js
[edit]
[-] portfolio.5727b56368be256d0893.bundle.js
[edit]
[-] mega-menu.cd787a5946bfee971978.bundle.min.js
[edit]
[-] carousel.298f1fc9c115422aad0e.bundle.js
[edit]
[-] custom-code.min.js
[edit]
[-] off-canvas.321e93388904636cf8cf.bundle.js
[edit]
[-] nav-menu.997320c05a0d163c76e8.bundle.min.js
[edit]
[-] contact-buttons.5398b922eb2a8fb72fd3.bundle.min.js
[edit]
[-] load-more.141d7f9a8572a75a1d28.bundle.js
[edit]
[-] contact-buttons-var-10.fc383e580d728636b0fa.bundle.js
[edit]
[-] floating-bars-var-2.c6ca10c575bf96977799.bundle.js
[edit]
[+]
notes
[-] app.js
[edit]
[-] e8a5a32d9cd9fad1244f.bundle.js
[edit]
[-] editor.min.js.LICENSE.txt
[edit]
[-] slides.c0029640cbdb48199471.bundle.min.js
[edit]
[-] share-buttons.63d984f8c96d1e053bc0.bundle.min.js
[edit]
[-] carousel.3620fca501cb18163600.bundle.min.js
[edit]
[-] frontend.min.js
[edit]
[-] stripe-button.cf3f67d6b95e0138bb6b.bundle.js
[edit]
[-] paypal-button.f4f64e46173f50701949.bundle.min.js
[edit]
[-] form.a8f0864f4b4fda696ad1.bundle.min.js
[edit]
[-] lottie.e74a53bfa4c0bd939250.bundle.min.js
[edit]
[-] ajax-pagination.2090b5f4906bcda1dcc2.bundle.min.js
[edit]
[-] woocommerce-cart.d0d01530f5be6736b5d2.bundle.min.js
[edit]
[-] form-submission-admin.js
[edit]
[-] admin.min.js
[edit]
[-] animated-headline.3eca5f2deb261b97d554.bundle.js
[edit]
[-] woocommerce-purchase-summary.3676ccd8c29ef0924b84.bundle.min.js
[edit]
[-] progress-tracker.fd1d31a26340ed74e10a.bundle.js
[edit]
[-] gutenberg-woocommerce-notice.js
[edit]
[-] taxonomy-filter.e839f2be32b7ea832b34.bundle.min.js
[edit]
[-] 36c2990924ec9596ffad.bundle.js
[edit]
[-] nested-carousel-editor.0df35e0e1a284d4bd18b.bundle.js
[edit]
[-] video-playlist.af20fd9fd8778929829e.bundle.min.js
[edit]
[-] nested-carousel.e282a75f865e207e8031.bundle.js
[edit]
[-] ajax-pagination.2390838f542f1a8d5ed4.bundle.js
[edit]
[-] preview.js
[edit]
[-] paypal-button.55ffb013a3fe565f55a5.bundle.js
[edit]
[-] search.9686bb2092445d2ad477.bundle.min.js
[edit]
[-] nav-menu.d3c84615b4828c150c34.bundle.js
[edit]
[-] video-playlist.9e1bbc4fcb37864c89d6.bundle.js
[edit]
[-] share-buttons.fda49c1691f4a352c7ef.bundle.js
[edit]
[-] screenshot.min.js
[edit]
[-] jszip.vendor.eba4ace24dcc63eadac0.bundle.min.js.LICENSE.txt
[edit]
[-] hotspot.fa04300164c35a866a51.bundle.min.js
[edit]
[-] c62a5d15e98a98580947.bundle.js
[edit]
[-] woocommerce-my-account.4e940a8b4a52d1c98c5c.bundle.min.js
[edit]
[-] woocommerce-checkout-page.10d97c3a8cb77aebc1bf.bundle.js
[edit]
[-] product-add-to-cart.51a22e1fbd8f914ab3d5.bundle.min.js
[edit]
[-] off-canvas-editor.3501c11d63bc4f4d5b89.bundle.js
[edit]
[-] portfolio.4cd5da34009c30cb5d70.bundle.min.js
[edit]
[-] woocommerce-notices.ee407e8319d2ee060119.bundle.js
[edit]
[-] hotspot.d513dd152bf605a2ffbf.bundle.js
[edit]
[-] page-transitions.js
[edit]
[-] menu-title-keyboard-handler.dff562edd49e93d1658e.bundle.min.js
[edit]
[-] webpack-pro.runtime.js
[edit]
[-] mega-menu-editor.905833fcb6c66b951d7e.bundle.js
[edit]
[-] popup.996738ad83c089bcc0b9.bundle.js
[edit]
[-] form.3b797cf593ad0ec04b83.bundle.js
[edit]
[-] custom-code.js
[edit]
[-] search-form.8941aba5c12cdb05fb7c.bundle.js
[edit]
[-] posts.e99f84b83c36d4568ffe.bundle.js
[edit]
[-] floating-bars-var-2.6e9b0bce703a2a6f2410.bundle.min.js
[edit]
[-] countdown.6e87ca40d36793d92aea.bundle.js
[edit]
[-] gutenberg-woocommerce-notice.min.js
[edit]
[-] woocommerce-my-account.7a9d36b2c12b970c6616.bundle.js
[edit]
[-] loop-carousel.5108cb72ebb124297adb.bundle.js
[edit]
[-] search-form.b7065999d77832a1b764.bundle.min.js
[edit]
[-] woocommerce-menu-cart.eb61fe086245485310a4.bundle.min.js
[edit]
[-] animated-headline.73c41dd605898fe2d075.bundle.min.js
[edit]
[-] slides.bcd16bbde90338846bd7.bundle.js
[edit]
[-] contact-buttons.b9e4576d72aaeeaa8e80.bundle.js
[edit]
[-] form-submission-admin.min.js
[edit]
[-] app.min.js
[edit]
[-] nested-carousel.10dc0cdc82d55919a863.bundle.min.js
[edit]
[-] archive-posts.16a93245d08246e5e540.bundle.min.js
[edit]
[-] preview.min.js
[edit]
[-] woocommerce-menu-cart.81f5bafc26b94cc86238.bundle.js
[edit]
[-] display-conditions.js
[edit]
[-] floating-bars-var-3.f126e30880b01ca9a308.bundle.js
[edit]
[-] woocommerce-cart.79b5dc500681930471c6.bundle.js
[edit]
[-] contact-buttons-var-10.83d4216a4d1a44095e5c.bundle.min.js
[edit]
[-] code-highlight.d4867c919d0858f748df.bundle.js
[edit]
[-] media-carousel.afbaabb756a7c18ddb09.bundle.min.js
[edit]
[-] social.f215e8a3efafbdbeb7ef.bundle.min.js
[edit]
[-] webpack-pro.runtime.min.js
[edit]
[-] screenshot.js
[edit]
[-] media-carousel.04412cb9b4479aa37408.bundle.js
[edit]
[-] 52e03298e7f0852c96a1.bundle.min.js
[edit]
[-] posts.aec59265318492b89cb5.bundle.min.js
[edit]
[-] woocommerce-purchase-summary.c8767542fa302a7f351f.bundle.js
[edit]
[-] qunit-tests.min.js
[edit]
[-] woocommerce-checkout-page.776b4cec45070fe32636.bundle.min.js
[edit]
[-] countdown.0e9e688751d29d07a8d3.bundle.min.js
[edit]
[-] d241154d3774d66da9eb.bundle.min.js
[edit]
[-] jszip.vendor.a3c65615c1de5560962d.bundle.js
[edit]
[-] loop.da32028bc945271f8c7a.bundle.js
[edit]
[-] table-of-contents.1cfda3ead7ac082861dd.bundle.min.js
[edit]
[-] loop-filter-editor.46a4c013b80a381a50c9.bundle.js
[edit]
[-] taxonomy-filter.ce05524d53c2d4c5aa24.bundle.js
[edit]
[-] woocommerce-notices.bcee9b5e1c8f65ac7927.bundle.min.js
[edit]
[-] floating-bars-var-3.e3ae97fbef2242a8b036.bundle.min.js
[edit]
[-] page-transitions.min.js
[edit]
[-] loop-filter-editor.67dfa5d044d7bd86bd6f.bundle.min.js
[edit]
[-] mega-menu.271d46d2e5a8185428d0.bundle.js
[edit]
[-] lottie.a02a01f29c0733918ac7.bundle.js
[edit]
[-] 52e03298e7f0852c96a1.bundle.min.js.LICENSE.txt
[edit]