@feedmepos/mf-order-setting 0.0.105 → 0.0.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DisplaySystemView-aLqc6lz9.js +9068 -0
- package/dist/{FoodCourtInvitationsView-Bo174yfB.js → FoodCourtInvitationsView-B30qld2i.js} +4 -4
- package/dist/{FoodCourtOrderSettingsView-uUe53O0Z.js → FoodCourtOrderSettingsView-CWmaKgbe.js} +1 -1
- package/dist/{FoodCourtOrdersView-CxC5oGp2.js → FoodCourtOrdersView-FfrganVo.js} +4 -4
- package/dist/{FoodCourtStallsView-BEpRBmSL.js → FoodCourtStallsView-CpGZNP6p.js} +2 -2
- package/dist/{FoodCourtStatusView-DA7mdsuf.js → FoodCourtStatusView-ljQUwIwk.js} +1 -1
- package/dist/{KioskDevicesView-BY9Egk75.js → KioskDevicesView-BwDAYIhX.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-CxroxD-b.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-VidDJfGG.js} +487 -473
- package/dist/KioskSettingView-mfhi9vuf.js +1240 -0
- package/dist/{KioskView-BYL0u6kj.js → KioskView-6p5h92fk.js} +173 -167
- package/dist/{OrderSettingsView-BBHAhgE9.js → OrderSettingsView-Cf_Ye9U_.js} +11 -11
- package/dist/{RestaurantSelector.vue_vue_type_script_setup_true_lang--9bdtLE1.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-TJJ3PBlq.js} +1 -1
- package/dist/{app-BV2USn83.js → app-BorqCaJT.js} +6965 -6415
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-Bp4Kgnt_.js → dayjs.min-CTTY2vkL.js} +1 -1
- package/dist/display-preview/assets/{BandBoard-DIcfXsNV.js → BandBoard-BLwgs3WX.js} +1 -1
- package/dist/display-preview/assets/{CarouselBlock-XAhTyEWB.js → CarouselBlock-CUrVSbQp.js} +1 -1
- package/dist/display-preview/assets/{CategoryBoard-DBKe18hv.js → CategoryBoard-BkvpcxHR.js} +1 -1
- package/dist/display-preview/assets/{ImageBlock-BCbnYSHq.js → ImageBlock-0UYDHTm0.js} +1 -1
- package/dist/display-preview/assets/{PickupMode-Df_TPCh8.js → PickupMode-BY4iL0BH.js} +1 -1
- package/dist/display-preview/assets/{StatusBoard-28z3bPOf.js → StatusBoard-DGEZ6hvH.js} +1 -1
- package/dist/display-preview/assets/{TextBlock-CvJKITtx.js → TextBlock-CxKwtqoO.js} +1 -1
- package/dist/display-preview/assets/{VideoBlock-Dop43wDv.js → VideoBlock-BKkxdLAd.js} +1 -1
- package/dist/display-preview/assets/{index-cqMoOpSN.js → index-B1olKQmQ.js} +2 -2
- package/dist/display-preview/assets/{pickupView-DRMVXqrc.js → pickupView-CB9fV5jD.js} +1 -1
- package/dist/display-preview/images/feedme-bg-left-image.png +0 -0
- package/dist/display-preview/index.html +1 -1
- package/dist/{featureFlag-C1uGG7u6.js → featureFlag-DFenoxmg.js} +1 -1
- package/dist/frontend/mf-order/src/api/display-system/index.d.ts +2 -2
- package/dist/frontend/mf-order/src/app.d.ts +118 -12
- package/dist/frontend/mf-order/src/composables/useDisplaySystemPermission.d.ts +5 -0
- package/dist/frontend/mf-order/src/main.d.ts +118 -12
- package/dist/frontend/mf-order/src/modules/display-system/interface.d.ts +9 -11
- package/dist/frontend/mf-order/src/modules/display-system/legacy-ods/convert.d.ts +10 -0
- package/dist/frontend/mf-order/src/modules/kiosk/deviceCount.d.ts +18 -0
- package/dist/frontend/mf-order/src/modules/order-setting/kiosk/interface.d.ts +12 -0
- package/dist/frontend/mf-order/src/modules/order-setting/kiosk/tableNumberHint.d.ts +33 -0
- package/dist/frontend/mf-order/src/stores/display-system/index.d.ts +10 -70
- package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +51 -0
- package/dist/frontend/mf-order/src/views/display-system/DisplayTemplateEditor.vue.d.ts +2 -0
- package/dist/frontend/mf-order/src/views/display-system/legacy-ods/LegacyOdsTemplateList.vue.d.ts +11 -2
- package/dist/frontend/mf-order/src/views/display-system/view-selection.d.ts +1 -2
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-0GuybwuA.js → index-BZkJr7iu.js} +1 -1
- package/dist/{index-HF3qh9qG.js → index-C4Isv-r7.js} +1 -1
- package/dist/{index-CRNutZC_.js → index-DuJOWWP8.js} +4 -4
- package/dist/{index-D0ZIByef.js → index-nUvyt9Wm.js} +1 -1
- package/dist/{index-KWOCCun9.js → index-tLkJL436.js} +2 -2
- package/dist/{order.dto-GQaBESZq.js → order.dto-nVwtcdX2.js} +6049 -5992
- package/dist/package/entity/display/mediaHosts.d.ts +4 -0
- package/dist/package/entity/food-court/order-v2.do.d.ts +667 -0
- package/dist/package/entity/food-court/order-v2.dto.d.ts +262 -0
- package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +16 -0
- package/dist/package/entity/order-platform/menu.dto.d.ts +44 -44
- package/dist/package/entity/order-setting/kiosk/kiosk.do.d.ts +52 -0
- package/dist/package/entity/order-setting/kiosk/kiosk.dto.d.ts +293 -0
- package/dist/package/entity/order-setting/order-setting.do.d.ts +42 -0
- package/dist/package/entity/order-setting/order-setting.dto.d.ts +174 -0
- package/dist/package/entity/restaurant/restaurant.dto.d.ts +42 -0
- package/dist/package/entity/websocket/websocket.dto.d.ts +92 -0
- package/dist/style.css +1 -1
- package/dist/{useInternalUser-C39xpsBU.js → useInternalUser-HhxjbzGl.js} +1 -1
- package/package.json +3 -3
- package/src/api/display-system/index.ts +2 -2
- package/src/composables/useDisplaySystemPermission.spec.ts +27 -0
- package/src/composables/useDisplaySystemPermission.ts +16 -0
- package/src/locales/en-US.json +51 -17
- package/src/locales/ja-JP.json +26 -11
- package/src/locales/th-TH.json +32 -17
- package/src/locales/zh-CN.json +51 -17
- package/src/modules/display-system/interface.spec.ts +1 -32
- package/src/modules/display-system/interface.ts +7 -24
- package/src/modules/display-system/legacy-ods/convert.spec.ts +65 -0
- package/src/modules/display-system/legacy-ods/convert.ts +95 -0
- package/src/modules/display-system/legacy-ods/media.spec.ts +16 -0
- package/src/modules/kiosk/deviceCount.spec.ts +23 -0
- package/src/modules/kiosk/deviceCount.ts +21 -0
- package/src/modules/order-setting/kiosk/interface.ts +13 -0
- package/src/modules/order-setting/kiosk/tableNumberHint.spec.ts +68 -0
- package/src/modules/order-setting/kiosk/tableNumberHint.ts +71 -0
- package/src/router/display-system-permission.spec.ts +13 -0
- package/src/router/routes.ts +2 -1
- package/src/stores/display-system/index.spec.ts +104 -0
- package/src/stores/display-system/index.ts +18 -7
- package/src/stores/order-setting/mapper.ts +11 -2
- package/src/views/display-system/DisplayInspector.vue +3 -0
- package/src/views/display-system/DisplayModulePickerDialog.vue +8 -0
- package/src/views/display-system/DisplaySystemView.conversion.spec.ts +164 -0
- package/src/views/display-system/DisplaySystemView.vue +72 -26
- package/src/views/display-system/DisplayTemplateEditor.spec.ts +18 -0
- package/src/views/display-system/DisplayTemplateEditor.vue +8 -2
- package/src/views/display-system/legacy-ods/LegacyOdsTemplateList.spec.ts +44 -4
- package/src/views/display-system/legacy-ods/LegacyOdsTemplateList.vue +12 -4
- package/src/views/display-system/view-selection.spec.ts +4 -17
- package/src/views/display-system/view-selection.ts +3 -4
- package/src/views/kiosk/devices/KioskDevicesView.vue +6 -2
- package/src/views/kiosk/devices/KioskLicenseSummary.spec.ts +45 -0
- package/src/views/kiosk/devices/KioskLicenseSummary.vue +9 -2
- package/src/views/kiosk/settings/KioskSettingView.vue +140 -6
- package/vitest.config.ts +1 -0
- package/dist/DisplaySystemView-CFr9DnaD.js +0 -8926
- package/dist/KioskSettingView-DPaQ7YFV.js +0 -1124
package/dist/app.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,E as t,S as n,T as r,_ as i,a,b as o,c as s,d as c,g as l,h as u,i as d,l as f,m as p,o as m,p as h,s as g,t as _,v,w as y,y as b}from"./index-
|
|
1
|
+
import{C as e,E as t,S as n,T as r,_ as i,a,b as o,c as s,d as c,g as l,h as u,i as d,l as f,m as p,o as m,p as h,s as g,t as _,v,w as y,y as b}from"./index-B1olKQmQ.js";import{i as x,s as ee}from"./pickupView-CB9fV5jD.js";function S(e,t=4){var n;let r=Math.max(1,Math.floor(t)),i=[];for(let t=0;t<((n=e==null?void 0:e.length)==null?0:n);t+=r)i.push(e.slice(t,t+r));return i.length?i:[[]]}function C(e,t){var n,r;let i=(n=t.queueId)==null?void 0:n.trim();if(i){let t=e.findIndex(e=>e.some(e=>D(e).some(e=>e.id===i)));if(t>=0)return t}let a=(r=t.code)==null?void 0:r.trim();return a?e.findIndex(e=>e.some(e=>D(e).some(e=>e.code===a))):-1}function w(e){var t;return[...(t=e.called)==null?[]:t].sort((e,t)=>{var n,r,i,a;let o=Date.parse((n=t.calledAt)==null?``:n)-Date.parse((r=e.calledAt)==null?``:r);return Number.isFinite(o)&&o!==0?o:((i=t.id)==null?``:i).localeCompare((a=e.id)==null?``:a)})[0]}function T(e,t=3){var n;return((n=e.waiting)==null?[]:n).slice(0,Math.max(0,Math.floor(t)))}function E(e){return((e==null?void 0:e.trim())||`All parties`).replace(/–/g,`-`)}function D(e){var t,n;return[...(t=e.called)==null?[]:t,...(n=e.waiting)==null?[]:n]}var O={key:0,class:`queue-intro`},k=[`src`],A={class:`queue-intro-copy`},te={class:`queue-pax-badge`},ne={key:1,class:`queue-called-number queue-called-empty`},j={key:0,class:`queue-upcoming`},M={key:0},N={class:`queue-upcoming-list`},P=4.2,F=1.2,I=6.375,L=24.5*1.2,R=h({__name:`QueueMode`,props:{screen:{},restaurant:{},snapshot:{},lastCall:{},config:{},showHeader:{type:Boolean}},setup(p){let h=p,g=n(0),_=n(),D=n(),R=n(),z=n(),B=n(4),V,H,U,W=a(()=>{var e;return S((e=h.snapshot)==null?void 0:e.groups,B.value)}),G=a(()=>{var e;return(e=W.value[g.value%W.value.length])==null?[]:e}),K=a(()=>ee(h.restaurant,h.config)),q=a(()=>{var e;return(e=h.config)==null||(e=e.queue)==null||(e=e.headerImageUrl)==null?void 0:e.trim()}),re=a(()=>{var e;return((e=h.config)==null||(e=e.queue)==null||(e=e.headerTitle)==null?void 0:e.trim())||`Collect your dine-in queue number at the counter`}),ie=a(()=>{var e;return((e=h.config)==null||(e=e.queue)==null||(e=e.headerSubtitle)==null?void 0:e.trim())||`To minimize wait times during peak hours, parties will only be seated once all guests have arrived.`}),ae=a(()=>{var e,t;return(e=(t=h.config)==null||(t=t.queue)==null?void 0:t.upcomingCount)==null?3:e}),J=n(1/0),Y=a(()=>Math.min(ae.value,J.value)),oe=a(()=>{var e;return((e=h.config)==null||(e=e.queue)==null?void 0:e.showWaitingCount)!==!1});function X(){if(V!==void 0&&window.clearInterval(V),V=void 0,W.value.length>1){var e,t;V=window.setInterval(()=>{g.value+=1},(e=(t=h.config)==null||(t=t.queue)==null?void 0:t.rotateMs)==null?1e4:e)}}function Z(e){let t=C(W.value,e);return t<0?!1:(g.value=t,X(),!0)}o(()=>W.value.length,()=>{g.value=0,X()},{immediate:!0}),o(()=>h.lastCall,e=>{U=e,e&&Z(e)&&(U=void 0)},{immediate:!0}),o(W,()=>{U&&Z(U)&&(U=void 0)}),o(G,async()=>{await u(),Q()});function se(){return Number.parseFloat(getComputedStyle(document.documentElement).fontSize)||16}function Q(){var e,t;let n=(e=_.value)==null?void 0:e.getBoundingClientRect(),r=se(),i=Math.floor(((t=n==null?void 0:n.width)==null?0:t)/(L*r));B.value=Math.max(1,Math.min(6,i)),ce(r)}function ce(e){let t=D.value,n=R.value,r=z.value;if(!t||!n||!r)return;let i=t.clientHeight-n.offsetHeight-r.offsetHeight-I*e,a=P*e,o=F*e;J.value=Math.max(0,Math.floor((i+o)/(a+o)))}i(async()=>{await u(),Q(),H=new ResizeObserver(Q),_.value&&H.observe(_.value),window.addEventListener(`display-scale-change`,Q)}),l(()=>{V!==void 0&&window.clearInterval(V),H==null||H.disconnect(),window.removeEventListener(`display-scale-change`,Q)});let le=a(()=>({"--queue-primary":K.value.primary,"--queue-accent":K.value.accent,"--queue-primary-soft":x(K.value.primary,.8),"--queue-secondary":x(K.value.primary,.9),"--queue-text":K.value.textPrimary,"--queue-text-secondary":K.value.textSecondary,"--queue-elevated":K.value.elevated}));function $(e){return w(e)}function ue(e){return!e||!h.lastCall?!1:!!(e.id&&e.id===h.lastCall.queueId||e.code&&e.code===h.lastCall.code)}return(n,i)=>(v(),f(`section`,{ref_key:`root`,ref:_,class:`queue-screen`,style:r(le.value)},[p.showHeader?(v(),f(`header`,O,[q.value?(v(),f(`img`,{key:0,class:`queue-intro-image`,src:q.value,alt:``},null,8,k)):s(``,!0),m(`div`,A,[m(`h1`,null,t(re.value),1),m(`p`,null,t(ie.value),1)])])):s(``,!0),m(`main`,{class:`queue-card-row`,style:r({"--queue-card-count":Math.max(1,G.value.length)})},[(v(!0),f(d,null,b(G.value,(n,a)=>{var o,l,u,p,h,g,_,x;return v(),f(`article`,{key:(o=n.id)==null?a:o,ref_for:!0,ref:e=>{a===0&&(D.value=e)},class:`queue-card`},[m(`div`,{ref_for:!0,ref:e=>{a===0&&(R.value=e)},class:y([`queue-card-title`,{"queue-card-title-accent":a%2==1}])},[i[0]||(i[0]=m(`span`,{class:`queue-party-icon`,"aria-hidden":`true`},[m(`img`,{src:`images/queue-group-left.svg`,alt:``}),m(`img`,{src:`images/queue-group-right.svg`,alt:``})],-1)),m(`strong`,null,t(e(E)(n.label)),1)],2),m(`div`,{ref_for:!0,ref:e=>{a===0&&(z.value=e)},class:y([`queue-ready`,{"queue-ready-accent":a%2==1}])},[i[1]||(i[1]=m(`h2`,null,`Table ready`,-1)),$(n)?(v(),f(d,{key:0},[m(`span`,te,t((l=(u=$(n))==null?void 0:u.pax)==null?`—`:l)+` pax`,1),m(`strong`,{class:y([`queue-called-number`,{"queue-number-calling":ue($(n))}])},t((p=(h=$(n))==null?void 0:h.code)==null?`—`:p),3)],64)):(v(),f(`strong`,ne,`—`))],2),Y.value>0?(v(),f(`div`,j,[m(`h3`,null,[i[2]||(i[2]=c(`UPCOMING`,-1)),oe.value?(v(),f(`span`,M,` · `+t((g=(_=n.waitingCount)==null?(x=n.waiting)==null?void 0:x.length:_)==null?0:g)+` PARTIES IN LINE`,1)):s(``,!0)]),i[3]||(i[3]=m(`div`,{class:`queue-rule`},null,-1)),m(`div`,N,[(v(!0),f(d,null,b(e(T)(n,Y.value),(e,n)=>{var i,a;return v(),f(`strong`,{key:(i=e.id)==null?n:i,style:r({opacity:1-n*.2})},t((a=e.code)==null?`—`:a),5)}),128))])])):s(``,!0)])}),128))],4),i[4]||(i[4]=m(`p`,{class:`queue-expired-note`},`Please get a new ticket when your ticket has exceeded by 3 numbers.`,-1))],4))}}),z=h({__name:`BandBoard`,props:{blockId:{},blockProps:{},announcementOwner:{type:Boolean}},setup(t){let n=t,r=p(_),i=a(()=>{var e;return{theme:r==null||(e=r.document)==null?void 0:e.theme,queue:{showWaitingCount:c(`showWaitingCount`,!0),upcomingCount:o(`upcomingCount`,3),rotateMs:o(`rotateMs`,1e4),headerTitle:s(`headerTitle`),headerSubtitle:s(`headerSubtitle`),headerImageUrl:s(`headerImageUrl`)}}});function o(e,t){return typeof n.blockProps[e]==`number`?n.blockProps[e]:t}function s(e){return typeof n.blockProps[e]==`string`?n.blockProps[e]:void 0}function c(e,t){return typeof n.blockProps[e]==`boolean`?n.blockProps[e]:t}return(t,n)=>{var a,o,s,l;return v(),g(R,{"show-header":c(`showHeader`,!0),screen:(a=e(r))==null?void 0:a.screen,restaurant:(o=e(r))==null?void 0:o.restaurant,snapshot:(s=e(r))==null?void 0:s.queue,"last-call":(l=e(r))==null||(l=l.queueCall)==null?void 0:l.event,config:i.value},null,8,[`show-header`,`screen`,`restaurant`,`snapshot`,`last-call`,`config`])}}});export{z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as e,a as t,b as n,f as r,g as i,l as a,m as o,n as s,o as c,p as l,r as u,s as d,v as f,x as p}from"./index-
|
|
1
|
+
import{S as e,a as t,b as n,f as r,g as i,l as a,m as o,n as s,o as c,p as l,r as u,s as d,v as f,x as p}from"./index-B1olKQmQ.js";import{t as m}from"./TextBlock-CxKwtqoO.js";import{t as h}from"./ImageBlock-0UYDHTm0.js";var g=[`data-count`],_={key:1,class:`display-media-empty`,"data-placeholder":`carousel-empty`},v=16,y=l({__name:`CarouselBlock`,props:{blockId:{},blockProps:{},announcementOwner:{type:Boolean}},setup(l){let y=l,b=o(s,void 0),x=t(()=>{let e=y.blockProps.items;return Array.isArray(e)?e.filter(e=>!!e&&(e.kind===`IMAGE`||e.kind===`TEXT`)):[]}),S=t(()=>typeof y.blockProps.intervalMs==`number`&&y.blockProps.intervalMs>=3e3?y.blockProps.intervalMs:8e3),C={FADE:`display-carousel-fade`,SLIDE:`display-carousel-slide`},w=t(()=>{var e,t;return(e=C[String((t=y.blockProps.transition)==null?`FADE`:t)])==null?``:e}),T=e(0),E=t(()=>{let e=x.value;if(!e.length)return;let t=T.value%e.length;return{item:e[t],index:t}}),D;function O(){D!==void 0&&window.clearTimeout(D),D=void 0;let e=x.value.length;if(!e)return;let t=b==null?void 0:b.nowMs();t!==void 0&&(T.value=Math.floor(t/S.value)%e,!(e<=1)&&(D=window.setTimeout(O,Math.max(S.value-t%S.value,v))))}n([x,S],O,{immediate:!0});let k=b==null?void 0:b.onCalibrate(O);i(()=>{k==null||k(),D!==void 0&&window.clearTimeout(D)});function A(e){var t,n;return e.kind===`IMAGE`?{url:e.url,objectFit:(t=e.objectFit)==null?`COVER`:t}:{text:e.text,align:(n=e.align)==null?`CENTER`:n,size:`MD`}}return(e,t)=>(f(),a(`div`,{class:`display-carousel`,"data-count":x.value.length},[r(u,{name:w.value},{default:p(()=>[E.value?(f(),a(`div`,{key:E.value.index,class:`display-carousel-item`},[E.value.item.kind===`IMAGE`?(f(),d(h,{key:0,"block-id":`${l.blockId}_${E.value.index}`,"block-props":A(E.value.item),"announcement-owner":!1},null,8,[`block-id`,`block-props`])):(f(),d(m,{key:1,"block-id":`${l.blockId}_${E.value.index}`,"block-props":A(E.value.item),"announcement-owner":!1},null,8,[`block-id`,`block-props`]))])):(f(),a(`div`,_,[...t[0]||(t[0]=[c(`div`,{class:`display-media-empty-content`},[c(`span`,null,`No carousel items`)],-1)])]))]),_:1},8,[`name`])],8,g))}});export{y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,a as t,m as n,p as r,s as i,t as a,v as o}from"./index-
|
|
1
|
+
import{C as e,a as t,m as n,p as r,s as i,t as a,v as o}from"./index-B1olKQmQ.js";import{t as s}from"./PickupMode-BY4iL0BH.js";var c=r({__name:`CategoryBoard`,props:{blockId:{},blockProps:{},announcementOwner:{type:Boolean}},setup(r){let c=r,l=n(a),u=t(()=>{var e;return{theme:l==null||(e=l.document)==null?void 0:e.theme,layout:{footerMode:`none`,boardWidthPercent:100},pickup:{groupBy:`type`,statusSlidingPeriod:d(`rotateMs`,1e4),showProgressBar:f(`showProgressBar`,!1),showDeliveryIcons:f(`showDeliveryIcons`,!0),currentOrder:{enabled:f(`showCurrentOrder`,!0)}}}});function d(e,t){return typeof c.blockProps[e]==`number`?c.blockProps[e]:t}function f(e,t){return typeof c.blockProps[e]==`boolean`?c.blockProps[e]:t}return(t,n)=>{var r,a,c;return o(),i(s,{screen:(r=e(l))==null?void 0:r.screen,restaurant:(a=e(l))==null?void 0:a.restaurant,snapshot:(c=e(l))==null?void 0:c.pickup,config:u.value},null,8,[`screen`,`restaurant`,`snapshot`,`config`])}}});export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{E as t,S as n,T as r,a as i,b as a,l as o,o as s,p as c,v as l}from"./index-
|
|
1
|
+
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{E as t,S as n,T as r,a as i,b as a,l as o,o as s,p as c,v as l}from"./index-B1olKQmQ.js";var u={key:0,class:`display-media-empty`,"data-placeholder":`media-missing`},d={class:`display-media-empty-content`},f=[`src`],p=c({__name:`ImageBlock`,props:{blockId:{},blockProps:{},announcementOwner:{type:Boolean}},setup(e){let c=e,p=i(()=>typeof c.blockProps.url==`string`?c.blockProps.url.trim():``),m=i(()=>c.blockProps.objectFit===`CONTAIN`?`contain`:`cover`),h=n(!1);a(p,()=>{h.value=!1});function g(){h.value=!0}return(e,n)=>!p.value||h.value?(l(),o(`div`,u,[s(`div`,d,[n[0]||(n[0]=s(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":`true`},[s(`path`,{d:`M4 5h16v14H4z`}),s(`path`,{d:`m7 15 3.2-3.6 2.4 2.6L15.4 11l2 4z`}),s(`circle`,{cx:`9`,cy:`9.2`,r:`1.2`})],-1)),s(`span`,null,t(p.value?`Image unavailable`:`No image selected`),1)])])):(l(),o(`img`,{key:1,class:`display-media-image`,src:p.value,alt:``,style:r({objectFit:m.value}),onError:g},null,44,f))}}),m=e({default:()=>h}),h=p;export{m as n,h as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,E as t,S as n,T as r,_ as i,a,b as o,c as s,d as c,f as ee,g as l,h as u,i as d,l as f,o as p,p as m,u as h,v as g,w as _,y as v}from"./index-cqMoOpSN.js";import{a as y,i as te,n as b,o as x,r as S,s as C,t as w}from"./pickupView-DRMVXqrc.js";var T={groupBy:`type`,statusLayout:`horizontal`,statusSlidingPeriod:1e4,statusColumnCount:2,showDeliveryIcons:!0,showOrderTypeTabs:!1,showProgressBar:!1,showOrderCount:!1,showEstimatedTime:!1,currentOrder:{enabled:!1}};function E(e){return{...T,...e,currentOrder:{...T.currentOrder,...e==null?void 0:e.currentOrder}}}function D(e){return{background:null,sidePanel:null,boardWidthPercent:100,boardAlign:`left`,footerMode:`none`,...e}}var O=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},k={},A={viewBox:`0 0 152 153.5`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`};function j(e,t){return g(),f(`svg`,A,[...t[0]||(t[0]=[h(`<g clip-path="url(#co-hand-clip)"><path d="M64.6444 0.811035H64.8319C68.3306 0.811136 71.5399 2.37419 73.9735 4.98291V4.98389C76.4631 7.7726 77.739 11.5321 77.3749 15.3511C77.07 18.4552 76.0354 21.1987 74.1327 24.1431C71.3563 27.694 67.8809 32.2528 65.0507 36.145C63.6337 38.0936 62.3761 39.8788 61.4481 41.2876C60.9845 41.9915 60.6004 42.606 60.3192 43.1021C60.0482 43.5803 59.8476 43.9909 59.786 44.2729C59.3234 46.3184 59.7911 48.4176 61.0907 50.2993C62.8481 52.8969 65.8367 54.4487 69.0751 54.4487C70.4317 54.4487 71.7918 54.1913 73.0262 53.6724L73.0302 53.6704L74.9012 52.8608L74.9003 52.8599L80.3885 50.5571L80.3993 50.5522L126.886 29.3091L126.885 29.3081C129.339 28.2679 131.471 27.7857 133.843 27.7856C135.071 27.7856 135.485 27.7865 135.737 27.8081C135.853 27.818 135.933 27.8316 136.059 27.8569C136.19 27.883 136.364 27.9194 136.652 27.9673L136.662 27.9692L136.673 27.9702C142.554 28.6162 147.289 33.1306 148.184 38.7427L148.259 39.2896C148.592 42.3161 147.895 45.0102 146.228 47.3296C144.556 49.656 141.891 51.6281 138.252 53.1675L108.926 65.5649L107.838 66.0249L108.991 66.2769C114.809 67.5475 118.992 72.6903 118.992 78.7437C118.992 81.7584 117.986 84.0039 116.161 85.9468C114.321 87.9054 111.643 89.561 108.279 91.3647L107.479 91.7349L106.564 92.1558L107.532 92.4351C112.99 94.0092 116.807 98.9728 116.807 104.721C116.807 110.406 112.008 114.544 107.167 117.088L103.557 118.643L102.511 119.093L103.62 119.353C109.315 120.684 113.438 125.827 113.438 131.821C113.438 134.851 112.811 137.05 111.704 138.775C110.598 140.498 108.992 141.782 106.97 142.947L100.377 145.803C89.6911 150.331 78.3214 152.626 66.703 152.626H10.7948V152.679C8.33838 152.592 6.0447 151.656 4.25378 150.035L3.88464 149.684C1.9563 147.697 0.875221 145.113 0.874878 142.35L1.18542 67.4312C2.83413 54.6239 10.6441 43.4888 22.0858 37.436L22.6337 37.1519C33.7384 31.5144 43.396 22.8097 50.5438 11.9175L50.5448 11.9155L53.2909 7.6792L53.3007 7.66357L53.3094 7.64697C55.4899 3.41436 59.8519 0.811035 64.6444 0.811035Z" fill="white" stroke="#1C1C1E" stroke-width="0.75"></path><path d="M52.6945 11.8639L57.1475 5.69966C59.812 2.0112 64.9878 1.12961 68.7328 3.82626C72.4272 6.48646 73.3103 11.654 70.6093 15.393L66.1563 21.5573C65.3168 22.7194 63.7488 22.973 62.5849 22.1348L53.2729 15.4296C52.1089 14.5915 51.855 13.0261 52.6945 11.8639Z" fill="#F0F0F0"></path><path d="M125.141 35.0207L132.079 31.8931C136.231 30.0216 141.158 31.8334 143.058 36.0349C144.932 40.1797 143.118 45.0989 138.909 46.996L131.971 50.1236C130.663 50.7132 129.177 50.1527 128.587 48.8468L123.862 38.3997C123.272 37.0938 123.833 35.6103 125.141 35.0207Z" fill="#F0F0F0"></path><path d="M43.4922 137.926C63.204 137.926 79.1835 121.972 79.1835 102.292C79.1835 82.6116 63.204 66.6577 43.4922 66.6577C23.7804 66.6577 7.8009 82.6116 7.8009 102.292C7.8009 121.972 23.7804 137.926 43.4922 137.926Z" fill="var(--pickup-primary, var(--brand-color-primary, #FF7823))" stroke="#1C1C1E" stroke-width="1.49509" stroke-linecap="round" stroke-linejoin="round"></path><g><path d="M64.0853 103.849C59.8423 108.148 54.1641 110.951 48.174 111.699C42.1838 112.446 36.0065 111.138 30.8275 108.023" stroke="#1C1C1E" stroke-width="1.49509" stroke-linecap="round" stroke-linejoin="round"></path><path d="M33.5091 101.419C33.1347 103.974 31.8243 106.341 29.89 108.085C27.9557 109.83 25.4598 110.889 22.8391 111.013" stroke="#1C1C1E" stroke-width="1.49509" stroke-linecap="round" stroke-linejoin="round"></path><path d="M43.6174 99.8619C45.0992 99.8619 46.3005 98.6626 46.3005 97.1832C46.3005 95.7037 45.0992 94.5044 43.6174 94.5044C42.1356 94.5044 40.9343 95.7037 40.9343 97.1832C40.9343 98.6626 42.1356 99.8619 43.6174 99.8619Z" fill="#1C1C1E"></path><path d="M58.3447 90.4552C59.8265 90.4552 61.0278 89.2559 61.0278 87.7764C61.0278 86.297 59.8265 85.0977 58.3447 85.0977C56.8629 85.0977 55.6616 86.297 55.6616 87.7764C55.6616 89.2559 56.8629 90.4552 58.3447 90.4552Z" fill="#1C1C1E"></path></g><path d="M35.0039 63.543C37.3126 65.5365 38.4981 68.7759 37.9989 71.8285C37.4998 74.881 35.2535 77.5598 32.3832 78.6189" stroke="#1C1C1E" stroke-width="1.49509" stroke-linecap="round" stroke-linejoin="round"></path><path d="M42.4309 58.9951C45.426 61.9854 45.8628 67.156 43.3669 70.5824" stroke="#1C1C1E" stroke-width="1.49509" stroke-linecap="round" stroke-linejoin="round"></path><path d="M48.4828 53.9492C52.4138 56.6903 54.1609 62.2347 52.5386 66.7201" stroke="#1C1C1E" stroke-width="1.49509" stroke-linecap="round" stroke-linejoin="round"></path><path d="M49.4185 86.1567L60.2756 98.4916" stroke="#1C1C1E" stroke-width="1.49509" stroke-linecap="round" stroke-linejoin="round"></path><path d="M109.884 65.5986L91.7261 73.3235" stroke="#1C1C1E" stroke-width="1.49509" stroke-linecap="round" stroke-linejoin="round"></path><path d="M94.1583 97.3082L108.011 91.9507" stroke="#1C1C1E" stroke-width="1.49509" stroke-linecap="round" stroke-linejoin="round"></path><path d="M91.6608 123.597L103.891 118.925" stroke="#1C1C1E" stroke-width="1.49509" stroke-linecap="round" stroke-linejoin="round"></path><path d="M144.886 10.0298L142.827 15.6365" stroke="#1C1C1E" stroke-width="1.49509" stroke-linecap="round" stroke-linejoin="round"></path><path d="M138.21 10.0298L137.711 15.6365" stroke="#1C1C1E" stroke-width="1.49509" stroke-linecap="round" stroke-linejoin="round"></path><path d="M151.503 15.6367L147.947 20.7451" stroke="#1C1C1E" stroke-width="1.49509" stroke-linecap="round" stroke-linejoin="round"></path><path d="M91.7261 73.6972L116.498 70.7692C116.498 70.7692 114.002 66.9691 108.823 66.0347L91.7261 73.6972Z" fill="#1C1C1E"></path><path d="M94.1583 97.744L115.061 97.9932C115.061 97.9932 112.815 93.2586 107.948 92.4487L94.1583 97.744Z" fill="#1C1C1E"></path><path d="M91.6608 124.096L111.628 124.719C111.628 124.719 108.758 120.109 103.391 119.174L91.6608 124.096Z" fill="#1C1C1E"></path></g><defs><clipPath id="co-hand-clip"><rect width="152" height="153.5" fill="white"></rect></clipPath></defs>`,2)])])}var ne=O(k,[[`render`,j]]),re={class:`pickup-content`},M={key:0,class:`pickup-current-wrap`},ie={class:`pickup-current-card`},ae=[`src`],oe={key:0,class:`pickup-side-current`},se={class:`pickup-board-area`},ce={key:0,class:`pickup-category-row`},le={key:0,class:`pickup-category-icon`},ue=[`src`],de=[`src`,`alt`],fe={key:2},pe={class:`pickup-columns`},me={class:`pickup-preparing-columns`},he={class:`pickup-column pickup-column-ready`,style:{width:`15.1875rem`}},ge={key:1,class:`pickup-empty`},_e={key:2,class:`pickup-progress`},ve={class:`pickup-status-section pickup-status-preparing`},N={key:0,class:`pickup-status-info`},P={class:`pickup-status-info-row`},F={key:0,class:`pickup-status-stats`},ye={key:1,class:`pickup-status-wait`},be=[`src`],xe={class:`pickup-status-section pickup-status-ready`},Se={key:0,class:`pickup-status-info`},Ce={class:`pickup-status-orders`},we=[`src`],Te={key:0,class:`pickup-footer`},I=m({__name:`PickupMode`,props:{screen:{},restaurant:{},snapshot:{},config:{}},setup(m){let h=m,T=a(()=>{var e;return E((e=h.config)==null?void 0:e.pickup)}),O=a(()=>{var e;return D((e=h.config)==null?void 0:e.layout)}),k=a(()=>C(h.restaurant,h.config)),A=a(()=>b(h.snapshot,k.value)),j=a(()=>{var e,t,n,r;return!!(((e=(t=h.snapshot)==null||(t=t.preparing)==null?void 0:t.length)==null?0:e)+((n=(r=h.snapshot)==null||(r=r.ready)==null?void 0:r.length)==null?0:n))}),I=a(()=>S(h.snapshot)),L=n(),R=n(),z=n(7),B=n(6),V=n(5),H=n(5),U=n(0),W,G;function Ee(){W!==void 0&&window.clearInterval(W),U.value=0,W=window.setInterval(()=>{U.value+=1},Math.max(2e3,T.value.statusSlidingPeriod))}o(()=>{var e;return[T.value.statusSlidingPeriod,A.value.length,(e=h.snapshot)==null||(e=e.preparing)==null?void 0:e.length]},Ee,{immediate:!0}),l(()=>{W!==void 0&&window.clearInterval(W),G==null||G.disconnect(),window.removeEventListener(`resize`,K)});function K(){var e,t,n,r,i;let a=Number.parseFloat(getComputedStyle(document.documentElement).fontSize)||16,o=(e=L.value)==null?void 0:e.getBoundingClientRect();if(o!=null&&o.width&&o.height){z.value=Math.max(1,Math.floor((o.height-8.5*a)/(4.25*a)));let e=15.1875*a,t=2*a,n=e,r=o.width-n,i=1;for(;r>=n+t;)r-=n+t,i+=1;let s=r-t;i+=s>0?Math.floor(s/e):0,B.value=Math.max(1,i)}let s=(t=(n=R.value)==null?void 0:n.getBoundingClientRect().height)==null?0:t;if(s>0){let e=T.value.statusLayout===`vertical`?4.5:5.25;V.value=Math.max(1,Math.floor(s/(e*a)))}let c=(r=(i=R.value)==null?void 0:i.getBoundingClientRect().width)==null?0:r;c>0&&(H.value=Math.max(1,Math.floor(c/(13*a))))}i(async()=>{await u(),K(),G=new ResizeObserver(K),L.value&&G.observe(L.value),R.value&&G.observe(R.value),window.addEventListener(`resize`,K,{passive:!0})}),o(()=>T.value.groupBy,async()=>{await u(),G==null||G.disconnect(),L.value&&(G==null||G.observe(L.value)),R.value&&(G==null||G.observe(R.value)),K()});let q=a(()=>w(A.value,B.value,z.value)),J=a(()=>{var e;return(e=q.value[U.value%q.value.length])==null?q.value[0]:e});function Y(){return X.value*V.value}function De(e){let t=Y();if(e.length<=t)return e;let n=U.value%Math.ceil(e.length/t)*t;return e.slice(n,n+t)}function Oe(e){return e.slice(0,Y())}let X=a(()=>Math.max(1,Math.min(5,H.value,T.value.statusColumnCount)));function Z(e){return Array.from({length:z.value},(t,n)=>e[n])}function Q(e,t){let n=t?Oe(e):De(e),r=Array.from({length:X.value*V.value},(e,t)=>n[t]);return Array.from({length:X.value},(e,t)=>{let n=t*V.value;return r.slice(n,n+V.value)})}let ke=a(()=>{var e,t;let n=(e=O.value.boardAlign)==null?`left`:e,r=[`center`,`CENTER`].includes(n);return{width:`${Math.min(100,Math.max(20,(t=O.value.boardWidthPercent)==null?100:t))}%`,marginLeft:r||[`right`,`END`].includes(n)?`auto`:void 0,marginRight:r?`auto`:void 0}}),Ae=a(()=>{var e,t;let n=O.value.background;return n?{backgroundImage:`url(${n.url})`,backgroundSize:(e=n.size)==null?`cover`:e,backgroundPosition:(t=n.position)==null?`center`:t}:{background:k.value.neutralLight}}),je=a(()=>({"--pickup-primary":k.value.primary,"--pickup-accent":k.value.accent,"--pickup-on-primary":k.value.onPrimary,"--pickup-text":k.value.textPrimary,"--pickup-text-secondary":k.value.textSecondary,"--pickup-neutral-light":k.value.neutralLight,"--pickup-neutral-mid":k.value.neutralMid,"--pickup-elevated":k.value.elevated}));function $(e){return x(e,k.value)}return(n,i)=>{var a,o,l,u,h,b,x,S,C,w,E,D,A,B,V,H,W;return g(),f(`section`,{class:`pickup-screen`,style:r(je.value)},[p(`div`,{class:`pickup-background`,style:r(Ae.value)},null,4),p(`div`,re,[T.value.currentOrder.enabled&&!O.value.sidePanel&&j.value?(g(),f(`div`,M,[ee(ne,{class:`pickup-current-hand`}),p(`div`,ie,[p(`p`,null,t(I.value?`ORDER READY · Please collect`:`PREPARING · Please wait`),1),p(`strong`,null,t(I.value?e(y)(I.value):`Preparing`),1)])])):s(``,!0),p(`div`,{class:_([`pickup-main`,{"pickup-main-reversed":((a=O.value.sidePanel)==null?void 0:a.position)===`right`}])},[O.value.sidePanel?(g(),f(`aside`,{key:0,class:`pickup-side-panel`,style:r({width:`${(o=O.value.sidePanel.widthPercent)==null?30:o}%`})},[p(`img`,{src:O.value.sidePanel.url,alt:``,style:r({objectFit:(l=O.value.sidePanel.objectFit)==null?`cover`:l})},null,12,ae),T.value.currentOrder.enabled&&j.value?(g(),f(`div`,oe,[p(`p`,null,t(I.value?`ORDER READY · Please collect`:`PREPARING · Please wait`),1),p(`strong`,null,t(I.value?e(y)(I.value):`Preparing`),1)])):s(``,!0)],4)):s(``,!0),p(`div`,se,[p(`div`,{class:`pickup-board`,style:r(ke.value)},[T.value.groupBy===`type`?(g(),f(`div`,{key:0,ref_key:`typeBoardRef`,ref:L,class:`pickup-type-board`},[(u=J.value)!=null&&u.categories.length?(g(),f(`div`,ce,[(g(!0),f(d,null,v(J.value.categories,n=>{var a,o;return g(),f(`article`,{key:`${n.key}-${(a=(o=n.preparing[0])==null?void 0:o.id)==null?`empty`:a}`,class:`pickup-category`,style:r({width:`${(n.preparingColumns.length+1)*15.1875}rem`})},[p(`div`,{class:`pickup-category-title`,style:r({background:n.marketplace?n.color:k.value.accent})},[n.icon?(g(),f(`span`,le,[p(`img`,{src:n.icon,alt:``},null,8,ue)])):s(``,!0),n.wideIcon?(g(),f(`img`,{key:1,src:n.wideIcon,alt:n.name,class:`pickup-wide-logo`},null,8,de)):(g(),f(`strong`,fe,t(n.name),1))],4),p(`div`,pe,[n.preparingColumns.length?(g(),f(`section`,{key:0,class:`pickup-column pickup-column-preparing`,style:r({width:`${n.preparingColumns.length*15.1875}rem`})},[i[0]||(i[0]=p(`div`,{class:`pickup-column-title`},[p(`img`,{src:`images/order_preparing.svg`,alt:``}),p(`strong`,null,`PREPARING`)],-1)),p(`div`,me,[(g(!0),f(d,null,v(n.preparingColumns,(n,i)=>(g(),f(`div`,{key:i,class:`pickup-order-list`,style:r({background:k.value.elevated,gridTemplateRows:`repeat(${z.value}, minmax(0, 1fr))`})},[(g(!0),f(d,null,v(Z(n),(n,r)=>{var i;return g(),f(`div`,{key:(i=n==null?void 0:n.id)==null?`empty-${r}`:i,class:`pickup-order-row`},t(n?e(y)(n):``),1)}),128))],4))),128))])],4)):s(``,!0),p(`section`,he,[p(`div`,{class:`pickup-column-title`,style:r({background:n.marketplace?n.color:k.value.primary})},[...i[1]||(i[1]=[p(`span`,{class:`pickup-check`,"aria-hidden":`true`},`✓`,-1),p(`strong`,null,`READY`,-1)])],4),p(`div`,{class:`pickup-order-list`,style:r({background:e(te)(n.marketplace?n.color:k.value.primary,.82),gridTemplateRows:`repeat(${z.value}, minmax(0, 1fr))`})},[(g(!0),f(d,null,v(Z(n.readyColumn),(n,r)=>{var i;return g(),f(`div`,{key:(i=n==null?void 0:n.id)==null?`empty-${r}`:i,class:`pickup-order-row`},t(n?e(y)(n):``),1)}),128))],4)])])],4)}),128))])):(g(),f(`div`,ge,`Waiting for orders…`)),T.value.showProgressBar&&q.value.length>1?(g(),f(`div`,_e,[p(`span`,{style:r({width:`${(U.value%q.value.length+1)/q.value.length*100}%`})},null,4)])):s(``,!0)],512)):(g(),f(`div`,{key:1,class:_([`pickup-status-board`,{"pickup-status-vertical":T.value.statusLayout===`vertical`}])},[p(`section`,ve,[i[10]||(i[10]=p(`div`,{class:`pickup-status-title`},[p(`div`,{class:`pickup-status-heading`},[p(`img`,{src:`images/order_preparing.svg`,alt:``}),p(`strong`,null,`Preparing`)])],-1)),T.value.showOrderCount||T.value.showEstimatedTime?(g(),f(`div`,N,[i[9]||(i[9]=p(`div`,{class:`pickup-status-divider`},null,-1)),p(`div`,P,[T.value.showOrderCount?(g(),f(`div`,F,[p(`b`,null,t((h=(b=(x=m.snapshot)==null||(x=x.stats)==null?void 0:x.orders)==null?(S=m.snapshot)==null||(S=S.preparing)==null?void 0:S.length:b)==null?0:h),1),i[2]||(i[2]=c(` orders `,-1)),i[3]||(i[3]=p(`i`,null,null,-1)),i[4]||(i[4]=c()),p(`b`,null,t((C=(w=m.snapshot)==null||(w=w.stats)==null?void 0:w.drinks)==null?0:C),1),i[5]||(i[5]=c(` cups `,-1)),i[6]||(i[6]=p(`i`,null,null,-1)),i[7]||(i[7]=c()),p(`b`,null,t((E=(D=m.snapshot)==null||(D=D.stats)==null?void 0:D.food)==null?0:E),1),i[8]||(i[8]=c(` foods `,-1))])):s(``,!0),T.value.showEstimatedTime?(g(),f(`div`,ye,` ◷ `+t(((A=m.snapshot)==null?void 0:A.waitingTimeMinutes)==null?`— mins`:`~${m.snapshot.waitingTimeMinutes} mins`),1)):s(``,!0)])])):s(``,!0),p(`div`,{ref_key:`preparingStatusBodyRef`,ref:R,class:`pickup-status-orders`},[(g(!0),f(d,null,v(Q((B=(V=m.snapshot)==null?void 0:V.preparing)==null?[]:B,!1),(n,i)=>(g(),f(`div`,{key:i,class:`pickup-status-column`},[(g(!0),f(d,null,v(n,(n,i)=>{var a;return g(),f(`div`,{key:(a=n==null?void 0:n.id)==null?`empty-${i}`:a,class:`pickup-status-order`},[n&&T.value.showDeliveryIcons&&$(n).marketplace?(g(),f(`span`,{key:0,class:`pickup-delivery-icon`,style:r({background:$(n).color})},[$(n).icon?(g(),f(`img`,{key:0,src:$(n).icon,alt:``},null,8,be)):s(``,!0)],4)):s(``,!0),p(`strong`,null,t(n?e(y)(n):``),1)])}),128))]))),128))],512)]),p(`section`,xe,[i[12]||(i[12]=p(`div`,{class:`pickup-status-title`},[p(`div`,{class:`pickup-status-heading`},[p(`span`,{class:`pickup-check`},`✓`),p(`strong`,null,`Ready to Pick Up`)])],-1)),T.value.showOrderCount||T.value.showEstimatedTime?(g(),f(`div`,Se,[...i[11]||(i[11]=[p(`div`,{class:`pickup-status-divider`},null,-1),p(`small`,null,`Please pick up your order at counter`,-1)])])):s(``,!0),p(`div`,Ce,[(g(!0),f(d,null,v(Q((H=(W=m.snapshot)==null?void 0:W.ready)==null?[]:H,!0),(n,i)=>(g(),f(`div`,{key:i,class:`pickup-status-column`},[(g(!0),f(d,null,v(n,(n,i)=>{var a;return g(),f(`div`,{key:(a=n==null?void 0:n.id)==null?`empty-${i}`:a,class:`pickup-status-order`},[n&&T.value.showDeliveryIcons&&$(n).marketplace?(g(),f(`span`,{key:0,class:`pickup-delivery-icon`,style:r({background:$(n).color})},[$(n).icon?(g(),f(`img`,{key:0,src:$(n).icon,alt:``},null,8,we)):s(``,!0)],4)):s(``,!0),p(`strong`,null,t(n?e(y)(n):``),1)])}),128))]))),128))])])],2))],4)])],2)]),O.value.footerMode===`feedme`?(g(),f(`footer`,Te,[...i[13]||(i[13]=[p(`span`,null,`Powered by`,-1),p(`img`,{src:`images/feedme_logo.svg`,alt:`FeedMe`},null,-1)])])):s(``,!0)],4)}}});export{I as t};
|
|
1
|
+
import{C as e,E as t,S as n,T as r,_ as i,a,b as o,c as s,d as c,f as ee,g as l,h as u,i as d,l as f,o as p,p as m,u as h,v as g,w as _,y as v}from"./index-B1olKQmQ.js";import{a as y,i as te,n as b,o as x,r as S,s as C,t as w}from"./pickupView-CB9fV5jD.js";var T={groupBy:`type`,statusLayout:`horizontal`,statusSlidingPeriod:1e4,statusColumnCount:2,showDeliveryIcons:!0,showOrderTypeTabs:!1,showProgressBar:!1,showOrderCount:!1,showEstimatedTime:!1,currentOrder:{enabled:!1}};function E(e){return{...T,...e,currentOrder:{...T.currentOrder,...e==null?void 0:e.currentOrder}}}function D(e){return{background:null,sidePanel:null,boardWidthPercent:100,boardAlign:`left`,footerMode:`none`,...e}}var O=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},k={},A={viewBox:`0 0 152 153.5`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`};function j(e,t){return g(),f(`svg`,A,[...t[0]||(t[0]=[h(`<g clip-path="url(#co-hand-clip)"><path d="M64.6444 0.811035H64.8319C68.3306 0.811136 71.5399 2.37419 73.9735 4.98291V4.98389C76.4631 7.7726 77.739 11.5321 77.3749 15.3511C77.07 18.4552 76.0354 21.1987 74.1327 24.1431C71.3563 27.694 67.8809 32.2528 65.0507 36.145C63.6337 38.0936 62.3761 39.8788 61.4481 41.2876C60.9845 41.9915 60.6004 42.606 60.3192 43.1021C60.0482 43.5803 59.8476 43.9909 59.786 44.2729C59.3234 46.3184 59.7911 48.4176 61.0907 50.2993C62.8481 52.8969 65.8367 54.4487 69.0751 54.4487C70.4317 54.4487 71.7918 54.1913 73.0262 53.6724L73.0302 53.6704L74.9012 52.8608L74.9003 52.8599L80.3885 50.5571L80.3993 50.5522L126.886 29.3091L126.885 29.3081C129.339 28.2679 131.471 27.7857 133.843 27.7856C135.071 27.7856 135.485 27.7865 135.737 27.8081C135.853 27.818 135.933 27.8316 136.059 27.8569C136.19 27.883 136.364 27.9194 136.652 27.9673L136.662 27.9692L136.673 27.9702C142.554 28.6162 147.289 33.1306 148.184 38.7427L148.259 39.2896C148.592 42.3161 147.895 45.0102 146.228 47.3296C144.556 49.656 141.891 51.6281 138.252 53.1675L108.926 65.5649L107.838 66.0249L108.991 66.2769C114.809 67.5475 118.992 72.6903 118.992 78.7437C118.992 81.7584 117.986 84.0039 116.161 85.9468C114.321 87.9054 111.643 89.561 108.279 91.3647L107.479 91.7349L106.564 92.1558L107.532 92.4351C112.99 94.0092 116.807 98.9728 116.807 104.721C116.807 110.406 112.008 114.544 107.167 117.088L103.557 118.643L102.511 119.093L103.62 119.353C109.315 120.684 113.438 125.827 113.438 131.821C113.438 134.851 112.811 137.05 111.704 138.775C110.598 140.498 108.992 141.782 106.97 142.947L100.377 145.803C89.6911 150.331 78.3214 152.626 66.703 152.626H10.7948V152.679C8.33838 152.592 6.0447 151.656 4.25378 150.035L3.88464 149.684C1.9563 147.697 0.875221 145.113 0.874878 142.35L1.18542 67.4312C2.83413 54.6239 10.6441 43.4888 22.0858 37.436L22.6337 37.1519C33.7384 31.5144 43.396 22.8097 50.5438 11.9175L50.5448 11.9155L53.2909 7.6792L53.3007 7.66357L53.3094 7.64697C55.4899 3.41436 59.8519 0.811035 64.6444 0.811035Z" fill="white" stroke="#1C1C1E" stroke-width="0.75"></path><path d="M52.6945 11.8639L57.1475 5.69966C59.812 2.0112 64.9878 1.12961 68.7328 3.82626C72.4272 6.48646 73.3103 11.654 70.6093 15.393L66.1563 21.5573C65.3168 22.7194 63.7488 22.973 62.5849 22.1348L53.2729 15.4296C52.1089 14.5915 51.855 13.0261 52.6945 11.8639Z" fill="#F0F0F0"></path><path d="M125.141 35.0207L132.079 31.8931C136.231 30.0216 141.158 31.8334 143.058 36.0349C144.932 40.1797 143.118 45.0989 138.909 46.996L131.971 50.1236C130.663 50.7132 129.177 50.1527 128.587 48.8468L123.862 38.3997C123.272 37.0938 123.833 35.6103 125.141 35.0207Z" fill="#F0F0F0"></path><path d="M43.4922 137.926C63.204 137.926 79.1835 121.972 79.1835 102.292C79.1835 82.6116 63.204 66.6577 43.4922 66.6577C23.7804 66.6577 7.8009 82.6116 7.8009 102.292C7.8009 121.972 23.7804 137.926 43.4922 137.926Z" fill="var(--pickup-primary, var(--brand-color-primary, #FF7823))" stroke="#1C1C1E" stroke-width="1.49509" stroke-linecap="round" stroke-linejoin="round"></path><g><path d="M64.0853 103.849C59.8423 108.148 54.1641 110.951 48.174 111.699C42.1838 112.446 36.0065 111.138 30.8275 108.023" stroke="#1C1C1E" stroke-width="1.49509" stroke-linecap="round" stroke-linejoin="round"></path><path d="M33.5091 101.419C33.1347 103.974 31.8243 106.341 29.89 108.085C27.9557 109.83 25.4598 110.889 22.8391 111.013" stroke="#1C1C1E" stroke-width="1.49509" stroke-linecap="round" stroke-linejoin="round"></path><path d="M43.6174 99.8619C45.0992 99.8619 46.3005 98.6626 46.3005 97.1832C46.3005 95.7037 45.0992 94.5044 43.6174 94.5044C42.1356 94.5044 40.9343 95.7037 40.9343 97.1832C40.9343 98.6626 42.1356 99.8619 43.6174 99.8619Z" fill="#1C1C1E"></path><path d="M58.3447 90.4552C59.8265 90.4552 61.0278 89.2559 61.0278 87.7764C61.0278 86.297 59.8265 85.0977 58.3447 85.0977C56.8629 85.0977 55.6616 86.297 55.6616 87.7764C55.6616 89.2559 56.8629 90.4552 58.3447 90.4552Z" fill="#1C1C1E"></path></g><path d="M35.0039 63.543C37.3126 65.5365 38.4981 68.7759 37.9989 71.8285C37.4998 74.881 35.2535 77.5598 32.3832 78.6189" stroke="#1C1C1E" stroke-width="1.49509" stroke-linecap="round" stroke-linejoin="round"></path><path d="M42.4309 58.9951C45.426 61.9854 45.8628 67.156 43.3669 70.5824" stroke="#1C1C1E" stroke-width="1.49509" stroke-linecap="round" stroke-linejoin="round"></path><path d="M48.4828 53.9492C52.4138 56.6903 54.1609 62.2347 52.5386 66.7201" stroke="#1C1C1E" stroke-width="1.49509" stroke-linecap="round" stroke-linejoin="round"></path><path d="M49.4185 86.1567L60.2756 98.4916" stroke="#1C1C1E" stroke-width="1.49509" stroke-linecap="round" stroke-linejoin="round"></path><path d="M109.884 65.5986L91.7261 73.3235" stroke="#1C1C1E" stroke-width="1.49509" stroke-linecap="round" stroke-linejoin="round"></path><path d="M94.1583 97.3082L108.011 91.9507" stroke="#1C1C1E" stroke-width="1.49509" stroke-linecap="round" stroke-linejoin="round"></path><path d="M91.6608 123.597L103.891 118.925" stroke="#1C1C1E" stroke-width="1.49509" stroke-linecap="round" stroke-linejoin="round"></path><path d="M144.886 10.0298L142.827 15.6365" stroke="#1C1C1E" stroke-width="1.49509" stroke-linecap="round" stroke-linejoin="round"></path><path d="M138.21 10.0298L137.711 15.6365" stroke="#1C1C1E" stroke-width="1.49509" stroke-linecap="round" stroke-linejoin="round"></path><path d="M151.503 15.6367L147.947 20.7451" stroke="#1C1C1E" stroke-width="1.49509" stroke-linecap="round" stroke-linejoin="round"></path><path d="M91.7261 73.6972L116.498 70.7692C116.498 70.7692 114.002 66.9691 108.823 66.0347L91.7261 73.6972Z" fill="#1C1C1E"></path><path d="M94.1583 97.744L115.061 97.9932C115.061 97.9932 112.815 93.2586 107.948 92.4487L94.1583 97.744Z" fill="#1C1C1E"></path><path d="M91.6608 124.096L111.628 124.719C111.628 124.719 108.758 120.109 103.391 119.174L91.6608 124.096Z" fill="#1C1C1E"></path></g><defs><clipPath id="co-hand-clip"><rect width="152" height="153.5" fill="white"></rect></clipPath></defs>`,2)])])}var ne=O(k,[[`render`,j]]),re={class:`pickup-content`},M={key:0,class:`pickup-current-wrap`},ie={class:`pickup-current-card`},ae=[`src`],oe={key:0,class:`pickup-side-current`},se={class:`pickup-board-area`},ce={key:0,class:`pickup-category-row`},le={key:0,class:`pickup-category-icon`},ue=[`src`],de=[`src`,`alt`],fe={key:2},pe={class:`pickup-columns`},me={class:`pickup-preparing-columns`},he={class:`pickup-column pickup-column-ready`,style:{width:`15.1875rem`}},ge={key:1,class:`pickup-empty`},_e={key:2,class:`pickup-progress`},ve={class:`pickup-status-section pickup-status-preparing`},N={key:0,class:`pickup-status-info`},P={class:`pickup-status-info-row`},F={key:0,class:`pickup-status-stats`},ye={key:1,class:`pickup-status-wait`},be=[`src`],xe={class:`pickup-status-section pickup-status-ready`},Se={key:0,class:`pickup-status-info`},Ce={class:`pickup-status-orders`},we=[`src`],Te={key:0,class:`pickup-footer`},I=m({__name:`PickupMode`,props:{screen:{},restaurant:{},snapshot:{},config:{}},setup(m){let h=m,T=a(()=>{var e;return E((e=h.config)==null?void 0:e.pickup)}),O=a(()=>{var e;return D((e=h.config)==null?void 0:e.layout)}),k=a(()=>C(h.restaurant,h.config)),A=a(()=>b(h.snapshot,k.value)),j=a(()=>{var e,t,n,r;return!!(((e=(t=h.snapshot)==null||(t=t.preparing)==null?void 0:t.length)==null?0:e)+((n=(r=h.snapshot)==null||(r=r.ready)==null?void 0:r.length)==null?0:n))}),I=a(()=>S(h.snapshot)),L=n(),R=n(),z=n(7),B=n(6),V=n(5),H=n(5),U=n(0),W,G;function Ee(){W!==void 0&&window.clearInterval(W),U.value=0,W=window.setInterval(()=>{U.value+=1},Math.max(2e3,T.value.statusSlidingPeriod))}o(()=>{var e;return[T.value.statusSlidingPeriod,A.value.length,(e=h.snapshot)==null||(e=e.preparing)==null?void 0:e.length]},Ee,{immediate:!0}),l(()=>{W!==void 0&&window.clearInterval(W),G==null||G.disconnect(),window.removeEventListener(`resize`,K)});function K(){var e,t,n,r,i;let a=Number.parseFloat(getComputedStyle(document.documentElement).fontSize)||16,o=(e=L.value)==null?void 0:e.getBoundingClientRect();if(o!=null&&o.width&&o.height){z.value=Math.max(1,Math.floor((o.height-8.5*a)/(4.25*a)));let e=15.1875*a,t=2*a,n=e,r=o.width-n,i=1;for(;r>=n+t;)r-=n+t,i+=1;let s=r-t;i+=s>0?Math.floor(s/e):0,B.value=Math.max(2,i)}let s=(t=(n=R.value)==null?void 0:n.getBoundingClientRect().height)==null?0:t;if(s>0){let e=T.value.statusLayout===`vertical`?4.5:5.25;V.value=Math.max(1,Math.floor(s/(e*a)))}let c=(r=(i=R.value)==null?void 0:i.getBoundingClientRect().width)==null?0:r;c>0&&(H.value=Math.max(1,Math.floor(c/(13*a))))}i(async()=>{await u(),K(),G=new ResizeObserver(K),L.value&&G.observe(L.value),R.value&&G.observe(R.value),window.addEventListener(`resize`,K,{passive:!0})}),o(()=>T.value.groupBy,async()=>{await u(),G==null||G.disconnect(),L.value&&(G==null||G.observe(L.value)),R.value&&(G==null||G.observe(R.value)),K()});let q=a(()=>w(A.value,B.value,z.value)),J=a(()=>{var e;return(e=q.value[U.value%q.value.length])==null?q.value[0]:e});function Y(){return X.value*V.value}function De(e){let t=Y();if(e.length<=t)return e;let n=U.value%Math.ceil(e.length/t)*t;return e.slice(n,n+t)}function Oe(e){return e.slice(0,Y())}let X=a(()=>Math.max(1,Math.min(5,H.value,T.value.statusColumnCount)));function Z(e){return Array.from({length:z.value},(t,n)=>e[n])}function Q(e,t){let n=t?Oe(e):De(e),r=Array.from({length:X.value*V.value},(e,t)=>n[t]);return Array.from({length:X.value},(e,t)=>{let n=t*V.value;return r.slice(n,n+V.value)})}let ke=a(()=>{var e,t;let n=(e=O.value.boardAlign)==null?`left`:e,r=[`center`,`CENTER`].includes(n);return{width:`${Math.min(100,Math.max(20,(t=O.value.boardWidthPercent)==null?100:t))}%`,marginLeft:r||[`right`,`END`].includes(n)?`auto`:void 0,marginRight:r?`auto`:void 0}}),Ae=a(()=>{var e,t;let n=O.value.background;return n?{backgroundImage:`url(${n.url})`,backgroundSize:(e=n.size)==null?`cover`:e,backgroundPosition:(t=n.position)==null?`center`:t}:{background:k.value.neutralLight}}),je=a(()=>({"--pickup-primary":k.value.primary,"--pickup-accent":k.value.accent,"--pickup-on-primary":k.value.onPrimary,"--pickup-text":k.value.textPrimary,"--pickup-text-secondary":k.value.textSecondary,"--pickup-neutral-light":k.value.neutralLight,"--pickup-neutral-mid":k.value.neutralMid,"--pickup-elevated":k.value.elevated}));function $(e){return x(e,k.value)}return(n,i)=>{var a,o,l,u,h,b,x,S,C,w,E,D,A,B,V,H,W;return g(),f(`section`,{class:`pickup-screen`,style:r(je.value)},[p(`div`,{class:`pickup-background`,style:r(Ae.value)},null,4),p(`div`,re,[T.value.currentOrder.enabled&&!O.value.sidePanel&&j.value?(g(),f(`div`,M,[ee(ne,{class:`pickup-current-hand`}),p(`div`,ie,[p(`p`,null,t(I.value?`ORDER READY · Please collect`:`PREPARING · Please wait`),1),p(`strong`,null,t(I.value?e(y)(I.value):`Preparing`),1)])])):s(``,!0),p(`div`,{class:_([`pickup-main`,{"pickup-main-reversed":((a=O.value.sidePanel)==null?void 0:a.position)===`right`}])},[O.value.sidePanel?(g(),f(`aside`,{key:0,class:`pickup-side-panel`,style:r({width:`${(o=O.value.sidePanel.widthPercent)==null?30:o}%`})},[p(`img`,{src:O.value.sidePanel.url,alt:``,style:r({objectFit:(l=O.value.sidePanel.objectFit)==null?`cover`:l})},null,12,ae),T.value.currentOrder.enabled&&j.value?(g(),f(`div`,oe,[p(`p`,null,t(I.value?`ORDER READY · Please collect`:`PREPARING · Please wait`),1),p(`strong`,null,t(I.value?e(y)(I.value):`Preparing`),1)])):s(``,!0)],4)):s(``,!0),p(`div`,se,[p(`div`,{class:`pickup-board`,style:r(ke.value)},[T.value.groupBy===`type`?(g(),f(`div`,{key:0,ref_key:`typeBoardRef`,ref:L,class:`pickup-type-board`},[(u=J.value)!=null&&u.categories.length?(g(),f(`div`,ce,[(g(!0),f(d,null,v(J.value.categories,n=>{var a,o;return g(),f(`article`,{key:`${n.key}-${(a=(o=n.preparing[0])==null?void 0:o.id)==null?`empty`:a}`,class:`pickup-category`,style:r({width:`${(n.preparingColumns.length+1)*15.1875}rem`})},[p(`div`,{class:`pickup-category-title`,style:r({background:n.marketplace?n.color:k.value.accent})},[n.icon?(g(),f(`span`,le,[p(`img`,{src:n.icon,alt:``},null,8,ue)])):s(``,!0),n.wideIcon?(g(),f(`img`,{key:1,src:n.wideIcon,alt:n.name,class:`pickup-wide-logo`},null,8,de)):(g(),f(`strong`,fe,t(n.name),1))],4),p(`div`,pe,[p(`section`,{class:`pickup-column pickup-column-preparing`,style:r({width:`${n.preparingColumns.length*15.1875}rem`})},[i[0]||(i[0]=p(`div`,{class:`pickup-column-title`},[p(`img`,{src:`images/order_preparing.svg`,alt:``}),p(`strong`,null,`PREPARING`)],-1)),p(`div`,me,[(g(!0),f(d,null,v(n.preparingColumns,(n,i)=>(g(),f(`div`,{key:i,class:`pickup-order-list`,style:r({background:k.value.elevated,gridTemplateRows:`repeat(${z.value}, minmax(0, 1fr))`})},[(g(!0),f(d,null,v(Z(n),(n,r)=>{var i;return g(),f(`div`,{key:(i=n==null?void 0:n.id)==null?`empty-${r}`:i,class:`pickup-order-row`},t(n?e(y)(n):``),1)}),128))],4))),128))])],4),p(`section`,he,[p(`div`,{class:`pickup-column-title`,style:r({background:n.marketplace?n.color:k.value.primary})},[...i[1]||(i[1]=[p(`span`,{class:`pickup-check`,"aria-hidden":`true`},`✓`,-1),p(`strong`,null,`READY`,-1)])],4),p(`div`,{class:`pickup-order-list`,style:r({background:e(te)(n.marketplace?n.color:k.value.primary,.82),gridTemplateRows:`repeat(${z.value}, minmax(0, 1fr))`})},[(g(!0),f(d,null,v(Z(n.readyColumn),(n,r)=>{var i;return g(),f(`div`,{key:(i=n==null?void 0:n.id)==null?`empty-${r}`:i,class:`pickup-order-row`},t(n?e(y)(n):``),1)}),128))],4)])])],4)}),128))])):(g(),f(`div`,ge,`Waiting for orders…`)),T.value.showProgressBar&&q.value.length>1?(g(),f(`div`,_e,[p(`span`,{style:r({width:`${(U.value%q.value.length+1)/q.value.length*100}%`})},null,4)])):s(``,!0)],512)):(g(),f(`div`,{key:1,class:_([`pickup-status-board`,{"pickup-status-vertical":T.value.statusLayout===`vertical`}])},[p(`section`,ve,[i[10]||(i[10]=p(`div`,{class:`pickup-status-title`},[p(`div`,{class:`pickup-status-heading`},[p(`img`,{src:`images/order_preparing.svg`,alt:``}),p(`strong`,null,`Preparing`)])],-1)),T.value.showOrderCount||T.value.showEstimatedTime?(g(),f(`div`,N,[i[9]||(i[9]=p(`div`,{class:`pickup-status-divider`},null,-1)),p(`div`,P,[T.value.showOrderCount?(g(),f(`div`,F,[p(`b`,null,t((h=(b=(x=m.snapshot)==null||(x=x.stats)==null?void 0:x.orders)==null?(S=m.snapshot)==null||(S=S.preparing)==null?void 0:S.length:b)==null?0:h),1),i[2]||(i[2]=c(` orders `,-1)),i[3]||(i[3]=p(`i`,null,null,-1)),i[4]||(i[4]=c()),p(`b`,null,t((C=(w=m.snapshot)==null||(w=w.stats)==null?void 0:w.drinks)==null?0:C),1),i[5]||(i[5]=c(` cups `,-1)),i[6]||(i[6]=p(`i`,null,null,-1)),i[7]||(i[7]=c()),p(`b`,null,t((E=(D=m.snapshot)==null||(D=D.stats)==null?void 0:D.food)==null?0:E),1),i[8]||(i[8]=c(` foods `,-1))])):s(``,!0),T.value.showEstimatedTime?(g(),f(`div`,ye,` ◷ `+t(((A=m.snapshot)==null?void 0:A.waitingTimeMinutes)==null?`— mins`:`~${m.snapshot.waitingTimeMinutes} mins`),1)):s(``,!0)])])):s(``,!0),p(`div`,{ref_key:`preparingStatusBodyRef`,ref:R,class:`pickup-status-orders`},[(g(!0),f(d,null,v(Q((B=(V=m.snapshot)==null?void 0:V.preparing)==null?[]:B,!1),(n,i)=>(g(),f(`div`,{key:i,class:`pickup-status-column`},[(g(!0),f(d,null,v(n,(n,i)=>{var a;return g(),f(`div`,{key:(a=n==null?void 0:n.id)==null?`empty-${i}`:a,class:`pickup-status-order`},[n&&T.value.showDeliveryIcons&&$(n).marketplace?(g(),f(`span`,{key:0,class:`pickup-delivery-icon`,style:r({background:$(n).color})},[$(n).icon?(g(),f(`img`,{key:0,src:$(n).icon,alt:``},null,8,be)):s(``,!0)],4)):s(``,!0),p(`strong`,null,t(n?e(y)(n):``),1)])}),128))]))),128))],512)]),p(`section`,xe,[i[12]||(i[12]=p(`div`,{class:`pickup-status-title`},[p(`div`,{class:`pickup-status-heading`},[p(`span`,{class:`pickup-check`},`✓`),p(`strong`,null,`Ready to Pick Up`)])],-1)),T.value.showOrderCount||T.value.showEstimatedTime?(g(),f(`div`,Se,[...i[11]||(i[11]=[p(`div`,{class:`pickup-status-divider`},null,-1),p(`small`,null,`Please pick up your order at counter`,-1)])])):s(``,!0),p(`div`,Ce,[(g(!0),f(d,null,v(Q((H=(W=m.snapshot)==null?void 0:W.ready)==null?[]:H,!0),(n,i)=>(g(),f(`div`,{key:i,class:`pickup-status-column`},[(g(!0),f(d,null,v(n,(n,i)=>{var a;return g(),f(`div`,{key:(a=n==null?void 0:n.id)==null?`empty-${i}`:a,class:`pickup-status-order`},[n&&T.value.showDeliveryIcons&&$(n).marketplace?(g(),f(`span`,{key:0,class:`pickup-delivery-icon`,style:r({background:$(n).color})},[$(n).icon?(g(),f(`img`,{key:0,src:$(n).icon,alt:``},null,8,we)):s(``,!0)],4)):s(``,!0),p(`strong`,null,t(n?e(y)(n):``),1)])}),128))]))),128))])])],2))],4)])],2)]),O.value.footerMode===`feedme`?(g(),f(`footer`,Te,[...i[13]||(i[13]=[p(`span`,null,`Powered by`,-1),p(`img`,{src:`images/feedme_logo.svg`,alt:`FeedMe`},null,-1)])])):s(``,!0)],4)}}});export{I as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,a as t,m as n,p as r,s as i,t as a,v as o}from"./index-
|
|
1
|
+
import{C as e,a as t,m as n,p as r,s as i,t as a,v as o}from"./index-B1olKQmQ.js";import{t as s}from"./PickupMode-BY4iL0BH.js";var c=r({__name:`StatusBoard`,props:{blockId:{},blockProps:{},announcementOwner:{type:Boolean}},setup(r){let c=r,l=n(a),u=t(()=>{var e;return{theme:l==null||(e=l.document)==null?void 0:e.theme,layout:{footerMode:`none`,boardWidthPercent:100},pickup:{groupBy:`status`,statusLayout:c.blockProps.layout===`VERTICAL`?`vertical`:`horizontal`,statusColumnCount:d(`columns`,2),statusSlidingPeriod:d(`rotateMs`,1e4),showDeliveryIcons:f(`showDeliveryIcons`,!0),currentOrder:{enabled:f(`showCurrentOrder`,!0)},showOrderCount:f(`showOrderCount`,!1),showEstimatedTime:f(`showEstimatedTime`,!1)}}});function d(e,t){return typeof c.blockProps[e]==`number`?c.blockProps[e]:t}function f(e,t){return typeof c.blockProps[e]==`boolean`?c.blockProps[e]:t}return(t,n)=>{var r,a,c;return o(),i(s,{screen:(r=e(l))==null?void 0:r.screen,restaurant:(a=e(l))==null?void 0:a.restaurant,snapshot:(c=e(l))==null?void 0:c.pickup,config:u.value},null,8,[`screen`,`restaurant`,`snapshot`,`config`])}}});export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{E as t,T as n,a as r,l as i,p as a,v as o,w as s}from"./index-
|
|
1
|
+
import{t as e}from"./rolldown-runtime-DK3Fl9T5.js";import{E as t,T as n,a as r,l as i,p as a,v as o,w as s}from"./index-B1olKQmQ.js";var c=a({__name:`TextBlock`,props:{blockId:{},blockProps:{},announcementOwner:{type:Boolean}},setup(e){let a=e,c=r(()=>typeof a.blockProps.text==`string`?a.blockProps.text:``),l=r(()=>[`SM`,`MD`,`LG`].includes(String(a.blockProps.size))?String(a.blockProps.size).toLowerCase():`md`),u=r(()=>{var e;return(e={START:`start`,END:`end`,CENTER:`center`}[String(a.blockProps.align)])==null?`center`:e}),d=r(()=>({textAlign:u.value}));return(e,r)=>(o(),i(`div`,{class:s([`display-info-text`,`display-info-text-${l.value}`]),style:n(d.value)},t(c.value),7))}}),l=e({default:()=>u}),u=c;export{l as n,u as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as e,S as t,T as n,a as r,b as i,l as a,o,p as s,v as c}from"./index-
|
|
1
|
+
import{E as e,S as t,T as n,a as r,b as i,l as a,o,p as s,v as c}from"./index-B1olKQmQ.js";var l={key:0,class:`display-media-empty`,"data-placeholder":`media-missing`},u={class:`display-media-empty-content`},d=[`src`,`poster`],f=s({__name:`VideoBlock`,props:{blockId:{},blockProps:{},announcementOwner:{type:Boolean}},setup(s){let f=s,p=r(()=>typeof f.blockProps.url==`string`?f.blockProps.url.trim():``),m=r(()=>typeof f.blockProps.posterUrl==`string`&&f.blockProps.posterUrl.trim()?f.blockProps.posterUrl.trim():void 0),h=r(()=>f.blockProps.objectFit===`CONTAIN`?`contain`:`cover`),g=t(!1);i(p,()=>{g.value=!1});function _(){g.value=!0}return(t,r)=>!p.value||g.value?(c(),a(`div`,l,[o(`div`,u,[r[0]||(r[0]=o(`svg`,{viewBox:`0 0 24 24`,"aria-hidden":`true`},[o(`path`,{d:`M4 6h11v12H4z`}),o(`path`,{d:`m15 11 5-3v8l-5-3z`})],-1)),o(`span`,null,e(p.value?`Video unavailable`:`No video selected`),1)])])):(c(),a(`video`,{key:1,class:`display-media-video`,src:p.value,poster:m.value,style:n({objectFit:h.value}),autoplay:``,muted:``,loop:``,playsinline:``,disablepictureinpicture:``,onError:_,onStalled:_},null,44,d))}});export{f as default};
|