@feedmepos/mf-menu 0.31.16-beta.1 → 0.31.17-beta.1
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/{App-Bsppf5CN.js → App-BUjwToat.js} +5 -5
- package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DTuPAGEJ.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CBPOCkmg.js} +2 -2
- package/dist/{Catalog-Bj3MNcLG.js → Catalog-BkfsckOV.js} +18 -18
- package/dist/{Category-CHvG2e6b.js → Category-C7EPAK0G.js} +36 -36
- package/dist/{Category-WLIH1Zyc.js → Category-DTKlxBpE.js} +24 -24
- package/dist/{CookingGuide-C8N45xnL.js → CookingGuide-DCazfCuz.js} +56 -56
- package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-GriZxAIw.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-2hApsFMq.js} +1 -1
- package/dist/{Group-CR3LWKXE.js → Group-DLjkPLk9.js} +1 -1
- package/dist/{Group-Byj3qEBv.js → Group-DNBFvwk-.js} +3 -3
- package/dist/{Group.vue_vue_type_script_setup_true_lang-tecpeqJT.js → Group.vue_vue_type_script_setup_true_lang-8Upt5al2.js} +54 -54
- package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BkLHDcZV.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BIWySrgb.js} +6 -6
- package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-YOzhk0a0.js +96257 -0
- package/dist/{Ingredient-BCfCDCFS.js → Ingredient-BUIIhzYV.js} +52 -52
- package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CpXnjduY.js → InventoryBinding.vue_vue_type_script_setup_true_lang-nqY-pxrW.js} +1052 -1052
- package/dist/{LinkProductSideSheet-BGlLnnm9.js → LinkProductSideSheet-xIuPAwp7.js} +14 -14
- package/dist/{MenuSetting-CdKhTxyc.js → MenuSetting-C3J66nHM.js} +11 -11
- package/dist/{PrintRoute-B-UlUlSD.js → PrintRoute-DnZrJ9IW.js} +26 -26
- package/dist/{Product-BggNPOwm.js → Product-jBcyCvO7.js} +1 -1
- package/dist/{Product.vue_vue_type_script_setup_true_lang-DPOaafZ-.js → Product.vue_vue_type_script_setup_true_lang-CsaY9Kve.js} +113 -113
- package/dist/ProductInternalTools-CUZSrxvR.js +415 -0
- package/dist/Products-CRFXG-Du.js +270 -0
- package/dist/{Publish-BTPdN1Ub.js → Publish-Ch5QlJ9v.js} +37 -37
- package/dist/{Recipe-CibJRxHH.js → Recipe-BZJUndG3.js} +25 -25
- package/dist/{Scheduler-DAShXnol.js → Scheduler-BgMTPzhG.js} +13 -13
- package/dist/{ServingSequence-DFs7VR5V.js → ServingSequence-BISPWfTD.js} +36 -36
- package/dist/{Setting-aApApOKZ.js → Setting-4L-p0np0.js} +24 -24
- package/dist/{Subcategory-CGnGq5Kd.js → Subcategory-CptCl4cb.js} +39 -39
- package/dist/{Takeaway-rJDqoozq.js → Takeaway-BAM3XfIf.js} +1 -1
- package/dist/{Takeaway-C8M-Z4eK.js → Takeaway-DqiGDTfg.js} +12 -12
- package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CrFeCwvr.js → Takeaway.vue_vue_type_script_setup_true_lang-oZo0esEd.js} +25 -25
- package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CCVSPoDB.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-C7QOuqzZ.js} +115 -115
- package/dist/{Unit-CcWjE73k.js → Unit-BYAvg037.js} +8 -8
- package/dist/{Variant-BDPjFaAa.js → Variant-uGUG4vH2.js} +18 -18
- package/dist/{_id_-mUBoDBKS.js → _id_-Uf140OcM.js} +19 -19
- package/dist/{app-BBoQR7rs.js → app-50bXo6rU.js} +262 -247
- package/dist/{app-sdhJyRKX.js → app-CUuWtEOn.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/apps/mf-menu/src/app.d.ts +12 -0
- package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +1618 -0
- package/dist/apps/mf-menu/src/components/productInternalTools/ImageUpdatePreview.vue.d.ts +33 -0
- package/dist/apps/mf-menu/src/components/productInternalTools/ImageUploadDialog.vue.d.ts +28 -0
- package/dist/apps/mf-menu/src/helper/import-export.d.ts +15 -19
- package/dist/apps/mf-menu/src/utils/batchProcessor.d.ts +33 -0
- package/dist/apps/mf-menu/src/utils/images.d.ts +44 -0
- package/dist/apps/mf-menu/src/views/Product/ProductInternalTools.vue.d.ts +2 -0
- package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
- package/dist/assets/{linked-status-BkX3Y-ws.js → linked-status-Dsak7omL.js} +2 -2
- package/dist/assets/{override-menu-Bo0ZNZ-U.js → override-menu-COqLF5sS.js} +2 -2
- package/dist/assets/{validate-menu-CIWz9YXT.js → validate-menu-DkLBw23v.js} +2 -2
- package/dist/{catalog-BbukcamZ.js → catalog-x_NpHc5w.js} +1 -1
- package/dist/{catalogSetting-7ZMZjqGs.js → catalogSetting-DU_dUoSh.js} +1 -1
- package/dist/{category-Cq2MmCBq.js → category-DJRGfRhf.js} +1 -1
- package/dist/{currency-OQd6moI9.js → currency-ljvNxerM.js} +1 -1
- package/dist/{dayjs.min-m51FMJgI.js → dayjs.min-DsjutQjn.js} +1 -1
- package/dist/{index-b9FcXU4s.js → index-Bb7-YO3o.js} +23 -23
- package/dist/{index-DlTid7hh.js → index-C58VTE70.js} +14 -14
- package/dist/{index-B5uSVMTf.js → index-CBnsZeF8.js} +1 -1
- package/dist/{item-96CGb3Kx.js → item-Cerfyitf.js} +1521 -1485
- package/dist/jszip.min-Co4cqzOU.js +2393 -0
- package/dist/{menu-Bqiz6B2P.js → menu-B7KFi80A.js} +154 -154
- package/dist/{menu-BmBsIlGC.js → menu-Bpul41jT.js} +1 -1
- package/dist/mf-menu.css +1 -1
- package/dist/{priceTier-Ck8MqQWD.js → priceTier-CfW69h1F.js} +1 -1
- package/dist/{scheduler-DeOCwKnf.js → scheduler-DsO3qpTw.js} +3 -3
- package/dist/{subcategory-DbiQCCF5.js → subcategory-Cb_rqtHz.js} +84 -84
- package/dist/{toExcel-BsguLQA5.js → toExcel-P9X-WSN5.js} +15 -15
- package/dist/{unit-CnM6N-39.js → unit-Dej_sihQ.js} +24 -24
- package/package.json +3 -2
- package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-BRlU0arf.js +0 -73010
- package/dist/Products-DZFgAKxB.js +0 -2660
package/dist/mf-menu.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.chatbox[data-v-97b727dd]{padding:10px;display:flex;flex-direction:column;height:100%;width:100%;overflow-y:scroll;gap:4px}.chatbox .user-message[data-v-97b727dd]{align-self:end;max-width:90%;display:flex;flex-direction:column;gap:4px}.chatbox .remy-message[data-v-97b727dd]{align-self:start;max-width:90%;display:flex;flex-direction:column;gap:4px}.chatbox .user-name[data-v-97b727dd]{padding:4px 8px;font-size:12px;font-weight:700}.chatbox .selection-container[data-v-97b727dd]{display:flex;flex-direction:row;flex-wrap:wrap;gap:4px}.chatbox .selection-container .selection[data-v-97b727dd]{cursor:pointer}.chatbox .message-bubble[data-v-97b727dd]{background:#f0f0f0;padding:4px 8px;border-radius:6px;line-height:20px;font-size:14px}.chatbox .select-label[data-v-97b727dd]{font-weight:700;font-size:12px;padding:4px 8px;align-self:center}.chatbox .message[data-v-97b727dd]{white-space:pre-wrap}.chatbox .spinner[data-v-97b727dd]{text-align:left}.chatbox .spinner>div[data-v-97b727dd]{width:4px;height:4px;margin:0 2px;background-color:#434343;border-radius:100%;display:inline-block;animation:sk-bouncedelay-97b727dd 1.4s infinite ease-in-out both}.chatbox .spinner .bounce1[data-v-97b727dd]{animation-delay:-.32s}.chatbox .spinner .bounce2[data-v-97b727dd]{animation-delay:-.16s}@keyframes sk-bouncedelay-97b727dd{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.expand-enter-from[data-v-45139c60]{opacity:0;max-height:0}.expand-enter-to[data-v-45139c60],.expand-leave-from[data-v-45139c60]{opacity:1;max-height:1000px}.expand-leave-to[data-v-45139c60]{opacity:0;max-height:0}.expand-enter-active[data-v-45139c60],.expand-leave-active[data-v-45139c60]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fade-enter-from[data-v-5b5c7179]{opacity:0}.fade-enter-to[data-v-5b5c7179],.fade-leave-from[data-v-5b5c7179]{opacity:1}.fade-leave-to[data-v-5b5c7179]{opacity:0}.fade-enter-active[data-v-5b5c7179],.fade-leave-active[data-v-5b5c7179]{transition:opacity .5s ease}.expand-enter-from[data-v-e920f110]{opacity:0;max-height:0}.expand-enter-to[data-v-e920f110],.expand-leave-from[data-v-e920f110]{opacity:1;max-height:1000px}.expand-leave-to[data-v-e920f110]{opacity:0;max-height:0}.expand-enter-active[data-v-e920f110],.expand-leave-active[data-v-e920f110]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.vue-advanced-cropper{text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;max-height:100%;max-width:100%;direction:ltr}.vue-advanced-cropper__stretcher{pointer-events:none;position:relative;max-width:100%;max-height:100%}.vue-advanced-cropper__image{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:absolute;transform-origin:center;max-width:none!important}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{opacity:1;background:#000;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{opacity:1;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.vue-advanced-cropper__cropper-wrapper{width:100%;height:100%}.vue-advanced-cropper__image-wrapper{overflow:hidden;position:absolute;width:100%;height:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-simple-handler{display:block;background:#fff;height:10px;width:10px}.vue-handler-wrapper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px}.vue-handler-wrapper__draggable{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-line-wrapper{background:none;position:absolute;display:flex;align-items:center;justify-content:center}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;width:100%;left:0;transform:translateY(-50%)}.vue-line-wrapper--north{top:0;cursor:n-resize}.vue-line-wrapper--south{top:100%;cursor:s-resize}.vue-line-wrapper--east,.vue-line-wrapper--west{width:12px;height:100%;transform:translate(-50%);top:0}.vue-line-wrapper--east{left:100%;cursor:e-resize}.vue-line-wrapper--west{left:0;cursor:w-resize}.vue-line-wrapper--disabled{cursor:auto}.vue-bounding-box{position:relative;height:100%;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-draggable-area{position:relative}.vue-preview-result{overflow:hidden;box-sizing:border-box;position:absolute;height:100%;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{pointer-events:none;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-rectangle-stencil{position:absolute;height:100%;width:100%;box-sizing:border-box}.vue-rectangle-stencil__preview{position:absolute;width:100%;height:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{position:absolute;height:100%;width:100%;box-sizing:content-box;cursor:move}.vue-circle-stencil__preview{border-radius:50%;position:absolute;width:100%;height:100%}.vue-circle-stencil--movable{cursor:move}.vue-preview{overflow:hidden;box-sizing:border-box;position:relative}.vue-preview--fill{width:100%;height:100%;position:absolute}.vue-preview__wrapper{position:absolute;height:100%;width:100%}.vue-preview__image{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-simple-line{background:none;transition:border .5s;border-color:#ffffff4d;border-width:0;border-style:solid}.vue-simple-line--south,.vue-simple-line--north{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{opacity:1;border-color:#fff}.fm-select__menu__wrapper[data-v-ca5e943c],.fm-select__menu__wrapper[data-v-1d940d75]{position:relative;min-width:112px;padding:12px 4px;display:flex;flex-direction:column;overflow-y:auto;border-radius:8px;background-color:var(--fm-color-neutral-white);--tw-shadow: 0px 8px 16px 0px rgba(199, 199, 204, .24);--tw-shadow-colored: 0px 8px 16px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.description[data-v-3e6c0c15] textarea{padding-right:32px}.image-action-overlay[data-v-946af9b7]{visibility:hidden;background-color:#ffffff4d}.container:hover .image-action-overlay[data-v-946af9b7]{visibility:visible}.description[data-v-aeeb7f08] textarea{padding-right:32px}.tree-item-form button:focus{outline:2px solid black}.resize-handle[data-v-570141b0]{cursor:col-resize}.resize-handle[data-v-570141b0]:hover{background-color:var(--fm-color-system-orange-200);filter:opacity(.4)}.resize-grabber[data-v-570141b0]{pointer-events:none}[data-v-f6f1080b] .highlighted-span{background-color:#ff06}.hover-effect:hover:before{content:"";background-color:var(--fm-color-opacity-sm);border-radius:var(--fm-corner-radius-sm);position:absolute;top:0;left:0;height:100%;width:100%}.tree-node .right-area .show-on-hover{display:none}.tree-node:hover .right-area .show-on-hover{display:flex}.drag-handle{cursor:grab;position:absolute;left:0}.tree-node:hover .drag-handle{visibility:visible}.tree-node .drag-handle{visibility:hidden}.drop-indicator-before{position:absolute;left:0;right:0;top:-1px;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-indicator-after{position:absolute;left:0;right:0;bottom:-1px;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-indicator-inside{position:absolute;left:0;right:0;top:0;bottom:0;border:2px solid var(--fm-color-primary);border-radius:var(--fm-corner-radius-sm);background-color:var(--fm-color-opacity-sm);z-index:5}.tree-node{position:relative}.tree-container[data-v-9244f342]{width:100%;max-width:100%;height:100%;position:relative}.tree-node-wrapper[data-v-9244f342]{width:100%;position:relative}.empty-tree-message[data-v-9244f342]{padding:20px;text-align:center;color:#666}.being-dragged[data-v-9244f342]{opacity:.5}.drop-before[data-v-9244f342]:before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-after[data-v-9244f342]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-inside[data-v-9244f342]{background-color:#4299e11a}.drag-overlay[data-v-9244f342]{position:fixed;padding:4px 8px;background-color:#fff;border:1px solid var(--fm-color-neutral-gray-200);box-shadow:0 2px 4px #0000001a;pointer-events:none;z-index:1000;border-radius:4px;max-width:400px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tree-overlay{background-color:#ffffff80}.fade-enter-from[data-v-953cdfe9]{opacity:0}.fade-enter-to[data-v-953cdfe9],.fade-leave-from[data-v-953cdfe9]{opacity:1}.fade-leave-to[data-v-953cdfe9]{opacity:0}.fade-enter-active[data-v-953cdfe9],.fade-leave-active[data-v-953cdfe9]{transition:opacity .5s ease}.expand-enter-active,.expand-leave-active{transition:.3s}.expand-enter-from{opacity:0;max-height:0}.expand-enter-to,.expand-leave-from{opacity:1;max-height:1000px}.expand-leave-to{opacity:0;max-height:0}.app-container{background-color:#fff!important}.remy-dialog[data-v-9adba964]{position:fixed;z-index:9999;top:25%;right:30px;background:#fff;border:1px solid lightgrey;border-radius:4px;height:50%;width:400px;max-width:90%}.remy-dialog .header[data-v-9adba964]{background:#000;padding:0 12px;border-radius:4px 4px 0 0;height:40px}.remy-dialog .header .title[data-v-9adba964]{color:#fff}.remy-dialog .chatbox-container[data-v-9adba964]{height:calc(100% - 40px)}
|
|
1
|
+
.chatbox[data-v-97b727dd]{padding:10px;display:flex;flex-direction:column;height:100%;width:100%;overflow-y:scroll;gap:4px}.chatbox .user-message[data-v-97b727dd]{align-self:end;max-width:90%;display:flex;flex-direction:column;gap:4px}.chatbox .remy-message[data-v-97b727dd]{align-self:start;max-width:90%;display:flex;flex-direction:column;gap:4px}.chatbox .user-name[data-v-97b727dd]{padding:4px 8px;font-size:12px;font-weight:700}.chatbox .selection-container[data-v-97b727dd]{display:flex;flex-direction:row;flex-wrap:wrap;gap:4px}.chatbox .selection-container .selection[data-v-97b727dd]{cursor:pointer}.chatbox .message-bubble[data-v-97b727dd]{background:#f0f0f0;padding:4px 8px;border-radius:6px;line-height:20px;font-size:14px}.chatbox .select-label[data-v-97b727dd]{font-weight:700;font-size:12px;padding:4px 8px;align-self:center}.chatbox .message[data-v-97b727dd]{white-space:pre-wrap}.chatbox .spinner[data-v-97b727dd]{text-align:left}.chatbox .spinner>div[data-v-97b727dd]{width:4px;height:4px;margin:0 2px;background-color:#434343;border-radius:100%;display:inline-block;animation:sk-bouncedelay-97b727dd 1.4s infinite ease-in-out both}.chatbox .spinner .bounce1[data-v-97b727dd]{animation-delay:-.32s}.chatbox .spinner .bounce2[data-v-97b727dd]{animation-delay:-.16s}@keyframes sk-bouncedelay-97b727dd{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.expand-enter-from[data-v-45139c60]{opacity:0;max-height:0}.expand-enter-to[data-v-45139c60],.expand-leave-from[data-v-45139c60]{opacity:1;max-height:1000px}.expand-leave-to[data-v-45139c60]{opacity:0;max-height:0}.expand-enter-active[data-v-45139c60],.expand-leave-active[data-v-45139c60]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.fade-enter-from[data-v-5b5c7179]{opacity:0}.fade-enter-to[data-v-5b5c7179],.fade-leave-from[data-v-5b5c7179]{opacity:1}.fade-leave-to[data-v-5b5c7179]{opacity:0}.fade-enter-active[data-v-5b5c7179],.fade-leave-active[data-v-5b5c7179]{transition:opacity .5s ease}.expand-enter-from[data-v-e920f110]{opacity:0;max-height:0}.expand-enter-to[data-v-e920f110],.expand-leave-from[data-v-e920f110]{opacity:1;max-height:1000px}.expand-leave-to[data-v-e920f110]{opacity:0;max-height:0}.expand-enter-active[data-v-e920f110],.expand-leave-active[data-v-e920f110]{transition-property:max-height,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.vue-advanced-cropper{text-align:center;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;max-height:100%;max-width:100%;direction:ltr}.vue-advanced-cropper__stretcher{pointer-events:none;position:relative;max-width:100%;max-height:100%}.vue-advanced-cropper__image{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:absolute;transform-origin:center;max-width:none!important}.vue-advanced-cropper__background,.vue-advanced-cropper__foreground{opacity:1;background:#000;transform:translate(-50%,-50%);position:absolute;top:50%;left:50%}.vue-advanced-cropper__foreground{opacity:.5}.vue-advanced-cropper__boundaries{opacity:1;transform:translate(-50%,-50%);position:absolute;left:50%;top:50%}.vue-advanced-cropper__cropper-wrapper{width:100%;height:100%}.vue-advanced-cropper__image-wrapper{overflow:hidden;position:absolute;width:100%;height:100%}.vue-advanced-cropper__stencil-wrapper{position:absolute}.vue-simple-handler{display:block;background:#fff;height:10px;width:10px}.vue-handler-wrapper{position:absolute;transform:translate(-50%,-50%);width:30px;height:30px}.vue-handler-wrapper__draggable{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.vue-handler-wrapper--west-north{cursor:nw-resize}.vue-handler-wrapper--north{cursor:n-resize}.vue-handler-wrapper--east-north{cursor:ne-resize}.vue-handler-wrapper--east{cursor:e-resize}.vue-handler-wrapper--east-south{cursor:se-resize}.vue-handler-wrapper--south{cursor:s-resize}.vue-handler-wrapper--west-south{cursor:sw-resize}.vue-handler-wrapper--west{cursor:w-resize}.vue-handler-wrapper--disabled{cursor:auto}.vue-line-wrapper{background:none;position:absolute;display:flex;align-items:center;justify-content:center}.vue-line-wrapper--north,.vue-line-wrapper--south{height:12px;width:100%;left:0;transform:translateY(-50%)}.vue-line-wrapper--north{top:0;cursor:n-resize}.vue-line-wrapper--south{top:100%;cursor:s-resize}.vue-line-wrapper--east,.vue-line-wrapper--west{width:12px;height:100%;transform:translate(-50%);top:0}.vue-line-wrapper--east{left:100%;cursor:e-resize}.vue-line-wrapper--west{left:0;cursor:w-resize}.vue-line-wrapper--disabled{cursor:auto}.vue-bounding-box{position:relative;height:100%;width:100%}.vue-bounding-box__handler{position:absolute}.vue-bounding-box__handler--west-north{left:0;top:0}.vue-bounding-box__handler--north{left:50%;top:0}.vue-bounding-box__handler--east-north{left:100%;top:0}.vue-bounding-box__handler--east{left:100%;top:50%}.vue-bounding-box__handler--east-south{left:100%;top:100%}.vue-bounding-box__handler--south{left:50%;top:100%}.vue-bounding-box__handler--west-south{left:0;top:100%}.vue-bounding-box__handler--west{left:0;top:50%}.vue-draggable-area{position:relative}.vue-preview-result{overflow:hidden;box-sizing:border-box;position:absolute;height:100%;width:100%}.vue-preview-result__wrapper{position:absolute}.vue-preview-result__image{pointer-events:none;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-rectangle-stencil{position:absolute;height:100%;width:100%;box-sizing:border-box}.vue-rectangle-stencil__preview{position:absolute;width:100%;height:100%}.vue-rectangle-stencil--movable{cursor:move}.vue-circle-stencil{position:absolute;height:100%;width:100%;box-sizing:content-box;cursor:move}.vue-circle-stencil__preview{border-radius:50%;position:absolute;width:100%;height:100%}.vue-circle-stencil--movable{cursor:move}.vue-preview{overflow:hidden;box-sizing:border-box;position:relative}.vue-preview--fill{width:100%;height:100%;position:absolute}.vue-preview__wrapper{position:absolute;height:100%;width:100%}.vue-preview__image{pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;transform-origin:center;max-width:none!important}.vue-simple-line{background:none;transition:border .5s;border-color:#ffffff4d;border-width:0;border-style:solid}.vue-simple-line--south,.vue-simple-line--north{height:0;width:100%}.vue-simple-line--east,.vue-simple-line--west{height:100%;width:0}.vue-simple-line--east{border-right-width:1px}.vue-simple-line--west{border-left-width:1px}.vue-simple-line--south{border-bottom-width:1px}.vue-simple-line--north{border-top-width:1px}.vue-simple-line--hover{opacity:1;border-color:#fff}.fm-select__menu__wrapper[data-v-ca5e943c],.fm-select__menu__wrapper[data-v-1d940d75]{position:relative;min-width:112px;padding:12px 4px;display:flex;flex-direction:column;overflow-y:auto;border-radius:8px;background-color:var(--fm-color-neutral-white);--tw-shadow: 0px 8px 16px 0px rgba(199, 199, 204, .24);--tw-shadow-colored: 0px 8px 16px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.description[data-v-3e6c0c15] textarea{padding-right:32px}.image-action-overlay[data-v-946af9b7]{visibility:hidden;background-color:#ffffff4d}.container:hover .image-action-overlay[data-v-946af9b7]{visibility:visible}.description[data-v-aeeb7f08] textarea{padding-right:32px}.tree-item-form button:focus{outline:2px solid black}.resize-handle[data-v-570141b0]{cursor:col-resize}.resize-handle[data-v-570141b0]:hover{background-color:var(--fm-color-system-orange-200);filter:opacity(.4)}.resize-grabber[data-v-570141b0]{pointer-events:none}[data-v-f6f1080b] .highlighted-span{background-color:#ff06}.hover-effect:hover:before{content:"";background-color:var(--fm-color-opacity-sm);border-radius:var(--fm-corner-radius-sm);position:absolute;top:0;left:0;height:100%;width:100%}.tree-node .right-area .show-on-hover{display:none}.tree-node:hover .right-area .show-on-hover{display:flex}.drag-handle{cursor:grab;position:absolute;left:0}.tree-node:hover .drag-handle{visibility:visible}.tree-node .drag-handle{visibility:hidden}.drop-indicator-before{position:absolute;left:0;right:0;top:-1px;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-indicator-after{position:absolute;left:0;right:0;bottom:-1px;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-indicator-inside{position:absolute;left:0;right:0;top:0;bottom:0;border:2px solid var(--fm-color-primary);border-radius:var(--fm-corner-radius-sm);background-color:var(--fm-color-opacity-sm);z-index:5}.tree-node{position:relative}.tree-container[data-v-9244f342]{width:100%;max-width:100%;height:100%;position:relative}.tree-node-wrapper[data-v-9244f342]{width:100%;position:relative}.empty-tree-message[data-v-9244f342]{padding:20px;text-align:center;color:#666}.being-dragged[data-v-9244f342]{opacity:.5}.drop-before[data-v-9244f342]:before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-after[data-v-9244f342]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background-color:var(--fm-color-primary);z-index:10}.drop-inside[data-v-9244f342]{background-color:#4299e11a}.drag-overlay[data-v-9244f342]{position:fixed;padding:4px 8px;background-color:#fff;border:1px solid var(--fm-color-neutral-gray-200);box-shadow:0 2px 4px #0000001a;pointer-events:none;z-index:1000;border-radius:4px;max-width:400px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tree-overlay{background-color:#ffffff80}.fade-enter-from[data-v-632a1790]{opacity:0}.fade-enter-to[data-v-632a1790],.fade-leave-from[data-v-632a1790]{opacity:1}.fade-leave-to[data-v-632a1790]{opacity:0}.fade-enter-active[data-v-632a1790],.fade-leave-active[data-v-632a1790]{transition:opacity .5s ease}.expand-enter-active,.expand-leave-active{transition:.3s}.expand-enter-from{opacity:0;max-height:0}.expand-enter-to,.expand-leave-from{opacity:1;max-height:1000px}.expand-leave-to{opacity:0;max-height:0}.app-container{background-color:#fff!important}.remy-dialog[data-v-9adba964]{position:fixed;z-index:9999;top:25%;right:30px;background:#fff;border:1px solid lightgrey;border-radius:4px;height:50%;width:400px;max-width:90%}.remy-dialog .header[data-v-9adba964]{background:#000;padding:0 12px;border-radius:4px 4px 0 0;height:40px}.remy-dialog .header .title[data-v-9adba964]{color:#fff}.remy-dialog .chatbox-container[data-v-9adba964]{height:calc(100% - 40px)}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as d, ref as g, watch as _, resolveComponent as S, createBlock as T, openBlock as f, unref as y, computed as h } from "vue";
|
|
2
2
|
import { useI18n as m } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialogChild as w, useDialog as x, useSnackbar as C } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as k,
|
|
4
|
+
import { u as k, B as M } from "./menu-B7KFi80A.js";
|
|
5
5
|
const v = /* @__PURE__ */ d({
|
|
6
6
|
__name: "AddPriceGroupDialog",
|
|
7
7
|
setup(s) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as le, computed as Y, resolveComponent as v, createElementBlock as i, openBlock as u, createVNode as l, createCommentVNode as g, unref as a, toDisplayString as P, createElementVNode as y, withCtx as _, Fragment as D, renderList as A, createBlock as N, ref as T, Transition as ee, createTextVNode as se } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { H as b, G as d, u as ie, I as de, J as X } from "./menu-B7KFi80A.js";
|
|
3
3
|
import { useI18n as te } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as re } from "@feedmepos/ui-library";
|
|
5
5
|
import { _ as ce } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
|
|
6
6
|
import { _ as W } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
|
|
7
7
|
import { u as me } from "./discardConfirm-BHni0LNu.js";
|
|
8
|
-
import { u as pe } from "./menu-
|
|
9
|
-
import { L as _e } from "./LinkProductSideSheet-
|
|
8
|
+
import { u as pe } from "./menu-Bpul41jT.js";
|
|
9
|
+
import { L as _e } from "./LinkProductSideSheet-xIuPAwp7.js";
|
|
10
10
|
const ve = { class: "space-y-8" }, fe = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "space-y-16"
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { shallowRef as
|
|
2
|
-
import {
|
|
3
|
-
import { useCoreStore as
|
|
4
|
-
import { useSnackbar as
|
|
1
|
+
import { shallowRef as Z, ref as R, computed as h, shallowReactive as Te, effectScope as Re, watch as H, defineComponent as Oe, resolveComponent as B, createBlock as Ve, openBlock as Ne, unref as V, withCtx as Pe, createVNode as xe } from "vue";
|
|
2
|
+
import { H as k, A as N, aj as ee, G as I, ak as L, J as S, I as te, a9 as M, c as D, Y as E, ai as G, al as Ae, am as Ue, z as Ke, ab as De, an as $e, a8 as J, u as qe } from "./menu-B7KFi80A.js";
|
|
3
|
+
import { useCoreStore as Q, useI18n as ne } from "@feedmepos/mf-common";
|
|
4
|
+
import { useSnackbar as He, useDialogChild as Ye } from "@feedmepos/ui-library";
|
|
5
5
|
import { defineStore as We } from "pinia";
|
|
6
|
-
const
|
|
7
|
-
function
|
|
6
|
+
const je = "/assets/linked-status-Dsak7omL.js", ze = "/assets/override-menu-COqLF5sS.js";
|
|
7
|
+
function Be(e) {
|
|
8
8
|
var o;
|
|
9
9
|
const n = k(e), a = (o = n.variant) == null ? void 0 : o.variantCombinations;
|
|
10
10
|
return delete n.variant, delete n.thumbnail, [n, ...a || []];
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
const r = k(n), f = a ? r.modules.catalog.find((_) => _._id === a) : null, d = o ? r.modules.scheduler.find((_) => _._id === o) : null, i = f ? k(f) : void 0, m = a ? r.modules.catalog.filter((_) => _._id !== a) : [], u = d ? k(d) : void 0, s = e.reduce((_, y) => (_[y._id] =
|
|
12
|
+
function Le(e, n, a, o) {
|
|
13
|
+
const r = k(n), f = a ? r.modules.catalog.find((_) => _._id === a) : null, d = o ? r.modules.scheduler.find((_) => _._id === o) : null, i = f ? k(f) : void 0, m = a ? r.modules.catalog.filter((_) => _._id !== a) : [], u = d ? k(d) : void 0, s = e.reduce((_, y) => (_[y._id] = Be(y), _), {});
|
|
14
14
|
function p(_ = []) {
|
|
15
15
|
const y = e.map((b) => b._id);
|
|
16
16
|
return [
|
|
@@ -35,9 +35,9 @@ function Ge(e, n, a, o) {
|
|
|
35
35
|
...r.modules.scheduler.filter((_) => _._id !== o),
|
|
36
36
|
u
|
|
37
37
|
], r) : {
|
|
38
|
-
...
|
|
38
|
+
...L(),
|
|
39
39
|
modules: {
|
|
40
|
-
...
|
|
40
|
+
...L().modules,
|
|
41
41
|
catalog: r.modules.catalog,
|
|
42
42
|
item: r.modules.item,
|
|
43
43
|
group: r.modules.group,
|
|
@@ -75,7 +75,7 @@ function T(e, n, a) {
|
|
|
75
75
|
groups: r
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function Ge(e, n) {
|
|
79
79
|
const a = e.groups.map((f) => {
|
|
80
80
|
const d = n.modules.group.find((m) => m._id === f._id), i = ((d == null ? void 0 : d.items) || []).map((m) => {
|
|
81
81
|
var p;
|
|
@@ -85,7 +85,7 @@ function Le(e, n) {
|
|
|
85
85
|
if (u)
|
|
86
86
|
return T(u, n, 1);
|
|
87
87
|
const s = {
|
|
88
|
-
...
|
|
88
|
+
...N.generator.initMenuV4ItemOverrider(),
|
|
89
89
|
_id: m._id,
|
|
90
90
|
combinationKey: m.combinationKey
|
|
91
91
|
};
|
|
@@ -93,7 +93,7 @@ function Le(e, n) {
|
|
|
93
93
|
});
|
|
94
94
|
return { ...f, items: i };
|
|
95
95
|
}), o = e.variant ? e.variant.variantCombinations.map((f) => T(f, n, 1)) : [], r = {
|
|
96
|
-
...
|
|
96
|
+
...N.generator.initMenuV4ItemOverrider(),
|
|
97
97
|
_id: e._id,
|
|
98
98
|
name: e.name,
|
|
99
99
|
code: e.code,
|
|
@@ -101,7 +101,7 @@ function Le(e, n) {
|
|
|
101
101
|
};
|
|
102
102
|
return [...o, r];
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Y(e, n) {
|
|
105
105
|
var o;
|
|
106
106
|
if (!n)
|
|
107
107
|
return e;
|
|
@@ -114,7 +114,7 @@ function H(e, n) {
|
|
|
114
114
|
const u = (s = f == null ? void 0 : f.items) == null ? void 0 : s.find(
|
|
115
115
|
(p) => p._id === m._id && p.combinationKey === m.combinationKey
|
|
116
116
|
);
|
|
117
|
-
return
|
|
117
|
+
return Y(m, u);
|
|
118
118
|
}), r;
|
|
119
119
|
}), a;
|
|
120
120
|
}
|
|
@@ -128,7 +128,7 @@ function Je(e, n) {
|
|
|
128
128
|
);
|
|
129
129
|
if (!f)
|
|
130
130
|
throw new Error(`Item overrider not found - ${r._id} - ${r.combinationKey}`);
|
|
131
|
-
return
|
|
131
|
+
return Y(f, r);
|
|
132
132
|
})
|
|
133
133
|
});
|
|
134
134
|
const o = a.find((r) => !r.combinationKey);
|
|
@@ -142,7 +142,7 @@ function Je(e, n) {
|
|
|
142
142
|
const m = (u = f == null ? void 0 : f.items) == null ? void 0 : u.find(
|
|
143
143
|
(s) => s._id === i._id && s.combinationKey === i.combinationKey
|
|
144
144
|
);
|
|
145
|
-
return
|
|
145
|
+
return Y(i, m);
|
|
146
146
|
}), r;
|
|
147
147
|
}), {
|
|
148
148
|
...n,
|
|
@@ -150,10 +150,10 @@ function Je(e, n) {
|
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
async function lt(e, n, a, o, r, f = !0) {
|
|
153
|
-
const d = k(a), i = f ?
|
|
153
|
+
const d = k(a), i = f ? Le(n, d, o, r) : d, m = n.reduce((p, _) => (p[_._id] = i.modules.item.find((y) => y._id === _._id), p), {}), u = n.reduce((p, _) => {
|
|
154
154
|
const y = _._id;
|
|
155
|
-
return p[y] =
|
|
156
|
-
}, {}), s =
|
|
155
|
+
return p[y] = Ge(m[y], e), p;
|
|
156
|
+
}, {}), s = N.getFallbackPrices({
|
|
157
157
|
rawMenu: i,
|
|
158
158
|
items: u,
|
|
159
159
|
catalogId: o || void 0,
|
|
@@ -180,22 +180,22 @@ function dt(e, n) {
|
|
|
180
180
|
return r;
|
|
181
181
|
}, [])) || []).join(" / ");
|
|
182
182
|
}
|
|
183
|
-
const
|
|
183
|
+
const $ = /* @__PURE__ */ new Map();
|
|
184
184
|
async function mt(e, n) {
|
|
185
185
|
const a = `${e._id}-${e.updatedAt}-${n}`;
|
|
186
|
-
if (
|
|
187
|
-
return
|
|
186
|
+
if ($.has(a))
|
|
187
|
+
return $.get(a);
|
|
188
188
|
const o = await ee(
|
|
189
|
-
|
|
189
|
+
je,
|
|
190
190
|
JSON.stringify({
|
|
191
191
|
menu: e,
|
|
192
192
|
itemId: n
|
|
193
193
|
})
|
|
194
194
|
);
|
|
195
|
-
return
|
|
195
|
+
return $.set(a, o), o;
|
|
196
196
|
}
|
|
197
197
|
async function oe(e, n, a) {
|
|
198
|
-
return await ee(
|
|
198
|
+
return await ee(ze, {
|
|
199
199
|
menu: e,
|
|
200
200
|
catalogId: n,
|
|
201
201
|
schedulerId: a
|
|
@@ -232,7 +232,7 @@ function pt(e, n, a) {
|
|
|
232
232
|
return r(n, a);
|
|
233
233
|
}
|
|
234
234
|
const q = /* @__PURE__ */ new Map();
|
|
235
|
-
async function
|
|
235
|
+
async function Qe(e, n, a) {
|
|
236
236
|
const o = `${e._id}-${e.updatedAt}-${n || "null"}-${a || "null"}`;
|
|
237
237
|
if (q.has(o))
|
|
238
238
|
return q.get(o);
|
|
@@ -241,7 +241,7 @@ async function Ze(e, n, a) {
|
|
|
241
241
|
}
|
|
242
242
|
async function _t(e, n, a) {
|
|
243
243
|
var d, i;
|
|
244
|
-
const o = await
|
|
244
|
+
const o = await Qe(e, n, null), r = [], f = (m, u) => {
|
|
245
245
|
const s = k(m);
|
|
246
246
|
for (const p in u)
|
|
247
247
|
u[p] && (s[p] = u[p]);
|
|
@@ -251,8 +251,8 @@ async function _t(e, n, a) {
|
|
|
251
251
|
const u = (d = m.items) == null ? void 0 : d.find((p) => p._id === a && !p.combinationKey), s = e.modules.item.find((p) => p._id === a);
|
|
252
252
|
if (u) {
|
|
253
253
|
const p = (i = m.items) == null ? void 0 : i.filter((y) => y._id === a && y.combinationKey), _ = [u, ...p].map((y) => {
|
|
254
|
-
var
|
|
255
|
-
const b = y.combinationKey ? (P = (
|
|
254
|
+
var O, P;
|
|
255
|
+
const b = y.combinationKey ? (P = (O = s == null ? void 0 : s.variant) == null ? void 0 : O.variantCombinations) == null ? void 0 : P.find(
|
|
256
256
|
(x) => x.combinationKey === y.combinationKey
|
|
257
257
|
) : s, F = b && s ? f(s, b) : y;
|
|
258
258
|
return f(F, y);
|
|
@@ -268,7 +268,7 @@ async function _t(e, n, a) {
|
|
|
268
268
|
function Xe({
|
|
269
269
|
maxHistorySize: e = 50
|
|
270
270
|
}) {
|
|
271
|
-
const n =
|
|
271
|
+
const n = Z([]), a = R(-1), o = h(() => a.value > 0), r = h(() => a.value < n.value.length - 1);
|
|
272
272
|
function f(u) {
|
|
273
273
|
n.value.push(u), a.value++, n.value.length > e && (n.value.shift(), a.value--);
|
|
274
274
|
}
|
|
@@ -292,7 +292,7 @@ function Xe({
|
|
|
292
292
|
clear: m
|
|
293
293
|
};
|
|
294
294
|
}
|
|
295
|
-
const
|
|
295
|
+
const Ze = {
|
|
296
296
|
async updateMenuModule(e, n) {
|
|
297
297
|
const a = S.RequestRunner.operation(n, e.modules);
|
|
298
298
|
if (a.validateError.length > 0)
|
|
@@ -341,21 +341,21 @@ function et() {
|
|
|
341
341
|
const tt = We(
|
|
342
342
|
"mf-menu-store-v2",
|
|
343
343
|
() => {
|
|
344
|
-
const e = Te(et()), n =
|
|
344
|
+
const e = Te(et()), n = Q(), a = He(), o = h(() => e.menu.modules.serveSequence ? M(e.menu.modules.serveSequence, {
|
|
345
345
|
selector: "position"
|
|
346
346
|
}) : []), r = h(() => {
|
|
347
347
|
var t;
|
|
348
|
-
return ((t = n.currentBusiness.value) == null ? void 0 : t.menuVersion) ||
|
|
349
|
-
}), f = h(() => r.value ===
|
|
348
|
+
return ((t = n.currentBusiness.value) == null ? void 0 : t.menuVersion) || D.F_MENU_VERSION.v3;
|
|
349
|
+
}), f = h(() => r.value === D.F_MENU_VERSION.v4), d = h(() => {
|
|
350
350
|
const t = e.menu.modules.catalog;
|
|
351
|
-
return
|
|
352
|
-
}), i = h(() => e.menu.modules.catalog.find((t) => t._id === e.currentCatalogId)), m = h(() =>
|
|
351
|
+
return M(t, { selector: "name" });
|
|
352
|
+
}), i = h(() => e.menu.modules.catalog.find((t) => t._id === e.currentCatalogId)), m = h(() => M(p.value.modules.scheduler, { selector: "name" })), u = h(() => e.menu.modules.scheduler.find(
|
|
353
353
|
(t) => t._id === e.currentSchedulerId
|
|
354
354
|
));
|
|
355
355
|
function s(t, l = !0) {
|
|
356
356
|
e.menu = { ...t, _rev: e.menu._rev }, l && w.push(e.menu);
|
|
357
357
|
}
|
|
358
|
-
const p =
|
|
358
|
+
const p = Z(re()), _ = R(!1), y = R(1);
|
|
359
359
|
async function b() {
|
|
360
360
|
_.value = !0;
|
|
361
361
|
const t = await oe(
|
|
@@ -373,12 +373,12 @@ const tt = We(
|
|
|
373
373
|
}
|
|
374
374
|
return p.value = t, _.value = !1, y.value = y.value + 1, t;
|
|
375
375
|
}
|
|
376
|
-
const
|
|
376
|
+
const O = te.debounce(b, 200);
|
|
377
377
|
Re(!0).run(() => {
|
|
378
|
-
|
|
378
|
+
H(
|
|
379
379
|
() => [e.menu, e.currentCatalogId, e.currentSchedulerId],
|
|
380
380
|
() => {
|
|
381
|
-
_.value ||
|
|
381
|
+
_.value || O();
|
|
382
382
|
}
|
|
383
383
|
);
|
|
384
384
|
});
|
|
@@ -394,7 +394,7 @@ const tt = We(
|
|
|
394
394
|
]), W = h(() => {
|
|
395
395
|
const t = p.value.modules.category;
|
|
396
396
|
return [
|
|
397
|
-
...
|
|
397
|
+
...U.value.item.addon ? [
|
|
398
398
|
{
|
|
399
399
|
_id: e.currentCatalogId ? "" : null,
|
|
400
400
|
name: "Addon",
|
|
@@ -406,14 +406,14 @@ const tt = We(
|
|
|
406
406
|
}), ae = h(() => {
|
|
407
407
|
const t = p.value.modules.subCategory || [];
|
|
408
408
|
return E(t, (l) => l.name);
|
|
409
|
-
}),
|
|
409
|
+
}), j = h(() => {
|
|
410
410
|
var l;
|
|
411
411
|
let t = p.value.modules.item;
|
|
412
412
|
if (i.value) {
|
|
413
413
|
const c = (l = i.value) == null ? void 0 : l.override.items;
|
|
414
414
|
t = t.filter((g) => {
|
|
415
|
-
var
|
|
416
|
-
const v = (
|
|
415
|
+
var C;
|
|
416
|
+
const v = (C = c == null ? void 0 : c[g._id]) == null ? void 0 : C.find(
|
|
417
417
|
(Fe) => !Fe.combinationKey
|
|
418
418
|
);
|
|
419
419
|
return (v == null ? void 0 : v.orderFrom) !== I.F_ORDER_FROM.enum.NONE;
|
|
@@ -422,15 +422,15 @@ const tt = We(
|
|
|
422
422
|
return E(t, (c) => c.code || c.name);
|
|
423
423
|
}), se = h(() => {
|
|
424
424
|
const t = e.menu.modules.category, l = E(t, (g) => g.name).reduce(
|
|
425
|
-
(g, v,
|
|
425
|
+
(g, v, C) => (g[v._id] = C, g),
|
|
426
426
|
{ "": 0 }
|
|
427
427
|
), c = e.menu.modules.item;
|
|
428
428
|
return E(
|
|
429
429
|
c,
|
|
430
430
|
(g) => g.code || g.name
|
|
431
|
-
).reduce((g, v,
|
|
432
|
-
}), ue = h(() =>
|
|
433
|
-
const t =
|
|
431
|
+
).reduce((g, v, C) => (g[v._id] = C + l[v.category || ""], g), {});
|
|
432
|
+
}), ue = h(() => G(A.value, W.value, j.value)), ie = h(() => {
|
|
433
|
+
const t = U.value.item.addon ? [
|
|
434
434
|
{
|
|
435
435
|
_id: e.currentCatalogId ? "" : null,
|
|
436
436
|
name: "Addon",
|
|
@@ -438,28 +438,28 @@ const tt = We(
|
|
|
438
438
|
},
|
|
439
439
|
...e.menu.modules.category
|
|
440
440
|
] : e.menu.modules.category;
|
|
441
|
-
return
|
|
441
|
+
return G(
|
|
442
442
|
e.menu.modules.variant,
|
|
443
443
|
t,
|
|
444
444
|
e.menu.modules.item
|
|
445
445
|
);
|
|
446
|
-
}),
|
|
446
|
+
}), A = h(() => {
|
|
447
447
|
const t = p.value.modules.variant;
|
|
448
|
-
return
|
|
448
|
+
return M(t, { selector: "name" });
|
|
449
449
|
});
|
|
450
450
|
function ce(t = []) {
|
|
451
|
-
const l = t.map((g) =>
|
|
452
|
-
return
|
|
451
|
+
const l = t.map((g) => A.value.find((v) => v._id === g)).filter((g) => !!g);
|
|
452
|
+
return N.fullVariantCombination(l).reduce((g, v) => (g[v.combinationKey] = v.selectionName.join(" / "), g), {});
|
|
453
453
|
}
|
|
454
|
-
const le = h(() => E(p.value.modules.group, (t) => t.name)), de = h(() =>
|
|
454
|
+
const le = h(() => E(p.value.modules.group, (t) => t.name)), de = h(() => M(p.value.modules.takeaway, { selector: "name" })), me = h(() => M(e.menu.modules.printDepartment || [], {
|
|
455
455
|
selector: "name"
|
|
456
|
-
})), fe = h(() =>
|
|
456
|
+
})), fe = h(() => M(e.menu.modules.unit, { selector: "name" })), pe = h(() => M(Ae(e.menu.modules.recipe, e.menu.modules.sku), {
|
|
457
457
|
selector: "name"
|
|
458
458
|
})), _e = h(() => e.menu.modules.cookingGuide), ge = h(() => {
|
|
459
|
-
const t =
|
|
460
|
-
return
|
|
461
|
-
}),
|
|
462
|
-
const t = !e.currentCatalogId, l = r.value ===
|
|
459
|
+
const t = Ue(e.menu.modules.sku);
|
|
460
|
+
return M(t, { selector: "code" });
|
|
461
|
+
}), U = h(() => {
|
|
462
|
+
const t = !e.currentCatalogId, l = r.value === D.F_MENU_VERSION.v4, c = !e.currentSchedulerId, g = {
|
|
463
463
|
create: t && c,
|
|
464
464
|
edit: t && c,
|
|
465
465
|
delete: t && c
|
|
@@ -540,12 +540,12 @@ const tt = We(
|
|
|
540
540
|
const he = h(() => {
|
|
541
541
|
var l;
|
|
542
542
|
const t = Ke.Country.getCountryFlattenTaxes(
|
|
543
|
-
|
|
543
|
+
Q().currentCountry.value
|
|
544
544
|
);
|
|
545
545
|
return {
|
|
546
546
|
systemCode: (l = t[0]) == null ? void 0 : l.systemCode,
|
|
547
547
|
countryTaxOptions: t.map((c) => ({
|
|
548
|
-
label: `${c.name} (${
|
|
548
|
+
label: `${c.name} (${De(c.rate)}%)`,
|
|
549
549
|
value: K(c),
|
|
550
550
|
meta: {
|
|
551
551
|
rate: c.rate
|
|
@@ -554,13 +554,13 @@ const tt = We(
|
|
|
554
554
|
};
|
|
555
555
|
}), be = async () => {
|
|
556
556
|
const t = await J.readMenu();
|
|
557
|
-
e.menu = t ?? e.menu,
|
|
558
|
-
},
|
|
557
|
+
e.menu = t ?? e.menu, z(null);
|
|
558
|
+
}, Ce = async () => {
|
|
559
559
|
const t = await J.readRestaurantsWithMenu();
|
|
560
|
-
e.restaurants =
|
|
561
|
-
},
|
|
560
|
+
e.restaurants = M(t, { selector: "name" });
|
|
561
|
+
}, z = (t) => {
|
|
562
562
|
e.currentCatalogId = t;
|
|
563
|
-
},
|
|
563
|
+
}, Me = (t) => {
|
|
564
564
|
e.currentSchedulerId = t;
|
|
565
565
|
}, Se = (t) => {
|
|
566
566
|
e.currentCategoryIds = t;
|
|
@@ -574,12 +574,12 @@ const tt = We(
|
|
|
574
574
|
}));
|
|
575
575
|
try {
|
|
576
576
|
if (l || g.some(
|
|
577
|
-
(
|
|
577
|
+
(C) => [S.F_OPERATION_TYPE.delete, S.F_OPERATION_TYPE.deleteMany].includes(C.operation)
|
|
578
578
|
)) {
|
|
579
|
-
const
|
|
580
|
-
if (
|
|
579
|
+
const C = await $e(g, e.menu.modules);
|
|
580
|
+
if (C !== !0) throw new Error(C);
|
|
581
581
|
}
|
|
582
|
-
const v = await
|
|
582
|
+
const v = await Ze.updateMenuModule(e.menu, g);
|
|
583
583
|
return s(v.menu), v;
|
|
584
584
|
} catch (v) {
|
|
585
585
|
a.open({
|
|
@@ -615,11 +615,11 @@ const tt = We(
|
|
|
615
615
|
catalogOptions: x,
|
|
616
616
|
categories: W,
|
|
617
617
|
subcategories: ae,
|
|
618
|
-
items:
|
|
618
|
+
items: j,
|
|
619
619
|
sortedItems: se,
|
|
620
620
|
categorizedItems: ue,
|
|
621
621
|
categorizedRawMenuItems: ie,
|
|
622
|
-
variants:
|
|
622
|
+
variants: A,
|
|
623
623
|
groups: le,
|
|
624
624
|
takeaways: de,
|
|
625
625
|
printDepartments: me,
|
|
@@ -627,14 +627,14 @@ const tt = We(
|
|
|
627
627
|
recipes: pe,
|
|
628
628
|
cookingGuide: _e,
|
|
629
629
|
skus: ge,
|
|
630
|
-
rules:
|
|
630
|
+
rules: U,
|
|
631
631
|
taxSetting: he,
|
|
632
632
|
// Action
|
|
633
633
|
setMenu: s,
|
|
634
634
|
readMenu: be,
|
|
635
|
-
readRestaurants:
|
|
636
|
-
selectCatalog:
|
|
637
|
-
selectScheduler:
|
|
635
|
+
readRestaurants: Ce,
|
|
636
|
+
selectCatalog: z,
|
|
637
|
+
selectScheduler: Me,
|
|
638
638
|
selectCategory: Se,
|
|
639
639
|
updateMenu: we,
|
|
640
640
|
updateMenuSetting: Ee,
|
|
@@ -660,21 +660,21 @@ const tt = We(
|
|
|
660
660
|
}
|
|
661
661
|
};
|
|
662
662
|
}
|
|
663
|
-
), X = /* @__PURE__ */
|
|
663
|
+
), X = /* @__PURE__ */ Oe({
|
|
664
664
|
__name: "AddSubcategoryDialogContentComponent",
|
|
665
665
|
props: {
|
|
666
666
|
initialValue: {}
|
|
667
667
|
},
|
|
668
668
|
setup(e) {
|
|
669
669
|
const n = e, { t: a } = ne();
|
|
670
|
-
|
|
670
|
+
H(
|
|
671
671
|
() => n.initialValue,
|
|
672
672
|
(d) => {
|
|
673
673
|
o.value = d ?? "";
|
|
674
674
|
}
|
|
675
675
|
);
|
|
676
|
-
const o = R(n.initialValue), { emitData: r, emitAction: f } =
|
|
677
|
-
return
|
|
676
|
+
const o = R(n.initialValue), { emitData: r, emitAction: f } = Ye();
|
|
677
|
+
return H(
|
|
678
678
|
o,
|
|
679
679
|
(d) => {
|
|
680
680
|
r(d);
|
|
@@ -683,8 +683,8 @@ const tt = We(
|
|
|
683
683
|
immediate: !0
|
|
684
684
|
}
|
|
685
685
|
), (d, i) => {
|
|
686
|
-
const m =
|
|
687
|
-
return
|
|
686
|
+
const m = B("fm-text-field"), u = B("FmForm");
|
|
687
|
+
return Ne(), Ve(u, {
|
|
688
688
|
onValidationSuccess: i[1] || (i[1] = (s) => V(f)("primary"))
|
|
689
689
|
}, {
|
|
690
690
|
default: Pe(() => [
|
|
@@ -808,6 +808,6 @@ export {
|
|
|
808
808
|
_t as f,
|
|
809
809
|
dt as g,
|
|
810
810
|
lt as m,
|
|
811
|
-
|
|
811
|
+
Qe as o,
|
|
812
812
|
tt as u
|
|
813
813
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./menu-
|
|
1
|
+
import { b as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-YOzhk0a0.js";
|
|
2
|
+
import "./menu-B7KFi80A.js";
|
|
3
3
|
var Z = {
|
|
4
4
|
defaultAmount: 0,
|
|
5
5
|
defaultCurrency: "USD",
|
|
@@ -716,12 +716,12 @@ var d = q(), mt = function t(i) {
|
|
|
716
716
|
allocate: function(o) {
|
|
717
717
|
var s = this;
|
|
718
718
|
dt(o);
|
|
719
|
-
for (var l = o.reduce(function(O,
|
|
720
|
-
return d.add(O,
|
|
719
|
+
for (var l = o.reduce(function(O, b) {
|
|
720
|
+
return d.add(O, b);
|
|
721
721
|
}), m = this.getAmount(), A = o.map(function(O) {
|
|
722
|
-
var
|
|
723
|
-
return m = d.subtract(m,
|
|
724
|
-
amount:
|
|
722
|
+
var b = Math.floor(d.divide(d.multiply(s.getAmount(), O), l));
|
|
723
|
+
return m = d.subtract(m, b), f.call(s, {
|
|
724
|
+
amount: b
|
|
725
725
|
});
|
|
726
726
|
}), y = 0; m > 0; )
|
|
727
727
|
o[y] > 0 && (A[y] = A[y].add(f.call(this, {
|
|
@@ -835,7 +835,7 @@ var d = q(), mt = function t(i) {
|
|
|
835
835
|
* @return {Promise}
|
|
836
836
|
*/
|
|
837
837
|
convert: function(o) {
|
|
838
|
-
var s = this, l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = l.endpoint, A = m === void 0 ? M.endpoint : m, y = l.propertyPath, O = y === void 0 ? M.propertyPath || "rates.{{to}}" : y,
|
|
838
|
+
var s = this, l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = l.endpoint, A = m === void 0 ? M.endpoint : m, y = l.propertyPath, O = y === void 0 ? M.propertyPath || "rates.{{to}}" : y, b = l.headers, V = b === void 0 ? M.headers : b, L = l.roundingMode, X = L === void 0 ? g : L, j = Object.assign({}, {
|
|
839
839
|
endpoint: A,
|
|
840
840
|
propertyPath: O,
|
|
841
841
|
headers: V,
|
|
@@ -1251,7 +1251,7 @@ var d = q(), mt = function t(i) {
|
|
|
1251
1251
|
return this.toObject();
|
|
1252
1252
|
}
|
|
1253
1253
|
};
|
|
1254
|
-
},
|
|
1254
|
+
}, D = Object.assign(mt, Z, J, tt), S = /* @__PURE__ */ ((t) => (t.PRODUCT_PRICE = "PRODUCT_PRICE", t.PRODUCT_VARIANT_PRICE = "PRODUCT_VARIANT_PRICE", t.PRODUCT_ORDER_FROM = "PRODUCT_ORDER_FROM", t.PRODUCT_NAME = "PRODUCT_NAME", t.PRODUCT_SCHEDULE = "PRODUCT_SCHEDULE", t.PRODUCT_SCHEDULE_PRICE = "PRODUCT_SCHEDULE_PRICE", t.PRODUCT_CODE = "PRODUCT_CODE", t.PRODUCT_VARIANT_CODE = "PRODUCT_VARIANT_CODE", t.PRODUCT_VARIANT_SCHEDULE_PRICE = "PRODUCT_VARIANT_SCHEDULE_PRICE", t.ADDON_AVAILABLE = "ADDON_AVAILABLE", t.ADDON_NAME = "ADDON_NAME", t.ADDON_PRICE = "ADDON_PRICE", t.ADDON_VARIANT_PRICE = "ADDON_VARIANT_PRICE", t.ADDON_ORDER_FROM = "ADDON_ORDER_FROM", t))(S || {});
|
|
1255
1255
|
function h(t) {
|
|
1256
1256
|
return t = t.split("/").map((i) => {
|
|
1257
1257
|
const n = i.split("_");
|
|
@@ -1285,7 +1285,7 @@ function gt(t, i = !1) {
|
|
|
1285
1285
|
variantKey: "",
|
|
1286
1286
|
variant: "",
|
|
1287
1287
|
vcStatus: "",
|
|
1288
|
-
price:
|
|
1288
|
+
price: D(e.price).toFormat("0.00"),
|
|
1289
1289
|
perXUnit: e.unit ? ((u = e.perXUnit) == null ? void 0 : u.toString()) ?? "" : "",
|
|
1290
1290
|
unit: e.unit || "",
|
|
1291
1291
|
categoryName: (r == null ? void 0 : r.name) ?? "",
|
|
@@ -1300,7 +1300,7 @@ function gt(t, i = !1) {
|
|
|
1300
1300
|
variantKey: h(p.combinationKey),
|
|
1301
1301
|
variant: p.selectionName.join("/"),
|
|
1302
1302
|
vcStatus: p.active ? "active" : "inactive",
|
|
1303
|
-
price: p.price ?
|
|
1303
|
+
price: p.price ? D(p.price).toFormat("0.00") : D(e.price).toFormat("0.00"),
|
|
1304
1304
|
perXUnit: e.unit ? ((g = e.perXUnit) == null ? void 0 : g.toString()) ?? "" : "",
|
|
1305
1305
|
unit: e.unit || "",
|
|
1306
1306
|
categoryName: (r == null ? void 0 : r.name) ?? "",
|
|
@@ -1327,17 +1327,17 @@ function gt(t, i = !1) {
|
|
|
1327
1327
|
) : null;
|
|
1328
1328
|
f && v ? r = {
|
|
1329
1329
|
...r,
|
|
1330
|
-
[`${u.name} (${h(u._id)})`]:
|
|
1330
|
+
[`${u.name} (${h(u._id)})`]: D(
|
|
1331
1331
|
v.value
|
|
1332
1332
|
).toFormat("0.00")
|
|
1333
1333
|
} : f && !v && (l != null && l.price) ? r = {
|
|
1334
1334
|
...r,
|
|
1335
|
-
[`${u.name} (${h(u._id)})`]:
|
|
1335
|
+
[`${u.name} (${h(u._id)})`]: D(
|
|
1336
1336
|
l.price
|
|
1337
1337
|
).toFormat("0.00")
|
|
1338
1338
|
} : f && !v && !(l != null && l.price) && c ? r = {
|
|
1339
1339
|
...r,
|
|
1340
|
-
[`${u.name} (${h(u._id)})`]:
|
|
1340
|
+
[`${u.name} (${h(u._id)})`]: D(
|
|
1341
1341
|
c.value
|
|
1342
1342
|
).toFormat("0.00")
|
|
1343
1343
|
} : f && !v && !(l != null && l.price) && !c ? r = {
|
|
@@ -1345,7 +1345,7 @@ function gt(t, i = !1) {
|
|
|
1345
1345
|
[`${u.name} (${h(u._id)})`]: e.price
|
|
1346
1346
|
} : !f && c ? r = {
|
|
1347
1347
|
...r,
|
|
1348
|
-
[`${u.name} (${h(u._id)})`]:
|
|
1348
|
+
[`${u.name} (${h(u._id)})`]: D(
|
|
1349
1349
|
c.value
|
|
1350
1350
|
).toFormat("0.00")
|
|
1351
1351
|
} : r = {
|