crmbonus-component-wake 2.0.115 → 2.0.116
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/{esm → crmbonus-component-wake}/app-modal.entry.js +2 -3
- package/dist/crmbonus-component-wake/app-modal.entry.js.map +1 -0
- package/dist/{components/p-8179aaa5.js → crmbonus-component-wake/cart.helper-2643939f.js} +6 -3
- package/dist/crmbonus-component-wake/cart.helper-2643939f.js.map +1 -0
- package/dist/{components/p-2b3b8d6b.js → crmbonus-component-wake/countdown-timer.entry.js} +7 -27
- package/dist/crmbonus-component-wake/countdown-timer.entry.js.map +1 -0
- package/dist/{esm → crmbonus-component-wake}/crm-bonus-form.entry.js +3 -4
- package/dist/crmbonus-component-wake/{p-51a4fdbf.entry.js.map → crm-bonus-form.entry.js.map} +1 -1
- package/dist/{esm → crmbonus-component-wake}/crm-bonus-note.entry.js +16 -14
- package/dist/crmbonus-component-wake/crm-bonus-note.entry.js.map +1 -0
- package/dist/{esm → crmbonus-component-wake}/crm-bonus.entry.js +10 -9
- package/dist/crmbonus-component-wake/crm-bonus.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/crm-button.entry.js +20 -0
- package/dist/crmbonus-component-wake/crm-button.entry.js.map +1 -0
- package/dist/{esm/crm-giftback-form_2.entry.js → crmbonus-component-wake/crm-giftback-form.entry.js} +6 -21
- package/dist/{cjs/crm-giftback-form_2.cjs.entry.js.map → crmbonus-component-wake/crm-giftback-form.entry.js.map} +1 -1
- package/dist/{components/p-58b97429.js → crmbonus-component-wake/crm-tooltip.entry.js} +8 -27
- package/dist/crmbonus-component-wake/crm-tooltip.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/crmbonus-component-wake.css +7 -1
- package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js +48 -1
- package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js.map +1 -1
- package/dist/{esm/crmbonus.service-31fd796c.js → crmbonus-component-wake/crmbonus.service-047b6b01.js} +164 -91
- package/dist/crmbonus-component-wake/crmbonus.service-047b6b01.js.map +1 -0
- package/dist/{components/p-b79c86a8.js → crmbonus-component-wake/giftback-finish.entry.js} +8 -25
- package/dist/crmbonus-component-wake/giftback-finish.entry.js.map +1 -0
- package/dist/{components/p-2671d669.js → crmbonus-component-wake/giftback-info.entry.js} +12 -52
- package/dist/crmbonus-component-wake/giftback-info.entry.js.map +1 -0
- package/dist/{components/p-6186ddcc.js → crmbonus-component-wake/giftback-pin.entry.js} +8 -38
- package/dist/crmbonus-component-wake/giftback-pin.entry.js.map +1 -0
- package/dist/{components/p-7c744cca.js → crmbonus-component-wake/giftback-progress.entry.js} +8 -37
- package/dist/crmbonus-component-wake/giftback-progress.entry.js.map +1 -0
- package/dist/{esm/i18n-e8150dff.js → crmbonus-component-wake/i18n-11138a2c.js} +16 -1
- package/dist/{esm/i18n-e8150dff.js.map → crmbonus-component-wake/i18n-11138a2c.js.map} +1 -1
- package/dist/crmbonus-component-wake/index-d0fd1dc0.js +3039 -0
- package/dist/crmbonus-component-wake/index-d0fd1dc0.js.map +1 -0
- package/dist/crmbonus-component-wake/index.esm.js +12 -1
- package/dist/crmbonus-component-wake/index.esm.js.map +1 -1
- package/dist/crmbonus-component-wake/loading-container.entry.js +18 -0
- package/dist/crmbonus-component-wake/loading-container.entry.js.map +1 -0
- package/dist/{esm → crmbonus-component-wake}/loading-spinner.entry.js +2 -3
- package/dist/crmbonus-component-wake/loading-spinner.entry.js.map +1 -0
- package/dist/{components/p-246a3e9d.js → crmbonus-component-wake/name-input.entry.js} +8 -37
- package/dist/crmbonus-component-wake/name-input.entry.js.map +1 -0
- package/dist/{esm → crmbonus-component-wake}/pedido-finalizado.entry.js +7 -5
- package/dist/crmbonus-component-wake/pedido-finalizado.entry.js.map +1 -0
- package/dist/{esm → crmbonus-component-wake}/phone-cancel-input.entry.js +1 -1
- package/dist/crmbonus-component-wake/phone-cancel-input.entry.js.map +1 -0
- package/dist/{components/p-6c546e48.js → crmbonus-component-wake/phone-form.entry.js} +8 -47
- package/dist/crmbonus-component-wake/phone-form.entry.js.map +1 -0
- package/dist/{esm → crmbonus-component-wake}/phone-input-mask.entry.js +2 -3
- package/dist/crmbonus-component-wake/phone-input-mask.entry.js.map +1 -0
- package/dist/{esm → crmbonus-component-wake}/phone-input.entry.js +1 -1
- package/dist/crmbonus-component-wake/phone-input.entry.js.map +1 -0
- package/dist/{components/p-83a12a8f.js → crmbonus-component-wake/pin-form.entry.js} +9 -56
- package/dist/crmbonus-component-wake/pin-form.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/shadow-css-7ad5caf8.js +334 -0
- package/dist/crmbonus-component-wake/shadow-css-7ad5caf8.js.map +1 -0
- package/dist/{collection/utils/utils.js → crmbonus-component-wake/utils-96cf9ae0.js} +8 -5
- package/dist/crmbonus-component-wake/utils-96cf9ae0.js.map +1 -0
- package/dist/types/components/crm-bonus/crm-bonus.d.ts +1 -0
- package/dist/types/components/note/crm-bonus-note.d.ts +2 -1
- package/dist/types/components/pedido/pedido.d.ts +1 -0
- package/dist/types/components.d.ts +6 -0
- package/dist/types/home/darlison/Projects/Bycoders/crmbonus/crmbonus-component/.stencil/env.d.ts +1 -3
- package/package.json +6 -2
- package/dist/cjs/app-globals-3a1e7e63.js +0 -7
- package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
- package/dist/cjs/app-modal.cjs.entry.js +0 -28
- package/dist/cjs/app-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/cart.helper-6a0021b4.js +0 -49
- package/dist/cjs/cart.helper-6a0021b4.js.map +0 -1
- package/dist/cjs/countdown-timer_2.cjs.entry.js +0 -63
- package/dist/cjs/countdown-timer_2.cjs.entry.js.map +0 -1
- package/dist/cjs/crm-bonus-form.cjs.entry.js +0 -104
- package/dist/cjs/crm-bonus-form.cjs.entry.js.map +0 -1
- package/dist/cjs/crm-bonus-note.cjs.entry.js +0 -100
- package/dist/cjs/crm-bonus-note.cjs.entry.js.map +0 -1
- package/dist/cjs/crm-bonus.cjs.entry.js +0 -243
- package/dist/cjs/crm-bonus.cjs.entry.js.map +0 -1
- package/dist/cjs/crm-giftback-form_2.cjs.entry.js +0 -253
- package/dist/cjs/crm-tooltip_4.cjs.entry.js +0 -211
- package/dist/cjs/crm-tooltip_4.cjs.entry.js.map +0 -1
- package/dist/cjs/crmbonus-component-wake.cjs.js +0 -27
- package/dist/cjs/crmbonus-component-wake.cjs.js.map +0 -1
- package/dist/cjs/crmbonus.service-a4a07c28.js +0 -3875
- package/dist/cjs/crmbonus.service-a4a07c28.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-f2a6f60e.js +0 -2219
- package/dist/cjs/i18n-f2a6f60e.js.map +0 -1
- package/dist/cjs/index-6054ed44.js +0 -21
- package/dist/cjs/index-6054ed44.js.map +0 -1
- package/dist/cjs/index-d11684bd.js +0 -1599
- package/dist/cjs/index-d11684bd.js.map +0 -1
- package/dist/cjs/index.cjs.js +0 -11
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/info.config.helper-c5d9f781.js +0 -16
- package/dist/cjs/info.config.helper-c5d9f781.js.map +0 -1
- package/dist/cjs/keys.storage-de7744aa.js +0 -17
- package/dist/cjs/keys.storage-de7744aa.js.map +0 -1
- package/dist/cjs/loader.cjs.js +0 -17
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/loading-spinner.cjs.entry.js +0 -24
- package/dist/cjs/loading-spinner.cjs.entry.js.map +0 -1
- package/dist/cjs/pedido-finalizado.cjs.entry.js +0 -37
- package/dist/cjs/pedido-finalizado.cjs.entry.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/cjs/utils-e9413ee3.js +0 -25
- package/dist/cjs/utils-e9413ee3.js.map +0 -1
- package/dist/collection/assets/svg/info-circle-svgrepo-com.svg +0 -6
- package/dist/collection/assets/svg/money-dollars-svgrepo-com.svg +0 -6
- package/dist/collection/collection-manifest.json +0 -32
- package/dist/collection/components/button/crm-button.css +0 -22
- package/dist/collection/components/button/index.js +0 -76
- package/dist/collection/components/button/index.js.map +0 -1
- package/dist/collection/components/countdown-timer/countdown-timer.js +0 -81
- package/dist/collection/components/countdown-timer/countdown-timer.js.map +0 -1
- package/dist/collection/components/crm-bonus/assets/logo.svg +0 -18
- package/dist/collection/components/crm-bonus/assets/success-svgrepo-com.svg +0 -8
- package/dist/collection/components/crm-bonus/assets/svg/logo.svg +0 -18
- package/dist/collection/components/crm-bonus/assets/svg/success-svgrepo-com.svg +0 -8
- package/dist/collection/components/crm-bonus/crm-bonus.css +0 -84
- package/dist/collection/components/crm-bonus/crm-bonus.js +0 -267
- package/dist/collection/components/crm-bonus/crm-bonus.js.map +0 -1
- package/dist/collection/components/crm-bonus-form/crm-bonus-form.css +0 -19
- 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 -10
- 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 -70
- 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 -110
- 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 -110
- 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 -75
- 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 -75
- package/dist/collection/components/crm-bonus-form/subcomponents/phone-cancel/phone.cancel.input.js.map +0 -1
- package/dist/collection/components/giftback-form/giftback-form.css +0 -75
- package/dist/collection/components/giftback-form/giftback-form.js +0 -410
- package/dist/collection/components/giftback-form/giftback-form.js.map +0 -1
- package/dist/collection/components/giftback-form/subcomponents/giftback-info/giftback-info.css +0 -181
- package/dist/collection/components/giftback-form/subcomponents/giftback-info/giftback-info.js +0 -221
- package/dist/collection/components/giftback-form/subcomponents/giftback-info/giftback-info.js.map +0 -1
- package/dist/collection/components/giftback-form/subcomponents/giftback-message/giftback-massage.js +0 -11
- package/dist/collection/components/giftback-form/subcomponents/giftback-message/giftback-massage.js.map +0 -1
- package/dist/collection/components/giftback-form/subcomponents/phone-form/phone-form.js +0 -103
- package/dist/collection/components/giftback-form/subcomponents/phone-form/phone-form.js.map +0 -1
- package/dist/collection/components/giftback-form/subcomponents/pin-form/pin-form.css +0 -84
- package/dist/collection/components/giftback-form/subcomponents/pin-form/pin-form.js +0 -197
- package/dist/collection/components/giftback-form/subcomponents/pin-form/pin-form.js.map +0 -1
- package/dist/collection/components/loading-container/loading-container.css +0 -47
- package/dist/collection/components/loading-container/loading-container.js +0 -43
- package/dist/collection/components/loading-container/loading-container.js.map +0 -1
- package/dist/collection/components/loading-spinner/loading-spinner.css +0 -17
- package/dist/collection/components/loading-spinner/loading-spinner.js +0 -63
- package/dist/collection/components/loading-spinner/loading-spinner.js.map +0 -1
- package/dist/collection/components/modal/app-modal.css +0 -45
- package/dist/collection/components/modal/app-modal.js +0 -83
- package/dist/collection/components/modal/app-modal.js.map +0 -1
- package/dist/collection/components/note/crm-bonus-note.css +0 -71
- package/dist/collection/components/note/crm-bonus-note.js +0 -94
- package/dist/collection/components/note/crm-bonus-note.js.map +0 -1
- package/dist/collection/components/pedido/pedido.js +0 -26
- package/dist/collection/components/pedido/pedido.js.map +0 -1
- package/dist/collection/components/phone/phone-input-mask.css +0 -40
- package/dist/collection/components/phone/phone-input-mask.js +0 -125
- package/dist/collection/components/phone/phone-input-mask.js.map +0 -1
- package/dist/collection/components/tooltip/crm-tooltip.css +0 -49
- package/dist/collection/components/tooltip/tooltip.js +0 -61
- package/dist/collection/components/tooltip/tooltip.js.map +0 -1
- package/dist/collection/contants/index.js +0 -16
- package/dist/collection/contants/index.js.map +0 -1
- package/dist/collection/contants/mocks.js +0 -28
- package/dist/collection/contants/mocks.js.map +0 -1
- package/dist/collection/dto/pin.sent.js +0 -2
- package/dist/collection/dto/pin.sent.js.map +0 -1
- package/dist/collection/dto/update.order.dto.js +0 -2
- package/dist/collection/dto/update.order.dto.js.map +0 -1
- package/dist/collection/dto/validate.pin.bonus.js +0 -5
- package/dist/collection/dto/validate.pin.bonus.js.map +0 -1
- package/dist/collection/helpers/build.payload.helper.js +0 -25
- package/dist/collection/helpers/build.payload.helper.js.map +0 -1
- package/dist/collection/helpers/cart.helper.js +0 -20
- package/dist/collection/helpers/cart.helper.js.map +0 -1
- package/dist/collection/helpers/info.config.helper.js +0 -11
- package/dist/collection/helpers/info.config.helper.js.map +0 -1
- package/dist/collection/helpers/time.helper.js +0 -12
- package/dist/collection/helpers/time.helper.js.map +0 -1
- package/dist/collection/i18n/i18n.js +0 -35
- package/dist/collection/i18n/i18n.js.map +0 -1
- package/dist/collection/index.js +0 -11
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/objectvalues/cart.wake.js +0 -24
- package/dist/collection/objectvalues/cart.wake.js.map +0 -1
- package/dist/collection/services/crmbonus.service.js +0 -118
- package/dist/collection/services/crmbonus.service.js.map +0 -1
- package/dist/collection/utils/keys.storage.js +0 -9
- package/dist/collection/utils/keys.storage.js.map +0 -1
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/components/app-modal.js +0 -46
- package/dist/components/app-modal.js.map +0 -1
- package/dist/components/countdown-timer.js +0 -8
- package/dist/components/countdown-timer.js.map +0 -1
- package/dist/components/crm-bonus-form.js +0 -165
- package/dist/components/crm-bonus-form.js.map +0 -1
- package/dist/components/crm-bonus-note.js +0 -137
- package/dist/components/crm-bonus-note.js.map +0 -1
- package/dist/components/crm-bonus.js +0 -330
- package/dist/components/crm-bonus.js.map +0 -1
- package/dist/components/crm-button.js +0 -8
- package/dist/components/crm-button.js.map +0 -1
- package/dist/components/crm-giftback-form.js +0 -8
- package/dist/components/crm-giftback-form.js.map +0 -1
- package/dist/components/crm-tooltip.js +0 -8
- package/dist/components/crm-tooltip.js.map +0 -1
- package/dist/components/giftback-finish.js +0 -8
- package/dist/components/giftback-finish.js.map +0 -1
- package/dist/components/giftback-info.js +0 -8
- package/dist/components/giftback-info.js.map +0 -1
- package/dist/components/giftback-pin.js +0 -8
- package/dist/components/giftback-pin.js.map +0 -1
- package/dist/components/giftback-progress.js +0 -8
- package/dist/components/giftback-progress.js.map +0 -1
- package/dist/components/index.js +0 -4
- package/dist/components/index.js.map +0 -1
- package/dist/components/loading-container.js +0 -8
- package/dist/components/loading-container.js.map +0 -1
- package/dist/components/loading-spinner.js +0 -8
- package/dist/components/loading-spinner.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-11085d9b.js +0 -79
- package/dist/components/p-11085d9b.js.map +0 -1
- package/dist/components/p-246a3e9d.js.map +0 -1
- package/dist/components/p-2671d669.js.map +0 -1
- package/dist/components/p-2b3b8d6b.js.map +0 -1
- package/dist/components/p-3e84f78c.js +0 -1408
- package/dist/components/p-3e84f78c.js.map +0 -1
- package/dist/components/p-47f9da55.js +0 -46
- package/dist/components/p-47f9da55.js.map +0 -1
- package/dist/components/p-58b97429.js.map +0 -1
- package/dist/components/p-6186ddcc.js.map +0 -1
- package/dist/components/p-6c546e48.js.map +0 -1
- package/dist/components/p-75ba7b9a.js +0 -14
- package/dist/components/p-75ba7b9a.js.map +0 -1
- package/dist/components/p-7c744cca.js.map +0 -1
- package/dist/components/p-7cfea8fe.js +0 -19
- package/dist/components/p-7cfea8fe.js.map +0 -1
- package/dist/components/p-7f0cb052.js +0 -316
- package/dist/components/p-7f0cb052.js.map +0 -1
- package/dist/components/p-8179aaa5.js.map +0 -1
- package/dist/components/p-83a12a8f.js.map +0 -1
- package/dist/components/p-b79c86a8.js.map +0 -1
- package/dist/components/p-ba369e65.js +0 -21
- package/dist/components/p-ba369e65.js.map +0 -1
- package/dist/components/p-cc1ea33f.js +0 -36
- package/dist/components/p-cc1ea33f.js.map +0 -1
- package/dist/components/p-e8c19a64.js +0 -2217
- package/dist/components/p-e8c19a64.js.map +0 -1
- package/dist/components/p-f9aeffc1.js +0 -12
- package/dist/components/p-f9aeffc1.js.map +0 -1
- package/dist/components/p-fd62879e.js +0 -3873
- package/dist/components/p-fd62879e.js.map +0 -1
- package/dist/components/p-fe9c3966.js +0 -39
- package/dist/components/p-fe9c3966.js.map +0 -1
- package/dist/components/pedido-finalizado.js +0 -50
- package/dist/components/pedido-finalizado.js.map +0 -1
- package/dist/components/phone-cancel-input.js +0 -55
- package/dist/components/phone-cancel-input.js.map +0 -1
- package/dist/components/phone-form.js +0 -8
- package/dist/components/phone-form.js.map +0 -1
- package/dist/components/phone-input-mask.js +0 -8
- package/dist/components/phone-input-mask.js.map +0 -1
- package/dist/components/phone-input.js +0 -55
- package/dist/components/phone-input.js.map +0 -1
- package/dist/components/pin-form.js +0 -8
- package/dist/components/pin-form.js.map +0 -1
- package/dist/crmbonus-component-wake/p-03b77c41.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-03b77c41.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-289a892a.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-289a892a.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-3d6152b1.js +0 -3
- package/dist/crmbonus-component-wake/p-3d6152b1.js.map +0 -1
- package/dist/crmbonus-component-wake/p-4f47b32c.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-4f47b32c.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-51a4fdbf.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-620ec1a3.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-620ec1a3.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-74206c91.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-74206c91.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-75ba7b9a.js +0 -2
- package/dist/crmbonus-component-wake/p-75ba7b9a.js.map +0 -1
- package/dist/crmbonus-component-wake/p-7b7fb354.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-7b7fb354.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-7cfea8fe.js +0 -2
- package/dist/crmbonus-component-wake/p-7cfea8fe.js.map +0 -1
- package/dist/crmbonus-component-wake/p-8179aaa5.js +0 -2
- package/dist/crmbonus-component-wake/p-8179aaa5.js.map +0 -1
- package/dist/crmbonus-component-wake/p-885fc30e.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-885fc30e.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-90716188.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-90716188.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-a11e6510.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-a11e6510.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-b7a8f915.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-b7a8f915.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-ba369e65.js +0 -2
- package/dist/crmbonus-component-wake/p-ba369e65.js.map +0 -1
- package/dist/crmbonus-component-wake/p-be3ddacc.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-be3ddacc.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-e1255160.js +0 -2
- package/dist/crmbonus-component-wake/p-e1255160.js.map +0 -1
- package/dist/crmbonus-component-wake/p-e85698cd.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-e85698cd.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-e8c19a64.js +0 -2
- package/dist/crmbonus-component-wake/p-e8c19a64.js.map +0 -1
- package/dist/crmbonus-component-wake/p-f9aeffc1.js +0 -2
- package/dist/crmbonus-component-wake/p-f9aeffc1.js.map +0 -1
- package/dist/crmbonus-component-wake/p-fd62879e.js +0 -2
- package/dist/crmbonus-component-wake/p-fd62879e.js.map +0 -1
- package/dist/env.js +0 -5
- package/dist/env.js.map +0 -1
- package/dist/esm/app-modal.entry.js.map +0 -1
- package/dist/esm/cart.helper-dfef7b74.js +0 -47
- package/dist/esm/cart.helper-dfef7b74.js.map +0 -1
- package/dist/esm/countdown-timer_2.entry.js +0 -58
- package/dist/esm/countdown-timer_2.entry.js.map +0 -1
- package/dist/esm/crm-bonus-form.entry.js.map +0 -1
- package/dist/esm/crm-bonus-note.entry.js.map +0 -1
- package/dist/esm/crm-bonus.entry.js.map +0 -1
- package/dist/esm/crm-giftback-form_2.entry.js.map +0 -1
- package/dist/esm/crm-tooltip_4.entry.js +0 -204
- package/dist/esm/crm-tooltip_4.entry.js.map +0 -1
- package/dist/esm/crmbonus-component-wake.js +0 -22
- package/dist/esm/crmbonus-component-wake.js.map +0 -1
- package/dist/esm/crmbonus.service-31fd796c.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/index-e8724c8f.js +0 -1571
- package/dist/esm/index-e8724c8f.js.map +0 -1
- package/dist/esm/index.js +0 -3
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js +0 -13
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/loading-spinner.entry.js.map +0 -1
- package/dist/esm/pedido-finalizado.entry.js.map +0 -1
- package/dist/esm/phone-cancel-input.entry.js.map +0 -1
- package/dist/esm/phone-input-mask.entry.js.map +0 -1
- package/dist/esm/phone-input.entry.js.map +0 -1
- package/dist/esm/utils-d642b4db.js +0 -21
- package/dist/esm/utils-d642b4db.js.map +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- /package/dist/{esm → crmbonus-component-wake}/app-globals-0f993ce5.js +0 -0
- /package/dist/{esm → crmbonus-component-wake}/app-globals-0f993ce5.js.map +0 -0
- /package/dist/{esm → crmbonus-component-wake}/index-5b567099.js +0 -0
- /package/dist/{esm → crmbonus-component-wake}/index-5b567099.js.map +0 -0
- /package/dist/{esm → crmbonus-component-wake}/info.config.helper-42d9ddf9.js +0 -0
- /package/dist/{esm → crmbonus-component-wake}/info.config.helper-42d9ddf9.js.map +0 -0
- /package/dist/{esm → crmbonus-component-wake}/keys.storage-8c76fcd7.js +0 -0
- /package/dist/{esm → crmbonus-component-wake}/keys.storage-8c76fcd7.js.map +0 -0
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"crm-bonus-form.js","sourceRoot":"","sources":["../../../../src/components/crm-bonus-form/crm-bonus-form.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAQ9C,MAAM,OAAO,YAAY;;QAEb,oBAAe,GAAoB,eAAe,CAAC,WAAW,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C,kBAAkB,CAAC,IAAI,CAAC,GAAI;YAChK,IAAI,CAAC,IAAI,KAAK,YAAY,CAAC,QAAQ,IAAI,qEAAc,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,GAAI;YAEhL,IAAI,CAAC,IAAI,KAAK,YAAY,CAAC,YAAY,IAAI,0EAAmB,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,cAAsB,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,cAAc,CAAC,GAAI;YACrN,IAAI,CAAC,IAAI,KAAK,YAAY,CAAC,UAAU,IAAI,yEAAmB;YAC7D,0DAAG,KAAK,EAAC,eAAe,IAAE,IAAI,CAAC,OAAO,CAAK,CACxC,CACV,CAAA;IACL,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Host, Method, Prop, State, h } from \"@stencil/core\";\nimport { CrmBonusService } from \"../../services/crmbonus.service\";\nimport { IBonus, ICustomer, IProccesPinBonusDto, IProduct } from \"../../dto/validate.pin.bonus\";\nimport { StepFormEnum } from \"../../contants\";\nimport { IPinSent } from '../../dto/pin.sent';\n\n@Component({\n tag: 'crm-bonus-form',\n styleUrl: 'crm-bonus-form.css',\n shadow: true\n})\nexport class CrmBonusForm {\n\n private crmBonusService: CrmBonusService = CrmBonusService.getInstance();\n\n @Prop({ attribute: 'storename' }) storeName;\n @Prop() cartId;\n @Prop() products: Array<IProduct>;\n @Prop() customer: ICustomer = {\n phone: \"\",\n birthDate: \"\",\n document: \"\",\n name: \"\"\n };\n @Prop() sent: IPinSent;\n @Prop() stepNext: StepFormEnum;\n @Prop() phone: number;\n @Prop() loadingModal: boolean;\n\n @Prop() saveStore: (amount: number) => void;\n\n @Prop() cancel: () => void;\n\n @Prop() handleCustomerName: (name: string) => void;\n\n @State() loading: boolean = false;\n\n @State() step: number = StepFormEnum.STEP_NAME;\n\n @State() message: string;\n\n @State() bonus: IBonus;\n\n @Method()\n async setStep(step: StepFormEnum) {\n this.step = step\n }\n\n public async validateBonus(pin: string) {\n this.loading = true;\n this.message = \"\";\n const payload: IProccesPinBonusDto = {\n pin: pin,\n cellphone: parseInt(this.phone.toString()),\n storeId: this.sent.storeId.toString(),\n userId: this.sent.userId.toString(),\n checkoutId: this.cartId,\n checkoutProducts: this.products,\n name: null,\n storeName: this.storeName\n }\n\n try {\n this.bonus = await this.crmBonusService.validatePinBonus(payload);\n\n this.step = StepFormEnum.STEP_RESERVE;\n } catch (error) {\n this.message = error?.response?.data?.message\n } finally {\n this.loading = false;\n }\n }\n\n public async reserveApply(amount: number) {\n this.loading = true;\n this.message = \"\";\n try {\n await this.reserve(amount);\n\n this.step = StepFormEnum.STEP_APPLY;\n\n this.saveStore(amount);\n } catch (error) {\n this.message = \"ocorreu um error ao solicitar a aplicação do bonus! tente novamente\"\n } finally {\n this.loading = false;\n }\n }\n\n public async reserve(amount: number) {\n await this.crmBonusService.reserve({\n redeemedBonus: amount,\n cartId: this.cartId,\n ticket: this.cartId,\n grossValue: Number(this.bonus.totalValue),\n storeName: this.storeName,\n storeId: this.bonus.storeId.toString(),\n userId: this.bonus.userId\n });\n }\n\n public handleCancel() {\n this.step = StepFormEnum.STEP_PHONE;\n this.cancel()\n }\n\n render() {\n return (\n <Host>\n {/* {this.step === StepFormEnum.STEP_PHONE && <phone-input value={this.customer.phone} sendPin={(phone) => this.sendPin(phone)} loading={this.loading} />} */}\n \n {this.step == StepFormEnum.STEP_NAME && <name-input loading={this.loadingModal} value={this.customer.name} applyName={(name) => this.handleCustomerName(name)} />}\n {this.step === StepFormEnum.STEP_PIN && <giftback-pin cancel={() => this.handleCancel()} sent={this.sent} validate={(data) => this.validateBonus(data)} loading={this.loading} />}\n\n {this.step === StepFormEnum.STEP_RESERVE && <giftback-progress loading={this.loading} cancel={() => this.handleCancel()} bonus={this.bonus} reserve={(amountRedeemed: number) => this.reserveApply(amountRedeemed)} />}\n {this.step === StepFormEnum.STEP_APPLY && <giftback-finish />}\n <p class=\"message-error\">{this.message}</p>\n </Host>\n )\n }\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: 'e72f82799146a6e94acbdd62324e07cdf9f77009', class: "message-finish" }, h("img", { key: '46e2436a3dbe4745225c3b9674e6bf6c299ad63e', src: success, width: 80 }), h("p", { key: '270e42050956f7f3d1ae9b90f314211fa310f797' }, "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\";\nimport success from '../../../crm-bonus/assets/svg/success-svgrepo-com.svg'\n\n@Component({\n tag: 'giftback-finish',\n styleUrl: 'giftback-finish.css',\n shadow: true\n})\nexport class GiftbackFinish {\n render() {\n return (\n <div class=\"message-finish\">\n <img src={success} width={80} />\n <p>Legal! O Bônus será aplicado na sua compra.</p>\n </div>\n )\n }\n}"]}
|
package/dist/collection/components/crm-bonus-form/subcomponents/giftback-pin/giftback-pin.css
DELETED
@@ -1,70 +0,0 @@
|
|
1
|
-
:host {
|
2
|
-
display: block;
|
3
|
-
font-family: Arial, sans-serif;
|
4
|
-
}
|
5
|
-
|
6
|
-
.form-container-pin {
|
7
|
-
display: flex;
|
8
|
-
flex-direction: column;
|
9
|
-
align-items: center;
|
10
|
-
}
|
11
|
-
|
12
|
-
.pin-container {
|
13
|
-
display: flex;
|
14
|
-
gap: 10px;
|
15
|
-
margin: 26px 0;
|
16
|
-
}
|
17
|
-
|
18
|
-
input {
|
19
|
-
width: 58px;
|
20
|
-
height: 40px;
|
21
|
-
font-size: 18px;
|
22
|
-
text-align: center;
|
23
|
-
border: 1px solid #ccc;
|
24
|
-
border-radius: 5px;
|
25
|
-
}
|
26
|
-
|
27
|
-
button {
|
28
|
-
padding: 10px 20px;
|
29
|
-
/* background-color: #ddd; */
|
30
|
-
border: none;
|
31
|
-
border-radius: 5px;
|
32
|
-
cursor: pointer;
|
33
|
-
}
|
34
|
-
|
35
|
-
.success {
|
36
|
-
color: green;
|
37
|
-
margin-top: 10px;
|
38
|
-
}
|
39
|
-
|
40
|
-
.button {
|
41
|
-
top: 50%;
|
42
|
-
background-color: #6c6c7e;
|
43
|
-
color: #fff;
|
44
|
-
border: none;
|
45
|
-
border-radius: 10px;
|
46
|
-
padding: 15px;
|
47
|
-
min-height: 30px;
|
48
|
-
min-width: 120px;
|
49
|
-
font-size: 20px;
|
50
|
-
cursor: pointer;
|
51
|
-
}
|
52
|
-
|
53
|
-
.button-cancel {
|
54
|
-
top: 50%;
|
55
|
-
background-color: #ffffff;
|
56
|
-
color: #1e1c1c;
|
57
|
-
border: 1px solid gray;
|
58
|
-
border-radius: 10px;
|
59
|
-
padding: 10px;
|
60
|
-
min-height: 30px;
|
61
|
-
min-width: 120px;
|
62
|
-
font-size: 19px;
|
63
|
-
cursor: pointer;
|
64
|
-
}
|
65
|
-
|
66
|
-
.footer-button {
|
67
|
-
display: flex;
|
68
|
-
justify-content: space-between;
|
69
|
-
width: 100%;
|
70
|
-
}
|
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: '1757d5be19ea7a7f3b6ec2d52dacc188acf85eb9', class: "form-container-pin" }, h("div", { key: 'ff4c4f4de2b3f652752145855cdfd92809d831dc' }, h("p", { key: '0f0b8a7e16fc419953ccca0d954664860e6165d2' }, "Insira o PIN de 4 d\u00EDgitos enviado por SMS."), h("div", { key: '08fd4f430bf3186c62fbbdb747aa12173f2ec055', 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: 'bc44db06179215f590db0cd0bd9c38ab8807cd0f', class: "footer-button" }, h("button", { key: '4a75e42791e79489ff69e884b7cdc0dbdc46c40e', class: "button-cancel", disabled: this.loading, onClick: () => this.cancel() }, "Cancelar"), h("button", { key: 'fe93430a1c13ecdd062062650fb268ba9350be76', 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,CA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, h, Prop, State } from '@stencil/core';\nimport { IPinSent } from '../../../../dto/pin.sent';\n\n@Component({\n tag: 'giftback-pin',\n styleUrl: 'giftback-pin.css',\n shadow: true,\n})\nexport class GiftbackPin {\n\n @Prop() sent: IPinSent;\n @Prop() validate: (pin: string) => void;\n @Prop() cancel: () => void;\n\n @State() pin: string[] = ['', '', '', ''];\n @State() isVerified: boolean = false;\n\n @Prop() loading: boolean = false;\n\n handleInput(event: Event, index: number) {\n const input = event.target as HTMLInputElement;\n const value = input.value.slice(0, 1); // Limitar a um único dígito\n this.pin[index] = value;\n\n // Focar no próximo campo, se possível\n if (value && index < this.pin.length - 1) {\n const nextInput = input.nextElementSibling as HTMLInputElement;\n nextInput?.focus();\n }\n\n this.pin = [...this.pin];\n }\n\n validatePin() {\n this.validate(this.pin.join(\"\"))\n }\n\n verifyPin() {\n const pinCode = this.pin.join('');\n if (pinCode === '9999') {\n this.isVerified = true;\n }\n }\n\n render() {\n return (\n <div class=\"form-container-pin\">\n <div >\n <p>Insira o PIN de 4 dígitos enviado por SMS.</p>\n <div class=\"pin-container\">\n {this.pin.map((_, index) => (\n <input\n type=\"text\"\n maxLength={1}\n value={this.pin[index]}\n onInput={(event) => this.handleInput(event, index)}\n />\n ))}\n </div>\n </div>\n\n <div class=\"footer-button\">\n <button class=\"button-cancel\" disabled={this.loading} onClick={() => this.cancel()}>\n Cancelar\n </button>\n <button class={`button ${this.loading ? 'disabled' : ''} `} disabled={this.loading} onClick={() => this.validatePin()}>\n {\n !this.loading ? \"Enviar\" : <loading-spinner size=\"15px\" color=\"#fff\" />\n }\n </button>\n </div>\n {/* <button onClick={() => this.verifyPin()}>Enviar</button>\n {this.isVerified && <p class=\"success\">Código verificado com sucesso!</p>} */}\n </div>\n );\n }\n}\n"]}
|
@@ -1,110 +0,0 @@
|
|
1
|
-
:host {
|
2
|
-
display: flex;
|
3
|
-
font-family: Arial, sans-serif;
|
4
|
-
/* background-color: #f8f4eb; */
|
5
|
-
border-radius: 10px;
|
6
|
-
padding: 16px;
|
7
|
-
/* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
|
8
|
-
max-width: 100%;
|
9
|
-
flex-direction: column;
|
10
|
-
}
|
11
|
-
|
12
|
-
.giftback-container {
|
13
|
-
display: flex;
|
14
|
-
flex-direction: column;
|
15
|
-
}
|
16
|
-
|
17
|
-
.giftback-container p {
|
18
|
-
font-size: medium;
|
19
|
-
}
|
20
|
-
|
21
|
-
|
22
|
-
h3 {
|
23
|
-
margin: 0 0 10px;
|
24
|
-
font-size: 18px;
|
25
|
-
}
|
26
|
-
|
27
|
-
p {
|
28
|
-
margin: 5px 0;
|
29
|
-
font-size: 14px;
|
30
|
-
align-self: start;
|
31
|
-
}
|
32
|
-
|
33
|
-
.validity {
|
34
|
-
font-size: 12px;
|
35
|
-
color: #888;
|
36
|
-
}
|
37
|
-
|
38
|
-
.progress-container {
|
39
|
-
display: flex;
|
40
|
-
align-items: center;
|
41
|
-
margin: 10px 0;
|
42
|
-
}
|
43
|
-
|
44
|
-
progress-container span {
|
45
|
-
font-size: 12px;
|
46
|
-
color: #666;
|
47
|
-
}
|
48
|
-
|
49
|
-
input[type='range'] {
|
50
|
-
flex: 1;
|
51
|
-
margin: 0 10px;
|
52
|
-
appearance: none;
|
53
|
-
background-color: #ccc;
|
54
|
-
height: 6px;
|
55
|
-
border-radius: 3px;
|
56
|
-
outline: none;
|
57
|
-
cursor: pointer;
|
58
|
-
}
|
59
|
-
|
60
|
-
input[type='range']::-webkit-slider-thumb {
|
61
|
-
appearance: none;
|
62
|
-
width: 14px;
|
63
|
-
height: 14px;
|
64
|
-
border-radius: 50%;
|
65
|
-
background-color: #555;
|
66
|
-
cursor: pointer;
|
67
|
-
}
|
68
|
-
|
69
|
-
.remaining {
|
70
|
-
font-weight: bold;
|
71
|
-
font-size: 14px;
|
72
|
-
color: #333;
|
73
|
-
}
|
74
|
-
|
75
|
-
.button {
|
76
|
-
top: 50%;
|
77
|
-
background-color: #6c6c7e;
|
78
|
-
color: #fff;
|
79
|
-
border: none;
|
80
|
-
border-radius: 10px;
|
81
|
-
padding: 10px;
|
82
|
-
min-height: 30px;
|
83
|
-
min-width: 120px;
|
84
|
-
font-size: 19px;
|
85
|
-
cursor: pointer;
|
86
|
-
}
|
87
|
-
|
88
|
-
.button-cancel {
|
89
|
-
top: 50%;
|
90
|
-
background-color: #ffffff;
|
91
|
-
color: #1e1c1c;
|
92
|
-
border: 1px solid gray;
|
93
|
-
border-radius: 10px;
|
94
|
-
padding: 10px;
|
95
|
-
min-height: 30px;
|
96
|
-
min-width: 120px;
|
97
|
-
font-size: 19px;
|
98
|
-
cursor: pointer;
|
99
|
-
}
|
100
|
-
|
101
|
-
.disabled {
|
102
|
-
opacity: 0.6;
|
103
|
-
cursor: not-allowed;
|
104
|
-
}
|
105
|
-
|
106
|
-
.footer-button-giftback {
|
107
|
-
display: flex;
|
108
|
-
justify-content: space-between;
|
109
|
-
margin-top: 14px;
|
110
|
-
}
|
@@ -1,127 +0,0 @@
|
|
1
|
-
import { h } from "@stencil/core";
|
2
|
-
export class GiftbackProgress {
|
3
|
-
constructor() {
|
4
|
-
this.usedValue = 0;
|
5
|
-
this.loading = false;
|
6
|
-
this.bonus = {
|
7
|
-
totalBonus: 0,
|
8
|
-
cartId: "",
|
9
|
-
minimumPurchase: 0,
|
10
|
-
bonusBalance: 0,
|
11
|
-
calculatedValue: 0,
|
12
|
-
firstValidityDate: ""
|
13
|
-
};
|
14
|
-
this.reserve = undefined;
|
15
|
-
this.cancel = undefined;
|
16
|
-
}
|
17
|
-
componentWillLoad() {
|
18
|
-
this.usedValue = parseFloat(this.bonus.bonusBalance.toString());
|
19
|
-
}
|
20
|
-
handleSliderChange(event) {
|
21
|
-
const input = event.target;
|
22
|
-
this.usedValue = parseFloat(input.value);
|
23
|
-
}
|
24
|
-
async handleReserve(value) {
|
25
|
-
this.reserve(value);
|
26
|
-
}
|
27
|
-
render() {
|
28
|
-
const remainingGiftback = this.bonus.minimumPurchase - this.bonus.totalValue;
|
29
|
-
return (h("div", { key: 'c2fb3f6a887887e197b55e951dbf50054e27e77a', class: "giftback-container" }, h("p", { key: '1d08aaaa1d260f3938e472e95b1e194be50c3987' }, "Voc\u00EA possui at\u00E9 ", h("strong", { key: '99d39bc977a41c9d098c812b61ae41c25342f65c' }, "R$ ", this.bonus.totalBonus.toFixed(2)), " de Giftback nessa compra!"), h("p", { key: '68fc8504eabfdf6e9e873780bb6863521a683e58', class: "validity" }, "V\u00E1lido at\u00E9: ", new Date(this.bonus.firstValidityDate).toLocaleDateString('pt-Br')), h("p", { key: 'fe4c8804f8d577e530330050cfae9c33c2be36d7' }, "Voc\u00EA est\u00E1 utilizando ", h("strong", { key: 'd1d2a6ad0ca1da77e5a4ab9a595af74a11fb9862' }, "R$ ", this.usedValue.toFixed(2)), " nessa compra"), h("div", { key: 'b0eac608016c3136a344c03d456355d7ffcc8dfc', class: "progress-container" }, h("span", { key: 'a88626a3f0d0109fca8b593da05e76f54eb69e28' }, "R$ 0"), h("input", { key: '5d19e34becada60c728f9fce1fa67eede16b7844', disabled: true, type: "range", min: "0", step: "0.01", max: this.bonus.totalBonus, value: this.usedValue, onInput: (event) => this.handleSliderChange(event) }), h("span", { key: '31f0b18eff1ffbd2fb86941653beacad567514ca' }, "R$ ", this.bonus.totalBonus.toFixed(2))), h("p", { key: '5f278047d5bb21282890de0304bc2e8addf8ea43', class: "remaining" }, "Faltam ", h("strong", { key: 'fa220ca91d366eb5e5eec4bf7e94ace4584b0dbe' }, "R$ ", remainingGiftback > 0 ? remainingGiftback.toFixed(2) : Number(0).toFixed(2)), " para utilizar o valor total do Giftback."), h("div", { key: '248c3376e92b8daab0c821e79e083ef6f44bff9e', class: "footer-button-giftback" }, h("button", { key: 'fe612e24a59abed7ef27e6a0425d40efaad218c2', class: "button-cancel", disabled: this.loading, onClick: () => this.cancel() }, "Cancelar"), h("button", { key: '6f86a5b1eeedf01c9eabe9313fdf7b00dc264e96', class: `button ${this.loading ? 'disabled' : ''} `, disabled: this.loading, onClick: () => this.handleReserve(this.usedValue) }, !this.loading ? "Aplicar" : h("loading-spinner", { size: "10px", color: "#fff" })))));
|
30
|
-
}
|
31
|
-
static get is() { return "giftback-progress"; }
|
32
|
-
static get encapsulation() { return "shadow"; }
|
33
|
-
static get originalStyleUrls() {
|
34
|
-
return {
|
35
|
-
"$": ["giftback-progress.css"]
|
36
|
-
};
|
37
|
-
}
|
38
|
-
static get styleUrls() {
|
39
|
-
return {
|
40
|
-
"$": ["giftback-progress.css"]
|
41
|
-
};
|
42
|
-
}
|
43
|
-
static get properties() {
|
44
|
-
return {
|
45
|
-
"loading": {
|
46
|
-
"type": "boolean",
|
47
|
-
"mutable": false,
|
48
|
-
"complexType": {
|
49
|
-
"original": "boolean",
|
50
|
-
"resolved": "boolean",
|
51
|
-
"references": {}
|
52
|
-
},
|
53
|
-
"required": false,
|
54
|
-
"optional": false,
|
55
|
-
"docs": {
|
56
|
-
"tags": [],
|
57
|
-
"text": ""
|
58
|
-
},
|
59
|
-
"attribute": "loading",
|
60
|
-
"reflect": false,
|
61
|
-
"defaultValue": "false"
|
62
|
-
},
|
63
|
-
"bonus": {
|
64
|
-
"type": "unknown",
|
65
|
-
"mutable": false,
|
66
|
-
"complexType": {
|
67
|
-
"original": "Partial<IBonus>",
|
68
|
-
"resolved": "{ hasBonus?: boolean; bonusBalance?: number; totalBonus?: number; minimumPurchase?: number; bonusIds?: string; firstValidityDate?: string; history?: [{ validityStart: string; validityEnd: string; value: number; }, { validityStart: string; validityEnd: string; value: number; }]; storeId?: number; userId?: number; cartId?: string; calculatedValue?: number; totalValue?: number; }",
|
69
|
-
"references": {
|
70
|
-
"Partial": {
|
71
|
-
"location": "global",
|
72
|
-
"id": "global::Partial"
|
73
|
-
},
|
74
|
-
"IBonus": {
|
75
|
-
"location": "import",
|
76
|
-
"path": "../../../../dto/validate.pin.bonus",
|
77
|
-
"id": "src/dto/validate.pin.bonus.ts::IBonus"
|
78
|
-
}
|
79
|
-
}
|
80
|
-
},
|
81
|
-
"required": false,
|
82
|
-
"optional": false,
|
83
|
-
"docs": {
|
84
|
-
"tags": [],
|
85
|
-
"text": ""
|
86
|
-
},
|
87
|
-
"defaultValue": "{\n totalBonus: 0,\n cartId: \"\",\n minimumPurchase: 0,\n bonusBalance: 0,\n calculatedValue: 0,\n firstValidityDate: \"\"\n }"
|
88
|
-
},
|
89
|
-
"reserve": {
|
90
|
-
"type": "unknown",
|
91
|
-
"mutable": false,
|
92
|
-
"complexType": {
|
93
|
-
"original": "(amountRedeemed: number) => void",
|
94
|
-
"resolved": "(amountRedeemed: number) => void",
|
95
|
-
"references": {}
|
96
|
-
},
|
97
|
-
"required": false,
|
98
|
-
"optional": false,
|
99
|
-
"docs": {
|
100
|
-
"tags": [],
|
101
|
-
"text": ""
|
102
|
-
}
|
103
|
-
},
|
104
|
-
"cancel": {
|
105
|
-
"type": "unknown",
|
106
|
-
"mutable": false,
|
107
|
-
"complexType": {
|
108
|
-
"original": "() => void",
|
109
|
-
"resolved": "() => void",
|
110
|
-
"references": {}
|
111
|
-
},
|
112
|
-
"required": false,
|
113
|
-
"optional": false,
|
114
|
-
"docs": {
|
115
|
-
"tags": [],
|
116
|
-
"text": ""
|
117
|
-
}
|
118
|
-
}
|
119
|
-
};
|
120
|
-
}
|
121
|
-
static get states() {
|
122
|
-
return {
|
123
|
-
"usedValue": {}
|
124
|
-
};
|
125
|
-
}
|
126
|
-
}
|
127
|
-
//# sourceMappingURL=giftback-progress.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"giftback-progress.js","sourceRoot":"","sources":["../../../../../../src/components/crm-bonus-form/subcomponents/giftback-progress/giftback-progress.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE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n\n@Component({\n tag: 'giftback-progress',\n styleUrl: 'giftback-progress.css',\n shadow: true,\n})\nexport class GiftbackProgress {\n @State() usedValue: number = 0;\n\n @Prop() loading: boolean = false;\n\n @Prop() bonus: Partial<IBonus> = {\n totalBonus: 0,\n cartId: \"\",\n minimumPurchase: 0,\n bonusBalance: 0,\n calculatedValue: 0,\n firstValidityDate: \"\"\n };\n\n @Prop() reserve: (amountRedeemed: number) => void;\n @Prop() cancel: () => void;\n\n componentWillLoad() {\n this.usedValue = parseFloat(this.bonus.bonusBalance.toString());\n }\n\n handleSliderChange(event: Event) {\n const input = event.target as HTMLInputElement;\n this.usedValue = parseFloat(input.value);\n }\n\n async handleReserve(value: number) {\n this.reserve(value);\n }\n\n render() {\n const remainingGiftback = this.bonus.minimumPurchase - this.bonus.totalValue;\n\n return (\n <div class=\"giftback-container\">\n <p>\n Você possui até <strong>R$ {this.bonus.totalBonus.toFixed(2)}</strong> de Giftback nessa compra!\n </p>\n <p class=\"validity\">Válido até: {new Date(this.bonus.firstValidityDate).toLocaleDateString('pt-Br')}</p>\n\n <p>Você está utilizando <strong>R$ {this.usedValue.toFixed(2)}</strong> nessa compra</p>\n\n <div class=\"progress-container\">\n <span>R$ 0</span>\n <input\n disabled\n type=\"range\"\n min=\"0\"\n step=\"0.01\"\n max={this.bonus.totalBonus}\n value={this.usedValue}\n onInput={(event) => this.handleSliderChange(event)}\n />\n <span>R$ {this.bonus.totalBonus.toFixed(2)}</span>\n </div>\n\n <p class=\"remaining\">\n Faltam <strong>R$ {remainingGiftback > 0 ? remainingGiftback.toFixed(2) : Number(0).toFixed(2)}</strong> para utilizar o valor total do Giftback.\n </p>\n\n <div class=\"footer-button-giftback\">\n\n <button class=\"button-cancel\" disabled={this.loading} onClick={() => this.cancel()} >\n Cancelar\n </button>\n\n <button class={`button ${this.loading ? 'disabled' : ''} `} disabled={this.loading} onClick={() => this.handleReserve(this.usedValue)}>\n {\n !this.loading ? \"Aplicar\" : <loading-spinner size=\"10px\" color=\"#fff\" />\n }\n </button>\n </div>\n </div>\n );\n }\n}\n"]}
|
@@ -1,108 +0,0 @@
|
|
1
|
-
.bc-form-control {
|
2
|
-
display: block;
|
3
|
-
width: 90%;
|
4
|
-
height: 24px;
|
5
|
-
padding: 7px 18px;
|
6
|
-
font-size: 14px;
|
7
|
-
line-height: 1.42857143;
|
8
|
-
color: #555;
|
9
|
-
background-color: #fff;
|
10
|
-
background-image: none;
|
11
|
-
border: 1px solid #ccc;
|
12
|
-
border-radius: 0px;
|
13
|
-
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
|
14
|
-
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
|
15
|
-
-webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
|
16
|
-
-o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
|
17
|
-
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
|
18
|
-
}
|
19
|
-
|
20
|
-
.bc-btn {
|
21
|
-
display: inline-block;
|
22
|
-
padding: 6px 12px;
|
23
|
-
margin-bottom: 0;
|
24
|
-
font-size: 14px;
|
25
|
-
font-weight: 400;
|
26
|
-
line-height: 1.42857143;
|
27
|
-
text-align: center;
|
28
|
-
white-space: nowrap;
|
29
|
-
vertical-align: middle;
|
30
|
-
-ms-touch-action: manipulation;
|
31
|
-
touch-action: manipulation;
|
32
|
-
cursor: pointer;
|
33
|
-
-webkit-user-select: none;
|
34
|
-
-moz-user-select: none;
|
35
|
-
-ms-user-select: none;
|
36
|
-
user-select: none;
|
37
|
-
background-image: none;
|
38
|
-
border: 1px solid transparent;
|
39
|
-
border-radius: 0px;
|
40
|
-
}
|
41
|
-
|
42
|
-
.bc-btn-process {
|
43
|
-
background: #00162e;
|
44
|
-
border-color: #00162e;
|
45
|
-
width: 30%;
|
46
|
-
color: #fff;
|
47
|
-
}
|
48
|
-
|
49
|
-
.bc-footer-btn {
|
50
|
-
display: flex;
|
51
|
-
justify-content: end;
|
52
|
-
margin: 11px;
|
53
|
-
}
|
54
|
-
|
55
|
-
.name-container {
|
56
|
-
font-weight: bold;
|
57
|
-
color: #494545;
|
58
|
-
}
|
59
|
-
|
60
|
-
|
61
|
-
button {
|
62
|
-
padding: 10px 20px;
|
63
|
-
background-color: #ddd;
|
64
|
-
border: none;
|
65
|
-
border-radius: 5px;
|
66
|
-
cursor: pointer;
|
67
|
-
}
|
68
|
-
|
69
|
-
button:hover {
|
70
|
-
background-color: #bbb;
|
71
|
-
}
|
72
|
-
|
73
|
-
.success {
|
74
|
-
color: green;
|
75
|
-
margin-top: 10px;
|
76
|
-
}
|
77
|
-
|
78
|
-
.button {
|
79
|
-
top: 50%;
|
80
|
-
background-color: #6c6c7e;
|
81
|
-
color: #fff;
|
82
|
-
border: none;
|
83
|
-
border-radius: 10px;
|
84
|
-
padding: 11px;
|
85
|
-
min-width: 120px;
|
86
|
-
font-size: 20px;
|
87
|
-
cursor: pointer;
|
88
|
-
}
|
89
|
-
|
90
|
-
.button-cancel {
|
91
|
-
top: 50%;
|
92
|
-
background-color: #ffffff;
|
93
|
-
color: #1e1c1c;
|
94
|
-
border: 1px solid gray;
|
95
|
-
border-radius: 10px;
|
96
|
-
padding: 10px;
|
97
|
-
min-height: 30px;
|
98
|
-
min-width: 120px;
|
99
|
-
font-size: 19px;
|
100
|
-
cursor: pointer;
|
101
|
-
}
|
102
|
-
|
103
|
-
.footer-button {
|
104
|
-
display: flex;
|
105
|
-
justify-content: space-between;
|
106
|
-
width: 97%;
|
107
|
-
margin-top: 14px;
|
108
|
-
}
|