@aitronos/freddy-plugins 0.4.50 → 0.4.52
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/CHANGELOG.md +28 -0
- package/dist/freddy-plugins.css +1 -1
- package/dist/{icons-tCQ-O4_0.js → icons-BeZGWK3s.js} +519 -389
- package/dist/{icons-tCQ-O4_0.js.map → icons-BeZGWK3s.js.map} +1 -1
- package/dist/icons-DQqi52kz.cjs +2 -0
- package/dist/{icons-DaAdlBbv.cjs.map → icons-DQqi52kz.cjs.map} +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +362 -0
- package/dist/index.js +874 -728
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/icons-DaAdlBbv.cjs +0 -2
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var W=Object.create;var M=Object.defineProperty;var K=Object.getOwnPropertyDescriptor;var Q=Object.getOwnPropertyNames;var J=Object.getPrototypeOf,X=Object.prototype.hasOwnProperty;var Y=(v,m,l,i)=>{if(m&&typeof m=="object"||typeof m=="function")for(let r of Q(m))!X.call(v,r)&&r!==l&&M(v,r,{get:()=>m[r],enumerable:!(i=K(m,r))||i.enumerable});return v};var ee=(v,m,l)=>(l=v!=null?W(J(v)):{},Y(m||!v||!v.__esModule?M(l,"default",{value:v,enumerable:!0}):l,v));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./icons-DQqi52kz.cjs"),e=require("vue"),V={mounted(v){v.getAttribute("class")||v.setAttribute("class","base-fallback-style")}},oe={install(v){v.config.globalProperties.$themeService=o.useThemeService(),v.provide("themeService",o.useThemeService()),v.config.globalProperties.$theme=o.useThemeService()}};let D=null;const ne=async()=>{try{D=(await import("dompurify")).default}catch{}};ne();const te=["a","abbr","b","blockquote","br","code","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","li","ol","p","pre","span","strong","sub","sup","table","tbody","td","th","thead","tr","u","ul"],le=["href","src","alt","title","width","height","align","class","id","colspan","rowspan"],L=v=>v.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").replace(/<iframe\b[^<]*(?:(?!<\/iframe>)<[^<]*)*<\/iframe>/gi,"").replace(/on\w+="[^"]*"/gi,"").replace(/javascript:/gi,""),x=v=>{if(!D)return L(v);try{return D.sanitize(v,{ALLOWED_TAGS:te,ALLOWED_ATTR:le,USE_PROFILES:{html:!0}})}catch{return L(v)}},F={mounted(v,m){v.innerHTML=x(m.value||"")},updated(v,m){v.innerHTML=x(m.value||"")}},ie={install(v){var l;oe.install(v),v.directive("icon-style",V),v.directive("fr-sanitize",F);const m=Object.assign({"./icons/IconAddFileSystem.vue":o.__vite_glob_0_0,"./icons/IconAddPeople.vue":o.__vite_glob_0_1,"./icons/IconAitronos.vue":o.__vite_glob_0_2,"./icons/IconApple.vue":o.__vite_glob_0_3,"./icons/IconApplePay.vue":o.__vite_glob_0_4,"./icons/IconArrowDown.vue":o.__vite_glob_0_5,"./icons/IconArrowLeft.vue":o.__vite_glob_0_6,"./icons/IconArrowUp.vue":o.__vite_glob_0_7,"./icons/IconBadgeCheck.vue":o.__vite_glob_0_8,"./icons/IconBroom.vue":o.__vite_glob_0_9,"./icons/IconBuildings.vue":o.__vite_glob_0_10,"./icons/IconCalendarWithTickInside.vue":o.__vite_glob_0_11,"./icons/IconCallNotAllowed.vue":o.__vite_glob_0_12,"./icons/IconCardPay.vue":o.__vite_glob_0_13,"./icons/IconCaution.vue":o.__vite_glob_0_14,"./icons/IconChangeLog.vue":o.__vite_glob_0_15,"./icons/IconCheckCircleFill.vue":o.__vite_glob_0_16,"./icons/IconCheckInCircle.vue":o.__vite_glob_0_17,"./icons/IconCheckRounded.vue":o.__vite_glob_0_18,"./icons/IconChevronDown.vue":o.__vite_glob_0_19,"./icons/IconChevronLeft.vue":o.__vite_glob_0_20,"./icons/IconChevronRight.vue":o.__vite_glob_0_21,"./icons/IconChevronUp.vue":o.__vite_glob_0_22,"./icons/IconCircledCheck.vue":o.__vite_glob_0_23,"./icons/IconClock.vue":o.__vite_glob_0_24,"./icons/IconClosedEnvelope.vue":o.__vite_glob_0_25,"./icons/IconCloudUpload.vue":o.__vite_glob_0_26,"./icons/IconConnectorConfluence.vue":o.__vite_glob_0_27,"./icons/IconConnectorFigma.vue":o.__vite_glob_0_28,"./icons/IconConnectorFreshDesk.vue":o.__vite_glob_0_29,"./icons/IconConnectorGitHub.vue":o.__vite_glob_0_30,"./icons/IconConnectorJira.vue":o.__vite_glob_0_31,"./icons/IconConnectorLinear.vue":o.__vite_glob_0_32,"./icons/IconConnectorNotion.vue":o.__vite_glob_0_33,"./icons/IconConnectorSlack.vue":o.__vite_glob_0_34,"./icons/IconConnectorZapier.vue":o.__vite_glob_0_35,"./icons/IconCopy.vue":o.__vite_glob_0_36,"./icons/IconCross.vue":o.__vite_glob_0_37,"./icons/IconCrossCircleFill.vue":o.__vite_glob_0_38,"./icons/IconCrossInCircle.vue":o.__vite_glob_0_39,"./icons/IconCurrentTick.vue":o.__vite_glob_0_40,"./icons/IconDataUpload.vue":o.__vite_glob_0_41,"./icons/IconDelete.vue":o.__vite_glob_0_42,"./icons/IconDeleteFillRed.vue":o.__vite_glob_0_43,"./icons/IconDialingPhone.vue":o.__vite_glob_0_44,"./icons/IconDisabledAlert.vue":o.__vite_glob_0_45,"./icons/IconDocumentation.vue":o.__vite_glob_0_46,"./icons/IconDownload.vue":o.__vite_glob_0_47,"./icons/IconDribbble.vue":o.__vite_glob_0_48,"./icons/IconDropdownArrow.vue":o.__vite_glob_0_49,"./icons/IconEdit.vue":o.__vite_glob_0_50,"./icons/IconEditLinePath.vue":o.__vite_glob_0_51,"./icons/IconEllipse.vue":o.__vite_glob_0_52,"./icons/IconExcelThumbnail.vue":o.__vite_glob_0_53,"./icons/IconEye.vue":o.__vite_glob_0_54,"./icons/IconFacebook.vue":o.__vite_glob_0_55,"./icons/IconFigma.vue":o.__vite_glob_0_56,"./icons/IconFile.vue":o.__vite_glob_0_57,"./icons/IconFileSystem.vue":o.__vite_glob_0_58,"./icons/IconFileUpload.vue":o.__vite_glob_0_59,"./icons/IconFilter.vue":o.__vite_glob_0_60,"./icons/IconFolder.vue":o.__vite_glob_0_61,"./icons/IconFreddyHub.vue":o.__vite_glob_0_62,"./icons/IconFreddyHubLogo.vue":o.__vite_glob_0_63,"./icons/IconFreddyHubNewLogo.vue":o.__vite_glob_0_64,"./icons/IconFreddyHubTitle.vue":o.__vite_glob_0_65,"./icons/IconFreddySmall.vue":o.__vite_glob_0_66,"./icons/IconGlobExpand.vue":o.__vite_glob_0_67,"./icons/IconGlobe.vue":o.__vite_glob_0_68,"./icons/IconGoogle.vue":o.__vite_glob_0_69,"./icons/IconHollowCircle.vue":o.__vite_glob_0_70,"./icons/IconHome.vue":o.__vite_glob_0_71,"./icons/IconInfoRounded.vue":o.__vite_glob_0_72,"./icons/IconInvalidInvoice.vue":o.__vite_glob_0_73,"./icons/IconInvoice.vue":o.__vite_glob_0_74,"./icons/IconInvoiceSwitch.vue":o.__vite_glob_0_75,"./icons/IconLapTableBottom.vue":o.__vite_glob_0_76,"./icons/IconLense.vue":o.__vite_glob_0_77,"./icons/IconLightCross.vue":o.__vite_glob_0_78,"./icons/IconLink04.vue":o.__vite_glob_0_79,"./icons/IconLoadingError.vue":o.__vite_glob_0_80,"./icons/IconLoadingOrg.vue":o.__vite_glob_0_81,"./icons/IconLocationWithCircleIn.vue":o.__vite_glob_0_82,"./icons/IconLock.vue":o.__vite_glob_0_83,"./icons/IconMarketPlace.vue":o.__vite_glob_0_84,"./icons/IconMaximize.vue":o.__vite_glob_0_85,"./icons/IconMicrophone.vue":o.__vite_glob_0_86,"./icons/IconMutedMicrophone.vue":o.__vite_glob_0_87,"./icons/IconNewNotification.vue":o.__vite_glob_0_88,"./icons/IconNewTab.vue":o.__vite_glob_0_89,"./icons/IconNotification.vue":o.__vite_glob_0_90,"./icons/IconOpenBook.vue":o.__vite_glob_0_91,"./icons/IconPaperAirPlane.vue":o.__vite_glob_0_92,"./icons/IconPauseCircle.vue":o.__vite_glob_0_93,"./icons/IconPdfThumbnail.vue":o.__vite_glob_0_94,"./icons/IconPenEdit.vue":o.__vite_glob_0_95,"./icons/IconPencil.vue":o.__vite_glob_0_96,"./icons/IconPeopleHub.vue":o.__vite_glob_0_97,"./icons/IconPersonCircle.vue":o.__vite_glob_0_98,"./icons/IconPits.vue":o.__vite_glob_0_99,"./icons/IconPlay.vue":o.__vite_glob_0_100,"./icons/IconPlus.vue":o.__vite_glob_0_101,"./icons/IconPolygonDown.vue":o.__vite_glob_0_102,"./icons/IconPresentation.vue":o.__vite_glob_0_103,"./icons/IconProgressBase.vue":o.__vite_glob_0_104,"./icons/IconProgressComplete.vue":o.__vite_glob_0_105,"./icons/IconProgressGoing.vue":o.__vite_glob_0_106,"./icons/IconPurpose.vue":o.__vite_glob_0_107,"./icons/IconPurseCircleFill.vue":o.__vite_glob_0_108,"./icons/IconQuestion.vue":o.__vite_glob_0_109,"./icons/IconRadio.vue":o.__vite_glob_0_110,"./icons/IconRadioFill.vue":o.__vite_glob_0_111,"./icons/IconRefresh.vue":o.__vite_glob_0_112,"./icons/IconRevertedTraingle.vue":o.__vite_glob_0_113,"./icons/IconRobotScreen.vue":o.__vite_glob_0_114,"./icons/IconRoundTick.vue":o.__vite_glob_0_115,"./icons/IconSearch.vue":o.__vite_glob_0_116,"./icons/IconSearchOptimised.vue":o.__vite_glob_0_117,"./icons/IconSectionHide.vue":o.__vite_glob_0_118,"./icons/IconSend.vue":o.__vite_glob_0_119,"./icons/IconSettings.vue":o.__vite_glob_0_120,"./icons/IconSettingsBold.vue":o.__vite_glob_0_121,"./icons/IconSize.vue":o.__vite_glob_0_122,"./icons/IconSliderKnobs.vue":o.__vite_glob_0_123,"./icons/IconSortIdle.vue":o.__vite_glob_0_124,"./icons/IconSparkle.vue":o.__vite_glob_0_125,"./icons/IconSpotlio.vue":o.__vite_glob_0_126,"./icons/IconStar.vue":o.__vite_glob_0_127,"./icons/IconStatistics.vue":o.__vite_glob_0_128,"./icons/IconStopChat.vue":o.__vite_glob_0_129,"./icons/IconStreamLineHub.vue":o.__vite_glob_0_130,"./icons/IconStreamLineHubNewLogo.vue":o.__vite_glob_0_131,"./icons/IconSun.vue":o.__vite_glob_0_132,"./icons/IconSwap.vue":o.__vite_glob_0_133,"./icons/IconText.vue":o.__vite_glob_0_134,"./icons/IconTextThumbnail.vue":o.__vite_glob_0_135,"./icons/IconThinDocument.vue":o.__vite_glob_0_136,"./icons/IconThinFile.vue":o.__vite_glob_0_137,"./icons/IconThumbsDown.vue":o.__vite_glob_0_138,"./icons/IconTick.vue":o.__vite_glob_0_139,"./icons/IconUser.vue":o.__vite_glob_0_140,"./icons/IconVerticalDots.vue":o.__vite_glob_0_141,"./icons/IconVideoCamera.vue":o.__vite_glob_0_142,"./icons/IconWarningOctal.vue":o.__vite_glob_0_143,"./icons/IconX.vue":o.__vite_glob_0_144,"./icons/IconZip.vue":o.__vite_glob_0_145});for(const i in m){const r=m[i],u=r.default.name||((l=i.split("/").pop())==null?void 0:l.replace(".vue",""));v.component(u,r.default)}}},re={install(v){v.directive("fr-sanitize",F)}},se={install(v){v.directive("icon-style",V)}},ce=e.defineComponent({__name:"AnimeSpaceman",props:{customClass:{},customStyle:{}},setup(v){return(m,l)=>(e.openBlock(),e.createElementBlock("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 800 600",class:e.normalizeClass(["spaceman-logo",m.customClass]),style:e.normalizeStyle(m.customStyle)},[...l[0]||(l[0]=[e.createStaticVNode(`<g><defs><clipPath id="GlassClip"><path d="M380.857,346.164c-1.247,4.651-4.668,8.421-9.196,10.06c-9.332,3.377-26.2,7.817-42.301,3.5
|
|
2
2
|
s-28.485-16.599-34.877-24.192c-3.101-3.684-4.177-8.66-2.93-13.311l7.453-27.798c0.756-2.82,3.181-4.868,6.088-5.13
|
|
3
3
|
c6.755-0.61,20.546-0.608,41.785,5.087s33.181,12.591,38.725,16.498c2.387,1.682,3.461,4.668,2.705,7.488L380.857,346.164z"></path></clipPath><clipPath id="cordClip"><rect width="800" height="600"></rect></clipPath></defs><g id="planet"><circle fill="none" stroke="#ffffff" stroke-width="3" stroke-miterlimit="10" cx="572.859" cy="108.803" r="90.788"></circle><circle id="craterBig" fill="none" stroke="#ffffff" stroke-width="3" stroke-miterlimit="10" cx="548.891" cy="62.319" r="13.074"></circle><circle id="craterSmall" fill="none" stroke="#ffffff" stroke-width="3" stroke-miterlimit="10" cx="591.743" cy="158.918" r="7.989"></circle><path id="ring" fill="none" stroke="#ffffff" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" d="
|
|
4
4
|
M476.562,101.461c-30.404,2.164-49.691,4.221-49.691,8.007c0,6.853,63.166,12.408,141.085,12.408s141.085-5.555,141.085-12.408
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
M380.857,346.164c-1.247,4.651-4.668,8.421-9.196,10.06c-9.332,3.377-26.2,7.817-42.301,3.5s-28.485-16.599-34.877-24.192
|
|
32
32
|
c-3.101-3.684-4.177-8.66-2.93-13.311l7.453-27.798c0.756-2.82,3.181-4.868,6.088-5.13c6.755-0.61,20.546-0.608,41.785,5.087
|
|
33
33
|
s33.181,12.591,38.725,16.498c2.387,1.682,3.461,4.668,2.705,7.488L380.857,346.164z"></path><g clip-path="url(#GlassClip)"><polygon id="glassShine" fill="none" stroke="#ffffff" stroke-width="3" stroke-miterlimit="10" points="
|
|
34
|
-
278.436,375.599 383.003,264.076 364.393,251.618 264.807,364.928 "></polygon></g></g></g></g>`,1)])],6))}}),ae={key:0,class:"fixed z-[9998] top-0 left-0 w-full h-full bg-modalBackgroundBlur flex justify-center items-center"},ue={class:"flex justify-center items-center"},de={class:"modal-header"},_e={class:"modal-body"},ve={class:"modal-footer"},pe=e.defineComponent({__name:"AdvancedModal",props:{isVisible:{type:Boolean},largeModel:{type:Boolean}},setup(v){return(m,l)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[m.isVisible?(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("div",ue,[e.createElementVNode("div",{class:e.normalizeClass({"p-8 bg-background rounded-[2.5rem] overflow-hidden text-white 2xl:w-[56.25rem] xl:w-[56.25rem] lg:w-[56.25rem] md:w-[45.625rem] sm:w-[31.25rem] xs:w-auto":m.largeModel})},[e.createElementVNode("div",de,[e.renderSlot(m.$slots,"header")]),e.createElementVNode("div",_e,[e.renderSlot(m.$slots,"body")]),e.createElementVNode("div",ve,[e.renderSlot(m.$slots,"footer")])],2)])])):e.createCommentVNode("",!0)]),_:3}))}}),me=["innerHTML"],fe={key:1},T=e.defineComponent({__name:"Tooltip",props:{text:{},placement:{},html:{type:Boolean},contentClass:{}},setup(v){const{currentProject:m,currentColorMode:l}=t.useTheme(),i=e.ref(!1),r=e.ref(!1),d=e.ref(null);let u=null;function c(){u&&clearTimeout(u),u=setTimeout(()=>{if(d.value){const _=d.value.getBoundingClientRect();r.value=_.top<150}i.value=!0},200)}function p(){u&&clearTimeout(u),i.value=!1}return(_,f)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tooltipWrapper",ref:d,class:"tooltip-wrapper",onMouseenter:c,onMouseleave:p,onFocusin:c,onFocusout:p,tabindex:"0"},[e.renderSlot(_.$slots,"default"),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[i.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tooltip-content",[_.placement,r.value?"force-bottom":"",_.contentClass]])},[e.renderSlot(_.$slots,"content",{},()=>[_.html?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:_.text},null,8,me)):(e.openBlock(),e.createElementBlock("span",fe,e.toDisplayString(_.text),1))])],2)):e.createCommentVNode("",!0)]),_:3})],544))}}),he=["disabled","aria-disabled","aria-label"],ge={key:0,class:"freddy-plugins-button-label"},be={key:1,class:"freddy-plugins-button-label"},ye=["disabled","aria-disabled","aria-label"],ke={key:0,class:"freddy-plugins-button-label"},Ie={key:1,class:"freddy-plugins-button-label"},Ce=e.defineComponent({__name:"BaseButton",props:{size:{default:"md"},hierarchy:{default:"primary"},state:{default:"default"},errorState:{type:Boolean,default:!1},iconOnly:{type:Boolean,default:!1},leftIcon:{default:void 0},rightIcon:{default:void 0},label:{default:"Button"},loadingText:{default:void 0},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},tooltip:{default:void 0},tooltipPlacement:{default:"top"}},emits:["click","leftIconClick","rightIconClick"],setup(v,{emit:m}){const l=v,i={IconSearch:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_116)),IconUser:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_140)),IconDelete:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_42)),IconSend:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_119)),IconPlus:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_101)),IconEdit:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_50)),IconCross:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_37)),IconTick:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_139)),IconArrowLeft:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_6)),IconArrowDown:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_5)),IconArrowUp:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_7)),IconChevronDown:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_19)),IconChevronUp:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_22)),IconChevronLeft:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_20)),IconChevronRight:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_21)),IconSettings:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_120)),IconHome:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_71)),IconDownload:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_47)),IconRefresh:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_112)),IconCopy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_36)),IconEye:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_54)),IconLock:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_83)),IconStar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_127)),IconFilter:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_60)),IconFile:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_57)),IconFolder:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_61)),IconText:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_134)),IconLink04:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(s=>s.__vite_glob_0_79))},r=e.computed(()=>l.leftIcon&&i[l.leftIcon]||null),d=e.computed(()=>l.rightIcon&&i[l.rightIcon]||null),u=m,c=e.ref(!1),p=e.computed(()=>["freddy-plugins-base-button",`freddy-plugins-base-button--${l.size}`,`freddy-plugins-base-button--${l.hierarchy}`,{"freddy-plugins-base-button--disabled":l.disabled,"freddy-plugins-base-button--loading":l.loading,"freddy-plugins-base-button--icon-only":l.iconOnly,"freddy-plugins-base-button--error":l.errorState,"freddy-plugins-base-button--hover":c.value&&!l.disabled&&!l.loading,"freddy-plugins-base-button--focused":l.state==="focused"}]),_=s=>{!l.disabled&&!l.loading&&u("click",s)},f=s=>{!l.disabled&&!l.loading&&u("leftIconClick",s)},y=s=>{!l.disabled&&!l.loading&&u("rightIconClick",s)},C=()=>{c.value=!0},w=()=>{c.value=!1};return(s,P)=>s.tooltip?(e.openBlock(),e.createBlock(T,{key:0,text:s.tooltip,placement:s.tooltipPlacement},{default:e.withCtx(()=>[e.createElementVNode("button",{class:e.normalizeClass(p.value),disabled:s.disabled||s.loading,"aria-disabled":s.disabled||s.loading,"aria-label":s.iconOnly?s.label:void 0,role:"button",onClick:_,onMouseenter:C,onMouseleave:w},[s.loading?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[P[0]||(P[0]=e.createElementVNode("span",{class:"freddy-plugins-button-spinner","aria-hidden":"true"},null,-1)),s.loadingText||s.label?(e.openBlock(),e.createElementBlock("span",ge,e.toDisplayString(s.loadingText||s.label),1)):e.createCommentVNode("",!0)],64)):s.iconOnly?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{key:1,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-center",`freddy-plugins-button-icon--${s.size}`]),"aria-hidden":"true"},null,8,["class"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[s.leftIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{key:0,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-left",`freddy-plugins-button-icon--${s.size}`]),"aria-hidden":"true",onClick:e.withModifiers(f,["stop"])},null,8,["class"])):e.createCommentVNode("",!0),s.label?(e.openBlock(),e.createElementBlock("span",be,e.toDisplayString(s.label),1)):e.createCommentVNode("",!0),s.rightIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.value),{key:2,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-right",`freddy-plugins-button-icon--${s.size}`]),"aria-hidden":"true",onClick:e.withModifiers(y,["stop"])},null,8,["class"])):e.createCommentVNode("",!0)],64))],42,he)]),_:1},8,["text","placement"])):(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(p.value),disabled:s.disabled||s.loading,"aria-disabled":s.disabled||s.loading,"aria-label":s.iconOnly?s.label:void 0,role:"button",onClick:_,onMouseenter:C,onMouseleave:w},[s.loading?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[P[1]||(P[1]=e.createElementVNode("span",{class:"freddy-plugins-button-spinner","aria-hidden":"true"},null,-1)),s.loadingText||s.label?(e.openBlock(),e.createElementBlock("span",ke,e.toDisplayString(s.loadingText||s.label),1)):e.createCommentVNode("",!0)],64)):s.iconOnly?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{key:1,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-center",`freddy-plugins-button-icon--${s.size}`]),"aria-hidden":"true"},null,8,["class"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[s.leftIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{key:0,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-left",`freddy-plugins-button-icon--${s.size}`]),"aria-hidden":"true",onClick:e.withModifiers(f,["stop"])},null,8,["class"])):e.createCommentVNode("",!0),s.label?(e.openBlock(),e.createElementBlock("span",Ie,e.toDisplayString(s.label),1)):e.createCommentVNode("",!0),s.rightIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.value),{key:2,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-right",`freddy-plugins-button-icon--${s.size}`]),"aria-hidden":"true",onClick:e.withModifiers(y,["stop"])},null,8,["class"])):e.createCommentVNode("",!0)],64))],42,ye))}}),M=t._export_sfc(Ce,[["__scopeId","data-v-ca53fa07"]]),Pe=["disabled","aria-label","onClick"],we={key:0,class:"freddy-plugins-social-button-label"},Be=e.defineComponent({__name:"SocialButtons",props:{providers:{},variant:{default:"filled"},size:{default:"md"},disabled:{type:Boolean,default:!1},iconOnly:{type:Boolean,default:!1},layout:{default:"horizontal"},class:{},style:{}},emits:["click"],setup(v,{emit:m}){const l=v,i=m,r={google:{icon:t.IconGoogle,label:"Sign in with Google",colors:{filled:{background:"#ffffff",color:"#1f2937",border:"#d1d5db"},outlined:{background:"#ffffff",color:"#1f2937",border:"#10b981"},ghost:{background:"transparent",color:"#9ca3af",border:"#d1d5db"}}},facebook:{icon:t.IconFacebook,label:"Sign in with Facebook",colors:{filled:{background:"#1877f2",color:"#ffffff"},outlined:{background:"#ffffff",color:"#1877f2",border:"#1877f2"},ghost:{background:"transparent",color:"#9ca3af",border:"#d1d5db"}}},apple:{icon:t.IconApple,label:"Sign in with Apple",colors:{filled:{background:"#000000",color:"#ffffff"},outlined:{background:"#ffffff",color:"#000000",border:"#000000"},ghost:{background:"transparent",color:"#9ca3af",border:"#d1d5db"}}},x:{icon:t.IconX,label:"Sign in with X",colors:{filled:{background:"#000000",color:"#ffffff"},outlined:{background:"#ffffff",color:"#000000",border:"#000000"},ghost:{background:"transparent",color:"#9ca3af",border:"#d1d5db"}}},figma:{icon:t.IconFigma,label:"Sign in with Figma",colors:{filled:{background:"#000000",color:"#ffffff"},outlined:{background:"#ffffff",color:"#000000",border:"#000000"},ghost:{background:"transparent",color:"#9ca3af",border:"#d1d5db"}}},dribbble:{icon:t.IconDribbble,label:"Sign in with Dribbble",colors:{filled:{background:"#ea4c89",color:"#ffffff"},outlined:{background:"#ffffff",color:"#ea4c89",border:"#ea4c89"},ghost:{background:"transparent",color:"#9ca3af",border:"#d1d5db"}}}},d=e.computed(()=>["freddy-plugins-social-buttons",`freddy-plugins-social-buttons--${l.layout}`,`freddy-plugins-social-buttons--${l.size}`,{"freddy-plugins-social-buttons--disabled":l.disabled},l.class]),u=f=>r[f].icon,c=f=>r[f].label,p=f=>["freddy-plugins-social-button",`freddy-plugins-social-button--${l.variant}`,`freddy-plugins-social-button--${l.size}`,`freddy-plugins-social-button--${f}`,{"freddy-plugins-social-button--disabled":l.disabled,"freddy-plugins-social-button--icon-only":l.iconOnly}],_=(f,y)=>{l.disabled||i("click",f,y)};return(f,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(d.value),style:e.normalizeStyle(f.style)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.providers,C=>(e.openBlock(),e.createElementBlock("button",{key:C,class:e.normalizeClass(p(C)),disabled:f.disabled,"aria-label":f.iconOnly?c(C):void 0,role:"button",onClick:w=>_(C,w)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u(C)),{class:"freddy-plugins-social-button-icon","aria-hidden":"true"})),f.iconOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",we,e.toDisplayString(c(C)),1))],10,Pe))),128))],6))}}),qe=t._export_sfc(Be,[["__scopeId","data-v-22e5ee7c"]]),Se=["innerHTML"],z="nord",Te=e.defineComponent({__name:"CodeBlock",props:{code:{},language:{}},setup(v){const m=v,l=e.ref("");let i=null,r=null;const d=async()=>{try{if(typeof window<"u"&&window.shiki){r=window.shiki.createHighlighter;return}}catch{}},u=["js","ts","json","python","vue","html","css","scss","bash","yaml","markdown","c","cpp","java","go","php","ruby","rust","swift","kotlin"],c=async()=>{if(r||await d(),!r){l.value=`<pre><code>${m.code.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}</code></pre>`;return}try{i||(i=await r({themes:[z],langs:u})),l.value=i.codeToHtml(m.code,{lang:m.language,theme:z})}catch{l.value=`<pre><code>${m.code.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}</code></pre>`}};return e.watch(()=>[m.code,m.language],c,{immediate:!0}),e.onMounted(c),(p,_)=>(e.openBlock(),e.createElementBlock("pre",null,[e.createElementVNode("code",{innerHTML:l.value},null,8,Se)]))}}),Ee=["aria-checked","aria-disabled","aria-label"],Ve=["checked","disabled"],Ne={key:0,class:"freddy-plugins-checkbox-dash"},De={key:1,class:"freddy-plugins-checkbox-icon",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$e=["stroke"],Me=e.defineComponent({__name:"CustomCheckbox",props:{isChecked:{type:Boolean},isDashInput:{type:Boolean},blueCheckbox:{type:Boolean},disabled:{type:Boolean},ariaLabel:{}},emits:["update:isChecked"],setup(v,{emit:m}){const{currentProject:l,currentColorMode:i}=t.useTheme(),r=v,d=m;function u(c){const p=c.target;r.disabled||d("update:isChecked",p.checked)}return(c,p)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["freddy-plugins-base-checkbox",{"freddy-plugins-checked":c.isChecked&&!c.blueCheckbox,"freddy-plugins-checked-blue":c.isChecked&&c.blueCheckbox,"freddy-plugins-not-checked":!c.isChecked,"freddy-plugins-is-disabled":c.disabled}]),"aria-checked":c.isChecked,"aria-disabled":c.disabled,"aria-label":c.ariaLabel,role:"checkbox"},[e.createElementVNode("input",{id:"checkbox-input",type:"checkbox",class:"freddy-plugins-checkbox-input",checked:c.isChecked,disabled:c.disabled,onChange:u},null,40,Ve),c.isDashInput&&c.isChecked?(e.openBlock(),e.createElementBlock("span",Ne)):c.isChecked&&!c.isDashInput?(e.openBlock(),e.createElementBlock("svg",De,[e.createElementVNode("path",{d:"M10 3L4.5 8.5L2 6",stroke:c.blueCheckbox?"var(--text-50, var(--text-inverse))":"#000","stroke-width":"1.6666","stroke-linecap":"round","stroke-linejoin":"round"},null,8,$e)])):e.createCommentVNode("",!0)],10,Ee))}}),Fe={class:"freddy-plugins-diff-container"},xe=["innerHTML"],Le=["placeholder"],ze=e.defineComponent({__name:"DiffTextarea",props:{modelValue:{},placeholder:{default:"Enter your text..."},originalText:{},improvedText:{},showDiff:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(v,{expose:m,emit:l}){const i=v,r=l,d=e.ref(null),u=e.ref(i.modelValue);e.watch(()=>i.modelValue,_=>{u.value=_});const c=()=>{r("update:modelValue",u.value)},p=e.computed(()=>{if(!i.originalText||!i.improvedText)return"";const _=i.originalText.split(/(\s+)/),f=i.improvedText.split(/(\s+)/);let y="";const C=_.filter(s=>!f.includes(s)&&s.trim()).join(" ");C&&(y+=`<span class="freddy-plugins-diff-removed">${C}</span>`);const w=f.filter(s=>!_.includes(s)&&s.trim()).join(" ");return w&&(y&&(y+="<br>"),y+=`<span class="freddy-plugins-diff-added">${w}</span>`),y||(y=`<span class="freddy-plugins-diff-improved">${i.improvedText}</span>`),y});return m({focus:()=>{var _;return(_=d.value)==null?void 0:_.focus()},blur:()=>{var _;return(_=d.value)==null?void 0:_.blur()}}),(_,f)=>(e.openBlock(),e.createElementBlock("div",Fe,[_.showDiff&&p.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"freddy-plugins-diff-preview",innerHTML:p.value},null,8,xe)):e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:1,ref_key:"textareaRef",ref:d,"onUpdate:modelValue":f[0]||(f[0]=y=>u.value=y),class:"freddy-plugins-diff-textarea",placeholder:_.placeholder,onInput:c},null,40,Le)),[[e.vModelText,u.value]])]))}}),Ae=t._export_sfc(ze,[["__scopeId","data-v-54efeaf3"]]),je=["aria-checked","tabindex","onKeydown","disabled"],A=e.defineComponent({__name:"Switch",props:{modelValue:{type:Boolean},disabled:{type:Boolean},size:{}},emits:["update:modelValue"],setup(v,{emit:m}){const{currentProject:l,currentColorMode:i}=t.useTheme(),r=v,d=m;function u(c){c.stopPropagation(),r.disabled||d("update:modelValue",!r.modelValue)}return(c,p)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["freddy-plugins-switch",{"freddy-plugins-switch--on":c.modelValue,"freddy-plugins-switch--disabled":c.disabled,[`freddy-plugins-switch--${c.size}`]:!0}]),"aria-checked":c.modelValue,role:"switch",tabindex:c.disabled?-1:0,onClick:u,onKeydown:[e.withKeys(e.withModifiers(u,["prevent"]),["space"]),e.withKeys(e.withModifiers(u,["prevent"]),["enter"])],disabled:c.disabled},[...p[0]||(p[0]=[e.createElementVNode("span",{class:"freddy-plugins-switch__track"},null,-1),e.createElementVNode("span",{class:"freddy-plugins-switch__thumb"},null,-1)])],42,je))}}),Re={key:0,class:"freddy-plugins-dropdown-search-bar"},Oe=["placeholder"],He={class:"freddy-plugins-dropdown-options"},Ue=["onClick"],Ge={class:"freddy-plugins-dropdown-option-label"},Ze={key:1,class:"freddy-plugins-dropdown-option-shortcut"},Ke={key:0,class:"freddy-plugins-dropdown-no-options"},We=e.defineComponent({__name:"Dropdown",props:{label:{default:"Select"},size:{default:"sm"},iconOnly:{type:Boolean,default:!1},options:{default:()=>[]},searchable:{type:Boolean,default:!1},searchPlaceholder:{default:"Search..."},openUp:{type:Boolean,default:!1},chevronRight:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},customIcon:{default:null},optionIconRight:{type:Boolean,default:!1},showShortcut:{type:Boolean,default:!1},background:{default:"transparent"},borderRadius:{default:"8px"},activeBackground:{default:"var(--freddy-bg-tertiary)"},openBackground:{default:"var(--freddy-bg-tertiary)"},variant:{default:"primary"},stayOpen:{type:Boolean,default:!1}},emits:["select","toggle"],setup(v,{emit:m}){const l=v,i=m,r=e.ref(!1),d=e.ref(""),u=e.ref(null),c=e.shallowRef([...l.options]);e.watch(()=>l.options,g=>{c.value=[...g]});const p=()=>{if(u.value)return;const g=c.value.find(k=>k.default);g&&(u.value=g)};e.watch(c,()=>{p()},{immediate:!0});const _=e.computed(()=>l.label!=="Select"?l.label:u.value?u.value.label:"Select"),f=e.computed(()=>l.showIcon?l.customIcon?l.customIcon:l.openUp?t.IconChevronUp:t.IconChevronDown:null),y=()=>{r.value=!r.value,r.value||(d.value="")},C=()=>{r.value=!1,d.value=""},w=e.computed(()=>!l.searchable||!d.value?c.value:c.value.filter(g=>g.label.toLowerCase().includes(d.value.toLowerCase()))),s=(g,k)=>{g.type!=="toggle"&&P(g)},P=g=>{u.value=g,i("select",g),l.stayOpen||C()},b=(g,k)=>{const a=c.value.findIndex(o=>o.value===g.value);a!==-1&&(c.value[a].checked=k),i("toggle",{...g,checked:k})},h=g=>{g.target.closest(".freddy-plugins-dropdown-wrapper")||C()};return e.watch(r,g=>{g?setTimeout(()=>{document.addEventListener("click",h)},0):document.removeEventListener("click",h)}),(g,k)=>(e.openBlock(),e.createElementBlock("div",{class:"freddy-plugins-dropdown-wrapper",onKeydown:e.withKeys(C,["esc"]),tabindex:"0"},[e.createVNode(M,{class:"freddy-plugins-dropdown-trigger",label:_.value,iconOnly:g.iconOnly,rightIcon:g.chevronRight&&g.showIcon?f.value:void 0,leftIcon:!g.chevronRight&&g.showIcon?f.value:void 0,size:g.size,hierarchy:"tertiary",onClick:y,"aria-expanded":r.value,"aria-haspopup":!0,type:"button"},{default:e.withCtx(()=>[e.renderSlot(g.$slots,"button",{},()=>[e.createTextVNode(e.toDisplayString(_.value),1)])]),_:3},8,["label","iconOnly","rightIcon","leftIcon","size","aria-expanded"]),r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["freddy-plugins-dropdown-menu",{"freddy-plugins-dropdown-menu--up":g.openUp,"freddy-plugins-dropdown-menu--down":!g.openUp}])},[g.searchable?(e.openBlock(),e.createElementBlock("div",Re,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":k[0]||(k[0]=a=>d.value=a),type:"text",class:"freddy-plugins-dropdown-search-input",placeholder:g.searchPlaceholder},null,8,Oe),[[e.vModelText,d.value]])])):e.createCommentVNode("",!0),e.createElementVNode("ul",He,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,a=>(e.openBlock(),e.createElementBlock("li",{key:a.value,class:e.normalizeClass(["freddy-plugins-dropdown-option",{"freddy-plugins-dropdown-option--toggle":a.type==="toggle"}]),onClick:o=>s(a)},[e.createElementVNode("span",Ge,[!g.optionIconRight&&a.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.icon),{key:0,class:"freddy-plugins-dropdown-option-icon"})):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(a.label),1),g.showShortcut&&a.shortcut?(e.openBlock(),e.createElementBlock("span",Ze,e.toDisplayString(a.shortcut),1)):e.createCommentVNode("",!0),g.optionIconRight&&a.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.icon),{key:2,class:"freddy-plugins-dropdown-option-icon freddy-plugins-dropdown-option-icon--right"})):e.createCommentVNode("",!0)]),a.type==="toggle"?(e.openBlock(),e.createBlock(A,{key:0,modelValue:a.checked??!1,size:l.size,"onUpdate:modelValue":o=>{b(a,o)},onClick:k[1]||(k[1]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","size","onUpdate:modelValue"])):e.createCommentVNode("",!0)],10,Ue))),128)),w.value.length===0?(e.openBlock(),e.createElementBlock("li",Ke,[e.renderSlot(g.$slots,"no-options",{},()=>[k[2]||(k[2]=e.createTextVNode("No options",-1))])])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0)],32))}}),Qe={class:"verification-container"},Je={class:"verification-header"},Xe={class:"verification-subtitle"},Ye={class:"code-input-container"},eo={class:"code-inputs"},oo=["onUpdate:modelValue","onInput","onKeydown","disabled"],no={class:"verification-actions"},to={key:0,class:"error-message"},lo={class:"verification-footer"},io={class:"resend-text"},ro=["disabled"],so=e.defineComponent({__name:"EmailCodeVerification",props:{email:{},brand:{default:"contentplate"},loading:{type:Boolean,default:!1},error:{default:""},resendCooldown:{default:0}},emits:["verify","resend"],setup(v,{emit:m}){const l=v,{brand:i,loading:r,error:d,resendCooldown:u}=l,c=m,p=e.ref(["","","",""]),_=e.ref([]),f=e.computed(()=>p.value.every(h=>h!=="")),y=e.computed(()=>p.value.join("")),C=(h,g)=>{const k=g.target,a=k.value;if(!/^\d*$/.test(a)){k.value="";return}p.value[h]=a,a&&h<3&&e.nextTick(()=>{var o;(o=_.value[h+1])==null||o.focus()})},w=(h,g)=>{g.key==="Backspace"&&!p.value[h]&&h>0&&e.nextTick(()=>{var k;(k=_.value[h-1])==null||k.focus()})},s=h=>{var B;h.preventDefault();const g=(B=h.clipboardData)==null?void 0:B.getData("text");if(!g)return;const k=g.replace(/\D/g,"").slice(0,4).split("");p.value=[...k,"","","",""].slice(0,4);const a=p.value.findIndex(q=>q===""),o=a===-1?3:a;e.nextTick(()=>{var q;(q=_.value[o])==null||q.focus()})},P=()=>{f.value&&c("verify",y.value)},b=()=>{c("resend")};return e.onMounted(()=>{e.nextTick(()=>{var h;(h=_.value[0])==null||h.focus()})}),(h,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["email-verification",`email-verification--${e.unref(i)}`])},[e.createElementVNode("div",Qe,[e.createElementVNode("div",Je,[g[1]||(g[1]=e.createElementVNode("h2",{class:"verification-title"},"Verify Your Email",-1)),e.createElementVNode("p",Xe,[g[0]||(g[0]=e.createTextVNode(" We've sent a 4-digit verification code to ",-1)),e.createElementVNode("strong",null,e.toDisplayString(h.email),1)])]),e.createElementVNode("form",{onSubmit:e.withModifiers(P,["prevent"]),class:"verification-form"},[e.createElementVNode("div",Ye,[e.createElementVNode("div",eo,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,(k,a)=>e.withDirectives(e.createElementVNode("input",{key:a,ref_for:!0,ref:o=>_.value[a]=o,"onUpdate:modelValue":o=>p.value[a]=o,type:"text",maxlength:"1",class:e.normalizeClass(["code-input",`code-input--${e.unref(i)}`]),onInput:o=>C(a,o),onKeydown:o=>w(a,o),onPaste:s,disabled:e.unref(r),autocomplete:"one-time-code"},null,42,oo),[[e.vModelText,p.value[a]]])),64))])]),e.createElementVNode("div",no,[e.createVNode(M,{type:"submit",label:e.unref(r)?"Verifying...":"Verify Code",hierarchy:"primary",size:"lg",loading:e.unref(r),disabled:!f.value||e.unref(r),class:e.normalizeClass(`verify-button verify-button--${e.unref(i)}`)},null,8,["label","loading","disabled","class"])]),e.unref(d)?(e.openBlock(),e.createElementBlock("div",to,e.toDisplayString(e.unref(d)),1)):e.createCommentVNode("",!0),e.createElementVNode("div",lo,[e.createElementVNode("p",io,[g[2]||(g[2]=e.createTextVNode(" Didn't receive the code? ",-1)),e.createElementVNode("button",{type:"button",class:"resend-button",disabled:e.unref(u)>0,onClick:b},e.toDisplayString(e.unref(u)>0?`Resend in ${e.unref(u)}s`:"Resend code"),9,ro)])])],32)])],2))}}),co={class:"freddy-plugins-input-field-wrapper"},ao=["for"],uo={key:0,class:"freddy-plugins-required-asterisk"},_o=e.defineComponent({__name:"BaseInput",props:{size:{default:"md"},colorStyle:{default:"freddy"},state:{default:"placeholder"},destructive:{type:Boolean,default:!1},required:{type:Boolean,default:!1},label:{default:""},hintText:{default:""},disabled:{type:Boolean,default:!1}},emits:["focus","blur"],setup(v,{expose:m,emit:l}){const i=v,r=l,d=e.computed(()=>`input-${Math.random().toString(36).substr(2,9)}`),u=e.computed(()=>({[`freddy-plugins-input-field-container--${i.size}`]:!0,[`freddy-plugins-input-field-container--${i.colorStyle}`]:!0,"freddy-plugins-input-field-container--destructive":i.destructive||i.state==="error","freddy-plugins-input-field-container--focused":i.state==="focused","freddy-plugins-input-field-container--disabled":i.state==="disabled","freddy-plugins-input-field-container--loading":i.state==="loading","freddy-plugins-input-field-container--success":i.state==="success"})),c=()=>{i.state!=="disabled"&&r("focus",new FocusEvent("focus"))};return m({inputId:d,containerClasses:u,focusInput:c}),(p,_)=>(e.openBlock(),e.createElementBlock("div",co,[p.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:d.value,class:e.normalizeClass(["freddy-plugins-input-field-label",`freddy-plugins-input-field-label--${p.colorStyle}`])},[e.createTextVNode(e.toDisplayString(p.label)+" ",1),p.required?(e.openBlock(),e.createElementBlock("span",uo,"*")):e.createCommentVNode("",!0)],10,ao)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-input-field-container",u.value]),onClick:c},[e.renderSlot(p.$slots,"default",{},void 0,!0)],2),p.hintText?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(["freddy-plugins-input-hint-text",`freddy-plugins-input-hint-text--${p.colorStyle}`])},e.toDisplayString(p.hintText),3)):e.createCommentVNode("",!0)]))}}),V=t._export_sfc(_o,[["__scopeId","data-v-bb114a19"]]),j=(v,m,l)=>{const i=v[m];return i?typeof i=="function"?i():Promise.resolve(i):new Promise((r,d)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(d.bind(null,new Error("Unknown variable dynamic import: "+m+(m.split("/").length!==l?". Note that variables only represent file names one level deep.":""))))})},vo=["src","alt"],po=["id","placeholder","disabled","readonly","maxlength"],mo=e.defineComponent({__name:"CardInput",props:{cardNumber:{default:""},cardType:{default:"unknown"},maskInput:{type:Boolean,default:!0},showCardIcon:{type:Boolean,default:!0},placeholder:{default:"1234 5678 9012 3456"},trailingIcon:{},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},size:{default:"md"},colorStyle:{default:"freddy"},state:{default:"placeholder"},destructive:{type:Boolean,default:!1},variant:{},type:{},label:{default:""},hintText:{default:""},required:{type:Boolean,default:!1},value:{},modelValue:{},inputType:{},leadingIcon:{},tooltipText:{},iconLeading:{type:Boolean},helpIcon:{type:Boolean},helpText:{},leadingDropdownText:{},trailingDropdownText:{},leadingText:{},trailingButtonText:{},countryCode:{},countryOptions:{},phoneNumber:{},currency:{},currencyOptions:{},amount:{},showCurrencySymbol:{type:Boolean},protocol:{},allowProtocolChange:{type:Boolean},url:{},tags:{},maxTags:{},allowDuplicates:{type:Boolean},tagSeparators:{},suggestions:{},copyText:{},showCopyButton:{type:Boolean},copySuccessMessage:{}},emits:["update:cardNumber","card-type-detected","update:modelValue","input","focus","blur","trailing-icon-click","keydown","leading-icon-click","trailing-button-click","update:countryCode","update:phoneNumber","country-change","update:currency","update:amount","currency-change","update:protocol","update:url","protocol-change","update:tags","tag-added","tag-removed","max-tags-reached","copy-success","copy-error"],setup(v,{expose:m,emit:l}){const i=v,r=l,d=e.ref(null),u=e.ref(null),c=e.ref(""),p=e.ref(""),_=e.ref("unknown"),f=e.computed(()=>({size:i.size,colorStyle:i.colorStyle,state:i.state,destructive:i.destructive,required:i.required,label:i.label,hintText:i.hintText,disabled:i.disabled})),y=I=>I?typeof I=="object"?I:typeof I=="string"?e.defineAsyncComponent(()=>j(Object.assign({"../../icons/IconAddFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_0),"../../icons/IconAddPeople.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_1),"../../icons/IconAitronos.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_2),"../../icons/IconApple.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_3),"../../icons/IconApplePay.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_4),"../../icons/IconArrowDown.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_5),"../../icons/IconArrowLeft.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_6),"../../icons/IconArrowUp.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_7),"../../icons/IconBadgeCheck.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_8),"../../icons/IconBroom.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_9),"../../icons/IconBuildings.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_10),"../../icons/IconCalendarWithTickInside.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_11),"../../icons/IconCallNotAllowed.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_12),"../../icons/IconCardPay.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_13),"../../icons/IconCaution.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_14),"../../icons/IconChangeLog.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_15),"../../icons/IconCheckCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_16),"../../icons/IconCheckInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_17),"../../icons/IconCheckRounded.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_18),"../../icons/IconChevronDown.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_19),"../../icons/IconChevronLeft.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_20),"../../icons/IconChevronRight.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_21),"../../icons/IconChevronUp.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_22),"../../icons/IconCircledCheck.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_23),"../../icons/IconClock.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_24),"../../icons/IconClosedEnvelope.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_25),"../../icons/IconCloudUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_26),"../../icons/IconConnectorConfluence.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_27),"../../icons/IconConnectorFigma.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_28),"../../icons/IconConnectorFreshDesk.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_29),"../../icons/IconConnectorGitHub.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_30),"../../icons/IconConnectorJira.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_31),"../../icons/IconConnectorLinear.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_32),"../../icons/IconConnectorNotion.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_33),"../../icons/IconConnectorSlack.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_34),"../../icons/IconConnectorZapier.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_35),"../../icons/IconCopy.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_36),"../../icons/IconCross.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_37),"../../icons/IconCrossCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_38),"../../icons/IconCrossInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_39),"../../icons/IconCurrentTick.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_40),"../../icons/IconDataUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_41),"../../icons/IconDelete.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_42),"../../icons/IconDeleteFillRed.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_43),"../../icons/IconDialingPhone.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_44),"../../icons/IconDisabledAlert.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_45),"../../icons/IconDocumentation.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_46),"../../icons/IconDownload.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_47),"../../icons/IconDribbble.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_48),"../../icons/IconDropdownArrow.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_49),"../../icons/IconEdit.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_50),"../../icons/IconEditLinePath.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_51),"../../icons/IconEllipse.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_52),"../../icons/IconExcelThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_53),"../../icons/IconEye.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_54),"../../icons/IconFacebook.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_55),"../../icons/IconFigma.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_56),"../../icons/IconFile.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_57),"../../icons/IconFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_58),"../../icons/IconFileUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_59),"../../icons/IconFilter.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_60),"../../icons/IconFolder.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_61),"../../icons/IconFreddyHub.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_62),"../../icons/IconFreddyHubLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_63),"../../icons/IconFreddyHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_64),"../../icons/IconFreddyHubTitle.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_65),"../../icons/IconFreddySmall.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_66),"../../icons/IconGlobExpand.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_67),"../../icons/IconGlobe.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_68),"../../icons/IconGoogle.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_69),"../../icons/IconHollowCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_70),"../../icons/IconHome.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_71),"../../icons/IconInfoRounded.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_72),"../../icons/IconInvalidInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_73),"../../icons/IconInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_74),"../../icons/IconInvoiceSwitch.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_75),"../../icons/IconLapTableBottom.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_76),"../../icons/IconLense.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_77),"../../icons/IconLightCross.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_78),"../../icons/IconLink04.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_79),"../../icons/IconLoadingError.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_80),"../../icons/IconLoadingOrg.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_81),"../../icons/IconLocationWithCircleIn.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_82),"../../icons/IconLock.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_83),"../../icons/IconMarketPlace.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_84),"../../icons/IconMaximize.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_85),"../../icons/IconMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_86),"../../icons/IconMutedMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_87),"../../icons/IconNewNotification.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_88),"../../icons/IconNewTab.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_89),"../../icons/IconNotification.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_90),"../../icons/IconOpenBook.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_91),"../../icons/IconPaperAirPlane.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_92),"../../icons/IconPauseCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_93),"../../icons/IconPdfThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_94),"../../icons/IconPenEdit.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_95),"../../icons/IconPencil.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_96),"../../icons/IconPeopleHub.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_97),"../../icons/IconPersonCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_98),"../../icons/IconPits.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_99),"../../icons/IconPlay.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_100),"../../icons/IconPlus.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_101),"../../icons/IconPolygonDown.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_102),"../../icons/IconPresentation.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_103),"../../icons/IconProgressBase.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_104),"../../icons/IconProgressComplete.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_105),"../../icons/IconProgressGoing.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_106),"../../icons/IconPurpose.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_107),"../../icons/IconPurseCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_108),"../../icons/IconQuestion.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_109),"../../icons/IconRadio.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_110),"../../icons/IconRadioFill.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_111),"../../icons/IconRefresh.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_112),"../../icons/IconRevertedTraingle.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_113),"../../icons/IconRobotScreen.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_114),"../../icons/IconRoundTick.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_115),"../../icons/IconSearch.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_116),"../../icons/IconSearchOptimised.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_117),"../../icons/IconSectionHide.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_118),"../../icons/IconSend.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_119),"../../icons/IconSettings.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_120),"../../icons/IconSettingsBold.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_121),"../../icons/IconSize.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_122),"../../icons/IconSliderKnobs.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_123),"../../icons/IconSortIdle.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_124),"../../icons/IconSparkle.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_125),"../../icons/IconSpotlio.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_126),"../../icons/IconStar.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_127),"../../icons/IconStatistics.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_128),"../../icons/IconStopChat.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_129),"../../icons/IconStreamLineHub.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_130),"../../icons/IconStreamLineHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_131),"../../icons/IconSun.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_132),"../../icons/IconSwap.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_133),"../../icons/IconText.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_134),"../../icons/IconTextThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_135),"../../icons/IconThinDocument.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_136),"../../icons/IconThinFile.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_137),"../../icons/IconThumbsDown.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_138),"../../icons/IconTick.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_139),"../../icons/IconUser.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_140),"../../icons/IconVerticalDots.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_141),"../../icons/IconVideoCamera.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_142),"../../icons/IconWarningOctal.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_143),"../../icons/IconX.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_144),"../../icons/IconZip.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(n=>n.__vite_glob_0_145)}),`../../icons/${I}.vue`,4).catch(()=>({template:"<div></div>"}))):null:null,C=e.computed(()=>y(i.trailingIcon)),w=e.computed(()=>{switch(_.value){case"amex":return 17;default:return 19}}),s=e.computed(()=>({[`freddy-plugins-input-field--${i.size}`]:!0,[`freddy-plugins-input-field--${i.colorStyle}`]:!0,"freddy-plugins-input-field--destructive":i.destructive,"freddy-plugins-input-field--focused":i.state==="focused","freddy-plugins-input-field--disabled":i.state==="disabled","freddy-plugins-input-field--with-leading":i.showCardIcon&&_.value!=="unknown","freddy-plugins-input-field--with-trailing":!!C.value})),P=I=>{const n=I.replace(/\D/g,"");return/^4/.test(n)?"visa":/^5[1-5]/.test(n)||/^2[2-7]/.test(n)?"mastercard":/^3[47]/.test(n)?"amex":/^6/.test(n)?"discover":"unknown"},b=I=>{const n=I.replace(/\D/g,"");return P(n)==="amex"?n.replace(/(\d{4})(\d{6})(\d{5})/,"$1 $2 $3").replace(/(\d{4})(\d{1,6})/,"$1 $2").substring(0,17):n.replace(/(\d{4})(\d{4})(\d{4})(\d{4})/,"$1 $2 $3 $4").replace(/(\d{4})(\d{4})(\d{4})/,"$1 $2 $3").replace(/(\d{4})(\d{4})/,"$1 $2").replace(/(\d{4})/,"$1").substring(0,19)},h=I=>{const n={visa:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCA0MCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iIzAwNTFBNSIvPgo8cGF0aCBkPSJNMTYuNzUgN0wxNC4yNSAxN0gxMS43NUwxMy41IDEwLjVMMTIuMjUgOC41SDEwLjc1TDEyLjc1IDdIMTYuNzVaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMjkuMjUgN0wyNi43NSAxN0gyNC4yNUwyNi43NSA3SDI5LjI1WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+",mastercard:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCA0MCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iI0VCMDAxQiIvPgo8Y2lyY2xlIGN4PSIxNSIgY3k9IjEyIiByPSI3IiBmaWxsPSIjRkY1RjAwIi8+CjxjaXJjbGUgY3g9IjI1IiBjeT0iMTIiIHI9IjciIGZpbGw9IiNGRkY1RjAiLz4KPC9zdmc+",amex:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCA0MCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iIzAwNkZDRiIvPgo8cGF0aCBkPSJNMTAgOEgxNEwxNiAxMkwxOCA4SDIyTDE4IDE2SDE0TDEyIDEyTDEwIDE2SDZMMTAgOFoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0yNCA4SDMwVjEwSDI2VjEySDI5VjE0SDI2VjE2SDMwVjE4SDI0VjhaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4=",discover:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCA0MCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iI0ZGNjAwMCIvPgo8cGF0aCBkPSJNOCA4SDE2VjE2SDhWOFoiIGZpbGw9IndoaXRlIi8+CjxjaXJjbGUgY3g9IjI4IiBjeT0iMTIiIHI9IjYiIGZpbGw9IndoaXRlIi8+CjwvdXZnPg==",unknown:""};return n[I]||n.unknown},g=I=>{const S=I.target.value;c.value=S.replace(/\D/g,""),p.value=b(S);const E=P(c.value);E!==_.value&&(_.value=E,r("card-type-detected",E)),r("update:modelValue",p.value),r("update:cardNumber",c.value),r("input",p.value)},k=I=>{[8,9,27,13,46].indexOf(I.keyCode)!==-1||I.keyCode===65&&I.ctrlKey===!0||I.keyCode===67&&I.ctrlKey===!0||I.keyCode===86&&I.ctrlKey===!0||I.keyCode===88&&I.ctrlKey===!0||I.keyCode>=35&&I.keyCode<=39||(I.shiftKey||I.keyCode<48||I.keyCode>57)&&(I.keyCode<96||I.keyCode>105)&&I.preventDefault()},a=I=>{r("focus",I)},o=I=>{r("blur",I)},B=I=>{r("trailing-icon-click",I)},q=()=>{var I;(I=d.value)==null||I.focus()};return e.watch(()=>i.cardNumber,I=>{I!==c.value&&(c.value=I,p.value=b(I),_.value=P(I))},{immediate:!0}),m({focus:q,inputRef:d}),(I,n)=>(e.openBlock(),e.createBlock(V,e.mergeProps(f.value,{onFocus:a,onBlur:o}),{default:e.withCtx(()=>{var S;return[I.showCardIcon&&_.value!=="unknown"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["freddy-plugins-card-type-icon",`freddy-plugins-card-type-icon--${I.colorStyle}`])},[e.createElementVNode("img",{src:h(_.value),alt:`${_.value} card`,class:"freddy-plugins-card-icon-image"},null,8,vo)],2)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:(S=u.value)==null?void 0:S.inputId,ref_key:"inputRef",ref:d,"onUpdate:modelValue":n[0]||(n[0]=E=>p.value=E),type:"text",inputmode:"numeric",placeholder:I.placeholder,disabled:I.disabled,readonly:I.readonly,maxlength:w.value,class:e.normalizeClass(["freddy-plugins-input-field freddy-plugins-card-input-field",s.value]),onInput:g,onKeydown:k,onFocus:a,onBlur:o},null,42,po),[[e.vModelText,p.value]]),C.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C.value),{key:1,class:e.normalizeClass(["freddy-plugins-input-trailing-icon",`freddy-plugins-input-trailing-icon--${I.colorStyle}`]),onClick:B},null,8,["class"])):e.createCommentVNode("",!0)]}),_:1},16))}}),R=t._export_sfc(mo,[["__scopeId","data-v-3a6797a1"]]),fo=["id","type","placeholder","disabled","readonly"],ho=e.defineComponent({__name:"DefaultInput",props:{placeholder:{default:""},inputType:{default:"text"},modelValue:{default:""},readonly:{type:Boolean,default:!1},leadingIcon:{},trailingIcon:{},tooltipText:{},size:{default:"md"},colorStyle:{default:"freddy"},state:{default:"placeholder"},destructive:{type:Boolean,default:!1},required:{type:Boolean,default:!1},label:{default:""},hintText:{default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","input","focus","blur","keydown","leading-icon-click","trailing-icon-click"],setup(v,{expose:m,emit:l}){const i=v,r=l,d=e.ref(null),u=e.ref(null),c=e.ref(i.modelValue||""),p=e.computed(()=>({size:i.size,colorStyle:i.colorStyle,state:i.state,destructive:i.destructive,required:i.required,label:i.label,hintText:i.hintText,disabled:i.disabled})),_=a=>a?typeof a=="object"?a:typeof a=="string"?e.defineAsyncComponent(()=>j(Object.assign({"../../icons/IconAddFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_0),"../../icons/IconAddPeople.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_1),"../../icons/IconAitronos.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_2),"../../icons/IconApple.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_3),"../../icons/IconApplePay.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_4),"../../icons/IconArrowDown.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_5),"../../icons/IconArrowLeft.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_6),"../../icons/IconArrowUp.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_7),"../../icons/IconBadgeCheck.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_8),"../../icons/IconBroom.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_9),"../../icons/IconBuildings.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_10),"../../icons/IconCalendarWithTickInside.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_11),"../../icons/IconCallNotAllowed.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_12),"../../icons/IconCardPay.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_13),"../../icons/IconCaution.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_14),"../../icons/IconChangeLog.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_15),"../../icons/IconCheckCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_16),"../../icons/IconCheckInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_17),"../../icons/IconCheckRounded.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_18),"../../icons/IconChevronDown.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_19),"../../icons/IconChevronLeft.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_20),"../../icons/IconChevronRight.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_21),"../../icons/IconChevronUp.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_22),"../../icons/IconCircledCheck.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_23),"../../icons/IconClock.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_24),"../../icons/IconClosedEnvelope.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_25),"../../icons/IconCloudUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_26),"../../icons/IconConnectorConfluence.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_27),"../../icons/IconConnectorFigma.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_28),"../../icons/IconConnectorFreshDesk.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_29),"../../icons/IconConnectorGitHub.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_30),"../../icons/IconConnectorJira.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_31),"../../icons/IconConnectorLinear.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_32),"../../icons/IconConnectorNotion.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_33),"../../icons/IconConnectorSlack.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_34),"../../icons/IconConnectorZapier.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_35),"../../icons/IconCopy.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_36),"../../icons/IconCross.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_37),"../../icons/IconCrossCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_38),"../../icons/IconCrossInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_39),"../../icons/IconCurrentTick.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_40),"../../icons/IconDataUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_41),"../../icons/IconDelete.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_42),"../../icons/IconDeleteFillRed.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_43),"../../icons/IconDialingPhone.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_44),"../../icons/IconDisabledAlert.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_45),"../../icons/IconDocumentation.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_46),"../../icons/IconDownload.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_47),"../../icons/IconDribbble.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_48),"../../icons/IconDropdownArrow.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_49),"../../icons/IconEdit.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_50),"../../icons/IconEditLinePath.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_51),"../../icons/IconEllipse.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_52),"../../icons/IconExcelThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_53),"../../icons/IconEye.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_54),"../../icons/IconFacebook.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_55),"../../icons/IconFigma.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_56),"../../icons/IconFile.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_57),"../../icons/IconFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_58),"../../icons/IconFileUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_59),"../../icons/IconFilter.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_60),"../../icons/IconFolder.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_61),"../../icons/IconFreddyHub.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_62),"../../icons/IconFreddyHubLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_63),"../../icons/IconFreddyHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_64),"../../icons/IconFreddyHubTitle.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_65),"../../icons/IconFreddySmall.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_66),"../../icons/IconGlobExpand.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_67),"../../icons/IconGlobe.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_68),"../../icons/IconGoogle.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_69),"../../icons/IconHollowCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_70),"../../icons/IconHome.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_71),"../../icons/IconInfoRounded.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_72),"../../icons/IconInvalidInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_73),"../../icons/IconInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_74),"../../icons/IconInvoiceSwitch.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_75),"../../icons/IconLapTableBottom.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_76),"../../icons/IconLense.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_77),"../../icons/IconLightCross.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_78),"../../icons/IconLink04.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_79),"../../icons/IconLoadingError.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_80),"../../icons/IconLoadingOrg.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_81),"../../icons/IconLocationWithCircleIn.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_82),"../../icons/IconLock.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_83),"../../icons/IconMarketPlace.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_84),"../../icons/IconMaximize.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_85),"../../icons/IconMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_86),"../../icons/IconMutedMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_87),"../../icons/IconNewNotification.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_88),"../../icons/IconNewTab.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_89),"../../icons/IconNotification.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_90),"../../icons/IconOpenBook.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_91),"../../icons/IconPaperAirPlane.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_92),"../../icons/IconPauseCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_93),"../../icons/IconPdfThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_94),"../../icons/IconPenEdit.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_95),"../../icons/IconPencil.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_96),"../../icons/IconPeopleHub.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_97),"../../icons/IconPersonCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_98),"../../icons/IconPits.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_99),"../../icons/IconPlay.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_100),"../../icons/IconPlus.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_101),"../../icons/IconPolygonDown.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_102),"../../icons/IconPresentation.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_103),"../../icons/IconProgressBase.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_104),"../../icons/IconProgressComplete.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_105),"../../icons/IconProgressGoing.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_106),"../../icons/IconPurpose.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_107),"../../icons/IconPurseCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_108),"../../icons/IconQuestion.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_109),"../../icons/IconRadio.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_110),"../../icons/IconRadioFill.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_111),"../../icons/IconRefresh.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_112),"../../icons/IconRevertedTraingle.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_113),"../../icons/IconRobotScreen.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_114),"../../icons/IconRoundTick.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_115),"../../icons/IconSearch.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_116),"../../icons/IconSearchOptimised.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_117),"../../icons/IconSectionHide.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_118),"../../icons/IconSend.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_119),"../../icons/IconSettings.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_120),"../../icons/IconSettingsBold.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_121),"../../icons/IconSize.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_122),"../../icons/IconSliderKnobs.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_123),"../../icons/IconSortIdle.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_124),"../../icons/IconSparkle.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_125),"../../icons/IconSpotlio.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_126),"../../icons/IconStar.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_127),"../../icons/IconStatistics.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_128),"../../icons/IconStopChat.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_129),"../../icons/IconStreamLineHub.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_130),"../../icons/IconStreamLineHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_131),"../../icons/IconSun.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_132),"../../icons/IconSwap.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_133),"../../icons/IconText.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_134),"../../icons/IconTextThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_135),"../../icons/IconThinDocument.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_136),"../../icons/IconThinFile.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_137),"../../icons/IconThumbsDown.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_138),"../../icons/IconTick.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_139),"../../icons/IconUser.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_140),"../../icons/IconVerticalDots.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_141),"../../icons/IconVideoCamera.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_142),"../../icons/IconWarningOctal.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_143),"../../icons/IconX.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_144),"../../icons/IconZip.vue":()=>Promise.resolve().then(()=>require("./icons-DaAdlBbv.cjs")).then(o=>o.__vite_glob_0_145)}),`../../icons/${a}.vue`,4).catch(()=>({template:"<div></div>"}))):null:null,f=e.computed(()=>_(i.leadingIcon)),y=e.computed(()=>_(i.trailingIcon)),C=e.computed(()=>({[`freddy-plugins-input-field--${i.size}`]:!0,[`freddy-plugins-input-field--${i.colorStyle}`]:!0,"freddy-plugins-input-field--destructive":i.destructive,"freddy-plugins-input-field--focused":i.state==="focused","freddy-plugins-input-field--disabled":i.state==="disabled","freddy-plugins-input-field--with-leading":!!f.value,"freddy-plugins-input-field--with-trailing":!!y.value})),w=a=>{const o=a.target;c.value=o.value,r("update:modelValue",o.value),r("input",o.value)},s=a=>{r("focus",a)},P=a=>{r("blur",a)},b=a=>{r("keydown",a)},h=a=>{r("leading-icon-click",a)},g=a=>{r("trailing-icon-click",a)},k=()=>{var a;(a=d.value)==null||a.focus()};return e.watch(()=>i.modelValue,a=>{a!==void 0&&(c.value=a)}),m({focus:k,inputRef:d}),(a,o)=>(e.openBlock(),e.createBlock(V,e.mergeProps(p.value,{onFocus:s,onBlur:P}),{default:e.withCtx(()=>{var B;return[f.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value),{key:0,class:e.normalizeClass(["freddy-plugins-input-leading-icon",`freddy-plugins-input-leading-icon--${a.colorStyle}`]),onClick:h},null,8,["class"])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:(B=u.value)==null?void 0:B.inputId,ref_key:"inputRef",ref:d,"onUpdate:modelValue":o[0]||(o[0]=q=>c.value=q),type:a.inputType,placeholder:a.placeholder,disabled:a.disabled,readonly:a.readonly,class:e.normalizeClass(["freddy-plugins-input-field",C.value]),onInput:w,onFocus:s,onBlur:P,onKeydown:b},null,42,fo),[[e.vModelDynamic,c.value]]),a.trailingIcon==="IconQuestion"&&a.tooltipText?(e.openBlock(),e.createBlock(T,{key:1,text:a.tooltipText,placement:"top"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.value),{class:e.normalizeClass(["freddy-plugins-input-trailing-icon",`freddy-plugins-input-trailing-icon--${a.colorStyle}`])},null,8,["class"]))]),_:1},8,["text"])):y.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.value),{key:2,class:e.normalizeClass(["freddy-plugins-input-trailing-icon",`freddy-plugins-input-trailing-icon--${a.colorStyle}`]),onClick:g},null,8,["class"])):e.createCommentVNode("",!0)]}),_:1},16))}}),O=t._export_sfc(ho,[["__scopeId","data-v-e865b202"]]),go={class:"freddy-plugins-figma-dropdown-text"},bo=["onClick"],yo={class:"freddy-plugins-country-flag"},ko={class:"freddy-plugins-country-name"},Io={class:"freddy-plugins-country-dial-code"},Co=["id","placeholder","disabled","readonly"],Po={key:0,class:"freddy-plugins-figma-help-icon"},wo=e.defineComponent({__name:"PhoneInput",props:{countryCode:{default:"US"},countryOptions:{},phoneNumber:{default:""},placeholder:{default:"Enter phone number"},trailingIcon:{},tooltipText:{},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},size:{default:"md"},colorStyle:{default:"freddy"},state:{default:"placeholder"},destructive:{type:Boolean,default:!1},variant:{},type:{},label:{default:""},hintText:{default:""},required:{type:Boolean,default:!1},value:{},modelValue:{},inputType:{},leadingIcon:{},iconLeading:{type:Boolean},helpIcon:{type:Boolean},helpText:{},leadingDropdownText:{},trailingDropdownText:{},leadingText:{},trailingButtonText:{},currency:{},currencyOptions:{},amount:{},showCurrencySymbol:{type:Boolean},protocol:{},allowProtocolChange:{type:Boolean},url:{},cardNumber:{},cardType:{},maskInput:{type:Boolean},showCardIcon:{type:Boolean},tags:{},maxTags:{},allowDuplicates:{type:Boolean},tagSeparators:{},suggestions:{},copyText:{},showCopyButton:{type:Boolean},copySuccessMessage:{}},emits:["update:countryCode","update:phoneNumber","country-change","update:modelValue","input","focus","blur","keydown","leading-icon-click","trailing-icon-click","trailing-button-click","update:currency","update:amount","currency-change","update:protocol","update:url","protocol-change","update:cardNumber","card-type-detected","update:tags","tag-added","tag-removed","max-tags-reached","copy-success","copy-error"],setup(v,{expose:m,emit:l}){const i=v,r=l,d=e.ref(null),u=e.ref(null),c=e.ref(i.phoneNumber||""),p=e.ref(!1),_=e.ref(i.countryCode||"US"),f=[{code:"US",name:"United States",flag:"🇺🇸",dialCode:"+1"},{code:"GB",name:"United Kingdom",flag:"🇬🇧",dialCode:"+44"},{code:"CA",name:"Canada",flag:"🇨🇦",dialCode:"+1"},{code:"AU",name:"Australia",flag:"🇦🇺",dialCode:"+61"},{code:"DE",name:"Germany",flag:"🇩🇪",dialCode:"+49"},{code:"FR",name:"France",flag:"🇫🇷",dialCode:"+33"},{code:"IT",name:"Italy",flag:"🇮🇹",dialCode:"+39"},{code:"ES",name:"Spain",flag:"🇪🇸",dialCode:"+34"},{code:"JP",name:"Japan",flag:"🇯🇵",dialCode:"+81"},{code:"IN",name:"India",flag:"🇮🇳",dialCode:"+91"}],y=e.computed(()=>({size:i.size,colorStyle:i.colorStyle,state:i.state,destructive:i.destructive,required:i.required,label:i.label,hintText:i.hintText,disabled:i.disabled})),C=e.computed(()=>i.countryOptions||f),w=e.computed(()=>C.value.find(o=>o.code===_.value)||C.value[0]),s=()=>{i.disabled||(p.value=!p.value)},P=o=>{_.value=o.code,r("update:countryCode",o.code),r("country-change",o);const B=c.value.replace(/^\+\d+\s*/,""),q=`${o.dialCode} ${B}`.trim();c.value=q,r("update:phoneNumber",q),r("update:modelValue",q),p.value=!1},b=o=>{const B=o.target;c.value=B.value;const q=`${w.value.dialCode} ${B.value}`;r("update:modelValue",q),r("update:phoneNumber",B.value),r("input",q)},h=o=>{r("focus",o)},g=o=>{r("blur",o)},k=()=>{var o;(o=d.value)==null||o.focus()},a=o=>{o.target.closest(".freddy-plugins-input-field-container")||(p.value=!1)};return e.watch(()=>i.countryCode,o=>{o&&o!==_.value&&(_.value=o)},{immediate:!0}),e.watch(()=>i.phoneNumber,o=>{o!==void 0&&(c.value=o)}),e.onMounted(()=>{document.addEventListener("click",a)}),e.onUnmounted(()=>{document.removeEventListener("click",a)}),m({focus:k,inputRef:d}),(o,B)=>(e.openBlock(),e.createBlock(V,e.mergeProps(y.value,{onFocus:h,onBlur:g}),{default:e.withCtx(()=>{var q;return[e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-figma-dropdown",`freddy-plugins-figma-dropdown--${o.colorStyle}`]),onClick:s},[e.createElementVNode("span",go,e.toDisplayString(w.value.code),1),e.createVNode(e.unref(t.IconChevronDown),{class:"freddy-plugins-figma-dropdown-icon"})],2),p.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["freddy-plugins-country-options-dropdown",`freddy-plugins-country-options-dropdown--${o.colorStyle}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,I=>(e.openBlock(),e.createElementBlock("div",{key:I.code,class:e.normalizeClass(["freddy-plugins-country-option",`freddy-plugins-country-option--${o.colorStyle}`]),onClick:n=>P(I)},[e.createElementVNode("span",yo,e.toDisplayString(I.flag),1),e.createElementVNode("span",ko,e.toDisplayString(I.name),1),e.createElementVNode("span",Io,e.toDisplayString(I.dialCode),1)],10,bo))),128))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-figma-text-input",`freddy-plugins-figma-text-input--${o.colorStyle}`])},[e.withDirectives(e.createElementVNode("input",{id:(q=u.value)==null?void 0:q.inputId,ref_key:"inputRef",ref:d,"onUpdate:modelValue":B[0]||(B[0]=I=>c.value=I),type:"tel",placeholder:o.placeholder,disabled:o.disabled,readonly:o.readonly,class:"freddy-plugins-figma-phone-input",onInput:b,onFocus:h,onBlur:g},null,40,Co),[[e.vModelText,c.value]]),o.trailingIcon==="IconQuestion"?(e.openBlock(),e.createElementBlock("div",Po,[o.tooltipText?(e.openBlock(),e.createBlock(T,{key:0,text:o.tooltipText,placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(t.IconQuestion),{class:"freddy-plugins-figma-help-icon-svg"})]),_:1},8,["text"])):(e.openBlock(),e.createBlock(e.unref(t.IconQuestion),{key:1,class:"freddy-plugins-figma-help-icon-svg"}))])):e.createCommentVNode("",!0)],2)]}),_:1},16))}}),H=t._export_sfc(wo,[["__scopeId","data-v-20d005c2"]]),Bo=e.defineComponent({__name:"InputField",props:{size:{default:"md"},colorStyle:{default:"freddy"},state:{default:"placeholder"},destructive:{type:Boolean,default:!1},variant:{default:"default"},type:{default:"default"},label:{default:""},hintText:{default:""},required:{type:Boolean,default:!1},placeholder:{default:""},value:{},modelValue:{default:""},inputType:{default:"text"},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},leadingIcon:{},trailingIcon:{},tooltipText:{},iconLeading:{type:Boolean},helpIcon:{type:Boolean},helpText:{},leadingDropdownText:{},trailingDropdownText:{},leadingText:{},trailingButtonText:{},countryCode:{default:"US"},countryOptions:{},phoneNumber:{default:""},currency:{},currencyOptions:{},amount:{},showCurrencySymbol:{type:Boolean},protocol:{},allowProtocolChange:{type:Boolean},url:{},cardNumber:{},cardType:{},maskInput:{type:Boolean},showCardIcon:{type:Boolean},tags:{},maxTags:{},allowDuplicates:{type:Boolean},tagSeparators:{},suggestions:{},copyText:{},showCopyButton:{type:Boolean},copySuccessMessage:{}},emits:["update:modelValue","input","focus","blur","keydown","leading-icon-click","trailing-icon-click","trailing-button-click","update:countryCode","update:phoneNumber","country-change","update:currency","update:amount","currency-change","update:protocol","update:url","protocol-change","update:cardNumber","card-type-detected","update:tags","tag-added","tag-removed","max-tags-reached","copy-success","copy-error"],setup(v,{emit:m}){const l=v,i=m,r=e.computed(()=>l.variant||l.type||"default"),d=e.computed(()=>({size:l.size,colorStyle:l.colorStyle,state:l.state,destructive:l.destructive,required:l.required,label:l.label,hintText:l.hintText,placeholder:l.placeholder,countryCode:l.countryCode,phoneNumber:l.phoneNumber,countryOptions:l.countryOptions,trailingIcon:l.trailingIcon,tooltipText:l.tooltipText,disabled:l.disabled,readonly:l.readonly})),u=e.computed(()=>({size:l.size,colorStyle:l.colorStyle,state:l.state,destructive:l.destructive,required:l.required,label:l.label,hintText:l.hintText,placeholder:l.placeholder,cardNumber:l.cardNumber,cardType:l.cardType,maskInput:l.maskInput,showCardIcon:l.showCardIcon,trailingIcon:l.trailingIcon,disabled:l.disabled,readonly:l.readonly})),c=e.computed(()=>({size:l.size,colorStyle:l.colorStyle,state:l.state,destructive:l.destructive,required:l.required,label:l.label,hintText:l.hintText,placeholder:l.placeholder,inputType:l.inputType,modelValue:l.modelValue,leadingIcon:l.leadingIcon,trailingIcon:l.trailingIcon,tooltipText:l.tooltipText,disabled:l.disabled,readonly:l.readonly})),p=a=>{i("update:modelValue",a)},_=a=>{i("input",a)},f=a=>{i("focus",a)},y=a=>{i("blur",a)},C=a=>{i("keydown",a)},w=a=>{i("leading-icon-click",a)},s=a=>{i("trailing-icon-click",a)},P=a=>{i("update:countryCode",a)},b=a=>{i("update:phoneNumber",a)},h=a=>{i("country-change",a)},g=a=>{i("update:cardNumber",a)},k=a=>{i("card-type-detected",a)};return(a,o)=>r.value==="phone"?(e.openBlock(),e.createBlock(H,e.mergeProps({key:0},d.value,{"onUpdate:modelValue":p,"onUpdate:countryCode":P,"onUpdate:phoneNumber":b,onCountryChange:h,onInput:_,onFocus:f,onBlur:y}),null,16)):r.value==="card"?(e.openBlock(),e.createBlock(R,e.mergeProps({key:1},u.value,{"onUpdate:modelValue":p,"onUpdate:cardNumber":g,onCardTypeDetected:k,onInput:_,onFocus:f,onBlur:y,onTrailingIconClick:s}),null,16)):(e.openBlock(),e.createBlock(O,e.mergeProps({key:2},c.value,{"onUpdate:modelValue":p,onInput:_,onFocus:f,onBlur:y,onKeydown:C,onLeadingIconClick:w,onTrailingIconClick:s}),null,16))}}),qo=t._export_sfc(Bo,[["__scopeId","data-v-5a761e6c"]]),So={name:"ModalBox",props:{isVisible:{type:Boolean,default:!0},largeModel:{type:Boolean,default:!0}},methods:{closeModal(){this.$emit("close")}}},To={key:0,class:"fixed z-[9998] top-0 left-0 w-full h-full bg-modalBackgroundBlur flex justify-center items-center"},Eo={class:"flex justify-center items-center"},Vo={class:"freddy-plugins-modal-header"},No={class:"freddy-plugins-modal-body"},Do={class:"freddy-plugins-modal-footer"};function $o(v,m,l,i,r,d){return e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[l.isVisible?(e.openBlock(),e.createElementBlock("div",To,[e.createElementVNode("div",Eo,[e.createElementVNode("div",{class:e.normalizeClass({"p-8 bg-background rounded-[2.5rem] overflow-hidden text-white":l.largeModel,"freddy-plugins-modal-container-large":l.largeModel})},[e.createElementVNode("div",Vo,[e.renderSlot(v.$slots,"header")]),e.createElementVNode("div",No,[e.renderSlot(v.$slots,"body")]),e.createElementVNode("div",Do,[e.renderSlot(v.$slots,"footer")])],2)])])):e.createCommentVNode("",!0)]),_:3})}const U=t._export_sfc(So,[["render",$o]]),Mo=e.defineComponent({__name:"InstructionsModal",props:{isVisible:{type:Boolean,required:!0}},setup(v){return(m,l)=>(e.openBlock(),e.createBlock(U,{isVisible:v.isVisible},{header:e.withCtx(()=>[...l[0]||(l[0]=[e.createElementVNode("h2",null,"Instructions",-1)])]),body:e.withCtx(()=>[...l[1]||(l[1]=[e.createElementVNode("p",null,"Instructions",-1)])]),_:1},8,["isVisible"]))}}),Fo=["value","placeholder"],xo=e.defineComponent({__name:"InstructiontextArea",props:{inputValue:{},placeholder:{},height:{}},emits:["update:inputValue"],setup(v,{emit:m}){const l=v,i=m,r=e.computed(()=>l.height||"40px"),d=u=>{const c=u.target;i("update:inputValue",c.value)};return(u,c)=>(e.openBlock(),e.createElementBlock("input",{type:"text",value:u.inputValue,placeholder:u.placeholder,style:e.normalizeStyle({width:"100%",height:r.value}),onInput:d,class:"instruction-text-input","aria-label":"Instruction input"},null,44,Fo))}}),Lo=t._export_sfc(xo,[["__scopeId","data-v-d4000e78"]]),zo={class:"freddy-plugins-modal-header"},Ao={class:"freddy-plugins-modal-body"},jo=e.defineComponent({__name:"ModalOverlay",props:{modalTitle:{},headerClass:{},disableClickOutside:{type:Boolean}},emits:["close"],setup(v,{emit:m}){const{currentProject:l,currentColorMode:i}=t.useTheme(),r=v,d=m,u=()=>{d("close")},c=()=>{r.disableClickOutside||u()};return(p,_)=>(e.openBlock(),e.createElementBlock("div",{role:"dialog","aria-modal":"true",class:"freddy-plugins-modal-overlay",onClick:c},[e.createElementVNode("div",{class:"freddy-plugins-modal-content",onClick:_[0]||(_[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("header",zo,[e.createElementVNode("h2",{class:e.normalizeClass(["freddy-plugins-modal-title",p.headerClass])},e.toDisplayString(p.modalTitle),3),e.createElementVNode("button",{class:"freddy-plugins-modal-close",onClick:u},[e.createVNode(t.IconLightCross,{class:"freddy-plugins-modal-close-icon"})])]),e.createElementVNode("div",Ao,[e.renderSlot(p.$slots,"content")])])]))}}),G=e.defineComponent({__name:"Spinner",props:{customClass:{}},setup(v){const{currentProject:m,currentColorMode:l}=t.useTheme();return(i,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-plugin-spinner",i.customClass])},null,2))}}),Ro=["placeholder","maxlength"],Z=e.defineComponent({inheritAttrs:!1,__name:"SearchInput",props:{placeholder:{default:"Search here..."},showLoaderForSearch:{type:Boolean,default:!1},maxCharLimit:{default:void 0},showCloseButton:{type:Boolean,default:!1}},emits:["update:searchInput","clear"],setup(v,{emit:m}){const{currentProject:l,currentColorMode:i}=t.useTheme(),r=e.useAttrs(),d=e.ref(null),u=e.ref(null),c=e.ref(null),p=m,_=()=>{var C;(C=u.value)==null||C.focus()},f=()=>{p("update:searchInput",d.value)},y=()=>{p("clear")};return(C,w)=>{var s;return e.openBlock(),e.createElementBlock("div",{ref_key:"dropdownRef",ref:c,class:e.normalizeClass(["freddy-search-wrapper",e.unref(r).class]),onClick:_},[e.createVNode(e.unref(t.IconSearch),{class:"freddy-search-icon"}),e.withDirectives(e.createElementVNode("input",{type:"text",id:"search-input",class:"freddy-search-input",ref_key:"searchInput",ref:u,"onUpdate:modelValue":w[0]||(w[0]=P=>d.value=P),onInput:f,placeholder:C.placeholder,maxlength:C.maxCharLimit},null,40,Ro),[[e.vModelText,d.value]]),C.showLoaderForSearch?(e.openBlock(),e.createBlock(G,{key:0,class:"freddy-search-spinner"})):e.createCommentVNode("",!0),C.showCloseButton&&!C.showLoaderForSearch&&((s=d.value)!=null&&s.length)?(e.openBlock(),e.createBlock(t.IconCross,{key:1,class:"freddy-search-close",onClick:y})):e.createCommentVNode("",!0)],2)}}}),Oo={class:"model-dropdown-selected-content"},Ho=["src","alt"],Uo={class:"model-dropdown-placeholder"},Go={key:0,class:"model-dropdown-menu"},Zo={key:0,class:"model-dropdown-search"},Ko={class:"model-dropdown-options"},Wo=["onClick"],Qo=["src","alt"],Jo={class:"model-dropdown-option-value"},Xo={key:0,class:"model-dropdown-no-options"},Yo=e.defineComponent({__name:"ModelDropdown",props:{options:{},searchable:{type:Boolean,default:!1},searchPlaceholder:{default:"Search providers..."},modelPlaceholder:{default:"Select a model"},size:{default:"md"}},emits:["select"],setup(v,{emit:m}){const l=v,i=m,r=e.ref(!1),d=e.ref(""),u=e.ref(null),c=e.computed(()=>!l.searchable||!d.value?l.options:l.options.filter(C=>C.value.toLowerCase().includes(d.value.toLowerCase()))),p=()=>{r.value=!r.value,r.value||(d.value="")},_=()=>{r.value=!1,d.value=""},f=C=>{u.value=C,i("select",C),_()},y=C=>{C.target.closest(".model-dropdown-wrapper")||_()};return e.watch(r,C=>{C?setTimeout(()=>{document.addEventListener("click",y)},0):document.removeEventListener("click",y)}),e.onUnmounted(()=>{document.removeEventListener("click",y)}),(C,w)=>{var s,P;return e.openBlock(),e.createElementBlock("div",{class:"model-dropdown-wrapper",onKeydown:e.withKeys(_,["esc"])},[e.createElementVNode("div",{class:e.normalizeClass(["model-dropdown-trigger",[`model-dropdown-trigger--${C.size}`,{"model-dropdown-trigger--open":r.value}]]),onClick:p},[e.createElementVNode("div",Oo,[(s=u.value)!=null&&s.imageSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:u.value.imageSrc,alt:u.value.value,class:"model-dropdown-selected-image"},null,8,Ho)):e.createCommentVNode("",!0),e.createElementVNode("span",Uo,e.toDisplayString(((P=u.value)==null?void 0:P.value)||C.modelPlaceholder),1)]),r.value?(e.openBlock(),e.createBlock(t.IconChevronUp,{key:1,class:"model-dropdown-chevron"})):(e.openBlock(),e.createBlock(t.IconChevronDown,{key:0,class:"model-dropdown-chevron"}))],2),r.value?(e.openBlock(),e.createElementBlock("div",Go,[C.searchable?(e.openBlock(),e.createElementBlock("div",Zo,[e.createVNode(Z,{modelValue:d.value,"onUpdate:modelValue":w[0]||(w[0]=b=>d.value=b),placeholder:C.searchPlaceholder,showCloseButton:!0},null,8,["modelValue","placeholder"])])):e.createCommentVNode("",!0),e.createElementVNode("ul",Ko,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,b=>{var h;return e.openBlock(),e.createElementBlock("li",{key:b.id,class:e.normalizeClass(["model-dropdown-option",{"model-dropdown-option--selected":((h=u.value)==null?void 0:h.id)===b.id}]),onClick:g=>f(b)},[b.imageSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:b.imageSrc,alt:b.value,class:"model-dropdown-option-image"},null,8,Qo)):e.createCommentVNode("",!0),e.createElementVNode("span",Jo,e.toDisplayString(b.value),1)],10,Wo)}),128)),c.value.length===0?(e.openBlock(),e.createElementBlock("li",Xo," No providers found ")):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)],32)}}}),en=t._export_sfc(Yo,[["__scopeId","data-v-75f8685b"]]),on={key:0,class:"freddy-pagination-nav","aria-label":"Pagination"},nn=["disabled"],tn={class:"freddy-pagination-dynamic-container"},ln=["onClick","disabled"],rn=["disabled"],sn=e.defineComponent({__name:"Pagination",props:{totalItems:{type:Number,required:!0,default:0},itemsPerPage:{type:Number,required:!0,default:10},currentPage:{type:Number,required:!0,default:1}},emits:["update:currentPage"],setup(v,{emit:m}){const l=v,i=m,r=e.computed(()=>!l.totalItems||isNaN(l.totalItems)?0:Math.ceil(l.totalItems/l.itemsPerPage)),d=e.computed(()=>{const c=[],p=r.value,_=l.currentPage;if(p<=7)for(let f=1;f<=p;f++)c.push(f);else{c.push(1),_>4?c.push("..."):c.push(2,3);for(let f=Math.max(4,_-1);f<=Math.min(p-3,_+1);f++)c.push(f);_<p-4&&c.push("..."),c.push(p-2,p-1,p)}return c});function u(c){c==="..."||c===l.currentPage||typeof c=="number"&&c>=1&&c<=r.value&&i("update:currentPage",c)}return(c,p)=>r.value>0?(e.openBlock(),e.createElementBlock("nav",on,[e.createElementVNode("button",{class:e.normalizeClass(["freddy-pagination-end-button",{"freddy-pagination-hover-enabled":v.currentPage!==1}]),onClick:p[0]||(p[0]=_=>u(v.currentPage-1)),disabled:v.currentPage===1}," Previous ",10,nn),e.createElementVNode("div",tn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,_=>(e.openBlock(),e.createElementBlock("button",{key:String(_),class:e.normalizeClass(["freddy-pagination-number-button",{active:_===v.currentPage}]),onClick:f=>u(_),disabled:_==="..."||_===v.currentPage},e.toDisplayString(_),11,ln))),128)),e.createElementVNode("button",{class:e.normalizeClass(["freddy-pagination-end-button",{"freddy-pagination-hover-enabled":v.currentPage!==r.value}]),onClick:p[1]||(p[1]=_=>u(v.currentPage+1)),disabled:v.currentPage===r.value||r.value===0}," Next ",10,rn)])])):e.createCommentVNode("",!0)}}),cn=["disabled"],an=e.defineComponent({__name:"SendButton",props:{disabled:{type:Boolean},active:{type:Boolean},size:{}},setup(v){const{currentProject:m,currentColorMode:l}=t.useTheme();return(i,r)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["chat-bar-send-btn",{active:i.active,[`chat-bar-send-btn--${i.size}`]:!0}]),disabled:i.disabled,onClick:r[0]||(r[0]=d=>i.$emit("click"))},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.IconSend),{class:"chat-bar-send-icon"}))],10,cn))}}),un={key:0,class:"skeleton-card"},dn={key:0,class:"skeleton-line skeleton-wave skeleton-w-32 skeleton-h-6 mb-2"},_n={key:1,class:"skeleton-paragraph"},vn={key:0,class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40 mb-2"},pn={key:2,class:"skeleton-single-box"},mn={key:0,class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40 mb-2"},fn={key:3,class:"skeleton-table"},hn={key:0,class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40"},gn={class:"table-full"},bn=e.defineComponent({__name:"SkeletonLoader",props:{type:{},hasHeader:{type:Boolean},count:{}},setup(v){const m=v,{type:l,hasHeader:i=!1,count:r=5}=m;return(d,u)=>e.unref(l)==="card"?(e.openBlock(),e.createElementBlock("div",un,[e.unref(i)?(e.openBlock(),e.createElementBlock("div",dn)):e.createCommentVNode("",!0),u[0]||(u[0]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-3-4"},null,-1)),u[1]||(u[1]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full"},null,-1)),u[2]||(u[2]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-5-6"},null,-1))])):e.unref(l)==="paragraph"?(e.openBlock(),e.createElementBlock("div",_n,[e.unref(i)?(e.openBlock(),e.createElementBlock("div",vn)):e.createCommentVNode("",!0),u[3]||(u[3]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full"},null,-1)),u[4]||(u[4]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-5-6"},null,-1)),u[5]||(u[5]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-3-4"},null,-1))])):e.unref(l)==="single-box"?(e.openBlock(),e.createElementBlock("div",pn,[e.unref(i)?(e.openBlock(),e.createElementBlock("div",mn)):e.createCommentVNode("",!0),u[6]||(u[6]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full"},null,-1))])):e.unref(l)==="table"?(e.openBlock(),e.createElementBlock("div",fn,[e.unref(i)?(e.openBlock(),e.createElementBlock("div",hn)):e.createCommentVNode("",!0),e.createElementVNode("table",gn,[e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),c=>(e.openBlock(),e.createElementBlock("tr",{key:c},[...u[7]||(u[7]=[e.createElementVNode("td",{class:"td-padding"},[e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-8 skeleton-w-full"})],-1),e.createElementVNode("td",{class:"td-padding"},[e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-8 skeleton-w-full"})],-1)])]))),128))])])])):e.createCommentVNode("",!0)}}),yn={class:"freddy-plugins-slider-container"},kn={key:0,class:"freddy-plugins-slider-header"},In={key:0,class:"freddy-plugins-slider-label-section"},Cn={class:"freddy-plugins-slider-label"},Pn={key:1,class:"freddy-plugins-slider-value-badge"},wn=["tabindex","aria-valuemin","aria-valuemax","aria-valuenow","aria-disabled","aria-label"],Bn={key:1,class:"freddy-plugins-slider-hint"},qn=e.defineComponent({__name:"Slider",props:{modelValue:{},min:{default:0},max:{default:100},step:{default:1},label:{},tooltip:{},tooltipPlacement:{default:"top"},hint:{},disabled:{type:Boolean,default:!1},showValue:{type:Boolean,default:!0},range:{type:Boolean,default:!1},rangeValue:{}},emits:["update:modelValue","update:rangeValue"],setup(v,{emit:m}){const l=v,i=m,r=e.ref(!1),d=e.ref(null),u=e.computed(()=>Math.round(l.modelValue)),c=e.computed(()=>{const b=l.max-l.min,h=l.modelValue-l.min;return Math.min(100,Math.max(0,h/b*100))}),p=e.computed(()=>c.value),_=b=>{const h=Math.round(b/l.step)*l.step;return Math.min(l.max,Math.max(l.min,h))},f=b=>{if(!d.value)return l.modelValue;const h=d.value.getBoundingClientRect(),g=Math.max(0,Math.min(1,(b-h.left)/h.width)),k=l.min+g*(l.max-l.min),a=Math.round(k/l.step)*l.step;return Math.min(l.max,Math.max(l.min,a))},y=b=>{const h=_(b);h!==l.modelValue&&i("update:modelValue",h)},C=b=>{if(l.disabled)return;b.preventDefault(),b.stopPropagation(),r.value=!0;const h=k=>{if(!r.value)return;k.preventDefault();const a=f(k.clientX);y(a)},g=()=>{r.value=!1,document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",g)};document.addEventListener("mousemove",h),document.addEventListener("mouseup",g)},w=b=>{if(l.disabled)return;b.preventDefault(),b.stopPropagation(),r.value=!0;const h=k=>{!r.value||!k.touches[0]||(k.preventDefault(),y(f(k.touches[0].clientX)))},g=()=>{r.value=!1,document.removeEventListener("touchmove",h),document.removeEventListener("touchend",g)};document.addEventListener("touchmove",h),document.addEventListener("touchend",g)},s=b=>{if(l.disabled||r.value)return;b.preventDefault(),b.stopPropagation();const h=f(b.clientX);y(h)},P=b=>{if(l.disabled)return;let h=l.modelValue;switch(b.key){case"ArrowLeft":case"ArrowDown":b.preventDefault(),h=l.modelValue-l.step;break;case"ArrowRight":case"ArrowUp":b.preventDefault(),h=l.modelValue+l.step;break;case"Home":b.preventDefault(),h=l.min;break;case"End":b.preventDefault(),h=l.max;break;case"PageDown":b.preventDefault(),h=l.modelValue-l.step*10;break;case"PageUp":b.preventDefault(),h=l.modelValue+l.step*10;break;default:return}y(h)};return(b,h)=>(e.openBlock(),e.createElementBlock("div",yn,[b.label||b.showValue?(e.openBlock(),e.createElementBlock("div",kn,[b.label?(e.openBlock(),e.createElementBlock("div",In,[e.createElementVNode("span",Cn,e.toDisplayString(b.label),1),b.tooltip?(e.openBlock(),e.createBlock(T,{key:0,text:b.tooltip,placement:b.tooltipPlacement},{default:e.withCtx(()=>[e.createVNode(t.IconInfoRounded,{class:"freddy-plugins-slider-tooltip-icon"})]),_:1},8,["text","placement"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),b.showValue?(e.openBlock(),e.createElementBlock("div",Pn,e.toDisplayString(u.value),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-slider-track-container",{"freddy-plugins-slider-disabled":b.disabled}]),onClick:s,onKeydown:P,tabindex:b.disabled?-1:0,role:"slider","aria-valuemin":b.min,"aria-valuemax":b.max,"aria-valuenow":b.modelValue,"aria-disabled":b.disabled,"aria-label":b.label||"Slider"},[e.createElementVNode("div",{ref_key:"sliderTrack",ref:d,class:"freddy-plugins-slider-track-background"},null,512),e.createElementVNode("div",{class:"freddy-plugins-slider-track-progress",style:e.normalizeStyle({width:c.value+"%"})},null,4),e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-slider-thumb",{"freddy-plugins-slider-thumb-dragging":r.value,"freddy-plugins-slider-thumb-disabled":b.disabled}]),style:e.normalizeStyle({left:p.value+"%"}),onMousedown:C,onTouchstart:w},null,38)],42,wn),b.hint?(e.openBlock(),e.createElementBlock("p",Bn,e.toDisplayString(b.hint),1)):e.createCommentVNode("",!0)]))}}),Sn=t._export_sfc(qn,[["__scopeId","data-v-7f709ec1"]]),Tn={class:"freddy-plugins-snackbar-content"},En={class:"freddy-plugins-snackbar-left"},Vn={class:"freddy-plugins-snackbar-text"},Nn=["innerHTML"],Dn=["innerHTML"],$n=["onClick"],Mn=e.defineComponent({__name:"SnackBar",setup(v){const{currentProject:m,currentColorMode:l}=t.useTheme(),{snackQueue:i}=t.useSnackBar(),r=c=>{switch(c){case"success":return t.IconCheckInCircle;case"danger":return t.IconCross;case"info":return t.IconInfoRounded;default:return t.IconCheckInCircle}},d=e.computed(()=>{const c=i.value[i.value.length-1];if(!c)return"side70";switch(c.toastContainerSize){case"half":return"half";case"full":return"full";default:return"side70"}}),u=c=>{i.value.splice(c,1)};return(c,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-plugins-snackbar-container",`freddy-plugins-snackbar-container--${d.value}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(_,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:e.normalizeClass(["freddy-plugins-snackbar",`freddy-plugins-snackbar--${_.toastType}`])},[e.createElementVNode("div",Tn,[e.createElementVNode("div",En,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r(_.toastType)),{class:e.normalizeClass(["freddy-plugins-snackbar-icon",[_.toastType==="info"&&"freddy-plugins-snackbar-icon--info",_.toastType==="danger"&&"freddy-plugins-snackbar-icon--danger",_.toastType==="success"&&"freddy-plugins-snackbar-icon--success"]])},null,8,["class"])),e.createElementVNode("div",Vn,[e.createElementVNode("p",{class:"freddy-plugins-snackbar-title",innerHTML:_.title},null,8,Nn),e.createElementVNode("p",{class:"freddy-plugins-snackbar-message",innerHTML:_.message},null,8,Dn)])]),e.createElementVNode("button",{class:"freddy-plugins-snackbar-close-btn",onClick:y=>u(f)},[e.createVNode(t.IconLightCross,{class:"freddy-plugins-snackbar-close-icon"})],8,$n)])],2))),128))],2))}}),Fn={class:"freddy-plugins-switch-slot__header"},xn={key:0,class:"freddy-plugins-switch-slot__label-section"},Ln={key:0,class:"freddy-plugins-switch-slot__label"},zn=["aria-checked","tabindex","onKeydown","disabled"],An={key:0,class:"freddy-plugins-switch-slot__content"},jn={key:1,class:"freddy-plugins-switch-slot__hint"},Rn=e.defineComponent({__name:"SwitchSlot",props:{modelValue:{type:Boolean},label:{},tooltip:{},tooltipPlacement:{},hint:{},disabled:{type:Boolean},variant:{},showSlotContent:{type:Boolean}},emits:["update:modelValue"],setup(v,{emit:m}){const l=v,i=m,r=d=>{d.stopPropagation(),l.disabled||i("update:modelValue",!l.modelValue)};return(d,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-plugins-switch-slot",{"freddy-plugins-switch-slot--bordered":d.variant==="bordered","freddy-plugins-switch-slot--disabled":d.disabled}])},[e.createElementVNode("div",Fn,[d.label||d.tooltip?(e.openBlock(),e.createElementBlock("div",xn,[d.label?(e.openBlock(),e.createElementBlock("span",Ln,e.toDisplayString(d.label),1)):e.createCommentVNode("",!0),d.tooltip?(e.openBlock(),e.createBlock(T,{key:1,text:d.tooltip,placement:d.tooltipPlacement},{default:e.withCtx(()=>[e.createVNode(t.IconInfoRounded,{class:"freddy-plugins-switch-slot__tooltip-icon"})]),_:1},8,["text","placement"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:e.normalizeClass(["freddy-plugins-switch-slot__switch",{"freddy-plugins-switch-slot__switch--on":d.modelValue}]),"aria-checked":d.modelValue,role:"switch",tabindex:d.disabled?-1:0,onClick:r,onKeydown:[e.withKeys(e.withModifiers(r,["prevent"]),["space"]),e.withKeys(e.withModifiers(r,["prevent"]),["enter"])],disabled:d.disabled},[...u[0]||(u[0]=[e.createElementVNode("span",{class:"freddy-plugins-switch-slot__track"},null,-1),e.createElementVNode("span",{class:"freddy-plugins-switch-slot__thumb"},null,-1)])],42,zn)]),d.showSlotContent?(e.openBlock(),e.createElementBlock("div",An,[e.renderSlot(d.$slots,"content",{},void 0,!0)])):e.createCommentVNode("",!0),d.hint?(e.openBlock(),e.createElementBlock("p",jn,e.toDisplayString(d.hint),1)):e.createCommentVNode("",!0)],2))}}),On=t._export_sfc(Rn,[["__scopeId","data-v-edc0859a"]]),Hn={class:"freddy-plugin-nav-bar"},Un=["onClick"],Gn=e.defineComponent({__name:"TabList",props:{tabList:{},currentTab:{default:0},activeStateType:{},orientation:{},fullWidth:{type:Boolean}},emits:["tabSwitch"],setup(v,{emit:m}){const l=v,i=m,r=e.ref(l.currentTab),d=u=>{r.value!==u.id&&(r.value=u.id,i("tabSwitch",u.id))};return(u,c)=>(e.openBlock(),e.createElementBlock("div",Hn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.tabList,(p,_)=>(e.openBlock(),e.createElementBlock("button",{class:"freddy-plugin-menu-button",key:_,onClick:f=>d(p)},[e.createTextVNode(e.toDisplayString(p.title)+" ",1),e.createElementVNode("span",{class:e.normalizeClass({"freddy-plugin-active-tab":r.value===p.id})},null,2)],8,Un))),128))]))}}),Zn=["onClick","aria-selected","onKeydown"],Kn={class:"freddy-plugin-menu-button-label"},Wn={key:0,class:"freddy-plugin-menu-button-badge"},Qn=e.defineComponent({__name:"BaseTabButton",props:{tabList:{},currentTab:{default:0},activeStateType:{default:"bottom-dash"},orientation:{default:"horizontal"},fullWidth:{type:Boolean,default:!1}},emits:["tabSwitch"],setup(v,{emit:m}){const l=v,i=m,r=e.computed(()=>l.activeStateType||"bottom-dash"),d=e.computed(()=>l.orientation||"horizontal"),u=e.computed(()=>{const _=d.value,f=r.value;return _==="vertical"&&f==="bottom-dash"?"left-dash":{"bottom-dash":"bottom-dash","bg-primary-active":"background-21404F8F","primary-active":"background-031525","bg-primary-active-bordered":"background-border"}[f]||f}),c=e.ref(l.currentTab);e.watch(()=>l.currentTab,_=>{c.value=_});const p=_=>{c.value!==_.id&&(c.value=_.id,i("tabSwitch",_.id))};return(_,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-plugin-nav-bar",`freddy-plugin-nav-bar--${d.value}`,`freddy-plugin-nav-bar--${u.value}`,{"freddy-plugin-nav-bar--full-width":l.fullWidth}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.tabList,(y,C)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["freddy-plugin-menu-button",`freddy-plugin-menu-button--${u.value}`,{"freddy-plugin-menu-button--active":c.value===y.id},{"freddy-plugin-menu-button--full-width":l.fullWidth}]),key:C,onClick:w=>p(y),"aria-selected":c.value===y.id,role:"tab",tabindex:"0",onKeydown:[e.withKeys(w=>p(y),["enter"]),e.withKeys(e.withModifiers(w=>p(y),["prevent"]),["space"])]},[e.createElementVNode("span",Kn,e.toDisplayString(y.title),1),y.badge!==void 0?(e.openBlock(),e.createElementBlock("span",Wn,e.toDisplayString(y.badge),1)):e.createCommentVNode("",!0),u.value==="bottom-dash"&&c.value===y.id?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass({"freddy-plugin-active-tab-bottom":c.value===y.id})},null,2)):e.createCommentVNode("",!0)],42,Zn))),128))],2))}}),Jn={class:"freddy-plugins-toast-wrapper"},Xn={class:"freddy-plugins-toast-icon-wrapper"},Yn={class:"freddy-plugins-toast-message"},et=["onClick"],ot=e.defineComponent({__name:"ToastMessage",setup(v){const{toastQueue:m}=t.useToast(),l={success:"freddy-plugins-toast-success",danger:"freddy-plugins-toast-danger",info:"freddy-plugins-toast-info"},i=u=>l[u],r=u=>{switch(u){case"success":return t.IconTick;case"danger":return t.IconCross;case"info":return t.IconInfoRounded;default:return t.IconTick}},d=u=>{m.value.splice(u,1)};return(u,c)=>(e.openBlock(),e.createElementBlock("div",Jn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),(p,_)=>(e.openBlock(),e.createElementBlock("div",{key:_,class:e.normalizeClass(["freddy-plugins-toast-item",i(p.toastType)])},[e.createElementVNode("div",Xn,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r(p.toastType)),{class:"freddy-plugins-toast-icon"}))]),e.createElementVNode("span",Yn,e.toDisplayString(p.message),1),e.createElementVNode("button",{class:"freddy-plugins-toast-close-button",onClick:f=>d(_)},[e.createVNode(e.unref(t.IconCross),{class:"freddy-plugins-toast-close-icon"})],8,et)],2))),128))]))}}),nt=["aria-label"],tt=["innerHTML"],lt={key:1},it=e.defineComponent({__name:"TooltipV2",props:{text:{},placement:{default:"top"},html:{type:Boolean,default:!1},contentClass:{},delay:{default:200},hideDelay:{default:0}},setup(v){const m=v,l=e.ref(!1),i=e.ref(!1),r=e.ref(null);let d=null,u=null;const c=()=>{u&&(clearTimeout(u),u=null),d&&clearTimeout(d),d=setTimeout(()=>{if(r.value){const y=r.value.getBoundingClientRect();i.value=y.top<150}l.value=!0},m.delay)},p=()=>{d&&(clearTimeout(d),d=null),u=setTimeout(()=>{l.value=!1},m.hideDelay)},_=()=>{c()},f=()=>{p()};return(y,C)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tooltipWrapper",ref:r,class:"freddy-plugins-tooltip-v2-wrapper",onMouseenter:c,onMouseleave:p,onFocusin:_,onFocusout:f,tabindex:"0"},[e.renderSlot(y.$slots,"default",{},void 0,!0),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["freddy-plugins-tooltip-v2-content",[y.placement,i.value?"force-bottom":"",y.contentClass]]),role:"tooltip","aria-label":y.text},[e.renderSlot(y.$slots,"content",{},()=>[y.html?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:y.text},null,8,tt)):(e.openBlock(),e.createElementBlock("span",lt,e.toDisplayString(y.text),1))],!0)],10,nt)):e.createCommentVNode("",!0)]),_:3})],544))}}),rt=t._export_sfc(it,[["__scopeId","data-v-55872ec8"]]);function st(v={}){const{logErrors:m=!0,throwOnCritical:l=!1,maxRetries:i=3}=v,r=e.ref([]),d=e.ref(!1),u=e.ref(0),c=e.computed(()=>r.value.length>0),p=e.computed(()=>r.value[r.value.length-1]||null),_=(P,b)=>{const h={message:P instanceof Error?P.message:String(P),stack:P instanceof Error?P.stack:void 0,timestamp:new Date().toISOString(),context:{...b,retryCount:u.value,userAgent:typeof navigator<"u"?navigator.userAgent:"Unknown"}};if(P&&typeof P=="object"&&"status"in P&&(h.code=P.status),r.value.push(h),m&&process.env.NODE_ENV,l&&s(P))throw P;return h},f=async(P,b)=>{d.value=!0;try{const h=await P();return u.value=0,{data:h,error:null}}catch(h){return{data:null,error:_(h,b)}}finally{d.value=!1}},y=async(P,b)=>{let h=null;for(let g=1;g<=i;g++){u.value=g-1;const k=await f(P,{...b,attempt:g,maxRetries:i});if(k.data!==null)return k;if(h=k.error,h!=null&&h.code&&typeof h.code=="number"&&h.code>=400&&h.code<500)break;g<i&&await new Promise(a=>setTimeout(a,Math.pow(2,g)*1e3))}return{data:null,error:h}},C=()=>{r.value=[],u.value=0},w=P=>{P>=0&&P<r.value.length&&r.value.splice(P,1)},s=P=>{if(P instanceof Error){if(P.name==="NetworkError"||P.name==="TypeError")return!1;if(P.name==="SyntaxError")return!0}return P&&typeof P=="object"&&"status"in P?P.status>=500:!1};return{errors:e.computed(()=>r.value),hasErrors:c,latestError:p,isLoading:e.computed(()=>d.value),retryCount:e.computed(()=>u.value),handleError:_,handleAsync:f,retryAsync:y,clearErrors:C,clearError:w,isCriticalError:s}}function ct(v={}){const{enableMetrics:m=process.env.NODE_ENV==="development",trackMemory:l=!1,sampleRate:i=.1}=v,r=e.ref([]),d=e.ref(!1),u=e.ref(0),c=e.computed(()=>r.value.length===0?0:r.value.reduce((a,o)=>a+o.renderTime,0)/r.value.length),p=e.computed(()=>r.value.length===0?0:Math.max(...r.value.map(k=>k.renderTime))),_=k=>{!m||Math.random()>i||(d.value=!0,u.value=performance.now(),k&&process.env.NODE_ENV)},f=(k,a=1)=>{if(!d.value||!m)return;const q={renderTime:performance.now()-u.value,componentCount:a,timestamp:new Date().toISOString()};if(l&&"memory"in performance){const I=performance.memory;q.memoryUsage=I.usedJSHeapSize}return r.value.push(q),r.value.length>100&&r.value.shift(),d.value=!1,k&&process.env.NODE_ENV,q},y=async(k,a)=>{_(a);try{const o=await k(),B=f(a)||{renderTime:0,componentCount:1,timestamp:new Date().toISOString()};return{result:o,metrics:B}}catch(o){throw f(a),o}},C=(k,a)=>{let o;return(...B)=>{clearTimeout(o),o=setTimeout(()=>k(...B),a)}},w=(k,a)=>{let o;return(...B)=>{o||(k(...B),o=!0,setTimeout(()=>o=!1,a))}},s=(k,a=5e3)=>{"requestIdleCallback"in window?window.requestIdleCallback(k,{timeout:a}):setTimeout(k,0)},P=async(k,a=0)=>(a>0&&await new Promise(o=>setTimeout(o,a)),new Promise(o=>{s(async()=>{try{const B=await k();o(B)}catch(B){throw B}})})),b=(k,a,o)=>{const B=Math.ceil(o/a),q=Math.ceil(B*.5);return I=>{const n=Math.max(0,Math.floor(I/a)-q),S=Math.min(k.length,n+B+q*2);return{visibleItems:k.slice(n,S),startIndex:n,endIndex:S,totalHeight:k.length*a,offsetY:n*a}}},h=()=>{r.value=[]},g=()=>({totalMeasurements:r.value.length,averageRenderTime:c.value,maxRenderTime:p.value,recentMetrics:r.value.slice(-10)});return m&&process.env.NODE_ENV==="development"&&e.onMounted(()=>{_("Component Mount"),e.nextTick(()=>{f("Component Mount")})}),{metrics:e.computed(()=>r.value),isTracking:e.computed(()=>d.value),averageRenderTime:c,maxRenderTime:p,startTracking:_,endTracking:f,measureAsync:y,debounce:C,throttle:w,scheduleWork:s,lazyLoad:P,createVirtualList:b,clearMetrics:h,getSummary:g}}exports.ConfirmationModal=t._sfc_main;exports.DeleteConfirmationModal=t._sfc_main$1;exports.aiResponseToChatMessage=t.aiResponseToChatMessage;exports.calculatePercentage=t.calculatePercentage;exports.cloneDeepSafe=t.cloneDeepSafe;exports.copyToClipboard=t.copyToClipboard;exports.createChangesObject=t.createChangesObject;exports.daysInMonth=t.daysInMonth;exports.debounce=t.debounce;exports.deepEqual=t.deepEqual;exports.defaultImageSrc=t.defaultImageSrc;exports.extractStats=t.extractStats;exports.fileSizeFormatter=t.fileSizeFormatter;exports.fillMissingDays=t.fillMissingDays;exports.formatDate=t.formatDate;exports.formatDateToLocaleString=t.formatDateToLocaleString;exports.formatLastUsedDate=t.formatLastUsedDate;exports.getDatesForMonth=t.getDatesForMonth;exports.getDaysInMonth=t.getDaysInMonth;exports.getDisplayContent=t.getDisplayContent;exports.getFileNameFromUrl=t.getFileNameFromUrl;exports.getShortMonthName=t.getShortMonthName;exports.hasOverflow=t.hasOverflow;exports.hasTextImprovements=t.hasTextImprovements;exports.interpolateColor=t.interpolateColor;exports.isValidAIResponse=t.isValidAIResponse;exports.openConfirmBoxModal=t.openConfirmBoxModal;exports.openDeleteConfirmModal=t.openDeleteConfirmModal;exports.parseAITextResponse=t.parseAITextResponse;exports.parseApiResponse=t.parseApiResponse;exports.readableDateFormat=t.readableDateFormat;exports.scrollToBottom=t.scrollToBottom;exports.scrollToElement=t.scrollToElement;exports.useSnackBar=t.useSnackBar;exports.useToast=t.useToast;exports.AdvancedModal=pe;exports.AnimeSpaceman=ce;exports.BaseButton=M;exports.BaseInput=V;exports.BaseTabButton=Qn;exports.CardInput=R;exports.CodeBlock=Te;exports.CustomCheckbox=Me;exports.DefaultInput=O;exports.DiffTextarea=Ae;exports.Dropdown=We;exports.EmailCodeVerification=so;exports.IconStyleDirective=D;exports.InputField=qo;exports.InstructionsModal=Mo;exports.InstructiontextArea=Lo;exports.ModalBox=U;exports.ModalOverlay=jo;exports.ModelDropdown=en;exports.Pagination=sn;exports.PhoneInput=H;exports.SearchInput=Z;exports.SendButton=an;exports.SkeletonLoader=bn;exports.Slider=Sn;exports.SnackBar=Mn;exports.SocialButtons=qe;exports.Spinner=G;exports.Switch=A;exports.SwitchSlot=On;exports.TabList=Gn;exports.ToastMessage=ot;exports.Tooltip=T;exports.TooltipV2=rt;exports.default=ie;exports.frSanitizePlugin=re;exports.iconStylePlugin=se;exports.useErrorHandler=st;exports.usePerformance=ct;exports.vFrSanitize=$;
|
|
34
|
+
278.436,375.599 383.003,264.076 364.393,251.618 264.807,364.928 "></polygon></g></g></g></g>`,1)])],6))}}),ae={key:0,class:"fixed z-[9998] top-0 left-0 w-full h-full bg-modalBackgroundBlur flex justify-center items-center"},de={class:"flex justify-center items-center"},ue={class:"modal-header"},_e={class:"modal-body"},ve={class:"modal-footer"},pe=e.defineComponent({__name:"AdvancedModal",props:{isVisible:{type:Boolean},largeModel:{type:Boolean}},setup(v){return(m,l)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[m.isVisible?(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("div",de,[e.createElementVNode("div",{class:e.normalizeClass({"p-8 bg-background rounded-[2.5rem] overflow-hidden text-white 2xl:w-[56.25rem] xl:w-[56.25rem] lg:w-[56.25rem] md:w-[45.625rem] sm:w-[31.25rem] xs:w-auto":m.largeModel})},[e.createElementVNode("div",ue,[e.renderSlot(m.$slots,"header")]),e.createElementVNode("div",_e,[e.renderSlot(m.$slots,"body")]),e.createElementVNode("div",ve,[e.renderSlot(m.$slots,"footer")])],2)])])):e.createCommentVNode("",!0)]),_:3}))}}),me=["innerHTML"],he={key:1},q=e.defineComponent({__name:"Tooltip",props:{text:{},placement:{},html:{type:Boolean},contentClass:{}},setup(v){const{currentProject:m,currentColorMode:l}=o.useTheme(),i=e.ref(!1),r=e.ref(!1),u=e.ref(null);let d=null;function c(){d&&clearTimeout(d),d=setTimeout(()=>{if(u.value){const _=u.value.getBoundingClientRect();r.value=_.top<150}i.value=!0},200)}function p(){d&&clearTimeout(d),i.value=!1}return(_,h)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tooltipWrapper",ref:u,class:"tooltip-wrapper",onMouseenter:c,onMouseleave:p,onFocusin:c,onFocusout:p,tabindex:"0"},[e.renderSlot(_.$slots,"default"),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[i.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tooltip-content",[_.placement,r.value?"force-bottom":"",_.contentClass]])},[e.renderSlot(_.$slots,"content",{},()=>[_.html?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:_.text},null,8,me)):(e.openBlock(),e.createElementBlock("span",he,e.toDisplayString(_.text),1))])],2)):e.createCommentVNode("",!0)]),_:3})],544))}}),fe=["disabled","aria-disabled","aria-label"],ge={key:0,class:"freddy-plugins-button-label"},be={key:1,class:"freddy-plugins-button-label"},Ie=["disabled","aria-disabled","aria-label"],ye={key:0,class:"freddy-plugins-button-label"},ke={key:1,class:"freddy-plugins-button-label"},Ce=e.defineComponent({__name:"BaseButton",props:{size:{default:"md"},hierarchy:{default:"primary"},state:{default:"default"},errorState:{type:Boolean,default:!1},iconOnly:{type:Boolean,default:!1},leftIcon:{default:void 0},rightIcon:{default:void 0},label:{default:"Button"},loadingText:{default:void 0},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},tooltip:{default:void 0},tooltipPlacement:{default:"top"}},emits:["click","leftIconClick","rightIconClick"],setup(v,{emit:m}){const l=v,i={IconSearch:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_116)),IconUser:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_140)),IconDelete:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_42)),IconSend:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_119)),IconPlus:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_101)),IconEdit:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_50)),IconCross:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_37)),IconTick:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_139)),IconArrowLeft:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_6)),IconArrowDown:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_5)),IconArrowUp:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_7)),IconChevronDown:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_19)),IconChevronUp:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_22)),IconChevronLeft:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_20)),IconChevronRight:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_21)),IconSettings:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_120)),IconHome:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_71)),IconDownload:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_47)),IconRefresh:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_112)),IconCopy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_36)),IconEye:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_54)),IconLock:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_83)),IconStar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_127)),IconFilter:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_60)),IconFile:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_57)),IconFolder:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_61)),IconText:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_134)),IconLink04:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(s=>s.__vite_glob_0_79))},r=e.computed(()=>l.leftIcon&&i[l.leftIcon]||null),u=e.computed(()=>l.rightIcon&&i[l.rightIcon]||null),d=m,c=e.ref(!1),p=e.computed(()=>["freddy-plugins-base-button",`freddy-plugins-base-button--${l.size}`,`freddy-plugins-base-button--${l.hierarchy}`,{"freddy-plugins-base-button--disabled":l.disabled,"freddy-plugins-base-button--loading":l.loading,"freddy-plugins-base-button--icon-only":l.iconOnly,"freddy-plugins-base-button--error":l.errorState,"freddy-plugins-base-button--hover":c.value&&!l.disabled&&!l.loading,"freddy-plugins-base-button--focused":l.state==="focused"}]),_=s=>{!l.disabled&&!l.loading&&d("click",s)},h=s=>{!l.disabled&&!l.loading&&d("leftIconClick",s)},I=s=>{!l.disabled&&!l.loading&&d("rightIconClick",s)},C=()=>{c.value=!0},w=()=>{c.value=!1};return(s,P)=>s.tooltip?(e.openBlock(),e.createBlock(q,{key:0,text:s.tooltip,placement:s.tooltipPlacement},{default:e.withCtx(()=>[e.createElementVNode("button",{class:e.normalizeClass(p.value),disabled:s.disabled||s.loading,"aria-disabled":s.disabled||s.loading,"aria-label":s.iconOnly?s.label:void 0,role:"button",onClick:_,onMouseenter:C,onMouseleave:w},[s.loading?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[P[0]||(P[0]=e.createElementVNode("span",{class:"freddy-plugins-button-spinner","aria-hidden":"true"},null,-1)),s.loadingText||s.label?(e.openBlock(),e.createElementBlock("span",ge,e.toDisplayString(s.loadingText||s.label),1)):e.createCommentVNode("",!0)],64)):s.iconOnly?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{key:1,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-center",`freddy-plugins-button-icon--${s.size}`]),"aria-hidden":"true"},null,8,["class"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[s.leftIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{key:0,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-left",`freddy-plugins-button-icon--${s.size}`]),"aria-hidden":"true",onClick:e.withModifiers(h,["stop"])},null,8,["class"])):e.createCommentVNode("",!0),s.label?(e.openBlock(),e.createElementBlock("span",be,e.toDisplayString(s.label),1)):e.createCommentVNode("",!0),s.rightIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.value),{key:2,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-right",`freddy-plugins-button-icon--${s.size}`]),"aria-hidden":"true",onClick:e.withModifiers(I,["stop"])},null,8,["class"])):e.createCommentVNode("",!0)],64))],42,fe)]),_:1},8,["text","placement"])):(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(p.value),disabled:s.disabled||s.loading,"aria-disabled":s.disabled||s.loading,"aria-label":s.iconOnly?s.label:void 0,role:"button",onClick:_,onMouseenter:C,onMouseleave:w},[s.loading?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[P[1]||(P[1]=e.createElementVNode("span",{class:"freddy-plugins-button-spinner","aria-hidden":"true"},null,-1)),s.loadingText||s.label?(e.openBlock(),e.createElementBlock("span",ye,e.toDisplayString(s.loadingText||s.label),1)):e.createCommentVNode("",!0)],64)):s.iconOnly?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{key:1,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-center",`freddy-plugins-button-icon--${s.size}`]),"aria-hidden":"true"},null,8,["class"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[s.leftIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{key:0,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-left",`freddy-plugins-button-icon--${s.size}`]),"aria-hidden":"true",onClick:e.withModifiers(h,["stop"])},null,8,["class"])):e.createCommentVNode("",!0),s.label?(e.openBlock(),e.createElementBlock("span",ke,e.toDisplayString(s.label),1)):e.createCommentVNode("",!0),s.rightIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.value),{key:2,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-right",`freddy-plugins-button-icon--${s.size}`]),"aria-hidden":"true",onClick:e.withModifiers(I,["stop"])},null,8,["class"])):e.createCommentVNode("",!0)],64))],42,Ie))}}),$=o._export_sfc(Ce,[["__scopeId","data-v-ca53fa07"]]),Pe=["disabled","aria-label","onClick"],we={key:0,class:"freddy-plugins-social-button-label"},Be=e.defineComponent({__name:"SocialButtons",props:{providers:{},variant:{default:"filled"},size:{default:"md"},disabled:{type:Boolean,default:!1},iconOnly:{type:Boolean,default:!1},layout:{default:"horizontal"},class:{},style:{}},emits:["click"],setup(v,{emit:m}){const l=v,i=m,r={google:{icon:o.IconGoogle,label:"Sign in with Google",colors:{filled:{background:"#ffffff",color:"#1f2937",border:"#d1d5db"},outlined:{background:"#ffffff",color:"#1f2937",border:"#10b981"},ghost:{background:"transparent",color:"#9ca3af",border:"#d1d5db"}}},facebook:{icon:o.IconFacebook,label:"Sign in with Facebook",colors:{filled:{background:"#1877f2",color:"#ffffff"},outlined:{background:"#ffffff",color:"#1877f2",border:"#1877f2"},ghost:{background:"transparent",color:"#9ca3af",border:"#d1d5db"}}},apple:{icon:o.IconApple,label:"Sign in with Apple",colors:{filled:{background:"#000000",color:"#ffffff"},outlined:{background:"#ffffff",color:"#000000",border:"#000000"},ghost:{background:"transparent",color:"#9ca3af",border:"#d1d5db"}}},x:{icon:o.IconX,label:"Sign in with X",colors:{filled:{background:"#000000",color:"#ffffff"},outlined:{background:"#ffffff",color:"#000000",border:"#000000"},ghost:{background:"transparent",color:"#9ca3af",border:"#d1d5db"}}},figma:{icon:o.IconFigma,label:"Sign in with Figma",colors:{filled:{background:"#000000",color:"#ffffff"},outlined:{background:"#ffffff",color:"#000000",border:"#000000"},ghost:{background:"transparent",color:"#9ca3af",border:"#d1d5db"}}},dribbble:{icon:o.IconDribbble,label:"Sign in with Dribbble",colors:{filled:{background:"#ea4c89",color:"#ffffff"},outlined:{background:"#ffffff",color:"#ea4c89",border:"#ea4c89"},ghost:{background:"transparent",color:"#9ca3af",border:"#d1d5db"}}}},u=e.computed(()=>["freddy-plugins-social-buttons",`freddy-plugins-social-buttons--${l.layout}`,`freddy-plugins-social-buttons--${l.size}`,{"freddy-plugins-social-buttons--disabled":l.disabled},l.class]),d=h=>r[h].icon,c=h=>r[h].label,p=h=>["freddy-plugins-social-button",`freddy-plugins-social-button--${l.variant}`,`freddy-plugins-social-button--${l.size}`,`freddy-plugins-social-button--${h}`,{"freddy-plugins-social-button--disabled":l.disabled,"freddy-plugins-social-button--icon-only":l.iconOnly}],_=(h,I)=>{l.disabled||i("click",h,I)};return(h,I)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(u.value),style:e.normalizeStyle(h.style)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.providers,C=>(e.openBlock(),e.createElementBlock("button",{key:C,class:e.normalizeClass(p(C)),disabled:h.disabled,"aria-label":h.iconOnly?c(C):void 0,role:"button",onClick:w=>_(C,w)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d(C)),{class:"freddy-plugins-social-button-icon","aria-hidden":"true"})),h.iconOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",we,e.toDisplayString(c(C)),1))],10,Pe))),128))],6))}}),Se=o._export_sfc(Be,[["__scopeId","data-v-22e5ee7c"]]),Te=["innerHTML"],A="nord",qe=e.defineComponent({__name:"CodeBlock",props:{code:{},language:{}},setup(v){const m=v,l=e.ref("");let i=null,r=null;const u=async()=>{try{if(typeof window<"u"&&window.shiki){r=window.shiki.createHighlighter;return}}catch{}},d=["js","ts","json","python","vue","html","css","scss","bash","yaml","markdown","c","cpp","java","go","php","ruby","rust","swift","kotlin"],c=async()=>{if(r||await u(),!r){l.value=`<pre><code>${m.code.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}</code></pre>`;return}try{i||(i=await r({themes:[A],langs:d})),l.value=i.codeToHtml(m.code,{lang:m.language,theme:A})}catch{l.value=`<pre><code>${m.code.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}</code></pre>`}};return e.watch(()=>[m.code,m.language],c,{immediate:!0}),e.onMounted(c),(p,_)=>(e.openBlock(),e.createElementBlock("pre",null,[e.createElementVNode("code",{innerHTML:l.value},null,8,Te)]))}}),Ee=["aria-checked","aria-disabled","aria-label"],Ne=["checked","disabled"],De={key:0,class:"freddy-plugins-checkbox-dash"},Ve={key:1,class:"freddy-plugins-checkbox-icon",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Fe=["stroke"],$e=e.defineComponent({__name:"CustomCheckbox",props:{isChecked:{type:Boolean},isDashInput:{type:Boolean},blueCheckbox:{type:Boolean},disabled:{type:Boolean},ariaLabel:{}},emits:["update:isChecked"],setup(v,{emit:m}){const{currentProject:l,currentColorMode:i}=o.useTheme(),r=v,u=m;function d(c){const p=c.target;r.disabled||u("update:isChecked",p.checked)}return(c,p)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["freddy-plugins-base-checkbox",{"freddy-plugins-checked":c.isChecked&&!c.blueCheckbox,"freddy-plugins-checked-blue":c.isChecked&&c.blueCheckbox,"freddy-plugins-not-checked":!c.isChecked,"freddy-plugins-is-disabled":c.disabled}]),"aria-checked":c.isChecked,"aria-disabled":c.disabled,"aria-label":c.ariaLabel,role:"checkbox"},[e.createElementVNode("input",{id:"checkbox-input",type:"checkbox",class:"freddy-plugins-checkbox-input",checked:c.isChecked,disabled:c.disabled,onChange:d},null,40,Ne),c.isDashInput&&c.isChecked?(e.openBlock(),e.createElementBlock("span",De)):c.isChecked&&!c.isDashInput?(e.openBlock(),e.createElementBlock("svg",Ve,[e.createElementVNode("path",{d:"M10 3L4.5 8.5L2 6",stroke:c.blueCheckbox?"var(--text-50, var(--text-inverse))":"#000","stroke-width":"1.6666","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Fe)])):e.createCommentVNode("",!0)],10,Ee))}}),Me={class:"freddy-plugins-diff-container"},Le=["innerHTML"],xe=["placeholder"],Ae=e.defineComponent({__name:"DiffTextarea",props:{modelValue:{},placeholder:{default:"Enter your text..."},originalText:{},improvedText:{},showDiff:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(v,{expose:m,emit:l}){const i=v,r=l,u=e.ref(null),d=e.ref(i.modelValue);e.watch(()=>i.modelValue,_=>{d.value=_});const c=()=>{r("update:modelValue",d.value)},p=e.computed(()=>{if(!i.originalText||!i.improvedText)return"";const _=i.originalText.split(/(\s+)/),h=i.improvedText.split(/(\s+)/);let I="";const C=_.filter(s=>!h.includes(s)&&s.trim()).join(" ");C&&(I+=`<span class="freddy-plugins-diff-removed">${C}</span>`);const w=h.filter(s=>!_.includes(s)&&s.trim()).join(" ");return w&&(I&&(I+="<br>"),I+=`<span class="freddy-plugins-diff-added">${w}</span>`),I||(I=`<span class="freddy-plugins-diff-improved">${i.improvedText}</span>`),I});return m({focus:()=>{var _;return(_=u.value)==null?void 0:_.focus()},blur:()=>{var _;return(_=u.value)==null?void 0:_.blur()}}),(_,h)=>(e.openBlock(),e.createElementBlock("div",Me,[_.showDiff&&p.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"freddy-plugins-diff-preview",innerHTML:p.value},null,8,Le)):e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:1,ref_key:"textareaRef",ref:u,"onUpdate:modelValue":h[0]||(h[0]=I=>d.value=I),class:"freddy-plugins-diff-textarea",placeholder:_.placeholder,onInput:c},null,40,xe)),[[e.vModelText,d.value]])]))}}),ze=o._export_sfc(Ae,[["__scopeId","data-v-54efeaf3"]]),Re=["aria-checked","tabindex","onKeydown","disabled"],z=e.defineComponent({__name:"Switch",props:{modelValue:{type:Boolean},disabled:{type:Boolean},size:{}},emits:["update:modelValue"],setup(v,{emit:m}){const{currentProject:l,currentColorMode:i}=o.useTheme(),r=v,u=m;function d(c){c.stopPropagation(),r.disabled||u("update:modelValue",!r.modelValue)}return(c,p)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["freddy-plugins-switch",{"freddy-plugins-switch--on":c.modelValue,"freddy-plugins-switch--disabled":c.disabled,[`freddy-plugins-switch--${c.size}`]:!0}]),"aria-checked":c.modelValue,role:"switch",tabindex:c.disabled?-1:0,onClick:d,onKeydown:[e.withKeys(e.withModifiers(d,["prevent"]),["space"]),e.withKeys(e.withModifiers(d,["prevent"]),["enter"])],disabled:c.disabled},[...p[0]||(p[0]=[e.createElementVNode("span",{class:"freddy-plugins-switch__track"},null,-1),e.createElementVNode("span",{class:"freddy-plugins-switch__thumb"},null,-1)])],42,Re))}}),je={key:0,class:"freddy-plugins-dropdown-search-bar"},He=["placeholder"],Oe={class:"freddy-plugins-dropdown-options"},Ue=["onClick"],Ge={class:"freddy-plugins-dropdown-option-label"},Ze={key:1,class:"freddy-plugins-dropdown-option-shortcut"},We={key:0,class:"freddy-plugins-dropdown-no-options"},Ke=e.defineComponent({__name:"Dropdown",props:{label:{default:"Select"},size:{default:"sm"},iconOnly:{type:Boolean,default:!1},options:{default:()=>[]},searchable:{type:Boolean,default:!1},searchPlaceholder:{default:"Search..."},openUp:{type:Boolean,default:!1},chevronRight:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},customIcon:{default:null},optionIconRight:{type:Boolean,default:!1},showShortcut:{type:Boolean,default:!1},background:{default:"transparent"},borderRadius:{default:"8px"},activeBackground:{default:"var(--freddy-bg-tertiary)"},openBackground:{default:"var(--freddy-bg-tertiary)"},variant:{default:"primary"},stayOpen:{type:Boolean,default:!1}},emits:["select","toggle"],setup(v,{emit:m}){const l=v,i=m,r=e.ref(!1),u=e.ref(""),d=e.ref(null),c=e.shallowRef([...l.options]);e.watch(()=>l.options,g=>{c.value=[...g]});const p=()=>{if(d.value)return;const g=c.value.find(y=>y.default);g&&(d.value=g)};e.watch(c,()=>{p()},{immediate:!0});const _=e.computed(()=>l.label!=="Select"?l.label:d.value?d.value.label:"Select"),h=e.computed(()=>l.showIcon?l.customIcon?l.customIcon:l.openUp?o.IconChevronUp:o.IconChevronDown:null),I=()=>{r.value=!r.value,r.value||(u.value="")},C=()=>{r.value=!1,u.value=""},w=e.computed(()=>!l.searchable||!u.value?c.value:c.value.filter(g=>g.label.toLowerCase().includes(u.value.toLowerCase()))),s=(g,y)=>{g.type!=="toggle"&&P(g)},P=g=>{d.value=g,i("select",g),l.stayOpen||C()},b=(g,y)=>{const a=c.value.findIndex(n=>n.value===g.value);a!==-1&&(c.value[a].checked=y),i("toggle",{...g,checked:y})},f=g=>{g.target.closest(".freddy-plugins-dropdown-wrapper")||C()};return e.watch(r,g=>{g?setTimeout(()=>{document.addEventListener("click",f)},0):document.removeEventListener("click",f)}),(g,y)=>(e.openBlock(),e.createElementBlock("div",{class:"freddy-plugins-dropdown-wrapper",onKeydown:e.withKeys(C,["esc"]),tabindex:"0"},[e.createVNode($,{class:"freddy-plugins-dropdown-trigger",label:_.value,iconOnly:g.iconOnly,rightIcon:g.chevronRight&&g.showIcon?h.value:void 0,leftIcon:!g.chevronRight&&g.showIcon?h.value:void 0,size:g.size,hierarchy:"tertiary",onClick:I,"aria-expanded":r.value,"aria-haspopup":!0,type:"button"},{default:e.withCtx(()=>[e.renderSlot(g.$slots,"button",{},()=>[e.createTextVNode(e.toDisplayString(_.value),1)])]),_:3},8,["label","iconOnly","rightIcon","leftIcon","size","aria-expanded"]),r.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["freddy-plugins-dropdown-menu",{"freddy-plugins-dropdown-menu--up":g.openUp,"freddy-plugins-dropdown-menu--down":!g.openUp}])},[g.searchable?(e.openBlock(),e.createElementBlock("div",je,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":y[0]||(y[0]=a=>u.value=a),type:"text",class:"freddy-plugins-dropdown-search-input",placeholder:g.searchPlaceholder},null,8,He),[[e.vModelText,u.value]])])):e.createCommentVNode("",!0),e.createElementVNode("ul",Oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,a=>(e.openBlock(),e.createElementBlock("li",{key:a.value,class:e.normalizeClass(["freddy-plugins-dropdown-option",{"freddy-plugins-dropdown-option--toggle":a.type==="toggle"}]),onClick:n=>s(a)},[e.createElementVNode("span",Ge,[!g.optionIconRight&&a.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.icon),{key:0,class:"freddy-plugins-dropdown-option-icon"})):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(a.label),1),g.showShortcut&&a.shortcut?(e.openBlock(),e.createElementBlock("span",Ze,e.toDisplayString(a.shortcut),1)):e.createCommentVNode("",!0),g.optionIconRight&&a.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.icon),{key:2,class:"freddy-plugins-dropdown-option-icon freddy-plugins-dropdown-option-icon--right"})):e.createCommentVNode("",!0)]),a.type==="toggle"?(e.openBlock(),e.createBlock(z,{key:0,modelValue:a.checked??!1,size:l.size,"onUpdate:modelValue":n=>{b(a,n)},onClick:y[1]||(y[1]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","size","onUpdate:modelValue"])):e.createCommentVNode("",!0)],10,Ue))),128)),w.value.length===0?(e.openBlock(),e.createElementBlock("li",We,[e.renderSlot(g.$slots,"no-options",{},()=>[y[2]||(y[2]=e.createTextVNode("No options",-1))])])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0)],32))}}),Qe={class:"verification-container"},Je={class:"verification-header"},Xe={class:"verification-subtitle"},Ye={class:"code-input-container"},eo={class:"code-inputs"},oo=["onUpdate:modelValue","onInput","onKeydown","disabled"],no={class:"verification-actions"},to={key:0,class:"error-message"},lo={class:"verification-footer"},io={class:"resend-text"},ro=["disabled"],so=e.defineComponent({__name:"EmailCodeVerification",props:{email:{},brand:{default:"contentplate"},loading:{type:Boolean,default:!1},error:{default:""},resendCooldown:{default:0}},emits:["verify","resend"],setup(v,{emit:m}){const l=v,{brand:i,loading:r,error:u,resendCooldown:d}=l,c=m,p=e.ref(["","","",""]),_=e.ref([]),h=e.computed(()=>p.value.every(f=>f!=="")),I=e.computed(()=>p.value.join("")),C=(f,g)=>{const y=g.target,a=y.value;if(!/^\d*$/.test(a)){y.value="";return}p.value[f]=a,a&&f<3&&e.nextTick(()=>{var n;(n=_.value[f+1])==null||n.focus()})},w=(f,g)=>{g.key==="Backspace"&&!p.value[f]&&f>0&&e.nextTick(()=>{var y;(y=_.value[f-1])==null||y.focus()})},s=f=>{var B;f.preventDefault();const g=(B=f.clipboardData)==null?void 0:B.getData("text");if(!g)return;const y=g.replace(/\D/g,"").slice(0,4).split("");p.value=[...y,"","","",""].slice(0,4);const a=p.value.findIndex(S=>S===""),n=a===-1?3:a;e.nextTick(()=>{var S;(S=_.value[n])==null||S.focus()})},P=()=>{h.value&&c("verify",I.value)},b=()=>{c("resend")};return e.onMounted(()=>{e.nextTick(()=>{var f;(f=_.value[0])==null||f.focus()})}),(f,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["email-verification",`email-verification--${e.unref(i)}`])},[e.createElementVNode("div",Qe,[e.createElementVNode("div",Je,[g[1]||(g[1]=e.createElementVNode("h2",{class:"verification-title"},"Verify Your Email",-1)),e.createElementVNode("p",Xe,[g[0]||(g[0]=e.createTextVNode(" We've sent a 4-digit verification code to ",-1)),e.createElementVNode("strong",null,e.toDisplayString(f.email),1)])]),e.createElementVNode("form",{onSubmit:e.withModifiers(P,["prevent"]),class:"verification-form"},[e.createElementVNode("div",Ye,[e.createElementVNode("div",eo,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,(y,a)=>e.withDirectives(e.createElementVNode("input",{key:a,ref_for:!0,ref:n=>_.value[a]=n,"onUpdate:modelValue":n=>p.value[a]=n,type:"text",maxlength:"1",class:e.normalizeClass(["code-input",`code-input--${e.unref(i)}`]),onInput:n=>C(a,n),onKeydown:n=>w(a,n),onPaste:s,disabled:e.unref(r),autocomplete:"one-time-code"},null,42,oo),[[e.vModelText,p.value[a]]])),64))])]),e.createElementVNode("div",no,[e.createVNode($,{type:"submit",label:e.unref(r)?"Verifying...":"Verify Code",hierarchy:"primary",size:"lg",loading:e.unref(r),disabled:!h.value||e.unref(r),class:e.normalizeClass(`verify-button verify-button--${e.unref(i)}`)},null,8,["label","loading","disabled","class"])]),e.unref(u)?(e.openBlock(),e.createElementBlock("div",to,e.toDisplayString(e.unref(u)),1)):e.createCommentVNode("",!0),e.createElementVNode("div",lo,[e.createElementVNode("p",io,[g[2]||(g[2]=e.createTextVNode(" Didn't receive the code? ",-1)),e.createElementVNode("button",{type:"button",class:"resend-button",disabled:e.unref(d)>0,onClick:b},e.toDisplayString(e.unref(d)>0?`Resend in ${e.unref(d)}s`:"Resend code"),9,ro)])])],32)])],2))}}),co={class:"freddy-plugins-input-field-wrapper"},ao=["for"],uo={key:0,class:"freddy-plugins-required-asterisk"},_o=e.defineComponent({__name:"BaseInput",props:{size:{default:"md"},colorStyle:{default:"freddy"},state:{default:"placeholder"},destructive:{type:Boolean,default:!1},required:{type:Boolean,default:!1},label:{default:""},hintText:{default:""},disabled:{type:Boolean,default:!1}},emits:["focus","blur"],setup(v,{expose:m,emit:l}){const i=v,r=l,u=e.computed(()=>`input-${Math.random().toString(36).substr(2,9)}`),d=e.computed(()=>({[`freddy-plugins-input-field-container--${i.size}`]:!0,[`freddy-plugins-input-field-container--${i.colorStyle}`]:!0,"freddy-plugins-input-field-container--destructive":i.destructive||i.state==="error","freddy-plugins-input-field-container--focused":i.state==="focused","freddy-plugins-input-field-container--disabled":i.state==="disabled","freddy-plugins-input-field-container--loading":i.state==="loading","freddy-plugins-input-field-container--success":i.state==="success"})),c=()=>{i.state!=="disabled"&&r("focus",new FocusEvent("focus"))};return m({inputId:u,containerClasses:d,focusInput:c}),(p,_)=>(e.openBlock(),e.createElementBlock("div",co,[p.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:u.value,class:e.normalizeClass(["freddy-plugins-input-field-label",`freddy-plugins-input-field-label--${p.colorStyle}`])},[e.createTextVNode(e.toDisplayString(p.label)+" ",1),p.required?(e.openBlock(),e.createElementBlock("span",uo,"*")):e.createCommentVNode("",!0)],10,ao)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-input-field-container",d.value]),onClick:c},[e.renderSlot(p.$slots,"default",{},void 0,!0)],2),p.hintText?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(["freddy-plugins-input-hint-text",`freddy-plugins-input-hint-text--${p.colorStyle}`])},e.toDisplayString(p.hintText),3)):e.createCommentVNode("",!0)]))}}),N=o._export_sfc(_o,[["__scopeId","data-v-bb114a19"]]),R=(v,m,l)=>{const i=v[m];return i?typeof i=="function"?i():Promise.resolve(i):new Promise((r,u)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(u.bind(null,new Error("Unknown variable dynamic import: "+m+(m.split("/").length!==l?". Note that variables only represent file names one level deep.":""))))})},vo=["src","alt"],po=["id","placeholder","disabled","readonly","maxlength"],mo=e.defineComponent({__name:"CardInput",props:{cardNumber:{default:""},cardType:{default:"unknown"},maskInput:{type:Boolean,default:!0},showCardIcon:{type:Boolean,default:!0},placeholder:{default:"1234 5678 9012 3456"},trailingIcon:{},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},size:{default:"md"},colorStyle:{default:"freddy"},state:{default:"placeholder"},destructive:{type:Boolean,default:!1},variant:{},type:{},label:{default:""},hintText:{default:""},required:{type:Boolean,default:!1},value:{},modelValue:{},inputType:{},leadingIcon:{},tooltipText:{},iconLeading:{type:Boolean},helpIcon:{type:Boolean},helpText:{},leadingDropdownText:{},trailingDropdownText:{},leadingText:{},trailingButtonText:{},countryCode:{},countryOptions:{},phoneNumber:{},currency:{},currencyOptions:{},amount:{},showCurrencySymbol:{type:Boolean},protocol:{},allowProtocolChange:{type:Boolean},url:{},tags:{},maxTags:{},allowDuplicates:{type:Boolean},tagSeparators:{},suggestions:{},copyText:{},showCopyButton:{type:Boolean},copySuccessMessage:{}},emits:["update:cardNumber","card-type-detected","update:modelValue","input","focus","blur","trailing-icon-click","keydown","leading-icon-click","trailing-button-click","update:countryCode","update:phoneNumber","country-change","update:currency","update:amount","currency-change","update:protocol","update:url","protocol-change","update:tags","tag-added","tag-removed","max-tags-reached","copy-success","copy-error"],setup(v,{expose:m,emit:l}){const i=v,r=l,u=e.ref(null),d=e.ref(null),c=e.ref(""),p=e.ref(""),_=e.ref("unknown"),h=e.computed(()=>({size:i.size,colorStyle:i.colorStyle,state:i.state,destructive:i.destructive,required:i.required,label:i.label,hintText:i.hintText,disabled:i.disabled})),I=k=>k?typeof k=="object"?k:typeof k=="string"?e.defineAsyncComponent(()=>R(Object.assign({"../../icons/IconAddFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_0),"../../icons/IconAddPeople.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_1),"../../icons/IconAitronos.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_2),"../../icons/IconApple.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_3),"../../icons/IconApplePay.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_4),"../../icons/IconArrowDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_5),"../../icons/IconArrowLeft.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_6),"../../icons/IconArrowUp.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_7),"../../icons/IconBadgeCheck.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_8),"../../icons/IconBroom.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_9),"../../icons/IconBuildings.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_10),"../../icons/IconCalendarWithTickInside.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_11),"../../icons/IconCallNotAllowed.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_12),"../../icons/IconCardPay.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_13),"../../icons/IconCaution.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_14),"../../icons/IconChangeLog.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_15),"../../icons/IconCheckCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_16),"../../icons/IconCheckInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_17),"../../icons/IconCheckRounded.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_18),"../../icons/IconChevronDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_19),"../../icons/IconChevronLeft.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_20),"../../icons/IconChevronRight.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_21),"../../icons/IconChevronUp.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_22),"../../icons/IconCircledCheck.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_23),"../../icons/IconClock.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_24),"../../icons/IconClosedEnvelope.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_25),"../../icons/IconCloudUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_26),"../../icons/IconConnectorConfluence.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_27),"../../icons/IconConnectorFigma.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_28),"../../icons/IconConnectorFreshDesk.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_29),"../../icons/IconConnectorGitHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_30),"../../icons/IconConnectorJira.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_31),"../../icons/IconConnectorLinear.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_32),"../../icons/IconConnectorNotion.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_33),"../../icons/IconConnectorSlack.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_34),"../../icons/IconConnectorZapier.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_35),"../../icons/IconCopy.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_36),"../../icons/IconCross.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_37),"../../icons/IconCrossCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_38),"../../icons/IconCrossInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_39),"../../icons/IconCurrentTick.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_40),"../../icons/IconDataUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_41),"../../icons/IconDelete.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_42),"../../icons/IconDeleteFillRed.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_43),"../../icons/IconDialingPhone.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_44),"../../icons/IconDisabledAlert.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_45),"../../icons/IconDocumentation.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_46),"../../icons/IconDownload.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_47),"../../icons/IconDribbble.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_48),"../../icons/IconDropdownArrow.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_49),"../../icons/IconEdit.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_50),"../../icons/IconEditLinePath.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_51),"../../icons/IconEllipse.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_52),"../../icons/IconExcelThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_53),"../../icons/IconEye.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_54),"../../icons/IconFacebook.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_55),"../../icons/IconFigma.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_56),"../../icons/IconFile.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_57),"../../icons/IconFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_58),"../../icons/IconFileUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_59),"../../icons/IconFilter.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_60),"../../icons/IconFolder.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_61),"../../icons/IconFreddyHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_62),"../../icons/IconFreddyHubLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_63),"../../icons/IconFreddyHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_64),"../../icons/IconFreddyHubTitle.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_65),"../../icons/IconFreddySmall.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_66),"../../icons/IconGlobExpand.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_67),"../../icons/IconGlobe.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_68),"../../icons/IconGoogle.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_69),"../../icons/IconHollowCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_70),"../../icons/IconHome.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_71),"../../icons/IconInfoRounded.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_72),"../../icons/IconInvalidInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_73),"../../icons/IconInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_74),"../../icons/IconInvoiceSwitch.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_75),"../../icons/IconLapTableBottom.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_76),"../../icons/IconLense.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_77),"../../icons/IconLightCross.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_78),"../../icons/IconLink04.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_79),"../../icons/IconLoadingError.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_80),"../../icons/IconLoadingOrg.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_81),"../../icons/IconLocationWithCircleIn.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_82),"../../icons/IconLock.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_83),"../../icons/IconMarketPlace.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_84),"../../icons/IconMaximize.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_85),"../../icons/IconMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_86),"../../icons/IconMutedMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_87),"../../icons/IconNewNotification.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_88),"../../icons/IconNewTab.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_89),"../../icons/IconNotification.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_90),"../../icons/IconOpenBook.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_91),"../../icons/IconPaperAirPlane.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_92),"../../icons/IconPauseCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_93),"../../icons/IconPdfThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_94),"../../icons/IconPenEdit.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_95),"../../icons/IconPencil.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_96),"../../icons/IconPeopleHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_97),"../../icons/IconPersonCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_98),"../../icons/IconPits.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_99),"../../icons/IconPlay.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_100),"../../icons/IconPlus.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_101),"../../icons/IconPolygonDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_102),"../../icons/IconPresentation.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_103),"../../icons/IconProgressBase.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_104),"../../icons/IconProgressComplete.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_105),"../../icons/IconProgressGoing.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_106),"../../icons/IconPurpose.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_107),"../../icons/IconPurseCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_108),"../../icons/IconQuestion.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_109),"../../icons/IconRadio.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_110),"../../icons/IconRadioFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_111),"../../icons/IconRefresh.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_112),"../../icons/IconRevertedTraingle.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_113),"../../icons/IconRobotScreen.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_114),"../../icons/IconRoundTick.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_115),"../../icons/IconSearch.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_116),"../../icons/IconSearchOptimised.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_117),"../../icons/IconSectionHide.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_118),"../../icons/IconSend.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_119),"../../icons/IconSettings.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_120),"../../icons/IconSettingsBold.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_121),"../../icons/IconSize.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_122),"../../icons/IconSliderKnobs.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_123),"../../icons/IconSortIdle.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_124),"../../icons/IconSparkle.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_125),"../../icons/IconSpotlio.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_126),"../../icons/IconStar.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_127),"../../icons/IconStatistics.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_128),"../../icons/IconStopChat.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_129),"../../icons/IconStreamLineHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_130),"../../icons/IconStreamLineHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_131),"../../icons/IconSun.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_132),"../../icons/IconSwap.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_133),"../../icons/IconText.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_134),"../../icons/IconTextThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_135),"../../icons/IconThinDocument.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_136),"../../icons/IconThinFile.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_137),"../../icons/IconThumbsDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_138),"../../icons/IconTick.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_139),"../../icons/IconUser.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_140),"../../icons/IconVerticalDots.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_141),"../../icons/IconVideoCamera.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_142),"../../icons/IconWarningOctal.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_143),"../../icons/IconX.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_144),"../../icons/IconZip.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(t=>t.__vite_glob_0_145)}),`../../icons/${k}.vue`,4).catch(()=>({template:"<div></div>"}))):null:null,C=e.computed(()=>I(i.trailingIcon)),w=e.computed(()=>{switch(_.value){case"amex":return 17;default:return 19}}),s=e.computed(()=>({[`freddy-plugins-input-field--${i.size}`]:!0,[`freddy-plugins-input-field--${i.colorStyle}`]:!0,"freddy-plugins-input-field--destructive":i.destructive,"freddy-plugins-input-field--focused":i.state==="focused","freddy-plugins-input-field--disabled":i.state==="disabled","freddy-plugins-input-field--with-leading":i.showCardIcon&&_.value!=="unknown","freddy-plugins-input-field--with-trailing":!!C.value})),P=k=>{const t=k.replace(/\D/g,"");return/^4/.test(t)?"visa":/^5[1-5]/.test(t)||/^2[2-7]/.test(t)?"mastercard":/^3[47]/.test(t)?"amex":/^6/.test(t)?"discover":"unknown"},b=k=>{const t=k.replace(/\D/g,"");return P(t)==="amex"?t.replace(/(\d{4})(\d{6})(\d{5})/,"$1 $2 $3").replace(/(\d{4})(\d{1,6})/,"$1 $2").substring(0,17):t.replace(/(\d{4})(\d{4})(\d{4})(\d{4})/,"$1 $2 $3 $4").replace(/(\d{4})(\d{4})(\d{4})/,"$1 $2 $3").replace(/(\d{4})(\d{4})/,"$1 $2").replace(/(\d{4})/,"$1").substring(0,19)},f=k=>{const t={visa:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCA0MCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iIzAwNTFBNSIvPgo8cGF0aCBkPSJNMTYuNzUgN0wxNC4yNSAxN0gxMS43NUwxMy41IDEwLjVMMTIuMjUgOC41SDEwLjc1TDEyLjc1IDdIMTYuNzVaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMjkuMjUgN0wyNi43NSAxN0gyNC4yNUwyNi43NSA3SDI5LjI1WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+",mastercard:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCA0MCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iI0VCMDAxQiIvPgo8Y2lyY2xlIGN4PSIxNSIgY3k9IjEyIiByPSI3IiBmaWxsPSIjRkY1RjAwIi8+CjxjaXJjbGUgY3g9IjI1IiBjeT0iMTIiIHI9IjciIGZpbGw9IiNGRkY1RjAiLz4KPC9zdmc+",amex:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCA0MCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iIzAwNkZDRiIvPgo8cGF0aCBkPSJNMTAgOEgxNEwxNiAxMkwxOCA4SDIyTDE4IDE2SDE0TDEyIDEyTDEwIDE2SDZMMTAgOFoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0yNCA4SDMwVjEwSDI2VjEySDI5VjE0SDI2VjE2SDMwVjE4SDI0VjhaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4=",discover:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCA0MCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iI0ZGNjAwMCIvPgo8cGF0aCBkPSJNOCA4SDE2VjE2SDhWOFoiIGZpbGw9IndoaXRlIi8+CjxjaXJjbGUgY3g9IjI4IiBjeT0iMTIiIHI9IjYiIGZpbGw9IndoaXRlIi8+CjwvdXZnPg==",unknown:""};return t[k]||t.unknown},g=k=>{const T=k.target.value;c.value=T.replace(/\D/g,""),p.value=b(T);const E=P(c.value);E!==_.value&&(_.value=E,r("card-type-detected",E)),r("update:modelValue",p.value),r("update:cardNumber",c.value),r("input",p.value)},y=k=>{[8,9,27,13,46].indexOf(k.keyCode)!==-1||k.keyCode===65&&k.ctrlKey===!0||k.keyCode===67&&k.ctrlKey===!0||k.keyCode===86&&k.ctrlKey===!0||k.keyCode===88&&k.ctrlKey===!0||k.keyCode>=35&&k.keyCode<=39||(k.shiftKey||k.keyCode<48||k.keyCode>57)&&(k.keyCode<96||k.keyCode>105)&&k.preventDefault()},a=k=>{r("focus",k)},n=k=>{r("blur",k)},B=k=>{r("trailing-icon-click",k)},S=()=>{var k;(k=u.value)==null||k.focus()};return e.watch(()=>i.cardNumber,k=>{k!==c.value&&(c.value=k,p.value=b(k),_.value=P(k))},{immediate:!0}),m({focus:S,inputRef:u}),(k,t)=>(e.openBlock(),e.createBlock(N,e.mergeProps(h.value,{onFocus:a,onBlur:n}),{default:e.withCtx(()=>{var T;return[k.showCardIcon&&_.value!=="unknown"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["freddy-plugins-card-type-icon",`freddy-plugins-card-type-icon--${k.colorStyle}`])},[e.createElementVNode("img",{src:f(_.value),alt:`${_.value} card`,class:"freddy-plugins-card-icon-image"},null,8,vo)],2)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:(T=d.value)==null?void 0:T.inputId,ref_key:"inputRef",ref:u,"onUpdate:modelValue":t[0]||(t[0]=E=>p.value=E),type:"text",inputmode:"numeric",placeholder:k.placeholder,disabled:k.disabled,readonly:k.readonly,maxlength:w.value,class:e.normalizeClass(["freddy-plugins-input-field freddy-plugins-card-input-field",s.value]),onInput:g,onKeydown:y,onFocus:a,onBlur:n},null,42,po),[[e.vModelText,p.value]]),C.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C.value),{key:1,class:e.normalizeClass(["freddy-plugins-input-trailing-icon",`freddy-plugins-input-trailing-icon--${k.colorStyle}`]),onClick:B},null,8,["class"])):e.createCommentVNode("",!0)]}),_:1},16))}}),j=o._export_sfc(mo,[["__scopeId","data-v-3a6797a1"]]),ho=["id","type","placeholder","disabled","readonly"],fo=e.defineComponent({__name:"DefaultInput",props:{placeholder:{default:""},inputType:{default:"text"},modelValue:{default:""},readonly:{type:Boolean,default:!1},leadingIcon:{},trailingIcon:{},tooltipText:{},size:{default:"md"},colorStyle:{default:"freddy"},state:{default:"placeholder"},destructive:{type:Boolean,default:!1},required:{type:Boolean,default:!1},label:{default:""},hintText:{default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","input","focus","blur","keydown","leading-icon-click","trailing-icon-click"],setup(v,{expose:m,emit:l}){const i=v,r=l,u=e.ref(null),d=e.ref(null),c=e.ref(i.modelValue||""),p=e.computed(()=>({size:i.size,colorStyle:i.colorStyle,state:i.state,destructive:i.destructive,required:i.required,label:i.label,hintText:i.hintText,disabled:i.disabled})),_=a=>a?typeof a=="object"?a:typeof a=="string"?e.defineAsyncComponent(()=>R(Object.assign({"../../icons/IconAddFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_0),"../../icons/IconAddPeople.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_1),"../../icons/IconAitronos.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_2),"../../icons/IconApple.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_3),"../../icons/IconApplePay.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_4),"../../icons/IconArrowDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_5),"../../icons/IconArrowLeft.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_6),"../../icons/IconArrowUp.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_7),"../../icons/IconBadgeCheck.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_8),"../../icons/IconBroom.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_9),"../../icons/IconBuildings.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_10),"../../icons/IconCalendarWithTickInside.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_11),"../../icons/IconCallNotAllowed.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_12),"../../icons/IconCardPay.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_13),"../../icons/IconCaution.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_14),"../../icons/IconChangeLog.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_15),"../../icons/IconCheckCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_16),"../../icons/IconCheckInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_17),"../../icons/IconCheckRounded.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_18),"../../icons/IconChevronDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_19),"../../icons/IconChevronLeft.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_20),"../../icons/IconChevronRight.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_21),"../../icons/IconChevronUp.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_22),"../../icons/IconCircledCheck.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_23),"../../icons/IconClock.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_24),"../../icons/IconClosedEnvelope.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_25),"../../icons/IconCloudUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_26),"../../icons/IconConnectorConfluence.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_27),"../../icons/IconConnectorFigma.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_28),"../../icons/IconConnectorFreshDesk.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_29),"../../icons/IconConnectorGitHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_30),"../../icons/IconConnectorJira.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_31),"../../icons/IconConnectorLinear.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_32),"../../icons/IconConnectorNotion.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_33),"../../icons/IconConnectorSlack.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_34),"../../icons/IconConnectorZapier.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_35),"../../icons/IconCopy.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_36),"../../icons/IconCross.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_37),"../../icons/IconCrossCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_38),"../../icons/IconCrossInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_39),"../../icons/IconCurrentTick.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_40),"../../icons/IconDataUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_41),"../../icons/IconDelete.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_42),"../../icons/IconDeleteFillRed.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_43),"../../icons/IconDialingPhone.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_44),"../../icons/IconDisabledAlert.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_45),"../../icons/IconDocumentation.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_46),"../../icons/IconDownload.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_47),"../../icons/IconDribbble.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_48),"../../icons/IconDropdownArrow.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_49),"../../icons/IconEdit.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_50),"../../icons/IconEditLinePath.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_51),"../../icons/IconEllipse.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_52),"../../icons/IconExcelThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_53),"../../icons/IconEye.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_54),"../../icons/IconFacebook.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_55),"../../icons/IconFigma.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_56),"../../icons/IconFile.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_57),"../../icons/IconFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_58),"../../icons/IconFileUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_59),"../../icons/IconFilter.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_60),"../../icons/IconFolder.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_61),"../../icons/IconFreddyHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_62),"../../icons/IconFreddyHubLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_63),"../../icons/IconFreddyHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_64),"../../icons/IconFreddyHubTitle.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_65),"../../icons/IconFreddySmall.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_66),"../../icons/IconGlobExpand.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_67),"../../icons/IconGlobe.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_68),"../../icons/IconGoogle.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_69),"../../icons/IconHollowCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_70),"../../icons/IconHome.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_71),"../../icons/IconInfoRounded.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_72),"../../icons/IconInvalidInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_73),"../../icons/IconInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_74),"../../icons/IconInvoiceSwitch.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_75),"../../icons/IconLapTableBottom.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_76),"../../icons/IconLense.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_77),"../../icons/IconLightCross.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_78),"../../icons/IconLink04.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_79),"../../icons/IconLoadingError.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_80),"../../icons/IconLoadingOrg.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_81),"../../icons/IconLocationWithCircleIn.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_82),"../../icons/IconLock.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_83),"../../icons/IconMarketPlace.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_84),"../../icons/IconMaximize.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_85),"../../icons/IconMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_86),"../../icons/IconMutedMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_87),"../../icons/IconNewNotification.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_88),"../../icons/IconNewTab.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_89),"../../icons/IconNotification.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_90),"../../icons/IconOpenBook.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_91),"../../icons/IconPaperAirPlane.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_92),"../../icons/IconPauseCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_93),"../../icons/IconPdfThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_94),"../../icons/IconPenEdit.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_95),"../../icons/IconPencil.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_96),"../../icons/IconPeopleHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_97),"../../icons/IconPersonCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_98),"../../icons/IconPits.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_99),"../../icons/IconPlay.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_100),"../../icons/IconPlus.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_101),"../../icons/IconPolygonDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_102),"../../icons/IconPresentation.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_103),"../../icons/IconProgressBase.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_104),"../../icons/IconProgressComplete.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_105),"../../icons/IconProgressGoing.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_106),"../../icons/IconPurpose.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_107),"../../icons/IconPurseCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_108),"../../icons/IconQuestion.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_109),"../../icons/IconRadio.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_110),"../../icons/IconRadioFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_111),"../../icons/IconRefresh.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_112),"../../icons/IconRevertedTraingle.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_113),"../../icons/IconRobotScreen.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_114),"../../icons/IconRoundTick.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_115),"../../icons/IconSearch.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_116),"../../icons/IconSearchOptimised.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_117),"../../icons/IconSectionHide.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_118),"../../icons/IconSend.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_119),"../../icons/IconSettings.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_120),"../../icons/IconSettingsBold.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_121),"../../icons/IconSize.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_122),"../../icons/IconSliderKnobs.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_123),"../../icons/IconSortIdle.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_124),"../../icons/IconSparkle.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_125),"../../icons/IconSpotlio.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_126),"../../icons/IconStar.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_127),"../../icons/IconStatistics.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_128),"../../icons/IconStopChat.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_129),"../../icons/IconStreamLineHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_130),"../../icons/IconStreamLineHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_131),"../../icons/IconSun.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_132),"../../icons/IconSwap.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_133),"../../icons/IconText.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_134),"../../icons/IconTextThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_135),"../../icons/IconThinDocument.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_136),"../../icons/IconThinFile.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_137),"../../icons/IconThumbsDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_138),"../../icons/IconTick.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_139),"../../icons/IconUser.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_140),"../../icons/IconVerticalDots.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_141),"../../icons/IconVideoCamera.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_142),"../../icons/IconWarningOctal.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_143),"../../icons/IconX.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_144),"../../icons/IconZip.vue":()=>Promise.resolve().then(()=>require("./icons-DQqi52kz.cjs")).then(n=>n.__vite_glob_0_145)}),`../../icons/${a}.vue`,4).catch(()=>({template:"<div></div>"}))):null:null,h=e.computed(()=>_(i.leadingIcon)),I=e.computed(()=>_(i.trailingIcon)),C=e.computed(()=>({[`freddy-plugins-input-field--${i.size}`]:!0,[`freddy-plugins-input-field--${i.colorStyle}`]:!0,"freddy-plugins-input-field--destructive":i.destructive,"freddy-plugins-input-field--focused":i.state==="focused","freddy-plugins-input-field--disabled":i.state==="disabled","freddy-plugins-input-field--with-leading":!!h.value,"freddy-plugins-input-field--with-trailing":!!I.value})),w=a=>{const n=a.target;c.value=n.value,r("update:modelValue",n.value),r("input",n.value)},s=a=>{r("focus",a)},P=a=>{r("blur",a)},b=a=>{r("keydown",a)},f=a=>{r("leading-icon-click",a)},g=a=>{r("trailing-icon-click",a)},y=()=>{var a;(a=u.value)==null||a.focus()};return e.watch(()=>i.modelValue,a=>{a!==void 0&&(c.value=a)}),m({focus:y,inputRef:u}),(a,n)=>(e.openBlock(),e.createBlock(N,e.mergeProps(p.value,{onFocus:s,onBlur:P}),{default:e.withCtx(()=>{var B;return[h.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h.value),{key:0,class:e.normalizeClass(["freddy-plugins-input-leading-icon",`freddy-plugins-input-leading-icon--${a.colorStyle}`]),onClick:f},null,8,["class"])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:(B=d.value)==null?void 0:B.inputId,ref_key:"inputRef",ref:u,"onUpdate:modelValue":n[0]||(n[0]=S=>c.value=S),type:a.inputType,placeholder:a.placeholder,disabled:a.disabled,readonly:a.readonly,class:e.normalizeClass(["freddy-plugins-input-field",C.value]),onInput:w,onFocus:s,onBlur:P,onKeydown:b},null,42,ho),[[e.vModelDynamic,c.value]]),a.trailingIcon==="IconQuestion"&&a.tooltipText?(e.openBlock(),e.createBlock(q,{key:1,text:a.tooltipText,placement:"top"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(I.value),{class:e.normalizeClass(["freddy-plugins-input-trailing-icon",`freddy-plugins-input-trailing-icon--${a.colorStyle}`])},null,8,["class"]))]),_:1},8,["text"])):I.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(I.value),{key:2,class:e.normalizeClass(["freddy-plugins-input-trailing-icon",`freddy-plugins-input-trailing-icon--${a.colorStyle}`]),onClick:g},null,8,["class"])):e.createCommentVNode("",!0)]}),_:1},16))}}),H=o._export_sfc(fo,[["__scopeId","data-v-e865b202"]]),go={class:"freddy-plugins-figma-dropdown-text"},bo=["onClick"],Io={class:"freddy-plugins-country-flag"},yo={class:"freddy-plugins-country-name"},ko={class:"freddy-plugins-country-dial-code"},Co=["id","placeholder","disabled","readonly"],Po={key:0,class:"freddy-plugins-figma-help-icon"},wo=e.defineComponent({__name:"PhoneInput",props:{countryCode:{default:"US"},countryOptions:{},phoneNumber:{default:""},placeholder:{default:"Enter phone number"},trailingIcon:{},tooltipText:{},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},size:{default:"md"},colorStyle:{default:"freddy"},state:{default:"placeholder"},destructive:{type:Boolean,default:!1},variant:{},type:{},label:{default:""},hintText:{default:""},required:{type:Boolean,default:!1},value:{},modelValue:{},inputType:{},leadingIcon:{},iconLeading:{type:Boolean},helpIcon:{type:Boolean},helpText:{},leadingDropdownText:{},trailingDropdownText:{},leadingText:{},trailingButtonText:{},currency:{},currencyOptions:{},amount:{},showCurrencySymbol:{type:Boolean},protocol:{},allowProtocolChange:{type:Boolean},url:{},cardNumber:{},cardType:{},maskInput:{type:Boolean},showCardIcon:{type:Boolean},tags:{},maxTags:{},allowDuplicates:{type:Boolean},tagSeparators:{},suggestions:{},copyText:{},showCopyButton:{type:Boolean},copySuccessMessage:{}},emits:["update:countryCode","update:phoneNumber","country-change","update:modelValue","input","focus","blur","keydown","leading-icon-click","trailing-icon-click","trailing-button-click","update:currency","update:amount","currency-change","update:protocol","update:url","protocol-change","update:cardNumber","card-type-detected","update:tags","tag-added","tag-removed","max-tags-reached","copy-success","copy-error"],setup(v,{expose:m,emit:l}){const i=v,r=l,u=e.ref(null),d=e.ref(null),c=e.ref(i.phoneNumber||""),p=e.ref(!1),_=e.ref(i.countryCode||"US"),h=[{code:"US",name:"United States",flag:"🇺🇸",dialCode:"+1"},{code:"GB",name:"United Kingdom",flag:"🇬🇧",dialCode:"+44"},{code:"CA",name:"Canada",flag:"🇨🇦",dialCode:"+1"},{code:"AU",name:"Australia",flag:"🇦🇺",dialCode:"+61"},{code:"DE",name:"Germany",flag:"🇩🇪",dialCode:"+49"},{code:"FR",name:"France",flag:"🇫🇷",dialCode:"+33"},{code:"IT",name:"Italy",flag:"🇮🇹",dialCode:"+39"},{code:"ES",name:"Spain",flag:"🇪🇸",dialCode:"+34"},{code:"JP",name:"Japan",flag:"🇯🇵",dialCode:"+81"},{code:"IN",name:"India",flag:"🇮🇳",dialCode:"+91"}],I=e.computed(()=>({size:i.size,colorStyle:i.colorStyle,state:i.state,destructive:i.destructive,required:i.required,label:i.label,hintText:i.hintText,disabled:i.disabled})),C=e.computed(()=>i.countryOptions||h),w=e.computed(()=>C.value.find(n=>n.code===_.value)||C.value[0]),s=()=>{i.disabled||(p.value=!p.value)},P=n=>{_.value=n.code,r("update:countryCode",n.code),r("country-change",n);const B=c.value.replace(/^\+\d+\s*/,""),S=`${n.dialCode} ${B}`.trim();c.value=S,r("update:phoneNumber",S),r("update:modelValue",S),p.value=!1},b=n=>{const B=n.target;c.value=B.value;const S=`${w.value.dialCode} ${B.value}`;r("update:modelValue",S),r("update:phoneNumber",B.value),r("input",S)},f=n=>{r("focus",n)},g=n=>{r("blur",n)},y=()=>{var n;(n=u.value)==null||n.focus()},a=n=>{n.target.closest(".freddy-plugins-input-field-container")||(p.value=!1)};return e.watch(()=>i.countryCode,n=>{n&&n!==_.value&&(_.value=n)},{immediate:!0}),e.watch(()=>i.phoneNumber,n=>{n!==void 0&&(c.value=n)}),e.onMounted(()=>{document.addEventListener("click",a)}),e.onUnmounted(()=>{document.removeEventListener("click",a)}),m({focus:y,inputRef:u}),(n,B)=>(e.openBlock(),e.createBlock(N,e.mergeProps(I.value,{onFocus:f,onBlur:g}),{default:e.withCtx(()=>{var S;return[e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-figma-dropdown",`freddy-plugins-figma-dropdown--${n.colorStyle}`]),onClick:s},[e.createElementVNode("span",go,e.toDisplayString(w.value.code),1),e.createVNode(e.unref(o.IconChevronDown),{class:"freddy-plugins-figma-dropdown-icon"})],2),p.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["freddy-plugins-country-options-dropdown",`freddy-plugins-country-options-dropdown--${n.colorStyle}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,k=>(e.openBlock(),e.createElementBlock("div",{key:k.code,class:e.normalizeClass(["freddy-plugins-country-option",`freddy-plugins-country-option--${n.colorStyle}`]),onClick:t=>P(k)},[e.createElementVNode("span",Io,e.toDisplayString(k.flag),1),e.createElementVNode("span",yo,e.toDisplayString(k.name),1),e.createElementVNode("span",ko,e.toDisplayString(k.dialCode),1)],10,bo))),128))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-figma-text-input",`freddy-plugins-figma-text-input--${n.colorStyle}`])},[e.withDirectives(e.createElementVNode("input",{id:(S=d.value)==null?void 0:S.inputId,ref_key:"inputRef",ref:u,"onUpdate:modelValue":B[0]||(B[0]=k=>c.value=k),type:"tel",placeholder:n.placeholder,disabled:n.disabled,readonly:n.readonly,class:"freddy-plugins-figma-phone-input",onInput:b,onFocus:f,onBlur:g},null,40,Co),[[e.vModelText,c.value]]),n.trailingIcon==="IconQuestion"?(e.openBlock(),e.createElementBlock("div",Po,[n.tooltipText?(e.openBlock(),e.createBlock(q,{key:0,text:n.tooltipText,placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.IconQuestion),{class:"freddy-plugins-figma-help-icon-svg"})]),_:1},8,["text"])):(e.openBlock(),e.createBlock(e.unref(o.IconQuestion),{key:1,class:"freddy-plugins-figma-help-icon-svg"}))])):e.createCommentVNode("",!0)],2)]}),_:1},16))}}),O=o._export_sfc(wo,[["__scopeId","data-v-20d005c2"]]),Bo=e.defineComponent({__name:"InputField",props:{size:{default:"md"},colorStyle:{default:"freddy"},state:{default:"placeholder"},destructive:{type:Boolean,default:!1},variant:{default:"default"},type:{default:"default"},label:{default:""},hintText:{default:""},required:{type:Boolean,default:!1},placeholder:{default:""},value:{},modelValue:{default:""},inputType:{default:"text"},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},leadingIcon:{},trailingIcon:{},tooltipText:{},iconLeading:{type:Boolean},helpIcon:{type:Boolean},helpText:{},leadingDropdownText:{},trailingDropdownText:{},leadingText:{},trailingButtonText:{},countryCode:{default:"US"},countryOptions:{},phoneNumber:{default:""},currency:{},currencyOptions:{},amount:{},showCurrencySymbol:{type:Boolean},protocol:{},allowProtocolChange:{type:Boolean},url:{},cardNumber:{},cardType:{},maskInput:{type:Boolean},showCardIcon:{type:Boolean},tags:{},maxTags:{},allowDuplicates:{type:Boolean},tagSeparators:{},suggestions:{},copyText:{},showCopyButton:{type:Boolean},copySuccessMessage:{}},emits:["update:modelValue","input","focus","blur","keydown","leading-icon-click","trailing-icon-click","trailing-button-click","update:countryCode","update:phoneNumber","country-change","update:currency","update:amount","currency-change","update:protocol","update:url","protocol-change","update:cardNumber","card-type-detected","update:tags","tag-added","tag-removed","max-tags-reached","copy-success","copy-error"],setup(v,{emit:m}){const l=v,i=m,r=e.computed(()=>l.variant||l.type||"default"),u=e.computed(()=>({size:l.size,colorStyle:l.colorStyle,state:l.state,destructive:l.destructive,required:l.required,label:l.label,hintText:l.hintText,placeholder:l.placeholder,countryCode:l.countryCode,phoneNumber:l.phoneNumber,countryOptions:l.countryOptions,trailingIcon:l.trailingIcon,tooltipText:l.tooltipText,disabled:l.disabled,readonly:l.readonly})),d=e.computed(()=>({size:l.size,colorStyle:l.colorStyle,state:l.state,destructive:l.destructive,required:l.required,label:l.label,hintText:l.hintText,placeholder:l.placeholder,cardNumber:l.cardNumber,cardType:l.cardType,maskInput:l.maskInput,showCardIcon:l.showCardIcon,trailingIcon:l.trailingIcon,disabled:l.disabled,readonly:l.readonly})),c=e.computed(()=>({size:l.size,colorStyle:l.colorStyle,state:l.state,destructive:l.destructive,required:l.required,label:l.label,hintText:l.hintText,placeholder:l.placeholder,inputType:l.inputType,modelValue:l.modelValue,leadingIcon:l.leadingIcon,trailingIcon:l.trailingIcon,tooltipText:l.tooltipText,disabled:l.disabled,readonly:l.readonly})),p=a=>{i("update:modelValue",a)},_=a=>{i("input",a)},h=a=>{i("focus",a)},I=a=>{i("blur",a)},C=a=>{i("keydown",a)},w=a=>{i("leading-icon-click",a)},s=a=>{i("trailing-icon-click",a)},P=a=>{i("update:countryCode",a)},b=a=>{i("update:phoneNumber",a)},f=a=>{i("country-change",a)},g=a=>{i("update:cardNumber",a)},y=a=>{i("card-type-detected",a)};return(a,n)=>r.value==="phone"?(e.openBlock(),e.createBlock(O,e.mergeProps({key:0},u.value,{"onUpdate:modelValue":p,"onUpdate:countryCode":P,"onUpdate:phoneNumber":b,onCountryChange:f,onInput:_,onFocus:h,onBlur:I}),null,16)):r.value==="card"?(e.openBlock(),e.createBlock(j,e.mergeProps({key:1},d.value,{"onUpdate:modelValue":p,"onUpdate:cardNumber":g,onCardTypeDetected:y,onInput:_,onFocus:h,onBlur:I,onTrailingIconClick:s}),null,16)):(e.openBlock(),e.createBlock(H,e.mergeProps({key:2},c.value,{"onUpdate:modelValue":p,onInput:_,onFocus:h,onBlur:I,onKeydown:C,onLeadingIconClick:w,onTrailingIconClick:s}),null,16))}}),So=o._export_sfc(Bo,[["__scopeId","data-v-5a761e6c"]]),To={name:"ModalBox",props:{isVisible:{type:Boolean,default:!0},largeModel:{type:Boolean,default:!0}},methods:{closeModal(){this.$emit("close")}}},qo={key:0,class:"fixed z-[9998] top-0 left-0 w-full h-full bg-modalBackgroundBlur flex justify-center items-center"},Eo={class:"flex justify-center items-center"},No={class:"freddy-plugins-modal-header"},Do={class:"freddy-plugins-modal-body"},Vo={class:"freddy-plugins-modal-footer"};function Fo(v,m,l,i,r,u){return e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[l.isVisible?(e.openBlock(),e.createElementBlock("div",qo,[e.createElementVNode("div",Eo,[e.createElementVNode("div",{class:e.normalizeClass({"p-8 bg-background rounded-[2.5rem] overflow-hidden text-white":l.largeModel,"freddy-plugins-modal-container-large":l.largeModel})},[e.createElementVNode("div",No,[e.renderSlot(v.$slots,"header")]),e.createElementVNode("div",Do,[e.renderSlot(v.$slots,"body")]),e.createElementVNode("div",Vo,[e.renderSlot(v.$slots,"footer")])],2)])])):e.createCommentVNode("",!0)]),_:3})}const U=o._export_sfc(To,[["render",Fo]]),$o=e.defineComponent({__name:"InstructionsModal",props:{isVisible:{type:Boolean,required:!0}},setup(v){return(m,l)=>(e.openBlock(),e.createBlock(U,{isVisible:v.isVisible},{header:e.withCtx(()=>[...l[0]||(l[0]=[e.createElementVNode("h2",null,"Instructions",-1)])]),body:e.withCtx(()=>[...l[1]||(l[1]=[e.createElementVNode("p",null,"Instructions",-1)])]),_:1},8,["isVisible"]))}}),Mo=["value","placeholder"],Lo=e.defineComponent({__name:"InstructiontextArea",props:{inputValue:{},placeholder:{},height:{}},emits:["update:inputValue"],setup(v,{emit:m}){const l=v,i=m,r=e.computed(()=>l.height||"40px"),u=d=>{const c=d.target;i("update:inputValue",c.value)};return(d,c)=>(e.openBlock(),e.createElementBlock("input",{type:"text",value:d.inputValue,placeholder:d.placeholder,style:e.normalizeStyle({width:"100%",height:r.value}),onInput:u,class:"instruction-text-input","aria-label":"Instruction input"},null,44,Mo))}}),xo=o._export_sfc(Lo,[["__scopeId","data-v-d4000e78"]]),Ao={class:"freddy-plugins-modal-header"},zo={class:"freddy-plugins-modal-body"},Ro=e.defineComponent({__name:"ModalOverlay",props:{modalTitle:{},headerClass:{},disableClickOutside:{type:Boolean}},emits:["close"],setup(v,{emit:m}){const{currentProject:l,currentColorMode:i}=o.useTheme(),r=v,u=m,d=()=>{u("close")},c=()=>{r.disableClickOutside||d()};return(p,_)=>(e.openBlock(),e.createElementBlock("div",{role:"dialog","aria-modal":"true",class:"freddy-plugins-modal-overlay",onClick:c},[e.createElementVNode("div",{class:"freddy-plugins-modal-content",onClick:_[0]||(_[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("header",Ao,[e.createElementVNode("h2",{class:e.normalizeClass(["freddy-plugins-modal-title",p.headerClass])},e.toDisplayString(p.modalTitle),3),e.createElementVNode("button",{class:"freddy-plugins-modal-close",onClick:d},[e.createVNode(o.IconLightCross,{class:"freddy-plugins-modal-close-icon"})])]),e.createElementVNode("div",zo,[e.renderSlot(p.$slots,"content")])])]))}}),G=e.defineComponent({__name:"Spinner",props:{customClass:{}},setup(v){const{currentProject:m,currentColorMode:l}=o.useTheme();return(i,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-plugin-spinner",i.customClass])},null,2))}}),jo=["placeholder","maxlength"],Z=e.defineComponent({inheritAttrs:!1,__name:"SearchInput",props:{placeholder:{default:"Search here..."},showLoaderForSearch:{type:Boolean,default:!1},maxCharLimit:{default:void 0},showCloseButton:{type:Boolean,default:!1}},emits:["update:searchInput","clear"],setup(v,{emit:m}){const{currentProject:l,currentColorMode:i}=o.useTheme(),r=e.useAttrs(),u=e.ref(null),d=e.ref(null),c=e.ref(null),p=m,_=()=>{var C;(C=d.value)==null||C.focus()},h=()=>{p("update:searchInput",u.value)},I=()=>{p("clear")};return(C,w)=>{var s;return e.openBlock(),e.createElementBlock("div",{ref_key:"dropdownRef",ref:c,class:e.normalizeClass(["freddy-search-wrapper",e.unref(r).class]),onClick:_},[e.createVNode(e.unref(o.IconSearch),{class:"freddy-search-icon"}),e.withDirectives(e.createElementVNode("input",{type:"text",id:"search-input",class:"freddy-search-input",ref_key:"searchInput",ref:d,"onUpdate:modelValue":w[0]||(w[0]=P=>u.value=P),onInput:h,placeholder:C.placeholder,maxlength:C.maxCharLimit},null,40,jo),[[e.vModelText,u.value]]),C.showLoaderForSearch?(e.openBlock(),e.createBlock(G,{key:0,class:"freddy-search-spinner"})):e.createCommentVNode("",!0),C.showCloseButton&&!C.showLoaderForSearch&&((s=u.value)!=null&&s.length)?(e.openBlock(),e.createBlock(o.IconCross,{key:1,class:"freddy-search-close",onClick:I})):e.createCommentVNode("",!0)],2)}}}),Ho={class:"model-dropdown-selected-content"},Oo=["src","alt"],Uo={class:"model-dropdown-placeholder"},Go={key:0,class:"model-dropdown-menu"},Zo={key:0,class:"model-dropdown-search"},Wo={class:"model-dropdown-options"},Ko=["onClick"],Qo=["src","alt"],Jo={class:"model-dropdown-option-value"},Xo={key:0,class:"model-dropdown-no-options"},Yo=e.defineComponent({__name:"ModelDropdown",props:{options:{},searchable:{type:Boolean,default:!1},searchPlaceholder:{default:"Search providers..."},modelPlaceholder:{default:"Select a model"},size:{default:"md"}},emits:["select"],setup(v,{emit:m}){const l=v,i=m,r=e.ref(!1),u=e.ref(""),d=e.ref(null),c=e.computed(()=>!l.searchable||!u.value?l.options:l.options.filter(C=>C.value.toLowerCase().includes(u.value.toLowerCase()))),p=()=>{r.value=!r.value,r.value||(u.value="")},_=()=>{r.value=!1,u.value=""},h=C=>{d.value=C,i("select",C),_()},I=C=>{C.target.closest(".model-dropdown-wrapper")||_()};return e.watch(r,C=>{C?setTimeout(()=>{document.addEventListener("click",I)},0):document.removeEventListener("click",I)}),e.onUnmounted(()=>{document.removeEventListener("click",I)}),(C,w)=>{var s,P;return e.openBlock(),e.createElementBlock("div",{class:"model-dropdown-wrapper",onKeydown:e.withKeys(_,["esc"])},[e.createElementVNode("div",{class:e.normalizeClass(["model-dropdown-trigger",[`model-dropdown-trigger--${C.size}`,{"model-dropdown-trigger--open":r.value}]]),onClick:p},[e.createElementVNode("div",Ho,[(s=d.value)!=null&&s.imageSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:d.value.imageSrc,alt:d.value.value,class:"model-dropdown-selected-image"},null,8,Oo)):e.createCommentVNode("",!0),e.createElementVNode("span",Uo,e.toDisplayString(((P=d.value)==null?void 0:P.value)||C.modelPlaceholder),1)]),r.value?(e.openBlock(),e.createBlock(o.IconChevronUp,{key:1,class:"model-dropdown-chevron"})):(e.openBlock(),e.createBlock(o.IconChevronDown,{key:0,class:"model-dropdown-chevron"}))],2),r.value?(e.openBlock(),e.createElementBlock("div",Go,[C.searchable?(e.openBlock(),e.createElementBlock("div",Zo,[e.createVNode(Z,{modelValue:u.value,"onUpdate:modelValue":w[0]||(w[0]=b=>u.value=b),placeholder:C.searchPlaceholder,showCloseButton:!0},null,8,["modelValue","placeholder"])])):e.createCommentVNode("",!0),e.createElementVNode("ul",Wo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,b=>{var f;return e.openBlock(),e.createElementBlock("li",{key:b.id,class:e.normalizeClass(["model-dropdown-option",{"model-dropdown-option--selected":((f=d.value)==null?void 0:f.id)===b.id}]),onClick:g=>h(b)},[b.imageSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:b.imageSrc,alt:b.value,class:"model-dropdown-option-image"},null,8,Qo)):e.createCommentVNode("",!0),e.createElementVNode("span",Jo,e.toDisplayString(b.value),1)],10,Ko)}),128)),c.value.length===0?(e.openBlock(),e.createElementBlock("li",Xo," No providers found ")):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)],32)}}}),en=o._export_sfc(Yo,[["__scopeId","data-v-75f8685b"]]),on={key:0,class:"freddy-pagination-nav","aria-label":"Pagination"},nn=["disabled"],tn={class:"freddy-pagination-dynamic-container"},ln=["onClick","disabled"],rn=["disabled"],sn=e.defineComponent({__name:"Pagination",props:{totalItems:{type:Number,required:!0,default:0},itemsPerPage:{type:Number,required:!0,default:10},currentPage:{type:Number,required:!0,default:1}},emits:["update:currentPage"],setup(v,{emit:m}){const l=v,i=m,r=e.computed(()=>!l.totalItems||isNaN(l.totalItems)?0:Math.ceil(l.totalItems/l.itemsPerPage)),u=e.computed(()=>{const c=[],p=r.value,_=l.currentPage;if(p<=7)for(let h=1;h<=p;h++)c.push(h);else{c.push(1),_>4?c.push("..."):c.push(2,3);for(let h=Math.max(4,_-1);h<=Math.min(p-3,_+1);h++)c.push(h);_<p-4&&c.push("..."),c.push(p-2,p-1,p)}return c});function d(c){c==="..."||c===l.currentPage||typeof c=="number"&&c>=1&&c<=r.value&&i("update:currentPage",c)}return(c,p)=>r.value>0?(e.openBlock(),e.createElementBlock("nav",on,[e.createElementVNode("button",{class:e.normalizeClass(["freddy-pagination-end-button",{"freddy-pagination-hover-enabled":v.currentPage!==1}]),onClick:p[0]||(p[0]=_=>d(v.currentPage-1)),disabled:v.currentPage===1}," Previous ",10,nn),e.createElementVNode("div",tn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,_=>(e.openBlock(),e.createElementBlock("button",{key:String(_),class:e.normalizeClass(["freddy-pagination-number-button",{active:_===v.currentPage}]),onClick:h=>d(_),disabled:_==="..."||_===v.currentPage},e.toDisplayString(_),11,ln))),128)),e.createElementVNode("button",{class:e.normalizeClass(["freddy-pagination-end-button",{"freddy-pagination-hover-enabled":v.currentPage!==r.value}]),onClick:p[1]||(p[1]=_=>d(v.currentPage+1)),disabled:v.currentPage===r.value||r.value===0}," Next ",10,rn)])])):e.createCommentVNode("",!0)}}),cn=["disabled"],an=e.defineComponent({__name:"SendButton",props:{disabled:{type:Boolean},active:{type:Boolean},size:{}},setup(v){const{currentProject:m,currentColorMode:l}=o.useTheme();return(i,r)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["chat-bar-send-btn",{active:i.active,[`chat-bar-send-btn--${i.size}`]:!0}]),disabled:i.disabled,onClick:r[0]||(r[0]=u=>i.$emit("click"))},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.IconSend),{class:"chat-bar-send-icon"}))],10,cn))}}),dn={key:0,class:"skeleton-card"},un={key:0,class:"skeleton-line skeleton-wave skeleton-w-32 skeleton-h-6 mb-2"},_n={key:1,class:"skeleton-paragraph"},vn={key:0,class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40 mb-2"},pn={key:2,class:"skeleton-single-box"},mn={key:0,class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40 mb-2"},hn={key:3,class:"skeleton-table"},fn={key:0,class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40"},gn={class:"table-full"},bn=e.defineComponent({__name:"SkeletonLoader",props:{type:{},hasHeader:{type:Boolean},count:{}},setup(v){const m=v,{type:l,hasHeader:i=!1,count:r=5}=m;return(u,d)=>e.unref(l)==="card"?(e.openBlock(),e.createElementBlock("div",dn,[e.unref(i)?(e.openBlock(),e.createElementBlock("div",un)):e.createCommentVNode("",!0),d[0]||(d[0]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-3-4"},null,-1)),d[1]||(d[1]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full"},null,-1)),d[2]||(d[2]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-5-6"},null,-1))])):e.unref(l)==="paragraph"?(e.openBlock(),e.createElementBlock("div",_n,[e.unref(i)?(e.openBlock(),e.createElementBlock("div",vn)):e.createCommentVNode("",!0),d[3]||(d[3]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full"},null,-1)),d[4]||(d[4]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-5-6"},null,-1)),d[5]||(d[5]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-3-4"},null,-1))])):e.unref(l)==="single-box"?(e.openBlock(),e.createElementBlock("div",pn,[e.unref(i)?(e.openBlock(),e.createElementBlock("div",mn)):e.createCommentVNode("",!0),d[6]||(d[6]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full"},null,-1))])):e.unref(l)==="table"?(e.openBlock(),e.createElementBlock("div",hn,[e.unref(i)?(e.openBlock(),e.createElementBlock("div",fn)):e.createCommentVNode("",!0),e.createElementVNode("table",gn,[e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),c=>(e.openBlock(),e.createElementBlock("tr",{key:c},[...d[7]||(d[7]=[e.createElementVNode("td",{class:"td-padding"},[e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-8 skeleton-w-full"})],-1),e.createElementVNode("td",{class:"td-padding"},[e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-8 skeleton-w-full"})],-1)])]))),128))])])])):e.createCommentVNode("",!0)}}),In={class:"freddy-plugins-slider-container"},yn={key:0,class:"freddy-plugins-slider-header"},kn={key:0,class:"freddy-plugins-slider-label-section"},Cn={class:"freddy-plugins-slider-label"},Pn={key:1,class:"freddy-plugins-slider-value-badge"},wn=["tabindex","aria-valuemin","aria-valuemax","aria-valuenow","aria-disabled","aria-label"],Bn={key:1,class:"freddy-plugins-slider-hint"},Sn=e.defineComponent({__name:"Slider",props:{modelValue:{},min:{default:0},max:{default:100},step:{default:1},label:{},tooltip:{},tooltipPlacement:{default:"top"},hint:{},disabled:{type:Boolean,default:!1},showValue:{type:Boolean,default:!0},range:{type:Boolean,default:!1},rangeValue:{}},emits:["update:modelValue","update:rangeValue"],setup(v,{emit:m}){const l=v,i=m,r=e.ref(!1),u=e.ref(null),d=e.computed(()=>Math.round(l.modelValue)),c=e.computed(()=>{const b=l.max-l.min,f=l.modelValue-l.min;return Math.min(100,Math.max(0,f/b*100))}),p=e.computed(()=>c.value),_=b=>{const f=Math.round(b/l.step)*l.step;return Math.min(l.max,Math.max(l.min,f))},h=b=>{if(!u.value)return l.modelValue;const f=u.value.getBoundingClientRect(),g=Math.max(0,Math.min(1,(b-f.left)/f.width)),y=l.min+g*(l.max-l.min),a=Math.round(y/l.step)*l.step;return Math.min(l.max,Math.max(l.min,a))},I=b=>{const f=_(b);f!==l.modelValue&&i("update:modelValue",f)},C=b=>{if(l.disabled)return;b.preventDefault(),b.stopPropagation(),r.value=!0;const f=y=>{if(!r.value)return;y.preventDefault();const a=h(y.clientX);I(a)},g=()=>{r.value=!1,document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",g)};document.addEventListener("mousemove",f),document.addEventListener("mouseup",g)},w=b=>{if(l.disabled)return;b.preventDefault(),b.stopPropagation(),r.value=!0;const f=y=>{!r.value||!y.touches[0]||(y.preventDefault(),I(h(y.touches[0].clientX)))},g=()=>{r.value=!1,document.removeEventListener("touchmove",f),document.removeEventListener("touchend",g)};document.addEventListener("touchmove",f),document.addEventListener("touchend",g)},s=b=>{if(l.disabled||r.value)return;b.preventDefault(),b.stopPropagation();const f=h(b.clientX);I(f)},P=b=>{if(l.disabled)return;let f=l.modelValue;switch(b.key){case"ArrowLeft":case"ArrowDown":b.preventDefault(),f=l.modelValue-l.step;break;case"ArrowRight":case"ArrowUp":b.preventDefault(),f=l.modelValue+l.step;break;case"Home":b.preventDefault(),f=l.min;break;case"End":b.preventDefault(),f=l.max;break;case"PageDown":b.preventDefault(),f=l.modelValue-l.step*10;break;case"PageUp":b.preventDefault(),f=l.modelValue+l.step*10;break;default:return}I(f)};return(b,f)=>(e.openBlock(),e.createElementBlock("div",In,[b.label||b.showValue?(e.openBlock(),e.createElementBlock("div",yn,[b.label?(e.openBlock(),e.createElementBlock("div",kn,[e.createElementVNode("span",Cn,e.toDisplayString(b.label),1),b.tooltip?(e.openBlock(),e.createBlock(q,{key:0,text:b.tooltip,placement:b.tooltipPlacement},{default:e.withCtx(()=>[e.createVNode(o.IconInfoRounded,{class:"freddy-plugins-slider-tooltip-icon"})]),_:1},8,["text","placement"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),b.showValue?(e.openBlock(),e.createElementBlock("div",Pn,e.toDisplayString(d.value),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-slider-track-container",{"freddy-plugins-slider-disabled":b.disabled}]),onClick:s,onKeydown:P,tabindex:b.disabled?-1:0,role:"slider","aria-valuemin":b.min,"aria-valuemax":b.max,"aria-valuenow":b.modelValue,"aria-disabled":b.disabled,"aria-label":b.label||"Slider"},[e.createElementVNode("div",{ref_key:"sliderTrack",ref:u,class:"freddy-plugins-slider-track-background"},null,512),e.createElementVNode("div",{class:"freddy-plugins-slider-track-progress",style:e.normalizeStyle({width:c.value+"%"})},null,4),e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-slider-thumb",{"freddy-plugins-slider-thumb-dragging":r.value,"freddy-plugins-slider-thumb-disabled":b.disabled}]),style:e.normalizeStyle({left:p.value+"%"}),onMousedown:C,onTouchstart:w},null,38)],42,wn),b.hint?(e.openBlock(),e.createElementBlock("p",Bn,e.toDisplayString(b.hint),1)):e.createCommentVNode("",!0)]))}}),Tn=o._export_sfc(Sn,[["__scopeId","data-v-7f709ec1"]]),qn={class:"freddy-plugins-snackbar-content"},En={class:"freddy-plugins-snackbar-left"},Nn={class:"freddy-plugins-snackbar-text"},Dn=["innerHTML"],Vn=["innerHTML"],Fn=["onClick"],$n=e.defineComponent({__name:"SnackBar",setup(v){const{currentProject:m,currentColorMode:l}=o.useTheme(),{snackQueue:i}=o.useSnackBar(),r=c=>{switch(c){case"success":return o.IconCheckInCircle;case"danger":return o.IconCross;case"info":return o.IconInfoRounded;default:return o.IconCheckInCircle}},u=e.computed(()=>{const c=i.value[i.value.length-1];if(!c)return"side70";switch(c.toastContainerSize){case"half":return"half";case"full":return"full";default:return"side70"}}),d=c=>{i.value.splice(c,1)};return(c,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-plugins-snackbar-container",`freddy-plugins-snackbar-container--${u.value}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),(_,h)=>(e.openBlock(),e.createElementBlock("div",{key:h,class:e.normalizeClass(["freddy-plugins-snackbar",`freddy-plugins-snackbar--${_.toastType}`])},[e.createElementVNode("div",qn,[e.createElementVNode("div",En,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r(_.toastType)),{class:e.normalizeClass(["freddy-plugins-snackbar-icon",[_.toastType==="info"&&"freddy-plugins-snackbar-icon--info",_.toastType==="danger"&&"freddy-plugins-snackbar-icon--danger",_.toastType==="success"&&"freddy-plugins-snackbar-icon--success"]])},null,8,["class"])),e.createElementVNode("div",Nn,[e.createElementVNode("p",{class:"freddy-plugins-snackbar-title",innerHTML:_.title},null,8,Dn),e.createElementVNode("p",{class:"freddy-plugins-snackbar-message",innerHTML:_.message},null,8,Vn)])]),e.createElementVNode("button",{class:"freddy-plugins-snackbar-close-btn",onClick:I=>d(h)},[e.createVNode(o.IconLightCross,{class:"freddy-plugins-snackbar-close-icon"})],8,Fn)])],2))),128))],2))}}),Mn={class:"freddy-plugins-switch-slot__header"},Ln={key:0,class:"freddy-plugins-switch-slot__label-section"},xn={key:0,class:"freddy-plugins-switch-slot__label"},An=["aria-checked","tabindex","onKeydown","disabled"],zn={key:0,class:"freddy-plugins-switch-slot__content"},Rn={key:1,class:"freddy-plugins-switch-slot__hint"},jn=e.defineComponent({__name:"SwitchSlot",props:{modelValue:{type:Boolean},label:{},tooltip:{},tooltipPlacement:{},hint:{},disabled:{type:Boolean},variant:{},showSlotContent:{type:Boolean}},emits:["update:modelValue"],setup(v,{emit:m}){const l=v,i=m,r=u=>{u.stopPropagation(),l.disabled||i("update:modelValue",!l.modelValue)};return(u,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-plugins-switch-slot",{"freddy-plugins-switch-slot--bordered":u.variant==="bordered","freddy-plugins-switch-slot--disabled":u.disabled}])},[e.createElementVNode("div",Mn,[u.label||u.tooltip?(e.openBlock(),e.createElementBlock("div",Ln,[u.label?(e.openBlock(),e.createElementBlock("span",xn,e.toDisplayString(u.label),1)):e.createCommentVNode("",!0),u.tooltip?(e.openBlock(),e.createBlock(q,{key:1,text:u.tooltip,placement:u.tooltipPlacement},{default:e.withCtx(()=>[e.createVNode(o.IconInfoRounded,{class:"freddy-plugins-switch-slot__tooltip-icon"})]),_:1},8,["text","placement"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:e.normalizeClass(["freddy-plugins-switch-slot__switch",{"freddy-plugins-switch-slot__switch--on":u.modelValue}]),"aria-checked":u.modelValue,role:"switch",tabindex:u.disabled?-1:0,onClick:r,onKeydown:[e.withKeys(e.withModifiers(r,["prevent"]),["space"]),e.withKeys(e.withModifiers(r,["prevent"]),["enter"])],disabled:u.disabled},[...d[0]||(d[0]=[e.createElementVNode("span",{class:"freddy-plugins-switch-slot__track"},null,-1),e.createElementVNode("span",{class:"freddy-plugins-switch-slot__thumb"},null,-1)])],42,An)]),u.showSlotContent?(e.openBlock(),e.createElementBlock("div",zn,[e.renderSlot(u.$slots,"content",{},void 0,!0)])):e.createCommentVNode("",!0),u.hint?(e.openBlock(),e.createElementBlock("p",Rn,e.toDisplayString(u.hint),1)):e.createCommentVNode("",!0)],2))}}),Hn=o._export_sfc(jn,[["__scopeId","data-v-edc0859a"]]),On={class:"freddy-plugin-nav-bar"},Un=["onClick"],Gn=e.defineComponent({__name:"TabList",props:{tabList:{},currentTab:{default:0},activeStateType:{},orientation:{},fullWidth:{type:Boolean}},emits:["tabSwitch"],setup(v,{emit:m}){const l=v,i=m,r=e.ref(l.currentTab),u=d=>{r.value!==d.id&&(r.value=d.id,i("tabSwitch",d.id))};return(d,c)=>(e.openBlock(),e.createElementBlock("div",On,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.tabList,(p,_)=>(e.openBlock(),e.createElementBlock("button",{class:"freddy-plugin-tab-list-menu-button",key:_,onClick:h=>u(p)},[e.createTextVNode(e.toDisplayString(p.title)+" ",1),e.createElementVNode("span",{class:e.normalizeClass({"freddy-plugin-active-tab":r.value===p.id})},null,2)],8,Un))),128))]))}}),Zn=["onClick","aria-selected","onKeydown"],Wn={class:"freddy-plugin-menu-button-label"},Kn={key:0,class:"freddy-plugin-menu-button-badge"},Qn=e.defineComponent({__name:"BaseTabButton",props:{tabList:{},currentTab:{default:0},activeStateType:{default:"bottom-dash"},orientation:{default:"horizontal"},fullWidth:{type:Boolean,default:!1}},emits:["tabSwitch"],setup(v,{emit:m}){const l=v,i=m,r=e.computed(()=>l.activeStateType||"bottom-dash"),u=e.computed(()=>l.orientation||"horizontal"),d=e.computed(()=>{const _=u.value,h=r.value;return _==="vertical"&&h==="bottom-dash"?"left-dash":{"bottom-dash":"bottom-dash","bg-primary-active":"background-21404F8F","primary-active":"background-031525","bg-primary-active-bordered":"background-border"}[h]||h}),c=e.ref(l.currentTab);e.watch(()=>l.currentTab,_=>{c.value=_});const p=_=>{c.value!==_.id&&(c.value=_.id,i("tabSwitch",_.id))};return(_,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-plugin-nav-bar",`freddy-plugin-nav-bar--${u.value}`,`freddy-plugin-nav-bar--${d.value}`,{"freddy-plugin-nav-bar--full-width":l.fullWidth}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.tabList,(I,C)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["freddy-plugin-menu-button",`freddy-plugin-menu-button--${d.value}`,{"freddy-plugin-menu-button--active":c.value===I.id},{"freddy-plugin-menu-button--full-width":l.fullWidth}]),key:C,onClick:w=>p(I),"aria-selected":c.value===I.id,role:"tab",tabindex:"0",onKeydown:[e.withKeys(w=>p(I),["enter"]),e.withKeys(e.withModifiers(w=>p(I),["prevent"]),["space"])]},[e.createElementVNode("span",Wn,e.toDisplayString(I.title),1),I.badge!==void 0?(e.openBlock(),e.createElementBlock("span",Kn,e.toDisplayString(I.badge),1)):e.createCommentVNode("",!0),d.value==="bottom-dash"&&c.value===I.id?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass({"freddy-plugin-active-tab-bottom":c.value===I.id})},null,2)):e.createCommentVNode("",!0)],42,Zn))),128))],2))}}),Jn={class:"freddy-plugins-toast-wrapper"},Xn={class:"freddy-plugins-toast-icon-wrapper"},Yn={class:"freddy-plugins-toast-message"},et=["onClick"],ot=e.defineComponent({__name:"ToastMessage",setup(v){const{toastQueue:m}=o.useToast(),l={success:"freddy-plugins-toast-success",danger:"freddy-plugins-toast-danger",info:"freddy-plugins-toast-info"},i=d=>l[d],r=d=>{switch(d){case"success":return o.IconTick;case"danger":return o.IconCross;case"info":return o.IconInfoRounded;default:return o.IconTick}},u=d=>{m.value.splice(d,1)};return(d,c)=>(e.openBlock(),e.createElementBlock("div",Jn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),(p,_)=>(e.openBlock(),e.createElementBlock("div",{key:_,class:e.normalizeClass(["freddy-plugins-toast-item",i(p.toastType)])},[e.createElementVNode("div",Xn,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r(p.toastType)),{class:"freddy-plugins-toast-icon"}))]),e.createElementVNode("span",Yn,e.toDisplayString(p.message),1),e.createElementVNode("button",{class:"freddy-plugins-toast-close-button",onClick:h=>u(_)},[e.createVNode(e.unref(o.IconCross),{class:"freddy-plugins-toast-close-icon"})],8,et)],2))),128))]))}}),nt=["aria-label"],tt=["innerHTML"],lt={key:1},it=e.defineComponent({__name:"TooltipV2",props:{text:{},placement:{default:"top"},html:{type:Boolean,default:!1},contentClass:{},delay:{default:200},hideDelay:{default:0}},setup(v){const m=v,l=e.ref(!1),i=e.ref(!1),r=e.ref(null);let u=null,d=null;const c=()=>{d&&(clearTimeout(d),d=null),u&&clearTimeout(u),u=setTimeout(()=>{if(r.value){const I=r.value.getBoundingClientRect();i.value=I.top<150}l.value=!0},m.delay)},p=()=>{u&&(clearTimeout(u),u=null),d=setTimeout(()=>{l.value=!1},m.hideDelay)},_=()=>{c()},h=()=>{p()};return(I,C)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tooltipWrapper",ref:r,class:"freddy-plugins-tooltip-v2-wrapper",onMouseenter:c,onMouseleave:p,onFocusin:_,onFocusout:h,tabindex:"0"},[e.renderSlot(I.$slots,"default",{},void 0,!0),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[l.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["freddy-plugins-tooltip-v2-content",[I.placement,i.value?"force-bottom":"",I.contentClass]]),role:"tooltip","aria-label":I.text},[e.renderSlot(I.$slots,"content",{},()=>[I.html?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:I.text},null,8,tt)):(e.openBlock(),e.createElementBlock("span",lt,e.toDisplayString(I.text),1))],!0)],10,nt)):e.createCommentVNode("",!0)]),_:3})],544))}}),rt=o._export_sfc(it,[["__scopeId","data-v-55872ec8"]]);function st(v={}){const{logErrors:m=!0,throwOnCritical:l=!1,maxRetries:i=3}=v,r=e.ref([]),u=e.ref(!1),d=e.ref(0),c=e.computed(()=>r.value.length>0),p=e.computed(()=>r.value[r.value.length-1]||null),_=(P,b)=>{const f={message:P instanceof Error?P.message:String(P),stack:P instanceof Error?P.stack:void 0,timestamp:new Date().toISOString(),context:{...b,retryCount:d.value,userAgent:typeof navigator<"u"?navigator.userAgent:"Unknown"}};if(P&&typeof P=="object"&&"status"in P&&(f.code=P.status),r.value.push(f),m&&process.env.NODE_ENV,l&&s(P))throw P;return f},h=async(P,b)=>{u.value=!0;try{const f=await P();return d.value=0,{data:f,error:null}}catch(f){return{data:null,error:_(f,b)}}finally{u.value=!1}},I=async(P,b)=>{let f=null;for(let g=1;g<=i;g++){d.value=g-1;const y=await h(P,{...b,attempt:g,maxRetries:i});if(y.data!==null)return y;if(f=y.error,f!=null&&f.code&&typeof f.code=="number"&&f.code>=400&&f.code<500)break;g<i&&await new Promise(a=>setTimeout(a,Math.pow(2,g)*1e3))}return{data:null,error:f}},C=()=>{r.value=[],d.value=0},w=P=>{P>=0&&P<r.value.length&&r.value.splice(P,1)},s=P=>{if(P instanceof Error){if(P.name==="NetworkError"||P.name==="TypeError")return!1;if(P.name==="SyntaxError")return!0}return P&&typeof P=="object"&&"status"in P?P.status>=500:!1};return{errors:e.computed(()=>r.value),hasErrors:c,latestError:p,isLoading:e.computed(()=>u.value),retryCount:e.computed(()=>d.value),handleError:_,handleAsync:h,retryAsync:I,clearErrors:C,clearError:w,isCriticalError:s}}function ct(v={}){const{enableMetrics:m=process.env.NODE_ENV==="development",trackMemory:l=!1,sampleRate:i=.1}=v,r=e.ref([]),u=e.ref(!1),d=e.ref(0),c=e.computed(()=>r.value.length===0?0:r.value.reduce((a,n)=>a+n.renderTime,0)/r.value.length),p=e.computed(()=>r.value.length===0?0:Math.max(...r.value.map(y=>y.renderTime))),_=y=>{!m||Math.random()>i||(u.value=!0,d.value=performance.now(),y&&process.env.NODE_ENV)},h=(y,a=1)=>{if(!u.value||!m)return;const S={renderTime:performance.now()-d.value,componentCount:a,timestamp:new Date().toISOString()};if(l&&"memory"in performance){const k=performance.memory;S.memoryUsage=k.usedJSHeapSize}return r.value.push(S),r.value.length>100&&r.value.shift(),u.value=!1,y&&process.env.NODE_ENV,S},I=async(y,a)=>{_(a);try{const n=await y(),B=h(a)||{renderTime:0,componentCount:1,timestamp:new Date().toISOString()};return{result:n,metrics:B}}catch(n){throw h(a),n}},C=(y,a)=>{let n;return(...B)=>{clearTimeout(n),n=setTimeout(()=>y(...B),a)}},w=(y,a)=>{let n;return(...B)=>{n||(y(...B),n=!0,setTimeout(()=>n=!1,a))}},s=(y,a=5e3)=>{"requestIdleCallback"in window?window.requestIdleCallback(y,{timeout:a}):setTimeout(y,0)},P=async(y,a=0)=>(a>0&&await new Promise(n=>setTimeout(n,a)),new Promise(n=>{s(async()=>{try{const B=await y();n(B)}catch(B){throw B}})})),b=(y,a,n)=>{const B=Math.ceil(n/a),S=Math.ceil(B*.5);return k=>{const t=Math.max(0,Math.floor(k/a)-S),T=Math.min(y.length,t+B+S*2);return{visibleItems:y.slice(t,T),startIndex:t,endIndex:T,totalHeight:y.length*a,offsetY:t*a}}},f=()=>{r.value=[]},g=()=>({totalMeasurements:r.value.length,averageRenderTime:c.value,maxRenderTime:p.value,recentMetrics:r.value.slice(-10)});return m&&process.env.NODE_ENV==="development"&&e.onMounted(()=>{_("Component Mount"),e.nextTick(()=>{h("Component Mount")})}),{metrics:e.computed(()=>r.value),isTracking:e.computed(()=>u.value),averageRenderTime:c,maxRenderTime:p,startTracking:_,endTracking:h,measureAsync:I,debounce:C,throttle:w,scheduleWork:s,lazyLoad:P,createVirtualList:b,clearMetrics:f,getSummary:g}}exports.ConfirmationModal=o._sfc_main;exports.DeleteConfirmationModal=o._sfc_main$1;exports.IconAddFileSystem=o.IconAddFileSystem;exports.IconAddPeople=o.IconAddPeople;exports.IconAitronos=o.IconAitronos;exports.IconApple=o.IconApple;exports.IconApplePay=o.IconApplePay;exports.IconArrowDown=o.IconArrowDown;exports.IconArrowLeft=o.IconArrowLeft;exports.IconArrowUp=o.IconArrowUp;exports.IconBadgeCheck=o.IconBadgeCheck;exports.IconBroom=o.IconBroom;exports.IconBuildings=o.IconBuildings;exports.IconCalendarWithTickInside=o.IconCalendarWithTickInside;exports.IconCallNotAllowed=o.IconCallNotAllowed;exports.IconCardPay=o.IconCardPay;exports.IconCaution=o.IconCaution;exports.IconChangeLog=o.IconChangeLog;exports.IconCheckCircleFill=o.IconCheckCircleFill;exports.IconCheckInCircle=o.IconCheckInCircle;exports.IconCheckRounded=o.IconCheckRounded;exports.IconChevronDown=o.IconChevronDown;exports.IconChevronLeft=o.IconChevronLeft;exports.IconChevronRight=o.IconChevronRight;exports.IconChevronUp=o.IconChevronUp;exports.IconCircledCheck=o.IconCircledCheck;exports.IconClock=o.IconClock;exports.IconClosedEnvelope=o.IconClosedEnvelope;exports.IconCloudUpload=o.IconCloudUpload;exports.IconConnectorConfluence=o.IconConnectorConfluence;exports.IconConnectorFigma=o.IconConnectorFigma;exports.IconConnectorFreshDesk=o.IconConnectorFreshDesk;exports.IconConnectorGitHub=o.IconConnectorGitHub;exports.IconConnectorJira=o.IconConnectorJira;exports.IconConnectorLinear=o.IconConnectorLinear;exports.IconConnectorNotion=o.IconConnectorNotion;exports.IconConnectorSlack=o.IconConnectorSlack;exports.IconConnectorZapier=o.IconConnectorZapier;exports.IconCopy=o.IconCopy;exports.IconCross=o.IconCross;exports.IconCrossCircleFill=o.IconCrossCircleFill;exports.IconCrossInCircle=o.IconCrossInCircle;exports.IconCurrentTick=o.IconCurrentTick;exports.IconDataUpload=o.IconDataUpload;exports.IconDelete=o.IconDelete;exports.IconDeleteFillRed=o.IconDeleteFillRed;exports.IconDialingPhone=o.IconDialingPhone;exports.IconDisabledAlert=o.IconDisabledAlert;exports.IconDocumentation=o.IconDocumentation;exports.IconDownload=o.IconDownload;exports.IconDribbble=o.IconDribbble;exports.IconDropdownArrow=o.IconDropdownArrow;exports.IconEdit=o.IconEdit;exports.IconEditLinePath=o.IconEditLinePath;exports.IconEllipse=o._sfc_main$2;exports.IconExcelThumbnail=o.IconExcelThumbnail;exports.IconEye=o.IconEye;exports.IconFacebook=o.IconFacebook;exports.IconFigma=o.IconFigma;exports.IconFile=o.IconFile;exports.IconFileSystem=o.IconFileSystem;exports.IconFileUpload=o.IconFileUpload;exports.IconFilter=o.IconFilter;exports.IconFolder=o.IconFolder;exports.IconFreddyHub=o.IconFreddyHub;exports.IconFreddyHubLogo=o.IconFreddyHubLogo;exports.IconFreddyHubNewLogo=o.IconFreddyHubNewLogo;exports.IconFreddyHubTitle=o._sfc_main$3;exports.IconFreddySmall=o.IconFreddySmall;exports.IconGlobExpand=o.IconGlobExpand;exports.IconGlobe=o.IconGlobe;exports.IconGoogle=o.IconGoogle;exports.IconHollowCircle=o.IconHollowCircle;exports.IconHome=o.IconHome;exports.IconInfoRounded=o.IconInfoRounded;exports.IconInvalidInvoice=o.IconInvalidInvoice;exports.IconInvoice=o.IconInvoice;exports.IconInvoiceSwitch=o.IconInvoiceSwitch;exports.IconLapTableBottom=o.IconLapTableBottom;exports.IconLense=o.IconLense;exports.IconLightCross=o.IconLightCross;exports.IconLink04=o.IconLink04;exports.IconLoadingError=o.IconLoadingError;exports.IconLoadingOrg=o.IconLoadingOrg;exports.IconLocationWithCircleIn=o.IconLocationWithCircleIn;exports.IconLock=o.IconLock;exports.IconMarketPlace=o.IconMarketPlace;exports.IconMaximize=o.IconMaximize;exports.IconMicrophone=o.IconMicrophone;exports.IconMutedMicrophone=o.IconMutedMicrophone;exports.IconNewNotification=o.IconNewNotification;exports.IconNewTab=o.IconNewTab;exports.IconNotification=o.IconNotification;exports.IconOpenBook=o.IconOpenBook;exports.IconPaperAirPlane=o.IconPaperAirPlane;exports.IconPauseCircle=o.IconPauseCircle;exports.IconPdfThumbnail=o.IconPdfThumbnail;exports.IconPenEdit=o.IconPenEdit;exports.IconPencil=o.IconPencil;exports.IconPeopleHub=o.IconPeopleHub;exports.IconPersonCircle=o.IconPersonCircle;exports.IconPits=o.IconPits;exports.IconPlay=o.IconPlay;exports.IconPlus=o.IconPlus;exports.IconPolygonDown=o.IconPolygonDown;exports.IconPresentation=o.IconPresentation;exports.IconProgressBase=o.IconProgressBase;exports.IconProgressComplete=o.IconProgressComplete;exports.IconProgressGoing=o.IconProgressGoing;exports.IconPurpose=o.IconPurpose;exports.IconPurseCircleFill=o.IconPurseCircleFill;exports.IconQuestion=o.IconQuestion;exports.IconRadio=o.IconRadio;exports.IconRadioFill=o.IconRadioFill;exports.IconRefresh=o.IconRefresh;exports.IconRevertedTraingle=o.IconRevertedTraingle;exports.IconRobotScreen=o.IconRobotScreen;exports.IconRoundTick=o.IconRoundTick;exports.IconSearch=o.IconSearch;exports.IconSearchOptimised=o.IconSearchOptimised;exports.IconSectionHide=o.IconSectionHide;exports.IconSend=o.IconSend;exports.IconSettings=o.IconSettings;exports.IconSettingsBold=o.IconSettingsBold;exports.IconSize=o.IconSize;exports.IconSliderKnobs=o.IconSliderKnobs;exports.IconSortIdle=o.IconSortIdle;exports.IconSparkle=o.IconSparkle;exports.IconSpotlio=o.IconSpotlio;exports.IconStar=o.IconStar;exports.IconStatistics=o.IconStatistics;exports.IconStopChat=o.IconStopChat;exports.IconStreamLineHub=o.IconStreamLineHub;exports.IconStreamLineHubNewLogo=o.IconStreamLineHubNewLogo;exports.IconSun=o.IconSun;exports.IconSwap=o.IconSwap;exports.IconText=o.IconText;exports.IconTextThumbnail=o.IconTextThumbnail;exports.IconThinDocument=o.IconThinDocument;exports.IconThinFile=o.IconThinFile;exports.IconThumbsDown=o.IconThumbsDown;exports.IconTick=o.IconTick;exports.IconUser=o.IconUser;exports.IconVerticalDots=o.IconVerticalDots;exports.IconVideoCamera=o.IconVideoCamera;exports.IconWarningOctal=o.IconWarningOctal;exports.IconX=o.IconX;exports.IconZip=o._sfc_main$4;exports.aiResponseToChatMessage=o.aiResponseToChatMessage;exports.calculatePercentage=o.calculatePercentage;exports.cloneDeepSafe=o.cloneDeepSafe;exports.copyToClipboard=o.copyToClipboard;exports.createChangesObject=o.createChangesObject;exports.daysInMonth=o.daysInMonth;exports.debounce=o.debounce;exports.deepEqual=o.deepEqual;exports.defaultImageSrc=o.defaultImageSrc;exports.extractStats=o.extractStats;exports.fileSizeFormatter=o.fileSizeFormatter;exports.fillMissingDays=o.fillMissingDays;exports.formatDate=o.formatDate;exports.formatDateToLocaleString=o.formatDateToLocaleString;exports.formatLastUsedDate=o.formatLastUsedDate;exports.getDatesForMonth=o.getDatesForMonth;exports.getDaysInMonth=o.getDaysInMonth;exports.getDisplayContent=o.getDisplayContent;exports.getFileNameFromUrl=o.getFileNameFromUrl;exports.getShortMonthName=o.getShortMonthName;exports.hasOverflow=o.hasOverflow;exports.hasTextImprovements=o.hasTextImprovements;exports.interpolateColor=o.interpolateColor;exports.isValidAIResponse=o.isValidAIResponse;exports.openConfirmBoxModal=o.openConfirmBoxModal;exports.openDeleteConfirmModal=o.openDeleteConfirmModal;exports.parseAITextResponse=o.parseAITextResponse;exports.parseApiResponse=o.parseApiResponse;exports.readableDateFormat=o.readableDateFormat;exports.scrollToBottom=o.scrollToBottom;exports.scrollToElement=o.scrollToElement;exports.useSnackBar=o.useSnackBar;exports.useToast=o.useToast;exports.AdvancedModal=pe;exports.AnimeSpaceman=ce;exports.BaseButton=$;exports.BaseInput=N;exports.BaseTabButton=Qn;exports.CardInput=j;exports.CodeBlock=qe;exports.CustomCheckbox=$e;exports.DefaultInput=H;exports.DiffTextarea=ze;exports.Dropdown=Ke;exports.EmailCodeVerification=so;exports.IconStyleDirective=V;exports.InputField=So;exports.InstructionsModal=$o;exports.InstructiontextArea=xo;exports.ModalBox=U;exports.ModalOverlay=Ro;exports.ModelDropdown=en;exports.Pagination=sn;exports.PhoneInput=O;exports.SearchInput=Z;exports.SendButton=an;exports.SkeletonLoader=bn;exports.Slider=Tn;exports.SnackBar=$n;exports.SocialButtons=Se;exports.Spinner=G;exports.Switch=z;exports.SwitchSlot=Hn;exports.TabList=Gn;exports.ToastMessage=ot;exports.Tooltip=q;exports.TooltipV2=rt;exports.default=ie;exports.frSanitizePlugin=re;exports.iconStylePlugin=se;exports.useErrorHandler=st;exports.usePerformance=ct;exports.vFrSanitize=F;
|
|
35
35
|
//# sourceMappingURL=index.cjs.map
|