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,125 +0,0 @@
|
|
1
|
-
import { h } from "@stencil/core";
|
2
|
-
import { MESSAGE_ERROR_INVALID_NUMBER } from "../../contants";
|
3
|
-
export class PhoneInputMask {
|
4
|
-
constructor() {
|
5
|
-
this.phone = '';
|
6
|
-
this.message = "";
|
7
|
-
this.initialValue = undefined;
|
8
|
-
this.disabled = undefined;
|
9
|
-
}
|
10
|
-
componentWillLoad() {
|
11
|
-
this.phone = this.initialValue;
|
12
|
-
}
|
13
|
-
formatPhone(value) {
|
14
|
-
const cleaned = value.replace(/\D/g, ''); // Remove tudo que não for número
|
15
|
-
const match = cleaned.match(/^(\d{0,2})(\d{0,5})(\d{0,4})$/);
|
16
|
-
if (!match)
|
17
|
-
return value;
|
18
|
-
const part1 = match[1] ? `(${match[1]}` : '';
|
19
|
-
const part2 = match[2] ? `) ${match[2]}` : '';
|
20
|
-
const part3 = match[3] ? ` ${match[3]}` : '';
|
21
|
-
return `${part1}${part2}${part3}`;
|
22
|
-
}
|
23
|
-
handleInput(event) {
|
24
|
-
const input = event.target;
|
25
|
-
this.phone = this.formatPhone(input.value);
|
26
|
-
if (!this.validatePhoneNumber(input.value)) {
|
27
|
-
this.message = MESSAGE_ERROR_INVALID_NUMBER;
|
28
|
-
}
|
29
|
-
else {
|
30
|
-
this.message = "";
|
31
|
-
}
|
32
|
-
console.log('phone', this.phone);
|
33
|
-
}
|
34
|
-
validatePhoneNumber(phone) {
|
35
|
-
if (phone.length < 15) {
|
36
|
-
return true;
|
37
|
-
}
|
38
|
-
const phoneRegex = /^\(\d{2}\) \d{5} \d{4}$/; // Valida formato (99) 99999-9999
|
39
|
-
return phoneRegex.test(phone);
|
40
|
-
}
|
41
|
-
async getPhone() {
|
42
|
-
return this.phone;
|
43
|
-
}
|
44
|
-
render() {
|
45
|
-
return (h("div", { key: '44d9a3f88829cdf269da2ea029ca81197a9ca31e' }, h("input", { key: '4af46e5c7eb38f108f3a3b58937b3b5560a0757d', disabled: this.disabled, id: "phone", type: "text", class: "phone-input-form", value: this.phone, onInput: (event) => this.handleInput(event), placeholder: "(99) 99999 9999" }), h("p", { key: '5058284a0a7bda9e750cbf4e1134fdc47c7de83e', class: "crm-erro-msg" }, this.message)));
|
46
|
-
}
|
47
|
-
static get is() { return "phone-input-mask"; }
|
48
|
-
static get encapsulation() { return "shadow"; }
|
49
|
-
static get originalStyleUrls() {
|
50
|
-
return {
|
51
|
-
"$": ["phone-input-mask.css"]
|
52
|
-
};
|
53
|
-
}
|
54
|
-
static get styleUrls() {
|
55
|
-
return {
|
56
|
-
"$": ["phone-input-mask.css"]
|
57
|
-
};
|
58
|
-
}
|
59
|
-
static get properties() {
|
60
|
-
return {
|
61
|
-
"initialValue": {
|
62
|
-
"type": "string",
|
63
|
-
"mutable": false,
|
64
|
-
"complexType": {
|
65
|
-
"original": "string",
|
66
|
-
"resolved": "string",
|
67
|
-
"references": {}
|
68
|
-
},
|
69
|
-
"required": false,
|
70
|
-
"optional": false,
|
71
|
-
"docs": {
|
72
|
-
"tags": [],
|
73
|
-
"text": ""
|
74
|
-
},
|
75
|
-
"attribute": "initial-value",
|
76
|
-
"reflect": false
|
77
|
-
},
|
78
|
-
"disabled": {
|
79
|
-
"type": "boolean",
|
80
|
-
"mutable": false,
|
81
|
-
"complexType": {
|
82
|
-
"original": "boolean",
|
83
|
-
"resolved": "boolean",
|
84
|
-
"references": {}
|
85
|
-
},
|
86
|
-
"required": false,
|
87
|
-
"optional": false,
|
88
|
-
"docs": {
|
89
|
-
"tags": [],
|
90
|
-
"text": ""
|
91
|
-
},
|
92
|
-
"attribute": "disabled",
|
93
|
-
"reflect": false
|
94
|
-
}
|
95
|
-
};
|
96
|
-
}
|
97
|
-
static get states() {
|
98
|
-
return {
|
99
|
-
"phone": {},
|
100
|
-
"message": {}
|
101
|
-
};
|
102
|
-
}
|
103
|
-
static get methods() {
|
104
|
-
return {
|
105
|
-
"getPhone": {
|
106
|
-
"complexType": {
|
107
|
-
"signature": "() => Promise<string>",
|
108
|
-
"parameters": [],
|
109
|
-
"references": {
|
110
|
-
"Promise": {
|
111
|
-
"location": "global",
|
112
|
-
"id": "global::Promise"
|
113
|
-
}
|
114
|
-
},
|
115
|
-
"return": "Promise<string>"
|
116
|
-
},
|
117
|
-
"docs": {
|
118
|
-
"text": "",
|
119
|
-
"tags": []
|
120
|
-
}
|
121
|
-
}
|
122
|
-
};
|
123
|
-
}
|
124
|
-
}
|
125
|
-
//# sourceMappingURL=phone-input-mask.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"phone-input-mask.js","sourceRoot":"","sources":["../../../../src/components/phone/phone-input-mask.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAO9D,MAAM,OAAO,cAAc;;qBACE,EAAE;uBACA,EAAE;;;;IAK7B,iBAAiB;QACb,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC;IACnC,CAAC;IAEO,WAAW,CAAC,KAAa;QAE7B,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,iCAAiC;QAC3E,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC;QAE7D,IAAI,CAAC,KAAK;YAAE,OAAO,KAAK,CAAC;QAEzB,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7C,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAE7C,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,EAAE,CAAC;IACtC,CAAC;IAEO,WAAW,CAAC,KAAY;QAC5B,MAAM,KAAK,GAAG,KAAK,CAAC,MAA0B,CAAC;QAC/C,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAE3C,IAAG,CAAC,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;YACxC,IAAI,CAAC,OAAO,GAAG,4BAA4B,CAAA;QAC/C,CAAC;aAAM,CAAC;YACJ,IAAI,CAAC,OAAO,GAAG,EAAE,CAAA;QACrB,CAAC;QAED,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,CAAA;IACpC,CAAC;IAED,mBAAmB,CAAC,KAAa;QAC7B,IAAG,KAAK,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;YACnB,OAAO,IAAI,CAAA;QACf,CAAC;QACD,MAAM,UAAU,GAAG,yBAAyB,CAAC,CAAC,iCAAiC;QAC/E,OAAO,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;IAGM,KAAK,CAAC,QAAQ;QACjB,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAED,MAAM;QACF,OAAO,CACH;YACI,8DACI,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,EAAE,EAAC,OAAO,EACV,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,kBAAkB,EACxB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,EAC3C,WAAW,EAAC,iBAAiB,GAC/B;YACF,0DAAG,KAAK,EAAC,cAAc,IAAE,IAAI,CAAC,OAAO,CAAK,CACxC,CAET,CAAC;IACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, h, Method, Prop, State } from '@stencil/core';\nimport { MESSAGE_ERROR_INVALID_NUMBER } from '../../contants';\n\n@Component({\n tag: 'phone-input-mask',\n styleUrl: 'phone-input-mask.css',\n shadow: true,\n})\nexport class PhoneInputMask {\n @State() phone: string = '';\n @State() message: string = \"\";\n\n @Prop() initialValue: string;\n @Prop() disabled: boolean;\n\n componentWillLoad() {\n this.phone = this.initialValue;\n }\n\n private formatPhone(value: string): string {\n\n const cleaned = value.replace(/\\D/g, ''); // Remove tudo que não for número\n const match = cleaned.match(/^(\\d{0,2})(\\d{0,5})(\\d{0,4})$/);\n\n if (!match) return value;\n\n const part1 = match[1] ? `(${match[1]}` : '';\n const part2 = match[2] ? `) ${match[2]}` : '';\n const part3 = match[3] ? ` ${match[3]}` : '';\n\n return `${part1}${part2}${part3}`;\n }\n\n private handleInput(event: Event): void {\n const input = event.target as HTMLInputElement;\n this.phone = this.formatPhone(input.value);\n\n if(!this.validatePhoneNumber(input.value)) {\n this.message = MESSAGE_ERROR_INVALID_NUMBER\n } else {\n this.message = \"\"\n }\n\n console.log('phone', this.phone)\n }\n\n validatePhoneNumber(phone: string): boolean {\n if(phone.length < 15) {\n return true\n }\n const phoneRegex = /^\\(\\d{2}\\) \\d{5} \\d{4}$/; // Valida formato (99) 99999-9999\n return phoneRegex.test(phone);\n }\n\n @Method()\n public async getPhone() {\n return this.phone;\n }\n\n render() {\n return (\n <div>\n <input\n disabled={this.disabled}\n id=\"phone\"\n type=\"text\"\n class=\"phone-input-form\"\n value={this.phone}\n onInput={(event) => this.handleInput(event)}\n placeholder=\"(99) 99999 9999\"\n />\n <p class=\"crm-erro-msg\">{this.message}</p>\n </div>\n\n );\n }\n}\n"]}
|
@@ -1,49 +0,0 @@
|
|
1
|
-
.crm-tooltip-container {
|
2
|
-
display: flex;
|
3
|
-
|
4
|
-
& img {
|
5
|
-
width: 16px;
|
6
|
-
margin-left: 3px;
|
7
|
-
position: relative;
|
8
|
-
}
|
9
|
-
}
|
10
|
-
|
11
|
-
.crm-tooltip {
|
12
|
-
position: relative;
|
13
|
-
display: inline-block;
|
14
|
-
}
|
15
|
-
|
16
|
-
.crm-tooltip .tooltiptext {
|
17
|
-
visibility: hidden;
|
18
|
-
background-color: black;
|
19
|
-
color: #fff;
|
20
|
-
text-align: center;
|
21
|
-
padding: 8px 12px;
|
22
|
-
border-radius: 0px;
|
23
|
-
position: absolute;
|
24
|
-
z-index: 1;
|
25
|
-
min-width: 271px;
|
26
|
-
top: 100%;
|
27
|
-
left: 50%;
|
28
|
-
margin-left: -238px;
|
29
|
-
}
|
30
|
-
|
31
|
-
@container (max-width: 410px) {
|
32
|
-
.crm-tooltip .tooltiptext {
|
33
|
-
margin-left: -14px;
|
34
|
-
}
|
35
|
-
|
36
|
-
.crm-tooltip #crm-role-description {
|
37
|
-
margin-left: -151px;
|
38
|
-
}
|
39
|
-
}
|
40
|
-
|
41
|
-
@container (max-width: 250px) {
|
42
|
-
.crm-tooltip .tooltiptext {
|
43
|
-
margin-left: -201px;
|
44
|
-
}
|
45
|
-
}
|
46
|
-
|
47
|
-
.crm-tooltip:hover .tooltiptext {
|
48
|
-
visibility: visible;
|
49
|
-
}
|
@@ -1,61 +0,0 @@
|
|
1
|
-
import { h } from "@stencil/core";
|
2
|
-
import info from "../../assets/svg/info-circle-svgrepo-com.svg";
|
3
|
-
export class Tooltip {
|
4
|
-
constructor() {
|
5
|
-
this.text = undefined;
|
6
|
-
this.identity = undefined;
|
7
|
-
}
|
8
|
-
render() {
|
9
|
-
return (h("div", { key: 'e5adedc85f8db34ef347ee41b804f97e254b1692', class: "crm-tooltip-container crm-tooltip" }, h("img", { key: '76bd6d6aa860c81ba748cd92d1ee42de48140b56', src: info }), h("span", { key: 'ca2ce50e7ba71165c244de210200275eb705bf9c', id: this.identity, class: "tooltiptext" }, this.text)));
|
10
|
-
}
|
11
|
-
static get is() { return "crm-tooltip"; }
|
12
|
-
static get originalStyleUrls() {
|
13
|
-
return {
|
14
|
-
"$": ["crm-tooltip.css"]
|
15
|
-
};
|
16
|
-
}
|
17
|
-
static get styleUrls() {
|
18
|
-
return {
|
19
|
-
"$": ["crm-tooltip.css"]
|
20
|
-
};
|
21
|
-
}
|
22
|
-
static get properties() {
|
23
|
-
return {
|
24
|
-
"text": {
|
25
|
-
"type": "string",
|
26
|
-
"mutable": false,
|
27
|
-
"complexType": {
|
28
|
-
"original": "string",
|
29
|
-
"resolved": "string",
|
30
|
-
"references": {}
|
31
|
-
},
|
32
|
-
"required": false,
|
33
|
-
"optional": false,
|
34
|
-
"docs": {
|
35
|
-
"tags": [],
|
36
|
-
"text": ""
|
37
|
-
},
|
38
|
-
"attribute": "text",
|
39
|
-
"reflect": false
|
40
|
-
},
|
41
|
-
"identity": {
|
42
|
-
"type": "string",
|
43
|
-
"mutable": false,
|
44
|
-
"complexType": {
|
45
|
-
"original": "string",
|
46
|
-
"resolved": "string",
|
47
|
-
"references": {}
|
48
|
-
},
|
49
|
-
"required": false,
|
50
|
-
"optional": false,
|
51
|
-
"docs": {
|
52
|
-
"tags": [],
|
53
|
-
"text": ""
|
54
|
-
},
|
55
|
-
"attribute": "identity",
|
56
|
-
"reflect": false
|
57
|
-
}
|
58
|
-
};
|
59
|
-
}
|
60
|
-
}
|
61
|
-
//# sourceMappingURL=tooltip.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../../../src/components/tooltip/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,IAAI,MAAM,8CAA8C,CAAC;AAOhE,MAAM,OAAO,OAAO;;;;;IAKhB,MAAM;QACF,OAAO,CACH,4DAAK,KAAK,EAAC,mCAAmC;YAC1C,4DAAK,GAAG,EAAE,IAAI,GAAI;YAClB,6DAAM,EAAE,EAAE,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAC,aAAa,IAAE,IAAI,CAAC,IAAI,CAAQ,CAC7D,CACT,CAAC;IACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, h, Prop } from \"@stencil/core\";\nimport info from '../../assets/svg/info-circle-svgrepo-com.svg';\n\n\n@Component({\n tag: 'crm-tooltip',\n styleUrl: 'crm-tooltip.css'\n})\nexport class Tooltip {\n\n @Prop() text: string;\n @Prop() identity: string;\n\n render() {\n return (\n <div class=\"crm-tooltip-container crm-tooltip\">\n <img src={info} />\n <span id={this.identity} class=\"tooltiptext\">{this.text}</span>\n </div>\n );\n }\n}"]}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
export var StepFormEnum;
|
2
|
-
(function (StepFormEnum) {
|
3
|
-
StepFormEnum[StepFormEnum["STEP_NAME"] = 0] = "STEP_NAME";
|
4
|
-
StepFormEnum[StepFormEnum["STEP_PHONE"] = 1] = "STEP_PHONE";
|
5
|
-
StepFormEnum[StepFormEnum["STEP_PIN"] = 2] = "STEP_PIN";
|
6
|
-
StepFormEnum[StepFormEnum["STEP_RESERVE"] = 3] = "STEP_RESERVE";
|
7
|
-
StepFormEnum[StepFormEnum["STEP_APPLY"] = 4] = "STEP_APPLY";
|
8
|
-
StepFormEnum[StepFormEnum["STEP_NO_BONUS"] = 5] = "STEP_NO_BONUS";
|
9
|
-
})(StepFormEnum || (StepFormEnum = {}));
|
10
|
-
export const MESSAGE_ERROR_INVALID_NUMBER = "Número inválido";
|
11
|
-
export var StatusGiftBackProcess;
|
12
|
-
(function (StatusGiftBackProcess) {
|
13
|
-
StatusGiftBackProcess["VALIDATE"] = "validate";
|
14
|
-
StatusGiftBackProcess["NO_BONUS"] = "no_bonus";
|
15
|
-
})(StatusGiftBackProcess || (StatusGiftBackProcess = {}));
|
16
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/contants/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,YAOX;AAPD,WAAY,YAAY;IACpB,yDAAa,CAAA;IACb,2DAAc,CAAA;IACd,uDAAY,CAAA;IACZ,+DAAgB,CAAA;IAChB,2DAAc,CAAA;IACd,iEAAiB,CAAA;AACrB,CAAC,EAPW,YAAY,KAAZ,YAAY,QAOvB;AAED,MAAM,CAAC,MAAM,4BAA4B,GAAE,iBAAiB,CAAA;AAG5D,MAAM,CAAN,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,8CAAqB,CAAA;IACrB,8CAAqB,CAAA;AACzB,CAAC,EAHW,qBAAqB,KAArB,qBAAqB,QAGhC","sourcesContent":["export enum StepFormEnum {\n STEP_NAME = 0,\n STEP_PHONE = 1,\n STEP_PIN = 2,\n STEP_RESERVE = 3,\n STEP_APPLY = 4,\n STEP_NO_BONUS = 5\n}\n\nexport const MESSAGE_ERROR_INVALID_NUMBER= \"Número inválido\"\n\n\nexport enum StatusGiftBackProcess {\n VALIDATE = \"validate\",\n NO_BONUS = \"no_bonus\"\n}"]}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
export const RESPONSE_CONSULTA_BONUS = {
|
2
|
-
data: {
|
3
|
-
"hasBonus": true,
|
4
|
-
"bonusBalance": 9.89,
|
5
|
-
"totalBonus": 9.89,
|
6
|
-
"minimumPurchase": 39.56,
|
7
|
-
"bonusIds": "848785416",
|
8
|
-
"history": [
|
9
|
-
{
|
10
|
-
"validityStart": "2024-11-12 00:00:00",
|
11
|
-
"validityEnd": "2024-12-12 23:59:59",
|
12
|
-
"value": 0
|
13
|
-
},
|
14
|
-
{
|
15
|
-
"validityStart": "2024-11-20 00:00:00",
|
16
|
-
"validityEnd": "2024-12-20 23:59:59",
|
17
|
-
"value": 9.89
|
18
|
-
}
|
19
|
-
],
|
20
|
-
"storeId": 100932,
|
21
|
-
"userId": 27047371,
|
22
|
-
"cartId": "7be29cd3-f602-4cb8-bdb8-02f7cdef6fee",
|
23
|
-
"calculatedValue": 2200,
|
24
|
-
"totalValue": 2200,
|
25
|
-
firstValidityDate: "2024-11-20 00:00:00",
|
26
|
-
}
|
27
|
-
};
|
28
|
-
//# sourceMappingURL=mocks.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"mocks.js","sourceRoot":"","sources":["../../../src/contants/mocks.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,IAAI,EAAG;QACH,UAAU,EAAE,IAAI;QAChB,cAAc,EAAE,IAAI;QACpB,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,KAAK;QACxB,UAAU,EAAE,WAAW;QACvB,SAAS,EAAE;YACP;gBACI,eAAe,EAAE,qBAAqB;gBACtC,aAAa,EAAE,qBAAqB;gBACpC,OAAO,EAAE,CAAC;aACb;YACD;gBACI,eAAe,EAAE,qBAAqB;gBACtC,aAAa,EAAE,qBAAqB;gBACpC,OAAO,EAAE,IAAI;aAChB;SACJ;QACD,SAAS,EAAE,MAAM;QACjB,QAAQ,EAAE,QAAQ;QAClB,QAAQ,EAAE,sCAAsC;QAChD,iBAAiB,EAAE,IAAI;QACvB,YAAY,EAAE,IAAI;QAClB,iBAAiB,EAAE,qBAAqB;KACjC;CACd,CAAA","sourcesContent":["import { IBonus } from \"../components\";\n\nexport const RESPONSE_CONSULTA_BONUS = {\n data: {\n \"hasBonus\": true,\n \"bonusBalance\": 9.89,\n \"totalBonus\": 9.89,\n \"minimumPurchase\": 39.56,\n \"bonusIds\": \"848785416\",\n \"history\": [\n {\n \"validityStart\": \"2024-11-12 00:00:00\",\n \"validityEnd\": \"2024-12-12 23:59:59\",\n \"value\": 0\n },\n {\n \"validityStart\": \"2024-11-20 00:00:00\",\n \"validityEnd\": \"2024-12-20 23:59:59\",\n \"value\": 9.89\n }\n ],\n \"storeId\": 100932,\n \"userId\": 27047371,\n \"cartId\": \"7be29cd3-f602-4cb8-bdb8-02f7cdef6fee\",\n \"calculatedValue\": 2200,\n \"totalValue\": 2200,\n firstValidityDate: \"2024-11-20 00:00:00\",\n } as IBonus\n}"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"pin.sent.js","sourceRoot":"","sources":["../../../src/dto/pin.sent.ts"],"names":[],"mappings":"","sourcesContent":["export interface IPinSent {\n storeId: number;\n userId: number;\n}"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"update.order.dto.js","sourceRoot":"","sources":["../../../src/dto/update.order.dto.ts"],"names":[],"mappings":"","sourcesContent":["export interface UpdateOrderDTO {\n cartId: string;\n orderId: number;\n cartIdCrm: string;\n}"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"validate.pin.bonus.js","sourceRoot":"","sources":["../../../src/dto/validate.pin.bonus.ts"],"names":[],"mappings":"AAQA,MAAM,CAAN,IAAY,eAEX;AAFD,WAAY,eAAe;IACvB,iCAAc,CAAA;AAClB,CAAC,EAFW,eAAe,KAAf,eAAe,QAE1B","sourcesContent":["export interface IProduct {\n productVariantId: string;\n sku: string;\n value: number;\n quantity: number;\n discount: number;\n}\n\nexport enum AjustesTipoEnum {\n P = \"Promocao\" \n}\n\nexport interface IAjustes {\n Tipo: AjustesTipoEnum;\n Valor: number;\n}\n\nexport interface IUser {\n id: number;\n}\n\nexport interface IStore {\n name: string;\n}\n\nexport interface IProductWake {\n ProdutoVarianteId: number;\n SKU: string;\n PrecoPor: number;\n Quantidade: number;\n Ajustes: IAjustes[];\n}\n\nexport interface ICustomer {\n birthDate: string;\n document: string;\n name: string;\n phone: string;\n}\n\nexport interface IProccesPinBonusDto {\n storeName: string;\n name: string;\n checkoutId: string;\n checkoutProducts: Array<IProduct>;\n storeId: string;\n userId: string;\n cellphone: number;\n pin: string;\n\n}\n\nexport interface IBonus {\n hasBonus: boolean;\n bonusBalance: number;\n totalBonus: number;\n minimumPurchase: number;\n bonusIds: string;\n firstValidityDate: string\n history: [\n {\n validityStart: string;\n validityEnd: string;\n value: number\n },\n {\n validityStart: string;\n validityEnd: string\n value: number\n }\n ]\n storeId: number;\n userId: number;\n cartId: string\n calculatedValue: number;\n totalValue: number\n}\n\n\nexport interface IReserveDTO {\n storeName: string;\n cartId: string;\n grossValue: number;\n redeemedBonus: number;\n ticket: string;\n storeId: string;\n userId: number;\n}"]}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import { AjustesTipoEnum } from "../dto/validate.pin.bonus";
|
2
|
-
export function buildProductsByWake(productsWake = []) {
|
3
|
-
const products = [];
|
4
|
-
for (const pw of productsWake) {
|
5
|
-
let discounts = getDiscount(pw.Ajustes);
|
6
|
-
products.push({
|
7
|
-
sku: pw.SKU,
|
8
|
-
value: (pw.PrecoPor * pw.Quantidade),
|
9
|
-
productVariantId: pw.ProdutoVarianteId.toString(),
|
10
|
-
quantity: pw.Quantidade,
|
11
|
-
discount: (discounts * -1)
|
12
|
-
});
|
13
|
-
}
|
14
|
-
return products;
|
15
|
-
}
|
16
|
-
function getDiscount(ajustes = []) {
|
17
|
-
let discounts = 0;
|
18
|
-
for (const discount of ajustes) {
|
19
|
-
if (discount.Tipo === AjustesTipoEnum.P) {
|
20
|
-
discounts += discount.Valor;
|
21
|
-
}
|
22
|
-
}
|
23
|
-
return discounts;
|
24
|
-
}
|
25
|
-
//# sourceMappingURL=build.payload.helper.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"build.payload.helper.js","sourceRoot":"","sources":["../../../src/helpers/build.payload.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAoC,MAAM,2BAA2B,CAAC;AAE9F,MAAM,UAAU,mBAAmB,CAAC,eAAoC,EAAE;IAEtE,MAAM,QAAQ,GAAoB,EAAE,CAAC;IAErC,KAAM,MAAM,EAAE,IAAI,YAAY,EAAG,CAAC;QAC9B,IAAI,SAAS,GAAG,WAAW,CAAC,EAAE,CAAC,OAAO,CAAC,CAAA;QAEvC,QAAQ,CAAC,IAAI,CACT;YACI,GAAG,EAAE,EAAE,CAAC,GAAG;YACX,KAAK,EAAE,CAAC,EAAE,CAAC,QAAQ,GAAG,EAAE,CAAC,UAAU,CAAC;YACpC,gBAAgB,EAAE,EAAE,CAAC,iBAAiB,CAAC,QAAQ,EAAE;YACjD,QAAQ,EAAE,EAAE,CAAC,UAAU;YACvB,QAAQ,EAAE,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;SAC7B,CACJ,CAAA;IACL,CAAC;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC;AAED,SAAS,WAAW,CAAC,UAAsB,EAAE;IAEzC,IAAI,SAAS,GAAG,CAAC,CAAC;IAElB,KAAI,MAAM,QAAQ,IAAI,OAAO,EAAE,CAAC;QAC5B,IAAG,QAAQ,CAAC,IAAI,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC;YACrC,SAAS,IAAI,QAAQ,CAAC,KAAK,CAAC;QAChC,CAAC;IACL,CAAC;IAED,OAAO,SAAS,CAAC;AACrB,CAAC","sourcesContent":["import { AjustesTipoEnum, IAjustes, IProduct, IProductWake } from \"../dto/validate.pin.bonus\";\n\nexport function buildProductsByWake(productsWake: Array<IProductWake> = []): Array<IProduct> {\n\n const products: Array<IProduct> = [];\n\n for ( const pw of productsWake ) {\n let discounts = getDiscount(pw.Ajustes)\n\n products.push(\n {\n sku: pw.SKU,\n value: (pw.PrecoPor * pw.Quantidade),\n productVariantId: pw.ProdutoVarianteId.toString(),\n quantity: pw.Quantidade,\n discount: (discounts * -1)\n }\n )\n }\n\n return products;\n}\n\nfunction getDiscount(ajustes: IAjustes[] = []) {\n \n let discounts = 0;\n \n for(const discount of ajustes) {\n if(discount.Tipo === AjustesTipoEnum.P) {\n discounts += discount.Valor;\n }\n }\n\n return discounts;\n}"]}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { CartWake } from "../objectvalues/cart.wake";
|
2
|
-
import { CrmBonusService } from "../services/crmbonus.service";
|
3
|
-
const crmBonusService = CrmBonusService.getInstance();
|
4
|
-
export const getCart = async () => {
|
5
|
-
const baseUrl = buildUrlBase(); // window.location.origin; //"https://bycoders.fbits.store" //window.location.origin;
|
6
|
-
console.log('[URL STORE]: ', baseUrl);
|
7
|
-
const cart = await crmBonusService.getInfoCart(baseUrl);
|
8
|
-
return new CartWake(cart);
|
9
|
-
};
|
10
|
-
const buildUrlBase = () => {
|
11
|
-
const url = window.location.origin; //"https://bycoders.checkout.fbits.store" //
|
12
|
-
if (url.includes('checkout')) {
|
13
|
-
return url;
|
14
|
-
}
|
15
|
-
if (url.includes('fbits')) {
|
16
|
-
return url;
|
17
|
-
}
|
18
|
-
return `${window.location.protocol}//checkout.${window.location.host}`;
|
19
|
-
};
|
20
|
-
//# sourceMappingURL=cart.helper.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"cart.helper.js","sourceRoot":"","sources":["../../../src/helpers/cart.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,MAAM,eAAe,GAAoB,eAAe,CAAC,WAAW,EAAE,CAAC;AAEvE,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,IAAuB,EAAE;IACjD,MAAM,OAAO,GAAG,YAAY,EAAE,CAAC,CAAC,qFAAqF;IAErH,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,OAAO,CAAC,CAAA;IAErC,MAAM,IAAI,GAAG,MAAM,eAAe,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAExD,OAAO,IAAI,QAAQ,CAAC,IAAI,CAAC,CAAA;AAC7B,CAAC,CAAA;AAED,MAAM,YAAY,GAAG,GAAG,EAAE;IAEtB,MAAM,GAAG,GAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,4CAA4C;IAEjF,IAAG,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;QAC1B,OAAO,GAAG,CAAC;IACf,CAAC;IAED,IAAG,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;QACvB,OAAO,GAAG,CAAC;IACf,CAAC;IAED,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,cAAc,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;AAE3E,CAAC,CAAA","sourcesContent":["import { CartWake } from \"../objectvalues/cart.wake\";\nimport { CrmBonusService } from \"../services/crmbonus.service\";\n\nconst crmBonusService: CrmBonusService = CrmBonusService.getInstance();\n\nexport const getCart = async (): Promise<CartWake> => {\n const baseUrl = buildUrlBase(); // window.location.origin; //\"https://bycoders.fbits.store\" //window.location.origin;\n \n console.log('[URL STORE]: ', baseUrl)\n\n const cart = await crmBonusService.getInfoCart(baseUrl);\n\n return new CartWake(cart)\n}\n\nconst buildUrlBase = () => {\n\n const url = window.location.origin; //\"https://bycoders.checkout.fbits.store\" //\n\n if(url.includes('checkout')) {\n return url;\n }\n\n if(url.includes('fbits')) {\n return url;\n }\n\n return `${window.location.protocol}//checkout.${window.location.host}`;\n\n}"]}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
export function getInfoCustomization(storeName) {
|
2
|
-
const infos = localStorage.getItem(`bc:${storeName}`);
|
3
|
-
if (infos)
|
4
|
-
return JSON.parse(infos);
|
5
|
-
return {
|
6
|
-
btnApplyBonusLabel: "Avançar",
|
7
|
-
confirmationMessage: "",
|
8
|
-
giftbackTitle: "Giftback"
|
9
|
-
};
|
10
|
-
}
|
11
|
-
//# sourceMappingURL=info.config.helper.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"info.config.helper.js","sourceRoot":"","sources":["../../../src/helpers/info.config.helper.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,oBAAoB,CAAC,SAAiB;IAClD,MAAM,KAAK,GAAG,YAAY,CAAC,OAAO,CAAC,MAAM,SAAS,EAAE,CAAC,CAAC;IAEtD,IAAI,KAAK;QACL,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;IAE5B,OAAO;QACH,kBAAkB,EAAE,SAAS;QAC7B,mBAAmB,EAAE,EAAE;QACvB,aAAa,EAAE,UAAU;KAC5B,CAAA;AAEL,CAAC","sourcesContent":["export interface IInfoStore {\n btnApplyBonusLabel: string;\n confirmationMessage: string;\n giftbackTitle: string;\n}\n\n\nexport function getInfoCustomization(storeName: string): IInfoStore {\n const infos = localStorage.getItem(`bc:${storeName}`);\n\n if (infos)\n return JSON.parse(infos)\n\n return {\n btnApplyBonusLabel: \"Avançar\",\n confirmationMessage: \"\",\n giftbackTitle: \"Giftback\"\n }\n\n}"]}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
export function setTime() {
|
2
|
-
if (localStorage.getItem("bc:time-allow")) {
|
3
|
-
return;
|
4
|
-
}
|
5
|
-
const time = localStorage.getItem("bc:time");
|
6
|
-
if (!time) {
|
7
|
-
localStorage.setItem("bc:time", "360");
|
8
|
-
localStorage.setItem("bc:time-allow", "true");
|
9
|
-
return;
|
10
|
-
}
|
11
|
-
}
|
12
|
-
//# sourceMappingURL=time.helper.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"time.helper.js","sourceRoot":"","sources":["../../../src/helpers/time.helper.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,OAAO;IAEnB,IAAG,YAAY,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC;QACvC,OAAM;IACV,CAAC;IAED,MAAM,IAAI,GAAG,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAE7C,IAAG,CAAC,IAAI,EAAE,CAAC;QACP,YAAY,CAAC,OAAO,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QACvC,YAAY,CAAC,OAAO,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;QAC9C,OAAM;IACV,CAAC;AACL,CAAC","sourcesContent":["export function setTime() {\n\n if(localStorage.getItem(\"bc:time-allow\")) {\n return\n }\n\n const time = localStorage.getItem(\"bc:time\");\n\n if(!time) {\n localStorage.setItem(\"bc:time\", \"360\");\n localStorage.setItem(\"bc:time-allow\", \"true\");\n return\n } \n}"]}
|
@@ -1,35 +0,0 @@
|
|
1
|
-
import i18next from "i18next";
|
2
|
-
i18next.init({
|
3
|
-
lng: 'pt', // Idioma padrão
|
4
|
-
fallbackLng: 'en', // Idioma de fallback
|
5
|
-
interpolation: {
|
6
|
-
escapeValue: false
|
7
|
-
},
|
8
|
-
resources: {
|
9
|
-
en: {
|
10
|
-
translation: {
|
11
|
-
welcome: "Welcome",
|
12
|
-
description: "This is an example",
|
13
|
-
'pin-sutitle': "Enter the 4-digit code sent via SMS to the number"
|
14
|
-
},
|
15
|
-
},
|
16
|
-
pt: {
|
17
|
-
translation: {
|
18
|
-
edit: "Editar",
|
19
|
-
welcome: "Bem-vindo",
|
20
|
-
description: "Este é um exemplo",
|
21
|
-
'pin-sutitle': "Digite o código de 4 dígitos enviado por SMS ao número",
|
22
|
-
giftDescription: "Você tem até <strong>R$ {{amount}}</strong> de {{custom_name}}",
|
23
|
-
noGiftback: "Você não possui {{storename}} disponível para essa compra.",
|
24
|
-
noBonus: "Não há {{giftbackname}} disponível para essa compra.",
|
25
|
-
withApplyBonus: "{{giftbackname}} aplicado ao pedido: ",
|
26
|
-
maxAmount: "Você atingiu o valor máximo!",
|
27
|
-
labelamountPartial: "Ao utilizar um valor parcial, você perderá a quantia restante.",
|
28
|
-
labelUseGiftback: "Regra de utilização: Valor mínimo de compra de {{minimumPurchase}} reais para usar 100% do Giftback, válido até {{expírationDate}}",
|
29
|
-
backCart: "Retorne ao carrinho e verifique se há descontos disponíveis nessa compra"
|
30
|
-
},
|
31
|
-
},
|
32
|
-
},
|
33
|
-
});
|
34
|
-
export default i18next;
|
35
|
-
//# sourceMappingURL=i18n.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../../src/i18n/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,OAAO,CAAC,IAAI,CAAC;IACX,GAAG,EAAE,IAAI,EAAE,gBAAgB;IAC3B,WAAW,EAAE,IAAI,EAAE,qBAAqB;IACxC,aAAa,EAAE;QACb,WAAW,EAAE,KAAK;KACnB;IACD,SAAS,EAAE;QACT,EAAE,EAAE;YACF,WAAW,EAAE;gBACX,OAAO,EAAE,SAAS;gBAClB,WAAW,EAAE,oBAAoB;gBACjC,aAAa,EAAE,mDAAmD;aACnE;SACF;QACD,EAAE,EAAE;YACF,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,WAAW;gBACpB,WAAW,EAAE,mBAAmB;gBAChC,aAAa,EAAE,wDAAwD;gBACvE,eAAe,EAAE,gEAAgE;gBACjF,UAAU,EAAE,4DAA4D;gBACxE,OAAO,EAAE,sDAAsD;gBAC/D,cAAc,EAAE,uCAAuC;gBACvD,SAAS,EAAE,8BAA8B;gBACzC,kBAAkB,EAAE,gEAAgE;gBACpF,gBAAgB,EAAE,oIAAoI;gBACtJ,QAAQ,EAAE,0EAA0E;aACrF;SACF;KACF;CACF,CAAC,CAAC;AAEH,eAAe,OAAO,CAAC","sourcesContent":["import i18next from 'i18next';\n\ni18next.init({\n lng: 'pt', // Idioma padrão\n fallbackLng: 'en', // Idioma de fallback\n interpolation: {\n escapeValue: false\n },\n resources: {\n en: {\n translation: {\n welcome: \"Welcome\",\n description: \"This is an example\",\n 'pin-sutitle': \"Enter the 4-digit code sent via SMS to the number\"\n },\n },\n pt: {\n translation: {\n edit: \"Editar\",\n welcome: \"Bem-vindo\",\n description: \"Este é um exemplo\",\n 'pin-sutitle': \"Digite o código de 4 dígitos enviado por SMS ao número\",\n giftDescription: \"Você tem até <strong>R$ {{amount}}</strong> de {{custom_name}}\",\n noGiftback: \"Você não possui {{storename}} disponível para essa compra.\",\n noBonus: \"Não há {{giftbackname}} disponível para essa compra.\",\n withApplyBonus: \"{{giftbackname}} aplicado ao pedido: \",\n maxAmount: \"Você atingiu o valor máximo!\",\n labelamountPartial: \"Ao utilizar um valor parcial, você perderá a quantia restante.\",\n labelUseGiftback: \"Regra de utilização: Valor mínimo de compra de {{minimumPurchase}} reais para usar 100% do Giftback, válido até {{expírationDate}}\",\n backCart: \"Retorne ao carrinho e verifique se há descontos disponíveis nessa compra\"\n },\n },\n },\n});\n\nexport default i18next;\n"]}
|
package/dist/collection/index.js
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @fileoverview entry point for your component library
|
3
|
-
*
|
4
|
-
* This is the entry point for your component library. Use this file to export utilities,
|
5
|
-
* constants or data structure that accompany your components.
|
6
|
-
*
|
7
|
-
* DO NOT use this file to export your components. Instead, use the recommended approaches
|
8
|
-
* to consume components of this package as outlined in the `README.md`.
|
9
|
-
*/
|
10
|
-
export { format } from './utils/utils';
|
11
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC","sourcesContent":["/**\n * @fileoverview entry point for your component library\n *\n * This is the entry point for your component library. Use this file to export utilities,\n * constants or data structure that accompany your components.\n *\n * DO NOT use this file to export your components. Instead, use the recommended approaches\n * to consume components of this package as outlined in the `README.md`.\n */\n\nexport { format } from './utils/utils';\nexport type * from './components.d.ts';\n"]}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
export class CartWake {
|
2
|
-
constructor(cart) {
|
3
|
-
var _a;
|
4
|
-
this.products = [];
|
5
|
-
this.id = cart.Metadados.id || cart.Id;
|
6
|
-
this.middlewareId = (_a = cart.Metadados) === null || _a === void 0 ? void 0 : _a.id;
|
7
|
-
this.orderId = cart.PedidoId;
|
8
|
-
this.buildUserInfo(cart);
|
9
|
-
this.buildStoreInfo(cart);
|
10
|
-
this.products = cart.Produtos;
|
11
|
-
}
|
12
|
-
buildUserInfo(cart) {
|
13
|
-
this.user = {
|
14
|
-
id: cart.Usuario ? cart.Usuario.Id : null
|
15
|
-
};
|
16
|
-
}
|
17
|
-
buildStoreInfo(cart) {
|
18
|
-
var _a;
|
19
|
-
this.store = {
|
20
|
-
name: (_a = cart.Loja) === null || _a === void 0 ? void 0 : _a.Nome
|
21
|
-
};
|
22
|
-
}
|
23
|
-
}
|
24
|
-
//# sourceMappingURL=cart.wake.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"cart.wake.js","sourceRoot":"","sources":["../../../src/objectvalues/cart.wake.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,QAAQ;IAQjB,YAAY,IAAI;;QAJhB,aAAQ,GAAmB,EAAE,CAAC;QAK1B,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,IAAI,CAAC,EAAE,CAAC;QACvC,IAAI,CAAC,YAAY,GAAG,MAAA,IAAI,CAAC,SAAS,0CAAE,EAAE,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC7B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QACzB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAC1B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAA;IACjC,CAAC;IAEO,aAAa,CAAC,IAAI;QACtB,IAAI,CAAC,IAAI,GAAG;YACR,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI;SAC5C,CAAA;IACL,CAAC;IAEO,cAAc,CAAC,IAAI;;QACvB,IAAI,CAAC,KAAK,GAAG;YACT,IAAI,EAAE,MAAA,IAAI,CAAC,IAAI,0CAAE,IAAI;SACxB,CAAA;IACL,CAAC;CACJ","sourcesContent":["import { IProductWake, IStore, IUser } from \"../dto/validate.pin.bonus\";\n\nexport class CartWake {\n id: string;\n middlewareId: string;\n orderId: number;\n products: IProductWake[] = [];\n user: IUser;\n store: IStore;\n\n constructor(cart) {\n this.id = cart.Metadados.id || cart.Id;\n this.middlewareId = cart.Metadados?.id;\n this.orderId = cart.PedidoId;\n this.buildUserInfo(cart);\n this.buildStoreInfo(cart);\n this.products = cart.Produtos\n }\n\n private buildUserInfo(cart) {\n this.user = {\n id: cart.Usuario ? cart.Usuario.Id : null\n }\n }\n\n private buildStoreInfo(cart) {\n this.store = {\n name: cart.Loja?.Nome\n }\n }\n}"]}
|