PageSourceSearch

https://members.ruokaboksi.fi/_nuxt_688-1/BGFo2Ew3.js

js ruokaboksi.fi collected 2026-09-25 15:14:18 UTC 2,397 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0d7cc-1fe3-7690-b4c1-800c0c46713a")}catch(e){}}();import{u as e,x as t,y as n}from"./eZUKM4KC.js";import{c as r,d as i}from"./Cw-CfWrS.js";import{et as a}from"./D0zg76bP.js";import{i as o,t as s}from"./C-5dk-XQ.js";import{n as c}from"./CJUA_eql.js";import{t as l}from"./CBHZq8Nq.js";import{t as u}from"./CG-K1WjG.js";import{t as d}from"./B6DzQK0u.js";import{G as f,q as p,y as m}from"#entry";import{n as h,t as g}from"./CeZSn-lU.js";var _=t({name:`DeliveryWeekActivateButton`,props:{showDiscount:{default:!1,type:Boolean}},setup(t){let{isSelectedDeliveryWeekPauseEditable:u,selectedDeliveryWeek:_,selectedDeliveryWeekNumberString:v,selectedDeliveryWeekDiscountResolvedValue:y,selectedDeliveryWeekDiscount:b,selectedDeliveryWeekDiscountType:x,deliveryDate:S}=d(),{subscriptionId:C,isSubscriptionPaused:w}=i(),{setWeekPause:T}=r(),E=l(),D=p(),{t:O}=c(),{formatPrice:k}=m(),A=e(()=>b.value);return{handleDeliveryWeekActivate:async e=>{if(e.preventDefault(),C.value&&_.value&&u.value){if(w.value)return D.openModal(f.Generic,{title:O(`subscription_toggle.inactive.modal_title`),content:n(g,null,null),actions:n(h,{activationSource:`deliveryWeekActivate`},null)});try{await T(!1,C.value,new Date(_.value.paymentDate)),E.addNotice({text:O(`week_banner.delivery_x_activated`,{deliveryDate:S?a(new Date(S.value),`d.M.`):``}),type:`success`}),o(s.DELIVERY_WEEK_ACTIVATED,{weekNumber:v.value,year:Number(_.value.weekString.split(`-`)[0])})}catch{E.addNotice({text:O(`week_banner.delivery_x_update_failed`,{deliveryDate:S?a(new Date(S.value),`d.M.`):``}),type:`caution`})}}},selectedDeliveryWeek:_,selectedDeliveryWeekNumberString:v,discountAmount:A,deliveryDate:S,getDiscountTexts:e(()=>t.showDiscount&&A.value!==0?O(`week_banner.activate_and_save_x`,{discountAmount:x.value===`percentage`?`${y.value} %`:k(A.value||0)}):w.value?O(`week_banner.activate_subscription`):O(`week_banner.activate_delivery_x`,{deliveryDate:S.value?a(new Date(S.value),`d.M.`):``}))}},render(){return n(u,{variant:`primary`,onClick:this.handleDeliveryWeekActivate},{default:()=>[this.getDiscountTexts]})}});export{_ as t};
2//# chunkId=01a0d7cc-1fe3-7690-b4c1-800c0c46713a

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.