@aitronos/freddy-plugins 0.4.55 → 0.4.57
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 +30 -0
- package/dist/freddy-plugins.css +1 -1
- package/dist/{icons-BGgr1l_8.cjs → icons-DQveW34E.cjs} +2 -2
- package/dist/icons-DQveW34E.cjs.map +1 -0
- package/dist/{icons-ChDgG5_V.js → icons-Lnvg2xiB.js} +23 -23
- package/dist/icons-Lnvg2xiB.js.map +1 -0
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +14 -15
- package/dist/index.js +2780 -2836
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/dist/icons-BGgr1l_8.cjs.map +0 -1
- package/dist/icons-ChDgG5_V.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var ue=Object.create;var L=Object.defineProperty;var _e=Object.getOwnPropertyDescriptor;var pe=Object.getOwnPropertyNames;var ve=Object.getPrototypeOf,me=Object.prototype.hasOwnProperty;var he=(h,_,s)=>_ in h?L(h,_,{enumerable:!0,configurable:!0,writable:!0,value:s}):h[_]=s;var fe=(h,_,s,r)=>{if(_&&typeof _=="object"||typeof _=="function")for(let l of pe(_))!me.call(h,l)&&l!==s&&L(h,l,{get:()=>_[l],enumerable:!(r=_e(_,l))||r.enumerable});return h};var ge=(h,_,s)=>(s=h!=null?ue(ve(h)):{},fe(_||!h||!h.__esModule?L(s,"default",{value:h,enumerable:!0}):s,h));var z=(h,_,s)=>he(h,typeof _!="symbol"?_+"":_,s);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./icons-DQveW34E.cjs"),e=require("vue"),O={mounted(h){h.getAttribute("class")||h.setAttribute("class","base-fallback-style")}};let R=null;const ye=async()=>{try{R=(await import("dompurify")).default}catch{}};ye();const be=["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"],Ie=["href","src","alt","title","width","height","align","class","id","colspan","rowspan"],Z=h=>h.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").replace(/<iframe\b[^<]*(?:(?!<\/iframe>)<[^<]*)*<\/iframe>/gi,"").replace(/on\w+="[^"]*"/gi,"").replace(/javascript:/gi,""),J=h=>{if(!R)return Z(h);try{return R.sanitize(h,{ALLOWED_TAGS:be,ALLOWED_ATTR:Ie,USE_PROFILES:{html:!0}})}catch{return Z(h)}},H={mounted(h,_){h.innerHTML=J(_.value||"")},updated(h,_){h.innerHTML=J(_.value||"")}},ke={install(h){var s;h.directive("icon-style",O),h.directive("fr-sanitize",H);const _=Object.assign({"./icons/IconAddFileSystem.vue":n.__vite_glob_0_0,"./icons/IconAddPeople.vue":n.__vite_glob_0_1,"./icons/IconAitronos.vue":n.__vite_glob_0_2,"./icons/IconApple.vue":n.__vite_glob_0_3,"./icons/IconApplePay.vue":n.__vite_glob_0_4,"./icons/IconArrowDown.vue":n.__vite_glob_0_5,"./icons/IconArrowLeft.vue":n.__vite_glob_0_6,"./icons/IconArrowUp.vue":n.__vite_glob_0_7,"./icons/IconBadgeCheck.vue":n.__vite_glob_0_8,"./icons/IconBroom.vue":n.__vite_glob_0_9,"./icons/IconBuildings.vue":n.__vite_glob_0_10,"./icons/IconCalendarWithTickInside.vue":n.__vite_glob_0_11,"./icons/IconCallNotAllowed.vue":n.__vite_glob_0_12,"./icons/IconCardPay.vue":n.__vite_glob_0_13,"./icons/IconCaution.vue":n.__vite_glob_0_14,"./icons/IconChangeLog.vue":n.__vite_glob_0_15,"./icons/IconCheckCircleFill.vue":n.__vite_glob_0_16,"./icons/IconCheckInCircle.vue":n.__vite_glob_0_17,"./icons/IconCheckRounded.vue":n.__vite_glob_0_18,"./icons/IconChevronDown.vue":n.__vite_glob_0_19,"./icons/IconChevronLeft.vue":n.__vite_glob_0_20,"./icons/IconChevronRight.vue":n.__vite_glob_0_21,"./icons/IconChevronUp.vue":n.__vite_glob_0_22,"./icons/IconCircledCheck.vue":n.__vite_glob_0_23,"./icons/IconClock.vue":n.__vite_glob_0_24,"./icons/IconClosedEnvelope.vue":n.__vite_glob_0_25,"./icons/IconCloudUpload.vue":n.__vite_glob_0_26,"./icons/IconConnectorConfluence.vue":n.__vite_glob_0_27,"./icons/IconConnectorFigma.vue":n.__vite_glob_0_28,"./icons/IconConnectorFreshDesk.vue":n.__vite_glob_0_29,"./icons/IconConnectorGitHub.vue":n.__vite_glob_0_30,"./icons/IconConnectorJira.vue":n.__vite_glob_0_31,"./icons/IconConnectorLinear.vue":n.__vite_glob_0_32,"./icons/IconConnectorNotion.vue":n.__vite_glob_0_33,"./icons/IconConnectorSlack.vue":n.__vite_glob_0_34,"./icons/IconConnectorZapier.vue":n.__vite_glob_0_35,"./icons/IconCopy.vue":n.__vite_glob_0_36,"./icons/IconCross.vue":n.__vite_glob_0_37,"./icons/IconCrossCircleFill.vue":n.__vite_glob_0_38,"./icons/IconCrossInCircle.vue":n.__vite_glob_0_39,"./icons/IconCurrentTick.vue":n.__vite_glob_0_40,"./icons/IconDataUpload.vue":n.__vite_glob_0_41,"./icons/IconDelete.vue":n.__vite_glob_0_42,"./icons/IconDeleteFillRed.vue":n.__vite_glob_0_43,"./icons/IconDialingPhone.vue":n.__vite_glob_0_44,"./icons/IconDisabledAlert.vue":n.__vite_glob_0_45,"./icons/IconDocumentation.vue":n.__vite_glob_0_46,"./icons/IconDownload.vue":n.__vite_glob_0_47,"./icons/IconDribbble.vue":n.__vite_glob_0_48,"./icons/IconDropdownArrow.vue":n.__vite_glob_0_49,"./icons/IconEdit.vue":n.__vite_glob_0_50,"./icons/IconEditLinePath.vue":n.__vite_glob_0_51,"./icons/IconEllipse.vue":n.__vite_glob_0_52,"./icons/IconExcelThumbnail.vue":n.__vite_glob_0_53,"./icons/IconEye.vue":n.__vite_glob_0_54,"./icons/IconFacebook.vue":n.__vite_glob_0_55,"./icons/IconFigma.vue":n.__vite_glob_0_56,"./icons/IconFile.vue":n.__vite_glob_0_57,"./icons/IconFileSystem.vue":n.__vite_glob_0_58,"./icons/IconFileUpload.vue":n.__vite_glob_0_59,"./icons/IconFilter.vue":n.__vite_glob_0_60,"./icons/IconFolder.vue":n.__vite_glob_0_61,"./icons/IconFreddyHub.vue":n.__vite_glob_0_62,"./icons/IconFreddyHubLogo.vue":n.__vite_glob_0_63,"./icons/IconFreddyHubNewLogo.vue":n.__vite_glob_0_64,"./icons/IconFreddyHubTitle.vue":n.__vite_glob_0_65,"./icons/IconFreddySmall.vue":n.__vite_glob_0_66,"./icons/IconGlobExpand.vue":n.__vite_glob_0_67,"./icons/IconGlobe.vue":n.__vite_glob_0_68,"./icons/IconGoogle.vue":n.__vite_glob_0_69,"./icons/IconHollowCircle.vue":n.__vite_glob_0_70,"./icons/IconHome.vue":n.__vite_glob_0_71,"./icons/IconInfoRounded.vue":n.__vite_glob_0_72,"./icons/IconInvalidInvoice.vue":n.__vite_glob_0_73,"./icons/IconInvoice.vue":n.__vite_glob_0_74,"./icons/IconInvoiceSwitch.vue":n.__vite_glob_0_75,"./icons/IconLapTableBottom.vue":n.__vite_glob_0_76,"./icons/IconLense.vue":n.__vite_glob_0_77,"./icons/IconLightCross.vue":n.__vite_glob_0_78,"./icons/IconLink04.vue":n.__vite_glob_0_79,"./icons/IconLoadingError.vue":n.__vite_glob_0_80,"./icons/IconLoadingOrg.vue":n.__vite_glob_0_81,"./icons/IconLocationWithCircleIn.vue":n.__vite_glob_0_82,"./icons/IconLock.vue":n.__vite_glob_0_83,"./icons/IconMarketPlace.vue":n.__vite_glob_0_84,"./icons/IconMaximize.vue":n.__vite_glob_0_85,"./icons/IconMicrophone.vue":n.__vite_glob_0_86,"./icons/IconMutedMicrophone.vue":n.__vite_glob_0_87,"./icons/IconNewNotification.vue":n.__vite_glob_0_88,"./icons/IconNewTab.vue":n.__vite_glob_0_89,"./icons/IconNotification.vue":n.__vite_glob_0_90,"./icons/IconOpenBook.vue":n.__vite_glob_0_91,"./icons/IconPaperAirPlane.vue":n.__vite_glob_0_92,"./icons/IconPauseCircle.vue":n.__vite_glob_0_93,"./icons/IconPdfThumbnail.vue":n.__vite_glob_0_94,"./icons/IconPenEdit.vue":n.__vite_glob_0_95,"./icons/IconPencil.vue":n.__vite_glob_0_96,"./icons/IconPeopleHub.vue":n.__vite_glob_0_97,"./icons/IconPersonCircle.vue":n.__vite_glob_0_98,"./icons/IconPits.vue":n.__vite_glob_0_99,"./icons/IconPlay.vue":n.__vite_glob_0_100,"./icons/IconPlus.vue":n.__vite_glob_0_101,"./icons/IconPolygonDown.vue":n.__vite_glob_0_102,"./icons/IconPresentation.vue":n.__vite_glob_0_103,"./icons/IconProgressBase.vue":n.__vite_glob_0_104,"./icons/IconProgressComplete.vue":n.__vite_glob_0_105,"./icons/IconProgressGoing.vue":n.__vite_glob_0_106,"./icons/IconPurpose.vue":n.__vite_glob_0_107,"./icons/IconPurseCircleFill.vue":n.__vite_glob_0_108,"./icons/IconQuestion.vue":n.__vite_glob_0_109,"./icons/IconRadio.vue":n.__vite_glob_0_110,"./icons/IconRadioFill.vue":n.__vite_glob_0_111,"./icons/IconRefresh.vue":n.__vite_glob_0_112,"./icons/IconRevertedTriangle.vue":n.__vite_glob_0_113,"./icons/IconRobotScreen.vue":n.__vite_glob_0_114,"./icons/IconRoundTick.vue":n.__vite_glob_0_115,"./icons/IconSearch.vue":n.__vite_glob_0_116,"./icons/IconSearchOptimised.vue":n.__vite_glob_0_117,"./icons/IconSectionHide.vue":n.__vite_glob_0_118,"./icons/IconSend.vue":n.__vite_glob_0_119,"./icons/IconSettings.vue":n.__vite_glob_0_120,"./icons/IconSettingsBold.vue":n.__vite_glob_0_121,"./icons/IconSize.vue":n.__vite_glob_0_122,"./icons/IconSliderKnobs.vue":n.__vite_glob_0_123,"./icons/IconSortIdle.vue":n.__vite_glob_0_124,"./icons/IconSparkle.vue":n.__vite_glob_0_125,"./icons/IconSpotlio.vue":n.__vite_glob_0_126,"./icons/IconStar.vue":n.__vite_glob_0_127,"./icons/IconStatistics.vue":n.__vite_glob_0_128,"./icons/IconStopChat.vue":n.__vite_glob_0_129,"./icons/IconStreamLineHub.vue":n.__vite_glob_0_130,"./icons/IconStreamLineHubNewLogo.vue":n.__vite_glob_0_131,"./icons/IconSun.vue":n.__vite_glob_0_132,"./icons/IconSwap.vue":n.__vite_glob_0_133,"./icons/IconText.vue":n.__vite_glob_0_134,"./icons/IconTextThumbnail.vue":n.__vite_glob_0_135,"./icons/IconThinDocument.vue":n.__vite_glob_0_136,"./icons/IconThinFile.vue":n.__vite_glob_0_137,"./icons/IconThumbsDown.vue":n.__vite_glob_0_138,"./icons/IconTick.vue":n.__vite_glob_0_139,"./icons/IconUser.vue":n.__vite_glob_0_140,"./icons/IconVerticalDots.vue":n.__vite_glob_0_141,"./icons/IconVideoCamera.vue":n.__vite_glob_0_142,"./icons/IconWarningOctal.vue":n.__vite_glob_0_143,"./icons/IconX.vue":n.__vite_glob_0_144,"./icons/IconZip.vue":n.__vite_glob_0_145});for(const r in _){const l=_[r],a=l.default.name||((s=r.split("/").pop())==null?void 0:s.replace(".vue",""));h.component(a,l.default)}}},Ce={install(h){h.directive("fr-sanitize",H)}},Pe={install(h){h.directive("icon-style",O)}},we=e.defineComponent({__name:"AnimeSpaceman",props:{customClass:{},customStyle:{}},setup(h){return(_,s)=>(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",_.customClass]),style:e.normalizeStyle(_.customStyle)},[...s[0]||(s[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,7 +31,7 @@
|
|
|
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))}}),Pe={key:0,class:"fixed z-[9998] top-0 left-0 w-full h-full bg-modalBackgroundBlur flex justify-center items-center"},Ve={class:"flex justify-center items-center"},Ne={class:"modal-header"},Se={class:"modal-body"},Te={class:"modal-footer"},$e=e.defineComponent({__name:"AdvancedModal",props:{isVisible:{type:Boolean},largeModel:{type:Boolean}},setup(m){return(u,s)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[u.isVisible?(e.openBlock(),e.createElementBlock("div",Pe,[e.createElementVNode("div",Ve,[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":u.largeModel})},[e.createElementVNode("div",Ne,[e.renderSlot(u.$slots,"header")]),e.createElementVNode("div",Se,[e.renderSlot(u.$slots,"body")]),e.createElementVNode("div",Te,[e.renderSlot(u.$slots,"footer")])],2)])])):e.createCommentVNode("",!0)]),_:3}))}}),xe={class:"freddy-assistant-field__content"},De={class:"freddy-assistant-field__header"},qe={class:"freddy-assistant-field__name"},Ae={class:"freddy-assistant-field__date"},Fe={class:"freddy-assistant-field__footer"},Me={class:"freddy-assistant-field__id"},Le={key:0,class:"freddy-assistant-field__privacy-icon"},ze=e.defineComponent({__name:"AssistantField",props:{name:{default:"Name of the assistant"},date:{default:"mar 2024"},assistantId:{default:"Ass_id.asdasddas"},isDefault:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1}},emits:["assistantFieldClick"],setup(m,{emit:u}){const s=u,i=l=>{s("assistantFieldClick",l)};return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-assistant-field",{"freddy-assistant-field--selected":l.isSelected}]),onClick:i},[e.createElementVNode("div",xe,[e.createElementVNode("div",De,[e.createElementVNode("div",qe,e.toDisplayString(l.name),1),e.createElementVNode("div",Ae,e.toDisplayString(l.date),1)]),e.createElementVNode("div",Fe,[e.createElementVNode("div",Me,e.toDisplayString(l.assistantId),1),l.isDefault?(e.openBlock(),e.createElementBlock("div",Le,[e.createVNode(t.IconLock,{class:"freddy-assistant-field__lock-icon"})])):e.createCommentVNode("",!0)])])],2))}}),Y=t._export_sfc(ze,[["__scopeId","data-v-4489364f"]]),Re={class:"freddy-assistant-list"},Oe={class:"freddy-assistant-list__container"},Ue=e.defineComponent({__name:"AssistantList",props:{assistants:{default:()=>[]},selectedAssistantId:{default:null}},emits:["assistantClick"],setup(m,{emit:u}){const s=m,i=u,l=e.ref(s.selectedAssistantId),r=e.computed(()=>{const d=s.selectedAssistantId??l.value;return s.assistants.map(p=>({...p,isSelected:p.assistantId===d}))}),a=(d,p)=>{l.value=d.assistantId,i("assistantClick",d,p)};return(d,p)=>(e.openBlock(),e.createElementBlock("div",Re,[e.createElementVNode("div",Oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(h,f)=>(e.openBlock(),e.createBlock(Y,{key:h.id||f,name:h.name,date:h.date,assistantId:h.assistantId,isDefault:h.isDefault,isSelected:h.isSelected,onAssistantFieldClick:I=>a(h,I)},null,8,["name","date","assistantId","isDefault","isSelected","onAssistantFieldClick"]))),128))])]))}}),He=t._export_sfc(Ue,[["__scopeId","data-v-09e1fd4e"]]),Ke={class:"freddy-assistants-header"},je={key:0,class:"freddy-assistants-header__avatar"},Ge=["src"],Ze={key:1,class:"freddy-assistants-header__icon-with-edit"},We={key:2,class:"freddy-assistants-header__side-icon"},Je={class:"freddy-assistants-header__content"},Qe={class:"freddy-assistants-header__content-inner"},Ye={class:"freddy-assistants-header__text-content"},Xe={class:"freddy-assistants-header__id-badge"},eo={class:"freddy-assistants-header__actions"},oo=e.defineComponent({__name:"AssistantsHeader",props:{assistantImage:{default:void 0},assistantIcon:{default:"IconRobotScreen"},assistantId:{default:"assistant ID"}},emits:["edit","playground"],setup(m,{emit:u}){t.useTheme();const s=u,i=a=>{s("edit",a)},l=a=>{s("playground",a)},r=a=>t.Icons[a]||t.IconRobotScreen;return(a,d)=>(e.openBlock(),e.createElementBlock("div",Ke,[e.createElementVNode("div",{class:e.normalizeClass(["freddy-assistants-header__avatar-section",{"freddy-assistants-header__avatar-section--with-image":a.assistantImage,"freddy-assistants-header__avatar-section--no-image":!a.assistantImage}])},[a.assistantImage?(e.openBlock(),e.createElementBlock("div",je,[e.createElementVNode("img",{src:a.assistantImage,alt:"Assistant Avatar",class:"freddy-assistants-header__avatar-image"},null,8,Ge),e.createElementVNode("button",{class:"freddy-assistants-header__edit-overlay",onClick:i},[e.createVNode(t.IconEdit,{class:"freddy-assistants-header__edit-icon"})])])):(e.openBlock(),e.createElementBlock("div",Ze,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r(a.assistantIcon)),{class:"freddy-assistants-header__icon-component"})),e.createElementVNode("button",{class:"freddy-assistants-header__edit-overlay-icon",onClick:i},[e.createVNode(t.IconEdit,{class:"freddy-assistants-header__edit-icon"})])])),a.assistantImage&&a.assistantIcon?(e.openBlock(),e.createElementBlock("div",We,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r(a.assistantIcon)),{class:"freddy-assistants-header__side-icon-component"}))])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",Je,[e.createElementVNode("div",Qe,[e.createElementVNode("div",Ye,[e.createElementVNode("div",Xe,e.toDisplayString(a.assistantId||"assistant ID"),1)])])]),e.createElementVNode("div",eo,[e.createElementVNode("button",{class:"freddy-assistants-header__playground-button",onClick:l},[e.createVNode(t.IconNewTab,{class:"freddy-assistants-header__playground-icon"}),d[0]||(d[0]=e.createElementVNode("span",{class:"freddy-assistants-header__playground-label"},"Playground",-1))])])]))}}),to=["src","alt"],no={key:0,class:"freddy-avatar-choosing__border"},lo={key:1,class:"freddy-avatar-choosing__check-icon"},H=e.defineComponent({__name:"AvatarChoosing",props:{imageUrl:{},isSelected:{type:Boolean,default:!1},altText:{default:"Avatar"},backgroundColor:{default:"#cfcbdc"}},emits:["click"],setup(m,{emit:u}){const s=u,i=l=>{s("click",l)};return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-avatar-choosing",{"freddy-avatar-choosing--selected":l.isSelected}]),onClick:i},[e.createElementVNode("div",{class:"freddy-avatar-choosing__background",style:e.normalizeStyle({backgroundColor:l.backgroundColor})},null,4),e.createElementVNode("img",{src:l.imageUrl,alt:l.altText,class:"freddy-avatar-choosing__image"},null,8,to),l.isSelected?(e.openBlock(),e.createElementBlock("div",no)):e.createCommentVNode("",!0),l.isSelected?(e.openBlock(),e.createElementBlock("div",lo,[e.createVNode(t.IconTick,{class:"freddy-avatar-choosing__check-icon-svg"})])):e.createCommentVNode("",!0)],2))}}),so={class:"freddy-avatar-list"},io={key:0,class:"freddy-avatar-list__title"},ro={class:"freddy-avatar-list__grid"},ao={key:1,class:"freddy-avatar-list__selected-info"},co=e.defineComponent({__name:"AvatarList",props:{avatars:{},title:{default:""},showSelectedInfo:{type:Boolean,default:!0},allowDeselect:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1}},emits:["selectionChange","avatarClick"],setup(m,{expose:u,emit:s}){const i=m,l=s,r=e.ref(null),a=e.computed(()=>i.avatars.find(p=>p.id===r.value)||null),d=p=>{r.value===p&&i.allowDeselect?r.value=null:r.value=p,l("selectionChange",r.value),l("avatarClick",p,r.value===p)};return u({selectedAvatarId:r,selectedAvatar:a,selectAvatar:p=>{r.value=p,l("selectionChange",p)},clearSelection:()=>{r.value=null,l("selectionChange",null)}}),(p,h)=>{var f;return e.openBlock(),e.createElementBlock("div",so,[p.title?(e.openBlock(),e.createElementBlock("h3",io,e.toDisplayString(p.title),1)):e.createCommentVNode("",!0),e.createElementVNode("div",ro,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.avatars,I=>(e.openBlock(),e.createBlock(e.unref(H),{key:I.id,imageUrl:I.url,isSelected:r.value===I.id,altText:I.name,onClick:P=>d(I.id)},null,8,["imageUrl","isSelected","altText","onClick"]))),128))]),p.showSelectedInfo?(e.openBlock(),e.createElementBlock("div",ao,[e.createElementVNode("p",null,"Selected: "+e.toDisplayString(((f=a.value)==null?void 0:f.name)||"None"),1)])):e.createCommentVNode("",!0)])}}}),uo={class:"freddy-choose-assistant-avatar"},_o={class:"freddy-choose-assistant-avatar__header"},po={class:"freddy-choose-assistant-avatar__title-section"},mo={class:"freddy-choose-assistant-avatar__title-row"},vo={class:"freddy-choose-assistant-avatar__title"},ho=["aria-label"],fo={class:"freddy-choose-assistant-avatar__description"},go={class:"freddy-choose-assistant-avatar__content"},yo={class:"freddy-choose-assistant-avatar__section"},bo={class:"freddy-choose-assistant-avatar__icon-container"},ko={class:"freddy-choose-assistant-avatar__icon-search"},Io=["aria-label"],Co={class:"freddy-choose-assistant-avatar__icon-grid"},wo=["onClick","title"],Bo={class:"freddy-choose-assistant-avatar__icon-wrapper"},Eo={key:1,class:"freddy-choose-assistant-avatar__icon-placeholder"},Po={class:"freddy-choose-assistant-avatar__section"},Vo={class:"freddy-choose-assistant-avatar__face-grid"},No={class:"freddy-choose-assistant-avatar__section"},So={class:"freddy-choose-assistant-avatar__voice-list"},To={class:"freddy-choose-assistant-avatar__actions"},$o=["disabled"],xo=e.defineComponent({__name:"ChooseAssistantAvatar",props:{title:{default:"Choose your assistant"},description:{default:"Choose your assistant's appearance and select a preferred voice."},icons:{default:()=>[]},faces:{default:()=>[{id:1,imageUrl:"https://placehold.co/118x118",altText:"Face 1",backgroundColor:"#ef4444"},{id:2,imageUrl:"https://placehold.co/118x118",altText:"Face 2",backgroundColor:"#14b8a6"},{id:3,imageUrl:"https://placehold.co/118x118",altText:"Face 3",backgroundColor:"#3b82f6"},{id:4,imageUrl:"https://placehold.co/118x118",altText:"Face 4",backgroundColor:"#10b981"},{id:5,imageUrl:"https://placehold.co/118x118",altText:"Face 5",backgroundColor:"#eab308"},{id:6,imageUrl:"https://placehold.co/118x118",altText:"Face 6",backgroundColor:"#a855f7"}]},voices:{default:()=>[{id:1,name:"Alloy"},{id:2,name:"Echo"},{id:3,name:"Fable"},{id:4,name:"Onyx"},{id:5,name:"Nova"},{id:6,name:"Shimmer"},{id:7,name:"Aurora"},{id:8,name:"Phoenix"}]},searchPlaceholder:{default:"Search icon"},cancelButtonText:{default:"Cancel"},saveButtonText:{default:"Save"},closeButtonAriaLabel:{default:"Close dialog"},searchButtonAriaLabel:{default:"Search icons"},uploadButtonAriaLabel:{default:"Upload custom icon"},allowMultipleSelection:{type:Boolean,default:!1}},emits:["close","cancel","save","iconSelect","faceSelect","voiceSelect","searchInput","searchClick","uploadClick"],setup(m,{expose:u,emit:s}){const i=m,l=()=>{const c=[];let C=1;for(const[g,n]of Object.entries(t.Icons))if(typeof n=="object"&&n&&"default"in n){const N=n.default;c.push({id:C++,name:g.replace("Icon",""),iconName:g,component:N})}return c},r=e.computed(()=>i.icons.length>0?i.icons:l()),a=s,d=e.ref(null),p=e.ref(null),h=e.ref(null),f=e.ref(""),I=e.computed(()=>f.value?r.value.filter(C=>{var g;return(g=C.name)==null?void 0:g.toLowerCase().includes(f.value.toLowerCase())}):r.value),P=e.computed(()=>d.value!==null||p.value!==null||h.value!==null),V=()=>{a("close")},v=()=>{a("cancel")},B=()=>{P.value&&a("save",{selectedIconId:d.value,selectedFaceId:p.value,selectedVoiceId:h.value})},y=c=>{d.value=c.id,a("iconSelect",c)},k=c=>{p.value=c.id,a("faceSelect",c)},b=c=>{h.value=c.id,a("voiceSelect",c)},w=c=>{f.value=c||"",a("searchInput",c||"")},_=()=>{a("uploadClick")},o=c=>t.Icons[c]||t.IconRobotScreen;return u({selectedIconId:d,selectedFaceId:p,selectedVoiceId:h,resetSelections:()=>{d.value=null,p.value=null,h.value=null}}),(c,C)=>(e.openBlock(),e.createElementBlock("div",uo,[e.createElementVNode("div",_o,[e.createElementVNode("div",po,[e.createElementVNode("div",mo,[e.createElementVNode("h1",vo,e.toDisplayString(c.title),1),e.createElementVNode("button",{class:"freddy-choose-assistant-avatar__close-button",onClick:V,"aria-label":c.closeButtonAriaLabel},[e.createVNode(t.IconCross,{class:"freddy-choose-assistant-avatar__close-icon"})],8,ho)])]),e.createElementVNode("p",fo,e.toDisplayString(c.description),1)]),e.createElementVNode("div",go,[e.createElementVNode("div",yo,[C[1]||(C[1]=e.createElementVNode("h3",{class:"freddy-choose-assistant-avatar__section-title"}," Choose the icon ",-1)),e.createElementVNode("div",bo,[e.createElementVNode("div",ko,[e.createElementVNode("button",{class:"freddy-choose-assistant-avatar__search-button",onClick:_,"aria-label":c.uploadButtonAriaLabel},[e.createVNode(t.IconDataUpload,{class:"freddy-choose-assistant-avatar__upload-icon"})],8,Io),e.createVNode(e.unref(F),{searchInput:f.value,"onUpdate:searchInput":[C[0]||(C[0]=g=>f.value=g),w],placeholder:c.searchPlaceholder,class:"freddy-choose-assistant-avatar__search-input-wrapper"},null,8,["searchInput","placeholder"])]),e.createElementVNode("div",Co,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,(g,n)=>{var N;return e.openBlock(),e.createElementBlock("div",{key:g.id||n,class:e.normalizeClass(["freddy-choose-assistant-avatar__icon-item",{"freddy-choose-assistant-avatar__icon-item--selected":d.value===g.id}]),onClick:S=>y(g),title:g.name},[e.createElementVNode("div",Bo,[g.component||g.iconName?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g.component||(g.iconName?o(g.iconName):null)),{key:0,class:"freddy-choose-assistant-avatar__icon-svg"})):(e.openBlock(),e.createElementBlock("div",Eo,e.toDisplayString(((N=g.name)==null?void 0:N.charAt(0))||"?"),1))])],10,wo)}),128))])])]),e.createElementVNode("div",Po,[C[2]||(C[2]=e.createElementVNode("h3",{class:"freddy-choose-assistant-avatar__section-title"}," Choose the face ",-1)),e.createElementVNode("div",Vo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.faces,(g,n)=>(e.openBlock(),e.createBlock(e.unref(H),{key:g.id||n,imageUrl:g.imageUrl,altText:g.altText||`Face ${n+1}`,backgroundColor:g.backgroundColor,isSelected:p.value===g.id,onClick:N=>k(g)},null,8,["imageUrl","altText","backgroundColor","isSelected","onClick"]))),128))])]),e.createElementVNode("div",No,[C[3]||(C[3]=e.createElementVNode("h3",{class:"freddy-choose-assistant-avatar__section-title"}," Choose the voice ",-1)),e.createElementVNode("div",So,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.voices,(g,n)=>(e.openBlock(),e.createBlock(e.unref(K),{key:g.id||n,voiceName:g.name,isSelected:h.value===g.id,onClick:N=>b(g)},null,8,["voiceName","isSelected","onClick"]))),128))])]),e.createElementVNode("div",To,[e.createElementVNode("button",{class:"freddy-choose-assistant-avatar__cancel-button",onClick:v},e.toDisplayString(c.cancelButtonText),1),e.createElementVNode("button",{class:"freddy-choose-assistant-avatar__save-button",onClick:B,disabled:!P.value},e.toDisplayString(c.saveButtonText),9,$o)])])]))}}),Do=["onClick","aria-selected","onKeydown"],qo={class:"freddy-plugin-menu-button-label"},Ao={key:0,class:"freddy-plugin-menu-button-badge"},X=e.defineComponent({__name:"BaseTabButton",props:{tabList:{},currentTab:{default:0},activeStateType:{default:"bottom-dash"},orientation:{default:"horizontal"},fullWidth:{type:Boolean,default:!1}},emits:["tabSwitch"],setup(m,{emit:u}){const s=m,i=u,l=e.computed(()=>s.activeStateType||"bottom-dash"),r=e.computed(()=>s.orientation||"horizontal"),a=e.computed(()=>{const h=r.value,f=l.value;return h==="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}),d=e.ref(s.currentTab);e.watch(()=>s.currentTab,h=>{d.value=h});const p=h=>{d.value!==h.id&&(d.value=h.id,i("tabSwitch",h.id))};return(h,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-plugin-nav-bar",`freddy-plugin-nav-bar--${r.value}`,`freddy-plugin-nav-bar--${a.value}`,{"freddy-plugin-nav-bar--full-width":s.fullWidth}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.tabList,(I,P)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["freddy-plugin-menu-button",`freddy-plugin-menu-button--${a.value}`,{"freddy-plugin-menu-button--active":d.value===I.id},{"freddy-plugin-menu-button--full-width":s.fullWidth}]),key:P,onClick:V=>p(I),"aria-selected":d.value===I.id,role:"tab",tabindex:"0",onKeydown:[e.withKeys(V=>p(I),["enter"]),e.withKeys(e.withModifiers(V=>p(I),["prevent"]),["space"])]},[e.createElementVNode("span",qo,e.toDisplayString(I.title),1),I.badge!==void 0?(e.openBlock(),e.createElementBlock("span",Ao,e.toDisplayString(I.badge),1)):e.createCommentVNode("",!0),a.value==="bottom-dash"&&d.value===I.id?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass({"freddy-plugin-active-tab-bottom":d.value===I.id})},null,2)):e.createCommentVNode("",!0)],42,Do))),128))],2))}}),Fo={class:"rules-management"},Mo={class:"rules-header"},Lo={class:"header-actions"},zo={class:"search-wrapper"},Ro=["onKeydown"],Oo={class:"tabs-container",role:"tablist","aria-label":"Rules filter tabs"},Uo=["id","aria-labelledby"],Ho={class:"rules-table",role:"table","aria-label":"Rules list"},Ko={class:"col-dependencies",scope:"col"},jo={class:"info-icon",title:"Number of dependent rules","aria-label":"Information about dependencies",role:"img"},Go={class:"rule-info"},Zo={class:"rule-title"},Wo={class:"rule-description"},Jo=["aria-label"],Qo={class:"dependencies-count"},Yo=["aria-label"],Xo={class:"creator-info"},et={class:"creator-wrapper"},ot=["src","alt"],tt={class:"creator-details"},nt={class:"creator-name"},lt={class:"creator-username"},st={class:"action-cell"},it=["aria-label"],rt={class:"action-icons"},at=["onClick","onKeydown","aria-label"],ct=["onClick","onKeydown","aria-label"],dt={class:"pagination-container",role:"navigation","aria-label":"Pagination"},ut=["disabled","onKeydown","tabindex"],_t={class:"page-numbers",role:"list","aria-label":"Page numbers"},pt=["onClick","onKeydown","disabled","aria-label","aria-current","tabindex"],mt=["disabled","onKeydown","tabindex"],vt=e.defineComponent({__name:"RulesManagement",props:{rules:{default:()=>[]},tabs:{default:()=>[{id:"all",label:"All Rules",count:43},{id:"my",label:"My Rules",count:5},{id:"others",label:"Other's Rules",count:8},{id:"current",label:"Current Assistant",count:6}]},initialTab:{default:"all"},totalPages:{default:10}},emits:["search","createRule","tabChange","edit","view","pageChange"],setup(m,{emit:u}){const s=m,i=u,l=e.ref(""),r=e.ref(s.initialTab),a=e.ref(1),d=e.computed(()=>s.tabs.map((_,o)=>({id:o+1,title:_.label,badge:_.count,originalId:_.id}))),p=e.computed(()=>{const _=s.tabs.findIndex(o=>o.id===r.value);return _>=0?_+1:1}),h=_=>{const o=d.value.find(c=>c.id===_);o&&o.originalId&&v(o.originalId)},f=e.computed(()=>{if(!l.value)return s.rules;const _=l.value.toLowerCase();return s.rules.filter(o=>{var c;return o.title.toLowerCase().includes(_)||((c=o.description)==null?void 0:c.toLowerCase().includes(_))||o.creator.name.toLowerCase().includes(_)})}),I=e.computed(()=>{const _=[],o=s.totalPages,c=a.value;if(o<=7)for(let C=1;C<=o;C++)_.push(C);else{_.push(1),c>3&&_.push("...");for(let C=Math.max(2,c-1);C<=Math.min(o-1,c+1);C++)_.push(C);c<o-2&&_.push("..."),_.push(o)}return _}),P=()=>{i("search",l.value)},V=()=>{i("createRule")},v=_=>{r.value=_,i("tabChange",_)},B=_=>{i("edit",_)},y=_=>{i("view",_)},k=_=>{a.value=_,i("pageChange",_)},b=()=>{a.value>1&&k(a.value-1)},w=()=>{a.value<s.totalPages&&k(a.value+1)};return(_,o)=>(e.openBlock(),e.createElementBlock("div",Fo,[e.createElementVNode("div",Mo,[o[3]||(o[3]=e.createElementVNode("div",{class:"header-content"},[e.createElementVNode("h1",{class:"title"},"Rules Management"),e.createElementVNode("p",{class:"subtitle"}," Manage and organize your organization's rules and guidelines ")],-1)),e.createElementVNode("div",Lo,[e.createElementVNode("div",zo,[e.createVNode(t.IconSearch,{class:"search-icon","aria-hidden":"true"}),e.withDirectives(e.createElementVNode("input",{type:"text",class:"search-input",placeholder:"Search","onUpdate:modelValue":o[0]||(o[0]=c=>l.value=c),onInput:P,"aria-label":"Search rules"},null,544),[[e.vModelText,l.value]]),o[1]||(o[1]=e.createElementVNode("kbd",{class:"search-kbd","aria-label":"Keyboard shortcut"},"⌘K",-1))]),e.createElementVNode("button",{class:"create-rule-btn",onClick:V,onKeydown:[e.withKeys(V,["enter"]),e.withKeys(e.withModifiers(V,["prevent"]),["space"])],"aria-label":"Create new rule",tabindex:"0"},[e.createVNode(t.IconPlus,{class:"plus-icon","aria-hidden":"true"}),o[2]||(o[2]=e.createTextVNode(" Create Rule ",-1))],40,Ro)])]),e.createElementVNode("div",Oo,[e.createVNode(X,{tabList:d.value,currentTab:p.value,activeStateType:"bottom-dash",orientation:"horizontal",onTabSwitch:h},null,8,["tabList","currentTab"])]),e.createElementVNode("div",{class:"table-container",role:"tabpanel",id:`tabpanel-${r.value}`,"aria-labelledby":`tab-${r.value}`},[e.createElementVNode("table",Ho,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[o[5]||(o[5]=e.createElementVNode("th",{class:"col-rule",scope:"col"},"Rule",-1)),o[6]||(o[6]=e.createElementVNode("th",{class:"col-status",scope:"col"},"Status",-1)),e.createElementVNode("th",Ko,[o[4]||(o[4]=e.createTextVNode(" Dependencies ",-1)),e.createElementVNode("span",jo,[e.createVNode(t.IconInfoRounded,{"aria-hidden":"true"})])]),o[7]||(o[7]=e.createElementVNode("th",{class:"col-created-by",scope:"col"},"Created By",-1)),o[8]||(o[8]=e.createElementVNode("th",{class:"col-status-action",scope:"col"},"Actions",-1))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,c=>(e.openBlock(),e.createElementBlock("tr",{key:c.id,class:"rule-row",role:"row"},[e.createElementVNode("td",Go,[e.createElementVNode("div",Zo,e.toDisplayString(c.title),1),e.createElementVNode("div",Wo,e.toDisplayString(c.description),1)]),e.createElementVNode("td",null,[e.createElementVNode("span",{class:e.normalizeClass(["status-badge",c.status.toLowerCase()]),"aria-label":`Status: ${c.status}`},e.toDisplayString(c.status),11,Jo)]),e.createElementVNode("td",Qo,[e.createElementVNode("span",{"aria-label":`${c.dependencies} dependencies`},e.toDisplayString(c.dependencies),9,Yo)]),e.createElementVNode("td",Xo,[e.createElementVNode("div",et,[e.createElementVNode("img",{src:c.creator.avatar,alt:`${c.creator.name} avatar`,class:"creator-avatar"},null,8,ot),e.createElementVNode("div",tt,[e.createElementVNode("div",nt,e.toDisplayString(c.creator.name),1),e.createElementVNode("div",lt,e.toDisplayString(c.creator.username),1)])])]),e.createElementVNode("td",st,[e.createElementVNode("span",{class:e.normalizeClass(["status-badge",c.status.toLowerCase()]),"aria-label":`Status: ${c.status}`},e.toDisplayString(c.status),11,it),e.createElementVNode("div",rt,[e.createElementVNode("button",{class:"icon-btn",onClick:C=>B(c),onKeydown:[e.withKeys(C=>B(c),["enter"]),e.withKeys(e.withModifiers(C=>B(c),["prevent"]),["space"])],"aria-label":`Edit ${c.title}`,tabindex:"0"},[e.createVNode(t.IconEdit,{"aria-hidden":"true"})],40,at),e.createElementVNode("button",{class:"icon-btn",onClick:C=>y(c),onKeydown:[e.withKeys(C=>y(c),["enter"]),e.withKeys(e.withModifiers(C=>y(c),["prevent"]),["space"])],"aria-label":`View ${c.title}`,tabindex:"0"},[e.createVNode(t.IconEye,{"aria-hidden":"true"})],40,ct)])])]))),128))])])],8,Uo),e.createElementVNode("nav",dt,[e.createElementVNode("button",{class:"pagination-btn",disabled:a.value===1,onClick:b,onKeydown:[e.withKeys(b,["enter"]),e.withKeys(e.withModifiers(b,["prevent"]),["space"])],"aria-label":"Go to previous page",tabindex:a.value===1?-1:0}," Previous ",40,ut),e.createElementVNode("div",_t,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,c=>(e.openBlock(),e.createElementBlock("button",{key:c,class:e.normalizeClass(["page-number",{active:a.value===c,ellipsis:c==="..."}]),onClick:C=>c!=="..."&&k(c),onKeydown:[e.withKeys(C=>c!=="..."&&k(c),["enter"]),e.withKeys(e.withModifiers(C=>c!=="..."&&k(c),["prevent"]),["space"])],disabled:c==="...","aria-label":c==="..."?"More pages":`Go to page ${c}`,"aria-current":a.value===c?"page":void 0,tabindex:c==="..."?-1:0,role:"listitem"},e.toDisplayString(c),43,pt))),128))]),e.createElementVNode("button",{class:"pagination-btn",disabled:a.value===_.totalPages,onClick:w,onKeydown:[e.withKeys(w,["enter"]),e.withKeys(e.withModifiers(w,["prevent"]),["space"])],"aria-label":"Go to next page",tabindex:a.value===_.totalPages?-1:0}," Next ",40,mt)])]))}}),ht=t._export_sfc(vt,[["__scopeId","data-v-143a0031"]]),ft={class:"freddy-vector-frame__content"},gt={class:"freddy-vector-frame__icon-container"},yt={class:"freddy-vector-frame__title"},bt={key:0,class:"freddy-vector-frame__badge"},kt={class:"freddy-vector-frame__badge-content"},It={class:"freddy-vector-frame__badge-text"},Ct={key:1,class:"freddy-vector-frame__tick-container"},wt={key:0,class:"freddy-vector-frame__underline"},Bt=e.defineComponent({__name:"VectorFrame",props:{title:{default:"Main Vector Store"},badgeText:{default:"Popular"},isSelected:{type:Boolean,default:!1}},emits:["click"],setup(m,{emit:u}){const s=m,i=u,l=e.ref(s.isSelected),r=a=>{l.value=!l.value,i("click",a)};return(a,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-vector-frame",{"freddy-vector-frame--clicked":l.value}]),onClick:r},[e.createElementVNode("div",ft,[e.createElementVNode("div",gt,[e.createVNode(t.IconFileSystem,{class:"freddy-vector-frame__icon"})]),e.createElementVNode("div",yt,e.toDisplayString(a.title),1),l.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",bt,[e.createElementVNode("div",kt,[e.createVNode(t.IconStar,{class:"freddy-vector-frame__badge-icon"}),e.createElementVNode("div",It,e.toDisplayString(a.badgeText),1)])])),l.value?(e.openBlock(),e.createElementBlock("div",Ct,[e.createVNode(t.IconBadgeCheck,{class:"freddy-vector-frame__tick-icon"})])):e.createCommentVNode("",!0)]),l.value?(e.openBlock(),e.createElementBlock("div",wt)):e.createCommentVNode("",!0)],2))}}),ee=t._export_sfc(Bt,[["__scopeId","data-v-aa2b4501"]]),Et={class:"freddy-vector-section"},Pt={class:"freddy-vector-section__content"},Vt={class:"freddy-vector-section__header"},Nt={class:"freddy-vector-section__count"},St={class:"freddy-vector-section__main"},Tt={class:"freddy-vector-section__search-container"},$t={class:"freddy-vector-section__search-header"},xt={class:"freddy-vector-section__search-label"},Dt={class:"freddy-vector-section__help-icon"},qt={class:"freddy-vector-section__search-input-container"},At={class:"freddy-vector-section__filter-results"},Ft={class:"freddy-vector-section__filter"},Mt={class:"freddy-vector-section__filter-button"},Lt={class:"freddy-vector-section__results-count"},zt={class:"freddy-vector-section__frames-container"},Rt={key:0,class:"freddy-vector-section__show-more"},Ot={class:"freddy-vector-section__show-more-text"},Ut={class:"freddy-vector-section__add-section"},Ht={class:"freddy-vector-section__add-container"},Kt=e.defineComponent({__name:"VectorSection",props:{title:{default:"Knowledge"},dbCount:{default:0},searchPlaceholder:{default:"Search vector store"},frames:{default:()=>[{id:1,title:"Main Vector Store",badgeText:"Popular",isSelected:!0},{id:2,title:"Secondary Database",badgeText:"Popular",isSelected:!1},{id:3,title:"Custom Vector Store",badgeText:"Popular",isSelected:!0},{id:4,title:"Backup Store",badgeText:"Popular",isSelected:!1},{id:5,title:"Analytics Database",badgeText:"Popular",isSelected:!1},{id:6,title:"User Data Store",badgeText:"Popular",isSelected:!1},{id:7,title:"Logs Database",badgeText:"Popular",isSelected:!1},{id:8,title:"Cache Store",badgeText:"Popular",isSelected:!1},{id:9,title:"Metrics Database",badgeText:"Popular",isSelected:!1},{id:10,title:"Archive Store",badgeText:"Popular",isSelected:!1},{id:11,title:"Test Database",badgeText:"Popular",isSelected:!1},{id:12,title:"Production Store",badgeText:"Popular",isSelected:!1}]},maxDisplayed:{default:4}},emits:["frameClick","addVectorStore","showMore","searchInput"],setup(m,{emit:u}){const s=m,i=u,l=e.ref(""),r=e.ref(s.maxDisplayed),a=e.computed(()=>l.value.trim()?s.frames.filter(B=>B.title.toLowerCase().includes(l.value.toLowerCase())):s.frames),d=e.computed(()=>a.value.slice(0,r.value)),p=e.computed(()=>a.value.length),h=e.computed(()=>a.value.length>r.value),f=e.computed(()=>a.value.length-r.value),I=(B,y)=>{i("frameClick",B,y)},P=()=>{i("addVectorStore")},V=()=>{r.value=a.value.length,i("showMore")},v=B=>{l.value=B||"",r.value=s.maxDisplayed,i("searchInput",l.value)};return(B,y)=>(e.openBlock(),e.createElementBlock("div",Et,[e.createElementVNode("div",Pt,[e.createElementVNode("div",Vt,[y[1]||(y[1]=e.createElementVNode("div",{class:"freddy-vector-section__title"},"Knowledge",-1)),e.createElementVNode("div",Nt,e.toDisplayString(B.dbCount)+" DBs added",1)]),e.createElementVNode("div",St,[e.createElementVNode("div",Tt,[e.createElementVNode("div",$t,[e.createElementVNode("div",xt,[y[2]||(y[2]=e.createTextVNode(" Vector Stores ",-1)),e.createElementVNode("div",Dt,[e.createVNode(t.IconQuestion,{class:"freddy-vector-section__help-icon-svg"})])]),e.createElementVNode("div",qt,[e.createVNode(e.unref(F),{searchInput:l.value,"onUpdate:searchInput":[y[0]||(y[0]=k=>l.value=k),v],placeholder:B.searchPlaceholder,class:"freddy-vector-section__search-input"},null,8,["searchInput","placeholder"])])])]),e.createElementVNode("div",At,[e.createElementVNode("div",Ft,[e.createElementVNode("div",Mt,[e.createVNode(t.IconFilter,{class:"freddy-vector-section__filter-icon"}),y[3]||(y[3]=e.createElementVNode("span",{class:"freddy-vector-section__filter-text"},"Filter by",-1)),e.createVNode(t.IconChevronDown,{class:"freddy-vector-section__filter-arrow"})])]),e.createElementVNode("div",Lt,e.toDisplayString(p.value)+" databases found ",1)]),e.createElementVNode("div",zt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(k,b)=>(e.openBlock(),e.createElementBlock("div",{key:k.id||b,class:"freddy-vector-section__frame-item"},[e.createVNode(e.unref(ee),{title:k.title,badgeText:k.badgeText,isSelected:k.isSelected,onClick:w=>I(k,b)},null,8,["title","badgeText","isSelected","onClick"])]))),128))]),h.value?(e.openBlock(),e.createElementBlock("div",Rt,[e.createElementVNode("button",{class:"freddy-vector-section__show-more-button",onClick:V},[e.createElementVNode("span",Ot,"Show "+e.toDisplayString(f.value)+" more",1),e.createVNode(t.IconChevronDown,{class:"freddy-vector-section__show-more-icon"})])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ut,[y[5]||(y[5]=e.createElementVNode("div",{class:"freddy-vector-section__add-title"},"Knowledge",-1)),e.createElementVNode("div",Ht,[e.createElementVNode("button",{class:"freddy-vector-section__add-button",onClick:P},[e.createVNode(t.IconAddFileSystem,{class:"freddy-vector-section__add-icon"}),y[4]||(y[4]=e.createElementVNode("span",{class:"freddy-vector-section__add-text"},"Add vector store to assistant",-1))])])])])]))}}),jt=t._export_sfc(Kt,[["__scopeId","data-v-1a5a37a7"]]),Gt={class:"freddy-voice-list"},Zt={key:0,class:"freddy-voice-list__title"},Wt={class:"freddy-voice-list__container"},Jt={key:1,class:"freddy-voice-list__selected-info"},Qt=e.defineComponent({__name:"VoiceList",props:{voices:{},title:{default:""},showSelectedInfo:{type:Boolean,default:!0},allowDeselect:{type:Boolean,default:!0}},emits:["selectionChange","voiceClick"],setup(m,{expose:u,emit:s}){const i=m,l=s,r=e.ref(null),a=e.computed(()=>i.voices.find(p=>p.id===r.value)||null),d=p=>{r.value===p&&i.allowDeselect?r.value=null:r.value=p,l("selectionChange",r.value),l("voiceClick",p,r.value===p)};return u({selectedVoiceId:r,selectedVoice:a,selectVoice:p=>{r.value=p,l("selectionChange",p)},clearSelection:()=>{r.value=null,l("selectionChange",null)}}),(p,h)=>{var f;return e.openBlock(),e.createElementBlock("div",Gt,[p.title?(e.openBlock(),e.createElementBlock("h3",Zt,e.toDisplayString(p.title),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Wt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.voices,I=>(e.openBlock(),e.createBlock(e.unref(K),{key:I.id,voiceName:I.name,isSelected:r.value===I.id,onClick:P=>d(I.id)},null,8,["voiceName","isSelected","onClick"]))),128))]),p.showSelectedInfo?(e.openBlock(),e.createElementBlock("div",Jt,[e.createElementVNode("p",null,"Selected: "+e.toDisplayString(((f=a.value)==null?void 0:f.name)||"None"),1)])):e.createCommentVNode("",!0)])}}}),Yt={class:"freddy-voice-selection__container"},Xt={class:"freddy-voice-selection__icon-container"},en={class:"freddy-voice-selection__icon"},on={class:"freddy-voice-selection__play-background"},tn={class:"freddy-voice-selection__name-container"},nn={class:"freddy-voice-selection__name-wrapper"},ln={class:"freddy-voice-selection__name"},sn={key:0,class:"freddy-voice-selection__check-icon"},rn={key:1,class:"freddy-voice-selection__indicator"},K=e.defineComponent({__name:"VoiceSelection",props:{voiceName:{},isSelected:{type:Boolean,default:!1}},emits:["handleClick"],setup(m,{emit:u}){const s=u,i=l=>{s("handleClick",l)};return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-voice-selection",{"freddy-voice-selection--selected":l.isSelected}]),onClick:i},[e.createElementVNode("div",Yt,[e.createElementVNode("div",Xt,[e.createElementVNode("div",en,[e.createElementVNode("div",on,[e.createVNode(t.IconRevertedTriangle,{class:"freddy-voice-selection__triangle-icon"})])])]),e.createElementVNode("div",tn,[e.createElementVNode("div",nn,[e.createElementVNode("div",ln,e.toDisplayString(l.voiceName),1)])]),l.isSelected?(e.openBlock(),e.createElementBlock("div",sn,[e.createVNode(t.IconTick,{class:"freddy-voice-selection__check-icon-svg"})])):(e.openBlock(),e.createElementBlock("div",rn))])],2))}}),an=["innerHTML"],cn={key:1},T=e.defineComponent({__name:"Tooltip",props:{text:{},placement:{},html:{type:Boolean},contentClass:{}},setup(m){t.useTheme();const u=e.ref(!1),s=e.ref(!1),i=e.ref(null);let l=null;function r(){l&&clearTimeout(l),l=setTimeout(()=>{if(i.value){const d=i.value.getBoundingClientRect();s.value=d.top<150}u.value=!0},200)}function a(){l&&clearTimeout(l),u.value=!1}return(d,p)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tooltipWrapper",ref:i,class:"tooltip-wrapper",onMouseenter:r,onMouseleave:a,onFocusin:r,onFocusout:a,tabindex:"0"},[e.renderSlot(d.$slots,"default"),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[u.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tooltip-content",[d.placement,s.value?"force-bottom":"",d.contentClass]])},[e.renderSlot(d.$slots,"content",{},()=>[d.html?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:d.text},null,8,an)):(e.openBlock(),e.createElementBlock("span",cn,e.toDisplayString(d.text),1))])],2)):e.createCommentVNode("",!0)]),_:3})],544))}}),dn=["disabled","aria-disabled","aria-label"],un={key:0,class:"freddy-plugins-button-label"},_n={key:1,class:"freddy-plugins-button-label"},pn=["disabled","aria-disabled","aria-label"],mn={key:0,class:"freddy-plugins-button-label"},vn={key:1,class:"freddy-plugins-button-label"},hn=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(m,{emit:u}){const s=m,i={IconSearch:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_116)),IconUser:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_140)),IconDelete:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_42)),IconSend:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_119)),IconPlus:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_101)),IconEdit:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_50)),IconCross:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_37)),IconTick:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_139)),IconArrowLeft:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_6)),IconArrowDown:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_5)),IconArrowUp:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_7)),IconChevronDown:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_19)),IconChevronUp:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_22)),IconChevronLeft:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_20)),IconChevronRight:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_21)),IconSettings:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_120)),IconHome:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_71)),IconDownload:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_47)),IconRefresh:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_112)),IconCopy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_36)),IconEye:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_54)),IconLock:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_83)),IconStar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_127)),IconFilter:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_60)),IconFile:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_57)),IconFolder:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_61)),IconText:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_134)),IconLink04:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(v=>v.__vite_glob_0_79))},l=e.computed(()=>s.leftIcon&&i[s.leftIcon]||null),r=e.computed(()=>s.rightIcon&&i[s.rightIcon]||null),a=u,d=e.ref(!1),p=e.computed(()=>["freddy-plugins-base-button",`freddy-plugins-base-button--${s.size}`,`freddy-plugins-base-button--${s.hierarchy}`,{"freddy-plugins-base-button--disabled":s.disabled,"freddy-plugins-base-button--loading":s.loading,"freddy-plugins-base-button--icon-only":s.iconOnly,"freddy-plugins-base-button--error":s.errorState,"freddy-plugins-base-button--hover":d.value&&!s.disabled&&!s.loading,"freddy-plugins-base-button--focused":s.state==="focused"}]),h=v=>{!s.disabled&&!s.loading&&a("click",v)},f=v=>{!s.disabled&&!s.loading&&a("leftIconClick",v)},I=v=>{!s.disabled&&!s.loading&&a("rightIconClick",v)},P=()=>{d.value=!0},V=()=>{d.value=!1};return(v,B)=>v.tooltip?(e.openBlock(),e.createBlock(T,{key:0,text:v.tooltip,placement:v.tooltipPlacement},{default:e.withCtx(()=>[e.createElementVNode("button",{class:e.normalizeClass(p.value),disabled:v.disabled||v.loading,"aria-disabled":v.disabled||v.loading,"aria-label":v.iconOnly?v.label:void 0,role:"button",onClick:h,onMouseenter:P,onMouseleave:V},[v.loading?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[B[0]||(B[0]=e.createElementVNode("span",{class:"freddy-plugins-button-spinner","aria-hidden":"true"},null,-1)),v.loadingText||v.label?(e.openBlock(),e.createElementBlock("span",un,e.toDisplayString(v.loadingText||v.label),1)):e.createCommentVNode("",!0)],64)):v.iconOnly?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value),{key:1,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-center",`freddy-plugins-button-icon--${v.size}`]),"aria-hidden":"true"},null,8,["class"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[v.leftIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value),{key:0,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-left",`freddy-plugins-button-icon--${v.size}`]),"aria-hidden":"true",onClick:e.withModifiers(f,["stop"])},null,8,["class"])):e.createCommentVNode("",!0),v.label?(e.openBlock(),e.createElementBlock("span",_n,e.toDisplayString(v.label),1)):e.createCommentVNode("",!0),v.rightIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{key:2,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-right",`freddy-plugins-button-icon--${v.size}`]),"aria-hidden":"true",onClick:e.withModifiers(I,["stop"])},null,8,["class"])):e.createCommentVNode("",!0)],64))],42,dn)]),_:1},8,["text","placement"])):(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(p.value),disabled:v.disabled||v.loading,"aria-disabled":v.disabled||v.loading,"aria-label":v.iconOnly?v.label:void 0,role:"button",onClick:h,onMouseenter:P,onMouseleave:V},[v.loading?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[B[1]||(B[1]=e.createElementVNode("span",{class:"freddy-plugins-button-spinner","aria-hidden":"true"},null,-1)),v.loadingText||v.label?(e.openBlock(),e.createElementBlock("span",mn,e.toDisplayString(v.loadingText||v.label),1)):e.createCommentVNode("",!0)],64)):v.iconOnly?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value),{key:1,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-center",`freddy-plugins-button-icon--${v.size}`]),"aria-hidden":"true"},null,8,["class"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[v.leftIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value),{key:0,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-left",`freddy-plugins-button-icon--${v.size}`]),"aria-hidden":"true",onClick:e.withModifiers(f,["stop"])},null,8,["class"])):e.createCommentVNode("",!0),v.label?(e.openBlock(),e.createElementBlock("span",vn,e.toDisplayString(v.label),1)):e.createCommentVNode("",!0),v.rightIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{key:2,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-right",`freddy-plugins-button-icon--${v.size}`]),"aria-hidden":"true",onClick:e.withModifiers(I,["stop"])},null,8,["class"])):e.createCommentVNode("",!0)],64))],42,pn))}}),j=t._export_sfc(hn,[["__scopeId","data-v-ca53fa07"]]),fn=["disabled","aria-label","onClick"],gn={key:0,class:"freddy-plugins-social-button-label"},yn=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(m,{emit:u}){const s=m,i=u,l={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"}}}},r=e.computed(()=>["freddy-plugins-social-buttons",`freddy-plugins-social-buttons--${s.layout}`,`freddy-plugins-social-buttons--${s.size}`,{"freddy-plugins-social-buttons--disabled":s.disabled},s.class]),a=f=>l[f].icon,d=f=>l[f].label,p=f=>["freddy-plugins-social-button",`freddy-plugins-social-button--${s.variant}`,`freddy-plugins-social-button--${s.size}`,`freddy-plugins-social-button--${f}`,{"freddy-plugins-social-button--disabled":s.disabled,"freddy-plugins-social-button--icon-only":s.iconOnly}],h=(f,I)=>{s.disabled||i("click",f,I)};return(f,I)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(r.value),style:e.normalizeStyle(f.style)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.providers,P=>(e.openBlock(),e.createElementBlock("button",{key:P,class:e.normalizeClass(p(P)),disabled:f.disabled,"aria-label":f.iconOnly?d(P):void 0,role:"button",onClick:V=>h(P,V)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a(P)),{class:"freddy-plugins-social-button-icon","aria-hidden":"true"})),f.iconOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",gn,e.toDisplayString(d(P)),1))],10,fn))),128))],6))}}),bn=t._export_sfc(yn,[["__scopeId","data-v-22e5ee7c"]]),kn=["innerHTML"],Q="nord",In=e.defineComponent({__name:"CodeBlock",props:{code:{},language:{}},setup(m){const u=m,s=e.ref("");let i=null,l=null;const r=async()=>{try{if(typeof window<"u"&&window.shiki){l=window.shiki.createHighlighter;return}}catch{}},a=["js","ts","json","python","vue","html","css","scss","bash","yaml","markdown","c","cpp","java","go","php","ruby","rust","swift","kotlin"],d=async()=>{if(l||await r(),!l){s.value=`<pre><code>${u.code.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}</code></pre>`;return}try{i||(i=await l({themes:[Q],langs:a})),s.value=i.codeToHtml(u.code,{lang:u.language,theme:Q})}catch{s.value=`<pre><code>${u.code.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}</code></pre>`}};return e.watch(()=>[u.code,u.language],d,{immediate:!0}),e.onMounted(d),(p,h)=>(e.openBlock(),e.createElementBlock("pre",null,[e.createElementVNode("code",{innerHTML:s.value},null,8,kn)]))}}),Cn=["aria-checked","aria-disabled","aria-label"],wn=["checked","disabled"],Bn={key:0,class:"freddy-plugins-checkbox-dash"},En={key:1,class:"freddy-plugins-checkbox-icon",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pn=["stroke"],Vn=e.defineComponent({__name:"CustomCheckbox",props:{isChecked:{type:Boolean},isDashInput:{type:Boolean},blueCheckbox:{type:Boolean},disabled:{type:Boolean},ariaLabel:{}},emits:["update:isChecked"],setup(m,{emit:u}){t.useTheme();const s=m,i=u;function l(r){const a=r.target;s.disabled||i("update:isChecked",a.checked)}return(r,a)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["freddy-plugins-base-checkbox",{"freddy-plugins-checked":r.isChecked&&!r.blueCheckbox,"freddy-plugins-checked-blue":r.isChecked&&r.blueCheckbox,"freddy-plugins-not-checked":!r.isChecked,"freddy-plugins-is-disabled":r.disabled}]),"aria-checked":r.isChecked,"aria-disabled":r.disabled,"aria-label":r.ariaLabel,role:"checkbox"},[e.createElementVNode("input",{id:"checkbox-input",type:"checkbox",class:"freddy-plugins-checkbox-input",checked:r.isChecked,disabled:r.disabled,onChange:l},null,40,wn),r.isDashInput&&r.isChecked?(e.openBlock(),e.createElementBlock("span",Bn)):r.isChecked&&!r.isDashInput?(e.openBlock(),e.createElementBlock("svg",En,[e.createElementVNode("path",{d:"M10 3L4.5 8.5L2 6",stroke:r.blueCheckbox?"var(--text-50, var(--text-inverse))":"#000","stroke-width":"1.6666","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Pn)])):e.createCommentVNode("",!0)],10,Cn))}});class Nn{constructor(u){z(this,"apiKey",null);z(this,"baseUrl","https://api.openai.com/v1");this.apiKey=u||this.getApiKeyFromEnv()||"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"}getApiKeyFromEnv(){return typeof window<"u"?localStorage.getItem("openai_api_key")||null:process.env.OPENAI_API_KEY||null}setApiKey(u){this.apiKey=u,typeof window<"u"&&localStorage.setItem("openai_api_key",u)}getSmartSystemPrompt(){return`You are an AI assistant that helps with text editing, code improvement, and content generation. You excel at working with JavaScript, HTML, CSS, JSON, and all programming languages. Analyze the user's request and respond with the appropriate action.
|
|
34
|
+
278.436,375.599 383.003,264.076 364.393,251.618 264.807,364.928 "></polygon></g></g></g></g>`,1)])],6))}}),Be={key:0,class:"fixed z-[9998] top-0 left-0 w-full h-full bg-modalBackgroundBlur flex justify-center items-center"},Ee={class:"flex justify-center items-center"},Se={class:"modal-header"},Ve={class:"modal-body"},Ne={class:"modal-footer"},Te=e.defineComponent({__name:"AdvancedModal",props:{isVisible:{type:Boolean},largeModel:{type:Boolean}},setup(h){return(_,s)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[_.isVisible?(e.openBlock(),e.createElementBlock("div",Be,[e.createElementVNode("div",Ee,[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":_.largeModel})},[e.createElementVNode("div",Se,[e.renderSlot(_.$slots,"header")]),e.createElementVNode("div",Ve,[e.renderSlot(_.$slots,"body")]),e.createElementVNode("div",Ne,[e.renderSlot(_.$slots,"footer")])],2)])])):e.createCommentVNode("",!0)]),_:3}))}}),qe={class:"freddy-assistant-field__content"},$e={class:"freddy-assistant-field__header"},De={class:"freddy-assistant-field__name"},xe={class:"freddy-assistant-field__date"},Ae={class:"freddy-assistant-field__footer"},Fe={class:"freddy-assistant-field__id"},Me={key:0,class:"freddy-assistant-field__privacy-icon"},Le=e.defineComponent({__name:"AssistantField",props:{name:{default:"Name of the assistant"},date:{default:"mar 2024"},assistantId:{default:"Ass_id.asdasddas"},isDefault:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1}},emits:["assistantFieldClick"],setup(h,{emit:_}){const s=_,r=l=>{s("assistantFieldClick",l)};return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-assistant-field",{"freddy-assistant-field--selected":l.isSelected}]),onClick:r},[e.createElementVNode("div",qe,[e.createElementVNode("div",$e,[e.createElementVNode("div",De,e.toDisplayString(l.name),1),e.createElementVNode("div",xe,e.toDisplayString(l.date),1)]),e.createElementVNode("div",Ae,[e.createElementVNode("div",Fe,e.toDisplayString(l.assistantId),1),l.isDefault?(e.openBlock(),e.createElementBlock("div",Me,[e.createVNode(e.unref(n.IconLock),{class:"freddy-assistant-field__lock-icon"})])):e.createCommentVNode("",!0)])])],2))}}),Y=n._export_sfc(Le,[["__scopeId","data-v-482ea9be"]]),ze={class:"freddy-assistant-list"},Re={class:"freddy-assistant-list__container"},Oe=e.defineComponent({__name:"AssistantList",props:{assistants:{default:()=>[]},selectedAssistantId:{default:null}},emits:["assistantClick"],setup(h,{emit:_}){const s=h,r=_,l=e.ref(s.selectedAssistantId),a=e.computed(()=>{const u=s.selectedAssistantId??l.value;return s.assistants.map(d=>({...d,isSelected:d.assistantId===u}))}),c=(u,d)=>{l.value=u.assistantId,r("assistantClick",u,d)};return(u,d)=>(e.openBlock(),e.createElementBlock("div",ze,[e.createElementVNode("div",Re,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(t,f)=>(e.openBlock(),e.createBlock(e.unref(Y),{key:t.id||f,name:t.name,date:t.date,assistantId:t.assistantId,isDefault:t.isDefault,isSelected:t.isSelected,onAssistantFieldClick:y=>c(t,y)},null,8,["name","date","assistantId","isDefault","isSelected","onAssistantFieldClick"]))),128))])]))}}),He=n._export_sfc(Oe,[["__scopeId","data-v-37cf8653"]]),U=(h,_,s)=>{const r=h[_];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((l,a)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(a.bind(null,new Error("Unknown variable dynamic import: "+_+(_.split("/").length!==s?". Note that variables only represent file names one level deep.":""))))})},Ue={class:"freddy-assistants-header"},Ke={key:0,class:"freddy-assistants-header__avatar"},je=["src"],Ge={key:1,class:"freddy-assistants-header__icon-with-edit"},We={key:2,class:"freddy-assistants-header__side-icon"},Ze={class:"freddy-assistants-header__content"},Je={class:"freddy-assistants-header__content-inner"},Qe={class:"freddy-assistants-header__text-content"},Ye={class:"freddy-assistants-header__id-badge"},Xe={class:"freddy-assistants-header__actions"},eo=e.defineComponent({__name:"AssistantsHeader",props:{assistantImage:{default:void 0},assistantIcon:{default:"IconRobotScreen"},assistantId:{default:"assistant ID"}},emits:["edit","playground"],setup(h,{emit:_}){const s=h,r=_,l=d=>{r("edit",d)},a=d=>{r("playground",d)},c=d=>d?e.defineAsyncComponent(()=>U(Object.assign({"../../icons/IconAddFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_0),"../../icons/IconAddPeople.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_1),"../../icons/IconAitronos.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_2),"../../icons/IconApple.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_3),"../../icons/IconApplePay.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_4),"../../icons/IconArrowDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_5),"../../icons/IconArrowLeft.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_6),"../../icons/IconArrowUp.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_7),"../../icons/IconBadgeCheck.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_8),"../../icons/IconBroom.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_9),"../../icons/IconBuildings.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_10),"../../icons/IconCalendarWithTickInside.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_11),"../../icons/IconCallNotAllowed.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_12),"../../icons/IconCardPay.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_13),"../../icons/IconCaution.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_14),"../../icons/IconChangeLog.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_15),"../../icons/IconCheckCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_16),"../../icons/IconCheckInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_17),"../../icons/IconCheckRounded.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_18),"../../icons/IconChevronDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_19),"../../icons/IconChevronLeft.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_20),"../../icons/IconChevronRight.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_21),"../../icons/IconChevronUp.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_22),"../../icons/IconCircledCheck.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_23),"../../icons/IconClock.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_24),"../../icons/IconClosedEnvelope.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_25),"../../icons/IconCloudUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_26),"../../icons/IconConnectorConfluence.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_27),"../../icons/IconConnectorFigma.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_28),"../../icons/IconConnectorFreshDesk.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_29),"../../icons/IconConnectorGitHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_30),"../../icons/IconConnectorJira.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_31),"../../icons/IconConnectorLinear.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_32),"../../icons/IconConnectorNotion.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_33),"../../icons/IconConnectorSlack.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_34),"../../icons/IconConnectorZapier.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_35),"../../icons/IconCopy.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_36),"../../icons/IconCross.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_37),"../../icons/IconCrossCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_38),"../../icons/IconCrossInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_39),"../../icons/IconCurrentTick.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_40),"../../icons/IconDataUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_41),"../../icons/IconDelete.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_42),"../../icons/IconDeleteFillRed.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_43),"../../icons/IconDialingPhone.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_44),"../../icons/IconDisabledAlert.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_45),"../../icons/IconDocumentation.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_46),"../../icons/IconDownload.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_47),"../../icons/IconDribbble.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_48),"../../icons/IconDropdownArrow.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_49),"../../icons/IconEdit.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_50),"../../icons/IconEditLinePath.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_51),"../../icons/IconEllipse.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_52),"../../icons/IconExcelThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_53),"../../icons/IconEye.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_54),"../../icons/IconFacebook.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_55),"../../icons/IconFigma.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_56),"../../icons/IconFile.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_57),"../../icons/IconFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_58),"../../icons/IconFileUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_59),"../../icons/IconFilter.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_60),"../../icons/IconFolder.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_61),"../../icons/IconFreddyHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_62),"../../icons/IconFreddyHubLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_63),"../../icons/IconFreddyHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_64),"../../icons/IconFreddyHubTitle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_65),"../../icons/IconFreddySmall.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_66),"../../icons/IconGlobExpand.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_67),"../../icons/IconGlobe.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_68),"../../icons/IconGoogle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_69),"../../icons/IconHollowCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_70),"../../icons/IconHome.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_71),"../../icons/IconInfoRounded.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_72),"../../icons/IconInvalidInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_73),"../../icons/IconInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_74),"../../icons/IconInvoiceSwitch.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_75),"../../icons/IconLapTableBottom.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_76),"../../icons/IconLense.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_77),"../../icons/IconLightCross.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_78),"../../icons/IconLink04.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_79),"../../icons/IconLoadingError.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_80),"../../icons/IconLoadingOrg.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_81),"../../icons/IconLocationWithCircleIn.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_82),"../../icons/IconLock.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_83),"../../icons/IconMarketPlace.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_84),"../../icons/IconMaximize.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_85),"../../icons/IconMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_86),"../../icons/IconMutedMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_87),"../../icons/IconNewNotification.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_88),"../../icons/IconNewTab.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_89),"../../icons/IconNotification.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_90),"../../icons/IconOpenBook.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_91),"../../icons/IconPaperAirPlane.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_92),"../../icons/IconPauseCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_93),"../../icons/IconPdfThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_94),"../../icons/IconPenEdit.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_95),"../../icons/IconPencil.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_96),"../../icons/IconPeopleHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_97),"../../icons/IconPersonCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_98),"../../icons/IconPits.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_99),"../../icons/IconPlay.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_100),"../../icons/IconPlus.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_101),"../../icons/IconPolygonDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_102),"../../icons/IconPresentation.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_103),"../../icons/IconProgressBase.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_104),"../../icons/IconProgressComplete.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_105),"../../icons/IconProgressGoing.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_106),"../../icons/IconPurpose.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_107),"../../icons/IconPurseCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_108),"../../icons/IconQuestion.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_109),"../../icons/IconRadio.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_110),"../../icons/IconRadioFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_111),"../../icons/IconRefresh.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_112),"../../icons/IconRevertedTriangle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_113),"../../icons/IconRobotScreen.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_114),"../../icons/IconRoundTick.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_115),"../../icons/IconSearch.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_116),"../../icons/IconSearchOptimised.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_117),"../../icons/IconSectionHide.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_118),"../../icons/IconSend.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_119),"../../icons/IconSettings.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_120),"../../icons/IconSettingsBold.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_121),"../../icons/IconSize.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_122),"../../icons/IconSliderKnobs.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_123),"../../icons/IconSortIdle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_124),"../../icons/IconSparkle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_125),"../../icons/IconSpotlio.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_126),"../../icons/IconStar.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_127),"../../icons/IconStatistics.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_128),"../../icons/IconStopChat.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_129),"../../icons/IconStreamLineHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_130),"../../icons/IconStreamLineHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_131),"../../icons/IconSun.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_132),"../../icons/IconSwap.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_133),"../../icons/IconText.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_134),"../../icons/IconTextThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_135),"../../icons/IconThinDocument.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_136),"../../icons/IconThinFile.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_137),"../../icons/IconThumbsDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_138),"../../icons/IconTick.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_139),"../../icons/IconUser.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_140),"../../icons/IconVerticalDots.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_141),"../../icons/IconVideoCamera.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_142),"../../icons/IconWarningOctal.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_143),"../../icons/IconX.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_144),"../../icons/IconZip.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_145)}),`../../icons/${d}.vue`,4).catch(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_114))):n.IconRobotScreen,u=e.computed(()=>c(s.assistantIcon));return(d,t)=>(e.openBlock(),e.createElementBlock("div",Ue,[e.createElementVNode("div",{class:e.normalizeClass(["freddy-assistants-header__avatar-section",{"freddy-assistants-header__avatar-section--with-image":d.assistantImage,"freddy-assistants-header__avatar-section--no-image":!d.assistantImage}])},[d.assistantImage?(e.openBlock(),e.createElementBlock("div",Ke,[e.createElementVNode("img",{src:d.assistantImage,alt:"Assistant Avatar",class:"freddy-assistants-header__avatar-image"},null,8,je),e.createElementVNode("button",{class:"freddy-assistants-header__edit-overlay",onClick:l},[e.createVNode(e.unref(n.IconEdit),{class:"freddy-assistants-header__edit-icon"})])])):(e.openBlock(),e.createElementBlock("div",Ge,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.value),{class:"freddy-assistants-header__icon-component"})),e.createElementVNode("button",{class:"freddy-assistants-header__edit-overlay-icon",onClick:l},[e.createVNode(e.unref(n.IconEdit),{class:"freddy-assistants-header__edit-icon"})])])),d.assistantImage&&d.assistantIcon?(e.openBlock(),e.createElementBlock("div",We,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.value),{class:"freddy-assistants-header__side-icon-component"}))])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",Ze,[e.createElementVNode("div",Je,[e.createElementVNode("div",Qe,[e.createElementVNode("div",Ye,e.toDisplayString(d.assistantId||"assistant ID"),1)])])]),e.createElementVNode("div",Xe,[e.createElementVNode("button",{class:"freddy-assistants-header__playground-button",onClick:a},[e.createVNode(e.unref(n.IconNewTab),{class:"freddy-assistants-header__playground-icon"}),t[0]||(t[0]=e.createElementVNode("span",{class:"freddy-assistants-header__playground-label"},"Playground",-1))])])]))}}),oo=["src","alt"],to={key:0,class:"freddy-avatar-choosing__border"},no={key:1,class:"freddy-avatar-choosing__check-icon"},X=e.defineComponent({__name:"AvatarChoosing",props:{imageUrl:{},isSelected:{type:Boolean,default:!1},altText:{default:"Avatar"},backgroundColor:{default:"#cfcbdc"}},emits:["click"],setup(h,{emit:_}){const s=_,r=l=>{s("click",l)};return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-avatar-choosing",{"freddy-avatar-choosing--selected":l.isSelected}]),onClick:r},[e.createElementVNode("div",{class:"freddy-avatar-choosing__background",style:e.normalizeStyle({backgroundColor:l.backgroundColor})},null,4),e.createElementVNode("img",{src:l.imageUrl,alt:l.altText,class:"freddy-avatar-choosing__image"},null,8,oo),l.isSelected?(e.openBlock(),e.createElementBlock("div",to)):e.createCommentVNode("",!0),l.isSelected?(e.openBlock(),e.createElementBlock("div",no,[e.createVNode(n.IconTick,{class:"freddy-avatar-choosing__check-icon-svg"})])):e.createCommentVNode("",!0)],2))}}),io={class:"freddy-avatar-list"},lo={key:0,class:"freddy-avatar-list__title"},so={class:"freddy-avatar-list__grid"},ro={key:1,class:"freddy-avatar-list__selected-info"},ao=e.defineComponent({__name:"AvatarList",props:{avatars:{},title:{default:""},showSelectedInfo:{type:Boolean,default:!0},allowDeselect:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1}},emits:["selectionChange","avatarClick"],setup(h,{expose:_,emit:s}){const r=h,l=s,a=e.ref(null),c=e.computed(()=>r.avatars.find(d=>d.id===a.value)||null),u=d=>{a.value===d&&r.allowDeselect?a.value=null:a.value=d,l("selectionChange",a.value),l("avatarClick",d,a.value===d)};return _({selectedAvatarId:a,selectedAvatar:c,selectAvatar:d=>{a.value=d,l("selectionChange",d)},clearSelection:()=>{a.value=null,l("selectionChange",null)}}),(d,t)=>{var f;return e.openBlock(),e.createElementBlock("div",io,[d.title?(e.openBlock(),e.createElementBlock("h3",lo,e.toDisplayString(d.title),1)):e.createCommentVNode("",!0),e.createElementVNode("div",so,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.avatars,y=>(e.openBlock(),e.createBlock(e.unref(X),{key:y.id,imageUrl:y.url,isSelected:a.value===y.id,altText:y.name,onClick:E=>u(y.id)},null,8,["imageUrl","isSelected","altText","onClick"]))),128))]),d.showSelectedInfo?(e.openBlock(),e.createElementBlock("div",ro,[e.createElementVNode("p",null,"Selected: "+e.toDisplayString(((f=c.value)==null?void 0:f.name)||"None"),1)])):e.createCommentVNode("",!0)])}}}),co={class:"freddy-choose-assistant-avatar"},uo={class:"freddy-choose-assistant-avatar__header"},_o={class:"freddy-choose-assistant-avatar__title-section"},po={class:"freddy-choose-assistant-avatar__title-row"},vo={class:"freddy-choose-assistant-avatar__title"},mo=["aria-label"],ho={class:"freddy-choose-assistant-avatar__description"},fo={class:"freddy-choose-assistant-avatar__content"},go={class:"freddy-choose-assistant-avatar__section"},yo={class:"freddy-choose-assistant-avatar__icon-container"},bo={class:"freddy-choose-assistant-avatar__icon-search"},Io=["aria-label"],ko={class:"freddy-choose-assistant-avatar__icon-grid"},Co=["onClick","title"],Po={class:"freddy-choose-assistant-avatar__icon-wrapper"},wo={key:1,class:"freddy-choose-assistant-avatar__icon-placeholder"},Bo={class:"freddy-choose-assistant-avatar__section"},Eo={class:"freddy-choose-assistant-avatar__voice-list"},So={class:"freddy-choose-assistant-avatar__actions"},Vo=["disabled"],No=e.defineComponent({__name:"ChooseAssistantAvatar",props:{title:{default:"Choose your assistant"},description:{default:"Choose your assistant's appearance and select a preferred voice."},icons:{default:()=>[]},faces:{},voices:{default:()=>[{id:1,name:"Alloy"},{id:2,name:"Echo"},{id:3,name:"Fable"},{id:4,name:"Onyx"},{id:5,name:"Nova"},{id:6,name:"Shimmer"},{id:7,name:"Aurora"},{id:8,name:"Phoenix"}]},searchPlaceholder:{default:"Search icon"},cancelButtonText:{default:"Cancel"},saveButtonText:{default:"Save"},closeButtonAriaLabel:{default:"Close dialog"},searchButtonAriaLabel:{default:"Search icons"},uploadButtonAriaLabel:{default:"Upload custom icon"},allowMultipleSelection:{type:Boolean,default:!1}},emits:["close","cancel","save","iconSelect","faceSelect","voiceSelect","searchInput","searchClick","uploadClick"],setup(h,{expose:_,emit:s}){const r=h,l=()=>{const o=[];let v=1;for(const[C,I]of Object.entries(n.Icons))if(typeof I=="object"&&I&&"default"in I){const i=I.default;o.push({id:v++,name:C.replace("Icon",""),iconName:C,component:i})}return o},a=e.computed(()=>r.icons.length>0?r.icons:l()),c=s,u=e.ref(null),d=e.ref(null),t=e.ref(null),f=e.ref(""),y=e.computed(()=>f.value?a.value.filter(v=>{var C;return(C=v.name)==null?void 0:C.toLowerCase().includes(f.value.toLowerCase())}):a.value),E=e.computed(()=>u.value!==null||d.value!==null||t.value!==null),S=()=>{c("close")},m=()=>{c("cancel")},P=()=>{E.value&&c("save",{selectedIconId:u.value,selectedFaceId:d.value,selectedVoiceId:t.value})},b=o=>{u.value=o.id,c("iconSelect",o)},k=o=>{t.value=o.id,c("voiceSelect",o)},g=o=>{f.value=o||"",c("searchInput",o||"")},w=()=>{c("uploadClick")},p=o=>n.Icons[o]||n.IconRobotScreen;return _({selectedIconId:u,selectedFaceId:d,selectedVoiceId:t,resetSelections:()=>{u.value=null,d.value=null,t.value=null}}),(o,v)=>(e.openBlock(),e.createElementBlock("div",co,[e.createElementVNode("div",uo,[e.createElementVNode("div",_o,[e.createElementVNode("div",po,[e.createElementVNode("h1",vo,e.toDisplayString(o.title),1),e.createElementVNode("button",{class:"freddy-choose-assistant-avatar__close-button",onClick:S,"aria-label":o.closeButtonAriaLabel},[e.createVNode(e.unref(n.IconCross),{class:"freddy-choose-assistant-avatar__close-icon"})],8,mo)])]),e.createElementVNode("p",ho,e.toDisplayString(o.description),1)]),e.createElementVNode("div",fo,[e.createElementVNode("div",go,[v[1]||(v[1]=e.createElementVNode("h3",{class:"freddy-choose-assistant-avatar__section-title"}," Choose the icon ",-1)),e.createElementVNode("div",yo,[e.createElementVNode("div",bo,[e.createElementVNode("button",{class:"freddy-choose-assistant-avatar__search-button",onClick:w,"aria-label":o.uploadButtonAriaLabel},[e.createVNode(e.unref(n.IconDataUpload),{class:"freddy-choose-assistant-avatar__upload-icon"})],8,Io),e.createVNode(e.unref(F),{searchInput:f.value,"onUpdate:searchInput":[v[0]||(v[0]=C=>f.value=C),g],placeholder:o.searchPlaceholder,class:"freddy-choose-assistant-avatar__search-input-wrapper"},null,8,["searchInput","placeholder"])]),e.createElementVNode("div",ko,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(C,I)=>{var i;return e.openBlock(),e.createElementBlock("div",{key:C.id||I,class:e.normalizeClass(["freddy-choose-assistant-avatar__icon-item",{"freddy-choose-assistant-avatar__icon-item--selected":u.value===C.id}]),onClick:V=>b(C),title:C.name},[e.createElementVNode("div",Po,[C.component||C.iconName?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C.component||(C.iconName?p(C.iconName):null)),{key:0,class:"freddy-choose-assistant-avatar__icon-svg"})):(e.openBlock(),e.createElementBlock("div",wo,e.toDisplayString(((i=C.name)==null?void 0:i.charAt(0))||"?"),1))])],10,Co)}),128))])])]),v[3]||(v[3]=e.createElementVNode("div",{class:"freddy-choose-assistant-avatar__section"},[e.createElementVNode("h3",{class:"freddy-choose-assistant-avatar__section-title"}," Choose the face "),e.createElementVNode("div",{class:"freddy-choose-assistant-avatar__face-grid"})],-1)),e.createElementVNode("div",Bo,[v[2]||(v[2]=e.createElementVNode("h3",{class:"freddy-choose-assistant-avatar__section-title"}," Choose the voice ",-1)),e.createElementVNode("div",Eo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.voices,(C,I)=>(e.openBlock(),e.createBlock(e.unref(K),{key:C.id||I,voiceName:C.name,isSelected:t.value===C.id,onClick:i=>k(C)},null,8,["voiceName","isSelected","onClick"]))),128))])]),e.createElementVNode("div",So,[e.createElementVNode("button",{class:"freddy-choose-assistant-avatar__cancel-button",onClick:m},e.toDisplayString(o.cancelButtonText),1),e.createElementVNode("button",{class:"freddy-choose-assistant-avatar__save-button",onClick:P,disabled:!E.value},e.toDisplayString(o.saveButtonText),9,Vo)])])]))}}),To=["onClick","aria-selected","onKeydown"],qo={class:"freddy-plugin-menu-button-label"},$o={key:0,class:"freddy-plugin-menu-button-badge"},ee=e.defineComponent({__name:"BaseTabButton",props:{tabList:{},currentTab:{default:0},activeStateType:{default:"bottom-dash"},orientation:{default:"horizontal"},fullWidth:{type:Boolean,default:!1}},emits:["tabSwitch"],setup(h,{emit:_}){const s=h,r=_,l=e.computed(()=>s.activeStateType||"bottom-dash"),a=e.computed(()=>s.orientation||"horizontal"),c=e.computed(()=>{const t=a.value,f=l.value;return t==="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}),u=e.ref(s.currentTab);e.watch(()=>s.currentTab,t=>{u.value=t});const d=t=>{u.value!==t.id&&(u.value=t.id,r("tabSwitch",t.id))};return(t,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-plugin-nav-bar",`freddy-plugin-nav-bar--${a.value}`,`freddy-plugin-nav-bar--${c.value}`,{"freddy-plugin-nav-bar--full-width":s.fullWidth}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.tabList,(y,E)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["freddy-plugin-menu-button",`freddy-plugin-menu-button--${c.value}`,{"freddy-plugin-menu-button--active":u.value===y.id},{"freddy-plugin-menu-button--full-width":s.fullWidth}]),key:E,onClick:S=>d(y),"aria-selected":u.value===y.id,role:"tab",tabindex:"0",onKeydown:[e.withKeys(S=>d(y),["enter"]),e.withKeys(e.withModifiers(S=>d(y),["prevent"]),["space"])]},[e.createElementVNode("span",qo,e.toDisplayString(y.title),1),y.badge!==void 0?(e.openBlock(),e.createElementBlock("span",$o,e.toDisplayString(y.badge),1)):e.createCommentVNode("",!0),c.value==="bottom-dash"&&u.value===y.id?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass({"freddy-plugin-active-tab-bottom":u.value===y.id})},null,2)):e.createCommentVNode("",!0)],42,To))),128))],2))}}),Do={class:"rules-management"},xo={class:"rules-header"},Ao={class:"header-actions"},Fo={class:"search-wrapper"},Mo=["onKeydown"],Lo={class:"tabs-container",role:"tablist","aria-label":"Rules filter tabs"},zo=["id","aria-labelledby"],Ro={class:"rules-table",role:"table","aria-label":"Rules list"},Oo={class:"col-dependencies",scope:"col"},Ho={class:"info-icon",title:"Number of dependent rules","aria-label":"Information about dependencies",role:"img"},Uo={class:"rule-info"},Ko={class:"rule-title"},jo={class:"rule-description"},Go=["aria-label"],Wo={class:"dependencies-count"},Zo=["aria-label"],Jo={class:"creator-info"},Qo={class:"creator-wrapper"},Yo=["src","alt"],Xo={class:"creator-details"},et={class:"creator-name"},ot={class:"creator-username"},tt={class:"action-cell"},nt=["aria-label"],it={class:"action-icons"},lt=["onClick","onKeydown","aria-label"],st=["onClick","onKeydown","aria-label"],rt={class:"pagination-container",role:"navigation","aria-label":"Pagination"},at=["disabled","onKeydown","tabindex"],ct={class:"page-numbers",role:"list","aria-label":"Page numbers"},dt=["onClick","onKeydown","disabled","aria-label","aria-current","tabindex"],ut=["disabled","onKeydown","tabindex"],_t=e.defineComponent({__name:"RulesManagement",props:{rules:{default:()=>[]},tabs:{default:()=>[{id:"all",label:"All Rules",count:43},{id:"my",label:"My Rules",count:5},{id:"others",label:"Other's Rules",count:8},{id:"current",label:"Current Assistant",count:6}]},initialTab:{default:"all"},totalPages:{default:10}},emits:["search","createRule","tabChange","edit","view","pageChange"],setup(h,{emit:_}){const s=h,r=_,l=e.ref(""),a=e.ref(s.initialTab),c=e.ref(1),u=e.computed(()=>s.tabs.map((p,o)=>({id:o+1,title:p.label,badge:p.count,originalId:p.id}))),d=e.computed(()=>{const p=s.tabs.findIndex(o=>o.id===a.value);return p>=0?p+1:1}),t=p=>{const o=u.value.find(v=>v.id===p);o&&o.originalId&&m(o.originalId)},f=e.computed(()=>{if(!l.value)return s.rules;const p=l.value.toLowerCase();return s.rules.filter(o=>{var v;return o.title.toLowerCase().includes(p)||((v=o.description)==null?void 0:v.toLowerCase().includes(p))||o.creator.name.toLowerCase().includes(p)})}),y=e.computed(()=>{const p=[],o=s.totalPages,v=c.value;if(o<=7)for(let C=1;C<=o;C++)p.push(C);else{p.push(1),v>3&&p.push("...");for(let C=Math.max(2,v-1);C<=Math.min(o-1,v+1);C++)p.push(C);v<o-2&&p.push("..."),p.push(o)}return p}),E=()=>{r("search",l.value)},S=()=>{r("createRule")},m=p=>{a.value=p,r("tabChange",p)},P=p=>{r("edit",p)},b=p=>{r("view",p)},k=p=>{c.value=p,r("pageChange",p)},g=()=>{c.value>1&&k(c.value-1)},w=()=>{c.value<s.totalPages&&k(c.value+1)};return(p,o)=>(e.openBlock(),e.createElementBlock("div",Do,[e.createElementVNode("div",xo,[o[3]||(o[3]=e.createElementVNode("div",{class:"header-content"},[e.createElementVNode("h1",{class:"title"},"Rules Management"),e.createElementVNode("p",{class:"subtitle"}," Manage and organize your organization's rules and guidelines ")],-1)),e.createElementVNode("div",Ao,[e.createElementVNode("div",Fo,[e.createVNode(e.unref(n.IconSearch),{class:"search-icon","aria-hidden":"true"}),e.withDirectives(e.createElementVNode("input",{type:"text",class:"search-input",placeholder:"Search","onUpdate:modelValue":o[0]||(o[0]=v=>l.value=v),onInput:E,"aria-label":"Search rules"},null,544),[[e.vModelText,l.value]]),o[1]||(o[1]=e.createElementVNode("kbd",{class:"search-kbd","aria-label":"Keyboard shortcut"},"⌘K",-1))]),e.createElementVNode("button",{class:"create-rule-btn",onClick:S,onKeydown:[e.withKeys(S,["enter"]),e.withKeys(e.withModifiers(S,["prevent"]),["space"])],"aria-label":"Create new rule",tabindex:"0"},[e.createVNode(e.unref(n.IconPlus),{class:"plus-icon","aria-hidden":"true"}),o[2]||(o[2]=e.createTextVNode(" Create Rule ",-1))],40,Mo)])]),e.createElementVNode("div",Lo,[e.createVNode(ee,{tabList:u.value,currentTab:d.value,activeStateType:"bottom-dash",orientation:"horizontal",onTabSwitch:t},null,8,["tabList","currentTab"])]),e.createElementVNode("div",{class:"table-container",role:"tabpanel",id:`tabpanel-${a.value}`,"aria-labelledby":`tab-${a.value}`},[e.createElementVNode("table",Ro,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[o[5]||(o[5]=e.createElementVNode("th",{class:"col-rule",scope:"col"},"Rule",-1)),o[6]||(o[6]=e.createElementVNode("th",{class:"col-status",scope:"col"},"Status",-1)),e.createElementVNode("th",Oo,[o[4]||(o[4]=e.createTextVNode(" Dependencies ",-1)),e.createElementVNode("span",Ho,[e.createVNode(e.unref(n.IconInfoRounded),{"aria-hidden":"true"})])]),o[7]||(o[7]=e.createElementVNode("th",{class:"col-created-by",scope:"col"},"Created By",-1)),o[8]||(o[8]=e.createElementVNode("th",{class:"col-status-action",scope:"col"},"Actions",-1))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,v=>(e.openBlock(),e.createElementBlock("tr",{key:v.id,class:"rule-row",role:"row"},[e.createElementVNode("td",Uo,[e.createElementVNode("div",Ko,e.toDisplayString(v.title),1),e.createElementVNode("div",jo,e.toDisplayString(v.description),1)]),e.createElementVNode("td",null,[e.createElementVNode("span",{class:e.normalizeClass(["status-badge",v.status.toLowerCase()]),"aria-label":`Status: ${v.status}`},e.toDisplayString(v.status),11,Go)]),e.createElementVNode("td",Wo,[e.createElementVNode("span",{"aria-label":`${v.dependencies} dependencies`},e.toDisplayString(v.dependencies),9,Zo)]),e.createElementVNode("td",Jo,[e.createElementVNode("div",Qo,[e.createElementVNode("img",{src:v.creator.avatar,alt:`${v.creator.name} avatar`,class:"creator-avatar"},null,8,Yo),e.createElementVNode("div",Xo,[e.createElementVNode("div",et,e.toDisplayString(v.creator.name),1),e.createElementVNode("div",ot,e.toDisplayString(v.creator.username),1)])])]),e.createElementVNode("td",tt,[e.createElementVNode("span",{class:e.normalizeClass(["status-badge",v.status.toLowerCase()]),"aria-label":`Status: ${v.status}`},e.toDisplayString(v.status),11,nt),e.createElementVNode("div",it,[e.createElementVNode("button",{class:"icon-btn",onClick:C=>P(v),onKeydown:[e.withKeys(C=>P(v),["enter"]),e.withKeys(e.withModifiers(C=>P(v),["prevent"]),["space"])],"aria-label":`Edit ${v.title}`,tabindex:"0"},[e.createVNode(e.unref(n.IconEdit),{"aria-hidden":"true"})],40,lt),e.createElementVNode("button",{class:"icon-btn",onClick:C=>b(v),onKeydown:[e.withKeys(C=>b(v),["enter"]),e.withKeys(e.withModifiers(C=>b(v),["prevent"]),["space"])],"aria-label":`View ${v.title}`,tabindex:"0"},[e.createVNode(e.unref(n.IconEye),{"aria-hidden":"true"})],40,st)])])]))),128))])])],8,zo),e.createElementVNode("nav",rt,[e.createElementVNode("button",{class:"pagination-btn",disabled:c.value===1,onClick:g,onKeydown:[e.withKeys(g,["enter"]),e.withKeys(e.withModifiers(g,["prevent"]),["space"])],"aria-label":"Go to previous page",tabindex:c.value===1?-1:0}," Previous ",40,at),e.createElementVNode("div",ct,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,v=>(e.openBlock(),e.createElementBlock("button",{key:v,class:e.normalizeClass(["page-number",{active:c.value===v,ellipsis:v==="..."}]),onClick:C=>v!=="..."&&k(v),onKeydown:[e.withKeys(C=>v!=="..."&&k(v),["enter"]),e.withKeys(e.withModifiers(C=>v!=="..."&&k(v),["prevent"]),["space"])],disabled:v==="...","aria-label":v==="..."?"More pages":`Go to page ${v}`,"aria-current":c.value===v?"page":void 0,tabindex:v==="..."?-1:0,role:"listitem"},e.toDisplayString(v),43,dt))),128))]),e.createElementVNode("button",{class:"pagination-btn",disabled:c.value===p.totalPages,onClick:w,onKeydown:[e.withKeys(w,["enter"]),e.withKeys(e.withModifiers(w,["prevent"]),["space"])],"aria-label":"Go to next page",tabindex:c.value===p.totalPages?-1:0}," Next ",40,ut)])]))}}),pt=n._export_sfc(_t,[["__scopeId","data-v-e6ad3a6e"]]),vt={class:"freddy-vector-frame__content"},mt={class:"freddy-vector-frame__icon-container"},ht={class:"freddy-vector-frame__title"},ft={key:0,class:"freddy-vector-frame__badge"},gt={class:"freddy-vector-frame__badge-content"},yt={class:"freddy-vector-frame__badge-text"},bt={key:1,class:"freddy-vector-frame__tick-container"},It={key:0,class:"freddy-vector-frame__underline"},kt=e.defineComponent({__name:"VectorFrame",props:{title:{default:"Main Vector Store"},badgeText:{default:"Popular"},isSelected:{type:Boolean,default:!1}},emits:["click"],setup(h,{emit:_}){const s=h,r=_,l=e.ref(s.isSelected),a=c=>{l.value=!l.value,r("click",c)};return(c,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-vector-frame",{"freddy-vector-frame--clicked":l.value}]),onClick:a},[e.createElementVNode("div",vt,[e.createElementVNode("div",mt,[e.createVNode(e.unref(n.IconFileSystem),{class:"freddy-vector-frame__icon"})]),e.createElementVNode("div",ht,e.toDisplayString(c.title),1),l.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ft,[e.createElementVNode("div",gt,[e.createVNode(e.unref(n.IconStar),{class:"freddy-vector-frame__badge-icon"}),e.createElementVNode("div",yt,e.toDisplayString(c.badgeText),1)])])),l.value?(e.openBlock(),e.createElementBlock("div",bt,[e.createVNode(e.unref(n.IconBadgeCheck),{class:"freddy-vector-frame__tick-icon"})])):e.createCommentVNode("",!0)]),l.value?(e.openBlock(),e.createElementBlock("div",It)):e.createCommentVNode("",!0)],2))}}),Ct=n._export_sfc(kt,[["__scopeId","data-v-e2bc0b9f"]]),Pt={class:"freddy-vector-section"},wt={class:"freddy-vector-section__content"},Bt={class:"freddy-vector-section__header"},Et={class:"freddy-vector-section__count"},St={class:"freddy-vector-section__main"},Vt={class:"freddy-vector-section__search-container"},Nt={class:"freddy-vector-section__search-header"},Tt={class:"freddy-vector-section__search-label"},qt={class:"freddy-vector-section__help-icon"},$t={class:"freddy-vector-section__search-input-container"},Dt={class:"freddy-vector-section__filter-results"},xt={class:"freddy-vector-section__filter"},At={class:"freddy-vector-section__filter-button"},Ft={class:"freddy-vector-section__results-count"},Mt={class:"freddy-vector-section__frames-container"},Lt={key:0,class:"freddy-vector-section__show-more"},zt={class:"freddy-vector-section__show-more-text"},Rt={class:"freddy-vector-section__add-section"},Ot={class:"freddy-vector-section__add-container"},Ht=e.defineComponent({__name:"VectorSection",props:{title:{default:"Knowledge"},dbCount:{default:0},searchPlaceholder:{default:"Search vector store"},frames:{default:()=>[{id:1,title:"Main Vector Store",badgeText:"Popular",isSelected:!0},{id:2,title:"Secondary Database",badgeText:"Popular",isSelected:!1},{id:3,title:"Custom Vector Store",badgeText:"Popular",isSelected:!0},{id:4,title:"Backup Store",badgeText:"Popular",isSelected:!1},{id:5,title:"Analytics Database",badgeText:"Popular",isSelected:!1},{id:6,title:"User Data Store",badgeText:"Popular",isSelected:!1},{id:7,title:"Logs Database",badgeText:"Popular",isSelected:!1},{id:8,title:"Cache Store",badgeText:"Popular",isSelected:!1},{id:9,title:"Metrics Database",badgeText:"Popular",isSelected:!1},{id:10,title:"Archive Store",badgeText:"Popular",isSelected:!1},{id:11,title:"Test Database",badgeText:"Popular",isSelected:!1},{id:12,title:"Production Store",badgeText:"Popular",isSelected:!1}]},maxDisplayed:{default:4}},emits:["frameClick","addVectorStore","showMore","searchInput"],setup(h,{emit:_}){const s=h,r=_,l=e.ref(""),a=e.ref(s.maxDisplayed),c=e.computed(()=>l.value.trim()?s.frames.filter(m=>m.title.toLowerCase().includes(l.value.toLowerCase())):s.frames),u=e.computed(()=>c.value.slice(0,a.value)),d=e.computed(()=>c.value.length),t=e.computed(()=>c.value.length>a.value),f=e.computed(()=>c.value.length-a.value),y=()=>{r("addVectorStore")},E=()=>{a.value=c.value.length,r("showMore")},S=m=>{l.value=m||"",a.value=s.maxDisplayed,r("searchInput",l.value)};return(m,P)=>(e.openBlock(),e.createElementBlock("div",Pt,[e.createElementVNode("div",wt,[e.createElementVNode("div",Bt,[P[1]||(P[1]=e.createElementVNode("div",{class:"freddy-vector-section__title"},"Knowledge",-1)),e.createElementVNode("div",Et,e.toDisplayString(m.dbCount)+" DBs added",1)]),e.createElementVNode("div",St,[e.createElementVNode("div",Vt,[e.createElementVNode("div",Nt,[e.createElementVNode("div",Tt,[P[2]||(P[2]=e.createTextVNode(" Vector Stores ",-1)),e.createElementVNode("div",qt,[e.createVNode(e.unref(n.IconQuestion),{class:"freddy-vector-section__help-icon-svg"})])]),e.createElementVNode("div",$t,[e.createVNode(e.unref(F),{searchInput:l.value,"onUpdate:searchInput":[P[0]||(P[0]=b=>l.value=b),S],placeholder:m.searchPlaceholder,class:"freddy-vector-section__search-input"},null,8,["searchInput","placeholder"])])])]),e.createElementVNode("div",Dt,[e.createElementVNode("div",xt,[e.createElementVNode("div",At,[e.createVNode(e.unref(n.IconFilter),{class:"freddy-vector-section__filter-icon"}),P[3]||(P[3]=e.createElementVNode("span",{class:"freddy-vector-section__filter-text"},"Filter by",-1)),e.createVNode(e.unref(n.IconChevronDown),{class:"freddy-vector-section__filter-arrow"})])]),e.createElementVNode("div",Ft,e.toDisplayString(d.value)+" databases found ",1)]),e.createElementVNode("div",Mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(b,k)=>(e.openBlock(),e.createElementBlock("div",{key:b.id||k,class:"freddy-vector-section__frame-item"}))),128))]),t.value?(e.openBlock(),e.createElementBlock("div",Lt,[e.createElementVNode("button",{class:"freddy-vector-section__show-more-button",onClick:E},[e.createElementVNode("span",zt,"Show "+e.toDisplayString(f.value)+" more",1),e.createVNode(e.unref(n.IconChevronDown),{class:"freddy-vector-section__show-more-icon"})])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Rt,[P[5]||(P[5]=e.createElementVNode("div",{class:"freddy-vector-section__add-title"},"Knowledge",-1)),e.createElementVNode("div",Ot,[e.createElementVNode("button",{class:"freddy-vector-section__add-button",onClick:y},[e.createVNode(e.unref(n.IconAddFileSystem),{class:"freddy-vector-section__add-icon"}),P[4]||(P[4]=e.createElementVNode("span",{class:"freddy-vector-section__add-text"},"Add vector store to assistant",-1))])])])])]))}}),Ut=n._export_sfc(Ht,[["__scopeId","data-v-8434fbf8"]]),Kt={class:"freddy-voice-list"},jt={key:0,class:"freddy-voice-list__title"},Gt={class:"freddy-voice-list__container"},Wt={key:1,class:"freddy-voice-list__selected-info"},Zt=e.defineComponent({__name:"VoiceList",props:{voices:{},title:{default:""},showSelectedInfo:{type:Boolean,default:!0},allowDeselect:{type:Boolean,default:!0}},emits:["selectionChange","voiceClick"],setup(h,{expose:_,emit:s}){const r=h,l=s,a=e.ref(null),c=e.computed(()=>r.voices.find(d=>d.id===a.value)||null),u=d=>{a.value===d&&r.allowDeselect?a.value=null:a.value=d,l("selectionChange",a.value),l("voiceClick",d,a.value===d)};return _({selectedVoiceId:a,selectedVoice:c,selectVoice:d=>{a.value=d,l("selectionChange",d)},clearSelection:()=>{a.value=null,l("selectionChange",null)}}),(d,t)=>{var f;return e.openBlock(),e.createElementBlock("div",Kt,[d.title?(e.openBlock(),e.createElementBlock("h3",jt,e.toDisplayString(d.title),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Gt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.voices,y=>(e.openBlock(),e.createBlock(e.unref(K),{key:y.id,voiceName:y.name,isSelected:a.value===y.id,onClick:E=>u(y.id)},null,8,["voiceName","isSelected","onClick"]))),128))]),d.showSelectedInfo?(e.openBlock(),e.createElementBlock("div",Wt,[e.createElementVNode("p",null,"Selected: "+e.toDisplayString(((f=c.value)==null?void 0:f.name)||"None"),1)])):e.createCommentVNode("",!0)])}}}),Jt={class:"freddy-voice-selection__container"},Qt={class:"freddy-voice-selection__icon-container"},Yt={class:"freddy-voice-selection__icon"},Xt={class:"freddy-voice-selection__play-background"},en={class:"freddy-voice-selection__name-container"},on={class:"freddy-voice-selection__name-wrapper"},tn={class:"freddy-voice-selection__name"},nn={key:0,class:"freddy-voice-selection__check-icon"},ln={key:1,class:"freddy-voice-selection__indicator"},K=e.defineComponent({__name:"VoiceSelection",props:{voiceName:{},isSelected:{type:Boolean,default:!1}},emits:["handleClick"],setup(h,{emit:_}){const s=_,r=l=>{s("handleClick",l)};return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-voice-selection",{"freddy-voice-selection--selected":l.isSelected}]),onClick:r},[e.createElementVNode("div",Jt,[e.createElementVNode("div",Qt,[e.createElementVNode("div",Yt,[e.createElementVNode("div",Xt,[e.createVNode(e.unref(n.IconRevertedTriangle),{class:"freddy-voice-selection__triangle-icon"})])])]),e.createElementVNode("div",en,[e.createElementVNode("div",on,[e.createElementVNode("div",tn,e.toDisplayString(l.voiceName),1)])]),l.isSelected?(e.openBlock(),e.createElementBlock("div",nn,[e.createVNode(e.unref(n.IconTick),{class:"freddy-voice-selection__check-icon-svg"})])):(e.openBlock(),e.createElementBlock("div",ln))])],2))}}),sn=["innerHTML"],rn={key:1},T=e.defineComponent({__name:"Tooltip",props:{text:{},placement:{},html:{type:Boolean},contentClass:{}},setup(h){n.useTheme();const _=e.ref(!1),s=e.ref(!1),r=e.ref(null);let l=null;function a(){l&&clearTimeout(l),l=setTimeout(()=>{if(r.value){const u=r.value.getBoundingClientRect();s.value=u.top<150}_.value=!0},200)}function c(){l&&clearTimeout(l),_.value=!1}return(u,d)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tooltipWrapper",ref:r,class:"tooltip-wrapper",onMouseenter:a,onMouseleave:c,onFocusin:a,onFocusout:c,tabindex:"0"},[e.renderSlot(u.$slots,"default"),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[_.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tooltip-content",[u.placement,s.value?"force-bottom":"",u.contentClass]])},[e.renderSlot(u.$slots,"content",{},()=>[u.html?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:u.text},null,8,sn)):(e.openBlock(),e.createElementBlock("span",rn,e.toDisplayString(u.text),1))])],2)):e.createCommentVNode("",!0)]),_:3})],544))}}),an=["disabled","aria-disabled","aria-label"],cn={key:0,class:"freddy-plugins-button-label"},dn={key:1,class:"freddy-plugins-button-label"},un=["disabled","aria-disabled","aria-label"],_n={key:0,class:"freddy-plugins-button-label"},pn={key:1,class:"freddy-plugins-button-label"},vn=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(h,{emit:_}){const s=h,r={IconSearch:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_116)),IconUser:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_140)),IconDelete:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_42)),IconSend:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_119)),IconPlus:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_101)),IconEdit:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_50)),IconCross:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_37)),IconTick:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_139)),IconArrowLeft:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_6)),IconArrowDown:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_5)),IconArrowUp:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_7)),IconChevronDown:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_19)),IconChevronUp:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_22)),IconChevronLeft:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_20)),IconChevronRight:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_21)),IconSettings:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_120)),IconHome:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_71)),IconDownload:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_47)),IconRefresh:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_112)),IconCopy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_36)),IconEye:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_54)),IconLock:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_83)),IconStar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_127)),IconFilter:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_60)),IconFile:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_57)),IconFolder:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_61)),IconText:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_134)),IconLink04:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_79))},l=e.computed(()=>s.leftIcon&&r[s.leftIcon]||null),a=e.computed(()=>s.rightIcon&&r[s.rightIcon]||null),c=_,u=e.ref(!1),d=e.computed(()=>["freddy-plugins-base-button",`freddy-plugins-base-button--${s.size}`,`freddy-plugins-base-button--${s.hierarchy}`,{"freddy-plugins-base-button--disabled":s.disabled,"freddy-plugins-base-button--loading":s.loading,"freddy-plugins-base-button--icon-only":s.iconOnly,"freddy-plugins-base-button--error":s.errorState,"freddy-plugins-base-button--hover":u.value&&!s.disabled&&!s.loading,"freddy-plugins-base-button--focused":s.state==="focused"}]),t=m=>{!s.disabled&&!s.loading&&c("click",m)},f=m=>{!s.disabled&&!s.loading&&c("leftIconClick",m)},y=m=>{!s.disabled&&!s.loading&&c("rightIconClick",m)},E=()=>{u.value=!0},S=()=>{u.value=!1};return(m,P)=>m.tooltip?(e.openBlock(),e.createBlock(T,{key:0,text:m.tooltip,placement:m.tooltipPlacement},{default:e.withCtx(()=>[e.createElementVNode("button",{class:e.normalizeClass(d.value),disabled:m.disabled||m.loading,"aria-disabled":m.disabled||m.loading,"aria-label":m.iconOnly?m.label:void 0,role:"button",onClick:t,onMouseenter:E,onMouseleave:S},[m.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)),m.loadingText||m.label?(e.openBlock(),e.createElementBlock("span",cn,e.toDisplayString(m.loadingText||m.label),1)):e.createCommentVNode("",!0)],64)):m.iconOnly?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value),{key:1,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-center",`freddy-plugins-button-icon--${m.size}`]),"aria-hidden":"true"},null,8,["class"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[m.leftIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value),{key:0,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-left",`freddy-plugins-button-icon--${m.size}`]),"aria-hidden":"true",onClick:e.withModifiers(f,["stop"])},null,8,["class"])):e.createCommentVNode("",!0),m.label?(e.openBlock(),e.createElementBlock("span",dn,e.toDisplayString(m.label),1)):e.createCommentVNode("",!0),m.rightIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value),{key:2,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-right",`freddy-plugins-button-icon--${m.size}`]),"aria-hidden":"true",onClick:e.withModifiers(y,["stop"])},null,8,["class"])):e.createCommentVNode("",!0)],64))],42,an)]),_:1},8,["text","placement"])):(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(d.value),disabled:m.disabled||m.loading,"aria-disabled":m.disabled||m.loading,"aria-label":m.iconOnly?m.label:void 0,role:"button",onClick:t,onMouseenter:E,onMouseleave:S},[m.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)),m.loadingText||m.label?(e.openBlock(),e.createElementBlock("span",_n,e.toDisplayString(m.loadingText||m.label),1)):e.createCommentVNode("",!0)],64)):m.iconOnly?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value),{key:1,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-center",`freddy-plugins-button-icon--${m.size}`]),"aria-hidden":"true"},null,8,["class"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[m.leftIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value),{key:0,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-left",`freddy-plugins-button-icon--${m.size}`]),"aria-hidden":"true",onClick:e.withModifiers(f,["stop"])},null,8,["class"])):e.createCommentVNode("",!0),m.label?(e.openBlock(),e.createElementBlock("span",pn,e.toDisplayString(m.label),1)):e.createCommentVNode("",!0),m.rightIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value),{key:2,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-right",`freddy-plugins-button-icon--${m.size}`]),"aria-hidden":"true",onClick:e.withModifiers(y,["stop"])},null,8,["class"])):e.createCommentVNode("",!0)],64))],42,un))}}),j=n._export_sfc(vn,[["__scopeId","data-v-ca53fa07"]]),mn=["disabled","aria-label","onClick"],hn={key:0,class:"freddy-plugins-social-button-label"},fn=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(h,{emit:_}){const s=h,r=_,l={google:{icon:n.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:n.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:n.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:n.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:n.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:n.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"}}}},a=e.computed(()=>["freddy-plugins-social-buttons",`freddy-plugins-social-buttons--${s.layout}`,`freddy-plugins-social-buttons--${s.size}`,{"freddy-plugins-social-buttons--disabled":s.disabled},s.class]),c=f=>l[f].icon,u=f=>l[f].label,d=f=>["freddy-plugins-social-button",`freddy-plugins-social-button--${s.variant}`,`freddy-plugins-social-button--${s.size}`,`freddy-plugins-social-button--${f}`,{"freddy-plugins-social-button--disabled":s.disabled,"freddy-plugins-social-button--icon-only":s.iconOnly}],t=(f,y)=>{s.disabled||r("click",f,y)};return(f,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value),style:e.normalizeStyle(f.style)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.providers,E=>(e.openBlock(),e.createElementBlock("button",{key:E,class:e.normalizeClass(d(E)),disabled:f.disabled,"aria-label":f.iconOnly?u(E):void 0,role:"button",onClick:S=>t(E,S)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c(E)),{class:"freddy-plugins-social-button-icon","aria-hidden":"true"})),f.iconOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",hn,e.toDisplayString(u(E)),1))],10,mn))),128))],6))}}),gn=n._export_sfc(fn,[["__scopeId","data-v-22e5ee7c"]]),yn=["innerHTML"],Q="nord",bn=e.defineComponent({__name:"CodeBlock",props:{code:{},language:{}},setup(h){const _=h,s=e.ref("");let r=null,l=null;const a=async()=>{try{if(typeof window<"u"&&window.shiki){l=window.shiki.createHighlighter;return}}catch{}},c=["js","ts","json","python","vue","html","css","scss","bash","yaml","markdown","c","cpp","java","go","php","ruby","rust","swift","kotlin"],u=async()=>{if(l||await a(),!l){s.value=`<pre><code>${_.code.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}</code></pre>`;return}try{r||(r=await l({themes:[Q],langs:c})),s.value=r.codeToHtml(_.code,{lang:_.language,theme:Q})}catch{s.value=`<pre><code>${_.code.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}</code></pre>`}};return e.watch(()=>[_.code,_.language],u,{immediate:!0}),e.onMounted(u),(d,t)=>(e.openBlock(),e.createElementBlock("pre",null,[e.createElementVNode("code",{innerHTML:s.value},null,8,yn)]))}}),In=["aria-checked","aria-disabled","aria-label"],kn=["checked","disabled"],Cn={key:0,class:"freddy-plugins-checkbox-dash"},Pn={key:1,class:"freddy-plugins-checkbox-icon",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wn=["stroke"],Bn=e.defineComponent({__name:"CustomCheckbox",props:{isChecked:{type:Boolean},isDashInput:{type:Boolean},blueCheckbox:{type:Boolean},disabled:{type:Boolean},ariaLabel:{}},emits:["update:isChecked"],setup(h,{emit:_}){n.useTheme();const s=h,r=_;function l(a){const c=a.target;s.disabled||r("update:isChecked",c.checked)}return(a,c)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["freddy-plugins-base-checkbox",{"freddy-plugins-checked":a.isChecked&&!a.blueCheckbox,"freddy-plugins-checked-blue":a.isChecked&&a.blueCheckbox,"freddy-plugins-not-checked":!a.isChecked,"freddy-plugins-is-disabled":a.disabled}]),"aria-checked":a.isChecked,"aria-disabled":a.disabled,"aria-label":a.ariaLabel,role:"checkbox"},[e.createElementVNode("input",{id:"checkbox-input",type:"checkbox",class:"freddy-plugins-checkbox-input",checked:a.isChecked,disabled:a.disabled,onChange:l},null,40,kn),a.isDashInput&&a.isChecked?(e.openBlock(),e.createElementBlock("span",Cn)):a.isChecked&&!a.isDashInput?(e.openBlock(),e.createElementBlock("svg",Pn,[e.createElementVNode("path",{d:"M10 3L4.5 8.5L2 6",stroke:a.blueCheckbox?"var(--text-50, var(--text-inverse))":"#000","stroke-width":"1.6666","stroke-linecap":"round","stroke-linejoin":"round"},null,8,wn)])):e.createCommentVNode("",!0)],10,In))}});class En{constructor(_){z(this,"apiKey",null);z(this,"baseUrl","https://api.openai.com/v1");this.apiKey=_||this.getApiKeyFromEnv()||"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"}getApiKeyFromEnv(){return process.env.OPENAI_API_KEY||null}setApiKey(_){this.apiKey=_}getSmartSystemPrompt(){return`You are an AI assistant that helps with text editing, code improvement, and content generation. You excel at working with JavaScript, HTML, CSS, JSON, and all programming languages. Analyze the user's request and respond with the appropriate action.
|
|
35
35
|
|
|
36
36
|
RESPONSE RULES:
|
|
37
37
|
- NEVER use greetings, pleasantries, or filler phrases
|
|
@@ -71,11 +71,11 @@ IMPORTANT:
|
|
|
71
71
|
- The textBoxContent represents the current text/code the user is working with
|
|
72
72
|
- When improving JavaScript code, ensure proper syntax, variable naming, and modern practices
|
|
73
73
|
- Escape special characters properly in JSON responses
|
|
74
|
-
- Maintain original code formatting and style when possible`}analyzeRequest(
|
|
74
|
+
- Maintain original code formatting and style when possible`}analyzeRequest(_,s){const r=_.toLowerCase(),c=!!(s&&s.trim().length>0&&["edit","improve","fix","correct","rewrite","revise","polish","enhance"].some(f=>r.includes(f))),d=!!["write","create","generate","compose","draft"].some(f=>r.includes(f)),t=c&&(r.includes("significant")||r.includes("major")||r.includes("restructure")||r.includes("rewrite"));return{isEdit:c,isGeneration:d,needsStructuredResponse:t}}createPrompt(_,s){const r=this.analyzeRequest(_,s),l=[{role:"system",content:this.getSmartSystemPrompt()}],a=[];return s&&s.trim()&&a.push({type:"text",text:`Current text: ${s.trim()}`}),a.push({type:"text",text:_}),r.needsStructuredResponse?a.push({type:"text",text:"Please respond with JSON format including change details and statistics."}):r.isEdit&&a.push({type:"text",text:"Provide only the improved text without explanations."}),l.push({role:"user",content:a}),l}createResponsesPayload(_,s){return{model:"gpt-4o-mini",input:[{role:"system",content:this.getSmartSystemPrompt()},{role:"user",content:[{type:"text",text:s?`Existing text: ${s}`:"No existing text."},{type:"text",text:_}]}],temperature:.7}}calculateStats(_,s){const r=_.trim().split(/\s+/).filter(u=>u.length>0),l=s.trim().split(/\s+/).filter(u=>u.length>0),a=Math.max(0,l.length-r.length),c=Math.max(0,r.length-l.length);return{added:a,removed:c}}processResponse(_,s,r){try{const l=JSON.parse(_);if(l.action)switch(l.action){case"replace":const a=r&&l.improvedText?this.calculateStats(r,l.improvedText):l.stats||{added:0,removed:0};return{success:!0,content:l.improvedText,hasChanges:!0,action:"replace",changeTitle:l.changeTitle||"Text Replacement",changeDescription:l.changeDescription||"Text has been improved",improvedText:l.improvedText,stats:a};case"complete":return{success:!0,content:l.content,hasChanges:!1,action:"complete"};case"chat":return{success:!0,content:l.content,hasChanges:!1,action:"chat"}}if(l.hasChanges&&l.improvedText){const a=r?this.calculateStats(r,l.improvedText):{added:0,removed:0};return{success:!0,content:l.improvedText,hasChanges:!0,action:"replace",changeTitle:l.changeTitle||"Text Improvement",changeDescription:l.changeDescription||"Text has been improved",improvedText:l.improvedText,stats:a}}if(r&&l.content){const a=this.calculateStats(r,l.content);return{success:!0,content:l.content,hasChanges:!0,action:"replace",changeTitle:"AI Response",changeDescription:"AI has provided a response to your request",improvedText:l.content,stats:a}}return{success:!0,content:l.content||_,hasChanges:!1,action:"chat"}}catch{return{success:!0,content:_,hasChanges:!1,action:"chat"}}}async askAI(_,s){var r,l,a,c,u;if(!this.apiKey)return{success:!1,error:"OpenAI API key is not configured. Please set your API key first."};if(!_.trim())return{success:!1,error:"User question cannot be empty."};try{const d=s?`Existing content:
|
|
75
75
|
\`\`\`
|
|
76
76
|
${s}
|
|
77
77
|
\`\`\`
|
|
78
78
|
|
|
79
|
-
User request: ${
|
|
80
|
-
`,B()},B=()=>{e.nextTick(()=>{d.value&&(d.value.style.height="auto",d.value.style.height=Math.min(d.value.scrollHeight,120)+"px")})},y=()=>{e.nextTick(()=>{a.value&&(a.value.scrollTop=a.value.scrollHeight)})},k=o=>{l("acceptChanges",o)},b=o=>{o.changes&&(o.changes=void 0),l("denyChanges",o)};return u({addAIResponse:(o,c)=>{const C={id:Date.now().toString(),content:o,sender:"assistant",timestamp:new Date,changes:c};p.value.push(C),y()},addAIResponseFromApi:o=>{const c=t.parseApiResponse(o),C=t.getDisplayContent(c),g=t.createChangesObject(c),n={id:Date.now().toString(),content:C,sender:"assistant",timestamp:new Date,applied:!1,changes:g};p.value.push(n),y()}}),(o,c)=>(e.openBlock(),e.createElementBlock("div",Sn,[e.createElementVNode("div",{ref_key:"messagesContainer",ref:a,class:"freddy-plugins-chat-messages"},[e.createElementVNode("div",Tn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,C=>(e.openBlock(),e.createElementBlock("div",{key:C.id,class:e.normalizeClass(["freddy-plugins-message",C.sender])},[C.sender==="user"?(e.openBlock(),e.createElementBlock("div",$n,[e.createElementVNode("div",xn,e.toDisplayString(C.content),1),e.createElementVNode("div",Dn,[e.createElementVNode("button",qn,[e.createVNode(e.unref(t.IconCopy),{class:"freddy-plugins-action-icon"})]),e.createElementVNode("button",An,[e.createVNode(e.unref(t.IconEdit),{class:"freddy-plugins-action-icon"})])])])):(e.openBlock(),e.createElementBlock("div",Fn,[e.createElementVNode("div",Mn,[e.createElementVNode("p",Ln,e.toDisplayString(C.content),1),C.changes?(e.openBlock(),e.createElementBlock("div",zn,[e.createElementVNode("div",Rn,[e.createElementVNode("div",On,[e.createVNode(e.unref(t.IconFile),{class:"freddy-plugins-building-icon"}),e.createElementVNode("span",Un,e.toDisplayString(C.changes.title||"Instructions"),1),C.changes.added>0?(e.openBlock(),e.createElementBlock("span",Hn,"+"+e.toDisplayString(C.changes.added),1)):e.createCommentVNode("",!0),C.changes.removed>0?(e.openBlock(),e.createElementBlock("span",Kn,"-"+e.toDisplayString(C.changes.removed),1)):e.createCommentVNode("",!0),c[1]||(c[1]=e.createElementVNode("span",{class:"freddy-plugins-changes-applied"},"Changes applied",-1))])]),e.createElementVNode("div",jn,[c[5]||(c[5]=e.createElementVNode("div",{class:"freddy-plugins-content-header"},[e.createElementVNode("span",{class:"freddy-plugins-content-title"},"Instructions")],-1)),e.createElementVNode("p",Gn,e.toDisplayString(C.changes.description),1),C.applied?(e.openBlock(),e.createElementBlock("div",Qn,[e.createVNode(e.unref(t.IconCheckRounded),{class:"freddy-plugins-applied-icon"}),c[4]||(c[4]=e.createTextVNode(" Applied ",-1))])):(e.openBlock(),e.createElementBlock("div",Zn,[e.createElementVNode("button",{class:"freddy-plugins-accept-btn",onClick:g=>k(C)},[e.createVNode(e.unref(t.IconCheckRounded),{class:"freddy-plugins-btn-icon"}),c[2]||(c[2]=e.createTextVNode(" Accept ",-1))],8,Wn),e.createElementVNode("button",{class:"freddy-plugins-deny-btn",onClick:g=>b(C)},[e.createVNode(e.unref(t.IconCross),{class:"freddy-plugins-btn-icon"}),c[3]||(c[3]=e.createTextVNode(" Deny ",-1))],8,Jn)]))])])):e.createCommentVNode("",!0),e.createElementVNode("div",Yn,[e.createElementVNode("button",Xn,[e.createVNode(e.unref(t.IconRefresh),{class:"freddy-plugins-action-icon"})]),e.createElementVNode("button",el,[e.createVNode(e.unref(t.IconCopy),{class:"freddy-plugins-action-icon"})]),e.createElementVNode("button",ol,[e.createVNode(e.unref(t.IconThumbsDown),{class:"freddy-plugins-action-icon"})])])])]))],2))),128))]),h.value?(e.openBlock(),e.createElementBlock("div",tl,[...c[6]||(c[6]=[e.createElementVNode("div",{class:"freddy-plugins-processing-content"},[e.createElementVNode("div",{class:"freddy-plugins-processing-spinner"}),e.createElementVNode("span",{class:"freddy-plugins-processing-text"},"AI is processing your request...")],-1)])])):e.createCommentVNode("",!0)],512),e.createElementVNode("div",nl,[e.createElementVNode("button",ll,[e.createVNode(e.unref(t.IconFolder),{class:"freddy-plugins-folder-icon"})]),e.withDirectives(e.createElementVNode("textarea",{ref_key:"inputRef",ref:d,"onUpdate:modelValue":c[0]||(c[0]=C=>r.value=C),placeholder:o.placeholder||"Type here...",class:"freddy-plugins-chat-input",rows:"1",onKeydown:[e.withKeys(e.withModifiers(V,["exact","prevent"]),["enter"]),e.withKeys(e.withModifiers(v,["shift","exact"]),["enter"])],onInput:B},null,40,sl),[[e.vModelText,r.value]]),e.createElementVNode("button",{class:"freddy-plugins-send-button",disabled:!r.value.trim(),onClick:V},[e.createVNode(e.unref(t.IconPaperAirPlane),{class:"freddy-plugins-send-icon"})],8,il)])]))}}),rl={class:"freddy-plugins-edit-excerpt-modal-content"},al={class:"freddy-plugins-edit-excerpt-modal-header"},cl={class:"freddy-plugins-edit-excerpt-modal-header-content"},dl={class:"freddy-plugins-edit-excerpt-modal-icon"},ul={class:"freddy-plugins-edit-excerpt-modal-text"},_l={class:"freddy-plugins-edit-excerpt-modal-title"},pl={class:"freddy-plugins-edit-excerpt-modal-subtitle"},ml={class:"freddy-plugins-edit-excerpt-modal-textarea-section"},vl={class:"freddy-plugins-edit-excerpt-modal-footer"},hl={class:"freddy-plugins-edit-excerpt-modal-footer-content"},fl={key:0,class:"freddy-plugins-edit-excerpt-modal-ai-container"},gl=e.defineComponent({__name:"EditFeaturedExcerptModal",props:{isVisible:{type:Boolean,required:!0},title:{type:String,default:"Edit featured excerpt"},description:{type:String,default:"This will be displayed on your profile."},initialContent:{type:String,default:""},openaiApiKey:{type:String,default:""},openaiModel:{type:String,default:"gpt-4o-mini"},openaiOrganization:{type:String,default:""}},emits:["close","save","cancel","askAI","toggleAI"],setup(m,{emit:u}){const s=m,i=u,l=e.ref(s.initialContent),r=e.ref(!1),a=e.ref([]),d=e.ref(null);e.watch(()=>s.initialContent,b=>{l.value=b});const p=()=>{r.value=!1,a.value=[],i("close")},h=()=>{i("save",l.value)},f=()=>{r.value=!1,a.value=[],i("cancel")},I=()=>{r.value=!0,i("toggleAI",r.value),i("askAI",l.value)},P=()=>{r.value=!1,i("toggleAI",r.value)},V=async b=>{},v=b=>{b.changes&&b.changes.data&&b.changes.data.improvedText&&(l.value,l.value=b.changes.data.improvedText,b.applied=!0)},B=b=>{},y=b=>{},k=b=>{};return(b,w)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[m.isVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"freddy-plugins-edit-excerpt-modal-overlay",onClick:e.withModifiers(p,["self"])},[e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-edit-excerpt-modal-container",{"ai-active":r.value}])},[e.createElementVNode("div",rl,[e.createElementVNode("div",al,[e.createElementVNode("div",cl,[e.createElementVNode("div",dl,[e.createVNode(e.unref(t.IconEditLinePath),{class:"freddy-plugins-edit-excerpt-edit-icon","center-distance":36,"circle-gap":44,"show-circles":!0})]),e.createElementVNode("div",ul,[e.createElementVNode("h2",_l,e.toDisplayString(m.title),1),e.createElementVNode("p",pl,e.toDisplayString(m.description),1)])]),e.createElementVNode("button",{class:"freddy-plugins-edit-excerpt-modal-close-btn",style:e.normalizeStyle({right:r.value?"52px":"16px"}),onClick:p,"aria-label":"Close modal"},[e.createVNode(e.unref(t.IconCross),{class:"freddy-plugins-edit-excerpt-modal-close-icon"})],4),r.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:"freddy-plugins-edit-excerpt-modal-close-btn",style:{right:"16px"},onClick:P,"aria-label":"Hide AI"},[e.createVNode(t.IconSectionHide,{class:"freddy-plugins-edit-excerpt-hide-section-icon"})])):e.createCommentVNode("",!0),w[1]||(w[1]=e.createElementVNode("div",{class:"freddy-plugins-edit-excerpt-modal-header-spacing"},null,-1))]),e.createElementVNode("div",ml,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":w[0]||(w[0]=_=>l.value=_),class:"freddy-plugins-edit-excerpt-modal-textarea",placeholder:"The text thats needed",rows:"12"},null,512),[[e.vModelText,l.value]])]),e.createElementVNode("div",vl,[e.createElementVNode("div",hl,[r.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,class:"freddy-plugins-edit-excerpt-modal-ai-btn",onClick:I},[e.createVNode(e.unref(t.IconSparkle),{class:"freddy-plugins-edit-excerpt-modal-ai-icon"}),w[2]||(w[2]=e.createElementVNode("span",{class:"freddy-plugins-edit-excerpt-modal-ai-text"}," Ask AI ",-1))])),e.createElementVNode("div",{class:"freddy-plugins-edit-excerpt-modal-action-buttons"},[e.createElementVNode("button",{class:"freddy-plugins-edit-excerpt-modal-cancel-btn",onClick:f}," Cancel "),e.createElementVNode("button",{class:"freddy-plugins-edit-excerpt-modal-save-btn",onClick:h}," Save changes ")])])])]),r.value?(e.openBlock(),e.createElementBlock("div",fl,[e.createVNode(oe,{ref_key:"chatRef",ref:d,placeholder:"Type here...",messages:a.value,"enable-a-i":!0,"openai-api-key":m.openaiApiKey,"text-box-content":l.value,onSend:V,onAcceptChanges:v,onDenyChanges:B,onTextReplacement:y,onTextCompletion:k},null,8,["messages","openai-api-key","text-box-content"])])):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0)]),_:1}))}}),q=t._export_sfc(gl,[["__scopeId","data-v-5aacf574"]]),yl={class:"freddy-plugins-textarea-input-field-wrapper"},bl={class:"freddy-plugins-textarea-input-container"},kl={class:"freddy-plugins-textarea-header"},Il={class:"freddy-plugins-textarea-label-wrapper"},Cl={class:"freddy-plugins-textarea-label-container"},wl={key:0,class:"freddy-plugins-textarea-required"},Bl={class:"freddy-plugins-textarea-input-wrapper"},El=["placeholder","disabled","readonly"],Pl={key:1,class:"freddy-plugins-textarea-diff-container"},Vl={class:"freddy-plugins-textarea-diff-content"},Nl={class:"freddy-plugins-textarea-diff-block freddy-plugins-textarea-diff-block--old"},Sl={class:"freddy-plugins-textarea-diff-block freddy-plugins-textarea-diff-block--new"},Tl={key:2,class:"freddy-plugins-textarea-tags-container"},$l={class:"freddy-plugins-textarea-tags"},xl={class:"freddy-plugins-textarea-tag-content"},Dl=["onClick","onKeydown","aria-label"],ql=e.defineComponent({__name:"TextAreaInputField",props:{modelValue:{default:""},label:{default:"Description"},placeholder:{default:"The text thats needed"},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!0},tooltipText:{default:"Provide detailed description"},showAiButton:{type:Boolean,default:!0},showTags:{type:Boolean,default:!1},tags:{default:()=>[]},showAddTagsPlaceholder:{type:Boolean,default:!1},addTagsPlaceholder:{default:"Add tags..."},hintText:{default:"This is a hint text to help user."},hasError:{type:Boolean,default:!1},errorMessage:{default:""},modalTitle:{default:"Edit Description"},modalDescription:{default:"Provide detailed description for your content."},openaiApiKey:{default:""},openaiModel:{default:"gpt-4o-mini"},openaiOrganization:{default:""},showUnderlines:{type:Boolean,default:!1},dynamicTitle:{default:""},showHint:{type:Boolean,default:!0},diffMode:{type:Boolean,default:!1},oldText:{default:""},newText:{default:""},tagsOnly:{type:Boolean,default:!1}},emits:["update:modelValue","input","focus","blur","ask-ai","expand","remove-tag","tooltip-click","add-tag","tags-click"],setup(m,{expose:u,emit:s}){const i=m,l=s,r=e.ref(null),a=e.ref(null),d=e.ref(i.modelValue),p=e.ref(""),h=e.ref(!1),f=e.ref("expand"),I=e.ref(!1),P=e.computed(()=>i.showTags&&i.tags.length>0?"":i.placeholder);e.watch(()=>i.modelValue,E=>{d.value=E});const V=()=>{l("update:modelValue",d.value),l("input",d.value)},v=E=>{I.value=!0,l("focus",E)},B=E=>{I.value=!1,l("blur",E)},y=E=>{},k=()=>{i.tagsOnly&&l("tags-click")},b=()=>{l("tooltip-click")},w=E=>{(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),b())},_=()=>{p.value=d.value,f.value="ai",h.value=!0,l("ask-ai",d.value)},o=E=>{(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),_())},c=()=>{p.value=d.value,f.value="expand",h.value=!0,l("expand",d.value)},C=E=>{(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),c())},g=E=>{l("remove-tag",E)},n=(E,x)=>{(E.key==="Enter"||E.key===" ")&&(E.preventDefault(),g(x))},N=()=>{d.value=p.value,l("update:modelValue",p.value),l("input",p.value),h.value=!1},S=E=>{d.value=E,l("update:modelValue",E),l("input",E),h.value=!1},G=()=>{d.value=p.value,l("update:modelValue",p.value),l("input",p.value),h.value=!1},de=()=>{l("ask-ai",d.value)},ue=E=>{};return u({focus:()=>{var E;(E=r.value)==null||E.focus()}}),(E,x)=>(e.openBlock(),e.createElementBlock("div",yl,[e.createElementVNode("div",bl,[e.createElementVNode("div",kl,[e.createElementVNode("div",Il,[e.createElementVNode("div",Cl,[e.createElementVNode("label",{class:e.normalizeClass(["freddy-plugins-textarea-label",{"freddy-plugins-textarea-label--underlined":E.showUnderlines}])},e.toDisplayString(E.dynamicTitle||E.label),3),E.required?(e.openBlock(),e.createElementBlock("span",wl,"*")):e.createCommentVNode("",!0),E.showTooltip&&E.tooltipText?(e.openBlock(),e.createBlock(T,{key:1,text:E.tooltipText,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("button",{type:"button",class:"freddy-plugins-textarea-tooltip-button","aria-label":"Help",tabindex:"0",onClick:b,onKeydown:w},[e.createVNode(e.unref(t.IconQuestion),{class:"freddy-plugins-textarea-tooltip-icon"})],32)]),_:1},8,["text"])):e.createCommentVNode("",!0)])]),E.showAiButton?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"freddy-plugins-textarea-ai-button",onClick:_,onKeydown:o,"aria-label":"Ask AI for help",tabindex:"0"},[e.createVNode(e.unref(t.IconSparkle),{class:"freddy-plugins-textarea-ai-icon"})],32)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Bl,[E.diffMode?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:0,ref_key:"textareaRef",ref:r,"onUpdate:modelValue":x[0]||(x[0]=$=>d.value=$),class:e.normalizeClass(["freddy-plugins-textarea-input",{"freddy-plugins-textarea-input--error":E.hasError,"freddy-plugins-textarea-input--disabled":E.disabled,"freddy-plugins-textarea-input--focused":I.value,"freddy-plugins-textarea-input--with-tags":E.showTags&&E.tags.length>0,"freddy-plugins-textarea-input--tags-only":E.tagsOnly}]),placeholder:P.value,disabled:E.disabled,readonly:E.readonly||E.tagsOnly,onInput:V,onFocus:v,onBlur:B,onKeydown:y,onClick:k},null,42,El)),[[e.vModelText,d.value]]),E.diffMode?(e.openBlock(),e.createElementBlock("div",Pl,[e.createElementVNode("div",Vl,[e.createElementVNode("div",Nl,e.toDisplayString(E.oldText),1),e.createElementVNode("div",Sl,e.toDisplayString(E.newText),1)])])):e.createCommentVNode("",!0),E.showTags&&E.tags.length>0?(e.openBlock(),e.createElementBlock("div",Tl,[e.createElementVNode("div",$l,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.tags,($,M)=>(e.openBlock(),e.createElementBlock("div",{key:`${$}-${M}`,class:"freddy-plugins-textarea-tag"},[e.createElementVNode("div",xl,[e.createElementVNode("span",{class:e.normalizeClass(["freddy-plugins-textarea-tag-text",{"freddy-plugins-textarea-tag-text--underlined":E.showUnderlines}])},e.toDisplayString($),3)]),e.createElementVNode("button",{type:"button",class:"freddy-plugins-textarea-tag-close",onClick:Z=>g(M),onKeydown:Z=>n(Z,M),"aria-label":`Remove ${$} tag`,tabindex:"0"},[e.createVNode(e.unref(t.IconCross),{class:"freddy-plugins-textarea-tag-close-icon"})],40,Dl)]))),128))]),E.showAddTagsPlaceholder?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["freddy-plugins-textarea-add-tags",{"freddy-plugins-textarea-add-tags--underlined":E.showUnderlines}])},e.toDisplayString(E.addTagsPlaceholder),3)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:"freddy-plugins-textarea-expand-button",onClick:c,onKeydown:C,"aria-label":"Expand textarea",tabindex:"0"},[e.createVNode(t.IconMaximize,{class:"freddy-plugins-textarea-expand-icon"})],32)])]),E.showHint&&E.hintText&&!E.hasError?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["freddy-plugins-textarea-hint-text",{"freddy-plugins-textarea-hint-text--underlined":E.showUnderlines}])},e.toDisplayString(E.hintText),3)):e.createCommentVNode("",!0),E.hasError&&E.errorMessage?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(["freddy-plugins-textarea-error-text",{"freddy-plugins-textarea-error-text--underlined":E.showUnderlines}])},e.toDisplayString(E.errorMessage),3)):e.createCommentVNode("",!0),f.value==="ai"?(e.openBlock(),e.createBlock(q,{key:2,ref_key:"aiModalRef",ref:a,"is-visible":h.value&&f.value==="ai",title:E.modalTitle,description:E.modalDescription,"initial-content":d.value,"openai-api-key":E.openaiApiKey,"openai-model":E.openaiModel,"openai-organization":E.openaiOrganization,"auto-show-a-i":!0,onClose:N,onSave:S,onCancel:G,onAskAI:de,onToggleAI:ue},null,8,["is-visible","title","description","initial-content","openai-api-key","openai-model","openai-organization"])):e.createCommentVNode("",!0),f.value==="expand"?(e.openBlock(),e.createBlock(q,{key:3,"is-visible":h.value&&f.value==="expand",title:E.modalTitle,description:E.modalDescription,"initial-content":d.value,"openai-api-key":"","openai-model":E.openaiModel,"openai-organization":"",onClose:N,onSave:S,onCancel:G},null,8,["is-visible","title","description","initial-content","openai-model"])):e.createCommentVNode("",!0)]))}}),te=t._export_sfc(ql,[["__scopeId","data-v-c6385f70"]]),Al=e.defineComponent({__name:"Descriptions",props:{modelValue:{default:""},label:{default:"Description"},placeholder:{default:"The text thats needed"},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!0},showTooltip:{type:Boolean,default:!0},tooltipText:{default:"Provide detailed description for your content"},showAiButton:{type:Boolean,default:!0},stage:{default:"placeholder"},type:{default:"default"},destructive:{type:Boolean,default:!1},tags:{default:()=>[]},hintText:{default:"This is a hint text to help user."},errorMessage:{default:"This is an error message."},modalTitle:{default:"Edit Description"},modalDescription:{default:"Provide detailed description for your content."},openaiApiKey:{default:""},openaiModel:{default:"gpt-4o-mini"},openaiOrganization:{default:""},showUnderlines:{type:Boolean,default:!1},dynamicTitle:{default:""},showHint:{type:Boolean,default:!0},diffMode:{type:Boolean,default:!1},oldText:{default:""},newText:{default:""},tagsOnly:{type:Boolean,default:!1}},emits:["update:modelValue","input","focus","blur","ask-ai","expand","remove-tag","tooltip-click","add-tag","tags-click"],setup(m,{expose:u,emit:s}){const i=m,l=s,r=e.ref(i.modelValue),a=e.ref([...i.tags]);e.watch(()=>i.modelValue,c=>{r.value=c}),e.watch(()=>i.tags,c=>{a.value=[...c]},{deep:!0});const d=e.computed(()=>i.type==="tags"),p=e.computed(()=>i.type==="tags"&&(i.stage==="placeholder"||i.stage==="focused")),h=e.computed(()=>(i.stage==="focused","Add tags...")),f=e.computed(()=>i.stage==="error"||i.destructive);e.computed(()=>f.value&&i.destructive?i.errorMessage:i.hintText),e.computed(()=>i.stage==="placeholder"?i.placeholder:i.stage==="focused"&&i.type==="tags"||i.stage==="default"||i.stage==="focused"?"":i.placeholder);const I=c=>{r.value=c,l("update:modelValue",c)},P=c=>{l("input",c)},V=c=>{l("focus",c)},v=c=>{l("blur",c)},B=c=>{l("ask-ai",c)},y=c=>{l("expand",c)},k=c=>{a.value.splice(c,1),l("remove-tag",c)},b=()=>{l("tooltip-click")},w=c=>{l("add-tag",c)},_=()=>{l("tags-click")};return u({focus:()=>{}}),(c,C)=>(e.openBlock(),e.createBlock(te,{modelValue:r.value,"onUpdate:modelValue":[C[0]||(C[0]=g=>r.value=g),I],label:c.label,placeholder:c.placeholder,disabled:c.disabled,readonly:c.readonly,required:c.required,"show-tooltip":c.showTooltip,"tooltip-text":c.tooltipText,"show-ai-button":c.showAiButton,"show-tags":d.value,tags:a.value,"show-add-tags-placeholder":p.value,"add-tags-placeholder":h.value,"hint-text":c.hintText,"has-error":f.value,"error-message":c.errorMessage,"modal-title":c.modalTitle,"modal-description":c.modalDescription,"openai-api-key":c.openaiApiKey,"openai-model":c.openaiModel,"openai-organization":c.openaiOrganization,"show-underlines":c.showUnderlines,"dynamic-title":c.dynamicTitle,"show-hint":c.showHint,"diff-mode":c.diffMode,"old-text":c.oldText,"new-text":c.newText,"tags-only":c.tagsOnly,onInput:P,onFocus:V,onBlur:v,onAskAi:B,onExpand:y,onRemoveTag:k,onTooltipClick:b,onAddTag:w,onTagsClick:_},null,8,["modelValue","label","placeholder","disabled","readonly","required","show-tooltip","tooltip-text","show-ai-button","show-tags","tags","show-add-tags-placeholder","add-tags-placeholder","hint-text","has-error","error-message","modal-title","modal-description","openai-api-key","openai-model","openai-organization","show-underlines","dynamic-title","show-hint","diff-mode","old-text","new-text","tags-only"]))}}),Fl=t._export_sfc(Al,[["__scopeId","data-v-19ded011"]]),Ml={class:"freddy-plugins-diff-container"},Ll=["innerHTML"],zl=["placeholder"],Rl=e.defineComponent({__name:"DiffTextarea",props:{modelValue:{},placeholder:{default:"Enter your text..."},originalText:{},improvedText:{},showDiff:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(m,{expose:u,emit:s}){const i=m,l=s,r=e.ref(null),a=e.ref(i.modelValue);e.watch(()=>i.modelValue,h=>{a.value=h});const d=()=>{l("update:modelValue",a.value)},p=e.computed(()=>{if(!i.originalText||!i.improvedText)return"";const h=i.originalText.split(/(\s+)/),f=i.improvedText.split(/(\s+)/);let I="";const P=h.filter(v=>!f.includes(v)&&v.trim()).join(" ");P&&(I+=`<span class="freddy-plugins-diff-removed">${P}</span>`);const V=f.filter(v=>!h.includes(v)&&v.trim()).join(" ");return V&&(I&&(I+="<br>"),I+=`<span class="freddy-plugins-diff-added">${V}</span>`),I||(I=`<span class="freddy-plugins-diff-improved">${i.improvedText}</span>`),I});return u({focus:()=>{var h;return(h=r.value)==null?void 0:h.focus()},blur:()=>{var h;return(h=r.value)==null?void 0:h.blur()}}),(h,f)=>(e.openBlock(),e.createElementBlock("div",Ml,[h.showDiff&&p.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"freddy-plugins-diff-preview",innerHTML:p.value},null,8,Ll)):e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:1,ref_key:"textareaRef",ref:r,"onUpdate:modelValue":f[0]||(f[0]=I=>a.value=I),class:"freddy-plugins-diff-textarea",placeholder:h.placeholder,onInput:d},null,40,zl)),[[e.vModelText,a.value]])]))}}),Ol=t._export_sfc(Rl,[["__scopeId","data-v-54efeaf3"]]),Ul=["aria-checked","tabindex","onKeydown","disabled"],ne=e.defineComponent({__name:"Switch",props:{modelValue:{type:Boolean},disabled:{type:Boolean},size:{}},emits:["update:modelValue"],setup(m,{emit:u}){t.useTheme();const s=m,i=u;function l(r){r.stopPropagation(),s.disabled||i("update:modelValue",!s.modelValue)}return(r,a)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["freddy-plugins-switch",{"freddy-plugins-switch--on":r.modelValue,"freddy-plugins-switch--disabled":r.disabled,[`freddy-plugins-switch--${r.size}`]:!0}]),"aria-checked":r.modelValue,role:"switch",tabindex:r.disabled?-1:0,onClick:l,onKeydown:[e.withKeys(e.withModifiers(l,["prevent"]),["space"]),e.withKeys(e.withModifiers(l,["prevent"]),["enter"])],disabled:r.disabled},[...a[0]||(a[0]=[e.createElementVNode("span",{class:"freddy-plugins-switch__track"},null,-1),e.createElementVNode("span",{class:"freddy-plugins-switch__thumb"},null,-1)])],42,Ul))}}),Hl={key:0,class:"freddy-plugins-dropdown-search-bar"},Kl=["placeholder"],jl={class:"freddy-plugins-dropdown-options"},Gl=["onClick"],Zl={class:"freddy-plugins-dropdown-option-label"},Wl={key:1,class:"freddy-plugins-dropdown-option-shortcut"},Jl={key:0,class:"freddy-plugins-dropdown-no-options"},Ql=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(m,{emit:u}){const s=m,i=u,l=e.ref(!1),r=e.ref(""),a=e.ref(null),d=e.shallowRef([...s.options]);e.watch(()=>s.options,b=>{d.value=[...b]});const p=()=>{if(a.value)return;const b=d.value.find(w=>w.default);b&&(a.value=b)};e.watch(d,()=>{p()},{immediate:!0});const h=e.computed(()=>s.label!=="Select"?s.label:a.value?a.value.label:"Select"),f=e.computed(()=>s.showIcon?s.customIcon?s.customIcon:s.openUp?t.IconChevronUp:t.IconChevronDown:null),I=()=>{l.value=!l.value,l.value||(r.value="")},P=()=>{l.value=!1,r.value=""},V=e.computed(()=>!s.searchable||!r.value?d.value:d.value.filter(b=>b.label.toLowerCase().includes(r.value.toLowerCase()))),v=(b,w)=>{b.type!=="toggle"&&B(b)},B=b=>{a.value=b,i("select",b),s.stayOpen||P()},y=(b,w)=>{const _=d.value.findIndex(o=>o.value===b.value);_!==-1&&(d.value[_].checked=w),i("toggle",{...b,checked:w})},k=b=>{b.target.closest(".freddy-plugins-dropdown-wrapper")||P()};return e.watch(l,b=>{b?setTimeout(()=>{document.addEventListener("click",k)},0):document.removeEventListener("click",k)}),(b,w)=>(e.openBlock(),e.createElementBlock("div",{class:"freddy-plugins-dropdown-wrapper",onKeydown:e.withKeys(P,["esc"]),tabindex:"0"},[e.createVNode(j,{class:"freddy-plugins-dropdown-trigger",label:h.value,iconOnly:b.iconOnly,rightIcon:b.chevronRight&&b.showIcon?f.value:void 0,leftIcon:!b.chevronRight&&b.showIcon?f.value:void 0,size:b.size,hierarchy:"tertiary",onClick:I,"aria-expanded":l.value,"aria-haspopup":!0,type:"button"},{default:e.withCtx(()=>[e.renderSlot(b.$slots,"button",{},()=>[e.createTextVNode(e.toDisplayString(h.value),1)])]),_:3},8,["label","iconOnly","rightIcon","leftIcon","size","aria-expanded"]),l.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["freddy-plugins-dropdown-menu",{"freddy-plugins-dropdown-menu--up":b.openUp,"freddy-plugins-dropdown-menu--down":!b.openUp}])},[b.searchable?(e.openBlock(),e.createElementBlock("div",Hl,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":w[0]||(w[0]=_=>r.value=_),type:"text",class:"freddy-plugins-dropdown-search-input",placeholder:b.searchPlaceholder},null,8,Kl),[[e.vModelText,r.value]])])):e.createCommentVNode("",!0),e.createElementVNode("ul",jl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(V.value,_=>(e.openBlock(),e.createElementBlock("li",{key:_.value,class:e.normalizeClass(["freddy-plugins-dropdown-option",{"freddy-plugins-dropdown-option--toggle":_.type==="toggle"}]),onClick:o=>v(_)},[e.createElementVNode("span",Zl,[!b.optionIconRight&&_.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_.icon),{key:0,class:"freddy-plugins-dropdown-option-icon"})):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(_.label),1),b.showShortcut&&_.shortcut?(e.openBlock(),e.createElementBlock("span",Wl,e.toDisplayString(_.shortcut),1)):e.createCommentVNode("",!0),b.optionIconRight&&_.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_.icon),{key:2,class:"freddy-plugins-dropdown-option-icon freddy-plugins-dropdown-option-icon--right"})):e.createCommentVNode("",!0)]),_.type==="toggle"?(e.openBlock(),e.createBlock(ne,{key:0,modelValue:_.checked??!1,size:s.size,"onUpdate:modelValue":o=>{y(_,o)},onClick:w[1]||(w[1]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","size","onUpdate:modelValue"])):e.createCommentVNode("",!0)],10,Gl))),128)),V.value.length===0?(e.openBlock(),e.createElementBlock("li",Jl,[e.renderSlot(b.$slots,"no-options",{},()=>[w[2]||(w[2]=e.createTextVNode("No options",-1))])])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0)],32))}}),Yl={class:"verification-container"},Xl={class:"verification-header"},es={class:"verification-subtitle"},os={class:"code-input-container"},ts={class:"code-inputs"},ns=["onUpdate:modelValue","onInput","onKeydown","disabled"],ls={class:"verification-actions"},ss={key:0,class:"error-message"},is={class:"verification-footer"},rs={class:"resend-text"},as=["disabled"],cs=e.defineComponent({__name:"EmailCodeVerification",props:{email:{},brand:{default:"contentplate"},loading:{type:Boolean,default:!1},error:{default:""},resendCooldown:{default:0}},emits:["verify","resend"],setup(m,{emit:u}){const s=m,{brand:i,loading:l,error:r,resendCooldown:a}=s,d=u,p=e.ref(["","","",""]),h=e.ref([]),f=e.computed(()=>p.value.every(k=>k!=="")),I=e.computed(()=>p.value.join("")),P=(k,b)=>{const w=b.target,_=w.value;if(!/^\d*$/.test(_)){w.value="";return}p.value[k]=_,_&&k<3&&e.nextTick(()=>{var o;(o=h.value[k+1])==null||o.focus()})},V=(k,b)=>{b.key==="Backspace"&&!p.value[k]&&k>0&&e.nextTick(()=>{var w;(w=h.value[k-1])==null||w.focus()})},v=k=>{var c;k.preventDefault();const b=(c=k.clipboardData)==null?void 0:c.getData("text");if(!b)return;const w=b.replace(/\D/g,"").slice(0,4).split("");p.value=[...w,"","","",""].slice(0,4);const _=p.value.findIndex(C=>C===""),o=_===-1?3:_;e.nextTick(()=>{var C;(C=h.value[o])==null||C.focus()})},B=()=>{f.value&&d("verify",I.value)},y=()=>{d("resend")};return e.onMounted(()=>{e.nextTick(()=>{var k;(k=h.value[0])==null||k.focus()})}),(k,b)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["email-verification",`email-verification--${e.unref(i)}`])},[e.createElementVNode("div",Yl,[e.createElementVNode("div",Xl,[b[1]||(b[1]=e.createElementVNode("h2",{class:"verification-title"},"Verify Your Email",-1)),e.createElementVNode("p",es,[b[0]||(b[0]=e.createTextVNode(" We've sent a 4-digit verification code to ",-1)),e.createElementVNode("strong",null,e.toDisplayString(k.email),1)])]),e.createElementVNode("form",{onSubmit:e.withModifiers(B,["prevent"]),class:"verification-form"},[e.createElementVNode("div",os,[e.createElementVNode("div",ts,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,(w,_)=>e.withDirectives(e.createElementVNode("input",{key:_,ref_for:!0,ref:o=>h.value[_]=o,"onUpdate:modelValue":o=>p.value[_]=o,type:"text",maxlength:"1",class:e.normalizeClass(["code-input",`code-input--${e.unref(i)}`]),onInput:o=>P(_,o),onKeydown:o=>V(_,o),onPaste:v,disabled:e.unref(l),autocomplete:"one-time-code"},null,42,ns),[[e.vModelText,p.value[_]]])),64))])]),e.createElementVNode("div",ls,[e.createVNode(j,{type:"submit",label:e.unref(l)?"Verifying...":"Verify Code",hierarchy:"primary",size:"lg",loading:e.unref(l),disabled:!f.value||e.unref(l),class:e.normalizeClass(`verify-button verify-button--${e.unref(i)}`)},null,8,["label","loading","disabled","class"])]),e.unref(r)?(e.openBlock(),e.createElementBlock("div",ss,e.toDisplayString(e.unref(r)),1)):e.createCommentVNode("",!0),e.createElementVNode("div",is,[e.createElementVNode("p",rs,[b[2]||(b[2]=e.createTextVNode(" Didn't receive the code? ",-1)),e.createElementVNode("button",{type:"button",class:"resend-button",disabled:e.unref(a)>0,onClick:y},e.toDisplayString(e.unref(a)>0?`Resend in ${e.unref(a)}s`:"Resend code"),9,as)])])],32)])],2))}}),ds={class:"freddy-plugins-input-field-wrapper"},us=["for"],_s={key:0,class:"freddy-plugins-required-asterisk"},ps=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(m,{expose:u,emit:s}){const i=m,l=s,r=e.computed(()=>`input-${Math.random().toString(36).substr(2,9)}`),a=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"})),d=()=>{i.state!=="disabled"&&l("focus",new FocusEvent("focus"))};return u({inputId:r,containerClasses:a,focusInput:d}),(p,h)=>(e.openBlock(),e.createElementBlock("div",ds,[p.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:r.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",_s,"*")):e.createCommentVNode("",!0)],10,us)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-input-field-container",a.value]),onClick:d},[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)]))}}),A=t._export_sfc(ps,[["__scopeId","data-v-bb114a19"]]),le=(m,u,s)=>{const i=m[u];return i?typeof i=="function"?i():Promise.resolve(i):new Promise((l,r)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(r.bind(null,new Error("Unknown variable dynamic import: "+u+(u.split("/").length!==s?". Note that variables only represent file names one level deep.":""))))})},ms=["src","alt"],vs=["id","placeholder","disabled","readonly","maxlength"],hs=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(m,{expose:u,emit:s}){const i=m,l=s,r=e.ref(null),a=e.ref(null),d=e.ref(""),p=e.ref(""),h=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})),I=g=>g?typeof g=="object"?g:typeof g=="string"?e.defineAsyncComponent(()=>le(Object.assign({"../../icons/IconAddFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_0),"../../icons/IconAddPeople.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_1),"../../icons/IconAitronos.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_2),"../../icons/IconApple.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_3),"../../icons/IconApplePay.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_4),"../../icons/IconArrowDown.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_5),"../../icons/IconArrowLeft.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_6),"../../icons/IconArrowUp.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_7),"../../icons/IconBadgeCheck.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_8),"../../icons/IconBroom.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_9),"../../icons/IconBuildings.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_10),"../../icons/IconCalendarWithTickInside.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_11),"../../icons/IconCallNotAllowed.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_12),"../../icons/IconCardPay.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_13),"../../icons/IconCaution.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_14),"../../icons/IconChangeLog.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_15),"../../icons/IconCheckCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_16),"../../icons/IconCheckInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_17),"../../icons/IconCheckRounded.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_18),"../../icons/IconChevronDown.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_19),"../../icons/IconChevronLeft.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_20),"../../icons/IconChevronRight.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_21),"../../icons/IconChevronUp.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_22),"../../icons/IconCircledCheck.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_23),"../../icons/IconClock.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_24),"../../icons/IconClosedEnvelope.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_25),"../../icons/IconCloudUpload.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_26),"../../icons/IconConnectorConfluence.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_27),"../../icons/IconConnectorFigma.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_28),"../../icons/IconConnectorFreshDesk.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_29),"../../icons/IconConnectorGitHub.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_30),"../../icons/IconConnectorJira.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_31),"../../icons/IconConnectorLinear.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_32),"../../icons/IconConnectorNotion.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_33),"../../icons/IconConnectorSlack.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_34),"../../icons/IconConnectorZapier.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_35),"../../icons/IconCopy.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_36),"../../icons/IconCross.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_37),"../../icons/IconCrossCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_38),"../../icons/IconCrossInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_39),"../../icons/IconCurrentTick.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_40),"../../icons/IconDataUpload.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_41),"../../icons/IconDelete.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_42),"../../icons/IconDeleteFillRed.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_43),"../../icons/IconDialingPhone.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_44),"../../icons/IconDisabledAlert.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_45),"../../icons/IconDocumentation.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_46),"../../icons/IconDownload.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_47),"../../icons/IconDribbble.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_48),"../../icons/IconDropdownArrow.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_49),"../../icons/IconEdit.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_50),"../../icons/IconEditLinePath.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_51),"../../icons/IconEllipse.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_52),"../../icons/IconExcelThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_53),"../../icons/IconEye.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_54),"../../icons/IconFacebook.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_55),"../../icons/IconFigma.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_56),"../../icons/IconFile.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_57),"../../icons/IconFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_58),"../../icons/IconFileUpload.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_59),"../../icons/IconFilter.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_60),"../../icons/IconFolder.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_61),"../../icons/IconFreddyHub.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_62),"../../icons/IconFreddyHubLogo.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_63),"../../icons/IconFreddyHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_64),"../../icons/IconFreddyHubTitle.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_65),"../../icons/IconFreddySmall.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_66),"../../icons/IconGlobExpand.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_67),"../../icons/IconGlobe.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_68),"../../icons/IconGoogle.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_69),"../../icons/IconHollowCircle.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_70),"../../icons/IconHome.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_71),"../../icons/IconInfoRounded.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_72),"../../icons/IconInvalidInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_73),"../../icons/IconInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_74),"../../icons/IconInvoiceSwitch.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_75),"../../icons/IconLapTableBottom.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_76),"../../icons/IconLense.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_77),"../../icons/IconLightCross.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_78),"../../icons/IconLink04.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_79),"../../icons/IconLoadingError.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_80),"../../icons/IconLoadingOrg.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_81),"../../icons/IconLocationWithCircleIn.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_82),"../../icons/IconLock.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_83),"../../icons/IconMarketPlace.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_84),"../../icons/IconMaximize.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_85),"../../icons/IconMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_86),"../../icons/IconMutedMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_87),"../../icons/IconNewNotification.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_88),"../../icons/IconNewTab.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_89),"../../icons/IconNotification.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_90),"../../icons/IconOpenBook.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_91),"../../icons/IconPaperAirPlane.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_92),"../../icons/IconPauseCircle.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_93),"../../icons/IconPdfThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_94),"../../icons/IconPenEdit.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_95),"../../icons/IconPencil.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_96),"../../icons/IconPeopleHub.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_97),"../../icons/IconPersonCircle.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_98),"../../icons/IconPits.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_99),"../../icons/IconPlay.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_100),"../../icons/IconPlus.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_101),"../../icons/IconPolygonDown.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_102),"../../icons/IconPresentation.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_103),"../../icons/IconProgressBase.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_104),"../../icons/IconProgressComplete.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_105),"../../icons/IconProgressGoing.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_106),"../../icons/IconPurpose.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_107),"../../icons/IconPurseCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_108),"../../icons/IconQuestion.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_109),"../../icons/IconRadio.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_110),"../../icons/IconRadioFill.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_111),"../../icons/IconRefresh.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_112),"../../icons/IconRevertedTraingle.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_113),"../../icons/IconRobotScreen.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_114),"../../icons/IconRoundTick.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_115),"../../icons/IconSearch.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_116),"../../icons/IconSearchOptimised.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_117),"../../icons/IconSectionHide.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_118),"../../icons/IconSend.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_119),"../../icons/IconSettings.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_120),"../../icons/IconSettingsBold.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_121),"../../icons/IconSize.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_122),"../../icons/IconSliderKnobs.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_123),"../../icons/IconSortIdle.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_124),"../../icons/IconSparkle.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_125),"../../icons/IconSpotlio.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_126),"../../icons/IconStar.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_127),"../../icons/IconStatistics.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_128),"../../icons/IconStopChat.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_129),"../../icons/IconStreamLineHub.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_130),"../../icons/IconStreamLineHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_131),"../../icons/IconSun.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_132),"../../icons/IconSwap.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_133),"../../icons/IconText.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_134),"../../icons/IconTextThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_135),"../../icons/IconThinDocument.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_136),"../../icons/IconThinFile.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_137),"../../icons/IconThumbsDown.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_138),"../../icons/IconTick.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_139),"../../icons/IconUser.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_140),"../../icons/IconVerticalDots.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_141),"../../icons/IconVideoCamera.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_142),"../../icons/IconWarningOctal.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_143),"../../icons/IconX.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_144),"../../icons/IconZip.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(n=>n.__vite_glob_0_145)}),`../../icons/${g}.vue`,4).catch(()=>({template:"<div></div>"}))):null:null,P=e.computed(()=>I(i.trailingIcon)),V=e.computed(()=>{switch(h.value){case"amex":return 17;default:return 19}}),v=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&&h.value!=="unknown","freddy-plugins-input-field--with-trailing":!!P.value})),B=g=>{const n=g.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"},y=g=>{const n=g.replace(/\D/g,"");return B(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)},k=g=>{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[g]||n.unknown},b=g=>{const N=g.target.value;d.value=N.replace(/\D/g,""),p.value=y(N);const S=B(d.value);S!==h.value&&(h.value=S,l("card-type-detected",S)),l("update:modelValue",p.value),l("update:cardNumber",d.value),l("input",p.value)},w=g=>{[8,9,27,13,46].indexOf(g.keyCode)!==-1||g.keyCode===65&&g.ctrlKey===!0||g.keyCode===67&&g.ctrlKey===!0||g.keyCode===86&&g.ctrlKey===!0||g.keyCode===88&&g.ctrlKey===!0||g.keyCode>=35&&g.keyCode<=39||(g.shiftKey||g.keyCode<48||g.keyCode>57)&&(g.keyCode<96||g.keyCode>105)&&g.preventDefault()},_=g=>{l("focus",g)},o=g=>{l("blur",g)},c=g=>{l("trailing-icon-click",g)},C=()=>{var g;(g=r.value)==null||g.focus()};return e.watch(()=>i.cardNumber,g=>{g!==d.value&&(d.value=g,p.value=y(g),h.value=B(g))},{immediate:!0}),u({focus:C,inputRef:r}),(g,n)=>(e.openBlock(),e.createBlock(A,e.mergeProps(f.value,{onFocus:_,onBlur:o}),{default:e.withCtx(()=>{var N;return[g.showCardIcon&&h.value!=="unknown"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["freddy-plugins-card-type-icon",`freddy-plugins-card-type-icon--${g.colorStyle}`])},[e.createElementVNode("img",{src:k(h.value),alt:`${h.value} card`,class:"freddy-plugins-card-icon-image"},null,8,ms)],2)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:(N=a.value)==null?void 0:N.inputId,ref_key:"inputRef",ref:r,"onUpdate:modelValue":n[0]||(n[0]=S=>p.value=S),type:"text",inputmode:"numeric",placeholder:g.placeholder,disabled:g.disabled,readonly:g.readonly,maxlength:V.value,class:e.normalizeClass(["freddy-plugins-input-field freddy-plugins-card-input-field",v.value]),onInput:b,onKeydown:w,onFocus:_,onBlur:o},null,42,vs),[[e.vModelText,p.value]]),P.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(P.value),{key:1,class:e.normalizeClass(["freddy-plugins-input-trailing-icon",`freddy-plugins-input-trailing-icon--${g.colorStyle}`]),onClick:c},null,8,["class"])):e.createCommentVNode("",!0)]}),_:1},16))}}),se=t._export_sfc(hs,[["__scopeId","data-v-3a6797a1"]]),fs=["id","type","placeholder","disabled","readonly"],gs=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(m,{expose:u,emit:s}){const i=m,l=s,r=e.ref(null),a=e.ref(null),d=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})),h=_=>_?typeof _=="object"?_:typeof _=="string"?e.defineAsyncComponent(()=>le(Object.assign({"../../icons/IconAddFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_0),"../../icons/IconAddPeople.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_1),"../../icons/IconAitronos.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_2),"../../icons/IconApple.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_3),"../../icons/IconApplePay.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_4),"../../icons/IconArrowDown.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_5),"../../icons/IconArrowLeft.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_6),"../../icons/IconArrowUp.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_7),"../../icons/IconBadgeCheck.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_8),"../../icons/IconBroom.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_9),"../../icons/IconBuildings.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_10),"../../icons/IconCalendarWithTickInside.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_11),"../../icons/IconCallNotAllowed.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_12),"../../icons/IconCardPay.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_13),"../../icons/IconCaution.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_14),"../../icons/IconChangeLog.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_15),"../../icons/IconCheckCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_16),"../../icons/IconCheckInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_17),"../../icons/IconCheckRounded.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_18),"../../icons/IconChevronDown.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_19),"../../icons/IconChevronLeft.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_20),"../../icons/IconChevronRight.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_21),"../../icons/IconChevronUp.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_22),"../../icons/IconCircledCheck.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_23),"../../icons/IconClock.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_24),"../../icons/IconClosedEnvelope.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_25),"../../icons/IconCloudUpload.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_26),"../../icons/IconConnectorConfluence.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_27),"../../icons/IconConnectorFigma.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_28),"../../icons/IconConnectorFreshDesk.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_29),"../../icons/IconConnectorGitHub.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_30),"../../icons/IconConnectorJira.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_31),"../../icons/IconConnectorLinear.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_32),"../../icons/IconConnectorNotion.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_33),"../../icons/IconConnectorSlack.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_34),"../../icons/IconConnectorZapier.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_35),"../../icons/IconCopy.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_36),"../../icons/IconCross.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_37),"../../icons/IconCrossCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_38),"../../icons/IconCrossInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_39),"../../icons/IconCurrentTick.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_40),"../../icons/IconDataUpload.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_41),"../../icons/IconDelete.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_42),"../../icons/IconDeleteFillRed.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_43),"../../icons/IconDialingPhone.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_44),"../../icons/IconDisabledAlert.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_45),"../../icons/IconDocumentation.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_46),"../../icons/IconDownload.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_47),"../../icons/IconDribbble.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_48),"../../icons/IconDropdownArrow.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_49),"../../icons/IconEdit.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_50),"../../icons/IconEditLinePath.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_51),"../../icons/IconEllipse.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_52),"../../icons/IconExcelThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_53),"../../icons/IconEye.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_54),"../../icons/IconFacebook.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_55),"../../icons/IconFigma.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_56),"../../icons/IconFile.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_57),"../../icons/IconFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_58),"../../icons/IconFileUpload.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_59),"../../icons/IconFilter.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_60),"../../icons/IconFolder.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_61),"../../icons/IconFreddyHub.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_62),"../../icons/IconFreddyHubLogo.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_63),"../../icons/IconFreddyHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_64),"../../icons/IconFreddyHubTitle.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_65),"../../icons/IconFreddySmall.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_66),"../../icons/IconGlobExpand.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_67),"../../icons/IconGlobe.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_68),"../../icons/IconGoogle.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_69),"../../icons/IconHollowCircle.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_70),"../../icons/IconHome.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_71),"../../icons/IconInfoRounded.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_72),"../../icons/IconInvalidInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_73),"../../icons/IconInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_74),"../../icons/IconInvoiceSwitch.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_75),"../../icons/IconLapTableBottom.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_76),"../../icons/IconLense.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_77),"../../icons/IconLightCross.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_78),"../../icons/IconLink04.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_79),"../../icons/IconLoadingError.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_80),"../../icons/IconLoadingOrg.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_81),"../../icons/IconLocationWithCircleIn.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_82),"../../icons/IconLock.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_83),"../../icons/IconMarketPlace.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_84),"../../icons/IconMaximize.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_85),"../../icons/IconMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_86),"../../icons/IconMutedMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_87),"../../icons/IconNewNotification.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_88),"../../icons/IconNewTab.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_89),"../../icons/IconNotification.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_90),"../../icons/IconOpenBook.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_91),"../../icons/IconPaperAirPlane.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_92),"../../icons/IconPauseCircle.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_93),"../../icons/IconPdfThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_94),"../../icons/IconPenEdit.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_95),"../../icons/IconPencil.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_96),"../../icons/IconPeopleHub.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_97),"../../icons/IconPersonCircle.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_98),"../../icons/IconPits.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_99),"../../icons/IconPlay.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_100),"../../icons/IconPlus.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_101),"../../icons/IconPolygonDown.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_102),"../../icons/IconPresentation.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_103),"../../icons/IconProgressBase.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_104),"../../icons/IconProgressComplete.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_105),"../../icons/IconProgressGoing.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_106),"../../icons/IconPurpose.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_107),"../../icons/IconPurseCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_108),"../../icons/IconQuestion.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_109),"../../icons/IconRadio.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_110),"../../icons/IconRadioFill.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_111),"../../icons/IconRefresh.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_112),"../../icons/IconRevertedTraingle.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_113),"../../icons/IconRobotScreen.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_114),"../../icons/IconRoundTick.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_115),"../../icons/IconSearch.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_116),"../../icons/IconSearchOptimised.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_117),"../../icons/IconSectionHide.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_118),"../../icons/IconSend.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_119),"../../icons/IconSettings.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_120),"../../icons/IconSettingsBold.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_121),"../../icons/IconSize.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_122),"../../icons/IconSliderKnobs.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_123),"../../icons/IconSortIdle.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_124),"../../icons/IconSparkle.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_125),"../../icons/IconSpotlio.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_126),"../../icons/IconStar.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_127),"../../icons/IconStatistics.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_128),"../../icons/IconStopChat.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_129),"../../icons/IconStreamLineHub.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_130),"../../icons/IconStreamLineHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_131),"../../icons/IconSun.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_132),"../../icons/IconSwap.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_133),"../../icons/IconText.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_134),"../../icons/IconTextThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_135),"../../icons/IconThinDocument.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_136),"../../icons/IconThinFile.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_137),"../../icons/IconThumbsDown.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_138),"../../icons/IconTick.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_139),"../../icons/IconUser.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_140),"../../icons/IconVerticalDots.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_141),"../../icons/IconVideoCamera.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_142),"../../icons/IconWarningOctal.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_143),"../../icons/IconX.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_144),"../../icons/IconZip.vue":()=>Promise.resolve().then(()=>require("./icons-BGgr1l_8.cjs")).then(o=>o.__vite_glob_0_145)}),`../../icons/${_}.vue`,4).catch(()=>({template:"<div></div>"}))):null:null,f=e.computed(()=>h(i.leadingIcon)),I=e.computed(()=>h(i.trailingIcon)),P=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":!!I.value})),V=_=>{const o=_.target;d.value=o.value,l("update:modelValue",o.value),l("input",o.value)},v=_=>{l("focus",_)},B=_=>{l("blur",_)},y=_=>{l("keydown",_)},k=_=>{l("leading-icon-click",_)},b=_=>{l("trailing-icon-click",_)},w=()=>{var _;(_=r.value)==null||_.focus()};return e.watch(()=>i.modelValue,_=>{_!==void 0&&(d.value=_)}),u({focus:w,inputRef:r}),(_,o)=>(e.openBlock(),e.createBlock(A,e.mergeProps(p.value,{onFocus:v,onBlur:B}),{default:e.withCtx(()=>{var c;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--${_.colorStyle}`]),onClick:k},null,8,["class"])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:(c=a.value)==null?void 0:c.inputId,ref_key:"inputRef",ref:r,"onUpdate:modelValue":o[0]||(o[0]=C=>d.value=C),type:_.inputType,placeholder:_.placeholder,disabled:_.disabled,readonly:_.readonly,class:e.normalizeClass(["freddy-plugins-input-field",P.value]),onInput:V,onFocus:v,onBlur:B,onKeydown:y},null,42,fs),[[e.vModelDynamic,d.value]]),_.trailingIcon==="IconQuestion"&&_.tooltipText?(e.openBlock(),e.createBlock(T,{key:1,text:_.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--${_.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--${_.colorStyle}`]),onClick:b},null,8,["class"])):e.createCommentVNode("",!0)]}),_:1},16))}}),ie=t._export_sfc(gs,[["__scopeId","data-v-e865b202"]]),ys={class:"freddy-plugins-figma-dropdown-text"},bs=["onClick"],ks={class:"freddy-plugins-country-flag"},Is={class:"freddy-plugins-country-name"},Cs={class:"freddy-plugins-country-dial-code"},ws=["id","placeholder","disabled","readonly"],Bs={key:0,class:"freddy-plugins-figma-help-icon"},Es=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(m,{expose:u,emit:s}){const i=m,l=s,r=e.ref(null),a=e.ref(null),d=e.ref(i.phoneNumber||""),p=e.ref(!1),h=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"}],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})),P=e.computed(()=>i.countryOptions||f),V=e.computed(()=>P.value.find(o=>o.code===h.value)||P.value[0]),v=()=>{i.disabled||(p.value=!p.value)},B=o=>{h.value=o.code,l("update:countryCode",o.code),l("country-change",o);const c=d.value.replace(/^\+\d+\s*/,""),C=`${o.dialCode} ${c}`.trim();d.value=C,l("update:phoneNumber",C),l("update:modelValue",C),p.value=!1},y=o=>{const c=o.target;d.value=c.value;const C=`${V.value.dialCode} ${c.value}`;l("update:modelValue",C),l("update:phoneNumber",c.value),l("input",C)},k=o=>{l("focus",o)},b=o=>{l("blur",o)},w=()=>{var o;(o=r.value)==null||o.focus()},_=o=>{o.target.closest(".freddy-plugins-input-field-container")||(p.value=!1)};return e.watch(()=>i.countryCode,o=>{o&&o!==h.value&&(h.value=o)},{immediate:!0}),e.watch(()=>i.phoneNumber,o=>{o!==void 0&&(d.value=o)}),e.onMounted(()=>{document.addEventListener("click",_)}),e.onUnmounted(()=>{document.removeEventListener("click",_)}),u({focus:w,inputRef:r}),(o,c)=>(e.openBlock(),e.createBlock(A,e.mergeProps(I.value,{onFocus:k,onBlur:b}),{default:e.withCtx(()=>{var C;return[e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-figma-dropdown",`freddy-plugins-figma-dropdown--${o.colorStyle}`]),onClick:v},[e.createElementVNode("span",ys,e.toDisplayString(V.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(P.value,g=>(e.openBlock(),e.createElementBlock("div",{key:g.code,class:e.normalizeClass(["freddy-plugins-country-option",`freddy-plugins-country-option--${o.colorStyle}`]),onClick:n=>B(g)},[e.createElementVNode("span",ks,e.toDisplayString(g.flag),1),e.createElementVNode("span",Is,e.toDisplayString(g.name),1),e.createElementVNode("span",Cs,e.toDisplayString(g.dialCode),1)],10,bs))),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:(C=a.value)==null?void 0:C.inputId,ref_key:"inputRef",ref:r,"onUpdate:modelValue":c[0]||(c[0]=g=>d.value=g),type:"tel",placeholder:o.placeholder,disabled:o.disabled,readonly:o.readonly,class:"freddy-plugins-figma-phone-input",onInput:y,onFocus:k,onBlur:b},null,40,ws),[[e.vModelText,d.value]]),o.trailingIcon==="IconQuestion"?(e.openBlock(),e.createElementBlock("div",Bs,[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))}}),re=t._export_sfc(Es,[["__scopeId","data-v-20d005c2"]]),Ps=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(m,{emit:u}){const s=m,i=u,l=e.computed(()=>s.variant||s.type||"default"),r=e.computed(()=>({size:s.size,colorStyle:s.colorStyle,state:s.state,destructive:s.destructive,required:s.required,label:s.label,hintText:s.hintText,placeholder:s.placeholder,countryCode:s.countryCode,phoneNumber:s.phoneNumber,countryOptions:s.countryOptions,trailingIcon:s.trailingIcon,tooltipText:s.tooltipText,disabled:s.disabled,readonly:s.readonly})),a=e.computed(()=>({size:s.size,colorStyle:s.colorStyle,state:s.state,destructive:s.destructive,required:s.required,label:s.label,hintText:s.hintText,placeholder:s.placeholder,cardNumber:s.cardNumber,cardType:s.cardType,maskInput:s.maskInput,showCardIcon:s.showCardIcon,trailingIcon:s.trailingIcon,disabled:s.disabled,readonly:s.readonly})),d=e.computed(()=>({size:s.size,colorStyle:s.colorStyle,state:s.state,destructive:s.destructive,required:s.required,label:s.label,hintText:s.hintText,placeholder:s.placeholder,inputType:s.inputType,modelValue:s.modelValue,leadingIcon:s.leadingIcon,trailingIcon:s.trailingIcon,tooltipText:s.tooltipText,disabled:s.disabled,readonly:s.readonly})),p=_=>{i("update:modelValue",_)},h=_=>{i("input",_)},f=_=>{i("focus",_)},I=_=>{i("blur",_)},P=_=>{i("keydown",_)},V=_=>{i("leading-icon-click",_)},v=_=>{i("trailing-icon-click",_)},B=_=>{i("update:countryCode",_)},y=_=>{i("update:phoneNumber",_)},k=_=>{i("country-change",_)},b=_=>{i("update:cardNumber",_)},w=_=>{i("card-type-detected",_)};return(_,o)=>l.value==="phone"?(e.openBlock(),e.createBlock(re,e.mergeProps({key:0},r.value,{"onUpdate:modelValue":p,"onUpdate:countryCode":B,"onUpdate:phoneNumber":y,onCountryChange:k,onInput:h,onFocus:f,onBlur:I}),null,16)):l.value==="card"?(e.openBlock(),e.createBlock(se,e.mergeProps({key:1},a.value,{"onUpdate:modelValue":p,"onUpdate:cardNumber":b,onCardTypeDetected:w,onInput:h,onFocus:f,onBlur:I,onTrailingIconClick:v}),null,16)):(e.openBlock(),e.createBlock(ie,e.mergeProps({key:2},d.value,{"onUpdate:modelValue":p,onInput:h,onFocus:f,onBlur:I,onKeydown:P,onLeadingIconClick:V,onTrailingIconClick:v}),null,16))}}),Vs=t._export_sfc(Ps,[["__scopeId","data-v-5a761e6c"]]),Ns={name:"ModalBox",props:{isVisible:{type:Boolean,default:!0},largeModel:{type:Boolean,default:!0}},methods:{closeModal(){this.$emit("close")}}},Ss={key:0,class:"fixed z-[9998] top-0 left-0 w-full h-full bg-modalBackgroundBlur flex justify-center items-center"},Ts={class:"flex justify-center items-center"},$s={class:"freddy-plugins-modal-header"},xs={class:"freddy-plugins-modal-body"},Ds={class:"freddy-plugins-modal-footer"};function qs(m,u,s,i,l,r){return e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[s.isVisible?(e.openBlock(),e.createElementBlock("div",Ss,[e.createElementVNode("div",Ts,[e.createElementVNode("div",{class:e.normalizeClass({"p-8 bg-background rounded-[2.5rem] overflow-hidden text-white":s.largeModel,"freddy-plugins-modal-container-large":s.largeModel})},[e.createElementVNode("div",$s,[e.renderSlot(m.$slots,"header")]),e.createElementVNode("div",xs,[e.renderSlot(m.$slots,"body")]),e.createElementVNode("div",Ds,[e.renderSlot(m.$slots,"footer")])],2)])])):e.createCommentVNode("",!0)]),_:3})}const ae=t._export_sfc(Ns,[["render",qs]]),As=e.defineComponent({__name:"InstructionsModal",props:{isVisible:{type:Boolean,required:!0}},setup(m){return(u,s)=>(e.openBlock(),e.createBlock(ae,{isVisible:m.isVisible},{header:e.withCtx(()=>[...s[0]||(s[0]=[e.createElementVNode("h2",null,"Instructions",-1)])]),body:e.withCtx(()=>[...s[1]||(s[1]=[e.createElementVNode("p",null,"Instructions",-1)])]),_:1},8,["isVisible"]))}}),Fs=["value","placeholder"],Ms=e.defineComponent({__name:"InstructiontextArea",props:{inputValue:{},placeholder:{},height:{}},emits:["update:inputValue"],setup(m,{emit:u}){const s=m,i=u,l=e.computed(()=>s.height||"40px"),r=a=>{const d=a.target;i("update:inputValue",d.value)};return(a,d)=>(e.openBlock(),e.createElementBlock("input",{type:"text",value:a.inputValue,placeholder:a.placeholder,style:e.normalizeStyle({width:"100%",height:l.value}),onInput:r,class:"instruction-text-input","aria-label":"Instruction input"},null,44,Fs))}}),Ls=t._export_sfc(Ms,[["__scopeId","data-v-d4000e78"]]),zs={class:"freddy-plugins-modal-header"},Rs={class:"freddy-plugins-modal-body"},Os=e.defineComponent({__name:"ModalOverlay",props:{modalTitle:{},headerClass:{},disableClickOutside:{type:Boolean}},emits:["close"],setup(m,{emit:u}){t.useTheme();const s=m,i=u,l=()=>{i("close")},r=()=>{s.disableClickOutside||l()};return(a,d)=>(e.openBlock(),e.createElementBlock("div",{role:"dialog","aria-modal":"true",class:"freddy-plugins-modal-overlay",onClick:r},[e.createElementVNode("div",{class:"freddy-plugins-modal-content",onClick:d[0]||(d[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("header",zs,[e.createElementVNode("h2",{class:e.normalizeClass(["freddy-plugins-modal-title",a.headerClass])},e.toDisplayString(a.modalTitle),3),e.createElementVNode("button",{class:"freddy-plugins-modal-close",onClick:l},[e.createVNode(t.IconLightCross,{class:"freddy-plugins-modal-close-icon"})])]),e.createElementVNode("div",Rs,[e.renderSlot(a.$slots,"content")])])]))}}),ce=e.defineComponent({__name:"Spinner",props:{customClass:{}},setup(m){return t.useTheme(),(u,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-plugin-spinner",u.customClass])},null,2))}}),Us=["placeholder","maxlength"],F=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(m,{emit:u}){t.useTheme();const s=e.useAttrs(),i=e.ref(null),l=e.ref(null),r=e.ref(null),a=u,d=()=>{var f;(f=l.value)==null||f.focus()},p=()=>{a("update:searchInput",i.value)},h=()=>{a("clear")};return(f,I)=>{var P;return e.openBlock(),e.createElementBlock("div",{ref_key:"dropdownRef",ref:r,class:e.normalizeClass(["freddy-search-wrapper",e.unref(s).class]),onClick:d},[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:l,"onUpdate:modelValue":I[0]||(I[0]=V=>i.value=V),onInput:p,placeholder:f.placeholder,maxlength:f.maxCharLimit},null,40,Us),[[e.vModelText,i.value]]),f.showLoaderForSearch?(e.openBlock(),e.createBlock(ce,{key:0,class:"freddy-search-spinner"})):e.createCommentVNode("",!0),f.showCloseButton&&!f.showLoaderForSearch&&((P=i.value)!=null&&P.length)?(e.openBlock(),e.createBlock(t.IconCross,{key:1,class:"freddy-search-close",onClick:h})):e.createCommentVNode("",!0)],2)}}}),Hs={class:"model-dropdown-selected-content"},Ks=["src","alt"],js={class:"model-dropdown-placeholder"},Gs={key:0,class:"model-dropdown-menu"},Zs={key:0,class:"model-dropdown-search"},Ws={class:"model-dropdown-options"},Js=["onClick"],Qs=["src","alt"],Ys={class:"model-dropdown-option-value"},Xs={key:0,class:"model-dropdown-no-options"},ei=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(m,{emit:u}){const s=m,i=u,l=e.ref(!1),r=e.ref(""),a=e.ref(null),d=e.computed(()=>!s.searchable||!r.value?s.options:s.options.filter(P=>P.value.toLowerCase().includes(r.value.toLowerCase()))),p=()=>{l.value=!l.value,l.value||(r.value="")},h=()=>{l.value=!1,r.value=""},f=P=>{a.value=P,i("select",P),h()},I=P=>{P.target.closest(".model-dropdown-wrapper")||h()};return e.watch(l,P=>{P?setTimeout(()=>{document.addEventListener("click",I)},0):document.removeEventListener("click",I)}),e.onUnmounted(()=>{document.removeEventListener("click",I)}),(P,V)=>{var v,B;return e.openBlock(),e.createElementBlock("div",{class:"model-dropdown-wrapper",onKeydown:e.withKeys(h,["esc"])},[e.createElementVNode("div",{class:e.normalizeClass(["model-dropdown-trigger",[`model-dropdown-trigger--${P.size}`,{"model-dropdown-trigger--open":l.value}]]),onClick:p},[e.createElementVNode("div",Hs,[(v=a.value)!=null&&v.imageSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:a.value.imageSrc,alt:a.value.value,class:"model-dropdown-selected-image"},null,8,Ks)):e.createCommentVNode("",!0),e.createElementVNode("span",js,e.toDisplayString(((B=a.value)==null?void 0:B.value)||P.modelPlaceholder),1)]),l.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),l.value?(e.openBlock(),e.createElementBlock("div",Gs,[P.searchable?(e.openBlock(),e.createElementBlock("div",Zs,[e.createVNode(F,{modelValue:r.value,"onUpdate:modelValue":V[0]||(V[0]=y=>r.value=y),placeholder:P.searchPlaceholder,showCloseButton:!0},null,8,["modelValue","placeholder"])])):e.createCommentVNode("",!0),e.createElementVNode("ul",Ws,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,y=>{var k;return e.openBlock(),e.createElementBlock("li",{key:y.id,class:e.normalizeClass(["model-dropdown-option",{"model-dropdown-option--selected":((k=a.value)==null?void 0:k.id)===y.id}]),onClick:b=>f(y)},[y.imageSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:y.imageSrc,alt:y.value,class:"model-dropdown-option-image"},null,8,Qs)):e.createCommentVNode("",!0),e.createElementVNode("span",Ys,e.toDisplayString(y.value),1)],10,Js)}),128)),d.value.length===0?(e.openBlock(),e.createElementBlock("li",Xs," No providers found ")):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)],32)}}}),oi=t._export_sfc(ei,[["__scopeId","data-v-75f8685b"]]),ti=e.defineComponent({__name:"OutputModeModal",props:{isVisible:{type:Boolean,required:!0},initialJsonContent:{type:String,default:"{}"},openaiApiKey:{type:String,default:""},openaiModel:{type:String,default:"gpt-4o-mini"},openaiOrganization:{type:String,default:""}},emits:["close","save","cancel","askAI","toggleAI"],setup(m,{emit:u}){const s=u,i=r=>{try{JSON.parse(r),s("save",r)}catch{alert("Invalid JSON format. Please fix the JSON before saving.")}},l=r=>{s("toggleAI",r)};return(r,a)=>(e.openBlock(),e.createBlock(q,{"is-visible":m.isVisible,title:"Edit response format",description:"Use a JSON schema to define the structure of the model's response format. Learn more.","initial-content":m.initialJsonContent,"openai-api-key":m.openaiApiKey,"openai-model":m.openaiModel,"openai-organization":m.openaiOrganization,onClose:a[0]||(a[0]=d=>r.$emit("close")),onSave:i,onCancel:a[1]||(a[1]=d=>r.$emit("cancel")),onAskAI:a[2]||(a[2]=d=>r.$emit("askAI",d)),onToggleAI:l},null,8,["is-visible","initial-content","openai-api-key","openai-model","openai-organization"]))}}),ni={key:0,class:"freddy-pagination-nav","aria-label":"Pagination"},li=["disabled"],si={class:"freddy-pagination-dynamic-container"},ii=["onClick","disabled"],ri=["disabled"],ai=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(m,{emit:u}){const s=m,i=u,l=e.computed(()=>!s.totalItems||isNaN(s.totalItems)?0:Math.ceil(s.totalItems/s.itemsPerPage)),r=e.computed(()=>{const d=[],p=l.value,h=s.currentPage;if(p<=7)for(let f=1;f<=p;f++)d.push(f);else{d.push(1),h>4?d.push("..."):d.push(2,3);for(let f=Math.max(4,h-1);f<=Math.min(p-3,h+1);f++)d.push(f);h<p-4&&d.push("..."),d.push(p-2,p-1,p)}return d});function a(d){d==="..."||d===s.currentPage||typeof d=="number"&&d>=1&&d<=l.value&&i("update:currentPage",d)}return(d,p)=>l.value>0?(e.openBlock(),e.createElementBlock("nav",ni,[e.createElementVNode("button",{class:e.normalizeClass(["freddy-pagination-end-button",{"freddy-pagination-hover-enabled":m.currentPage!==1}]),onClick:p[0]||(p[0]=h=>a(m.currentPage-1)),disabled:m.currentPage===1}," Previous ",10,li),e.createElementVNode("div",si,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,h=>(e.openBlock(),e.createElementBlock("button",{key:String(h),class:e.normalizeClass(["freddy-pagination-number-button",{active:h===m.currentPage}]),onClick:f=>a(h),disabled:h==="..."||h===m.currentPage},e.toDisplayString(h),11,ii))),128)),e.createElementVNode("button",{class:e.normalizeClass(["freddy-pagination-end-button",{"freddy-pagination-hover-enabled":m.currentPage!==l.value}]),onClick:p[1]||(p[1]=h=>a(m.currentPage+1)),disabled:m.currentPage===l.value||l.value===0}," Next ",10,ri)])])):e.createCommentVNode("",!0)}}),ci=["disabled"],di=e.defineComponent({__name:"SendButton",props:{disabled:{type:Boolean},active:{type:Boolean},size:{}},setup(m){return t.useTheme(),(u,s)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["chat-bar-send-btn",{active:u.active,[`chat-bar-send-btn--${u.size}`]:!0}]),disabled:u.disabled,onClick:s[0]||(s[0]=i=>u.$emit("click"))},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.IconSend),{class:"chat-bar-send-icon"}))],10,ci))}}),ui={key:0,class:"skeleton-card"},_i={key:0,class:"skeleton-line skeleton-wave skeleton-w-32 skeleton-h-6 mb-2"},pi={key:1,class:"skeleton-paragraph"},mi={key:0,class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40 mb-2"},vi={key:2,class:"skeleton-single-box"},hi={key:0,class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40 mb-2"},fi={key:3,class:"skeleton-table"},gi={key:0,class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40"},yi={class:"table-full"},bi=e.defineComponent({__name:"SkeletonLoader",props:{type:{},hasHeader:{type:Boolean},count:{}},setup(m){const u=m,{type:s,hasHeader:i=!1,count:l=5}=u;return(r,a)=>e.unref(s)==="card"?(e.openBlock(),e.createElementBlock("div",ui,[e.unref(i)?(e.openBlock(),e.createElementBlock("div",_i)):e.createCommentVNode("",!0),a[0]||(a[0]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-3-4"},null,-1)),a[1]||(a[1]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full"},null,-1)),a[2]||(a[2]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-5-6"},null,-1))])):e.unref(s)==="paragraph"?(e.openBlock(),e.createElementBlock("div",pi,[e.unref(i)?(e.openBlock(),e.createElementBlock("div",mi)):e.createCommentVNode("",!0),a[3]||(a[3]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full"},null,-1)),a[4]||(a[4]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-5-6"},null,-1)),a[5]||(a[5]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-3-4"},null,-1))])):e.unref(s)==="single-box"?(e.openBlock(),e.createElementBlock("div",vi,[e.unref(i)?(e.openBlock(),e.createElementBlock("div",hi)):e.createCommentVNode("",!0),a[6]||(a[6]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full"},null,-1))])):e.unref(s)==="table"?(e.openBlock(),e.createElementBlock("div",fi,[e.unref(i)?(e.openBlock(),e.createElementBlock("div",gi)):e.createCommentVNode("",!0),e.createElementVNode("table",yi,[e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),d=>(e.openBlock(),e.createElementBlock("tr",{key:d},[...a[7]||(a[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)}}),ki={class:"freddy-plugins-slider-container"},Ii={key:0,class:"freddy-plugins-slider-header"},Ci={key:0,class:"freddy-plugins-slider-label-section"},wi={class:"freddy-plugins-slider-label"},Bi={key:1,class:"freddy-plugins-slider-value-badge"},Ei=["tabindex","aria-valuemin","aria-valuemax","aria-valuenow","aria-disabled","aria-label"],Pi={key:1,class:"freddy-plugins-slider-hint"},Vi=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(m,{emit:u}){const s=m,i=u,l=e.ref(!1),r=e.ref(null),a=e.computed(()=>Math.round(s.modelValue)),d=e.computed(()=>{const y=s.max-s.min,k=s.modelValue-s.min;return Math.min(100,Math.max(0,k/y*100))}),p=e.computed(()=>d.value),h=y=>{const k=Math.round(y/s.step)*s.step;return Math.min(s.max,Math.max(s.min,k))},f=y=>{if(!r.value)return s.modelValue;const k=r.value.getBoundingClientRect(),b=Math.max(0,Math.min(1,(y-k.left)/k.width)),w=s.min+b*(s.max-s.min),_=Math.round(w/s.step)*s.step;return Math.min(s.max,Math.max(s.min,_))},I=y=>{const k=h(y);k!==s.modelValue&&i("update:modelValue",k)},P=y=>{if(s.disabled)return;y.preventDefault(),y.stopPropagation(),l.value=!0;const k=w=>{if(!l.value)return;w.preventDefault();const _=f(w.clientX);I(_)},b=()=>{l.value=!1,document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",k),document.addEventListener("mouseup",b)},V=y=>{if(s.disabled)return;y.preventDefault(),y.stopPropagation(),l.value=!0;const k=w=>{!l.value||!w.touches[0]||(w.preventDefault(),I(f(w.touches[0].clientX)))},b=()=>{l.value=!1,document.removeEventListener("touchmove",k),document.removeEventListener("touchend",b)};document.addEventListener("touchmove",k),document.addEventListener("touchend",b)},v=y=>{if(s.disabled||l.value)return;y.preventDefault(),y.stopPropagation();const k=f(y.clientX);I(k)},B=y=>{if(s.disabled)return;let k=s.modelValue;switch(y.key){case"ArrowLeft":case"ArrowDown":y.preventDefault(),k=s.modelValue-s.step;break;case"ArrowRight":case"ArrowUp":y.preventDefault(),k=s.modelValue+s.step;break;case"Home":y.preventDefault(),k=s.min;break;case"End":y.preventDefault(),k=s.max;break;case"PageDown":y.preventDefault(),k=s.modelValue-s.step*10;break;case"PageUp":y.preventDefault(),k=s.modelValue+s.step*10;break;default:return}I(k)};return(y,k)=>(e.openBlock(),e.createElementBlock("div",ki,[y.label||y.showValue?(e.openBlock(),e.createElementBlock("div",Ii,[y.label?(e.openBlock(),e.createElementBlock("div",Ci,[e.createElementVNode("span",wi,e.toDisplayString(y.label),1),y.tooltip?(e.openBlock(),e.createBlock(T,{key:0,text:y.tooltip,placement:y.tooltipPlacement},{default:e.withCtx(()=>[e.createVNode(t.IconInfoRounded,{class:"freddy-plugins-slider-tooltip-icon"})]),_:1},8,["text","placement"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),y.showValue?(e.openBlock(),e.createElementBlock("div",Bi,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-slider-track-container",{"freddy-plugins-slider-disabled":y.disabled}]),onClick:v,onKeydown:B,tabindex:y.disabled?-1:0,role:"slider","aria-valuemin":y.min,"aria-valuemax":y.max,"aria-valuenow":y.modelValue,"aria-disabled":y.disabled,"aria-label":y.label||"Slider"},[e.createElementVNode("div",{ref_key:"sliderTrack",ref:r,class:"freddy-plugins-slider-track-background"},null,512),e.createElementVNode("div",{class:"freddy-plugins-slider-track-progress",style:e.normalizeStyle({width:d.value+"%"})},null,4),e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-slider-thumb",{"freddy-plugins-slider-thumb-dragging":l.value,"freddy-plugins-slider-thumb-disabled":y.disabled}]),style:e.normalizeStyle({left:p.value+"%"}),onMousedown:P,onTouchstart:V},null,38)],42,Ei),y.hint?(e.openBlock(),e.createElementBlock("p",Pi,e.toDisplayString(y.hint),1)):e.createCommentVNode("",!0)]))}}),Ni=t._export_sfc(Vi,[["__scopeId","data-v-7f709ec1"]]),Si={class:"freddy-plugins-snackbar-content"},Ti={class:"freddy-plugins-snackbar-left"},$i={class:"freddy-plugins-snackbar-text"},xi=["innerHTML"],Di=["innerHTML"],qi=["onClick"],Ai=e.defineComponent({__name:"SnackBar",setup(m){t.useTheme();const{snackQueue:u}=t.useSnackBar(),s=r=>{switch(r){case"success":return t.IconCheckInCircle;case"danger":return t.IconCross;case"info":return t.IconInfoRounded;default:return t.IconCheckInCircle}},i=e.computed(()=>{const r=u.value[u.value.length-1];if(!r)return"side70";switch(r.toastContainerSize){case"half":return"half";case"full":return"full";default:return"side70"}}),l=r=>{u.value.splice(r,1)};return(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-plugins-snackbar-container",`freddy-plugins-snackbar-container--${i.value}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),(d,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:e.normalizeClass(["freddy-plugins-snackbar",`freddy-plugins-snackbar--${d.toastType}`])},[e.createElementVNode("div",Si,[e.createElementVNode("div",Ti,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s(d.toastType)),{class:e.normalizeClass(["freddy-plugins-snackbar-icon",[d.toastType==="info"&&"freddy-plugins-snackbar-icon--info",d.toastType==="danger"&&"freddy-plugins-snackbar-icon--danger",d.toastType==="success"&&"freddy-plugins-snackbar-icon--success"]])},null,8,["class"])),e.createElementVNode("div",$i,[e.createElementVNode("p",{class:"freddy-plugins-snackbar-title",innerHTML:d.title},null,8,xi),e.createElementVNode("p",{class:"freddy-plugins-snackbar-message",innerHTML:d.message},null,8,Di)])]),e.createElementVNode("button",{class:"freddy-plugins-snackbar-close-btn",onClick:h=>l(p)},[e.createVNode(t.IconLightCross,{class:"freddy-plugins-snackbar-close-icon"})],8,qi)])],2))),128))],2))}}),Fi={class:"freddy-plugins-switch-slot__header"},Mi={key:0,class:"freddy-plugins-switch-slot__label-section"},Li={key:0,class:"freddy-plugins-switch-slot__label"},zi=["aria-checked","tabindex","onKeydown","disabled"],Ri={key:0,class:"freddy-plugins-switch-slot__content"},Oi={key:1,class:"freddy-plugins-switch-slot__hint"},Ui=e.defineComponent({__name:"SwitchSlot",props:{modelValue:{type:Boolean},label:{},tooltip:{},tooltipPlacement:{},hint:{},disabled:{type:Boolean},variant:{},showSlotContent:{type:Boolean}},emits:["update:modelValue"],setup(m,{emit:u}){const s=m,i=u,l=r=>{r.stopPropagation(),s.disabled||i("update:modelValue",!s.modelValue)};return(r,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-plugins-switch-slot",{"freddy-plugins-switch-slot--bordered":r.variant==="bordered","freddy-plugins-switch-slot--disabled":r.disabled}])},[e.createElementVNode("div",Fi,[r.label||r.tooltip?(e.openBlock(),e.createElementBlock("div",Mi,[r.label?(e.openBlock(),e.createElementBlock("span",Li,e.toDisplayString(r.label),1)):e.createCommentVNode("",!0),r.tooltip?(e.openBlock(),e.createBlock(T,{key:1,text:r.tooltip,placement:r.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":r.modelValue}]),"aria-checked":r.modelValue,role:"switch",tabindex:r.disabled?-1:0,onClick:l,onKeydown:[e.withKeys(e.withModifiers(l,["prevent"]),["space"]),e.withKeys(e.withModifiers(l,["prevent"]),["enter"])],disabled:r.disabled},[...a[0]||(a[0]=[e.createElementVNode("span",{class:"freddy-plugins-switch-slot__track"},null,-1),e.createElementVNode("span",{class:"freddy-plugins-switch-slot__thumb"},null,-1)])],42,zi)]),r.showSlotContent?(e.openBlock(),e.createElementBlock("div",Ri,[e.renderSlot(r.$slots,"content",{},void 0,!0)])):e.createCommentVNode("",!0),r.hint?(e.openBlock(),e.createElementBlock("p",Oi,e.toDisplayString(r.hint),1)):e.createCommentVNode("",!0)],2))}}),Hi=t._export_sfc(Ui,[["__scopeId","data-v-edc0859a"]]),Ki={class:"freddy-plugin-nav-bar"},ji=["onClick"],Gi=e.defineComponent({__name:"TabList",props:{tabList:{},currentTab:{default:0},activeStateType:{},orientation:{},fullWidth:{type:Boolean}},emits:["tabSwitch"],setup(m,{emit:u}){const s=m,i=u,l=e.ref(s.currentTab),r=a=>{l.value!==a.id&&(l.value=a.id,i("tabSwitch",a.id))};return(a,d)=>(e.openBlock(),e.createElementBlock("div",Ki,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.tabList,(p,h)=>(e.openBlock(),e.createElementBlock("button",{class:"freddy-plugin-tab-list-menu-button",key:h,onClick:f=>r(p)},[e.createTextVNode(e.toDisplayString(p.title)+" ",1),e.createElementVNode("span",{class:e.normalizeClass({"freddy-plugin-active-tab":l.value===p.id})},null,2)],8,ji))),128))]))}}),Zi={class:"freddy-plugins-toast-wrapper"},Wi={class:"freddy-plugins-toast-icon-wrapper"},Ji={class:"freddy-plugins-toast-message"},Qi=["onClick"],Yi=e.defineComponent({__name:"ToastMessage",setup(m){const{toastQueue:u}=t.useToast(),s={success:"freddy-plugins-toast-success",danger:"freddy-plugins-toast-danger",info:"freddy-plugins-toast-info"},i=a=>s[a],l=a=>{switch(a){case"success":return t.IconTick;case"danger":return t.IconCross;case"info":return t.IconInfoRounded;default:return t.IconTick}},r=a=>{u.value.splice(a,1)};return(a,d)=>(e.openBlock(),e.createElementBlock("div",Zi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),(p,h)=>(e.openBlock(),e.createElementBlock("div",{key:h,class:e.normalizeClass(["freddy-plugins-toast-item",i(p.toastType)])},[e.createElementVNode("div",Wi,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l(p.toastType)),{class:"freddy-plugins-toast-icon"}))]),e.createElementVNode("span",Ji,e.toDisplayString(p.message),1),e.createElementVNode("button",{class:"freddy-plugins-toast-close-button",onClick:f=>r(h)},[e.createVNode(e.unref(t.IconCross),{class:"freddy-plugins-toast-close-icon"})],8,Qi)],2))),128))]))}}),Xi=["aria-label"],er=["innerHTML"],or={key:1},tr=e.defineComponent({__name:"TooltipV2",props:{text:{},placement:{default:"top"},html:{type:Boolean,default:!1},contentClass:{},delay:{default:200},hideDelay:{default:0}},setup(m){const u=m,s=e.ref(!1),i=e.ref(!1),l=e.ref(null);let r=null,a=null;const d=()=>{a&&(clearTimeout(a),a=null),r&&clearTimeout(r),r=setTimeout(()=>{if(l.value){const I=l.value.getBoundingClientRect();i.value=I.top<150}s.value=!0},u.delay)},p=()=>{r&&(clearTimeout(r),r=null),a=setTimeout(()=>{s.value=!1},u.hideDelay)},h=()=>{d()},f=()=>{p()};return(I,P)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tooltipWrapper",ref:l,class:"freddy-plugins-tooltip-v2-wrapper",onMouseenter:d,onMouseleave:p,onFocusin:h,onFocusout:f,tabindex:"0"},[e.renderSlot(I.$slots,"default",{},void 0,!0),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[s.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,er)):(e.openBlock(),e.createElementBlock("span",or,e.toDisplayString(I.text),1))],!0)],10,Xi)):e.createCommentVNode("",!0)]),_:3})],544))}}),nr=t._export_sfc(tr,[["__scopeId","data-v-55872ec8"]]);function lr(m={}){const{logErrors:u=!0,throwOnCritical:s=!1,maxRetries:i=3}=m,l=e.ref([]),r=e.ref(!1),a=e.ref(0),d=e.computed(()=>l.value.length>0),p=e.computed(()=>l.value[l.value.length-1]||null),h=(B,y)=>{const k={message:B instanceof Error?B.message:String(B),stack:B instanceof Error?B.stack:void 0,timestamp:new Date().toISOString(),context:{...y,retryCount:a.value,userAgent:typeof navigator<"u"?navigator.userAgent:"Unknown"}};if(B&&typeof B=="object"&&"status"in B&&(k.code=B.status),l.value.push(k),u&&process.env.NODE_ENV,s&&v(B))throw B;return k},f=async(B,y)=>{r.value=!0;try{const k=await B();return a.value=0,{data:k,error:null}}catch(k){return{data:null,error:h(k,y)}}finally{r.value=!1}},I=async(B,y)=>{let k=null;for(let b=1;b<=i;b++){a.value=b-1;const w=await f(B,{...y,attempt:b,maxRetries:i});if(w.data!==null)return w;if(k=w.error,k!=null&&k.code&&typeof k.code=="number"&&k.code>=400&&k.code<500)break;b<i&&await new Promise(_=>setTimeout(_,Math.pow(2,b)*1e3))}return{data:null,error:k}},P=()=>{l.value=[],a.value=0},V=B=>{B>=0&&B<l.value.length&&l.value.splice(B,1)},v=B=>{if(B instanceof Error){if(B.name==="NetworkError"||B.name==="TypeError")return!1;if(B.name==="SyntaxError")return!0}return B&&typeof B=="object"&&"status"in B?B.status>=500:!1};return{errors:e.computed(()=>l.value),hasErrors:d,latestError:p,isLoading:e.computed(()=>r.value),retryCount:e.computed(()=>a.value),handleError:h,handleAsync:f,retryAsync:I,clearErrors:P,clearError:V,isCriticalError:v}}function sr(m={}){const{enableMetrics:u=process.env.NODE_ENV==="development",trackMemory:s=!1,sampleRate:i=.1}=m,l=e.ref([]),r=e.ref(!1),a=e.ref(0),d=e.computed(()=>l.value.length===0?0:l.value.reduce((_,o)=>_+o.renderTime,0)/l.value.length),p=e.computed(()=>l.value.length===0?0:Math.max(...l.value.map(w=>w.renderTime))),h=w=>{!u||Math.random()>i||(r.value=!0,a.value=performance.now(),w&&process.env.NODE_ENV)},f=(w,_=1)=>{if(!r.value||!u)return;const C={renderTime:performance.now()-a.value,componentCount:_,timestamp:new Date().toISOString()};if(s&&"memory"in performance){const g=performance.memory;C.memoryUsage=g.usedJSHeapSize}return l.value.push(C),l.value.length>100&&l.value.shift(),r.value=!1,w&&process.env.NODE_ENV,C},I=async(w,_)=>{h(_);try{const o=await w(),c=f(_)||{renderTime:0,componentCount:1,timestamp:new Date().toISOString()};return{result:o,metrics:c}}catch(o){throw f(_),o}},P=(w,_)=>{let o;return(...c)=>{clearTimeout(o),o=setTimeout(()=>w(...c),_)}},V=(w,_)=>{let o;return(...c)=>{o||(w(...c),o=!0,setTimeout(()=>o=!1,_))}},v=(w,_=5e3)=>{"requestIdleCallback"in window?window.requestIdleCallback(w,{timeout:_}):setTimeout(w,0)},B=async(w,_=0)=>(_>0&&await new Promise(o=>setTimeout(o,_)),new Promise(o=>{v(async()=>{try{const c=await w();o(c)}catch(c){throw c}})})),y=(w,_,o)=>{const c=Math.ceil(o/_),C=Math.ceil(c*.5);return g=>{const n=Math.max(0,Math.floor(g/_)-C),N=Math.min(w.length,n+c+C*2);return{visibleItems:w.slice(n,N),startIndex:n,endIndex:N,totalHeight:w.length*_,offsetY:n*_}}},k=()=>{l.value=[]},b=()=>({totalMeasurements:l.value.length,averageRenderTime:d.value,maxRenderTime:p.value,recentMetrics:l.value.slice(-10)});return u&&process.env.NODE_ENV==="development"&&e.onMounted(()=>{h("Component Mount"),e.nextTick(()=>{f("Component Mount")})}),{metrics:e.computed(()=>l.value),isTracking:e.computed(()=>r.value),averageRenderTime:d,maxRenderTime:p,startTracking:h,endTracking:f,measureAsync:I,debounce:P,throttle:V,scheduleWork:v,lazyLoad:B,createVirtualList:y,clearMetrics:k,getSummary:b}}exports.ConfirmationModal=t._sfc_main;exports.DeleteConfirmationModal=t._sfc_main$1;exports.IconAddFileSystem=t.IconAddFileSystem;exports.IconAddPeople=t.IconAddPeople;exports.IconAitronos=t.IconAitronos;exports.IconApple=t.IconApple;exports.IconApplePay=t.IconApplePay;exports.IconArrowDown=t.IconArrowDown;exports.IconArrowLeft=t.IconArrowLeft;exports.IconArrowUp=t.IconArrowUp;exports.IconBadgeCheck=t.IconBadgeCheck;exports.IconBroom=t.IconBroom;exports.IconBuildings=t.IconBuildings;exports.IconCalendarWithTickInside=t.IconCalendarWithTickInside;exports.IconCallNotAllowed=t.IconCallNotAllowed;exports.IconCardPay=t.IconCardPay;exports.IconCaution=t.IconCaution;exports.IconChangeLog=t.IconChangeLog;exports.IconCheckCircleFill=t.IconCheckCircleFill;exports.IconCheckInCircle=t.IconCheckInCircle;exports.IconCheckRounded=t.IconCheckRounded;exports.IconChevronDown=t.IconChevronDown;exports.IconChevronLeft=t.IconChevronLeft;exports.IconChevronRight=t.IconChevronRight;exports.IconChevronUp=t.IconChevronUp;exports.IconCircledCheck=t.IconCircledCheck;exports.IconClock=t.IconClock;exports.IconClosedEnvelope=t.IconClosedEnvelope;exports.IconCloudUpload=t.IconCloudUpload;exports.IconConnectorConfluence=t.IconConnectorConfluence;exports.IconConnectorFigma=t.IconConnectorFigma;exports.IconConnectorFreshDesk=t.IconConnectorFreshDesk;exports.IconConnectorGitHub=t.IconConnectorGitHub;exports.IconConnectorJira=t.IconConnectorJira;exports.IconConnectorLinear=t.IconConnectorLinear;exports.IconConnectorNotion=t.IconConnectorNotion;exports.IconConnectorSlack=t.IconConnectorSlack;exports.IconConnectorZapier=t.IconConnectorZapier;exports.IconCopy=t.IconCopy;exports.IconCross=t.IconCross;exports.IconCrossCircleFill=t.IconCrossCircleFill;exports.IconCrossInCircle=t.IconCrossInCircle;exports.IconCurrentTick=t.IconCurrentTick;exports.IconDataUpload=t.IconDataUpload;exports.IconDelete=t.IconDelete;exports.IconDeleteFillRed=t.IconDeleteFillRed;exports.IconDialingPhone=t.IconDialingPhone;exports.IconDisabledAlert=t.IconDisabledAlert;exports.IconDocumentation=t.IconDocumentation;exports.IconDownload=t.IconDownload;exports.IconDribbble=t.IconDribbble;exports.IconDropdownArrow=t.IconDropdownArrow;exports.IconEdit=t.IconEdit;exports.IconEditLinePath=t.IconEditLinePath;exports.IconEllipse=t._sfc_main$2;exports.IconExcelThumbnail=t.IconExcelThumbnail;exports.IconEye=t.IconEye;exports.IconFacebook=t.IconFacebook;exports.IconFigma=t.IconFigma;exports.IconFile=t.IconFile;exports.IconFileSystem=t.IconFileSystem;exports.IconFileUpload=t.IconFileUpload;exports.IconFilter=t.IconFilter;exports.IconFolder=t.IconFolder;exports.IconFreddyHub=t.IconFreddyHub;exports.IconFreddyHubLogo=t.IconFreddyHubLogo;exports.IconFreddyHubNewLogo=t.IconFreddyHubNewLogo;exports.IconFreddyHubTitle=t._sfc_main$3;exports.IconFreddySmall=t.IconFreddySmall;exports.IconGlobExpand=t.IconGlobExpand;exports.IconGlobe=t.IconGlobe;exports.IconGoogle=t.IconGoogle;exports.IconHollowCircle=t.IconHollowCircle;exports.IconHome=t.IconHome;exports.IconInfoRounded=t.IconInfoRounded;exports.IconInvalidInvoice=t.IconInvalidInvoice;exports.IconInvoice=t.IconInvoice;exports.IconInvoiceSwitch=t.IconInvoiceSwitch;exports.IconLapTableBottom=t.IconLapTableBottom;exports.IconLense=t.IconLense;exports.IconLightCross=t.IconLightCross;exports.IconLink04=t.IconLink04;exports.IconLoadingError=t.IconLoadingError;exports.IconLoadingOrg=t.IconLoadingOrg;exports.IconLocationWithCircleIn=t.IconLocationWithCircleIn;exports.IconLock=t.IconLock;exports.IconMarketPlace=t.IconMarketPlace;exports.IconMaximize=t.IconMaximize;exports.IconMicrophone=t.IconMicrophone;exports.IconMutedMicrophone=t.IconMutedMicrophone;exports.IconNewNotification=t.IconNewNotification;exports.IconNewTab=t.IconNewTab;exports.IconNotification=t.IconNotification;exports.IconOpenBook=t.IconOpenBook;exports.IconPaperAirPlane=t.IconPaperAirPlane;exports.IconPauseCircle=t.IconPauseCircle;exports.IconPdfThumbnail=t.IconPdfThumbnail;exports.IconPenEdit=t.IconPenEdit;exports.IconPencil=t.IconPencil;exports.IconPeopleHub=t.IconPeopleHub;exports.IconPersonCircle=t.IconPersonCircle;exports.IconPits=t.IconPits;exports.IconPlay=t.IconPlay;exports.IconPlus=t.IconPlus;exports.IconPolygonDown=t.IconPolygonDown;exports.IconPresentation=t.IconPresentation;exports.IconProgressBase=t.IconProgressBase;exports.IconProgressComplete=t.IconProgressComplete;exports.IconProgressGoing=t.IconProgressGoing;exports.IconPurpose=t.IconPurpose;exports.IconPurseCircleFill=t.IconPurseCircleFill;exports.IconQuestion=t.IconQuestion;exports.IconRadio=t.IconRadio;exports.IconRadioFill=t.IconRadioFill;exports.IconRefresh=t.IconRefresh;exports.IconRevertedTraingle=t.IconRevertedTriangle;exports.IconRobotScreen=t.IconRobotScreen;exports.IconRoundTick=t.IconRoundTick;exports.IconSearch=t.IconSearch;exports.IconSearchOptimised=t.IconSearchOptimised;exports.IconSectionHide=t.IconSectionHide;exports.IconSend=t.IconSend;exports.IconSettings=t.IconSettings;exports.IconSettingsBold=t.IconSettingsBold;exports.IconSize=t.IconSize;exports.IconSliderKnobs=t.IconSliderKnobs;exports.IconSortIdle=t.IconSortIdle;exports.IconSparkle=t.IconSparkle;exports.IconSpotlio=t.IconSpotlio;exports.IconStar=t.IconStar;exports.IconStatistics=t.IconStatistics;exports.IconStopChat=t.IconStopChat;exports.IconStreamLineHub=t.IconStreamLineHub;exports.IconStreamLineHubNewLogo=t.IconStreamLineHubNewLogo;exports.IconSun=t.IconSun;exports.IconSwap=t.IconSwap;exports.IconText=t.IconText;exports.IconTextThumbnail=t.IconTextThumbnail;exports.IconThinDocument=t.IconThinDocument;exports.IconThinFile=t.IconThinFile;exports.IconThumbsDown=t.IconThumbsDown;exports.IconTick=t.IconTick;exports.IconUser=t.IconUser;exports.IconVerticalDots=t.IconVerticalDots;exports.IconVideoCamera=t.IconVideoCamera;exports.IconWarningOctal=t.IconWarningOctal;exports.IconX=t.IconX;exports.IconZip=t._sfc_main$4;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=$e;exports.AnimeSpaceman=Ee;exports.AssistantField=Y;exports.AssistantList=He;exports.AssistantsHeader=oo;exports.AvatarChoosing=H;exports.AvatarList=co;exports.BaseButton=j;exports.BaseInput=A;exports.BaseTabButton=X;exports.CardInput=se;exports.ChooseAssistantAvatar=xo;exports.CodeBlock=In;exports.CustomCheckbox=Vn;exports.DefaultInput=ie;exports.Descriptions=Fl;exports.DiffTextarea=Ol;exports.Dropdown=Ql;exports.EditFeaturedExcerptModal=q;exports.EmailCodeVerification=cs;exports.IconStyleDirective=O;exports.InputField=Vs;exports.InstructionsModal=As;exports.InstructiontextArea=Ls;exports.ModalBox=ae;exports.ModalOverlay=Os;exports.ModelDropdown=oi;exports.OutputModeModal=ti;exports.Pagination=ai;exports.PhoneInput=re;exports.RulesManagement=ht;exports.SearchInput=F;exports.SendButton=di;exports.SimpleChatInterface=oe;exports.SkeletonLoader=bi;exports.Slider=Ni;exports.SnackBar=Ai;exports.SocialButtons=bn;exports.Spinner=ce;exports.Switch=ne;exports.SwitchSlot=Hi;exports.TabList=Gi;exports.TextAreaInputField=te;exports.ToastMessage=Yi;exports.Tooltip=T;exports.TooltipV2=nr;exports.VectorFrame=ee;exports.VectorSection=jt;exports.VoiceList=Qt;exports.VoiceSelection=K;exports.default=Ce;exports.frSanitizePlugin=we;exports.iconStylePlugin=Be;exports.useErrorHandler=lr;exports.usePerformance=sr;exports.vFrSanitize=U;
|
|
79
|
+
User request: ${_}`:_,t={model:"gpt-4o-mini",input:[{role:"system",content:this.getSmartSystemPrompt()},{role:"user",content:d}],temperature:.7},f=await fetch(`${this.baseUrl}/responses`,{method:"POST",headers:{Authorization:`Bearer ${this.apiKey}`,"Content-Type":"application/json"},body:JSON.stringify(t)});if(!f.ok)return{success:!1,error:((r=(await f.json().catch(()=>({}))).error)==null?void 0:r.message)||`API request failed with status ${f.status}: ${f.statusText}`};const E=(u=(c=(a=(l=(await f.json()).output)==null?void 0:l[0])==null?void 0:a.content)==null?void 0:c[0])==null?void 0:u.text;return E?this.processResponse(E,_,s):{success:!1,error:"No response received from AI"}}catch(d){return{success:!1,error:d instanceof Error?d.message:"An unexpected error occurred"}}}isConfigured(){return!!this.apiKey}getStatus(){var _;return{configured:this.isConfigured(),keyLength:(_=this.apiKey)==null?void 0:_.length}}}const D=new En("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"),Sn={class:"freddy-plugins-simple-chat-interface"},Vn={class:"freddy-plugins-messages-list"},Nn={key:0,class:"freddy-plugins-user-message-container"},Tn={class:"freddy-plugins-user-bubble"},qn={class:"freddy-plugins-user-actions"},$n={class:"freddy-plugins-action-btn",title:"Copy"},Dn={class:"freddy-plugins-action-btn",title:"Edit"},xn={key:1,class:"freddy-plugins-assistant-message-container"},An={class:"freddy-plugins-assistant-content"},Fn={class:"freddy-plugins-assistant-text"},Mn={key:0,class:"freddy-plugins-changes-card"},Ln={class:"freddy-plugins-changes-header"},zn={class:"freddy-plugins-header-left"},Rn={class:"freddy-plugins-change-title"},On={key:0,class:"freddy-plugins-stat-added"},Hn={key:1,class:"freddy-plugins-stat-removed"},Un={class:"freddy-plugins-changes-content"},Kn={class:"freddy-plugins-content-description"},jn={key:0,class:"freddy-plugins-content-actions"},Gn=["onClick"],Wn=["onClick"],Zn={key:1,class:"freddy-plugins-applied-label"},Jn={class:"freddy-plugins-assistant-actions"},Qn={class:"freddy-plugins-action-btn",title:"Refresh"},Yn={class:"freddy-plugins-action-btn",title:"Copy"},Xn={class:"freddy-plugins-action-btn",title:"Thumbs down"},ei={key:0,class:"freddy-plugins-processing-indicator"},oi={class:"freddy-plugins-chat-input-area"},ti={class:"freddy-plugins-folder-btn"},ni=["placeholder","onKeydown"],ii=["disabled"],oe=e.defineComponent({__name:"SimpleChatInterface",props:{placeholder:{},messages:{},enableAI:{type:Boolean},openaiApiKey:{},textBoxContent:{}},emits:["send","acceptChanges","denyChanges","textReplacement","textCompletion"],setup(h,{expose:_,emit:s}){const r=h,l=s,a=e.ref(""),c=e.ref(null),u=e.ref(null),d=e.ref(r.messages||[]),t=e.ref(!1);r.openaiApiKey&&D.setApiKey(r.openaiApiKey),e.watch(()=>r.messages,o=>{o&&(d.value=o,b())}),e.watch(()=>r.openaiApiKey,o=>{o&&D.setApiKey(o)});const f=o=>{switch(o){case"replace":return"Text Replacement";case"complete":return"Text Completion";case"chat":return"AI Response";default:return"Text Improvement"}},y=o=>{switch(o){case"replace":return"Your text has been improved and replaced";case"complete":return"Your text has been continued";case"chat":return"AI provided a conversational response";default:return"Text has been improved"}},E=async o=>{var v,C;if(!D.isConfigured()){const I={id:Date.now().toString(),content:"AI service is not configured. Please provide an OpenAI API key.",sender:"assistant",timestamp:new Date};d.value.push(I),b();return}t.value=!0;try{const I=await D.askAI(o,r.textBoxContent);if(I.success&&I.content){const i={id:Date.now().toString(),content:I.content,sender:"assistant",timestamp:new Date,applied:!1,changes:I.hasChanges?{title:I.changeTitle||f(I.action),description:I.changeDescription||y(I.action),added:((v=I.stats)==null?void 0:v.added)||0,removed:((C=I.stats)==null?void 0:C.removed)||0,data:{originalText:r.textBoxContent,improvedText:I.improvedText||I.content,action:I.action}}:void 0};d.value.push(i),b()}else{const i={id:Date.now().toString(),content:I.error||"Failed to process your request. Please try again.",sender:"assistant",timestamp:new Date};d.value.push(i),b()}}catch{const i={id:Date.now().toString(),content:"An unexpected error occurred while processing your request.",sender:"assistant",timestamp:new Date};d.value.push(i),b()}finally{t.value=!1}},S=async()=>{const o=a.value.trim();if(!o)return;const v={id:Date.now().toString(),content:o,sender:"user",timestamp:new Date};d.value.push(v),l("send",o),a.value="",P(),b(),r.enableAI&&await E(o)},m=()=>{a.value+=`
|
|
80
|
+
`,P()},P=()=>{e.nextTick(()=>{u.value&&(u.value.style.height="auto",u.value.style.height=Math.min(u.value.scrollHeight,120)+"px")})},b=()=>{e.nextTick(()=>{c.value&&(c.value.scrollTop=c.value.scrollHeight)})},k=o=>{l("acceptChanges",o)},g=o=>{o.changes&&(o.changes=void 0),l("denyChanges",o)};return _({addAIResponse:(o,v)=>{const C={id:Date.now().toString(),content:o,sender:"assistant",timestamp:new Date,changes:v};d.value.push(C),b()},addAIResponseFromApi:o=>{const v=n.parseApiResponse(o),C=n.getDisplayContent(v),I=n.createChangesObject(v),i={id:Date.now().toString(),content:C,sender:"assistant",timestamp:new Date,applied:!1,changes:I};d.value.push(i),b()}}),(o,v)=>(e.openBlock(),e.createElementBlock("div",Sn,[e.createElementVNode("div",{ref_key:"messagesContainer",ref:c,class:"freddy-plugins-chat-messages"},[e.createElementVNode("div",Vn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,C=>(e.openBlock(),e.createElementBlock("div",{key:C.id,class:e.normalizeClass(["freddy-plugins-message",C.sender])},[C.sender==="user"?(e.openBlock(),e.createElementBlock("div",Nn,[e.createElementVNode("div",Tn,e.toDisplayString(C.content),1),e.createElementVNode("div",qn,[e.createElementVNode("button",$n,[e.createVNode(e.unref(n.IconCopy),{class:"freddy-plugins-action-icon"})]),e.createElementVNode("button",Dn,[e.createVNode(e.unref(n.IconEdit),{class:"freddy-plugins-action-icon"})])])])):(e.openBlock(),e.createElementBlock("div",xn,[e.createElementVNode("div",An,[e.createElementVNode("p",Fn,e.toDisplayString(C.content),1),C.changes?(e.openBlock(),e.createElementBlock("div",Mn,[e.createElementVNode("div",Ln,[e.createElementVNode("div",zn,[e.createVNode(e.unref(n.IconFile),{class:"freddy-plugins-building-icon"}),e.createElementVNode("span",Rn,e.toDisplayString(C.changes.title||"Instructions"),1),C.changes.added>0?(e.openBlock(),e.createElementBlock("span",On,"+"+e.toDisplayString(C.changes.added),1)):e.createCommentVNode("",!0),C.changes.removed>0?(e.openBlock(),e.createElementBlock("span",Hn,"-"+e.toDisplayString(C.changes.removed),1)):e.createCommentVNode("",!0),v[1]||(v[1]=e.createElementVNode("span",{class:"freddy-plugins-changes-applied"},"Changes applied",-1))])]),e.createElementVNode("div",Un,[v[5]||(v[5]=e.createElementVNode("div",{class:"freddy-plugins-content-header"},[e.createElementVNode("span",{class:"freddy-plugins-content-title"},"Instructions")],-1)),e.createElementVNode("p",Kn,e.toDisplayString(C.changes.description),1),C.applied?(e.openBlock(),e.createElementBlock("div",Zn,[e.createVNode(e.unref(n.IconCheckRounded),{class:"freddy-plugins-applied-icon"}),v[4]||(v[4]=e.createTextVNode(" Applied ",-1))])):(e.openBlock(),e.createElementBlock("div",jn,[e.createElementVNode("button",{class:"freddy-plugins-accept-btn",onClick:I=>k(C)},[e.createVNode(e.unref(n.IconCheckRounded),{class:"freddy-plugins-btn-icon"}),v[2]||(v[2]=e.createTextVNode(" Accept ",-1))],8,Gn),e.createElementVNode("button",{class:"freddy-plugins-deny-btn",onClick:I=>g(C)},[e.createVNode(e.unref(n.IconCross),{class:"freddy-plugins-btn-icon"}),v[3]||(v[3]=e.createTextVNode(" Deny ",-1))],8,Wn)]))])])):e.createCommentVNode("",!0),e.createElementVNode("div",Jn,[e.createElementVNode("button",Qn,[e.createVNode(e.unref(n.IconRefresh),{class:"freddy-plugins-action-icon"})]),e.createElementVNode("button",Yn,[e.createVNode(e.unref(n.IconCopy),{class:"freddy-plugins-action-icon"})]),e.createElementVNode("button",Xn,[e.createVNode(e.unref(n.IconThumbsDown),{class:"freddy-plugins-action-icon"})])])])]))],2))),128))]),t.value?(e.openBlock(),e.createElementBlock("div",ei,[...v[6]||(v[6]=[e.createElementVNode("div",{class:"freddy-plugins-processing-content"},[e.createElementVNode("div",{class:"freddy-plugins-processing-spinner"}),e.createElementVNode("span",{class:"freddy-plugins-processing-text"},"AI is processing your request...")],-1)])])):e.createCommentVNode("",!0)],512),e.createElementVNode("div",oi,[e.createElementVNode("button",ti,[e.createVNode(e.unref(n.IconFolder),{class:"freddy-plugins-folder-icon"})]),e.withDirectives(e.createElementVNode("textarea",{ref_key:"inputRef",ref:u,"onUpdate:modelValue":v[0]||(v[0]=C=>a.value=C),placeholder:o.placeholder||"Type here...",class:"freddy-plugins-chat-input",rows:"1",onKeydown:[e.withKeys(e.withModifiers(S,["exact","prevent"]),["enter"]),e.withKeys(e.withModifiers(m,["shift","exact"]),["enter"])],onInput:P},null,40,ni),[[e.vModelText,a.value]]),e.createElementVNode("button",{class:"freddy-plugins-send-button",disabled:!a.value.trim(),onClick:S},[e.createVNode(e.unref(n.IconPaperAirPlane),{class:"freddy-plugins-send-icon"})],8,ii)])]))}}),li={class:"freddy-plugins-edit-excerpt-modal-content"},si={class:"freddy-plugins-edit-excerpt-modal-header"},ri={class:"freddy-plugins-edit-excerpt-modal-header-content"},ai={class:"freddy-plugins-edit-excerpt-modal-icon"},ci={class:"freddy-plugins-edit-excerpt-modal-text"},di={class:"freddy-plugins-edit-excerpt-modal-title"},ui={class:"freddy-plugins-edit-excerpt-modal-subtitle"},_i={class:"freddy-plugins-edit-excerpt-modal-textarea-section"},pi={class:"freddy-plugins-edit-excerpt-modal-footer"},vi={class:"freddy-plugins-edit-excerpt-modal-footer-content"},mi={key:0,class:"freddy-plugins-edit-excerpt-modal-ai-container"},hi=e.defineComponent({__name:"EditFeaturedExcerptModal",props:{isVisible:{type:Boolean,required:!0},title:{type:String,default:"Edit featured excerpt"},description:{type:String,default:"This will be displayed on your profile."},initialContent:{type:String,default:""},openaiApiKey:{type:String,default:""},openaiModel:{type:String,default:"gpt-4o-mini"},openaiOrganization:{type:String,default:""}},emits:["close","save","cancel","askAI","toggleAI"],setup(h,{emit:_}){const s=h,r=_,l=e.ref(s.initialContent),a=e.ref(!1),c=e.ref([]),u=e.ref(null);e.watch(()=>s.initialContent,g=>{l.value=g});const d=()=>{a.value=!1,c.value=[],r("close")},t=()=>{r("save",l.value)},f=()=>{a.value=!1,c.value=[],r("cancel")},y=()=>{a.value=!0,r("toggleAI",a.value),r("askAI",l.value)},E=()=>{a.value=!1,r("toggleAI",a.value)},S=async g=>{},m=g=>{g.changes&&g.changes.data&&g.changes.data.improvedText&&(l.value,l.value=g.changes.data.improvedText,g.applied=!0)},P=g=>{},b=g=>{},k=g=>{};return(g,w)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[h.isVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"freddy-plugins-edit-excerpt-modal-overlay",onClick:e.withModifiers(d,["self"])},[e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-edit-excerpt-modal-container",{"ai-active":a.value}])},[e.createElementVNode("div",li,[e.createElementVNode("div",si,[e.createElementVNode("div",ri,[e.createElementVNode("div",ai,[e.createVNode(e.unref(n.IconEditLinePath),{class:"freddy-plugins-edit-excerpt-edit-icon","center-distance":36,"circle-gap":44,"show-circles":!0})]),e.createElementVNode("div",ci,[e.createElementVNode("h2",di,e.toDisplayString(h.title),1),e.createElementVNode("p",ui,e.toDisplayString(h.description),1)])]),e.createElementVNode("button",{class:"freddy-plugins-edit-excerpt-modal-close-btn",style:e.normalizeStyle({right:a.value?"52px":"16px"}),onClick:d,"aria-label":"Close modal"},[e.createVNode(e.unref(n.IconCross),{class:"freddy-plugins-edit-excerpt-modal-close-icon"})],4),a.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:"freddy-plugins-edit-excerpt-modal-close-btn",style:{right:"16px"},onClick:E,"aria-label":"Hide AI"},[e.createVNode(n.IconSectionHide,{class:"freddy-plugins-edit-excerpt-hide-section-icon"})])):e.createCommentVNode("",!0),w[1]||(w[1]=e.createElementVNode("div",{class:"freddy-plugins-edit-excerpt-modal-header-spacing"},null,-1))]),e.createElementVNode("div",_i,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":w[0]||(w[0]=p=>l.value=p),class:"freddy-plugins-edit-excerpt-modal-textarea",placeholder:"The text thats needed",rows:"12"},null,512),[[e.vModelText,l.value]])]),e.createElementVNode("div",pi,[e.createElementVNode("div",vi,[a.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,class:"freddy-plugins-edit-excerpt-modal-ai-btn",onClick:y},[e.createVNode(e.unref(n.IconSparkle),{class:"freddy-plugins-edit-excerpt-modal-ai-icon"}),w[2]||(w[2]=e.createElementVNode("span",{class:"freddy-plugins-edit-excerpt-modal-ai-text"}," Ask AI ",-1))])),e.createElementVNode("div",{class:"freddy-plugins-edit-excerpt-modal-action-buttons"},[e.createElementVNode("button",{class:"freddy-plugins-edit-excerpt-modal-cancel-btn",onClick:f}," Cancel "),e.createElementVNode("button",{class:"freddy-plugins-edit-excerpt-modal-save-btn",onClick:t}," Save changes ")])])])]),a.value?(e.openBlock(),e.createElementBlock("div",mi,[e.createVNode(oe,{ref_key:"chatRef",ref:u,placeholder:"Type here...",messages:c.value,"enable-a-i":!0,"openai-api-key":h.openaiApiKey,"text-box-content":l.value,onSend:S,onAcceptChanges:m,onDenyChanges:P,onTextReplacement:b,onTextCompletion:k},null,8,["messages","openai-api-key","text-box-content"])])):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0)]),_:1}))}}),x=n._export_sfc(hi,[["__scopeId","data-v-5aacf574"]]),fi={class:"freddy-plugins-textarea-input-field-wrapper"},gi={class:"freddy-plugins-textarea-input-container"},yi={class:"freddy-plugins-textarea-header"},bi={class:"freddy-plugins-textarea-label-wrapper"},Ii={class:"freddy-plugins-textarea-label-container"},ki={key:0,class:"freddy-plugins-textarea-required"},Ci={class:"freddy-plugins-textarea-input-wrapper"},Pi=["placeholder","disabled","readonly"],wi={key:1,class:"freddy-plugins-textarea-diff-container"},Bi={class:"freddy-plugins-textarea-diff-content"},Ei={class:"freddy-plugins-textarea-diff-block freddy-plugins-textarea-diff-block--old"},Si={class:"freddy-plugins-textarea-diff-block freddy-plugins-textarea-diff-block--new"},Vi={key:2,class:"freddy-plugins-textarea-tags-container"},Ni={class:"freddy-plugins-textarea-tags"},Ti={class:"freddy-plugins-textarea-tag-content"},qi=["onClick","onKeydown","aria-label"],$i=e.defineComponent({__name:"TextAreaInputField",props:{modelValue:{default:""},label:{default:"Description"},placeholder:{default:"The text thats needed"},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!0},tooltipText:{default:"Provide detailed description"},showAiButton:{type:Boolean,default:!0},showTags:{type:Boolean,default:!1},tags:{default:()=>[]},showAddTagsPlaceholder:{type:Boolean,default:!1},addTagsPlaceholder:{default:"Add tags..."},hintText:{default:"This is a hint text to help user."},hasError:{type:Boolean,default:!1},errorMessage:{default:""},modalTitle:{default:"Edit Description"},modalDescription:{default:"Provide detailed description for your content."},openaiApiKey:{default:""},openaiModel:{default:"gpt-4o-mini"},openaiOrganization:{default:""},showUnderlines:{type:Boolean,default:!1},dynamicTitle:{default:""},showHint:{type:Boolean,default:!0},diffMode:{type:Boolean,default:!1},oldText:{default:""},newText:{default:""},tagsOnly:{type:Boolean,default:!1}},emits:["update:modelValue","input","focus","blur","ask-ai","expand","remove-tag","tooltip-click","add-tag","tags-click"],setup(h,{expose:_,emit:s}){const r=h,l=s,a=e.ref(null),c=e.ref(null),u=e.ref(r.modelValue),d=e.ref(""),t=e.ref(!1),f=e.ref("expand"),y=e.ref(!1),E=e.computed(()=>r.showTags&&r.tags.length>0?"":r.placeholder);e.watch(()=>r.modelValue,B=>{u.value=B});const S=()=>{l("update:modelValue",u.value),l("input",u.value)},m=B=>{y.value=!0,l("focus",B)},P=B=>{y.value=!1,l("blur",B)},b=B=>{},k=()=>{r.tagsOnly&&l("tags-click")},g=()=>{l("tooltip-click")},w=B=>{(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),g())},p=()=>{d.value=u.value,f.value="ai",t.value=!0,l("ask-ai",u.value)},o=B=>{(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),p())},v=()=>{d.value=u.value,f.value="expand",t.value=!0,l("expand",u.value)},C=B=>{(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),v())},I=B=>{l("remove-tag",B)},i=(B,$)=>{(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),I($))},V=()=>{u.value=d.value,l("update:modelValue",d.value),l("input",d.value),t.value=!1},N=B=>{u.value=B,l("update:modelValue",B),l("input",B),t.value=!1},G=()=>{u.value=d.value,l("update:modelValue",d.value),l("input",d.value),t.value=!1},ce=()=>{l("ask-ai",u.value)},de=B=>{};return _({focus:()=>{var B;(B=a.value)==null||B.focus()}}),(B,$)=>(e.openBlock(),e.createElementBlock("div",fi,[e.createElementVNode("div",gi,[e.createElementVNode("div",yi,[e.createElementVNode("div",bi,[e.createElementVNode("div",Ii,[e.createElementVNode("label",{class:e.normalizeClass(["freddy-plugins-textarea-label",{"freddy-plugins-textarea-label--underlined":B.showUnderlines}])},e.toDisplayString(B.dynamicTitle||B.label),3),B.required?(e.openBlock(),e.createElementBlock("span",ki,"*")):e.createCommentVNode("",!0),B.showTooltip&&B.tooltipText?(e.openBlock(),e.createBlock(T,{key:1,text:B.tooltipText,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("button",{type:"button",class:"freddy-plugins-textarea-tooltip-button","aria-label":"Help",tabindex:"0",onClick:g,onKeydown:w},[e.createVNode(e.unref(n.IconQuestion),{class:"freddy-plugins-textarea-tooltip-icon"})],32)]),_:1},8,["text"])):e.createCommentVNode("",!0)])]),B.showAiButton?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"freddy-plugins-textarea-ai-button",onClick:p,onKeydown:o,"aria-label":"Ask AI for help",tabindex:"0"},[e.createVNode(e.unref(n.IconSparkle),{class:"freddy-plugins-textarea-ai-icon"})],32)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ci,[B.diffMode?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:0,ref_key:"textareaRef",ref:a,"onUpdate:modelValue":$[0]||($[0]=q=>u.value=q),class:e.normalizeClass(["freddy-plugins-textarea-input",{"freddy-plugins-textarea-input--error":B.hasError,"freddy-plugins-textarea-input--disabled":B.disabled,"freddy-plugins-textarea-input--focused":y.value,"freddy-plugins-textarea-input--with-tags":B.showTags&&B.tags.length>0,"freddy-plugins-textarea-input--tags-only":B.tagsOnly}]),placeholder:E.value,disabled:B.disabled,readonly:B.readonly||B.tagsOnly,onInput:S,onFocus:m,onBlur:P,onKeydown:b,onClick:k},null,42,Pi)),[[e.vModelText,u.value]]),B.diffMode?(e.openBlock(),e.createElementBlock("div",wi,[e.createElementVNode("div",Bi,[e.createElementVNode("div",Ei,e.toDisplayString(B.oldText),1),e.createElementVNode("div",Si,e.toDisplayString(B.newText),1)])])):e.createCommentVNode("",!0),B.showTags&&B.tags.length>0?(e.openBlock(),e.createElementBlock("div",Vi,[e.createElementVNode("div",Ni,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.tags,(q,M)=>(e.openBlock(),e.createElementBlock("div",{key:`${q}-${M}`,class:"freddy-plugins-textarea-tag"},[e.createElementVNode("div",Ti,[e.createElementVNode("span",{class:e.normalizeClass(["freddy-plugins-textarea-tag-text",{"freddy-plugins-textarea-tag-text--underlined":B.showUnderlines}])},e.toDisplayString(q),3)]),e.createElementVNode("button",{type:"button",class:"freddy-plugins-textarea-tag-close",onClick:W=>I(M),onKeydown:W=>i(W,M),"aria-label":`Remove ${q} tag`,tabindex:"0"},[e.createVNode(e.unref(n.IconCross),{class:"freddy-plugins-textarea-tag-close-icon"})],40,qi)]))),128))]),B.showAddTagsPlaceholder?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["freddy-plugins-textarea-add-tags",{"freddy-plugins-textarea-add-tags--underlined":B.showUnderlines}])},e.toDisplayString(B.addTagsPlaceholder),3)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:"freddy-plugins-textarea-expand-button",onClick:v,onKeydown:C,"aria-label":"Expand textarea",tabindex:"0"},[e.createVNode(n.IconMaximize,{class:"freddy-plugins-textarea-expand-icon"})],32)])]),B.showHint&&B.hintText&&!B.hasError?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["freddy-plugins-textarea-hint-text",{"freddy-plugins-textarea-hint-text--underlined":B.showUnderlines}])},e.toDisplayString(B.hintText),3)):e.createCommentVNode("",!0),B.hasError&&B.errorMessage?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(["freddy-plugins-textarea-error-text",{"freddy-plugins-textarea-error-text--underlined":B.showUnderlines}])},e.toDisplayString(B.errorMessage),3)):e.createCommentVNode("",!0),f.value==="ai"?(e.openBlock(),e.createBlock(x,{key:2,ref_key:"aiModalRef",ref:c,"is-visible":t.value&&f.value==="ai",title:B.modalTitle,description:B.modalDescription,"initial-content":u.value,"openai-api-key":B.openaiApiKey,"openai-model":B.openaiModel,"openai-organization":B.openaiOrganization,"auto-show-a-i":!0,onClose:V,onSave:N,onCancel:G,onAskAI:ce,onToggleAI:de},null,8,["is-visible","title","description","initial-content","openai-api-key","openai-model","openai-organization"])):e.createCommentVNode("",!0),f.value==="expand"?(e.openBlock(),e.createBlock(x,{key:3,"is-visible":t.value&&f.value==="expand",title:B.modalTitle,description:B.modalDescription,"initial-content":u.value,"openai-api-key":"","openai-model":B.openaiModel,"openai-organization":"",onClose:V,onSave:N,onCancel:G},null,8,["is-visible","title","description","initial-content","openai-model"])):e.createCommentVNode("",!0)]))}}),te=n._export_sfc($i,[["__scopeId","data-v-c6385f70"]]),Di=e.defineComponent({__name:"Descriptions",props:{modelValue:{default:""},label:{default:"Description"},placeholder:{default:"The text thats needed"},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!0},showTooltip:{type:Boolean,default:!0},tooltipText:{default:"Provide detailed description for your content"},showAiButton:{type:Boolean,default:!0},stage:{default:"placeholder"},type:{default:"default"},destructive:{type:Boolean,default:!1},tags:{default:()=>[]},hintText:{default:"This is a hint text to help user."},errorMessage:{default:"This is an error message."},modalTitle:{default:"Edit Description"},modalDescription:{default:"Provide detailed description for your content."},openaiApiKey:{default:""},openaiModel:{default:"gpt-4o-mini"},openaiOrganization:{default:""},showUnderlines:{type:Boolean,default:!1},dynamicTitle:{default:""},showHint:{type:Boolean,default:!0},diffMode:{type:Boolean,default:!1},oldText:{default:""},newText:{default:""},tagsOnly:{type:Boolean,default:!1}},emits:["update:modelValue","input","focus","blur","ask-ai","expand","remove-tag","tooltip-click","add-tag","tags-click"],setup(h,{expose:_,emit:s}){const r=h,l=s,a=e.ref(r.modelValue),c=e.ref([...r.tags]);e.watch(()=>r.modelValue,v=>{a.value=v}),e.watch(()=>r.tags,v=>{c.value=[...v]},{deep:!0});const u=e.computed(()=>r.type==="tags"),d=e.computed(()=>r.type==="tags"&&(r.stage==="placeholder"||r.stage==="focused")),t=e.computed(()=>(r.stage==="focused","Add tags...")),f=e.computed(()=>r.stage==="error"||r.destructive);e.computed(()=>f.value&&r.destructive?r.errorMessage:r.hintText),e.computed(()=>r.stage==="placeholder"?r.placeholder:r.stage==="focused"&&r.type==="tags"||r.stage==="default"||r.stage==="focused"?"":r.placeholder);const y=v=>{a.value=v,l("update:modelValue",v)},E=v=>{l("input",v)},S=v=>{l("focus",v)},m=v=>{l("blur",v)},P=v=>{l("ask-ai",v)},b=v=>{l("expand",v)},k=v=>{c.value.splice(v,1),l("remove-tag",v)},g=()=>{l("tooltip-click")},w=v=>{l("add-tag",v)},p=()=>{l("tags-click")};return _({focus:()=>{}}),(v,C)=>(e.openBlock(),e.createBlock(te,{modelValue:a.value,"onUpdate:modelValue":[C[0]||(C[0]=I=>a.value=I),y],label:v.label,placeholder:v.placeholder,disabled:v.disabled,readonly:v.readonly,required:v.required,"show-tooltip":v.showTooltip,"tooltip-text":v.tooltipText,"show-ai-button":v.showAiButton,"show-tags":u.value,tags:c.value,"show-add-tags-placeholder":d.value,"add-tags-placeholder":t.value,"hint-text":v.hintText,"has-error":f.value,"error-message":v.errorMessage,"modal-title":v.modalTitle,"modal-description":v.modalDescription,"openai-api-key":v.openaiApiKey,"openai-model":v.openaiModel,"openai-organization":v.openaiOrganization,"show-underlines":v.showUnderlines,"dynamic-title":v.dynamicTitle,"show-hint":v.showHint,"diff-mode":v.diffMode,"old-text":v.oldText,"new-text":v.newText,"tags-only":v.tagsOnly,onInput:E,onFocus:S,onBlur:m,onAskAi:P,onExpand:b,onRemoveTag:k,onTooltipClick:g,onAddTag:w,onTagsClick:p},null,8,["modelValue","label","placeholder","disabled","readonly","required","show-tooltip","tooltip-text","show-ai-button","show-tags","tags","show-add-tags-placeholder","add-tags-placeholder","hint-text","has-error","error-message","modal-title","modal-description","openai-api-key","openai-model","openai-organization","show-underlines","dynamic-title","show-hint","diff-mode","old-text","new-text","tags-only"]))}}),xi=n._export_sfc(Di,[["__scopeId","data-v-19ded011"]]),Ai={class:"freddy-plugins-diff-container"},Fi=["innerHTML"],Mi=["placeholder"],Li=e.defineComponent({__name:"DiffTextarea",props:{modelValue:{},placeholder:{default:"Enter your text..."},originalText:{},improvedText:{},showDiff:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(h,{expose:_,emit:s}){const r=h,l=s,a=e.ref(null),c=e.ref(r.modelValue);e.watch(()=>r.modelValue,t=>{c.value=t});const u=()=>{l("update:modelValue",c.value)},d=e.computed(()=>{if(!r.originalText||!r.improvedText)return"";const t=r.originalText.split(/(\s+)/),f=r.improvedText.split(/(\s+)/);let y="";const E=t.filter(m=>!f.includes(m)&&m.trim()).join(" ");E&&(y+=`<span class="freddy-plugins-diff-removed">${E}</span>`);const S=f.filter(m=>!t.includes(m)&&m.trim()).join(" ");return S&&(y&&(y+="<br>"),y+=`<span class="freddy-plugins-diff-added">${S}</span>`),y||(y=`<span class="freddy-plugins-diff-improved">${r.improvedText}</span>`),y});return _({focus:()=>{var t;return(t=a.value)==null?void 0:t.focus()},blur:()=>{var t;return(t=a.value)==null?void 0:t.blur()}}),(t,f)=>(e.openBlock(),e.createElementBlock("div",Ai,[t.showDiff&&d.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"freddy-plugins-diff-preview",innerHTML:d.value},null,8,Fi)):e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:1,ref_key:"textareaRef",ref:a,"onUpdate:modelValue":f[0]||(f[0]=y=>c.value=y),class:"freddy-plugins-diff-textarea",placeholder:t.placeholder,onInput:u},null,40,Mi)),[[e.vModelText,c.value]])]))}}),zi=n._export_sfc(Li,[["__scopeId","data-v-54efeaf3"]]),Ri=["aria-checked","tabindex","onKeydown","disabled"],ne=e.defineComponent({__name:"Switch",props:{modelValue:{type:Boolean},disabled:{type:Boolean},size:{}},emits:["update:modelValue"],setup(h,{emit:_}){n.useTheme();const s=h,r=_;function l(a){a.stopPropagation(),s.disabled||r("update:modelValue",!s.modelValue)}return(a,c)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["freddy-plugins-switch",{"freddy-plugins-switch--on":a.modelValue,"freddy-plugins-switch--disabled":a.disabled,[`freddy-plugins-switch--${a.size}`]:!0}]),"aria-checked":a.modelValue,role:"switch",tabindex:a.disabled?-1:0,onClick:l,onKeydown:[e.withKeys(e.withModifiers(l,["prevent"]),["space"]),e.withKeys(e.withModifiers(l,["prevent"]),["enter"])],disabled:a.disabled},[...c[0]||(c[0]=[e.createElementVNode("span",{class:"freddy-plugins-switch__track"},null,-1),e.createElementVNode("span",{class:"freddy-plugins-switch__thumb"},null,-1)])],42,Ri))}}),Oi={key:0,class:"freddy-plugins-dropdown-search-bar"},Hi=["placeholder"],Ui={class:"freddy-plugins-dropdown-options"},Ki=["onClick"],ji={class:"freddy-plugins-dropdown-option-label"},Gi={key:1,class:"freddy-plugins-dropdown-option-shortcut"},Wi={key:0,class:"freddy-plugins-dropdown-no-options"},Zi=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(h,{emit:_}){const s=h,r=_,l=e.ref(!1),a=e.ref(""),c=e.ref(null),u=e.shallowRef([...s.options]);e.watch(()=>s.options,g=>{u.value=[...g]});const d=()=>{if(c.value)return;const g=u.value.find(w=>w.default);g&&(c.value=g)};e.watch(u,()=>{d()},{immediate:!0});const t=e.computed(()=>s.label!=="Select"?s.label:c.value?c.value.label:"Select"),f=e.computed(()=>s.showIcon?s.customIcon?s.customIcon:s.openUp?n.IconChevronUp:n.IconChevronDown:null),y=()=>{l.value=!l.value,l.value||(a.value="")},E=()=>{l.value=!1,a.value=""},S=e.computed(()=>!s.searchable||!a.value?u.value:u.value.filter(g=>g.label.toLowerCase().includes(a.value.toLowerCase()))),m=(g,w)=>{g.type!=="toggle"&&P(g)},P=g=>{c.value=g,r("select",g),s.stayOpen||E()},b=(g,w)=>{const p=u.value.findIndex(o=>o.value===g.value);p!==-1&&(u.value[p].checked=w),r("toggle",{...g,checked:w})},k=g=>{g.target.closest(".freddy-plugins-dropdown-wrapper")||E()};return e.watch(l,g=>{g?setTimeout(()=>{document.addEventListener("click",k)},0):document.removeEventListener("click",k)}),(g,w)=>(e.openBlock(),e.createElementBlock("div",{class:"freddy-plugins-dropdown-wrapper",onKeydown:e.withKeys(E,["esc"]),tabindex:"0"},[e.createVNode(j,{class:"freddy-plugins-dropdown-trigger",label:t.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":l.value,"aria-haspopup":!0,type:"button"},{default:e.withCtx(()=>[e.renderSlot(g.$slots,"button",{},()=>[e.createTextVNode(e.toDisplayString(t.value),1)])]),_:3},8,["label","iconOnly","rightIcon","leftIcon","size","aria-expanded"]),l.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",Oi,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":w[0]||(w[0]=p=>a.value=p),type:"text",class:"freddy-plugins-dropdown-search-input",placeholder:g.searchPlaceholder},null,8,Hi),[[e.vModelText,a.value]])])):e.createCommentVNode("",!0),e.createElementVNode("ul",Ui,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,p=>(e.openBlock(),e.createElementBlock("li",{key:p.value,class:e.normalizeClass(["freddy-plugins-dropdown-option",{"freddy-plugins-dropdown-option--toggle":p.type==="toggle"}]),onClick:o=>m(p)},[e.createElementVNode("span",ji,[!g.optionIconRight&&p.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p.icon),{key:0,class:"freddy-plugins-dropdown-option-icon"})):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(p.label),1),g.showShortcut&&p.shortcut?(e.openBlock(),e.createElementBlock("span",Gi,e.toDisplayString(p.shortcut),1)):e.createCommentVNode("",!0),g.optionIconRight&&p.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p.icon),{key:2,class:"freddy-plugins-dropdown-option-icon freddy-plugins-dropdown-option-icon--right"})):e.createCommentVNode("",!0)]),p.type==="toggle"?(e.openBlock(),e.createBlock(ne,{key:0,modelValue:p.checked??!1,size:s.size,"onUpdate:modelValue":o=>{b(p,o)},onClick:w[1]||(w[1]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","size","onUpdate:modelValue"])):e.createCommentVNode("",!0)],10,Ki))),128)),S.value.length===0?(e.openBlock(),e.createElementBlock("li",Wi,[e.renderSlot(g.$slots,"no-options",{},()=>[w[2]||(w[2]=e.createTextVNode("No options",-1))])])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0)],32))}}),Ji={class:"verification-container"},Qi={class:"verification-header"},Yi={class:"verification-subtitle"},Xi={class:"code-input-container"},el={class:"code-inputs"},ol=["onUpdate:modelValue","onInput","onKeydown","disabled"],tl={class:"verification-actions"},nl={key:0,class:"error-message"},il={class:"verification-footer"},ll={class:"resend-text"},sl=["disabled"],rl=e.defineComponent({__name:"EmailCodeVerification",props:{email:{},brand:{default:"contentplate"},loading:{type:Boolean,default:!1},error:{default:""},resendCooldown:{default:0}},emits:["verify","resend"],setup(h,{emit:_}){const s=h,{brand:r,loading:l,error:a,resendCooldown:c}=s,u=_,d=e.ref(["","","",""]),t=e.ref([]),f=e.computed(()=>d.value.every(k=>k!=="")),y=e.computed(()=>d.value.join("")),E=(k,g)=>{const w=g.target,p=w.value;if(!/^\d*$/.test(p)){w.value="";return}d.value[k]=p,p&&k<3&&e.nextTick(()=>{var o;(o=t.value[k+1])==null||o.focus()})},S=(k,g)=>{g.key==="Backspace"&&!d.value[k]&&k>0&&e.nextTick(()=>{var w;(w=t.value[k-1])==null||w.focus()})},m=k=>{var v;k.preventDefault();const g=(v=k.clipboardData)==null?void 0:v.getData("text");if(!g)return;const w=g.replace(/\D/g,"").slice(0,4).split("");d.value=[...w,"","","",""].slice(0,4);const p=d.value.findIndex(C=>C===""),o=p===-1?3:p;e.nextTick(()=>{var C;(C=t.value[o])==null||C.focus()})},P=()=>{f.value&&u("verify",y.value)},b=()=>{u("resend")};return e.onMounted(()=>{e.nextTick(()=>{var k;(k=t.value[0])==null||k.focus()})}),(k,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["email-verification",`email-verification--${e.unref(r)}`])},[e.createElementVNode("div",Ji,[e.createElementVNode("div",Qi,[g[1]||(g[1]=e.createElementVNode("h2",{class:"verification-title"},"Verify Your Email",-1)),e.createElementVNode("p",Yi,[g[0]||(g[0]=e.createTextVNode(" We've sent a 4-digit verification code to ",-1)),e.createElementVNode("strong",null,e.toDisplayString(k.email),1)])]),e.createElementVNode("form",{onSubmit:e.withModifiers(P,["prevent"]),class:"verification-form"},[e.createElementVNode("div",Xi,[e.createElementVNode("div",el,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,(w,p)=>e.withDirectives(e.createElementVNode("input",{key:p,ref_for:!0,ref:o=>t.value[p]=o,"onUpdate:modelValue":o=>d.value[p]=o,type:"text",maxlength:"1",class:e.normalizeClass(["code-input",`code-input--${e.unref(r)}`]),onInput:o=>E(p,o),onKeydown:o=>S(p,o),onPaste:m,disabled:e.unref(l),autocomplete:"one-time-code"},null,42,ol),[[e.vModelText,d.value[p]]])),64))])]),e.createElementVNode("div",tl,[e.createVNode(j,{type:"submit",label:e.unref(l)?"Verifying...":"Verify Code",hierarchy:"primary",size:"lg",loading:e.unref(l),disabled:!f.value||e.unref(l),class:e.normalizeClass(`verify-button verify-button--${e.unref(r)}`)},null,8,["label","loading","disabled","class"])]),e.unref(a)?(e.openBlock(),e.createElementBlock("div",nl,e.toDisplayString(e.unref(a)),1)):e.createCommentVNode("",!0),e.createElementVNode("div",il,[e.createElementVNode("p",ll,[g[2]||(g[2]=e.createTextVNode(" Didn't receive the code? ",-1)),e.createElementVNode("button",{type:"button",class:"resend-button",disabled:e.unref(c)>0,onClick:b},e.toDisplayString(e.unref(c)>0?`Resend in ${e.unref(c)}s`:"Resend code"),9,sl)])])],32)])],2))}}),al={class:"freddy-plugins-input-field-wrapper"},cl=["for"],dl={key:0,class:"freddy-plugins-required-asterisk"},ul=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(h,{expose:_,emit:s}){const r=h,l=s,a=e.computed(()=>`input-${Math.random().toString(36).substr(2,9)}`),c=e.computed(()=>({[`freddy-plugins-input-field-container--${r.size}`]:!0,[`freddy-plugins-input-field-container--${r.colorStyle}`]:!0,"freddy-plugins-input-field-container--destructive":r.destructive||r.state==="error","freddy-plugins-input-field-container--focused":r.state==="focused","freddy-plugins-input-field-container--disabled":r.state==="disabled","freddy-plugins-input-field-container--loading":r.state==="loading","freddy-plugins-input-field-container--success":r.state==="success"})),u=()=>{r.state!=="disabled"&&l("focus",new FocusEvent("focus"))};return _({inputId:a,containerClasses:c,focusInput:u}),(d,t)=>(e.openBlock(),e.createElementBlock("div",al,[d.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:a.value,class:e.normalizeClass(["freddy-plugins-input-field-label",`freddy-plugins-input-field-label--${d.colorStyle}`])},[e.createTextVNode(e.toDisplayString(d.label)+" ",1),d.required?(e.openBlock(),e.createElementBlock("span",dl,"*")):e.createCommentVNode("",!0)],10,cl)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-input-field-container",c.value]),onClick:u},[e.renderSlot(d.$slots,"default",{},void 0,!0)],2),d.hintText?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(["freddy-plugins-input-hint-text",`freddy-plugins-input-hint-text--${d.colorStyle}`])},e.toDisplayString(d.hintText),3)):e.createCommentVNode("",!0)]))}}),A=n._export_sfc(ul,[["__scopeId","data-v-bb114a19"]]),_l=["src","alt"],pl=["id","placeholder","disabled","readonly","maxlength"],vl=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(h,{expose:_,emit:s}){const r=h,l=s,a=e.ref(null),c=e.ref(null),u=e.ref(""),d=e.ref(""),t=e.ref("unknown"),f=e.computed(()=>({size:r.size,colorStyle:r.colorStyle,state:r.state,destructive:r.destructive,required:r.required,label:r.label,hintText:r.hintText,disabled:r.disabled})),y=I=>I?typeof I=="object"?I:typeof I=="string"?e.defineAsyncComponent(()=>U(Object.assign({"../../icons/IconAddFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_0),"../../icons/IconAddPeople.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_1),"../../icons/IconAitronos.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_2),"../../icons/IconApple.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_3),"../../icons/IconApplePay.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_4),"../../icons/IconArrowDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_5),"../../icons/IconArrowLeft.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_6),"../../icons/IconArrowUp.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_7),"../../icons/IconBadgeCheck.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_8),"../../icons/IconBroom.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_9),"../../icons/IconBuildings.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_10),"../../icons/IconCalendarWithTickInside.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_11),"../../icons/IconCallNotAllowed.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_12),"../../icons/IconCardPay.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_13),"../../icons/IconCaution.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_14),"../../icons/IconChangeLog.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_15),"../../icons/IconCheckCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_16),"../../icons/IconCheckInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_17),"../../icons/IconCheckRounded.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_18),"../../icons/IconChevronDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_19),"../../icons/IconChevronLeft.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_20),"../../icons/IconChevronRight.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_21),"../../icons/IconChevronUp.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_22),"../../icons/IconCircledCheck.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_23),"../../icons/IconClock.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_24),"../../icons/IconClosedEnvelope.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_25),"../../icons/IconCloudUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_26),"../../icons/IconConnectorConfluence.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_27),"../../icons/IconConnectorFigma.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_28),"../../icons/IconConnectorFreshDesk.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_29),"../../icons/IconConnectorGitHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_30),"../../icons/IconConnectorJira.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_31),"../../icons/IconConnectorLinear.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_32),"../../icons/IconConnectorNotion.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_33),"../../icons/IconConnectorSlack.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_34),"../../icons/IconConnectorZapier.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_35),"../../icons/IconCopy.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_36),"../../icons/IconCross.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_37),"../../icons/IconCrossCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_38),"../../icons/IconCrossInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_39),"../../icons/IconCurrentTick.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_40),"../../icons/IconDataUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_41),"../../icons/IconDelete.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_42),"../../icons/IconDeleteFillRed.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_43),"../../icons/IconDialingPhone.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_44),"../../icons/IconDisabledAlert.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_45),"../../icons/IconDocumentation.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_46),"../../icons/IconDownload.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_47),"../../icons/IconDribbble.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_48),"../../icons/IconDropdownArrow.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_49),"../../icons/IconEdit.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_50),"../../icons/IconEditLinePath.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_51),"../../icons/IconEllipse.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_52),"../../icons/IconExcelThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_53),"../../icons/IconEye.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_54),"../../icons/IconFacebook.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_55),"../../icons/IconFigma.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_56),"../../icons/IconFile.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_57),"../../icons/IconFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_58),"../../icons/IconFileUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_59),"../../icons/IconFilter.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_60),"../../icons/IconFolder.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_61),"../../icons/IconFreddyHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_62),"../../icons/IconFreddyHubLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_63),"../../icons/IconFreddyHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_64),"../../icons/IconFreddyHubTitle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_65),"../../icons/IconFreddySmall.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_66),"../../icons/IconGlobExpand.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_67),"../../icons/IconGlobe.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_68),"../../icons/IconGoogle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_69),"../../icons/IconHollowCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_70),"../../icons/IconHome.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_71),"../../icons/IconInfoRounded.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_72),"../../icons/IconInvalidInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_73),"../../icons/IconInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_74),"../../icons/IconInvoiceSwitch.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_75),"../../icons/IconLapTableBottom.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_76),"../../icons/IconLense.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_77),"../../icons/IconLightCross.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_78),"../../icons/IconLink04.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_79),"../../icons/IconLoadingError.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_80),"../../icons/IconLoadingOrg.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_81),"../../icons/IconLocationWithCircleIn.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_82),"../../icons/IconLock.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_83),"../../icons/IconMarketPlace.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_84),"../../icons/IconMaximize.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_85),"../../icons/IconMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_86),"../../icons/IconMutedMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_87),"../../icons/IconNewNotification.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_88),"../../icons/IconNewTab.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_89),"../../icons/IconNotification.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_90),"../../icons/IconOpenBook.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_91),"../../icons/IconPaperAirPlane.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_92),"../../icons/IconPauseCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_93),"../../icons/IconPdfThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_94),"../../icons/IconPenEdit.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_95),"../../icons/IconPencil.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_96),"../../icons/IconPeopleHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_97),"../../icons/IconPersonCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_98),"../../icons/IconPits.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_99),"../../icons/IconPlay.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_100),"../../icons/IconPlus.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_101),"../../icons/IconPolygonDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_102),"../../icons/IconPresentation.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_103),"../../icons/IconProgressBase.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_104),"../../icons/IconProgressComplete.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_105),"../../icons/IconProgressGoing.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_106),"../../icons/IconPurpose.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_107),"../../icons/IconPurseCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_108),"../../icons/IconQuestion.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_109),"../../icons/IconRadio.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_110),"../../icons/IconRadioFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_111),"../../icons/IconRefresh.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_112),"../../icons/IconRevertedTriangle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_113),"../../icons/IconRobotScreen.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_114),"../../icons/IconRoundTick.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_115),"../../icons/IconSearch.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_116),"../../icons/IconSearchOptimised.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_117),"../../icons/IconSectionHide.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_118),"../../icons/IconSend.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_119),"../../icons/IconSettings.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_120),"../../icons/IconSettingsBold.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_121),"../../icons/IconSize.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_122),"../../icons/IconSliderKnobs.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_123),"../../icons/IconSortIdle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_124),"../../icons/IconSparkle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_125),"../../icons/IconSpotlio.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_126),"../../icons/IconStar.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_127),"../../icons/IconStatistics.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_128),"../../icons/IconStopChat.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_129),"../../icons/IconStreamLineHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_130),"../../icons/IconStreamLineHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_131),"../../icons/IconSun.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_132),"../../icons/IconSwap.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_133),"../../icons/IconText.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_134),"../../icons/IconTextThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_135),"../../icons/IconThinDocument.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_136),"../../icons/IconThinFile.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_137),"../../icons/IconThumbsDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_138),"../../icons/IconTick.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_139),"../../icons/IconUser.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_140),"../../icons/IconVerticalDots.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_141),"../../icons/IconVideoCamera.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_142),"../../icons/IconWarningOctal.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_143),"../../icons/IconX.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_144),"../../icons/IconZip.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_145)}),`../../icons/${I}.vue`,4).catch(()=>({template:"<div></div>"}))):null:null,E=e.computed(()=>y(r.trailingIcon)),S=e.computed(()=>{switch(t.value){case"amex":return 17;default:return 19}}),m=e.computed(()=>({[`freddy-plugins-input-field--${r.size}`]:!0,[`freddy-plugins-input-field--${r.colorStyle}`]:!0,"freddy-plugins-input-field--destructive":r.destructive,"freddy-plugins-input-field--focused":r.state==="focused","freddy-plugins-input-field--disabled":r.state==="disabled","freddy-plugins-input-field--with-leading":r.showCardIcon&&t.value!=="unknown","freddy-plugins-input-field--with-trailing":!!E.value})),P=I=>{const i=I.replace(/\D/g,"");return/^4/.test(i)?"visa":/^5[1-5]/.test(i)||/^2[2-7]/.test(i)?"mastercard":/^3[47]/.test(i)?"amex":/^6/.test(i)?"discover":"unknown"},b=I=>{const i=I.replace(/\D/g,"");return P(i)==="amex"?i.replace(/(\d{4})(\d{6})(\d{5})/,"$1 $2 $3").replace(/(\d{4})(\d{1,6})/,"$1 $2").substring(0,17):i.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)},k=I=>{const i={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 i[I]||i.unknown},g=I=>{const V=I.target.value;u.value=V.replace(/\D/g,""),d.value=b(V);const N=P(u.value);N!==t.value&&(t.value=N,l("card-type-detected",N)),l("update:modelValue",d.value),l("update:cardNumber",u.value),l("input",d.value)},w=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()},p=I=>{l("focus",I)},o=I=>{l("blur",I)},v=I=>{l("trailing-icon-click",I)},C=()=>{var I;(I=a.value)==null||I.focus()};return e.watch(()=>r.cardNumber,I=>{I!==u.value&&(u.value=I,d.value=b(I),t.value=P(I))},{immediate:!0}),_({focus:C,inputRef:a}),(I,i)=>(e.openBlock(),e.createBlock(A,e.mergeProps(f.value,{onFocus:p,onBlur:o}),{default:e.withCtx(()=>{var V;return[I.showCardIcon&&t.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:k(t.value),alt:`${t.value} card`,class:"freddy-plugins-card-icon-image"},null,8,_l)],2)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:(V=c.value)==null?void 0:V.inputId,ref_key:"inputRef",ref:a,"onUpdate:modelValue":i[0]||(i[0]=N=>d.value=N),type:"text",inputmode:"numeric",placeholder:I.placeholder,disabled:I.disabled,readonly:I.readonly,maxlength:S.value,class:e.normalizeClass(["freddy-plugins-input-field freddy-plugins-card-input-field",m.value]),onInput:g,onKeydown:w,onFocus:p,onBlur:o},null,42,pl),[[e.vModelText,d.value]]),E.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(E.value),{key:1,class:e.normalizeClass(["freddy-plugins-input-trailing-icon",`freddy-plugins-input-trailing-icon--${I.colorStyle}`]),onClick:v},null,8,["class"])):e.createCommentVNode("",!0)]}),_:1},16))}}),ie=n._export_sfc(vl,[["__scopeId","data-v-3a6797a1"]]),ml=["id","type","placeholder","disabled","readonly"],hl=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(h,{expose:_,emit:s}){const r=h,l=s,a=e.ref(null),c=e.ref(null),u=e.ref(r.modelValue||""),d=e.computed(()=>({size:r.size,colorStyle:r.colorStyle,state:r.state,destructive:r.destructive,required:r.required,label:r.label,hintText:r.hintText,disabled:r.disabled})),t=p=>p?typeof p=="object"?p:typeof p=="string"?e.defineAsyncComponent(()=>U(Object.assign({"../../icons/IconAddFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_0),"../../icons/IconAddPeople.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_1),"../../icons/IconAitronos.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_2),"../../icons/IconApple.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_3),"../../icons/IconApplePay.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_4),"../../icons/IconArrowDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_5),"../../icons/IconArrowLeft.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_6),"../../icons/IconArrowUp.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_7),"../../icons/IconBadgeCheck.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_8),"../../icons/IconBroom.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_9),"../../icons/IconBuildings.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_10),"../../icons/IconCalendarWithTickInside.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_11),"../../icons/IconCallNotAllowed.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_12),"../../icons/IconCardPay.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_13),"../../icons/IconCaution.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_14),"../../icons/IconChangeLog.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_15),"../../icons/IconCheckCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_16),"../../icons/IconCheckInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_17),"../../icons/IconCheckRounded.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_18),"../../icons/IconChevronDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_19),"../../icons/IconChevronLeft.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_20),"../../icons/IconChevronRight.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_21),"../../icons/IconChevronUp.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_22),"../../icons/IconCircledCheck.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_23),"../../icons/IconClock.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_24),"../../icons/IconClosedEnvelope.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_25),"../../icons/IconCloudUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_26),"../../icons/IconConnectorConfluence.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_27),"../../icons/IconConnectorFigma.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_28),"../../icons/IconConnectorFreshDesk.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_29),"../../icons/IconConnectorGitHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_30),"../../icons/IconConnectorJira.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_31),"../../icons/IconConnectorLinear.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_32),"../../icons/IconConnectorNotion.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_33),"../../icons/IconConnectorSlack.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_34),"../../icons/IconConnectorZapier.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_35),"../../icons/IconCopy.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_36),"../../icons/IconCross.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_37),"../../icons/IconCrossCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_38),"../../icons/IconCrossInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_39),"../../icons/IconCurrentTick.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_40),"../../icons/IconDataUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_41),"../../icons/IconDelete.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_42),"../../icons/IconDeleteFillRed.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_43),"../../icons/IconDialingPhone.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_44),"../../icons/IconDisabledAlert.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_45),"../../icons/IconDocumentation.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_46),"../../icons/IconDownload.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_47),"../../icons/IconDribbble.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_48),"../../icons/IconDropdownArrow.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_49),"../../icons/IconEdit.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_50),"../../icons/IconEditLinePath.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_51),"../../icons/IconEllipse.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_52),"../../icons/IconExcelThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_53),"../../icons/IconEye.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_54),"../../icons/IconFacebook.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_55),"../../icons/IconFigma.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_56),"../../icons/IconFile.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_57),"../../icons/IconFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_58),"../../icons/IconFileUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_59),"../../icons/IconFilter.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_60),"../../icons/IconFolder.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_61),"../../icons/IconFreddyHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_62),"../../icons/IconFreddyHubLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_63),"../../icons/IconFreddyHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_64),"../../icons/IconFreddyHubTitle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_65),"../../icons/IconFreddySmall.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_66),"../../icons/IconGlobExpand.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_67),"../../icons/IconGlobe.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_68),"../../icons/IconGoogle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_69),"../../icons/IconHollowCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_70),"../../icons/IconHome.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_71),"../../icons/IconInfoRounded.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_72),"../../icons/IconInvalidInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_73),"../../icons/IconInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_74),"../../icons/IconInvoiceSwitch.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_75),"../../icons/IconLapTableBottom.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_76),"../../icons/IconLense.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_77),"../../icons/IconLightCross.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_78),"../../icons/IconLink04.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_79),"../../icons/IconLoadingError.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_80),"../../icons/IconLoadingOrg.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_81),"../../icons/IconLocationWithCircleIn.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_82),"../../icons/IconLock.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_83),"../../icons/IconMarketPlace.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_84),"../../icons/IconMaximize.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_85),"../../icons/IconMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_86),"../../icons/IconMutedMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_87),"../../icons/IconNewNotification.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_88),"../../icons/IconNewTab.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_89),"../../icons/IconNotification.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_90),"../../icons/IconOpenBook.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_91),"../../icons/IconPaperAirPlane.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_92),"../../icons/IconPauseCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_93),"../../icons/IconPdfThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_94),"../../icons/IconPenEdit.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_95),"../../icons/IconPencil.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_96),"../../icons/IconPeopleHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_97),"../../icons/IconPersonCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_98),"../../icons/IconPits.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_99),"../../icons/IconPlay.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_100),"../../icons/IconPlus.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_101),"../../icons/IconPolygonDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_102),"../../icons/IconPresentation.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_103),"../../icons/IconProgressBase.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_104),"../../icons/IconProgressComplete.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_105),"../../icons/IconProgressGoing.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_106),"../../icons/IconPurpose.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_107),"../../icons/IconPurseCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_108),"../../icons/IconQuestion.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_109),"../../icons/IconRadio.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_110),"../../icons/IconRadioFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_111),"../../icons/IconRefresh.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_112),"../../icons/IconRevertedTriangle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_113),"../../icons/IconRobotScreen.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_114),"../../icons/IconRoundTick.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_115),"../../icons/IconSearch.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_116),"../../icons/IconSearchOptimised.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_117),"../../icons/IconSectionHide.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_118),"../../icons/IconSend.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_119),"../../icons/IconSettings.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_120),"../../icons/IconSettingsBold.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_121),"../../icons/IconSize.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_122),"../../icons/IconSliderKnobs.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_123),"../../icons/IconSortIdle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_124),"../../icons/IconSparkle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_125),"../../icons/IconSpotlio.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_126),"../../icons/IconStar.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_127),"../../icons/IconStatistics.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_128),"../../icons/IconStopChat.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_129),"../../icons/IconStreamLineHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_130),"../../icons/IconStreamLineHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_131),"../../icons/IconSun.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_132),"../../icons/IconSwap.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_133),"../../icons/IconText.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_134),"../../icons/IconTextThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_135),"../../icons/IconThinDocument.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_136),"../../icons/IconThinFile.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_137),"../../icons/IconThumbsDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_138),"../../icons/IconTick.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_139),"../../icons/IconUser.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_140),"../../icons/IconVerticalDots.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_141),"../../icons/IconVideoCamera.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_142),"../../icons/IconWarningOctal.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_143),"../../icons/IconX.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_144),"../../icons/IconZip.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_145)}),`../../icons/${p}.vue`,4).catch(()=>({template:"<div></div>"}))):null:null,f=e.computed(()=>t(r.leadingIcon)),y=e.computed(()=>t(r.trailingIcon)),E=e.computed(()=>({[`freddy-plugins-input-field--${r.size}`]:!0,[`freddy-plugins-input-field--${r.colorStyle}`]:!0,"freddy-plugins-input-field--destructive":r.destructive,"freddy-plugins-input-field--focused":r.state==="focused","freddy-plugins-input-field--disabled":r.state==="disabled","freddy-plugins-input-field--with-leading":!!f.value,"freddy-plugins-input-field--with-trailing":!!y.value})),S=p=>{const o=p.target;u.value=o.value,l("update:modelValue",o.value),l("input",o.value)},m=p=>{l("focus",p)},P=p=>{l("blur",p)},b=p=>{l("keydown",p)},k=p=>{l("leading-icon-click",p)},g=p=>{l("trailing-icon-click",p)},w=()=>{var p;(p=a.value)==null||p.focus()};return e.watch(()=>r.modelValue,p=>{p!==void 0&&(u.value=p)}),_({focus:w,inputRef:a}),(p,o)=>(e.openBlock(),e.createBlock(A,e.mergeProps(d.value,{onFocus:m,onBlur:P}),{default:e.withCtx(()=>{var v;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--${p.colorStyle}`]),onClick:k},null,8,["class"])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:(v=c.value)==null?void 0:v.inputId,ref_key:"inputRef",ref:a,"onUpdate:modelValue":o[0]||(o[0]=C=>u.value=C),type:p.inputType,placeholder:p.placeholder,disabled:p.disabled,readonly:p.readonly,class:e.normalizeClass(["freddy-plugins-input-field",E.value]),onInput:S,onFocus:m,onBlur:P,onKeydown:b},null,42,ml),[[e.vModelDynamic,u.value]]),p.trailingIcon==="IconQuestion"&&p.tooltipText?(e.openBlock(),e.createBlock(T,{key:1,text:p.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--${p.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--${p.colorStyle}`]),onClick:g},null,8,["class"])):e.createCommentVNode("",!0)]}),_:1},16))}}),le=n._export_sfc(hl,[["__scopeId","data-v-e865b202"]]),fl={class:"freddy-plugins-figma-dropdown-text"},gl=["onClick"],yl={class:"freddy-plugins-country-flag"},bl={class:"freddy-plugins-country-name"},Il={class:"freddy-plugins-country-dial-code"},kl=["id","placeholder","disabled","readonly"],Cl={key:0,class:"freddy-plugins-figma-help-icon"},Pl=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(h,{expose:_,emit:s}){const r=h,l=s,a=e.ref(null),c=e.ref(null),u=e.ref(r.phoneNumber||""),d=e.ref(!1),t=e.ref(r.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:r.size,colorStyle:r.colorStyle,state:r.state,destructive:r.destructive,required:r.required,label:r.label,hintText:r.hintText,disabled:r.disabled})),E=e.computed(()=>r.countryOptions||f),S=e.computed(()=>E.value.find(o=>o.code===t.value)||E.value[0]),m=()=>{r.disabled||(d.value=!d.value)},P=o=>{t.value=o.code,l("update:countryCode",o.code),l("country-change",o);const v=u.value.replace(/^\+\d+\s*/,""),C=`${o.dialCode} ${v}`.trim();u.value=C,l("update:phoneNumber",C),l("update:modelValue",C),d.value=!1},b=o=>{const v=o.target;u.value=v.value;const C=`${S.value.dialCode} ${v.value}`;l("update:modelValue",C),l("update:phoneNumber",v.value),l("input",C)},k=o=>{l("focus",o)},g=o=>{l("blur",o)},w=()=>{var o;(o=a.value)==null||o.focus()},p=o=>{o.target.closest(".freddy-plugins-input-field-container")||(d.value=!1)};return e.watch(()=>r.countryCode,o=>{o&&o!==t.value&&(t.value=o)},{immediate:!0}),e.watch(()=>r.phoneNumber,o=>{o!==void 0&&(u.value=o)}),e.onMounted(()=>{document.addEventListener("click",p)}),e.onUnmounted(()=>{document.removeEventListener("click",p)}),_({focus:w,inputRef:a}),(o,v)=>(e.openBlock(),e.createBlock(A,e.mergeProps(y.value,{onFocus:k,onBlur:g}),{default:e.withCtx(()=>{var C;return[e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-figma-dropdown",`freddy-plugins-figma-dropdown--${o.colorStyle}`]),onClick:m},[e.createElementVNode("span",fl,e.toDisplayString(S.value.code),1),e.createVNode(e.unref(n.IconChevronDown),{class:"freddy-plugins-figma-dropdown-icon"})],2),d.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(E.value,I=>(e.openBlock(),e.createElementBlock("div",{key:I.code,class:e.normalizeClass(["freddy-plugins-country-option",`freddy-plugins-country-option--${o.colorStyle}`]),onClick:i=>P(I)},[e.createElementVNode("span",yl,e.toDisplayString(I.flag),1),e.createElementVNode("span",bl,e.toDisplayString(I.name),1),e.createElementVNode("span",Il,e.toDisplayString(I.dialCode),1)],10,gl))),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:(C=c.value)==null?void 0:C.inputId,ref_key:"inputRef",ref:a,"onUpdate:modelValue":v[0]||(v[0]=I=>u.value=I),type:"tel",placeholder:o.placeholder,disabled:o.disabled,readonly:o.readonly,class:"freddy-plugins-figma-phone-input",onInput:b,onFocus:k,onBlur:g},null,40,kl),[[e.vModelText,u.value]]),o.trailingIcon==="IconQuestion"?(e.openBlock(),e.createElementBlock("div",Cl,[o.tooltipText?(e.openBlock(),e.createBlock(T,{key:0,text:o.tooltipText,placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(n.IconQuestion),{class:"freddy-plugins-figma-help-icon-svg"})]),_:1},8,["text"])):(e.openBlock(),e.createBlock(e.unref(n.IconQuestion),{key:1,class:"freddy-plugins-figma-help-icon-svg"}))])):e.createCommentVNode("",!0)],2)]}),_:1},16))}}),se=n._export_sfc(Pl,[["__scopeId","data-v-20d005c2"]]),wl=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(h,{emit:_}){const s=h,r=_,l=e.computed(()=>s.variant||s.type||"default"),a=e.computed(()=>({size:s.size,colorStyle:s.colorStyle,state:s.state,destructive:s.destructive,required:s.required,label:s.label,hintText:s.hintText,placeholder:s.placeholder,countryCode:s.countryCode,phoneNumber:s.phoneNumber,countryOptions:s.countryOptions,trailingIcon:s.trailingIcon,tooltipText:s.tooltipText,disabled:s.disabled,readonly:s.readonly})),c=e.computed(()=>({size:s.size,colorStyle:s.colorStyle,state:s.state,destructive:s.destructive,required:s.required,label:s.label,hintText:s.hintText,placeholder:s.placeholder,cardNumber:s.cardNumber,cardType:s.cardType,maskInput:s.maskInput,showCardIcon:s.showCardIcon,trailingIcon:s.trailingIcon,disabled:s.disabled,readonly:s.readonly})),u=e.computed(()=>({size:s.size,colorStyle:s.colorStyle,state:s.state,destructive:s.destructive,required:s.required,label:s.label,hintText:s.hintText,placeholder:s.placeholder,inputType:s.inputType,modelValue:s.modelValue,leadingIcon:s.leadingIcon,trailingIcon:s.trailingIcon,tooltipText:s.tooltipText,disabled:s.disabled,readonly:s.readonly})),d=p=>{r("update:modelValue",p)},t=p=>{r("input",p)},f=p=>{r("focus",p)},y=p=>{r("blur",p)},E=p=>{r("keydown",p)},S=p=>{r("leading-icon-click",p)},m=p=>{r("trailing-icon-click",p)},P=p=>{r("update:countryCode",p)},b=p=>{r("update:phoneNumber",p)},k=p=>{r("country-change",p)},g=p=>{r("update:cardNumber",p)},w=p=>{r("card-type-detected",p)};return(p,o)=>l.value==="phone"?(e.openBlock(),e.createBlock(se,e.mergeProps({key:0},a.value,{"onUpdate:modelValue":d,"onUpdate:countryCode":P,"onUpdate:phoneNumber":b,onCountryChange:k,onInput:t,onFocus:f,onBlur:y}),null,16)):l.value==="card"?(e.openBlock(),e.createBlock(ie,e.mergeProps({key:1},c.value,{"onUpdate:modelValue":d,"onUpdate:cardNumber":g,onCardTypeDetected:w,onInput:t,onFocus:f,onBlur:y,onTrailingIconClick:m}),null,16)):(e.openBlock(),e.createBlock(le,e.mergeProps({key:2},u.value,{"onUpdate:modelValue":d,onInput:t,onFocus:f,onBlur:y,onKeydown:E,onLeadingIconClick:S,onTrailingIconClick:m}),null,16))}}),Bl=n._export_sfc(wl,[["__scopeId","data-v-5a761e6c"]]),El={name:"ModalBox",props:{isVisible:{type:Boolean,default:!0},largeModel:{type:Boolean,default:!0}},methods:{closeModal(){this.$emit("close")}}},Sl={key:0,class:"fixed z-[9998] top-0 left-0 w-full h-full bg-modalBackgroundBlur flex justify-center items-center"},Vl={class:"flex justify-center items-center"},Nl={class:"freddy-plugins-modal-header"},Tl={class:"freddy-plugins-modal-body"},ql={class:"freddy-plugins-modal-footer"};function $l(h,_,s,r,l,a){return e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[s.isVisible?(e.openBlock(),e.createElementBlock("div",Sl,[e.createElementVNode("div",Vl,[e.createElementVNode("div",{class:e.normalizeClass({"p-8 bg-background rounded-[2.5rem] overflow-hidden text-white":s.largeModel,"freddy-plugins-modal-container-large":s.largeModel})},[e.createElementVNode("div",Nl,[e.renderSlot(h.$slots,"header")]),e.createElementVNode("div",Tl,[e.renderSlot(h.$slots,"body")]),e.createElementVNode("div",ql,[e.renderSlot(h.$slots,"footer")])],2)])])):e.createCommentVNode("",!0)]),_:3})}const re=n._export_sfc(El,[["render",$l]]),Dl=e.defineComponent({__name:"InstructionsModal",props:{isVisible:{type:Boolean,required:!0}},setup(h){return(_,s)=>(e.openBlock(),e.createBlock(re,{isVisible:h.isVisible},{header:e.withCtx(()=>[...s[0]||(s[0]=[e.createElementVNode("h2",null,"Instructions",-1)])]),body:e.withCtx(()=>[...s[1]||(s[1]=[e.createElementVNode("p",null,"Instructions",-1)])]),_:1},8,["isVisible"]))}}),xl=["value","placeholder"],Al=e.defineComponent({__name:"InstructiontextArea",props:{inputValue:{},placeholder:{},height:{}},emits:["update:inputValue"],setup(h,{emit:_}){const s=h,r=_,l=e.computed(()=>s.height||"40px"),a=c=>{const u=c.target;r("update:inputValue",u.value)};return(c,u)=>(e.openBlock(),e.createElementBlock("input",{type:"text",value:c.inputValue,placeholder:c.placeholder,style:e.normalizeStyle({width:"100%",height:l.value}),onInput:a,class:"instruction-text-input","aria-label":"Instruction input"},null,44,xl))}}),Fl=n._export_sfc(Al,[["__scopeId","data-v-d4000e78"]]),Ml={class:"freddy-plugins-modal-header"},Ll={class:"freddy-plugins-modal-body"},zl=e.defineComponent({__name:"ModalOverlay",props:{modalTitle:{},headerClass:{},disableClickOutside:{type:Boolean}},emits:["close"],setup(h,{emit:_}){n.useTheme();const s=h,r=_,l=()=>{r("close")},a=()=>{s.disableClickOutside||l()};return(c,u)=>(e.openBlock(),e.createElementBlock("div",{role:"dialog","aria-modal":"true",class:"freddy-plugins-modal-overlay",onClick:a},[e.createElementVNode("div",{class:"freddy-plugins-modal-content",onClick:u[0]||(u[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("header",Ml,[e.createElementVNode("h2",{class:e.normalizeClass(["freddy-plugins-modal-title",c.headerClass])},e.toDisplayString(c.modalTitle),3),e.createElementVNode("button",{class:"freddy-plugins-modal-close",onClick:l},[e.createVNode(n.IconLightCross,{class:"freddy-plugins-modal-close-icon"})])]),e.createElementVNode("div",Ll,[e.renderSlot(c.$slots,"content")])])]))}}),ae=e.defineComponent({__name:"Spinner",props:{customClass:{}},setup(h){return n.useTheme(),(_,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-plugin-spinner",_.customClass])},null,2))}}),Rl=["placeholder","maxlength"],F=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(h,{emit:_}){n.useTheme();const s=e.useAttrs(),r=e.ref(null),l=e.ref(null),a=e.ref(null),c=_,u=()=>{var f;(f=l.value)==null||f.focus()},d=()=>{c("update:searchInput",r.value)},t=()=>{c("clear")};return(f,y)=>{var E;return e.openBlock(),e.createElementBlock("div",{ref_key:"dropdownRef",ref:a,class:e.normalizeClass(["freddy-search-wrapper",e.unref(s).class]),onClick:u},[e.createVNode(e.unref(n.IconSearch),{class:"freddy-search-icon"}),e.withDirectives(e.createElementVNode("input",{type:"text",id:"search-input",class:"freddy-search-input",ref_key:"searchInput",ref:l,"onUpdate:modelValue":y[0]||(y[0]=S=>r.value=S),onInput:d,placeholder:f.placeholder,maxlength:f.maxCharLimit},null,40,Rl),[[e.vModelText,r.value]]),f.showLoaderForSearch?(e.openBlock(),e.createBlock(ae,{key:0,class:"freddy-search-spinner"})):e.createCommentVNode("",!0),f.showCloseButton&&!f.showLoaderForSearch&&((E=r.value)!=null&&E.length)?(e.openBlock(),e.createBlock(n.IconCross,{key:1,class:"freddy-search-close",onClick:t})):e.createCommentVNode("",!0)],2)}}}),Ol={class:"model-dropdown-selected-content"},Hl=["src","alt"],Ul={class:"model-dropdown-placeholder"},Kl={key:0,class:"model-dropdown-menu"},jl={key:0,class:"model-dropdown-search"},Gl={class:"model-dropdown-options"},Wl=["onClick"],Zl=["src","alt"],Jl={class:"model-dropdown-option-value"},Ql={key:0,class:"model-dropdown-no-options"},Yl=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(h,{emit:_}){const s=h,r=_,l=e.ref(!1),a=e.ref(""),c=e.ref(null),u=e.computed(()=>!s.searchable||!a.value?s.options:s.options.filter(E=>E.value.toLowerCase().includes(a.value.toLowerCase()))),d=()=>{l.value=!l.value,l.value||(a.value="")},t=()=>{l.value=!1,a.value=""},f=E=>{c.value=E,r("select",E),t()},y=E=>{E.target.closest(".model-dropdown-wrapper")||t()};return e.watch(l,E=>{E?setTimeout(()=>{document.addEventListener("click",y)},0):document.removeEventListener("click",y)}),e.onUnmounted(()=>{document.removeEventListener("click",y)}),(E,S)=>{var m,P;return e.openBlock(),e.createElementBlock("div",{class:"model-dropdown-wrapper",onKeydown:e.withKeys(t,["esc"])},[e.createElementVNode("div",{class:e.normalizeClass(["model-dropdown-trigger",[`model-dropdown-trigger--${E.size}`,{"model-dropdown-trigger--open":l.value}]]),onClick:d},[e.createElementVNode("div",Ol,[(m=c.value)!=null&&m.imageSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:c.value.imageSrc,alt:c.value.value,class:"model-dropdown-selected-image"},null,8,Hl)):e.createCommentVNode("",!0),e.createElementVNode("span",Ul,e.toDisplayString(((P=c.value)==null?void 0:P.value)||E.modelPlaceholder),1)]),l.value?(e.openBlock(),e.createBlock(n.IconChevronUp,{key:1,class:"model-dropdown-chevron"})):(e.openBlock(),e.createBlock(n.IconChevronDown,{key:0,class:"model-dropdown-chevron"}))],2),l.value?(e.openBlock(),e.createElementBlock("div",Kl,[E.searchable?(e.openBlock(),e.createElementBlock("div",jl,[e.createVNode(F,{modelValue:a.value,"onUpdate:modelValue":S[0]||(S[0]=b=>a.value=b),placeholder:E.searchPlaceholder,showCloseButton:!0},null,8,["modelValue","placeholder"])])):e.createCommentVNode("",!0),e.createElementVNode("ul",Gl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,b=>{var k;return e.openBlock(),e.createElementBlock("li",{key:b.id,class:e.normalizeClass(["model-dropdown-option",{"model-dropdown-option--selected":((k=c.value)==null?void 0:k.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,Zl)):e.createCommentVNode("",!0),e.createElementVNode("span",Jl,e.toDisplayString(b.value),1)],10,Wl)}),128)),u.value.length===0?(e.openBlock(),e.createElementBlock("li",Ql," No providers found ")):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)],32)}}}),Xl=n._export_sfc(Yl,[["__scopeId","data-v-75f8685b"]]),es=e.defineComponent({__name:"OutputModeModal",props:{isVisible:{type:Boolean,required:!0},initialJsonContent:{type:String,default:"{}"},openaiApiKey:{type:String,default:""},openaiModel:{type:String,default:"gpt-4o-mini"},openaiOrganization:{type:String,default:""}},emits:["close","save","cancel","askAI","toggleAI"],setup(h,{emit:_}){const s=_,r=a=>{try{JSON.parse(a),s("save",a)}catch{alert("Invalid JSON format. Please fix the JSON before saving.")}},l=a=>{s("toggleAI",a)};return(a,c)=>(e.openBlock(),e.createBlock(x,{"is-visible":h.isVisible,title:"Edit response format",description:"Use a JSON schema to define the structure of the model's response format. Learn more.","initial-content":h.initialJsonContent,"openai-api-key":h.openaiApiKey,"openai-model":h.openaiModel,"openai-organization":h.openaiOrganization,onClose:c[0]||(c[0]=u=>a.$emit("close")),onSave:r,onCancel:c[1]||(c[1]=u=>a.$emit("cancel")),onAskAI:c[2]||(c[2]=u=>a.$emit("askAI",u)),onToggleAI:l},null,8,["is-visible","initial-content","openai-api-key","openai-model","openai-organization"]))}}),os={key:0,class:"freddy-pagination-nav","aria-label":"Pagination"},ts=["disabled"],ns={class:"freddy-pagination-dynamic-container"},is=["onClick","disabled"],ls=["disabled"],ss=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(h,{emit:_}){const s=h,r=_,l=e.computed(()=>!s.totalItems||isNaN(s.totalItems)?0:Math.ceil(s.totalItems/s.itemsPerPage)),a=e.computed(()=>{const u=[],d=l.value,t=s.currentPage;if(d<=7)for(let f=1;f<=d;f++)u.push(f);else{u.push(1),t>4?u.push("..."):u.push(2,3);for(let f=Math.max(4,t-1);f<=Math.min(d-3,t+1);f++)u.push(f);t<d-4&&u.push("..."),u.push(d-2,d-1,d)}return u});function c(u){u==="..."||u===s.currentPage||typeof u=="number"&&u>=1&&u<=l.value&&r("update:currentPage",u)}return(u,d)=>l.value>0?(e.openBlock(),e.createElementBlock("nav",os,[e.createElementVNode("button",{class:e.normalizeClass(["freddy-pagination-end-button",{"freddy-pagination-hover-enabled":h.currentPage!==1}]),onClick:d[0]||(d[0]=t=>c(h.currentPage-1)),disabled:h.currentPage===1}," Previous ",10,ts),e.createElementVNode("div",ns,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,t=>(e.openBlock(),e.createElementBlock("button",{key:String(t),class:e.normalizeClass(["freddy-pagination-number-button",{active:t===h.currentPage}]),onClick:f=>c(t),disabled:t==="..."||t===h.currentPage},e.toDisplayString(t),11,is))),128)),e.createElementVNode("button",{class:e.normalizeClass(["freddy-pagination-end-button",{"freddy-pagination-hover-enabled":h.currentPage!==l.value}]),onClick:d[1]||(d[1]=t=>c(h.currentPage+1)),disabled:h.currentPage===l.value||l.value===0}," Next ",10,ls)])])):e.createCommentVNode("",!0)}}),rs=["disabled"],as=e.defineComponent({__name:"SendButton",props:{disabled:{type:Boolean},active:{type:Boolean},size:{}},setup(h){return n.useTheme(),(_,s)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["chat-bar-send-btn",{active:_.active,[`chat-bar-send-btn--${_.size}`]:!0}]),disabled:_.disabled,onClick:s[0]||(s[0]=r=>_.$emit("click"))},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.IconSend),{class:"chat-bar-send-icon"}))],10,rs))}}),cs={key:0,class:"skeleton-card"},ds={key:0,class:"skeleton-line skeleton-wave skeleton-w-32 skeleton-h-6 mb-2"},us={key:1,class:"skeleton-paragraph"},_s={key:0,class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40 mb-2"},ps={key:2,class:"skeleton-single-box"},vs={key:0,class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40 mb-2"},ms={key:3,class:"skeleton-table"},hs={key:0,class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40"},fs={class:"table-full"},gs=e.defineComponent({__name:"SkeletonLoader",props:{type:{},hasHeader:{type:Boolean},count:{}},setup(h){const _=h,{type:s,hasHeader:r=!1,count:l=5}=_;return(a,c)=>e.unref(s)==="card"?(e.openBlock(),e.createElementBlock("div",cs,[e.unref(r)?(e.openBlock(),e.createElementBlock("div",ds)):e.createCommentVNode("",!0),c[0]||(c[0]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-3-4"},null,-1)),c[1]||(c[1]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full"},null,-1)),c[2]||(c[2]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-5-6"},null,-1))])):e.unref(s)==="paragraph"?(e.openBlock(),e.createElementBlock("div",us,[e.unref(r)?(e.openBlock(),e.createElementBlock("div",_s)):e.createCommentVNode("",!0),c[3]||(c[3]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full"},null,-1)),c[4]||(c[4]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-5-6"},null,-1)),c[5]||(c[5]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-3-4"},null,-1))])):e.unref(s)==="single-box"?(e.openBlock(),e.createElementBlock("div",ps,[e.unref(r)?(e.openBlock(),e.createElementBlock("div",vs)):e.createCommentVNode("",!0),c[6]||(c[6]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full"},null,-1))])):e.unref(s)==="table"?(e.openBlock(),e.createElementBlock("div",ms,[e.unref(r)?(e.openBlock(),e.createElementBlock("div",hs)):e.createCommentVNode("",!0),e.createElementVNode("table",fs,[e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),u=>(e.openBlock(),e.createElementBlock("tr",{key:u},[...c[7]||(c[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)}}),ys={class:"freddy-plugins-slider-container"},bs={key:0,class:"freddy-plugins-slider-header"},Is={key:0,class:"freddy-plugins-slider-label-section"},ks={class:"freddy-plugins-slider-label"},Cs={key:1,class:"freddy-plugins-slider-value-badge"},Ps=["tabindex","aria-valuemin","aria-valuemax","aria-valuenow","aria-disabled","aria-label"],ws={key:1,class:"freddy-plugins-slider-hint"},Bs=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(h,{emit:_}){const s=h,r=_,l=e.ref(!1),a=e.ref(null),c=e.computed(()=>Math.round(s.modelValue)),u=e.computed(()=>{const b=s.max-s.min,k=s.modelValue-s.min;return Math.min(100,Math.max(0,k/b*100))}),d=e.computed(()=>u.value),t=b=>{const k=Math.round(b/s.step)*s.step;return Math.min(s.max,Math.max(s.min,k))},f=b=>{if(!a.value)return s.modelValue;const k=a.value.getBoundingClientRect(),g=Math.max(0,Math.min(1,(b-k.left)/k.width)),w=s.min+g*(s.max-s.min),p=Math.round(w/s.step)*s.step;return Math.min(s.max,Math.max(s.min,p))},y=b=>{const k=t(b);k!==s.modelValue&&r("update:modelValue",k)},E=b=>{if(s.disabled)return;b.preventDefault(),b.stopPropagation(),l.value=!0;const k=w=>{if(!l.value)return;w.preventDefault();const p=f(w.clientX);y(p)},g=()=>{l.value=!1,document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",g)};document.addEventListener("mousemove",k),document.addEventListener("mouseup",g)},S=b=>{if(s.disabled)return;b.preventDefault(),b.stopPropagation(),l.value=!0;const k=w=>{!l.value||!w.touches[0]||(w.preventDefault(),y(f(w.touches[0].clientX)))},g=()=>{l.value=!1,document.removeEventListener("touchmove",k),document.removeEventListener("touchend",g)};document.addEventListener("touchmove",k),document.addEventListener("touchend",g)},m=b=>{if(s.disabled||l.value)return;b.preventDefault(),b.stopPropagation();const k=f(b.clientX);y(k)},P=b=>{if(s.disabled)return;let k=s.modelValue;switch(b.key){case"ArrowLeft":case"ArrowDown":b.preventDefault(),k=s.modelValue-s.step;break;case"ArrowRight":case"ArrowUp":b.preventDefault(),k=s.modelValue+s.step;break;case"Home":b.preventDefault(),k=s.min;break;case"End":b.preventDefault(),k=s.max;break;case"PageDown":b.preventDefault(),k=s.modelValue-s.step*10;break;case"PageUp":b.preventDefault(),k=s.modelValue+s.step*10;break;default:return}y(k)};return(b,k)=>(e.openBlock(),e.createElementBlock("div",ys,[b.label||b.showValue?(e.openBlock(),e.createElementBlock("div",bs,[b.label?(e.openBlock(),e.createElementBlock("div",Is,[e.createElementVNode("span",ks,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(n.IconInfoRounded,{class:"freddy-plugins-slider-tooltip-icon"})]),_:1},8,["text","placement"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),b.showValue?(e.openBlock(),e.createElementBlock("div",Cs,e.toDisplayString(c.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:m,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:a,class:"freddy-plugins-slider-track-background"},null,512),e.createElementVNode("div",{class:"freddy-plugins-slider-track-progress",style:e.normalizeStyle({width:u.value+"%"})},null,4),e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-slider-thumb",{"freddy-plugins-slider-thumb-dragging":l.value,"freddy-plugins-slider-thumb-disabled":b.disabled}]),style:e.normalizeStyle({left:d.value+"%"}),onMousedown:E,onTouchstart:S},null,38)],42,Ps),b.hint?(e.openBlock(),e.createElementBlock("p",ws,e.toDisplayString(b.hint),1)):e.createCommentVNode("",!0)]))}}),Es=n._export_sfc(Bs,[["__scopeId","data-v-7f709ec1"]]),Ss={class:"freddy-plugins-snackbar-content"},Vs={class:"freddy-plugins-snackbar-left"},Ns={class:"freddy-plugins-snackbar-text"},Ts=["innerHTML"],qs=["innerHTML"],$s=["onClick"],Ds=e.defineComponent({__name:"SnackBar",setup(h){n.useTheme();const{snackQueue:_}=n.useSnackBar(),s=a=>{switch(a){case"success":return n.IconCheckInCircle;case"danger":return n.IconCross;case"info":return n.IconInfoRounded;default:return n.IconCheckInCircle}},r=e.computed(()=>{const a=_.value[_.value.length-1];if(!a)return"side70";switch(a.toastContainerSize){case"half":return"half";case"full":return"full";default:return"side70"}}),l=a=>{_.value.splice(a,1)};return(a,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-plugins-snackbar-container",`freddy-plugins-snackbar-container--${r.value}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(_),(u,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:e.normalizeClass(["freddy-plugins-snackbar",`freddy-plugins-snackbar--${u.toastType}`])},[e.createElementVNode("div",Ss,[e.createElementVNode("div",Vs,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s(u.toastType)),{class:e.normalizeClass(["freddy-plugins-snackbar-icon",[u.toastType==="info"&&"freddy-plugins-snackbar-icon--info",u.toastType==="danger"&&"freddy-plugins-snackbar-icon--danger",u.toastType==="success"&&"freddy-plugins-snackbar-icon--success"]])},null,8,["class"])),e.createElementVNode("div",Ns,[e.createElementVNode("p",{class:"freddy-plugins-snackbar-title",innerHTML:u.title},null,8,Ts),e.createElementVNode("p",{class:"freddy-plugins-snackbar-message",innerHTML:u.message},null,8,qs)])]),e.createElementVNode("button",{class:"freddy-plugins-snackbar-close-btn",onClick:t=>l(d)},[e.createVNode(n.IconLightCross,{class:"freddy-plugins-snackbar-close-icon"})],8,$s)])],2))),128))],2))}}),xs={class:"freddy-plugins-switch-slot__header"},As={key:0,class:"freddy-plugins-switch-slot__label-section"},Fs={key:0,class:"freddy-plugins-switch-slot__label"},Ms=["aria-checked","tabindex","onKeydown","disabled"],Ls={key:0,class:"freddy-plugins-switch-slot__content"},zs={key:1,class:"freddy-plugins-switch-slot__hint"},Rs=e.defineComponent({__name:"SwitchSlot",props:{modelValue:{type:Boolean},label:{},tooltip:{},tooltipPlacement:{},hint:{},disabled:{type:Boolean},variant:{},showSlotContent:{type:Boolean}},emits:["update:modelValue"],setup(h,{emit:_}){const s=h,r=_,l=a=>{a.stopPropagation(),s.disabled||r("update:modelValue",!s.modelValue)};return(a,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-plugins-switch-slot",{"freddy-plugins-switch-slot--bordered":a.variant==="bordered","freddy-plugins-switch-slot--disabled":a.disabled}])},[e.createElementVNode("div",xs,[a.label||a.tooltip?(e.openBlock(),e.createElementBlock("div",As,[a.label?(e.openBlock(),e.createElementBlock("span",Fs,e.toDisplayString(a.label),1)):e.createCommentVNode("",!0),a.tooltip?(e.openBlock(),e.createBlock(T,{key:1,text:a.tooltip,placement:a.tooltipPlacement},{default:e.withCtx(()=>[e.createVNode(n.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":a.modelValue}]),"aria-checked":a.modelValue,role:"switch",tabindex:a.disabled?-1:0,onClick:l,onKeydown:[e.withKeys(e.withModifiers(l,["prevent"]),["space"]),e.withKeys(e.withModifiers(l,["prevent"]),["enter"])],disabled:a.disabled},[...c[0]||(c[0]=[e.createElementVNode("span",{class:"freddy-plugins-switch-slot__track"},null,-1),e.createElementVNode("span",{class:"freddy-plugins-switch-slot__thumb"},null,-1)])],42,Ms)]),a.showSlotContent?(e.openBlock(),e.createElementBlock("div",Ls,[e.renderSlot(a.$slots,"content",{},void 0,!0)])):e.createCommentVNode("",!0),a.hint?(e.openBlock(),e.createElementBlock("p",zs,e.toDisplayString(a.hint),1)):e.createCommentVNode("",!0)],2))}}),Os=n._export_sfc(Rs,[["__scopeId","data-v-edc0859a"]]),Hs={class:"freddy-plugin-nav-bar"},Us=["onClick"],Ks=e.defineComponent({__name:"TabList",props:{tabList:{},currentTab:{default:0},activeStateType:{},orientation:{},fullWidth:{type:Boolean}},emits:["tabSwitch"],setup(h,{emit:_}){const s=h,r=_,l=e.ref(s.currentTab),a=c=>{l.value!==c.id&&(l.value=c.id,r("tabSwitch",c.id))};return(c,u)=>(e.openBlock(),e.createElementBlock("div",Hs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.tabList,(d,t)=>(e.openBlock(),e.createElementBlock("button",{class:"freddy-plugin-tab-list-menu-button",key:t,onClick:f=>a(d)},[e.createTextVNode(e.toDisplayString(d.title)+" ",1),e.createElementVNode("span",{class:e.normalizeClass({"freddy-plugin-active-tab":l.value===d.id})},null,2)],8,Us))),128))]))}}),js={class:"freddy-plugins-toast-wrapper"},Gs={class:"freddy-plugins-toast-icon-wrapper"},Ws={class:"freddy-plugins-toast-message"},Zs=["onClick"],Js=e.defineComponent({__name:"ToastMessage",setup(h){const{toastQueue:_}=n.useToast(),s={success:"freddy-plugins-toast-success",danger:"freddy-plugins-toast-danger",info:"freddy-plugins-toast-info"},r=c=>s[c],l=c=>{switch(c){case"success":return n.IconTick;case"danger":return n.IconCross;case"info":return n.IconInfoRounded;default:return n.IconTick}},a=c=>{_.value.splice(c,1)};return(c,u)=>(e.openBlock(),e.createElementBlock("div",js,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(_),(d,t)=>(e.openBlock(),e.createElementBlock("div",{key:t,class:e.normalizeClass(["freddy-plugins-toast-item",r(d.toastType)])},[e.createElementVNode("div",Gs,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l(d.toastType)),{class:"freddy-plugins-toast-icon"}))]),e.createElementVNode("span",Ws,e.toDisplayString(d.message),1),e.createElementVNode("button",{class:"freddy-plugins-toast-close-button",onClick:f=>a(t)},[e.createVNode(e.unref(n.IconCross),{class:"freddy-plugins-toast-close-icon"})],8,Zs)],2))),128))]))}}),Qs=["aria-label"],Ys=["innerHTML"],Xs={key:1},er=e.defineComponent({__name:"TooltipV2",props:{text:{},placement:{default:"top"},html:{type:Boolean,default:!1},contentClass:{},delay:{default:200},hideDelay:{default:0}},setup(h){const _=h,s=e.ref(!1),r=e.ref(!1),l=e.ref(null);let a=null,c=null;const u=()=>{c&&(clearTimeout(c),c=null),a&&clearTimeout(a),a=setTimeout(()=>{if(l.value){const y=l.value.getBoundingClientRect();r.value=y.top<150}s.value=!0},_.delay)},d=()=>{a&&(clearTimeout(a),a=null),c=setTimeout(()=>{s.value=!1},_.hideDelay)},t=()=>{u()},f=()=>{d()};return(y,E)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tooltipWrapper",ref:l,class:"freddy-plugins-tooltip-v2-wrapper",onMouseenter:u,onMouseleave:d,onFocusin:t,onFocusout:f,tabindex:"0"},[e.renderSlot(y.$slots,"default",{},void 0,!0),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["freddy-plugins-tooltip-v2-content",[y.placement,r.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,Ys)):(e.openBlock(),e.createElementBlock("span",Xs,e.toDisplayString(y.text),1))],!0)],10,Qs)):e.createCommentVNode("",!0)]),_:3})],544))}}),or=n._export_sfc(er,[["__scopeId","data-v-55872ec8"]]);function tr(h={}){const{logErrors:_=!0,throwOnCritical:s=!1,maxRetries:r=3}=h,l=e.ref([]),a=e.ref(!1),c=e.ref(0),u=e.computed(()=>l.value.length>0),d=e.computed(()=>l.value[l.value.length-1]||null),t=(P,b)=>{const k={message:P instanceof Error?P.message:String(P),stack:P instanceof Error?P.stack:void 0,timestamp:new Date().toISOString(),context:{...b,retryCount:c.value,userAgent:typeof navigator<"u"?navigator.userAgent:"Unknown"}};if(P&&typeof P=="object"&&"status"in P&&(k.code=P.status),l.value.push(k),_&&process.env.NODE_ENV,s&&m(P))throw P;return k},f=async(P,b)=>{a.value=!0;try{const k=await P();return c.value=0,{data:k,error:null}}catch(k){return{data:null,error:t(k,b)}}finally{a.value=!1}},y=async(P,b)=>{let k=null;for(let g=1;g<=r;g++){c.value=g-1;const w=await f(P,{...b,attempt:g,maxRetries:r});if(w.data!==null)return w;if(k=w.error,k!=null&&k.code&&typeof k.code=="number"&&k.code>=400&&k.code<500)break;g<r&&await new Promise(p=>setTimeout(p,Math.pow(2,g)*1e3))}return{data:null,error:k}},E=()=>{l.value=[],c.value=0},S=P=>{P>=0&&P<l.value.length&&l.value.splice(P,1)},m=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(()=>l.value),hasErrors:u,latestError:d,isLoading:e.computed(()=>a.value),retryCount:e.computed(()=>c.value),handleError:t,handleAsync:f,retryAsync:y,clearErrors:E,clearError:S,isCriticalError:m}}function nr(h={}){const{enableMetrics:_=process.env.NODE_ENV==="development",trackMemory:s=!1,sampleRate:r=.1}=h,l=e.ref([]),a=e.ref(!1),c=e.ref(0),u=e.computed(()=>l.value.length===0?0:l.value.reduce((p,o)=>p+o.renderTime,0)/l.value.length),d=e.computed(()=>l.value.length===0?0:Math.max(...l.value.map(w=>w.renderTime))),t=w=>{!_||Math.random()>r||(a.value=!0,c.value=performance.now(),w&&process.env.NODE_ENV)},f=(w,p=1)=>{if(!a.value||!_)return;const C={renderTime:performance.now()-c.value,componentCount:p,timestamp:new Date().toISOString()};if(s&&"memory"in performance){const I=performance.memory;C.memoryUsage=I.usedJSHeapSize}return l.value.push(C),l.value.length>100&&l.value.shift(),a.value=!1,w&&process.env.NODE_ENV,C},y=async(w,p)=>{t(p);try{const o=await w(),v=f(p)||{renderTime:0,componentCount:1,timestamp:new Date().toISOString()};return{result:o,metrics:v}}catch(o){throw f(p),o}},E=(w,p)=>{let o;return(...v)=>{clearTimeout(o),o=setTimeout(()=>w(...v),p)}},S=(w,p)=>{let o;return(...v)=>{o||(w(...v),o=!0,setTimeout(()=>o=!1,p))}},m=(w,p=5e3)=>{"requestIdleCallback"in window?window.requestIdleCallback(w,{timeout:p}):setTimeout(w,0)},P=async(w,p=0)=>(p>0&&await new Promise(o=>setTimeout(o,p)),new Promise(o=>{m(async()=>{try{const v=await w();o(v)}catch(v){throw v}})})),b=(w,p,o)=>{const v=Math.ceil(o/p),C=Math.ceil(v*.5);return I=>{const i=Math.max(0,Math.floor(I/p)-C),V=Math.min(w.length,i+v+C*2);return{visibleItems:w.slice(i,V),startIndex:i,endIndex:V,totalHeight:w.length*p,offsetY:i*p}}},k=()=>{l.value=[]},g=()=>({totalMeasurements:l.value.length,averageRenderTime:u.value,maxRenderTime:d.value,recentMetrics:l.value.slice(-10)});return _&&process.env.NODE_ENV==="development"&&e.onMounted(()=>{t("Component Mount"),e.nextTick(()=>{f("Component Mount")})}),{metrics:e.computed(()=>l.value),isTracking:e.computed(()=>a.value),averageRenderTime:u,maxRenderTime:d,startTracking:t,endTracking:f,measureAsync:y,debounce:E,throttle:S,scheduleWork:m,lazyLoad:P,createVirtualList:b,clearMetrics:k,getSummary:g}}exports.ConfirmationModal=n._sfc_main;exports.DeleteConfirmationModal=n._sfc_main$1;exports.IconAddFileSystem=n.IconAddFileSystem;exports.IconAddPeople=n.IconAddPeople;exports.IconAitronos=n.IconAitronos;exports.IconApple=n.IconApple;exports.IconApplePay=n.IconApplePay;exports.IconArrowDown=n.IconArrowDown;exports.IconArrowLeft=n.IconArrowLeft;exports.IconArrowUp=n.IconArrowUp;exports.IconBadgeCheck=n.IconBadgeCheck;exports.IconBroom=n.IconBroom;exports.IconBuildings=n.IconBuildings;exports.IconCalendarWithTickInside=n.IconCalendarWithTickInside;exports.IconCallNotAllowed=n.IconCallNotAllowed;exports.IconCardPay=n.IconCardPay;exports.IconCaution=n.IconCaution;exports.IconChangeLog=n.IconChangeLog;exports.IconCheckCircleFill=n.IconCheckCircleFill;exports.IconCheckInCircle=n.IconCheckInCircle;exports.IconCheckRounded=n.IconCheckRounded;exports.IconChevronDown=n.IconChevronDown;exports.IconChevronLeft=n.IconChevronLeft;exports.IconChevronRight=n.IconChevronRight;exports.IconChevronUp=n.IconChevronUp;exports.IconCircledCheck=n.IconCircledCheck;exports.IconClock=n.IconClock;exports.IconClosedEnvelope=n.IconClosedEnvelope;exports.IconCloudUpload=n.IconCloudUpload;exports.IconConnectorConfluence=n.IconConnectorConfluence;exports.IconConnectorFigma=n.IconConnectorFigma;exports.IconConnectorFreshDesk=n.IconConnectorFreshDesk;exports.IconConnectorGitHub=n.IconConnectorGitHub;exports.IconConnectorJira=n.IconConnectorJira;exports.IconConnectorLinear=n.IconConnectorLinear;exports.IconConnectorNotion=n.IconConnectorNotion;exports.IconConnectorSlack=n.IconConnectorSlack;exports.IconConnectorZapier=n.IconConnectorZapier;exports.IconCopy=n.IconCopy;exports.IconCross=n.IconCross;exports.IconCrossCircleFill=n.IconCrossCircleFill;exports.IconCrossInCircle=n.IconCrossInCircle;exports.IconCurrentTick=n.IconCurrentTick;exports.IconDataUpload=n.IconDataUpload;exports.IconDelete=n.IconDelete;exports.IconDeleteFillRed=n.IconDeleteFillRed;exports.IconDialingPhone=n.IconDialingPhone;exports.IconDisabledAlert=n.IconDisabledAlert;exports.IconDocumentation=n.IconDocumentation;exports.IconDownload=n.IconDownload;exports.IconDribbble=n.IconDribbble;exports.IconDropdownArrow=n.IconDropdownArrow;exports.IconEdit=n.IconEdit;exports.IconEditLinePath=n.IconEditLinePath;exports.IconEllipse=n._sfc_main$2;exports.IconExcelThumbnail=n.IconExcelThumbnail;exports.IconEye=n.IconEye;exports.IconFacebook=n.IconFacebook;exports.IconFigma=n.IconFigma;exports.IconFile=n.IconFile;exports.IconFileSystem=n.IconFileSystem;exports.IconFileUpload=n.IconFileUpload;exports.IconFilter=n.IconFilter;exports.IconFolder=n.IconFolder;exports.IconFreddyHub=n.IconFreddyHub;exports.IconFreddyHubLogo=n.IconFreddyHubLogo;exports.IconFreddyHubNewLogo=n.IconFreddyHubNewLogo;exports.IconFreddyHubTitle=n._sfc_main$3;exports.IconFreddySmall=n.IconFreddySmall;exports.IconGlobExpand=n.IconGlobExpand;exports.IconGlobe=n.IconGlobe;exports.IconGoogle=n.IconGoogle;exports.IconHollowCircle=n.IconHollowCircle;exports.IconHome=n.IconHome;exports.IconInfoRounded=n.IconInfoRounded;exports.IconInvalidInvoice=n.IconInvalidInvoice;exports.IconInvoice=n.IconInvoice;exports.IconInvoiceSwitch=n.IconInvoiceSwitch;exports.IconLapTableBottom=n.IconLapTableBottom;exports.IconLense=n.IconLense;exports.IconLightCross=n.IconLightCross;exports.IconLink04=n.IconLink04;exports.IconLoadingError=n.IconLoadingError;exports.IconLoadingOrg=n.IconLoadingOrg;exports.IconLocationWithCircleIn=n.IconLocationWithCircleIn;exports.IconLock=n.IconLock;exports.IconMarketPlace=n.IconMarketPlace;exports.IconMaximize=n.IconMaximize;exports.IconMicrophone=n.IconMicrophone;exports.IconMutedMicrophone=n.IconMutedMicrophone;exports.IconNewNotification=n.IconNewNotification;exports.IconNewTab=n.IconNewTab;exports.IconNotification=n.IconNotification;exports.IconOpenBook=n.IconOpenBook;exports.IconPaperAirPlane=n.IconPaperAirPlane;exports.IconPauseCircle=n.IconPauseCircle;exports.IconPdfThumbnail=n.IconPdfThumbnail;exports.IconPenEdit=n.IconPenEdit;exports.IconPencil=n.IconPencil;exports.IconPeopleHub=n.IconPeopleHub;exports.IconPersonCircle=n.IconPersonCircle;exports.IconPits=n.IconPits;exports.IconPlay=n.IconPlay;exports.IconPlus=n.IconPlus;exports.IconPolygonDown=n.IconPolygonDown;exports.IconPresentation=n.IconPresentation;exports.IconProgressBase=n.IconProgressBase;exports.IconProgressComplete=n.IconProgressComplete;exports.IconProgressGoing=n.IconProgressGoing;exports.IconPurpose=n.IconPurpose;exports.IconPurseCircleFill=n.IconPurseCircleFill;exports.IconQuestion=n.IconQuestion;exports.IconRadio=n.IconRadio;exports.IconRadioFill=n.IconRadioFill;exports.IconRefresh=n.IconRefresh;exports.IconRevertedTriangle=n.IconRevertedTriangle;exports.IconRobotScreen=n.IconRobotScreen;exports.IconRoundTick=n.IconRoundTick;exports.IconSearch=n.IconSearch;exports.IconSearchOptimised=n.IconSearchOptimised;exports.IconSectionHide=n.IconSectionHide;exports.IconSend=n.IconSend;exports.IconSettings=n.IconSettings;exports.IconSettingsBold=n.IconSettingsBold;exports.IconSize=n.IconSize;exports.IconSliderKnobs=n.IconSliderKnobs;exports.IconSortIdle=n.IconSortIdle;exports.IconSparkle=n.IconSparkle;exports.IconSpotlio=n.IconSpotlio;exports.IconStar=n.IconStar;exports.IconStatistics=n.IconStatistics;exports.IconStopChat=n.IconStopChat;exports.IconStreamLineHub=n.IconStreamLineHub;exports.IconStreamLineHubNewLogo=n.IconStreamLineHubNewLogo;exports.IconSun=n.IconSun;exports.IconSwap=n.IconSwap;exports.IconText=n.IconText;exports.IconTextThumbnail=n.IconTextThumbnail;exports.IconThinDocument=n.IconThinDocument;exports.IconThinFile=n.IconThinFile;exports.IconThumbsDown=n.IconThumbsDown;exports.IconTick=n.IconTick;exports.IconUser=n.IconUser;exports.IconVerticalDots=n.IconVerticalDots;exports.IconVideoCamera=n.IconVideoCamera;exports.IconWarningOctal=n.IconWarningOctal;exports.IconX=n.IconX;exports.IconZip=n._sfc_main$4;exports.aiResponseToChatMessage=n.aiResponseToChatMessage;exports.calculatePercentage=n.calculatePercentage;exports.cloneDeepSafe=n.cloneDeepSafe;exports.copyToClipboard=n.copyToClipboard;exports.createChangesObject=n.createChangesObject;exports.daysInMonth=n.daysInMonth;exports.debounce=n.debounce;exports.deepEqual=n.deepEqual;exports.defaultImageSrc=n.defaultImageSrc;exports.extractStats=n.extractStats;exports.fileSizeFormatter=n.fileSizeFormatter;exports.fillMissingDays=n.fillMissingDays;exports.formatDate=n.formatDate;exports.formatDateToLocaleString=n.formatDateToLocaleString;exports.formatLastUsedDate=n.formatLastUsedDate;exports.getDatesForMonth=n.getDatesForMonth;exports.getDaysInMonth=n.getDaysInMonth;exports.getDisplayContent=n.getDisplayContent;exports.getFileNameFromUrl=n.getFileNameFromUrl;exports.getShortMonthName=n.getShortMonthName;exports.hasOverflow=n.hasOverflow;exports.hasTextImprovements=n.hasTextImprovements;exports.interpolateColor=n.interpolateColor;exports.isValidAIResponse=n.isValidAIResponse;exports.openConfirmBoxModal=n.openConfirmBoxModal;exports.openDeleteConfirmModal=n.openDeleteConfirmModal;exports.parseAITextResponse=n.parseAITextResponse;exports.parseApiResponse=n.parseApiResponse;exports.readableDateFormat=n.readableDateFormat;exports.scrollToBottom=n.scrollToBottom;exports.scrollToElement=n.scrollToElement;exports.useSnackBar=n.useSnackBar;exports.useToast=n.useToast;exports.AdvancedModal=Te;exports.AnimeSpaceman=we;exports.AssistantField=Y;exports.AssistantList=He;exports.AssistantsHeader=eo;exports.AvatarChoosing=X;exports.AvatarList=ao;exports.BaseButton=j;exports.BaseInput=A;exports.BaseTabButton=ee;exports.CardInput=ie;exports.ChooseAssistantAvatar=No;exports.CodeBlock=bn;exports.CustomCheckbox=Bn;exports.DefaultInput=le;exports.Descriptions=xi;exports.DiffTextarea=zi;exports.Dropdown=Zi;exports.EditFeaturedExcerptModal=x;exports.EmailCodeVerification=rl;exports.IconStyleDirective=O;exports.InputField=Bl;exports.InstructionsModal=Dl;exports.InstructiontextArea=Fl;exports.ModalBox=re;exports.ModalOverlay=zl;exports.ModelDropdown=Xl;exports.OutputModeModal=es;exports.Pagination=ss;exports.PhoneInput=se;exports.RulesManagement=pt;exports.SearchInput=F;exports.SendButton=as;exports.SimpleChatInterface=oe;exports.SkeletonLoader=gs;exports.Slider=Es;exports.SnackBar=Ds;exports.SocialButtons=gn;exports.Spinner=ae;exports.Switch=ne;exports.SwitchSlot=Os;exports.TabList=Ks;exports.TextAreaInputField=te;exports.ToastMessage=Js;exports.Tooltip=T;exports.TooltipV2=or;exports.VectorFrame=Ct;exports.VectorSection=Ut;exports.VoiceList=Zt;exports.VoiceSelection=K;exports.default=ke;exports.frSanitizePlugin=Ce;exports.iconStylePlugin=Pe;exports.useErrorHandler=tr;exports.usePerformance=nr;exports.vFrSanitize=H;
|
|
81
81
|
//# sourceMappingURL=index.cjs.map
|