@htmlbricks/hb-page-checkout 0.20.0 → 0.20.3

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@htmlbricks/hb-page-checkout",
3
3
  "displayName": "Svelte Page Payment WebComponent",
4
4
  "description": "Svelte Page Payment WebComponent",
5
- "version": "0.20.0",
5
+ "version": "0.20.3",
6
6
  "main": "release/release.js",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -70,8 +70,8 @@
70
70
  "wc-js-utils": "^0.0.1"
71
71
  },
72
72
  "dependencies": {
73
- "@htmlbricks/hb-checkout": "^0.20.0",
74
- "@htmlbricks/hb-checkout-shopping-cart": "^0.20.0",
73
+ "@htmlbricks/hb-checkout": "^0.20.3",
74
+ "@htmlbricks/hb-checkout-shopping-cart": "^0.20.3",
75
75
  "dayjs": "^1.10.7",
76
76
  "debounce": "^1.2.1"
77
77
  },
@@ -82,5 +82,5 @@
82
82
  "html5-webcomponents"
83
83
  ],
84
84
  "contributors": [],
85
- "gitHead": "ad80426d1f3f29e5c4aef0d9525b0d96e12c065d"
85
+ "gitHead": "4688cbe17fb2f024281a80f342bb4a69a4b3c56f"
86
86
  }
@@ -479,5 +479,5 @@
479
479
  "size": {},
480
480
  "iifePath": "release/release.js",
481
481
  "repoName": "@htmlbricks/hb-page-checkout",
482
- "version": "0.20.0"
482
+ "version": "0.20.3"
483
483
  }
@@ -1,2 +1,2 @@
1
- var release=function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function r(e){e.forEach(t)}function o(e){return"function"==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function a(e,t){e.appendChild(t)}function s(e,t,n){e.insertBefore(t,n||null)}function d(e){e.parentNode&&e.parentNode.removeChild(e)}function l(e){return document.createElement(e)}function c(){return e=" ",document.createTextNode(e);var e}function u(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function p(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function f(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:p(e,t,n)}function m(e,t,n,r){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function h(e){const t={};for(const n of e)t[n.name]=n.value;return t}let g;function b(e){g=e}function y(){if(!g)throw new Error("Function called outside component initialization");return g}function v(){const e=y();return(t,n,{cancelable:r=!1}={})=>{const o=e.$$.callbacks[t];if(o){const i=function(e,t,{bubbles:n=!1,cancelable:r=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(e,n,r,t),o}(t,n,{cancelable:r});return o.slice().forEach((t=>{t.call(e,i)})),!i.defaultPrevented}return!0}}const w=[],x=[];let $=[];const k=[],E=Promise.resolve();let C=!1;function T(e){$.push(e)}const _=new Set;let N=0;function S(){if(0!==N)return;const e=g;do{try{for(;N<w.length;){const e=w[N];N++,b(e),O(e.$$)}}catch(e){throw w.length=0,N=0,e}for(b(null),w.length=0,N=0;x.length;)x.pop()();for(let e=0;e<$.length;e+=1){const t=$[e];_.has(t)||(_.add(t),t())}$.length=0}while(w.length);for(;k.length;)k.pop()();C=!1,_.clear(),b(e)}function O(e){if(null!==e.fragment){e.update(),r(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(T)}}const V=new Set;function L(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];$.forEach((r=>-1===e.indexOf(r)?t.push(r):n.push(r))),n.forEach((e=>e())),$=t}(n.after_update),r(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function A(e,t){-1===e.$$.dirty[0]&&(w.push(e),C||(C=!0,E.then(S)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function P(i,a,s,l,c,u,p,f=[-1]){const m=g;b(i);const h=i.$$={fragment:null,ctx:[],props:u,update:e,not_equal:c,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(m?m.$$.context:[])),callbacks:n(),dirty:f,skip_bound:!1,root:a.target||m.$$.root};p&&p(h.root);let y=!1;if(h.ctx=s?s(i,a.props||{},((e,t,...n)=>{const r=n.length?n[0]:t;return h.ctx&&c(h.ctx[e],h.ctx[e]=r)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](r),y&&A(i,e)),t})):[],h.update(),y=!0,r(h.before_update),h.fragment=!!l&&l(h.ctx),a.target){if(a.hydrate){const e=function(e){return Array.from(e.childNodes)}(a.target);h.fragment&&h.fragment.l(e),e.forEach(d)}else h.fragment&&h.fragment.c();a.intro&&((v=i.$$.fragment)&&v.i&&(V.delete(v),v.i(w))),function(e,n,i,a){const{fragment:s,after_update:d}=e.$$;s&&s.m(n,i),a||T((()=>{const n=e.$$.on_mount.map(t).filter(o);e.$$.on_destroy?e.$$.on_destroy.push(...n):r(n),e.$$.on_mount=[]})),d.forEach(T)}(i,a.target,a.anchor,a.customElement),S()}var v,w;b(m)}let j;"function"==typeof HTMLElement&&(j=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(o);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){r(this.$$.on_disconnect)}$destroy(){L(this,1),this.$destroy=e}$on(t,n){if(!o(n))return e;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const e=r.indexOf(n);-1!==e&&r.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var J="0.20.0";var M,D=(function(e,t){t.__esModule=!0,t.LanguageTranslator=t.addComponent=t.getChildStyleToPass=void 0,t.getChildStyleToPass=function(e,t){var n,r,o="";if(e&&(null==t?void 0:t.length)&&(null===(n=Object.keys(e))||void 0===n?void 0:n.length)&&(null===(r=null==t?void 0:t.filter((function(t){return Object.keys(e).includes(t.name)})))||void 0===r?void 0:r.length))for(var i=function(n){(null==t?void 0:t.filter((function(t){return t.name===n&&t.defaultValue!==e[n]})))&&(o+="".concat(n,":").concat(e[n],";"))},a=0,s=Object.keys(e);a<s.length;a++)i(s[a]);return o},t.addComponent=function(e){var t,n=(null===(t=null==e?void 0:e.repoName.split("/"))||void 0===t?void 0:t[1])||(null==e?void 0:e.repoName);if(!n)throw new Error("wrong componentPath "+(null==e?void 0:e.repoName));if(!(null==e?void 0:e.version))throw new Error("wrong version "+(null==e?void 0:e.version));var r=(null==e?void 0:e.iifePath)||"release/release.js";if(!document.getElementById(n+"-script"))try{var o=document.createElement("script");o.id=n+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(e.repoName,"@").concat(e.version,"/").concat(r),(null==e?void 0:e.local)&&location.href.includes("localhost")&&(o.src="".concat(e.local)),document.head.appendChild(o)}catch(e){console.warn(e)}};var n=function(){function e(e){if(!(null==e?void 0:e.dictionary))throw new Error("no dictionary provided");this.dictionary=e.dictionary,this.setLang(null==e?void 0:e.lang)}return e.prototype.setLang=function(t){t||(t=e.getDefaultLang()),this.lang=t},e.prototype.translateWord=function(t,n){return e.getDictionaryWord(t,this.dictionary,n||this.lang)},e.prototype.translateDate=function(t,n,r){return e.formatDate(t,n,r||this.lang)},e.getDefaultLang=function(){var e,t,n,r,o,i="en";return(null===navigator||void 0===navigator?void 0:navigator.languages)&&(null===(n=null===(t=null===(e=navigator.languages[0])||void 0===e?void 0:e.split("-")[0])||void 0===t?void 0:t.toLowerCase())||void 0===n?void 0:n.length)&&(i=null===(o=null===(r=navigator.languages[0])||void 0===r?void 0:r.split("-")[0])||void 0===o?void 0:o.toLowerCase()),i},e.getDictionaryWord=function(t,n,r){var o;if(!t)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(r&&(null===(o=n[r])||void 0===o?void 0:o[t]))return n[r][t];var i="",a=e.getDefaultLang();if(!r||a!==r){var s=null==n?void 0:n[a];(null==s?void 0:s[t])&&(i=s[t])}return i},e.formatDate=function(t,n,r){if(!t)throw new Error("no date provided");if("function"!=typeof t.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(r||e.getDefaultLang(),n).format(t)},e}();t.LanguageTranslator=n}(M={exports:{}},M.exports),M.exports),U={vars:[{name:"--edit-color",defaultValue:"green",description:"",valueType:"color"},{name:"--paypal-button-color",defaultValue:"yellow",description:"",valueType:"color"},{name:"--hb-heckout-border",defaultValue:"0.5px solid rgba(197, 197, 197, 0.808)",description:"",valueType:"string"},{name:"--bs-primary",valueType:"color",theme:"bootstrap",defaultValue:"#07689f"},{name:"--bs-secondary",valueType:"color",theme:"bootstrap",defaultValue:"#c9d6df"},{name:"--bs-success",valueType:"color",theme:"bootstrap",defaultValue:"#11d3bc"},{name:"--bs-info",valueType:"color",theme:"bootstrap",defaultValue:"#a2d5f2"},{name:"--bs-warning",valueType:"color",theme:"bootstrap",defaultValue:"#ffc107"},{name:"--bs-danger",valueType:"color",theme:"bootstrap",defaultValue:"#f67280"}],parts:[{name:"title"},{name:"subtitle"}]},F={vars:[{name:"--hb-checkout-border",description:"",defaultValue:"0.5px solid rgba(197, 197, 197, 0.808)",valueType:"string"},{name:"--bs-primary",valueType:"color",theme:"bootstrap",defaultValue:"#07689f"},{name:"--bs-secondary",valueType:"color",theme:"bootstrap",defaultValue:"#c9d6df"},{name:"--bs-success",valueType:"color",theme:"bootstrap",defaultValue:"#11d3bc"},{name:"--bs-info",valueType:"color",theme:"bootstrap",defaultValue:"#a2d5f2"},{name:"--bs-warning",valueType:"color",theme:"bootstrap",defaultValue:"#ffc107"},{name:"--bs-danger",valueType:"color",theme:"bootstrap",defaultValue:"#f67280"}],parts:[]},I=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,R=/\n/g,z=/^\s*/,q=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,H=/^:\s*/,W=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,B=/^[;\s]*/,K=/^\s+|\s+$/g,G="";function Q(e){return e?e.replace(K,G):G}var X=function(e,t){var n,r=null;if(!e||"string"!=typeof e)return r;for(var o,i,a=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(e){var t=e.match(R);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new a(e),l(),t}}function a(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function s(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i}function d(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function l(){d(z)}function c(e){var t;for(e=e||[];t=u();)!1!==t&&e.push(t);return e}function u(){var t=i();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;G!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,G===e.charAt(n-1))return s("End of comment missing");var a=e.slice(2,n-2);return r+=2,o(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}}function p(){var e=i(),t=d(q);if(t){if(u(),!d(H))return s("property missing ':'");var n=d(W),r=e({type:"declaration",property:Q(t[0].replace(I,G)),value:n?Q(n[0].replace(I,G)):G});return d(B),r}}return a.prototype.content=e,l(),function(){var e,t=[];for(c(t);e=p();)!1!==e&&(t.push(e),c(t));return t}()}(e),s="function"==typeof t,d=0,l=a.length;d<l;d++)o=(n=a[d]).property,i=n.value,s?t(o,i,n):i&&(r||(r={}),r[o]=i);return r};function Y(t){let n,o,i,h,g,b,y,v,w,x,$,k,E;return{c(){n=l("div"),o=l("div"),i=l("div"),h=l("hb-checkout"),v=c(),w=l("div"),x=l("hb-checkout-shopping-cart"),this.c=e,f(h,"style",t[5]),f(h,"completed",t[4]),f(h,"user",t[1]),f(h,"shipments",g=JSON.stringify(t[0])),f(h,"gateways",b=JSON.stringify(t[3])),f(h,"payment",y=JSON.stringify(t[2])),p(i,"class","col-7"),m(i,"padding-right","30px"),f(x,"style",t[6]),f(x,"completed",t[4]),f(x,"payment",$=JSON.stringify(t[2])),p(w,"class","col-5"),m(w,"padding-left","30px"),p(o,"class","row"),p(n,"class","container")},m(e,r){s(e,n,r),a(n,o),a(o,i),a(i,h),a(o,v),a(o,w),a(w,x),k||(E=[u(h,"paymentCompleted",t[14]),u(h,"saveUser",t[15]),u(h,"saveShipment",t[16])],k=!0)},p(e,[t]){32&t&&f(h,"style",e[5]),16&t&&f(h,"completed",e[4]),2&t&&f(h,"user",e[1]),1&t&&g!==(g=JSON.stringify(e[0]))&&f(h,"shipments",g),8&t&&b!==(b=JSON.stringify(e[3]))&&f(h,"gateways",b),4&t&&y!==(y=JSON.stringify(e[2]))&&f(h,"payment",y),64&t&&f(x,"style",e[6]),16&t&&f(x,"completed",e[4]),4&t&&$!==($=JSON.stringify(e[2]))&&f(x,"payment",$)},i:e,o:e,d(e){e&&d(n),k=!1,r(E)}}}function Z(e,t,n){var r;let o,{style:i}=t,a="",s="",{id:d}=t,{shipments:l}=t,{user:c}=t,{payment:u}=t,{gateways:p}=t,{completed:f}=t;const m={merchantName:"merchant",countryCode:"IT",total:0,currencyCode:"EUR",items:[]},h=y(),g=v();function b(e,t){g(e,t),h.dispatchEvent&&h.dispatchEvent(new CustomEvent(e,{detail:t}))}function w(e){const t=l.findIndex((t=>t.id===e.id)),r=l[t];l.forEach((e=>e.selected=!1)),r.selected=!0,n(2,u.shipmentFee=r.price,u),console.log("sss",r,e)}function x(e){e.completed?(n(4,f="yes"),b("paymentCompleted",e)):console.warn(e)}D.addComponent({repoName:"@htmlbricks/hb-checkout-shopping-cart",version:J}),D.addComponent({repoName:"@htmlbricks/hb-checkout",version:J});return e.$$set=e=>{"style"in e&&n(11,i=e.style),"id"in e&&n(10,d=e.id),"shipments"in e&&n(0,l=e.shipments),"user"in e&&n(1,c=e.user),"payment"in e&&n(2,u=e.payment),"gateways"in e&&n(3,p=e.gateways),"completed"in e&&n(4,f=e.completed)},e.$$.update=()=>{if(15391&e.$$.dirty){d||n(10,d=null),i&&(n(13,o=X(i)),n(5,a=D.getChildStyleToPass(o,null==U?void 0:U.vars)),n(6,s=D.getChildStyleToPass(o,null==F?void 0:F.vars))),f||n(4,f="no"),l?"string"==typeof l&&n(0,l=JSON.parse(l)||[]):n(0,l=[]),p?"string"==typeof p&&n(3,p=JSON.parse(p)||[]):n(3,p=[]),u?"string"==typeof u&&n(2,u=JSON.parse(u)):n(2,u=m),(l.find((e=>e.selected))||l.find((e=>e.standard)))&&n(2,u.shipmentFee=(l.find((e=>e.selected))||l.find((e=>e.standard))).price,u),c||n(1,c=null);let e,t=(null==u?void 0:u.shipmentFee)||0;for(const e of u.items)t+=e.unitaryPrice*(e.quantity||1)+Math.round(.01*e.taxPercentage*e.unitaryPrice*(e.quantity||1)*100)/100;null===n(12,r=null==u?void 0:u.countryCode)||void 0===r||r.toUpperCase(),e="EUR",n(2,u.total=Math.round(100*t)/100,u),n(2,u.currencyCode=e,u)}},[l,c,u,p,f,a,s,b,w,x,d,i,r,o,e=>x(e.detail),e=>b("saveUser",e.detail),e=>w(e.detail)]}class ee extends j{constructor(e){super();const t=document.createElement("style");t.textContent='@charset "UTF-8";@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host{font-family:"Roboto", sans-serif;display:block;margin:40px 0px 40px 0px;--hb-checkout-border:0.5px solid rgba(197, 197, 197, 0.808)}:host{--bs-blue:var(--bs-primary,#07689f);--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:var(--bs-danger,#f67280);--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:var(--bs-warning,#ffc107);--bs-teal:#20c997;--bs-cyan:var(--bs-info,#a2d5f2);--bs-white:#fff;--bs-gray:var(--bs-secondary,#c9d6df);--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:var(--bs-secondary,#c9d6df);--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:var(--bs-primary,#07689f);--bs-secondary:var(--bs-secondary,#c9d6df);--bs-success:var(--bs-warning,#ffc107);--bs-info:var(--bs-info,#a2d5f2);--bs-warning:#ffc107;--bs-danger:var(--bs-danger,#f67280);--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13, 110, 253;--bs-secondary-rgb:108, 117, 125;--bs-success-rgb:25, 135, 84;--bs-info-rgb:13, 202, 240;--bs-warning-rgb:255, 193, 7;--bs-danger-rgb:220, 53, 69;--bs-light-rgb:248, 249, 250;--bs-dark-rgb:33, 37, 41;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:33, 37, 41;--bs-body-bg-rgb:255, 255, 255;--bs-font-sans-serif:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff}*,*::before,*::after{box-sizing:border-box}@media(prefers-reduced-motion: no-preference){:host{scroll-behavior:smooth}}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}::-moz-focus-inner{padding:0;border-style:none}@media(min-width: 1200px){}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}.container{width:100%;padding-right:var(--bs-gutter-x, 0.75rem);padding-left:var(--bs-gutter-x, 0.75rem);margin-right:auto;margin-left:auto}@media(min-width: 576px){.container{max-width:540px}}@media(min-width: 768px){.container{max-width:720px}}@media(min-width: 992px){.container{max-width:960px}}@media(min-width: 1200px){.container{max-width:1140px}}@media(min-width: 1400px){.container{max-width:1320px}}.row{--bs-gutter-x:1.5rem;--bs-gutter-y:0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-0.5 * var(--bs-gutter-x));margin-left:calc(-0.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * 0.5);padding-left:calc(var(--bs-gutter-x) * 0.5);margin-top:var(--bs-gutter-y)}.col-5{flex:0 0 auto;width:41.66666667%}.col-7{flex:0 0 auto;width:58.33333333%}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}@media(prefers-reduced-motion: reduce){}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}@media(min-width: 1200px){}@media print{}hb-checkout-shopping-cart{border:var(--hb-checkout-border);--hb-checkout-border:0.5px solid rgba(197, 197, 197, 0.808)}',this.shadowRoot.appendChild(t),P(this,{target:this.shadowRoot,props:h(this.attributes),customElement:!0},Z,Y,i,{style:11,id:10,shipments:0,user:1,payment:2,gateways:3,completed:4},null),e&&(e.target&&s(e.target,this,e.anchor),e.props&&(this.$set(e.props),S()))}static get observedAttributes(){return["style","id","shipments","user","payment","gateways","completed"]}get style(){return this.$$.ctx[11]}set style(e){this.$$set({style:e}),S()}get id(){return this.$$.ctx[10]}set id(e){this.$$set({id:e}),S()}get shipments(){return this.$$.ctx[0]}set shipments(e){this.$$set({shipments:e}),S()}get user(){return this.$$.ctx[1]}set user(e){this.$$set({user:e}),S()}get payment(){return this.$$.ctx[2]}set payment(e){this.$$set({payment:e}),S()}get gateways(){return this.$$.ctx[3]}set gateways(e){this.$$set({gateways:e}),S()}get completed(){return this.$$.ctx[4]}set completed(e){this.$$set({completed:e}),S()}}return customElements.define("hb-page-checkout",ee),ee}();
1
+ var release=function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function r(e){e.forEach(t)}function o(e){return"function"==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function a(e,t){e.appendChild(t)}function s(e,t,n){e.insertBefore(t,n||null)}function d(e){e.parentNode&&e.parentNode.removeChild(e)}function l(e){return document.createElement(e)}function c(){return e=" ",document.createTextNode(e);var e}function u(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function p(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function f(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:p(e,t,n)}function m(e,t,n,r){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function h(e){const t={};for(const n of e)t[n.name]=n.value;return t}let g;function b(e){g=e}function y(){if(!g)throw new Error("Function called outside component initialization");return g}function v(){const e=y();return(t,n,{cancelable:r=!1}={})=>{const o=e.$$.callbacks[t];if(o){const i=function(e,t,{bubbles:n=!1,cancelable:r=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(e,n,r,t),o}(t,n,{cancelable:r});return o.slice().forEach((t=>{t.call(e,i)})),!i.defaultPrevented}return!0}}const w=[],x=[];let $=[];const k=[],E=Promise.resolve();let C=!1;function T(e){$.push(e)}const _=new Set;let N=0;function S(){if(0!==N)return;const e=g;do{try{for(;N<w.length;){const e=w[N];N++,b(e),O(e.$$)}}catch(e){throw w.length=0,N=0,e}for(b(null),w.length=0,N=0;x.length;)x.pop()();for(let e=0;e<$.length;e+=1){const t=$[e];_.has(t)||(_.add(t),t())}$.length=0}while(w.length);for(;k.length;)k.pop()();C=!1,_.clear(),b(e)}function O(e){if(null!==e.fragment){e.update(),r(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(T)}}const V=new Set;function L(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];$.forEach((r=>-1===e.indexOf(r)?t.push(r):n.push(r))),n.forEach((e=>e())),$=t}(n.after_update),r(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function A(e,t){-1===e.$$.dirty[0]&&(w.push(e),C||(C=!0,E.then(S)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function P(i,a,s,l,c,u,p,f=[-1]){const m=g;b(i);const h=i.$$={fragment:null,ctx:[],props:u,update:e,not_equal:c,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(m?m.$$.context:[])),callbacks:n(),dirty:f,skip_bound:!1,root:a.target||m.$$.root};p&&p(h.root);let y=!1;if(h.ctx=s?s(i,a.props||{},((e,t,...n)=>{const r=n.length?n[0]:t;return h.ctx&&c(h.ctx[e],h.ctx[e]=r)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](r),y&&A(i,e)),t})):[],h.update(),y=!0,r(h.before_update),h.fragment=!!l&&l(h.ctx),a.target){if(a.hydrate){const e=function(e){return Array.from(e.childNodes)}(a.target);h.fragment&&h.fragment.l(e),e.forEach(d)}else h.fragment&&h.fragment.c();a.intro&&((v=i.$$.fragment)&&v.i&&(V.delete(v),v.i(w))),function(e,n,i,a){const{fragment:s,after_update:d}=e.$$;s&&s.m(n,i),a||T((()=>{const n=e.$$.on_mount.map(t).filter(o);e.$$.on_destroy?e.$$.on_destroy.push(...n):r(n),e.$$.on_mount=[]})),d.forEach(T)}(i,a.target,a.anchor,a.customElement),S()}var v,w;b(m)}let j;"function"==typeof HTMLElement&&(j=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(o);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){r(this.$$.on_disconnect)}$destroy(){L(this,1),this.$destroy=e}$on(t,n){if(!o(n))return e;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const e=r.indexOf(n);-1!==e&&r.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var J="0.20.3";var M,D=(function(e,t){t.__esModule=!0,t.LanguageTranslator=t.addComponent=t.getChildStyleToPass=void 0,t.getChildStyleToPass=function(e,t){var n,r,o="";if(e&&(null==t?void 0:t.length)&&(null===(n=Object.keys(e))||void 0===n?void 0:n.length)&&(null===(r=null==t?void 0:t.filter((function(t){return Object.keys(e).includes(t.name)})))||void 0===r?void 0:r.length))for(var i=function(n){(null==t?void 0:t.filter((function(t){return t.name===n&&t.defaultValue!==e[n]})))&&(o+="".concat(n,":").concat(e[n],";"))},a=0,s=Object.keys(e);a<s.length;a++)i(s[a]);return o},t.addComponent=function(e){var t,n=(null===(t=null==e?void 0:e.repoName.split("/"))||void 0===t?void 0:t[1])||(null==e?void 0:e.repoName);if(!n)throw new Error("wrong componentPath "+(null==e?void 0:e.repoName));if(!(null==e?void 0:e.version))throw new Error("wrong version "+(null==e?void 0:e.version));var r=(null==e?void 0:e.iifePath)||"release/release.js";if(!document.getElementById(n+"-script"))try{var o=document.createElement("script");o.id=n+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(e.repoName,"@").concat(e.version,"/").concat(r),(null==e?void 0:e.local)&&location.href.includes("localhost")&&(o.src="".concat(e.local)),document.head.appendChild(o)}catch(e){console.warn(e)}};var n=function(){function e(e){if(!(null==e?void 0:e.dictionary))throw new Error("no dictionary provided");this.dictionary=e.dictionary,this.setLang(null==e?void 0:e.lang)}return e.prototype.setLang=function(t){t||(t=e.getDefaultLang()),this.lang=t},e.prototype.translateWord=function(t,n){return e.getDictionaryWord(t,this.dictionary,n||this.lang)},e.prototype.translateDate=function(t,n,r){return e.formatDate(t,n,r||this.lang)},e.getDefaultLang=function(){var e,t,n,r,o,i="en";return(null===navigator||void 0===navigator?void 0:navigator.languages)&&(null===(n=null===(t=null===(e=navigator.languages[0])||void 0===e?void 0:e.split("-")[0])||void 0===t?void 0:t.toLowerCase())||void 0===n?void 0:n.length)&&(i=null===(o=null===(r=navigator.languages[0])||void 0===r?void 0:r.split("-")[0])||void 0===o?void 0:o.toLowerCase()),i},e.getDictionaryWord=function(t,n,r){var o;if(!t)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(r&&(null===(o=n[r])||void 0===o?void 0:o[t]))return n[r][t];var i="",a=e.getDefaultLang();if(!r||a!==r){var s=null==n?void 0:n[a];(null==s?void 0:s[t])&&(i=s[t])}return i},e.formatDate=function(t,n,r){if(!t)throw new Error("no date provided");if("function"!=typeof t.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(r||e.getDefaultLang(),n).format(t)},e}();t.LanguageTranslator=n}(M={exports:{}},M.exports),M.exports),U={vars:[{name:"--edit-color",defaultValue:"green",description:"",valueType:"color"},{name:"--paypal-button-color",defaultValue:"yellow",description:"",valueType:"color"},{name:"--hb-heckout-border",defaultValue:"0.5px solid rgba(197, 197, 197, 0.808)",description:"",valueType:"string"},{name:"--bs-primary",valueType:"color",theme:"bootstrap",defaultValue:"#07689f"},{name:"--bs-secondary",valueType:"color",theme:"bootstrap",defaultValue:"#c9d6df"},{name:"--bs-success",valueType:"color",theme:"bootstrap",defaultValue:"#11d3bc"},{name:"--bs-info",valueType:"color",theme:"bootstrap",defaultValue:"#a2d5f2"},{name:"--bs-warning",valueType:"color",theme:"bootstrap",defaultValue:"#ffc107"},{name:"--bs-danger",valueType:"color",theme:"bootstrap",defaultValue:"#f67280"}],parts:[{name:"title"},{name:"subtitle"}]},F={vars:[{name:"--hb-checkout-border",description:"",defaultValue:"0.5px solid rgba(197, 197, 197, 0.808)",valueType:"string"},{name:"--bs-primary",valueType:"color",theme:"bootstrap",defaultValue:"#07689f"},{name:"--bs-secondary",valueType:"color",theme:"bootstrap",defaultValue:"#c9d6df"},{name:"--bs-success",valueType:"color",theme:"bootstrap",defaultValue:"#11d3bc"},{name:"--bs-info",valueType:"color",theme:"bootstrap",defaultValue:"#a2d5f2"},{name:"--bs-warning",valueType:"color",theme:"bootstrap",defaultValue:"#ffc107"},{name:"--bs-danger",valueType:"color",theme:"bootstrap",defaultValue:"#f67280"}],parts:[]},I=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,R=/\n/g,z=/^\s*/,q=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,H=/^:\s*/,W=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,B=/^[;\s]*/,K=/^\s+|\s+$/g,G="";function Q(e){return e?e.replace(K,G):G}var X=function(e,t){var n,r=null;if(!e||"string"!=typeof e)return r;for(var o,i,a=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(e){var t=e.match(R);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new a(e),l(),t}}function a(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function s(o){var i=new Error(t.source+":"+n+":"+r+": "+o);if(i.reason=o,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i}function d(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function l(){d(z)}function c(e){var t;for(e=e||[];t=u();)!1!==t&&e.push(t);return e}function u(){var t=i();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;G!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,G===e.charAt(n-1))return s("End of comment missing");var a=e.slice(2,n-2);return r+=2,o(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}}function p(){var e=i(),t=d(q);if(t){if(u(),!d(H))return s("property missing ':'");var n=d(W),r=e({type:"declaration",property:Q(t[0].replace(I,G)),value:n?Q(n[0].replace(I,G)):G});return d(B),r}}return a.prototype.content=e,l(),function(){var e,t=[];for(c(t);e=p();)!1!==e&&(t.push(e),c(t));return t}()}(e),s="function"==typeof t,d=0,l=a.length;d<l;d++)o=(n=a[d]).property,i=n.value,s?t(o,i,n):i&&(r||(r={}),r[o]=i);return r};function Y(t){let n,o,i,h,g,b,y,v,w,x,$,k,E;return{c(){n=l("div"),o=l("div"),i=l("div"),h=l("hb-checkout"),v=c(),w=l("div"),x=l("hb-checkout-shopping-cart"),this.c=e,f(h,"style",t[5]),f(h,"completed",t[4]),f(h,"user",t[1]),f(h,"shipments",g=JSON.stringify(t[0])),f(h,"gateways",b=JSON.stringify(t[3])),f(h,"payment",y=JSON.stringify(t[2])),p(i,"class","col-7"),m(i,"padding-right","30px"),f(x,"style",t[6]),f(x,"completed",t[4]),f(x,"payment",$=JSON.stringify(t[2])),p(w,"class","col-5"),m(w,"padding-left","30px"),p(o,"class","row"),p(n,"class","container")},m(e,r){s(e,n,r),a(n,o),a(o,i),a(i,h),a(o,v),a(o,w),a(w,x),k||(E=[u(h,"paymentCompleted",t[14]),u(h,"saveUser",t[15]),u(h,"saveShipment",t[16])],k=!0)},p(e,[t]){32&t&&f(h,"style",e[5]),16&t&&f(h,"completed",e[4]),2&t&&f(h,"user",e[1]),1&t&&g!==(g=JSON.stringify(e[0]))&&f(h,"shipments",g),8&t&&b!==(b=JSON.stringify(e[3]))&&f(h,"gateways",b),4&t&&y!==(y=JSON.stringify(e[2]))&&f(h,"payment",y),64&t&&f(x,"style",e[6]),16&t&&f(x,"completed",e[4]),4&t&&$!==($=JSON.stringify(e[2]))&&f(x,"payment",$)},i:e,o:e,d(e){e&&d(n),k=!1,r(E)}}}function Z(e,t,n){var r;let o,{style:i}=t,a="",s="",{id:d}=t,{shipments:l}=t,{user:c}=t,{payment:u}=t,{gateways:p}=t,{completed:f}=t;const m={merchantName:"merchant",countryCode:"IT",total:0,currencyCode:"EUR",items:[]},h=y(),g=v();function b(e,t){g(e,t),h.dispatchEvent&&h.dispatchEvent(new CustomEvent(e,{detail:t}))}function w(e){const t=l.findIndex((t=>t.id===e.id)),r=l[t];l.forEach((e=>e.selected=!1)),r.selected=!0,n(2,u.shipmentFee=r.price,u),console.log("sss",r,e)}function x(e){e.completed?(n(4,f="yes"),b("paymentCompleted",e)):console.warn(e)}D.addComponent({repoName:"@htmlbricks/hb-checkout-shopping-cart",version:J}),D.addComponent({repoName:"@htmlbricks/hb-checkout",version:J});return e.$$set=e=>{"style"in e&&n(11,i=e.style),"id"in e&&n(10,d=e.id),"shipments"in e&&n(0,l=e.shipments),"user"in e&&n(1,c=e.user),"payment"in e&&n(2,u=e.payment),"gateways"in e&&n(3,p=e.gateways),"completed"in e&&n(4,f=e.completed)},e.$$.update=()=>{if(15391&e.$$.dirty){d||n(10,d=null),i&&(n(13,o=X(i)),n(5,a=D.getChildStyleToPass(o,null==U?void 0:U.vars)),n(6,s=D.getChildStyleToPass(o,null==F?void 0:F.vars))),f||n(4,f="no"),l?"string"==typeof l&&n(0,l=JSON.parse(l)||[]):n(0,l=[]),p?"string"==typeof p&&n(3,p=JSON.parse(p)||[]):n(3,p=[]),u?"string"==typeof u&&n(2,u=JSON.parse(u)):n(2,u=m),(l.find((e=>e.selected))||l.find((e=>e.standard)))&&n(2,u.shipmentFee=(l.find((e=>e.selected))||l.find((e=>e.standard))).price,u),c||n(1,c=null);let e,t=(null==u?void 0:u.shipmentFee)||0;for(const e of u.items)t+=e.unitaryPrice*(e.quantity||1)+Math.round(.01*e.taxPercentage*e.unitaryPrice*(e.quantity||1)*100)/100;null===n(12,r=null==u?void 0:u.countryCode)||void 0===r||r.toUpperCase(),e="EUR",n(2,u.total=Math.round(100*t)/100,u),n(2,u.currencyCode=e,u)}},[l,c,u,p,f,a,s,b,w,x,d,i,r,o,e=>x(e.detail),e=>b("saveUser",e.detail),e=>w(e.detail)]}class ee extends j{constructor(e){super();const t=document.createElement("style");t.textContent='@charset "UTF-8";@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host{font-family:"Roboto", sans-serif;display:block;margin:40px 0px 40px 0px;--hb-checkout-border:0.5px solid rgba(197, 197, 197, 0.808)}:host{--bs-blue:var(--bs-primary,#07689f);--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:var(--bs-danger,#f67280);--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:var(--bs-warning,#ffc107);--bs-teal:#20c997;--bs-cyan:var(--bs-info,#a2d5f2);--bs-white:#fff;--bs-gray:var(--bs-secondary,#c9d6df);--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:var(--bs-secondary,#c9d6df);--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:var(--bs-primary,#07689f);--bs-secondary:var(--bs-secondary,#c9d6df);--bs-success:var(--bs-warning,#ffc107);--bs-info:var(--bs-info,#a2d5f2);--bs-warning:#ffc107;--bs-danger:var(--bs-danger,#f67280);--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13, 110, 253;--bs-secondary-rgb:108, 117, 125;--bs-success-rgb:25, 135, 84;--bs-info-rgb:13, 202, 240;--bs-warning-rgb:255, 193, 7;--bs-danger-rgb:220, 53, 69;--bs-light-rgb:248, 249, 250;--bs-dark-rgb:33, 37, 41;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:33, 37, 41;--bs-body-bg-rgb:255, 255, 255;--bs-font-sans-serif:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff}*,*::before,*::after{box-sizing:border-box}@media(prefers-reduced-motion: no-preference){:host{scroll-behavior:smooth}}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}::-moz-focus-inner{padding:0;border-style:none}@media(min-width: 1200px){}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}.container{width:100%;padding-right:var(--bs-gutter-x, 0.75rem);padding-left:var(--bs-gutter-x, 0.75rem);margin-right:auto;margin-left:auto}@media(min-width: 576px){.container{max-width:540px}}@media(min-width: 768px){.container{max-width:720px}}@media(min-width: 992px){.container{max-width:960px}}@media(min-width: 1200px){.container{max-width:1140px}}@media(min-width: 1400px){.container{max-width:1320px}}.row{--bs-gutter-x:1.5rem;--bs-gutter-y:0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-0.5 * var(--bs-gutter-x));margin-left:calc(-0.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * 0.5);padding-left:calc(var(--bs-gutter-x) * 0.5);margin-top:var(--bs-gutter-y)}.col-5{flex:0 0 auto;width:41.66666667%}.col-7{flex:0 0 auto;width:58.33333333%}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}@media(prefers-reduced-motion: reduce){}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}@media(min-width: 1200px){}@media print{}hb-checkout-shopping-cart{border:var(--hb-checkout-border);--hb-checkout-border:0.5px solid rgba(197, 197, 197, 0.808)}',this.shadowRoot.appendChild(t),P(this,{target:this.shadowRoot,props:h(this.attributes),customElement:!0},Z,Y,i,{style:11,id:10,shipments:0,user:1,payment:2,gateways:3,completed:4},null),e&&(e.target&&s(e.target,this,e.anchor),e.props&&(this.$set(e.props),S()))}static get observedAttributes(){return["style","id","shipments","user","payment","gateways","completed"]}get style(){return this.$$.ctx[11]}set style(e){this.$$set({style:e}),S()}get id(){return this.$$.ctx[10]}set id(e){this.$$set({id:e}),S()}get shipments(){return this.$$.ctx[0]}set shipments(e){this.$$set({shipments:e}),S()}get user(){return this.$$.ctx[1]}set user(e){this.$$set({user:e}),S()}get payment(){return this.$$.ctx[2]}set payment(e){this.$$set({payment:e}),S()}get gateways(){return this.$$.ctx[3]}set gateways(e){this.$$set({gateways:e}),S()}get completed(){return this.$$.ctx[4]}set completed(e){this.$$set({completed:e}),S()}}return customElements.define("hb-page-checkout",ee),ee}();
2
2
  //# sourceMappingURL=release.js.map