crmbonus-component-wake 2.0.123 → 2.0.125
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/{cart.helper-607a299f.js → cart.helper-d4d8d619.js} +5 -2
- package/dist/cjs/cart.helper-d4d8d619.js.map +1 -0
- package/dist/cjs/crm-bonus-form.cjs.entry.js +1 -1
- package/dist/cjs/crm-bonus-note.cjs.entry.js +2 -2
- package/dist/cjs/crm-bonus.cjs.entry.js +2 -2
- package/dist/cjs/crm-giftback-form_2.cjs.entry.js +1 -1
- package/dist/cjs/{crmbonus.service-8dff0944.js → crmbonus.service-9067d00d.js} +2 -2
- package/dist/cjs/{crmbonus.service-8dff0944.js.map → crmbonus.service-9067d00d.js.map} +1 -1
- package/dist/cjs/pedido-finalizado.cjs.entry.js +2 -2
- package/dist/collection/helpers/cart.helper.js +3 -0
- package/dist/collection/helpers/cart.helper.js.map +1 -1
- package/dist/components/crm-bonus-form.js +1 -1
- package/dist/components/crm-bonus-note.js +1 -1
- package/dist/components/crm-bonus.js +3 -3
- package/dist/components/crm-giftback-form.js +1 -1
- package/dist/components/{p-2f3e90b8.js → p-6eda79c3.js} +2 -2
- package/dist/components/{p-2f3e90b8.js.map → p-6eda79c3.js.map} +1 -1
- package/dist/components/{p-29841718.js → p-abbfbc98.js} +5 -2
- package/dist/components/p-abbfbc98.js.map +1 -0
- package/dist/components/{p-22dc683b.js → p-e18e11ae.js} +2 -2
- package/dist/components/{p-22dc683b.js.map → p-e18e11ae.js.map} +1 -1
- package/dist/components/pedido-finalizado.js +2 -2
- package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js +1 -1
- package/dist/crmbonus-component-wake/{p-68b6900a.entry.js → p-4fa63df0.entry.js} +2 -2
- package/dist/crmbonus-component-wake/{p-2f3e90b8.js → p-6eda79c3.js} +2 -2
- package/dist/crmbonus-component-wake/{p-2f3e90b8.js.map → p-6eda79c3.js.map} +1 -1
- package/dist/crmbonus-component-wake/{p-55eef7f5.entry.js → p-7cdb2c4a.entry.js} +2 -2
- package/dist/crmbonus-component-wake/{p-db15f2e2.entry.js → p-a33f7c24.entry.js} +2 -2
- package/dist/crmbonus-component-wake/{p-29841718.js → p-abbfbc98.js} +2 -2
- package/dist/crmbonus-component-wake/p-abbfbc98.js.map +1 -0
- package/dist/crmbonus-component-wake/{p-6f63c678.entry.js → p-c23f3a07.entry.js} +2 -2
- package/dist/crmbonus-component-wake/{p-a32757eb.entry.js → p-fad20959.entry.js} +2 -2
- package/dist/env.js +1 -1
- package/dist/env.js.map +1 -1
- package/dist/esm/{cart.helper-d5efc60e.js → cart.helper-30a40560.js} +5 -2
- package/dist/esm/cart.helper-30a40560.js.map +1 -0
- package/dist/esm/crm-bonus-form.entry.js +1 -1
- package/dist/esm/crm-bonus-note.entry.js +2 -2
- package/dist/esm/crm-bonus.entry.js +2 -2
- package/dist/esm/crm-giftback-form_2.entry.js +1 -1
- package/dist/esm/{crmbonus.service-d99af814.js → crmbonus.service-42fbd7fa.js} +2 -2
- package/dist/esm/{crmbonus.service-d99af814.js.map → crmbonus.service-42fbd7fa.js.map} +1 -1
- package/dist/esm/pedido-finalizado.entry.js +2 -2
- package/dist/types/home/darlison/Projects/Bycoders/crmbonus/crmbonus-component/.stencil/env.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/cart.helper-607a299f.js.map +0 -1
- package/dist/components/p-29841718.js.map +0 -1
- package/dist/crmbonus-component-wake/p-29841718.js.map +0 -1
- package/dist/esm/cart.helper-d5efc60e.js.map +0 -1
- /package/dist/crmbonus-component-wake/{p-68b6900a.entry.js.map → p-4fa63df0.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-55eef7f5.entry.js.map → p-7cdb2c4a.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-db15f2e2.entry.js.map → p-a33f7c24.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-6f63c678.entry.js.map → p-c23f3a07.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-a32757eb.entry.js.map → p-fad20959.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
|
|
1
|
-
import{r as t,h as i}from"./p-3d6152b1.js";import{C as e}from"./p-
|
2
|
-
//# sourceMappingURL=p-
|
1
|
+
import{r as t,h as i}from"./p-3d6152b1.js";import{C as e}from"./p-6eda79c3.js";import{S as s}from"./p-7cfea8fe.js";import{g as o}from"./p-75ba7b9a.js";import{i as a}from"./p-e8c19a64.js";import{g as n,U as r}from"./p-f9aeffc1.js";const c="*{margin:0;padding:0;box-sizing:border-box}:host{--crmfont-sizebodymd:14px;--crmline-heightbodymd:20px;--crmletter-spacingtitle-md:0px}.container-message{font-family:Roboto;font-size:var(--crmfont-sizebodymd);font-weight:400;line-height:var(--crmline-heightbodymd);letter-spacing:var(--crmletter-spacingtitle-md);text-align:left;text-underline-position:from-font;text-decoration-skip-ink:none}.crm-container-form{display:flex;flex-direction:column;justify-content:space-around;height:auto;padding:20px 24px 20px 24px;border:1px solid #CCCC;writing-mode:horizontal-tb;gap:16px;border-top:1px solid #ccc !important;border-bottom:1px solid #ccc !important}.crm-phone-form{display:flex;flex-direction:column;height:100%;gap:16px}.crm-subtitle{font-size:14px;color:var(--crm-btn);font-weight:100}.crm-title{font-weight:700;line-height:20px;color:#262626;font-size:16px}.crm-message-info{color:#619013;font-weight:500;font-size:12px}.crm-message-error{color:#E11D48;font-weight:500;font-size:12px}";const h=c;const d=class{constructor(i){t(this,i);this.crmBonusService=e.getInstance();this.storeName=undefined;this.cartId=undefined;this.products=undefined;this.customer=undefined;this.loadProducts=undefined;this.value=undefined;this.loading=false;this.message=undefined;this.phone=undefined;this.pinInfo=undefined;this.step=s.STEP_RESERVE;this.bonus=undefined;this.sucess="";this.error="";this.config=undefined;this.hasApplyBonus=false}async setStep(t){this.step=t}async processBonus(t=[],i=false){this.sucess="";console.log("processBonus",[]);if(i){this.products=t}const e=localStorage.getItem(n(this.cartId));if(e){const t=JSON.parse(e);this.bonus=t;this.phone=t.phone;this.pinInfo={storeId:t.storeId,userId:t.userId};await this.validateBonus("2018")}}async handleSendPin(t){this.message="";if(!t){this.message="Informe seu telefone";return}this.phone=t;this.sendPin()}async componentWillLoad(){this.sucess="";this.error="";this.config=o(this.storeName);const t=this.getPhoneNumberAgain();if(t){this.step=s.STEP_PHONE;return}await this.processBonus()}getPhoneNumberAgain(){const t=localStorage.getItem(n(this.cartId));if(!t)return true;const i=JSON.parse(t);return!i.hasBonus}convertStringToNumber(){const t=this.phone.replace(/\D/g,"");return Number(t)}async sendPin(){var t,i,e;this.loading=true;this.message="";this.sucess="";this.error="";try{const i=this.convertStringToNumber();const e=localStorage.getItem(`bc:${this.phone}`);if(!e){this.pinInfo=await this.crmBonusService.sendPin(i,(t=this.customer)===null||t===void 0?void 0:t.name,this.storeName)}if(e){const t=JSON.parse(e);this.pinInfo={storeId:t.storeId,userId:t.userId};await this.validateBonus("2018");this.step=s.STEP_RESERVE}else{this.step=s.STEP_PIN}}catch(t){this.message=(e=(i=t===null||t===void 0?void 0:t.response)===null||i===void 0?void 0:i.data)===null||e===void 0?void 0:e.message}finally{this.loading=false}}changePhone(){this.sucess="";this.error="";this.step=s.STEP_PHONE}async validateBonus(t){var i,e,o;this.loadProducts();const a=localStorage.getItem(r);if(a=="dontUse"){this.step=s.STEP_RESERVE;return}this.loading=true;this.sucess="";this.error="";const c={pin:t,cellphone:this.convertStringToNumber(),storeId:this.pinInfo.storeId.toString(),userId:this.pinInfo.userId.toString(),checkoutId:this.cartId,checkoutProducts:this.products,name:(i=this.customer)===null||i===void 0?void 0:i.name,storeName:this.storeName};try{this.bonus=await this.crmBonusService.validatePinBonus(c);if(!this.bonus.hasBonus){localStorage.setItem(n(this.cartId),JSON.stringify(Object.assign(Object.assign({},this.bonus),{phone:this.phone})));this.loading=false;this.step=s.STEP_NO_BONUS;return}this.sucess="Código validado com sucesso!";localStorage.setItem(n(this.cartId),JSON.stringify(Object.assign(Object.assign({},this.bonus),{phone:this.phone})));localStorage.setItem(`bc:${this.phone}`,JSON.stringify(this.bonus));localStorage.setItem(r,"use");localStorage.setItem(this.cartId,this.bonus.bonusBalance.toString());this.step=s.STEP_RESERVE}catch(t){const i=(o=(e=t===null||t===void 0?void 0:t.response)===null||e===void 0?void 0:e.data)===null||o===void 0?void 0:o.message;if(i.includes("Pin")){this.error="Código inválido!"}else{this.error=i;this.step=s.STEP_NO_BONUS}}finally{this.loading=false}}handleCancel(){this.cancel()}async cancel(){this.message="";this.loading=true;try{await this.crmBonusService.cancel(this.cartId);localStorage.setItem(r,"dontUse");this.save(0)}catch(t){this.message="Não consegui cancelar o bônus, tente novamente!"}finally{this.loading=false}}async reserveApply(t){this.loading=true;this.message="";try{await this.reserve(t);this.save(t)}catch(t){this.message="ocorreu um error ao solicitar a aplicação do bonus! tente novamente";this.step=s.STEP_NO_BONUS;localStorage.removeItem(this.cartId)}finally{this.loading=false}}save(t){localStorage.setItem(this.cartId,t.toString())}async reserve(t){await this.crmBonusService.reserve({redeemedBonus:t,cartId:this.cartId,ticket:this.cartId,grossValue:Number(this.bonus.totalValue),storeName:this.storeName,storeId:this.bonus.storeId.toString(),userId:this.bonus.userId})}render(){return i("div",{key:"8856b0021380c06a1b6d0fe377d0836de0308e40",class:"crm-container-form fbits-responsive-carrinho-desconto"},i("label",{key:"ef51aa9f64f7438ae887f5af0688df3c216d810c",class:"crm-title"},this.config.giftbackTitle),this.step===s.STEP_PHONE&&i("phone-form",{key:"12cd253b89c74738fe27a3ef0a2a46ce50b4f71d",value:this.customer.phone,config:this.config,loading:this.loading,handlerSubmit:t=>this.handleSendPin(t)}),this.step===s.STEP_PIN&&i("pin-form",{key:"fb7c11d2d94e0035be7615d342cd6e9bf04924e4",config:this.config,phone:this.phone,cancel:()=>this.changePhone(),resend:()=>this.sendPin(),validate:t=>this.validateBonus(t),loading:this.loading},this.sucess&&i("p",{key:"5c8071135ce7f287cb6203f78d0c05988eee3d13",class:"crm-message-info"},this.sucess),this.error&&i("p",{key:"e0516266cfa7886049a4d751595318ceaf0131f7",class:"crm-message-error"},this.error)),this.step===s.STEP_RESERVE&&i("giftback-info",{key:"b36f43a03dd113bc743c985b4327762647aea00c",config:this.config,loading:this.loading,cancel:()=>this.handleCancel(),bonus:this.bonus,reserve:()=>this.processBonus()}),this.step===s.STEP_NO_BONUS&&i("div",{key:"cfeacde74e0b598e2ab93a86af5dc6838ef040cb",class:"container-message"},a.t("noGiftback",{storename:this.config.giftbackTitle})))}};d.style=h;const l=".loading-container{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);display:flex;justify-content:center;align-items:center;z-index:1000;}.loading-spinner{width:50px;height:50px;border:5px solid rgba(255, 255, 255, 0.3);border-top:5px solid white;border-radius:50%;animation:spin 1s linear infinite;}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.relative-xy{position:relative}";const f=l;const m=class{constructor(i){t(this,i);this.loading=true}render(){return i("div",{key:"06a7a57acb07c91ca75d00dd42ca568ac708a3ef",class:"relative-xy"},this.loading&&i("div",{key:"6eee6954ce47b3a60cc9d3f599aa826c30e522db",class:"loading-container"},i("div",{key:"8747ac17ca30704d18739ccd1cf7d31fbbb05419",class:"loading-spinner"})),i("slot",{key:"32ffc7a17474372cf35fe7812fa4f193d00aa224"}))}};m.style=f;export{d as crm_giftback_form,m as loading_container};
|
2
|
+
//# sourceMappingURL=p-7cdb2c4a.entry.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{r as n,h as e}from"./p-3d6152b1.js";import{g as t}from"./p-75ba7b9a.js";import{g as i}from"./p-f9aeffc1.js";import{i as a}from"./p-e8c19a64.js";import{C as c,g as o}from"./p-
|
2
|
-
//# sourceMappingURL=p-
|
1
|
+
import{r as n,h as e}from"./p-3d6152b1.js";import{g as t}from"./p-75ba7b9a.js";import{g as i}from"./p-f9aeffc1.js";import{i as a}from"./p-e8c19a64.js";import{C as c,g as o}from"./p-abbfbc98.js";import"./p-6eda79c3.js";const d="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IS0tIFVwbG9hZGVkIHRvOiBTVkcgUmVwbywgd3d3LnN2Z3JlcG8uY29tLCBHZW5lcmF0b3I6IFNWRyBSZXBvIE1peGVyIFRvb2xzIC0tPgo8c3ZnIHdpZHRoPSI4MDBweCIgaGVpZ2h0PSI4MDBweCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMCIgc3Ryb2tlPSIjMDAwMDAwIiBzdHJva2Utd2lkdGg9IjIiLz4KPHBhdGggZD0iTTE1IDkuOTQ3MjhDMTQuNSA5LjMgMTMuOCA4LjUgMTIgOC41QzEwLjIgOC41IDkgOS41MTM5MyA5IDkuOTQ3MjhDOSAxMC4zODA2IDkuMDY3ODYgMTAuOTI3NyAxMCAxMS41QzEwLjc1MjIgMTEuOTYxOCAxMi42Njg0IDEyLjA0MzkgMTMuNSAxMi41QzE0LjY3OSAxMy4xNDY3IDE0Ljg0OTcgMTMuODIwMiAxNC44NDk3IDE0LjA1MjJDMTQuODQ5NyAxNC42ODM3IDEzLjQxNzUgMTUuNDg1MiAxMiAxNS41QzEwLjUzNiAxNS41MTUzIDkuNSAxNC43IDkgMTQuMDUyMiIgc3Ryb2tlPSIjMDAwMDAwIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMTIgN1YxNyIgc3Ryb2tlPSIjMDAwMDAwIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPg==";function s(){if(localStorage.getItem("bc:time-allow")){return}const n=localStorage.getItem("bc:time");if(!n){localStorage.setItem("bc:time","360");localStorage.setItem("bc:time-allow","true");return}}const r=".note-container {\n border: 1px solid #dddddd;\n padding: 0 15px 15px;\n margin: 0 0 26px 0px;\n display: flex;\n flex-direction: column;\n gap: 13px;\n\n\n & .description {\n display: flex;\n flex-direction: column;\n gap: 13px;\n }\n}\n\n.note-container hr {\n border: 1px solid #CCC;\n}\n\n.note-container .back-cart {\n display: flex;\n text-align: center;\n}\n\n.note-header {\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n}\n\n.note-title {\n font-weight: 700;\n text-align: left;\n display: flex;\n gap: 6px;\n align-items: center;\n margin-top: 11px;\n color: #000;\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: #27272A;\n text-decoration: none;\n cursor: pointer;\n margin-top: 11px;\n}\n\n.note-description-2 {\n color: var(--crm-scheme-fg-main-inverse, #262626);\n font-family: Roboto;\n font-size: var(--crm-font-size-body-lg, 16px);\n font-style: normal;\n font-weight: var(--crm-font-weight-body-bold, 400);\n line-height: var(--crm-line-height-body-md, 20px);\n letter-spacing: var(--crm-letter-spacing-title-md, 0px);\n margin-top: 11px;\n color: #000;\n}\n\n.note-description-not {\n font-size: 16px;\n}";const l=r;const b=class{constructor(e){n(this,e);this.cart=undefined;this.cartWake=undefined;this.url=undefined;this.config=undefined;this.bonus=undefined;this.showEdit=false}async componentWillLoad(){await this.upadateCheckToFreteAndGetUrl();this.startTime()}async upadateCheckToFreteAndGetUrl(){this.cartWake=this.cart?new c(JSON.parse(this.cart)):await o();console.log("upadateCheckToFreteAndGetUrl",this.cartWake);this.config=t(this.cartWake.store.name);const n=document.getElementsByName("forma-envio");n.forEach((n=>{n.checked=false}));this.url=window.location.origin}handleHide(){const n=localStorage.getItem(this.cartWake.id);return!!n}getAmount(){const n=localStorage.getItem(this.cartWake.id);return n?Number(n).toFixed(2).replace(".",",")||"0,00":"0,00"}async backCart(){window.location.href=this.url}startTime(){if(!localStorage.getItem("bc:time-allow")){localStorage.removeItem("bc:time")}s()}hasBonus(){const n=localStorage.getItem(i(this.cartWake.id));const e={hasBonus:false,requestBonus:false};if(n){this.bonus=JSON.parse(n);e.hasBonus=this.bonus.hasBonus;e.requestBonus=true}return e}getTime(){const n=localStorage.getItem("bc:time");return n?Number(n):0}render(){var n;const t=((n=this.config)===null||n===void 0?void 0:n.giftbackTitle)||"Giftback";const i=this.hasBonus();return e("div",{key:"4617de820196995c8d4576ca28ce3b36a13ccec2"},e("div",{key:"2ea9c4d26914b2e279a36fa893da8057964c1240",class:"note-container"},e("div",{key:"72fe2cb3cb7ac7d0b0687fdd612b44944415deb8",class:"note-header"},e("p",{key:"89d4eaf0cab5ec289f99c25ee0d2bb016cf3704a",class:"note-title"},e("img",{key:"b774851ed3f9b75fcf786c27602ce974835f68e9",src:d,width:23}),this.config.giftbackTitle),i.hasBonus&&e("div",{key:"86dcc60b26bbbbb503aab29d3d88f8b7bd5b84b2"},this.showEdit&&e("p",{key:"45a3b79566f90f8410054c63fce6d0859de5e150",class:"back-cart",onClick:()=>this.backCart()},a.t("edit")),!this.showEdit&&e("countdown-timer",{key:"e6fd69643fb5c0c5e44559309168509edb68a534",initialValue:this.getTime(),downtime:()=>{this.showEdit=true}}))),i.hasBonus&&e("p",{key:"82d141d6b2ccb8c0885756c5d5704e2aa8a6c635",class:"note-description-2"},a.t("withApplyBonus",{giftbackname:t})," ",e("strong",{key:"5993965e6ce5954730773c882a1437920537e1b7"},"R$ ",this.getAmount(),".")),i.requestBonus&&!i.hasBonus&&e("p",{key:"afcbb9fe6fb17064eacd1386c08c3509e673733c",class:"note-description-not"},a.t("noBonus",{giftbackname:t})),!i.requestBonus&&e("div",{key:"586036e3f5d205ed803902274da176f7eb230256",class:"description"},e("p",{key:"5a0fa22781830ffa826a753bdd8e8c851075d1ec",class:"note-description-not"},a.t("backCart")),e("crm-button",{key:"1c5061ab7cdd4a985727df6e915067a67ad463fc",txtBtn:"VOLTAR AO CARRINHO",handleClick:()=>this.backCart()}))))}};b.style=l;export{b as crm_bonus_note};
|
2
|
+
//# sourceMappingURL=p-a33f7c24.entry.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{C as t,a as o}from"./p-
|
2
|
-
//# sourceMappingURL=p-
|
1
|
+
import{C as t,a as o}from"./p-6eda79c3.js";class r{constructor(t){var o;this.products=[];this.id=t.Metadados.id||t.Id;this.middlewareId=(o=t.Metadados)===null||o===void 0?void 0:o.id;this.orderId=t.PedidoId;this.buildUserInfo(t);this.buildStoreInfo(t);this.products=this.buildStoreCart(t.Produtos)}buildStoreCart(t=[]){const o=localStorage.getItem("bc:cart");if(!o){return this.saveStore(t)}const r=JSON.parse(o);if(t.length!==r.length){return this.saveStore(t)}for(const o of t){const[s]=r.filter((t=>t.ProdutoVarianteId==o.ProdutoVarianteId));if(s){return t}}return r}saveStore(t){localStorage.setItem("bc:cart",JSON.stringify(t));return t}buildUserInfo(t){this.user={id:t.Usuario?t.Usuario.Id:null}}buildStoreInfo(t){var o;this.store={name:(o=t.Loja)===null||o===void 0?void 0:o.Nome}}}const s=t.getInstance();const n=async()=>{const t=i();console.log("[URL STORE]: ",t);const o=await s.getInfoCart(t);return new r(o)};const i=()=>{const t=window.location.origin;if(t.includes("localhost")){return o}if(t.includes("checkout")){return t}if(t.includes("fbits")){return t}if(t.includes("www.")){return t.replace("www","checkout")}return`${window.location.protocol}//checkout.${window.location.host}`};export{r as C,n as g};
|
2
|
+
//# sourceMappingURL=p-abbfbc98.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["CartWake","constructor","cart","this","products","id","Metadados","Id","middlewareId","_a","orderId","PedidoId","buildUserInfo","buildStoreInfo","buildStoreCart","Produtos","newProducts","cache","localStorage","getItem","saveStore","cacheProducts","JSON","parse","length","p","cp","filter","cpp","ProdutoVarianteId","setItem","stringify","user","Usuario","store","name","Loja","Nome","crmBonusService","CrmBonusService","getInstance","getCart","async","baseUrl","buildUrlBase","console","log","getInfoCart","url","window","location","origin","includes","CHECKOUT_CART_WAKE","replace","protocol","host"],"sources":["src/objectvalues/cart.wake.ts","src/helpers/cart.helper.ts"],"sourcesContent":["import { IProductWake, IStore, IUser } from \"../dto/validate.pin.bonus\";\n\nexport class CartWake {\n id: string;\n middlewareId: string;\n orderId: number;\n products: IProductWake[] = [];\n user: IUser;\n store: IStore;\n\n constructor(cart) {\n this.id = cart.Metadados.id || cart.Id;\n this.middlewareId = cart.Metadados?.id;\n this.orderId = cart.PedidoId;\n this.buildUserInfo(cart);\n this.buildStoreInfo(cart);\n this.products = this.buildStoreCart( cart.Produtos);\n }\n\n private buildStoreCart(newProducts = []) {\n const cache = localStorage.getItem(\"bc:cart\");\n\n if(!cache) {\n return this.saveStore(newProducts)\n \n }\n \n const cacheProducts:IProductWake[] = JSON.parse(cache);\n\n if(newProducts.length !== cacheProducts.length) {\n return this.saveStore(newProducts);\n }\n\n for (const p of newProducts) {\n const [cp] = cacheProducts.filter(cpp => cpp.ProdutoVarianteId == p.ProdutoVarianteId);\n\n if(cp) {\n cp.Quantidade != p.Quantidade;\n\n return newProducts;\n }\n }\n\n return cacheProducts;\n\n }\n\n\n private saveStore(newProducts) {\n localStorage.setItem(\"bc:cart\", JSON.stringify(newProducts));\n\n return newProducts;\n }\n\n private buildUserInfo(cart) {\n this.user = {\n id: cart.Usuario ? cart.Usuario.Id : null\n }\n }\n\n private buildStoreInfo(cart) {\n this.store = {\n name: cart.Loja?.Nome\n }\n }\n}","import { CHECKOUT_CART_WAKE } from \"../../env\";\nimport { CartWake } from \"../objectvalues/cart.wake\";\nimport { CrmBonusService } from \"../services/crmbonus.service\";\n\nconst crmBonusService: CrmBonusService = CrmBonusService.getInstance();\n\nexport const getCart = async (): Promise<CartWake> => {\n const baseUrl = buildUrlBase(); // window.location.origin; //\"https://bycoders.fbits.store\" //window.location.origin;\n \n console.log('[URL STORE]: ', baseUrl)\n\n const cart = await crmBonusService.getInfoCart(baseUrl);\n\n return new CartWake(cart);\n}\n\nconst buildUrlBase = () => {\n\n const url = window.location.origin; //\"https://bycoders.checkout.fbits.store\" //\n\n if(url.includes('localhost')) {\n return CHECKOUT_CART_WAKE;\n }\n\n if(url.includes('checkout')) {\n return url;\n }\n\n if(url.includes('fbits')) {\n return url;\n }\n\n if(url.includes(\"www.\")) {\n return url.replace(\"www\", \"checkout\")\n }\n\n return `${window.location.protocol}//checkout.${window.location.host}`;\n\n}"],"mappings":"iDAEaA,EAQT,WAAAC,CAAYC,G,MAJZC,KAAAC,SAA2B,GAKvBD,KAAKE,GAAKH,EAAKI,UAAUD,IAAMH,EAAKK,GACpCJ,KAAKK,cAAeC,EAAAP,EAAKI,aAAS,MAAAG,SAAA,SAAAA,EAAEJ,GACpCF,KAAKO,QAAUR,EAAKS,SACpBR,KAAKS,cAAcV,GACnBC,KAAKU,eAAeX,GACpBC,KAAKC,SAAWD,KAAKW,eAAgBZ,EAAKa,S,CAGtC,cAAAD,CAAeE,EAAc,IACjC,MAAMC,EAAQC,aAAaC,QAAQ,WAEnC,IAAIF,EAAO,CACP,OAAOd,KAAKiB,UAAUJ,E,CAI1B,MAAMK,EAA+BC,KAAKC,MAAMN,GAEhD,GAAGD,EAAYQ,SAAWH,EAAcG,OAAQ,CAC5C,OAAOrB,KAAKiB,UAAUJ,E,CAG1B,IAAK,MAAMS,KAAKT,EAAa,CACzB,MAAOU,GAAML,EAAcM,QAAOC,GAAOA,EAAIC,mBAAqBJ,EAAEI,oBAEpE,GAAGH,EAAI,CAGH,OAAOV,C,EAIf,OAAOK,C,CAKH,SAAAD,CAAUJ,GACdE,aAAaY,QAAQ,UAAWR,KAAKS,UAAUf,IAE/C,OAAOA,C,CAGH,aAAAJ,CAAcV,GAClBC,KAAK6B,KAAO,CACR3B,GAAIH,EAAK+B,QAAU/B,EAAK+B,QAAQ1B,GAAK,K,CAIrC,cAAAM,CAAeX,G,MACnBC,KAAK+B,MAAQ,CACTC,MAAM1B,EAAAP,EAAKkC,QAAI,MAAA3B,SAAA,SAAAA,EAAE4B,K,EC1D7B,MAAMC,EAAmCC,EAAgBC,c,MAE5CC,EAAUC,UACnB,MAAMC,EAAUC,IAEhBC,QAAQC,IAAI,gBAAiBH,GAE7B,MAAMzC,QAAaoC,EAAgBS,YAAYJ,GAE/C,OAAO,IAAI3C,EAASE,EAAK,EAG7B,MAAM0C,EAAe,KAEjB,MAAMI,EAAOC,OAAOC,SAASC,OAE7B,GAAGH,EAAII,SAAS,aAAc,CAC1B,OAAOC,C,CAGX,GAAGL,EAAII,SAAS,YAAa,CACzB,OAAOJ,C,CAGX,GAAGA,EAAII,SAAS,SAAU,CACtB,OAAOJ,C,CAGX,GAAGA,EAAII,SAAS,QAAS,CACrB,OAAOJ,EAAIM,QAAQ,MAAO,W,CAG9B,MAAO,GAAGL,OAAOC,SAASK,sBAAsBN,OAAOC,SAASM,MAAM,S","ignoreList":[]}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{r as t,h as s,H as e}from"./p-3d6152b1.js";import{C as i}from"./p-
|
2
|
-
//# sourceMappingURL=p-
|
1
|
+
import{r as t,h as s,H as e}from"./p-3d6152b1.js";import{C as i}from"./p-6eda79c3.js";import{S as a}from"./p-7cfea8fe.js";import"./p-f9aeffc1.js";const n=".form-container{width:100%;display:flex;justify-content:center;justify-content:space-around}.disabled{opacity:0.6;cursor:not-allowed}.message-error{color:#d11111;font-weight:bold;font-family:Arial;font-size:small;margin-left:16px}";const h=n;const d=class{constructor(s){t(this,s);this.crmBonusService=i.getInstance();this.storeName=undefined;this.cartId=undefined;this.products=undefined;this.customer={phone:"",birthDate:"",document:"",name:""};this.sent=undefined;this.stepNext=undefined;this.phone=undefined;this.loadingModal=undefined;this.saveStore=undefined;this.cancel=undefined;this.handleCustomerName=undefined;this.loading=false;this.step=a.STEP_NAME;this.message=undefined;this.bonus=undefined}async setStep(t){this.step=t}async validateBonus(t){var s,e;this.loading=true;this.message="";const i={pin:t,cellphone:parseInt(this.phone.toString()),storeId:this.sent.storeId.toString(),userId:this.sent.userId.toString(),checkoutId:this.cartId,checkoutProducts:this.products,name:null,storeName:this.storeName};try{this.bonus=await this.crmBonusService.validatePinBonus(i);this.step=a.STEP_RESERVE}catch(t){this.message=(e=(s=t===null||t===void 0?void 0:t.response)===null||s===void 0?void 0:s.data)===null||e===void 0?void 0:e.message}finally{this.loading=false}}async reserveApply(t){this.loading=true;this.message="";try{await this.reserve(t);this.step=a.STEP_APPLY;this.saveStore(t)}catch(t){this.message="ocorreu um error ao solicitar a aplicação do bonus! tente novamente"}finally{this.loading=false}}async reserve(t){await this.crmBonusService.reserve({redeemedBonus:t,cartId:this.cartId,ticket:this.cartId,grossValue:Number(this.bonus.totalValue),storeName:this.storeName,storeId:this.bonus.storeId.toString(),userId:this.bonus.userId})}handleCancel(){this.step=a.STEP_PHONE;this.cancel()}render(){return s(e,{key:"2d736cd603436521bf15f0ef8eaf0670ad9f6a42"},this.step==a.STEP_NAME&&s("name-input",{key:"bfa12463c1f29bb65814368790f201dcab869dd9",loading:this.loadingModal,value:this.customer.name,applyName:t=>this.handleCustomerName(t)}),this.step===a.STEP_PIN&&s("giftback-pin",{key:"3fdf1c285b5d777289b42fcfbcf80dfc92579f29",cancel:()=>this.handleCancel(),sent:this.sent,validate:t=>this.validateBonus(t),loading:this.loading}),this.step===a.STEP_RESERVE&&s("giftback-progress",{key:"f06df8cab7361a51d1b89b4f0f0a1a8ceb7a7e30",loading:this.loading,cancel:()=>this.handleCancel(),bonus:this.bonus,reserve:t=>this.reserveApply(t)}),this.step===a.STEP_APPLY&&s("giftback-finish",{key:"eaacf1438652b04cfd607e5bac81dffbe4b542bb"}),s("p",{key:"a2014780bbb5dfb23cf6165500f43c6fcca700d3",class:"message-error"},this.message))}};d.style=h;export{d as crm_bonus_form};
|
2
|
+
//# sourceMappingURL=p-c23f3a07.entry.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{r as a,h as t}from"./p-3d6152b1.js";import{C as o}from"./p-
|
2
|
-
//# sourceMappingURL=p-
|
1
|
+
import{r as a,h as t}from"./p-3d6152b1.js";import{C as o}from"./p-6eda79c3.js";import{C as r,g as s}from"./p-abbfbc98.js";import"./p-f9aeffc1.js";const c=class{constructor(t){a(this,t);this.cart=undefined}async componentWillLoad(){await this.handleOrder()}async handleOrder(){console.log("this.cart",this.cart);const a=this.cart?new r(JSON.parse(this.cart)):await s();if(a.id&&a.orderId){o.getInstance().updateOrder({cartId:a.id,orderId:a.orderId,cartIdCrm:a.middlewareId});const t=`bc-products:${a.id}`;localStorage.removeItem(t);localStorage.removeItem(a.id)}}render(){return t("div",{key:"d79a815efc708a2d818fa6adf22464a45e7fa546"})}};export{c as pedido_finalizado};
|
2
|
+
//# sourceMappingURL=p-fad20959.entry.js.map
|
package/dist/env.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
export const CRM_BONUS_API_URL = "https://wake
|
1
|
+
export const CRM_BONUS_API_URL = "https://wake.crmbonus.com/api"; //"http://localhost:4000/api";// "https://wake-middleware.crmbonus.com/api"; //"https://wake-middleware.crmbonus.com/api";// "https://crmbonus-wake-hub-staging-5daedbc4e22b.herokuapp.com/api" //"https://crmbonus-service-staging-d15ba5377115.herokuapp.com"; //"https://typically-workable-perch.ngrok-free.app"; // "http://localhost:3500";
|
2
2
|
export const CHECKOUT_CART_WAKE = "http://localhost:3001";
|
3
3
|
//# sourceMappingURL=env.js.map
|
package/dist/env.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"env.js","sourceRoot":"","sources":["../env.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,iBAAiB,GAAG,
|
1
|
+
{"version":3,"file":"env.js","sourceRoot":"","sources":["../env.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,iBAAiB,GAAG,+BAA+B,CAAC,CAAC,iVAAiV;AACnZ,MAAM,CAAC,MAAM,kBAAkB,GAAG,uBAAuB,CAAA","sourcesContent":["\nexport const CRM_BONUS_API_URL = \"https://wake.crmbonus.com/api\"; //\"http://localhost:4000/api\";// \"https://wake-middleware.crmbonus.com/api\"; //\"https://wake-middleware.crmbonus.com/api\";// \"https://crmbonus-wake-hub-staging-5daedbc4e22b.herokuapp.com/api\" //\"https://crmbonus-service-staging-d15ba5377115.herokuapp.com\"; //\"https://typically-workable-perch.ngrok-free.app\"; // \"http://localhost:3500\";\nexport const CHECKOUT_CART_WAKE = \"http://localhost:3001\""]}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { C as CrmBonusService, a as CHECKOUT_CART_WAKE } from './crmbonus.service-
|
1
|
+
import { C as CrmBonusService, a as CHECKOUT_CART_WAKE } from './crmbonus.service-42fbd7fa.js';
|
2
2
|
|
3
3
|
class CartWake {
|
4
4
|
constructor(cart) {
|
@@ -63,9 +63,12 @@ const buildUrlBase = () => {
|
|
63
63
|
if (url.includes('fbits')) {
|
64
64
|
return url;
|
65
65
|
}
|
66
|
+
if (url.includes("www.")) {
|
67
|
+
return url.replace("www", "checkout");
|
68
|
+
}
|
66
69
|
return `${window.location.protocol}//checkout.${window.location.host}`;
|
67
70
|
};
|
68
71
|
|
69
72
|
export { CartWake as C, getCart as g };
|
70
73
|
|
71
|
-
//# sourceMappingURL=cart.helper-
|
74
|
+
//# sourceMappingURL=cart.helper-30a40560.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"cart.helper-30a40560.js","mappings":"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","names":[],"sources":["src/objectvalues/cart.wake.ts","src/helpers/cart.helper.ts"],"sourcesContent":["import { IProductWake, IStore, IUser } from \"../dto/validate.pin.bonus\";\n\nexport class CartWake {\n id: string;\n middlewareId: string;\n orderId: number;\n products: IProductWake[] = [];\n user: IUser;\n store: IStore;\n\n constructor(cart) {\n this.id = cart.Metadados.id || cart.Id;\n this.middlewareId = cart.Metadados?.id;\n this.orderId = cart.PedidoId;\n this.buildUserInfo(cart);\n this.buildStoreInfo(cart);\n this.products = this.buildStoreCart( cart.Produtos);\n }\n\n private buildStoreCart(newProducts = []) {\n const cache = localStorage.getItem(\"bc:cart\");\n\n if(!cache) {\n return this.saveStore(newProducts)\n \n }\n \n const cacheProducts:IProductWake[] = JSON.parse(cache);\n\n if(newProducts.length !== cacheProducts.length) {\n return this.saveStore(newProducts);\n }\n\n for (const p of newProducts) {\n const [cp] = cacheProducts.filter(cpp => cpp.ProdutoVarianteId == p.ProdutoVarianteId);\n\n if(cp) {\n cp.Quantidade != p.Quantidade;\n\n return newProducts;\n }\n }\n\n return cacheProducts;\n\n }\n\n\n private saveStore(newProducts) {\n localStorage.setItem(\"bc:cart\", JSON.stringify(newProducts));\n\n return newProducts;\n }\n\n private buildUserInfo(cart) {\n this.user = {\n id: cart.Usuario ? cart.Usuario.Id : null\n }\n }\n\n private buildStoreInfo(cart) {\n this.store = {\n name: cart.Loja?.Nome\n }\n }\n}","import { CHECKOUT_CART_WAKE } from \"../../env\";\nimport { CartWake } from \"../objectvalues/cart.wake\";\nimport { CrmBonusService } from \"../services/crmbonus.service\";\n\nconst crmBonusService: CrmBonusService = CrmBonusService.getInstance();\n\nexport const getCart = async (): Promise<CartWake> => {\n const baseUrl = buildUrlBase(); // window.location.origin; //\"https://bycoders.fbits.store\" //window.location.origin;\n \n console.log('[URL STORE]: ', baseUrl)\n\n const cart = await crmBonusService.getInfoCart(baseUrl);\n\n return new CartWake(cart);\n}\n\nconst buildUrlBase = () => {\n\n const url = window.location.origin; //\"https://bycoders.checkout.fbits.store\" //\n\n if(url.includes('localhost')) {\n return CHECKOUT_CART_WAKE;\n }\n\n if(url.includes('checkout')) {\n return url;\n }\n\n if(url.includes('fbits')) {\n return url;\n }\n\n if(url.includes(\"www.\")) {\n return url.replace(\"www\", \"checkout\")\n }\n\n return `${window.location.protocol}//checkout.${window.location.host}`;\n\n}"],"version":3}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-e8724c8f.js';
|
2
|
-
import { C as CrmBonusService } from './crmbonus.service-
|
2
|
+
import { C as CrmBonusService } from './crmbonus.service-42fbd7fa.js';
|
3
3
|
import { S as StepFormEnum } from './index-5b567099.js';
|
4
4
|
import './keys.storage-8c76fcd7.js';
|
5
5
|
|
@@ -2,8 +2,8 @@ import { r as registerInstance, h } from './index-e8724c8f.js';
|
|
2
2
|
import { g as getInfoCustomization } from './info.config.helper-42d9ddf9.js';
|
3
3
|
import { g as getKeyReserveByCartId } from './keys.storage-8c76fcd7.js';
|
4
4
|
import { i as instance } from './i18n-e8150dff.js';
|
5
|
-
import { C as CartWake, g as getCart } from './cart.helper-
|
6
|
-
import './crmbonus.service-
|
5
|
+
import { C as CartWake, g as getCart } from './cart.helper-30a40560.js';
|
6
|
+
import './crmbonus.service-42fbd7fa.js';
|
7
7
|
|
8
8
|
const moneyDollarsSvgrepoComSvg = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IS0tIFVwbG9hZGVkIHRvOiBTVkcgUmVwbywgd3d3LnN2Z3JlcG8uY29tLCBHZW5lcmF0b3I6IFNWRyBSZXBvIE1peGVyIFRvb2xzIC0tPgo8c3ZnIHdpZHRoPSI4MDBweCIgaGVpZ2h0PSI4MDBweCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIxMCIgc3Ryb2tlPSIjMDAwMDAwIiBzdHJva2Utd2lkdGg9IjIiLz4KPHBhdGggZD0iTTE1IDkuOTQ3MjhDMTQuNSA5LjMgMTMuOCA4LjUgMTIgOC41QzEwLjIgOC41IDkgOS41MTM5MyA5IDkuOTQ3MjhDOSAxMC4zODA2IDkuMDY3ODYgMTAuOTI3NyAxMCAxMS41QzEwLjc1MjIgMTEuOTYxOCAxMi42Njg0IDEyLjA0MzkgMTMuNSAxMi41QzE0LjY3OSAxMy4xNDY3IDE0Ljg0OTcgMTMuODIwMiAxNC44NDk3IDE0LjA1MjJDMTQuODQ5NyAxNC42ODM3IDEzLjQxNzUgMTUuNDg1MiAxMiAxNS41QzEwLjUzNiAxNS41MTUzIDkuNSAxNC43IDkgMTQuMDUyMiIgc3Ryb2tlPSIjMDAwMDAwIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMTIgN1YxNyIgc3Ryb2tlPSIjMDAwMDAwIiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPg==';
|
9
9
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { r as registerInstance, h } from './index-e8724c8f.js';
|
2
|
-
import { C as CrmBonusService } from './crmbonus.service-
|
2
|
+
import { C as CrmBonusService } from './crmbonus.service-42fbd7fa.js';
|
3
3
|
import { S as StepFormEnum } from './index-5b567099.js';
|
4
4
|
import { i as instance } from './i18n-e8150dff.js';
|
5
|
-
import { g as getCart, C as CartWake } from './cart.helper-
|
5
|
+
import { g as getCart, C as CartWake } from './cart.helper-30a40560.js';
|
6
6
|
import { U as USED_KEY } from './keys.storage-8c76fcd7.js';
|
7
7
|
|
8
8
|
var AjustesTipoEnum;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { r as registerInstance, h } from './index-e8724c8f.js';
|
2
|
-
import { C as CrmBonusService } from './crmbonus.service-
|
2
|
+
import { C as CrmBonusService } from './crmbonus.service-42fbd7fa.js';
|
3
3
|
import { S as StepFormEnum } from './index-5b567099.js';
|
4
4
|
import { g as getInfoCustomization } from './info.config.helper-42d9ddf9.js';
|
5
5
|
import { i as instance } from './i18n-e8150dff.js';
|
@@ -3751,7 +3751,7 @@ axios.default = axios;
|
|
3751
3751
|
// this module should only have a default export
|
3752
3752
|
const axios$1 = axios;
|
3753
3753
|
|
3754
|
-
const CRM_BONUS_API_URL = "https://wake
|
3754
|
+
const CRM_BONUS_API_URL = "https://wake.crmbonus.com/api"; //"http://localhost:4000/api";// "https://wake-middleware.crmbonus.com/api"; //"https://wake-middleware.crmbonus.com/api";// "https://crmbonus-wake-hub-staging-5daedbc4e22b.herokuapp.com/api" //"https://crmbonus-service-staging-d15ba5377115.herokuapp.com"; //"https://typically-workable-perch.ngrok-free.app"; // "http://localhost:3500";
|
3755
3755
|
const CHECKOUT_CART_WAKE = "http://localhost:3001";
|
3756
3756
|
|
3757
3757
|
class CrmBonusService {
|
@@ -3871,4 +3871,4 @@ CrmBonusService._instance = null;
|
|
3871
3871
|
|
3872
3872
|
export { CrmBonusService as C, CHECKOUT_CART_WAKE as a };
|
3873
3873
|
|
3874
|
-
//# sourceMappingURL=crmbonus.service-
|
3874
|
+
//# sourceMappingURL=crmbonus.service-42fbd7fa.js.map
|