@luizleon/sf.prefeiturasp.vuecomponents 0.0.31 → 0.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib.umd.js
CHANGED
|
@@ -64,7 +64,7 @@ https://sweetalert2.github.io/#ajax-request`),Ci(t),typeof t.title=="string"&&(t
|
|
|
64
64
|
If you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md`)}),e};function As(){const t=D.domCache.get(this),e=D.innerParams.get(this);if(!e){co(this);return}t.popup&&M.swalCloseEventFinishedCallback&&(M.swalCloseEventFinishedCallback(),delete M.swalCloseEventFinishedCallback),M.deferDisposalTimer&&(clearTimeout(M.deferDisposalTimer),delete M.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),Cs(this)}const Cs=t=>{co(t),delete t.params,delete M.keydownHandler,delete M.keydownTarget,delete M.currentInstance},co=t=>{t.isAwaitingPromise()?(sn(D,t),D.awaitingPromise.set(t,!0)):(sn(wt,t),sn(D,t))},sn=(t,e)=>{for(const n in t)t[n].delete(e)},uo=Object.freeze(Object.defineProperty({__proto__:null,_destroy:As,close:Rt,closeModal:Rt,closePopup:Rt,closeToast:Rt,disableButtons:ms,disableInput:bs,disableLoading:to,enableButtons:ps,enableInput:gs,getInput:Ji,getProgressSteps:vs,handleAwaitingPromise:vt,hideLoading:to,isAwaitingPromise:ls,rejectPromise:us,resetValidationMessage:ws,showValidationMessage:ys,update:ks},Symbol.toStringTag,{value:"Module"})),Es=t=>{const e=D.innerParams.get(t);t.disableButtons(),e.input?fo(t,"confirm"):ln(t,!0)},xs=t=>{const e=D.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?fo(t,"deny"):an(t,!1)},Ss=(t,e)=>{t.disableButtons(),e(Xe.cancel)},fo=(t,e)=>{const n=D.innerParams.get(t);if(!n.input)return Ue(`The "input" parameter is needed to be set when using returnInputValueOn${Wt(e)}`);const o=Vi(t,n);n.inputValidator?Ts(t,o,e):t.getInput().checkValidity()?e==="deny"?an(t,o):ln(t,o):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},Ts=(t,e,n)=>{const o=D.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>dt(o.inputValidator(e,o.validationMessage))).then(c=>{t.enableButtons(),t.enableInput(),c?t.showValidationMessage(c):n==="deny"?an(t,e):ln(t,e)})},an=(t,e)=>{const n=D.innerParams.get(t||globalThis);n.showLoaderOnDeny&&Ze(Me()),n.preDeny?(D.awaitingPromise.set(t||globalThis,!0),Promise.resolve().then(()=>dt(n.preDeny(e,n.validationMessage))).then(s=>{s===!1?(t.hideLoading(),vt(t)):t.closePopup({isDenied:!0,value:typeof s>"u"?e:s})}).catch(s=>po(t||globalThis,s))):t.closePopup({isDenied:!0,value:e})},ho=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},po=(t,e)=>{t.rejectPromise(e)},ln=(t,e)=>{const n=D.innerParams.get(t||globalThis);n.showLoaderOnConfirm&&Ze(),n.preConfirm?(t.resetValidationMessage(),D.awaitingPromise.set(t||globalThis,!0),Promise.resolve().then(()=>dt(n.preConfirm(e,n.validationMessage))).then(s=>{we(Lt())||s===!1?(t.hideLoading(),vt(t)):ho(t,typeof s>"u"?e:s)}).catch(s=>po(t||globalThis,s))):ho(t,e)},Ls=(t,e,n)=>{D.innerParams.get(t).toast?Is(t,e,n):(Bs(e),Rs(e),Os(t,e,n))},Is=(t,e,n)=>{e.popup.onclick=()=>{const o=D.innerParams.get(t);o&&(Ps(o)||o.timer||o.input)||n(Xe.close)}},Ps=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let Ot=!1;const Bs=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Ot=!0)}}},Rs=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(Ot=!0)}}},Os=(t,e,n)=>{e.container.onclick=o=>{const s=D.innerParams.get(t);if(Ot){Ot=!1;return}o.target===e.container&&St(s.allowOutsideClick)&&n(Xe.backdrop)}},Fs=t=>typeof t=="object"&&t.jquery,mo=t=>t instanceof Element||Fs(t),Ms=t=>{const e={};return typeof t[0]=="object"&&!mo(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,o)=>{const s=t[o];typeof s=="string"||mo(s)?e[n]=s:s!==void 0&&Ue(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof s}`)}),e};function Ns(...t){const e=this;return new e(...t)}function Ds(t){class e extends this{_main(o,s){return super._main(o,Object.assign({},t,s))}}return e}const Us=()=>M.timeout&&M.timeout.getTimerLeft(),go=()=>{if(M.timeout)return xr(),M.timeout.stop()},bo=()=>{if(M.timeout){const t=M.timeout.start();return Qt(t),t}},$s=()=>{const t=M.timeout;return t&&(t.running?go():bo())},Hs=t=>{if(M.timeout){const e=M.timeout.increase(t);return Qt(e,!0),e}},Vs=()=>M.timeout&&M.timeout.isRunning();let yo=!1;const cn={};function js(t="data-swal-template"){cn[t]=this,yo||(document.body.addEventListener("click",zs),yo=!0)}const zs=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in cn){const o=e.getAttribute(n);if(o){cn[n].fire({template:o});return}}},Ws=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:Ms,bindClickHandler:js,clickCancel:Qi,clickConfirm:no,clickDeny:Zi,enableLoading:Ze,fire:Ns,getActions:mt,getCancelButton:$e,getCloseButton:Yt,getConfirmButton:Se,getContainer:ne,getDenyButton:Me,getFocusableElements:Jt,getFooter:Nn,getHtmlContainer:Tt,getIcon:pt,getImage:Fn,getInputLabel:kr,getLoader:Ye,getPopup:j,getTimerLeft:Us,getTimerProgressBar:It,getTitle:On,getValidationMessage:Lt,increaseTimer:Hs,isDeprecatedParameter:Gt,isLoading:Ar,isTimerRunning:Vs,isUpdatableParameter:Bn,isValidParameter:Pn,isVisible:Xi,mixin:Ds,resumeTimer:bo,showLoading:Ze,stopTimer:go,toggleTimer:$s},Symbol.toStringTag,{value:"Module"}));let un;class Qe{constructor(...e){if(typeof window>"u")return;un=this;const n=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:n,writable:!1,enumerable:!0,configurable:!0}});const o=this._main(this.params);D.promise.set(this,o)}_main(e,n={}){wr(Object.assign({},n,e)),M.currentInstance&&(M.currentInstance._destroy(),Xt()&&Yn()),M.currentInstance=this;const o=Ks(e,n);Ei(o),Object.freeze(o),M.timeout&&(M.timeout.stop(),delete M.timeout),clearTimeout(M.restoreFocusTimeout);const s=Gs(this);return Gn(this,o),D.innerParams.set(this,o),qs(this,s,o)}then(e){return D.promise.get(this).then(e)}finally(e){return D.promise.get(this).finally(e)}}const qs=(t,e,n)=>new Promise((o,s)=>{const c=k=>{t.closePopup({isDismissed:!0,dismiss:k})};wt.swalPromiseResolve.set(t,o),wt.swalPromiseReject.set(t,s),e.confirmButton.onclick=()=>Es(t),e.denyButton.onclick=()=>xs(t),e.cancelButton.onclick=()=>Ss(t,c),e.closeButton.onclick=()=>c(Xe.close),Ls(t,e,c),es(t,M,n,c),Hi(t,n),Mi(n),Ys(M,n,c),Js(e,n),setTimeout(()=>{e.container.scrollTop=0})}),Ks=(t,e)=>{const n=mi(t),o=Object.assign({},Ge,e,n,t);return o.showClass=Object.assign({},Ge.showClass,o.showClass),o.hideClass=Object.assign({},Ge.hideClass,o.hideClass),o},Gs=t=>{const e={popup:j(),container:ne(),actions:mt(),confirmButton:Se(),denyButton:Me(),cancelButton:$e(),loader:Ye(),closeButton:Yt(),validationMessage:Lt(),progressSteps:Mn()};return D.domCache.set(t,e),e},Ys=(t,e,n)=>{const o=It();re(o),e.timer&&(t.timeout=new xi(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(ee(o),Ce(o,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&Qt(e.timer)})))},Js=(t,e)=>{if(!e.toast){if(!St(e.allowEnterKey))return Zs();Xs(t,e)||rn(e,-1,1)}},Xs=(t,e)=>e.focusDeny&&we(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&we(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&we(t.confirmButton)?(t.confirmButton.focus(),!0):!1,Zs=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(Qe.prototype,uo),Object.assign(Qe,Ws),Object.keys(uo).forEach(t=>{Qe[t]=function(...e){if(un)return un[t](...e)}}),Qe.DismissReason=Xe,Qe.version="11.4.8";const et=Qe;et.default=et;/*! @license DOMPurify 3.0.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.6/LICENSE */const{entries:wo,setPrototypeOf:vo,isFrozen:Qs,getPrototypeOf:ea,getOwnPropertyDescriptor:ko}=Object;let{freeze:ae,seal:Te,create:_o}=Object,{apply:dn,construct:fn}=typeof Reflect<"u"&&Reflect;ae||(ae=function(e){return e}),Te||(Te=function(e){return e}),dn||(dn=function(e,n,o){return e.apply(n,o)}),fn||(fn=function(e,n){return new e(...n)});const Ft=Ee(Array.prototype.forEach),Ao=Ee(Array.prototype.pop),kt=Ee(Array.prototype.push),Mt=Ee(String.prototype.toLowerCase),hn=Ee(String.prototype.toString),ta=Ee(String.prototype.match),_t=Ee(String.prototype.replace),na=Ee(String.prototype.indexOf),oa=Ee(String.prototype.trim),ve=Ee(RegExp.prototype.test),At=ra(TypeError);function Ee(t){return function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];return dn(t,e,o)}}function ra(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return fn(t,n)}}function N(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Mt;vo&&vo(t,null);let o=e.length;for(;o--;){let s=e[o];if(typeof s=="string"){const c=n(s);c!==s&&(Qs(e)||(e[o]=c),s=c)}t[s]=!0}return t}function tt(t){const e=_o(null);for(const[n,o]of wo(t))ko(t,n)!==void 0&&(e[n]=o);return e}function Nt(t,e){for(;t!==null;){const o=ko(t,e);if(o){if(o.get)return Ee(o.get);if(typeof o.value=="function")return Ee(o.value)}t=ea(t)}function n(o){return console.warn("fallback value for",o),null}return n}const Co=ae(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),pn=ae(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),mn=ae(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ia=ae(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),gn=ae(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),sa=ae(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Eo=ae(["#text"]),xo=ae(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),bn=ae(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),So=ae(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Dt=ae(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),aa=Te(/\{\{[\w\W]*|[\w\W]*\}\}/gm),la=Te(/<%[\w\W]*|[\w\W]*%>/gm),ca=Te(/\${[\w\W]*}/gm),ua=Te(/^data-[\-\w.\u00B7-\uFFFF]/),da=Te(/^aria-[\-\w]+$/),To=Te(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),fa=Te(/^(?:\w+script|data):/i),ha=Te(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Lo=Te(/^html$/i);var Io=Object.freeze({__proto__:null,MUSTACHE_EXPR:aa,ERB_EXPR:la,TMPLIT_EXPR:ca,DATA_ATTR:ua,ARIA_ATTR:da,IS_ALLOWED_URI:To,IS_SCRIPT_OR_DATA:fa,ATTR_WHITESPACE:ha,DOCTYPE_NAME:Lo});const pa=function(){return typeof window>"u"?null:window},ma=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const s="data-tt-policy-suffix";n&&n.hasAttribute(s)&&(o=n.getAttribute(s));const c="dompurify"+(o?"#"+o:"");try{return e.createPolicy(c,{createHTML(k){return k},createScriptURL(k){return k}})}catch{return console.warn("TrustedTypes policy "+c+" could not be created."),null}};function Po(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pa();const e=L=>Po(L);if(e.version="3.0.6",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;let{document:n}=t;const o=n,s=o.currentScript,{DocumentFragment:c,HTMLTemplateElement:k,Node:I,Element:d,NodeFilter:U,NamedNodeMap:W=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:J,DOMParser:le,trustedTypes:z}=t,Re=d.prototype,ot=Nt(Re,"cloneNode"),ke=Nt(Re,"nextSibling"),rt=Nt(Re,"childNodes"),he=Nt(Re,"parentNode");if(typeof k=="function"){const L=n.createElement("template");L.content&&L.content.ownerDocument&&(n=L.content.ownerDocument)}let $,_e="";const{implementation:Z,createNodeIterator:h,createDocumentFragment:A,getElementsByTagName:P}=n,{importNode:C}=o;let _={};e.isSupported=typeof wo=="function"&&typeof he=="function"&&Z&&Z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:v,ERB_EXPR:O,TMPLIT_EXPR:m,DATA_ATTR:F,ARIA_ATTR:q,IS_SCRIPT_OR_DATA:X,ATTR_WHITESPACE:Y}=Io;let{IS_ALLOWED_URI:ce}=Io,B=null;const pe=N({},[...Co,...pn,...mn,...gn,...Eo]);let r=null;const a=N({},[...xo,...bn,...So,...Dt]);let f=Object.seal(_o(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),b=null,p=null,E=!0,g=!0,y=!1,S=!0,x=!1,R=!1,H=!1,me=!1,ue=!1,te=!1,Pe=!1,Do=!0,Uo=!1;const ml="user-content-";let kn=!0,Et=!1,it={},st=null;const $o=N({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ho=null;const Vo=N({},["audio","video","img","source","image","track"]);let _n=null;const jo=N({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),$t="http://www.w3.org/1998/Math/MathML",Ht="http://www.w3.org/2000/svg",Oe="http://www.w3.org/1999/xhtml";let at=Oe,An=!1,Cn=null;const gl=N({},[$t,Ht,Oe],hn);let je=null;const bl=["application/xhtml+xml","text/html"],yl="text/html";let Q=null,lt=null;const wl=n.createElement("form"),zo=function(i){return i instanceof RegExp||i instanceof Function},En=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(lt&<===i)){if((!i||typeof i!="object")&&(i={}),i=tt(i),je=bl.indexOf(i.PARSER_MEDIA_TYPE)===-1?je=yl:je=i.PARSER_MEDIA_TYPE,Q=je==="application/xhtml+xml"?hn:Mt,B="ALLOWED_TAGS"in i?N({},i.ALLOWED_TAGS,Q):pe,r="ALLOWED_ATTR"in i?N({},i.ALLOWED_ATTR,Q):a,Cn="ALLOWED_NAMESPACES"in i?N({},i.ALLOWED_NAMESPACES,hn):gl,_n="ADD_URI_SAFE_ATTR"in i?N(tt(jo),i.ADD_URI_SAFE_ATTR,Q):jo,Ho="ADD_DATA_URI_TAGS"in i?N(tt(Vo),i.ADD_DATA_URI_TAGS,Q):Vo,st="FORBID_CONTENTS"in i?N({},i.FORBID_CONTENTS,Q):$o,b="FORBID_TAGS"in i?N({},i.FORBID_TAGS,Q):{},p="FORBID_ATTR"in i?N({},i.FORBID_ATTR,Q):{},it="USE_PROFILES"in i?i.USE_PROFILES:!1,E=i.ALLOW_ARIA_ATTR!==!1,g=i.ALLOW_DATA_ATTR!==!1,y=i.ALLOW_UNKNOWN_PROTOCOLS||!1,S=i.ALLOW_SELF_CLOSE_IN_ATTR!==!1,x=i.SAFE_FOR_TEMPLATES||!1,R=i.WHOLE_DOCUMENT||!1,ue=i.RETURN_DOM||!1,te=i.RETURN_DOM_FRAGMENT||!1,Pe=i.RETURN_TRUSTED_TYPE||!1,me=i.FORCE_BODY||!1,Do=i.SANITIZE_DOM!==!1,Uo=i.SANITIZE_NAMED_PROPS||!1,kn=i.KEEP_CONTENT!==!1,Et=i.IN_PLACE||!1,ce=i.ALLOWED_URI_REGEXP||To,at=i.NAMESPACE||Oe,f=i.CUSTOM_ELEMENT_HANDLING||{},i.CUSTOM_ELEMENT_HANDLING&&zo(i.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(f.tagNameCheck=i.CUSTOM_ELEMENT_HANDLING.tagNameCheck),i.CUSTOM_ELEMENT_HANDLING&&zo(i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(f.attributeNameCheck=i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),i.CUSTOM_ELEMENT_HANDLING&&typeof i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(f.allowCustomizedBuiltInElements=i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),x&&(g=!1),te&&(ue=!0),it&&(B=N({},[...Eo]),r=[],it.html===!0&&(N(B,Co),N(r,xo)),it.svg===!0&&(N(B,pn),N(r,bn),N(r,Dt)),it.svgFilters===!0&&(N(B,mn),N(r,bn),N(r,Dt)),it.mathMl===!0&&(N(B,gn),N(r,So),N(r,Dt))),i.ADD_TAGS&&(B===pe&&(B=tt(B)),N(B,i.ADD_TAGS,Q)),i.ADD_ATTR&&(r===a&&(r=tt(r)),N(r,i.ADD_ATTR,Q)),i.ADD_URI_SAFE_ATTR&&N(_n,i.ADD_URI_SAFE_ATTR,Q),i.FORBID_CONTENTS&&(st===$o&&(st=tt(st)),N(st,i.FORBID_CONTENTS,Q)),kn&&(B["#text"]=!0),R&&N(B,["html","head","body"]),B.table&&(N(B,["tbody"]),delete b.tbody),i.TRUSTED_TYPES_POLICY){if(typeof i.TRUSTED_TYPES_POLICY.createHTML!="function")throw At('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof i.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw At('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');$=i.TRUSTED_TYPES_POLICY,_e=$.createHTML("")}else $===void 0&&($=ma(z,s)),$!==null&&typeof _e=="string"&&(_e=$.createHTML(""));ae&&ae(i),lt=i}},Wo=N({},["mi","mo","mn","ms","mtext"]),qo=N({},["foreignobject","desc","title","annotation-xml"]),vl=N({},["title","style","font","a","script"]),Vt=N({},pn);N(Vt,mn),N(Vt,ia);const xn=N({},gn);N(xn,sa);const kl=function(i){let w=he(i);(!w||!w.tagName)&&(w={namespaceURI:at,tagName:"template"});const T=Mt(i.tagName),K=Mt(w.tagName);return Cn[i.namespaceURI]?i.namespaceURI===Ht?w.namespaceURI===Oe?T==="svg":w.namespaceURI===$t?T==="svg"&&(K==="annotation-xml"||Wo[K]):!!Vt[T]:i.namespaceURI===$t?w.namespaceURI===Oe?T==="math":w.namespaceURI===Ht?T==="math"&&qo[K]:!!xn[T]:i.namespaceURI===Oe?w.namespaceURI===Ht&&!qo[K]||w.namespaceURI===$t&&!Wo[K]?!1:!xn[T]&&(vl[T]||!Vt[T]):!!(je==="application/xhtml+xml"&&Cn[i.namespaceURI]):!1},ze=function(i){kt(e.removed,{element:i});try{i.parentNode.removeChild(i)}catch{i.remove()}},Sn=function(i,w){try{kt(e.removed,{attribute:w.getAttributeNode(i),from:w})}catch{kt(e.removed,{attribute:null,from:w})}if(w.removeAttribute(i),i==="is"&&!r[i])if(ue||te)try{ze(w)}catch{}else try{w.setAttribute(i,"")}catch{}},Ko=function(i){let w=null,T=null;if(me)i="<remove></remove>"+i;else{const se=ta(i,/^[\r\n\t ]+/);T=se&&se[0]}je==="application/xhtml+xml"&&at===Oe&&(i='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+i+"</body></html>");const K=$?$.createHTML(i):i;if(at===Oe)try{w=new le().parseFromString(K,je)}catch{}if(!w||!w.documentElement){w=Z.createDocument(at,"template",null);try{w.documentElement.innerHTML=An?_e:K}catch{}}const ie=w.body||w.documentElement;return i&&T&&ie.insertBefore(n.createTextNode(T),ie.childNodes[0]||null),at===Oe?P.call(w,R?"html":"body")[0]:R?w.documentElement:ie},Go=function(i){return h.call(i.ownerDocument||i,i,U.SHOW_ELEMENT|U.SHOW_COMMENT|U.SHOW_TEXT,null)},_l=function(i){return i instanceof J&&(typeof i.nodeName!="string"||typeof i.textContent!="string"||typeof i.removeChild!="function"||!(i.attributes instanceof W)||typeof i.removeAttribute!="function"||typeof i.setAttribute!="function"||typeof i.namespaceURI!="string"||typeof i.insertBefore!="function"||typeof i.hasChildNodes!="function")},Yo=function(i){return typeof I=="function"&&i instanceof I},Fe=function(i,w,T){_[i]&&Ft(_[i],K=>{K.call(e,w,T,lt)})},Jo=function(i){let w=null;if(Fe("beforeSanitizeElements",i,null),_l(i))return ze(i),!0;const T=Q(i.nodeName);if(Fe("uponSanitizeElement",i,{tagName:T,allowedTags:B}),i.hasChildNodes()&&!Yo(i.firstElementChild)&&ve(/<[/\w]/g,i.innerHTML)&&ve(/<[/\w]/g,i.textContent))return ze(i),!0;if(!B[T]||b[T]){if(!b[T]&&Zo(T)&&(f.tagNameCheck instanceof RegExp&&ve(f.tagNameCheck,T)||f.tagNameCheck instanceof Function&&f.tagNameCheck(T)))return!1;if(kn&&!st[T]){const K=he(i)||i.parentNode,ie=rt(i)||i.childNodes;if(ie&&K){const se=ie.length;for(let ge=se-1;ge>=0;--ge)K.insertBefore(ot(ie[ge],!0),ke(i))}}return ze(i),!0}return i instanceof d&&!kl(i)||(T==="noscript"||T==="noembed"||T==="noframes")&&ve(/<\/no(script|embed|frames)/i,i.innerHTML)?(ze(i),!0):(x&&i.nodeType===3&&(w=i.textContent,Ft([v,O,m],K=>{w=_t(w,K," ")}),i.textContent!==w&&(kt(e.removed,{element:i.cloneNode()}),i.textContent=w)),Fe("afterSanitizeElements",i,null),!1)},Xo=function(i,w,T){if(Do&&(w==="id"||w==="name")&&(T in n||T in wl))return!1;if(!(g&&!p[w]&&ve(F,w))){if(!(E&&ve(q,w))){if(!r[w]||p[w]){if(!(Zo(i)&&(f.tagNameCheck instanceof RegExp&&ve(f.tagNameCheck,i)||f.tagNameCheck instanceof Function&&f.tagNameCheck(i))&&(f.attributeNameCheck instanceof RegExp&&ve(f.attributeNameCheck,w)||f.attributeNameCheck instanceof Function&&f.attributeNameCheck(w))||w==="is"&&f.allowCustomizedBuiltInElements&&(f.tagNameCheck instanceof RegExp&&ve(f.tagNameCheck,T)||f.tagNameCheck instanceof Function&&f.tagNameCheck(T))))return!1}else if(!_n[w]){if(!ve(ce,_t(T,Y,""))){if(!((w==="src"||w==="xlink:href"||w==="href")&&i!=="script"&&na(T,"data:")===0&&Ho[i])){if(!(y&&!ve(X,_t(T,Y,"")))){if(T)return!1}}}}}}return!0},Zo=function(i){return i.indexOf("-")>0},Qo=function(i){Fe("beforeSanitizeAttributes",i,null);const{attributes:w}=i;if(!w)return;const T={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:r};let K=w.length;for(;K--;){const ie=w[K],{name:se,namespaceURI:ge,value:We}=ie,xt=Q(se);let be=se==="value"?We:oa(We);if(T.attrName=xt,T.attrValue=be,T.keepAttr=!0,T.forceKeepAttr=void 0,Fe("uponSanitizeAttribute",i,T),be=T.attrValue,T.forceKeepAttr||(Sn(se,i),!T.keepAttr))continue;if(!S&&ve(/\/>/i,be)){Sn(se,i);continue}x&&Ft([v,O,m],tr=>{be=_t(be,tr," ")});const er=Q(i.nodeName);if(Xo(er,xt,be)){if(Uo&&(xt==="id"||xt==="name")&&(Sn(se,i),be=ml+be),$&&typeof z=="object"&&typeof z.getAttributeType=="function"&&!ge)switch(z.getAttributeType(er,xt)){case"TrustedHTML":{be=$.createHTML(be);break}case"TrustedScriptURL":{be=$.createScriptURL(be);break}}try{ge?i.setAttributeNS(ge,se,be):i.setAttribute(se,be),Ao(e.removed)}catch{}}}Fe("afterSanitizeAttributes",i,null)},Al=function L(i){let w=null;const T=Go(i);for(Fe("beforeSanitizeShadowDOM",i,null);w=T.nextNode();)Fe("uponSanitizeShadowNode",w,null),!Jo(w)&&(w.content instanceof c&&L(w.content),Qo(w));Fe("afterSanitizeShadowDOM",i,null)};return e.sanitize=function(L){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=null,T=null,K=null,ie=null;if(An=!L,An&&(L="<!-->"),typeof L!="string"&&!Yo(L))if(typeof L.toString=="function"){if(L=L.toString(),typeof L!="string")throw At("dirty is not a string, aborting")}else throw At("toString is not a function");if(!e.isSupported)return L;if(H||En(i),e.removed=[],typeof L=="string"&&(Et=!1),Et){if(L.nodeName){const We=Q(L.nodeName);if(!B[We]||b[We])throw At("root node is forbidden and cannot be sanitized in-place")}}else if(L instanceof I)w=Ko("<!---->"),T=w.ownerDocument.importNode(L,!0),T.nodeType===1&&T.nodeName==="BODY"||T.nodeName==="HTML"?w=T:w.appendChild(T);else{if(!ue&&!x&&!R&&L.indexOf("<")===-1)return $&&Pe?$.createHTML(L):L;if(w=Ko(L),!w)return ue?null:Pe?_e:""}w&&me&&ze(w.firstChild);const se=Go(Et?L:w);for(;K=se.nextNode();)Jo(K)||(K.content instanceof c&&Al(K.content),Qo(K));if(Et)return L;if(ue){if(te)for(ie=A.call(w.ownerDocument);w.firstChild;)ie.appendChild(w.firstChild);else ie=w;return(r.shadowroot||r.shadowrootmode)&&(ie=C.call(o,ie,!0)),ie}let ge=R?w.outerHTML:w.innerHTML;return R&&B["!doctype"]&&w.ownerDocument&&w.ownerDocument.doctype&&w.ownerDocument.doctype.name&&ve(Lo,w.ownerDocument.doctype.name)&&(ge="<!DOCTYPE "+w.ownerDocument.doctype.name+`>
|
|
65
65
|
`+ge),x&&Ft([v,O,m],We=>{ge=_t(ge,We," ")}),$&&Pe?$.createHTML(ge):ge},e.setConfig=function(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};En(L),H=!0},e.clearConfig=function(){lt=null,H=!1},e.isValidAttribute=function(L,i,w){lt||En({});const T=Q(L),K=Q(i);return Xo(T,K,w)},e.addHook=function(L,i){typeof i=="function"&&(_[L]=_[L]||[],kt(_[L],i))},e.removeHook=function(L){if(_[L])return Ao(_[L])},e.removeHooks=function(L){_[L]&&(_[L]=[])},e.removeAllHooks=function(){_={}},e}var Bo=Po();class ga{get IsVisible(){return et.isVisible()}async ConfirmAsync(e){return new Promise(n=>{et.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:Bo.sanitize(e.text),confirmButtonText:e.confirmLabel??"confirmar",cancelButtonText:e.rejectLabel??"cancelar"}).then(o=>{n(o.isConfirmed===!0)})})}async AlertAsync(e){const n=e.icon??"info";let o;return Array.isArray(e.text)?o=`<div style="max-height: 50vh; overflow: auto">
|
|
66
66
|
${e.text.join("<br />")}
|
|
67
|
-
</div>`:o=e.text,new Promise(s=>{et.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:e.title,html:Bo.sanitize(o)}).then(()=>s(!0))})}}const ba=new ga,Ro=()=>ba,ya=["data-cor"],wa=l.defineComponent({__name:"HeaderAvatar",emits:["logout"],setup(t,{emit:e}){const n=Ro(),o=l.ref(""),s=e;async function c(){await n.ConfirmAsync({text:"Você deseja sair da conta?",confirmLabel:"sair"})&&s("logout")}function k(){const d=sessionStorage.getItem("name");let U="?";if(!d)return U;const W=d.split(" ").filter(le=>le.length>0).map(le=>le[0].toUpperCase()),J=Math.min(2,W.length);return U=W.slice(0,J).join(""),U.length>0?U:"?"}const I=l.computed(()=>{const d=o.value[0],U=d==="?"?0:(d.charCodeAt(0)-64)%19;return Math.max(U,0)});return l.onMounted(()=>{o.value=k()}),(d,U)=>(l.openBlock(),l.createElementBlock("div",{id:"sf-header-avatar","data-cor":I.value,onClick:c},l.toDisplayString(o.value),9,ya))}}),va={},ka={xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",class:"sf-svg-icon"},_a=[l.createElementVNode("path",{d:"m307.231-83.463-54.999-55.23 343.923-343.922-343.923-343.539 54.999-54.614 398.153 398.153L307.231-83.462Z"},null,-1)];function Aa(t,e){return l.openBlock(),l.createElementBlock("svg",ka,_a)}const Ca=Tn(va,[["render",Aa]]);class Ea{get storedTheme(){return localStorage.getItem("color-scheme")}get IsDark(){return document.documentElement.classList.contains("dark")}Toggle(){this.IsDark?this.EnableLightMode():this.EnableDarkMode()}EnableDarkMode(){document.documentElement.classList.add("dark"),document.documentElement.classList.remove("light"),localStorage.setItem("color-scheme","dark")}EnableLightMode(){document.documentElement.classList.remove("dark"),document.documentElement.classList.add("light"),localStorage.setItem("color-scheme","light")}SetInitialTheme(){if(this.storedTheme==="light")return this.EnableLightMode();if(this.storedTheme==="dark")return this.EnableDarkMode();if(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)return this.EnableDarkMode();this.EnableLightMode()}}const yn=(()=>new Ea)(),xa=[l.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" width="472.39" height="472.39" viewBox="0 0 472.39 472.39"><g class="toggle-sun"><path d="M403.21,167V69.18H305.38L236.2,0,167,69.18H69.18V167L0,236.2l69.18,69.18v97.83H167l69.18,69.18,69.18-69.18h97.83V305.38l69.18-69.18Zm-167,198.17a129,129,0,1,1,129-129A129,129,0,0,1,236.2,365.19Z"></path></g><g class="toggle-circle"><circle class="cls-1" cx="236.2" cy="236.2" r="103.78"></circle></g></svg>',1)],Sa=l.defineComponent({__name:"ThemeToggle",setup(t){return(e,n)=>(l.openBlock(),l.createElementBlock("button",{id:"sf-theme-toggle",onClick:n[0]||(n[0]=(...o)=>l.unref(yn).Toggle&&l.unref(yn).Toggle(...o))},xa))}}),Ta={id:"sf-layout"},La=l.createElementVNode("div",{class:"sf-layout-menu-toggler-logo"},null,-1),Ia={class:"title"},Pa={class:"sf-layout-nav-header"},Ba=l.createElementVNode("span",null,"Menu",-1),Ra={class:"sf-layout-nav-content"},Oa=l.createElementVNode("section",{id:"sf-layout-page-title"},null,-1),Fa={id:"sf-layout-content"},Ma=l.defineComponent({__name:"Layout",emits:["mounted","logout"],setup(t,{emit:e}){const n=jt(),o=e;function s(){o("logout")}return l.onMounted(()=>{o("mounted")}),(c,k)=>(l.openBlock(),l.createElementBlock("div",Ta,[l.createElementVNode("header",null,[l.createElementVNode("div",{class:l.normalizeClass(["sf-layout-menu-toggler",{invert:l.unref(n).IsVisible}]),onClick:k[0]||(k[0]=I=>l.unref(n).Toggle())},[La,l.createVNode(Ca)],2),l.createElementVNode("div",Ia,[l.renderSlot(c.$slots,"title")]),l.renderSlot(c.$slots,"action"),l.createVNode(Sa),l.createVNode(wa,{onLogout:s})]),l.createElementVNode("nav",{class:l.normalizeClass({visible:l.unref(n).IsVisible})},[l.createElementVNode("div",Pa,[Ba,l.createVNode(ut,{icone:"close",button:"",onClick:k[1]||(k[1]=I=>l.unref(n).Close())})]),l.createElementVNode("div",Ra,[l.renderSlot(c.$slots,"menu")])],2),l.createElementVNode("main",{class:l.normalizeClass({"menu-visible":l.unref(n).IsVisible})},[Oa,l.createElementVNode("section",Fa,[l.renderSlot(c.$slots,"content")])],2)]))}}),Na=["href","data-active","onClick"],Da={class:"sf-navmenulink-text"},Ua=l.defineComponent({__name:"NavMenuLink",props:{href:{},text:{},icon:{},exact:{type:Boolean}},setup(t){const e=t,n=jt();function o(s,c){s.preventDefault();const I=s.target.closest(".sf-layout-nav-content");c(),I&&I.clientWidth+10>document.body.clientWidth&&n.Close()}return(s,c)=>{const k=l.resolveComponent("router-link");return l.openBlock(),l.createBlock(k,{to:e.href,custom:""},{default:l.withCtx(({href:I,navigate:d,isExactActive:U,isActive:W})=>[l.createElementVNode("a",{class:"sf-navmenulink",href:I,"data-active":e.exact?U:W,onClick:J=>o(J,d)},[e.icon?(l.openBlock(),l.createBlock(ut,{key:0,icone:e.icon,"button-props":{tabindex:-1}},null,8,["icone"])):l.createCommentVNode("",!0),l.createElementVNode("span",Da,l.toDisplayString(e.text),1)],8,Na)]),_:1},8,["to"])}}}),$a=l.defineComponent({__name:"ScrollToTop",setup(t){const e=l.ref(!1),n=`--${+new Date}`;let o=null;function s(){o==null||o.scrollTo(0,0)}return l.onMounted(()=>{var c;o=((c=document.getElementById(n))==null?void 0:c.parentElement)??null,o&&o.addEventListener("scroll",function(){e.value=this.scrollTop-this.clientHeight>0})}),(c,k)=>(l.openBlock(),l.createElementBlock("button",{id:n,class:l.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":e.value}]),onClick:s},null,2))}}),Ha=l.defineComponent({__name:"Content",props:{class:{},style:{},disableBodyPadding:{type:Boolean},disableHeaderPadding:{type:Boolean},disableFooterPadding:{type:Boolean}},setup(t){const e=t;function n(){return new Ke("sf-content").AddClass(e.class,!!e.class).Build()}function o(){return new Ke("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function s(){return new Ke("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function c(){return new Ke("sf-content-footer").AddClass("sf-content-no-padding",e.disableFooterPadding).Build()}return(k,I)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(n()),style:l.normalizeStyle(e.style)},[l.createElementVNode("div",{class:l.normalizeClass(s())},[l.renderSlot(k.$slots,"header")],2),l.createElementVNode("div",{class:l.normalizeClass(o())},[l.renderSlot(k.$slots,"default"),l.createVNode($a)],2),l.createElementVNode("div",{class:l.normalizeClass(c())},[l.renderSlot(k.$slots,"footer")],2)],6))}}),Va={class:"sf-tab-navigation"},ja=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)],za=["data-active"],Wa=["href","onClick"],qa=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)],Ka=l.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=l.ref(null),o=new ResizeObserver(d=>{I()}),s=l.ref(!1),c=l.ref(!1);function k(d=!1){const U=n.value.clientWidth;n.value.scrollLeft+=d?-U:U}function I(){const d=n.value.scrollWidth-n.value.clientWidth;s.value=n.value.scrollLeft>10,c.value=n.value.scrollLeft<d-10}return l.onMounted(()=>{n.value.addEventListener("scroll",I),o.observe(n.value)}),l.onBeforeUnmount(()=>{var d;try{(d=n.value)==null||d.removeEventListener("scroll",I),o.unobserve(n.value),o.disconnect()}catch{}}),(d,U)=>{const W=l.resolveComponent("RouterLink");return l.openBlock(),l.createElementBlock("div",Va,[l.createElementVNode("div",{class:l.normalizeClass(["left-arrow",{active:s.value}]),onClick:U[0]||(U[0]=J=>k(!0))},ja,2),l.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.tabs,J=>(l.openBlock(),l.createBlock(W,{to:J.route,custom:!0},{default:l.withCtx(({navigate:le,isActive:z})=>[l.createElementVNode("li",{"data-active":z},[l.renderSlot(d.$slots,"item",{item:J,navigate:le,isActive:z},()=>[l.createElementVNode("a",{href:J.route,class:l.normalizeClass({active:z}),onClick:le},l.toDisplayString(J.text),11,Wa)])],8,za)]),_:2},1032,["to"]))),256))],512),l.createElementVNode("div",{class:l.normalizeClass(["right-arrow",{active:c.value}]),onClick:U[1]||(U[1]=J=>k())},qa,2)])}}}),Ga=["id","name","disabled","data-color","form","type"],Ya={class:"sf-button-label"},Ja=l.defineComponent({__name:"Button",props:{icon:{},visible:{type:Boolean,default:!0},class:{},style:{},disabled:{type:Boolean},loading:{type:Boolean},color:{default:"primary"},size:{default:"md"},variant:{default:"filled"},autofocus:{type:Boolean},form:{},name:{},id:{},type:{default:"button"},value:{}},setup(t){const e=t;function n(){return new Ke(`${e.class??""} sf-button`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-button-small",e.size==="sm").AddClass("sf-button-medium",e.size==="md").AddClass("sf-button-large",e.size==="lg").AddClass("sf-button-filled",e.variant==="filled").AddClass("sf-button-text",e.variant==="text").AddClass("sf-button-outlined",e.variant==="outlined").AddClass("sf-button-with-icon",!!e.icon).AddClass("sf-ripple").Build()}return(o,s)=>(l.openBlock(),l.createElementBlock("button",{id:e.id,name:e.name,class:l.normalizeClass(n()),style:l.normalizeStyle(e.style),disabled:e.disabled||e.loading,"data-color":e.color,form:e.form,type:e.type},[e.icon?(l.openBlock(),l.createBlock(ut,{key:0,icone:e.icon,loading:e.loading,size:e.size,"button-props":{tabindex:-1}},null,8,["icone","loading","size"])):e.loading?(l.openBlock(),l.createBlock(ut,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):l.createCommentVNode("",!0),l.createElementVNode("span",Ya,[l.renderSlot(o.$slots,"default")])],14,Ga))}});var Xa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Za(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Qa(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function o(){return this instanceof o?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(o){var s=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,s.get?s:{enumerable:!0,get:function(){return t[o]}})}),n}var Ut={};Ut.byteLength=nl,Ut.toByteArray=rl,Ut.fromByteArray=al;for(var Ie=[],xe=[],el=typeof Uint8Array<"u"?Uint8Array:Array,wn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nt=0,tl=wn.length;nt<tl;++nt)Ie[nt]=wn[nt],xe[wn.charCodeAt(nt)]=nt;xe["-".charCodeAt(0)]=62,xe["_".charCodeAt(0)]=63;function Oo(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");n===-1&&(n=e);var o=n===e?0:4-n%4;return[n,o]}function nl(t){var e=Oo(t),n=e[0],o=e[1];return(n+o)*3/4-o}function ol(t,e,n){return(e+n)*3/4-n}function rl(t){var e,n=Oo(t),o=n[0],s=n[1],c=new el(ol(t,o,s)),k=0,I=s>0?o-4:o,d;for(d=0;d<I;d+=4)e=xe[t.charCodeAt(d)]<<18|xe[t.charCodeAt(d+1)]<<12|xe[t.charCodeAt(d+2)]<<6|xe[t.charCodeAt(d+3)],c[k++]=e>>16&255,c[k++]=e>>8&255,c[k++]=e&255;return s===2&&(e=xe[t.charCodeAt(d)]<<2|xe[t.charCodeAt(d+1)]>>4,c[k++]=e&255),s===1&&(e=xe[t.charCodeAt(d)]<<10|xe[t.charCodeAt(d+1)]<<4|xe[t.charCodeAt(d+2)]>>2,c[k++]=e>>8&255,c[k++]=e&255),c}function il(t){return Ie[t>>18&63]+Ie[t>>12&63]+Ie[t>>6&63]+Ie[t&63]}function sl(t,e,n){for(var o,s=[],c=e;c<n;c+=3)o=(t[c]<<16&16711680)+(t[c+1]<<8&65280)+(t[c+2]&255),s.push(il(o));return s.join("")}function al(t){for(var e,n=t.length,o=n%3,s=[],c=16383,k=0,I=n-o;k<I;k+=c)s.push(sl(t,k,k+c>I?I:k+c));return o===1?(e=t[n-1],s.push(Ie[e>>2]+Ie[e<<4&63]+"==")):o===2&&(e=(t[n-2]<<8)+t[n-1],s.push(Ie[e>>10]+Ie[e>>4&63]+Ie[e<<2&63]+"=")),s.join("")}var Fo={exports:{}};const Mo=Qa(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));/**
|
|
67
|
+
</div>`:o=e.text,new Promise(s=>{et.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:e.title,html:Bo.sanitize(o)}).then(()=>s(!0))})}}const ba=new ga,Ro=()=>ba,ya=["data-cor"],wa=l.defineComponent({__name:"HeaderAvatar",emits:["logout"],setup(t,{emit:e}){const n=Ro(),o=l.ref("?"),s=e;async function c(){await n.ConfirmAsync({text:"Você deseja sair da conta?",confirmLabel:"sair"})&&s("logout")}function k(){const d=sessionStorage.getItem("name");let U="?";if(!d)return U;const W=d.split(" ").filter(le=>le.length>0).map(le=>le[0].toUpperCase()),J=Math.min(2,W.length);return U=W.slice(0,J).join(""),U.length>0?U:"?"}const I=l.computed(()=>{const d=o.value[0],U=d==="?"?0:(d.charCodeAt(0)-64)%19;return Math.max(U,0)});return l.onMounted(()=>{o.value=k()}),(d,U)=>(l.openBlock(),l.createElementBlock("div",{id:"sf-header-avatar","data-cor":I.value,onClick:c},l.toDisplayString(o.value),9,ya))}}),va={},ka={xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",class:"sf-svg-icon"},_a=[l.createElementVNode("path",{d:"m307.231-83.463-54.999-55.23 343.923-343.922-343.923-343.539 54.999-54.614 398.153 398.153L307.231-83.462Z"},null,-1)];function Aa(t,e){return l.openBlock(),l.createElementBlock("svg",ka,_a)}const Ca=Tn(va,[["render",Aa]]);class Ea{get storedTheme(){return localStorage.getItem("color-scheme")}get IsDark(){return document.documentElement.classList.contains("dark")}Toggle(){this.IsDark?this.EnableLightMode():this.EnableDarkMode()}EnableDarkMode(){document.documentElement.classList.add("dark"),document.documentElement.classList.remove("light"),localStorage.setItem("color-scheme","dark")}EnableLightMode(){document.documentElement.classList.remove("dark"),document.documentElement.classList.add("light"),localStorage.setItem("color-scheme","light")}SetInitialTheme(){if(this.storedTheme==="light")return this.EnableLightMode();if(this.storedTheme==="dark")return this.EnableDarkMode();if(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)return this.EnableDarkMode();this.EnableLightMode()}}const yn=(()=>new Ea)(),xa=[l.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" width="472.39" height="472.39" viewBox="0 0 472.39 472.39"><g class="toggle-sun"><path d="M403.21,167V69.18H305.38L236.2,0,167,69.18H69.18V167L0,236.2l69.18,69.18v97.83H167l69.18,69.18,69.18-69.18h97.83V305.38l69.18-69.18Zm-167,198.17a129,129,0,1,1,129-129A129,129,0,0,1,236.2,365.19Z"></path></g><g class="toggle-circle"><circle class="cls-1" cx="236.2" cy="236.2" r="103.78"></circle></g></svg>',1)],Sa=l.defineComponent({__name:"ThemeToggle",setup(t){return(e,n)=>(l.openBlock(),l.createElementBlock("button",{id:"sf-theme-toggle",onClick:n[0]||(n[0]=(...o)=>l.unref(yn).Toggle&&l.unref(yn).Toggle(...o))},xa))}}),Ta={id:"sf-layout"},La=l.createElementVNode("div",{class:"sf-layout-menu-toggler-logo"},null,-1),Ia={class:"title"},Pa={class:"sf-layout-nav-header"},Ba=l.createElementVNode("span",null,"Menu",-1),Ra={class:"sf-layout-nav-content"},Oa=l.createElementVNode("section",{id:"sf-layout-page-title"},null,-1),Fa={id:"sf-layout-content"},Ma=l.defineComponent({__name:"Layout",emits:["mounted","logout"],setup(t,{emit:e}){const n=jt(),o=e;function s(){o("logout")}return l.onMounted(()=>{o("mounted")}),(c,k)=>(l.openBlock(),l.createElementBlock("div",Ta,[l.createElementVNode("header",null,[l.createElementVNode("div",{class:l.normalizeClass(["sf-layout-menu-toggler",{invert:l.unref(n).IsVisible}]),onClick:k[0]||(k[0]=I=>l.unref(n).Toggle())},[La,l.createVNode(Ca)],2),l.createElementVNode("div",Ia,[l.renderSlot(c.$slots,"title")]),l.renderSlot(c.$slots,"action"),l.createVNode(Sa),l.createVNode(wa,{onLogout:s})]),l.createElementVNode("nav",{class:l.normalizeClass({visible:l.unref(n).IsVisible})},[l.createElementVNode("div",Pa,[Ba,l.createVNode(ut,{icone:"close",button:"",onClick:k[1]||(k[1]=I=>l.unref(n).Close())})]),l.createElementVNode("div",Ra,[l.renderSlot(c.$slots,"menu")])],2),l.createElementVNode("main",{class:l.normalizeClass({"menu-visible":l.unref(n).IsVisible})},[Oa,l.createElementVNode("section",Fa,[l.renderSlot(c.$slots,"content")])],2)]))}}),Na=["href","data-active","onClick"],Da={class:"sf-navmenulink-text"},Ua=l.defineComponent({__name:"NavMenuLink",props:{href:{},text:{},icon:{},exact:{type:Boolean}},setup(t){const e=t,n=jt();function o(s,c){s.preventDefault();const I=s.target.closest(".sf-layout-nav-content");c(),I&&I.clientWidth+10>document.body.clientWidth&&n.Close()}return(s,c)=>{const k=l.resolveComponent("router-link");return l.openBlock(),l.createBlock(k,{to:e.href,custom:""},{default:l.withCtx(({href:I,navigate:d,isExactActive:U,isActive:W})=>[l.createElementVNode("a",{class:"sf-navmenulink",href:I,"data-active":e.exact?U:W,onClick:J=>o(J,d)},[e.icon?(l.openBlock(),l.createBlock(ut,{key:0,icone:e.icon,"button-props":{tabindex:-1}},null,8,["icone"])):l.createCommentVNode("",!0),l.createElementVNode("span",Da,l.toDisplayString(e.text),1)],8,Na)]),_:1},8,["to"])}}}),$a=l.defineComponent({__name:"ScrollToTop",setup(t){const e=l.ref(!1),n=`--${+new Date}`;let o=null;function s(){o==null||o.scrollTo(0,0)}return l.onMounted(()=>{var c;o=((c=document.getElementById(n))==null?void 0:c.parentElement)??null,o&&o.addEventListener("scroll",function(){e.value=this.scrollTop-this.clientHeight>0})}),(c,k)=>(l.openBlock(),l.createElementBlock("button",{id:n,class:l.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":e.value}]),onClick:s},null,2))}}),Ha=l.defineComponent({__name:"Content",props:{class:{},style:{},disableBodyPadding:{type:Boolean},disableHeaderPadding:{type:Boolean},disableFooterPadding:{type:Boolean}},setup(t){const e=t;function n(){return new Ke("sf-content").AddClass(e.class,!!e.class).Build()}function o(){return new Ke("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function s(){return new Ke("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function c(){return new Ke("sf-content-footer").AddClass("sf-content-no-padding",e.disableFooterPadding).Build()}return(k,I)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(n()),style:l.normalizeStyle(e.style)},[l.createElementVNode("div",{class:l.normalizeClass(s())},[l.renderSlot(k.$slots,"header")],2),l.createElementVNode("div",{class:l.normalizeClass(o())},[l.renderSlot(k.$slots,"default"),l.createVNode($a)],2),l.createElementVNode("div",{class:l.normalizeClass(c())},[l.renderSlot(k.$slots,"footer")],2)],6))}}),Va={class:"sf-tab-navigation"},ja=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)],za=["data-active"],Wa=["href","onClick"],qa=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)],Ka=l.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=l.ref(null),o=new ResizeObserver(d=>{I()}),s=l.ref(!1),c=l.ref(!1);function k(d=!1){const U=n.value.clientWidth;n.value.scrollLeft+=d?-U:U}function I(){const d=n.value.scrollWidth-n.value.clientWidth;s.value=n.value.scrollLeft>10,c.value=n.value.scrollLeft<d-10}return l.onMounted(()=>{n.value.addEventListener("scroll",I),o.observe(n.value)}),l.onBeforeUnmount(()=>{var d;try{(d=n.value)==null||d.removeEventListener("scroll",I),o.unobserve(n.value),o.disconnect()}catch{}}),(d,U)=>{const W=l.resolveComponent("RouterLink");return l.openBlock(),l.createElementBlock("div",Va,[l.createElementVNode("div",{class:l.normalizeClass(["left-arrow",{active:s.value}]),onClick:U[0]||(U[0]=J=>k(!0))},ja,2),l.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.tabs,J=>(l.openBlock(),l.createBlock(W,{to:J.route,custom:!0},{default:l.withCtx(({navigate:le,isActive:z})=>[l.createElementVNode("li",{"data-active":z},[l.renderSlot(d.$slots,"item",{item:J,navigate:le,isActive:z},()=>[l.createElementVNode("a",{href:J.route,class:l.normalizeClass({active:z}),onClick:le},l.toDisplayString(J.text),11,Wa)])],8,za)]),_:2},1032,["to"]))),256))],512),l.createElementVNode("div",{class:l.normalizeClass(["right-arrow",{active:c.value}]),onClick:U[1]||(U[1]=J=>k())},qa,2)])}}}),Ga=["id","name","disabled","data-color","form","type"],Ya={class:"sf-button-label"},Ja=l.defineComponent({__name:"Button",props:{icon:{},visible:{type:Boolean,default:!0},class:{},style:{},disabled:{type:Boolean},loading:{type:Boolean},color:{default:"primary"},size:{default:"md"},variant:{default:"filled"},autofocus:{type:Boolean},form:{},name:{},id:{},type:{default:"button"},value:{}},setup(t){const e=t;function n(){return new Ke(`${e.class??""} sf-button`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-button-small",e.size==="sm").AddClass("sf-button-medium",e.size==="md").AddClass("sf-button-large",e.size==="lg").AddClass("sf-button-filled",e.variant==="filled").AddClass("sf-button-text",e.variant==="text").AddClass("sf-button-outlined",e.variant==="outlined").AddClass("sf-button-with-icon",!!e.icon).AddClass("sf-ripple").Build()}return(o,s)=>(l.openBlock(),l.createElementBlock("button",{id:e.id,name:e.name,class:l.normalizeClass(n()),style:l.normalizeStyle(e.style),disabled:e.disabled||e.loading,"data-color":e.color,form:e.form,type:e.type},[e.icon?(l.openBlock(),l.createBlock(ut,{key:0,icone:e.icon,loading:e.loading,size:e.size,"button-props":{tabindex:-1}},null,8,["icone","loading","size"])):e.loading?(l.openBlock(),l.createBlock(ut,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):l.createCommentVNode("",!0),l.createElementVNode("span",Ya,[l.renderSlot(o.$slots,"default")])],14,Ga))}});var Xa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Za(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Qa(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function o(){return this instanceof o?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(o){var s=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,s.get?s:{enumerable:!0,get:function(){return t[o]}})}),n}var Ut={};Ut.byteLength=nl,Ut.toByteArray=rl,Ut.fromByteArray=al;for(var Ie=[],xe=[],el=typeof Uint8Array<"u"?Uint8Array:Array,wn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nt=0,tl=wn.length;nt<tl;++nt)Ie[nt]=wn[nt],xe[wn.charCodeAt(nt)]=nt;xe["-".charCodeAt(0)]=62,xe["_".charCodeAt(0)]=63;function Oo(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");n===-1&&(n=e);var o=n===e?0:4-n%4;return[n,o]}function nl(t){var e=Oo(t),n=e[0],o=e[1];return(n+o)*3/4-o}function ol(t,e,n){return(e+n)*3/4-n}function rl(t){var e,n=Oo(t),o=n[0],s=n[1],c=new el(ol(t,o,s)),k=0,I=s>0?o-4:o,d;for(d=0;d<I;d+=4)e=xe[t.charCodeAt(d)]<<18|xe[t.charCodeAt(d+1)]<<12|xe[t.charCodeAt(d+2)]<<6|xe[t.charCodeAt(d+3)],c[k++]=e>>16&255,c[k++]=e>>8&255,c[k++]=e&255;return s===2&&(e=xe[t.charCodeAt(d)]<<2|xe[t.charCodeAt(d+1)]>>4,c[k++]=e&255),s===1&&(e=xe[t.charCodeAt(d)]<<10|xe[t.charCodeAt(d+1)]<<4|xe[t.charCodeAt(d+2)]>>2,c[k++]=e>>8&255,c[k++]=e&255),c}function il(t){return Ie[t>>18&63]+Ie[t>>12&63]+Ie[t>>6&63]+Ie[t&63]}function sl(t,e,n){for(var o,s=[],c=e;c<n;c+=3)o=(t[c]<<16&16711680)+(t[c+1]<<8&65280)+(t[c+2]&255),s.push(il(o));return s.join("")}function al(t){for(var e,n=t.length,o=n%3,s=[],c=16383,k=0,I=n-o;k<I;k+=c)s.push(sl(t,k,k+c>I?I:k+c));return o===1?(e=t[n-1],s.push(Ie[e>>2]+Ie[e<<4&63]+"==")):o===2&&(e=(t[n-2]<<8)+t[n-1],s.push(Ie[e>>10]+Ie[e>>4&63]+Ie[e<<2&63]+"=")),s.join("")}var Fo={exports:{}};const Mo=Qa(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));/**
|
|
68
68
|
* [js-sha256]{@link https://github.com/emn178/js-sha256}
|
|
69
69
|
*
|
|
70
70
|
* @version 0.10.1
|