1"use strict";(self.webpackChunkvue_storefront=self.webpackChunkvue_storefront||[]).push([[3198],{19554:function(S,g,t){t.d(g,{b:function(){return m}});var f=t(70580),a=t.n(f);const o=/((<[/a-zA-Z][^<>]*>)|(<!--|-->)|([<>]+))/gm,m=u=>{try{return(u||"").replace(o,(h,...y)=>y?.[3]?a()(y[3]):h)}catch{return u}}},25590:function(S,g,t){t.d(g,{L:function(){return f}});const f=(a,o=0)=>{const m=Math.pow(10,o);return Math.round(a*m)/m}},30295:function(S,g,t){t.d(g,{e:function(){return h}});var f=t(48814),a=t(6300),o=t(23788),m=t(3312);const u=(y,c)=>{const p=/{phrase}/gi;return y?.replace(p,`${c}`)};function h(){const y=this.$store.getters["search-module/getMetaTags"][0],c=this.$store.getters["search-module/getMetaTags"][1],p=this.$route.query.q,r=(0,o.L)(f.P.NOINDEXNOFOLLOW,m.$W.xEnv.key),n={title:u(y,p),meta:{...r,description:{name:"description",content:u(c,p)}}};return(0,a.C)(n)}},34498:function(S,g,t){var f=t(81780),a=t.n(f),o=t(85471),m=t(3312),u=t(79665),h=t(91061);g.A={name:"ReCaptcha",methods:{initCaptcha(){try{if(this.$recaptchaInstance)return;o.Ay.use(f.VueReCaptcha,{siteKey:m.$W.captcha.siteKey,loaderOptions:{autoHideBadge:!0}})}catch{}},async getCaptchaToken(y=null){try{const c=await this.$store.dispatch("config-varus/get",{path:[y]});if(y&&!c[y])return;let p="";return this.$recaptchaInstance!==void 0?p=await this.$recaptcha("login"):(u.V.error("recaptchaInstance is undefined","recaptcha")(),(0,h.TL)(h.TN.Auth,"otp:mAuthorization:sendOtp:recaptcha",{recaptchaUndefined:!0})),p}catch{return""}}}}},36581:function(S,g,t){var f=t(95353),a=t(51688),o=t(92500);g.A={name:"CartValidations",data(){return{cartMode:!1}},computed:{...(0,f.L8)({productsInCart:"cart/getCartItems",cartStates:"cart/getCartStates",getCurrent:"shipping-module/getCurrent",isNewPost:"shipping-module/isCurrentNewPost"}),totalWeightSummary(){const m=this.productsInCart.reduce((u,h)=>u+(0,a.ki)(h)*h.qty,0);return(0,o.weightGToKg)(m)},maxWeightValid(){return this.cartStates.maxWeight.maxWeightToKG===0?!this.isNewPost||this.totalWeightSummary===0:this.cartStates.maxWeight.maxWeightToKG>=this.totalWeightSummary},minBucketSizeValid(){return this.cartStates.minBucketSize.valid?{status:!0,diff:0}:{status:!1,diff:this.cartStates.minBucketSize.diff,mbs:this.cartStates.minBucketSize.mbs}},maxWeightValidationMessage(){if(this.maxWeightValid)return null;const m=this.cartStates.maxWeight.maxWeightToKG,u=this.cartStates.maxWeight.warehouseExceeded;if(this.isNewPost&&u){const h=this.cartStates.maxWeight.warehouseMaxWeightToKG;return this.$t(`NP warehouse weight exceeded {overweigh} {maxWeight} ${this.getCurrent.npType}`,{overweigh:+(this.totalWeightSummary-h).toFixed(2),maxWeight:h})}return this.isNewPost?this.$t("NP max postal order weight {maxWeight}",{maxWeight:this.cartStates.maxWeight.tmsMaxWeightToKG||m}):this.$t("Your order exceeds {weight_limit}",{weight_limit:m})},notEnoughValidationMessage(){return this.cartStates.productStock?.showNotEnoughMessage?this.$t("The amount or quantity of your order has changed"):null},stateReplacements(){return this.cartStates.productStock?.replacements?.length||0},replacementsValidationMessage(){return this.stateReplacements?this.$t("Summary not enough {items}",{items:this.$tc("{count} items not available",this.stateReplacements)}):null},commonValidation(){return this.maxWeightValid||!this.stateReplacements?null:this.$t("Common error {items} {weight_limit}",{items:this.$tc("{count} items not available",this.stateReplacements),weight_limit:this.cartStates.maxWeight.maxWeightToKG})},mbsValidation(){return this.minBucketSizeValid.status?null:this.$t("MBS error {diff} {mbs}",{diff:this.minBucketSizeValid.diff,mbs:this.minBucketSizeValid.mbs})},newPostValidation(){return!this.isNewPost||!this.productsInCart.find(u=>!u.forNewPost)?null:this.$t("Not available for delivery by Novaya Poshta")},newPostAlcoholValidation(){return this.isNewPost?this.getCurrent?.npShop?.alcohol?this.productsInCart.find(u=>u.is_18_plus&&!u.is_tobacco)?this.$t("New post alcohol restriction"):null:void 0:null},cartValidationWarning(){return this.notEnoughValidationMessage?{type:"warnings",message:this.notEnoughValidationMessage}:null},cartValidationMessage(){return this.commonValidation?{type:"common",message:this.commonValidation}:this.mbsValidation&&!this.cartMode?{type:"mbs",message:this.mbsValidation}:this.maxWeightValidationMessage?{type:"max-weight",message:this.maxWeightValidationMessage}:this.replacementsValidationMessage?{type:"replacements",message:this.replacementsValidationMessage}:this.newPostValidation?{type:"replacements",message:this.newPostValidation}:this.newPostAlcoholValidation?{type:"replacements",message:this.newPostAlcoholValidation}:null}}}},41602:function(S,g,t){t.d(g,{Ch:function(){return W},DO:function(){return n},E:function(){return P},EM:function(){return E},El:function(){return D},IF:function(){return L},Ib:function(){return I},NM:function(){return v},VW:function(){return i},_M:function(){return r},eB:function(){return c},oY:function(){return h}});var f=t(60083),a=t(30650),o=t(87168),m=t(37539);const u={pickup:a.Ay.t("Pickup"),varus_drive:a.Ay.t("varus_drive")};function h(e=""){return m.XF.includes(e?.toUpperCase())?a.Ay.t("delivery"):u[e]||a.Ay.t(e?.toUpperCase()||"")}
1const y={CASH_CARD:a.Ay.t("Payment on receipt"),DELIVERY_CASH:a.Ay.t("Cash on delivery"),DELIVERY_CARD:a.Ay.t("Card on delivery"),CRYPTO_ONLINE:a.Ay.t("Cryptocurrency online after assembling the order"),CARD_ONLINE:a.Ay.t("Card online label"),CARD_NC:a.Ay.t("Card NC"),HOLD:a.Ay.t("By card when placing an order"),NOVA_POST_CASH_ON_DELIVERY:a.Ay.t("Cash on delivery NP")};function c(e=""){return y[e]||""}const p={CASH_CARD:"GTM Payment Cash card",DELIVERY_CASH:"GTM Payment Delivery cash",DELIVERY_CARD:"GTM Payment Delivery card",CRYPTO_ONLINE:"GTM Payment Crypto online",CARD_NC:"GTM Payment Card NC",HOLD:"GTM Payment Hold",NOVA_POST_CASH_ON_DELIVERY:"GTM Payment Nova post COD"};function r(e="",s={}){if(s.brand==="APPLE_PAY")return a.Ay.t("GTM Payment Apple Pay");if(s.brand==="GOOGLE_PAY")return a.Ay.t("GTM Payment Google Pay");if(e==="CARD_ONLINE")return s.isCardOnlineNewCard?a.Ay.t("GTM Payment Card online new"):a.Ay.t("GTM Payment Card online saved");const d=p[e];return d?a.Ay.t(d):""}function n(e){if(e==="APPLE_PAY")return"APPLE_PAY";if(e==="GOOGLE_PAY")return"GOOGLE_PAY"}function v(e=""){let s;switch(e){case"call_me":s=a.Ay.t("Call me for clarification");break;case"replace":s=a.Ay.t("Replace items at the picker choice");break;case"do_no_replace":s=a.Ay.t("Do not replace products if they are not available at the time of ordering");break;default:s=""}return s}function E(e=""){let s;switch(e){case"min_packages":s=a.Ay.t("Minimum packages");break;case"other_packages":s=a.Ay.t("Other packages");break;case"do_no_pack":s=a.Ay.t("Do not pack");break;default:s=""}return s}const _={new:{group:"non-fiscalized",class:"order-status-new",title:a.Ay.t("New")},collecting:{group:"non-fiscalized",class:"order-status-process",title:a.Ay.t("Process")},collected:{group:"non-fiscalized",class:"order-status-collected",title:a.Ay.t("Collected")},completed:{group:"fiscalized",class:"order-status-completed",title:a.Ay.t("Completed")},canceled:{group:"non-fiscalized",class:"order-status-canceled",title:a.Ay.t("Canceled")},closed:{group:"fiscalized",class:"order-status-closed",title:a.Ay.t("Closed")},delivery:{group:"fiscalized",class:"order-status-delivery",title:a.Ay.t("Is delivered")}},A={group:"non-fiscalized",class:"order-status-waiting-payment",title:a.Ay.t("Waiting Payment")};function M(e=""){return _[e]||{group:""}}function P(e=0,s=2,d=!1){try{let l=e;return typeof e=="string"&&(l=parseFloat(e||0)),d&&l%1===0&&(s=0),l.toFixed(s)}catch{return null}}function D(e,s,d){let l=e.getFullYear(),T=e.getMonth(),O=e.getDate();return s==="y"&&(l+=d),s==="m"&&(T+=d),s==="d"&&(O+=d),new Date(l,T,O)}function i(e,s="start"){if(!e)return"";const d=e.getFullYear();let l=e.getMonth()+1,T=e.getDate();const O=s==="start"?"00:00:00":"23:59:59";return l=l<10?"0"+l:l,T=T<10?"0"+T:T,d+"-"+l+"-"+T+" "+O}function C(e,s=!1){if(typeof e!="string")return"";let d=new Date(e.replace(" ","T"));if(isNaN(d.valueOf()))return e;if(s){const l=new Date().getTimezoneOffset()*60*1e3*-1;d=new Date(d.getTime()+l)}return d}function I(e,s=!0,d=!1){if(typeof e!="string")return"";const l=C(e,d),T=(0,f.m1)().i18n.defaultLocale,O=l.getFullYear(),b=l.toLocaleDateString(T,{month:"short"}),R=l.getDate();if(!s)return R+" "+b+". "+O;const N=l.getHours();let w;return w=l.getMinutes(),w=+w<10?"0"+w:w,R+" "+b+" "+O+", "+N+":"+w}function W(e=""){return typeof e=="string"?parseFloat(e)<.01:!1}function L(e){const s=e?.repay_url&&!["completed","canceled","closed","delivery","returned"].includes(e.status);return{item_id:e.id,cheque_id:e.cheque_id,charged_bonus:e.charged_bonus,amount:P(e.total_paid,2,!1),total:P(e.total,2,!1),discount:{base:P(e.discount?.base_discount,2,!1)||"",coupon:P(e.discount?.coupon_discount,2,!1)||""},status:e.status,statusInfo:s?A:M(e.status),type:e.type,payment:{url:s&&e?.repay_url||null,paid:!s},number:e.increment_id,date:I(e.date,!0,!0),dateTimeObject:C(e.date,!0),address:e.address||"",bonus_credit:P(e.bonus_credit,2,!1),bonus_debit:P(e.bonus_debit,2,!1),money_credit:P(e.money_credit,2,!1),money_debit:P(e.money_debit,2,!1),weight:e.weight,tips_total:e.tips_total||null,bonuses_total:e.bonuses_total||null,issue_code:e.issue_code||null,shipping_total:P(e.shipping_total,2,!1),packaging_total:P(e.packaging_total,2,!1),collecting_total:e.collecting_total?P(e.collecting_total,2,!1):null,payment_card_mask:e.payment?.card_mask||"",payment_card_type:e.payment?.card_type||"",payment_receipt_link:e.payment?.receipt_link||null,payment_method:e.payment?.method||"",payment_method_title:e.payment?.method_title||"",delivery_method:e.delivery?.method||"",delivery_address:e.delivery?.address||"",replacement:e.delivery?.replacement||"",packaging:e.delivery?.packaging||"",timeslot:e.delivery?.timeslot||[],shipping_phone:(0,o.H2)(e.shipping_phone)||"",shipping_name:e.shipping_name||"",recipient:e.delivery?.recipient||"",items:e.items||[]}}},47825:function(S,g,t){t.d(g,{a:function(){return f}});const f={name:"Wishlist",computed:{isWishlistOpen(){return this.$store.state.ui.wishlist},productsInWishlist(){return this.$store.state.wishlist.items}},methods:{closeWishlist(){this.$store.dispatch("ui/toggleWishlist")}}}},50585:function(S,g,t){var f=t(85471),a=t(39116);g.A={name:"customFormSpinnerLoading",data(){return{customFormClasses:[".custom__form-block",".quiz__form-container"],renderComponents:[]}},mounted(){this.$nextTick(()=>{this.setLoadingSpinnerToCustomForm()})},methods:{setLoadingSpinnerToCustomForm(){this.customFormClasses.forEac
1h(this.createSpinnerOnElement)},createSpinnerOnElement(o,m){const u=document.querySelector(o);if(!u)return;this.setStyleToContainer(u),this.createSpinner(m,u);const h=u.querySelector("iframe");h&&this.handleIframeLoading(h)},setStyleToContainer(o){o.style.position="relative"},createSpinner(o,m){const u=document.createElement("div"),h=`loading-spinner-node-${o}`;u.id=h,m.appendChild(u),this.renderSpinnerComponent(h)},renderSpinnerComponent(o){const m=f.Ay.extend(a.default);this.renderComponents.push(new m({propsData:{isAbsolutePosition:!0}}).$mount(`#${o}`))},handleIframeLoading(o){o.addEventListener("load",this.removeSpinner)},removeSpinner(){this.renderComponents.forEach(this.destroyComponent),this.renderComponents=[]},destroyComponent(o){o.$destroy(),o.$el.parentNode&&o.$el.parentNode.removeChild(o.$el)}},beforeDestroy(){this.customFormClasses.forEach(o=>{const m=document.querySelector(o);m&&m.querySelector("iframe").removeEventListener("load",this.removeSpinner)})}}},61033:function(S,g,t){t.d(g,{$:function(){return L},k:function(){return W}});var f=t(51688),a=t(37539),o=t(30650);const m=["DELIVERY_FOR_NOW"],u=1e3,h=e=>!!e&&(m.indexOf(e.delivery_method)>=0||e.delivery_for_now===!0),y=e=>!Array.isArray(e)||!e.length?0:e.reduce((d,l)=>{const T=Number((0,f.ki)(l))||0,O=Number(l?.qty)||0;return d+T*O},0)/u,c=(e,s)=>e.getFullYear()===s.getFullYear()&&e.getMonth()===s.getMonth()&&e.getDate()===s.getDate(),p=/^(\d{2})[.\-/](\d{2})[.\-/](\d{4})$/,r=e=>{if(!e)return null;const s=e.match(p);if(s)return new Date(+s[3],+s[2]-1,+s[1]);const d=new Date(e);return isNaN(d.getTime())?null:d},n=(e,s,d)=>e?.length?e.some(l=>
1{if(h(l)&&!d)return!1;const T=r(l.date);return T?c(T,s):!1}):!1,v=/^(\d{1,2}):(\d{2})/,E=60,_=6e4,A=(e,s)=>{const d=Number(e?.duration)||E;return Math.floor((s.getTime()+d*_)/1e3)},M=(e,s,d)=>{if(!e?.length)return null;const l=e.map(T=>{if(h(T))return d?A(T,s):null;const O=r(T.date);if(!O)return null;const b=T.value?.match(v);return b?(O.setHours(+b[1],+b[2],0,0),Math.floor(O.getTime()/1e3)):null}).filter(T=>typeof T=="number");return l.length?Math.min(...l):null},P=864e5,D=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime(),i=(e,s)=>{if(!e)return null;const d=r(e);return d?Math.round((D(d)-D(s))/P):null},C=e=>Array.isArray(e)&&e.some(h),I=e=>{const s=e?.shop?.delivery_methods;if(!Array.isArray(s))return 0;const d=s.filter(l=>m.indexOf(l?.key)>=0).map(l=>Number(l?.max_weight)||0).filter(l=>l>0);return d.length?Math.max(...d)/u:0},W=(e,s)=>{const{shippingDetails:d,shippingTimeSlots:l=[],currentTimeSlot:T,productsInCart:O=[]}=e,b=e.now||new Date,R=d?.shippingMethod||null,N=y(O),w=C(l),B=I(d),$=w&&(B>0?N<=B:!0),k=n(l,b,$),z=M(l,b,$),U={shipping_tier:R,order_weight:N,time_asap_zone:w,time_asap_available:$,time_today_available:k,time_nearest_slot:z};if(s==="delivery_hour"){const x=h(T),V=x?null:T?.value??null,K=x?null:i(T?.date,b);return{...U,time_asap_selected:x,time_selected:V,time_selected_days_offset:K}}return U},L=e=>{const s=e?.type||"";return s.toUpperCase()===a.F4.newPost?e?.npType==="poshtomat"?o.Ay.t("Poshtomat"):o.Ay.t("Department"):a.D1.includes(s)?o.Ay.t(s):o.Ay.t("Apartment/House/Office")}},68568:function(S,g,t){t.d(g,{Ix:function(){return E},Nm:function(){return n},Of:function(){return m},g0:function(){return y},jG:function(){return h},kF:function(){return r},wJ:function(){return p},wf:function(){return c},y3:function(){return u}});var f=t(87168),a=t(65957),o=t(3312);function m(_=""){const A=a.A.state.user.current;return(0,f.RV)(_)!==A?.phone}function u(_=""){return!a.A.state.user.current?.additional_phones.includes((0,f.RV)(_))}function h(_=""){return/^[a-z-_ а-ÑÑÑÑÑÒ\d'âʼ]*$/i.test(_)}function y(_=""){return/^\+380\d{9}$/.test(_)}function c(_=""){return _===""?!0:/^[^0]/.test(_)}function p(_=""){return/^[a-z-_ а-ÑÑÑÑÑÒ'âʼ]*$/i.test(_)}function r(_=""){return!_.length||/^[0-9]+$/i.test(_)}
1function n(_=""){return/^[- а-ÑÑÑÑÑÒ'âʼ]*$/i.test(_)}function v(_){return _.paymentMethod==="CARD_ONLINE"?!0:Object.keys(config.orders.payment_methods_mapping).filter(M=>M!=="CARD_ONLINE").includes(_.paymentMethod)}function E(_=0){return _!==0}},75158:function(S,g,t){t.r(g),t.d(g,{default:function(){return P}});var f=function(){var i=this,C=i._self._c;return C("div",{staticClass:"tender-page",attrs:{id:"tender-page"}},[C("MBreadcrumbs"),i._v(" "),C("JsonLdBreadcrumb"),i._v(" "),C("div",{directives:[{name:"show",rawName:"v-show",value:i.isContentAvailable,expression:"isContentAvailable"}],staticClass:"one-page-tender",attrs:{id:"one-page-tender"}},[C("div",{staticClass:"one-page-tender__overview"},[C("header",{staticClass:"sf-heading title"},[C("h1",{staticClass:"sf-heading__title sf-heading__title--h3"},[i._v(` 2 `+i._s(i.getName)+` 3 `)])]),i._v(" "),C("div",{staticClass:"one-page-tender__time"},[i._v(` 4 `+i._s(i.$t("Deadline for applications"))+": "+i._s(i.getDeadline)+` 5 `)])]),i._v(" "),C("div",{staticClass:"one-page-tender__content"},[C("div",{domProps:{innerHTML:i._s(i.getDescription)}}),i._v(" "),C("div",{staticClass:"one-page-tender__content-contact"},[C("p",{staticClass:"one-page-tender__content-contact--icons one-page-tender__content-contact--name"},[i._v(` 6 `+i._s(i.$t("Responsible"))+": "+i._s(i.getRespName)+` 7 `)]),i._v(" "),C("a",{staticClass:"one-page-tender__content-contact--icons one-page-tender__content-contact--phone",attrs:{href:"tel:"+i.getPhone}},[i._v(` 8 `+i._s(i.getPhone)+` 9 `)]),i._v(" "),C("a",{staticClass:"one-page-tender__content-contact--icons one-page-tender__content-contact--email",attrs:{href:"mailto:"+i.getEmail}},[i._v(` 10 `+i._s(i.getEmail)+` 11 `)])])]),i._v(" "),C("SfLink",{attrs:{link:"/tenders"}},[C("div",{staticClass:"one-page-tender__banner"},[C("p",{staticClass:"one-page-tender__banner-text"},[i._v(` 12 `+i._s(i.$t("View other tenders"))+` 13 `)]),i._v(" "),C("img",{attrs:{src:`${i.cdnAssets}/tenders.png`,alt:""}})])])],1)],1)},a=[],o=t(95353),m=t(55207),u=t(25080),h=t(36544),y=t(30650),c=t(26598),p=t(36596),r=t(2404),n=t(85471);const v=(0,p.I)();var E={name:"TenderPage",components:{MBreadcrumbs:u.A,JsonLdBreadcrumb:h.A,SfLink:m.MT},data(){return{cdnAssets:v.assets}},computed:{...(0,o.L8)({getTendersCurrent:"tenders/getTendersCurrent"}),isContentAvailable(){return this.getTendersCurrent[0]!==void 0},getDescription(){return this.getTendersCurrent[0]!==void 0?this.getTendersCurrent[0].description:""},getName(){return this.getTendersCurrent[0]!==void 0?this.getTendersCurrent[0].name:""},getPhone(){return this.getTendersCurrent[0]!==void 0?this.getTendersCurrent[0].phone:""},getEmail(){return this.getTendersCurrent[0]!==void 0?this.getTendersCurrent[0].email:""},getRespName(){return this.getTendersCurrent[0]!==void 0?this.getTendersCurrent[0].responsible_name:""},getDeadline(){if(this.getTendersCurrent[0]!==void 0){const D=this.getTendersCurrent[0].tender_deadline.split("-");let i=D[2].split(" ")[0],C=D[1],I=D[0];return`${i}.${C}.${I}`}else return""}},async created(){(0,c.WZ)()||(await this.$store.dispatch("tenders/fetchTendersCurrent",{route:this.$route}),this.setBreadcrumbs())},async asyncData({store:D}){await Promise.all([D.dispatch("ui/loadCatalogMenu"),D.dispatch("config-varus/get",{path:["header_logo_src"]}),D.dispatch("promoted/updatePreHeaderBanners")])},mounted(){this.$nextTick(()=>{this.injectIcons()})},updated(){this.$nextTick(()=>{this.injectIcons()})},methods:{setBreadcrumbs(){const D=[{name:y.Ay.t("Tenders"),route_link:this.localizedRoute("/tenders")}];this.$store.dispatch("breadcrumbs/set",{current:this.getTendersCurrent[0]?.name,routes:D},{root:!0})},injectIcons(){[{selector:".one-page-tender__time",iconName:"clock",iconClass:"tender-page-icon"},{selector:".one-page-tender__content-contact--name",iconName:"user",iconClass:"tender-page-icon"},{selector:".one-page-tender__content-contact--phone",iconName:"phone",iconClass:"tender-page-icon"},{selector:".one-page-tender__content-contact--email",iconName:"email",iconClass:"tender-page-icon"}
13].forEach(({selector:i,iconName:C,iconClass:I})=>{this.$el.querySelectorAll(i).forEach(L=>{if(L.querySelector(".icon-wrapper"))return;const e=document.createElement("div");e.className="icon-wrapper";const s=n.Ay.extend(r.A),d=new s({propsData:{name:C,iconClass:I}});d.$mount(),e.appendChild(d.$el),L.insertBefore(e,L.firstChild)})})}}},_=E,A=t(14486),M=(0,A.A)(_,f,a,!1,null,"72036d09",null),P=M.exports},83725:function(S,g,t){var f=t(95353);g.A={name:"SmsBlock",computed:{...(0,f.aH)({canSendSms:a=>a.ui.canSendSms,waitSmsSeconds:a=>a.ui.waitSmsSeconds})},methods:{checkCanSendSMS(){return this.canSendSms?!0:(this.$store.dispatch("notification/spawnNotification",{type:"warning",message:this.$t("You can send SMS again after {seconds} seconds",{seconds:this.waitSmsSeconds}),action1:{label:this.$t("OK")}}),!1)}}}},85847:function(S,g,t){var f=t(27058);g.A={name:"Delivery",computed:{hasError(){return this.error.shopNotFound||this.error.deliveryNotFound||this.error.deliveryPointNotFound}},methods:{async openShippingModal(a=null){const o={name:f.av.ShippingModal};a&&(o.payload=a),await this.$store.dispatch("ui/hideBottomNavigation",!0),await this.$store.dispatch("ui/openModal",o)}}}},89183:function(S,g,t){t.d(g,{A:function(){return p}});var f=function(){var n=this,v=n._self._c;return v("div",{staticClass:"sf-tabs"},[v("div",{staticClass:"tabs-header"},n._l(n.tabLinks,function(E,_){return v("button",{key:"tab_link_"+_,staticClass:"sf-button sf-button--pure tabs-header__title",class:{"tabs-header__title--active":n.getIsActive(_)},attrs:{"data-transaction-name":"Tab"},on:{click:function(A){return n.tabClick(_)}}},[n._v(` 14 `+n._s(n.getTabTitle(E))+` 15 `)])}),0),n._v(" "),n._t("default")],2)},a=[],o=t(85471),m=t(89404);o.Ay.component("SfTab",m.A);var u={name:"SfOTabs",props:{openTab:{type:Number,default:1},tabMaxContentHeight:{type:String,default:""},tabShowText:{type:String,default:"show"},tabHideText:{type:String,default:"hide"},tabLinks:{type:Array,default:()=>[]},customClick:{type:Boolean,default:!1}},data(){return{openedTabNum:1}},mounted(){this.$on("toggle",this.toggle),this.openTab&&(this.openedTabNum=this.openTab,this.openChild())},computed:{tabsNumber(){return this.tabLinks.length}},methods:{tabClick(r){this.$children[r].tabClick(),this.openedTabNum=r+1,this.$emit("tabClick",this.openedTabNum)},toggle(r){this.customClick&&this.$emit("add-click"),this.$children.forEach(n=>{n._uid===r?n.isActive=!n.isActive:n.isActive=!1})},openChild(){this.openTab<this.$children.length+1&&(this.$children[this.openTab-1].isActive=!0)},getIsActive(r){return r+1===this.openedTabNum},getTabTitle(r){const n=r.number===void 0?"":" ("+r.number+")";return this.$t(r.title)+n}},provide:function(){const r={};return Object.defineProperty(r,"tabMaxContentHeight",{get:()=>this.tabMaxContentHeight}),Object.defineProperty(r,"tabShowText",{get:()=>this.tabShowText}),Object.defineProperty(r,"tabHideText",{get:()=>this.tabHideText}),{tabConfig:r}}},h=u,y=t(14486),c=(0,y.A)(h,f,a,!1,null,null,null),p=c.exports},89339:function(S,g,t){var f=t(10531),a=t(95353),o=t(60083),m=t(35269),u=t(20112),h=t(27058),y=t(91061),c=t(95283),p=t(93445),r=t(84161);g.A={name:"PaymentCard",data(){return{selectedCard:{},updateCardsTimer:null,cardsDiff:[],isLoading:!1}},mixins:[f.A,m.A,p.A],props:{preSelectedCardMask:{type:String,default:""}},inject:["page"],methods:{...(0,a.i0)({loadPaymentCardsOptions:"user-payment-cards/loadPaymentCardsOptions",callVerificationWidget:"user-payment-cards/callVerificationWidget",spawnNotification:"notification/spawnNotification",loadPaymentCardsList:"user-payment-cards/loadPaymentCardsList",sendTokenData:"user-payment-cards/sendTokenData",openModal:"ui/openModal",closeModal:"ui/closeModal"}),async getIp(){try{if(c.S$)return null;const{ip:n}=await fetch("/ip/lookup").then(v=>v.json());return n}catch{return null}},async addCard(){const n=await this.loadPaymentCardsOptions();n?.code===200?(n.result.gateway==="FOUR_BILL"?await this.addBinanceCard(n):n.result.gateway==="TRANZZO"?await this.addTranzzoCard(n):await this.addWFPCard(n),await(0,r.a)(),this.cardTokenStartHandler({origin:this.page||""})):((0,y.TL)(y.TN.Payments,"addCard:cards_options:notLoaded",{code:n?.code,result:n?.result||null},n?.transparentId),this.spawnNotification({type:"danger",message:String(this.$t("Error getting Wayforpay lookup verification parameters.")),action1:{label:String(this.$t("OK"))}}))},async prepareCards(n=!1){this.isLoading=!0,await this.loadCards(!1,n),this.isLoading=!1},async loadCards(n=!1,v=!1){try{const{result:E}=await this.loadPaymentCardsList({withSkin:v}),_=[...this.cardsDiff];if(this.cardsDiff=E.map(M=>M.card_mask),n){const M=E.filter(P=>!_.includes(P.card_mask));if(M.length>0){const P=M[0];await this.$store.dispatch("user-payment-cards/changeDefaultCard",{phone:P.phone,card_mask:P.card_mask,card_type:P.card_type,is_default:!0}),this.selectedCard=M[0];return}}let A=null;this.cards.forEach(M=>{M.is_default&&(A=M)}),this.preSelectedCardMask&&(this.selectedCard=this.cards.find(M=>String(M.card_mask)===String(this.preSelectedCardMask))||{}),(!this.selectedCard||!this.selectedCard.hasOwnProperty("card_mask"))&&(this.selectedCard=A||this.cards[0])}catch(E){(0,y.TL)(y.TN.Payments,"addCard:loadList:error",{message:E.message})}},async updateCardsByInterval(){if(c.S$)return;await this.loadCards(!0);let n=6;this.updateCardsTimer=setInterval(()=>{this.loadCards(!0),n>1?n--:clearInterval(this.updateCardsTimer)},2e4)},async addTranzzoCard({result:n}){this.openModal({name:h.av.TranzzoWidgetPopup}),await this.addTranzzoScript();const v=await this.getIp(),E=async function(A){try{await this.sendTokenData({tokenData:A,phone:n.client_phone}),this.closeTranzzoWidget(),this.updateCardsByInterval(),await(0,r.a)(),this.cardTokenSuccessHandler({origin:this.page||""})}catch(M){console.error("Error handling token data:",M)}}.bind(this),_=function(A){(0,y.TL)(y.TN.Payments,"addCard:tranzzo:error",{message:A}),this.spawnNotification({type:"danger",message:this.$t(String(A)||"Authorization failed")}),this.closeTranzzoWidget()}.bind(this);window.Tranzzo.init({key:n.widget_key,amount:1,mode:"inline",style:"varus",template:"varus",customer_id:this.currentUser.external_user_id,customer_fname:this.currentUser?.firstname||null,customer_lname:this.currentUser?.lastname||null,customer_email:this.currentUser?.email||null,customer_phone:this.currentUser?.phone||null,customer_country:"Ukraine",customer_ip:v,lang:"uk",locale:this.getTranzzoLocale(),selector:"widget-checkout",properties:{showSubmit:!1,sale:!1},async onToken(A){E(A)},onError:_}).open()},getTranzzoLocale(){return{en:{cardNumber:"Card number",expiryDate:"Expiry Date",cvv:"CVV",submit:"Pay",yy:"YY",mm:"MM"},uk:{cardNumber:"\u041D\u043E\u043C\u0435\u0440 \u043A\u0430\u0440\u0442\u043A\u0438",expiryDate:"\u0422\u0435\u0440\u043C\u0456\u043D \u0434\u0457\u0457",cvv:"CVV",submit:"\u041E\u043F\u043B\u0430\u0442\u0438\u0442\u0438",yy:"\u0420\u0420",mm:"\u041C\u041C"}}},closeTranzzoWidget(){this.closeModal({name:h.av.TranzzoWidgetPopup})},addTranzzoScript(){if(document.getElementById("tranzzo-script"))return;const n=document.createElement("script");return n.src="https://gcdn.tranzzo.com/widget.js",n.id="tranzzo-script",n.defer=!0,document.body.appendChild(n),new Promise(v=>{const E=()=>
15{if(window.Tranzzo)return v();this._tranzzoTimer=setTimeout(E,1e3)};E()})},async addBinanceCard(n){u.A.$emit("add-binance-card",n?.result?.service_url)},async addWFPCard(n){await this.addWFPScript();const v=n.result;v.requestType="VERIFY",v.language=(0,o.m1)().i18n.defaultLanguage,this.isMobile&&(v.straightWidget=!0),await this.callVerificationWidget({wayforpay:new Wayforpay,parameters:v}),await this.updateCardsByInterval()},addWFPScript(){if(document.getElementById("wfp-script"))return;const n=document.createElement("script");return n.src="https://secure.wayforpay.com/server/pay-widget.js",n.id="wfp-script",n.defer=!0,document.body.appendChild(n),new Promise(v=>{const E=()=>{if(window.Wayforpay)return v();this._wfpTimer=setTimeout(E,1e3)};E()})}},computed:{...(0,a.L8)({cards:"user-payment-cards/getPaymentCards",cardsLoaded:"user-payment-cards/getPaymentCardsLoaded",currentUser:"user/currentUser"})},beforeMount(){u.A.$on("add-binance-card:close",this.updateCardsByInterval)},beforeDestroy(){this.closeTranzzoWidget(),clearInterval(this.updateCardsTimer),clearTimeout(this._tranzzoTimer),clearTimeout(this._wfpTimer),u.A.$off("add-binance-card:close",this.updateCardsByInterval)}}},99691:function(S,g,t){t.d(g,{E:function(){return y}});var f=t(95283);const a={CATEGORY_PAGE:"CategoryPage",CUSTOMER_DATA:"CustomerData",PRODUCT_PAGE:"ProductPage",STATUS_CART:"StatusCart",PURCHASED_ITEMS:"PurchasedItems",PRODUCT_IMPRESSION:"ProductImpression",ADD_TO_WISHLIST:"AddToWishlist"},o=(c,p)=>({[p]:{productKey:c.sku,price:String(c.sqpp.special_price?c.sqpp.special_price:c.sqpp.price),isInStock:c.stock.is_in_stock?1:0}}),m=c=>{const p=(c?.phone||"").replace("+",""),r=c?.gender?c?.gender===1?"male":"female":"";return{CustomerData:{user_email:c?.email,user_name:`${c?.firstname} ${c?.lastname}`,user_client_id:p,user_card_id:"",user_phone:p,user_tags_gender:r}}},u=(c,p=!1)=>{const r=c.productsInCart.map(n=>({productKey:n.sku,price:String(n.sqpp.special_price?n.sqpp.special_price:n.sqpp.price),quantity:p?n.qty:`${n.qty}`,currency:"UAH"}));return{[p?"PurchasedItems":"StatusCart"]:r,GUID:c.currentCartHash,...p&&{OrderNumber:c.orderNumber}}},h=c=>({ProductImpression:c.products.filter(r=>r.hasOwnProperty("container_type")||r.url.includes("sc_content=")).map(r=>{let n=r.container_type;return n||(n=(r.url.split("sc_content=")[1]||"").replace('"',"")),{product_id:r.id,container_type:n}})}),y=(c,p=null)=>{if(!f.S$&&window&&window.hasOwnProperty("eS")){let r;switch(c){case a.CATEGORY_PAGE:r={CategoryPage:{categoryKey:p}};break;case a.CUSTOMER_DATA:r=m(p);break;case a.PRODUCT_PAGE:case a.ADD_TO_WISHLIST:r=o(p,c);break;case a.STATUS_CART:case a.PURCHASED_ITEMS:r=u(p,c===a.PURCHASED_ITEMS);break;case a.PRODUCT_IMPRESSION:r=h(p);break}r?window.eS("sendEvent",c,r):window.eS("sendEvent",c)}}}}]);
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.