@feedmepos/mf-connect 0.0.9 → 0.0.11-prod
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/{Analytic-CwaN0mge.js → Analytic-CpXLcGWV.js} +7 -7
- package/dist/{Broadcast-Cjx5xzUC.js → Broadcast-CEMQS5PI.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D4mO5aik.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D0Kvpl_V.js} +8 -8
- package/dist/{Card-DbY6YaXk.js → Card-BqX-aRK9.js} +182 -187
- package/dist/{Collections-DRN2gzwh.js → Collections-SRmluAj0.js} +102 -84
- package/dist/{Credit-DOcrzykJ.js → Credit-DdBKFsII.js} +7 -7
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYNpBySQ.js +2600 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-EF_rHfwT.js → EffectSheet.vue_vue_type_style_index_0_lang-admNNBWu.js} +1864 -1830
- package/dist/{Experience-aQj-3H2Y.js → Experience-CSfRrWqI.js} +7 -7
- package/dist/Game-BV--qn0e.js +250 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CG-GBVMP.js → ImageInput.vue_vue_type_script_setup_true_lang-DpYjrT3G.js} +1 -1
- package/dist/{MainLayout-Cxl9yLPs.js → MainLayout-B_ZXQrMD.js} +1 -1
- package/dist/{Marketing-BYUcbcMU.js → Marketing-Bac3EbOu.js} +16 -16
- package/dist/{Member-D7K9fm_Q.js → Member-CGMRVEuI.js} +2 -2
- package/dist/{MemberList-DbXkxUzF.js → MemberList-CSyb4bNE.js} +196 -195
- package/dist/{MemberTransactions-DED1SYwX.js → MemberTransactions-BdraBHg6.js} +2 -2
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CLqIp5wR.js → MessageInput.vue_vue_type_script_setup_true_lang-BvAFOoym.js} +2 -2
- package/dist/Mission-D8-D99g-.js +248 -0
- package/dist/Point-BOI4mT-K.js +220 -0
- package/dist/{Promotion-DzVXy_C9.js → Promotion-D0MLMo9m.js} +8 -8
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CeS6KlhP.js → RuleGroup.vue_vue_type_script_setup_true_lang-1L68zx5t.js} +58 -58
- package/dist/Segment-BeUbkVj7.js +444 -0
- package/dist/{Setting-pCzenLoL.js → Setting-uM4iKdyM.js} +386 -379
- package/dist/{Store-DEwEIFYD.js → Store-BkccNTnM.js} +432 -413
- package/dist/{StoreRewards-D7vnZN4f.js → StoreRewards-BLgP6Mfv.js} +9 -9
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-ALzQU3th.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Z0nqQyi8.js} +39 -38
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-GMIztWCj.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-C771jjYx.js} +1 -1
- package/dist/{Tier-BJbX5CPB.js → Tier-DwKAfz6f.js} +17 -16
- package/dist/{Title-C9xV6rBg.js → Title-B1_yd9pC.js} +16 -15
- package/dist/{Transaction-C8OHlhzR.js → Transaction-DcVCMUY4.js} +1 -1
- package/dist/{Voucher-eZwm7N1D.js → Voucher-Djvai5vL.js} +30 -30
- package/dist/{app-DgbDbhL-.js → app-BvizV9z5.js} +3192 -3178
- package/dist/app.js +1 -1
- package/dist/{campaign-BkvrUTEJ.js → campaign-BdSwq7MJ.js} +31 -27
- package/dist/dto-CkH5Zama.js +1150 -0
- package/dist/{effect-f7DAPYC8.js → effect-DT4ivttr.js} +1 -1
- package/dist/{export-BXbCXTfd.js → export-BAJL8_2G.js} +3 -3
- package/dist/{helper-BhvQ9m6d.js → helper-CiIZ1pUo.js} +21 -8
- package/dist/{index-CdtrQ9tR.js → index-7uOMMdXt.js} +245 -184
- package/dist/{index-Cfo2A0Se.js → index-8nrxC9d5.js} +1 -1
- package/dist/{index-FWp9M1yS.js → index-B5gJ6P15.js} +269 -21
- package/dist/{index-BhacKx5B.js → index-BLWw_MlC.js} +1363 -1341
- package/dist/{index-VmFlM704.js → index-C5N8jeJ1.js} +1 -1
- package/dist/{index-Cz5RZlYh.js → index-C8dIiNQb.js} +1 -1
- package/dist/{index-Dd3hrFcQ.js → index-Ccn7PGoB.js} +268 -267
- package/dist/{index-oQLJE4Uw.js → index-CjZxaXvZ.js} +69 -64
- package/dist/{index-DQC_1tRF.js → index-DCs4-zXS.js} +7 -17
- package/dist/{index-BsEqtUmY.js → index-DMyaEjMn.js} +26 -20
- package/dist/{loading-DQaawbHE.js → loading-C1IzY-n2.js} +1312 -1312
- package/dist/{lodash-DzdmTD20.js → lodash-BMQ4xbjY.js} +1 -1
- package/dist/membership-D3I4udu3.js +221 -0
- package/dist/{money-vzwOUBrp.js → money-BQEcWGhZ.js} +1 -1
- package/dist/{number-CBzs6rfW.js → number-DGx2QPUy.js} +1 -1
- package/dist/{rule-BR5rrmUV.js → rule-CvlhLEGy.js} +2 -2
- package/dist/{rule-builder-7GBNrPXt.js → rule-builder-Di3qiIBb.js} +1 -1
- package/dist/{template-CETJ6lkf.js → template-D6Abrya4.js} +5 -5
- package/dist/{usePagination-DdZeE4Tt.js → usePagination-MhbjQgN7.js} +1 -1
- package/dist/{xlsx-CDAKxZE_.js → xlsx-mL_3T1k3.js} +226 -226
- package/package.json +3 -3
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CUxfXaro.js +0 -2002
- package/dist/Game-Cnje-m_M.js +0 -242
- package/dist/Point-CQm8whVQ.js +0 -211
- package/dist/Segment-D3o0D3Uv.js +0 -407
- package/dist/dto-YYVhW73A.js +0 -1092
- package/dist/libs/packages/core/src/bill/bill.dto.d.ts +0 -75
- package/dist/libs/packages/core/src/bill/index.d.ts +0 -115
- package/dist/libs/packages/core/src/business/index.d.ts +0 -21
- package/dist/libs/packages/core/src/campaign/broadcast/index.d.ts +0 -36
- package/dist/libs/packages/core/src/campaign/campaign.enum.d.ts +0 -9
- package/dist/libs/packages/core/src/campaign/campaign.fn.d.ts +0 -7
- package/dist/libs/packages/core/src/campaign/dto.d.ts +0 -5517
- package/dist/libs/packages/core/src/campaign/group.d.ts +0 -25
- package/dist/libs/packages/core/src/campaign/index.d.ts +0 -33988
- package/dist/libs/packages/core/src/collectible/collectible.dto.d.ts +0 -21
- package/dist/libs/packages/core/src/collectible/collectible.enum.d.ts +0 -14
- package/dist/libs/packages/core/src/collectible/helper.d.ts +0 -195
- package/dist/libs/packages/core/src/collectible/index.d.ts +0 -1588
- package/dist/libs/packages/core/src/collectible/pool/index.d.ts +0 -1381
- package/dist/libs/packages/core/src/collection/collection.fn.d.ts +0 -5
- package/dist/libs/packages/core/src/collection/index.d.ts +0 -1014
- package/dist/libs/packages/core/src/collection/transaction.d.ts +0 -845
- package/dist/libs/packages/core/src/collection/transaction.fn.d.ts +0 -10
- package/dist/libs/packages/core/src/common/array.d.ts +0 -2
- package/dist/libs/packages/core/src/common/hash.d.ts +0 -10
- package/dist/libs/packages/core/src/common/index.d.ts +0 -42
- package/dist/libs/packages/core/src/common/number.d.ts +0 -7
- package/dist/libs/packages/core/src/common/object.d.ts +0 -5
- package/dist/libs/packages/core/src/common/objectId.d.ts +0 -2
- package/dist/libs/packages/core/src/common/string.d.ts +0 -4
- package/dist/libs/packages/core/src/counter/counter.dto.d.ts +0 -767
- package/dist/libs/packages/core/src/counter/index.d.ts +0 -1
- package/dist/libs/packages/core/src/event/index.d.ts +0 -4246
- package/dist/libs/packages/core/src/feedback/index.d.ts +0 -24
- package/dist/libs/packages/core/src/game/index.d.ts +0 -32
- package/dist/libs/packages/core/src/index.d.ts +0 -21
- package/dist/libs/packages/core/src/internal/index.d.ts +0 -56
- package/dist/libs/packages/core/src/legacy/setting/index.d.ts +0 -89
- package/dist/libs/packages/core/src/location/index.d.ts +0 -44
- package/dist/libs/packages/core/src/loyalty/card/index.d.ts +0 -1296
- package/dist/libs/packages/core/src/loyalty/index.d.ts +0 -3
- package/dist/libs/packages/core/src/loyalty/tier/helper.d.ts +0 -2
- package/dist/libs/packages/core/src/loyalty/tier/index.d.ts +0 -251
- package/dist/libs/packages/core/src/loyalty/title/index.d.ts +0 -4
- package/dist/libs/packages/core/src/marketing-material/index.d.ts +0 -186
- package/dist/libs/packages/core/src/marketing-material/marketing-material.enum.d.ts +0 -3
- package/dist/libs/packages/core/src/notification/index.d.ts +0 -130
- package/dist/libs/packages/core/src/pagination/index.d.ts +0 -25
- package/dist/libs/packages/core/src/permission/index.d.ts +0 -243
- package/dist/libs/packages/core/src/service/index.d.ts +0 -10
- package/dist/libs/packages/core/src/store/dto.d.ts +0 -1069
- package/dist/libs/packages/core/src/store/index.d.ts +0 -3942
- package/dist/libs/packages/core/src/store/store.fn.d.ts +0 -104
- package/dist/libs/packages/core/src/template/index.d.ts +0 -880
- package/dist/libs/packages/core/src/template/templates.d.ts +0 -1239
- package/dist/libs/packages/core/src/user/index.d.ts +0 -245
- package/dist/libs/packages/core/src/user/segment.dto.d.ts +0 -27
- package/dist/libs/packages/core/src/user/segmentation.d.ts +0 -28
- package/dist/libs/packages/core/src/user/user.dto.d.ts +0 -873
- package/dist/libs/packages/core/src/validation/index.d.ts +0 -1
- package/dist/libs/packages/core/src/validation/rule/builder.d.ts +0 -36
- package/dist/libs/packages/core/src/validation/rule/index.d.ts +0 -45
- package/dist/libs/packages/core/src/validation/rule/operator.enum.d.ts +0 -405
- package/dist/libs/packages/core/src/validation/rule/rule.fn.d.ts +0 -6
- package/dist/libs/packages/validation/src/index.d.ts +0 -3
- package/dist/libs/packages/validation/src/rule/rule-builder.d.ts +0 -19
- package/dist/libs/packages/validation/src/rule/rule.d.ts +0 -52
- package/dist/libs/packages/validation/src/rule/validate.d.ts +0 -2
- package/dist/membership-Dq2-b-S_.js +0 -210
- package/dist/packages/connect/src/App.vue.d.ts +0 -2
- package/dist/packages/connect/src/Entry.vue.d.ts +0 -2
- package/dist/packages/connect/src/api/auth/index.d.ts +0 -3
- package/dist/packages/connect/src/api/campaign/index.d.ts +0 -30
- package/dist/packages/connect/src/api/campaign/template.d.ts +0 -5
- package/dist/packages/connect/src/api/index.d.ts +0 -29
- package/dist/packages/connect/src/api/location/index.d.ts +0 -7
- package/dist/packages/connect/src/api/marketing-material/index.d.ts +0 -7
- package/dist/packages/connect/src/api/member/index.d.ts +0 -12
- package/dist/packages/connect/src/api/membership/index.d.ts +0 -28
- package/dist/packages/connect/src/api/segments/index.d.ts +0 -13
- package/dist/packages/connect/src/api/settings/index.d.ts +0 -4
- package/dist/packages/connect/src/api/transaction/index.d.ts +0 -9
- package/dist/packages/connect/src/api/users/index.d.ts +0 -8
- package/dist/packages/connect/src/app.d.ts +0 -16
- package/dist/packages/connect/src/components/NavigationTab.vue.d.ts +0 -2
- package/dist/packages/connect/src/components/analytic/CampaignCard.vue.d.ts +0 -24
- package/dist/packages/connect/src/components/analytic/CampaignChip.vue.d.ts +0 -47
- package/dist/packages/connect/src/components/analytic/CampaignGroup.vue.d.ts +0 -25
- package/dist/packages/connect/src/components/analytic/CampaignStat.vue.d.ts +0 -31
- package/dist/packages/connect/src/components/analytic/LinkCampaign.vue.d.ts +0 -30
- package/dist/packages/connect/src/components/campaign/CampaignChip.vue.d.ts +0 -13
- package/dist/packages/connect/src/components/campaign/CampaignSummary.vue.d.ts +0 -13
- package/dist/packages/connect/src/components/campaign/CampaignTriggerInput.vue.d.ts +0 -34
- package/dist/packages/connect/src/components/campaign/EarningOptionInput.vue.d.ts +0 -50
- package/dist/packages/connect/src/components/campaign/GameTypeInput.vue.d.ts +0 -15
- package/dist/packages/connect/src/components/campaign/MessageInput.vue.d.ts +0 -64
- package/dist/packages/connect/src/components/campaign/PromotionGameTypeInput.vue.d.ts +0 -19
- package/dist/packages/connect/src/components/campaign/ScheduleRuleInput.vue.d.ts +0 -29
- package/dist/packages/connect/src/components/campaign/TargetLocationInput.vue.d.ts +0 -32
- package/dist/packages/connect/src/components/campaign/ValidityInput.vue.d.ts +0 -59
- package/dist/packages/connect/src/components/collectible/CollectibleChip.vue.d.ts +0 -13
- package/dist/packages/connect/src/components/collectible/CollectibleOptionInput.vue.d.ts +0 -59
- package/dist/packages/connect/src/components/collection/Collections.vue.d.ts +0 -2
- package/dist/packages/connect/src/components/common/BaseTable.vue.d.ts +0 -80
- package/dist/packages/connect/src/components/common/FmTableSelection.vue.d.ts +0 -22
- package/dist/packages/connect/src/components/custom/ChipMenu.vue.d.ts +0 -96
- package/dist/packages/connect/src/components/custom/CustomSelect.vue.d.ts +0 -68
- package/dist/packages/connect/src/components/custom/DateInput.vue.d.ts +0 -24
- package/dist/packages/connect/src/components/custom/DateRangeChip.vue.d.ts +0 -25
- package/dist/packages/connect/src/components/custom/DateRangeInput.vue.d.ts +0 -28
- package/dist/packages/connect/src/components/custom/FilterChip.vue.d.ts +0 -90
- package/dist/packages/connect/src/components/custom/ImageInput.vue.d.ts +0 -115
- package/dist/packages/connect/src/components/custom/json/JsonNode.vue.d.ts +0 -36
- package/dist/packages/connect/src/components/custom/json/JsonViewer.vue.d.ts +0 -22
- package/dist/packages/connect/src/components/custom/zod/ZodTextField.vue.d.ts +0 -52
- package/dist/packages/connect/src/components/loading/ImageLoading.vue.d.ts +0 -2
- package/dist/packages/connect/src/components/loading/LottieAnimation.vue.d.ts +0 -39
- package/dist/packages/connect/src/components/loading/Splash.vue.d.ts +0 -2
- package/dist/packages/connect/src/components/loyalty/CampaignTypeDialog.vue.d.ts +0 -13
- package/dist/packages/connect/src/components/loyalty/CreditCoinDialog.vue.d.ts +0 -29
- package/dist/packages/connect/src/components/loyalty/TierExpression.vue.d.ts +0 -32
- package/dist/packages/connect/src/components/marketing/HeadlineStyleSideSheet.vue.d.ts +0 -42
- package/dist/packages/connect/src/components/marketing/ImageSideSheet.vue.d.ts +0 -40
- package/dist/packages/connect/src/components/marketing/LinkRewardSideSheet.vue.d.ts +0 -30
- package/dist/packages/connect/src/components/marketing/MarketingSheet.vue.d.ts +0 -2
- package/dist/packages/connect/src/components/marketing/RewardDropDown.vue.d.ts +0 -26
- package/dist/packages/connect/src/components/marketing/RightSheet.vue.d.ts +0 -66
- package/dist/packages/connect/src/components/marketing/SlideUpDown.vue.d.ts +0 -27
- package/dist/packages/connect/src/components/marketing/platform/BrandAppImage.vue.d.ts +0 -103
- package/dist/packages/connect/src/components/marketing/platform/FacebookPost.vue.d.ts +0 -103
- package/dist/packages/connect/src/components/marketing/platform/FacebookStory.vue.d.ts +0 -103
- package/dist/packages/connect/src/components/marketing/platform/ImageCanvas.vue.d.ts +0 -81
- package/dist/packages/connect/src/components/marketing/platform/InstagramPost.vue.d.ts +0 -102
- package/dist/packages/connect/src/components/marketing/platform/InstagramReel.vue.d.ts +0 -102
- package/dist/packages/connect/src/components/marketing/platform/InstagramStory.vue.d.ts +0 -102
- package/dist/packages/connect/src/components/marketing/platform/TvImage.vue.d.ts +0 -103
- package/dist/packages/connect/src/components/member/MemberDetail.vue.d.ts +0 -2
- package/dist/packages/connect/src/components/member/MemberList.vue.d.ts +0 -2
- package/dist/packages/connect/src/components/member/MemberOverview.vue.d.ts +0 -2
- package/dist/packages/connect/src/components/member/MemberStatsDialog.vue.d.ts +0 -21
- package/dist/packages/connect/src/components/rule/BillRuleGroup.vue.d.ts +0 -19
- package/dist/packages/connect/src/components/rule/CustomRuleDialog.vue.d.ts +0 -30
- package/dist/packages/connect/src/components/rule/FeedbackRuleGroup.vue.d.ts +0 -19
- package/dist/packages/connect/src/components/rule/PresetRuleDialog.vue.d.ts +0 -20
- package/dist/packages/connect/src/components/rule/RuleConfigurator.vue.d.ts +0 -37
- package/dist/packages/connect/src/components/rule/RuleEntry.vue.d.ts +0 -19
- package/dist/packages/connect/src/components/rule/RuleEquator.vue.d.ts +0 -31
- package/dist/packages/connect/src/components/rule/RuleGroup.vue.d.ts +0 -30
- package/dist/packages/connect/src/components/rule/SegmentConfigurator.vue.d.ts +0 -17
- package/dist/packages/connect/src/components/rule/TimeRuleGroup.vue.d.ts +0 -19
- package/dist/packages/connect/src/components/rule/UserRuleGroup.vue.d.ts +0 -19
- package/dist/packages/connect/src/components/rule/equators/BirthdayInput.vue.d.ts +0 -15
- package/dist/packages/connect/src/components/rule/equators/IsDayInput.vue.d.ts +0 -24
- package/dist/packages/connect/src/components/rule/equators/IsInMonthInput.vue.d.ts +0 -16
- package/dist/packages/connect/src/components/rule/equators/IsRangeInput.vue.d.ts +0 -55
- package/dist/packages/connect/src/components/rule/equators/RruleInput.vue.d.ts +0 -37
- package/dist/packages/connect/src/components/rule/presets.d.ts +0 -18
- package/dist/packages/connect/src/components/segment/ReviewSegment.vue.d.ts +0 -16
- package/dist/packages/connect/src/components/setting/LinkDeviceDialog.vue.d.ts +0 -2
- package/dist/packages/connect/src/components/store/AddBundleCard.vue.d.ts +0 -6
- package/dist/packages/connect/src/components/store/CategoryDialog.vue.d.ts +0 -23
- package/dist/packages/connect/src/components/store/StoreBundleCard.vue.d.ts +0 -20
- package/dist/packages/connect/src/components/store/StoreTransactions.vue.d.ts +0 -10
- package/dist/packages/connect/src/components/stripe/StripeSetting.vue.d.ts +0 -21
- package/dist/packages/connect/src/components/tax/TaxInclusiveSetting.vue.d.ts +0 -30
- package/dist/packages/connect/src/components/tax/TaxVariantSetting.vue.d.ts +0 -24
- package/dist/packages/connect/src/components/template/TemplateDialog.vue.d.ts +0 -24
- package/dist/packages/connect/src/components/template/TemplateInput.vue.d.ts +0 -54
- package/dist/packages/connect/src/components/tier/TierCard.vue.d.ts +0 -39
- package/dist/packages/connect/src/components/transactions/CollectionTransactions.vue.d.ts +0 -10
- package/dist/packages/connect/src/components/transactions/MemberTransactions.vue.d.ts +0 -2
- package/dist/packages/connect/src/composables/export.d.ts +0 -11
- package/dist/packages/connect/src/composables/index.d.ts +0 -2
- package/dist/packages/connect/src/composables/loading.d.ts +0 -19
- package/dist/packages/connect/src/composables/template.d.ts +0 -7
- package/dist/packages/connect/src/composables/usePagination.d.ts +0 -32
- package/dist/packages/connect/src/export/base.export.d.ts +0 -7
- package/dist/packages/connect/src/export/card.export.d.ts +0 -9
- package/dist/packages/connect/src/export/collection-transaction.export.d.ts +0 -14
- package/dist/packages/connect/src/export/collection.export.d.ts +0 -9
- package/dist/packages/connect/src/export/index.d.ts +0 -11
- package/dist/packages/connect/src/export/member.export.d.ts +0 -33
- package/dist/packages/connect/src/export/store-transaction.export.d.ts +0 -14
- package/dist/packages/connect/src/helpers/campaign.d.ts +0 -94
- package/dist/packages/connect/src/helpers/collectible.d.ts +0 -58
- package/dist/packages/connect/src/helpers/common.d.ts +0 -1
- package/dist/packages/connect/src/helpers/country.d.ts +0 -21
- package/dist/packages/connect/src/helpers/currency.d.ts +0 -2
- package/dist/packages/connect/src/helpers/effect.d.ts +0 -7
- package/dist/packages/connect/src/helpers/message.d.ts +0 -32
- package/dist/packages/connect/src/helpers/number.d.ts +0 -3
- package/dist/packages/connect/src/helpers/qr.d.ts +0 -7
- package/dist/packages/connect/src/helpers/rrule.d.ts +0 -26
- package/dist/packages/connect/src/helpers/rule.d.ts +0 -91
- package/dist/packages/connect/src/helpers/string.d.ts +0 -16
- package/dist/packages/connect/src/helpers/tax.d.ts +0 -74
- package/dist/packages/connect/src/helpers/trigger.d.ts +0 -59
- package/dist/packages/connect/src/helpers/user.d.ts +0 -6
- package/dist/packages/connect/src/helpers/zod.d.ts +0 -27
- package/dist/packages/connect/src/layouts/MainLayout.vue.d.ts +0 -2
- package/dist/packages/connect/src/main.d.ts +0 -2
- package/dist/packages/connect/src/router/index.d.ts +0 -5
- package/dist/packages/connect/src/router/name.d.ts +0 -2
- package/dist/packages/connect/src/router/shared.d.ts +0 -11
- package/dist/packages/connect/src/sheets/analytic/AnalyticSheet.vue.d.ts +0 -12
- package/dist/packages/connect/src/sheets/campaign/EditCampaignSheet.vue.d.ts +0 -11
- package/dist/packages/connect/src/sheets/campaign/SendVoucherSheet.vue.d.ts +0 -13
- package/dist/packages/connect/src/sheets/card/CardDesignSheet.vue.d.ts +0 -9
- package/dist/packages/connect/src/sheets/card/CreateCardSheet.vue.d.ts +0 -11
- package/dist/packages/connect/src/sheets/collectible/EditRewardSheet.vue.d.ts +0 -15
- package/dist/packages/connect/src/sheets/collectible/EditTitleSheet.vue.d.ts +0 -15
- package/dist/packages/connect/src/sheets/collection/CreateCollectionSheet.vue.d.ts +0 -9
- package/dist/packages/connect/src/sheets/effect/EffectSheet.vue.d.ts +0 -135
- package/dist/packages/connect/src/sheets/member/MemberDetailSheet.vue.d.ts +0 -22
- package/dist/packages/connect/src/sheets/store/StoreSettingSheet.vue.d.ts +0 -80
- package/dist/packages/connect/src/types/index.d.ts +0 -4
- package/dist/packages/connect/src/views/Analytic.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/Marketing.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/Setting.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/Transaction.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/campaign/Broadcast.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/campaign/Promotion.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/campaign/Voucher.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/loyalty/Card.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/loyalty/Member.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/loyalty/Segment.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/program/Credit.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/program/Experience.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/program/Game.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/program/Point.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/program/Tier.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/program/Title.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/store/Store.vue.d.ts +0 -2
- package/dist/packages/connect/src/views/store/StoreRewards.vue.d.ts +0 -2
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as Re, ref as z, computed as
|
|
2
|
-
import { h as
|
|
3
|
-
import { useDialog as
|
|
4
|
-
import { a as
|
|
5
|
-
import { a as
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
8
|
-
import { _ as Ne } from "./ImageInput.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { _ as
|
|
10
|
-
import { _ as
|
|
11
|
-
import { m as
|
|
12
|
-
import { o as
|
|
13
|
-
import { a as
|
|
14
|
-
var
|
|
1
|
+
import { defineComponent as Re, ref as z, computed as ie, onMounted as De, resolveComponent as U, openBlock as V, createBlock as we, withCtx as G, createElementVNode as b, createVNode as M, unref as m, isRef as ke, createElementBlock as q, Fragment as fe, createTextVNode as Q, toDisplayString as k, renderList as Ie, createCommentVNode as Pe } from "vue";
|
|
2
|
+
import { h as rt } from "./moment-BWErdI6_.js";
|
|
3
|
+
import { useDialog as Ve } from "@feedmepos/ui-library";
|
|
4
|
+
import { a as xe, u as it, p as st, f as K } from "./loading-C1IzY-n2.js";
|
|
5
|
+
import { a as be, l as $e, u as at } from "./app-BvizV9z5.js";
|
|
6
|
+
import { u as ze } from "./membership-D3I4udu3.js";
|
|
7
|
+
import { l as lt } from "./index-7uOMMdXt.js";
|
|
8
|
+
import { _ as Ne } from "./ImageInput.vue_vue_type_script_setup_true_lang-DpYjrT3G.js";
|
|
9
|
+
import { _ as ct } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-C771jjYx.js";
|
|
10
|
+
import { _ as ut } from "./MessageInput.vue_vue_type_script_setup_true_lang-BvAFOoym.js";
|
|
11
|
+
import { m as dt } from "./index-C5N8jeJ1.js";
|
|
12
|
+
import { o as ft } from "./objectId-dwaoBfJX.js";
|
|
13
|
+
import { a as gt } from "./object-qECH92oz.js";
|
|
14
|
+
var Z = {}, ht = function() {
|
|
15
15
|
return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
|
|
16
|
-
},
|
|
17
|
-
let
|
|
18
|
-
const
|
|
16
|
+
}, He = {}, I = {};
|
|
17
|
+
let Be;
|
|
18
|
+
const mt = [
|
|
19
19
|
0,
|
|
20
20
|
// Not used
|
|
21
21
|
26,
|
|
@@ -59,32 +59,32 @@ const ht = [
|
|
|
59
59
|
3532,
|
|
60
60
|
3706
|
|
61
61
|
];
|
|
62
|
-
|
|
62
|
+
I.getSymbolSize = function(e) {
|
|
63
63
|
if (!e) throw new Error('"version" cannot be null or undefined');
|
|
64
64
|
if (e < 1 || e > 40) throw new Error('"version" should be in range from 1 to 40');
|
|
65
65
|
return e * 4 + 17;
|
|
66
66
|
};
|
|
67
|
-
|
|
68
|
-
return
|
|
67
|
+
I.getSymbolTotalCodewords = function(e) {
|
|
68
|
+
return mt[e];
|
|
69
69
|
};
|
|
70
|
-
|
|
70
|
+
I.getBCHDigit = function(t) {
|
|
71
71
|
let e = 0;
|
|
72
72
|
for (; t !== 0; )
|
|
73
73
|
e++, t >>>= 1;
|
|
74
74
|
return e;
|
|
75
75
|
};
|
|
76
|
-
|
|
76
|
+
I.setToSJISFunction = function(e) {
|
|
77
77
|
if (typeof e != "function")
|
|
78
78
|
throw new Error('"toSJISFunc" is not a valid function.');
|
|
79
|
-
|
|
79
|
+
Be = e;
|
|
80
80
|
};
|
|
81
|
-
|
|
82
|
-
return typeof
|
|
81
|
+
I.isKanjiModeEnabled = function() {
|
|
82
|
+
return typeof Be < "u";
|
|
83
83
|
};
|
|
84
|
-
|
|
85
|
-
return
|
|
84
|
+
I.toSJIS = function(e) {
|
|
85
|
+
return Be(e);
|
|
86
86
|
};
|
|
87
|
-
var
|
|
87
|
+
var le = {};
|
|
88
88
|
(function(t) {
|
|
89
89
|
t.L = { bit: 1 }, t.M = { bit: 0 }, t.Q = { bit: 3 }, t.H = { bit: 2 };
|
|
90
90
|
function e(i) {
|
|
@@ -118,11 +118,11 @@ var se = {};
|
|
|
118
118
|
return o;
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
|
-
})(
|
|
122
|
-
function
|
|
121
|
+
})(le);
|
|
122
|
+
function Ke() {
|
|
123
123
|
this.buffer = [], this.length = 0;
|
|
124
124
|
}
|
|
125
|
-
|
|
125
|
+
Ke.prototype = {
|
|
126
126
|
get: function(t) {
|
|
127
127
|
const e = Math.floor(t / 8);
|
|
128
128
|
return (this.buffer[e] >>> 7 - t % 8 & 1) === 1;
|
|
@@ -139,28 +139,28 @@ He.prototype = {
|
|
|
139
139
|
this.buffer.length <= e && this.buffer.push(0), t && (this.buffer[e] |= 128 >>> this.length % 8), this.length++;
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
|
-
var
|
|
143
|
-
function
|
|
142
|
+
var pt = Ke;
|
|
143
|
+
function ee(t) {
|
|
144
144
|
if (!t || t < 1)
|
|
145
145
|
throw new Error("BitMatrix size must be defined and greater than 0");
|
|
146
146
|
this.size = t, this.data = new Uint8Array(t * t), this.reservedBit = new Uint8Array(t * t);
|
|
147
147
|
}
|
|
148
|
-
|
|
148
|
+
ee.prototype.set = function(t, e, i, r) {
|
|
149
149
|
const o = t * this.size + e;
|
|
150
150
|
this.data[o] = i, r && (this.reservedBit[o] = !0);
|
|
151
151
|
};
|
|
152
|
-
|
|
152
|
+
ee.prototype.get = function(t, e) {
|
|
153
153
|
return this.data[t * this.size + e];
|
|
154
154
|
};
|
|
155
|
-
|
|
155
|
+
ee.prototype.xor = function(t, e, i) {
|
|
156
156
|
this.data[t * this.size + e] ^= i;
|
|
157
157
|
};
|
|
158
|
-
|
|
158
|
+
ee.prototype.isReserved = function(t, e) {
|
|
159
159
|
return this.reservedBit[t * this.size + e];
|
|
160
160
|
};
|
|
161
|
-
var
|
|
161
|
+
var yt = ee, Oe = {};
|
|
162
162
|
(function(t) {
|
|
163
|
-
const e =
|
|
163
|
+
const e = I.getSymbolSize;
|
|
164
164
|
t.getRowColCoords = function(r) {
|
|
165
165
|
if (r === 1) return [];
|
|
166
166
|
const o = Math.floor(r / 7) + 2, n = e(r), a = n === 145 ? 26 : Math.ceil((n - 13) / (2 * o - 2)) * 2, s = [n - 7];
|
|
@@ -176,21 +176,21 @@ var pt = W, Ke = {};
|
|
|
176
176
|
s === a - 1 && l === 0 || o.push([n[s], n[l]]);
|
|
177
177
|
return o;
|
|
178
178
|
};
|
|
179
|
-
})(
|
|
180
|
-
var
|
|
181
|
-
const
|
|
182
|
-
|
|
183
|
-
const i =
|
|
179
|
+
})(Oe);
|
|
180
|
+
var Ye = {};
|
|
181
|
+
const wt = I.getSymbolSize, Le = 7;
|
|
182
|
+
Ye.getPositions = function(e) {
|
|
183
|
+
const i = wt(e);
|
|
184
184
|
return [
|
|
185
185
|
// top-left
|
|
186
186
|
[0, 0],
|
|
187
187
|
// top-right
|
|
188
|
-
[i -
|
|
188
|
+
[i - Le, 0],
|
|
189
189
|
// bottom-left
|
|
190
|
-
[0, i -
|
|
190
|
+
[0, i - Le]
|
|
191
191
|
];
|
|
192
192
|
};
|
|
193
|
-
var
|
|
193
|
+
var je = {};
|
|
194
194
|
(function(t) {
|
|
195
195
|
t.Patterns = {
|
|
196
196
|
PATTERN000: 0,
|
|
@@ -285,9 +285,9 @@ var Ye = {};
|
|
|
285
285
|
}
|
|
286
286
|
return s;
|
|
287
287
|
};
|
|
288
|
-
})(
|
|
289
|
-
var
|
|
290
|
-
const x =
|
|
288
|
+
})(je);
|
|
289
|
+
var ce = {};
|
|
290
|
+
const x = le, oe = [
|
|
291
291
|
// L M Q H
|
|
292
292
|
1,
|
|
293
293
|
1,
|
|
@@ -449,7 +449,7 @@ const x = se, te = [
|
|
|
449
449
|
49,
|
|
450
450
|
68,
|
|
451
451
|
81
|
|
452
|
-
],
|
|
452
|
+
], re = [
|
|
453
453
|
// L M Q H
|
|
454
454
|
7,
|
|
455
455
|
10,
|
|
@@ -612,55 +612,55 @@ const x = se, te = [
|
|
|
612
612
|
2040,
|
|
613
613
|
2430
|
|
614
614
|
];
|
|
615
|
-
|
|
615
|
+
ce.getBlocksCount = function(e, i) {
|
|
616
616
|
switch (i) {
|
|
617
617
|
case x.L:
|
|
618
|
-
return
|
|
618
|
+
return oe[(e - 1) * 4 + 0];
|
|
619
619
|
case x.M:
|
|
620
|
-
return
|
|
620
|
+
return oe[(e - 1) * 4 + 1];
|
|
621
621
|
case x.Q:
|
|
622
|
-
return
|
|
622
|
+
return oe[(e - 1) * 4 + 2];
|
|
623
623
|
case x.H:
|
|
624
|
-
return
|
|
624
|
+
return oe[(e - 1) * 4 + 3];
|
|
625
625
|
default:
|
|
626
626
|
return;
|
|
627
627
|
}
|
|
628
628
|
};
|
|
629
|
-
|
|
629
|
+
ce.getTotalCodewordsCount = function(e, i) {
|
|
630
630
|
switch (i) {
|
|
631
631
|
case x.L:
|
|
632
|
-
return
|
|
632
|
+
return re[(e - 1) * 4 + 0];
|
|
633
633
|
case x.M:
|
|
634
|
-
return
|
|
634
|
+
return re[(e - 1) * 4 + 1];
|
|
635
635
|
case x.Q:
|
|
636
|
-
return
|
|
636
|
+
return re[(e - 1) * 4 + 2];
|
|
637
637
|
case x.H:
|
|
638
|
-
return
|
|
638
|
+
return re[(e - 1) * 4 + 3];
|
|
639
639
|
default:
|
|
640
640
|
return;
|
|
641
641
|
}
|
|
642
642
|
};
|
|
643
|
-
var
|
|
644
|
-
const
|
|
643
|
+
var Je = {}, ue = {};
|
|
644
|
+
const X = new Uint8Array(512), se = new Uint8Array(256);
|
|
645
645
|
(function() {
|
|
646
646
|
let e = 1;
|
|
647
647
|
for (let i = 0; i < 255; i++)
|
|
648
|
-
|
|
648
|
+
X[i] = e, se[e] = i, e <<= 1, e & 256 && (e ^= 285);
|
|
649
649
|
for (let i = 255; i < 512; i++)
|
|
650
|
-
|
|
650
|
+
X[i] = X[i - 255];
|
|
651
651
|
})();
|
|
652
|
-
|
|
652
|
+
ue.log = function(e) {
|
|
653
653
|
if (e < 1) throw new Error("log(" + e + ")");
|
|
654
|
-
return
|
|
654
|
+
return se[e];
|
|
655
655
|
};
|
|
656
|
-
|
|
657
|
-
return
|
|
656
|
+
ue.exp = function(e) {
|
|
657
|
+
return X[e];
|
|
658
658
|
};
|
|
659
|
-
|
|
660
|
-
return e === 0 || i === 0 ? 0 :
|
|
659
|
+
ue.mul = function(e, i) {
|
|
660
|
+
return e === 0 || i === 0 ? 0 : X[se[e] + se[i]];
|
|
661
661
|
};
|
|
662
662
|
(function(t) {
|
|
663
|
-
const e =
|
|
663
|
+
const e = ue;
|
|
664
664
|
t.mul = function(r, o) {
|
|
665
665
|
const n = new Uint8Array(r.length + o.length - 1);
|
|
666
666
|
for (let a = 0; a < r.length; a++)
|
|
@@ -684,53 +684,53 @@ le.mul = function(e, i) {
|
|
|
684
684
|
o = t.mul(o, new Uint8Array([1, e.exp(n)]));
|
|
685
685
|
return o;
|
|
686
686
|
};
|
|
687
|
-
})(
|
|
688
|
-
const
|
|
689
|
-
function
|
|
687
|
+
})(Je);
|
|
688
|
+
const qe = Je;
|
|
689
|
+
function Ae(t) {
|
|
690
690
|
this.genPoly = void 0, this.degree = t, this.degree && this.initialize(this.degree);
|
|
691
691
|
}
|
|
692
|
-
|
|
693
|
-
this.degree = e, this.genPoly =
|
|
692
|
+
Ae.prototype.initialize = function(e) {
|
|
693
|
+
this.degree = e, this.genPoly = qe.generateECPolynomial(this.degree);
|
|
694
694
|
};
|
|
695
|
-
|
|
695
|
+
Ae.prototype.encode = function(e) {
|
|
696
696
|
if (!this.genPoly)
|
|
697
697
|
throw new Error("Encoder not initialized");
|
|
698
698
|
const i = new Uint8Array(e.length + this.degree);
|
|
699
699
|
i.set(e);
|
|
700
|
-
const r =
|
|
700
|
+
const r = qe.mod(i, this.genPoly), o = this.degree - r.length;
|
|
701
701
|
if (o > 0) {
|
|
702
702
|
const n = new Uint8Array(this.degree);
|
|
703
703
|
return n.set(r, o), n;
|
|
704
704
|
}
|
|
705
705
|
return r;
|
|
706
706
|
};
|
|
707
|
-
var
|
|
708
|
-
|
|
707
|
+
var bt = Ae, Ge = {}, $ = {}, Me = {};
|
|
708
|
+
Me.isValid = function(e) {
|
|
709
709
|
return !isNaN(e) && e >= 1 && e <= 40;
|
|
710
710
|
};
|
|
711
|
-
var
|
|
712
|
-
const
|
|
713
|
-
let
|
|
714
|
-
|
|
715
|
-
const
|
|
711
|
+
var F = {};
|
|
712
|
+
const Qe = "[0-9]+", vt = "[A-Z $%*+\\-./:]+";
|
|
713
|
+
let W = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
|
|
714
|
+
W = W.replace(/u/g, "\\u");
|
|
715
|
+
const Ct = "(?:(?![A-Z0-9 $%*+\\-./:]|" + W + `)(?:.|[\r
|
|
716
716
|
]))+`;
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
const
|
|
723
|
-
|
|
724
|
-
return
|
|
717
|
+
F.KANJI = new RegExp(W, "g");
|
|
718
|
+
F.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g");
|
|
719
|
+
F.BYTE = new RegExp(Ct, "g");
|
|
720
|
+
F.NUMERIC = new RegExp(Qe, "g");
|
|
721
|
+
F.ALPHANUMERIC = new RegExp(vt, "g");
|
|
722
|
+
const _t = new RegExp("^" + W + "$"), Et = new RegExp("^" + Qe + "$"), Bt = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
|
|
723
|
+
F.testKanji = function(e) {
|
|
724
|
+
return _t.test(e);
|
|
725
725
|
};
|
|
726
|
-
|
|
726
|
+
F.testNumeric = function(e) {
|
|
727
727
|
return Et.test(e);
|
|
728
728
|
};
|
|
729
|
-
|
|
730
|
-
return
|
|
729
|
+
F.testAlphanumeric = function(e) {
|
|
730
|
+
return Bt.test(e);
|
|
731
731
|
};
|
|
732
732
|
(function(t) {
|
|
733
|
-
const e =
|
|
733
|
+
const e = Me, i = F;
|
|
734
734
|
t.NUMERIC = {
|
|
735
735
|
id: "Numeric",
|
|
736
736
|
bit: 1,
|
|
@@ -789,7 +789,7 @@ R.testAlphanumeric = function(e) {
|
|
|
789
789
|
};
|
|
790
790
|
})($);
|
|
791
791
|
(function(t) {
|
|
792
|
-
const e =
|
|
792
|
+
const e = I, i = ce, r = le, o = $, n = Me, a = 7973, s = e.getBCHDigit(a);
|
|
793
793
|
function l(h, u, w) {
|
|
794
794
|
for (let v = 1; v <= 40; v++)
|
|
795
795
|
if (u <= t.getCapacity(v, w, h))
|
|
@@ -801,8 +801,8 @@ R.testAlphanumeric = function(e) {
|
|
|
801
801
|
function g(h, u) {
|
|
802
802
|
let w = 0;
|
|
803
803
|
return h.forEach(function(v) {
|
|
804
|
-
const
|
|
805
|
-
w +=
|
|
804
|
+
const S = f(v.mode, u);
|
|
805
|
+
w += S + v.getBitsLength();
|
|
806
806
|
}), w;
|
|
807
807
|
}
|
|
808
808
|
function B(h, u) {
|
|
@@ -816,7 +816,7 @@ R.testAlphanumeric = function(e) {
|
|
|
816
816
|
if (!n.isValid(u))
|
|
817
817
|
throw new Error("Invalid QR Code version");
|
|
818
818
|
typeof v > "u" && (v = o.BYTE);
|
|
819
|
-
const
|
|
819
|
+
const S = e.getSymbolTotalCodewords(u), y = i.getTotalCodewordsCount(u, w), d = (S - y) * 8;
|
|
820
820
|
if (v === o.MIXED) return d;
|
|
821
821
|
const c = d - f(v, u);
|
|
822
822
|
switch (v) {
|
|
@@ -832,16 +832,16 @@ R.testAlphanumeric = function(e) {
|
|
|
832
832
|
}
|
|
833
833
|
}, t.getBestVersionForData = function(u, w) {
|
|
834
834
|
let v;
|
|
835
|
-
const
|
|
835
|
+
const S = r.from(w, r.M);
|
|
836
836
|
if (Array.isArray(u)) {
|
|
837
837
|
if (u.length > 1)
|
|
838
|
-
return B(u,
|
|
838
|
+
return B(u, S);
|
|
839
839
|
if (u.length === 0)
|
|
840
840
|
return 1;
|
|
841
841
|
v = u[0];
|
|
842
842
|
} else
|
|
843
843
|
v = u;
|
|
844
|
-
return l(v.mode, v.getLength(),
|
|
844
|
+
return l(v.mode, v.getLength(), S);
|
|
845
845
|
}, t.getEncodedBits = function(u) {
|
|
846
846
|
if (!n.isValid(u) || u < 7)
|
|
847
847
|
throw new Error("Invalid QR Code version");
|
|
@@ -850,39 +850,39 @@ R.testAlphanumeric = function(e) {
|
|
|
850
850
|
w ^= a << e.getBCHDigit(w) - s;
|
|
851
851
|
return u << 12 | w;
|
|
852
852
|
};
|
|
853
|
-
})(
|
|
854
|
-
var
|
|
855
|
-
const
|
|
856
|
-
|
|
853
|
+
})(Ge);
|
|
854
|
+
var Xe = {};
|
|
855
|
+
const ve = I, We = 1335, At = 21522, Ue = ve.getBCHDigit(We);
|
|
856
|
+
Xe.getEncodedBits = function(e, i) {
|
|
857
857
|
const r = e.bit << 3 | i;
|
|
858
858
|
let o = r << 10;
|
|
859
|
-
for (;
|
|
860
|
-
o ^=
|
|
861
|
-
return (r << 10 | o) ^
|
|
859
|
+
for (; ve.getBCHDigit(o) - Ue >= 0; )
|
|
860
|
+
o ^= We << ve.getBCHDigit(o) - Ue;
|
|
861
|
+
return (r << 10 | o) ^ At;
|
|
862
862
|
};
|
|
863
|
-
var
|
|
864
|
-
const
|
|
865
|
-
function
|
|
866
|
-
this.mode =
|
|
863
|
+
var Ze = {};
|
|
864
|
+
const Mt = $;
|
|
865
|
+
function O(t) {
|
|
866
|
+
this.mode = Mt.NUMERIC, this.data = t.toString();
|
|
867
867
|
}
|
|
868
|
-
|
|
868
|
+
O.getBitsLength = function(e) {
|
|
869
869
|
return 10 * Math.floor(e / 3) + (e % 3 ? e % 3 * 3 + 1 : 0);
|
|
870
870
|
};
|
|
871
|
-
|
|
871
|
+
O.prototype.getLength = function() {
|
|
872
872
|
return this.data.length;
|
|
873
873
|
};
|
|
874
|
-
|
|
875
|
-
return
|
|
874
|
+
O.prototype.getBitsLength = function() {
|
|
875
|
+
return O.getBitsLength(this.data.length);
|
|
876
876
|
};
|
|
877
|
-
|
|
877
|
+
O.prototype.write = function(e) {
|
|
878
878
|
let i, r, o;
|
|
879
879
|
for (i = 0; i + 3 <= this.data.length; i += 3)
|
|
880
880
|
r = this.data.substr(i, 3), o = parseInt(r, 10), e.put(o, 10);
|
|
881
881
|
const n = this.data.length - i;
|
|
882
882
|
n > 0 && (r = this.data.substr(i), o = parseInt(r, 10), e.put(o, n * 3 + 1));
|
|
883
883
|
};
|
|
884
|
-
var
|
|
885
|
-
const
|
|
884
|
+
var St = O;
|
|
885
|
+
const Tt = $, ge = [
|
|
886
886
|
"0",
|
|
887
887
|
"1",
|
|
888
888
|
"2",
|
|
@@ -929,27 +929,27 @@ const St = $, de = [
|
|
|
929
929
|
"/",
|
|
930
930
|
":"
|
|
931
931
|
];
|
|
932
|
-
function
|
|
933
|
-
this.mode =
|
|
932
|
+
function Y(t) {
|
|
933
|
+
this.mode = Tt.ALPHANUMERIC, this.data = t;
|
|
934
934
|
}
|
|
935
|
-
|
|
935
|
+
Y.getBitsLength = function(e) {
|
|
936
936
|
return 11 * Math.floor(e / 2) + 6 * (e % 2);
|
|
937
937
|
};
|
|
938
|
-
|
|
938
|
+
Y.prototype.getLength = function() {
|
|
939
939
|
return this.data.length;
|
|
940
940
|
};
|
|
941
|
-
|
|
942
|
-
return
|
|
941
|
+
Y.prototype.getBitsLength = function() {
|
|
942
|
+
return Y.getBitsLength(this.data.length);
|
|
943
943
|
};
|
|
944
|
-
|
|
944
|
+
Y.prototype.write = function(e) {
|
|
945
945
|
let i;
|
|
946
946
|
for (i = 0; i + 2 <= this.data.length; i += 2) {
|
|
947
|
-
let r =
|
|
948
|
-
r +=
|
|
947
|
+
let r = ge.indexOf(this.data[i]) * 45;
|
|
948
|
+
r += ge.indexOf(this.data[i + 1]), e.put(r, 11);
|
|
949
949
|
}
|
|
950
|
-
this.data.length % 2 && e.put(
|
|
950
|
+
this.data.length % 2 && e.put(ge.indexOf(this.data[i]), 6);
|
|
951
951
|
};
|
|
952
|
-
var
|
|
952
|
+
var It = Y, Pt = function(e) {
|
|
953
953
|
for (var i = [], r = e.length, o = 0; o < r; o++) {
|
|
954
954
|
var n = e.charCodeAt(o);
|
|
955
955
|
if (n >= 55296 && n <= 56319 && r > o + 1) {
|
|
@@ -976,38 +976,38 @@ var Tt = O, It = function(e) {
|
|
|
976
976
|
}
|
|
977
977
|
return new Uint8Array(i).buffer;
|
|
978
978
|
};
|
|
979
|
-
const Nt =
|
|
980
|
-
function
|
|
981
|
-
this.mode =
|
|
979
|
+
const Nt = Pt, Lt = $;
|
|
980
|
+
function j(t) {
|
|
981
|
+
this.mode = Lt.BYTE, typeof t == "string" && (t = Nt(t)), this.data = new Uint8Array(t);
|
|
982
982
|
}
|
|
983
|
-
|
|
983
|
+
j.getBitsLength = function(e) {
|
|
984
984
|
return e * 8;
|
|
985
985
|
};
|
|
986
|
-
|
|
986
|
+
j.prototype.getLength = function() {
|
|
987
987
|
return this.data.length;
|
|
988
988
|
};
|
|
989
|
-
|
|
990
|
-
return
|
|
989
|
+
j.prototype.getBitsLength = function() {
|
|
990
|
+
return j.getBitsLength(this.data.length);
|
|
991
991
|
};
|
|
992
|
-
|
|
992
|
+
j.prototype.write = function(t) {
|
|
993
993
|
for (let e = 0, i = this.data.length; e < i; e++)
|
|
994
994
|
t.put(this.data[e], 8);
|
|
995
995
|
};
|
|
996
|
-
var
|
|
997
|
-
const
|
|
998
|
-
function
|
|
999
|
-
this.mode =
|
|
996
|
+
var Ut = j;
|
|
997
|
+
const Ft = $, Rt = I;
|
|
998
|
+
function J(t) {
|
|
999
|
+
this.mode = Ft.KANJI, this.data = t;
|
|
1000
1000
|
}
|
|
1001
|
-
|
|
1001
|
+
J.getBitsLength = function(e) {
|
|
1002
1002
|
return e * 13;
|
|
1003
1003
|
};
|
|
1004
|
-
|
|
1004
|
+
J.prototype.getLength = function() {
|
|
1005
1005
|
return this.data.length;
|
|
1006
1006
|
};
|
|
1007
|
-
|
|
1008
|
-
return
|
|
1007
|
+
J.prototype.getBitsLength = function() {
|
|
1008
|
+
return J.getBitsLength(this.data.length);
|
|
1009
1009
|
};
|
|
1010
|
-
|
|
1010
|
+
J.prototype.write = function(t) {
|
|
1011
1011
|
let e;
|
|
1012
1012
|
for (e = 0; e < this.data.length; e++) {
|
|
1013
1013
|
let i = Rt.toSJIS(this.data[e]);
|
|
@@ -1023,7 +1023,7 @@ Make sure your charset is UTF-8`
|
|
|
1023
1023
|
i = (i >>> 8 & 255) * 192 + (i & 255), t.put(i, 13);
|
|
1024
1024
|
}
|
|
1025
1025
|
};
|
|
1026
|
-
var
|
|
1026
|
+
var Dt = J, et = { exports: {} };
|
|
1027
1027
|
(function(t) {
|
|
1028
1028
|
var e = {
|
|
1029
1029
|
single_source_shortest_paths: function(i, r, o) {
|
|
@@ -1031,10 +1031,10 @@ var Ft = j, Ze = { exports: {} };
|
|
|
1031
1031
|
a[r] = 0;
|
|
1032
1032
|
var s = e.PriorityQueue.make();
|
|
1033
1033
|
s.push(r, 0);
|
|
1034
|
-
for (var l, f, g, B, h, u, w, v,
|
|
1034
|
+
for (var l, f, g, B, h, u, w, v, S; !s.empty(); ) {
|
|
1035
1035
|
l = s.pop(), f = l.value, B = l.cost, h = i[f] || {};
|
|
1036
1036
|
for (g in h)
|
|
1037
|
-
h.hasOwnProperty(g) && (u = h[g], w = B + u, v = a[g],
|
|
1037
|
+
h.hasOwnProperty(g) && (u = h[g], w = B + u, v = a[g], S = typeof a[g] > "u", (S || v > w) && (a[g] = w, s.push(g, w), n[g] = f));
|
|
1038
1038
|
}
|
|
1039
1039
|
if (typeof o < "u" && typeof a[o] > "u") {
|
|
1040
1040
|
var y = ["Could not find a path from ", r, " to ", o, "."].join("");
|
|
@@ -1088,30 +1088,30 @@ var Ft = j, Ze = { exports: {} };
|
|
|
1088
1088
|
}
|
|
1089
1089
|
};
|
|
1090
1090
|
t.exports = e;
|
|
1091
|
-
})(
|
|
1092
|
-
var
|
|
1091
|
+
})(et);
|
|
1092
|
+
var kt = et.exports;
|
|
1093
1093
|
(function(t) {
|
|
1094
|
-
const e = $, i =
|
|
1094
|
+
const e = $, i = St, r = It, o = Ut, n = Dt, a = F, s = I, l = kt;
|
|
1095
1095
|
function f(y) {
|
|
1096
1096
|
return unescape(encodeURIComponent(y)).length;
|
|
1097
1097
|
}
|
|
1098
1098
|
function g(y, d, c) {
|
|
1099
1099
|
const p = [];
|
|
1100
|
-
let
|
|
1101
|
-
for (; (
|
|
1100
|
+
let _;
|
|
1101
|
+
for (; (_ = y.exec(c)) !== null; )
|
|
1102
1102
|
p.push({
|
|
1103
|
-
data:
|
|
1104
|
-
index:
|
|
1103
|
+
data: _[0],
|
|
1104
|
+
index: _.index,
|
|
1105
1105
|
mode: d,
|
|
1106
|
-
length:
|
|
1106
|
+
length: _[0].length
|
|
1107
1107
|
});
|
|
1108
1108
|
return p;
|
|
1109
1109
|
}
|
|
1110
1110
|
function B(y) {
|
|
1111
1111
|
const d = g(a.NUMERIC, e.NUMERIC, y), c = g(a.ALPHANUMERIC, e.ALPHANUMERIC, y);
|
|
1112
|
-
let p,
|
|
1113
|
-
return s.isKanjiModeEnabled() ? (p = g(a.BYTE, e.BYTE, y),
|
|
1114
|
-
return A.index -
|
|
1112
|
+
let p, _;
|
|
1113
|
+
return s.isKanjiModeEnabled() ? (p = g(a.BYTE, e.BYTE, y), _ = g(a.KANJI, e.KANJI, y)) : (p = g(a.BYTE_KANJI, e.BYTE, y), _ = []), d.concat(c, p, _).sort(function(A, T) {
|
|
1114
|
+
return A.index - T.index;
|
|
1115
1115
|
}).map(function(A) {
|
|
1116
1116
|
return {
|
|
1117
1117
|
data: A.data,
|
|
@@ -1172,24 +1172,24 @@ var Dt = Ze.exports;
|
|
|
1172
1172
|
}
|
|
1173
1173
|
function v(y, d) {
|
|
1174
1174
|
const c = {}, p = { start: {} };
|
|
1175
|
-
let
|
|
1176
|
-
for (let
|
|
1177
|
-
const A = y[
|
|
1178
|
-
for (let
|
|
1179
|
-
const N = A[
|
|
1180
|
-
|
|
1181
|
-
for (let
|
|
1182
|
-
const
|
|
1183
|
-
c[
|
|
1175
|
+
let _ = ["start"];
|
|
1176
|
+
for (let E = 0; E < y.length; E++) {
|
|
1177
|
+
const A = y[E], T = [];
|
|
1178
|
+
for (let P = 0; P < A.length; P++) {
|
|
1179
|
+
const N = A[P], R = "" + E + P;
|
|
1180
|
+
T.push(R), c[R] = { node: N, lastCount: 0 }, p[R] = {};
|
|
1181
|
+
for (let H = 0; H < _.length; H++) {
|
|
1182
|
+
const C = _[H];
|
|
1183
|
+
c[C] && c[C].node.mode === N.mode ? (p[C][R] = h(c[C].lastCount + N.length, N.mode) - h(c[C].lastCount, N.mode), c[C].lastCount += N.length) : (c[C] && (c[C].lastCount = N.length), p[C][R] = h(N.length, N.mode) + 4 + e.getCharCountIndicator(N.mode, d));
|
|
1184
1184
|
}
|
|
1185
1185
|
}
|
|
1186
|
-
|
|
1186
|
+
_ = T;
|
|
1187
1187
|
}
|
|
1188
|
-
for (let
|
|
1189
|
-
p[
|
|
1188
|
+
for (let E = 0; E < _.length; E++)
|
|
1189
|
+
p[_[E]].end = 0;
|
|
1190
1190
|
return { map: p, table: c };
|
|
1191
1191
|
}
|
|
1192
|
-
function
|
|
1192
|
+
function S(y, d) {
|
|
1193
1193
|
let c;
|
|
1194
1194
|
const p = e.getBestModeForData(y);
|
|
1195
1195
|
if (c = e.from(d, p), c !== e.BYTE && c.bit < p.bit)
|
|
@@ -1208,22 +1208,22 @@ var Dt = Ze.exports;
|
|
|
1208
1208
|
}
|
|
1209
1209
|
t.fromArray = function(d) {
|
|
1210
1210
|
return d.reduce(function(c, p) {
|
|
1211
|
-
return typeof p == "string" ? c.push(
|
|
1211
|
+
return typeof p == "string" ? c.push(S(p, null)) : p.data && c.push(S(p.data, p.mode)), c;
|
|
1212
1212
|
}, []);
|
|
1213
1213
|
}, t.fromString = function(d, c) {
|
|
1214
|
-
const p = B(d, s.isKanjiModeEnabled()),
|
|
1215
|
-
for (let
|
|
1216
|
-
|
|
1217
|
-
return t.fromArray(u(
|
|
1214
|
+
const p = B(d, s.isKanjiModeEnabled()), _ = w(p), E = v(_, c), A = l.find_path(E.map, "start", "end"), T = [];
|
|
1215
|
+
for (let P = 1; P < A.length - 1; P++)
|
|
1216
|
+
T.push(E.table[A[P]].node);
|
|
1217
|
+
return t.fromArray(u(T));
|
|
1218
1218
|
}, t.rawSplit = function(d) {
|
|
1219
1219
|
return t.fromArray(
|
|
1220
1220
|
B(d, s.isKanjiModeEnabled())
|
|
1221
1221
|
);
|
|
1222
1222
|
};
|
|
1223
|
-
})(
|
|
1224
|
-
const
|
|
1225
|
-
function
|
|
1226
|
-
const i = t.size, r =
|
|
1223
|
+
})(Ze);
|
|
1224
|
+
const de = I, he = le, Vt = pt, xt = yt, $t = Oe, zt = Ye, Ce = je, _e = ce, Ht = bt, ae = Ge, Kt = Xe, Ot = $, me = Ze;
|
|
1225
|
+
function Yt(t, e) {
|
|
1226
|
+
const i = t.size, r = zt.getPositions(e);
|
|
1227
1227
|
for (let o = 0; o < r.length; o++) {
|
|
1228
1228
|
const n = r[o][0], a = r[o][1];
|
|
1229
1229
|
for (let s = -1; s <= 7; s++)
|
|
@@ -1232,15 +1232,15 @@ function Ot(t, e) {
|
|
|
1232
1232
|
a + l <= -1 || i <= a + l || (s >= 0 && s <= 6 && (l === 0 || l === 6) || l >= 0 && l <= 6 && (s === 0 || s === 6) || s >= 2 && s <= 4 && l >= 2 && l <= 4 ? t.set(n + s, a + l, !0, !0) : t.set(n + s, a + l, !1, !0));
|
|
1233
1233
|
}
|
|
1234
1234
|
}
|
|
1235
|
-
function
|
|
1235
|
+
function jt(t) {
|
|
1236
1236
|
const e = t.size;
|
|
1237
1237
|
for (let i = 8; i < e - 8; i++) {
|
|
1238
1238
|
const r = i % 2 === 0;
|
|
1239
1239
|
t.set(i, 6, r, !0), t.set(6, i, r, !0);
|
|
1240
1240
|
}
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1243
|
-
const i =
|
|
1242
|
+
function Jt(t, e) {
|
|
1243
|
+
const i = $t.getPositions(e);
|
|
1244
1244
|
for (let r = 0; r < i.length; r++) {
|
|
1245
1245
|
const o = i[r][0], n = i[r][1];
|
|
1246
1246
|
for (let a = -2; a <= 2; a++)
|
|
@@ -1248,20 +1248,20 @@ function jt(t, e) {
|
|
|
1248
1248
|
a === -2 || a === 2 || s === -2 || s === 2 || a === 0 && s === 0 ? t.set(o + a, n + s, !0, !0) : t.set(o + a, n + s, !1, !0);
|
|
1249
1249
|
}
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
1252
|
-
const i = t.size, r =
|
|
1251
|
+
function qt(t, e) {
|
|
1252
|
+
const i = t.size, r = ae.getEncodedBits(e);
|
|
1253
1253
|
let o, n, a;
|
|
1254
1254
|
for (let s = 0; s < 18; s++)
|
|
1255
1255
|
o = Math.floor(s / 3), n = s % 3 + i - 8 - 3, a = (r >> s & 1) === 1, t.set(o, n, a, !0), t.set(n, o, a, !0);
|
|
1256
1256
|
}
|
|
1257
|
-
function
|
|
1258
|
-
const r = t.size, o =
|
|
1257
|
+
function pe(t, e, i) {
|
|
1258
|
+
const r = t.size, o = Kt.getEncodedBits(e, i);
|
|
1259
1259
|
let n, a;
|
|
1260
1260
|
for (n = 0; n < 15; n++)
|
|
1261
1261
|
a = (o >> n & 1) === 1, n < 6 ? t.set(n, 8, a, !0) : n < 8 ? t.set(n + 1, 8, a, !0) : t.set(r - 15 + n, 8, a, !0), n < 8 ? t.set(8, r - n - 1, a, !0) : n < 9 ? t.set(8, 15 - n - 1 + 1, a, !0) : t.set(8, 15 - n - 1, a, !0);
|
|
1262
1262
|
t.set(r - 8, 8, 1, !0);
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1264
|
+
function Gt(t, e) {
|
|
1265
1265
|
const i = t.size;
|
|
1266
1266
|
let r = -1, o = i - 1, n = 7, a = 0;
|
|
1267
1267
|
for (let s = i - 1; s > 0; s -= 2)
|
|
@@ -1277,53 +1277,53 @@ function qt(t, e) {
|
|
|
1277
1277
|
}
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1281
|
-
const r = new
|
|
1280
|
+
function Qt(t, e, i) {
|
|
1281
|
+
const r = new Vt();
|
|
1282
1282
|
i.forEach(function(l) {
|
|
1283
|
-
r.put(l.mode.bit, 4), r.put(l.getLength(),
|
|
1283
|
+
r.put(l.mode.bit, 4), r.put(l.getLength(), Ot.getCharCountIndicator(l.mode, t)), l.write(r);
|
|
1284
1284
|
});
|
|
1285
|
-
const o =
|
|
1285
|
+
const o = de.getSymbolTotalCodewords(t), n = _e.getTotalCodewordsCount(t, e), a = (o - n) * 8;
|
|
1286
1286
|
for (r.getLengthInBits() + 4 <= a && r.put(0, 4); r.getLengthInBits() % 8 !== 0; )
|
|
1287
1287
|
r.putBit(0);
|
|
1288
1288
|
const s = (a - r.getLengthInBits()) / 8;
|
|
1289
1289
|
for (let l = 0; l < s; l++)
|
|
1290
1290
|
r.put(l % 2 ? 17 : 236, 8);
|
|
1291
|
-
return
|
|
1291
|
+
return Xt(r, t, e);
|
|
1292
1292
|
}
|
|
1293
|
-
function
|
|
1294
|
-
const r =
|
|
1293
|
+
function Xt(t, e, i) {
|
|
1294
|
+
const r = de.getSymbolTotalCodewords(e), o = _e.getTotalCodewordsCount(e, i), n = r - o, a = _e.getBlocksCount(e, i), s = r % a, l = a - s, f = Math.floor(r / a), g = Math.floor(n / a), B = g + 1, h = f - g, u = new Ht(h);
|
|
1295
1295
|
let w = 0;
|
|
1296
|
-
const v = new Array(a),
|
|
1296
|
+
const v = new Array(a), S = new Array(a);
|
|
1297
1297
|
let y = 0;
|
|
1298
1298
|
const d = new Uint8Array(t.buffer);
|
|
1299
1299
|
for (let A = 0; A < a; A++) {
|
|
1300
|
-
const
|
|
1301
|
-
v[A] = d.slice(w, w +
|
|
1300
|
+
const T = A < l ? g : B;
|
|
1301
|
+
v[A] = d.slice(w, w + T), S[A] = u.encode(v[A]), w += T, y = Math.max(y, T);
|
|
1302
1302
|
}
|
|
1303
1303
|
const c = new Uint8Array(r);
|
|
1304
|
-
let p = 0,
|
|
1305
|
-
for (
|
|
1306
|
-
for (
|
|
1307
|
-
|
|
1308
|
-
for (
|
|
1309
|
-
for (
|
|
1310
|
-
c[p++] =
|
|
1304
|
+
let p = 0, _, E;
|
|
1305
|
+
for (_ = 0; _ < y; _++)
|
|
1306
|
+
for (E = 0; E < a; E++)
|
|
1307
|
+
_ < v[E].length && (c[p++] = v[E][_]);
|
|
1308
|
+
for (_ = 0; _ < h; _++)
|
|
1309
|
+
for (E = 0; E < a; E++)
|
|
1310
|
+
c[p++] = S[E][_];
|
|
1311
1311
|
return c;
|
|
1312
1312
|
}
|
|
1313
|
-
function
|
|
1313
|
+
function Wt(t, e, i, r) {
|
|
1314
1314
|
let o;
|
|
1315
1315
|
if (Array.isArray(t))
|
|
1316
|
-
o =
|
|
1316
|
+
o = me.fromArray(t);
|
|
1317
1317
|
else if (typeof t == "string") {
|
|
1318
1318
|
let f = e;
|
|
1319
1319
|
if (!f) {
|
|
1320
|
-
const g =
|
|
1321
|
-
f =
|
|
1320
|
+
const g = me.rawSplit(t);
|
|
1321
|
+
f = ae.getBestVersionForData(g, i);
|
|
1322
1322
|
}
|
|
1323
|
-
o =
|
|
1323
|
+
o = me.fromString(t, f || 40);
|
|
1324
1324
|
} else
|
|
1325
1325
|
throw new Error("Invalid data");
|
|
1326
|
-
const n =
|
|
1326
|
+
const n = ae.getBestVersionForData(o, i);
|
|
1327
1327
|
if (!n)
|
|
1328
1328
|
throw new Error("The amount of data is too big to be stored in a QR Code");
|
|
1329
1329
|
if (!e)
|
|
@@ -1335,11 +1335,11 @@ The chosen QR Code version cannot contain this amount of data.
|
|
|
1335
1335
|
Minimum version required to store current data is: ` + n + `.
|
|
1336
1336
|
`
|
|
1337
1337
|
);
|
|
1338
|
-
const a =
|
|
1339
|
-
return
|
|
1338
|
+
const a = Qt(e, i, o), s = de.getSymbolSize(e), l = new xt(s);
|
|
1339
|
+
return Yt(l, e), jt(l), Jt(l, e), pe(l, i, 0), e >= 7 && qt(l, e), Gt(l, a), isNaN(r) && (r = Ce.getBestMask(
|
|
1340
1340
|
l,
|
|
1341
|
-
|
|
1342
|
-
)),
|
|
1341
|
+
pe.bind(null, l, i)
|
|
1342
|
+
)), Ce.applyMask(r, l), pe(l, i, r), {
|
|
1343
1343
|
modules: l,
|
|
1344
1344
|
version: e,
|
|
1345
1345
|
errorCorrectionLevel: i,
|
|
@@ -1347,13 +1347,13 @@ Minimum version required to store current data is: ` + n + `.
|
|
|
1347
1347
|
segments: o
|
|
1348
1348
|
};
|
|
1349
1349
|
}
|
|
1350
|
-
|
|
1350
|
+
He.create = function(e, i) {
|
|
1351
1351
|
if (typeof e > "u" || e === "")
|
|
1352
1352
|
throw new Error("No input text");
|
|
1353
|
-
let r =
|
|
1354
|
-
return typeof i < "u" && (r =
|
|
1353
|
+
let r = he.M, o, n;
|
|
1354
|
+
return typeof i < "u" && (r = he.from(i.errorCorrectionLevel, he.M), o = ae.from(i.version), n = Ce.from(i.maskPattern), i.toSJISFunc && de.setToSJISFunction(i.toSJISFunc)), Wt(e, o, r, n);
|
|
1355
1355
|
};
|
|
1356
|
-
var
|
|
1356
|
+
var tt = {}, Se = {};
|
|
1357
1357
|
(function(t) {
|
|
1358
1358
|
function e(i) {
|
|
1359
1359
|
if (typeof i == "number" && (i = i.toString()), typeof i != "string")
|
|
@@ -1398,15 +1398,15 @@ var et = {}, Me = {};
|
|
|
1398
1398
|
for (let u = 0; u < f; u++) {
|
|
1399
1399
|
let w = (h * f + u) * 4, v = n.color.light;
|
|
1400
1400
|
if (h >= g && u >= g && h < f - g && u < f - g) {
|
|
1401
|
-
const
|
|
1402
|
-
v = B[s[
|
|
1401
|
+
const S = Math.floor((h - g) / l), y = Math.floor((u - g) / l);
|
|
1402
|
+
v = B[s[S * a + y] ? 1 : 0];
|
|
1403
1403
|
}
|
|
1404
1404
|
r[w++] = v.r, r[w++] = v.g, r[w++] = v.b, r[w] = v.a;
|
|
1405
1405
|
}
|
|
1406
1406
|
};
|
|
1407
|
-
})(
|
|
1407
|
+
})(Se);
|
|
1408
1408
|
(function(t) {
|
|
1409
|
-
const e =
|
|
1409
|
+
const e = Se;
|
|
1410
1410
|
function i(o, n, a) {
|
|
1411
1411
|
o.clearRect(0, 0, n.width, n.height), n.style || (n.style = {}), n.height = a, n.width = a, n.style.height = a + "px", n.style.width = a + "px";
|
|
1412
1412
|
}
|
|
@@ -1428,34 +1428,34 @@ var et = {}, Me = {};
|
|
|
1428
1428
|
const f = t.render(n, a, l), g = l.type || "image/png", B = l.rendererOpts || {};
|
|
1429
1429
|
return f.toDataURL(g, B.quality);
|
|
1430
1430
|
};
|
|
1431
|
-
})(
|
|
1432
|
-
var
|
|
1433
|
-
const
|
|
1434
|
-
function
|
|
1431
|
+
})(tt);
|
|
1432
|
+
var nt = {};
|
|
1433
|
+
const Zt = Se;
|
|
1434
|
+
function Fe(t, e) {
|
|
1435
1435
|
const i = t.a / 255, r = e + '="' + t.hex + '"';
|
|
1436
1436
|
return i < 1 ? r + " " + e + '-opacity="' + i.toFixed(2).slice(1) + '"' : r;
|
|
1437
1437
|
}
|
|
1438
|
-
function
|
|
1438
|
+
function ye(t, e, i) {
|
|
1439
1439
|
let r = t + e;
|
|
1440
1440
|
return typeof i < "u" && (r += " " + i), r;
|
|
1441
1441
|
}
|
|
1442
|
-
function
|
|
1442
|
+
function en(t, e, i) {
|
|
1443
1443
|
let r = "", o = 0, n = !1, a = 0;
|
|
1444
1444
|
for (let s = 0; s < t.length; s++) {
|
|
1445
1445
|
const l = Math.floor(s % e), f = Math.floor(s / e);
|
|
1446
|
-
!l && !n && (n = !0), t[s] ? (a++, s > 0 && l > 0 && t[s - 1] || (r += n ?
|
|
1446
|
+
!l && !n && (n = !0), t[s] ? (a++, s > 0 && l > 0 && t[s - 1] || (r += n ? ye("M", l + i, 0.5 + f + i) : ye("m", o, 0), o = 0, n = !1), l + 1 < e && t[s + 1] || (r += ye("h", a), a = 0)) : o++;
|
|
1447
1447
|
}
|
|
1448
1448
|
return r;
|
|
1449
1449
|
}
|
|
1450
|
-
|
|
1451
|
-
const o =
|
|
1450
|
+
nt.render = function(e, i, r) {
|
|
1451
|
+
const o = Zt.getOptions(i), n = e.modules.size, a = e.modules.data, s = n + o.margin * 2, l = o.color.light.a ? "<path " + Fe(o.color.light, "fill") + ' d="M0 0h' + s + "v" + s + 'H0z"/>' : "", f = "<path " + Fe(o.color.dark, "stroke") + ' d="' + en(a, n, o.margin) + '"/>', g = 'viewBox="0 0 ' + s + " " + s + '"', h = '<svg xmlns="http://www.w3.org/2000/svg" ' + (o.width ? 'width="' + o.width + '" height="' + o.width + '" ' : "") + g + ' shape-rendering="crispEdges">' + l + f + `</svg>
|
|
1452
1452
|
`;
|
|
1453
1453
|
return typeof r == "function" && r(null, h), h;
|
|
1454
1454
|
};
|
|
1455
|
-
const
|
|
1456
|
-
function
|
|
1455
|
+
const tn = ht, Ee = He, ot = tt, nn = nt;
|
|
1456
|
+
function Te(t, e, i, r, o) {
|
|
1457
1457
|
const n = [].slice.call(arguments, 1), a = n.length, s = typeof n[a - 1] == "function";
|
|
1458
|
-
if (!s && !
|
|
1458
|
+
if (!s && !tn())
|
|
1459
1459
|
throw new Error("Callback required as last argument");
|
|
1460
1460
|
if (s) {
|
|
1461
1461
|
if (a < 2)
|
|
@@ -1480,15 +1480,15 @@ function Se(t, e, i, r, o) {
|
|
|
1480
1480
|
o(l);
|
|
1481
1481
|
}
|
|
1482
1482
|
}
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
return
|
|
1483
|
+
Z.create = Ee.create;
|
|
1484
|
+
Z.toCanvas = Te.bind(null, ot.render);
|
|
1485
|
+
Z.toDataURL = Te.bind(null, ot.renderToDataURL);
|
|
1486
|
+
Z.toString = Te.bind(null, function(t, e, i) {
|
|
1487
|
+
return nn.render(t, i);
|
|
1488
1488
|
});
|
|
1489
|
-
async function
|
|
1489
|
+
async function on(t, e = 350) {
|
|
1490
1490
|
try {
|
|
1491
|
-
return await
|
|
1491
|
+
return await Z.toDataURL(t, {
|
|
1492
1492
|
width: e,
|
|
1493
1493
|
margin: 0
|
|
1494
1494
|
});
|
|
@@ -1496,26 +1496,26 @@ async function nn(t, e = 350) {
|
|
|
1496
1496
|
console.error(i);
|
|
1497
1497
|
}
|
|
1498
1498
|
}
|
|
1499
|
-
var
|
|
1500
|
-
const
|
|
1499
|
+
var rn = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", marketingV1Portal: "https://marketing-v1.feedme.cc" };
|
|
1500
|
+
const sn = { class: "flex items-start" }, an = /* @__PURE__ */ b("div", null, [
|
|
1501
1501
|
/* @__PURE__ */ b("div", { class: "fm-typo-en-title-sm-800" }, "Link device"),
|
|
1502
1502
|
/* @__PURE__ */ b("div", { class: "fm-typo-en-body-sm-400" }, " Open your camera on your device to link counter app. ")
|
|
1503
|
-
], -1),
|
|
1503
|
+
], -1), ln = { class: "flex flex-col gap-16 mt-16" }, cn = ["src"], un = /* @__PURE__ */ Re({
|
|
1504
1504
|
__name: "LinkDeviceDialog",
|
|
1505
1505
|
setup(t) {
|
|
1506
|
-
const e =
|
|
1506
|
+
const e = be(), i = ze(), r = Ve(), o = z(), n = z(), a = rn.crmUrl, s = z(), l = ie(() => i.membership), f = ie(() => {
|
|
1507
1507
|
var h, u;
|
|
1508
1508
|
return `https://${(h = l.value) != null && h.url ? l.value.url : (u = l.value) == null ? void 0 : u.business}.${a}`;
|
|
1509
1509
|
});
|
|
1510
1510
|
async function g(h) {
|
|
1511
|
-
const u = await
|
|
1511
|
+
const u = await $e.getOtp(h);
|
|
1512
1512
|
return `${f.value}?link-device=${u.otp}`;
|
|
1513
1513
|
}
|
|
1514
1514
|
async function B(h) {
|
|
1515
1515
|
const u = await g(h);
|
|
1516
|
-
s.value = u, o.value = await
|
|
1516
|
+
s.value = u, o.value = await on(u);
|
|
1517
1517
|
}
|
|
1518
|
-
return
|
|
1518
|
+
return De(async () => {
|
|
1519
1519
|
if (await e.readLocations(), !e.locations.length) {
|
|
1520
1520
|
r.close();
|
|
1521
1521
|
return;
|
|
@@ -1523,22 +1523,22 @@ const rn = { class: "flex items-start" }, sn = /* @__PURE__ */ b("div", null, [
|
|
|
1523
1523
|
const h = e.locations[0]._id;
|
|
1524
1524
|
n.value = h, await B(h);
|
|
1525
1525
|
}), (h, u) => {
|
|
1526
|
-
const w = U("FmIcon"), v = U("FmSelect"),
|
|
1527
|
-
return V(),
|
|
1528
|
-
default:
|
|
1529
|
-
b("div",
|
|
1530
|
-
|
|
1531
|
-
|
|
1526
|
+
const w = U("FmIcon"), v = U("FmSelect"), S = U("FmButton"), y = U("FmCard");
|
|
1527
|
+
return V(), we(y, { class: "p-24 max-w-[350px]" }, {
|
|
1528
|
+
default: G(() => [
|
|
1529
|
+
b("div", sn, [
|
|
1530
|
+
an,
|
|
1531
|
+
M(w, {
|
|
1532
1532
|
name: "close",
|
|
1533
1533
|
onClick: u[0] || (u[0] = (d) => m(r).close()),
|
|
1534
1534
|
class: "cursor-pointer"
|
|
1535
1535
|
})
|
|
1536
1536
|
]),
|
|
1537
|
-
b("div",
|
|
1538
|
-
|
|
1537
|
+
b("div", ln, [
|
|
1538
|
+
M(v, {
|
|
1539
1539
|
modelValue: m(n),
|
|
1540
1540
|
"onUpdate:modelValue": [
|
|
1541
|
-
u[1] || (u[1] = (d) =>
|
|
1541
|
+
u[1] || (u[1] = (d) => ke(n) ? n.value = d : null),
|
|
1542
1542
|
B
|
|
1543
1543
|
],
|
|
1544
1544
|
label: "Select Location",
|
|
@@ -1547,12 +1547,12 @@ const rn = { class: "flex items-start" }, sn = /* @__PURE__ */ b("div", null, [
|
|
|
1547
1547
|
b("img", {
|
|
1548
1548
|
src: m(o),
|
|
1549
1549
|
class: "aspect-square w-full"
|
|
1550
|
-
}, null, 8,
|
|
1551
|
-
|
|
1550
|
+
}, null, 8, cn),
|
|
1551
|
+
M(S, {
|
|
1552
1552
|
class: "mx-auto",
|
|
1553
1553
|
variant: "plain",
|
|
1554
1554
|
icon: "content_copy",
|
|
1555
|
-
onClick: u[2] || (u[2] = (d) => m(
|
|
1555
|
+
onClick: u[2] || (u[2] = (d) => m(xe)(m(s)))
|
|
1556
1556
|
})
|
|
1557
1557
|
])
|
|
1558
1558
|
]),
|
|
@@ -1561,41 +1561,41 @@ const rn = { class: "flex items-start" }, sn = /* @__PURE__ */ b("div", null, [
|
|
|
1561
1561
|
};
|
|
1562
1562
|
}
|
|
1563
1563
|
});
|
|
1564
|
-
var
|
|
1565
|
-
const
|
|
1564
|
+
var dn = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", marketingV1Portal: "https://marketing-v1.feedme.cc" };
|
|
1565
|
+
const fn = { class: "hidden xs:flex items-center justify-between px-16 py-12 border-b border-fm-color-neutral-gray-100" }, gn = /* @__PURE__ */ b("div", { class: "fm-typo-en-title-md-800" }, "Setting", -1), hn = {
|
|
1566
1566
|
key: 0,
|
|
1567
1567
|
class: "px-24 gap-32 grid grid-cols-3 xs:pt-16"
|
|
1568
|
-
},
|
|
1569
|
-
/* @__PURE__ */
|
|
1568
|
+
}, mn = { class: "col-span-2 flex flex-col xs:col-span-3" }, pn = /* @__PURE__ */ b("div", { class: "fm-typo-en-title-sm-800" }, "Basic Information", -1), yn = { class: "space-y-24" }, wn = { class: "space-y-8" }, bn = /* @__PURE__ */ b("div", { class: "fm-typo-en-title-sm-800" }, "Counter App", -1), vn = { class: "fm-typo-body-lg-400" }, Cn = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, _n = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, En = { class: "space-y-8" }, Bn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, An = { class: "space-y-8" }, Mn = /* @__PURE__ */ b("div", { class: "fm-typo-en-title-sm-800" }, "SMS", -1), Sn = { class: "space-y-8" }, Tn = /* @__PURE__ */ b("div", { class: "fm-typo-en-title-sm-800" }, [
|
|
1569
|
+
/* @__PURE__ */ Q(" Free Credit as Discount "),
|
|
1570
1570
|
/* @__PURE__ */ b("span", { class: "fm-typo-en-body-md-400 text-fm-color-typo-error" }, "*POS v6.56 or above")
|
|
1571
|
-
], -1),
|
|
1571
|
+
], -1), In = { class: "space-y-8" }, Pn = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, Nn = { class: "space-y-8" }, Ln = /* @__PURE__ */ b("div", { class: "fm-typo-en-title-sm-800" }, "Activation Location", -1), Un = { class: "flex justify-end pb-24" }, Fn = { class: "col-span-1 space-y-8 xs:hidden" }, Rn = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-600" }, "Loyalty setting summary", -1), Dn = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Name ", -1), kn = { class: "fm-typo-en-body-lg-600" }, Vn = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Advertisement ", -1), xn = { class: "fm-typo-en-body-lg-600" }, $n = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Free Credit as Discount ", -1), zn = { class: "fm-typo-en-body-lg-600" }, Hn = /* @__PURE__ */ b("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " Activated locations ", -1), Kn = { class: "fm-typo-en-body-lg-600" }, oo = /* @__PURE__ */ Re({
|
|
1572
1572
|
__name: "Setting",
|
|
1573
1573
|
setup(t) {
|
|
1574
|
-
const e =
|
|
1574
|
+
const e = at(), i = be(), r = ze(), { global: o, minor: n } = it, a = Ve(), s = z(), l = z(!1), f = [
|
|
1575
1575
|
(d) => !d || d.length >= 6 || "Invalid URL format, please enter at least 6 characters",
|
|
1576
1576
|
(d) => !d || new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/).test(d) || "Invalid URL format, url should start with a letter or number and can only include lowercase letters, numbers, or hyphens"
|
|
1577
|
-
], g =
|
|
1577
|
+
], g = dn.appUrl, B = ie(() => {
|
|
1578
1578
|
var d;
|
|
1579
1579
|
return `https://${(d = s.value) == null ? void 0 : d.business}.${g}`;
|
|
1580
|
-
}), h = z(), u = z([]), w =
|
|
1580
|
+
}), h = z(), u = z([]), w = ie(() => {
|
|
1581
1581
|
var d, c;
|
|
1582
1582
|
return Math.min((((c = (d = s.value) == null ? void 0 : d.advertisements) == null ? void 0 : c.length) ?? 0) + 1, 5);
|
|
1583
1583
|
});
|
|
1584
1584
|
async function v() {
|
|
1585
1585
|
a.open({
|
|
1586
1586
|
title: "",
|
|
1587
|
-
dialogComponent:
|
|
1587
|
+
dialogComponent: un,
|
|
1588
1588
|
closeButton: !1
|
|
1589
1589
|
});
|
|
1590
1590
|
}
|
|
1591
|
-
async function
|
|
1592
|
-
await
|
|
1591
|
+
async function S(d) {
|
|
1592
|
+
await st.remove(
|
|
1593
1593
|
"Are you sure you want to unlink this device?",
|
|
1594
1594
|
"Unlink device",
|
|
1595
1595
|
"Unlink"
|
|
1596
1596
|
) && await n(
|
|
1597
1597
|
async () => {
|
|
1598
|
-
await
|
|
1598
|
+
await $e.unregisterDevice(d), await i.readLocationDevices();
|
|
1599
1599
|
},
|
|
1600
1600
|
{
|
|
1601
1601
|
message: "Unlinking device",
|
|
@@ -1607,22 +1607,22 @@ const dn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1607
1607
|
await n(
|
|
1608
1608
|
async () => {
|
|
1609
1609
|
var p;
|
|
1610
|
-
const d =
|
|
1610
|
+
const d = gt(s.value);
|
|
1611
1611
|
d.welcomeMessage && !((p = d.welcomeMessage) != null && p.content) && (d.welcomeMessage.content = "Hi there, you have been invited to join our membership");
|
|
1612
|
-
const c =
|
|
1613
|
-
h.value === null && c.image ? await
|
|
1614
|
-
|
|
1612
|
+
const c = lt.parse(d);
|
|
1613
|
+
h.value === null && c.image ? await K.delete(K.coverImagePath()) : h.value && (c.image = await K.update(
|
|
1614
|
+
K.coverImagePath(),
|
|
1615
1615
|
h.value
|
|
1616
1616
|
)), l.value ? c.advertisements = (await Promise.all(
|
|
1617
|
-
new Array(w.value - 1).fill(null).map(async (
|
|
1618
|
-
var
|
|
1619
|
-
const A = u.value[
|
|
1620
|
-
return A ? await
|
|
1621
|
-
|
|
1617
|
+
new Array(w.value - 1).fill(null).map(async (_, E) => {
|
|
1618
|
+
var T;
|
|
1619
|
+
const A = u.value[E];
|
|
1620
|
+
return A ? await K.update(
|
|
1621
|
+
K.advertisementPath(E, A),
|
|
1622
1622
|
A
|
|
1623
|
-
) : (
|
|
1623
|
+
) : (T = c.advertisements) == null ? void 0 : T[E];
|
|
1624
1624
|
})
|
|
1625
|
-
)).filter((
|
|
1625
|
+
)).filter((_) => _) : c.advertisements = [], await dt.update(c), await r.readMembership(), s.value = r.membership;
|
|
1626
1626
|
},
|
|
1627
1627
|
{
|
|
1628
1628
|
message: "Updating membership",
|
|
@@ -1630,36 +1630,36 @@ const dn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1630
1630
|
}
|
|
1631
1631
|
);
|
|
1632
1632
|
}
|
|
1633
|
-
return
|
|
1633
|
+
return De(async () => {
|
|
1634
1634
|
await o(async () => {
|
|
1635
1635
|
var d, c;
|
|
1636
1636
|
await i.readPremium(), await i.readLocations(), await i.readLocationDevices(), await r.readMembership(), s.value = r.membership, l.value = (((d = s.value.advertisements) == null ? void 0 : d.length) ?? 0) > 0, u.value = ((c = s.value.advertisements) == null ? void 0 : c.map(() => null)) ?? [];
|
|
1637
1637
|
});
|
|
1638
1638
|
}), (d, c) => {
|
|
1639
|
-
var
|
|
1640
|
-
const p = U("FmPageHead"),
|
|
1641
|
-
return V(),
|
|
1642
|
-
|
|
1639
|
+
var R, H;
|
|
1640
|
+
const p = U("FmPageHead"), _ = U("FmButton"), E = U("FmTextField"), A = U("FmCard"), T = U("FmPill"), P = U("FmSwitch"), N = U("FmMenuDivider");
|
|
1641
|
+
return V(), q(fe, null, [
|
|
1642
|
+
M(p, {
|
|
1643
1643
|
title: "Setting",
|
|
1644
1644
|
class: "xs:hidden"
|
|
1645
1645
|
}),
|
|
1646
|
-
b("div",
|
|
1647
|
-
|
|
1648
|
-
|
|
1646
|
+
b("div", fn, [
|
|
1647
|
+
gn,
|
|
1648
|
+
M(_, {
|
|
1649
1649
|
icon: "info",
|
|
1650
1650
|
variant: "tertiary"
|
|
1651
1651
|
})
|
|
1652
1652
|
]),
|
|
1653
|
-
m(s) ? (V(),
|
|
1654
|
-
b("div",
|
|
1655
|
-
|
|
1656
|
-
b("div",
|
|
1657
|
-
|
|
1653
|
+
m(s) ? (V(), q("div", hn, [
|
|
1654
|
+
b("div", mn, [
|
|
1655
|
+
pn,
|
|
1656
|
+
b("div", yn, [
|
|
1657
|
+
M(E, {
|
|
1658
1658
|
label: "Membership title",
|
|
1659
1659
|
modelValue: m(s).name,
|
|
1660
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
1660
|
+
"onUpdate:modelValue": c[0] || (c[0] = (C) => m(s).name = C)
|
|
1661
1661
|
}, null, 8, ["modelValue"]),
|
|
1662
|
-
|
|
1662
|
+
M(E, {
|
|
1663
1663
|
disabled: !0,
|
|
1664
1664
|
"model-value": m(s).business,
|
|
1665
1665
|
rules: f,
|
|
@@ -1667,107 +1667,110 @@ const dn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1667
1667
|
label: "Member app URL",
|
|
1668
1668
|
"helper-text": m(B),
|
|
1669
1669
|
placeholder: m(s).business.toString(),
|
|
1670
|
-
"onUpdate:modelValue": c[2] || (c[2] = (
|
|
1670
|
+
"onUpdate:modelValue": c[2] || (c[2] = (C) => m(s).url = C)
|
|
1671
1671
|
}, {
|
|
1672
|
-
prepend:
|
|
1673
|
-
|
|
1672
|
+
prepend: G(() => [
|
|
1673
|
+
Q(" https:// ")
|
|
1674
1674
|
]),
|
|
1675
|
-
append:
|
|
1676
|
-
|
|
1677
|
-
|
|
1675
|
+
append: G(() => [
|
|
1676
|
+
Q(" ." + k(m(g)) + " ", 1),
|
|
1677
|
+
M(_, {
|
|
1678
1678
|
icon: "content_copy",
|
|
1679
1679
|
variant: "tertiary",
|
|
1680
|
-
onClick: c[1] || (c[1] = (
|
|
1680
|
+
onClick: c[1] || (c[1] = (C) => m(xe)(m(B)))
|
|
1681
1681
|
})
|
|
1682
1682
|
]),
|
|
1683
1683
|
_: 1
|
|
1684
1684
|
}, 8, ["model-value", "helper-text", "placeholder"]),
|
|
1685
|
-
|
|
1685
|
+
M(Ne, {
|
|
1686
1686
|
label: "Cover image",
|
|
1687
1687
|
class: "w-2/3 xs:w-full",
|
|
1688
1688
|
"image-fit": "cover",
|
|
1689
1689
|
"aspect-ratio": "3/1",
|
|
1690
1690
|
thumbnail: m(s).image || void 0,
|
|
1691
|
-
"onUpdate:file": c[3] || (c[3] = async (
|
|
1692
|
-
h.value =
|
|
1691
|
+
"onUpdate:file": c[3] || (c[3] = async (C) => {
|
|
1692
|
+
h.value = C, C || (m(s).image = null);
|
|
1693
1693
|
})
|
|
1694
1694
|
}, null, 8, ["thumbnail"]),
|
|
1695
|
-
b("div",
|
|
1696
|
-
|
|
1697
|
-
|
|
1695
|
+
b("div", wn, [
|
|
1696
|
+
bn,
|
|
1697
|
+
M(_, {
|
|
1698
1698
|
variant: "plain",
|
|
1699
1699
|
icon: "link",
|
|
1700
1700
|
label: "Link Device",
|
|
1701
1701
|
onClick: v
|
|
1702
1702
|
}),
|
|
1703
|
-
(V(!0),
|
|
1704
|
-
key:
|
|
1703
|
+
(V(!0), q(fe, null, Ie(m(i).locationDevices, (C, L) => (V(), we(A, {
|
|
1704
|
+
key: L,
|
|
1705
1705
|
variant: "outlined",
|
|
1706
1706
|
class: "flex items-center justify-between px-16 py-12"
|
|
1707
1707
|
}, {
|
|
1708
|
-
default:
|
|
1708
|
+
default: G(() => [
|
|
1709
1709
|
b("div", null, [
|
|
1710
|
-
b("p",
|
|
1711
|
-
b("p",
|
|
1710
|
+
b("p", vn, k(C.name || `Device ${C._id}`), 1),
|
|
1711
|
+
b("p", Cn, " Activation date: " + k(m(rt)(m(ft)(C._id.toString())).format(
|
|
1712
1712
|
"D MMM YYYY"
|
|
1713
1713
|
)), 1),
|
|
1714
|
-
b("p",
|
|
1714
|
+
b("p", _n, " Linked location: " + k(m(i).locations.find((D) => D._id == C.location).name), 1)
|
|
1715
1715
|
]),
|
|
1716
|
-
|
|
1716
|
+
M(_, {
|
|
1717
1717
|
icon: "link_off",
|
|
1718
1718
|
variant: "tertiary",
|
|
1719
|
-
onClick: (D) =>
|
|
1719
|
+
onClick: (D) => S(C._id)
|
|
1720
1720
|
}, null, 8, ["onClick"])
|
|
1721
1721
|
]),
|
|
1722
1722
|
_: 2
|
|
1723
1723
|
}, 1024))), 128))
|
|
1724
1724
|
]),
|
|
1725
1725
|
b("div", En, [
|
|
1726
|
-
|
|
1727
|
-
|
|
1726
|
+
b("div", Bn, [
|
|
1727
|
+
Q(" Advertisement "),
|
|
1728
|
+
M(T, { variant: "premium" })
|
|
1729
|
+
]),
|
|
1730
|
+
M(P, {
|
|
1728
1731
|
modelValue: m(l),
|
|
1729
|
-
"onUpdate:modelValue": c[4] || (c[4] = (
|
|
1732
|
+
"onUpdate:modelValue": c[4] || (c[4] = (C) => ke(l) ? l.value = C : null),
|
|
1730
1733
|
label: "Advertisement",
|
|
1731
1734
|
sublabel: "This will be show on FeedMe ordering app",
|
|
1732
1735
|
"label-placement": "right",
|
|
1733
1736
|
disabled: !m(i).isPremium,
|
|
1734
1737
|
value: ""
|
|
1735
1738
|
}, null, 8, ["modelValue", "disabled"]),
|
|
1736
|
-
m(l) ? (V(),
|
|
1739
|
+
m(l) ? (V(), q("div", {
|
|
1737
1740
|
class: "flex items-center gap-8 flex-wrap xs:grid xs:grid-cols-2 xs:overflow-x-scroll xs:w-full",
|
|
1738
1741
|
key: m(w)
|
|
1739
1742
|
}, [
|
|
1740
|
-
(V(!0),
|
|
1741
|
-
var D,
|
|
1742
|
-
return V(),
|
|
1743
|
+
(V(!0), q(fe, null, Ie(m(w), (C, L) => {
|
|
1744
|
+
var D, te;
|
|
1745
|
+
return V(), we(Ne, {
|
|
1743
1746
|
class: "w-[200px]",
|
|
1744
1747
|
"image-fit": "cover",
|
|
1745
1748
|
label: "",
|
|
1746
1749
|
"aspect-ratio": "2/3",
|
|
1747
|
-
thumbnail: (
|
|
1750
|
+
thumbnail: (te = (D = m(s)) == null ? void 0 : D.advertisements) == null ? void 0 : te[L],
|
|
1748
1751
|
accept: ".png, .jpg, .jpeg, .mp4, .gif",
|
|
1749
1752
|
"recommended-size": "Recommended 4:5 ratio / 1080px x 1350px",
|
|
1750
|
-
file: m(u)[
|
|
1751
|
-
"onUpdate:file": (
|
|
1752
|
-
m(s).advertisements || (m(s).advertisements = []),
|
|
1753
|
+
file: m(u)[L] ?? void 0,
|
|
1754
|
+
"onUpdate:file": (ne) => {
|
|
1755
|
+
m(s).advertisements || (m(s).advertisements = []), ne ? (m(s).advertisements[L] = "", m(u)[L] = ne) : (m(s).advertisements.splice(L, 1), m(u).splice(L, 1));
|
|
1753
1756
|
}
|
|
1754
1757
|
}, null, 8, ["thumbnail", "file", "onUpdate:file"]);
|
|
1755
1758
|
}), 256))
|
|
1756
|
-
])) :
|
|
1759
|
+
])) : Pe("", !0)
|
|
1757
1760
|
]),
|
|
1758
|
-
b("div",
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
"model-value": ((
|
|
1761
|
+
b("div", An, [
|
|
1762
|
+
Mn,
|
|
1763
|
+
M(E, {
|
|
1764
|
+
"model-value": ((R = m(s)) == null ? void 0 : R.brand) || "",
|
|
1762
1765
|
"max-length": 15,
|
|
1763
1766
|
label: "Brand Name",
|
|
1764
1767
|
"show-word-count": "",
|
|
1765
|
-
"helper-text": `RM 0 ${((
|
|
1766
|
-
"onUpdate:modelValue": c[5] || (c[5] = (
|
|
1768
|
+
"helper-text": `RM 0 ${((H = m(s)) == null ? void 0 : H.brand) || ""}: YOUR CUSTOMER MESSAGE`,
|
|
1769
|
+
"onUpdate:modelValue": c[5] || (c[5] = (C) => m(s).brand = C)
|
|
1767
1770
|
}, null, 8, ["model-value", "helper-text"]),
|
|
1768
|
-
|
|
1771
|
+
M(ut, {
|
|
1769
1772
|
modelValue: m(s).welcomeMessage,
|
|
1770
|
-
"onUpdate:modelValue": c[6] || (c[6] = (
|
|
1773
|
+
"onUpdate:modelValue": c[6] || (c[6] = (C) => m(s).welcomeMessage = C),
|
|
1771
1774
|
variables: [
|
|
1772
1775
|
"user.name",
|
|
1773
1776
|
"user.gender",
|
|
@@ -1778,38 +1781,42 @@ const dn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1778
1781
|
placeholder: "Hi there, you have been invited to join membership"
|
|
1779
1782
|
}, null, 8, ["modelValue"])
|
|
1780
1783
|
]),
|
|
1781
|
-
b("div",
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
+
b("div", Sn, [
|
|
1785
|
+
Tn,
|
|
1786
|
+
M(P, {
|
|
1784
1787
|
"model-value": m(s).freeCreditAsDiscount ?? !1,
|
|
1785
|
-
"onUpdate:modelValue": c[7] || (c[7] = (
|
|
1788
|
+
"onUpdate:modelValue": c[7] || (c[7] = (C) => m(s).freeCreditAsDiscount = C),
|
|
1786
1789
|
label: "Free Credit as Discount",
|
|
1787
1790
|
sublabel: "When enabled, this will allow free credit to be used as discount in the bill (POS >=v6.56)",
|
|
1788
1791
|
"label-placement": "right",
|
|
1789
1792
|
value: ""
|
|
1790
1793
|
}, null, 8, ["model-value"])
|
|
1791
1794
|
]),
|
|
1792
|
-
b("div",
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
+
b("div", In, [
|
|
1796
|
+
b("div", Pn, [
|
|
1797
|
+
Q(" Member Card "),
|
|
1798
|
+
M(T, { variant: "premium" })
|
|
1799
|
+
]),
|
|
1800
|
+
M(P, {
|
|
1795
1801
|
"model-value": m(s).cardEnable ?? !1,
|
|
1796
|
-
"onUpdate:modelValue": c[8] || (c[8] = (
|
|
1802
|
+
"onUpdate:modelValue": c[8] || (c[8] = (C) => m(s).cardEnable = C),
|
|
1797
1803
|
label: "",
|
|
1798
1804
|
sublabel: "Allow member to bind card via member app",
|
|
1799
1805
|
"label-placement": "right",
|
|
1800
|
-
value: ""
|
|
1801
|
-
|
|
1806
|
+
value: "",
|
|
1807
|
+
disabled: !m(i).isPremium
|
|
1808
|
+
}, null, 8, ["model-value", "disabled"])
|
|
1802
1809
|
]),
|
|
1803
|
-
b("div",
|
|
1804
|
-
|
|
1805
|
-
|
|
1810
|
+
b("div", Nn, [
|
|
1811
|
+
Ln,
|
|
1812
|
+
M(ct, {
|
|
1806
1813
|
label: "Select restaurant",
|
|
1807
1814
|
"model-value": m(s).targetLocation ?? null,
|
|
1808
|
-
"onUpdate:modelValue": c[9] || (c[9] = (
|
|
1815
|
+
"onUpdate:modelValue": c[9] || (c[9] = (C) => m(s).targetLocation = C)
|
|
1809
1816
|
}, null, 8, ["model-value"])
|
|
1810
1817
|
]),
|
|
1811
|
-
b("div",
|
|
1812
|
-
|
|
1818
|
+
b("div", Un, [
|
|
1819
|
+
M(_, {
|
|
1813
1820
|
label: "Update",
|
|
1814
1821
|
type: "button",
|
|
1815
1822
|
onClick: y,
|
|
@@ -1819,32 +1826,32 @@ const dn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1819
1826
|
])
|
|
1820
1827
|
])
|
|
1821
1828
|
]),
|
|
1822
|
-
b("div",
|
|
1823
|
-
|
|
1829
|
+
b("div", Fn, [
|
|
1830
|
+
M(A, {
|
|
1824
1831
|
variant: "outlined",
|
|
1825
1832
|
class: "flex flex-col p-24 gap-8"
|
|
1826
1833
|
}, {
|
|
1827
|
-
default:
|
|
1828
|
-
var
|
|
1834
|
+
default: G(() => {
|
|
1835
|
+
var C, L, D;
|
|
1829
1836
|
return [
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
b("div", null, [
|
|
1833
|
-
Rn,
|
|
1834
|
-
b("div", Fn, k(m(s).name), 1)
|
|
1835
|
-
]),
|
|
1837
|
+
Rn,
|
|
1838
|
+
M(N, { class: "my-4" }),
|
|
1836
1839
|
b("div", null, [
|
|
1837
1840
|
Dn,
|
|
1838
|
-
b("div", kn, k(
|
|
1841
|
+
b("div", kn, k(m(s).name), 1)
|
|
1839
1842
|
]),
|
|
1840
1843
|
b("div", null, [
|
|
1841
1844
|
Vn,
|
|
1842
|
-
b("div", xn, k(m(s).
|
|
1845
|
+
b("div", xn, k((((C = m(s).advertisements) == null ? void 0 : C.length) ?? 0) || "No advertisments"), 1)
|
|
1843
1846
|
]),
|
|
1844
1847
|
b("div", null, [
|
|
1845
1848
|
$n,
|
|
1846
|
-
b("div", zn, k(
|
|
1847
|
-
|
|
1849
|
+
b("div", zn, k(m(s).freeCreditAsDiscount ? "Enabled" : "Disabled"), 1)
|
|
1850
|
+
]),
|
|
1851
|
+
b("div", null, [
|
|
1852
|
+
Hn,
|
|
1853
|
+
b("div", Kn, k(!m(s).targetLocation || m(s).targetLocation.length == m(be)().locations.length ? "All locations" : (D = (L = m(s)) == null ? void 0 : L.targetLocation) == null ? void 0 : D.map(
|
|
1854
|
+
(te) => m(i).locations.find((ne) => ne._id == te).name
|
|
1848
1855
|
).join(", ")), 1)
|
|
1849
1856
|
])
|
|
1850
1857
|
];
|
|
@@ -1852,11 +1859,11 @@ const dn = { class: "hidden xs:flex items-center justify-between px-16 py-12 bor
|
|
|
1852
1859
|
_: 1
|
|
1853
1860
|
})
|
|
1854
1861
|
])
|
|
1855
|
-
])) :
|
|
1862
|
+
])) : Pe("", !0)
|
|
1856
1863
|
], 64);
|
|
1857
1864
|
};
|
|
1858
1865
|
}
|
|
1859
1866
|
});
|
|
1860
1867
|
export {
|
|
1861
|
-
|
|
1868
|
+
oo as default
|
|
1862
1869
|
};
|