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.
Files changed (87) hide show
  1. package/dist/cjs/{cart.helper-0e517eb6.js → cart.helper-df86b04b.js} +2 -2
  2. package/dist/cjs/{cart.helper-0e517eb6.js.map → cart.helper-df86b04b.js.map} +1 -1
  3. package/dist/cjs/crm-bonus-form.cjs.entry.js +1 -1
  4. package/dist/cjs/crm-bonus-note.cjs.entry.js +6 -9
  5. package/dist/cjs/crm-bonus-note.cjs.entry.js.map +1 -1
  6. package/dist/cjs/crm-bonus-tray.cjs.entry.js +1 -1
  7. package/dist/cjs/crm-bonus.cjs.entry.js +2 -2
  8. package/dist/cjs/crm-giftback-form.cjs.entry.js +2 -2
  9. package/dist/cjs/crm-tooltip_4.cjs.entry.js +3 -3
  10. package/dist/cjs/{crmbonus.service-7628a4b4.js → crmbonus.service-2df67338.js} +2 -2
  11. package/dist/cjs/{crmbonus.service-7628a4b4.js.map → crmbonus.service-2df67338.js.map} +1 -1
  12. package/dist/cjs/pedido-finalizado.cjs.entry.js +3 -3
  13. package/dist/cjs/phone-input-mask.cjs.entry.js +1 -1
  14. package/dist/collection/components/note/crm-bonus-note.js +4 -7
  15. package/dist/collection/components/note/crm-bonus-note.js.map +1 -1
  16. package/dist/collection/components/pedido/pedido.js +1 -1
  17. package/dist/collection/components/phone/phone-input-mask.js +1 -1
  18. package/dist/collection/components/tooltip/tooltip.js +1 -1
  19. package/dist/collection/tray-ecommerce/crm-bonus-tray.js +1 -1
  20. package/dist/components/crm-bonus-form.js +1 -1
  21. package/dist/components/crm-bonus-note.js +6 -9
  22. package/dist/components/crm-bonus-note.js.map +1 -1
  23. package/dist/components/crm-bonus-tray.js +1 -1
  24. package/dist/components/crm-bonus.js +7 -7
  25. package/dist/components/crm-giftback-form.js +1 -1
  26. package/dist/components/crm-tooltip.js +1 -1
  27. package/dist/components/giftback-info.js +1 -1
  28. package/dist/components/{p-5210a82f.js → p-0a33e90f.js} +2 -2
  29. package/dist/components/{p-5210a82f.js.map → p-0a33e90f.js.map} +1 -1
  30. package/dist/components/{p-7d47a3e2.js → p-36601e2d.js} +7 -7
  31. package/dist/components/{p-7d47a3e2.js.map → p-36601e2d.js.map} +1 -1
  32. package/dist/components/{p-4468aa91.js → p-417d9c1e.js} +4 -4
  33. package/dist/components/{p-4468aa91.js.map → p-417d9c1e.js.map} +1 -1
  34. package/dist/components/{p-09048b73.js → p-ab662b24.js} +2 -2
  35. package/dist/components/{p-09048b73.js.map → p-ab662b24.js.map} +1 -1
  36. package/dist/components/{p-f95048e2.js → p-c2ecfee1.js} +2 -2
  37. package/dist/components/{p-f95048e2.js.map → p-c2ecfee1.js.map} +1 -1
  38. package/dist/components/{p-285d0caf.js → p-e068510c.js} +2 -2
  39. package/dist/components/{p-285d0caf.js.map → p-e068510c.js.map} +1 -1
  40. package/dist/components/{p-9d3aacf7.js → p-e68d4e85.js} +2 -2
  41. package/dist/components/{p-9d3aacf7.js.map → p-e68d4e85.js.map} +1 -1
  42. package/dist/components/pedido-finalizado.js +3 -3
  43. package/dist/components/phone-cancel-input.js +1 -1
  44. package/dist/components/phone-form.js +1 -1
  45. package/dist/components/phone-input-mask.js +1 -1
  46. package/dist/components/phone-input.js +1 -1
  47. package/dist/crmbonus-component-wake/crmbonus-component-wake.esm.js +1 -1
  48. package/dist/crmbonus-component-wake/{p-92a4fe21.entry.js → p-510e3b16.entry.js} +2 -2
  49. package/dist/crmbonus-component-wake/p-568072fe.entry.js +2 -0
  50. package/dist/crmbonus-component-wake/p-70dc125d.entry.js +2 -0
  51. package/dist/crmbonus-component-wake/{p-4a1fdb72.entry.js → p-8d18bf67.entry.js} +2 -2
  52. package/dist/crmbonus-component-wake/{p-4a1fdb72.entry.js.map → p-8d18bf67.entry.js.map} +1 -1
  53. package/dist/crmbonus-component-wake/{p-f9d8175f.entry.js → p-b5e9a5ea.entry.js} +2 -2
  54. package/dist/crmbonus-component-wake/{p-9e10f4f4.entry.js → p-bfebfea7.entry.js} +2 -2
  55. package/dist/crmbonus-component-wake/{p-f95048e2.js → p-c2ecfee1.js} +2 -2
  56. package/dist/crmbonus-component-wake/{p-f95048e2.js.map → p-c2ecfee1.js.map} +1 -1
  57. package/dist/crmbonus-component-wake/{p-912e6267.entry.js → p-cc0bc5a5.entry.js} +2 -2
  58. package/dist/crmbonus-component-wake/p-d65808f6.entry.js +2 -0
  59. package/dist/crmbonus-component-wake/{p-9d3aacf7.js → p-e68d4e85.js} +2 -2
  60. package/dist/env.js +1 -1
  61. package/dist/env.js.map +1 -1
  62. package/dist/esm/{cart.helper-a6bc446e.js → cart.helper-9c847c16.js} +2 -2
  63. package/dist/esm/{cart.helper-a6bc446e.js.map → cart.helper-9c847c16.js.map} +1 -1
  64. package/dist/esm/crm-bonus-form.entry.js +1 -1
  65. package/dist/esm/crm-bonus-note.entry.js +6 -9
  66. package/dist/esm/crm-bonus-note.entry.js.map +1 -1
  67. package/dist/esm/crm-bonus-tray.entry.js +1 -1
  68. package/dist/esm/crm-bonus.entry.js +2 -2
  69. package/dist/esm/crm-giftback-form.entry.js +2 -2
  70. package/dist/esm/crm-tooltip_4.entry.js +3 -3
  71. package/dist/esm/{crmbonus.service-4edd98e8.js → crmbonus.service-3ab820ba.js} +2 -2
  72. package/dist/esm/{crmbonus.service-4edd98e8.js.map → crmbonus.service-3ab820ba.js.map} +1 -1
  73. package/dist/esm/pedido-finalizado.entry.js +3 -3
  74. package/dist/esm/phone-input-mask.entry.js +1 -1
  75. package/dist/types/Users/Darlison/Projects/Bycoders/crmbonus/crmbonus-component/.stencil/env.d.ts +1 -1
  76. package/package.json +1 -1
  77. package/dist/crmbonus-component-wake/p-130cbc13.entry.js +0 -2
  78. package/dist/crmbonus-component-wake/p-a4bf9fe7.entry.js +0 -2
  79. package/dist/crmbonus-component-wake/p-a6ee628c.entry.js +0 -2
  80. /package/dist/crmbonus-component-wake/{p-92a4fe21.entry.js.map → p-510e3b16.entry.js.map} +0 -0
  81. /package/dist/crmbonus-component-wake/{p-a4bf9fe7.entry.js.map → p-568072fe.entry.js.map} +0 -0
  82. /package/dist/crmbonus-component-wake/{p-a6ee628c.entry.js.map → p-70dc125d.entry.js.map} +0 -0
  83. /package/dist/crmbonus-component-wake/{p-f9d8175f.entry.js.map → p-b5e9a5ea.entry.js.map} +0 -0
  84. /package/dist/crmbonus-component-wake/{p-9e10f4f4.entry.js.map → p-bfebfea7.entry.js.map} +0 -0
  85. /package/dist/crmbonus-component-wake/{p-912e6267.entry.js.map → p-cc0bc5a5.entry.js.map} +0 -0
  86. /package/dist/crmbonus-component-wake/{p-130cbc13.entry.js.map → p-d65808f6.entry.js.map} +0 -0
  87. /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-4edd98e8.js';
3
- import { C as CartWake, g as getCart } from './cart.helper-a6bc446e.js';
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: 'd4fcc9409bf4a32af5ba3f653fff0f62ca23a91a' }));
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: '3777be0d3ef5996c42f72687ea8b50b15448f9e9' }, h("input", { key: 'b8c1c4194b19ee4ead97141269c357ad2c314943', 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: 'f5e17415f8ba29a274ba4420d0333ab09b9d91b5', class: "crm-erro-msg" }, this.message)));
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;
@@ -1,2 +1,2 @@
1
- export declare const CRM_BONUS_API_URL = "https://crmbonus-hub-staging-0ff7e3bf68ac.herokuapp.com/api";
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,6 +1,6 @@
1
1
  {
2
2
  "name": "crmbonus-component-wake",
3
- "version": "2.1.29-homolog",
3
+ "version": "2.1.29-ngrok",
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 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,h as s}from"./p-8c362346.js";const e=class{constructor(s){r(this,s)}render(){return s("div",{key:"9caf7b3b05f5be1eb2b08833aef819f8d9608570"},"COMPONENT BYCODER")}};export{e as crm_bonus_tray};
2
- //# sourceMappingURL=p-a4bf9fe7.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