@aitmed/aitmed-document-template 1.77.0 → 1.78.0

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.
@@ -14383,7 +14383,7 @@ function ya() {
14383
14383
  var e = navigator.userAgent || navigator.vendor || window.opera;
14384
14384
  return !!(/android/i.test(e) || /iPad|iPhone|iPod/.test(e) && !window.MSStream);
14385
14385
  }
14386
- const mO = (e) => e ? Mo(e * 1e3).format("MM/DD/YYYY, hh:mm A") : "--/--/---- --:-- --", mr = (e) => (Vs("data-v-d21f79ed"), e = e(), Ws(), e), yO = { class: "RecursiveComponent" }, bO = { key: 0 }, wO = { key: 1 }, EO = { key: 0 }, _O = { class: "label textsharp-title" }, SO = {
14386
+ const mO = (e) => e ? Mo(e * 1e3).format("MM/DD/YYYY, hh:mm A") : "--/--/---- --:-- --", mr = (e) => (Vs("data-v-1c7e5219"), e = e(), Ws(), e), yO = { class: "RecursiveComponent" }, bO = { key: 0 }, wO = { key: 1 }, EO = { key: 0 }, _O = { class: "label textsharp-title" }, SO = {
14387
14387
  key: 0,
14388
14388
  style: { color: "red" }
14389
14389
  }, IO = { key: 1 }, xO = { class: "label choice-title" }, AO = {
@@ -14477,31 +14477,31 @@ const mO = (e) => e ? Mo(e * 1e3).format("MM/DD/YYYY, hh:mm A") : "--/--/---- --
14477
14477
  },
14478
14478
  setup(e) {
14479
14479
  la((be) => ({
14480
- "2b0f6291": _(n).smText,
14481
- "28898f97": _(n).text,
14482
- aabbf766: _(n).fullWidth,
14483
- "23cd7f9a": _(n).defaultStyle.marginTop,
14484
- d9af62b6: _(n).alignItems,
14485
- "986c8db6": _(n).lineHeight,
14486
- "52502f54": _(n).doubleLineHeight,
14487
- "64f03198": _(n).defaultStyle.paddingTop,
14488
- 39123824: _(n).defaultStyle.paddingLeft,
14489
- "0007f144": _(n).DateAndTime.width,
14490
- c9678f34: _(n).signature.width,
14491
- "97284af2": _(n).signature.height,
14492
- "0efd49fb": _(n).signature.label.top,
14493
- "407b7ec1": _(n).signature.label.height,
14494
- "44fa24ec": _(n).signature.label.width,
14495
- "5eafa7be": _(n).signature.label.left,
14496
- "55ea062e": _(n).defaultStyle.marginLeft,
14497
- "55e27342": _(n).defaultStyle.marginTop2,
14498
- 23387958: _(n).tableMinWidth,
14499
- "58d616fe": _(n).diagnosis.titleFontSize,
14500
- "5caa4f6e": _(n).diagnosis.buttonFontSize,
14501
- "7370190e": _(n).vitalSign.titleFontSize,
14502
- b26af270: _(n).vitalSign.blockWidth,
14503
- "1284dc0e": _(n).vitalSign.title2FontSize,
14504
- "17179f3a": _(n).vitalSign.unitFontSize
14480
+ 36381630: _(n).smText,
14481
+ "23389ef6": _(n).text,
14482
+ "4020b84e": _(n).fullWidth,
14483
+ ee06545c: _(n).defaultStyle.marginTop,
14484
+ a4ffca78: _(n).alignItems,
14485
+ "63bcf578": _(n).lineHeight,
14486
+ "7307e135": _(n).doubleLineHeight,
14487
+ "267f4fd9": _(n).defaultStyle.paddingTop,
14488
+ ad323bfa: _(n).defaultStyle.paddingLeft,
14489
+ "2c51d776": _(n).DateAndTime.width,
14490
+ "9e4bb0b2": _(n).signature.width,
14491
+ "509bd366": _(n).signature.height,
14492
+ "7ce09e88": _(n).signature.label.top,
14493
+ "4941d740": _(n).signature.label.height,
14494
+ c6e44126: _(n).signature.label.width,
14495
+ "70629d80": _(n).signature.label.left,
14496
+ d2cbc9ac: _(n).defaultStyle.marginLeft,
14497
+ d2c436c0: _(n).defaultStyle.marginTop2,
14498
+ "9b69764e": _(n).tableMinWidth,
14499
+ d5b7da7c: _(n).diagnosis.titleFontSize,
14500
+ "41ff8228": _(n).diagnosis.buttonFontSize,
14501
+ f051dc8c: _(n).vitalSign.titleFontSize,
14502
+ "4684f827": _(n).vitalSign.blockWidth,
14503
+ "67123bd8": _(n).vitalSign.title2FontSize,
14504
+ e15073fc: _(n).vitalSign.unitFontSize
14505
14505
  }));
14506
14506
  let n;
14507
14507
  const r = de(ya());
@@ -15437,7 +15437,7 @@ const mO = (e) => e ? Mo(e * 1e3).format("MM/DD/YYYY, hh:mm A") : "--/--/---- --
15437
15437
  for (const [i, s] of n)
15438
15438
  r[i] = s;
15439
15439
  return r;
15440
- }, wc = /* @__PURE__ */ xi(t6, [["__scopeId", "data-v-d21f79ed"]]), Tv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='21'%20height='21'%20viewBox='0%200%2021%2021'%3e%3cpath%20id='calendarCancel'%20d='M28.5,9.615,26.385,7.5,18,15.885,9.615,7.5,7.5,9.615,15.885,18,7.5,26.385,9.615,28.5,18,20.115,26.385,28.5,28.5,26.385,20.115,18Z'%20transform='translate(-7.5%20-7.5)'/%3e%3c/svg%3e", n6 = { class: "calendar_box" }, r6 = { class: "date" }, o6 = { class: "calendar_chioce" }, i6 = /* @__PURE__ */ xe({
15440
+ }, wc = /* @__PURE__ */ xi(t6, [["__scopeId", "data-v-1c7e5219"]]), Tv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='21'%20height='21'%20viewBox='0%200%2021%2021'%3e%3cpath%20id='calendarCancel'%20d='M28.5,9.615,26.385,7.5,18,15.885,9.615,7.5,7.5,9.615,15.885,18,7.5,26.385,9.615,28.5,18,20.115,26.385,28.5,28.5,26.385,20.115,18Z'%20transform='translate(-7.5%20-7.5)'/%3e%3c/svg%3e", n6 = { class: "calendar_box" }, r6 = { class: "date" }, o6 = { class: "calendar_chioce" }, i6 = /* @__PURE__ */ xe({
15441
15441
  __name: "CalendarPicker",
15442
15442
  setup(e) {
15443
15443
  la((D) => ({
@@ -48,7 +48,7 @@ function print() { __p += __j.call(arguments, '') }
48
48
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...o){const a=new this(r);return o.forEach(l=>a.set(l)),a}static accessor(r){const a=(this[jp]=this[jp]={accessors:{}}).accessors,l=this.prototype;function c(u){const f=mi(u);a[f]||(hI(l,u),a[f]=!0)}return X.isArray(r)?r.forEach(c):c(r),this}}jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),X.reduceDescriptors(jt.prototype,({value:e},r)=>{let o=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(a){this[o]=a}}}),X.freezeMethods(jt);function Vl(e,r){const o=this||hi,a=r||o,l=jt.from(a.headers);let c=a.data;return X.forEach(e,function(f){c=f.call(o,c,l.normalize(),r?r.status:void 0)}),l.normalize(),c}function Up(e){return!!(e&&e.__CANCEL__)}function Mo(e,r,o){De.call(this,e??"canceled",De.ERR_CANCELED,r,o),this.name="CanceledError"}X.inherits(Mo,De,{__CANCEL__:!0});function Hp(e,r,o){const a=o.config.validateStatus;!o.status||!a||a(o.status)?e(o):r(new De("Request failed with status code "+o.status,[De.ERR_BAD_REQUEST,De.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function mI(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function gI(e,r){e=e||10;const o=new Array(e),a=new Array(e);let l=0,c=0,u;return r=r!==void 0?r:1e3,function(m){const g=Date.now(),y=a[c];u||(u=g),o[l]=m,a[l]=g;let w=c,b=0;for(;w!==l;)b+=o[w++],w=w%e;if(l=(l+1)%e,l===c&&(c=(c+1)%e),g-u<r)return;const M=y&&g-y;return M?Math.round(b*1e3/M):void 0}}function yI(e,r){let o=0;const a=1e3/r;let l=null;return function(){const u=this===!0,f=Date.now();if(u||f-o>a)return l&&(clearTimeout(l),l=null),o=f,e.apply(null,arguments);l||(l=setTimeout(()=>(l=null,o=Date.now(),e.apply(null,arguments)),a-(f-o)))}}const Sa=(e,r,o=3)=>{let a=0;const l=gI(50,250);return yI(c=>{const u=c.loaded,f=c.lengthComputable?c.total:void 0,m=u-a,g=l(m),y=u<=f;a=u;const w={loaded:u,total:f,progress:f?u/f:void 0,bytes:m,rate:g||void 0,estimated:g&&f&&y?(f-u)/g:void 0,event:c,lengthComputable:f!=null};w[r?"download":"upload"]=!0,e(w)},o)},bI=In.hasStandardBrowserEnv?function(){const r=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let a;function l(c){let u=c;return r&&(o.setAttribute("href",u),u=o.href),o.setAttribute("href",u),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:o.pathname.charAt(0)==="/"?o.pathname:"/"+o.pathname}}return a=l(window.location.href),function(u){const f=X.isString(u)?l(u):u;return f.protocol===a.protocol&&f.host===a.host}}():function(){return function(){return!0}}(),wI=In.hasStandardBrowserEnv?{write(e,r,o,a,l,c){const u=[e+"="+encodeURIComponent(r)];X.isNumber(o)&&u.push("expires="+new Date(o).toGMTString()),X.isString(a)&&u.push("path="+a),X.isString(l)&&u.push("domain="+l),c===!0&&u.push("secure"),document.cookie=u.join("; ")},read(e){const r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function EI(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function CI(e,r){return r?e.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):e}function Wp(e,r){return e&&!EI(r)?CI(e,r):r}const Yp=e=>e instanceof jt?{...e}:e;function qr(e,r){r=r||{};const o={};function a(g,y,w){return X.isPlainObject(g)&&X.isPlainObject(y)?X.merge.call({caseless:w},g,y):X.isPlainObject(y)?X.merge({},y):X.isArray(y)?y.slice():y}function l(g,y,w){if(X.isUndefined(y)){if(!X.isUndefined(g))return a(void 0,g,w)}else return a(g,y,w)}function c(g,y){if(!X.isUndefined(y))return a(void 0,y)}function u(g,y){if(X.isUndefined(y)){if(!X.isUndefined(g))return a(void 0,g)}else return a(void 0,y)}function f(g,y,w){if(w in r)return a(g,y);if(w in e)return a(void 0,g)}const m={url:c,method:c,data:c,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:f,headers:(g,y)=>l(Yp(g),Yp(y),!0)};return X.forEach(Object.keys(Object.assign({},e,r)),function(y){const w=m[y]||l,b=w(e[y],r[y],y);X.isUndefined(b)&&w!==f||(o[y]=b)}),o}const Gp=e=>{const r=qr({},e);let{data:o,withXSRFToken:a,xsrfHeaderName:l,xsrfCookieName:c,headers:u,auth:f}=r;r.headers=u=jt.from(u),r.url=zp(Wp(r.baseURL,r.url),e.params,e.paramsSerializer),f&&u.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):"")));let m;if(X.isFormData(o)){if(In.hasStandardBrowserEnv||In.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if((m=u.getContentType())!==!1){const[g,...y]=m?m.split(";").map(w=>w.trim()).filter(Boolean):[];u.setContentType([g||"multipart/form-data",...y].join("; "))}}if(In.hasStandardBrowserEnv&&(a&&X.isFunction(a)&&(a=a(r)),a||a!==!1&&bI(r.url))){const g=l&&c&&wI.read(c);g&&u.set(l,g)}return r},SI=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(o,a){const l=Gp(e);let c=l.data;const u=jt.from(l.headers).normalize();let{responseType:f}=l,m;function g(){l.cancelToken&&l.cancelToken.unsubscribe(m),l.signal&&l.signal.removeEventListener("abort",m)}let y=new XMLHttpRequest;y.open(l.method.toUpperCase(),l.url,!0),y.timeout=l.timeout;function w(){if(!y)return;const M=jt.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),S={data:!f||f==="text"||f==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:M,config:e,request:y};Hp(function(k){o(k),g()},function(k){a(k),g()},S),y=null}"onloadend"in y?y.onloadend=w:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(w)},y.onabort=function(){y&&(a(new De("Request aborted",De.ECONNABORTED,l,y)),y=null)},y.onerror=function(){a(new De("Network Error",De.ERR_NETWORK,l,y)),y=null},y.ontimeout=function(){let E=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const S=l.transitional||$p;l.timeoutErrorMessage&&(E=l.timeoutErrorMessage),a(new De(E,S.clarifyTimeoutError?De.ETIMEDOUT:De.ECONNABORTED,l,y)),y=null},c===void 0&&u.setContentType(null),"setRequestHeader"in y&&X.forEach(u.toJSON(),function(E,S){y.setRequestHeader(S,E)}),X.isUndefined(l.withCredentials)||(y.withCredentials=!!l.withCredentials),f&&f!=="json"&&(y.responseType=l.responseType),typeof l.onDownloadProgress=="function"&&y.addEventListener("progress",Sa(l.onDownloadProgress,!0)),typeof l.onUploadProgress=="function"&&y.upload&&y.upload.addEventListener("progress",Sa(l.onUploadProgress)),(l.cancelToken||l.signal)&&(m=M=>{y&&(a(!M||M.type?new Mo(null,e,y):M),y.abort(),y=null)},l.cancelToken&&l.cancelToken.subscribe(m),l.signal&&(l.signal.aborted?m():l.signal.addEventListener("abort",m)));const b=mI(l.url);if(b&&In.protocols.indexOf(b)===-1){a(new De("Unsupported protocol "+b+":",De.ERR_BAD_REQUEST,e));return}y.send(c||null)})},_I=(e,r)=>{let o=new AbortController,a;const l=function(m){if(!a){a=!0,u();const g=m instanceof Error?m:this.reason;o.abort(g instanceof De?g:new Mo(g instanceof Error?g.message:g))}};let c=r&&setTimeout(()=>{l(new De(`timeout ${r} of ms exceeded`,De.ETIMEDOUT))},r);const u=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(m=>{m&&(m.removeEventListener?m.removeEventListener("abort",l):m.unsubscribe(l))}),e=null)};e.forEach(m=>m&&m.addEventListener&&m.addEventListener("abort",l));const{signal:f}=o;return f.unsubscribe=u,[f,()=>{c&&clearTimeout(c),c=null}]},xI=function*(e,r){let o=e.byteLength;if(!r||o<r){yield e;return}let a=0,l;for(;a<o;)l=a+r,yield e.slice(a,l),a=l},II=async function*(e,r,o){for await(const a of e)yield*xI(ArrayBuffer.isView(a)?a:await o(String(a)),r)},Kp=(e,r,o,a,l)=>{const c=II(e,r,l);let u=0;return new ReadableStream({type:"bytes",async pull(f){const{done:m,value:g}=await c.next();if(m){f.close(),a();return}let y=g.byteLength;o&&o(u+=y),f.enqueue(new Uint8Array(g))},cancel(f){return a(f),c.return()}},{highWaterMark:2})},qp=(e,r)=>{const o=e!=null;return a=>setTimeout(()=>r({lengthComputable:o,total:e,loaded:a}))},_a=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Qp=_a&&typeof ReadableStream=="function",zl=_a&&(typeof TextEncoder=="function"?(e=>r=>e.encode(r))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),kI=Qp&&(()=>{let e=!1;const r=new Request(In.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!r})(),Zp=64*1024,Pl=Qp&&!!(()=>{try{return X.isReadableStream(new Response("").body)}catch{}})(),xa={stream:Pl&&(e=>e.body)};_a&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(r=>{!xa[r]&&(xa[r]=X.isFunction(e[r])?o=>o[r]():(o,a)=>{throw new De(`Response type '${r}' is not supported`,De.ERR_NOT_SUPPORT,a)})})})(new Response);const MI=async e=>{if(e==null)return 0;if(X.isBlob(e))return e.size;if(X.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(X.isArrayBufferView(e))return e.byteLength;if(X.isURLSearchParams(e)&&(e=e+""),X.isString(e))return(await zl(e)).byteLength},AI=async(e,r)=>{const o=X.toFiniteNumber(e.getContentLength());return o??MI(r)},$l={http:Zx,xhr:SI,fetch:_a&&(async e=>{let{url:r,method:o,data:a,signal:l,cancelToken:c,timeout:u,onDownloadProgress:f,onUploadProgress:m,responseType:g,headers:y,withCredentials:w="same-origin",fetchOptions:b}=Gp(e);g=g?(g+"").toLowerCase():"text";let[M,E]=l||c||u?_I([l,c],u):[],S,N;const k=()=>{!S&&setTimeout(()=>{M&&M.unsubscribe()}),S=!0};let A;try{if(m&&kI&&o!=="get"&&o!=="head"&&(A=await AI(y,a))!==0){let W=new Request(r,{method:"POST",body:a,duplex:"half"}),Y;X.isFormData(a)&&(Y=W.headers.get("content-type"))&&y.setContentType(Y),W.body&&(a=Kp(W.body,Zp,qp(A,Sa(m)),null,zl))}X.isString(w)||(w=w?"cors":"omit"),N=new Request(r,{...b,signal:M,method:o.toUpperCase(),headers:y.normalize().toJSON(),body:a,duplex:"half",withCredentials:w});let B=await fetch(N);const U=Pl&&(g==="stream"||g==="response");if(Pl&&(f||U)){const W={};["status","statusText","headers"].forEach(te=>{W[te]=B[te]});const Y=X.toFiniteNumber(B.headers.get("content-length"));B=new Response(Kp(B.body,Zp,f&&qp(Y,Sa(f,!0)),U&&k,zl),W)}g=g||"text";let D=await xa[X.findKey(xa,g)||"text"](B,e);return!U&&k(),E&&E(),await new Promise((W,Y)=>{Hp(W,Y,{data:D,headers:jt.from(B.headers),status:B.status,statusText:B.statusText,config:e,request:N})})}catch(B){throw k(),B&&B.name==="TypeError"&&/fetch/i.test(B.message)?Object.assign(new De("Network Error",De.ERR_NETWORK,e,N),{cause:B.cause||B}):De.from(B,B&&B.code,e,N)}})};X.forEach($l,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const Xp=e=>`- ${e}`,TI=e=>X.isFunction(e)||e===null||e===!1,Jp={getAdapter:e=>{e=X.isArray(e)?e:[e];const{length:r}=e;let o,a;const l={};for(let c=0;c<r;c++){o=e[c];let u;if(a=o,!TI(o)&&(a=$l[(u=String(o)).toLowerCase()],a===void 0))throw new De(`Unknown adapter '${u}'`);if(a)break;l[u||"#"+c]=a}if(!a){const c=Object.entries(l).map(([f,m])=>`adapter ${f} `+(m===!1?"is not supported by the environment":"is not available in the build"));let u=r?c.length>1?`since :
49
49
  `+c.map(Xp).join(`
50
50
  `):" "+Xp(c[0]):"as no adapter specified";throw new De("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return a},adapters:$l};function Fl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Mo(null,e)}function eh(e){return Fl(e),e.headers=jt.from(e.headers),e.data=Vl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Jp.getAdapter(e.adapter||hi.adapter)(e).then(function(a){return Fl(e),a.data=Vl.call(e,e.transformResponse,a),a.headers=jt.from(a.headers),a},function(a){return Up(a)||(Fl(e),a&&a.response&&(a.response.data=Vl.call(e,e.transformResponse,a.response),a.response.headers=jt.from(a.response.headers))),Promise.reject(a)})}const th="1.7.2",jl={};["object","boolean","number","function","string","symbol"].forEach((e,r)=>{jl[e]=function(a){return typeof a===e||"a"+(r<1?"n ":" ")+e}});const nh={};jl.transitional=function(r,o,a){function l(c,u){return"[Axios v"+th+"] Transitional option '"+c+"'"+u+(a?". "+a:"")}return(c,u,f)=>{if(r===!1)throw new De(l(u," has been removed"+(o?" in "+o:"")),De.ERR_DEPRECATED);return o&&!nh[u]&&(nh[u]=!0,console.warn(l(u," has been deprecated since v"+o+" and will be removed in the near future"))),r?r(c,u,f):!0}};function NI(e,r,o){if(typeof e!="object")throw new De("options must be an object",De.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let l=a.length;for(;l-- >0;){const c=a[l],u=r[c];if(u){const f=e[c],m=f===void 0||u(f,c,e);if(m!==!0)throw new De("option "+c+" must be "+m,De.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new De("Unknown option "+c,De.ERR_BAD_OPTION)}}const Ul={assertOptions:NI,validators:jl},Sr=Ul.validators;class Qr{constructor(r){this.defaults=r,this.interceptors={request:new Pp,response:new Pp}}async request(r,o){try{return await this._request(r,o)}catch(a){if(a instanceof Error){let l;Error.captureStackTrace?Error.captureStackTrace(l={}):l=new Error;const c=l.stack?l.stack.replace(/^.+\n/,""):"";try{a.stack?c&&!String(a.stack).endsWith(c.replace(/^.+\n.+\n/,""))&&(a.stack+=`
51
- `+c):a.stack=c}catch{}}throw a}}_request(r,o){typeof r=="string"?(o=o||{},o.url=r):o=r||{},o=qr(this.defaults,o);const{transitional:a,paramsSerializer:l,headers:c}=o;a!==void 0&&Ul.assertOptions(a,{silentJSONParsing:Sr.transitional(Sr.boolean),forcedJSONParsing:Sr.transitional(Sr.boolean),clarifyTimeoutError:Sr.transitional(Sr.boolean)},!1),l!=null&&(X.isFunction(l)?o.paramsSerializer={serialize:l}:Ul.assertOptions(l,{encode:Sr.function,serialize:Sr.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let u=c&&X.merge(c.common,c[o.method]);c&&X.forEach(["delete","get","head","post","put","patch","common"],E=>{delete c[E]}),o.headers=jt.concat(u,c);const f=[];let m=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(o)===!1||(m=m&&S.synchronous,f.unshift(S.fulfilled,S.rejected))});const g=[];this.interceptors.response.forEach(function(S){g.push(S.fulfilled,S.rejected)});let y,w=0,b;if(!m){const E=[eh.bind(this),void 0];for(E.unshift.apply(E,f),E.push.apply(E,g),b=E.length,y=Promise.resolve(o);w<b;)y=y.then(E[w++],E[w++]);return y}b=f.length;let M=o;for(w=0;w<b;){const E=f[w++],S=f[w++];try{M=E(M)}catch(N){S.call(this,N);break}}try{y=eh.call(this,M)}catch(E){return Promise.reject(E)}for(w=0,b=g.length;w<b;)y=y.then(g[w++],g[w++]);return y}getUri(r){r=qr(this.defaults,r);const o=Wp(r.baseURL,r.url);return zp(o,r.params,r.paramsSerializer)}}X.forEach(["delete","get","head","options"],function(r){Qr.prototype[r]=function(o,a){return this.request(qr(a||{},{method:r,url:o,data:(a||{}).data}))}}),X.forEach(["post","put","patch"],function(r){function o(a){return function(c,u,f){return this.request(qr(f||{},{method:r,headers:a?{"Content-Type":"multipart/form-data"}:{},url:c,data:u}))}}Qr.prototype[r]=o(),Qr.prototype[r+"Form"]=o(!0)});class Hl{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(c){o=c});const a=this;this.promise.then(l=>{if(!a._listeners)return;let c=a._listeners.length;for(;c-- >0;)a._listeners[c](l);a._listeners=null}),this.promise.then=l=>{let c;const u=new Promise(f=>{a.subscribe(f),c=f}).then(l);return u.cancel=function(){a.unsubscribe(c)},u},r(function(c,u,f){a.reason||(a.reason=new Mo(c,u,f),o(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const o=this._listeners.indexOf(r);o!==-1&&this._listeners.splice(o,1)}static source(){let r;return{token:new Hl(function(l){r=l}),cancel:r}}}function vI(e){return function(o){return e.apply(null,o)}}function BI(e){return X.isObject(e)&&e.isAxiosError===!0}const Wl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Wl).forEach(([e,r])=>{Wl[r]=e});function rh(e){const r=new Qr(e),o=Sp(Qr.prototype.request,r);return X.extend(o,Qr.prototype,r,{allOwnKeys:!0}),X.extend(o,r,null,{allOwnKeys:!0}),o.create=function(l){return rh(qr(e,l))},o}const Ct=rh(hi);Ct.Axios=Qr,Ct.CanceledError=Mo,Ct.CancelToken=Hl,Ct.isCancel=Up,Ct.VERSION=th,Ct.toFormData=Ea,Ct.AxiosError=De,Ct.Cancel=Ct.CanceledError,Ct.all=function(r){return Promise.all(r)},Ct.spread=vI,Ct.isAxiosError=BI,Ct.mergeConfig=qr,Ct.AxiosHeaders=jt,Ct.formToJSON=e=>Fp(X.isHTMLForm(e)?new FormData(e):e),Ct.getAdapter=Jp.getAdapter,Ct.HttpStatusCode=Wl,Ct.default=Ct;const DI=/#[\w*]+\|-\|((?!\|-\|).)+\|-\|((?!\|-\|).)+\|-\|/,LI=/#[\w *\&]+\|-\|((?!\|-\|).)+\|-\|/,OI=/\|-\|/g,RI=/\|-\|/;function gi(){var e=navigator.userAgent||navigator.vendor||window.opera;return!!(/android/i.test(e)||/iPad|iPhone|iPod/.test(e)&&!window.MSStream)}const VI=e=>e?Gr(e*1e3).format("MM/DD/YYYY, hh:mm A"):"--/--/---- --:-- --",Vn=e=>(t.pushScopeId("data-v-d21f79ed"),e=e(),t.popScopeId(),e),zI={class:"RecursiveComponent"},PI={key:0},$I={key:1},FI={key:0},jI={class:"label textsharp-title"},UI={key:0,style:{color:"red"}},HI={key:1},WI={class:"label choice-title"},YI={key:0,style:{color:"red"}},GI={key:2,class:"vertical-checkbox-group"},KI={key:3,class:"vertical-checkbox-group"},qI={key:5,class:"dropdownbox-block"},QI={class:"label dropdownbox-label"},ZI=["onClick"],XI={key:7,class:"date-block"},JI={class:"label date-label"},ek={key:8,class:"time-box"},tk={key:9,class:"time-block"},nk={class:"label time-label"},rk=["onClick"],ok={class:"time-box"},ik={key:11,class:"date-time-block"},ak={class:"label date-bolck-label"},sk=Vn(()=>t.createElementVNode("div",{class:"label date-time-blank-label"},"      ",-1)),lk={class:"label time-bolck-label"},ck={key:2},uk={class:"label signature-title-label font-base"},fk=["src"],dk=Vn(()=>t.createElementVNode("div",{class:"signature-x"},"X",-1)),pk={class:"signature-time"},hk={key:3},mk=Vn(()=>t.createElementVNode("div",{class:"label signature-title-label"}," Patient/Guardian Signature ",-1)),gk=["src"],yk=Vn(()=>t.createElementVNode("div",{class:"signature-x"},"X",-1)),bk={class:"signature-guardian"},wk=Vn(()=>t.createElementVNode("div",{class:"label signature-check-label"}," Click here if you are a parent or legal guardian or caregiver on behalf of the patient(you need to give your own signature). ",-1)),Ek={key:4},Ck=Vn(()=>t.createElementVNode("div",{class:"label signature-title-label"},"Attorney Signature",-1)),Sk=["src"],_k=Vn(()=>t.createElementVNode("div",{class:"signature-x"},"X",-1)),xk={key:5},Ik={class:"diagnosis-title"},kk=Vn(()=>t.createElementVNode("div",{class:"label diagnosis-title-label"},"Diagnoses",-1)),Mk={key:0,class:"diagnosis-editable"},Ak={class:"diagnosis-searchbox"},Tk={key:0,class:"diagnosis-suggestion"},Nk=["onClick"],vk=Vn(()=>t.createElementVNode("br",null,null,-1)),Bk={key:1,class:"diagnosis-list"},Dk={class:"diagnosis-item"},Lk={class:"diagnosis-item-code"},Ok={class:"diagnosis-item-comment"},Rk={key:0},Vk={key:6},zk=Vn(()=>t.createElementVNode("div",{class:"vital-sign-title"},[t.createElementVNode("div",{class:"label vital-sign-title-label"},"Vital Signs")],-1)),Pk={class:"vital-sign-box"},$k={class:"vital-sign-block"},Fk={class:"vital-sign-item"},jk={class:"vital-sign-item-title"},Uk={key:0},Hk={class:"vital-sign-item"},Wk={class:"vital-sign-item-title"},Yk={key:0},Gk={class:"vital-sign-block"},Kk={class:"vital-sign-item"},qk={class:"vital-sign-item-title"},Qk={key:0},Zk={class:"vital-sign-item"},Xk={class:"vital-sign-item-title"},Jk={key:0},e4={class:"vital-sign-box"},t4={class:"vital-sign-block"},n4={class:"vital-sign-item"},r4={class:"vital-sign-item-title"},o4={key:0},i4={class:"vital-sign-item"},a4={class:"vital-sign-item-title"},s4={key:0},l4={class:"vital-sign-block"},c4={class:"vital-sign-item"},u4={class:"vital-sign-item-title"},f4={key:0},d4={class:"vital-sign-item"},p4={class:"vital-sign-item-title"},h4={key:0},m4={key:7},g4={class:"label default-label font-base"},y4={key:1,class:"default-textarea-block"},b4=["src","onClick"],w4={key:1},E4={key:0,class:"text"},Yl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsSAAALEgHS3X78AAAAV0lEQVRYR+3SsQ0AMAgEMdh/aYZwQ3HpT0LO7zx/+/y+6UD9oQQTVAHt22CCKqB9G0xQBbRvgwmqgPZtMEEV0L4NJqgC2rfBBFVA+zaYoApo3wYTVAHtDxz6ACmSkz/0AAAAAElFTkSuQmCC",C4=t.defineComponent({__name:"RecursiveComponent",props:{formData:{type:Object,require:!0},node:{type:Array,required:!0},otherData:{type:Object,required:!0},otherTableInfo:{type:Object,required:!0},isEditable:{type:Boolean,default:!0},editability:{type:Object,default:{provider:!0,patient:!0,attorney:!0}}},setup(e){t.useCssVars(fe=>({"2b0f6291":t.unref(r).smText,"28898f97":t.unref(r).text,aabbf766:t.unref(r).fullWidth,"23cd7f9a":t.unref(r).defaultStyle.marginTop,d9af62b6:t.unref(r).alignItems,"986c8db6":t.unref(r).lineHeight,"52502f54":t.unref(r).doubleLineHeight,"64f03198":t.unref(r).defaultStyle.paddingTop,39123824:t.unref(r).defaultStyle.paddingLeft,"0007f144":t.unref(r).DateAndTime.width,c9678f34:t.unref(r).signature.width,"97284af2":t.unref(r).signature.height,"0efd49fb":t.unref(r).signature.label.top,"407b7ec1":t.unref(r).signature.label.height,"44fa24ec":t.unref(r).signature.label.width,"5eafa7be":t.unref(r).signature.label.left,"55ea062e":t.unref(r).defaultStyle.marginLeft,"55e27342":t.unref(r).defaultStyle.marginTop2,23387958:t.unref(r).tableMinWidth,"58d616fe":t.unref(r).diagnosis.titleFontSize,"5caa4f6e":t.unref(r).diagnosis.buttonFontSize,"7370190e":t.unref(r).vitalSign.titleFontSize,b26af270:t.unref(r).vitalSign.blockWidth,"1284dc0e":t.unref(r).vitalSign.title2FontSize,"17179f3a":t.unref(r).vitalSign.unitFontSize}));let r;const o=t.ref(gi());o.value?r=t.reactive(px):r=t.reactive(Cp);const l=xs().getCalendarPciker(),u=Is().getSignaturePad(),m=ks().getImageEditor(),y=Ms().getRecommendDiagnosis(),w=t.reactive({code:"",description:"",comment:"",searchResult:Array()}),b=new Set(["header1","header2","header3","header4","header5"]),M=new Set([...Array.from(b)]),E=new Set([...Array.from(b),"paragraph","divider"]),S=new Set(["table","table-row","table-cell"]),N=new Set(["atblock","sharpblock","image",...Array.from(S)]);[...Array.from(E),...Array.from(N)];const k=new Set(["DateOrDateOfService","SignersName","SignersSpecialty","SignersLicNumber","SignersNpiNumber","SignersDeaNumber","SignersEmail","FaxNumber","FacilityMainNumber","FacilityAddressInfo"]),A=fe=>{fe=fe.replace(/#/,"");const ae=fe.split(OI);return{required:ae[0].endsWith("*"),type:ae[0].replace("*","").replace("$",""),title:ae[1],placeholder:ae[2]}},B=fe=>{const ae=fe.split(RI);ae.shift(),ae.pop();const me={};let Se=ae.length;for(let _e=0;_e<Se/2;_e++)ae[2*_e]&&(me[ae[2*_e]]=ae[2*_e+1]==="checked");return me},U=e,D=t.reactive(U.formData),W=fe=>DI.test(fe)?"textSharp":LI.test(fe)?"choiceSharp":fe==="#Signature"||fe==="#Provider Signature"?"providerSignature":fe==="#Patient/Guardian Signature"?"patientSignature":fe==="#Attorney Signature"?"attorneySignature":"default",Y=/[^\w ]/g,te=fe=>{const ae=fe.replace(Y," ").split(/ /);let me="";return ae.forEach(Se=>{Se!==""&&(Se=Se.toLowerCase(),Se=Se.replace(Se[0],Se[0].toUpperCase()),me+=Se)}),me},Z=fe=>{switch(fe){case"Diagnosis":return"Diagnosis";case"Vital Sign":return"Vital Sign";default:return"default"}},K=(fe,ae)=>{const me=D[fe].valueList.filter(Se=>Se.key===ae);return(me==null?void 0:me[0])||null},Q=(fe,ae)=>{var Se;((Se=K(fe,ae))==null?void 0:Se.value)===D[fe].dataList[ae].value?D[fe].valueList=D[fe].valueList.filter(_e=>_e.key!==ae):D[fe].valueList.push({key:ae,value:D[fe].dataList[ae].value})},se=fe=>{l.open({formData:D,dataKey:fe})},we=(fe,ae,me,Se=!1)=>{u.open({dataKey:fe,formData:D,value:ae,type:me,isGuardian:Se})},ce=fe=>{fx.prompt("Title Text","Signature",{confirmButtonText:"Confirm",cancelButtonText:"Cancel",cancelButtonClass:"cancel-btn"}).then(({value:ae})=>{ae&&Rn.set(D,fe,ae)})},O=({isHeader:fe,textAlign:ae})=>{let me=fe?"#f5f2f0":"#ffffff",Se=fe?"600":"normal",_e=fe?"center":"start",Le=fe?"center":"start";return _e=ae||_e,Le=ae||Le,`
51
+ `+c):a.stack=c}catch{}}throw a}}_request(r,o){typeof r=="string"?(o=o||{},o.url=r):o=r||{},o=qr(this.defaults,o);const{transitional:a,paramsSerializer:l,headers:c}=o;a!==void 0&&Ul.assertOptions(a,{silentJSONParsing:Sr.transitional(Sr.boolean),forcedJSONParsing:Sr.transitional(Sr.boolean),clarifyTimeoutError:Sr.transitional(Sr.boolean)},!1),l!=null&&(X.isFunction(l)?o.paramsSerializer={serialize:l}:Ul.assertOptions(l,{encode:Sr.function,serialize:Sr.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let u=c&&X.merge(c.common,c[o.method]);c&&X.forEach(["delete","get","head","post","put","patch","common"],E=>{delete c[E]}),o.headers=jt.concat(u,c);const f=[];let m=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(o)===!1||(m=m&&S.synchronous,f.unshift(S.fulfilled,S.rejected))});const g=[];this.interceptors.response.forEach(function(S){g.push(S.fulfilled,S.rejected)});let y,w=0,b;if(!m){const E=[eh.bind(this),void 0];for(E.unshift.apply(E,f),E.push.apply(E,g),b=E.length,y=Promise.resolve(o);w<b;)y=y.then(E[w++],E[w++]);return y}b=f.length;let M=o;for(w=0;w<b;){const E=f[w++],S=f[w++];try{M=E(M)}catch(N){S.call(this,N);break}}try{y=eh.call(this,M)}catch(E){return Promise.reject(E)}for(w=0,b=g.length;w<b;)y=y.then(g[w++],g[w++]);return y}getUri(r){r=qr(this.defaults,r);const o=Wp(r.baseURL,r.url);return zp(o,r.params,r.paramsSerializer)}}X.forEach(["delete","get","head","options"],function(r){Qr.prototype[r]=function(o,a){return this.request(qr(a||{},{method:r,url:o,data:(a||{}).data}))}}),X.forEach(["post","put","patch"],function(r){function o(a){return function(c,u,f){return this.request(qr(f||{},{method:r,headers:a?{"Content-Type":"multipart/form-data"}:{},url:c,data:u}))}}Qr.prototype[r]=o(),Qr.prototype[r+"Form"]=o(!0)});class Hl{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(c){o=c});const a=this;this.promise.then(l=>{if(!a._listeners)return;let c=a._listeners.length;for(;c-- >0;)a._listeners[c](l);a._listeners=null}),this.promise.then=l=>{let c;const u=new Promise(f=>{a.subscribe(f),c=f}).then(l);return u.cancel=function(){a.unsubscribe(c)},u},r(function(c,u,f){a.reason||(a.reason=new Mo(c,u,f),o(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const o=this._listeners.indexOf(r);o!==-1&&this._listeners.splice(o,1)}static source(){let r;return{token:new Hl(function(l){r=l}),cancel:r}}}function vI(e){return function(o){return e.apply(null,o)}}function BI(e){return X.isObject(e)&&e.isAxiosError===!0}const Wl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Wl).forEach(([e,r])=>{Wl[r]=e});function rh(e){const r=new Qr(e),o=Sp(Qr.prototype.request,r);return X.extend(o,Qr.prototype,r,{allOwnKeys:!0}),X.extend(o,r,null,{allOwnKeys:!0}),o.create=function(l){return rh(qr(e,l))},o}const Ct=rh(hi);Ct.Axios=Qr,Ct.CanceledError=Mo,Ct.CancelToken=Hl,Ct.isCancel=Up,Ct.VERSION=th,Ct.toFormData=Ea,Ct.AxiosError=De,Ct.Cancel=Ct.CanceledError,Ct.all=function(r){return Promise.all(r)},Ct.spread=vI,Ct.isAxiosError=BI,Ct.mergeConfig=qr,Ct.AxiosHeaders=jt,Ct.formToJSON=e=>Fp(X.isHTMLForm(e)?new FormData(e):e),Ct.getAdapter=Jp.getAdapter,Ct.HttpStatusCode=Wl,Ct.default=Ct;const DI=/#[\w*]+\|-\|((?!\|-\|).)+\|-\|((?!\|-\|).)+\|-\|/,LI=/#[\w *\&]+\|-\|((?!\|-\|).)+\|-\|/,OI=/\|-\|/g,RI=/\|-\|/;function gi(){var e=navigator.userAgent||navigator.vendor||window.opera;return!!(/android/i.test(e)||/iPad|iPhone|iPod/.test(e)&&!window.MSStream)}const VI=e=>e?Gr(e*1e3).format("MM/DD/YYYY, hh:mm A"):"--/--/---- --:-- --",Vn=e=>(t.pushScopeId("data-v-1c7e5219"),e=e(),t.popScopeId(),e),zI={class:"RecursiveComponent"},PI={key:0},$I={key:1},FI={key:0},jI={class:"label textsharp-title"},UI={key:0,style:{color:"red"}},HI={key:1},WI={class:"label choice-title"},YI={key:0,style:{color:"red"}},GI={key:2,class:"vertical-checkbox-group"},KI={key:3,class:"vertical-checkbox-group"},qI={key:5,class:"dropdownbox-block"},QI={class:"label dropdownbox-label"},ZI=["onClick"],XI={key:7,class:"date-block"},JI={class:"label date-label"},ek={key:8,class:"time-box"},tk={key:9,class:"time-block"},nk={class:"label time-label"},rk=["onClick"],ok={class:"time-box"},ik={key:11,class:"date-time-block"},ak={class:"label date-bolck-label"},sk=Vn(()=>t.createElementVNode("div",{class:"label date-time-blank-label"},"      ",-1)),lk={class:"label time-bolck-label"},ck={key:2},uk={class:"label signature-title-label font-base"},fk=["src"],dk=Vn(()=>t.createElementVNode("div",{class:"signature-x"},"X",-1)),pk={class:"signature-time"},hk={key:3},mk=Vn(()=>t.createElementVNode("div",{class:"label signature-title-label"}," Patient/Guardian Signature ",-1)),gk=["src"],yk=Vn(()=>t.createElementVNode("div",{class:"signature-x"},"X",-1)),bk={class:"signature-guardian"},wk=Vn(()=>t.createElementVNode("div",{class:"label signature-check-label"}," Click here if you are a parent or legal guardian or caregiver on behalf of the patient(you need to give your own signature). ",-1)),Ek={key:4},Ck=Vn(()=>t.createElementVNode("div",{class:"label signature-title-label"},"Attorney Signature",-1)),Sk=["src"],_k=Vn(()=>t.createElementVNode("div",{class:"signature-x"},"X",-1)),xk={key:5},Ik={class:"diagnosis-title"},kk=Vn(()=>t.createElementVNode("div",{class:"label diagnosis-title-label"},"Diagnoses",-1)),Mk={key:0,class:"diagnosis-editable"},Ak={class:"diagnosis-searchbox"},Tk={key:0,class:"diagnosis-suggestion"},Nk=["onClick"],vk=Vn(()=>t.createElementVNode("br",null,null,-1)),Bk={key:1,class:"diagnosis-list"},Dk={class:"diagnosis-item"},Lk={class:"diagnosis-item-code"},Ok={class:"diagnosis-item-comment"},Rk={key:0},Vk={key:6},zk=Vn(()=>t.createElementVNode("div",{class:"vital-sign-title"},[t.createElementVNode("div",{class:"label vital-sign-title-label"},"Vital Signs")],-1)),Pk={class:"vital-sign-box"},$k={class:"vital-sign-block"},Fk={class:"vital-sign-item"},jk={class:"vital-sign-item-title"},Uk={key:0},Hk={class:"vital-sign-item"},Wk={class:"vital-sign-item-title"},Yk={key:0},Gk={class:"vital-sign-block"},Kk={class:"vital-sign-item"},qk={class:"vital-sign-item-title"},Qk={key:0},Zk={class:"vital-sign-item"},Xk={class:"vital-sign-item-title"},Jk={key:0},e4={class:"vital-sign-box"},t4={class:"vital-sign-block"},n4={class:"vital-sign-item"},r4={class:"vital-sign-item-title"},o4={key:0},i4={class:"vital-sign-item"},a4={class:"vital-sign-item-title"},s4={key:0},l4={class:"vital-sign-block"},c4={class:"vital-sign-item"},u4={class:"vital-sign-item-title"},f4={key:0},d4={class:"vital-sign-item"},p4={class:"vital-sign-item-title"},h4={key:0},m4={key:7},g4={class:"label default-label font-base"},y4={key:1,class:"default-textarea-block"},b4=["src","onClick"],w4={key:1},E4={key:0,class:"text"},Yl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsSAAALEgHS3X78AAAAV0lEQVRYR+3SsQ0AMAgEMdh/aYZwQ3HpT0LO7zx/+/y+6UD9oQQTVAHt22CCKqB9G0xQBbRvgwmqgPZtMEEV0L4NJqgC2rfBBFVA+zaYoApo3wYTVAHtDxz6ACmSkz/0AAAAAElFTkSuQmCC",C4=t.defineComponent({__name:"RecursiveComponent",props:{formData:{type:Object,require:!0},node:{type:Array,required:!0},otherData:{type:Object,required:!0},otherTableInfo:{type:Object,required:!0},isEditable:{type:Boolean,default:!0},editability:{type:Object,default:{provider:!0,patient:!0,attorney:!0}}},setup(e){t.useCssVars(fe=>({36381630:t.unref(r).smText,"23389ef6":t.unref(r).text,"4020b84e":t.unref(r).fullWidth,ee06545c:t.unref(r).defaultStyle.marginTop,a4ffca78:t.unref(r).alignItems,"63bcf578":t.unref(r).lineHeight,"7307e135":t.unref(r).doubleLineHeight,"267f4fd9":t.unref(r).defaultStyle.paddingTop,ad323bfa:t.unref(r).defaultStyle.paddingLeft,"2c51d776":t.unref(r).DateAndTime.width,"9e4bb0b2":t.unref(r).signature.width,"509bd366":t.unref(r).signature.height,"7ce09e88":t.unref(r).signature.label.top,"4941d740":t.unref(r).signature.label.height,c6e44126:t.unref(r).signature.label.width,"70629d80":t.unref(r).signature.label.left,d2cbc9ac:t.unref(r).defaultStyle.marginLeft,d2c436c0:t.unref(r).defaultStyle.marginTop2,"9b69764e":t.unref(r).tableMinWidth,d5b7da7c:t.unref(r).diagnosis.titleFontSize,"41ff8228":t.unref(r).diagnosis.buttonFontSize,f051dc8c:t.unref(r).vitalSign.titleFontSize,"4684f827":t.unref(r).vitalSign.blockWidth,"67123bd8":t.unref(r).vitalSign.title2FontSize,e15073fc:t.unref(r).vitalSign.unitFontSize}));let r;const o=t.ref(gi());o.value?r=t.reactive(px):r=t.reactive(Cp);const l=xs().getCalendarPciker(),u=Is().getSignaturePad(),m=ks().getImageEditor(),y=Ms().getRecommendDiagnosis(),w=t.reactive({code:"",description:"",comment:"",searchResult:Array()}),b=new Set(["header1","header2","header3","header4","header5"]),M=new Set([...Array.from(b)]),E=new Set([...Array.from(b),"paragraph","divider"]),S=new Set(["table","table-row","table-cell"]),N=new Set(["atblock","sharpblock","image",...Array.from(S)]);[...Array.from(E),...Array.from(N)];const k=new Set(["DateOrDateOfService","SignersName","SignersSpecialty","SignersLicNumber","SignersNpiNumber","SignersDeaNumber","SignersEmail","FaxNumber","FacilityMainNumber","FacilityAddressInfo"]),A=fe=>{fe=fe.replace(/#/,"");const ae=fe.split(OI);return{required:ae[0].endsWith("*"),type:ae[0].replace("*","").replace("$",""),title:ae[1],placeholder:ae[2]}},B=fe=>{const ae=fe.split(RI);ae.shift(),ae.pop();const me={};let Se=ae.length;for(let _e=0;_e<Se/2;_e++)ae[2*_e]&&(me[ae[2*_e]]=ae[2*_e+1]==="checked");return me},U=e,D=t.reactive(U.formData),W=fe=>DI.test(fe)?"textSharp":LI.test(fe)?"choiceSharp":fe==="#Signature"||fe==="#Provider Signature"?"providerSignature":fe==="#Patient/Guardian Signature"?"patientSignature":fe==="#Attorney Signature"?"attorneySignature":"default",Y=/[^\w ]/g,te=fe=>{const ae=fe.replace(Y," ").split(/ /);let me="";return ae.forEach(Se=>{Se!==""&&(Se=Se.toLowerCase(),Se=Se.replace(Se[0],Se[0].toUpperCase()),me+=Se)}),me},Z=fe=>{switch(fe){case"Diagnosis":return"Diagnosis";case"Vital Sign":return"Vital Sign";default:return"default"}},K=(fe,ae)=>{const me=D[fe].valueList.filter(Se=>Se.key===ae);return(me==null?void 0:me[0])||null},Q=(fe,ae)=>{var Se;((Se=K(fe,ae))==null?void 0:Se.value)===D[fe].dataList[ae].value?D[fe].valueList=D[fe].valueList.filter(_e=>_e.key!==ae):D[fe].valueList.push({key:ae,value:D[fe].dataList[ae].value})},se=fe=>{l.open({formData:D,dataKey:fe})},we=(fe,ae,me,Se=!1)=>{u.open({dataKey:fe,formData:D,value:ae,type:me,isGuardian:Se})},ce=fe=>{fx.prompt("Title Text","Signature",{confirmButtonText:"Confirm",cancelButtonText:"Cancel",cancelButtonClass:"cancel-btn"}).then(({value:ae})=>{ae&&Rn.set(D,fe,ae)})},O=({isHeader:fe,textAlign:ae})=>{let me=fe?"#f5f2f0":"#ffffff",Se=fe?"600":"normal",_e=fe?"center":"start",Le=fe?"center":"start";return _e=ae||_e,Le=ae||Le,`
52
52
  justify-content: ${Le};
53
53
  background-color: ${me};
54
54
  text-align: ${_e};
@@ -71,7 +71,7 @@ function print() { __p += __j.call(arguments, '') }
71
71
  `)},t.toDisplayString(D[j.key][Oe][Ge]),5))],6))),256))],6))),256))],6)):t.createCommentVNode("",!0),j.type==="image"?(t.openBlock(),t.createElementBlock("img",{key:5,class:t.normalizeClass(j.type),style:t.normalizeStyle(j.style?`
72
72
  width: ${j.style.width};
73
73
  height: ${j.style.height};
74
- `:""),src:e.otherData[j.alt]?e.otherData[j.alt]:j.src,onClick:ue=>R(j.alt,e.otherData[j.alt]?e.otherData[j.alt]:j.src,j.href==="markable"||j.href==="markeable")},null,14,b4)):t.createCommentVNode("",!0),j.type==="divider"?(t.openBlock(),t.createElementBlock("hr",{key:6,class:t.normalizeClass(j.type)},null,2)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),"text"in j?(t.openBlock(),t.createElementBlock("div",w4,[j.text?(t.openBlock(),t.createElementBlock("div",E4,t.toDisplayString(j.text),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])}),256))])}}}),Ao=(e,r)=>{const o=e.__vccOpts||e;for(const[a,l]of r)o[a]=l;return o},Gl=Ao(C4,[["__scopeId","data-v-d21f79ed"]]),oh="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='21'%20height='21'%20viewBox='0%200%2021%2021'%3e%3cpath%20id='calendarCancel'%20d='M28.5,9.615,26.385,7.5,18,15.885,9.615,7.5,7.5,9.615,15.885,18,7.5,26.385,9.615,28.5,18,20.115,26.385,28.5,28.5,26.385,20.115,18Z'%20transform='translate(-7.5%20-7.5)'/%3e%3c/svg%3e",S4={class:"calendar_box"},_4={class:"date"},x4={class:"calendar_chioce"},I4=Ao(t.defineComponent({__name:"CalendarPicker",setup(e){t.useCssVars(N=>({"1ff71142":S.width,"75c7c5aa":S.height,"8055585e":S.top,"3ad15d0b":S.left}));const r=t.ref(gi()),o=t.ref(null),a=t.ref(),c=xs().getCalendarPciker(),u=N=>{a.value&&a.value.selectDate(N)},f=t.reactive({status:!1,value:new Date}),m=N=>N.startsWith("0")?parseInt(N).toString():N,g=()=>{c.close()},y=N=>{N.target===o.value&&c.close()},w=N=>{const k=N.getMonth()+1,A=N.getDate(),B=N.getFullYear(),U=k>=10?`${k}`:`0${k}`,D=A>=10?`${A}`:`0${A}`;return`${U}/${D}/${B}`},b=N=>{if(/(0[1-9]|1[0-2])\/(0[1-9]|[1-2][0-9]|3[0-1])\/[0-9]{4}/.test(N)){const k=N.split("/"),A=parseInt(k[0])-1,B=parseInt(k[1]),U=parseInt(k[2]);return new Date(U,A,B)}else throw Error("The string format error!")},M=()=>{Rn.set(c.options.formData,c.options.dataKey,w(f.value)),g()},E=()=>{g()},S=t.reactive({top:"",left:"",width:"",height:""});return t.onMounted(()=>{if(a.value){const A=Rn.get(c.options.formData,c.options.dataKey);if(A){const B=b(A);f.value=B}}const k=Br().getDocumentTemplate();r.value?(S.top="0",S.left="0",S.width="100vw",S.height="100vh"):k.relatedDom?(S.top=`${k.relatedDom.offsetTop}px`,S.left=`${k.relatedDom.offsetLeft}px`,S.width=`${k.relatedDom.clientWidth}px`,S.height=`${k.relatedDom.clientHeight}px`):(S.top="0",S.left="0",S.width="100vw",S.height="100vh")}),(N,k)=>{const A=wr,B=Kd,U=vS;return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{ref_key:"pickerView",ref:o,class:t.normalizeClass(r.value?"calendar_view calendar_view-mobile":"calendar_view calendar_view-ps"),onClick:y},[t.createElementVNode("div",S4,[t.createElementVNode("div",{class:"calendar_close"},[t.createElementVNode("img",{class:"image-editor-close_icon",src:oh,onClick:g})]),t.createVNode(U,{ref_key:"calendar",ref:a,modelValue:f.value,"onUpdate:modelValue":k[5]||(k[5]=D=>f.value=D),class:"calendar"},{header:t.withCtx(({date:D})=>[t.createVNode(B,null,{default:t.withCtx(()=>[t.createVNode(A,{size:"small",onClick:k[0]||(k[0]=W=>u("prev-year"))},{default:t.withCtx(()=>[t.createTextVNode(" << ")]),_:1}),t.createVNode(A,{size:"small",onClick:k[1]||(k[1]=W=>u("prev-month"))},{default:t.withCtx(()=>[t.createTextVNode(" < ")]),_:1})]),_:1}),t.createElementVNode("span",null,t.toDisplayString(D),1),t.createVNode(B,null,{default:t.withCtx(()=>[t.createVNode(A,{size:"small",onClick:k[2]||(k[2]=W=>u("today"))},{default:t.withCtx(()=>[t.createTextVNode("Today")]),_:1}),t.createVNode(A,{size:"small",onClick:k[3]||(k[3]=W=>u("next-month"))},{default:t.withCtx(()=>[t.createTextVNode(" > ")]),_:1}),t.createVNode(A,{size:"small",onClick:k[4]||(k[4]=W=>u("next-year"))},{default:t.withCtx(()=>[t.createTextVNode(" >> ")]),_:1})]),_:1})]),"date-cell":t.withCtx(({data:D})=>[t.createElementVNode("div",_4,[t.createElementVNode("p",{class:t.normalizeClass(D.isSelected?"is-selected":"")},t.toDisplayString(m(D.day.split("-")[2])),3)])]),_:1},8,["modelValue"]),t.createElementVNode("div",x4,[t.createVNode(A,{class:"calendar_chioce_button calendar_cancel",onClick:E},{default:t.withCtx(()=>[t.createTextVNode("Cancel")]),_:1}),t.createVNode(A,{class:"calendar_chioce_button calendar_confirm",onClick:M},{default:t.withCtx(()=>[t.createTextVNode("Confirm")]),_:1})])])],2)])}}}),[["__scopeId","data-v-a63a4b66"]]);var Ia={exports:{}};/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */Ia.exports,function(e,r){(function(o){var a=r,l=e&&e.exports==a&&e,c=typeof On=="object"&&On;(c.global===c||c.window===c)&&(o=c);var u=function(E){this.message=E};u.prototype=new Error,u.prototype.name="InvalidCharacterError";var f=function(E){throw new u(E)},m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=/[\t\n\f\r ]/g,y=function(E){E=String(E).replace(g,"");var S=E.length;S%4==0&&(E=E.replace(/==?$/,""),S=E.length),(S%4==1||/[^+a-zA-Z0-9/]/.test(E))&&f("Invalid character: the string to be decoded is not correctly encoded.");for(var N=0,k,A,B="",U=-1;++U<S;)A=m.indexOf(E.charAt(U)),k=N%4?k*64+A:A,N++%4&&(B+=String.fromCharCode(255&k>>(-2*N&6)));return B},w=function(E){E=String(E),/[^\0-\xFF]/.test(E)&&f("The string to be encoded contains characters outside of the Latin1 range.");for(var S=E.length%3,N="",k=-1,A,B,U,D,W=E.length-S;++k<W;)A=E.charCodeAt(k)<<16,B=E.charCodeAt(++k)<<8,U=E.charCodeAt(++k),D=A+B+U,N+=m.charAt(D>>18&63)+m.charAt(D>>12&63)+m.charAt(D>>6&63)+m.charAt(D&63);return S==2?(A=E.charCodeAt(k)<<8,B=E.charCodeAt(++k),D=A+B,N+=m.charAt(D>>10)+m.charAt(D>>4&63)+m.charAt(D<<2&63)+"="):S==1&&(D=E.charCodeAt(k),N+=m.charAt(D>>2)+m.charAt(D<<4&63)+"=="),N},b={encode:w,decode:y,version:"1.0.0"};if(a&&!a.nodeType)if(l)l.exports=b;else for(var M in b)b.hasOwnProperty(M)&&(a[M]=b[M]);else o.base64=b})(On)}(Ia,Ia.exports),Ia.exports;var ih={},ka={};ka.byteLength=A4,ka.toByteArray=N4,ka.fromByteArray=D4;for(var zn=[],un=[],k4=typeof Uint8Array<"u"?Uint8Array:Array,Kl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",To=0,M4=Kl.length;To<M4;++To)zn[To]=Kl[To],un[Kl.charCodeAt(To)]=To;un[45]=62,un[95]=63;function ah(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=e.indexOf("=");o===-1&&(o=r);var a=o===r?0:4-o%4;return[o,a]}function A4(e){var r=ah(e),o=r[0],a=r[1];return(o+a)*3/4-a}function T4(e,r,o){return(r+o)*3/4-o}function N4(e){var r,o=ah(e),a=o[0],l=o[1],c=new k4(T4(e,a,l)),u=0,f=l>0?a-4:a,m;for(m=0;m<f;m+=4)r=un[e.charCodeAt(m)]<<18|un[e.charCodeAt(m+1)]<<12|un[e.charCodeAt(m+2)]<<6|un[e.charCodeAt(m+3)],c[u++]=r>>16&255,c[u++]=r>>8&255,c[u++]=r&255;return l===2&&(r=un[e.charCodeAt(m)]<<2|un[e.charCodeAt(m+1)]>>4,c[u++]=r&255),l===1&&(r=un[e.charCodeAt(m)]<<10|un[e.charCodeAt(m+1)]<<4|un[e.charCodeAt(m+2)]>>2,c[u++]=r>>8&255,c[u++]=r&255),c}function v4(e){return zn[e>>18&63]+zn[e>>12&63]+zn[e>>6&63]+zn[e&63]}function B4(e,r,o){for(var a,l=[],c=r;c<o;c+=3)a=(e[c]<<16&16711680)+(e[c+1]<<8&65280)+(e[c+2]&255),l.push(v4(a));return l.join("")}function D4(e){for(var r,o=e.length,a=o%3,l=[],c=16383,u=0,f=o-a;u<f;u+=c)l.push(B4(e,u,u+c>f?f:u+c));return a===1?(r=e[o-1],l.push(zn[r>>2]+zn[r<<4&63]+"==")):a===2&&(r=(e[o-2]<<8)+e[o-1],l.push(zn[r>>10]+zn[r>>4&63]+zn[r<<2&63]+"=")),l.join("")}var ql={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ql.read=function(e,r,o,a,l){var c,u,f=l*8-a-1,m=(1<<f)-1,g=m>>1,y=-7,w=o?l-1:0,b=o?-1:1,M=e[r+w];for(w+=b,c=M&(1<<-y)-1,M>>=-y,y+=f;y>0;c=c*256+e[r+w],w+=b,y-=8);for(u=c&(1<<-y)-1,c>>=-y,y+=a;y>0;u=u*256+e[r+w],w+=b,y-=8);if(c===0)c=1-g;else{if(c===m)return u?NaN:(M?-1:1)*(1/0);u=u+Math.pow(2,a),c=c-g}return(M?-1:1)*u*Math.pow(2,c-a)},ql.write=function(e,r,o,a,l,c){var u,f,m,g=c*8-l-1,y=(1<<g)-1,w=y>>1,b=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=a?0:c-1,E=a?1:-1,S=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,u=y):(u=Math.floor(Math.log(r)/Math.LN2),r*(m=Math.pow(2,-u))<1&&(u--,m*=2),u+w>=1?r+=b/m:r+=b*Math.pow(2,1-w),r*m>=2&&(u++,m/=2),u+w>=y?(f=0,u=y):u+w>=1?(f=(r*m-1)*Math.pow(2,l),u=u+w):(f=r*Math.pow(2,w-1)*Math.pow(2,l),u=0));l>=8;e[o+M]=f&255,M+=E,f/=256,l-=8);for(u=u<<l|f,g+=l;g>0;e[o+M]=u&255,M+=E,u/=256,g-=8);e[o+M-E]|=S*128};/*!
74
+ `:""),src:e.otherData[j.alt]?e.otherData[j.alt]:j.src,onClick:ue=>R(j.alt,e.otherData[j.alt]?e.otherData[j.alt]:j.src,j.href==="markable"||j.href==="markeable")},null,14,b4)):t.createCommentVNode("",!0),j.type==="divider"?(t.openBlock(),t.createElementBlock("hr",{key:6,class:t.normalizeClass(j.type)},null,2)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),"text"in j?(t.openBlock(),t.createElementBlock("div",w4,[j.text?(t.openBlock(),t.createElementBlock("div",E4,t.toDisplayString(j.text),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])}),256))])}}}),Ao=(e,r)=>{const o=e.__vccOpts||e;for(const[a,l]of r)o[a]=l;return o},Gl=Ao(C4,[["__scopeId","data-v-1c7e5219"]]),oh="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='21'%20height='21'%20viewBox='0%200%2021%2021'%3e%3cpath%20id='calendarCancel'%20d='M28.5,9.615,26.385,7.5,18,15.885,9.615,7.5,7.5,9.615,15.885,18,7.5,26.385,9.615,28.5,18,20.115,26.385,28.5,28.5,26.385,20.115,18Z'%20transform='translate(-7.5%20-7.5)'/%3e%3c/svg%3e",S4={class:"calendar_box"},_4={class:"date"},x4={class:"calendar_chioce"},I4=Ao(t.defineComponent({__name:"CalendarPicker",setup(e){t.useCssVars(N=>({"1ff71142":S.width,"75c7c5aa":S.height,"8055585e":S.top,"3ad15d0b":S.left}));const r=t.ref(gi()),o=t.ref(null),a=t.ref(),c=xs().getCalendarPciker(),u=N=>{a.value&&a.value.selectDate(N)},f=t.reactive({status:!1,value:new Date}),m=N=>N.startsWith("0")?parseInt(N).toString():N,g=()=>{c.close()},y=N=>{N.target===o.value&&c.close()},w=N=>{const k=N.getMonth()+1,A=N.getDate(),B=N.getFullYear(),U=k>=10?`${k}`:`0${k}`,D=A>=10?`${A}`:`0${A}`;return`${U}/${D}/${B}`},b=N=>{if(/(0[1-9]|1[0-2])\/(0[1-9]|[1-2][0-9]|3[0-1])\/[0-9]{4}/.test(N)){const k=N.split("/"),A=parseInt(k[0])-1,B=parseInt(k[1]),U=parseInt(k[2]);return new Date(U,A,B)}else throw Error("The string format error!")},M=()=>{Rn.set(c.options.formData,c.options.dataKey,w(f.value)),g()},E=()=>{g()},S=t.reactive({top:"",left:"",width:"",height:""});return t.onMounted(()=>{if(a.value){const A=Rn.get(c.options.formData,c.options.dataKey);if(A){const B=b(A);f.value=B}}const k=Br().getDocumentTemplate();r.value?(S.top="0",S.left="0",S.width="100vw",S.height="100vh"):k.relatedDom?(S.top=`${k.relatedDom.offsetTop}px`,S.left=`${k.relatedDom.offsetLeft}px`,S.width=`${k.relatedDom.clientWidth}px`,S.height=`${k.relatedDom.clientHeight}px`):(S.top="0",S.left="0",S.width="100vw",S.height="100vh")}),(N,k)=>{const A=wr,B=Kd,U=vS;return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{ref_key:"pickerView",ref:o,class:t.normalizeClass(r.value?"calendar_view calendar_view-mobile":"calendar_view calendar_view-ps"),onClick:y},[t.createElementVNode("div",S4,[t.createElementVNode("div",{class:"calendar_close"},[t.createElementVNode("img",{class:"image-editor-close_icon",src:oh,onClick:g})]),t.createVNode(U,{ref_key:"calendar",ref:a,modelValue:f.value,"onUpdate:modelValue":k[5]||(k[5]=D=>f.value=D),class:"calendar"},{header:t.withCtx(({date:D})=>[t.createVNode(B,null,{default:t.withCtx(()=>[t.createVNode(A,{size:"small",onClick:k[0]||(k[0]=W=>u("prev-year"))},{default:t.withCtx(()=>[t.createTextVNode(" << ")]),_:1}),t.createVNode(A,{size:"small",onClick:k[1]||(k[1]=W=>u("prev-month"))},{default:t.withCtx(()=>[t.createTextVNode(" < ")]),_:1})]),_:1}),t.createElementVNode("span",null,t.toDisplayString(D),1),t.createVNode(B,null,{default:t.withCtx(()=>[t.createVNode(A,{size:"small",onClick:k[2]||(k[2]=W=>u("today"))},{default:t.withCtx(()=>[t.createTextVNode("Today")]),_:1}),t.createVNode(A,{size:"small",onClick:k[3]||(k[3]=W=>u("next-month"))},{default:t.withCtx(()=>[t.createTextVNode(" > ")]),_:1}),t.createVNode(A,{size:"small",onClick:k[4]||(k[4]=W=>u("next-year"))},{default:t.withCtx(()=>[t.createTextVNode(" >> ")]),_:1})]),_:1})]),"date-cell":t.withCtx(({data:D})=>[t.createElementVNode("div",_4,[t.createElementVNode("p",{class:t.normalizeClass(D.isSelected?"is-selected":"")},t.toDisplayString(m(D.day.split("-")[2])),3)])]),_:1},8,["modelValue"]),t.createElementVNode("div",x4,[t.createVNode(A,{class:"calendar_chioce_button calendar_cancel",onClick:E},{default:t.withCtx(()=>[t.createTextVNode("Cancel")]),_:1}),t.createVNode(A,{class:"calendar_chioce_button calendar_confirm",onClick:M},{default:t.withCtx(()=>[t.createTextVNode("Confirm")]),_:1})])])],2)])}}}),[["__scopeId","data-v-a63a4b66"]]);var Ia={exports:{}};/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */Ia.exports,function(e,r){(function(o){var a=r,l=e&&e.exports==a&&e,c=typeof On=="object"&&On;(c.global===c||c.window===c)&&(o=c);var u=function(E){this.message=E};u.prototype=new Error,u.prototype.name="InvalidCharacterError";var f=function(E){throw new u(E)},m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=/[\t\n\f\r ]/g,y=function(E){E=String(E).replace(g,"");var S=E.length;S%4==0&&(E=E.replace(/==?$/,""),S=E.length),(S%4==1||/[^+a-zA-Z0-9/]/.test(E))&&f("Invalid character: the string to be decoded is not correctly encoded.");for(var N=0,k,A,B="",U=-1;++U<S;)A=m.indexOf(E.charAt(U)),k=N%4?k*64+A:A,N++%4&&(B+=String.fromCharCode(255&k>>(-2*N&6)));return B},w=function(E){E=String(E),/[^\0-\xFF]/.test(E)&&f("The string to be encoded contains characters outside of the Latin1 range.");for(var S=E.length%3,N="",k=-1,A,B,U,D,W=E.length-S;++k<W;)A=E.charCodeAt(k)<<16,B=E.charCodeAt(++k)<<8,U=E.charCodeAt(++k),D=A+B+U,N+=m.charAt(D>>18&63)+m.charAt(D>>12&63)+m.charAt(D>>6&63)+m.charAt(D&63);return S==2?(A=E.charCodeAt(k)<<8,B=E.charCodeAt(++k),D=A+B,N+=m.charAt(D>>10)+m.charAt(D>>4&63)+m.charAt(D<<2&63)+"="):S==1&&(D=E.charCodeAt(k),N+=m.charAt(D>>2)+m.charAt(D<<4&63)+"=="),N},b={encode:w,decode:y,version:"1.0.0"};if(a&&!a.nodeType)if(l)l.exports=b;else for(var M in b)b.hasOwnProperty(M)&&(a[M]=b[M]);else o.base64=b})(On)}(Ia,Ia.exports),Ia.exports;var ih={},ka={};ka.byteLength=A4,ka.toByteArray=N4,ka.fromByteArray=D4;for(var zn=[],un=[],k4=typeof Uint8Array<"u"?Uint8Array:Array,Kl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",To=0,M4=Kl.length;To<M4;++To)zn[To]=Kl[To],un[Kl.charCodeAt(To)]=To;un[45]=62,un[95]=63;function ah(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var o=e.indexOf("=");o===-1&&(o=r);var a=o===r?0:4-o%4;return[o,a]}function A4(e){var r=ah(e),o=r[0],a=r[1];return(o+a)*3/4-a}function T4(e,r,o){return(r+o)*3/4-o}function N4(e){var r,o=ah(e),a=o[0],l=o[1],c=new k4(T4(e,a,l)),u=0,f=l>0?a-4:a,m;for(m=0;m<f;m+=4)r=un[e.charCodeAt(m)]<<18|un[e.charCodeAt(m+1)]<<12|un[e.charCodeAt(m+2)]<<6|un[e.charCodeAt(m+3)],c[u++]=r>>16&255,c[u++]=r>>8&255,c[u++]=r&255;return l===2&&(r=un[e.charCodeAt(m)]<<2|un[e.charCodeAt(m+1)]>>4,c[u++]=r&255),l===1&&(r=un[e.charCodeAt(m)]<<10|un[e.charCodeAt(m+1)]<<4|un[e.charCodeAt(m+2)]>>2,c[u++]=r>>8&255,c[u++]=r&255),c}function v4(e){return zn[e>>18&63]+zn[e>>12&63]+zn[e>>6&63]+zn[e&63]}function B4(e,r,o){for(var a,l=[],c=r;c<o;c+=3)a=(e[c]<<16&16711680)+(e[c+1]<<8&65280)+(e[c+2]&255),l.push(v4(a));return l.join("")}function D4(e){for(var r,o=e.length,a=o%3,l=[],c=16383,u=0,f=o-a;u<f;u+=c)l.push(B4(e,u,u+c>f?f:u+c));return a===1?(r=e[o-1],l.push(zn[r>>2]+zn[r<<4&63]+"==")):a===2&&(r=(e[o-2]<<8)+e[o-1],l.push(zn[r>>10]+zn[r>>4&63]+zn[r<<2&63]+"=")),l.join("")}var ql={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ql.read=function(e,r,o,a,l){var c,u,f=l*8-a-1,m=(1<<f)-1,g=m>>1,y=-7,w=o?l-1:0,b=o?-1:1,M=e[r+w];for(w+=b,c=M&(1<<-y)-1,M>>=-y,y+=f;y>0;c=c*256+e[r+w],w+=b,y-=8);for(u=c&(1<<-y)-1,c>>=-y,y+=a;y>0;u=u*256+e[r+w],w+=b,y-=8);if(c===0)c=1-g;else{if(c===m)return u?NaN:(M?-1:1)*(1/0);u=u+Math.pow(2,a),c=c-g}return(M?-1:1)*u*Math.pow(2,c-a)},ql.write=function(e,r,o,a,l,c){var u,f,m,g=c*8-l-1,y=(1<<g)-1,w=y>>1,b=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=a?0:c-1,E=a?1:-1,S=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,u=y):(u=Math.floor(Math.log(r)/Math.LN2),r*(m=Math.pow(2,-u))<1&&(u--,m*=2),u+w>=1?r+=b/m:r+=b*Math.pow(2,1-w),r*m>=2&&(u++,m/=2),u+w>=y?(f=0,u=y):u+w>=1?(f=(r*m-1)*Math.pow(2,l),u=u+w):(f=r*Math.pow(2,w-1)*Math.pow(2,l),u=0));l>=8;e[o+M]=f&255,M+=E,f/=256,l-=8);for(u=u<<l|f,g+=l;g>0;e[o+M]=u&255,M+=E,u/=256,g-=8);e[o+M-E]|=S*128};/*!
75
75
  * The buffer module from node.js, for the browser.
76
76
  *
77
77
  * @author Feross Aboukhadijeh <https://feross.org>