crmbonus-component-wake 2.0.75 → 2.0.77
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 +2 -2
- package/dist/cjs/countdown-timer_4.cjs.entry.js +6 -6
- package/dist/cjs/crm-bonus-form.cjs.entry.js +2 -2
- package/dist/cjs/crm-bonus-note.cjs.entry.js +4 -4
- package/dist/cjs/crm-bonus.cjs.entry.js +19 -2
- package/dist/cjs/crm-bonus.cjs.entry.js.map +1 -1
- package/dist/cjs/crm-button.cjs.entry.js +1 -1
- package/dist/cjs/{crm-giftback-form.cjs.entry.js → crm-giftback-form_2.cjs.entry.js} +22 -7
- package/dist/cjs/crm-giftback-form_2.cjs.entry.js.map +1 -0
- package/dist/cjs/crmbonus-component-wake.cjs.js +2 -2
- package/dist/cjs/giftback-finish_4.cjs.entry.js +5 -5
- package/dist/cjs/{index-e3122e18.js → index-8243a0e3.js} +286 -5
- package/dist/{esm/index-c477a8b3.js.map → cjs/index-8243a0e3.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/loading-spinner.cjs.entry.js +2 -2
- package/dist/cjs/pedido-finalizado.cjs.entry.js +2 -2
- package/dist/cjs/phone-cancel-input.cjs.entry.js +2 -2
- package/dist/cjs/phone-input-mask.cjs.entry.js +2 -2
- package/dist/cjs/phone-input.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/crm-bonus/crm-bonus.js +45 -2
- 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-finish/giftback-finish.js +1 -1
- package/dist/collection/components/crm-bonus-form/subcomponents/giftback-pin/giftback-pin.js +1 -1
- package/dist/collection/components/crm-bonus-form/subcomponents/giftback-progress/giftback-progress.js +1 -1
- package/dist/collection/components/crm-bonus-form/subcomponents/name-input/name-input.js +1 -1
- package/dist/collection/components/crm-bonus-form/subcomponents/phone/phone.input.js +1 -1
- package/dist/collection/components/crm-bonus-form/subcomponents/phone-cancel/phone.cancel.input.js +1 -1
- package/dist/collection/components/giftback-form/giftback-form.js +5 -5
- package/dist/collection/components/giftback-form/giftback-form.js.map +1 -1
- package/dist/collection/components/giftback-form/subcomponents/giftback-info/giftback-info.js +3 -3
- 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.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/modal/app-modal.js +1 -1
- package/dist/collection/components/note/crm-bonus-note.js +3 -3
- package/dist/collection/components/pedido/pedido.js +1 -1
- package/dist/collection/components/phone/phone-input-mask.js +1 -1
- package/dist/components/app-modal.js +2 -2
- package/dist/components/countdown-timer.js +1 -1
- package/dist/components/crm-bonus-form.js +7 -7
- package/dist/components/crm-bonus-note.js +4 -4
- package/dist/components/crm-bonus.js +40 -15
- 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-finish.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/index.js +1 -1
- package/dist/components/loading-container.d.ts +11 -0
- package/dist/components/loading-container.js +8 -0
- package/dist/components/loading-container.js.map +1 -0
- package/dist/components/loading-spinner.js +1 -1
- package/dist/components/name-input.js +1 -1
- package/dist/components/{p-c933623f.js → p-0a29a684.js} +3 -3
- package/dist/components/{p-c933623f.js.map → p-0a29a684.js.map} +1 -1
- package/dist/components/{p-8bc69d9b.js → p-0ef696a9.js} +2 -2
- package/dist/components/{p-8bc69d9b.js.map → p-0ef696a9.js.map} +1 -1
- package/dist/components/{p-5f330088.js → p-27554f4e.js} +4 -4
- package/dist/components/{p-5f330088.js.map → p-27554f4e.js.map} +1 -1
- package/dist/components/{p-2db8985c.js → p-29622725.js} +3 -3
- package/dist/components/{p-2db8985c.js.map → p-29622725.js.map} +1 -1
- package/dist/components/{p-c1d19bba.js → p-56757e8d.js} +6 -6
- package/dist/components/{p-c1d19bba.js.map → p-56757e8d.js.map} +1 -1
- package/dist/components/{p-2a4df0a2.js → p-58ee9506.js} +4 -4
- package/dist/components/{p-2a4df0a2.js.map → p-58ee9506.js.map} +1 -1
- package/dist/components/{p-c2358b51.js → p-6592ce84.js} +4 -4
- package/dist/components/{p-c2358b51.js.map → p-6592ce84.js.map} +1 -1
- package/dist/components/{p-b289b82d.js → p-959f4cc8.js} +286 -5
- package/dist/{crmbonus-component-wake/p-45c0296c.js.map → components/p-959f4cc8.js.map} +1 -1
- package/dist/components/{p-d4cfdf80.js → p-998b6c7d.js} +5 -5
- package/dist/components/{p-d4cfdf80.js.map → p-998b6c7d.js.map} +1 -1
- package/dist/components/{p-984bc7d0.js → p-9ceca803.js} +14 -14
- package/dist/components/{p-984bc7d0.js.map → p-9ceca803.js.map} +1 -1
- package/dist/components/p-c7fc1cb6.js +36 -0
- package/dist/components/p-c7fc1cb6.js.map +1 -0
- package/dist/components/{p-e957883c.js → p-ca3d612c.js} +6 -6
- package/dist/components/{p-e957883c.js.map → p-ca3d612c.js.map} +1 -1
- package/dist/components/{p-bfe98629.js → p-f1639e26.js} +3 -3
- package/dist/components/{p-bfe98629.js.map → p-f1639e26.js.map} +1 -1
- package/dist/components/{p-24d29b6b.js → p-fbcbb1aa.js} +3 -3
- package/dist/components/{p-24d29b6b.js.map → p-fbcbb1aa.js.map} +1 -1
- package/dist/components/pedido-finalizado.js +2 -2
- package/dist/components/phone-cancel-input.js +4 -4
- package/dist/components/phone-form.js +1 -1
- package/dist/components/phone-input-mask.js +1 -1
- package/dist/components/phone-input.js +4 -4
- 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-0152eebc.entry.js → p-2086a755.entry.js} +2 -2
- package/dist/crmbonus-component-wake/p-24616d67.js +3 -0
- package/dist/crmbonus-component-wake/p-24616d67.js.map +1 -0
- package/dist/crmbonus-component-wake/{p-a465c900.entry.js → p-282b201b.entry.js} +2 -2
- package/dist/crmbonus-component-wake/p-304d3f89.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-4d351ad2.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-81d3a170.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-81d3a170.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/{p-b7103956.entry.js → p-8bd25376.entry.js} +2 -2
- package/dist/crmbonus-component-wake/p-92fe1963.entry.js +2 -0
- package/dist/crmbonus-component-wake/{p-5d209c28.entry.js → p-9ad0650e.entry.js} +2 -2
- package/dist/crmbonus-component-wake/{p-c121f6fc.entry.js → p-b7925fc7.entry.js} +2 -2
- package/dist/crmbonus-component-wake/{p-da97c793.entry.js → p-c8445f78.entry.js} +2 -2
- package/dist/crmbonus-component-wake/{p-0160f5f5.entry.js → p-cd95574b.entry.js} +2 -2
- package/dist/crmbonus-component-wake/{p-feadb94b.entry.js → p-d8e5a526.entry.js} +2 -2
- package/dist/crmbonus-component-wake/p-d8e5a526.entry.js.map +1 -0
- package/dist/crmbonus-component-wake/p-db4f04a8.entry.js +2 -0
- package/dist/esm/app-modal.entry.js +2 -2
- package/dist/esm/countdown-timer_4.entry.js +6 -6
- package/dist/esm/crm-bonus-form.entry.js +2 -2
- package/dist/esm/crm-bonus-note.entry.js +4 -4
- package/dist/esm/crm-bonus.entry.js +19 -2
- package/dist/esm/crm-bonus.entry.js.map +1 -1
- package/dist/esm/crm-button.entry.js +1 -1
- package/dist/esm/{crm-giftback-form.entry.js → crm-giftback-form_2.entry.js} +22 -8
- package/dist/esm/crm-giftback-form_2.entry.js.map +1 -0
- package/dist/esm/crmbonus-component-wake.js +3 -3
- package/dist/esm/giftback-finish_4.entry.js +5 -5
- package/dist/esm/{index-c477a8b3.js → index-84fba7ef.js} +286 -5
- package/dist/esm/index-84fba7ef.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/loading-spinner.entry.js +2 -2
- package/dist/esm/pedido-finalizado.entry.js +2 -2
- package/dist/esm/phone-cancel-input.entry.js +2 -2
- package/dist/esm/phone-input-mask.entry.js +2 -2
- package/dist/esm/phone-input.entry.js +2 -2
- package/dist/types/components/crm-bonus/crm-bonus.d.ts +2 -0
- package/dist/types/components/loading-container/loading-container.d.ts +4 -0
- package/dist/types/components.d.ts +16 -0
- package/package.json +1 -1
- package/dist/cjs/crm-giftback-form.cjs.entry.js.map +0 -1
- package/dist/cjs/index-e3122e18.js.map +0 -1
- package/dist/components/p-b289b82d.js.map +0 -1
- package/dist/crmbonus-component-wake/p-450423b5.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-45c0296c.js +0 -3
- package/dist/crmbonus-component-wake/p-5881e9d8.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-5881e9d8.entry.js.map +0 -1
- package/dist/crmbonus-component-wake/p-64441d8f.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-a950d747.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-d95bd37f.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-feadb94b.entry.js.map +0 -1
- package/dist/esm/crm-giftback-form.entry.js.map +0 -1
- /package/dist/crmbonus-component-wake/{p-0152eebc.entry.js.map → p-2086a755.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-a465c900.entry.js.map → p-282b201b.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-64441d8f.entry.js.map → p-304d3f89.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-a950d747.entry.js.map → p-4d351ad2.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-b7103956.entry.js.map → p-8bd25376.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-450423b5.entry.js.map → p-92fe1963.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-5d209c28.entry.js.map → p-9ad0650e.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-c121f6fc.entry.js.map → p-b7925fc7.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-da97c793.entry.js.map → p-c8445f78.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-0160f5f5.entry.js.map → p-cd95574b.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-d95bd37f.entry.js.map → p-db4f04a8.entry.js.map} +0 -0
@@ -1,5 +1,5 @@
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
2
|
-
export { s as setNonce } from './index-
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-84fba7ef.js';
|
2
|
+
export { s as setNonce } from './index-84fba7ef.js';
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
4
4
|
|
5
5
|
/*
|
@@ -16,7 +16,7 @@ var patchBrowser = () => {
|
|
16
16
|
|
17
17
|
patchBrowser().then(async (options) => {
|
18
18
|
await globalScripts();
|
19
|
-
return bootstrapLazy([["crm-bonus",[[2,"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],"resetBonus":[64]},null,{"productsInString":["watchProducts"]}]]],["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],"handleClick":[16]}]]],["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],"config":[16]}],[1,"pin-form",{"validate":[16],"cancel":[16],"resend":[16],"sent":[16],"loading":[4],"phone":[1],"config":[16],"pin":[32],"isVerified":[32],"canResend":[32]}],[0,"giftback-info",{"loading":[4],"bonus":[16],"reserve":[16],"cancel":[16],"usedValue":[32],"selectedOption":[32],"sliderPosition":[32]},null,{"bonus":["changedBonus"]}],[1,"countdown-timer",{"downtime":[16],"counter":[32]}]]],["crm-giftback-
|
19
|
+
return bootstrapLazy([["crm-bonus",[[2,"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],"loading_reprocess":[32],"resetBonus":[64],"reprocess":[64]},null,{"productsInString":["watchProducts"]}]]],["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],"handleClick":[16]}]]],["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],"config":[16]}],[1,"pin-form",{"validate":[16],"cancel":[16],"resend":[16],"sent":[16],"loading":[4],"phone":[1],"config":[16],"pin":[32],"isVerified":[32],"canResend":[32]}],[0,"giftback-info",{"loading":[4],"bonus":[16],"reserve":[16],"cancel":[16],"usedValue":[32],"selectedOption":[32],"sliderPosition":[32]},null,{"bonus":["changedBonus"]}],[1,"countdown-timer",{"downtime":[16],"counter":[32]}]]],["crm-giftback-form_2",[[0,"crm-giftback-form",{"storeName":[8,"storename"],"cartId":[8,"cart-id"],"products":[16],"customer":[16],"value":[32],"loading":[32],"message":[32],"phone":[32],"pinInfo":[32],"step":[32],"bonus":[32],"sucess":[32],"error":[32],"config":[32],"hasApplyBonus":[32],"setStep":[64],"processBonus":[64]}],[4,"loading-container",{"loading":[4]}]]],["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);
|
20
20
|
});
|
21
21
|
|
22
22
|
//# sourceMappingURL=crmbonus-component-wake.js.map
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
1
|
+
import { r as registerInstance, h } from './index-84fba7ef.js';
|
2
2
|
|
3
3
|
const successSvgrepoComSvg = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBVcGxvYWRlZCB0bzogU1ZHIFJlcG8sIHd3dy5zdmdyZXBvLmNvbSwgR2VuZXJhdG9yOiBTVkcgUmVwbyBNaXhlciBUb29scyAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiANCgkgdmlld0JveD0iMCAwIDUwIDUwIiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxjaXJjbGUgc3R5bGU9ImZpbGw6IzI1QUU4ODsiIGN4PSIyNSIgY3k9IjI1IiByPSIyNSIvPg0KPHBvbHlsaW5lIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNGRkZGRkY7c3Ryb2tlLXdpZHRoOjI7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwOyIgcG9pbnRzPSINCgkzOCwxNSAyMiwzMyAxMiwyNSAiLz4NCjwvc3ZnPg==';
|
4
4
|
|
@@ -10,7 +10,7 @@ const GiftbackFinish = class {
|
|
10
10
|
registerInstance(this, hostRef);
|
11
11
|
}
|
12
12
|
render() {
|
13
|
-
return (h("div", { key: '
|
13
|
+
return (h("div", { key: 'e72f82799146a6e94acbdd62324e07cdf9f77009', class: "message-finish" }, h("img", { key: '46e2436a3dbe4745225c3b9674e6bf6c299ad63e', src: successSvgrepoComSvg, width: 80 }), h("p", { key: '270e42050956f7f3d1ae9b90f314211fa310f797' }, "Legal! O B\u00F4nus ser\u00E1 aplicado na sua compra.")));
|
14
14
|
}
|
15
15
|
};
|
16
16
|
GiftbackFinish.style = GiftbackFinishStyle0;
|
@@ -49,7 +49,7 @@ const GiftbackPin = class {
|
|
49
49
|
}
|
50
50
|
}
|
51
51
|
render() {
|
52
|
-
return (h("div", { key: '
|
52
|
+
return (h("div", { key: '1757d5be19ea7a7f3b6ec2d52dacc188acf85eb9', class: "form-container-pin" }, h("div", { key: 'ff4c4f4de2b3f652752145855cdfd92809d831dc' }, h("p", { key: '0f0b8a7e16fc419953ccca0d954664860e6165d2' }, "Insira o PIN de 4 d\u00EDgitos enviado por SMS."), h("div", { key: '08fd4f430bf3186c62fbbdb747aa12173f2ec055', class: "pin-container" }, this.pin.map((_, index) => (h("input", { type: "text", maxLength: 1, value: this.pin[index], onInput: (event) => this.handleInput(event, index) }))))), h("div", { key: 'bc44db06179215f590db0cd0bd9c38ab8807cd0f', class: "footer-button" }, h("button", { key: '4a75e42791e79489ff69e884b7cdc0dbdc46c40e', class: "button-cancel", disabled: this.loading, onClick: () => this.cancel() }, "Cancelar"), h("button", { key: 'fe93430a1c13ecdd062062650fb268ba9350be76', class: `button ${this.loading ? 'disabled' : ''} `, disabled: this.loading, onClick: () => this.validatePin() }, !this.loading ? "Enviar" : h("loading-spinner", { size: "15px", color: "#fff" })))));
|
53
53
|
}
|
54
54
|
};
|
55
55
|
GiftbackPin.style = GiftbackPinStyle0;
|
@@ -85,7 +85,7 @@ const GiftbackProgress = class {
|
|
85
85
|
}
|
86
86
|
render() {
|
87
87
|
const remainingGiftback = this.bonus.minimumPurchase - this.bonus.totalValue;
|
88
|
-
return (h("div", { key: '
|
88
|
+
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" })))));
|
89
89
|
}
|
90
90
|
};
|
91
91
|
GiftbackProgress.style = GiftbackProgressStyle0;
|
@@ -114,7 +114,7 @@ const NameInput = class {
|
|
114
114
|
this.applyName(name);
|
115
115
|
}
|
116
116
|
render() {
|
117
|
-
return (h("div", { key: '
|
117
|
+
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" })))));
|
118
118
|
}
|
119
119
|
};
|
120
120
|
NameInput.style = NameInputStyle0;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
const NAMESPACE = 'crmbonus-component-wake';
|
2
|
-
const BUILD = /* crmbonus-component-wake */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation:
|
2
|
+
const BUILD = /* crmbonus-component-wake */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
3
3
|
|
4
4
|
/*
|
5
5
|
Stencil Client Platform v4.22.2 | MIT Licensed | https://stenciljs.com
|
@@ -200,6 +200,7 @@ var uniqueTime = (key, measureText) => {
|
|
200
200
|
var h = (nodeName, vnodeData, ...children) => {
|
201
201
|
let child = null;
|
202
202
|
let key = null;
|
203
|
+
let slotName = null;
|
203
204
|
let simple = false;
|
204
205
|
let lastSimple = false;
|
205
206
|
const vNodeChildren = [];
|
@@ -226,6 +227,9 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
226
227
|
if (vnodeData.key) {
|
227
228
|
key = vnodeData.key;
|
228
229
|
}
|
230
|
+
if (vnodeData.name) {
|
231
|
+
slotName = vnodeData.name;
|
232
|
+
}
|
229
233
|
{
|
230
234
|
const classData = vnodeData.className || vnodeData.class;
|
231
235
|
if (classData) {
|
@@ -241,6 +245,9 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
241
245
|
{
|
242
246
|
vnode.$key$ = key;
|
243
247
|
}
|
248
|
+
{
|
249
|
+
vnode.$name$ = slotName;
|
250
|
+
}
|
244
251
|
return vnode;
|
245
252
|
};
|
246
253
|
var newVNode = (tag, text) => {
|
@@ -257,6 +264,9 @@ var newVNode = (tag, text) => {
|
|
257
264
|
{
|
258
265
|
vnode.$key$ = null;
|
259
266
|
}
|
267
|
+
{
|
268
|
+
vnode.$name$ = null;
|
269
|
+
}
|
260
270
|
return vnode;
|
261
271
|
};
|
262
272
|
var Host = {};
|
@@ -512,16 +522,41 @@ function sortedAttrNames(attrNames) {
|
|
512
522
|
|
513
523
|
// src/runtime/vdom/vdom-render.ts
|
514
524
|
var scopeId;
|
525
|
+
var contentRef;
|
515
526
|
var hostTagName;
|
516
527
|
var useNativeShadowDom = false;
|
528
|
+
var checkSlotFallbackVisibility = false;
|
529
|
+
var checkSlotRelocate = false;
|
517
530
|
var isSvgMode = false;
|
518
531
|
var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
532
|
+
var _a;
|
519
533
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
520
534
|
let i2 = 0;
|
521
535
|
let elm;
|
522
536
|
let childNode;
|
537
|
+
let oldVNode;
|
538
|
+
if (!useNativeShadowDom) {
|
539
|
+
checkSlotRelocate = true;
|
540
|
+
if (newVNode2.$tag$ === "slot") {
|
541
|
+
if (scopeId) {
|
542
|
+
parentElm.classList.add(scopeId + "-s");
|
543
|
+
}
|
544
|
+
newVNode2.$flags$ |= newVNode2.$children$ ? (
|
545
|
+
// slot element has fallback content
|
546
|
+
// still create an element that "mocks" the slot element
|
547
|
+
2 /* isSlotFallback */
|
548
|
+
) : (
|
549
|
+
// slot element does not have fallback content
|
550
|
+
// create an html comment we'll use to always reference
|
551
|
+
// where actual slot content should sit next to
|
552
|
+
1 /* isSlotReference */
|
553
|
+
);
|
554
|
+
}
|
555
|
+
}
|
523
556
|
if (newVNode2.$text$ !== null) {
|
524
557
|
elm = newVNode2.$elm$ = doc.createTextNode(newVNode2.$text$);
|
558
|
+
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
559
|
+
elm = newVNode2.$elm$ = doc.createTextNode("");
|
525
560
|
} else {
|
526
561
|
elm = newVNode2.$elm$ = doc.createElement(
|
527
562
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
@@ -547,10 +582,50 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
547
582
|
}
|
548
583
|
}
|
549
584
|
elm["s-hn"] = hostTagName;
|
585
|
+
{
|
586
|
+
if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
587
|
+
elm["s-sr"] = true;
|
588
|
+
elm["s-cr"] = contentRef;
|
589
|
+
elm["s-sn"] = newVNode2.$name$ || "";
|
590
|
+
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
591
|
+
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
592
|
+
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
593
|
+
{
|
594
|
+
putBackInOriginalLocation(oldParentVNode.$elm$, false);
|
595
|
+
}
|
596
|
+
}
|
597
|
+
}
|
598
|
+
}
|
550
599
|
return elm;
|
551
600
|
};
|
601
|
+
var putBackInOriginalLocation = (parentElm, recursive) => {
|
602
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
603
|
+
const oldSlotChildNodes = Array.from(parentElm.childNodes);
|
604
|
+
if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
|
605
|
+
let node = parentElm;
|
606
|
+
while (node = node.nextSibling) {
|
607
|
+
if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
|
608
|
+
oldSlotChildNodes.push(node);
|
609
|
+
}
|
610
|
+
}
|
611
|
+
}
|
612
|
+
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
613
|
+
const childNode = oldSlotChildNodes[i2];
|
614
|
+
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
615
|
+
insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
|
616
|
+
childNode["s-ol"].remove();
|
617
|
+
childNode["s-ol"] = void 0;
|
618
|
+
childNode["s-sh"] = void 0;
|
619
|
+
checkSlotRelocate = true;
|
620
|
+
}
|
621
|
+
if (recursive) {
|
622
|
+
putBackInOriginalLocation(childNode, recursive);
|
623
|
+
}
|
624
|
+
}
|
625
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
626
|
+
};
|
552
627
|
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
553
|
-
let containerElm = parentElm;
|
628
|
+
let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
554
629
|
let childNode;
|
555
630
|
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
556
631
|
containerElm = containerElm.shadowRoot;
|
@@ -560,7 +635,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
560
635
|
childNode = createElm(null, parentVNode, startIdx, parentElm);
|
561
636
|
if (childNode) {
|
562
637
|
vnodes[startIdx].$elm$ = childNode;
|
563
|
-
insertBefore(containerElm, childNode, before);
|
638
|
+
insertBefore(containerElm, childNode, referenceNode(before) );
|
564
639
|
}
|
565
640
|
}
|
566
641
|
}
|
@@ -572,6 +647,14 @@ var removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
572
647
|
const elm = vnode.$elm$;
|
573
648
|
nullifyVNodeRefs(vnode);
|
574
649
|
if (elm) {
|
650
|
+
{
|
651
|
+
checkSlotFallbackVisibility = true;
|
652
|
+
if (elm["s-ol"]) {
|
653
|
+
elm["s-ol"].remove();
|
654
|
+
} else {
|
655
|
+
putBackInOriginalLocation(elm, true);
|
656
|
+
}
|
657
|
+
}
|
575
658
|
elm.remove();
|
576
659
|
}
|
577
660
|
}
|
@@ -608,11 +691,17 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
608
691
|
oldEndVnode = oldCh[--oldEndIdx];
|
609
692
|
newEndVnode = newCh[--newEndIdx];
|
610
693
|
} else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
694
|
+
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
695
|
+
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
696
|
+
}
|
611
697
|
patch(oldStartVnode, newEndVnode, isInitialRender);
|
612
698
|
insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
613
699
|
oldStartVnode = oldCh[++oldStartIdx];
|
614
700
|
newEndVnode = newCh[--newEndIdx];
|
615
701
|
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
702
|
+
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
703
|
+
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
704
|
+
}
|
616
705
|
patch(oldEndVnode, newStartVnode, isInitialRender);
|
617
706
|
insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
618
707
|
oldEndVnode = oldCh[--oldEndIdx];
|
@@ -643,7 +732,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
643
732
|
}
|
644
733
|
if (node) {
|
645
734
|
{
|
646
|
-
insertBefore(oldStartVnode.$elm
|
735
|
+
insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
|
647
736
|
}
|
648
737
|
}
|
649
738
|
}
|
@@ -663,6 +752,18 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
663
752
|
};
|
664
753
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
665
754
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
755
|
+
if (leftVNode.$tag$ === "slot") {
|
756
|
+
if (
|
757
|
+
// The component gets hydrated and no VDOM has been initialized.
|
758
|
+
// Here the comparison can't happen as $name$ property is not set for `leftNode`.
|
759
|
+
"$nodeId$" in leftVNode && isInitialRender && // `leftNode` is not from type HTMLComment which would cause many
|
760
|
+
// hydration comments to be removed
|
761
|
+
leftVNode.$elm$.nodeType !== 8
|
762
|
+
) {
|
763
|
+
return false;
|
764
|
+
}
|
765
|
+
return leftVNode.$name$ === rightVNode.$name$;
|
766
|
+
}
|
666
767
|
if (!isInitialRender) {
|
667
768
|
return leftVNode.$key$ === rightVNode.$key$;
|
668
769
|
}
|
@@ -670,12 +771,17 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
670
771
|
}
|
671
772
|
return false;
|
672
773
|
};
|
774
|
+
var referenceNode = (node) => {
|
775
|
+
return node && node["s-ol"] || node;
|
776
|
+
};
|
777
|
+
var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
|
673
778
|
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
674
779
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
675
780
|
const oldChildren = oldVNode.$children$;
|
676
781
|
const newChildren = newVNode2.$children$;
|
677
782
|
const tag = newVNode2.$tag$;
|
678
783
|
const text = newVNode2.$text$;
|
784
|
+
let defaultHolder;
|
679
785
|
if (text === null) {
|
680
786
|
{
|
681
787
|
if (tag === "slot" && !useNativeShadowDom) ; else {
|
@@ -695,10 +801,103 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
695
801
|
) {
|
696
802
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
697
803
|
}
|
804
|
+
} else if ((defaultHolder = elm["s-cr"])) {
|
805
|
+
defaultHolder.parentNode.textContent = text;
|
698
806
|
} else if (oldVNode.$text$ !== text) {
|
699
807
|
elm.data = text;
|
700
808
|
}
|
701
809
|
};
|
810
|
+
var updateFallbackSlotVisibility = (elm) => {
|
811
|
+
const childNodes = elm.childNodes;
|
812
|
+
for (const childNode of childNodes) {
|
813
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
814
|
+
if (childNode["s-sr"]) {
|
815
|
+
const slotName = childNode["s-sn"];
|
816
|
+
childNode.hidden = false;
|
817
|
+
for (const siblingNode of childNodes) {
|
818
|
+
if (siblingNode !== childNode) {
|
819
|
+
if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
|
820
|
+
if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
|
821
|
+
childNode.hidden = true;
|
822
|
+
break;
|
823
|
+
}
|
824
|
+
} else {
|
825
|
+
if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
|
826
|
+
childNode.hidden = true;
|
827
|
+
break;
|
828
|
+
}
|
829
|
+
}
|
830
|
+
}
|
831
|
+
}
|
832
|
+
}
|
833
|
+
updateFallbackSlotVisibility(childNode);
|
834
|
+
}
|
835
|
+
}
|
836
|
+
};
|
837
|
+
var relocateNodes = [];
|
838
|
+
var markSlotContentForRelocation = (elm) => {
|
839
|
+
let node;
|
840
|
+
let hostContentNodes;
|
841
|
+
let j;
|
842
|
+
for (const childNode of elm.childNodes) {
|
843
|
+
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
844
|
+
hostContentNodes = node.parentNode.childNodes;
|
845
|
+
const slotName = childNode["s-sn"];
|
846
|
+
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
847
|
+
node = hostContentNodes[j];
|
848
|
+
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!BUILD.experimentalSlotFixes )) {
|
849
|
+
if (isNodeLocatedInSlot(node, slotName)) {
|
850
|
+
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
851
|
+
checkSlotFallbackVisibility = true;
|
852
|
+
node["s-sn"] = node["s-sn"] || slotName;
|
853
|
+
if (relocateNodeData) {
|
854
|
+
relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
|
855
|
+
relocateNodeData.$slotRefNode$ = childNode;
|
856
|
+
} else {
|
857
|
+
node["s-sh"] = childNode["s-hn"];
|
858
|
+
relocateNodes.push({
|
859
|
+
$slotRefNode$: childNode,
|
860
|
+
$nodeToRelocate$: node
|
861
|
+
});
|
862
|
+
}
|
863
|
+
if (node["s-sr"]) {
|
864
|
+
relocateNodes.map((relocateNode) => {
|
865
|
+
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
|
866
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
867
|
+
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
868
|
+
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
869
|
+
}
|
870
|
+
}
|
871
|
+
});
|
872
|
+
}
|
873
|
+
} else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
874
|
+
relocateNodes.push({
|
875
|
+
$nodeToRelocate$: node
|
876
|
+
});
|
877
|
+
}
|
878
|
+
}
|
879
|
+
}
|
880
|
+
}
|
881
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
882
|
+
markSlotContentForRelocation(childNode);
|
883
|
+
}
|
884
|
+
}
|
885
|
+
};
|
886
|
+
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
887
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
888
|
+
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
889
|
+
return true;
|
890
|
+
}
|
891
|
+
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
892
|
+
return true;
|
893
|
+
}
|
894
|
+
return false;
|
895
|
+
}
|
896
|
+
if (nodeToRelocate["s-sn"] === slotName) {
|
897
|
+
return true;
|
898
|
+
}
|
899
|
+
return slotName === "";
|
900
|
+
};
|
702
901
|
var nullifyVNodeRefs = (vNode) => {
|
703
902
|
{
|
704
903
|
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
@@ -739,6 +938,7 @@ var updateElementScopeIds = (element, parent, iterateChildNodes = false) => {
|
|
739
938
|
}
|
740
939
|
};
|
741
940
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
941
|
+
var _a, _b, _c, _d;
|
742
942
|
const hostElm = hostRef.$hostElement$;
|
743
943
|
const cmpMeta = hostRef.$cmpMeta$;
|
744
944
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
@@ -765,7 +965,75 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
765
965
|
scopeId = hostElm["s-sc"];
|
766
966
|
}
|
767
967
|
useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
|
968
|
+
{
|
969
|
+
contentRef = hostElm["s-cr"];
|
970
|
+
checkSlotFallbackVisibility = false;
|
971
|
+
}
|
768
972
|
patch(oldVNode, rootVnode, isInitialLoad);
|
973
|
+
{
|
974
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
975
|
+
if (checkSlotRelocate) {
|
976
|
+
markSlotContentForRelocation(rootVnode.$elm$);
|
977
|
+
for (const relocateData of relocateNodes) {
|
978
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
979
|
+
if (!nodeToRelocate["s-ol"]) {
|
980
|
+
const orgLocationNode = doc.createTextNode("");
|
981
|
+
orgLocationNode["s-nr"] = nodeToRelocate;
|
982
|
+
insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
|
983
|
+
}
|
984
|
+
}
|
985
|
+
for (const relocateData of relocateNodes) {
|
986
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
987
|
+
const slotRefNode = relocateData.$slotRefNode$;
|
988
|
+
if (slotRefNode) {
|
989
|
+
const parentNodeRef = slotRefNode.parentNode;
|
990
|
+
let insertBeforeNode = slotRefNode.nextSibling;
|
991
|
+
{
|
992
|
+
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
993
|
+
while (orgLocationNode) {
|
994
|
+
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
995
|
+
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
|
996
|
+
refNode = refNode.nextSibling;
|
997
|
+
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
998
|
+
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
999
|
+
}
|
1000
|
+
if (!refNode || !refNode["s-nr"]) {
|
1001
|
+
insertBeforeNode = refNode;
|
1002
|
+
break;
|
1003
|
+
}
|
1004
|
+
}
|
1005
|
+
orgLocationNode = orgLocationNode.previousSibling;
|
1006
|
+
}
|
1007
|
+
}
|
1008
|
+
if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
|
1009
|
+
if (nodeToRelocate !== insertBeforeNode) {
|
1010
|
+
if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
1011
|
+
nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
|
1012
|
+
}
|
1013
|
+
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
1014
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
1015
|
+
nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
|
1016
|
+
}
|
1017
|
+
}
|
1018
|
+
}
|
1019
|
+
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](nodeToRelocate);
|
1020
|
+
} else {
|
1021
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
1022
|
+
if (isInitialLoad) {
|
1023
|
+
nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
|
1024
|
+
}
|
1025
|
+
nodeToRelocate.hidden = true;
|
1026
|
+
}
|
1027
|
+
}
|
1028
|
+
}
|
1029
|
+
}
|
1030
|
+
if (checkSlotFallbackVisibility) {
|
1031
|
+
updateFallbackSlotVisibility(rootVnode.$elm$);
|
1032
|
+
}
|
1033
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
1034
|
+
relocateNodes.length = 0;
|
1035
|
+
}
|
1036
|
+
contentRef = void 0;
|
769
1037
|
};
|
770
1038
|
|
771
1039
|
// src/runtime/update-component.ts
|
@@ -1113,6 +1381,12 @@ var connectedCallback = (elm) => {
|
|
1113
1381
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
1114
1382
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
1115
1383
|
hostRef.$flags$ |= 1 /* hasConnected */;
|
1384
|
+
{
|
1385
|
+
if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
1386
|
+
cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
|
1387
|
+
setContentReference(elm);
|
1388
|
+
}
|
1389
|
+
}
|
1116
1390
|
{
|
1117
1391
|
let ancestorComponent = elm;
|
1118
1392
|
while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
|
@@ -1142,6 +1416,13 @@ var connectedCallback = (elm) => {
|
|
1142
1416
|
endConnected();
|
1143
1417
|
}
|
1144
1418
|
};
|
1419
|
+
var setContentReference = (elm) => {
|
1420
|
+
const contentRefElm = elm["s-cr"] = doc.createComment(
|
1421
|
+
""
|
1422
|
+
);
|
1423
|
+
contentRefElm["s-cn"] = true;
|
1424
|
+
insertBefore(elm, contentRefElm, elm.firstChild);
|
1425
|
+
};
|
1145
1426
|
var disconnectInstance = (instance) => {
|
1146
1427
|
{
|
1147
1428
|
safeCall(instance, "disconnectedCallback");
|
@@ -1283,4 +1564,4 @@ var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
1283
1564
|
|
1284
1565
|
export { Host as H, bootstrapLazy as b, createEvent as c, h, promiseResolve as p, registerInstance as r, setNonce as s };
|
1285
1566
|
|
1286
|
-
//# sourceMappingURL=index-
|
1567
|
+
//# sourceMappingURL=index-84fba7ef.js.map
|