-
diff --git a/MyApp/Pages/Account/Manage/SetPassword.razor b/MyApp/Pages/Account/Manage/SetPassword.razor
index 12e9e4a..2c4a860 100644
--- a/MyApp/Pages/Account/Manage/SetPassword.razor
+++ b/MyApp/Pages/Account/Manage/SetPassword.razor
@@ -32,7 +32,7 @@
diff --git a/MyApp/wwwroot/css/typography.css b/MyApp/wwwroot/css/typography.css
index 8098da7..382af0d 100644
--- a/MyApp/wwwroot/css/typography.css
+++ b/MyApp/wwwroot/css/typography.css
@@ -24,7 +24,7 @@
border-left-style: solid;
}
-.dark :not(:where([class~="not-prose"] *)), .dark .prose :where(td):not(:where([class~="not-prose"] *)) {
+.dark .prose :not(:where([class~="not-prose"] *)), .dark .prose :where(td):not(:where([class~="not-prose"] *)) {
color: rgb(209 213 219); /*text-gray-300*/
}
.dark .prose :where(h1,h2,h3,h4,h5,h6,th):not(:where([class~="not-prose"] *)) {
diff --git a/MyApp/wwwroot/lib/mjs/servicestack-vue.min.mjs b/MyApp/wwwroot/lib/mjs/servicestack-vue.min.mjs
index 1d7f53c..ff292dc 100644
--- a/MyApp/wwwroot/lib/mjs/servicestack-vue.min.mjs
+++ b/MyApp/wwwroot/lib/mjs/servicestack-vue.min.mjs
@@ -1,5 +1,5 @@
var lo=Object.defineProperty,no=(e,t,l)=>t in e?lo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l,Ce=(e,t,l)=>(no(e,"symbol"!=typeof t?t+"":t,l),l);import{defineComponent as ce,computed as f,openBlock as a,createElementBlock as u,normalizeClass as w,unref as o,createElementVNode as s,createCommentVNode as k,renderSlot as Z,ref as A,toDisplayString as T,inject as Ne,nextTick as xt,isRef as Gn,mergeProps as Me,withModifiers as Ue,h as gt,resolveComponent as X,createBlock as se,withCtx as ke,useAttrs as so,createVNode as $e,createTextVNode as we,watchEffect as hl,normalizeStyle as Xl,Fragment as Te,renderList as Ie,withDirectives as kt,vModelCheckbox as Yl,withKeys as Wn,createStaticVNode as wl,vModelSelect as oo,useSlots as en,getCurrentInstance as Be,onMounted as tt,createSlots as tn,normalizeProps as jt,guardReactiveProps as gl,vModelDynamic as ao,onUnmounted as Rt,watch as Lt,vModelText as io,resolveDynamicComponent as Jn,provide as Xt,resolveDirective as ro}from"vue";import{errorResponseExcept as uo,dateFmt as Xn,toTime as co,omit as dt,enc as Hl,setQueryString as fo,appendQueryString as Kt,nameOf as mo,ApiResult as Je,lastRightPart as $t,leftPart as xl,map as qe,toDate as Vt,toDateTime as vo,toCamelCase as ho,mapGet as ye,chop as go,fromXsdDuration as Yn,isDate as kl,timeFmt12 as po,apiValue as yo,indexOfAny as bo,createBus as wo,toKebabCase as Nn,sanitize as xo,humanize as He,delaySet as es,rightPart as dl,queryString as zl,combinePaths as ko,toPascalCase as st,errorResponse as mt,trimEnd as $o,$1 as pl,lastLeftPart as Co,ResponseStatus as Bl,ResponseError as Un,HttpMethods as ln,omitEmpty as _o,uniqueKeys as Nl,humanify as ts,each as Lo}from"@servicestack/client";const Vo={class:"flex items-center"},So={key:0,class:"flex-shrink-0 mr-3"},Mo={key:0,class:"h-5 w-5 text-yellow-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},Ao=s("path",{"fill-rule":"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"},null,-1),To=[Ao],Fo={key:1,class:"h-5 w-5 text-red-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},Io=s("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.28 7.22a.75.75 0 00-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 101.06 1.06L10 11.06l1.72 1.72a.75.75 0 101.06-1.06L11.06 10l1.72-1.72a.75.75 0 00-1.06-1.06L10 8.94 8.28 7.22z","clip-rule":"evenodd"},null,-1),Do=[Io],jo={key:2,class:"h-5 w-5 text-blue-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},Oo=s("path",{"fill-rule":"evenodd",d:"M19 10.5a8.5 8.5 0 11-17 0 8.5 8.5 0 0117 0zM8.25 9.75A.75.75 0 019 9h.253a1.75 1.75 0 011.709 2.13l-.46 2.066a.25.25 0 00.245.304H11a.75.75 0 010 1.5h-.253a1.75 1.75 0 01-1.709-2.13l.46-2.066a.25.25 0 00-.245-.304H9a.75.75 0 01-.75-.75zM10 7a1 1 0 100-2 1 1 0 000 2z","clip-rule":"evenodd"},null,-1),Po=[Oo],Bo={key:3,class:"h-5 w-5 text-green-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},Ro=s("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z","clip-rule":"evenodd"},null,-1),Eo=[Ro],Ho=ce({__name:"Alert",props:{type:{default:"warn"},hideIcon:{type:Boolean}},setup(l){const e=l,n=f(()=>"info"==e.type?"bg-blue-50 dark:bg-blue-200":"error"==e.type?"bg-red-50 dark:bg-red-200":"success"==e.type?"bg-green-50 dark:bg-green-200":"bg-yellow-50 dark:bg-yellow-200"),r=f(()=>"info"==e.type?"border-blue-400":"error"==e.type?"border-red-400":"success"==e.type?"border-green-400":"border-yellow-400"),i=f(()=>"info"==e.type?"text-blue-700":"error"==e.type?"text-red-700":"success"==e.type?"text-green-700":"text-yellow-700");return(e,t)=>(a(),u("div",{class:w([o(n),o(r),"border-l-4 p-4"])},[s("div",Vo,[l.hideIcon?k("",!0):(a(),u("div",So,["warn"==l.type?(a(),u("svg",Mo,To)):"error"==l.type?(a(),u("svg",Fo,Do)):"info"==l.type?(a(),u("svg",jo,Po)):"success"==l.type?(a(),u("svg",Bo,Eo)):k("",!0)])),s("div",null,[s("p",{class:w([o(i),"text-sm"])},[Z(e.$slots,"default")],2)])])],2))}}),zo={key:0,class:"rounded-md bg-green-50 dark:bg-green-200 p-4",role:"alert"},No={class:"flex"},Uo=s("div",{class:"flex-shrink-0"},[s("svg",{class:"h-5 w-5 text-green-400 dark:text-green-500",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"})])],-1),qo={class:"ml-3"},Qo={class:"text-sm font-medium text-green-800"},Ko={key:0},Zo={class:"ml-auto pl-3"},Go={class:"-mx-1.5 -my-1.5"},Wo=s("span",{class:"sr-only"},"Dismiss",-1),Jo=s("svg",{class:"h-5 w-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[s("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"})],-1),Xo=[Wo,Jo],Yo=ce({__name:"AlertSuccess",props:{message:null},setup(l){const n=A(!1);return(e,t)=>n.value?k("",!0):(a(),u("div",zo,[s("div",No,[Uo,s("div",qo,[s("h3",Qo,[l.message?(a(),u("span",Ko,T(l.message),1)):Z(e.$slots,"default",{key:1})])]),s("div",Zo,[s("div",Go,[s("button",{type:"button",class:"inline-flex rounded-md bg-green-50 dark:bg-green-200 p-1.5 text-green-500 dark:text-green-600 hover:bg-green-100 dark:hover:bg-green-700 dark:hover:text-white focus:outline-none focus:ring-2 focus:ring-green-600 focus:ring-offset-2 focus:ring-offset-green-50 dark:ring-offset-green-200",onClick:t[0]||(t[0]=e=>n.value=!0)},Xo)])])])]))}}),ea={class:"flex"},ta=s("div",{class:"flex-shrink-0"},[s("svg",{class:"h-5 w-5 text-red-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[s("path",{fill:"currentColor",d:"M12 2c5.53 0 10 4.47 10 10s-4.47 10-10 10S2 17.53 2 12S6.47 2 12 2m3.59 5L12 10.59L8.41 7L7 8.41L10.59 12L7 15.59L8.41 17L12 13.41L15.59 17L17 15.59L13.41 12L17 8.41L15.59 7Z"})])],-1),la={class:"ml-3"},na={class:"text-sm text-red-700 dark:text-red-200"},sa=ce({__name:"ErrorSummary",props:{status:null,except:null,class:null},setup(e){const t=e;let l=Ne("ApiState",void 0);const n=f(()=>t.status||null!=l&&l.error.value?uo.call({responseStatus:t.status??(null==l?void 0:l.error.value)},t.except??[]):null);return(e,t)=>o(n)?(a(),u("div",{key:0,class:w("bg-red-50 dark:bg-red-900 border-l-4 border-red-400 p-4 "+e.$props.class)},[s("div",ea,[ta,s("div",la,[s("p",na,T(o(n)),1)])])],2)):k("",!0)}}),oa=["id","aria-describedby"],aa=ce({__name:"InputDescription",props:{id:null,description:null},setup(l){return(e,t)=>l.description?(a(),u("div",{key:"description",class:"mt-2 text-sm text-gray-500",id:l.id+"-description","aria-describedby":l.id+"-description"},[s("div",null,T(l.description),1)],8,oa)):k("",!0)}});function $l(e){return Xn(e).replace(/\//g,"-")}function ls(e){return null==e?"":co(e)}function ns(e,t){e.value=null,xt(()=>e.value=t)}function Tt(l){return Object.keys(l).forEach(e=>{var t=l[e];l[e]=Gn(t)?o(t):t}),l}function Ct(e,t,l){l?(t.value=e.entering.cls+" "+e.entering.from,setTimeout(()=>t.value=e.entering.cls+" "+e.entering.to,0)):(t.value=e.leaving.cls+" "+e.leaving.from,setTimeout(()=>t.value=e.leaving.cls+" "+e.leaving.to,0))}function cl(l){if(!("u"
0":"<"+e+Ul(l)+`>${t||""}${e}>`}function Ul(l){return Object.keys(l).reduce((e,t)=>`${e} ${t}="${Hl(l[t])}"`,"")}function Cl(e){return Object.assign({target:"_blank",rel:"noopener",class:"text-blue-600"},e)}function Dt(e){return kn(e)}let ia=["string","number","boolean","null","undefined"];function _t(e){return 0<=ia.indexOf(typeof e)||e instanceof Date}function Zt(e){return!_t(e)}class ss{get length(){return"u"",";"].some(e=>t.includes(e)))throw new Error(`Unsafe script: '${t}'`);e=Object.assign(Object.keys(globalThis).reduce((e,t)=>(e[t]=void 0,e),{}),e);return new Function("with(this) { return ("+t+") }").call(e)}function ql(e){typeof navigator<"u"&&navigator.clipboard.writeText(e)}function on(e){e=ne.config.storage.getItem(e);return e?JSON.parse(e):null}function _l(e,t){return Kt("swr."+mo(e),t?Object.assign({},e,t):e)}function ra(e){e.request&&(e=_l(e.request,e.args),ne.config.storage.removeItem(e))}async function os(e,t,l,a,s){var n=_l(t,a),e=(l(new Je({response:on(n)})),await e.api(t,a,s));return e.succeeded&&e.response&&(e.response._date=(new Date).valueOf(),t=JSON.stringify(e.response),ne.config.storage.setItem(n,t),l(e)),e}function as(t,l){let a=null;return(...e)=>{a&&clearTimeout(a),a=setTimeout(()=>{t(...e)},l||100)}}function pt(e){return"string"==typeof e?e.split(","):e||[]}function wt(e,t){const l=pt(t);return e.reduce((e,t)=>(e[t]=!l.includes(t),e),{})}function is(){return{LocalStore:ss,dateInputFormat:$l,timeInputFormat:ls,setRef:ns,unRefs:Tt,transition:Ct,focusNextElement:cl,getTypeName:Et,htmlTag:rt,htmlAttrs:Ul,linkAttrs:Cl,toAppUrl:Dt,isPrimitive:_t,isComplexType:Zt,pushState:nn,scopedExpr:sn,copyText:ql,fromCache:on,swrCacheKey:_l,swrClear:ra,swrApi:os,asStrings:pt,asOptions:wt,createDebounce:as}}const rs="png,jpg,jpeg,jfif,gif,svg,webp".split(","),us={img:"png,jpg,jpeg,gif,svg,webp,png,jpg,jpeg,gif,bmp,tif,tiff,webp,ai,psd,ps".split(","),vid:"avi,m4v,mov,mp4,mpg,mpeg,wmv,webm".split(","),aud:"mp3,mpa,ogg,wav,wma,mid,webm".split(","),ppt:"key,odp,pps,ppt,pptx".split(","),xls:"xls,xlsm,xlsx,ods,csv,tsv".split(","),doc:"doc,docx,pdf,rtf,tex,txt,md,rst,xls,xlsm,xlsx,ods,key,odp,pps,ppt,pptx".split(","),zip:"zip,tar,gz,7z,rar,gzip,deflate,br,iso,dmg,z,lz,lz4,lzh,s7z,apl,arg,jar,war".split(","),exe:"exe,bat,sh,cmd,com,app,msi,run,vb,vbs,js,ws,wsh".split(","),att:"bin,oct,dat".split(",")},qn=Object.keys(us),ft=(e,t)=>``,fl={img:ft("4 4 16 16",""),vid:ft("0 0 24 24",""),aud:ft("0 0 24 24",""),ppt:ft("0 0 48 48",""),xls:ft("0 0 256 256",""),doc:ft("0 0 32 32",""),zip:ft("0 0 16 16",""),exe:ft("0 0 16 16",""),att:ft("0 0 24 24","")},ua=/[\r\n%#()<>?[\\\]^`{|}]/g,Qn=1024,da=["Bytes","KB","MB","GB","TB"],ca=(()=>{const t="application/",e=t+"vnd.openxmlformats-officedocument.",l="image/",a="text/",s="video/",n={jpg:l+"jpeg",tif:l+"tiff",svg:l+"svg+xml",ico:l+"x-icon",ts:a+"typescript",py:a+"x-python",sh:a+"x-sh",mp3:"audio/mpeg3",mpg:s+"mpeg",ogv:s+"ogg",xlsx:e+"spreadsheetml.sheet",xltx:e+"spreadsheetml.template",docx:e+"wordprocessingml.document",dotx:e+"wordprocessingml.template",pptx:e+"presentationml.presentation",potx:e+"presentationml.template",ppsx:e+"presentationml.slideshow",mdb:t+"vnd.ms-access"};function o(e,t){e.split(",").forEach(e=>n[e]=t)}function r(e,t){e.split(",").forEach(e=>n[e]=t(e))}return r("jpeg,gif,png,tiff,bmp,webp",e=>l+e),r("jsx,csv,css",e=>a+e),r("aac,ac3,aiff,m4a,m4b,m4p,mid,midi,wav",e=>"audio/"+e),r("3gpp,avi,dv,divx,ogg,mp4,webm",e=>s+e),r("rtf,pdf",e=>t+e),o("htm,html,shtm",a+"html"),o("js,mjs,cjs",a+"javascript"),o("yml,yaml",t+"yaml"),o("bat,cmd",t+"bat"),o("xml,csproj,fsproj,vbproj",a+"xml"),o("txt,ps1",a+"plain"),o("qt,mov",s+"quicktime"),o("doc,dot",t+"msword"),o("xls,xlt,xla",t+"excel"),o("ppt,oit,pps,ppa",t+"vnd.ms-powerpoint"),o("cer,crt,der",t+"x-x509-ca-cert"),o("gz,tgz,zip,rar,lzh,z",t+"x-compressed"),o("aaf,aca,asd,bin,cab,chm,class,cur,db,dat,deploy,dll,dsp,exe,fla,ics,inf,mix,msi,mso,obj,ocx,prm,prx,psd,psp,qxd,sea,snp,so,sqlite,toc,ttf,u32,xmp,xsn,xtp",t+"octet-stream"),n})();let Ql=[];function ds(e){return(e=(e=(e=e.replace(/"/g,"'")).replace(/>\s+<")).replace(/\s{2,}/g," ")).replace(ua,encodeURIComponent)}function an(e){return"data:image/svg+xml;utf8,"+ds(e)}function cs(e){e=URL.createObjectURL(e);return Ql.push(e),e}function fs(){Ql.forEach(e=>{try{URL.revokeObjectURL(e)}catch(e){console.error("URL.revokeObjectURL",e)}}),Ql=[]}function rn(e){return e?(e=xl(e,"?"),$t(e,"/")):null}function Yt(e){e=rn(e);return null==e||-1===e.indexOf(".")?null:$t(e,".").toLowerCase()}function un(e){var t=Yt(e.name);return t&&0<=rs.indexOf(t)?cs(e):yt(e.name)}function dn(e){return e&&(!(!e.startsWith("blob:")&&!e.startsWith("data:"))||(e=Yt(e))&&0<=rs.indexOf(e))||!1}function yt(e){var t;return e?null==(t=Yt(e))||dn(e)?e:Qt(t)||an(fl.doc):null}function Qt(e){e=ms(e);return e&&an(e)||null}function ms(t){if(fl[t])return fl[t];for(let e=0;e({fileName:e.name,contentLength:e.size,filePath:un(e)}))}function Ll(e,t){e.onerror=null,e.src=fn(e.src,t)||""}function fn(e,t){return Qt($t(e,".").toLowerCase())||(t?Qt(t)||t:null)||Qt("doc")}function Kl(e){if(e)return e=$t(e,".").toLowerCase(),ca[e]||"application/"+e;throw new Error("fileNameOrExt required")}function Ch(){return{extSvg:ms,extSrc:Qt,getExt:Yt,encodeSvg:ds,canPreview:dn,getFileName:rn,getMimeType:Kl,formatBytes:cn,filePathUri:yt,svgToDataUri:an,fileImageUri:un,objectUrl:cs,flush:fs,inputFiles:fa,iconOnError:Ll,iconFallbackSrc:fn}}class ma{constructor(e){Ce(this,"view"),Ce(this,"includeTypes"),Object.assign(this,e)}getTypeName(){return"MetadataApp"}getMethod(){return"GET"}createResponse(){return{}}}const Ot="/metadata/app.json",va={Boolean:"checkbox",DateTime:"date",DateOnly:"date",DateTimeOffset:"date",TimeSpan:"time",TimeOnly:"time",Byte:"number",Short:"number",Int64:"number",Int32:"number",UInt16:"number",UInt32:"number",UInt64:"number",Single:"number",Double:"number",Decimal:"number",String:"text",Guid:"text",Uri:"text"},ha={number:"Int32",checkbox:"Boolean",date:"DateTime","datetime-local":"DateTime",time:"TimeSpan"},Zl={Byte:"byte",Int16:"short",Int32:"int",Int64:"long",UInt16:"ushort",Unt32:"uint",UInt64:"ulong",Single:"float",Double:"double",Decimal:"decimal"},ga=([...Object.keys(Zl),...Object.values(Zl)],{String:"string",Boolean:"bool",...Zl});function rl(e){return ga[e]||e}function vs(e,t){return e?(t=t||[],"Nullable`1"===e?rl(t[0])+"?":e.endsWith("[]")?`List<${rl(e.substring(0,e.length-2))}>`:0===t.length?rl(e):xl(rl(e),"`")+"<"+t.join(",")+">"):""}function pa(e){return e&&vs(e.name,e.genericArgs)}class Pt{constructor(){Ce(this,"Query"),Ce(this,"QueryInto"),Ce(this,"Create"),Ce(this,"Update"),Ce(this,"Patch"),Ce(this,"Delete")}get AnyQuery(){return this.Query||this.QueryInto}get AnyUpdate(){return this.Patch||this.Update}toArray(){return[this.Query,this.QueryInto,this.Create,this.Update,this.Patch,this.Delete].filter(e=>!!e).map(e=>e)}get empty(){return!(this.Query||this.QueryInto||this.Create||this.Update||this.Patch||this.Delete)}add(e){ze.isQueryInto(e)&&!this.QueryInto?this.QueryInto=e:ze.isQuery(e)&&!this.Query?this.Query=e:ze.isCreate(e)&&!this.Create?this.Create=e:ze.isUpdate(e)&&!this.Update?this.Update=e:ze.isPatch(e)&&!this.Patch?this.Patch=e:ze.isDelete(e)&&!this.Delete&&(this.Delete=e)}static from(e){const t=new Pt;return e.forEach(e=>{t.add(e)}),t}static forType(l,e){var t;let a=new Pt;return l&&(null!=(e=e??(null==(t=ne.metadata.value)?void 0:t.api))&&e.operations.forEach(e=>{var t;(null==(t=e.dataModel)?void 0:t.name)==l&&a.add(e)})),a}}const ze={Create:"ICreateDb`1",Update:"IUpdateDb`1",Patch:"IPatchDb`1",Delete:"IDeleteDb`1",AnyRead:["QueryDb`1","QueryDb`2"],AnyWrite:["ICreateDb`1","IUpdateDb`1","IPatchDb`1","IDeleteDb`1"],isAnyQuery:e=>qe(e.request.inherits,e=>0<=ze.AnyRead.indexOf(e.name)),isQuery:e=>qe(e.request.inherits,e=>"QueryDb`1"===e.name),isQueryInto:e=>qe(e.request.inherits,e=>"QueryDb`2"===e.name),isCrud:e=>{return null==(e=e.request.implements)?void 0:e.some(e=>0<=ze.AnyWrite.indexOf(e.name))},isCreate:e=>ul(e,ze.Create),isUpdate:e=>ul(e,ze.Update),isPatch:e=>ul(e,ze.Patch),isDelete:e=>ul(e,ze.Delete),model:e=>{var t;return e?qe(e.inherits,e=>0<=ze.AnyRead.indexOf(e.name))?null==(t=e.inherits)?void 0:t.genericArgs[0]:null==(e=null==(t=e.implements)?void 0:t.find(e=>0<=ze.AnyWrite.indexOf(e.name)))?void 0:e.genericArgs[0]:null}};function ya(e){var t;return(null==(t=e.input)?void 0:t.type)||Vl(mn(e))}function hs(e){return e.endsWith("?")?go(e,1):e}function Vl(e){return va[hs(e)]}function ba(e){return e&&ha[e]||"String"}function mn(e){return"Nullable`1"===e.type?e.genericArgs[0]:e.type}function Gl(e){return e&&"number"==Vl(e)||!1}function gs(e){return e&&"string"==e.toLowerCase()||!1}function wa(e){return"List`1"==e||e.startsWith("List<")||e.endsWith("[]")}function ps(e){var t;return!(null==e||!e.type||(t=mn(e),e.isValueType&&-1==t.indexOf("`"))||e.isEnum||null!=Vl(e.type))}function ys(e){var t;return!!(null!=e&&e.type&&(t=mn(e),e.isValueType&&-1==t.indexOf("`")||e.isEnum||"hidden"==(null==(t=e.input)?void 0:t.type)||"file"==(null==(t=e.input)?void 0:t.type)||"tag"==(null==(t=e.input)?void 0:t.type)||"combobox"==(null==(t=e.input)?void 0:t.type)||null!=Vl(e.type)))}function Gt(e,t){let l="string"==typeof e?Sl(e):e,a=(l||(console.warn("Metadata not found for: "+e),l={request:{name:e}}),function(e){Object.assign(this,e)}),s=(n.prototype.createResponse=function(){return l.returnsVoid?void 0:new a},n.prototype.getTypeName=function(){return l.request.name},n.prototype.getMethod=function(){return l.method||"POST"},n);function n(e){Object.assign(this,e)}return new s(t)}function xa(e,t,l={}){let a=function(e){Object.assign(this,e)},s=(n.prototype.createResponse=function(){return"function"==typeof l.createResponse?l.createResponse():new a},n.prototype.getTypeName=function(){return e},n.prototype.getMethod=function(){return l.method||"POST"},n);function n(e){Object.assign(this,e)}return new s(t)}function ml(l,e){return l?(Object.keys(l).forEach(e=>{var t=l[e];"string"==typeof t?t.startsWith("/Date")&&(l[e]=$l(Vt(t))):null!=t&&"object"==typeof t&&(Array.isArray(t)?l[e]=Array.from(t):l[e]=Object.assign({},t))}),l):{}}function ka(e,r){let i={};return Array.from(e.elements).forEach(a=>{var s;if(a.id&&null!=a.value&&""!==a.value){const n=a.id.toLowerCase(),o=r&&r.find(e=>e.name.toLowerCase()==n);let e=null==o?void 0:o.type,t=null==(s=null==o?void 0:o.genericArgs)?void 0:s[0],l="checkbox"===a.type?a.checked:a.value;Gl(e)?l=Number(l):"List`1"===e&&"string"==typeof l&&(l=l.split(",").map(e=>Gl(t)?Number(e):e)),i[a.id]=l}}),i}function vn(e){var t;return(null==(t=null==e?void 0:e.api)?void 0:t.operations)&&0e)?!1:a)){if((t||l)&&(await Kn(t||Ot,l),null!=ne.metadata.value))return;var s=Ne("client");if(null!=s&&(e=await s.api(new ma)).succeeded&&Wt(e.response),null!=ne.metadata.value)return;await Kn(Ot)}return ne.metadata.value}function ot(t,l){var e,a=null==(a=ne.metadata.value)?void 0:a.api;return a&&t?a.types.find(e=>e.name.toLowerCase()===t.toLowerCase()&&(!l||e.namespace==l))||((e=Sl(t))?e.request:(e=a.operations.find(e=>e.response&&e.response.name.toLowerCase()===t.toLowerCase()&&(!l||e.response.namespace==l)))?e.response:null):null}function Sl(t){var e=null==(e=ne.metadata.value)?void 0:e.api;return e?e.operations.find(e=>e.request.name.toLowerCase()===t.toLowerCase()):null}function La({dataModel:e}){var t=null==(t=ne.metadata.value)?void 0:t.api;if(!t)return[];let l=t.operations;if(e){const a="string"==typeof e?ot(e):e;l=l.filter(e=>bs(e.dataModel,a))}return l}function gn(e){return e?ot(e.name,e.namespace):null}function bs(e,t){return e&&t&&e.name===t.name&&(!e.namespace||!t.namespace||e.namespace===t.namespace)}function Va(e,t){e=ot(e);return e&&e.properties&&e.properties.find(e=>e.name.toLowerCase()===t.toLowerCase())}function ws(e){return xs(ot(e))}function xs(t){if(t&&t.isEnum&&null!=t.enumNames){var l={};for(let e=0;el.push({key:e,value:t[e]})),l}}function Sa(e,t){a=e.name,l=(null==t?void 0:t.type)||ya(e)||"text";var l,a=Object.assign({id:a,name:a,type:l},t);return e.isEnum&&(a.type="select",a.allowableEntries=pn(ks(e))),a}function Ma(e){let n=[];if(e){const o=et(e),t=Sl(e.name),r=gn(null==t?void 0:t.dataModel);o.forEach(t=>{var e;if(ys(t)){const l=Sa(t,t.input);if(l.id=ho(l.id),"file"==l.type&&t.uploadTo&&!l.accept&&(e=null==(e=null==(e=ne.metadata.value)?void 0:e.plugins.filesUpload)?void 0:e.locations.find(e=>e.name==t.uploadTo))&&!l.accept&&e.allowExtensions&&(l.accept=e.allowExtensions.map(e=>e.startsWith(".")?e:"."+e).join(",")),r&&(e=null==(e=r.properties)?void 0:e.find(e=>e.name==t.name),t.ref||(t.ref=null==e?void 0:e.ref)),l.options)try{const a={input:l,$typeFields:o.map(e=>e.name),$dataModelFields:r?et(r).map(e=>e.name):[],...ne.config.scopeWhitelist},s=sn(l.options,a);Object.keys(s).forEach(e=>{l[e]=s[e]})}catch{console.error(`failed to evaluate '${l.options}'`)}n.push(l)}})}return n}function yn(t,e){if(!e.type)return console.error("enumDescriptions missing {type:'EnumType'} options"),[""+t];var l=ot(e.type);if(null==l||!l.enumValues)return console.error("Could not find metadata for "+e.type),[""+t];var a=[];for(let e=0;e"number"==typeof e?yn(e,{type:t}):e}function et(e){if(!e)return[];let t=[],l={};for(;e;)e.properties&&e.properties.forEach(e=>{l[e.name]||(l[e.name]=1,t.push(e))}),e=e.inherits?gn(e.inherits):null;return t.map(e=>e.type.endsWith("[]")?{...e,type:"List`1",genericArgs:[e.type.substring(0,e.type.length-2)]}:e)}function ul(e,t){return(null==(e=e.request.implements)?void 0:e.some(e=>e.name===t))||!1}function el(e){return e?Cs(e,et(e)):null}function Cs(e,t){var l=t.find(e=>"id"===e.name.toLowerCase());if(l&&l.isPrimaryKey)return l;t=t.find(e=>e.isPrimaryKey)||l;if(!t){l=ze.model(e);if(l)return qe(ot(l),e=>el(e));console.error("Primary Key not found in "+e.name)}return t||null}function Aa(e,t){return qe(el(e),e=>ye(t,e.name))}function _s(e,t,l){return e&&"none"===e.valueType?"":"%In"===l.key||"%Between"===l.key?`(${l.value})`:Ta(t,l.value)}function Ta(e,t){return!e||Gl(e=hs(e))||"Boolean"===e?t:wa(e)?`[${t}]`:`'${t}'`}function at(){var e=f(()=>{var e;return(null==(e=ne.metadata.value)?void 0:e.app)||null}),t=f(()=>{var e;return(null==(e=ne.metadata.value)?void 0:e.api)||null}),l=f(()=>{var e;return(null==(e=ne.metadata.value)?void 0:e.plugins.autoQuery.viewerConventions)||[]});return hn(),{loadMetadata:_a,getMetadata:$a,setMetadata:Wt,clearMetadata:Ca,metadataApp:e,metadataApi:t,filterDefinitions:l,typeOf:ot,typeOfRef:gn,typeEquals:bs,apiOf:Sl,findApis:La,typeName:pa,typeName2:vs,property:Va,enumOptions:ws,propertyOptions:ks,createFormLayout:Ma,typeProperties:et,supportsProp:ys,Crud:ze,Apis:Pt,getPrimaryKey:el,getPrimaryKeyByProps:Cs,getId:Aa,createDto:Gt,makeDto:xa,toFormValues:ml,formValues:ka,isComplexProp:ps,asKvps:pn,expandEnumFlags:yn,enumFlagsConverter:$s}}const Xe=class Xe{static async getOrFetchValue(e,t,l,a,s,n,o){return Xe.getValue(l,o,s)??(await Xe.fetchLookupIds(e,t,l,a,s,n,[o]),Xe.getValue(l,o,s))}static getValue(e,t,l){e=Xe.Lookup[e];if(e){e=e[t];if(e)return e[l=l.toLowerCase()]}}static setValue(e,t,l,a){e=Xe.Lookup[e]??(Xe.Lookup[e]={});(e[t]??(e[t]={}))[l=l.toLowerCase()]=a}static setRefValue(e,t){var l=ye(t,e.refId);return null==l||null==e.refLabel?null:(t=ye(t,e.refLabel),Xe.setValue(e.model,l,e.refLabel,t),t)}static async fetchLookupIds(e,t,l,a,s,n,o){t=t.operations.find(e=>{return ze.isAnyQuery(e)&&(null==(e=e.dataModel)?void 0:e.name)==l});if(t){const r=Xe.Lookup[l]??(Xe.Lookup[l]={}),i=[];Object.keys(r).forEach(e=>{var t=r[e];ye(t,s)&&i.push(e)});var o=o.filter(e=>!i.includes(e));0!=o.length&&(n=n?null:a+","+s,o={[a+"In"]:o.join(",")},n&&(o.fields=n),n=Gt(t,o),(o=await e.api(n,{jsconfig:"edv,eccn"})).succeeded?(ye(o.response,"results")||[]).forEach(e=>{var t,l;ye(e,a)?(t=""+ye(e,a),l=ye(e,s),s=s.toLowerCase(),(r[t]??(r[t]={}))[s]=""+l):console.error(`result[${a}] == null`,e)}):console.error("Failed to call "+t.request.name))}}};Ce(Xe,"Lookup",{});let Ft=Xe,Wl=()=>(new Date).getTime(),Fa=["/","T",":","-"],ut={assumeUtc:!0,date:{method:"Intl.DateTimeFormat",options:"{dateStyle:'medium'}"},maxFieldLength:150,maxNestedFields:2,maxNestedFieldLength:30},Ia=new Intl.RelativeTimeFormat(ut.locale,{}),Zn=31536e6,Rl={year:Zn,month:Zn/12,day:864e5,hour:36e5,minute:6e4,second:1e3},bt={currency:Vs,bytes:Ss,link:Ms,linkTel:As,linkMailTo:Ts,icon:Fs,iconRounded:Is,attachment:Ds,hidden:js,time:Os,relativeTime:wn,relativeTimeFromMs:Ml,enumFlags:Bs,formatDate:Ht,formatNumber:bn};"iconOnError"in globalThis||(globalThis.iconOnError=Ll);class Ke{}function Da(e){ut=Object.assign({},ut,e)}function ja(t){Object.keys(t||{}).forEach(e=>{"function"==typeof t[e]&&(bt[e]=t[e])})}function Ls(){return bt}function tl(e,t){return t?rt("span",e,t):e}function Vs(e,t){var l=dt(t,["currency"]);return tl(new Intl.NumberFormat(void 0,{style:"currency",currency:(null==t?void 0:t.currency)||"USD"}).format(e),l)}function Ss(e,t){return tl(cn(e),t)}function Ms(e,t){return rt("a",e,Cl({...t,href:e}))}function As(e,t){return rt("a",e,Cl({...t,href:"tel:"+e}))}function Ts(e,t){var{subject:l,body:a}=t=t||{},t=dt(t,["subject","body"]),s={};return l&&(s.subject=l),a&&(s.body=a),rt("a",e,Cl({...t,href:"mailto:"+Kt(e,s)}))}function Fs(e,t){return rt("img",void 0,Object.assign({class:"w-6 h-6",title:e,src:Dt(e),onerror:"iconOnError(this)"},t))}function Is(e,t){return rt("img",void 0,Object.assign({class:"w-8 h-8 rounded-full",title:e,src:Dt(e),onerror:"iconOnError(this)"},t))}function Ds(e,t){var l=rn(e),a=(null==Yt(l)||dn(e)?Dt:fn)(e),a=Dt(a),s=t&&(t["icon-class"]||t.iconClass),a=rt("img",void 0,Object.assign({class:"w-6 h-6",src:a,onerror:"iconOnError(this,'att')"},s?{class:s}:null));return rt("a",a+`${l}`,Object.assign({class:"flex",href:Dt(e),title:e},t?dt(t,["icon-class","iconClass"]):null))}function js(e){return""}function Os(e,t){var l="string"==typeof e?new Date(1e3*Yn(e)):kl(e)?Vt(e):null;return tl(l?po(l):e,t)}function Ht(e,t){var l,a;return null==e?"":(l="number"==typeof e?new Date(e):"string"==typeof e?Vt(e):e,kl(l)?tl(("function"==typeof(a=ut.date?Al(ut.date):null)?a:Xn)(l),t):(console.warn(l+" is not a Date value"),null==e?"":""+e))}function bn(e,t){if("number"!=typeof e)return e;let l=ut.number?Al(ut.number):null,a="function"==typeof l?l(e):""+e;return""===a&&(console.warn(`formatNumber(${e}) => `+a,l),a=""+e),tl(a,t)}function Ps(t,l,a){var e=yo(t),s=l?Al(l):null;if("function"!=typeof s)return(null!=e?kl(e)?Ht(e,a):"number"==typeof e?bn(e,a):e:null)??"";{let e=a;if(null!=l&&l.options)try{e=sn(l.options,a)}catch(e){console.error(`Could not evaluate '${l.options}'`,e,", with scope:",a)}return s(t,e)}}function Jt(e,t,l){return(_t(e)?Ps:Ea)(e,t,l)}function Oa(e){if(null!=e){if("number"==typeof e)return e;if(kl(e))return e.getTime()-Wl();if("string"==typeof e){var t=Number(e);if(!isNaN(t))return t;if("P"===e[0]||e.startsWith("-P"))return 1e3*Yn(e)*-1;if(0<=bo(e,Fa))return Vt(e).getTime()-Wl()}}return NaN}function Ml(e,t){for(var l in Rl)if(Math.abs(e)>Rl[l]||"second"===l)return(t||Ia).format(Math.round(e/Rl[l]),l)}function wn(e,t){e=Oa(e);return isNaN(e)?"":Ml(e,t)}function Pa(e,t){return Ml(e.getTime()-(t?t.getTime():Wl()))}function Bs(e,t){return yn(e,t).join(", ")}function Al(l){if(l){let{method:e,options:a}=l,s=e+`(${a})`,n=bt[s]||bt[e];if("function"==typeof n)return n;let o=l.locale||ut.locale;if(e.startsWith("Intl.")){l=o?`'${o}'`:"undefined",l=`return new ${e}(${l},${a||"undefined"})`;try{let t=Function(l)();return n="Intl.DateTimeFormat"===e?e=>t.format(Vt(e)):"Intl.NumberFormat"===e?e=>t.format(Number(e)):"Intl.RelativeTimeFormat"===e?e=>wn(e,t):e=>t.format(e),bt[s]=n}catch(e){console.error("Invalid format: "+l,e)}}else{let l=globalThis[e];if("function"==typeof l){let t=null!=a?Function("return "+a)():void 0;return n=e=>l(e,t,o),bt[s]=n}console.error(`No '${e}' function exists`,Object.keys(bt))}}return null}function Rs(e,t){return e?e.length>t?e.substring(0,t)+"...":e:""}function Es(e){return"/Date("===e.substring(0,6)?Ht(Vt(e)):e}function Ba(e){return xn(Bt(e)).replace(/"/g,"")}function Hs(e){if(null==e||""===e)return"";if("string"==typeof e)try{return JSON.parse(e)}catch{console.warn("couldn't parse as JSON",e)}return e}function xn(e,t=4){return"object"!=typeof(e=Hs(e))?"string"==typeof e?e:""+e:JSON.stringify(e,void 0,t)}function Ra(e){return"object"!=typeof(e=Hs(e))?"string"==typeof e?e:""+e:xn(e=Bt(e=Object.assign({},e)))}function Bt(l){if(null==l)return null;if("string"==typeof l)return Es(l);if(_t(l))return l;if(l instanceof Date)return Ht(l);if(Array.isArray(l))return l.map(Bt);if("object"!=typeof l)return l;{let t={};return Object.keys(l).forEach(e=>{"__type"!=e&&(t[e]=Bt(l[e]))}),t}}function Ea(e,t,l){let a=e;if(Array.isArray(e)){if(_t(e[0]))return a.join(",");null!=e[0]&&(a=e[0])}if(null==a)return"";if(a instanceof Date)return Ht(a,l);var s=Object.keys(a),n=[];for(let e=0;e${o}: `+Hl(Rs(Es(r),ut.maxNestedFieldLength)))}return 2t.value.navigate(e.to??"/");return(e,t)=>(a(),u("a",Me({onClick:Ue(s,["prevent"]),title:l.to,href:"javascript:void(0)"},e.$attrs),[Z(e.$slots,"default")],16,Ha))}});class Na{constructor(){Ce(this,"callbacks",{})}register(e,t){this.callbacks[e]=t}has(e){return!!this.callbacks[e]}invoke(e,t){var l=this.callbacks[e];"function"==typeof l&&l(e,t)}}const Ye=class Ye{static component(e){var t=Ye.components[e];if(t)return t;const l=Nn(e),a=Object.keys(Ye.components).find(e=>Nn(e)===l);return a&&Ye.components[a]||null}};Ce(Ye,"config",{redirectSignIn:"/signin",redirectSignOut:"/auth/logout",navigate:e=>location.href=e,assetsPathResolver:e=>e,fallbackPathResolver:e=>e,storage:new ss,tableIcon:{svg:""},scopeWhitelist:{enumFlagsConverter:$s,...Ls()}}),Ce(Ye,"autoQueryGridDefaults",{deny:[],hide:[],toolbarButtonClass:void 0,tableStyle:"stripedRows",take:25,maxFieldLength:150}),Ce(Ye,"events",wo()),Ce(Ye,"user",A(null)),Ce(Ye,"metadata",A(null)),Ce(Ye,"components",{RouterLink:za}),Ce(Ye,"interceptors",new Na);let ne=Ye;function Ua(e){ne.config=Object.assign(ne.config,e)}function qa(e){ne.autoQueryGridDefaults=Object.assign(ne.autoQueryGridDefaults,e)}function kn(e){return e&&ne.config.assetsPathResolver?ne.config.assetsPathResolver(e):e}function Qa(e){return e&&ne.config.fallbackPathResolver?ne.config.fallbackPathResolver(e):e}function Ka(e,t){ne.interceptors.register(e,t)}function St(){var e=f(()=>ne.config),t=f(()=>ne.autoQueryGridDefaults);return{config:e,setConfig:Ua,events:ne.events,autoQueryGridDefaults:t,setAutoQueryGridDefaults:qa,assetsPathResolver:kn,fallbackPathResolver:Qa,registerInterceptor:Ka}}const zs=ce({inheritAttrs:!1,props:{image:Object,svg:String,src:String,alt:String,type:String},setup(s,{attrs:n}){return()=>{let e=s.image;var t,l;s.type&&(l=at()["typeOf"],(l=l(s.type))||console.warn(`Type ${s.type} does not exist`),null!=l&&l.icon?e=null==l?void 0:l.icon:console.warn(`Type ${s.type} does not have a [Svg] icon`));let a=s.svg||(null==e?void 0:e.svg)||"";return a.startsWith("