@icanbwell/composite 1.1312.0 → 1.1312.2
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/642.index.js +22 -22
- package/642.index.js.map +1 -1
- package/655.index.js +1158 -1158
- package/655.index.js.map +1 -1
- package/829.index.js +3 -3
- package/829.index.js.map +1 -1
- package/index.js +6 -6
- package/index.js.map +1 -1
- package/native.js +1 -1
- package/package.json +3 -3
package/829.index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(globalThis.webpackChunk_icanbwell_composite||=[]).push([[829],{79609(z,f,u){"use strict";u.d(f,{b:()=>Ft});var o=u.cw(function(a,i){a.exports=l=>{if(typeof l!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof l}\``);return/^[a-zA-Z]:\\/.test(l)?!1:/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(l)}}),h=()=>u(71103),_=u.cw(function(a,i){const l=h(),{hasOwnProperty:w}=Object.prototype,{propertyIsEnumerable:T}=Object,D=(E,j,W)=>Object.defineProperty(E,j,{value:W,writable:!0,enumerable:!0,configurable:!0}),F=this,ft={concatArrays:!1,ignoreUndefined:!1},Ie=E=>{const j=[];for(const W in E)w.call(E,W)&&j.push(W);if(Object.getOwnPropertySymbols){const W=Object.getOwnPropertySymbols(E);for(const R of W)T.call(E,R)&&j.push(R)}return j};function ve(E){return Array.isArray(E)?Rt(E):l(E)?kt(E):E}function Rt(E){const j=E.slice(0,0);return Ie(E).forEach(W=>{D(j,W,ve(E[W]))}),j}function kt(E){const j=Object.getPrototypeOf(E)===null?Object.create(null):{};return Ie(E).forEach(W=>{D(j,W,ve(E[W]))}),j}const dt=(E,j,W,R)=>(W.forEach(K=>{typeof j[K]>"u"&&R.ignoreUndefined||(K in E&&E[K]!==Object.getPrototypeOf(E)?D(E,K,st(E[K],j[K],R)):D(E,K,ve(j[K])))}),E),Gt=(E,j,W)=>{let R=E.slice(0,0),K=0;return[E,j].forEach(ce=>{const ht=[];for(let ee=0;ee<ce.length;ee++)w.call(ce,ee)&&(ht.push(String(ee)),ce===E?D(R,K++,ce[ee]):D(R,K++,ve(ce[ee])));R=dt(R,ce,Ie(ce).filter(ee=>!ht.includes(ee)),W)}),R};function st(E,j,W){return W.concatArrays&&Array.isArray(E)&&Array.isArray(j)?Gt(E,j,W):!l(j)||!l(E)?ve(j):dt(E,j,Ie(j),W)}a.exports=function(...E){const j=st(ve(ft),this!==F&&this||{},ft);let W={_:{}};for(const R of E)if(R!==void 0){if(!l(R))throw new TypeError("`"+R+"` is not an Option Object");W=st(W,{_:R},j)}return W._}}),t=u(55478),b;class d{constructor(i){b.set(this,void 0),(0,t.__classPrivateFieldSet)(this,b,i,"f")}get isWithin(){return!!window.ReactNativeWebView}open(i){(0,t.__classPrivateFieldGet)(this,b,"f").emit("openwebview",i)}close(i){(0,t.__classPrivateFieldGet)(this,b,"f").emit("closewebview",i)}reload(i=!1){(0,t.__classPrivateFieldGet)(this,b,"f").emit("reloadwebview",i)}}b=new WeakMap;var v=u(3857),c=u.n(v);const s=(a,i)=>c().bind(`${a}.${String(i)}`),P=a=>i=>s(a,i);var M,r;const p=P("biometrics");class g{constructor(i){M.set(this,void 0),r.set(this,p("isAvailable")),this.isAvailable=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,M,"f").isWithin?yield(0,t.__classPrivateFieldGet)(this,r,"f").call(this):!1}),this.getBiometryInformation=p("getBiometryInformation"),this.biometricKeysExist=p("biometricKeysExist"),this.createKeys=p("createKeys"),this.createSignature=p("createSignature"),this.deleteKeys=p("deleteKeys"),this.checkPermission=p("checkPermission"),this.requestPermission=p("requestPermission"),(0,t.__classPrivateFieldSet)(this,M,i,"f")}}M=new WeakMap,r=new WeakMap;const N=P("events");class A{constructor(){this.emit=N("emit")}}_();const k=_().bind({concatArrays:!0,ignoreUndefined:!0});function ue(a,i){const l=window.localStorage.getItem(a);if(l){const w=JSON.parse(l),T=JSON.parse(i),D=JSON.stringify(k(w,T));window.localStorage.setItem(a,D)}else window.localStorage.setItem(a,i)}function $(a,i){return new Promise((l,w)=>{try{const T=a();i?.(null,T),l(T)}catch(T){i?.(T),w(T)}})}function J(a,i,l){return Promise.all(a).then(w=>{const T=l?.(w)??null;return i?.(null,T),Promise.resolve(T)},w=>(i?.(w),Promise.reject(w)))}const q={getItem:(a,i)=>$(()=>window.localStorage.getItem(a),i),setItem:(a,i,l)=>$(()=>window.localStorage.setItem(a,i),l),removeItem:(a,i)=>$(()=>window.localStorage.removeItem(a),i),mergeItem:(a,i,l)=>$(()=>ue(a,i),l),clear:a=>$(()=>window.localStorage.clear(),a),getAllKeys:a=>$(()=>{const i=window.localStorage.length,l=[];for(let w=0;w<i;w+=1){const T=window.localStorage.key(w)||"";l.push(T)}return l},a),flushGetRequests:()=>{},multiGet:(a,i)=>{const l=a.map(T=>q.getItem(T));return J(l,i,T=>T.map((D,F)=>[a[F],D]))},multiSet:(a,i)=>{const l=a.map(w=>q.setItem(w[0],w[1]));return J(l,i)},multiRemove:(a,i)=>{const l=a.map(w=>q.removeItem(w));return J(l,i)},multiMerge:(a,i)=>{const l=a.map(w=>q.mergeItem(w[0],w[1]));return J(l,i)}},pe=q;var O;function Te(a){return{getItem:(...i)=>O.getItem(a,...i),setItem:(...i)=>O.setItem(a,...i),mergeItem:(...i)=>O.mergeItem(a,...i),removeItem:(...i)=>O.removeItem(a,...i)}}const te=pe;var Z,ie,me,fe;const ne=P("storage");class Ce{constructor(i){Z.set(this,void 0),ie.set(this,ne("setItem")),me.set(this,ne("getItem")),fe.set(this,ne("removeItem")),(0,t.__classPrivateFieldSet)(this,Z,i,"f")}setItem(i,l){return(0,t.__awaiter)(this,void 0,void 0,function*(){(0,t.__classPrivateFieldGet)(this,Z,"f").isWithin?yield(0,t.__classPrivateFieldGet)(this,ie,"f").call(this,i,l):te.setItem(i,l)})}getItem(i){return(0,t.__classPrivateFieldGet)(this,Z,"f").isWithin?(0,t.__classPrivateFieldGet)(this,me,"f").call(this,i):te.getItem(i)}removeItem(i){return(0,t.__awaiter)(this,void 0,void 0,function*(){(0,t.__classPrivateFieldGet)(this,Z,"f").isWithin?yield(0,t.__classPrivateFieldGet)(this,fe,"f").call(this,i):te.removeItem(i)})}}Z=new WeakMap,ie=new WeakMap,me=new WeakMap,fe=new WeakMap;var B,X;const re=P("camera");class we{constructor(i){B.set(this,void 0),X.set(this,re("isAvailable")),this.isAvailable=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,B,"f").isWithin?yield(0,t.__classPrivateFieldGet)(this,X,"f").call(this):!1}),this.checkPermission=re("checkPermission"),this.checkRollPermission=re("checkRollPermission"),this.requestPermission=re("requestPermission"),this.requestRollPermission=re("requestRollPermission"),(0,t.__classPrivateFieldSet)(this,B,i,"f")}}B=new WeakMap,X=new WeakMap;var H=u(30934),x=u(23758),V,e,n,m,y;const S=P("geolocation");class I{constructor(i){V.set(this,void 0),e.set(this,S("isAvailable")),n.set(this,S("getCurrentPosition")),m.set(this,S("checkPermission")),y.set(this,S("requestPermission")),this.isAvailable=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,V,"f").isWithin?(0,t.__classPrivateFieldGet)(this,e,"f").call(this):!!navigator.geolocation}),this.getCurrentPosition=l=>(0,t.__awaiter)(this,void 0,void 0,function*(){if((0,t.__classPrivateFieldGet)(this,V,"f").isWithin)return(0,t.__classPrivateFieldGet)(this,n,"f").call(this,l);try{const{state:w}=yield navigator.permissions.query({name:"geolocation"});if(w==="granted"||w==="prompt")return yield new Promise((T,D)=>navigator.geolocation.getCurrentPosition(T,D,l))}catch(w){throw new H.b(`Failed to retrieve the permission or the position is unavailable. ${w.message}`,{errorCode:x.O.UNKNOWN})}throw new H.b("Permission Denied.",{errorCode:x.O.INSUFFICIENT_PERMISSIONS})}),this.checkPermission=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,V,"f").isWithin?(0,t.__classPrivateFieldGet)(this,m,"f").call(this):(yield navigator.permissions.query({name:"geolocation"})).state}),this.requestPermission=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){if((0,t.__classPrivateFieldGet)(this,V,"f").isWithin)return yield(0,t.__classPrivateFieldGet)(this,y,"f").call(this);{const{state:l}=yield navigator.permissions.query({name:"geolocation"});return(l==="granted"||l==="prompt")&&(yield new Promise((w,T)=>navigator.geolocation.getCurrentPosition(w,T))),l}}),(0,t.__classPrivateFieldSet)(this,V,i,"f")}}V=new WeakMap,e=new WeakMap,n=new WeakMap,m=new WeakMap,y=new WeakMap,o();function C(){return C.c||(C.c=u.n(o()))}var U=u(47931),L=u.n(U),se,Pe;const vt=a=>{if(!C()()(a))return!1;try{return new URL(a).protocol==="https:"}catch{return!1}},pt=P("print");class mt{constructor(i){se.set(this,void 0),Pe.set(this,pt("print")),(0,t.__classPrivateFieldSet)(this,se,i,"f")}print(i){return(0,t.__awaiter)(this,void 0,void 0,function*(){if(i.html){if((0,t.__classPrivateFieldGet)(this,se,"f").isWithin)return yield(0,t.__classPrivateFieldGet)(this,Pe,"f").call(this,{html:i.html});L()({type:"raw-html",printable:i.html})}else if(i.filePath&&vt(i.filePath)){const l={filePath:i.filePath};if((0,t.__classPrivateFieldGet)(this,se,"f").isWithin)return yield(0,t.__classPrivateFieldGet)(this,Pe,"f").call(this,l);L()({type:"pdf",printable:l.filePath})}else throw new H.b("Filepath must be an https URL.",{errorCode:x.O.UNKNOWN})})}}se=new WeakMap,Pe=new WeakMap;var oe,je,We,Ne,De;const be=P("documentDownload"),Le={"image/jpeg":"jpeg","image/png":"png","image/svg+xml":"svg","application/pdf":"pdf","text/calendar":"ics"},_t=a=>{const i=a.trim();if(!i||i==="."||i==="..")throw new H.b("Invalid filename.",{errorCode:x.O.UNKNOWN});if(/[\\/]/.test(i)||i.includes("\0"))throw new H.b("Invalid filename.",{errorCode:x.O.UNKNOWN});return i},yt=a=>{const i=/^\s*data:([a-z]+\/[a-z0-9\-+]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+,;=\-._~:@/?%\s]*\s*$/i;return!!a.match(i)},wt=a=>a.substring(a.indexOf(":")+1,a.indexOf(";")),Pt=(a,i)=>{if(!yt(i))throw new H.b("Invalid Data URL Format.",{errorCode:x.O.UNKNOWN});const l=wt(i);return Ee(l),`${a}.${Le[l]}`},Ee=a=>{if(!Object.keys(Le).includes(a))throw new H.b("Invalid or unallowed file type.",{errorCode:x.O.UNKNOWN})};class bt{constructor(i){oe.set(this,void 0),je.set(this,be("isAvailable")),We.set(this,be("writeFile")),Ne.set(this,be("checkPermission")),De.set(this,be("requestPermission")),this.isAvailable=l=>(0,t.__awaiter)(this,void 0,void 0,function*(){return Ee(l),(0,t.__classPrivateFieldGet)(this,oe,"f").isWithin?(0,t.__classPrivateFieldGet)(this,je,"f").call(this,l):!0}),this.writeFile=(l,w)=>(0,t.__awaiter)(this,void 0,void 0,function*(){const T=_t(l);if(Object.values(Le).some(F=>T.includes(F)))throw new H.b("Filename should not contain extension",{errorCode:x.O.UNKNOWN});const D=Pt(T,w);if((0,t.__classPrivateFieldGet)(this,oe,"f").isWithin)return(0,t.__classPrivateFieldGet)(this,We,"f").call(this,D,w);{const F=document.createElement("a");return F.href=w,F.download=D,F.click(),"Files"}}),this.checkPermission=l=>(0,t.__awaiter)(this,void 0,void 0,function*(){return Ee(l),(0,t.__classPrivateFieldGet)(this,oe,"f").isWithin?(0,t.__classPrivateFieldGet)(this,Ne,"f").call(this,l):"granted"}),this.requestPermission=l=>(0,t.__awaiter)(this,void 0,void 0,function*(){return Ee(l),(0,t.__classPrivateFieldGet)(this,oe,"f").isWithin?yield(0,t.__classPrivateFieldGet)(this,De,"f").call(this,l):"granted"}),(0,t.__classPrivateFieldSet)(this,oe,i,"f")}}oe=new WeakMap,je=new WeakMap,We=new WeakMap,Ne=new WeakMap,De=new WeakMap;const _e=Object.freeze({UNAVAILABLE:"unavailable",BLOCKED:"blocked",DENIED:"denied",GRANTED:"granted",LIMITED:"limited"}),Fe="Only supported by iOS 14 and above";async function Et(){throw new Error(Fe)}async function gt(a){throw new Error(Fe)}async function St(){throw new Error(Fe)}async function ot(){return _e.UNAVAILABLE}async function at(){return{status:_e.UNAVAILABLE,settings:{}}}async function lt(a){return a.reduce((i,l)=>(i[l]=_e.UNAVAILABLE,i),{})}const Y={check:ot,checkLocationAccuracy:Et,checkMultiple:lt,checkNotifications:at,openLimitedPhotoLibraryPicker:St,openSettings:Promise.reject,request:ot,requestLocationAccuracy:gt,requestMultiple:lt,requestNotifications:at},Ut=Object.freeze({ANDROID:{},IOS:{},WINDOWS:{}});var Bt,Ht;const xt=Y.check,Kt=Y.checkLocationAccuracy,zt=Y.checkMultiple,$t=Y.checkNotifications,Yt=Y.openLimitedPhotoLibraryPicker,Vt=Y.openSettings,Jt=Y.request,qt=Y.requestLocationAccuracy,Zt=Y.requestMultiple,Xt=Y.requestNotifications,Qt=null;var ae,Re,ke,Ge,Ue;const ge=P("documentPicker"),Mt=a=>new Promise((i,l)=>{const w=new FileReader;w.readAsDataURL(a),w.onload=()=>i(w.result.replace("data:","").replace(/^.+,/,"")),w.onerror=l}),ct=a=>new Promise((i,l)=>{const w=document.createElement("input");w.type="file",a===!0&&(w.multiple=a),w.onchange=T=>(0,t.__awaiter)(void 0,[T],void 0,function*({target:D}){try{i(yield Promise.all(Object.values(D.files).map(F=>(0,t.__awaiter)(void 0,void 0,void 0,function*(){return{type:F.type,name:F.name,size:F.size,base64:yield Mt(F)}}))))}catch(F){l(F)}}),w.click()});class Ot{constructor(i){ae.set(this,void 0),Re.set(this,ge("pickMultiple")),ke.set(this,ge("pickSingle")),Ge.set(this,ge("checkPermission")),Ue.set(this,ge("requestPermission")),this.pickMultiple=()=>(0,t.__classPrivateFieldGet)(this,ae,"f").isWithin?(0,t.__classPrivateFieldGet)(this,Re,"f").call(this):ct(!0),this.checkPermission=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,ae,"f").isWithin?yield(0,t.__classPrivateFieldGet)(this,Ge,"f").call(this):Promise.resolve(_e.GRANTED)}),this.requestPermission=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,ae,"f").isWithin?yield(0,t.__classPrivateFieldGet)(this,Ue,"f").call(this):Promise.resolve(_e.GRANTED)}),(0,t.__classPrivateFieldSet)(this,ae,i,"f")}pickSingle(){return(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,ae,"f").isWithin?(0,t.__classPrivateFieldGet)(this,ke,"f").call(this):(yield ct(!1))[0]})}}ae=new WeakMap,Re=new WeakMap,ke=new WeakMap,Ge=new WeakMap,Ue=new WeakMap;var le,Be,He,xe,Ke;const Se=P("pushNotifications");class At{constructor(i){le.set(this,void 0),Be.set(this,Se("isAvailable")),He.set(this,Se("getDeviceToken")),xe.set(this,Se("checkPermission")),Ke.set(this,Se("requestPermission")),this.isAvailable=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,le,"f").isWithin?(0,t.__classPrivateFieldGet)(this,Be,"f").call(this):!1}),this.getDeviceToken=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){if((0,t.__classPrivateFieldGet)(this,le,"f").isWithin)return(0,t.__classPrivateFieldGet)(this,He,"f").call(this);throw new Error("This method is currently not supported on web")}),this.checkPermission=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,le,"f").isWithin?(0,t.__classPrivateFieldGet)(this,xe,"f").call(this):"unavailable"}),this.requestPermission=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,le,"f").isWithin?yield(0,t.__classPrivateFieldGet)(this,Ke,"f").call(this):"unavailable"}),(0,t.__classPrivateFieldSet)(this,le,i,"f")}}le=new WeakMap,Be=new WeakMap,He=new WeakMap,xe=new WeakMap,Ke=new WeakMap;var Me,ze;const It=P("deepLink");class Tt{constructor(i){Me.set(this,void 0),ze.set(this,It("openLink")),this.openLink=(l,...w)=>(0,t.__awaiter)(this,[l,...w],void 0,function*(T,D="_blank"){if((0,t.__classPrivateFieldGet)(this,Me,"f").isWithin)return(0,t.__classPrivateFieldGet)(this,ze,"f").call(this,T,D);window.open(T.webUrl,D)}),(0,t.__classPrivateFieldSet)(this,Me,i,"f")}}Me=new WeakMap,ze=new WeakMap;var Oe,$e;const Ct=P("system");class jt{constructor(i){Oe.set(this,void 0),$e.set(this,Ct("openSettings")),this.openSettings=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){if((0,t.__classPrivateFieldGet)(this,Oe,"f").isWithin)return yield(0,t.__classPrivateFieldGet)(this,$e,"f").call(this)}),(0,t.__classPrivateFieldSet)(this,Oe,i,"f")}}Oe=new WeakMap,$e=new WeakMap;var ye,Ye,Ve;const ut=P("utils");class Wt{constructor(i){ye.set(this,void 0),Ye.set(this,ut("getPlatform")),Ve.set(this,ut("getBundleId")),(0,t.__classPrivateFieldSet)(this,ye,i,"f")}getPlatform(){return(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,ye,"f").isWithin?(0,t.__classPrivateFieldGet)(this,Ye,"f").call(this):"web"})}getBundleId(){return(0,t.__awaiter)(this,void 0,void 0,function*(){if((0,t.__classPrivateFieldGet)(this,ye,"f").isWithin)return(0,t.__classPrivateFieldGet)(this,Ve,"f").call(this);console.warn("bundleId not available on the web")})}}ye=new WeakMap,Ye=new WeakMap,Ve=new WeakMap;var Ae,Je,qe,Ze,Xe,Qe,et,Q;const de=P("connectDevices");class Nt{constructor(i){Ae.set(this,void 0),Je.set(this,de("startSession")),qe.set(this,de("syncData")),Ze.set(this,de("refreshData")),Xe.set(this,de("endSession")),Qe.set(this,de("getCurrentUser")),et.set(this,de("checkPermissions")),Q.set(this,()=>(0,t.__classPrivateFieldGet)(this,Ae,"f").isWithin),this.startSession=l=>(0,t.__awaiter)(this,void 0,void 0,function*(){if((0,t.__classPrivateFieldGet)(this,Q,"f").call(this))return(0,t.__classPrivateFieldGet)(this,Je,"f").call(this,l)}),this.syncData=(...l)=>(0,t.__awaiter)(this,[...l],void 0,function*(w=30){return(0,t.__classPrivateFieldGet)(this,Q,"f").call(this)?(0,t.__classPrivateFieldGet)(this,qe,"f").call(this,w):[]}),this.refreshData=(...l)=>(0,t.__awaiter)(this,[...l],void 0,function*(w=30){return(0,t.__classPrivateFieldGet)(this,Q,"f").call(this)?(0,t.__classPrivateFieldGet)(this,Ze,"f").call(this,w):[]}),this.endSession=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){if((0,t.__classPrivateFieldGet)(this,Q,"f").call(this))return(0,t.__classPrivateFieldGet)(this,Xe,"f").call(this)}),this.getCurrentUser=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,Q,"f").call(this)?(0,t.__classPrivateFieldGet)(this,Qe,"f").call(this):null}),this.checkPermissions=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,Q,"f").call(this)?(0,t.__classPrivateFieldGet)(this,et,"f").call(this):!1}),(0,t.__classPrivateFieldSet)(this,Ae,i,"f")}}Ae=new WeakMap,Je=new WeakMap,qe=new WeakMap,Ze=new WeakMap,Xe=new WeakMap,Qe=new WeakMap,et=new WeakMap,Q=new WeakMap;var he,tt,it,nt;const rt=P("passkey");class Dt{constructor(i){he.set(this,void 0),tt.set(this,rt("isSupported")),it.set(this,rt("create")),nt.set(this,rt("get")),this.isSupported=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,he,"f").isWithin?(0,t.__classPrivateFieldGet)(this,tt,"f").call(this):!1}),this.create=l=>(0,t.__awaiter)(this,void 0,void 0,function*(){if(!(0,t.__classPrivateFieldGet)(this,he,"f").isWithin)throw new Error("Native passkey bridge is only available within a native WebView.");return(0,t.__classPrivateFieldGet)(this,it,"f").call(this,l)}),this.get=l=>(0,t.__awaiter)(this,void 0,void 0,function*(){if(!(0,t.__classPrivateFieldGet)(this,he,"f").isWithin)throw new Error("Native passkey bridge is only available within a native WebView.");return(0,t.__classPrivateFieldGet)(this,nt,"f").call(this,l)}),(0,t.__classPrivateFieldSet)(this,he,i,"f")}}he=new WeakMap,tt=new WeakMap,it=new WeakMap,nt=new WeakMap;class Lt{constructor(){this.events=new A,this.webview=new d(this.events),this.biometrics=new g(this.webview),this.storage=new Ce(this.webview),this.camera=new we(this.webview),this.geolocation=new I(this.webview),this.print=new mt(this.webview),this.documentDownload=new bt(this.webview),this.documentPicker=new Ot(this.webview),this.pushNotifications=new At(this.webview),this.deepLink=new Tt(this.webview),this.utils=new Wt(this.webview),this.system=new jt(this.webview),this.connectDevices=new Nt(this.webview),this.passkey=new Dt(this.webview)}reloadView(i=!1){this.webview.isWithin?this.webview.reload(i):globalThis.location.reload()}}const Ft=new Lt},71103(z){"use strict";z.exports=f=>{if(Object.prototype.toString.call(f)!=="[object Object]")return!1;const u=Object.getPrototypeOf(f);return u===null||u===Object.prototype}},47931(z){(function(u,o){z.exports=o()})(window,function(){return function(f){var u={};function o(h){if(u[h])return u[h].exports;var _=u[h]={i:h,l:!1,exports:{}};return f[h].call(_.exports,_,_.exports,o),_.l=!0,_.exports}return o.m=f,o.c=u,o.d=function(h,_,t){o.o(h,_)||Object.defineProperty(h,_,{enumerable:!0,get:t})},o.r=function(h){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(h,"__esModule",{value:!0})},o.t=function(h,_){if(_&1&&(h=o(h)),_&8||_&4&&typeof h=="object"&&h&&h.__esModule)return h;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:h}),_&2&&typeof h!="string")for(var b in h)o.d(t,b,function(d){return h[d]}.bind(null,b));return t},o.n=function(h){var _=h&&h.__esModule?function(){return h.default}:function(){return h};return o.d(_,"a",_),_},o.o=function(h,_){return Object.prototype.hasOwnProperty.call(h,_)},o.p="",o(o.s=0)}({"./src/index.js":function(f,u,o){"use strict";o.r(u);var h=o("./src/sass/index.scss"),_=o.n(h),t=o("./src/js/init.js"),b=t.default.init;typeof window<"u"&&(window.printJS=b),u.default=b},"./src/js/browser.js":function(f,u,o){"use strict";o.r(u);var h={isFirefox:function(){return typeof InstallTrigger<"u"},isIE:function(){return navigator.userAgent.indexOf("MSIE")!==-1||!!document.documentMode},isEdge:function(){return!h.isIE()&&!!window.StyleMedia},isChrome:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window;return!!t.chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||navigator.userAgent.toLowerCase().indexOf("safari")!==-1},isIOSChrome:function(){return navigator.userAgent.toLowerCase().indexOf("crios")!==-1}};u.default=h},"./src/js/functions.js":function(f,u,o){"use strict";o.r(u),o.d(u,"addWrapper",function(){return b}),o.d(u,"capitalizePrint",function(){return d}),o.d(u,"collectStyles",function(){return v}),o.d(u,"addHeader",function(){return s}),o.d(u,"cleanUp",function(){return P}),o.d(u,"isRawHTML",function(){return M});var h=o("./src/js/modal.js"),_=o("./src/js/browser.js");function t(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(g){return typeof g}:t=function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},t(r)}function b(r,p){var g="font-family:"+p.font+" !important; font-size: "+p.font_size+" !important; width:100%;";return'<div style="'+g+'">'+r+"</div>"}function d(r){return r.charAt(0).toUpperCase()+r.slice(1)}function v(r,p){for(var g=document.defaultView||window,N="",A=g.getComputedStyle(r,""),G=0;G<A.length;G++)(p.targetStyles.indexOf("*")!==-1||p.targetStyle.indexOf(A[G])!==-1||c(p.targetStyles,A[G]))&&A.getPropertyValue(A[G])&&(N+=A[G]+":"+A.getPropertyValue(A[G])+";");return N+="max-width: "+p.maxWidth+"px !important; font-size: "+p.font_size+" !important;",N}function c(r,p){for(var g=0;g<r.length;g++)if(t(p)==="object"&&p.indexOf(r[g])!==-1)return!0;return!1}function s(r,p){var g=document.createElement("div");if(M(p.header))g.innerHTML=p.header;else{var N=document.createElement("h1"),A=document.createTextNode(p.header);N.appendChild(A),N.setAttribute("style",p.headerStyle),g.appendChild(N)}r.insertBefore(g,r.childNodes[0])}function P(r){r.showModal&&h.default.close(),r.onLoadingEnd&&r.onLoadingEnd(),(r.showModal||r.onLoadingStart)&&window.URL.revokeObjectURL(r.printable);var p="mouseover";(_.default.isChrome()||_.default.isFirefox())&&(p="focus");var g=function N(){window.removeEventListener(p,N),r.onPrintDialogClose();var A=document.getElementById(r.frameId);A&&A.remove()};window.addEventListener(p,g)}function M(r){var p=new RegExp("<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>");return p.test(r)}},"./src/js/html.js":function(f,u,o){"use strict";o.r(u);var h=o("./src/js/functions.js"),_=o("./src/js/print.js");function t(v){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(s){return typeof s}:t=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t(v)}u.default={print:function(c,s){var P=d(c.printable)?c.printable:document.getElementById(c.printable);if(!P){window.console.error("Invalid HTML element id: "+c.printable);return}c.printableElement=b(P,c),c.header&&Object(h.addHeader)(c.printableElement,c),_.default.send(c,s)}};function b(v,c){for(var s=v.cloneNode(),P=Array.prototype.slice.call(v.childNodes),M=0;M<P.length;M++)if(c.ignoreElements.indexOf(P[M].id)===-1){var r=b(P[M],c);s.appendChild(r)}switch(c.scanStyles&&v.nodeType===1&&s.setAttribute("style",Object(h.collectStyles)(v,c)),v.tagName){case"SELECT":s.value=v.value;break;case"CANVAS":s.getContext("2d").drawImage(v,0,0);break}return s}function d(v){return t(v)==="object"&&v&&(v instanceof HTMLElement||v.nodeType===1)}},"./src/js/image.js":function(f,u,o){"use strict";o.r(u);var h=o("./src/js/functions.js"),_=o("./src/js/print.js"),t=o("./src/js/browser.js");u.default={print:function(d,v){d.printable.constructor!==Array&&(d.printable=[d.printable]),d.printableElement=document.createElement("div"),d.printable.forEach(function(c){var s=document.createElement("img");if(s.setAttribute("style",d.imageStyle),s.src=c,t.default.isFirefox()){var P=s.src;s.src=P}var M=document.createElement("div");M.appendChild(s),d.printableElement.appendChild(M)}),d.header&&Object(h.addHeader)(d.printableElement,d),_.default.send(d,v)}}},"./src/js/init.js":function(f,u,o){"use strict";o.r(u);var h=o("./src/js/browser.js"),_=o("./src/js/modal.js"),t=o("./src/js/pdf.js"),b=o("./src/js/html.js"),d=o("./src/js/raw-html.js"),v=o("./src/js/image.js"),c=o("./src/js/json.js");function s(M){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?s=function(p){return typeof p}:s=function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},s(M)}var P=["pdf","html","image","json","raw-html"];u.default={init:function(){var r={printable:null,fallbackPrintable:null,type:"pdf",header:null,headerStyle:"font-weight: 300;",maxWidth:800,properties:null,gridHeaderStyle:"font-weight: bold; padding: 5px; border: 1px solid #dddddd;",gridStyle:"border: 1px solid lightgray; margin-bottom: -1px;",showModal:!1,onError:function(ue){throw ue},onLoadingStart:null,onLoadingEnd:null,onPrintDialogClose:function(){},onIncompatibleBrowser:function(){},modalMessage:"Retrieving Document...",frameId:"printJS",printableElement:null,documentTitle:"Document",targetStyle:["clear","display","width","min-width","height","min-height","max-height"],targetStyles:["border","box","break","text-decoration"],ignoreElements:[],repeatTableHeader:!0,css:null,style:null,scanStyles:!0,base64:!1,onPdfOpen:null,font:"TimesNewRoman",font_size:"12pt",honorMarginPadding:!0,honorColor:!1,imageStyle:"max-width: 100%;"},p=arguments[0];if(p===void 0)throw new Error("printJS expects at least 1 attribute.");switch(s(p)){case"string":r.printable=encodeURI(p),r.fallbackPrintable=r.printable,r.type=arguments[1]||r.type;break;case"object":r.printable=p.printable,r.fallbackPrintable=typeof p.fallbackPrintable<"u"?p.fallbackPrintable:r.printable,r.fallbackPrintable=r.base64?"data:application/pdf;base64,".concat(r.fallbackPrintable):r.fallbackPrintable;for(var g in r)g==="printable"||g==="fallbackPrintable"||(r[g]=typeof p[g]<"u"?p[g]:r[g]);break;default:throw new Error('Unexpected argument type! Expected "string" or "object", got '+s(p))}if(!r.printable)throw new Error("Missing printable information.");if(!r.type||typeof r.type!="string"||P.indexOf(r.type.toLowerCase())===-1)throw new Error("Invalid print type. Available types are: pdf, html, image and json.");r.showModal&&_.default.show(r),r.onLoadingStart&&r.onLoadingStart();var N=document.getElementById(r.frameId);N&&N.parentNode.removeChild(N);var A=document.createElement("iframe");switch(h.default.isFirefox()?A.setAttribute("style","width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0"):A.setAttribute("style","visibility: hidden; height: 0; width: 0; position: absolute; border: 0"),A.setAttribute("id",r.frameId),r.type!=="pdf"&&(A.srcdoc="<html><head><title>"+r.documentTitle+"</title>",r.css&&(Array.isArray(r.css)||(r.css=[r.css]),r.css.forEach(function(k){A.srcdoc+='<link rel="stylesheet" href="'+k+'">'})),A.srcdoc+="</head><body></body></html>"),r.type){case"pdf":if(h.default.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer.");var G=window.open(r.fallbackPrintable,"_blank");G.focus(),r.onIncompatibleBrowser()}catch(k){r.onError(k)}finally{r.showModal&&_.default.close(),r.onLoadingEnd&&r.onLoadingEnd()}else t.default.print(r,A);break;case"image":v.default.print(r,A);break;case"html":b.default.print(r,A);break;case"raw-html":d.default.print(r,A);break;case"json":c.default.print(r,A);break}}}},"./src/js/json.js":function(f,u,o){"use strict";o.r(u);var h=o("./src/js/functions.js"),_=o("./src/js/print.js");function t(d){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(c){return typeof c}:t=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},t(d)}u.default={print:function(v,c){if(t(v.printable)!=="object")throw new Error("Invalid javascript data object (JSON).");if(typeof v.repeatTableHeader!="boolean")throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!v.properties||!Array.isArray(v.properties))throw new Error("Invalid properties array for your JSON data.");v.properties=v.properties.map(function(s){return{field:t(s)==="object"?s.field:s,displayName:t(s)==="object"?s.displayName:s,columnSize:t(s)==="object"&&s.columnSize?s.columnSize+";":100/v.properties.length+"%;"}}),v.printableElement=document.createElement("div"),v.header&&Object(h.addHeader)(v.printableElement,v),v.printableElement.innerHTML+=b(v),_.default.send(v,c)}};function b(d){var v=d.printable,c=d.properties,s='<table style="border-collapse: collapse; width: 100%;">';d.repeatTableHeader&&(s+="<thead>"),s+="<tr>";for(var P=0;P<c.length;P++)s+='<th style="width:'+c[P].columnSize+";"+d.gridHeaderStyle+'">'+Object(h.capitalizePrint)(c[P].displayName)+"</th>";s+="</tr>",d.repeatTableHeader&&(s+="</thead>"),s+="<tbody>";for(var M=0;M<v.length;M++){s+="<tr>";for(var r=0;r<c.length;r++){var p=v[M],g=c[r].field.split(".");if(g.length>1)for(var N=0;N<g.length;N++)p=p[g[N]];else p=p[c[r].field];s+='<td style="width:'+c[r].columnSize+d.gridStyle+'">'+p+"</td>"}s+="</tr>"}return s+="</tbody></table>",s}},"./src/js/modal.js":function(f,u,o){"use strict";o.r(u);var h={show:function(t){var b="font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;",d=document.createElement("div");d.setAttribute("style",b),d.setAttribute("id","printJS-Modal");var v=document.createElement("div");v.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var c=document.createElement("div");c.setAttribute("class","printClose"),c.setAttribute("id","printClose"),v.appendChild(c);var s=document.createElement("span");s.setAttribute("class","printSpinner"),v.appendChild(s);var P=document.createTextNode(t.modalMessage);v.appendChild(P),d.appendChild(v),document.getElementsByTagName("body")[0].appendChild(d),document.getElementById("printClose").addEventListener("click",function(){h.close()})},close:function(){var t=document.getElementById("printJS-Modal");t&&t.parentNode.removeChild(t)}};u.default=h},"./src/js/pdf.js":function(f,u,o){"use strict";o.r(u);var h=o("./src/js/print.js"),_=o("./src/js/functions.js");u.default={print:function(d,v){if(d.base64){var c=Uint8Array.from(atob(d.printable),function(P){return P.charCodeAt(0)});t(d,v,c);return}d.printable=/^(blob|http|\/\/)/i.test(d.printable)?d.printable:window.location.origin+(d.printable.charAt(0)!=="/"?"/"+d.printable:d.printable);var s=new window.XMLHttpRequest;s.responseType="arraybuffer",s.addEventListener("error",function(){Object(_.cleanUp)(d),d.onError(s.statusText,s)}),s.addEventListener("load",function(){if([200,201].indexOf(s.status)===-1){Object(_.cleanUp)(d),d.onError(s.statusText,s);return}t(d,v,s.response)}),s.open("GET",d.printable,!0),s.send()}};function t(b,d,v){var c=new window.Blob([v],{type:"application/pdf"});c=window.URL.createObjectURL(c),d.setAttribute("src",c),h.default.send(b,d)}},"./src/js/print.js":function(f,u,o){"use strict";o.r(u);var h=o("./src/js/browser.js"),_=o("./src/js/functions.js"),t={send:function(s,P){document.getElementsByTagName("body")[0].appendChild(P);var M=document.getElementById(s.frameId);M.onload=function(){if(s.type==="pdf"){h.default.isFirefox()?setTimeout(function(){return b(M,s)},1e3):b(M,s);return}var r=M.contentWindow||M.contentDocument;if(r.document&&(r=r.document),r.body.appendChild(s.printableElement),s.type!=="pdf"&&s.style){var p=document.createElement("style");p.innerHTML=s.style,r.head.appendChild(p)}var g=r.getElementsByTagName("img");g.length>0?d(Array.from(g)).then(function(){return b(M,s)}):b(M,s)}}};function b(c,s){try{if(c.focus(),h.default.isEdge()||h.default.isIE())try{c.contentWindow.document.execCommand("print",!1,null)}catch{c.contentWindow.print()}else c.contentWindow.print()}catch(P){s.onError(P)}finally{h.default.isFirefox()&&(c.style.visibility="hidden",c.style.left="-1px"),Object(_.cleanUp)(s)}}function d(c){var s=c.map(function(P){if(P.src&&P.src!==window.location.href)return v(P)});return Promise.all(s)}function v(c){return new Promise(function(s){var P=function M(){!c||typeof c.naturalWidth>"u"||c.naturalWidth===0||!c.complete?setTimeout(M,500):s()};P()})}u.default=t},"./src/js/raw-html.js":function(f,u,o){"use strict";o.r(u);var h=o("./src/js/print.js");u.default={print:function(t,b){t.printableElement=document.createElement("div"),t.printableElement.setAttribute("style","width:100%"),t.printableElement.innerHTML=t.printable,h.default.send(t,b)}}},"./src/sass/index.scss":function(f,u,o){},0:function(f,u,o){f.exports=o("./src/index.js")}}).default})},61197(z,f){"use strict";var u;/**
|
|
1
|
+
(globalThis.webpackChunk_icanbwell_composite||=[]).push([[829],{79609(z,u,c){"use strict";c.d(u,{b:()=>Lt});var o=c.cw(a=>{a.exports=i=>{if(typeof i!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof i}\``);return/^[a-zA-Z]:\\/.test(i)?!1:/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(i)}}),h=()=>c(71103),_=c.cw(function(a){const i=h(),{hasOwnProperty:f}=Object.prototype,{propertyIsEnumerable:P}=Object,M=(E,j,W)=>Object.defineProperty(E,j,{value:W,writable:!0,enumerable:!0,configurable:!0}),k=this,L={concatArrays:!1,ignoreUndefined:!1},Ie=E=>{const j=[];for(const W in E)f.call(E,W)&&j.push(W);if(Object.getOwnPropertySymbols){const W=Object.getOwnPropertySymbols(E);for(const F of W)P.call(E,F)&&j.push(F)}return j};function ve(E){return Array.isArray(E)?Ft(E):i(E)?Rt(E):E}function Ft(E){const j=E.slice(0,0);return Ie(E).forEach(W=>{M(j,W,ve(E[W]))}),j}function Rt(E){const j=Object.getPrototypeOf(E)===null?Object.create(null):{};return Ie(E).forEach(W=>{M(j,W,ve(E[W]))}),j}const ft=(E,j,W,F)=>(W.forEach(K=>{typeof j[K]>"u"&&F.ignoreUndefined||(K in E&&E[K]!==Object.getPrototypeOf(E)?M(E,K,st(E[K],j[K],F)):M(E,K,ve(j[K])))}),E),kt=(E,j,W)=>{let F=E.slice(0,0),K=0;return[E,j].forEach(ce=>{const dt=[];for(let ee=0;ee<ce.length;ee++)f.call(ce,ee)&&(dt.push(String(ee)),ce===E?M(F,K++,ce[ee]):M(F,K++,ve(ce[ee])));F=ft(F,ce,Ie(ce).filter(ee=>!dt.includes(ee)),W)}),F};function st(E,j,W){return W.concatArrays&&Array.isArray(E)&&Array.isArray(j)?kt(E,j,W):!i(j)||!i(E)?ve(j):ft(E,j,Ie(j),W)}a.exports=function(...E){const j=st(ve(L),this!==k&&this||{},L);let W={_:{}};for(const F of E)if(F!==void 0){if(!i(F))throw new TypeError("`"+F+"` is not an Option Object");W=st(W,{_:F},j)}return W._}}),t=c(55478),b;class d{constructor(i){b.set(this,void 0),(0,t.__classPrivateFieldSet)(this,b,i,"f")}get isWithin(){return!!window.ReactNativeWebView}open(i){(0,t.__classPrivateFieldGet)(this,b,"f").emit("openwebview",i)}close(i){(0,t.__classPrivateFieldGet)(this,b,"f").emit("closewebview",i)}reload(i=!1){(0,t.__classPrivateFieldGet)(this,b,"f").emit("reloadwebview",i)}}b=new WeakMap;var v=c(3857),l=c.n(v);const s=(a,i)=>l().bind(`${a}.${String(i)}`),w=a=>i=>s(a,i);var O,r;const p=w("biometrics");class g{constructor(i){O.set(this,void 0),r.set(this,p("isAvailable")),this.isAvailable=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,O,"f").isWithin?yield(0,t.__classPrivateFieldGet)(this,r,"f").call(this):!1}),this.getBiometryInformation=p("getBiometryInformation"),this.biometricKeysExist=p("biometricKeysExist"),this.createKeys=p("createKeys"),this.createSignature=p("createSignature"),this.deleteKeys=p("deleteKeys"),this.checkPermission=p("checkPermission"),this.requestPermission=p("requestPermission"),(0,t.__classPrivateFieldSet)(this,O,i,"f")}}O=new WeakMap,r=new WeakMap;const N=w("events");class I{constructor(){this.emit=N("emit")}}_();const R=_().bind({concatArrays:!0,ignoreUndefined:!0});function ue(a,i){const f=window.localStorage.getItem(a);if(f){const P=JSON.parse(f),M=JSON.parse(i),k=JSON.stringify(R(P,M));window.localStorage.setItem(a,k)}else window.localStorage.setItem(a,i)}function $(a,i){return new Promise((f,P)=>{try{const M=a();i?.(null,M),f(M)}catch(M){i?.(M),P(M)}})}function J(a,i,f){return Promise.all(a).then(P=>{const M=f?.(P)??null;return i?.(null,M),Promise.resolve(M)},P=>(i?.(P),Promise.reject(P)))}const q={getItem:(a,i)=>$(()=>window.localStorage.getItem(a),i),setItem:(a,i,f)=>$(()=>window.localStorage.setItem(a,i),f),removeItem:(a,i)=>$(()=>window.localStorage.removeItem(a),i),mergeItem:(a,i,f)=>$(()=>ue(a,i),f),clear:a=>$(()=>window.localStorage.clear(),a),getAllKeys:a=>$(()=>{const i=window.localStorage.length,f=[];for(let P=0;P<i;P+=1){const M=window.localStorage.key(P)||"";f.push(M)}return f},a),flushGetRequests:()=>{},multiGet:(a,i)=>{const f=a.map(M=>q.getItem(M));return J(f,i,M=>M.map((k,L)=>[a[L],k]))},multiSet:(a,i)=>{const f=a.map(P=>q.setItem(P[0],P[1]));return J(f,i)},multiRemove:(a,i)=>{const f=a.map(P=>q.removeItem(P));return J(f,i)},multiMerge:(a,i)=>{const f=a.map(P=>q.mergeItem(P[0],P[1]));return J(f,i)}},pe=q;var A;function Te(a){return{getItem:(...i)=>A.getItem(a,...i),setItem:(...i)=>A.setItem(a,...i),mergeItem:(...i)=>A.mergeItem(a,...i),removeItem:(...i)=>A.removeItem(a,...i)}}const te=pe;var Z,ie,me,fe;const ne=w("storage");class Ce{constructor(i){Z.set(this,void 0),ie.set(this,ne("setItem")),me.set(this,ne("getItem")),fe.set(this,ne("removeItem")),(0,t.__classPrivateFieldSet)(this,Z,i,"f")}setItem(i,f){return(0,t.__awaiter)(this,void 0,void 0,function*(){(0,t.__classPrivateFieldGet)(this,Z,"f").isWithin?yield(0,t.__classPrivateFieldGet)(this,ie,"f").call(this,i,f):te.setItem(i,f)})}getItem(i){return(0,t.__classPrivateFieldGet)(this,Z,"f").isWithin?(0,t.__classPrivateFieldGet)(this,me,"f").call(this,i):te.getItem(i)}removeItem(i){return(0,t.__awaiter)(this,void 0,void 0,function*(){(0,t.__classPrivateFieldGet)(this,Z,"f").isWithin?yield(0,t.__classPrivateFieldGet)(this,fe,"f").call(this,i):te.removeItem(i)})}}Z=new WeakMap,ie=new WeakMap,me=new WeakMap,fe=new WeakMap;var B,X;const re=w("camera");class we{constructor(i){B.set(this,void 0),X.set(this,re("isAvailable")),this.isAvailable=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,B,"f").isWithin?yield(0,t.__classPrivateFieldGet)(this,X,"f").call(this):!1}),this.checkPermission=re("checkPermission"),this.checkRollPermission=re("checkRollPermission"),this.requestPermission=re("requestPermission"),this.requestRollPermission=re("requestRollPermission"),(0,t.__classPrivateFieldSet)(this,B,i,"f")}}B=new WeakMap,X=new WeakMap;var H=c(30934),x=c(23758),V,e,n,m,y;const S=w("geolocation");class T{constructor(i){V.set(this,void 0),e.set(this,S("isAvailable")),n.set(this,S("getCurrentPosition")),m.set(this,S("checkPermission")),y.set(this,S("requestPermission")),this.isAvailable=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,V,"f").isWithin?(0,t.__classPrivateFieldGet)(this,e,"f").call(this):!!navigator.geolocation}),this.getCurrentPosition=f=>(0,t.__awaiter)(this,void 0,void 0,function*(){if((0,t.__classPrivateFieldGet)(this,V,"f").isWithin)return(0,t.__classPrivateFieldGet)(this,n,"f").call(this,f);try{const{state:P}=yield navigator.permissions.query({name:"geolocation"});if(P==="granted"||P==="prompt")return yield new Promise((M,k)=>navigator.geolocation.getCurrentPosition(M,k,f))}catch(P){throw new H.b(`Failed to retrieve the permission or the position is unavailable. ${P.message}`,{errorCode:x.O.UNKNOWN})}throw new H.b("Permission Denied.",{errorCode:x.O.INSUFFICIENT_PERMISSIONS})}),this.checkPermission=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,V,"f").isWithin?(0,t.__classPrivateFieldGet)(this,m,"f").call(this):(yield navigator.permissions.query({name:"geolocation"})).state}),this.requestPermission=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){if((0,t.__classPrivateFieldGet)(this,V,"f").isWithin)return yield(0,t.__classPrivateFieldGet)(this,y,"f").call(this);{const{state:f}=yield navigator.permissions.query({name:"geolocation"});return(f==="granted"||f==="prompt")&&(yield new Promise((P,M)=>navigator.geolocation.getCurrentPosition(P,M))),f}}),(0,t.__classPrivateFieldSet)(this,V,i,"f")}}V=new WeakMap,e=new WeakMap,n=new WeakMap,m=new WeakMap,y=new WeakMap,o();function C(){return C.c||(C.c=c.n(o()))}var U=c(47931),D=c.n(U),se,Pe;const ht=a=>{if(!C()()(a))return!1;try{return new URL(a).protocol==="https:"}catch{return!1}},vt=w("print");class pt{constructor(i){se.set(this,void 0),Pe.set(this,vt("print")),(0,t.__classPrivateFieldSet)(this,se,i,"f")}print(i){return(0,t.__awaiter)(this,void 0,void 0,function*(){if(i.html){if((0,t.__classPrivateFieldGet)(this,se,"f").isWithin)return yield(0,t.__classPrivateFieldGet)(this,Pe,"f").call(this,{html:i.html});D()({type:"raw-html",printable:i.html})}else if(i.filePath&&ht(i.filePath)){const f={filePath:i.filePath};if((0,t.__classPrivateFieldGet)(this,se,"f").isWithin)return yield(0,t.__classPrivateFieldGet)(this,Pe,"f").call(this,f);D()({type:"pdf",printable:f.filePath})}else throw new H.b("Filepath must be an https URL.",{errorCode:x.O.UNKNOWN})})}}se=new WeakMap,Pe=new WeakMap;var oe,je,We,Ne,De;const be=w("documentDownload"),Le={"image/jpeg":"jpeg","image/png":"png","image/svg+xml":"svg","application/pdf":"pdf","text/calendar":"ics"},mt=a=>{const i=a.trim();if(!i||i==="."||i==="..")throw new H.b("Invalid filename.",{errorCode:x.O.UNKNOWN});if(/[\\/]/.test(i)||i.includes("\0"))throw new H.b("Invalid filename.",{errorCode:x.O.UNKNOWN});return i},_t=a=>{const i=/^\s*data:([a-z]+\/[a-z0-9\-+]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+,;=\-._~:@/?%\s]*\s*$/i;return!!a.match(i)},yt=a=>a.substring(a.indexOf(":")+1,a.indexOf(";")),wt=(a,i)=>{if(!_t(i))throw new H.b("Invalid Data URL Format.",{errorCode:x.O.UNKNOWN});const f=yt(i);return Ee(f),`${a}.${Le[f]}`},Ee=a=>{if(!Object.keys(Le).includes(a))throw new H.b("Invalid or unallowed file type.",{errorCode:x.O.UNKNOWN})};class Pt{constructor(i){oe.set(this,void 0),je.set(this,be("isAvailable")),We.set(this,be("writeFile")),Ne.set(this,be("checkPermission")),De.set(this,be("requestPermission")),this.isAvailable=f=>(0,t.__awaiter)(this,void 0,void 0,function*(){return Ee(f),(0,t.__classPrivateFieldGet)(this,oe,"f").isWithin?(0,t.__classPrivateFieldGet)(this,je,"f").call(this,f):!0}),this.writeFile=(f,P)=>(0,t.__awaiter)(this,void 0,void 0,function*(){const M=mt(f);if(Object.values(Le).some(L=>M.includes(L)))throw new H.b("Filename should not contain extension",{errorCode:x.O.UNKNOWN});const k=wt(M,P);if((0,t.__classPrivateFieldGet)(this,oe,"f").isWithin)return(0,t.__classPrivateFieldGet)(this,We,"f").call(this,k,P);{const L=document.createElement("a");return L.href=P,L.download=k,L.click(),"Files"}}),this.checkPermission=f=>(0,t.__awaiter)(this,void 0,void 0,function*(){return Ee(f),(0,t.__classPrivateFieldGet)(this,oe,"f").isWithin?(0,t.__classPrivateFieldGet)(this,Ne,"f").call(this,f):"granted"}),this.requestPermission=f=>(0,t.__awaiter)(this,void 0,void 0,function*(){return Ee(f),(0,t.__classPrivateFieldGet)(this,oe,"f").isWithin?yield(0,t.__classPrivateFieldGet)(this,De,"f").call(this,f):"granted"}),(0,t.__classPrivateFieldSet)(this,oe,i,"f")}}oe=new WeakMap,je=new WeakMap,We=new WeakMap,Ne=new WeakMap,De=new WeakMap;const _e=Object.freeze({UNAVAILABLE:"unavailable",BLOCKED:"blocked",DENIED:"denied",GRANTED:"granted",LIMITED:"limited"}),Fe="Only supported by iOS 14 and above";async function bt(){throw new Error(Fe)}async function Et(a){throw new Error(Fe)}async function gt(){throw new Error(Fe)}async function ot(){return _e.UNAVAILABLE}async function at(){return{status:_e.UNAVAILABLE,settings:{}}}async function lt(a){return a.reduce((i,f)=>(i[f]=_e.UNAVAILABLE,i),{})}const Y={check:ot,checkLocationAccuracy:bt,checkMultiple:lt,checkNotifications:at,openLimitedPhotoLibraryPicker:gt,openSettings:Promise.reject,request:ot,requestLocationAccuracy:Et,requestMultiple:lt,requestNotifications:at},Gt=Object.freeze({ANDROID:{},IOS:{},WINDOWS:{}});var Ut,Bt;const Ht=Y.check,xt=Y.checkLocationAccuracy,Kt=Y.checkMultiple,zt=Y.checkNotifications,$t=Y.openLimitedPhotoLibraryPicker,Yt=Y.openSettings,Vt=Y.request,Jt=Y.requestLocationAccuracy,qt=Y.requestMultiple,Zt=Y.requestNotifications,Xt=null;var ae,Re,ke,Ge,Ue;const ge=w("documentPicker"),St=a=>new Promise((i,f)=>{const P=new FileReader;P.readAsDataURL(a),P.onload=()=>i(P.result.replace("data:","").replace(/^.+,/,"")),P.onerror=f}),ct=a=>new Promise((i,f)=>{const P=document.createElement("input");P.type="file",a===!0&&(P.multiple=a),P.onchange=M=>(0,t.__awaiter)(void 0,[M],void 0,function*({target:k}){try{i(yield Promise.all(Object.values(k.files).map(L=>(0,t.__awaiter)(void 0,void 0,void 0,function*(){return{type:L.type,name:L.name,size:L.size,base64:yield St(L)}}))))}catch(L){f(L)}}),P.click()});class Mt{constructor(i){ae.set(this,void 0),Re.set(this,ge("pickMultiple")),ke.set(this,ge("pickSingle")),Ge.set(this,ge("checkPermission")),Ue.set(this,ge("requestPermission")),this.pickMultiple=()=>(0,t.__classPrivateFieldGet)(this,ae,"f").isWithin?(0,t.__classPrivateFieldGet)(this,Re,"f").call(this):ct(!0),this.checkPermission=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,ae,"f").isWithin?yield(0,t.__classPrivateFieldGet)(this,Ge,"f").call(this):Promise.resolve(_e.GRANTED)}),this.requestPermission=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,ae,"f").isWithin?yield(0,t.__classPrivateFieldGet)(this,Ue,"f").call(this):Promise.resolve(_e.GRANTED)}),(0,t.__classPrivateFieldSet)(this,ae,i,"f")}pickSingle(){return(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,ae,"f").isWithin?(0,t.__classPrivateFieldGet)(this,ke,"f").call(this):(yield ct(!1))[0]})}}ae=new WeakMap,Re=new WeakMap,ke=new WeakMap,Ge=new WeakMap,Ue=new WeakMap;var le,Be,He,xe,Ke;const Se=w("pushNotifications");class Ot{constructor(i){le.set(this,void 0),Be.set(this,Se("isAvailable")),He.set(this,Se("getDeviceToken")),xe.set(this,Se("checkPermission")),Ke.set(this,Se("requestPermission")),this.isAvailable=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,le,"f").isWithin?(0,t.__classPrivateFieldGet)(this,Be,"f").call(this):!1}),this.getDeviceToken=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){if((0,t.__classPrivateFieldGet)(this,le,"f").isWithin)return(0,t.__classPrivateFieldGet)(this,He,"f").call(this);throw new Error("This method is currently not supported on web")}),this.checkPermission=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,le,"f").isWithin?(0,t.__classPrivateFieldGet)(this,xe,"f").call(this):"unavailable"}),this.requestPermission=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,le,"f").isWithin?yield(0,t.__classPrivateFieldGet)(this,Ke,"f").call(this):"unavailable"}),(0,t.__classPrivateFieldSet)(this,le,i,"f")}}le=new WeakMap,Be=new WeakMap,He=new WeakMap,xe=new WeakMap,Ke=new WeakMap;var Me,ze;const At=w("deepLink");class It{constructor(i){Me.set(this,void 0),ze.set(this,At("openLink")),this.openLink=(f,...P)=>(0,t.__awaiter)(this,[f,...P],void 0,function*(M,k="_blank"){if((0,t.__classPrivateFieldGet)(this,Me,"f").isWithin)return(0,t.__classPrivateFieldGet)(this,ze,"f").call(this,M,k);window.open(M.webUrl,k)}),(0,t.__classPrivateFieldSet)(this,Me,i,"f")}}Me=new WeakMap,ze=new WeakMap;var Oe,$e;const Tt=w("system");class Ct{constructor(i){Oe.set(this,void 0),$e.set(this,Tt("openSettings")),this.openSettings=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){if((0,t.__classPrivateFieldGet)(this,Oe,"f").isWithin)return yield(0,t.__classPrivateFieldGet)(this,$e,"f").call(this)}),(0,t.__classPrivateFieldSet)(this,Oe,i,"f")}}Oe=new WeakMap,$e=new WeakMap;var ye,Ye,Ve;const ut=w("utils");class jt{constructor(i){ye.set(this,void 0),Ye.set(this,ut("getPlatform")),Ve.set(this,ut("getBundleId")),(0,t.__classPrivateFieldSet)(this,ye,i,"f")}getPlatform(){return(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,ye,"f").isWithin?(0,t.__classPrivateFieldGet)(this,Ye,"f").call(this):"web"})}getBundleId(){return(0,t.__awaiter)(this,void 0,void 0,function*(){if((0,t.__classPrivateFieldGet)(this,ye,"f").isWithin)return(0,t.__classPrivateFieldGet)(this,Ve,"f").call(this);console.warn("bundleId not available on the web")})}}ye=new WeakMap,Ye=new WeakMap,Ve=new WeakMap;var Ae,Je,qe,Ze,Xe,Qe,et,Q;const de=w("connectDevices");class Wt{constructor(i){Ae.set(this,void 0),Je.set(this,de("startSession")),qe.set(this,de("syncData")),Ze.set(this,de("refreshData")),Xe.set(this,de("endSession")),Qe.set(this,de("getCurrentUser")),et.set(this,de("checkPermissions")),Q.set(this,()=>(0,t.__classPrivateFieldGet)(this,Ae,"f").isWithin),this.startSession=f=>(0,t.__awaiter)(this,void 0,void 0,function*(){if((0,t.__classPrivateFieldGet)(this,Q,"f").call(this))return(0,t.__classPrivateFieldGet)(this,Je,"f").call(this,f)}),this.syncData=(...f)=>(0,t.__awaiter)(this,[...f],void 0,function*(P=30){return(0,t.__classPrivateFieldGet)(this,Q,"f").call(this)?(0,t.__classPrivateFieldGet)(this,qe,"f").call(this,P):[]}),this.refreshData=(...f)=>(0,t.__awaiter)(this,[...f],void 0,function*(P=30){return(0,t.__classPrivateFieldGet)(this,Q,"f").call(this)?(0,t.__classPrivateFieldGet)(this,Ze,"f").call(this,P):[]}),this.endSession=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){if((0,t.__classPrivateFieldGet)(this,Q,"f").call(this))return(0,t.__classPrivateFieldGet)(this,Xe,"f").call(this)}),this.getCurrentUser=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,Q,"f").call(this)?(0,t.__classPrivateFieldGet)(this,Qe,"f").call(this):null}),this.checkPermissions=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,Q,"f").call(this)?(0,t.__classPrivateFieldGet)(this,et,"f").call(this):!1}),(0,t.__classPrivateFieldSet)(this,Ae,i,"f")}}Ae=new WeakMap,Je=new WeakMap,qe=new WeakMap,Ze=new WeakMap,Xe=new WeakMap,Qe=new WeakMap,et=new WeakMap,Q=new WeakMap;var he,tt,it,nt;const rt=w("passkey");class Nt{constructor(i){he.set(this,void 0),tt.set(this,rt("isSupported")),it.set(this,rt("create")),nt.set(this,rt("get")),this.isSupported=()=>(0,t.__awaiter)(this,void 0,void 0,function*(){return(0,t.__classPrivateFieldGet)(this,he,"f").isWithin?(0,t.__classPrivateFieldGet)(this,tt,"f").call(this):!1}),this.create=f=>(0,t.__awaiter)(this,void 0,void 0,function*(){if(!(0,t.__classPrivateFieldGet)(this,he,"f").isWithin)throw new Error("Native passkey bridge is only available within a native WebView.");return(0,t.__classPrivateFieldGet)(this,it,"f").call(this,f)}),this.get=f=>(0,t.__awaiter)(this,void 0,void 0,function*(){if(!(0,t.__classPrivateFieldGet)(this,he,"f").isWithin)throw new Error("Native passkey bridge is only available within a native WebView.");return(0,t.__classPrivateFieldGet)(this,nt,"f").call(this,f)}),(0,t.__classPrivateFieldSet)(this,he,i,"f")}}he=new WeakMap,tt=new WeakMap,it=new WeakMap,nt=new WeakMap;class Dt{constructor(){this.events=new I,this.webview=new d(this.events),this.biometrics=new g(this.webview),this.storage=new Ce(this.webview),this.camera=new we(this.webview),this.geolocation=new T(this.webview),this.print=new pt(this.webview),this.documentDownload=new Pt(this.webview),this.documentPicker=new Mt(this.webview),this.pushNotifications=new Ot(this.webview),this.deepLink=new It(this.webview),this.utils=new jt(this.webview),this.system=new Ct(this.webview),this.connectDevices=new Wt(this.webview),this.passkey=new Nt(this.webview)}reloadView(i=!1){this.webview.isWithin?this.webview.reload(i):globalThis.location.reload()}}const Lt=new Dt},71103(z){"use strict";z.exports=u=>{if(Object.prototype.toString.call(u)!=="[object Object]")return!1;const c=Object.getPrototypeOf(u);return c===null||c===Object.prototype}},47931(z){(function(c,o){z.exports=o()})(window,function(){return function(u){var c={};function o(h){if(c[h])return c[h].exports;var _=c[h]={i:h,l:!1,exports:{}};return u[h].call(_.exports,_,_.exports,o),_.l=!0,_.exports}return o.m=u,o.c=c,o.d=function(h,_,t){o.o(h,_)||Object.defineProperty(h,_,{enumerable:!0,get:t})},o.r=function(h){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(h,"__esModule",{value:!0})},o.t=function(h,_){if(_&1&&(h=o(h)),_&8||_&4&&typeof h=="object"&&h&&h.__esModule)return h;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:h}),_&2&&typeof h!="string")for(var b in h)o.d(t,b,function(d){return h[d]}.bind(null,b));return t},o.n=function(h){var _=h&&h.__esModule?function(){return h.default}:function(){return h};return o.d(_,"a",_),_},o.o=function(h,_){return Object.prototype.hasOwnProperty.call(h,_)},o.p="",o(o.s=0)}({"./src/index.js":function(u,c,o){"use strict";o.r(c);var h=o("./src/sass/index.scss"),_=o.n(h),t=o("./src/js/init.js"),b=t.default.init;typeof window<"u"&&(window.printJS=b),c.default=b},"./src/js/browser.js":function(u,c,o){"use strict";o.r(c);var h={isFirefox:function(){return typeof InstallTrigger<"u"},isIE:function(){return navigator.userAgent.indexOf("MSIE")!==-1||!!document.documentMode},isEdge:function(){return!h.isIE()&&!!window.StyleMedia},isChrome:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window;return!!t.chrome},isSafari:function(){return Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0||navigator.userAgent.toLowerCase().indexOf("safari")!==-1},isIOSChrome:function(){return navigator.userAgent.toLowerCase().indexOf("crios")!==-1}};c.default=h},"./src/js/functions.js":function(u,c,o){"use strict";o.r(c),o.d(c,"addWrapper",function(){return b}),o.d(c,"capitalizePrint",function(){return d}),o.d(c,"collectStyles",function(){return v}),o.d(c,"addHeader",function(){return s}),o.d(c,"cleanUp",function(){return w}),o.d(c,"isRawHTML",function(){return O});var h=o("./src/js/modal.js"),_=o("./src/js/browser.js");function t(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(g){return typeof g}:t=function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},t(r)}function b(r,p){var g="font-family:"+p.font+" !important; font-size: "+p.font_size+" !important; width:100%;";return'<div style="'+g+'">'+r+"</div>"}function d(r){return r.charAt(0).toUpperCase()+r.slice(1)}function v(r,p){for(var g=document.defaultView||window,N="",I=g.getComputedStyle(r,""),G=0;G<I.length;G++)(p.targetStyles.indexOf("*")!==-1||p.targetStyle.indexOf(I[G])!==-1||l(p.targetStyles,I[G]))&&I.getPropertyValue(I[G])&&(N+=I[G]+":"+I.getPropertyValue(I[G])+";");return N+="max-width: "+p.maxWidth+"px !important; font-size: "+p.font_size+" !important;",N}function l(r,p){for(var g=0;g<r.length;g++)if(t(p)==="object"&&p.indexOf(r[g])!==-1)return!0;return!1}function s(r,p){var g=document.createElement("div");if(O(p.header))g.innerHTML=p.header;else{var N=document.createElement("h1"),I=document.createTextNode(p.header);N.appendChild(I),N.setAttribute("style",p.headerStyle),g.appendChild(N)}r.insertBefore(g,r.childNodes[0])}function w(r){r.showModal&&h.default.close(),r.onLoadingEnd&&r.onLoadingEnd(),(r.showModal||r.onLoadingStart)&&window.URL.revokeObjectURL(r.printable);var p="mouseover";(_.default.isChrome()||_.default.isFirefox())&&(p="focus");var g=function N(){window.removeEventListener(p,N),r.onPrintDialogClose();var I=document.getElementById(r.frameId);I&&I.remove()};window.addEventListener(p,g)}function O(r){var p=new RegExp("<([A-Za-z][A-Za-z0-9]*)\\b[^>]*>(.*?)</\\1>");return p.test(r)}},"./src/js/html.js":function(u,c,o){"use strict";o.r(c);var h=o("./src/js/functions.js"),_=o("./src/js/print.js");function t(v){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(s){return typeof s}:t=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t(v)}c.default={print:function(l,s){var w=d(l.printable)?l.printable:document.getElementById(l.printable);if(!w){window.console.error("Invalid HTML element id: "+l.printable);return}l.printableElement=b(w,l),l.header&&Object(h.addHeader)(l.printableElement,l),_.default.send(l,s)}};function b(v,l){for(var s=v.cloneNode(),w=Array.prototype.slice.call(v.childNodes),O=0;O<w.length;O++)if(l.ignoreElements.indexOf(w[O].id)===-1){var r=b(w[O],l);s.appendChild(r)}switch(l.scanStyles&&v.nodeType===1&&s.setAttribute("style",Object(h.collectStyles)(v,l)),v.tagName){case"SELECT":s.value=v.value;break;case"CANVAS":s.getContext("2d").drawImage(v,0,0);break}return s}function d(v){return t(v)==="object"&&v&&(v instanceof HTMLElement||v.nodeType===1)}},"./src/js/image.js":function(u,c,o){"use strict";o.r(c);var h=o("./src/js/functions.js"),_=o("./src/js/print.js"),t=o("./src/js/browser.js");c.default={print:function(d,v){d.printable.constructor!==Array&&(d.printable=[d.printable]),d.printableElement=document.createElement("div"),d.printable.forEach(function(l){var s=document.createElement("img");if(s.setAttribute("style",d.imageStyle),s.src=l,t.default.isFirefox()){var w=s.src;s.src=w}var O=document.createElement("div");O.appendChild(s),d.printableElement.appendChild(O)}),d.header&&Object(h.addHeader)(d.printableElement,d),_.default.send(d,v)}}},"./src/js/init.js":function(u,c,o){"use strict";o.r(c);var h=o("./src/js/browser.js"),_=o("./src/js/modal.js"),t=o("./src/js/pdf.js"),b=o("./src/js/html.js"),d=o("./src/js/raw-html.js"),v=o("./src/js/image.js"),l=o("./src/js/json.js");function s(O){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?s=function(p){return typeof p}:s=function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},s(O)}var w=["pdf","html","image","json","raw-html"];c.default={init:function(){var r={printable:null,fallbackPrintable:null,type:"pdf",header:null,headerStyle:"font-weight: 300;",maxWidth:800,properties:null,gridHeaderStyle:"font-weight: bold; padding: 5px; border: 1px solid #dddddd;",gridStyle:"border: 1px solid lightgray; margin-bottom: -1px;",showModal:!1,onError:function(ue){throw ue},onLoadingStart:null,onLoadingEnd:null,onPrintDialogClose:function(){},onIncompatibleBrowser:function(){},modalMessage:"Retrieving Document...",frameId:"printJS",printableElement:null,documentTitle:"Document",targetStyle:["clear","display","width","min-width","height","min-height","max-height"],targetStyles:["border","box","break","text-decoration"],ignoreElements:[],repeatTableHeader:!0,css:null,style:null,scanStyles:!0,base64:!1,onPdfOpen:null,font:"TimesNewRoman",font_size:"12pt",honorMarginPadding:!0,honorColor:!1,imageStyle:"max-width: 100%;"},p=arguments[0];if(p===void 0)throw new Error("printJS expects at least 1 attribute.");switch(s(p)){case"string":r.printable=encodeURI(p),r.fallbackPrintable=r.printable,r.type=arguments[1]||r.type;break;case"object":r.printable=p.printable,r.fallbackPrintable=typeof p.fallbackPrintable<"u"?p.fallbackPrintable:r.printable,r.fallbackPrintable=r.base64?"data:application/pdf;base64,".concat(r.fallbackPrintable):r.fallbackPrintable;for(var g in r)g==="printable"||g==="fallbackPrintable"||(r[g]=typeof p[g]<"u"?p[g]:r[g]);break;default:throw new Error('Unexpected argument type! Expected "string" or "object", got '+s(p))}if(!r.printable)throw new Error("Missing printable information.");if(!r.type||typeof r.type!="string"||w.indexOf(r.type.toLowerCase())===-1)throw new Error("Invalid print type. Available types are: pdf, html, image and json.");r.showModal&&_.default.show(r),r.onLoadingStart&&r.onLoadingStart();var N=document.getElementById(r.frameId);N&&N.parentNode.removeChild(N);var I=document.createElement("iframe");switch(h.default.isFirefox()?I.setAttribute("style","width: 1px; height: 100px; position: fixed; left: 0; top: 0; opacity: 0; border-width: 0; margin: 0; padding: 0"):I.setAttribute("style","visibility: hidden; height: 0; width: 0; position: absolute; border: 0"),I.setAttribute("id",r.frameId),r.type!=="pdf"&&(I.srcdoc="<html><head><title>"+r.documentTitle+"</title>",r.css&&(Array.isArray(r.css)||(r.css=[r.css]),r.css.forEach(function(R){I.srcdoc+='<link rel="stylesheet" href="'+R+'">'})),I.srcdoc+="</head><body></body></html>"),r.type){case"pdf":if(h.default.isIE())try{console.info("Print.js doesn't support PDF printing in Internet Explorer.");var G=window.open(r.fallbackPrintable,"_blank");G.focus(),r.onIncompatibleBrowser()}catch(R){r.onError(R)}finally{r.showModal&&_.default.close(),r.onLoadingEnd&&r.onLoadingEnd()}else t.default.print(r,I);break;case"image":v.default.print(r,I);break;case"html":b.default.print(r,I);break;case"raw-html":d.default.print(r,I);break;case"json":l.default.print(r,I);break}}}},"./src/js/json.js":function(u,c,o){"use strict";o.r(c);var h=o("./src/js/functions.js"),_=o("./src/js/print.js");function t(d){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(l){return typeof l}:t=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},t(d)}c.default={print:function(v,l){if(t(v.printable)!=="object")throw new Error("Invalid javascript data object (JSON).");if(typeof v.repeatTableHeader!="boolean")throw new Error("Invalid value for repeatTableHeader attribute (JSON).");if(!v.properties||!Array.isArray(v.properties))throw new Error("Invalid properties array for your JSON data.");v.properties=v.properties.map(function(s){return{field:t(s)==="object"?s.field:s,displayName:t(s)==="object"?s.displayName:s,columnSize:t(s)==="object"&&s.columnSize?s.columnSize+";":100/v.properties.length+"%;"}}),v.printableElement=document.createElement("div"),v.header&&Object(h.addHeader)(v.printableElement,v),v.printableElement.innerHTML+=b(v),_.default.send(v,l)}};function b(d){var v=d.printable,l=d.properties,s='<table style="border-collapse: collapse; width: 100%;">';d.repeatTableHeader&&(s+="<thead>"),s+="<tr>";for(var w=0;w<l.length;w++)s+='<th style="width:'+l[w].columnSize+";"+d.gridHeaderStyle+'">'+Object(h.capitalizePrint)(l[w].displayName)+"</th>";s+="</tr>",d.repeatTableHeader&&(s+="</thead>"),s+="<tbody>";for(var O=0;O<v.length;O++){s+="<tr>";for(var r=0;r<l.length;r++){var p=v[O],g=l[r].field.split(".");if(g.length>1)for(var N=0;N<g.length;N++)p=p[g[N]];else p=p[l[r].field];s+='<td style="width:'+l[r].columnSize+d.gridStyle+'">'+p+"</td>"}s+="</tr>"}return s+="</tbody></table>",s}},"./src/js/modal.js":function(u,c,o){"use strict";o.r(c);var h={show:function(t){var b="font-family:sans-serif; display:table; text-align:center; font-weight:300; font-size:30px; left:0; top:0;position:fixed; z-index: 9990;color: #0460B5; width: 100%; height: 100%; background-color:rgba(255,255,255,.9);transition: opacity .3s ease;",d=document.createElement("div");d.setAttribute("style",b),d.setAttribute("id","printJS-Modal");var v=document.createElement("div");v.setAttribute("style","display:table-cell; vertical-align:middle; padding-bottom:100px;");var l=document.createElement("div");l.setAttribute("class","printClose"),l.setAttribute("id","printClose"),v.appendChild(l);var s=document.createElement("span");s.setAttribute("class","printSpinner"),v.appendChild(s);var w=document.createTextNode(t.modalMessage);v.appendChild(w),d.appendChild(v),document.getElementsByTagName("body")[0].appendChild(d),document.getElementById("printClose").addEventListener("click",function(){h.close()})},close:function(){var t=document.getElementById("printJS-Modal");t&&t.parentNode.removeChild(t)}};c.default=h},"./src/js/pdf.js":function(u,c,o){"use strict";o.r(c);var h=o("./src/js/print.js"),_=o("./src/js/functions.js");c.default={print:function(d,v){if(d.base64){var l=Uint8Array.from(atob(d.printable),function(w){return w.charCodeAt(0)});t(d,v,l);return}d.printable=/^(blob|http|\/\/)/i.test(d.printable)?d.printable:window.location.origin+(d.printable.charAt(0)!=="/"?"/"+d.printable:d.printable);var s=new window.XMLHttpRequest;s.responseType="arraybuffer",s.addEventListener("error",function(){Object(_.cleanUp)(d),d.onError(s.statusText,s)}),s.addEventListener("load",function(){if([200,201].indexOf(s.status)===-1){Object(_.cleanUp)(d),d.onError(s.statusText,s);return}t(d,v,s.response)}),s.open("GET",d.printable,!0),s.send()}};function t(b,d,v){var l=new window.Blob([v],{type:"application/pdf"});l=window.URL.createObjectURL(l),d.setAttribute("src",l),h.default.send(b,d)}},"./src/js/print.js":function(u,c,o){"use strict";o.r(c);var h=o("./src/js/browser.js"),_=o("./src/js/functions.js"),t={send:function(s,w){document.getElementsByTagName("body")[0].appendChild(w);var O=document.getElementById(s.frameId);O.onload=function(){if(s.type==="pdf"){h.default.isFirefox()?setTimeout(function(){return b(O,s)},1e3):b(O,s);return}var r=O.contentWindow||O.contentDocument;if(r.document&&(r=r.document),r.body.appendChild(s.printableElement),s.type!=="pdf"&&s.style){var p=document.createElement("style");p.innerHTML=s.style,r.head.appendChild(p)}var g=r.getElementsByTagName("img");g.length>0?d(Array.from(g)).then(function(){return b(O,s)}):b(O,s)}}};function b(l,s){try{if(l.focus(),h.default.isEdge()||h.default.isIE())try{l.contentWindow.document.execCommand("print",!1,null)}catch{l.contentWindow.print()}else l.contentWindow.print()}catch(w){s.onError(w)}finally{h.default.isFirefox()&&(l.style.visibility="hidden",l.style.left="-1px"),Object(_.cleanUp)(s)}}function d(l){var s=l.map(function(w){if(w.src&&w.src!==window.location.href)return v(w)});return Promise.all(s)}function v(l){return new Promise(function(s){var w=function O(){!l||typeof l.naturalWidth>"u"||l.naturalWidth===0||!l.complete?setTimeout(O,500):s()};w()})}c.default=t},"./src/js/raw-html.js":function(u,c,o){"use strict";o.r(c);var h=o("./src/js/print.js");c.default={print:function(t,b){t.printableElement=document.createElement("div"),t.printableElement.setAttribute("style","width:100%"),t.printableElement.innerHTML=t.printable,h.default.send(t,b)}}},"./src/sass/index.scss":function(u,c,o){},0:function(u,c,o){u.exports=o("./src/index.js")}}).default})},61197(z,u){"use strict";var c;/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var o=Symbol.for("react.transitional.element"),h=Symbol.for("react.fragment");function _(t,b,d){var v=null;if(d!==void 0&&(v=""+d),b.key!==void 0&&(v=""+b.key),"key"in b){d={};for(var
|
|
9
|
+
*/var o=Symbol.for("react.transitional.element"),h=Symbol.for("react.fragment");function _(t,b,d){var v=null;if(d!==void 0&&(v=""+d),b.key!==void 0&&(v=""+b.key),"key"in b){d={};for(var l in b)l!=="key"&&(d[l]=b[l])}else d=b;return b=d.ref,{$$typeof:o,type:t,key:v,ref:b!==void 0?b:null,props:d}}c=h,u.jsx=_,c=_},42062(z,u){"use strict";/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react.production.js
|
|
12
12
|
*
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var c=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),t=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),d=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),s=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),r=Symbol.for("react.view_transition"),p=Symbol.iterator;function g(e){return e===null||typeof e!="object"?null:(e=p&&e[p]||e["@@iterator"],typeof e=="function"?e:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I=Object.assign,G={};function R(e,n,m){this.props=e,this.context=n,this.refs=G,this.updater=m||N}R.prototype.isReactComponent={},R.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")},R.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ue(){}ue.prototype=R.prototype;function $(e,n,m){this.props=e,this.context=n,this.refs=G,this.updater=m||N}var J=$.prototype=new ue;J.constructor=$,I(J,R.prototype),J.isPureReactComponent=!0;var q=Array.isArray;function pe(){}var A={H:null,A:null,T:null,S:null},Te=Object.prototype.hasOwnProperty;function te(e,n,m){var y=m.ref;return{$$typeof:c,type:e,key:n,ref:y!==void 0?y:null,props:m}}function Z(e,n){return te(e.type,n,e.props)}function ie(e){return typeof e=="object"&&e!==null&&e.$$typeof===c}function me(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(m){return n[m]})}var fe=/\/+/g;function ne(e,n){return typeof e=="object"&&e!==null&&e.key!=null?me(""+e.key):n.toString(36)}function Ce(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(pe,pe):(e.status="pending",e.then(function(n){e.status==="pending"&&(e.status="fulfilled",e.value=n)},function(n){e.status==="pending"&&(e.status="rejected",e.reason=n)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function B(e,n,m,y,S){var T=typeof e;(T==="undefined"||T==="boolean")&&(e=null);var C=!1;if(e===null)C=!0;else switch(T){case"bigint":case"string":case"number":C=!0;break;case"object":switch(e.$$typeof){case c:case o:C=!0;break;case w:return C=e._init,B(C(e._payload),n,m,y,S)}}if(C)return S=S(e),C=y===""?"."+ne(e,0):y,q(S)?(m="",C!=null&&(m=C.replace(fe,"$&/")+"/"),B(S,n,m,"",function(se){return se})):S!=null&&(ie(S)&&(S=Z(S,m+(S.key==null||e&&e.key===S.key?"":(""+S.key).replace(fe,"$&/")+"/")+C)),n.push(S)),1;C=0;var U=y===""?".":y+":";if(q(e))for(var D=0;D<e.length;D++)y=e[D],T=U+ne(y,D),C+=B(y,n,m,T,S);else if(D=g(e),typeof D=="function")for(e=D.call(e),D=0;!(y=e.next()).done;)y=y.value,T=U+ne(y,D++),C+=B(y,n,m,T,S);else if(T==="object"){if(typeof e.then=="function")return B(Ce(e),n,m,y,S);throw n=String(e),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}return C}function X(e,n,m){if(e==null)return e;var y=[],S=0;return B(e,y,"","",function(T){return n.call(m,T,S++)}),y}function re(e){if(e._status===-1){var n=e._result,m=n();m.then(function(y){(e._status===0||e._status===-1)&&(e._status=1,e._result=y,m.status===void 0&&(m.status="fulfilled",m.value=y))},function(y){(e._status===0||e._status===-1)&&(e._status=2,e._result=y,m.status===void 0&&(m.status="rejected",m.reason=y))}),e._status===-1&&(e._status=0,e._result=m)}if(e._status===1)return e._result.default;throw e._result}var we=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function H(e){var n=A.T,m={};m.types=n!==null?n.types:null,A.T=m;try{var y=e(),S=A.S;S!==null&&S(m,y),typeof y=="object"&&y!==null&&typeof y.then=="function"&&y.then(pe,we)}catch(T){we(T)}finally{n!==null&&m.types!==null&&(n.types=m.types),A.T=n}}function x(e){var n=A.T;if(n!==null){var m=n.types;m===null?n.types=[e]:m.indexOf(e)===-1&&m.push(e)}else H(x.bind(null,e))}var V={map:X,forEach:function(e,n,m){X(e,function(){n.apply(this,arguments)},m)},count:function(e){var n=0;return X(e,function(){n++}),n},toArray:function(e){return X(e,function(n){return n})||[]},only:function(e){if(!ie(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};u.Activity=O,u.Children=V,u.Component=R,u.Fragment=h,u.Profiler=t,u.PureComponent=$,u.StrictMode=_,u.Suspense=l,u.ViewTransition=r,u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,u.__COMPILER_RUNTIME={__proto__:null,c:function(e){return A.H.useMemoCache(e)}},u.addTransitionType=x,u.cache=function(e){return function(){return e.apply(null,arguments)}},u.cacheSignal=function(){return null},u.cloneElement=function(e,n,m){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var y=I({},e.props),S=e.key;if(n!=null)for(T in n.key!==void 0&&(S=""+n.key),n)!Te.call(n,T)||T==="key"||T==="__self"||T==="__source"||T==="ref"&&n.ref===void 0||(y[T]=n[T]);var T=arguments.length-2;if(T===1)y.children=m;else if(1<T){for(var C=Array(T),U=0;U<T;U++)C[U]=arguments[U+2];y.children=C}return te(e.type,S,y)},u.createContext=function(e){return e={$$typeof:d,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:b,_context:e},e},u.createElement=function(e,n,m){var y,S={},T=null;if(n!=null)for(y in n.key!==void 0&&(T=""+n.key),n)Te.call(n,y)&&y!=="key"&&y!=="__self"&&y!=="__source"&&(S[y]=n[y]);var C=arguments.length-2;if(C===1)S.children=m;else if(1<C){for(var U=Array(C),D=0;D<C;D++)U[D]=arguments[D+2];S.children=U}if(e&&e.defaultProps)for(y in C=e.defaultProps,C)S[y]===void 0&&(S[y]=C[y]);return te(e,T,S)},u.createRef=function(){return{current:null}},u.forwardRef=function(e){return{$$typeof:v,render:e}},u.isValidElement=ie,u.lazy=function(e){return{$$typeof:w,_payload:{_status:-1,_result:e},_init:re}},u.memo=function(e,n){return{$$typeof:s,type:e,compare:n===void 0?null:n}},u.startTransition=H,u.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},u.use=function(e){return A.H.use(e)},u.useActionState=function(e,n,m){return A.H.useActionState(e,n,m)},u.useCallback=function(e,n){return A.H.useCallback(e,n)},u.useContext=function(e){return A.H.useContext(e)},u.useDebugValue=function(){},u.useDeferredValue=function(e,n){return A.H.useDeferredValue(e,n)},u.useEffect=function(e,n){return A.H.useEffect(e,n)},u.useEffectEvent=function(e){return A.H.useEffectEvent(e)},u.useId=function(){return A.H.useId()},u.useImperativeHandle=function(e,n,m){return A.H.useImperativeHandle(e,n,m)},u.useInsertionEffect=function(e,n){return A.H.useInsertionEffect(e,n)},u.useLayoutEffect=function(e,n){return A.H.useLayoutEffect(e,n)},u.useMemo=function(e,n){return A.H.useMemo(e,n)},u.useOptimistic=function(e,n){return A.H.useOptimistic(e,n)},u.useReducer=function(e,n,m){return A.H.useReducer(e,n,m)},u.useRef=function(e){return A.H.useRef(e)},u.useState=function(e){return A.H.useState(e)},u.useSyncExternalStore=function(e,n,m){return A.H.useSyncExternalStore(e,n,m)},u.useTransition=function(){return A.H.useTransition()},u.version="19.3.1"},14041(z,u,c){"use strict";z.exports=c(42062)},31085(z,u,c){"use strict";z.exports=c(61197)}}]);
|
|
18
18
|
|
|
19
19
|
//# sourceMappingURL=829.index.js.map
|