@htmlbricks/hb-checkout 0.61.17 → 0.61.18
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/main.iife.js +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
height: 0;
|
|
22
22
|
overflow: hidden;
|
|
23
23
|
}
|
|
24
|
-
`,i instanceof Document&&i.head?i.head.appendChild(s):i.appendChild(s)}}isClientInvalidated(t){return this.oldInvalidationValues?this.getInvalidationValues(t).some((r,i)=>JSON.stringify(r)!==JSON.stringify(this.oldInvalidationValues[i])):!0}getInvalidationValues(t){var n,r;return[t.environment,t.existingPaymentMethodRequired,!!t.onPaymentDataChanged,!!t.onPaymentAuthorized,t.buttonType,t.buttonColor,t.buttonRadius,t.buttonLocale,t.buttonSizeMode,t.buttonBorderType,t.paymentRequest.merchantInfo.merchantId,t.paymentRequest.merchantInfo.merchantName,(n=t.paymentRequest.merchantInfo.softwareInfo)===null||n===void 0?void 0:n.id,(r=t.paymentRequest.merchantInfo.softwareInfo)===null||r===void 0?void 0:r.version,t.paymentRequest.allowedPaymentMethods]}}var ms="@google-pay/button-element",_s="3.2.1";function ys(e,t=0){let n;return function(...r){window.clearTimeout(n);const i=function(){return n=void 0,e(...r)};return new Promise(a=>{n=window.setTimeout(()=>{const s=i();a(s)},t)})}}class ie extends HTMLElement{constructor(){super(...arguments),this.manager=new ps({cssSelector:"google-pay-button",softwareInfoId:ms,softwareInfoVersion:_s}),this.initializeButton=ys(()=>{if(!this.assertRequiredProperty("paymentRequest")||!this.assertRequiredProperty("environment"))return;const t={paymentRequest:this.paymentRequest,environment:this.environment,existingPaymentMethodRequired:this.existingPaymentMethodRequired,onPaymentDataChanged:this.onPaymentDataChanged,onPaymentAuthorized:this.onPaymentAuthorized,buttonColor:this.buttonColor,buttonType:this.buttonType,buttonRadius:this.buttonRadius,buttonSizeMode:this.buttonSizeMode,buttonLocale:this.buttonLocale,buttonBorderType:this.buttonBorderType,onReadyToPayChange:n=>{this.onReadyToPayChange&&this.onReadyToPayChange(n),this.dispatch("readytopaychange",n)},onCancel:n=>{this.onCancel&&this.onCancel(n),this.dispatch("cancel",n)},onError:n=>{var r;this.onError&&((r=this.onError)===null||r===void 0||r.call(this,n)),this.dispatchEvent(new ErrorEvent("error",{error:n}))},onLoadPaymentData:n=>{this.onLoadPaymentData&&this.onLoadPaymentData(n),this.dispatch("loadpaymentdata",n)},onClick:n=>{var r;this.onClick&&((r=this.onClick)===null||r===void 0||r.call(this,n))}};this.manager.configure(t)})}get isReadyToPay(){return this.manager.isReadyToPay}assertRequiredProperty(t){const n=this[t];return n==null?(this.throwError(Error(`Required property not set: ${t}`)),!1):!0}throwError(t){throw t}static get observedAttributes(){return ie._observedAttributes}addObservedAttribute(t){ie._observedAttributes.push(t)}dispatch(t,n){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:!1,detail:n}))}connectedCallback(){return Yt(this,void 0,void 0,function*(){return yield this.manager.mount(this),this.initializeButton()})}disconnectedCallback(){this.manager.unmount()}attributeChangedCallback(t){return this.initializeButton()}notifyPropertyChanged(t){return this.initializeButton()}}ie._observedAttributes=[],fe([kn(),U("paymentrequest")],ie.prototype,"paymentRequest",void 0),fe([lt()],ie.prototype,"environment",void 0),fe([vs(),U("existingpaymentmethodrequired")],ie.prototype,"existingPaymentMethodRequired",void 0),fe([lt(),U("buttoncolor")],ie.prototype,"buttonColor",void 0),fe([lt(),U("buttontype")],ie.prototype,"buttonType",void 0),fe([lt(),U("buttonradius")],ie.prototype,"buttonRadius",void 0),fe([lt(),U("buttonsizemode")],ie.prototype,"buttonSizeMode",void 0),fe([lt(),U("buttonlocale")],ie.prototype,"buttonLocale",void 0),fe([lt(),U("buttonbordertype")],ie.prototype,"buttonBorderType",void 0),fe([kn(),U("paymentDataChangedCallback"),U("paymentdatachangedcallback"),U("onpaymentdatachanged")],ie.prototype,"onPaymentDataChanged",void 0),fe([kn(),U("paymentAuthorizedCallback"),U("paymentauthorizedcallback"),U("onpaymentauthorized")],ie.prototype,"onPaymentAuthorized",void 0),fe([U("readyToPayChangeCallback"),U("readytopaychangecallback"),U("onreadytopaychange")],ie.prototype,"onReadyToPayChange",void 0),fe([U("loadPaymentDataCallback"),U("loadpaymentdatacallback"),U("onloadpaymentdata")],ie.prototype,"onLoadPaymentData",void 0),fe([U("cancelCallback"),U("cancelcallback"),U("oncancel")],ie.prototype,"onCancel",void 0),fe([U("errorCallback"),U("errorcallback"),U("onerror")],ie.prototype,"onError",void 0),fe([U("clickCallback"),U("clickcallback"),U("onclick")],ie.prototype,"onClick",void 0),customElements.define("google-pay-button",ie);const Nr={version:"0.61.17"},de=[{type:"text",placeholder:"Insert your Full Name here...",id:"fullName",required:!0,label:"Full Name",validationTip:"This field cannot be empty."},{type:"text",placeholder:"Insert your Street/Square address with number...",id:"addressWithNumber",required:!0,label:"Street/Square/...",validationTip:"This field cannot be empty."},{id:"name-row2",type:"row",params:{columns:[{type:"text",placeholder:"Insert your nationality here...",id:"nationality",required:!0,label:"Nationality",validationTip:"This field cannot be empty."},{type:"text",placeholder:"Insert your city name here...",id:"city",required:!0,label:"City",validationTip:"This field cannot be empty."},{type:"number",placeholder:"Insert your zip code here...",id:"zip",required:!0,label:"Zip",validationTip:"This field cannot be empty."}]}}];function Ar(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ht={exports:{}},gs=Ht.exports,Ir;function ws(){return Ir||(Ir=1,(function(e,t){(function(n,r){e.exports=r()})(gs,(function(){var n=1e3,r=6e4,i=36e5,a="millisecond",s="second",o="minute",c="hour",u="day",f="week",h="month",b="quarter",d="year",p="date",w="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,V=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(v){var _=["th","st","nd","rd"],y=v%100;return"["+v+(_[(y-20)%10]||_[y]||_[0])+"]"}},M=function(v,_,y){var $=String(v);return!$||$.length>=_?v:""+Array(_+1-$.length).join(y)+v},G={s:M,z:function(v){var _=-v.utcOffset(),y=Math.abs(_),$=Math.floor(y/60),l=y%60;return(_<=0?"+":"-")+M($,2,"0")+":"+M(l,2,"0")},m:function v(_,y){if(_.date()<y.date())return-v(y,_);var $=12*(y.year()-_.year())+(y.month()-_.month()),l=_.clone().add($,h),m=y-l<0,g=_.clone().add($+(m?-1:1),h);return+(-($+(y-l)/(m?l-g:g-l))||0)},a:function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},p:function(v){return{M:h,y:d,w:f,d:u,D:p,h:c,m:o,s,ms:a,Q:b}[v]||String(v||"").toLowerCase().replace(/s$/,"")},u:function(v){return v===void 0}},q="en",te={};te[q]=x;var ne="$isDayjsObject",le=function(v){return v instanceof pe||!(!v||!v[ne])},se=function v(_,y,$){var l;if(!_)return q;if(typeof _=="string"){var m=_.toLowerCase();te[m]&&(l=m),y&&(te[m]=y,l=m);var g=_.split("-");if(!l&&g.length>1)return v(g[0])}else{var E=_.name;te[E]=_,l=E}return!$&&l&&(q=l),l||!$&&q},Y=function(v,_){if(le(v))return v.clone();var y=typeof _=="object"?_:{};return y.date=v,y.args=arguments,new pe(y)},P=G;P.l=se,P.i=le,P.w=function(v,_){return Y(v,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var pe=(function(){function v(y){this.$L=se(y.locale,null,!0),this.parse(y),this.$x=this.$x||y.x||{},this[ne]=!0}var _=v.prototype;return _.parse=function(y){this.$d=(function($){var l=$.date,m=$.utc;if(l===null)return new Date(NaN);if(P.u(l))return new Date;if(l instanceof Date)return new Date(l);if(typeof l=="string"&&!/Z$/i.test(l)){var g=l.match(S);if(g){var E=g[2]-1||0,C=(g[7]||"0").substring(0,3);return m?new Date(Date.UTC(g[1],E,g[3]||1,g[4]||0,g[5]||0,g[6]||0,C)):new Date(g[1],E,g[3]||1,g[4]||0,g[5]||0,g[6]||0,C)}}return new Date(l)})(y),this.init()},_.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},_.$utils=function(){return P},_.isValid=function(){return this.$d.toString()!==w},_.isSame=function(y,$){var l=Y(y);return this.startOf($)<=l&&l<=this.endOf($)},_.isAfter=function(y,$){return Y(y)<this.startOf($)},_.isBefore=function(y,$){return this.endOf($)<Y(y)},_.$g=function(y,$,l){return P.u(y)?this[$]:this.set(l,y)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(y,$){var l=this,m=!!P.u($)||$,g=P.p(y),E=function(W,J){var X=P.w(l.$u?Date.UTC(l.$y,J,W):new Date(l.$y,J,W),l);return m?X:X.endOf(u)},C=function(W,J){return P.w(l.toDate()[W].apply(l.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(J)),l)},k=this.$W,T=this.$M,R=this.$D,H="set"+(this.$u?"UTC":"");switch(g){case d:return m?E(1,0):E(31,11);case h:return m?E(1,T):E(0,T+1);case f:var F=this.$locale().weekStart||0,z=(k<F?k+7:k)-F;return E(m?R-z:R+(6-z),T);case u:case p:return C(H+"Hours",0);case c:return C(H+"Minutes",1);case o:return C(H+"Seconds",2);case s:return C(H+"Milliseconds",3);default:return this.clone()}},_.endOf=function(y){return this.startOf(y,!1)},_.$set=function(y,$){var l,m=P.p(y),g="set"+(this.$u?"UTC":""),E=(l={},l[u]=g+"Date",l[p]=g+"Date",l[h]=g+"Month",l[d]=g+"FullYear",l[c]=g+"Hours",l[o]=g+"Minutes",l[s]=g+"Seconds",l[a]=g+"Milliseconds",l)[m],C=m===u?this.$D+($-this.$W):$;if(m===h||m===d){var k=this.clone().set(p,1);k.$d[E](C),k.init(),this.$d=k.set(p,Math.min(this.$D,k.daysInMonth())).$d}else E&&this.$d[E](C);return this.init(),this},_.set=function(y,$){return this.clone().$set(y,$)},_.get=function(y){return this[P.p(y)]()},_.add=function(y,$){var l,m=this;y=Number(y);var g=P.p($),E=function(T){var R=Y(m);return P.w(R.date(R.date()+Math.round(T*y)),m)};if(g===h)return this.set(h,this.$M+y);if(g===d)return this.set(d,this.$y+y);if(g===u)return E(1);if(g===f)return E(7);var C=(l={},l[o]=r,l[c]=i,l[s]=n,l)[g]||1,k=this.$d.getTime()+y*C;return P.w(k,this)},_.subtract=function(y,$){return this.add(-1*y,$)},_.format=function(y){var $=this,l=this.$locale();if(!this.isValid())return l.invalidDate||w;var m=y||"YYYY-MM-DDTHH:mm:ssZ",g=P.z(this),E=this.$H,C=this.$m,k=this.$M,T=l.weekdays,R=l.months,H=l.meridiem,F=function(J,X,Q,ee){return J&&(J[X]||J($,m))||Q[X].slice(0,ee)},z=function(J){return P.s(E%12||12,J,"0")},W=H||function(J,X,Q){var ee=J<12?"AM":"PM";return Q?ee.toLowerCase():ee};return m.replace(V,(function(J,X){return X||(function(Q){switch(Q){case"YY":return String($.$y).slice(-2);case"YYYY":return P.s($.$y,4,"0");case"M":return k+1;case"MM":return P.s(k+1,2,"0");case"MMM":return F(l.monthsShort,k,R,3);case"MMMM":return F(R,k);case"D":return $.$D;case"DD":return P.s($.$D,2,"0");case"d":return String($.$W);case"dd":return F(l.weekdaysMin,$.$W,T,2);case"ddd":return F(l.weekdaysShort,$.$W,T,3);case"dddd":return T[$.$W];case"H":return String(E);case"HH":return P.s(E,2,"0");case"h":return z(1);case"hh":return z(2);case"a":return W(E,C,!0);case"A":return W(E,C,!1);case"m":return String(C);case"mm":return P.s(C,2,"0");case"s":return String($.$s);case"ss":return P.s($.$s,2,"0");case"SSS":return P.s($.$ms,3,"0");case"Z":return g}return null})(J)||g.replace(":","")}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(y,$,l){var m,g=this,E=P.p($),C=Y(y),k=(C.utcOffset()-this.utcOffset())*r,T=this-C,R=function(){return P.m(g,C)};switch(E){case d:m=R()/12;break;case h:m=R();break;case b:m=R()/3;break;case f:m=(T-k)/6048e5;break;case u:m=(T-k)/864e5;break;case c:m=T/i;break;case o:m=T/r;break;case s:m=T/n;break;default:m=T}return l?m:P.a(m)},_.daysInMonth=function(){return this.endOf(h).$D},_.$locale=function(){return te[this.$L]},_.locale=function(y,$){if(!y)return this.$L;var l=this.clone(),m=se(y,$,!0);return m&&(l.$L=m),l},_.clone=function(){return P.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},v})(),D=pe.prototype;return Y.prototype=D,[["$ms",a],["$s",s],["$m",o],["$H",c],["$W",u],["$M",h],["$y",d],["$D",p]].forEach((function(v){D[v[1]]=function(_){return this.$g(_,v[0],v[1])}})),Y.extend=function(v,_){return v.$i||(v(_,pe,Y),v.$i=!0),Y},Y.locale=se,Y.isDayjs=le,Y.unix=function(v){return Y(1e3*v)},Y.en=te[q],Y.Ls=te,Y.p={},Y}))})(Ht)),Ht.exports}var $s=ws();const Es=Ar($s);function Or(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const n=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const r=document.createElement("script");if(r.id=t+"-script",r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];r.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${n}`}document.head.appendChild(r)}catch(r){console.warn(r)}}var $t={},Tn,Dr;function xs(){if(Dr)return Tn;Dr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,c=`
|
|
24
|
+
`,i instanceof Document&&i.head?i.head.appendChild(s):i.appendChild(s)}}isClientInvalidated(t){return this.oldInvalidationValues?this.getInvalidationValues(t).some((r,i)=>JSON.stringify(r)!==JSON.stringify(this.oldInvalidationValues[i])):!0}getInvalidationValues(t){var n,r;return[t.environment,t.existingPaymentMethodRequired,!!t.onPaymentDataChanged,!!t.onPaymentAuthorized,t.buttonType,t.buttonColor,t.buttonRadius,t.buttonLocale,t.buttonSizeMode,t.buttonBorderType,t.paymentRequest.merchantInfo.merchantId,t.paymentRequest.merchantInfo.merchantName,(n=t.paymentRequest.merchantInfo.softwareInfo)===null||n===void 0?void 0:n.id,(r=t.paymentRequest.merchantInfo.softwareInfo)===null||r===void 0?void 0:r.version,t.paymentRequest.allowedPaymentMethods]}}var ms="@google-pay/button-element",_s="3.2.1";function ys(e,t=0){let n;return function(...r){window.clearTimeout(n);const i=function(){return n=void 0,e(...r)};return new Promise(a=>{n=window.setTimeout(()=>{const s=i();a(s)},t)})}}class ie extends HTMLElement{constructor(){super(...arguments),this.manager=new ps({cssSelector:"google-pay-button",softwareInfoId:ms,softwareInfoVersion:_s}),this.initializeButton=ys(()=>{if(!this.assertRequiredProperty("paymentRequest")||!this.assertRequiredProperty("environment"))return;const t={paymentRequest:this.paymentRequest,environment:this.environment,existingPaymentMethodRequired:this.existingPaymentMethodRequired,onPaymentDataChanged:this.onPaymentDataChanged,onPaymentAuthorized:this.onPaymentAuthorized,buttonColor:this.buttonColor,buttonType:this.buttonType,buttonRadius:this.buttonRadius,buttonSizeMode:this.buttonSizeMode,buttonLocale:this.buttonLocale,buttonBorderType:this.buttonBorderType,onReadyToPayChange:n=>{this.onReadyToPayChange&&this.onReadyToPayChange(n),this.dispatch("readytopaychange",n)},onCancel:n=>{this.onCancel&&this.onCancel(n),this.dispatch("cancel",n)},onError:n=>{var r;this.onError&&((r=this.onError)===null||r===void 0||r.call(this,n)),this.dispatchEvent(new ErrorEvent("error",{error:n}))},onLoadPaymentData:n=>{this.onLoadPaymentData&&this.onLoadPaymentData(n),this.dispatch("loadpaymentdata",n)},onClick:n=>{var r;this.onClick&&((r=this.onClick)===null||r===void 0||r.call(this,n))}};this.manager.configure(t)})}get isReadyToPay(){return this.manager.isReadyToPay}assertRequiredProperty(t){const n=this[t];return n==null?(this.throwError(Error(`Required property not set: ${t}`)),!1):!0}throwError(t){throw t}static get observedAttributes(){return ie._observedAttributes}addObservedAttribute(t){ie._observedAttributes.push(t)}dispatch(t,n){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,cancelable:!1,detail:n}))}connectedCallback(){return Yt(this,void 0,void 0,function*(){return yield this.manager.mount(this),this.initializeButton()})}disconnectedCallback(){this.manager.unmount()}attributeChangedCallback(t){return this.initializeButton()}notifyPropertyChanged(t){return this.initializeButton()}}ie._observedAttributes=[],fe([kn(),U("paymentrequest")],ie.prototype,"paymentRequest",void 0),fe([lt()],ie.prototype,"environment",void 0),fe([vs(),U("existingpaymentmethodrequired")],ie.prototype,"existingPaymentMethodRequired",void 0),fe([lt(),U("buttoncolor")],ie.prototype,"buttonColor",void 0),fe([lt(),U("buttontype")],ie.prototype,"buttonType",void 0),fe([lt(),U("buttonradius")],ie.prototype,"buttonRadius",void 0),fe([lt(),U("buttonsizemode")],ie.prototype,"buttonSizeMode",void 0),fe([lt(),U("buttonlocale")],ie.prototype,"buttonLocale",void 0),fe([lt(),U("buttonbordertype")],ie.prototype,"buttonBorderType",void 0),fe([kn(),U("paymentDataChangedCallback"),U("paymentdatachangedcallback"),U("onpaymentdatachanged")],ie.prototype,"onPaymentDataChanged",void 0),fe([kn(),U("paymentAuthorizedCallback"),U("paymentauthorizedcallback"),U("onpaymentauthorized")],ie.prototype,"onPaymentAuthorized",void 0),fe([U("readyToPayChangeCallback"),U("readytopaychangecallback"),U("onreadytopaychange")],ie.prototype,"onReadyToPayChange",void 0),fe([U("loadPaymentDataCallback"),U("loadpaymentdatacallback"),U("onloadpaymentdata")],ie.prototype,"onLoadPaymentData",void 0),fe([U("cancelCallback"),U("cancelcallback"),U("oncancel")],ie.prototype,"onCancel",void 0),fe([U("errorCallback"),U("errorcallback"),U("onerror")],ie.prototype,"onError",void 0),fe([U("clickCallback"),U("clickcallback"),U("onclick")],ie.prototype,"onClick",void 0),customElements.define("google-pay-button",ie);const Nr={version:"0.61.18"},de=[{type:"text",placeholder:"Insert your Full Name here...",id:"fullName",required:!0,label:"Full Name",validationTip:"This field cannot be empty."},{type:"text",placeholder:"Insert your Street/Square address with number...",id:"addressWithNumber",required:!0,label:"Street/Square/...",validationTip:"This field cannot be empty."},{id:"name-row2",type:"row",params:{columns:[{type:"text",placeholder:"Insert your nationality here...",id:"nationality",required:!0,label:"Nationality",validationTip:"This field cannot be empty."},{type:"text",placeholder:"Insert your city name here...",id:"city",required:!0,label:"City",validationTip:"This field cannot be empty."},{type:"number",placeholder:"Insert your zip code here...",id:"zip",required:!0,label:"Zip",validationTip:"This field cannot be empty."}]}}];function Ar(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ht={exports:{}},gs=Ht.exports,Ir;function ws(){return Ir||(Ir=1,(function(e,t){(function(n,r){e.exports=r()})(gs,(function(){var n=1e3,r=6e4,i=36e5,a="millisecond",s="second",o="minute",c="hour",u="day",f="week",h="month",b="quarter",d="year",p="date",w="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,V=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(v){var _=["th","st","nd","rd"],y=v%100;return"["+v+(_[(y-20)%10]||_[y]||_[0])+"]"}},M=function(v,_,y){var $=String(v);return!$||$.length>=_?v:""+Array(_+1-$.length).join(y)+v},G={s:M,z:function(v){var _=-v.utcOffset(),y=Math.abs(_),$=Math.floor(y/60),l=y%60;return(_<=0?"+":"-")+M($,2,"0")+":"+M(l,2,"0")},m:function v(_,y){if(_.date()<y.date())return-v(y,_);var $=12*(y.year()-_.year())+(y.month()-_.month()),l=_.clone().add($,h),m=y-l<0,g=_.clone().add($+(m?-1:1),h);return+(-($+(y-l)/(m?l-g:g-l))||0)},a:function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},p:function(v){return{M:h,y:d,w:f,d:u,D:p,h:c,m:o,s,ms:a,Q:b}[v]||String(v||"").toLowerCase().replace(/s$/,"")},u:function(v){return v===void 0}},q="en",te={};te[q]=x;var ne="$isDayjsObject",le=function(v){return v instanceof pe||!(!v||!v[ne])},se=function v(_,y,$){var l;if(!_)return q;if(typeof _=="string"){var m=_.toLowerCase();te[m]&&(l=m),y&&(te[m]=y,l=m);var g=_.split("-");if(!l&&g.length>1)return v(g[0])}else{var E=_.name;te[E]=_,l=E}return!$&&l&&(q=l),l||!$&&q},Y=function(v,_){if(le(v))return v.clone();var y=typeof _=="object"?_:{};return y.date=v,y.args=arguments,new pe(y)},P=G;P.l=se,P.i=le,P.w=function(v,_){return Y(v,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var pe=(function(){function v(y){this.$L=se(y.locale,null,!0),this.parse(y),this.$x=this.$x||y.x||{},this[ne]=!0}var _=v.prototype;return _.parse=function(y){this.$d=(function($){var l=$.date,m=$.utc;if(l===null)return new Date(NaN);if(P.u(l))return new Date;if(l instanceof Date)return new Date(l);if(typeof l=="string"&&!/Z$/i.test(l)){var g=l.match(S);if(g){var E=g[2]-1||0,C=(g[7]||"0").substring(0,3);return m?new Date(Date.UTC(g[1],E,g[3]||1,g[4]||0,g[5]||0,g[6]||0,C)):new Date(g[1],E,g[3]||1,g[4]||0,g[5]||0,g[6]||0,C)}}return new Date(l)})(y),this.init()},_.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},_.$utils=function(){return P},_.isValid=function(){return this.$d.toString()!==w},_.isSame=function(y,$){var l=Y(y);return this.startOf($)<=l&&l<=this.endOf($)},_.isAfter=function(y,$){return Y(y)<this.startOf($)},_.isBefore=function(y,$){return this.endOf($)<Y(y)},_.$g=function(y,$,l){return P.u(y)?this[$]:this.set(l,y)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(y,$){var l=this,m=!!P.u($)||$,g=P.p(y),E=function(W,J){var X=P.w(l.$u?Date.UTC(l.$y,J,W):new Date(l.$y,J,W),l);return m?X:X.endOf(u)},C=function(W,J){return P.w(l.toDate()[W].apply(l.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(J)),l)},k=this.$W,T=this.$M,R=this.$D,H="set"+(this.$u?"UTC":"");switch(g){case d:return m?E(1,0):E(31,11);case h:return m?E(1,T):E(0,T+1);case f:var F=this.$locale().weekStart||0,z=(k<F?k+7:k)-F;return E(m?R-z:R+(6-z),T);case u:case p:return C(H+"Hours",0);case c:return C(H+"Minutes",1);case o:return C(H+"Seconds",2);case s:return C(H+"Milliseconds",3);default:return this.clone()}},_.endOf=function(y){return this.startOf(y,!1)},_.$set=function(y,$){var l,m=P.p(y),g="set"+(this.$u?"UTC":""),E=(l={},l[u]=g+"Date",l[p]=g+"Date",l[h]=g+"Month",l[d]=g+"FullYear",l[c]=g+"Hours",l[o]=g+"Minutes",l[s]=g+"Seconds",l[a]=g+"Milliseconds",l)[m],C=m===u?this.$D+($-this.$W):$;if(m===h||m===d){var k=this.clone().set(p,1);k.$d[E](C),k.init(),this.$d=k.set(p,Math.min(this.$D,k.daysInMonth())).$d}else E&&this.$d[E](C);return this.init(),this},_.set=function(y,$){return this.clone().$set(y,$)},_.get=function(y){return this[P.p(y)]()},_.add=function(y,$){var l,m=this;y=Number(y);var g=P.p($),E=function(T){var R=Y(m);return P.w(R.date(R.date()+Math.round(T*y)),m)};if(g===h)return this.set(h,this.$M+y);if(g===d)return this.set(d,this.$y+y);if(g===u)return E(1);if(g===f)return E(7);var C=(l={},l[o]=r,l[c]=i,l[s]=n,l)[g]||1,k=this.$d.getTime()+y*C;return P.w(k,this)},_.subtract=function(y,$){return this.add(-1*y,$)},_.format=function(y){var $=this,l=this.$locale();if(!this.isValid())return l.invalidDate||w;var m=y||"YYYY-MM-DDTHH:mm:ssZ",g=P.z(this),E=this.$H,C=this.$m,k=this.$M,T=l.weekdays,R=l.months,H=l.meridiem,F=function(J,X,Q,ee){return J&&(J[X]||J($,m))||Q[X].slice(0,ee)},z=function(J){return P.s(E%12||12,J,"0")},W=H||function(J,X,Q){var ee=J<12?"AM":"PM";return Q?ee.toLowerCase():ee};return m.replace(V,(function(J,X){return X||(function(Q){switch(Q){case"YY":return String($.$y).slice(-2);case"YYYY":return P.s($.$y,4,"0");case"M":return k+1;case"MM":return P.s(k+1,2,"0");case"MMM":return F(l.monthsShort,k,R,3);case"MMMM":return F(R,k);case"D":return $.$D;case"DD":return P.s($.$D,2,"0");case"d":return String($.$W);case"dd":return F(l.weekdaysMin,$.$W,T,2);case"ddd":return F(l.weekdaysShort,$.$W,T,3);case"dddd":return T[$.$W];case"H":return String(E);case"HH":return P.s(E,2,"0");case"h":return z(1);case"hh":return z(2);case"a":return W(E,C,!0);case"A":return W(E,C,!1);case"m":return String(C);case"mm":return P.s(C,2,"0");case"s":return String($.$s);case"ss":return P.s($.$s,2,"0");case"SSS":return P.s($.$ms,3,"0");case"Z":return g}return null})(J)||g.replace(":","")}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(y,$,l){var m,g=this,E=P.p($),C=Y(y),k=(C.utcOffset()-this.utcOffset())*r,T=this-C,R=function(){return P.m(g,C)};switch(E){case d:m=R()/12;break;case h:m=R();break;case b:m=R()/3;break;case f:m=(T-k)/6048e5;break;case u:m=(T-k)/864e5;break;case c:m=T/i;break;case o:m=T/r;break;case s:m=T/n;break;default:m=T}return l?m:P.a(m)},_.daysInMonth=function(){return this.endOf(h).$D},_.$locale=function(){return te[this.$L]},_.locale=function(y,$){if(!y)return this.$L;var l=this.clone(),m=se(y,$,!0);return m&&(l.$L=m),l},_.clone=function(){return P.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},v})(),D=pe.prototype;return Y.prototype=D,[["$ms",a],["$s",s],["$m",o],["$H",c],["$W",u],["$M",h],["$y",d],["$D",p]].forEach((function(v){D[v[1]]=function(_){return this.$g(_,v[0],v[1])}})),Y.extend=function(v,_){return v.$i||(v(_,pe,Y),v.$i=!0),Y},Y.locale=se,Y.isDayjs=le,Y.unix=function(v){return Y(1e3*v)},Y.en=te[q],Y.Ls=te,Y.p={},Y}))})(Ht)),Ht.exports}var $s=ws();const Es=Ar($s);function Or(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const n=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const r=document.createElement("script");if(r.id=t+"-script",r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];r.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${n}`}document.head.appendChild(r)}catch(r){console.warn(r)}}var $t={},Tn,Dr;function xs(){if(Dr)return Tn;Dr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,c=`
|
|
25
25
|
`,u="/",f="*",h="",b="comment",d="declaration";Tn=function(w,S){if(typeof w!="string")throw new TypeError("First argument must be a string");if(!w)return[];S=S||{};var V=1,x=1;function M(D){var v=D.match(t);v&&(V+=v.length);var _=D.lastIndexOf(c);x=~_?D.length-_:x+D.length}function G(){var D={line:V,column:x};return function(v){return v.position=new q(D),le(),v}}function q(D){this.start=D,this.end={line:V,column:x},this.source=S.source}q.prototype.content=w;function te(D){var v=new Error(S.source+":"+V+":"+x+": "+D);if(v.reason=D,v.filename=S.source,v.line=V,v.column=x,v.source=w,!S.silent)throw v}function ne(D){var v=D.exec(w);if(v){var _=v[0];return M(_),w=w.slice(_.length),v}}function le(){ne(n)}function se(D){var v;for(D=D||[];v=Y();)v!==!1&&D.push(v);return D}function Y(){var D=G();if(!(u!=w.charAt(0)||f!=w.charAt(1))){for(var v=2;h!=w.charAt(v)&&(f!=w.charAt(v)||u!=w.charAt(v+1));)++v;if(v+=2,h===w.charAt(v-1))return te("End of comment missing");var _=w.slice(2,v-2);return x+=2,M(_),w=w.slice(v),x+=2,D({type:b,comment:_})}}function P(){var D=G(),v=ne(r);if(v){if(Y(),!ne(i))return te("property missing ':'");var _=ne(a),y=D({type:d,property:p(v[0].replace(e,h)),value:_?p(_[0].replace(e,h)):h});return ne(s),y}}function pe(){var D=[];se(D);for(var v;v=P();)v!==!1&&(D.push(v),se(D));return D}return le(),pe()};function p(w){return w?w.replace(o,h):h}return Tn}var Lr;function Ss(){if(Lr)return $t;Lr=1;var e=$t&&$t.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty($t,"__esModule",{value:!0}),$t.default=n;var t=e(xs());function n(r,i){var a=null;if(!r||typeof r!="string")return a;var s=(0,t.default)(r),o=typeof i=="function";return s.forEach(function(c){if(c.type==="declaration"){var u=c.property,f=c.value;o?i(u,f,c):f&&(a=a||{},a[u]=f)}}),a}return $t}var ks=Ss();const qr=Ar(ks);qr.default;function Cs(e,t,n){re(t,!0),re(n,!1)}function jr(e,t,n){re(t,!1),re(n,!0)}var Ts=oe('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-94r8nt"/>'),Ms=oe('<h1 class="title svelte-94r8nt" part="title">Checkout</h1>'),Ps=oe('<div class="dataentry svelte-94r8nt"><span class="dataentry_value svelte-94r8nt"> </span></div>'),Rs=oe('<div class="dataentrycontainer svelte-94r8nt"><!></div>'),Ns=oe('<h4 class="subtitle svelte-94r8nt" part="subtitle"><button class="btn btn-sm detail_btn svelte-94r8nt">edit</button></h4> <div class="dataentrycontainer svelte-94r8nt"><div class="dataentry svelte-94r8nt"><span class="dataentry_key svelte-94r8nt">Name</span><span class="dataentry_value svelte-94r8nt"> </span></div> <div class="dataentry svelte-94r8nt"><span class="dataentry_key svelte-94r8nt">Address</span><span class="dataentry_value svelte-94r8nt"> </span></div></div>',1),As=(e,t)=>{re(t,"yes"),setTimeout(()=>{re(t,"no")},200)},Is=oe('<h4 class="subtitle svelte-94r8nt" part="subtitle">Address</h4> <div class="svelte-94r8nt"><hb-form></hb-form> <div class="svelte-94r8nt"><button style="width:100%;margin-bottom:10px" class="btn btn-primary svelte-94r8nt">continue</button></div></div>',3),Os=oe('<h4 style="margin-top:20px" class="subtitle svelte-94r8nt" part="subtitle"><span class="detail_label svelte-94r8nt"><i class="bi bi-truck svelte-94r8nt"></i> Shipment Service</span><button class="btn btn-sm detail_btn svelte-94r8nt">edit</button></h4> <div class="dataentrycontainer svelte-94r8nt"><div class="dataentry svelte-94r8nt"><span class="dataentry_key svelte-94r8nt">Shipping Fee</span><span class="dataentry_value svelte-94r8nt"> </span></div> <div class="dataentry svelte-94r8nt"><span class="dataentry_key svelte-94r8nt">Arrive</span><span class="dataentry_value svelte-94r8nt"> </span></div></div>',1),Ds=(e,t)=>{re(t,"yes"),setTimeout(()=>{re(t,"no")},200)},Ls=oe('<h4 class="subtitle svelte-94r8nt" part="subtitle" style="margin-top:20px"><i class="bi bi-truck svelte-94r8nt"></i> Shipment Service</h4> <div class="svelte-94r8nt"><hb-form></hb-form> <div class="svelte-94r8nt"><button style="width:100%" class="btn btn-primary svelte-94r8nt">continue</button></div></div>',3),qs=oe('<h4 style="margin-top:20px" class="subtitle svelte-94r8nt" part="subtitle"><span class="detail_label svelte-94r8nt"><i class="bi bi-truck svelte-94r8nt"></i> Shipment Service</span><button class="btn btn-sm detail_btn svelte-94r8nt">edit</button></h4> <div class="dataentrycontainer svelte-94r8nt"><div class="dataentry svelte-94r8nt"><span class="dataentry_key svelte-94r8nt">Shipping Fee</span><span class="dataentry_value svelte-94r8nt"> </span></div> <div class="dataentry svelte-94r8nt"><span class="dataentry_key svelte-94r8nt">Shipping Time</span><span class="dataentry_value svelte-94r8nt"> </span></div></div>',1),js=oe('<div id="shipment_separator" class="svelte-94r8nt"><!></div>'),zs=oe("<hb-payment-paypal></hb-payment-paypal>",2),Fs=oe("<google-pay-button></google-pay-button>",2),Bs=oe('<div class="payment_button_container svelte-94r8nt"><!></div>'),Us=oe('<div id="payment_btn_container" class="svelte-94r8nt"></div>'),Vs=oe('By Clicking..<button class="btn btn-default svelte-94r8nt">Terms and conditions</button>',1),Ys=oe('<h3 class="subtitle svelte-94r8nt" part="subtitle"><i class="bi bi-wallet2 svelte-94r8nt"></i> Payment Method</h3> <!> <div class="footer_note svelte-94r8nt"><!></div>',1),Hs=oe('<div id="payment_completed_content" class="svelte-94r8nt"><div id="payment_completed_title" class="svelte-94r8nt">payment completed</div> <div id="payment_completed_content" class="svelte-94r8nt"> </div> <div id="payment_completed_footer" class="svelte-94r8nt"><button class="btn btn-link svelte-94r8nt">invoice</button></div></div>'),Ws=oe('<!> <div id="border_top" class="svelte-94r8nt"><div class="svelte-94r8nt"><h3 class="subtitle svelte-94r8nt" part="subtitle"><i class="bi bi-send-fill svelte-94r8nt"></i> Delivery</h3> <!></div> <!></div> <div class="payment_title svelte-94r8nt"><!></div>',1);const Gs={hash:"svelte-94r8nt",code:`@charset "UTF-8";
|
|
26
26
|
@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");
|
|
27
27
|
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
|
package/manifest.json
CHANGED