crmbonus-component-wake 2.0.49 → 2.0.51
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 +3 -4
- package/dist/crmbonus-component-wake/app-modal.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/countdown-timer.entry.js +30 -0
- package/dist/crmbonus-component-wake/countdown-timer.entry.js.map +1 -0
- package/dist/{esm → crmbonus-component-wake}/crm-bonus-form.entry.js +4 -5
- package/dist/crmbonus-component-wake/crm-bonus-form.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/crm-bonus-note.entry.js +48 -0
- package/dist/crmbonus-component-wake/crm-bonus-note.entry.js.map +1 -0
- package/dist/{esm → crmbonus-component-wake}/crm-bonus.entry.js +7 -6
- package/dist/crmbonus-component-wake/crm-bonus.entry.js.map +1 -0
- package/dist/{esm → crmbonus-component-wake}/crm-button.entry.js +4 -4
- package/dist/crmbonus-component-wake/crm-button.entry.js.map +1 -0
- package/dist/{esm → crmbonus-component-wake}/crm-giftback-form.entry.js +12 -11
- package/dist/crmbonus-component-wake/crm-giftback-form.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-a846150c.js → crmbonus-component-wake/crmbonus.service-0e166281.js} +167 -92
- package/dist/crmbonus-component-wake/crmbonus.service-0e166281.js.map +1 -0
- package/dist/{components/p-384fabf7.js → crmbonus-component-wake/crmbonus.service-98a7bcf0.js} +167 -92
- package/dist/crmbonus-component-wake/crmbonus.service-98a7bcf0.js.map +1 -0
- package/dist/crmbonus-component-wake/giftback-finish.entry.js +19 -0
- package/dist/crmbonus-component-wake/giftback-finish.entry.js.map +1 -0
- package/dist/{components/p-0a57e57f.js → crmbonus-component-wake/giftback-info.entry.js} +13 -36
- package/dist/crmbonus-component-wake/giftback-info.entry.js.map +1 -0
- package/dist/{components/p-4f18f4c0.js → crmbonus-component-wake/giftback-pin.entry.js} +9 -39
- package/dist/crmbonus-component-wake/giftback-pin.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/giftback-progress.entry.js +40 -0
- package/dist/crmbonus-component-wake/giftback-progress.entry.js.map +1 -0
- package/dist/{esm/i18n-853fedb3.js → crmbonus-component-wake/i18n-a17a0837.js} +17 -2
- package/dist/{esm/i18n-853fedb3.js.map → crmbonus-component-wake/i18n-a17a0837.js.map} +1 -1
- package/dist/crmbonus-component-wake/index-bdc90e13.js +3039 -0
- package/dist/crmbonus-component-wake/index-bdc90e13.js.map +1 -0
- package/dist/crmbonus-component-wake/index.esm.js +16 -1
- package/dist/crmbonus-component-wake/index.esm.js.map +1 -1
- package/dist/{esm → crmbonus-component-wake}/loading-spinner.entry.js +3 -4
- package/dist/crmbonus-component-wake/loading-spinner.entry.js.map +1 -0
- package/dist/{components/p-a30bd6b1.js → crmbonus-component-wake/name-input.entry.js} +9 -38
- package/dist/crmbonus-component-wake/name-input.entry.js.map +1 -0
- package/dist/{esm → crmbonus-component-wake}/pedido-finalizado.entry.js +3 -3
- package/dist/crmbonus-component-wake/pedido-finalizado.entry.js.map +1 -0
- package/dist/{esm → crmbonus-component-wake}/phone-cancel-input.entry.js +2 -2
- package/dist/crmbonus-component-wake/phone-cancel-input.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/phone-form.entry.js +26 -0
- package/dist/crmbonus-component-wake/phone-form.entry.js.map +1 -0
- package/dist/{esm → crmbonus-component-wake}/phone-input-mask.entry.js +6 -4
- package/dist/{cjs/phone-input-mask.cjs.entry.js.map → crmbonus-component-wake/phone-input-mask.entry.js.map} +1 -1
- package/dist/{esm → crmbonus-component-wake}/phone-input.entry.js +2 -2
- package/dist/crmbonus-component-wake/phone-input.entry.js.map +1 -0
- package/dist/{components/p-5dfa24e0.js → crmbonus-component-wake/pin-form.entry.js} +13 -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/types/components/button/index.d.ts +1 -0
- package/dist/types/components/giftback-form/subcomponents/phone-form/phone-form.d.ts +2 -0
- package/dist/types/components/giftback-form/subcomponents/pin-form/pin-form.d.ts +2 -0
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
- 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/countdown-timer_4.cjs.entry.js +0 -176
- package/dist/cjs/countdown-timer_4.cjs.entry.js.map +0 -1
- package/dist/cjs/crm-bonus-form.cjs.entry.js +0 -103
- package/dist/cjs/crm-bonus-form.cjs.entry.js.map +0 -1
- package/dist/cjs/crm-bonus-note.cjs.entry.js +0 -52
- package/dist/cjs/crm-bonus-note.cjs.entry.js.map +0 -1
- package/dist/cjs/crm-bonus.cjs.entry.js +0 -204
- package/dist/cjs/crm-bonus.cjs.entry.js.map +0 -1
- package/dist/cjs/crm-button.cjs.entry.js +0 -24
- package/dist/cjs/crm-button.cjs.entry.js.map +0 -1
- package/dist/cjs/crm-giftback-form.cjs.entry.js +0 -171
- package/dist/cjs/crm-giftback-form.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-7991795d.js +0 -3852
- package/dist/cjs/crmbonus.service-7991795d.js.map +0 -1
- package/dist/cjs/giftback-finish_4.cjs.entry.js +0 -132
- package/dist/cjs/giftback-finish_4.cjs.entry.js.map +0 -1
- package/dist/cjs/i18n-818275e6.js +0 -2209
- package/dist/cjs/i18n-818275e6.js.map +0 -1
- package/dist/cjs/index-80419303.js +0 -1253
- package/dist/cjs/index-80419303.js.map +0 -1
- package/dist/cjs/index-96a8951f.js +0 -16
- package/dist/cjs/index-96a8951f.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/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 -36
- 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 -58
- package/dist/cjs/phone-input.cjs.entry.js +0 -25
- package/dist/cjs/phone-input.cjs.entry.js.map +0 -1
- package/dist/collection/collection-manifest.json +0 -30
- package/dist/collection/components/button/crm-button.css +0 -22
- package/dist/collection/components/button/index.js +0 -60
- package/dist/collection/components/button/index.js.map +0 -1
- package/dist/collection/components/countdown-timer/countdown-timer.js +0 -51
- 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 -291
- 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 -127
- 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 -74
- package/dist/collection/components/giftback-form/giftback-form.js +0 -246
- 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 -154
- package/dist/collection/components/giftback-form/subcomponents/giftback-info/giftback-info.js +0 -156
- 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 -80
- 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 -174
- package/dist/collection/components/giftback-form/subcomponents/pin-form/pin-form.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 -51
- 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 -83
- package/dist/collection/components/pedido/pedido.js.map +0 -1
- package/dist/collection/components/phone/phone-input-mask.css +0 -39
- package/dist/collection/components/phone/phone-input-mask.js +0 -122
- package/dist/collection/components/phone/phone-input-mask.js.map +0 -1
- package/dist/collection/contants/index.js +0 -11
- 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 -2
- package/dist/collection/dto/validate.pin.bonus.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/i18n/i18n.js +0 -25
- 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/services/crmbonus.service.js +0 -96
- package/dist/collection/services/crmbonus.service.js.map +0 -1
- package/dist/collection/utils/utils.js +0 -4
- 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 -71
- package/dist/components/crm-bonus-note.js.map +0 -1
- package/dist/components/crm-bonus.js +0 -282
- 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/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 -9
- package/dist/components/index.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-0a57e57f.js.map +0 -1
- package/dist/components/p-11bd8050.js +0 -62
- package/dist/components/p-11bd8050.js.map +0 -1
- package/dist/components/p-1d5eeac0.js +0 -2207
- package/dist/components/p-1d5eeac0.js.map +0 -1
- package/dist/components/p-25f37293.js +0 -238
- package/dist/components/p-25f37293.js.map +0 -1
- package/dist/components/p-2f266d73.js +0 -1068
- package/dist/components/p-2f266d73.js.map +0 -1
- package/dist/components/p-384fabf7.js.map +0 -1
- package/dist/components/p-39d680b6.js +0 -49
- package/dist/components/p-39d680b6.js.map +0 -1
- package/dist/components/p-46578efa.js +0 -44
- package/dist/components/p-46578efa.js.map +0 -1
- package/dist/components/p-4f18f4c0.js.map +0 -1
- package/dist/components/p-5c3fe5a8.js +0 -39
- package/dist/components/p-5c3fe5a8.js.map +0 -1
- package/dist/components/p-5dfa24e0.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-a30bd6b1.js.map +0 -1
- package/dist/components/p-a561251a.js +0 -14
- package/dist/components/p-a561251a.js.map +0 -1
- package/dist/components/p-be365312.js +0 -76
- package/dist/components/p-be365312.js.map +0 -1
- package/dist/components/p-f168d5f6.js +0 -69
- package/dist/components/p-f168d5f6.js.map +0 -1
- package/dist/components/p-f5fcff75.js +0 -36
- package/dist/components/p-f5fcff75.js.map +0 -1
- package/dist/components/pedido-finalizado.js +0 -54
- 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-1d5eeac0.js +0 -2
- package/dist/crmbonus-component-wake/p-1d5eeac0.js.map +0 -1
- package/dist/crmbonus-component-wake/p-384fabf7.js +0 -2
- package/dist/crmbonus-component-wake/p-384fabf7.js.map +0 -1
- package/dist/crmbonus-component-wake/p-3beb5158.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-3beb5158.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-5a8fa5b9.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-5a8fa5b9.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-5ede3b10.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-5ede3b10.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-66f41fd0.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-66f41fd0.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-6e6bf96e.js +0 -3
- package/dist/crmbonus-component-wake/p-6e6bf96e.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-830b5bdc.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-830b5bdc.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-8b9a1aec.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-8b9a1aec.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-9514339e.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-9514339e.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-a561251a.js +0 -2
- package/dist/crmbonus-component-wake/p-a561251a.js.map +0 -1
- package/dist/crmbonus-component-wake/p-adb37e26.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-adb37e26.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-af160cdc.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-af160cdc.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-c271c472.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-c271c472.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-c72a11ba.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-c72a11ba.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-cc452df3.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-cc452df3.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-d0349daf.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-d0349daf.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/env.js +0 -5
- package/dist/env.js.map +0 -1
- package/dist/esm/app-modal.entry.js.map +0 -1
- package/dist/esm/countdown-timer_4.entry.js +0 -169
- package/dist/esm/countdown-timer_4.entry.js.map +0 -1
- package/dist/esm/crm-bonus-form.entry.js.map +0 -1
- package/dist/esm/crm-bonus-note.entry.js +0 -48
- 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-button.entry.js.map +0 -1
- package/dist/esm/crm-giftback-form.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-a846150c.js.map +0 -1
- package/dist/esm/giftback-finish_4.entry.js +0 -125
- package/dist/esm/giftback-finish_4.entry.js.map +0 -1
- package/dist/esm/index-a4c14fca.js +0 -1225
- package/dist/esm/index-a4c14fca.js.map +0 -1
- package/dist/esm/index.js +0 -7
- 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/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-3c6d4feb.js +0 -0
- /package/dist/{esm → crmbonus-component-wake}/index-3c6d4feb.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
@@ -1,39 +0,0 @@
|
|
1
|
-
* {
|
2
|
-
margin: 0;
|
3
|
-
padding: 0;
|
4
|
-
box-sizing: border-box;
|
5
|
-
}
|
6
|
-
|
7
|
-
.phone {
|
8
|
-
display: block;
|
9
|
-
width: 100%;
|
10
|
-
height: 24px;
|
11
|
-
padding: 6px 12px;
|
12
|
-
font-size: 14px;
|
13
|
-
line-height: 1.42857143;
|
14
|
-
color: #555;
|
15
|
-
background-color: #fff;
|
16
|
-
background-image: none;
|
17
|
-
border: 1px solid #ccc;
|
18
|
-
border-radius: 0px;
|
19
|
-
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
|
20
|
-
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
|
21
|
-
-webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
|
22
|
-
-o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
|
23
|
-
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
|
24
|
-
}
|
25
|
-
|
26
|
-
|
27
|
-
.phone-input-form {
|
28
|
-
width: 246px;
|
29
|
-
height: 48px;
|
30
|
-
padding: 13px 16px 13px 16px;
|
31
|
-
border: 1px solid #CCCCCC;
|
32
|
-
}
|
33
|
-
|
34
|
-
.crm-erro-msg {
|
35
|
-
color: #E11D48;
|
36
|
-
font-size: 12px;
|
37
|
-
font-weight: 500;
|
38
|
-
margin-top: 11px;
|
39
|
-
}
|
@@ -1,122 +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
|
-
}
|
33
|
-
validatePhoneNumber(phone) {
|
34
|
-
console.log('phone', phone);
|
35
|
-
const phoneRegex = /^\(\d{2}\) \d{5} \d{4}$/; // Valida formato (99) 99999-9999
|
36
|
-
return phoneRegex.test(phone);
|
37
|
-
}
|
38
|
-
async getPhone() {
|
39
|
-
return this.phone;
|
40
|
-
}
|
41
|
-
render() {
|
42
|
-
return (h("div", { key: '34e88e02195fceb8d73970aa33dcfad2efd05b0f' }, h("input", { key: '22b65d69b7ab13ad41ee36a5e81f26b3d8ffeb1b', disabled: this.disabled, id: "phone", type: "text", class: "phone-input-form", value: this.phone, onInput: (event) => this.handleInput(event), placeholder: "(12) 94567-8910" }), h("p", { key: 'd46cef24b15f4886f7e503b91aeebeaf92dfc3fd', class: "crm-erro-msg" }, this.message)));
|
43
|
-
}
|
44
|
-
static get is() { return "phone-input-mask"; }
|
45
|
-
static get encapsulation() { return "shadow"; }
|
46
|
-
static get originalStyleUrls() {
|
47
|
-
return {
|
48
|
-
"$": ["phone-input-mask.css"]
|
49
|
-
};
|
50
|
-
}
|
51
|
-
static get styleUrls() {
|
52
|
-
return {
|
53
|
-
"$": ["phone-input-mask.css"]
|
54
|
-
};
|
55
|
-
}
|
56
|
-
static get properties() {
|
57
|
-
return {
|
58
|
-
"initialValue": {
|
59
|
-
"type": "string",
|
60
|
-
"mutable": false,
|
61
|
-
"complexType": {
|
62
|
-
"original": "string",
|
63
|
-
"resolved": "string",
|
64
|
-
"references": {}
|
65
|
-
},
|
66
|
-
"required": false,
|
67
|
-
"optional": false,
|
68
|
-
"docs": {
|
69
|
-
"tags": [],
|
70
|
-
"text": ""
|
71
|
-
},
|
72
|
-
"attribute": "initial-value",
|
73
|
-
"reflect": false
|
74
|
-
},
|
75
|
-
"disabled": {
|
76
|
-
"type": "boolean",
|
77
|
-
"mutable": false,
|
78
|
-
"complexType": {
|
79
|
-
"original": "boolean",
|
80
|
-
"resolved": "boolean",
|
81
|
-
"references": {}
|
82
|
-
},
|
83
|
-
"required": false,
|
84
|
-
"optional": false,
|
85
|
-
"docs": {
|
86
|
-
"tags": [],
|
87
|
-
"text": ""
|
88
|
-
},
|
89
|
-
"attribute": "disabled",
|
90
|
-
"reflect": false
|
91
|
-
}
|
92
|
-
};
|
93
|
-
}
|
94
|
-
static get states() {
|
95
|
-
return {
|
96
|
-
"phone": {},
|
97
|
-
"message": {}
|
98
|
-
};
|
99
|
-
}
|
100
|
-
static get methods() {
|
101
|
-
return {
|
102
|
-
"getPhone": {
|
103
|
-
"complexType": {
|
104
|
-
"signature": "() => Promise<string>",
|
105
|
-
"parameters": [],
|
106
|
-
"references": {
|
107
|
-
"Promise": {
|
108
|
-
"location": "global",
|
109
|
-
"id": "global::Promise"
|
110
|
-
}
|
111
|
-
},
|
112
|
-
"return": "Promise<string>"
|
113
|
-
},
|
114
|
-
"docs": {
|
115
|
-
"text": "",
|
116
|
-
"tags": []
|
117
|
-
}
|
118
|
-
}
|
119
|
-
};
|
120
|
-
}
|
121
|
-
}
|
122
|
-
//# sourceMappingURL=phone-input-mask.js.map
|
@@ -1 +0,0 @@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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;IACL,CAAC;IAED,mBAAmB,CAAC,KAAa;QAC7B,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;QAC3B,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\n validatePhoneNumber(phone: string): boolean {\n console.log('phone', phone)\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=\"(12) 94567-8910\"\n />\n <p class=\"crm-erro-msg\">{this.message}</p>\n </div>\n\n );\n }\n}\n"]}
|
@@ -1,11 +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
|
-
//# 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","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\""]}
|
@@ -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":"","sourcesContent":["export interface IProduct {\n productVariantId: string;\n sku: string;\n value: number;\n quantity: number;\n}\n\nexport interface IProductWake {\n ProdutoVarianteId: number;\n SKU: string;\n PrecoPor: number;\n Quantidade: number;\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: string;\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,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,25 +0,0 @@
|
|
1
|
-
import i18next from "i18next";
|
2
|
-
i18next.init({
|
3
|
-
lng: 'pt', // Idioma padrão
|
4
|
-
fallbackLng: 'en', // Idioma de fallback
|
5
|
-
resources: {
|
6
|
-
en: {
|
7
|
-
translation: {
|
8
|
-
welcome: "Welcome",
|
9
|
-
description: "This is an example",
|
10
|
-
'pin-sutitle': "Enter the 4-digit code sent via SMS to the number"
|
11
|
-
},
|
12
|
-
},
|
13
|
-
pt: {
|
14
|
-
translation: {
|
15
|
-
welcome: "Bem-vindo",
|
16
|
-
description: "Este é um exemplo",
|
17
|
-
'pin-sutitle': "Digite o código de 4 dígitos enviado por SMS ao número",
|
18
|
-
giftDescription: "Você tem até <strong>R$ {{amount}}</strong> de {{custom_name}}",
|
19
|
-
noGiftback: "Você não possui Giftback disponível para essa compra."
|
20
|
-
},
|
21
|
-
},
|
22
|
-
},
|
23
|
-
});
|
24
|
-
export default i18next;
|
25
|
-
//# 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,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,OAAO,EAAE,WAAW;gBACpB,WAAW,EAAE,mBAAmB;gBAChC,aAAa,EAAE,wDAAwD;gBACvE,eAAe,EAAE,gEAAgE;gBACjF,UAAU,EAAE,uDAAuD;aACpE;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 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 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 Giftback disponível para essa 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,96 +0,0 @@
|
|
1
|
-
import axios from "axios";
|
2
|
-
import { CRM_BONUS_API_URL } from "../../env";
|
3
|
-
export class CrmBonusService {
|
4
|
-
constructor() {
|
5
|
-
this.axiosInstance = axios.create({
|
6
|
-
baseURL: CRM_BONUS_API_URL,
|
7
|
-
headers: {
|
8
|
-
'Content-Type': 'application/json',
|
9
|
-
'accept': 'application/json',
|
10
|
-
},
|
11
|
-
});
|
12
|
-
}
|
13
|
-
static getInstance() {
|
14
|
-
if (this._instance) {
|
15
|
-
return this._instance;
|
16
|
-
}
|
17
|
-
this._instance = new CrmBonusService();
|
18
|
-
return this._instance;
|
19
|
-
}
|
20
|
-
async getCustomer(userId, store) {
|
21
|
-
var _a, _b;
|
22
|
-
const headers = {
|
23
|
-
'Content-Type': 'application/json',
|
24
|
-
'Authorization': `Bearer ${this.token}`
|
25
|
-
};
|
26
|
-
const response = await this.axiosInstance.get(`/store/${store}/customer/${userId}`, { headers: headers });
|
27
|
-
this.token = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.token;
|
28
|
-
return (_b = response === null || response === void 0 ? void 0 : response.data) === null || _b === void 0 ? void 0 : _b.customer;
|
29
|
-
}
|
30
|
-
async updateOrder(updateOrderDTO) {
|
31
|
-
const token = localStorage.getItem("@BYCODERS_KEY");
|
32
|
-
const headers = {
|
33
|
-
'Content-Type': 'application/json',
|
34
|
-
'Authorization': `Bearer ${token}`
|
35
|
-
};
|
36
|
-
await this.axiosInstance.patch(`/checkouts/${updateOrderDTO.cartId}/updateOrder`, {
|
37
|
-
orderId: updateOrderDTO.orderId,
|
38
|
-
externalId: updateOrderDTO.cartIdCrm
|
39
|
-
}, { headers: headers });
|
40
|
-
localStorage.removeItem("@BYCODERS_KEY");
|
41
|
-
}
|
42
|
-
async sendPin(phone, name, store) {
|
43
|
-
const headers = {
|
44
|
-
'Content-Type': 'application/json',
|
45
|
-
'Authorization': `Bearer ${this.token}`
|
46
|
-
};
|
47
|
-
const response = await this.axiosInstance.post("/crmbonus/send-pin", { cellphone: phone, name: name, storeName: store }, { headers: headers });
|
48
|
-
return {
|
49
|
-
storeId: response.data.storeId,
|
50
|
-
userId: response.data.userId
|
51
|
-
};
|
52
|
-
}
|
53
|
-
async validatePinBonus(payload) {
|
54
|
-
const headers = {
|
55
|
-
'Content-Type': 'application/json',
|
56
|
-
'Authorization': `Bearer ${this.token}`
|
57
|
-
};
|
58
|
-
const response = await this.axiosInstance.post("/crmbonus/process-pin-bonus", payload, { headers });
|
59
|
-
return response.data;
|
60
|
-
}
|
61
|
-
async reserve(payload) {
|
62
|
-
const headers = {
|
63
|
-
'Content-Type': 'application/json',
|
64
|
-
'Authorization': `Bearer ${this.token}`
|
65
|
-
};
|
66
|
-
const response = await this.axiosInstance.post("/crmbonus/redeem-bonus", payload, { headers });
|
67
|
-
return response.data;
|
68
|
-
}
|
69
|
-
async cancel(cartId) {
|
70
|
-
const headers = {
|
71
|
-
'Content-Type': 'application/json',
|
72
|
-
'Authorization': `Bearer ${this.token}`
|
73
|
-
};
|
74
|
-
const response = await this.axiosInstance.post("/crmbonus/cancel-apply-bonus", {
|
75
|
-
ticket: cartId
|
76
|
-
}, { headers });
|
77
|
-
return response.data;
|
78
|
-
}
|
79
|
-
async getToken(store) {
|
80
|
-
var _a, _b;
|
81
|
-
const response = await this.axiosInstance.post("/wake/requestToken", { storeName: store });
|
82
|
-
this.token = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.token;
|
83
|
-
localStorage.setItem("@BYCODERS_KEY", this.token);
|
84
|
-
return (_b = response === null || response === void 0 ? void 0 : response.data) === null || _b === void 0 ? void 0 : _b.token;
|
85
|
-
}
|
86
|
-
async getCustomization(storeName) {
|
87
|
-
const headers = {
|
88
|
-
'Content-Type': 'application/json',
|
89
|
-
'Authorization': `Bearer ${this.token}`
|
90
|
-
};
|
91
|
-
const response = await this.axiosInstance.get(`/stores/${storeName}/customizations`, { headers });
|
92
|
-
localStorage.setItem(`bc:${storeName}`, JSON.stringify(response.data));
|
93
|
-
}
|
94
|
-
}
|
95
|
-
CrmBonusService._instance = null;
|
96
|
-
//# sourceMappingURL=crmbonus.service.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"crmbonus.service.js","sourceRoot":"","sources":["../../../src/services/crmbonus.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAK7C,MAAM,OAAO,eAAe;IAMxB;QACI,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,MAAM,CAAC;YAC9B,OAAO,EAAE,iBAAiB;YAC1B,OAAO,EAAE;gBACL,cAAc,EAAE,kBAAkB;gBAClC,QAAQ,EAAE,kBAAkB;aAC/B;SACJ,CA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nimport { IBonus, IProccesPinBonusDto, IReserveDTO } from '../dto/validate.pin.bonus';\nimport { UpdateOrderDTO } from '../dto/update.order.dto';\n\nexport class CrmBonusService {\n private axiosInstance: AxiosInstance;\n private token: string;\n\n private static _instance: CrmBonusService = null;\n\n constructor() {\n this.axiosInstance = axios.create({\n baseURL: CRM_BONUS_API_URL,\n headers: {\n 'Content-Type': 'application/json',\n 'accept': 'application/json',\n },\n });\n }\n\n public static getInstance(): CrmBonusService {\n if (this._instance) {\n return this._instance;\n }\n\n this._instance = new CrmBonusService()\n\n return this._instance;\n }\n\n async getCustomer(userId: number, store: string) {\n\n const headers = {\n 'Content-Type': 'application/json',\n 'Authorization': `Bearer ${this.token}`\n }\n\n const response = await this.axiosInstance.get(`/store/${store}/customer/${userId}`, { headers: headers })\n\n this.token = response?.data?.token\n\n return response?.data?.customer\n }\n\n async updateOrder(updateOrderDTO: UpdateOrderDTO) {\n\n const token = localStorage.getItem(\"@BYCODERS_KEY\");\n\n const headers = {\n 'Content-Type': 'application/json',\n 'Authorization': `Bearer ${token}`\n }\n\n await this.axiosInstance.patch(`/checkouts/${updateOrderDTO.cartId}/updateOrder`,\n {\n orderId: updateOrderDTO.orderId,\n externalId: updateOrderDTO.cartIdCrm\n }, { headers: headers })\n\n localStorage.removeItem(\"@BYCODERS_KEY\");\n }\n\n async sendPin(phone: number, name: string, store: string): Promise<IPinSent> {\n\n const headers = {\n 'Content-Type': 'application/json',\n 'Authorization': `Bearer ${this.token}`\n }\n\n\n const response = await this.axiosInstance.post(\"/crmbonus/send-pin\", { cellphone: phone, name: name, storeName: store }, { headers: headers });\n return {\n storeId: response.data.storeId,\n userId: response.data.userId\n }\n }\n\n async validatePinBonus(payload: IProccesPinBonusDto): Promise<IBonus> {\n\n const headers = {\n 'Content-Type': 'application/json',\n 'Authorization': `Bearer ${this.token}`\n }\n\n const response = await this.axiosInstance.post(\"/crmbonus/process-pin-bonus\", payload, { headers })\n\n return response.data;\n }\n\n async reserve(payload: IReserveDTO) {\n\n const headers = {\n 'Content-Type': 'application/json',\n 'Authorization': `Bearer ${this.token}`\n }\n const response = await this.axiosInstance.post(\"/crmbonus/redeem-bonus\", payload, { headers });\n return response.data;\n }\n\n async cancel(cartId: string) {\n\n const headers = {\n 'Content-Type': 'application/json',\n 'Authorization': `Bearer ${this.token}`\n }\n\n const response = await this.axiosInstance.post(\"/crmbonus/cancel-apply-bonus\", {\n ticket: cartId\n }, { headers });\n return response.data;\n }\n\n async getToken(store: string): Promise<string> {\n const response = await this.axiosInstance.post(\"/wake/requestToken\", { storeName: store })\n this.token = response?.data?.token;\n\n localStorage.setItem(\"@BYCODERS_KEY\", this.token);\n\n return response?.data?.token;\n }\n\n async getCustomization(storeName: string) {\n\n const headers = {\n 'Content-Type': 'application/json',\n 'Authorization': `Bearer ${this.token}`\n }\n\n const response = await this.axiosInstance.get(`/stores/${storeName}/customizations`, { headers });\n\n localStorage.setItem(`bc:${storeName}`, JSON.stringify(response.data))\n }\n}"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,MAAM,CAAC,KAAc,EAAE,MAAe,EAAE,IAAa;IACnE,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AACjF,CAAC","sourcesContent":["export function format(first?: string, middle?: string, last?: string): string {\n return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');\n}\n"]}
|
@@ -1,46 +0,0 @@
|
|
1
|
-
import { p as proxyCustomElement, H, c as createEvent, h } from './p-2f266d73.js';
|
2
|
-
|
3
|
-
const appModalCss = ".modal-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);display:none;justify-content:center;align-items:center;z-index:1000}.modal-backdrop.visible{display:flex}.modal{background:white;border-radius:8px;padding:1rem;max-width:500px;width:90%;box-shadow:0 2px 10px rgba(0, 0, 0, 0.3)}.modal-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #ddd;margin-bottom:1rem}.close-button{background:none;border:none;font-size:1.5rem;cursor:pointer}.modal-body{}";
|
4
|
-
const AppModalStyle0 = appModalCss;
|
5
|
-
|
6
|
-
const AppModal$1 = /*@__PURE__*/ proxyCustomElement(class AppModal extends H {
|
7
|
-
constructor() {
|
8
|
-
super();
|
9
|
-
this.__registerHost();
|
10
|
-
this.__attachShadow();
|
11
|
-
this.modalClosed = createEvent(this, "modalClosed", 7);
|
12
|
-
this.isOpen = false;
|
13
|
-
this.modalTitle = undefined;
|
14
|
-
}
|
15
|
-
closeModal() {
|
16
|
-
this.modalClosed.emit();
|
17
|
-
}
|
18
|
-
render() {
|
19
|
-
return (h("div", { key: '9ed1b6a6f09b9127119d661abbd447e047c49efb', class: `modal-backdrop ${this.isOpen ? 'visible' : ''}` }, h("div", { key: 'dd4f515ea7949d5a470655234a9c0b48194bba1b', class: "modal" }, h("div", { key: '387a930782a4a00073eda969acc86bed39fc8151', class: "modal-header" }, h("h3", { key: '38f041a1e3483490a4de85f1c0a223c47c664517' }, this.modalTitle), h("button", { key: '98998678ec65fd96ad6284d8602ccdf5fd723e26', class: "close-button", onClick: () => this.closeModal() }, "\u00D7")), h("div", { key: '845f631054557e79b4ef0521b6eefd41eda93eeb', class: "modal-body" }, h("slot", { key: '2d5539938e7c4175eede394bddeb841e371912fa' })))));
|
20
|
-
}
|
21
|
-
static get style() { return AppModalStyle0; }
|
22
|
-
}, [1, "app-modal", {
|
23
|
-
"isOpen": [516, "is-open"],
|
24
|
-
"modalTitle": [1, "modal-title"]
|
25
|
-
}]);
|
26
|
-
function defineCustomElement$1() {
|
27
|
-
if (typeof customElements === "undefined") {
|
28
|
-
return;
|
29
|
-
}
|
30
|
-
const components = ["app-modal"];
|
31
|
-
components.forEach(tagName => { switch (tagName) {
|
32
|
-
case "app-modal":
|
33
|
-
if (!customElements.get(tagName)) {
|
34
|
-
customElements.define(tagName, AppModal$1);
|
35
|
-
}
|
36
|
-
break;
|
37
|
-
} });
|
38
|
-
}
|
39
|
-
defineCustomElement$1();
|
40
|
-
|
41
|
-
const AppModal = AppModal$1;
|
42
|
-
const defineCustomElement = defineCustomElement$1;
|
43
|
-
|
44
|
-
export { AppModal, defineCustomElement };
|
45
|
-
|
46
|
-
//# sourceMappingURL=app-modal.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"app-modal.js","mappings":";;AAAA,MAAM,WAAW,GAAG,+hBAA+hB,CAAC;AACpjB,uBAAe,WAAW;;MCMbA,UAAQ;;;;;;sBAG0B,KAAK;;;IAQxC,UAAU;QACd,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;KAC3B;IAED,MAAM;QACF,QACI,4DAAK,KAAK,EAAE,kBAAkB,IAAI,CAAC,MAAM,GAAG,SAAS,GAAG,EAAE,EAAE,IACxD,4DAAK,KAAK,EAAC,OAAO,IACd,4DAAK,KAAK,EAAC,cAAc,IACrB,6DAAK,IAAI,CAAC,UAAU,CAAM,EAC1B,+DAAQ,KAAK,EAAC,cAAc,EAAC,OAAO,EAAE,MAAM,IAAI,CAAC,UAAU,EAAE,aAEpD,CACP,EACN,4DAAK,KAAK,EAAC,YAAY,IACnB,8DAAQ,CACN,CACJ,CACJ,EACT;KACJ;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["AppModal"],"sources":["src/components/modal/app-modal.css?tag=app-modal&encapsulation=shadow","src/components/modal/app-modal.tsx"],"sourcesContent":[".modal-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n display: none;\n justify-content: center;\n align-items: center;\n z-index: 1000;\n }\n \n .modal-backdrop.visible {\n display: flex;\n }\n \n .modal {\n background: white;\n border-radius: 8px;\n padding: 1rem;\n max-width: 500px;\n width: 90%;\n box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);\n }\n \n .modal-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n border-bottom: 1px solid #ddd;\n margin-bottom: 1rem;\n }\n \n .close-button {\n background: none;\n border: none;\n font-size: 1.5rem;\n cursor: pointer;\n }\n \n .modal-body {\n /* padding: 1rem 0; */\n }\n ","import { Component, Event, EventEmitter, Prop, h } from \"@stencil/core\";\n\n@Component({\n tag: 'app-modal',\n styleUrl: 'app-modal.css',\n shadow: true,\n})\nexport class AppModal {\n\n // Controle da visibilidade do modal\n @Prop({ reflect: true }) isOpen: boolean = false;\n\n // Título do modal\n @Prop() modalTitle: string;\n\n // Evento emitido ao fechar o modal\n @Event() modalClosed: EventEmitter<void>;\n\n private closeModal() {\n this.modalClosed.emit();\n }\n\n render() {\n return (\n <div class={`modal-backdrop ${this.isOpen ? 'visible' : ''}`}>\n <div class=\"modal\">\n <div class=\"modal-header\">\n <h3>{this.modalTitle}</h3>\n <button class=\"close-button\" onClick={() => this.closeModal()}>\n ×\n </button>\n </div>\n <div class=\"modal-body\">\n <slot />\n </div>\n </div>\n </div>\n )\n }\n}"],"version":3}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { C as CountdownTimer$1, d as defineCustomElement$1 } from './p-39d680b6.js';
|
2
|
-
|
3
|
-
const CountdownTimer = CountdownTimer$1;
|
4
|
-
const defineCustomElement = defineCustomElement$1;
|
5
|
-
|
6
|
-
export { CountdownTimer, defineCustomElement };
|
7
|
-
|
8
|
-
//# sourceMappingURL=countdown-timer.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"file":"countdown-timer.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|