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