1export const __rspack_esm_id=6470;export const __rspack_esm_ids=[6470];export const __webpack_modules__={8511(e,t,s){s.d(t,{A:()=>d});var r=s(57913),i=s(88108),a=s(53079),n=s(59306),o=s(46398);function l(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class c extends r.$G{get navigation(){return this.panes.map(e=>({label:e.label,displayName:e.displayName,isActive:e.active,route:e.route,isVisible:e.isVisible,alias:e.alias}))}itemClasses(e){return{"is-active":e.isActive,"is-disabled":this.disabled,"is-hidden":!e.isVisible}}get cssClass(){return`is-${this.variant}`}get displayTabs(){return!!this.navigation&&!!(this.navigation.length>1)||!!this.displaySingleTab}get isMobile(){return this.gClientService.state.width<768}changeTab(e){this.panes.forEach(e=>e.active=!1);let t=this.panes.find(t=>t.label===e||t.alias===e);if(!t){if(this.gLogger.warn("UITabs",`Cannot find new active tab ${e}`),!this.useFirstAsDefault)return;t=this.panes[0]}t.active=!0,this.$emit("tabChanged",this.navigation.find(t=>t.label===e||t.alias===e))}handleClick(e){this.changeTab(e.label),this.$emit("input",e.label)}$mounted(){this.panes=this.getChildrenWithType(i.p,this.maxDepth),this.changeTab(this.value)}$updated(){if(this.isMobile){var e,t;this.navWidth=(null==(e=this.tabsNav)?void 0:e.scrollWidth)?`${null==(t=this.tabsNav)?void 0:t.scrollWidth}px`:"auto"}}onWindowResize(){var e,t;this.navWidth=(null==(e=this.tabsNav)?void 0:e.scrollWidth)?`${null==(t=this.tabsNav)?void 0:t.scrollWidth}px`:"auto"}onValueChange(e){this.changeTab(e)}constructor(...e){super(...e),this.navWidth="auto",this.panes=[]}}l([(0,a.y_)(n.Fd)],c.prototype,"gLogger",void 0),l([(0,a.y_)(o.lN)],c.prototype,"gClientService",void 0),l([(0,r.kv)({default:"default",type:String})],c.prototype,"variant",void 0),l([(0,r.kv)({default:!1,type:Boolean})],c.prototype,"displaySingleTab",void 0),l([(0,r.kv)({default:!1,type:Boolean})],c.prototype,"disabled",void 0),l([(0,r.kv)({default:10,type:Number})],c.prototype,"maxDepth",void 0),l([(0,r.kv)({type:String})],c.prototype,"value",void 0),l([(0,r.kv)({required:!1,type:String})],c.prototype,"navId",void 0),l([(0,r.kv)({default:!0,type:Boolean})],c.prototype,"useFirstAsDefault",void 0),l([(0,r.oS)()],c.prototype,"tabsNav",void 0),l([(0,r.ox)("isMobile")],c.prototype,"onWindowResize",null),l([(0,r.ox)("value")],c.prototype,"onValueChange",null);let u=(0,r.P9)(c),d=(0,s(81124).A)(u,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"ui-tabs",class:e.cssClass},[e.displayTabs?t("div",{staticClass:"ui-tabs-navigation-wrapper"},[t("ul",{ref:"tabsNav",staticClass:"ui-tabs-navigation",attrs:{id:e.navId}},e._l(e.navigation,function(s,r){return t("li",{directives:[{name:"cy",rawName:"v-cy:core",value:`tabListNavigationItem${r}`,expression:"`tabListNavigationItem${index}`",arg:"core"}],key:r,staticClass:"ui-tabs-item",class:e.itemClasses(s)}
1,[s.route?t("UILink",{staticClass:"ui-tabs-link",class:{"is-active":s.isActive},attrs:{route:s.route},on:{click:function(t){return e.handleClick(s.label)}}},[e._t("title",function(){return[e._v("\n "+e._s(s.displayName)+"\n ")]},{item:s})],2):t("a",{staticClass:"ui-tabs-link",class:{"is-active":s.isActive},attrs:{tabindex:"0"},on:{click:function(t){return e.handleClick(s)},keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:t.target.click()}}},[e._t("title",function(){return[e._v("\n "+e._s(s.displayName)+"\n ")]},{item:s})],2)],1)}),0),e._v(" "),t("div",{staticClass:"ui-tabs-navigation-utils"},[e._t("navigation-utils")],2)]):e._e(),e._v(" "),t("div",{staticClass:"ui-tabs-content"},[e._t("default")],2)])},[],!1,null,"489929a6",null).exports},88108(e,t,s){s.d(t,{p:()=>n,A:()=>l});var r=s(57913),i=s(80691);function a(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class n extends r.$G{get elementClasses(){return{"is-active":this.active||this.isActive}}get active(){return this.fActive}set active(e){this.fActive=e}constructor(...e){super(...e),this.fActive=!1}}a([(0,r.kv)({required:!0,type:String})],n.prototype,"label",void 0),a([(0,r.kv)({default:!1,type:Boolean})],n.prototype,"isActive",void 0),a([(0,r.kv)({required:!1,default:!0,type:Boolean})],n.prototype,"isVisible",void 0),a([(0,r.kv)({required:!0,type:String})],n.prototype,"displayName",void 0),a([(0,r.kv)({required:!1,default:null})],n.prototype,"topLabel",void 0),a([(0,r.kv)({required:!1,type:String})],n.prototype,"route",void 0),a([(0,r.kv)({type:String})],n.prototype,"alias",void 0),a([(0,r.kv)({required:!1,type:String})],n.prototype,"cyTabName",void 0),n=a([(0,i.A)()],n);let o=(0,r.P9)(n),l=(0,s(81124).A)(o,function(){var e=this._self._c;return this._self._setupProxy,e("div",{directives:[{name:"cy",rawName:"v-cy:core",value:"sparkTabsPane",expression:"'sparkTabsPane'",arg:"core"}],staticClass:"spark-tabs-pane",class:this.elementClasses},[this._t("default")],2)},[],!1,null,"53fbb3c6",null).exports},28606(e,t,s){s.r(t),s.d(t,{CalendarDebugServiceSubConditions:()=>a,default:()=>o});var r=s(57913);function i(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class a extends r.$G{getStyle(e){let t=e.is_satisfied?"green":"red";return this.showColors?`color: ${t}`:""}}i([(0,r.kv)()],a.prototype,"serviceConditions",void 0),i([(0,r.kv)({default:!1,type:Boolean})],a.prototype,"showColors",void 0),a=i([(0,r.XF)({ServiceSubConditions:()=>s.e(6470).then(s.bind(s,28606))})],a);let n=(0,r.P9)(a),o=(0,s(81124).A)(n,function(){var e=this,t=e._self._c;return e._self._setupProxy,e.serviceConditions?t("ul",{staticClass:"calendar-debug-service-sub-conditions"},[e._l(e.serviceConditions,function(s,r){return[s.logical_operator?t("ul",{key:r},[t("li",[t("span",{staticClass:"operator"},[e._v("\n "+e._s(e.$t(`Debug.operator.${s.logical_operator}`))+"\n ")]),e._v(" "),t("ServiceSubConditions",{attrs:{serviceConditions:s.conditions,showColors:e.showColors}})],1)]):t("li",{style:e.getStyle(s)},[e._v("\n "+e._s(s.label)+"\n ["+e._s(s.name)+"]\n "),t("span",{staticClass:"operator"},[e._v("\n "+e._s(e.$t(`Debug.operator.${s.operator}`))+"\n ")]),e._v("\n "+e._s(s.expected_value)+"\n ")])]})],2):e._e()},[],!1,null,"50288510",null).exports},20223(e,t,s){s.r(t),s.d(t,{CartDebugBoxPackerProduct:()=>u,default:()=>h});var r=s(57913),i=s(87967);class a extends r.$G{get dimensionsNames(){return Object.keys(this.productSize)}get dimensionsValues(){return Object.values(this.productSize)}}!function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);a>3&&n&&Object.defineProperty(t,s,n)}([(0,r.kv)({required:!0})],a.prototype,"productSize",void 0);let n=(0,r.P9)(a);var o=s(81124);let l=(0,o.A)(n,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"cart-debug-box-packer-product-size"},[t("table",{staticClass:"table",attrs:{"aria-label":e.$t("Debug.boxPackers.productSize")}},[t("thead",[t("tr",e._l(e.dimensionsNames,function(s){return t("th",{key:s,staticClass:"cell"},[e._v("\n "+e._s(e.$t(`Debug.boxPackers.${s}`))+"\n ")])}),0)]),e._v(" "),t("tbody",[t("tr",e._l(e.dimensionsValues,function(s,r){return t("td",{key:r,staticClass:"cell"},[e._v("\n "+e._s(s)+"\n ")])}),0)])])])},[],!1,null,"7a549cc4",null).exports;function c(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class u extends r.$G{get isEven(){return(this.index+1)%2==0}get productDescription(){return this.product[i.jE.DESCRIPTION]}get isPacked(){return this.product[i.jE.IS_PACKED]}get boxNumber(){return this.product[i.jE.BOX_NUMBER]}get isException(){return this.product[i.jE.IS_EXCEPTION]}get productDimensions(){return{width:this.product[i.jE.WIDTH],length:this.product[i.jE.LENGTH],depth:this.product[i.jE.DEPTH],weight:this.product[i.jE.WEIGHT]}}}c([(0,r.kv)({required:!0})],u.prototype,"product",void 0),c([(0,r.kv)({default:0,type:Number})],u.prototype,"index",void 0),u=c([(0,r.XF)({CartDebugBoxPackerProductSize:l})],u);let d=(0,r.P9)(u),h=(0,o.A)(d,function(){var e=this._self._c;return this._self._setupProxy,e("tr",{staticClass:"cart-debug-box-packer-product",class:{even:this.isEven}},[e("td",{staticClass:"cell"},[this._v(this._s(this.productDescription))]),this._v(" "),e("td",{staticClass:"cell"},[this.isPacked?e("div",[e("UIIcon",{attrs:{name:"check-ok"}}),this._v(" #"+this._s(this.boxNumber)+" "+this._s(this.$t("Debug.boxPackers.box"))+"\n ")],1):e("UIIcon",{attrs:{name:"check-error"}})],1),this._v(" "),e("td",{staticClass:"cell"},[this.isException?e("UIIcon",{attrs:{name:"check"}}):[this._v("-")]],2),this._v(" "),e("td",{staticClass:"cell"},[e("CartDebugBoxPackerProductSize",{attrs:{productSize:this.productDimensions}})],1)])},[],!1,null,"10781c86",null).exports},49740(e,t,s){s.r(t),s.d(t,{CartDebugBoxPackers:()=>v,default:()=>g});var r=s(57913),i=s(87967);class a extends r.$G{get dimensions(){let e=[i.JG.ID,i.JG.NAME,i.JG.CODE],t={...this.boxSize};
1return e.forEach(e=>{delete t[e]}),t}get dimensionsNames(){return Object.keys(this.dimensions)}get dimensionsValues(){return Object.values(this.dimensions)}}!function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);a>3&&n&&Object.defineProperty(t,s,n)}([(0,r.kv)({required:!0})],a.prototype,"boxSize",void 0);let n=(0,r.P9)(a);var o=s(81124);let l=(0,o.A)(n,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"cart-debug-box-packer-size"},[t("table",{staticClass:"table",attrs:{"aria-label":e.$t("Debug.boxPackers.boxSize")}},[t("thead",[t("tr",e._l(e.dimensionsNames,function(s){return t("th",{key:s,staticClass:"cell"},[e._v("\n "+e._s(e.$t(`Debug.boxPackers.${s}`))+"\n ")])}),0)]),e._v(" "),t("tbody",[t("tr",e._l(e.dimensionsValues,function(s,r){return t("td",{key:r,staticClass:"cell"},[e._v("\n "+e._s(s)+"\n ")])}),0)])])])},[],!1,null,"6cc0b253",null).exports;function c(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class u extends r.$G{get isEven(){return(this.index+1)%2==0}get transportName(){return this.boxPacker[i.OK.TRANSPORT_TYPE_NAME]}get boxCount(){return this.boxPacker[i.OK.AVAILABLE_BOX_COUNT]}get boxMaxCount(){return this.boxPacker[i.OK.MAXIMUM_BOX_COUNT]}get boxSize(){return this.boxPacker[i.OK.BOX_SIZE]}get boxSizeId(){return this.boxSize[i.JG.ID]}get boxName(){return this.boxSize[i.JG.NAME]}get boxSizeCode(){return this.boxSize[i.JG.CODE]}}c([(0,r.kv)({required:!0})],u.prototype,"boxPacker",void 0),c([(0,r.kv)({default:0,type:Number})],u.prototype,"index",void 0),u=c([(0,r.XF)({CartDebugBoxPackerSize:l})],u);let d=(0,r.P9)(u),h=(0,o.A)(d,function(){var e=this._self._c;return this._self._setupProxy,e("tr",{staticClass:"cart-debug-box-packer",class:{even:this.isEven}},[e("td",{staticClass:"cell"},[e("strong",[this._v(this._s(this.transportName))]),e("br"),this._v("\n "+this._s(this.boxName)),e("br"),this._v("\n ("+this._s(this.$t("Debug.boxPackers.id"))+": "+this._s(this.boxSizeId)+', "'+this._s(this.boxSizeCode)+'")\n ')]),this._v(" "),e("td",{staticClass:"cell"},[this._v(this._s(this.boxCount)+" / "+this._s(this.boxMaxCount))]),this._v(" "),e("td",{staticClass:"cell"},[e("CartDebugBoxPackerSize",{attrs:{boxSize:this.boxSize}})],1)])},[],!1,null,"5aef1fd3",null).exports;function p(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class v extends r.$G{get hasBoxPackers(){return this.boxPackers.length>0}}p([(0,r.kv)({default:[]})],v.prototype,"boxPackers",void 0),v=p([(0,r.XF)({CartDebugBoxPacker:h})],v);let f=(0,r.P9)(v),g=(0,o.A)(f,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"cart-debug-box-packers"},[e("table",{staticClass:"table",attrs:{"aria-label":this.$t("Debug.boxPackers.transports")}},[e("thead",[e("tr",[e("th",{staticClass:"header"},[this._v(this._s(this.$t("Debug.boxPackers.transportName")))]),this._v(" "),e("th",{staticClass:"header"},[this._v(this._s(this.$t("Debug.boxPackers.availableBoxes")))]),this._v(" "),e("th",{staticClass:"header"},[this._v(this._s(this.$t("Debug.boxPackers.boxSize")))])])]),this._v(" "),e("tbody",[this.hasBoxPackers?this._l(this.boxPackers,function(t,s){return e("CartDebugBoxPacker",{key:s,attrs:{index:s,boxPacker:t}})}):[this._m(0)]],2)])])},[function(){var e=this._self._c;return this._self._setupProxy,e("tr",[e("td",{attrs:{colspan:"3"}},[this._v("-")])])}],!1,null,"26f73c0b",null).exports},63243(e,t,s){s.r(t),s.d(t,{CartDebugBoxPackersMain:()=>a,default:()=>o});var r=s(57913);function i(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}
1class a extends r.$G{handleToggleDetails(){this.showDetails=!this.showDetails}constructor(...e){super(...e),this.showDetails=!1}}i([(0,r.kv)({default:[]})],a.prototype,"boxPackers",void 0),a=i([(0,r.XF)({CartDebugBoxPackers:()=>s.e(6470).then(s.bind(s,49740)),CartDebugBoxPackersProducts:()=>s.e(6470).then(s.bind(s,76330))})],a);let n=(0,r.P9)(a),o=(0,s(81124).A)(n,function(){var e=this._self._c;return this._self._setupProxy,e("details",{staticClass:"cart-debug-box-packers-main",on:{toggle:this.handleToggleDetails}},[e("summary",{staticClass:"title"},[this._v(this._s(this.$t("Debug.boxPackers.title")))]),this._v(" "),this.showDetails?e("div",{staticClass:"details"},[e("div",{staticClass:"column transport"},[e("div",{staticClass:"subtitle"},[this._v(this._s(this.$t("Debug.boxPackers.transports")))]),this._v(" "),e("CartDebugBoxPackers",{attrs:{boxPackers:this.boxPackers}})],1),this._v(" "),e("div",{staticClass:"column"},[e("div",{staticClass:"subtitle"},[this._v(this._s(this.$t("Debug.boxPackers.products")))]),this._v(" "),this._l(this.boxPackers,function(t,s){return e("CartDebugBoxPackersProducts",{key:s,attrs:{index:s,boxPacker:t}})})],2)]):this._e()])},[],!1,null,"af85595c",null).exports},76330(e,t,s){s.r(t),s.d(t,{CartDebugBoxPackersProducts:()=>n,default:()=>l});var r=s(57913),i=s(87967);function a(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}
1class n extends r.$G{handleToggleDetails(){this.showDetails=!this.showDetails}get transportName(){return this.boxPacker[i.OK.TRANSPORT_TYPE_NAME]}get boxInfo(){return this.boxPacker[i.OK.INFO]}isException(e){return!!this.boxPacker[i.OK.EXCEPTION_PRODUCTS_TO_PACK].find(t=>t.description===e.description)}get productsPacked(){return this.boxPacker[i.OK.PACKED_BOX_LIST].reduce((e,t,s)=>[...e,...t[i.a0.PACKED_ITEMS].map(e=>({isPacked:!0,isException:this.isException(e),boxNumber:s+1,...e}))],[])}get productsNotPacked(){let[e]=this.boxPacker[i.OK.NOT_PACKED_PRODUCTS];return e.map(e=>({isPacked:!1,isException:this.isException(e),boxNumber:0,...e}))}get products(){return[...this.productsPacked,...this.productsNotPacked]}get hasProducts(){return this.products.length>0}constructor(...e){super(...e),this.showDetails=!1}}a([(0,r.kv)({required:!0})],n.prototype,"boxPacker",void 0),n=a([(0,r.XF)({CartDebugBoxPackerProduct:()=>s.e(6470).then(s.bind(s,20223))})],n);let o=(0,r.P9)(n),l=(0,s(81124).A)(o,function(){var e=this._self._c;return this._self._setupProxy,e("details",{staticClass:"cart-debug-box-packers-products",on:{toggle:this.handleToggleDetails}},[e("summary",{staticClass:"subtitle"},[this._v(this._s(this.transportName))]),this._v(" "),this.showDetail
1s?e("div",{staticClass:"details"},[this.boxInfo?e("p",{staticClass:"info"},[e("UIIcon",{attrs:{name:"info4"}}),this._v(" "),e("span",[this._v(this._s(this.boxInfo))])],1):this._e(),this._v(" "),e("table",{staticClass:"table",attrs:{"aria-label":this.$t("Debug.boxPackers.products")}},[e("thead",[e("tr",[e("th",{staticClass:"header"},[this._v(this._s(this.$t("Debug.boxPackers.product")))]),this._v(" "),e("th",{staticClass:"header"},[this._v(this._s(this.$t("Debug.boxPackers.packed")))]),this._v(" "),e("th",{staticClass:"header"},[this._v(this._s(this.$t("Debug.boxPackers.exception")))]),this._v(" "),e("th",{staticClass:"header"},[this._v(this._s(this.$t("Debug.boxPackers.size")))])])]),this._v(" "),e("tbody",[this.hasProducts?this._l(this.products,function(t,s){return e("CartDebugBoxPackerProduct",{key:s,attrs:{index:s,product:t}})}):[this._m(0)]],2)])]):this._e()])},[function(){var e=this._self._c;return this._self._setupProxy,e("tr",[e("td",{attrs:{colspan:"4"}},[this._v("-")])])}],!1,null,"0b312296",null).exports},47158(e,t,s){s.r(t),s.d(t,{ToolbarLoader:()=>n,default:()=>l});var r=s(57913),i=s(80691);function a(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class n extends r.$G{}a([(0,r.kv)({type:String})],n.prototype,"value",void 0),n=a([(0,i.A)()],n);let o=(0,r.P9)(n),l=(0,s(81124).A)(o,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"toolbar-loader"},[e("svg",{staticStyle:{"enable-background":"new 0 0 32 32"},attrs:{id:"circle",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 32 32","xml:space":"preserve"}},[e("g",{staticClass:"toolbar-loader-circleAnimation"},[e("linearGradient",{attrs:{id:"SVGID_1_",gradientUnits:"userSpaceOnUse",x1:"1",y1:"16",x2:"31",y2:"16"}},[e("stop",{attrs:{offset:"0"}}),this._v(" "),e("stop",{staticStyle:{"stop-opacity":"0"},attrs:{offset:"0.912"}})],1),this._v(" "),e("path",{staticClass:"toolbar-loader-state0",attrs:{d:"M30,16c0,7.7-6.3,14-14,14S2,23.7,2,16S8.3,2,16,2"}}),this._v(" "),e("linearGradient",{attrs:{id:"SVGID_2_",gradientUnits:"userSpaceOnUse",x1:"17",y1:"9",x2:"1",y2:"9"}},[e("stop",{attrs:{offset:"5.928688e-04"}}),this._v(" "),e("stop",{attrs:{offset:"0.1418"}}),this._v(" "),e("stop",{attrs:{offset:"1"}})],1),this._v(" "),e("path",{staticClass:"toolbar-loader-state1",attrs:{d:"M2,16C2,8.3,8.3,2,16,2"}})],1)])])},[],!1,null,"7d2f41e6",null).exports},32843(e,t,s){s.r(t),s.d(t,{Toolbar:()=>ly,default:()=>lC});var r,i,a,n,o,l,c=s(57913),u=s(53079),d=s(47884);class h extends c.$G{get tabHeaders(){return this.gToolbarService.state.tabs}isActive(e){return this.gToolbarService.state.currentTabIndex===e}openTab(e){this.gToolbarService.openTab(e)}}!function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);a>3&&n&&Object.defineProperty(t,s,n)}([(0,u.y_)(d.hE)],h.prototype,"gToolbarService",void 0);let p=(0,c.P9)(h);var v=s(81124);let f=(0,v.A)(p,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"tabs"},e._l(e.tabHeaders,function(s,r){return t("a",{key:r,staticClass:"tab-header",class:{"is-active":e.isActive(r)},attrs:{href:""},on:{click:function(t){return t.preventDefault(),e.openTab(r)}}},[e._v(e._s(s))])}),0)},[],!1,null,"3f075878",null).exports;var g=s(30296),_=s(59306);function b(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class y extends c.$G{handleResize(e){let t=this.originalHeight-(e.pageY-this.originalMouseY);!this.content||e.pageY<=40||e.pageY<=window.scrollY+40?e.preventDefault():t>0&&(this.content.style.height=`${t}px`,this.content.style.maxHeight=`${window.innerHeight-40}px`)}startResize(e){this.resizing=!0,this.originalHeight=parseFloat(getComputedStyle(document.querySelector(".tab-content"),null).getPropertyValue("height").replace("px","")),this.originalMouseY=e.pageY,this.resizeFunction=e=>this.handleResize(e),this.stopResizeFunction=()=>this.stopResize(),window.addEventListener("mousemove",this.resizeFunction),window.addEventListener("mouseup",this.stopResizeFunction)}stopResize(){this.resizing=!1,window.removeEventListener("mousemove",this.resizeFunction),window.removeEventListener("mouseup",this.stopResizeFunction),null!==this.content&&this.gUserStorage.set(g.K,this.content.style.height)}$mounted(){this.content=document.querySelector(".tab-content")}constructor(...e){super(...e),this.content=null,this.originalHeight=0,this.originalMouseY=0,this.resizing=!1,this.resizeFunction=()=>{},this.stopResizeFunction=()=>{}}}b([(0,u.y_)(_.ff)],y.prototype,"gUserStorage",void 0),b([(0,c.oS)()],y.prototype,"resize",void 0);let m=(0,c.P9)(y),C=(0,v.A)(m,function(){var e=this._self._c;return this._self._setupProxy,e("div",{ref:"resize",staticClass:"toolbar-resize",on:{mousedown:this.startResize}}
1,[e("div",{staticClass:"overlay",class:{"is-active":this.resizing}})])},[],!1,null,"f5f9fcaa",null).exports;var T=s(80691);class S extends c.$G{formatTime(e,t){return void 0===e||void 0===t?"â ms":`${Math.floor(t-e)} ms`}updateStateTooltip(){var e;if(!(null==(e=window._toolbar)?void 0:e.osdData))return;let t=Object.keys(window._toolbar.osdData).map(e=>window._toolbar.osdData[e]).map(e=>`${e.state} [${this.formatTime(e.start,e.end)}]`).join("\n");this.elState.setAttribute("title",`Current frontend loading state. 2 3 ${t}`)}$mounted(){var e,t;let s=null!=(e=null==(t=window._toolbar)?void 0:t.currentState)?e:null;s&&(this.elState.innerHTML=s.name,this.elState.setAttribute("data-state",s.state))}constructor(...e){super(...e),this.state="INT"}}!function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);a>3&&n&&Object.defineProperty(t,s,n)}([(0,c.oS)()],S.prototype,"elState",void 0);let P=(0,c.P9)(S),k=(0,v.A)(P,function(){return this._self._c,this._self._setupProxy,this._m(0)},[function(){var e=this._self._c;return this._self._setupProxy,e("div",{ref:"elState",staticClass:"toolbar-osd-state",attrs:{"data-state":"INITIAL"},on:{mouseover:this.updateStateTooltip}},[e("div",{attrs:{id:"tb_osd_lstate","data-allow-mismatch":""}},[this._v(this._s(this.state))])])}],!1,null,"9a74c5be",null).exports;class R extends c.$G{get description(){return"Amount of API requests from front. \n\nIf indicator is flashing, it means that requests are currently pending."}$mounted(){var e,t;this.$vue.$el.innerHTML=String(null!=(e=null==(t=window._toolbar)?void 0:t.apiCalls)?e:0)}}let w=(0,c.P9)(R),A=(0,v.A)(w,function(){return this._self._c,this._self._setupProxy,this._m(0)},[function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"toolbar-osd-api-call-front",attrs:{title:this.description}},[e("div",{attrs:{id:"tb_osd_apicall","data-allow-mismatch":""}},[this._v("0")])])}],!1,null,"301bfcf8",null).exports;var E=s(50964);class O extends c.$G{get description(){return"Amount of API requests from SSR."}get count(){return this.gToolbarOSDService.state.ssrApiCalls}}!function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);a>3&&n&&Object.defineProperty(t,s,n)}([(0,u.y_)(E.A)],O.prototype,"gToolbarOSDService",void 0);let D=(0,c.P9)(O),x=(0,v.A)(D,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"toolbar-osd-api-call-ssr",attrs:{title:this.description}},[e("div",{attrs:{"data-allow-mismatch":""}},[this._v("\n "+this._s(this.count)+"\n ")])])},[],!1,null,"727bb9b0",null).exports;class I extends c.$G{get description(){return"Amount of images loaded on runtime. Images < 512 bytes are excluded (analytics pixels etc.)."}$mounted(){var e,t;window._toolbar&&(window._toolbar.osdImageReady=!0),this.$vue.$el.innerHTML=String(null!=(e=null==(t=window._toolbar)?void 0:t.images)?e:0)}}let N=(0,c.P9)(I),j=(0,v.A)(N,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"toolbar-osd-api-call-ssr",attrs:{id:"tb_osd_image",title:this.description,"data-allow-mismatch":"text,class"}},[this._v("0")])},[],!1,null,"2aa90a58",null).exports;class L{}var F=s(98677);function U(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class M extends c.$G{get interactionTitle(){let e="Interaction to Next Paint.";if(0===this.eventsState.length)return e;let t=this.eventsState.map(e=>`[${e.event}], ${e.selector}, ${e.value} ms`).join("\n");return`${e} 4 5${t}`}get interactionStatus(){return 0===this.eventsState.length?"GOOD":this.eventsState.filter(e=>e.value>500).length?"POOR":"NEEDS_IMPROVMENT"}onINPEvent(e){e.value>300&&this.eventsState.push(e)}constructor(...e){super(...e),this.eventsState=[]}}U([(0,F.A)(class extends L{})],M.prototype,"onINPEvent",null),M=U([(0,T.A)()],M);let $=(0,c.P9)(M),B=(0,v.A)($,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"toolbar-osd-inp",attrs:{id:"tb_osd_inp","data-interaction-status":this.interactionStatus,title:this.interactionTitle}},[this._v("\n "+this._s(this.eventsState.length)+"\n")])},[],!1,null,"591b67f5",null).exports;class V extends c.$G{}V=function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}([(0,T.A)(),(0,c.XF)({ToolbarOSDState:k,ToolbarOSDApiCallFront:A,ToobarOSDApiCallSSR:x,ToolbarOSDImage:j,ToolbarOSDWebVitalsINP:B})],V);let z=(0,c.P9)(V),K=(0,v.A)(z,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"toolbar-osd"},[e("div",{staticClass:"osd-cat"},[e("div",{staticClass:"osd-title"},[this._v("INP")]),this._v(" "),e("ToolbarOSDWebVitalsINP",{staticClass:"osd-item"})],1),this._v(" "),e("div",{staticClass:"osd-cat"},[e("div",{staticClass:"osd-title"},[this._v("App state")]),this._v(" "),e("ToolbarOSDState",{staticClass:"osd-item is-large"})],1),this._v(" "),e("div",{staticClass:"osd-cat"},[e("div",{staticClass:"osd-title"},[this._v("Api Front")]),this._v(" "),e("ToolbarOSDApiCallFront",{staticClass:"osd-item"})],1),this._v(" "),e("div",{staticClass:"osd-cat"},[e("div",{staticClass:"osd-title"},[this._v("Api SSR")]),this._v(" "),e("ToobarOSDApiCallSSR",{staticClass:"osd-item"})],1),this._v(" "),e("div",{staticClass:"osd-cat"},[e("div",{staticClass:"osd-title"},[this._v("Image")]),this._v(" "),e("ToolbarOSDImage",{staticClass:"osd-item"})],1)])},[],!1,null,"220264d0",null).exports;var G=s(82831),q=s(19305);function H(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class X extends c.$G{get apiDescription(){return"Current API environment."}get branchDescription(){return"Active GIT branch."}get activeEnv(){return this.envs.some(e=>e.isActive)?this.envs.find(e=>e.isActive):this.envs.find(e=>"prod"===e.name)}async loadEnvs(){this.isLoading=!0;try{var e;let t=await fetch("/spark-api/toolbar/config/stage");if(!t.ok)return;let s=await t.json();this.envs=null!=(e=null==s?void 0:s.stages)?e:[]}
5catch(e){this.gLogger.warn("Toolbar","Tools","Cannot get app stages")}finally{this.isLoading=!1}}get branchName(){return this.getValue("branch")}getValue(e){return this.gPanelService.getInfoValue(e)}async $mounted(){this.envs.length||await this.loadEnvs()}constructor(...e){super(...e),this.isLoading=!1,this.toolbarData=[],this.envs=[]}}H([(0,G.A)(q.A)],X.prototype,"gPanelService",void 0),H([(0,G.A)(_.Fd)],X.prototype,"gLogger",void 0),X=H([(0,T.A)()],X);let W=(0,c.P9)(X),Y=(0,v.A)(W,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"labels"},[this.envs.length?e("div",{staticClass:"active-env",class:this.activeEnv.name,attrs:{title:this.apiDescription}},[this._v("\n "+this._s(this.activeEnv.name)+"\n ")]):this._e(),this._v(" "),this.branchName?e("div",{staticClass:"branch-name",attrs:{title:this.branchDescription}},[this._v("\n "+this._s(this.branchName)+"\n ")]):this._e()])},[],!1,null,"cf3d751a",null).exports;function J(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class Q extends c.$G{get isToolbarExpanded(){return this.gToolbarService.state.isToolbarExpanded}get currentTabIndex(){return this.gToolbarService.state.currentTabIndex}showToolbar(){this.gToolbarService.showToolbar()}hideToolbar(){this.gToolbarService.hideToolbar()}openLastTabCategory(){this.gToolbarService.openLastTabCategory()}$mounted(){this.openLastTabCategory()}}J([(0,u.y_)(d.hE)],Q.prototype,"gToolbarService",void 0),Q=J([(0,c.XF)({ToolbarHeaders:f,ToolbarResize:C,ToolbarOSD:K,ToolbarLabels:Y})],Q);let Z=(0,c.P9)(Q),ee=(0,v.A)(Z,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"toolbar",class:{minimized:!e.isToolbarExpanded}},[e.isToolbarExpanded&&e.currentTabIndex?t("ToolbarResize"):e._e(),e._v(" "),t("a",{staticClass:"toggle",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.showToolbar.apply(null,arguments)}}},[t("UIIcon",{attrs:{name:"spark-noapi"}})],1),e._v(" "),t("div",{staticClass:"content"},[t("a",{staticClass:"logo",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.hideToolbar.apply(null,arguments)}}},[t("UIIcon",{attrs:{name:"spark-noapi"}})],1),e._v(" "),t("ToolbarHeaders"),e._v(" "),t("ToolbarOSD",{staticClass:"osd"})],1),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:null!==e.currentTabIndex,expression:"currentTabIndex !== null"}],staticClass:"tab-content"},[e._t("default")],2)],1)},[],!1,null,"c285dd60",null).exports;function et(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class es extends c.$G{get isActive(){return this.gToolbarService.state.currentTabIndex===this.name}$mounted(){var e;this.gToolbarService.registerTab(this.name,null!=(e=this.label)?e:this.name)}}et([(0,u.y_)(d.hE)],es.prototype,"gToolbarService",void 0),et([(0,c.kv)({type:String})],es.prototype,"name",void 0),et([(0,c.kv)({type:String})],es.prototype,"label",void 0);let er=(0,c.P9)(es),ei=(0,v.A)(er,function(){var e=this._self._c;return this._self._setupProxy,this.isActive?e("div",{staticClass:"tab"},[this._t("default")],2):this._e()},[],!1,null,"38e4fbc5",null).exports;s(61641);class ea extends c.$G{$render(){}}let en=(0,c.P9)(ea),eo=(0,v.A)(en,r,i,!1,null,null,null).exports;var el=s(8511),ec=s(88108),eu=s(47158);function ed(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class eh extends c.$G{get isLoading(){return this.gPanelService.state.isLoading}get panelData(){return this.gPanelService.state.config}get buildTag(){var e;return null!=(e=this.getValue("tag"))?e:null}get branchName(){var e;return null!=(e=this.getValue("branch"))?e:null}get config(){return this.gAppService.getConfig()}get isInternalConnection(){return this.getValue("config-internal-enabled")}get frontApi(){var e;return null!=(e=this.getValue("config-front-api"))?e:null}get frontRouter(){var e;return null!=(e=this.getValue("config-front-router"))?e:null}get routerApi(){let{legacyApi:e}=this.config;return this.isInternalConnection&&e.routeInternal?e.routeInternal:e.route}get storageType(){var e;return null!=(e=this.getValue("storage-type"))?e:null}get storageHosts(){var e;return null!=(e=this.getValue("storage-hosts"))?e:null}get storageIsActive(){var e;return null!=(e=this.getValue("storage-is-active"))&&e}get storageDelay(){var e;let t=null!=(e=this.getValue("storage-delay"))?e:0;return`${Math.floor(t)} ms`}get ciDeploy(){var e;return null!=(e=this.getValue("ci-deploy"))?e:"-"}get ciPipeline(){var e;return null!=(e=this.getValue("ci-pipeline"))?e:null}getValue(e){return this.gPanelService.getInfoValue(e)}}ed([(0,G.A)(_.TF)],eh.prototype,"gAppService",void 0),ed([(0,G.A)(q.A)],eh.prototype,"gPanelService",void 0),eh=ed([(0,T.A)(),(0,c.XF)({ToolbarLoader:eu.default})],eh);let ep=(0,c.P9)(eh),ev=(0,v.A)(ep,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"info-tab"},[this.isLoading?e("ToolbarLoader"):[this.branchName?[e("div",{staticClass:"toolbar-header"},[this._v("Base information")]),this._v(" "),e("ul",{staticClass:"toolbar-list"},[e("li",{staticClass:"toolbar-list-item"},[e("span",{staticClass:"title"},[this._v("Branch: ")]),this._v(this._s(this.branchName))])])]:this._e(),this._v(" "),e("div",{staticClass:"toolbar-separator"}),this._v(" "),e("div",{staticClass:"toolbar-header"},[this._v("Front information")]),this._v(" "),e("ul",{staticClass:"toolbar-list"},[e("li",{staticClass:"toolbar-list-item"},[e("span",{staticClass:"title"}
5,[this._v("API:")]),this._v(" "+this._s(this.frontApi))]),this._v(" "),e("li",{staticClass:"toolbar-list-item"},[e("span",{staticClass:"title"},[this._v("Router API:")]),this._v(" "+this._s(this.frontRouter))])]),this._v(" "),e("div",{staticClass:"toolbar-separator"}),this._v(" "),e("div",{staticClass:"toolbar-header"},[this._v("SSR information")]),this._v(" "),e("ul",{staticClass:"toolbar-list"},[e("li",{staticClass:"status-wrapper toolbar-list-item"},[e("span",{staticClass:"title"},[this._v("Internal connection:")]),this._v(" "),e("span",{staticClass:"status",class:{"is-enabled":this.isInternalConnection}},[this.isInternalConnection?[this._v("Enabled")]:[this._v("Disabled")]],2)])]),this._v(" "),e("div",{staticClass:"toolbar-separator"}),this._v(" "),e("div",{staticClass:"toolbar-header"},[this._v("Storage information")]),this._v(" "),e("ul",{staticClass:"toolbar-list"},[e("li",{staticClass:"toolbar-list-item"},[e("span",{staticClass:"title"},[this._v("Type:")]),this._v(" "+this._s(this.storageType))]),this._v(" "),e("li",{staticClass:"toolbar-list-item"},[e("span",{staticClass:"title"},[this._v("Hosts:")]),this._v(" "+this._s(this.storageHosts))]),this._v(" "),e("li",{staticClass:"toolbar-list-item"},[e("span",{staticClass:"title"},[this._v("Health:")]),this._v(" "),this.storageIsActive?e("span",{staticClass:"item-status is-ok"},[this._v("OK")]):e("span",{staticClass:"item-status is-failure"},[this._v("FAILURE")])]),this._v(" "),e("li",{staticClass:"toolbar-list-item"},[e("span",{staticClass:"title"},[this._v("Avg time (last 20 calls):")]),this._v(" "+this._s(this.storageDelay))])]),this._v(" "),e("div",{staticClass:"toolbar-separator"}),this._v(" "),e("div",{staticClass:"toolbar-header"},[this._v("CI/CD information")]),this._v(" "),e("ul",{staticClass:"toolbar-list"},[e("li",{staticClass:"toolbar-list-item"},[e("span",{staticClass:"title"},[this._v("Current app tag")]),this._v(" "+this._s(this.buildTag))]),this._v(" "),e("li",{staticClass:"toolbar-list-item"},[e("span",{staticClass:"title"},[this._v("Last deploy")]),this._v(" "+this._s(this.ciDeploy))]),this._v(" "),e("li",{staticClass:"toolbar-list-item"},[e("span",{staticClass:"title"},[this._v("Pipeline link")]),this._v(" "),this.ciPipeline?[e("a",{staticClass:"link",attrs:{href:this.ciPipeline,target:"_blank"}},[this._v("Go to pipeline")])]:[this._v("No link found")]],2)])]],2)},[],!1,null,"39f72973",null).exports;function ef(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class eg extends c.$G{get resolveRoute(){return this.gRouteResolverService.state.resolvedRoute}
5get currentRoute(){return this.gRouter.currentRoute}}ef([(0,G.A)(_.F2)],eg.prototype,"gRouteResolverService",void 0),ef([(0,G.A)(_.Ii)],eg.prototype,"gRouter",void 0),eg=ef([(0,T.A)()],eg);let e_=(0,c.P9)(eg),eb=(0,v.A)(e_,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"route-tab"},[e("div",{staticClass:"item"},[e("div",{staticClass:"toolbar-header"},[this._v("Vue Router")]),this._v(" "),e("ul",{staticClass:"toolbar-list"},[e("li",{staticClass:"toolbar-list-item"},[e("span",{staticClass:"title"},[this._v("Name:")]),this._v(" "+this._s(this.currentRoute.name))]),this._v(" "),e("li",{staticClass:"toolbar-list-item"},[e("span",{staticClass:"title"},[this._v("Full path:")]),this._v(" "+this._s(this.currentRoute.fullPath))]),this._v(" "),e("li",{staticClass:"toolbar-list-item"},[e("span",{staticClass:"title"},[this._v("Params:")]),this._v(" "+this._s(this.currentRoute.params))]),this._v(" "),e("li",{staticClass:"toolbar-list-item"},[e("span",{staticClass:"title"},[this._v("Query:")]),this._v(" "+this._s(this.currentRoute.query))])])]),this._v(" "),e("div",{staticClass:"toolbar-separator"}),this._v(" "),e("div",{staticClass:"item"},[e("div",{staticClass:"toolbar-header"},[this._v("Resolve route (API)")]),this._v(" "),this.resolveRoute?[e("ul",{staticClass:"toolbar-list"},[e("li",{staticClass:"toolbar-list-item"},[e("span",{staticClass:"title"},[this._v("Type:")]),this._v(" "+this._s(this.resolveRoute.type))]),this._v(" "),e("li",{staticClass:"toolbar-list-item"},[e("span",{staticClass:"title"},[this._v("Source id:")]),this._v(" "+this._s(this.resolveRoute.source_id))]),this._v(" "),e("li",{staticClass:"toolbar-list-item"},[e("span",{staticClass:"title"},[this._v("Route:")]),this._v(" "+this._s(this.resolveRoute.route))]),this._v(" "),e("li",{staticClass:"toolbar-list-item"},[e("span",{staticClass:"title"},[this._v("Request data:")]),this._v(" "+this._s(this.resolveRoute.request_data))]),this._v(" "),this.resolveRoute.dynamic_menu?e("li",{staticClass:"toolbar-list-item"},[e("span",{staticClass:"title"},[this._v("Dynamic menu:")]),this._v(" "),e("ul",{staticClass:"toolbar-list"},[e("li",{staticClass:"toolbar-list-item"},[e("span",{staticClass:"title"},[this._v("Menu ID:")]),this._v(" "+this._s(this.resolveRoute.dynamic_menu.menu_id)+"\n ")]),this._v(" "),e("li",{staticClass:"toolbar-list-item"},[e("span",{staticClass:"title"},[this._v("Menu item ID:")]),this._v(" "+this._s(this.resolveRoute.dynamic_menu.menu_item_id)+"\n ")]),this._v(" "),e("li",{staticClass:"toolbar-list-item"},[e("span",{staticClass:"title"},[this._v("Menu item name:")]),this._v(" "+this._s(this.resolveRoute.dynamic_menu.menu_item_name)+"\n ")]),this._v(" "),e("li",{staticClass:"toolbar-list-item"},[e("span",{staticClass:"title"},[this._v("Menu item url:")]),this._v(" "+this._s(this.resolveRoute.dynamic_menu.menu_item_url)+"\n ")]),this._v(" "),e("li",{staticClass:"toolbar-list-item"},[e("span",{staticClass:"title"},[this._v("Menu item type:")]),this._v(" "+this._s(this.resolveRoute.dynamic_menu.menu_type)+"\n ")]),this._v(" "),e("li",{staticClass:"toolbar-list-item"},[e("span",{staticClass:"title"},[this._v("Product list ID:")]),this._v(" "+this._s(this.resolveRoute.dynamic_menu.product_list_id)+"\n ")])])]):this._e()])]:e("div",{staticClass:"not-resolved"},[this._v("\n Route not resolved!\n ")])],2)])},[],!1,null,"873090ba",null).exports;function ey(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class em extends c.$G{get httpHeaders(){return this.gToolbarService.state.httpHeaders}}ey([(0,G.A)(d.hE)],em.prototype,"gToolbarService",void 0),em=ey([(0,T.A)()],em);let eC=(0,c.P9)(em),eT=(0,v.A)(eC,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"request-tab"},[t("div",{staticClass:"toolbar-header"},[e._v("HTTP Headers")]),e._v(" "),e.httpHeaders?t("ul",{staticClass:"toolbar-list"},e._l(e.httpHeaders,function(s,r){return t("li",{key:r,staticClass:"toolbar-list-item"},[t("span",{staticClass:"title"},[e._v(e._s(r)+":")]),e._v(" "+e._s(s)+"\n ")])}),0):t("p",[e._v("\n Headers are disabled for production builds.\n ")])])},[],!1,null,"597ac460",null).exports;class eS extends c.$G{constructor(...e){super(...e),this.tab="info"}}eS=function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}([(0,T.A)(),(0,c.XF)({UITabs:el.A,UITabsPane:ec.A,Info:ev,Route:eb,Headers:eT})],eS);let eP=(0,c.P9)(eS),ek=(0,v.A)(eP,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"info-tab"}
5,[t("UITabs",{staticClass:"info-tabs",attrs:{displaySingleTab:!0},model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},[t("UITabsPane",{attrs:{label:"info",displayName:"Info"}},[t("Info")],1),e._v(" "),t("UITabsPane",{attrs:{label:"route",displayName:"Route"}},[t("Route")],1),e._v(" "),t("UITabsPane",{attrs:{label:"headers",displayName:"Headers"}},[t("Headers")],1)],1)],1)},[],!1,null,"07448cf2",null).exports;var eR=s(71104),ew=s(33020),eA=s(52459),eE=s(71783);function eO(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class eD extends c.$G{get method(){return this.entry.method.toLowerCase()}get baseUrl(){if(this.entry.baseUrl)return this.entry.baseUrl;let{api:e}=this.gAppService.getConfig();return e.url}get requestURL(){return this.entry.url.replace(this.baseUrl,"")}toggleOpen(){this.isOpen=!this.isOpen}handleClose(){this.isOpen=!1}async handlePurge(){if("get"===this.method&&!this.isPurgePending)try{this.isPurgePending=!0,await this.gToolbarCacheService.purgeRequestEntry(this.requestURL,this.entry),this.isPurgePending=!1,this.isPurgeSuccess=!0,await (0,eA.yy)(3e3),this.isPurgeSuccess=!1}catch(e){this.gLogger.warn("ApiTabEntryCache","Cannot purge endpoint",e)}finally{this.isPurgePending=!1}}async handleCopyCurl(){let e=await s.e(4836).then(s.t.bind(s,67121,23)),{url:t,method:r,requestHeaders:i}=this.entry,a=i.reduce((e,{name:t,value:s})=>{let r="x-api-token"===t?{authorization:`Bearer ${s}`}:{[t]:s};return{...e,...r}},{}),n={url:encodeURI(decodeURIComponent(t)),method:r,headers:a};this.copyToClipboard(e.CurlGenerator(n)),this.handleClose()}handleCopyUrl(){let{url:e}=this.entry;this.copyToClipboard(decodeURIComponent(e)),this.handleClose()}handleShowDetails(){this.$emit("preview")}copyToClipboard(e){if(!e)return;let t=document.createElement("input");t.setAttribute("value",e),t.style.position="fixed",document.body.appendChild(t),(0,eE.lW)(t),document.body.removeChild(t)}constructor(...e){super(...e),this.isOpen=!1,this.isPurgePending=!1,this.isPurgeSuccess=!1}}eO([(0,G.A)(_.TF)],eD.prototype,"gAppService",void 0),eO([(0,G.A)(ew.A)],eD.prototype,"gToolbarCacheService",void 0),eO([(0,G.A)(_.Fd)],eD.prototype,"gLogger",void 0),eO([(0,c.kv)({type:Object,required:!0})],eD.prototype,"entry",void 0),eD=eO([(0,c.XF)({ToolbarLoader:eu.default})],eD);let ex=(0,c.P9)(eD),eI=(0,v.A)(ex,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.handleClose,expression:"handleClose"}],staticClass:"actions",class:{"is-open":e.isOpen}},[t("div",{staticClass:"header",on:{click:function(t){return t.stopPropagation(),e.toggleOpen.apply(null,arguments)}}},[t("UIIcon",{attrs:{name:"toolbar-dots"}})],1),e._v(" "),e.isOpen?t("div",{staticClass:"dropdown"},[t("div",{staticClass:"list"},[t("div",{staticClass:"item purge",class:{"is-success":e.isPurgeSuccess}},[t("a",{attrs:{href:"#"},on:{click:function(t){return t.stopPropagation(),e.handlePurge.apply(null,arguments)}}},[e._v("Purge")]),e._v(" "),e.isPurgePending?t("ToolbarLoader"):e._e()],1),e._v(" "),t("div",{staticClass:"item purge"},[t("a",{attrs:{href:"#"},on:{click:function(t){return t.stopPropagation(),e.handleCopyCurl.apply(null,arguments)}}},[e._v("Copy cURL")])]),e._v(" "),t("div",{staticClass:"item purge"},[t("a",{attrs:{href:"#"},on:{click:function(t){return t.stopPropagation(),e.handleCopyUrl.apply(null,arguments)}}},[e._v("Copy URL")])]),e._v(" "),t("div",{staticClass:"item purge"},[t("a",{attrs:{href:"#"},on:{click:function(t){return t.stopPropagation(),e.handleShowDetails.apply(null,arguments)}}},[e._v("Show details")])])])]):e._e()])},[],!1,null,"4793c9cb",null).exports;function eN(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class ej extends c.$G{get isDropdownVisible(){var e;return null!=(e=this.gPanelService.getInfoValue("allow-varnish-purge"))&&e}get method(){return this.entry.method.toUpperCase()}get statusCode(){return this.entry.statusCode}get time(){let{time:e}=this.entry;if(e<1e3){let t=Math.floor(e);return`${t} ms`}{let t=(e/1e3).toFixed(2);return`${t} s`}}get size(){return this.entry.size}get formatSize(){return this.size<1024?`${this.size} B`:this.size<1048576?`${Math.round(this.size/1024*10)/10} KB`:this.size<0x40000000?`${Math.round(this.size/1048576*10)/10} MB`:"?"}get sizeClass(){return this.size>512e3?"error":this.size>102400?"warning":null}get isErrorStatus(){return this.statusCode<200||this.statusCode>299}get url(){let e=decodeURIComponent(this.entry.url);if(this.fullUrl)return e;let t=new URL(e,this.entry.baseUrl);return e.replace(t.origin,"")}get isCacheHit(){return this.entry.isCacheHit||this.entry.fromInternalCache}get origin(){return this.entry.origin}get status(){return this.entry.status}get isPending(){return this.status===eR.EV.PENDING}get isInterrupted(){return this.status===eR.EV.INTERRUPTED}get description(){let{description:e}=this.entry;return void 0!==e?`[${e.className}:${e.method}] - ${e.title}`:null}makeApiRequest(){this.$emit("makeApiRequest",this.entry)}handlePreview(){this.$emit("preview",this.entry)}}eN([(0,G.A)(q.A)],ej.prototype,"gPanelService",void 0),eN([(0,c.kv)({type:Object,required:!0})],ej.prototype,"entry",void 0),eN([(0,c.kv)({type:Boolean,default:!1})],ej.prototype,"fullUrl",void 0),ej=eN([(0,c.XF)({ToolbarLoader:eu.default,ApiTabDropdown:eI})],ej);let eL=(0,c.P9)(ej),eF=(0,v.A)(eL,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"api-tab-entry toolbar-table-row",class:{"
5is-from-cache":e.entry.fromInternalCache},on:{click:function(t){return t.stopPropagation(),e.handlePreview.apply(null,arguments)}}},[t("div",{staticClass:"toolbar-table-column play-button",on:{click:function(t){return t.stopPropagation(),e.makeApiRequest.apply(null,arguments)}}},[t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}},[t("path",{attrs:{fill:"currentColor",d:"m10.65 15.75l4.875-3.125q.35-.225.35-.625t-.35-.625L10.65 8.25q-.375-.25-.763-.038t-.387.663v6.25q0 .45.388.663t.762-.038M12 22q-2.075 0-3.9-.788t-3.175-2.137T2.788 15.9T2 12t.788-3.9t2.137-3.175T8.1 2.788T12 2t3.9.788t3.175 2.137T21.213 8.1T22 12t-.788 3.9t-2.137 3.175t-3.175 2.138T12 22"}})])]),e._v(" "),t("div",{staticClass:"toolbar-table-column cache"},[e.entry.fromInternalCache?t("UIIcon",{attrs:{name:"toolbar-alert"}}):e._e(),e._v(" "),e.isCacheHit?[e._v("\n "+e._s(e.entry.fromInternalCache?"From cache":"Hit")+"\n ")]:[t("UIIcon",{attrs:{name:"toolbar-alert"}}),e._v(" Miss\n ")]],2),e._v(" "),t("div",{staticClass:"toolbar-table-column"},[e._v(e._s(e.method))]),e._v(" "),t("div",{staticClass:"toolbar-table-column status"},[e.isInterrupted?[t("UIIcon",{staticClass:"interrupted",attrs:{title:"SSR did not wait for this request to complete. Did you forget to use 'await' keyword?",name:"toolbar-alert"}})]:e.isPending?[t("div",{staticClass:"api-tab-loading"},[t("ToolbarLoader")],1)]:[e.isErrorStatus?t("UIIcon",{staticClass:"error",attrs:{name:"toolbar-alert"}}):e._e(),e._v("\n "+e._s(e.statusCode)+"\n ")]],2),e._v(" "),t("div",{staticClass:"toolbar-table-column"},[e._v(e._s(e.time))]),e._v(" "),t("div",{staticClass:"toolbar-table-column size"},[e.sizeClass?t("UIIcon",{class:e.sizeClass,attrs:{name:"toolbar-alert"}}):e._e(),e._v("\n "+e._s(e.formatSize)+"\n ")],1),e._v(" "),t("div",{staticClass:"toolbar-table-column"},[e._v(e._s(e.origin))]),e._v(" "),t("div",{staticClass:"toolbar-table-column",class:{"has-description":e.description}},[e._v("\n "+e._s(e.url)+"\n "),e.description?t("span",{staticClass:"description"},[e._v(e._s(e.description))]):e._e()]),e._v(" "),e.isDropdownVisible?t("ApiTabDropdown",{staticClass:"toolbar-table-column actions",attrs:{entry:e.entry},on:{preview:e.handlePreview}}):e._e()],1)},[],!1,null,"ae34141c",null).exports;var eU=s(88472);function eM(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class e$ extends c.$G{async getBigJsonObject(){let e=await s.e(3332).then(s.t.bind(s,89446,23));return"string"==typeof this.value?this.checkIfInputTextIsJson()?e.BigJsonViewerDom.fromObject(JSON.parse(this.value)):e.BigJsonViewerDom.fromData(JSON.stringify(this.value)):e.BigJsonViewerDom.fromObject(JSON.parse(JSON.stringify(this.value)))}checkIfInputTextIsJson(){if("string"!=typeof this.value)return!1;try{JSON.parse(this.value)}catch(e){return!1}return!0}async mountViewer(e){try{let t=await this.getBigJsonObject(),s=t.getRootElement();e.appendChild(s),this.openOnStart&&t.getRootElement().openNode()}catch(e){this.gLogger.warn("ToolbarDataView","Cannot create JSON Viewer object",e)}}async $mounted(){let e=this.$vue.$el.querySelector(".json");e&&await this.mountViewer(e)}async onValueChange(){if(!this.watchForChanges)return;let e=this.$vue.$el.querySelector(".json");e&&(e.firstChild&&e.removeChild(e.firstChild),await this.mountViewer(e))}}eM([(0,u.y_)(_.Fd)],e$.prototype,"gLogger",void 0),eM([(0,c.kv)({type:[Object,Array,String]})],e$.prototype,"value",void 0),eM([(0,c.kv)({type:Boolean,default:!1})],e$.prototype,"openOnStart",void 0),eM([(0,c.kv)({type:Boolean,default:!1})],e$.prototype,"watchForChanges",void 0),eM([(0,c.ox)("value")],e$.prototype,"onValueChange",null);let eB=(0,c.P9)(e$),eV=(0,v.A)(eB,function(){return this._self._c,this._self._setupProxy,this._m(0)},[function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"toolbar-data-view"},[e("div",{staticClass:"json"})])}],!1,null,"5454443e",null).exports;function ez(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class eK extends c.$G{get responseBody(){return this.entry.responseBody}}ez([(0,c.kv)({type:Object,required:!0})],eK.prototype,"entry",void 0),eK=ez([(0,T.A)(),(0,c.XF)({ToolbarDataView:eV})],eK);let eG=(0,c.P9)(eK),eq=(0,v.A)(eG,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"api-toolbar-data-view"},[e("h4",{staticClass:"header"},[this._v("Response:")]),this._v(" "),"__SPARK_TRUNCATED__"!==this.responseBody?e("ToolbarDataView",{attrs:{value:this.responseBody}}):e("div",{staticClass:"response-body-too-large"},[this._v("\n Response body is too large (over 500kb) for preview. Please call API directly.\n ")])],1)},[],!1,null,"eed640c8",null).exports;var eH=s(93990);function eX(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class eW extends c.$G{get stack(){var e;return this.gDebugCallstackService.excludeFileName(null!=(e=this.entry.debugCallstack)?e:[],["Core/Adafir/Service/AdafirApiService.ts"]).reverse()}}eX([(0,G.A)(eH.A)],eW.prototype,"gDebugCallstackService",void 0),eX([(0,c.kv)()],eW.prototype,"entry",void 0),eW=eX([(0,T.A)()],eW);let eY=(0,c.P9)(eW),eJ=(0,v.A)(eY,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"api-tab-source"},[e._m(0),e._v(" "),t("div",{staticClass:"toolbar-table-body"},e._l(e.stack,function(s,r){return t("div",{key:r,staticClass:"api-tab-entry toolbar-table-row"},[t("div",{staticClass:"toolbar-table-column"},[e._v(e._s(s.fileName))]),e._v(" "),t("div",{staticClass:"toolbar-table-column"},[e._v(e._s(s.functionName))]),e._v(" "),t("div",{staticClass:"toolbar-table-column"},[e._v(e._s(s.lineNumber))]),e._v(" "),t("div",{staticClass:"toolbar-table-column"},[e._v(e._s(s.columnNumber))]),e._v(" "),t("div",{staticClass:"toolbar-table-column"},[e._v(e._s(s.source))])])}),0)])},[function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"toolbar-table-header"},[e("div",{staticClass:"toolbar-table-row"},[e("div",{staticClass:"toolbar-table-column file-name"},[this._v("File name")]),this._v(" "),e("div",{staticClass:"toolbar-table-column"},[this._v("Function name")]),this._v(" "),e("div",{staticClass:"toolbar-table-column"},[this._v("Line number")]),this._v(" "),e("div",{staticClass:"toolbar-table-column"}
5,[this._v("Column number")]),this._v(" "),e("div",{staticClass:"toolbar-table-column"},[this._v("Source")])])])}],!1,null,"727243ed",null).exports;function eQ(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class eZ extends c.$G{get title(){return decodeURIComponent(this.entry.url)}get requestHeaders(){return this.entry.requestHeaders}get responseHeaders(){return this.entry.responseHeaders}get requestPayload(){return this.entry.requestPayload}get isGQL(){return this.entry.url.includes("graphql")}get gqlContent(){if(!this.isGQL)return null;let e=new URLSearchParams(new URL(decodeURIComponent(this.entry.url)).search).get("query");return(0,eU.A)(null==e?void 0:e.replace(/^query\s+[a-zA-Z]+/,""))}handleClose(){this.$emit("close")}setActiveTab(e){this.activeTab=e}showFullUrl(){this.fullUrl=!this.fullUrl}handleCopyUrl(){let{url:e}=this.entry;this.copyToClipboard(decodeURIComponent(e))}copyToClipboard(e){if(!e)return;let t=document.createElement("input");t.setAttribute("value",e),t.style.position="fixed",document.body.appendChild(t),(0,eE.lW)(t),document.body.removeChild(t)}constructor(...e){super(...e),this.activeTab="data",this.fullUrl=!1}}eQ([(0,c.kv)()],eZ.prototype,"entry",void 0),eZ=eQ([(0,c.XF)({UITabs:el.A,UITabsPane:ec.A,ApiTabDataView:eq,ToolbarDataView:eV,ApiTabSource:eJ}),(0,c.q5)(["close"])],eZ);let e0=(0,c.P9)(eZ),e1=(0,v.A)(e0,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"api-tab-preview"},[t("div",{staticClass:"header"},[t("button",{staticClass:"back-btn",on:{click:e.handleClose}},[t("UIIcon",{staticClass:"arrow-left",attrs:{name:"toolbar-arrow"}}),e._v("\n Back\n ")],1),e._v(" "),t("div",{staticClass:"url",class:{"full-url":e.fullUrl}},[t("span",[e._v(e._s(e.title))]),e._v(" "),t("div",{staticClass:"buttons"},[t("button",{staticClass:"btn",on:{click:e.showFullUrl}},[e.fullUrl?t("UIIcon",{attrs:{name:"toolbar-eye"}}):t("UIIcon",{attrs:{name:"toolbar-eye1"}}),e._v("\n FULL URL\n ")],1),e._v(" "),t("button",{staticClass:"btn",on:{click:e.handleCopyUrl}},[t("UIIcon",{attrs:{name:"copy"}}),e._v("\n COPY\n ")],1)])])]),e._v(" "),t("UITabs",{attrs:{displaySingleTab:!0},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[t("UITabsPane",{attrs:{label:"data",displayName:"Data"}},[t("ApiTabDataView",{attrs:{entry:e.entry}})],1),e._v(" "),t("UITabsPane",{attrs:{label:"request",displayName:"Request"}},[t("ul",{staticClass:"toolbar-list"},e._l(e.requestHeaders,function(s){return t("li",{key:s.name,staticClass:"toolbar-list-item"},[t("span",{staticClass:"title"},[e._v(e._s(s.name))]),e._v(e._s(s.value)+"\n ")])}),0)]),e._v(" "),t("UITabsPane",{attrs:{label:"response",displayName:"Response"}},[t("ul",{staticClass:"toolbar-list"},e._l(e.responseHeaders,function(s){return t("li",{key:s.name,staticClass:"toolbar-list-item"},[t("span",{staticClass:"title"},[e._v(e._s(s.name))]),e._v(e._s(s.value)+"\n ")])}),0)]),e._v(" "),e.requestPayload?t("UITabsPane",{attrs:{label:"payload",displayName:"Payload"}},[t("ToolbarDataView",{attrs:{value:e.requestPayload}})],1):e._e(),e._v(" "),e.gqlContent?t("UITabsPane",{attrs:{label:"gql",displayName:"GQL Query"}},[t("pre",{staticClass:"gql"},[e._v(e._s(e.gqlContent))])]):e._e(),e._v(" "),t("UITabsPane",{attrs:{label:"source",displayName:"Source"}},[t("ApiTabSource",{attrs:{entry:e.entry}})],1)],1)],1)},[],!1,null,"1770159f",null).exports;var e3=s(1129);function e2(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class e9 extends c.$G{isSelected(e){return this.selectedItems.includes(e)}handleSelect(e){this.isSelected(e)?this.selectedItems=this.selectedItems.filter(t=>t!==e):this.selectedItems.push(e),this.$emit("filter",this.selectedItems)}handleToggle(){this.isOpen=!this.isOpen}handleClose(){this.isOpen=!1}clearSelection(){this.selectedItems=[],this.$emit("filter",[])}constructor(...e){super(...e),this.isOpen=!1,this.selectedItems=[]}}e2([(0,c.kv)()],e9.prototype,"choices",void 0),e9=e2([(0,T.A)()],e9);let e5=(0,c.P9)(e9),e7=(0,v.A)(e5,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.handleClose,expression:"handleClose"}
5],staticClass:"toolbar-filter-column",class:{"is-open":e.isOpen,"is-active":e.selectedItems.length}},[t("div",{staticClass:"header",on:{click:e.handleToggle}},[e._t("default"),e._v(" "),t("div",{staticClass:"arrow"},[t("UIIcon",{attrs:{name:"toolbar-arrow"}})],1)],2),e._v(" "),t("div",{staticClass:"dropdown"},[t("div",{staticClass:"list"},e._l(e.choices,function(s,r){return t("UICheckbox",{key:r,staticClass:"item",attrs:{value:e.isSelected(s)},on:{change:function(t){return e.handleSelect(s)}}},[e._v("\n "+e._s(s)+"\n ")])}),1),e._v(" "),t("div",{staticClass:"clear"},[t("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.clearSelection.apply(null,arguments)}}},[e._v("\n Clear selection\n "),e.selectedItems.length?[e._v("\n ("+e._s(e.selectedItems.length)+")\n ")]:e._e()],2)])])])},[],!1,null,"4d8f7b6c",null).exports;function e8(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class e4 extends c.$G{get currentDirection(){return this.selectedSort&&this.selectedSort.startsWith("-")?"DESC":"ASC"}get isSelected(){let e=this.selectedSort.startsWith("-")?this.selectedSort.slice(1):this.selectedSort;return this.sort===e}get isASCSelected(){return this.isSelected&&"ASC"===this.currentDirection}get isDESCSelected(){return this.isSelected&&"DESC"===this.currentDirection}handleClick(){let e=this.isSelected&&"ASC"===this.currentDirection?`-${this.sort}`:this.sort;this.$emit("sort",e)}}e8([(0,c.kv)({required:!0,type:String})],e4.prototype,"sort",void 0),e8([(0,c.kv)({required:!0,type:String})],e4.prototype,"selectedSort",void 0),e4=e8([(0,T.A)()],e4);let e6=(0,c.P9)(e4),te=(0,v.A)(e6,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"toolbar-sortable-column",on:{click:this.handleClick}},[this._t("default"),this._v(" "),e("div",{staticClass:"icons"}
5,[e("UIIcon",{staticClass:"asc",class:{"is-selected":this.isASCSelected},attrs:{name:"toolbar-sort"}}),this._v(" "),e("UIIcon",{staticClass:"desc",class:{"is-selected":this.isDESCSelected},attrs:{name:"toolbar-sort"}})],1)],2)},[],!1,null,"86897e84",null).exports;function tt(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class ts extends c.$G{handleInput(e){if(!e.target)return;let t=e.target.value;this.$emit("input",t)}}tt([(0,c.kv)({type:String})],ts.prototype,"value",void 0),tt([(0,c.kv)({type:String})],ts.prototype,"text",void 0),ts=tt([(0,T.A)()],ts);let tr=(0,c.P9)(ts),ti=(0,v.A)(tr,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"toolbar-search"},[e("UIIcon",{attrs:{name:"toolbar-search"}}),this._v(" "),e("input",{attrs:{type:"text",placeholder:this.text},domProps:{value:this.value},on:{input:this.handleInput}})],1)},[],!1,null,"e9ab008a",null).exports;var ta=s(5225),tn=s(45656);function to(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class tl extends c.$G{get entries(){let e=[...this.gToolbarApiMonitorService.state.entries];return e=this.filterQuery(e),e=this.filterVarnish(e),e=this.filterCode(e),e=this.filterOrigin(e),e=this.filterMethod(e),this.sort(e,this.params.sort),e}get entryPreview(){return this.params.preview||this.gToolbarApiMonitorService.state.selectedEntry}get varnishCodes(){return["Hit","Miss"]}get methodCodes(){return(0,e3.s)(this.gToolbarApiMonitorService.state.entries.map(e=>e.method.toUpperCase()))}get originCodes(){return[eR.kr.SERVER,eR.kr.FRONT]}get statusCodes(){return(0,e3.s)(this.gToolbarApiMonitorService.state.entries.map(e=>String(e.statusCode)))}filterQuery(e){return this.params.query?e.filter(e=>e.url.includes(this.params.query)):e}filterVarnish(e){if(!this.params.filters.varnish.length)return e;let t=this.params.filters.varnish.map(e=>"Hit"===e);return e.filter(e=>t.includes(e.isCacheHit))}filterMethod(e){if(!this.params.filters.method.length)return e;let t=this.params.filters.method.map(e=>e.toLowerCase());return e.filter(e=>t.includes(e.method.toLowerCase()))}filterCode(e){if(!this.params.filters.code.length)return e;let t=this.params.filters.code.map(e=>Number(e));return e.filter(e=>t.includes(e.statusCode))}filterOrigin(e){if(!this.params.filters.origin.length)return e;let t=this.params.filters.origin.map(e=>e.toLowerCase());return e.filter(e=>t.includes(e.origin.toLowerCase()))}handleFilter(e,t){this.params.filters[e]&&(this.params.filters[e]=t)}handleEntryPreviewClose(){this.params.preview=null,this.gToolbarApiMonitorService.state.selectedEntry&&(this.gToolbarApiMonitorService.setSelectedEntry(null),this.gToolbarService.openTab(tn.P.Performance))}handleEntryPreview(e){this.params.preview=e}makeApiRequest(e){this.gToolbarApiMonitorService.makeApiRequest(e)}handleSort(e){this.params.sort=e}sort(e,t){switch(t){case"time":e.sort((e,t)=>e.time-t.time);break;case"-time":e.sort((e,t)=>t.time-e.time);break;case"size":e.sort((e,t)=>e.size-t.size);break;case"-size":e.sort((e,t)=>t.size-e.size)}}handleEnablePreview(){this.gCookieStorage.set(eR.MX,String(!0),1
5),window.location.reload()}handleDisablePreview(){this.gCookieStorage.set(eR.MX,String(!1),-1),window.location.reload()}$mounted(){this.enablePreview=!!this.gCookieStorage.get(eR.MX)}constructor(...e){super(...e),this.params={filters:{varnish:[],method:[],code:[],origin:[]},sort:"",query:"",entries:[],preview:null},this.enablePreview=!1}}to([(0,u.y_)(eR.Ay)],tl.prototype,"gToolbarApiMonitorService",void 0),to([(0,u.y_)(d.hE)],tl.prototype,"gToolbarService",void 0),to([(0,u.y_)(ta.A)],tl.prototype,"gCookieStorage",void 0),tl=to([(0,c.XF)({ToolbarFilterColumn:e7,ToolbarSortableColumn:te,ToolbarSearch:ti,ApiTabEntry:eF,ApiTabPreview:e1})],tl);let tc=(0,c.P9)(tl),tu=(0,v.A)(tc,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"api-tab"},[e.entryPreview?t("ApiTabPreview",{attrs:{entry:e.entryPreview},on:{close:e.handleEntryPreviewClose}}):t("div",{staticClass:"toolbar-table"},[t("div",{staticClass:"toolbar-table-filter"},[t("ToolbarSearch",{attrs:{text:"Filter request URL"},model:{value:e.params.query,callback:function(t){e.$set(e.params,"query",t)},expression:"params.query"}}),e._v(" "),e.enablePreview?t("button",{staticClass:"button",attrs:{title:"Disable preview of requests larger than 500kB"},on:{click:e.handleDisablePreview}},[e._v("\n Disable preview\n ")]):t("button",{staticClass:"button",attrs:{title:"Enable preview of requests larger than 500kB"},on:{click:e.handleEnablePreview}},[e._v("\n Enable preview\n ")])],1),e._v(" "),t("div",{staticClass:"toolbar-table-header"},[t("div",{staticClass:"toolbar-table-row"},[t("div",{staticClass:"toolbar-table-column"}),e._v(" "),t("ToolbarFilterColumn",{staticClass:"toolbar-table-column",attrs:{choices:e.varnishCodes},on:{filter:t=>e.handleFilter("varnish",t)}},[e._v("\n Varnish\n ")]),e._v(" "),t("ToolbarFilterColumn",{staticClass:"toolbar-table-column",attrs:{choices:e.methodCodes},on:{filter:t=>e.handleFilter("method",t)}},[e._v("\n Method\n ")]),e._v(" "),t("ToolbarFilterColumn",{staticClass:"toolbar-table-column",attrs:{choices:e.statusCodes},on:{filter:t=>e.handleFilter("code",t)}},[e._v("\n HTTP code\n ")]),e._v(" "),t("ToolbarSortableColumn",{staticClass:"toolbar-table-column",attrs:{sort:"time",selectedSort:e.params.sort},on:{sort:e.handleSort}},[e._v("\n Time\n ")]),e._v(" "),t("ToolbarSortableColumn",{staticClass:"toolbar-table-column",attrs:{sort:"size",selectedSort:e.params.sort},on:{sort:e.handleSort}},[e._v("\n Size\n ")]),e._v(" "),t("ToolbarFilterColumn",{staticClass:"toolbar-table-column",attrs:{choices:e.originCodes},on:{filter:t=>e.handleFilter("origin",t)}},[e._v("\n From\n ")]),e._v(" "),t("div",{staticClass:"toolbar-table-column url"},[e._v("URL")]),e._v(" "),t("div",{staticClass:"toolbar-table-column actions"})],1)]),e._v(" "),t("div",{staticClass:"toolbar-table-body"},e._l(e.entries,function(s){return t("ApiTabEntry",{key:s.id,attrs:{entry:s},on:{preview:e.handleEntryPreview,makeApiRequest:e.makeApiRequest}})}),1)])],1)},[],!1,null,"e6e7cc7c",null).exports;class td extends c.$G{get skipVarnish(){return this.gToolbarRequestService.settings.skipVarnish}set skipVarnish(e){this.gToolbarRequestService.setSettings({skipVarnish:e})}toggleSettings(){this.settingsMenuIsOpen=!this.settingsMenuIsOpen}handleClose(){this.settingsMenuIsOpen=!1}constructor(...e){super(...e),this.settingsMenuIsOpen=!1}}!function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);a>3&&n&&Object.defineProperty(t,s,n)}([(0,G.A)(d.et)],td.prototype,"gToolbarRequestService",void 0);let th=(0,c.P9)(td),tp=(0,v.A)(th,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.handleClose,expression:"handleClose"}
5],staticClass:"settings-wrapper",class:{"is-open":e.settingsMenuIsOpen}},[t("button",{staticClass:"button button-settings",attrs:{title:"Open settings",type:"button"},on:{click:function(t){return t.stopPropagation(),e.toggleSettings.apply(null,arguments)}}},[e._v("\n â\n ")]),e._v(" "),e.settingsMenuIsOpen?t("div",{staticClass:"dropdown"},[t("div",{staticClass:"list"},[t("div",{staticClass:"item"},[t("UICheckbox",{model:{value:e.skipVarnish,callback:function(t){e.skipVarnish=t},expression:"skipVarnish"}},[e._v("\n Skip varnish\n ")])],1)])]):e._e()])},[],!1,null,"3b4bad45",null).exports;var tv=s(4866);let tf=[{value:tv.ym.GET,label:"GET"},{value:tv.ym.POST,label:"POST"},{value:tv.ym.PUT,label:"PUT"},{value:tv.ym.PATCH,label:"PATCH"},{value:tv.ym.DELETE,label:"DELETE"}],tg=[{value:tv.Q5.SSR,label:"SSR"},{value:tv.Q5.FRONT,label:"FRONT"}];function t_(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class tb extends c.$G{get selectHttpMethod(){return tf}get selectRequestLevel(){return tg}get isBusy(){return this.gToolbarRequestService.isBusy}get requestForm(){return this.gToolbarRequestService.requestForm}get requestLevel(){return this.requestForm.level}set requestLevel(e){this.gToolbarRequestService.setRequestForm({level:e})}get httpMethod(){return this.requestForm.httpMethod}set httpMethod(e){this.gToolbarRequestService.setRequestForm({httpMethod:e})}get uri(){return this.requestForm.uri}set uri(e){this.gToolbarRequestService.setRequestForm({uri:e})}handleRequest(){this.gToolbarRequestService.makeRequest()}}t_([(0,u.y_)(d.et)],tb.prototype,"gToolbarRequestService",void 0),tb=t_([(0,c.XF)({ToolbarLoader:()=>s.e(9878).then(s.bind(s,47158)),PrepareRequestSettings:tp})],tb);let ty=(0,c.P9)(tb),tm=(0,v.A)(ty,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("form",{staticClass:"prepare-request-section",on:{submit:function(t){return t.preventDefault(),e.handleRequest.apply(null,arguments)}}},[t("div",{staticClass:"select-group"},[t("div",{staticClass:"select-container"},[t("select",{directives:[{name:"model",rawName:"v-model",value:e.requestLevel,expression:"requestLevel"}],staticClass:"select select-level",attrs:{id:"reqLevel",disabled:e.isBusy,name:"request level"},on:{change:function(t){var s=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.requestLevel=t.target.multiple?s:s[0]}}},e._l(e.selectRequestLevel,function(s,r){return t("option",{key:r+"level",domProps:{value:s.value}},[e._v("\n "+e._s(s.label)+"\n ")])}),0)]),e._v(" "),t("div",{staticClass:"select-container"},[t("select",{directives:[{name:"model",rawName:"v-model",value:e.httpMethod,expression:"httpMethod"}],staticClass:"select select-method",attrs:{id:"httpMethod",disabled:e.isBusy,name:"request method"},on:{change:function(t){var s=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.httpMethod=t.target.multiple?s:s[0]}}},e._l(e.selectHttpMethod,function(s,r){return t("option",{key:r+"method",domProps:{value:s.value}},[e._v("\n "+e._s(s.label)+"\n ")])}),0)])]),e._v(" "),t("div",{staticClass:"input"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.uri,expression:"uri"}],attrs:{type:"text",placeholder:"Enter URI, for example: carts/list",disabled:e.isBusy},domProps:{value:e.uri},on:{input:function(t){t.target.composing||(e.uri=t.target.value)}}})]),e._v(" "),t("div",{staticClass:"buttons-group"},[t("button",{staticClass:"button button-request",attrs:{title:"Make request",disabled:e.isBusy,type:"submit"}},[e.isBusy?t("ToolbarLoader"):[e._v("Request")]],2),e._v(" "),t("PrepareRequestSettings")],1)])},[],!1,null,"16e32e88",null).exports;class tC extends c.$G{get isBusy(){return this.gToolbarRequestService.isBusy}
5get requestForm(){return this.gToolbarRequestService.requestForm}get headers(){return this.requestForm.headers}addHeader(){if(this.validateToAddInputs()){let e={label:this.headerToAdd.label,value:this.headerToAdd.value};this.gToolbarRequestService.setRequestForm({headers:[...this.headers,e]}),this.resetHeaderToAdd()}}removeHeader(e){this.headers.splice(e,1)}validateToAddInputs(){return this.headerToAdd.label.length>0&&this.headerToAdd.value.length>0}resetHeaderToAdd(){this.headerToAdd={label:"",value:""}}constructor(...e){super(...e),this.headerToAdd={label:"",value:""}}}!function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);a>3&&n&&Object.defineProperty(t,s,n)}([(0,u.y_)(d.et)],tC.prototype,"gToolbarRequestService",void 0);let tT=(0,c.P9)(tC),tS=(0,v.A)(tT,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("form",{staticClass:"request-headers-tab"},[e._l(e.headers,function(s,r){return t("div",{key:`header-${r}`,staticClass:"form-row added"},[t("div",{staticClass:"header-data"},[t("strong",{staticClass:"truncate-label"},[e._v(e._s(s.label))]),e._v(":"),t("span",{staticClass:"truncate-value"},[e._v(e._s(s.value))])]),e._v(" "),t("button",{staticClass:"button",attrs:{type:"button"},on:{click:function(t){return e.removeHeader(r)}}},[t("UIIcon",{attrs:{name:"minus"}})],1)])}),e._v(" "),t("div",{staticClass:"form-row to-add"},[t("div",{staticClass:"input-group"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.headerToAdd.label,expression:"headerToAdd.label"}],attrs:{type:"text",placehoder:"Key",disabled:e.isBusy},domProps:{value:e.headerToAdd.label},on:{input:function(t){t.target.composing||e.$set(e.headerToAdd,"label",t.target.value)}}}),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.headerToAdd.value,expression:"headerToAdd.value"}],attrs:{type:"text",placehoder:"Value",disabled:e.isBusy},domProps:{value:e.headerToAdd.value},on:{input:function(t){t.target.composing||e.$set(e.headerToAdd,"value",t.target.value)}}})]),e._v(" "),t("button",{staticClass:"button",attrs:{type:"button",disabled:e.isBusy},on:{click:e.addHeader}},[t("UIIcon",{attrs:{name:"plus"}})],1)])],2)},[],!1,null,"74de0b74",null).exports;function tP(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class tk extends c.$G{get isGetHttpMethod(){return this.requestForm.httpMethod===tv.ym.GET}get isBusy(){return this.gToolbarRequestService.isBusy}get isGqlError(){return this.isGraphql&&this.gToolbarRequestGraphqlService.state.queryError}get isHttpError(){return!!this.gToolbarReqHttpService.state.payloadErrorMessage}get isError(){return this.isGqlError||this.isHttpError}get errorGglMessage(){return this.gToolbarRequestGraphqlService.state.queryErrorText}get errorHttpMessage(){return this.gToolbarReqHttpService.state.payloadErrorMessage}get errorMessage(){return this.isGqlError?this.errorGglMessage:this.errorHttpMessage}get isGraphql(){return this.gToolbarRequestService.isGraphqlUri}get requestForm(){return this.gToolbarRequestService.requestForm}get payload(){return this.requestForm.payload}set payload(e){this.payloadCache=e,this.gToolbarRequestService.setRequestForm({payload:e})}get isDisabled(){return this.isBusy||!this.isGraphql&&this.isGetHttpMethod}get placeholder(){return this.isDisabled?"GET method doesn't allow to send payload":"Write payload here ex.: { propName: 'some value' }"}onIsGetHttpMethodChange(){if(!this.isGraphql){if(this.isGetHttpMethod)return void this.gToolbarRequestService.setRequestForm({payload:""});this.gToolbarRequestService.setRequestForm({payload:this.payloadCache}),this.payloadCache=""}}constructor(...e){super(...e),this.payloadCache=""}}tP([(0,u.y_)(d.et)],tk.prototype,"gToolbarRequestService",void 0),tP([(0,u.y_)(d.LA)
5],tk.prototype,"gToolbarRequestGraphqlService",void 0),tP([(0,u.y_)(d.hM)],tk.prototype,"gToolbarReqHttpService",void 0),tP([(0,c.ox)("isGetHttpMethod")],tk.prototype,"onIsGetHttpMethodChange",null);let tR=(0,c.P9)(tk),tw=(0,v.A)(tR,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"request-payload-tab"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.payload,expression:"payload"}],staticClass:"payload-area",class:{error:e.isError},attrs:{disabled:e.isDisabled,placeholder:e.placeholder},domProps:{value:e.payload},on:{input:function(t){t.target.composing||(e.payload=t.target.value)}}}),e._v(" "),e.isError?t("span",{staticClass:"error-message"},[e._v(e._s(e.errorMessage))]):e._e()])},[],!1,null,"a12614fe",null).exports;function tA(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class tE extends c.$G{get tabType(){return tv.dS}get payloadTabName(){return this.gToolbarRequestService.isGraphqlUri?"GQL Query":"Payload"}constructor(...e){super(...e),this.requestOptionsTab=tv.dS.PAYLOAD}}tA([(0,u.y_)(d.et)],tE.prototype,"gToolbarRequestService",void 0),tE=tA([(0,c.XF)({UITabs:el.A,UITabsPane:ec.A,RequestHeadersTab:tS,RequestPayloadTab:tw})],tE);let tO=(0,c.P9)(tE),tD=(0,v.A)(tO,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"requests-options-tabs"},[t("UITabs",{attrs:{displaySingleTab:!0},model:{value:e.requestOptionsTab,callback:function(t){e.requestOptionsTab=t},expression:"requestOptionsTab"}},[t("UITabsPane",{attrs:{label:e.tabType.PAYLOAD,displayName:e.payloadTabName}},[t("RequestPayloadTab")],1),e._v(" "),t("UITabsPane",{attrs:{label:e.tabType.HEADERS,displayName:"Headers"}},[t("RequestHeadersTab")],1)],1)],1)},[],!1,null,"646fcb93",null).exports;class tx extends c.$G{get responseForm(){return this.gToolbarRequestService.responseForm}get responseHeaders(){return this.responseForm.headers}}!function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);a>3&&n&&Object.defineProperty(t,s,n)}([(0,u.y_)(d.et)],tx.prototype,"gToolbarRequestService",void 0);let tI=(0,c.P9)(tx),tN=(0,v.A)(tI,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"response-headers-tab"},[t("ul",{staticClass:"toolbar-list"},e._l(e.responseHeaders,function(s,r){return t("li",{key:s.name+r,staticClass:"toolbar-list-item",class:{evenbackground:r%2==0}},[t("span",{staticClass:"title"},[e._v(e._s(s.name))]),e._v(e._s(s.value)+"\n ")])}),0)])},[],!1,null,"1acd0df2",null).exports;function tj(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class tL extends c.$G{get responseForm(){return this.gToolbarRequestService.responseForm}get preview(){return this.responseForm.preview}}tj([(0,G.A)(d.et)],tL.prototype,"gToolbarRequestService",void 0),tL=tj([(0,c.XF)({ToolbarDataView:eV})],tL);let tF=(0,c.P9)(tL),tU=(0,v.A)(tF,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"response-preview-tab"},[e("ToolbarDataView",{attrs:{watchForChanges:"",value:this.preview}})],1)},[],!1,null,"f7c995a8",null).exports;class tM extends c.$G{get responseForm(){return this.gToolbarRequestService.responseForm}get status(){var e,t;return null!=(e=null==(t=this.responseForm.status)?void 0:t.toString())?e:this.noValue}get time(){var e;let t=Math.round(null!=(e=this.responseForm.time)?e:0);return 0===t?this.noValue:`${null==t?void 0:t.toString()}ms`}get cache(){var e,t;return null!=(e=null==(t=this.responseForm.cacheHit)?void 0:t.toString())?e:this.noValue}get statusClass(){return this.responseForm.status?this.responseForm.status>=200&&this.responseForm.status<300?"success":"error":""}get timeClass(){return this.responseForm.time?this.responseForm.time&&this.responseForm.time>1e3?"error":"success":""}get cacheClass(){switch(this.responseForm.cacheHit){case tv.lJ.HIT:return"success";case tv.lJ.MISS:return"warning";default:return""}}constructor(...e){super(...e),this.noValue="NONE"}}!function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);a>3&&n&&Object.defineProperty(t,s,n)}([(0,u.y_)(d.et)],tM.prototype,"gToolbarRequestService",void 0);let t$=(0,c.P9)(tM),tB=(0,v.A)(t$,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"response-summary"},[e("div",{staticClass:"response-item",class:this.statusClass},[this._v("\n STATUS "),e("strong",{staticClass:"status"},[this._v("\xa0"+this._s(this.status))])]),this._v(" "),e("div",{staticClass:"response-item",class:this.timeClass},[this._v("\n TIME "),e("strong",{staticClass:"time"},[this._v("\xa0"+this._s(this.time))])]),this._v(" "),e("div",{staticClass:"response-item",class:this.cacheClass},[this._v("\n CACHE "),e("strong",{staticClass:"cache"},[this._v("\xa0"+this._s(this.cache))])])])},[],!1,null,"661b13a0",null).exports;class tV extends c.$G{get tabType(){return tv.$F}constructor(...e){super(...e),this.responseOptionsTab=tv.$F.RESPONSE}}tV=function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}([(0,c.XF)({UITabs:el.A,UITabsPane:ec.A,ResponseHeadersTab:tN,ResponsePreviewTab:tU,ResponseSummary:tB})],tV);let tz=(0,c.P9)(tV),tK=(0,v.A)(tz,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"response-tabs"}
5,[t("UITabs",{attrs:{displaySingleTab:!0},model:{value:e.responseOptionsTab,callback:function(t){e.responseOptionsTab=t},expression:"responseOptionsTab"}},[t("UITabsPane",{attrs:{label:e.tabType.RESPONSE,displayName:"Response"}},[t("ResponsePreviewTab")],1),e._v(" "),t("UITabsPane",{attrs:{label:e.tabType.HEADERS,displayName:"Headers"}},[t("ResponseHeadersTab")],1),e._v(" "),t("UITabsPane",{attrs:{label:e.tabType.TIMINGS,displayName:"Timings"}},[e._v("\n Timings\n ")])],1),e._v(" "),t("ResponseSummary")],1)},[],!1,null,"7228195b",null).exports;class tG extends c.$G{}tG=function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}([(0,c.XF)({RequestOptionsTabs:tD,ResponseTabs:tK})],tG);let tq=(0,c.P9)(tG),tH=(0,v.A)(tq,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"request-section"},[e("RequestOptionsTabs"),this._v(" "),e("ResponseTabs")],1)},[],!1,null,"cc8772d0",null).exports;class tX extends c.$G{}tX=function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}([(0,c.XF)({PrepareRequestSection:tm,RequestSection:tH})],tX);let tW=(0,c.P9)(tX),tY=(0,v.A)(tW,function(){var e=this._self._c;return this._self._setupProxy,e("form",{staticClass:"request-tab"},[e("PrepareRequestSection"),this._v(" "),e("RequestSection")],1)},[],!1,null,"fba11aa0",null).exports;var tJ=s(43037),tQ=s(23260);function tZ(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class t0 extends c.$G{}tZ([(0,c.kv)()],t0.prototype,"eventData",void 0),t0=tZ([(0,T.A)()],t0);let t1=(0,c.P9)(t0),t3=(0,v.A)(t1,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"events-tab-entry-preview"},[e._m(0),e._v(" "),t("div",{staticClass:"toolbar-table-body"},e._l(e.eventData.listenersDetails,function(s){return t("div",{key:s.id,staticClass:"listner-details toolbar-table-row"},[t("div",{staticClass:"toolbar-table-column"},[e._v(e._s(s.className))]),e._v(" "),t("div",{staticClass:"toolbar-table-column"},[e._v(e._s(s.methodName))]),e._v(" "),t("div",{staticClass:"toolbar-table-column"},[e._v(e._s(s.duration.toFixed(2))+" ms")])])}),0)])},[function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"toolbar-table-header"},[e("div",{staticClass:"toolbar-table-row"},[e("div",{staticClass:"toolbar-table-column"},[this._v("\n Class\n ")]),this._v(" "),e("div",{staticClass:"toolbar-table-column"},[this._v("\n Method\n ")]),this._v(" "),e("div",{staticClass:"toolbar-table-column"},[this._v("\n Time\n ")])])])}],!1,null,"6c9d00e7",null).exports;function t2(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class t9 extends c.$G{showPreviewEvent(){this.showPreview=!this.showPreview}constructor(...e){super(...e),this.showPreview=!1}}t2([(0,c.kv)()],t9.prototype,"eventData",void 0),t9=t2([(0,T.A)(),(0,c.XF)({EventsTabEntryPreview:t3})],t9);let t5=(0,c.P9)(t9),t7=(0,v.A)(t5,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"toolbar-table-row",class:{show:e.showPreview}},[t("div",{staticClass:"events-tab-entry",on:{click:function(t){return t.stopPropagation(),e.showPreviewEvent.apply(null,arguments)}}},[t("div",{staticClass:"toolbar-table-column"},[e._v(e._s(e.eventData.eventName))]),e._v(" "),t("div",{staticClass:"toolbar-table-column"},[e._v(e._s(e.eventData.type))]),e._v(" "),t("div",{staticClass:"toolbar-table-column"},[e._v(e._s(e.eventData.duration.toFixed(2))+" ms")]),e._v(" "),t("div",{staticClass:"toolbar-table-column"},[e._v(e._s(e.eventData.listeners))])]),e._v(" "),e.showPreview?t("EventsTabEntryPreview",{attrs:{eventData:e.eventData}}
5):e._e()],1)},[],!1,null,"b0fb1c22",null).exports;var t8=s(56365),t4=s(13738);function t6(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class se extends c.$G{get eventDiagnosticEntryOrigin(){return tQ.A}get events(){return this.gToolbarEventsService.events}get filterByType(){return this.gToolbarEventsService.state.filterBy}set filterByType(e){this.gToolbarEventsService.state.filterBy=e}isChecked(e){return this.gToolbarEventsService.state.filterBy===e}}t6([(0,u.y_)(tJ.A)],se.prototype,"gToolbarEventsService",void 0),se=t6([(0,c.XF)({EventsTabEntry:t7,ToolbarFilterColumn:e7,UIRadio:t8.A,UIRadioGroup:t4.A})],se);let st=(0,c.P9)(se),ss=(0,v.A)(st,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"events-tab toolbar-table"},[t("div",{staticClass:"toolbar-table-filter"},[t("div",{staticClass:"toolbar-header"},[e._v("Events")]),e._v(" "),t("div",{staticClass:"filters"},[t("UIRadioGroup",{attrs:{variant:"horizontal"},model:{value:e.filterByType,callback:function(t){e.filterByType=t},expression:"filterByType"}},[t("UIRadio",{staticClass:"item",attrs:{name:"sort",value:e.eventDiagnosticEntryOrigin.SSR,checked:e.isChecked(e.eventDiagnosticEntryOrigin.SSR)}},[e._v("\n "+e._s(e.eventDiagnosticEntryOrigin.SSR)+"\n ")]),e._v(" "),t("UIRadio",{staticClass:"item",attrs:{value:e.eventDiagnosticEntryOrigin.FRONT,checked:e.isChecked(e.eventDiagnosticEntryOrigin.FRONT)}},[e._v("\n "+e._s(e.eventDiagnosticEntryOrigin.FRONT)+"\n ")]),e._v(" "),t("UIRadio",{staticClass:"item",attrs:{value:e.eventDiagnosticEntryOrigin.ALL,checked:e.isChecked(e.eventDiagnosticEntryOrigin.ALL)}},[e._v("\n "+e._s(e.eventDiagnosticEntryOrigin.ALL)+"\n ")])],1)],1)]),e._v(" "),e._m(0),e._v(" "),t("div",{staticClass:"toolbar-table-body"},e._l(e.events,function(e,s){return t("EventsTabEntry",{key:s,attrs:{eventData:e}})}),1)])},[function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"toolbar-table-header"},[e("div",{staticClass:"toolbar-table-row"},[e("div",{staticClass:"toolbar-table-column"},[this._v("\n Name\n ")]),this._v(" "),e("div",{staticClass:"toolbar-table-column"},[this._v("\n Place\n ")]),this._v(" "),e("div",{staticClass:"toolbar-table-column"},[this._v("\n Time\n ")]),this._v(" "),e("div",{staticClass:"toolbar-table-column"},[this._v("\n Listeners\n ")])])])}],!1,null,"5103d0a2",null).exports;function sr(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class si extends c.$G{handleToggle(){this.isLong&&(this.isOpen=!this.isOpen)}get checkIsLongLog(){let e=!1,t=this.log.message;return Array.isArray(t)&&(e=t.some(e=>"object"==typeof e&&null!==e&&"stack"in e||"string"==typeof e&&e.includes("\n"))),this.isLong=e,e}get printLog(){let e="",t=Array.isArray(this.log.message)?this.log.message.find(e=>"object"==typeof e&&"stack"in e):null;return t?e+=t.stack:this.log.message.forEach(t=>e+=`${String(t)} `),this.isOpen?e.replace(/\n/g,"<br>"):e.split("\n")[0]+(this.isLong?"...":"")}get name(){switch(this.log.level){case"info":return"Information";case"debug":return"Log";case"warn":return"Warning";case"error":return"Error";default:return"Unknown"}}constructor(...e){super(...e),this.isLong=!1,this.isOpen=!1}}sr([(0,c.kv)()],si.prototype,"log",void 0),si=sr([(0,c.XF)({ToolbarLoader:eu.default})],si);let sa=(0,c.P9)(si),sn=(0,v.A)(sa,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"log-item toolbar-table-row"},[e("div",{staticClass:"toolbar-table-column",class:`level-${this.log.level}`},[e("div",{on:{click:this.handleToggle}},[this._t("default"),this._v(" "),e("div",{staticClass:"arrow",class:{"arrow-visible":!this.checkIsLongLog,"is-open-arrow":this.isOpen}},[e("UIIcon",{attrs:{name:"toolbar-arrow"}})],1)],2),this._v(" "),e("div",{staticClass:"icon-wrapper"},["info"===this.log.level?e("UIIcon",{attrs:{name:"toolbar-info"}}):this._e(),this._v(" "),"debug"===this.log.level?e("UIIcon",{attrs:{name:"toolbar-chat"}}):this._e(),this._v(" "),"warn"===this.log.level||"error"===this.log.level?e("UIIcon",{attrs:{name:"toolbar-alert"}}):this._e(),this._v("\n "+this._s(this.name)+"\n ")],1)]),this._v(" "),e("div",{staticClass:"toolbar-table-column debug"},[this._v(this._s(this.log.additionalData?.origin))]),this._v(" "),e("div",{staticClass:"toolbar-table-column"},[this._v(this._s(this.log.tag))]),this._v(" "),e("div",{staticClass:"toolbar-table-column info"},[e("div",{staticClass:"log-info",domProps:{innerHTML:this._s(this.printLog)}})])])},[],!1,null,"ab023fee",null).exports;var so=s(23450);function sl(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class sc extends c.$G{get logs(){let{logs:e}=this.gLoggerStorage.state;return this.filters.type.length&&(e=e.filter(e=>this.filters.type.includes(e.level))),this.filters.origin.length&&(e=e.filter(e=>{var t;return this.filters.origin.includes(null==(t=e.additionalData)?void 0:t.origin)})),e}get logTypes(){return["debug","info","warn","error"]}get origins(){return["server","front"]}handleFilterType(e){this.filters.type=e}handleFilterOrigin(e){this.filters.origin=e}constructor(...e){super(...e),this.filters={type:[],origin:[]}}}sl([(0,u.y_)(so.y)],sc.prototype,"gLoggerStorage",void 0),sc=sl([(0,c.XF)({LogTabItem:sn,ToolbarFilterColumn:e7})],sc);let su=(0,c.P9)(sc),sd=(0,v.A)(su,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"log-tab"},[e("div",{staticClass:"toolbar-table"},[e("div",{staticClass:"toolbar-table-header"},[e("div",{staticClass:"toolbar-table-row"},[e("ToolbarFilterColumn",{staticClass:"toolbar-table-column status",attrs:{choices:this.logTypes},on:{filter:this.handleFilterType}},[this._v("\n Status\n ")]),this._v(" "),e("ToolbarFilterColumn",{staticClass:"toolbar-table-column from",attrs:{choices:this.origins},on:{filter:this.handleFilterOrigin}},[this._v("\n From\n ")]),this._v(" "),e("div",{staticClass:"toolbar-table-column from"},[this._v("Service")]),this._v(" "),e("div",{staticClass:"toolbar-table-column from"},[this._v("Info")])],1)]),this._v(" "),e("div",{staticClass:"toolbar-table-body"},this._l(this.logs,function(t,s){return e("LogTabItem",{key:s,staticClass:"toolbar-table-row",attrs:{log:t}})}),1)])])},[],!1,null,"64d97917",null).exports;var sh=s(14647),sp=s(64594);let sv={ADAFIR_API_REQUEST:"#4074bd",SPARK_REST_CLIENT:"#4047bd",DATA_STORAGE:"#37b057",EVENTS:"#82552e",FRONT_RENDER:"#30783d",SERVER_SIDE_RENDERER:"#a137a3",ROUTE_RESOLVE:"#019c99",GQL_OPERATIONS:"#613d87",CUSTOM:"#fb8500"};function sf(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class sg extends c.$G{get elementStyle(){return{width:this.width,left:this.left,background:this.backgroundColor}}get left(){return`${this.entry.timing.start*this.scale}px`}get width(){return`${this.entry.timing.duration*this.scale}px`}get backgroundColor(){return sv[this.entry.params.type]}get hoverTitle(){var e;let t=Math.ceil(this.entry.timing.duration),s=Math.ceil(this.entry.timing.start),r=Math.ceil(this.entry.timing.end),i=null!=(e=this.entry.params.description)?e:this.entry.params.title;return`${i} - ${t}ms (${s}ms ~ ${r}ms)`}handlePreview(){let{requestId:e}=this.entry.params,t=this.gToolbarApiMonitorService.state.entries.find(t=>
5t.id===e);t&&(this.gToolbarApiMonitorService.setSelectedEntry(t),this.gToolbarService.openTab(tn.P.Api))}}sf([(0,G.A)(eR.Ay)],sg.prototype,"gToolbarApiMonitorService",void 0),sf([(0,G.A)(d.hE)],sg.prototype,"gToolbarService",void 0),sf([(0,c.kv)()],sg.prototype,"entry",void 0),sf([(0,c.kv)({type:Number})],sg.prototype,"scale",void 0);let s_=(0,c.P9)(sg),sb=(0,v.A)(s_,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"performance-tab-graph-entry",style:this.elementStyle,attrs:{title:this.hoverTitle},on:{click:this.handlePreview}},[this._v("\n "+this._s(this.entry.params.title)+"\n")])},[],!1,null,"c521bb7c",null).exports;function sy(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class sm extends c.$G{get elementStyle(){return{width:this.width,left:this.left}}get realTime(){return 1e3*this.time}get left(){return`${this.realTime*this.scale}px`}get width(){return`${1e3*this.scale}px`}get formattedTime(){return`${this.time.toFixed(2)}s`}}sy([(0,c.kv)({type:Number})],sm.prototype,"time",void 0),sy([(0,c.kv)({type:Number})],sm.prototype,"scale",void 0),sm=sy([(0,T.A)()],sm);let sC=(0,c.P9)(sm),sT=(0,v.A)(sC,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"performance-tab-graph-timeline-entry",class:{"is-first":0===this.time},style:this.elementStyle},[e("div",{staticClass:"time"},[this._v("\n "+this._s(this.formattedTime)+"\n ")])])},[],!1,null,"00ce0aad",null).exports;function sS(e,t){if(0===e.length)return;let s=e[0],r=-1/0;for(let i=0;i<e.length;i++){let a=e[i],n=t(a,i,e);if(Number.isNaN(n))return a;n>r&&(r=n,s=a)}return s}function sP(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class sk extends c.$G{get filters(){return Object.keys(sv).map(e=>({key:e,color:sv[e]}))}get checkedFilters(){return this.value}set checkedFilters(e){this.$emit("input",e)}}sP([(0,c.kv)()],sk.prototype,"value",void 0),sk=sP([(0,T.A)()],sk);let sR=(0,c.P9)(sk),sw=(0,v.A)(sR,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"performance-tab-filters"},e._l(e.filters,function(s){return t("div",{key:s.key,staticClass:"filter"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.checkedFilters,expression:"checkedFilters"}],attrs:{id:`performance_filter_${s.key}`,type:"checkbox"},domProps:{value:s.key,checked:Array.isArray(e.checkedFilters)?e._i(e.checkedFilters,s.key)>-1:e.checkedFilters},on:{change:function(t){var r=e.checkedFilters,i=t.target,a=!!i.checked;if(Array.isArray(r)){var n=s.key,o=e._i(r,n);i.checked?o<0&&(e.checkedFilters=r.concat([n])):o>-1&&(e.checkedFilters=r.slice(0,o).concat(r.slice(o+1)))}else e.checkedFilters=a}}}),e._v(" "),t("label",{attrs:{for:`performance_filter_${s.key}`}},[e._v(e._s(s.key))])])}),0)},[],!1,null,"4e22ac97",null).exports;function sA(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class sE extends c.$G{color(e){return sv[e]}}sA([(0,c.kv)()],sE.prototype,"checkedFilters",void 0),sE=sA([(0,T.A)()],sE);let sO=(0,c.P9)(sE),sD=(0,v.A)(sO,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"performance-tab-legend"},e._l(e.checkedFilters,function(s){return t("div",{key:s.key,staticClass:"legend"},[t("span",{staticClass:"square",style:{"background-color":e.color(s)}}),e._v("\n "+e._s(s)+"\n ")])}),0)},[],!1,null,"30674b10",null).exports;function sx(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class sI extends c.$G{get highestTimeEntry(){var e;let t=sS(this.gToolbarPerformanceService.state.entries.filter(e=>e.isServer),e=>e.timing.end);
5return(null!=(e=null==t?void 0:t.timing.end)?e:5e3)/1e3}get entries(){return this.gToolbarPerformanceService.state.entries.filter(e=>e.timing.duration>5||this.showShortTasks).filter(e=>e.isServer&&"Full HTTP Request"!==e.params.title).filter(e=>this.checkedFilters.includes(e.params.type))}get timeEntries(){let e=Math.ceil(this.highestTimeEntry),t=[];for(let s=0;s<e;++s)t.push(s);return t}get rows(){let e=[];return this.entries.forEach(t=>{for(let s of e)if(!this.isClaimed(s,t.timing.start,t.timing.end))return void s.entries.push(t);e.push({entries:[t]})}),e}isClaimed(e,t,s){return e.entries.some(e=>e.timing.start-15>=s||e.timing.end+15>=t)}recalculateInitialScale(){if(!this.contentRef)return;let e=this.contentRef.getBoundingClientRect().width,t=1e3*this.highestTimeEntry+25;this.scale=e/t}handleToggleFilter(){this.showFilters=!this.showFilters}handleCloseFilter(){this.showFilters=!1}$mounted(){setTimeout(()=>{this.recalculateInitialScale()})}constructor(...e){super(...e),this.showFilters=!1,this.scale=.1,this.showShortTasks=!1,this.checkedFilters=[sp.b.ADAFIR_API_REQUEST,sp.b.SPARK_REST_CLIENT,sp.b.DATA_STORAGE,sp.b.SERVER_SIDE_RENDERER,sp.b.EVENTS,sp.b.FRONT_RENDER,sp.b.ROUTE_RESOLVE,sp.b.GQL_OPERATIONS]}}sx([(0,u.y_)(sh.A)],sI.prototype,"gToolbarPerformanceService",void 0),sx([(0,c.oS)()],sI.prototype,"contentRef",void 0),sI=sx([(0,c.XF)({PerformanceTabGraphEntry:sb,PerformanceTabGraphTimelineEntry:sT,PerformanceTabFilters:sw,PerformanceTabLegend:sD})],sI);let sN=(0,c.P9)(sI),sj=(0,v.A)(sN,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{ref:"contentRef",staticClass:"performance-tab-graph"},[t("div",{staticClass:"header"},[t("div",{staticClass:"toolbar-header"},[e._v("\n SSR Performance timelne\n ")]),e._v(" "),t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.handleCloseFilter,expression:"handleCloseFilter"}],staticClass:"filters-wrapper"},[t("div",{staticClass:"arrow",on:{click:e.handleToggleFilter}},[t("UIIcon",{class:{"is-open":e.showFilters},attrs:{name:"toolbar-arrow"}})],1),e._v(" "),e.showFilters?t("PerformanceTabFilters",{staticClass:"filters",model:{value:e.checkedFilters,callback:function(t){e.checkedFilters=t},expression:"checkedFilters"}}):e._e(),e._v(" "),t("div",{staticClass:"filter"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.showShortTasks,expression:"showShortTasks"}],attrs:{id:"performance_tab_graph_hide_short",type:"checkbox"},domProps:{checked:Array.isArray(e.showShortTasks)?e._i(e.showShortTasks,null)>-1:e.showShortTasks},on:{change:function(t){var s=e.showShortTasks,r=t.target,i=!!r.checked;if(Array.isArray(s)){var a=e._i(s,null);r.checked?a<0&&(e.showShortTasks=s.concat([null])):a>-1&&(e.showShortTasks=s.slice(0,a).concat(s.slice(a+1)))}else e.showShortTasks=i}}}),e._v(" "),t("label",{attrs:{for:"performance_tab_graph_hide_short"}},[e._v("Show Tasks <5ms")])])],1)]),e._v(" "),t("div",{staticClass:"timeline-container"},[t("div",{staticClass:"timeline row"},e._l(e.timeEntries,function(s){return t("div",{key:s},[t("PerformanceTabGraphTimelineEntry",{attrs:{scale:e.scale,time:s}})],1)}),0),e._v(" "),e._l(e.rows,function(s,r){return t("div",{key:r,staticClass:"row is-content"},e._l(s.entries,function(s,r){return t("div",{key:r,staticClass:"entry"},[t("PerformanceTabGraphEntry",{attrs:{scale:e.scale,entry:s}})],1)}),0)}),e._v(" "),t("PerformanceTabLegend",{attrs:{checkedFilters:e.checkedFilters}})],2)])},[],!1,null,"5aacb0cf",null).exports;var sL=s(85121);function sF(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}!function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);a>3&&n&&Object.defineProperty(t,s,n)}([(0,G.A)(_.Fd)],(class{evaluateEventLoopChoke(){let e=(0,sL.i)();setTimeout(()=>{let t=(0,sL.i)()-e;this.fEventLoopChokes[this.fCurrentIndex]=t-300,this.fCurrentIndex=(this.fCurrentIndex+1)%this.fEventLoopChokes.length},300)}logAveragesToStream(){let e=this.getChokeAvg();this.gLogger.info("EventLoopChokeService",`Current event loop choke is ${e.toFixed(2)}ms`)}getChokeAvg(){return this.fEventLoopChokes.reduce((e,t)=>
5e+t,0)/this.fEventLoopChokes.length}constructor(){this.fCurrentIndex=0,this.fEventLoopChokes=Array(10).fill(0)}}).prototype,"gLogger",void 0);class sU extends c.$G{get ssrTime(){let e=Math.ceil(this.gToolbarPerformanceService.state.timings.ssr);return`${e} ms`}get apiTime(){let e=Math.ceil(this.gToolbarPerformanceService.state.timings.api);return`${e} ms`}get totalTime(){let e=Math.ceil(this.gToolbarPerformanceService.state.timings.total);return`${e} ms`}get chokeTime(){let e=Math.ceil(this.gToolbarPerformanceService.state.timings.choke);return`${e} ms`}get chokeTimeInMinutes(){return 5}}sF([(0,G.A)(sh.A)],sU.prototype,"gToolbarPerformanceService",void 0),sU=sF([(0,T.A)()],sU);let sM=(0,c.P9)(sU),s$=(0,v.A)(sM,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"performance-tab-details"},[e("div",{staticClass:"toolbar-header"},[this._v("\n SSR Performance stats\n ")]),this._v(" "),e("div",{staticClass:"stats-row"},[e("div",{staticClass:"label"},[this._v("SSR Render time:")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.ssrTime))])]),this._v(" "),e("div",{staticClass:"stats-row"},[e("div",{staticClass:"label"},[this._v("API total time:")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.apiTime))])]),this._v(" "),e("div",{staticClass:"stats-row"},[e("div",{staticClass:"label"},[this._v("Total page time:")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.totalTime))])]),this._v(" "),e("div",{staticClass:"stats-row"},[e("div",{staticClass:"label"},[this._v("\n Event loop choke time:\n ")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.chokeTime)+" (from last "+this._s(this.chokeTimeInMinutes)+" min)")])])])},[],!1,null,"5252d9d0",null).exports;var sB=s(99148);function sV(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class sz extends c.$G{get entries(){let e=this.gToolbarPerformanceService.state.renderMap,t=new Map;return e.forEach(e=>{let s=t.get(e.name);s||(s={component:e.name,totalTime:0,count:0},t.set(e.name,s)),s.totalTime+=e.timing.absDuration,s.count++}),this.sort(Array.from(t.values()))}get totalTime(){return(0,sB.x)(this.entries,e=>e.totalTime)}get totalCount(){return(0,sB.x)(this.entries,e=>e.count)}getPercent(e){let t=e/this.totalTime*100;return`${Math.floor(t)}%`}formatTime(e){return e>1?`${Math.floor(e)} ms`:`${e.toFixed(2)} ms`}handleSort(e){this.sortBy=e}sort(e){switch(this.sortBy){case"component":return e.sort((e,t)=>e.component>t.component?1:t.component>e.component?-1:0);case"-component":return e.sort((e,t)=>t.component>e.component?1:e.component>t.component?-1:0);case"count":return e.sort((e,t)=>e.count-t.count);case"-count":return e.sort((e,t)=>t.count-e.count);case"totalTime":return e.sort((e,t)=>e.totalTime-t.totalTime);case"-totalTime":return e.sort((e,t)=>t.totalTime-e.totalTime);default:return e}}constructor(...e){super(...e),this.sortBy="-totalTime"}}sV([(0,u.y_)(sh.A)],sz.prototype,"gToolbarPerformanceService",void 0),sz=sV([(0,c.XF)({ToolbarSortableColumn:te})],sz);let sK=(0,c.P9)(sz),sG=(0,v.A)(sK,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"performance-tab-components"},[t("div",{staticClass:"toolbar-table"},[t("div",{staticClass:"toolbar-table-header"},[t("div",{staticClass:"toolbar-table-row"},[t("ToolbarSortableColumn",{staticClass:"toolbar-table-column",attrs:{sort:"component",selectedSort:e.sortBy},on:{sort:e.handleSort}},[e._v("\n Component\n ")]),e._v(" "),t("ToolbarSortableColumn",{staticClass:"toolbar-table-column",attrs:{sort:"totalTime",selectedSort:e.sortBy},on:{sort:e.handleSort}},[e._v("\n Time\n ")]),e._v(" "),t("div",{staticClass:"toolbar-table-column"},[e._v("\n % Time\n ")]),e._v(" "),t("ToolbarSortableColumn",{staticClass:"toolbar-table-column",attrs:{sort:"count",selectedSort:e.sortBy},on:{sort:e.handleSort}},[e._v("\n Count\n ")])],1)]),e._v(" "),t("div",{staticClass:"toolbar-table-body"},[e._l(e.entries,function(s){return t("div",{key:s.component,staticClass:"toolbar-table-row"},[t("div",{staticClass:"toolbar-table-column"},[e._v(e._s(s.component))]),e._v(" "),t("div",{staticClass:"toolbar-table-column"},[e._v(e._s(e.formatTime(s.totalTime)))]),e._v(" "),t("div",{staticClass:"toolbar-table-column"},[e._v(e._s(e.getPercent(s.totalTime)))]),e._v(" "),t("div",{staticClass:"toolbar-table-column"},[e._v(e._s(s.count))])])}),e._v(" "),t("div",{staticClass:"toolbar-table-row total"},[t("div",{staticClass:"toolbar-table-column"},[e._v("TOTAL:")]),e._v(" "),t("div",{staticClass:"toolbar-table-column"},[e._v(e._s(e.formatTime(e.totalTime)))]),e._v(" "),t("div",{staticClass:"toolbar-table-column"},[e._v("100%")]),e._v(" "),t("div",{staticClass:"toolbar-table-column"},[e._v(e._s(e.totalCount))])])],2)])])},[],!1,null,"389a0954",null).exports;function sq(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class sH extends c.$G{get elementStyle(){return{width:this.width,left:this.left}}get realTime(){return 1e3*this.time}get left(){return`${this.realTime*this.scale}px`}get width(){return`${1e3*this.scale}px`}get formattedTime(){return`${this.time.toFixed(2)}s`}}sq([(0,c.kv)({type:Number})],sH.prototype,"time",void 0),sq([(0,c.kv)({type:Number})],sH.prototype,"scale",void 0),sH=sq([(0,T.A)()],sH);let sX=(0,c.P9)(sH),sW=(0,v.A)(sX,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"performance-tab-render-timeline-entry",class:{"
5is-first":0===this.time},style:this.elementStyle},[e("div",{staticClass:"time"},[this._v("\n "+this._s(this.formattedTime)+"\n ")])])},[],!1,null,"1a704905",null).exports;function sY(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class sJ extends c.$G{get showTitle(){return this.width>20}get elementStyle(){return{width:`${this.width}px`,left:`${this.left}px`,background:this.backgroundColor}}get left(){return Math.ceil(this.entry.timing.start*this.scale)}get width(){return Math.max(1,this.entry.timing.duration*this.scale)}get backgroundColor(){return(0,eE.dy)(this.entry.name)}get isSmall(){return this.width<=2}get hoverTitle(){let e=Math.ceil(this.entry.timing.duration),t=Math.ceil(this.entry.timing.start),s=Math.ceil(this.entry.timing.end),r=this.entry.name;return`${r} - ${e}ms (${t}ms ~ ${s}ms)`}}sY([(0,c.kv)()],sJ.prototype,"entry",void 0),sY([(0,c.kv)({type:Number})],sJ.prototype,"scale",void 0),sJ=sY([(0,T.A)()],sJ);let sQ=(0,c.P9)(sJ),sZ=(0,v.A)(sQ,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"performance-tab-render-entry",class:{"is-small":this.isSmall},style:this.elementStyle,attrs:{title:this.hoverTitle}},[e("span",{directives:[{name:"show",rawName:"v-show",value:this.showTitle,expression:"showTitle"}]},[this._v(this._s(this.entry.name))])])},[],!1,null,"23641675",null).exports;function s0(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class s1 extends c.$G{get highestTimeEntry(){let e=sS(this.gToolbarPerformanceService.state.renderMap,e=>e.timing.end);return(null==e?void 0:e.timing.end)?e.timing.end/1e3:1}get timeEntries(){let e=Math.ceil(this.highestTimeEntry),t=[];for(let s=0;s<e;++s)t.push(s);return t}get rows(){let e=new Map;
5this.gToolbarPerformanceService.state.renderMap.forEach(t=>{let s=e.get(t.level);s||(s={entries:[]},e.set(t.level,s)),s.entries.push(t)});let t=Array(e.size);return Array.from(e.entries()).forEach(([e,s])=>{t[e]=s}),t}recalculateInitialScale(){if(!this.contentRef)return;let e=this.contentRef.getBoundingClientRect().width,t=1e3*this.highestTimeEntry+25;this.scale=e/t}$mounted(){this.recalculateInitialScale()}constructor(...e){super(...e),this.scale=.1}}s0([(0,u.y_)(sh.A)],s1.prototype,"gToolbarPerformanceService",void 0),s0([(0,c.oS)()],s1.prototype,"contentRef",void 0),s1=s0([(0,c.XF)({PerformanceTabRenderTimelineEntry:sW,PerformanceTabRenderEntry:sZ})],s1);let s3=(0,c.P9)(s1),s2=(0,v.A)(s3,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{ref:"contentRef",staticClass:"performance-tab-render-tree"},[t("div",{staticClass:"timeline row"},e._l(e.timeEntries,function(s){return t("div",{key:s},[t("PerformanceTabRenderTimelineEntry",{attrs:{scale:e.scale,time:s}})],1)}),0),e._v(" "),e._l(e.rows,function(s,r){return t("div",{key:r,staticClass:"row is-content"},e._l(s.entries,function(s,r){return t("div",{key:r,staticClass:"entry"},[t("PerformanceTabRenderEntry",{attrs:{scale:e.scale,entry:s}})],1)}),0)})],2)},[],!1,null,"64c402df",null).exports;class s9 extends c.$G{get namesOfUnusedComponents(){return[]}copyComponentNameToClipboard(e){let t=document.createElement("input");t.setAttribute("value",e),t.style.position="fixed",document.body.appendChild(t),(0,eE.lW)(t),document.body.removeChild(t),this.copiedComponentName=e}constructor(...e){super(...e),this.copiedComponentName=""}}s9=function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}([(0,T.A)()],s9);let s5=(0,c.P9)(s9),s7=(0,v.A)(s5,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"performance-tab-unused-components"},[t("div",{staticClass:"tab-header"},[t("span",[e._v("Sum of unused components: "),t("b",[e._v(e._s(e.namesOfUnusedComponents.length))])]),e._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:e.copiedComponentName,expression:"copiedComponentName"}],staticClass:"copy-info"},[e._v('\n "'),t("b",[e._v(e._s(e.copiedComponentName))]),e._v('"\n copied to clipboard\n ')])]),e._v(" "),t("div",{staticClass:"toolbar-table-header"},[e._m(0),e._v(" "),t("div",{staticClass:"toolbar-table-body"},[t("TransitionGroup",{attrs:{name:"component-name-fade",mode:"out-in",tag:"span"}},e._l(e.namesOfUnusedComponents,function(s){return t("div",{key:s,staticClass:"toolbar-table-row component-name",on:{click:function(t){return e.copyComponentNameToClipboard(s)}}},[t("div",{staticClass:"toolbar-table-column"},[e._v("\n "+e._s(s)+"\n ")])])}),0)],1)])])},[function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"toolbar-table-row"},[e("div",{staticClass:"toolbar-table-column"},[this._v("\n Component Name\n ")])])}],!1,null,"fc668906",null).exports;var s8=((a=s8||{}).GENERAL="GENERAL",a.COMPONENT="COMPONENT",a.RENDER_TREE="RENDER_TREE",a.UNUSED_COMPONENTS="UNUSED_COMPONENTS",a);class s4 extends c.$G{get DisplayType(){return s8}constructor(...e){super(...e),this.displayType="GENERAL"}}s4=function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}([(0,T.A)(),(0,c.XF)({UITabs:el.A,UITabsPane:ec.A,PerformanceDetails:s$,PerformanceTabGraph:sj,PerformanceTabComponents:sG,PerformanceTabRenderTree:s2,PerformanceTabUnusedComponents:s7})],s4);let s6=(0,c.P9)(s4),re=(0,v.A)(s6,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"performance-tab"}
5,[t("UITabs",{attrs:{displaySingleTab:!0},model:{value:e.displayType,callback:function(t){e.displayType=t},expression:"displayType"}},[t("UITabsPane",{attrs:{label:e.DisplayType.GENERAL,displayName:"General"}},[e.displayType===e.DisplayType.GENERAL?[t("PerformanceDetails"),e._v(" "),t("PerformanceTabGraph")]:e._e()],2),e._v(" "),t("UITabsPane",{attrs:{label:e.DisplayType.COMPONENT,displayName:"Component"}},[e.displayType===e.DisplayType.COMPONENT?[t("PerformanceTabComponents")]:e._e()],2),e._v(" "),t("UITabsPane",{attrs:{label:e.DisplayType.RENDER_TREE,displayName:"Render Tree"}},[e.displayType===e.DisplayType.RENDER_TREE?[t("PerformanceTabRenderTree")]:e._e()],2),e._v(" "),t("UITabsPane",{attrs:{label:e.DisplayType.UNUSED_COMPONENTS,displayName:"Unused Components"}},[e.displayType===e.DisplayType.UNUSED_COMPONENTS?[t("PerformanceTabUnusedComponents")]:e._e()],2)],1)],1)},[],!1,null,"98102db4",null).exports;var rt=s(17033);function rs(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class rr extends c.$G{get name(){return this.entry.name}get size(){var e;return(0,eE.Xq)(null!=(e=this.entry.size)?e:0)}get data(){return this.entry.data}get showSize(){return null!==this.entry.size}get sizeTitle(){return`Total serialized state from SSR is ${this.size}.`}handleToggle(){this.open=!this.open}constructor(...e){super(...e),this.open=!1}}rs([(0,c.kv)()],rr.prototype,"entry",void 0),rr=rs([(0,T.A)(),(0,c.XF)({ToolbarDataView:eV})],rr);let ri=(0,c.P9)(rr),ra=(0,v.A)(ri,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"state-tab-entry toolbar-table-row"},[t("div",{staticClass:"toolbar-table-column arrow",on:{click:function(t){return t.preventDefault(),e.handleToggle.apply(null,arguments)}}},[t("UIIcon",{class:{"is-open":e.open},attrs:{name:"toolbar-arrow"}})],1),e._v(" "),t("div",{staticClass:"toolbar-table-column"},[e._v("\n "+e._s(e.name)+"\n ")]),e._v(" "),e.showSize?t("div",{staticClass:"toolbar-table-column"},[t("div",{staticClass:"size",attrs:{title:e.sizeTitle}},[e._v("\n "+e._s(e.size)+"\n ")])]):e._e(),e._v(" "),e.open?t("div",{staticClass:"toolbar-table-details"},[t("ToolbarDataView",{attrs:{value:e.data}})],1):e._e()])},[],!1,null,"7b7bd354",null).exports;var rn=s(2417);function ro(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class rl extends c.$G{handleInput(){this.$emit("input",{name:this.filterName})}constructor(...e){super(...e),this.filterName=""}}ro([(0,rn.A)(500)],rl.prototype,"handleInput",null),rl=ro([(0,T.A)(),(0,c.XF)({ToolbarSearch:ti})],rl);let rc=(0,c.P9)(rl,{simple:!1}),ru=(0,v.A)(rc,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"state-tab-filters"},[t("ToolbarSearch",{attrs:{text:"Filter request URL"},on:{input:e.handleInput},model:{value:e.filterName,callback:function(t){e.filterName=t},expression:"filterName"}})],1)},[],!1,null,"77666320",null).exports;function rd(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class rh extends c.$G{get entries(){return this.gToolbarStateService.state.initialState}get visibleEntries(){return this.sort(this.entries,this.filters.sort),this.entries.filter(e=>e.name.toLowerCase().includes(this.filters.name.toLowerCase()))}get title(){return`Total size of whole state is ${this.totalSizeFormatted}`}get totalSize(){return(0,sB.x)(this.entries,e=>{var t;return null!=(t=e.size)?t:0})}get totalSizeFormatted(){return(0,eE.Xq)(this.totalSize)}
5get sizeBackground(){let{totalSize:e}=this;return e>1048576?"#f54e42":e>524288?"#f59042":e>131072?"#f5e042":"#ffffff"}handleSort(e){this.filters.sort=e}sort(e,t){switch(t){case"name":e.sort((e,t)=>e.name>t.name?1:t.name>e.name?-1:0);break;case"-name":e.sort((e,t)=>t.name>e.name?1:e.name>t.name?-1:0);break;case"size":e.sort((e,t)=>e.size-t.size);break;case"-size":e.sort((e,t)=>t.size-e.size)}}constructor(...e){super(...e),this.filters={name:"",sort:""}}}rd([(0,u.y_)(rt.A)],rh.prototype,"gToolbarStateService",void 0),rh=rd([(0,c.XF)({StateTabEntry:ra,StateTabFilters:ru,ToolbarSortableColumn:te})],rh);let rp=(0,c.P9)(rh),rv=(0,v.A)(rp,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"state-tab-initial"},[t("div",{staticClass:"info"},[t("div",[e._v("Initial state from SSR, based on particular services.")]),e._v(" "),t("div",{staticClass:"total-size-info"},[t("div",{staticClass:"label"},[e._v("Total state:")]),e._v(" "),t("div",{staticClass:"size",style:{background:e.sizeBackground},attrs:{title:e.title}},[e._v(e._s(e.totalSizeFormatted))])])]),e._v(" "),t("StateTabFilters",{model:{value:e.filters,callback:function(t){e.filters=t},expression:"filters"}}),e._v(" "),t("div",{staticClass:"toolbar-table-header"},[t("div",{staticClass:"toolbar-table-row"},[t("div",{staticClass:"toolbar-table-column"}),e._v(" "),t("ToolbarSortableColumn",{staticClass:"toolbar-table-column",attrs:{sort:"name",selectedSort:e.filters.sort},on:{sort:e.handleSort}},[e._v("\n Service\n ")]),e._v(" "),t("ToolbarSortableColumn",{staticClass:"toolbar-table-column",attrs:{sort:"size",selectedSort:e.filters.sort},on:{sort:e.handleSort}},[e._v("\n Size\n ")])],1)]),e._v(" "),t("div",{staticClass:"toolbar-table-body"},e._l(e.visibleEntries,function(e){return t("StateTabEntry",{key:e.name,attrs:{entry:e}})}),1)],1)},[],!1,null,"5cf62306",null).exports;function rf(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class rg extends c.$G{get entries(){return this.gToolbarStateService.state.currentState}get visibleEntries(){let e=this.entries.filter(e=>e.name.toLowerCase().includes(this.filters.name.toLowerCase()));return this.sortByName(e)}sortByName(e){return e.sort((e,t)=>e.name>t.name?1:t.name>e.name?-1:0)}$mounted(){this.gToolbarStateService.loadCurrentState()}constructor(...e){super(...e),this.filters={name:""}}}rf([(0,G.A)(rt.A)],rg.prototype,"gToolbarStateService",void 0),rg=rf([(0,T.A)(),(0,c.XF)({StateTabEntry:ra,StateTabFilters:ru})],rg);let r_=(0,c.P9)(rg),rb=(0,v.A)(r_,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"state-tab-current"},[t("StateTabFilters",{model:{value:e.filters,callback:function(t){e.filters=t},expression:"filters"}}),e._v(" "),t("div",{staticClass:"toolbar-table-body"},e._l(e.visibleEntries,function(e){return t("StateTabEntry",{key:e.name,attrs:{entry:e}})}),1)],1)},[],!1,null,"11d7b40c",null).exports;var ry=((n=ry||{}).CURRENT="CURRENT",n.INITIAL="INITIAL",n);class rm extends c.$G{get StateType(){return ry}constructor(...e){super(...e),this.stateType="INITIAL"}}rm=function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}([(0,T.A)(),(0,c.XF)({UITabs:el.A,UITabsPane:ec.A,StateTabCurrent:rb,StateTabInitial:rv})],rm);let rC=(0,c.P9)(rm),rT=(0,v.A)(rC,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"state-tab"},[t("UITabs",{attrs:{displaySingleTab:!0},model:{value:e.stateType,callback:function(t){e.stateType=t},expression:"stateType"}},[t("UITabsPane",{attrs:{label:e.StateType.INITIAL,displayName:"Initial"}},[e.stateType===e.StateType.INITIAL?[t("StateTabInitial")]:e._e(
5)],2),e._v(" "),t("UITabsPane",{attrs:{label:e.StateType.CURRENT,displayName:"Current"}},[e.stateType===e.StateType.CURRENT?[t("StateTabCurrent")]:e._e()],2)],1)],1)},[],!1,null,"17e70ff8",null).exports;var rS=s(74049);function rP(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class rk extends c.$G{}rP([(0,c.kv)({type:Boolean})],rk.prototype,"isLoading",void 0),rP([(0,c.kv)({type:String})],rk.prototype,"message",void 0),rk=rP([(0,T.A)(),(0,c.XF)({UILoader:rS.Ay})],rk);let rR=(0,c.P9)(rk),rw=(0,v.A)(rR,function(){var e=this._self._c;return this._self._setupProxy,this.isLoading?e("div",{staticClass:"loader"},[e("div",{staticClass:"wrapper"},[e("UILoader"),this._v("\n "+this._s(this.message)+"\n ")],1)]):this._e()},[],!1,null,"5f50ed08",null).exports;var rA=s(18737),rE=s(22228),rO=s(6701);function rD(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class rx extends c.$G{get isBusy(){return this.gToolbarEnvService.state.isBusy}get isLoading(){return this.gToolbarEnvService.state.isLoading}get errorMessage(){return this.gToolbarEnvService.state.errorMessage}get busyMessage(){return this.gToolbarEnvService.state.busyMessage}get stages(){return this.gToolbarEnvService.state.stages}get isAnyStageActive(){return this.gToolbarEnvService.isAnyStagesActive}get isCustomEnabled(){return this.gToolbarEnvService.state.custom.isEnabled||this.fIsCustomEnabled}get apiURL(){return this.gToolbarEnvService.state.custom.api}set apiURL(e){this.gToolbarEnvService.setApiUrl(e)}get routerURL(){return this.gToolbarEnvService.state.custom.router}set routerURL(e){this.gToolbarEnvService.setRouterUrl(e)}get customOverrideFields(){return rO.fM.filter(e=>e.scope===rO.qQ.FRONT&&"apiUrl"!==e.key&&"routeUrl"!==e.key)}get customOverrides(){return this.gToolbarEnvService.state.custom.overrides}handleOverrideInput(e,t){var s;let r=t.target;this.gToolbarEnvService.setCustomOverride(e,null!=(s=null==r?void 0:r.value)?s:"")}get selectedStageName(){var e;if(this.fIsCustomEnabled)return rE.AU.CUSTOM;let t=this.stages.find(e=>e.isActive);return null!=(e=null==t?void 0:t.name)?e:""}isStageActive(e){return e.name===this.selectedStageName}async handleEnvChange(e){if(e.name===rE.AU.CUSTOM){this.fIsCustomEnabled=!0;return}await this.gToolbarEnvService.changeStage({stage:e.name}),this.gToolbarEnvService.state.errorMessage||window.location.reload()}async handleSubmitCustom(){await this.gToolbarEnvService.changeCustomEnv(),this.gToolbarEnvService.state.errorMessage||window.location.reload()}async $mounted(){await this.gToolbarEnvService.loadStages(),this.gToolbarEnvService.onFrontReady()}constructor(...e){super(...e),this.fIsCustomEnabled=!1}}rD([(0,G.A)(rA.A)],rx.prototype,"gToolbarEnvService",void 0),rx=rD([(0,T.A)(),(0,c.XF)({ToolbarLoaderScreen:rw,ToolbarLoader:eu.default})],rx);let rI=(0,c.P9)(rx),rN=(0,v.A)(rI,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"tools-env"},[e.stages.length&&!e.isAnyStageActive?[e._m(0)]:e._e(),e._v(" "),e.errorMessage?[t("div",{staticClass:"error"},[e._v(e._s(e.errorMessage))])]:e._e(),e._v(" "),t("div",{staticClass:"content"},[t("div",{staticClass:"label"},[e._v("API Environment")]),e._v(" "),t("div",{staticClass:"envs"},[e.isLoading?t("ToolbarLoader"):e._l(e.stages,function(s){return t("button",{key:s.name,staticClass:"env",class:{"is-active":e.isStageActive(s)},on:{click:function(t){return e.handleEnvChange(s)}}},[e._v("\n "+e._s(s.name)+"\n ")])})],2)]),e._v(" "),e.isCustomEnabled?t("div",{staticClass:"form-wrapper"},[t("div",{staticClass:"form"},[t("div",{staticClass:"form-item"},[t("div",{staticClass:"label"},[e._v("Enter custom API URL")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.apiURL,expression:"apiURL"}],attrs:{type:"text",placeholder:"API url"},domProps:{value:e.apiURL},on:{input:function(t){t.target.composing||(e.apiURL=t.target.value)}}})]),e._v(" "),t("div",{staticClass:"form-item"},[t("div",{staticClass:"label"},[e._v("Enter custom RouterAPI URL")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.routerURL,expression:"routerURL"}],attrs:{type:"text",placeholder:"RouterAPI url"},domProps:{value:e.routerURL},on:{input:function(t){t.target.composing||(e.routerURL=t.target.value)}}})]),e._v(" "),e._l(e.customOverrideFields,function(s){return t("div",{key:s.key,staticClass:"form-item"},[t("div",{staticClass:"label"},[e._v(e._s(s.displayName??s.key))]),e._v(" "),t("input",{attrs:{type:"text",placeholder:s.envVar},domProps:{value:e.customOverrides[s.key]??""},on:{input:function(t){return e.handleOverrideInput(s.key,t)}}})])}),e._v(" "),t("div",{staticClass:"form-item"},[t("button",{staticClass:"button submit",on:{click:e.handleSubmitCustom}}
5,[e._v("Submit")])])],2)]):e._e(),e._v(" "),t("ToolbarLoaderScreen",{attrs:{isLoading:e.isBusy,message:e.busyMessage}})],2)},[function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"alert"},[e("div",{staticClass:"header"},[this._v("Warning!")]),this._v(" "),e("div",{staticClass:"text"},[this._v("\n No one of the app stage is set. It means that you are using environment from app configuration files. "),e("br"),this._v("\n To find current configuration look into "),e("strong",[this._v("INFO tab")]),this._v(" or\n "),e("strong",[this._v("Config.ts")]),this._v(" and "),e("strong",[this._v("Config.local.ts")]),this._v(" files inside of your app.\n ")])])}],!1,null,"47bbafc3",null).exports;function rj(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class rL extends c.$G{get cssClass(){let e={"is-checked":this.value,"is-disabled":this.disabled};return this.variant&&(e[`is-${this.variant}`]=!0),e}handleChange(){this.disabled||(this.$emit("input",!this.value),this.$emit("change",!this.value))}}rj([(0,c.kv)({type:Boolean})],rL.prototype,"value",void 0),rj([(0,c.kv)({default:"default",type:String})],rL.prototype,"variant",void 0),rj([(0,c.kv)({default:!1,type:Boolean})],rL.prototype,"disabled",void 0);let rF=(0,c.P9)(rL),rU=(0,v.A)(rF,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"ui-speed-checkbox",class:this.cssClass,on:{click:this.handleChange}})},[],!1,null,"4de956d0",null).exports;var rM=s(55508);function r$(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}let rB={gtm:"analytics.gtm",synerise:"analytics.synerise"};class rV extends c.$G{get element(){return this.urlInstance.searchParams.get("excludeComponents")}handleChange(e){if(this.element?this.element===rB[e]?this.urlInstance.searchParams.delete("excludeComponents"):"analytics"===this.element?this.urlInstance.searchParams.set("excludeComponents",rB["synerise"===e?"gtm":"synerise"]):this.urlInstance.searchParams.set("excludeComponents","analytics"):this.urlInstance.searchParams.append("excludeComponents",rB[e]),this.gRouterV2){var t;null==(t=this.gRouterV2)||t.goToUrl(this.urlInstance.href)}else window.location.href=this.urlInstance.href}$mounted(){this.element&&("analytics"===this.element&&(this.gtmModel=!0,this.syneriseModel=!0),"analytics.gtm"===this.element&&(this.gtmModel=!0),"analytics.synerise"===this.element&&(this.syneriseModel=!0))}constructor(...e){super(...e),this.gtmModel=!1,this.syneriseModel=!1,this.urlInstance=new URL(window.location.href)}}r$([(0,u.UN)(rM.MY)],rV.prototype,"gRouterV2",void 0),rV=r$([(0,c.XF)({ToolbarSpeedCheckbox:rU})],rV);let rz=(0,c.P9)(rV),rK=(0,v.A)(rz,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"tools-analytics"},[t("div",{staticClass:"item"},[t("div",{staticClass:"label"},[e._v("Disable GTM")]),e._v(" "),t("div",{staticClass:"value"},[t("ToolbarSpeedCheckbox",{on:{change:t=>e.handleChange("gtm",t)},model:{value:e.gtmModel,callback:function(t){e.gtmModel=t},expression:"gtmModel"}})],1)]),e._v(" "),t("div",{staticClass:"item"},[t("div",{staticClass:"label"},[e._v("Disable Synerise")]),e._v(" "),t("div",{staticClass:"value"},[t("ToolbarSpeedCheckbox",{on:{change:t=>e.handleChange("synerise",t)},model:{value:e.syneriseModel,callback:function(t){e.syneriseModel=t},expression:"syneriseModel"}})],1)])])},[],!1,null,"111938b4",null).exports;function rG(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class rq extends c.$G{async handleClick(){try{if(this.isLoading=!0,this.isError=!1,this.isSuccess=!1,await this.gCacheDriver.clear(),!(await fetch("/spark-api/toolbar/config/clear-cache",{method:"POST",headers:{"Content-Type":"application/json"}})).ok){this.isError=!0;return}this.isSuccess=!0}
5catch(e){this.isError=!0,this.gLogger.warn("ToolsCache","Cannot clear cache",e)}finally{this.isLoading=!1}}constructor(...e){super(...e),this.isLoading=!1,this.isSuccess=!1,this.isError=!1}}rG([(0,G.A)(_.to)],rq.prototype,"gCacheDriver",void 0),rG([(0,G.A)(_.Fd)],rq.prototype,"gLogger",void 0),rq=rG([(0,T.A)()],rq);let rH=(0,c.P9)(rq),rX=(0,v.A)(rH,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"tools-cache"},[e("div",{staticClass:"label"},[this._v("Clear cache (SSR + Front)")]),this._v(" "),e("div",{staticClass:"value"},[e("button",{staticClass:"button",class:{"is-loading":this.isLoading},attrs:{disabled:this.isLoading},on:{click:this.handleClick}},[this._v("\n Clear\n ")]),this._v(" "),e("div",{staticClass:"text"},[this.isSuccess?e("span",{staticClass:"success"},[this._v("Success")]):this._e(),this._v(" "),this.isError?e("span",{staticClass:"success"},[this._v("Error! Cannot clear cache")]):this._e()])])])},[],!1,null,"05ac7139",null).exports;function rW(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class rY extends c.$G{handleChange(e){e?this.urlInstance.searchParams.append(this.searchParamsKey,"true"):this.urlInstance.searchParams.delete(this.searchParamsKey),this.gRouterV2?this.gRouterV2.goToUrl(this.urlInstance.href):window.location.href=this.urlInstance.href}$mounted(){this.model=this.urlInstance.searchParams.has(this.searchParamsKey)}constructor(...e){super(...e),this.model=!1,this.searchParamsKey="blackFireTrigger",this.urlInstance=new URL(window.location.href)}}rW([(0,u.UN)(rM.MY)],rY.prototype,"gRouterV2",void 0),rY=rW([(0,c.XF)({ToolbarSpeedCheckbox:rU})],rY);let rJ=(0,c.P9)(rY),rQ=(0,v.A)(rJ,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"tools-varnish"},[t("div",{staticClass:"label"},[e._v("Enable blackfire test (use with caution)")]),e._v(" "),t("div",{staticClass:"value"},[t("ToolbarSpeedCheckbox",{on:{change:e.handleChange},model:{value:e.model,callback:function(t){e.model=t},expression:"model"}})],1)])},[],!1,null,"4229cdb7",null).exports;var rZ=s(18593);function r0(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class r1 extends c.$G{handleClick(){this.$emit("loading",!0,"Refreshing without Varnish cache"),this.urlInstance.searchParams.has(this.searchParamsKey)&&this.urlInstance.searchParams.delete(this.searchParamsKey),this.urlInstance.searchParams.append(this.searchParamsKey,(0,rZ.A)()),this.gRouterV2.goToUrl(this.urlInstance.href)}constructor(...e){super(...e),this.searchParamsKey="skipVarnish",this.urlInstance=new URL(window.location.href)}}r0([(0,u.y_)(rM.MY)],r1.prototype,"gRouterV2",void 0),r1=r0([(0,c.q5)(["loading"])],r1);let r3=(0,c.P9)(r1),r2=(0,v.A)(r3,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"action refresh-without-varnish"},[e("button",{staticClass:"button",on:{click:this.handleClick}},[this._v("\n Refresh without varnish\n ")])])},[],!1,null,"6be37fbc",null).exports;function r9(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class r5 extends c.$G{async handleClick(){this.$emit("loading",!0,"Purging front in progress..."),await this.gToolbarCacheService.purgeClient(),window.location.reload()}}r9([(0,G.A)(ew.A)],r5.prototype,"gToolbarCacheService",void 0),r5=r9([(0,T.A)()],r5);let r7=(0,c.P9)(r5),r8=(0,v.A)(r7,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"action purge-front"},[e("button",{staticClass:"button",on:{click:this.handleClick}},[this._v("\n Purge Front\n ")])])},[],!1,null,"459d4c88",null).exports;function r4(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class r6 extends c.$G{async handleClick(){this.$emit("loading",!0,"Purging all (client and api) in progress..."),await this.gToolbarCacheService.purgeAll(),window.location.reload()}}r4([(0,G.A)(ew.A)],r6.prototype,"gToolbarCacheService",void 0),r6=r4([(0,T.A)()],r6);let ie=(0,c.P9)(r6),it=(0,v.A)(ie,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"action purge-all"},[e("button",{staticClass:"button",on:{click:this.handleClick}},[this._v("\n Purge ALL\n ")])])},[],!1,null,"622abbbf",null).exports;function is(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class ir extends c.$G{async handleClick(){this.gToolbarService.openTab("Api")}}is([(0,G.A)(d.hE)],ir.prototype,"gToolbarService",void 0),ir=is([(0,T.A)()],ir);let ii=(0,c.P9)(ir),ia=(0,v.A)(ii,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"action purge-request"},[e("button",{staticClass:"button",on:{click:this.handleClick}},[this._v("\n Purge requests...\n ")])])},[],!1,null,"72c5d53e",null).exports;class io extends c.$G{handleLoading(e,t){this.isLoading=e,this.message=t}constructor(...e){super(...e),this.isLoading=!1,this.message=""}}io=function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}([(0,T.A)(),(0,c.XF)({ToolbarLoaderScreen:rw,RefreshWithoutVarnish:r2,PurgeFront:r8,PurgeAll:it,PurgeRequest:ia})],io);let il=(0,c.P9)(io),ic=(0,v.A)(il,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"tools-actions"},[e("RefreshWithoutVarnish",{on:{loading:this.handleLoading}}),this._v(" "),e("PurgeFront",{on:{loading:this.handleLoading}}),this._v(" "),e("PurgeAll",{on:{loading:this.handleLoading}}),this._v(" "),e("PurgeRequest"),this._v(" "),e("ToolbarLoaderScreen",{attrs:{isLoading:this.isLoading,message:this.message}})],1)},[],!1,null,"b1832550",null).exports;function iu(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}
5class id extends c.$G{get isPurgeEnabled(){return this.gPanelService.getInfoValue("allow-varnish-purge")}get headers(){return this.gToolbarCacheService.state.headers}get age(){return this.headers?this.headers.has("x-age")?this.headers.get("x-age"):this.headers.get("age"):null}get cacheControl(){return this.headers?this.headers.get("x-cache-control"):null}}iu([(0,G.A)(ew.A)],id.prototype,"gToolbarCacheService",void 0),iu([(0,G.A)(q.A)],id.prototype,"gPanelService",void 0),id=iu([(0,T.A)(),(0,c.XF)({ToolbarToolsActions:ic})],id);let ih=(0,c.P9)(id),ip=(0,v.A)(ih,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"tools-cache-prune"},[e("div",{staticClass:"title"},[this._v("Cache information")]),this._v(" "),this.headers&&(this.age||this.cacheControl)?e("div",{staticClass:"age"},[e("div",{staticClass:"name"},[this._v("Cache Age:")]),this._v(" "),this.age?e("div",{staticClass:"header-age"},[this._v(this._s(this.age))]):this._e(),this._v(" "),this.cacheControl?e("div",{staticClass:"header-control"},[this._v(" / "+this._s(this.cacheControl))]):this._e()]):this._e(),this._v(" "),this.isPurgeEnabled?e("div",{staticClass:"tools-cache-actions"},[e("ToolbarToolsActions")],1):this._e()])},[],!1,null,"70d4e400",null).exports;var iv=s(67788),ig=s(74808);function i_(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class ib extends c.$G{get hasWishListManager(){return!!this.gWishListManagerService}get shouldShowEnvs(){return!1}handleClearWaitlist(){if(!this.gWishListManagerService)return;let e=this.gWishListManagerService.getDefaultWishListByType(ig.Ew.ETypes.WAITLIST);e&&e.clear()}}i_([(0,u.UN)(iv.mj)],ib.prototype,"gWishListManagerService",void 0),ib=i_([(0,c.XF)({ToolsEnv:rN,ToolsAnalytics:rK,ToolsCache:rX,ToolsBlackFire:rQ,ToolsCachePrune:ip})],ib);let iy=(0,c.P9)(ib),im=(0,v.A)(iy,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"tools-tab"},[e("div",{staticClass:"toolbar-header"},[this._v("Tools")]),this._v(" "),e("div",{staticClass:"list"},[this.shouldShowEnvs?e("ToolsEnv",{staticClass:"item"}):this._e(),this._v(" "),e("ToolsAnalytics",{staticClass:"item"}),this._v(" "),e("ToolsBlackFire",{staticClass:"item"}),this._v(" "),this.shouldShowEnvs?e("ToolsCache",{staticClass:"item"}):this._e(),this._v(" "),this.hasWishListManager?e("div",{staticClass:"clear-waitlist item"},[e("div",{staticClass:"label"},[this._v("Clear waitlist")]),this._v(" "),e("button",{staticClass:"clear-waitlist-button",attrs:{type:"button"},on:{click:this.handleClearWaitlist}},[this._v("Clear waitlist")])]):this._e(),this._v(" "),e("ToolsCachePrune")],1)])},[],!1,null,"5ee70d70",null).exports;function iC(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class iT extends c.$G{get filteredIcons(){return this.icons.filter(e=>e.toLocaleLowerCase().includes(this.search.toLocaleLowerCase()))}getIconTemplate(e){return`<UIIcon name="${e}"/>`}async copyToClipboard(e){if(clearTimeout(this.timeout),e){if(this.isCopied=await (0,eE.eM)(this.getIconTemplate(e)),!this.isCopied){this.isCopied=!1;return}this.isCopied=!0,this.timeout=setTimeout(()=>{this.isCopied=!1},2e3)}}async $mounted(){try{let{default:e}=await s.e(6470).then(s.t.bind(s,24506,19)),t=new Set(e);this.icons=Array.from(t.values())}catch(e){this.gLogger.warn("IconsTab","Cannot fetch icons json file",e)}finally{this.isLoading=!1}}constructor(...e){super(...e),this.isLoading=!0,this.isCopied=!1,this.icons=[],this.search=""}}iC([(0,u.y_)(_.Fd)],iT.prototype,"gLogger",void 0),iT=iC([(0,c.XF)({ToolbarSearch:ti,ToolbarLoader:eu.default})],iT);let iS=(0,c.P9)(iT),iP=(0,v.A)(iS,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"icons-tab"},[e.isLoading?t("div",{staticClass:"loader"},[t("ToolbarLoader")],1):t("div",{staticClass:"content"},[t("div",{staticClass:"filters"},[t("ToolbarSearch",{attrs:{text:"Search..."}
5,model:{value:e.search,callback:function(t){e.search=t},expression:"search"}}),e._v(" "),t("div",{staticClass:"stats"},[e._v("\n Total "+e._s(e.icons.length)+" icons\n ")])],1),e._v(" "),t("div",{staticClass:"icons"},e._l(e.filteredIcons,function(s){return t("div",{key:s,staticClass:"item"},[t("UIIcon",{staticClass:"icon",attrs:{name:s,title:"Click to copy"},on:{click:function(t){return e.copyToClipboard(s)}}}),e._v(" "),t("p",{staticClass:"name"},[e._v("\n "+e._s(s)+"\n ")])],1)}),0),e._v(" "),e.isCopied?t("div",{staticClass:"copied"},[e._v("\n Icon copied to clipboard!\n ")]):e._e()])])},[],!1,null,"6fc33b91",null).exports;var ik=s(43605);function iR(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class iw extends c.$G{closePreview(){this.$emit("closePreview")}async fetchSpecificCache(){let e=this.selectedSection;try{switch(this.isLoading=!0,e.type){case"ssr":await this.getBackendSpecificCache();break;case"front":await this.getFrontendSpecificCache();break;default:this.gLogger.warn("CacheTabPreview.fetchSpecificCache","SectionType value not matched, can't fetch specific cache")}}catch(e){this.gLogger.error("CacheTabPreview.fetchSpecificCache","Error during fetching specific cache")}finally{this.isLoading=!1}}async getBackendSpecificCache(){let e=await fetch(`/spark-api/toolbar/config/cache/${encodeURIComponent(this.cacheKey)}`,{method:"GET"});this.data=await e.json()}async getFrontendSpecificCache(){this.data=await this.gCacheDriver.get(this.cacheKey)}$mounted(){this.fetchSpecificCache()}constructor(...e){super(...e),this.data=null,this.isLoading=!1}}iR([(0,G.A)(_.to)],iw.prototype,"gCacheDriver",void 0),iR([(0,G.A)(_.Fd)],iw.prototype,"gLogger",void 0),iR([(0,c.kv)({type:String})],iw.prototype,"cacheKey",void 0),iR([(0,c.kv)()],iw.prototype,"selectedSection",void 0),iw=iR([(0,T.A)(),(0,c.XF)({ToolbarDataView:eV,ToolbarLoader:eu.default})],iw);let iA=(0,c.P9)(iw),iE=(0,v.A)(iA,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"cache-tab-preview"},[e("div",{staticClass:"header"},[e("button",{staticClass:"back-btn",attrs:{type:"button"},on:{click:this.closePreview}},[e("UIIcon",{staticClass:"arrow-left",attrs:{name:"toolbar-arrow"}}),this._v("\n Back\n ")],1),this._v(" "),e("div",{staticClass:"header-content"},[e("p",[e("b",[this._v("Key:")]),this._v(" "+this._s(this.cacheKey))])])]),this._v(" "),this.isLoading?e("div",{staticClass:"loader-wrapper"},[e("ToolbarLoader")],1):this._e(),this._v(" "),e("div",{staticClass:"data-view-section"},[e("h4",[this._v("Response:")]),this._v(" "),this.data?e("ToolbarDataView",{attrs:{value:this.data}}):e("p",[this._v("No data to display")])],1)])},[],!1,null,"b019bc5a",null).exports;var iO=s(74185),iD=((o={}).LINK="link",o.BUTTON="button",o);let ix="paginationFocusPlace-";function iI(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class iN extends c.$G{get fInputValue(){return this.inputValue.toString()}set fInputValue(e){let t=Number(e);this.inputValue=Number.isNaN(t)?1:t}get fIsNewInput(){return!!this.isNewInput}get fieldClassesName(){return this.fIsNewInput?{main:"ui-input",input:"input-field"}:void 0}get totalCount(){return this.perPage*this.totalPages}disableArrows(e){return e?!this.isIconHidden||this.isIconHidden&&this.inputValue<this.totalPages:!this.isIconHidden||this.isIconHidden&&this.inputValue>1}getValidPage(e){return Math.min(Math.max(e,1),this.totalPages)}handlePageChange(e){this.inputValue&&(this.inputValue=this.getValidPage(Number(e.value)))}handleEnterClicked(){var e;this.place&&(null==(e=this.inputRef)?void 0:e.$el.classList.contains("is-focus"))&&this.gUserStorage.set(ix,this.place),this.inputValue=this.getValidPage(this.inputValue),this.$emit("change",this.inputValue)}handleNextPage(){this.inputValue=Math.min(this.currentPage+1,this.totalPages),this.$emit("change",this.inputValue)}handlePreviousPage(){this.inputValue=Math.max(this.currentPage-1,1),this.$emit("change",this.inputValue)}setInputValueToCurrentPage(){this.inputValue=this.currentPage}tryRestoreFocus(){this.place&&this.gUserStorage.get(ix)===this.place&&this.$vue.$nextTick(()=>{var e;null==(e=this.inputRef)||e.focus(),this.gUserStorage.remove(ix)})}handleWatch(){this.setInputValueToCurrentPage()}$mounted(){this.setInputValueToCurrentPage(),this.tryRestoreFocus()}async $serverPrefetch(){this.setInputValueToCurrentPage()}constructor(...e){super(...e),this.inputValue=1}}iI([(0,u.y_)(_.ff)],iN.prototype,"gUserStorage",void 0),iI([(0,c.kv)({required:!0,type:Number})],iN.prototype,"currentPage",void 0),iI([(0,c.kv)({required:!0,type:Number})],iN.prototype,"perPage",void 0),iI([(0,c.kv)({required:!0,type:Number})],iN.prototype,"totalPages",void 0),iI([(0,c.kv)({default:!1,type:Boolean})],iN.prototype,"isReadOnly",void 0),iI([(0,c.kv)({default:!1,type:Boolean})],iN.prototype,"numbersOnly",void 0),iI([(0,c.kv)({default:"arrow09-left",type:String})],iN.prototype,"iconPrevName",void 0),iI([(0,c.kv)({default:"arrow10-right",type:String})],iN.prototype,"iconNextName",void 0),iI([(0,c.kv)({default:!1,type:Boolean})],iN.prototype,"isIconHidden",void 0),iI([(0,c.kv)({default:null})],iN.prototype,"place",void 0),iI([(0,c.kv)({default:iD.BUTTON})],iN.prototype,"btnsRole",void 0),iI([(0,c.kv)()],iN.prototype,"prevPageButtonAriaLabel",void 0),iI([(0,c.kv)()],iN.prototype,"nextPageButtonAriaLabel",void 0),iI([(0,c.oS)()],iN.prototype,"inputRef",void 0),iI([(0,c.Vb)("isNewInput",{default:null})],iN.prototype,"isNewInput",void 0),iI([(0,c.ox)("currentPage")],iN.prototype,"handleWatch",null),iN=iI([(0,c.XF)({BaseUIInput:iO.A}),(0,c.q5)(["change"])],iN);let ij=(0,c.P9)(iN),iL=(0,v.A)(ij,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{directives:[{name:"cy",rawName:"v-cy:core",value:"pagination",expression:"'pagination'",arg:"core"}],staticClass:"pagination"},[e.disableArrows(!1)?t("UIButton",{staticClass:"is-icon prev-icon",class:{"
5is-disabled":e.inputValue<=1},attrs:{role:e.btnsRole,variant:"simple","aria-label":e.prevPageButtonAriaLabel??e.$t("Aria.global.pagination.back")},on:{click:e.handlePreviousPage}},[t("UIIcon",{directives:[{name:"cy",rawName:"v-cy:core",value:"previousPageButton",expression:"'previousPageButton'",arg:"core"}],class:{disabled:e.inputValue<=1},attrs:{name:e.iconPrevName},scopedSlots:e._u([{key:"icon",fn:function(){},proxy:!0}],null,!1,0xb8bf5b22)})],1):e._e(),e._v(" "),e.isReadOnly?t("span",[e._v(e._s(e.inputValue))]):t("BaseUIInput",{directives:[{name:"cy",rawName:"v-cy:core",value:"paginationValueInput",expression:"'paginationValueInput'",arg:"core"}],ref:"inputRef",attrs:{fieldClassesName:e.fieldClassesName,inputMode:"numeric",type:"number",ariaLabel:e.$t("Aria.global.pagination.input")},on:{change:function(t){return e.handlePageChange(t.target)},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnterClicked.apply(null,arguments)}},model:{value:e.fInputValue,callback:function(t){e.fInputValue=t},expression:"fInputValue"}}),e._v(" "),e._t("default",null,null,{perPage:e.perPage,inputValue:e.inputValue,totalCount:e.totalCount,totalPages:e.totalPages,handlePageChange:e.handlePageChange}),e._v(" "),e.disableArrows(!0)?t("UIButton",{staticClass:"is-icon next-icon",class:{"
5is-disabled":e.inputValue>=e.totalPages},attrs:{role:e.btnsRole,variant:"simple","aria-label":e.nextPageButtonAriaLabel??e.$t("Aria.global.pagination.next")},on:{click:e.handleNextPage}},[t("UIIcon",{directives:[{name:"cy",rawName:"v-cy:core",value:"nextPageButton",expression:"'nextPageButton'",arg:"core"}],class:{disabled:e.inputValue>=e.totalPages},attrs:{name:e.iconNextName},scopedSlots:e._u([{key:"icon",fn:function(){},proxy:!0}],null,!1,0xb8bf5b22)})],1):e._e()],2)},[],!1,null,"5a491b08",null).exports;function iF(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class iU extends c.$G{get isProduction(){return!0}get selectedSectionType(){var e,t;return null!=(e=null==(t=this.selectedSection)?void 0:t.type)?e:""}get showClearBtn(){return!this.isProduction&&!!this.selectedSection&&!this.isNotAuthorized}get totalPages(){return Math.max(1,Math.ceil(this.cache.count/this.perPage))}async clearCache(){var e;switch(null==(e=this.selectedSection)?void 0:e.type){case"ssr":await this.clearBackendCache(),await this.getBackendCache();break;
5case"front":this.gCacheDriver.clear(),await this.getFrontCache();break;default:this.gLogger.warn("CacheTab.clearCache","SectionType value not matched, can't fetch cache")}}async removeCacheByKey(e){var t;switch(null==(t=this.selectedSection)?void 0:t.type){case"ssr":await this.removeBackendCacheByKey(e),await this.getBackendCache();break;case"front":this.gCacheDriver.remove(e),await this.getFrontCache();break;default:this.gLogger.warn("CacheTab.removeCacheByKey","SectionType value not matched, can't fetch cache")}}handlePaginationChange(e){this.currentPage=e,this.fetchCache()}selectCache(e){this.selectedCacheKey=e}handleClosePreview(){this.selectedCacheKey=null}selectSection(e){this.currentPage=1,this.selectedSection=e,this.fetchCache()}handleCache(e){this.cache=e}async removeBackendCacheByKey(e){try{await fetch("/spark-api/toolbar/config/cache/delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:encodeURIComponent(e)})})}catch(e){this.gLogger.error("CacheTab.removeBackendCacheByKey","Error during removing backend cache")}}async clearBackendCache(){try{await fetch("/spark-api/toolbar/config/cache",{method:"DELETE"})}catch(e){this.gLogger.error("CacheTab.clearBackendCache","Error during cleaning backend cache")}}async getBackendCache(){let e=new window.URLSearchParams;e.append("search",this.search),e.append("page",String(this.currentPage));let t=await fetch(`/spark-api/toolbar/config/cache?${e.toString()}`,{method:"GET"});t.ok&&(this.cache=await t.json()),401===t.status&&(this.isNotAuthorized=!0)}async getFrontCache(){this.cache=await this.gCacheDriver.getAll(this.currentPage,this.search)}async fetchCache(){var e;this.isLoading=!0,this.isNotAuthorized=!1;let t=null==(e=this.selectedSection)?void 0:e.type;try{switch(t){case"ssr":await this.getBackendCache();break;
5case"front":await this.getFrontCache();break;default:this.gLogger.warn("CacheTab.fetchCache","SectionType value not matched, can't fetch cache")}}catch(e){this.gLogger.error("CacheTab.fetchCache","Error during fetching cache")}finally{this.isLoading=!1}}handleSearch(){this.currentPage=1,this.fetchCache()}constructor(...e){super(...e),this.sections=[{name:"SSR",isActive:!1,type:"ssr"},{name:"Front",isActive:!1,type:"front"}],this.search="",this.selectedSection=null,this.cache={count:0,data:[]},this.selectedCacheKey=null,this.currentPage=1,this.perPage=ik.A.VALUES_PER_PAGE,this.isLoading=!1,this.isNotAuthorized=!1}}iF([(0,u.y_)(_.to)],iU.prototype,"gCacheDriver",void 0),iF([(0,u.y_)(_.Fd)],iU.prototype,"gLogger",void 0),iF([(0,rn.A)(500)],iU.prototype,"handleSearch",null),iU=iF([(0,c.XF)({ToolbarSearch:ti,CacheTabPreview:iE,UIPagination:iL,ToolbarLoader:eu.default})],iU);let iM=(0,c.P9)(iU),i$=(0,v.A)(iM,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"cache-tab"},[e.selectedCacheKey?t("CacheTabPreview",{attrs:{cacheKey:e.selectedCacheKey,selectedSection:e.selectedSection},on:{closePreview:e.handleClosePreview}}):[t("div",{staticClass:"inputs"},[t("div",{staticClass:"section-buttons"},e._l(e.sections,function(s){return t("button",{key:s.type,staticClass:"button",class:{"is-active":s.type===e.selectedSectionType},on:{click:function(t){return e.selectSection(s)}}},[e._v("\n "+e._s(s.name)+"\n ")])}),0),e._v(" "),e.isNotAuthorized?e._e():t("div",{staticClass:"filters"},[e.showClearBtn?t("button",{staticClass:"clear-button",on:{click:e.clearCache}},[e._v("\n Clear "+e._s(e.selectedSection.name)+" cache\n ")]):e._e(),e._v(" "),t("div",{staticClass:"toolbar-table-filter"},[t("ToolbarSearch",{attrs:{text:"Search..."},on:{input:e.handleSearch},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),e._v(" "),t("UIPagination",{staticClass:"ui-pagination",attrs:{currentPage:e.currentPage,perPage:e.perPage,totalPages:e.totalPages,iconPrevName:"arrow-left-big",iconNextName:"arrow-right-big"},on:{change:e.handlePaginationChange}},[t("span",{staticClass:"total"},[e._v("out of "+e._s(e.totalPages))])])],1)]),e._v(" "),e.selectedSection?e._e():t("div",{staticClass:"alert"},[t("div",{staticClass:"header"},[e._v("Info!")]),e._v(" "),t("div",{staticClass:"text"},[e._v('Select "SSR" or "Front" in order to display cache data.')])]),e._v(" "),e.isNotAuthorized?t("div",{staticClass:"alert error"},[t("div",{staticClass:"header"},[e._v("Error!")]),e._v(" "),t("div",{staticClass:"text"},[e._v("You have no access to this feature.")])]):e.selectedSection?[e.isLoading?t("ToolbarLoader",{staticClass:"toolbar-loader"}):t("div",{staticClass:"toolbar-table"},[t("div",{staticClass:"toolbar-table-header"},[t("div",{staticClass:"toolbar-table-row"},[t("div",{staticClass:"toolbar-table-column"},[e._v("Cache key")])])]),e._v(" "),t("div",{staticClass:"toolbar-table-body"},e._l(e.cache.data,function(s){return t("div",{key:s,staticClass:"toolbar-table-row clickable",on:{click:function(t){return e.selectCache(s)}}},[t("div",{staticClass:"toolbar-table-column"},[e._v(e._s(s))]),e._v(" "),e.isProduction?e._e():t("div",{staticClass:"toolbar-table-column",on:{click:function(t){return t.stopPropagation(),e.removeCacheByKey(s)}}},[t("button",{staticClass:"clear-button"},[e._v("Remove")])])])}),0)])]:e._e()]],2)},[],!1,null,"9d3ed9b6",null).exports;var iB=s(35037);function iV(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class iz extends c.$G{get sortedFlags(){return this.gToolbarFeatureFlagsService.state.sortedFlags}get flagsToDisplay(){return""===this.query?this.sortedFlags:this.sortedFlags.filter(e=>this.generateFlagName(e).includes(this.generateFlagName(this.query)))}get isLoading(){return this.gToolbarFeatureFlagsService.state.isLoading}get isBusy(){return this.gToolbarFeatureFlagsService.state.isBusy}get busyMessage(){return this.gToolbarFeatureFlagsService.state.busyMessage}get errorMessage(){return this.gToolbarFeatureFlagsService.state.errorMessage}generateFlagName(e){return e.split("_").join(" ").toLowerCase()}async handleChange(e,t){this.featureFlags[e]=t,await this.gToolbarFeatureFlagsService.changeFeatureFlag(e,t),this.errorMessage||window.location.reload()}async $mounted(){await this.gToolbarFeatureFlagsService.updateFeatureFlags(),this.featureFlags=this.gToolbarFeatureFlagsService.state.featureFlags}constructor(...e){super(...e),this.query="",this.featureFlags={}}}iV([(0,G.A)(iB.A)],iz.prototype,"gToolbarFeatureFlagsService",void 0),iz=iV([(0,T.A)(),(0,c.XF)({ToolbarLoader:eu.default,ToolbarLoaderScreen:rw,ToolbarSpeedCheckbox:rU,ToolbarSearch:ti})],iz);let iK=(0,c.P9)(iz),iG=(0,v.A)(iK,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"feature-flags-tab"},[e.isLoading?t("ToolbarLoader",{staticClass:"simple-loader"}):e._e(),e._v(" "),t("ToolbarLoaderScreen",{attrs:{isLoading:e.isBusy,message:e.busyMessage}}),e._v(" "),e.errorMessage?[t("div",{staticClass:"error"},[e._v(e._s(e.errorMessage))])]:e._e(),e._v(" "),e.sortedFlags?t("div",{staticClass:"toolbar-table"},[t("div",{staticClass:"toolbar-table-filter"},[t("ToolbarSearch",{attrs:{text:"Filter feature flags"},model:{value:e.query,callback:function(t){e.query=t},expression:"query"}}),e._v(" "),t("div",{staticClass:"total"},[e._v("\n Total: "+e._s(e.sortedFlags.length)+"\n ")])],1),e._v(" "),e._m(0),e._v(" "),t("div",{staticClass:"toolbar-table-body"},e._l(e.flagsToDisplay,function(s,r){return t("div",{key:r,staticClass:"toolbar-table-row"},[t("div",{staticClass:"toolbar-table-column name"},[e._v(e._s(e.generateFlagName(s)))]),e._v(" "),t("div",{staticClass:"toolbar-table-column"},[e._v(e._s(s))]),e._v(" "),t("div",{staticClass:"toolbar-table-column"},[e._v("...")]),e._v(" "),t("div",{staticClass:"toolbar-table-column"},[t("ToolbarSpeedCheckbox",{attrs:{value:e.featureFlags[s]},on:{change:t=>e.handleChange(s,t)}})],1)])}
5),0)]):e._e()],2)},[function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"toolbar-table-header"},[e("div",{staticClass:"toolbar-table-row"},[e("div",{staticClass:"toolbar-table-column"},[this._v("Name")]),this._v(" "),e("div",{staticClass:"toolbar-table-column"},[this._v("Code")]),this._v(" "),e("div",{staticClass:"toolbar-table-column"},[this._v("Description")]),this._v(" "),e("div",{staticClass:"toolbar-table-column"},[this._v("Value")])])])}],!1,null,"75f7ac06",null).exports;var iq=s(35837),iH=s(19959),iX=s(7509),iW=s(51025),iY=s(78161),iJ=s(40207),iQ=s(87356);function iZ(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class i0 extends c.$G{get activePageSource(){return this.gToolbarEditorService.state.pageSource}handleSourceChange(e){this.gToolbarEditorService.setPageSource(e)}get apiUrl(){return this.gToolbarEditorService.state.apiUrl}set apiUrl(e){this.gToolbarEditorService.setApiUrl(e)}get accessToken(){return this.gToolbarEditorService.state.accessToken}set accessToken(e){this.gToolbarEditorService.setAccessToken(e)}get externalAccessToken(){return this.gToolbarEditorService.state.externalAccessToken}set externalAccessToken(e){this.gToolbarEditorService.setExternalAccessToken(e)}get pageIds(){return this.gToolbarEditorService.state.pageIds}set pageIds(e){this.gToolbarEditorService.setPageIds(e)}get pageSourceAdafir(){return this.activePageSource===iJ.U.ADAFIR}get adafirPlace(){return this.gToolbarEditorService.state.adafir.place}set adafirPlace(e){this.gToolbarEditorService.setAdafirPlace(e)}get clientName(){return this.gToolbarEditorService.state.adafir.clientName}set clientName(e){this.gToolbarEditorService.setClientName(e)}get adafirZone(){return this.gToolbarEditorService.state.adafir.zone}set adafirZone(e){this.gToolbarEditorService.setAdafirZone(e)}get minifyScripts(){return this.gToolbarEditorService.state.minifyScripts}set minifyScripts(e){this.gToolbarEditorService.setMinifyScripts(e)}get activeEnv(){return this.gToolbarEditorService.state.adafir.env}get useSSR(){return this.gToolbarEditorService.state.ssr}set useSSR(e){this.gToolbarEditorService.setSSR(e)}get injectIntoIsland(){return this.gToolbarEditorService.state.injectIntoIsland||!1}set injectIntoIsland(e){this.gToolbarEditorService.setInjectIntoIsland(e)}get isHeaderVisible(){return this.gToolbarEditorService.state.isHeaderVisible||!1}set isHeaderVisible(e){this.gToolbarEditorService.setIsHeaderVisible(e)}handleAdafirEnvChange(e){this.gToolbarEditorService.setAdafirEnv(e)}get buttonDisabled(){return!this.gToolbarEditorService.formValid||!this.isComponentLoaded}get clearDisabled(){var e;return!(null==(e=this.gEditorDirectContentService.content)?void 0:e.length)}get isComponentLoaded(){return this.gEditorDirectContentService.state.loaded}handleClear(){this.gEditorDirectContentService.content=[]}redirectToSSR(){let{apiUrl:e,accessToken:t,pageIds:s,ssr:r}=this.gToolbarEditorService.state,i=`?hash=e7a160d2&ssr=${r}&apiUrl=${e}&token=${t}&pageIds=${s}&enableDebugBar=1`;window.location.search=i}handleSubmit(){(this.saveFormData(),this.gToolbarEditorService.state.ssr)?this.redirectToSSR():(this.gEditorDirectContentService.ssr=this.gToolbarEditorService.state.ssr,this.pageSourceAdafir?this.gToolbarEditorService.loadAdafirContent():this.gToolbarEditorService.loadContent())}saveFormData(){let e={...this.gToolbarEditorService.state,componentLoaded:!1,loadedContent:[]};this.gUserStorage.set("Spark:Toolbar.EditorData",e)}async $mounted(){let e=this.gUserStorage.get("Spark:Toolbar.EditorData");!function(e){if(null==e)return!0;if((0,iX.X)(e))return("function"==typeof e.splice||"string"==typeof e||!!(0,iH.P)(e)||!!(0,iY.i)(e)||!!(0,iW.N)(e))&&0===e.length;if("object"==typeof e||"function"==typeof e){let t;if(e instanceof Map||e instanceof Set)return 0===e.size;let s=Object.keys(e);return(t=e?.constructor,e===("function"==typeof t?t.prototype:Object.prototype))?0===s.filter(e=>"constructor"!==e).length:0===s.length}return!0}(e)&&(this.apiUrl=e.apiUrl,this.accessToken=e.accessToken,this.externalAccessToken=e.externalAccessToken,this.pageIds=e.pageIds,this.adafirPlace=e.adafir.place,this.adafirZone=e.adafir.zone,this.handleSourceChange(e.pageSource),this.minifyScripts=e.minifyScripts,this.useSSR=e.ssr)}constructor(...e){super(...e),this.SOURCE_ADAFIR=iJ.U.ADAFIR,this.SOURCE_EDITOR=iJ.U.EDITOR,this.ENV_PROD=iJ.S.PROD,this.ENV_RC=iJ.S.RC,this.ENV_PRE=iJ.S.PRE}}iZ([(0,u.y_)(iq.A)],i0.prototype,"gToolbarEditorService",void 0),iZ([(0,u.y_)(iQ.fA)],i0.prototype,"gE
5ditorDirectContentService",void 0),iZ([(0,u.y_)(_.ff)],i0.prototype,"gUserStorage",void 0),i0=iZ([(0,c.XF)({ToolbarSpeedCheckbox:rU})],i0);let i1=(0,c.P9)(i0),i3=(0,v.A)(i1,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"editor-tab"},[t("div",{staticClass:"toolbar-header"},[e._v("Editor")]),e._v(" "),e.isComponentLoaded?e._e():[e._m(0)],e._v(" "),t("div",{staticClass:"form"},[t("div",{staticClass:"form-item"},[t("label",{attrs:{for:"apiUrl"}},[e._v("Editor API URL")]),e._v(" "),t("div",{staticClass:"envs editor"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.apiUrl,expression:"apiUrl"}],attrs:{id:"apiUrl",type:"text",placeholder:"https://editor.enp.pl/api"},domProps:{value:e.apiUrl},on:{input:function(t){t.target.composing||(e.apiUrl=t.target.value)}}})])]),e._v(" "),t("div",{staticClass:"form-item"},[t("label",{attrs:{for:"accessToken"}},[e._v("Editor access token")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.accessToken,expression:"accessToken"}],attrs:{id:"accessToken",type:"text",placeholder:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ"},domProps:{value:e.accessToken},on:{input:function(t){t.target.composing||(e.accessToken=t.target.value)}}})]),e._v(" "),t("div",{staticClass:"form-item"},[t("label",[e._v("Page source")]),e._v(" "),t("div",{staticClass:"sources"},[t("button",{class:{"is-active":e.activePageSource===e.SOURCE_ADAFIR},on:{click:function(t){return e.handleSourceChange(e.SOURCE_ADAFIR)}}},[e._v("Adafir")]),e._v(" "),t("button",{class:{"is-active":e.activePageSource!==e.SOURCE_ADAFIR},on:{click:function(t){return e.handleSourceChange(e.SOURCE_EDITOR)}}},[e._v("Editor")])])]),e._v(" "),e.pageSourceAdafir?[t("div",{staticClass:"form-item"},[t("label",[e._v("Adafir environment")]),e._v(" "),t("div",{staticClass:"envs"},[t("button",{class:{"is-active":e.activeEnv===e.ENV_PROD},on:{click:function(t){return e.handleAdafirEnvChange(e.ENV_PROD)}}},[e._v("PROD")]),e._v(" "),t("button",{class:{"is-active":e.activeEnv===e.ENV_RC},on:{click:function(t){return e.handleAdafirEnvChange(e.ENV_RC)}}},[e._v("RC")]),e._v(" "),t("button",{class:{"is-active":e.activeEnv===e.ENV_PRE},on:{click:function(t){return e.handleAdafirEnvChange(e.ENV_PRE)}}},[e._v("PRE")])])]),e._v(" "),t("div",{staticClass:"form-item"},[t("label",{attrs:{for:"external-token"}},[e._v("External Editor token")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.externalAccessToken,expression:"externalAccessToken"}],attrs:{id:"external-token",type:"text",placeholder:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ"},domProps:{value:e.externalAccessToken},on:{input:function(t){t.target.composing||(e.externalAccessToken=t.target.value)}}})]),e._v(" "),t("div",{staticClass:"form-item"},[t("label",{attrs:{for:"clientName"}},[e._v("Client name")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.clientName,expression:"clientName"}],attrs:{id:"clientName",type:"text",placeholder:"admin_enp0026"},domProps:{value:e.clientName},on:{input:function(t){t.target.composing||(e.clientName=t.target.value)}}})]),e._v(" "),t("div",{staticClass:"form-item"},[t("label",{attrs:{for:"place"}},[e._v("Place")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.adafirPlace,expression:"adafirPlace"}],attrs:{id:"place",type:"text",placeholder:"main"},domProps:{value:e.adafirPlace},on:{input:function(t){t.target.composing||(e.adafirPlace=t.target.value)}}})]),e._v(" "),t("div",{staticClass:"form-item"},[t("label",{attrs:{for:"zone"}},[e._v("Zone")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.adafirZone,expression:"adafirZone"}],attrs:{id:"zone",type:"text",placeholder:"new_editor"},domProps:{value:e.adafirZone},on:{input:function(t){t.target.composing||(e.adafirZone=t.target.value)}}})])]:t("div",{staticClass:"form-item"},[t("label",{attrs:{for:"pageIds"}},[e._v("Page IDs")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.pageIds,expression:"pageIds"}],attrs:{id:"pageIds",type:"text",placeholder:"32154, 23215"},domProps:{value:e.pageIds},on:{input:function(t){t.target.composing||(e.pageIds=t.target.value)}}})]),e._v(" "),t("div",{staticClass:"form-item"},[t("label",{attrs:{for:"minification"}},[e._v("Page script minification")]),e._v(" "),t("ToolbarSpeedCheckbox",{model:{value:e.minifyScripts,callback:function(t){e.minifyScripts=t},expression:"minifyScripts"}})],1),e._v(" "),t("div",{staticClass:"form-item"},[t("label",{attrs:{for:"ssr"}},[e._v("SSR")]),e._v(" "),t("ToolbarSpeedCheckbox",{model:{value:e.useSSR,callback:function(t){e.useSSR=t},expression:"useSSR"}})],1),e._v(" "),t("div",{staticClass:"form-item"},[t("label",{attrs:{for:"injectIntoIsland"}}
5,[e._v("Inject into island")]),e._v(" "),t("ToolbarSpeedCheckbox",{model:{value:e.injectIntoIsland,callback:function(t){e.injectIntoIsland=t},expression:"injectIntoIsland"}})],1),e._v(" "),t("div",{staticClass:"form-item"},[t("label",{attrs:{for:"isHeaderVisible"}},[e._v("Show header")]),e._v(" "),t("ToolbarSpeedCheckbox",{model:{value:e.isHeaderVisible,callback:function(t){e.isHeaderVisible=t},expression:"isHeaderVisible"}})],1),e._v(" "),t("div",{staticClass:"form-item"},[t("button",{staticClass:"clear",class:{disabled:e.clearDisabled},on:{click:e.handleClear}},[e._v("Clear content")]),e._v(" "),t("button",{staticClass:"submit",class:{disabled:e.buttonDisabled},attrs:{disabled:e.buttonDisabled},on:{click:e.handleSubmit}},[e._v("Load content")])])],2)],2)},[function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"alert"},[e("div",{staticClass:"header"},[this._v("Warning!")]),this._v(" "),e("div",{staticClass:"text"},[this._v("\n The component used to load the contents of the Editor is not mounted. Tab functionality is disabled.\n ")])])}],!1,null,"3434cb79",null).exports;function i2(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class i9 extends c.$G{get name(){return this.item.name}get data(){return this.item.diff}handleToggle(){this.open=!this.open}constructor(...e){super(...e),this.open=!1}}i2([(0,c.kv)()],i9.prototype,"item",void 0),i9=i2([(0,c.XF)({ToolbarDataView:eV})],i9);let i5=(0,c.P9)(i9),i7=(0,v.A)(i5,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"config-history-item toolbar-table-row"},[t("div",{staticClass:"toolbar-table-column arrow",on:{click:function(t){return t.preventDefault(),e.handleToggle.apply(null,arguments)}}},[t("UIIcon",{class:{"is-open":e.open},attrs:{name:"toolbar-arrow"}})],1),e._v(" "),t("div",{staticClass:"toolbar-table-column name",on:{click:function(t){return t.preventDefault(),e.handleToggle.apply(null,arguments)}}},[e._v("\n "+e._s(e.name)+"\n ")]),e._v(" "),e.open?t("div",{staticClass:"toolbar-table-details"},[t("ToolbarDataView",{attrs:{value:e.data}})],1):e._e()])},[],!1,null,"c0a0ceca",null).exports;function i8(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class i4 extends c.$G{async loadConfigs(){try{let e=await fetch("/spark-api/toolbar/config");if(!e.ok)return;let t=await e.json();this.configs=t.config,this.history=t.history}catch(e){this.gLogger.warn("ConfigTab","Cannot get app configs")}finally{this.isLoading=!1}}async $mounted(){await this.loadConfigs()}constructor(...e){super(...e),this.isLoading=!0,this.activeTab="front",this.configs=null,this.history=null}}i8([(0,G.A)(_.Fd)],i4.prototype,"gLogger",void 0),i4=i8([(0,c.XF)({UITabs:el.A,UITabsPane:ec.A,ToolbarLoader:eu.default,ToolbarDataView:eV,ConfigHistoryItem:i7})],i4);let i6=(0,c.P9)(i4),ae=(0,v.A)(i6,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"config-tab"},[e.isLoading?t("ToolbarLoader",{staticClass:"simple-loader"}):t("UITabs",{attrs:{type:"card",showUnderline:!0,useLongLine:!0,maxDepth:1},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[t("UITabsPane",{attrs:{label:"front",displayName:"Front"}},[t("ToolbarDataView",{attrs:{value:e.configs.front,openOnStart:""}})],1),e._v(" "),t("UITabsPane",{attrs:{label:"server",displayName:"Server"}},[t("ToolbarDataView",{attrs:{value:e.configs.server,openOnStart:""}})],1),e._v(" "),t("UITabsPane",{attrs:{label:"history",displayName:"History"}},[t("div",{staticClass:"toolbar-header"},[e._v("Front mutators history")]),e._v(" "),t("div",{staticClass:"toolbar-table-body"},e._l(e.history.front,function(e,s){return t("ConfigHistoryItem",{key:s,attrs:{item:{name:s,diff:e}}
5})}),1),e._v(" "),t("div",{staticClass:"toolbar-header"},[e._v("Server mutators history")]),e._v(" "),t("div",{staticClass:"toolbar-table-body"},e._l(e.history.server,function(e,s){return t("ConfigHistoryItem",{key:s,attrs:{item:{name:s,diff:e}}})}),1)])],1)],1)},[],!1,null,"8477ae52",null).exports;var at=s(38873);function as(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class ar extends c.$G{get visibleColumns(){return this.gToolbarHarvesterMonitorService.visibleColumns}handleDataPreviewVisibility(){this.dataPreviewOpen=!this.dataPreviewOpen}constructor(...e){super(...e),this.dataPreviewOpen=!1}}as([(0,G.A)(at.A)],ar.prototype,"gToolbarHarvesterMonitorService",void 0),as([(0,c.kv)()],ar.prototype,"entry",void 0),ar=as([(0,c.XF)({ToolbarDataView:eV})],ar);let ai=(0,c.P9)(ar),aa=(0,v.A)(ai,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"harvester-tab-entry toolbar-table-row"},[t("div",{staticClass:"toolbar-table-column arrow",on:{click:function(t){return t.preventDefault(),e.handleDataPreviewVisibility.apply(null,arguments)}}},[t("UIIcon",{class:{"is-open":e.dataPreviewOpen},attrs:{name:"toolbar-arrow"}})],1),e._v(" "),e._l(e.visibleColumns,function(s){return t("div",{key:`data_${s.accessor}`,class:`toolbar-table-column column-${s.accessor}`},[e._v("\n "+e._s(e.entry.harvesterEvent[s.accessor])+"\n ")])}),e._v(" "),e.dataPreviewOpen?t("div",{staticClass:"toolbar-table-details"},[t("ToolbarDataView",{attrs:{value:e.entry.harvesterEvent}})],1):e._e()],2)},[],!1,null,"7aebbc34",null).exports;function an(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class ao extends c.$G{get visibleColumns(){return this.gToolbarHarvesterMonitorService.visibleColumns}get entries(){return this.gToolbarHarvesterMonitorService.filteredAndSortedEntries}get sortValue(){return this.gToolbarHarvesterMonitorService.state.sortValue}getChoices(e){return this.gToolbarHarvesterMonitorService.getChoices(e)}handleFilter(e,t){this.gToolbarHarvesterMonitorService.handleFilter(e,t)}handleSort(e){this.gToolbarHarvesterMonitorService.handleSort(e)}}an([(0,G.A)(at.A)],ao.prototype,"gToolbarHarvesterMonitorService",void 0),ao=an([(0,c.XF)({ToolbarFilterColumn:e7,ToolbarSortableColumn:te,HarvesterTabEntry:aa})],ao);let al=(0,c.P9)(ao),ac=(0,v.A)(al,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"harvester-tab"},[t("div",{staticClass:"toolbar-table-header"},[t("div",{staticClass:"toolbar-table-row"},[t("div",{staticClass:"toolbar-table-column column-dropdown"}),e._v(" "),e._l(e.visibleColumns,function(s){return[s.filterable?t("ToolbarFilterColumn",{key:s.accessor,class:`toolbar-table-column column-${s.accessor}`,attrs:{choices:e.getChoices(s.accessor),filterType:"text"},on:{filter:t=>e.handleFilter(s.accessor,t)}},[e._v("\n "+e._s(s.displayName)+"\n ")]):s.sortable?t("ToolbarSortableColumn",{key:s.accessor,staticClass:"toolbar-table-column",attrs:{sort:s.accessor,selectedSort:e.sortValue},on:{sort:e.handleSort}},[e._v("\n "+e._s(s.displayName)+"\n ")]):t("div",{key:s.accessor,class:`toolbar-table-column column-${s.accessor}`},[e._v("\n Payload\n ")])]})],2)]),e._v(" "),t("div",{staticClass:"toolbar-table-body"},e._l(e.entries,function(e,s){return t("HarvesterTabEntry",{key:s,attrs:{entry:e}})}),1)])},[],!1,null,"36022d5c",null).exports;var au=s(33960),ad=s(28764);function ah(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class ap extends c.$G{async clearCart(){try{var e;this.isLoading=!0,this.isError=!1,this.isSuccess=!1;let t=null==(e=this.gWishListManagerService)?void 0:e.getDefaultWishListByType(ig.Ew.ETypes.WAIT
5LIST),[s]=await Promise.all([this.gAdafirApi.delete("/carts",{}),null==t?void 0:t.clear()]);if(!s.isOk){this.isError=!0;return}this.isSuccess=!0}catch(e){this.isError=!0,this.gLogger.warn("CartTab:clearCart","Cannot clear cart",e)}finally{this.isLoading=!1}}constructor(...e){super(...e),this.isLoading=!1,this.isError=!1,this.isSuccess=!1}}ah([(0,u.y_)(ad.xg)],ap.prototype,"gAdafirApi",void 0),ah([(0,u.UN)(iv.mj)],ap.prototype,"gWishListManagerService",void 0),ah([(0,u.y_)(_.Fd)],ap.prototype,"gLogger",void 0),ap=ah([(0,c.XF)({ToolbarLoader:eu.default})],ap);let av=(0,c.P9)(ap),af=(0,v.A)(av,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"content"},[t("div",{staticClass:"label"},[e._v("Clear current cart")]),e._v(" "),t("button",{staticClass:"button",on:{click:function(t){return e.clearCart()}}},[e.isLoading?t("ToolbarLoader",{staticClass:"loader"}):t("span",[e._v("Clear")])],1),e._v(" "),t("div",{staticClass:"text"},[e.isSuccess?t("span",{staticClass:"success"},[e._v("Success!")]):e._e(),e._v(" "),e.isError?t("span",{staticClass:"error"}
5,[e._v("Error! Cannot clear cart")]):e._e()])])},[],!1,null,"0d727402",null).exports;var ag=s(96933);function a_(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class ab extends c.$G{get cart(){var e,t;return null!=(e=null==(t=this.gCartDebugService.state.data)?void 0:t.cart)?e:null}get prices(){var e,t;return null!=(e=null==(t=this.gCartDebugService.state.data)?void 0:t.prices)?e:null}}a_([(0,G.A)(ag.A)],ab.prototype,"gCartDebugService",void 0),ab=a_([(0,T.A)(),(0,c.XF)({UILoader:rS.Ay})],ab);let ay=(0,c.P9)(ab),am=(0,v.A)(ay,function(){var e=this._self._c;return this._self._setupProxy,this.cart?e("div",{staticClass:"cart-debug-main"},[e("div",{staticClass:"title"},[this._v("Dane podstawowe")]),this._v(" "),e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("Numer koszyka")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.cart.cart_number))])]),this._v(" "),e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("Suma koszyka (kwota)")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.cart.total))])]),this._v(" "),e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("Waluta")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.cart.currency))])]),this._v(" "),this.prices?e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("Rabat")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.prices.additionalTotalPromo.amount))])]):this._e()]):this._e()},[],!1,null,"245d9ff2",null).exports;function aC(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class aT extends c.$G{get pos(){var e,t,s;return null!=(e=null==(s=this.gCartDebugService.state.data)||null==(t=s.cart)?void 0:t.pos)?e:null}get realizePos(){var e,t,s;return null!=(e=null==(s=this.gCartDebugService.state.data)||null==(t=s.cart)?void 0:t.realize_pos)?e:null}}aC([(0,G.A)(ag.A)],aT.prototype,"gCartDebugService",void 0),aC([(0,c.kv)({default:"desktop"})],aT.prototype,"variant",void 0),aT=aC([(0,T.A)()],aT);let aS=(0,c.P9)(aT),aP=(0,v.A)(aS,function(){var e=this._self._c;return this._self._setupProxy,this.pos||this.realizePos?e("div",{staticClass:"cart-debug-pos",class:`is-${this.variant}-toolbar`},[e("div",{staticClass:"title"},[this._v("Dane POS")]),this._v(" "),this.pos?[e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("POS")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.pos.code)+" - "+this._s(this.pos.name)+" (ID "+this._s(this.pos.id)+")")])])]:this._e(),this._v(" "),this.realizePos?[e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("POS realizujÄ
cy")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.realizePos.code)+" - "+this._s(this.realizePos.name)+" (ID: "+this._s(this.realizePos.id)+")")])])]:this._e()],2):this._e()},[],!1,null,"4bf028a7",null).exports;function ak(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class aR extends c.$G{get promotions(){var e,t;return null!=(e=null==(t=this.gCartDebugService.state.data)?void 0:t.promotions)?e:[]}}ak([(0,G.A)(ag.A)],aR.prototype,"gCartDebugService",void 0),aR=ak([(0,T.A)()],aR);let aw=(0,c.P9)(aR),aA=(0,v.A)(aw,function(){var e=this,t=e._self._c;return e._self._setupProxy,e.promotions.length?t("div",{staticClass:"cart-debug-pos"},[t("div",{staticClass:"title"},[e._v("NaÅożone promocje")]),e._v(" "),t("ul",{staticClass:"list"},e._l(e.promotions,function(s){return t("li",{key:s.id,staticClass:"item"},[e._v("\n "+e._s(s.name)+" (ID: "+e._s(s.id)+")\n ")])}
5),0)]):e._e()},[],!1,null,"223c13d8",null).exports;function aE(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class aO extends c.$G{get instructions(){var e,t;let s=null!=(e=null==(t=this.gCartDebugService.state.data)?void 0:t.instructions_promotion_v2)?e:[],r=[];return s.length&&s.forEach(e=>{var t,s,i,a,n,o,l,c,u,d,h,p,v,f,g,_;r.push({hash:null!=(t=null==(u=e.item_identifier)?void 0:u.hash)?t:"",benefit_id:null!=(s=null==(d=e.benefit)?void 0:d.benefit_id)?s:"",promotion_id:null!=(i=null==(h=e.benefit)?void 0:h.promotion_id)?i:"",discount_amount:null!=(a=null==(p=e.discount)?void 0:p.amount)?a:"",discount_currency:null!=(n=null==(v=e.discount)?void 0:v.currency)?n:"",index:null!=(o=null==(f=e.item_identifier)?void 0:f.index)?o:"",product_id:null!=(l=null==(g=e.item_identifier)?void 0:g.product_id)?l:"",service_id:null!=(c=null==(_=e.item_identifier)?void 0:_.service_id)?c:""})}),r}}aE([(0,G.A)(ag.A)],aO.prototype,"gCartDebugService",void 0),aO=aE([(0,T.A)()],aO);let aD=(0,c.P9)(aO),ax=(0,v.A)(aD,function(){var e=this,t=e._self._c;return e._self._setupProxy,e.instructions.length?t("div",[t("div",{staticClass:"title"},[e._v("Instrukcje promocji 2.0")]),e._v(" "),t("ul",{staticClass:"list"},e._l(e.instructions,function(s){return t("li",{key:s.hash,staticClass:"item"},[t("span",{staticClass:"label"},[e._v("Benefit ID:")]),e._v(" "+e._s(s.benefit_id)),t("br"),e._v(" "),t("span",{staticClass:"label"},[e._v("Promotion ID:")]),e._v(" "+e._s(s.promotion_id)),t("br"),e._v(" "),t("span",{staticClass:"label"},[e._v("Discount:")]),e._v(" "+e._s(s.discount_amount)+" ("+e._s(s.discount_currency)+")"),t("br"),e._v(" "),t("span",{staticClass:"label"},[e._v("Index:")]),e._v(" "+e._s(s.index)),t("br"),e._v(" "),t("span",{staticClass:"label"},[e._v("Product ID:")]),e._v(" "+e._s(s.product_id)),t("br"),e._v(" "),t("span",{staticClass:"label"},[e._v("Service ID:")]),e._v(" "+e._s(s.service_id)+"\n ")])}),0)]):e._e()},[],!1,null,"a2fe031a",null).exports;function aI(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class aN extends c.$G{get cart(){var e,t;return null!=(e=null==(t=this.gCartDebugService.state.data)?void 0:t.cart)?e:null}get boxPackers(){var e,t;return null!=(e=null==(t=this.gCartDebugService.state.data)?void 0:t.box_packer_info)?e:[]}}aI([(0,G.A)(ag.A)],aN.prototype,"gCartDebugService",void 0),aI([(0,c.kv)({default:"desktop"})],aN.prototype,"variant",void 0),aN=aI([(0,c.XF)({CartDebugBoxPackersMain:()=>s.e(6470).then(s.bind(s,63243))})],aN);let aj=(0,c.P9)(aN),aL=(0,v.A)(aj,function(){var e=this._self._c;return this._self._setupProxy,this.cart.transport_id?e("div",{staticClass:"cart-debug-transport",class:`is-${this.variant}-toolbar`},[e("div",{staticClass:"title"},[this._v("Transport i pÅatnoÅÄ")]),this._v(" "),this.cart.transport_id&&this.cart.transport_name?e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("Transport")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.cart.transport_name)+" (ID: "+this._s(this.cart.transport_id)+")")])]):this._e(),this._v(" "),this.cart.transport_method_id&&this.cart.transport_method_name?e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("Grupa transportu")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.cart.transport_method_name)+" (ID: "+this._s(this.cart.transport_method_id)+")")])]):this._e(),this._v(" "),e("div",{staticClass:"separator"}),this._v(" "),this.boxPackers.length?[e("CartDebugBoxPackersMain",{attrs:{boxPackers:this.boxPackers}}),this._v(" "),e("div",{staticClass:"separator"})]:this._e(),this._v(" "),this.cart.payment_id&&this.cart.payment_name?e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("PÅatnoÅÄ")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.cart.payment_name)+" (ID: "+this._s(this.cart.payment_id)+")")])]):this._e(),this._v(" "),this.cart.payment_group_id&&this.cart.payment_group_name?e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("Grupa pÅatnoÅci")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.cart.payment_group_name)+" (ID: "+this._s(this.cart.payment_group_id)+")")])]):this._e()],2):this._e()},[],!1,null,"227eec76",null).exports;function aF(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class aU extends c.$G{}aF([(0,c.kv)()],aU.prototype,"product",void 0),aU=aF([(0,T.A)()],aU);let aM=(0,c.P9)(aU),a$=(0,v.A)(aM,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"cart-debug-product-details"},[e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("Nazwa")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.product.name))])]),this._v(" "),e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("ID produktu")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.product.productId))])]),this._v(" "),e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("ID oferty")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.product.offerId))])]),this._v(" "),e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("Erp Id")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.product.erpId))])]),this._v(" "),e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("Id szablonu produktu")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.product.productTemplateId))])]),this._v(" "),e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("Data utworzenia pozycji zam\xf3wienia")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.product.createdAt))])]),this._v(" "),e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("DostÄpnoÅÄ")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.product.availability))])]),this._v(" "),e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("Kod pocztowy")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.product.postcode))])]),this._v(" "),e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("Hash produkt\xf3w")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.product.itemHash))])]),this._v(" "),e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("POS")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.product.pos))])]),this._v(" "),e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("Magazyn")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.product.warehouse))])]),this._v(" "),e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("Typ magazynu")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.product.type))])]),this._v(" "),e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("Użyta strategia")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.product.strategy))])]),this._v(" "),e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("Transport")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.product.transport))])]),this._v(" "),e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("Typ logistyczny")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.product.logisticType))])]),this._v(" "),e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("Typ logistyczny priorytet")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.product.logisticTypePriority))])])])},[],!1,null,"5048be85",null).exports;function aB(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class aV extends c.$G{get transports(){var e,t,s,r;if(!(null==(t=this.gCartDebugService.state)||null==(e=t.data)?void 0:e.transport_price))return[];let i=null==(r=this.gCartDebugService.state)||null==(s=r.data)?void 0:s.transport_price[Number(this.product.productId)];return Object.keys(i).length?Object.values(i):[]}get defaultTransportId(){var e,t,s;return null!=(e=null==(s=this.gCartDebugService.state.data)||null==(t=s.cart)?void 0:t.transport_id)?e:0}isTransportSelected(e){return Number(e.transport_id)===this.defaultTransportId}}aB([(0,G.A)(ag.A)],aV.prototype,"gCartDebugService",void 0),aB([(0,c.kv)()],aV.prototype,"product",void 0),aV=aB([(0,T.A)()],aV);let az=(0,c.P9)(aV),aK=(0,v.A)(az,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"cart-debug-product-transports"},[t("table",[e._m(0),e._v(" "),t("tbody",e._l(e.transports,function(s){return t("tr",{key:s.transport_id,class:{"
5is-selected":e.isTransportSelected(s)}},[t("td",[e._v(e._s(s.transport_name))]),e._v(" "),t("td",[e._v(e._s(s.multiplicity))]),e._v(" "),t("td",[e._v(e._s(s.priority))]),e._v(" "),t("td",[t("span",{staticClass:"table-price"},[e._v(e._s(s.price_netto_first)+" netto")]),e._v(" "),t("span",{staticClass:"table-price"},[e._v(e._s(s.price_brutto_first)+" brutto")])]),e._v(" "),t("td",[t("span",{staticClass:"table-price"},[e._v(e._s(s.price_netto)+" netto")]),e._v(" "),t("span",{staticClass:"table-price"},[e._v(e._s(s.price)+" brutto")])]),e._v(" "),t("td",["1"===s.transferable?[e._v("Tak")]:[e._v("Nie")]],2),e._v(" "),t("td",[e._v(e._s(s.strategy_name))])])}),0)])])},[function(){var e=this._self._c;return this._self._setupProxy,e("thead",[e("tr",[e("th",[this._v("Transport")]),this._v(" "),e("th",[this._v("KrotnoÅÄ")]),this._v(" "),e("th",[this._v("Priorytet")]),this._v(" "),e("th",[this._v("Pierwsza sztuka")]),this._v(" "),e("th",[this._v("Kolejna sztuka")]),this._v(" "),e("th",[this._v("Cennik transferowy")]),this._v(" "),e("th",[this._v("Strategia")])])])}],!1,null,"1d3e3a28",null).exports;function aG(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class aq extends c.$G{stockItemQuantity(e){return Object.keys(e)[0]}stockItemWarehouse(e){return Object.values(e)[0]}}aG([(0,c.kv)()],aq.prototype,"stocks",void 0),aG([(0,c.kv)({default:"desktop"})],aq.prototype,"variant",void 0),aq=aG([(0,T.A)()],aq);let aH=(0,c.P9)(aq),aX=(0,v.A)(aH,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"cart-debug-product-stocks",class:`is-${this.variant}-toolbar`},[t("table",[e._m(0),e._v(" "),t("tbody",e._l(e.stocks.posList,function(s,r){return t("tr",{key:r},[t("td",[e._v("IloÅÄ: "+e._s(e.stockItemQuantity(s)))]),e._v(" "),t("td",[e._v(":: "+e._s(e.stockItemWarehouse(s)))])])}),0)]),e._v(" "),t("table",[e._m(1),e._v(" "),t("tbody",e._l(e.stocks.deliveryList,function(s,r){return t("tr",{key:r},[t("td",[e._v("IloÅÄ: "+e._s(e.stockItemQuantity(s)))]),e._v(" "),t("td",[e._v(":: "+e._s(e.stockItemWarehouse(s)))])])}),0)])])},[function(){var e=this._self._c;return this._self._setupProxy,e("thead",[e("tr",[e("th",{attrs:{colspan:"2"}},[this._v("Stany POS")])])])},function(){var e=this._self._c;return this._self._setupProxy,e("thead",[e("tr",[e("th",{attrs:{colspan:"2"}},[this._v("Stany Dostawa")])])])}],!1,null,"0f38ea60",null).exports;function aW(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class aY extends c.$G{}aW([(0,G.A)(ag.A)],aY.prototype,"gCartDebugService",void 0),aW([(0,c.kv)()],aY.prototype,"product",void 0),aW([(0,c.kv)()],aY.prototype,"stocks",void 0),aY=aW([(0,T.A)(),(0,c.XF)({CartDebugProductDetails:a$,CartDebugProductTransports:aK,CartDebugProductStocks:aX})],aY);let aJ=(0,c.P9)(aY),aQ=(0,v.A)(aJ,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"cart-debug-product"},[e("div",{staticClass:"title"},[this._v(this._s(this.product.name))]),this._v(" "),e("div",{staticClass:"details"},[e("div",{staticClass:"column"},[e("div",{staticClass:"subtitle"},[this._v("Szczeg\xf3Åy")]),this._v(" "),e("CartDebugProductDetails",{attrs:{product:this.product}})],1),this._v(" "),e("div",{staticClass:"column transport"},[e("div",{staticClass:"subtitle"},[this._v("Transporty")]),this._v(" "),e("CartDebugProductTransports",{attrs:{product:this.product}})],1)]),this._v(" "),e("div",{staticClass:"stocks"},[e("div",{staticClass:"subtitle"},[this._v("Stany")]),this._v(" "),e("CartDebugProductStocks",{attrs:{stocks:this.stocks}})],1)])}
5,[],!1,null,"58d23995",null).exports,aZ={simple_standalone:"SMS",warranty:"Gwarancyjne",calendar_hourly_interval:"PrzedziaÅ\xf3w godzinowych",calendar_day:"Kalendarzowe",product_hod:"Produktowych HOD"};function a0(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class a1 extends c.$G{getServiceType(){return aZ[this.service.type]}}a0([(0,c.kv)()],a1.prototype,"service",void 0),a0([(0,c.kv)({default:"desktop"})],a1.prototype,"variant",void 0),a1=a0([(0,T.A)()],a1);let a3=(0,c.P9)(a1),a2=(0,v.A)(a3,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"cart-debug-service-details",class:`is-${this.variant}-toolbar`},[e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("Nazwa")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.service.name))])]),this._v(" "),e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("ID")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.service.id))])]),this._v(" "),e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("Erp Id")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.service.erp_index))])]),this._v(" "),e("div",{staticClass:"item"},[e("div",{staticClass:"label"},[this._v("Typ usÅugi")]),this._v(" "),e("div",{staticClass:"value"},[this._v(this._s(this.getServiceType()))])])])},[],!1,null,"4e8f868f",null).exports;function a9(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class a5 extends c.$G{}a9([(0,c.kv)()],a5.prototype,"service",void 0),a5=a9([(0,T.A)(),(0,c.XF)({CartDebugServiceDetails:a2})],a5);let a7=(0,c.P9)(a5),a8=(0,v.A)(a7,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"cart-debug-additional-service"},[e("div",{staticClass:"title"},[this._v(this._s(this.service.name))]),this._v(" "),e("div",{staticClass:"details"},[e("div",{staticClass:"column"},[e("div",{staticClass:"subtitle"},[this._v("Szczeg\xf3Åy")]),this._v(" "),e("CartDebugServiceDetails",{attrs:{service:this.service}})],1)])])},[],!1,null,"75dc7354",null).exports;var a4=s(52430);function a6(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class ne extends c.$G{get products(){var e;return(null==(e=this.gCartDebugService.state.data)?void 0:e.cart_itmes)?Object.values(this.gCartDebugService.state.data.cart_itmes):[]}get services(){var e;return(null==(e=this.gCartDebugService.state.data)?void 0:e.services)?Object.values(this.gCartDebugService.state.data.services):[]}get points(){return this.gPosService.state.points}stocks(e){let t=this.stocksDelivery(e),s=this.stocksPos(e),r=[],i=[];return this.points.forEach(e=>{let a=t?t[e.warehouse_id]:null,n=s?s[e.warehouse_id]:null,o=e.warehouse;a&&r.push({[a]:o}),n&&i.push({[n]:o})}),{deliveryList:r,posList:i}}stocksDelivery(e){var t,s;return Number(e)&&(null==(t=this.gCartDebugService.state.data)?void 0:t.stocks_delivery)?null==(s=this.gCartDebugService.state.data)?void 0:s.stocks_delivery[Number(e)]:null}stocksPos(e){var t,s;return Number(e)&&(null==(t=this.gCartDebugService.state.data)?void 0:t.stocks_pos)?null==(s=this.gCartDebugService.state.data)?void 0:s.stocks_pos[Number(e)]:null}async $mounted(){this.points.length||await this.gPosService.loadPoints()}}a6([(0,G.A)(ag.A)],ne.prototype,"gCartDebugService",void 0),a6([(0,G.A)(a4.Cj)],ne.prototype,"gPosService",void 0),ne=a6([(0,T.A)(),(0,c.XF)({CartDebugProduct:aQ,CartDebugAdditionalService:a8})],ne);let nt=(0,c.P9)(ne),ns=(0,v.A)(nt,function(){var e=this,t=e._self._c;return e._self._setupProxy,e.products.length?t("div",{staticClass:"cart-debug-products"},[t("div",{staticClass:"title"},[e._v("Pozycje w koszyku")]),e._v(" "),e._l(e.products,function(s){return t("CartDebugProduct",{key:s.offerId,staticClass:"product",attrs:{product:s,stocks:e.stocks(s.productId)}})}),e._v(" "),e._l(e.services,function(s){return t("CartDebugAdditionalService",{key:s.offerId,staticClass:"service",attrs:{service:s,stocks:e.stocks(s.serviceId)}})})],2):e._e()},[],!1,null,"01d5f446",null).exports;function nr(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class ni extends c.$G{get isLoading(){return this.gCartDebugService.state.isLoading}get isError(){return this.gCartDebugService.state.isError}async $mounted(){await this.gCartDebugService.loadCartDebug()}}nr([(0,G.A)(ag.A)],ni.prototype,"gCartDebugService",void 0),ni=nr([(0,T.A)(),(0,c.XF)({CartDebugMain:am,CartDebugPos:aP,CartDebugPromotions:aA,CartDebugInstructionsPromotion:ax,CartDebugTransportAndPayment:aL,CartDebugProductsList:ns,ToolbarLoader:eu.default})],ni);let na=(0,c.P9)(ni),nn=(0,v.A)(na,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"cart-debug"},[this.isLoading?e("ToolbarLoader",{staticClass:"loader"}):!this.isLoading&&this.isError?e("div",{staticClass:"error"},[this._v("\n Cannot get cart debug. Try again later\n ")]):e("div",{staticClass:"content"},[e("CartDebugMain",{staticClass:"element"}),this._v(" "),e("CartDebugPromotions",{staticClass:"element"}),this._v(" "),e("CartDebugInstructionsPromotion",{staticClass:"element"}),this._v(" "),e("CartDebugPos",{staticClass:"element"}),this._v(" "),e("CartDebugTransportAndPayment",{staticClass:"element"}),this._v(" "),e("CartDebugProductsList",{staticClass:"element"})],1)],1)},[],!1,null,"443ee2f2",null).exports;var no=s(63853);function nl(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}
5class nc extends c.$G{get calendar(){var e,t;return null!=(e=null==(t=this.gCalendarDebugService.state.data)?void 0:t.resolve_calendar)?e:null}get selectedTransport(){var e,t;return null!=(e=null==(t=this.gCalendarDebugService.state.data)?void 0:t.selected_transport)?e:null}get selectedPayment(){var e,t;return null!=(e=null==(t=this.gCalendarDebugService.state.data)?void 0:t.selected_payment)?e:null}}nl([(0,G.A)(no.A)],nc.prototype,"gCalendarDebugService",void 0),nc=nl([(0,T.A)()],nc);let nu=(0,c.P9)(nc),nd=(0,v.A)(nu,function(){var e=this._self._c;return this._self._setupProxy,this.calendar?e("div",{staticClass:"calendar-debug-main"},[e("h2",{staticClass:"title"},[this._v("\n Dane podstawowe\n ")]),this._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"column"},[e("p",[this._v("\n WyÅwietlany kalendarz: "),e("span",[this._v(this._s(this.calendar.id)+" - "+this._s(this.calendar.name))])])]),this._v(" "),e("div",{staticClass:"column"},[e("p",[this._v("\n ZewnÄtrzne id: "),e("span",[this._v(this._s(this.calendar.external_id))])]),this._v(" "),e("p",[this._v("\n Priorytet: "),e("span",[this._v(this._s(this.calendar.priority))])])]),this._v(" "),this.selectedTransport?e("div",{staticClass:"column"},[e("p",[this._v("\n Wybrany transport:\n "),e("span",[this._v("\n "+this._s(this.selectedTransport.name)+" ("+this._s(this.selectedTransport.id)+")\n ")])]),this._v(" "),e("p",[this._v("\n Grupa transportu:\n "),this.selectedTransport.group?e("span",[this._v("\n "+this._s(this.selectedTransport.group.name)+" ("+this._s(this.selectedTransport.group.id)+")\n ")]):this._e()])]):this._e(),this._v(" "),this.selectedPayment?e("div",{staticClass:"column"},[e("p",[this._v("\n Wybrana pÅatnoÅÄ: "),e("span",[this._v(this._s(this.selectedPayment.name)+" ("+this._s(this.selectedPayment.id)+")")])]),this._v(" "),e("p",[this._v("\n Integracja pÅatnoÅci:\n "),this.selectedPayment.integration?e("span",[this._v("\n "+this._s(this.selectedPayment.integration.name)+" ("+this._s(this.selectedPayment.integration.id)+")\n ")]):this._e()]),this._v(" "),e("p",[this._v("\n Grupa pÅatnoÅci:\n "),this.selectedPayment.group?e("span",[this._v("\n "+this._s(this.selectedPayment.group.name)+" ("+this._s(this.selectedPayment.group.id)+")\n ")]):this._e()])]):this._e()])]):this._e()},[],!1,null,"53dfb96c",null).exports;function nh(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class np extends c.$G{get calendar(){var e,t;return null!=(e=null==(t=this.gCalendarDebugService.state.data)?void 0:t.resolve_calendar)?e:null}get websites(){var e,t;return null!=(e=null==(t=this.calendar)?void 0:t.websites)?e:null}get payments(){var e,t;return null!=(e=null==(t=this.calendar)?void 0:t.payments)?e:null}get transports(){var e,t;return null!=(e=null==(t=this.calendar)?void 0:t.transports)?e:null}get defaultTransport(){var e,t;return null!=(e=null==(t=this.calendar)?void 0:t.base_grid_transport)?e:null}get productLists(){var e,t;return null!=(e=null==(t=this.calendar)?void 0:t.product_lists)?e:null}get poses(){var e,t;return null!=(e=null==(t=this.calendar)?void 0:t.poses)?e:null}get selectedTransport(){var e,t;return null!=(e=null==(t=this.gCalendarDebugService.state.data)?void 0:t.selected_transport)?e:null}}nh([(0,G.A)(no.A)],np.prototype,"gCalendarDebugService",void 0),np=nh([(0,T.A)()],np);let nv=(0,c.P9)(np),nf=(0,v.A)(nv,function(){var e=this,t=e._self._c;return e._self._setupProxy,e.calendar?t("div",{staticClass:"calendar-debug-config"},[t("h2",{staticClass:"title"},[e._v("Konfiguracja kalendarza")]),e._v(" "),e._m(0),e._v(" "),t("div",{staticClass:"row"},[t("div",{staticClass:"column"},[e.websites?e._l(e.websites,function(s,r){return t("span",{key:r},[e._v("\n "+e._s(s.name)+"\n ")])}):t("span",[e._v("---")])],2),e._v(" "),t("div",{staticClass:"column"},[e.productLists?t("ul",e._l(e.productLists,function(s){return t("li",{key:s.id},[e._v("\n "+e._s(s.id)+" - "+e._s(s.name)+"\n ")])}),0):t("span",[e._v("---")])]),e._v(" "),t("div",{staticClass:"column"},[e.payments?t("ul",e._l(e.payments,function(s,r){return t("li",{key:r},[e._v("\n "+e._s(s.name)+"\n ")])}),0):t("span",[e._v("---")])]),e._v(" "),t("div",{staticClass:"column"},[e.selectedTransport?t("span",[e._v("\n "+e._s(e.selectedTransport.name)+"\n ")]):t("span",[e._v("---")])]),e._v(" "),t("div",{staticClass:"column"},[e.defaultTransport?t("span",[e._v("\n "+e._s(e.defaultTransport.name)+"\n ")]):t("span",[e._v("---")])]),e._v(" "),t("div",{staticClass:"column"},[e.transports?t("ul",e._l(e.transports,function(s,r){return t("li",{key:r},[e._v("\n "+e._s(s.name)+"\n ")])}),0):t("span",[e._v("---")])]),e._v(" "),t("div",{staticClass:"column"},[e.poses?t("ul",e._l(e.poses,function(s,r){return t("li",{key:r},[e._v("\n "+e._s(s.id)+" - "+e._s(s.code)+" - "+e._s(s.name)+"\n ")])}
5),0):t("span",[e._v("---")])])])]):e._e()},[function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"row is-header"},[e("div",{staticClass:"column"},[this._v("\n Serwisy\n ")]),this._v(" "),e("div",{staticClass:"column"},[this._v("\n Lista produktowa\n ")]),this._v(" "),e("div",{staticClass:"column"},[this._v("\n PÅatnoÅci\n ")]),this._v(" "),e("div",{staticClass:"column"},[this._v("\n Typ transportu\n ")]),this._v(" "),e("div",{staticClass:"column"},[this._v("\n Bazowy transport\n ")]),this._v(" "),e("div",{staticClass:"column"},[this._v("\n Lista transport\xf3w\n ")]),this._v(" "),e("div",{staticClass:"column"},[this._v("\n Lista POS\n ")])])}],!1,null,"eb341320",null).exports;var ng=s(28606);function n_(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class nb extends c.$G{}n_([(0,c.kv)()],nb.prototype,"serviceConditions",void 0),n_([(0,c.kv)({default:!1,type:Boolean})],nb.prototype,"showColors",void 0),nb=n_([(0,T.A)(),(0,c.XF)({CalendarDebugServiceSubConditions:ng.default})],nb);let ny=(0,c.P9)(nb),nm=(0,v.A)(ny,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"calendar-debug-service-conditions"},[e("p",{staticClass:"operator"},[this._v(this._s(this.$t(`Debug.operator.${this.serviceConditions.logical_operator}`)))]),this._v(" "),e("CalendarDebugServiceSubConditions",{attrs:{serviceConditions:this.serviceConditions.conditions,showColors:this.showColors}})],1)},[],!1,null,"c0665446",null).exports;function nC(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class nT extends c.$G{get calendar(){var e,t;return null!=(e=null==(t=this.gCalendarDebugService.state.data)?void 0:t.resolve_calendar)?e:null}get services(){var e,t;return null!=(e=null==(t=this.calendar)?void 0:t.services)?e:null}}nC([(0,G.A)(no.A)],nT.prototype,"gCalendarDebugService",void 0),nT=nC([(0,T.A)(),(0,c.XF)({CalendarDebugServiceConditions:nm})],nT);let nS=(0,c.P9)(nT),nP=(0,v.A)(nS,function(){var e=this,t=e._self._c;return e._self._setupProxy,e.services?t("div",{staticClass:"calendar-debug-services"},[t("h2",{staticClass:"title"},[e._v("UsÅugi dodatkowe skonfigurowane dla kalendarza")]),e._v(" "),e._m(0),e._v(" "),e._l(e.services,function(s){return t("div",{key:s.id,staticClass:"row"},[t("div",{staticClass:"column"},[e._v("\n "+e._s(s.id)+"\n ")]),e._v(" "),t("div",{staticClass:"column"},[e._v("\n "+e._s(s.type)+"\n ")]),e._v(" "),t("div",{staticClass:"column"},[e._v("\n "+e._s(s.name)+"\n ")]),e._v(" "),t("div",{staticClass:"column"},[t("CalendarDebugServiceConditions",{attrs:{serviceConditions:s.conditions}})],1)])})],2):e._e()},[function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"row is-header"},[e("div",{staticClass:"column"},[this._v("\n ID\n ")]),this._v(" "),e("div",{staticClass:"column"},[this._v("\n Typ usÅugi\n ")]),this._v(" "),e("div",{staticClass:"column"},[this._v("\n Nazwa usÅugi\n ")]),this._v(" "),e("div",{staticClass:"column"},[this._v("\n Warunki\n ")])])}],!1,null,"0ec502cb",null).exports;function nk(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class nR extends c.$G{get selectedTransport(){var e,t;return null!=(e=null==(t=this.gCalendarDebugService.state.data)?void 0:t.selected_transport)?e:null}get selectedPayment(){var e,t;return null!=(e=null==(t=this.gCalendarDebugService.state.data)?void 0:t.selected_payment)?e:null}isSelectedPayment(e){var t;return e.id===(null==(t=this.selectedPayment)?void 0:t.id)}isSelectedTransport(e){var t;return e.id===(null==(t=this.selectedTransport)?void 0:t.id)}}nk([(0,c.kv)()],nR.prototype,"candidate",void 0),nk([(0,G.A)(no.A)],nR.prototype,"gCalendarDebugService",void 0);let nw=(0,c.P9)(nR),nA=(0,v.A)(nw,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"calendar-debug-candidate row"},[t("div",{staticClass:"column"},[t("h2",[e._v("\n "+e._s(e.candidate.id)+"-"+e._s(e.candidate.name)+"\n ")]),e._v(" "),t("p",[t("strong",[e._v("ZewnÄtrzne id:")]),e._v(" "+e._s(e.candidate.external_id)+"\n ")]),e._v(" "),t("p",[t("strong",[e._v("Priorytet:")]),e._v(" "+e._s(e.candidate.priority)+"\n ")]),e._v(" "),t("p",[t("strong",[e._v("Serwisy:")]),e._v(" "),e._l(e.candidate.websites,function(s,r){return t("span",{key:r},[e._v("\n "+e._s(s.name)+",\n ")])})],2),e._v(" "),t("p",[t("strong",[e._v("PÅatnoÅci:")]),e._v(" "),e._l(e.candidate.payments,function(s,r){return t("span",{key:r,class:{"
5is-selected":e.isSelectedPayment(s)}},[e._v("\n "+e._s(s.name)+",\n ")])})],2),e._v(" "),t("p",[t("strong",[e._v("Lista transport\xf3w:")]),e._v(" "),e._l(e.candidate.transports,function(s,r){return t("span",{key:r,class:{"is-selected":e.isSelectedTransport(s)}},[e._v("\n "+e._s(s.name)+",\n ")])})],2),e._v(" "),t("p",[t("strong",[e._v("Lista POS:")]),e._v(" "),e._l(e.candidate.poses,function(s,r){return t("span",{key:r},[e._v("\n "+e._s(s.id)+" - "+e._s(s.code)+" - "+e._s(s.name)+",\n ")])})],2)]),e._v(" "),t("div",{staticClass:"column"},e._l(e.candidate.excluding_reasons,function(s,r){return t("div",{key:r,staticClass:"reason"},[t("span",[e._v(e._s(s.label))]),e._v(" "),s.reason_details.length?t("div",[e._m(0,!0),e._v(" "),t("ul",e._l(s.reason_details,function(s,r){return t("li",{key:r},[e._v("\n "+e._s(s.value)+"\n ")])}),0)]):e._e()])}),0)])},[function(){var e=this._self._c;return this._self._setupProxy,e("p",[e("strong",[this._v("Oferty:")])])}],!1,null,"bb777754",null).exports;function nE(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class nO extends c.$G{get candidates(){var e,t;return null!=(e=null==(t=this.gCalendarDebugService.state.data)?void 0:t.candidates)?e:null}}nE([(0,G.A)(no.A)],nO.prototype,"gCalendarDebugService",void 0),nO=nE([(0,c.XF)({CalendarDebugCandidate:nA})],nO);let nD=(0,c.P9)(nO),nx=(0,v.A)(nD,function(){var e=this._self._c;return this._self._setupProxy,this.candidates?e("div",{staticClass:"calendar-debug-candidates"},[e("h2",{staticClass:"title"},[this._v("Lista odrzuconych kandydat\xf3w")]),this._v(" "),this._m(0),this._v(" "),this._l(this.candidates,function(t,s){return e("CalendarDebugCandidate",{key:s,attrs:{candidate:t}})})],2):this._e()},[function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"row is-header"},[e("div",{staticClass:"column"},[this._v("\n Konfiguracja kalendarza\n ")]),this._v(" "),e("div",{staticClass:"column"},[this._v("\n Przyczyny odrzucenia\n ")])])}],!1,null,"2abe8a25",null).exports;function nI(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class nN extends c.$G{}nI([(0,c.kv)()],nN.prototype,"services",void 0),nI([(0,c.kv)({default:"",type:String})],nN.prototype,"serviceClass",void 0),nI([(0,c.kv)({default:!1,type:Boolean})],nN.prototype,"showColors",void 0),nN=nI([(0,T.A)(),(0,c.XF)({CalendarDebugServiceConditions:nm})],nN);let nj=(0,c.P9)(nN),nL=(0,v.A)(nj,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"calendar-debug-day-services"},[e.services&&e.services.length?e._l(e.services,function(s){return t("div",{key:s.id,staticClass:"service",class:e.serviceClass},[t("h3",[e._v(e._s(s.id)+" - "+e._s(s.name)+" ["+e._s(s.type)+"]")]),e._v(" "),s.excluding_reasons?t("ul",e._l(s.excluding_reasons,function(s,r){return t("li",{key:r,staticClass:"reason"},[e._v("\n "+e._s(s.label)+"\n ")])}),0):e._e(),e._v(" "),t("CalendarDebugServiceConditions",{attrs:{serviceConditions:s.conditions,showColors:e.showColors}})],1)}):t("p",[e._v("---")])],2)},[],!1,null,"5dce289a",null).exports;var nF=s(16403);function nU(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class nM extends c.$G{get isActive(){return!!this.day.enabled}get dayName(){return(0,nF.GP)(new Date(this.day.date),"i")}get date(){return(0,nF.GP)(new Date(this.day.date),"dd.MM")}}nU([(0,c.kv)()],nM.prototype,"day",void 0),nM=nU([(0,T.A)(),(0,c.XF)({CalendarDebugDayServices:nL})],nM);let n$=(0,c.P9)(nM),nB=(0,v.A)(n$,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"calendar-debug-day",class:{"
5is-active":e.isActive}},[e._m(0),e._v(" "),t("div",{staticClass:"row"},[t("div",{staticClass:"column"},[t("h2",[e._v(e._s(e.$t(`Debug.day.${e.dayName}`)))]),e._v(" "),t("p",[e._v(e._s(e.date))]),e._v(" "),e.isActive?t("p",[e._v("(DzieÅ wÅÄ
czony)")]):t("p",[e._v("(DzieÅ wyÅÄ
czony)")])]),e._v(" "),t("div",{staticClass:"column"},[e.day.disabling_reasons.length?t("ul",e._l(e.day.disabling_reasons,function(s,r){return t("li",{key:r,staticClass:"reason"},[e._v("\n "+e._s(s.label)+"\n ")])}),0):t("p",[e._v("---")])]),e._v(" "),t("div",{staticClass:"column"},[t("CalendarDebugDayServices",{attrs:{services:e.day.skipped_services,showColors:!0,serviceClass:"is-skipped"}})],1),e._v(" "),t("div",{staticClass:"column"},[t("CalendarDebugDayServices",{attrs:{services:e.day.active_services.elements,showColors:!0,serviceClass:"is-active"}})],1)])])},[function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"row is-header"},[e("div",{staticClass:"column"},[this._v("\n DzieÅ\n ")]),this._v(" "),e("div",{staticClass:"column"},[this._v("\n Pow\xf3d dlaczego dzieÅ jest wyÅÄ
czony\n ")]),this._v(" "),e("div",{staticClass:"column"},[this._v("\n Nieaktywne usÅugi\n ")]),this._v(" "),e("div",{staticClass:"column"},[this._v("\n Aktywne usÅugi\n ")])])}],!1,null,"7880fb88",null).exports;function nV(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class nz extends c.$G{get data(){var e;return null!=(e=this.gCalendarDebugService.state.data)?e:null}get days(){var e,t;return null!=(e=null==(t=this.data)?void 0:t.days)?e:null}}nV([(0,G.A)(no.A)],nz.prototype,"gCalendarDebugService",void 0),nz=nV([(0,T.A)(),(0,c.XF)({CalendarDebugDay:nB})],nz);let nK=(0,c.P9)(nz),nG=(0,v.A)(nK,function(){var e=this._self._c;return this._self._setupProxy,this.days?e("div",{staticClass:"calendar-debug-days"},[e("h2",{staticClass:"title"},[this._v("Lista dni")]),this._v(" "),this._l(this.days,function(t,s){return e("CalendarDebugDay",{key:s,attrs:{day:t}})})],2):this._e()},[],!1,null,"3d6ef77a",null).exports;function nq(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class nH extends c.$G{}nq([(0,c.kv)()],nH.prototype,"attributes",void 0),nH=nq([(0,T.A)()],nH);let nX=(0,c.P9)(nH),nW=(0,v.A)(nX,function(){var e=this,t=e._self._c;return e._self._setupProxy,e.attributes?t("div",{staticClass:"calendar-debug-attributes"},[e._m(0),e._v(" "),e._l(e.attributes,function(s,r){return t("div",{key:r,staticClass:"row"},[t("div",{staticClass:"column"},[e._v("\n "+e._s(s.type)+"\n ")]),e._v(" "),t("div",{staticClass:"column"},[e._v("\n "+e._s(s.name)+"\n ")]),e._v(" "),t("div",{staticClass:"column"},[e._v("\n "+e._s(s.value)+"\n ")])])})],2):e._e()},[function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"row is-header"},[e("div",{staticClass:"column"},[this._v("\n Typ atrybutu\n ")]),this._v(" "),e("div",{staticClass:"column"},[this._v("\n Nazwa atrybutu\n ")]),this._v(" "),e("div",{staticClass:"column"},[this._v("\n WartoÅÄ\n ")])])}],!1,null,"48be5ff9",null).exports;function nY(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class nJ extends c.$G{get isActive(){return!this.day.disabled}}nY([(0,c.kv)({required:!0})],nJ.prototype,"day",void 0),nJ=nY([(0,T.A)(),(0,c.XF)({CalendarDebugAttributes:nW})],nJ);let nQ=(0,c.P9)(nJ),nZ=(0,v.A)(nQ,function(){var e=this,t=e._self._c;return e._self._setupProxy,e.day?t("div",{staticClass:"calendar-debug-day",class:{"
5is-active":e.isActive}},[e._m(0),e._v(" "),t("div",{staticClass:"row"},[t("div",{staticClass:"column"},[t("h2",{style:{color:e.day.color}},[e._v(e._s(e.day.day_of_week))]),e._v(" "),t("p",[e._v(e._s(e.day.date))]),e._v(" "),e.day.disabled?t("p",[e._v("(DzieÅ wyÅÄ
czony)")]):t("p",[e._v("(DzieÅ wÅÄ
czony)")]),e._v(" "),t("p",{staticClass:"postscript"},[t("strong",[e._v(e._s(e.day.postscript))])]),e._v(" "),e.day.combined_day?t("p",[t("strong",[e._v("DzieÅ poÅÄ
czony")])]):e._e()]),e._v(" "),t("div",{staticClass:"column"},[e.day.notes.length?t("ul",e._l(e.day.notes,function(s){return t("li",{key:s},[e._v("\n "+e._s(s)+"\n ")])}),0):t("p",[e._v("---")])]),e._v(" "),t("div",{staticClass:"column"},[e.day.availability?[t("p",[e._v("Lokalizacja: "),t("strong",[e._v(e._s(e.day.availability.location))])]),e._v(" "),t("p",[e._v("Oferta: "),t("strong",[e._v(e._s(e.day.availability.offer_id))])]),e._v(" "),t("p",[e._v("Dostawca: "),t("strong",[e._v(e._s(e.day.availability.supplier_id))])])]:t("p",[e._v("---")])],2),e._v(" "),t("div",{staticClass:"column"},[e.day.attributes.attributes.length?t("CalendarDebugAttributes",{attrs:{attributes:e.day.attributes.attributes}}):t("p",[e._v("---")])],1),e._v(" "),t("div",{staticClass:"column"},[e.day.price?[e.day.price_before_discount?t("p",[t("s",[t("UIPrice",{attrs:{type:"default",val:e.day.price_before_discount.amount}})],1)]):e._e(),e._v(" "),t("p",[t("UIPrice",{attrs:{type:"default",val:e.day.price.amount}})],1)]:t("p",[e._v("---")])],2)])]):e._e()},[function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"row is-header"},[e("div",{staticClass:"column"},[this._v("\n DzieÅ\n ")]),this._v(" "),e("div",{staticClass:"column"},[this._v("\n Notatki\n ")]),this._v(" "),e("div",{staticClass:"column"},[this._v("\n DostÄpnoÅÄ\n ")]),this._v(" "),e("div",{staticClass:"column"},[this._v("\n Atrybuty\n ")]),this._v(" "),e("div",{staticClass:"column"},[this._v("\n Cena\n ")])])}],!1,null,"32a8e15c",null).exports;
5class n0 extends c.$G{get sortRequestOptions(){let e=new URL(this.chronosRequest,window.location.origin),t=e.pathname,s=Array.from(e.searchParams.entries()).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>({key:e,value:t}));return s.unshift({key:"endpoint",value:t}),s}async copyToClipboard(){try{await navigator.clipboard.writeText(this.chronosRequest)}catch(e){alert("Nie udaÅo siÄ skopiowaÄ.")}}}!function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);a>3&&n&&Object.defineProperty(t,s,n)}([(0,c.kv)({required:!0,type:String})],n0.prototype,"chronosRequest",void 0);let n1=(0,c.P9)(n0),n3=(0,v.A)(n1,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"calendar-debug-sent-request"},[t("details",{staticClass:"accordion"},[t("summary",{staticClass:"accordion-header"},[t("div",{staticClass:"accordion-title"},[t("h2",[e._v("\uD83D\uDD0D Request wysÅany z Adafira do Chronosa:")]),e._v(" "),t("p",{staticClass:"endpoint"},[e._v(e._s(e.chronosRequest))])]),e._v(" "),t("button",{staticClass:"copy-button",on:{click:e.copyToClipboard}},[e._v("\n \uD83D\uDCCB Kopiuj request\n ")]),e._v(" "),t("p",{staticClass:"hint"},[e._v("â¹ï¸ Hint: Kliknij, aby zobaczyÄ parametry jako lista")])]),e._v(" "),t("div",{staticClass:"accordion-body"},[t("ul",e._l(e.sortRequestOptions,function(s,r){return t("li",{key:r},[t("strong",[e._v(e._s(s.key))]),e._v(": "+e._s(s.value)+"\n ")])}),0)])])])},[],!1,null,"239f9aa0",null).exports;function n2(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class n9 extends c.$G{get chronosRequest(){var e,t;return null!=(e=null==(t=this.data)?void 0:t.chronosRequest)?e:""}get data(){var e;return null!=(e=this.gCalendarDebugService.state.data)?e:null}get days(){var e,t,s;return null!=(e=null==(s=this.data)||null==(t=s.chronosDays)?void 0:t.days)?e:null}}n2([(0,G.A)(no.A)],n9.prototype,"gCalendarDebugService",void 0),n9=n2([(0,c.XF)({CalendarDebugChronosDay:nZ,CalendarDebugSentRequest:n3})],n9);let n5=(0,c.P9)(n9),n7=(0,v.A)(n5,function(){var e=this._self._c;return this._self._setupProxy,this.days?e("div",{staticClass:"calendar-debug-days"},[e("CalendarDebugSentRequest",{attrs:{chronosRequest:this.chronosRequest}}),this._v(" "),e("h2",{staticClass:"title"},[this._v("Lista dni")]),this._v(" "),this._l(this.days,function(t,s){return e("CalendarDebugChronosDay",{key:s,attrs:{day:t}})})],2):this._e()},[],!1,null,"4ea90646",null).exports;function n8(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class n4 extends c.$G{get isLoading(){return this.gCalendarDebugService.state.isLoading}get isError(){return this.gCalendarDebugService.state.isError}get isChronos(){var e;return!!(null==(e=this.gCalendarDebugService.state.data)?void 0:e.chronosDays)}async $mounted(){await this.gCalendarDebugService.loadCalendarDebug()}}n8([(0,G.A)(no.A)],n4.prototype,"gCalendarDebugService",void 0),n4=n8([(0,T.A)(),(0,c.XF)({UILoader:rS.Ay,CalendarDebugMain:nd,CalendarDebugConfig:nf,CalendarDebugServices:nP,CalendarDebugCandidates:nx,CalendarDebugDays:nG,ToolbarLoader:eu.default,CalendarDebugChronosDays:n7})],n4);let n6=(0,c.P9)(n4),oe=(0,v.A)(n6,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"calendar-debug"},[this.isLoading?e("ToolbarLoader",{staticClass:"loader"}):!this.isLoading&&this.isError?e("div",{staticClass:"error"},[this._v("\n Cannot get calendar debug. Try again later\n ")]):e("div",{staticClass:"content"},this.isChronos?[e("CalendarDebugChronosDays",{staticClass:"element"})]:[e("CalendarDebugMain",{staticClass:"element"}),this._v(" "),e("CalendarDebugConfig",{staticClass:"element"}),this._v(" "),e("CalendarDebugServices",{staticClass:"element"}),this._v(" "),e("CalendarDebugCandidates",{staticClass:"element"}),this._v(" "),e("CalendarDebugDays",{staticClass:"element"})],1)],1)},[],!1,null,"7775cf1a",null).exports;var ot=s(92577);function os(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class or extends c.$G{}os([(0,c.kv)({type:String})],or.prototype,"name",void 0),os([(0,c.kv)({default:!1,type:Boolean})],or.prototype,"isActive",void 0),or=os([(0,T.A)()],or);let oi=(0,c.P9)(or),oa=(0,v.A)(oi,function(){var e=this._self._c;return this._self._setupProxy,e("h3",{staticClass:"service-detail-header"},[this._v("\n "+this._s(this.name)+"\n "),e("UIIcon",{staticClass:"arrow collapse-
5arrow",class:{"arrow-up":this.isActive},attrs:{name:"arrow-1"}})],1)},[],!1,null,"6f25d9ec",null).exports;function on(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class oo extends c.$G{}on([(0,c.kv)()],oo.prototype,"service",void 0),oo=on([(0,T.A)()],oo);let ol=(0,c.P9)(oo),oc=(0,v.A)(ol,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"services-primary-details"},[t("h4",[t("strong",[e._v("Name:")]),e._v(" "+e._s(e.service.name??"-"))]),e._v(" "),t("p",[t("strong",[e._v("ID:")]),e._v(" "+e._s(e.service.id??"-"))]),e._v(" "),t("p",[t("strong",[e._v("Offer ID:")]),e._v(" "+e._s(e.service.offer_id??"UsÅuga Standalone"))]),e._v(" "),t("p",[t("strong",[e._v("Price (Gross):")]),e._v(" "+e._s(e.service.price.gross?e.service.price.gross/100:"-"))]),e._v(" "),t("p",[t("strong",[e._v("Price (Net):")]),e._v(" "+e._s(e.service.price.net?e.service.price.net/100:"-"))]),e._v(" "),e.service.log?t("p",[t("strong",[e._v("Log:")])]):e._e(),e._v(" "),t("ul",e._l(e.service.log,function(s){return t("li",{key:s},[e._v(e._s(s??"-"))])}),0)])},[],!1,null,"3876a6b0",null).exports;function ou(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class od extends c.$G{get salesChannel(){var e;return null!=(e=this.service.data.sales_channel)?e:null}get configurationGroup(){var e;return null!=(e=this.service.data.configuration_group)?e:null}get frontParameter(){var e;return null!=(e=this.service.data.front_parameter)?e:null}get related(){var e;return null!=(e=this.service.data.related)?e:null}get warranty(){var e;return null!=(e=this.service.data.warranty)?e:null}toggleDetail(e){this.activeDetail===e?this.activeDetail=null:this.activeDetail=e}close(){this.$vue.$emit("close")}constructor(...e){super(...e),this.activeDetail=null}}ou([(0,c.kv)()],od.prototype,"service",void 0),od=ou([(0,T.A)(),(0,c.XF)({ServiceDetailHeader:oa,ServicePrimaryDetails:oc})],od);let oh=(0,c.P9)(od),op=(0,v.A)(oh,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"service-details"},[t("h2",[e._v("Service details review:")]),t("br"),e._v(" "),t("UIIcon",{staticClass:"close-btn",attrs:{name:"close"},on:{click:e.close}}),e._v(" "),t("ServicePrimaryDetails",{attrs:{service:e.service}}),e._v(" "),t("div",[e.configurationGroup?t("div",{staticClass:"toggle-details",on:{click:function(t){return e.toggleDetail("configuration_group")}}},[t("ServiceDetailHeader",{attrs:{isActive:"configuration_group"===e.activeDetail,name:"configuration_group"}}),e._v(" "),"configuration_group"===e.activeDetail?t("div",{staticClass:"collapse-content"},[t("p",[t("strong",[e._v("ID:")]),e._v(" "+e._s(e.configurationGroup.id??"-"))]),e._v(" "),t("p",[t("strong",[e._v("Name:")]),e._v(" "+e._s(e.configurationGroup.name??"-"))])]):e._e()],1):e._e(),e._v(" "),e.frontParameter?t("div",{staticClass:"toggle-details",on:{click:function(t){return e.toggleDetail("front_parameter")}}},[t("ServiceDetailHeader",{attrs:{isActive:"front_parameter"===e.activeDetail,name:"front_parameter"}}),e._v(" "),"front_parameter"===e.activeDetail?t("div",{staticClass:"collapse-content"},[t("p",[t("strong",[e._v("Icon:")]),e._v(" "),t("img",{attrs:{src:e.frontParameter.icon,alt:"icon"}})]),e._v(" "),t("p",[t("strong",[e._v("Color:")]),e._v(" "+e._s(e.frontParameter.color??"-"))])]):e._e()],1):e._e(),e._v(" "),e.salesChannel?t("div",{staticClass:"toggle-details",on:{click:function(t){return e.toggleDetail("sales_channel")}}},[t("ServiceDetailHeader",{attrs:{isActive:"sales_channel"===e.activeDetail,name:"sales_channel"}}),e._v(" "),"sales_channel"===e.activeDetail?t("div",{staticClass:"collapse-content"},[t("ul",e._l(e.salesChannel,function(s){return t("li",{key:s},[e._v(e._s(s??"-"))])}
5),0)]):e._e()],1):e._e(),e._v(" "),e.warranty?t("div",{staticClass:"toggle-details",on:{click:function(t){return e.toggleDetail("warranty")}}},[t("ServiceDetailHeader",{attrs:{isActive:"warranty"===e.activeDetail,name:"warranty"}}),e._v(" "),"warranty"===e.activeDetail?t("div",{staticClass:"collapse-content"},[t("p",[t("strong",[e._v("Payment Type:")]),e._v(" "+e._s(e.warranty.payment_type??"-"))]),e._v(" "),t("p",[t("strong",[e._v("Client Type:")]),e._v(" "+e._s(e.warranty.client_type??"-"))]),e._v(" "),t("p",[t("strong",[e._v("Duration (Months):")]),e._v(" "+e._s(e.warranty.warranty_duration_in_month??"-"))]),e._v(" "),t("p",[t("strong",[e._v("External Code:")]),e._v(" "+e._s(e.warranty.external_code??"-"))])]):e._e()],1):e._e(),e._v(" "),e.related?t("div",{staticClass:"toggle-details",on:{click:function(t){return e.toggleDetail("related")}}},[t("ServiceDetailHeader",{attrs:{isActive:"related"===e.activeDetail,name:"related"}}),e._v(" "),"related"===e.activeDetail?t("div",{staticClass:"collapse-content"},[e.related.advantages?t("ul",e._l(e.related.advantages,function(s){return t("li",{key:s.id},[e._v("\n Name: "+e._s(s.name??"-")),t("br"),e._v("\n Id: "+e._s(s.id??"-")+"\n ")])}),0):e._e(),e._v(" "),t("p",[t("strong",[e._v("Warranty Background:")]),e._v(" "+e._s(e.related.warranty_background??"-"))]),e._v(" "),t("p",[t("strong",[e._v("Duration (Individual):")]),e._v(" "+e._s(e.related.duration.individual??"-"))]),e._v(" "),t("p",[t("strong",[e._v("Duration (Company):")]),e._v(" "+e._s(e.related.duration.company??"-"))]),e._v(" "),t("p",[t("strong",[e._v("OWU:")]),e._v(" "+e._s(e.related.owu??"-"))])]):e._e()],1):e._e()])],1)},[],!1,null,"6e5ddd42",null).exports;function ov(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class of extends c.$G{get isError(){return this.gServicesDebugService.state.isError}get isLoading(){return this.gServicesDebugService.state.isLoading}get services(){var e;return null!=(e=this.gServicesDebugService.state.data)?e:null}get categories(){return this.fCategories}toggleCategory(e){var t;let s=null==(t=this.fCategories)?void 0:t.find(t=>t.id===e);s&&(s.show=!s.show)}filteredServices(e){if(!e.services)return null;let t=e.searchQuery.toLowerCase(),s=Number(t);return e.services.filter(e=>!isNaN(s)&&e.id.toString().includes(t)||e.name.toLowerCase().includes(t))}closeServiceDetails(){this.activeService=null}showServiceDetails(e){var t;(null==(t=this.activeService)?void 0:t.id)!==e.id&&(this.activeService=e)}async $mounted(){var e,t,s,r;await this.gServicesDebugService.loadServicesDebug(),this.fCategories=[{id:1,name:"Available",show:!1,searchQuery:"",services:null!=(e=null==(s=this.services)?void 0:s.available)?e:null},{id:2,name:"Unavailable",show:!1,searchQuery:"",services:null!=(t=null==(r=this.services)?void 0:r.unavailable)?t:null}]}constructor(...e){super(...e),this.fCategories=null,this.activeService=null}}ov([(0,G.A)(ot.A)],of.prototype,"gServicesDebugService",void 0),of=ov([(0,T.A)(),(0,c.XF)({UILoader:rS.Ay,ServiceDetails:op,ToolbarLoader:eu.default})],of);let og=(0,c.P9)(of),o_=(0,v.A)(og,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"services-debug-main"},[e.isLoading?t("ToolbarLoader",{staticClass:"loader"}):!e.isLoading&&e.isError?t("div",{staticClass:"error"},[e._v("\n Cannot get services debug. Try again later\n ")]):t("div",[e.activeService?t("ServiceDetails",{attrs:{service:e.activeService},on:{close:e.closeServiceDetails}}):e._e(),e._v(" "),e._l(e.categories,function(s){return t("div",{key:s.id,staticClass:"category"},[t("h2",{class:{collapse:s.show},on:{click:function(t){return e.toggleCategory(s.id)}}},[e._v("\n "+e._s(s.name)+"\n "),t("span",{staticClass:"count"},[e._v("("+e._s(s.services.length)+")")]),e._v(" "),t("UIIcon",{staticClass:"arrow collapse-
5arrow",class:{"arrow-up":s.show},attrs:{name:"arrow-1"}})],1),e._v(" "),s.show?t("input",{directives:[{name:"model",rawName:"v-model",value:s.searchQuery,expression:"category.searchQuery"}],staticClass:"search-box",attrs:{id:"search"+s.id,type:"text",placeholder:"Search by name or ID of service"},domProps:{value:s.searchQuery},on:{input:function(t){t.target.composing||e.$set(s,"searchQuery",t.target.value)}}}):e._e(),e._v(" "),s.services?t("div",{class:["service-list",{show:s.show}],attrs:{id:"category"+s.id}},e._l(e.filteredServices(s),function(s){return t("div",{key:s.id,staticClass:"service-item",on:{click:function(t){return e.showServiceDetails(s)}}},[t("div",[e._v("\n Name: "+e._s(s.name)),t("br"),e._v("\n ID: "+e._s(s.id)),t("br"),e._v("\n Offer ID: "+e._s(s.offer_id??"UsÅuga Standalone")),t("br"),e._v("\n Price Gross: "+e._s(s.price.gross?s.price.gross/100:"-")+"\n ")])])}),0):e._e()])})],2)],1)},[],!1,null,"154e346a",null).exports;var ob=s(92992);function oy(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class om extends c.$G{get isError(){return this.gPromotionDebugService.state.isError}get isLoading(){return this.gPromotionDebugService.state.isLoading}get promotionDebug(){var e;return null!=(e=this.gPromotionDebugService.state.data)?e:null}async $mounted(){await this.gPromotionDebugService.loadPromotionDebug()}copyPromotionSubjectToClipboard(){if(!this.promotionDebug)return void this.gLogger.warn("PromotionDebug:copyPromotionSubjectToClipboard","No promotion debug data to copy");let e=JSON.stringify(this.promotionDebug.promotion_subject,(e,t)=>"currency"===e&&"string"==typeof t?{code:t}:t,2);navigator.clipboard.writeText(e).then(()=>{this.fIsCopied=!0,setTimeout(()=>{this.fIsCopied=!1},2e3)},()=>{this.gLogger.warn("PromotionDebug:copyPromotionSubjectToClipboard","Promotion subject copy to clipboard failed")})}constructor(...e){super(...e),this.fIsCopied=!1}}oy([(0,u.y_)(ob.A)],om.prototype,"gPromotionDebugService",void 0),oy([(0,u.y_)(_.Fd)],om.prototype,"gLogger",void 0),om=oy([(0,c.XF)({ToolbarDataView:eV,ToolbarLoader:eu.default})],om);let oC=(0,c.P9)(om),oT=(0,v.A)(oC,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"promotion-debug-main"},[this.isLoading?e("ToolbarLoader"):e("div",!this.isLoading&&this.isError?[this._v("\n Cannot get promotions debug. Try again later\n ")]:[e("div",[e("button",{staticClass:"button",on:{click:this.copyPromotionSubjectToClipboard}},[e("span",this.fIsCopied?[this._v("Copied!")]:[this._v("Copy promotion subject")])]),this._v(" "),e("h4",[this._v("Promotion debug response:")]),this._v(" "),this.promotionDebug?e("ToolbarDataView",{attrs:{value:this.promotionDebug}}):this._e()],1)])],1)},[],!1,null,"627d95c9",null).exports;var oS=s(81443);class oP extends c.$G{get apkSections(){var e;return Object.entries(null!=(e=this.gApkDebugService.state.data)?e:{}).map(([e,t])=>({key:e,value:t}))}formatAsHtml(e,t=0){return"object"==typeof e&&null!==e?Object.entries(e).map(([e,s])=>{let r=" ".repeat(t),i=0===t?`<span class="apk-section-key">${e}:</span>`:`${e}:`;return"object"==typeof s&&null!==s?`${r}${i}<br>${this.formatAsHtml(s,t+2)}`:`${r}${i} <span class="apk-section-value">${String(s)}</span><br>`}).join(""):`<span class="apk-section-value">${String(e)}</span>`}async $mounted(){await this.gApkDebugService.loadAPKData()}}!function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);a>3&&n&&Object.defineProperty(t,s,n)}([(0,u.y_)(oS.A)],oP.prototype,"gApkDebugService",void 0);let ok=(0,c.P9)(oP),oR=(0,v.A)(ok,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"apk-tab"},[e.apkSections.length?[t("div",{staticClass:"toolbar-header"},[e._v("APK - analiza potrzeb klienta")]),e._v(" "),t("div",{staticClass:"toolbar-separator"}),e._v(" "),e._l(e.apkSections,function(s){return t("div",{key:s.key,staticClass:"apk-section"},[t("span",{staticClass:"section-key"},[e._v(e._s(s.key))]),e._v(" "),t("pre",{domProps:{innerHTML:e._s(e.formatAsHtml(s.value))}}),e._v(" "),t("div",{staticClass:"toolbar-separator"})])})]:[t("div",{staticClass:"toolbar-header"},[e._v("BÅÄ
d Åadowanie danych APK")])]],2)},[],!1,null,"19b847e6",null).exports;var ow=((l=ow||{}).PASSED="passed",l.FAILURE="failure",l);let oA={SzsProcessEnabledValidator:"Sprawdza, czy proces SZS 2.0 jest aktywowany w Control Panelu (zgodnie z implementacjÄ
TERG4-60025).",SzsProcessSingleAndMultiplePositionCartEnabledValidator:"Sprawdza, czy proces SZS 2.0 jest aktywowany dla koszyk\xf3w jedno- i wielopozycyjnych w Control Panelu (zgodnie z implementacjÄ
TERG4-60025).",SingleItemOrderValidator:"Weryfikuje, czy zam\xf3wienie jest jednopozycyjne, czyli czy w koszyku znajduje siÄ dokÅadnie jeden produkt.",ItemsImmediateAvailabilityValidator:'Sprawdza, czy wszystkie produkty w zam\xf3wieniu majÄ
dostÄpnoÅÄ "dostÄpny natychmiast".',SingleItemImmediateAvailabilityValidator:'Sprawdza, czy jedyny produkt w zam\xf3wieniu ma dostÄpnoÅÄ "dostÄpny natychmiast".',ServiceValidator:"Weryfikuje, czy zam\xf3wienie zawiera usÅugi, kt\xf3re nie sÄ
zdefiniowane, jako możliwe do realizacji w ustawieniu
5(zgodnie z implementacjÄ
TERG4-60025).",AllowedTransportValidator:"Weryfikuje, czy wybrany transport jest oznaczony jako transport źr\xf3dÅowy dla SZS 2.0 (zgodnie z ustawieniami w Control Panelu, TERG4-60052).",AllowedPaymentValidator:"Sprawdza, czy wybrana metoda pÅatnoÅci jest oznaczona jako pÅatnoÅÄ Åºr\xf3dÅowa dla SZS 2.0 (ustawienia w Control Panelu, TERG4-60242).",SingleItemOnNewProductListValidator:"Weryfikuje, czy jedyny produkt w zam\xf3wieniu znajduje siÄ na nowej liÅcie produktowej, zgodnie z konfiguracjÄ
w Control Panelu. Sprawdzenie odbywa siÄ poprzez por\xf3wnanie ID produktu z listÄ
produkt\xf3w przypisanÄ
do odpowiedniej listy.",ProductAvailableInPosSzsV2Validator:"Sprawdza, czy produkt jest dostÄpny w co najmniej jednym POS, kt\xf3ry realizuje zam\xf3wienia SZS 2.0 (ustawienia w Control Panelu, TERG4-60254). Walidator pobiera POS-y biorÄ
ce udziaÅ w SZS 2.0, ich magazyny oraz dostÄpnoÅÄ produktu w tych magazynach. Weryfikacja koÅczy siÄ sukcesem, jeÅli w kt\xf3rymkolwiek POS-ie dostÄpna iloÅÄ produktu jest wystarczajÄ
ca do realizacji zam\xf3wienia.",DeliveryDateValidator:"Weryfikuje, czy wybrany przez klienta termin dostawy jest inny niż dziÅ, jutro lub sobota. W tym celu odpytuje Chronosa o dostÄpnoÅÄ termin\xf3w dostawy dla SZS 2.0 i sprawdza, czy wybrana data jest dostÄpna."};function oE(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class oO extends c.$G{toggle(){this.$emit("toggle")}async copy(){try{await navigator.clipboard.writeText(`${this.name}: ${this.status}`),this.fCopied=!0,setTimeout(()=>{this.fCopied=!1},2e3)}catch(e){this.gLogger.warn("SzsValidatorRow:copy","Cannot write to clipboard",e)}}constructor(...e){super(...e),this.fCopied=!1}}oE([(0,u.y_)(_.Fd)],oO.prototype,"gLogger",void 0),oE([(0,c.kv)({required:!0,type:Number})],oO.prototype,"index",void 0),oE([(0,c.kv)({required:!0,type:String})],oO.prototype,"name",void 0),oE([(0,c.kv)({required:!0})],oO.prototype,"status",void 0),oE([(0,c.kv)({default:null})],oO.prototype,"description",void 0),oE([(0,c.kv)({required:!0,type:String})],oO.prototype,"docsUrl",void 0),oE([(0,c.kv)({default:!1,type:Boolean})],oO.prototype,"isExpanded",void 0),oO=oE([(0,c.q5)(["toggle"])],oO);let oD=(0,c.P9)(oO),ox=(0,v.A)(oD,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"szs-validator-block"},[t("div",{staticClass:"validator-row"},[t("div",{staticClass:"validator-index"},[e._v(e._s(e.index+1))]),e._v(" "),t("div",{staticClass:"validator-name"},[e._v("\n "+e._s(e.name)+"\n "),t("button",{staticClass:"toggle-btn",attrs:{title:e.isExpanded?"Ukryj opis":"Pokaż opis"},on:{click:function(t){return e.toggle()}}},[t("UIIcon",{attrs:{name:"info1"}})],1)]),e._v(" "),t("div",{class:["badge",e.status]},[e._v(e._s(e.status))]),e._v(" "),t("button",{staticClass:"copy-btn",on:{click:e.copy}},[e.fCopied?t("UIIcon",{attrs:{name:"check-ok"}}):[e._v("Copy")]],2)]),e._v(" "),t("Transition",{attrs:{name:"expand"}},[e.isExpanded?t("div",{staticClass:"validator-description"},[e.description?[e._v(e._s(e.description))]:[e._v("\n Brak opisu. Szczeg\xf3Åy w dokumentacji:\n "),t("a",{attrs:{href:e.docsUrl,target:"_blank",rel:"noopener"}},[e._v("Confluence â SZS 2.0")])]],2):e._e()])],1)},[],!1,null,"2923e2dc",null).exports;function oI(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class oN extends c.$G{toggleDescription(e){this.fExpandedKey=this.fExpandedKey===e?null:e}constructor(...e){super(...e),this.fExpandedKey=null}}oI([(0,c.kv)({required:!0})],oN.prototype,"validators",void 0),oI([(0,c.kv)({required:!0,type:String})],oN.prototype,"docsUrl",void 0),oN=oI([(0,c.XF)({SzsValidatorRow:ox})],oN);let oj=(0,c.P9)(oN),oL=(0,v.A)(oj,function(){var e=this,t=e._self._c;
5return e._self._setupProxy,t("div",{staticClass:"szs-validator-list"},e._l(e.validators,function(s,r){return t("SzsValidatorRow",{key:s.name,attrs:{index:r,name:s.name,status:s.status,description:s.description,docsUrl:e.docsUrl,isExpanded:e.fExpandedKey===s.name},on:{toggle:function(t){return e.toggleDescription(s.name)}}})}),1)},[],!1,null,"ca16d166",null).exports;function oF(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class oU extends c.$G{}oF([(0,c.kv)({default:!1,type:Boolean})],oU.prototype,"isLoading",void 0),oF([(0,c.kv)({default:!1,type:Boolean})],oU.prototype,"isError",void 0),oF([(0,c.kv)({default:!1,type:Boolean})],oU.prototype,"isEmpty",void 0),oU=oF([(0,c.XF)({ToolbarLoader:eu.default})],oU);let oM=(0,c.P9)(oU),o$=(0,v.A)(oM,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"szs-debug-state"},[this.isLoading?e("div",{staticClass:"loader"},[e("ToolbarLoader"),this._v(" "),e("span",[this._v("Sprawdzam warunki SZS 2.0 dla aktualnego koszyka.")])],1):this.isError?e("div",{staticClass:"message neutral"},[this._v("\n Nie można pobraÄ danych cart debug. Spr\xf3buj ponownie p\xf3źniej.\n ")]):this.isEmpty?e("div",{staticClass:"message neutral"},[this._v("\n Brak danych â koszyk nie dotarÅ do walidacji SZS 2.0\n ")]):this._e()])},[],!1,null,"7e34ca9c",null).exports;class oB extends c.$G{copy(){this.$emit("copy"),this.fCopied=!0,setTimeout(()=>{this.fCopied=!1},2e3)}constructor(...e){super(...e),this.fCopied=!1}}oB=function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}([(0,c.q5)(["copy"])],oB);let oV=(0,c.P9)(oB),oz=(0,v.A)(oV,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"szs-debug-header"},[t("div",{staticClass:"title"},[e._v("SZS 2.0 - Walidacja")]),e._v(" "),t("button",{staticClass:"copy-all-btn",on:{click:function(t){return e.copy()}}},[e._v("\n "+e._s(e.fCopied?"â Skopiowano!":"Copy all (JSON)")+"\n ")])])},[],!1,null,"a9265238",null).exports;class oK extends c.$G{}!function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);a>3&&n&&Object.defineProperty(t,s,n)}([(0,c.kv)({default:!1,type:Boolean})],oK.prototype,"hasFailure",void 0);let oG=(0,c.P9)(oK),oq=(0,v.A)(oG,function(){var e=this._self._c;return this._self._setupProxy,e("div",{class:["banner",this.hasFailure?"failure":"passed"]},[e("span",{staticClass:"banner-content"},this.hasFailure?[e("UIIcon",{staticClass:"banner-icon",attrs:{name:"close"}}),this._v("\n Zam\xf3wienie NIE speÅnia warunk\xf3w SZS 2.0 â sprawdź poniżej, kt\xf3ry warunek nie zostaÅ speÅniony\n ")]:[e("UIIcon",{staticClass:"banner-icon",attrs:{name:"check-ok"}}),this._v("\n Zam\xf3wienie speÅnia warunki SZS 2.0\n ")],1)])},[],!1,null,"4c788b42",null).exports;function oH(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class oX extends c.$G{get isLoading(){return this.gCartDebugService.state.isLoading}get isError(){return this.gCartDebugService.state.isError}get validators(){var e;let t=null==(e=this.gCartDebugService.state.data)?void 0:e.szs_v2_info;return t?Object.entries(t).map(([e,t])=>{var s;return{name:e,status:t,description:null!=(s=oA[e])?s:null}}):[]}get hasFailure(){return this.validators.some(e=>e.status===ow.FAILURE)}async copyAll(){try{var e;let t=null==(e=this.gCartDebugService.state.data)?void 0:e.szs_v2_info;await navigator.clipboard.writeText(JSON.stringify(null!=t?t:null,null,2))}
5catch(e){this.gLogger.warn("SzsDebug:copyAll","Cannot write to clipboard",e)}}async $mounted(){this.gCartDebugService.state.data||await this.gCartDebugService.loadCartDebug()}constructor(...e){super(...e),this.SZS_DOCS_URL="https://enetproduction.atlassian.net/wiki/spaces/DT/pages/1690959893/Aplikator+flagi+-+Walidator+przekszta+cania+zam+wienia+SZS+2.0"}}oH([(0,u.y_)(ag.A)],oX.prototype,"gCartDebugService",void 0),oH([(0,u.y_)(_.Fd)],oX.prototype,"gLogger",void 0),oX=oH([(0,c.XF)({SzsValidatorList:oL,SzsDebugState:o$,SzsDebugHeader:oz,SzsStatusBanner:oq})],oX);let oW=(0,c.P9)(oX),oY=(0,v.A)(oW,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"szs-debug"},[this.isLoading||this.isError||!this.validators.length?e("SzsDebugState",{attrs:{isLoading:this.isLoading,isError:this.isError,isEmpty:!this.validators.length}}):[e("SzsDebugHeader",{on:{copy:this.copyAll}}),this._v(" "),e("SzsStatusBanner",{attrs:{hasFailure:this.hasFailure}}),this._v(" "),e("SzsValidatorList",{attrs:{validators:this.validators,docsUrl:this.SZS_DOCS_URL}})]],2)},[],!1,null,"7896dbd6",null).exports;function oJ(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class oQ extends c.$G{get activeTab(){return this.gToolbarCartService.state.activeTab}set activeTab(e){this.gToolbarCartService.setActiveTab(e)}}oJ([(0,u.y_)(au.A)],oQ.prototype,"gToolbarCartService",void 0),oQ=oJ([(0,c.XF)({UITabs:el.A,UITabsPane:ec.A,ClearCartSection:af,CartDebug:nn,CalendarDebug:oe,PromotionDebug:oT,ServicesDebugMain:o_,ApkTab:oR,SzsDebug:oY})],oQ);let oZ=(0,c.P9)(oQ),o0=(0,v.A)(oZ,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"cart-tabs"},[t("UITabs",{attrs:{type:"card",showUnderline:!0,useLongLine:!0,maxDepth:1},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[t("UITabsPane",{attrs:{label:"clear",displayName:"Actions"}},[t("ClearCartSection")],1),e._v(" "),t("UITabsPane",{attrs:{label:"cart_debug",displayName:"Cart debug"}},["cart_debug"===e.activeTab?t("CartDebug"):e._e()],1),e._v(" "),t("UITabsPane",{attrs:{label:"calendar_debug",displayName:"Calendar debug"}},["calendar_debug"===e.activeTab?t("CalendarDebug"):e._e()],1),e._v(" "),t("UITabsPane",{attrs:{label:"services_debug",displayName:"Services debug"}},["services_debug"===e.activeTab?t("ServicesDebugMain"):e._e()],1),e._v(" "),t("UITabsPane",{attrs:{label:"promotion_debug",displayName:"Promotion debug"}},["promotion_debug"===e.activeTab?t("PromotionDebug"):e._e()],1),e._v(" "),t("UITabsPane",{attrs:{label:"apk_debug",displayName:"APK debug"}},["apk_debug"===e.activeTab?t("ApkTab"):e._e()],1),e._v(" "),t("UITabsPane",{attrs:{label:"szs_v2_debug",displayName:"SZS 2.0 debug"}},["szs_v2_debug"===e.activeTab?t("SzsDebug"):e._e()],1)],1)],1)},[],!1,null,"91c15b3e",null).exports;class o1 extends c.$G{}o1=function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}([(0,T.A)(),(0,c.XF)({CartTabs:o0})],o1);let o3=(0,c.P9)(o1),o2=(0,v.A)(o3,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"cart-tab"},[e("CartTabs")],1)},[],!1,null,"0d7c9d60",null).exports;function o9(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class o5 extends c.$G{getItemName(e){return this.gToolbarDatalayerService.getItemName(e)}get eventTime(){return this.gToolbarDatalayerService.getEventTimeHms(this.event)}}o9([(0,u.y_)(d.mF)],o5.prototype,"gToolbarDatalayerService",void 0),o9([(0,c.kv)()],o5.prototype,"event",void 0),o5=o9([(0,c.XF)({ToolbarDataView:eV})],o5);let o7=(0,c.P9)(o5),o8=(0,v.A)(o7,function(){var e=this._self._c;return this._self._setupProxy,this.event?e("div",{staticClass:"toolbar-datalayer-item"},[e("div",{staticClass:"event-name"},[e("span",[this._v(this._s(this.getItemName(this.event)))]),this._v(" "),e("span",[this._v(this._s(this.eventTime))])]),this._v(" "),e("div",{staticClass:"event-data"},[e("ToolbarDataView",{attrs:{value:JSON.stringify(this.event)}})],1)]):this._e()},[],!1,null,"e0128b40",null).exports;function o4(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class o6 extends c.$G{get datalayerEvents(){return this.gToolbarDatalayerService.state.currentDataLayer}get storedDatalayer(){return[...this.gToolbarDatalayerService.state.storedDatalayer].reverse()}get shouldDisplayTabs(){return!this.isLoading&&(!!this.datalayerEvents.length||!!this.storedDatalayer.length)}formattedItem(e){return Object.values(e)}get searchValue(){return this.searchQuery}handleSearch(e){this.searchQuery=e}get filteredCurrent(){return this.gToolbarDatalayerSearchService.filterCurrent(this.searchQuery,this.datalayerEvents)}getFilteredStoredEvents(e){return this.gToolbarDatalayerSearchService.filterStored(e.id,this.searchQuery,e.events)}get gtmId(){return this.gToolbarDatalayerService.gtmId}stripOrigin(e){let{pathname:t,search:s}=new URL(e);return`${t}${s}`}handleClear(){this.gToolbarDatalayerService.clear()}tailWithEllipsis(e){if(!e)return"";let t=Array.from(e);return t.length<=25?e:`...${t.slice(t.length-25).join("")}`}handleReload(){this.gToolbarDatalayerService.reload()}async $beforeMount(){this.isLoading=!0,await this.gToolbarDatalayerService.loadStoredDatalayer(),this.isLoading=!1}$mounted(){this.handleReload(),this.reloadInterval=setInterval(()=>{this.handleReload()},1e3)}$beforeDestroy(){this.reloadInterval&&(clearInterval(this.reloadInterval),this.reloadInterval=null)}constructor(...e){super(...e),this.tab="current",this.isLoading=!1,this.reloadInterval=null,this.searchQuery=""}}o4([(0,u.y_)(d.mF)],o6.prototype,"gToolbarDatalayerService",void 0),o4([(0,u.y_)(d.cg)],o6.prototype,"gToolbarDatalayerSearchService",void 0),o4([(0,rn.A)(250)],o6.prototype,"handleSearch",null),o6=o4([(0,c.XF)({ToolbarDatalayerItem:o8,ToolbarSearch:ti,UITabs:el.A,UITabsPane:ec.A})],o6);let le=(0,c.P9)(o6),lt=(0,v.A)(le,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"datalayer-tab"},[t("div",{staticClass:"buttons"},[t("ToolbarSearch",{attrs:{value:e.searchValue,text:"Search..."},on:{input:e.handleSearch}}),e._v(" "),t("button",{staticClass:"clear",on:{click:e.handleClear}},[e._v("clear all")]),e._v("\n gtmId: "+e._s(e.gtmId)+"\n ")],1),e._v(" "),e.shouldDisplayTabs?t("UITabs",{attrs:{dis
5playSingleTab:""},model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},[t("UITabsPane",{attrs:{label:"current",displayName:"current"}},e._l(e.filteredCurrent,function(e){return t("ToolbarDatalayerItem",{key:e.customId,attrs:{event:e}})}),1),e._v(" "),e.storedDatalayer.length?e._l(e.storedDatalayer,function(s,r){return t("UITabsPane",{key:r,attrs:{label:"#"+s.id,displayName:e.tailWithEllipsis(s.url),"UITabsPane:key":"index"}},[e.tab===`#${s.id}`?[t("small",{staticClass:"url"},[e._v("prev url: "+e._s(e.stripOrigin(s.url)))]),e._v(" "),s.events.length?e._l(e.getFilteredStoredEvents(s),function(e){return t("ToolbarDatalayerItem",{key:e.customId,attrs:{event:e}})}):e._e()]:e._e()],2)}):e._e()],2):e._e()],1)},[],!1,null,"24d99a2f",null).exports;function ls(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class lr extends c.$G{toggleOpen(){this.isOpen=!this.isOpen}handleClose(){this.isOpen=!1}handleScrollIntoView(){let e=document.querySelectorAll(`[data-cy="${this.cy}"]`);e.length&&(e[0].scrollIntoView({behavior:"smooth",block:"center",inline:"center"}),this.isOpen=!1)}handleHighlight(){document.querySelectorAll(`[data-cy="${this.cy}"]`).forEach(e=>{e.style.animation=this.isHighlighted?"":"pulse 2s infinite"}),this.isHighlighted=!this.isHighlighted,this.$emit("highlight",this.isHighlighted),this.isOpen=!1}constructor(...e){super(...e),this.isOpen=!1,this.isHighlighted=!1}}ls([(0,c.kv)({required:!0,type:String})],lr.prototype,"cy",void 0),lr=ls([(0,T.A)(),(0,c.XF)({ToolbarLoader:eu.default})],lr);let li=(0,c.P9)(lr),la=(0,v.A)(li,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.handleClose,expression:"handleClose"}],staticClass:"actions",class:{"is-open":e.isOpen}},[t("div",{staticClass:"header",on:{click:function(t){return t.stopPropagation(),e.toggleOpen.apply(null,arguments)}}},[t("UIIcon",{attrs:{name:"toolbar-dots"}})],1),e._v(" "),e.isOpen?t("div",{staticClass:"dropdown"},[t("div",{staticClass:"list"},[t("div",{staticClass:"item"},[t("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.handleHighlight.apply(null,arguments)}}},[e.isHighlighted?[e._v("Disable")]:[e._v("Enable")],e._v("\n \xa0hightlight\n ")],2)]),e._v(" "),t("div",{staticClass:"item"},[t("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.handleScrollIntoView.apply(null,arguments)}}},[e._v("Scroll into view")])])])]):e._e()])},[],!1,null,"c89556fa",null).exports;function ln(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class lo extends c.$G{get components(){return(0,e3.s)(this.items.map(e=>e.component))}handleHighlight(e){this.isHighlighted=e}constructor(...e){super(...e),this.isHighlighted=!1}}ln([(0,c.kv)({required:!0,type:String})],lo.prototype,"cy",void 0),ln([(0,c.kv)({required:!0,default:()=>[]})],lo.prototype,"items",void 0),lo=ln([(0,c.XF)({DataCyItemDropdown:la})],lo);let ll=(0,c.P9)(lo),lc=(0,v.A)(ll,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"data-cy-item toolbar-table-row",class:{"is-highlighted":e.isHighlighted}},[t("div",{staticClass:"toolbar-table-column"},[e._v(e._s(e.cy))]),e._v(" "),t("div",{staticClass:"toolbar-table-column"},[e._v(e._s(e.items.length))]),e._v(" "),t("div",{staticClass:"toolbar-table-column"},[t("ul",{attrs:{name:"toolbar-list"}},e._l(e.components,function(s){return t("li",{key:s},[e._v("\n "+e._s(s)+"\n ")])}),0)]),e._v(" "),t("div",{staticClass:"toolbar-table-column actions"},[t("DataCyItemDropdown",{attrs:{cy:e.cy},on:{highlight:e.handleHighlight}})],1)])},[],!1,null,"e15537d6",null).exports;var lu=s(62708);function ld(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class lh extends c.$G{get items(){var e,t,s;return(0,lu.$)(null!=(e=null==(s=this.gToolbarCypressService)||null==(t=s.state)?void 0:t.data)?e:[],e=>e.cy)}}ld([(0,u.UN)(d.QV)],lh.prototype,"gToolbarCypressService",void 0),lh=ld([(0,c.XF)({DataCyItem:lc})],lh);let lp=(0,c.P9)(lh),lv=(0,v.A)(lp,function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"data-cy"},[e("div",{staticClass:"item"},[e("div",{staticClass:"toolbar-header"},[this._v("Data cy usage")]),this._v(" "),e("p",[this._v("This tab presents usage of data-cy selector on current page.")]),this._v(" "),e("div",{staticClass:"toolbar-separator"}),this._v(" "),e("div",{staticClass:"toolbar-table"},[this._m(0),this._v(" "),e("div",{staticClass:"toolbar-table-body"},this._l(this.items,function(t,s){return e("DataCyItem",{key:s,staticClass:"toolbar-table-row",attrs:{cy:s,items:t}})}),1)])])])},[function(){var e=this._self._c;return this._self._setupProxy,e("div",{staticClass:"toolbar-table-header"},[e("div",{staticClass:"toolbar-table-row"},[e("div",{staticClass:"toolbar-table-column"},[this._v("CY")]),this._v(" "),e("div",{staticClass:"toolbar-table-column"}
5,[this._v("Count")]),this._v(" "),e("div",{staticClass:"toolbar-table-column"},[this._v("Components")]),this._v(" "),e("div",{staticClass:"toolbar-table-column"},[this._v("Actions")])])])}],!1,null,"62fafd67",null).exports;class lf extends c.$G{constructor(...e){super(...e),this.tab="usage"}}lf=function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}([(0,c.XF)({UITabs:el.A,UITabsPane:ec.A,DataCy:lv})],lf);let lg=(0,c.P9)(lf),l_=(0,v.A)(lg,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"cypress-tab"},[t("UITabs",{staticClass:"cypress-tabs",attrs:{displaySingleTab:!0},model:{value:e.tab,callback:function(t){e.tab=t},expression:"tab"}},[t("UITabsPane",{attrs:{label:"usage",displayName:"Usage"}},[t("DataCy")],1)],1)],1)},[],!1,null,"772aa86b",null).exports;function lb(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class ly extends c.$G{get isProduction(){return!0}get isEditorTabVisible(){return"Editor2:PerformancePage"===this.gRouter.currentRoute.name}get isCacheTabVisible(){var e;return null!=(e=this.gPanelService.getInfoValue("allow-varnish-purge"))&&e}async $mounted(){await Promise.all([this.gTranslationService.loadChunk("Spark:Toolbar"),this.gPanelService.loadInfo(),this.gToolbarRequestService.loadStateFromCache()])}constructor(...e){super(...e),this.TabNames=tn.P}}lb([(0,u.y_)(_.dS)],ly.prototype,"gTranslationService",void 0),lb([(0,u.y_)(q.A)],ly.prototype,"gPanelService",void 0),lb([(0,u.y_)(d.et)],ly.prototype,"gToolbarRequestService",void 0),lb([(0,u.y_)(_.Ii)],ly.prototype,"gRouter",void 0),ly=lb([(0,c.XF)({DevOnly:eo,BaseToolbar:ee,ToolbarTab:ei,InfoTab:ek,ApiTab:tu,RequestTab:tY,EventsTab:ss,LogTab:sd,PerformanceTab:re,StateTab:rT,ToolsTab:im,CartTab:o2,CacheTab:i$,FeatureFlagsTab:iG,CypressTab:l_,IconsTab:iP,EditorTab:i3,ConfigTab:ae,DatalayerTab:lt,HarvesterTab:ac})],ly);let lm=(0,c.P9)(ly),lC=(0,v.A)(lm,function(){var e=this._self._c;return this._self._setupProxy,e("BaseToolbar",{attrs:{id:"spark-toolbar"}},[e("ToolbarTab",{attrs:{name:this.TabNames.Info}},[e("InfoTab")],1),this._v(" "),e("ToolbarTab",{attrs:{name:this.TabNames.Log}},[e("LogTab")],1),this._v(" "),e("ToolbarTab",{attrs:{name:this.TabNames.Api}},[e("ApiTab")],1),this._v(" "),e("ToolbarTab",{attrs:{name:this.TabNames.Request}},[e("RequestTab")],1),this._v(" "),e("ToolbarTab",{attrs:{name:this.TabNames.Events}},[e("EventsTab")],1),this._v(" "),e("ToolbarTab",{attrs:{name:this.TabNames.State}},[e("StateTab")],1),this._v(" "),e("ToolbarTab",{attrs:{name:this.TabNames.Performance}},[e("PerformanceTab")],1),this._v(" "),e("ToolbarTab",{attrs:{name:this.TabNames.Cart}},[e("CartTab")],1),this._v(" "),e("ToolbarTab",{attrs:{name:this.TabNames.Tools}},[e("ToolsTab")],1),this._v(" "),this.isCacheTabVisible?e("ToolbarTab",{attrs:{name:this.TabNames.Cache}},[e("CacheTab")],1):this._e(),this._v(" "),e("ToolbarTab",{attrs:{name:this.TabNames.Cypress}},[e("CypressTab")],1),this._v(" "),this.isProduction?this._e():e("ToolbarTab",{attrs:{name:this.TabNames.Icons}},[e("IconsTab")],1),this._v(" "),this.isProduction?this._e():e("ToolbarTab",{attrs:{name:this.TabNames.FeatureFlags}},[e("FeatureFlagsTab")],1),this._v(" "),this.isEditorTabVisible?e("ToolbarTab",{attrs:{name:this.TabNames.Editor}},[e("EditorTab")],1):this._e(),this._v(" "),this.isProduction?this._e():e("ToolbarTab",{attrs:{name:this.TabNames.Config}},[e("ConfigTab")],1),this._v(" "),e("ToolbarTab",{attrs:{name:this.TabNames.Harvester}},[e("HarvesterTab")],1),this._v(" "),e("ToolbarTab",{attrs:{name:this.TabNames.Datalayer}},[e("DatalayerTab")],1)],1)},[],!1,null,"06fbc56c",null).exports}
5,88472(e,t,s){t.A=void 0;var r=s(28699),i=s(78982),a=s(50865);function n(e){return function(e){if(Array.isArray(e)){for(var t=0,s=Array(e.length);t<e.length;t++)s[t]=e[t];return s}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance")}()}function o(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{},r=Object.keys(s);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(s).filter(function(e){return Object.getOwnPropertyDescriptor(s,e).enumerable}))),r.forEach(function(t){var r,i,a;r=e,i=t,a=s[t],i in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a})}return e}var l=function(e){return!e.selectionSet||!e.selectionSet.selections||0===e.selectionSet.selections.length},c=function e(t){if(l(t))return t;var s=o({},t);return s.selectionSet.selections=s.selectionSet.selections.filter(function(e,t,s){return e.kind!==a.Kind.FIELD||e.selectionSet||t===s.findIndex(function(t){return t.kind===a.Kind.FIELD&&e.name.value===t.name.value})}).map(e),s},u=function e(t){if(l(t))return t;var s=o({},t);if(t.selectionSet.selections.length<=2)return s.selectionSet.selections=s.selectionSet.selections.map(e),s;var r=[],i=function(e,t){return e.kind===t.kind&&e.name.value===t.name.value&&(!e.alias&&!t.alias||e.alias.value===t.alias.value)};return s.selectionSet.selections=s.selectionSet.selections.filter(function(e,t,s){return e.kind!==a.Kind.FIELD||!e.selectionSet||t===s.findIndex(function(t){return i(e,t)})||(r=[].concat(n(r),[e]),!1)}),r.forEach(function(e){var t=s.selectionSet.selections.findIndex(function(t){return i(t,e)});s.selectionSet.selections[t].selectionSet.selections=[].concat(n(s.selectionSet.selections[t].selectionSet.selections),n(e.selectionSet.selections))}),s.selectionSet.selections=s.selectionSet.selections.map(e),s},d=function e(t,s){if(l(t))return t;var r=o({},t),i=[];return r.selectionSet.selections=r.selectionSet.selections.filter(function(e){if(e.kind!==a.Kind.FRAGMENT_SPREAD)return!0;if(!i.find(function(t){return t.name.value===e.name.value})){var t=s.find(function(t){return t.name.value===e.name.value});if(!t)throw Error("Found usage of unknown fragment ".concat(e.name.value));i=[].concat(n(i),[t])}return!1}),r.selectionSet.selections=[].concat(n(r.selectionSet.selections),n(i.reduce(function(e,t){return[].concat(n(t.selectionSet.selections),n(e))},[]))),r.selectionSet.selections=r.selectionSet.selections.map(function(t){return e(t,s)}),r};t.A=function(e){var t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],s=(0,r.parse)(e),n=s.definitions.filter(function(e){return e.kind===a.Kind.FRAGMENT_DEFINITION}).map(function(e,t,s){return d(e,s)});return s.definitions.filter(function(e){return e.kind===a.Kind.OPERATION_DEFINITION}).map(function(e){var s=o({},e);return s.selectionSet.selections=s.selectionSet.selections.map(function(e){return d(e,n)}),t&&(s.selectionSet.selections=s.selectionSet.selections.map(function(e){return c(u(e))})),s}).map(i.print).join("\n")}},14582(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLError=o,t.printError=l;var r,i=(r=s(11694))&&r.__esModule?r:{default:r},a=s(21123),n=s(58506);function o(e,t,s,r,n,l,c){var u,d=Array.isArray(t)?0!==t.length?t:void 0:t?[t]:void 0,h=s;if(!h&&d){var p=d[0];h=p&&p.loc&&p.loc.source}var v=r;!v&&d&&(v=d.reduce(function(e,t){return t.loc&&e.push(t.loc.start),e},[])),v&&0===v.length&&(v=void 0),r&&s?u=r.map(function(e){return(0,a.getLocation)(s,e)}):d&&(u=d.reduce(function(e,t){return t.loc&&e.push((0,a.getLocation)(t.loc.source,t.loc.start)),e},[]));var f=c;if(null==f&&null!=l){var g=l.extensions;(0,i.default)(g)&&(f=g)}Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:u||void 0,enumerable:!!u},path:{value:n||void 0,enumerable:!!n},nodes:{value:d||void 0},source:{value:h||void 0},positions:{value:v||void 0},originalError:{value:l},extensions:{value:f||void 0,enumerable:!!f}}),l&&l.stack?Object.defineProperty(this,"stack",{value:l.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,o):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}function l(e){var t=e.message;if(e.nodes)for(var s=0,r=e.nodes;s<r.length;s++){var i=r[s];i.loc&&(t+="\n\n"+(0,n.printLocation)(i.loc))}else if(e.source&&e.locations)for(var a=0,o=e.locations;a<o.length;a++){var l=o[a];t+="\n\n"+(0,n.printSourceLocation)(e.source,l)}
5return t}o.prototype=Object.create(Error.prototype,{constructor:{value:o},name:{value:"GraphQLError"},toString:{value:function(){return l(this)}}})},62973(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.syntaxError=function(e,t,s){return new r.GraphQLError("Syntax Error: ".concat(s),void 0,e,[t])};var r=s(14582)},10154(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.prototype.toString;e.prototype.toJSON=t,e.prototype.inspect=t,i.default&&(e.prototype[i.default]=t)};var r,i=(r=s(88244))&&r.__esModule?r:{default:r}},4225(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"function"==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return this.constructor.name}})}},85309(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e)throw Error(t)}},98200(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function e(t,s){switch(a(t)){case"string":return JSON.stringify(t);case"function":return t.name?"[function ".concat(t.name,"]"):"[function]";case"object":if(null===t)return"null";return function(t,s){if(-1!==s.indexOf(t))return"[Circular]";var r,a,n,o,l,c=[].concat(s,[t]),u="function"==typeof(a=(r=t)[String(i.default)])?a:"function"==typeof r.inspect?r.inspect:void 0;if(void 0!==u){var d=u.call(t);if(d!==t)return"string"==typeof d?d:e(d,c)}else if(Array.isArray(t)){var h=t,p=c;if(0===h.length)return"[]";if(p.length>2)return"[Array]";for(var v=Math.min(10,h.length),f=h.length-v,g=[],_=0;_<v;++_)g.push(e(h[_],p));return 1===f?g.push("... 1 more item"):f>1&&g.push("... ".concat(f," more items")),"["+g.join(", ")+"]"}return n=t,o=c,0===(l=Object.keys(n)).length?"{}":o.length>2?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var s=e.constructor.name;if("string"==typeof s&&""!==s)return s}return t}(n)+"]":"{ "+l.map(function(t){var s=e(n[t],o);return t+": "+s}).join(", ")+" }"}(t,s);default:return String(t)}}(e,[])};var r,i=(r=s(88244))&&r.__esModule?r:{default:r};function a(e){return(a="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})(e)}},11694(e,t){function s(e){return(s="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})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"object"==s(e)&&null!==e}},88244(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0},51342(e,t){function s(e){for(var t=null,s=1;s<e.length;s++){var i=e[s],a=r(i);if(a!==i.length&&(null===t||a<t)&&0===(t=a))break}return null===t?0:t}function r(e){for(var t=0;t<e.length&&(" "===e[t]||" "===e[t]);)t++;return t}function i(e){return r(e)===e.length}Object.defineProperty(t,"__esModule",{value:!0}),t.dedentBlockStringValue=function(e){var t=e.split(/\r\n|[\n\r]/g),r=s(t);if(0!==r)for(var a=1;a<t.length;a++)t[a]=t[a].slice(r);for(;t.length>0&&i(t[0]);)t.shift();for(;t.length>0&&i(t[t.length-1]);)t.pop();return t.join("\n")},t.getBlockStringIndentation=s,t.printBlockString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||" "===e[0],a='"'===e[e.length-1],n=!r||a||s,o="";return n&&!(r&&i)&&(o+="\n"+t),o+=t?e.replace(/\n/g,"\n"+t):e,n&&(o+="\n"),'"""'+o.replace(/"""/g,'\\"""')+'"""'}},19580(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveLocation=void 0,t.DirectiveLocation=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",
5ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"})},50865(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Kind=void 0,t.Kind=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"})},39412(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.createLexer=function(e,t){var s=new u(o.TokenKind.SOF,0,0,0,0,null);return{source:e,options:t,lastToken:s,token:s,line:1,lineStart:0,advance:l,lookahead:c}},t.isPunctuatorToken=function(e){var t=e.kind;return t===o.TokenKind.BANG||t===o.TokenKind.DOLLAR||t===o.TokenKind.AMP||t===o.TokenKind.PAREN_L||t===o.TokenKind.PAREN_R||t===o.TokenKind.SPREAD||t===o.TokenKind.COLON||t===o.TokenKind.EQUALS||t===o.TokenKind.AT||t===o.TokenKind.BRACKET_L||t===o.TokenKind.BRACKET_R||t===o.TokenKind.BRACE_L||t===o.TokenKind.PIPE||t===o.TokenKind.BRACE_R};var r,i=(r=s(10154))&&r.__esModule?r:{default:r},a=s(62973),n=s(51342),o=s(77613);function l(){return this.lastToken=this.token,this.token=this.lookahead()}function c(){var e=this.token;if(e.kind!==o.TokenKind.EOF)do e=e.next||(e.next=function(e,t){var s,r=e.source,i=r.body,l=i.length,c=function(e,t,s){for(var r=e.length,i=t;i<r;){var a=e.charCodeAt(i);if(9===a||32===a||44===a||65279===a)++i;else if(10===a)++i,++s.line,s.lineStart=i;else if(13===a)10===e.charCodeAt(i+1)?i+=2:++i,++s.line,s.lineStart=i;else break}return i}(i,t.end,e),v=e.line,f=1+c-e.lineStart;if(c>=l)return new u(o.TokenKind.EOF,l,l,v,f,t);var g=i.charCodeAt(c);switch(g){case 33:return new u(o.TokenKind.BANG,c,c+1,v,f,t);case 35:return function(e,t,s,r,i){var a,n=e.body,l=t;do a=n.charCodeAt(++l);while(!isNaN(a)&&(a>31||9===a));return new u(o.TokenKind.COMMENT,t,l,s,r,i,n.slice(t+1,l))}(r,c,v,f,t);case 36:return new u(o.TokenKind.DOLLAR,c,c+1,v,f,t);case 38:return new u(o.TokenKind.AMP,c,c+1,v,f,t);case 40:return new u(o.TokenKind.PAREN_L,c,c+1,v,f,t);case 41:return new u(o.TokenKind.PAREN_R,c,c+1,v,f,t);case 46:if(46===i.charCodeAt(c+1)&&46===i.charCodeAt(c+2))return new u(o.TokenKind.SPREAD,c,c+3,v,f,t);break;case 58:return new u(o.TokenKind.COLON,c,c+1,v,f,t);case 61:return new u(o.TokenKind.EQUALS,c,c+1,v,f,t);case 64:return new u(o.TokenKind.AT,c,c+1,v,f,t);case 91:return new u(o.TokenKind.BRACKET_L,c,c+1,v,f,t);case 93:return new u(o.TokenKind.BRACKET_R,c,c+1,v,f,t);case 123:return new u(o.TokenKind.BRACE_L,c,c+1,v,f,t);case 124:return new u(o.TokenKind.PIPE,c,c+1,v,f,t);case 125:return new u(o.TokenKind.BRACE_R,c,c+1,v,f,t);
vendor: 29,367 bytes, line 5
5case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:for(var _=r,b=c,y=v,m=f,C=t,T=_.body,S=T.length,P=b+1,k=0;P!==S&&!isNaN(k=T.charCodeAt(P))&&(95===k||k>=48&&k<=57||k>=65&&k<=90||k>=97&&k<=122);)++P;return new u(o.TokenKind.NAME,b,P,y,m,C,T.slice(b,P));case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,s,r,i,n){var l=e.body,c=s,p=t,v=!1;if(45===c&&(c=l.charCodeAt(++p)),48===c){if((c=l.charCodeAt(++p))>=48&&c<=57)throw(0,a.syntaxError)(e,p,"Invalid number, unexpected digit after 0: ".concat(d(c),"."))}else p=h(e,p,c),c=l.charCodeAt(p);if(46===c&&(v=!0,c=l.charCodeAt(++p),p=h(e,p,c),c=l.charCodeAt(p)),(69===c||101===c)&&(v=!0,(43===(c=l.charCodeAt(++p))||45===c)&&(c=l.charCodeAt(++p)),p=h(e,p,c),c=l.charCodeAt(p)),46===c||69===c||101===c)throw(0,a.syntaxError)(e,p,"Invalid number, expected digit but got: ".concat(d(c),"."));return new u(v?o.TokenKind.FLOAT:o.TokenKind.INT,t,p,r,i,n,l.slice(t,p))}(r,c,g,v,f,t);case 34:if(34===i.charCodeAt(c+1)&&34===i.charCodeAt(c+2))return function(e,t,s,r,i,l){for(var c=e.body,h=t+3,p=h,v=0,f="";h<c.length&&!isNaN(v=c.charCodeAt(h));){if(34===v&&34===c.charCodeAt(h+1)&&34===c.charCodeAt(h+2))return f+=c.slice(p,h),new u(o.TokenKind.BLOCK_STRING,t,h+3,s,r,i,(0,n.dedentBlockStringValue)(f));if(v<32&&9!==v&&10!==v&&13!==v)throw(0,a.syntaxError)(e,h,"Invalid character within String: ".concat(d(v),"."));10===v?(++h,++l.line,l.lineStart=h):13===v?(10===c.charCodeAt(h+1)?h+=2:++h,++l.line,l.lineStart=h):92===v&&34===c.charCodeAt(h+1)&&34===c.charCodeAt(h+2)&&34===c.charCodeAt(h+3)?(f+=c.slice(p,h)+'"""',h+=4,p=h):++h}throw(0,a.syntaxError)(e,h,"Unterminated string.")}(r,c,v,f,t,e);return function(e,t,s,r,i){for(var n=e.body,l=t+1,c=l,h=0,v="";l<n.length&&!isNaN(h=n.charCodeAt(l))&&10!==h&&13!==h;){if(34===h)return v+=n.slice(c,l),new u(o.TokenKind.STRING,t,l+1,s,r,i,v);if(h<32&&9!==h)throw(0,a.syntaxError)(e,l,"Invalid character within String: ".concat(d(h),"."));if(++l,92===h){switch(v+=n.slice(c,l-1),h=n.charCodeAt(l)){case 34:v+='"';break;case 47:v+="/";break;case 92:v+="\\";break;case 98:v+="\b";break;case 102:v+="\f";break;case 110:v+="\n";break;case 114:v+="\r";break;case 116:v+=" ";break;case 117:var f,g,_,b,y=(f=n.charCodeAt(l+1),g=n.charCodeAt(l+2),_=n.charCodeAt(l+3),b=n.charCodeAt(l+4),p(f)<<12|p(g)<<8|p(_)<<4|p(b));if(y<0){var m=n.slice(l+1,l+5);throw(0,a.syntaxError)(e,l,"Invalid character escape sequence: \\u".concat(m,"."))}v+=String.fromCharCode(y),l+=4;break;default:throw(0,a.syntaxError)(e,l,"Invalid character escape sequence: \\".concat(String.fromCharCode(h),"."))}c=++l}}throw(0,a.syntaxError)(e,l,"Unterminated string.")}(r,c,v,f,t)}throw(0,a.syntaxError)(r,c,(s=g)<32&&9!==s&&10!==s&&13!==s?"Cannot contain the invalid character ".concat(d(s),"."):39===s?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(d(s),"."))}(this,e));while(e.kind===o.TokenKind.COMMENT);return e}function u(e,t,s,r,i,a,n){this.kind=e,this.start=t,this.end=s,this.line=r,this.column=i,this.value=n,this.prev=a,this.next=null}function d(e){return isNaN(e)?o.TokenKind.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function h(e,t,s){var r=e.body,i=t,n=s;if(n>=48&&n<=57){do n=r.charCodeAt(++i);while(n>=48&&n<=57);return i}throw(0,a.syntaxError)(e,i,"Invalid number, expected digit but got: ".concat(d(n),"."))}function p(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}(0,i.default)(u,function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}})},21123(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=function(e,t){for(var s,r=/\r\n|[\n\r]/g,i=1,a=t+1;(s=r.exec(e.body))&&s.index<t;)i+=1,a=t+1-(s.index+s[0].length);return{line:i,column:a}}},28699(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e,t){return new p(e,t).parseDocument()},t.parseValue=function(e,t){var s=new p(e,t);s.expectToken(d.TokenKind.SOF);var r=s.parseValueLiteral(!1);return s.expectToken(d.TokenKind.EOF),r},t.parseType=function(e,t){var s=new p(e,t);s.expectToken(d.TokenKind.SOF);var r=s.parseTypeReference();return s.expectToken(d.TokenKind.EOF),r};var r=h(s(98200)),i=h(s(85309)),a=h(s(10154)),n=s(62973),o=s(50865),l=s(90233),c=s(39412),u=s(19580),d=s(77613);function h(e){return e&&e.__esModule?e:{default:e}}var p=function(){function e(e,t){var s="string"==typeof e?new l.Source(e):e;s instanceof l.Source||(0,i.default)(0,"Must provide Source. Received: ".concat((0,r.default)(s))),this._lexer=(0,c.createLexer)(s),this._options=t||{}}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(d.TokenKind.NAME);return{kind:o.Kind.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:o.Kind.DOCUMENT,definitions:this.many(d.TokenKind.SOF,this.parseDefinition,d.TokenKind.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(d.TokenKind.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else if(this.peek(d.TokenKind.BRACE_L))return this.parseOperationDefinition();else if(this.peekDescription())return this.parseTypeSystemDefinition();throw this.unexpected()},t.parseOperationDefinition=function(){var e,t=this._lexer.token;if(this.peek(d.TokenKind.BRACE_L))return{kind:o.Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(t)};var s=this.parseOperationType();return this.peek(d.TokenKind.NAME)&&(e=this.parseName()),{kind:o.Kind.OPERATION_DEFINITION,operation:s,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseOperationType=function(){var e=this.expectToken(d.TokenKind.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(d.TokenKind.PAREN_L,this.parseVariableDefinition,d.TokenKind.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:o.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(d.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(d.TokenKind.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(d.TokenKind.DOLLAR),{kind:o.Kind.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:o.Kind.SELECTION_SET,selections:this.many(d.TokenKind.BRACE_L,this.parseSelection,d.TokenKind.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(d.TokenKind.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,s=this._lexer.token,r=this.parseName();return this.expectOptionalToken(d.TokenKind.COLON)?(e=r,t=this.parseName()):t=r,{kind:o.Kind.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(d.TokenKind.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(s)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(d.TokenKind.PAREN_L,t,d.TokenKind.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(d.TokenKind.COLON),{kind:o.Kind.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:o.Kind.ARGUMENT,name:this.parseName(),value:(this.expectToken(d.TokenKind.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(d.TokenKind.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(d.TokenKind.NAME)?{kind:o.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:o.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e=this._lexer.token;return(this.expectKeyword("fragment"),this._options.experimentalFragmentVariables)?{kind:o.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}:{kind:o.Kind.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case d.TokenKind.BRACKET_L:return this.parseList(e);case d.TokenKind.BRACE_L:return this.parseObject(e);case d.TokenKind.INT:return this._lexer.advance(),{kind:o.Kind.INT,value:t.value,loc:this.loc(t)};case d.TokenKind.FLOAT:return this._lexer.advance(),{kind:o.Kind.FLOAT,value:t.value,loc:this.loc(t)};case d.TokenKind.STRING:case d.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case d.TokenKind.NAME:if("true"===t.value||"false"===t.value)return this._lexer.advance(),{kind:o.Kind.BOOLEAN,value:"true"===t.value,loc:this.loc(t)};if("null"===t.value)return this._lexer.advance(),{kind:o.Kind.NULL,loc:this.loc(t)};return this._lexer.advance(),{kind:o.Kind.ENUM,value:t.value,loc:this.loc(t)};case d.TokenKind.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:o.Kind.STRING,value:e.value,block:e.kind===d.TokenKind.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,s=this._lexer.token;return{kind:o.Kind.LIST,values:this.any(d.TokenKind.BRACKET_L,function(){return t.parseValueLiteral(e)},d.TokenKind.BRACKET_R),loc:this.loc(s)}},t.parseObject=function(e){var t=this,s=this._lexer.token;return{kind:o.Kind.OBJECT,fields:this.any(d.TokenKind.BRACE_L,function(){return t.parseObjectField(e)},d.TokenKind.BRACE_R),loc:this.loc(s)}},t.parseObjectField=function(e){var t=this._lexer.token,s=this.parseName();return this.expectToken(d.TokenKind.COLON),{kind:o.Kind.OBJECT_FIELD,name:s,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(d.TokenKind.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(d.TokenKind.AT),{kind:o.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return(this.expectOptionalToken(d.TokenKind.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(d.TokenKind.BRACKET_R),e={kind:o.Kind.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(d.TokenKind.BANG))?{kind:o.Kind.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:o.Kind.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===d.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(d.TokenKind.STRING)||this.peek(d.TokenKind.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token;this.expectKeyword("schema");var t=this.parseDirectives(!0),s=this.many(d.TokenKind.BRACE_L,this.parseOperationTypeDefinition,d.TokenKind.BRACE_R);return{kind:o.Kind.SCHEMA_DEFINITION,directives:t,operationTypes:s,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(d.TokenKind.COLON);var s=this.parseNamedType();return{kind:o.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:s,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var s=this.parseName(),r=this.parseDirectives(!0);return{kind:o.Kind.SCALAR_TYPE_DEFINITION,description:t,name:s,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var s=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),a=this.parseFieldsDefinition();return{kind:o.Kind.OBJECT_TYPE_DEFINITION,description:t,name:s,interfaces:r,directives:i,fields:a,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(d.TokenKind.AMP);do e.push(this.parseNamedType());while(this.expectOptionalToken(d.TokenKind.AMP)||this._options.allowLegacySDLImplementsInterfaces&&this.peek(d.TokenKind.NAME))}return e},t.parseFieldsDefinition=function(){return this._options.allowLegacySDLEmptyFields&&this.peek(d.TokenKind.BRACE_L)&&this._lexer.lookahead().kind===d.TokenKind.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(d.TokenKind.BRACE_L,this.parseFieldDefinition,d.TokenKind.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),s=this.parseName(),r=this.parseArgumentDefs();this.expectToken(d.TokenKind.COLON);var i=this.parseTypeReference(),a=this.parseDirectives(!0);return{kind:o.Kind.FIELD_DEFINITION,description:t,name:s,arguments:r,type:i,directives:a,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(d.TokenKind.PAREN_L,this.parseInputValueDef,d.TokenKind.PAREN_R)},t.parseInputValueDef=function(){var e,t=this._lexer.token,s=this.parseDescription(),r=this.parseName();this.expectToken(d.TokenKind.COLON);var i=this.parseTypeReference();this.expectOptionalToken(d.TokenKind.EQUALS)&&(e=this.parseValueLiteral(!0));var a=this.parseDirectives(!0);return{kind:o.Kind.INPUT_VALUE_DEFINITION,description:s,name:r,type:i,defaultValue:e,directives:a,loc:this.loc(t)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var s=this.parseName(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();return{kind:o.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:s,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var s=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:o.Kind.UNION_TYPE_DEFINITION,description:t,name:s,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){var e=[];if(this.expectOptionalToken(d.TokenKind.EQUALS)){this.expectOptionalToken(d.TokenKind.PIPE);do e.push(this.parseNamedType());while(this.expectOptionalToken(d.TokenKind.PIPE))}return e},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var s=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:o.Kind.ENUM_TYPE_DEFINITION,description:t,name:s,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(d.TokenKind.BRACE_L,this.parseEnumValueDefinition,d.TokenKind.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),s=this.parseName(),r=this.parseDirectives(!0);return{kind:o.Kind.ENUM_VALUE_DEFINITION,description:t,name:s,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var s=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:o.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:s,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(d.TokenKind.BRACE_L,this.parseInputValueDef,d.TokenKind.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===d.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),s=this.optionalMany(d.TokenKind.BRACE_L,this.parseOperationTypeDefinition,d.TokenKind.BRACE_R);if(0===t.length&&0===s.length)throw this.unexpected();return{kind:o.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:s,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),s=this.parseDirectives(!0);if(0===s.length)throw this.unexpected();return{kind:o.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:s,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),s=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===s.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:o.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:s,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),s=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===s.length&&0===r.length)throw this.unexpected();return{kind:o.Kind.INTERFACE_TYPE_EXTENSION,name:t,directives:s,fields:r,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),s=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===s.length&&0===r.length)throw this.unexpected();return{kind:o.Kind.UNION_TYPE_EXTENSION,name:t,directives:s,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),s=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===s.length&&0===r.length)throw this.unexpected();return{kind:o.Kind.ENUM_TYPE_EXTENSION,name:t,directives:s,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),s=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===s.length&&0===r.length)throw this.unexpected();return{kind:o.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:s,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(d.TokenKind.AT);var s=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var a=this.parseDirectiveLocations();return{kind:o.Kind.DIRECTIVE_DEFINITION,description:t,name:s,arguments:r,repeatable:i,locations:a,loc:this.loc(e)}},t.parseDirectiveLocations=function(){this.expectOptionalToken(d.TokenKind.PIPE);var e=[];do e.push(this.parseDirectiveLocation());while(this.expectOptionalToken(d.TokenKind.PIPE));return e},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==u.DirectiveLocation[t.value])return t;throw this.unexpected(e)},t.loc=function(e){if(!this._options.noLocation)return new v(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw(0,n.syntaxError)(this._lexer.source,t.start,"Expected ".concat(e,", found ").concat(f(t)))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind===d.TokenKind.NAME&&t.value===e)this._lexer.advance();else throw(0,n.syntaxError)(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(f(t)))},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===d.TokenKind.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=e||this._lexer.token;return(0,n.syntaxError)(this._lexer.source,t.start,"Unexpected ".concat(f(t)))},t.any=function(e,t,s){this.expectToken(e);for(var r=[];!this.expectOptionalToken(s);)r.push(t.call(this));return r},t.optionalMany=function(e,t,s){if(this.expectOptionalToken(e)){var r=[];do r.push(t.call(this));while(!this.expectOptionalToken(s));return r}return[]},t.many=function(e,t,s){this.expectToken(e);var r=[];do r.push(t.call(this));while(!this.expectOptionalToken(s));return r},e}();function v(e,t,s){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=s}function f(e){var t=e.value;return t?"".concat(e.kind,' "').concat(t,'"'):e.kind}(0,a.default)(v,function(){return{start:this.start,end:this.end}})},58506(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.printLocation=function(e){return i(e.source,(0,r.getLocation)(e.source,e.start))},t.printSourceLocation=i;var r=s(21123);function i(e,t){var s=e.locationOffset.column-1,r=n(s)+e.body,i=t.line-1,o=e.locationOffset.line-1,l=t.line+o,c=1===t.line?s:0,u=t.column+c,d="".concat(e.name,":").concat(l,":").concat(u,"\n"),h=r.split(/\r\n|[\n\r]/g),p=h[i];if(p.length>120){for(var v=Math.floor(u/80),f=u%80,g=[],_=0;_<p.length;_+=80)g.push(p.slice(_,_+80));return d+a([["".concat(l),g[0]]].concat(g.slice(1,v+1).map(function(e){return["",e]}),[[" ",n(f-1)+"^"],["",g[v+1]]]))}return d+a([["".concat(l-1),h[i-1]],["".concat(l),p],["",n(u-1)+"^"],["".concat(l+1),h[i+1]]])}function a(e){var t=e.filter(function(e){return e[0],void 0!==e[1]}),s=Math.max.apply(Math,t.map(function(e){return e[0].length}));return t.map(function(e){var t,r=e[0],i=e[1];return n(s-(t=r).length)+t+(i?" | "+i:" |")}).join("\n")}function n(e){return Array(e+1).join(" ")}},78982(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,r.visit)(e,{leave:a})};var r=s(22216),i=s(51342),a={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return o(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,s=e.name,r=c("(",o(e.variableDefinitions,", "),")"),i=o(e.directives," "),a=e.selectionSet;return s||i||r||"query"!==t?o([t,o([s,r]),i,a]," "):a},VariableDefinition:function(e){var t=e.variable,s=e.type,r=e.defaultValue,i=e.directives;return t+": "+s+c(" = ",r)+c(" ",o(i," "))},SelectionSet:function(e){return l(e.selections)},Field:function(e){var t=e.alias,s=e.name,r=e.arguments,i=e.directives,a=e.selectionSet;return o([c("",t,": ")+s+c("(",o(r,", "),")"),o(i," "),a]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+c(" ",o(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,s=e.directives,r=e.selectionSet;return o(["...",c("on ",t),o(s," "),r]," ")},FragmentDefinition:function(e){var t=e.name,s=e.typeCondition,r=e.variableDefinitions,i=e.directives,a=e.selectionSet;return"fragment ".concat(t).concat(c("(",o(r,", "),")")," ")+"on ".concat(s," ").concat(c("",o(i," ")," "))+a},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var s=e.value;return e.block?(0,i.printBlockString)(s,"description"===t?"":" "):JSON.stringify(s)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+o(e.values,", ")+"]"},ObjectValue:function(e){return"{"+o(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+c("(",o(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:function(e){var t=e.directives,s=e.operationTypes;return o(["schema",o(t," "),l(s)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:n(function(e){return o(["scalar",e.name,o(e.directives," ")]," ")}),ObjectTypeDefinition:n(function(e){var t=e.name,s=e.interfaces,r=e.directives,i=e.fields;return o(["type",t,c("implements ",o(s," & ")),o(r," "),l(i)]," ")}),FieldDefinition:n(function(e){var t=e.name,s=e.arguments,r=e.type,i=e.directives;return t+(h(s)?c("(\n",u(o(s,"\n")),"\n)"):c("(",o(s,", "),")"))+": "+r+c(" ",o(i," "))}),InputValueDefinition:n(function(e){var t=e.name,s=e.type,r=e.defaultValue,i=e.directives;return o([t+": "+s,c("= ",r),o(i," ")]," ")}),InterfaceTypeDefinition:n(function(e){var t=e.name,s=e.directives,r=e.fields;return o(["interface",t,o(s," "),l(r)]," ")}),UnionTypeDefinition:n(function(e){var t=e.name,s=e.directives,r=e.types;return o(["union",t,o(s," "),r&&0!==r.length?"= "+o(r," | "):""]," ")}),EnumTypeDefinition:n(function(e){var t=e.name,s=e.directives,r=e.values;return o(["enum",t,o(s," "),l(r)]," ")}),EnumValueDefinition:n(function(e){return o([e.name,o(e.directives," ")]," ")}),InputObjectTypeDefinition:n(function(e){var t=e.name,s=e.directives,r=e.fields;return o(["input",t,o(s," "),l(r)]," ")}),DirectiveDefinition:n(function(e){var t=e.name,s=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(h(s)?c("(\n",u(o(s,"\n")),"\n)"):c("(",o(s,", "),")"))+(r?" repeatable":"")+" on "+o(i," | ")}),SchemaExtension:function(e){var t=e.directives,s=e.operationTypes;return o(["extend schema",o(t," "),l(s)]," ")},ScalarTypeExtension:function(e){return o(["extend scalar",e.name,o(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,s=e.interfaces,r=e.directives,i=e.fields;return o(["extend type",t,c("implements ",o(s," & ")),o(r," "),l(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,s=e.directives,r=e.fields;return o(["extend interface",t,o(s," "),l(r)]," ")},UnionTypeExtension:function(e){var t=e.name,s=e.directives,r=e.types;return o(["extend union",t,o(s," "),r&&0!==r.length?"= "+o(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,s=e.directives,r=e.values;return o(["extend enum",t,o(s," "),l(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,s=e.directives,r=e.fields;return o(["extend input",t,o(s," "),l(r)]," ")}};function n(e){return function(t){return o([t.description,e(t)],"\n")}}function o(e,t){return e?e.filter(function(e){return e}).join(t||""):""}function l(e){return e&&0!==e.length?"{\n"+u(o(e,"\n"))+"\n}":""}function c(e,t,s){return t?e+t+(s||""):""}function u(e){return e&&" "+e.replace(/\n/g,"\n ")}function d(e){return -1!==e.indexOf("\n")}function h(e){return e&&e.some(d)}},90233(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.Source=void 0;var r=a(s(85309)),i=a(s(4225));function a(e){return e&&e.__esModule?e:{default:e}}var n=function(e,t,s){this.body=e,this.name=t||"GraphQL request",this.locationOffset=s||{line:1,column:1},this.locationOffset.line>0||(0,r.default)(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||(0,r.default)(0,"column in locationOffset is 1-indexed and must be positive")};t.Source=n,(0,i.default)(n)},77613(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.TokenKind=void 0,t.TokenKind=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}
5",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"})},22216(e,t,s){Object.defineProperty(t,"__esModule",{value:!0}),t.visit=function(e,t){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,r=void 0,c=Array.isArray(e),u=[e],d=-1,h=[],p=void 0,v=void 0,f=void 0,g=[],_=[],b=e;do{var y=++d===u.length,m=y&&0!==h.length;if(y){if(v=0===_.length?void 0:g[g.length-1],p=f,f=_.pop(),m){if(c)p=p.slice();else{for(var C={},T=0,S=Object.keys(p);T<S.length;T++){var P=S[T];C[P]=p[P]}p=C}for(var k=0,R=0;R<h.length;R++){var w=h[R][0],A=h[R][1];c&&(w-=k),c&&null===A?(p.splice(w,1),k++):p[w]=A}}d=r.index,u=r.keys,h=r.edits,c=r.inArray,r=r.prev}else{if(v=f?c?d:u[d]:void 0,null==(p=f?f[v]:b))continue;f&&g.push(v)}var E=void 0;if(!Array.isArray(p)){if(!o(p))throw Error("Invalid AST Node: "+(0,i.default)(p));var O=l(t,p.kind,y);if(O){if((E=O.call(t,p,v,f,g,_))===n)break;if(!1===E){if(!y){g.pop();continue}}else if(void 0!==E&&(h.push([v,E]),!y))if(o(E))p=E;else{g.pop();continue}}}void 0===E&&m&&h.push([v,p]),y?g.pop():(r={inArray:c,index:d,keys:u,edits:h,prev:r},u=(c=Array.isArray(p))?p:s[p.kind]||[],d=-1,h=[],f&&_.push(f),f=p)}while(void 0!==r);return 0!==h.length&&(b=h[h.length-1][1]),b},t.visitInParallel=function(e){var t=Array(e.length);return{enter:function(s){for(var r=0;r<e.length;r++)if(!t[r]){var i=l(e[r],s.kind,!1);if(i){var a=i.apply(e[r],arguments);if(!1===a)t[r]=s;else if(a===n)t[r]=n;else if(void 0!==a)return a}}},leave:function(s){for(var r=0;r<e.length;r++)if(t[r])t[r]===s&&(t[r]=null);else{var i=l(e[r],s.kind,!0);if(i){var a=i.apply(e[r],arguments);if(a===n)t[r]=n;else if(void 0!==a&&!1!==a)return a}}}}},t.visitWithTypeInfo=function(e,t){return{enter:function(s){e.enter(s);var r=l(t,s.kind,!1);if(r){var i=r.apply(t,arguments);return void 0!==i&&(e.leave(s),o(i)&&e.enter(i)),i}},leave:function(s){var r,i=l(t,s.kind,!0);return i&&(r=i.apply(t,arguments)),e.leave(s),r}}},t.getVisitFn=l,t.BREAK=t.QueryDocumentKeys=void 0;var r,i=(r=s(98200))&&r.__esModule?r:{default:r},a={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=a;var n=Object.freeze({});function o(e){return!!(e&&"string"==typeof e.kind)}function l(e,t,s){var r=e[t];if(r){if(!s&&"function"==typeof r)return r;var i=s?r.leave:r.enter;if("function"==typeof i)return i}else{var a=s?e.leave:e.enter;if(a){if("function"==typeof a)return a;var n=a[t];if("function"==typeof n)return n}}}t.BREAK=n},87356(e,t,s){var r=s(53079);(0,r.lz)("Editor:EditorApiService");let i=(0,r.lz)("Editor:EditorDirectContentService");(0,r.lz)("Editor:EditorContentService"),(0,r.lz)("Editor:EditorDrawerService"),s.d(t,{},{fA:i})},6701(e,t,s){var r,i=((r={}).FRONT="front",r.SERVER="server",r);let a=[{key:"baseUrl",displayName:"Base URL",path:"baseUrl",envVar:"CONFIG_BASE_URL",validationType:"url",scope:"front"},{key:"apiUrl",path:"api.url",displayName:"API URL",envVar:"CONFIG_API_URL",validationType:"url",scope:"front"},{key:"routeUrl",path:"legacyApi.route",displayName:"Router API URL",envVar:"CONFIG_LEGACY_API_ROUTE",scope:"front",validationType:"url"},{key:"paymentsBaseUrl",displayName:"Payments Base URL",path:"payments.baseUrl",envVar:"CONFIG_PAYMENTS_BASE_URL",scope:"front",validationType:"url",legacyEnvVars:["CONFIG_BASE_URL"]},{key:"paymentsBaseMobileUrl",displayName:"Payments Mobile Base URL",path:"payments.baseMobileUrl",envVar:"CONFIG_PAYMENTS_BASE_MOBILE_URL",
5scope:"front",validationType:"url"},{key:"websocketBaseUrl",displayName:"Websocket Base URL",path:"websocket.baseUrl",envVar:"CONFIG_WEBSOCKET_URL",scope:"front",validationType:"url"},{key:"assetsUrl",displayName:"Assets URL",path:"assetsUrl",envVar:"CONFIG_ASSETS_URL",scope:"front",validationType:"url"},{key:"gatewayBaseUrl",displayName:"Gateway Base URL",path:"gateway.baseUrl",envVar:"CONFIG_GATEWAY_BASE_URL",scope:"front",validationType:"url"},{key:"gatewayPrefix",displayName:"Gateway Prefix",path:"gateway.prefix",envVar:"CONFIG_GATEWAY_PREFIX",scope:"front",validationType:"prefix"},{key:"analyticsMetricsUrl",displayName:"Analytics Metrics URL",path:"analytics.metricsUrl",envVar:"CONFIG_ANALYTICS_METRICS_URL",scope:"front",validationType:"url"},{key:"mercureWishListBaseUrl",displayName:"Mercure WishList Base URL",path:"mercure.wishList.baseUrl",envVar:"CONFIG_MERCURE_WISHLIST_BASE_URL",scope:"front",validationType:"url"},{key:"mercureSystemNotificationBaseUrl",displayName:"Mercure System Notification Base URL",path:"mercure.systemNotification.baseUrl",envVar:"CONFIG_MERCURE_SYSTEM_NOTIFICATION_BASE_URL",scope:"front",validationType:"url"},{key:"mercureLoyaltyProgramBaseUrl",displayName:"Mercure Loyalty Program Base URL",path:"mercure.loyaltyProgram.baseUrl",envVar:"CONFIG_MERCURE_LOYALTY_PROGRAM_BASE_URL",scope:"front",validationType:"url"},{key:"mercureMpsBaseUrl",displayName:"Mercure MPS Base URL",path:"mercure.mps.baseUrl",envVar:"CONFIG_MERCURE_MPS_BASE_URL",scope:"front",validationType:"url"}],n=a.reduce((e,t)=>(e[t.key]=t,e),{});s.d(t,{qQ:()=>i},{U2:n,fM:a})},13032(e,t,s){var r=s(28764),i=s(4509),a=s(35910),n=s(53079);class o{async getCartDebug(){let e=await this.gAdafirApiService.get("/debug/cart_debug");if(!e.isOk)throw new a.A({type:i.B.DEBUG_CART,code:String(e.status),message:JSON.stringify(e.data)});return e.data}async getCalendarDebug(){let e=await this.gAdafirApiService.get("/debug/calendar");if(!e.isOk)throw new a.A({type:i.B.DEBUG_CALENDAR,code:String(e.status),message:JSON.stringify(e.data)});return e.data}async getServicesDebug(){let e=await this.gAdafirApiService.get("/debug/services");if(!e.isOk)throw new a.A({type:i.B.DEBUG_SERVICES,code:String(e.status),message:JSON.stringify(e.data)});return e.data}async getPromotionDebug(){let e=await this.gAdafirApiService.get("/debug/promotion");if(!e.isOk)throw new a.A({type:i.B.DEBUG_SERVICES,code:String(e.status),message:JSON.stringify(e.data)});return e.data}async getAPKData(){let e=await this.gAdafirApiService.get("/debug/insurance");if(!e.isOk)throw new a.A({type:i.B.DEBUG_SERVICES,code:String(e.status),message:JSON.stringify(e.data)});return e.data}}!function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);a>3&&n&&Object.defineProperty(t,s,n)}([(0,n.y_)(r.xg)],o.prototype,"gAdafirApiService",void 0),s.d(t,{A:()=>o})},63853(e,t,s){var r=s(82831),i=s(71855),a=s(59306),n=s(13032);function o(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class l{async loadCalendarDebug(){try{this.state.isLoading=!0,this.state.isError=!1,this.state.data=await this.gDebugRepository.getCalendarDebug()}catch(e){this.state.isError=!0,this.gLogger.warn("CalendarDebugService","Cannot load debug for calendar",e)}finally{this.state.isLoading=!1}}constructor(){this.state={isLoading:!1,isError:!1,data:null}}}o([(0,r.A)(n.A)],l.prototype,"gDebugRepository",void 0),o([(0,r.A)(a.Fd)],l.prototype,"gLogger",void 0),o([(0,i.A)()],l.prototype,"state",void 0),s.d(t,{A:()=>l})},96933(e,t,s){var r=s(82831),i=s(71855),a=s(59306),n=s(13032);function o(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class l{async loadCartDebug(){try{this.state.isLoading=!0,this.state.isError=!1,this.state.data=await this.gDebugRepository.getCartDebug()}
5catch(e){this.state.isError=!0,this.gLogger.warn("CartDebugService","Cannot load debug for cart",e)}finally{this.state.isLoading=!1}}constructor(){this.state={isLoading:!0,isError:!1,data:null}}}o([(0,r.A)(n.A)],l.prototype,"gDebugRepository",void 0),o([(0,r.A)(a.Fd)],l.prototype,"gLogger",void 0),o([(0,i.A)()],l.prototype,"state",void 0),s.d(t,{A:()=>l})},93990(e,t,s){class r{async getCurrentCallstack(e){if(!e)return[];let t=(await s.e(5183).then(s.t.bind(s,56871,23))).parse(e).map(e=>{var t;return e.fileName=this.replaceWebpackFileName(null!=(t=e.fileName)?t:""),e});return this.excludeFileName(t)}excludeFileName(e,t=[]){let s=[...this.excludedFileNameStack,...t];return e.filter(e=>{var t;return!s.includes(null!=(t=e.fileName)?t:"")})}replaceWebpackFileName(e){return e.replace("webpack-internal:///./","")}constructor(){this.excludedFileNameStack=["node:internal/process/task_queues"]}}s.d(t,{A:()=>r})},19305(e,t,s){var r=s(82831),i=s(59306),a=s(71855),n=s(59912),o=s(53079);function l(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class c{async loadInfo(){try{var e;this.state.isLoading=!0;let t=await fetch("/spark-api/toolbar/info"),s=await t.json();this.state.config=s.data,null==(e=this.gSparkOverlayService)||e.loadInfo(s.data)}catch(e){this.gLogger.warn("PanelService:GetInfo","Cannot get app info")}finally{this.state.isLoading=!1}}getInfoValue(e){var t;return null==(t=this.state.config.find(t=>t.name===e))?void 0:t.value}constructor(){this.state={isLoading:!0,config:[]}}}l([(0,r.A)(i.Fd)],c.prototype,"gLogger",void 0),l([(0,o.UN)(n.t)],c.prototype,"gSparkOverlayService",void 0),l([(0,a.A)()],c.prototype,"state",void 0),s.d(t,{A:()=>c})},92992(e,t,s){var r=s(82831),i=s(71855),a=s(59306),n=s(13032);function o(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class l{async loadPromotionDebug(){try{this.state.isLoading=!0,this.state.isError=!1,this.state.data=await this.gDebugRepository.getPromotionDebug()}catch(e){this.state.isError=!0,this.gLogger.warn("PromotionDebugService:loadPromotionDebug","Cannot load debug for promotion",e)}finally{this.state.isLoading=!1}}constructor(){this.state={isLoading:!0,isError:!1,data:null}}}o([(0,r.A)(n.A)],l.prototype,"gDebugRepository",void 0),o([(0,r.A)(a.Fd)],l.prototype,"gLogger",void 0),o([(0,i.A)()],l.prototype,"state",void 0),s.d(t,{A:()=>l})},92577(e,t,s){var r=s(82831),i=s(71855),a=s(59306),n=s(13032);function o(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class l{async loadServicesDebug(){try{this.state.isLoading=!0,this.state.isError=!1,this.state.data=await this.gDebugRepository.getServicesDebug()}catch(e){this.state.isError=!0,this.gLogger.warn("ServicesDebugService:loadServicesDebug","Cannot load debug for services",e)}finally{this.state.isLoading=!1}}constructor(){this.state={isLoading:!0,isError:!1,data:null}}}o([(0,r.A)(n.A)],l.prototype,"gDebugRepository",void 0),o([(0,r.A)(a.Fd)],l.prototype,"gLogger",void 0),o([(0,i.A)()],l.prototype,"state",void 0),s.d(t,{A:()=>l})},71104(e,t,s){var r,i,a=s(98677),n=s(63546),o=s(64793),l=s(90983),c=s(85121),u=s(53079),d=s(59306),h=s(28764),p=s(93990),v=s(8129),f=s(47884),g=s(45656),_=s(16403);function b(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}var y=((r={}).SERVER="SERVER",r.FRONT="FRONT",r),m=((i={}
5).PENDING="PENDING",i.DONE="DONE",i.ERROR="ERROR",i.INTERRUPTED="INTERRUPTED",i);let C="enablePreview";class T{makeApiRequest(e){this.gToolbarRequestService.fillRequestFormFromEntry(e),this.gToolbarService.openTab(g.P.Request)}handleBeforeRequest(e){var t;let s={id:e.requestId,method:e.requestData.method,baseUrl:null!=(t=e.requestData.baseUrl)?t:this.getBaseUrl(),url:this.getUrl(e.requestData.url),isCacheHit:!1,origin:"FRONT",start:(0,c.i)(),time:-1,date:(0,_.GP)(new Date,"dd.MM.yy HH:mm:ss"),size:-1,statusCode:-1,requestPayload:e.requestData.payload,description:e.requestData.description,responseBody:null,status:"PENDING",requestHeaders:this.dumpHeaders(e.requestData.headers),responseHeaders:[],debugCallstack:null,fromInternalCache:!1};this.state.entries.push(s),this.fRequestMap.set(s.id,s)}async handleAfterRequest(e){let t=this.fRequestMap.get(e.requestId);if(!t)throw Error("ToolbarApiMonitorService: trying to complete unknown request.");let s=e.responseData.headers.get("age"),r=e.responseData.headers.get("x-age"),i=r?parseInt(r,10):parseInt(null!=s?s:"0",10),a=!!this.gCookieStorage.get(C),n=e.responseData.size<=512e3||a;t.time=(0,c.i)()-t.start,t.isCacheHit=i>0,t.statusCode=e.responseData.status,t.responseBody=n?e.responseData.body:"__SPARK_TRUNCATED__",t.status="DONE",t.size=e.responseData.size,t.responseHeaders=this.dumpHeaders(e.responseData.headers),t.fromInternalCache=!!e.responseData.fromInternalCache;try{var o;t.debugCallstack=await this.gDebugCallstackService.getCurrentCallstack(null!=(o=e.responseData.responseError)?o:null)}catch(s){t.debugCallstack=null,this.gLogger.warn("ToolbarApiMonitorService:handleAfterRequest",`Failed to build debug callstack for ${e.requestId} (${e.responseData.url})`,s)}}setSelectedEntry(e){this.state.selectedEntry=e}clearAll(){this.state.entries=[],this.fRequestMap.clear(),this.setSelectedEntry(null)}getUrl(e){let t=this.gAppService.getConfig(),s=e.indexOf("/_app");if(-1!==s){var r;let i=e.substring(s),a=null==(r=t.gateway)?void 0:r.baseUrl;if(!a)return e;let n=a.replace(/\/+$/,""),o=i.replace(/^\/+/,"/");return`${n}${o}`}return e.replace("/api",t.api.url)}getBaseUrl(){let{url:e}=this.gAppService.getConfig().api;return e}dumpHeaders(e){return Array.from(e.entries()).map(e=>({name:e[0],value:e[1]}))}onFrontBeforeRenderEvent(){this.state.entries=this.state.entries.map(e=>("SERVER"===e.origin&&"PENDING"===e.status&&(e.status="INTERRUPTED"),e))}constructor(){this.fRequestMap=new Map,this.state={entries:[],selectedEntry:null}}}b([(0,u.y_)(d.TF)],T.prototype,"gAppService",void 0),b([(0,u.y_)(h.qe)],T.prototype,"gAdafirRequestStorage",void 0),b([(0,u.y_)(d.iR)],T.prototype,"gCookieStorage",void 0),b([(0,u.y_)(d.Fd)],T.prototype,"gLogger",void 0),b([(0,u.y_)(p.A)],T.prototype,"gDebugCallstackService",void 0),b([(0,u.y_)(f.et)],T.prototype,"gToolbarRequestService",void 0),b([(0,u.y_)(f.hE)],T.prototype,"gToolbarService",void 0),b([(0,l.y)("Toolbar:ToolbarApiMonitorService.state")],T.prototype,"state",void 0),b([(0,a.A)(n.A)],T.prototype,"handleBeforeRequest",null),b([(0,a.A)(o.A)],T.prototype,"handleAfterRequest",null),b([(0,a.A)(v.A)],T.prototype,"onFrontBeforeRenderEvent",null),s.d(t,{Ay:()=>T,EV:()=>m,kr:()=>y},{MX:C})},81443(e,t,s){var r=s(53079),i=s(71855),a=s(59306),n=s(13032);function o(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class l{async loadAPKData(){try{this.state.data=await this.gDebugRepository.getAPKData()}catch(e){this.gLogger.warn("ApkDebugService:loadAPKData","Cannot load debug for apk",e)}}constructor(){this.state={data:null}}}o([(0,r.y_)(n.A)],l.prototype,"gDebugRepository",void 0),o([(0,r.y_)(a.Fd)],l.prototype,"gLogger",void 0),o([(0,i.A)()],l.prototype,"state",void 0),s.d(t,{A:()=>l})},33020(e,t,s){var r=s(98677),i=s(57059),a=s(82831),n=s(59306),o=s(28764),l=s(71855);function c(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class u{handleFrontReady(){this.getDocumentHeaders()}async getDocumentHeaders(){try{let e=await fetch(document.location.href);this.state.headers=e.headers}
5catch(e){this.gLogger.warn("ToolbarCacheService","Cannot get document headers")}}async purgeClient(){let e=this.generateBaseUrl();await this.purgeHref(e.href),e.searchParams.append("enableDebugBar","1"),await this.purgeHref(e.href)}async purgeAll(){await this.purgeClient();let e=this.generateBaseUrl();e.searchParams.append("purgeApi","1"),await this.makeRequest(e.href),e.searchParams.delete("purgeApi"),await this.makeRequest(e.href)}async purgeHref(e){let t=new URL(e);t.searchParams.append("purge","1"),await this.makeRequest(t.href)}async purgeRequestEntry(e,t){try{let s=this.getRequestContext(t);await fetch("/spark-api/toolbar/purge",{method:"POST",body:JSON.stringify({url:e,context:s}),headers:{"Content-Type":"application/json"}})}catch(e){this.gLogger.warn("ToolbarCacheService","Cannot purge request entry",e)}}generateBaseUrl(){let e=new URL(window.location.href);return this.removeUnnecessaryQuery(e),e}removeUnnecessaryQuery(e){e.searchParams.delete("skipVarnish"),e.searchParams.delete("enableDebugBar"),e.searchParams.delete("excludeComponents"),e.searchParams.delete("blackFireTrigger")}async makeRequest(e){try{let t=new Headers;t.append("pragma","no-cache"),t.append("cache-control","no-cache"),await fetch(e,{headers:t})}catch(t){this.gLogger.warn("ToolbarCacheService","Cannot make request to href",e,t)}}getRequestContext(e){let t={purge:!0},s=this.getContextHeader(e,"pagination-limit");s&&(t.paginationLimit=Number(s.value));let r=this.getContextHeader(e,"pagination-page");return r&&(t.paginationPage=Number(r.value)),this.getContextHeader(e,"x-legacy-offers-mode")&&(t.legacyOffersMode=!0),this.getContextHeader(e,"x-snake-case-offers-mode")&&(t.snakeCaseOffersMode=!0),t}getContextHeader(e,t){var s;return null!=(s=e.requestHeaders.find(({name:e})=>e.toLowerCase()===t.toLowerCase()))?s:null}constructor(){this.state={headers:null}}}c([(0,a.A)(o.xg)],u.prototype,"gAdafirApiService",void 0),c([(0,a.A)(n.Fd)],u.prototype,"gLogger",void 0),c([(0,l.A)()],u.prototype,"state",void 0),c([(0,r.A)(i.A)],u.prototype,"handleFrontReady",null),s.d(t,{A:()=>u})},33960(e,t,s){var r=s(71855);class i{setActiveTab(e){this.state.activeTab=e}constructor(){this.state={isLoading:!1,activeTab:"clear"}}}!function(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);a>3&&n&&Object.defineProperty(t,s,n)}([(0,r.A)()],i.prototype,"state",void 0),s.d(t,{A:()=>i})},35837(e,t,s){var r=s(53079),i=s(71855),a=s(59306),n=s(40207),o=s(87356);function l(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class c{get state(){return this.fState}setPageSource(e){this.fState.pageSource=e}setApiUrl(e){this.fState.apiUrl=e}setAccessToken(e){this.fState.accessToken=e}setExternalAccessToken(e){this.fState.externalAccessToken=e}setPageIds(e){this.fState.pageIds=e}setAdafirPlace(e){this.fState.adafir.place=e}setAdafirZone(e){this.fState.adafir.zone=e}setClientName(e){this.fState.adafir.clientName=e}setAdafirEnv(e){this.fState.adafir.env=e}setMinifyScripts(e){this.fState.minifyScripts=e}setSSR(e){this.fState.ssr=e}setInjectIntoIsland(e){this.fState.injectIntoIsland=e}setIsHeaderVisible(e){this.fState.isHeaderVisible=e}get formValid(){return this.state.pageSource===n.U.EDITOR&&!!this.state.apiUrl&&!!this.state.accessToken&&!!this.state.pageIds||this.state.pageSource===n.U.ADAFIR&&!!this.state.externalAccessToken&&!!this.state.adafir.place&&!!this.state.adafir.zone}get appConfig(){return this.gAppService.getConfig()}mapObjectToContent(e){return`<html> 6 <style>${e.css}</style> 7 ${e.html} 8 <script>${e.js}<\/script> 9 </html>`}async loadContent(e){let t=this.state.apiUrl.replace(/\/?$/,"/"),s={pages:this.state.pageIds.split(",").map(e=>({id:e})),options:{minifyJs:this.state.minifyScripts}};e&&e.length>0&&(s.pages=e.map(e=>({id:e})));let r=await fetch(`${t}compile/multipage/compacted/`,{headers:{"Access-Token":this.state.accessToken,Accept:"application/json","Content-Type":"application/json"},method:"POST",body:JSON.stringify(s)}),i=await r.json();if(!i||!(null==i?void 0:i.results))return;let a=[];
9i.results.forEach(e=>{a.push(this.mapObjectToContent(e.output))}),this.gEditorDirectContentService.content=a}async loadAdafirContent(){let e=this.state.apiUrl.replace(/\/?$/,"/"),t=new URLSearchParams({place:this.state.adafir.place,zone:this.state.adafir.zone,env:this.state.adafir.env,externalAccessToken:this.state.externalAccessToken,appName:this.appConfig.name,client:this.state.adafir.clientName,websiteId:this.appConfig.websiteId.toString(),minifyJs:String(this.state.minifyScripts)}),s=await fetch(`${e}sparditor/getAdServers?${t.toString()}`,{headers:{"Access-Token":this.state.accessToken,Accept:"application/json","Content-Type":"application/json"},method:"GET"}),r=await s.json(),i=[];r.forEach(e=>{i.push(this.mapObjectToContent(e))}),this.gEditorDirectContentService.content=i}constructor(){this.fState={pageSource:n.U.EDITOR,apiUrl:"https://editor.enp.pl/api",accessToken:"",ssr:!1,externalAccessToken:"",pageIds:"",adafir:{clientName:"",place:"main",zone:"new_editor",env:n.S.PROD},minifyScripts:!0,injectIntoIsland:!1,isHeaderVisible:!1}}}l([(0,r.y_)(a.TF)],c.prototype,"gAppService",void 0),l([(0,r.UN)(o.fA)],c.prototype,"gEditorDirectContentService",void 0),l([(0,i.A)()],c.prototype,"fState",void 0),s.d(t,{A:()=>c})},18737(e,t,s){s.d(t,{A:()=>p});var r=s(82831),i=s(59306),a=s(28764),n=s(98677),o=s(57059),l=s(22228),c=s(62695),u=s(71855),d=s(6701);function h(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class p{onFrontReady(){var e,t,s;let r=this.gAppService.getConfig(),i=(s=d.qQ.FRONT,d.fM.reduce((e,t)=>{var i;let a;if(t.scope!==s)return e;let n=(i=t.path,"string"==typeof(a=i.split(".").reduce((e,t)=>{if(e&&"object"==typeof e)return e[t]},r))?a:void 0);return n&&(e[t.key]=n),e},{})),a=function(e){var t,s,r,i;let a=null!=(t=null==(i=e.gateway)||null==(r=i.apps)||null==(s=r.harvester)?void 0:s.gatewayPath)?t:"";if(!a)return;let n=function(e){var t,s,r,i,a,n,o,l;let c=null!=(t=null==(n=e.gateway)||null==(a=n.apps)||null==(i=a.harvester)?void 0:i.customBaseUrl)?t:"",u=null!=(s=null==(o=e.gateway)?void 0:o.prefix)?s:"",d=null!=(r=null==(l=e.gateway)?void 0:l.baseUrl)?r:"";try{if(c)return new URL(c).toString();if("u">typeof window)return new URL(u,window.location.origin).toString();return new URL(d).toString()}catch{return}}(e);if(n)return`${n.replace(/\/+$/,"")}/${a.replace(/^\/+/,"")}/api/events`}(r);a&&(i.analyticsMetricsUrl=a),this.fState.custom.overrides=i,this.fState.custom.api=null!=(e=i[this.fApiUrlOverrideKey])?e:r.api.url,this.fState.custom.router=null!=(t=i[this.fRouteUrlOverrideKey])?t:r.legacyApi.route,this.activeStage&&this.activeStage.name===l.AU.CUSTOM&&(this.fState.custom.isEnabled=!0)}get state(){return this.fState}get activeStage(){var e;return null!=(e=this.fState.stages.find(e=>!0===e.isActive))?e:null}get isAnyStagesActive(){return!!this.fState.stages.length&&this.fState.stages.some(e=>e.isActive)}setApiUrl(e){this.fState.custom.api=e}setRouterUrl(e){this.fState.custom.router=e}setCustomOverride(e,t){this.fState.custom.overrides[e]=t}setErrorMessage(e){this.fState.errorMessage=e}setBusyMessage(e){this.fState.busyMessage=e}setBusy(e){this.fState.isBusy=e}setLoading(e){this.fState.isLoading=e}async loadStages(){this.fState.isLoading=!0;try{var e;let t=await fetch("/spark-api/toolbar/config/stage");if(!t.ok)return;let s=await t.json();this.fState.stages=null!=(e=null==s?void 0:s.stages)?e:[]}catch(e){this.setErrorMessage("Cannot get app stages"),this.gLogger.warn("ToolbarEnvService::loadEnvs","Cannot get app stages",e)}finally{this.fState.isLoading=!1}}async changeStage(e){this.setBusyMessage("Please wait, the environment stage change is in progress..."),this.setBusy(!0);let t=JSON.stringify(e);try{if(await this.cacheClear(),!(await fetch("/spark-api/toolbar/config/stage",{method:"PUT",headers:{"Content-Type":"application/json"},body:t})).ok)return void this.setErrorMessage("Cannot change app stage");await this.gEvents.trigger(c.A)}
9catch(e){this.setBusy(!1),this.gLogger.warn("ToolbarEnvService::changeEnv","Cannot change app stage",e)}}async changeCustomEnv(){try{var e,t,s,r,i,a;let n=(i=this.fState.custom.api)&&/http(s?):\/\/(.*)\/api$/g.test(i)?{status:!0}:{status:!1,error:"Incorrect url. Url have to start with `http`|`https` and ends with `/api`"},o=(a=this.fState.custom.router)&&/http(s?):\/\/(.*)\/_route$/g.test(a)?{status:!0}:{status:!1,error:"Incorrect url. Url have to start with `http`|`https` and ends with `/_route`"};if(!n.status)return void this.setErrorMessage(null!=(s=n.error)?s:"Invalid API URL");if(!o.status)return void this.setErrorMessage(null!=(r=o.error)?r:"Invalid RouterAPI URL");let c=this.validateCustomOverrides(this.getCustomStageOverrides());if(c)return void this.setErrorMessage(c);this.setBusyMessage("Checking new stage urls..."),this.setBusy(!0),await this.checkSSRCustomAuth(),await this.changeStage({stage:l.AU.CUSTOM,apiUrl:this.fState.custom.api,routeUrl:null!=(e=null==(t=this.fState.custom)?void 0:t.router)?e:void 0,overrides:this.getCustomStageOverrides()})}catch(e){this.setBusy(!1),this.setErrorMessage(e),this.gLogger.warn("ToolbarEnvService::changeCustomEnv","Cannot change env to custom",e)}}async cacheClear(){try{this.setLoading(!0),await this.gCacheDriver.clear(),await fetch("/spark-api/toolbar/config/clear-cache",{method:"POST",headers:{"Content-Type":"application/json"}})}catch(e){this.fState.errorMessage="Cannot clear app cache",this.gLogger.warn("ToolbarEnvService::cacheClear","Cannot clear app cache",e)}finally{this.setLoading(!1)}}async checkSSRCustomAuth(){if(!(await fetch("/spark-api/toolbar/config/check-stage",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:this.fState.custom.api})})).ok)throw Error("Cannot change SSR stage. Check if url is valid")}getCustomStageOverrides(){let e={...this.fState.custom.overrides},t=d.U2[this.fApiUrlOverrideKey];t&&(e[t.key]=this.fState.custom.api);let s=d.U2[this.fRouteUrlOverrideKey];return s&&this.fState.custom.router&&(e[s.key]=this.fState.custom.router),Object.entries(e).reduce((e,[t,s])=>("string"==typeof s&&s.trim()&&(e[t]=s),e),{})}validateCustomOverrides(e){var t;let s=Object.entries(e).find(([e,t])=>!!d.U2[e]&&("gatewayPrefix"===e?!t.startsWith("/"):e!==this.fApiUrlOverrideKey&&e!==this.fRouteUrlOverrideKey&&!this.isValidHttpUrl(t)));if(!s)return null;let[r,i]=s,a=d.U2[r],n=null!=(t=null==a?void 0:a.displayName)?t:r;return"gatewayPrefix"===r?`${n} must start with "/"`:this.isValidHttpUrl(i)?null:`Invalid ${n}. URL must start with "http://" or "https://"`}isValidHttpUrl(e){try{let t=new URL(e);return"http:"===t.protocol||"https:"===t.protocol}catch{return!1}}constructor(){this.fState={isLoading:!0,isBusy:!1,stages:[],errorMessage:null,busyMessage:null,custom:{api:"",router:"",overrides:{},isEnabled:!1}},this.fApiUrlOverrideKey="apiUrl",this.fRouteUrlOverrideKey="routeUrl"}}h([(0,r.A)(i.TF)],p.prototype,"gAppService",void 0),h([(0,r.A)(a.xg)],p.prototype,"gAdafirApiService",void 0),h([(0,r.A)(i.Fd)],p.prototype,"gLogger",void 0),h([(0,r.A)(i.yh)],p.prototype,"gEvents",void 0),h([(0,r.A)(i.to)],p.prototype,"gCacheDriver",void 0),h([(0,u.A)()],p.prototype,"fState",void 0),h([(0,n.A)(o.A)],p.prototype,"onFrontReady",null)},43037(e,t,s){var r=s(23260),i=s(82831),a=s(90983);function n(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class o{get events(){return this.state.filterBy!==r.A.ALL?this.gEvents.events.filter(e=>e.type===this.state.filterBy):this.gEvents.events}constructor(){this.state={isLoading:!0,isBusy:!1,filterBy:r.A.ALL}}}n([(0,i.A)(r.h)],o.prototype,"gEvents",void 0),n([(0,a.y)("Devtools:ToolbarEventsService.state")],o.prototype,"state",void 0),s.d(t,{A:()=>o})},35037(e,t,s){var r=s(82831),i=s(59306),a=s(71855);function n(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class o{get state(){return this.fState}setErrorMessage(e){this.fState.errorMessage=e}setBusy(e){this.fState.isBusy=e}setLoading(e){this.fState.isLoading=e}async updateFeatureFlags(){try{this.setLoading(!0);let e=await fetch("/spark-api/toolbar/feature-flags");if(!e.ok)return;let t=await e.json()||{};this.fState.featureFlags=t,this.fState.sortedFlags=Object.keys(t).sort()}catch(e){this.setErrorMessage("Cannot get feature flags"),this.gLogger.error("FeatureFlagsService.updateFeatureFlags","Error during update feature flags",e)}finally{this.setLoading(!1)}}async changeFeatureFlag(e,t){try{if(this.setBusy(!0),!(await fetch("/spark-api/toolbar/feature-flags/change",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({flag:e,value:t})})).ok){this.setErrorMessage("Cannot change feature flag"),this.setBusy(!1);return}}catch(e){this.setBusy(!1),this.gLogger.error("FeatureFlagsService.changeFlagValue","Error during changing flag value",e)}}constructor(){this.fState={isLoading:!0,isBusy:!1,featureFlags:{},sortedFlags:[],busyMessage:"Feature flag is changing...",errorMessage:null}}}n([(0,r.A)(i.Fd)],o.prototype,"gLogger",void 0),n([(0,r.A)(i.yh)],o.prototype,"gEvents",void 0),n([(0,a.A)()],o.prototype,"fState",void 0),s.d(t,{A:()=>
9o})},38873(e,t,s){s.d(t,{A:()=>n});var r=s(98677),i=s(71855);function a(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class n{get filteredAndSortedEntries(){return this.sortEntries(this.filterEntries([...this.state.entries]))}async handleHarvesterEvent(e){this.state.entries.push(e)}handleFilter(e,t){this.state.filters[e]=t}handleSort(e){this.state.sortValue=e}getChoices(e){return Array.from(new Set(this.state.entries.map(t=>String(t.harvesterEvent[e]))))}filterEntries(e){let t=Object.keys(this.state.filters);return(null==t?void 0:t.length)?e.filter(e=>t.every(t=>{var s;return!(null==(s=this.state.filters[t])?void 0:s.length)||this.state.filters[t].includes(String(e.harvesterEvent[t]))})):e}sortEntries(e){if(!this.state.sortValue)return e;let t=this.state.sortValue.startsWith("-"),s=this.state.sortValue.replace("-","");return e.sort((e,r)=>{let i=Number(e.harvesterEvent[s]),a=Number(r.harvesterEvent[s]);return t?a>i?1:-1:i>a?1:-1})}constructor(){this.state={entries:[],filters:{eventType:[],url:[],source:[]},sortValue:""},this.visibleColumns=[{displayName:"Event Type",accessor:"eventType",filterable:!0},{displayName:"URL",accessor:"url",filterable:!0},{displayName:"Page delta",accessor:"currentPageDelta",sortable:!0},{displayName:"Source",accessor:"source",filterable:!0},{displayName:"Payload",accessor:"data",filterable:!1}]}}a([(0,i.A)()],n.prototype,"state",void 0),a([(0,r.A)(class{})],n.prototype,"handleHarvesterEvent",null)},50964(e,t,s){var r=s(64793),i=s(98677),a=s(48079),n=s(53079),o=s(59306),l=s(71783),c=s(90983);function u(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}let d=` 10 <script type="text/javascript"> 11 if (!window._toolbar) { 12 window._toolbar = {}; 13 } 14 15 function ToolbarOSDImagePlugin() { 16 if (typeof PerformanceObserver === 'undefined') { 17 return; 18 } 19 20 const MIN_SIZE = 512; // 512 bytes to filter out analytics pixels 21 22 window._toolbar.images = 0; 23 // Defer DOM writes until after Vue hydrates ToolbarOsdImage (avoids text/class mismatch 24 // when many <img> resources finish before FRONT_HYDRATION on product show). 25 window._toolbar.osdImageReady = false; 26 window._toolbar.pushImage = function() { 27 28 window._toolbar.images++; 29 30 const osdElement = document.getElementById('tb_osd_image'); 31 if (!osdElement || !window._toolbar.osdImageReady) { 32 return; 33 } 34 35 osdElement.innerText = String(window._toolbar.images); 36 osdElement.classList.add('is-active'); 37 38 setTimeout(() => osdElement.classList.remove('is-active'), 100); 39 } 40 41 function onObserve(list) { 42 const entries = list.getEntries(); 43 for (let i = 0; i < entries.length; ++i) { 44 const entry = entries[i]; 45 if (entry.initiatorType === 'img' && entry.encodedBodySize > MIN_SIZE) { 46 window._toolbar.pushImage(); 47 } 48 } 49 } 50 51 const observer = new PerformanceObserver(list => { onObserve(list) }); 52 observer.observe({entryTypes: ['resource']}); 53 } 54 55 function ToolbarOSDApiPlugin() { 56 57 window._toolbar.apiCalls = 0; 58 window._toolbar.apiStack = 0; 59 window._toolbar.pushRequest = function() { 60 window._toolbar.apiCalls++; 61 window._toolbar.apiStack++; 62 63 const osdElement = document.getElementById('tb_osd_apicall'); 64 if (!osdElement) { 65 return; 66 } 67 68 osdElement.innerText = String(window._toolbar.apiCalls); 69 osdElement.classList.add('is-active'); 70 } 71 72 window._toolbar.popRequest = function() { 73 window._toolbar.apiStack--; 74 75 const osdElement = document.getElementById('tb_osd_apicall'); 76 if (!osdElement) { 77 return; 78 } 79 80 if (window._toolbar.apiStack <= 0) { 81 osdElement.classList.remove('is-active'); 82 } 83 } 84 } 85 86 function ToolbarOSDStatePlugin() { 87 88 const OSD_STATE_MAP = { 89 'INITIAL': 'INT', 90 'UNSERIALIZE_STATE': 'UNS', 91 'WAIT_DOM_READY': 'WDR', 92 'ROUTER': 'RTR', 93 'FRONT_BEFORE_RENDER': 'FBR', 94 'FRONT_HYDRATION': 'HYD', 95 'FRONT_AFTER_RENDER': 'FAR', 96 'FRONT_READY': 'RDY', 97 }; 98 99 let currState = null; 100 let timeStart = performance.now(); 101 window._toolbar.osdData = {}; 102 window._toolbar.currentState = null; 103 104 window._toolbar.setAppState = function(state) { 105 106 const osdElement = document.querySelector('#tb_osd_lstate'); 107 if (!osdElement) { 108 return; 109 } 110 111 osdElement.innerText = OSD_STATE_MAP[state] || ''; 112 osdElement.setAttribute('data-state', state); 113 114 window._toolbar.flushAppState(currState); 115 window._toolbar.osdData[state] = { state: state, start: performance.now() }; 116 window._toolbar.currentState = { state: state, name: OSD_STATE_MAP[state] }; 117 currState = state; 118 } 119 120 window._toolbar.flushAppState = function(state) { 121 if (currState) { 122 window._toolbar.osdData[currState].end = performance.now(); 123 } 124 } 125 126 _toolbar.setAppState('INITIAL'); 127 } 128 129 ToolbarOSDImagePlugin(); 130 ToolbarOSDApiPlugin(); 131 ToolbarOSDStatePlugin(); 132 <\/script> 133`;class h{onSSRAfterRender(e){(0,l.K6)(e.request.url)&&this.gHTMLInjector.inject({id:"toolbar-osd-script",content:d})}onAdafirApiRequest(){}constructor(){this.state={ssrApiCalls:0}}}u([(0,n.y_)(o.Oz)],h.prototype,"gHTMLInjector",void 0),u([(0,c.y)("Spark:ToolbarOSDService.state")],h.prototype,"state",void 0),u([(0,i.A)(a.A)],h.prototype,"onSSRAfterRender",null),u([(0,i.A)(r.A)],h.prototype,"onAdafirApiRequest",null),s.d(t,{A:()=>h})},14647(e,t,s){s.d(t,{A:()=>h});var r=s(98677),i=s(69021),a=s(72332),n=s(59306),o=s(53079),l=s(57059),c=s(61641),u=s(71855);function d(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class h{onSSRFinishRequest(e){var t;let s=c.zH.getRootInstance(e.vue);if(!s)throw Error("ToolbarPerformanceService::onSSRFinishRequest() - root component cannot be found");
133!function e(t){if(t.$children.forEach(t=>e(t)),!t.__perfRenderEnd)return;let s=t.$parent;for(;s;)s.__perfRenderEnd?s.__perfRenderEnd=Math.max(s.__perfRenderEnd,t.__perfRenderEnd):s.__perfRenderEnd=t.__perfRenderEnd,s.__perfRenderStart||(s.__perfRenderStart=t.__perfRenderStart),s=s.$parent}(s);let r=null!=(t=s.__perfRenderStart)?t:0,i=(e,t)=>{var s,a,n,o,l;let c=(null!=(s=e.__perfRenderStart)?s:0)-r,u=(null!=(a=e.__perfRenderEnd)?a:0)-r,d={name:null!=(n=null!=(o=e.__name)?o:e.$options._componentTag)?n:"Internal Component",timing:{start:c,end:u,duration:u-c},children:e.$children.map(e=>i(e,t+1))};return this.state.renderMap.push({name:d.name,timing:{...d.timing,absDuration:null!=(l=e.__perfRenderAbsDuration)?l:0},level:t}),d};this.state.renderTree=i(s,0),this.gHTMLInjector.inject({id:"toolbar-perf-state",content:`<meta name="toolbar-perf-state" content="${encodeURIComponent(JSON.stringify(this.state))}"/>`})}restorePerfData(){let e=document.querySelector('meta[name="toolbar-perf-state"]');if(e){let t=e.getAttribute("content");this.state=JSON.parse(decodeURIComponent(null!=t?t:"{}"))}}onPerformanceLog(e){this.state.entries.push(e.entry)}onPerformanceTiming(e){let{type:t,time:s}=e;switch(t){case"ssr":this.state.timings.ssr+=s;break;case"api":this.state.timings.api+=s;break;case"total":this.state.timings.total+=s;break;case"choke":this.state.timings.choke+=s}}constructor(){this.state={entries:[],renderTree:null,renderMap:[],timings:{ssr:0,api:0,total:0,choke:0}}}}d([(0,o.y_)(n.Oz)],h.prototype,"gHTMLInjector",void 0),d([(0,u.A)()],h.prototype,"state",void 0),d([(0,r.A)(class{})],h.prototype,"onSSRFinishRequest",null),d([(0,r.A)(l.A)],h.prototype,"restorePerfData",null),d([(0,r.A)(i.A)],h.prototype,"onPerformanceLog",null),d([(0,r.A)(a.A)],h.prototype,"onPerformanceTiming",null)},17033(e,t,s){var r=s(98677),i=s(82831),a=s(71855),n=s(46426),o=s(45840),l=s(71783);function c(e,t,s,r){var i,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(n=(a<3?i(n):a>3?i(t,s,n):i(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,n),n}class u{loadInitialState(e){if(this.state.isInitialStateLoaded)return;let t=e.state;this.state.isInitialStateLoaded=!0,Object.keys(t).filter(e=>this.isValidKey(e)).forEach(e=>{let s=t[e],r=(0,l.dp)(JSON.stringify(s));this.state.initialState.push({name:e,data:s,size:r})}),this.state.isInitialStateLoaded=!0}loadCurrentState(){if(this.state.isCurrentStateLoaded)return;let e=this.gStateRestoreService.getRestoredState();this.setStateCurrentState(e),this.state.isCurrentStateLoaded=!0}loadState(){let e=this.gStateRestoreService.getState();this.state.currentState=[],this.setStateCurrentState(e),this.state.isCurrentStateLoaded=!0}setStateCurrentState(e){Object.keys(e).filter(e=>this.isValidKey(e)).forEach(t=>{let s=e[t];this.state.currentState.push({name:t,data:s,size:null})})}isValidKey(e){return!e.startsWith("Toolbar:")}constructor(){this.state={initialState:[],currentState:[],isInitialStateLoaded:!1,isCurrentStateLoaded:!1}}}c([(0,i.A)(o.L$)],u.prototype,"gStateRestoreService",void 0),c([(0,a.A)()],u.prototype,"state",void 0),c([(0,r.A)(n.A)],u.prototype,"loadInitialState",null),s.d(t,{A:()=>u})},87967(e,t,s){var r,i,a,n,o=((r={}).MAXIMUM_BOX_COUNT="maximum_box_count",r.TRANSPORT_TYPE_NAME="transport_type_name",r.AVAILABLE_BOX_COUNT="available_box_count",r.INFO="info",r.BOX_SIZE="box_size",r.PRODUCTS_TO_PACK="products_to_pack",r.EXCEPTION_PRODUCTS_TO_PACK="exception_products_to_pack",r.PACKED_BOX_LIST="packed_box_list",r.NOT_PACKED_PRODUCTS="not_packed_products",r),l=((i={}).WIDTH="width",i.LENGTH="length",i.DEPTH="depth",i.WEIGHT="weight",i.DESCRIPTION="description",i.KEEP_FLAT="keep_flat",i.IS_PACKED="isPacked",i.IS_EXCEPTION="isException",i.BOX_NUMBER="boxNumber",i),c=((a={}).ID="id",a.NAME="name",a.CODE="code",a.OUTER_WIDTH="outer_width",a.OUTER_LENGTH="outer_length",a.OUTER_DEPTH="outer_depth",a.EMPTY_WEIGHT="empty_weight",a.INNER_WIDTH="inner_width",a.INNER_LENGTH="inner_length",a.INNER_DEPTH="inner_depth",a.MAX_WEIGHT="max_weight",a.MIN_WIDTH="min_width",a.QTY_AVAILABLE="qty_available",a),u=((n={}).BOX_WEIGHT="box_weight",n.PACKED_ITEMS="packed_items",n);s.d(t,{JG:()=>c,OK:()=>o,a0:()=>u,jE:()=>l})},4866(e,t,s){var r,i,a,n,o,l=((r={}).SSR="SSR",r.FRONT="FRONT",r),c=((i={}).GET="GET",i.POST="POST",i.PUT="PUT",i.PATCH="PATCH",i.DELETE="DELETE",i),u=((a={}).PAYLOAD="Payload",a.HEADERS="Headers",a),d=((n={}).HIT="HIT",n.MISS="MISS",n),h=((o={}).RESPONSE="Response",o.HEADERS="Headers",o.TIMINGS="Timings",o);let p=new Set(["accept","authorization","content-type","content-website","x-api-token"]);s.d(t,{$F:()=>h,Q5:()=>l,dS:()=>u,lJ:()=>d,ym:()=>c},{YI:p})},40207(e,t,s){var r,i,a=((r={}).ADAFIR="adafir",r.EDITOR="editor",r),n=((i={}).PROD="prod",i.RC="rc",i.PRE="pre",i);s.d(t,{S:()=>n,U:()=>a})},30296(e,t,s){s.d(t,{},{K:"Spark:Toolbar.height",q:"Spark:Toolbar.currentTab"})},45656(e,t,s){var r,i=((r={}).Info="Info",r.Log="Log",r.Api="Api",r.Request="Request",r.Events="Events",r.State="State",r.Performance="Performance",r.Cart="Cart",r.Tools="Tools",r.Cache="Cache",r.Cypress="Cypress",r.Icons="Icons",r.FeatureFlags="Feature Flags",r.Editor="Editor",r.Config="Config",r.Harvester="Harvester",r.Datalayer="Datalayer",r);s.d(t,{P:()=>i})},24506(e){e.exports=JSON.parse('["account-m-old","account-m","account-menu01","arrow-banner-right","arrow-cta-right","arrow-down-narrow","arrow-down-new","arrow-down","arrow-left","arrow-left2","arrow-return","arrow-right-long","arrow-right-longer","arrow-right-medium","arrow-right","arrow-right2","arrow-right3","arrow-up","back-arrow","bag","bell","blik","book","card","carousel-arrow-left","carousel-arrow-right","cart-m","cart
133-old","cart","cash","chatbot","check-circle-black","check-mark","check-circle_s","checkmark","circle-alert2","circle-check2","clock","close-new","close","close2","cross-circle","delivery-circle","delivery","delivery2","delivery3","delivery4","delivery5","dotpay","dots","edit","error","exclamation-mark","eye-crossed-out","eye","facebook","filter","fire","flame1","flame2","hamburger","heart-fill-new","heart-fill","heart-new","heart","hint","home","info","info2","info3","instagram","invoice","jd-status","jd","lock","logout","maestro","mail","mail2","mail3","message","minus","nav-arrow","navigate","no-results","orders","orders2","pause","paypal","paypo","paysera","phone","phone2","photos","plus","reload","resume","returns","safe-shopping","savebox","search-m","search-new","service","sizes","sort","spark-noapi","spark-underconstruction","star-empty","star-half","star","stores","target-gps","target","thunderbolt","tiktok","toolbar-alert","toolbar-arrow","toolbar-chat","toolbar-copy","toolbar-dots","toolbar-eye","toolbar-eye1","toolbar-info","toolbar-search","toolbar-sort","transfers24","trash","twitter","visa","warehouses","wishlist","x-circle_s","youtube","zoom-out","zoom"]')}};
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.