1/*! For license information please see 6261.a7a4bba0.js.LICENSE.txt */ 2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6261],{41353:(t,e,o)=>{o.r(e),o.d(e,{default:()=>q});o(27495),o(25440);var r=o(41425),n={key:0,class:"card card--borderless"},l={class:"card__body"},i={key:1,class:"mb-16"},s={key:2,class:"mb-16"},a={class:"date-time-table date-time-table--default"},c={class:"date-time-table__header"},u={class:"date-time-table__cell date-time-table__cell--times"},d=(0,r.Lk)("div",{class:"date-time-table__cell-content date-time-table__cell-content--heading"},null,-1),m={class:"date-time-table__cell-content",style:{"white-space":"nowrap"}},f={class:"date-time-table__body"},b={class:"date-time-table__cell"},p={class:"date-time-table__cell-content date-time-table__cell-content--heading"},v=["textContent"],_={class:"date-time-table__cell-content"},g={key:0,class:"form-select-input-wrapper form-select-input-wrapper--input-hidden"},k={class:"form-radio"},y=["value","aria-label"],S=(0,r.Lk)("span",null,null,-1),h={class:"form-select-input-wrapper__content"},L={key:0,class:"btn btn--sm is-disabled"},C=["textContent"],w={key:3,class:"mb-16"},O={key:4},P={class:"mb-16"},T={class:"row"},j={class:"col"},Q={class:"col col-auto"},A=["textContent"],E={class:"row"},F={class:"col"},x={class:"col col-auto"},$=["textContent"],D=(0,r.Lk)("span",{class:"icon icon--left"},[(0,r.Lk)("svg",null,[(0,r.Lk)("use",{href:"/build/assets/images/icons/base/sprite.svg#calendar"})])],-1);o(52675),o(89463),o(2259),o(45700),o(2008),o(51629),o(23792),o(89572),o(2892),o(67945),o(84185),o(83851),o(81278),o(79432),o(26099),o(47764),o(23500),o(62953);var X=o(75309),V=o(73002),G=o(53980),K=o(82124);function M(t){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},M(t)}function N(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,r)}return o}function U(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?N(Object(o),!0).forEach(function(e){I(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):N(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function I(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=M(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!=M(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==M(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const W={name:"CartConfigClickAndCollectTimeSlot",extends:X.default,computed:U(U(U({},G.default.computed),(0,K.L8)({isDeferredTimeslotFlow:"cart/isDeferredTimeslotFlow"})),{},{kilDateFormat:function(){return V.a}})};const q=(0,o(66262).A)(W,[["render",function(t,e,o,X,V,G){var K=(0,r.g2)("VuePreloader");return(0,r.uX)(),(0,r.CE)(r.FK,null,[t.loadingTimeslots?((0,r.uX)(),(0,r.CE)("div",n,[(0,r.Lk)("div",l,[(0,r.bF)(K)])])):(0,r.Q3)("v-if",!0),t.isStoreSelected&&!t.isTimeslotSelected&&t.isDeferredTimeslotFlow?((0,r.uX)(),(0,r.CE)("div",i,(0,r.v_)(t.$root.trans("[global.timeslot.static_completion_term]")),1)):(0,r.Q3)("v-if",!0),!t.isStoreSelected||t.isTimeslotSelected||t.isDeferredTimeslotFlow?(0,r.Q3)("v-if",!0):((0,r.uX)(),(0,r.CE)("div",s,[(0,r.Lk)("div",a,[(0,r.Lk)("div",c,[(0,r.Lk)("div",u,[d,((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(t.times,function(e,o,n){return(0,r.uX)(),(0,r.CE)("div",m,[(0,r.Lk)("strong",null,(0,r.v_)(e.ftime)+"-"+(0,r.v_)(e.ttime)+" "+(0,r.v_)(t.$root.trans("[h]")),1)])}),256))])]),(0,r.Lk)("div",f,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(t.timeslots,function(o,n,l){return(0,r.uX)(),(0,r.CE)("div",b,[(0,r.Lk)("div",p,[(0,r.Lk)("span",{class:"date-label",textContent:(0,r.v_)(t.moment(n).format("dddd"))},null,8,v),(0,r.Lk)("strong",null,(0,r.v_)(t.moment(n).format(G.kilDateFormat)),1
2)]),((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(o,function(o,n){return(0,r.uX)(),(0,r.CE)("div",_,[o.available?((0,r.uX)(),(0,r.CE)("label",g,[(0,r.Lk)("span",k,[(0,r.bo)((0,r.Lk)("input",{type:"radio",name:"selectedSlot",value:n,"onUpdate:modelValue":e[0]||(e[0]=function(e){return t.selectedSlot=e}),"aria-label":n.replace("|"," ")+":00"},null,8,y),[[r.XL,t.selectedSlot]]),S]),(0,r.Lk)("span",h,[o.available?((0,r.uX)(),(0,r.CE)("span",{key:1,class:(0,r.C4)(["btn btn--sm",[t.selectedSlot===n?"is-active":"btn--jump",{"do-animation":t.triggerAnimation}]])},[(0,r.Lk)("span",{textContent:(0,r.v_)(t.selectedSlot==n?"Pasirinkta":"Pasirinkti")},null,8,C)],2)):((0,r.uX)(),(0,r.CE)("span",L,[(0,r.Lk)("span",null,(0,r.v_)(t.$root.trans("[timeslot_not_available]")),1)]))])])):(0,r.Q3)("v-if",!0)])}),256))])}),256))])]),(0,r.Lk)("button",{type:"button",class:"btn primary full-w text-uppercase text-center mt-16",onClick:e[1]||(e[1]=function(){return t.persistSelectedTimeSlot&&t.persistSelectedTimeSlot.apply(t,arguments)})},(0,r.v_)(t.$root.trans("[cart__click_and_collect_select_timeslot_button]")),1)])),t.isTimeslotSelected&&t.isDeferredTimeslotFlow?((0,r.uX)(),(0,r.CE)("div",w,(0,r.v_)(t.$root.trans("[global.timeslot.static_completion_term]")),1)):(0,r.Q3)("v-if",!0),t.isTimeslotSelected&&!t.isDeferredTimeslotFlow?((0,r.uX)(),(0,r.CE)("div",O,[(0,r.Lk)("div",P,[(0,r.Lk)("div",T,[(0,r.Lk)("div",j,(0,r.v_)(t.$root.trans("[cart__date_time__date]")),1),(0,r.Lk)("div",Q,[(0,r.Lk)("span",{textContent:(0,r.v_)(t.formattedSelectedTimeSlot.date)},null,8,A)])]),(0,r.Lk)("div",E,[(0,r.Lk)("div",F,(0,r.v_)(t.$root.trans("[cart__date_time__time]")),1),(0,r.Lk)("div",x,[(0,r.Lk)("span",{textContent:(0,r.v_)(t.formattedSelectedTimeSlot.time)},null,8,$)])])]),(0,r.Lk)("button",{type:"button",class:"btn btn--sm primary-gray full-w",onClick:e[2]||(e[2]=function(e){return t.resetSelectedTimeSlot()})},[D,(0,r.eW)(" "+(0,r.v_)(t.$root.trans("[cart__update_timeslot_button]")),1)])])):(0,r.Q3)("v-if",!0)],64)}]])},76261:(t,e,o)=>{o.r(e),o.d(e,{default:()=>B});o(79432);var r=o(41425),n={class:"bor-b"},l={class:"row align-items-center gutter-8 mb-16 mb-md-24"},i={class:"col col-auto f-text-1 mb-8 mb-lg-0"},s={class:"row align-items-center no-gutters"},a=(0,r.Lk)("div",{class:"col col-auto"},[(0,r.Lk)("span",{class:"icon icon--left"},[(0,r.Lk)("img",{src:"/build/assets/images/icons/store.svg",width:"20",alt:""})])],-1),c={class:"col"},u={class:"font-weight-bold f-text-1"},d={class:"col-12 col-lg-auto"},m={key:0,class:"f-text-3"},f=["aria-label"],b=[(0,r.Lk)("span",{class:"icon f-primary"},[(0,r.Lk)("svg",null,[(0,r.Lk)("use",{href:"/build/assets/images/icons/base/sprite.svg#comment-exclamation--filled"})])],-1)],p={class:"form-group"},v={class:"form-group__label"},_={class:"input-group"},g={key:0,class:"row gutter-8 align-items-center"},k={class:"col-12 col-lg-8"},y={class:"form-group"},S={class:"form-group__label"},h={class:"input-group"},L={class:"col"},C={class:"form-group"},w=(0,r.Lk)("div",{class:"form-group__label"},"Â ",-1),O={class:"bor-b"},P={class:"row"},T={class:"row align-items-center gutter-8 mb-16 mb-md-24"},j={class:"col col-auto f-text-1 mb-8 mb-lg-0"},Q={class:"row no-gutters flex-nowrap align-items-center"},A=(0,r.Lk)("div",{class:"col col-auto"},[(0,r.Lk)("span",{class:"icon icon--left"},[(0,r.Lk)("svg",null,[(0,r.Lk)("use",{href:"/build/assets/images/icons/base/sprite.svg#truck-clock"})])])],-1),E={class:"col"},F={key:0,class:"card card--borderless"},x={class:"card__body"},$={class:"f-text-3"};o(52675),o(89463),o(2259),o(45700),o(2008),o(51629),o(23792),o(89572),o(94170),o(2892),o(59904),o(67945),o(84185),o(83851),o(81278),o(40875),o(10287),o(26099),o(58940),o(3362),o(47764),o(23500),o(62953);var D=o(9581),X=o(41353),V=o(53404),G=o(97350),K=o(82124),M=o(73002);function N(t){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N(t)}function U(){var t,e,o="function"==typeof Symbol?Symbol:{},r=o.iterator||"@@iterator",n=o.toStringTag||"@@toStringTag";function l(o,r,n,l){var a=r&&r.prototype instanceof s?r:s,c=Object.create(a.prototype);return I(c,"_invoke",function(o,r,n){var l,s,a,c=0,u=n||[],d=!1,m={p:0,n:0,v:t,a:f,f
2:f.bind(t,4),d:function(e,o){return l=e,s=0,a=t,m.n=o,i}};function f(o,r){for(s=o,a=r,e=0;!d&&c&&!n&&e<u.length;e++){var n,l=u[e],f=m.p,b=l[2];o>3?(n=b===r)&&(a=l[(s=l[4])?5:(s=3,3)],l[4]=l[5]=t):l[0]<=f&&((n=o<2&&f<l[1])?(s=0,m.v=r,m.n=l[1]):f<b&&(n=o<3||l[0]>r||r>b)&&(l[4]=o,l[5]=r,m.n=b,s=0))}if(n||o>1)return i;throw d=!0,r}return function(n,u,b){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,b),s=u,a=b;(e=s<2?t:a)||!d;){l||(s?s<3?(s>1&&(m.n=-1),f(s,a)):m.n=a:m.v=a);try{if(c=2,l){if(s||(n="next"),e=l[n]){if(!(e=e.call(l,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,s<2&&(s=0)}else 1===s&&(e=l.return)&&e.call(l),s<2&&(a=TypeError("The iterator does not provide a '"+n+"' method"),s=1);l=t}else if((e=(d=m.n<0)?a:o.call(r,m))!==i)break}catch(e){l=t,s=1,a=e}finally{c=1}}return{value:e,done:d}}}(o,n,l),!0),c}var i={};function s(){}function a(){}function c(){}e=Object.getPrototypeOf;var u=[][r]?e(e([][r]())):(I(e={},r,function(){return this}),e),d=c.prototype=s.prototype=Object.create(u);function m(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,I(t,n,"GeneratorFunction")),t.prototype=Object.create(d),t}return a.prototype=c,I(d,"constructor",c),I(c,"constructor",a),a.displayName="GeneratorFunction",I(c,n,"GeneratorFunction"),I(d),I(d,n,"Generator"),I(d,r,function(){return this}),I(d,"toString",function(){return"[object Generator]"}),(U=function(){return{w:l,m}})()}function I(t,e,o,r){var n=Object.defineProperty;try{n({},"",{})}catch(t){n=0}I=function(t,e,o,r){function l(e,o){I(t,e,function(t){return this._invoke(e,o,t)})}e?n?n(t,e,{value:o,enumerable:!r,configurable:!r,writable:!r}):t[e]=o:(l("next",0),l("throw",1),l("return",2))},I(t,e,o,r)}function W(t,e,o,r,n,l,i){try{var s=t[l](i),a=s.value}catch(t){return void o(t)}s.done?e(a):Promise.resolve(a).then(r,n)}function q(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,r)}return o}function R(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?q(Object(o),!0).forEach(function(e){Y(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):q(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function Y(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=N(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!=N(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==N(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const z={name:"CartConfigClickAndCollect",components:{CheckoutCartConfigClickAndCollectTimeSlot:X.default,VueSelect2StoreList:V.default,VuePreloader:G.default},extends:D.default,data:function(){return{timeslotAutoAssignPending:!1}},computed:R(R(R({},D.default.computed),(0,K.L8)({isDeferredTimeslotFlow:"cart/isDeferredTimeslotFlow"})),{},{showClickAndCollectTimeslot:function(){return this.selectedStore>0&&!(this.isDeferredTimeslotFlow&&this.timeslotAutoAssignPending)},formattedSelectedTimeSlot:function(){if(this.getCartConfig.timeSlot){var t=this.getCartConfig.timeSlot.split("|"),e=t[0],o=t[1];return{time:o=void 0!==t[2]?o+" - "+t[2]+" "+this.$root.trans("[hour]"):o+"-"+(parseInt(o)+1)+" "+this.$root.trans("[hour]"),date:this.moment(e).format("MMMM D, dddd")}}return{time:"N/A",date:"N/A"}},kilDateFormat:function(){return M.a}}),watch:{"getCartConfig.store":{handler:function(t){this.maybeAutoAssignTimeslot(t)},immediate:!0}},methods:R(R(R({},D.default.methods),{},{moment:M.n},(0,K.i0)({autoAssignTimeslot:"cart/autoAssignTimeslot"})),{},{resetSelectedTimeSlot:function(){this.updateCartConfig({timeSlot:null}),this.loadTimeSlots()},maybeAutoAssignTimeslot:function(t){var e,o=this;return(e=U().m(function e(){return U().w(function(e){for(;;)switch(e.n){case 0:if(o.isDeferredTimeslotFlow){e.n=1;break}return e.a(2);case 1:if(t>0){e.n=2;break}return e.a(2);case 2:if(!o.getCartConfig.timeSlot){e.n=3;break}return e.a(2);case 3:if(!o.timeslotAutoAssignPending){e.n=4;break}return e.a(2);case 4:return o.timeslotAutoAssignPending=!0,e.n=5,o.autoAssignTimeslot();case 5:if(!o._timeslotUnmounted){e.n=6;break}return e.a(2);case 6:o.timeslotAutoAssignPending=!1;case 7:return e.a(2)}},e)}),function(){var t=this,o=arguments;return new Promise(function(r,n){var l=e.apply(t,o);function i(t){W(l,r,n,i,s,"next",t)}function s(t){W(l,r,n,i,s,"throw",t)}i(void 0)})})()}}),beforeUnmount:function(){this._timeslotUnmounted=!0}};const B=(0,o(66262).A)(z,[["render",function(t,e,o,D,X,V){var G=(0,r.g2)("VueSelect2"),K=(0,r.g2)("VueSelect2StoreList"),M=(0,r.g2)("GPMessage"),N=(0,r.g2)("VuePreloader"),U=(0,r.g2)("CheckoutCartConfigClickAndCollectTimeSlot");return(0,r.uX)(),(0,r.CE)(r.FK,null,[(0,r.Lk)("div",n,[(0,r.Lk)("div",l,[(0,r.Lk)("div",i,[(0,r.Lk)("div",s,[a,(0,r.Lk)("div",c,[(0,r.Lk)("div",u,(0,r.v_)(t.$root.trans("[cart__click_and_collect__title]")),1
2)])])]),(0,r.Lk)("div",d,[t.$root.windowTablet?((0,r.uX)(),(0,r.CE)("div",m,(0,r.v_)(t.$root.trans("[cart__click_and_collect_changing_store_qty_alert]")),1)):((0,r.uX)(),(0,r.Wv)((0,r.$y)("vue-tooltip"),{key:1,ref:"vue-tooltip",message:t.$root.trans("[cart__click_and_collect_changing_store_qty_alert]"),position:"top"},{button:(0,r.k6)(function(){return[(0,r.Lk)("button",{type:"button",class:"btn btn--sm transparent","aria-label":t.$root.trans("[cart__click_and_collect_changing_store_qty_alert]")},b,8,f)]}),_:1},8,["message"]))])]),(0,r.Lk)("div",p,[(0,r.Lk)("div",v,(0,r.v_)(t.$root.trans("[cart__click_and_collect_store_city]")),1),(0,r.Lk)("div",_,[(0,r.bF)(G,{class:"form-control",modelValue:t.selectedStoreLocation,"onUpdate:modelValue":e[0]||(e[0]=function(e){return t.selectedStoreLocation=e}),options:t.storeLocationSelectOptions,placeholder:t.$root.trans("[cart__click_and_collect_default_city_placeholder]")},null,8,["modelValue","options","placeholder"])])]),Object.keys(t.storeSelectOptions).length?((0,r.uX)(),(0,r.CE)("div",g,[(0,r.Lk)("div",k,[(0,r.Lk)("div",y,[(0,r.Lk)("div",S,(0,r.v_)(t.$root.trans("[cart__click_and_collect_store]")),1),(0,r.Lk)("div",h,[(0,r.bF)(K,{class:"form-control",options:t.storeSelectOptions,placeholder:t.$root.trans("[cart__click_and_collect_default_store_placeholder]"),onSelect:e[1]||(e[1]=function(e){return t.selectedStore=e.id}),"model-value":t.$root.findObject(t.storeSelectOptions,"id",t.selectedStore),"format-label":"label, address"},null,8,["options","placeholder","model-value"])])])]),(0,r.Lk)("div",L,[(0,r.Lk)("div",C,[w,t.selectedStore?((0,r.uX)(),(0,r.Wv)(M,{key:0,store:t.$root.findObject(t.storeSelectOptions,"id",t.selectedStore),short:""},null,8,["store"])):(0,r.Q3)("v-if",!0)])])])):(0,r.Q3)("v-if",!0),(0,r.Q3)(' <div class="row align-items-center gutter-8 mb-18">'),(0,r.Q3)(' <div class="col col-auto">'),(0,r.Q3)(' <span class="btn btn--xs gray is-disabled">'),(0,r.Q3)(' <span class="icon icon--left f-secondary">'),(0,r.Q3)(" <svg>"),(0,r.Q3)(' <use href="/build/assets/images/icons/base/sprite.svg#check-circle"></use>'),(0,r.Q3)(" </svg>"),(0,r.Q3)(" </span>"),(0,r.Q3)(" YRA"),(0,r.Q3)(" </span>"),(0,r.Q3)(" </div>"),(0,r.Q3)(' <div class="col">'),(0,r.Q3)(' <div class="f-14 f-text-1">'),(0,r.Q3)(" Saltoniškių g. 9, PLC Panorama"),(0,r.Q3)(" </div>"),(0,r.Q3)(" </div>"),(0,r.Q3)(' <div class="col col-auto">'),(0,r.Q3)(' <button type="button" class="btn btn--sm gray">'),(0,r.Q3)(" Pasirinkti"),(0,r.Q3)(" </button>"),(0,r.Q3)(" </div>"),(0,r.Q3)(" </div>")]),(0,r.Lk)("div",O,[(0,r.Lk)("div",P,[(0,r.Lk)("div",{class:(0,r.C4)(["col-12 mb-16 mb-md-0",{"col-md-7":t.getCartConfig.timeSlot}])},[(0,r.Lk)("div",T,[(0,r.Lk)("div",j,[(0,r.Lk)("div",Q,[A,(0,r.Lk)("div",E,(0,r.v_)(t.$root.trans("[cart__click_and_collect_datetime]")),1)])])]),t.isDeferredTimeslotFlow&&X.timeslotAutoAssignPending&&t.selectedStore>0?((0,r.uX)(),(0,r.CE)("div",F,[(0,r.Lk)("div",x,[(0,r.bF)(N)])])):(0,r.Q3)("v-if",!0),V.showClickAndCollectTimeslot?((0,r.uX)(),(0,r.Wv)(U,{key:t.selectedStore+t.getCartConfig.timeSlot})):(0,r.Q3)("v-if",!0)],2),(0,r.Lk)("div",{class:(0,r.C4)(["col-12",{"col-md-5":t.getCartConfig.timeSlot}])},[(0,r.Lk)("div",$,(0,r.v_)(t.$root.trans("[cart__click_and_collect_order_ready_contact_alert]")),1)],2)])])],64)}]])}}]);
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.