@aitmed/aitmed-document-template 1.34.0 → 1.36.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-0573c78d"), e = e(), Ws(), e), bO = { class: "RecursiveComponent" }, wO = { key: 0 }, EO = {
14382
+ const ma = (e) => (Vs("data-v-46bfa395"), e = e(), Ws(), e), bO = { class: "RecursiveComponent" }, wO = { key: 0 }, EO = {
14383
14383
  key: 0,
14384
14384
  class: "basetype"
14385
14385
  }, _O = { key: 1 }, SO = { key: 0 }, IO = { class: "label textsharp-title" }, xO = {
@@ -14419,7 +14419,7 @@ const ma = (e) => (Vs("data-v-0573c78d"), e = e(), Ws(), e), bO = { class: "Recu
14419
14419
  key: 1,
14420
14420
  class: "diagnosis-list"
14421
14421
  }, a8 = { class: "diagnosis-item" }, s8 = { class: "diagnosis-item-code" }, l8 = { class: "diagnosis-item-comment" }, u8 = { key: 0 }, c8 = { key: 5 }, f8 = /* @__PURE__ */ ma(() => /* @__PURE__ */ V("div", { class: "vital-sign-title" }, [
14422
- /* @__PURE__ */ V("div", { class: "label vital-sign-title-label" }, "Vital Sign")
14422
+ /* @__PURE__ */ V("div", { class: "label vital-sign-title-label" }, "Vital Signs")
14423
14423
  ], -1)), d8 = { class: "vital-sign-box" }, p8 = { class: "vital-sign-block" }, h8 = { class: "vital-sign-item" }, g8 = { class: "vital-sign-item-title" }, v8 = { key: 0 }, m8 = { class: "vital-sign-item" }, y8 = { class: "vital-sign-item-title" }, b8 = { key: 0 }, w8 = { class: "vital-sign-block" }, E8 = { class: "vital-sign-item" }, _8 = { class: "vital-sign-item-title" }, S8 = { key: 0 }, I8 = { class: "vital-sign-item" }, x8 = { class: "vital-sign-item-title" }, A8 = { key: 0 }, C8 = { class: "vital-sign-box" }, M8 = { class: "vital-sign-block" }, T8 = { class: "vital-sign-item" }, D8 = { class: "vital-sign-item-title" }, L8 = { key: 0 }, O8 = { class: "vital-sign-item" }, N8 = { class: "vital-sign-item-title" }, k8 = { key: 0 }, R8 = { class: "vital-sign-block" }, B8 = { class: "vital-sign-item" }, P8 = { class: "vital-sign-item-title" }, $8 = { key: 0 }, F8 = { class: "vital-sign-item" }, z8 = { class: "vital-sign-item-title" }, j8 = { key: 0 }, U8 = { key: 6 }, V8 = { class: "label default-label" }, W8 = {
14424
14424
  key: 1,
14425
14425
  class: "default-textarea-block"
@@ -14468,31 +14468,31 @@ const ma = (e) => (Vs("data-v-0573c78d"), e = e(), Ws(), e), bO = { class: "Recu
14468
14468
  },
14469
14469
  setup(e) {
14470
14470
  aa((ye) => ({
14471
- "7337aa6a": _(n).fullWidth,
14472
- "32fd9d94": _(n).defaultStyle.marginTop,
14473
- "457127b0": _(n).alignItems,
14474
- "49a1cb5a": _(n).text,
14475
- "042e52b0": _(n).lineHeight,
14476
- "94ee520e": _(n).atBlockWidth,
14477
- "1784d0ce": _(n).doubleLineHeight,
14478
- "798660f5": _(n).defaultStyle.paddingTop,
14479
- "917c1732": _(n).defaultStyle.paddingLeft,
14480
- e14fab3e: _(n).DateAndTime.width,
14481
- "28a214c3": _(n).signature.width,
14482
- "5c5cec6c": _(n).signature.height,
14483
- "0b23afd8": _(n).signature.label.top,
14484
- "38e36fc4": _(n).signature.label.height,
14485
- "5dc2f0ee": _(n).signature.label.width,
14486
- "594e81e4": _(n).signature.label.left,
14487
- "2cbda774": _(n).defaultStyle.marginLeft,
14488
- "2cb61488": _(n).defaultStyle.marginTop2,
14489
- "83b86e16": _(n).tableMinWidth,
14490
- "2fa9b844": _(n).diagnosis.titleFontSize,
14491
- "4fda948c": _(n).diagnosis.buttonFontSize,
14492
- "4a43ba54": _(n).vitalSign.titleFontSize,
14493
- "2f70dc8b": _(n).vitalSign.blockWidth,
14494
- "74ed4e3c": _(n).vitalSign.title2FontSize,
14495
- "2647bd34": _(n).vitalSign.unitFontSize
14471
+ "1186257d": _(n).fullWidth,
14472
+ "6b6ee5fa": _(n).defaultStyle.marginTop,
14473
+ "08c85375": _(n).alignItems,
14474
+ 44817067: _(n).text,
14475
+ "2969bdf5": _(n).lineHeight,
14476
+ "046d1f06": _(n).atBlockWidth,
14477
+ 28751126: _(n).doubleLineHeight,
14478
+ "0eaa7ec8": _(n).defaultStyle.paddingTop,
14479
+ "72bcde18": _(n).defaultStyle.paddingLeft,
14480
+ "3be03b18": _(n).DateAndTime.width,
14481
+ "400294d4": _(n).signature.width,
14482
+ "06090357": _(n).signature.height,
14483
+ e264a1aa: _(n).signature.label.top,
14484
+ "1caacb91": _(n).signature.label.height,
14485
+ "1245fe1c": _(n).signature.label.width,
14486
+ "4ae46cf1": _(n).signature.label.left,
14487
+ "7ec54a19": _(n).defaultStyle.marginLeft,
14488
+ "7ec9138f": _(n).defaultStyle.marginTop2,
14489
+ "4bc88288": _(n).tableMinWidth,
14490
+ "7d4f41b1": _(n).diagnosis.titleFontSize,
14491
+ "5f3a3119": _(n).diagnosis.buttonFontSize,
14492
+ "700240a9": _(n).vitalSign.titleFontSize,
14493
+ "2106c798": _(n).vitalSign.blockWidth,
14494
+ f7662a6e: _(n).vitalSign.title2FontSize,
14495
+ "5eb9059a": _(n).vitalSign.unitFontSize
14496
14496
  }));
14497
14497
  let n;
14498
14498
  const r = ge(va());
@@ -15390,7 +15390,7 @@ const ma = (e) => (Vs("data-v-0573c78d"), e = e(), Ws(), e), bO = { class: "Recu
15390
15390
  for (const [i, s] of n)
15391
15391
  r[i] = s;
15392
15392
  return r;
15393
- }, wc = /* @__PURE__ */ ya(K8, [["__scopeId", "data-v-0573c78d"]]), 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" }, Q8 = { class: "date" }, Z8 = { class: "calendar_chioce" }, X8 = /* @__PURE__ */ Ie({
15393
+ }, wc = /* @__PURE__ */ ya(K8, [["__scopeId", "data-v-46bfa395"]]), 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" }, Q8 = { class: "date" }, Z8 = { class: "calendar_chioce" }, X8 = /* @__PURE__ */ Ie({
15394
15394
  __name: "CalendarPicker",
15395
15395
  setup(e) {
15396
15396
  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[jp]=this[jp]={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}}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 zl(e,r){const o=this||di,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 ko(e,r,o){Be.call(this,e??"canceled",Be.ERR_CANCELED,r,o),this.name="CanceledError"}X.inherits(ko,Be,{__CANCEL__:!0});function Wp(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 Hp(e,r){return e&&!SI(r)?xI(e,r):r}const Yp=e=>e instanceof jt?{...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(Yp(y),Yp(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 Gp=e=>{const r=Kr({},e);let{data:o,withXSRFToken:a,xsrfHeaderName:l,xsrfCookieName:c,headers:u,auth:f}=r;r.headers=u=jt.from(u),r.url=zp(Hp(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=Gp(e);let c=l.data;const u=jt.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=jt.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};Wp(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||$p;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)},Kp=(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",Qp=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())),TI=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,$l=Qp&&!!(()=>{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 AI=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??AI(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}=Gp(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 A;try{if(m&&TI&&o!=="get"&&o!=="head"&&(A=await NI(g,a))!==0){let Q=new Request(r,{method:"POST",body:a,duplex:"half"}),W;X.isFormData(a)&&(W=Q.headers.get("content-type"))&&g.setContentType(W),Q.body&&(a=Kp(Q.body,Zp,qp(A,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 H=$l&&(y==="stream"||y==="response");if($l&&(f||H)){const Q={};["status","statusText","headers"].forEach(ne=>{Q[ne]=B[ne]});const W=X.toFiniteNumber(B.headers.get("content-length"));B=new Response(Kp(B.body,Zp,f&&qp(W,Sa(f,!0)),H&&k,Pl),Q)}y=y||"text";let D=await _a[X.findKey(_a,y)||"text"](B,e);return!H&&k(),E&&E(),await new Promise((Q,W)=>{Wp(Q,W,{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 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 Xp=e=>`- ${e}`,vI=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,!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(Xp).join(`
50
50
  `):" "+Xp(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 eh(e){return jl(e),e.headers=jt.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),Jp.getAdapter(e.adapter||di.adapter)(e).then(function(a){return jl(e),a.data=zl.call(e,e.transformResponse,a),a.headers=jt.from(a.headers),a},function(a){return Up(a)||(jl(e),a&&a.response&&(a.response.data=zl.call(e,e.transformResponse,a.response),a.response.headers=jt.from(a.response.headers))),Promise.reject(a)})}const th="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 nh={};Ul.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 Be(l(u," has been removed"+(o?" in "+o:"")),Be.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 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 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=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=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 y=[];this.interceptors.response.forEach(function(S){y.push(S.fulfilled,S.rejected)});let g,w=0,b;if(!m){const E=[eh.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=eh.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=Hp(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(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 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(Kr(e,l))},o}const St=rh(di);St.Axios=qr,St.CanceledError=ko,St.CancelToken=Hl,St.isCancel=Up,St.VERSION=th,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=jt,St.formToJSON=e=>Fp(X.isHTMLForm(e)?new FormData(e):e),St.getAdapter=Jp.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-0573c78d"),e=e(),t.popScopeId(),e),PI={class:"RecursiveComponent"},$I={key:0},FI={key:0,class:"basetype"},jI={key:1},UI={key:0},WI={class:"label textsharp-title"},HI={key:0,style:{color:"red"}},YI={key:1},GI={class:"label choice-title"},KI={key:0,style:{color:"red"}},qI={key:2,class:"vertical-checkbox-group"},QI={key:3,class:"vertical-checkbox-group"},ZI={key:5,class:"dropdownbox-block"},XI={class:"label dropdownbox-label"},JI=["onClick"],e4={key:7,class:"date-block"},t4={class:"label date-label"},n4={key:8,class:"time-box"},r4={key:9,class:"time-block"},o4={class:"label time-label"},i4=["onClick"],a4={class:"time-box"},s4={key:11,class:"date-time-block"},l4={class:"label date-bolck-label"},c4=mi(()=>t.createElementVNode("div",{class:"label date-time-blank-label"},"      ",-1)),u4={class:"label time-bolck-label"},f4={key:2},d4=["src"],p4={key:3},h4=["src"],m4={class:"signature-guardian"},g4=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)),y4={key:4},b4={class:"diagnosis-title"},w4=mi(()=>t.createElementVNode("div",{class:"label diagnosis-title-label"},"Diagnoses",-1)),E4={key:0,class:"diagnosis-editable"},C4={class:"diagnosis-searchbox"},S4={key:0,class:"diagnosis-suggestion"},x4=["onClick"],_4=mi(()=>t.createElementVNode("br",null,null,-1)),I4={key:1,class:"diagnosis-list"},k4={class:"diagnosis-item"},M4={class:"diagnosis-item-code"},T4={class:"diagnosis-item-comment"},A4={key:0},N4={key:5},v4=mi(()=>t.createElementVNode("div",{class:"vital-sign-title"},[t.createElementVNode("div",{class:"label vital-sign-title-label"},"Vital Sign")],-1)),B4={class:"vital-sign-box"},D4={class:"vital-sign-block"},L4={class:"vital-sign-item"},O4={class:"vital-sign-item-title"},R4={key:0},V4={class:"vital-sign-item"},z4={class:"vital-sign-item-title"},P4={key:0},$4={class:"vital-sign-block"},F4={class:"vital-sign-item"},j4={class:"vital-sign-item-title"},U4={key:0},W4={class:"vital-sign-item"},H4={class:"vital-sign-item-title"},Y4={key:0},G4={class:"vital-sign-box"},K4={class:"vital-sign-block"},q4={class:"vital-sign-item"},Q4={class:"vital-sign-item-title"},Z4={key:0},X4={class:"vital-sign-item"},J4={class:"vital-sign-item-title"},ek={key:0},tk={class:"vital-sign-block"},nk={class:"vital-sign-item"},rk={class:"vital-sign-item-title"},ok={key:0},ik={class:"vital-sign-item"},ak={class:"vital-sign-item-title"},sk={key:0},lk={key:6},ck={class:"label default-label"},uk={key:1,class:"default-textarea-block"},fk=["src","onClick"],dk={key:1},pk={key:0,class:"text"},oh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsSAAALEgHS3X78AAAAV0lEQVRYR+3SsQ0AMAgEMdh/aYZwQ3HpT0LO7zx/+/y+6UD9oQQTVAHt22CCKqB9G0xQBbRvgwmqgPZtMEEV0L4NJqgC2rfBBFVA+zaYoApo3wYTVAHtDxz6ACmSkz/0AAAAAElFTkSuQmCC",hk=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},providerEditability:{type:Boolean,default:!0},patientEditability:{type:Boolean,default:!1}},setup(e){t.useCssVars(fe=>({"7337aa6a":t.unref(r).fullWidth,"32fd9d94":t.unref(r).defaultStyle.marginTop,"457127b0":t.unref(r).alignItems,"49a1cb5a":t.unref(r).text,"042e52b0":t.unref(r).lineHeight,"94ee520e":t.unref(r).atBlockWidth,"1784d0ce":t.unref(r).doubleLineHeight,"798660f5":t.unref(r).defaultStyle.paddingTop,"917c1732":t.unref(r).defaultStyle.paddingLeft,e14fab3e:t.unref(r).DateAndTime.width,"28a214c3":t.unref(r).signature.width,"5c5cec6c":t.unref(r).signature.height,"0b23afd8":t.unref(r).signature.label.top,"38e36fc4":t.unref(r).signature.label.height,"5dc2f0ee":t.unref(r).signature.label.width,"594e81e4":t.unref(r).signature.label.left,"2cbda774":t.unref(r).defaultStyle.marginLeft,"2cb61488":t.unref(r).defaultStyle.marginTop2,"83b86e16":t.unref(r).tableMinWidth,"2fa9b844":t.unref(r).diagnosis.titleFontSize,"4fda948c":t.unref(r).diagnosis.buttonFontSize,"4a43ba54":t.unref(r).vitalSign.titleFontSize,"2f70dc8b":t.unref(r).vitalSign.blockWidth,"74ed4e3c":t.unref(r).vitalSign.title2FontSize,"2647bd34":t.unref(r).vitalSign.unitFontSize}));let r;const o=t.ref(hi());o.value?r=t.reactive(m_):r=t.reactive(Cp);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"]),A=fe=>{fe=fe.replace(/#/,"");const ie=fe.split(VI);return{required:ie[0].endsWith("*"),type:ie[0].replace("*","").replace("$",""),title:ie[1],placeholder:ie[2]}},B=fe=>{const ie=fe.split(zI);ie.shift(),ie.pop();const ye={};let be=ie.length;for(let ke=0;ke<be/2;ke++)ye[ie[2*ke]]=ie[2*ke+1]==="checked";return ye},H=e,D=t.reactive(H.formData),Q=fe=>OI.test(fe)?"textSharp":RI.test(fe)?"choiceSharp":fe==="#Signature"||fe==="#Provider Signature"?"providerSignature":fe==="#Patient/Guardian Signature"?"patientSignature":"default",W=/[^\w ]/g,ne=fe=>{const ie=fe.replace(W," ").split(/ /);let ye="";return ie.forEach(be=>{be!==""&&(be=be.toLowerCase(),be=be.replace(be[0],be[0].toUpperCase()),ye+=be)}),ye},q=fe=>{switch(fe){case"Diagnosis":return"Diagnosis";case"Vital Sign":return"Vital Sign";default:return"default"}},Y=(fe,ie)=>{const ye=D[fe].valueList.filter(be=>be.key===ie);return(ye==null?void 0:ye[0])||null},j=(fe,ie)=>{var be;((be=Y(fe,ie))==null?void 0:be.value)===D[fe].dataList[ie].value?D[fe].valueList=D[fe].valueList.filter(ke=>ke.key!==ie):D[fe].valueList.push({key:ie,value:D[fe].dataList[ie].value})},te=fe=>{l.open({formData:D,dataKey:fe})},he=(fe,ie,ye,be=!1)=>{u.open({dataKey:fe,formData:D,value:ie,type:ye,isGuardian:be})},se=fe=>{p_.prompt("Title Text","Signature",{confirmButtonText:"Confirm",cancelButtonText:"Cancel",cancelButtonClass:"cancel-btn"}).then(({value:ie})=>{ie&&Rn.set(D,fe,ie)})},R=({isHeader:fe,textAlign:ie})=>{let ye=fe?"#f5f2f0":"#ffffff",be=fe?"600":"normal",ke=fe?"center":"start",Ve=fe?"center":"start";return ke=ie||ke,Ve=ie||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=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 y=[];this.interceptors.response.forEach(function(S){y.push(S.fulfilled,S.rejected)});let g,w=0,b;if(!m){const E=[eh.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=eh.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=Hp(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(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 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(Kr(e,l))},o}const St=rh(di);St.Axios=qr,St.CanceledError=ko,St.CancelToken=Hl,St.isCancel=Up,St.VERSION=th,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=jt,St.formToJSON=e=>Fp(X.isHTMLForm(e)?new FormData(e):e),St.getAdapter=Jp.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-46bfa395"),e=e(),t.popScopeId(),e),PI={class:"RecursiveComponent"},$I={key:0},FI={key:0,class:"basetype"},jI={key:1},UI={key:0},WI={class:"label textsharp-title"},HI={key:0,style:{color:"red"}},YI={key:1},GI={class:"label choice-title"},KI={key:0,style:{color:"red"}},qI={key:2,class:"vertical-checkbox-group"},QI={key:3,class:"vertical-checkbox-group"},ZI={key:5,class:"dropdownbox-block"},XI={class:"label dropdownbox-label"},JI=["onClick"],e4={key:7,class:"date-block"},t4={class:"label date-label"},n4={key:8,class:"time-box"},r4={key:9,class:"time-block"},o4={class:"label time-label"},i4=["onClick"],a4={class:"time-box"},s4={key:11,class:"date-time-block"},l4={class:"label date-bolck-label"},c4=mi(()=>t.createElementVNode("div",{class:"label date-time-blank-label"},"      ",-1)),u4={class:"label time-bolck-label"},f4={key:2},d4=["src"],p4={key:3},h4=["src"],m4={class:"signature-guardian"},g4=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)),y4={key:4},b4={class:"diagnosis-title"},w4=mi(()=>t.createElementVNode("div",{class:"label diagnosis-title-label"},"Diagnoses",-1)),E4={key:0,class:"diagnosis-editable"},C4={class:"diagnosis-searchbox"},S4={key:0,class:"diagnosis-suggestion"},x4=["onClick"],_4=mi(()=>t.createElementVNode("br",null,null,-1)),I4={key:1,class:"diagnosis-list"},k4={class:"diagnosis-item"},M4={class:"diagnosis-item-code"},T4={class:"diagnosis-item-comment"},A4={key:0},N4={key:5},v4=mi(()=>t.createElementVNode("div",{class:"vital-sign-title"},[t.createElementVNode("div",{class:"label vital-sign-title-label"},"Vital Signs")],-1)),B4={class:"vital-sign-box"},D4={class:"vital-sign-block"},L4={class:"vital-sign-item"},O4={class:"vital-sign-item-title"},R4={key:0},V4={class:"vital-sign-item"},z4={class:"vital-sign-item-title"},P4={key:0},$4={class:"vital-sign-block"},F4={class:"vital-sign-item"},j4={class:"vital-sign-item-title"},U4={key:0},W4={class:"vital-sign-item"},H4={class:"vital-sign-item-title"},Y4={key:0},G4={class:"vital-sign-box"},K4={class:"vital-sign-block"},q4={class:"vital-sign-item"},Q4={class:"vital-sign-item-title"},Z4={key:0},X4={class:"vital-sign-item"},J4={class:"vital-sign-item-title"},ek={key:0},tk={class:"vital-sign-block"},nk={class:"vital-sign-item"},rk={class:"vital-sign-item-title"},ok={key:0},ik={class:"vital-sign-item"},ak={class:"vital-sign-item-title"},sk={key:0},lk={key:6},ck={class:"label default-label"},uk={key:1,class:"default-textarea-block"},fk=["src","onClick"],dk={key:1},pk={key:0,class:"text"},oh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsSAAALEgHS3X78AAAAV0lEQVRYR+3SsQ0AMAgEMdh/aYZwQ3HpT0LO7zx/+/y+6UD9oQQTVAHt22CCKqB9G0xQBbRvgwmqgPZtMEEV0L4NJqgC2rfBBFVA+zaYoApo3wYTVAHtDxz6ACmSkz/0AAAAAElFTkSuQmCC",hk=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},providerEditability:{type:Boolean,default:!0},patientEditability:{type:Boolean,default:!1}},setup(e){t.useCssVars(fe=>({"1186257d":t.unref(r).fullWidth,"6b6ee5fa":t.unref(r).defaultStyle.marginTop,"08c85375":t.unref(r).alignItems,44817067:t.unref(r).text,"2969bdf5":t.unref(r).lineHeight,"046d1f06":t.unref(r).atBlockWidth,28751126:t.unref(r).doubleLineHeight,"0eaa7ec8":t.unref(r).defaultStyle.paddingTop,"72bcde18":t.unref(r).defaultStyle.paddingLeft,"3be03b18":t.unref(r).DateAndTime.width,"400294d4":t.unref(r).signature.width,"06090357":t.unref(r).signature.height,e264a1aa:t.unref(r).signature.label.top,"1caacb91":t.unref(r).signature.label.height,"1245fe1c":t.unref(r).signature.label.width,"4ae46cf1":t.unref(r).signature.label.left,"7ec54a19":t.unref(r).defaultStyle.marginLeft,"7ec9138f":t.unref(r).defaultStyle.marginTop2,"4bc88288":t.unref(r).tableMinWidth,"7d4f41b1":t.unref(r).diagnosis.titleFontSize,"5f3a3119":t.unref(r).diagnosis.buttonFontSize,"700240a9":t.unref(r).vitalSign.titleFontSize,"2106c798":t.unref(r).vitalSign.blockWidth,f7662a6e:t.unref(r).vitalSign.title2FontSize,"5eb9059a":t.unref(r).vitalSign.unitFontSize}));let r;const o=t.ref(hi());o.value?r=t.reactive(m_):r=t.reactive(Cp);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"]),A=fe=>{fe=fe.replace(/#/,"");const ie=fe.split(VI);return{required:ie[0].endsWith("*"),type:ie[0].replace("*","").replace("$",""),title:ie[1],placeholder:ie[2]}},B=fe=>{const ie=fe.split(zI);ie.shift(),ie.pop();const ye={};let be=ie.length;for(let ke=0;ke<be/2;ke++)ye[ie[2*ke]]=ie[2*ke+1]==="checked";return ye},H=e,D=t.reactive(H.formData),Q=fe=>OI.test(fe)?"textSharp":RI.test(fe)?"choiceSharp":fe==="#Signature"||fe==="#Provider Signature"?"providerSignature":fe==="#Patient/Guardian Signature"?"patientSignature":"default",W=/[^\w ]/g,ne=fe=>{const ie=fe.replace(W," ").split(/ /);let ye="";return ie.forEach(be=>{be!==""&&(be=be.toLowerCase(),be=be.replace(be[0],be[0].toUpperCase()),ye+=be)}),ye},q=fe=>{switch(fe){case"Diagnosis":return"Diagnosis";case"Vital Sign":return"Vital Sign";default:return"default"}},Y=(fe,ie)=>{const ye=D[fe].valueList.filter(be=>be.key===ie);return(ye==null?void 0:ye[0])||null},j=(fe,ie)=>{var be;((be=Y(fe,ie))==null?void 0:be.value)===D[fe].dataList[ie].value?D[fe].valueList=D[fe].valueList.filter(ke=>ke.key!==ie):D[fe].valueList.push({key:ie,value:D[fe].dataList[ie].value})},te=fe=>{l.open({formData:D,dataKey:fe})},he=(fe,ie,ye,be=!1)=>{u.open({dataKey:fe,formData:D,value:ie,type:ye,isGuardian:be})},se=fe=>{p_.prompt("Title Text","Signature",{confirmButtonText:"Confirm",cancelButtonText:"Cancel",cancelButtonClass:"cancel-btn"}).then(({value:ie})=>{ie&&Rn.set(D,fe,ie)})},R=({isHeader:fe,textAlign:ie})=>{let ye=fe?"#f5f2f0":"#ffffff",be=fe?"600":"normal",ke=fe?"center":"start",Ve=fe?"center":"start";return ke=ie||ke,Ve=ie||Ve,`
52
52
  justify-content: ${Ve};
53
53
  background-color: ${ye};
54
54
  text-align: ${ke};
@@ -68,7 +68,7 @@ function print() { __p += __j.call(arguments, '') }
68
68
  `)},t.toDisplayString(D[G.key][je][rt]),5))],6))),256))],6))),256))],6)):t.createCommentVNode("",!0),G.type==="image"?(t.openBlock(),t.createElementBlock("img",{key:5,class:t.normalizeClass(G.type),style:t.normalizeStyle(G.style?`
69
69
  width: ${G.style.width};
70
70
  height: ${G.style.height};
71
- `:""),src:e.otherData[G.alt]?e.otherData[G.alt]:G.src,onClick:ce=>L(G.alt,e.otherData[G.alt]?e.otherData[G.alt]:G.src,G.href==="markable"||G.href==="markeable")},null,14,fk)):t.createCommentVNode("",!0),G.type==="divider"?(t.openBlock(),t.createElementBlock("hr",{key:6,class:t.normalizeClass(G.type)},null,2)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),"text"in G?(t.openBlock(),t.createElementBlock("div",dk,[G.text?(t.openBlock(),t.createElementBlock("div",pk,t.toDisplayString(G.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},Gl=gi(hk,[["__scopeId","data-v-0573c78d"]]),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",mk={class:"calendar_box"},gk={class:"date"},yk={class:"calendar_chioce"},bk=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,A=N.getDate(),B=N.getFullYear(),H=k>=10?`${k}`:`0${k}`,D=A>=10?`${A}`:`0${A}`;return`${H}/${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]),H=parseInt(k[2]);return new Date(H,A,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 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=br,B=Kd,H=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",mk,[t.createElementVNode("div",{class:"calendar_close"},[t.createElementVNode("img",{class:"image-editor-close_icon",src:ih,onClick:y})]),t.createVNode(H,{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]=Q=>u("prev-year"))},{default:t.withCtx(()=>[t.createTextVNode(" << ")]),_:1}),t.createVNode(A,{size:"small",onClick:k[1]||(k[1]=Q=>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]=Q=>u("today"))},{default:t.withCtx(()=>[t.createTextVNode("Today")]),_:1}),t.createVNode(A,{size:"small",onClick:k[3]||(k[3]=Q=>u("next-month"))},{default:t.withCtx(()=>[t.createTextVNode(" > ")]),_:1}),t.createVNode(A,{size:"small",onClick:k[4]||(k[4]=Q=>u("next-year"))},{default:t.withCtx(()=>[t.createTextVNode(" >> ")]),_:1})]),_:1})]),"date-cell":t.withCtx(({data:D})=>[t.createElementVNode("div",gk,[t.createElementVNode("p",{class:t.normalizeClass(D.isSelected?"is-selected":"")},t.toDisplayString(m(D.day.split("-")[2])),3)])]),_:1},8,["modelValue"]),t.createElementVNode("div",yk,[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-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,A,B="",H=-1;++H<S;)A=m.indexOf(E.charAt(H)),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,H,D,Q=E.length-S;++k<Q;)A=E.charCodeAt(k)<<16,B=E.charCodeAt(++k)<<8,H=E.charCodeAt(++k),D=A+B+H,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: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=Ck,ka.toByteArray=xk,ka.fromByteArray=kk;for(var Vn=[],cn=[],wk=typeof Uint8Array<"u"?Uint8Array:Array,Kl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mo=0,Ek=Kl.length;Mo<Ek;++Mo)Vn[Mo]=Kl[Mo],cn[Kl.charCodeAt(Mo)]=Mo;cn[45]=62,cn[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 Ck(e){var r=sh(e),o=r[0],a=r[1];return(o+a)*3/4-a}function Sk(e,r,o){return(r+o)*3/4-o}function xk(e){var r,o=sh(e),a=o[0],l=o[1],c=new wk(Sk(e,a,l)),u=0,f=l>0?a-4:a,m;for(m=0;m<f;m+=4)r=cn[e.charCodeAt(m)]<<18|cn[e.charCodeAt(m+1)]<<12|cn[e.charCodeAt(m+2)]<<6|cn[e.charCodeAt(m+3)],c[u++]=r>>16&255,c[u++]=r>>8&255,c[u++]=r&255;return l===2&&(r=cn[e.charCodeAt(m)]<<2|cn[e.charCodeAt(m+1)]>>4,c[u++]=r&255),l===1&&(r=cn[e.charCodeAt(m)]<<10|cn[e.charCodeAt(m+1)]<<4|cn[e.charCodeAt(m+2)]>>2,c[u++]=r>>8&255,c[u++]=r&255),c}function _k(e){return Vn[e>>18&63]+Vn[e>>12&63]+Vn[e>>6&63]+Vn[e&63]}function Ik(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(_k(a));return l.join("")}function kk(e){for(var r,o=e.length,a=o%3,l=[],c=16383,u=0,f=o-a;u<f;u+=c)l.push(Ik(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};/*!
71
+ `:""),src:e.otherData[G.alt]?e.otherData[G.alt]:G.src,onClick:ce=>L(G.alt,e.otherData[G.alt]?e.otherData[G.alt]:G.src,G.href==="markable"||G.href==="markeable")},null,14,fk)):t.createCommentVNode("",!0),G.type==="divider"?(t.openBlock(),t.createElementBlock("hr",{key:6,class:t.normalizeClass(G.type)},null,2)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),"text"in G?(t.openBlock(),t.createElementBlock("div",dk,[G.text?(t.openBlock(),t.createElementBlock("div",pk,t.toDisplayString(G.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},Gl=gi(hk,[["__scopeId","data-v-46bfa395"]]),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",mk={class:"calendar_box"},gk={class:"date"},yk={class:"calendar_chioce"},bk=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,A=N.getDate(),B=N.getFullYear(),H=k>=10?`${k}`:`0${k}`,D=A>=10?`${A}`:`0${A}`;return`${H}/${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]),H=parseInt(k[2]);return new Date(H,A,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 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=br,B=Kd,H=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",mk,[t.createElementVNode("div",{class:"calendar_close"},[t.createElementVNode("img",{class:"image-editor-close_icon",src:ih,onClick:y})]),t.createVNode(H,{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]=Q=>u("prev-year"))},{default:t.withCtx(()=>[t.createTextVNode(" << ")]),_:1}),t.createVNode(A,{size:"small",onClick:k[1]||(k[1]=Q=>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]=Q=>u("today"))},{default:t.withCtx(()=>[t.createTextVNode("Today")]),_:1}),t.createVNode(A,{size:"small",onClick:k[3]||(k[3]=Q=>u("next-month"))},{default:t.withCtx(()=>[t.createTextVNode(" > ")]),_:1}),t.createVNode(A,{size:"small",onClick:k[4]||(k[4]=Q=>u("next-year"))},{default:t.withCtx(()=>[t.createTextVNode(" >> ")]),_:1})]),_:1})]),"date-cell":t.withCtx(({data:D})=>[t.createElementVNode("div",gk,[t.createElementVNode("p",{class:t.normalizeClass(D.isSelected?"is-selected":"")},t.toDisplayString(m(D.day.split("-")[2])),3)])]),_:1},8,["modelValue"]),t.createElementVNode("div",yk,[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-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,A,B="",H=-1;++H<S;)A=m.indexOf(E.charAt(H)),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,H,D,Q=E.length-S;++k<Q;)A=E.charCodeAt(k)<<16,B=E.charCodeAt(++k)<<8,H=E.charCodeAt(++k),D=A+B+H,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: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=Ck,ka.toByteArray=xk,ka.fromByteArray=kk;for(var Vn=[],cn=[],wk=typeof Uint8Array<"u"?Uint8Array:Array,Kl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mo=0,Ek=Kl.length;Mo<Ek;++Mo)Vn[Mo]=Kl[Mo],cn[Kl.charCodeAt(Mo)]=Mo;cn[45]=62,cn[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 Ck(e){var r=sh(e),o=r[0],a=r[1];return(o+a)*3/4-a}function Sk(e,r,o){return(r+o)*3/4-o}function xk(e){var r,o=sh(e),a=o[0],l=o[1],c=new wk(Sk(e,a,l)),u=0,f=l>0?a-4:a,m;for(m=0;m<f;m+=4)r=cn[e.charCodeAt(m)]<<18|cn[e.charCodeAt(m+1)]<<12|cn[e.charCodeAt(m+2)]<<6|cn[e.charCodeAt(m+3)],c[u++]=r>>16&255,c[u++]=r>>8&255,c[u++]=r&255;return l===2&&(r=cn[e.charCodeAt(m)]<<2|cn[e.charCodeAt(m+1)]>>4,c[u++]=r&255),l===1&&(r=cn[e.charCodeAt(m)]<<10|cn[e.charCodeAt(m+1)]<<4|cn[e.charCodeAt(m+2)]>>2,c[u++]=r>>8&255,c[u++]=r&255),c}function _k(e){return Vn[e>>18&63]+Vn[e>>12&63]+Vn[e>>6&63]+Vn[e&63]}function Ik(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(_k(a));return l.join("")}function kk(e){for(var r,o=e.length,a=o%3,l=[],c=16383,u=0,f=o-a;u<f;u+=c)l.push(Ik(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};/*!
72
72
  * The buffer module from node.js, for the browser.
73
73
  *
74
74
  * @author Feross Aboukhadijeh <https://feross.org>