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.
Files changed (159) hide show
  1. package/dist/cjs/app-modal.cjs.entry.js +2 -2
  2. package/dist/cjs/countdown-timer_4.cjs.entry.js +6 -6
  3. package/dist/cjs/crm-bonus-form.cjs.entry.js +2 -2
  4. package/dist/cjs/crm-bonus-note.cjs.entry.js +4 -4
  5. package/dist/cjs/crm-bonus.cjs.entry.js +19 -2
  6. package/dist/cjs/crm-bonus.cjs.entry.js.map +1 -1
  7. package/dist/cjs/crm-button.cjs.entry.js +1 -1
  8. package/dist/cjs/{crm-giftback-form.cjs.entry.js → crm-giftback-form_2.cjs.entry.js} +22 -7
  9. package/dist/cjs/crm-giftback-form_2.cjs.entry.js.map +1 -0
  10. package/dist/cjs/crmbonus-component-wake.cjs.js +2 -2
  11. package/dist/cjs/giftback-finish_4.cjs.entry.js +5 -5
  12. package/dist/cjs/{index-e3122e18.js → index-8243a0e3.js} +286 -5
  13. package/dist/{esm/index-c477a8b3.js.map → cjs/index-8243a0e3.js.map} +1 -1
  14. package/dist/cjs/loader.cjs.js +2 -2
  15. package/dist/cjs/loading-spinner.cjs.entry.js +2 -2
  16. package/dist/cjs/pedido-finalizado.cjs.entry.js +2 -2
  17. package/dist/cjs/phone-cancel-input.cjs.entry.js +2 -2
  18. package/dist/cjs/phone-input-mask.cjs.entry.js +2 -2
  19. package/dist/cjs/phone-input.cjs.entry.js +2 -2
  20. package/dist/collection/collection-manifest.json +1 -0
  21. package/dist/collection/components/crm-bonus/crm-bonus.js +45 -2
  22. package/dist/collection/components/crm-bonus/crm-bonus.js.map +1 -1
  23. package/dist/collection/components/crm-bonus-form/crm-bonus-form.js +1 -1
  24. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-finish/giftback-finish.js +1 -1
  25. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-pin/giftback-pin.js +1 -1
  26. package/dist/collection/components/crm-bonus-form/subcomponents/giftback-progress/giftback-progress.js +1 -1
  27. package/dist/collection/components/crm-bonus-form/subcomponents/name-input/name-input.js +1 -1
  28. package/dist/collection/components/crm-bonus-form/subcomponents/phone/phone.input.js +1 -1
  29. package/dist/collection/components/crm-bonus-form/subcomponents/phone-cancel/phone.cancel.input.js +1 -1
  30. package/dist/collection/components/giftback-form/giftback-form.js +5 -5
  31. package/dist/collection/components/giftback-form/giftback-form.js.map +1 -1
  32. package/dist/collection/components/giftback-form/subcomponents/giftback-info/giftback-info.js +3 -3
  33. package/dist/collection/components/giftback-form/subcomponents/phone-form/phone-form.js +1 -1
  34. package/dist/collection/components/giftback-form/subcomponents/pin-form/pin-form.js +1 -1
  35. package/dist/collection/components/loading-container/loading-container.css +47 -0
  36. package/dist/collection/components/loading-container/loading-container.js +43 -0
  37. package/dist/collection/components/loading-container/loading-container.js.map +1 -0
  38. package/dist/collection/components/loading-spinner/loading-spinner.js +1 -1
  39. package/dist/collection/components/modal/app-modal.js +1 -1
  40. package/dist/collection/components/note/crm-bonus-note.js +3 -3
  41. package/dist/collection/components/pedido/pedido.js +1 -1
  42. package/dist/collection/components/phone/phone-input-mask.js +1 -1
  43. package/dist/components/app-modal.js +2 -2
  44. package/dist/components/countdown-timer.js +1 -1
  45. package/dist/components/crm-bonus-form.js +7 -7
  46. package/dist/components/crm-bonus-note.js +4 -4
  47. package/dist/components/crm-bonus.js +40 -15
  48. package/dist/components/crm-bonus.js.map +1 -1
  49. package/dist/components/crm-button.js +1 -1
  50. package/dist/components/crm-giftback-form.js +1 -1
  51. package/dist/components/giftback-finish.js +1 -1
  52. package/dist/components/giftback-info.js +1 -1
  53. package/dist/components/giftback-pin.js +1 -1
  54. package/dist/components/giftback-progress.js +1 -1
  55. package/dist/components/index.js +1 -1
  56. package/dist/components/loading-container.d.ts +11 -0
  57. package/dist/components/loading-container.js +8 -0
  58. package/dist/components/loading-container.js.map +1 -0
  59. package/dist/components/loading-spinner.js +1 -1
  60. package/dist/components/name-input.js +1 -1
  61. package/dist/components/{p-c933623f.js → p-0a29a684.js} +3 -3
  62. package/dist/components/{p-c933623f.js.map → p-0a29a684.js.map} +1 -1
  63. package/dist/components/{p-8bc69d9b.js → p-0ef696a9.js} +2 -2
  64. package/dist/components/{p-8bc69d9b.js.map → p-0ef696a9.js.map} +1 -1
  65. package/dist/components/{p-5f330088.js → p-27554f4e.js} +4 -4
  66. package/dist/components/{p-5f330088.js.map → p-27554f4e.js.map} +1 -1
  67. package/dist/components/{p-2db8985c.js → p-29622725.js} +3 -3
  68. package/dist/components/{p-2db8985c.js.map → p-29622725.js.map} +1 -1
  69. package/dist/components/{p-c1d19bba.js → p-56757e8d.js} +6 -6
  70. package/dist/components/{p-c1d19bba.js.map → p-56757e8d.js.map} +1 -1
  71. package/dist/components/{p-2a4df0a2.js → p-58ee9506.js} +4 -4
  72. package/dist/components/{p-2a4df0a2.js.map → p-58ee9506.js.map} +1 -1
  73. package/dist/components/{p-c2358b51.js → p-6592ce84.js} +4 -4
  74. package/dist/components/{p-c2358b51.js.map → p-6592ce84.js.map} +1 -1
  75. package/dist/components/{p-b289b82d.js → p-959f4cc8.js} +286 -5
  76. package/dist/{crmbonus-component-wake/p-45c0296c.js.map → components/p-959f4cc8.js.map} +1 -1
  77. package/dist/components/{p-d4cfdf80.js → p-998b6c7d.js} +5 -5
  78. package/dist/components/{p-d4cfdf80.js.map → p-998b6c7d.js.map} +1 -1
  79. package/dist/components/{p-984bc7d0.js → p-9ceca803.js} +14 -14
  80. package/dist/components/{p-984bc7d0.js.map → p-9ceca803.js.map} +1 -1
  81. package/dist/components/p-c7fc1cb6.js +36 -0
  82. package/dist/components/p-c7fc1cb6.js.map +1 -0
  83. package/dist/components/{p-e957883c.js → p-ca3d612c.js} +6 -6
  84. package/dist/components/{p-e957883c.js.map → p-ca3d612c.js.map} +1 -1
  85. package/dist/components/{p-bfe98629.js → p-f1639e26.js} +3 -3
  86. package/dist/components/{p-bfe98629.js.map → p-f1639e26.js.map} +1 -1
  87. package/dist/components/{p-24d29b6b.js → p-fbcbb1aa.js} +3 -3
  88. package/dist/components/{p-24d29b6b.js.map → p-fbcbb1aa.js.map} +1 -1
  89. package/dist/components/pedido-finalizado.js +2 -2
  90. package/dist/components/phone-cancel-input.js +4 -4
  91. package/dist/components/phone-form.js +1 -1
  92. package/dist/components/phone-input-mask.js +1 -1
  93. package/dist/components/phone-input.js +4 -4
  94. package/dist/components/pin-form.js +1 -1
  95. package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js +1 -1
  96. package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js.map +1 -1
  97. package/dist/crmbonus-component-wake/{p-0152eebc.entry.js → p-2086a755.entry.js} +2 -2
  98. package/dist/crmbonus-component-wake/p-24616d67.js +3 -0
  99. package/dist/crmbonus-component-wake/p-24616d67.js.map +1 -0
  100. package/dist/crmbonus-component-wake/{p-a465c900.entry.js → p-282b201b.entry.js} +2 -2
  101. package/dist/crmbonus-component-wake/p-304d3f89.entry.js +2 -0
  102. package/dist/crmbonus-component-wake/p-4d351ad2.entry.js +2 -0
  103. package/dist/crmbonus-component-wake/p-81d3a170.entry.js +2 -0
  104. package/dist/crmbonus-component-wake/p-81d3a170.entry.js.map +1 -0
  105. package/dist/crmbonus-component-wake/{p-b7103956.entry.js → p-8bd25376.entry.js} +2 -2
  106. package/dist/crmbonus-component-wake/p-92fe1963.entry.js +2 -0
  107. package/dist/crmbonus-component-wake/{p-5d209c28.entry.js → p-9ad0650e.entry.js} +2 -2
  108. package/dist/crmbonus-component-wake/{p-c121f6fc.entry.js → p-b7925fc7.entry.js} +2 -2
  109. package/dist/crmbonus-component-wake/{p-da97c793.entry.js → p-c8445f78.entry.js} +2 -2
  110. package/dist/crmbonus-component-wake/{p-0160f5f5.entry.js → p-cd95574b.entry.js} +2 -2
  111. package/dist/crmbonus-component-wake/{p-feadb94b.entry.js → p-d8e5a526.entry.js} +2 -2
  112. package/dist/crmbonus-component-wake/p-d8e5a526.entry.js.map +1 -0
  113. package/dist/crmbonus-component-wake/p-db4f04a8.entry.js +2 -0
  114. package/dist/esm/app-modal.entry.js +2 -2
  115. package/dist/esm/countdown-timer_4.entry.js +6 -6
  116. package/dist/esm/crm-bonus-form.entry.js +2 -2
  117. package/dist/esm/crm-bonus-note.entry.js +4 -4
  118. package/dist/esm/crm-bonus.entry.js +19 -2
  119. package/dist/esm/crm-bonus.entry.js.map +1 -1
  120. package/dist/esm/crm-button.entry.js +1 -1
  121. package/dist/esm/{crm-giftback-form.entry.js → crm-giftback-form_2.entry.js} +22 -8
  122. package/dist/esm/crm-giftback-form_2.entry.js.map +1 -0
  123. package/dist/esm/crmbonus-component-wake.js +3 -3
  124. package/dist/esm/giftback-finish_4.entry.js +5 -5
  125. package/dist/esm/{index-c477a8b3.js → index-84fba7ef.js} +286 -5
  126. package/dist/esm/index-84fba7ef.js.map +1 -0
  127. package/dist/esm/loader.js +3 -3
  128. package/dist/esm/loading-spinner.entry.js +2 -2
  129. package/dist/esm/pedido-finalizado.entry.js +2 -2
  130. package/dist/esm/phone-cancel-input.entry.js +2 -2
  131. package/dist/esm/phone-input-mask.entry.js +2 -2
  132. package/dist/esm/phone-input.entry.js +2 -2
  133. package/dist/types/components/crm-bonus/crm-bonus.d.ts +2 -0
  134. package/dist/types/components/loading-container/loading-container.d.ts +4 -0
  135. package/dist/types/components.d.ts +16 -0
  136. package/package.json +1 -1
  137. package/dist/cjs/crm-giftback-form.cjs.entry.js.map +0 -1
  138. package/dist/cjs/index-e3122e18.js.map +0 -1
  139. package/dist/components/p-b289b82d.js.map +0 -1
  140. package/dist/crmbonus-component-wake/p-450423b5.entry.js +0 -2
  141. package/dist/crmbonus-component-wake/p-45c0296c.js +0 -3
  142. package/dist/crmbonus-component-wake/p-5881e9d8.entry.js +0 -2
  143. package/dist/crmbonus-component-wake/p-5881e9d8.entry.js.map +0 -1
  144. package/dist/crmbonus-component-wake/p-64441d8f.entry.js +0 -2
  145. package/dist/crmbonus-component-wake/p-a950d747.entry.js +0 -2
  146. package/dist/crmbonus-component-wake/p-d95bd37f.entry.js +0 -2
  147. package/dist/crmbonus-component-wake/p-feadb94b.entry.js.map +0 -1
  148. package/dist/esm/crm-giftback-form.entry.js.map +0 -1
  149. /package/dist/crmbonus-component-wake/{p-0152eebc.entry.js.map → p-2086a755.entry.js.map} +0 -0
  150. /package/dist/crmbonus-component-wake/{p-a465c900.entry.js.map → p-282b201b.entry.js.map} +0 -0
  151. /package/dist/crmbonus-component-wake/{p-64441d8f.entry.js.map → p-304d3f89.entry.js.map} +0 -0
  152. /package/dist/crmbonus-component-wake/{p-a950d747.entry.js.map → p-4d351ad2.entry.js.map} +0 -0
  153. /package/dist/crmbonus-component-wake/{p-b7103956.entry.js.map → p-8bd25376.entry.js.map} +0 -0
  154. /package/dist/crmbonus-component-wake/{p-450423b5.entry.js.map → p-92fe1963.entry.js.map} +0 -0
  155. /package/dist/crmbonus-component-wake/{p-5d209c28.entry.js.map → p-9ad0650e.entry.js.map} +0 -0
  156. /package/dist/crmbonus-component-wake/{p-c121f6fc.entry.js.map → p-b7925fc7.entry.js.map} +0 -0
  157. /package/dist/crmbonus-component-wake/{p-da97c793.entry.js.map → p-c8445f78.entry.js.map} +0 -0
  158. /package/dist/crmbonus-component-wake/{p-0160f5f5.entry.js.map → p-cd95574b.entry.js.map} +0 -0
  159. /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-c477a8b3.js';
2
- export { s as setNonce } from './index-c477a8b3.js';
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-form",[[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]}]]],["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);
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-c477a8b3.js';
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: 'b2db01665e3e19659c35a8c912742352bca4a1ae', class: "message-finish" }, h("img", { key: '0cb6d72a9bb696cf16ee38255cb2d5d6170e5ff1', src: successSvgrepoComSvg, width: 80 }), h("p", { key: '489dd5b09d20ff2140be375c1e234d5bf9671622' }, "Legal! O B\u00F4nus ser\u00E1 aplicado na sua compra.")));
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: '6a91db0c8c2d522fcd7c0c3a9249711cedea8263', class: "form-container-pin" }, h("div", { key: '9a894eda70decb59549c0b0418e38b8cc64c3e91' }, h("p", { key: '0eea92e1f7a121cf7435fb8855d74da71b3a8435' }, "Insira o PIN de 4 d\u00EDgitos enviado por SMS."), h("div", { key: 'c574ba350400555e6bfc16f995b5c122bc3b7cd5', 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: 'b904758b7a26c79a1fb87e9b93f3c986c98ec318', class: "footer-button" }, h("button", { key: '31a4f91fca0c3d5a47c4eedb7d2a47ee8184b882', class: "button-cancel", disabled: this.loading, onClick: () => this.cancel() }, "Cancelar"), h("button", { key: 'd5a1a344d7cd6ae8c113ea43f35512b75d6c01c9', class: `button ${this.loading ? 'disabled' : ''} `, disabled: this.loading, onClick: () => this.validatePin() }, !this.loading ? "Enviar" : h("loading-spinner", { size: "15px", color: "#fff" })))));
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: 'a5e02f60ab5e081341582ea0b1cfaa05583a22c2', class: "giftback-container" }, h("p", { key: '12eddb011e6a6beda91a1bc937fcacdb891b12a5' }, "Voc\u00EA possui at\u00E9 ", h("strong", { key: 'eb6018fe44106dd2a9928d4efe77dbd17180e3d3' }, "R$ ", this.bonus.totalBonus.toFixed(2)), " de Giftback nessa compra!"), h("p", { key: '065028af79e33d565c82bd55ea2245e3562617e8', class: "validity" }, "V\u00E1lido at\u00E9: ", new Date(this.bonus.firstValidityDate).toLocaleDateString('pt-Br')), h("p", { key: '1ed8896f6301c2c70fb7232190a2c68bc82e5f07' }, "Voc\u00EA est\u00E1 utilizando ", h("strong", { key: 'e2019caa7c7697f73021416632ca884097e21abe' }, "R$ ", this.usedValue.toFixed(2)), " nessa compra"), h("div", { key: 'b0257ef4d99c4009f23a4d9fae52b42d2ef41209', class: "progress-container" }, h("span", { key: 'bb0d1abe791dfcab30e87fea8eb025a9f3787be0' }, "R$ 0"), h("input", { key: 'a4220c65f24d68b56ccf522a46c0bd3d007c9ed6', disabled: true, type: "range", min: "0", step: "0.01", max: this.bonus.totalBonus, value: this.usedValue, onInput: (event) => this.handleSliderChange(event) }), h("span", { key: 'c216b57ffdd2a3613f05db327aad395f1f2e1285' }, "R$ ", this.bonus.totalBonus.toFixed(2))), h("p", { key: '7a5dc6a68801da2c09a33f3cdb6cf82e521be581', class: "remaining" }, "Faltam ", h("strong", { key: '9c20b260d4a95887844aa038e0f74180fff5c1eb' }, "R$ ", remainingGiftback > 0 ? remainingGiftback.toFixed(2) : Number(0).toFixed(2)), " para utilizar o valor total do Giftback."), h("div", { key: 'd99639afcac1ea180ad414ca923391f99f3d5296', class: "footer-button-giftback" }, h("button", { key: '4c1bdd2ea2ecd5037d1c29b6af31c3163fffe84a', class: "button-cancel", disabled: this.loading, onClick: () => this.cancel() }, "Cancelar"), h("button", { key: '77fc073d28272334d51ab7073e34654509c0ac26', class: `button ${this.loading ? 'disabled' : ''} `, disabled: this.loading, onClick: () => this.handleReserve(this.usedValue) }, !this.loading ? "Aplicar" : h("loading-spinner", { size: "10px", color: "#fff" })))));
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: 'dc6b958c6cfb83af8275cf4ff47b1ece5f8f6d93', class: "name-container" }, h("p", { key: 'd9c1105b6aab09acbd970a001735b58eb5104d9b' }, "Seu Nome:"), h("input", { key: 'f562d5e2b1b626245abb5260ad1e197fd9a60e43', class: "bc-form-control", type: "text", value: this.value, onChange: (event) => this.handleChangeName(event) }), h("p", { key: '980d915607979ee8ae8873a2fe17998c46d1ae64' }, this.message), h("div", { key: 'b4e75bbb6ee5c6f53e27722ffad3c6e1b9ae6d7f', class: "footer-button" }, h("button", { key: 'c421fbbe0d0bcf38e057afeb86f864ebb39f9fc8', class: "button-cancel", disabled: this.loading, onClick: () => this.cancel() }, "Cancelar"), h("button", { key: '17d357d3de919698efab46febb5c1ad97c398c77', class: `button ${this.loading ? 'disabled' : ''} `, disabled: this.loading, onClick: () => this.handleSetName(this.newValue) }, !this.loading ? "Continua" : h("loading-spinner", { size: "15px", color: "#fff" })))));
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: false, 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 };
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$.parentNode, node, 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-c477a8b3.js.map
1567
+ //# sourceMappingURL=index-84fba7ef.js.map