PageSourceSearch

https://marthaspantry.co.nz/_nuxt/x_vhhGcS.js

js marthaspantry.co.nz collected 2026-10-07 22:44:40 UTC 11,319 bytes, 1 lines download raw bytes

1import{_ as H}from"./B7Ug6m6x.js";import{_ as L}from"./eZI7_o6s.js";import{i as Y}from"./5v4L2PTQ.js";import{aV as j,aX as l,bf as p,aY as n,bl as C,bm as z,aZ as e,bg as _,a_ as t,b1 as k,bo as G,ba as P,b9 as Q,aN as X,aB as v,aD as Z,b7 as g,bi as J,b0 as y,a$ as a,bj as K,bt as W,bu as ee,bv as oe,bw as se,bq as te}from"./oIXnuY9V.js";import{_ as ae}from"./DUR2yIwF.js";import{e as ne,U as le}from"./DB3X_PId.js";import{d as m}from"./DNDHfWYp.js";import{u as ie}from"./BqeC_56m.js";import{t as de}from"./Qm5UYg4a.js";import{g as ce}from"./LdHqVdIP.js";import{_ as re}from"./D8nC6wOU.js";import{_ as ue}from"./CKxmznLM.js";(function(){try{var f=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new f.Error().stack;d&&(f._sentryDebugIds=f._sentryDebugIds||{},f._sentryDebugIds[d]="685fa449-292c-466c-929c-62cfba2cfcdc",f._sentryDebugIdIdentifier="sentry-dbid-685fa449-292c-466c-929c-62cfba2cfcdc")}catch{}})();const _e={key:0,class:"menu df fdc"},pe={class:"card"},me={class:"card_header df"},fe=["src"],he={class:"card_header_main df fdc jcsb f1"},ve={style:{"font-size":"10px","font-weight":"normal",color:"#a5aeba"}},ge={class:"df aic jcsb"},be={class:"card_header_main_price"},ye={class:"card-footer df"},ke={style:{width:"10%","min-width":"44px","max-width":"82px"}},xe={style:{width:"88%","word-wrap":"break-word"}},we={class:"card card_menu"},$e={class:"card_header df"},Ce=["src"],ze={class:"card_header_main df fdc jcsb f1"},Ve={style:{"font-size":"10px","font-weight":"normal",color:"#a5aeba"}},qe={class:"df aic jcsb"},De={class:"card_header_main_price"},Ie={class:"card-footer df"},Ye={style:{width:"10%","min-width":"44px","max-width":"82px"}},je={style:{width:"88%","word-wrap":"break-word"}},Ae={__name:"Menu",props:{products:{type:Array,default:[]}},setup(f){const d=f;return(V,I)=>d.products.length?(n(),l("div",_e,[d.products.length==1?(n(!0),l(C,{key:0},z(d.products,o=>(n(),l("div",pe,[e("div",me,[e("img",{class:"card_header_img",src:o.image?o.image:_(Y),alt:""},null,8,fe),e("div",he,[e("div",null,t(o.name),1),e("div",ve,[(n(!0),l(C,null,z(o.selected_variances,c=>(n(),l("span",null,[k(t(c.option_name.trim()+": ")+" ",1),e("span",null,t(c.variance.name.trim()+(o.selected_variances.at(-1)===c?"":", ")),1)]))),256))]),e("div",ge,[e("span",be,"$"+t((o.shifted_price*o.amount/100).toFixed(2)),1),e("span",null,"x"+t(o.amount),1)])])]),e("div",ye,[e("span",ke,t(o.notes?"Notes: ":""),1),e("span",xe,t(o.notes),1)])]))),256)):p("",!0),d.products.length>1?(n(!0),l(C,{key:1},z(d.products,o=>(n(),l("div",we,[e("div",$e,[e("img",{class:"card_header_img",src:o.image?o.image:_(Y),alt:""},null,8,Ce),e("div",ze,[e("div",null,t(o.name),1),e("div",Ve,[(n(!0),l(C,null,z(o.selected_variances,c=>(n(),l("span",null,[k(t(c.option_name.trim()+": ")+" ",1),e("span",null,t(c.variance.name.trim()+(o.selected_variances.at(-1)===c?"":", ")),1)]))),256))]),e("div",qe,[e("span",De,"$"+t((o.shifted_price*o.amount/100).toFixed(2)),1),e("span",null,"x"+t(o.amount),1)])])]),e("div",Ie,[e("span",Ye,t(o.notes?"Notes: ":""),1),e("span",je,t(o.notes),1)])]))),256)):p("",!0)])):p("",!0)}},Be=j(Ae,[["__scopeId","data-v-98fad82d"]]),Me={class:"home df fdc"},Ne={class:"df fdc aic f1",style:{"overflow-y":"auto"}},Re={class:"main df fdc f1"},Se={class:"home_head df aic jcsb"},Ue={class:"home_head_status back_body_color"},Ee={class:"home_main f1"},Fe={key:0,class:"home_main_p"},Te={class:"home_main_p"},Oe={class:"home_main_p"},He={class:"home_main_p"},Le={class:"home_main_p"},Ge=["href"],Pe={class:"home_main_p"},Qe=["href"],Xe={key:1,class:"home_main_note df"},Ze={key:2,class:"home_main_p df fdc"},Je={style:{width:"100%"}},Ke={style:{color:"#122848"}},We={key:0,class:"df tips",style:{"line-height":"18px"}},eo={class:"f1"},oo={style:{"font-weight":"600"}},so={key:3},to={key:4,class:"reason"},ao={class:"reason_text"},no={key:0,class:"home_foot df fdc aic"},lo={class:"q-pa-md"},io={class:"df jcc"},co={class:"popupTimeout df fdc"},ro={class:"popup_foot df fdc jcc aic"},uo={class:"popup df fdc aic jcc",style:{"background-color":"#fff","min-width":"320px",padding:"20px"}},_o={class:"f1"},po={key:0},mo={class:"df aic",style:{margin:"20px 0"}},fo=["href"],ho={class:"df aic"},vo=["href"],go={key:1},bo={class:"df aic",style:{margin:"20px 0"}},yo=["href"],ko={class:"df aic"},xo=["href"],wo={class:"popup_foot df aic jcsb",style:{width:"100%"}}
1,$o={__name:"mypagebookdetails",setup(f){m.extend(ie),m.extend(de);const d=G();P();const V=Q(),I=X(()=>V.getters.axios_message),o=v(""),c=v("");Z(()=>{c.value=g.get("time_zone"),o.value=g.get("bookingdetails")});function A(i){if(i==0)return"Awaiting confirmation";if(i==1)return"Confirmed";if(i==2)return"Rejected";if(i==3)return"Cancelled";if(i==4)return"Attend";if(i==5)return"Absent"}const h=v(!1),b=v(!1),x=v(""),w=v(!1),$=v(!1);function B(i){i.booking_deposit?i.status==0?d.dialog({message:"If the booking is cancelled, your deposit will be returned within 14 working days. Are you sure to cancel this booking?",cancel:!0,cancel:{label:"Close",noCaps:!0},ok:{label:"Cancel booking",noCaps:!0}}).onOk(()=>{h.value=!0}).onCancel(()=>{}):ne().then(s=>{m.tz(ce(s.data.timestamp),c.value).isAfter(m(m.utc(i.cancel_deadline).local()).tz(c.value),"second")?b.value=!0:d.dialog({message:"If the booking is cancelled, your deposit will be returned within 14 working days. Are you sure to cancel this booking?",cancel:!0,cancel:{label:"Close",noCaps:!0},ok:{label:"Cancel booking",noCaps:!0}}).onOk(()=>{h.value=!0}).onCancel(()=>{})}):h.value=!0}function M(){let i={cafe_id:o.value.cafe_id,passcode:o.value.passcode,action:"cancel"};x.value&&(i.cancel_reason=x.value),w.value=!0,le({id:o.value.id,data:i}).then(s=>{console.log("🚀  res:",s),w.value=!1,o.value=s.data,g.set("bookingdetails",s.data),d.dialog({title:"Cancellation successfully",message:"Your booking has been cancelled"}).onOk(()=>{h.value=!1,x.value=""})}).catch(s=>{w.value=!1,d.dialog({message:I.value})})}return(i,s)=>{const N=H,r=L,R=Be,q=K,S=re,U=oe,E=te,F=ee,D=W,T=ae,O=ue;return n(),J(T,null,{default:y(()=>[e("div",Me,[a(N,{name:"Booking detail",path:"/historybooking"}),e("div",Ne,[e("div",Re,[e("header",Se,[e("span",null,"Booking "+t(o.value.id),1),e("span",Ue,t(A(o.value.status)),1)]),e("main",Ee,[o.value.venue?(n(),l("p",Fe,[a(r,{name:"shop",size:"middle"}),e("span",null,t(o.value.venue.name),1)])):p("",!0),e("p",Te,[a(r,{name:"name",size:"middle"}),e("span",null,t(o.value.first_name)+" "+t(o.value.last_name),1)]),e("p",Oe,[a(r,{name:"shuangren",size:"middle"}),e("span",null,t(o.value.adult)+" adults"+t(o.value.child>0?", "+o.value.child+" kids":""),1)]),e("p",He,[a(r,{name:"clocking",size:"middle"}),e("span",null,t(_(m)(_(m).utc(o.value.booking_at).local()).tz(c.value).format("YYYY-MM-DD HH:mm")),1)]),e("p",Le,[a(r,{name:"phone",size:"middle"}),e("a",{class:"body-color",href:`tel:${o.value.phone_number}`},t(o.value.phone_number),9,Ge)]),e("p",Pe,[a(r,{name:"email",size:"middle"}),e("a",{class:"body-color",href:`mailto:${o.value.email}`},t(o.value.email),9,Qe)]),o.value.notes?(n(),l("p",Xe,[s[9]||(s[9]=e("span",null,"notes: ",-1)),e("span",null,t(o.value.notes),1)])):p("",!0),o.value.booking_deposit&&o.value.booking_deposit.is_paid?(n(),l("p",Ze,[e("span",Je,[a(r,{name:"meiyuan",size:"middle"}),e("span",Ke,"$"+t((o.value.booking_deposit.amount/100).toFixed(2)),1)]),o.value.status==0||o.value.status==1?(n(),l("span",We,[a(r,{name:"awaring",style:{"margin-right":"8px","font-size":"16px"}}),e("span",eo,[s[10]||(s[10]=k("If you need to cancel the booking, please perform before ",-1)),e("span",oo,t(_(m)(_(m).utc(o.value?.cancel_deadline).local()).tz(c.value).format("YYYY-MM-DD h:mm A")),1),s[11]||(s[11]=k(", otherwise your deposit will be deducted according to the requirements of the store.",-1))])])):p("",!0)])):p("",!0),o.value.products.length?(n(),l("div",so,[a(R,{products:o.value.products},null,8,["products"])])):p("",!0),o.value.status==2||o.value.status==3?(n(),l("div",to,[s[12]||(s[12]=e("p",null,"Cancelltion Reason",-1)),e("p",ao,t(o.value.cancel_reason),1)])):p("",!0)])])]),o.value.status==0||o.value.status==1?(n(),l("footer",no,[a(q,{label:"Cancel booking","no-caps":"",rounded:"",class:"back-color",style:{width:"60%",height:"44px","max-width":"360px"},onClick:s[0]||(s[0]=u=>B(o.value))})])):p("",!0),a(D,{modelValue:h.value,"onUpdate:modelValue":s[2]||(s[2]=u=>h.value=u),"full-width":"","full-height":""},{default:y(()=>[a(F,{style:{display:"flex","flex-direction":"column"}},{default:y(()=>[a(U,{class:"row items-center q-pb-none"},{default:y(()=>[s[13]||(s[13]=e("div",{class:"text-h6"},"Cancel booking",-1)),a(S),se(a(q,{icon:"close",flat:"",round:"",dense:""},null,512),[[O]])]),_:1}),e("div",lo,[a(E,{clearable:"",modelValue:x.value,"onUpdate:modelValue":s[1]||(s[1]=u=>x.value=u),outlined:"",autogrow:"",type:"textarea",counter:"",maxlength:"250",placeholder:"Please enter a reason"},null,8,["modelValue"])]),e("div",io,[a(q,{label:"Confirm","no-caps":"",rounded:"",loading:w.value,class:"back-color button",onClick:M,style:{width:"50%"}},null,8,["loading"])])]),_:1})]),_:1},8,["modelValue"]),a(D,{modelValue:b.value,"onUpdate:modelValue":s[6]||(s[6]=u=>b.value=u),class:"df fdc aic"},{default:y(()=>[e("div",co,[s[14]||(s[14]=e("div",{style:{padding:"0 15px"}},[k(" You've missed the cancellation deadline set by the store, so "),e("span",{style:{color:"#EF5533"}},"your deposit will be kept"),k(" by the merchant. If you have any questions, please reach out to the store. ")],-1)),e("footer",ro,[e("span",{style:{color:"#3d3c3c",cursor:"pointer","font-weight":"600"},onClick:s[3]||(s[3]=u=>{h.value=!0,b.value=!1})}," Cancel booking "),e("span",{style:{color:"#3d3c3c",cursor:"pointer","border-top":"1px solid #dcdee0"},onClick:s[4]||(s[4]=u=>{$.value=!0,b.value=!1})}," Contact store "),e("span",{style:{color:"#3d3c3c",cursor:"pointer","border-top":"1px solid #dcdee0"}
1,onClick:s[5]||(s[5]=u=>b.value=!1)}," Close ")])])]),_:1},8,["modelValue"]),a(D,{modelValue:$.value,"onUpdate:modelValue":s[8]||(s[8]=u=>$.value=u),class:"df fdc aic"},{default:y(()=>[e("div",uo,[e("div",_o,[s[15]||(s[15]=e("h4",{class:"popup_head"},"Contact store",-1)),o.value.venue?(n(),l("div",go,[e("p",bo,[a(r,{name:"dianhua",style:{"margin-right":"8px"},size:"middle"}),e("a",{class:"body-color",style:{"font-weight":"600"},href:`tel:${o.value.venue.phone_number}`},t(o.value.venue.phone_number),9,yo)]),e("p",ko,[a(r,{name:"youxiang",style:{"margin-right":"8px"},size:"middle"}),e("a",{class:"body-color",style:{"font-weight":"600"},href:`mailto:${o.value.venue.email}`},t(o.value.venue.email),9,xo)])])):(n(),l("div",po,[e("p",mo,[a(r,{name:"dianhua",style:{"margin-right":"8px"},size:"middle"}),e("a",{class:"body-color",style:{"font-weight":"600"},href:`tel:${_(g).get("phone_number")}`},t(_(g).get("phone_number")),9,fo)]),e("p",ho,[a(r,{name:"youxiang",style:{"margin-right":"8px"},size:"middle"}),e("a",{class:"body-color",style:{"font-weight":"600"},href:`mailto:${_(g).get("Email")}`},t(_(g).get("Email")),9,vo)])]))]),e("footer",wo,[s[16]||(s[16]=e("span",null,null,-1)),e("span",{style:{color:"#3d3c3c",cursor:"pointer","font-size":"16px","margin-top":"20px"},onClick:s[7]||(s[7]=u=>$.value=!1)}," Close ")])])]),_:1},8,["modelValue"])])]),_:1})}}},Ro=j($o,[["__scopeId","data-v-caf46731"]]);export{Ro 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.