@aitmed/aitmed-document-template 1.41.0 → 1.42.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.
|
@@ -14379,7 +14379,7 @@ function va() {
|
|
|
14379
14379
|
var e = navigator.userAgent || navigator.vendor || window.opera;
|
|
14380
14380
|
return !!(/android/i.test(e) || /iPad|iPhone|iPod/.test(e) && !window.MSStream);
|
|
14381
14381
|
}
|
|
14382
|
-
const ma = (e) => (Vs("data-v-
|
|
14382
|
+
const ma = (e) => (Vs("data-v-a918ff1e"), e = e(), Ws(), e), bO = { class: "RecursiveComponent" }, wO = { key: 0 }, EO = { key: 1 }, _O = { key: 0 }, SO = { class: "label textsharp-title" }, IO = {
|
|
14383
14383
|
key: 0,
|
|
14384
14384
|
style: { color: "red" }
|
|
14385
14385
|
}, xO = { key: 1 }, AO = { class: "label choice-title" }, CO = {
|
|
@@ -14473,31 +14473,31 @@ const ma = (e) => (Vs("data-v-85c77805"), e = e(), Ws(), e), bO = { class: "Recu
|
|
|
14473
14473
|
},
|
|
14474
14474
|
setup(e) {
|
|
14475
14475
|
aa((ye) => ({
|
|
14476
|
-
|
|
14477
|
-
"
|
|
14478
|
-
|
|
14479
|
-
|
|
14480
|
-
|
|
14481
|
-
|
|
14482
|
-
|
|
14483
|
-
|
|
14484
|
-
"
|
|
14485
|
-
|
|
14486
|
-
|
|
14487
|
-
"
|
|
14488
|
-
|
|
14489
|
-
"
|
|
14490
|
-
"
|
|
14491
|
-
|
|
14492
|
-
"
|
|
14493
|
-
"
|
|
14494
|
-
"
|
|
14495
|
-
|
|
14496
|
-
|
|
14497
|
-
"
|
|
14498
|
-
"
|
|
14499
|
-
"
|
|
14500
|
-
"
|
|
14476
|
+
"4780dd1c": _(n).fullWidth,
|
|
14477
|
+
"6e6f6fc4": _(n).defaultStyle.marginTop,
|
|
14478
|
+
dbb6e094: _(n).alignItems,
|
|
14479
|
+
b4679d30: _(n).text,
|
|
14480
|
+
"9a740b94": _(n).lineHeight,
|
|
14481
|
+
b0a961f2: _(n).atBlockWidth,
|
|
14482
|
+
bdad4eb2: _(n).doubleLineHeight,
|
|
14483
|
+
"214017b2": _(n).defaultStyle.paddingTop,
|
|
14484
|
+
"06ca7116": _(n).defaultStyle.paddingLeft,
|
|
14485
|
+
"7fe48b13": _(n).DateAndTime.width,
|
|
14486
|
+
bc5a0c16: _(n).signature.width,
|
|
14487
|
+
"7ebd4ad8": _(n).signature.height,
|
|
14488
|
+
"0a1aac0a": _(n).signature.label.top,
|
|
14489
|
+
"7e5ca35c": _(n).signature.label.height,
|
|
14490
|
+
"2371818a": _(n).signature.label.width,
|
|
14491
|
+
"39370bf2": _(n).signature.label.left,
|
|
14492
|
+
"5f7abf78": _(n).defaultStyle.marginLeft,
|
|
14493
|
+
"5f7e88ee": _(n).defaultStyle.marginTop2,
|
|
14494
|
+
"105052a7": _(n).tableMinWidth,
|
|
14495
|
+
"5e04b710": _(n).diagnosis.titleFontSize,
|
|
14496
|
+
d59930cc: _(n).diagnosis.buttonFontSize,
|
|
14497
|
+
"50b7b608": _(n).vitalSign.titleFontSize,
|
|
14498
|
+
"0f596699": _(n).vitalSign.blockWidth,
|
|
14499
|
+
"8b73bd6c": _(n).vitalSign.title2FontSize,
|
|
14500
|
+
"74ca5ff4": _(n).vitalSign.unitFontSize
|
|
14501
14501
|
}));
|
|
14502
14502
|
let n;
|
|
14503
14503
|
const r = he(va());
|
|
@@ -15027,7 +15027,7 @@ const ma = (e) => (Vs("data-v-85c77805"), e = e(), Ws(), e), bO = { class: "Recu
|
|
|
15027
15027
|
${e.editability.attorney ? "signature-editable" : "signature-diseditable"}
|
|
15028
15028
|
`),
|
|
15029
15029
|
onClick: pe[4] || (pe[4] = (ve) => e.editability.attorney && be(
|
|
15030
|
-
"
|
|
15030
|
+
"attSignatureId",
|
|
15031
15031
|
e.otherData.attorneySignature,
|
|
15032
15032
|
_(vn).attorney,
|
|
15033
15033
|
!1
|
|
@@ -15425,7 +15425,7 @@ const ma = (e) => (Vs("data-v-85c77805"), e = e(), Ws(), e), bO = { class: "Recu
|
|
|
15425
15425
|
for (const [i, s] of n)
|
|
15426
15426
|
r[i] = s;
|
|
15427
15427
|
return r;
|
|
15428
|
-
}, Ec = /* @__PURE__ */ ya(q8, [["__scopeId", "data-v-
|
|
15428
|
+
}, Ec = /* @__PURE__ */ ya(q8, [["__scopeId", "data-v-a918ff1e"]]), Dv = "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", Q8 = { class: "calendar_box" }, Z8 = { class: "date" }, X8 = { class: "calendar_chioce" }, J8 = /* @__PURE__ */ Ie({
|
|
15429
15429
|
__name: "CalendarPicker",
|
|
15430
15430
|
setup(e) {
|
|
15431
15431
|
aa((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[Up]=this[Up]={accessors:{}}).accessors,l=this.prototype;function c(u){const f=pi(u);a[f]||(gI(l,u),a[f]=!0)}return X.isArray(r)?r.forEach(c):c(r),this}}Ut.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),X.reduceDescriptors(Ut.prototype,({value:e},r)=>{let o=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(a){this[o]=a}}}),X.freezeMethods(Ut);function zl(e,r){const o=this||di,a=r||o,l=Ut.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 Wp(e){return!!(e&&e.__CANCEL__)}function ko(e,r,o){Be.call(this,e??"canceled",Be.ERR_CANCELED,r,o),this.name="CanceledError"}X.inherits(ko,Be,{__CANCEL__:!0});function Hp(e,r,o){const a=o.config.validateStatus;!o.status||!a||a(o.status)?e(o):r(new Be("Request failed with status code "+o.status,[Be.ERR_BAD_REQUEST,Be.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function yI(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function bI(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 y=Date.now(),g=a[c];u||(u=y),o[l]=m,a[l]=y;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),y-u<r)return;const M=g&&y-g;return M?Math.round(b*1e3/M):void 0}}function wI(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=bI(50,250);return wI(c=>{const u=c.loaded,f=c.lengthComputable?c.total:void 0,m=u-a,y=l(m),g=u<=f;a=u;const w={loaded:u,total:f,progress:f?u/f:void 0,bytes:m,rate:y||void 0,estimated:y&&f&&g?(f-u)/y:void 0,event:c,lengthComputable:f!=null};w[r?"download":"upload"]=!0,e(w)},o)},EI=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}}(),CI=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 SI(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function xI(e,r){return r?e.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):e}function Yp(e,r){return e&&!SI(r)?xI(e,r):r}const Gp=e=>e instanceof Ut?{...e}:e;function Kr(e,r){r=r||{};const o={};function a(y,g,w){return X.isPlainObject(y)&&X.isPlainObject(g)?X.merge.call({caseless:w},y,g):X.isPlainObject(g)?X.merge({},g):X.isArray(g)?g.slice():g}function l(y,g,w){if(X.isUndefined(g)){if(!X.isUndefined(y))return a(void 0,y,w)}else return a(y,g,w)}function c(y,g){if(!X.isUndefined(g))return a(void 0,g)}function u(y,g){if(X.isUndefined(g)){if(!X.isUndefined(y))return a(void 0,y)}else return a(void 0,g)}function f(y,g,w){if(w in r)return a(y,g);if(w in e)return a(void 0,y)}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:(y,g)=>l(Gp(y),Gp(g),!0)};return X.forEach(Object.keys(Object.assign({},e,r)),function(g){const w=m[g]||l,b=w(e[g],r[g],g);X.isUndefined(b)&&w!==f||(o[g]=b)}),o}const Kp=e=>{const r=Kr({},e);let{data:o,withXSRFToken:a,xsrfHeaderName:l,xsrfCookieName:c,headers:u,auth:f}=r;r.headers=u=Ut.from(u),r.url=Pp(Yp(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[y,...g]=m?m.split(";").map(w=>w.trim()).filter(Boolean):[];u.setContentType([y||"multipart/form-data",...g].join("; "))}}if(In.hasStandardBrowserEnv&&(a&&X.isFunction(a)&&(a=a(r)),a||a!==!1&&EI(r.url))){const y=l&&c&&CI.read(c);y&&u.set(l,y)}return r},_I=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(o,a){const l=Kp(e);let c=l.data;const u=Ut.from(l.headers).normalize();let{responseType:f}=l,m;function y(){l.cancelToken&&l.cancelToken.unsubscribe(m),l.signal&&l.signal.removeEventListener("abort",m)}let g=new XMLHttpRequest;g.open(l.method.toUpperCase(),l.url,!0),g.timeout=l.timeout;function w(){if(!g)return;const M=Ut.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),S={data:!f||f==="text"||f==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:M,config:e,request:g};Hp(function(k){o(k),y()},function(k){a(k),y()},S),g=null}"onloadend"in g?g.onloadend=w:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(w)},g.onabort=function(){g&&(a(new Be("Request aborted",Be.ECONNABORTED,l,g)),g=null)},g.onerror=function(){a(new Be("Network Error",Be.ERR_NETWORK,l,g)),g=null},g.ontimeout=function(){let E=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const S=l.transitional||Fp;l.timeoutErrorMessage&&(E=l.timeoutErrorMessage),a(new Be(E,S.clarifyTimeoutError?Be.ETIMEDOUT:Be.ECONNABORTED,l,g)),g=null},c===void 0&&u.setContentType(null),"setRequestHeader"in g&&X.forEach(u.toJSON(),function(E,S){g.setRequestHeader(S,E)}),X.isUndefined(l.withCredentials)||(g.withCredentials=!!l.withCredentials),f&&f!=="json"&&(g.responseType=l.responseType),typeof l.onDownloadProgress=="function"&&g.addEventListener("progress",Sa(l.onDownloadProgress,!0)),typeof l.onUploadProgress=="function"&&g.upload&&g.upload.addEventListener("progress",Sa(l.onUploadProgress)),(l.cancelToken||l.signal)&&(m=M=>{g&&(a(!M||M.type?new ko(null,e,g):M),g.abort(),g=null)},l.cancelToken&&l.cancelToken.subscribe(m),l.signal&&(l.signal.aborted?m():l.signal.addEventListener("abort",m)));const b=yI(l.url);if(b&&In.protocols.indexOf(b)===-1){a(new Be("Unsupported protocol "+b+":",Be.ERR_BAD_REQUEST,e));return}g.send(c||null)})},II=(e,r)=>{let o=new AbortController,a;const l=function(m){if(!a){a=!0,u();const y=m instanceof Error?m:this.reason;o.abort(y instanceof Be?y:new ko(y instanceof Error?y.message:y))}};let c=r&&setTimeout(()=>{l(new Be(`timeout ${r} of ms exceeded`,Be.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}]},kI=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},MI=async function*(e,r,o){for await(const a of e)yield*kI(ArrayBuffer.isView(a)?a:await o(String(a)),r)},qp=(e,r,o,a,l)=>{const c=MI(e,r,l);let u=0;return new ReadableStream({type:"bytes",async pull(f){const{done:m,value:y}=await c.next();if(m){f.close(),a();return}let g=y.byteLength;o&&o(u+=g),f.enqueue(new Uint8Array(y))},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}))},xa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Zp=xa&&typeof ReadableStream=="function",Pl=xa&&(typeof TextEncoder=="function"?(e=>r=>e.encode(r))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),AI=Zp&&(()=>{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})(),Xp=64*1024,$l=Zp&&!!(()=>{try{return X.isReadableStream(new Response("").body)}catch{}})(),_a={stream:$l&&(e=>e.body)};xa&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(r=>{!_a[r]&&(_a[r]=X.isFunction(e[r])?o=>o[r]():(o,a)=>{throw new Be(`Response type '${r}' is not supported`,Be.ERR_NOT_SUPPORT,a)})})})(new Response);const TI=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 Pl(e)).byteLength},NI=async(e,r)=>{const o=X.toFiniteNumber(e.getContentLength());return o??TI(r)},Fl={http:J_,xhr:_I,fetch:xa&&(async e=>{let{url:r,method:o,data:a,signal:l,cancelToken:c,timeout:u,onDownloadProgress:f,onUploadProgress:m,responseType:y,headers:g,withCredentials:w="same-origin",fetchOptions:b}=Kp(e);y=y?(y+"").toLowerCase():"text";let[M,E]=l||c||u?II([l,c],u):[],S,N;const k=()=>{!S&&setTimeout(()=>{M&&M.unsubscribe()}),S=!0};let T;try{if(m&&AI&&o!=="get"&&o!=="head"&&(T=await NI(g,a))!==0){let G=new Request(r,{method:"POST",body:a,duplex:"half"}),H;X.isFormData(a)&&(H=G.headers.get("content-type"))&&g.setContentType(H),G.body&&(a=qp(G.body,Xp,Qp(T,Sa(m)),null,Pl))}X.isString(w)||(w=w?"cors":"omit"),N=new Request(r,{...b,signal:M,method:o.toUpperCase(),headers:g.normalize().toJSON(),body:a,duplex:"half",withCredentials:w});let B=await fetch(N);const W=$l&&(y==="stream"||y==="response");if($l&&(f||W)){const G={};["status","statusText","headers"].forEach(te=>{G[te]=B[te]});const H=X.toFiniteNumber(B.headers.get("content-length"));B=new Response(qp(B.body,Xp,f&&Qp(H,Sa(f,!0)),W&&k,Pl),G)}y=y||"text";let D=await _a[X.findKey(_a,y)||"text"](B,e);return!W&&k(),E&&E(),await new Promise((G,H)=>{Hp(G,H,{data:D,headers:Ut.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 Be("Network Error",Be.ERR_NETWORK,e,N),{cause:B.cause||B}):Be.from(B,B&&B.code,e,N)}})};X.forEach(Fl,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const Jp=e=>`- ${e}`,vI=e=>X.isFunction(e)||e===null||e===!1,eh={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,!vI(o)&&(a=Fl[(u=String(o)).toLowerCase()],a===void 0))throw new Be(`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(Jp).join(`
|
|
50
50
|
`):" "+Jp(c[0]):"as no adapter specified";throw new Be("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return a},adapters:Fl};function jl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ko(null,e)}function th(e){return jl(e),e.headers=Ut.from(e.headers),e.data=zl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),eh.getAdapter(e.adapter||di.adapter)(e).then(function(a){return jl(e),a.data=zl.call(e,e.transformResponse,a),a.headers=Ut.from(a.headers),a},function(a){return Wp(a)||(jl(e),a&&a.response&&(a.response.data=zl.call(e,e.transformResponse,a.response),a.response.headers=Ut.from(a.response.headers))),Promise.reject(a)})}const nh="1.7.2",Ul={};["object","boolean","number","function","string","symbol"].forEach((e,r)=>{Ul[e]=function(a){return typeof a===e||"a"+(r<1?"n ":" ")+e}});const rh={};Ul.transitional=function(r,o,a){function l(c,u){return"[Axios v"+nh+"] Transitional option '"+c+"'"+u+(a?". "+a:"")}return(c,u,f)=>{if(r===!1)throw new Be(l(u," has been removed"+(o?" in "+o:"")),Be.ERR_DEPRECATED);return o&&!rh[u]&&(rh[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 BI(e,r,o){if(typeof e!="object")throw new Be("options must be an object",Be.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 Be("option "+c+" must be "+m,Be.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new Be("Unknown option "+c,Be.ERR_BAD_OPTION)}}const Wl={assertOptions:BI,validators:Ul},Cr=Wl.validators;class qr{constructor(r){this.defaults=r,this.interceptors={request:new $p,response:new $p}}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=Kr(this.defaults,o);const{transitional:a,paramsSerializer:l,headers:c}=o;a!==void 0&&Wl.assertOptions(a,{silentJSONParsing:Cr.transitional(Cr.boolean),forcedJSONParsing:Cr.transitional(Cr.boolean),clarifyTimeoutError:Cr.transitional(Cr.boolean)},!1),l!=null&&(X.isFunction(l)?o.paramsSerializer={serialize:l}:Wl.assertOptions(l,{encode:Cr.function,serialize:Cr.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=Ut.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 y=[];this.interceptors.response.forEach(function(S){y.push(S.fulfilled,S.rejected)});let g,w=0,b;if(!m){const E=[th.bind(this),void 0];for(E.unshift.apply(E,f),E.push.apply(E,y),b=E.length,g=Promise.resolve(o);w<b;)g=g.then(E[w++],E[w++]);return g}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{g=th.call(this,M)}catch(E){return Promise.reject(E)}for(w=0,b=y.length;w<b;)g=g.then(y[w++],y[w++]);return g}getUri(r){r=Kr(this.defaults,r);const o=Yp(r.baseURL,r.url);return Pp(o,r.params,r.paramsSerializer)}}X.forEach(["delete","get","head","options"],function(r){qr.prototype[r]=function(o,a){return this.request(Kr(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(Kr(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 ko(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 DI(e){return function(o){return e.apply(null,o)}}function LI(e){return X.isObject(e)&&e.isAxiosError===!0}const Yl={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(Yl).forEach(([e,r])=>{Yl[r]=e});function oh(e){const r=new qr(e),o=xp(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 oh(Kr(e,l))},o}const St=oh(di);St.Axios=qr,St.CanceledError=ko,St.CancelToken=Hl,St.isCancel=Wp,St.VERSION=nh,St.toFormData=Ea,St.AxiosError=Be,St.Cancel=St.CanceledError,St.all=function(r){return Promise.all(r)},St.spread=DI,St.isAxiosError=LI,St.mergeConfig=Kr,St.AxiosHeaders=Ut,St.formToJSON=e=>jp(X.isHTMLForm(e)?new FormData(e):e),St.getAdapter=eh.getAdapter,St.HttpStatusCode=Yl,St.default=St;const OI=/#[\w*]+\|-\|((?!\|-\|).)+\|-\|((?!\|-\|).)+\|-\|/,RI=/#[\w *\&]+\|-\|((?!\|-\|).)+\|-\|/,VI=/\|-\|/g,zI=/\|-\|/;function hi(){var e=navigator.userAgent||navigator.vendor||window.opera;return!!(/android/i.test(e)||/iPad|iPhone|iPod/.test(e)&&!window.MSStream)}const mi=e=>(t.pushScopeId("data-v-85c77805"),e=e(),t.popScopeId(),e),PI={class:"RecursiveComponent"},$I={key:0},FI={key:1},jI={key:0},UI={class:"label textsharp-title"},WI={key:0,style:{color:"red"}},HI={key:1},YI={class:"label choice-title"},GI={key:0,style:{color:"red"}},KI={key:2,class:"vertical-checkbox-group"},qI={key:3,class:"vertical-checkbox-group"},QI={key:5,class:"dropdownbox-block"},ZI={class:"label dropdownbox-label"},XI=["onClick"],JI={key:7,class:"date-block"},e4={class:"label date-label"},t4={key:8,class:"time-box"},n4={key:9,class:"time-block"},r4={class:"label time-label"},o4=["onClick"],i4={class:"time-box"},a4={key:11,class:"date-time-block"},s4={class:"label date-bolck-label"},l4=mi(()=>t.createElementVNode("div",{class:"label date-time-blank-label"}," ",-1)),c4={class:"label time-bolck-label"},u4={key:2},f4=["src"],d4={key:3},p4=["src"],h4={class:"signature-guardian"},m4=mi(()=>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)),g4={key:4},y4=["src"],b4={key:5},w4={class:"diagnosis-title"},E4=mi(()=>t.createElementVNode("div",{class:"label diagnosis-title-label"},"Diagnoses",-1)),C4={key:0,class:"diagnosis-editable"},S4={class:"diagnosis-searchbox"},x4={key:0,class:"diagnosis-suggestion"},_4=["onClick"],I4=mi(()=>t.createElementVNode("br",null,null,-1)),k4={key:1,class:"diagnosis-list"},M4={class:"diagnosis-item"},A4={class:"diagnosis-item-code"},T4={class:"diagnosis-item-comment"},N4={key:0},v4={key:6},B4=mi(()=>t.createElementVNode("div",{class:"vital-sign-title"},[t.createElementVNode("div",{class:"label vital-sign-title-label"},"Vital Signs")],-1)),D4={class:"vital-sign-box"},L4={class:"vital-sign-block"},O4={class:"vital-sign-item"},R4={class:"vital-sign-item-title"},V4={key:0},z4={class:"vital-sign-item"},P4={class:"vital-sign-item-title"},$4={key:0},F4={class:"vital-sign-block"},j4={class:"vital-sign-item"},U4={class:"vital-sign-item-title"},W4={key:0},H4={class:"vital-sign-item"},Y4={class:"vital-sign-item-title"},G4={key:0},K4={class:"vital-sign-box"},q4={class:"vital-sign-block"},Q4={class:"vital-sign-item"},Z4={class:"vital-sign-item-title"},X4={key:0},J4={class:"vital-sign-item"},ek={class:"vital-sign-item-title"},tk={key:0},nk={class:"vital-sign-block"},rk={class:"vital-sign-item"},ok={class:"vital-sign-item-title"},ik={key:0},ak={class:"vital-sign-item"},sk={class:"vital-sign-item-title"},lk={key:0},ck={key:7},uk={class:"label default-label"},fk={key:1,class:"default-textarea-block"},dk=["src","onClick"],pk={key:1},hk={key:0,class:"text"},Gl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsSAAALEgHS3X78AAAAV0lEQVRYR+3SsQ0AMAgEMdh/aYZwQ3HpT0LO7zx/+/y+6UD9oQQTVAHt22CCKqB9G0xQBbRvgwmqgPZtMEEV0L4NJqgC2rfBBFVA+zaYoApo3wYTVAHtDxz6ACmSkz/0AAAAAElFTkSuQmCC",mk=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=>({acc12300:t.unref(r).fullWidth,"72317e40":t.unref(r).defaultStyle.marginTop,"73d82ad2":t.unref(r).alignItems,"50a95184":t.unref(r).text,d70cd55c:t.unref(r).lineHeight,"2a36d9ba":t.unref(r).atBlockWidth,"5fab2ec3":t.unref(r).doubleLineHeight,b43b72ea:t.unref(r).defaultStyle.paddingTop,"1662c191":t.unref(r).defaultStyle.paddingLeft,dcc50f12:t.unref(r).DateAndTime.width,f2201f4e:t.unref(r).signature.width,"3d3f20f4":t.unref(r).signature.height,dd645f24:t.unref(r).signature.label.top,"19497f6e":t.unref(r).signature.label.height,"7542da9f":t.unref(r).signature.label.width,cf2f17e4:t.unref(r).signature.label.left,"15fd11dc":t.unref(r).defaultStyle.marginLeft,"1600db52":t.unref(r).defaultStyle.marginTop2,"343f920b":t.unref(r).tableMinWidth,14870974:t.unref(r).diagnosis.titleFontSize,a2093c94:t.unref(r).diagnosis.buttonFontSize,"073a086c":t.unref(r).vitalSign.titleFontSize,"6e8aceb5":t.unref(r).vitalSign.blockWidth,"57e3c934":t.unref(r).vitalSign.title2FontSize,"657b9de0":t.unref(r).vitalSign.unitFontSize}));let r;const o=t.ref(hi());o.value?r=t.reactive(m_):r=t.reactive(Sp);const l=_s().getCalendarPciker(),u=Is().getSignaturePad(),m=ks().getImageEditor(),g=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"]),T=fe=>{fe=fe.replace(/#/,"");const se=fe.split(VI);return{required:se[0].endsWith("*"),type:se[0].replace("*","").replace("$",""),title:se[1],placeholder:se[2]}},B=fe=>{const se=fe.split(zI);se.shift(),se.pop();const ye={};let ge=se.length;for(let ke=0;ke<ge/2;ke++)ye[se[2*ke]]=se[2*ke+1]==="checked";return ye},W=e,D=t.reactive(W.formData),G=fe=>OI.test(fe)?"textSharp":RI.test(fe)?"choiceSharp":fe==="#Signature"||fe==="#Provider Signature"?"providerSignature":fe==="#Patient/Guardian Signature"?"patientSignature":fe==="#Attorney Signature"?"attorneySignature":"default",H=/[^\w ]/g,te=fe=>{const se=fe.replace(H," ").split(/ /);let ye="";return se.forEach(ge=>{ge!==""&&(ge=ge.toLowerCase(),ge=ge.replace(ge[0],ge[0].toUpperCase()),ye+=ge)}),ye},K=fe=>{switch(fe){case"Diagnosis":return"Diagnosis";case"Vital Sign":return"Vital Sign";default:return"default"}},q=(fe,se)=>{const ye=D[fe].valueList.filter(ge=>ge.key===se);return(ye==null?void 0:ye[0])||null},Q=(fe,se)=>{var ge;((ge=q(fe,se))==null?void 0:ge.value)===D[fe].dataList[se].value?D[fe].valueList=D[fe].valueList.filter(ke=>ke.key!==se):D[fe].valueList.push({key:se,value:D[fe].dataList[se].value})},ne=fe=>{l.open({formData:D,dataKey:fe})},de=(fe,se,ye,ge=!1)=>{u.open({dataKey:fe,formData:D,value:se,type:ye,isGuardian:ge})},le=fe=>{p_.prompt("Title Text","Signature",{confirmButtonText:"Confirm",cancelButtonText:"Cancel",cancelButtonClass:"cancel-btn"}).then(({value:se})=>{se&&Rn.set(D,fe,se)})},L=({isHeader:fe,textAlign:se})=>{let ye=fe?"#f5f2f0":"#ffffff",ge=fe?"600":"normal",ke=fe?"center":"start",Ve=fe?"center":"start";return ke=se||ke,Ve=se||Ve,`
|
|
51
|
+
`+c):a.stack=c}catch{}}throw a}}_request(r,o){typeof r=="string"?(o=o||{},o.url=r):o=r||{},o=Kr(this.defaults,o);const{transitional:a,paramsSerializer:l,headers:c}=o;a!==void 0&&Wl.assertOptions(a,{silentJSONParsing:Cr.transitional(Cr.boolean),forcedJSONParsing:Cr.transitional(Cr.boolean),clarifyTimeoutError:Cr.transitional(Cr.boolean)},!1),l!=null&&(X.isFunction(l)?o.paramsSerializer={serialize:l}:Wl.assertOptions(l,{encode:Cr.function,serialize:Cr.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=Ut.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 y=[];this.interceptors.response.forEach(function(S){y.push(S.fulfilled,S.rejected)});let g,w=0,b;if(!m){const E=[th.bind(this),void 0];for(E.unshift.apply(E,f),E.push.apply(E,y),b=E.length,g=Promise.resolve(o);w<b;)g=g.then(E[w++],E[w++]);return g}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{g=th.call(this,M)}catch(E){return Promise.reject(E)}for(w=0,b=y.length;w<b;)g=g.then(y[w++],y[w++]);return g}getUri(r){r=Kr(this.defaults,r);const o=Yp(r.baseURL,r.url);return Pp(o,r.params,r.paramsSerializer)}}X.forEach(["delete","get","head","options"],function(r){qr.prototype[r]=function(o,a){return this.request(Kr(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(Kr(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 ko(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 DI(e){return function(o){return e.apply(null,o)}}function LI(e){return X.isObject(e)&&e.isAxiosError===!0}const Yl={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(Yl).forEach(([e,r])=>{Yl[r]=e});function oh(e){const r=new qr(e),o=xp(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 oh(Kr(e,l))},o}const St=oh(di);St.Axios=qr,St.CanceledError=ko,St.CancelToken=Hl,St.isCancel=Wp,St.VERSION=nh,St.toFormData=Ea,St.AxiosError=Be,St.Cancel=St.CanceledError,St.all=function(r){return Promise.all(r)},St.spread=DI,St.isAxiosError=LI,St.mergeConfig=Kr,St.AxiosHeaders=Ut,St.formToJSON=e=>jp(X.isHTMLForm(e)?new FormData(e):e),St.getAdapter=eh.getAdapter,St.HttpStatusCode=Yl,St.default=St;const OI=/#[\w*]+\|-\|((?!\|-\|).)+\|-\|((?!\|-\|).)+\|-\|/,RI=/#[\w *\&]+\|-\|((?!\|-\|).)+\|-\|/,VI=/\|-\|/g,zI=/\|-\|/;function hi(){var e=navigator.userAgent||navigator.vendor||window.opera;return!!(/android/i.test(e)||/iPad|iPhone|iPod/.test(e)&&!window.MSStream)}const mi=e=>(t.pushScopeId("data-v-a918ff1e"),e=e(),t.popScopeId(),e),PI={class:"RecursiveComponent"},$I={key:0},FI={key:1},jI={key:0},UI={class:"label textsharp-title"},WI={key:0,style:{color:"red"}},HI={key:1},YI={class:"label choice-title"},GI={key:0,style:{color:"red"}},KI={key:2,class:"vertical-checkbox-group"},qI={key:3,class:"vertical-checkbox-group"},QI={key:5,class:"dropdownbox-block"},ZI={class:"label dropdownbox-label"},XI=["onClick"],JI={key:7,class:"date-block"},e4={class:"label date-label"},t4={key:8,class:"time-box"},n4={key:9,class:"time-block"},r4={class:"label time-label"},o4=["onClick"],i4={class:"time-box"},a4={key:11,class:"date-time-block"},s4={class:"label date-bolck-label"},l4=mi(()=>t.createElementVNode("div",{class:"label date-time-blank-label"}," ",-1)),c4={class:"label time-bolck-label"},u4={key:2},f4=["src"],d4={key:3},p4=["src"],h4={class:"signature-guardian"},m4=mi(()=>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)),g4={key:4},y4=["src"],b4={key:5},w4={class:"diagnosis-title"},E4=mi(()=>t.createElementVNode("div",{class:"label diagnosis-title-label"},"Diagnoses",-1)),C4={key:0,class:"diagnosis-editable"},S4={class:"diagnosis-searchbox"},x4={key:0,class:"diagnosis-suggestion"},_4=["onClick"],I4=mi(()=>t.createElementVNode("br",null,null,-1)),k4={key:1,class:"diagnosis-list"},M4={class:"diagnosis-item"},A4={class:"diagnosis-item-code"},T4={class:"diagnosis-item-comment"},N4={key:0},v4={key:6},B4=mi(()=>t.createElementVNode("div",{class:"vital-sign-title"},[t.createElementVNode("div",{class:"label vital-sign-title-label"},"Vital Signs")],-1)),D4={class:"vital-sign-box"},L4={class:"vital-sign-block"},O4={class:"vital-sign-item"},R4={class:"vital-sign-item-title"},V4={key:0},z4={class:"vital-sign-item"},P4={class:"vital-sign-item-title"},$4={key:0},F4={class:"vital-sign-block"},j4={class:"vital-sign-item"},U4={class:"vital-sign-item-title"},W4={key:0},H4={class:"vital-sign-item"},Y4={class:"vital-sign-item-title"},G4={key:0},K4={class:"vital-sign-box"},q4={class:"vital-sign-block"},Q4={class:"vital-sign-item"},Z4={class:"vital-sign-item-title"},X4={key:0},J4={class:"vital-sign-item"},ek={class:"vital-sign-item-title"},tk={key:0},nk={class:"vital-sign-block"},rk={class:"vital-sign-item"},ok={class:"vital-sign-item-title"},ik={key:0},ak={class:"vital-sign-item"},sk={class:"vital-sign-item-title"},lk={key:0},ck={key:7},uk={class:"label default-label"},fk={key:1,class:"default-textarea-block"},dk=["src","onClick"],pk={key:1},hk={key:0,class:"text"},Gl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsSAAALEgHS3X78AAAAV0lEQVRYR+3SsQ0AMAgEMdh/aYZwQ3HpT0LO7zx/+/y+6UD9oQQTVAHt22CCKqB9G0xQBbRvgwmqgPZtMEEV0L4NJqgC2rfBBFVA+zaYoApo3wYTVAHtDxz6ACmSkz/0AAAAAElFTkSuQmCC",mk=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=>({"4780dd1c":t.unref(r).fullWidth,"6e6f6fc4":t.unref(r).defaultStyle.marginTop,dbb6e094:t.unref(r).alignItems,b4679d30:t.unref(r).text,"9a740b94":t.unref(r).lineHeight,b0a961f2:t.unref(r).atBlockWidth,bdad4eb2:t.unref(r).doubleLineHeight,"214017b2":t.unref(r).defaultStyle.paddingTop,"06ca7116":t.unref(r).defaultStyle.paddingLeft,"7fe48b13":t.unref(r).DateAndTime.width,bc5a0c16:t.unref(r).signature.width,"7ebd4ad8":t.unref(r).signature.height,"0a1aac0a":t.unref(r).signature.label.top,"7e5ca35c":t.unref(r).signature.label.height,"2371818a":t.unref(r).signature.label.width,"39370bf2":t.unref(r).signature.label.left,"5f7abf78":t.unref(r).defaultStyle.marginLeft,"5f7e88ee":t.unref(r).defaultStyle.marginTop2,"105052a7":t.unref(r).tableMinWidth,"5e04b710":t.unref(r).diagnosis.titleFontSize,d59930cc:t.unref(r).diagnosis.buttonFontSize,"50b7b608":t.unref(r).vitalSign.titleFontSize,"0f596699":t.unref(r).vitalSign.blockWidth,"8b73bd6c":t.unref(r).vitalSign.title2FontSize,"74ca5ff4":t.unref(r).vitalSign.unitFontSize}));let r;const o=t.ref(hi());o.value?r=t.reactive(m_):r=t.reactive(Sp);const l=_s().getCalendarPciker(),u=Is().getSignaturePad(),m=ks().getImageEditor(),g=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"]),T=fe=>{fe=fe.replace(/#/,"");const se=fe.split(VI);return{required:se[0].endsWith("*"),type:se[0].replace("*","").replace("$",""),title:se[1],placeholder:se[2]}},B=fe=>{const se=fe.split(zI);se.shift(),se.pop();const ye={};let ge=se.length;for(let ke=0;ke<ge/2;ke++)ye[se[2*ke]]=se[2*ke+1]==="checked";return ye},W=e,D=t.reactive(W.formData),G=fe=>OI.test(fe)?"textSharp":RI.test(fe)?"choiceSharp":fe==="#Signature"||fe==="#Provider Signature"?"providerSignature":fe==="#Patient/Guardian Signature"?"patientSignature":fe==="#Attorney Signature"?"attorneySignature":"default",H=/[^\w ]/g,te=fe=>{const se=fe.replace(H," ").split(/ /);let ye="";return se.forEach(ge=>{ge!==""&&(ge=ge.toLowerCase(),ge=ge.replace(ge[0],ge[0].toUpperCase()),ye+=ge)}),ye},K=fe=>{switch(fe){case"Diagnosis":return"Diagnosis";case"Vital Sign":return"Vital Sign";default:return"default"}},q=(fe,se)=>{const ye=D[fe].valueList.filter(ge=>ge.key===se);return(ye==null?void 0:ye[0])||null},Q=(fe,se)=>{var ge;((ge=q(fe,se))==null?void 0:ge.value)===D[fe].dataList[se].value?D[fe].valueList=D[fe].valueList.filter(ke=>ke.key!==se):D[fe].valueList.push({key:se,value:D[fe].dataList[se].value})},ne=fe=>{l.open({formData:D,dataKey:fe})},de=(fe,se,ye,ge=!1)=>{u.open({dataKey:fe,formData:D,value:se,type:ye,isGuardian:ge})},le=fe=>{p_.prompt("Title Text","Signature",{confirmButtonText:"Confirm",cancelButtonText:"Cancel",cancelButtonClass:"cancel-btn"}).then(({value:se})=>{se&&Rn.set(D,fe,se)})},L=({isHeader:fe,textAlign:se})=>{let ye=fe?"#f5f2f0":"#ffffff",ge=fe?"600":"normal",ke=fe?"center":"start",Ve=fe?"center":"start";return ke=se||ke,Ve=se||Ve,`
|
|
52
52
|
justify-content: ${Ve};
|
|
53
53
|
background-color: ${ye};
|
|
54
54
|
text-align: ${ke};
|
|
@@ -62,7 +62,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
62
62
|
`),onClick:se[2]||(se[2]=ce=>e.editability.patient&&de("patdSignatureId",e.otherData.patientSignature,t.unref(Vt).patient,D.needGuardianSignature))},[t.createElementVNode("img",{class:"signature-img",src:e.otherData.patientSignature||Gl},null,8,p4),t.createElementVNode("div",{class:"signature-x",style:t.normalizeStyle(`${o.value?"font-size: 2.98vh":""}`)},"X",4)],2),t.createElementVNode("div",h4,[t.createVNode(Ve,{modelValue:D.needGuardianSignature,"onUpdate:modelValue":se[3]||(se[3]=ce=>D.needGuardianSignature=ce),disabled:!e.editability.patient},null,8,["modelValue","disabled"]),m4])])):t.createCommentVNode("",!0),G(U.value)==="attorneySignature"?(t.openBlock(),t.createElementBlock("div",g4,[t.createElementVNode("div",{class:"label signature-title-label",style:t.normalizeStyle(`${o.value?"font-size: 1.98vh":""}`)}," Attorney Signature ",4),t.createElementVNode("div",{class:t.normalizeClass(`
|
|
63
63
|
signature-view
|
|
64
64
|
${e.editability.attorney?"signature-editable":"signature-diseditable"}
|
|
65
|
-
`),onClick:se[4]||(se[4]=ce=>e.editability.attorney&&de("
|
|
65
|
+
`),onClick:se[4]||(se[4]=ce=>e.editability.attorney&&de("attSignatureId",e.otherData.attorneySignature,t.unref(Vt).attorney,!1))},[t.createElementVNode("img",{class:"signature-img",src:e.otherData.attorneySignature||Gl},null,8,y4),t.createElementVNode("div",{class:"signature-x",style:t.normalizeStyle(`${o.value?"font-size: 2.98vh":""}`)},"X",4)],2)])):t.createCommentVNode("",!0),G(U.value)==="default"&&K(U.value.replace(/#/,""))==="Diagnosis"?(t.openBlock(),t.createElementBlock("div",b4,[t.createElementVNode("div",w4,[E4,e.isEditable?(t.openBlock(),t.createElementBlock("div",{key:0,class:"label diagnosis-recommend-label",onClick:Se},"Recommend Diagnoses")):t.createCommentVNode("",!0)]),e.isEditable?(t.openBlock(),t.createElementBlock("div",C4,[t.createElementVNode("div",S4,[t.createVNode(ye,{class:"diagnosis-search","suffix-icon":t.unref(_w),placeholder:"Search",modelValue:w.code,"onUpdate:modelValue":se[5]||(se[5]=ce=>w.code=ce),onInput:ae},null,8,["suffix-icon","modelValue"]),w.searchResult.length>0?(t.openBlock(),t.createElementBlock("div",x4,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(w.searchResult,ce=>(t.openBlock(),t.createElementBlock("div",{class:"diagnosis-suggestion-item",onClick:je=>pe(ce)},t.toDisplayString(ce.codeAndDescription),9,_4))),256))])):t.createCommentVNode("",!0),t.createVNode(ye,{class:"diagnosis-description",placeholder:"Description",modelValue:w.description,"onUpdate:modelValue":se[6]||(se[6]=ce=>w.description=ce)},null,8,["modelValue"])]),t.createVNode(ye,{class:"diagnosis-comment",placeholder:"Enter here",resize:"none",autosize:{minRows:2,maxRows:5},type:"textarea",modelValue:w.comment,"onUpdate:modelValue":se[7]||(se[7]=ce=>w.comment=ce)},null,8,["modelValue"]),I4,t.createVNode(tt,{class:"diagnosis-button",icon:t.unref(gw),onClick:Ee},{default:t.withCtx(()=>[t.createTextVNode("Add More")]),_:1},8,["icon"])])):t.createCommentVNode("",!0),e.isEditable&&D.Diagnosis.length||!e.isEditable?(t.openBlock(),t.createElementBlock("div",k4,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.Diagnosis,(ce,je)=>(t.openBlock(),t.createElementBlock("div",M4,[t.createElementVNode("div",A4,[e.isEditable?(t.openBlock(),t.createBlock(nt,{key:0,class:"diagnosis-delete",size:"16px",color:"#d81e06",onClick:bt=>Ae(je)},{default:t.withCtx(()=>[t.createVNode(t.unref(Gs))]),_:2},1032,["onClick"])):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(ce.code)+" - "+t.toDisplayString(ce.description),1)]),t.createElementVNode("div",T4,t.toDisplayString(ce.comment),1)]))),256)),!e.isEditable&&!D.Diagnosis.length?(t.openBlock(),t.createElementBlock("span",N4,"No Content")):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),G(U.value)==="default"&&K(U.value.replace(/#/,""))==="Vital Sign"?(t.openBlock(),t.createElementBlock("div",v4,[B4,t.createElementVNode("div",D4,[t.createElementVNode("div",L4,[t.createElementVNode("div",O4,[t.createElementVNode("div",R4,[t.createTextVNode("Blood Pressure"),o.value?(t.openBlock(),t.createElementBlock("span",V4," (mmHg)")):t.createCommentVNode("",!0)]),t.createVNode(ye,{modelValue:D.BloodPressure,"onUpdate:modelValue":se[8]||(se[8]=ce=>D.BloodPressure=ce),class:"vital-sign-item-input",readonly:!e.isEditable},t.createSlots({_:2},[o.value?void 0:{name:"suffix",fn:t.withCtx(()=>[t.createVNode(it,{class:"vital-sign-item-input-suffix"},{default:t.withCtx(()=>[t.createTextVNode("mmHg")]),_:1})]),key:"0"}]),1032,["modelValue","readonly"])]),t.createElementVNode("div",z4,[t.createElementVNode("div",P4,[t.createTextVNode("Heart Rate"),o.value?(t.openBlock(),t.createElementBlock("span",$4," (bpm)")):t.createCommentVNode("",!0)]),t.createVNode(ye,{modelValue:D.HeartRate,"onUpdate:modelValue":se[9]||(se[9]=ce=>D.HeartRate=ce),class:"vital-sign-item-input",readonly:!e.isEditable},t.createSlots({_:2},[o.value?void 0:{name:"suffix",fn:t.withCtx(()=>[t.createVNode(it,{class:"vital-sign-item-input-suffix"},{default:t.withCtx(()=>[t.createTextVNode("bpm")]),_:1})]),key:"0"}]),1032,["modelValue","readonly"])])]),t.createElementVNode("div",F4,[t.createElementVNode("div",j4,[t.createElementVNode("div",U4,[t.createTextVNode("Respiratory Rate"),o.value?(t.openBlock(),t.createElementBlock("span",W4," (breaths/min)")):t.createCommentVNode("",!0)]),t.createVNode(ye,{modelValue:D.RespiratoryRate,"onUpdate:modelValue":se[10]||(se[10]=ce=>D.RespiratoryRate=ce),class:"vital-sign-item-input",readonly:!e.isEditable},t.createSlots({_:2},[o.value?void 0:{name:"suffix",fn:t.withCtx(()=>[t.createVNode(it,{class:"vital-sign-item-input-suffix"})]),key:"0"}]),1032,["modelValue","readonly"])]),t.createElementVNode("div",H4,[t.createElementVNode("div",Y4,[t.createTextVNode("Pulse Oximetry"),o.value?(t.openBlock(),t.createElementBlock("span",G4," (O₂ %)")):t.createCommentVNode("",!0)]),t.createVNode(ye,{modelValue:D.PulseOximetry,"onUpdate:modelValue":se[11]||(se[11]=ce=>D.PulseOximetry=ce),class:"vital-sign-item-input",readonly:!e.isEditable},t.createSlots({_:2},[o.value?void 0:{name:"suffix",fn:t.withCtx(()=>[t.createVNode(it,{class:"vital-sign-item-input-suffix"},{default:t.withCtx(()=>[t.createTextVNode("O₂ %")]),_:1})]),key:"0"}]),1032,["modelValue","readonly"])])])]),t.createElementVNode("div",K4,[t.createElementVNode("div",q4,[t.createElementVNode("div",Q4,[t.createElementVNode("div",Z4,[t.createTextVNode("Temperature"),o.value?(t.openBlock(),t.createElementBlock("span",X4," (°F/°C)")):t.createCommentVNode("",!0)]),t.createVNode(ye,{modelValue:D.Temperature,"onUpdate:modelValue":se[12]||(se[12]=ce=>D.Temperature=ce),class:"vital-sign-item-input",readonly:!e.isEditable},t.createSlots({_:2},[o.value?void 0:{name:"suffix",fn:t.withCtx(()=>[t.createVNode(it,{class:"vital-sign-item-input-suffix"},{default:t.withCtx(()=>[t.createTextVNode("°F/°C")]),_:1})]),key:"0"}]),1032,["modelValue","readonly"])]),t.createElementVNode("div",J4,[t.createElementVNode("div",ek,[t.createTextVNode("Height"),o.value?(t.openBlock(),t.createElementBlock("span",tk," (ft/in)")):t.createCommentVNode("",!0)]),t.createVNode(ye,{modelValue:D.Height,"onUpdate:modelValue":se[13]||(se[13]=ce=>D.Height=ce),class:"vital-sign-item-input",readonly:!e.isEditable},t.createSlots({_:2},[o.value?void 0:{name:"suffix",fn:t.withCtx(()=>[t.createVNode(it,{class:"vital-sign-item-input-suffix"},{default:t.withCtx(()=>[t.createTextVNode("ft/in")]),_:1})]),key:"0"}]),1032,["modelValue","readonly"])])]),t.createElementVNode("div",nk,[t.createElementVNode("div",rk,[t.createElementVNode("div",ok,[t.createTextVNode("Weight"),o.value?(t.openBlock(),t.createElementBlock("span",ik," (lb)")):t.createCommentVNode("",!0)]),t.createVNode(ye,{modelValue:D.Weight,"onUpdate:modelValue":se[14]||(se[14]=ce=>D.Weight=ce),class:"vital-sign-item-input",readonly:!e.isEditable},t.createSlots({_:2},[o.value?void 0:{name:"suffix",fn:t.withCtx(()=>[t.createVNode(it,{class:"vital-sign-item-input-suffix"},{default:t.withCtx(()=>[t.createTextVNode("lb")]),_:1})]),key:"0"}]),1032,["modelValue","readonly"])]),t.createElementVNode("div",ak,[t.createElementVNode("div",sk,[t.createTextVNode("BMI"),o.value?(t.openBlock(),t.createElementBlock("span",lk," (kg/m²)")):t.createCommentVNode("",!0)]),t.createVNode(ye,{modelValue:D.BodyMassIndexBmi,"onUpdate:modelValue":se[15]||(se[15]=ce=>D.BodyMassIndexBmi=ce),class:"vital-sign-item-input",readonly:!e.isEditable},t.createSlots({_:2},[o.value?void 0:{name:"suffix",fn:t.withCtx(()=>[t.createVNode(it,{class:"vital-sign-item-input-suffix"},{default:t.withCtx(()=>[t.createTextVNode("kg/m²")]),_:1})]),key:"0"}]),1032,["modelValue","readonly"])])])])])):t.createCommentVNode("",!0),G(U.value)==="default"&&K(U.value.replace(/#/,""))==="default"?(t.openBlock(),t.createElementBlock("div",ck,[t.createElementVNode("div",uk,t.toDisplayString(U.value.replace(/#/,"")),1),e.isEditable?(t.openBlock(),t.createBlock(ye,{key:0,class:"default-textarea",placeholder:T(U.value).placeholder||"Enter here",modelValue:D[te(U.value.replace(/#/,""))],"onUpdate:modelValue":ce=>D[te(U.value.replace(/#/,""))]=ce,resize:"none",autosize:{minRows:2,maxRows:5},type:"textarea"},null,8,["placeholder","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0),e.isEditable?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",fk,t.toDisplayString(D[te(U.value.replace(/#/,""))]||"No Content"),1))])):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),U.type==="table"?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(U.type),style:t.normalizeStyle(U.width==="auto"?`width: ${U.width};`:`width: ${t.unref(r).fullWidth}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(U.children,(ce,je)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(ce.type),style:t.normalizeStyle(U.width==="auto"?`width: ${U.width};`:`width: ${t.unref(r).fullWidth}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(ce.children,(bt,rt)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(bt.type),style:t.normalizeStyle(L({isHeader:bt.isHeader,textAlign:bt.textAlign,key:U.key,index:rt})+`
|
|
66
66
|
width: ${W.otherTableInfo[U.key].tableWidthArray[rt]};
|
|
67
67
|
flex-shrink: ${W.otherTableInfo[U.key].flexShrinks[rt]};
|
|
68
68
|
`)},[e.isEditable?(t.openBlock(),t.createBlock(ye,{key:0,class:"table-input aitmed-editor-custom-input",style:t.normalizeStyle(L({isHeader:bt.isHeader,textAlign:bt.textAlign})),modelValue:D[U.key][je][rt],"onUpdate:modelValue":Qe=>D[U.key][je][rt]=Qe,placeholder:""},null,8,["style","modelValue","onUpdate:modelValue"])):t.createCommentVNode("",!0),e.isEditable?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:1,class:"label table-label",style:t.normalizeStyle(`
|
|
@@ -71,7 +71,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
71
71
|
`)},t.toDisplayString(D[U.key][je][rt]),5))],6))),256))],6))),256))],6)):t.createCommentVNode("",!0),U.type==="image"?(t.openBlock(),t.createElementBlock("img",{key:5,class:t.normalizeClass(U.type),style:t.normalizeStyle(U.style?`
|
|
72
72
|
width: ${U.style.width};
|
|
73
73
|
height: ${U.style.height};
|
|
74
|
-
`:""),src:e.otherData[U.alt]?e.otherData[U.alt]:U.src,onClick:ce=>R(U.alt,e.otherData[U.alt]?e.otherData[U.alt]:U.src,U.href==="markable"||U.href==="markeable")},null,14,dk)):t.createCommentVNode("",!0),U.type==="divider"?(t.openBlock(),t.createElementBlock("hr",{key:6,class:t.normalizeClass(U.type)},null,2)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),"text"in U?(t.openBlock(),t.createElementBlock("div",pk,[U.text?(t.openBlock(),t.createElementBlock("div",hk,t.toDisplayString(U.text),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]))),256))])}}}),gi=(e,r)=>{const o=e.__vccOpts||e;for(const[a,l]of r)o[a]=l;return o},Kl=gi(mk,[["__scopeId","data-v-
|
|
74
|
+
`:""),src:e.otherData[U.alt]?e.otherData[U.alt]:U.src,onClick:ce=>R(U.alt,e.otherData[U.alt]?e.otherData[U.alt]:U.src,U.href==="markable"||U.href==="markeable")},null,14,dk)):t.createCommentVNode("",!0),U.type==="divider"?(t.openBlock(),t.createElementBlock("hr",{key:6,class:t.normalizeClass(U.type)},null,2)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),"text"in U?(t.openBlock(),t.createElementBlock("div",pk,[U.text?(t.openBlock(),t.createElementBlock("div",hk,t.toDisplayString(U.text),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]))),256))])}}}),gi=(e,r)=>{const o=e.__vccOpts||e;for(const[a,l]of r)o[a]=l;return o},Kl=gi(mk,[["__scopeId","data-v-a918ff1e"]]),ih="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",gk={class:"calendar_box"},yk={class:"date"},bk={class:"calendar_chioce"},wk=gi(t.defineComponent({__name:"CalendarPicker",setup(e){t.useCssVars(N=>({"97c49548":S.width,"946c075e":S.height,"75aa366b":S.top,"3f98cdb1":S.left}));const r=t.ref(hi()),o=t.ref(null),a=t.ref(),c=_s().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,y=()=>{c.close()},g=N=>{N.target===o.value&&c.close()},w=N=>{const k=N.getMonth()+1,T=N.getDate(),B=N.getFullYear(),W=k>=10?`${k}`:`0${k}`,D=T>=10?`${T}`:`0${T}`;return`${W}/${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("/"),T=parseInt(k[0])-1,B=parseInt(k[1]),W=parseInt(k[2]);return new Date(W,T,B)}else throw Error("The string format error!")},M=()=>{Rn.set(c.options.formData,c.options.dataKey,w(f.value)),y()},E=()=>{y()},S=t.reactive({top:"",left:"",width:"",height:""});return t.onMounted(()=>{if(a.value){const T=Rn.get(c.options.formData,c.options.dataKey);if(T){const B=b(T);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 T=br,B=qd,W=DS;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:g},[t.createElementVNode("div",gk,[t.createElementVNode("div",{class:"calendar_close"},[t.createElementVNode("img",{class:"image-editor-close_icon",src:ih,onClick:y})]),t.createVNode(W,{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(T,{size:"small",onClick:k[0]||(k[0]=G=>u("prev-year"))},{default:t.withCtx(()=>[t.createTextVNode(" << ")]),_:1}),t.createVNode(T,{size:"small",onClick:k[1]||(k[1]=G=>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(T,{size:"small",onClick:k[2]||(k[2]=G=>u("today"))},{default:t.withCtx(()=>[t.createTextVNode("Today")]),_:1}),t.createVNode(T,{size:"small",onClick:k[3]||(k[3]=G=>u("next-month"))},{default:t.withCtx(()=>[t.createTextVNode(" > ")]),_:1}),t.createVNode(T,{size:"small",onClick:k[4]||(k[4]=G=>u("next-year"))},{default:t.withCtx(()=>[t.createTextVNode(" >> ")]),_:1})]),_:1})]),"date-cell":t.withCtx(({data:D})=>[t.createElementVNode("div",yk,[t.createElementVNode("p",{class:t.normalizeClass(D.isSelected?"is-selected":"")},t.toDisplayString(m(D.day.split("-")[2])),3)])]),_:1},8,["modelValue"]),t.createElementVNode("div",bk,[t.createVNode(T,{class:"calendar_chioce_button calendar_cancel",onClick:E},{default:t.withCtx(()=>[t.createTextVNode("Cancel")]),_:1}),t.createVNode(T,{class:"calendar_chioce_button calendar_confirm",onClick:M},{default:t.withCtx(()=>[t.createTextVNode("Confirm")]),_:1})])])],2)])}}}),[["__scopeId","data-v-31c0f145"]]);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+/",y=/[\t\n\f\r ]/g,g=function(E){E=String(E).replace(y,"");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,T,B="",W=-1;++W<S;)T=m.indexOf(E.charAt(W)),k=N%4?k*64+T:T,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,T,B,W,D,G=E.length-S;++k<G;)T=E.charCodeAt(k)<<16,B=E.charCodeAt(++k)<<8,W=E.charCodeAt(++k),D=T+B+W,N+=m.charAt(D>>18&63)+m.charAt(D>>12&63)+m.charAt(D>>6&63)+m.charAt(D&63);return S==2?(T=E.charCodeAt(k)<<8,B=E.charCodeAt(++k),D=T+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:g,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 ah={},ka={};ka.byteLength=Sk,ka.toByteArray=_k,ka.fromByteArray=Mk;for(var Vn=[],un=[],Ek=typeof Uint8Array<"u"?Uint8Array:Array,ql="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mo=0,Ck=ql.length;Mo<Ck;++Mo)Vn[Mo]=ql[Mo],un[ql.charCodeAt(Mo)]=Mo;un[45]=62,un[95]=63;function sh(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 Sk(e){var r=sh(e),o=r[0],a=r[1];return(o+a)*3/4-a}function xk(e,r,o){return(r+o)*3/4-o}function _k(e){var r,o=sh(e),a=o[0],l=o[1],c=new Ek(xk(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 Ik(e){return Vn[e>>18&63]+Vn[e>>12&63]+Vn[e>>6&63]+Vn[e&63]}function kk(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(Ik(a));return l.join("")}function Mk(e){for(var r,o=e.length,a=o%3,l=[],c=16383,u=0,f=o-a;u<f;u+=c)l.push(kk(e,u,u+c>f?f:u+c));return a===1?(r=e[o-1],l.push(Vn[r>>2]+Vn[r<<4&63]+"==")):a===2&&(r=(e[o-2]<<8)+e[o-1],l.push(Vn[r>>10]+Vn[r>>4&63]+Vn[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,y=m>>1,g=-7,w=o?l-1:0,b=o?-1:1,M=e[r+w];for(w+=b,c=M&(1<<-g)-1,M>>=-g,g+=f;g>0;c=c*256+e[r+w],w+=b,g-=8);for(u=c&(1<<-g)-1,c>>=-g,g+=a;g>0;u=u*256+e[r+w],w+=b,g-=8);if(c===0)c=1-y;else{if(c===m)return u?NaN:(M?-1:1)*(1/0);u=u+Math.pow(2,a),c=c-y}return(M?-1:1)*u*Math.pow(2,c-a)},Ql.write=function(e,r,o,a,l,c){var u,f,m,y=c*8-l-1,g=(1<<y)-1,w=g>>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=g):(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>=g?(f=0,u=g):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,y+=l;y>0;e[o+M]=u&255,M+=E,u/=256,y-=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>
|