crmbonus-component-wake 2.0.47 → 2.0.49
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-modal.cjs.entry.js +1 -1
- package/dist/cjs/countdown-timer_4.cjs.entry.js +27 -21
- package/dist/cjs/countdown-timer_4.cjs.entry.js.map +1 -1
- package/dist/cjs/crm-bonus-form.cjs.entry.js +2 -2
- package/dist/cjs/crm-bonus-note.cjs.entry.js +15 -5
- package/dist/cjs/crm-bonus-note.cjs.entry.js.map +1 -1
- package/dist/cjs/crm-bonus.cjs.entry.js +8 -4
- package/dist/cjs/crm-bonus.cjs.entry.js.map +1 -1
- package/dist/cjs/crm-giftback-form.cjs.entry.js +70 -7
- package/dist/cjs/crm-giftback-form.cjs.entry.js.map +1 -1
- package/dist/cjs/crmbonus-component-wake.cjs.js +1 -1
- package/dist/cjs/{crmbonus.service-e375ebfe.js → crmbonus.service-7991795d.js} +10 -2
- package/dist/cjs/crmbonus.service-7991795d.js.map +1 -0
- package/dist/cjs/giftback-finish_4.cjs.entry.js +1 -1
- package/dist/cjs/giftback-finish_4.cjs.entry.js.map +1 -1
- package/dist/cjs/{i18n-db722856.js → i18n-818275e6.js} +3 -2
- package/dist/cjs/{i18n-db722856.js.map → i18n-818275e6.js.map} +1 -1
- package/dist/cjs/{index-fdad75ce.js → index-96a8951f.js} +2 -1
- package/dist/cjs/index-96a8951f.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/loader.cjs.js +1 -1
- package/dist/cjs/loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/pedido-finalizado.cjs.entry.js +2 -2
- package/dist/cjs/phone-input-mask.cjs.entry.js +2 -2
- package/dist/collection/components/crm-bonus/crm-bonus.js +5 -1
- package/dist/collection/components/crm-bonus/crm-bonus.js.map +1 -1
- package/dist/collection/components/crm-bonus-form/crm-bonus-form.js +1 -1
- package/dist/collection/components/crm-bonus-form/subcomponents/giftback-pin/giftback-pin.css +1 -5
- package/dist/collection/components/giftback-form/giftback-form.css +32 -5
- package/dist/collection/components/giftback-form/giftback-form.js +69 -5
- package/dist/collection/components/giftback-form/giftback-form.js.map +1 -1
- package/dist/collection/components/giftback-form/subcomponents/giftback-info/giftback-info.css +3 -1
- package/dist/collection/components/giftback-form/subcomponents/giftback-info/giftback-info.js +21 -8
- package/dist/collection/components/giftback-form/subcomponents/giftback-info/giftback-info.js.map +1 -1
- 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 +1 -1
- package/dist/collection/components/giftback-form/subcomponents/pin-form/pin-form.css +0 -3
- package/dist/collection/components/giftback-form/subcomponents/pin-form/pin-form.js +1 -7
- package/dist/collection/components/giftback-form/subcomponents/pin-form/pin-form.js.map +1 -1
- package/dist/collection/components/loading-spinner/loading-spinner.js +1 -1
- package/dist/collection/components/modal/app-modal.js +1 -1
- package/dist/collection/components/note/crm-bonus-note.css +23 -7
- package/dist/collection/components/note/crm-bonus-note.js +33 -5
- package/dist/collection/components/note/crm-bonus-note.js.map +1 -1
- package/dist/collection/components/pedido/pedido.js +1 -1
- package/dist/collection/components/phone/phone-input-mask.js +1 -1
- package/dist/collection/contants/index.js +1 -0
- package/dist/collection/contants/index.js.map +1 -1
- package/dist/collection/helpers/info.config.helper.js +11 -0
- package/dist/collection/helpers/info.config.helper.js.map +1 -0
- package/dist/collection/i18n/i18n.js +2 -1
- package/dist/collection/i18n/i18n.js.map +1 -1
- package/dist/collection/services/crmbonus.service.js +8 -0
- package/dist/collection/services/crmbonus.service.js.map +1 -1
- package/dist/components/app-modal.js +1 -1
- package/dist/components/crm-bonus-form.js +6 -6
- package/dist/components/crm-bonus-note.js +18 -6
- package/dist/components/crm-bonus-note.js.map +1 -1
- package/dist/components/crm-bonus.js +15 -11
- package/dist/components/crm-bonus.js.map +1 -1
- package/dist/components/crm-button.js +1 -1
- package/dist/components/crm-giftback-form.js +1 -1
- package/dist/components/giftback-info.js +1 -1
- package/dist/components/giftback-pin.js +1 -1
- package/dist/components/giftback-progress.js +1 -1
- package/dist/components/loading-spinner.js +1 -1
- package/dist/components/name-input.js +1 -1
- package/dist/components/p-0a57e57f.js +91 -0
- package/dist/components/p-0a57e57f.js.map +1 -0
- package/dist/components/{p-b1841bad.js → p-11bd8050.js} +6 -6
- package/dist/components/p-11bd8050.js.map +1 -0
- package/dist/{esm/i18n-d8b777a9.js → components/p-1d5eeac0.js} +3 -2
- package/dist/components/{p-a7e91243.js.map → p-1d5eeac0.js.map} +1 -1
- package/dist/components/{p-f8b4698f.js → p-25f37293.js} +79 -15
- package/dist/components/p-25f37293.js.map +1 -0
- package/dist/components/{p-878c694e.js → p-384fabf7.js} +10 -2
- package/dist/components/p-384fabf7.js.map +1 -0
- package/dist/components/{p-1539def7.js → p-46578efa.js} +2 -2
- package/dist/components/{p-1539def7.js.map → p-46578efa.js.map} +1 -1
- package/dist/components/{p-0c1aa75b.js → p-4f18f4c0.js} +3 -3
- package/dist/components/p-4f18f4c0.js.map +1 -0
- package/dist/components/{p-bf93729e.js → p-5c3fe5a8.js} +2 -2
- package/dist/components/{p-bf93729e.js.map → p-5c3fe5a8.js.map} +1 -1
- package/dist/components/{p-bc925ed6.js → p-5dfa24e0.js} +7 -13
- package/dist/components/p-5dfa24e0.js.map +1 -0
- package/dist/components/p-75ba7b9a.js +14 -0
- package/dist/components/p-75ba7b9a.js.map +1 -0
- package/dist/components/{p-e443d670.js → p-a30bd6b1.js} +2 -2
- package/dist/components/{p-e443d670.js.map → p-a30bd6b1.js.map} +1 -1
- package/dist/components/{p-dddd9ee6.js → p-a561251a.js} +2 -1
- package/dist/components/p-a561251a.js.map +1 -0
- package/dist/components/{p-7e8a1832.js → p-be365312.js} +3 -3
- package/dist/components/{p-7e8a1832.js.map → p-be365312.js.map} +1 -1
- package/dist/components/{p-f2ab4eea.js → p-f168d5f6.js} +2 -2
- package/dist/components/{p-f2ab4eea.js.map → p-f168d5f6.js.map} +1 -1
- package/dist/components/pedido-finalizado.js +2 -2
- package/dist/components/phone-cancel-input.js +2 -2
- package/dist/components/phone-form.js +1 -1
- package/dist/components/phone-input-mask.js +1 -1
- package/dist/components/phone-input.js +2 -2
- package/dist/components/pin-form.js +1 -1
- package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js +1 -1
- package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js.map +1 -1
- package/dist/crmbonus-component-wake/{p-a7e91243.js → p-1d5eeac0.js} +2 -2
- package/dist/crmbonus-component-wake/p-1d5eeac0.js.map +1 -0
- package/dist/crmbonus-component-wake/{p-878c694e.js → p-384fabf7.js} +2 -2
- package/dist/crmbonus-component-wake/p-384fabf7.js.map +1 -0
- package/dist/crmbonus-component-wake/{p-cdd018cc.entry.js → p-3beb5158.entry.js} +2 -2
- package/dist/crmbonus-component-wake/{p-7aff6c4e.entry.js → p-5a8fa5b9.entry.js} +2 -2
- package/dist/crmbonus-component-wake/p-66f41fd0.entry.js +2 -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-830b5bdc.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-830b5bdc.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/{p-d6af7631.entry.js → p-9514339e.entry.js} +2 -2
- package/dist/crmbonus-component-wake/p-a561251a.js +2 -0
- package/dist/crmbonus-component-wake/p-a561251a.js.map +1 -0
- package/dist/crmbonus-component-wake/p-af160cdc.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-af160cdc.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/p-c271c472.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-c271c472.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/p-c72a11ba.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-c72a11ba.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/p-cc452df3.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-cc452df3.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/{p-be553772.entry.js → p-d0349daf.entry.js} +2 -2
- package/dist/env.js +1 -1
- package/dist/env.js.map +1 -1
- package/dist/esm/app-modal.entry.js +1 -1
- package/dist/esm/countdown-timer_4.entry.js +27 -21
- package/dist/esm/countdown-timer_4.entry.js.map +1 -1
- package/dist/esm/crm-bonus-form.entry.js +2 -2
- package/dist/esm/crm-bonus-note.entry.js +15 -5
- package/dist/esm/crm-bonus-note.entry.js.map +1 -1
- package/dist/esm/crm-bonus.entry.js +8 -4
- package/dist/esm/crm-bonus.entry.js.map +1 -1
- package/dist/esm/crm-giftback-form.entry.js +70 -7
- package/dist/esm/crm-giftback-form.entry.js.map +1 -1
- package/dist/esm/crmbonus-component-wake.js +1 -1
- package/dist/esm/{crmbonus.service-4ee773c8.js → crmbonus.service-a846150c.js} +10 -2
- package/dist/esm/crmbonus.service-a846150c.js.map +1 -0
- package/dist/esm/giftback-finish_4.entry.js +1 -1
- package/dist/esm/giftback-finish_4.entry.js.map +1 -1
- package/dist/{components/p-a7e91243.js → esm/i18n-853fedb3.js} +3 -2
- package/dist/esm/{i18n-d8b777a9.js.map → i18n-853fedb3.js.map} +1 -1
- package/dist/esm/{index-7101ea0c.js → index-3c6d4feb.js} +2 -1
- package/dist/esm/index-3c6d4feb.js.map +1 -0
- package/dist/esm/info.config.helper-42d9ddf9.js +14 -0
- package/dist/esm/info.config.helper-42d9ddf9.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/loading-spinner.entry.js +1 -1
- package/dist/esm/pedido-finalizado.entry.js +2 -2
- package/dist/esm/phone-input-mask.entry.js +2 -2
- package/dist/types/components/crm-bonus/crm-bonus.d.ts +1 -0
- package/dist/types/components/giftback-form/giftback-form.d.ts +8 -0
- package/dist/types/components/giftback-form/subcomponents/giftback-info/giftback-info.d.ts +2 -2
- package/dist/types/components/giftback-form/subcomponents/giftback-message/giftback-massage.d.ts +3 -0
- package/dist/types/components/giftback-form/subcomponents/pin-form/pin-form.d.ts +0 -1
- package/dist/types/components/note/crm-bonus-note.d.ts +4 -0
- package/dist/types/components.d.ts +2 -0
- package/dist/types/contants/index.d.ts +2 -1
- package/dist/types/helpers/info.config.helper.d.ts +6 -0
- package/dist/types/services/crmbonus.service.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/crmbonus.service-e375ebfe.js.map +0 -1
- package/dist/cjs/index-fdad75ce.js.map +0 -1
- package/dist/components/p-0c1aa75b.js.map +0 -1
- package/dist/components/p-878c694e.js.map +0 -1
- package/dist/components/p-9a435c31.js +0 -79
- package/dist/components/p-9a435c31.js.map +0 -1
- package/dist/components/p-b1841bad.js.map +0 -1
- package/dist/components/p-bc925ed6.js.map +0 -1
- package/dist/components/p-dddd9ee6.js.map +0 -1
- package/dist/components/p-f8b4698f.js.map +0 -1
- package/dist/crmbonus-component-wake/p-574108d2.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-574108d2.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-61462d71.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-61462d71.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-63d2a359.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-63d2a359.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-83182e85.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-83182e85.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-878c694e.js.map +0 -1
- package/dist/crmbonus-component-wake/p-a7e91243.js.map +0 -1
- package/dist/crmbonus-component-wake/p-dddd9ee6.js +0 -2
- package/dist/crmbonus-component-wake/p-dddd9ee6.js.map +0 -1
- package/dist/crmbonus-component-wake/p-e23e8d6d.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-e23e8d6d.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-e3b52362.entry.js +0 -2
- package/dist/esm/crmbonus.service-4ee773c8.js.map +0 -1
- package/dist/esm/index-7101ea0c.js.map +0 -1
- /package/dist/crmbonus-component-wake/{p-cdd018cc.entry.js.map → p-3beb5158.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-7aff6c4e.entry.js.map → p-5a8fa5b9.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-e3b52362.entry.js.map → p-66f41fd0.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-d6af7631.entry.js.map → p-9514339e.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-be553772.entry.js.map → p-d0349daf.entry.js.map} +0 -0
@@ -5,9 +5,10 @@ var StepFormEnum;
|
|
5
5
|
StepFormEnum[StepFormEnum["STEP_PIN"] = 2] = "STEP_PIN";
|
6
6
|
StepFormEnum[StepFormEnum["STEP_RESERVE"] = 3] = "STEP_RESERVE";
|
7
7
|
StepFormEnum[StepFormEnum["STEP_APPLY"] = 4] = "STEP_APPLY";
|
8
|
+
StepFormEnum[StepFormEnum["STEP_NO_BONUS"] = 5] = "STEP_NO_BONUS";
|
8
9
|
})(StepFormEnum || (StepFormEnum = {}));
|
9
10
|
const MESSAGE_ERROR_INVALID_NUMBER = "Número inválido";
|
10
11
|
|
11
12
|
export { MESSAGE_ERROR_INVALID_NUMBER as M, StepFormEnum as S };
|
12
13
|
|
13
|
-
//# sourceMappingURL=index-
|
14
|
+
//# sourceMappingURL=index-3c6d4feb.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"index-3c6d4feb.js","mappings":"IAAY;AAAZ,WAAY,YAAY;IACpB,yDAAa,CAAA;IACb,2DAAc,CAAA;IACd,uDAAY,CAAA;IACZ,+DAAgB,CAAA;IAChB,2DAAc,CAAA;IACd,iEAAiB,CAAA;AACrB,CAAC,EAPW,YAAY,KAAZ,YAAY,QAOvB;MAEY,4BAA4B,GAAE;;;;","names":[],"sources":["src/contants/index.ts"],"sourcesContent":["export enum StepFormEnum {\n STEP_NAME = 0,\n STEP_PHONE = 1,\n STEP_PIN = 2,\n STEP_RESERVE = 3,\n STEP_APPLY = 4,\n STEP_NO_BONUS = 5\n}\n\nexport const MESSAGE_ERROR_INVALID_NUMBER= \"Número inválido\""],"version":3}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
function getInfoCustomization(storeName) {
|
2
|
+
const infos = localStorage.getItem(`bc:${storeName}`);
|
3
|
+
if (infos)
|
4
|
+
return JSON.parse(infos);
|
5
|
+
return {
|
6
|
+
btnApplyBonusLabel: "Avançar",
|
7
|
+
confirmationMessage: "",
|
8
|
+
giftbackTitle: "Giftback"
|
9
|
+
};
|
10
|
+
}
|
11
|
+
|
12
|
+
export { getInfoCustomization as g };
|
13
|
+
|
14
|
+
//# sourceMappingURL=info.config.helper-42d9ddf9.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"info.config.helper-42d9ddf9.js","mappings":"SAOgB,oBAAoB,CAAC,SAAiB;IAClD,MAAM,KAAK,GAAG,YAAY,CAAC,OAAO,CAAC,MAAM,SAAS,EAAE,CAAC,CAAC;IAEtD,IAAI,KAAK;QACL,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;IAE5B,OAAO;QACH,kBAAkB,EAAE,SAAS;QAC7B,mBAAmB,EAAE,EAAE;QACvB,aAAa,EAAE,UAAU;KAC5B,CAAA;AAEL;;;;","names":[],"sources":["src/helpers/info.config.helper.ts"],"sourcesContent":["export interface IInfoStore {\n btnApplyBonusLabel: string;\n confirmationMessage: string;\n giftbackTitle: string;\n}\n\n\nexport function getInfoCustomization(storeName: string): IInfoStore {\n const infos = localStorage.getItem(`bc:${storeName}`);\n\n if (infos)\n return JSON.parse(infos)\n\n return {\n btnApplyBonusLabel: \"Avançar\",\n confirmationMessage: \"\",\n giftbackTitle: \"Giftback\"\n }\n\n}"],"version":3}
|
package/dist/esm/loader.js
CHANGED
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
7
7
|
await globalScripts();
|
8
|
-
return bootstrapLazy([["crm-bonus",[[1,"crm-bonus",{"userId":[2,"userid"],"storeName":[8,"storename"],"productsInString":[1,"products"],"cartId":[8,"cartid"],"showModal":[32],"products":[32],"customer":[32],"loading":[32],"message":[32],"phone":[32],"canCancel":[32],"amountCancel":[32],"sent":[32],"session":[32]}]]],["crm-bonus-form",[[1,"crm-bonus-form",{"storeName":[8,"storename"],"cartId":[8,"cart-id"],"products":[16],"customer":[16],"sent":[16],"stepNext":[2,"step-next"],"phone":[2],"loadingModal":[4,"loading-modal"],"saveStore":[16],"cancel":[16],"handleCustomerName":[16],"loading":[32],"step":[32],"message":[32],"bonus":[32],"setStep":[64]}]]],["phone-cancel-input",[[0,"phone-cancel-input",{"sendPin":[16],"loading":[4],"value":[1]}]]],["phone-input",[[0,"phone-input",{"sendPin":[16],"loading":[4],"value":[1]}]]],["app-modal",[[1,"app-modal",{"isOpen":[516,"is-open"],"modalTitle":[1,"modal-title"]}]]],["crm-bonus-note",[[0,"crm-bonus-note",{"cartId":[8,"cartid"],"url":[32]}]]],["pedido-finalizado",[[0,"pedido-finalizado",{"cartId":[1,"cartid"],"orderId":[2,"orderid"],"metadadoString":[1,"metadado"]}]]],["crm-button",[[0,"crm-button",{"txtBtn":[1,"txt-btn"],"loading":[4]}]]],["phone-input-mask",[[1,"phone-input-mask",{"initialValue":[1,"initial-value"],"disabled":[4],"phone":[32],"message":[32],"getPhone":[64]}]]],["loading-spinner",[[1,"loading-spinner",{"size":[1],"color":[1]}]]],["countdown-timer_4",[[0,"phone-form",{"value":[1],"loading":[4],"handlerSubmit":[16]}],[1,"pin-form",{"validate":[16],"cancel":[16],"resend":[16],"sent":[16],"loading":[4],"phone":[1],"pin":[32],"isVerified":[32],"canResend":[32]}],[0,"giftback-info",{"loading":[4],"bonus":[16],"reserve":[16],"cancel":[16],"usedValue":[32],"selectedOption":[32],"sliderPosition":[32]}],[1,"countdown-timer",{"downtime":[16],"counter":[32]}]]],["crm-giftback-form",[[0,"crm-giftback-form",{"storeName":[8,"storename"],"cartId":[8,"cart-id"],"products":[16],"value":[32],"loading":[32],"message":[32],"phone":[32],"pinInfo":[32],"step":[32],"bonus":[32],"sucess":[32],"error":[32]}]]],["giftback-finish_4",[[1,"giftback-pin",{"sent":[16],"validate":[16],"cancel":[16],"loading":[4],"pin":[32],"isVerified":[32]}],[1,"giftback-progress",{"loading":[4],"bonus":[16],"reserve":[16],"cancel":[16],"usedValue":[32]}],[0,"name-input",{"value":[1],"loading":[4],"applyName":[16],"cancel":[16],"newValue":[32],"message":[32]}],[1,"giftback-finish"]]]], options);
|
8
|
+
return bootstrapLazy([["crm-bonus",[[1,"crm-bonus",{"userId":[2,"userid"],"storeName":[8,"storename"],"productsInString":[1,"products"],"cartId":[8,"cartid"],"showModal":[32],"products":[32],"customer":[32],"loading":[32],"message":[32],"phone":[32],"canCancel":[32],"amountCancel":[32],"sent":[32],"session":[32]}]]],["crm-bonus-form",[[1,"crm-bonus-form",{"storeName":[8,"storename"],"cartId":[8,"cart-id"],"products":[16],"customer":[16],"sent":[16],"stepNext":[2,"step-next"],"phone":[2],"loadingModal":[4,"loading-modal"],"saveStore":[16],"cancel":[16],"handleCustomerName":[16],"loading":[32],"step":[32],"message":[32],"bonus":[32],"setStep":[64]}]]],["phone-cancel-input",[[0,"phone-cancel-input",{"sendPin":[16],"loading":[4],"value":[1]}]]],["phone-input",[[0,"phone-input",{"sendPin":[16],"loading":[4],"value":[1]}]]],["app-modal",[[1,"app-modal",{"isOpen":[516,"is-open"],"modalTitle":[1,"modal-title"]}]]],["crm-bonus-note",[[0,"crm-bonus-note",{"cartId":[8,"cartid"],"storename":[8],"url":[32],"config":[32]}]]],["pedido-finalizado",[[0,"pedido-finalizado",{"cartId":[1,"cartid"],"orderId":[2,"orderid"],"metadadoString":[1,"metadado"]}]]],["crm-button",[[0,"crm-button",{"txtBtn":[1,"txt-btn"],"loading":[4]}]]],["phone-input-mask",[[1,"phone-input-mask",{"initialValue":[1,"initial-value"],"disabled":[4],"phone":[32],"message":[32],"getPhone":[64]}]]],["loading-spinner",[[1,"loading-spinner",{"size":[1],"color":[1]}]]],["countdown-timer_4",[[0,"phone-form",{"value":[1],"loading":[4],"handlerSubmit":[16]}],[1,"pin-form",{"validate":[16],"cancel":[16],"resend":[16],"sent":[16],"loading":[4],"phone":[1],"pin":[32],"isVerified":[32],"canResend":[32]}],[0,"giftback-info",{"loading":[4],"bonus":[16],"reserve":[16],"cancel":[16],"usedValue":[32],"selectedOption":[32],"sliderPosition":[32]}],[1,"countdown-timer",{"downtime":[16],"counter":[32]}]]],["crm-giftback-form",[[0,"crm-giftback-form",{"storeName":[8,"storename"],"cartId":[8,"cart-id"],"products":[16],"value":[32],"loading":[32],"message":[32],"phone":[32],"pinInfo":[32],"step":[32],"bonus":[32],"sucess":[32],"error":[32],"config":[32]}]]],["giftback-finish_4",[[1,"giftback-pin",{"sent":[16],"validate":[16],"cancel":[16],"loading":[4],"pin":[32],"isVerified":[32]}],[1,"giftback-progress",{"loading":[4],"bonus":[16],"reserve":[16],"cancel":[16],"usedValue":[32]}],[0,"name-input",{"value":[1],"loading":[4],"applyName":[16],"cancel":[16],"newValue":[32],"message":[32]}],[1,"giftback-finish"]]]], options);
|
9
9
|
};
|
10
10
|
|
11
11
|
export { defineCustomElements };
|
@@ -10,7 +10,7 @@ const LoadingSpinner = class {
|
|
10
10
|
this.color = '#0078d7';
|
11
11
|
}
|
12
12
|
render() {
|
13
|
-
return (h("div", { key: '
|
13
|
+
return (h("div", { key: '5d3cd866b3ab7f4898ad1142fb39b89c572867d7', class: "spinner", style: { width: this.size, height: this.size, borderColor: `${this.color} transparent transparent transparent` } }));
|
14
14
|
}
|
15
15
|
};
|
16
16
|
LoadingSpinner.style = LoadingSpinnerStyle0;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { r as registerInstance, h } from './index-a4c14fca.js';
|
2
|
-
import { C as CrmBonusService } from './crmbonus.service-
|
2
|
+
import { C as CrmBonusService } from './crmbonus.service-a846150c.js';
|
3
3
|
|
4
4
|
const Pedido = class {
|
5
5
|
constructor(hostRef) {
|
@@ -23,7 +23,7 @@ const Pedido = class {
|
|
23
23
|
}
|
24
24
|
}
|
25
25
|
render() {
|
26
|
-
return (h("div", { key: '
|
26
|
+
return (h("div", { key: '084ea188e020b3994a676f4fa17b5f3523a5f611' }));
|
27
27
|
}
|
28
28
|
};
|
29
29
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { r as registerInstance, h } from './index-a4c14fca.js';
|
2
|
-
import { M as MESSAGE_ERROR_INVALID_NUMBER } from './index-
|
2
|
+
import { M as MESSAGE_ERROR_INVALID_NUMBER } from './index-3c6d4feb.js';
|
3
3
|
|
4
4
|
const phoneInputMaskCss = "*{margin:0;padding:0;box-sizing:border-box}.phone{display:block;width:100%;height:24px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:0px;-webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075);box-shadow:inset 0 1px 1px rgba(0, 0, 0, .075);-webkit-transition:border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s, box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s, box-shadow ease-in-out .15s}.phone-input-form{width:246px;height:48px;padding:13px 16px 13px 16px;border:1px solid #CCCCCC}.crm-erro-msg{color:#E11D48;font-size:12px;font-weight:500;margin-top:11px}";
|
5
5
|
const PhoneInputMaskStyle0 = phoneInputMaskCss;
|
@@ -44,7 +44,7 @@ const PhoneInputMask = class {
|
|
44
44
|
return this.phone;
|
45
45
|
}
|
46
46
|
render() {
|
47
|
-
return (h("div", { key: '
|
47
|
+
return (h("div", { key: '34e88e02195fceb8d73970aa33dcfad2efd05b0f' }, h("input", { key: '22b65d69b7ab13ad41ee36a5e81f26b3d8ffeb1b', disabled: this.disabled, id: "phone", type: "text", class: "phone-input-form", value: this.phone, onInput: (event) => this.handleInput(event), placeholder: "(12) 94567-8910" }), h("p", { key: 'd46cef24b15f4886f7e503b91aeebeaf92dfc3fd', class: "crm-erro-msg" }, this.message)));
|
48
48
|
}
|
49
49
|
};
|
50
50
|
PhoneInputMask.style = PhoneInputMaskStyle0;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { StepFormEnum } from "../../contants";
|
2
2
|
import { IPinSent } from '../../dto/pin.sent';
|
3
3
|
import { IBonus, IProduct } from "../../dto/validate.pin.bonus";
|
4
|
+
import { IInfoStore } from "../../helpers/info.config.helper";
|
4
5
|
export declare class CrmBonus {
|
5
6
|
private crmBonusService;
|
6
7
|
storeName: any;
|
@@ -15,10 +16,17 @@ export declare class CrmBonus {
|
|
15
16
|
bonus: IBonus;
|
16
17
|
sucess: string;
|
17
18
|
error: string;
|
19
|
+
config: IInfoStore;
|
18
20
|
handleSendPin(phone: string): Promise<void>;
|
21
|
+
componentWillLoad(): void;
|
19
22
|
private convertStringToNumber;
|
20
23
|
sendPin(): Promise<void>;
|
21
24
|
changePhone(): void;
|
22
25
|
validateBonus(pin: string): Promise<void>;
|
26
|
+
handleCancel(): void;
|
27
|
+
cancel(): Promise<void>;
|
28
|
+
reserveApply(amount: number): Promise<void>;
|
29
|
+
save(amount: number): void;
|
30
|
+
reserve(amount: number): Promise<void>;
|
23
31
|
render(): any;
|
24
32
|
}
|
@@ -9,7 +9,7 @@ export declare class GiftbackInfo {
|
|
9
9
|
sliderPosition: number;
|
10
10
|
componentWillLoad(): void;
|
11
11
|
handleSliderChange(event: Event): void;
|
12
|
-
|
13
|
-
handleOptionChange(option: string): void
|
12
|
+
private buildPositionSlider;
|
13
|
+
handleOptionChange(option: string): Promise<void>;
|
14
14
|
render(): any;
|
15
15
|
}
|
@@ -1,8 +1,12 @@
|
|
1
|
+
import { IInfoStore } from "../../helpers/info.config.helper";
|
1
2
|
export declare class CrmBonusNote {
|
2
3
|
cartId: any;
|
4
|
+
storename: any;
|
3
5
|
url: string;
|
6
|
+
config: IInfoStore;
|
4
7
|
componentWillLoad(): void;
|
5
8
|
upadateCheckToFreteAndGetUrl(): void;
|
6
9
|
handleHide(): boolean;
|
10
|
+
getAmount(): string;
|
7
11
|
render(): any;
|
8
12
|
}
|
@@ -41,6 +41,7 @@ export namespace Components {
|
|
41
41
|
}
|
42
42
|
interface CrmBonusNote {
|
43
43
|
"cartId": any;
|
44
|
+
"storename": any;
|
44
45
|
}
|
45
46
|
interface CrmButton {
|
46
47
|
"loading": boolean;
|
@@ -297,6 +298,7 @@ declare namespace LocalJSX {
|
|
297
298
|
}
|
298
299
|
interface CrmBonusNote {
|
299
300
|
"cartId"?: any;
|
301
|
+
"storename"?: any;
|
300
302
|
}
|
301
303
|
interface CrmButton {
|
302
304
|
"loading"?: boolean;
|