crmbonus-component-wake 2.0.125 → 2.0.126
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-abbfbc98.js → crmbonus-component-wake/cart.helper-4e40ffa9.js} +3 -2
- package/dist/crmbonus-component-wake/cart.helper-4e40ffa9.js.map +1 -0
- package/dist/{esm/cart.helper-30a40560.js → crmbonus-component-wake/cart.helper-a921d7f9.js} +3 -2
- package/dist/crmbonus-component-wake/cart.helper-a921d7f9.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 +4 -5
- package/dist/crmbonus-component-wake/{p-c23f3a07.entry.js.map → crm-bonus-form.entry.js.map} +1 -1
- package/dist/{esm → crmbonus-component-wake}/crm-bonus-note.entry.js +9 -10
- package/dist/crmbonus-component-wake/crm-bonus-note.entry.js.map +1 -0
- package/dist/{esm → crmbonus-component-wake}/crm-bonus.entry.js +8 -7
- 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} +12 -27
- package/dist/crmbonus-component-wake/crm-giftback-form.entry.js.map +1 -0
- 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-42fbd7fa.js → crmbonus-component-wake/crmbonus.service-67550994.js} +162 -90
- package/dist/crmbonus-component-wake/crmbonus.service-67550994.js.map +1 -0
- package/dist/{components/p-6eda79c3.js → crmbonus-component-wake/crmbonus.service-9f4c6fd7.js} +165 -93
- package/dist/crmbonus-component-wake/crmbonus.service-9f4c6fd7.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 +4 -4
- 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/home/darlison/Projects/Bycoders/crmbonus/crmbonus-component/.stencil/env.d.ts +1 -1
- 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/cart.helper-d4d8d619.js +0 -77
- package/dist/cjs/cart.helper-d4d8d619.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 -101
- package/dist/cjs/crm-bonus-note.cjs.entry.js.map +0 -1
- package/dist/cjs/crm-bonus.cjs.entry.js +0 -247
- 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-giftback-form_2.cjs.entry.js.map +0 -1
- 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-9067d00d.js +0 -3877
- package/dist/cjs/crmbonus.service-9067d00d.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 -39
- 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 -311
- 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 -117
- package/dist/collection/components/note/crm-bonus-note.js.map +0 -1
- package/dist/collection/components/pedido/pedido.js +0 -52
- 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 -27
- 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 -46
- 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 -139
- package/dist/components/crm-bonus-note.js.map +0 -1
- package/dist/components/crm-bonus.js +0 -337
- 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-6eda79c3.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-83a12a8f.js.map +0 -1
- package/dist/components/p-abbfbc98.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-e18e11ae.js +0 -316
- package/dist/components/p-e18e11ae.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-fe9c3966.js +0 -39
- package/dist/components/p-fe9c3966.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-03b77c41.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-03b77c41.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-4fa63df0.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-4fa63df0.entry.js.map +0 -1
- 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-6eda79c3.js +0 -2
- package/dist/crmbonus-component-wake/p-6eda79c3.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-7cdb2c4a.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-7cdb2c4a.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-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-a33f7c24.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-a33f7c24.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-abbfbc98.js +0 -2
- package/dist/crmbonus-component-wake/p-abbfbc98.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-c23f3a07.entry.js +0 -2
- 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-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-fad20959.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-fad20959.entry.js.map +0 -1
- package/dist/env.js +0 -3
- package/dist/env.js.map +0 -1
- package/dist/esm/app-modal.entry.js.map +0 -1
- package/dist/esm/cart.helper-30a40560.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-42fbd7fa.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,110 +0,0 @@
|
|
1
|
-
:host {
|
2
|
-
display: flex;
|
3
|
-
font-family: Arial, sans-serif;
|
4
|
-
/* background-color: #f8f4eb; */
|
5
|
-
border-radius: 10px;
|
6
|
-
padding: 16px;
|
7
|
-
/* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
|
8
|
-
max-width: 100%;
|
9
|
-
flex-direction: column;
|
10
|
-
}
|
11
|
-
|
12
|
-
.giftback-container {
|
13
|
-
display: flex;
|
14
|
-
flex-direction: column;
|
15
|
-
}
|
16
|
-
|
17
|
-
.giftback-container p {
|
18
|
-
font-size: medium;
|
19
|
-
}
|
20
|
-
|
21
|
-
|
22
|
-
h3 {
|
23
|
-
margin: 0 0 10px;
|
24
|
-
font-size: 18px;
|
25
|
-
}
|
26
|
-
|
27
|
-
p {
|
28
|
-
margin: 5px 0;
|
29
|
-
font-size: 14px;
|
30
|
-
align-self: start;
|
31
|
-
}
|
32
|
-
|
33
|
-
.validity {
|
34
|
-
font-size: 12px;
|
35
|
-
color: #888;
|
36
|
-
}
|
37
|
-
|
38
|
-
.progress-container {
|
39
|
-
display: flex;
|
40
|
-
align-items: center;
|
41
|
-
margin: 10px 0;
|
42
|
-
}
|
43
|
-
|
44
|
-
progress-container span {
|
45
|
-
font-size: 12px;
|
46
|
-
color: #666;
|
47
|
-
}
|
48
|
-
|
49
|
-
input[type='range'] {
|
50
|
-
flex: 1;
|
51
|
-
margin: 0 10px;
|
52
|
-
appearance: none;
|
53
|
-
background-color: #ccc;
|
54
|
-
height: 6px;
|
55
|
-
border-radius: 3px;
|
56
|
-
outline: none;
|
57
|
-
cursor: pointer;
|
58
|
-
}
|
59
|
-
|
60
|
-
input[type='range']::-webkit-slider-thumb {
|
61
|
-
appearance: none;
|
62
|
-
width: 14px;
|
63
|
-
height: 14px;
|
64
|
-
border-radius: 50%;
|
65
|
-
background-color: #555;
|
66
|
-
cursor: pointer;
|
67
|
-
}
|
68
|
-
|
69
|
-
.remaining {
|
70
|
-
font-weight: bold;
|
71
|
-
font-size: 14px;
|
72
|
-
color: #333;
|
73
|
-
}
|
74
|
-
|
75
|
-
.button {
|
76
|
-
top: 50%;
|
77
|
-
background-color: #6c6c7e;
|
78
|
-
color: #fff;
|
79
|
-
border: none;
|
80
|
-
border-radius: 10px;
|
81
|
-
padding: 10px;
|
82
|
-
min-height: 30px;
|
83
|
-
min-width: 120px;
|
84
|
-
font-size: 19px;
|
85
|
-
cursor: pointer;
|
86
|
-
}
|
87
|
-
|
88
|
-
.button-cancel {
|
89
|
-
top: 50%;
|
90
|
-
background-color: #ffffff;
|
91
|
-
color: #1e1c1c;
|
92
|
-
border: 1px solid gray;
|
93
|
-
border-radius: 10px;
|
94
|
-
padding: 10px;
|
95
|
-
min-height: 30px;
|
96
|
-
min-width: 120px;
|
97
|
-
font-size: 19px;
|
98
|
-
cursor: pointer;
|
99
|
-
}
|
100
|
-
|
101
|
-
.disabled {
|
102
|
-
opacity: 0.6;
|
103
|
-
cursor: not-allowed;
|
104
|
-
}
|
105
|
-
|
106
|
-
.footer-button-giftback {
|
107
|
-
display: flex;
|
108
|
-
justify-content: space-between;
|
109
|
-
margin-top: 14px;
|
110
|
-
}
|
@@ -1,127 +0,0 @@
|
|
1
|
-
import { h } from "@stencil/core";
|
2
|
-
export class GiftbackProgress {
|
3
|
-
constructor() {
|
4
|
-
this.usedValue = 0;
|
5
|
-
this.loading = false;
|
6
|
-
this.bonus = {
|
7
|
-
totalBonus: 0,
|
8
|
-
cartId: "",
|
9
|
-
minimumPurchase: 0,
|
10
|
-
bonusBalance: 0,
|
11
|
-
calculatedValue: 0,
|
12
|
-
firstValidityDate: ""
|
13
|
-
};
|
14
|
-
this.reserve = undefined;
|
15
|
-
this.cancel = undefined;
|
16
|
-
}
|
17
|
-
componentWillLoad() {
|
18
|
-
this.usedValue = parseFloat(this.bonus.bonusBalance.toString());
|
19
|
-
}
|
20
|
-
handleSliderChange(event) {
|
21
|
-
const input = event.target;
|
22
|
-
this.usedValue = parseFloat(input.value);
|
23
|
-
}
|
24
|
-
async handleReserve(value) {
|
25
|
-
this.reserve(value);
|
26
|
-
}
|
27
|
-
render() {
|
28
|
-
const remainingGiftback = this.bonus.minimumPurchase - this.bonus.totalValue;
|
29
|
-
return (h("div", { key: 'c2fb3f6a887887e197b55e951dbf50054e27e77a', class: "giftback-container" }, h("p", { key: '1d08aaaa1d260f3938e472e95b1e194be50c3987' }, "Voc\u00EA possui at\u00E9 ", h("strong", { key: '99d39bc977a41c9d098c812b61ae41c25342f65c' }, "R$ ", this.bonus.totalBonus.toFixed(2)), " de Giftback nessa compra!"), h("p", { key: '68fc8504eabfdf6e9e873780bb6863521a683e58', class: "validity" }, "V\u00E1lido at\u00E9: ", new Date(this.bonus.firstValidityDate).toLocaleDateString('pt-Br')), h("p", { key: 'fe4c8804f8d577e530330050cfae9c33c2be36d7' }, "Voc\u00EA est\u00E1 utilizando ", h("strong", { key: 'd1d2a6ad0ca1da77e5a4ab9a595af74a11fb9862' }, "R$ ", this.usedValue.toFixed(2)), " nessa compra"), h("div", { key: 'b0eac608016c3136a344c03d456355d7ffcc8dfc', class: "progress-container" }, h("span", { key: 'a88626a3f0d0109fca8b593da05e76f54eb69e28' }, "R$ 0"), h("input", { key: '5d19e34becada60c728f9fce1fa67eede16b7844', disabled: true, type: "range", min: "0", step: "0.01", max: this.bonus.totalBonus, value: this.usedValue, onInput: (event) => this.handleSliderChange(event) }), h("span", { key: '31f0b18eff1ffbd2fb86941653beacad567514ca' }, "R$ ", this.bonus.totalBonus.toFixed(2))), h("p", { key: '5f278047d5bb21282890de0304bc2e8addf8ea43', class: "remaining" }, "Faltam ", h("strong", { key: 'fa220ca91d366eb5e5eec4bf7e94ace4584b0dbe' }, "R$ ", remainingGiftback > 0 ? remainingGiftback.toFixed(2) : Number(0).toFixed(2)), " para utilizar o valor total do Giftback."), h("div", { key: '248c3376e92b8daab0c821e79e083ef6f44bff9e', class: "footer-button-giftback" }, h("button", { key: 'fe612e24a59abed7ef27e6a0425d40efaad218c2', class: "button-cancel", disabled: this.loading, onClick: () => this.cancel() }, "Cancelar"), h("button", { key: '6f86a5b1eeedf01c9eabe9313fdf7b00dc264e96', class: `button ${this.loading ? 'disabled' : ''} `, disabled: this.loading, onClick: () => this.handleReserve(this.usedValue) }, !this.loading ? "Aplicar" : h("loading-spinner", { size: "10px", color: "#fff" })))));
|
30
|
-
}
|
31
|
-
static get is() { return "giftback-progress"; }
|
32
|
-
static get encapsulation() { return "shadow"; }
|
33
|
-
static get originalStyleUrls() {
|
34
|
-
return {
|
35
|
-
"$": ["giftback-progress.css"]
|
36
|
-
};
|
37
|
-
}
|
38
|
-
static get styleUrls() {
|
39
|
-
return {
|
40
|
-
"$": ["giftback-progress.css"]
|
41
|
-
};
|
42
|
-
}
|
43
|
-
static get properties() {
|
44
|
-
return {
|
45
|
-
"loading": {
|
46
|
-
"type": "boolean",
|
47
|
-
"mutable": false,
|
48
|
-
"complexType": {
|
49
|
-
"original": "boolean",
|
50
|
-
"resolved": "boolean",
|
51
|
-
"references": {}
|
52
|
-
},
|
53
|
-
"required": false,
|
54
|
-
"optional": false,
|
55
|
-
"docs": {
|
56
|
-
"tags": [],
|
57
|
-
"text": ""
|
58
|
-
},
|
59
|
-
"attribute": "loading",
|
60
|
-
"reflect": false,
|
61
|
-
"defaultValue": "false"
|
62
|
-
},
|
63
|
-
"bonus": {
|
64
|
-
"type": "unknown",
|
65
|
-
"mutable": false,
|
66
|
-
"complexType": {
|
67
|
-
"original": "Partial<IBonus>",
|
68
|
-
"resolved": "{ hasBonus?: boolean; bonusBalance?: number; totalBonus?: number; minimumPurchase?: number; bonusIds?: string; firstValidityDate?: string; history?: [{ validityStart: string; validityEnd: string; value: number; }, { validityStart: string; validityEnd: string; value: number; }]; storeId?: number; userId?: number; cartId?: string; calculatedValue?: number; totalValue?: number; }",
|
69
|
-
"references": {
|
70
|
-
"Partial": {
|
71
|
-
"location": "global",
|
72
|
-
"id": "global::Partial"
|
73
|
-
},
|
74
|
-
"IBonus": {
|
75
|
-
"location": "import",
|
76
|
-
"path": "../../../../dto/validate.pin.bonus",
|
77
|
-
"id": "src/dto/validate.pin.bonus.ts::IBonus"
|
78
|
-
}
|
79
|
-
}
|
80
|
-
},
|
81
|
-
"required": false,
|
82
|
-
"optional": false,
|
83
|
-
"docs": {
|
84
|
-
"tags": [],
|
85
|
-
"text": ""
|
86
|
-
},
|
87
|
-
"defaultValue": "{\n totalBonus: 0,\n cartId: \"\",\n minimumPurchase: 0,\n bonusBalance: 0,\n calculatedValue: 0,\n firstValidityDate: \"\"\n }"
|
88
|
-
},
|
89
|
-
"reserve": {
|
90
|
-
"type": "unknown",
|
91
|
-
"mutable": false,
|
92
|
-
"complexType": {
|
93
|
-
"original": "(amountRedeemed: number) => void",
|
94
|
-
"resolved": "(amountRedeemed: number) => void",
|
95
|
-
"references": {}
|
96
|
-
},
|
97
|
-
"required": false,
|
98
|
-
"optional": false,
|
99
|
-
"docs": {
|
100
|
-
"tags": [],
|
101
|
-
"text": ""
|
102
|
-
}
|
103
|
-
},
|
104
|
-
"cancel": {
|
105
|
-
"type": "unknown",
|
106
|
-
"mutable": false,
|
107
|
-
"complexType": {
|
108
|
-
"original": "() => void",
|
109
|
-
"resolved": "() => void",
|
110
|
-
"references": {}
|
111
|
-
},
|
112
|
-
"required": false,
|
113
|
-
"optional": false,
|
114
|
-
"docs": {
|
115
|
-
"tags": [],
|
116
|
-
"text": ""
|
117
|
-
}
|
118
|
-
}
|
119
|
-
};
|
120
|
-
}
|
121
|
-
static get states() {
|
122
|
-
return {
|
123
|
-
"usedValue": {}
|
124
|
-
};
|
125
|
-
}
|
126
|
-
}
|
127
|
-
//# sourceMappingURL=giftback-progress.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"giftback-progress.js","sourceRoot":"","sources":["../../../../../../src/components/crm-bonus-form/subcomponents/giftback-progress/giftback-progress.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAQ1D,MAAM,OAAO,gBAAgB;;yBACI,CAAC;uBAEH,KAAK;qBAEC;YAC7B,UAAU,EAAE,CAAC;YACb,MAAM,EAAE,EAAE;YACV,eAAe,EAAE,CAAC;YAClB,YAAY,EAAE,CAAC;YACf,eAAe,EAAE,CAAC;YAClB,iBAAiB,EAAE,EAAE;SACxB;;;;IAKD,iBAAiB;QACb,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,kBAAkB,CAAC,KAAY;QAC3B,MAAM,KAAK,GAAG,KAAK,CAAC,MAA0B,CAAC;QAC/C,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC7C,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,KAAa;QAC7B,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IAED,MAAM;QACF,MAAM,iBAAiB,GAAG,IAAI,CAAC,KAAK,CAAC,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;QAE7E,OAAO,CACH,4DAAK,KAAK,EAAC,oBAAoB;YAC3B;;gBACoB;;oBAAY,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAU;6CACtE;YACJ,0DAAG,KAAK,EAAC,UAAU;;gBAAc,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAK;YAExG;;gBAAwB;;oBAAY,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAU;gCAAiB;YAExF,4DAAK,KAAK,EAAC,oBAAoB;gBAC3B,sEAAiB;gBACjB,8DACI,QAAQ,QACR,IAAI,EAAC,OAAO,EACZ,GAAG,EAAC,GAAG,EACP,IAAI,EAAC,MAAM,EACX,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,EAC1B,KAAK,EAAE,IAAI,CAAC,SAAS,EACrB,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,GACpD;gBACF;;oBAAU,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAQ,CAChD;YAEN,0DAAG,KAAK,EAAC,WAAW;;gBACT;;oBAAY,iBAAiB,GAAG,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAU;4DACxG;YAEJ,4DAAK,KAAK,EAAC,wBAAwB;gBAE/B,+DAAQ,KAAK,EAAC,eAAe,EAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,eAEzE;gBAET,+DAAQ,KAAK,EAAE,UAAU,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,IAE7H,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,uBAAiB,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,MAAM,GAAG,CAEvE,CACP,CACJ,CACT,CAAC;IACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, h, State, Prop } from '@stencil/core';\nimport { IBonus } from '../../../../dto/validate.pin.bonus';\n\n@Component({\n tag: 'giftback-progress',\n styleUrl: 'giftback-progress.css',\n shadow: true,\n})\nexport class GiftbackProgress {\n @State() usedValue: number = 0;\n\n @Prop() loading: boolean = false;\n\n @Prop() bonus: Partial<IBonus> = {\n totalBonus: 0,\n cartId: \"\",\n minimumPurchase: 0,\n bonusBalance: 0,\n calculatedValue: 0,\n firstValidityDate: \"\"\n };\n\n @Prop() reserve: (amountRedeemed: number) => void;\n @Prop() cancel: () => void;\n\n componentWillLoad() {\n this.usedValue = parseFloat(this.bonus.bonusBalance.toString());\n }\n\n handleSliderChange(event: Event) {\n const input = event.target as HTMLInputElement;\n this.usedValue = parseFloat(input.value);\n }\n\n async handleReserve(value: number) {\n this.reserve(value);\n }\n\n render() {\n const remainingGiftback = this.bonus.minimumPurchase - this.bonus.totalValue;\n\n return (\n <div class=\"giftback-container\">\n <p>\n Você possui até <strong>R$ {this.bonus.totalBonus.toFixed(2)}</strong> de Giftback nessa compra!\n </p>\n <p class=\"validity\">Válido até: {new Date(this.bonus.firstValidityDate).toLocaleDateString('pt-Br')}</p>\n\n <p>Você está utilizando <strong>R$ {this.usedValue.toFixed(2)}</strong> nessa compra</p>\n\n <div class=\"progress-container\">\n <span>R$ 0</span>\n <input\n disabled\n type=\"range\"\n min=\"0\"\n step=\"0.01\"\n max={this.bonus.totalBonus}\n value={this.usedValue}\n onInput={(event) => this.handleSliderChange(event)}\n />\n <span>R$ {this.bonus.totalBonus.toFixed(2)}</span>\n </div>\n\n <p class=\"remaining\">\n Faltam <strong>R$ {remainingGiftback > 0 ? remainingGiftback.toFixed(2) : Number(0).toFixed(2)}</strong> para utilizar o valor total do Giftback.\n </p>\n\n <div class=\"footer-button-giftback\">\n\n <button class=\"button-cancel\" disabled={this.loading} onClick={() => this.cancel()} >\n Cancelar\n </button>\n\n <button class={`button ${this.loading ? 'disabled' : ''} `} disabled={this.loading} onClick={() => this.handleReserve(this.usedValue)}>\n {\n !this.loading ? \"Aplicar\" : <loading-spinner size=\"10px\" color=\"#fff\" />\n }\n </button>\n </div>\n </div>\n );\n }\n}\n"]}
|
@@ -1,108 +0,0 @@
|
|
1
|
-
.bc-form-control {
|
2
|
-
display: block;
|
3
|
-
width: 90%;
|
4
|
-
height: 24px;
|
5
|
-
padding: 7px 18px;
|
6
|
-
font-size: 14px;
|
7
|
-
line-height: 1.42857143;
|
8
|
-
color: #555;
|
9
|
-
background-color: #fff;
|
10
|
-
background-image: none;
|
11
|
-
border: 1px solid #ccc;
|
12
|
-
border-radius: 0px;
|
13
|
-
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
|
14
|
-
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
|
15
|
-
-webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
|
16
|
-
-o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
|
17
|
-
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
|
18
|
-
}
|
19
|
-
|
20
|
-
.bc-btn {
|
21
|
-
display: inline-block;
|
22
|
-
padding: 6px 12px;
|
23
|
-
margin-bottom: 0;
|
24
|
-
font-size: 14px;
|
25
|
-
font-weight: 400;
|
26
|
-
line-height: 1.42857143;
|
27
|
-
text-align: center;
|
28
|
-
white-space: nowrap;
|
29
|
-
vertical-align: middle;
|
30
|
-
-ms-touch-action: manipulation;
|
31
|
-
touch-action: manipulation;
|
32
|
-
cursor: pointer;
|
33
|
-
-webkit-user-select: none;
|
34
|
-
-moz-user-select: none;
|
35
|
-
-ms-user-select: none;
|
36
|
-
user-select: none;
|
37
|
-
background-image: none;
|
38
|
-
border: 1px solid transparent;
|
39
|
-
border-radius: 0px;
|
40
|
-
}
|
41
|
-
|
42
|
-
.bc-btn-process {
|
43
|
-
background: #00162e;
|
44
|
-
border-color: #00162e;
|
45
|
-
width: 30%;
|
46
|
-
color: #fff;
|
47
|
-
}
|
48
|
-
|
49
|
-
.bc-footer-btn {
|
50
|
-
display: flex;
|
51
|
-
justify-content: end;
|
52
|
-
margin: 11px;
|
53
|
-
}
|
54
|
-
|
55
|
-
.name-container {
|
56
|
-
font-weight: bold;
|
57
|
-
color: #494545;
|
58
|
-
}
|
59
|
-
|
60
|
-
|
61
|
-
button {
|
62
|
-
padding: 10px 20px;
|
63
|
-
background-color: #ddd;
|
64
|
-
border: none;
|
65
|
-
border-radius: 5px;
|
66
|
-
cursor: pointer;
|
67
|
-
}
|
68
|
-
|
69
|
-
button:hover {
|
70
|
-
background-color: #bbb;
|
71
|
-
}
|
72
|
-
|
73
|
-
.success {
|
74
|
-
color: green;
|
75
|
-
margin-top: 10px;
|
76
|
-
}
|
77
|
-
|
78
|
-
.button {
|
79
|
-
top: 50%;
|
80
|
-
background-color: #6c6c7e;
|
81
|
-
color: #fff;
|
82
|
-
border: none;
|
83
|
-
border-radius: 10px;
|
84
|
-
padding: 11px;
|
85
|
-
min-width: 120px;
|
86
|
-
font-size: 20px;
|
87
|
-
cursor: pointer;
|
88
|
-
}
|
89
|
-
|
90
|
-
.button-cancel {
|
91
|
-
top: 50%;
|
92
|
-
background-color: #ffffff;
|
93
|
-
color: #1e1c1c;
|
94
|
-
border: 1px solid gray;
|
95
|
-
border-radius: 10px;
|
96
|
-
padding: 10px;
|
97
|
-
min-height: 30px;
|
98
|
-
min-width: 120px;
|
99
|
-
font-size: 19px;
|
100
|
-
cursor: pointer;
|
101
|
-
}
|
102
|
-
|
103
|
-
.footer-button {
|
104
|
-
display: flex;
|
105
|
-
justify-content: space-between;
|
106
|
-
width: 97%;
|
107
|
-
margin-top: 14px;
|
108
|
-
}
|
@@ -1,110 +0,0 @@
|
|
1
|
-
import { h } from "@stencil/core";
|
2
|
-
export class NameInput {
|
3
|
-
constructor() {
|
4
|
-
this.value = undefined;
|
5
|
-
this.loading = undefined;
|
6
|
-
this.applyName = undefined;
|
7
|
-
this.cancel = undefined;
|
8
|
-
this.newValue = undefined;
|
9
|
-
this.message = undefined;
|
10
|
-
}
|
11
|
-
handleChangeName(event) {
|
12
|
-
this.newValue = event.target.value;
|
13
|
-
}
|
14
|
-
handleSetName(name) {
|
15
|
-
if (!name) {
|
16
|
-
this.message = "Informe seu nome";
|
17
|
-
return;
|
18
|
-
}
|
19
|
-
this.applyName(name);
|
20
|
-
}
|
21
|
-
render() {
|
22
|
-
return (h("div", { key: '1876de780affd04baa6d87b06cc9290edf04450c', class: "name-container" }, h("p", { key: '7288499a5ba471c767a0c3a3cfcc34816ada2bf8' }, "Seu Nome:"), h("input", { key: 'f4e2ac7aa451bdb15a31750993430cb562544183', class: "bc-form-control", type: "text", value: this.value, onChange: (event) => this.handleChangeName(event) }), h("p", { key: '70f1c8eee06f2e20c6a3517385805530f8ab4672' }, this.message), h("div", { key: '537066b3849117db72a991db77e8f5605c3922c9', class: "footer-button" }, h("button", { key: '2713a6fbfd04f45016495cb8c977179a1d218478', class: "button-cancel", disabled: this.loading, onClick: () => this.cancel() }, "Cancelar"), h("button", { key: 'b15fced83481d289bb418fd5f925ff6887f39e99', class: `button ${this.loading ? 'disabled' : ''} `, disabled: this.loading, onClick: () => this.handleSetName(this.newValue) }, !this.loading ? "Continua" : h("loading-spinner", { size: "15px", color: "#fff" })))));
|
23
|
-
}
|
24
|
-
static get is() { return "name-input"; }
|
25
|
-
static get originalStyleUrls() {
|
26
|
-
return {
|
27
|
-
"$": ["name-input.css"]
|
28
|
-
};
|
29
|
-
}
|
30
|
-
static get styleUrls() {
|
31
|
-
return {
|
32
|
-
"$": ["name-input.css"]
|
33
|
-
};
|
34
|
-
}
|
35
|
-
static get properties() {
|
36
|
-
return {
|
37
|
-
"value": {
|
38
|
-
"type": "string",
|
39
|
-
"mutable": false,
|
40
|
-
"complexType": {
|
41
|
-
"original": "string",
|
42
|
-
"resolved": "string",
|
43
|
-
"references": {}
|
44
|
-
},
|
45
|
-
"required": false,
|
46
|
-
"optional": false,
|
47
|
-
"docs": {
|
48
|
-
"tags": [],
|
49
|
-
"text": ""
|
50
|
-
},
|
51
|
-
"attribute": "value",
|
52
|
-
"reflect": false
|
53
|
-
},
|
54
|
-
"loading": {
|
55
|
-
"type": "boolean",
|
56
|
-
"mutable": false,
|
57
|
-
"complexType": {
|
58
|
-
"original": "boolean",
|
59
|
-
"resolved": "boolean",
|
60
|
-
"references": {}
|
61
|
-
},
|
62
|
-
"required": false,
|
63
|
-
"optional": false,
|
64
|
-
"docs": {
|
65
|
-
"tags": [],
|
66
|
-
"text": ""
|
67
|
-
},
|
68
|
-
"attribute": "loading",
|
69
|
-
"reflect": false
|
70
|
-
},
|
71
|
-
"applyName": {
|
72
|
-
"type": "unknown",
|
73
|
-
"mutable": false,
|
74
|
-
"complexType": {
|
75
|
-
"original": "(value: string) => void",
|
76
|
-
"resolved": "(value: string) => void",
|
77
|
-
"references": {}
|
78
|
-
},
|
79
|
-
"required": false,
|
80
|
-
"optional": false,
|
81
|
-
"docs": {
|
82
|
-
"tags": [],
|
83
|
-
"text": ""
|
84
|
-
}
|
85
|
-
},
|
86
|
-
"cancel": {
|
87
|
-
"type": "unknown",
|
88
|
-
"mutable": false,
|
89
|
-
"complexType": {
|
90
|
-
"original": "() => void",
|
91
|
-
"resolved": "() => void",
|
92
|
-
"references": {}
|
93
|
-
},
|
94
|
-
"required": false,
|
95
|
-
"optional": false,
|
96
|
-
"docs": {
|
97
|
-
"tags": [],
|
98
|
-
"text": ""
|
99
|
-
}
|
100
|
-
}
|
101
|
-
};
|
102
|
-
}
|
103
|
-
static get states() {
|
104
|
-
return {
|
105
|
-
"newValue": {},
|
106
|
-
"message": {}
|
107
|
-
};
|
108
|
-
}
|
109
|
-
}
|
110
|
-
//# sourceMappingURL=name-input.js.map
|
package/dist/collection/components/crm-bonus-form/subcomponents/name-input/name-input.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"name-input.js","sourceRoot":"","sources":["../../../../../../src/components/crm-bonus-form/subcomponents/name-input/name-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAM1D,MAAM,OAAO,SAAS;;;;;;;;;IAWlB,gBAAgB,CAAC,KAAU;QACvB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;IACvC,CAAC;IAGD,aAAa,CAAC,IAAY;QACtB,IAAG,CAAC,IAAI,EAAE,CAAC;YACP,IAAI,CAAC,OAAO,GAAG,kBAAkB,CAAC;YAClC,OAAM;QACV,CAAC;QAED,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;IAED,MAAM;QACF,OAAO,CACH,4DAAK,KAAK,EAAC,gBAAgB;YACvB,wEAAgB;YAChB,8DAAO,KAAK,EAAC,iBAAiB,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAI;YAEnH,4DAAK,IAAI,CAAC,OAAO,CAAM;YAMvB,4DAAK,KAAK,EAAC,eAAe;gBACtB,+DAAQ,KAAK,EAAC,eAAe,EAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,eAEzE;gBACT,+DAAQ,KAAK,EAAE,UAAU,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,IAE5H,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,uBAAiB,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,MAAM,GAAG,CAExE,CACP,CACJ,CACT,CAAA;IACL,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Prop, State, h } from \"@stencil/core\";\n\n@Component({\n tag: 'name-input',\n styleUrl: 'name-input.css'\n})\nexport class NameInput {\n\n @Prop() value: string;\n\n @Prop() loading: boolean;\n @Prop() applyName: (value: string) => void;\n @Prop() cancel: () => void;\n \n @State() newValue: string;\n @State() message: string;\n\n handleChangeName(event: any) {\n this.newValue = event.target.value;\n }\n\n\n handleSetName(name: string) {\n if(!name) {\n this.message = \"Informe seu nome\";\n return\n }\n\n this.applyName(name);\n }\n\n render() {\n return (\n <div class=\"name-container\">\n <p>Seu Nome:</p>\n <input class=\"bc-form-control\" type=\"text\" value={this.value} onChange={(event) => this.handleChangeName(event)} />\n\n <p>{ this.message }</p>\n\n {/* <div class=\"bc-footer-btn\">\n <button class=\"bc-btn bc-btn-process\" onClick={() => this.applyName(this.newValue)} >Prosseguir</button>\n </div> */}\n\n <div class=\"footer-button\">\n <button class=\"button-cancel\" disabled={this.loading} onClick={() => this.cancel()}>\n Cancelar\n </button>\n <button class={`button ${this.loading ? 'disabled' : ''} `} disabled={this.loading} onClick={() => this.handleSetName(this.newValue)}>\n {\n !this.loading ? \"Continua\" : <loading-spinner size=\"15px\" color=\"#fff\" />\n }\n </button>\n </div>\n </div>\n )\n }\n}"]}
|
@@ -1,75 +0,0 @@
|
|
1
|
-
import { h } from "@stencil/core";
|
2
|
-
export class PhoneInput {
|
3
|
-
constructor() {
|
4
|
-
this.sendPin = undefined;
|
5
|
-
this.loading = undefined;
|
6
|
-
this.value = undefined;
|
7
|
-
}
|
8
|
-
async validatePhone() {
|
9
|
-
const phone = await this.phoneInputMask.getPhone();
|
10
|
-
await this.sendPin(phone);
|
11
|
-
}
|
12
|
-
render() {
|
13
|
-
return (h("div", { key: 'd3ee09e421622260d428d9e396146662f26310ef', class: "form-container" }, h("phone-input-mask", { key: 'b2fa78c95364bbe36e67d9aea0cfb8d9f50c7e41', initialValue: this.value, ref: ref => this.phoneInputMask = ref }), h("button", { key: '127ec969c421ccfb7c959c0269fa62879494255b', class: `btn btn-success btnCrm ${this.loading ? 'disabled' : ''} `, disabled: this.loading, onClick: () => this.validatePhone() }, !this.loading ? "validar" : h("loading-spinner", { size: "11px", color: "#fff" }))));
|
14
|
-
}
|
15
|
-
static get is() { return "phone-input"; }
|
16
|
-
static get properties() {
|
17
|
-
return {
|
18
|
-
"sendPin": {
|
19
|
-
"type": "unknown",
|
20
|
-
"mutable": false,
|
21
|
-
"complexType": {
|
22
|
-
"original": "Function",
|
23
|
-
"resolved": "Function",
|
24
|
-
"references": {
|
25
|
-
"Function": {
|
26
|
-
"location": "global",
|
27
|
-
"id": "global::Function"
|
28
|
-
}
|
29
|
-
}
|
30
|
-
},
|
31
|
-
"required": false,
|
32
|
-
"optional": false,
|
33
|
-
"docs": {
|
34
|
-
"tags": [],
|
35
|
-
"text": ""
|
36
|
-
}
|
37
|
-
},
|
38
|
-
"loading": {
|
39
|
-
"type": "boolean",
|
40
|
-
"mutable": false,
|
41
|
-
"complexType": {
|
42
|
-
"original": "boolean",
|
43
|
-
"resolved": "boolean",
|
44
|
-
"references": {}
|
45
|
-
},
|
46
|
-
"required": false,
|
47
|
-
"optional": false,
|
48
|
-
"docs": {
|
49
|
-
"tags": [],
|
50
|
-
"text": ""
|
51
|
-
},
|
52
|
-
"attribute": "loading",
|
53
|
-
"reflect": false
|
54
|
-
},
|
55
|
-
"value": {
|
56
|
-
"type": "string",
|
57
|
-
"mutable": false,
|
58
|
-
"complexType": {
|
59
|
-
"original": "string",
|
60
|
-
"resolved": "string",
|
61
|
-
"references": {}
|
62
|
-
},
|
63
|
-
"required": false,
|
64
|
-
"optional": false,
|
65
|
-
"docs": {
|
66
|
-
"tags": [],
|
67
|
-
"text": ""
|
68
|
-
},
|
69
|
-
"attribute": "value",
|
70
|
-
"reflect": false
|
71
|
-
}
|
72
|
-
};
|
73
|
-
}
|
74
|
-
}
|
75
|
-
//# sourceMappingURL=phone.input.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"phone.input.js","sourceRoot":"","sources":["../../../../../../src/components/crm-bonus-form/subcomponents/phone/phone.input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAKnD,MAAM,OAAO,UAAU;;;;;;IAQnB,KAAK,CAAC,aAAa;QACf,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC;QACnD,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;IAED,MAAM;QACF,OAAO,CACH,4DAAK,KAAK,EAAC,gBAAgB;YACvB,yEAAkB,YAAY,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,cAAc,GAAG,GAAG,GAAI;YACrF,+DAAQ,KAAK,EAAE,0BAA0B,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,IAE/H,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,uBAAiB,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,MAAM,GAAG,CAEvE,CACP,CACT,CAAA;IACL,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Prop, h } from \"@stencil/core\";\n\n@Component({\n tag: 'phone-input'\n})\nexport class PhoneInput {\n\n private phoneInputMask: HTMLPhoneInputMaskElement;\n\n @Prop() sendPin: Function;\n @Prop() loading: boolean;\n @Prop() value: string;\n\n async validatePhone() {\n const phone = await this.phoneInputMask.getPhone();\n await this.sendPin(phone);\n }\n\n render() {\n return (\n <div class=\"form-container\">\n <phone-input-mask initialValue={this.value} ref={ref => this.phoneInputMask = ref} />\n <button class={`btn btn-success btnCrm ${this.loading ? 'disabled' : ''} `} disabled={this.loading} onClick={() => this.validatePhone()}>\n {\n !this.loading ? \"validar\" : <loading-spinner size=\"11px\" color=\"#fff\" />\n }\n </button>\n </div>\n )\n }\n}"]}
|
package/dist/collection/components/crm-bonus-form/subcomponents/phone-cancel/phone.cancel.input.js
DELETED
@@ -1,75 +0,0 @@
|
|
1
|
-
import { h } from "@stencil/core";
|
2
|
-
export class PhoneCancelInput {
|
3
|
-
constructor() {
|
4
|
-
this.sendPin = undefined;
|
5
|
-
this.loading = undefined;
|
6
|
-
this.value = undefined;
|
7
|
-
}
|
8
|
-
async validatePhone() {
|
9
|
-
const phone = await this.phoneInputMask.getPhone();
|
10
|
-
await this.sendPin(phone);
|
11
|
-
}
|
12
|
-
render() {
|
13
|
-
return (h("div", { key: '43b8b975dfd6896fdcd1e626d331bf61caeb65b9', class: "form-container" }, h("phone-input-mask", { key: '983d8d245c175ba231be50205f62881a2ea53244', initialValue: `Valor aplicado R$ ${this.value}`, ref: ref => this.phoneInputMask = ref, disabled: true }), h("button", { key: '94fad9eeada065984efd1a552003809706d88ce4', class: `btn btn-success btnCrm ${this.loading ? 'disabled' : ''} `, disabled: this.loading, onClick: () => this.validatePhone() }, !this.loading ? "Cancelar" : h("loading-spinner", { size: "11px", color: "#fff" }))));
|
14
|
-
}
|
15
|
-
static get is() { return "phone-cancel-input"; }
|
16
|
-
static get properties() {
|
17
|
-
return {
|
18
|
-
"sendPin": {
|
19
|
-
"type": "unknown",
|
20
|
-
"mutable": false,
|
21
|
-
"complexType": {
|
22
|
-
"original": "Function",
|
23
|
-
"resolved": "Function",
|
24
|
-
"references": {
|
25
|
-
"Function": {
|
26
|
-
"location": "global",
|
27
|
-
"id": "global::Function"
|
28
|
-
}
|
29
|
-
}
|
30
|
-
},
|
31
|
-
"required": false,
|
32
|
-
"optional": false,
|
33
|
-
"docs": {
|
34
|
-
"tags": [],
|
35
|
-
"text": ""
|
36
|
-
}
|
37
|
-
},
|
38
|
-
"loading": {
|
39
|
-
"type": "boolean",
|
40
|
-
"mutable": false,
|
41
|
-
"complexType": {
|
42
|
-
"original": "boolean",
|
43
|
-
"resolved": "boolean",
|
44
|
-
"references": {}
|
45
|
-
},
|
46
|
-
"required": false,
|
47
|
-
"optional": false,
|
48
|
-
"docs": {
|
49
|
-
"tags": [],
|
50
|
-
"text": ""
|
51
|
-
},
|
52
|
-
"attribute": "loading",
|
53
|
-
"reflect": false
|
54
|
-
},
|
55
|
-
"value": {
|
56
|
-
"type": "string",
|
57
|
-
"mutable": false,
|
58
|
-
"complexType": {
|
59
|
-
"original": "string",
|
60
|
-
"resolved": "string",
|
61
|
-
"references": {}
|
62
|
-
},
|
63
|
-
"required": false,
|
64
|
-
"optional": false,
|
65
|
-
"docs": {
|
66
|
-
"tags": [],
|
67
|
-
"text": ""
|
68
|
-
},
|
69
|
-
"attribute": "value",
|
70
|
-
"reflect": false
|
71
|
-
}
|
72
|
-
};
|
73
|
-
}
|
74
|
-
}
|
75
|
-
//# sourceMappingURL=phone.cancel.input.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"phone.cancel.input.js","sourceRoot":"","sources":["../../../../../../src/components/crm-bonus-form/subcomponents/phone-cancel/phone.cancel.input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAKnD,MAAM,OAAO,gBAAgB;;;;;;IAQzB,KAAK,CAAC,aAAa;QACf,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC;QACnD,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC9B,CAAC;IAED,MAAM;QACF,OAAO,CACH,4DAAK,KAAK,EAAC,gBAAgB;YACvB,yEAAkB,YAAY,EAAE,qBAAqB,IAAI,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,cAAc,GAAG,GAAG,EAAE,QAAQ,EAAE,IAAI,GAAI;YAC5H,+DAAQ,KAAK,EAAE,0BAA0B,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,IAE/H,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,uBAAiB,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,MAAM,GAAG,CAExE,CACP,CACT,CAAA;IACL,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Prop, h } from \"@stencil/core\";\n\n@Component({\n tag: 'phone-cancel-input'\n})\nexport class PhoneCancelInput {\n\n private phoneInputMask: HTMLPhoneInputMaskElement;\n\n @Prop() sendPin: Function;\n @Prop() loading: boolean;\n @Prop() value: string;\n\n async validatePhone() {\n const phone = await this.phoneInputMask.getPhone();\n await this.sendPin(phone);\n }\n\n render() {\n return (\n <div class=\"form-container\">\n <phone-input-mask initialValue={`Valor aplicado R$ ${this.value}`} ref={ref => this.phoneInputMask = ref} disabled={true} />\n <button class={`btn btn-success btnCrm ${this.loading ? 'disabled' : ''} `} disabled={this.loading} onClick={() => this.validatePhone()}>\n {\n !this.loading ? \"Cancelar\" : <loading-spinner size=\"11px\" color=\"#fff\" />\n }\n </button>\n </div>\n )\n }\n}"]}
|