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,25 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
-
|
5
|
-
const index = require('./index-a7537457.js');
|
6
|
-
|
7
|
-
const PhoneInput = class {
|
8
|
-
constructor(hostRef) {
|
9
|
-
index.registerInstance(this, hostRef);
|
10
|
-
this.sendPin = undefined;
|
11
|
-
this.loading = undefined;
|
12
|
-
this.value = undefined;
|
13
|
-
}
|
14
|
-
async validatePhone() {
|
15
|
-
const phone = await this.phoneInputMask.getPhone();
|
16
|
-
await this.sendPin(phone);
|
17
|
-
}
|
18
|
-
render() {
|
19
|
-
return (index.h("div", { key: '044d8a3c65878d89149fe5090e091f26a7ba9c70', class: "form-container" }, index.h("phone-input-mask", { key: 'b5c8c42c5fad360bfb890945399bd52fa758a16c', initialValue: this.value, ref: ref => this.phoneInputMask = ref }), index.h("button", { key: '6a1b1a3bbaf8ad5dee8630f79753a2dcd77cb60a', class: `btn btn-success btnCrm ${this.loading ? 'disabled' : ''} `, disabled: this.loading, onClick: () => this.validatePhone() }, !this.loading ? "validar" : index.h("loading-spinner", { size: "11px", color: "#fff" }))));
|
20
|
-
}
|
21
|
-
};
|
22
|
-
|
23
|
-
exports.phone_input = PhoneInput;
|
24
|
-
|
25
|
-
//# sourceMappingURL=phone-input.cjs.entry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"phone-input.entry.cjs.js","mappings":";;;;;;MAMa,UAAU;;;;;;;IAQnB,MAAM,aAAa;QACf,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC;QACnD,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;KAC7B;IAED,MAAM;QACF,QACIA,kEAAK,KAAK,EAAC,gBAAgB,IACvBA,+EAAkB,YAAY,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,IAAI,IAAI,CAAC,cAAc,GAAG,GAAG,GAAI,EACrFA,qEAAQ,KAAK,EAAE,0BAA0B,IAAI,CAAC,OAAO,GAAG,UAAU,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC,aAAa,EAAE,IAE/H,CAAC,IAAI,CAAC,OAAO,GAAG,SAAS,GAAGA,6BAAiB,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,MAAM,GAAG,CAEvE,CACP,EACT;KACJ;;;;;","names":["h"],"sources":["src/components/_crm-bonus-form/subcomponents/phone/phone.input.tsx"],"sourcesContent":["import { Component, Prop, h } from \"@stencil/core\";\r\n\r\n@Component({\r\n tag: 'phone-input',\r\n shadow: true\r\n})\r\nexport class PhoneInput {\r\n\r\n private phoneInputMask: HTMLPhoneInputMaskElement;\r\n\r\n @Prop() sendPin: Function;\r\n @Prop() loading: boolean;\r\n @Prop() value: string;\r\n\r\n async validatePhone() {\r\n const phone = await this.phoneInputMask.getPhone();\r\n await this.sendPin(phone);\r\n }\r\n\r\n render() {\r\n return (\r\n <div class=\"form-container\">\r\n <phone-input-mask initialValue={this.value} ref={ref => this.phoneInputMask = ref} />\r\n <button class={`btn btn-success btnCrm ${this.loading ? 'disabled' : ''} `} disabled={this.loading} onClick={() => this.validatePhone()}>\r\n {\r\n !this.loading ? \"validar\" : <loading-spinner size=\"11px\" color=\"#fff\" />\r\n }\r\n </button>\r\n </div>\r\n )\r\n }\r\n}"],"version":3}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
.form-container {
|
2
|
-
width: 100%;
|
3
|
-
display: flex;
|
4
|
-
justify-content: center;
|
5
|
-
justify-content: space-around;
|
6
|
-
}
|
7
|
-
|
8
|
-
.disabled {
|
9
|
-
opacity: 0.6;
|
10
|
-
cursor: not-allowed;
|
11
|
-
}
|
12
|
-
|
13
|
-
.message-error {
|
14
|
-
color: #d11111;
|
15
|
-
font-weight: bold;
|
16
|
-
/* font-size: small; */
|
17
|
-
margin-left: 16px;
|
18
|
-
}
|
@@ -1,348 +0,0 @@
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
2
|
-
import { CrmBonusService } from "../../services/crmbonus.service";
|
3
|
-
import { StepFormEnum } from "../../contants";
|
4
|
-
export class CrmBonusForm {
|
5
|
-
constructor() {
|
6
|
-
this.crmBonusService = CrmBonusService.getInstance();
|
7
|
-
this.storeName = undefined;
|
8
|
-
this.cartId = undefined;
|
9
|
-
this.products = undefined;
|
10
|
-
this.customer = {
|
11
|
-
phone: "",
|
12
|
-
birthDate: "",
|
13
|
-
document: "",
|
14
|
-
name: ""
|
15
|
-
};
|
16
|
-
this.sent = undefined;
|
17
|
-
this.stepNext = undefined;
|
18
|
-
this.phone = undefined;
|
19
|
-
this.loadingModal = undefined;
|
20
|
-
this.saveStore = undefined;
|
21
|
-
this.cancel = undefined;
|
22
|
-
this.handleCustomerName = undefined;
|
23
|
-
this.loading = false;
|
24
|
-
this.step = StepFormEnum.STEP_NAME;
|
25
|
-
this.message = undefined;
|
26
|
-
this.bonus = undefined;
|
27
|
-
}
|
28
|
-
async setStep(step) {
|
29
|
-
this.step = step;
|
30
|
-
}
|
31
|
-
async validateBonus(pin) {
|
32
|
-
var _a, _b;
|
33
|
-
this.loading = true;
|
34
|
-
this.message = "";
|
35
|
-
const payload = {
|
36
|
-
pin: pin,
|
37
|
-
cellphone: parseInt(this.phone.toString()),
|
38
|
-
storeId: this.sent.storeId.toString(),
|
39
|
-
userId: this.sent.userId.toString(),
|
40
|
-
checkoutId: this.cartId,
|
41
|
-
checkoutProducts: this.products,
|
42
|
-
name: null,
|
43
|
-
storeName: this.storeName
|
44
|
-
};
|
45
|
-
try {
|
46
|
-
this.bonus = await this.crmBonusService.validatePinBonus(payload);
|
47
|
-
this.step = StepFormEnum.STEP_RESERVE;
|
48
|
-
}
|
49
|
-
catch (error) {
|
50
|
-
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;
|
51
|
-
}
|
52
|
-
finally {
|
53
|
-
this.loading = false;
|
54
|
-
}
|
55
|
-
}
|
56
|
-
async reserveApply(amount) {
|
57
|
-
this.loading = true;
|
58
|
-
this.message = "";
|
59
|
-
try {
|
60
|
-
await this.reserve(amount);
|
61
|
-
this.step = StepFormEnum.STEP_APPLY;
|
62
|
-
this.saveStore(amount);
|
63
|
-
}
|
64
|
-
catch (error) {
|
65
|
-
this.message = "ocorreu um error ao solicitar a aplicação do bonus! tente novamente";
|
66
|
-
}
|
67
|
-
finally {
|
68
|
-
this.loading = false;
|
69
|
-
}
|
70
|
-
}
|
71
|
-
async reserve(amount) {
|
72
|
-
await this.crmBonusService.reserve({
|
73
|
-
redeemedBonus: amount,
|
74
|
-
cartId: this.cartId,
|
75
|
-
ticket: this.cartId,
|
76
|
-
grossValue: Number(this.bonus.totalValue),
|
77
|
-
storeName: this.storeName,
|
78
|
-
storeId: this.bonus.storeId.toString(),
|
79
|
-
userId: this.bonus.userId
|
80
|
-
});
|
81
|
-
}
|
82
|
-
handleCancel() {
|
83
|
-
this.step = StepFormEnum.STEP_PHONE;
|
84
|
-
this.cancel();
|
85
|
-
}
|
86
|
-
render() {
|
87
|
-
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)));
|
88
|
-
}
|
89
|
-
static get is() { return "crm-bonus-form"; }
|
90
|
-
static get encapsulation() { return "shadow"; }
|
91
|
-
static get originalStyleUrls() {
|
92
|
-
return {
|
93
|
-
"$": ["crm-bonus-form.css"]
|
94
|
-
};
|
95
|
-
}
|
96
|
-
static get styleUrls() {
|
97
|
-
return {
|
98
|
-
"$": ["crm-bonus-form.css"]
|
99
|
-
};
|
100
|
-
}
|
101
|
-
static get properties() {
|
102
|
-
return {
|
103
|
-
"storeName": {
|
104
|
-
"type": "any",
|
105
|
-
"mutable": false,
|
106
|
-
"complexType": {
|
107
|
-
"original": "any",
|
108
|
-
"resolved": "any",
|
109
|
-
"references": {}
|
110
|
-
},
|
111
|
-
"required": false,
|
112
|
-
"optional": false,
|
113
|
-
"docs": {
|
114
|
-
"tags": [],
|
115
|
-
"text": ""
|
116
|
-
},
|
117
|
-
"attribute": "storename",
|
118
|
-
"reflect": false
|
119
|
-
},
|
120
|
-
"cartId": {
|
121
|
-
"type": "any",
|
122
|
-
"mutable": false,
|
123
|
-
"complexType": {
|
124
|
-
"original": "any",
|
125
|
-
"resolved": "any",
|
126
|
-
"references": {}
|
127
|
-
},
|
128
|
-
"required": false,
|
129
|
-
"optional": false,
|
130
|
-
"docs": {
|
131
|
-
"tags": [],
|
132
|
-
"text": ""
|
133
|
-
},
|
134
|
-
"attribute": "cart-id",
|
135
|
-
"reflect": false
|
136
|
-
},
|
137
|
-
"products": {
|
138
|
-
"type": "unknown",
|
139
|
-
"mutable": false,
|
140
|
-
"complexType": {
|
141
|
-
"original": "Array<IProduct>",
|
142
|
-
"resolved": "IProduct[]",
|
143
|
-
"references": {
|
144
|
-
"Array": {
|
145
|
-
"location": "global",
|
146
|
-
"id": "global::Array"
|
147
|
-
},
|
148
|
-
"IProduct": {
|
149
|
-
"location": "import",
|
150
|
-
"path": "../../dto/validate.pin.bonus",
|
151
|
-
"id": "src/dto/validate.pin.bonus.ts::IProduct"
|
152
|
-
}
|
153
|
-
}
|
154
|
-
},
|
155
|
-
"required": false,
|
156
|
-
"optional": false,
|
157
|
-
"docs": {
|
158
|
-
"tags": [],
|
159
|
-
"text": ""
|
160
|
-
}
|
161
|
-
},
|
162
|
-
"customer": {
|
163
|
-
"type": "unknown",
|
164
|
-
"mutable": false,
|
165
|
-
"complexType": {
|
166
|
-
"original": "ICustomer",
|
167
|
-
"resolved": "ICustomer",
|
168
|
-
"references": {
|
169
|
-
"ICustomer": {
|
170
|
-
"location": "import",
|
171
|
-
"path": "../../dto/validate.pin.bonus",
|
172
|
-
"id": "src/dto/validate.pin.bonus.ts::ICustomer"
|
173
|
-
}
|
174
|
-
}
|
175
|
-
},
|
176
|
-
"required": false,
|
177
|
-
"optional": false,
|
178
|
-
"docs": {
|
179
|
-
"tags": [],
|
180
|
-
"text": ""
|
181
|
-
},
|
182
|
-
"defaultValue": "{\r\n phone: \"\",\r\n birthDate: \"\",\r\n document: \"\",\r\n name: \"\"\r\n }"
|
183
|
-
},
|
184
|
-
"sent": {
|
185
|
-
"type": "unknown",
|
186
|
-
"mutable": false,
|
187
|
-
"complexType": {
|
188
|
-
"original": "IPinSent",
|
189
|
-
"resolved": "IPinSent",
|
190
|
-
"references": {
|
191
|
-
"IPinSent": {
|
192
|
-
"location": "import",
|
193
|
-
"path": "../../dto/pin.sent",
|
194
|
-
"id": "src/dto/pin.sent.ts::IPinSent"
|
195
|
-
}
|
196
|
-
}
|
197
|
-
},
|
198
|
-
"required": false,
|
199
|
-
"optional": false,
|
200
|
-
"docs": {
|
201
|
-
"tags": [],
|
202
|
-
"text": ""
|
203
|
-
}
|
204
|
-
},
|
205
|
-
"stepNext": {
|
206
|
-
"type": "number",
|
207
|
-
"mutable": false,
|
208
|
-
"complexType": {
|
209
|
-
"original": "StepFormEnum",
|
210
|
-
"resolved": "StepFormEnum.STEP_APPLY | StepFormEnum.STEP_NAME | StepFormEnum.STEP_NO_BONUS | StepFormEnum.STEP_PHONE | StepFormEnum.STEP_PIN | StepFormEnum.STEP_RESERVE",
|
211
|
-
"references": {
|
212
|
-
"StepFormEnum": {
|
213
|
-
"location": "import",
|
214
|
-
"path": "../../contants",
|
215
|
-
"id": "src/contants/index.ts::StepFormEnum"
|
216
|
-
}
|
217
|
-
}
|
218
|
-
},
|
219
|
-
"required": false,
|
220
|
-
"optional": false,
|
221
|
-
"docs": {
|
222
|
-
"tags": [],
|
223
|
-
"text": ""
|
224
|
-
},
|
225
|
-
"attribute": "step-next",
|
226
|
-
"reflect": false
|
227
|
-
},
|
228
|
-
"phone": {
|
229
|
-
"type": "number",
|
230
|
-
"mutable": false,
|
231
|
-
"complexType": {
|
232
|
-
"original": "number",
|
233
|
-
"resolved": "number",
|
234
|
-
"references": {}
|
235
|
-
},
|
236
|
-
"required": false,
|
237
|
-
"optional": false,
|
238
|
-
"docs": {
|
239
|
-
"tags": [],
|
240
|
-
"text": ""
|
241
|
-
},
|
242
|
-
"attribute": "phone",
|
243
|
-
"reflect": false
|
244
|
-
},
|
245
|
-
"loadingModal": {
|
246
|
-
"type": "boolean",
|
247
|
-
"mutable": false,
|
248
|
-
"complexType": {
|
249
|
-
"original": "boolean",
|
250
|
-
"resolved": "boolean",
|
251
|
-
"references": {}
|
252
|
-
},
|
253
|
-
"required": false,
|
254
|
-
"optional": false,
|
255
|
-
"docs": {
|
256
|
-
"tags": [],
|
257
|
-
"text": ""
|
258
|
-
},
|
259
|
-
"attribute": "loading-modal",
|
260
|
-
"reflect": false
|
261
|
-
},
|
262
|
-
"saveStore": {
|
263
|
-
"type": "unknown",
|
264
|
-
"mutable": false,
|
265
|
-
"complexType": {
|
266
|
-
"original": "(amount: number) => void",
|
267
|
-
"resolved": "(amount: number) => void",
|
268
|
-
"references": {}
|
269
|
-
},
|
270
|
-
"required": false,
|
271
|
-
"optional": false,
|
272
|
-
"docs": {
|
273
|
-
"tags": [],
|
274
|
-
"text": ""
|
275
|
-
}
|
276
|
-
},
|
277
|
-
"cancel": {
|
278
|
-
"type": "unknown",
|
279
|
-
"mutable": false,
|
280
|
-
"complexType": {
|
281
|
-
"original": "() => void",
|
282
|
-
"resolved": "() => void",
|
283
|
-
"references": {}
|
284
|
-
},
|
285
|
-
"required": false,
|
286
|
-
"optional": false,
|
287
|
-
"docs": {
|
288
|
-
"tags": [],
|
289
|
-
"text": ""
|
290
|
-
}
|
291
|
-
},
|
292
|
-
"handleCustomerName": {
|
293
|
-
"type": "unknown",
|
294
|
-
"mutable": false,
|
295
|
-
"complexType": {
|
296
|
-
"original": "(name: string) => void",
|
297
|
-
"resolved": "(name: string) => void",
|
298
|
-
"references": {}
|
299
|
-
},
|
300
|
-
"required": false,
|
301
|
-
"optional": false,
|
302
|
-
"docs": {
|
303
|
-
"tags": [],
|
304
|
-
"text": ""
|
305
|
-
}
|
306
|
-
}
|
307
|
-
};
|
308
|
-
}
|
309
|
-
static get states() {
|
310
|
-
return {
|
311
|
-
"loading": {},
|
312
|
-
"step": {},
|
313
|
-
"message": {},
|
314
|
-
"bonus": {}
|
315
|
-
};
|
316
|
-
}
|
317
|
-
static get methods() {
|
318
|
-
return {
|
319
|
-
"setStep": {
|
320
|
-
"complexType": {
|
321
|
-
"signature": "(step: StepFormEnum) => Promise<void>",
|
322
|
-
"parameters": [{
|
323
|
-
"name": "step",
|
324
|
-
"type": "StepFormEnum",
|
325
|
-
"docs": ""
|
326
|
-
}],
|
327
|
-
"references": {
|
328
|
-
"Promise": {
|
329
|
-
"location": "global",
|
330
|
-
"id": "global::Promise"
|
331
|
-
},
|
332
|
-
"StepFormEnum": {
|
333
|
-
"location": "import",
|
334
|
-
"path": "../../contants",
|
335
|
-
"id": "src/contants/index.ts::StepFormEnum"
|
336
|
-
}
|
337
|
-
},
|
338
|
-
"return": "Promise<void>"
|
339
|
-
},
|
340
|
-
"docs": {
|
341
|
-
"text": "",
|
342
|
-
"tags": []
|
343
|
-
}
|
344
|
-
}
|
345
|
-
};
|
346
|
-
}
|
347
|
-
}
|
348
|
-
//# sourceMappingURL=crm-bonus-form.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"crm-bonus-form.js","sourceRoot":"","sources":["../../../../src/components/_crm-bonus-form/crm-bonus-form.tsx"],"names":[],"mappings":"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","sourcesContent":["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}"]}
|
package/dist/collection/components/_crm-bonus-form/subcomponents/giftback-finish/giftback-finish.js
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
import { h } from "@stencil/core";
|
2
|
-
import success from "../../../crm-bonus/assets/svg/success-svgrepo-com.svg";
|
3
|
-
export class GiftbackFinish {
|
4
|
-
render() {
|
5
|
-
return (h("div", { key: 'e32646bd2ef2f8336262b206aebd7eb4bf37d9f9', class: "message-finish" }, h("img", { key: 'e866cf43b1c4ca43fff000af02b919a9878b1566', src: success, width: 80 }), h("p", { key: '452a7ce0bd5fd9a729d299e5c058e68e7a4928db' }, "Legal! O B\u00F4nus ser\u00E1 aplicado na sua compra.")));
|
6
|
-
}
|
7
|
-
static get is() { return "giftback-finish"; }
|
8
|
-
static get encapsulation() { return "shadow"; }
|
9
|
-
static get originalStyleUrls() {
|
10
|
-
return {
|
11
|
-
"$": ["giftback-finish.css"]
|
12
|
-
};
|
13
|
-
}
|
14
|
-
static get styleUrls() {
|
15
|
-
return {
|
16
|
-
"$": ["giftback-finish.css"]
|
17
|
-
};
|
18
|
-
}
|
19
|
-
}
|
20
|
-
//# sourceMappingURL=giftback-finish.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"giftback-finish.js","sourceRoot":"","sources":["../../../../../../src/components/_crm-bonus-form/subcomponents/giftback-finish/giftback-finish.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,OAAO,MAAM,uDAAuD,CAAA;AAO3E,MAAM,OAAO,cAAc;IACvB,MAAM;QACF,OAAO,CACH,4DAAK,KAAK,EAAC,gBAAgB;YACvB,4DAAK,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,GAAI;YAChC,oHAAkD,CAChD,CACT,CAAA;IACL,CAAC;;;;;;;;;CACJ","sourcesContent":["import { Component, h } from \"@stencil/core\";\r\nimport success from '../../../crm-bonus/assets/svg/success-svgrepo-com.svg'\r\n\r\n@Component({\r\n tag: 'giftback-finish',\r\n styleUrl: 'giftback-finish.css',\r\n shadow: true\r\n})\r\nexport class GiftbackFinish {\r\n render() {\r\n return (\r\n <div class=\"message-finish\">\r\n <img src={success} width={80} />\r\n <p>Legal! O Bônus será aplicado na sua compra.</p>\r\n </div>\r\n )\r\n }\r\n}"]}
|
package/dist/collection/components/_crm-bonus-form/subcomponents/giftback-pin/giftback-pin.css
DELETED
@@ -1,69 +0,0 @@
|
|
1
|
-
:host {
|
2
|
-
display: block;
|
3
|
-
}
|
4
|
-
|
5
|
-
.form-container-pin {
|
6
|
-
display: flex;
|
7
|
-
flex-direction: column;
|
8
|
-
align-items: center;
|
9
|
-
}
|
10
|
-
|
11
|
-
.pin-container {
|
12
|
-
display: flex;
|
13
|
-
gap: 10px;
|
14
|
-
margin: 26px 0;
|
15
|
-
}
|
16
|
-
|
17
|
-
input {
|
18
|
-
width: 58px;
|
19
|
-
height: 40px;
|
20
|
-
/* font-size: 18px; */
|
21
|
-
text-align: center;
|
22
|
-
border: 1px solid #ccc;
|
23
|
-
border-radius: 5px;
|
24
|
-
}
|
25
|
-
|
26
|
-
button {
|
27
|
-
padding: 10px 20px;
|
28
|
-
/* background-color: #ddd; */
|
29
|
-
border: none;
|
30
|
-
border-radius: 5px;
|
31
|
-
cursor: pointer;
|
32
|
-
}
|
33
|
-
|
34
|
-
.success {
|
35
|
-
color: green;
|
36
|
-
margin-top: 10px;
|
37
|
-
}
|
38
|
-
|
39
|
-
.button {
|
40
|
-
top: 50%;
|
41
|
-
background-color: #6c6c7e;
|
42
|
-
color: #fff;
|
43
|
-
border: none;
|
44
|
-
border-radius: 10px;
|
45
|
-
padding: 15px;
|
46
|
-
min-height: 30px;
|
47
|
-
min-width: 120px;
|
48
|
-
/* font-size: 20px; */
|
49
|
-
cursor: pointer;
|
50
|
-
}
|
51
|
-
|
52
|
-
.button-cancel {
|
53
|
-
top: 50%;
|
54
|
-
background-color: #ffffff;
|
55
|
-
color: #1e1c1c;
|
56
|
-
border: 1px solid gray;
|
57
|
-
border-radius: 10px;
|
58
|
-
padding: 10px;
|
59
|
-
min-height: 30px;
|
60
|
-
min-width: 120px;
|
61
|
-
/* font-size: 19px; */
|
62
|
-
cursor: pointer;
|
63
|
-
}
|
64
|
-
|
65
|
-
.footer-button {
|
66
|
-
display: flex;
|
67
|
-
justify-content: space-between;
|
68
|
-
width: 100%;
|
69
|
-
}
|
package/dist/collection/components/_crm-bonus-form/subcomponents/giftback-pin/giftback-pin.js
DELETED
@@ -1,126 +0,0 @@
|
|
1
|
-
import { h } from "@stencil/core";
|
2
|
-
export class GiftbackPin {
|
3
|
-
constructor() {
|
4
|
-
this.sent = undefined;
|
5
|
-
this.validate = undefined;
|
6
|
-
this.cancel = undefined;
|
7
|
-
this.pin = ['', '', '', ''];
|
8
|
-
this.isVerified = false;
|
9
|
-
this.loading = false;
|
10
|
-
}
|
11
|
-
handleInput(event, index) {
|
12
|
-
const input = event.target;
|
13
|
-
const value = input.value.slice(0, 1); // Limitar a um único dígito
|
14
|
-
this.pin[index] = value;
|
15
|
-
// Focar no próximo campo, se possível
|
16
|
-
if (value && index < this.pin.length - 1) {
|
17
|
-
const nextInput = input.nextElementSibling;
|
18
|
-
nextInput === null || nextInput === void 0 ? void 0 : nextInput.focus();
|
19
|
-
}
|
20
|
-
this.pin = [...this.pin];
|
21
|
-
}
|
22
|
-
validatePin() {
|
23
|
-
this.validate(this.pin.join(""));
|
24
|
-
}
|
25
|
-
verifyPin() {
|
26
|
-
const pinCode = this.pin.join('');
|
27
|
-
if (pinCode === '9999') {
|
28
|
-
this.isVerified = true;
|
29
|
-
}
|
30
|
-
}
|
31
|
-
render() {
|
32
|
-
return (h("div", { key: 'a05b02c21780511f6b8c2549ed01feaf93796808', class: "form-container-pin" }, h("div", { key: 'a88cbf3a59166a12a4c72b5b00c97d30b8f6c644' }, h("p", { key: '4be53967640d06b7eb7182545c7fd6504a0c41a7' }, "Insira o PIN de 4 d\u00EDgitos enviado por SMS."), h("div", { key: '0c73ed59159223f148d5c39f3c1e23ea315c42ef', class: "pin-container" }, this.pin.map((_, index) => (h("input", { type: "text", maxLength: 1, value: this.pin[index], onInput: (event) => this.handleInput(event, index) }))))), h("div", { key: 'bcb35393b6548ebd632f3b46ebbde0da7495be8d', class: "footer-button" }, h("button", { key: '02d9b01e3b88574f720456949ecbb688ea56e0ed', class: "button-cancel", disabled: this.loading, onClick: () => this.cancel() }, "Cancelar"), h("button", { key: '76e9dd429d8a6a6408c67346ae516fe2d9eea392', class: `button ${this.loading ? 'disabled' : ''} `, disabled: this.loading, onClick: () => this.validatePin() }, !this.loading ? "Enviar" : h("loading-spinner", { size: "15px", color: "#fff" })))));
|
33
|
-
}
|
34
|
-
static get is() { return "giftback-pin"; }
|
35
|
-
static get encapsulation() { return "shadow"; }
|
36
|
-
static get originalStyleUrls() {
|
37
|
-
return {
|
38
|
-
"$": ["giftback-pin.css"]
|
39
|
-
};
|
40
|
-
}
|
41
|
-
static get styleUrls() {
|
42
|
-
return {
|
43
|
-
"$": ["giftback-pin.css"]
|
44
|
-
};
|
45
|
-
}
|
46
|
-
static get properties() {
|
47
|
-
return {
|
48
|
-
"sent": {
|
49
|
-
"type": "unknown",
|
50
|
-
"mutable": false,
|
51
|
-
"complexType": {
|
52
|
-
"original": "IPinSent",
|
53
|
-
"resolved": "IPinSent",
|
54
|
-
"references": {
|
55
|
-
"IPinSent": {
|
56
|
-
"location": "import",
|
57
|
-
"path": "../../../../dto/pin.sent",
|
58
|
-
"id": "src/dto/pin.sent.ts::IPinSent"
|
59
|
-
}
|
60
|
-
}
|
61
|
-
},
|
62
|
-
"required": false,
|
63
|
-
"optional": false,
|
64
|
-
"docs": {
|
65
|
-
"tags": [],
|
66
|
-
"text": ""
|
67
|
-
}
|
68
|
-
},
|
69
|
-
"validate": {
|
70
|
-
"type": "unknown",
|
71
|
-
"mutable": false,
|
72
|
-
"complexType": {
|
73
|
-
"original": "(pin: string) => void",
|
74
|
-
"resolved": "(pin: string) => void",
|
75
|
-
"references": {}
|
76
|
-
},
|
77
|
-
"required": false,
|
78
|
-
"optional": false,
|
79
|
-
"docs": {
|
80
|
-
"tags": [],
|
81
|
-
"text": ""
|
82
|
-
}
|
83
|
-
},
|
84
|
-
"cancel": {
|
85
|
-
"type": "unknown",
|
86
|
-
"mutable": false,
|
87
|
-
"complexType": {
|
88
|
-
"original": "() => void",
|
89
|
-
"resolved": "() => void",
|
90
|
-
"references": {}
|
91
|
-
},
|
92
|
-
"required": false,
|
93
|
-
"optional": false,
|
94
|
-
"docs": {
|
95
|
-
"tags": [],
|
96
|
-
"text": ""
|
97
|
-
}
|
98
|
-
},
|
99
|
-
"loading": {
|
100
|
-
"type": "boolean",
|
101
|
-
"mutable": false,
|
102
|
-
"complexType": {
|
103
|
-
"original": "boolean",
|
104
|
-
"resolved": "boolean",
|
105
|
-
"references": {}
|
106
|
-
},
|
107
|
-
"required": false,
|
108
|
-
"optional": false,
|
109
|
-
"docs": {
|
110
|
-
"tags": [],
|
111
|
-
"text": ""
|
112
|
-
},
|
113
|
-
"attribute": "loading",
|
114
|
-
"reflect": false,
|
115
|
-
"defaultValue": "false"
|
116
|
-
}
|
117
|
-
};
|
118
|
-
}
|
119
|
-
static get states() {
|
120
|
-
return {
|
121
|
-
"pin": {},
|
122
|
-
"isVerified": {}
|
123
|
-
};
|
124
|
-
}
|
125
|
-
}
|
126
|
-
//# sourceMappingURL=giftback-pin.js.map
|
package/dist/collection/components/_crm-bonus-form/subcomponents/giftback-pin/giftback-pin.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"giftback-pin.js","sourceRoot":"","sources":["../../../../../../src/components/_crm-bonus-form/subcomponents/giftback-pin/giftback-pin.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAQ1D,MAAM,OAAO,WAAW;;;;;mBAMK,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;0BACV,KAAK;uBAET,KAAK;;IAEhC,WAAW,CAAC,KAAY,EAAE,KAAa;QACnC,MAAM,KAAK,GAAG,KAAK,CAAC,MAA0B,CAAC;QAC/C,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,4BAA4B;QACnE,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;QAExB,sCAAsC;QACtC,IAAI,KAAK,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACvC,MAAM,SAAS,GAAG,KAAK,CAAC,kBAAsC,CAAC;YAC/D,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,KAAK,EAAE,CAAC;QACvB,CAAC;QAED,IAAI,CAAC,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;IAC7B,CAAC;IAED,WAAW;QACP,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAA;IACpC,CAAC;IAED,SAAS;QACL,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAClC,IAAI,OAAO,KAAK,MAAM,EAAE,CAAC;YACrB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;QAC3B,CAAC;IACL,CAAC;IAED,MAAM;QACF,OAAO,CACH,4DAAK,KAAK,EAAC,oBAAoB;YAC3B;gBACI,8GAAiD;gBACjD,4DAAK,KAAK,EAAC,eAAe,IACrB,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACxB,aACI,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,CAAC,EACZ,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,EACtB,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,CAAC,GACpD,CACL,CAAC,CACA,CACJ;YAEN,4DAAK,KAAK,EAAC,eAAe;gBACtB,+DAAQ,KAAK,EAAC,eAAe,EAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,eAEzE;gBACT,+DAAQ,KAAK,EAAE,UAAU,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,IAE7G,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,uBAAiB,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,MAAM,GAAG,CAEtE,CACP,CAGJ,CACT,CAAC;IACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, h, Prop, State } from '@stencil/core';\r\nimport { IPinSent } from '../../../../dto/pin.sent';\r\n\r\n@Component({\r\n tag: 'giftback-pin',\r\n styleUrl: 'giftback-pin.css',\r\n shadow: true,\r\n})\r\nexport class GiftbackPin {\r\n\r\n @Prop() sent: IPinSent;\r\n @Prop() validate: (pin: string) => void;\r\n @Prop() cancel: () => void;\r\n\r\n @State() pin: string[] = ['', '', '', ''];\r\n @State() isVerified: boolean = false;\r\n\r\n @Prop() loading: boolean = false;\r\n\r\n handleInput(event: Event, index: number) {\r\n const input = event.target as HTMLInputElement;\r\n const value = input.value.slice(0, 1); // Limitar a um único dígito\r\n this.pin[index] = value;\r\n\r\n // Focar no próximo campo, se possível\r\n if (value && index < this.pin.length - 1) {\r\n const nextInput = input.nextElementSibling as HTMLInputElement;\r\n nextInput?.focus();\r\n }\r\n\r\n this.pin = [...this.pin];\r\n }\r\n\r\n validatePin() {\r\n this.validate(this.pin.join(\"\"))\r\n }\r\n\r\n verifyPin() {\r\n const pinCode = this.pin.join('');\r\n if (pinCode === '9999') {\r\n this.isVerified = true;\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n <div class=\"form-container-pin\">\r\n <div >\r\n <p>Insira o PIN de 4 dígitos enviado por SMS.</p>\r\n <div class=\"pin-container\">\r\n {this.pin.map((_, index) => (\r\n <input\r\n type=\"text\"\r\n maxLength={1}\r\n value={this.pin[index]}\r\n onInput={(event) => this.handleInput(event, index)}\r\n />\r\n ))}\r\n </div>\r\n </div>\r\n\r\n <div class=\"footer-button\">\r\n <button class=\"button-cancel\" disabled={this.loading} onClick={() => this.cancel()}>\r\n Cancelar\r\n </button>\r\n <button class={`button ${this.loading ? 'disabled' : ''} `} disabled={this.loading} onClick={() => this.validatePin()}>\r\n {\r\n !this.loading ? \"Enviar\" : <loading-spinner size=\"15px\" color=\"#fff\" />\r\n }\r\n </button>\r\n </div>\r\n {/* <button onClick={() => this.verifyPin()}>Enviar</button>\r\n {this.isVerified && <p class=\"success\">Código verificado com sucesso!</p>} */}\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
|