@wikicasa-dev/components 1.2.2 → 1.2.4

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.
Files changed (60) hide show
  1. package/dist/components.js +135 -31
  2. package/dist/components.umd.cjs +1 -32
  3. package/dist/src/index.d.ts +2 -0
  4. package/dist/src/main.d.ts +0 -30
  5. package/dist/style.css +1 -1
  6. package/package.json +6 -6
  7. package/dist/BaseSnackbar-DD3Nk99e.js +0 -78
  8. package/dist/main-vLlAmyQg.js +0 -8196
  9. package/dist/src/App.vue.d.ts +0 -2
  10. package/dist/src/UIKit/AccessibleSelect.vue.d.ts +0 -74
  11. package/dist/src/UIKit/Accordion/BaseAccordion.vue.d.ts +0 -45
  12. package/dist/src/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +0 -59
  13. package/dist/src/UIKit/Accordion/BaseAccordionContent.vue.d.ts +0 -29
  14. package/dist/src/UIKit/Accordion/BaseAccordionItem.vue.d.ts +0 -71
  15. package/dist/src/UIKit/BaseAlert.vue.d.ts +0 -41
  16. package/dist/src/UIKit/BaseAutocomplete.vue.d.ts +0 -109
  17. package/dist/src/UIKit/BaseBadge.vue.d.ts +0 -36
  18. package/dist/src/UIKit/BaseBtModal.vue.d.ts +0 -172
  19. package/dist/src/UIKit/BaseCard.vue.d.ts +0 -41
  20. package/dist/src/UIKit/BaseComplexToggle.vue.d.ts +0 -83
  21. package/dist/src/UIKit/BaseDropDown.vue.d.ts +0 -123
  22. package/dist/src/UIKit/BaseFloatingLabel.vue.d.ts +0 -44
  23. package/dist/src/UIKit/BaseInput.vue.d.ts +0 -143
  24. package/dist/src/UIKit/BaseNavItem.vue.d.ts +0 -43
  25. package/dist/src/UIKit/BasePagination.vue.d.ts +0 -65
  26. package/dist/src/UIKit/BasePaper.vue.d.ts +0 -2
  27. package/dist/src/UIKit/BaseSelect/SelectItem.vue.d.ts +0 -54
  28. package/dist/src/UIKit/BaseSlider.vue.d.ts +0 -42
  29. package/dist/src/UIKit/BaseSnackbar.vue.d.ts +0 -56
  30. package/dist/src/UIKit/BaseTab.vue.d.ts +0 -60
  31. package/dist/src/UIKit/BaseTextarea.vue.d.ts +0 -82
  32. package/dist/src/UIKit/BaseToggle.vue.d.ts +0 -36
  33. package/dist/src/UIKit/BaseTooltip.vue.d.ts +0 -56
  34. package/dist/src/UIKit/BaseUploadFile.vue.d.ts +0 -37
  35. package/dist/src/UIKit/Checkbox/CheckboxBtn.vue.d.ts +0 -92
  36. package/dist/src/UIKit/Checkbox/CheckboxGroup.vue.d.ts +0 -78
  37. package/dist/src/UIKit/Radio/RadioButton.vue.d.ts +0 -26
  38. package/dist/src/UIKit/Radio/RadioGroup.vue.d.ts +0 -37
  39. package/dist/src/Views/AccordionSection.vue.d.ts +0 -2
  40. package/dist/src/Views/AlertSection.vue.d.ts +0 -2
  41. package/dist/src/Views/AutocompleteSection.vue.d.ts +0 -2
  42. package/dist/src/Views/BadgeSection.vue.d.ts +0 -2
  43. package/dist/src/Views/ButtonsSection.vue.d.ts +0 -2
  44. package/dist/src/Views/CardSection.vue.d.ts +0 -2
  45. package/dist/src/Views/CheckboxSection.vue.d.ts +0 -6
  46. package/dist/src/Views/DropdownSection.vue.d.ts +0 -35
  47. package/dist/src/Views/ModalSection.vue.d.ts +0 -4
  48. package/dist/src/Views/PaginationSection.vue.d.ts +0 -2
  49. package/dist/src/Views/PaperSection.vue.d.ts +0 -2
  50. package/dist/src/Views/RadioSection.vue.d.ts +0 -9
  51. package/dist/src/Views/SliderSection.vue.d.ts +0 -9
  52. package/dist/src/Views/SnackbarSection.vue.d.ts +0 -2
  53. package/dist/src/Views/TabSection.vue.d.ts +0 -2
  54. package/dist/src/Views/TextInputSection.vue.d.ts +0 -2
  55. package/dist/src/Views/TextareaSection.vue.d.ts +0 -6
  56. package/dist/src/Views/ToggleSection.vue.d.ts +0 -2
  57. package/dist/src/Views/TooltipSection.vue.d.ts +0 -2
  58. package/dist/src/Views/UiKitSidebar.vue.d.ts +0 -18
  59. package/dist/src/Views/UploadBtnSection.vue.d.ts +0 -2
  60. package/dist/src/Views/WikicasaUiKit.vue.d.ts +0 -19
@@ -1,32 +1 @@
1
- (function(x,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(x=typeof globalThis<"u"?globalThis:x||self,t(x.components={},x.Vue))})(this,function(x,t){"use strict";const S=(e,o)=>{const n=e.__vccOpts||e;for(const[a,l]of o)n[a]=l;return n},wn={};function bn(e,o){const n=t.resolveComponent("RouterView");return t.openBlock(),t.createBlock(n)}const gn=S(wn,[["render",bn]]);function yn(){return It().__VUE_DEVTOOLS_GLOBAL_HOOK__}function It(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const kn=typeof Proxy=="function",$n="devtools-plugin:setup",Vn="plugin:settings:set";let ie,Xe;function Cn(){var e;return ie!==void 0||(typeof window<"u"&&window.performance?(ie=!0,Xe=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(ie=!0,Xe=globalThis.perf_hooks.performance):ie=!1),ie}function En(){return Cn()?Xe.now():Date.now()}class Nn{constructor(o,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=o,this.hook=n;const a={};if(o.settings)for(const s in o.settings){const r=o.settings[s];a[s]=r.defaultValue}const l=`__vue-devtools-plugin-settings__${o.id}`;let i=Object.assign({},a);try{const s=localStorage.getItem(l),r=JSON.parse(s);Object.assign(i,r)}catch{}this.fallbacks={getSettings(){return i},setSettings(s){try{localStorage.setItem(l,JSON.stringify(s))}catch{}i=s},now(){return En()}},n&&n.on(Vn,(s,r)=>{s===this.plugin.id&&this.fallbacks.setSettings(r)}),this.proxiedOn=new Proxy({},{get:(s,r)=>this.target?this.target.on[r]:(...d)=>{this.onQueue.push({method:r,args:d})}}),this.proxiedTarget=new Proxy({},{get:(s,r)=>this.target?this.target[r]:r==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(r)?(...d)=>(this.targetQueue.push({method:r,args:d,resolve:()=>{}}),this.fallbacks[r](...d)):(...d)=>new Promise(m=>{this.targetQueue.push({method:r,args:d,resolve:m})})})}async setRealTarget(o){this.target=o;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function _n(e,o){const n=e,a=It(),l=yn(),i=kn&&n.enableEarlyProxy;if(l&&(a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))l.emit($n,e,o);else{const s=i?new Nn(n,l):null;(a.__VUE_DEVTOOLS_PLUGINS__=a.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:o,proxy:s}),s&&o(s.proxiedTarget)}}/*!
2
- * vue-router v4.3.0
3
- * (c) 2024 Eduardo San Martin Morote
4
- * @license MIT
5
- */const X=typeof document<"u";function Sn(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const A=Object.assign;function Ze(e,o){const n={};for(const a in o){const l=o[a];n[a]=q(l)?l.map(e):e(l)}return n}const we=()=>{},q=Array.isArray;function O(e){const o=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(o))}const Rt=/#/g,Bn=/&/g,xn=/\//g,Tn=/=/g,On=/\?/g,Pt=/\+/g,Ln=/%5B/g,An=/%5D/g,vt=/%5E/g,Mn=/%60/g,Dt=/%7B/g,In=/%7C/g,zt=/%7D/g,Rn=/%20/g;function et(e){return encodeURI(""+e).replace(In,"|").replace(Ln,"[").replace(An,"]")}function Pn(e){return et(e).replace(Dt,"{").replace(zt,"}").replace(vt,"^")}function tt(e){return et(e).replace(Pt,"%2B").replace(Rn,"+").replace(Rt,"%23").replace(Bn,"%26").replace(Mn,"`").replace(Dt,"{").replace(zt,"}").replace(vt,"^")}function vn(e){return tt(e).replace(Tn,"%3D")}function Dn(e){return et(e).replace(Rt,"%23").replace(On,"%3F")}function zn(e){return e==null?"":Dn(e).replace(xn,"%2F")}function de(e){try{return decodeURIComponent(""+e)}catch{process.env.NODE_ENV!=="production"&&O(`Error decoding "${e}". Using original value`)}return""+e}const jn=/\/$/,Fn=e=>e.replace(jn,"");function ot(e,o,n="/"){let a,l={},i="",s="";const r=o.indexOf("#");let d=o.indexOf("?");return r<d&&r>=0&&(d=-1),d>-1&&(a=o.slice(0,d),i=o.slice(d+1,r>-1?r:o.length),l=e(i)),r>-1&&(a=a||o.slice(0,r),s=o.slice(r,o.length)),a=qn(a??o,n),{fullPath:a+(i&&"?")+i+s,path:a,query:l,hash:de(s)}}function Un(e,o){const n=o.query?e(o.query):"";return o.path+(n&&"?")+n+(o.hash||"")}function jt(e,o,n){const a=o.matched.length-1,l=n.matched.length-1;return a>-1&&a===l&&te(o.matched[a],n.matched[l])&&Ft(o.params,n.params)&&e(o.query)===e(n.query)&&o.hash===n.hash}function te(e,o){return(e.aliasOf||e)===(o.aliasOf||o)}function Ft(e,o){if(Object.keys(e).length!==Object.keys(o).length)return!1;for(const n in e)if(!Hn(e[n],o[n]))return!1;return!0}function Hn(e,o){return q(e)?Ut(e,o):q(o)?Ut(o,e):e===o}function Ut(e,o){return q(o)?e.length===o.length&&e.every((n,a)=>n===o[a]):e.length===1&&e[0]===o}function qn(e,o){if(e.startsWith("/"))return e;if(process.env.NODE_ENV!=="production"&&!o.startsWith("/"))return O(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${o}". It should look like "/${o}".`),e;if(!e)return o;const n=o.split("/"),a=e.split("/"),l=a[a.length-1];(l===".."||l===".")&&a.push("");let i=n.length-1,s,r;for(s=0;s<a.length;s++)if(r=a[s],r!==".")if(r==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+a.slice(s).join("/")}var be;(function(e){e.pop="pop",e.push="push"})(be||(be={}));var Be;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Be||(Be={}));const nt="";function Wn(e){if(!e)if(X){const o=document.querySelector("base");e=o&&o.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Fn(e)}const Kn=/^[^#]+#/;function Gn(e,o){return e.replace(Kn,"#")+o}function Jn(e,o){const n=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:o.behavior,left:a.left-n.left-(o.left||0),top:a.top-n.top-(o.top||0)}}const Qn=()=>({left:window.scrollX,top:window.scrollY});function Yn(e){let o;if("el"in e){const n=e.el,a=typeof n=="string"&&n.startsWith("#");if(process.env.NODE_ENV!=="production"&&typeof e.el=="string"&&(!a||!document.getElementById(e.el.slice(1))))try{const i=document.querySelector(e.el);if(a&&i){O(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{O(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}const l=typeof n=="string"?a?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!l){process.env.NODE_ENV!=="production"&&O(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}o=Jn(l,e)}else o=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(o):window.scrollTo(o.left!=null?o.left:window.scrollX,o.top!=null?o.top:window.scrollY)}function Ht(e,o){return(history.state?history.state.position-o:-1)+e}const at=new Map;function Xn(e,o){at.set(e,o)}function Zn(e){const o=at.get(e);return at.delete(e),o}function ea(e=""){let o=[],n=[nt],a=0;e=Wn(e);function l(r){a++,a!==n.length&&n.splice(a),n.push(r)}function i(r,d,{direction:m,delta:c}){const p={direction:m,delta:c,type:be.pop};for(const h of o)h(r,d,p)}const s={location:nt,state:{},base:e,createHref:Gn.bind(null,e),replace(r){n.splice(a--,1),l(r)},push(r,d){l(r)},listen(r){return o.push(r),()=>{const d=o.indexOf(r);d>-1&&o.splice(d,1)}},destroy(){o=[],n=[nt],a=0},go(r,d=!0){const m=this.location,c=r<0?Be.back:Be.forward;a=Math.max(0,Math.min(a+r,n.length-1)),d&&i(this.location,m,{direction:c,delta:r})}};return Object.defineProperty(s,"location",{enumerable:!0,get:()=>n[a]}),s}function ta(e){return typeof e=="string"||e&&typeof e=="object"}function qt(e){return typeof e=="string"||typeof e=="symbol"}const oe={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},st=Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Wt;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Wt||(Wt={}));const oa={1({location:e,currentLocation:o}){return`No match for
6
- ${JSON.stringify(e)}${o?`
7
- while being at
8
- `+JSON.stringify(o):""}`},2({from:e,to:o}){return`Redirected from "${e.fullPath}" to "${aa(o)}" via a navigation guard.`},4({from:e,to:o}){return`Navigation aborted from "${e.fullPath}" to "${o.fullPath}" via a navigation guard.`},8({from:e,to:o}){return`Navigation cancelled from "${e.fullPath}" to "${o.fullPath}" with a new navigation.`},16({from:e,to:o}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function ce(e,o){return process.env.NODE_ENV!=="production"?A(new Error(oa[e](o)),{type:e,[st]:!0},o):A(new Error,{type:e,[st]:!0},o)}function Z(e,o){return e instanceof Error&&st in e&&(o==null||!!(e.type&o))}const na=["params","query","hash"];function aa(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const o={};for(const n of na)n in e&&(o[n]=e[n]);return JSON.stringify(o,null,2)}const Kt="[^/]+?",sa={sensitive:!1,strict:!1,start:!0,end:!0},la=/[.+*?^${}()[\]/\\]/g;function ra(e,o){const n=A({},sa,o),a=[];let l=n.start?"^":"";const i=[];for(const m of e){const c=m.length?[]:[90];n.strict&&!m.length&&(l+="/");for(let p=0;p<m.length;p++){const h=m[p];let u=40+(n.sensitive?.25:0);if(h.type===0)p||(l+="/"),l+=h.value.replace(la,"\\$&"),u+=40;else if(h.type===1){const{value:f,repeatable:C,optional:N,regexp:V}=h;i.push({name:f,repeatable:C,optional:N});const E=V||Kt;if(E!==Kt){u+=10;try{new RegExp(`(${E})`)}catch(D){throw new Error(`Invalid custom RegExp for param "${f}" (${E}): `+D.message)}}let M=C?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;p||(M=N&&m.length<2?`(?:/${M})`:"/"+M),N&&(M+="?"),l+=M,u+=20,N&&(u+=-8),C&&(u+=-20),E===".*"&&(u+=-50)}c.push(u)}a.push(c)}if(n.strict&&n.end){const m=a.length-1;a[m][a[m].length-1]+=.7000000000000001}n.strict||(l+="/?"),n.end?l+="$":n.strict&&(l+="(?:/|$)");const s=new RegExp(l,n.sensitive?"":"i");function r(m){const c=m.match(s),p={};if(!c)return null;for(let h=1;h<c.length;h++){const u=c[h]||"",f=i[h-1];p[f.name]=u&&f.repeatable?u.split("/"):u}return p}function d(m){let c="",p=!1;for(const h of e){(!p||!c.endsWith("/"))&&(c+="/"),p=!1;for(const u of h)if(u.type===0)c+=u.value;else if(u.type===1){const{value:f,repeatable:C,optional:N}=u,V=f in m?m[f]:"";if(q(V)&&!C)throw new Error(`Provided param "${f}" is an array but it is not repeatable (* or + modifiers)`);const E=q(V)?V.join("/"):V;if(!E)if(N)h.length<2&&(c.endsWith("/")?c=c.slice(0,-1):p=!0);else throw new Error(`Missing required param "${f}"`);c+=E}}return c||"/"}return{re:s,score:a,keys:i,parse:r,stringify:d}}function ia(e,o){let n=0;for(;n<e.length&&n<o.length;){const a=o[n]-e[n];if(a)return a;n++}return e.length<o.length?e.length===1&&e[0]===80?-1:1:e.length>o.length?o.length===1&&o[0]===80?1:-1:0}function da(e,o){let n=0;const a=e.score,l=o.score;for(;n<a.length&&n<l.length;){const i=ia(a[n],l[n]);if(i)return i;n++}if(Math.abs(l.length-a.length)===1){if(Gt(a))return 1;if(Gt(l))return-1}return l.length-a.length}function Gt(e){const o=e[e.length-1];return e.length>0&&o[o.length-1]<0}const ca={type:0,value:""},pa=/[a-zA-Z0-9_]/;function ma(e){if(!e)return[[]];if(e==="/")return[[ca]];if(!e.startsWith("/"))throw new Error(process.env.NODE_ENV!=="production"?`Route paths should start with a "/": "${e}" should be "/${e}".`:`Invalid path "${e}"`);function o(u){throw new Error(`ERR (${n})/"${m}": ${u}`)}let n=0,a=n;const l=[];let i;function s(){i&&l.push(i),i=[]}let r=0,d,m="",c="";function p(){m&&(n===0?i.push({type:0,value:m}):n===1||n===2||n===3?(i.length>1&&(d==="*"||d==="+")&&o(`A repeatable param (${m}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:m,regexp:c,repeatable:d==="*"||d==="+",optional:d==="*"||d==="?"})):o("Invalid state to consume buffer"),m="")}function h(){m+=d}for(;r<e.length;){if(d=e[r++],d==="\\"&&n!==2){a=n,n=4;continue}switch(n){case 0:d==="/"?(m&&p(),s()):d===":"?(p(),n=1):h();break;case 4:h(),n=a;break;case 1:d==="("?n=2:pa.test(d)?h():(p(),n=0,d!=="*"&&d!=="?"&&d!=="+"&&r--);break;case 2:d===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+d:n=3:c+=d;break;case 3:p(),n=0,d!=="*"&&d!=="?"&&d!=="+"&&r--,c="";break;default:o("Unknown state");break}}return n===2&&o(`Unfinished custom RegExp for param "${m}"`),p(),s(),l}function ua(e,o,n){const a=ra(ma(e.path),n);if(process.env.NODE_ENV!=="production"){const i=new Set;for(const s of a.keys)i.has(s.name)&&O(`Found duplicated params with name "${s.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),i.add(s.name)}const l=A(a,{record:e,parent:o,children:[],alias:[]});return o&&!l.record.aliasOf==!o.record.aliasOf&&o.children.push(l),l}function ha(e,o){const n=[],a=new Map;o=Yt({strict:!1,end:!0,sensitive:!1},o);function l(c){return a.get(c)}function i(c,p,h){const u=!h,f=fa(c);process.env.NODE_ENV!=="production"&&ya(f,p),f.aliasOf=h&&h.record;const C=Yt(o,c),N=[f];if("alias"in c){const M=typeof c.alias=="string"?[c.alias]:c.alias;for(const D of M)N.push(A({},f,{components:h?h.record.components:f.components,path:D,aliasOf:h?h.record:f}))}let V,E;for(const M of N){const{path:D}=M;if(p&&D[0]!=="/"){const Y=p.record.path,k=Y[Y.length-1]==="/"?"":"/";M.path=p.record.path+(D&&k+D)}if(process.env.NODE_ENV!=="production"&&M.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
9
- See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);if(V=ua(M,p,C),process.env.NODE_ENV!=="production"&&p&&D[0]==="/"&&ka(V,p),h?(h.alias.push(V),process.env.NODE_ENV!=="production"&&ga(h,V)):(E=E||V,E!==V&&E.alias.push(V),u&&c.name&&!Qt(V)&&s(c.name)),f.children){const Y=f.children;for(let k=0;k<Y.length;k++)i(Y[k],V,h&&h.children[k])}h=h||V,(V.record.components&&Object.keys(V.record.components).length||V.record.name||V.record.redirect)&&d(V)}return E?()=>{s(E)}:we}function s(c){if(qt(c)){const p=a.get(c);p&&(a.delete(c),n.splice(n.indexOf(p),1),p.children.forEach(s),p.alias.forEach(s))}else{const p=n.indexOf(c);p>-1&&(n.splice(p,1),c.record.name&&a.delete(c.record.name),c.children.forEach(s),c.alias.forEach(s))}}function r(){return n}function d(c){let p=0;for(;p<n.length&&da(c,n[p])>=0&&(c.record.path!==n[p].record.path||!Xt(c,n[p]));)p++;n.splice(p,0,c),c.record.name&&!Qt(c)&&a.set(c.record.name,c)}function m(c,p){let h,u={},f,C;if("name"in c&&c.name){if(h=a.get(c.name),!h)throw ce(1,{location:c});if(process.env.NODE_ENV!=="production"){const E=Object.keys(c.params||{}).filter(M=>!h.keys.find(D=>D.name===M));E.length&&O(`Discarded invalid param(s) "${E.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}C=h.record.name,u=A(Jt(p.params,h.keys.filter(E=>!E.optional).concat(h.parent?h.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),c.params&&Jt(c.params,h.keys.map(E=>E.name))),f=h.stringify(u)}else if(c.path!=null)f=c.path,process.env.NODE_ENV!=="production"&&!f.startsWith("/")&&O(`The Matcher cannot resolve relative paths but received "${f}". Unless you directly called \`matcher.resolve("${f}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`),h=n.find(E=>E.re.test(f)),h&&(u=h.parse(f),C=h.record.name);else{if(h=p.name?a.get(p.name):n.find(E=>E.re.test(p.path)),!h)throw ce(1,{location:c,currentLocation:p});C=h.record.name,u=A({},p.params,c.params),f=h.stringify(u)}const N=[];let V=h;for(;V;)N.unshift(V.record),V=V.parent;return{name:C,path:f,params:u,matched:N,meta:ba(N)}}return e.forEach(c=>i(c)),{addRoute:i,resolve:m,removeRoute:s,getRoutes:r,getRecordMatcher:l}}function Jt(e,o){const n={};for(const a of o)a in e&&(n[a]=e[a]);return n}function fa(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:wa(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function wa(e){const o={},n=e.props||!1;if("component"in e)o.default=n;else for(const a in e.components)o[a]=typeof n=="object"?n[a]:n;return o}function Qt(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ba(e){return e.reduce((o,n)=>A(o,n.meta),{})}function Yt(e,o){const n={};for(const a in e)n[a]=a in o?o[a]:e[a];return n}function lt(e,o){return e.name===o.name&&e.optional===o.optional&&e.repeatable===o.repeatable}function ga(e,o){for(const n of e.keys)if(!n.optional&&!o.keys.find(lt.bind(null,n)))return O(`Alias "${o.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);for(const n of o.keys)if(!n.optional&&!e.keys.find(lt.bind(null,n)))return O(`Alias "${o.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function ya(e,o){o&&o.record.name&&!e.name&&!e.path&&O(`The route named "${String(o.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`)}function ka(e,o){for(const n of o.keys)if(!e.keys.find(lt.bind(null,n)))return O(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${o.record.path}".`)}function Xt(e,o){return o.children.some(n=>n===e||Xt(e,n))}function $a(e){const o={};if(e===""||e==="?")return o;const a=(e[0]==="?"?e.slice(1):e).split("&");for(let l=0;l<a.length;++l){const i=a[l].replace(Pt," "),s=i.indexOf("="),r=de(s<0?i:i.slice(0,s)),d=s<0?null:de(i.slice(s+1));if(r in o){let m=o[r];q(m)||(m=o[r]=[m]),m.push(d)}else o[r]=d}return o}function Zt(e){let o="";for(let n in e){const a=e[n];if(n=vn(n),a==null){a!==void 0&&(o+=(o.length?"&":"")+n);continue}(q(a)?a.map(i=>i&&tt(i)):[a&&tt(a)]).forEach(i=>{i!==void 0&&(o+=(o.length?"&":"")+n,i!=null&&(o+="="+i))})}return o}function Va(e){const o={};for(const n in e){const a=e[n];a!==void 0&&(o[n]=q(a)?a.map(l=>l==null?null:""+l):a==null?a:""+a)}return o}const Ca=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),eo=Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),rt=Symbol(process.env.NODE_ENV!=="production"?"router":""),to=Symbol(process.env.NODE_ENV!=="production"?"route location":""),it=Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function ge(){let e=[];function o(a){return e.push(a),()=>{const l=e.indexOf(a);l>-1&&e.splice(l,1)}}function n(){e=[]}return{add:o,list:()=>e.slice(),reset:n}}function ne(e,o,n,a,l,i=s=>s()){const s=a&&(a.enterCallbacks[l]=a.enterCallbacks[l]||[]);return()=>new Promise((r,d)=>{const m=h=>{h===!1?d(ce(4,{from:n,to:o})):h instanceof Error?d(h):ta(h)?d(ce(2,{from:o,to:h})):(s&&a.enterCallbacks[l]===s&&typeof h=="function"&&s.push(h),r())},c=i(()=>e.call(a&&a.instances[l],o,n,process.env.NODE_ENV!=="production"?Ea(m,o,n):m));let p=Promise.resolve(c);if(e.length<3&&(p=p.then(m)),process.env.NODE_ENV!=="production"&&e.length>2){const h=`The "next" callback was never called inside of ${e.name?'"'+e.name+'"':""}:
10
- ${e.toString()}
11
- . If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof c=="object"&&"then"in c)p=p.then(u=>m._called?u:(O(h),Promise.reject(new Error("Invalid navigation guard"))));else if(c!==void 0&&!m._called){O(h),d(new Error("Invalid navigation guard"));return}}p.catch(h=>d(h))})}function Ea(e,o,n){let a=0;return function(){a++===1&&O(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${o.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`),e._called=!0,a===1&&e.apply(null,arguments)}}function dt(e,o,n,a,l=i=>i()){const i=[];for(const s of e){process.env.NODE_ENV!=="production"&&!s.components&&!s.children.length&&O(`Record with path "${s.path}" is either missing a "component(s)" or "children" property.`);for(const r in s.components){let d=s.components[r];if(process.env.NODE_ENV!=="production"){if(!d||typeof d!="object"&&typeof d!="function")throw O(`Component "${r}" in record with path "${s.path}" is not a valid component. Received "${String(d)}".`),new Error("Invalid route component");if("then"in d){O(`Component "${r}" in record with path "${s.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);const m=d;d=()=>m}else d.__asyncLoader&&!d.__warnedDefineAsync&&(d.__warnedDefineAsync=!0,O(`Component "${r}" in record with path "${s.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(o!=="beforeRouteEnter"&&!s.instances[r]))if(Na(d)){const c=(d.__vccOpts||d)[o];c&&i.push(ne(c,n,a,s,r,l))}else{let m=d();process.env.NODE_ENV!=="production"&&!("catch"in m)&&(O(`Component "${r}" in record with path "${s.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`),m=Promise.resolve(m)),i.push(()=>m.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${r}" at "${s.path}"`));const p=Sn(c)?c.default:c;s.components[r]=p;const u=(p.__vccOpts||p)[o];return u&&ne(u,n,a,s,r,l)()}))}}}return i}function Na(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function oo(e){const o=t.inject(rt),n=t.inject(to),a=t.computed(()=>o.resolve(t.unref(e.to))),l=t.computed(()=>{const{matched:d}=a.value,{length:m}=d,c=d[m-1],p=n.matched;if(!c||!p.length)return-1;const h=p.findIndex(te.bind(null,c));if(h>-1)return h;const u=no(d[m-2]);return m>1&&no(c)===u&&p[p.length-1].path!==u?p.findIndex(te.bind(null,d[m-2])):h}),i=t.computed(()=>l.value>-1&&Ba(n.params,a.value.params)),s=t.computed(()=>l.value>-1&&l.value===n.matched.length-1&&Ft(n.params,a.value.params));function r(d={}){return Sa(d)?o[t.unref(e.replace)?"replace":"push"](t.unref(e.to)).catch(we):Promise.resolve()}if(process.env.NODE_ENV!=="production"&&X){const d=t.getCurrentInstance();if(d){const m={route:a.value,isActive:i.value,isExactActive:s.value};d.__vrl_devtools=d.__vrl_devtools||[],d.__vrl_devtools.push(m),t.watchEffect(()=>{m.route=a.value,m.isActive=i.value,m.isExactActive=s.value},{flush:"post"})}}return{route:a,href:t.computed(()=>a.value.href),isActive:i,isExactActive:s,navigate:r}}const _a=t.defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:oo,setup(e,{slots:o}){const n=t.reactive(oo(e)),{options:a}=t.inject(rt),l=t.computed(()=>({[ao(e.activeClass,a.linkActiveClass,"router-link-active")]:n.isActive,[ao(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=o.default&&o.default(n);return e.custom?i:t.h("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:l.value},i)}}});function Sa(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const o=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(o))return}return e.preventDefault&&e.preventDefault(),!0}}function Ba(e,o){for(const n in o){const a=o[n],l=e[n];if(typeof a=="string"){if(a!==l)return!1}else if(!q(l)||l.length!==a.length||a.some((i,s)=>i!==l[s]))return!1}return!0}function no(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ao=(e,o,n)=>e??o??n,xa=t.defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:o,slots:n}){process.env.NODE_ENV!=="production"&&Oa();const a=t.inject(it),l=t.computed(()=>e.route||a.value),i=t.inject(eo,0),s=t.computed(()=>{let m=t.unref(i);const{matched:c}=l.value;let p;for(;(p=c[m])&&!p.components;)m++;return m}),r=t.computed(()=>l.value.matched[s.value]);t.provide(eo,t.computed(()=>s.value+1)),t.provide(Ca,r),t.provide(it,l);const d=t.ref();return t.watch(()=>[d.value,r.value,e.name],([m,c,p],[h,u,f])=>{c&&(c.instances[p]=m,u&&u!==c&&m&&m===h&&(c.leaveGuards.size||(c.leaveGuards=u.leaveGuards),c.updateGuards.size||(c.updateGuards=u.updateGuards))),m&&c&&(!u||!te(c,u)||!h)&&(c.enterCallbacks[p]||[]).forEach(C=>C(m))},{flush:"post"}),()=>{const m=l.value,c=e.name,p=r.value,h=p&&p.components[c];if(!h)return so(n.default,{Component:h,route:m});const u=p.props[c],f=u?u===!0?m.params:typeof u=="function"?u(m):u:null,C=V=>{V.component.isUnmounted&&(p.instances[c]=null)},N=t.h(h,A({},f,o,{onVnodeUnmounted:C,ref:d}));if(process.env.NODE_ENV!=="production"&&X&&N.ref){const V={depth:s.value,name:p.name,path:p.path,meta:p.meta};(q(N.ref)?N.ref.map(M=>M.i):[N.ref.i]).forEach(M=>{M.__vrv_devtools=V})}return so(n.default,{Component:N,route:m})||N}}});function so(e,o){if(!e)return null;const n=e(o);return n.length===1?n[0]:n}const Ta=xa;function Oa(){const e=t.getCurrentInstance(),o=e.parent&&e.parent.type.name,n=e.parent&&e.parent.subTree&&e.parent.subTree.type;if(o&&(o==="KeepAlive"||o.includes("Transition"))&&typeof n=="object"&&n.name==="RouterView"){const a=o==="KeepAlive"?"keep-alive":"transition";O(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
12
- Use slot props instead:
13
-
14
- <router-view v-slot="{ Component }">
15
- <${a}>
16
- <component :is="Component" />
17
- </${a}>
18
- </router-view>`)}}function ye(e,o){const n=A({},e,{matched:e.matched.map(a=>za(a,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:o,value:n}}}function xe(e){return{_custom:{display:e}}}let La=0;function Aa(e,o,n){if(o.__hasDevtools)return;o.__hasDevtools=!0;const a=La++;_n({id:"org.vuejs.router"+(a?"."+a:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},l=>{typeof l.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),l.on.inspectComponent((c,p)=>{c.instanceData&&c.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:ye(o.currentRoute.value,"Current Route")})}),l.on.visitComponentTree(({treeNode:c,componentInstance:p})=>{if(p.__vrv_devtools){const h=p.__vrv_devtools;c.tags.push({label:(h.name?`${h.name.toString()}: `:"")+h.path,textColor:0,tooltip:"This component is rendered by &lt;router-view&gt;",backgroundColor:lo})}q(p.__vrl_devtools)&&(p.__devtoolsApi=l,p.__vrl_devtools.forEach(h=>{let u=co,f="";h.isExactActive?(u=io,f="This is exactly active"):h.isActive&&(u=ro,f="This link is active"),c.tags.push({label:h.route.path,textColor:0,tooltip:f,backgroundColor:u})}))}),t.watch(o.currentRoute,()=>{d(),l.notifyComponentUpdate(),l.sendInspectorTree(r),l.sendInspectorState(r)});const i="router:navigations:"+a;l.addTimelineLayer({id:i,label:`Router${a?" "+a:""} Navigations`,color:4237508}),o.onError((c,p)=>{l.addTimelineEvent({layerId:i,event:{title:"Error during Navigation",subtitle:p.fullPath,logType:"error",time:l.now(),data:{error:c},groupId:p.meta.__navigationId}})});let s=0;o.beforeEach((c,p)=>{const h={guard:xe("beforeEach"),from:ye(p,"Current Location during this navigation"),to:ye(c,"Target location")};Object.defineProperty(c.meta,"__navigationId",{value:s++}),l.addTimelineEvent({layerId:i,event:{time:l.now(),title:"Start of navigation",subtitle:c.fullPath,data:h,groupId:c.meta.__navigationId}})}),o.afterEach((c,p,h)=>{const u={guard:xe("afterEach")};h?(u.failure={_custom:{type:Error,readOnly:!0,display:h?h.message:"",tooltip:"Navigation Failure",value:h}},u.status=xe("❌")):u.status=xe("✅"),u.from=ye(p,"Current Location during this navigation"),u.to=ye(c,"Target location"),l.addTimelineEvent({layerId:i,event:{title:"End of navigation",subtitle:c.fullPath,time:l.now(),data:u,logType:h?"warning":"default",groupId:c.meta.__navigationId}})});const r="router-inspector:"+a;l.addInspector({id:r,label:"Routes"+(a?" "+a:""),icon:"book",treeFilterPlaceholder:"Search routes"});function d(){if(!m)return;const c=m;let p=n.getRoutes().filter(h=>!h.parent||!h.parent.record.components);p.forEach(uo),c.filter&&(p=p.filter(h=>ct(h,c.filter.toLowerCase()))),p.forEach(h=>mo(h,o.currentRoute.value)),c.rootNodes=p.map(po)}let m;l.on.getInspectorTree(c=>{m=c,c.app===e&&c.inspectorId===r&&d()}),l.on.getInspectorState(c=>{if(c.app===e&&c.inspectorId===r){const h=n.getRoutes().find(u=>u.record.__vd_id===c.nodeId);h&&(c.state={options:Ia(h)})}}),l.sendInspectorTree(r),l.sendInspectorState(r)})}function Ma(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function Ia(e){const{record:o}=e,n=[{editable:!1,key:"path",value:o.path}];return o.name!=null&&n.push({editable:!1,key:"name",value:o.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map(a=>`${a.name}${Ma(a)}`).join(" "),tooltip:"Param keys",value:e.keys}}}),o.redirect!=null&&n.push({editable:!1,key:"redirect",value:o.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map(a=>a.record.path)}),Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map(a=>a.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}const lo=15485081,ro=2450411,io=8702998,Ra=2282478,co=16486972,Pa=6710886;function po(e){const o=[],{record:n}=e;n.name!=null&&o.push({label:String(n.name),textColor:0,backgroundColor:Ra}),n.aliasOf&&o.push({label:"alias",textColor:0,backgroundColor:co}),e.__vd_match&&o.push({label:"matches",textColor:0,backgroundColor:lo}),e.__vd_exactActive&&o.push({label:"exact",textColor:0,backgroundColor:io}),e.__vd_active&&o.push({label:"active",textColor:0,backgroundColor:ro}),n.redirect&&o.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:Pa});let a=n.__vd_id;return a==null&&(a=String(va++),n.__vd_id=a),{id:a,label:n.path,tags:o,children:e.children.map(po)}}let va=0;const Da=/^\/(.*)\/([a-z]*)$/;function mo(e,o){const n=o.matched.length&&te(o.matched[o.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=o.matched.some(a=>te(a,e.record))),e.children.forEach(a=>mo(a,o))}function uo(e){e.__vd_match=!1,e.children.forEach(uo)}function ct(e,o){const n=String(e.re).match(Da);if(e.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(o))return e.children.forEach(s=>ct(s,o)),e.record.path!=="/"||o==="/"?(e.__vd_match=e.re.test(o),!0):!1;const l=e.record.path.toLowerCase(),i=de(l);return!o.startsWith("/")&&(i.includes(o)||l.includes(o))||i.startsWith(o)||l.startsWith(o)||e.record.name&&String(e.record.name).includes(o)?!0:e.children.some(s=>ct(s,o))}function za(e,o){const n={};for(const a in e)o.includes(a)||(n[a]=e[a]);return n}function ja(e){const o=ha(e.routes,e),n=e.parseQuery||$a,a=e.stringifyQuery||Zt,l=e.history;if(process.env.NODE_ENV!=="production"&&!l)throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');const i=ge(),s=ge(),r=ge(),d=t.shallowRef(oe);let m=oe;X&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Ze.bind(null,w=>""+w),p=Ze.bind(null,zn),h=Ze.bind(null,de);function u(w,y){let g,$;return qt(w)?(g=o.getRecordMatcher(w),$=y):$=w,o.addRoute($,g)}function f(w){const y=o.getRecordMatcher(w);y?o.removeRoute(y):process.env.NODE_ENV!=="production"&&O(`Cannot remove non-existent route "${String(w)}"`)}function C(){return o.getRoutes().map(w=>w.record)}function N(w){return!!o.getRecordMatcher(w)}function V(w,y){if(y=A({},y||d.value),typeof w=="string"){const _=ot(n,w,y.path),R=o.resolve({path:_.path},y),re=l.createHref(_.fullPath);return process.env.NODE_ENV!=="production"&&(re.startsWith("//")?O(`Location "${w}" resolved to "${re}". A resolved location cannot start with multiple slashes.`):R.matched.length||O(`No match found for location with path "${w}"`)),A(_,R,{params:h(R.params),hash:de(_.hash),redirectedFrom:void 0,href:re})}let g;if(w.path!=null)process.env.NODE_ENV!=="production"&&"params"in w&&!("name"in w)&&Object.keys(w.params).length&&O(`Path "${w.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),g=A({},w,{path:ot(n,w.path,y.path).path});else{const _=A({},w.params);for(const R in _)_[R]==null&&delete _[R];g=A({},w,{params:p(_)}),y.params=p(y.params)}const $=o.resolve(g,y),L=w.hash||"";process.env.NODE_ENV!=="production"&&L&&!L.startsWith("#")&&O(`A \`hash\` should always start with the character "#". Replace "${L}" with "#${L}".`),$.params=c(h($.params));const P=Un(a,A({},w,{hash:Pn(L),path:$.path})),B=l.createHref(P);return process.env.NODE_ENV!=="production"&&(B.startsWith("//")?O(`Location "${w}" resolved to "${B}". A resolved location cannot start with multiple slashes.`):$.matched.length||O(`No match found for location with path "${w.path!=null?w.path:w}"`)),A({fullPath:P,hash:L,query:a===Zt?Va(w.query):w.query||{}},$,{redirectedFrom:void 0,href:B})}function E(w){return typeof w=="string"?ot(n,w,d.value.path):A({},w)}function M(w,y){if(m!==w)return ce(8,{from:y,to:w})}function D(w){return I(w)}function Y(w){return D(A(E(w),{replace:!0}))}function k(w){const y=w.matched[w.matched.length-1];if(y&&y.redirect){const{redirect:g}=y;let $=typeof g=="function"?g(w):g;if(typeof $=="string"&&($=$.includes("?")||$.includes("#")?$=E($):{path:$},$.params={}),process.env.NODE_ENV!=="production"&&$.path==null&&!("name"in $))throw O(`Invalid redirect found:
19
- ${JSON.stringify($,null,2)}
20
- when navigating to "${w.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return A({query:w.query,hash:w.hash,params:$.path!=null?{}:w.params},$)}}function I(w,y){const g=m=V(w),$=d.value,L=w.state,P=w.force,B=w.replace===!0,_=k(g);if(_)return I(A(E(_),{state:typeof _=="object"?A({},L,_.state):L,force:P,replace:B}),y||g);const R=g;R.redirectedFrom=y;let re;return!P&&jt(a,$,g)&&(re=ce(16,{to:R,from:$}),hn($,$,!0,!1)),(re?Promise.resolve(re):he(R,$)).catch(H=>Z(H)?Z(H,2)?H:Lt(H):Ot(H,R,$)).then(H=>{if(H){if(Z(H,2))return process.env.NODE_ENV!=="production"&&jt(a,V(H.to),R)&&y&&(y._count=y._count?y._count+1:1)>30?(O(`Detected a possibly infinite redirection in a navigation guard when going from "${$.fullPath}" to "${R.fullPath}". Aborting to avoid a Stack Overflow.
21
- Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):I(A({replace:B},E(H.to),{state:typeof H.to=="object"?A({},L,H.to.state):L,force:P}),y||R)}else H=F(R,$,!0,B,L);return Je(R,$,H),H})}function U(w,y){const g=M(w,y);return g?Promise.reject(g):Promise.resolve()}function K(w){const y=Ye.values().next().value;return y&&typeof y.runWithContext=="function"?y.runWithContext(w):w()}function he(w,y){let g;const[$,L,P]=Fa(w,y);g=dt($.reverse(),"beforeRouteLeave",w,y);for(const _ of $)_.leaveGuards.forEach(R=>{g.push(ne(R,w,y))});const B=U.bind(null,w,y);return g.push(B),fe(g).then(()=>{g=[];for(const _ of i.list())g.push(ne(_,w,y));return g.push(B),fe(g)}).then(()=>{g=dt(L,"beforeRouteUpdate",w,y);for(const _ of L)_.updateGuards.forEach(R=>{g.push(ne(R,w,y))});return g.push(B),fe(g)}).then(()=>{g=[];for(const _ of P)if(_.beforeEnter)if(q(_.beforeEnter))for(const R of _.beforeEnter)g.push(ne(R,w,y));else g.push(ne(_.beforeEnter,w,y));return g.push(B),fe(g)}).then(()=>(w.matched.forEach(_=>_.enterCallbacks={}),g=dt(P,"beforeRouteEnter",w,y,K),g.push(B),fe(g))).then(()=>{g=[];for(const _ of s.list())g.push(ne(_,w,y));return g.push(B),fe(g)}).catch(_=>Z(_,8)?_:Promise.reject(_))}function Je(w,y,g){r.list().forEach($=>K(()=>$(w,y,g)))}function F(w,y,g,$,L){const P=M(w,y);if(P)return P;const B=y===oe,_=X?history.state:{};g&&($||B?l.replace(w.fullPath,A({scroll:B&&_&&_.scroll},L)):l.push(w.fullPath,L)),d.value=w,hn(w,y,g,B),Lt()}let Se;function qm(){Se||(Se=l.listen((w,y,g)=>{if(!fn.listening)return;const $=V(w),L=k($);if(L){I(A(L,{replace:!0}),$).catch(we);return}m=$;const P=d.value;X&&Xn(Ht(P.fullPath,g.delta),Qn()),he($,P).catch(B=>Z(B,12)?B:Z(B,2)?(I(B.to,$).then(_=>{Z(_,20)&&!g.delta&&g.type===be.pop&&l.go(-1,!1)}).catch(we),Promise.reject()):(g.delta&&l.go(-g.delta,!1),Ot(B,$,P))).then(B=>{B=B||F($,P,!1),B&&(g.delta&&!Z(B,8)?l.go(-g.delta,!1):g.type===be.pop&&Z(B,20)&&l.go(-1,!1)),Je($,P,B)}).catch(we)}))}let Tt=ge(),un=ge(),Qe;function Ot(w,y,g){Lt(w);const $=un.list();return $.length?$.forEach(L=>L(w,y,g)):(process.env.NODE_ENV!=="production"&&O("uncaught error during route navigation:"),console.error(w)),Promise.reject(w)}function Wm(){return Qe&&d.value!==oe?Promise.resolve():new Promise((w,y)=>{Tt.add([w,y])})}function Lt(w){return Qe||(Qe=!w,qm(),Tt.list().forEach(([y,g])=>w?g(w):y()),Tt.reset()),w}function hn(w,y,g,$){const{scrollBehavior:L}=e;if(!X||!L)return Promise.resolve();const P=!g&&Zn(Ht(w.fullPath,0))||($||!g)&&history.state&&history.state.scroll||null;return t.nextTick().then(()=>L(w,y,P)).then(B=>B&&Yn(B)).catch(B=>Ot(B,w,y))}const At=w=>l.go(w);let Mt;const Ye=new Set,fn={currentRoute:d,listening:!0,addRoute:u,removeRoute:f,hasRoute:N,getRoutes:C,resolve:V,options:e,push:D,replace:Y,go:At,back:()=>At(-1),forward:()=>At(1),beforeEach:i.add,beforeResolve:s.add,afterEach:r.add,onError:un.add,isReady:Wm,install(w){const y=this;w.component("RouterLink",_a),w.component("RouterView",Ta),w.config.globalProperties.$router=y,Object.defineProperty(w.config.globalProperties,"$route",{enumerable:!0,get:()=>t.unref(d)}),X&&!Mt&&d.value===oe&&(Mt=!0,D(l.location).catch(L=>{process.env.NODE_ENV!=="production"&&O("Unexpected error when starting the router:",L)}));const g={};for(const L in oe)Object.defineProperty(g,L,{get:()=>d.value[L],enumerable:!0});w.provide(rt,y),w.provide(to,t.shallowReactive(g)),w.provide(it,d);const $=w.unmount;Ye.add(w),w.unmount=function(){Ye.delete(w),Ye.size<1&&(m=oe,Se&&Se(),Se=null,d.value=oe,Mt=!1,Qe=!1),$()},process.env.NODE_ENV!=="production"&&X&&Aa(w,y,o)}};function fe(w){return w.reduce((y,g)=>y.then(()=>K(g)),Promise.resolve())}return fn}function Fa(e,o){const n=[],a=[],l=[],i=Math.max(o.matched.length,e.matched.length);for(let s=0;s<i;s++){const r=o.matched[s];r&&(e.matched.find(m=>te(m,r))?a.push(r):n.push(r));const d=e.matched[s];d&&(o.matched.find(m=>te(m,d))||l.push(d))}return[n,a,l]}const ho=S(t.defineComponent({inheritAttrs:!1,__name:"BaseCard",props:{type:{default:""}},emits:["click"],setup(e,{emit:o}){const n=o,a=e,l=t.computed(()=>a.type==="news"?"news-card":a.type),i=t.computed(()=>a.type?`${a.type}-img`:"");return(s,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["card",[l.value,s.$attrs.class]]),onClick:r[0]||(r[0]=d=>n("click"))},[t.createElementVNode("div",{class:t.normalizeClass(["card-img",[i.value,s.$attrs["card-img-classes"]]])},[t.renderSlot(s.$slots,"card-image",{},void 0,!0)],2),t.createElementVNode("div",{class:t.normalizeClass(["card-body",[s.$attrs["card-body-classes"]]])},[t.renderSlot(s.$slots,"card-description",{},void 0,!0)],2)],2))}}),[["__scopeId","data-v-8bf8fc0c"]]),Ua=t.defineComponent({name:"CardSection",components:{BaseCard:ho}}),Ha=t.createElementVNode("h4",{class:"tw-my-5"},"Card Horizontal",-1),qa=t.createElementVNode("div",{class:"tw-h-full",style:{"background-color":"#1e8f6e"}},null,-1),Wa=t.createElementVNode("h4",{class:"tw-py-5"},"Card Detail Map",-1),Ka=t.createElementVNode("div",{class:"tw-h-full",style:{"background-color":"#76b22e"}},null,-1),Ga=t.createElementVNode("h4",{class:"tw-py-5"},"Card Vertical",-1),Ja=t.createElementVNode("div",{class:"tw-h-full tw-bg-indigo-500"},null,-1),Qa=t.createElementVNode("h4",{class:"tw-py-5"},"Card News",-1),Ya=t.createElementVNode("div",{class:"tw-h-full tw-bg-amber-600"},null,-1);function Xa(e,o,n,a,l,i){const s=t.resolveComponent("base-card");return t.openBlock(),t.createElementBlock(t.Fragment,null,[Ha,t.createVNode(s,null,{"card-image":t.withCtx(()=>[qa]),"card-description":t.withCtx(()=>[t.createTextVNode(" lorem ipsum ")]),_:1}),Wa,t.createVNode(s,{type:"map-card"},{"card-image":t.withCtx(()=>[Ka]),"card-description":t.withCtx(()=>[t.createTextVNode(" lorem ipsum ")]),_:1}),Ga,t.createVNode(s,{type:"vertical"},{"card-image":t.withCtx(()=>[Ja]),"card-description":t.withCtx(()=>[t.createTextVNode(" lorem ipsum ")]),_:1}),Qa,t.createVNode(s,{type:"news"},{"card-image":t.withCtx(()=>[Ya]),"card-description":t.withCtx(()=>[t.createTextVNode(" lorem ipsum ")]),_:1})],64)}const Za=S(Ua,[["render",Xa]]),es=t.defineComponent({name:"BaseFloatingLabel",props:{labelState:{type:String,default:()=>"inline-label"},isValid:{type:Boolean,default:()=>null},labelText:{type:String,required:!0},disabled:{type:[String,Boolean],default:!1}},emits:["click"]}),ts=["for"],os=["innerHTML"];function ns(e,o,n,a,l,i){return t.openBlock(),t.createElementBlock("label",{for:e.$attrs.for,class:t.normalizeClass(["tw-absolute tw-left-15px tw-h-5",[e.labelState,{"tw-text-w-secondary":e.disabled},e.$attrs["label-classes"]]]),onClick:o[0]||(o[0]=t.withModifiers(s=>e.$emit("click"),["stop"]))},[t.createElementVNode("span",{class:t.normalizeClass(["tw-text tw-font-medium tw-text-w-black",{"!tw-text-w-secondary":e.disabled}]),innerHTML:e.labelText},null,10,os),e.$attrs.required?(t.openBlock(),t.createElementBlock("sup",{key:0,class:t.normalizeClass(["-tw-top-[0.3rem] tw-text tw-text-w-primary",{"tw-text-w-secondary":e.disabled}])}," *",2)):t.createCommentVNode("",!0)],10,ts)}const Te=S(es,[["render",ns],["__scopeId","data-v-ff9ac795"]]);function fo(e){const o=t.ref("inline-label");function n(r){r!=null&&`${r}`.length>0&&(o.value="floating-label")}const a=(r=!0)=>{o.value!=="floating-label"&&r&&(o.value="floating-label"),e("focusin")};function l(r,d=!1,m=!0){if(r!=null&&`${r}`.trim().length>0||!d&&!m){s(),e("focusout");return}i()}const i=()=>{o.value="inline-label"},s=()=>{o.value="floating-label"};return{labelState:o,setInitialLabelState:n,handleFocusIn:a,handleFocusOut:l,setInlineLabel:i,setFloatingLabel:s}}const as=t.defineComponent({name:"BaseInput",components:{BaseFloatingLabel:Te},inheritAttrs:!1,props:{inputClass:{type:[String,Array],required:!1,default:""},inputType:{type:String,default:"text-input"},labelText:{type:String,default:""},border:{type:Boolean,default:!0},radius:{type:Boolean,default:!0},modelValue:{type:[String,Number]},feedback:{type:Object},isValid:{type:Boolean,default:null},auto:{type:Boolean,default:!0},keepFloatingLabel:{type:Boolean,default:!1},formatter:{type:Object,default:null}},emits:["update:modelValue","click","keydown-enter-pressed","focusin","focusout","keydown"],setup(e,o){const{labelState:n,setInitialLabelState:a,handleFocusIn:l,handleFocusOut:i,setInlineLabel:s,setFloatingLabel:r}=fo(o.emit);return{labelState:n,setInitialLabelState:a,handleFocusIn:l,handleFocusOut:i,setInlineLabel:s,setFloatingLabel:r}},data(){return{type:"",feedbackObj:{},pointerDownListener:e=>{e.preventDefault()}}},computed:{passwordIcon(){return document?document.querySelector("[data-type='password-icon']"):null}},watch:{feedback(){this.normalizeFeedbackProp()},modelValue(e){if(e){const o=this.$refs.baseInput;if(!o)return;!o.value&&this.formatter&&(e=o.value);const n=this.updateInputValue(o,e);this.$emit("update:modelValue",n)}else this.$refs.baseInput.value="";e!=null&&`${e}`.length>0&&this.auto&&this.labelState!=="floating-label"?this.labelState="floating-label":(e==null||e==null)&&(this.labelState="inline-label")},keepFloatingLabel(e){e?this.setFloatingLabel():this.handleFocusOut(this.modelValue,!0,this.auto)}},created(){this.type=this.$attrs.type,this.normalizeFeedbackProp(),this.setInitialLabelState(this.modelValue)},mounted(){if((this.modelValue!=null||this.modelValue!=null)&&(this.$refs.baseInput.value=`${this.modelValue}`),this.formatter){const e=this.updateInputValue(this.$refs.baseInput,`${this.modelValue}`);this.$emit("update:modelValue",e)}this.setPointerOutListener()},unmounted(){var e;(e=this.passwordIcon)==null||e.removeEventListener("pointerdown",this.pointerDownListener)},methods:{select(){this.$refs.baseInput.select()},setPointerOutListener(){if(this.$attrs.type!=="password")return;const e=this.passwordIcon;e&&e.addEventListener("pointerdown",this.pointerDownListener)},handleFloatingLabelClick(){this.$refs.baseInput.focus()},normalizeFeedbackProp(){this.feedback&&(this.feedbackObj=this.feedback,this.feedback.valid&&typeof this.feedback.valid=="string"&&(this.feedbackObj.valid=[this.feedback.valid]),this.feedback.invalid&&typeof this.feedback.invalid=="string"&&(this.feedbackObj.invalid=[this.feedback.invalid]))},updateInputValue(e,o){if(!o)return e.value="","";let n="";return this.formatter&&this.formatter.unFormatFn?n=`${this.formatter.unFormatFn(o)}`:n=o,this.formatter?e.value=this.formatter.formatFn(n):e.value=n,n},handleInputChange({target:e}){if(this.inputType==="select")return;const o=e,n=this.updateInputValue(o,o.value);this.$emit("update:modelValue",n)},handleClick(e){this.$emit("click",e)},handleClean(){this.$emit("update:modelValue",""),this.setInlineLabel()},handleShowPasswd(){this.type==="password"?this.type="text":this.type==="text"&&(this.type="password")}}}),ss=["id","data-cy","name","autocomplete","disabled","aria-labelledby","readonly","type","pattern","min","max","maxlength","inputmode","placeholder"],ls={key:0,class:"tw-invisible tw-float-none tw-mb-2 tw-ml-2 tw-block tw-h-3 tw-w-auto tw-max-w-full tw-overflow-hidden tw-whitespace-nowrap tw-p-0 tw-text tw-transition-[max-width] tw-duration-[50ms] tw-ease-out"},rs=["innerHTML"],is=["innerHTML"],ds=["innerHTML"],cs={class:"under-label tw-absolute tw-text-12"};function ps(e,o,n,a,l,i){const s=t.resolveComponent("base-floating-label");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["input-wrapper tw-relative tw-inline-block tw-w-full [&.has-right-icon.is-invalid_.text-input-icon]:tw-mr-25px [&.has-right-icon.is-valid_.text-input-icon]:tw-mr-25px",[e.$attrs.class,{"tw-mt-10px":e.labelText},{"floating-label":e.labelText},e.labelState==="floating-label"?"floating-state":"inline-state",{"has-right-icon":e.$attrs["with-right-icon"]!==void 0?e.$attrs["with-right-icon"]:!!e.$slots.righticon},{"has-left-icon":e.$attrs["with-left-icon"]!==void 0?e.$attrs["with-left-icon"]:!!e.$slots.leftIcon},{"is-invalid":e.isValid===!1,"is-valid":e.isValid}]])},[t.renderSlot(e.$slots,"leftIcon",{},void 0,!0),t.renderSlot(e.$slots,"righticon",{handleClean:e.handleClean,handleShowPasswd:e.handleShowPasswd,curType:e.type},void 0,!0),t.createElementVNode("input",{id:e.$attrs.id,ref:"baseInput","data-cy":e.$attrs["data-cy"],name:e.$attrs.name,class:t.normalizeClass(["tw-peer tw-h-[42px] tw-truncate !tw-border-none tw-bg-no-repeat focus:tw-shadow-none focus:tw-outline-none",[{"tw-rounded-xs":e.radius},{"input-element tw-block tw-h-12 tw-w-full tw-appearance-none tw-px-4 tw-py-2 tw-outline-0":e.inputType==="text-input"},{"tw-text-w-secondary":e.$attrs.disabled},{"is-invalid invalid-bg !tw-pr-9":e.isValid===!1,"is-valid valid-bg !tw-pr-9":e.isValid},{"tw-pr-[42px]":e.$attrs["with-right-icon"]!==void 0?e.$attrs["with-right-icon"]:!!e.$slots.righticon},{"tw-pl-[42px]":e.$attrs["with-left-icon"]!==void 0?e.$attrs["with-left-icon"]:!!e.$slots.leftIcon},e.inputClass]]),autocomplete:e.$attrs.autocomplete==="on"?"on":"off",disabled:e.$attrs.disabled,"aria-labelledby":e.$attrs.id,readonly:e.$attrs.readonly,type:e.type,pattern:e.$attrs.pattern,min:e.$attrs.min,max:e.$attrs.max,maxlength:e.$attrs.maxlength,inputmode:e.$attrs.inputmode,placeholder:e.$attrs.placeholder,onClick:o[0]||(o[0]=(...r)=>e.handleClick&&e.handleClick(...r)),onFocusin:o[1]||(o[1]=t.withModifiers(()=>e.handleFocusIn(),["stop"])),onFocusout:o[2]||(o[2]=t.withModifiers(r=>!e.keepFloatingLabel&&e.handleFocusOut(e.modelValue,!1,e.auto),["stop"])),onInput:o[3]||(o[3]=t.withModifiers((...r)=>e.handleInputChange&&e.handleInputChange(...r),["stop"])),onKeydown:[o[4]||(o[4]=t.withKeys(r=>e.$emit("keydown-enter-pressed"),["enter"])),o[5]||(o[5]=r=>e.$emit("keydown",r))]},null,42,ss),t.createElementVNode("fieldset",{class:t.normalizeClass(["tw-pointer-events-none tw-absolute -tw-top-[5px] tw-bottom-0 tw-left-0 tw-right-0 tw-m-0 tw-h-12 tw-overflow-hidden tw-px-2 tw-py-0 tw-text-left",[{"tw-border tw-border-solid tw-transition-[border] tw-duration-100 tw-ease-out peer-focus:tw-border-2 peer-focus:tw-border-w-primary peer-focus:[&.is-invalid]:tw-border-w-danger":e.border,"tw-rounded-xs":e.radius,"is-invalid tw-border-w-danger":e.isValid===!1,"is-valid tw-border-w-primary":e.isValid,"tw-border-w-secondary":e.isValid===null&&e.border},{"no-floating-label tw-top-0":!e.labelText},e.$attrs["fieldset-classes"]]])},[e.labelText?(t.openBlock(),t.createElementBlock("legend",ls,[t.createElementVNode("span",{class:t.normalizeClass(["visible-label tw-opacity-0",[{"tw-mx-5px":e.labelText},{"tw-visible tw-inline-block":e.labelState==="floating-label"},{"tw-invisible tw-hidden":e.labelState==="inline-label"}]]),innerHTML:e.labelText},null,10,rs)])):t.createCommentVNode("",!0)],2),e.labelText?(t.openBlock(),t.createBlock(s,{key:0,for:e.$attrs.id,"label-text":e.labelText,"label-state":e.labelState,"is-valid":e.isValid,required:e.$attrs.required,disabled:e.$attrs.disabled,"label-classes":e.$attrs["label-classes"],onClick:e.handleFloatingLabelClick},null,8,["for","label-text","label-state","is-valid","required","disabled","label-classes","onClick"])):t.createCommentVNode("",!0),e.isValid===!1?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.feedbackObj.invalid,(r,d)=>(t.openBlock(),t.createElementBlock("div",{key:`${e.$attrs.id}_invalid_${d}`,class:"tw-mt-1 tw-text-12 tw-text-w-danger",innerHTML:r},null,8,is))),128)):e.isValid===!0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(e.feedbackObj.valid,(r,d)=>(t.openBlock(),t.createElementBlock("div",{key:`${e.$attrs.id}_valid_${d}`,class:"tw-mt-1 tw-text-12 tw-text-w-primary",innerHTML:r},null,8,ds))),128)):t.createCommentVNode("",!0),t.createElementVNode("div",cs,[t.renderSlot(e.$slots,"under-label",{},void 0,!0)])],2)}const j=S(as,[["render",ps],["__scopeId","data-v-ca8b659f"]]),ae=()=>({width:20,height:20,strokeColor:"#222",fillColor:"none"}),pt=(e,{attrs:o})=>{e={...ae(),...e};const{width:n,height:a}=e;return t.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17.977 19.365",width:`${n}`,height:`${a}`,class:e.class??"","aria-hidden":o["aria-hidden"]??"true"},t.h("g",{fill:"none",stroke:`${o["stroke-color"]??"#385cf6"}`,"stroke-linecap":"round","stroke-width":`${o["stroke-width"]??"2"}`},[t.h("g",{fill:"#fff"},[t.h("circle",{cx:7.361,cy:7.361,r:7.631,stroke:"none"}),t.h("circle",{cx:7.361,cy:7.361,r:6.631,fill:"none"})]),t.h("path",{fill:"none",d:"m11.656 13.043 4.907 4.907"})]))},ms=(e,{attrs:o})=>{e={...ae(),...e};const{width:n,height:a}=e;return t.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 19.433 12.08",width:`${n}`,height:`${a}`,class:e.class??"","aria-hidden":o["aria-hidden"]??"true"},t.h("g",{stroke:o["stroke-color"]??"#3d4b56"},[t.h("path",{fill:"#fff","stroke-linecap":o["stroke-linecap"]??"round","stroke-linejoin":o["stroke-linejoin"]??"round",d:"M.5 6.044s0 0 0 0C1.122 5.13 4.194.814 9.173.519 14.8.187 18.4 5.263 18.931 6.041h0s0 0 0 0h0c-.622.912-3.693 5.227-8.672 5.521q-.267.016-.527.016C4.4 11.58 1.016 6.796.5 6.044"}),t.h("g",{fill:"none",transform:"translate(5.852 2.003)"},[t.h("circle",{cx:4,cy:4,stroke:"none"}),t.h("circle",{cx:4,cy:4,r:3.5})])]))},us=(e,{attrs:o})=>{e={...ae(),...e};const{width:n,height:a}=e;return t.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 19.433 15.556",width:`${n}`,height:`${a}`,class:e.class??"","aria-hidden":o["aria-hidden"]??"true"},[t.h("g",{stroke:o["stroke-color"]??"#3d4b56"},[t.h("path",{fill:"#fff","stroke-linecap":o["stroke-linecap"]??"round","stroke-linejoin":o["stroke-linejoin"]??"round",d:"M.5 7.78s0 0 0 0c.622-.914 3.694-5.23 8.673-5.525 5.627-.332 9.227 4.744 9.758 5.522h0s0 0 0 0h0c-.622.912-3.693 5.227-8.672 5.521q-.267.016-.527.016C4.4 13.316 1.016 8.532.5 7.78"}),t.h("g",{fill:"none",transform:"translate(5.852 3.739)"},[t.h("circle",{cx:4,cy:4,stroke:"none"}),t.h("circle",{cx:4,cy:4,r:3.5})])]),t.h("g",{fill:o["stroke-color"]??"#3d4b56",stroke:"#fff","stroke-width":.5,transform:"rotate(-45 2.676 -1.632)"},[t.h("rect",{width:2,height:20,stroke:"none",rx:1}),t.h("rect",{width:1.5,height:19.5,x:.25,y:.25,fill:"none",rx:.75})])])},hs=(e,{attrs:o})=>{e={...ae(),...e};const{width:n,height:a,strokeColor:l,fillColor:i}=e;return t.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 9.043 17.407",width:`${n}`,height:`${a}`,class:e.class??"","aria-hidden":o["aria-hidden"]??"true"},t.h("g",{fill:i,stroke:l,"stroke-linecap":`${o["stroke-linecap"]??"round"}`,"stroke-linejoin":`${o["stroke-linejoin"]??"round"}`,"stroke-width":`${o["stroke-width"]??"1.3"}`},[t.h("path",{d:`M.65 6.627A5.987 5.987 0 0 1 6.995.659a5.766 5.766 0 0 1 3.627 1.526 5.988 5.988 0 0
22
- 1 .147 8.729 1.928 1.928 0 0 0-.451.615l-.886 2.06h-5.63l-.885-2.062a1.95 1.95 0 0
23
- 0-.45-.613A5.954 5.954 0 0 1 .65 6.627Z`}),t.h("path",{d:"M8.061 16.654H5.172a1.075 1.075 0 0 1-1.058-.891l-.372-2.173h5.746l-.365 2.168a1.073 1.073 0 0 1-1.062.896Z"})]))},Oe=(e,{attrs:o})=>{e={...ae(),...e};const{width:n,height:a}=e;return t.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18.558 18.558",width:`${n}`,height:`${a}`,class:e.class??"","aria-hidden":o["aria-hidden"]??"true"},t.h("g",{fill:"none",stroke:`${o["stroke-color"]??"#222"}`,"stroke-linecap":`${o["stroke-linecap"]??"round"}`,"stroke-linejoin":`${o["stroke-linejoin"]??"round"}`,"stroke-width":`${o["stroke-width"]??"3"}`},[t.h("path",{d:"m2.121 2.121 14.316 14.316"}),t.h("path",{d:"M2.121 16.437 16.244 2.121"})]))},fs={class:"tw-h-max",style:{"max-height":"1035px"}},ws=t.createElementVNode("h4",{class:"tw-mt-4"},"Base Text Input",-1),bs={class:"tw-grid tw-grid-cols-2 tw-gap-4"},gs={class:""},ys=t.createElementVNode("h6",{class:"tw-my-0"},"With input",-1),ks={class:""},$s=t.createElementVNode("h6",{class:"tw-my-0"},"Without input",-1),Vs=t.createElementVNode("h4",{class:"tw-mt-4"},"Base Text Input",-1),Cs={class:"tw-grid tw-grid-cols-2 tw-gap-4 lg:tw-grid-cols-3"},Es={class:""},Ns=t.createElementVNode("h6",{class:"tw-my-0"},"With left icon",-1),_s={class:""},Ss=t.createElementVNode("h6",{class:"tw-my-0"},"With right icon",-1),Bs=["onClick"],xs={class:"tw-col-span-2 lg:tw-col-span-1"},Ts=t.createElementVNode("h6",{class:"tw-my-0"},"With both icons",-1),Os=t.createElementVNode("h4",{class:"tw-mt-4"},"Base Text Input",-1),Ls=t.createElementVNode("h6",{class:"tw-my-0"},"With cleaning button",-1),As=["onClick"],Ms=t.createElementVNode("h4",{class:"tw-mt-4"},"Text Input - Disabled",-1),Is={class:"tw-grid tw-grid-cols-2 tw-gap-4"},Rs={class:""},Ps=t.createElementVNode("h6",{class:"tw-my-0"},"With Input",-1),vs={class:""},Ds=t.createElementVNode("h6",{class:"tw-my-0"},"Without Input",-1),zs=t.createElementVNode("h4",{class:"tw-mt-4"},"Text Input - Error",-1),js={class:"tw-grid tw-grid-cols-2 tw-gap-4"},Fs={class:""},Us=t.createElementVNode("h6",{class:"tw-my-0"},"With input",-1),Hs={class:""},qs=t.createElementVNode("h6",{class:"tw-my-0"},"Without input",-1),Ws={class:"tw-my-4 tw-flex tw-flex-col"},Ks=t.createElementVNode("h4",null,"Text Input - Valid",-1),Gs=t.createElementVNode("h4",null,"Text Input - Required",-1),Js={class:"tw-grid tw-grid-cols-2 tw-gap-4"},Qs={class:""},Ys=t.createElementVNode("h6",{class:"tw-my-0"},"With input",-1),Xs={class:""},Zs=t.createElementVNode("h6",{class:"tw-my-0"},"Without input",-1),el=t.defineComponent({__name:"TextInputSection",setup(e){const o=t.ref("test input"),n=t.ref(""),a=t.ref("disabled input"),l=t.ref("required input"),i=t.ref("trial value"),s=t.ref(""),r=t.ref(""),d=t.ref(""),m=t.ref(""),c=t.ref(""),p=t.ref("");return(h,u)=>(t.openBlock(),t.createElementBlock("div",fs,[ws,t.createElementVNode("div",bs,[t.createElementVNode("div",gs,[ys,t.createVNode(j,{id:"regular-input",modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=f=>o.value=f),"label-text":"Label"},null,8,["modelValue"])]),t.createElementVNode("div",ks,[$s,t.createVNode(j,{id:"regular-input1",modelValue:n.value,"onUpdate:modelValue":u[1]||(u[1]=f=>n.value=f),"label-text":"Label"},null,8,["modelValue"])])]),Vs,t.createElementVNode("div",Cs,[t.createElementVNode("div",Es,[Ns,t.createVNode(j,{id:"with-left-icon",modelValue:d.value,"onUpdate:modelValue":u[2]||(u[2]=f=>d.value=f),"label-text":"Cerca"},{leftIcon:t.withCtx(()=>[t.createVNode(t.unref(pt),{class:"text-input-icon left sm",width:15,height:15})]),_:1},8,["modelValue"])]),t.createElementVNode("div",_s,[Ss,t.createVNode(j,{id:"with-right-icon",modelValue:m.value,"onUpdate:modelValue":u[3]||(u[3]=f=>m.value=f),"label-text":"Label",type:"password"},{righticon:t.withCtx(({handleShowPasswd:f,curType:C})=>[t.createElementVNode("span",{onClick:t.withModifiers(f,["stop"])},[C==="password"?(t.openBlock(),t.createBlock(t.unref(ms),{key:0,class:"text-input-icon right md",width:15,height:15})):(t.openBlock(),t.createBlock(t.unref(us),{key:1,class:"text-input-icon right md",width:15,height:15}))],8,Bs)]),_:1},8,["modelValue"])]),t.createElementVNode("div",xs,[Ts,t.createVNode(j,{id:"with-both-icons",modelValue:c.value,"onUpdate:modelValue":u[4]||(u[4]=f=>c.value=f),"label-text":"Label"},{leftIcon:t.withCtx(()=>[t.createVNode(t.unref(pt),{class:"text-input-icon left sm",width:15,height:15})]),righticon:t.withCtx(()=>[t.createVNode(t.unref(hs),{class:"text-input-icon right md",width:15,height:15})]),_:1},8,["modelValue"])])]),Os,Ls,t.createVNode(j,{id:"with-both-icons1",modelValue:p.value,"onUpdate:modelValue":u[5]||(u[5]=f=>p.value=f),"label-text":"Label"},{righticon:t.withCtx(({handleClean:f})=>[`${p.value}`.length>0?(t.openBlock(),t.createElementBlock("span",{key:0,onClick:t.withModifiers(f,["stop"])},[t.createVNode(t.unref(Oe),{class:"text-input-icon right sm",width:15,height:15})],8,As)):t.createCommentVNode("",!0)]),_:1},8,["modelValue"]),Ms,t.createElementVNode("div",Is,[t.createElementVNode("div",Rs,[Ps,t.createVNode(j,{id:"regular-input2",modelValue:a.value,"onUpdate:modelValue":u[6]||(u[6]=f=>a.value=f),"label-text":"Label",disabled:"disabled"},null,8,["modelValue"])]),t.createElementVNode("div",vs,[Ds,t.createVNode(j,{id:"regular-input3","label-text":"Label",disabled:"disabled","model-value":""})])]),zs,t.createElementVNode("div",js,[t.createElementVNode("div",Fs,[Us,t.createVNode(j,{id:"invalid-input",modelValue:i.value,"onUpdate:modelValue":u[7]||(u[7]=f=>i.value=f),"label-text":"Label","is-valid":!1,feedback:{valid:"Kudos!",invalid:["Check your input","The input must have at least 8 chars"]}},null,8,["modelValue"])]),t.createElementVNode("div",Hs,[qs,t.createVNode(j,{id:"invalid-input-empty",modelValue:s.value,"onUpdate:modelValue":u[8]||(u[8]=f=>s.value=f),"label-text":"Label","is-valid":!1,feedback:{valid:"Kudos!",invalid:"Check your input"}},null,8,["modelValue"])])]),t.createElementVNode("div",Ws,[Ks,t.createVNode(j,{id:"valid-input",modelValue:r.value,"onUpdate:modelValue":u[9]||(u[9]=f=>r.value=f),"label-text":"Label","is-valid":!0,feedback:{valid:"Kudos!",invalid:"Check your input"}},null,8,["modelValue"])]),Gs,t.createElementVNode("div",Js,[t.createElementVNode("div",Qs,[Ys,t.createVNode(j,{id:"required-input-with",modelValue:l.value,"onUpdate:modelValue":u[10]||(u[10]=f=>l.value=f),"label-text":"Label",required:"required",feedback:{valid:"Kudos!",invalid:"Check your input"}},null,8,["modelValue"])]),t.createElementVNode("div",Xs,[Zs,t.createVNode(j,{id:"required-input-without","label-text":"Label","model-value":"",required:"required",feedback:{valid:"Kudos!",invalid:"Check your input"}})])])]))}}),tl=t.defineComponent({name:"BaseIcon",props:{lazyLoading:{type:Boolean,default:!1},altAttribute:{type:String,default:""},iconName:{type:String,default:""},iconType:{type:String,default:"icon-md"},iconClass:{type:String,default:"tw-mr-5px"}}}),ol=["id","alt","src","width","height","loading"];function nl(e,o,n,a,l,i){return t.openBlock(),t.createElementBlock("img",{id:e.$attrs.id,class:t.normalizeClass(["tw-inline-block",e.iconType,e.iconClass]),alt:e.altAttribute||e.$attrs.alt,style:t.normalizeStyle(e.$attrs.style),src:e.$attrs.src?e.$attrs.src:"",width:e.$attrs.width,height:e.$attrs.height,loading:e.lazyLoading?"lazy":"eager"},null,14,ol)}const Le=S(tl,[["render",nl],["__scopeId","data-v-5d8617bb"]]),al={viewBox:"0 0 128 128",class:"icon-spin tw-h-6 tw-w-6"},sl=["stroke-width"],ll=S(t.defineComponent({__name:"StaticSpinner",props:{thickness:{default:9},color:{default:"tw-stroke-white"}},setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["tw-m-auto tw-flex tw-items-center tw-justify-center",o.color])},[(t.openBlock(),t.createElementBlock("svg",al,[t.createElementVNode("circle",{class:"path",cx:"64",cy:"64",r:"42",fill:"none","stroke-width":o.thickness},null,8,sl)]))],2))}}),[["__scopeId","data-v-a9cef034"]]),rl=["id","data-cy","type","data-active","disabled","aria-labelledby"],G=t.defineComponent({__name:"BaseButton",props:{lazyLoadIcon:{type:Boolean,default:!0},btnClass:{default:""},iconName:{default:""},iconNameHovering:{default:""},iconClass:{default:"tw-mr-[5px]"},isEmpty:{type:Boolean,default:!1},keepActive:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["mouseover","mouseout","click"],setup(e){const o=e,n=t.ref(!1),a=t.ref("");t.onBeforeMount(()=>{a.value=o.iconName??""});const l=()=>{n.value=!0,o.iconNameHovering&&s(o.iconNameHovering)},i=()=>{n.value=!1,o.iconNameHovering&&s(o.iconName)},s=r=>{a.value=r};return(r,d)=>(t.openBlock(),t.createElementBlock("button",{id:r.$attrs.id,"data-cy":r.$attrs["data-cy"],type:r.$attrs.type,class:t.normalizeClass([{"tw-btn":!r.isEmpty,"tw-btn-empty":r.isEmpty,"active tw-font-medium":r.keepActive,"tw-flex tw-items-center tw-justify-center":r.iconName||r.isLoading},r.btnClass]),style:t.normalizeStyle(r.$attrs.style),"data-active":r.keepActive,disabled:r.isLoading||r.disabled,"aria-labelledby":r.$attrs.id,onMouseover:d[0]||(d[0]=t.withModifiers(m=>{l(),r.$emit("mouseover",m)},["stop"])),onMouseout:d[1]||(d[1]=t.withModifiers(m=>{i(),r.$emit("mouseout",m)},["stop"])),onClick:d[2]||(d[2]=m=>r.$emit("click",m))},[r.iconName&&!r.isLoading?(t.openBlock(),t.createBlock(Le,{key:r.$attrs.id?r.$attrs.id:`btn-${r.iconName}`,"icon-name":a.value,"icon-class":r.iconClass,"alt-attribute":"button icon","lazy-loading":r.lazyLoadIcon},null,8,["icon-name","icon-class","lazy-loading"])):t.createCommentVNode("",!0),r.isLoading?t.renderSlot(r.$slots,"spinner",{key:2},()=>[t.createVNode(ll,{color:r.btnClass.includes("tw-btn-light")?"tw-stroke-black":"tw-stroke-white"},null,8,["color"])]):t.renderSlot(r.$slots,"default",{key:1,hover:n.value})],46,rl))}}),il=t.defineComponent({name:"ButtonsSection",components:{BaseButton:G}}),dl={class:"tw-my-5"},cl={class:"tw-grid tw-grid-cols-2 tw-gap-5 lg:tw-grid-cols-3"},pl=t.createElementVNode("h3",{class:"tw-my-5"},"Bottoni mostra altro",-1),ml=t.createElementVNode("h3",{class:"tw-my-5"},"Bottoni con Icona",-1),ul=t.createElementVNode("h3",{class:"tw-my-5"},"Bottoni con caricamento",-1),hl=t.createElementVNode("h3",{class:"tw-my-5"},"Multiselezione",-1),fl=t.createElementVNode("h3",{class:"tw-my-5"},"Singola selezione",-1);function wl(e,o,n,a,l,i){const s=t.resolveComponent("base-button");return t.openBlock(),t.createElementBlock("div",null,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList([{sectionName:"Large",btnSize:"tw-btn-lg"},{sectionName:"Medium",btnSize:"tw-btn"},{sectionName:"Small",btnSize:"tw-btn-sm"}],r=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:r.sectionName},[t.createElementVNode("h3",dl,t.toDisplayString(r.sectionName),1),t.createElementVNode("div",cl,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList([{variant:`tw-btn-w-primary ${r.btnSize}`,text:"Ultramarine"},{variant:`tw-btn-w-secondary ${r.btnSize}`,text:"Secondary"},{variant:`tw-btn-light ${r.btnSize}`,text:"Light"},{variant:`tw-btn-w-warning ${r.btnSize}`,text:"Warning"},{variant:`tw-btn-w-danger ${r.btnSize}`,text:"Danger"},{variant:`tw-btn-facile ${r.btnSize}`,text:"Facile"},{variant:`tw-btn-facile tw-btn-empty ${r.btnSize}`,text:"Facile empty"},{variant:`tw-btn-w-primary ${r.btnSize}`,text:"Disablitato",disabled:!0},{variant:`tw-btn-w-primary tw-btn-outline ${r.btnSize}`,text:"Outline ultramarine"},{variant:`tw-btn-w-secondary tw-btn-outline ${r.btnSize}`,text:"Outline secondary"},{variant:`tw-btn-w-danger tw-btn-outline ${r.btnSize}`,text:"Outline Danger"}],(d,m)=>(t.openBlock(),t.createBlock(s,{key:"large_"+m,"btn-class":d.variant,disabled:d.disabled,class:"tw-w-fit"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(d.text),1)]),_:2},1032,["btn-class","disabled"]))),128))])],64))),64)),pl,t.createVNode(s,{"btn-class":"tw-btn-show-more"},{default:t.withCtx(()=>[t.createTextVNode(" Bottone ")]),_:1}),ml,t.createVNode(s,{"btn-class":"tw-btn tw-btn-w-primary","icon-name":"arrow-green-1.svg","icon-name-hovering":"arrow-red-1.svg"},{default:t.withCtx(()=>[t.createTextVNode(" Bottone ")]),_:1}),ul,t.createVNode(s,{"btn-class":"tw-btn tw-btn-w-primary","is-loading":!0,"icon-name-hovering":"arrow-red-1.svg"},{default:t.withCtx(()=>[t.createTextVNode(" Bottone ")]),_:1}),hl,t.createVNode(s,{"btn-class":"tw-btn-multi-selection"},{default:t.withCtx(()=>[t.createTextVNode(" Bottone ")]),_:1}),fl,t.createVNode(s,{"btn-class":"tw-btn-single-selection"},{default:t.withCtx(()=>[t.createTextVNode(" Bottone ")]),_:1})])}const bl=S(il,[["render",wl]]),gl=t.defineComponent({name:"BaseNavItem",components:{BaseIcon:Le},props:{text:{type:String},iconName:{type:String},iconClass:{type:String,default:"tw-mr-5px"},navItemCustomClass:{type:String},isActive:{type:Boolean,default:!1}},emits:["click"],watch:{isActive(e){const o=this.$refs["base-nav-item"];e?o.classList.add("active"):o.classList.remove("active")}}}),yl=["id"];function kl(e,o,n,a,l,i){const s=t.resolveComponent("base-icon");return t.openBlock(),t.createElementBlock("li",{id:`${e.$attrs.id}`,class:t.normalizeClass(["tw-group/tabs tw-relative tw-flex tw-cursor-pointer tw-items-center tw-pb-5px disabled:tw-border-transparent disabled:tw-bg-transparent disabled:tw-text-gray-600",[e.navItemCustomClass]]),onClick:o[0]||(o[0]=r=>e.$emit("click",r))},[e.iconName?(t.openBlock(),t.createBlock(s,{key:0,"alt-attribute":"icon","icon-name":e.iconName,"icon-class":e.iconClass},null,8,["icon-name","icon-class"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default",{},()=>[t.createElementVNode("a",{ref:"base-nav-item",class:"after:tw-absolute after:tw-bottom-0 after:tw-left-0 after:tw-w-full after:tw-content-[''] group-hover/tabs:after:tw-border-b-2 group-hover/tabs:after:tw-border-b-w-primary group-hover/tabs:after:[border-bottom-style:solid]"},t.toDisplayString(e.text),513)],!0)],10,yl)}const wo=S(gl,[["render",kl],["__scopeId","data-v-e3ded660"]]),$l=t.defineComponent({name:"BaseTab",components:{BaseNavItem:wo},props:{navTabsCustomClass:{type:String},firstLabel:{type:String,default:"Tab1"},firstIconName:{type:String},secondLabel:{type:String,default:"Tab2"},secondIconName:{type:String},tabs:{type:Array}},emits:["clickedTab"],data(){return{selectedId:""}},methods:{handleClick(e){this.clickTab(e),this.$emit("clickedTab",e)},clickTab(e){this.selectedId=e}}});function Vl(e,o,n,a,l,i){const s=t.resolveComponent("base-nav-item");return t.openBlock(),t.createElementBlock("ul",{class:t.normalizeClass(["tw-inline-flex tw-flex-wrap tw-gap-5",[e.navTabsCustomClass]])},[e.tabs?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.tabs,(r,d)=>(t.openBlock(),t.createBlock(s,{id:r.id+"_"+d,key:d,text:r.label,"is-active":e.selectedId===r.id+"_"+d,"icon-name":r.iconName,onClick:m=>e.handleClick(`${r.id+"_"+d}`)},null,8,["id","text","is-active","icon-name","onClick"]))),128)):t.renderSlot(e.$slots,"custom",{key:0},()=>[t.createVNode(s,{id:"tab1","is-active":e.selectedId==="tab1","icon-name":e.firstIconName,text:e.firstLabel,onClick:o[0]||(o[0]=r=>e.handleClick("tab1"))},null,8,["is-active","icon-name","text"]),t.createVNode(s,{id:"tab2",ref:"tab2","is-active":e.selectedId==="tab2","icon-name":e.secondIconName,text:e.secondLabel,onClick:o[1]||(o[1]=r=>e.handleClick("tab2"))},null,8,["is-active","icon-name","text"])])],2)}const bo=S($l,[["render",Vl]]),Cl=t.defineComponent({name:"TabSection",components:{BaseTab:bo}}),El={class:"tw-mt-5"},Nl={class:"tw-flex tw-flex-col"},_l=t.createElementVNode("h4",null,"Tab base",-1),Sl=t.createElementVNode("h4",null,"Tab Custom",-1);function Bl(e,o,n,a,l,i){const s=t.resolveComponent("base-tab");return t.openBlock(),t.createElementBlock("div",El,[t.createElementVNode("div",Nl,[_l,t.createVNode(s,{"first-label":"Bottone","second-label":"Bottone","first-icon-name":"bus.svg"}),Sl,t.createVNode(s,{tabs:[{id:"1",label:"Tab1"},{id:"2",label:"Tab2"},{id:"3",label:"Tab3"}]})])])}const xl=S(Cl,[["render",Bl]]),Tl=t.defineComponent({name:"BaseTextarea",components:{BaseFloatingLabel:Te},inheritAttrs:!1,props:{labelText:{type:String,default:""},modelValue:{type:[String,Number]},feedback:{type:Object},isValid:{type:Boolean,default:null},textAreaStyle:{type:String,default:""},isDisabled:{type:Boolean,default:!1},resize:{type:Boolean,default:!1}},emits:["update:modelValue","focusin","focusout"],setup(e,o){const{labelState:n,setInitialLabelState:a,handleFocusIn:l,handleFocusOut:i}=fo(o.emit);return{labelState:n,setInitialLabelState:a,handleFocusIn:l,handleFocusOut:i}},data(){return{value:""}},computed:{textareaElem(){return this.$refs.textarea}},watch:{modelValue(e){`${e}`.length>0&&this.labelState!=="floating-label"&&(this.labelState="floating-label")}},created(){this.setInitialLabelState(this.modelValue)},methods:{handleOnChange({target:e}){this.value=e.value,this.$emit("update:modelValue",e.value)},handleFloatingLabelClick(){this.$refs.textarea.focus()},disableTextarea(){this.textareaElem.setAttribute("readonly","readonly"),this.textareaElem.classList.add("disabled")},clearTextareaElem(){this.textareaElem.value="",console.log(this.textareaElem.value)},disableAndFocusTextarea(){this.textareaElem.removeAttribute("readonly"),this.textareaElem.classList.remove("disabled"),this.$nextTick(()=>{this.textareaElem.focus()})}}}),Ol=["id","data-cy","rows","disabled","aria-labelledby","innerHTML"],Ll={key:0,class:"tw-visible tw-float-none tw-ml-2 tw-block tw-h-3 tw-w-auto tw-max-w-full tw-overflow-hidden tw-whitespace-nowrap tw-p-0 tw-text tw-duration-[50s] tw-ease-out"},Al=["innerHTML"],Ml=["innerHTML"];function Il(e,o,n,a,l,i){const s=t.resolveComponent("base-floating-label");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$attrs["wrapper-classes"])},[t.createElementVNode("div",{class:t.normalizeClass(["input-wrapper tw-relative tw-mt-15px tw-rounded-xs tw-px-0",[e.labelState==="floating-label"?"floating-state":"inline-state"]])},[t.createElementVNode("textarea",{id:e.$attrs.id,ref:"textarea","data-cy":e.$attrs["data-cy"],class:t.normalizeClass(["textarea-scrollbar tw-peer/fieldset tw-w-full tw-overflow-y-auto tw-whitespace-pre-wrap tw-rounded-xs tw-border-0 tw-bg-white tw-bg-no-repeat tw-px-15px tw-pb-[8px] tw-pt-15px tw-outline-none",[{"tw-bg-w-cultured":e.$attrs.disabled||e.isDisabled},{"is-invalid invalid-bg !tw-pr-10":e.isValid===!1},{"is-valid valid-bg !tw-pr-10":e.isValid},{"tw-resize-none":!e.resize}]]),rows:e.$attrs.rows,disabled:e.$attrs.disabled,"aria-labelledby":e.$attrs.id,onFocusin:o[0]||(o[0]=t.withModifiers(()=>e.handleFocusIn(),["stop"])),onFocusout:o[1]||(o[1]=t.withModifiers(r=>e.handleFocusOut(`${e.modelValue}`.trim()||e.value),["stop"])),onInput:o[2]||(o[2]=t.withModifiers((...r)=>e.handleOnChange&&e.handleOnChange(...r),["stop"])),innerHTML:e.modelValue},null,42,Ol),t.createElementVNode("fieldset",{class:t.normalizeClass(["tw-pointer-events-none tw-absolute -tw-top-5px tw-bottom-5px tw-left-0 tw-right-0 tw-m-0 tw-min-w-0 tw-overflow-hidden tw-rounded-xs tw-border tw-border-solid tw-px-2 tw-text-start tw-transition-[border] tw-duration-100 tw-ease-out peer-focus/fieldset:tw-border-2 peer-focus/fieldset:tw-border-w-primary",[{"is-invalid":e.isValid===!1,"is-valid":e.isValid},{"tw-border-w-danger":e.isValid===!1},{"tw-border-w-primary":e.isValid},{"tw-border-w-secondary":e.isValid===null}]])},[e.labelText?(t.openBlock(),t.createElementBlock("legend",Ll,[t.createElementVNode("span",{class:t.normalizeClass(["tw-px-5px tw-opacity-0",[{"tw-visible tw-inline-block":e.labelState==="floating-label"},{"tw-invisible tw-hidden":e.labelState==="inline-label"}]]),innerHTML:e.labelText},null,10,Al)])):t.createCommentVNode("",!0)],2),t.createVNode(s,{for:e.$attrs.id,"label-text":e.labelText,"label-state":e.labelState,required:e.$attrs.required,"is-valid":e.isValid,onClick:e.handleFloatingLabelClick},null,8,["for","label-text","label-state","required","is-valid","onClick"])],2),(e.isValid||e.isValid===!1)&&e.feedback?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.isValid===!1?"tw-mt-1 tw-text-12 tw-text-w-danger":"tw-mt-1 tw-text-12 tw-text-w-primary"),innerHTML:e.isValid===!1?e.feedback.invalid:e.feedback.valid},null,10,Ml)):t.createCommentVNode("",!0)],2)}const go=S(Tl,[["render",Il],["__scopeId","data-v-b7578484"]]),Rl=t.defineComponent({name:"TextareaSection",components:{BaseTextarea:go},data(){return{firstBtInput:"",secondBtInput:"",thirdBtInput:""}}}),Pl={class:"tw-mt-5 tw-h-max",style:{"max-height":"500px"}},vl={class:"tw-flex tw-flex-col"},Dl=t.createElementVNode("h2",null,"Text Area",-1),zl={class:"tw-flex tw-flex-col"},jl=t.createElementVNode("h2",{class:"tw-mt-5"},"Text Area - Error",-1),Fl={class:"tw-flex tw-flex-col"},Ul=t.createElementVNode("h2",{class:"tw-mt-5"},"Text Area - Success",-1);function Hl(e,o,n,a,l,i){const s=t.resolveComponent("base-textarea");return t.openBlock(),t.createElementBlock("div",Pl,[t.createElementVNode("div",vl,[Dl,t.createVNode(s,{id:"firstTextarea",modelValue:e.firstBtInput,"onUpdate:modelValue":o[0]||(o[0]=r=>e.firstBtInput=r),"label-text":"label",rows:"3"},null,8,["modelValue"])]),t.createElementVNode("div",zl,[jl,t.createVNode(s,{id:"secondTextarea",modelValue:e.secondBtInput,"onUpdate:modelValue":o[1]||(o[1]=r=>e.secondBtInput=r),"label-text":"label",rows:"3","is-valid":!1,feedback:{valid:"Well done",invalid:"Try again"}},null,8,["modelValue"])]),t.createElementVNode("div",Fl,[Ul,t.createVNode(s,{id:"thirdTextarea",modelValue:e.thirdBtInput,"onUpdate:modelValue":o[2]||(o[2]=r=>e.thirdBtInput=r),"label-text":"label",rows:"3","is-valid":!0,feedback:{valid:"Well done",invalid:"Try again"}},null,8,["modelValue"])])])}const ql=S(Rl,[["render",Hl]]),Wl=["id"],yo=S(t.defineComponent({__name:"BaseAlert",props:{text:{default:""},alrtClass:{default:""}},setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("div",{id:o.$attrs.id,class:t.normalizeClass(["tw-alert",o.alrtClass]),role:"alert"},[t.renderSlot(o.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(o.text),1)],!0)],10,Wl))}}),[["__scopeId","data-v-3b868662"]]),Kl=t.defineComponent({name:"AlertSection",components:{BaseAlert:yo}});function Gl(e,o,n,a,l,i){const s=t.resolveComponent("base-alert");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(s,{"alrt-class":"tw-alert tw-alert-w-primary",text:"Operazione completata con successo"}),t.createVNode(s,{"alrt-class":"tw-alert tw-alert-w-danger",text:"Hai già utilizzato questa email"})])}const Jl=S(Kl,[["render",Gl]]),Ql=t.defineComponent({name:"BaseTooltip",inheritAttrs:!1,props:{theme:{type:Object,default(){return{color:"blue",size:"sm"}}},direction:{type:String,default:"top"},customTooltipClass:{type:String,default:""},showTooltipContentManually:{type:Boolean,default:!0}}});function Yl(e,o,n,a,l,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["base-tooltip",e.$attrs.class])},[t.renderSlot(e.$slots,"trigger",{},void 0,!0),t.createElementVNode("div",{class:t.normalizeClass(["bg-transparent",[e.theme.size,`${e.customTooltipClass?e.customTooltipClass:"tooltip-content-wrapper"}`]])},[e.showTooltipContentManually?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["tooltip-content tw-shadow-lg tw-shadow-w-primary/10",["base-tooltip-arrow",e.direction,e.theme.color,e.theme.size]])},[t.renderSlot(e.$slots,"content",{},void 0,!0)],2)):t.createCommentVNode("",!0)],2)],2)}const le=S(Ql,[["render",Yl],["__scopeId","data-v-8d29fdc0"]]),Xl={class:"tw-my-5 tw-h-full",style:{"max-height":"160px"}},Zl={class:"tw-grid tw-grid-cols-2 tw-gap-5"},er=t.createElementVNode("button",{id:"tooltip",type:"button",class:"tw-btn tw-btn-light"}," Small ",-1),tr=t.createElementVNode("button",{id:"tooltip",type:"button",class:"tw-btn tw-btn-light"}," Small ",-1),or=t.createElementVNode("button",{id:"tooltip",type:"button",class:"tw-btn tw-btn-light"}," Medium ",-1),nr=t.createElementVNode("div",{class:"tw-flex-column tw-flex tw-h-full tw-justify-evenly"},[t.createElementVNode("h5",{class:"tw-ml-10px",style:{"align-self":"flex-start"}}," Tooltip Title "),t.createElementVNode("button",{class:"tw-btn-primary tw-mr-[10px] tw-rounded-2xl tw-bg-white tw-px-[10px] tw-py-[5px] tw-text-black",style:{"align-self":"end"}}," Button ")],-1),ar=t.createElementVNode("button",{id:"tooltip",type:"button",class:"tw-btn tw-btn-light"}," Medium ",-1),sr=t.createElementVNode("div",{class:"tw-flex-column tw-flex tw-h-full tw-justify-evenly"},[t.createElementVNode("h5",{class:"tw-ml-10px",style:{"align-self":"flex-start"}}," Tooltip Title "),t.createElementVNode("button",{class:"tw-btn-primary tw-mr-[10px] tw-rounded-2xl tw-bg-white tw-px-[10px] tw-py-[5px] tw-text-black",style:{"align-self":"end"}}," Button ")],-1),lr=t.createElementVNode("button",{id:"tooltip",type:"button",class:"tw-btn tw-btn-light"}," Large ",-1),rr=t.createElementVNode("div",{class:"tw-flex-column tw-flex tw-h-full tw-justify-evenly",style:{"align-items":"flex-start","margin-left":"20px","margin-top":"10px"}},[t.createElementVNode("h5",null,"Tooltip Title"),t.createElementVNode("h6",null,"Tooltip subtitle"),t.createElementVNode("button",{class:"tw-btn-primary tw-mr-[10px] tw-rounded-2xl tw-bg-white tw-px-[10px] tw-py-[5px] tw-text-black",style:{"align-self":"end"}}," Button ")],-1),ir=t.createElementVNode("button",{id:"tooltip",type:"button",class:"tw-btn tw-btn-light"}," Large ",-1),dr=t.createElementVNode("div",{class:"tw-flex-column tw-flex tw-h-full tw-justify-evenly",style:{"align-items":"flex-start","margin-left":"20px","margin-top":"10px"}},[t.createElementVNode("h5",null,"Tooltip Title"),t.createElementVNode("h6",null,"Tooltip subtitle"),t.createElementVNode("button",{class:"tw-btn-primary tw-mr-[10px] tw-rounded-2xl tw-bg-white tw-px-[10px] tw-py-[5px] tw-text-black",style:{"align-self":"end"}}," Button ")],-1),cr=t.defineComponent({__name:"TooltipSection",setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("div",Xl,[t.createElementVNode("div",Zl,[t.createVNode(le,null,{trigger:t.withCtx(()=>[er]),content:t.withCtx(()=>[t.createTextVNode(" Text here ")]),_:1}),t.createVNode(le,{theme:{color:"white",size:"sm"}},{trigger:t.withCtx(()=>[tr]),content:t.withCtx(()=>[t.createTextVNode(" Text here ")]),_:1}),t.createVNode(le,{theme:{color:"blue",size:"md"}},{trigger:t.withCtx(()=>[or]),content:t.withCtx(()=>[nr]),_:1}),t.createVNode(le,{theme:{color:"white",size:"md"}},{trigger:t.withCtx(()=>[ar]),content:t.withCtx(()=>[sr]),_:1}),t.createVNode(le,{theme:{color:"blue",size:"lg"}},{trigger:t.withCtx(()=>[lr]),content:t.withCtx(()=>[rr]),_:1}),t.createVNode(le,{theme:{color:"white",size:"lg"}},{trigger:t.withCtx(()=>[ir]),content:t.withCtx(()=>[dr]),_:1})])]))}}),ko=e=>{const{isDropdownOpen:o,disableSpaceHandler:n}=e,a=t.ref(-1),l=t.ref(-1),i=s=>{const r="ArrowUp",d="ArrowDown",m="Enter",c="Escape",p=" ",h="PageUp",u="Home",f="PageDown",C="End";if(!o.value||![r,d,m,c,p,h,u,f,C].includes(s.key))return;const N=t.unref(e.optionsLength);if(s.key===r)a.value=a.value===0?N-1:a.value-1;else if(s.key===d)a.value=(a.value+1)%N;else if(s.key===m||s.key===p){if(s.key===p&&n)return;l.value=a.value,o.value=!1}else s.key===c?(a.value=l.value,o.value=!1):s.key===h||s.key===u?a.value=0:(s.key===f||s.key===C)&&(a.value=N-1);s.stopPropagation(),s.preventDefault()};return t.onMounted(()=>{document&&document.addEventListener("keydown",i)}),t.onUnmounted(()=>{document&&document.removeEventListener("keydown",i)}),{activeIdx:a,selectedIdx:l}},Ae=(e,{attrs:o})=>{e={...ae(),...e};const{width:n,height:a}=e;return t.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20.243 11.621",width:`${n}`,height:`${a}`,class:e.class??"","aria-hidden":o["aria-hidden"]??"true"},t.h("path",{fill:"none",stroke:`${o["stroke-color"]??"#222"}`,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":`${o["stroke-width"]??"3"}`,d:"m18.121 2.121-8 8-8-8"}))},pr=(e,{attrs:o})=>{e={...ae(),...e};const{width:n,height:a}=e;return t.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 11.175 13.409",width:`${n}`,height:`${a}`,class:e.class??"","aria-hidden":o["aria-hidden"]??"true",fill:"none",stroke:o["stroke-color"]??"#FA4F64"},[t.h("circle",{cx:6,cy:6,r:4.5}),t.h("path",{"stroke-linejoin":"round",d:"M5.8 3.6h.4L6 6.5z"}),t.h("circle",{cx:6,cy:8.2,r:.6,fill:o["stroke-color"]??"#FA4F64",stroke:"none"})])},mr=["id","innerHTML"],ur=["id","data-cy","aria-required","aria-controls","aria-labelledby","aria-expanded","aria-activedescendant","aria-invalid","aria-describedby"],hr=["innerHTML"],fr={class:"tw-inline-flex"},wr=["innerHTML"],br=["data-cy"],gr=["id","aria-selected","onClick","onMouseover"],yr={class:"tw-inline-block tw-cursor-pointer"},kr=["name","checked","onInput"],$r=["innerHTML"],Vr=["id","arial-live","innerHTML"],Cr=["id","arial-live","innerHTML"],$o=t.defineComponent({inheritAttrs:!1,__name:"AccessibleSelect",props:{label:{default:""},dropdownPosition:{default:"bottom"},namespace:{},options:{},modelValue:{default:()=>({id:"",label:""})},isValid:{type:[Boolean,null],default:null},feedback:{}},emits:["update:modelValue"],setup(e,{emit:o}){const n=e,a=t.ref(!1),l=t.ref(null),i=t.computed(()=>!!n.modelValue.label),s=o,{activeIdx:r,selectedIdx:d}=ko({optionsLength:n.options.length,isDropdownOpen:a}),m=p=>{a.value=!1,s("update:modelValue",p)};t.watch(d,p=>{m(n.options[p]),a.value=!1});const c=()=>{a.value=!1};return t.onMounted(()=>{document&&document.addEventListener("click",c)}),t.onUnmounted(()=>{document&&document.removeEventListener("click",c)}),(p,h)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",{class:t.normalizeClass(["tw-relative tw-flex tw-items-center",[p.label?"tw-h-[52px]":"tw-h-[42px]",p.$attrs.class]])},[p.label?(t.openBlock(),t.createElementBlock("label",{key:0,id:`${p.namespace}_label`,class:t.normalizeClass(["tw-absolute tw-font-medium tw-transition-all tw-ease-in-out",[i.value?"as-floating -tw-top-1 tw-left-[22px] tw-text-w-black":"as-inline tw-left-4 tw-top-4 tw-text-w-gray",p.$attrs["label-classes"]]]),innerHTML:p.label},null,10,mr)):t.createCommentVNode("",!0),t.renderSlot(p.$slots,"lefticon"),t.createElementVNode("button",{id:`${p.namespace}_btn`,ref_key:"btnEl",ref:l,type:"button","data-cy":p.$attrs["data-cy"],class:t.normalizeClass(["tw-peer tw-flex tw-h-full tw-w-full tw-items-center tw-justify-between tw-truncate tw-bg-white tw-px-4 tw-text-left focus-visible:tw-outline-0",p.$attrs["btn-classes"]]),"aria-required":!!p.$attrs.required,role:"combobox","aria-haspopup":"listbox","aria-controls":`${p.namespace}_dropdown`,"aria-labelledby":`${p.namespace}_label ${p.namespace}_btn`,"aria-expanded":a.value,"aria-activedescendant":t.unref(r)>=0&&a.value?`${p.namespace}_element_${p.options[t.unref(r)].label}`:"","aria-invalid":n.isValid===!1,"aria-describedby":n.isValid===!1?`${p.namespace}_invalid_msg`:void 0,onClick:h[0]||(h[0]=t.withModifiers(u=>a.value=!a.value,["stop"]))},[t.createElementVNode("span",{class:t.normalizeClass(p.$attrs["btn-text-classes"]),innerHTML:p.modelValue.visibleLabel||p.modelValue.label},null,10,hr),t.createElementVNode("span",fr,[n.isValid==!1?(t.openBlock(),t.createBlock(t.unref(pr),{key:0,class:"tw-mr-1",width:20,height:20})):t.createCommentVNode("",!0),t.createVNode(t.unref(Ae),{class:t.normalizeClass(["tw-transition-transform motion-reduce:tw-transition-none",a.value&&"tw-rotate-180"]),width:18,height:18,"stroke-color":p.isValid?"#2B5DFF":p.isValid===!1?"#FA4F64":"#222"},null,8,["class","stroke-color"])])],10,ur),t.createElementVNode("fieldset",{"aria-hidden":"true",class:t.normalizeClass(["tw-pointer-events-none tw-absolute -tw-top-[1px] tw-bottom-0 tw-left-0 tw-right-0 tw-cursor-pointer tw-rounded-xs tw-border tw-border-solid tw-px-2 peer-focus:tw-border-2 peer-focus:tw-border-w-primary peer-focus-visible:tw-border-2 peer-focus-visible:tw-border-w-primary peer-aria-invalid:tw-border-w-danger",[p.label?"tw-h-12":"tw-h-[42px]",p.$attrs["fieldset-classes"],p.isValid?"tw-border-w-primary":p.isValid===!1?"tw-border-w-danger":"tw-border-w-secondary"]])},[p.label?(t.openBlock(),t.createElementBlock("legend",{key:0,class:t.normalizeClass([p.$attrs["legend-classes"],"tw-ml-2 tw-h-3"])},[t.createElementVNode("span",{class:t.normalizeClass(["tw-mx-5px",p.modelValue.label?"tw-invisible":"tw-hidden"]),innerHTML:p.label},null,10,wr)],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("ul",{"data-cy":p.$attrs["data-cy"]&&`${p.$attrs["data-cy"]}_dropdown`,role:"listbox",tabindex:-1,"aria-multiselectable":!1,class:t.normalizeClass(["tw-absolute tw-z-10 tw-max-h-[225px] tw-w-full tw-min-w-full tw-overflow-y-auto tw-no-scrollbar",[{"tw-h-0 tw-w-0 tw-overflow-hidden":!a.value},{"tw-rounded-xs tw-border tw-border-solid tw-border-w-secondary tw-bg-white":a.value},{"tw-bottom-[55px]":p.dropdownPosition==="top"},{"tw-top-[55px]":p.dropdownPosition==="bottom"},p.$attrs["dropdown-classes"]]]),onClick:h[1]||(h[1]=t.withModifiers(()=>{},["stop"]))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p.options,(u,f)=>(t.openBlock(),t.createElementBlock("li",{id:`${p.namespace}_element_${p.options[f].label}`,key:`${u.label}_${f}`,role:"option","aria-selected":t.unref(r)===f,class:t.normalizeClass(["tw-m-1 tw-cursor-pointer tw-px-20px tw-py-10px aria-selected:tw-rounded-xs aria-selected:tw-bg-w-cultured",p.$attrs["dropdown-item-classes"]]),onClick:t.withModifiers(C=>m(u),["stop"]),onMouseover:t.withModifiers(C=>r.value=f,["stop"])},[t.createElementVNode("label",yr,[t.createElementVNode("input",{tabindex:"-1",class:"tw-appearance-none",name:`${p.namespace}_radio`,type:"radio",checked:u.label===p.modelValue.label,onInput:t.withModifiers(C=>m(u),["stop"])},null,40,kr),t.createElementVNode("span",{innerHTML:u.label},null,8,$r)])],42,gr))),128))],10,br)],2),p.feedback?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[p.feedback.valid?(t.openBlock(),t.createElementBlock("span",{key:0,id:`${p.namespace}_valid_msg`,"arial-live":p.$attrs["aria-live"],class:"tw-mb-2 tw-text-sm",innerHTML:p.isValid?p.feedback.valid:""},null,8,Vr)):t.createCommentVNode("",!0),p.feedback.invalid?(t.openBlock(),t.createElementBlock("span",{key:1,id:`${p.namespace}_invalid_msg`,"arial-live":p.$attrs["aria-live"],class:"tw-mb-2 tw-text-sm tw-text-w-danger",innerHTML:p.isValid===!1?p.feedback.invalid:""},null,8,Cr)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))}}),Er=["innerHTML"],mt=t.defineComponent({inheritAttrs:!1,__name:"BaseDropDown",props:{id:{default:""},dropdownClasses:{default:""},containerDropdownClasses:{default:""},iconName:{default:""},iconClasses:{default:""},btnClasses:{default:""},withArrowIcon:{type:Boolean,default:!1},btnLabel:{default:""},labelClasses:{default:""},direction:{default:"down"},arrowWidth:{default:12},isAbsolute:{type:Boolean,default:!0},openDropdown:{type:Boolean,default:!1},closeWhenClickedOutside:{type:Boolean,default:!0},dropdownElement:{default:"div"},keepState:{default:""}},emits:["click","update:dropdownState"],setup(e,{emit:o}){const n=e,a=o,l=t.ref(!1);t.watch(()=>n.openDropdown,r=>{l.value=r},{immediate:!0}),t.watch(l,r=>{a("update:dropdownState",r)});const i=()=>{l.value=!1},s=()=>{n.keepState==="closed"&&!l.value||n.keepState==="opened"&&l.value||(l.value=!l.value)};return t.onBeforeMount(()=>{n.closeWhenClickedOutside&&document&&document.body.addEventListener("click",i)}),t.onUnmounted(()=>{n.closeWhenClickedOutside&&document&&document.body.removeEventListener("click",i)}),(r,d)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["tw-relative tw-block",r.$attrs.class]),onClick:d[1]||(d[1]=t.withModifiers(m=>{a("click"),s()},["stop"]))},[t.renderSlot(r.$slots,"btn_slot",{toggleDropdown:s,isOpen:l.value},()=>[t.createVNode(G,{id:r.id,type:"button","data-cy":r.$attrs["data-cy"],class:t.normalizeClass(["!tw-flex tw-w-full tw-items-center tw-truncate",r.btnClasses]),"aria-expanded":l.value,"btn-class":"tw-btn-single-selection","icon-class":r.iconClasses,"icon-name":r.iconName},{default:t.withCtx(()=>[t.createElementVNode("span",{class:t.normalizeClass(["tw-mr-5px",r.labelClasses]),innerHTML:r.btnLabel},null,10,Er),r.withArrowIcon?(t.openBlock(),t.createBlock(t.unref(Ae),{key:0,class:t.normalizeClass(["tw-shrink-0 tw-transition-transform motion-reduce:tw-transition-none",l.value&&"tw-rotate-180"]),width:r.arrowWidth,height:r.arrowWidth,"stroke-color":r.$attrs["arrow-stroke-color"]},null,8,["class","width","height","stroke-color"])):t.createCommentVNode("",!0)]),_:1},8,["id","data-cy","class","aria-expanded","icon-class","icon-name"])]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.dropdownElement),{id:"dropdown_"+r.id,ref:"dropdown","data-cy":r.$attrs["data-cy"]&&`${r.$attrs["data-cy"]}_dropdown`,class:t.normalizeClass(["tw-max-h-[220px] tw-w-full tw-min-w-[90px] tw-flex-col tw-overflow-y-auto tw-border tw-border-solid tw-border-w-lavender tw-bg-white tw-opacity-100 tw-shadow tw-no-scrollbar",[r.dropdownClasses,l.value?"tw-flex":"tw-hidden",{"tw-bottom-[55px] tw-rounded-xs":r.direction==="up"},{"tw-rounded-b tw-border-t-0":r.direction==="down"},{"tw-absolute":r.isAbsolute}]]),onClick:d[0]||(d[0]=t.withModifiers(()=>{},["stop"]))},{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default",{isOpen:l.value})]),_:3},8,["id","data-cy","class"]))],2))}}),Nr=t.defineComponent({name:"DropdownSection",components:{AccessibleSelect:$o,BaseDropDown:mt},data(){return{firstSelectValue:{id:1,label:""},secondSelectValue:{id:2,label:""},thirdSelectValue:{id:3,label:""},fourthSelectValue:{id:4,label:""},fifthSelectValue:{id:5,label:""},accessibleSelectValue:{id:1,label:"secondOption"},accessibleSelectValue2:{id:1,label:""},accessibleSelectValue3:{id:1,label:""}}}}),_r={class:"tw-h-full",style:{"max-height":"500px"}},Sr=t.createElementVNode("h4",{class:"tw-my-5"},"Dropdown - regular",-1),Br={class:"tw-grid tw-grid-cols-2 tw-gap-5"},xr={class:"tw-mt-10px"},Tr=t.createElementVNode("h5",null,"Dropdown - With label, dropdown down",-1),Or={class:"tw-mt-10px"},Lr=t.createElementVNode("h5",{class:"tw-mb-10px"},"Dropdown - No label, dropdown up",-1),Ar={class:"tw-mt-10px"},Mr={class:"tw-mt-10px"},Ir={class:"tw-mt-10px"},Rr={class:"tw-mt-10px"},Pr=t.createElementVNode("ul",{class:"tw-z-10 tw-bg-white"},[t.createElementVNode("li",{class:"tw-py-15px tw-ps-25px hover:tw-cursor-pointer hover:tw-bg-w-cultured"},[t.createElementVNode("p",{class:"tw-m-0"},"Primo")]),t.createElementVNode("li",{class:"tw-py-15px tw-ps-25px hover:tw-cursor-pointer hover:tw-bg-w-cultured"},[t.createElementVNode("p",{class:"tw-m-0"},"Secondo")]),t.createElementVNode("li",{class:"tw-py-15px tw-ps-25px hover:tw-cursor-pointer hover:tw-bg-w-cultured"},[t.createElementVNode("p",{class:"tw-m-0"},"Terzo")])],-1),vr=t.createElementVNode("h4",{class:"tw-mt-5"},"Dropdown - error",-1),Dr=t.createElementVNode("h4",{class:"tw-mt-5"},"Dropdown - success",-1),zr=t.createElementVNode("h4",{class:"tw-mt-5"},"Dropdown - required",-1);function jr(e,o,n,a,l,i){const s=t.resolveComponent("accessible-select"),r=t.resolveComponent("base-drop-down");return t.openBlock(),t.createElementBlock("div",_r,[Sr,t.createElementVNode("div",Br,[t.createElementVNode("div",xr,[Tr,t.createVNode(s,{modelValue:e.firstSelectValue,"onUpdate:modelValue":o[0]||(o[0]=d=>e.firstSelectValue=d),namespace:"first-select",label:"Label",options:[{label:"firstOption"},{label:"secondOption"},{label:"thirdOption"}]},null,8,["modelValue"])]),t.createElementVNode("div",Or,[Lr,t.createVNode(s,{modelValue:e.secondSelectValue,"onUpdate:modelValue":o[1]||(o[1]=d=>e.secondSelectValue=d),namespace:"secondSelect","dropdown-position":"top",options:[{label:"firstOption"},{label:"secondOption"},{label:"thirdOption"}]},null,8,["modelValue"])]),t.createElementVNode("div",Ar,[t.createVNode(s,{modelValue:e.accessibleSelectValue,"onUpdate:modelValue":o[2]||(o[2]=d=>e.accessibleSelectValue=d),label:"Trial",namespace:"acc_select",options:[{id:1,label:"firstOption"},{id:2,label:"secondOption"},{id:3,label:"thirdOption"}]},null,8,["modelValue"])]),t.createElementVNode("div",Mr,[t.createVNode(s,{modelValue:e.accessibleSelectValue2,"onUpdate:modelValue":o[3]||(o[3]=d=>e.accessibleSelectValue2=d),"dropdown-position":"top",label:"Trial",namespace:"acc_select",options:[{id:1,label:"firstOption"},{id:2,label:"secondOption"},{id:3,label:"thirdOption"}]},null,8,["modelValue"])]),t.createElementVNode("div",Ir,[t.createVNode(s,{modelValue:e.accessibleSelectValue3,"onUpdate:modelValue":o[4]||(o[4]=d=>e.accessibleSelectValue3=d),namespace:"acc_select",options:[{id:1,label:"firstOption"},{id:2,label:"secondOption"},{id:3,label:"thirdOption"}]},null,8,["modelValue"])]),t.createElementVNode("div",Rr,[t.createVNode(r,{"btn-label":"Touch me"},{default:t.withCtx(()=>[Pr]),_:1})])]),vr,t.createVNode(s,{modelValue:e.thirdSelectValue,"onUpdate:modelValue":o[5]||(o[5]=d=>e.thirdSelectValue=d),namespace:"thirdSelect",label:"Label","is-valid":!1,options:[{label:"firstOption"},{label:"secondOption"},{label:"thirdOption"}]},null,8,["modelValue"]),Dr,t.createVNode(s,{modelValue:e.fourthSelectValue,"onUpdate:modelValue":o[6]||(o[6]=d=>e.fourthSelectValue=d),namespace:"fourthSelect",label:"Label","is-valid":!0,options:[{label:"firstOption"},{label:"secondOption"},{label:"thirdOption"}]},null,8,["modelValue"]),zr,t.createVNode(s,{modelValue:e.fifthSelectValue,"onUpdate:modelValue":o[7]||(o[7]=d=>e.fifthSelectValue=d),namespace:"fifthSelect",label:"Label",required:"required",options:[{label:"firstOption"},{label:"secondOption"},{label:"thirdOption"}]},null,8,["modelValue"])])}const Fr=S(Nr,[["render",jr]]),Ur=t.defineComponent({name:"RadioButton",inheritAttrs:!1,props:{label:{type:[String,Boolean],required:!0},isChecked:{type:Boolean}},emits:["change"],methods:{emitChange(){this.$emit("change",{id:this.$attrs.id,label:this.label,name:this.$attrs.name})},handleClick(){const e=this.$refs.checkbox;e.checked=!e.checked,this.emitChange()},handleOnInput(){this.emitChange()}}}),Hr=["id","value","name","checked"],qr=["for"];function Wr(e,o,n,a,l,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([e.$attrs.class,"tw-mb-4 tw-mr-4 tw-inline-block"]),onClick:o[1]||(o[1]=t.withModifiers((...s)=>e.handleClick&&e.handleClick(...s),["stop"]))},[t.createElementVNode("input",{id:e.$attrs.id,ref:"checkbox",type:"radio",class:"tw-hidden",value:e.label,name:e.$attrs.name,checked:e.isChecked,onChange:o[0]||(o[0]=t.withModifiers((...s)=>e.handleOnInput&&e.handleOnInput(...s),["stop"]))},null,40,Hr),t.createElementVNode("label",{class:t.normalizeClass([e.$attrs["label-classes"],"tw-flex tw-cursor-pointer tw-items-center"]),for:e.$attrs.id},[t.createElementVNode("span",{class:t.normalizeClass(["tw-flex-no-shrink tw-mr-2 tw-inline-block tw-h-4 tw-w-4 tw-transform tw-rounded-full tw-border tw-border-solid tw-border-w-secondary tw-transition-colors tw-duration-200",{"tw-border-w-primary tw-bg-w-primary tw-shadow-[0_0_0_2px_white_inset]":e.isChecked}])},null,2),t.createTextVNode(" "+t.toDisplayString(e.label),1)],10,qr)],2)}const Vo=S(Ur,[["render",Wr]]),Kr=t.defineComponent({name:"RadioGroup",components:{RadioButton:Vo},inheritAttrs:!1,props:{initialValue:{type:Object},radioValues:{type:Array},resetRadio:{type:Boolean,default:!1}},emits:["resetted","update:modelValue"],data(){return{selectedValue:null}},watch:{resetRadio(e){e&&(this.reset(),this.$emit("resetted"))}},created(){this.initialValue&&this.handleChange(this.initialValue)},methods:{handleChange(e){this.selectedValue=e,this.$emit("update:modelValue",e)},reset(){this.selectedValue=null},isActive(e){return this.selectedValue?this.selectedValue.id===e.id:!1}}}),Gr=["data-cy"];function Jr(e,o,n,a,l,i){const s=t.resolveComponent("radio-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["radio-group-container",e.$attrs.class||""]),"data-cy":e.$attrs["data-cy"]||""},[t.renderSlot(e.$slots,"radio_element",{handleClick:e.handleChange,activeValue:e.selectedValue,reset:e.reset,isActive:e.isActive},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.radioValues,(r,d)=>{var m;return t.openBlock(),t.createBlock(s,{id:r.id,key:d,label:`${r.label}`,"is-checked":r.label===((m=e.selectedValue)==null?void 0:m.label),onChange:e.handleChange},null,8,["id","label","is-checked","onChange"])}),128))])],10,Gr)}const Co=S(Kr,[["render",Jr]]),Qr=t.defineComponent({name:"RadioSection",components:{RadioGroup:Co,BaseButton:G},data(){return{radioGroupValue:"",radioSlotValue:{},elems:[{id:"first",label:"One"},{id:"second",label:"Two"},{id:"third",label:"Three"}]}}}),Yr={class:"tw-h-full",style:{"max-height":"200px"}},Xr=t.createElementVNode("h4",{class:"tw-my-5"},"Radio",-1),Zr=t.createElementVNode("h4",{class:"tw-mb-5"},"Radio with slots",-1);function ei(e,o,n,a,l,i){const s=t.resolveComponent("radio-group"),r=t.resolveComponent("base-button");return t.openBlock(),t.createElementBlock("div",Yr,[Xr,t.createVNode(s,{modelValue:e.radioGroupValue,"onUpdate:modelValue":o[0]||(o[0]=d=>e.radioGroupValue=d),"radio-values":[{id:"first",label:"s1"},{id:"second",label:"s2"},{id:"third",label:"s3"}]},null,8,["modelValue"]),Zr,t.createVNode(s,{modelValue:e.radioSlotValue,"onUpdate:modelValue":o[1]||(o[1]=d=>e.radioSlotValue=d)},{radio_element:t.withCtx(({handleClick:d,activeValue:m})=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.elems,(c,p)=>(t.openBlock(),t.createBlock(r,{key:p,"btn-class":"tw-btn-multi-selection tw-mr-10px","keep-active":(m==null?void 0:m.label)===c.label,onClick:h=>d({id:c.id,label:c.label})},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["keep-active","onClick"]))),128))]),_:1},8,["modelValue"])])}const ti=S(Qr,[["render",ei]]);function Eo(e,o){return function(){return e.apply(o,arguments)}}const{toString:oi}=Object.prototype,{getPrototypeOf:ut}=Object,Me=(e=>o=>{const n=oi.call(o);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),J=e=>(e=e.toLowerCase(),o=>Me(o)===e),Ie=e=>o=>typeof o===e,{isArray:pe}=Array,ke=Ie("undefined");function ni(e){return e!==null&&!ke(e)&&e.constructor!==null&&!ke(e.constructor)&&W(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const No=J("ArrayBuffer");function ai(e){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(e):o=e&&e.buffer&&No(e.buffer),o}const si=Ie("string"),W=Ie("function"),_o=Ie("number"),Re=e=>e!==null&&typeof e=="object",li=e=>e===!0||e===!1,Pe=e=>{if(Me(e)!=="object")return!1;const o=ut(e);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ri=J("Date"),ii=J("File"),di=J("Blob"),ci=J("FileList"),pi=e=>Re(e)&&W(e.pipe),mi=e=>{let o;return e&&(typeof FormData=="function"&&e instanceof FormData||W(e.append)&&((o=Me(e))==="formdata"||o==="object"&&W(e.toString)&&e.toString()==="[object FormData]"))},ui=J("URLSearchParams"),hi=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function $e(e,o,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let a,l;if(typeof e!="object"&&(e=[e]),pe(e))for(a=0,l=e.length;a<l;a++)o.call(null,e[a],a,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let r;for(a=0;a<s;a++)r=i[a],o.call(null,e[r],r,e)}}function So(e,o){o=o.toLowerCase();const n=Object.keys(e);let a=n.length,l;for(;a-- >0;)if(l=n[a],o===l.toLowerCase())return l;return null}const Bo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,xo=e=>!ke(e)&&e!==Bo;function ht(){const{caseless:e}=xo(this)&&this||{},o={},n=(a,l)=>{const i=e&&So(o,l)||l;Pe(o[i])&&Pe(a)?o[i]=ht(o[i],a):Pe(a)?o[i]=ht({},a):pe(a)?o[i]=a.slice():o[i]=a};for(let a=0,l=arguments.length;a<l;a++)arguments[a]&&$e(arguments[a],n);return o}const fi=(e,o,n,{allOwnKeys:a}={})=>($e(o,(l,i)=>{n&&W(l)?e[i]=Eo(l,n):e[i]=l},{allOwnKeys:a}),e),wi=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),bi=(e,o,n,a)=>{e.prototype=Object.create(o.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:o.prototype}),n&&Object.assign(e.prototype,n)},gi=(e,o,n,a)=>{let l,i,s;const r={};if(o=o||{},e==null)return o;do{for(l=Object.getOwnPropertyNames(e),i=l.length;i-- >0;)s=l[i],(!a||a(s,e,o))&&!r[s]&&(o[s]=e[s],r[s]=!0);e=n!==!1&&ut(e)}while(e&&(!n||n(e,o))&&e!==Object.prototype);return o},yi=(e,o,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=o.length;const a=e.indexOf(o,n);return a!==-1&&a===n},ki=e=>{if(!e)return null;if(pe(e))return e;let o=e.length;if(!_o(o))return null;const n=new Array(o);for(;o-- >0;)n[o]=e[o];return n},$i=(e=>o=>e&&o instanceof e)(typeof Uint8Array<"u"&&ut(Uint8Array)),Vi=(e,o)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const l=a.value;o.call(e,l[0],l[1])}},Ci=(e,o)=>{let n;const a=[];for(;(n=e.exec(o))!==null;)a.push(n);return a},Ei=J("HTMLFormElement"),Ni=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,n,a){return n.toUpperCase()+a}),To=(({hasOwnProperty:e})=>(o,n)=>e.call(o,n))(Object.prototype),_i=J("RegExp"),Oo=(e,o)=>{const n=Object.getOwnPropertyDescriptors(e),a={};$e(n,(l,i)=>{o(l,i,e)!==!1&&(a[i]=l)}),Object.defineProperties(e,a)},Si=e=>{Oo(e,(o,n)=>{if(W(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const a=e[n];if(W(a)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Bi=(e,o)=>{const n={},a=l=>{l.forEach(i=>{n[i]=!0})};return pe(e)?a(e):a(String(e).split(o)),n},xi=()=>{},Ti=(e,o)=>(e=+e,Number.isFinite(e)?e:o),ft="abcdefghijklmnopqrstuvwxyz",Lo="0123456789",Ao={DIGIT:Lo,ALPHA:ft,ALPHA_DIGIT:ft+ft.toUpperCase()+Lo},Oi=(e=16,o=Ao.ALPHA_DIGIT)=>{let n="";const{length:a}=o;for(;e--;)n+=o[Math.random()*a|0];return n};function Li(e){return!!(e&&W(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ai=e=>{const o=new Array(10),n=(a,l)=>{if(Re(a)){if(o.indexOf(a)>=0)return;if(!("toJSON"in a)){o[l]=a;const i=pe(a)?[]:{};return $e(a,(s,r)=>{const d=n(s,l+1);!ke(d)&&(i[r]=d)}),o[l]=void 0,i}}return a};return n(e,0)},Mi=J("AsyncFunction"),Ii=e=>e&&(Re(e)||W(e))&&W(e.then)&&W(e.catch),b={isArray:pe,isArrayBuffer:No,isBuffer:ni,isFormData:mi,isArrayBufferView:ai,isString:si,isNumber:_o,isBoolean:li,isObject:Re,isPlainObject:Pe,isUndefined:ke,isDate:ri,isFile:ii,isBlob:di,isRegExp:_i,isFunction:W,isStream:pi,isURLSearchParams:ui,isTypedArray:$i,isFileList:ci,forEach:$e,merge:ht,extend:fi,trim:hi,stripBOM:wi,inherits:bi,toFlatObject:gi,kindOf:Me,kindOfTest:J,endsWith:yi,toArray:ki,forEachEntry:Vi,matchAll:Ci,isHTMLForm:Ei,hasOwnProperty:To,hasOwnProp:To,reduceDescriptors:Oo,freezeMethods:Si,toObjectSet:Bi,toCamelCase:Ni,noop:xi,toFiniteNumber:Ti,findKey:So,global:Bo,isContextDefined:xo,ALPHABET:Ao,generateString:Oi,isSpecCompliantForm:Li,toJSONObject:Ai,isAsyncFn:Mi,isThenable:Ii};function T(e,o,n,a,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",o&&(this.code=o),n&&(this.config=n),a&&(this.request=a),l&&(this.response=l)}b.inherits(T,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:b.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Mo=T.prototype,Io={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Io[e]={value:e}}),Object.defineProperties(T,Io),Object.defineProperty(Mo,"isAxiosError",{value:!0}),T.from=(e,o,n,a,l,i)=>{const s=Object.create(Mo);return b.toFlatObject(e,s,function(r){return r!==Error.prototype},r=>r!=="isAxiosError"),T.call(s,e.message,o,n,a,l),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Ri=null;function wt(e){return b.isPlainObject(e)||b.isArray(e)}function Ro(e){return b.endsWith(e,"[]")?e.slice(0,-2):e}function Po(e,o,n){return e?e.concat(o).map(function(a,l){return a=Ro(a),!n&&l?"["+a+"]":a}).join(n?".":""):o}function Pi(e){return b.isArray(e)&&!e.some(wt)}const vi=b.toFlatObject(b,{},null,function(e){return/^is[A-Z]/.test(e)});function ve(e,o,n){if(!b.isObject(e))throw new TypeError("target must be an object");o=o||new FormData,n=b.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(u,f){return!b.isUndefined(f[u])});const a=n.metaTokens,l=n.visitor||m,i=n.dots,s=n.indexes,r=(n.Blob||typeof Blob<"u"&&Blob)&&b.isSpecCompliantForm(o);if(!b.isFunction(l))throw new TypeError("visitor must be a function");function d(u){if(u===null)return"";if(b.isDate(u))return u.toISOString();if(!r&&b.isBlob(u))throw new T("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(u)||b.isTypedArray(u)?r&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function m(u,f,C){let N=u;if(u&&!C&&typeof u=="object"){if(b.endsWith(f,"{}"))f=a?f:f.slice(0,-2),u=JSON.stringify(u);else if(b.isArray(u)&&Pi(u)||(b.isFileList(u)||b.endsWith(f,"[]"))&&(N=b.toArray(u)))return f=Ro(f),N.forEach(function(V,E){!(b.isUndefined(V)||V===null)&&o.append(s===!0?Po([f],E,i):s===null?f:f+"[]",d(V))}),!1}return wt(u)?!0:(o.append(Po(C,f,i),d(u)),!1)}const c=[],p=Object.assign(vi,{defaultVisitor:m,convertValue:d,isVisitable:wt});function h(u,f){if(!b.isUndefined(u)){if(c.indexOf(u)!==-1)throw Error("Circular reference detected in "+f.join("."));c.push(u),b.forEach(u,function(C,N){(!(b.isUndefined(C)||C===null)&&l.call(o,C,b.isString(N)?N.trim():N,f,p))===!0&&h(C,f?f.concat(N):[N])}),c.pop()}}if(!b.isObject(e))throw new TypeError("data must be an object");return h(e),o}function vo(e){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return o[n]})}function bt(e,o){this._pairs=[],e&&ve(e,this,o)}const Do=bt.prototype;Do.append=function(e,o){this._pairs.push([e,o])},Do.toString=function(e){const o=e?function(n){return e.call(this,n,vo)}:vo;return this._pairs.map(function(n){return o(n[0])+"="+o(n[1])},"").join("&")};function Di(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function zo(e,o,n){if(!o)return e;const a=n&&n.encode||Di,l=n&&n.serialize;let i;if(l?i=l(o,n):i=b.isURLSearchParams(o)?o.toString():new bt(o,n).toString(a),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class zi{constructor(){this.handlers=[]}use(o,n,a){return this.handlers.push({fulfilled:o,rejected:n,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(o){this.handlers[o]&&(this.handlers[o]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(o){b.forEach(this.handlers,function(n){n!==null&&o(n)})}}const jo=zi,Fo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ji=typeof URLSearchParams<"u"?URLSearchParams:bt,Fi=typeof FormData<"u"?FormData:null,Ui=typeof Blob<"u"?Blob:null,Hi=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),qi=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Q={isBrowser:!0,classes:{URLSearchParams:ji,FormData:Fi,Blob:Ui},isStandardBrowserEnv:Hi,isStandardBrowserWebWorkerEnv:qi,protocols:["http","https","file","blob","url","data"]};function Wi(e,o){return ve(e,new Q.classes.URLSearchParams,Object.assign({visitor:function(n,a,l,i){return Q.isNode&&b.isBuffer(n)?(this.append(a,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},o))}function Ki(e){return b.matchAll(/\w+|\[(\w*)]/g,e).map(o=>o[0]==="[]"?"":o[1]||o[0])}function Gi(e){const o={},n=Object.keys(e);let a;const l=n.length;let i;for(a=0;a<l;a++)i=n[a],o[i]=e[i];return o}function Uo(e){function o(n,a,l,i){let s=n[i++];const r=Number.isFinite(+s),d=i>=n.length;return s=!s&&b.isArray(l)?l.length:s,d?(b.hasOwnProp(l,s)?l[s]=[l[s],a]:l[s]=a,!r):((!l[s]||!b.isObject(l[s]))&&(l[s]=[]),o(n,a,l[s],i)&&b.isArray(l[s])&&(l[s]=Gi(l[s])),!r)}if(b.isFormData(e)&&b.isFunction(e.entries)){const n={};return b.forEachEntry(e,(a,l)=>{o(Ki(a),l,n,0)}),n}return null}const Ji={"Content-Type":void 0};function Qi(e,o,n){if(b.isString(e))try{return(o||JSON.parse)(e),b.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(n||JSON.stringify)(e)}const De={transitional:Fo,adapter:["xhr","http"],transformRequest:[function(e,o){const n=o.getContentType()||"",a=n.indexOf("application/json")>-1,l=b.isObject(e);if(l&&b.isHTMLForm(e)&&(e=new FormData(e)),b.isFormData(e))return a&&a?JSON.stringify(Uo(e)):e;if(b.isArrayBuffer(e)||b.isBuffer(e)||b.isStream(e)||b.isFile(e)||b.isBlob(e))return e;if(b.isArrayBufferView(e))return e.buffer;if(b.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(l){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Wi(e,this.formSerializer).toString();if((i=b.isFileList(e))||n.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return ve(i?{"files[]":e}:e,s&&new s,this.formSerializer)}}return l||a?(o.setContentType("application/json",!1),Qi(e)):e}],transformResponse:[function(e){const o=this.transitional||De.transitional,n=o&&o.forcedJSONParsing,a=this.responseType==="json";if(e&&b.isString(e)&&(n&&!this.responseType||a)){const l=!(o&&o.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(i){if(l)throw i.name==="SyntaxError"?T.from(i,T.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Q.classes.FormData,Blob:Q.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};b.forEach(["delete","get","head"],function(e){De.headers[e]={}}),b.forEach(["post","put","patch"],function(e){De.headers[e]=b.merge(Ji)});const gt=De,Yi=b.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Xi=e=>{const o={};let n,a,l;return e&&e.split(`
24
- `).forEach(function(i){l=i.indexOf(":"),n=i.substring(0,l).trim().toLowerCase(),a=i.substring(l+1).trim(),!(!n||o[n]&&Yi[n])&&(n==="set-cookie"?o[n]?o[n].push(a):o[n]=[a]:o[n]=o[n]?o[n]+", "+a:a)}),o},Ho=Symbol("internals");function Ve(e){return e&&String(e).trim().toLowerCase()}function ze(e){return e===!1||e==null?e:b.isArray(e)?e.map(ze):String(e)}function Zi(e){const o=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)o[a[1]]=a[2];return o}const ed=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function yt(e,o,n,a,l){if(b.isFunction(a))return a.call(this,o,n);if(l&&(o=n),!!b.isString(o)){if(b.isString(a))return o.indexOf(a)!==-1;if(b.isRegExp(a))return a.test(o)}}function td(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,n,a)=>n.toUpperCase()+a)}function od(e,o){const n=b.toCamelCase(" "+o);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{value:function(l,i,s){return this[a].call(this,o,l,i,s)},configurable:!0})})}class je{constructor(o){o&&this.set(o)}set(o,n,a){const l=this;function i(r,d,m){const c=Ve(d);if(!c)throw new Error("header name must be a non-empty string");const p=b.findKey(l,c);(!p||l[p]===void 0||m===!0||m===void 0&&l[p]!==!1)&&(l[p||d]=ze(r))}const s=(r,d)=>b.forEach(r,(m,c)=>i(m,c,d));return b.isPlainObject(o)||o instanceof this.constructor?s(o,n):b.isString(o)&&(o=o.trim())&&!ed(o)?s(Xi(o),n):o!=null&&i(n,o,a),this}get(o,n){if(o=Ve(o),o){const a=b.findKey(this,o);if(a){const l=this[a];if(!n)return l;if(n===!0)return Zi(l);if(b.isFunction(n))return n.call(this,l,a);if(b.isRegExp(n))return n.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(o,n){if(o=Ve(o),o){const a=b.findKey(this,o);return!!(a&&this[a]!==void 0&&(!n||yt(this,this[a],a,n)))}return!1}delete(o,n){const a=this;let l=!1;function i(s){if(s=Ve(s),s){const r=b.findKey(a,s);r&&(!n||yt(a,a[r],r,n))&&(delete a[r],l=!0)}}return b.isArray(o)?o.forEach(i):i(o),l}clear(o){const n=Object.keys(this);let a=n.length,l=!1;for(;a--;){const i=n[a];(!o||yt(this,this[i],i,o,!0))&&(delete this[i],l=!0)}return l}normalize(o){const n=this,a={};return b.forEach(this,(l,i)=>{const s=b.findKey(a,i);if(s){n[s]=ze(l),delete n[i];return}const r=o?td(i):String(i).trim();r!==i&&delete n[i],n[r]=ze(l),a[r]=!0}),this}concat(...o){return this.constructor.concat(this,...o)}toJSON(o){const n=Object.create(null);return b.forEach(this,(a,l)=>{a!=null&&a!==!1&&(n[l]=o&&b.isArray(a)?a.join(", "):a)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([o,n])=>o+": "+n).join(`
25
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(o){return o instanceof this?o:new this(o)}static concat(o,...n){const a=new this(o);return n.forEach(l=>a.set(l)),a}static accessor(o){const n=(this[Ho]=this[Ho]={accessors:{}}).accessors,a=this.prototype;function l(i){const s=Ve(i);n[s]||(od(a,i),n[s]=!0)}return b.isArray(o)?o.forEach(l):l(o),this}}je.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),b.freezeMethods(je.prototype),b.freezeMethods(je);const ee=je;function kt(e,o){const n=this||gt,a=o||n,l=ee.from(a.headers);let i=a.data;return b.forEach(e,function(s){i=s.call(n,i,l.normalize(),o?o.status:void 0)}),l.normalize(),i}function qo(e){return!!(e&&e.__CANCEL__)}function Ce(e,o,n){T.call(this,e??"canceled",T.ERR_CANCELED,o,n),this.name="CanceledError"}b.inherits(Ce,T,{__CANCEL__:!0});function nd(e,o,n){const a=n.config.validateStatus;!n.status||!a||a(n.status)?e(n):o(new T("Request failed with status code "+n.status,[T.ERR_BAD_REQUEST,T.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const ad=Q.isStandardBrowserEnv?function(){return{write:function(e,o,n,a,l,i){const s=[];s.push(e+"="+encodeURIComponent(o)),b.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),b.isString(a)&&s.push("path="+a),b.isString(l)&&s.push("domain="+l),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){const o=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function sd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ld(e,o){return o?e.replace(/\/+$/,"")+"/"+o.replace(/^\/+/,""):e}function Wo(e,o){return e&&!sd(o)?ld(e,o):o}const rd=Q.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");let n;function a(l){let i=l;return e&&(o.setAttribute("href",i),i=o.href),o.setAttribute("href",i),{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 n=a(window.location.href),function(l){const i=b.isString(l)?a(l):l;return i.protocol===n.protocol&&i.host===n.host}}():function(){return function(){return!0}}();function id(e){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return o&&o[1]||""}function dd(e,o){e=e||10;const n=new Array(e),a=new Array(e);let l=0,i=0,s;return o=o!==void 0?o:1e3,function(r){const d=Date.now(),m=a[i];s||(s=d),n[l]=r,a[l]=d;let c=i,p=0;for(;c!==l;)p+=n[c++],c=c%e;if(l=(l+1)%e,l===i&&(i=(i+1)%e),d-s<o)return;const h=m&&d-m;return h?Math.round(p*1e3/h):void 0}}function Ko(e,o){let n=0;const a=dd(50,250);return l=>{const i=l.loaded,s=l.lengthComputable?l.total:void 0,r=i-n,d=a(r),m=i<=s;n=i;const c={loaded:i,total:s,progress:s?i/s:void 0,bytes:r,rate:d||void 0,estimated:d&&s&&m?(s-i)/d:void 0,event:l};c[o?"download":"upload"]=!0,e(c)}}const cd=typeof XMLHttpRequest<"u",pd=cd&&function(e){return new Promise(function(o,n){let a=e.data;const l=ee.from(e.headers).normalize(),i=e.responseType;let s;function r(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}b.isFormData(a)&&(Q.isStandardBrowserEnv||Q.isStandardBrowserWebWorkerEnv?l.setContentType(!1):l.setContentType("multipart/form-data;",!1));let d=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";l.set("Authorization","Basic "+btoa(h+":"+u))}const m=Wo(e.baseURL,e.url);d.open(e.method.toUpperCase(),zo(m,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function c(){if(!d)return;const h=ee.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),u={data:!i||i==="text"||i==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:h,config:e,request:d};nd(function(f){o(f),r()},function(f){n(f),r()},u),d=null}if("onloadend"in d?d.onloadend=c:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(c)},d.onabort=function(){d&&(n(new T("Request aborted",T.ECONNABORTED,e,d)),d=null)},d.onerror=function(){n(new T("Network Error",T.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let h=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const u=e.transitional||Fo;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),n(new T(h,u.clarifyTimeoutError?T.ETIMEDOUT:T.ECONNABORTED,e,d)),d=null},Q.isStandardBrowserEnv){const h=(e.withCredentials||rd(m))&&e.xsrfCookieName&&ad.read(e.xsrfCookieName);h&&l.set(e.xsrfHeaderName,h)}a===void 0&&l.setContentType(null),"setRequestHeader"in d&&b.forEach(l.toJSON(),function(h,u){d.setRequestHeader(u,h)}),b.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),i&&i!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",Ko(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Ko(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=h=>{d&&(n(!h||h.type?new Ce(null,e,d):h),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const p=id(m);if(p&&Q.protocols.indexOf(p)===-1){n(new T("Unsupported protocol "+p+":",T.ERR_BAD_REQUEST,e));return}d.send(a||null)})},Fe={http:Ri,xhr:pd};b.forEach(Fe,(e,o)=>{if(e){try{Object.defineProperty(e,"name",{value:o})}catch{}Object.defineProperty(e,"adapterName",{value:o})}});const md={getAdapter:e=>{e=b.isArray(e)?e:[e];const{length:o}=e;let n,a;for(let l=0;l<o&&(n=e[l],!(a=b.isString(n)?Fe[n.toLowerCase()]:n));l++);if(!a)throw a===!1?new T(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(b.hasOwnProp(Fe,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!b.isFunction(a))throw new TypeError("adapter is not a function");return a},adapters:Fe};function $t(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ce(null,e)}function Go(e){return $t(e),e.headers=ee.from(e.headers),e.data=kt.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),md.getAdapter(e.adapter||gt.adapter)(e).then(function(o){return $t(e),o.data=kt.call(e,e.transformResponse,o),o.headers=ee.from(o.headers),o},function(o){return qo(o)||($t(e),o&&o.response&&(o.response.data=kt.call(e,e.transformResponse,o.response),o.response.headers=ee.from(o.response.headers))),Promise.reject(o)})}const Jo=e=>e instanceof ee?e.toJSON():e;function me(e,o){o=o||{};const n={};function a(m,c,p){return b.isPlainObject(m)&&b.isPlainObject(c)?b.merge.call({caseless:p},m,c):b.isPlainObject(c)?b.merge({},c):b.isArray(c)?c.slice():c}function l(m,c,p){if(b.isUndefined(c)){if(!b.isUndefined(m))return a(void 0,m,p)}else return a(m,c,p)}function i(m,c){if(!b.isUndefined(c))return a(void 0,c)}function s(m,c){if(b.isUndefined(c)){if(!b.isUndefined(m))return a(void 0,m)}else return a(void 0,c)}function r(m,c,p){if(p in o)return a(m,c);if(p in e)return a(void 0,m)}const d={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:r,headers:(m,c)=>l(Jo(m),Jo(c),!0)};return b.forEach(Object.keys(Object.assign({},e,o)),function(m){const c=d[m]||l,p=c(e[m],o[m],m);b.isUndefined(p)&&c!==r||(n[m]=p)}),n}const Qo="1.4.0",Vt={};["object","boolean","number","function","string","symbol"].forEach((e,o)=>{Vt[e]=function(n){return typeof n===e||"a"+(o<1?"n ":" ")+e}});const Yo={};Vt.transitional=function(e,o,n){function a(l,i){return"[Axios v"+Qo+"] Transitional option '"+l+"'"+i+(n?". "+n:"")}return(l,i,s)=>{if(e===!1)throw new T(a(i," has been removed"+(o?" in "+o:"")),T.ERR_DEPRECATED);return o&&!Yo[i]&&(Yo[i]=!0,console.warn(a(i," has been deprecated since v"+o+" and will be removed in the near future"))),e?e(l,i,s):!0}};function ud(e,o,n){if(typeof e!="object")throw new T("options must be an object",T.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let l=a.length;for(;l-- >0;){const i=a[l],s=o[i];if(s){const r=e[i],d=r===void 0||s(r,i,e);if(d!==!0)throw new T("option "+i+" must be "+d,T.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new T("Unknown option "+i,T.ERR_BAD_OPTION)}}const Ct={assertOptions:ud,validators:Vt},se=Ct.validators;class Ue{constructor(o){this.defaults=o,this.interceptors={request:new jo,response:new jo}}request(o,n){typeof o=="string"?(n=n||{},n.url=o):n=o||{},n=me(this.defaults,n);const{transitional:a,paramsSerializer:l,headers:i}=n;a!==void 0&&Ct.assertOptions(a,{silentJSONParsing:se.transitional(se.boolean),forcedJSONParsing:se.transitional(se.boolean),clarifyTimeoutError:se.transitional(se.boolean)},!1),l!=null&&(b.isFunction(l)?n.paramsSerializer={serialize:l}:Ct.assertOptions(l,{encode:se.function,serialize:se.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s;s=i&&b.merge(i.common,i[n.method]),s&&b.forEach(["delete","get","head","post","put","patch","common"],f=>{delete i[f]}),n.headers=ee.concat(s,i);const r=[];let d=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(d=d&&f.synchronous,r.unshift(f.fulfilled,f.rejected))});const m=[];this.interceptors.response.forEach(function(f){m.push(f.fulfilled,f.rejected)});let c,p=0,h;if(!d){const f=[Go.bind(this),void 0];for(f.unshift.apply(f,r),f.push.apply(f,m),h=f.length,c=Promise.resolve(n);p<h;)c=c.then(f[p++],f[p++]);return c}h=r.length;let u=n;for(p=0;p<h;){const f=r[p++],C=r[p++];try{u=f(u)}catch(N){C.call(this,N);break}}try{c=Go.call(this,u)}catch(f){return Promise.reject(f)}for(p=0,h=m.length;p<h;)c=c.then(m[p++],m[p++]);return c}getUri(o){o=me(this.defaults,o);const n=Wo(o.baseURL,o.url);return zo(n,o.params,o.paramsSerializer)}}b.forEach(["delete","get","head","options"],function(e){Ue.prototype[e]=function(o,n){return this.request(me(n||{},{method:e,url:o,data:(n||{}).data}))}}),b.forEach(["post","put","patch"],function(e){function o(n){return function(a,l,i){return this.request(me(i||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:l}))}}Ue.prototype[e]=o(),Ue.prototype[e+"Form"]=o(!0)});const He=Ue;class Et{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const a=this;this.promise.then(l=>{if(!a._listeners)return;let i=a._listeners.length;for(;i-- >0;)a._listeners[i](l);a._listeners=null}),this.promise.then=l=>{let i;const s=new Promise(r=>{a.subscribe(r),i=r}).then(l);return s.cancel=function(){a.unsubscribe(i)},s},o(function(l,i,s){a.reason||(a.reason=new Ce(l,i,s),n(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]}unsubscribe(o){if(!this._listeners)return;const n=this._listeners.indexOf(o);n!==-1&&this._listeners.splice(n,1)}static source(){let o;return{token:new Et(function(n){o=n}),cancel:o}}}const hd=Et;function fd(e){return function(o){return e.apply(null,o)}}function wd(e){return b.isObject(e)&&e.isAxiosError===!0}const Nt={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(Nt).forEach(([e,o])=>{Nt[o]=e});const bd=Nt;function Xo(e){const o=new He(e),n=Eo(He.prototype.request,o);return b.extend(n,He.prototype,o,{allOwnKeys:!0}),b.extend(n,o,null,{allOwnKeys:!0}),n.create=function(a){return Xo(me(e,a))},n}const v=Xo(gt);v.Axios=He,v.CanceledError=Ce,v.CancelToken=hd,v.isCancel=qo,v.VERSION=Qo,v.toFormData=ve,v.AxiosError=T,v.Cancel=v.CanceledError,v.all=function(e){return Promise.all(e)},v.spread=fd,v.isAxiosError=wd,v.mergeConfig=me,v.AxiosHeaders=ee,v.formToJSON=e=>Uo(b.isHTMLForm(e)?new FormData(e):e),v.HttpStatusCode=bd,v.default=v;function gd(e){return!e||!Object.keys(e).length}let qe;const yd=new Uint8Array(16);function kd(){if(!qe&&(qe=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!qe))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return qe(yd)}const z=[];for(let e=0;e<256;++e)z.push((e+256).toString(16).slice(1));function $d(e,o=0){return(z[e[o+0]]+z[e[o+1]]+z[e[o+2]]+z[e[o+3]]+"-"+z[e[o+4]]+z[e[o+5]]+"-"+z[e[o+6]]+z[e[o+7]]+"-"+z[e[o+8]]+z[e[o+9]]+"-"+z[e[o+10]]+z[e[o+11]]+z[e[o+12]]+z[e[o+13]]+z[e[o+14]]+z[e[o+15]]).toLowerCase()}const Vd=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Zo={randomUUID:Vd};function Cd(e,o,n){if(Zo.randomUUID&&!o&&!e)return Zo.randomUUID();e=e||{};const a=e.random||(e.rng||kd)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,o){n=n||0;for(let l=0;l<16;++l)o[n+l]=a[l];return o}return $d(a)}Cd();/*! js-cookie v3.0.5 | MIT */function We(e){for(var o=1;o<arguments.length;o++){var n=arguments[o];for(var a in n)e[a]=n[a]}return e}var Ed={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function _t(e,o){function n(l,i,s){if(!(typeof document>"u")){s=We({},o,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),l=encodeURIComponent(l).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var r="";for(var d in s)s[d]&&(r+="; "+d,s[d]!==!0&&(r+="="+s[d].split(";")[0]));return document.cookie=l+"="+e.write(i,l)+r}}function a(l){if(!(typeof document>"u"||arguments.length&&!l)){for(var i=document.cookie?document.cookie.split("; "):[],s={},r=0;r<i.length;r++){var d=i[r].split("="),m=d.slice(1).join("=");try{var c=decodeURIComponent(d[0]);if(s[c]=e.read(m,c),l===c)break}catch{}}return l?s[l]:s}}return Object.create({set:n,get:a,remove:function(l,i){n(l,"",We({},i,{expires:-1}))},withAttributes:function(l){return _t(this.converter,We({},this.attributes,l))},withConverter:function(l){return _t(We({},this.converter,l),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(e)}})}_t(Ed,{path:"/"});function Nd(e,o){return(...n)=>new Promise((a,l)=>{e.id&&clearTimeout(e.id),e.id=setTimeout(()=>{try{const i=o(...n);a(i)}catch(i){l(i)}},e.delay)})}const _d=(e="")=>!e||!e.trim()?"":(e=e.trim(),e.replace(" ","-").toLowerCase()),Sd=(e,o)=>new Promise((n,a)=>{setTimeout(()=>{try{e&&e(),n()}catch{a()}},o)});function en(e,o=!1){return e==null?"":Bd(o?Math.round(e):Math.floor(e),0)}function Bd(e,o){return!e&&e!==0?"":e.toLocaleString("it-IT",{minimumFractionDigits:o,maximumFractionDigits:o})}const xd=["id"],Td=["id","data-cy","checked","disabled"],Od=["for"],Ke=S(t.defineComponent({__name:"CheckboxBtn",props:{id:{},inputClass:{default:""},inline:{type:Boolean,default:!1},label:{default:""},labelClass:{default:""},isValid:{default:null},modelValue:{type:Boolean,default:!1},containerId:{default:""},containerClass:{default:""},handleLabelClick:{type:Boolean,default:!0}},emits:["click","change","update:modelValue"],setup(e,{emit:o}){const n=e,a=o,l=()=>{a("change",{id:n.id,label:n.label,checked:!n.modelValue}),a("update:modelValue",!n.modelValue)},i=()=>{a("click"),n.handleLabelClick&&(a("change",{id:n.id,label:n.label,checked:!n.modelValue}),a("update:modelValue",!n.modelValue))};return(s,r)=>(t.openBlock(),t.createElementBlock("div",{id:s.containerId,class:t.normalizeClass(["tw-group tw-relative tw-block tw-pl-25px hover:tw-cursor-pointer",[{"tw-mr-4 tw-inline-flex tw-items-center":s.inline},{"tw-py-10px":!s.inline&&!s.$attrs["wrapper-margin-y"]},s.$attrs["wrapper-margin-y"],s.containerClass]]),onClick:t.withModifiers(i,["stop","prevent"])},[t.createElementVNode("input",{id:`${s.id}`,ref:"checkbox","data-cy":s.$attrs["data-cy"],class:t.normalizeClass(["tw-absolute tw-left-0 tw-h-4 tw-w-4 tw-appearance-none tw-rounded-3xs tw-border tw-border-solid tw-border-w-secondary tw-bg-white checked:tw-bg-center checked:tw-bg-no-repeat group-hover:tw-cursor-pointer",[{"!tw-border-w-danger":s.isValid===!1},s.inputClass,s.isValid===!1?"checked-bg-invalid":"checked-bg"]]),type:"checkbox",checked:s.$attrs.checked||s.modelValue,disabled:s.$attrs.disabled,onChange:r[0]||(r[0]=t.withModifiers(d=>l(),["stop","prevent"])),onClick:r[1]||(r[1]=t.withModifiers(d=>a("click"),["stop"]))},null,42,Td),t.renderSlot(s.$slots,"label",{},()=>[t.createElementVNode("label",{class:t.normalizeClass(["tw-pl-10px group-hover:tw-cursor-pointer",[s.labelClass,{"tw-text-w-danger":s.isValid===!1}]]),for:`${s.id}`},t.toDisplayString(s.label),11,Od),s.$attrs.required?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["required after:tw-content-['*']",[s.isValid!==!1?"after:tw-text-w-primary":"after:tw-text-w-danger"]])},null,2)):t.createCommentVNode("",!0)],!0)],10,xd))}}),[["__scopeId","data-v-01b60c1d"]]),Ld=["id","data-cy"],St=t.defineComponent({inheritAttrs:!1,__name:"CheckboxGroup",props:{valuesObj:{default(){return{}}},formCheckInline:{type:Boolean,default:!1},customClass:{default:""},reset:{type:Boolean,default:!1},autoCheckResetAll:{type:Boolean,default:!1},autoCheckResetEmpty:{type:Boolean,default:!1},getKey:{default(){return e=>e.id}}},emits:["resetted","update:modelValue","checkedGroup"],setup(e,{emit:o}){const n=t.useAttrs(),a=e,l=o,i=t.reactive({checkedValuesObj:{}}),s=t.computed(()=>{for(const u in a.valuesObj){const f=a.valuesObj[u];if(f.reset)return f}return null}),r=t.computed(()=>Object.keys(a.valuesObj).length),d=t.computed(()=>Object.values(i.checkedValuesObj).reduce((u,f)=>f.checked?u+1:u,0));t.watch(()=>a.reset,u=>{u&&(m(),l("resetted"))}),t.onBeforeMount(()=>{for(const u in a.valuesObj){const f=a.valuesObj[u];f.checked=!!f.checked,i.checkedValuesObj[u]=f}});const m=()=>{for(const u in i.checkedValuesObj)i.checkedValuesObj[u].checked=!1},c=u=>i.checkedValuesObj[a.getKey(u)].checked,p=u=>{i.checkedValuesObj[u.id].checked=!c(u)},h=u=>{if(!(!a.valuesObj||gd(a.valuesObj))){if(a.valuesObj[u.id].reset&&u.checked?m():s.value&&!a.valuesObj[u.id].reset&&(i.checkedValuesObj[a.getKey(s.value)].checked=!1),i.checkedValuesObj[u.id].checked=!!u.checked,a.autoCheckResetAll&&s.value&&d.value===r.value-1)for(const f in i.checkedValuesObj)i.checkedValuesObj[f].checked=!!i.checkedValuesObj[f].reset;a.autoCheckResetEmpty&&s.value&&!d.value&&(i.checkedValuesObj[a.getKey(s.value)].checked=!0),l("update:modelValue",Object.values(i.checkedValuesObj).filter(f=>f.checked)),l("checkedGroup",n["group-id"]||"")}};return(u,f)=>(t.openBlock(),t.createElementBlock("div",{id:u.$attrs["group-id"]||"",class:t.normalizeClass(["checkbox-group-container",u.$attrs.class||""]),"data-cy":u.$attrs["data-cy"]||""},[t.renderSlot(u.$slots,"checkboxElement",{isActive:c,handleChange:p},()=>[u.valuesObj?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(u.valuesObj,(C,N,V)=>(t.openBlock(),t.createBlock(Ke,{id:u.getKey(C),key:V,"data-cy":`checkbox_${t.unref(_d)(`${C.label}`)}`,label:C.label,inline:u.formCheckInline,"wrapper-margin-y":u.$attrs["checkbox-padding-y"],"model-value":c(C),onChange:h},null,8,["id","data-cy","label","inline","wrapper-margin-y","model-value"]))),128)):t.createCommentVNode("",!0)])],10,Ld))}}),Ad=t.defineComponent({name:"CheckboxSection",components:{CheckboxGroup:St,CheckboxBtn:Ke},data(){return{firstCheckboxValue:[],singleCheckbox:!1,singleCheckbox2:!1}}}),Md={class:"tw-h-full tw-max-h-[550px] sm:tw-max-h-[350px]"},Id={class:""},Rd=t.createElementVNode("h4",{class:"tw-my-5"},"Inline checkbox",-1),Pd={class:"tw-mt-5 tw-grid tw-grid-cols-1 tw-gap-2 sm:tw-grid-cols-2"},vd=t.createElementVNode("h4",{class:"tw-mb-3"},"Single Checkbox - Required with slot",-1),Dd=t.createElementVNode("p",null," If you want to use a custom label structure, then you have to add the following span to your slot: ",-1),zd=t.createElementVNode("p",{class:"tw-text-w-danger"},' <span class="required"/> ',-1),jd=t.createElementVNode("span",null,"Some custom label",-1),Fd=t.createElementVNode("span",{class:"required"},null,-1),Ud=t.createElementVNode("h4",{class:"tw-mb-3"},"Single Checkbox - Required without slot",-1),Hd=t.createElementVNode("p",null,' Otherwise, you can just add the attribute "required" to your checkbox-btn component ',-1),qd=t.createElementVNode("p",null,[t.createTextVNode(' <checkbox-btn id="single-checkbox_2" v-model="singleCheckbox2" '),t.createElementVNode("span",{class:"tw-text-w-danger"},'required="required"'),t.createTextVNode(' label="required checkbox without slot"/> ')],-1);function Wd(e,o,n,a,l,i){const s=t.resolveComponent("checkbox-group"),r=t.resolveComponent("checkbox-btn");return t.openBlock(),t.createElementBlock("div",Md,[t.createElementVNode("div",Id,[Rd,t.createVNode(s,{modelValue:e.firstCheckboxValue,"onUpdate:modelValue":o[0]||(o[0]=d=>e.firstCheckboxValue=d),"checkbox-values":[{id:"firstCb",label:"first"},{id:"secondCb",label:"second"},{id:"thirdCb",label:"third"}]},null,8,["modelValue"])]),t.createElementVNode("div",Pd,[t.createElementVNode("div",null,[vd,Dd,zd,t.createVNode(r,{id:"single-checkbox",modelValue:e.singleCheckbox,"onUpdate:modelValue":o[1]||(o[1]=d=>e.singleCheckbox=d)},{label:t.withCtx(()=>[jd,Fd]),_:1},8,["modelValue"])]),t.createElementVNode("div",null,[Ud,Hd,qd,t.createVNode(r,{id:"single-checkbox_2",modelValue:e.singleCheckbox2,"onUpdate:modelValue":o[2]||(o[2]=d=>e.singleCheckbox2=d),required:"required",label:"required checkbox without slot"},null,8,["modelValue"])])])])}const Kd=S(Ad,[["render",Wd]]),Gd=["id"],tn=S(t.defineComponent({inheritAttrs:!1,__name:"BaseBadge",props:{badgeClass:{default:"tw-badge-w-primary-sm"}},setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("span",{id:o.$attrs.id,class:t.normalizeClass(["tw-badge tw-shadow-sm",o.badgeClass,o.$attrs.class])},[t.renderSlot(o.$slots,"default",{},void 0,!0)],10,Gd))}}),[["__scopeId","data-v-1197a967"]]),Jd=t.defineComponent({name:"BadgeSection",components:{BaseBadge:tn}}),Qd={class:"tw-grid tw-grid-cols-3 tw-gap-5"},Yd=t.createElementVNode("h3",{class:"tw-col-span-3"},"Tag card immobile",-1),Xd=t.createElementVNode("h3",{class:"tw-col-span-3"},"Tag non selezionabile",-1);function Zd(e,o,n,a,l,i){const s=t.resolveComponent("base-badge");return t.openBlock(),t.createElementBlock("div",Qd,[Yd,t.createElementVNode("div",null,[t.createVNode(s,{"badge-class":"tw-badge-w-warning"},{default:t.withCtx(()=>[t.createTextVNode(" Gold ")]),_:1})]),t.createElementVNode("div",null,[t.createVNode(s,{"badge-class":"tw-badge-w-lavender"},{default:t.withCtx(()=>[t.createTextVNode(" Silver ")]),_:1})]),t.createElementVNode("div",null,[t.createVNode(s,{"badge-class":"tw-badge-w-primary-sm"},{default:t.withCtx(()=>[t.createTextVNode(" New ")]),_:1})]),Xd,t.createElementVNode("div",null,[t.createVNode(s,{"badge-class":"tw-badge-outline-tag"},{default:t.withCtx(()=>[t.createTextVNode(" Tag ")]),_:1})])])}const ec=S(Jd,[["render",Zd]]);var ue=(e=>(e[e.SMALL=576]="SMALL",e[e.MEDIUM=768]="MEDIUM",e[e.LARGE=992]="LARGE",e[e.EXTRA_LARGE=1200]="EXTRA_LARGE",e))(ue||{});function on(){const e=t.reactive({isDesktopMode:!1,isSmall:!1,isLarge:!1,isMedium:!1,isExtraLarge:!1}),o=()=>{e.isDesktopMode=window.innerWidth>ue.SMALL,e.isSmall=window.innerWidth<=ue.SMALL,e.isMedium=window.innerWidth>ue.SMALL,e.isLarge=window.innerWidth>ue.MEDIUM,e.isExtraLarge=window.innerWidth>ue.LARGE};return t.onBeforeMount(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),t.toRefs(e)}const tc=["modal-sm","modal-md","modal-lg","modal-xl","modal-xxl","modal-desktop"],oc=t.defineComponent({components:{BaseButton:G,CloseIcon:Oe},props:{id:{type:String,default:"base-bt-modal"},size:{type:String,default:"modal-md"},customBackdropClasses:{type:String,default:""},customModalClasses:{type:String,default:""},customModalDialogClasses:{type:String,default:""},customModalContentClasses:{type:String,default:""},customModalHeaderClasses:{type:[String,Array],default:""},customModalBodyClasses:{type:String,default:""},customModalFooterClasses:{type:String,default:""},withCustomFooter:{type:Boolean,default:!1},withCloseIcon:{type:Boolean,default:!0},showModal:{type:Boolean,required:!0},closeIcon:{type:String,default:""},headerTitle:{type:String,default:""},autoClose:{type:Number},fullHeight:{type:Boolean,default:!1},closeOnClickOut:{type:Boolean,default:!0}},emits:["closed","opened"],setup(){const{isSmall:e}=on();return{isMobile:e}},data(){return{baseModalMaxWidthClass:""}},computed:{backdropEl(){return this.$refs.backdropEl},modalEl(){return this.$refs.modalEl}},watch:{showModal(e){e||this.closeModal()}},created(){document&&document.body.classList.add("tw-no-scrolling","sm:tw-pr-15px")},unmounted(){document&&document.body.classList.remove("tw-no-scrolling","sm:tw-pr-15px")},mounted(){var o;this.openModal();const e=n=>{var a;n.key==="Escape"&&(this.closeModal(),document&&((a=document.body)==null||a.removeEventListener("keydown",e)))};document&&((o=document.body)==null||o.addEventListener("keydown",e))},methods:{async openModal(){const e=this.backdropEl,o=this.modalEl;e==null||e.classList.add("tw-flex","colored-backdrop");let n=this.customModalDialogClasses||"";n+=` ${this.size}`;const a=n.split(" ").find(l=>tc.includes(l));o==null||o.classList.add("show",`base-${a}`),this.autoClose!==void 0&&setTimeout(()=>{this.closeModal()},this.autoClose)},async closeOnBackdropClick({target:e}){!this.closeOnClickOut||this.isMobile&&!e.classList.contains("bbt-modal-wrapper")||!this.isMobile&&!e.classList.contains("bbt-backdrop")||await this.closeModal()},async closeModal(){this.backdropEl.classList.remove("colored-backdrop"),this.backdropEl.classList.add("tw-flex","tw-bg-transparent"),this.modalEl.classList.remove("show"),this.modalEl.classList.add("closed","tw-overflow-hidden"),document&&document.body.classList.remove("no-scrolling"),await Sd(()=>{this.$emit("closed")},250)},async onClosed(){await this.closeModal(),this.$emit("closed")},async onOpened(){await this.openModal(),this.$emit("opened")}}}),nc=["id","data-cy"],ac=["innerHTML"];function sc(e,o,n,a,l,i){const s=t.resolveComponent("close-icon"),r=t.resolveComponent("base-button");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createElementVNode("div",{ref:"backdropEl",class:t.normalizeClass(["bbt-backdrop tw-fixed tw-left-0 tw-start-0 tw-top-0 tw-flex tw-h-full tw-w-full tw-items-start tw-justify-center tw-overflow-y-auto tw-px-0 tw-pt-0 sm:tw-px-5 sm:tw-pt-[30px]",[e.customBackdropClasses]]),style:{"z-index":"1062"},onClick:o[0]||(o[0]=(...d)=>e.closeOnBackdropClick&&e.closeOnBackdropClick(...d))},[t.createElementVNode("dialog",{id:e.id,ref:"modalEl","data-cy":e.$attrs["data-cy"],class:t.normalizeClass(["custom-modal safe-bottom base-bt-modal transition-y !tw-relative tw-m-0 tw-block tw-h-full tw-w-full tw-overflow-x-hidden tw-overflow-y-hidden tw-rounded tw-border-none tw-bg-transparent tw-p-0 tw-no-scrollbar max-sm:tw-fixed max-sm:tw-w-full max-sm:tw-max-w-full max-sm:tw-rounded-bl-none max-sm:tw-rounded-br-none max-sm:tw-border-0 sm:tw-h-auto",[e.customModalClasses]])},[t.createElementVNode("div",{class:t.normalizeClass(["bbt-modal-wrapper tw-relative tw-h-full",[e.customModalDialogClasses]])},[t.createElementVNode("div",{class:t.normalizeClass(["tw-modal-content tw-fixed tw-bottom-0 tw-h-auto tw-max-h-[90%] tw-w-full tw-overflow-x-hidden tw-rounded tw-bg-white tw-py-0 tw-no-scrollbar max-sm:tw-rounded-bl-none max-sm:tw-rounded-br-none sm:tw-relative sm:tw-flex sm:tw-flex-col sm:tw-overflow-y-auto sm:tw-py-0 sm:tw-shadow-[0_3px_6px_#00000029]",[e.customModalContentClasses,"transition-y",{"full-height-mobile":e.fullHeight}]])},[t.createElementVNode("div",{class:t.normalizeClass(["default-header tw-border-0 tw-px-4 sm:tw-px-6",[e.customModalHeaderClasses]])},[e.withCloseIcon?(t.openBlock(),t.createBlock(r,{key:0,id:"close-icon-btn","data-cy":"bbt-default-close-icon-btn",class:t.normalizeClass(["tw-z-10 tw-bg-transparent",e.$attrs["close-icon-btn-classes"]]),type:"button","aria-label":"Close","is-empty":!0,onClick:t.withModifiers(e.closeModal,["prevent","stop"])},{default:t.withCtx(()=>[t.createVNode(s,{class:"bbt-close-icon tw-p-5px",width:30,height:30})]),_:1},8,["class","onClick"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"header",{closeModal:e.closeModal},()=>[t.createElementVNode("span",{class:t.normalizeClass(["tw-w-auto tw-text-18 tw-font-semibold sm:tw-text-22",e.$attrs["title-classes"]]),innerHTML:e.headerTitle},null,10,ac)],!0)],2),t.createElementVNode("div",{class:t.normalizeClass(["tw-bbt-body tw-flex-auto tw-overflow-y-auto tw-overflow-x-hidden tw-px-4 tw-pb-0 tw-no-scrollbar sm:tw-px-6 sm:tw-pb-25px",[e.customModalBodyClasses]])},[t.renderSlot(e.$slots,"body",{},void 0,!0)],2),e.withCustomFooter?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["tw-bbt-footer tw-border-0 tw-bg-white tw-px-4 tw-py-15px sm:tw-px-6",e.customModalFooterClasses])},[t.renderSlot(e.$slots,"footer",{closeModal:e.closeModal},void 0,!0)],2)):t.createCommentVNode("",!0)],2)],2),t.renderSlot(e.$slots,"fixed-bottom",{},void 0,!0)],10,nc)],2)])}const lc=S(oc,[["render",sc],["__scopeId","data-v-7e2cc924"]]),rc=t.defineComponent({name:"ModalSection",components:{BaseBtModal:lc,BaseButton:G},data(){return{show:!1}}});function ic(e,o,n,a,l,i){const s=t.resolveComponent("base-button"),r=t.resolveComponent("base-bt-modal");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(s,{"btn-class":"tw-btn-w-primary",onClick:o[0]||(o[0]=d=>e.show=!0)},{default:t.withCtx(()=>[t.createTextVNode(" Apri Modale ")]),_:1}),e.show?(t.openBlock(),t.createBlock(r,{key:0,"show-modal":!0,"header-title":"Titolo del Modale",size:"modal-md","with-custom-footer":!0,onClosed:o[1]||(o[1]=d=>e.show=!1)},{body:t.withCtx(()=>[t.createTextVNode(" Body del Modale ")]),footer:t.withCtx(()=>[t.createVNode(s,{"btn-class":"tw-btn-w-primary"},{default:t.withCtx(()=>[t.createTextVNode(" Bottone ")]),_:1})]),_:1})):t.createCommentVNode("",!0)],64)}const dc=S(rc,[["render",ic]]);function nn(e,o){const n=parseInt(e.value,10),a=parseInt(o.value,10);return[n,a]}const cc=e=>e.minPos+(Math.log(e.value)-e.minlval)/e.scale,pc=e=>Math.exp((e.position-e.minPos)*e.scale+e.minlval);function Ee(e,o,n,a,l){const i=o.max-o.min,s=e-o.min,r=o.value-o.min;l.style.background=`linear-gradient(
26
- to right,
27
- ${n} 0%,
28
- ${n} ${s/i*100}%,
29
- ${a} ${s/i*100}%,
30
- ${a} ${r/i*100}%,
31
- ${n} ${r/i*100}%,
32
- ${n} 100%)`}function Bt(e,o){e<=0?o.style.zIndex="2":o.style.zIndex="0"}const mc=t.defineComponent({name:"BaseSlider",components:{BaseInput:j},props:{type:{type:String,default:"linear"}},emits:["minChanged","maxChanged"],data(){return{leftSliderLimit:0,rightSliderLimit:100,minValue:0,maxValue:0,sliderMinValue:10,sliderMaxValue:40,minlval:0,maxlval:0,scale:0}},computed:{fromSlider(){return this.$refs.fromSlider},toSlider(){return this.$refs.toSlider},fromInput(){return this.$refs.fromInput},toInput(){return this.$refs.toInput}},watch:{minValue(e){this.$emit("minChanged",e)},maxValue(e){this.$emit("maxChanged",e)}},created(){this.leftSliderLimit=parseInt(`${this.$attrs.min||0}`,10),this.rightSliderLimit=parseInt(`${this.$attrs.max||100}`,10),this.sliderMinValue=this.leftSliderLimit,this.sliderMaxValue=this.rightSliderLimit,this.minValue=parseInt(`${this.$attrs.minValue||this.leftSliderLimit}`,10),this.maxValue=parseInt(`${this.$attrs.maxValue||this.rightSliderLimit}`,10),this.minlval=Math.log(this.minValue||1),this.maxlval=Math.log(this.maxValue),this.scale=(this.maxlval-this.minlval)/(this.rightSliderLimit-this.leftSliderLimit)},mounted(){!this.fromSlider||!this.toSlider||(Ee(this.sliderMinValue,{min:this.leftSliderLimit,max:this.rightSliderLimit,value:this.sliderMaxValue},"#B4C2F0","#2B5DFF",this.toSlider),Bt(this.sliderMaxValue,this.toSlider))},methods:{handleInputChange(e,o){if(!this.fromSlider||!this.toSlider)return;o||(o="0");const n=parseInt(o,10);if(e=="min-input"){if(n>=this.maxValue)return;this.minValue=n,this.controlFromInput(this.toSlider);return}n<this.minValue||(this.maxValue=n,this.controlToInput(this.toSlider,this.toSlider))},getCurrentPosition(e){if(this.type==="logarithmic")return e=e||1,parseInt(cc({value:e,minPos:this.leftSliderLimit,minlval:this.minlval,scale:this.scale}).toFixed(0),10);if(this.type==="linear")return e;throw new Error("The slider type has not been implemented")},getCurrentValue(e){if(this.type==="logarithmic")return e=e||1,parseInt(pc({position:e,scale:this.scale,minlval:this.minlval,minPos:this.leftSliderLimit}).toFixed(0),10);if(this.type==="linear")return e;throw new Error("The slider type has not been implemented")},controlFromInput(e){const o=this.getCurrentPosition(this.minValue),n=this.getCurrentPosition(this.maxValue);Ee(o,{min:this.leftSliderLimit,max:this.rightSliderLimit,value:n},"#B4C2F0","#2B5DFF",e);const a=o,l=this.maxValue;a>l?this.sliderMinValue=l:this.sliderMinValue=a},controlToInput(e,o){const n=this.getCurrentPosition(this.minValue),a=this.getCurrentPosition(this.maxValue);Ee(n,{min:this.leftSliderLimit,max:this.rightSliderLimit,value:a},"#B4C2F0","#2B5DFF",o);const l=this.minValue,i=a;Bt(this.maxValue,e),l<=i?this.sliderMaxValue=i:this.sliderMaxValue=l},controlFromSlider(e,o){if(!this.toSlider)return;const[n,a]=nn(e,o),l=this.getCurrentValue(n);Ee(n,{min:this.leftSliderLimit,max:this.rightSliderLimit,value:a},"#B4C2F0","#2B5DFF",o),n>a?(e.value=`${a}`,this.sliderMinValue=a,this.minValue=a):(this.sliderMinValue=n,this.minValue=l)},controlToSlider(e,o){if(!this.toSlider)return;const[n,a]=nn(e,o),l=this.getCurrentValue(a);Ee(this.sliderMinValue,{min:this.leftSliderLimit,max:this.rightSliderLimit,value:a},"#B4C2F0","#2B5DFF",o),Bt(parseInt(this.toSlider.value,10),o),n<=a?(this.sliderMaxValue=a,this.maxValue=l):(o.value=`${n}`,this.sliderMaxValue=n,this.maxValue=n)}}}),uc={class:"range_container"},hc={class:"sliders_control"},fc=["value","min","max","step"],wc=["value","min","max","step"],bc={class:"form_control row"},gc={class:"pb-15 pb-sm-0 col-sm-6 col-xl-4"},yc={class:"col-sm-6 col-xl-4"};function kc(e,o,n,a,l,i){const s=t.resolveComponent("base-input");return t.openBlock(),t.createElementBlock("div",uc,[t.createElementVNode("div",hc,[t.createElementVNode("input",{ref:"fromSlider",class:"fromSlider",type:"range",value:e.sliderMinValue,min:e.leftSliderLimit,max:e.rightSliderLimit,step:e.$attrs.step,onInput:o[0]||(o[0]=t.withModifiers(r=>e.controlFromSlider(e.fromSlider,e.toSlider),["stop"]))},null,40,fc),t.createElementVNode("input",{ref:"toSlider",class:"toSlider",type:"range",value:e.sliderMaxValue,min:e.leftSliderLimit,max:e.rightSliderLimit,step:e.$attrs.step,onInput:o[1]||(o[1]=t.withModifiers(r=>e.controlToSlider(e.fromSlider,e.toSlider),["stop"]))},null,40,wc)]),t.createElementVNode("div",bc,[t.createElementVNode("div",gc,[t.createVNode(s,{"label-text":"Min",type:"text",pattern:"[0-9]*",inputmode:"numeric","model-value":e.minValue,"onUpdate:modelValue":o[2]||(o[2]=r=>e.handleInputChange("min-input",r))},null,8,["model-value"])]),t.createElementVNode("div",yc,[t.createVNode(s,{"label-text":"Max",type:"text",pattern:"[0-9]*",inputmode:"numeric","model-value":e.maxValue,"onUpdate:modelValue":o[3]||(o[3]=r=>e.handleInputChange("max-input",r))},null,8,["model-value"])])])])}const an=S(mc,[["render",kc],["__scopeId","data-v-f3e3ba75"]]),$c=t.defineComponent({name:"SliderSection",components:{BaseSlider:an},data(){return{sliderMinValue:0,sliderMaxValue:0,sliderMinValue1:0,sliderMaxValue1:0,sliderMinValue2:0,sliderMaxValue2:0}}}),Vc={class:"tw-max-h-[700px] sm:tw-h-full"},Cc={class:"tw-pb-30px"},Ec={class:"tw-pb-30px"},Nc={class:"tw-pb-30px"},_c=t.createElementVNode("h4",{class:"tw-pb-5"},"Linear Slider",-1),Sc={class:"tw-pb-30px"},Bc=t.createElementVNode("h4",{class:"tw-pb-5"},"Logarithmic Slider",-1);function xc(e,o,n,a,l,i){const s=t.resolveComponent("base-slider");return t.openBlock(),t.createElementBlock("div",Vc,[t.createElementVNode("div",Cc,[t.createVNode(s,{step:10,onMinChanged:o[0]||(o[0]=r=>e.sliderMinValue=r),onMaxChanged:o[1]||(o[1]=r=>e.sliderMaxValue=r)})]),t.createElementVNode("div",Ec,[t.createVNode(s,{min:20,max:50,onMinChanged:o[2]||(o[2]=r=>e.sliderMinValue1=r),onMaxChanged:o[3]||(o[3]=r=>e.sliderMaxValue1=r)})]),t.createElementVNode("div",Nc,[_c,t.createVNode(s,{min:0,max:1e5,"min-value":0,"max-value":1e6,onMinChanged:o[4]||(o[4]=r=>e.sliderMinValue2=r),onMaxChanged:o[5]||(o[5]=r=>e.sliderMaxValue2=r)})]),t.createElementVNode("div",Sc,[Bc,t.createVNode(s,{min:0,max:1e5,"min-value":0,"max-value":1e6,type:"logarithmic",onMinChanged:o[6]||(o[6]=r=>e.sliderMinValue2=r),onMaxChanged:o[7]||(o[7]=r=>e.sliderMaxValue2=r)}),t.createVNode(s,{min:1e4,max:1e5,"min-value":0,"max-value":1e6,type:"logarithmic",onMinChanged:o[8]||(o[8]=r=>e.sliderMinValue2=r),onMaxChanged:o[9]||(o[9]=r=>e.sliderMaxValue2=r)})])])}const Tc=S($c,[["render",xc]]),Oc=t.defineComponent({name:"BaseToggle",inheritAttrs:!1,props:{withRightLabel:{type:Boolean,default:!0},label:{type:String,default:""},modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],methods:{handleToggle({target:e}){this.$emit("update:modelValue",e.checked)}}}),Lc=e=>(t.pushScopeId("data-v-fa20eefa"),e=e(),t.popScopeId(),e),Ac={class:"switch tw-relative tw-inline-block tw-min-w-[40px]"},Mc=["data-cy","checked"],Ic=Lc(()=>t.createElementVNode("span",{class:"slider round tw-absolute tw-bottom-0 tw-left-0 tw-right-0 tw-top-0 tw-cursor-pointer tw-bg-w-lavender tw-duration-300 before:tw-absolute before:tw-bottom-0 before:tw-left-0 before:tw-h-[22px] before:tw-w-[22px] before:tw-rounded-circle before:tw-border before:tw-border-solid before:tw-border-w-secondary before:tw-bg-white before:tw-shadow-sm before:tw-duration-300 before:tw-content-[''] peer-checked/toggle:tw-bg-w-primary"},null,-1)),Rc=["innerHTML"];function Pc(e,o,n,a,l,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["switch-container tw-inline-block tw-items-center",e.$attrs.class])},[t.renderSlot(e.$slots,"leftLabel",{},void 0,!0),t.createElementVNode("label",Ac,[t.createElementVNode("input",{"data-cy":e.$attrs["data-cy"]??"",class:"tw-peer/toggle tw-h-0 tw-w-0 tw-opacity-0",type:"checkbox",checked:e.modelValue,onInput:o[0]||(o[0]=t.withModifiers(s=>e.handleToggle(s),["stop"]))},null,40,Mc),Ic]),e.withRightLabel?t.renderSlot(e.$slots,"rightLabel",{key:0},()=>[t.createElementVNode("span",{class:"tw-ml-10px",innerHTML:e.label},null,8,Rc)],!0):t.createCommentVNode("",!0)],2)}const xt=S(Oc,[["render",Pc],["__scopeId","data-v-fa20eefa"]]),vc=t.defineComponent({name:"BaseComplexToggle",props:{labels:{type:Object,required:!0},modelValue:{type:String,default:""},type:{type:String,default:"full"},mode:{type:String,default:""},btnBgColor:{type:String,default:"tw-bg-w-lavender-bordered"},borderContainerColor:{type:String||"tw-border-w-secondary",default:"tw-border-w-secondary"}},emits:["update:modelValue"],data(){return{texActiveToggleColor:"tw-text-white"}},computed:{leftBtn(){return this.$refs.leftBtn},rightBtn(){return this.$refs.rightBtn},dynamicBg(){return this.$refs.dynamicBg}},created(){["tw-bg-w-cultured-bordered","tw-bg-w-gray","tw-bg-w-warning","tw-bg-w-lavender-bordered"].includes(this.btnBgColor)&&(this.texActiveToggleColor="tw-text-w-black")},mounted(){this.btnBgColor&&(this.labels.leftToggle.checked?(this.moveDynamicBgToLeft(),this.emitLeftLabel()):this.labels.rightToggle.checked&&(this.moveDynamicBgToRight(),this.emitRightLabel()))},methods:{handleToggle(e){!this.leftBtn||!this.rightBtn||(e==="left-btn"?(this.moveDynamicBgToLeft(),this.$emit("update:modelValue",this.labels.leftToggle.label)):(this.moveDynamicBgToRight(),this.$emit("update:modelValue",this.labels.rightToggle.label)))},moveDynamicBgToLeft(){var e,o,n,a;(e=this.dynamicBg)==null||e.classList.remove("translateX-right"),(o=this.dynamicBg)==null||o.classList.add("translateX-left"),(n=this.leftBtn)==null||n.classList.add("base-complex-toggle-active",this.texActiveToggleColor),(a=this.rightBtn)==null||a.classList.remove("base-complex-toggle-active",this.texActiveToggleColor)},moveDynamicBgToRight(){var e,o,n,a;(e=this.dynamicBg)==null||e.classList.remove("translateX-left"),(o=this.dynamicBg)==null||o.classList.add("translateX-right"),(n=this.rightBtn)==null||n.classList.add("base-complex-toggle-active",this.texActiveToggleColor),(a=this.leftBtn)==null||a.classList.remove("base-complex-toggle-active",this.texActiveToggleColor)},emitLeftLabel(){this.$emit("update:modelValue",this.labels.leftToggle.label)},emitRightLabel(){this.$emit("update:modelValue",this.labels.rightToggle.label)}}}),Dc=["id","data-cy"],zc=["data-cy"],jc=["src","alt"],Fc=["innerHTML"],Uc=["data-cy"],Hc=["src","alt"],qc=["innerHTML"];function Wc(e,o,n,a,l,i){return t.openBlock(),t.createElementBlock("div",{id:e.$attrs.id||"","data-cy":e.$attrs["data-cy"]||"",class:t.normalizeClass(["base-complex-toggle tw-relative tw-flex tw-justify-center tw-p-0",[e.mode,e.borderContainerColor]])},[t.createElementVNode("div",{ref:"leftBtn","data-cy":`bct-left-btn${e.labels.leftToggle.label?`-${e.labels.leftToggle.label}`:""}`,class:"left-button tw-flex tw-flex-1 tw-items-center tw-justify-center hover:tw-cursor-pointer",onClick:o[0]||(o[0]=t.withModifiers(s=>e.handleToggle("left-btn"),["stop"]))},[e.labels.leftToggle.icon?(t.openBlock(),t.createElementBlock("img",{key:0,class:"base-complex-toggle-icon tw-relative tw-z-10 tw-mr-10px",src:e.labels.leftToggle.icon.src,alt:e.labels.leftToggle.icon.alt,width:"15",height:"15"},null,8,jc)):t.createCommentVNode("",!0),t.createElementVNode("span",{ref:"leftToggleLabel",class:"base-complex-toggle-label tw-relative tw-z-10",innerHTML:e.labels.leftToggle.label},null,8,Fc)],8,zc),t.createElementVNode("div",{ref:"rightBtn","data-cy":`bct-right-btn${e.labels.rightToggle.label?`-${e.labels.rightToggle.label}`:""}`,class:"right-button tw-flex tw-flex-1 tw-items-center tw-justify-center hover:tw-cursor-pointer",onClick:o[1]||(o[1]=t.withModifiers(s=>e.handleToggle("right-btn"),["stop"]))},[e.labels.rightToggle.icon?(t.openBlock(),t.createElementBlock("img",{key:0,class:"base-complex-toggle-icon tw-relative tw-z-10 tw-mr-10px",src:e.labels.rightToggle.icon.src,alt:e.labels.rightToggle.icon.alt,width:"15",height:"15"},null,8,Hc)):t.createCommentVNode("",!0),t.createElementVNode("span",{ref:"rightToggleLabel",class:"base-complex-toggle-label tw-relative tw-z-10",innerHTML:e.labels.rightToggle.label},null,8,qc)],8,Uc),t.createElementVNode("div",{ref:"dynamicBg",class:t.normalizeClass(["tw-absolute tw-transition-all tw-duration-200 tw-ease-out",[e.type==="full"?"base-complex-toggle-active-bg":"base-complex-toggle-active-padded-bg",e.btnBgColor,e.mode]])},null,2)],10,Dc)}const Ne=S(vc,[["render",Wc],["__scopeId","data-v-a745891d"]]),Kc={class:"tw-h-full tw-max-h-[400px] sm:tw-max-h-[300px]"},Gc=t.createElementVNode("h4",{class:"tw-my-5"},"Simple Toggle",-1),Jc={class:"tw-grid tw-grid-cols-2 tw-gap-5"},Qc=t.createElementVNode("h4",{class:"tw-my-5"},"Complex Toggle - Full",-1),Yc={class:"tw-mb-15px tw-grid tw-grid-cols-1 tw-gap-5 sm:tw-grid-cols-2"},Xc=t.createElementVNode("h4",{class:"tw-my-5"},"Complex Toggle - Padded",-1),Zc={class:"tw-grid tw-grid-cols-1 tw-gap-5 sm:tw-grid-cols-2"},ep=t.defineComponent({__name:"ToggleSection",setup(e){const o=t.ref(!1),n=t.ref(!0),a=t.ref(""),l=t.ref(""),i=t.ref(""),s=t.ref("");return(r,d)=>(t.openBlock(),t.createElementBlock("div",Kc,[Gc,t.createElementVNode("div",Jc,[t.createVNode(xt,{modelValue:o.value,"onUpdate:modelValue":d[0]||(d[0]=m=>o.value=m),label:"sign in"},null,8,["modelValue"]),t.createVNode(xt,{modelValue:n.value,"onUpdate:modelValue":d[1]||(d[1]=m=>n.value=m),label:"sign in"},null,8,["modelValue"])]),Qc,t.createElementVNode("div",Yc,[t.createVNode(Ne,{modelValue:a.value,"onUpdate:modelValue":d[2]||(d[2]=m=>a.value=m),labels:{leftToggle:{label:"Lista",checked:!0,icon:{src:"vite.svg",alt:"List icon"}},rightToggle:{label:"Mappa",icon:{src:"vite.svg",alt:"Map icon"}}}},null,8,["modelValue","labels"]),t.createVNode(Ne,{modelValue:l.value,"onUpdate:modelValue":d[3]||(d[3]=m=>l.value=m),labels:{leftToggle:{label:"Lista",checked:!0},rightToggle:{label:"Mappa"}}},null,8,["modelValue"])]),Xc,t.createElementVNode("div",Zc,[t.createVNode(Ne,{modelValue:i.value,"onUpdate:modelValue":d[4]||(d[4]=m=>i.value=m),type:"padded",labels:{leftToggle:{label:"Lista",checked:!0,icon:{src:"vite.svg",alt:"List icon"}},rightToggle:{label:"Mappa",icon:{src:"vite.svg",alt:"Map icon"}}}},null,8,["modelValue","labels"]),t.createVNode(Ne,{modelValue:s.value,"onUpdate:modelValue":d[5]||(d[5]=m=>s.value=m),type:"padded",labels:{leftToggle:{label:"Lista",checked:!0},rightToggle:{label:"Mappa"}}},null,8,["modelValue"])])]))}}),tp=t.defineComponent({name:"BasePagination",components:{BaseIcon:Le},props:{offset:{type:Number,default:0},count:{type:Number,default:0},limit:{type:Number,default:25},siblings:{type:Number,default:3},additionalCount:{type:Number,default:0}},emits:["new-pagination-offset"],data(){return{activeHoverOnLeftIcon:!1,activeHoverOnRightIcon:!1}},methods:{handleHoverIcon(e,o){e?o==="LeftArrow"?this.activeHoverOnLeftIcon=!0:this.activeHoverOnRightIcon=!0:(this.activeHoverOnLeftIcon=!1,this.activeHoverOnRightIcon=!1)},getPages(){return Math.ceil((this.count+this.additionalCount)/this.limit)},getFormattedPages(){return en(Math.ceil((this.count+this.additionalCount)/this.limit))},getCurrentPage(){return Math.round(this.offset/this.limit)+1},getPreviousPages(){const e=Math.max(2,this.getCurrentPage()-this.siblings);let o=[];for(let n=e;n<this.getCurrentPage();n++)o.push(n);return o},getNextPages(){const e=Math.min(this.getPages()-1,this.getCurrentPage()+this.siblings);let o=[];for(let n=this.getCurrentPage()+1;n<=e;n++)o.push(n);return o},formatInteger(e){return en(e)},selectPage(e){this.$emit("new-pagination-offset",Math.round((e-1)*this.limit-this.additionalCount))},getCount(){return this.count}}}),op={"aria-label":"Page navigation"},np={key:0,class:"tw-text-14 tw-flex tw-list-none tw-content-center tw-gap-4 tw-pl-0 tw-font-semibold sm:tw-gap-5"},ap={key:2,class:"font-weight-bold tw-flex tw-h-30px tw-min-w-[30px] tw-cursor-pointer tw-items-center tw-justify-center tw-rounded-circle tw-p-5px hover:tw-bg-w-primary hover:tw-text-white"},sp=["onClick"],lp={class:"selected tw-pointer-events-none tw-flex tw-h-30px tw-min-w-[30px] tw-items-center tw-justify-center tw-rounded-circle tw-bg-w-primary tw-p-5px tw-text-white hover:tw-bg-w-primary hover:tw-text-white"},rp=["onClick"],ip={key:3,class:"tw-flex tw-h-30px tw-min-w-[30px] tw-cursor-pointer tw-items-center tw-justify-center tw-rounded-circle tw-p-5px hover:tw-bg-w-primary hover:tw-text-white"};function dp(e,o,n,a,l,i){const s=t.resolveComponent("baseIcon");return t.openBlock(),t.createElementBlock("nav",op,[e.getCount()>0?(t.openBlock(),t.createElementBlock("ul",np,[e.getCurrentPage()>1?(t.openBlock(),t.createElementBlock("li",{key:0,class:"arrow-button prev-page tw-h-30x tw-flex tw-min-w-[30px] tw-cursor-pointer tw-items-center tw-justify-center tw-rounded-circle tw-p-5px hover:tw-bg-w-primary md:tw-mr-5 [&_>_img]:hover:tw-brightness-0 [&_>_img]:hover:tw-invert",onClick:o[0]||(o[0]=r=>e.selectPage(e.getCurrentPage()-1)),onMouseover:o[1]||(o[1]=r=>e.handleHoverIcon(!0,"LeftArrow")),onMouseout:o[2]||(o[2]=r=>e.handleHoverIcon(!1,"LeftArrow"))},[t.createVNode(s,{"icon-name":"arrow-sx-blue.svg","alt-attribute":"icona pagina successiva","icon-class":"tw-mr-0"})],32)):t.createCommentVNode("",!0),e.getCurrentPage()>1?(t.openBlock(),t.createElementBlock("li",{key:1,class:"page tw-flex tw-h-30px tw-min-w-[30px] tw-cursor-pointer tw-items-center tw-justify-center tw-rounded-circle tw-p-5px hover:tw-bg-w-primary hover:tw-text-white",onClick:o[3]||(o[3]=r=>e.selectPage(1))}," 1 ")):t.createCommentVNode("",!0),e.getCurrentPage()>e.siblings+2?(t.openBlock(),t.createElementBlock("li",ap," ... ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.getPreviousPages(),r=>(t.openBlock(),t.createElementBlock("li",{key:r,class:"tw-flex tw-h-30px tw-min-w-[30px] tw-cursor-pointer tw-items-center tw-justify-center tw-rounded-circle tw-p-5px hover:tw-bg-w-primary hover:tw-text-white",onClick:d=>e.selectPage(r)},t.toDisplayString(e.formatInteger(r)),9,sp))),128)),t.createElementVNode("li",lp,t.toDisplayString(e.getCurrentPage()),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.getNextPages(),r=>(t.openBlock(),t.createElementBlock("li",{key:r,class:"tw-flex tw-h-30px tw-min-w-[30px] tw-cursor-pointer tw-items-center tw-justify-center tw-rounded-circle tw-p-5px hover:tw-bg-w-primary hover:tw-text-white",onClick:d=>e.selectPage(r)},t.toDisplayString(e.formatInteger(r)),9,rp))),128)),e.getCurrentPage()<e.getPages()-e.siblings-1?(t.openBlock(),t.createElementBlock("li",ip," ... ")):t.createCommentVNode("",!0),e.getCurrentPage()<e.getPages()?(t.openBlock(),t.createElementBlock("li",{key:4,class:"tw-flex tw-h-30px tw-min-w-[30px] tw-cursor-pointer tw-items-center tw-justify-center tw-rounded-circle tw-p-5px hover:tw-bg-w-primary hover:tw-text-white",onClick:o[4]||(o[4]=r=>e.selectPage(e.getPages()))},t.toDisplayString(e.getFormattedPages()),1)):t.createCommentVNode("",!0),e.getCurrentPage()<e.getPages()?(t.openBlock(),t.createElementBlock("li",{key:5,class:"arrow-button next-page tw-flex tw-h-30px tw-min-w-[30px] tw-cursor-pointer tw-items-center tw-justify-center tw-rounded-circle tw-p-5px hover:tw-bg-w-primary md:tw-ml-5 [&_>_img]:hover:tw-brightness-0 [&_>_img]:hover:tw-invert",onClick:o[5]||(o[5]=r=>e.selectPage(e.getCurrentPage()+1)),onMouseover:o[6]||(o[6]=r=>e.handleHoverIcon(!0,"RightArrow")),onMouseout:o[7]||(o[7]=r=>e.handleHoverIcon(!1,"RightArrow"))},[t.createVNode(s,{"icon-name":"arrow-dx-blue.svg","alt-attribute":"icona pagina successiva","icon-class":"tw-mr-0"})],32)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])}const sn=S(tp,[["render",dp]]),cp=t.defineComponent({name:"PaginationSection",components:{BasePagination:sn}});function pp(e,o,n,a,l,i){const s=t.resolveComponent("base-pagination");return t.openBlock(),t.createBlock(s,{offset:30,limit:25,count:150})}const mp=S(cp,[["render",pp]]),up=["tabindex"],hp=["innerHTML"],ln=t.defineComponent({__name:"SelectItem",props:{label:{default:""},active:{type:Boolean,default:!1},idx:{default:-1}},emits:["click","mouseover"],setup(e,{emit:o}){const n=o,a=e,l=t.ref(null);return t.watch(()=>a.active,i=>{i&&t.nextTick(()=>{var s;(s=l.value)==null||s.focus()})},{immediate:!0}),(i,s)=>(t.openBlock(),t.createElementBlock("li",{ref_key:"liItem",ref:l,class:t.normalizeClass(["tw-text-w-black",[{"active tw-bg-w-cultured":i.active},"tw-outline-none",i.$attrs.class]]),tabindex:i.$attrs.tabindex??-1,onClick:s[0]||(s[0]=r=>n("click",a.idx)),onMouseover:s[1]||(s[1]=r=>n("mouseover",a.idx))},[t.renderSlot(i.$slots,"default",{itemIdx:i.idx},()=>[t.createElementVNode("span",{innerHTML:a.label},null,8,hp)])],42,up))}}),fp=["innerHTML"],_e=t.defineComponent({__name:"BaseAutocomplete",props:t.mergeModels({border:{type:Boolean,default:!0},isValid:{default:null},theme:{default:""},label:{default:""},disableCb:{type:Boolean,default:!1},onInputChangeCb:{},onOptionSelectedCb:{default:null},manualClose:{type:Boolean,default:!1},keepState:{default:null}},{modelValue:{default(){return{id:"",label:""}}},modelModifiers:{}}),emits:t.mergeModels(["dropdownClosed","changedValue","click"],["update:modelValue"]),setup(e,{expose:o,emit:n}){const a=e,l=t.useModel(e,"modelValue"),i=n,s=t.ref(""),r=t.ref([]),d=t.ref(null),m=t.ref(!1),c=t.ref(!1),p=t.ref(null),h=t.computed(()=>r.value.length);t.onBeforeMount(()=>{var k;s.value=((k=l.value)==null?void 0:k.label)||"",d.value=Nd({delay:300},a.onInputChangeCb)});const{activeIdx:u,selectedIdx:f}=ko({optionsLength:h,isDropdownOpen:c,disableSpaceHandler:!0}),C=t.computed(()=>{switch(a.theme){case"bordered":return"";case"all-bordered":return"tw-rounded "+(c.value&&"tw-rounded-b-none");case"all-bordered-thick":return"tw-rounded-xl !tw-h-[60px] "+(c.value&&"tw-rounded-b-none");default:return""}}),N=t.computed(()=>{switch(a.theme){case"bordered":return"";case"all-bordered":return"tw-border tw-border-w-lavender tw-border-solid tw-rounded "+(c.value?"tw-border-b-0 tw-rounded-b-none":"");case"all-bordered-thick":return"tw-rounded-xl !tw-h-[60px]"+(c.value&&"tw-rounded-b-none");default:return""}}),V=t.computed(()=>{let k="tw-rounded-b-xl tw-shadow tw-rounded-t-none tw-mb-0 !tw-mt-0 tw-text-w-black !tw-rounded-b-xl !tw-rounded-t-none";switch(a.theme){case"bordered":return"before:tw-content-[''] before:tw-absolute before:tw-w-1/2 before:tw-border-b before:tw-border-b-w-lavender before:[border-bottom-style:solid] before:tw-right-1/4 tw-rounded-b-xl tw-shadow tw-rounded-t-none tw-mt-5px tw-mb-0";case"all-bordered":return k;case"all-bordered-thick":return k;default:return""}}),E=async k=>{if(s.value!==k&&(i("changedValue",k),s.value=k,!!a.onInputChangeCb)){if(l.value&&!k&&(l.value.label="",c.value=!1),!k||m.value){r.value=[],m.value=!1,f.value=-1,u.value=-1,await d.value(null);return}a.disableCb||(r.value=await d.value(k),r.value.length&&(c.value=!0))}},M=(k,I)=>{a.onOptionSelectedCb&&a.onOptionSelectedCb(k),m.value=!0,s.value=k.label,l.value=k,c.value=!1,f.value=I},D=()=>{r.value.length&&a.keepState!=="closed"&&(c.value=!0)};return t.watch(l,(k,I)=>{k!==I&&(s.value=(k==null?void 0:k.label)||"")}),t.watch(f,k=>{var U;if(k===-1)return;const I=r.value[k];m.value&&I.label===((U=l.value)==null?void 0:U.label)||M(I,k)}),t.watch(()=>a.manualClose,k=>{k&&(m.value&&(r.value=[]),i("dropdownClosed"))}),o({select:()=>{var k;(k=p.value)==null||k.select()}}),(k,I)=>(t.openBlock(),t.createBlock(mt,{class:t.normalizeClass(k.$attrs["root-classes"]),"data-cy":`ac_${k.$attrs.id}`,"dropdown-element":"ul","dropdown-classes":[{"bordered-dropdown":k.theme==="bordered"},{"all-bordered-dropdown":k.theme==="all-bordered"},{"all-bordered-dropdown thick":k.theme==="all-bordered-thick"},{"tw-mt-10px !tw-border !tw-border-w-secondary !tw-rounded-xs":!k.theme},V.value,"!tw-max-h-[210px] tw-z-10",k.$attrs["dropdown-classes"]],"open-dropdown":c.value,"keep-state":r.value.length?"":"closed","onUpdate:dropdownState":I[0]||(I[0]=U=>c.value=U),onClick:I[1]||(I[1]=U=>{i("click"),D()})},{btn_slot:t.withCtx(()=>{var U;return[t.createVNode(j,{id:`ac_input_${k.$attrs.id}`,ref_key:"baseInput",ref:p,"data-cy":`ac_input_${k.$attrs.id}`,"label-text":k.label,"model-value":((U=l.value)==null?void 0:U.label)||"","is-valid":k.isValid,disabled:k.$attrs.disabled,placeholder:k.$attrs.placeholder,"with-left-icon":!!k.$slots.lefticon,"with-right-icon":!!k.$slots.righticon,border:!k.theme,radius:!k.theme||k.theme==="bordered","input-class":[C.value,k.$attrs["input-classes"]],"fieldset-classes":[N.value,k.$attrs["fieldset-classes"]],"keep-floating-label":!!s.value,"onUpdate:modelValue":E},{leftIcon:t.withCtx(()=>[t.renderSlot(k.$slots,"lefticon")]),righticon:t.withCtx(({handleClean:K})=>[t.renderSlot(k.$slots,"righticon",{handleClean:K})]),_:3},8,["id","data-cy","label-text","model-value","is-valid","disabled","placeholder","with-left-icon","with-right-icon","border","radius","input-class","fieldset-classes","keep-floating-label"])]}),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,(U,K)=>(t.openBlock(),t.createBlock(ln,{key:K,active:t.unref(u)===K,class:"tw-m-1 tw-rounded-[5px] tw-px-5 tw-py-10px hover:tw-cursor-pointer",onClick:he=>M(U,K),onMouseover:he=>u.value=K},{default:t.withCtx(()=>[t.createElementVNode("span",{innerHTML:U.label},null,8,fp)]),_:2},1032,["active","onClick","onMouseover"]))),128))]),_:3},8,["class","data-cy","dropdown-classes","open-dropdown","keep-state"]))}}),wp=(e,{attrs:o})=>{e={...ae(),...e};const{width:n,height:a}=e;return t.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14.507 17",width:`${n}`,height:`${a}`,class:e.class??"","aria-hidden":o["aria-hidden"]??"true"},t.h("g",{fill:"none",stroke:`${o["stroke-color"]??"#222"}`,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":`${o["stroke-width"]??"0.8"}`},[t.h("path",{d:"M7.25.55h0a6.69 6.69 0 0 1 4.6 11.549l-4.6 4.351-4.6-4.35A6.69 6.69 0 0 1 7.25.55Z"}),t.h("path",{d:"M9.684 6.583a2.43 2.43 0 1 1-2.43-2.43 2.43 2.43 0 0 1 2.43 2.43Z"})]))},bp={style:{height:"520px"}},gp=t.createElementVNode("h2",{class:"tw-mt-5"},"Google Autocomplete - Bordered",-1),yp={class:"tw-relative"},kp=t.createElementVNode("h2",{class:"tw-my-5"},"Autocomplete - All Bordered",-1),$p=["onClick"],Vp=t.createElementVNode("h2",{class:"tw-my-5"},"Autocomplete - All Bordered Thick",-1),Cp={class:"tw-bg-blue-500 tw-p-5"},Ep=t.defineComponent({__name:"AutocompleteSection",setup(e){const o=t.ref({id:"",label:"initialValue"}),n=t.ref(),a=t.ref(),l=async r=>(console.log("callbackFn => ",r),[{id:1,label:"firstOption"},{id:2,label:"secondOption"},{id:3,label:"thirdOption"}]),i=async r=>(console.log(r),[{id:1,label:"firstOption"},{id:2,label:"secondOption"},{id:3,label:"thirdOption"}]),s=r=>{console.log({selectedEl:r})};return(r,d)=>(t.openBlock(),t.createElementBlock("div",bp,[t.createVNode(_e,{id:"autocomplete_1",label:"Cities","model-value":o.value,"on-input-change-cb":l},null,8,["model-value"]),gp,t.createElementVNode("div",yp,[t.createVNode(_e,{id:"autocomplete_2","model-value":o.value,"fieldset-classes":"!tw-border-0",theme:"bordered","on-input-change-cb":i,"on-option-selected-cb":s},{lefticon:t.withCtx(()=>[t.createVNode(t.unref(pt),{class:"text-input-icon left md",width:15,height:15})]),_:1},8,["model-value"]),t.createVNode(G,{class:"tw-absolute tw-right-0 tw-top-0"},{default:t.withCtx(()=>[t.createTextVNode(" Cerca ")]),_:1})]),kp,t.createVNode(_e,{id:"header_autocomplete_places",modelValue:n.value,"onUpdate:modelValue":d[0]||(d[0]=m=>n.value=m),placeholder:"An all bordered autocomplete",border:!0,theme:"all-bordered","on-input-change-cb":l},{lefticon:t.withCtx(()=>[t.createVNode(t.unref(wp),{class:"text-input-icon left md",width:15,height:15})]),righticon:t.withCtx(({handleClean:m})=>[n.value&&n.value.label.length>0?(t.openBlock(),t.createElementBlock("span",{key:0,class:"text-input-icon right sm",onClick:t.withModifiers(c=>{m(),n.value.label=""},["stop"])},[t.createVNode(t.unref(Oe),{width:15,height:15})],8,$p)):t.createCommentVNode("",!0)]),_:1},8,["modelValue"]),Vp,t.createElementVNode("div",Cp,[t.createVNode(_e,{id:"address",modelValue:a.value,"onUpdate:modelValue":d[1]||(d[1]=m=>a.value=m),theme:"all-bordered-thick",placeholder:"Insert an address","on-input-change-cb":i,"on-option-selected-cb":s},null,8,["modelValue"])])]))}}),Np=t.defineComponent({name:"BasePaper"}),_p={class:"base-paper"};function Sp(e,o,n,a,l,i){return t.openBlock(),t.createElementBlock("div",_p,[t.renderSlot(e.$slots,"content",{},void 0,!0)])}const rn=S(Np,[["render",Sp],["__scopeId","data-v-7293fd3b"]]),Bp=t.defineComponent({name:"PaperSection",components:{BasePaper:rn}}),xp=t.createElementVNode("div",{style:{width:"200px",height:"300px"}},null,-1);function Tp(e,o,n,a,l,i){const s=t.resolveComponent("BasePaper");return t.openBlock(),t.createBlock(s,{class:"tw-my-5"},{content:t.withCtx(()=>[xp]),_:1})}const Op=S(Bp,[["render",Tp]]),Lp=t.defineComponent({name:"BaseUploadFile",components:{BaseFloatingLabel:Te},inheritAttrs:!1,props:{withMargin:{type:Boolean,default:!0},labelText:{type:String,default:""},clear:{type:Boolean,default:!1}},emits:["cleared","uploaded"],data(){return{filename:""}},watch:{clear(e){e&&(this.filename="",this.$emit("cleared"))}},methods:{handleInput({target:e}){if(!e)return;const o=e.files;o!=null&&o.length&&(this.filename=o[0].name,this.$emit("uploaded",o[0]))}}}),Ap={class:"tw-pointer-events-none tw-absolute -tw-top-5px tw-bottom-0 tw-left-0 tw-right-0 tw-m-0 tw-h-[47px] tw-overflow-hidden tw-rounded-xs tw-border tw-border-dashed tw-border-w-secondary tw-px-2 tw-py-0 tw-text-start"},Mp={class:"tw-invisible tw-float-none tw-ml-2 tw-block tw-h-3 tw-w-auto tw-max-w-full tw-overflow-hidden tw-whitespace-nowrap tw-p-0 tw-text"},Ip=["innerHTML"],Rp={class:"upload-file-input tw-flex tw-h-[42px] tw-w-full tw-cursor-pointer tw-items-center tw-justify-center tw-rounded-xs tw-bg-w-lavender"},Pp=["id","multiple","accept"];function vp(e,o,n,a,l,i){const s=t.resolveComponent("BaseFloatingLabel");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["base-upload-file-wrapper tw-relative",[{"mt-10":e.withMargin},e.$attrs.class]])},[t.createElementVNode("fieldset",Ap,[t.createElementVNode("legend",Mp,[t.createElementVNode("span",{class:"tw-visible tw-inline-block tw-px-5px tw-opacity-0",innerHTML:e.labelText},null,8,Ip)])]),e.labelText?(t.openBlock(),t.createBlock(s,{key:0,class:t.normalizeClass(e.$attrs["floating-label-classes"]),"label-text":e.labelText,"label-state":"floating-label"},null,8,["class","label-text"])):t.createCommentVNode("",!0),t.createElementVNode("label",Rp,[t.createElementVNode("input",{id:e.$attrs.id,multiple:e.$attrs.multiple,type:"file",class:"tw-hidden",accept:e.$attrs.accept,onInput:o[0]||(o[0]=(...r)=>e.handleInput&&e.handleInput(...r))},null,40,Pp),t.renderSlot(e.$slots,"label",{filename:e.filename})])],2)}const dn=S(Lp,[["render",vp]]),Dp=["innerHTML"],zp=t.defineComponent({__name:"UploadBtnSection",setup(e){return(o,n)=>(t.openBlock(),t.createBlock(dn,{"label-text":"CV"},{label:t.withCtx(({filename:a})=>[t.createElementVNode("span",{innerHTML:a||"Upload file"},null,8,Dp)]),_:1}))}}),jp={class:"tw-list-none tw-text"},Fp=["onClick"],Up=["href"],Hp=t.defineComponent({__name:"UiKitSidebar",props:{items:{}},setup(e){const o=t.ref("");t.onBeforeMount(()=>{o.value=window.location.hash.slice(1)}),t.onMounted(()=>{setTimeout(()=>{var a;document&&o.value&&((a=document.getElementById(o.value))==null||a.scrollIntoView({behavior:"smooth"}))},1e3)});const n=e;return(a,l)=>(t.openBlock(),t.createElementBlock("ul",jp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.items,(i,s)=>(t.openBlock(),t.createElementBlock("li",{key:i.id+"_"+s,class:t.normalizeClass(["tw-flex tw-h-8 tw-items-center tw-border-b-0 tw-border-l tw-border-r-0 tw-border-t-0 tw-border-solid tw-pl-3",o.value===i.id?"tw-border-l-2 tw-border-w-primary tw-font-semibold tw-text-w-primary":"tw-border-gray-200 hover:tw-border-l-w-secondary"]),onClick:t.withModifiers(r=>o.value=i.id,["stop"])},[t.createElementVNode("a",{class:"tw-w-full",href:"#"+i.id},t.toDisplayString(i.label),9,Up)],10,Fp))),128))]))}}),qp={class:"tw-grid tw-grid-cols-3 tw-gap-5"},Wp=t.defineComponent({__name:"SnackbarSection",setup(e){const o=t.defineAsyncComponent(()=>Promise.resolve().then(()=>Hm)),n=t.reactive({openSuccessSnackbar:!1,openInfoSnackbar:!1,openWarningSnackbar:!1,openErrorSnackbar:!1});return(a,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",qp,[t.createElementVNode("div",null,[t.createVNode(G,{"btn-class":"tw-btn-casaclick",onClick:l[0]||(l[0]=i=>n.openSuccessSnackbar=!0)},{default:t.withCtx(()=>[t.createTextVNode(" Success ")]),_:1})]),t.createElementVNode("div",null,[t.createVNode(G,{"btn-class":"tw-btn-w-warning",onClick:l[1]||(l[1]=i=>n.openWarningSnackbar=!0)},{default:t.withCtx(()=>[t.createTextVNode(" Warning ")]),_:1})]),t.createElementVNode("div",null,[t.createVNode(G,{"btn-class":"tw-btn-w-primary",onClick:l[2]||(l[2]=i=>n.openInfoSnackbar=!0)},{default:t.withCtx(()=>[t.createTextVNode(" Info ")]),_:1})]),t.createElementVNode("div",null,[t.createVNode(G,{"btn-class":"tw-btn-w-danger",onClick:l[3]||(l[3]=i=>n.openErrorSnackbar=!0)},{default:t.withCtx(()=>[t.createTextVNode(" Error ")]),_:1})])]),n.openSuccessSnackbar?(t.openBlock(),t.createBlock(t.unref(o),{key:0,type:"success",title:"Success",body:"You have successfully completed your task",onSnackbarHidden:l[4]||(l[4]=i=>n.openSuccessSnackbar=!1)})):t.createCommentVNode("",!0),n.openWarningSnackbar?(t.openBlock(),t.createBlock(t.unref(o),{key:1,type:"warning",title:"Warning",body:"There is a warning we want to tell you about",onSnackbarHidden:l[5]||(l[5]=i=>n.openWarningSnackbar=!1)})):t.createCommentVNode("",!0),n.openInfoSnackbar?(t.openBlock(),t.createBlock(t.unref(o),{key:2,type:"info",title:"Info",body:"There is an info about the last operation you did",onSnackbarHidden:l[6]||(l[6]=i=>n.openInfoSnackbar=!1)})):t.createCommentVNode("",!0),n.openErrorSnackbar?(t.openBlock(),t.createBlock(t.unref(o),{key:3,type:"error",title:"Error",body:"There was an error in your last operation",onSnackbarHidden:l[7]||(l[7]=i=>n.openErrorSnackbar=!1)})):t.createCommentVNode("",!0)],64))}}),Kp=["id","aria-labelledby"],Gp={class:"tw-overflow-hidden"},Jp={class:"tw-mb-0"},cn=t.defineComponent({inheritAttrs:!1,__name:"BaseAccordionContent",props:{id:{},accordionOpen:{type:Boolean}},setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("div",{id:`accordion-text-${o.id}`,role:"region","aria-labelledby":`accordion-title-${o.id}`,class:t.normalizeClass(["tw-grid tw-overflow-hidden tw-px-5 tw-text-sm tw-text-w-black tw-transition-[grid-template-rows,opacity,padding,margin] tw-duration-300 tw-ease-in-out",[o.accordionOpen?o.$attrs["accordion-open-classes"]:o.$attrs["accordion-close-classes"],o.accordionOpen?"tw-grid-rows-[1fr] tw-opacity-100":"tw-grid-rows-[0fr] tw-opacity-0",o.$attrs["accordion-classes"]]])},[t.renderSlot(o.$slots,"custom_accordion_content",{isOpen:o.accordionOpen},()=>[t.createElementVNode("div",Gp,[t.createElementVNode("p",Jp,[t.renderSlot(o.$slots,"default",{isOpen:o.accordionOpen})])])])],10,Kp))}}),Qp=["id"],Yp=["aria-expanded","aria-controls"],pn=t.defineComponent({inheritAttrs:!1,__name:"BaseAccordionBtn",props:{id:{},arrowWidth:{default:12},onContainerClickExpand:{type:Boolean,default:!1},accordionOpen:{type:Boolean,default:!1},toggleAccordion:{}},emits:["click"],setup(e,{emit:o}){const n=o;return(a,l)=>(t.openBlock(),t.createElementBlock("div",{id:`${a.id}`,class:t.normalizeClass(["tw-flex tw-items-center tw-justify-around",[a.$attrs["btn-wrapper-classes"],a.onContainerClickExpand&&"tw-cursor-pointer"]]),onClick:l[1]||(l[1]=i=>a.onContainerClickExpand&&a.toggleAccordion())},[t.renderSlot(a.$slots,"custom_content"),t.renderSlot(a.$slots,"custom_btn",{btnId:`btn-${a.id}`,isOpen:a.accordionOpen,toggleAccordion:a.toggleAccordion},()=>[t.createElementVNode("button",{type:"button",class:t.normalizeClass(["tw-bg-transparent",a.$attrs["btn-classes"]]),"aria-expanded":a.accordionOpen,"aria-controls":`accordion-text-${a.id}`,onClick:l[0]||(l[0]=t.withModifiers(i=>{a.toggleAccordion(),n("click")},["prevent","stop"]))},[t.createVNode(t.unref(Ae),{class:t.normalizeClass(["tw-transition-transform motion-reduce:tw-transition-none",[a.accordionOpen&&"tw-rotate-180",a.$attrs["arrow-classes"]]]),width:a.arrowWidth,height:a.arrowWidth},null,8,["class","width","height"])],10,Yp)])],10,Qp))}}),Xp={key:0},Zp=["id","data-cy","aria-expanded","aria-controls"],em=["itemprop","innerHTML"],Ge=t.defineComponent({inheritAttrs:!1,__name:"BaseAccordionItem",props:{title:{},id:{},active:{type:Boolean,default:!1},arrowWidth:{default:12},onContainerClickExpand:{type:Boolean,default:!1}},emits:["click","accordionOpened","accordionClosed","update:accordionState"],setup(e,{emit:o}){const n=o,a=t.ref(!1),l=e;t.watch(a,s=>{n(s?"accordionOpened":"accordionClosed",l),n("update:accordionState",s),a.value=s}),t.watch(()=>l.active,s=>{a.value=s},{immediate:!0});const i=()=>{a.value=!a.value};return(s,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(s.$attrs["root-classes"])},[!s.$slots.custom_content&&!s.$slots.custom_btn&&!s.$slots.custom_accordion?(t.openBlock(),t.createElementBlock("h2",Xp,[t.createElementVNode("button",{id:`accordion-title-${s.id}`,type:"button",class:t.normalizeClass(["tw-flex tw-w-full tw-items-center tw-justify-between tw-bg-white tw-px-5 tw-py-4 tw-text-left tw-font-semibold tw-transition-colors active:max-sm:tw-bg-w-cultured hover:sm:tw-bg-w-cultured",s.$attrs["btn-classes"]]),"data-cy":s.$attrs["data-cy"],"aria-expanded":a.value,"aria-controls":`accordion-text-${s.id}`,onClick:r[0]||(r[0]=t.withModifiers(d=>{i(),n("click")},["prevent","stop"]))},[t.createElementVNode("span",{itemprop:s.$attrs.itemprop,innerHTML:s.title},null,8,em),t.createVNode(t.unref(Ae),{class:t.normalizeClass(["tw-flex-shrink-0 tw-transition-transform motion-reduce:tw-transition-none",[a.value&&"tw-rotate-180",s.$attrs["arrow-classes"]]]),"arrow-classes":s.$attrs["arrow-classes"],width:s.arrowWidth,height:s.arrowWidth},null,8,["class","arrow-classes","width","height"])],10,Zp)])):(s.$slots.custom_content||s.$slots.custom_btn)&&!s.$slots.custom_accordion?(t.openBlock(),t.createBlock(pn,{key:1,id:s.id,"btn-wrapper-classes":s.$attrs["btn-wrapper-classes"],"btn-classes":s.$attrs["btn-classes"],"arrow-classes":s.$attrs["arrow-classes"],"toggle-accordion":i,"on-container-click-expand":s.onContainerClickExpand},{custom_content:t.withCtx(()=>[t.renderSlot(s.$slots,"custom_content")]),custom_btn:t.withCtx(()=>[t.renderSlot(s.$slots,"custom_btn",{btnId:`btn-${s.id}`,isOpen:a.value,toggleAccordion:i})]),_:3},8,["id","btn-wrapper-classes","btn-classes","arrow-classes","on-container-click-expand"])):t.createCommentVNode("",!0),t.renderSlot(s.$slots,"custom_accordion",{id:s.id,isOpen:a.value,toggleAccordion:i},()=>[t.createVNode(cn,{id:s.id,"accordion-open":a.value,"accordion-open-classes":s.$attrs["accordion-open-classes"],"accordion-close-classes":s.$attrs["accordion-close-classes"],"accordion-classes":s.$attrs["accordion-classes"]},{custom_accordion_content:t.withCtx(()=>[t.renderSlot(s.$slots,"custom_accordion_content",{isOpen:a.value})]),default:t.withCtx(()=>[t.renderSlot(s.$slots,"default",{isOpen:a.value})]),_:3},8,["id","accordion-open","accordion-open-classes","accordion-close-classes","accordion-classes"])])],2))}}),mn=t.defineComponent({__name:"BaseAccordion",props:{autoClose:{type:Boolean,default:!0}},setup(e){const o=e,n=t.ref(null),a=(l,i)=>{n.value&&i&&o.autoClose&&(i[n.value.id].active=!1),n.value=l,i&&(i[l.id].active=!0)};return(l,i)=>t.renderSlot(l.$slots,"default",{updatePrev:a,prev:n.value})}}),tm=t.createElementVNode("h2",{id:"accordion",class:"tw-mb-15px tw-mt-10"},"Accordion",-1),om=t.createElementVNode("h3",{class:"tw-mb-15px"},"Listing multi-typology",-1),nm=t.createElementVNode("h2",null,"Base Accordion - at most one opened",-1),am=t.defineComponent({__name:"AccordionSection",setup(e){const o=[{id:1,title:"Dove posso valutare casa?",text:"If you go over your organisations or user limit, a member of the team will reach out about bespoke pricing. In the meantime, our collaborative features won't appear in accounts or users that are over the 100-account or 1,000-user limit.Il nostro servizio di valutazione è sempre accessibile dal tuo pc o dispositivo mobile. Inoltre, con l'App mobile Wikicasa è disponibile il servizio valuta con foto, che fornisce una stima più precisa del prezzo analizzando una o più foto della casa."},{id:2,title:"Chi decide il valore di una casa?",text:`La valutazione immobiliare online fornisce solo una stima approssimativa del valore del tuo immobile attraverso i nostri algoritmi. Tramite il servizio di valutazione di Wikicasa, tuttavia, è possibile richiedere una consulenza gratuita da parte di un professionista immobiliare. Per richiederla basta selezionare "Sï" alla domanda "Vuoi una consulenza gratuita? ". Sarete contattati da un professionista attivo nella zona in cui è situato l'immobile, il quale effettuerà la valutazione, a titolo gratuito.`},{id:3,title:"Quali sono i criteri per la valutazione del mio immobile?",text:"L'algoritmo è in grado, grazie all'intelligenza artificiale, di individuare tutti gli annunci simili all'immobile da valutare presenti in tempo reale sul portale nella zona di riferimento. I prezzi degli annunci vengono combinati con dati provenienti fonti autorevoli (OMI, Agenzia delle Entrate), ottenendo una stima del prezzo. La valutazione ottenuta online non sostituisce in alcun modo la valutazione immobiliare eseguita da un professionista."},{id:4,title:"Come valutare un immobile?",text:"Per una prima stima del valore di un immobile sono necessari soltanto 4 dati: indirizzo del tuo appartamento o villa, tipologia, metri quadri e numero di locali Tramite questi dati, Wikicasa.it calcola il prezzo stimato, valore massimo e valore minimo dell'immobile.",active:!0},{id:5,title:"Perchè valutare la propria casa online?",text:"Valutare la tua casa online porta numerosi benefici: nonostante la stima non possa sostituire la valutazione eseguita da un professionista, in soli 30 secondi è possibile calcolare il prezzo indicativo del proprio immobile. Si tratta di uno strumento molto utile quando si vuole vendere o comprare casa, ma non solo: puoi usare la nostra valutazione per tracciare il valore dei tuoi investimenti, risparmiando tempo nell'analisi del valore degli immobili."}],n=[{title:"Case",checkboxProps:{0:{id:"0",label:"Qualsiasi",reset:!0,checked:!0},1:{id:"1",label:"Appartamenti"},2:{id:"2",label:"Ville"},3:{id:"3",label:"Ville a schiera"}}},{title:"Locali Commerciali",checkboxProps:{0:{id:"0",label:"Qualsiasi",reset:!0},1:{id:"1",label:"Uffici"},2:{id:"2",label:"Negozi"},3:{id:"3",label:"Palazzine uffici"}}}],a=o.reduce((s,r)=>(s[r.id]=r,s),{}),l=t.ref([]),i=t.ref("");return(s,r)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[tm,(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(o,(d,m)=>t.createVNode(Ge,{id:`faqs-${m}`,key:`accordion-item-${m}`,"root-classes":"tw-mb-5",title:d.title,active:d.active},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(d.text),1)]),_:2},1032,["id","title","active"])),64)),om,(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(n,(d,m)=>t.createVNode(Ge,{id:`multiTypology-${m}`,key:`accordion_${m}`,title:d.title,"root-classes":"last:tw-pb-[100px]"},{default:t.withCtx(()=>[t.createVNode(St,{modelValue:l.value,"onUpdate:modelValue":r[0]||(r[0]=c=>l.value=c),"group-id":d.title,"values-obj":d.checkboxProps,"form-check-inline":!1,reset:i.value!==d.title,onCheckedGroup:r[1]||(r[1]=c=>i.value=c)},null,8,["modelValue","group-id","values-obj","reset"])]),_:2},1032,["id","title"])),64)),nm,t.createVNode(mn,null,{default:t.withCtx(({updatePrev:d})=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(a),(m,c,p)=>(t.openBlock(),t.createBlock(Ge,{id:m.id,key:`accordion-item-${p}`,"root-classes":"tw-mb-5",title:m.title,active:m.active,onAccordionOpened:h=>d(h,t.unref(a))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(m.text),1)]),_:2},1032,["id","title","active","onAccordionOpened"]))),128))]),_:1})],64))}}),sm=t.defineComponent({name:"WikicasaUiKit",components:{AccordionSection:am,SnackbarSection:Wp,UiKitSidebar:Hp,UploadBtnSection:zp,PaperSection:Op,AutocompleteSection:Ep,CheckboxBtn:Ke,PaginationSection:mp,ToggleSection:ep,ModalSection:dc,SliderSection:Tc,BadgeSection:ec,CheckboxSection:Kd,RadioSection:ti,DropdownSection:Fr,TextareaSection:ql,CardSection:Za,TextInputSection:el,ButtonsSection:bl,TabSection:xl,AlertSection:Jl,TooltipSection:cr},setup(){const{isSmall:e}=on();return{isSmall:e}},data(){return{checkboxValue:!1,checkboxValue2:!1,checkboxValue3:!1,checkboxValue4:!1,showMobileSidebar:!1,sidebarItems:[{id:"palette",label:"Palette"},{id:"typography",label:"Typography"},{id:"headings",label:"Headings"},{id:"text",label:"Text"},{id:"wiki-logos",label:"Logos"},{id:"cards",label:"Cards"},{id:"paper",label:"Paper"},{id:"buttons",label:"Buttons"},{id:"pagination",label:"Pagination"},{id:"tabs",label:"Tabs"},{id:"tooltip",label:"Tooltip"},{id:"alert",label:"Alert"},{id:"snackbar",label:"Snackbar"},{id:"badge",label:"Badge"},{id:"modal",label:"Modal"},{id:"upload-btn",label:"Upload Button"},{id:"input",label:"Input"},{id:"dropdown",label:"Dropdown"},{id:"autocomplete",label:"Autocomplete"},{id:"radio",label:"Radio Button"},{id:"single-checkbox",label:"Single Checkbox"},{id:"checkbox",label:"Checkbox"},{id:"slider",label:"Slider"},{id:"toggle",label:"Toggle"},{id:"accordion",label:"Accordion"}],sidebarAnimationIn:!1,sidebarAnimationOut:!1}},methods:{delayedCloseMobileSidebar(){this.sidebarAnimationOut=!0,this.sidebarAnimationIn=!1,setTimeout(()=>{this.showMobileSidebar=!1,this.sidebarAnimationOut=!1},100)},delayedOpenMobileSidebar(){this.showMobileSidebar=!0,this.sidebarAnimationOut=!1,setTimeout(()=>{this.sidebarAnimationIn=!0},100)}}}),lm=[t.createElementVNode("svg",{viewBox:"0 0 10 10",class:"overflow-visible tw-h-4 tw-w-4"},[t.createElementVNode("path",{d:"M0 0L10 10M10 0L0 10",fill:"none",stroke:"#222222","stroke-width":"2","stroke-linecap":"round"})],-1)],rm={class:"tw-col-span-12 tw-overflow-auto tw-px-4 tw-no-scrollbar sm:tw-col-start-5 sm:tw-col-end-11 md:tw-col-start-4 lg:tw-col-start-3"},im={class:"tw-absolute tw-top-0 tw-flex tw-w-full tw-items-center tw-justify-between tw-bg-white tw-px-15px tw-py-10px tw-shadow sm:tw-static sm:tw-px-0 sm:tw-py-0 sm:tw-shadow-none"},dm=t.createElementVNode("h1",{class:"tw-inline-block"},"UI Kit",-1),cm={class:"tw-inline-block sm:tw-hidden"},pm=[t.createElementVNode("path",{d:"M5 6h14M5 12h14M5 18h14",fill:"none",stroke:"#000","stroke-width":"2","stroke-linecap":"round"},null,-1)],mm={id:"uikit-body",class:"tw-h-full"},um=t.createStaticVNode('<h2 id="palette" class="tw-mt-12 sm:tw-my-6">Palette</h2><div class="tw-my-5 tw-grid tw-grid-cols-1 tw-gap-5 sm:tw-grid-cols-2 md:tw-grid-cols-3 lg:tw-grid-cols-4"><div class="tw-flex tw-flex-col tw-overflow-hidden tw-rounded tw-border tw-border-solid tw-border-slate-300"><div class="color tw-h-24 tw-bg-w-primary"></div><div class="tw-px-2 tw-pt-4"><p>Ultramarine Blue</p><p>#2B5dFF</p></div></div><div class="tw-flex tw-flex-col tw-overflow-hidden tw-rounded tw-border tw-border-solid tw-border-slate-300"><div class="color w-100 tw-h-24 tw-bg-w-secondary"></div><div class="tw-px-2 tw-pt-4"><p>Light Steel Blue</p><p>#B4C2F0</p></div></div><div class="tw-flex tw-flex-col tw-overflow-hidden tw-rounded tw-border tw-border-solid tw-border-slate-300"><div class="color w-100 tw-h-24 tw-bg-w-dark-primary"></div><div class="tw-px-2 tw-pt-4"><p>Space Cadet</p><p>#2A3761</p></div></div><div class="tw-flex tw-flex-col tw-overflow-hidden tw-rounded tw-border tw-border-solid tw-border-slate-300"><div class="color w-100 tw-h-24 tw-bg-w-lavender"></div><div class="tw-px-2 tw-pt-4"><p>Lavender Web</p><p>#E9EFFE</p></div></div><div class="tw-flex tw-flex-col tw-overflow-hidden tw-rounded tw-border tw-border-solid tw-border-slate-300"><div class="color w-100 tw-h-24 tw-bg-w-cultured"></div><div class="tw-px-2 tw-pt-4"><p>Cultured</p><p>#F5F7FA</p></div></div><div class="tw-flex tw-flex-col tw-overflow-hidden tw-rounded tw-border tw-border-solid tw-border-slate-300"><div class="color w-100 tw-h-24 tw-bg-white"></div><div class="tw-px-2 tw-pt-4"><p>White</p><p>#FFFFFF</p></div></div><div class="tw-flex tw-flex-col tw-overflow-hidden tw-rounded tw-border tw-border-solid tw-border-slate-300"><div class="color w-100 tw-h-24 tw-bg-w-carbon"></div><div class="tw-px-2 tw-pt-4"><p>Charcoal</p><p>#3C474D</p></div></div><div class="tw-flex tw-flex-col tw-overflow-hidden tw-rounded tw-border tw-border-solid tw-border-slate-300"><div class="color w-100 tw-h-24 tw-bg-w-gray"></div><div class="tw-px-2 tw-pt-4"><p>Slate Gray</p><p>#6D7687</p></div></div><div class="tw-flex tw-flex-col tw-overflow-hidden tw-rounded tw-border tw-border-solid tw-border-slate-300"><div class="color w-100 tw-h-24 tw-bg-w-black"></div><div class="tw-px-2 tw-pt-4"><p>Eerie Black</p><p>#222222</p></div></div><div class="tw-flex tw-flex-col tw-overflow-hidden tw-rounded tw-border tw-border-solid tw-border-slate-300"><div class="color w-100 tw-h-24 tw-bg-w-warning"></div><div class="tw-px-2 tw-pt-4"><p>Orange Yellow Crayola</p><p>#FFD167</p></div></div><div class="tw-flex tw-flex-col tw-overflow-hidden tw-rounded tw-border tw-border-solid tw-border-slate-300"><div class="color w-100 tw-h-24 tw-bg-w-danger"></div><div class="tw-px-2 tw-pt-4"><p>Flery Rose</p><p>#FA4F64</p></div></div></div><h2 id="typography" class="tw-my-6">Tipografia</h2><div class="tw-flex tw-flex-col"><p class="tw-text-16 tw-font-semibold">Semibold</p><p class="tw-text-16 tw-font-medium">Medium</p><p class="tw-text-16 tw-font-regular">Regular</p></div><h2 id="headings" class="tw-my-6">Dimensione testi - Headings</h2><div id="font-weights-headings" class="tw-grid tw-grid-cols-1 tw-gap-5 md:tw-grid-cols-2"><div><h1 class="tw-text-w-primary">H1</h1><p class="tw-text-30/[36px] tw-font-semibold"> 30px - interlinea: 36px Lorem ipsum dolor sit amet </p></div><div><h2 class="tw-text-w-primary">H2</h2><p class="tw-text-26/[30px] tw-font-semibold"> 26px - interlinea: 30px Lorem ipsum dolor sit amet </p></div><div><h3 class="tw-text-w-primary">H3</h3><p class="tw-text-22/[26px] tw-font-semibold"> 22px - interlinea: 26px Lorem ipsum dolor sit amet </p></div><div><h4 class="tw-text-w-primary">H4</h4><p class="tw-text-18/[22px] tw-font-semibold"> 18px - interlinea: 22px Lorem ipsum dolor sit amet </p></div><div><h5 class="tw-text-w-primary">H5</h5><p class="tw-text-14/[18px] tw-font-semibold"> 14px - interlinea: 18px Lorem ipsum dolor sit amet </p></div><div><h6 class="tw-text-w-primary">H6</h6><p class="tw-text-12/[16px] tw-font-semibold"> 12px - interlinea: 16px Lorem ipsum dolor sit amet </p></div></div><h2 id="text" class="tw-my-6">Dimensione testi - Classi</h2><div id="font-weights" class="tw-grid tw-grid-cols-1 tw-gap-5 md:tw-grid-cols-2"><div><p class="tw-text-30 tw-font-semibold tw-text-w-primary">f-30</p><p class="tw-text-30"> 30px - interlinea: 36px Lorem ipsum dolor sit amet </p></div><div><p class="tw-text-26 tw-font-semibold tw-text-w-primary">f-26</p><p class="tw-text-26"> 26px - interlinea: 32px Lorem ipsum dolor sit amet </p></div><div><p class="tw-text-24 tw-font-semibold tw-text-w-primary">f-24</p><p class="tw-text-24"> 24px - interlinea: 30px Lorem ipsum dolor sit amet </p></div><div><p class="tw-text-22 tw-font-semibold tw-text-w-primary">f-22</p><p class="tw-text-22"> 22px - interlinea: 28px Lorem ipsum dolor sit amet </p></div><div><p class="tw-text-20 tw-font-semibold tw-text-w-primary">f-20</p><p class="tw-text-20"> 20px - interlinea: 26px Lorem ipsum dolor sit amet </p></div><div><p class="tw-text-18 tw-font-semibold tw-text-w-primary">f-18</p><p class="tw-text-18"> 18px - interlinea: 22px Lorem ipsum dolor sit amet </p></div><div><p class="tw-text-16 tw-font-semibold tw-text-w-primary">f-16</p><p class="tw-text-16"> 16px - interlinea: 20px Lorem ipsum dolor sit amet </p></div><div><p class="tw-text-14 tw-font-semibold tw-text-w-primary">f-14</p><p class="tw-text"> 14px - interlinea: 18px Lorem ipsum dolor sit amet </p></div><div><p class="tw-text-12 tw-font-semibold tw-text-w-primary">f-12</p><p class="tw-text-12"> 12px - interlinea: 16px Lorem ipsum dolor sit amet </p></div><div><p class="tw-text-10 tw-font-semibold tw-text-w-primary">f-10</p><p class="tw-text-10"> 10px - interlinea: 14px Lorem ipsum dolor sit amet </p></div></div><h2 id="cards">Cards</h2>',9),hm=t.createElementVNode("h2",{id:"paper",class:"tw-my-5"},"Paper",-1),fm=t.createElementVNode("h2",{id:"buttons"},"Bottoni",-1),wm=t.createElementVNode("h2",{id:"pagination",class:"tw-my-5"},"Paginazione",-1),bm=t.createElementVNode("h2",{id:"tabs",class:"tw-mt-5"},"Tabs",-1),gm=t.createElementVNode("h2",{id:"tooltip",class:"tw-mt-5"},"Tooltip",-1),ym=t.createElementVNode("h2",{id:"alert",class:"tw-my-5"},"Avvisi",-1),km=t.createElementVNode("h2",{id:"snackbar",class:"tw-my-5"},"Snackbar",-1),$m=t.createElementVNode("h2",{id:"badge",class:"tw-my-5"},"Badge",-1),Vm=t.createElementVNode("h2",{id:"modal",class:"tw-my-5"},"Modal",-1),Cm=t.createElementVNode("h2",{id:"upload-btn",class:"tw-my-5"},"Upload Button",-1),Em=t.createElementVNode("h2",{id:"input",class:"tw-my-5"},"Input",-1),Nm=t.createElementVNode("h2",{id:"dropdown",class:"tw-my-5"},"Dropdown",-1),_m=t.createElementVNode("h2",{id:"autocomplete",class:"tw-my-5"},"Autocomplete",-1),Sm=t.createElementVNode("h2",{id:"radio"},"Radio",-1),Bm=t.createElementVNode("h2",{id:"single-checkbox",class:"tw-my-5"},"Checkbox Singoli",-1),xm={class:"tw-grid tw-grid-cols-2 tw-gap-4 sm:tw-grid-cols-4"},Tm=t.createElementVNode("h2",{id:"checkbox",class:"tw-mt-5"},"Checkbox",-1),Om=t.createElementVNode("h2",{id:"slider"},"Slider",-1),Lm=t.createElementVNode("h2",{id:"toggle"},"Toggle",-1),Am=t.createElementVNode("div",{class:"tw-col-start-11 tw-col-end-13 tw-hidden sm:tw-block"}," Sidebar Right ",-1);function Mm(e,o,n,a,l,i){const s=t.resolveComponent("ui-kit-sidebar"),r=t.resolveComponent("card-section"),d=t.resolveComponent("paper-section"),m=t.resolveComponent("buttons-section"),c=t.resolveComponent("pagination-section"),p=t.resolveComponent("tab-section"),h=t.resolveComponent("tooltip-section"),u=t.resolveComponent("alert-section"),f=t.resolveComponent("snackbar-section"),C=t.resolveComponent("badge-section"),N=t.resolveComponent("modal-section"),V=t.resolveComponent("upload-btn-section"),E=t.resolveComponent("text-input-section"),M=t.resolveComponent("textarea-section"),D=t.resolveComponent("dropdown-section"),Y=t.resolveComponent("autocomplete-section"),k=t.resolveComponent("radio-section"),I=t.resolveComponent("checkbox-btn"),U=t.resolveComponent("checkbox-section"),K=t.resolveComponent("slider-section"),he=t.resolveComponent("toggle-section"),Je=t.resolveComponent("accordion-section");return t.openBlock(),t.createElementBlock("div",{id:"container",class:"tw-grid tw-h-full tw-w-full tw-translate-x-0 tw-grid-cols-12 tw-pt-5 sm:tw-px-5",onClick:o[6]||(o[6]=(...F)=>e.delayedCloseMobileSidebar&&e.delayedCloseMobileSidebar(...F))},[(t.openBlock(),t.createBlock(t.Teleport,{to:"body",disabled:!e.showMobileSidebar},[t.createElementVNode("div",{class:t.normalizeClass(["tw-overflow-auto tw-transition-transform",[{"tw-absolute tw-left-0 tw-top-0 tw-z-10 tw-flex tw-h-full tw-w-3/5 tw-flex-col tw-bg-white tw-pt-6 tw-shadow-lg ":e.showMobileSidebar},{"tw-mt-5 tw-hidden sm:tw-col-span-4 sm:tw-block md:tw-col-span-3 lg:tw-col-span-2":!e.showMobileSidebar},{"!tw-translate-x-0":e.sidebarAnimationIn},{"-tw-translate-x-full":e.isSmall}]])},[e.showMobileSidebar?(t.openBlock(),t.createElementBlock("button",{key:0,class:"tw-mr-5 tw-self-end tw-border-0",onClick:o[0]||(o[0]=t.withModifiers((...F)=>e.delayedCloseMobileSidebar&&e.delayedCloseMobileSidebar(...F),["stop"]))},lm)):t.createCommentVNode("",!0),t.createVNode(s,{items:e.sidebarItems},null,8,["items"])],2)],8,["disabled"])),t.createElementVNode("div",rm,[(t.openBlock(),t.createBlock(t.Teleport,{to:"body",disabled:!e.isSmall},[t.createElementVNode("div",im,[dm,t.createElementVNode("div",cm,[(t.openBlock(),t.createElementBlock("svg",{width:"24",height:"24",onClick:o[1]||(o[1]=t.withModifiers((...F)=>e.delayedOpenMobileSidebar&&e.delayedOpenMobileSidebar(...F),["stop"]))},pm))])])],8,["disabled"])),t.createElementVNode("div",mm,[um,t.createVNode(r),hm,t.createVNode(d),fm,t.createVNode(m),wm,t.createVNode(c),bm,t.createVNode(p),gm,t.createVNode(h),ym,t.createVNode(u),km,t.createVNode(f),$m,t.createVNode(C),Vm,t.createVNode(N),Cm,t.createVNode(V),Em,t.createVNode(E),t.createVNode(M),Nm,t.createVNode(D),_m,t.createVNode(Y),Sm,t.createVNode(k),Bm,t.createElementVNode("div",xm,[t.createVNode(I,{id:"checkbox",modelValue:e.checkboxValue,"onUpdate:modelValue":o[2]||(o[2]=F=>e.checkboxValue=F),label:"Checkbox"},null,8,["modelValue"]),t.createVNode(I,{id:"checkbox",modelValue:e.checkboxValue2,"onUpdate:modelValue":o[3]||(o[3]=F=>e.checkboxValue2=F),label:"Checkbox",required:"required"},null,8,["modelValue"]),t.createVNode(I,{id:"checkbox",modelValue:e.checkboxValue4,"onUpdate:modelValue":o[4]||(o[4]=F=>e.checkboxValue4=F),label:"Checkbox",required:"required","is-valid":!1},null,8,["modelValue"]),t.createVNode(I,{id:"checkbox",modelValue:e.checkboxValue3,"onUpdate:modelValue":o[5]||(o[5]=F=>e.checkboxValue3=F),label:"Checkbox","is-valid":!1},null,8,["modelValue"])]),Tm,t.createVNode(U),Om,t.createVNode(K),Lm,t.createVNode(he),t.createVNode(Je)])]),Am])}const Im=S(sm,[["render",Mm]]),Rm=ja({history:ea(),routes:[{path:"/",component:Im}]});t.createApp(gn).use(Rm).mount("#app");const Pm={class:"snackbar-container tw-fixed tw-bottom-10px tw-left-10px tw-z-[2000] max-sm:tw-left-0 max-sm:tw-w-full"},vm=["data-cy"],Dm=["src","alt"],zm={key:1,class:"snackbar-type-icon tw-bg-contain tw-bg-no-repeat"},jm={class:"snackbar-text tw-px-4 tw-py-0 tw-text tw-font-regular max-sm:tw-max-w-[80%] max-sm:tw-pr-0 sm:tw-text-16"},Fm=["innerHTML"],Um=["innerHTML"],Hm=Object.freeze(Object.defineProperty({__proto__:null,default:S(t.defineComponent({inheritAttrs:!1,__name:"BaseSnackbar",props:{type:{default:""},title:{},body:{},icon:{},timeout:{default:55e3},cb:{default:null}},emits:["snackbar-hidden"],setup(e,{emit:o}){const n=e,a=o,l=t.ref(null),i=t.ref(null),s=()=>{l.value&&l.value()},r=()=>{const d=i.value;d&&(d.classList.remove("snackbar-active"),d.classList.add("snackbar-hidden"),setTimeout(()=>{a("snackbar-hidden")},300))};return t.onBeforeMount(()=>{n.cb&&(l.value=n.cb),setTimeout(()=>{r()},n.timeout)}),(d,m)=>(t.openBlock(),t.createElementBlock("div",Pm,[t.createElementVNode("div",{ref_key:"snackbar",ref:i,"data-cy":d.$attrs["data-cy"],class:t.normalizeClass(["snackbar snackbar-active tw-flex tw-items-center tw-rounded-[5px] tw-px-4 tw-py-10px tw-font-medium tw-shadow hover:tw-cursor-pointer max-sm:tw-relative max-sm:tw-mx-10px max-sm:tw-my-0",d.type]),onClick:t.withModifiers(s,["stop"])},[d.icon?(t.openBlock(),t.createElementBlock("img",{key:0,src:d.icon.src,alt:`${d.icon.alt}`,width:"20",height:"20"},null,8,Dm)):t.createCommentVNode("",!0),d.type&&!d.icon?(t.openBlock(),t.createElementBlock("span",zm)):t.createCommentVNode("",!0),t.createElementVNode("div",jm,[d.title?(t.openBlock(),t.createElementBlock("p",{key:0,class:"tw-m-0",innerHTML:d.title},null,8,Fm)):t.createCommentVNode("",!0),d.body?(t.openBlock(),t.createElementBlock("p",{key:1,class:"tw-m-0",innerHTML:d.body},null,8,Um)):t.createCommentVNode("",!0)]),t.createElementVNode("button",{type:"button","data-cy":"base-snackbar-close-btn",class:"tw-bg-transparent max-sm:tw-absolute max-sm:tw-right-5",onClick:t.withModifiers(r,["stop"])},[t.createVNode(t.unref(Oe),{class:"snackbar-close-icon",width:20,height:20,"stroke-color":"#000"})])],10,vm)]))}}),[["__scopeId","data-v-81ca5c43"]])},Symbol.toStringTag,{value:"Module"}));x.AccessibleSelect=$o,x.BaseAccordion=mn,x.BaseAccordionBtn=pn,x.BaseAccordionContent=cn,x.BaseAccordionItem=Ge,x.BaseAlert=yo,x.BaseAutocomplete=_e,x.BaseBadge=tn,x.BaseButton=G,x.BaseCard=ho,x.BaseComplexToggle=Ne,x.BaseDropDown=mt,x.BaseFloatingLabel=Te,x.BaseIcon=Le,x.BaseInput=j,x.BaseNavItem=wo,x.BasePagination=sn,x.BasePaper=rn,x.BaseSlider=an,x.BaseTab=bo,x.BaseTextarea=go,x.BaseToggle=xt,x.BaseTooltip=le,x.BaseUploadFile=dn,x.CheckboxBtn=Ke,x.CheckboxGroup=St,x.RadioButton=Vo,x.RadioGroup=Co,x.SelectItem=ln,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
1
+ (function(s,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(s=typeof globalThis<"u"?globalThis:s||self,e(s.components={},s.Vue))})(this,function(s,e){"use strict";const m=e.defineComponent({name:"BaseIcon",props:{lazyLoading:{type:Boolean,default:!1},altAttribute:{type:String,default:""},iconName:{type:String,default:""},iconType:{type:String,default:"icon-md"},iconClass:{type:String,default:"tw-mr-5px"}}}),c=(o,n)=>{const a=o.__vccOpts||o;for(const[i,d]of n)a[i]=d;return a},u=["id","alt","src","width","height","loading"];function y(o,n,a,i,d,p){return e.openBlock(),e.createElementBlock("img",{id:o.$attrs.id,class:e.normalizeClass(["tw-inline-block",o.iconType,o.iconClass]),alt:o.altAttribute||o.$attrs.alt,style:e.normalizeStyle(o.$attrs.style),src:o.$attrs.src?o.$attrs.src:"",width:o.$attrs.width,height:o.$attrs.height,loading:o.lazyLoading?"lazy":"eager"},null,14,u)}const w=c(m,[["render",y],["__scopeId","data-v-5d8617bb"]]),g={viewBox:"0 0 128 128",class:"icon-spin tw-h-6 tw-w-6"},h=["stroke-width"],k=c(e.defineComponent({__name:"StaticSpinner",props:{thickness:{default:9},color:{default:"tw-stroke-white"}},setup(o){return(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["tw-m-auto tw-flex tw-items-center tw-justify-center",n.color])},[(e.openBlock(),e.createElementBlock("svg",g,[e.createElementVNode("circle",{class:"path",cx:"64",cy:"64",r:"42",fill:"none","stroke-width":n.thickness},null,8,h)]))],2))}}),[["__scopeId","data-v-a9cef034"]]),$=["id","data-cy","type","data-active","disabled","aria-labelledby"],b=e.defineComponent({__name:"BaseButton",props:{lazyLoadIcon:{type:Boolean,default:!0},btnClass:{default:""},iconName:{default:""},iconNameHovering:{default:""},iconClass:{default:"tw-mr-[5px]"},isEmpty:{type:Boolean,default:!1},keepActive:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["mouseover","mouseout","click"],setup(o){const n=o,a=e.ref(!1),i=e.ref("");e.onBeforeMount(()=>{i.value=n.iconName??""});const d=()=>{a.value=!0,n.iconNameHovering&&f(n.iconNameHovering)},p=()=>{a.value=!1,n.iconNameHovering&&f(n.iconName)},f=t=>{i.value=t};return(t,l)=>(e.openBlock(),e.createElementBlock("button",{id:t.$attrs.id,"data-cy":t.$attrs["data-cy"],type:t.$attrs.type,class:e.normalizeClass([{"tw-btn":!t.isEmpty,"tw-btn-empty":t.isEmpty,"active tw-font-medium":t.keepActive,"tw-flex tw-items-center tw-justify-center":t.iconName||t.isLoading},t.btnClass]),style:e.normalizeStyle(t.$attrs.style),"data-active":t.keepActive,disabled:t.isLoading||t.disabled,"aria-labelledby":t.$attrs.id,onMouseover:l[0]||(l[0]=e.withModifiers(r=>{d(),t.$emit("mouseover",r)},["stop"])),onMouseout:l[1]||(l[1]=e.withModifiers(r=>{p(),t.$emit("mouseout",r)},["stop"])),onClick:l[2]||(l[2]=r=>t.$emit("click",r))},[t.iconName&&!t.isLoading?(e.openBlock(),e.createBlock(w,{key:t.$attrs.id?t.$attrs.id:`btn-${t.iconName}`,"icon-name":i.value,"icon-class":t.iconClass,"alt-attribute":"button icon","lazy-loading":t.lazyLoadIcon},null,8,["icon-name","icon-class","lazy-loading"])):e.createCommentVNode("",!0),t.isLoading?e.renderSlot(t.$slots,"spinner",{key:2},()=>[e.createVNode(k,{color:t.btnClass.includes("tw-btn-light")?"tw-stroke-black":"tw-stroke-white"},null,8,["color"])]):e.renderSlot(t.$slots,"default",{key:1,hover:a.value})],46,$))}});s.BaseButton=b,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});