1(self.travelpayoutsWpPlugin=self.travelpayoutsWpPlugin||[]).push([[984],{27651:(e,t,s)=>{"use strict";s.d(t,{y:()=>n,H:()=>r});s(3188),s(6552);class n{constructor(){this.isRegistered=!1,this.context={},this.trackStructEvent=e=>{const{category:t,action:s,label:n="",property:r="",value:a="",context:i={}}=e,{namespace:o,context:c,tracker:d}=this;if(d){d(o?`trackStructEvent:${o}`:"trackStructEvent",...[t,s,n,r,a,[Object.assign(Object.assign({},i),c)]])}else console.warn("SnowPlowTracker is not available")},this.getIsRegistered=()=>this.isRegistered,this.addTracker=e=>{const{domain:t,namespace:s,params:n}=e,{tracker:r}=this;r&&(r("newTracker",s,t,n),this.namespace=s)}}static getInstance(){return n.instance||(n.instance=new n),n.instance}init(e,t={}){const{domain:s,appId:n,namespace:r="sp"}=e;return this.isRegistered=!0,new Promise(e=>{!function(e){if("undefined"!=typeof window&&"undefined"!=typeof document){var t,s,n=window,r=document,a="script",i="___travelpayoutsSnowplow";if(n[i])e&&e(n[i]);else{n.GSN=n.GSN||[],n.GSN.push(i),n[i]=function(){(n[i].q=n[i].q||[]).push(arguments)},n[i].q=n[i].q||[],t=r.createElement(a),s=r.getElementsByTagName(a)[0],t.onload=function(){e&&e(n[i])},t.async=1;var o=n.location.host,c=o.match("aviasales")||"vsepoka.ru"===o?"static.aviasales.com":"st.avsplow.com";t.src="//"+c+"/snowplow/latest/sp.js",void 0!==s&&s.parentNode.insertBefore(t,s)}n[i]}}(a=>{this.tracker=a,this.context=t,this.addTracker({namespace:r,domain:s,params:{appId:n,platform:"web"}}),e(!0)})})}}const r=()=>{var e;const t=n.getInstance();return t.getIsRegistered()?new Promise(e=>e(!0)):t.init({domain:"avsplow.com",appId:"tp_wp_plugin"},null===(e=window.travelpayoutsData)||void 0===e?void 0:e.context)}},88310:e=>{e.exports={stylesInput:"styles-input__wtR6n",stylesWrapper:"styles-wrapper__MpIza",stylesCloseButton:"styles-close-button__vfqPW"}},90984:(e,t,s)=>{"use strict";var n=s(42006),r=s.n(n),a=s(41669),i=s.n(a);i()(function(){const e=i().redux,t=document.querySelector(".travelpayouts-admin");if(t&&e){if(document.querySelector(".redux-sidebar-wrapper")&&document.querySelector(".redux-main")){const s=()=>{const t=document.querySelector(".redux-group-tab-link-li.active>.redux-group-tab-link-a");if(t){const s=t.getAttribute("data-rel"),n=t.closest(".subsection");if(n&&(n.style.display="block"),s){const e=document.querySelector(`.redux-sections>.redux-group-tab[data-rel="${s}"]`);e&&(e.style.display="block")}setTimeout(()=>{e.initFields()},1e3)}};(()=>{t.querySelectorAll('select[data-theme="default"]').forEach(e=>{e.setAttribute("data-theme","travelpayouts")})})(),s();new(r())(".redux-sidebar-wrapper",{stickTo:".redux-main",stickyClass:"redux-sidebar-wrapper-sticked",top:0,innerTop:-42,responsive:{600:{top:0,innerTop:-10}}});i()(".travelpayouts-destroy").remove()}e.stickyInfo=()=>{const e=i()(window),t=i()(".redux-main");if(e&&t){const s=e.width(),n=t.offset(),r=t.outerWidth(),a=t.innerWidth();if(s&&n&&r&&a){const e=s-(n.left+r),o=a-20,c=i()("#redux-sticky"),d=c.offset();!t.isOnScreen()||i()("#info_bar").isOnScreen()||i()("#redux-footer-sticky").isOnScreen()?(i()("#redux-footer").css({position:"inherit",bottom:"inherit",width:"inherit"}),i()("#redux-sticky-padder").hide(),i()("#redux-footer").removeClass("sticky-footer-fixed")):(i()("#redux-footer").css({position:"fixed",bottom:"0",width:o,right:e}),i()("#redux-footer").addClass("sticky-footer-fixed"),d&&i()(".redux-save-warn").css({left:d.left,right:e}),i()("#redux-sticky-padder").show()),i()("#info_bar").isOnScreen()?c.removeClass("sticky-save-warn"):c.addClass("sticky-save-warn")}}}}});var o=s(95898),c=s(88310);const d="data-previous-value",u="data-is-changed",l="placeholder",p=e=>{const t=e=>{const t=e.target;if(t){const e=t.value,s=t.getAttribute(l)||"";t.setAttribute(d,t.value),e.length||(t.value=s)," "===e&&(t.value="")}},s=e=>{const t=e.target;if(t){const e=t.value,s=t.getAttribute(l)||"",n=t.getAttribute(u),r=t.getAttribute(d);!n&&r?t.value=r:e===s&&(t.value=""),t.removeAttribute(u)}},n=e=>{const t=e.target;t&&t.setAttribute(u,"true")};e.forEach(e=>{const r=document.createElement("div");if(e.parentNode){e.parentNode.insertBefore(r,e);const a=document.createElement("div");a.classList.add(c.stylesCloseButton),r.appendChild(e),r.append(a),r.classList.add(c.stylesWrapper);const i=r.querySelector("input");i&&(i.classList.add(c.stylesInput),i.addEventListener("focus",t),i.addEventListener("blur",s),i.addEventListener("keydown",n),a.addEventListener("click",(e=>()=>{const t=new Event("change",{bubbles:!0});e.value=" ",e.dispatchEvent(t)})(i)))}})};var v=s(27651);const h="reduxFramework:onChangeFields";var y=s(38253);window.Alpine=y.A,y.A.start();class m{constructor(){this.init=()=>{const{bindEvents:e}=this;e()},this.bindEvents=()=>{const{onChangeReduxFields:e}=this;i()(document.body).on("check_dependencies",()=>e())},this.debounceFn=(e,t,s=!1)=>{let n;return(...r)=>{n&&clearTimeout(n),n=setTimeout(()=>
1{n=null,s||e.apply(this,r)},t),s&&!n&&e.apply(this,[...r])}},this.onChangeReduxFields=this.debounceFn(()=>{(0,o.h)(document.body,h)},500)}}i()(()=>{(new m).init();const e=document.querySelectorAll("input.input-with-placeholder");p(e),(0,v.H)().then(()=>{v.y.getInstance().trackStructEvent({label:"Admin",action:"page_view",category:"View"})})})}}]);
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.