crmbonus-component-wake 1.0.38 → 1.0.39

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.
@@ -14,6 +14,13 @@ const CrmBonusNote = class {
14
14
  this.url = undefined;
15
15
  }
16
16
  componentWillLoad() {
17
+ }
18
+ upadateCheckToFreteAndGetUrl() {
19
+ const envios = document.getElementsByName('forma-envio');
20
+ console.log('envios', envios.length);
21
+ envios.forEach((envio) => {
22
+ envio.checked = false;
23
+ });
17
24
  this.url = window.location.origin;
18
25
  }
19
26
  handleHide() {
@@ -1 +1 @@
1
- {"file":"crm-bonus-note.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,eAAe,GAAG,2aAA2a,CAAC;AACpc,2BAAe,eAAe;;MCKjB,YAAY;;;;;;IAOrB,iBAAiB;QACb,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;KACrC;IAED,UAAU;QACN,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjD,OAAO,CAAC,CAAC,MAAM,CAAC;KACnB;IAED,MAAM;QAEF,IAAG,IAAI,CAAC,UAAU,EAAE,EAAE;YAClB,QAAQA,oBAAW,EAAC;SACvB;QAED,QACIA,qBACIA,iBAAK,KAAK,EAAC,gBAAgB,IACvBA,eAAG,KAAK,EAAC,YAAY,gBAEjB,EAEJA,eAAG,KAAK,EAAC,kBAAkB,wFAEvB,EAEJA,eAAG,KAAK,EAAC,WAAW,EAAC,IAAI,EAAE,IAAI,CAAC,GAAG,yBAE/B,CACF,CACJ,EACT;KACJ;;;;;;","names":["h"],"sources":["src/components/note/crm-bonus-note.css?tag=crm-bonus-note","src/components/note/crm-bonus-note.tsx"],"sourcesContent":[".note-container {\n border: 1px solid #dddddd;\n padding: 0 15px 15px;\n margin: 0 0 26px 0px;\n}\n\n.note-container .back-cart {\n display: flex;\n text-align: center;\n} \n\n.note-title {\n font-weight: 700;\n height: 2em;\n line-height: 2em;\n text-align: left;\n border-radius: 3px;\n color: #333;\n margin-bottom: 1.4em;\n}\n\n.note-description {\n font-family: Arial;\n color: #6d6d5f;\n padding: 0;\n margin: 0 auto;\n}\n\n.back-cart {\n font-size: .9em;\n color: #337ab7;\n text-decoration: none;\n cursor: pointer;\n margin-top: 11px;\n}","import { Component, Prop, State, h } from \"@stencil/core\";\n\n@Component({\n tag: 'crm-bonus-note',\n styleUrl: 'crm-bonus-note.css'\n})\nexport class CrmBonusNote {\n\n @Prop({ attribute: 'cartid' }) cartId\n\n @State() url: string;\n\n\n componentWillLoad() {\n this.url = window.location.origin;\n }\n\n handleHide() {\n const amount = localStorage.getItem(this.cartId);\n return !!amount;\n }\n\n render() {\n\n if(this.handleHide()) {\n return (<div></div>)\n }\n\n return (\n <div>\n <div class=\"note-container\">\n <p class=\"note-title\">\n Gift back\n </p>\n\n <p class=\"note-description\">\n Volte ao carrinho e confira se você tem Giftback para aplicar na sua compra!\n </p>\n\n <a class=\"back-cart\" href={this.url}>\n Voltar ao carrinho\n </a>\n </div>\n </div>\n )\n }\n}"],"version":3}
1
+ {"file":"crm-bonus-note.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,eAAe,GAAG,2aAA2a,CAAC;AACpc,2BAAe,eAAe;;MCKjB,YAAY;;;;;;IAOrB,iBAAiB;KAEhB;IAED,4BAA4B;QACxB,MAAM,MAAM,GAAG,QAAQ,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAAC;QAEzD,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;QAErC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAU;YACtB,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;SACzB,CAAC,CAAA;QAEF,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;KACrC;IAED,UAAU;QACN,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjD,OAAO,CAAC,CAAC,MAAM,CAAC;KACnB;IAED,MAAM;QAEF,IAAG,IAAI,CAAC,UAAU,EAAE,EAAE;YAClB,QAAQA,oBAAW,EAAC;SACvB;QAED,QACIA,qBACIA,iBAAK,KAAK,EAAC,gBAAgB,IACvBA,eAAG,KAAK,EAAC,YAAY,gBAEjB,EAEJA,eAAG,KAAK,EAAC,kBAAkB,wFAEvB,EAEJA,eAAG,KAAK,EAAC,WAAW,EAAC,IAAI,EAAE,IAAI,CAAC,GAAG,yBAE/B,CACF,CACJ,EACT;KACJ;;;;;;","names":["h"],"sources":["src/components/note/crm-bonus-note.css?tag=crm-bonus-note","src/components/note/crm-bonus-note.tsx"],"sourcesContent":[".note-container {\n border: 1px solid #dddddd;\n padding: 0 15px 15px;\n margin: 0 0 26px 0px;\n}\n\n.note-container .back-cart {\n display: flex;\n text-align: center;\n} \n\n.note-title {\n font-weight: 700;\n height: 2em;\n line-height: 2em;\n text-align: left;\n border-radius: 3px;\n color: #333;\n margin-bottom: 1.4em;\n}\n\n.note-description {\n font-family: Arial;\n color: #6d6d5f;\n padding: 0;\n margin: 0 auto;\n}\n\n.back-cart {\n font-size: .9em;\n color: #337ab7;\n text-decoration: none;\n cursor: pointer;\n margin-top: 11px;\n}","import { Component, Prop, State, h } from \"@stencil/core\";\n\n@Component({\n tag: 'crm-bonus-note',\n styleUrl: 'crm-bonus-note.css'\n})\nexport class CrmBonusNote {\n\n @Prop({ attribute: 'cartid' }) cartId\n\n @State() url: string;\n\n\n componentWillLoad() {\n \n }\n\n upadateCheckToFreteAndGetUrl() {\n const envios = document.getElementsByName('forma-envio');\n\n console.log('envios', envios.length);\n\n envios.forEach((envio: any) => {\n envio.checked = false;\n })\n\n this.url = window.location.origin;\n }\n\n handleHide() {\n const amount = localStorage.getItem(this.cartId);\n return !!amount;\n }\n\n render() {\n\n if(this.handleHide()) {\n return (<div></div>)\n }\n\n return (\n <div>\n <div class=\"note-container\">\n <p class=\"note-title\">\n Gift back\n </p>\n\n <p class=\"note-description\">\n Volte ao carrinho e confira se você tem Giftback para aplicar na sua compra!\n </p>\n\n <a class=\"back-cart\" href={this.url}>\n Voltar ao carrinho\n </a>\n </div>\n </div>\n )\n }\n}"],"version":3}
@@ -5,6 +5,13 @@ export class CrmBonusNote {
5
5
  this.url = undefined;
6
6
  }
7
7
  componentWillLoad() {
8
+ }
9
+ upadateCheckToFreteAndGetUrl() {
10
+ const envios = document.getElementsByName('forma-envio');
11
+ console.log('envios', envios.length);
12
+ envios.forEach((envio) => {
13
+ envio.checked = false;
14
+ });
8
15
  this.url = window.location.origin;
9
16
  }
10
17
  handleHide() {
@@ -1 +1 @@
1
- {"version":3,"file":"crm-bonus-note.js","sourceRoot":"","sources":["../../../../src/components/note/crm-bonus-note.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAM1D,MAAM,OAAO,YAAY;;;;;IAOrB,iBAAiB;QACb,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;IACtC,CAAC;IAED,UAAU;QACN,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjD,OAAO,CAAC,CAAC,MAAM,CAAC;IACpB,CAAC;IAED,MAAM;QAEF,IAAG,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC;YACnB,OAAO,CAAC,cAAW,CAAC,CAAA;QACxB,CAAC;QAED,OAAO,CACH;YACI,WAAK,KAAK,EAAC,gBAAgB;gBACvB,SAAG,KAAK,EAAC,YAAY,gBAEjB;gBAEJ,SAAG,KAAK,EAAC,kBAAkB,wFAEvB;gBAEJ,SAAG,KAAK,EAAC,WAAW,EAAC,IAAI,EAAE,IAAI,CAAC,GAAG,yBAE/B,CACF,CACJ,CACT,CAAA;IACL,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Prop, State, h } from \"@stencil/core\";\n\n@Component({\n tag: 'crm-bonus-note',\n styleUrl: 'crm-bonus-note.css'\n})\nexport class CrmBonusNote {\n\n @Prop({ attribute: 'cartid' }) cartId\n\n @State() url: string;\n\n\n componentWillLoad() {\n this.url = window.location.origin;\n }\n\n handleHide() {\n const amount = localStorage.getItem(this.cartId);\n return !!amount;\n }\n\n render() {\n\n if(this.handleHide()) {\n return (<div></div>)\n }\n\n return (\n <div>\n <div class=\"note-container\">\n <p class=\"note-title\">\n Gift back\n </p>\n\n <p class=\"note-description\">\n Volte ao carrinho e confira se você tem Giftback para aplicar na sua compra!\n </p>\n\n <a class=\"back-cart\" href={this.url}>\n Voltar ao carrinho\n </a>\n </div>\n </div>\n )\n }\n}"]}
1
+ {"version":3,"file":"crm-bonus-note.js","sourceRoot":"","sources":["../../../../src/components/note/crm-bonus-note.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAM1D,MAAM,OAAO,YAAY;;;;;IAOrB,iBAAiB;IAEjB,CAAC;IAED,4BAA4B;QACxB,MAAM,MAAM,GAAG,QAAQ,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAAC;QAEzD,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;QAErC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAU,EAAE,EAAE;YAC1B,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;QAC1B,CAAC,CAAC,CAAA;QAEF,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;IACtC,CAAC;IAED,UAAU;QACN,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjD,OAAO,CAAC,CAAC,MAAM,CAAC;IACpB,CAAC;IAED,MAAM;QAEF,IAAG,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC;YACnB,OAAO,CAAC,cAAW,CAAC,CAAA;QACxB,CAAC;QAED,OAAO,CACH;YACI,WAAK,KAAK,EAAC,gBAAgB;gBACvB,SAAG,KAAK,EAAC,YAAY,gBAEjB;gBAEJ,SAAG,KAAK,EAAC,kBAAkB,wFAEvB;gBAEJ,SAAG,KAAK,EAAC,WAAW,EAAC,IAAI,EAAE,IAAI,CAAC,GAAG,yBAE/B,CACF,CACJ,CACT,CAAA;IACL,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, Prop, State, h } from \"@stencil/core\";\n\n@Component({\n tag: 'crm-bonus-note',\n styleUrl: 'crm-bonus-note.css'\n})\nexport class CrmBonusNote {\n\n @Prop({ attribute: 'cartid' }) cartId\n\n @State() url: string;\n\n\n componentWillLoad() {\n \n }\n\n upadateCheckToFreteAndGetUrl() {\n const envios = document.getElementsByName('forma-envio');\n\n console.log('envios', envios.length);\n\n envios.forEach((envio: any) => {\n envio.checked = false;\n })\n\n this.url = window.location.origin;\n }\n\n handleHide() {\n const amount = localStorage.getItem(this.cartId);\n return !!amount;\n }\n\n render() {\n\n if(this.handleHide()) {\n return (<div></div>)\n }\n\n return (\n <div>\n <div class=\"note-container\">\n <p class=\"note-title\">\n Gift back\n </p>\n\n <p class=\"note-description\">\n Volte ao carrinho e confira se você tem Giftback para aplicar na sua compra!\n </p>\n\n <a class=\"back-cart\" href={this.url}>\n Voltar ao carrinho\n </a>\n </div>\n </div>\n )\n }\n}"]}
@@ -11,6 +11,13 @@ const CrmBonusNote$1 = /*@__PURE__*/ proxyCustomElement(class CrmBonusNote exten
11
11
  this.url = undefined;
12
12
  }
13
13
  componentWillLoad() {
14
+ }
15
+ upadateCheckToFreteAndGetUrl() {
16
+ const envios = document.getElementsByName('forma-envio');
17
+ console.log('envios', envios.length);
18
+ envios.forEach((envio) => {
19
+ envio.checked = false;
20
+ });
14
21
  this.url = window.location.origin;
15
22
  }
16
23
  handleHide() {
@@ -1 +1 @@
1
- {"file":"crm-bonus-note.js","mappings":";;AAAA,MAAM,eAAe,GAAG,2aAA2a,CAAC;AACpc,2BAAe,eAAe;;MCKjBA,cAAY;;;;;;;IAOrB,iBAAiB;QACb,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;KACrC;IAED,UAAU;QACN,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjD,OAAO,CAAC,CAAC,MAAM,CAAC;KACnB;IAED,MAAM;QAEF,IAAG,IAAI,CAAC,UAAU,EAAE,EAAE;YAClB,QAAQ,cAAW,EAAC;SACvB;QAED,QACI,eACI,WAAK,KAAK,EAAC,gBAAgB,IACvB,SAAG,KAAK,EAAC,YAAY,gBAEjB,EAEJ,SAAG,KAAK,EAAC,kBAAkB,wFAEvB,EAEJ,SAAG,KAAK,EAAC,WAAW,EAAC,IAAI,EAAE,IAAI,CAAC,GAAG,yBAE/B,CACF,CACJ,EACT;KACJ;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CrmBonusNote"],"sources":["src/components/note/crm-bonus-note.css?tag=crm-bonus-note","src/components/note/crm-bonus-note.tsx"],"sourcesContent":[".note-container {\n border: 1px solid #dddddd;\n padding: 0 15px 15px;\n margin: 0 0 26px 0px;\n}\n\n.note-container .back-cart {\n display: flex;\n text-align: center;\n} \n\n.note-title {\n font-weight: 700;\n height: 2em;\n line-height: 2em;\n text-align: left;\n border-radius: 3px;\n color: #333;\n margin-bottom: 1.4em;\n}\n\n.note-description {\n font-family: Arial;\n color: #6d6d5f;\n padding: 0;\n margin: 0 auto;\n}\n\n.back-cart {\n font-size: .9em;\n color: #337ab7;\n text-decoration: none;\n cursor: pointer;\n margin-top: 11px;\n}","import { Component, Prop, State, h } from \"@stencil/core\";\n\n@Component({\n tag: 'crm-bonus-note',\n styleUrl: 'crm-bonus-note.css'\n})\nexport class CrmBonusNote {\n\n @Prop({ attribute: 'cartid' }) cartId\n\n @State() url: string;\n\n\n componentWillLoad() {\n this.url = window.location.origin;\n }\n\n handleHide() {\n const amount = localStorage.getItem(this.cartId);\n return !!amount;\n }\n\n render() {\n\n if(this.handleHide()) {\n return (<div></div>)\n }\n\n return (\n <div>\n <div class=\"note-container\">\n <p class=\"note-title\">\n Gift back\n </p>\n\n <p class=\"note-description\">\n Volte ao carrinho e confira se você tem Giftback para aplicar na sua compra!\n </p>\n\n <a class=\"back-cart\" href={this.url}>\n Voltar ao carrinho\n </a>\n </div>\n </div>\n )\n }\n}"],"version":3}
1
+ {"file":"crm-bonus-note.js","mappings":";;AAAA,MAAM,eAAe,GAAG,2aAA2a,CAAC;AACpc,2BAAe,eAAe;;MCKjBA,cAAY;;;;;;;IAOrB,iBAAiB;KAEhB;IAED,4BAA4B;QACxB,MAAM,MAAM,GAAG,QAAQ,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAAC;QAEzD,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;QAErC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAU;YACtB,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;SACzB,CAAC,CAAA;QAEF,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;KACrC;IAED,UAAU;QACN,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjD,OAAO,CAAC,CAAC,MAAM,CAAC;KACnB;IAED,MAAM;QAEF,IAAG,IAAI,CAAC,UAAU,EAAE,EAAE;YAClB,QAAQ,cAAW,EAAC;SACvB;QAED,QACI,eACI,WAAK,KAAK,EAAC,gBAAgB,IACvB,SAAG,KAAK,EAAC,YAAY,gBAEjB,EAEJ,SAAG,KAAK,EAAC,kBAAkB,wFAEvB,EAEJ,SAAG,KAAK,EAAC,WAAW,EAAC,IAAI,EAAE,IAAI,CAAC,GAAG,yBAE/B,CACF,CACJ,EACT;KACJ;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CrmBonusNote"],"sources":["src/components/note/crm-bonus-note.css?tag=crm-bonus-note","src/components/note/crm-bonus-note.tsx"],"sourcesContent":[".note-container {\n border: 1px solid #dddddd;\n padding: 0 15px 15px;\n margin: 0 0 26px 0px;\n}\n\n.note-container .back-cart {\n display: flex;\n text-align: center;\n} \n\n.note-title {\n font-weight: 700;\n height: 2em;\n line-height: 2em;\n text-align: left;\n border-radius: 3px;\n color: #333;\n margin-bottom: 1.4em;\n}\n\n.note-description {\n font-family: Arial;\n color: #6d6d5f;\n padding: 0;\n margin: 0 auto;\n}\n\n.back-cart {\n font-size: .9em;\n color: #337ab7;\n text-decoration: none;\n cursor: pointer;\n margin-top: 11px;\n}","import { Component, Prop, State, h } from \"@stencil/core\";\n\n@Component({\n tag: 'crm-bonus-note',\n styleUrl: 'crm-bonus-note.css'\n})\nexport class CrmBonusNote {\n\n @Prop({ attribute: 'cartid' }) cartId\n\n @State() url: string;\n\n\n componentWillLoad() {\n \n }\n\n upadateCheckToFreteAndGetUrl() {\n const envios = document.getElementsByName('forma-envio');\n\n console.log('envios', envios.length);\n\n envios.forEach((envio: any) => {\n envio.checked = false;\n })\n\n this.url = window.location.origin;\n }\n\n handleHide() {\n const amount = localStorage.getItem(this.cartId);\n return !!amount;\n }\n\n render() {\n\n if(this.handleHide()) {\n return (<div></div>)\n }\n\n return (\n <div>\n <div class=\"note-container\">\n <p class=\"note-title\">\n Gift back\n </p>\n\n <p class=\"note-description\">\n Volte ao carrinho e confira se você tem Giftback para aplicar na sua compra!\n </p>\n\n <a class=\"back-cart\" href={this.url}>\n Voltar ao carrinho\n </a>\n </div>\n </div>\n )\n }\n}"],"version":3}
@@ -1,2 +1,2 @@
1
- import{p as e,b as a}from"./p-72510682.js";export{s as setNonce}from"./p-72510682.js";import{g as n}from"./p-e1255160.js";var o=()=>{const a=import.meta.url;const n={};if(a!==""){n.resourcesUrl=new URL(".",a).href}return e(n)};o().then((async e=>{await n();return a([["p-c12fd96a",[[1,"crm-bonus",{userId:[2,"userid"],storeName:[8,"storename"],productsInString:[1,"products"],cartId:[8,"cartid"],showModal:[32],products:[32],customer:[32],loading:[32],message:[32],phone:[32],canCancel:[32],amountCancel:[32],sent:[32]}]]],["p-4c65d344",[[0,"crm-bonus-note",{cartId:[8,"cartid"],url:[32]}]]],["p-b36705fc",[[0,"pedido-finalizado",{cartId:[1,"cartid"],orderId:[2,"orderid"],metadadoString:[1,"metadado"]}]]],["p-61df4eb6",[[1,"phone-input-mask",{initialValue:[1,"initial-value"],disabled:[4],phone:[32],getPhone:[64]}]]],["p-a01c57ab",[[1,"loading-spinner",{size:[1],color:[1]}]]],["p-2636f2f0",[[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"]]],["p-b5e9ea5d",[[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]}],[0,"phone-cancel-input",{sendPin:[16],loading:[4],value:[1]}],[0,"phone-input",{sendPin:[16],loading:[4],value:[1]}],[1,"app-modal",{isOpen:[516,"is-open"],modalTitle:[1,"modal-title"]}]]]],e)}));
1
+ import{p as e,b as a}from"./p-72510682.js";export{s as setNonce}from"./p-72510682.js";import{g as n}from"./p-e1255160.js";var o=()=>{const a=import.meta.url;const n={};if(a!==""){n.resourcesUrl=new URL(".",a).href}return e(n)};o().then((async e=>{await n();return a([["p-c12fd96a",[[1,"crm-bonus",{userId:[2,"userid"],storeName:[8,"storename"],productsInString:[1,"products"],cartId:[8,"cartid"],showModal:[32],products:[32],customer:[32],loading:[32],message:[32],phone:[32],canCancel:[32],amountCancel:[32],sent:[32]}]]],["p-2a6defbc",[[0,"crm-bonus-note",{cartId:[8,"cartid"],url:[32]}]]],["p-b36705fc",[[0,"pedido-finalizado",{cartId:[1,"cartid"],orderId:[2,"orderid"],metadadoString:[1,"metadado"]}]]],["p-61df4eb6",[[1,"phone-input-mask",{initialValue:[1,"initial-value"],disabled:[4],phone:[32],getPhone:[64]}]]],["p-a01c57ab",[[1,"loading-spinner",{size:[1],color:[1]}]]],["p-2636f2f0",[[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"]]],["p-b5e9ea5d",[[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]}],[0,"phone-cancel-input",{sendPin:[16],loading:[4],value:[1]}],[0,"phone-input",{sendPin:[16],loading:[4],value:[1]}],[1,"app-modal",{isOpen:[516,"is-open"],modalTitle:[1,"modal-title"]}]]]],e)}));
2
2
  //# sourceMappingURL=crmbonus-component-wake.esm.js.map
@@ -0,0 +1,2 @@
1
+ import{r as t,h as o}from"./p-72510682.js";const e=".note-container{border:1px solid #dddddd;padding:0 15px 15px;margin:0 0 26px 0px}.note-container .back-cart{display:flex;text-align:center}.note-title{font-weight:700;height:2em;line-height:2em;text-align:left;border-radius:3px;color:#333;margin-bottom:1.4em}.note-description{font-family:Arial;color:#6d6d5f;padding:0;margin:0 auto}.back-cart{font-size:.9em;color:#337ab7;text-decoration:none;cursor:pointer;margin-top:11px}";const n=e;const a=class{constructor(o){t(this,o);this.cartId=undefined;this.url=undefined}componentWillLoad(){}upadateCheckToFreteAndGetUrl(){const t=document.getElementsByName("forma-envio");console.log("envios",t.length);t.forEach((t=>{t.checked=false}));this.url=window.location.origin}handleHide(){const t=localStorage.getItem(this.cartId);return!!t}render(){if(this.handleHide()){return o("div",null)}return o("div",null,o("div",{class:"note-container"},o("p",{class:"note-title"},"Gift back"),o("p",{class:"note-description"},"Volte ao carrinho e confira se você tem Giftback para aplicar na sua compra!"),o("a",{class:"back-cart",href:this.url},"Voltar ao carrinho")))}};a.style=n;export{a as crm_bonus_note};
2
+ //# sourceMappingURL=p-2a6defbc.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["crmBonusNoteCss","CrmBonusNoteStyle0","CrmBonusNote","componentWillLoad","upadateCheckToFreteAndGetUrl","envios","document","getElementsByName","console","log","length","forEach","envio","checked","this","url","window","location","origin","handleHide","amount","localStorage","getItem","cartId","render","h","class","href"],"sources":["src/components/note/crm-bonus-note.css?tag=crm-bonus-note","src/components/note/crm-bonus-note.tsx"],"sourcesContent":[".note-container {\n border: 1px solid #dddddd;\n padding: 0 15px 15px;\n margin: 0 0 26px 0px;\n}\n\n.note-container .back-cart {\n display: flex;\n text-align: center;\n} \n\n.note-title {\n font-weight: 700;\n height: 2em;\n line-height: 2em;\n text-align: left;\n border-radius: 3px;\n color: #333;\n margin-bottom: 1.4em;\n}\n\n.note-description {\n font-family: Arial;\n color: #6d6d5f;\n padding: 0;\n margin: 0 auto;\n}\n\n.back-cart {\n font-size: .9em;\n color: #337ab7;\n text-decoration: none;\n cursor: pointer;\n margin-top: 11px;\n}","import { Component, Prop, State, h } from \"@stencil/core\";\n\n@Component({\n tag: 'crm-bonus-note',\n styleUrl: 'crm-bonus-note.css'\n})\nexport class CrmBonusNote {\n\n @Prop({ attribute: 'cartid' }) cartId\n\n @State() url: string;\n\n\n componentWillLoad() {\n \n }\n\n upadateCheckToFreteAndGetUrl() {\n const envios = document.getElementsByName('forma-envio');\n\n console.log('envios', envios.length);\n\n envios.forEach((envio: any) => {\n envio.checked = false;\n })\n\n this.url = window.location.origin;\n }\n\n handleHide() {\n const amount = localStorage.getItem(this.cartId);\n return !!amount;\n }\n\n render() {\n\n if(this.handleHide()) {\n return (<div></div>)\n }\n\n return (\n <div>\n <div class=\"note-container\">\n <p class=\"note-title\">\n Gift back\n </p>\n\n <p class=\"note-description\">\n Volte ao carrinho e confira se você tem Giftback para aplicar na sua compra!\n </p>\n\n <a class=\"back-cart\" href={this.url}>\n Voltar ao carrinho\n </a>\n </div>\n </div>\n )\n }\n}"],"mappings":"2CAAA,MAAMA,EAAkB,4aACxB,MAAAC,EAAeD,E,MCKFE,EAAY,M,kEAOrB,iBAAAC,G,CAIA,4BAAAC,GACI,MAAMC,EAASC,SAASC,kBAAkB,eAE1CC,QAAQC,IAAI,SAAUJ,EAAOK,QAE7BL,EAAOM,SAASC,IACZA,EAAMC,QAAU,KAAK,IAGzBC,KAAKC,IAAMC,OAAOC,SAASC,M,CAG/B,UAAAC,GACI,MAAMC,EAASC,aAAaC,QAAQR,KAAKS,QACzC,QAASH,C,CAGb,MAAAI,GAEI,GAAGV,KAAKK,aAAc,CAClB,OAAQM,EAAA,W,CAGZ,OACIA,EAAA,WACIA,EAAA,OAAKC,MAAM,kBACPD,EAAA,KAAGC,MAAM,cAAY,aAIrBD,EAAA,KAAGC,MAAM,oBAAkB,gFAI3BD,EAAA,KAAGC,MAAM,YAAYC,KAAMb,KAAKC,KAAG,uB","ignoreList":[]}
@@ -10,6 +10,13 @@ const CrmBonusNote = class {
10
10
  this.url = undefined;
11
11
  }
12
12
  componentWillLoad() {
13
+ }
14
+ upadateCheckToFreteAndGetUrl() {
15
+ const envios = document.getElementsByName('forma-envio');
16
+ console.log('envios', envios.length);
17
+ envios.forEach((envio) => {
18
+ envio.checked = false;
19
+ });
13
20
  this.url = window.location.origin;
14
21
  }
15
22
  handleHide() {
@@ -1 +1 @@
1
- {"file":"crm-bonus-note.entry.js","mappings":";;AAAA,MAAM,eAAe,GAAG,2aAA2a,CAAC;AACpc,2BAAe,eAAe;;MCKjB,YAAY;;;;;;IAOrB,iBAAiB;QACb,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;KACrC;IAED,UAAU;QACN,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjD,OAAO,CAAC,CAAC,MAAM,CAAC;KACnB;IAED,MAAM;QAEF,IAAG,IAAI,CAAC,UAAU,EAAE,EAAE;YAClB,QAAQ,cAAW,EAAC;SACvB;QAED,QACI,eACI,WAAK,KAAK,EAAC,gBAAgB,IACvB,SAAG,KAAK,EAAC,YAAY,gBAEjB,EAEJ,SAAG,KAAK,EAAC,kBAAkB,wFAEvB,EAEJ,SAAG,KAAK,EAAC,WAAW,EAAC,IAAI,EAAE,IAAI,CAAC,GAAG,yBAE/B,CACF,CACJ,EACT;KACJ;;;;;;","names":[],"sources":["src/components/note/crm-bonus-note.css?tag=crm-bonus-note","src/components/note/crm-bonus-note.tsx"],"sourcesContent":[".note-container {\n border: 1px solid #dddddd;\n padding: 0 15px 15px;\n margin: 0 0 26px 0px;\n}\n\n.note-container .back-cart {\n display: flex;\n text-align: center;\n} \n\n.note-title {\n font-weight: 700;\n height: 2em;\n line-height: 2em;\n text-align: left;\n border-radius: 3px;\n color: #333;\n margin-bottom: 1.4em;\n}\n\n.note-description {\n font-family: Arial;\n color: #6d6d5f;\n padding: 0;\n margin: 0 auto;\n}\n\n.back-cart {\n font-size: .9em;\n color: #337ab7;\n text-decoration: none;\n cursor: pointer;\n margin-top: 11px;\n}","import { Component, Prop, State, h } from \"@stencil/core\";\n\n@Component({\n tag: 'crm-bonus-note',\n styleUrl: 'crm-bonus-note.css'\n})\nexport class CrmBonusNote {\n\n @Prop({ attribute: 'cartid' }) cartId\n\n @State() url: string;\n\n\n componentWillLoad() {\n this.url = window.location.origin;\n }\n\n handleHide() {\n const amount = localStorage.getItem(this.cartId);\n return !!amount;\n }\n\n render() {\n\n if(this.handleHide()) {\n return (<div></div>)\n }\n\n return (\n <div>\n <div class=\"note-container\">\n <p class=\"note-title\">\n Gift back\n </p>\n\n <p class=\"note-description\">\n Volte ao carrinho e confira se você tem Giftback para aplicar na sua compra!\n </p>\n\n <a class=\"back-cart\" href={this.url}>\n Voltar ao carrinho\n </a>\n </div>\n </div>\n )\n }\n}"],"version":3}
1
+ {"file":"crm-bonus-note.entry.js","mappings":";;AAAA,MAAM,eAAe,GAAG,2aAA2a,CAAC;AACpc,2BAAe,eAAe;;MCKjB,YAAY;;;;;;IAOrB,iBAAiB;KAEhB;IAED,4BAA4B;QACxB,MAAM,MAAM,GAAG,QAAQ,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAAC;QAEzD,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;QAErC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAU;YACtB,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;SACzB,CAAC,CAAA;QAEF,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;KACrC;IAED,UAAU;QACN,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjD,OAAO,CAAC,CAAC,MAAM,CAAC;KACnB;IAED,MAAM;QAEF,IAAG,IAAI,CAAC,UAAU,EAAE,EAAE;YAClB,QAAQ,cAAW,EAAC;SACvB;QAED,QACI,eACI,WAAK,KAAK,EAAC,gBAAgB,IACvB,SAAG,KAAK,EAAC,YAAY,gBAEjB,EAEJ,SAAG,KAAK,EAAC,kBAAkB,wFAEvB,EAEJ,SAAG,KAAK,EAAC,WAAW,EAAC,IAAI,EAAE,IAAI,CAAC,GAAG,yBAE/B,CACF,CACJ,EACT;KACJ;;;;;;","names":[],"sources":["src/components/note/crm-bonus-note.css?tag=crm-bonus-note","src/components/note/crm-bonus-note.tsx"],"sourcesContent":[".note-container {\n border: 1px solid #dddddd;\n padding: 0 15px 15px;\n margin: 0 0 26px 0px;\n}\n\n.note-container .back-cart {\n display: flex;\n text-align: center;\n} \n\n.note-title {\n font-weight: 700;\n height: 2em;\n line-height: 2em;\n text-align: left;\n border-radius: 3px;\n color: #333;\n margin-bottom: 1.4em;\n}\n\n.note-description {\n font-family: Arial;\n color: #6d6d5f;\n padding: 0;\n margin: 0 auto;\n}\n\n.back-cart {\n font-size: .9em;\n color: #337ab7;\n text-decoration: none;\n cursor: pointer;\n margin-top: 11px;\n}","import { Component, Prop, State, h } from \"@stencil/core\";\n\n@Component({\n tag: 'crm-bonus-note',\n styleUrl: 'crm-bonus-note.css'\n})\nexport class CrmBonusNote {\n\n @Prop({ attribute: 'cartid' }) cartId\n\n @State() url: string;\n\n\n componentWillLoad() {\n \n }\n\n upadateCheckToFreteAndGetUrl() {\n const envios = document.getElementsByName('forma-envio');\n\n console.log('envios', envios.length);\n\n envios.forEach((envio: any) => {\n envio.checked = false;\n })\n\n this.url = window.location.origin;\n }\n\n handleHide() {\n const amount = localStorage.getItem(this.cartId);\n return !!amount;\n }\n\n render() {\n\n if(this.handleHide()) {\n return (<div></div>)\n }\n\n return (\n <div>\n <div class=\"note-container\">\n <p class=\"note-title\">\n Gift back\n </p>\n\n <p class=\"note-description\">\n Volte ao carrinho e confira se você tem Giftback para aplicar na sua compra!\n </p>\n\n <a class=\"back-cart\" href={this.url}>\n Voltar ao carrinho\n </a>\n </div>\n </div>\n )\n }\n}"],"version":3}
@@ -2,6 +2,7 @@ export declare class CrmBonusNote {
2
2
  cartId: any;
3
3
  url: string;
4
4
  componentWillLoad(): void;
5
+ upadateCheckToFreteAndGetUrl(): void;
5
6
  handleHide(): boolean;
6
7
  render(): any;
7
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crmbonus-component-wake",
3
- "version": "1.0.38",
3
+ "version": "1.0.39",
4
4
  "description": "Stencil Component Starter",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",
@@ -1,2 +0,0 @@
1
- import{r as t,h as o}from"./p-72510682.js";const n=".note-container{border:1px solid #dddddd;padding:0 15px 15px;margin:0 0 26px 0px}.note-container .back-cart{display:flex;text-align:center}.note-title{font-weight:700;height:2em;line-height:2em;text-align:left;border-radius:3px;color:#333;margin-bottom:1.4em}.note-description{font-family:Arial;color:#6d6d5f;padding:0;margin:0 auto}.back-cart{font-size:.9em;color:#337ab7;text-decoration:none;cursor:pointer;margin-top:11px}";const e=n;const i=class{constructor(o){t(this,o);this.cartId=undefined;this.url=undefined}componentWillLoad(){this.url=window.location.origin}handleHide(){const t=localStorage.getItem(this.cartId);return!!t}render(){if(this.handleHide()){return o("div",null)}return o("div",null,o("div",{class:"note-container"},o("p",{class:"note-title"},"Gift back"),o("p",{class:"note-description"},"Volte ao carrinho e confira se você tem Giftback para aplicar na sua compra!"),o("a",{class:"back-cart",href:this.url},"Voltar ao carrinho")))}};i.style=e;export{i as crm_bonus_note};
2
- //# sourceMappingURL=p-4c65d344.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["crmBonusNoteCss","CrmBonusNoteStyle0","CrmBonusNote","componentWillLoad","this","url","window","location","origin","handleHide","amount","localStorage","getItem","cartId","render","h","class","href"],"sources":["src/components/note/crm-bonus-note.css?tag=crm-bonus-note","src/components/note/crm-bonus-note.tsx"],"sourcesContent":[".note-container {\n border: 1px solid #dddddd;\n padding: 0 15px 15px;\n margin: 0 0 26px 0px;\n}\n\n.note-container .back-cart {\n display: flex;\n text-align: center;\n} \n\n.note-title {\n font-weight: 700;\n height: 2em;\n line-height: 2em;\n text-align: left;\n border-radius: 3px;\n color: #333;\n margin-bottom: 1.4em;\n}\n\n.note-description {\n font-family: Arial;\n color: #6d6d5f;\n padding: 0;\n margin: 0 auto;\n}\n\n.back-cart {\n font-size: .9em;\n color: #337ab7;\n text-decoration: none;\n cursor: pointer;\n margin-top: 11px;\n}","import { Component, Prop, State, h } from \"@stencil/core\";\n\n@Component({\n tag: 'crm-bonus-note',\n styleUrl: 'crm-bonus-note.css'\n})\nexport class CrmBonusNote {\n\n @Prop({ attribute: 'cartid' }) cartId\n\n @State() url: string;\n\n\n componentWillLoad() {\n this.url = window.location.origin;\n }\n\n handleHide() {\n const amount = localStorage.getItem(this.cartId);\n return !!amount;\n }\n\n render() {\n\n if(this.handleHide()) {\n return (<div></div>)\n }\n\n return (\n <div>\n <div class=\"note-container\">\n <p class=\"note-title\">\n Gift back\n </p>\n\n <p class=\"note-description\">\n Volte ao carrinho e confira se você tem Giftback para aplicar na sua compra!\n </p>\n\n <a class=\"back-cart\" href={this.url}>\n Voltar ao carrinho\n </a>\n </div>\n </div>\n )\n }\n}"],"mappings":"2CAAA,MAAMA,EAAkB,4aACxB,MAAAC,EAAeD,E,MCKFE,EAAY,M,kEAOrB,iBAAAC,GACIC,KAAKC,IAAMC,OAAOC,SAASC,M,CAG/B,UAAAC,GACI,MAAMC,EAASC,aAAaC,QAAQR,KAAKS,QACzC,QAASH,C,CAGb,MAAAI,GAEI,GAAGV,KAAKK,aAAc,CAClB,OAAQM,EAAA,W,CAGZ,OACIA,EAAA,WACIA,EAAA,OAAKC,MAAM,kBACPD,EAAA,KAAGC,MAAM,cAAY,aAIrBD,EAAA,KAAGC,MAAM,oBAAkB,gFAI3BD,EAAA,KAAGC,MAAM,YAAYC,KAAMb,KAAKC,KAAG,uB","ignoreList":[]}