@feedmepos/mf-connect 0.1.123-prod → 0.1.124-dev
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-BOQIQ8Jz.js → App-C7BnLHSt.js} +502 -493
- package/dist/AuditLogs-BPKQdFga.js +2016 -0
- package/dist/{Bin-BethwelP.js → Bin-Bq7yY0I2.js} +8 -8
- package/dist/{Broadcast-CHIXRBHf.js → Broadcast-D52rPmVl.js} +22 -21
- package/dist/{CampaignAnalytic-BaEeAhnr.js → CampaignAnalytic-DpiWtzIp.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CYo7Rpes.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B1eAAN64.js} +8 -9
- package/dist/{Card-C075nS85.js → Card-BQc7vud2.js} +22 -22
- package/dist/{Collections-BsQ_kcoJ.js → Collections--VzkneGp.js} +197 -185
- package/dist/{Credit-BsZlyp-x.js → Credit-DhfAcw-p.js} +21 -20
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CcytVckH.js → DateRangeChip.vue_vue_type_script_setup_true_lang-D2Csdg-3.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DFz_2GZ1.js +4439 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Da4snauu.js → EffectSheet.vue_vue_type_style_index_0_lang-Cr2_XbyY.js} +16 -16
- package/dist/{Experience-B9iubxQ5.js → Experience-CUwbHfo5.js} +32 -31
- package/dist/{FileSaver.min-1XYUiJrd.js → FileSaver.min-DvZpiwMd.js} +1 -1
- package/dist/{Game-B3ZTJcjj.js → Game-CI5-y0JJ.js} +19 -18
- package/dist/{GiftCardSetup-DpLDBOS2.js → GiftCardSetup-CGacqQ0j.js} +31 -31
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-hNbexVdE.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-B6POxDLJ.js} +7 -7
- package/dist/{Goals--dysejOz.js → Goals-fqJY9iMx.js} +4 -4
- package/dist/Grab-CAx1cCE4.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BI1EQciE.js → ImageInput.vue_vue_type_script_setup_true_lang-DTKf7uR-.js} +1 -1
- package/dist/{Index-v2J17JTP.js → Index-CT1Gnjsv.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-B1vTvUTW.js → LocationPicker.vue_vue_type_script_setup_true_lang-BRQ12Yum.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Dz0VI7PT.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BRzuWJ1Y.js} +1 -1
- package/dist/{LoyaltyDashboard-BI_khH0P.js → LoyaltyDashboard-IJIDEBWf.js} +15 -15
- package/dist/{MainLayout-On2p0hEA.js → MainLayout-BMghr-wf.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-DSdJORyW.js → MainLayout.vue_vue_type_script_setup_true_lang-BitJKgvd.js} +3 -3
- package/dist/{Marketing-Pqa4USnd.js → Marketing-Ckr9cp3w.js} +4 -4
- package/dist/{MarketingMaterialEdit-IRRsEF8W.js → MarketingMaterialEdit-BIZnE8CY.js} +214 -211
- package/dist/{Member-p1zyrY20.js → Member-d1nPxr74.js} +7 -7
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DI4XM_rJ.js +1281 -0
- package/dist/{MemberImportHistory-BwkJJj_u.js → MemberImportHistory-CxX9iYhV.js} +7 -7
- package/dist/{MemberList-Ci8K7HI4.js → MemberList-DUzYpxhj.js} +103 -105
- package/dist/{MemberTransactions-D8xLWGcw.js → MemberTransactions-BFM3ybeo.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CvCuVDR-.js → MessageInput.vue_vue_type_script_setup_true_lang-B5j0YBix.js} +12 -12
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DzrAjDGZ.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DsSHSbBB.js} +1 -1
- package/dist/{Mission-JpI-0kHJ.js → Mission-De9BF5wb.js} +22 -21
- package/dist/{Overview-92S0hiOS.js → Overview-DeHo3gef.js} +145 -144
- package/dist/{Overview-BXCQnl4x.js → Overview-Pmxqv6qp.js} +20 -20
- package/dist/{Point-krrZWESo.js → Point-DE_Cc85N.js} +22 -21
- package/dist/{Promotion-BjlFWrMI.js → Promotion-cZDzgho4.js} +137 -131
- package/dist/{Queue-FW3I2guh.js → Queue-DmDbrtTk.js} +45 -45
- package/dist/{Record-Hj3_FQp6.js → Record-uxNNOvmK.js} +9 -9
- package/dist/{Review-CBL5Wga7.js → Review-CIIn_Bdx.js} +2 -2
- package/dist/ReviewFacebookCallback-CO6FxHzc.js +225 -0
- package/dist/{ReviewGoogleCallback-CAqc1gmT.js → ReviewGoogleCallback-B7kmGwb_.js} +5 -5
- package/dist/{Reward-UN-LYZPR.js → Reward-Bj1snFu8.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-C4deW4H6.js → RewardGroup.vue_vue_type_script_setup_true_lang-BO-36dE4.js} +13 -13
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-b7ZEMd4s.js +1923 -0
- package/dist/{Segment-D9ehFadR.js → Segment-BgJgWa6C.js} +303 -306
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-D7PbDKI7.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-D2TDoZgQ.js} +14 -14
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DWXfOk-I.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CEBH11hR.js} +4 -4
- package/dist/Setting-DpEI72mW.js +574 -0
- package/dist/{SettingAdvertisements-BNWTSQ14.js → SettingAdvertisements-vdUtIXwC.js} +12 -12
- package/dist/Settings-C6yJ1WEB.js +286 -0
- package/dist/{Store-vRzLqmIu.js → Store-DgltT0RA.js} +28 -28
- package/dist/{StoreRewards-DitATf4s.js → StoreRewards-BXH_5cYL.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DqlluwMB.js +1319 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DjCO9U0c.js +7007 -0
- package/dist/{Tier-B0JGxXei.js → Tier-CqfHGUX0.js} +2575 -687
- package/dist/{Title-DBLK191p.js → Title-B5VnUNiS.js} +95 -94
- package/dist/{Transaction-CUthGjH1.js → Transaction-BZh1Q9Lj.js} +2 -2
- package/dist/Upselling-Cf24ub-9.js +1055 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CUCR6aEY.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Buj7CRlQ.js} +26 -26
- package/dist/{Voucher-DsyOteEs.js → Voucher-CZJdV2Ok.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Ddbutv4Y.js → VoucherEditor.vue_vue_type_script_setup_true_lang-65x2VrpD.js} +12 -12
- package/dist/{WhatsappAccount-PWKWg15w.js → WhatsappAccount-DsRilNC5.js} +6 -6
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-HUSiUfoc.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-Bn26qwx5.js} +1 -1
- package/dist/{WhatsappBot-CMFcJj1b.js → WhatsappBot-CpzMaTss.js} +6 -6
- package/dist/{WhatsappBotLogs-CVOw3VxD.js → WhatsappBotLogs-DRF8VufQ.js} +6 -6
- package/dist/{WhatsappBotSettings-ouG9rSoI.js → WhatsappBotSettings-DSUPGC-p.js} +4 -4
- package/dist/{WhatsappLayout-CHtKQYog.js → WhatsappLayout-BCWYcQmD.js} +3 -3
- package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-B0tpwJ9B.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DyxyISRP.js} +3 -3
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CEytppMm.js → ZodTextField.vue_vue_type_script_setup_true_lang-Db-Z7cY_.js} +2 -2
- package/dist/{app-CZGZKKye.js → app-BQeODViN.js} +14861 -15017
- package/dist/app.js +4 -3
- package/dist/{base.export-Cxm_LrqA.js → base.export-kSFLDDoC.js} +2 -2
- package/dist/{business-CieIljvm.js → business-EP-Do3Ew.js} +1 -1
- package/dist/{campaign-DhN6zKES.js → campaign-BjnUPowX.js} +34 -28
- package/dist/{campaign-DWClF3jI.js → campaign-C8GgaCub.js} +121 -94
- package/dist/{campaign.enum-BqekIiiN.js → campaign.enum-Dx-Zo68Q.js} +2 -1
- package/dist/campaign.fn-DQ--gL4B.js +776 -0
- package/dist/{collection.fn-Cep8tuk5.js → collection.fn-BhXecwh5.js} +2 -2
- package/dist/{currency-DhwsYY32.js → currency-CGMNh1Q_.js} +1 -1
- package/dist/duplicateCampaign-icqF8Na9.js +51 -0
- package/dist/{effect-BwOOpJRh.js → effect-Bc6oGIWd.js} +1 -1
- package/dist/{email-addresses-DZB2oj9y.js → email-addresses-B3KWfUMk.js} +25 -25
- package/dist/{feature-flag-BSpbhSMn.js → feature-flag-HhjvSuDm.js} +171 -185
- package/dist/google-BQK68wbe.js +5 -0
- package/dist/{helper-D_4T4gbM.js → helper-D1BYvcED.js} +1 -1
- package/dist/{index-DgCpTG1m.js → index-BIBcfAw5.js} +1 -1
- package/dist/{index-BpnjNIh1.js → index-BkevK_Hp.js} +1 -1
- package/dist/{index-D5OOlgos.js → index-Br2SLVsn.js} +608 -251
- package/dist/{index-BYipoHQc.js → index-Bunp1bt_.js} +1 -1
- package/dist/{index-BDKVZZR0.js → index-C-46QHFh.js} +380 -234
- package/dist/{index-MCyDYhZI.js → index-C3MK8Twg.js} +1 -1
- package/dist/{index-DVir0ptH.js → index-CsYTLmPa.js} +4 -4
- package/dist/{index-Dh815w-7.js → index-D2TnjKPP.js} +23 -23
- package/dist/{index-CyYV4eem.js → index-DCC3pLug.js} +19 -6
- package/dist/{index-X5Gzu80O.js → index-DOSuhtdE.js} +1 -1
- package/dist/{index-FrOuWhLi.js → index-DeqpfWLa.js} +3 -3
- package/dist/{index-Df4ox2zj.js → index-DiCgGQoC.js} +2 -2
- package/dist/{index-tUxF4g8G.js → index-GQv1_jaJ.js} +2 -2
- package/dist/{index-rcMo_-nr.js → index-Ptcqv0W6.js} +2 -2
- package/dist/{index-CY88cQHU.js → index-VLFerh-X.js} +10 -10
- package/dist/{index-DcTRgcug.js → index-VyoufKYY.js} +1 -1
- package/dist/{index-BtN3vRvA.js → index-Yw4M7v7m.js} +2699 -2614
- package/dist/{index-DcO1O6fl.js → index-cPPWotJe.js} +10 -10
- package/dist/{index-FKxe6jKI.js → index-gMrtUwSD.js} +316 -316
- package/dist/{index-CIJKKs_J.js → index-oIo5Cful.js} +533 -462
- package/dist/{index.esm2017-DSF7lxrn.js → index.esm2017-DUZpLdEB.js} +93 -93
- package/dist/{loading-B4qq_74t.js → loading-DhpcQgdj.js} +1 -1
- package/dist/{lodash-BuScZ_TM.js → lodash-r4AR7GJC.js} +1 -1
- package/dist/{member-import-DyM1Xskc.js → member-import-CogEef9H.js} +1 -1
- package/dist/{membership-C77S6FIb.js → membership-BQFkjRjs.js} +2 -2
- package/dist/{money-Dcr44NhN.js → money-Ifqd4pyC.js} +1 -1
- package/dist/{number-C2u_79r4.js → number-C9Tw_Ncm.js} +1 -1
- package/dist/objectid-D7dqM1a3.js +145 -0
- package/dist/{onboarding-Chxkor1U.js → onboarding-D4dm_rxU.js} +36 -36
- package/dist/{onboardingSetup-BvL9lW9U.js → onboardingSetup-DtNZUoRr.js} +2 -2
- package/dist/{plugins-dnLWrrhC.js → plugins-DGI9Fkiu.js} +3 -3
- package/dist/{reward-DVHKTXQL.js → reward-DTtejZqM.js} +1 -1
- package/dist/{rule-IYgreBdC.js → rule-C4N3ce3c.js} +572 -492
- package/dist/style.css +1 -1
- package/dist/template-YhWRyNGp.js +227 -0
- package/dist/{timezone-Cdp7cU32.js → timezone-5rYhX7XZ.js} +1 -1
- package/dist/{transaction.fn-kl4EZybB.js → transaction.fn-Ba_U7HdT.js} +2 -2
- package/dist/{trigger-C1m8eupI.js → trigger-B8I1aO6Y.js} +9 -9
- package/dist/{useMarketingMaterialActions-m5OLWGoL.js → useMarketingMaterialActions-CTOFHmlL.js} +4 -4
- package/dist/{usePagination-DX82vEDi.js → usePagination-3wAPVCOp.js} +1 -1
- package/dist/{user-DBndrlMY.js → user-Ds4DW_-Y.js} +1 -1
- package/dist/vue-i18n-Bqlt_-jA.js +2365 -0
- package/dist/{xlsx-ColLmoRB.js → xlsx-xlOCvuAq.js} +166 -166
- package/dist/{zod-CHmP8TTi.js → zod-GVNjvrpT.js} +1 -1
- package/package.json +6 -2
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-qX_uFelR.js +0 -3493
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DyvEDRBE.js +0 -1308
- package/dist/ReviewFacebookCallback-31bFMGu3.js +0 -238
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BbzRH7BF.js +0 -1884
- package/dist/Setting-DGoNxCsO.js +0 -578
- package/dist/Settings-CQ67orRm.js +0 -179
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DEP0FuoM.js +0 -1297
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DndMZr1k.js +0 -142
- package/dist/Upselling-CZLmpsdx.js +0 -200
- package/dist/campaign.fn-CKTsVS5U.js +0 -776
- package/dist/google-C3S8u0mT.js +0 -4
- package/dist/objectid-nYLSIO_I.js +0 -145
- package/dist/rule-builder-QC_xPC4L.js +0 -102
- package/dist/template-COvkfF2w.js +0 -275
- package/dist/vue-i18n-FBUIkfn5.js +0 -2365
package/dist/google-C3S8u0mT.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const l = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2048%2048'%3e%3cpath%20fill='%23EA4335'%20d='M24%209.5c3.14%200%205.95%201.08%208.17%202.86l6.08-6.08C34.46%203.1%2029.5%201%2024%201%2014.82%201%206.96%206.48%203.22%2014.44l7.08%205.5C12.08%2013.66%2017.58%209.5%2024%209.5z'/%3e%3cpath%20fill='%234285F4'%20d='M46.52%2024.5c0-1.64-.15-3.22-.42-4.74H24v8.98h12.7c-.55%202.96-2.2%205.46-4.68%207.14l7.18%205.58C43.18%2037.36%2046.52%2031.38%2046.52%2024.5z'/%3e%3cpath%20fill='%23FBBC05'%20d='M10.3%2028.56A14.56%2014.56%200%200%201%209.5%2024c0-1.58.27-3.1.76-4.52l-7.08-5.5A23.94%2023.94%200%200%200%200%2024c0%203.86.92%207.5%202.56%2010.72l7.74-6.16z'/%3e%3cpath%20fill='%2334A853'%20d='M24%2047c5.5%200%2010.12-1.82%2013.48-4.94l-7.18-5.58c-1.82%201.22-4.14%201.94-6.3%201.94-6.42%200-11.92-4.16-13.7-9.86l-7.74%206.16C6.96%2041.52%2014.82%2047%2024%2047z'/%3e%3cpath%20fill='none'%20d='M0%200h48v48H0z'/%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
l as g
|
|
4
|
-
};
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { b as l } from "./app-CZGZKKye.js";
|
|
2
|
-
var o = { env: { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_6c68f5cb-5d2c-44b6-8deb-4fe98318f24c", npm_package_dependencies_zod: "3.22.4", npm_package_devDependencies__types_node: "^18.19.41", DOTNET_NOLOGO: "1", npm_package_dependencies_pinia: "^2.1.7", npm_package_dependencies_vite_plugin_vue_devtools: "^7.6.4", npm_package_devDependencies_vitest: "^2.1.9", USER: "runner", npm_config_user_agent: "pnpm/9.15.9 npm/? node/v20.20.2 linux x64", CI: "true", npm_package_dependencies_vue: "^3.5.13", USE_BAZEL_FALLBACK_VERSION: "silent:", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_6c68f5cb-5d2c-44b6-8deb-4fe98318f24c", PIPX_HOME: "/opt/pipx", npm_package_devDependencies_vite: "^5.3.4", npm_node_execpath: "/opt/hostedtoolcache/node/20.20.2/x64/bin/node", SHLVL: "1", HCA_CLOUD_PROVIDER: "azure", npm_package_files_0: "dist", HOME: "/home/runner", npm_package_dependencies_moment_timezone: "^0.6.0", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_scripts_build_mf_dev: "vite build --mode fmmf", npm_package_dependencies__types_qrcode: "^1.5.5", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "feedmepos", npm_package_scripts_build_mf_prod: "vite build --mode fmmf:prod", npm_package_dependencies_change_case: "^5.4.4", NODE_OPTIONS: "--max-old-space-size=8096", GRADLE_HOME: "/usr/share/gradle-9.8.2", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/30.0.16248370", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", GITHUB_RETENTION_DAYS: "90", npm_package_dependencies__feedmepos_mf_common: "1.29.31", npm_package_dependencies_fabric: "^6.4.2", npm_package_dependencies_zod_i18n_map: "2.27.0", GITHUB_REPOSITORY_OWNER_ID: "54831515", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-Linux", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_package_devDependencies__types_file_saver: "^2.0.7", SYSTEMD_EXEC_PID: "1830", ACTIONS_ORCHESTRATION_ID: "0314865b-1583-8177-9067-d1f02ff90fac.deploy.__default", npm_package_dependencies__feedmepos_ui_library: "1.10.13", npm_package_dependencies_dayjs: "^1.11.12", npm_package_dependencies_dotenv: "^16.4.5", npm_package_dependencies_moment: "^2.30.1", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", npm_package_scripts_build_only_dev: "pnpm build:mf:dev", npm_package_dependencies__tailwindcss_typography: "^0.5.16", npm_package_dependencies_i18next: "24.2.1", npm_package_devDependencies_tailwindcss: "^3.4.6", npm_package_devDependencies_typescript: "^5.5.3", JAVA_HOME_25_X64: "/usr/lib/jvm/temurin-25-jdk-amd64", NVM_DIR: "/home/runner/.nvm", npm_package_scripts_build_dev: "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --mode development", npm_package_scripts_build_only_prod: "pnpm build:mf:prod", npm_package_dependencies_xlsx: "^0.18.5", npm_package_devDependencies_vue_tsc: "^2.0.26", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20261026.180.1", npm_package_scripts_dev: "vite", npm_package_scripts_build_prod: "cross-env NODE_OPTIONS=--max-old-space-size=4096 vite build --mode production", npm_package_dependencies_unplugin_auto_import: "^0.17.8", npm_package_devDependencies__playwright_test: "^1.62.1", LOGNAME: "runner", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GITHUB_ARTIFACTS: "/home/runner/work/_temp/_runner_file_commands/artifacts_6c68f5cb-5d2c-44b6-8deb-4fe98318f24c", STORE_PATH: "/home/runner/setup-pnpm/node_modules/.bin/store/v3", SWIFT_PATH: "/usr/share/swift/usr/bin", npm_package_type: "module", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", JOURNAL_STREAM: "10:16438", GITHUB_WORKFLOW: "[CD:prod] connect-portal (mf-connect)", _: "/home/runner/setup-pnpm/node_modules/.bin/pnpm", npm_package_module: "./dist/app.js", npm_package_dependencies_css_tree: "3.2.1", npm_package_devDependencies_autoprefixer: "^10.4.19", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/hosted-compute-agent.service/memory.pressure", GOROOT_1_24_X64: "/opt/hostedtoolcache/go/1.24.13/x64", npm_package_dependencies_sanitize_html: "2.17.4", npm_package_devDependencies__types_uuid: "^9.0.8", npm_package_devDependencies_unlayer_types: "^1.157.0", npm_config_registry: "https://registry.npmjs.org/", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", GOROOT_1_25_X64: "/opt/hostedtoolcache/go/1.25.14/x64", GITHUB_RUN_ID: "41565774721", npm_package_dependencies_bson_objectid: "^2.0.4", npm_package_devDependencies__types_lodash: "^4.17.7", GITHUB_REF_TYPE: "tag", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "20a21d6cb71eae50a1c60be84f49c0c0bdf483d9", GOROOT_1_26_X64: "/opt/hostedtoolcache/go/1.26.10/x64", GITHUB_BASE_REF: "", ImageOS: "ubuntu26", npm_package_exports___import: "./dist/app.js", npm_package_dependencies__ckeditor_ckeditor5_vue: "^7.3.0", npm_package_devDependencies__vitejs_plugin_vue: "^5.0.5", GITHUB_WORKFLOW_REF: "feedmepos/marketing-services/.github/workflows/[PROD] deploy-mf-connect.yml@refs/tags/mf-connect-0.1.123-prod", GITHUB_ACTION_REPOSITORY: "", ENABLE_RUNNER_TRACING: "true", npm_package_dependencies_axios: "^1.7.2", npm_config_node_gyp: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.bin:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/dist/node-gyp-bin:/home/runner/setup-pnpm/node_modules/.bin:/opt/hostedtoolcache/node/20.20.2/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_73f187d4-94bd-4d1c-88cd-03bd8fe2a9c1", INVOCATION_ID: "7dd13c31456543eeabebde435f661693", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/20.20.2/x64/bin/node", npm_package_name: "@feedmepos/mf-connect", npm_package_scripts_deploy_dev: "pnpm run build-only:dev && pnpm publish --no-git-checks .", npm_package_dependencies_cross_env: "^7.0.3", npm_package_dependencies_file_saver: "^2.0.5", GITHUB_ACTION: "__run_5", GITHUB_RUN_NUMBER: "107", GITHUB_TRIGGERING_ACTOR: "qaijunse", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", npm_package_scripts_test_e2e: "playwright test", npm_package_scripts_deploy_prod: "pnpm run build-only:prod && pnpm publish --no-git-checks .", npm_config_frozen_lockfile: "", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", npm_package_dependencies__feedmepos_mf_core_ui: "1.0.30", RUNNER_NAME: "GitHub Actions 1000249235", XDG_CONFIG_HOME: "/home/runner/.config", GITHUB_REF_NAME: "mf-connect-0.1.123-prod", GITHUB_REPOSITORY: "feedmepos/marketing-services", npm_package_scripts_build_dts: "vue-tsc --declaration --noEmit false --emitDeclarationOnly -p tsconfig.json --outDir ./dist && mv ./dist/src/* dist", npm_package_scripts_build_types: "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.json --outDir dist --composite false", npm_package_dependencies__feedmepos_core: "2.15.47", npm_lifecycle_script: "vite build --mode fmmf:prod", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", npm_package_scripts_test: "vitest run", npm_package_dependencies_rrule: "^2.8.1", npm_package_dependencies_vue3_lottie: "^3.3.0", SHELL: "/bin/bash", GITHUB_REPOSITORY_ID: "615151795", GITHUB_ACTIONS: "true", NODE_PATH: "/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules/vite/bin/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules/vite/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/vite@5.3.4_@types+node@18.19.41/node_modules:/home/runner/work/marketing-services/marketing-services/packages/connect/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules:/home/runner/setup-pnpm/node_modules/.pnpm/node_modules", npm_package_version: "0.1.123-prod", npm_package_dependencies__feedmepos_hrm_permission: "1.0.14", npm_package_dependencies_ckeditor5: "^44.3.0", npm_package_dependencies_htmlparser2: "10.1.0", npm_package_dependencies__feedmepos_mf_upselling: "https://registry.npmjs.org/@feedmepos/mf-upselling/-/mf-upselling-0.3.2.tgz", npm_lifecycle_event: "build:mf:prod", GITHUB_REF_PROTECTED: "false", npm_package_scripts_build: "vue-tsc && vite build", npm_package_dependencies_uuid: "^10.0.0", npm_package_dependencies_vue_i18n: "10.0.5", GITHUB_WORKSPACE: "/home/runner/work/marketing-services/marketing-services", ACCEPT_EULA: "Y", GITHUB_JOB: "deploy", npm_package_dependencies_lodash: "^4.17.21", GITHUB_SHA: "20a21d6cb71eae50a1c60be84f49c0c0bdf483d9", GITHUB_RUN_ATTEMPT: "1", npm_package_exports___style: "./dist/style.css", npm_package_dependencies__ckeditor_ckeditor5_build_classic: "^44.3.0", npm_package_dependencies_vue_router: "^4.4.0", ACTIONS_RUNNER_RETURN_JOB_RESULT_FOR_HOSTED: "1", GITHUB_REF: "refs/tags/mf-connect-0.1.123-prod", GITHUB_ACTOR: "qaijunse", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_package_license: "UNLICENSED", npm_package_dependencies_email_addresses: "^5.0.0", npm_package_scripts_test_watch: "vitest", npm_package_dependencies_firebase: "^10.12.4", npm_package_dependencies_qrcode: "^1.5.3", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_6c68f5cb-5d2c-44b6-8deb-4fe98318f24c", JAVA_HOME: "/usr/lib/jvm/temurin-25-jdk-amd64", PWD: "/home/runner/work/marketing-services/marketing-services/packages/connect", GITHUB_ACTOR_ID: "39590157", RUNNER_WORKSPACE: "/home/runner/work/marketing-services", npm_execpath: "/home/runner/setup-pnpm/node_modules/.pnpm/pnpm@9.15.9/node_modules/pnpm/bin/pnpm.cjs", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", GITHUB_EVENT_NAME: "push", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_6c68f5cb-5d2c-44b6-8deb-4fe98318f24c", npm_package_exports___types: "./dist/packages/connect/src/app.d.ts", npm_package_dependencies__feedmepos_feature_flag: "^0.0.15", EDGEWEBDRIVER: "/usr/local/share/edge_driver", PNPM_SCRIPT_SRC_DIR: "/home/runner/work/marketing-services/marketing-services/packages/connect", npm_package_devDependencies_postcss: "^8.4.39", npm_command: "run-script", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_ARTIFACTS_LIST: "/home/runner/work/_temp/_runner_file_commands/artifacts_list_6c68f5cb-5d2c-44b6-8deb-4fe98318f24c", SGX_AESM_ADDR: "1", PSModulePath: "/root/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7/Modules:/usr/share/az_15.6.1", CHROME_BIN: "/usr/bin/google-chrome", npm_package_scripts_preview: "vite preview", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", PNPM_HOME: "/home/runner/setup-pnpm/node_modules/.bin", npm_package_dependencies__feedmepos_menu: "1.0.34", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.3.13750724", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_6c68f5cb-5d2c-44b6-8deb-4fe98318f24c", INIT_CWD: "/home/runner/work/marketing-services/marketing-services/packages/connect", npm_package_dependencies__feedmepos_mf_remy_panel: "0.15.0", NODE_ENV: "production", FEEDME_NAMESPACE: "prod", FIREBASE_API_KEY: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", FIREBASE_AUTH_DOMAIN: "feedme-253402.firebaseapp.com", FIREBASE_DATABASE_URL: "https://feedme-253402.firebaseio.com", FIREBASE_PROJECT_ID: "feedme-253402", FIREBASE_STORAGE_BUCKET: "image.feedme.cc", FIREBASE_MESSAGING_SENDER_ID: "128512026847", FIREBASE_APP_ID: "1:128512026847:web:7c5c8ab7e8b90502dc616a", FIREBASE_MEASUREMENT_ID: "G-LTKS7N2HQS", ASSET_STORAGE_BUCKET: "static.feedme.cc", IMPORT_FILES_STORAGE_BUCKET: "feedme-253402.appspot.com", AUTH_URL: "https://portal-v2.feedmeapi.com/", SLACK_WEBHOOK_URL: "https://hooks.slack.com/services/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", MEMBER_APP_URL: "member.feedme.cc", CRM_APP_URL: "crm.feedme.cc", MARKETING_V1_PORTAL: "https://marketing-v1.feedme.cc", CLIENT_ID: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476", PAYMENT_PORTAL_URL: "https://portal.feedme.cc/payment/payout-account", LICENSE_PORTAL_URL: "https://license.feedme.cc/", VOUCHER_APP_URL: "https://voucher.feedme.cc/", FEATURE_FLAG_API_KEY: "6GhcttsJ9Rj9cTevcdrpin" } }, i = Math.floor(Math.random() * 16777215), c = n.index = parseInt(Math.random() * 16777215, 10), a = (typeof o > "u" || typeof o.pid != "number" ? Math.floor(Math.random() * 1e5) : o.pid) % 65535, d = (() => {
|
|
3
|
-
try {
|
|
4
|
-
return _Buffer;
|
|
5
|
-
} catch {
|
|
6
|
-
try {
|
|
7
|
-
return Buffer;
|
|
8
|
-
} catch {
|
|
9
|
-
return null;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
})(), r = function(e) {
|
|
13
|
-
return !!(e != null && e.constructor && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e));
|
|
14
|
-
}, u = [];
|
|
15
|
-
for (var p = 0; p < 256; p++)
|
|
16
|
-
u[p] = (p <= 15 ? "0" : "") + p.toString(16);
|
|
17
|
-
var m = new RegExp("^[0-9a-fA-F]{24}$"), s = [];
|
|
18
|
-
p = 0;
|
|
19
|
-
for (; p < 10; ) s[48 + p] = p++;
|
|
20
|
-
for (; p < 16; ) s[55 + p] = s[87 + p] = p++;
|
|
21
|
-
function n(e) {
|
|
22
|
-
if (!(this instanceof n)) return new n(e);
|
|
23
|
-
if (e && (e instanceof n || e._bsontype === "ObjectID"))
|
|
24
|
-
return e;
|
|
25
|
-
if (this._bsontype = "ObjectID", e == null || typeof e == "number") {
|
|
26
|
-
this.id = this.generate(e);
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
var _ = n.isValid(e);
|
|
30
|
-
if (!_ && e != null)
|
|
31
|
-
throw new Error(
|
|
32
|
-
"Argument passed in must be a single String of 12 bytes or a string of 24 hex characters"
|
|
33
|
-
);
|
|
34
|
-
if (_ && typeof e == "string" && e.length === 24)
|
|
35
|
-
return n.createFromHexString(e);
|
|
36
|
-
if (e != null && e.length === 12)
|
|
37
|
-
this.id = e;
|
|
38
|
-
else {
|
|
39
|
-
if (e != null && typeof e.toHexString == "function")
|
|
40
|
-
return e;
|
|
41
|
-
throw new Error(
|
|
42
|
-
"Argument passed in must be a single String of 12 bytes or a string of 24 hex characters"
|
|
43
|
-
);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
var g = n;
|
|
47
|
-
n.default = n;
|
|
48
|
-
n.createFromTime = function(e) {
|
|
49
|
-
return e = parseInt(e, 10) % 4294967295, new n(E(8, e) + "0000000000000000");
|
|
50
|
-
};
|
|
51
|
-
n.createFromHexString = function(e) {
|
|
52
|
-
if (typeof e > "u" || e != null && e.length !== 24)
|
|
53
|
-
throw new Error(
|
|
54
|
-
"Argument passed in must be a single String of 12 bytes or a string of 24 hex characters"
|
|
55
|
-
);
|
|
56
|
-
for (var _ = "", t = 0; t < 24; )
|
|
57
|
-
_ += String.fromCharCode(s[e.charCodeAt(t++)] << 4 | s[e.charCodeAt(t++)]);
|
|
58
|
-
return new n(_);
|
|
59
|
-
};
|
|
60
|
-
n.isValid = function(e) {
|
|
61
|
-
return e == null ? !1 : typeof e == "number" ? !0 : typeof e == "string" ? e.length === 12 || e.length === 24 && m.test(e) : e instanceof n ? !0 : r(e) ? n.isValid(e.toString("hex")) : typeof e.toHexString == "function" && d && (e.id instanceof d || typeof e.id == "string") ? e.id.length === 12 || e.id.length === 24 && m.test(e.id) : !1;
|
|
62
|
-
};
|
|
63
|
-
n.prototype = {
|
|
64
|
-
constructor: n,
|
|
65
|
-
/**
|
|
66
|
-
* Return the ObjectID id as a 24 byte hex string representation
|
|
67
|
-
*
|
|
68
|
-
* @return {String} return the 24 byte hex string representation.
|
|
69
|
-
* @api public
|
|
70
|
-
*/
|
|
71
|
-
toHexString: function() {
|
|
72
|
-
if (!this.id || !this.id.length)
|
|
73
|
-
throw new Error(
|
|
74
|
-
"invalid ObjectId, ObjectId.id must be either a string or a Buffer, but is [" + JSON.stringify(this.id) + "]"
|
|
75
|
-
);
|
|
76
|
-
if (this.id.length === 24)
|
|
77
|
-
return this.id;
|
|
78
|
-
if (r(this.id))
|
|
79
|
-
return this.id.toString("hex");
|
|
80
|
-
for (var e = "", _ = 0; _ < this.id.length; _++)
|
|
81
|
-
e += u[this.id.charCodeAt(_)];
|
|
82
|
-
return e;
|
|
83
|
-
},
|
|
84
|
-
/**
|
|
85
|
-
* Compares the equality of this ObjectID with `otherID`.
|
|
86
|
-
*
|
|
87
|
-
* @param {Object} otherId ObjectID instance to compare against.
|
|
88
|
-
* @return {Boolean} the result of comparing two ObjectID's
|
|
89
|
-
* @api public
|
|
90
|
-
*/
|
|
91
|
-
equals: function(e) {
|
|
92
|
-
return e instanceof n ? this.toString() === e.toString() : typeof e == "string" && n.isValid(e) && e.length === 12 && r(this.id) ? e === this.id.toString("binary") : typeof e == "string" && n.isValid(e) && e.length === 24 ? e.toLowerCase() === this.toHexString() : typeof e == "string" && n.isValid(e) && e.length === 12 ? e === this.id : e != null && (e instanceof n || e.toHexString) ? e.toHexString() === this.toHexString() : !1;
|
|
93
|
-
},
|
|
94
|
-
/**
|
|
95
|
-
* Returns the generation date (accurate up to the second) that this ID was generated.
|
|
96
|
-
*
|
|
97
|
-
* @return {Date} the generation date
|
|
98
|
-
* @api public
|
|
99
|
-
*/
|
|
100
|
-
getTimestamp: function() {
|
|
101
|
-
var e = /* @__PURE__ */ new Date(), _;
|
|
102
|
-
return r(this.id) ? _ = this.id[3] | this.id[2] << 8 | this.id[1] << 16 | this.id[0] << 24 : _ = this.id.charCodeAt(3) | this.id.charCodeAt(2) << 8 | this.id.charCodeAt(1) << 16 | this.id.charCodeAt(0) << 24, e.setTime(Math.floor(_) * 1e3), e;
|
|
103
|
-
},
|
|
104
|
-
/**
|
|
105
|
-
* Generate a 12 byte id buffer used in ObjectID's
|
|
106
|
-
*
|
|
107
|
-
* @method
|
|
108
|
-
* @param {number} [time] optional parameter allowing to pass in a second based timestamp.
|
|
109
|
-
* @return {string} return the 12 byte id buffer string.
|
|
110
|
-
*/
|
|
111
|
-
generate: function(e) {
|
|
112
|
-
typeof e != "number" && (e = ~~(Date.now() / 1e3)), e = parseInt(e, 10) % 4294967295;
|
|
113
|
-
var _ = f();
|
|
114
|
-
return String.fromCharCode(
|
|
115
|
-
e >> 24 & 255,
|
|
116
|
-
e >> 16 & 255,
|
|
117
|
-
e >> 8 & 255,
|
|
118
|
-
e & 255,
|
|
119
|
-
i >> 16 & 255,
|
|
120
|
-
i >> 8 & 255,
|
|
121
|
-
i & 255,
|
|
122
|
-
a >> 8 & 255,
|
|
123
|
-
a & 255,
|
|
124
|
-
_ >> 16 & 255,
|
|
125
|
-
_ >> 8 & 255,
|
|
126
|
-
_ & 255
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
function f() {
|
|
131
|
-
return c = (c + 1) % 16777215;
|
|
132
|
-
}
|
|
133
|
-
function E(e, _) {
|
|
134
|
-
return _ = _.toString(16), _.length === e ? _ : "00000000".substring(_.length, e) + _;
|
|
135
|
-
}
|
|
136
|
-
var h = Symbol && Symbol.for && Symbol.for("nodejs.util.inspect.custom") || "inspect";
|
|
137
|
-
n.prototype[h] = function() {
|
|
138
|
-
return "ObjectID(" + this + ")";
|
|
139
|
-
};
|
|
140
|
-
n.prototype.toJSON = n.prototype.toHexString;
|
|
141
|
-
n.prototype.toString = n.prototype.toHexString;
|
|
142
|
-
const T = /* @__PURE__ */ l(g);
|
|
143
|
-
export {
|
|
144
|
-
T as O
|
|
145
|
-
};
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { l as i } from "./index-BtN3vRvA.js";
|
|
2
|
-
function a(o, t) {
|
|
3
|
-
let r = "", s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
4
|
-
const e = s.length;
|
|
5
|
-
for (let n = 0; n < o; n++)
|
|
6
|
-
r += s.charAt(Math.floor(Math.random() * e));
|
|
7
|
-
return r;
|
|
8
|
-
}
|
|
9
|
-
function u(o) {
|
|
10
|
-
return !o.property && "rules" in o;
|
|
11
|
-
}
|
|
12
|
-
function d(o) {
|
|
13
|
-
return "property" in o && !!o.property;
|
|
14
|
-
}
|
|
15
|
-
class c {
|
|
16
|
-
static scaffoldGroup(t) {
|
|
17
|
-
return {
|
|
18
|
-
name: t ?? `g_${a(4)}`,
|
|
19
|
-
rules: {},
|
|
20
|
-
logic: ""
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
static scaffoldEntry(t) {
|
|
24
|
-
return {
|
|
25
|
-
name: `r_${a(4)}`,
|
|
26
|
-
property: t ?? "",
|
|
27
|
-
conditions: {},
|
|
28
|
-
negated: !1
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
static constructEntry(t, r, s, e) {
|
|
32
|
-
return {
|
|
33
|
-
name: e ?? `e_${a(4)}`,
|
|
34
|
-
property: t,
|
|
35
|
-
conditions: {
|
|
36
|
-
[r]: s
|
|
37
|
-
},
|
|
38
|
-
negated: !1
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
static getLogic(t) {
|
|
42
|
-
return (t.logic ?? "").includes("||") ? "||" : "&&";
|
|
43
|
-
}
|
|
44
|
-
static constructLogic(t, r) {
|
|
45
|
-
const s = r ?? c.getLogic(t);
|
|
46
|
-
return Object.entries(t.rules).map(([e, n]) => u(n) ? e : `${n.negated ? "!" : ""}${e}`).join(` ${s} `);
|
|
47
|
-
}
|
|
48
|
-
static setRuleToGroup(t, r, s) {
|
|
49
|
-
let e = i.cloneDeep(t);
|
|
50
|
-
return Object.keys(e.rules).length === 0 && (e = c.scaffoldGroup(e.name)), Array.isArray(r) ? r.forEach((n) => {
|
|
51
|
-
e.rules[n.name] = n;
|
|
52
|
-
}) : e.rules[r.name] = r, e.logic = c.constructLogic(e, s), e;
|
|
53
|
-
}
|
|
54
|
-
static removeEntry(t, r, s) {
|
|
55
|
-
const e = i.cloneDeep(t);
|
|
56
|
-
return delete e.rules[r], e.logic = c.constructLogic(e, s), e;
|
|
57
|
-
}
|
|
58
|
-
static constructRule(t) {
|
|
59
|
-
switch (t.type) {
|
|
60
|
-
case "timeframe": {
|
|
61
|
-
const r = t.property, s = c.scaffoldGroup("timeframe"), e = [];
|
|
62
|
-
return (t.start || t.end) && e.push(
|
|
63
|
-
c.constructEntry(r, "_isBetween", {
|
|
64
|
-
start: t.start || void 0,
|
|
65
|
-
end: t.end || void 0
|
|
66
|
-
})
|
|
67
|
-
), c.setRuleToGroup(s, e, "&&");
|
|
68
|
-
}
|
|
69
|
-
default:
|
|
70
|
-
throw Error("invalid config type");
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
static getRules(t) {
|
|
74
|
-
return t && "rules" in t ? Object.values(t.rules) : [];
|
|
75
|
-
}
|
|
76
|
-
static simplify(t) {
|
|
77
|
-
const [r] = Object.entries(t.conditions);
|
|
78
|
-
return r[0], {
|
|
79
|
-
property: t.property,
|
|
80
|
-
operator: r[0],
|
|
81
|
-
equator: r[1]
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
static isRuleExceed(t, r) {
|
|
85
|
-
const e = Object.keys(t.rules).length + (Array.isArray(r) ? r.length : 1);
|
|
86
|
-
if (e > 10)
|
|
87
|
-
throw new l(10, e);
|
|
88
|
-
return !0;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
class l extends Error {
|
|
92
|
-
constructor(t, r) {
|
|
93
|
-
super(
|
|
94
|
-
`Maximum of ${t} rules allowed per group. Attempted to add ${r} rules.`
|
|
95
|
-
), this.name = "MaxRulesExceededError";
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
export {
|
|
99
|
-
c as R,
|
|
100
|
-
d as a,
|
|
101
|
-
u as i
|
|
102
|
-
};
|
|
@@ -1,275 +0,0 @@
|
|
|
1
|
-
import { p as M, i as T } from "./plugins-dnLWrrhC.js";
|
|
2
|
-
import { _ as I } from "./lodash-BuScZ_TM.js";
|
|
3
|
-
import { defineComponent as N, openBlock as u, createBlock as C, resolveDynamicComponent as j, unref as o, ref as Y, computed as W, onMounted as G, resolveComponent as _, withCtx as f, createElementVNode as s, createElementBlock as h, createVNode as m, normalizeClass as w, createTextVNode as k, toDisplayString as g, Fragment as O, renderList as A, createCommentVNode as F } from "vue";
|
|
4
|
-
import { _ as H } from "./remy-icon-BhUGu2NI.js";
|
|
5
|
-
import { u as q } from "./campaign-DhN6zKES.js";
|
|
6
|
-
import { useDialog as J } from "@feedmepos/ui-library";
|
|
7
|
-
import { F as U } from "./index-D5OOlgos.js";
|
|
8
|
-
import { C as K } from "./campaign-DWClF3jI.js";
|
|
9
|
-
import { J as Q } from "./JsonViewer-v8_C7l5N.js";
|
|
10
|
-
import { u as X } from "./vue-i18n-FBUIkfn5.js";
|
|
11
|
-
import { u as Z } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-qX_uFelR.js";
|
|
12
|
-
import { u as ee } from "./remy-Qz_pNsUS.js";
|
|
13
|
-
function Le(e) {
|
|
14
|
-
return M.confirm(
|
|
15
|
-
T.global.t("connect.common.duplicate.confirmMessage", { name: e }),
|
|
16
|
-
T.global.t("connect.common.duplicate.title"),
|
|
17
|
-
T.global.t("connect.common.duplicate.proceed")
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
|
-
const te = ["LOYALTY", "NO_REWARD"], oe = {
|
|
21
|
-
GAME: [(e) => {
|
|
22
|
-
var t;
|
|
23
|
-
return (t = e == null ? void 0 : e.game) == null ? void 0 : t.rewards;
|
|
24
|
-
}],
|
|
25
|
-
MISSION: [
|
|
26
|
-
(e) => e == null ? void 0 : e.rewards,
|
|
27
|
-
(e) => {
|
|
28
|
-
var t;
|
|
29
|
-
return (t = e == null ? void 0 : e.mission) == null ? void 0 : t.rewards;
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
REWARD_POOL: [(e) => e == null ? void 0 : e.rewards]
|
|
33
|
-
};
|
|
34
|
-
function ne(e, t) {
|
|
35
|
-
e && e.forEach((n) => {
|
|
36
|
-
t.includes(n.type ?? "") || (n.collectible = null, n.type === "VOUCHER" && n.collectibleConfig && (n.collectibleConfig._id = void 0));
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
function le(e) {
|
|
40
|
-
e._id = void 0;
|
|
41
|
-
}
|
|
42
|
-
function ie(e, t) {
|
|
43
|
-
e.campaign && (e.campaign._id = void 0, e.campaign.currentReceive = void 0, e.campaign.notifyCampaign = void 0, t || (e.campaign.collectible = void 0));
|
|
44
|
-
}
|
|
45
|
-
function se(e, t) {
|
|
46
|
-
e.configs && (e.configs.currentReceive = void 0, t || (e.configs._id = void 0));
|
|
47
|
-
}
|
|
48
|
-
function ae(e) {
|
|
49
|
-
const t = oe[(e == null ? void 0 : e.type) ?? ""];
|
|
50
|
-
t && t.forEach((n) => {
|
|
51
|
-
ne(n(e), te);
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
function Pe(e, t = {}) {
|
|
55
|
-
const n = I.cloneDeep(e), { keepCollectible: c = !1 } = t, d = n.campaign;
|
|
56
|
-
return le(n), ie(n, c), se(n, c), ae(d), n;
|
|
57
|
-
}
|
|
58
|
-
const ce = /* @__PURE__ */ N({
|
|
59
|
-
__name: "CampaignChip",
|
|
60
|
-
props: {
|
|
61
|
-
type: { type: String, required: !0 }
|
|
62
|
-
},
|
|
63
|
-
setup(e) {
|
|
64
|
-
const n = K[e.type];
|
|
65
|
-
return (c, d) => (u(), C(j(o(n).chip())));
|
|
66
|
-
}
|
|
67
|
-
}), re = { class: "flex flex-nowrap gap-x-2 grow h-full" }, pe = {
|
|
68
|
-
key: 0,
|
|
69
|
-
class: "p-8 w-1/4"
|
|
70
|
-
}, me = { class: "flex flex-col grow p-24" }, ue = { class: "space-y-4" }, de = { class: "fm-typo-en-title-sm-800" }, fe = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, ge = { class: "grow pb-16 pr-16 pt-6 w-full max-h-[400px] overflow-y-auto" }, _e = { class: "gap-24 grid grid-cols-1 lg:grid-cols-2" }, ye = { class: "gap-4 h-[22px] inline-flex items-center justify-center min-w-min rounded-md" }, Ce = { class: "fm-typo-en-title-sm-800" }, ve = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, be = { class: "flex gap-4 items-end justify-end py-8" }, xe = { class: "flex items-center gap-8" }, De = /* @__PURE__ */ N({
|
|
71
|
-
__name: "TemplateDialog",
|
|
72
|
-
props: {
|
|
73
|
-
campaignType: {
|
|
74
|
-
type: String,
|
|
75
|
-
default: () => {
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
onOk: {
|
|
79
|
-
type: Function,
|
|
80
|
-
required: !0
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
setup(e) {
|
|
84
|
-
const { t } = X(), { getLocaleText: n } = Z(), c = J(), d = q(), L = ee(), r = e, l = Y({
|
|
85
|
-
intention: null,
|
|
86
|
-
template: null
|
|
87
|
-
}), R = W(() => {
|
|
88
|
-
const p = (d.templates ?? []).filter(
|
|
89
|
-
() => !0
|
|
90
|
-
//t.intention && t.intention.length > 0
|
|
91
|
-
);
|
|
92
|
-
return r.campaignType ? p.filter(
|
|
93
|
-
(a) => {
|
|
94
|
-
var v, y;
|
|
95
|
-
return ((y = (v = a.defaultValue) == null ? void 0 : v.campaign) == null ? void 0 : y.type) === r.campaignType;
|
|
96
|
-
}
|
|
97
|
-
) : l.value.intention === null ? I.sampleSize(p, 7) : p.filter(
|
|
98
|
-
(a) => a.intention.includes(l.value.intention)
|
|
99
|
-
);
|
|
100
|
-
});
|
|
101
|
-
G(async () => {
|
|
102
|
-
await d.readTemplates();
|
|
103
|
-
});
|
|
104
|
-
function P() {
|
|
105
|
-
r.onOk(void 0), c.close();
|
|
106
|
-
}
|
|
107
|
-
function V() {
|
|
108
|
-
const p = [t("connect.templateDialog.remyPrompt")];
|
|
109
|
-
r.campaignType && p.push(
|
|
110
|
-
t("connect.templateDialog.remyCampaignType", {
|
|
111
|
-
type: t(`connect.templateDialog.campaignType.${r.campaignType}`)
|
|
112
|
-
})
|
|
113
|
-
), l.value.intention && p.push(
|
|
114
|
-
t("connect.templateDialog.remyGoal", {
|
|
115
|
-
goal: t(`connect.templateDialog.intention.${l.value.intention}`)
|
|
116
|
-
})
|
|
117
|
-
), c.close(), L.activate({
|
|
118
|
-
prompt: p.join(" "),
|
|
119
|
-
forceNewConversation: !0
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
function $() {
|
|
123
|
-
const p = l.value.template;
|
|
124
|
-
r.onOk(d.templates.find((a) => a._id === p)), c.close();
|
|
125
|
-
}
|
|
126
|
-
return (p, a) => {
|
|
127
|
-
const v = _("FmChip"), y = _("FmListItem"), B = _("FmList"), E = _("FmCard"), b = _("FmButton"), z = _("FmSpacer");
|
|
128
|
-
return u(), C(E, { class: "h-[534px] max-w-6xl" }, {
|
|
129
|
-
default: f(() => [
|
|
130
|
-
s("div", re, [
|
|
131
|
-
r.campaignType ? F("", !0) : (u(), h("div", pe, [
|
|
132
|
-
m(B, null, {
|
|
133
|
-
default: f(() => [
|
|
134
|
-
m(y, {
|
|
135
|
-
class: w([{
|
|
136
|
-
"bg-fm-color-system-warning-100": o(l).intention === null
|
|
137
|
-
}, "rounded-sm"]),
|
|
138
|
-
onClick: a[0] || (a[0] = (i) => {
|
|
139
|
-
o(l).intention = null, o(l).template = null;
|
|
140
|
-
})
|
|
141
|
-
}, {
|
|
142
|
-
append: f(() => [
|
|
143
|
-
m(v, {
|
|
144
|
-
label: o(t)("connect.templateDialog.hot"),
|
|
145
|
-
variant: "critical"
|
|
146
|
-
}, null, 8, ["label"])
|
|
147
|
-
]),
|
|
148
|
-
default: f(() => [
|
|
149
|
-
k(g(o(t)("connect.templateDialog.mostPopular")) + " ", 1)
|
|
150
|
-
]),
|
|
151
|
-
_: 1
|
|
152
|
-
}, 8, ["class"]),
|
|
153
|
-
(u(!0), h(O, null, A(o(U).options, (i, D) => (u(), C(y, {
|
|
154
|
-
key: D,
|
|
155
|
-
class: w(["rounded-sm", {
|
|
156
|
-
"bg-fm-color-system-warning-100": o(l).intention === i
|
|
157
|
-
}]),
|
|
158
|
-
style: { padding: "8px 16px" },
|
|
159
|
-
onClick: (x) => {
|
|
160
|
-
o(l).intention = i, o(l).template = null;
|
|
161
|
-
}
|
|
162
|
-
}, {
|
|
163
|
-
default: f(() => [
|
|
164
|
-
k(g(o(t)(`connect.templateDialog.intention.${i}`)), 1)
|
|
165
|
-
]),
|
|
166
|
-
_: 2
|
|
167
|
-
}, 1032, ["class", "onClick"]))), 128))
|
|
168
|
-
]),
|
|
169
|
-
_: 1
|
|
170
|
-
})
|
|
171
|
-
])),
|
|
172
|
-
s("div", me, [
|
|
173
|
-
s("div", ue, [
|
|
174
|
-
s("div", de, g(r.campaignType ? o(t)(`connect.templateDialog.campaignType.${r.campaignType}`) : o(t)("connect.templateDialog.templateList")), 1),
|
|
175
|
-
s("div", fe, g(o(t)("connect.templateDialog.subtitle")), 1)
|
|
176
|
-
]),
|
|
177
|
-
s("div", ge, [
|
|
178
|
-
m(Q, { json: o(R) }, null, 8, ["json"]),
|
|
179
|
-
s("div", _e, [
|
|
180
|
-
(u(!0), h(O, null, A(o(R), (i, D) => (u(), C(E, {
|
|
181
|
-
key: D,
|
|
182
|
-
variant: "outlined",
|
|
183
|
-
class: w(["box-border cursor-pointer h-full p-16 scroll-p-4 space-y-8", {
|
|
184
|
-
"bg-fm-color-system-warning-100 border-fm-color-primary border-2": o(l).template === i._id.toString()
|
|
185
|
-
}]),
|
|
186
|
-
onClick: (x) => o(l).template = i._id.toString()
|
|
187
|
-
}, {
|
|
188
|
-
default: f(() => {
|
|
189
|
-
var x, S;
|
|
190
|
-
return [
|
|
191
|
-
s("div", ye, [
|
|
192
|
-
m(ce, {
|
|
193
|
-
type: (S = (x = i.defaultValue) == null ? void 0 : x.campaign) == null ? void 0 : S.type
|
|
194
|
-
}, null, 8, ["type"])
|
|
195
|
-
]),
|
|
196
|
-
s("div", Ce, g(o(n)(i.name_locale, i.name)), 1),
|
|
197
|
-
s("p", ve, g(o(n)(i.description_locale, i.description ?? "")), 1)
|
|
198
|
-
];
|
|
199
|
-
}),
|
|
200
|
-
_: 2
|
|
201
|
-
}, 1032, ["class", "onClick"]))), 128))
|
|
202
|
-
])
|
|
203
|
-
]),
|
|
204
|
-
s("div", be, [
|
|
205
|
-
m(b, {
|
|
206
|
-
class: "sm:w-full xs:w-full",
|
|
207
|
-
variant: "plain",
|
|
208
|
-
label: o(t)("connect.templateDialog.customCampaign"),
|
|
209
|
-
size: "md",
|
|
210
|
-
onClick: P
|
|
211
|
-
}, null, 8, ["label"]),
|
|
212
|
-
r.campaignType && ["PROMOTION", "VOUCHER", "BROADCAST", "POINT", "COIN", "CREDIT"].includes(
|
|
213
|
-
r.campaignType
|
|
214
|
-
) ? (u(), C(b, {
|
|
215
|
-
key: 0,
|
|
216
|
-
class: "sm:w-full xs:w-full",
|
|
217
|
-
variant: "tertiary",
|
|
218
|
-
label: o(t)("connect.templateDialog.askRemy"),
|
|
219
|
-
size: "md",
|
|
220
|
-
onClick: V
|
|
221
|
-
}, {
|
|
222
|
-
default: f(() => [
|
|
223
|
-
s("span", xe, [
|
|
224
|
-
a[2] || (a[2] = s("img", {
|
|
225
|
-
src: H,
|
|
226
|
-
alt: "",
|
|
227
|
-
class: "w-[20px] h-[20px]"
|
|
228
|
-
}, null, -1)),
|
|
229
|
-
k(" " + g(o(t)("connect.templateDialog.askRemy")), 1)
|
|
230
|
-
])
|
|
231
|
-
]),
|
|
232
|
-
_: 1
|
|
233
|
-
}, 8, ["label"])) : F("", !0),
|
|
234
|
-
m(z, { class: "sm:hidden xs:hidden" }),
|
|
235
|
-
m(b, {
|
|
236
|
-
class: "sm:w-full xs:w-full",
|
|
237
|
-
variant: "tertiary",
|
|
238
|
-
label: o(t)("connect.templateDialog.cancel"),
|
|
239
|
-
size: "md",
|
|
240
|
-
onClick: a[1] || (a[1] = (i) => o(c).close())
|
|
241
|
-
}, null, 8, ["label"]),
|
|
242
|
-
m(b, {
|
|
243
|
-
class: "sm:w-full xs:w-full",
|
|
244
|
-
variant: "primary",
|
|
245
|
-
label: o(t)("connect.templateDialog.start"),
|
|
246
|
-
size: "md",
|
|
247
|
-
disabled: !o(l).template,
|
|
248
|
-
onClick: $
|
|
249
|
-
}, null, 8, ["label", "disabled"])
|
|
250
|
-
])
|
|
251
|
-
])
|
|
252
|
-
])
|
|
253
|
-
]),
|
|
254
|
-
_: 1
|
|
255
|
-
});
|
|
256
|
-
};
|
|
257
|
-
}
|
|
258
|
-
}), Ve = (e, t) => ({
|
|
259
|
-
open: async (n) => {
|
|
260
|
-
t.open({
|
|
261
|
-
title: "",
|
|
262
|
-
dialogComponent: De,
|
|
263
|
-
dialogComponentProps: {
|
|
264
|
-
campaignType: e,
|
|
265
|
-
onOk: async (c) => (console.debug(c, "selected template"), await n(c))
|
|
266
|
-
},
|
|
267
|
-
overlay: !0
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
|
-
});
|
|
271
|
-
export {
|
|
272
|
-
Le as c,
|
|
273
|
-
Pe as p,
|
|
274
|
-
Ve as u
|
|
275
|
-
};
|