1import{aK as T,b5 as _,bF as k,aL as s,aM as o,bu as i,bl as d,b3 as a,a$ as M,bp as I,co as f,be as m,b2 as l,bf as $,bc as w,bh as C,b1 as p,dg as S,cb as u,bA as v,c2 as D,bH as h}from"./Bgs6eNSj.js";import{M as B}from"./B02RDZv0.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="87247df9-0fe1-4654-b9c5-8f921cd66837",e._sentryDebugIdIdentifier="sentry-dbid-87247df9-0fe1-4654-b9c5-8f921cd66837")}catch{}})();const N={name:"NoDelivery",mixins:[B],components:{GButton:_},data:()=>({chosen:0}),computed:{...h(D,["selfDeliveryDepartments","hasSelfDelivery"]),...h(v,["getOpenedModal"]),modalData(){return this.getOpenedModal.modalData},availableDepartments(){return[...this.modalData.selfDeliveryChoice].map(e=>Object.assign(e,this.selfDeliveryDepartments.find(t=>t.id===e.department_id)))},selfDeliveryTime(){const e=new Date(this.availableDepartments[this.chosen].delivery_time);return`${e.getHours()}:${e.getMinutes()<10?"0":""}${e.getMinutes()}`}},methods:{...u(D,["setDeliverySelfDepartmentById","changeDeliveryType"]),...u(v,["closeModal","clearModals"]),async setSelfDelivery(){this.setDeliverySelfDepartmentById(this.availableDepartments[this.chosen].id),await this.switchDeliveryType(),this.closeModal(),this.clearModals()},async switchDeliveryType(){this.changeDeliveryType({type:S.SELF})}}},E={class:"choice-message"},A={class:"self-delivery-departments"},V=["onClick"],F={class:"depatment-address"};function L(e,t,b,Y,j,n){const g=I,c=k("GButton");return s(),o("div",null,[(s(),i(f,{defer:"",to:e.teleportToTitle},[d(a(e.$t("thisAddressIsNotYetIncludedInTheDeliveryArea"))+"Â ",1),M(g,{class:"emoji-title",src:"/img/emoji/sadness.webp",alt:""})],8,["to"])),e.hasSelfDelivery?(s(),o(m,{key:0},[l("div",null,a(e.$t("youCanTakeAway")),1),l("div",E,a(e.$t("selfDeliveryRestaurantsCloseToYou")),1),l("div",A,[(s(!0),o(m,null,$(n.availableDepartments,(r,y)=>(s(),o("div",{key:r.id,class:w(["department",{active:y===e.chosen}]),onClick:G=>e.chosen=y},[t[1]||(t[1]=l("div",{class:"radio-button"},null,-1)),l("div",F,a(r.address),1)],10,V))),128))])],64)):C("",!0),(s(),i(f,{defet:"",to:e.teleportToFooter},[e.hasSelfDelivery?(s(),i(c,{key:0,onClick:n.setSelfDelivery},{default:p(()=>[d(a(e.$t("pickupAtTime",{time:n.selfDeliveryTime})),1)]),_:1},8,["onClick"])):(s(),i(c,{key:1,onClick:t[0]||(t[0]=r=>e.closeModal())},{default:p(()=>[d(a(e.$t("ok")),1)]),_:1}))],8,["to"]))])}const R=T(N,[["render",L],["__scopeId","data-v-57cc1b6e"]]);export{R as default};
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.