crmbonus-component-wake 2.1.29-homolog → 2.1.29-ngrok
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-0e517eb6.js → cart.helper-df86b04b.js} +2 -2
- package/dist/cjs/{cart.helper-0e517eb6.js.map → cart.helper-df86b04b.js.map} +1 -1
- package/dist/cjs/crm-bonus-form.cjs.entry.js +1 -1
- package/dist/cjs/crm-bonus-note.cjs.entry.js +6 -9
- package/dist/cjs/crm-bonus-note.cjs.entry.js.map +1 -1
- package/dist/cjs/crm-bonus-tray.cjs.entry.js +1 -1
- package/dist/cjs/crm-bonus.cjs.entry.js +2 -2
- package/dist/cjs/crm-giftback-form.cjs.entry.js +2 -2
- package/dist/cjs/crm-tooltip_4.cjs.entry.js +3 -3
- package/dist/cjs/{crmbonus.service-7628a4b4.js → crmbonus.service-2df67338.js} +2 -2
- package/dist/cjs/{crmbonus.service-7628a4b4.js.map → crmbonus.service-2df67338.js.map} +1 -1
- package/dist/cjs/pedido-finalizado.cjs.entry.js +3 -3
- package/dist/cjs/phone-input-mask.cjs.entry.js +1 -1
- package/dist/collection/components/note/crm-bonus-note.js +4 -7
- package/dist/collection/components/note/crm-bonus-note.js.map +1 -1
- package/dist/collection/components/pedido/pedido.js +1 -1
- package/dist/collection/components/phone/phone-input-mask.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/tray-ecommerce/crm-bonus-tray.js +1 -1
- package/dist/components/crm-bonus-form.js +1 -1
- package/dist/components/crm-bonus-note.js +6 -9
- package/dist/components/crm-bonus-note.js.map +1 -1
- package/dist/components/crm-bonus-tray.js +1 -1
- package/dist/components/crm-bonus.js +7 -7
- package/dist/components/crm-giftback-form.js +1 -1
- package/dist/components/crm-tooltip.js +1 -1
- package/dist/components/giftback-info.js +1 -1
- package/dist/components/{p-5210a82f.js → p-0a33e90f.js} +2 -2
- package/dist/components/{p-5210a82f.js.map → p-0a33e90f.js.map} +1 -1
- package/dist/components/{p-7d47a3e2.js → p-36601e2d.js} +7 -7
- package/dist/components/{p-7d47a3e2.js.map → p-36601e2d.js.map} +1 -1
- package/dist/components/{p-4468aa91.js → p-417d9c1e.js} +4 -4
- package/dist/components/{p-4468aa91.js.map → p-417d9c1e.js.map} +1 -1
- package/dist/components/{p-09048b73.js → p-ab662b24.js} +2 -2
- package/dist/components/{p-09048b73.js.map → p-ab662b24.js.map} +1 -1
- package/dist/components/{p-f95048e2.js → p-c2ecfee1.js} +2 -2
- package/dist/components/{p-f95048e2.js.map → p-c2ecfee1.js.map} +1 -1
- package/dist/components/{p-285d0caf.js → p-e068510c.js} +2 -2
- package/dist/components/{p-285d0caf.js.map → p-e068510c.js.map} +1 -1
- package/dist/components/{p-9d3aacf7.js → p-e68d4e85.js} +2 -2
- package/dist/components/{p-9d3aacf7.js.map → p-e68d4e85.js.map} +1 -1
- package/dist/components/pedido-finalizado.js +3 -3
- package/dist/components/phone-cancel-input.js +1 -1
- package/dist/components/phone-form.js +1 -1
- package/dist/components/phone-input-mask.js +1 -1
- package/dist/components/phone-input.js +1 -1
- package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js +1 -1
- package/dist/crmbonus-component-wake/{p-92a4fe21.entry.js → p-510e3b16.entry.js} +2 -2
- package/dist/crmbonus-component-wake/p-568072fe.entry.js +2 -0
- package/dist/crmbonus-component-wake/p-70dc125d.entry.js +2 -0
- package/dist/crmbonus-component-wake/{p-4a1fdb72.entry.js → p-8d18bf67.entry.js} +2 -2
- package/dist/crmbonus-component-wake/{p-4a1fdb72.entry.js.map → p-8d18bf67.entry.js.map} +1 -1
- package/dist/crmbonus-component-wake/{p-f9d8175f.entry.js → p-b5e9a5ea.entry.js} +2 -2
- package/dist/crmbonus-component-wake/{p-9e10f4f4.entry.js → p-bfebfea7.entry.js} +2 -2
- package/dist/crmbonus-component-wake/{p-f95048e2.js → p-c2ecfee1.js} +2 -2
- package/dist/crmbonus-component-wake/{p-f95048e2.js.map → p-c2ecfee1.js.map} +1 -1
- package/dist/crmbonus-component-wake/{p-912e6267.entry.js → p-cc0bc5a5.entry.js} +2 -2
- package/dist/crmbonus-component-wake/p-d65808f6.entry.js +2 -0
- package/dist/crmbonus-component-wake/{p-9d3aacf7.js → p-e68d4e85.js} +2 -2
- package/dist/env.js +1 -1
- package/dist/env.js.map +1 -1
- package/dist/esm/{cart.helper-a6bc446e.js → cart.helper-9c847c16.js} +2 -2
- package/dist/esm/{cart.helper-a6bc446e.js.map → cart.helper-9c847c16.js.map} +1 -1
- package/dist/esm/crm-bonus-form.entry.js +1 -1
- package/dist/esm/crm-bonus-note.entry.js +6 -9
- package/dist/esm/crm-bonus-note.entry.js.map +1 -1
- package/dist/esm/crm-bonus-tray.entry.js +1 -1
- package/dist/esm/crm-bonus.entry.js +2 -2
- package/dist/esm/crm-giftback-form.entry.js +2 -2
- package/dist/esm/crm-tooltip_4.entry.js +3 -3
- package/dist/esm/{crmbonus.service-4edd98e8.js → crmbonus.service-3ab820ba.js} +2 -2
- package/dist/esm/{crmbonus.service-4edd98e8.js.map → crmbonus.service-3ab820ba.js.map} +1 -1
- package/dist/esm/pedido-finalizado.entry.js +3 -3
- package/dist/esm/phone-input-mask.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/crmbonus-component-wake/p-130cbc13.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-a4bf9fe7.entry.js +0 -2
- package/dist/crmbonus-component-wake/p-a6ee628c.entry.js +0 -2
- /package/dist/crmbonus-component-wake/{p-92a4fe21.entry.js.map → p-510e3b16.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-a4bf9fe7.entry.js.map → p-568072fe.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-a6ee628c.entry.js.map → p-70dc125d.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-f9d8175f.entry.js.map → p-b5e9a5ea.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-9e10f4f4.entry.js.map → p-bfebfea7.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-912e6267.entry.js.map → p-cc0bc5a5.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-130cbc13.entry.js.map → p-d65808f6.entry.js.map} +0 -0
- /package/dist/crmbonus-component-wake/{p-9d3aacf7.js.map → p-e68d4e85.js.map} +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
import { r as registerInstance, h } from './index-bdb70d5a.js';
|
2
|
-
import { C as CrmBonusService } from './crmbonus.service-
|
3
|
-
import { C as CartWake, g as getCart } from './cart.helper-
|
2
|
+
import { C as CrmBonusService } from './crmbonus.service-3ab820ba.js';
|
3
|
+
import { C as CartWake, g as getCart } from './cart.helper-9c847c16.js';
|
4
4
|
|
5
5
|
const Pedido = class {
|
6
6
|
constructor(hostRef) {
|
@@ -24,7 +24,7 @@ const Pedido = class {
|
|
24
24
|
}
|
25
25
|
}
|
26
26
|
render() {
|
27
|
-
return (h("div", { key: '
|
27
|
+
return (h("div", { key: '2c842ca66602b461296e7070bd57edda194338e4' }));
|
28
28
|
}
|
29
29
|
};
|
30
30
|
|
@@ -47,7 +47,7 @@ const PhoneInputMask = class {
|
|
47
47
|
return this.phone;
|
48
48
|
}
|
49
49
|
render() {
|
50
|
-
return (h("div", { key: '
|
50
|
+
return (h("div", { key: 'f617fe62408f795a8965b05a74818facd556369c' }, h("input", { key: '8e4aba618b13bbdb59cb24685f7b48c84e150e8c', disabled: this.disabled, id: "phone", type: "text", class: "phone-input-form", value: this.phone, onInput: (event) => this.handleInput(event), placeholder: "(99) 99999 9999" }), h("p", { key: 'a30740d818178f1bc715cb87d3dadd15f38de02c', class: "crm-erro-msg" }, this.message)));
|
51
51
|
}
|
52
52
|
};
|
53
53
|
PhoneInputMask.style = PhoneInputMaskStyle0;
|
package/dist/types/Users/Darlison/Projects/Bycoders/crmbonus/crmbonus-component/.stencil/env.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const CRM_BONUS_API_URL = "https://
|
1
|
+
export declare const CRM_BONUS_API_URL = "https://typically-workable-perch.ngrok-free.app/api";
|
2
2
|
export declare const CHECKOUT_CART_WAKE = "http://localhost:3001";
|
package/package.json
CHANGED
@@ -1,2 +0,0 @@
|
|
1
|
-
import{r as t,h as e,H as s}from"./p-8c362346.js";import{C as i}from"./p-f95048e2.js";import{S as a}from"./p-ecc51430.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;margin-left:16px}";const h=n;const d=class{constructor(e){t(this,e);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 e,s;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=(s=(e=t===null||t===void 0?void 0:t.response)===null||e===void 0?void 0:e.data)===null||s===void 0?void 0:s.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 e(s,{key:"6cc4f52efdbcb77d480c9e85fcd0b0c10f0598a7"},this.step==a.STEP_NAME&&e("name-input",{key:"2c9bc7d4af5536f929b9a9a50caff90a43e19959",loading:this.loadingModal,value:this.customer.name,applyName:t=>this.handleCustomerName(t)}),this.step===a.STEP_PIN&&e("giftback-pin",{key:"e2fe1b7afba602d4a8106fb331c55cb82eafe82a",cancel:()=>this.handleCancel(),sent:this.sent,validate:t=>this.validateBonus(t),loading:this.loading}),this.step===a.STEP_RESERVE&&e("giftback-progress",{key:"7ff0c00d64909713715f735f1c803b093055badc",loading:this.loading,cancel:()=>this.handleCancel(),bonus:this.bonus,reserve:t=>this.reserveApply(t)}),this.step===a.STEP_APPLY&&e("giftback-finish",{key:"30458626eb3d32b0ab9fca3d1e09c72983560b0b"}),e("p",{key:"0fdd0de0a48433ba39ec07f5f8735e947231a178",class:"message-error"},this.message))}};d.style=h;export{d as crm_bonus_form};
|
2
|
-
//# sourceMappingURL=p-130cbc13.entry.js.map
|
@@ -1,2 +0,0 @@
|
|
1
|
-
import{r as a,h as r}from"./p-8c362346.js";import{C as o}from"./p-f95048e2.js";import{C as t,g as s}from"./p-9d3aacf7.js";const c=class{constructor(r){a(this,r);this.cart=undefined}async componentWillLoad(){await this.handleOrder()}async handleOrder(){const a=this.cart?new t(JSON.parse(this.cart)):await s();if(a.id&&a.orderId){o.getInstance().updateOrder({cartId:a.id,orderId:a.orderId,cartIdCrm:a.middlewareId});const r=`bc-products:${a.id}`;localStorage.removeItem(r);localStorage.removeItem(a.id)}}render(){return r("div",{key:"d4fcc9409bf4a32af5ba3f653fff0f62ca23a91a"})}};export{c as pedido_finalizado};
|
2
|
-
//# sourceMappingURL=p-a6ee628c.entry.js.map
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|