crmbonus-component-wake 2.1.33-ngrok → 2.1.34
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-b08a12b2.js → cart.helper-701ea6b2.js} +4 -2
- package/dist/cjs/cart.helper-701ea6b2.js.map +1 -0
- package/dist/cjs/crm-bonus-2.cjs.entry.js +1 -1
- package/dist/cjs/crm-bonus-note.cjs.entry.js +1 -1
- package/dist/cjs/crm-bonus.cjs.entry.js +1 -1
- package/dist/cjs/crm-giftback-form.cjs.entry.js +1 -1
- package/dist/cjs/crm-tooltip_5.cjs.entry.js +1 -1
- package/dist/cjs/pedido-finalizado.cjs.entry.js +1 -1
- package/dist/components/crm-bonus-2.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/giftback-info.js +1 -1
- package/dist/components/{p-c90ea2e9.js → p-417b4f7f.js} +4 -2
- package/dist/{esm/cart.helper-7101c047.js.map → components/p-417b4f7f.js.map} +1 -1
- package/dist/components/{p-028f43a1.js → p-488a119c.js} +2 -2
- package/dist/components/{p-028f43a1.js.map → p-488a119c.js.map} +1 -1
- package/dist/components/{p-0bb6b0e5.js → p-e2a6a4cf.js} +3 -3
- package/dist/components/{p-0bb6b0e5.js.map → p-e2a6a4cf.js.map} +1 -1
- package/dist/components/pedido-finalizado.js +1 -1
- package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js +1 -1
- package/dist/crmbonus-component-wake/{p-9b7bd1e1.entry.js → p-17b97fd2.entry.js} +2 -2
- package/dist/crmbonus-component-wake/{p-22dc17d2.entry.js → p-3a4d7622.entry.js} +2 -2
- package/dist/crmbonus-component-wake/{p-558202ef.entry.js → p-59033825.entry.js} +2 -2
- package/dist/crmbonus-component-wake/{p-4ed412c2.entry.js → p-87cb8341.entry.js} +2 -2
- package/dist/crmbonus-component-wake/{p-c74567c6.js → p-b5da6ce1.js} +2 -2
- package/dist/crmbonus-component-wake/{p-c74567c6.js.map → p-b5da6ce1.js.map} +1 -1
- package/dist/crmbonus-component-wake/{p-f37f3f3f.entry.js → p-e992d997.entry.js} +2 -2
- package/dist/crmbonus-component-wake/{p-7d608b81.entry.js → p-eace8d0e.entry.js} +2 -2
- package/dist/env.js +3 -1
- package/dist/env.js.map +1 -1
- package/dist/esm/{cart.helper-7101c047.js → cart.helper-4f1913ce.js} +4 -2
- package/dist/esm/cart.helper-4f1913ce.js.map +1 -0
- package/dist/esm/crm-bonus-2.entry.js +1 -1
- package/dist/esm/crm-bonus-note.entry.js +1 -1
- package/dist/esm/crm-bonus.entry.js +1 -1
- package/dist/esm/crm-giftback-form.entry.js +1 -1
- package/dist/esm/crm-tooltip_5.entry.js +1 -1
- package/dist/esm/pedido-finalizado.entry.js +1 -1
- package/dist/types/Users/Darlison/Projects/Bycoders/crmbonus/crmbonus-component/.stencil/env.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/cart.helper-b08a12b2.js.map +0 -1
- package/dist/components/p-c90ea2e9.js.map +0 -1
- /package/dist/crmbonus-component-wake/{p-9b7bd1e1.entry.js.map → p-17b97fd2.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-22dc17d2.entry.js.map → p-3a4d7622.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-558202ef.entry.js.map → p-59033825.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-4ed412c2.entry.js.map → p-87cb8341.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-f37f3f3f.entry.js.map → p-e992d997.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-7d608b81.entry.js.map → p-eace8d0e.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
|
|
1
|
-
import{r as t,h as i}from"./p-8c362346.js";import{a as s,c as e,U as o,p as a}from"./p-
|
2
|
-
//# sourceMappingURL=p-
|
1
|
+
import{r as t,h as i}from"./p-8c362346.js";import{a as s,c as e,U as o,p as a}from"./p-b5da6ce1.js";import{S as n,i as h}from"./p-702d5a6f.js";import{g as r}from"./p-1b441909.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-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:.875rem;line-height:1.25rem}.crm-title{font-weight:700;line-height:20px;color:#262626;}.crm-message-info{color:#619013;font-weight:500;}.crm-message-error{color:#E11D48;font-weight:500;}";const l=c;const d=class{constructor(i){t(this,i);this.crmBonusService=s.getInstance();this.storeName=undefined;this.cartId=undefined;this.products=undefined;this.customer=undefined;this.loadProducts=undefined;this.loadAll=undefined;this.customStyles=undefined;this.reservedInfo=undefined;this.value=undefined;this.loading=false;this.message=undefined;this.phone=undefined;this.pinInfo=undefined;this.step=n.STEP_RESERVE;this.bonus=undefined;this.sucess="";this.error="";this.config=undefined;this.hasApplyBonus=false;this.loadingAllComponent=false}async setStep(t){this.step=t}async processBonus(t=[],i=false){await this.loadProducts();this.sucess="";console.log("processBonus",[]);if(i){this.products=t}const s=localStorage.getItem(e(this.cartId));if(s){const t=JSON.parse(s);this.bonus=t;this.phone=t.phone;this.pinInfo={storeId:t.storeId,userId:t.userId};await this.validateBonus("2018")}}async handleSendPin(t){await this.loadAll();this.message="";if(!t){this.message="Informe seu telefone";return}this.phone=t;this.sendPin()}async componentWillLoad(){this.sucess="";this.error="";this.config=r(this.storeName);const t=this.getPhoneNumberAgain();if(t){this.step=n.STEP_PHONE;return}await this.processBonus()}getPhoneNumberAgain(){const t=localStorage.getItem(e(this.cartId));if(!t)return true;const i=JSON.parse(t);return!i.hasBonus}convertStringToNumber(){var t;const i=(t=this.phone)===null||t===void 0?void 0:t.replace(/\D/g,"");return Number(i)}async sendPin(){var t,i,s;this.loading=true;this.message="";this.sucess="";this.error="";try{const i=this.convertStringToNumber();const s=localStorage.getItem(`bc:${this.phone}`);if(!s){this.pinInfo=await this.crmBonusService.sendPin(i,(t=this.customer)===null||t===void 0?void 0:t.name,this.storeName)}if(s){const t=JSON.parse(s);this.pinInfo={storeId:t.storeId,userId:t.userId};await this.validateBonus("2018")}else{this.step=n.STEP_PIN}}catch(t){this.message=(s=(i=t===null||t===void 0?void 0:t.response)===null||i===void 0?void 0:i.data)===null||s===void 0?void 0:s.message}finally{this.loading=false}}changePhone(){this.sucess="";this.error="";this.step=n.STEP_PHONE}async validateBonus(t){var i,s,a,h,r,c,l,d,f,u,m,p;this.loadingAllComponent=true;await this.loadProducts();const g=localStorage.getItem(o);if(g=="dontUse"){this.step=n.STEP_RESERVE;return}this.loading=true;this.sucess="";this.error="";const v=((i=this.pinInfo)===null||i===void 0?void 0:i.storeId)||((a=(s=this.reservedInfo)===null||s===void 0?void 0:s.metadata)===null||a===void 0?void 0:a.storeId);const b=((h=this.pinInfo)===null||h===void 0?void 0:h.userId)||((c=(r=this.reservedInfo)===null||r===void 0?void 0:r.metadata)===null||c===void 0?void 0:c.userId);const y=(d=(l=this.reservedInfo)===null||l===void 0?void 0:l.metadata)===null||d===void 0?void 0:d.cellphone;const S={pin:t,cellphone:y||this.convertStringToNumber(),storeId:v.toString(),userId:b.toString(),checkoutId:this.cartId,checkoutProducts:this.products,name:(f=this.customer)===null||f===void 0?void 0:f.name,storeName:this.storeName};try{this.bonus=await this.crmBonusService.validatePinBonus(S);if(!this.bonus.hasBonus){localStorage.setItem(e(this.cartId),JSON.stringify(Object.assign(Object.assign({},this.bonus),{phone:this.phone})));this.loading=false;this.step=n.STEP_NO_BONUS;return}this.sucess="Código validado com sucesso!";localStorage.setItem(e(this.cartId),JSON.stringify(Object.assign(Object.assign({},this.bonus),{phone:this.phone})));localStorage.setItem(`bc:${this.phone}`,JSON.stringify(this.bonus));localStorage.setItem(o,"use");localStorage.setItem(this.cartId,this.bonus.bonusBalance.toString());this.updateMetadata({storeId:Number(v),userId:Number(b)},S.cellphone);console.log("RESERVE",this.bonus);this.step=n.STEP_RESERVE}catch(t){const i=(m=(u=t===null||t===void 0?void 0:t.response)===null||u===void 0?void 0:u.data)===null||m===void 0?void 0:m.response;const s=(p=t===null||t===void 0?void 0:t.response)===null||p===void 0?void 0:p.data;if(i&&i.includes("Pin")){this.error="Código inválido!"}else if([403,500].includes(s.statusCode)){this.error="ocorreu um error, atualize a pagina e tente novamente!"}else{this.error=i;this.step=n.STEP_NO_BONUS}}finally{this.loading=false;this.loadingAllComponent=false}}async updateMetadata(t,i){try{if(this.reservedInfo.isExpired()){console.log("[CRM:updateMetadata]");await a(this.storeName,this.cartId,{createdAt:Date.now(),url:window.location.href,storeId:t.storeId,userId:t.userId,cellphone:i});localStorage.removeItem("bc:time")}else{await a(this.storeName,this.cartId,{url:window.location.href,storeId:t.storeId,userId:t.userId,cellphone:i})}}catch(t){console.error("[CRMBONUS:updateMetadata]: ",t)}}handleCancel(){this.cancel()}async cancel(){this.message="";this.loading=true;try{await this.crmBonusService.cancel(this.cartId);localStorage.setItem(o,"dontUse");this.save(0);await this.updateMetadata({storeId:null,userId:null},null)}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=n.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(){console.log("cartId",this.cartId);return i("div",{key:"ec6f957d4b375fd6abe2c11eeae23fa69dfa2ac8",class:"crm-container-form fbits-responsive-carrinho-desconto",style:this.customStyles},i("label",{key:"a743c2f5565c5403f6daba01f45a1dc665fde99d",class:"crm-title"},this.config.giftbackTitle),this.error&&i("label",{key:"e5dcc4b20685bac97fc12c6153d68939e0f88956",class:"crm-message-error"},this.error),this.step===n.STEP_PHONE&&i("phone-form",{key:"1f2bc519ec31f4293c75d5284c9fa4fa593187f2",value:this.customer.phone,config:this.config,loading:this.loading,handlerSubmit:t=>this.handleSendPin(t)}),this.step===n.STEP_PIN&&i("pin-form",{key:"7ff43b9a51a638feafda8dbefd8f641546037fa4",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:"ff486afaf126a8cbeeabc6a11d9647e9cf5b22dd",class:"crm-message-info"},this.sucess),this.error&&i("p",{key:"444f7fdfd86a05884086eff15e9aa3b4fface993",class:"crm-message-error"},this.error)),this.step===n.STEP_RESERVE&&i("giftback-info",{key:"cbeb32249da8c5fa088b43e6c2c94eb427fea6a4",storeName:this.storeName,infoBonus:this.reservedInfo,config:this.config,loading:this.loading,cancel:()=>this.handleCancel(),bonus:this.bonus,reserve:()=>this.processBonus(),cartId:this.cartId}),this.step===n.STEP_NO_BONUS&&i("div",{key:"3d1c697af1c4b495f928b493f9c056bb7b84042a",class:"container-message"},h.t("noGiftback",{storename:this.config.giftbackTitle})))}};d.style=l;export{d as crm_giftback_form};
|
2
|
+
//# sourceMappingURL=p-e992d997.entry.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{r as t,h as s}from"./p-8c362346.js";import{a as i,U as o,g as e,b as n,C as a}from"./p-
|
2
|
-
//# sourceMappingURL=p-
|
1
|
+
import{r as t,h as s}from"./p-8c362346.js";import{a as i,U as o,g as e,b as n,C as a}from"./p-b5da6ce1.js";import{d as r,S as c,i as h}from"./p-702d5a6f.js";import{b as l}from"./p-b0ef2c0b.js";const d=".container-button{cursor:pointer;padding:5px 5px 5px 14px;}.section-crm{border:1px solid #dbd4d4;text-align:-webkit-center;margin-bottom:20px}.section-cart-crm{margin-top:10px}.section-cart-crm p{padding:0;margin:0px 0px 0px 15px}.button{top:50%;background-color:#6c6c7e;color:#fff;border:none;padding:15px;min-height:30px;min-width:120px;cursor:pointer;margin-left:10px;height:70px}.form-container{width:97%;display:flex;justify-content:space-around}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:0px}.form-container .btnCrm{background:#00162e;border-color:#00162e;width:30%;color:#fff}.message-alert{color:#df4d4d;margin-top:5px}";const u=d;const f=class{constructor(s){t(this,s);this.crmBonusService=i.getInstance();this.cart=undefined;this.canhidden=false;this.showModal=false;this.cartWake=undefined;this.customer={birthDate:"",document:"",name:"",phone:""};this.loading=false;this.message=undefined;this.phone=undefined;this.canCancel=false;this.amountCancel=undefined;this.sent=undefined;this.session=undefined;this.loading_reprocess=false;this.styles=r;this.reservedInfo=undefined}async resetBonus(){console.log("[START RESET BONUS]!!!!!");try{await this.crmBonusRef.processBonus(this.buildProducts(),true);console.log("[BONUS RESETADO]!!!!!")}catch(t){this.loading=false;console.log("[error ao reprocessar bonous]");await this.crmBonusRef.setStep(c.STEP_PHONE)}finally{this.loading=false}}async setloading(){this.loading_reprocess=!this.loading_reprocess}async reprocess(){console.log("[CRMBONUS] - reprocess");this.loading_reprocess=true;try{const t=localStorage.getItem(o);if(!t)return;this.cartWake=await e();await this.resetBonus()}catch(t){console.debug("[watchProducts]",t.message)}finally{this.loading_reprocess=false}}async componentWillLoad(){window.addEventListener("productRemovedFromCart",(async()=>{console.log("[CRMBONUS] - productRemovedFromCart");await this.reprocess()}));window.addEventListener("productAddedToCart",(async()=>{console.log("[CRMBONUS] - productAddedToCart");await this.reprocess()}));document.querySelectorAll("form").forEach((t=>{t.addEventListener("submit",(()=>{console.log("[CRMBONUS] - Formulário está sendo submetido!");setTimeout((async()=>{await this.reprocess()}))}))}));await this.observerHandle();h.changeLanguage(h.language);await this.loadSession();this.handleLoad();await this.loadConfigStore()}async componentDidLoad(){console.log("[did load]")}async observerHandle(){const t=document.getElementsByTagName("a");for(let s of t){console.log("[el.href]",s.href);if(s.href.includes("Produto/Delete")){s.addEventListener("click",(async()=>{console.log("[CRMBONUS] - Produto removido do carrinho");setTimeout((async()=>{await this.reprocess();this.observerHandle()}),2e3)}))}if(s.href.includes("Produto/Add")){s.addEventListener("click",(async()=>{console.log("[CRMBONUS] - Produto adicionado ao carrinho");setTimeout((async()=>{await this.reprocess();this.observerHandle()}),2e3)}))}}}async loadConfigStore(){const[t,s]=await Promise.all([this.crmBonusService.getCustomization(this.cartWake.store.name),n(this.cartWake.id,this.cartWake.store.name)]);console.log("[infoBonus]",s);this.reservedInfo=s;if(t.keepStoreFrontStyle){console.log("[bc:usar estilo da loja]");this.styles=null}}async fetchCustomer(t,s){try{return await this.crmBonusService.getCustomer(t,s)}catch(t){console.error("[fetchCustomer] Error fetching customer:",t);return null}}async handleLoad(){try{if(this.cartWake.user.id){this.fetchCustomer(this.cartWake.user.id,this.cartWake.store.name).then((t=>{console.log("[bc:loading customer]");if(t){this.customer=t;console.log("customer",this.customer)}}))}const t=localStorage.getItem(this.cartWake.id);if(t){this.canCancel=true;this.amountCancel=t}await this.buildAndGetProducts(this.cartWake.products)}catch(t){console.log("info customer")}}async loadSession(){this.cartWake=this.cart?new a(JSON.parse(this.cart)):await e();console.log("[bc:carregou carrinho]");this.session=await this.crmBonusService.getToken(this.cartWake.store.name);console.log("[bc:carregou session]");setTimeout((()=>{this.loadSession()}),15e5)}async buildAndGetProducts(t){console.log();const s=`bc-products:${this.cartWake.id}`;const i=JSON.stringify(t);localStorage.setItem(s,i);const o=JSON.parse(localStorage.getItem(s));const e=[];for(const s of t){const[t]=o.filter((t=>t.ProdutoVarianteId==s.ProdutoVarianteId));if(t){e.push(Object.assign(Object.assign({},s),{PrecoPor:t.PrecoPor,PrecoDe:t.PrecoDe,Quantidade:t.Quantidade,Ajustes:t.Ajustes}))}else{e.push(s)}}this.cartWake.products=e}async sendPin(t){var s,i;this.loading=true;this.message="";try{const s=t.replace(/\D/g,"");this.phone=Number(s);this.sent=await this.crmBonusService.sendPin(this.phone,this.customer.name,this.cartWake.store.name);await this.crmBonusRef.setStep(c.STEP_PIN);this.showModal=true}catch(t){this.message=(i=(s=t===null||t===void 0?void 0:t.response)===null||s===void 0?void 0:s.data)===null||i===void 0?void 0:i.message}finally{this.loading=false}}async sendPinName(t){var s,i;this.loading=true;this.message="";try{this.customer.name=t;this.sent=await this.crmBonusService.sendPin(this.phone,this.customer.name,this.cartWake.store.name);await this.crmBonusRef.setStep(c.STEP_PIN);this.showModal=true}catch(t){this.message=(i=(s=t===null||t===void 0?void 0:t.response)===null||s===void 0?void 0:s.data)===null||i===void 0?void 0:i.message}finally{this.loading=false}}buildProducts(){return l(this.cartWake.products)}handleCloseModal(){this.showModal=false}save(t){localStorage.setItem(this.cartWake.id,t.toString());this.canCancel=true;this.amountCancel=t.toString()}async cancel(){this.message="";this.loading=true;try{await this.crmBonusService.cancel(this.cartWake.id);this.canCancel=false;localStorage.removeItem(this.cartWake.id)}catch(t){this.message="Não consegui cancelar o bônus, tente novamente!"}finally{this.loading=false}}async handleSendPin(t){this.message="";if(!t){this.message="Informe seu telefone";return}this.customer.phone=t;const s=t.replace(/\D/g,"");this.phone=Number(s);if(this.customer.name){return this.sendPin(t)}await this.crmBonusRef.setStep(c.STEP_NAME);this.showModal=true}render(){if(this.canhidden){return null}return s("loading-container",{loading:this.loading_reprocess},s("crm-giftback-form",{customStyles:this.styles,style:{position:"relative"},ref:t=>this.crmBonusRef=t,storeName:this.cartWake.store.name,products:this.buildProducts(),cartId:this.cartWake.id,customer:this.customer,loadProducts:()=>this.buildProducts(),loadAll:()=>this.handleLoad(),reservedInfo:this.reservedInfo}))}static get assetsDirs(){return["assets"]}};f.style=u;export{f as crm_bonus};
|
2
|
+
//# sourceMappingURL=p-eace8d0e.entry.js.map
|
package/dist/env.js
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
// export const CRM_BONUS_API_URL = "https://crmbonus-hub-staging-0ff7e3bf68ac.herokuapp.com/api" //"https://crmbonus-service-staging-d15ba5377115.herokuapp.com"; //"https://typically-workable-perch.ngrok-free.app"; // "http://localhost:3500";
|
2
|
-
export const CRM_BONUS_API_URL = "https://typically-workable-perch.ngrok-free.app/api";
|
2
|
+
// export const CRM_BONUS_API_URL = "https://typically-workable-perch.ngrok-free.app/api";
|
3
|
+
// export const CRM_BONUS_API_URL = "https://typically-workable-perch.ngrok-free.app/api";
|
4
|
+
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";
|
3
5
|
export const CHECKOUT_CART_WAKE = "http://localhost:3001";
|
4
6
|
//# 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,mPAAmP;AACnP,MAAM,CAAC,MAAM,iBAAiB,GAAG,
|
1
|
+
{"version":3,"file":"env.js","sourceRoot":"","sources":["../env.ts"],"names":[],"mappings":"AACA,mPAAmP;AACnP,0FAA0F;AAC1F,0FAA0F;AAC1F,MAAM,CAAC,MAAM,iBAAiB,GAAG,+BAA+B,CAAC,CAAC,iVAAiV;AACnZ,MAAM,CAAC,MAAM,kBAAkB,GAAG,uBAAuB,CAAA","sourcesContent":["\r\n// export const CRM_BONUS_API_URL = \"https://crmbonus-hub-staging-0ff7e3bf68ac.herokuapp.com/api\" //\"https://crmbonus-service-staging-d15ba5377115.herokuapp.com\"; //\"https://typically-workable-perch.ngrok-free.app\"; // \"http://localhost:3500\";\r\n// export const CRM_BONUS_API_URL = \"https://typically-workable-perch.ngrok-free.app/api\";\r\n// export const CRM_BONUS_API_URL = \"https://typically-workable-perch.ngrok-free.app/api\";\r\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\";\r\nexport const CHECKOUT_CART_WAKE = \"http://localhost:3001\""]}
|
@@ -3750,7 +3750,9 @@ axios.default = axios;
|
|
3750
3750
|
const axios$1 = axios;
|
3751
3751
|
|
3752
3752
|
// export const CRM_BONUS_API_URL = "https://crmbonus-hub-staging-0ff7e3bf68ac.herokuapp.com/api" //"https://crmbonus-service-staging-d15ba5377115.herokuapp.com"; //"https://typically-workable-perch.ngrok-free.app"; // "http://localhost:3500";
|
3753
|
-
const CRM_BONUS_API_URL = "https://typically-workable-perch.ngrok-free.app/api";
|
3753
|
+
// export const CRM_BONUS_API_URL = "https://typically-workable-perch.ngrok-free.app/api";
|
3754
|
+
// export const CRM_BONUS_API_URL = "https://typically-workable-perch.ngrok-free.app/api";
|
3755
|
+
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";
|
3754
3756
|
const CHECKOUT_CART_WAKE = "http://localhost:3001";
|
3755
3757
|
|
3756
3758
|
const getKeyReserveByCartId = (cartId) => {
|
@@ -4017,4 +4019,4 @@ const buildUrlBase = () => {
|
|
4017
4019
|
|
4018
4020
|
export { CartWake as C, USED_KEY as U, CrmBonusService as a, getInfoBonusByCartIdAndStoreName as b, getKeyReserveByCartId as c, getCart as g, persisteMetadata as p };
|
4019
4021
|
|
4020
|
-
//# sourceMappingURL=cart.helper-
|
4022
|
+
//# sourceMappingURL=cart.helper-4f1913ce.js.map
|