@wikicasa-dev/components 1.2.3 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.js +135 -3
- package/dist/components.umd.cjs +1 -32
- package/dist/index.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +9 -8
- package/dist/BaseSnackbar--aqJ1_MG.js +0 -78
- package/dist/main-CH5Gft3f.js +0 -8168
- package/dist/src/App.vue.d.ts +0 -2
- package/dist/src/UIKit/AccessibleSelect.vue.d.ts +0 -74
- package/dist/src/UIKit/Accordion/BaseAccordion.vue.d.ts +0 -45
- package/dist/src/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +0 -59
- package/dist/src/UIKit/Accordion/BaseAccordionContent.vue.d.ts +0 -29
- package/dist/src/UIKit/Accordion/BaseAccordionItem.vue.d.ts +0 -71
- package/dist/src/UIKit/BaseAlert.vue.d.ts +0 -41
- package/dist/src/UIKit/BaseAutocomplete.vue.d.ts +0 -109
- package/dist/src/UIKit/BaseBadge.vue.d.ts +0 -36
- package/dist/src/UIKit/BaseBtModal.vue.d.ts +0 -172
- package/dist/src/UIKit/BaseCard.vue.d.ts +0 -41
- package/dist/src/UIKit/BaseComplexToggle.vue.d.ts +0 -83
- package/dist/src/UIKit/BaseDropDown.vue.d.ts +0 -123
- package/dist/src/UIKit/BaseFloatingLabel.vue.d.ts +0 -44
- package/dist/src/UIKit/BaseInput.vue.d.ts +0 -143
- package/dist/src/UIKit/BaseNavItem.vue.d.ts +0 -43
- package/dist/src/UIKit/BasePagination.vue.d.ts +0 -65
- package/dist/src/UIKit/BasePaper.vue.d.ts +0 -2
- package/dist/src/UIKit/BaseSelect/SelectItem.vue.d.ts +0 -54
- package/dist/src/UIKit/BaseSlider.vue.d.ts +0 -42
- package/dist/src/UIKit/BaseSnackbar.vue.d.ts +0 -56
- package/dist/src/UIKit/BaseTab.vue.d.ts +0 -60
- package/dist/src/UIKit/BaseTextarea.vue.d.ts +0 -82
- package/dist/src/UIKit/BaseToggle.vue.d.ts +0 -36
- package/dist/src/UIKit/BaseTooltip.vue.d.ts +0 -56
- package/dist/src/UIKit/BaseUploadFile.vue.d.ts +0 -37
- package/dist/src/UIKit/Checkbox/CheckboxBtn.vue.d.ts +0 -92
- package/dist/src/UIKit/Checkbox/CheckboxGroup.vue.d.ts +0 -78
- package/dist/src/UIKit/Radio/RadioButton.vue.d.ts +0 -26
- package/dist/src/UIKit/Radio/RadioGroup.vue.d.ts +0 -37
- package/dist/src/Views/AccordionSection.vue.d.ts +0 -2
- package/dist/src/Views/AlertSection.vue.d.ts +0 -2
- package/dist/src/Views/AutocompleteSection.vue.d.ts +0 -2
- package/dist/src/Views/BadgeSection.vue.d.ts +0 -2
- package/dist/src/Views/ButtonsSection.vue.d.ts +0 -2
- package/dist/src/Views/CardSection.vue.d.ts +0 -2
- package/dist/src/Views/CheckboxSection.vue.d.ts +0 -6
- package/dist/src/Views/DropdownSection.vue.d.ts +0 -35
- package/dist/src/Views/ModalSection.vue.d.ts +0 -4
- package/dist/src/Views/PaginationSection.vue.d.ts +0 -2
- package/dist/src/Views/PaperSection.vue.d.ts +0 -2
- package/dist/src/Views/RadioSection.vue.d.ts +0 -9
- package/dist/src/Views/SliderSection.vue.d.ts +0 -9
- package/dist/src/Views/SnackbarSection.vue.d.ts +0 -2
- package/dist/src/Views/TabSection.vue.d.ts +0 -2
- package/dist/src/Views/TextInputSection.vue.d.ts +0 -2
- package/dist/src/Views/TextareaSection.vue.d.ts +0 -6
- package/dist/src/Views/ToggleSection.vue.d.ts +0 -2
- package/dist/src/Views/TooltipSection.vue.d.ts +0 -2
- package/dist/src/Views/UiKitSidebar.vue.d.ts +0 -18
- package/dist/src/Views/UploadBtnSection.vue.d.ts +0 -2
- package/dist/src/Views/WikicasaUiKit.vue.d.ts +0 -19
- package/dist/src/main.d.ts +0 -2
package/dist/components.umd.cjs
CHANGED
|
@@ -1,32 +1 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
* vue-router v4.3.0
|
|
3
|
-
* (c) 2024 Eduardo San Martin Morote
|
|
4
|
-
* @license MIT
|
|
5
|
-
*/const Y=typeof document<"u";function cn(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const L=Object.assign;function Je(e,o){const n={};for(const a in o){const l=o[a];n[a]=H(l)?l.map(e):e(l)}return n}const we=()=>{},H=Array.isArray;function T(e){const o=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(o))}const At=/#/g,pn=/&/g,mn=/\//g,un=/=/g,hn=/\?/g,Mt=/\+/g,fn=/%5B/g,wn=/%5D/g,It=/%5E/g,bn=/%60/g,Rt=/%7B/g,gn=/%7C/g,Pt=/%7D/g,yn=/%20/g;function Qe(e){return encodeURI(""+e).replace(gn,"|").replace(fn,"[").replace(wn,"]")}function kn(e){return Qe(e).replace(Rt,"{").replace(Pt,"}").replace(It,"^")}function Ye(e){return Qe(e).replace(Mt,"%2B").replace(yn,"+").replace(At,"%23").replace(pn,"%26").replace(bn,"`").replace(Rt,"{").replace(Pt,"}").replace(It,"^")}function $n(e){return Ye(e).replace(un,"%3D")}function Vn(e){return Qe(e).replace(At,"%23").replace(hn,"%3F")}function Cn(e){return e==null?"":Vn(e).replace(mn,"%2F")}function ie(e){try{return decodeURIComponent(""+e)}catch{process.env.NODE_ENV!=="production"&&T(`Error decoding "${e}". Using original value`)}return""+e}const En=/\/$/,Nn=e=>e.replace(En,"");function Xe(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=Bn(a??o,n),{fullPath:a+(i&&"?")+i+s,path:a,query:l,hash:ie(s)}}function _n(e,o){const n=o.query?e(o.query):"";return o.path+(n&&"?")+n+(o.hash||"")}function vt(e,o,n){const a=o.matched.length-1,l=n.matched.length-1;return a>-1&&a===l&&ee(o.matched[a],n.matched[l])&&Dt(o.params,n.params)&&e(o.query)===e(n.query)&&o.hash===n.hash}function ee(e,o){return(e.aliasOf||e)===(o.aliasOf||o)}function Dt(e,o){if(Object.keys(e).length!==Object.keys(o).length)return!1;for(const n in e)if(!Sn(e[n],o[n]))return!1;return!0}function Sn(e,o){return H(e)?zt(e,o):H(o)?zt(o,e):e===o}function zt(e,o){return H(o)?e.length===o.length&&e.every((n,a)=>n===o[a]):e.length===1&&e[0]===o}function Bn(e,o){if(e.startsWith("/"))return e;if(process.env.NODE_ENV!=="production"&&!o.startsWith("/"))return T(`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 _e;(function(e){e.back="back",e.forward="forward",e.unknown=""})(_e||(_e={}));const Ze="";function xn(e){if(!e)if(Y){const o=document.querySelector("base");e=o&&o.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Nn(e)}const Tn=/^[^#]+#/;function On(e,o){return e.replace(Tn,"#")+o}function Ln(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 An=()=>({left:window.scrollX,top:window.scrollY});function Mn(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){T(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{T(`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"&&T(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}o=Ln(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 jt(e,o){return(history.state?history.state.position-o:-1)+e}const et=new Map;function In(e,o){et.set(e,o)}function Rn(e){const o=et.get(e);return et.delete(e),o}function Pn(e=""){let o=[],n=[Ze],a=0;e=xn(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:Ze,state:{},base:e,createHref:On.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=[Ze],a=0},go(r,d=!0){const m=this.location,c=r<0?_e.back:_e.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 vn(e){return typeof e=="string"||e&&typeof e=="object"}function Ft(e){return typeof e=="string"||typeof e=="symbol"}const te={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},tt=Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var Ut;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ut||(Ut={}));const Dn={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 "${jn(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 de(e,o){return process.env.NODE_ENV!=="production"?L(new Error(Dn[e](o)),{type:e,[tt]:!0},o):L(new Error,{type:e,[tt]:!0},o)}function X(e,o){return e instanceof Error&&tt in e&&(o==null||!!(e.type&o))}const zn=["params","query","hash"];function jn(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const o={};for(const n of zn)n in e&&(o[n]=e[n]);return JSON.stringify(o,null,2)}const Ht="[^/]+?",Fn={sensitive:!1,strict:!1,start:!0,end:!0},Un=/[.+*?^${}()[\]/\\]/g;function Hn(e,o){const n=L({},Fn,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(Un,"\\$&"),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||Ht;if(E!==Ht){u+=10;try{new RegExp(`(${E})`)}catch(v){throw new Error(`Invalid custom RegExp for param "${f}" (${E}): `+v.message)}}let A=C?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;p||(A=N&&m.length<2?`(?:/${A})`:"/"+A),N&&(A+="?"),l+=A,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(H(V)&&!C)throw new Error(`Provided param "${f}" is an array but it is not repeatable (* or + modifiers)`);const E=H(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 qn(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 Wn(e,o){let n=0;const a=e.score,l=o.score;for(;n<a.length&&n<l.length;){const i=qn(a[n],l[n]);if(i)return i;n++}if(Math.abs(l.length-a.length)===1){if(qt(a))return 1;if(qt(l))return-1}return l.length-a.length}function qt(e){const o=e[e.length-1];return e.length>0&&o[o.length-1]<0}const Kn={type:0,value:""},Gn=/[a-zA-Z0-9_]/;function Jn(e){if(!e)return[[]];if(e==="/")return[[Kn]];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:Gn.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 Qn(e,o,n){const a=Hn(Jn(e.path),n);if(process.env.NODE_ENV!=="production"){const i=new Set;for(const s of a.keys)i.has(s.name)&&T(`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=L(a,{record:e,parent:o,children:[],alias:[]});return o&&!l.record.aliasOf==!o.record.aliasOf&&o.children.push(l),l}function Yn(e,o){const n=[],a=new Map;o=Gt({strict:!1,end:!0,sensitive:!1},o);function l(c){return a.get(c)}function i(c,p,h){const u=!h,f=Xn(c);process.env.NODE_ENV!=="production"&&oa(f,p),f.aliasOf=h&&h.record;const C=Gt(o,c),N=[f];if("alias"in c){const A=typeof c.alias=="string"?[c.alias]:c.alias;for(const v of A)N.push(L({},f,{components:h?h.record.components:f.components,path:v,aliasOf:h?h.record:f}))}let V,E;for(const A of N){const{path:v}=A;if(p&&v[0]!=="/"){const Q=p.record.path,k=Q[Q.length-1]==="/"?"":"/";A.path=p.record.path+(v&&k+v)}if(process.env.NODE_ENV!=="production"&&A.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=Qn(A,p,C),process.env.NODE_ENV!=="production"&&p&&v[0]==="/"&&na(V,p),h?(h.alias.push(V),process.env.NODE_ENV!=="production"&&ta(h,V)):(E=E||V,E!==V&&E.alias.push(V),u&&c.name&&!Kt(V)&&s(c.name)),f.children){const Q=f.children;for(let k=0;k<Q.length;k++)i(Q[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(Ft(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&&Wn(c,n[p])>=0&&(c.record.path!==n[p].record.path||!Jt(c,n[p]));)p++;n.splice(p,0,c),c.record.name&&!Kt(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 de(1,{location:c});if(process.env.NODE_ENV!=="production"){const E=Object.keys(c.params||{}).filter(A=>!h.keys.find(v=>v.name===A));E.length&&T(`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=L(Wt(p.params,h.keys.filter(E=>!E.optional).concat(h.parent?h.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),c.params&&Wt(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("/")&&T(`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 de(1,{location:c,currentLocation:p});C=h.record.name,u=L({},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:ea(N)}}return e.forEach(c=>i(c)),{addRoute:i,resolve:m,removeRoute:s,getRoutes:r,getRecordMatcher:l}}function Wt(e,o){const n={};for(const a of o)a in e&&(n[a]=e[a]);return n}function Xn(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Zn(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 Zn(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 Kt(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ea(e){return e.reduce((o,n)=>L(o,n.meta),{})}function Gt(e,o){const n={};for(const a in e)n[a]=a in o?o[a]:e[a];return n}function ot(e,o){return e.name===o.name&&e.optional===o.optional&&e.repeatable===o.repeatable}function ta(e,o){for(const n of e.keys)if(!n.optional&&!o.keys.find(ot.bind(null,n)))return T(`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(ot.bind(null,n)))return T(`Alias "${o.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function oa(e,o){o&&o.record.name&&!e.name&&!e.path&&T(`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 na(e,o){for(const n of o.keys)if(!e.keys.find(ot.bind(null,n)))return T(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${o.record.path}".`)}function Jt(e,o){return o.children.some(n=>n===e||Jt(e,n))}function aa(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(Mt," "),s=i.indexOf("="),r=ie(s<0?i:i.slice(0,s)),d=s<0?null:ie(i.slice(s+1));if(r in o){let m=o[r];H(m)||(m=o[r]=[m]),m.push(d)}else o[r]=d}return o}function Qt(e){let o="";for(let n in e){const a=e[n];if(n=$n(n),a==null){a!==void 0&&(o+=(o.length?"&":"")+n);continue}(H(a)?a.map(i=>i&&Ye(i)):[a&&Ye(a)]).forEach(i=>{i!==void 0&&(o+=(o.length?"&":"")+n,i!=null&&(o+="="+i))})}return o}function sa(e){const o={};for(const n in e){const a=e[n];a!==void 0&&(o[n]=H(a)?a.map(l=>l==null?null:""+l):a==null?a:""+a)}return o}const la=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":""),Yt=Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),nt=Symbol(process.env.NODE_ENV!=="production"?"router":""),Xt=Symbol(process.env.NODE_ENV!=="production"?"route location":""),at=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 oe(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(de(4,{from:n,to:o})):h instanceof Error?d(h):vn(h)?d(de(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"?ra(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:(T(h),Promise.reject(new Error("Invalid navigation guard"))));else if(c!==void 0&&!m._called){T(h),d(new Error("Invalid navigation guard"));return}}p.catch(h=>d(h))})}function ra(e,o,n){let a=0;return function(){a++===1&&T(`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 st(e,o,n,a,l=i=>i()){const i=[];for(const s of e){process.env.NODE_ENV!=="production"&&!s.components&&!s.children.length&&T(`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 T(`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){T(`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,T(`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(ia(d)){const c=(d.__vccOpts||d)[o];c&&i.push(oe(c,n,a,s,r,l))}else{let m=d();process.env.NODE_ENV!=="production"&&!("catch"in m)&&(T(`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=cn(c)?c.default:c;s.components[r]=p;const u=(p.__vccOpts||p)[o];return u&&oe(u,n,a,s,r,l)()}))}}}return i}function ia(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Zt(e){const o=t.inject(nt),n=t.inject(Xt),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(ee.bind(null,c));if(h>-1)return h;const u=eo(d[m-2]);return m>1&&eo(c)===u&&p[p.length-1].path!==u?p.findIndex(ee.bind(null,d[m-2])):h}),i=t.computed(()=>l.value>-1&&pa(n.params,a.value.params)),s=t.computed(()=>l.value>-1&&l.value===n.matched.length-1&&Dt(n.params,a.value.params));function r(d={}){return ca(d)?o[t.unref(e.replace)?"replace":"push"](t.unref(e.to)).catch(we):Promise.resolve()}if(process.env.NODE_ENV!=="production"&&Y){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 da=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:Zt,setup(e,{slots:o}){const n=t.reactive(Zt(e)),{options:a}=t.inject(nt),l=t.computed(()=>({[to(e.activeClass,a.linkActiveClass,"router-link-active")]:n.isActive,[to(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 ca(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 pa(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(!H(l)||l.length!==a.length||a.some((i,s)=>i!==l[s]))return!1}return!0}function eo(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const to=(e,o,n)=>e??o??n,ma=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"&&ha();const a=t.inject(at),l=t.computed(()=>e.route||a.value),i=t.inject(Yt,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(Yt,t.computed(()=>s.value+1)),t.provide(la,r),t.provide(at,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||!ee(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 oo(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,L({},f,o,{onVnodeUnmounted:C,ref:d}));if(process.env.NODE_ENV!=="production"&&Y&&N.ref){const V={depth:s.value,name:p.name,path:p.path,meta:p.meta};(H(N.ref)?N.ref.map(A=>A.i):[N.ref.i]).forEach(A=>{A.__vrv_devtools=V})}return oo(n.default,{Component:N,route:m})||N}}});function oo(e,o){if(!e)return null;const n=e(o);return n.length===1?n[0]:n}const ua=ma;function ha(){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";T(`<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=L({},e,{matched:e.matched.map(a=>Ca(a,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:o,value:n}}}function Se(e){return{_custom:{display:e}}}let fa=0;function wa(e,o,n){if(o.__hasDevtools)return;o.__hasDevtools=!0;const a=fa++;dn({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 <router-view>",backgroundColor:no})}H(p.__vrl_devtools)&&(p.__devtoolsApi=l,p.__vrl_devtools.forEach(h=>{let u=lo,f="";h.isExactActive?(u=so,f="This is exactly active"):h.isActive&&(u=ao,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:Se("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:Se("afterEach")};h?(u.failure={_custom:{type:Error,readOnly:!0,display:h?h.message:"",tooltip:"Navigation Failure",value:h}},u.status=Se("❌")):u.status=Se("✅"),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(co),c.filter&&(p=p.filter(h=>lt(h,c.filter.toLowerCase()))),p.forEach(h=>io(h,o.currentRoute.value)),c.rootNodes=p.map(ro)}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:ga(h)})}}),l.sendInspectorTree(r),l.sendInspectorState(r)})}function ba(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function ga(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}${ba(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 no=15485081,ao=2450411,so=8702998,ya=2282478,lo=16486972,ka=6710886;function ro(e){const o=[],{record:n}=e;n.name!=null&&o.push({label:String(n.name),textColor:0,backgroundColor:ya}),n.aliasOf&&o.push({label:"alias",textColor:0,backgroundColor:lo}),e.__vd_match&&o.push({label:"matches",textColor:0,backgroundColor:no}),e.__vd_exactActive&&o.push({label:"exact",textColor:0,backgroundColor:so}),e.__vd_active&&o.push({label:"active",textColor:0,backgroundColor:ao}),n.redirect&&o.push({label:typeof n.redirect=="string"?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:ka});let a=n.__vd_id;return a==null&&(a=String($a++),n.__vd_id=a),{id:a,label:n.path,tags:o,children:e.children.map(ro)}}let $a=0;const Va=/^\/(.*)\/([a-z]*)$/;function io(e,o){const n=o.matched.length&&ee(o.matched[o.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=o.matched.some(a=>ee(a,e.record))),e.children.forEach(a=>io(a,o))}function co(e){e.__vd_match=!1,e.children.forEach(co)}function lt(e,o){const n=String(e.re).match(Va);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=>lt(s,o)),e.record.path!=="/"||o==="/"?(e.__vd_match=e.re.test(o),!0):!1;const l=e.record.path.toLowerCase(),i=ie(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=>lt(s,o))}function Ca(e,o){const n={};for(const a in e)o.includes(a)||(n[a]=e[a]);return n}function Ea(e){const o=Yn(e.routes,e),n=e.parseQuery||aa,a=e.stringifyQuery||Qt,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(te);let m=te;Y&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Je.bind(null,w=>""+w),p=Je.bind(null,Cn),h=Je.bind(null,ie);function u(w,y){let g,$;return Ft(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"&&T(`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=L({},y||d.value),typeof w=="string"){const _=Xe(n,w,y.path),I=o.resolve({path:_.path},y),le=l.createHref(_.fullPath);return process.env.NODE_ENV!=="production"&&(le.startsWith("//")?T(`Location "${w}" resolved to "${le}". A resolved location cannot start with multiple slashes.`):I.matched.length||T(`No match found for location with path "${w}"`)),L(_,I,{params:h(I.params),hash:ie(_.hash),redirectedFrom:void 0,href:le})}let g;if(w.path!=null)process.env.NODE_ENV!=="production"&&"params"in w&&!("name"in w)&&Object.keys(w.params).length&&T(`Path "${w.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),g=L({},w,{path:Xe(n,w.path,y.path).path});else{const _=L({},w.params);for(const I in _)_[I]==null&&delete _[I];g=L({},w,{params:p(_)}),y.params=p(y.params)}const $=o.resolve(g,y),O=w.hash||"";process.env.NODE_ENV!=="production"&&O&&!O.startsWith("#")&&T(`A \`hash\` should always start with the character "#". Replace "${O}" with "#${O}".`),$.params=c(h($.params));const R=_n(a,L({},w,{hash:kn(O),path:$.path})),B=l.createHref(R);return process.env.NODE_ENV!=="production"&&(B.startsWith("//")?T(`Location "${w}" resolved to "${B}". A resolved location cannot start with multiple slashes.`):$.matched.length||T(`No match found for location with path "${w.path!=null?w.path:w}"`)),L({fullPath:R,hash:O,query:a===Qt?sa(w.query):w.query||{}},$,{redirectedFrom:void 0,href:B})}function E(w){return typeof w=="string"?Xe(n,w,d.value.path):L({},w)}function A(w,y){if(m!==w)return de(8,{from:y,to:w})}function v(w){return M(w)}function Q(w){return v(L(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 T(`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 L({query:w.query,hash:w.hash,params:$.path!=null?{}:w.params},$)}}function M(w,y){const g=m=V(w),$=d.value,O=w.state,R=w.force,B=w.replace===!0,_=k(g);if(_)return M(L(E(_),{state:typeof _=="object"?L({},O,_.state):O,force:R,replace:B}),y||g);const I=g;I.redirectedFrom=y;let le;return!R&&vt(a,$,g)&&(le=de(16,{to:I,from:$}),Qo($,$,!0,!1)),(le?Promise.resolve(le):he(I,$)).catch(U=>X(U)?X(U,2)?U:xt(U):Bt(U,I,$)).then(U=>{if(U){if(X(U,2))return process.env.NODE_ENV!=="production"&&vt(a,V(U.to),I)&&y&&(y._count=y._count?y._count+1:1)>30?(T(`Detected a possibly infinite redirection in a navigation guard when going from "${$.fullPath}" to "${I.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"))):M(L({replace:B},E(U.to),{state:typeof U.to=="object"?L({},O,U.to.state):O,force:R}),y||I)}else U=z(I,$,!0,B,O);return qe(I,$,U),U})}function F(w,y){const g=A(w,y);return g?Promise.reject(g):Promise.resolve()}function W(w){const y=Ke.values().next().value;return y&&typeof y.runWithContext=="function"?y.runWithContext(w):w()}function he(w,y){let g;const[$,O,R]=Na(w,y);g=st($.reverse(),"beforeRouteLeave",w,y);for(const _ of $)_.leaveGuards.forEach(I=>{g.push(oe(I,w,y))});const B=F.bind(null,w,y);return g.push(B),fe(g).then(()=>{g=[];for(const _ of i.list())g.push(oe(_,w,y));return g.push(B),fe(g)}).then(()=>{g=st(O,"beforeRouteUpdate",w,y);for(const _ of O)_.updateGuards.forEach(I=>{g.push(oe(I,w,y))});return g.push(B),fe(g)}).then(()=>{g=[];for(const _ of R)if(_.beforeEnter)if(H(_.beforeEnter))for(const I of _.beforeEnter)g.push(oe(I,w,y));else g.push(oe(_.beforeEnter,w,y));return g.push(B),fe(g)}).then(()=>(w.matched.forEach(_=>_.enterCallbacks={}),g=st(R,"beforeRouteEnter",w,y,W),g.push(B),fe(g))).then(()=>{g=[];for(const _ of s.list())g.push(oe(_,w,y));return g.push(B),fe(g)}).catch(_=>X(_,8)?_:Promise.reject(_))}function qe(w,y,g){r.list().forEach($=>W(()=>$(w,y,g)))}function z(w,y,g,$,O){const R=A(w,y);if(R)return R;const B=y===te,_=Y?history.state:{};g&&($||B?l.replace(w.fullPath,L({scroll:B&&_&&_.scroll},O)):l.push(w.fullPath,O)),d.value=w,Qo(w,y,g,B),xt()}let Ne;function qm(){Ne||(Ne=l.listen((w,y,g)=>{if(!Yo.listening)return;const $=V(w),O=k($);if(O){M(L(O,{replace:!0}),$).catch(we);return}m=$;const R=d.value;Y&&In(jt(R.fullPath,g.delta),An()),he($,R).catch(B=>X(B,12)?B:X(B,2)?(M(B.to,$).then(_=>{X(_,20)&&!g.delta&&g.type===be.pop&&l.go(-1,!1)}).catch(we),Promise.reject()):(g.delta&&l.go(-g.delta,!1),Bt(B,$,R))).then(B=>{B=B||z($,R,!1),B&&(g.delta&&!X(B,8)?l.go(-g.delta,!1):g.type===be.pop&&X(B,20)&&l.go(-1,!1)),qe($,R,B)}).catch(we)}))}let St=ge(),Jo=ge(),We;function Bt(w,y,g){xt(w);const $=Jo.list();return $.length?$.forEach(O=>O(w,y,g)):(process.env.NODE_ENV!=="production"&&T("uncaught error during route navigation:"),console.error(w)),Promise.reject(w)}function Wm(){return We&&d.value!==te?Promise.resolve():new Promise((w,y)=>{St.add([w,y])})}function xt(w){return We||(We=!w,qm(),St.list().forEach(([y,g])=>w?g(w):y()),St.reset()),w}function Qo(w,y,g,$){const{scrollBehavior:O}=e;if(!Y||!O)return Promise.resolve();const R=!g&&Rn(jt(w.fullPath,0))||($||!g)&&history.state&&history.state.scroll||null;return t.nextTick().then(()=>O(w,y,R)).then(B=>B&&Mn(B)).catch(B=>Bt(B,w,y))}const Tt=w=>l.go(w);let Ot;const Ke=new Set,Yo={currentRoute:d,listening:!0,addRoute:u,removeRoute:f,hasRoute:N,getRoutes:C,resolve:V,options:e,push:v,replace:Q,go:Tt,back:()=>Tt(-1),forward:()=>Tt(1),beforeEach:i.add,beforeResolve:s.add,afterEach:r.add,onError:Jo.add,isReady:Wm,install(w){const y=this;w.component("RouterLink",da),w.component("RouterView",ua),w.config.globalProperties.$router=y,Object.defineProperty(w.config.globalProperties,"$route",{enumerable:!0,get:()=>t.unref(d)}),Y&&!Ot&&d.value===te&&(Ot=!0,v(l.location).catch(O=>{process.env.NODE_ENV!=="production"&&T("Unexpected error when starting the router:",O)}));const g={};for(const O in te)Object.defineProperty(g,O,{get:()=>d.value[O],enumerable:!0});w.provide(nt,y),w.provide(Xt,t.shallowReactive(g)),w.provide(at,d);const $=w.unmount;Ke.add(w),w.unmount=function(){Ke.delete(w),Ke.size<1&&(m=te,Ne&&Ne(),Ne=null,d.value=te,Ot=!1,We=!1),$()},process.env.NODE_ENV!=="production"&&Y&&wa(w,y,o)}};function fe(w){return w.reduce((y,g)=>y.then(()=>W(g)),Promise.resolve())}return Yo}function Na(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=>ee(m,r))?a.push(r):n.push(r));const d=e.matched[s];d&&(o.matched.find(m=>ee(m,d))||l.push(d))}return[n,a,l]}const _a=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"]]),Sa=t.defineComponent({name:"CardSection",components:{BaseCard:_a}}),Ba=t.createElementVNode("h4",{class:"tw-my-5"},"Card Horizontal",-1),xa=t.createElementVNode("div",{class:"tw-h-full",style:{"background-color":"#1e8f6e"}},null,-1),Ta=t.createElementVNode("h4",{class:"tw-py-5"},"Card Detail Map",-1),Oa=t.createElementVNode("div",{class:"tw-h-full",style:{"background-color":"#76b22e"}},null,-1),La=t.createElementVNode("h4",{class:"tw-py-5"},"Card Vertical",-1),Aa=t.createElementVNode("div",{class:"tw-h-full tw-bg-indigo-500"},null,-1),Ma=t.createElementVNode("h4",{class:"tw-py-5"},"Card News",-1),Ia=t.createElementVNode("div",{class:"tw-h-full tw-bg-amber-600"},null,-1);function Ra(e,o,n,a,l,i){const s=t.resolveComponent("base-card");return t.openBlock(),t.createElementBlock(t.Fragment,null,[Ba,t.createVNode(s,null,{"card-image":t.withCtx(()=>[xa]),"card-description":t.withCtx(()=>[t.createTextVNode(" lorem ipsum ")]),_:1}),Ta,t.createVNode(s,{type:"map-card"},{"card-image":t.withCtx(()=>[Oa]),"card-description":t.withCtx(()=>[t.createTextVNode(" lorem ipsum ")]),_:1}),La,t.createVNode(s,{type:"vertical"},{"card-image":t.withCtx(()=>[Aa]),"card-description":t.withCtx(()=>[t.createTextVNode(" lorem ipsum ")]),_:1}),Ma,t.createVNode(s,{type:"news"},{"card-image":t.withCtx(()=>[Ia]),"card-description":t.withCtx(()=>[t.createTextVNode(" lorem ipsum ")]),_:1})],64)}const Pa=S(Sa,[["render",Ra]]),va=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"]}),Da=["for"],za=["innerHTML"];function ja(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,za),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,Da)}const rt=S(va,[["render",ja],["__scopeId","data-v-ff9ac795"]]);function po(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 Fa=t.defineComponent({name:"BaseInput",components:{BaseFloatingLabel:rt},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}=po(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")}}}),Ua=["id","data-cy","name","autocomplete","disabled","aria-labelledby","readonly","type","pattern","min","max","maxlength","inputmode","placeholder"],Ha={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"},qa=["innerHTML"],Wa=["innerHTML"],Ka=["innerHTML"],Ga={class:"under-label tw-absolute tw-text-12"};function Ja(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,Ua),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",Ha,[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,qa)])):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,Wa))),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,Ka))),128)):t.createCommentVNode("",!0),t.createElementVNode("div",Ga,[t.renderSlot(e.$slots,"under-label",{},void 0,!0)])],2)}const j=S(Fa,[["render",Ja],["__scopeId","data-v-ca8b659f"]]),ne=()=>({width:20,height:20,strokeColor:"#222",fillColor:"none"}),it=(e,{attrs:o})=>{e={...ne(),...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"})]))},Qa=(e,{attrs:o})=>{e={...ne(),...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})])]))},Ya=(e,{attrs:o})=>{e={...ne(),...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})])])},Xa=(e,{attrs:o})=>{e={...ne(),...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"})]))},Be=(e,{attrs:o})=>{e={...ne(),...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"})]))},Za={class:"tw-h-max",style:{"max-height":"1035px"}},es=t.createElementVNode("h4",{class:"tw-mt-4"},"Base Text Input",-1),ts={class:"tw-grid tw-grid-cols-2 tw-gap-4"},os={class:""},ns=t.createElementVNode("h6",{class:"tw-my-0"},"With input",-1),as={class:""},ss=t.createElementVNode("h6",{class:"tw-my-0"},"Without input",-1),ls=t.createElementVNode("h4",{class:"tw-mt-4"},"Base Text Input",-1),rs={class:"tw-grid tw-grid-cols-2 tw-gap-4 lg:tw-grid-cols-3"},is={class:""},ds=t.createElementVNode("h6",{class:"tw-my-0"},"With left icon",-1),cs={class:""},ps=t.createElementVNode("h6",{class:"tw-my-0"},"With right icon",-1),ms=["onClick"],us={class:"tw-col-span-2 lg:tw-col-span-1"},hs=t.createElementVNode("h6",{class:"tw-my-0"},"With both icons",-1),fs=t.createElementVNode("h4",{class:"tw-mt-4"},"Base Text Input",-1),ws=t.createElementVNode("h6",{class:"tw-my-0"},"With cleaning button",-1),bs=["onClick"],gs=t.createElementVNode("h4",{class:"tw-mt-4"},"Text Input - Disabled",-1),ys={class:"tw-grid tw-grid-cols-2 tw-gap-4"},ks={class:""},$s=t.createElementVNode("h6",{class:"tw-my-0"},"With Input",-1),Vs={class:""},Cs=t.createElementVNode("h6",{class:"tw-my-0"},"Without Input",-1),Es=t.createElementVNode("h4",{class:"tw-mt-4"},"Text Input - Error",-1),Ns={class:"tw-grid tw-grid-cols-2 tw-gap-4"},_s={class:""},Ss=t.createElementVNode("h6",{class:"tw-my-0"},"With input",-1),Bs={class:""},xs=t.createElementVNode("h6",{class:"tw-my-0"},"Without input",-1),Ts={class:"tw-my-4 tw-flex tw-flex-col"},Os=t.createElementVNode("h4",null,"Text Input - Valid",-1),Ls=t.createElementVNode("h4",null,"Text Input - Required",-1),As={class:"tw-grid tw-grid-cols-2 tw-gap-4"},Ms={class:""},Is=t.createElementVNode("h6",{class:"tw-my-0"},"With input",-1),Rs={class:""},Ps=t.createElementVNode("h6",{class:"tw-my-0"},"Without input",-1),vs=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",Za,[es,t.createElementVNode("div",ts,[t.createElementVNode("div",os,[ns,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",as,[ss,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"])])]),ls,t.createElementVNode("div",rs,[t.createElementVNode("div",is,[ds,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(it),{class:"text-input-icon left sm",width:15,height:15})]),_:1},8,["modelValue"])]),t.createElementVNode("div",cs,[ps,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(Qa),{key:0,class:"text-input-icon right md",width:15,height:15})):(t.openBlock(),t.createBlock(t.unref(Ya),{key:1,class:"text-input-icon right md",width:15,height:15}))],8,ms)]),_:1},8,["modelValue"])]),t.createElementVNode("div",us,[hs,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(it),{class:"text-input-icon left sm",width:15,height:15})]),righticon:t.withCtx(()=>[t.createVNode(t.unref(Xa),{class:"text-input-icon right md",width:15,height:15})]),_:1},8,["modelValue"])])]),fs,ws,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(Be),{class:"text-input-icon right sm",width:15,height:15})],8,bs)):t.createCommentVNode("",!0)]),_:1},8,["modelValue"]),gs,t.createElementVNode("div",ys,[t.createElementVNode("div",ks,[$s,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,[Cs,t.createVNode(j,{id:"regular-input3","label-text":"Label",disabled:"disabled","model-value":""})])]),Es,t.createElementVNode("div",Ns,[t.createElementVNode("div",_s,[Ss,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",Bs,[xs,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",Ts,[Os,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"])]),Ls,t.createElementVNode("div",As,[t.createElementVNode("div",Ms,[Is,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",Rs,[Ps,t.createVNode(j,{id:"required-input-without","label-text":"Label","model-value":"",required:"required",feedback:{valid:"Kudos!",invalid:"Check your input"}})])])]))}}),Ds=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"}}}),zs=["id","alt","src","width","height","loading"];function js(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,zs)}const dt=S(Ds,[["render",js],["__scopeId","data-v-5d8617bb"]]),Fs={viewBox:"0 0 128 128",class:"icon-spin tw-h-6 tw-w-6"},Us=["stroke-width"],Hs=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",Fs,[t.createElementVNode("circle",{class:"path",cx:"64",cy:"64",r:"42",fill:"none","stroke-width":o.thickness},null,8,Us)]))],2))}}),[["__scopeId","data-v-a9cef034"]]),qs=["id","data-cy","type","data-active","disabled","aria-labelledby"],K=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(dt,{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(Hs,{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,qs))}}),Ws=t.defineComponent({name:"ButtonsSection",components:{BaseButton:K}}),Ks={class:"tw-my-5"},Gs={class:"tw-grid tw-grid-cols-2 tw-gap-5 lg:tw-grid-cols-3"},Js=t.createElementVNode("h3",{class:"tw-my-5"},"Bottoni mostra altro",-1),Qs=t.createElementVNode("h3",{class:"tw-my-5"},"Bottoni con Icona",-1),Ys=t.createElementVNode("h3",{class:"tw-my-5"},"Bottoni con caricamento",-1),Xs=t.createElementVNode("h3",{class:"tw-my-5"},"Multiselezione",-1),Zs=t.createElementVNode("h3",{class:"tw-my-5"},"Singola selezione",-1);function el(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",Ks,t.toDisplayString(r.sectionName),1),t.createElementVNode("div",Gs,[(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)),Js,t.createVNode(s,{"btn-class":"tw-btn-show-more"},{default:t.withCtx(()=>[t.createTextVNode(" Bottone ")]),_:1}),Qs,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}),Ys,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}),Xs,t.createVNode(s,{"btn-class":"tw-btn-multi-selection"},{default:t.withCtx(()=>[t.createTextVNode(" Bottone ")]),_:1}),Zs,t.createVNode(s,{"btn-class":"tw-btn-single-selection"},{default:t.withCtx(()=>[t.createTextVNode(" Bottone ")]),_:1})])}const tl=S(Ws,[["render",el]]),ol=t.defineComponent({name:"BaseNavItem",components:{BaseIcon:dt},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")}}}),nl=["id"];function al(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,nl)}const sl=S(ol,[["render",al],["__scopeId","data-v-e3ded660"]]),ll=t.defineComponent({name:"BaseTab",components:{BaseNavItem:sl},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 rl(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 il=S(ll,[["render",rl]]),dl=t.defineComponent({name:"TabSection",components:{BaseTab:il}}),cl={class:"tw-mt-5"},pl={class:"tw-flex tw-flex-col"},ml=t.createElementVNode("h4",null,"Tab base",-1),ul=t.createElementVNode("h4",null,"Tab Custom",-1);function hl(e,o,n,a,l,i){const s=t.resolveComponent("base-tab");return t.openBlock(),t.createElementBlock("div",cl,[t.createElementVNode("div",pl,[ml,t.createVNode(s,{"first-label":"Bottone","second-label":"Bottone","first-icon-name":"bus.svg"}),ul,t.createVNode(s,{tabs:[{id:"1",label:"Tab1"},{id:"2",label:"Tab2"},{id:"3",label:"Tab3"}]})])])}const fl=S(dl,[["render",hl]]),wl=t.defineComponent({name:"BaseTextarea",components:{BaseFloatingLabel:rt},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}=po(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()})}}}),bl=["id","data-cy","rows","disabled","aria-labelledby","innerHTML"],gl={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"},yl=["innerHTML"],kl=["innerHTML"];function $l(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,bl),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",gl,[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,yl)])):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,kl)):t.createCommentVNode("",!0)],2)}const Vl=S(wl,[["render",$l],["__scopeId","data-v-b7578484"]]),Cl=t.defineComponent({name:"TextareaSection",components:{BaseTextarea:Vl},data(){return{firstBtInput:"",secondBtInput:"",thirdBtInput:""}}}),El={class:"tw-mt-5 tw-h-max",style:{"max-height":"500px"}},Nl={class:"tw-flex tw-flex-col"},_l=t.createElementVNode("h2",null,"Text Area",-1),Sl={class:"tw-flex tw-flex-col"},Bl=t.createElementVNode("h2",{class:"tw-mt-5"},"Text Area - Error",-1),xl={class:"tw-flex tw-flex-col"},Tl=t.createElementVNode("h2",{class:"tw-mt-5"},"Text Area - Success",-1);function Ol(e,o,n,a,l,i){const s=t.resolveComponent("base-textarea");return t.openBlock(),t.createElementBlock("div",El,[t.createElementVNode("div",Nl,[_l,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",Sl,[Bl,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",xl,[Tl,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 Ll=S(Cl,[["render",Ol]]),Al=["id"],Ml=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,Al))}}),[["__scopeId","data-v-3b868662"]]),Il=t.defineComponent({name:"AlertSection",components:{BaseAlert:Ml}});function Rl(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 Pl=S(Il,[["render",Rl]]),vl=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 Dl(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 ce=S(vl,[["render",Dl],["__scopeId","data-v-8d29fdc0"]]),zl={class:"tw-my-5 tw-h-full",style:{"max-height":"160px"}},jl={class:"tw-grid tw-grid-cols-2 tw-gap-5"},Fl=t.createElementVNode("button",{id:"tooltip",type:"button",class:"tw-btn tw-btn-light"}," Small ",-1),Ul=t.createElementVNode("button",{id:"tooltip",type:"button",class:"tw-btn tw-btn-light"}," Small ",-1),Hl=t.createElementVNode("button",{id:"tooltip",type:"button",class:"tw-btn tw-btn-light"}," Medium ",-1),ql=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),Wl=t.createElementVNode("button",{id:"tooltip",type:"button",class:"tw-btn tw-btn-light"}," Medium ",-1),Kl=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),Gl=t.createElementVNode("button",{id:"tooltip",type:"button",class:"tw-btn tw-btn-light"}," Large ",-1),Jl=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),Ql=t.createElementVNode("button",{id:"tooltip",type:"button",class:"tw-btn tw-btn-light"}," Large ",-1),Yl=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),Xl=t.defineComponent({__name:"TooltipSection",setup(e){return(o,n)=>(t.openBlock(),t.createElementBlock("div",zl,[t.createElementVNode("div",jl,[t.createVNode(ce,null,{trigger:t.withCtx(()=>[Fl]),content:t.withCtx(()=>[t.createTextVNode(" Text here ")]),_:1}),t.createVNode(ce,{theme:{color:"white",size:"sm"}},{trigger:t.withCtx(()=>[Ul]),content:t.withCtx(()=>[t.createTextVNode(" Text here ")]),_:1}),t.createVNode(ce,{theme:{color:"blue",size:"md"}},{trigger:t.withCtx(()=>[Hl]),content:t.withCtx(()=>[ql]),_:1}),t.createVNode(ce,{theme:{color:"white",size:"md"}},{trigger:t.withCtx(()=>[Wl]),content:t.withCtx(()=>[Kl]),_:1}),t.createVNode(ce,{theme:{color:"blue",size:"lg"}},{trigger:t.withCtx(()=>[Gl]),content:t.withCtx(()=>[Jl]),_:1}),t.createVNode(ce,{theme:{color:"white",size:"lg"}},{trigger:t.withCtx(()=>[Ql]),content:t.withCtx(()=>[Yl]),_:1})])]))}}),mo=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}},xe=(e,{attrs:o})=>{e={...ne(),...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"}))},Zl=(e,{attrs:o})=>{e={...ne(),...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"})])},er=["id","innerHTML"],tr=["id","data-cy","aria-required","aria-controls","aria-labelledby","aria-expanded","aria-activedescendant","aria-invalid","aria-describedby"],or=["innerHTML"],nr={class:"tw-inline-flex"},ar=["innerHTML"],sr=["data-cy"],lr=["id","aria-selected","onClick","onMouseover"],rr={class:"tw-inline-block tw-cursor-pointer"},ir=["name","checked","onInput"],dr=["innerHTML"],cr=["id","arial-live","innerHTML"],pr=["id","arial-live","innerHTML"],mr=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}=mo({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,er)):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,or),t.createElementVNode("span",nr,[n.isValid==!1?(t.openBlock(),t.createBlock(t.unref(Zl),{key:0,class:"tw-mr-1",width:20,height:20})):t.createCommentVNode("",!0),t.createVNode(t.unref(xe),{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,tr),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,ar)],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",rr,[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,ir),t.createElementVNode("span",{innerHTML:u.label},null,8,dr)])],42,lr))),128))],10,sr)],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,cr)):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,pr)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))}}),ur=["innerHTML"],uo=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(K,{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,ur),r.withArrowIcon?(t.openBlock(),t.createBlock(t.unref(xe),{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))}}),hr=t.defineComponent({name:"DropdownSection",components:{AccessibleSelect:mr,BaseDropDown:uo},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:""}}}}),fr={class:"tw-h-full",style:{"max-height":"500px"}},wr=t.createElementVNode("h4",{class:"tw-my-5"},"Dropdown - regular",-1),br={class:"tw-grid tw-grid-cols-2 tw-gap-5"},gr={class:"tw-mt-10px"},yr=t.createElementVNode("h5",null,"Dropdown - With label, dropdown down",-1),kr={class:"tw-mt-10px"},$r=t.createElementVNode("h5",{class:"tw-mb-10px"},"Dropdown - No label, dropdown up",-1),Vr={class:"tw-mt-10px"},Cr={class:"tw-mt-10px"},Er={class:"tw-mt-10px"},Nr={class:"tw-mt-10px"},_r=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),Sr=t.createElementVNode("h4",{class:"tw-mt-5"},"Dropdown - error",-1),Br=t.createElementVNode("h4",{class:"tw-mt-5"},"Dropdown - success",-1),xr=t.createElementVNode("h4",{class:"tw-mt-5"},"Dropdown - required",-1);function Tr(e,o,n,a,l,i){const s=t.resolveComponent("accessible-select"),r=t.resolveComponent("base-drop-down");return t.openBlock(),t.createElementBlock("div",fr,[wr,t.createElementVNode("div",br,[t.createElementVNode("div",gr,[yr,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",kr,[$r,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",Vr,[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",Cr,[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",Er,[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",Nr,[t.createVNode(r,{"btn-label":"Touch me"},{default:t.withCtx(()=>[_r]),_:1})])]),Sr,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"]),Br,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"]),xr,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 Or=S(hr,[["render",Tr]]),Lr=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()}}}),Ar=["id","value","name","checked"],Mr=["for"];function Ir(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,Ar),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,Mr)],2)}const Rr=S(Lr,[["render",Ir]]),Pr=t.defineComponent({name:"RadioGroup",components:{RadioButton:Rr},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}}}),vr=["data-cy"];function Dr(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,vr)}const zr=S(Pr,[["render",Dr]]),jr=t.defineComponent({name:"RadioSection",components:{RadioGroup:zr,BaseButton:K},data(){return{radioGroupValue:"",radioSlotValue:{},elems:[{id:"first",label:"One"},{id:"second",label:"Two"},{id:"third",label:"Three"}]}}}),Fr={class:"tw-h-full",style:{"max-height":"200px"}},Ur=t.createElementVNode("h4",{class:"tw-my-5"},"Radio",-1),Hr=t.createElementVNode("h4",{class:"tw-mb-5"},"Radio with slots",-1);function qr(e,o,n,a,l,i){const s=t.resolveComponent("radio-group"),r=t.resolveComponent("base-button");return t.openBlock(),t.createElementBlock("div",Fr,[Ur,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"]),Hr,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 Wr=S(jr,[["render",qr]]);function ho(e,o){return function(){return e.apply(o,arguments)}}const{toString:Kr}=Object.prototype,{getPrototypeOf:ct}=Object,Te=(e=>o=>{const n=Kr.call(o);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),G=e=>(e=e.toLowerCase(),o=>Te(o)===e),Oe=e=>o=>typeof o===e,{isArray:pe}=Array,ke=Oe("undefined");function Gr(e){return e!==null&&!ke(e)&&e.constructor!==null&&!ke(e.constructor)&&q(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const fo=G("ArrayBuffer");function Jr(e){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(e):o=e&&e.buffer&&fo(e.buffer),o}const Qr=Oe("string"),q=Oe("function"),wo=Oe("number"),Le=e=>e!==null&&typeof e=="object",Yr=e=>e===!0||e===!1,Ae=e=>{if(Te(e)!=="object")return!1;const o=ct(e);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Xr=G("Date"),Zr=G("File"),ei=G("Blob"),ti=G("FileList"),oi=e=>Le(e)&&q(e.pipe),ni=e=>{let o;return e&&(typeof FormData=="function"&&e instanceof FormData||q(e.append)&&((o=Te(e))==="formdata"||o==="object"&&q(e.toString)&&e.toString()==="[object FormData]"))},ai=G("URLSearchParams"),si=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 bo(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 go=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,yo=e=>!ke(e)&&e!==go;function pt(){const{caseless:e}=yo(this)&&this||{},o={},n=(a,l)=>{const i=e&&bo(o,l)||l;Ae(o[i])&&Ae(a)?o[i]=pt(o[i],a):Ae(a)?o[i]=pt({},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 li=(e,o,n,{allOwnKeys:a}={})=>($e(o,(l,i)=>{n&&q(l)?e[i]=ho(l,n):e[i]=l},{allOwnKeys:a}),e),ri=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ii=(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)},di=(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&&ct(e)}while(e&&(!n||n(e,o))&&e!==Object.prototype);return o},ci=(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},pi=e=>{if(!e)return null;if(pe(e))return e;let o=e.length;if(!wo(o))return null;const n=new Array(o);for(;o-- >0;)n[o]=e[o];return n},mi=(e=>o=>e&&o instanceof e)(typeof Uint8Array<"u"&&ct(Uint8Array)),ui=(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])}},hi=(e,o)=>{let n;const a=[];for(;(n=e.exec(o))!==null;)a.push(n);return a},fi=G("HTMLFormElement"),wi=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,n,a){return n.toUpperCase()+a}),ko=(({hasOwnProperty:e})=>(o,n)=>e.call(o,n))(Object.prototype),bi=G("RegExp"),$o=(e,o)=>{const n=Object.getOwnPropertyDescriptors(e),a={};$e(n,(l,i)=>{o(l,i,e)!==!1&&(a[i]=l)}),Object.defineProperties(e,a)},gi=e=>{$o(e,(o,n)=>{if(q(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const a=e[n];if(q(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+"'")})}})},yi=(e,o)=>{const n={},a=l=>{l.forEach(i=>{n[i]=!0})};return pe(e)?a(e):a(String(e).split(o)),n},ki=()=>{},$i=(e,o)=>(e=+e,Number.isFinite(e)?e:o),mt="abcdefghijklmnopqrstuvwxyz",Vo="0123456789",Co={DIGIT:Vo,ALPHA:mt,ALPHA_DIGIT:mt+mt.toUpperCase()+Vo},Vi=(e=16,o=Co.ALPHA_DIGIT)=>{let n="";const{length:a}=o;for(;e--;)n+=o[Math.random()*a|0];return n};function Ci(e){return!!(e&&q(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ei=e=>{const o=new Array(10),n=(a,l)=>{if(Le(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)},Ni=G("AsyncFunction"),_i=e=>e&&(Le(e)||q(e))&&q(e.then)&&q(e.catch),b={isArray:pe,isArrayBuffer:fo,isBuffer:Gr,isFormData:ni,isArrayBufferView:Jr,isString:Qr,isNumber:wo,isBoolean:Yr,isObject:Le,isPlainObject:Ae,isUndefined:ke,isDate:Xr,isFile:Zr,isBlob:ei,isRegExp:bi,isFunction:q,isStream:oi,isURLSearchParams:ai,isTypedArray:mi,isFileList:ti,forEach:$e,merge:pt,extend:li,trim:si,stripBOM:ri,inherits:ii,toFlatObject:di,kindOf:Te,kindOfTest:G,endsWith:ci,toArray:pi,forEachEntry:ui,matchAll:hi,isHTMLForm:fi,hasOwnProperty:ko,hasOwnProp:ko,reduceDescriptors:$o,freezeMethods:gi,toObjectSet:yi,toCamelCase:wi,noop:ki,toFiniteNumber:$i,findKey:bo,global:go,isContextDefined:yo,ALPHABET:Co,generateString:Vi,isSpecCompliantForm:Ci,toJSONObject:Ei,isAsyncFn:Ni,isThenable:_i};function x(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(x,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 Eo=x.prototype,No={};["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=>{No[e]={value:e}}),Object.defineProperties(x,No),Object.defineProperty(Eo,"isAxiosError",{value:!0}),x.from=(e,o,n,a,l,i)=>{const s=Object.create(Eo);return b.toFlatObject(e,s,function(r){return r!==Error.prototype},r=>r!=="isAxiosError"),x.call(s,e.message,o,n,a,l),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const Si=null;function ut(e){return b.isPlainObject(e)||b.isArray(e)}function _o(e){return b.endsWith(e,"[]")?e.slice(0,-2):e}function So(e,o,n){return e?e.concat(o).map(function(a,l){return a=_o(a),!n&&l?"["+a+"]":a}).join(n?".":""):o}function Bi(e){return b.isArray(e)&&!e.some(ut)}const xi=b.toFlatObject(b,{},null,function(e){return/^is[A-Z]/.test(e)});function Me(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 x("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)&&Bi(u)||(b.isFileList(u)||b.endsWith(f,"[]"))&&(N=b.toArray(u)))return f=_o(f),N.forEach(function(V,E){!(b.isUndefined(V)||V===null)&&o.append(s===!0?So([f],E,i):s===null?f:f+"[]",d(V))}),!1}return ut(u)?!0:(o.append(So(C,f,i),d(u)),!1)}const c=[],p=Object.assign(xi,{defaultVisitor:m,convertValue:d,isVisitable:ut});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 Bo(e){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return o[n]})}function ht(e,o){this._pairs=[],e&&Me(e,this,o)}const xo=ht.prototype;xo.append=function(e,o){this._pairs.push([e,o])},xo.toString=function(e){const o=e?function(n){return e.call(this,n,Bo)}:Bo;return this._pairs.map(function(n){return o(n[0])+"="+o(n[1])},"").join("&")};function Ti(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function To(e,o,n){if(!o)return e;const a=n&&n.encode||Ti,l=n&&n.serialize;let i;if(l?i=l(o,n):i=b.isURLSearchParams(o)?o.toString():new ht(o,n).toString(a),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Oi{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 Oo=Oi,Lo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Li=typeof URLSearchParams<"u"?URLSearchParams:ht,Ai=typeof FormData<"u"?FormData:null,Mi=typeof Blob<"u"?Blob:null,Ii=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Ri=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",J={isBrowser:!0,classes:{URLSearchParams:Li,FormData:Ai,Blob:Mi},isStandardBrowserEnv:Ii,isStandardBrowserWebWorkerEnv:Ri,protocols:["http","https","file","blob","url","data"]};function Pi(e,o){return Me(e,new J.classes.URLSearchParams,Object.assign({visitor:function(n,a,l,i){return J.isNode&&b.isBuffer(n)?(this.append(a,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},o))}function vi(e){return b.matchAll(/\w+|\[(\w*)]/g,e).map(o=>o[0]==="[]"?"":o[1]||o[0])}function Di(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 Ao(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]=Di(l[s])),!r)}if(b.isFormData(e)&&b.isFunction(e.entries)){const n={};return b.forEachEntry(e,(a,l)=>{o(vi(a),l,n,0)}),n}return null}const zi={"Content-Type":void 0};function ji(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 Ie={transitional:Lo,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(Ao(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 Pi(e,this.formSerializer).toString();if((i=b.isFileList(e))||n.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Me(i?{"files[]":e}:e,s&&new s,this.formSerializer)}}return l||a?(o.setContentType("application/json",!1),ji(e)):e}],transformResponse:[function(e){const o=this.transitional||Ie.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"?x.from(i,x.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:J.classes.FormData,Blob:J.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};b.forEach(["delete","get","head"],function(e){Ie.headers[e]={}}),b.forEach(["post","put","patch"],function(e){Ie.headers[e]=b.merge(zi)});const ft=Ie,Fi=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"]),Ui=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]&&Fi[n])&&(n==="set-cookie"?o[n]?o[n].push(a):o[n]=[a]:o[n]=o[n]?o[n]+", "+a:a)}),o},Mo=Symbol("internals");function Ve(e){return e&&String(e).trim().toLowerCase()}function Re(e){return e===!1||e==null?e:b.isArray(e)?e.map(Re):String(e)}function Hi(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 qi=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function wt(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 Wi(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,n,a)=>n.toUpperCase()+a)}function Ki(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 Pe{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]=Re(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())&&!qi(o)?s(Ui(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 Hi(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||wt(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||wt(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||wt(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]=Re(l),delete n[i];return}const r=o?Wi(i):String(i).trim();r!==i&&delete n[i],n[r]=Re(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[Mo]=this[Mo]={accessors:{}}).accessors,a=this.prototype;function l(i){const s=Ve(i);n[s]||(Ki(a,i),n[s]=!0)}return b.isArray(o)?o.forEach(l):l(o),this}}Pe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),b.freezeMethods(Pe.prototype),b.freezeMethods(Pe);const Z=Pe;function bt(e,o){const n=this||ft,a=o||n,l=Z.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 Io(e){return!!(e&&e.__CANCEL__)}function Ce(e,o,n){x.call(this,e??"canceled",x.ERR_CANCELED,o,n),this.name="CanceledError"}b.inherits(Ce,x,{__CANCEL__:!0});function Gi(e,o,n){const a=n.config.validateStatus;!n.status||!a||a(n.status)?e(n):o(new x("Request failed with status code "+n.status,[x.ERR_BAD_REQUEST,x.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Ji=J.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 Qi(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Yi(e,o){return o?e.replace(/\/+$/,"")+"/"+o.replace(/^\/+/,""):e}function Ro(e,o){return e&&!Qi(o)?Yi(e,o):o}const Xi=J.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 Zi(e){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return o&&o[1]||""}function ed(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 Po(e,o){let n=0;const a=ed(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 td=typeof XMLHttpRequest<"u",od=td&&function(e){return new Promise(function(o,n){let a=e.data;const l=Z.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)&&(J.isStandardBrowserEnv||J.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=Ro(e.baseURL,e.url);d.open(e.method.toUpperCase(),To(m,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function c(){if(!d)return;const h=Z.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};Gi(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 x("Request aborted",x.ECONNABORTED,e,d)),d=null)},d.onerror=function(){n(new x("Network Error",x.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||Lo;e.timeoutErrorMessage&&(h=e.timeoutErrorMessage),n(new x(h,u.clarifyTimeoutError?x.ETIMEDOUT:x.ECONNABORTED,e,d)),d=null},J.isStandardBrowserEnv){const h=(e.withCredentials||Xi(m))&&e.xsrfCookieName&&Ji.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",Po(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Po(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=Zi(m);if(p&&J.protocols.indexOf(p)===-1){n(new x("Unsupported protocol "+p+":",x.ERR_BAD_REQUEST,e));return}d.send(a||null)})},ve={http:Si,xhr:od};b.forEach(ve,(e,o)=>{if(e){try{Object.defineProperty(e,"name",{value:o})}catch{}Object.defineProperty(e,"adapterName",{value:o})}});const nd={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)?ve[n.toLowerCase()]:n));l++);if(!a)throw a===!1?new x(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(b.hasOwnProp(ve,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:ve};function gt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ce(null,e)}function vo(e){return gt(e),e.headers=Z.from(e.headers),e.data=bt.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),nd.getAdapter(e.adapter||ft.adapter)(e).then(function(o){return gt(e),o.data=bt.call(e,e.transformResponse,o),o.headers=Z.from(o.headers),o},function(o){return Io(o)||(gt(e),o&&o.response&&(o.response.data=bt.call(e,e.transformResponse,o.response),o.response.headers=Z.from(o.response.headers))),Promise.reject(o)})}const Do=e=>e instanceof Z?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(Do(m),Do(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 zo="1.4.0",yt={};["object","boolean","number","function","string","symbol"].forEach((e,o)=>{yt[e]=function(n){return typeof n===e||"a"+(o<1?"n ":" ")+e}});const jo={};yt.transitional=function(e,o,n){function a(l,i){return"[Axios v"+zo+"] Transitional option '"+l+"'"+i+(n?". "+n:"")}return(l,i,s)=>{if(e===!1)throw new x(a(i," has been removed"+(o?" in "+o:"")),x.ERR_DEPRECATED);return o&&!jo[i]&&(jo[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 ad(e,o,n){if(typeof e!="object")throw new x("options must be an object",x.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 x("option "+i+" must be "+d,x.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new x("Unknown option "+i,x.ERR_BAD_OPTION)}}const kt={assertOptions:ad,validators:yt},ae=kt.validators;class De{constructor(o){this.defaults=o,this.interceptors={request:new Oo,response:new Oo}}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&&kt.assertOptions(a,{silentJSONParsing:ae.transitional(ae.boolean),forcedJSONParsing:ae.transitional(ae.boolean),clarifyTimeoutError:ae.transitional(ae.boolean)},!1),l!=null&&(b.isFunction(l)?n.paramsSerializer={serialize:l}:kt.assertOptions(l,{encode:ae.function,serialize:ae.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=Z.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=[vo.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=vo.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=Ro(o.baseURL,o.url);return To(n,o.params,o.paramsSerializer)}}b.forEach(["delete","get","head","options"],function(e){De.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}))}}De.prototype[e]=o(),De.prototype[e+"Form"]=o(!0)});const ze=De;class $t{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 $t(function(n){o=n}),cancel:o}}}const sd=$t;function ld(e){return function(o){return e.apply(null,o)}}function rd(e){return b.isObject(e)&&e.isAxiosError===!0}const Vt={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(Vt).forEach(([e,o])=>{Vt[o]=e});const id=Vt;function Fo(e){const o=new ze(e),n=ho(ze.prototype.request,o);return b.extend(n,ze.prototype,o,{allOwnKeys:!0}),b.extend(n,o,null,{allOwnKeys:!0}),n.create=function(a){return Fo(me(e,a))},n}const P=Fo(ft);P.Axios=ze,P.CanceledError=Ce,P.CancelToken=sd,P.isCancel=Io,P.VERSION=zo,P.toFormData=Me,P.AxiosError=x,P.Cancel=P.CanceledError,P.all=function(e){return Promise.all(e)},P.spread=ld,P.isAxiosError=rd,P.mergeConfig=me,P.AxiosHeaders=Z,P.formToJSON=e=>Ao(b.isHTMLForm(e)?new FormData(e):e),P.HttpStatusCode=id,P.default=P;function dd(e){return!e||!Object.keys(e).length}let je;const cd=new Uint8Array(16);function pd(){if(!je&&(je=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!je))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return je(cd)}const D=[];for(let e=0;e<256;++e)D.push((e+256).toString(16).slice(1));function md(e,o=0){return(D[e[o+0]]+D[e[o+1]]+D[e[o+2]]+D[e[o+3]]+"-"+D[e[o+4]]+D[e[o+5]]+"-"+D[e[o+6]]+D[e[o+7]]+"-"+D[e[o+8]]+D[e[o+9]]+"-"+D[e[o+10]]+D[e[o+11]]+D[e[o+12]]+D[e[o+13]]+D[e[o+14]]+D[e[o+15]]).toLowerCase()}const ud=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Uo={randomUUID:ud};function hd(e,o,n){if(Uo.randomUUID&&!o&&!e)return Uo.randomUUID();e=e||{};const a=e.random||(e.rng||pd)();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 md(a)}hd();/*! js-cookie v3.0.5 | MIT */function Fe(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 fd={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 Ct(e,o){function n(l,i,s){if(!(typeof document>"u")){s=Fe({},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,"",Fe({},i,{expires:-1}))},withAttributes:function(l){return Ct(this.converter,Fe({},this.attributes,l))},withConverter:function(l){return Ct(Fe({},this.converter,l),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(e)}})}Ct(fd,{path:"/"});function wd(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 bd=(e="")=>!e||!e.trim()?"":(e=e.trim(),e.replace(" ","-").toLowerCase()),gd=(e,o)=>new Promise((n,a)=>{setTimeout(()=>{try{e&&e(),n()}catch{a()}},o)});function Ho(e,o=!1){return e==null?"":yd(o?Math.round(e):Math.floor(e),0)}function yd(e,o){return!e&&e!==0?"":e.toLocaleString("it-IT",{minimumFractionDigits:o,maximumFractionDigits:o})}const kd=["id"],$d=["id","data-cy","checked","disabled"],Vd=["for"],Et=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,$d),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,Vd),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,kd))}}),[["__scopeId","data-v-01b60c1d"]]),Cd=["id","data-cy"],qo=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||dd(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(Et,{id:u.getKey(C),key:V,"data-cy":`checkbox_${t.unref(bd)(`${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,Cd))}}),Ed=t.defineComponent({name:"CheckboxSection",components:{CheckboxGroup:qo,CheckboxBtn:Et},data(){return{firstCheckboxValue:[],singleCheckbox:!1,singleCheckbox2:!1}}}),Nd={class:"tw-h-full tw-max-h-[550px] sm:tw-max-h-[350px]"},_d={class:""},Sd=t.createElementVNode("h4",{class:"tw-my-5"},"Inline checkbox",-1),Bd={class:"tw-mt-5 tw-grid tw-grid-cols-1 tw-gap-2 sm:tw-grid-cols-2"},xd=t.createElementVNode("h4",{class:"tw-mb-3"},"Single Checkbox - Required with slot",-1),Td=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),Od=t.createElementVNode("p",{class:"tw-text-w-danger"},' <span class="required"/> ',-1),Ld=t.createElementVNode("span",null,"Some custom label",-1),Ad=t.createElementVNode("span",{class:"required"},null,-1),Md=t.createElementVNode("h4",{class:"tw-mb-3"},"Single Checkbox - Required without slot",-1),Id=t.createElementVNode("p",null,' Otherwise, you can just add the attribute "required" to your checkbox-btn component ',-1),Rd=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 Pd(e,o,n,a,l,i){const s=t.resolveComponent("checkbox-group"),r=t.resolveComponent("checkbox-btn");return t.openBlock(),t.createElementBlock("div",Nd,[t.createElementVNode("div",_d,[Sd,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",Bd,[t.createElementVNode("div",null,[xd,Td,Od,t.createVNode(r,{id:"single-checkbox",modelValue:e.singleCheckbox,"onUpdate:modelValue":o[1]||(o[1]=d=>e.singleCheckbox=d)},{label:t.withCtx(()=>[Ld,Ad]),_:1},8,["modelValue"])]),t.createElementVNode("div",null,[Md,Id,Rd,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 vd=S(Ed,[["render",Pd]]),Dd=["id"],zd=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,Dd))}}),[["__scopeId","data-v-1197a967"]]),jd=t.defineComponent({name:"BadgeSection",components:{BaseBadge:zd}}),Fd={class:"tw-grid tw-grid-cols-3 tw-gap-5"},Ud=t.createElementVNode("h3",{class:"tw-col-span-3"},"Tag card immobile",-1),Hd=t.createElementVNode("h3",{class:"tw-col-span-3"},"Tag non selezionabile",-1);function qd(e,o,n,a,l,i){const s=t.resolveComponent("base-badge");return t.openBlock(),t.createElementBlock("div",Fd,[Ud,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})]),Hd,t.createElementVNode("div",null,[t.createVNode(s,{"badge-class":"tw-badge-outline-tag"},{default:t.withCtx(()=>[t.createTextVNode(" Tag ")]),_:1})])])}const Wd=S(jd,[["render",qd]]);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 Wo(){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 Kd=["modal-sm","modal-md","modal-lg","modal-xl","modal-xxl","modal-desktop"],Gd=t.defineComponent({components:{BaseButton:K,CloseIcon:Be},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}=Wo();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=>Kd.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 gd(()=>{this.$emit("closed")},250)},async onClosed(){await this.closeModal(),this.$emit("closed")},async onOpened(){await this.openModal(),this.$emit("opened")}}}),Jd=["id","data-cy"],Qd=["innerHTML"];function Yd(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,Qd)],!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,Jd)],2)])}const Xd=S(Gd,[["render",Yd],["__scopeId","data-v-7e2cc924"]]),Zd=t.defineComponent({name:"ModalSection",components:{BaseBtModal:Xd,BaseButton:K},data(){return{show:!1}}});function ec(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 tc=S(Zd,[["render",ec]]);function Ko(e,o){const n=parseInt(e.value,10),a=parseInt(o.value,10);return[n,a]}const oc=e=>e.minPos+(Math.log(e.value)-e.minlval)/e.scale,nc=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 Nt(e,o){e<=0?o.style.zIndex="2":o.style.zIndex="0"}const ac=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),Nt(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(oc({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(nc({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;Nt(this.maxValue,e),l<=i?this.sliderMaxValue=i:this.sliderMaxValue=l},controlFromSlider(e,o){if(!this.toSlider)return;const[n,a]=Ko(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]=Ko(e,o),l=this.getCurrentValue(a);Ee(this.sliderMinValue,{min:this.leftSliderLimit,max:this.rightSliderLimit,value:a},"#B4C2F0","#2B5DFF",o),Nt(parseInt(this.toSlider.value,10),o),n<=a?(this.sliderMaxValue=a,this.maxValue=l):(o.value=`${n}`,this.sliderMaxValue=n,this.maxValue=n)}}}),sc={class:"range_container"},lc={class:"sliders_control"},rc=["value","min","max","step"],ic=["value","min","max","step"],dc={class:"form_control row"},cc={class:"pb-15 pb-sm-0 col-sm-6 col-xl-4"},pc={class:"col-sm-6 col-xl-4"};function mc(e,o,n,a,l,i){const s=t.resolveComponent("base-input");return t.openBlock(),t.createElementBlock("div",sc,[t.createElementVNode("div",lc,[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,rc),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,ic)]),t.createElementVNode("div",dc,[t.createElementVNode("div",cc,[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",pc,[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 uc=S(ac,[["render",mc],["__scopeId","data-v-f3e3ba75"]]),hc=t.defineComponent({name:"SliderSection",components:{BaseSlider:uc},data(){return{sliderMinValue:0,sliderMaxValue:0,sliderMinValue1:0,sliderMaxValue1:0,sliderMinValue2:0,sliderMaxValue2:0}}}),fc={class:"tw-max-h-[700px] sm:tw-h-full"},wc={class:"tw-pb-30px"},bc={class:"tw-pb-30px"},gc={class:"tw-pb-30px"},yc=t.createElementVNode("h4",{class:"tw-pb-5"},"Linear Slider",-1),kc={class:"tw-pb-30px"},$c=t.createElementVNode("h4",{class:"tw-pb-5"},"Logarithmic Slider",-1);function Vc(e,o,n,a,l,i){const s=t.resolveComponent("base-slider");return t.openBlock(),t.createElementBlock("div",fc,[t.createElementVNode("div",wc,[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",bc,[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",gc,[yc,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",kc,[$c,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 Cc=S(hc,[["render",Vc]]),Ec=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)}}}),Nc=e=>(t.pushScopeId("data-v-fa20eefa"),e=e(),t.popScopeId(),e),_c={class:"switch tw-relative tw-inline-block tw-min-w-[40px]"},Sc=["data-cy","checked"],Bc=Nc(()=>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)),xc=["innerHTML"];function Tc(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",_c,[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,Sc),Bc]),e.withRightLabel?t.renderSlot(e.$slots,"rightLabel",{key:0},()=>[t.createElementVNode("span",{class:"tw-ml-10px",innerHTML:e.label},null,8,xc)],!0):t.createCommentVNode("",!0)],2)}const Go=S(Ec,[["render",Tc],["__scopeId","data-v-fa20eefa"]]),Oc=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)}}}),Lc=["id","data-cy"],Ac=["data-cy"],Mc=["src","alt"],Ic=["innerHTML"],Rc=["data-cy"],Pc=["src","alt"],vc=["innerHTML"];function Dc(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,Mc)):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,Ic)],8,Ac),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,Pc)):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,vc)],8,Rc),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,Lc)}const Ue=S(Oc,[["render",Dc],["__scopeId","data-v-a745891d"]]),zc={class:"tw-h-full tw-max-h-[400px] sm:tw-max-h-[300px]"},jc=t.createElementVNode("h4",{class:"tw-my-5"},"Simple Toggle",-1),Fc={class:"tw-grid tw-grid-cols-2 tw-gap-5"},Uc=t.createElementVNode("h4",{class:"tw-my-5"},"Complex Toggle - Full",-1),Hc={class:"tw-mb-15px tw-grid tw-grid-cols-1 tw-gap-5 sm:tw-grid-cols-2"},qc=t.createElementVNode("h4",{class:"tw-my-5"},"Complex Toggle - Padded",-1),Wc={class:"tw-grid tw-grid-cols-1 tw-gap-5 sm:tw-grid-cols-2"},Kc=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",zc,[jc,t.createElementVNode("div",Fc,[t.createVNode(Go,{modelValue:o.value,"onUpdate:modelValue":d[0]||(d[0]=m=>o.value=m),label:"sign in"},null,8,["modelValue"]),t.createVNode(Go,{modelValue:n.value,"onUpdate:modelValue":d[1]||(d[1]=m=>n.value=m),label:"sign in"},null,8,["modelValue"])]),Uc,t.createElementVNode("div",Hc,[t.createVNode(Ue,{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(Ue,{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"])]),qc,t.createElementVNode("div",Wc,[t.createVNode(Ue,{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(Ue,{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"])])]))}}),Gc=t.defineComponent({name:"BasePagination",components:{BaseIcon:dt},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 Ho(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 Ho(e)},selectPage(e){this.$emit("new-pagination-offset",Math.round((e-1)*this.limit-this.additionalCount))},getCount(){return this.count}}}),Jc={"aria-label":"Page navigation"},Qc={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"},Yc={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"},Xc=["onClick"],Zc={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"},ep=["onClick"],tp={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 op(e,o,n,a,l,i){const s=t.resolveComponent("baseIcon");return t.openBlock(),t.createElementBlock("nav",Jc,[e.getCount()>0?(t.openBlock(),t.createElementBlock("ul",Qc,[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",Yc," ... ")):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,Xc))),128)),t.createElementVNode("li",Zc,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,ep))),128)),e.getCurrentPage()<e.getPages()-e.siblings-1?(t.openBlock(),t.createElementBlock("li",tp," ... ")):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 np=S(Gc,[["render",op]]),ap=t.defineComponent({name:"PaginationSection",components:{BasePagination:np}});function sp(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 lp=S(ap,[["render",sp]]),rp=["tabindex"],ip=["innerHTML"],dp=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,ip)])],42,rp))}}),cp=["innerHTML"],He=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=wd({delay:300},a.onInputChangeCb)});const{activeIdx:u,selectedIdx:f}=mo({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))}},A=(k,M)=>{a.onOptionSelectedCb&&a.onOptionSelectedCb(k),m.value=!0,s.value=k.label,l.value=k,c.value=!1,f.value=M},v=()=>{r.value.length&&a.keepState!=="closed"&&(c.value=!0)};return t.watch(l,(k,M)=>{k!==M&&(s.value=(k==null?void 0:k.label)||"")}),t.watch(f,k=>{var F;if(k===-1)return;const M=r.value[k];m.value&&M.label===((F=l.value)==null?void 0:F.label)||A(M,k)}),t.watch(()=>a.manualClose,k=>{k&&(m.value&&(r.value=[]),i("dropdownClosed"))}),o({select:()=>{var k;(k=p.value)==null||k.select()}}),(k,M)=>(t.openBlock(),t.createBlock(uo,{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":M[0]||(M[0]=F=>c.value=F),onClick:M[1]||(M[1]=F=>{i("click"),v()})},{btn_slot:t.withCtx(()=>{var F;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":((F=l.value)==null?void 0:F.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:W})=>[t.renderSlot(k.$slots,"righticon",{handleClean:W})]),_: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,(F,W)=>(t.openBlock(),t.createBlock(dp,{key:W,active:t.unref(u)===W,class:"tw-m-1 tw-rounded-[5px] tw-px-5 tw-py-10px hover:tw-cursor-pointer",onClick:he=>A(F,W),onMouseover:he=>u.value=W},{default:t.withCtx(()=>[t.createElementVNode("span",{innerHTML:F.label},null,8,cp)]),_:2},1032,["active","onClick","onMouseover"]))),128))]),_:3},8,["class","data-cy","dropdown-classes","open-dropdown","keep-state"]))}}),pp=(e,{attrs:o})=>{e={...ne(),...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"})]))},mp={style:{height:"520px"}},up=t.createElementVNode("h2",{class:"tw-mt-5"},"Google Autocomplete - Bordered",-1),hp={class:"tw-relative"},fp=t.createElementVNode("h2",{class:"tw-my-5"},"Autocomplete - All Bordered",-1),wp=["onClick"],bp=t.createElementVNode("h2",{class:"tw-my-5"},"Autocomplete - All Bordered Thick",-1),gp={class:"tw-bg-blue-500 tw-p-5"},yp=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",mp,[t.createVNode(He,{id:"autocomplete_1",label:"Cities","model-value":o.value,"on-input-change-cb":l},null,8,["model-value"]),up,t.createElementVNode("div",hp,[t.createVNode(He,{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(it),{class:"text-input-icon left md",width:15,height:15})]),_:1},8,["model-value"]),t.createVNode(K,{class:"tw-absolute tw-right-0 tw-top-0"},{default:t.withCtx(()=>[t.createTextVNode(" Cerca ")]),_:1})]),fp,t.createVNode(He,{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(pp),{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(Be),{width:15,height:15})],8,wp)):t.createCommentVNode("",!0)]),_:1},8,["modelValue"]),bp,t.createElementVNode("div",gp,[t.createVNode(He,{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"])])]))}}),kp=t.defineComponent({name:"BasePaper"}),$p={class:"base-paper"};function Vp(e,o,n,a,l,i){return t.openBlock(),t.createElementBlock("div",$p,[t.renderSlot(e.$slots,"content",{},void 0,!0)])}const Cp=S(kp,[["render",Vp],["__scopeId","data-v-7293fd3b"]]),Ep=t.defineComponent({name:"PaperSection",components:{BasePaper:Cp}}),Np=t.createElementVNode("div",{style:{width:"200px",height:"300px"}},null,-1);function _p(e,o,n,a,l,i){const s=t.resolveComponent("BasePaper");return t.openBlock(),t.createBlock(s,{class:"tw-my-5"},{content:t.withCtx(()=>[Np]),_:1})}const Sp=S(Ep,[["render",_p]]),Bp=t.defineComponent({name:"BaseUploadFile",components:{BaseFloatingLabel:rt},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]))}}}),xp={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"},Tp={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"},Op=["innerHTML"],Lp={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"},Ap=["id","multiple","accept"];function Mp(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",xp,[t.createElementVNode("legend",Tp,[t.createElementVNode("span",{class:"tw-visible tw-inline-block tw-px-5px tw-opacity-0",innerHTML:e.labelText},null,8,Op)])]),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",Lp,[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,Ap),t.renderSlot(e.$slots,"label",{filename:e.filename})])],2)}const Ip=S(Bp,[["render",Mp]]),Rp=["innerHTML"],Pp=t.defineComponent({__name:"UploadBtnSection",setup(e){return(o,n)=>(t.openBlock(),t.createBlock(Ip,{"label-text":"CV"},{label:t.withCtx(({filename:a})=>[t.createElementVNode("span",{innerHTML:a||"Upload file"},null,8,Rp)]),_:1}))}}),vp={class:"tw-list-none tw-text"},Dp=["onClick"],zp=["href"],jp=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",vp,[(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,zp)],10,Dp))),128))]))}}),Fp={class:"tw-grid tw-grid-cols-3 tw-gap-5"},Up=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",Fp,[t.createElementVNode("div",null,[t.createVNode(K,{"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(K,{"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(K,{"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(K,{"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))}}),Hp=["id","aria-labelledby"],qp={class:"tw-overflow-hidden"},Wp={class:"tw-mb-0"},Kp=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",qp,[t.createElementVNode("p",Wp,[t.renderSlot(o.$slots,"default",{isOpen:o.accordionOpen})])])])],10,Hp))}}),Gp=["id"],Jp=["aria-expanded","aria-controls"],Qp=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(xe),{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,Jp)])],10,Gp))}}),Yp={key:0},Xp=["id","data-cy","aria-expanded","aria-controls"],Zp=["itemprop","innerHTML"],_t=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",Yp,[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,Zp),t.createVNode(t.unref(xe),{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,Xp)])):(s.$slots.custom_content||s.$slots.custom_btn)&&!s.$slots.custom_accordion?(t.openBlock(),t.createBlock(Qp,{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(Kp,{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))}}),em=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(_t,{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(_t,{id:`multiTypology-${m}`,key:`accordion_${m}`,title:d.title,"root-classes":"last:tw-pb-[100px]"},{default:t.withCtx(()=>[t.createVNode(qo,{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(em,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(_t,{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:Up,UiKitSidebar:jp,UploadBtnSection:Pp,PaperSection:Sp,AutocompleteSection:yp,CheckboxBtn:Et,PaginationSection:lp,ToggleSection:Kc,ModalSection:tc,SliderSection:Cc,BadgeSection:Wd,CheckboxSection:vd,RadioSection:Wr,DropdownSection:Or,TextareaSection:Ll,CardSection:Pa,TextInputSection:vs,ButtonsSection:tl,TabSection:fl,AlertSection:Pl,TooltipSection:Xl},setup(){const{isSmall:e}=Wo();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"),A=t.resolveComponent("textarea-section"),v=t.resolveComponent("dropdown-section"),Q=t.resolveComponent("autocomplete-section"),k=t.resolveComponent("radio-section"),M=t.resolveComponent("checkbox-btn"),F=t.resolveComponent("checkbox-section"),W=t.resolveComponent("slider-section"),he=t.resolveComponent("toggle-section"),qe=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]=(...z)=>e.delayedCloseMobileSidebar&&e.delayedCloseMobileSidebar(...z))},[(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((...z)=>e.delayedCloseMobileSidebar&&e.delayedCloseMobileSidebar(...z),["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((...z)=>e.delayedOpenMobileSidebar&&e.delayedOpenMobileSidebar(...z),["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(A),Nm,t.createVNode(v),_m,t.createVNode(Q),Sm,t.createVNode(k),Bm,t.createElementVNode("div",xm,[t.createVNode(M,{id:"checkbox",modelValue:e.checkboxValue,"onUpdate:modelValue":o[2]||(o[2]=z=>e.checkboxValue=z),label:"Checkbox"},null,8,["modelValue"]),t.createVNode(M,{id:"checkbox",modelValue:e.checkboxValue2,"onUpdate:modelValue":o[3]||(o[3]=z=>e.checkboxValue2=z),label:"Checkbox",required:"required"},null,8,["modelValue"]),t.createVNode(M,{id:"checkbox",modelValue:e.checkboxValue4,"onUpdate:modelValue":o[4]||(o[4]=z=>e.checkboxValue4=z),label:"Checkbox",required:"required","is-valid":!1},null,8,["modelValue"]),t.createVNode(M,{id:"checkbox",modelValue:e.checkboxValue3,"onUpdate:modelValue":o[5]||(o[5]=z=>e.checkboxValue3=z),label:"Checkbox","is-valid":!1},null,8,["modelValue"])]),Tm,t.createVNode(F),Om,t.createVNode(W),Lm,t.createVNode(he),t.createVNode(qe)])]),Am])}const Im=S(sm,[["render",Mm]]),Rm=Ea({history:Pn(),routes:[{path:"/",component:Im}]});t.createApp(en).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(Be),{class:"snackbar-close-icon",width:20,height:20,"stroke-color":"#000"})])],10,vm)]))}}),[["__scopeId","data-v-81ca5c43"]])},Symbol.toStringTag,{value:"Module"}));se.BaseButton=K,Object.defineProperty(se,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"})});
|