crmbonus-component-wake 2.1.30-ngrok → 2.1.31-ngrok
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/cjs/app-modal.cjs.entry.js +1 -1
- package/dist/cjs/{build.payload.helper-c35bd233.js → build.payload.helper-b93f7ea5.js} +13 -13
- package/dist/cjs/build.payload.helper-b93f7ea5.js.map +1 -0
- package/dist/{esm/crmbonus.service-4c05689c.js → cjs/cart.helper-b08a12b2.js} +123 -3
- package/dist/cjs/cart.helper-b08a12b2.js.map +1 -0
- package/dist/cjs/countdown-timer-v2.cjs.entry.js +1 -1
- package/dist/cjs/countdown-timer_2.cjs.entry.js +2 -2
- package/dist/cjs/crm-bonus-2.cjs.entry.js +284 -0
- package/dist/cjs/crm-bonus-2.cjs.entry.js.map +1 -0
- package/dist/cjs/crm-bonus-note.cjs.entry.js +8 -10
- package/dist/cjs/crm-bonus-note.cjs.entry.js.map +1 -1
- package/dist/cjs/crm-bonus-tray.cjs.entry.js +1 -1
- package/dist/cjs/crm-bonus.cjs.entry.js +8 -257
- package/dist/cjs/crm-bonus.cjs.entry.js.map +1 -1
- package/dist/cjs/crm-giftback-form.cjs.entry.js +24 -26
- package/dist/cjs/crm-giftback-form.cjs.entry.js.map +1 -1
- package/dist/cjs/{crm-tooltip_4.cjs.entry.js → crm-tooltip_5.cjs.entry.js} +65 -14
- package/dist/cjs/crm-tooltip_5.cjs.entry.js.map +1 -0
- package/dist/cjs/crmbonus-component-wake.cjs.js +1 -1
- package/dist/{esm/i18n-b9d8b0cc.js → cjs/i18n-1ce6cb94.js} +23 -2
- package/dist/cjs/i18n-1ce6cb94.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/loading-container.cjs.entry.js +1 -1
- package/dist/cjs/loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/pedido-finalizado.cjs.entry.js +3 -4
- package/dist/cjs/pedido-finalizado.cjs.entry.js.map +1 -1
- package/dist/collection/collection-manifest.json +1 -7
- package/dist/collection/components/button/index.js +1 -1
- package/dist/collection/components/countdown-timer/countdown-timer.js +1 -1
- package/dist/collection/components/countdown-timer/countdown-timer.v2.js +1 -1
- package/dist/collection/components/crm-bonus/crm-bonus.js +7 -3
- package/dist/collection/components/crm-bonus/crm-bonus.js.map +1 -1
- package/dist/collection/components/crm-bonus/crmbonus.js +38 -0
- package/dist/collection/components/crm-bonus/crmbonus.js.map +1 -0
- package/dist/collection/components/giftback-form/giftback-form.js +5 -5
- package/dist/collection/components/giftback-form/subcomponents/giftback-info/giftback-info.js +5 -5
- package/dist/collection/components/giftback-form/subcomponents/phone-form/phone-form.js +1 -1
- package/dist/collection/components/giftback-form/subcomponents/pin-form/pin-form.js +1 -1
- package/dist/collection/components/loading-container/loading-container.js +1 -1
- package/dist/collection/components/loading-spinner/loading-spinner.js +1 -1
- package/dist/collection/components/modal/app-modal.js +1 -1
- package/dist/collection/components/note/crm-bonus-note.js +1 -1
- package/dist/collection/components/pedido/pedido.js +1 -1
- package/dist/collection/components/phone/phone-input-mask.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/dto/reserved-info.dto.js.map +1 -1
- package/dist/collection/helpers/build.payload.helper.js +12 -12
- package/dist/collection/helpers/build.payload.helper.js.map +1 -1
- package/dist/collection/objectvalues/cart.wake.js +23 -23
- package/dist/collection/objectvalues/cart.wake.js.map +1 -1
- package/dist/collection/tray-ecommerce/crm-bonus-tray.js +1 -1
- package/dist/components/app-modal.js +1 -1
- package/dist/components/countdown-timer-v2.js +1 -1
- package/dist/components/countdown-timer.js +1 -1
- package/dist/components/{name-input.d.ts → crm-bonus-2.d.ts} +4 -4
- package/dist/components/crm-bonus-2.js +379 -0
- package/dist/components/crm-bonus-2.js.map +1 -0
- package/dist/components/crm-bonus-note.js +4 -5
- package/dist/components/crm-bonus-note.js.map +1 -1
- package/dist/components/crm-bonus-tray.js +1 -1
- package/dist/components/crm-bonus.js +11 -330
- 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-1ea9924f.js → p-0a5e4aca.js} +123 -11
- package/dist/components/p-0a5e4aca.js.map +1 -0
- package/dist/components/{p-eb1f4328.js → p-11520f0f.js} +2 -2
- package/dist/components/{p-eb1f4328.js.map → p-11520f0f.js.map} +1 -1
- package/dist/components/{p-a3f4244f.js → p-4c7e066c.js} +13 -13
- package/dist/components/p-4c7e066c.js.map +1 -0
- package/dist/components/{p-53037d16.js → p-78fbe33d.js} +15 -16
- package/dist/components/p-78fbe33d.js.map +1 -0
- package/dist/components/{p-285d0caf.js → p-890dc5d5.js} +2 -2
- package/dist/components/{p-285d0caf.js.map → p-890dc5d5.js.map} +1 -1
- package/dist/components/{p-86dfe7ca.js → p-8fda6382.js} +5 -5
- package/dist/components/{p-86dfe7ca.js.map → p-8fda6382.js.map} +1 -1
- package/dist/components/{p-b86c93cc.js → p-bc930dfe.js} +3 -3
- package/dist/components/{p-b86c93cc.js.map → p-bc930dfe.js.map} +1 -1
- package/dist/components/{p-6b1f5521.js → p-c5be72a0.js} +2 -2
- package/dist/components/{p-6b1f5521.js.map → p-c5be72a0.js.map} +1 -1
- package/dist/components/{p-09048b73.js → p-ce77a841.js} +2 -2
- package/dist/components/{p-09048b73.js.map → p-ce77a841.js.map} +1 -1
- package/dist/components/{p-5210a82f.js → p-ee1c025b.js} +5 -5
- package/dist/components/{p-5210a82f.js.map → p-ee1c025b.js.map} +1 -1
- package/dist/components/{p-e31b6c28.js → p-f1823a52.js} +2 -2
- package/dist/components/{p-e31b6c28.js.map → p-f1823a52.js.map} +1 -1
- package/dist/components/{p-96e16ba5.js → p-fedabc25.js} +9 -10
- package/dist/components/p-fedabc25.js.map +1 -0
- package/dist/components/pedido-finalizado.js +2 -3
- 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/crmbonus-component-wake.esm.js +1 -1
- package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js.map +1 -1
- package/dist/crmbonus-component-wake/p-3e87e176.entry.js +2 -0
- package/dist/crmbonus-component-wake/{p-d1468887.entry.js.map → p-3e87e176.entry.js.map} +1 -1
- package/dist/crmbonus-component-wake/p-4c7e066c.js +2 -0
- package/dist/crmbonus-component-wake/p-4c7e066c.js.map +1 -0
- package/dist/crmbonus-component-wake/{p-e5d8700b.entry.js → p-54b8f32b.entry.js} +2 -2
- package/dist/crmbonus-component-wake/p-558202ef.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-558202ef.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/p-61ea41c9.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-6532623f.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-702d5a6f.js +2 -0
- package/dist/crmbonus-component-wake/p-702d5a6f.js.map +1 -0
- package/dist/crmbonus-component-wake/p-9b7bd1e1.entry.js +2 -0
- package/dist/crmbonus-component-wake/{p-2eb4e832.entry.js.map → p-9b7bd1e1.entry.js.map} +1 -1
- package/dist/crmbonus-component-wake/{p-427c86db.entry.js → p-9d926857.entry.js} +2 -2
- package/dist/crmbonus-component-wake/{p-39abc114.entry.js → p-ac027576.entry.js} +2 -2
- package/dist/crmbonus-component-wake/p-b928333a.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-b928333a.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/p-c54d706c.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-c54d706c.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/{p-1ea9924f.js → p-c74567c6.js} +2 -2
- package/dist/crmbonus-component-wake/p-c74567c6.js.map +1 -0
- package/dist/crmbonus-component-wake/{p-9a32f685.entry.js → p-ce2819cc.entry.js} +2 -2
- package/dist/crmbonus-component-wake/p-f37f3f3f.entry.js +2 -0
- package/dist/crmbonus-component-wake/{p-f4c65b63.entry.js.map → p-f37f3f3f.entry.js.map} +1 -1
- package/dist/env.js +2 -1
- package/dist/env.js.map +1 -1
- package/dist/esm/app-modal.entry.js +1 -1
- package/dist/esm/{build.payload.helper-c425c0cc.js → build.payload.helper-caf0a82b.js} +13 -13
- package/dist/esm/build.payload.helper-caf0a82b.js.map +1 -0
- package/dist/{cjs/crmbonus.service-4b03eaf1.js → esm/cart.helper-7101c047.js} +115 -8
- package/dist/esm/cart.helper-7101c047.js.map +1 -0
- package/dist/esm/countdown-timer-v2.entry.js +1 -1
- package/dist/esm/countdown-timer_2.entry.js +2 -2
- package/dist/esm/crm-bonus-2.entry.js +280 -0
- package/dist/esm/crm-bonus-2.entry.js.map +1 -0
- package/dist/esm/crm-bonus-note.entry.js +4 -6
- package/dist/esm/crm-bonus-note.entry.js.map +1 -1
- package/dist/esm/crm-bonus-tray.entry.js +1 -1
- package/dist/esm/crm-bonus.entry.js +8 -257
- package/dist/esm/crm-bonus.entry.js.map +1 -1
- package/dist/esm/crm-giftback-form.entry.js +7 -9
- package/dist/esm/crm-giftback-form.entry.js.map +1 -1
- package/dist/esm/{crm-tooltip_4.entry.js → crm-tooltip_5.entry.js} +63 -13
- package/dist/esm/crm-tooltip_5.entry.js.map +1 -0
- package/dist/esm/crmbonus-component-wake.js +1 -1
- package/dist/{cjs/i18n-defaa4f8.js → esm/i18n-7938fb86.js} +18 -3
- package/dist/esm/i18n-7938fb86.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/loading-container.entry.js +1 -1
- package/dist/esm/loading-spinner.entry.js +1 -1
- package/dist/esm/pedido-finalizado.entry.js +2 -3
- package/dist/esm/pedido-finalizado.entry.js.map +1 -1
- package/dist/types/Users/Darlison/Projects/Bycoders/crmbonus/crmbonus-component/.stencil/env.d.ts +1 -1
- package/dist/types/components/crm-bonus/crm-bonus.d.ts +1 -0
- package/dist/types/components/crm-bonus/crmbonus.d.ts +8 -0
- package/dist/types/components.d.ts +15 -152
- package/dist/types/objectvalues/cart.wake.d.ts +0 -2
- package/package.json +1 -1
- package/dist/cjs/build.payload.helper-c35bd233.js.map +0 -1
- package/dist/cjs/cart.helper-19c17c95.js +0 -120
- package/dist/cjs/cart.helper-19c17c95.js.map +0 -1
- package/dist/cjs/crm-bonus-form.cjs.entry.js +0 -103
- package/dist/cjs/crm-bonus-form.cjs.entry.js.map +0 -1
- package/dist/cjs/crm-tooltip_4.cjs.entry.js.map +0 -1
- package/dist/cjs/crmbonus.service-4b03eaf1.js.map +0 -1
- package/dist/cjs/giftback-finish_4.cjs.entry.js +0 -131
- package/dist/cjs/giftback-finish_4.cjs.entry.js.map +0 -1
- package/dist/cjs/i18n-defaa4f8.js.map +0 -1
- package/dist/cjs/index-7a7d7882.js +0 -23
- package/dist/cjs/index-7a7d7882.js.map +0 -1
- package/dist/cjs/phone-cancel-input.cjs.entry.js +0 -25
- package/dist/cjs/phone-cancel-input.cjs.entry.js.map +0 -1
- package/dist/cjs/phone-input-mask.cjs.entry.js +0 -61
- package/dist/cjs/phone-input-mask.cjs.entry.js.map +0 -1
- package/dist/cjs/phone-input.cjs.entry.js +0 -25
- package/dist/cjs/phone-input.cjs.entry.js.map +0 -1
- package/dist/collection/components/_crm-bonus-form/crm-bonus-form.css +0 -18
- package/dist/collection/components/_crm-bonus-form/crm-bonus-form.js +0 -348
- package/dist/collection/components/_crm-bonus-form/crm-bonus-form.js.map +0 -1
- package/dist/collection/components/_crm-bonus-form/subcomponents/giftback-finish/giftback-finish.css +0 -9
- package/dist/collection/components/_crm-bonus-form/subcomponents/giftback-finish/giftback-finish.js +0 -20
- package/dist/collection/components/_crm-bonus-form/subcomponents/giftback-finish/giftback-finish.js.map +0 -1
- package/dist/collection/components/_crm-bonus-form/subcomponents/giftback-pin/giftback-pin.css +0 -69
- package/dist/collection/components/_crm-bonus-form/subcomponents/giftback-pin/giftback-pin.js +0 -126
- package/dist/collection/components/_crm-bonus-form/subcomponents/giftback-pin/giftback-pin.js.map +0 -1
- package/dist/collection/components/_crm-bonus-form/subcomponents/giftback-progress/giftback-progress.css +0 -109
- package/dist/collection/components/_crm-bonus-form/subcomponents/giftback-progress/giftback-progress.js +0 -127
- package/dist/collection/components/_crm-bonus-form/subcomponents/giftback-progress/giftback-progress.js.map +0 -1
- package/dist/collection/components/_crm-bonus-form/subcomponents/name-input/name-input.css +0 -108
- package/dist/collection/components/_crm-bonus-form/subcomponents/name-input/name-input.js +0 -111
- package/dist/collection/components/_crm-bonus-form/subcomponents/name-input/name-input.js.map +0 -1
- package/dist/collection/components/_crm-bonus-form/subcomponents/phone/phone.input.js +0 -76
- package/dist/collection/components/_crm-bonus-form/subcomponents/phone/phone.input.js.map +0 -1
- package/dist/collection/components/_crm-bonus-form/subcomponents/phone-cancel/phone.cancel.input.js +0 -76
- package/dist/collection/components/_crm-bonus-form/subcomponents/phone-cancel/phone.cancel.input.js.map +0 -1
- package/dist/components/crm-bonus-form.d.ts +0 -11
- package/dist/components/crm-bonus-form.js +0 -165
- package/dist/components/crm-bonus-form.js.map +0 -1
- package/dist/components/giftback-finish.d.ts +0 -11
- package/dist/components/giftback-finish.js +0 -8
- package/dist/components/giftback-finish.js.map +0 -1
- package/dist/components/giftback-pin.d.ts +0 -11
- package/dist/components/giftback-pin.js +0 -8
- package/dist/components/giftback-pin.js.map +0 -1
- package/dist/components/giftback-progress.d.ts +0 -11
- package/dist/components/giftback-progress.js +0 -8
- package/dist/components/giftback-progress.js.map +0 -1
- package/dist/components/name-input.js +0 -8
- package/dist/components/name-input.js.map +0 -1
- package/dist/components/p-1ea9924f.js.map +0 -1
- package/dist/components/p-234f35c4.js +0 -69
- package/dist/components/p-234f35c4.js.map +0 -1
- package/dist/components/p-53037d16.js.map +0 -1
- package/dist/components/p-56455824.js +0 -115
- package/dist/components/p-56455824.js.map +0 -1
- package/dist/components/p-6ff4aa18.js +0 -73
- package/dist/components/p-6ff4aa18.js.map +0 -1
- package/dist/components/p-8e6146ae.js +0 -63
- package/dist/components/p-8e6146ae.js.map +0 -1
- package/dist/components/p-96e16ba5.js.map +0 -1
- package/dist/components/p-a3f4244f.js.map +0 -1
- package/dist/components/p-f09b7364.js +0 -36
- package/dist/components/p-f09b7364.js.map +0 -1
- package/dist/components/phone-cancel-input.d.ts +0 -11
- package/dist/components/phone-cancel-input.js +0 -56
- package/dist/components/phone-cancel-input.js.map +0 -1
- package/dist/components/phone-input.d.ts +0 -11
- package/dist/components/phone-input.js +0 -56
- package/dist/components/phone-input.js.map +0 -1
- package/dist/crmbonus-component-wake/p-1ea9924f.js.map +0 -1
- package/dist/crmbonus-component-wake/p-2bd29eae.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-2eb4e832.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-56455824.js +0 -2
- package/dist/crmbonus-component-wake/p-56455824.js.map +0 -1
- package/dist/crmbonus-component-wake/p-6d5bd437.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-6d5bd437.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-6e06f860.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-6e06f860.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-74335744.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-74335744.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-a3f4244f.js +0 -2
- package/dist/crmbonus-component-wake/p-a3f4244f.js.map +0 -1
- package/dist/crmbonus-component-wake/p-a4bf9fe7.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-b9580758.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-b9580758.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-b9baad26.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-b9baad26.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-c1f5759a.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-c1f5759a.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-c53241bf.js +0 -2
- package/dist/crmbonus-component-wake/p-c53241bf.js.map +0 -1
- package/dist/crmbonus-component-wake/p-d1468887.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-ecc51430.js +0 -2
- package/dist/crmbonus-component-wake/p-ecc51430.js.map +0 -1
- package/dist/crmbonus-component-wake/p-f4c65b63.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-f9d8175f.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-f9d8175f.entry.js.map +0 -1
- package/dist/esm/build.payload.helper-c425c0cc.js.map +0 -1
- package/dist/esm/cart.helper-8a2086c0.js +0 -115
- package/dist/esm/cart.helper-8a2086c0.js.map +0 -1
- package/dist/esm/crm-bonus-form.entry.js +0 -99
- package/dist/esm/crm-bonus-form.entry.js.map +0 -1
- package/dist/esm/crm-tooltip_4.entry.js.map +0 -1
- package/dist/esm/crmbonus.service-4c05689c.js.map +0 -1
- package/dist/esm/giftback-finish_4.entry.js +0 -124
- package/dist/esm/giftback-finish_4.entry.js.map +0 -1
- package/dist/esm/i18n-b9d8b0cc.js.map +0 -1
- package/dist/esm/index-dc3ebdf0.js +0 -20
- package/dist/esm/index-dc3ebdf0.js.map +0 -1
- package/dist/esm/phone-cancel-input.entry.js +0 -21
- package/dist/esm/phone-cancel-input.entry.js.map +0 -1
- package/dist/esm/phone-input-mask.entry.js +0 -57
- package/dist/esm/phone-input-mask.entry.js.map +0 -1
- package/dist/esm/phone-input.entry.js +0 -21
- package/dist/esm/phone-input.entry.js.map +0 -1
- package/dist/types/components/_crm-bonus-form/crm-bonus-form.d.ts +0 -27
- package/dist/types/components/_crm-bonus-form/subcomponents/giftback-finish/giftback-finish.d.ts +0 -3
- package/dist/types/components/_crm-bonus-form/subcomponents/giftback-pin/giftback-pin.d.ts +0 -13
- package/dist/types/components/_crm-bonus-form/subcomponents/giftback-progress/giftback-progress.d.ts +0 -12
- package/dist/types/components/_crm-bonus-form/subcomponents/name-input/name-input.d.ts +0 -11
- package/dist/types/components/_crm-bonus-form/subcomponents/phone/phone.input.d.ts +0 -8
- package/dist/types/components/_crm-bonus-form/subcomponents/phone-cancel/phone.cancel.input.d.ts +0 -8
- /package/dist/crmbonus-component-wake/{p-e5d8700b.entry.js.map → p-54b8f32b.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-2bd29eae.entry.js.map → p-61ea41c9.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-a4bf9fe7.entry.js.map → p-6532623f.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-427c86db.entry.js.map → p-9d926857.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-39abc114.entry.js.map → p-ac027576.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-9a32f685.entry.js.map → p-ce2819cc.entry.js.map} +0 -0
@@ -1,165 +0,0 @@
|
|
1
|
-
import { p as proxyCustomElement, H, h, d as Host } from './p-9d950d25.js';
|
2
|
-
import { C as CrmBonusService } from './p-1ea9924f.js';
|
3
|
-
import { S as StepFormEnum } from './p-ecc51430.js';
|
4
|
-
import { d as defineCustomElement$6 } from './p-f09b7364.js';
|
5
|
-
import { d as defineCustomElement$5 } from './p-6ff4aa18.js';
|
6
|
-
import { d as defineCustomElement$4 } from './p-234f35c4.js';
|
7
|
-
import { d as defineCustomElement$3 } from './p-e31b6c28.js';
|
8
|
-
import { d as defineCustomElement$2 } from './p-8e6146ae.js';
|
9
|
-
|
10
|
-
const crmBonusFormCss = ".form-container{width:100%;display:flex;justify-content:center;justify-content:space-around}.disabled{opacity:0.6;cursor:not-allowed}.message-error{color:#d11111;font-weight:bold;margin-left:16px}";
|
11
|
-
const CrmBonusFormStyle0 = crmBonusFormCss;
|
12
|
-
|
13
|
-
const CrmBonusForm$1 = /*@__PURE__*/ proxyCustomElement(class CrmBonusForm extends H {
|
14
|
-
constructor() {
|
15
|
-
super();
|
16
|
-
this.__registerHost();
|
17
|
-
this.__attachShadow();
|
18
|
-
this.crmBonusService = CrmBonusService.getInstance();
|
19
|
-
this.storeName = undefined;
|
20
|
-
this.cartId = undefined;
|
21
|
-
this.products = undefined;
|
22
|
-
this.customer = {
|
23
|
-
phone: "",
|
24
|
-
birthDate: "",
|
25
|
-
document: "",
|
26
|
-
name: ""
|
27
|
-
};
|
28
|
-
this.sent = undefined;
|
29
|
-
this.stepNext = undefined;
|
30
|
-
this.phone = undefined;
|
31
|
-
this.loadingModal = undefined;
|
32
|
-
this.saveStore = undefined;
|
33
|
-
this.cancel = undefined;
|
34
|
-
this.handleCustomerName = undefined;
|
35
|
-
this.loading = false;
|
36
|
-
this.step = StepFormEnum.STEP_NAME;
|
37
|
-
this.message = undefined;
|
38
|
-
this.bonus = undefined;
|
39
|
-
}
|
40
|
-
async setStep(step) {
|
41
|
-
this.step = step;
|
42
|
-
}
|
43
|
-
async validateBonus(pin) {
|
44
|
-
var _a, _b;
|
45
|
-
this.loading = true;
|
46
|
-
this.message = "";
|
47
|
-
const payload = {
|
48
|
-
pin: pin,
|
49
|
-
cellphone: parseInt(this.phone.toString()),
|
50
|
-
storeId: this.sent.storeId.toString(),
|
51
|
-
userId: this.sent.userId.toString(),
|
52
|
-
checkoutId: this.cartId,
|
53
|
-
checkoutProducts: this.products,
|
54
|
-
name: null,
|
55
|
-
storeName: this.storeName
|
56
|
-
};
|
57
|
-
try {
|
58
|
-
this.bonus = await this.crmBonusService.validatePinBonus(payload);
|
59
|
-
this.step = StepFormEnum.STEP_RESERVE;
|
60
|
-
}
|
61
|
-
catch (error) {
|
62
|
-
this.message = (_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.message;
|
63
|
-
}
|
64
|
-
finally {
|
65
|
-
this.loading = false;
|
66
|
-
}
|
67
|
-
}
|
68
|
-
async reserveApply(amount) {
|
69
|
-
this.loading = true;
|
70
|
-
this.message = "";
|
71
|
-
try {
|
72
|
-
await this.reserve(amount);
|
73
|
-
this.step = StepFormEnum.STEP_APPLY;
|
74
|
-
this.saveStore(amount);
|
75
|
-
}
|
76
|
-
catch (error) {
|
77
|
-
this.message = "ocorreu um error ao solicitar a aplicação do bonus! tente novamente";
|
78
|
-
}
|
79
|
-
finally {
|
80
|
-
this.loading = false;
|
81
|
-
}
|
82
|
-
}
|
83
|
-
async reserve(amount) {
|
84
|
-
await this.crmBonusService.reserve({
|
85
|
-
redeemedBonus: amount,
|
86
|
-
cartId: this.cartId,
|
87
|
-
ticket: this.cartId,
|
88
|
-
grossValue: Number(this.bonus.totalValue),
|
89
|
-
storeName: this.storeName,
|
90
|
-
storeId: this.bonus.storeId.toString(),
|
91
|
-
userId: this.bonus.userId
|
92
|
-
});
|
93
|
-
}
|
94
|
-
handleCancel() {
|
95
|
-
this.step = StepFormEnum.STEP_PHONE;
|
96
|
-
this.cancel();
|
97
|
-
}
|
98
|
-
render() {
|
99
|
-
return (h(Host, { key: '6cc4f52efdbcb77d480c9e85fcd0b0c10f0598a7' }, this.step == StepFormEnum.STEP_NAME && h("name-input", { key: '2c9bc7d4af5536f929b9a9a50caff90a43e19959', loading: this.loadingModal, value: this.customer.name, applyName: (name) => this.handleCustomerName(name) }), this.step === StepFormEnum.STEP_PIN && h("giftback-pin", { key: 'e2fe1b7afba602d4a8106fb331c55cb82eafe82a', cancel: () => this.handleCancel(), sent: this.sent, validate: (data) => this.validateBonus(data), loading: this.loading }), this.step === StepFormEnum.STEP_RESERVE && h("giftback-progress", { key: '7ff0c00d64909713715f735f1c803b093055badc', loading: this.loading, cancel: () => this.handleCancel(), bonus: this.bonus, reserve: (amountRedeemed) => this.reserveApply(amountRedeemed) }), this.step === StepFormEnum.STEP_APPLY && h("giftback-finish", { key: '30458626eb3d32b0ab9fca3d1e09c72983560b0b' }), h("p", { key: '0fdd0de0a48433ba39ec07f5f8735e947231a178', class: "message-error" }, this.message)));
|
100
|
-
}
|
101
|
-
static get style() { return CrmBonusFormStyle0; }
|
102
|
-
}, [1, "crm-bonus-form", {
|
103
|
-
"storeName": [8, "storename"],
|
104
|
-
"cartId": [8, "cart-id"],
|
105
|
-
"products": [16],
|
106
|
-
"customer": [16],
|
107
|
-
"sent": [16],
|
108
|
-
"stepNext": [2, "step-next"],
|
109
|
-
"phone": [2],
|
110
|
-
"loadingModal": [4, "loading-modal"],
|
111
|
-
"saveStore": [16],
|
112
|
-
"cancel": [16],
|
113
|
-
"handleCustomerName": [16],
|
114
|
-
"loading": [32],
|
115
|
-
"step": [32],
|
116
|
-
"message": [32],
|
117
|
-
"bonus": [32],
|
118
|
-
"setStep": [64]
|
119
|
-
}]);
|
120
|
-
function defineCustomElement$1() {
|
121
|
-
if (typeof customElements === "undefined") {
|
122
|
-
return;
|
123
|
-
}
|
124
|
-
const components = ["crm-bonus-form", "giftback-finish", "giftback-pin", "giftback-progress", "loading-spinner", "name-input"];
|
125
|
-
components.forEach(tagName => { switch (tagName) {
|
126
|
-
case "crm-bonus-form":
|
127
|
-
if (!customElements.get(tagName)) {
|
128
|
-
customElements.define(tagName, CrmBonusForm$1);
|
129
|
-
}
|
130
|
-
break;
|
131
|
-
case "giftback-finish":
|
132
|
-
if (!customElements.get(tagName)) {
|
133
|
-
defineCustomElement$6();
|
134
|
-
}
|
135
|
-
break;
|
136
|
-
case "giftback-pin":
|
137
|
-
if (!customElements.get(tagName)) {
|
138
|
-
defineCustomElement$5();
|
139
|
-
}
|
140
|
-
break;
|
141
|
-
case "giftback-progress":
|
142
|
-
if (!customElements.get(tagName)) {
|
143
|
-
defineCustomElement$4();
|
144
|
-
}
|
145
|
-
break;
|
146
|
-
case "loading-spinner":
|
147
|
-
if (!customElements.get(tagName)) {
|
148
|
-
defineCustomElement$3();
|
149
|
-
}
|
150
|
-
break;
|
151
|
-
case "name-input":
|
152
|
-
if (!customElements.get(tagName)) {
|
153
|
-
defineCustomElement$2();
|
154
|
-
}
|
155
|
-
break;
|
156
|
-
} });
|
157
|
-
}
|
158
|
-
defineCustomElement$1();
|
159
|
-
|
160
|
-
const CrmBonusForm = CrmBonusForm$1;
|
161
|
-
const defineCustomElement = defineCustomElement$1;
|
162
|
-
|
163
|
-
export { CrmBonusForm, defineCustomElement };
|
164
|
-
|
165
|
-
//# sourceMappingURL=crm-bonus-form.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"crm-bonus-form.js","mappings":"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","names":["CrmBonusForm"],"sources":["src/components/_crm-bonus-form/crm-bonus-form.css?tag=crm-bonus-form&encapsulation=shadow","src/components/_crm-bonus-form/crm-bonus-form.tsx"],"sourcesContent":[".form-container {\r\n width: 100%;\r\n display: flex;\r\n justify-content: center;\r\n justify-content: space-around;\r\n}\r\n\r\n.disabled {\r\n opacity: 0.6;\r\n cursor: not-allowed;\r\n}\r\n\r\n.message-error {\r\n color: #d11111;\r\n font-weight: bold;\r\n /* font-size: small; */\r\n margin-left: 16px;\r\n}","import { Component, Host, Method, Prop, State, h } from \"@stencil/core\";\r\nimport { CrmBonusService } from \"../../services/crmbonus.service\";\r\nimport { IBonus, ICustomer, IProccesPinBonusDto, IProduct } from \"../../dto/validate.pin.bonus\";\r\nimport { StepFormEnum } from \"../../contants\";\r\nimport { IPinSent } from '../../dto/pin.sent';\r\n\r\n@Component({\r\n tag: 'crm-bonus-form',\r\n styleUrl: 'crm-bonus-form.css',\r\n shadow: true\r\n})\r\nexport class CrmBonusForm {\r\n\r\n private crmBonusService: CrmBonusService = CrmBonusService.getInstance();\r\n\r\n @Prop({ attribute: 'storename' }) storeName;\r\n @Prop() cartId;\r\n @Prop() products: Array<IProduct>;\r\n @Prop() customer: ICustomer = {\r\n phone: \"\",\r\n birthDate: \"\",\r\n document: \"\",\r\n name: \"\"\r\n };\r\n @Prop() sent: IPinSent;\r\n @Prop() stepNext: StepFormEnum;\r\n @Prop() phone: number;\r\n @Prop() loadingModal: boolean;\r\n\r\n @Prop() saveStore: (amount: number) => void;\r\n\r\n @Prop() cancel: () => void;\r\n\r\n @Prop() handleCustomerName: (name: string) => void;\r\n\r\n @State() loading: boolean = false;\r\n\r\n @State() step: number = StepFormEnum.STEP_NAME;\r\n\r\n @State() message: string;\r\n\r\n @State() bonus: IBonus;\r\n\r\n @Method()\r\n async setStep(step: StepFormEnum) {\r\n this.step = step\r\n }\r\n\r\n public async validateBonus(pin: string) {\r\n this.loading = true;\r\n this.message = \"\";\r\n const payload: IProccesPinBonusDto = {\r\n pin: pin,\r\n cellphone: parseInt(this.phone.toString()),\r\n storeId: this.sent.storeId.toString(),\r\n userId: this.sent.userId.toString(),\r\n checkoutId: this.cartId,\r\n checkoutProducts: this.products,\r\n name: null,\r\n storeName: this.storeName\r\n }\r\n\r\n try {\r\n this.bonus = await this.crmBonusService.validatePinBonus(payload);\r\n\r\n this.step = StepFormEnum.STEP_RESERVE;\r\n } catch (error) {\r\n this.message = error?.response?.data?.message\r\n } finally {\r\n this.loading = false;\r\n }\r\n }\r\n\r\n public async reserveApply(amount: number) {\r\n this.loading = true;\r\n this.message = \"\";\r\n try {\r\n await this.reserve(amount);\r\n\r\n this.step = StepFormEnum.STEP_APPLY;\r\n\r\n this.saveStore(amount);\r\n } catch (error) {\r\n this.message = \"ocorreu um error ao solicitar a aplicação do bonus! tente novamente\"\r\n } finally {\r\n this.loading = false;\r\n }\r\n }\r\n\r\n public async reserve(amount: number) {\r\n await this.crmBonusService.reserve({\r\n redeemedBonus: amount,\r\n cartId: this.cartId,\r\n ticket: this.cartId,\r\n grossValue: Number(this.bonus.totalValue),\r\n storeName: this.storeName,\r\n storeId: this.bonus.storeId.toString(),\r\n userId: this.bonus.userId\r\n });\r\n }\r\n\r\n public handleCancel() {\r\n this.step = StepFormEnum.STEP_PHONE;\r\n this.cancel()\r\n }\r\n\r\n render() {\r\n return (\r\n <Host>\r\n {/* {this.step === StepFormEnum.STEP_PHONE && <phone-input value={this.customer.phone} sendPin={(phone) => this.sendPin(phone)} loading={this.loading} />} */}\r\n \r\n {this.step == StepFormEnum.STEP_NAME && <name-input loading={this.loadingModal} value={this.customer.name} applyName={(name) => this.handleCustomerName(name)} />}\r\n {this.step === StepFormEnum.STEP_PIN && <giftback-pin cancel={() => this.handleCancel()} sent={this.sent} validate={(data) => this.validateBonus(data)} loading={this.loading} />}\r\n\r\n {this.step === StepFormEnum.STEP_RESERVE && <giftback-progress loading={this.loading} cancel={() => this.handleCancel()} bonus={this.bonus} reserve={(amountRedeemed: number) => this.reserveApply(amountRedeemed)} />}\r\n {this.step === StepFormEnum.STEP_APPLY && <giftback-finish />}\r\n <p class=\"message-error\">{this.message}</p>\r\n </Host>\r\n )\r\n }\r\n}"],"version":3}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
2
|
-
|
3
|
-
interface GiftbackFinish extends Components.GiftbackFinish, HTMLElement {}
|
4
|
-
export const GiftbackFinish: {
|
5
|
-
prototype: GiftbackFinish;
|
6
|
-
new (): GiftbackFinish;
|
7
|
-
};
|
8
|
-
/**
|
9
|
-
* Used to define this component and all nested components recursively.
|
10
|
-
*/
|
11
|
-
export const defineCustomElement: () => void;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { G as GiftbackFinish$1, d as defineCustomElement$1 } from './p-f09b7364.js';
|
2
|
-
|
3
|
-
const GiftbackFinish = GiftbackFinish$1;
|
4
|
-
const defineCustomElement = defineCustomElement$1;
|
5
|
-
|
6
|
-
export { GiftbackFinish, defineCustomElement };
|
7
|
-
|
8
|
-
//# sourceMappingURL=giftback-finish.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"giftback-finish.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
2
|
-
|
3
|
-
interface GiftbackPin extends Components.GiftbackPin, HTMLElement {}
|
4
|
-
export const GiftbackPin: {
|
5
|
-
prototype: GiftbackPin;
|
6
|
-
new (): GiftbackPin;
|
7
|
-
};
|
8
|
-
/**
|
9
|
-
* Used to define this component and all nested components recursively.
|
10
|
-
*/
|
11
|
-
export const defineCustomElement: () => void;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { G as GiftbackPin$1, d as defineCustomElement$1 } from './p-6ff4aa18.js';
|
2
|
-
|
3
|
-
const GiftbackPin = GiftbackPin$1;
|
4
|
-
const defineCustomElement = defineCustomElement$1;
|
5
|
-
|
6
|
-
export { GiftbackPin, defineCustomElement };
|
7
|
-
|
8
|
-
//# sourceMappingURL=giftback-pin.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"giftback-pin.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import type { Components, JSX } from "../types/components";
|
2
|
-
|
3
|
-
interface GiftbackProgress extends Components.GiftbackProgress, HTMLElement {}
|
4
|
-
export const GiftbackProgress: {
|
5
|
-
prototype: GiftbackProgress;
|
6
|
-
new (): GiftbackProgress;
|
7
|
-
};
|
8
|
-
/**
|
9
|
-
* Used to define this component and all nested components recursively.
|
10
|
-
*/
|
11
|
-
export const defineCustomElement: () => void;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { G as GiftbackProgress$1, d as defineCustomElement$1 } from './p-234f35c4.js';
|
2
|
-
|
3
|
-
const GiftbackProgress = GiftbackProgress$1;
|
4
|
-
const defineCustomElement = defineCustomElement$1;
|
5
|
-
|
6
|
-
export { GiftbackProgress, defineCustomElement };
|
7
|
-
|
8
|
-
//# sourceMappingURL=giftback-progress.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"giftback-progress.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"name-input.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|