crmbonus-component-wake 2.0.128 → 2.0.130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/app-modal.cjs.entry.js +28 -0
- package/dist/cjs/app-modal.cjs.entry.js.map +1 -0
- package/dist/cjs/cart.helper-d4d8d619.js +77 -0
- package/dist/cjs/cart.helper-d4d8d619.js.map +1 -0
- package/dist/cjs/countdown-timer_2.cjs.entry.js +63 -0
- package/dist/cjs/countdown-timer_2.cjs.entry.js.map +1 -0
- package/dist/cjs/crm-bonus-form.cjs.entry.js +104 -0
- package/dist/cjs/crm-bonus-form.cjs.entry.js.map +1 -0
- package/dist/cjs/crm-bonus-note.cjs.entry.js +101 -0
- package/dist/cjs/crm-bonus-note.cjs.entry.js.map +1 -0
- package/dist/cjs/crm-bonus.cjs.entry.js +249 -0
- package/dist/cjs/crm-bonus.cjs.entry.js.map +1 -0
- package/dist/cjs/crm-giftback-form_2.cjs.entry.js +253 -0
- package/dist/{crmbonus-component-wake/crm-giftback-form.entry.js.map → cjs/crm-giftback-form_2.cjs.entry.js.map} +1 -1
- package/dist/cjs/crm-tooltip_4.cjs.entry.js +211 -0
- package/dist/cjs/crm-tooltip_4.cjs.entry.js.map +1 -0
- package/dist/cjs/crmbonus-component-wake.cjs.js +27 -0
- package/dist/cjs/crmbonus-component-wake.cjs.js.map +1 -0
- package/dist/cjs/crmbonus.service-9067d00d.js +3877 -0
- package/dist/cjs/crmbonus.service-9067d00d.js.map +1 -0
- package/dist/cjs/giftback-finish_4.cjs.entry.js +131 -0
- package/dist/cjs/giftback-finish_4.cjs.entry.js.map +1 -0
- package/dist/cjs/i18n-f2a6f60e.js +2219 -0
- package/dist/cjs/i18n-f2a6f60e.js.map +1 -0
- package/dist/cjs/index-6054ed44.js +21 -0
- package/dist/cjs/index-6054ed44.js.map +1 -0
- package/dist/cjs/index-d11684bd.js +1599 -0
- package/dist/cjs/index-d11684bd.js.map +1 -0
- package/dist/cjs/index.cjs.js +11 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/info.config.helper-c5d9f781.js +16 -0
- package/dist/cjs/info.config.helper-c5d9f781.js.map +1 -0
- package/dist/cjs/keys.storage-de7744aa.js +17 -0
- package/dist/cjs/keys.storage-de7744aa.js.map +1 -0
- package/dist/cjs/loader.cjs.js +17 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/loading-spinner.cjs.entry.js +24 -0
- package/dist/cjs/loading-spinner.cjs.entry.js.map +1 -0
- package/dist/cjs/pedido-finalizado.cjs.entry.js +39 -0
- package/dist/cjs/pedido-finalizado.cjs.entry.js.map +1 -0
- package/dist/cjs/phone-cancel-input.cjs.entry.js +25 -0
- package/dist/cjs/phone-cancel-input.cjs.entry.js.map +1 -0
- package/dist/cjs/phone-input-mask.cjs.entry.js +61 -0
- package/dist/cjs/phone-input-mask.cjs.entry.js.map +1 -0
- package/dist/cjs/phone-input.cjs.entry.js +25 -0
- package/dist/cjs/phone-input.cjs.entry.js.map +1 -0
- package/dist/cjs/utils-e9413ee3.js +25 -0
- package/dist/cjs/utils-e9413ee3.js.map +1 -0
- package/dist/collection/assets/svg/info-circle-svgrepo-com.svg +6 -0
- package/dist/collection/assets/svg/money-dollars-svgrepo-com.svg +6 -0
- package/dist/collection/collection-manifest.json +32 -0
- package/dist/collection/components/button/crm-button.css +22 -0
- package/dist/collection/components/button/index.js +76 -0
- package/dist/collection/components/button/index.js.map +1 -0
- package/dist/collection/components/countdown-timer/countdown-timer.js +81 -0
- package/dist/collection/components/countdown-timer/countdown-timer.js.map +1 -0
- package/dist/collection/components/crm-bonus/assets/logo.svg +18 -0
- package/dist/collection/components/crm-bonus/assets/success-svgrepo-com.svg +8 -0
- package/dist/collection/components/crm-bonus/assets/svg/logo.svg +18 -0
- package/dist/collection/components/crm-bonus/assets/svg/success-svgrepo-com.svg +8 -0
- package/dist/collection/components/crm-bonus/crm-bonus.css +84 -0
- package/dist/collection/components/crm-bonus/crm-bonus.js +313 -0
- package/dist/collection/components/crm-bonus/crm-bonus.js.map +1 -0
- package/dist/collection/components/crm-bonus-form/crm-bonus-form.css +19 -0
- package/dist/collection/components/crm-bonus-form/crm-bonus-form.js +348 -0
- package/dist/collection/components/crm-bonus-form/crm-bonus-form.js.map +1 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/giftback-finish/giftback-finish.css +10 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/giftback-finish/giftback-finish.js +20 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/giftback-finish/giftback-finish.js.map +1 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/giftback-pin/giftback-pin.css +70 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/giftback-pin/giftback-pin.js +126 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/giftback-pin/giftback-pin.js.map +1 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/giftback-progress/giftback-progress.css +110 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/giftback-progress/giftback-progress.js +127 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/giftback-progress/giftback-progress.js.map +1 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/name-input/name-input.css +108 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/name-input/name-input.js +110 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/name-input/name-input.js.map +1 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/phone/phone.input.js +75 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/phone/phone.input.js.map +1 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/phone-cancel/phone.cancel.input.js +75 -0
- package/dist/collection/components/crm-bonus-form/subcomponents/phone-cancel/phone.cancel.input.js.map +1 -0
- package/dist/collection/components/giftback-form/giftback-form.css +75 -0
- package/dist/collection/components/giftback-form/giftback-form.js +410 -0
- package/dist/collection/components/giftback-form/giftback-form.js.map +1 -0
- package/dist/collection/components/giftback-form/subcomponents/giftback-info/giftback-info.css +181 -0
- package/dist/collection/components/giftback-form/subcomponents/giftback-info/giftback-info.js +221 -0
- package/dist/collection/components/giftback-form/subcomponents/giftback-info/giftback-info.js.map +1 -0
- package/dist/collection/components/giftback-form/subcomponents/giftback-message/giftback-massage.js +11 -0
- package/dist/collection/components/giftback-form/subcomponents/giftback-message/giftback-massage.js.map +1 -0
- package/dist/collection/components/giftback-form/subcomponents/phone-form/phone-form.js +103 -0
- package/dist/collection/components/giftback-form/subcomponents/phone-form/phone-form.js.map +1 -0
- package/dist/collection/components/giftback-form/subcomponents/pin-form/pin-form.css +84 -0
- package/dist/collection/components/giftback-form/subcomponents/pin-form/pin-form.js +197 -0
- package/dist/collection/components/giftback-form/subcomponents/pin-form/pin-form.js.map +1 -0
- package/dist/collection/components/loading-container/loading-container.css +47 -0
- package/dist/collection/components/loading-container/loading-container.js +43 -0
- package/dist/collection/components/loading-container/loading-container.js.map +1 -0
- package/dist/collection/components/loading-spinner/loading-spinner.css +17 -0
- package/dist/collection/components/loading-spinner/loading-spinner.js +63 -0
- package/dist/collection/components/loading-spinner/loading-spinner.js.map +1 -0
- package/dist/collection/components/modal/app-modal.css +45 -0
- package/dist/collection/components/modal/app-modal.js +83 -0
- package/dist/collection/components/modal/app-modal.js.map +1 -0
- package/dist/collection/components/note/crm-bonus-note.css +71 -0
- package/dist/collection/components/note/crm-bonus-note.js +117 -0
- package/dist/collection/components/note/crm-bonus-note.js.map +1 -0
- package/dist/collection/components/pedido/pedido.js +52 -0
- package/dist/collection/components/pedido/pedido.js.map +1 -0
- package/dist/collection/components/phone/phone-input-mask.css +40 -0
- package/dist/collection/components/phone/phone-input-mask.js +125 -0
- package/dist/collection/components/phone/phone-input-mask.js.map +1 -0
- package/dist/collection/components/tooltip/crm-tooltip.css +49 -0
- package/dist/collection/components/tooltip/tooltip.js +61 -0
- package/dist/collection/components/tooltip/tooltip.js.map +1 -0
- package/dist/collection/contants/index.js +16 -0
- package/dist/collection/contants/index.js.map +1 -0
- package/dist/collection/contants/mocks.js +28 -0
- package/dist/collection/contants/mocks.js.map +1 -0
- package/dist/collection/dto/pin.sent.js +2 -0
- package/dist/collection/dto/pin.sent.js.map +1 -0
- package/dist/collection/dto/update.order.dto.js +2 -0
- package/dist/collection/dto/update.order.dto.js.map +1 -0
- package/dist/collection/dto/validate.pin.bonus.js +5 -0
- package/dist/collection/dto/validate.pin.bonus.js.map +1 -0
- package/dist/collection/helpers/build.payload.helper.js +25 -0
- package/dist/collection/helpers/build.payload.helper.js.map +1 -0
- package/dist/collection/helpers/cart.helper.js +27 -0
- package/dist/collection/helpers/cart.helper.js.map +1 -0
- package/dist/collection/helpers/info.config.helper.js +11 -0
- package/dist/collection/helpers/info.config.helper.js.map +1 -0
- package/dist/collection/helpers/time.helper.js +12 -0
- package/dist/collection/helpers/time.helper.js.map +1 -0
- package/dist/collection/i18n/i18n.js +35 -0
- package/dist/collection/i18n/i18n.js.map +1 -0
- package/dist/collection/index.js +11 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/objectvalues/cart.wake.js +46 -0
- package/dist/collection/objectvalues/cart.wake.js.map +1 -0
- package/dist/collection/services/crmbonus.service.js +118 -0
- package/dist/collection/services/crmbonus.service.js.map +1 -0
- package/dist/collection/utils/keys.storage.js +9 -0
- package/dist/collection/utils/keys.storage.js.map +1 -0
- package/dist/{crmbonus-component-wake/utils-96cf9ae0.js → collection/utils/utils.js} +5 -8
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/components/app-modal.js +46 -0
- package/dist/components/app-modal.js.map +1 -0
- package/dist/components/countdown-timer.js +8 -0
- package/dist/components/countdown-timer.js.map +1 -0
- package/dist/components/crm-bonus-form.js +165 -0
- package/dist/components/crm-bonus-form.js.map +1 -0
- package/dist/components/crm-bonus-note.js +139 -0
- package/dist/components/crm-bonus-note.js.map +1 -0
- package/dist/components/crm-bonus.js +339 -0
- package/dist/components/crm-bonus.js.map +1 -0
- package/dist/components/crm-button.js +8 -0
- package/dist/components/crm-button.js.map +1 -0
- package/dist/components/crm-giftback-form.js +8 -0
- package/dist/components/crm-giftback-form.js.map +1 -0
- package/dist/components/crm-tooltip.js +8 -0
- package/dist/components/crm-tooltip.js.map +1 -0
- package/dist/components/giftback-finish.js +8 -0
- package/dist/components/giftback-finish.js.map +1 -0
- package/dist/components/giftback-info.js +8 -0
- package/dist/components/giftback-info.js.map +1 -0
- package/dist/components/giftback-pin.js +8 -0
- package/dist/components/giftback-pin.js.map +1 -0
- package/dist/components/giftback-progress.js +8 -0
- package/dist/components/giftback-progress.js.map +1 -0
- package/dist/components/index.js +4 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/loading-container.js +8 -0
- package/dist/components/loading-container.js.map +1 -0
- package/dist/components/loading-spinner.js +8 -0
- package/dist/components/loading-spinner.js.map +1 -0
- package/dist/components/name-input.js +8 -0
- package/dist/components/name-input.js.map +1 -0
- package/dist/components/p-11085d9b.js +79 -0
- package/dist/components/p-11085d9b.js.map +1 -0
- package/dist/{crmbonus-component-wake/name-input.entry.js → components/p-246a3e9d.js} +37 -8
- package/dist/components/p-246a3e9d.js.map +1 -0
- package/dist/{crmbonus-component-wake/giftback-info.entry.js → components/p-2671d669.js} +52 -12
- package/dist/components/p-2671d669.js.map +1 -0
- package/dist/{crmbonus-component-wake/countdown-timer.entry.js → components/p-2b3b8d6b.js} +27 -7
- package/dist/components/p-2b3b8d6b.js.map +1 -0
- package/dist/components/p-3e84f78c.js +1408 -0
- package/dist/components/p-3e84f78c.js.map +1 -0
- package/dist/components/p-47f9da55.js +46 -0
- package/dist/components/p-47f9da55.js.map +1 -0
- package/dist/components/p-5443db37.js +316 -0
- package/dist/components/p-5443db37.js.map +1 -0
- package/dist/{crmbonus-component-wake/crm-tooltip.entry.js → components/p-58b97429.js} +27 -8
- package/dist/components/p-58b97429.js.map +1 -0
- package/dist/{crmbonus-component-wake/giftback-pin.entry.js → components/p-6186ddcc.js} +38 -8
- package/dist/components/p-6186ddcc.js.map +1 -0
- package/dist/{crmbonus-component-wake/phone-form.entry.js → components/p-6c546e48.js} +47 -8
- package/dist/components/p-6c546e48.js.map +1 -0
- package/dist/{crmbonus-component-wake/crmbonus.service-9f4c6fd7.js → components/p-6eda79c3.js} +93 -165
- package/dist/components/p-6eda79c3.js.map +1 -0
- package/dist/components/p-75ba7b9a.js +14 -0
- package/dist/components/p-75ba7b9a.js.map +1 -0
- package/dist/{crmbonus-component-wake/giftback-progress.entry.js → components/p-7c744cca.js} +37 -8
- package/dist/components/p-7c744cca.js.map +1 -0
- package/dist/components/p-7cfea8fe.js +19 -0
- package/dist/components/p-7cfea8fe.js.map +1 -0
- package/dist/{crmbonus-component-wake/pin-form.entry.js → components/p-83a12a8f.js} +56 -9
- package/dist/components/p-83a12a8f.js.map +1 -0
- package/dist/{crmbonus-component-wake/cart.helper-4e40ffa9.js → components/p-abbfbc98.js} +2 -3
- package/dist/components/p-abbfbc98.js.map +1 -0
- package/dist/{crmbonus-component-wake/giftback-finish.entry.js → components/p-b79c86a8.js} +25 -8
- package/dist/components/p-b79c86a8.js.map +1 -0
- package/dist/components/p-ba369e65.js +21 -0
- package/dist/components/p-ba369e65.js.map +1 -0
- package/dist/components/p-cc1ea33f.js +36 -0
- package/dist/components/p-cc1ea33f.js.map +1 -0
- package/dist/{crmbonus-component-wake/i18n-11138a2c.js → components/p-e8c19a64.js} +1 -16
- package/dist/components/p-e8c19a64.js.map +1 -0
- package/dist/components/p-f9aeffc1.js +12 -0
- package/dist/components/p-f9aeffc1.js.map +1 -0
- package/dist/components/p-fe9c3966.js +39 -0
- package/dist/components/p-fe9c3966.js.map +1 -0
- package/dist/components/pedido-finalizado.js +54 -0
- package/dist/components/pedido-finalizado.js.map +1 -0
- package/dist/components/phone-cancel-input.js +55 -0
- package/dist/components/phone-cancel-input.js.map +1 -0
- package/dist/components/phone-form.js +8 -0
- package/dist/components/phone-form.js.map +1 -0
- package/dist/components/phone-input-mask.js +8 -0
- package/dist/components/phone-input-mask.js.map +1 -0
- package/dist/components/phone-input.js +55 -0
- package/dist/components/phone-input.js.map +1 -0
- package/dist/components/pin-form.js +8 -0
- package/dist/components/pin-form.js.map +1 -0
- package/dist/crmbonus-component-wake/crmbonus-component-wake.css +1 -7
- package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js +1 -48
- package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js.map +1 -1
- package/dist/crmbonus-component-wake/index.esm.js +1 -12
- package/dist/crmbonus-component-wake/index.esm.js.map +1 -1
- package/dist/crmbonus-component-wake/p-03b77c41.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-03b77c41.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/p-3d6152b1.js +3 -0
- package/dist/crmbonus-component-wake/p-3d6152b1.js.map +1 -0
- package/dist/crmbonus-component-wake/p-620ec1a3.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-620ec1a3.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/p-6eda79c3.js +2 -0
- package/dist/crmbonus-component-wake/p-6eda79c3.js.map +1 -0
- package/dist/crmbonus-component-wake/p-74206c91.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-74206c91.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/p-75ba7b9a.js +2 -0
- package/dist/crmbonus-component-wake/p-75ba7b9a.js.map +1 -0
- package/dist/crmbonus-component-wake/p-7b7fb354.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-7b7fb354.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/p-7cfea8fe.js +2 -0
- package/dist/crmbonus-component-wake/p-7cfea8fe.js.map +1 -0
- package/dist/crmbonus-component-wake/p-885fc30e.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-885fc30e.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/p-8df3f949.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-8df3f949.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/p-90716188.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-90716188.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/p-a33f7c24.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-a33f7c24.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/p-abbfbc98.js +2 -0
- package/dist/crmbonus-component-wake/p-abbfbc98.js.map +1 -0
- package/dist/crmbonus-component-wake/p-b7a8f915.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-b7a8f915.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/p-ba369e65.js +2 -0
- package/dist/crmbonus-component-wake/p-ba369e65.js.map +1 -0
- package/dist/crmbonus-component-wake/p-be3ddacc.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-be3ddacc.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/p-c23f3a07.entry.js +2 -0
- package/dist/crmbonus-component-wake/{crm-bonus-form.entry.js.map → p-c23f3a07.entry.js.map} +1 -1
- package/dist/crmbonus-component-wake/p-e1255160.js +2 -0
- package/dist/crmbonus-component-wake/p-e1255160.js.map +1 -0
- package/dist/crmbonus-component-wake/p-e8bd92d1.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-e8bd92d1.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/p-e8c19a64.js +2 -0
- package/dist/crmbonus-component-wake/p-e8c19a64.js.map +1 -0
- package/dist/crmbonus-component-wake/p-f9aeffc1.js +2 -0
- package/dist/crmbonus-component-wake/p-f9aeffc1.js.map +1 -0
- package/dist/crmbonus-component-wake/p-fad20959.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-fad20959.entry.js.map +1 -0
- package/dist/env.js +3 -0
- package/dist/env.js.map +1 -0
- package/dist/{crmbonus-component-wake → esm}/app-modal.entry.js +3 -2
- package/dist/esm/app-modal.entry.js.map +1 -0
- package/dist/{crmbonus-component-wake/cart.helper-a921d7f9.js → esm/cart.helper-30a40560.js} +2 -3
- package/dist/esm/cart.helper-30a40560.js.map +1 -0
- package/dist/esm/countdown-timer_2.entry.js +58 -0
- package/dist/esm/countdown-timer_2.entry.js.map +1 -0
- package/dist/{crmbonus-component-wake → esm}/crm-bonus-form.entry.js +5 -4
- package/dist/esm/crm-bonus-form.entry.js.map +1 -0
- package/dist/{crmbonus-component-wake → esm}/crm-bonus-note.entry.js +10 -9
- package/dist/esm/crm-bonus-note.entry.js.map +1 -0
- package/dist/{crmbonus-component-wake → esm}/crm-bonus.entry.js +8 -7
- package/dist/esm/crm-bonus.entry.js.map +1 -0
- package/dist/{crmbonus-component-wake/crm-giftback-form.entry.js → esm/crm-giftback-form_2.entry.js} +26 -11
- package/dist/esm/crm-giftback-form_2.entry.js.map +1 -0
- package/dist/esm/crm-tooltip_4.entry.js +204 -0
- package/dist/esm/crm-tooltip_4.entry.js.map +1 -0
- package/dist/esm/crmbonus-component-wake.js +22 -0
- package/dist/esm/crmbonus-component-wake.js.map +1 -0
- package/dist/{crmbonus-component-wake/crmbonus.service-67550994.js → esm/crmbonus.service-42fbd7fa.js} +90 -162
- package/dist/esm/crmbonus.service-42fbd7fa.js.map +1 -0
- package/dist/esm/giftback-finish_4.entry.js +124 -0
- package/dist/esm/giftback-finish_4.entry.js.map +1 -0
- package/dist/esm/i18n-e8150dff.js +2217 -0
- package/dist/{crmbonus-component-wake/i18n-11138a2c.js.map → esm/i18n-e8150dff.js.map} +1 -1
- package/dist/esm/index-e8724c8f.js +1571 -0
- package/dist/esm/index-e8724c8f.js.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +13 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/{crmbonus-component-wake → esm}/loading-spinner.entry.js +3 -2
- package/dist/esm/loading-spinner.entry.js.map +1 -0
- package/dist/{crmbonus-component-wake → esm}/pedido-finalizado.entry.js +4 -4
- package/dist/esm/pedido-finalizado.entry.js.map +1 -0
- package/dist/{crmbonus-component-wake → esm}/phone-cancel-input.entry.js +1 -1
- package/dist/esm/phone-cancel-input.entry.js.map +1 -0
- package/dist/{crmbonus-component-wake → esm}/phone-input-mask.entry.js +3 -2
- package/dist/esm/phone-input-mask.entry.js.map +1 -0
- package/dist/{crmbonus-component-wake → esm}/phone-input.entry.js +1 -1
- package/dist/esm/phone-input.entry.js.map +1 -0
- package/dist/esm/utils-d642b4db.js +21 -0
- package/dist/esm/utils-d642b4db.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +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/crmbonus-component-wake/app-modal.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/cart.helper-4e40ffa9.js.map +0 -1
- package/dist/crmbonus-component-wake/cart.helper-a921d7f9.js.map +0 -1
- package/dist/crmbonus-component-wake/countdown-timer.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/crm-bonus-note.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/crm-bonus.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/crm-button.entry.js +0 -20
- package/dist/crmbonus-component-wake/crm-button.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/crm-tooltip.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/crmbonus.service-67550994.js.map +0 -1
- package/dist/crmbonus-component-wake/crmbonus.service-9f4c6fd7.js.map +0 -1
- package/dist/crmbonus-component-wake/giftback-finish.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/giftback-info.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/giftback-pin.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/giftback-progress.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/index-d0fd1dc0.js +0 -3039
- package/dist/crmbonus-component-wake/index-d0fd1dc0.js.map +0 -1
- package/dist/crmbonus-component-wake/loading-container.entry.js +0 -18
- package/dist/crmbonus-component-wake/loading-container.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/loading-spinner.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/name-input.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/pedido-finalizado.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/phone-cancel-input.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/phone-form.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/phone-input-mask.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/phone-input.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/pin-form.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/shadow-css-7ad5caf8.js +0 -334
- package/dist/crmbonus-component-wake/shadow-css-7ad5caf8.js.map +0 -1
- package/dist/crmbonus-component-wake/utils-96cf9ae0.js.map +0 -1
- /package/dist/{crmbonus-component-wake → esm}/app-globals-0f993ce5.js +0 -0
- /package/dist/{crmbonus-component-wake → esm}/app-globals-0f993ce5.js.map +0 -0
- /package/dist/{crmbonus-component-wake → esm}/index-5b567099.js +0 -0
- /package/dist/{crmbonus-component-wake → esm}/index-5b567099.js.map +0 -0
- /package/dist/{crmbonus-component-wake → esm}/info.config.helper-42d9ddf9.js +0 -0
- /package/dist/{crmbonus-component-wake → esm}/info.config.helper-42d9ddf9.js.map +0 -0
- /package/dist/{crmbonus-component-wake → esm}/keys.storage-8c76fcd7.js +0 -0
- /package/dist/{crmbonus-component-wake → esm}/keys.storage-8c76fcd7.js.map +0 -0
@@ -1,15 +1,11 @@
|
|
1
1
|
import { U as USED_KEY, g as getKeyReserveByCartId, B as BYCODERS_KEY, a as getKeyConfigByStoreName } from './keys.storage-8c76fcd7.js';
|
2
2
|
|
3
|
-
'use strict';
|
4
|
-
|
5
3
|
function bind(fn, thisArg) {
|
6
4
|
return function wrap() {
|
7
5
|
return fn.apply(thisArg, arguments);
|
8
6
|
};
|
9
7
|
}
|
10
8
|
|
11
|
-
'use strict';
|
12
|
-
|
13
9
|
// utils is a library of generic helper functions non-specific to axios
|
14
10
|
|
15
11
|
const {toString} = Object.prototype;
|
@@ -767,8 +763,6 @@ const utils$1 = {
|
|
767
763
|
asap
|
768
764
|
};
|
769
765
|
|
770
|
-
'use strict';
|
771
|
-
|
772
766
|
/**
|
773
767
|
* Create an Error with the specified message, config, error code, request and response.
|
774
768
|
*
|
@@ -780,7 +774,7 @@ const utils$1 = {
|
|
780
774
|
*
|
781
775
|
* @returns {Error} The created error.
|
782
776
|
*/
|
783
|
-
function AxiosError
|
777
|
+
function AxiosError(message, code, config, request, response) {
|
784
778
|
Error.call(this);
|
785
779
|
|
786
780
|
if (Error.captureStackTrace) {
|
@@ -800,7 +794,7 @@ function AxiosError$1(message, code, config, request, response) {
|
|
800
794
|
}
|
801
795
|
}
|
802
796
|
|
803
|
-
utils$1.inherits(AxiosError
|
797
|
+
utils$1.inherits(AxiosError, Error, {
|
804
798
|
toJSON: function toJSON() {
|
805
799
|
return {
|
806
800
|
// Standard
|
@@ -822,7 +816,7 @@ utils$1.inherits(AxiosError$1, Error, {
|
|
822
816
|
}
|
823
817
|
});
|
824
818
|
|
825
|
-
const prototype$1 = AxiosError
|
819
|
+
const prototype$1 = AxiosError.prototype;
|
826
820
|
const descriptors = {};
|
827
821
|
|
828
822
|
[
|
@@ -843,11 +837,11 @@ const descriptors = {};
|
|
843
837
|
descriptors[code] = {value: code};
|
844
838
|
});
|
845
839
|
|
846
|
-
Object.defineProperties(AxiosError
|
840
|
+
Object.defineProperties(AxiosError, descriptors);
|
847
841
|
Object.defineProperty(prototype$1, 'isAxiosError', {value: true});
|
848
842
|
|
849
843
|
// eslint-disable-next-line func-names
|
850
|
-
AxiosError
|
844
|
+
AxiosError.from = (error, code, config, request, response, customProps) => {
|
851
845
|
const axiosError = Object.create(prototype$1);
|
852
846
|
|
853
847
|
utils$1.toFlatObject(error, axiosError, function filter(obj) {
|
@@ -856,7 +850,7 @@ AxiosError$1.from = (error, code, config, request, response, customProps) => {
|
|
856
850
|
return prop !== 'isAxiosError';
|
857
851
|
});
|
858
852
|
|
859
|
-
AxiosError
|
853
|
+
AxiosError.call(axiosError, error.message, code, config, request, response);
|
860
854
|
|
861
855
|
axiosError.cause = error;
|
862
856
|
|
@@ -870,8 +864,6 @@ AxiosError$1.from = (error, code, config, request, response, customProps) => {
|
|
870
864
|
// eslint-disable-next-line strict
|
871
865
|
const httpAdapter = null;
|
872
866
|
|
873
|
-
'use strict';
|
874
|
-
|
875
867
|
/**
|
876
868
|
* Determines if the given thing is a array or js object.
|
877
869
|
*
|
@@ -950,13 +942,13 @@ const predicates = utils$1.toFlatObject(utils$1, {}, null, function filter(prop)
|
|
950
942
|
*
|
951
943
|
* @returns
|
952
944
|
*/
|
953
|
-
function toFormData
|
945
|
+
function toFormData(obj, formData, options) {
|
954
946
|
if (!utils$1.isObject(obj)) {
|
955
947
|
throw new TypeError('target must be an object');
|
956
948
|
}
|
957
949
|
|
958
950
|
// eslint-disable-next-line no-param-reassign
|
959
|
-
formData = formData || new (
|
951
|
+
formData = formData || new (FormData)();
|
960
952
|
|
961
953
|
// eslint-disable-next-line no-param-reassign
|
962
954
|
options = utils$1.toFlatObject(options, {
|
@@ -988,7 +980,7 @@ function toFormData$1(obj, formData, options) {
|
|
988
980
|
}
|
989
981
|
|
990
982
|
if (!useBlob && utils$1.isBlob(value)) {
|
991
|
-
throw new AxiosError
|
983
|
+
throw new AxiosError('Blob is not supported. Use a Buffer instead.');
|
992
984
|
}
|
993
985
|
|
994
986
|
if (utils$1.isArrayBuffer(value) || utils$1.isTypedArray(value)) {
|
@@ -1083,8 +1075,6 @@ function toFormData$1(obj, formData, options) {
|
|
1083
1075
|
return formData;
|
1084
1076
|
}
|
1085
1077
|
|
1086
|
-
'use strict';
|
1087
|
-
|
1088
1078
|
/**
|
1089
1079
|
* It encodes a string by replacing all characters that are not in the unreserved set with
|
1090
1080
|
* their percent-encoded equivalents
|
@@ -1119,7 +1109,7 @@ function encode$1(str) {
|
|
1119
1109
|
function AxiosURLSearchParams(params, options) {
|
1120
1110
|
this._pairs = [];
|
1121
1111
|
|
1122
|
-
params && toFormData
|
1112
|
+
params && toFormData(params, this, options);
|
1123
1113
|
}
|
1124
1114
|
|
1125
1115
|
const prototype = AxiosURLSearchParams.prototype;
|
@@ -1138,8 +1128,6 @@ prototype.toString = function toString(encoder) {
|
|
1138
1128
|
}, '').join('&');
|
1139
1129
|
};
|
1140
1130
|
|
1141
|
-
'use strict';
|
1142
|
-
|
1143
1131
|
/**
|
1144
1132
|
* It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their
|
1145
1133
|
* URI encoded counterparts
|
@@ -1199,8 +1187,6 @@ function buildURL(url, params, options) {
|
|
1199
1187
|
return url;
|
1200
1188
|
}
|
1201
1189
|
|
1202
|
-
'use strict';
|
1203
|
-
|
1204
1190
|
class InterceptorManager {
|
1205
1191
|
constructor() {
|
1206
1192
|
this.handlers = [];
|
@@ -1267,7 +1253,7 @@ class InterceptorManager {
|
|
1267
1253
|
}
|
1268
1254
|
}
|
1269
1255
|
|
1270
|
-
|
1256
|
+
const InterceptorManager$1 = InterceptorManager;
|
1271
1257
|
|
1272
1258
|
const transitionalDefaults = {
|
1273
1259
|
silentJSONParsing: true,
|
@@ -1275,15 +1261,10 @@ const transitionalDefaults = {
|
|
1275
1261
|
clarifyTimeoutError: false
|
1276
1262
|
};
|
1277
1263
|
|
1278
|
-
'use strict';
|
1279
1264
|
const URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
|
1280
1265
|
|
1281
|
-
'use strict';
|
1282
|
-
|
1283
1266
|
const FormData$1 = typeof FormData !== 'undefined' ? FormData : null;
|
1284
1267
|
|
1285
|
-
'use strict';
|
1286
|
-
|
1287
1268
|
const Blob$1 = typeof Blob !== 'undefined' ? Blob : null;
|
1288
1269
|
|
1289
1270
|
const platform$1 = {
|
@@ -1354,10 +1335,8 @@ const platform = {
|
|
1354
1335
|
...platform$1
|
1355
1336
|
};
|
1356
1337
|
|
1357
|
-
'use strict';
|
1358
|
-
|
1359
1338
|
function toURLEncodedForm(data, options) {
|
1360
|
-
return toFormData
|
1339
|
+
return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
|
1361
1340
|
visitor: function(value, key, path, helpers) {
|
1362
1341
|
if (platform.isNode && utils$1.isBuffer(value)) {
|
1363
1342
|
this.append(key, value.toString('base64'));
|
@@ -1369,8 +1348,6 @@ function toURLEncodedForm(data, options) {
|
|
1369
1348
|
}, options));
|
1370
1349
|
}
|
1371
1350
|
|
1372
|
-
'use strict';
|
1373
|
-
|
1374
1351
|
/**
|
1375
1352
|
* It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
|
1376
1353
|
*
|
@@ -1461,8 +1438,6 @@ function formDataToJSON(formData) {
|
|
1461
1438
|
return null;
|
1462
1439
|
}
|
1463
1440
|
|
1464
|
-
'use strict';
|
1465
|
-
|
1466
1441
|
/**
|
1467
1442
|
* It takes a string, tries to parse it, and if it fails, it returns the stringified version
|
1468
1443
|
* of the input
|
@@ -1536,7 +1511,7 @@ const defaults = {
|
|
1536
1511
|
if ((isFileList = utils$1.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
|
1537
1512
|
const _FormData = this.env && this.env.FormData;
|
1538
1513
|
|
1539
|
-
return toFormData
|
1514
|
+
return toFormData(
|
1540
1515
|
isFileList ? {'files[]': data} : data,
|
1541
1516
|
_FormData && new _FormData(),
|
1542
1517
|
this.formSerializer
|
@@ -1570,7 +1545,7 @@ const defaults = {
|
|
1570
1545
|
} catch (e) {
|
1571
1546
|
if (strictJSONParsing) {
|
1572
1547
|
if (e.name === 'SyntaxError') {
|
1573
|
-
throw AxiosError
|
1548
|
+
throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
|
1574
1549
|
}
|
1575
1550
|
throw e;
|
1576
1551
|
}
|
@@ -1613,7 +1588,7 @@ utils$1.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {
|
|
1613
1588
|
defaults.headers[method] = {};
|
1614
1589
|
});
|
1615
1590
|
|
1616
|
-
|
1591
|
+
const defaults$1 = defaults;
|
1617
1592
|
|
1618
1593
|
// RawAxiosHeaders whose duplicates are ignored by node
|
1619
1594
|
// c.f. https://nodejs.org/api/http.html#http_message_headers
|
@@ -1667,8 +1642,6 @@ const parseHeaders = rawHeaders => {
|
|
1667
1642
|
return parsed;
|
1668
1643
|
};
|
1669
1644
|
|
1670
|
-
'use strict';
|
1671
|
-
|
1672
1645
|
const $internals = Symbol('internals');
|
1673
1646
|
|
1674
1647
|
function normalizeHeader(header) {
|
@@ -1737,7 +1710,7 @@ function buildAccessors(obj, header) {
|
|
1737
1710
|
});
|
1738
1711
|
}
|
1739
1712
|
|
1740
|
-
class AxiosHeaders
|
1713
|
+
class AxiosHeaders {
|
1741
1714
|
constructor(headers) {
|
1742
1715
|
headers && this.set(headers);
|
1743
1716
|
}
|
@@ -1950,10 +1923,10 @@ class AxiosHeaders$1 {
|
|
1950
1923
|
}
|
1951
1924
|
}
|
1952
1925
|
|
1953
|
-
AxiosHeaders
|
1926
|
+
AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
|
1954
1927
|
|
1955
1928
|
// reserved names hotfix
|
1956
|
-
utils$1.reduceDescriptors(AxiosHeaders
|
1929
|
+
utils$1.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {
|
1957
1930
|
let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`
|
1958
1931
|
return {
|
1959
1932
|
get: () => value,
|
@@ -1963,9 +1936,9 @@ utils$1.reduceDescriptors(AxiosHeaders$1.prototype, ({value}, key) => {
|
|
1963
1936
|
}
|
1964
1937
|
});
|
1965
1938
|
|
1966
|
-
utils$1.freezeMethods(AxiosHeaders
|
1939
|
+
utils$1.freezeMethods(AxiosHeaders);
|
1967
1940
|
|
1968
|
-
|
1941
|
+
const AxiosHeaders$1 = AxiosHeaders;
|
1969
1942
|
|
1970
1943
|
/**
|
1971
1944
|
* Transform the data for a request or a response
|
@@ -1976,7 +1949,7 @@ utils$1.freezeMethods(AxiosHeaders$1);
|
|
1976
1949
|
* @returns {*} The resulting transformed data
|
1977
1950
|
*/
|
1978
1951
|
function transformData(fns, response) {
|
1979
|
-
const config = this || defaults;
|
1952
|
+
const config = this || defaults$1;
|
1980
1953
|
const context = response || config;
|
1981
1954
|
const headers = AxiosHeaders$1.from(context.headers);
|
1982
1955
|
let data = context.data;
|
@@ -1990,14 +1963,10 @@ function transformData(fns, response) {
|
|
1990
1963
|
return data;
|
1991
1964
|
}
|
1992
1965
|
|
1993
|
-
|
1994
|
-
|
1995
|
-
function isCancel$1(value) {
|
1966
|
+
function isCancel(value) {
|
1996
1967
|
return !!(value && value.__CANCEL__);
|
1997
1968
|
}
|
1998
1969
|
|
1999
|
-
'use strict';
|
2000
|
-
|
2001
1970
|
/**
|
2002
1971
|
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
2003
1972
|
*
|
@@ -2007,18 +1976,16 @@ function isCancel$1(value) {
|
|
2007
1976
|
*
|
2008
1977
|
* @returns {CanceledError} The created error.
|
2009
1978
|
*/
|
2010
|
-
function CanceledError
|
1979
|
+
function CanceledError(message, config, request) {
|
2011
1980
|
// eslint-disable-next-line no-eq-null,eqeqeq
|
2012
|
-
AxiosError
|
1981
|
+
AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);
|
2013
1982
|
this.name = 'CanceledError';
|
2014
1983
|
}
|
2015
1984
|
|
2016
|
-
utils$1.inherits(CanceledError
|
1985
|
+
utils$1.inherits(CanceledError, AxiosError, {
|
2017
1986
|
__CANCEL__: true
|
2018
1987
|
});
|
2019
1988
|
|
2020
|
-
'use strict';
|
2021
|
-
|
2022
1989
|
/**
|
2023
1990
|
* Resolve or reject a Promise based on response status.
|
2024
1991
|
*
|
@@ -2033,9 +2000,9 @@ function settle(resolve, reject, response) {
|
|
2033
2000
|
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
2034
2001
|
resolve(response);
|
2035
2002
|
} else {
|
2036
|
-
reject(new AxiosError
|
2003
|
+
reject(new AxiosError(
|
2037
2004
|
'Request failed with status code ' + response.status,
|
2038
|
-
[AxiosError
|
2005
|
+
[AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
2039
2006
|
response.config,
|
2040
2007
|
response.request,
|
2041
2008
|
response
|
@@ -2043,15 +2010,11 @@ function settle(resolve, reject, response) {
|
|
2043
2010
|
}
|
2044
2011
|
}
|
2045
2012
|
|
2046
|
-
'use strict';
|
2047
|
-
|
2048
2013
|
function parseProtocol(url) {
|
2049
2014
|
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
2050
2015
|
return match && match[1] || '';
|
2051
2016
|
}
|
2052
2017
|
|
2053
|
-
'use strict';
|
2054
|
-
|
2055
2018
|
/**
|
2056
2019
|
* Calculate data maxRate
|
2057
2020
|
* @param {Number} [samplesCount= 10]
|
@@ -2188,8 +2151,6 @@ const progressEventDecorator = (total, throttled) => {
|
|
2188
2151
|
|
2189
2152
|
const asyncDecorator = (fn) => (...args) => utils$1.asap(() => fn(...args));
|
2190
2153
|
|
2191
|
-
'use strict';
|
2192
|
-
|
2193
2154
|
const isURLSameOrigin = platform.hasStandardBrowserEnv ?
|
2194
2155
|
|
2195
2156
|
// Standard browser envs have full support of the APIs needed to test
|
@@ -2292,8 +2253,6 @@ const cookies = platform.hasStandardBrowserEnv ?
|
|
2292
2253
|
remove() {}
|
2293
2254
|
};
|
2294
2255
|
|
2295
|
-
'use strict';
|
2296
|
-
|
2297
2256
|
/**
|
2298
2257
|
* Determines whether the specified URL is absolute
|
2299
2258
|
*
|
@@ -2308,8 +2267,6 @@ function isAbsoluteURL(url) {
|
|
2308
2267
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
2309
2268
|
}
|
2310
2269
|
|
2311
|
-
'use strict';
|
2312
|
-
|
2313
2270
|
/**
|
2314
2271
|
* Creates a new URL by combining the specified URLs
|
2315
2272
|
*
|
@@ -2324,8 +2281,6 @@ function combineURLs(baseURL, relativeURL) {
|
|
2324
2281
|
: baseURL;
|
2325
2282
|
}
|
2326
2283
|
|
2327
|
-
'use strict';
|
2328
|
-
|
2329
2284
|
/**
|
2330
2285
|
* Creates a new URL by combining the baseURL with the requestedURL,
|
2331
2286
|
* only when the requestedURL is not already an absolute URL.
|
@@ -2343,8 +2298,6 @@ function buildFullPath(baseURL, requestedURL) {
|
|
2343
2298
|
return requestedURL;
|
2344
2299
|
}
|
2345
2300
|
|
2346
|
-
'use strict';
|
2347
|
-
|
2348
2301
|
const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
|
2349
2302
|
|
2350
2303
|
/**
|
@@ -2356,7 +2309,7 @@ const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing
|
|
2356
2309
|
*
|
2357
2310
|
* @returns {Object} New object resulting from merging config2 to config1
|
2358
2311
|
*/
|
2359
|
-
function mergeConfig
|
2312
|
+
function mergeConfig(config1, config2) {
|
2360
2313
|
// eslint-disable-next-line no-param-reassign
|
2361
2314
|
config2 = config2 || {};
|
2362
2315
|
const config = {};
|
@@ -2448,7 +2401,7 @@ function mergeConfig$1(config1, config2) {
|
|
2448
2401
|
}
|
2449
2402
|
|
2450
2403
|
const resolveConfig = (config) => {
|
2451
|
-
const newConfig = mergeConfig
|
2404
|
+
const newConfig = mergeConfig({}, config);
|
2452
2405
|
|
2453
2406
|
let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;
|
2454
2407
|
|
@@ -2583,7 +2536,7 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
2583
2536
|
return;
|
2584
2537
|
}
|
2585
2538
|
|
2586
|
-
reject(new AxiosError
|
2539
|
+
reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));
|
2587
2540
|
|
2588
2541
|
// Clean up request
|
2589
2542
|
request = null;
|
@@ -2593,7 +2546,7 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
2593
2546
|
request.onerror = function handleError() {
|
2594
2547
|
// Real errors are hidden from us by the browser
|
2595
2548
|
// onerror should only fire if it's a network error
|
2596
|
-
reject(new AxiosError
|
2549
|
+
reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));
|
2597
2550
|
|
2598
2551
|
// Clean up request
|
2599
2552
|
request = null;
|
@@ -2606,9 +2559,9 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
2606
2559
|
if (_config.timeoutErrorMessage) {
|
2607
2560
|
timeoutErrorMessage = _config.timeoutErrorMessage;
|
2608
2561
|
}
|
2609
|
-
reject(new AxiosError
|
2562
|
+
reject(new AxiosError(
|
2610
2563
|
timeoutErrorMessage,
|
2611
|
-
transitional.clarifyTimeoutError ? AxiosError
|
2564
|
+
transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
|
2612
2565
|
config,
|
2613
2566
|
request));
|
2614
2567
|
|
@@ -2658,7 +2611,7 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
2658
2611
|
if (!request) {
|
2659
2612
|
return;
|
2660
2613
|
}
|
2661
|
-
reject(!cancel || cancel.type ? new CanceledError
|
2614
|
+
reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
|
2662
2615
|
request.abort();
|
2663
2616
|
request = null;
|
2664
2617
|
};
|
@@ -2672,7 +2625,7 @@ const xhrAdapter = isXHRAdapterSupported && function (config) {
|
|
2672
2625
|
const protocol = parseProtocol(_config.url);
|
2673
2626
|
|
2674
2627
|
if (protocol && platform.protocols.indexOf(protocol) === -1) {
|
2675
|
-
reject(new AxiosError
|
2628
|
+
reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));
|
2676
2629
|
return;
|
2677
2630
|
}
|
2678
2631
|
|
@@ -2695,13 +2648,13 @@ const composeSignals = (signals, timeout) => {
|
|
2695
2648
|
aborted = true;
|
2696
2649
|
unsubscribe();
|
2697
2650
|
const err = reason instanceof Error ? reason : this.reason;
|
2698
|
-
controller.abort(err instanceof AxiosError
|
2651
|
+
controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));
|
2699
2652
|
}
|
2700
2653
|
};
|
2701
2654
|
|
2702
2655
|
let timer = timeout && setTimeout(() => {
|
2703
2656
|
timer = null;
|
2704
|
-
onabort(new AxiosError
|
2657
|
+
onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT));
|
2705
2658
|
}, timeout);
|
2706
2659
|
|
2707
2660
|
const unsubscribe = () => {
|
@@ -2725,6 +2678,8 @@ const composeSignals = (signals, timeout) => {
|
|
2725
2678
|
}
|
2726
2679
|
};
|
2727
2680
|
|
2681
|
+
const composeSignals$1 = composeSignals;
|
2682
|
+
|
2728
2683
|
const streamChunk = function* (chunk, chunkSize) {
|
2729
2684
|
let len = chunk.byteLength;
|
2730
2685
|
|
@@ -2858,7 +2813,7 @@ isFetchSupported && (((res) => {
|
|
2858
2813
|
['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {
|
2859
2814
|
!resolvers[type] && (resolvers[type] = utils$1.isFunction(res[type]) ? (res) => res[type]() :
|
2860
2815
|
(_, config) => {
|
2861
|
-
throw new AxiosError
|
2816
|
+
throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);
|
2862
2817
|
});
|
2863
2818
|
});
|
2864
2819
|
})(new Response));
|
@@ -2917,7 +2872,7 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
2917
2872
|
|
2918
2873
|
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
2919
2874
|
|
2920
|
-
let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
2875
|
+
let composedSignal = composeSignals$1([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
2921
2876
|
|
2922
2877
|
let request;
|
2923
2878
|
|
@@ -3019,14 +2974,14 @@ const fetchAdapter = isFetchSupported && (async (config) => {
|
|
3019
2974
|
|
3020
2975
|
if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) {
|
3021
2976
|
throw Object.assign(
|
3022
|
-
new AxiosError
|
2977
|
+
new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),
|
3023
2978
|
{
|
3024
2979
|
cause: err.cause || err
|
3025
2980
|
}
|
3026
2981
|
)
|
3027
2982
|
}
|
3028
2983
|
|
3029
|
-
throw AxiosError
|
2984
|
+
throw AxiosError.from(err, err && err.code, config, request);
|
3030
2985
|
}
|
3031
2986
|
});
|
3032
2987
|
|
@@ -3071,7 +3026,7 @@ const adapters = {
|
|
3071
3026
|
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
3072
3027
|
|
3073
3028
|
if (adapter === undefined) {
|
3074
|
-
throw new AxiosError
|
3029
|
+
throw new AxiosError(`Unknown adapter '${id}'`);
|
3075
3030
|
}
|
3076
3031
|
}
|
3077
3032
|
|
@@ -3093,7 +3048,7 @@ const adapters = {
|
|
3093
3048
|
(reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
|
3094
3049
|
'as no adapter specified';
|
3095
3050
|
|
3096
|
-
throw new AxiosError
|
3051
|
+
throw new AxiosError(
|
3097
3052
|
`There is no suitable adapter to dispatch the request ` + s,
|
3098
3053
|
'ERR_NOT_SUPPORT'
|
3099
3054
|
);
|
@@ -3104,8 +3059,6 @@ const adapters = {
|
|
3104
3059
|
adapters: knownAdapters
|
3105
3060
|
};
|
3106
3061
|
|
3107
|
-
'use strict';
|
3108
|
-
|
3109
3062
|
/**
|
3110
3063
|
* Throws a `CanceledError` if cancellation has been requested.
|
3111
3064
|
*
|
@@ -3119,7 +3072,7 @@ function throwIfCancellationRequested(config) {
|
|
3119
3072
|
}
|
3120
3073
|
|
3121
3074
|
if (config.signal && config.signal.aborted) {
|
3122
|
-
throw new CanceledError
|
3075
|
+
throw new CanceledError(null, config);
|
3123
3076
|
}
|
3124
3077
|
}
|
3125
3078
|
|
@@ -3145,7 +3098,7 @@ function dispatchRequest(config) {
|
|
3145
3098
|
config.headers.setContentType('application/x-www-form-urlencoded', false);
|
3146
3099
|
}
|
3147
3100
|
|
3148
|
-
const adapter = adapters.getAdapter(config.adapter || defaults.adapter);
|
3101
|
+
const adapter = adapters.getAdapter(config.adapter || defaults$1.adapter);
|
3149
3102
|
|
3150
3103
|
return adapter(config).then(function onAdapterResolution(response) {
|
3151
3104
|
throwIfCancellationRequested(config);
|
@@ -3161,7 +3114,7 @@ function dispatchRequest(config) {
|
|
3161
3114
|
|
3162
3115
|
return response;
|
3163
3116
|
}, function onAdapterRejection(reason) {
|
3164
|
-
if (!isCancel
|
3117
|
+
if (!isCancel(reason)) {
|
3165
3118
|
throwIfCancellationRequested(config);
|
3166
3119
|
|
3167
3120
|
// Transform response data
|
@@ -3179,9 +3132,7 @@ function dispatchRequest(config) {
|
|
3179
3132
|
});
|
3180
3133
|
}
|
3181
3134
|
|
3182
|
-
const VERSION
|
3183
|
-
|
3184
|
-
'use strict';
|
3135
|
+
const VERSION = "1.7.7";
|
3185
3136
|
|
3186
3137
|
const validators$1 = {};
|
3187
3138
|
|
@@ -3205,15 +3156,15 @@ const deprecatedWarnings = {};
|
|
3205
3156
|
*/
|
3206
3157
|
validators$1.transitional = function transitional(validator, version, message) {
|
3207
3158
|
function formatMessage(opt, desc) {
|
3208
|
-
return '[Axios v' + VERSION
|
3159
|
+
return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
|
3209
3160
|
}
|
3210
3161
|
|
3211
3162
|
// eslint-disable-next-line func-names
|
3212
3163
|
return (value, opt, opts) => {
|
3213
3164
|
if (validator === false) {
|
3214
|
-
throw new AxiosError
|
3165
|
+
throw new AxiosError(
|
3215
3166
|
formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),
|
3216
|
-
AxiosError
|
3167
|
+
AxiosError.ERR_DEPRECATED
|
3217
3168
|
);
|
3218
3169
|
}
|
3219
3170
|
|
@@ -3244,7 +3195,7 @@ validators$1.transitional = function transitional(validator, version, message) {
|
|
3244
3195
|
|
3245
3196
|
function assertOptions(options, schema, allowUnknown) {
|
3246
3197
|
if (typeof options !== 'object') {
|
3247
|
-
throw new AxiosError
|
3198
|
+
throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);
|
3248
3199
|
}
|
3249
3200
|
const keys = Object.keys(options);
|
3250
3201
|
let i = keys.length;
|
@@ -3255,12 +3206,12 @@ function assertOptions(options, schema, allowUnknown) {
|
|
3255
3206
|
const value = options[opt];
|
3256
3207
|
const result = value === undefined || validator(value, opt, options);
|
3257
3208
|
if (result !== true) {
|
3258
|
-
throw new AxiosError
|
3209
|
+
throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);
|
3259
3210
|
}
|
3260
3211
|
continue;
|
3261
3212
|
}
|
3262
3213
|
if (allowUnknown !== true) {
|
3263
|
-
throw new AxiosError
|
3214
|
+
throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);
|
3264
3215
|
}
|
3265
3216
|
}
|
3266
3217
|
}
|
@@ -3270,8 +3221,6 @@ const validator = {
|
|
3270
3221
|
validators: validators$1
|
3271
3222
|
};
|
3272
3223
|
|
3273
|
-
'use strict';
|
3274
|
-
|
3275
3224
|
const validators = validator.validators;
|
3276
3225
|
|
3277
3226
|
/**
|
@@ -3281,12 +3230,12 @@ const validators = validator.validators;
|
|
3281
3230
|
*
|
3282
3231
|
* @return {Axios} A new instance of Axios
|
3283
3232
|
*/
|
3284
|
-
class Axios
|
3233
|
+
class Axios {
|
3285
3234
|
constructor(instanceConfig) {
|
3286
3235
|
this.defaults = instanceConfig;
|
3287
3236
|
this.interceptors = {
|
3288
|
-
request: new InterceptorManager(),
|
3289
|
-
response: new InterceptorManager()
|
3237
|
+
request: new InterceptorManager$1(),
|
3238
|
+
response: new InterceptorManager$1()
|
3290
3239
|
};
|
3291
3240
|
}
|
3292
3241
|
|
@@ -3335,7 +3284,7 @@ class Axios$1 {
|
|
3335
3284
|
config = configOrUrl || {};
|
3336
3285
|
}
|
3337
3286
|
|
3338
|
-
config = mergeConfig
|
3287
|
+
config = mergeConfig(this.defaults, config);
|
3339
3288
|
|
3340
3289
|
const {transitional, paramsSerializer, headers} = config;
|
3341
3290
|
|
@@ -3449,7 +3398,7 @@ class Axios$1 {
|
|
3449
3398
|
}
|
3450
3399
|
|
3451
3400
|
getUri(config) {
|
3452
|
-
config = mergeConfig
|
3401
|
+
config = mergeConfig(this.defaults, config);
|
3453
3402
|
const fullPath = buildFullPath(config.baseURL, config.url);
|
3454
3403
|
return buildURL(fullPath, config.params, config.paramsSerializer);
|
3455
3404
|
}
|
@@ -3458,8 +3407,8 @@ class Axios$1 {
|
|
3458
3407
|
// Provide aliases for supported request methods
|
3459
3408
|
utils$1.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
|
3460
3409
|
/*eslint func-names:0*/
|
3461
|
-
Axios
|
3462
|
-
return this.request(mergeConfig
|
3410
|
+
Axios.prototype[method] = function(url, config) {
|
3411
|
+
return this.request(mergeConfig(config || {}, {
|
3463
3412
|
method,
|
3464
3413
|
url,
|
3465
3414
|
data: (config || {}).data
|
@@ -3472,7 +3421,7 @@ utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method)
|
|
3472
3421
|
|
3473
3422
|
function generateHTTPMethod(isForm) {
|
3474
3423
|
return function httpMethod(url, data, config) {
|
3475
|
-
return this.request(mergeConfig
|
3424
|
+
return this.request(mergeConfig(config || {}, {
|
3476
3425
|
method,
|
3477
3426
|
headers: isForm ? {
|
3478
3427
|
'Content-Type': 'multipart/form-data'
|
@@ -3483,12 +3432,12 @@ utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method)
|
|
3483
3432
|
};
|
3484
3433
|
}
|
3485
3434
|
|
3486
|
-
Axios
|
3435
|
+
Axios.prototype[method] = generateHTTPMethod();
|
3487
3436
|
|
3488
|
-
Axios
|
3437
|
+
Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
|
3489
3438
|
});
|
3490
3439
|
|
3491
|
-
|
3440
|
+
const Axios$1 = Axios;
|
3492
3441
|
|
3493
3442
|
/**
|
3494
3443
|
* A `CancelToken` is an object that can be used to request cancellation of an operation.
|
@@ -3497,7 +3446,7 @@ utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method)
|
|
3497
3446
|
*
|
3498
3447
|
* @returns {CancelToken}
|
3499
3448
|
*/
|
3500
|
-
class CancelToken
|
3449
|
+
class CancelToken {
|
3501
3450
|
constructor(executor) {
|
3502
3451
|
if (typeof executor !== 'function') {
|
3503
3452
|
throw new TypeError('executor must be a function.');
|
@@ -3545,7 +3494,7 @@ class CancelToken$1 {
|
|
3545
3494
|
return;
|
3546
3495
|
}
|
3547
3496
|
|
3548
|
-
token.reason = new CanceledError
|
3497
|
+
token.reason = new CanceledError(message, config, request);
|
3549
3498
|
resolvePromise(token.reason);
|
3550
3499
|
});
|
3551
3500
|
}
|
@@ -3610,7 +3559,7 @@ class CancelToken$1 {
|
|
3610
3559
|
*/
|
3611
3560
|
static source() {
|
3612
3561
|
let cancel;
|
3613
|
-
const token = new CancelToken
|
3562
|
+
const token = new CancelToken(function executor(c) {
|
3614
3563
|
cancel = c;
|
3615
3564
|
});
|
3616
3565
|
return {
|
@@ -3620,7 +3569,7 @@ class CancelToken$1 {
|
|
3620
3569
|
}
|
3621
3570
|
}
|
3622
3571
|
|
3623
|
-
|
3572
|
+
const CancelToken$1 = CancelToken;
|
3624
3573
|
|
3625
3574
|
/**
|
3626
3575
|
* Syntactic sugar for invoking a function and expanding an array for arguments.
|
@@ -3643,14 +3592,12 @@ class CancelToken$1 {
|
|
3643
3592
|
*
|
3644
3593
|
* @returns {Function}
|
3645
3594
|
*/
|
3646
|
-
function spread
|
3595
|
+
function spread(callback) {
|
3647
3596
|
return function wrap(arr) {
|
3648
3597
|
return callback.apply(null, arr);
|
3649
3598
|
};
|
3650
3599
|
}
|
3651
3600
|
|
3652
|
-
'use strict';
|
3653
|
-
|
3654
3601
|
/**
|
3655
3602
|
* Determines whether the payload is an error thrown by Axios
|
3656
3603
|
*
|
@@ -3658,11 +3605,11 @@ function spread$1(callback) {
|
|
3658
3605
|
*
|
3659
3606
|
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
|
3660
3607
|
*/
|
3661
|
-
function isAxiosError
|
3608
|
+
function isAxiosError(payload) {
|
3662
3609
|
return utils$1.isObject(payload) && (payload.isAxiosError === true);
|
3663
3610
|
}
|
3664
3611
|
|
3665
|
-
const HttpStatusCode
|
3612
|
+
const HttpStatusCode = {
|
3666
3613
|
Continue: 100,
|
3667
3614
|
SwitchingProtocols: 101,
|
3668
3615
|
Processing: 102,
|
@@ -3728,11 +3675,11 @@ const HttpStatusCode$1 = {
|
|
3728
3675
|
NetworkAuthenticationRequired: 511,
|
3729
3676
|
};
|
3730
3677
|
|
3731
|
-
Object.entries(HttpStatusCode
|
3732
|
-
HttpStatusCode
|
3678
|
+
Object.entries(HttpStatusCode).forEach(([key, value]) => {
|
3679
|
+
HttpStatusCode[value] = key;
|
3733
3680
|
});
|
3734
3681
|
|
3735
|
-
|
3682
|
+
const HttpStatusCode$1 = HttpStatusCode;
|
3736
3683
|
|
3737
3684
|
/**
|
3738
3685
|
* Create an instance of Axios
|
@@ -3753,27 +3700,27 @@ function createInstance(defaultConfig) {
|
|
3753
3700
|
|
3754
3701
|
// Factory for creating new instances
|
3755
3702
|
instance.create = function create(instanceConfig) {
|
3756
|
-
return createInstance(mergeConfig
|
3703
|
+
return createInstance(mergeConfig(defaultConfig, instanceConfig));
|
3757
3704
|
};
|
3758
3705
|
|
3759
3706
|
return instance;
|
3760
3707
|
}
|
3761
3708
|
|
3762
3709
|
// Create the default instance to be exported
|
3763
|
-
const axios = createInstance(defaults);
|
3710
|
+
const axios = createInstance(defaults$1);
|
3764
3711
|
|
3765
3712
|
// Expose Axios class to allow class inheritance
|
3766
3713
|
axios.Axios = Axios$1;
|
3767
3714
|
|
3768
3715
|
// Expose Cancel & CancelToken
|
3769
|
-
axios.CanceledError = CanceledError
|
3716
|
+
axios.CanceledError = CanceledError;
|
3770
3717
|
axios.CancelToken = CancelToken$1;
|
3771
|
-
axios.isCancel = isCancel
|
3772
|
-
axios.VERSION = VERSION
|
3773
|
-
axios.toFormData = toFormData
|
3718
|
+
axios.isCancel = isCancel;
|
3719
|
+
axios.VERSION = VERSION;
|
3720
|
+
axios.toFormData = toFormData;
|
3774
3721
|
|
3775
3722
|
// Expose AxiosError class
|
3776
|
-
axios.AxiosError = AxiosError
|
3723
|
+
axios.AxiosError = AxiosError;
|
3777
3724
|
|
3778
3725
|
// alias for CanceledError for backward compatibility
|
3779
3726
|
axios.Cancel = axios.CanceledError;
|
@@ -3783,13 +3730,13 @@ axios.all = function all(promises) {
|
|
3783
3730
|
return Promise.all(promises);
|
3784
3731
|
};
|
3785
3732
|
|
3786
|
-
axios.spread = spread
|
3733
|
+
axios.spread = spread;
|
3787
3734
|
|
3788
3735
|
// Expose isAxiosError
|
3789
|
-
axios.isAxiosError = isAxiosError
|
3736
|
+
axios.isAxiosError = isAxiosError;
|
3790
3737
|
|
3791
3738
|
// Expose mergeConfig
|
3792
|
-
axios.mergeConfig = mergeConfig
|
3739
|
+
axios.mergeConfig = mergeConfig;
|
3793
3740
|
|
3794
3741
|
axios.AxiosHeaders = AxiosHeaders$1;
|
3795
3742
|
|
@@ -3801,34 +3748,15 @@ axios.HttpStatusCode = HttpStatusCode$1;
|
|
3801
3748
|
|
3802
3749
|
axios.default = axios;
|
3803
3750
|
|
3804
|
-
//
|
3805
|
-
|
3806
|
-
// so that it can keep same with es module or cjs
|
3807
|
-
const {
|
3808
|
-
Axios,
|
3809
|
-
AxiosError,
|
3810
|
-
CanceledError,
|
3811
|
-
isCancel,
|
3812
|
-
CancelToken,
|
3813
|
-
VERSION,
|
3814
|
-
all,
|
3815
|
-
Cancel,
|
3816
|
-
isAxiosError,
|
3817
|
-
spread,
|
3818
|
-
toFormData,
|
3819
|
-
AxiosHeaders,
|
3820
|
-
HttpStatusCode,
|
3821
|
-
formToJSON,
|
3822
|
-
getAdapter,
|
3823
|
-
mergeConfig
|
3824
|
-
} = axios;
|
3751
|
+
// this module should only have a default export
|
3752
|
+
const axios$1 = axios;
|
3825
3753
|
|
3826
3754
|
const CRM_BONUS_API_URL = "https://wake.crmbonus.com/api"; //"http://localhost:4000/api";// "https://wake-middleware.crmbonus.com/api"; //"https://wake-middleware.crmbonus.com/api";// "https://crmbonus-wake-hub-staging-5daedbc4e22b.herokuapp.com/api" //"https://crmbonus-service-staging-d15ba5377115.herokuapp.com"; //"https://typically-workable-perch.ngrok-free.app"; // "http://localhost:3500";
|
3827
3755
|
const CHECKOUT_CART_WAKE = "http://localhost:3001";
|
3828
3756
|
|
3829
3757
|
class CrmBonusService {
|
3830
3758
|
constructor() {
|
3831
|
-
this.axiosInstance = axios.create({
|
3759
|
+
this.axiosInstance = axios$1.create({
|
3832
3760
|
baseURL: CRM_BONUS_API_URL,
|
3833
3761
|
headers: {
|
3834
3762
|
'Content-Type': 'application/json',
|
@@ -3943,4 +3871,4 @@ CrmBonusService._instance = null;
|
|
3943
3871
|
|
3944
3872
|
export { CrmBonusService as C, CHECKOUT_CART_WAKE as a };
|
3945
3873
|
|
3946
|
-
//# sourceMappingURL=crmbonus.service-
|
3874
|
+
//# sourceMappingURL=crmbonus.service-42fbd7fa.js.map
|