crmbonus-component-wake 2.1.38-ngrok → 2.1.40-homolog
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/LICENSE +21 -21
- package/dist/cjs/app-modal.cjs.entry.js +1 -1
- package/dist/cjs/app-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/{cart.helper-31ba8997.js → cart.helper-96d1b9db.js} +3 -3
- package/dist/cjs/{cart.helper-31ba8997.js.map → cart.helper-96d1b9db.js.map} +1 -1
- package/dist/cjs/container-empty.cjs.entry.js +1 -1
- package/dist/cjs/container-empty.cjs.entry.js.map +1 -1
- package/dist/cjs/countdown-timer-v2.cjs.entry.js +1 -1
- package/dist/cjs/countdown-timer-v2.cjs.entry.js.map +1 -1
- package/dist/cjs/countdown-timer_11.cjs.entry.js +36 -37
- package/dist/cjs/countdown-timer_11.cjs.entry.js.map +1 -1
- package/dist/cjs/crm-bonus-note.cjs.entry.js +5 -5
- package/dist/cjs/crm-bonus-note.cjs.entry.js.map +1 -1
- package/dist/cjs/info.config.helper-d4b1291b.js.map +1 -1
- package/dist/cjs/pedido-finalizado.cjs.entry.js +2 -2
- package/dist/cjs/pedido-finalizado.cjs.entry.js.map +1 -1
- package/dist/cjs/utils-5d59acb1.js.map +1 -1
- package/dist/collection/assets/svg/money-dollars-svgrepo-com.svg +5 -5
- package/dist/collection/components/button/crm-button.css +21 -21
- package/dist/collection/components/button/index.js +1 -1
- package/dist/collection/components/button/index.js.map +1 -1
- package/dist/collection/components/countdown-timer/countdown-timer.js +1 -1
- package/dist/collection/components/countdown-timer/countdown-timer.js.map +1 -1
- package/dist/collection/components/countdown-timer/countdown-timer.v2.js +2 -2
- package/dist/collection/components/countdown-timer/countdown-timer.v2.js.map +1 -1
- package/dist/collection/components/crm-bonus/assets/logo.svg +17 -17
- package/dist/collection/components/crm-bonus/assets/svg/logo.svg +17 -17
- package/dist/collection/components/crm-bonus/crm-bonus.css +82 -82
- package/dist/collection/components/crm-bonus/crm-bonus.js +0 -1
- package/dist/collection/components/crm-bonus/crm-bonus.js.map +1 -1
- package/dist/collection/components/giftback-form/giftback-form.css +74 -74
- package/dist/collection/components/giftback-form/giftback-form.js +5 -5
- package/dist/collection/components/giftback-form/giftback-form.js.map +1 -1
- package/dist/collection/components/giftback-form/subcomponents/giftback-info/giftback-info.css +181 -181
- package/dist/collection/components/giftback-form/subcomponents/giftback-info/giftback-info.js +6 -6
- package/dist/collection/components/giftback-form/subcomponents/giftback-info/giftback-info.js.map +1 -1
- package/dist/collection/components/giftback-form/subcomponents/giftback-message/giftback-massage.js.map +1 -1
- package/dist/collection/components/giftback-form/subcomponents/phone-form/phone-form.js +1 -1
- package/dist/collection/components/giftback-form/subcomponents/phone-form/phone-form.js.map +1 -1
- package/dist/collection/components/giftback-form/subcomponents/pin-form/pin-form.css +83 -83
- package/dist/collection/components/giftback-form/subcomponents/pin-form/pin-form.js +1 -1
- package/dist/collection/components/giftback-form/subcomponents/pin-form/pin-form.js.map +1 -1
- package/dist/collection/components/loading-container/container-empty.js +1 -1
- package/dist/collection/components/loading-container/container-empty.js.map +1 -1
- package/dist/collection/components/loading-container/loading-container.css +53 -53
- package/dist/collection/components/loading-container/loading-container.js +1 -1
- package/dist/collection/components/loading-container/loading-container.js.map +1 -1
- package/dist/collection/components/loading-spinner/loading-spinner.css +16 -16
- package/dist/collection/components/loading-spinner/loading-spinner.js +1 -1
- package/dist/collection/components/loading-spinner/loading-spinner.js.map +1 -1
- package/dist/collection/components/modal/app-modal.css +44 -44
- package/dist/collection/components/modal/app-modal.js +1 -1
- package/dist/collection/components/modal/app-modal.js.map +1 -1
- package/dist/collection/components/note/crm-bonus-note.css +68 -68
- package/dist/collection/components/note/crm-bonus-note.js +2 -2
- package/dist/collection/components/note/crm-bonus-note.js.map +1 -1
- package/dist/collection/components/pedido/pedido.js +1 -1
- package/dist/collection/components/pedido/pedido.js.map +1 -1
- package/dist/collection/components/phone/phone-input-mask.css +40 -40
- package/dist/collection/components/phone/phone-input-mask.js +1 -1
- package/dist/collection/components/phone/phone-input-mask.js.map +1 -1
- package/dist/collection/components/tooltip/crm-tooltip.css +48 -48
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js.map +1 -1
- package/dist/collection/contants/index.js.map +1 -1
- package/dist/collection/contants/mocks.js.map +1 -1
- package/dist/collection/dto/pin.sent.js.map +1 -1
- package/dist/collection/dto/reserved-info.dto.js.map +1 -1
- package/dist/collection/dto/update.order.dto.js.map +1 -1
- package/dist/collection/dto/validate.pin.bonus.js.map +1 -1
- package/dist/collection/helpers/build.payload.helper.js +16 -16
- package/dist/collection/helpers/build.payload.helper.js.map +1 -1
- package/dist/collection/helpers/cart.helper.js.map +1 -1
- package/dist/collection/helpers/info.config.helper.js.map +1 -1
- package/dist/collection/helpers/payload.interface.js.map +1 -1
- package/dist/collection/helpers/time.helper.js.map +1 -1
- package/dist/collection/i18n/i18n.js.map +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/objectvalues/cart.wake.js.map +1 -1
- package/dist/collection/services/crmbonus.service.js.map +1 -1
- package/dist/collection/utils/keys.storage.js.map +1 -1
- package/dist/collection/utils/retry.utils.js.map +1 -1
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/app-modal.js +1 -1
- package/dist/components/app-modal.js.map +1 -1
- package/dist/components/container-empty.js +1 -1
- package/dist/components/container-empty.js.map +1 -1
- package/dist/components/countdown-timer-v2.js +1 -1
- package/dist/components/countdown-timer-v2.js.map +1 -1
- package/dist/components/countdown-timer.js +1 -1
- package/dist/components/crm-bonus-note.js +6 -6
- package/dist/components/crm-bonus-note.js.map +1 -1
- package/dist/components/crm-bonus.js +27 -28
- package/dist/components/crm-bonus.js.map +1 -1
- package/dist/components/crm-button.js +1 -1
- package/dist/components/crm-giftback-form.js +1 -1
- package/dist/components/crm-tooltip.js +1 -1
- package/dist/components/giftback-info.js +1 -1
- package/dist/components/loading-container.js +1 -1
- package/dist/components/loading-spinner.js +1 -1
- package/dist/components/p-1b441909.js.map +1 -1
- package/dist/components/{p-8274e2c4.js → p-208e1c91.js} +2 -2
- package/dist/components/p-208e1c91.js.map +1 -0
- package/dist/components/{p-11520f0f.js → p-52f945ff.js} +2 -2
- package/dist/components/p-52f945ff.js.map +1 -0
- package/dist/components/{p-c250687d.js → p-5c3df678.js} +3 -3
- package/dist/components/p-5c3df678.js.map +1 -0
- package/dist/components/{p-0a7ccd8c.js → p-ad1226cf.js} +5 -5
- package/dist/components/p-ad1226cf.js.map +1 -0
- package/dist/components/p-af3ba015.js.map +1 -1
- package/dist/components/p-c53241bf.js.map +1 -1
- package/dist/components/{p-3c8ae82e.js → p-cdf8a023.js} +9 -9
- package/dist/components/p-cdf8a023.js.map +1 -0
- package/dist/components/{p-2cece106.js → p-d1c68cfc.js} +2 -2
- package/dist/components/p-d1c68cfc.js.map +1 -0
- package/dist/components/{p-786485b2.js → p-de1ecb89.js} +2 -2
- package/dist/components/p-de1ecb89.js.map +1 -0
- package/dist/components/{p-0d09c221.js → p-e632b13e.js} +3 -3
- package/dist/components/{p-0d09c221.js.map → p-e632b13e.js.map} +1 -1
- package/dist/components/{p-9b5c07d8.js → p-e8494ec8.js} +3 -3
- package/dist/components/p-e8494ec8.js.map +1 -0
- package/dist/components/{p-e6863cf5.js → p-ea9ebc32.js} +5 -5
- package/dist/components/p-ea9ebc32.js.map +1 -0
- package/dist/components/p-ecc51430.js.map +1 -1
- package/dist/components/{p-144c34f6.js → p-f03f4355.js} +15 -15
- package/dist/components/p-f03f4355.js.map +1 -0
- package/dist/components/pedido-finalizado.js +2 -2
- package/dist/components/pedido-finalizado.js.map +1 -1
- package/dist/components/phone-form.js +1 -1
- package/dist/components/phone-input-mask.js +1 -1
- package/dist/components/pin-form.js +1 -1
- package/dist/crmbonus-component-wake/assets/logo.svg +17 -17
- package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js +1 -1
- package/dist/crmbonus-component-wake/p-0022358e.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-0022358e.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/p-7200b5b6.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-7200b5b6.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/{p-ac027576.entry.js → p-8ea219da.entry.js} +2 -2
- package/dist/crmbonus-component-wake/p-8ea219da.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/p-951beb29.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-951beb29.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/p-af3ba015.js.map +1 -1
- package/dist/crmbonus-component-wake/p-b4f52f79.js.map +1 -1
- package/dist/crmbonus-component-wake/p-bbe4fb1e.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-bbe4fb1e.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/{p-0d09c221.js → p-e632b13e.js} +2 -2
- package/dist/crmbonus-component-wake/{p-0d09c221.js.map → p-e632b13e.js.map} +1 -1
- package/dist/crmbonus-component-wake/p-f845f93c.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-f845f93c.entry.js.map +1 -0
- package/dist/env.js +2 -2
- package/dist/env.js.map +1 -1
- package/dist/esm/app-modal.entry.js +1 -1
- package/dist/esm/app-modal.entry.js.map +1 -1
- package/dist/esm/{cart.helper-8c8d4a0a.js → cart.helper-4bf51ec4.js} +3 -3
- package/dist/esm/{cart.helper-8c8d4a0a.js.map → cart.helper-4bf51ec4.js.map} +1 -1
- package/dist/esm/container-empty.entry.js +1 -1
- package/dist/esm/container-empty.entry.js.map +1 -1
- package/dist/esm/countdown-timer-v2.entry.js +1 -1
- package/dist/esm/countdown-timer-v2.entry.js.map +1 -1
- package/dist/esm/countdown-timer_11.entry.js +36 -37
- package/dist/esm/countdown-timer_11.entry.js.map +1 -1
- package/dist/esm/crm-bonus-note.entry.js +5 -5
- package/dist/esm/crm-bonus-note.entry.js.map +1 -1
- package/dist/esm/info.config.helper-e4b8c478.js.map +1 -1
- package/dist/esm/pedido-finalizado.entry.js +2 -2
- package/dist/esm/pedido-finalizado.entry.js.map +1 -1
- package/dist/esm/utils-dec6df66.js.map +1 -1
- package/dist/types/home/darlison/Projects/Bycoders/crmbonus/crmbonus-component/.stencil/env.d.ts +2 -0
- package/package.json +58 -58
- package/readme.md +114 -114
- package/dist/components/p-0a7ccd8c.js.map +0 -1
- package/dist/components/p-11520f0f.js.map +0 -1
- package/dist/components/p-144c34f6.js.map +0 -1
- package/dist/components/p-2cece106.js.map +0 -1
- package/dist/components/p-3c8ae82e.js.map +0 -1
- package/dist/components/p-786485b2.js.map +0 -1
- package/dist/components/p-8274e2c4.js.map +0 -1
- package/dist/components/p-9b5c07d8.js.map +0 -1
- package/dist/components/p-c250687d.js.map +0 -1
- package/dist/components/p-e6863cf5.js.map +0 -1
- package/dist/crmbonus-component-wake/p-1644deef.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-1644deef.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-7e52727e.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-7e52727e.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-ac027576.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-ac1e7c32.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-ac1e7c32.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-cb1b437c.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-cb1b437c.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-df80d1b0.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-df80d1b0.entry.js.map +0 -1
- package/dist/types/Users/Darlison/Projects/Bycoders/crmbonus/crmbonus-component/.stencil/env.d.ts +0 -2
@@ -9,7 +9,7 @@ const ContainerEmpty = class {
|
|
9
9
|
index.registerInstance(this, hostRef);
|
10
10
|
}
|
11
11
|
render() {
|
12
|
-
return (index.h("div", { key: '
|
12
|
+
return (index.h("div", { key: '4539873f651bb2cb8d75235d233f30b1f89fa5d8', class: "crm-empty" }, "dww"));
|
13
13
|
}
|
14
14
|
};
|
15
15
|
ContainerEmpty.style = "container-empty.css";
|
@@ -1 +1 @@
|
|
1
|
-
{"file":"container-empty.entry.cjs.js","mappings":";;;;;;MAMa,cAAc;;;;IAEvB,MAAM;QACF,QACIA,kEAAK,KAAK,EAAC,WAAW,UAEhB,EACT;KACJ;;;;;;","names":["h"],"sources":["src/components/loading-container/container-empty.tsx"],"sourcesContent":["import { Component, h } from \"@stencil/core\";\
|
1
|
+
{"file":"container-empty.entry.cjs.js","mappings":";;;;;;MAMa,cAAc;;;;IAEvB,MAAM;QACF,QACIA,kEAAK,KAAK,EAAC,WAAW,UAEhB,EACT;KACJ;;;;;;","names":["h"],"sources":["src/components/loading-container/container-empty.tsx"],"sourcesContent":["import { Component, h } from \"@stencil/core\";\n\n@Component({\n tag: 'container-empty',\n styles: 'container-empty.css'\n})\nexport class ContainerEmpty {\n\n render() {\n return (\n <div class=\"crm-empty\">\n dww\n </div>\n )\n }\n}"],"version":3}
|
@@ -68,7 +68,7 @@ const CountdownTimer = class {
|
|
68
68
|
return `${parseInt(minutes.toString())}m ${seconds}s`;
|
69
69
|
}
|
70
70
|
render() {
|
71
|
-
return (index.h("label", { key: '
|
71
|
+
return (index.h("label", { key: '101aafc809585623eb5c2663ebaa4644d4761ac2' }, " ", this.minutes));
|
72
72
|
}
|
73
73
|
};
|
74
74
|
|
@@ -1 +1 @@
|
|
1
|
-
{"file":"countdown-timer-v2.entry.cjs.js","mappings":";;;;;;MAMa,cAAc;;;;sBAGG,KAAK;qBAEf;YACZ,UAAU,EAAE,IAAI,IAAI,EAAE;YACtB,SAAS,EAAE,IAAI,IAAI,EAAE;SACxB;uBAG0B,CAAC;;;IAK5B,iBAAiB;QACb,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QAC9B,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;KAC9B;IAEO,SAAS;QAEb,MAAM,OAAO,GAAG,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,GACX,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,IAAI,MAAM,CAAC,gBAAgB,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;YAE/F,IAAI,iBAAiB,GAAG,CAAC,EAAE;gBACvB,aAAa,CAAC,SAAS,CAAC,CAAC;gBACzB,WAAW,GAAG,OAAO,CAAC;gBACtB,YAAY,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;gBACnC,IAAI,CAAC,QAAQ,EAAE,CAAA;gBACf,OAAO;aACV;YAED,iBAAiB,EAAE,CAAC;YAEpB,YAAY,CAAC,OAAO,CAAC,SAAS,EAAE,iBAAiB,CAAC,CAAC;YACnD,IAAI,CAAC,OAAO,GAAG,WAAW,CAAA;SAC7B,EAAE,IAAI,CAAC,CAAC;KACZ;IAED,oBAAoB;QAChB,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KAClC;IAED,OAAO;QACH,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClC,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAElC,IAAI,OAAO,GAAG,CAAC;YAAE,OAAO,GAAG,OAAO,GAAG,CAAA;QAErC,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,OAAO,GAAG,CAAA;KACxD;IAED,MAAM;QACF,QACIA,2EAAS,IAAI,CAAC,OAAO,CAAS,EAChC;KACL;;;;;","names":["h"],"sources":["src/components/countdown-timer/countdown-timer.v2.tsx"],"sourcesContent":["import { Component, h, Prop, State } from '@stencil/core';\
|
1
|
+
{"file":"countdown-timer-v2.entry.cjs.js","mappings":";;;;;;MAMa,cAAc;;;;sBAGG,KAAK;qBAEf;YACZ,UAAU,EAAE,IAAI,IAAI,EAAE;YACtB,SAAS,EAAE,IAAI,IAAI,EAAE;SACxB;uBAG0B,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AAM,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,iBAAiB,GAAG,EAAE,CAAC,CAAC;YAC3D,MAAM,gBAAgB,GAAG,CAAC,iBAAiB,GAAG,EAAE,EAAE,OAAO,EAAE,CAAC;YAE5D,IAAI,WAAW,GACX,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,IAAI,MAAM,CAAC,gBAAgB,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;YAE/F,IAAI,iBAAiB,GAAG,CAAC,EAAE;gBACvB,aAAa,CAAC,SAAS,CAAC,CAAC;gBACzB,WAAW,GAAG,OAAO,CAAC;gBACtB,YAAY,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;gBACnC,IAAI,CAAC,QAAQ,EAAE,CAAA;gBACf,OAAO;aACV;YAED,iBAAiB,EAAE,CAAC;YAEpB,YAAY,CAAC,OAAO,CAAC,SAAS,EAAE,iBAAiB,CAAC,CAAC;YACnD,IAAI,CAAC,OAAO,GAAG,WAAW,CAAA;SAC7B,EAAE,IAAI,CAAC,CAAC;KACZ;IAED,oBAAoB;QAChB,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KAClC;IAED,OAAO;QACH,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClC,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAElC,IAAI,OAAO,GAAG,CAAC;YAAE,OAAO,GAAG,OAAO,GAAG,CAAA;QAErC,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,OAAO,GAAG,CAAA;KACxD;IAED,MAAM;QACF,QACIA,2EAAS,IAAI,CAAC,OAAO,CAAS,EAChC;KACL;;;;;","names":["h"],"sources":["src/components/countdown-timer/countdown-timer.v2.tsx"],"sourcesContent":["import { Component, h, Prop, State } from '@stencil/core';\n\n@Component({\n tag: 'countdown-timer-v2',\n shadow: true,\n})\nexport class CountdownTimer {\n\n @Prop() downtime: () => void;\n @Prop() reload: boolean = false;\n\n @Prop() dates = {\n expiration: new Date(),\n createdAt: new Date()\n };\n\n\n @State() seconds: number = 0;\n @State() minutes: string;\n\n private intervalId: NodeJS.Timer;\n\n componentWillLoad() {\n const time = this.buildTime();\n this.iniciarContador(time);\n }\n\n private buildTime(): number {\n\n const initial = localStorage.getItem(\"bc:time\");\n\n if (initial && !this.reload) {\n return Number(initial);\n }\n\n const dataFinal: Date = new Date(this.dates.expiration);\n const agora: Date = new Date(this.dates.createdAt);\n\n const diferencaMs = dataFinal.getTime() - agora.getTime();\n\n if (diferencaMs <= 0) {\n return diferencaMs;\n }\n\n const diferencaSegundos = diferencaMs / 1000; // Converter milissegundos para segundos\n const minutos = Math.floor(diferencaSegundos / 60); // Calcular minutos\n const segundos = Math.floor(diferencaSegundos % 60); // Calcular segundos restantes\n\n const m = minutos >= 10 ? minutos : `0${minutos}`\n const s = segundos >= 10 ? segundos : `0${segundos}`\n\n this.minutes = `${m}:${s}`;\n\n return diferencaSegundos;\n\n }\n\n iniciarContador(params) {\n let segundosRestantes = params;\n const intervalo = setInterval(() => {\n const minutosExibidos = Math.floor(segundosRestantes / 60);\n const segundosExibidos = (segundosRestantes % 60).toFixed();\n\n let textContent =\n `${String(minutosExibidos).padStart(2, '0')}:${String(segundosExibidos).padStart(2, '0')}`;\n\n if (segundosRestantes < 0) {\n clearInterval(intervalo);\n textContent = \"00:00\";\n localStorage.removeItem(\"bc:time\");\n this.downtime()\n return;\n }\n\n segundosRestantes--;\n\n localStorage.setItem(\"bc:time\", segundosRestantes);\n this.minutes = textContent\n }, 1000);\n }\n\n disconnectedCallback() {\n clearInterval(this.intervalId);\n }\n\n padLeft() {\n const minutes = this.seconds / 60;\n const seconds = this.seconds % 60;\n\n if (minutes < 1) return `${seconds}s`\n\n return `${parseInt(minutes.toString())}m ${seconds}s`\n }\n\n render() {\n return (\n <label> {this.minutes}</label>\n );\n }\n}\n"],"version":3}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
const index = require('./index-a7537457.js');
|
6
|
-
const cart_helper = require('./cart.helper-
|
6
|
+
const cart_helper = require('./cart.helper-96d1b9db.js');
|
7
7
|
const info_config_helper = require('./info.config.helper-d4b1291b.js');
|
8
8
|
const utils = require('./utils-5d59acb1.js');
|
9
9
|
|
@@ -51,7 +51,7 @@ const CountdownTimer = class {
|
|
51
51
|
const minutos = Math.floor(this.tempoRestante / 60000);
|
52
52
|
const segundos = Math.floor((this.tempoRestante % 60000) / 1000);
|
53
53
|
const tempoFormatado = `${String(minutos).padStart(2, '0')}:${String(segundos).padStart(2, '0')}`;
|
54
|
-
return (index.h("label", { key: '
|
54
|
+
return (index.h("label", { key: '18d5e1487a5c1986858f319f6169d9ea6f8db925' }, " ", tempoFormatado));
|
55
55
|
}
|
56
56
|
};
|
57
57
|
|
@@ -66,15 +66,20 @@ var AjustesTipoEnum;
|
|
66
66
|
function buildProductsByWake(productsWake = []) {
|
67
67
|
const products = [];
|
68
68
|
for (const pw of productsWake) {
|
69
|
-
let discounts = getDiscount(pw.Ajustes);
|
70
69
|
// let discounts_formula = getDiscountFormula(pw.Ajustes);
|
71
70
|
const hasOriginalPrice = (pw.PrecoDe < pw.PrecoPor);
|
72
|
-
const
|
73
|
-
var value = (price * pw.Quantidade);
|
74
|
-
var originalValue = (pw.PrecoDe * pw.Quantidade);
|
75
|
-
var discounts_value = (discounts * -1);
|
71
|
+
const hasDiscountInProduct = (pw.PrecoPor < pw.PrecoDe);
|
76
72
|
const existsPromotionProduct = pw.Ajustes.filter(adj => [AjustesTipoEnum.PP].includes(adj.Tipo));
|
77
73
|
const promotion_product = (existsPromotionProduct.length > 0);
|
74
|
+
let discounts = getDiscount(pw.Ajustes, hasOriginalPrice);
|
75
|
+
let price = hasOriginalPrice ? pw.PrecoPor : pw.PrecoDe;
|
76
|
+
const priceOrignal = hasOriginalPrice ? pw.PrecoPor : pw.PrecoDe;
|
77
|
+
if (!promotion_product && hasDiscountInProduct) {
|
78
|
+
price = pw.PrecoPor;
|
79
|
+
}
|
80
|
+
var value = (price * pw.Quantidade);
|
81
|
+
var originalValue = (priceOrignal * pw.Quantidade);
|
82
|
+
var discounts_value = (discounts * -1);
|
78
83
|
products.push({
|
79
84
|
sku: pw.SKU,
|
80
85
|
value: value,
|
@@ -87,24 +92,19 @@ function buildProductsByWake(productsWake = []) {
|
|
87
92
|
}
|
88
93
|
return products;
|
89
94
|
}
|
90
|
-
function getDiscount(ajustes = []) {
|
95
|
+
function getDiscount(ajustes = [], hasOriginalPrice) {
|
91
96
|
let discounts = 0;
|
97
|
+
const config_ajustes = [AjustesTipoEnum.P, AjustesTipoEnum.CC];
|
98
|
+
if (!hasOriginalPrice) {
|
99
|
+
config_ajustes.push(AjustesTipoEnum.PP);
|
100
|
+
}
|
92
101
|
for (const discount of ajustes) {
|
93
|
-
if (
|
102
|
+
if (config_ajustes.includes(discount.Tipo)) {
|
94
103
|
discounts += discount.Valor;
|
95
104
|
}
|
96
105
|
}
|
97
106
|
return discounts;
|
98
107
|
}
|
99
|
-
// function getDiscountFormula(ajustes: IAjustes[] = []) {
|
100
|
-
// let discounts = 0;
|
101
|
-
// for(const discount of ajustes) {
|
102
|
-
// if([AjustesTipoEnum.F].includes(discount.Tipo)) {
|
103
|
-
// discounts += (discount.Valor * -1);
|
104
|
-
// }
|
105
|
-
// }
|
106
|
-
// return discounts;
|
107
|
-
// }
|
108
108
|
|
109
109
|
const crmBonusCss = ".container-button{cursor:pointer;padding:5px 5px 5px 14px;}.section-crm{border:1px solid #dbd4d4;text-align:-webkit-center;margin-bottom:20px}.section-cart-crm{margin-top:10px}.section-cart-crm p{padding:0;margin:0px 0px 0px 15px}.button{top:50%;background-color:#6c6c7e;color:#fff;border:none;padding:15px;min-height:30px;min-width:120px;cursor:pointer;margin-left:10px;height:70px}.form-container{width:97%;display:flex;justify-content:space-around}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:0px}.form-container .btnCrm{background:#00162e;border-color:#00162e;width:30%;color:#fff}.message-alert{color:#df4d4d;margin-top:5px}";
|
110
110
|
const CrmBonusStyle0 = crmBonusCss;
|
@@ -275,7 +275,6 @@ const CrmBonus$1 = class {
|
|
275
275
|
}, 1500000);
|
276
276
|
}
|
277
277
|
async buildAndGetProducts(productsWake) {
|
278
|
-
console.log();
|
279
278
|
const key = `bc-products:${this.cartWake.id}`;
|
280
279
|
const productsString = JSON.stringify(productsWake);
|
281
280
|
localStorage.setItem(key, productsString);
|
@@ -390,7 +389,7 @@ const Button = class {
|
|
390
389
|
this.handleClick = undefined;
|
391
390
|
}
|
392
391
|
render() {
|
393
|
-
return (index.h("div", { key: '
|
392
|
+
return (index.h("div", { key: '848df9f754a114343163eae85d34a2acb6b04863', class: "crm-contaner-button" }, index.h("button", { key: '517b761b39ced2615dd04fc42d5aaa98a7d749f6', class: "crm-button", onClick: () => this.handleClick() }, !this.loading ? this.txtBtn : index.h("loading-spinner", { size: "15px", color: "#fff" }))));
|
394
393
|
}
|
395
394
|
};
|
396
395
|
Button.style = CrmButtonStyle0;
|
@@ -657,18 +656,18 @@ const CrmBonus = class {
|
|
657
656
|
});
|
658
657
|
}
|
659
658
|
render() {
|
660
|
-
return (index.h("div", { key: '
|
661
|
-
index.h("phone-form", { key: '
|
662
|
-
index.h("pin-form", { key: '
|
663
|
-
index.h("giftback-info", { key: '
|
664
|
-
(index.h("div", { key: '
|
659
|
+
return (index.h("div", { key: '7c2072d49e7f8c16c5f5e202d13c50e074fa3b12', class: "crm-container-form fbits-responsive-carrinho-desconto", style: this.customStyles }, index.h("label", { key: '1d5fa80478a1cca207c5530cd2d0cccff0afdf4a', class: "crm-title" }, this.config.giftbackTitle), this.error && (index.h("label", { key: 'ec124cdacfe66bdbd3ea0a7a00e7bc3681365909', class: "crm-message-error" }, this.error)), this.step === info_config_helper.StepFormEnum.STEP_PHONE &&
|
660
|
+
index.h("phone-form", { key: '922c8fd1cb546f780be1d5693740621e491935f1', value: this.customer.phone, config: this.config, loading: this.loading, handlerSubmit: (phone) => this.handleSendPin(phone) }), this.step === info_config_helper.StepFormEnum.STEP_PIN &&
|
661
|
+
index.h("pin-form", { key: '989f5530956ed5aad72e3c2f4936ed1ff3b5004e', config: this.config, phone: this.phone, cancel: () => this.changePhone(), resend: () => this.sendPin(), validate: (data) => this.validateBonus(data), loading: this.loading }, this.sucess && index.h("p", { key: '76d3ad797f690b29dcdcc388bb82c013d733044e', class: "crm-message-info" }, this.sucess), this.error && index.h("p", { key: 'e994b0a38a699b68ba022f1b15e6dbb96fa0260f', class: "crm-message-error" }, this.error)), this.step === info_config_helper.StepFormEnum.STEP_RESERVE &&
|
662
|
+
index.h("giftback-info", { key: '16e9d1053db89f0c2d51aa5ee2edc4682e51c216', storeName: this.storeName, infoBonus: this.reservedInfo, config: this.config, loading: this.loading, cancel: () => this.handleCancel(), bonus: this.bonus, reserve: () => this.processBonus(), cartId: this.cartId }), this.step === info_config_helper.StepFormEnum.STEP_NO_BONUS &&
|
663
|
+
(index.h("div", { key: '6fcc79ccf75b3746dda9248db45ecc92d9e87d7c', class: "container-message" }, info_config_helper.instance.t("noGiftback", { storename: this.config.giftbackTitle })))));
|
665
664
|
}
|
666
665
|
};
|
667
666
|
CrmBonus.style = CrmGiftbackFormStyle0;
|
668
667
|
|
669
668
|
const infoCircleSvgrepoComSvg = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IS0tIFVwbG9hZGVkIHRvOiBTVkcgUmVwbywgd3d3LnN2Z3JlcG8uY29tLCBHZW5lcmF0b3I6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1IDYuODkxMzcgMTcuMTA4NiAyLjc1IDEyIDIuNzVaIiBmaWxsPSIjMUMyNzRDIi8+DQo8L3N2Zz4=';
|
670
669
|
|
671
|
-
const crmTooltipCss = ".crm-tooltip-container {\
|
670
|
+
const crmTooltipCss = ".crm-tooltip-container {\n display: flex;\n\n & img {\n width: 16px;\n margin-left: 3px;\n position: relative;\n }\n}\n\n.crm-tooltip {\n position: relative;\n display: inline-block;\n}\n\n.crm-tooltip .tooltiptext {\n visibility: hidden;\n background-color: black;\n color: #fff;\n text-align: center;\n padding: 8px 12px;\n border-radius: 0px;\n position: absolute;\n z-index: 1;\n min-width: 271px;\n top: 100%;\n left: 50%;\n margin-left: -238px;\n}\n\n@container (max-width: 410px) {\n .crm-tooltip .tooltiptext {\n margin-left: -14px;\n }\n\n .crm-tooltip #crm-role-description {\n margin-left: -151px;\n }\n}\n\n@container (max-width: 250px) {\n .crm-tooltip .tooltiptext {\n margin-left: -201px;\n }\n}\n\n.crm-tooltip:hover .tooltiptext {\n visibility: visible;\n}";
|
672
671
|
const CrmTooltipStyle0 = crmTooltipCss;
|
673
672
|
|
674
673
|
const Tooltip = class {
|
@@ -678,7 +677,7 @@ const Tooltip = class {
|
|
678
677
|
this.identity = undefined;
|
679
678
|
}
|
680
679
|
render() {
|
681
|
-
return (index.h("div", { key: '
|
680
|
+
return (index.h("div", { key: '71409ae629da069a909837eaf202fe691b2338b9', class: "crm-tooltip-container crm-tooltip" }, index.h("img", { key: '988ee2ce69927558726b0246e67a223645a5a982', src: infoCircleSvgrepoComSvg }), index.h("span", { key: 'c169feaf3e3aa8ba058532e18f9f7df5a22f70aa', id: this.identity, class: "tooltiptext" }, this.text)));
|
682
681
|
}
|
683
682
|
};
|
684
683
|
Tooltip.style = CrmTooltipStyle0;
|
@@ -783,14 +782,14 @@ const GiftbackInfo = class {
|
|
783
782
|
const remainingGiftback = this.bonus.minimumPurchase - this.bonus.totalValue;
|
784
783
|
const translateDescription = info_config_helper.instance.t("giftDescription", { amount: `${(_b = (_a = this.bonus) === null || _a === void 0 ? void 0 : _a.totalBonus) === null || _b === void 0 ? void 0 : _b.toFixed(2).replace(".", ",")}`, custom_name: "Giftback" });
|
785
784
|
const limit = utils.defineLimit(remainingGiftback);
|
786
|
-
return (index.h("div", { key: '
|
785
|
+
return (index.h("div", { key: 'b0bad3ffe129067775bc8e003bce792b5df73a35', class: "giftback-container" }, index.h("div", { key: '50a523afc91d4832d8f63f3b42bc143a906da8b4', class: "container-description" }, index.h("p", { key: 'd65a1031581f4edd6c7f3e7771439086bdb8ec63', innerHTML: translateDescription }), index.h("crm-tooltip", { key: 'd7a84e830631c983c6b143fa983213db39e72809', identity: "crm-role-description", text: info_config_helper.instance.t("labelUseGiftback", { minimumPurchase: this.bonus.minimumPurchase, expírationDate: utils.formatDateToBr(this.bonus.firstValidityDate) }) })), index.h("div", { key: 'b23127fe5b2fd1d007ec2eb64e901df32dec2f6d', class: "slider-wrapper" }, index.h("div", { key: 'cf98c2a9dfcf8ce324cebff2c296989d80eb96c3', class: "slider-value", style: {
|
787
786
|
left: `calc(${this.sliderValuePosition}% - 20px)`, // Ajuste para centralizar o texto
|
788
|
-
} }, "R$ ", this.usedValue.toFixed(2).replace(".", ",")), index.h("input", { key: '
|
787
|
+
} }, "R$ ", this.usedValue.toFixed(2).replace(".", ",")), index.h("input", { key: 'f3a555f9641d0362319d79aa66ac4229495482b3', ref: ref => this._refIinputRange = ref, id: "position_value_id", disabled: true, type: "range", min: "0", max: this.bonus.totalBonus, value: this.usedValue, class: "slider", step: "0.01", onInput: (event) => this.handleSliderChange(event), style: {
|
789
788
|
background: `linear-gradient(to right, #6D6D5F ${this.sliderPosition}%, #ddd ${this.sliderPosition}%)`,
|
790
|
-
} })), limit.isComplete && (index.h("p", { key: '
|
791
|
-
_c.giftbackTitle)), index.h("div", { key: '
|
789
|
+
} })), limit.isComplete && (index.h("p", { key: '29121ab93d4cb435b9c2d599dff16a8cbac6ccbc' }, info_config_helper.instance.t("maxAmount"))), !limit.isComplete && (index.h("div", { key: '7821e699c9b8b6ca6d62bea4ea7793d0beaff5ba', class: "container-description" }, index.h("p", { key: 'e384b3cec08d9ae160f03a3623029e7c4dd410a0' }, "Adicione ", index.h("strong", { key: '8c0876f3c1c3881d96cee5328c98143e5ead154f' }, "R$ ", remainingGiftback < 0 ? "0,00" : remainingGiftback.toFixed(2).replace(".", ",")), " ao carrinho para atingir o valor m\u00E1ximo!"), index.h("crm-tooltip", { key: '269c710ccb49afe750190ba2f63b6528b384c095', identity: "crm-max-description", text: info_config_helper.instance.t("labelamountPartial") }))), index.h("div", { key: '28243802a10069d56219c7613bb9c4d14e97248b', class: "options" }, index.h("div", { key: '861c3f4f7aa9b85650c6a7129350759356d6951b', class: "options-option" }, index.h("input", { key: '78775b169a6e108256c0fe71b153e8118f928bdd', disabled: this.showTime(), type: "radio", name: "giftbackOption", value: "use", checked: this.selectedOption === 'use', onChange: () => this.handleOptionChange('use') }), index.h("p", { key: 'd6945b714fd21676feecceaaacca5b60f8827e4f' }, "Usar o meu ", (_c = this.config) === null || _c === void 0 ? void 0 :
|
790
|
+
_c.giftbackTitle)), index.h("div", { key: 'a9e146b79685a77b834214f22dca02636b5c6f62', class: "options-option" }, index.h("input", { key: '51a3d206cb3bc204585ecc8cecfd6eed7c474d5f', disabled: this.showTime(), type: "radio", name: "giftbackOption", value: "dontUse", checked: this.selectedOption === 'dontUse', onChange: () => this.handleOptionChange('dontUse') }), index.h("p", { key: '5a2e0f8cd8e4e1ebd3d83be101e979eaedd85615' }, "N\u00E3o usar o meu ", (_d = this.config) === null || _d === void 0 ? void 0 :
|
792
791
|
_d.giftbackTitle))), this.showTime() &&
|
793
|
-
(index.h("div", { key: '
|
792
|
+
(index.h("div", { key: 'edd0d02becfc9cfb78a5651fdba03d6163dc184f', class: "info-box" }, "Ap\u00F3s ", index.h("countdown-timer", { key: 'dc7431190118c4bec059c7a5b7ede20bee7a6969', dataCriacao: new Date((_f = (_e = this.infoBonus) === null || _e === void 0 ? void 0 : _e.metadata) === null || _f === void 0 ? void 0 : _f.createdAt).toString(), downtime: () => { window.location.reload(); } }), ", voc\u00EA poder\u00E1 alterar sua escolha de usar ou n\u00E3o o Giftback.")), !((_g = this === null || this === void 0 ? void 0 : this.infoBonus) === null || _g === void 0 ? void 0 : _g.isBonusProcessed) && (index.h("div", { key: '91fbdd9d96526b34f2993a8190d7b02c2d61c2a3', class: "info-box" }, "O Giftback ser\u00E1 aplicado na pr\u00F3xima etapa."))));
|
794
793
|
}
|
795
794
|
static get watchers() { return {
|
796
795
|
"bonus": ["changedBonus"]
|
@@ -808,7 +807,7 @@ const LoadingContainer = class {
|
|
808
807
|
this.text = null;
|
809
808
|
}
|
810
809
|
render() {
|
811
|
-
return (index.h("div", { key: '
|
810
|
+
return (index.h("div", { key: '7b7d88c96033493ef652f0b331245b644b44e6b6', class: "relative-xy" }, this.loading && (index.h("div", { key: 'a8be02caf61d0cdfb4fcd725faefe5a0a03b513d', class: "loading-container" }, index.h("div", { key: 'ba672afc6fc7ba7afe18c1e44e392dee7ca312bc', class: "loading-spinner" }), this.text && index.h("p", { key: '80f2f8e365f078a13fcf94e2284853d4194862bb' }, this.text))), index.h("slot", { key: 'a37b15c9dea5d39b448565cc71d67525660bf85b' })));
|
812
811
|
}
|
813
812
|
};
|
814
813
|
LoadingContainer.style = LoadingContainerStyle0;
|
@@ -823,7 +822,7 @@ const LoadingSpinner = class {
|
|
823
822
|
this.color = '#0078d7';
|
824
823
|
}
|
825
824
|
render() {
|
826
|
-
return (index.h("div", { key: '
|
825
|
+
return (index.h("div", { key: 'cf39cac39aa41032b67a1d1b28b4d3f379490c42', class: "spinner", style: { width: this.size, height: this.size, borderColor: `${this.color} transparent transparent transparent` } }));
|
827
826
|
}
|
828
827
|
};
|
829
828
|
LoadingSpinner.style = LoadingSpinnerStyle0;
|
@@ -845,7 +844,7 @@ const PhoneForm = class {
|
|
845
844
|
}
|
846
845
|
render() {
|
847
846
|
var _a;
|
848
|
-
return (index.h(index.Host, { key: '
|
847
|
+
return (index.h(index.Host, { key: '5d6b2714caf878d9971982337a164e50e890888a', class: "crm-phone-form" }, index.h("p", { key: '74f319cbf7c764b5b514407793700d6a240eb478', class: "crm-subtitle" }, "Digite o seu celular para verificar se h\u00E1 desconto dispon\u00EDvel nessa compra:"), index.h("phone-input-mask", { key: '168ee6a82a4597295dc27d037fd4059fe4435cf8', initialValue: this.value, ref: ref => this.phoneInputMask = ref }), index.h("crm-button", { key: '174990425c63239c7178edbccc942db3e6116004', txtBtn: ((_a = this.config) === null || _a === void 0 ? void 0 : _a.btnApplyBonusLabel) || "Avançar", loading: this.loading, handleClick: () => this.handlePhone() })));
|
849
848
|
}
|
850
849
|
};
|
851
850
|
PhoneForm.style = PhoneFormStyle0;
|
@@ -896,7 +895,7 @@ const PhoneInputMask = class {
|
|
896
895
|
return this.phone;
|
897
896
|
}
|
898
897
|
render() {
|
899
|
-
return (index.h("div", { key: '
|
898
|
+
return (index.h("div", { key: '5b05bc28be806302e366fa7ce5e7613d99fe942b' }, index.h("input", { key: 'f3e73eafd3c4610ebc8ca9a155e5390db20ac8db', disabled: this.disabled, id: "phone", type: "text", class: "phone-input-form", value: this.phone, onInput: (event) => this.handleInput(event), placeholder: "(99) 99999 9999" }), index.h("p", { key: '53044b06b973b7785e3b617a7aaf550010236c3d', class: "crm-erro-msg" }, this.message)));
|
900
899
|
}
|
901
900
|
};
|
902
901
|
PhoneInputMask.style = PhoneInputMaskStyle0;
|
@@ -967,7 +966,7 @@ const GiftbackPin = class {
|
|
967
966
|
}
|
968
967
|
render() {
|
969
968
|
var _a;
|
970
|
-
return (index.h("div", { key: '
|
969
|
+
return (index.h("div", { key: '05f3ded47b176892e8c59dddd08b1c43fd2f26bb', class: "crm-phone-form" }, index.h("label", { key: '973cbc7e98431cd8ee44f3453416b5696b7d292c', class: "crm-subtitle" }, info_config_helper.instance.t('pin-sutitle'), " ", index.h("strong", { key: '8cae1cc584781460060fd84361a539c82194f26f' }, "+55 ", this.phone)), index.h("div", { key: 'fc1d2cf4d6ea858a56f943f9c33249ea1c7a1702', class: "pin-container" }, this.pin.map((_, index$1) => (index.h("input", { type: "text", maxLength: 1, value: this.pin[index$1], onInput: (event) => this.handleInput(event, index$1) })))), index.h("slot", { key: 'c5eeb7932b47c042c45c895e340177b2c9256156' }), index.h("p", { key: '706785a6e4cb01efb5eb24a00944e3833e401edf', class: "crm-description" }, " N\u00E3o recebeu?", !this.canResend && index.h("label", { key: 'bedd4eb47d1d17c042ae90dd391948e8da613999' }, " Reenviar em", index.h("countdown-timer", { key: '1752550acfc64b0cac4e39817196802fbe2f24bf', minutos: 0, segundos: 30, dataCriacao: this.buildTime(), downtime: () => this.handleTimeout() }), " "), this.canResend && (index.h("div", { key: '440e2fa2c5aae57d0c9b3500d2e7f94da248e522' }, index.h("a", { key: 'f00fd4ffa19991bb3027b031bb9acba487ddde76', onClick: () => this.handleResend() }, "Reenviar"), index.h("a", { key: '59749f8abf49c358dee5526f1ade91904eab209e', onClick: () => this.cancel() }, "Trocar n\u00FAmero")))), index.h("crm-button", { key: '8a5f9e66a197262c0e10632e9275d8fe70360b11', txtBtn: ((_a = this.config) === null || _a === void 0 ? void 0 : _a.btnApplyBonusLabel) || "Avançar", loading: this.loading, handleClick: () => this.validatePin() })));
|
971
970
|
}
|
972
971
|
};
|
973
972
|
GiftbackPin.style = PinFormStyle0 + PinFormStyle1;
|