@aitronos/freddy-plugins 0.4.43 → 0.4.44
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 +13 -0
- package/dist/freddy-plugins.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +1354 -1326
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -229,5 +229,5 @@ ${o}
|
|
|
229
229
|
\`\`\`
|
|
230
230
|
|
|
231
231
|
User request: ${t}`:t,d={model:"gpt-4o-mini",input:[{role:"system",content:this.getSmartSystemPrompt()},{role:"user",content:c}],temperature:.7},u=await fetch(`${this.baseUrl}/responses`,{method:"POST",headers:{Authorization:`Bearer ${this.apiKey}`,"Content-Type":"application/json"},body:JSON.stringify(d)});if(!u.ok)return{success:!1,error:((r=(await u.json().catch(()=>({}))).error)==null?void 0:r.message)||`API request failed with status ${u.status}: ${u.statusText}`};const m=(s=(l=(i=(a=(await u.json()).output)==null?void 0:a[0])==null?void 0:i.content)==null?void 0:l[0])==null?void 0:s.text;return m?this.processResponse(m,t,o):{success:!1,error:"No response received from AI"}}catch(c){return{success:!1,error:c instanceof Error?c.message:"An unexpected error occurred"}}}isConfigured(){return!!this.apiKey}getStatus(){var t;return{configured:this.isConfigured(),keyLength:(t=this.apiKey)==null?void 0:t.length}}}const Jt=new e2("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"),ZD={class:"freddy-plugins-simple-chat-interface"},jD={class:"freddy-plugins-messages-list"},XD={key:0,class:"freddy-plugins-user-message-container"},JD={class:"freddy-plugins-user-bubble"},ex={class:"freddy-plugins-user-actions"},tx={class:"freddy-plugins-action-btn",title:"Copy"},nx={class:"freddy-plugins-action-btn",title:"Edit"},ox={key:1,class:"freddy-plugins-assistant-message-container"},rx={class:"freddy-plugins-assistant-content"},ax={class:"freddy-plugins-assistant-text"},ix={key:0,class:"freddy-plugins-changes-card"},sx={class:"freddy-plugins-changes-header"},lx={class:"freddy-plugins-header-left"},cx={class:"freddy-plugins-change-title"},dx={key:0,class:"freddy-plugins-stat-added"},ux={key:1,class:"freddy-plugins-stat-removed"},_x={class:"freddy-plugins-changes-content"},px={class:"freddy-plugins-content-description"},mx={key:0,class:"freddy-plugins-content-actions"},gx=["onClick"],fx=["onClick"],Ex={key:1,class:"freddy-plugins-applied-label"},Sx={class:"freddy-plugins-assistant-actions"},bx={class:"freddy-plugins-action-btn",title:"Refresh"},hx={class:"freddy-plugins-action-btn",title:"Copy"},Cx={class:"freddy-plugins-action-btn",title:"Thumbs down"},vx={key:0,class:"freddy-plugins-processing-indicator"},yx={class:"freddy-plugins-chat-input-area"},Tx={class:"freddy-plugins-folder-btn"},Ax=["placeholder","onKeydown"],Nx=["disabled"],t2=e.defineComponent({__name:"SimpleChatInterface",props:{placeholder:{},messages:{},enableAI:{type:Boolean},openaiApiKey:{},textBoxContent:{}},emits:["send","acceptChanges","denyChanges","textReplacement","textCompletion"],setup(n,{expose:t,emit:o}){const r=n,a=o,i=e.ref(""),l=e.ref(null),s=e.ref(null),c=e.ref(r.messages||[]),d=e.ref(!1);r.openaiApiKey&&Jt.setApiKey(r.openaiApiKey),e.watch(()=>r.messages,C=>{C&&(c.value=C,v())}),e.watch(()=>r.openaiApiKey,C=>{C&&Jt.setApiKey(C)});const u=C=>{switch(C){case"replace":return"Text Replacement";case"complete":return"Text Completion";case"chat":return"AI Response";default:return"Text Improvement"}},_=C=>{switch(C){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"}},m=async C=>{var f,A;if(!Jt.isConfigured()){const y={id:Date.now().toString(),content:"AI service is not configured. Please provide an OpenAI API key.",sender:"assistant",timestamp:new Date};c.value.push(y),v();return}d.value=!0;try{const y=await Jt.askAI(C,r.textBoxContent);if(y.success&&y.content){const N={id:Date.now().toString(),content:y.content,sender:"assistant",timestamp:new Date,applied:!1,changes:y.hasChanges?{title:y.changeTitle||u(y.action),description:y.changeDescription||_(y.action),added:((f=y.stats)==null?void 0:f.added)||0,removed:((A=y.stats)==null?void 0:A.removed)||0,data:{originalText:r.textBoxContent,improvedText:y.improvedText||y.content,action:y.action}}:void 0};c.value.push(N),v()}else{const N={id:Date.now().toString(),content:y.error||"Failed to process your request. Please try again.",sender:"assistant",timestamp:new Date};c.value.push(N),v()}}catch{const N={id:Date.now().toString(),content:"An unexpected error occurred while processing your request.",sender:"assistant",timestamp:new Date};c.value.push(N),v()}finally{d.value=!1}},g=async()=>{const C=i.value.trim();if(!C)return;const f={id:Date.now().toString(),content:C,sender:"user",timestamp:new Date};c.value.push(f),a("send",C),i.value="",b(),v(),r.enableAI&&await m(C)},p=()=>{i.value+=`
|
|
232
|
-
`,b()},b=()=>{e.nextTick(()=>{s.value&&(s.value.style.height="auto",s.value.style.height=Math.min(s.value.scrollHeight,120)+"px")})},v=()=>{e.nextTick(()=>{l.value&&(l.value.scrollTop=l.value.scrollHeight)})},T=C=>{a("acceptChanges",C)},E=C=>{C.changes&&(C.changes=void 0),a("denyChanges",C)};return t({addAIResponse:(C,f)=>{const A={id:Date.now().toString(),content:C,sender:"assistant",timestamp:new Date,changes:f};c.value.push(A),v()},addAIResponseFromApi:C=>{const f=Ko(C),A=l_(f),y=c_(f),N={id:Date.now().toString(),content:A,sender:"assistant",timestamp:new Date,applied:!1,changes:y};c.value.push(N),v()}}),(C,f)=>(e.openBlock(),e.createElementBlock("div",ZD,[e.createElementVNode("div",{ref_key:"messagesContainer",ref:l,class:"freddy-plugins-chat-messages"},[e.createElementVNode("div",jD,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,A=>(e.openBlock(),e.createElementBlock("div",{key:A.id,class:e.normalizeClass(["freddy-plugins-message",A.sender])},[A.sender==="user"?(e.openBlock(),e.createElementBlock("div",XD,[e.createElementVNode("div",JD,e.toDisplayString(A.content),1),e.createElementVNode("div",ex,[e.createElementVNode("button",tx,[e.createVNode(e.unref(rn),{class:"freddy-plugins-action-icon"})]),e.createElementVNode("button",nx,[e.createVNode(e.unref(Tt),{class:"freddy-plugins-action-icon"})])])])):(e.openBlock(),e.createElementBlock("div",ox,[e.createElementVNode("div",rx,[e.createElementVNode("p",ax,e.toDisplayString(A.content),1),A.changes?(e.openBlock(),e.createElementBlock("div",ix,[e.createElementVNode("div",sx,[e.createElementVNode("div",lx,[e.createVNode(e.unref(_n),{class:"freddy-plugins-building-icon"}),e.createElementVNode("span",cx,e.toDisplayString(A.changes.title||"Instructions"),1),A.changes.added>0?(e.openBlock(),e.createElementBlock("span",dx,"+"+e.toDisplayString(A.changes.added),1)):e.createCommentVNode("",!0),A.changes.removed>0?(e.openBlock(),e.createElementBlock("span",ux,"-"+e.toDisplayString(A.changes.removed),1)):e.createCommentVNode("",!0),f[1]||(f[1]=e.createElementVNode("span",{class:"freddy-plugins-changes-applied"},"Changes applied",-1))])]),e.createElementVNode("div",_x,[f[5]||(f[5]=e.createElementVNode("div",{class:"freddy-plugins-content-header"},[e.createElementVNode("span",{class:"freddy-plugins-content-title"},"Instructions")],-1)),e.createElementVNode("p",px,e.toDisplayString(A.changes.description),1),A.applied?(e.openBlock(),e.createElementBlock("div",Ex,[e.createVNode(e.unref(on),{class:"freddy-plugins-applied-icon"}),f[4]||(f[4]=e.createTextVNode(" Applied ",-1))])):(e.openBlock(),e.createElementBlock("div",mx,[e.createElementVNode("button",{class:"freddy-plugins-accept-btn",onClick:y=>T(A)},[e.createVNode(e.unref(on),{class:"freddy-plugins-btn-icon"}),f[2]||(f[2]=e.createTextVNode(" Accept ",-1))],8,gx),e.createElementVNode("button",{class:"freddy-plugins-deny-btn",onClick:y=>E(A)},[e.createVNode(e.unref(Ye),{class:"freddy-plugins-btn-icon"}),f[3]||(f[3]=e.createTextVNode(" Deny ",-1))],8,fx)]))])])):e.createCommentVNode("",!0),e.createElementVNode("div",Sx,[e.createElementVNode("button",bx,[e.createVNode(e.unref(xo),{class:"freddy-plugins-action-icon"})]),e.createElementVNode("button",hx,[e.createVNode(e.unref(rn),{class:"freddy-plugins-action-icon"})]),e.createElementVNode("button",Cx,[e.createVNode(e.unref(Ho),{class:"freddy-plugins-action-icon"})])])])]))],2))),128))]),d.value?(e.openBlock(),e.createElementBlock("div",vx,[...f[6]||(f[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",yx,[e.createElementVNode("button",Tx,[e.createVNode(e.unref(pn),{class:"freddy-plugins-folder-icon"})]),e.withDirectives(e.createElementVNode("textarea",{ref_key:"inputRef",ref:s,"onUpdate:modelValue":f[0]||(f[0]=A=>i.value=A),placeholder:C.placeholder||"Type here...",class:"freddy-plugins-chat-input",rows:"1",onKeydown:[e.withKeys(e.withModifiers(g,["exact","prevent"]),["enter"]),e.withKeys(e.withModifiers(p,["shift","exact"]),["enter"])],onInput:b},null,40,Ax),[[e.vModelText,i.value]]),e.createElementVNode("button",{class:"freddy-plugins-send-button",disabled:!i.value.trim(),onClick:g},[e.createVNode(e.unref(Ro),{class:"freddy-plugins-send-icon"})],8,Nx)])]))}}),Ix={class:"freddy-plugins-edit-excerpt-modal-content"},Rx={class:"freddy-plugins-edit-excerpt-modal-header"},Ox={class:"freddy-plugins-edit-excerpt-modal-header-content"},Dx={class:"freddy-plugins-edit-excerpt-modal-icon"},xx={class:"freddy-plugins-edit-excerpt-modal-text"},wx={class:"freddy-plugins-edit-excerpt-modal-title"},kx={class:"freddy-plugins-edit-excerpt-modal-subtitle"},Mx={class:"freddy-plugins-edit-excerpt-modal-textarea-section"},Lx={class:"freddy-plugins-edit-excerpt-modal-footer"},Px={class:"freddy-plugins-edit-excerpt-modal-footer-content"},Bx={key:0,class:"freddy-plugins-edit-excerpt-modal-ai-container"},Fx=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(n,{emit:t}){const o=n,r=t,a=e.ref(o.initialContent),i=e.ref(!1),l=e.ref([]),s=e.ref(null);e.watch(()=>o.initialContent,E=>{a.value=E});const c=()=>{i.value=!1,l.value=[],r("close")},d=()=>{r("save",a.value)},u=()=>{i.value=!1,l.value=[],r("cancel")},_=()=>{i.value=!0,r("toggleAI",i.value),r("askAI",a.value)},m=()=>{i.value=!1,r("toggleAI",i.value)},g=async E=>{},p=E=>{E.changes&&E.changes.data&&E.changes.data.improvedText&&(a.value,a.value=E.changes.data.improvedText,E.applied=!0)},b=E=>{},v=E=>{},T=E=>{};return(E,h)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[n.isVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"freddy-plugins-edit-excerpt-modal-overlay",onClick:e.withModifiers(c,["self"])},[e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-edit-excerpt-modal-container",{"ai-active":i.value}])},[e.createElementVNode("div",Ix,[e.createElementVNode("div",Rx,[e.createElementVNode("div",Ox,[e.createElementVNode("div",Dx,[e.createVNode(e.unref(co),{class:"freddy-plugins-edit-excerpt-edit-icon","center-distance":36,"circle-gap":44,"show-circles":!0})]),e.createElementVNode("div",xx,[e.createElementVNode("h2",wx,e.toDisplayString(n.title),1),e.createElementVNode("p",kx,e.toDisplayString(n.description),1)])]),e.createElementVNode("button",{class:"freddy-plugins-edit-excerpt-modal-close-btn",style:e.normalizeStyle({right:i.value?"52px":"16px"}),onClick:c,"aria-label":"Close modal"},[e.createVNode(e.unref(Ye),{class:"freddy-plugins-edit-excerpt-modal-close-icon"})],4),i.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:"freddy-plugins-edit-excerpt-modal-close-btn",style:{right:"16px"},onClick:m,"aria-label":"Hide AI"},[e.createVNode(Lo,{class:"freddy-plugins-edit-excerpt-hide-section-icon"})])):e.createCommentVNode("",!0),h[1]||(h[1]=e.createElementVNode("div",{class:"freddy-plugins-edit-excerpt-modal-header-spacing"},null,-1))]),e.createElementVNode("div",Mx,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":h[0]||(h[0]=S=>a.value=S),class:"freddy-plugins-edit-excerpt-modal-textarea",placeholder:"The text thats needed",rows:"12"},null,512),[[e.vModelText,a.value]])]),e.createElementVNode("div",Lx,[e.createElementVNode("div",Px,[i.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,class:"freddy-plugins-edit-excerpt-modal-ai-btn",onClick:_},[e.createVNode(e.unref(En),{class:"freddy-plugins-edit-excerpt-modal-ai-icon"}),h[2]||(h[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:u}," Cancel "),e.createElementVNode("button",{class:"freddy-plugins-edit-excerpt-modal-save-btn",onClick:d}," Save changes ")])])])]),i.value?(e.openBlock(),e.createElementBlock("div",Bx,[e.createVNode(t2,{ref_key:"chatRef",ref:s,placeholder:"Type here...",messages:l.value,"enable-a-i":!0,"openai-api-key":n.openaiApiKey,"text-box-content":a.value,onSend:g,onAcceptChanges:p,onDenyChanges:b,onTextReplacement:v,onTextCompletion:T},null,8,["messages","openai-api-key","text-box-content"])])):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0)]),_:1}))}}),Vn=R(Fx,[["__scopeId","data-v-5aacf574"]]),Ux={class:"freddy-plugins-textarea-input-field-wrapper"},Gx={class:"freddy-plugins-textarea-input-container"},Vx={class:"freddy-plugins-textarea-header"},Yx={class:"freddy-plugins-textarea-label-wrapper"},Hx={class:"freddy-plugins-textarea-label-container"},zx={key:0,class:"freddy-plugins-textarea-required"},qx={class:"freddy-plugins-textarea-input-wrapper"},$x=["placeholder","disabled","readonly"],Wx={key:1,class:"freddy-plugins-textarea-diff-container"},Kx={class:"freddy-plugins-textarea-diff-content"},Qx={class:"freddy-plugins-textarea-diff-block freddy-plugins-textarea-diff-block--old"},Zx={class:"freddy-plugins-textarea-diff-block freddy-plugins-textarea-diff-block--new"},jx={key:2,class:"freddy-plugins-textarea-tags-container"},Xx={class:"freddy-plugins-textarea-tags"},Jx={class:"freddy-plugins-textarea-tag-content"},ew=["onClick","onKeydown","aria-label"],tw=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(n,{expose:t,emit:o}){const r=n,a=o,i=e.ref(null),l=e.ref(null),s=e.ref(r.modelValue),c=e.ref(""),d=e.ref(!1),u=e.ref("expand"),_=e.ref(!1),m=e.computed(()=>r.showTags&&r.tags.length>0?"":r.placeholder);e.watch(()=>r.modelValue,D=>{s.value=D});const g=()=>{a("update:modelValue",s.value),a("input",s.value)},p=D=>{_.value=!0,a("focus",D)},b=D=>{_.value=!1,a("blur",D)},v=D=>{},T=()=>{r.tagsOnly&&a("tags-click")},E=()=>{a("tooltip-click")},h=D=>{(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),E())},S=()=>{c.value=s.value,u.value="ai",d.value=!0,a("ask-ai",s.value)},C=D=>{(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),S())},f=()=>{c.value=s.value,u.value="expand",d.value=!0,a("expand",s.value)},A=D=>{(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),f())},y=D=>{a("remove-tag",D)},N=(D,K)=>{(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),y(K))},k=()=>{s.value=c.value,a("update:modelValue",c.value),a("input",c.value),d.value=!1},O=D=>{s.value=D,a("update:modelValue",D),a("input",D),d.value=!1},H=()=>{s.value=c.value,a("update:modelValue",c.value),a("input",c.value),d.value=!1},j=()=>{a("ask-ai",s.value)},w=D=>{};return t({focus:()=>{var D;(D=i.value)==null||D.focus()}}),(D,K)=>(e.openBlock(),e.createElementBlock("div",Ux,[e.createElementVNode("div",Gx,[e.createElementVNode("div",Vx,[e.createElementVNode("div",Yx,[e.createElementVNode("div",Hx,[e.createElementVNode("label",{class:e.normalizeClass(["freddy-plugins-textarea-label",{"freddy-plugins-textarea-label--underlined":D.showUnderlines}])},e.toDisplayString(D.dynamicTitle||D.label),3),D.required?(e.openBlock(),e.createElementBlock("span",zx,"*")):e.createCommentVNode("",!0),D.showTooltip&&D.tooltipText?(e.openBlock(),e.createBlock(bt,{key:1,text:D.tooltipText,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("button",{type:"button",class:"freddy-plugins-textarea-tooltip-button","aria-label":"Help",tabindex:"0",onClick:E,onKeydown:h},[e.createVNode(e.unref(At),{class:"freddy-plugins-textarea-tooltip-icon"})],32)]),_:1},8,["text"])):e.createCommentVNode("",!0)])]),D.showAiButton?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"freddy-plugins-textarea-ai-button",onClick:S,onKeydown:C,"aria-label":"Ask AI for help",tabindex:"0"},[e.createVNode(e.unref(En),{class:"freddy-plugins-textarea-ai-icon"})],32)):e.createCommentVNode("",!0)]),e.createElementVNode("div",qx,[D.diffMode?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:0,ref_key:"textareaRef",ref:i,"onUpdate:modelValue":K[0]||(K[0]=M=>s.value=M),class:e.normalizeClass(["freddy-plugins-textarea-input",{"freddy-plugins-textarea-input--error":D.hasError,"freddy-plugins-textarea-input--disabled":D.disabled,"freddy-plugins-textarea-input--focused":_.value,"freddy-plugins-textarea-input--with-tags":D.showTags&&D.tags.length>0,"freddy-plugins-textarea-input--tags-only":D.tagsOnly}]),placeholder:m.value,disabled:D.disabled,readonly:D.readonly||D.tagsOnly,onInput:g,onFocus:p,onBlur:b,onKeydown:v,onClick:T},null,42,$x)),[[e.vModelText,s.value]]),D.diffMode?(e.openBlock(),e.createElementBlock("div",Wx,[e.createElementVNode("div",Kx,[e.createElementVNode("div",Qx,e.toDisplayString(D.oldText),1),e.createElementVNode("div",Zx,e.toDisplayString(D.newText),1)])])):e.createCommentVNode("",!0),D.showTags&&D.tags.length>0?(e.openBlock(),e.createElementBlock("div",jx,[e.createElementVNode("div",Xx,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.tags,(M,L)=>(e.openBlock(),e.createElementBlock("div",{key:`${M}-${L}`,class:"freddy-plugins-textarea-tag"},[e.createElementVNode("div",Jx,[e.createElementVNode("span",{class:e.normalizeClass(["freddy-plugins-textarea-tag-text",{"freddy-plugins-textarea-tag-text--underlined":D.showUnderlines}])},e.toDisplayString(M),3)]),e.createElementVNode("button",{type:"button",class:"freddy-plugins-textarea-tag-close",onClick:G=>y(L),onKeydown:G=>N(G,L),"aria-label":`Remove ${M} tag`,tabindex:"0"},[e.createVNode(e.unref(Ye),{class:"freddy-plugins-textarea-tag-close-icon"})],40,ew)]))),128))]),D.showAddTagsPlaceholder?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["freddy-plugins-textarea-add-tags",{"freddy-plugins-textarea-add-tags--underlined":D.showUnderlines}])},e.toDisplayString(D.addTagsPlaceholder),3)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:"freddy-plugins-textarea-expand-button",onClick:f,onKeydown:A,"aria-label":"Expand textarea",tabindex:"0"},[e.createVNode(No,{class:"freddy-plugins-textarea-expand-icon"})],32)])]),D.showHint&&D.hintText&&!D.hasError?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["freddy-plugins-textarea-hint-text",{"freddy-plugins-textarea-hint-text--underlined":D.showUnderlines}])},e.toDisplayString(D.hintText),3)):e.createCommentVNode("",!0),D.hasError&&D.errorMessage?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(["freddy-plugins-textarea-error-text",{"freddy-plugins-textarea-error-text--underlined":D.showUnderlines}])},e.toDisplayString(D.errorMessage),3)):e.createCommentVNode("",!0),u.value==="ai"?(e.openBlock(),e.createBlock(Vn,{key:2,ref_key:"aiModalRef",ref:l,"is-visible":d.value&&u.value==="ai",title:D.modalTitle,description:D.modalDescription,"initial-content":s.value,"openai-api-key":D.openaiApiKey,"openai-model":D.openaiModel,"openai-organization":D.openaiOrganization,"auto-show-a-i":!0,onClose:k,onSave:O,onCancel:H,onAskAI:j,onToggleAI:w},null,8,["is-visible","title","description","initial-content","openai-api-key","openai-model","openai-organization"])):e.createCommentVNode("",!0),u.value==="expand"?(e.openBlock(),e.createBlock(Vn,{key:3,"is-visible":d.value&&u.value==="expand",title:D.modalTitle,description:D.modalDescription,"initial-content":s.value,"openai-api-key":"","openai-model":D.openaiModel,"openai-organization":"",onClose:k,onSave:O,onCancel:H},null,8,["is-visible","title","description","initial-content","openai-model"])):e.createCommentVNode("",!0)]))}}),n2=R(tw,[["__scopeId","data-v-c6385f70"]]),nw=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(n,{expose:t,emit:o}){const r=n,a=o,i=e.ref(r.modelValue),l=e.ref([...r.tags]);e.watch(()=>r.modelValue,f=>{i.value=f}),e.watch(()=>r.tags,f=>{l.value=[...f]},{deep:!0});const s=e.computed(()=>r.type==="tags"),c=e.computed(()=>r.type==="tags"&&(r.stage==="placeholder"||r.stage==="focused")),d=e.computed(()=>(r.stage==="focused","Add tags...")),u=e.computed(()=>r.stage==="error"||r.destructive);e.computed(()=>u.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 _=f=>{i.value=f,a("update:modelValue",f)},m=f=>{a("input",f)},g=f=>{a("focus",f)},p=f=>{a("blur",f)},b=f=>{a("ask-ai",f)},v=f=>{a("expand",f)},T=f=>{l.value.splice(f,1),a("remove-tag",f)},E=()=>{a("tooltip-click")},h=f=>{a("add-tag",f)},S=()=>{a("tags-click")};return t({focus:()=>{}}),(f,A)=>(e.openBlock(),e.createBlock(n2,{modelValue:i.value,"onUpdate:modelValue":[A[0]||(A[0]=y=>i.value=y),_],label:f.label,placeholder:f.placeholder,disabled:f.disabled,readonly:f.readonly,required:f.required,"show-tooltip":f.showTooltip,"tooltip-text":f.tooltipText,"show-ai-button":f.showAiButton,"show-tags":s.value,tags:l.value,"show-add-tags-placeholder":c.value,"add-tags-placeholder":d.value,"hint-text":f.hintText,"has-error":u.value,"error-message":f.errorMessage,"modal-title":f.modalTitle,"modal-description":f.modalDescription,"openai-api-key":f.openaiApiKey,"openai-model":f.openaiModel,"openai-organization":f.openaiOrganization,"show-underlines":f.showUnderlines,"dynamic-title":f.dynamicTitle,"show-hint":f.showHint,"diff-mode":f.diffMode,"old-text":f.oldText,"new-text":f.newText,"tags-only":f.tagsOnly,onInput:m,onFocus:g,onBlur:p,onAskAi:b,onExpand:v,onRemoveTag:T,onTooltipClick:E,onAddTag:h,onTagsClick:S},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"]))}}),ow=R(nw,[["__scopeId","data-v-19ded011"]]),rw={class:"freddy-plugins-diff-container"},aw=["innerHTML"],iw=["placeholder"],sw=e.defineComponent({__name:"DiffTextarea",props:{modelValue:{},placeholder:{default:"Enter your text..."},originalText:{},improvedText:{},showDiff:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{expose:t,emit:o}){const r=n,a=o,i=e.ref(null),l=e.ref(r.modelValue);e.watch(()=>r.modelValue,d=>{l.value=d});const s=()=>{a("update:modelValue",l.value)},c=e.computed(()=>{if(!r.originalText||!r.improvedText)return"";const d=r.originalText.split(/(\s+)/),u=r.improvedText.split(/(\s+)/);let _="";const m=d.filter(p=>!u.includes(p)&&p.trim()).join(" ");m&&(_+=`<span class="freddy-plugins-diff-removed">${m}</span>`);const g=u.filter(p=>!d.includes(p)&&p.trim()).join(" ");return g&&(_&&(_+="<br>"),_+=`<span class="freddy-plugins-diff-added">${g}</span>`),_||(_=`<span class="freddy-plugins-diff-improved">${r.improvedText}</span>`),_});return t({focus:()=>{var d;return(d=i.value)==null?void 0:d.focus()},blur:()=>{var d;return(d=i.value)==null?void 0:d.blur()}}),(d,u)=>(e.openBlock(),e.createElementBlock("div",rw,[d.showDiff&&c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"freddy-plugins-diff-preview",innerHTML:c.value},null,8,aw)):e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:1,ref_key:"textareaRef",ref:i,"onUpdate:modelValue":u[0]||(u[0]=_=>l.value=_),class:"freddy-plugins-diff-textarea",placeholder:d.placeholder,onInput:s},null,40,iw)),[[e.vModelText,l.value]])]))}}),lw=R(sw,[["__scopeId","data-v-54efeaf3"]]),cw={class:"verification-container"},dw={class:"verification-header"},uw={class:"verification-subtitle"},_w={class:"code-input-container"},pw={class:"code-inputs"},mw=["onUpdate:modelValue","onInput","onKeydown","disabled"],gw={class:"verification-actions"},fw={key:0,class:"error-message"},Ew={class:"verification-footer"},Sw={class:"resend-text"},bw=["disabled"],hw=e.defineComponent({__name:"EmailCodeVerification",props:{email:{},brand:{default:"contentplate"},loading:{type:Boolean,default:!1},error:{default:""},resendCooldown:{default:0}},emits:["verify","resend"],setup(n,{emit:t}){const{currentProject:o,currentColorMode:r}=me(),a=n,{brand:i,loading:l,error:s,resendCooldown:c}=a,d=t,u=e.ref(["","","",""]),_=e.ref([]),m=e.computed(()=>u.value.every(h=>h!=="")),g=e.computed(()=>u.value.join("")),p=(h,S)=>{const C=S.target,f=C.value;if(!/^\d*$/.test(f)){C.value="";return}u.value[h]=f,f&&h<3&&e.nextTick(()=>{var A;(A=_.value[h+1])==null||A.focus()})},b=(h,S)=>{S.key==="Backspace"&&!u.value[h]&&h>0&&e.nextTick(()=>{var C;(C=_.value[h-1])==null||C.focus()})},v=h=>{var y;h.preventDefault();const S=(y=h.clipboardData)==null?void 0:y.getData("text");if(!S)return;const C=S.replace(/\D/g,"").slice(0,4).split("");u.value=[...C,"","","",""].slice(0,4);const f=u.value.findIndex(N=>N===""),A=f===-1?3:f;e.nextTick(()=>{var N;(N=_.value[A])==null||N.focus()})},T=()=>{m.value&&d("verify",g.value)},E=()=>{d("resend")};return e.onMounted(()=>{e.nextTick(()=>{var h;(h=_.value[0])==null||h.focus()})}),(h,S)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["email-verification",`email-verification--${e.unref(i)}`])},[e.createElementVNode("div",cw,[e.createElementVNode("div",dw,[S[1]||(S[1]=e.createElementVNode("h2",{class:"verification-title"},"Verify Your Email",-1)),e.createElementVNode("p",uw,[S[0]||(S[0]=e.createTextVNode(" We've sent a 4-digit verification code to ",-1)),e.createElementVNode("strong",null,e.toDisplayString(h.email),1)])]),e.createElementVNode("form",{onSubmit:e.withModifiers(T,["prevent"]),class:"verification-form"},[e.createElementVNode("div",_w,[e.createElementVNode("div",pw,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,(C,f)=>e.withDirectives(e.createElementVNode("input",{key:f,ref_for:!0,ref:A=>_.value[f]=A,"onUpdate:modelValue":A=>u.value[f]=A,type:"text",maxlength:"1",class:e.normalizeClass(["code-input",`code-input--${e.unref(i)}`]),onInput:A=>p(f,A),onKeydown:A=>b(f,A),onPaste:v,disabled:e.unref(l),autocomplete:"one-time-code"},null,42,mw),[[e.vModelText,u.value[f]]])),64))])]),e.createElementVNode("div",gw,[e.createVNode(ht,{type:"submit",label:e.unref(l)?"Verifying...":"Verify Code",hierarchy:"primary",size:"lg",loading:e.unref(l),disabled:!m.value||e.unref(l),class:e.normalizeClass(`verify-button verify-button--${e.unref(i)}`)},null,8,["label","loading","disabled","class"])]),e.unref(s)?(e.openBlock(),e.createElementBlock("div",fw,e.toDisplayString(e.unref(s)),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Ew,[e.createElementVNode("p",Sw,[S[2]||(S[2]=e.createTextVNode(" Didn't receive the code? ",-1)),e.createElementVNode("button",{type:"button",class:"resend-button",disabled:e.unref(c)>0,onClick:E},e.toDisplayString(e.unref(c)>0?`Resend in ${e.unref(c)}s`:"Resend code"),9,bw)])])],32)])],2))}}),Cw={class:"freddy-plugins-input-field-wrapper"},vw=["for"],yw={key:0,class:"freddy-plugins-required-asterisk"},Tw=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(n,{expose:t,emit:o}){const r=n,a=o,i=e.computed(()=>`input-${Math.random().toString(36).substr(2,9)}`),l=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"})),s=()=>{r.state!=="disabled"&&a("focus",new FocusEvent("focus"))};return t({inputId:i,containerClasses:l,focusInput:s}),(c,d)=>(e.openBlock(),e.createElementBlock("div",Cw,[c.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:i.value,class:e.normalizeClass(["freddy-plugins-input-field-label",`freddy-plugins-input-field-label--${c.colorStyle}`])},[e.createTextVNode(e.toDisplayString(c.label)+" ",1),c.required?(e.openBlock(),e.createElementBlock("span",yw,"*")):e.createCommentVNode("",!0)],10,vw)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-input-field-container",l.value]),onClick:s},[e.renderSlot(c.$slots,"default",{},void 0,!0)],2),c.hintText?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(["freddy-plugins-input-hint-text",`freddy-plugins-input-hint-text--${c.colorStyle}`])},e.toDisplayString(c.hintText),3)):e.createCommentVNode("",!0)]))}}),Jo=R(Tw,[["__scopeId","data-v-bb114a19"]]),o2=(n,t,o)=>{const r=n[t];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((a,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==o?". Note that variables only represent file names one level deep.":""))))})},Aw=["src","alt"],Nw=["id","placeholder","disabled","readonly","maxlength"],Iw=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(n,{expose:t,emit:o}){const r=n,a=o,i=e.ref(null),l=e.ref(null),s=e.ref(""),c=e.ref(""),d=e.ref("unknown"),u=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=>y?typeof y=="object"?y:typeof y=="string"?e.defineAsyncComponent(()=>o2(Object.assign({"../../icons/IconAddFileSystem.vue":()=>Promise.resolve().then(()=>il),"../../icons/IconAddPeople.vue":()=>Promise.resolve().then(()=>ll),"../../icons/IconAitronos.vue":()=>Promise.resolve().then(()=>dl),"../../icons/IconApple.vue":()=>Promise.resolve().then(()=>ul),"../../icons/IconApplePay.vue":()=>Promise.resolve().then(()=>pl),"../../icons/IconArrowDown.vue":()=>Promise.resolve().then(()=>qn),"../../icons/IconArrowLeft.vue":()=>Promise.resolve().then(()=>$n),"../../icons/IconArrowUp.vue":()=>Promise.resolve().then(()=>Wn),"../../icons/IconBadgeCheck.vue":()=>Promise.resolve().then(()=>El),"../../icons/IconBroom.vue":()=>Promise.resolve().then(()=>bl),"../../icons/IconBuildings.vue":()=>Promise.resolve().then(()=>Cl),"../../icons/IconCalendarWithTickInside.vue":()=>Promise.resolve().then(()=>yl),"../../icons/IconCallNotAllowed.vue":()=>Promise.resolve().then(()=>Al),"../../icons/IconCardPay.vue":()=>Promise.resolve().then(()=>Il),"../../icons/IconCaution.vue":()=>Promise.resolve().then(()=>Rl),"../../icons/IconChangeLog.vue":()=>Promise.resolve().then(()=>Dl),"../../icons/IconCheckCircleFill.vue":()=>Promise.resolve().then(()=>xl),"../../icons/IconCheckInCircle.vue":()=>Promise.resolve().then(()=>wl),"../../icons/IconCheckRounded.vue":()=>Promise.resolve().then(()=>kl),"../../icons/IconChevronDown.vue":()=>Promise.resolve().then(()=>jn),"../../icons/IconChevronLeft.vue":()=>Promise.resolve().then(()=>Xn),"../../icons/IconChevronRight.vue":()=>Promise.resolve().then(()=>Jn),"../../icons/IconChevronUp.vue":()=>Promise.resolve().then(()=>eo),"../../icons/IconCircledCheck.vue":()=>Promise.resolve().then(()=>Bl),"../../icons/IconClock.vue":()=>Promise.resolve().then(()=>Ul),"../../icons/IconClosedEnvelope.vue":()=>Promise.resolve().then(()=>Vl),"../../icons/IconCloudUpload.vue":()=>Promise.resolve().then(()=>Hl),"../../icons/IconConnectorConfluence.vue":()=>Promise.resolve().then(()=>ql),"../../icons/IconConnectorFigma.vue":()=>Promise.resolve().then(()=>Wl),"../../icons/IconConnectorFreshDesk.vue":()=>Promise.resolve().then(()=>Ql),"../../icons/IconConnectorGitHub.vue":()=>Promise.resolve().then(()=>jl),"../../icons/IconConnectorJira.vue":()=>Promise.resolve().then(()=>Jl),"../../icons/IconConnectorLinear.vue":()=>Promise.resolve().then(()=>tc),"../../icons/IconConnectorNotion.vue":()=>Promise.resolve().then(()=>oc),"../../icons/IconConnectorSlack.vue":()=>Promise.resolve().then(()=>ac),"../../icons/IconConnectorZapier.vue":()=>Promise.resolve().then(()=>sc),"../../icons/IconCopy.vue":()=>Promise.resolve().then(()=>to),"../../icons/IconCross.vue":()=>Promise.resolve().then(()=>no),"../../icons/IconCrossCircleFill.vue":()=>Promise.resolve().then(()=>cc),"../../icons/IconCrossInCircle.vue":()=>Promise.resolve().then(()=>uc),"../../icons/IconCurrentTick.vue":()=>Promise.resolve().then(()=>pc),"../../icons/IconDataUpload.vue":()=>Promise.resolve().then(()=>mc),"../../icons/IconDelete.vue":()=>Promise.resolve().then(()=>ao),"../../icons/IconDeleteFillRed.vue":()=>Promise.resolve().then(()=>fc),"../../icons/IconDialingPhone.vue":()=>Promise.resolve().then(()=>Sc),"../../icons/IconDisabledAlert.vue":()=>Promise.resolve().then(()=>hc),"../../icons/IconDocumentation.vue":()=>Promise.resolve().then(()=>vc),"../../icons/IconDownload.vue":()=>Promise.resolve().then(()=>io),"../../icons/IconDribbble.vue":()=>Promise.resolve().then(()=>Tc),"../../icons/IconDropdownArrow.vue":()=>Promise.resolve().then(()=>Nc),"../../icons/IconEdit.vue":()=>Promise.resolve().then(()=>lo),"../../icons/IconEditLinePath.vue":()=>Promise.resolve().then(()=>Ic),"../../icons/IconEllipse.vue":()=>Promise.resolve().then(()=>u_),"../../icons/IconExcelThumbnail.vue":()=>Promise.resolve().then(()=>Dc),"../../icons/IconEye.vue":()=>Promise.resolve().then(()=>_o),"../../icons/IconFacebook.vue":()=>Promise.resolve().then(()=>xc),"../../icons/IconFigma.vue":()=>Promise.resolve().then(()=>wc),"../../icons/IconFile.vue":()=>Promise.resolve().then(()=>go),"../../icons/IconFileSystem.vue":()=>Promise.resolve().then(()=>kc),"../../icons/IconFileUpload.vue":()=>Promise.resolve().then(()=>Lc),"../../icons/IconFilter.vue":()=>Promise.resolve().then(()=>So),"../../icons/IconFolder.vue":()=>Promise.resolve().then(()=>bo),"../../icons/IconFreddyHub.vue":()=>Promise.resolve().then(()=>Bc),"../../icons/IconFreddyHubLogo.vue":()=>Promise.resolve().then(()=>Uc),"../../icons/IconFreddyHubNewLogo.vue":()=>Promise.resolve().then(()=>Vc),"../../icons/IconFreddyHubTitle.vue":()=>Promise.resolve().then(()=>Hc),"../../icons/IconFreddySmall.vue":()=>Promise.resolve().then(()=>zc),"../../icons/IconGlobExpand.vue":()=>Promise.resolve().then(()=>$c),"../../icons/IconGlobe.vue":()=>Promise.resolve().then(()=>Kc),"../../icons/IconGoogle.vue":()=>Promise.resolve().then(()=>Qc),"../../icons/IconHollowCircle.vue":()=>Promise.resolve().then(()=>jc),"../../icons/IconHome.vue":()=>Promise.resolve().then(()=>vo),"../../icons/IconInfoRounded.vue":()=>Promise.resolve().then(()=>Jc),"../../icons/IconInvalidInvoice.vue":()=>Promise.resolve().then(()=>td),"../../icons/IconInvoice.vue":()=>Promise.resolve().then(()=>od),"../../icons/IconInvoiceSwitch.vue":()=>Promise.resolve().then(()=>ad),"../../icons/IconLapTableBottom.vue":()=>Promise.resolve().then(()=>sd),"../../icons/IconLense.vue":()=>Promise.resolve().then(()=>cd),"../../icons/IconLightCross.vue":()=>Promise.resolve().then(()=>dd),"../../icons/IconLink04.vue":()=>Promise.resolve().then(()=>yo),"../../icons/IconLoadingError.vue":()=>Promise.resolve().then(()=>_d),"../../icons/IconLoadingOrg.vue":()=>Promise.resolve().then(()=>md),"../../icons/IconLocationWithCircleIn.vue":()=>Promise.resolve().then(()=>fd),"../../icons/IconLock.vue":()=>Promise.resolve().then(()=>Ao),"../../icons/IconMarketPlace.vue":()=>Promise.resolve().then(()=>Sd),"../../icons/IconMaximize.vue":()=>Promise.resolve().then(()=>bd),"../../icons/IconMicrophone.vue":()=>Promise.resolve().then(()=>Cd),"../../icons/IconMutedMicrophone.vue":()=>Promise.resolve().then(()=>yd),"../../icons/IconNewNotification.vue":()=>Promise.resolve().then(()=>Ad),"../../icons/IconNewTab.vue":()=>Promise.resolve().then(()=>Nd),"../../icons/IconNotification.vue":()=>Promise.resolve().then(()=>Rd),"../../icons/IconOpenBook.vue":()=>Promise.resolve().then(()=>Dd),"../../icons/IconPaperAirPlane.vue":()=>Promise.resolve().then(()=>xd),"../../icons/IconPauseCircle.vue":()=>Promise.resolve().then(()=>kd),"../../icons/IconPdfThumbnail.vue":()=>Promise.resolve().then(()=>Ld),"../../icons/IconPenEdit.vue":()=>Promise.resolve().then(()=>Bd),"../../icons/IconPencil.vue":()=>Promise.resolve().then(()=>Ud),"../../icons/IconPeopleHub.vue":()=>Promise.resolve().then(()=>Vd),"../../icons/IconPersonCircle.vue":()=>Promise.resolve().then(()=>Hd),"../../icons/IconPits.vue":()=>Promise.resolve().then(()=>qd),"../../icons/IconPlay.vue":()=>Promise.resolve().then(()=>Wd),"../../icons/IconPlus.vue":()=>Promise.resolve().then(()=>Do),"../../icons/IconPolygonDown.vue":()=>Promise.resolve().then(()=>Qd),"../../icons/IconPresentation.vue":()=>Promise.resolve().then(()=>jd),"../../icons/IconProgressBase.vue":()=>Promise.resolve().then(()=>Jd),"../../icons/IconProgressComplete.vue":()=>Promise.resolve().then(()=>tu),"../../icons/IconProgressGoing.vue":()=>Promise.resolve().then(()=>ou),"../../icons/IconPurpose.vue":()=>Promise.resolve().then(()=>au),"../../icons/IconPurseCircleFill.vue":()=>Promise.resolve().then(()=>su),"../../icons/IconQuestion.vue":()=>Promise.resolve().then(()=>lu),"../../icons/IconRadio.vue":()=>Promise.resolve().then(()=>du),"../../icons/IconRadioFill.vue":()=>Promise.resolve().then(()=>_u),"../../icons/IconRefresh.vue":()=>Promise.resolve().then(()=>wo),"../../icons/IconRevertedTraingle.vue":()=>Promise.resolve().then(()=>pu),"../../icons/IconRobotScreen.vue":()=>Promise.resolve().then(()=>mu),"../../icons/IconRoundTick.vue":()=>Promise.resolve().then(()=>fu),"../../icons/IconSearch.vue":()=>Promise.resolve().then(()=>Mo),"../../icons/IconSearchOptimised.vue":()=>Promise.resolve().then(()=>Su),"../../icons/IconSectionHide.vue":()=>Promise.resolve().then(()=>bu),"../../icons/IconSend.vue":()=>Promise.resolve().then(()=>Bo),"../../icons/IconSettings.vue":()=>Promise.resolve().then(()=>Fo),"../../icons/IconSettingsBold.vue":()=>Promise.resolve().then(()=>vu),"../../icons/IconSize.vue":()=>Promise.resolve().then(()=>Tu),"../../icons/IconSliderKnobs.vue":()=>Promise.resolve().then(()=>Nu),"../../icons/IconSortIdle.vue":()=>Promise.resolve().then(()=>Ru),"../../icons/IconSparkle.vue":()=>Promise.resolve().then(()=>Ou),"../../icons/IconSpotlio.vue":()=>Promise.resolve().then(()=>xu),"../../icons/IconStar.vue":()=>Promise.resolve().then(()=>Go),"../../icons/IconStatistics.vue":()=>Promise.resolve().then(()=>ku),"../../icons/IconStopChat.vue":()=>Promise.resolve().then(()=>Lu),"../../icons/IconStreamLineHub.vue":()=>Promise.resolve().then(()=>Bu),"../../icons/IconStreamLineHubNewLogo.vue":()=>Promise.resolve().then(()=>Uu),"../../icons/IconSun.vue":()=>Promise.resolve().then(()=>Vu),"../../icons/IconSwap.vue":()=>Promise.resolve().then(()=>Hu),"../../icons/IconText.vue":()=>Promise.resolve().then(()=>Yo),"../../icons/IconTextThumbnail.vue":()=>Promise.resolve().then(()=>qu),"../../icons/IconThinDocument.vue":()=>Promise.resolve().then(()=>Wu),"../../icons/IconThinFile.vue":()=>Promise.resolve().then(()=>Qu),"../../icons/IconThumbsDown.vue":()=>Promise.resolve().then(()=>Zu),"../../icons/IconTick.vue":()=>Promise.resolve().then(()=>zo),"../../icons/IconUser.vue":()=>Promise.resolve().then(()=>qo),"../../icons/IconVerticalDots.vue":()=>Promise.resolve().then(()=>Ju),"../../icons/IconVideoCamera.vue":()=>Promise.resolve().then(()=>t_),"../../icons/IconWarningOctal.vue":()=>Promise.resolve().then(()=>o_),"../../icons/IconX.vue":()=>Promise.resolve().then(()=>r_),"../../icons/IconZip.vue":()=>Promise.resolve().then(()=>i_)}),`../../icons/${y}.vue`,4).catch(()=>({template:"<div></div>"}))):null:null,m=e.computed(()=>_(r.trailingIcon)),g=e.computed(()=>{switch(d.value){case"amex":return 17;default:return 19}}),p=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&&d.value!=="unknown","freddy-plugins-input-field--with-trailing":!!m.value})),b=y=>{const N=y.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"},v=y=>{const N=y.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)},T=y=>{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[y]||N.unknown},E=y=>{const k=y.target.value;s.value=k.replace(/\D/g,""),c.value=v(k);const O=b(s.value);O!==d.value&&(d.value=O,a("card-type-detected",O)),a("update:modelValue",c.value),a("update:cardNumber",s.value),a("input",c.value)},h=y=>{[8,9,27,13,46].indexOf(y.keyCode)!==-1||y.keyCode===65&&y.ctrlKey===!0||y.keyCode===67&&y.ctrlKey===!0||y.keyCode===86&&y.ctrlKey===!0||y.keyCode===88&&y.ctrlKey===!0||y.keyCode>=35&&y.keyCode<=39||(y.shiftKey||y.keyCode<48||y.keyCode>57)&&(y.keyCode<96||y.keyCode>105)&&y.preventDefault()},S=y=>{a("focus",y)},C=y=>{a("blur",y)},f=y=>{a("trailing-icon-click",y)},A=()=>{var y;(y=i.value)==null||y.focus()};return e.watch(()=>r.cardNumber,y=>{y!==s.value&&(s.value=y,c.value=v(y),d.value=b(y))},{immediate:!0}),t({focus:A,inputRef:i}),(y,N)=>(e.openBlock(),e.createBlock(Jo,e.mergeProps(u.value,{onFocus:S,onBlur:C}),{default:e.withCtx(()=>{var k;return[y.showCardIcon&&d.value!=="unknown"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["freddy-plugins-card-type-icon",`freddy-plugins-card-type-icon--${y.colorStyle}`])},[e.createElementVNode("img",{src:T(d.value),alt:`${d.value} card`,class:"freddy-plugins-card-icon-image"},null,8,Aw)],2)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:(k=l.value)==null?void 0:k.inputId,ref_key:"inputRef",ref:i,"onUpdate:modelValue":N[0]||(N[0]=O=>c.value=O),type:"text",inputmode:"numeric",placeholder:y.placeholder,disabled:y.disabled,readonly:y.readonly,maxlength:g.value,class:e.normalizeClass(["freddy-plugins-input-field freddy-plugins-card-input-field",p.value]),onInput:E,onKeydown:h,onFocus:S,onBlur:C},null,42,Nw),[[e.vModelText,c.value]]),m.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.value),{key:1,class:e.normalizeClass(["freddy-plugins-input-trailing-icon",`freddy-plugins-input-trailing-icon--${y.colorStyle}`]),onClick:f},null,8,["class"])):e.createCommentVNode("",!0)]}),_:1},16))}}),r2=R(Iw,[["__scopeId","data-v-3a6797a1"]]),Rw=["id","type","placeholder","disabled","readonly"],Ow=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(n,{expose:t,emit:o}){const r=n,a=o,i=e.ref(null),l=e.ref(null),s=e.ref(r.modelValue||""),c=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})),d=S=>S?typeof S=="object"?S:typeof S=="string"?e.defineAsyncComponent(()=>o2(Object.assign({"../../icons/IconAddFileSystem.vue":()=>Promise.resolve().then(()=>il),"../../icons/IconAddPeople.vue":()=>Promise.resolve().then(()=>ll),"../../icons/IconAitronos.vue":()=>Promise.resolve().then(()=>dl),"../../icons/IconApple.vue":()=>Promise.resolve().then(()=>ul),"../../icons/IconApplePay.vue":()=>Promise.resolve().then(()=>pl),"../../icons/IconArrowDown.vue":()=>Promise.resolve().then(()=>qn),"../../icons/IconArrowLeft.vue":()=>Promise.resolve().then(()=>$n),"../../icons/IconArrowUp.vue":()=>Promise.resolve().then(()=>Wn),"../../icons/IconBadgeCheck.vue":()=>Promise.resolve().then(()=>El),"../../icons/IconBroom.vue":()=>Promise.resolve().then(()=>bl),"../../icons/IconBuildings.vue":()=>Promise.resolve().then(()=>Cl),"../../icons/IconCalendarWithTickInside.vue":()=>Promise.resolve().then(()=>yl),"../../icons/IconCallNotAllowed.vue":()=>Promise.resolve().then(()=>Al),"../../icons/IconCardPay.vue":()=>Promise.resolve().then(()=>Il),"../../icons/IconCaution.vue":()=>Promise.resolve().then(()=>Rl),"../../icons/IconChangeLog.vue":()=>Promise.resolve().then(()=>Dl),"../../icons/IconCheckCircleFill.vue":()=>Promise.resolve().then(()=>xl),"../../icons/IconCheckInCircle.vue":()=>Promise.resolve().then(()=>wl),"../../icons/IconCheckRounded.vue":()=>Promise.resolve().then(()=>kl),"../../icons/IconChevronDown.vue":()=>Promise.resolve().then(()=>jn),"../../icons/IconChevronLeft.vue":()=>Promise.resolve().then(()=>Xn),"../../icons/IconChevronRight.vue":()=>Promise.resolve().then(()=>Jn),"../../icons/IconChevronUp.vue":()=>Promise.resolve().then(()=>eo),"../../icons/IconCircledCheck.vue":()=>Promise.resolve().then(()=>Bl),"../../icons/IconClock.vue":()=>Promise.resolve().then(()=>Ul),"../../icons/IconClosedEnvelope.vue":()=>Promise.resolve().then(()=>Vl),"../../icons/IconCloudUpload.vue":()=>Promise.resolve().then(()=>Hl),"../../icons/IconConnectorConfluence.vue":()=>Promise.resolve().then(()=>ql),"../../icons/IconConnectorFigma.vue":()=>Promise.resolve().then(()=>Wl),"../../icons/IconConnectorFreshDesk.vue":()=>Promise.resolve().then(()=>Ql),"../../icons/IconConnectorGitHub.vue":()=>Promise.resolve().then(()=>jl),"../../icons/IconConnectorJira.vue":()=>Promise.resolve().then(()=>Jl),"../../icons/IconConnectorLinear.vue":()=>Promise.resolve().then(()=>tc),"../../icons/IconConnectorNotion.vue":()=>Promise.resolve().then(()=>oc),"../../icons/IconConnectorSlack.vue":()=>Promise.resolve().then(()=>ac),"../../icons/IconConnectorZapier.vue":()=>Promise.resolve().then(()=>sc),"../../icons/IconCopy.vue":()=>Promise.resolve().then(()=>to),"../../icons/IconCross.vue":()=>Promise.resolve().then(()=>no),"../../icons/IconCrossCircleFill.vue":()=>Promise.resolve().then(()=>cc),"../../icons/IconCrossInCircle.vue":()=>Promise.resolve().then(()=>uc),"../../icons/IconCurrentTick.vue":()=>Promise.resolve().then(()=>pc),"../../icons/IconDataUpload.vue":()=>Promise.resolve().then(()=>mc),"../../icons/IconDelete.vue":()=>Promise.resolve().then(()=>ao),"../../icons/IconDeleteFillRed.vue":()=>Promise.resolve().then(()=>fc),"../../icons/IconDialingPhone.vue":()=>Promise.resolve().then(()=>Sc),"../../icons/IconDisabledAlert.vue":()=>Promise.resolve().then(()=>hc),"../../icons/IconDocumentation.vue":()=>Promise.resolve().then(()=>vc),"../../icons/IconDownload.vue":()=>Promise.resolve().then(()=>io),"../../icons/IconDribbble.vue":()=>Promise.resolve().then(()=>Tc),"../../icons/IconDropdownArrow.vue":()=>Promise.resolve().then(()=>Nc),"../../icons/IconEdit.vue":()=>Promise.resolve().then(()=>lo),"../../icons/IconEditLinePath.vue":()=>Promise.resolve().then(()=>Ic),"../../icons/IconEllipse.vue":()=>Promise.resolve().then(()=>u_),"../../icons/IconExcelThumbnail.vue":()=>Promise.resolve().then(()=>Dc),"../../icons/IconEye.vue":()=>Promise.resolve().then(()=>_o),"../../icons/IconFacebook.vue":()=>Promise.resolve().then(()=>xc),"../../icons/IconFigma.vue":()=>Promise.resolve().then(()=>wc),"../../icons/IconFile.vue":()=>Promise.resolve().then(()=>go),"../../icons/IconFileSystem.vue":()=>Promise.resolve().then(()=>kc),"../../icons/IconFileUpload.vue":()=>Promise.resolve().then(()=>Lc),"../../icons/IconFilter.vue":()=>Promise.resolve().then(()=>So),"../../icons/IconFolder.vue":()=>Promise.resolve().then(()=>bo),"../../icons/IconFreddyHub.vue":()=>Promise.resolve().then(()=>Bc),"../../icons/IconFreddyHubLogo.vue":()=>Promise.resolve().then(()=>Uc),"../../icons/IconFreddyHubNewLogo.vue":()=>Promise.resolve().then(()=>Vc),"../../icons/IconFreddyHubTitle.vue":()=>Promise.resolve().then(()=>Hc),"../../icons/IconFreddySmall.vue":()=>Promise.resolve().then(()=>zc),"../../icons/IconGlobExpand.vue":()=>Promise.resolve().then(()=>$c),"../../icons/IconGlobe.vue":()=>Promise.resolve().then(()=>Kc),"../../icons/IconGoogle.vue":()=>Promise.resolve().then(()=>Qc),"../../icons/IconHollowCircle.vue":()=>Promise.resolve().then(()=>jc),"../../icons/IconHome.vue":()=>Promise.resolve().then(()=>vo),"../../icons/IconInfoRounded.vue":()=>Promise.resolve().then(()=>Jc),"../../icons/IconInvalidInvoice.vue":()=>Promise.resolve().then(()=>td),"../../icons/IconInvoice.vue":()=>Promise.resolve().then(()=>od),"../../icons/IconInvoiceSwitch.vue":()=>Promise.resolve().then(()=>ad),"../../icons/IconLapTableBottom.vue":()=>Promise.resolve().then(()=>sd),"../../icons/IconLense.vue":()=>Promise.resolve().then(()=>cd),"../../icons/IconLightCross.vue":()=>Promise.resolve().then(()=>dd),"../../icons/IconLink04.vue":()=>Promise.resolve().then(()=>yo),"../../icons/IconLoadingError.vue":()=>Promise.resolve().then(()=>_d),"../../icons/IconLoadingOrg.vue":()=>Promise.resolve().then(()=>md),"../../icons/IconLocationWithCircleIn.vue":()=>Promise.resolve().then(()=>fd),"../../icons/IconLock.vue":()=>Promise.resolve().then(()=>Ao),"../../icons/IconMarketPlace.vue":()=>Promise.resolve().then(()=>Sd),"../../icons/IconMaximize.vue":()=>Promise.resolve().then(()=>bd),"../../icons/IconMicrophone.vue":()=>Promise.resolve().then(()=>Cd),"../../icons/IconMutedMicrophone.vue":()=>Promise.resolve().then(()=>yd),"../../icons/IconNewNotification.vue":()=>Promise.resolve().then(()=>Ad),"../../icons/IconNewTab.vue":()=>Promise.resolve().then(()=>Nd),"../../icons/IconNotification.vue":()=>Promise.resolve().then(()=>Rd),"../../icons/IconOpenBook.vue":()=>Promise.resolve().then(()=>Dd),"../../icons/IconPaperAirPlane.vue":()=>Promise.resolve().then(()=>xd),"../../icons/IconPauseCircle.vue":()=>Promise.resolve().then(()=>kd),"../../icons/IconPdfThumbnail.vue":()=>Promise.resolve().then(()=>Ld),"../../icons/IconPenEdit.vue":()=>Promise.resolve().then(()=>Bd),"../../icons/IconPencil.vue":()=>Promise.resolve().then(()=>Ud),"../../icons/IconPeopleHub.vue":()=>Promise.resolve().then(()=>Vd),"../../icons/IconPersonCircle.vue":()=>Promise.resolve().then(()=>Hd),"../../icons/IconPits.vue":()=>Promise.resolve().then(()=>qd),"../../icons/IconPlay.vue":()=>Promise.resolve().then(()=>Wd),"../../icons/IconPlus.vue":()=>Promise.resolve().then(()=>Do),"../../icons/IconPolygonDown.vue":()=>Promise.resolve().then(()=>Qd),"../../icons/IconPresentation.vue":()=>Promise.resolve().then(()=>jd),"../../icons/IconProgressBase.vue":()=>Promise.resolve().then(()=>Jd),"../../icons/IconProgressComplete.vue":()=>Promise.resolve().then(()=>tu),"../../icons/IconProgressGoing.vue":()=>Promise.resolve().then(()=>ou),"../../icons/IconPurpose.vue":()=>Promise.resolve().then(()=>au),"../../icons/IconPurseCircleFill.vue":()=>Promise.resolve().then(()=>su),"../../icons/IconQuestion.vue":()=>Promise.resolve().then(()=>lu),"../../icons/IconRadio.vue":()=>Promise.resolve().then(()=>du),"../../icons/IconRadioFill.vue":()=>Promise.resolve().then(()=>_u),"../../icons/IconRefresh.vue":()=>Promise.resolve().then(()=>wo),"../../icons/IconRevertedTraingle.vue":()=>Promise.resolve().then(()=>pu),"../../icons/IconRobotScreen.vue":()=>Promise.resolve().then(()=>mu),"../../icons/IconRoundTick.vue":()=>Promise.resolve().then(()=>fu),"../../icons/IconSearch.vue":()=>Promise.resolve().then(()=>Mo),"../../icons/IconSearchOptimised.vue":()=>Promise.resolve().then(()=>Su),"../../icons/IconSectionHide.vue":()=>Promise.resolve().then(()=>bu),"../../icons/IconSend.vue":()=>Promise.resolve().then(()=>Bo),"../../icons/IconSettings.vue":()=>Promise.resolve().then(()=>Fo),"../../icons/IconSettingsBold.vue":()=>Promise.resolve().then(()=>vu),"../../icons/IconSize.vue":()=>Promise.resolve().then(()=>Tu),"../../icons/IconSliderKnobs.vue":()=>Promise.resolve().then(()=>Nu),"../../icons/IconSortIdle.vue":()=>Promise.resolve().then(()=>Ru),"../../icons/IconSparkle.vue":()=>Promise.resolve().then(()=>Ou),"../../icons/IconSpotlio.vue":()=>Promise.resolve().then(()=>xu),"../../icons/IconStar.vue":()=>Promise.resolve().then(()=>Go),"../../icons/IconStatistics.vue":()=>Promise.resolve().then(()=>ku),"../../icons/IconStopChat.vue":()=>Promise.resolve().then(()=>Lu),"../../icons/IconStreamLineHub.vue":()=>Promise.resolve().then(()=>Bu),"../../icons/IconStreamLineHubNewLogo.vue":()=>Promise.resolve().then(()=>Uu),"../../icons/IconSun.vue":()=>Promise.resolve().then(()=>Vu),"../../icons/IconSwap.vue":()=>Promise.resolve().then(()=>Hu),"../../icons/IconText.vue":()=>Promise.resolve().then(()=>Yo),"../../icons/IconTextThumbnail.vue":()=>Promise.resolve().then(()=>qu),"../../icons/IconThinDocument.vue":()=>Promise.resolve().then(()=>Wu),"../../icons/IconThinFile.vue":()=>Promise.resolve().then(()=>Qu),"../../icons/IconThumbsDown.vue":()=>Promise.resolve().then(()=>Zu),"../../icons/IconTick.vue":()=>Promise.resolve().then(()=>zo),"../../icons/IconUser.vue":()=>Promise.resolve().then(()=>qo),"../../icons/IconVerticalDots.vue":()=>Promise.resolve().then(()=>Ju),"../../icons/IconVideoCamera.vue":()=>Promise.resolve().then(()=>t_),"../../icons/IconWarningOctal.vue":()=>Promise.resolve().then(()=>o_),"../../icons/IconX.vue":()=>Promise.resolve().then(()=>r_),"../../icons/IconZip.vue":()=>Promise.resolve().then(()=>i_)}),`../../icons/${S}.vue`,4).catch(()=>({template:"<div></div>"}))):null:null,u=e.computed(()=>d(r.leadingIcon)),_=e.computed(()=>d(r.trailingIcon)),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":!!u.value,"freddy-plugins-input-field--with-trailing":!!_.value})),g=S=>{const C=S.target;s.value=C.value,a("update:modelValue",C.value),a("input",C.value)},p=S=>{a("focus",S)},b=S=>{a("blur",S)},v=S=>{a("keydown",S)},T=S=>{a("leading-icon-click",S)},E=S=>{a("trailing-icon-click",S)},h=()=>{var S;(S=i.value)==null||S.focus()};return e.watch(()=>r.modelValue,S=>{S!==void 0&&(s.value=S)}),t({focus:h,inputRef:i}),(S,C)=>(e.openBlock(),e.createBlock(Jo,e.mergeProps(c.value,{onFocus:p,onBlur:b}),{default:e.withCtx(()=>{var f;return[u.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.value),{key:0,class:e.normalizeClass(["freddy-plugins-input-leading-icon",`freddy-plugins-input-leading-icon--${S.colorStyle}`]),onClick:T},null,8,["class"])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:(f=l.value)==null?void 0:f.inputId,ref_key:"inputRef",ref:i,"onUpdate:modelValue":C[0]||(C[0]=A=>s.value=A),type:S.inputType,placeholder:S.placeholder,disabled:S.disabled,readonly:S.readonly,class:e.normalizeClass(["freddy-plugins-input-field",m.value]),onInput:g,onFocus:p,onBlur:b,onKeydown:v},null,42,Rw),[[e.vModelDynamic,s.value]]),S.trailingIcon==="IconQuestion"&&S.tooltipText?(e.openBlock(),e.createBlock(bt,{key:1,text:S.tooltipText,placement:"top"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_.value),{class:e.normalizeClass(["freddy-plugins-input-trailing-icon",`freddy-plugins-input-trailing-icon--${S.colorStyle}`])},null,8,["class"]))]),_:1},8,["text"])):_.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_.value),{key:2,class:e.normalizeClass(["freddy-plugins-input-trailing-icon",`freddy-plugins-input-trailing-icon--${S.colorStyle}`]),onClick:E},null,8,["class"])):e.createCommentVNode("",!0)]}),_:1},16))}}),a2=R(Ow,[["__scopeId","data-v-e865b202"]]),Dw={class:"freddy-plugins-figma-dropdown-text"},xw=["onClick"],ww={class:"freddy-plugins-country-flag"},kw={class:"freddy-plugins-country-name"},Mw={class:"freddy-plugins-country-dial-code"},Lw=["id","placeholder","disabled","readonly"],Pw={key:0,class:"freddy-plugins-figma-help-icon"},Bw=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(n,{expose:t,emit:o}){const r=n,a=o,i=e.ref(null),l=e.ref(null),s=e.ref(r.phoneNumber||""),c=e.ref(!1),d=e.ref(r.countryCode||"US"),u=[{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"}],_=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})),m=e.computed(()=>r.countryOptions||u),g=e.computed(()=>m.value.find(C=>C.code===d.value)||m.value[0]),p=()=>{r.disabled||(c.value=!c.value)},b=C=>{d.value=C.code,a("update:countryCode",C.code),a("country-change",C);const f=s.value.replace(/^\+\d+\s*/,""),A=`${C.dialCode} ${f}`.trim();s.value=A,a("update:phoneNumber",A),a("update:modelValue",A),c.value=!1},v=C=>{const f=C.target;s.value=f.value;const A=`${g.value.dialCode} ${f.value}`;a("update:modelValue",A),a("update:phoneNumber",f.value),a("input",A)},T=C=>{a("focus",C)},E=C=>{a("blur",C)},h=()=>{var C;(C=i.value)==null||C.focus()},S=C=>{C.target.closest(".freddy-plugins-input-field-container")||(c.value=!1)};return e.watch(()=>r.countryCode,C=>{C&&C!==d.value&&(d.value=C)},{immediate:!0}),e.watch(()=>r.phoneNumber,C=>{C!==void 0&&(s.value=C)}),e.onMounted(()=>{document.addEventListener("click",S)}),e.onUnmounted(()=>{document.removeEventListener("click",S)}),t({focus:h,inputRef:i}),(C,f)=>(e.openBlock(),e.createBlock(Jo,e.mergeProps(_.value,{onFocus:T,onBlur:E}),{default:e.withCtx(()=>{var A;return[e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-figma-dropdown",`freddy-plugins-figma-dropdown--${C.colorStyle}`]),onClick:p},[e.createElementVNode("span",Dw,e.toDisplayString(g.value.code),1),e.createVNode(e.unref(Et),{class:"freddy-plugins-figma-dropdown-icon"})],2),c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["freddy-plugins-country-options-dropdown",`freddy-plugins-country-options-dropdown--${C.colorStyle}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,y=>(e.openBlock(),e.createElementBlock("div",{key:y.code,class:e.normalizeClass(["freddy-plugins-country-option",`freddy-plugins-country-option--${C.colorStyle}`]),onClick:N=>b(y)},[e.createElementVNode("span",ww,e.toDisplayString(y.flag),1),e.createElementVNode("span",kw,e.toDisplayString(y.name),1),e.createElementVNode("span",Mw,e.toDisplayString(y.dialCode),1)],10,xw))),128))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-figma-text-input",`freddy-plugins-figma-text-input--${C.colorStyle}`])},[e.withDirectives(e.createElementVNode("input",{id:(A=l.value)==null?void 0:A.inputId,ref_key:"inputRef",ref:i,"onUpdate:modelValue":f[0]||(f[0]=y=>s.value=y),type:"tel",placeholder:C.placeholder,disabled:C.disabled,readonly:C.readonly,class:"freddy-plugins-figma-phone-input",onInput:v,onFocus:T,onBlur:E},null,40,Lw),[[e.vModelText,s.value]]),C.trailingIcon==="IconQuestion"?(e.openBlock(),e.createElementBlock("div",Pw,[C.tooltipText?(e.openBlock(),e.createBlock(bt,{key:0,text:C.tooltipText,placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(At),{class:"freddy-plugins-figma-help-icon-svg"})]),_:1},8,["text"])):(e.openBlock(),e.createBlock(e.unref(At),{key:1,class:"freddy-plugins-figma-help-icon-svg"}))])):e.createCommentVNode("",!0)],2)]}),_:1},16))}}),i2=R(Bw,[["__scopeId","data-v-20d005c2"]]),Fw=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(n,{emit:t}){const o=n,r=t,a=e.computed(()=>o.variant||o.type||"default"),i=e.computed(()=>({size:o.size,colorStyle:o.colorStyle,state:o.state,destructive:o.destructive,required:o.required,label:o.label,hintText:o.hintText,placeholder:o.placeholder,countryCode:o.countryCode,phoneNumber:o.phoneNumber,countryOptions:o.countryOptions,trailingIcon:o.trailingIcon,tooltipText:o.tooltipText,disabled:o.disabled,readonly:o.readonly})),l=e.computed(()=>({size:o.size,colorStyle:o.colorStyle,state:o.state,destructive:o.destructive,required:o.required,label:o.label,hintText:o.hintText,placeholder:o.placeholder,cardNumber:o.cardNumber,cardType:o.cardType,maskInput:o.maskInput,showCardIcon:o.showCardIcon,trailingIcon:o.trailingIcon,disabled:o.disabled,readonly:o.readonly})),s=e.computed(()=>({size:o.size,colorStyle:o.colorStyle,state:o.state,destructive:o.destructive,required:o.required,label:o.label,hintText:o.hintText,placeholder:o.placeholder,inputType:o.inputType,modelValue:o.modelValue,leadingIcon:o.leadingIcon,trailingIcon:o.trailingIcon,tooltipText:o.tooltipText,disabled:o.disabled,readonly:o.readonly})),c=S=>{r("update:modelValue",S)},d=S=>{r("input",S)},u=S=>{r("focus",S)},_=S=>{r("blur",S)},m=S=>{r("keydown",S)},g=S=>{r("leading-icon-click",S)},p=S=>{r("trailing-icon-click",S)},b=S=>{r("update:countryCode",S)},v=S=>{r("update:phoneNumber",S)},T=S=>{r("country-change",S)},E=S=>{r("update:cardNumber",S)},h=S=>{r("card-type-detected",S)};return(S,C)=>a.value==="phone"?(e.openBlock(),e.createBlock(i2,e.mergeProps({key:0},i.value,{"onUpdate:modelValue":c,"onUpdate:countryCode":b,"onUpdate:phoneNumber":v,onCountryChange:T,onInput:d,onFocus:u,onBlur:_}),null,16)):a.value==="card"?(e.openBlock(),e.createBlock(r2,e.mergeProps({key:1},l.value,{"onUpdate:modelValue":c,"onUpdate:cardNumber":E,onCardTypeDetected:h,onInput:d,onFocus:u,onBlur:_,onTrailingIconClick:p}),null,16)):(e.openBlock(),e.createBlock(a2,e.mergeProps({key:2},s.value,{"onUpdate:modelValue":c,onInput:d,onFocus:u,onBlur:_,onKeydown:m,onLeadingIconClick:g,onTrailingIconClick:p}),null,16))}}),Lt=R(Fw,[["__scopeId","data-v-5a761e6c"]]),Uw={name:"ModalBox",props:{isVisible:{type:Boolean,default:!0},largeModel:{type:Boolean,default:!0}},methods:{closeModal(){this.$emit("close")}}},Gw={key:0,class:"fixed z-[9998] top-0 left-0 w-full h-full bg-modalBackgroundBlur flex justify-center items-center"},Vw={class:"flex justify-center items-center"},Yw={class:"freddy-plugins-modal-header"},Hw={class:"freddy-plugins-modal-body"},zw={class:"freddy-plugins-modal-footer"};function qw(n,t,o,r,a,i){return e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[o.isVisible?(e.openBlock(),e.createElementBlock("div",Gw,[e.createElementVNode("div",Vw,[e.createElementVNode("div",{class:e.normalizeClass({"p-8 bg-background rounded-[2.5rem] overflow-hidden text-white":o.largeModel,"freddy-plugins-modal-container-large":o.largeModel})},[e.createElementVNode("div",Yw,[e.renderSlot(n.$slots,"header")]),e.createElementVNode("div",Hw,[e.renderSlot(n.$slots,"body")]),e.createElementVNode("div",zw,[e.renderSlot(n.$slots,"footer")])],2)])])):e.createCommentVNode("",!0)]),_:3})}const s2=R(Uw,[["render",qw]]),$w=e.defineComponent({__name:"InstructionsModal",props:{isVisible:{type:Boolean,required:!0}},setup(n){return(t,o)=>(e.openBlock(),e.createBlock(s2,{isVisible:n.isVisible},{header:e.withCtx(()=>[...o[0]||(o[0]=[e.createElementVNode("h2",null,"Instructions",-1)])]),body:e.withCtx(()=>[...o[1]||(o[1]=[e.createElementVNode("p",null,"Instructions",-1)])]),_:1},8,["isVisible"]))}}),Ww=["value","placeholder"],Kw=e.defineComponent({__name:"InstructiontextArea",props:{inputValue:{},placeholder:{},height:{}},emits:["update:inputValue"],setup(n,{emit:t}){const o=n,r=t,a=e.computed(()=>o.height||"40px"),i=l=>{const s=l.target;r("update:inputValue",s.value)};return(l,s)=>(e.openBlock(),e.createElementBlock("input",{type:"text",value:l.inputValue,placeholder:l.placeholder,style:e.normalizeStyle({width:"100%",height:a.value}),onInput:i,class:"instruction-text-input","aria-label":"Instruction input"},null,44,Ww))}}),Qw=R(Kw,[["__scopeId","data-v-d4000e78"]]),D_=e.defineComponent({__name:"AuthContainer",props:{brand:{default:"contentplate"}},setup(n){const{currentProject:t,currentColorMode:o}=me(),r=n,a=e.computed(()=>r.brand);return(i,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["auth-container",`auth-container--${a.value}`])},[e.renderSlot(i.$slots,"default")],2))}}),x_=e.defineComponent({__name:"AuthCard",props:{brand:{default:"contentplate"}},setup(n){const{currentProject:t,currentColorMode:o}=me(),r=n,a=e.computed(()=>r.brand);return(i,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["auth-card",`auth-card--${a.value}`])},[e.renderSlot(i.$slots,"default")],2))}}),eg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjYwIiB2aWV3Qm94PSIwIDAgMjAwIDYwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDwhLS0gUmVmZXJlbmNlIHRoZSBzbWFsbCBsb2dvIGFzIGEgY29tcG9uZW50IC0tPgogIDxkZWZzPgogICAgPGcgaWQ9ImNvbnRlbnRwbGF0ZS1pY29uIj4KICAgICAgPHJlY3QgeD0iMTAiIHk9IjEwIiB3aWR0aD0iODAiIGhlaWdodD0iODAiIHJ4PSIxNSIgZmlsbD0iIzQ1MTZjYiIvPgogICAgICA8cGF0aCBkPSJNMzAgMzVoNDB2MTBIMzB6TTMwIDU1aDQwdjEwSDMweiIgZmlsbD0iI2ZmZiIvPgogICAgICA8Y2lyY2xlIGN4PSI3NSIgY3k9Ijc1IiByPSI4IiBmaWxsPSIjMDBmZjI2Ii8+CiAgICA8L2c+CiAgPC9kZWZzPgogIAogIDwhLS0gVXNlIHRoZSBpY29uIGNvbXBvbmVudCAtIGNlbnRlcmVkIHZlcnRpY2FsbHkgLS0+CiAgPHVzZSBocmVmPSIjY29udGVudHBsYXRlLWljb24iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwLCAxMCkgc2NhbGUoMC41KSIvPgogIAogIDwhLS0gVGV4dCAiQ29udGVudHBsYXRlIiAtIHByb3Blcmx5IGNlbnRlcmVkIHZlcnRpY2FsbHkgLS0+CiAgPHRleHQgeD0iNzAiIHk9IjMyIiBmb250LWZhbWlseT0iSW50ZXIsIC1hcHBsZS1zeXN0ZW0sIEJsaW5rTWFjU3lzdGVtRm9udCwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIyNCIgZm9udC13ZWlnaHQ9IjcwMCIgZmlsbD0iIzQ1MTZjYiI+Q29udGVudDwvdGV4dD4KICA8dGV4dCB4PSI3MCIgeT0iNTIiIGZvbnQtZmFtaWx5PSJJbnRlciwgLWFwcGxlLXN5c3RlbSwgQmxpbmtNYWNTeXN0ZW1Gb250LCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjI0IiBmb250LXdlaWdodD0iNzAwIiBmaWxsPSIjNDUxNmNiIj5wbGF0ZTwvdGV4dD4KPC9zdmc+IA==",Zw="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjYwIiB2aWV3Qm94PSIwIDAgMjAwIDYwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDwhLS0gRnJlZGR5IGljb24gLSByb2JvdCBoZWFkIC0tPgogIDxyZWN0IHg9IjEwIiB5PSIxNSIgd2lkdGg9IjQwIiBoZWlnaHQ9IjMwIiByeD0iOCIgZmlsbD0iIzBmMTcyYSIgc3Ryb2tlPSIjNDc1NTY5IiBzdHJva2Utd2lkdGg9IjIiLz4KICA8Y2lyY2xlIGN4PSIyNSIgY3k9IjI1IiByPSIzIiBmaWxsPSIjN0JBOEVGIi8+CiAgPGNpcmNsZSBjeD0iMzUiIGN5PSIyNSIgcj0iMyIgZmlsbD0iIzdCQThFRiIvPgogIDxyZWN0IHg9IjI1IiB5PSIzMiIgd2lkdGg9IjEwIiBoZWlnaHQ9IjIiIHJ4PSIxIiBmaWxsPSIjN0JBOEVGIi8+CiAgPHJlY3QgeD0iMTUiIHk9IjEwIiB3aWR0aD0iMzAiIGhlaWdodD0iOCIgcng9IjQiIGZpbGw9IiM0NzU1NjkiLz4KICAKICA8IS0tIFRleHQgIkZyZWRkeSIgLS0+CiAgPHRleHQgeD0iNzAiIHk9IjI1IiBmb250LWZhbWlseT0iSW50ZXIsIC1hcHBsZS1zeXN0ZW0sIEJsaW5rTWFjU3lzdGVtRm9udCwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIyNCIgZm9udC13ZWlnaHQ9IjcwMCIgZmlsbD0iIzFGMjkzNyI+RnJlZDwvdGV4dD4KICA8dGV4dCB4PSI3MCIgeT0iNDUiIGZvbnQtZmFtaWx5PSJJbnRlciwgLWFwcGxlLXN5c3RlbSwgQmxpbmtNYWNTeXN0ZW1Gb250LCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjI0IiBmb250LXdlaWdodD0iNzAwIiBmaWxsPSIjN0JBOEVGIj5keTwvdGV4dD4KICAKICA8IS0tIFN1YnRsZSB0YWdsaW5lIC0tPgogIDx0ZXh0IHg9IjcwIiB5PSI1NSIgZm9udC1mYW1pbHk9IkludGVyLCAtYXBwbGUtc3lzdGVtLCBCbGlua01hY1N5c3RlbUZvbnQsIHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTAiIGZvbnQtd2VpZ2h0PSI0MDAiIGZpbGw9IiM2QjcyODAiPkFJIEFzc2lzdGFudDwvdGV4dD4KPC9zdmc+IA==",jw="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjYwIiB2aWV3Qm94PSIwIDAgMjAwIDYwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDwhLS0gQmFja2dyb3VuZCBjaXJjbGUgZm9yIHRoZSBpY29uIC0gY2VudGVyZWQgdmVydGljYWxseSAtLT4KICA8Y2lyY2xlIGN4PSIzMCIgY3k9IjMwIiByPSIyMCIgZmlsbD0iIzYzNjZGMSIgc3Ryb2tlPSIjNEY0NkU1IiBzdHJva2Utd2lkdGg9IjIiLz4KICAKICA8IS0tIEZsb3cgYXJyb3dzIHJlcHJlc2VudGluZyB3b3JrZmxvdyAtLT4KICA8cGF0aCBkPSJNMTggMjUgTDI1IDI1IEwyNSAyMiBMMzAgMzAgTDI1IDM4IEwyNSAzNSBMMTggMzUgWiIgZmlsbD0id2hpdGUiLz4KICA8cGF0aCBkPSJNMjUgMTggTDMyIDE4IEwzMiAxNSBMMzcgMjMgTDMyIDMwIEwzMiAyNyBMMjUgMjcgWiIgZmlsbD0id2hpdGUiIG9wYWNpdHk9IjAuOCIvPgogIDxwYXRoIGQ9Ik0zMiAzMiBMMzkgMzIgTDM5IDI5IEw0NCAzNyBMMzkgNDQgTDM5IDQxIEwzMiA0MSBaIiBmaWxsPSJ3aGl0ZSIgb3BhY2l0eT0iMC42Ii8+CiAgCiAgPCEtLSBUZXh0ICJGbG93cGxhdGUiIC0gcHJvcGVybHkgY2VudGVyZWQgdmVydGljYWxseSAtLT4KICA8dGV4dCB4PSI3MCIgeT0iMjgiIGZvbnQtZmFtaWx5PSJJbnRlciwgLWFwcGxlLXN5c3RlbSwgQmxpbmtNYWNTeXN0ZW1Gb250LCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjI0IiBmb250LXdlaWdodD0iNzAwIiBmaWxsPSIjMUYyOTM3Ij5GbG93PC90ZXh0PgogIDx0ZXh0IHg9IjcwIiB5PSI0OCIgZm9udC1mYW1pbHk9IkludGVyLCAtYXBwbGUtc3lzdGVtLCBCbGlua01hY1N5c3RlbUZvbnQsIHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMjQiIGZvbnQtd2VpZ2h0PSI3MDAiIGZpbGw9IiM2MzY2RjEiPnBsYXRlPC90ZXh0Pgo8L3N2Zz4g",Xw=["src","alt"],Yn=e.defineComponent({__name:"Logo",props:{brand:{default:"contentplate"},size:{default:"md"},showTitle:{type:Boolean,default:!0}},setup(n){const t=n,o=e.computed(()=>{switch(t.brand){case"contentplate":return eg;case"flowplate":return jw;case"freddy":return Zw;default:return eg}}),r=e.computed(()=>{switch(t.brand){case"contentplate":return"Contentplate";case"flowplate":return"Flowplate";case"freddy":return"Freddy";default:return"Contentplate"}}),a=e.computed(()=>[`logo-container--${t.size}`,`logo-container--${t.brand}`,{"logo-container--brand-no-title":(t.brand==="flowplate"||t.brand==="contentplate")&&!t.showTitle}]),i=e.computed(()=>[`logo-image--${t.size}`,{"logo-image--brand-no-title":(t.brand==="flowplate"||t.brand==="contentplate")&&!t.showTitle}]);return(l,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["logo-container",a.value])},[e.createElementVNode("img",{src:o.value,alt:`${l.brand} Logo`,class:e.normalizeClass(["logo-image",i.value])},null,10,Xw),l.showTitle?(e.openBlock(),e.createElementBlock("h1",{key:0,class:e.normalizeClass(["logo-title",`logo-title--${l.size}`])},e.toDisplayString(r.value),3)):e.createCommentVNode("",!0)],2))}}),Jw={class:"form-group"},ek={class:"form-group"},tk={class:"form-actions"},nk={key:0,class:"error-message"},ok={class:"signup-link"},l2=e.defineComponent({__name:"LoginForm",props:{loading:{type:Boolean,default:!1},error:{default:""}},emits:["submit","switch-to-register"],setup(n,{emit:t}){const o=n,{currentProject:r,currentColorMode:a}=me(),i=e.computed(()=>{var p;const g=((p=r.value)==null?void 0:p.name)||"Freddy Public";return g.includes("Contentplate")?"contentplate":g.includes("Flowplate")?"flowplate":(g.includes("Freddy"),"freddy")}),l=e.computed(()=>o.loading),s=e.computed(()=>o.error),c=t,d=e.ref(""),u=e.ref(""),_=e.computed(()=>d.value.trim()!==""&&u.value.length>=8),m=()=>{_.value&&c("submit",d.value,u.value)};return(g,p)=>{const b=e.resolveDirective("motion");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["login-form-container",`login-form-container--${i.value}`])},[e.createVNode(Yn,{brand:i.value,size:"lg","show-title":i.value==="freddy"},null,8,["brand","show-title"]),e.withDirectives((e.openBlock(),e.createElementBlock("form",{onSubmit:e.withModifiers(m,["prevent"]),class:"login-form"},[e.createElementVNode("div",Jw,[e.createVNode(e.unref(Lt),{modelValue:d.value,"onUpdate:modelValue":p[0]||(p[0]=v=>d.value=v),label:"Email",placeholder:"Enter your email","input-type":"email","color-style":i.value==="contentplate"?"contentplate":"freddy",required:"",disabled:l.value},null,8,["modelValue","color-style","disabled"])]),e.createElementVNode("div",ek,[e.createVNode(e.unref(Lt),{modelValue:u.value,"onUpdate:modelValue":p[1]||(p[1]=v=>u.value=v),label:"Password",placeholder:"Enter your password","input-type":"password","color-style":i.value==="contentplate"?"contentplate":"freddy",required:"",disabled:l.value},null,8,["modelValue","color-style","disabled"])]),e.createElementVNode("div",tk,[e.createVNode(ht,{type:"submit",label:"Login",hierarchy:"primary",size:"lg",loading:l.value,disabled:!_.value||l.value,class:e.normalizeClass(`login-button login-button--${i.value}`)},null,8,["loading","disabled","class"])]),s.value?(e.openBlock(),e.createElementBlock("p",nk,e.toDisplayString(s.value),1)):e.createCommentVNode("",!0),e.createElementVNode("div",ok,[p[3]||(p[3]=e.createTextVNode(" Don't have an account? ",-1)),e.createElementVNode("button",{type:"button",class:"link-button",onClick:p[2]||(p[2]=v=>g.$emit("switch-to-register"))}," Sign up ")])],32)),[[b,"slide-visible"]])],2)}}}),c2=e.defineComponent({__name:"LoginPage",props:{initialEmail:{default:""}},emits:["login-success","switch-to-register"],setup(n,{emit:t}){const{currentProject:o,initializeTheme:r}=me();e.onMounted(async()=>{await r()});const a=e.computed(()=>{var u;const d=((u=o.value)==null?void 0:u.name)||"Freddy Public";return d.includes("Contentplate")?"contentplate":d.includes("Flowplate")?"flowplate":(d.includes("Freddy"),"freddy")}),i=t,l=e.ref(!1),s=e.ref(""),c=async(d,u)=>{l.value=!0,s.value="";try{if(a.value==="flowplate")if(await O_.login(d,u))i("login-success",d);else throw new Error("Login failed");else if(await new Promise(_=>setTimeout(_,1e3)),d&&u)i("login-success",d);else throw new Error("Please enter valid email and password")}catch(_){s.value=_.message||"Login failed. Please try again."}finally{l.value=!1}};return(d,u)=>(e.openBlock(),e.createBlock(D_,{brand:a.value},{default:e.withCtx(()=>[e.createVNode(x_,{brand:a.value},{default:e.withCtx(()=>[e.createVNode(l2,{brand:a.value,loading:l.value,error:s.value,onSubmit:c,onSwitchToRegister:u[0]||(u[0]=_=>d.$emit("switch-to-register"))},null,8,["brand","loading","error"])]),_:1},8,["brand"])]),_:1},8,["brand"]))}}),rk={class:"form-group"},ak={class:"form-group"},ik={class:"form-group"},sk={class:"form-actions"},lk={key:0,class:"error-message"},ck={class:"login-link"},d2=e.defineComponent({__name:"RegisterForm",props:{loading:{type:Boolean,default:!1},error:{default:""}},emits:["submit","switch-to-login"],setup(n,{emit:t}){const{currentProject:o,currentColorMode:r}=me(),a=n,i=e.computed(()=>{var b;const p=((b=o.value)==null?void 0:b.name)||"Freddy Public";return p.includes("Contentplate")?"contentplate":p.includes("Flowplate")?"flowplate":(p.includes("Freddy"),"freddy")}),l=a.loading,s=a.error,c=t,d=e.ref(""),u=e.ref(""),_=e.ref(""),m=e.computed(()=>d.value.trim()!==""&&u.value.trim()!==""&&_.value.length>=8),g=()=>{m.value&&c("submit",d.value,u.value,_.value)};return(p,b)=>{const v=e.resolveDirective("motion");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["register-form-container",`register-form-container--${i.value}`])},[e.createVNode(Yn,{brand:i.value,size:"lg","show-title":i.value==="freddy"},null,8,["brand","show-title"]),b[5]||(b[5]=e.createElementVNode("h2",{class:"form-title"},"Create Account",-1)),e.withDirectives((e.openBlock(),e.createElementBlock("form",{onSubmit:e.withModifiers(g,["prevent"]),class:"register-form"},[e.createElementVNode("div",rk,[e.createVNode(e.unref(Lt),{modelValue:d.value,"onUpdate:modelValue":b[0]||(b[0]=T=>d.value=T),label:"Full Name",placeholder:"Enter your full name","input-type":"text","color-style":i.value==="contentplate"?"contentplate":"freddy",required:"",disabled:e.unref(l)},null,8,["modelValue","color-style","disabled"])]),e.createElementVNode("div",ak,[e.createVNode(e.unref(Lt),{modelValue:u.value,"onUpdate:modelValue":b[1]||(b[1]=T=>u.value=T),label:"Email",placeholder:"Enter your email","input-type":"email","color-style":i.value==="contentplate"?"contentplate":"freddy",required:"",disabled:e.unref(l)},null,8,["modelValue","color-style","disabled"])]),e.createElementVNode("div",ik,[e.createVNode(e.unref(Lt),{modelValue:_.value,"onUpdate:modelValue":b[2]||(b[2]=T=>_.value=T),label:"Password",placeholder:"Enter your password","input-type":"password","color-style":i.value==="contentplate"?"contentplate":"freddy",required:"",disabled:e.unref(l)},null,8,["modelValue","color-style","disabled"])]),e.createElementVNode("div",sk,[e.createVNode(ht,{type:"submit",label:"Create Account",hierarchy:"primary",size:"lg",loading:e.unref(l),disabled:!m.value||e.unref(l),class:e.normalizeClass(`register-button register-button--${i.value}`)},null,8,["loading","disabled","class"])]),e.unref(s)?(e.openBlock(),e.createElementBlock("p",lk,e.toDisplayString(e.unref(s)),1)):e.createCommentVNode("",!0),e.createElementVNode("div",ck,[b[4]||(b[4]=e.createTextVNode(" Already have an account? ",-1)),e.createElementVNode("button",{type:"button",class:"link-button",onClick:b[3]||(b[3]=T=>p.$emit("switch-to-login"))}," Login ")])],32)),[[v,"slide-visible"]])],2)}}}),u2=e.defineComponent({__name:"RegisterPage",props:{initialEmail:{default:""}},emits:["register-success","switch-to-login"],setup(n,{emit:t}){const{currentProject:o,initializeTheme:r}=me();e.onMounted(async()=>{await r()});const a=e.computed(()=>{var u;const d=((u=o.value)==null?void 0:u.name)||"Freddy Public";return d.includes("Contentplate")?"contentplate":d.includes("Flowplate")?"flowplate":(d.includes("Freddy"),"freddy")}),i=t,l=e.ref(!1),s=e.ref(""),c=async(d,u,_)=>{l.value=!0,s.value="";try{if(a.value==="flowplate")if(await O_.register(u,d.split(" ")[0],d.split(" ").slice(1).join(" "),_))i("register-success",u);else throw new Error("Registration failed");else if(await new Promise(m=>setTimeout(m,1500)),d&&u&&_)i("register-success",u);else throw new Error("Please enter valid registration information")}catch(m){s.value=m.message||"Registration failed. Please try again."}finally{l.value=!1}};return(d,u)=>(e.openBlock(),e.createBlock(D_,{brand:a.value},{default:e.withCtx(()=>[e.createVNode(x_,{brand:a.value},{default:e.withCtx(()=>[e.createVNode(d2,{brand:a.value,loading:l.value,error:s.value,onSubmit:c,onSwitchToLogin:u[0]||(u[0]=_=>d.$emit("switch-to-login"))},null,8,["brand","loading","error"])]),_:1},8,["brand"])]),_:1},8,["brand"]))}}),dk={key:0,class:"api-warning"},uk={class:"api-warning__content"},_k={class:"api-warning__text"},pk=e.defineComponent({__name:"AuthManager",props:{initialView:{default:"login"},initialEmail:{default:""}},emits:["login-success","register-success"],setup(n,{emit:t}){const o=n,{currentProject:r,initializeTheme:a}=me();e.onMounted(async()=>{await a()});const i=e.computed(()=>{var p;const g=((p=r.value)==null?void 0:p.name)||"Freddy Public";return g.includes("Contentplate")?"contentplate":g.includes("Flowplate")?"flowplate":(g.includes("Freddy"),"freddy")}),l=t,s=e.ref(o.initialView),c=e.ref(o.initialEmail),d=()=>{s.value="register"},u=()=>{s.value="login"},_=g=>{l("login-success",g)},m=g=>{l("register-success",g)};return(g,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["auth-manager",`auth-manager--${i.value}`])},[i.value!=="flowplate"?(e.openBlock(),e.createElementBlock("div",dk,[e.createElementVNode("div",uk,[p[1]||(p[1]=e.createElementVNode("div",{class:"api-warning__icon"},"⚠️",-1)),e.createElementVNode("div",_k,[p[0]||(p[0]=e.createElementVNode("h3",null,"API Integration Not Available",-1)),e.createElementVNode("p",null,"API interaction is not yet enabled for "+e.toDisplayString(i.value)+" brand. This is a demo interface.",1)])])])):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"auth-slide",mode:"out-in"},{default:e.withCtx(()=>[s.value==="login"?(e.openBlock(),e.createBlock(c2,{key:"login",brand:i.value,"initial-email":c.value,onLoginSuccess:_,onSwitchToRegister:d},null,8,["brand","initial-email"])):(e.openBlock(),e.createBlock(u2,{key:"register",brand:i.value,"initial-email":c.value,onRegisterSuccess:m,onSwitchToLogin:u},null,8,["brand","initial-email"]))]),_:1})],2))}}),mk={class:"freddy-plugins-modal-header"},gk={class:"freddy-plugins-modal-body"},fk=e.defineComponent({__name:"ModalOverlay",props:{modalTitle:{},headerClass:{},disableClickOutside:{type:Boolean}},emits:["close"],setup(n,{emit:t}){const{currentProject:o,currentColorMode:r}=me(),a=n,i=t,l=()=>{i("close")},s=()=>{a.disableClickOutside||l()};return(c,d)=>(e.openBlock(),e.createElementBlock("div",{role:"dialog","aria-modal":"true",class:"freddy-plugins-modal-overlay",onClick:s},[e.createElementVNode("div",{class:"freddy-plugins-modal-content",onClick:d[0]||(d[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("header",mk,[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(mn,{class:"freddy-plugins-modal-close-icon"})])]),e.createElementVNode("div",gk,[e.renderSlot(c.$slots,"content")])])]))}}),Ek=["placeholder","maxlength"],er=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(n,{emit:t}){const{currentProject:o,currentColorMode:r}=me(),a=e.useAttrs(),i=e.ref(null),l=e.ref(null),s=e.ref(null),c=t,d=()=>{var m;(m=l.value)==null||m.focus()},u=()=>{c("update:searchInput",i.value)},_=()=>{c("clear")};return(m,g)=>{var p;return e.openBlock(),e.createElementBlock("div",{ref_key:"dropdownRef",ref:s,class:e.normalizeClass(["freddy-search-wrapper",e.unref(a).class]),onClick:d},[e.createVNode(e.unref(fn),{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":g[0]||(g[0]=b=>i.value=b),onInput:u,placeholder:m.placeholder,maxlength:m.maxCharLimit},null,40,Ek),[[e.vModelText,i.value]]),m.showLoaderForSearch?(e.openBlock(),e.createBlock(m_,{key:0,class:"freddy-search-spinner"})):e.createCommentVNode("",!0),m.showCloseButton&&!m.showLoaderForSearch&&((p=i.value)!=null&&p.length)?(e.openBlock(),e.createBlock(Ye,{key:1,class:"freddy-search-close",onClick:_})):e.createCommentVNode("",!0)],2)}}}),Sk={class:"model-dropdown-selected-content"},bk=["src","alt"],hk={class:"model-dropdown-placeholder"},Ck={key:0,class:"model-dropdown-menu"},vk={key:0,class:"model-dropdown-search"},yk={class:"model-dropdown-options"},Tk=["onClick"],Ak=["src","alt"],Nk={class:"model-dropdown-option-value"},Ik={key:0,class:"model-dropdown-no-options"},Rk=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(n,{emit:t}){const o=n,r=t,a=e.ref(!1),i=e.ref(""),l=e.ref(null),s=e.computed(()=>!o.searchable||!i.value?o.options:o.options.filter(m=>m.value.toLowerCase().includes(i.value.toLowerCase()))),c=()=>{a.value=!a.value,a.value||(i.value="")},d=()=>{a.value=!1,i.value=""},u=m=>{l.value=m,r("select",m),d()},_=m=>{m.target.closest(".model-dropdown-wrapper")||d()};return e.watch(a,m=>{m?setTimeout(()=>{document.addEventListener("click",_)},0):document.removeEventListener("click",_)}),e.onUnmounted(()=>{document.removeEventListener("click",_)}),(m,g)=>{var p,b;return e.openBlock(),e.createElementBlock("div",{class:"model-dropdown-wrapper",onKeydown:e.withKeys(d,["esc"])},[e.createElementVNode("div",{class:e.normalizeClass(["model-dropdown-trigger",[`model-dropdown-trigger--${m.size}`,{"model-dropdown-trigger--open":a.value}]]),onClick:c},[e.createElementVNode("div",Sk,[(p=l.value)!=null&&p.imageSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:l.value.imageSrc,alt:l.value.value,class:"model-dropdown-selected-image"},null,8,bk)):e.createCommentVNode("",!0),e.createElementVNode("span",hk,e.toDisplayString(((b=l.value)==null?void 0:b.value)||m.modelPlaceholder),1)]),a.value?(e.openBlock(),e.createBlock(un,{key:1,class:"model-dropdown-chevron"})):(e.openBlock(),e.createBlock(Et,{key:0,class:"model-dropdown-chevron"}))],2),a.value?(e.openBlock(),e.createElementBlock("div",Ck,[m.searchable?(e.openBlock(),e.createElementBlock("div",vk,[e.createVNode(er,{modelValue:i.value,"onUpdate:modelValue":g[0]||(g[0]=v=>i.value=v),placeholder:m.searchPlaceholder,showCloseButton:!0},null,8,["modelValue","placeholder"])])):e.createCommentVNode("",!0),e.createElementVNode("ul",yk,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,v=>{var T;return e.openBlock(),e.createElementBlock("li",{key:v.id,class:e.normalizeClass(["model-dropdown-option",{"model-dropdown-option--selected":((T=l.value)==null?void 0:T.id)===v.id}]),onClick:E=>u(v)},[v.imageSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:v.imageSrc,alt:v.value,class:"model-dropdown-option-image"},null,8,Ak)):e.createCommentVNode("",!0),e.createElementVNode("span",Nk,e.toDisplayString(v.value),1)],10,Tk)}),128)),s.value.length===0?(e.openBlock(),e.createElementBlock("li",Ik," No providers found ")):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)],32)}}}),Ok=R(Rk,[["__scopeId","data-v-75f8685b"]]),Dk=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(n,{emit:t}){const o=t,r=i=>{try{JSON.parse(i),o("save",i)}catch{alert("Invalid JSON format. Please fix the JSON before saving.")}},a=i=>{o("toggleAI",i)};return(i,l)=>(e.openBlock(),e.createBlock(Vn,{"is-visible":n.isVisible,title:"Edit response format",description:"Use a JSON schema to define the structure of the model's response format. Learn more.","initial-content":n.initialJsonContent,"openai-api-key":n.openaiApiKey,"openai-model":n.openaiModel,"openai-organization":n.openaiOrganization,onClose:l[0]||(l[0]=s=>i.$emit("close")),onSave:r,onCancel:l[1]||(l[1]=s=>i.$emit("cancel")),onAskAI:l[2]||(l[2]=s=>i.$emit("askAI",s)),onToggleAI:a},null,8,["is-visible","initial-content","openai-api-key","openai-model","openai-organization"]))}}),xk={key:0,class:"freddy-pagination-nav","aria-label":"Pagination"},wk=["disabled"],kk={class:"freddy-pagination-dynamic-container"},Mk=["onClick","disabled"],Lk=["disabled"],Pk=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(n,{emit:t}){const o=n,r=t,a=e.computed(()=>!o.totalItems||isNaN(o.totalItems)?0:Math.ceil(o.totalItems/o.itemsPerPage)),i=e.computed(()=>{const s=[],c=a.value,d=o.currentPage;if(c<=7)for(let u=1;u<=c;u++)s.push(u);else{s.push(1),d>4?s.push("..."):s.push(2,3);for(let u=Math.max(4,d-1);u<=Math.min(c-3,d+1);u++)s.push(u);d<c-4&&s.push("..."),s.push(c-2,c-1,c)}return s});function l(s){s==="..."||s===o.currentPage||typeof s=="number"&&s>=1&&s<=a.value&&r("update:currentPage",s)}return(s,c)=>a.value>0?(e.openBlock(),e.createElementBlock("nav",xk,[e.createElementVNode("button",{class:e.normalizeClass(["freddy-pagination-end-button",{"freddy-pagination-hover-enabled":n.currentPage!==1}]),onClick:c[0]||(c[0]=d=>l(n.currentPage-1)),disabled:n.currentPage===1}," Previous ",10,wk),e.createElementVNode("div",kk,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,d=>(e.openBlock(),e.createElementBlock("button",{key:String(d),class:e.normalizeClass(["freddy-pagination-number-button",{active:d===n.currentPage}]),onClick:u=>l(d),disabled:d==="..."||d===n.currentPage},e.toDisplayString(d),11,Mk))),128)),e.createElementVNode("button",{class:e.normalizeClass(["freddy-pagination-end-button",{"freddy-pagination-hover-enabled":n.currentPage!==a.value}]),onClick:c[1]||(c[1]=d=>l(n.currentPage+1)),disabled:n.currentPage===a.value||a.value===0}," Next ",10,Lk)])])):e.createCommentVNode("",!0)}}),Bk={key:0,class:"skeleton-card"},Fk={key:0,class:"skeleton-line skeleton-wave skeleton-w-32 skeleton-h-6 mb-2"},Uk={key:1,class:"skeleton-paragraph"},Gk={key:0,class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40 mb-2"},Vk={key:2,class:"skeleton-single-box"},Yk={key:0,class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40 mb-2"},Hk={key:3,class:"skeleton-table"},zk={key:0,class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40"},qk={class:"table-full"},$k=e.defineComponent({__name:"SkeletonLoader",props:{type:{},hasHeader:{type:Boolean},count:{}},setup(n){const t=n,{type:o,hasHeader:r=!1,count:a=5}=t;return(i,l)=>e.unref(o)==="card"?(e.openBlock(),e.createElementBlock("div",Bk,[e.unref(r)?(e.openBlock(),e.createElementBlock("div",Fk)):e.createCommentVNode("",!0),l[0]||(l[0]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-3-4"},null,-1)),l[1]||(l[1]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full"},null,-1)),l[2]||(l[2]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-5-6"},null,-1))])):e.unref(o)==="paragraph"?(e.openBlock(),e.createElementBlock("div",Uk,[e.unref(r)?(e.openBlock(),e.createElementBlock("div",Gk)):e.createCommentVNode("",!0),l[3]||(l[3]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full"},null,-1)),l[4]||(l[4]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-5-6"},null,-1)),l[5]||(l[5]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-3-4"},null,-1))])):e.unref(o)==="single-box"?(e.openBlock(),e.createElementBlock("div",Vk,[e.unref(r)?(e.openBlock(),e.createElementBlock("div",Yk)):e.createCommentVNode("",!0),l[6]||(l[6]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full"},null,-1))])):e.unref(o)==="table"?(e.openBlock(),e.createElementBlock("div",Hk,[e.unref(r)?(e.openBlock(),e.createElementBlock("div",zk)):e.createCommentVNode("",!0),e.createElementVNode("table",qk,[e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),s=>(e.openBlock(),e.createElementBlock("tr",{key:s},[...l[7]||(l[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)}}),Wk={class:"freddy-plugins-slider-container"},Kk={key:0,class:"freddy-plugins-slider-header"},Qk={key:0,class:"freddy-plugins-slider-label-section"},Zk={class:"freddy-plugins-slider-label"},jk={key:1,class:"freddy-plugins-slider-value-badge"},Xk=["tabindex","aria-valuemin","aria-valuemax","aria-valuenow","aria-disabled","aria-label"],Jk={key:1,class:"freddy-plugins-slider-hint"},eM=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(n,{emit:t}){const{currentProject:o,currentColorMode:r}=me(),a=n,i=t,l=e.ref(!1),s=e.ref(null),c=e.computed(()=>Math.round(a.modelValue)),d=e.computed(()=>{const E=a.max-a.min,h=a.modelValue-a.min;return Math.min(100,Math.max(0,h/E*100))}),u=e.computed(()=>d.value),_=E=>{const h=Math.round(E/a.step)*a.step;return Math.min(a.max,Math.max(a.min,h))},m=E=>{if(!s.value)return a.modelValue;const h=s.value.getBoundingClientRect(),S=Math.max(0,Math.min(1,(E-h.left)/h.width)),C=a.min+S*(a.max-a.min),f=Math.round(C/a.step)*a.step;return Math.min(a.max,Math.max(a.min,f))},g=E=>{const h=_(E);h!==a.modelValue&&i("update:modelValue",h)},p=E=>{if(a.disabled)return;E.preventDefault(),E.stopPropagation(),l.value=!0;const h=C=>{if(!l.value)return;C.preventDefault();const f=m(C.clientX);g(f)},S=()=>{l.value=!1,document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",S)};document.addEventListener("mousemove",h),document.addEventListener("mouseup",S)},b=E=>{if(a.disabled)return;E.preventDefault(),E.stopPropagation(),l.value=!0;const h=C=>{!l.value||!C.touches[0]||(C.preventDefault(),g(m(C.touches[0].clientX)))},S=()=>{l.value=!1,document.removeEventListener("touchmove",h),document.removeEventListener("touchend",S)};document.addEventListener("touchmove",h),document.addEventListener("touchend",S)},v=E=>{if(a.disabled||l.value)return;E.preventDefault(),E.stopPropagation();const h=m(E.clientX);g(h)},T=E=>{if(a.disabled)return;let h=a.modelValue;switch(E.key){case"ArrowLeft":case"ArrowDown":E.preventDefault(),h=a.modelValue-a.step;break;case"ArrowRight":case"ArrowUp":E.preventDefault(),h=a.modelValue+a.step;break;case"Home":E.preventDefault(),h=a.min;break;case"End":E.preventDefault(),h=a.max;break;case"PageDown":E.preventDefault(),h=a.modelValue-a.step*10;break;case"PageUp":E.preventDefault(),h=a.modelValue+a.step*10;break;default:return}g(h)};return(E,h)=>(e.openBlock(),e.createElementBlock("div",Wk,[E.label||E.showValue?(e.openBlock(),e.createElementBlock("div",Kk,[E.label?(e.openBlock(),e.createElementBlock("div",Qk,[e.createElementVNode("span",Zk,e.toDisplayString(E.label),1),E.tooltip?(e.openBlock(),e.createBlock(bt,{key:0,text:E.tooltip,placement:E.tooltipPlacement},{default:e.withCtx(()=>[e.createVNode(ct,{class:"freddy-plugins-slider-tooltip-icon"})]),_:1},8,["text","placement"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),E.showValue?(e.openBlock(),e.createElementBlock("div",jk,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":E.disabled}]),onClick:v,onKeydown:T,tabindex:E.disabled?-1:0,role:"slider","aria-valuemin":E.min,"aria-valuemax":E.max,"aria-valuenow":E.modelValue,"aria-disabled":E.disabled,"aria-label":E.label||"Slider"},[e.createElementVNode("div",{ref_key:"sliderTrack",ref:s,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":E.disabled}]),style:e.normalizeStyle({left:u.value+"%"}),onMousedown:p,onTouchstart:b},null,38)],42,Xk),E.hint?(e.openBlock(),e.createElementBlock("p",Jk,e.toDisplayString(E.hint),1)):e.createCommentVNode("",!0)]))}}),tM=R(eM,[["__scopeId","data-v-2b73014b"]]),nM={class:"freddy-plugins-snackbar-content"},oM={class:"freddy-plugins-snackbar-left"},rM={class:"freddy-plugins-snackbar-text"},aM=["innerHTML"],iM=["innerHTML"],sM=["onClick"],lM=e.defineComponent({__name:"SnackBar",setup(n){const{currentProject:t,currentColorMode:o}=me(),{snackQueue:r}=og(),a=s=>{switch(s){case"success":return nn;case"danger":return Ye;case"info":return ct;default:return nn}},i=e.computed(()=>{const s=r.value[r.value.length-1];if(!s)return"side70";switch(s.toastContainerSize){case"half":return"half";case"full":return"full";default:return"side70"}}),l=s=>{r.value.splice(s,1)};return(s,c)=>(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(r),(d,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:e.normalizeClass(["freddy-plugins-snackbar",`freddy-plugins-snackbar--${d.toastType}`])},[e.createElementVNode("div",nM,[e.createElementVNode("div",oM,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a(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",rM,[e.createElementVNode("p",{class:"freddy-plugins-snackbar-title",innerHTML:d.title},null,8,aM),e.createElementVNode("p",{class:"freddy-plugins-snackbar-message",innerHTML:d.message},null,8,iM)])]),e.createElementVNode("button",{class:"freddy-plugins-snackbar-close-btn",onClick:_=>l(u)},[e.createVNode(mn,{class:"freddy-plugins-snackbar-close-icon"})],8,sM)])],2))),128))],2))}}),cM={class:"freddy-plugins-switch-slot__header"},dM={key:0,class:"freddy-plugins-switch-slot__label-section"},uM={key:0,class:"freddy-plugins-switch-slot__label"},_M=["aria-checked","tabindex","onKeydown","disabled"],pM={key:0,class:"freddy-plugins-switch-slot__content"},mM={key:1,class:"freddy-plugins-switch-slot__hint"},gM=e.defineComponent({__name:"SwitchSlot",props:{modelValue:{type:Boolean},label:{},tooltip:{},tooltipPlacement:{},hint:{},disabled:{type:Boolean},variant:{},showSlotContent:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:t}){const{currentProject:o,currentColorMode:r}=me(),a=n,i=t,l=s=>{s.stopPropagation(),a.disabled||i("update:modelValue",!a.modelValue)};return(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-plugins-switch-slot",{"freddy-plugins-switch-slot--bordered":s.variant==="bordered","freddy-plugins-switch-slot--disabled":s.disabled}])},[e.createElementVNode("div",cM,[s.label||s.tooltip?(e.openBlock(),e.createElementBlock("div",dM,[s.label?(e.openBlock(),e.createElementBlock("span",uM,e.toDisplayString(s.label),1)):e.createCommentVNode("",!0),s.tooltip?(e.openBlock(),e.createBlock(bt,{key:1,text:s.tooltip,placement:s.tooltipPlacement},{default:e.withCtx(()=>[e.createVNode(ct,{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":s.modelValue}]),"aria-checked":s.modelValue,role:"switch",tabindex:s.disabled?-1:0,onClick:l,onKeydown:[e.withKeys(e.withModifiers(l,["prevent"]),["space"]),e.withKeys(e.withModifiers(l,["prevent"]),["enter"])],disabled:s.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,_M)]),s.showSlotContent?(e.openBlock(),e.createElementBlock("div",pM,[e.renderSlot(s.$slots,"content",{},void 0,!0)])):e.createCommentVNode("",!0),s.hint?(e.openBlock(),e.createElementBlock("p",mM,e.toDisplayString(s.hint),1)):e.createCommentVNode("",!0)],2))}}),fM=R(gM,[["__scopeId","data-v-a5f9fecf"]]),EM={class:"theme-switcher"},SM={class:"theme-switcher-header"},bM={class:"header-content"},hM={class:"header-right"},CM=["title"],vM={class:"status-text"},yM={key:0,class:"loading-container"},TM={key:1,class:"error-container"},AM={class:"error-content"},NM={key:2,class:"theme-switcher-main"},IM={class:"current-theme-section"},RM={class:"section-header"},OM={class:"current-theme-card"},DM={class:"theme-info"},xM={class:"theme-brand-info"},wM={class:"brand-icon"},kM={class:"brand-details"},MM={class:"brand-version"},LM={class:"theme-mode-info"},PM={class:"mode-details"},BM={class:"mode-key"},FM={key:0,class:"enhanced-color-preview"},UM={class:"primary-color-grid"},GM=["onClick"],VM={key:0,class:"color-text-sample"},YM={class:"color-overlay"},HM={class:"color-label"},zM={class:"color-description"},qM={class:"color-value"},$M={class:"theme-controls-section"},WM={class:"control-card"},KM={class:"brand-selection"},QM=["onClick"],ZM={class:"brand-visual"},jM={class:"brand-logo"},XM={key:0,class:"brand-status"},JM={class:"brand-content"},eL={class:"brand-version"},tL={class:"color-mode-section"},nL={class:"mode-selection"},oL=["onClick"],rL={class:"mode-visual"},aL={key:0,class:"mode-status"},iL={class:"mode-content"},sL={class:"mode-key"},lL={key:0,class:"debug-section"},cL={class:"debug-content"},dL={class:"debug-item"},uL={class:"debug-item"},_L={class:"debug-item"},pL={class:"debug-item"},mL={class:"debug-item"},gL={class:"debug-colors"},fL={key:0},EL={key:1},SL={key:2},bL={class:"debug-css-vars"},hL={class:"control-card"},CL={class:"stats-grid"},vL={class:"stat-item"},yL={class:"stat-content"},TL={class:"stat-value"},AL={class:"stat-item"},NL={class:"stat-content"},IL={class:"stat-value"},RL={class:"stat-item"},OL={class:"stat-content"},DL={class:"stat-value"},xL={class:"stat-item"},wL={class:"stat-content"},kL={class:"stat-value"},_2=e.defineComponent({__name:"ThemeSwitcher",setup(n){const{currentBrandId:t,currentModeId:o,currentProject:r,currentColorMode:a,isLoading:i,error:l,availableBrands:s,availableModes:c,setBrand:d,setMode:u,initializeTheme:_,applyThemeToDocument:m,getCSSVariableMapping:g,saveThemeToStorage:p,loadThemeFromStorage:b}=me(),v=()=>i.value?"Loading...":l.value?"Error":"Ready to Switch",T=()=>i.value?"Loading theme configuration...":l.value?"Error loading theme configuration":"Theme system is ready - you can switch between brands and color modes",E=()=>!r.value||!a.value?"inactive":"active",h=()=>!r.value||!a.value?"No Theme":"Active",S=y=>y&&{"Contentplate Public":"contentplate","Flowplate Public":"flowplate","Freddy Public":"freddy"}[y]||"contentplate",C=y=>{const N=y.name.toLowerCase().includes("dark");return{backgroundColor:N?"#2a2a2a":"var(--freddy-bg-primary)",color:N?"var(--freddy-bg-primary)":"var(--freddy-text-primary)"}},f=()=>{var N,k,O,H,j,w,B,D,K,M,L;if(!a.value)return{};const y={};if((N=a.value.backgroundColor)!=null&&N.colors){const G=((k=a.value.backgroundColor.colors.find(Y=>Y.name==="Background"))==null?void 0:k.value)||((O=a.value.backgroundColor.colors.find(Y=>Y.name==="Surface"))==null?void 0:O.value);G&&(y.background={value:G,label:"Background",description:"Main page background"})}if((H=a.value.textColors)!=null&&H.colors){const G=((j=a.value.textColors.colors.find(Y=>Y.name==="Primary"))==null?void 0:j.value)||((w=a.value.textColors.colors.find(Y=>Y.name==="Text"))==null?void 0:w.value);G&&(y.text={value:G,label:"Text",description:"Primary text color"})}if((B=a.value.textColors)!=null&&B.colors){const G=((D=a.value.textColors.colors.find(Y=>Y.name==="Accent"))==null?void 0:D.value)||((K=a.value.textColors.colors.find(Y=>Y.name==="Link"))==null?void 0:K.value);G&&(y.primary={value:G,label:"Primary",description:"Brand & action color"})}if((M=a.value.borderColor)!=null&&M.colors){const G=(L=a.value.borderColor.colors.find(Y=>Y.name==="Border"))==null?void 0:L.value;G&&(y.border={value:G,label:"Border",description:"UI element borders"})}return y},A=async(y,N)=>{try{await navigator.clipboard.writeText(y)}catch{}};return e.onMounted(()=>{_()}),(y,N)=>{var k,O,H,j,w,B,D,K,M,L,G,Y,ue,ge,ie,re,ne,$,V,se,oe,Se,_e,Te,Oe,Fe;return e.openBlock(),e.createElementBlock("div",EM,[e.createElementVNode("div",SM,[e.createElementVNode("div",bM,[N[2]||(N[2]=e.createElementVNode("div",{class:"header-left"},[e.createElementVNode("h2",null,"🎨 Theme Switcher"),e.createElementVNode("p",null,"Customize your design system appearance")],-1)),e.createElementVNode("div",hM,[e.createElementVNode("div",{class:e.normalizeClass(["status-indicator",{active:!e.unref(i)&&!e.unref(l)}]),title:T()},[N[1]||(N[1]=e.createElementVNode("div",{class:"status-dot"},null,-1)),e.createElementVNode("span",vM,e.toDisplayString(v()),1)],10,CM)])])]),e.unref(i)?(e.openBlock(),e.createElementBlock("div",yM,[...N[3]||(N[3]=[e.createStaticVNode('<div class="loading-content"><div class="loading-spinner"><div class="spinner-ring"></div><div class="spinner-ring"></div><div class="spinner-ring"></div></div><h3>Loading Theme Configuration</h3><p>Please wait while we load your available themes...</p></div>',1)])])):e.unref(l)?(e.openBlock(),e.createElementBlock("div",TM,[e.createElementVNode("div",AM,[N[5]||(N[5]=e.createElementVNode("div",{class:"error-icon"},"⚠️",-1)),N[6]||(N[6]=e.createElementVNode("h3",null,"Configuration Error",-1)),e.createElementVNode("p",null,e.toDisplayString(e.unref(l)),1),e.createElementVNode("button",{onClick:N[0]||(N[0]=(...Q)=>e.unref(_)&&e.unref(_)(...Q)),class:"retry-button"},[...N[4]||(N[4]=[e.createElementVNode("span",{class:"btn-icon"},"🔄",-1),e.createTextVNode(" Try Again ",-1)])])])])):(e.openBlock(),e.createElementBlock("div",NM,[e.createElementVNode("div",IM,[e.createElementVNode("div",RM,[N[7]||(N[7]=e.createElementVNode("h3",null,"Current Theme",-1)),e.createElementVNode("div",{class:e.normalizeClass(["theme-badge",E()])},e.toDisplayString(h()),3)]),e.createElementVNode("div",OM,[e.createElementVNode("div",DM,[e.createElementVNode("div",xM,[e.createElementVNode("div",wM,[e.createVNode(Yn,{brand:S((k=e.unref(r))==null?void 0:k.name),size:"sm","show-title":!1},null,8,["brand"])]),e.createElementVNode("div",kM,[e.createElementVNode("h4",null,e.toDisplayString(((O=e.unref(r))==null?void 0:O.name)||"No Brand Selected"),1),e.createElementVNode("span",MM,"v"+e.toDisplayString(((H=e.unref(r))==null?void 0:H.version)||"0"),1)])]),e.createElementVNode("div",LM,[N[8]||(N[8]=e.createElementVNode("div",{class:"mode-icon"},[e.createElementVNode("span",{class:"mode-icon-text"},"🎨")],-1)),e.createElementVNode("div",PM,[e.createElementVNode("h4",null,e.toDisplayString(((j=e.unref(a))==null?void 0:j.name)||"No Mode Selected"),1),e.createElementVNode("span",BM,e.toDisplayString(((w=e.unref(a))==null?void 0:w.name)||"none"),1)])])]),e.unref(a)?(e.openBlock(),e.createElementBlock("div",FM,[N[10]||(N[10]=e.createElementVNode("h4",null,"Theme Color Palette",-1)),N[11]||(N[11]=e.createElementVNode("p",{class:"color-preview-description"}," Key colors from the current theme ",-1)),e.createElementVNode("div",UM,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f(),(Q,we)=>(e.openBlock(),e.createElementBlock("div",{key:we,class:"primary-color-item",style:e.normalizeStyle({backgroundColor:Q.value}),onClick:dt=>A(Q.value)},[we==="background"?(e.openBlock(),e.createElementBlock("div",VM,[...N[9]||(N[9]=[e.createElementVNode("span",{style:{color:"var(--freddy-text-primary)"}},"Sample Text",-1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",YM,[e.createElementVNode("span",HM,e.toDisplayString(Q.label),1),e.createElementVNode("span",zM,e.toDisplayString(Q.description),1),e.createElementVNode("span",qM,e.toDisplayString(Q.value),1)])],12,GM))),128))])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",$M,[e.createElementVNode("div",WM,[N[13]||(N[13]=e.createElementVNode("div",{class:"card-header"},[e.createElementVNode("h3",null,"Brand Selection"),e.createElementVNode("span",{class:"card-subtitle"},"Choose your design system")],-1)),e.createElementVNode("div",KM,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),Q=>(e.openBlock(),e.createElementBlock("div",{key:Q.id,onClick:we=>e.unref(d)(Q.id),class:e.normalizeClass(["brand-option",{active:e.unref(t)===Q.id}])},[e.createElementVNode("div",ZM,[e.createElementVNode("div",jM,[e.createVNode(Yn,{brand:S(Q.name),size:"sm","show-title":!1},null,8,["brand"])]),e.unref(t)===Q.id?(e.openBlock(),e.createElementBlock("div",XM,[...N[12]||(N[12]=[e.createElementVNode("span",{class:"check-icon"},"✓",-1)])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",JM,[e.createElementVNode("h4",null,e.toDisplayString(Q.name),1),e.createElementVNode("span",eL,"Version "+e.toDisplayString(Q.version),1)])],10,QM))),128))])]),e.createElementVNode("div",tL,[N[16]||(N[16]=e.createElementVNode("div",{class:"section-header"},[e.createElementVNode("h3",null,"Color Mode"),e.createElementVNode("span",{class:"card-subtitle"},"Select your preferred appearance")],-1)),e.createElementVNode("div",nL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),Q=>(e.openBlock(),e.createElementBlock("div",{key:Q.id,onClick:we=>e.unref(u)(Q.id),class:e.normalizeClass(["mode-option",{active:e.unref(o)===Q.id}])},[e.createElementVNode("div",rL,[e.createElementVNode("div",{class:"mode-preview",style:e.normalizeStyle(C(Q))},[...N[14]||(N[14]=[e.createElementVNode("div",{class:"mode-icon"},"🎨",-1)])],4),e.unref(o)===Q.id?(e.openBlock(),e.createElementBlock("div",aL,[...N[15]||(N[15]=[e.createElementVNode("span",{class:"check-icon"},"✓",-1)])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",iL,[e.createElementVNode("h4",null,e.toDisplayString(Q.name),1),e.createElementVNode("span",sL,e.toDisplayString(Q.name),1)])],10,oL))),128))])]),e.unref(a)?(e.openBlock(),e.createElementBlock("div",lL,[N[27]||(N[27]=e.createElementVNode("div",{class:"section-header"},[e.createElementVNode("h3",null,"Debug Info"),e.createElementVNode("span",{class:"card-subtitle"},"Current theme debugging")],-1)),e.createElementVNode("div",cL,[e.createElementVNode("div",dL,[N[17]||(N[17]=e.createElementVNode("strong",null,"Current Brand:",-1)),e.createTextVNode(" "+e.toDisplayString((B=e.unref(r))==null?void 0:B.name),1)]),e.createElementVNode("div",uL,[N[18]||(N[18]=e.createElementVNode("strong",null,"Current Mode:",-1)),e.createTextVNode(" "+e.toDisplayString((D=e.unref(a))==null?void 0:D.name),1)]),e.createElementVNode("div",_L,[N[19]||(N[19]=e.createElementVNode("strong",null,"Text Colors:",-1)),e.createTextVNode(" "+e.toDisplayString(((L=(M=(K=e.unref(a))==null?void 0:K.textColors)==null?void 0:M.colors)==null?void 0:L.length)||0)+" colors ",1)]),e.createElementVNode("div",pL,[N[20]||(N[20]=e.createElementVNode("strong",null,"Background Colors:",-1)),e.createTextVNode(" "+e.toDisplayString(((ue=(Y=(G=e.unref(a))==null?void 0:G.backgroundColor)==null?void 0:Y.colors)==null?void 0:ue.length)||0)+" colors ",1)]),e.createElementVNode("div",mL,[N[21]||(N[21]=e.createElementVNode("strong",null,"Border Colors:",-1)),e.createTextVNode(" "+e.toDisplayString(((re=(ie=(ge=e.unref(a))==null?void 0:ge.borderColor)==null?void 0:ie.colors)==null?void 0:re.length)||0)+" colors ",1)]),e.createElementVNode("div",gL,[N[25]||(N[25]=e.createElementVNode("h4",null,"Found Colors:",-1)),($=(ne=e.unref(a))==null?void 0:ne.textColors)!=null&&$.colors?(e.openBlock(),e.createElementBlock("div",fL,[N[22]||(N[22]=e.createElementVNode("strong",null,"Text Colors:",-1)),e.createTextVNode(" "+e.toDisplayString(e.unref(a).textColors.colors.map(Q=>Q.name).join(", ")),1)])):e.createCommentVNode("",!0),(se=(V=e.unref(a))==null?void 0:V.backgroundColor)!=null&&se.colors?(e.openBlock(),e.createElementBlock("div",EL,[N[23]||(N[23]=e.createElementVNode("strong",null,"Background Colors:",-1)),e.createTextVNode(" "+e.toDisplayString(e.unref(a).backgroundColor.colors.map(Q=>Q.name).join(", ")),1)])):e.createCommentVNode("",!0),(Se=(oe=e.unref(a))==null?void 0:oe.borderColor)!=null&&Se.colors?(e.openBlock(),e.createElementBlock("div",SL,[N[24]||(N[24]=e.createElementVNode("strong",null,"Border Colors:",-1)),e.createTextVNode(" "+e.toDisplayString(e.unref(a).borderColor.colors.map(Q=>Q.name).join(", ")),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",bL,[N[26]||(N[26]=e.createElementVNode("h4",null,"Generated CSS Variables:",-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(g)(),(Q,we)=>(e.openBlock(),e.createElementBlock("div",{key:we,class:"css-var"},[e.createElementVNode("strong",null,e.toDisplayString(we)+":",1),e.createTextVNode(" "+e.toDisplayString(Q),1)]))),128))])])])):e.createCommentVNode("",!0),e.createElementVNode("div",hL,[N[36]||(N[36]=e.createElementVNode("div",{class:"card-header"},[e.createElementVNode("h3",null,"Theme Statistics"),e.createElementVNode("span",{class:"card-subtitle"},"Current theme details")],-1)),e.createElementVNode("div",CL,[e.createElementVNode("div",vL,[N[29]||(N[29]=e.createElementVNode("div",{class:"stat-icon"},"🎨",-1)),e.createElementVNode("div",yL,[e.createElementVNode("span",TL,e.toDisplayString(Object.keys(e.unref(g)()).length),1),N[28]||(N[28]=e.createElementVNode("span",{class:"stat-label"},"CSS Variables",-1))])]),e.createElementVNode("div",AL,[N[31]||(N[31]=e.createElementVNode("div",{class:"stat-icon"},"📝",-1)),e.createElementVNode("div",NL,[e.createElementVNode("span",IL,e.toDisplayString(((Te=(_e=e.unref(r))==null?void 0:_e.fontThemes)==null?void 0:Te.length)||0),1),N[30]||(N[30]=e.createElementVNode("span",{class:"stat-label"},"Font Themes",-1))])]),e.createElementVNode("div",RL,[N[33]||(N[33]=e.createElementVNode("div",{class:"stat-icon"},"🔲",-1)),e.createElementVNode("div",OL,[e.createElementVNode("span",DL,e.toDisplayString(((Fe=(Oe=e.unref(r))==null?void 0:Oe.cornerRadiusThemes)==null?void 0:Fe.length)||0),1),N[32]||(N[32]=e.createElementVNode("span",{class:"stat-label"},"Corner Radius",-1))])]),e.createElementVNode("div",xL,[N[35]||(N[35]=e.createElementVNode("div",{class:"stat-icon"},"🎯",-1)),e.createElementVNode("div",wL,[e.createElementVNode("span",kL,e.toDisplayString(e.unref(c).length),1),N[34]||(N[34]=e.createElementVNode("span",{class:"stat-label"},"Color Modes",-1))])])])])])]))])}}}),ML={class:"freddy-plugins-themable"},LL={key:0,class:"freddy-plugins-status-indicator"},PL={class:"freddy-plugins-status-content"},BL={key:0},FL={key:1},UL={class:"freddy-plugins-tab-navigation"},GL=["onClick"],VL={class:"freddy-plugins-tab-icon"},YL={class:"freddy-plugins-tab-label"},HL={class:"freddy-plugins-tab-content"},zL={key:0,class:"freddy-plugins-tab-panel"},qL={key:1,class:"freddy-plugins-tab-panel"},$L={key:2,class:"freddy-plugins-tab-panel"},WL={key:3,class:"freddy-plugins-tab-panel"},KL=e.defineComponent({__name:"Themable",setup(n){const t=e.ref("overview"),o=e.ref("Initializing..."),{initializeTheme:r,currentProject:a,currentColorMode:i,configuration:l}=me(),s=[{id:"overview",label:"Overview Dashboard",icon:"📊"},{id:"comparison",label:"Color Comparison",icon:"🎨"},{id:"tests",label:"Color Tests",icon:"🧪"},{id:"switcher",label:"Theme Switcher",icon:"⚙️"}];return e.onMounted(async()=>{try{o.value="Loading...",await r(),o.value="Ready"}catch(c){o.value="Error: "+(c instanceof Error?c.message:"Unknown error")}}),(c,d)=>(e.openBlock(),e.createElementBlock("div",ML,[d[4]||(d[4]=e.createElementVNode("div",{class:"freddy-plugins-themable-header"},[e.createElementVNode("h1",null,"Themable Design System"),e.createElementVNode("p",null,"Comprehensive tools for managing and comparing design system configurations")],-1)),o.value!=="Ready"?(e.openBlock(),e.createElementBlock("div",LL,[e.createElementVNode("div",PL,[e.createElementVNode("p",null,"Theme Service Status: "+e.toDisplayString(o.value),1),e.unref(a)?(e.openBlock(),e.createElementBlock("p",BL,"Current Project: "+e.toDisplayString(e.unref(a).name),1)):e.createCommentVNode("",!0),e.unref(i)?(e.openBlock(),e.createElementBlock("p",FL,"Current Mode: "+e.toDisplayString(e.unref(i).name),1)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),e.createElementVNode("div",UL,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(s,u=>e.createElementVNode("button",{key:u.id,onClick:_=>t.value=u.id,class:e.normalizeClass(["freddy-plugins-tab-button",{"freddy-plugins-active":t.value===u.id}])},[e.createElementVNode("span",VL,e.toDisplayString(u.icon),1),e.createElementVNode("span",YL,e.toDisplayString(u.label),1)],10,GL)),64))]),e.createElementVNode("div",HL,[t.value==="overview"?(e.openBlock(),e.createElementBlock("div",zL,[d[0]||(d[0]=e.createElementVNode("div",{class:"freddy-plugins-panel-header"},[e.createElementVNode("h2",null,"Overview Dashboard"),e.createElementVNode("p",null,"View all color configurations, fonts, and corner radius for all brands and color modes")],-1)),e.createVNode(R_)])):e.createCommentVNode("",!0),t.value==="comparison"?(e.openBlock(),e.createElementBlock("div",qL,[d[1]||(d[1]=e.createElementVNode("div",{class:"freddy-plugins-panel-header"},[e.createElementVNode("h2",null,"Color Comparison"),e.createElementVNode("p",null,"Compare colors across different brands and color modes")],-1)),e.createVNode(Qg)])):e.createCommentVNode("",!0),t.value==="tests"?(e.openBlock(),e.createElementBlock("div",$L,[d[2]||(d[2]=e.createElementVNode("div",{class:"freddy-plugins-panel-header"},[e.createElementVNode("h2",null,"Color Tests"),e.createElementVNode("p",null,"Validate that applied CSS variables match the configuration for the selected brand and mode.")],-1)),e.createVNode(Zg)])):e.createCommentVNode("",!0),t.value==="switcher"?(e.openBlock(),e.createElementBlock("div",WL,[d[3]||(d[3]=e.createElementVNode("div",{class:"freddy-plugins-panel-header"},[e.createElementVNode("h2",null,"Theme Switcher"),e.createElementVNode("p",null,"Switch between different brands and color modes to customize your design system")],-1)),e.createVNode(_2)])):e.createCommentVNode("",!0)])]))}}),QL={class:"freddy-plugins-themable-overview-dashboard"},ZL=e.defineComponent({__name:"ThemableOverviewDashboard",setup(n){return(t,o)=>(e.openBlock(),e.createElementBlock("div",QL,[o[0]||(o[0]=e.createElementVNode("div",{class:"freddy-plugins-dashboard-header"},[e.createElementVNode("h1",null,"Themable Overview Dashboard"),e.createElementVNode("p",null," View all color configurations, fonts, and corner radius for all brands and color modes ")],-1)),e.createVNode(R_)]))}}),jL={class:"freddy-plugins-toast-wrapper"},XL={class:"freddy-plugins-toast-icon-wrapper"},JL={class:"freddy-plugins-toast-message"},eP=["onClick"],tP=e.defineComponent({__name:"ToastMessage",setup(n){const{toastQueue:t}=Rc(),o={success:"freddy-plugins-toast-success",danger:"freddy-plugins-toast-danger",info:"freddy-plugins-toast-info"},r=l=>o[l],a=l=>{switch(l){case"success":return Nt;case"danger":return Ye;case"info":return ct;default:return Nt}},i=l=>{t.value.splice(l,1)};return(l,s)=>(e.openBlock(),e.createElementBlock("div",jL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t),(c,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:e.normalizeClass(["freddy-plugins-toast-item",r(c.toastType)])},[e.createElementVNode("div",XL,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a(c.toastType)),{class:"freddy-plugins-toast-icon"}))]),e.createElementVNode("span",JL,e.toDisplayString(c.message),1),e.createElementVNode("button",{class:"freddy-plugins-toast-close-button",onClick:u=>i(d)},[e.createVNode(e.unref(Ye),{class:"freddy-plugins-toast-close-icon"})],8,eP)],2))),128))]))}}),nP=["aria-label"],oP=["innerHTML"],rP={key:1},aP=e.defineComponent({__name:"TooltipV2",props:{text:{},placement:{default:"top"},html:{type:Boolean,default:!1},contentClass:{},delay:{default:200},hideDelay:{default:0}},setup(n){const t=n,o=e.ref(!1),r=e.ref(!1),a=e.ref(null);let i=null,l=null;const s=()=>{l&&(clearTimeout(l),l=null),i&&clearTimeout(i),i=setTimeout(()=>{if(a.value){const _=a.value.getBoundingClientRect();r.value=_.top<150}o.value=!0},t.delay)},c=()=>{i&&(clearTimeout(i),i=null),l=setTimeout(()=>{o.value=!1},t.hideDelay)},d=()=>{s()},u=()=>{c()};return(_,m)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tooltipWrapper",ref:a,class:"freddy-plugins-tooltip-v2-wrapper",onMouseenter:s,onMouseleave:c,onFocusin:d,onFocusout:u,tabindex:"0"},[e.renderSlot(_.$slots,"default",{},void 0,!0),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[o.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["freddy-plugins-tooltip-v2-content",[_.placement,r.value?"force-bottom":"",_.contentClass]]),role:"tooltip","aria-label":_.text},[e.renderSlot(_.$slots,"content",{},()=>[_.html?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:_.text},null,8,oP)):(e.openBlock(),e.createElementBlock("span",rP,e.toDisplayString(_.text),1))],!0)],10,nP)):e.createCommentVNode("",!0)]),_:3})],544))}}),iP=R(aP,[["__scopeId","data-v-55872ec8"]]);function sP(n={}){const{logErrors:t=!0,throwOnCritical:o=!1,maxRetries:r=3}=n,a=e.ref([]),i=e.ref(!1),l=e.ref(0),s=e.computed(()=>a.value.length>0),c=e.computed(()=>a.value[a.value.length-1]||null),d=(b,v)=>{const T={message:b instanceof Error?b.message:String(b),stack:b instanceof Error?b.stack:void 0,timestamp:new Date().toISOString(),context:{...v,retryCount:l.value,userAgent:typeof navigator<"u"?navigator.userAgent:"Unknown"}};if(b&&typeof b=="object"&&"status"in b&&(T.code=b.status),a.value.push(T),t&&process.env.NODE_ENV,o&&p(b))throw b;return T},u=async(b,v)=>{i.value=!0;try{const T=await b();return l.value=0,{data:T,error:null}}catch(T){return{data:null,error:d(T,v)}}finally{i.value=!1}},_=async(b,v)=>{let T=null;for(let E=1;E<=r;E++){l.value=E-1;const h=await u(b,{...v,attempt:E,maxRetries:r});if(h.data!==null)return h;if(T=h.error,T!=null&&T.code&&typeof T.code=="number"&&T.code>=400&&T.code<500)break;E<r&&await new Promise(S=>setTimeout(S,Math.pow(2,E)*1e3))}return{data:null,error:T}},m=()=>{a.value=[],l.value=0},g=b=>{b>=0&&b<a.value.length&&a.value.splice(b,1)},p=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(()=>a.value),hasErrors:s,latestError:c,isLoading:e.computed(()=>i.value),retryCount:e.computed(()=>l.value),handleError:d,handleAsync:u,retryAsync:_,clearErrors:m,clearError:g,isCriticalError:p}}function lP(n={}){const{enableMetrics:t=process.env.NODE_ENV==="development",trackMemory:o=!1,sampleRate:r=.1}=n,a=e.ref([]),i=e.ref(!1),l=e.ref(0),s=e.computed(()=>a.value.length===0?0:a.value.reduce((S,C)=>S+C.renderTime,0)/a.value.length),c=e.computed(()=>a.value.length===0?0:Math.max(...a.value.map(h=>h.renderTime))),d=h=>{!t||Math.random()>r||(i.value=!0,l.value=performance.now(),h&&process.env.NODE_ENV)},u=(h,S=1)=>{if(!i.value||!t)return;const A={renderTime:performance.now()-l.value,componentCount:S,timestamp:new Date().toISOString()};if(o&&"memory"in performance){const y=performance.memory;A.memoryUsage=y.usedJSHeapSize}return a.value.push(A),a.value.length>100&&a.value.shift(),i.value=!1,h&&process.env.NODE_ENV,A},_=async(h,S)=>{d(S);try{const C=await h(),f=u(S)||{renderTime:0,componentCount:1,timestamp:new Date().toISOString()};return{result:C,metrics:f}}catch(C){throw u(S),C}},m=(h,S)=>{let C;return(...f)=>{clearTimeout(C),C=setTimeout(()=>h(...f),S)}},g=(h,S)=>{let C;return(...f)=>{C||(h(...f),C=!0,setTimeout(()=>C=!1,S))}},p=(h,S=5e3)=>{"requestIdleCallback"in window?window.requestIdleCallback(h,{timeout:S}):setTimeout(h,0)},b=async(h,S=0)=>(S>0&&await new Promise(C=>setTimeout(C,S)),new Promise(C=>{p(async()=>{try{const f=await h();C(f)}catch(f){throw f}})})),v=(h,S,C)=>{const f=Math.ceil(C/S),A=Math.ceil(f*.5);return y=>{const N=Math.max(0,Math.floor(y/S)-A),k=Math.min(h.length,N+f+A*2);return{visibleItems:h.slice(N,k),startIndex:N,endIndex:k,totalHeight:h.length*S,offsetY:N*S}}},T=()=>{a.value=[]},E=()=>({totalMeasurements:a.value.length,averageRenderTime:s.value,maxRenderTime:c.value,recentMetrics:a.value.slice(-10)});return t&&process.env.NODE_ENV==="development"&&e.onMounted(()=>{d("Component Mount"),e.nextTick(()=>{u("Component Mount")})}),{metrics:e.computed(()=>a.value),isTracking:e.computed(()=>i.value),averageRenderTime:s,maxRenderTime:c,startTracking:d,endTracking:u,measureAsync:_,debounce:m,throttle:g,scheduleWork:p,lazyLoad:b,createVirtualList:v,clearMetrics:T,getSummary:E}}exports.AITextService=e2;exports.AdvancedModal=G4;exports.AnimeSpaceman=M4;exports.ApiInteraction=s5;exports.AssistantField=gg;exports.AssistantList=b5;exports.AssistantsHeader=D5;exports.AuthCard=x_;exports.AuthContainer=D_;exports.AuthManager=pk;exports.AvatarChoosing=g_;exports.AvatarList=F5;exports.BaseButton=ht;exports.BaseFlowplateApiService=jg;exports.BaseInput=Jo;exports.BaseTabButton=fg;exports.CardInput=r2;exports.ChatInput=vg;exports.ChatInterface=AR;exports.ChatMessage=S_;exports.ChatMessages=fT;exports.ChooseAssistantAvatar=sv;exports.CodeBlock=Sg;exports.CodeSnippet=tl;exports.ColorComparison=Qg;exports.ColorValidation=Zg;exports.ConfigurationDashboard=R_;exports.ConfirmationModal=rg;exports.ContextItem=nl;exports.ContextManager=E_;exports.CustomCheckbox=$D;exports.DefaultInput=a2;exports.DeleteConfirmationModal=_g;exports.Descriptions=ow;exports.DiffTextarea=lw;exports.Dropdown=Bn;exports.EditFeaturedExcerptModal=Vn;exports.EmailCodeVerification=hw;exports.ErrorBoundary=bg;exports.FlowplateApiService=Jg;exports.IconAddFileSystem=Hn;exports.IconAddPeople=sl;exports.IconAitronos=cl;exports.IconApple=zn;exports.IconApplePay=_l;exports.IconArrowDown=ml;exports.IconArrowLeft=gl;exports.IconArrowUp=fl;exports.IconBadgeCheck=Kn;exports.IconBroom=Sl;exports.IconBuildings=hl;exports.IconCalendarWithTickInside=vl;exports.IconCallNotAllowed=Tl;exports.IconCardPay=Nl;exports.IconCaution=Qn;exports.IconChangeLog=Ol;exports.IconCheckCircleFill=Zn;exports.IconCheckInCircle=nn;exports.IconCheckRounded=on;exports.IconChevronDown=Et;exports.IconChevronLeft=Ml;exports.IconChevronRight=Ll;exports.IconChevronUp=un;exports.IconCircledCheck=Pl;exports.IconClock=Fl;exports.IconClosedEnvelope=Gl;exports.IconCloudUpload=Yl;exports.IconConnectorConfluence=zl;exports.IconConnectorFigma=$l;exports.IconConnectorFreshDesk=Kl;exports.IconConnectorGitHub=Zl;exports.IconConnectorJira=Xl;exports.IconConnectorLinear=ec;exports.IconConnectorNotion=nc;exports.IconConnectorSlack=rc;exports.IconConnectorZapier=ic;exports.IconCopy=rn;exports.IconCross=Ye;exports.IconCrossCircleFill=lc;exports.IconCrossInCircle=dc;exports.IconCurrentTick=_c;exports.IconDataUpload=oo;exports.IconDelete=ro;exports.IconDeleteFillRed=gc;exports.IconDialingPhone=Ec;exports.IconDisabledAlert=bc;exports.IconDocumentation=Cc;exports.IconDownload=yc;exports.IconDribbble=so;exports.IconDropdownArrow=Ac;exports.IconEdit=Tt;exports.IconEditLinePath=co;exports.IconEllipse=d_;exports.IconExcelThumbnail=Oc;exports.IconEye=uo;exports.IconFacebook=po;exports.IconFigma=mo;exports.IconFile=_n;exports.IconFileSystem=fo;exports.IconFileUpload=Mc;exports.IconFilter=Eo;exports.IconFolder=pn;exports.IconFreddyHub=Pc;exports.IconFreddyHubLogo=Fc;exports.IconFreddyHubNewLogo=Gc;exports.IconFreddyHubTitle=Yc;exports.IconFreddySmall=ho;exports.IconGlobExpand=qc;exports.IconGlobe=Wc;exports.IconGoogle=Co;exports.IconHollowCircle=Zc;exports.IconHome=Xc;exports.IconInfoRounded=ct;exports.IconInvalidInvoice=ed;exports.IconInvoice=nd;exports.IconInvoiceSwitch=rd;exports.IconLapTableBottom=id;exports.IconLense=ld;exports.IconLightCross=mn;exports.IconLink04=Pt;exports.IconLoadingError=ud;exports.IconLoadingOrg=pd;exports.IconLocationWithCircleIn=gd;exports.IconLock=To;exports.IconMarketPlace=Ed;exports.IconMaximize=No;exports.IconMicrophone=hd;exports.IconMutedMicrophone=vd;exports.IconNewNotification=Td;exports.IconNewTab=Io;exports.IconNotification=Id;exports.IconOpenBook=Od;exports.IconPaperAirPlane=Ro;exports.IconPauseCircle=wd;exports.IconPdfThumbnail=Md;exports.IconPenEdit=Pd;exports.IconPencil=Fd;exports.IconPeopleHub=Gd;exports.IconPersonCircle=Yd;exports.IconPits=zd;exports.IconPlay=$d;exports.IconPlus=Oo;exports.IconPolygonDown=Kd;exports.IconPresentation=Zd;exports.IconProgressBase=Xd;exports.IconProgressComplete=eu;exports.IconProgressGoing=nu;exports.IconPurpose=ru;exports.IconPurseCircleFill=iu;exports.IconQuestion=At;exports.IconRadio=cu;exports.IconRadioFill=uu;exports.IconRefresh=xo;exports.IconRevertedTraingle=ko;exports.IconRobotScreen=gn;exports.IconRoundTick=gu;exports.IconSearch=fn;exports.IconSearchOptimised=Eu;exports.IconSectionHide=Lo;exports.IconSend=Po;exports.IconSettings=hu;exports.IconSettingsBold=Cu;exports.IconSize=yu;exports.IconSliderKnobs=Au;exports.IconSortIdle=Iu;exports.IconSparkle=En;exports.IconSpotlio=Du;exports.IconStar=Uo;exports.IconStatistics=wu;exports.IconStopChat=Mu;exports.IconStreamLineHub=Pu;exports.IconStreamLineHubNewLogo=Fu;exports.IconStyleDirective=__;exports.IconSun=Gu;exports.IconSwap=Yu;exports.IconText=Vo;exports.IconTextThumbnail=zu;exports.IconThinDocument=$u;exports.IconThinFile=Ku;exports.IconThumbsDown=Ho;exports.IconTick=Nt;exports.IconUser=ju;exports.IconVerticalDots=Xu;exports.IconVideoCamera=e_;exports.IconWarningOctal=n_;exports.IconX=$o;exports.IconZip=a_;exports.InputField=Lt;exports.InstructionsModal=$w;exports.InstructiontextArea=Qw;exports.LoginForm=l2;exports.LoginPage=c2;exports.ModalBox=s2;exports.ModalOverlay=fk;exports.ModelDropdown=Ok;exports.OutputModeModal=Dk;exports.Pagination=Pk;exports.PhoneInput=i2;exports.RegisterForm=d2;exports.RegisterPage=u2;exports.RulesManagement=zv;exports.SearchInput=er;exports.SendButton=Cg;exports.SimpleChatInterface=t2;exports.SkeletonLoader=$k;exports.Slider=tM;exports.SnackBar=lM;exports.SocialButtons=Fy;exports.Spinner=m_;exports.Switch=hg;exports.SwitchSlot=fM;exports.Text=Xt;exports.TextAreaInputField=n2;exports.Themable=KL;exports.ThemableOverviewDashboard=ZL;exports.ThemeSwitcher=_2;exports.ToastMessage=tP;exports.Tooltip=bt;exports.TooltipV2=iP;exports.VectorFrame=Eg;exports.VectorSection=hy;exports.VoiceList=Ay;exports.VoiceSelection=f_;exports.aiResponseToChatMessage=T4;exports.aiTextService=Jt;exports.calculatePercentage=b3;exports.cloneDeepSafe=C4;exports.copyToClipboard=f4;exports.createChangesObject=c_;exports.daysInMonth=I3;exports.debounce=b4;exports.deepEqual=Js;exports.default=x4;exports.defaultImageSrc=Ln;exports.extractStats=y4;exports.fileSizeFormatter=E4;exports.fillMissingDays=h3;exports.flowplateApiService=Jg;exports.flowplateAuthService=O_;exports.flowplateEnvironmentManager=QD;exports.formatDate=T3;exports.formatDateToLocaleString=v3;exports.formatLastUsedDate=A3;exports.frSanitizePlugin=w4;exports.getDatesForMonth=C3;exports.getDaysInMonth=ng;exports.getDisplayContent=l_;exports.getFileNameFromUrl=O3;exports.getShortMonthName=tg;exports.hasOverflow=S4;exports.hasTextImprovements=v4;exports.iconStylePlugin=k4;exports.interpolateColor=R3;exports.isValidAIResponse=A4;exports.openConfirmBoxModal=m4;exports.openDeleteConfirmModal=p4;exports.parseAITextResponse=pg;exports.parseApiResponse=Ko;exports.readableDateFormat=y3;exports.scrollToBottom=kt;exports.scrollToElement=g4;exports.useErrorHandler=sP;exports.usePerformance=lP;exports.useSnackBar=og;exports.useThemeService=tn;exports.useToast=Rc;exports.vFrSanitize=p_;
|
|
232
|
+
`,b()},b=()=>{e.nextTick(()=>{s.value&&(s.value.style.height="auto",s.value.style.height=Math.min(s.value.scrollHeight,120)+"px")})},v=()=>{e.nextTick(()=>{l.value&&(l.value.scrollTop=l.value.scrollHeight)})},T=C=>{a("acceptChanges",C)},E=C=>{C.changes&&(C.changes=void 0),a("denyChanges",C)};return t({addAIResponse:(C,f)=>{const A={id:Date.now().toString(),content:C,sender:"assistant",timestamp:new Date,changes:f};c.value.push(A),v()},addAIResponseFromApi:C=>{const f=Ko(C),A=l_(f),y=c_(f),N={id:Date.now().toString(),content:A,sender:"assistant",timestamp:new Date,applied:!1,changes:y};c.value.push(N),v()}}),(C,f)=>(e.openBlock(),e.createElementBlock("div",ZD,[e.createElementVNode("div",{ref_key:"messagesContainer",ref:l,class:"freddy-plugins-chat-messages"},[e.createElementVNode("div",jD,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,A=>(e.openBlock(),e.createElementBlock("div",{key:A.id,class:e.normalizeClass(["freddy-plugins-message",A.sender])},[A.sender==="user"?(e.openBlock(),e.createElementBlock("div",XD,[e.createElementVNode("div",JD,e.toDisplayString(A.content),1),e.createElementVNode("div",ex,[e.createElementVNode("button",tx,[e.createVNode(e.unref(rn),{class:"freddy-plugins-action-icon"})]),e.createElementVNode("button",nx,[e.createVNode(e.unref(Tt),{class:"freddy-plugins-action-icon"})])])])):(e.openBlock(),e.createElementBlock("div",ox,[e.createElementVNode("div",rx,[e.createElementVNode("p",ax,e.toDisplayString(A.content),1),A.changes?(e.openBlock(),e.createElementBlock("div",ix,[e.createElementVNode("div",sx,[e.createElementVNode("div",lx,[e.createVNode(e.unref(_n),{class:"freddy-plugins-building-icon"}),e.createElementVNode("span",cx,e.toDisplayString(A.changes.title||"Instructions"),1),A.changes.added>0?(e.openBlock(),e.createElementBlock("span",dx,"+"+e.toDisplayString(A.changes.added),1)):e.createCommentVNode("",!0),A.changes.removed>0?(e.openBlock(),e.createElementBlock("span",ux,"-"+e.toDisplayString(A.changes.removed),1)):e.createCommentVNode("",!0),f[1]||(f[1]=e.createElementVNode("span",{class:"freddy-plugins-changes-applied"},"Changes applied",-1))])]),e.createElementVNode("div",_x,[f[5]||(f[5]=e.createElementVNode("div",{class:"freddy-plugins-content-header"},[e.createElementVNode("span",{class:"freddy-plugins-content-title"},"Instructions")],-1)),e.createElementVNode("p",px,e.toDisplayString(A.changes.description),1),A.applied?(e.openBlock(),e.createElementBlock("div",Ex,[e.createVNode(e.unref(on),{class:"freddy-plugins-applied-icon"}),f[4]||(f[4]=e.createTextVNode(" Applied ",-1))])):(e.openBlock(),e.createElementBlock("div",mx,[e.createElementVNode("button",{class:"freddy-plugins-accept-btn",onClick:y=>T(A)},[e.createVNode(e.unref(on),{class:"freddy-plugins-btn-icon"}),f[2]||(f[2]=e.createTextVNode(" Accept ",-1))],8,gx),e.createElementVNode("button",{class:"freddy-plugins-deny-btn",onClick:y=>E(A)},[e.createVNode(e.unref(Ye),{class:"freddy-plugins-btn-icon"}),f[3]||(f[3]=e.createTextVNode(" Deny ",-1))],8,fx)]))])])):e.createCommentVNode("",!0),e.createElementVNode("div",Sx,[e.createElementVNode("button",bx,[e.createVNode(e.unref(xo),{class:"freddy-plugins-action-icon"})]),e.createElementVNode("button",hx,[e.createVNode(e.unref(rn),{class:"freddy-plugins-action-icon"})]),e.createElementVNode("button",Cx,[e.createVNode(e.unref(Ho),{class:"freddy-plugins-action-icon"})])])])]))],2))),128))]),d.value?(e.openBlock(),e.createElementBlock("div",vx,[...f[6]||(f[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",yx,[e.createElementVNode("button",Tx,[e.createVNode(e.unref(pn),{class:"freddy-plugins-folder-icon"})]),e.withDirectives(e.createElementVNode("textarea",{ref_key:"inputRef",ref:s,"onUpdate:modelValue":f[0]||(f[0]=A=>i.value=A),placeholder:C.placeholder||"Type here...",class:"freddy-plugins-chat-input",rows:"1",onKeydown:[e.withKeys(e.withModifiers(g,["exact","prevent"]),["enter"]),e.withKeys(e.withModifiers(p,["shift","exact"]),["enter"])],onInput:b},null,40,Ax),[[e.vModelText,i.value]]),e.createElementVNode("button",{class:"freddy-plugins-send-button",disabled:!i.value.trim(),onClick:g},[e.createVNode(e.unref(Ro),{class:"freddy-plugins-send-icon"})],8,Nx)])]))}}),Ix={class:"freddy-plugins-edit-excerpt-modal-content"},Rx={class:"freddy-plugins-edit-excerpt-modal-header"},Ox={class:"freddy-plugins-edit-excerpt-modal-header-content"},Dx={class:"freddy-plugins-edit-excerpt-modal-icon"},xx={class:"freddy-plugins-edit-excerpt-modal-text"},wx={class:"freddy-plugins-edit-excerpt-modal-title"},kx={class:"freddy-plugins-edit-excerpt-modal-subtitle"},Mx={class:"freddy-plugins-edit-excerpt-modal-textarea-section"},Lx={class:"freddy-plugins-edit-excerpt-modal-footer"},Px={class:"freddy-plugins-edit-excerpt-modal-footer-content"},Bx={key:0,class:"freddy-plugins-edit-excerpt-modal-ai-container"},Fx=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(n,{emit:t}){const o=n,r=t,a=e.ref(o.initialContent),i=e.ref(!1),l=e.ref([]),s=e.ref(null);e.watch(()=>o.initialContent,E=>{a.value=E});const c=()=>{i.value=!1,l.value=[],r("close")},d=()=>{r("save",a.value)},u=()=>{i.value=!1,l.value=[],r("cancel")},_=()=>{i.value=!0,r("toggleAI",i.value),r("askAI",a.value)},m=()=>{i.value=!1,r("toggleAI",i.value)},g=async E=>{},p=E=>{E.changes&&E.changes.data&&E.changes.data.improvedText&&(a.value,a.value=E.changes.data.improvedText,E.applied=!0)},b=E=>{},v=E=>{},T=E=>{};return(E,h)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[n.isVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"freddy-plugins-edit-excerpt-modal-overlay",onClick:e.withModifiers(c,["self"])},[e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-edit-excerpt-modal-container",{"ai-active":i.value}])},[e.createElementVNode("div",Ix,[e.createElementVNode("div",Rx,[e.createElementVNode("div",Ox,[e.createElementVNode("div",Dx,[e.createVNode(e.unref(co),{class:"freddy-plugins-edit-excerpt-edit-icon","center-distance":36,"circle-gap":44,"show-circles":!0})]),e.createElementVNode("div",xx,[e.createElementVNode("h2",wx,e.toDisplayString(n.title),1),e.createElementVNode("p",kx,e.toDisplayString(n.description),1)])]),e.createElementVNode("button",{class:"freddy-plugins-edit-excerpt-modal-close-btn",style:e.normalizeStyle({right:i.value?"52px":"16px"}),onClick:c,"aria-label":"Close modal"},[e.createVNode(e.unref(Ye),{class:"freddy-plugins-edit-excerpt-modal-close-icon"})],4),i.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:"freddy-plugins-edit-excerpt-modal-close-btn",style:{right:"16px"},onClick:m,"aria-label":"Hide AI"},[e.createVNode(Lo,{class:"freddy-plugins-edit-excerpt-hide-section-icon"})])):e.createCommentVNode("",!0),h[1]||(h[1]=e.createElementVNode("div",{class:"freddy-plugins-edit-excerpt-modal-header-spacing"},null,-1))]),e.createElementVNode("div",Mx,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":h[0]||(h[0]=S=>a.value=S),class:"freddy-plugins-edit-excerpt-modal-textarea",placeholder:"The text thats needed",rows:"12"},null,512),[[e.vModelText,a.value]])]),e.createElementVNode("div",Lx,[e.createElementVNode("div",Px,[i.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,class:"freddy-plugins-edit-excerpt-modal-ai-btn",onClick:_},[e.createVNode(e.unref(En),{class:"freddy-plugins-edit-excerpt-modal-ai-icon"}),h[2]||(h[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:u}," Cancel "),e.createElementVNode("button",{class:"freddy-plugins-edit-excerpt-modal-save-btn",onClick:d}," Save changes ")])])])]),i.value?(e.openBlock(),e.createElementBlock("div",Bx,[e.createVNode(t2,{ref_key:"chatRef",ref:s,placeholder:"Type here...",messages:l.value,"enable-a-i":!0,"openai-api-key":n.openaiApiKey,"text-box-content":a.value,onSend:g,onAcceptChanges:p,onDenyChanges:b,onTextReplacement:v,onTextCompletion:T},null,8,["messages","openai-api-key","text-box-content"])])):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0)]),_:1}))}}),Vn=R(Fx,[["__scopeId","data-v-5aacf574"]]),Ux={class:"freddy-plugins-textarea-input-field-wrapper"},Gx={class:"freddy-plugins-textarea-input-container"},Vx={class:"freddy-plugins-textarea-header"},Yx={class:"freddy-plugins-textarea-label-wrapper"},Hx={class:"freddy-plugins-textarea-label-container"},zx={key:0,class:"freddy-plugins-textarea-required"},qx={class:"freddy-plugins-textarea-input-wrapper"},$x=["placeholder","disabled","readonly"],Wx={key:1,class:"freddy-plugins-textarea-diff-container"},Kx={class:"freddy-plugins-textarea-diff-content"},Qx={class:"freddy-plugins-textarea-diff-block freddy-plugins-textarea-diff-block--old"},Zx={class:"freddy-plugins-textarea-diff-block freddy-plugins-textarea-diff-block--new"},jx={key:2,class:"freddy-plugins-textarea-tags-container"},Xx={class:"freddy-plugins-textarea-tags"},Jx={class:"freddy-plugins-textarea-tag-content"},ew=["onClick","onKeydown","aria-label"],tw=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(n,{expose:t,emit:o}){const r=n,a=o,i=e.ref(null),l=e.ref(null),s=e.ref(r.modelValue),c=e.ref(""),d=e.ref(!1),u=e.ref("expand"),_=e.ref(!1),m=e.computed(()=>r.showTags&&r.tags.length>0?"":r.placeholder);e.watch(()=>r.modelValue,D=>{s.value=D});const g=()=>{a("update:modelValue",s.value),a("input",s.value)},p=D=>{_.value=!0,a("focus",D)},b=D=>{_.value=!1,a("blur",D)},v=D=>{},T=()=>{r.tagsOnly&&a("tags-click")},E=()=>{a("tooltip-click")},h=D=>{(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),E())},S=()=>{c.value=s.value,u.value="ai",d.value=!0,a("ask-ai",s.value)},C=D=>{(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),S())},f=()=>{c.value=s.value,u.value="expand",d.value=!0,a("expand",s.value)},A=D=>{(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),f())},y=D=>{a("remove-tag",D)},N=(D,K)=>{(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),y(K))},k=()=>{s.value=c.value,a("update:modelValue",c.value),a("input",c.value),d.value=!1},O=D=>{s.value=D,a("update:modelValue",D),a("input",D),d.value=!1},H=()=>{s.value=c.value,a("update:modelValue",c.value),a("input",c.value),d.value=!1},j=()=>{a("ask-ai",s.value)},w=D=>{};return t({focus:()=>{var D;(D=i.value)==null||D.focus()}}),(D,K)=>(e.openBlock(),e.createElementBlock("div",Ux,[e.createElementVNode("div",Gx,[e.createElementVNode("div",Vx,[e.createElementVNode("div",Yx,[e.createElementVNode("div",Hx,[e.createElementVNode("label",{class:e.normalizeClass(["freddy-plugins-textarea-label",{"freddy-plugins-textarea-label--underlined":D.showUnderlines}])},e.toDisplayString(D.dynamicTitle||D.label),3),D.required?(e.openBlock(),e.createElementBlock("span",zx,"*")):e.createCommentVNode("",!0),D.showTooltip&&D.tooltipText?(e.openBlock(),e.createBlock(bt,{key:1,text:D.tooltipText,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("button",{type:"button",class:"freddy-plugins-textarea-tooltip-button","aria-label":"Help",tabindex:"0",onClick:E,onKeydown:h},[e.createVNode(e.unref(At),{class:"freddy-plugins-textarea-tooltip-icon"})],32)]),_:1},8,["text"])):e.createCommentVNode("",!0)])]),D.showAiButton?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"freddy-plugins-textarea-ai-button",onClick:S,onKeydown:C,"aria-label":"Ask AI for help",tabindex:"0"},[e.createVNode(e.unref(En),{class:"freddy-plugins-textarea-ai-icon"})],32)):e.createCommentVNode("",!0)]),e.createElementVNode("div",qx,[D.diffMode?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:0,ref_key:"textareaRef",ref:i,"onUpdate:modelValue":K[0]||(K[0]=M=>s.value=M),class:e.normalizeClass(["freddy-plugins-textarea-input",{"freddy-plugins-textarea-input--error":D.hasError,"freddy-plugins-textarea-input--disabled":D.disabled,"freddy-plugins-textarea-input--focused":_.value,"freddy-plugins-textarea-input--with-tags":D.showTags&&D.tags.length>0,"freddy-plugins-textarea-input--tags-only":D.tagsOnly}]),placeholder:m.value,disabled:D.disabled,readonly:D.readonly||D.tagsOnly,onInput:g,onFocus:p,onBlur:b,onKeydown:v,onClick:T},null,42,$x)),[[e.vModelText,s.value]]),D.diffMode?(e.openBlock(),e.createElementBlock("div",Wx,[e.createElementVNode("div",Kx,[e.createElementVNode("div",Qx,e.toDisplayString(D.oldText),1),e.createElementVNode("div",Zx,e.toDisplayString(D.newText),1)])])):e.createCommentVNode("",!0),D.showTags&&D.tags.length>0?(e.openBlock(),e.createElementBlock("div",jx,[e.createElementVNode("div",Xx,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.tags,(M,L)=>(e.openBlock(),e.createElementBlock("div",{key:`${M}-${L}`,class:"freddy-plugins-textarea-tag"},[e.createElementVNode("div",Jx,[e.createElementVNode("span",{class:e.normalizeClass(["freddy-plugins-textarea-tag-text",{"freddy-plugins-textarea-tag-text--underlined":D.showUnderlines}])},e.toDisplayString(M),3)]),e.createElementVNode("button",{type:"button",class:"freddy-plugins-textarea-tag-close",onClick:G=>y(L),onKeydown:G=>N(G,L),"aria-label":`Remove ${M} tag`,tabindex:"0"},[e.createVNode(e.unref(Ye),{class:"freddy-plugins-textarea-tag-close-icon"})],40,ew)]))),128))]),D.showAddTagsPlaceholder?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["freddy-plugins-textarea-add-tags",{"freddy-plugins-textarea-add-tags--underlined":D.showUnderlines}])},e.toDisplayString(D.addTagsPlaceholder),3)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:"freddy-plugins-textarea-expand-button",onClick:f,onKeydown:A,"aria-label":"Expand textarea",tabindex:"0"},[e.createVNode(No,{class:"freddy-plugins-textarea-expand-icon"})],32)])]),D.showHint&&D.hintText&&!D.hasError?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["freddy-plugins-textarea-hint-text",{"freddy-plugins-textarea-hint-text--underlined":D.showUnderlines}])},e.toDisplayString(D.hintText),3)):e.createCommentVNode("",!0),D.hasError&&D.errorMessage?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(["freddy-plugins-textarea-error-text",{"freddy-plugins-textarea-error-text--underlined":D.showUnderlines}])},e.toDisplayString(D.errorMessage),3)):e.createCommentVNode("",!0),u.value==="ai"?(e.openBlock(),e.createBlock(Vn,{key:2,ref_key:"aiModalRef",ref:l,"is-visible":d.value&&u.value==="ai",title:D.modalTitle,description:D.modalDescription,"initial-content":s.value,"openai-api-key":D.openaiApiKey,"openai-model":D.openaiModel,"openai-organization":D.openaiOrganization,"auto-show-a-i":!0,onClose:k,onSave:O,onCancel:H,onAskAI:j,onToggleAI:w},null,8,["is-visible","title","description","initial-content","openai-api-key","openai-model","openai-organization"])):e.createCommentVNode("",!0),u.value==="expand"?(e.openBlock(),e.createBlock(Vn,{key:3,"is-visible":d.value&&u.value==="expand",title:D.modalTitle,description:D.modalDescription,"initial-content":s.value,"openai-api-key":"","openai-model":D.openaiModel,"openai-organization":"",onClose:k,onSave:O,onCancel:H},null,8,["is-visible","title","description","initial-content","openai-model"])):e.createCommentVNode("",!0)]))}}),n2=R(tw,[["__scopeId","data-v-c6385f70"]]),nw=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(n,{expose:t,emit:o}){const r=n,a=o,i=e.ref(r.modelValue),l=e.ref([...r.tags]);e.watch(()=>r.modelValue,f=>{i.value=f}),e.watch(()=>r.tags,f=>{l.value=[...f]},{deep:!0});const s=e.computed(()=>r.type==="tags"),c=e.computed(()=>r.type==="tags"&&(r.stage==="placeholder"||r.stage==="focused")),d=e.computed(()=>(r.stage==="focused","Add tags...")),u=e.computed(()=>r.stage==="error"||r.destructive);e.computed(()=>u.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 _=f=>{i.value=f,a("update:modelValue",f)},m=f=>{a("input",f)},g=f=>{a("focus",f)},p=f=>{a("blur",f)},b=f=>{a("ask-ai",f)},v=f=>{a("expand",f)},T=f=>{l.value.splice(f,1),a("remove-tag",f)},E=()=>{a("tooltip-click")},h=f=>{a("add-tag",f)},S=()=>{a("tags-click")};return t({focus:()=>{}}),(f,A)=>(e.openBlock(),e.createBlock(n2,{modelValue:i.value,"onUpdate:modelValue":[A[0]||(A[0]=y=>i.value=y),_],label:f.label,placeholder:f.placeholder,disabled:f.disabled,readonly:f.readonly,required:f.required,"show-tooltip":f.showTooltip,"tooltip-text":f.tooltipText,"show-ai-button":f.showAiButton,"show-tags":s.value,tags:l.value,"show-add-tags-placeholder":c.value,"add-tags-placeholder":d.value,"hint-text":f.hintText,"has-error":u.value,"error-message":f.errorMessage,"modal-title":f.modalTitle,"modal-description":f.modalDescription,"openai-api-key":f.openaiApiKey,"openai-model":f.openaiModel,"openai-organization":f.openaiOrganization,"show-underlines":f.showUnderlines,"dynamic-title":f.dynamicTitle,"show-hint":f.showHint,"diff-mode":f.diffMode,"old-text":f.oldText,"new-text":f.newText,"tags-only":f.tagsOnly,onInput:m,onFocus:g,onBlur:p,onAskAi:b,onExpand:v,onRemoveTag:T,onTooltipClick:E,onAddTag:h,onTagsClick:S},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"]))}}),ow=R(nw,[["__scopeId","data-v-19ded011"]]),rw={class:"freddy-plugins-diff-container"},aw=["innerHTML"],iw=["placeholder"],sw=e.defineComponent({__name:"DiffTextarea",props:{modelValue:{},placeholder:{default:"Enter your text..."},originalText:{},improvedText:{},showDiff:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{expose:t,emit:o}){const r=n,a=o,i=e.ref(null),l=e.ref(r.modelValue);e.watch(()=>r.modelValue,d=>{l.value=d});const s=()=>{a("update:modelValue",l.value)},c=e.computed(()=>{if(!r.originalText||!r.improvedText)return"";const d=r.originalText.split(/(\s+)/),u=r.improvedText.split(/(\s+)/);let _="";const m=d.filter(p=>!u.includes(p)&&p.trim()).join(" ");m&&(_+=`<span class="freddy-plugins-diff-removed">${m}</span>`);const g=u.filter(p=>!d.includes(p)&&p.trim()).join(" ");return g&&(_&&(_+="<br>"),_+=`<span class="freddy-plugins-diff-added">${g}</span>`),_||(_=`<span class="freddy-plugins-diff-improved">${r.improvedText}</span>`),_});return t({focus:()=>{var d;return(d=i.value)==null?void 0:d.focus()},blur:()=>{var d;return(d=i.value)==null?void 0:d.blur()}}),(d,u)=>(e.openBlock(),e.createElementBlock("div",rw,[d.showDiff&&c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"freddy-plugins-diff-preview",innerHTML:c.value},null,8,aw)):e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:1,ref_key:"textareaRef",ref:i,"onUpdate:modelValue":u[0]||(u[0]=_=>l.value=_),class:"freddy-plugins-diff-textarea",placeholder:d.placeholder,onInput:s},null,40,iw)),[[e.vModelText,l.value]])]))}}),lw=R(sw,[["__scopeId","data-v-54efeaf3"]]),cw={class:"verification-container"},dw={class:"verification-header"},uw={class:"verification-subtitle"},_w={class:"code-input-container"},pw={class:"code-inputs"},mw=["onUpdate:modelValue","onInput","onKeydown","disabled"],gw={class:"verification-actions"},fw={key:0,class:"error-message"},Ew={class:"verification-footer"},Sw={class:"resend-text"},bw=["disabled"],hw=e.defineComponent({__name:"EmailCodeVerification",props:{email:{},brand:{default:"contentplate"},loading:{type:Boolean,default:!1},error:{default:""},resendCooldown:{default:0}},emits:["verify","resend"],setup(n,{emit:t}){const{currentProject:o,currentColorMode:r}=me(),a=n,{brand:i,loading:l,error:s,resendCooldown:c}=a,d=t,u=e.ref(["","","",""]),_=e.ref([]),m=e.computed(()=>u.value.every(h=>h!=="")),g=e.computed(()=>u.value.join("")),p=(h,S)=>{const C=S.target,f=C.value;if(!/^\d*$/.test(f)){C.value="";return}u.value[h]=f,f&&h<3&&e.nextTick(()=>{var A;(A=_.value[h+1])==null||A.focus()})},b=(h,S)=>{S.key==="Backspace"&&!u.value[h]&&h>0&&e.nextTick(()=>{var C;(C=_.value[h-1])==null||C.focus()})},v=h=>{var y;h.preventDefault();const S=(y=h.clipboardData)==null?void 0:y.getData("text");if(!S)return;const C=S.replace(/\D/g,"").slice(0,4).split("");u.value=[...C,"","","",""].slice(0,4);const f=u.value.findIndex(N=>N===""),A=f===-1?3:f;e.nextTick(()=>{var N;(N=_.value[A])==null||N.focus()})},T=()=>{m.value&&d("verify",g.value)},E=()=>{d("resend")};return e.onMounted(()=>{e.nextTick(()=>{var h;(h=_.value[0])==null||h.focus()})}),(h,S)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["email-verification",`email-verification--${e.unref(i)}`])},[e.createElementVNode("div",cw,[e.createElementVNode("div",dw,[S[1]||(S[1]=e.createElementVNode("h2",{class:"verification-title"},"Verify Your Email",-1)),e.createElementVNode("p",uw,[S[0]||(S[0]=e.createTextVNode(" We've sent a 4-digit verification code to ",-1)),e.createElementVNode("strong",null,e.toDisplayString(h.email),1)])]),e.createElementVNode("form",{onSubmit:e.withModifiers(T,["prevent"]),class:"verification-form"},[e.createElementVNode("div",_w,[e.createElementVNode("div",pw,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,(C,f)=>e.withDirectives(e.createElementVNode("input",{key:f,ref_for:!0,ref:A=>_.value[f]=A,"onUpdate:modelValue":A=>u.value[f]=A,type:"text",maxlength:"1",class:e.normalizeClass(["code-input",`code-input--${e.unref(i)}`]),onInput:A=>p(f,A),onKeydown:A=>b(f,A),onPaste:v,disabled:e.unref(l),autocomplete:"one-time-code"},null,42,mw),[[e.vModelText,u.value[f]]])),64))])]),e.createElementVNode("div",gw,[e.createVNode(ht,{type:"submit",label:e.unref(l)?"Verifying...":"Verify Code",hierarchy:"primary",size:"lg",loading:e.unref(l),disabled:!m.value||e.unref(l),class:e.normalizeClass(`verify-button verify-button--${e.unref(i)}`)},null,8,["label","loading","disabled","class"])]),e.unref(s)?(e.openBlock(),e.createElementBlock("div",fw,e.toDisplayString(e.unref(s)),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Ew,[e.createElementVNode("p",Sw,[S[2]||(S[2]=e.createTextVNode(" Didn't receive the code? ",-1)),e.createElementVNode("button",{type:"button",class:"resend-button",disabled:e.unref(c)>0,onClick:E},e.toDisplayString(e.unref(c)>0?`Resend in ${e.unref(c)}s`:"Resend code"),9,bw)])])],32)])],2))}}),Cw={class:"freddy-plugins-input-field-wrapper"},vw=["for"],yw={key:0,class:"freddy-plugins-required-asterisk"},Tw=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(n,{expose:t,emit:o}){const r=n,a=o,i=e.computed(()=>`input-${Math.random().toString(36).substr(2,9)}`),l=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"})),s=()=>{r.state!=="disabled"&&a("focus",new FocusEvent("focus"))};return t({inputId:i,containerClasses:l,focusInput:s}),(c,d)=>(e.openBlock(),e.createElementBlock("div",Cw,[c.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:i.value,class:e.normalizeClass(["freddy-plugins-input-field-label",`freddy-plugins-input-field-label--${c.colorStyle}`])},[e.createTextVNode(e.toDisplayString(c.label)+" ",1),c.required?(e.openBlock(),e.createElementBlock("span",yw,"*")):e.createCommentVNode("",!0)],10,vw)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-input-field-container",l.value]),onClick:s},[e.renderSlot(c.$slots,"default",{},void 0,!0)],2),c.hintText?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(["freddy-plugins-input-hint-text",`freddy-plugins-input-hint-text--${c.colorStyle}`])},e.toDisplayString(c.hintText),3)):e.createCommentVNode("",!0)]))}}),Jo=R(Tw,[["__scopeId","data-v-bb114a19"]]),o2=(n,t,o)=>{const r=n[t];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((a,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==o?". Note that variables only represent file names one level deep.":""))))})},Aw=["src","alt"],Nw=["id","placeholder","disabled","readonly","maxlength"],Iw=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(n,{expose:t,emit:o}){const r=n,a=o,i=e.ref(null),l=e.ref(null),s=e.ref(""),c=e.ref(""),d=e.ref("unknown"),u=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=>y?typeof y=="object"?y:typeof y=="string"?e.defineAsyncComponent(()=>o2(Object.assign({"../../icons/IconAddFileSystem.vue":()=>Promise.resolve().then(()=>il),"../../icons/IconAddPeople.vue":()=>Promise.resolve().then(()=>ll),"../../icons/IconAitronos.vue":()=>Promise.resolve().then(()=>dl),"../../icons/IconApple.vue":()=>Promise.resolve().then(()=>ul),"../../icons/IconApplePay.vue":()=>Promise.resolve().then(()=>pl),"../../icons/IconArrowDown.vue":()=>Promise.resolve().then(()=>qn),"../../icons/IconArrowLeft.vue":()=>Promise.resolve().then(()=>$n),"../../icons/IconArrowUp.vue":()=>Promise.resolve().then(()=>Wn),"../../icons/IconBadgeCheck.vue":()=>Promise.resolve().then(()=>El),"../../icons/IconBroom.vue":()=>Promise.resolve().then(()=>bl),"../../icons/IconBuildings.vue":()=>Promise.resolve().then(()=>Cl),"../../icons/IconCalendarWithTickInside.vue":()=>Promise.resolve().then(()=>yl),"../../icons/IconCallNotAllowed.vue":()=>Promise.resolve().then(()=>Al),"../../icons/IconCardPay.vue":()=>Promise.resolve().then(()=>Il),"../../icons/IconCaution.vue":()=>Promise.resolve().then(()=>Rl),"../../icons/IconChangeLog.vue":()=>Promise.resolve().then(()=>Dl),"../../icons/IconCheckCircleFill.vue":()=>Promise.resolve().then(()=>xl),"../../icons/IconCheckInCircle.vue":()=>Promise.resolve().then(()=>wl),"../../icons/IconCheckRounded.vue":()=>Promise.resolve().then(()=>kl),"../../icons/IconChevronDown.vue":()=>Promise.resolve().then(()=>jn),"../../icons/IconChevronLeft.vue":()=>Promise.resolve().then(()=>Xn),"../../icons/IconChevronRight.vue":()=>Promise.resolve().then(()=>Jn),"../../icons/IconChevronUp.vue":()=>Promise.resolve().then(()=>eo),"../../icons/IconCircledCheck.vue":()=>Promise.resolve().then(()=>Bl),"../../icons/IconClock.vue":()=>Promise.resolve().then(()=>Ul),"../../icons/IconClosedEnvelope.vue":()=>Promise.resolve().then(()=>Vl),"../../icons/IconCloudUpload.vue":()=>Promise.resolve().then(()=>Hl),"../../icons/IconConnectorConfluence.vue":()=>Promise.resolve().then(()=>ql),"../../icons/IconConnectorFigma.vue":()=>Promise.resolve().then(()=>Wl),"../../icons/IconConnectorFreshDesk.vue":()=>Promise.resolve().then(()=>Ql),"../../icons/IconConnectorGitHub.vue":()=>Promise.resolve().then(()=>jl),"../../icons/IconConnectorJira.vue":()=>Promise.resolve().then(()=>Jl),"../../icons/IconConnectorLinear.vue":()=>Promise.resolve().then(()=>tc),"../../icons/IconConnectorNotion.vue":()=>Promise.resolve().then(()=>oc),"../../icons/IconConnectorSlack.vue":()=>Promise.resolve().then(()=>ac),"../../icons/IconConnectorZapier.vue":()=>Promise.resolve().then(()=>sc),"../../icons/IconCopy.vue":()=>Promise.resolve().then(()=>to),"../../icons/IconCross.vue":()=>Promise.resolve().then(()=>no),"../../icons/IconCrossCircleFill.vue":()=>Promise.resolve().then(()=>cc),"../../icons/IconCrossInCircle.vue":()=>Promise.resolve().then(()=>uc),"../../icons/IconCurrentTick.vue":()=>Promise.resolve().then(()=>pc),"../../icons/IconDataUpload.vue":()=>Promise.resolve().then(()=>mc),"../../icons/IconDelete.vue":()=>Promise.resolve().then(()=>ao),"../../icons/IconDeleteFillRed.vue":()=>Promise.resolve().then(()=>fc),"../../icons/IconDialingPhone.vue":()=>Promise.resolve().then(()=>Sc),"../../icons/IconDisabledAlert.vue":()=>Promise.resolve().then(()=>hc),"../../icons/IconDocumentation.vue":()=>Promise.resolve().then(()=>vc),"../../icons/IconDownload.vue":()=>Promise.resolve().then(()=>io),"../../icons/IconDribbble.vue":()=>Promise.resolve().then(()=>Tc),"../../icons/IconDropdownArrow.vue":()=>Promise.resolve().then(()=>Nc),"../../icons/IconEdit.vue":()=>Promise.resolve().then(()=>lo),"../../icons/IconEditLinePath.vue":()=>Promise.resolve().then(()=>Ic),"../../icons/IconEllipse.vue":()=>Promise.resolve().then(()=>u_),"../../icons/IconExcelThumbnail.vue":()=>Promise.resolve().then(()=>Dc),"../../icons/IconEye.vue":()=>Promise.resolve().then(()=>_o),"../../icons/IconFacebook.vue":()=>Promise.resolve().then(()=>xc),"../../icons/IconFigma.vue":()=>Promise.resolve().then(()=>wc),"../../icons/IconFile.vue":()=>Promise.resolve().then(()=>go),"../../icons/IconFileSystem.vue":()=>Promise.resolve().then(()=>kc),"../../icons/IconFileUpload.vue":()=>Promise.resolve().then(()=>Lc),"../../icons/IconFilter.vue":()=>Promise.resolve().then(()=>So),"../../icons/IconFolder.vue":()=>Promise.resolve().then(()=>bo),"../../icons/IconFreddyHub.vue":()=>Promise.resolve().then(()=>Bc),"../../icons/IconFreddyHubLogo.vue":()=>Promise.resolve().then(()=>Uc),"../../icons/IconFreddyHubNewLogo.vue":()=>Promise.resolve().then(()=>Vc),"../../icons/IconFreddyHubTitle.vue":()=>Promise.resolve().then(()=>Hc),"../../icons/IconFreddySmall.vue":()=>Promise.resolve().then(()=>zc),"../../icons/IconGlobExpand.vue":()=>Promise.resolve().then(()=>$c),"../../icons/IconGlobe.vue":()=>Promise.resolve().then(()=>Kc),"../../icons/IconGoogle.vue":()=>Promise.resolve().then(()=>Qc),"../../icons/IconHollowCircle.vue":()=>Promise.resolve().then(()=>jc),"../../icons/IconHome.vue":()=>Promise.resolve().then(()=>vo),"../../icons/IconInfoRounded.vue":()=>Promise.resolve().then(()=>Jc),"../../icons/IconInvalidInvoice.vue":()=>Promise.resolve().then(()=>td),"../../icons/IconInvoice.vue":()=>Promise.resolve().then(()=>od),"../../icons/IconInvoiceSwitch.vue":()=>Promise.resolve().then(()=>ad),"../../icons/IconLapTableBottom.vue":()=>Promise.resolve().then(()=>sd),"../../icons/IconLense.vue":()=>Promise.resolve().then(()=>cd),"../../icons/IconLightCross.vue":()=>Promise.resolve().then(()=>dd),"../../icons/IconLink04.vue":()=>Promise.resolve().then(()=>yo),"../../icons/IconLoadingError.vue":()=>Promise.resolve().then(()=>_d),"../../icons/IconLoadingOrg.vue":()=>Promise.resolve().then(()=>md),"../../icons/IconLocationWithCircleIn.vue":()=>Promise.resolve().then(()=>fd),"../../icons/IconLock.vue":()=>Promise.resolve().then(()=>Ao),"../../icons/IconMarketPlace.vue":()=>Promise.resolve().then(()=>Sd),"../../icons/IconMaximize.vue":()=>Promise.resolve().then(()=>bd),"../../icons/IconMicrophone.vue":()=>Promise.resolve().then(()=>Cd),"../../icons/IconMutedMicrophone.vue":()=>Promise.resolve().then(()=>yd),"../../icons/IconNewNotification.vue":()=>Promise.resolve().then(()=>Ad),"../../icons/IconNewTab.vue":()=>Promise.resolve().then(()=>Nd),"../../icons/IconNotification.vue":()=>Promise.resolve().then(()=>Rd),"../../icons/IconOpenBook.vue":()=>Promise.resolve().then(()=>Dd),"../../icons/IconPaperAirPlane.vue":()=>Promise.resolve().then(()=>xd),"../../icons/IconPauseCircle.vue":()=>Promise.resolve().then(()=>kd),"../../icons/IconPdfThumbnail.vue":()=>Promise.resolve().then(()=>Ld),"../../icons/IconPenEdit.vue":()=>Promise.resolve().then(()=>Bd),"../../icons/IconPencil.vue":()=>Promise.resolve().then(()=>Ud),"../../icons/IconPeopleHub.vue":()=>Promise.resolve().then(()=>Vd),"../../icons/IconPersonCircle.vue":()=>Promise.resolve().then(()=>Hd),"../../icons/IconPits.vue":()=>Promise.resolve().then(()=>qd),"../../icons/IconPlay.vue":()=>Promise.resolve().then(()=>Wd),"../../icons/IconPlus.vue":()=>Promise.resolve().then(()=>Do),"../../icons/IconPolygonDown.vue":()=>Promise.resolve().then(()=>Qd),"../../icons/IconPresentation.vue":()=>Promise.resolve().then(()=>jd),"../../icons/IconProgressBase.vue":()=>Promise.resolve().then(()=>Jd),"../../icons/IconProgressComplete.vue":()=>Promise.resolve().then(()=>tu),"../../icons/IconProgressGoing.vue":()=>Promise.resolve().then(()=>ou),"../../icons/IconPurpose.vue":()=>Promise.resolve().then(()=>au),"../../icons/IconPurseCircleFill.vue":()=>Promise.resolve().then(()=>su),"../../icons/IconQuestion.vue":()=>Promise.resolve().then(()=>lu),"../../icons/IconRadio.vue":()=>Promise.resolve().then(()=>du),"../../icons/IconRadioFill.vue":()=>Promise.resolve().then(()=>_u),"../../icons/IconRefresh.vue":()=>Promise.resolve().then(()=>wo),"../../icons/IconRevertedTraingle.vue":()=>Promise.resolve().then(()=>pu),"../../icons/IconRobotScreen.vue":()=>Promise.resolve().then(()=>mu),"../../icons/IconRoundTick.vue":()=>Promise.resolve().then(()=>fu),"../../icons/IconSearch.vue":()=>Promise.resolve().then(()=>Mo),"../../icons/IconSearchOptimised.vue":()=>Promise.resolve().then(()=>Su),"../../icons/IconSectionHide.vue":()=>Promise.resolve().then(()=>bu),"../../icons/IconSend.vue":()=>Promise.resolve().then(()=>Bo),"../../icons/IconSettings.vue":()=>Promise.resolve().then(()=>Fo),"../../icons/IconSettingsBold.vue":()=>Promise.resolve().then(()=>vu),"../../icons/IconSize.vue":()=>Promise.resolve().then(()=>Tu),"../../icons/IconSliderKnobs.vue":()=>Promise.resolve().then(()=>Nu),"../../icons/IconSortIdle.vue":()=>Promise.resolve().then(()=>Ru),"../../icons/IconSparkle.vue":()=>Promise.resolve().then(()=>Ou),"../../icons/IconSpotlio.vue":()=>Promise.resolve().then(()=>xu),"../../icons/IconStar.vue":()=>Promise.resolve().then(()=>Go),"../../icons/IconStatistics.vue":()=>Promise.resolve().then(()=>ku),"../../icons/IconStopChat.vue":()=>Promise.resolve().then(()=>Lu),"../../icons/IconStreamLineHub.vue":()=>Promise.resolve().then(()=>Bu),"../../icons/IconStreamLineHubNewLogo.vue":()=>Promise.resolve().then(()=>Uu),"../../icons/IconSun.vue":()=>Promise.resolve().then(()=>Vu),"../../icons/IconSwap.vue":()=>Promise.resolve().then(()=>Hu),"../../icons/IconText.vue":()=>Promise.resolve().then(()=>Yo),"../../icons/IconTextThumbnail.vue":()=>Promise.resolve().then(()=>qu),"../../icons/IconThinDocument.vue":()=>Promise.resolve().then(()=>Wu),"../../icons/IconThinFile.vue":()=>Promise.resolve().then(()=>Qu),"../../icons/IconThumbsDown.vue":()=>Promise.resolve().then(()=>Zu),"../../icons/IconTick.vue":()=>Promise.resolve().then(()=>zo),"../../icons/IconUser.vue":()=>Promise.resolve().then(()=>qo),"../../icons/IconVerticalDots.vue":()=>Promise.resolve().then(()=>Ju),"../../icons/IconVideoCamera.vue":()=>Promise.resolve().then(()=>t_),"../../icons/IconWarningOctal.vue":()=>Promise.resolve().then(()=>o_),"../../icons/IconX.vue":()=>Promise.resolve().then(()=>r_),"../../icons/IconZip.vue":()=>Promise.resolve().then(()=>i_)}),`../../icons/${y}.vue`,4).catch(()=>({template:"<div></div>"}))):null:null,m=e.computed(()=>_(r.trailingIcon)),g=e.computed(()=>{switch(d.value){case"amex":return 17;default:return 19}}),p=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&&d.value!=="unknown","freddy-plugins-input-field--with-trailing":!!m.value})),b=y=>{const N=y.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"},v=y=>{const N=y.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)},T=y=>{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[y]||N.unknown},E=y=>{const k=y.target.value;s.value=k.replace(/\D/g,""),c.value=v(k);const O=b(s.value);O!==d.value&&(d.value=O,a("card-type-detected",O)),a("update:modelValue",c.value),a("update:cardNumber",s.value),a("input",c.value)},h=y=>{[8,9,27,13,46].indexOf(y.keyCode)!==-1||y.keyCode===65&&y.ctrlKey===!0||y.keyCode===67&&y.ctrlKey===!0||y.keyCode===86&&y.ctrlKey===!0||y.keyCode===88&&y.ctrlKey===!0||y.keyCode>=35&&y.keyCode<=39||(y.shiftKey||y.keyCode<48||y.keyCode>57)&&(y.keyCode<96||y.keyCode>105)&&y.preventDefault()},S=y=>{a("focus",y)},C=y=>{a("blur",y)},f=y=>{a("trailing-icon-click",y)},A=()=>{var y;(y=i.value)==null||y.focus()};return e.watch(()=>r.cardNumber,y=>{y!==s.value&&(s.value=y,c.value=v(y),d.value=b(y))},{immediate:!0}),t({focus:A,inputRef:i}),(y,N)=>(e.openBlock(),e.createBlock(Jo,e.mergeProps(u.value,{onFocus:S,onBlur:C}),{default:e.withCtx(()=>{var k;return[y.showCardIcon&&d.value!=="unknown"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["freddy-plugins-card-type-icon",`freddy-plugins-card-type-icon--${y.colorStyle}`])},[e.createElementVNode("img",{src:T(d.value),alt:`${d.value} card`,class:"freddy-plugins-card-icon-image"},null,8,Aw)],2)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:(k=l.value)==null?void 0:k.inputId,ref_key:"inputRef",ref:i,"onUpdate:modelValue":N[0]||(N[0]=O=>c.value=O),type:"text",inputmode:"numeric",placeholder:y.placeholder,disabled:y.disabled,readonly:y.readonly,maxlength:g.value,class:e.normalizeClass(["freddy-plugins-input-field freddy-plugins-card-input-field",p.value]),onInput:E,onKeydown:h,onFocus:S,onBlur:C},null,42,Nw),[[e.vModelText,c.value]]),m.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.value),{key:1,class:e.normalizeClass(["freddy-plugins-input-trailing-icon",`freddy-plugins-input-trailing-icon--${y.colorStyle}`]),onClick:f},null,8,["class"])):e.createCommentVNode("",!0)]}),_:1},16))}}),r2=R(Iw,[["__scopeId","data-v-3a6797a1"]]),Rw=["id","type","placeholder","disabled","readonly"],Ow=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(n,{expose:t,emit:o}){const r=n,a=o,i=e.ref(null),l=e.ref(null),s=e.ref(r.modelValue||""),c=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})),d=S=>S?typeof S=="object"?S:typeof S=="string"?e.defineAsyncComponent(()=>o2(Object.assign({"../../icons/IconAddFileSystem.vue":()=>Promise.resolve().then(()=>il),"../../icons/IconAddPeople.vue":()=>Promise.resolve().then(()=>ll),"../../icons/IconAitronos.vue":()=>Promise.resolve().then(()=>dl),"../../icons/IconApple.vue":()=>Promise.resolve().then(()=>ul),"../../icons/IconApplePay.vue":()=>Promise.resolve().then(()=>pl),"../../icons/IconArrowDown.vue":()=>Promise.resolve().then(()=>qn),"../../icons/IconArrowLeft.vue":()=>Promise.resolve().then(()=>$n),"../../icons/IconArrowUp.vue":()=>Promise.resolve().then(()=>Wn),"../../icons/IconBadgeCheck.vue":()=>Promise.resolve().then(()=>El),"../../icons/IconBroom.vue":()=>Promise.resolve().then(()=>bl),"../../icons/IconBuildings.vue":()=>Promise.resolve().then(()=>Cl),"../../icons/IconCalendarWithTickInside.vue":()=>Promise.resolve().then(()=>yl),"../../icons/IconCallNotAllowed.vue":()=>Promise.resolve().then(()=>Al),"../../icons/IconCardPay.vue":()=>Promise.resolve().then(()=>Il),"../../icons/IconCaution.vue":()=>Promise.resolve().then(()=>Rl),"../../icons/IconChangeLog.vue":()=>Promise.resolve().then(()=>Dl),"../../icons/IconCheckCircleFill.vue":()=>Promise.resolve().then(()=>xl),"../../icons/IconCheckInCircle.vue":()=>Promise.resolve().then(()=>wl),"../../icons/IconCheckRounded.vue":()=>Promise.resolve().then(()=>kl),"../../icons/IconChevronDown.vue":()=>Promise.resolve().then(()=>jn),"../../icons/IconChevronLeft.vue":()=>Promise.resolve().then(()=>Xn),"../../icons/IconChevronRight.vue":()=>Promise.resolve().then(()=>Jn),"../../icons/IconChevronUp.vue":()=>Promise.resolve().then(()=>eo),"../../icons/IconCircledCheck.vue":()=>Promise.resolve().then(()=>Bl),"../../icons/IconClock.vue":()=>Promise.resolve().then(()=>Ul),"../../icons/IconClosedEnvelope.vue":()=>Promise.resolve().then(()=>Vl),"../../icons/IconCloudUpload.vue":()=>Promise.resolve().then(()=>Hl),"../../icons/IconConnectorConfluence.vue":()=>Promise.resolve().then(()=>ql),"../../icons/IconConnectorFigma.vue":()=>Promise.resolve().then(()=>Wl),"../../icons/IconConnectorFreshDesk.vue":()=>Promise.resolve().then(()=>Ql),"../../icons/IconConnectorGitHub.vue":()=>Promise.resolve().then(()=>jl),"../../icons/IconConnectorJira.vue":()=>Promise.resolve().then(()=>Jl),"../../icons/IconConnectorLinear.vue":()=>Promise.resolve().then(()=>tc),"../../icons/IconConnectorNotion.vue":()=>Promise.resolve().then(()=>oc),"../../icons/IconConnectorSlack.vue":()=>Promise.resolve().then(()=>ac),"../../icons/IconConnectorZapier.vue":()=>Promise.resolve().then(()=>sc),"../../icons/IconCopy.vue":()=>Promise.resolve().then(()=>to),"../../icons/IconCross.vue":()=>Promise.resolve().then(()=>no),"../../icons/IconCrossCircleFill.vue":()=>Promise.resolve().then(()=>cc),"../../icons/IconCrossInCircle.vue":()=>Promise.resolve().then(()=>uc),"../../icons/IconCurrentTick.vue":()=>Promise.resolve().then(()=>pc),"../../icons/IconDataUpload.vue":()=>Promise.resolve().then(()=>mc),"../../icons/IconDelete.vue":()=>Promise.resolve().then(()=>ao),"../../icons/IconDeleteFillRed.vue":()=>Promise.resolve().then(()=>fc),"../../icons/IconDialingPhone.vue":()=>Promise.resolve().then(()=>Sc),"../../icons/IconDisabledAlert.vue":()=>Promise.resolve().then(()=>hc),"../../icons/IconDocumentation.vue":()=>Promise.resolve().then(()=>vc),"../../icons/IconDownload.vue":()=>Promise.resolve().then(()=>io),"../../icons/IconDribbble.vue":()=>Promise.resolve().then(()=>Tc),"../../icons/IconDropdownArrow.vue":()=>Promise.resolve().then(()=>Nc),"../../icons/IconEdit.vue":()=>Promise.resolve().then(()=>lo),"../../icons/IconEditLinePath.vue":()=>Promise.resolve().then(()=>Ic),"../../icons/IconEllipse.vue":()=>Promise.resolve().then(()=>u_),"../../icons/IconExcelThumbnail.vue":()=>Promise.resolve().then(()=>Dc),"../../icons/IconEye.vue":()=>Promise.resolve().then(()=>_o),"../../icons/IconFacebook.vue":()=>Promise.resolve().then(()=>xc),"../../icons/IconFigma.vue":()=>Promise.resolve().then(()=>wc),"../../icons/IconFile.vue":()=>Promise.resolve().then(()=>go),"../../icons/IconFileSystem.vue":()=>Promise.resolve().then(()=>kc),"../../icons/IconFileUpload.vue":()=>Promise.resolve().then(()=>Lc),"../../icons/IconFilter.vue":()=>Promise.resolve().then(()=>So),"../../icons/IconFolder.vue":()=>Promise.resolve().then(()=>bo),"../../icons/IconFreddyHub.vue":()=>Promise.resolve().then(()=>Bc),"../../icons/IconFreddyHubLogo.vue":()=>Promise.resolve().then(()=>Uc),"../../icons/IconFreddyHubNewLogo.vue":()=>Promise.resolve().then(()=>Vc),"../../icons/IconFreddyHubTitle.vue":()=>Promise.resolve().then(()=>Hc),"../../icons/IconFreddySmall.vue":()=>Promise.resolve().then(()=>zc),"../../icons/IconGlobExpand.vue":()=>Promise.resolve().then(()=>$c),"../../icons/IconGlobe.vue":()=>Promise.resolve().then(()=>Kc),"../../icons/IconGoogle.vue":()=>Promise.resolve().then(()=>Qc),"../../icons/IconHollowCircle.vue":()=>Promise.resolve().then(()=>jc),"../../icons/IconHome.vue":()=>Promise.resolve().then(()=>vo),"../../icons/IconInfoRounded.vue":()=>Promise.resolve().then(()=>Jc),"../../icons/IconInvalidInvoice.vue":()=>Promise.resolve().then(()=>td),"../../icons/IconInvoice.vue":()=>Promise.resolve().then(()=>od),"../../icons/IconInvoiceSwitch.vue":()=>Promise.resolve().then(()=>ad),"../../icons/IconLapTableBottom.vue":()=>Promise.resolve().then(()=>sd),"../../icons/IconLense.vue":()=>Promise.resolve().then(()=>cd),"../../icons/IconLightCross.vue":()=>Promise.resolve().then(()=>dd),"../../icons/IconLink04.vue":()=>Promise.resolve().then(()=>yo),"../../icons/IconLoadingError.vue":()=>Promise.resolve().then(()=>_d),"../../icons/IconLoadingOrg.vue":()=>Promise.resolve().then(()=>md),"../../icons/IconLocationWithCircleIn.vue":()=>Promise.resolve().then(()=>fd),"../../icons/IconLock.vue":()=>Promise.resolve().then(()=>Ao),"../../icons/IconMarketPlace.vue":()=>Promise.resolve().then(()=>Sd),"../../icons/IconMaximize.vue":()=>Promise.resolve().then(()=>bd),"../../icons/IconMicrophone.vue":()=>Promise.resolve().then(()=>Cd),"../../icons/IconMutedMicrophone.vue":()=>Promise.resolve().then(()=>yd),"../../icons/IconNewNotification.vue":()=>Promise.resolve().then(()=>Ad),"../../icons/IconNewTab.vue":()=>Promise.resolve().then(()=>Nd),"../../icons/IconNotification.vue":()=>Promise.resolve().then(()=>Rd),"../../icons/IconOpenBook.vue":()=>Promise.resolve().then(()=>Dd),"../../icons/IconPaperAirPlane.vue":()=>Promise.resolve().then(()=>xd),"../../icons/IconPauseCircle.vue":()=>Promise.resolve().then(()=>kd),"../../icons/IconPdfThumbnail.vue":()=>Promise.resolve().then(()=>Ld),"../../icons/IconPenEdit.vue":()=>Promise.resolve().then(()=>Bd),"../../icons/IconPencil.vue":()=>Promise.resolve().then(()=>Ud),"../../icons/IconPeopleHub.vue":()=>Promise.resolve().then(()=>Vd),"../../icons/IconPersonCircle.vue":()=>Promise.resolve().then(()=>Hd),"../../icons/IconPits.vue":()=>Promise.resolve().then(()=>qd),"../../icons/IconPlay.vue":()=>Promise.resolve().then(()=>Wd),"../../icons/IconPlus.vue":()=>Promise.resolve().then(()=>Do),"../../icons/IconPolygonDown.vue":()=>Promise.resolve().then(()=>Qd),"../../icons/IconPresentation.vue":()=>Promise.resolve().then(()=>jd),"../../icons/IconProgressBase.vue":()=>Promise.resolve().then(()=>Jd),"../../icons/IconProgressComplete.vue":()=>Promise.resolve().then(()=>tu),"../../icons/IconProgressGoing.vue":()=>Promise.resolve().then(()=>ou),"../../icons/IconPurpose.vue":()=>Promise.resolve().then(()=>au),"../../icons/IconPurseCircleFill.vue":()=>Promise.resolve().then(()=>su),"../../icons/IconQuestion.vue":()=>Promise.resolve().then(()=>lu),"../../icons/IconRadio.vue":()=>Promise.resolve().then(()=>du),"../../icons/IconRadioFill.vue":()=>Promise.resolve().then(()=>_u),"../../icons/IconRefresh.vue":()=>Promise.resolve().then(()=>wo),"../../icons/IconRevertedTraingle.vue":()=>Promise.resolve().then(()=>pu),"../../icons/IconRobotScreen.vue":()=>Promise.resolve().then(()=>mu),"../../icons/IconRoundTick.vue":()=>Promise.resolve().then(()=>fu),"../../icons/IconSearch.vue":()=>Promise.resolve().then(()=>Mo),"../../icons/IconSearchOptimised.vue":()=>Promise.resolve().then(()=>Su),"../../icons/IconSectionHide.vue":()=>Promise.resolve().then(()=>bu),"../../icons/IconSend.vue":()=>Promise.resolve().then(()=>Bo),"../../icons/IconSettings.vue":()=>Promise.resolve().then(()=>Fo),"../../icons/IconSettingsBold.vue":()=>Promise.resolve().then(()=>vu),"../../icons/IconSize.vue":()=>Promise.resolve().then(()=>Tu),"../../icons/IconSliderKnobs.vue":()=>Promise.resolve().then(()=>Nu),"../../icons/IconSortIdle.vue":()=>Promise.resolve().then(()=>Ru),"../../icons/IconSparkle.vue":()=>Promise.resolve().then(()=>Ou),"../../icons/IconSpotlio.vue":()=>Promise.resolve().then(()=>xu),"../../icons/IconStar.vue":()=>Promise.resolve().then(()=>Go),"../../icons/IconStatistics.vue":()=>Promise.resolve().then(()=>ku),"../../icons/IconStopChat.vue":()=>Promise.resolve().then(()=>Lu),"../../icons/IconStreamLineHub.vue":()=>Promise.resolve().then(()=>Bu),"../../icons/IconStreamLineHubNewLogo.vue":()=>Promise.resolve().then(()=>Uu),"../../icons/IconSun.vue":()=>Promise.resolve().then(()=>Vu),"../../icons/IconSwap.vue":()=>Promise.resolve().then(()=>Hu),"../../icons/IconText.vue":()=>Promise.resolve().then(()=>Yo),"../../icons/IconTextThumbnail.vue":()=>Promise.resolve().then(()=>qu),"../../icons/IconThinDocument.vue":()=>Promise.resolve().then(()=>Wu),"../../icons/IconThinFile.vue":()=>Promise.resolve().then(()=>Qu),"../../icons/IconThumbsDown.vue":()=>Promise.resolve().then(()=>Zu),"../../icons/IconTick.vue":()=>Promise.resolve().then(()=>zo),"../../icons/IconUser.vue":()=>Promise.resolve().then(()=>qo),"../../icons/IconVerticalDots.vue":()=>Promise.resolve().then(()=>Ju),"../../icons/IconVideoCamera.vue":()=>Promise.resolve().then(()=>t_),"../../icons/IconWarningOctal.vue":()=>Promise.resolve().then(()=>o_),"../../icons/IconX.vue":()=>Promise.resolve().then(()=>r_),"../../icons/IconZip.vue":()=>Promise.resolve().then(()=>i_)}),`../../icons/${S}.vue`,4).catch(()=>({template:"<div></div>"}))):null:null,u=e.computed(()=>d(r.leadingIcon)),_=e.computed(()=>d(r.trailingIcon)),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":!!u.value,"freddy-plugins-input-field--with-trailing":!!_.value})),g=S=>{const C=S.target;s.value=C.value,a("update:modelValue",C.value),a("input",C.value)},p=S=>{a("focus",S)},b=S=>{a("blur",S)},v=S=>{a("keydown",S)},T=S=>{a("leading-icon-click",S)},E=S=>{a("trailing-icon-click",S)},h=()=>{var S;(S=i.value)==null||S.focus()};return e.watch(()=>r.modelValue,S=>{S!==void 0&&(s.value=S)}),t({focus:h,inputRef:i}),(S,C)=>(e.openBlock(),e.createBlock(Jo,e.mergeProps(c.value,{onFocus:p,onBlur:b}),{default:e.withCtx(()=>{var f;return[u.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.value),{key:0,class:e.normalizeClass(["freddy-plugins-input-leading-icon",`freddy-plugins-input-leading-icon--${S.colorStyle}`]),onClick:T},null,8,["class"])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:(f=l.value)==null?void 0:f.inputId,ref_key:"inputRef",ref:i,"onUpdate:modelValue":C[0]||(C[0]=A=>s.value=A),type:S.inputType,placeholder:S.placeholder,disabled:S.disabled,readonly:S.readonly,class:e.normalizeClass(["freddy-plugins-input-field",m.value]),onInput:g,onFocus:p,onBlur:b,onKeydown:v},null,42,Rw),[[e.vModelDynamic,s.value]]),S.trailingIcon==="IconQuestion"&&S.tooltipText?(e.openBlock(),e.createBlock(bt,{key:1,text:S.tooltipText,placement:"top"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_.value),{class:e.normalizeClass(["freddy-plugins-input-trailing-icon",`freddy-plugins-input-trailing-icon--${S.colorStyle}`])},null,8,["class"]))]),_:1},8,["text"])):_.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_.value),{key:2,class:e.normalizeClass(["freddy-plugins-input-trailing-icon",`freddy-plugins-input-trailing-icon--${S.colorStyle}`]),onClick:E},null,8,["class"])):e.createCommentVNode("",!0)]}),_:1},16))}}),a2=R(Ow,[["__scopeId","data-v-e865b202"]]),Dw={class:"freddy-plugins-figma-dropdown-text"},xw=["onClick"],ww={class:"freddy-plugins-country-flag"},kw={class:"freddy-plugins-country-name"},Mw={class:"freddy-plugins-country-dial-code"},Lw=["id","placeholder","disabled","readonly"],Pw={key:0,class:"freddy-plugins-figma-help-icon"},Bw=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(n,{expose:t,emit:o}){const r=n,a=o,i=e.ref(null),l=e.ref(null),s=e.ref(r.phoneNumber||""),c=e.ref(!1),d=e.ref(r.countryCode||"US"),u=[{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"}],_=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})),m=e.computed(()=>r.countryOptions||u),g=e.computed(()=>m.value.find(C=>C.code===d.value)||m.value[0]),p=()=>{r.disabled||(c.value=!c.value)},b=C=>{d.value=C.code,a("update:countryCode",C.code),a("country-change",C);const f=s.value.replace(/^\+\d+\s*/,""),A=`${C.dialCode} ${f}`.trim();s.value=A,a("update:phoneNumber",A),a("update:modelValue",A),c.value=!1},v=C=>{const f=C.target;s.value=f.value;const A=`${g.value.dialCode} ${f.value}`;a("update:modelValue",A),a("update:phoneNumber",f.value),a("input",A)},T=C=>{a("focus",C)},E=C=>{a("blur",C)},h=()=>{var C;(C=i.value)==null||C.focus()},S=C=>{C.target.closest(".freddy-plugins-input-field-container")||(c.value=!1)};return e.watch(()=>r.countryCode,C=>{C&&C!==d.value&&(d.value=C)},{immediate:!0}),e.watch(()=>r.phoneNumber,C=>{C!==void 0&&(s.value=C)}),e.onMounted(()=>{document.addEventListener("click",S)}),e.onUnmounted(()=>{document.removeEventListener("click",S)}),t({focus:h,inputRef:i}),(C,f)=>(e.openBlock(),e.createBlock(Jo,e.mergeProps(_.value,{onFocus:T,onBlur:E}),{default:e.withCtx(()=>{var A;return[e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-figma-dropdown",`freddy-plugins-figma-dropdown--${C.colorStyle}`]),onClick:p},[e.createElementVNode("span",Dw,e.toDisplayString(g.value.code),1),e.createVNode(e.unref(Et),{class:"freddy-plugins-figma-dropdown-icon"})],2),c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["freddy-plugins-country-options-dropdown",`freddy-plugins-country-options-dropdown--${C.colorStyle}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,y=>(e.openBlock(),e.createElementBlock("div",{key:y.code,class:e.normalizeClass(["freddy-plugins-country-option",`freddy-plugins-country-option--${C.colorStyle}`]),onClick:N=>b(y)},[e.createElementVNode("span",ww,e.toDisplayString(y.flag),1),e.createElementVNode("span",kw,e.toDisplayString(y.name),1),e.createElementVNode("span",Mw,e.toDisplayString(y.dialCode),1)],10,xw))),128))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-figma-text-input",`freddy-plugins-figma-text-input--${C.colorStyle}`])},[e.withDirectives(e.createElementVNode("input",{id:(A=l.value)==null?void 0:A.inputId,ref_key:"inputRef",ref:i,"onUpdate:modelValue":f[0]||(f[0]=y=>s.value=y),type:"tel",placeholder:C.placeholder,disabled:C.disabled,readonly:C.readonly,class:"freddy-plugins-figma-phone-input",onInput:v,onFocus:T,onBlur:E},null,40,Lw),[[e.vModelText,s.value]]),C.trailingIcon==="IconQuestion"?(e.openBlock(),e.createElementBlock("div",Pw,[C.tooltipText?(e.openBlock(),e.createBlock(bt,{key:0,text:C.tooltipText,placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(At),{class:"freddy-plugins-figma-help-icon-svg"})]),_:1},8,["text"])):(e.openBlock(),e.createBlock(e.unref(At),{key:1,class:"freddy-plugins-figma-help-icon-svg"}))])):e.createCommentVNode("",!0)],2)]}),_:1},16))}}),i2=R(Bw,[["__scopeId","data-v-20d005c2"]]),Fw=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(n,{emit:t}){const o=n,r=t,a=e.computed(()=>o.variant||o.type||"default"),i=e.computed(()=>({size:o.size,colorStyle:o.colorStyle,state:o.state,destructive:o.destructive,required:o.required,label:o.label,hintText:o.hintText,placeholder:o.placeholder,countryCode:o.countryCode,phoneNumber:o.phoneNumber,countryOptions:o.countryOptions,trailingIcon:o.trailingIcon,tooltipText:o.tooltipText,disabled:o.disabled,readonly:o.readonly})),l=e.computed(()=>({size:o.size,colorStyle:o.colorStyle,state:o.state,destructive:o.destructive,required:o.required,label:o.label,hintText:o.hintText,placeholder:o.placeholder,cardNumber:o.cardNumber,cardType:o.cardType,maskInput:o.maskInput,showCardIcon:o.showCardIcon,trailingIcon:o.trailingIcon,disabled:o.disabled,readonly:o.readonly})),s=e.computed(()=>({size:o.size,colorStyle:o.colorStyle,state:o.state,destructive:o.destructive,required:o.required,label:o.label,hintText:o.hintText,placeholder:o.placeholder,inputType:o.inputType,modelValue:o.modelValue,leadingIcon:o.leadingIcon,trailingIcon:o.trailingIcon,tooltipText:o.tooltipText,disabled:o.disabled,readonly:o.readonly})),c=S=>{r("update:modelValue",S)},d=S=>{r("input",S)},u=S=>{r("focus",S)},_=S=>{r("blur",S)},m=S=>{r("keydown",S)},g=S=>{r("leading-icon-click",S)},p=S=>{r("trailing-icon-click",S)},b=S=>{r("update:countryCode",S)},v=S=>{r("update:phoneNumber",S)},T=S=>{r("country-change",S)},E=S=>{r("update:cardNumber",S)},h=S=>{r("card-type-detected",S)};return(S,C)=>a.value==="phone"?(e.openBlock(),e.createBlock(i2,e.mergeProps({key:0},i.value,{"onUpdate:modelValue":c,"onUpdate:countryCode":b,"onUpdate:phoneNumber":v,onCountryChange:T,onInput:d,onFocus:u,onBlur:_}),null,16)):a.value==="card"?(e.openBlock(),e.createBlock(r2,e.mergeProps({key:1},l.value,{"onUpdate:modelValue":c,"onUpdate:cardNumber":E,onCardTypeDetected:h,onInput:d,onFocus:u,onBlur:_,onTrailingIconClick:p}),null,16)):(e.openBlock(),e.createBlock(a2,e.mergeProps({key:2},s.value,{"onUpdate:modelValue":c,onInput:d,onFocus:u,onBlur:_,onKeydown:m,onLeadingIconClick:g,onTrailingIconClick:p}),null,16))}}),Lt=R(Fw,[["__scopeId","data-v-5a761e6c"]]),Uw={name:"ModalBox",props:{isVisible:{type:Boolean,default:!0},largeModel:{type:Boolean,default:!0}},methods:{closeModal(){this.$emit("close")}}},Gw={key:0,class:"fixed z-[9998] top-0 left-0 w-full h-full bg-modalBackgroundBlur flex justify-center items-center"},Vw={class:"flex justify-center items-center"},Yw={class:"freddy-plugins-modal-header"},Hw={class:"freddy-plugins-modal-body"},zw={class:"freddy-plugins-modal-footer"};function qw(n,t,o,r,a,i){return e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[o.isVisible?(e.openBlock(),e.createElementBlock("div",Gw,[e.createElementVNode("div",Vw,[e.createElementVNode("div",{class:e.normalizeClass({"p-8 bg-background rounded-[2.5rem] overflow-hidden text-white":o.largeModel,"freddy-plugins-modal-container-large":o.largeModel})},[e.createElementVNode("div",Yw,[e.renderSlot(n.$slots,"header")]),e.createElementVNode("div",Hw,[e.renderSlot(n.$slots,"body")]),e.createElementVNode("div",zw,[e.renderSlot(n.$slots,"footer")])],2)])])):e.createCommentVNode("",!0)]),_:3})}const s2=R(Uw,[["render",qw]]),$w=e.defineComponent({__name:"InstructionsModal",props:{isVisible:{type:Boolean,required:!0}},setup(n){return(t,o)=>(e.openBlock(),e.createBlock(s2,{isVisible:n.isVisible},{header:e.withCtx(()=>[...o[0]||(o[0]=[e.createElementVNode("h2",null,"Instructions",-1)])]),body:e.withCtx(()=>[...o[1]||(o[1]=[e.createElementVNode("p",null,"Instructions",-1)])]),_:1},8,["isVisible"]))}}),Ww=["value","placeholder"],Kw=e.defineComponent({__name:"InstructiontextArea",props:{inputValue:{},placeholder:{},height:{}},emits:["update:inputValue"],setup(n,{emit:t}){const o=n,r=t,a=e.computed(()=>o.height||"40px"),i=l=>{const s=l.target;r("update:inputValue",s.value)};return(l,s)=>(e.openBlock(),e.createElementBlock("input",{type:"text",value:l.inputValue,placeholder:l.placeholder,style:e.normalizeStyle({width:"100%",height:a.value}),onInput:i,class:"instruction-text-input","aria-label":"Instruction input"},null,44,Ww))}}),Qw=R(Kw,[["__scopeId","data-v-d4000e78"]]),D_=e.defineComponent({__name:"AuthContainer",props:{brand:{default:"contentplate"}},setup(n){const{currentProject:t,currentColorMode:o}=me(),r=n,a=e.computed(()=>r.brand);return(i,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["auth-container",`auth-container--${a.value}`])},[e.renderSlot(i.$slots,"default")],2))}}),x_=e.defineComponent({__name:"AuthCard",props:{brand:{default:"contentplate"}},setup(n){const{currentProject:t,currentColorMode:o}=me(),r=n,a=e.computed(()=>r.brand);return(i,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["auth-card",`auth-card--${a.value}`])},[e.renderSlot(i.$slots,"default")],2))}}),eg="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjYwIiB2aWV3Qm94PSIwIDAgMjAwIDYwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDwhLS0gUmVmZXJlbmNlIHRoZSBzbWFsbCBsb2dvIGFzIGEgY29tcG9uZW50IC0tPgogIDxkZWZzPgogICAgPGcgaWQ9ImNvbnRlbnRwbGF0ZS1pY29uIj4KICAgICAgPHJlY3QgeD0iMTAiIHk9IjEwIiB3aWR0aD0iODAiIGhlaWdodD0iODAiIHJ4PSIxNSIgZmlsbD0iIzQ1MTZjYiIvPgogICAgICA8cGF0aCBkPSJNMzAgMzVoNDB2MTBIMzB6TTMwIDU1aDQwdjEwSDMweiIgZmlsbD0iI2ZmZiIvPgogICAgICA8Y2lyY2xlIGN4PSI3NSIgY3k9Ijc1IiByPSI4IiBmaWxsPSIjMDBmZjI2Ii8+CiAgICA8L2c+CiAgPC9kZWZzPgogIAogIDwhLS0gVXNlIHRoZSBpY29uIGNvbXBvbmVudCAtIGNlbnRlcmVkIHZlcnRpY2FsbHkgLS0+CiAgPHVzZSBocmVmPSIjY29udGVudHBsYXRlLWljb24iIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwLCAxMCkgc2NhbGUoMC41KSIvPgogIAogIDwhLS0gVGV4dCAiQ29udGVudHBsYXRlIiAtIHByb3Blcmx5IGNlbnRlcmVkIHZlcnRpY2FsbHkgLS0+CiAgPHRleHQgeD0iNzAiIHk9IjMyIiBmb250LWZhbWlseT0iSW50ZXIsIC1hcHBsZS1zeXN0ZW0sIEJsaW5rTWFjU3lzdGVtRm9udCwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIyNCIgZm9udC13ZWlnaHQ9IjcwMCIgZmlsbD0iIzQ1MTZjYiI+Q29udGVudDwvdGV4dD4KICA8dGV4dCB4PSI3MCIgeT0iNTIiIGZvbnQtZmFtaWx5PSJJbnRlciwgLWFwcGxlLXN5c3RlbSwgQmxpbmtNYWNTeXN0ZW1Gb250LCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjI0IiBmb250LXdlaWdodD0iNzAwIiBmaWxsPSIjNDUxNmNiIj5wbGF0ZTwvdGV4dD4KPC9zdmc+IA==",Zw="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjYwIiB2aWV3Qm94PSIwIDAgMjAwIDYwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDwhLS0gRnJlZGR5IGljb24gLSByb2JvdCBoZWFkIC0tPgogIDxyZWN0IHg9IjEwIiB5PSIxNSIgd2lkdGg9IjQwIiBoZWlnaHQ9IjMwIiByeD0iOCIgZmlsbD0iIzBmMTcyYSIgc3Ryb2tlPSIjNDc1NTY5IiBzdHJva2Utd2lkdGg9IjIiLz4KICA8Y2lyY2xlIGN4PSIyNSIgY3k9IjI1IiByPSIzIiBmaWxsPSIjN0JBOEVGIi8+CiAgPGNpcmNsZSBjeD0iMzUiIGN5PSIyNSIgcj0iMyIgZmlsbD0iIzdCQThFRiIvPgogIDxyZWN0IHg9IjI1IiB5PSIzMiIgd2lkdGg9IjEwIiBoZWlnaHQ9IjIiIHJ4PSIxIiBmaWxsPSIjN0JBOEVGIi8+CiAgPHJlY3QgeD0iMTUiIHk9IjEwIiB3aWR0aD0iMzAiIGhlaWdodD0iOCIgcng9IjQiIGZpbGw9IiM0NzU1NjkiLz4KICAKICA8IS0tIFRleHQgIkZyZWRkeSIgLS0+CiAgPHRleHQgeD0iNzAiIHk9IjI1IiBmb250LWZhbWlseT0iSW50ZXIsIC1hcHBsZS1zeXN0ZW0sIEJsaW5rTWFjU3lzdGVtRm9udCwgc2Fucy1zZXJpZiIgZm9udC1zaXplPSIyNCIgZm9udC13ZWlnaHQ9IjcwMCIgZmlsbD0iIzFGMjkzNyI+RnJlZDwvdGV4dD4KICA8dGV4dCB4PSI3MCIgeT0iNDUiIGZvbnQtZmFtaWx5PSJJbnRlciwgLWFwcGxlLXN5c3RlbSwgQmxpbmtNYWNTeXN0ZW1Gb250LCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjI0IiBmb250LXdlaWdodD0iNzAwIiBmaWxsPSIjN0JBOEVGIj5keTwvdGV4dD4KICAKICA8IS0tIFN1YnRsZSB0YWdsaW5lIC0tPgogIDx0ZXh0IHg9IjcwIiB5PSI1NSIgZm9udC1mYW1pbHk9IkludGVyLCAtYXBwbGUtc3lzdGVtLCBCbGlua01hY1N5c3RlbUZvbnQsIHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTAiIGZvbnQtd2VpZ2h0PSI0MDAiIGZpbGw9IiM2QjcyODAiPkFJIEFzc2lzdGFudDwvdGV4dD4KPC9zdmc+IA==",jw="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjYwIiB2aWV3Qm94PSIwIDAgMjAwIDYwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDwhLS0gQmFja2dyb3VuZCBjaXJjbGUgZm9yIHRoZSBpY29uIC0gY2VudGVyZWQgdmVydGljYWxseSAtLT4KICA8Y2lyY2xlIGN4PSIzMCIgY3k9IjMwIiByPSIyMCIgZmlsbD0iIzYzNjZGMSIgc3Ryb2tlPSIjNEY0NkU1IiBzdHJva2Utd2lkdGg9IjIiLz4KICAKICA8IS0tIEZsb3cgYXJyb3dzIHJlcHJlc2VudGluZyB3b3JrZmxvdyAtLT4KICA8cGF0aCBkPSJNMTggMjUgTDI1IDI1IEwyNSAyMiBMMzAgMzAgTDI1IDM4IEwyNSAzNSBMMTggMzUgWiIgZmlsbD0id2hpdGUiLz4KICA8cGF0aCBkPSJNMjUgMTggTDMyIDE4IEwzMiAxNSBMMzcgMjMgTDMyIDMwIEwzMiAyNyBMMjUgMjcgWiIgZmlsbD0id2hpdGUiIG9wYWNpdHk9IjAuOCIvPgogIDxwYXRoIGQ9Ik0zMiAzMiBMMzkgMzIgTDM5IDI5IEw0NCAzNyBMMzkgNDQgTDM5IDQxIEwzMiA0MSBaIiBmaWxsPSJ3aGl0ZSIgb3BhY2l0eT0iMC42Ii8+CiAgCiAgPCEtLSBUZXh0ICJGbG93cGxhdGUiIC0gcHJvcGVybHkgY2VudGVyZWQgdmVydGljYWxseSAtLT4KICA8dGV4dCB4PSI3MCIgeT0iMjgiIGZvbnQtZmFtaWx5PSJJbnRlciwgLWFwcGxlLXN5c3RlbSwgQmxpbmtNYWNTeXN0ZW1Gb250LCBzYW5zLXNlcmlmIiBmb250LXNpemU9IjI0IiBmb250LXdlaWdodD0iNzAwIiBmaWxsPSIjMUYyOTM3Ij5GbG93PC90ZXh0PgogIDx0ZXh0IHg9IjcwIiB5PSI0OCIgZm9udC1mYW1pbHk9IkludGVyLCAtYXBwbGUtc3lzdGVtLCBCbGlua01hY1N5c3RlbUZvbnQsIHNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMjQiIGZvbnQtd2VpZ2h0PSI3MDAiIGZpbGw9IiM2MzY2RjEiPnBsYXRlPC90ZXh0Pgo8L3N2Zz4g",Xw=["src","alt"],Yn=e.defineComponent({__name:"Logo",props:{brand:{default:"contentplate"},size:{default:"md"},showTitle:{type:Boolean,default:!0}},setup(n){const t=n,o=e.computed(()=>{switch(t.brand){case"contentplate":return eg;case"flowplate":return jw;case"freddy":return Zw;default:return eg}}),r=e.computed(()=>{switch(t.brand){case"contentplate":return"Contentplate";case"flowplate":return"Flowplate";case"freddy":return"Freddy";default:return"Contentplate"}}),a=e.computed(()=>[`logo-container--${t.size}`,`logo-container--${t.brand}`,{"logo-container--brand-no-title":(t.brand==="flowplate"||t.brand==="contentplate")&&!t.showTitle}]),i=e.computed(()=>[`logo-image--${t.size}`,{"logo-image--brand-no-title":(t.brand==="flowplate"||t.brand==="contentplate")&&!t.showTitle}]);return(l,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["logo-container",a.value])},[e.createElementVNode("img",{src:o.value,alt:`${l.brand} Logo`,class:e.normalizeClass(["logo-image",i.value])},null,10,Xw),l.showTitle?(e.openBlock(),e.createElementBlock("h1",{key:0,class:e.normalizeClass(["logo-title",`logo-title--${l.size}`])},e.toDisplayString(r.value),3)):e.createCommentVNode("",!0)],2))}}),Jw={class:"form-group"},ek={class:"form-group"},tk={class:"form-actions"},nk={key:0,class:"error-message"},ok={class:"signup-link"},l2=e.defineComponent({__name:"LoginForm",props:{loading:{type:Boolean,default:!1},error:{default:""}},emits:["submit","switch-to-register"],setup(n,{emit:t}){const o=n,{currentProject:r,currentColorMode:a}=me(),i=e.computed(()=>{var p;const g=((p=r.value)==null?void 0:p.name)||"Freddy Public";return g.includes("Contentplate")?"contentplate":g.includes("Flowplate")?"flowplate":(g.includes("Freddy"),"freddy")}),l=e.computed(()=>o.loading),s=e.computed(()=>o.error),c=t,d=e.ref(""),u=e.ref(""),_=e.computed(()=>d.value.trim()!==""&&u.value.length>=8),m=()=>{_.value&&c("submit",d.value,u.value)};return(g,p)=>{const b=e.resolveDirective("motion");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["login-form-container",`login-form-container--${i.value}`])},[e.createVNode(Yn,{brand:i.value,size:"lg","show-title":i.value==="freddy"},null,8,["brand","show-title"]),e.withDirectives((e.openBlock(),e.createElementBlock("form",{onSubmit:e.withModifiers(m,["prevent"]),class:"login-form"},[e.createElementVNode("div",Jw,[e.createVNode(e.unref(Lt),{modelValue:d.value,"onUpdate:modelValue":p[0]||(p[0]=v=>d.value=v),label:"Email",placeholder:"Enter your email","input-type":"email","color-style":i.value==="contentplate"?"contentplate":"freddy",required:"",disabled:l.value},null,8,["modelValue","color-style","disabled"])]),e.createElementVNode("div",ek,[e.createVNode(e.unref(Lt),{modelValue:u.value,"onUpdate:modelValue":p[1]||(p[1]=v=>u.value=v),label:"Password",placeholder:"Enter your password","input-type":"password","color-style":i.value==="contentplate"?"contentplate":"freddy",required:"",disabled:l.value},null,8,["modelValue","color-style","disabled"])]),e.createElementVNode("div",tk,[e.createVNode(ht,{type:"submit",label:"Login",hierarchy:"primary",size:"lg",loading:l.value,disabled:!_.value||l.value,class:e.normalizeClass(`login-button login-button--${i.value}`)},null,8,["loading","disabled","class"])]),s.value?(e.openBlock(),e.createElementBlock("p",nk,e.toDisplayString(s.value),1)):e.createCommentVNode("",!0),e.createElementVNode("div",ok,[p[3]||(p[3]=e.createTextVNode(" Don't have an account? ",-1)),e.createElementVNode("button",{type:"button",class:"link-button",onClick:p[2]||(p[2]=v=>g.$emit("switch-to-register"))}," Sign up ")])],32)),[[b,"slide-visible"]])],2)}}}),c2=e.defineComponent({__name:"LoginPage",props:{initialEmail:{default:""}},emits:["login-success","switch-to-register"],setup(n,{emit:t}){const{currentProject:o,initializeTheme:r}=me();e.onMounted(async()=>{await r()});const a=e.computed(()=>{var u;const d=((u=o.value)==null?void 0:u.name)||"Freddy Public";return d.includes("Contentplate")?"contentplate":d.includes("Flowplate")?"flowplate":(d.includes("Freddy"),"freddy")}),i=t,l=e.ref(!1),s=e.ref(""),c=async(d,u)=>{l.value=!0,s.value="";try{if(a.value==="flowplate")if(await O_.login(d,u))i("login-success",d);else throw new Error("Login failed");else if(await new Promise(_=>setTimeout(_,1e3)),d&&u)i("login-success",d);else throw new Error("Please enter valid email and password")}catch(_){s.value=_.message||"Login failed. Please try again."}finally{l.value=!1}};return(d,u)=>(e.openBlock(),e.createBlock(D_,{brand:a.value},{default:e.withCtx(()=>[e.createVNode(x_,{brand:a.value},{default:e.withCtx(()=>[e.createVNode(l2,{brand:a.value,loading:l.value,error:s.value,onSubmit:c,onSwitchToRegister:u[0]||(u[0]=_=>d.$emit("switch-to-register"))},null,8,["brand","loading","error"])]),_:1},8,["brand"])]),_:1},8,["brand"]))}}),rk={class:"form-group"},ak={class:"form-group"},ik={class:"form-group"},sk={class:"form-actions"},lk={key:0,class:"error-message"},ck={class:"login-link"},d2=e.defineComponent({__name:"RegisterForm",props:{loading:{type:Boolean,default:!1},error:{default:""}},emits:["submit","switch-to-login"],setup(n,{emit:t}){const{currentProject:o,currentColorMode:r}=me(),a=n,i=e.computed(()=>{var b;const p=((b=o.value)==null?void 0:b.name)||"Freddy Public";return p.includes("Contentplate")?"contentplate":p.includes("Flowplate")?"flowplate":(p.includes("Freddy"),"freddy")}),l=a.loading,s=a.error,c=t,d=e.ref(""),u=e.ref(""),_=e.ref(""),m=e.computed(()=>d.value.trim()!==""&&u.value.trim()!==""&&_.value.length>=8),g=()=>{m.value&&c("submit",d.value,u.value,_.value)};return(p,b)=>{const v=e.resolveDirective("motion");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["register-form-container",`register-form-container--${i.value}`])},[e.createVNode(Yn,{brand:i.value,size:"lg","show-title":i.value==="freddy"},null,8,["brand","show-title"]),b[5]||(b[5]=e.createElementVNode("h2",{class:"form-title"},"Create Account",-1)),e.withDirectives((e.openBlock(),e.createElementBlock("form",{onSubmit:e.withModifiers(g,["prevent"]),class:"register-form"},[e.createElementVNode("div",rk,[e.createVNode(e.unref(Lt),{modelValue:d.value,"onUpdate:modelValue":b[0]||(b[0]=T=>d.value=T),label:"Full Name",placeholder:"Enter your full name","input-type":"text","color-style":i.value==="contentplate"?"contentplate":"freddy",required:"",disabled:e.unref(l)},null,8,["modelValue","color-style","disabled"])]),e.createElementVNode("div",ak,[e.createVNode(e.unref(Lt),{modelValue:u.value,"onUpdate:modelValue":b[1]||(b[1]=T=>u.value=T),label:"Email",placeholder:"Enter your email","input-type":"email","color-style":i.value==="contentplate"?"contentplate":"freddy",required:"",disabled:e.unref(l)},null,8,["modelValue","color-style","disabled"])]),e.createElementVNode("div",ik,[e.createVNode(e.unref(Lt),{modelValue:_.value,"onUpdate:modelValue":b[2]||(b[2]=T=>_.value=T),label:"Password",placeholder:"Enter your password","input-type":"password","color-style":i.value==="contentplate"?"contentplate":"freddy",required:"",disabled:e.unref(l)},null,8,["modelValue","color-style","disabled"])]),e.createElementVNode("div",sk,[e.createVNode(ht,{type:"submit",label:"Create Account",hierarchy:"primary",size:"lg",loading:e.unref(l),disabled:!m.value||e.unref(l),class:e.normalizeClass(`register-button register-button--${i.value}`)},null,8,["loading","disabled","class"])]),e.unref(s)?(e.openBlock(),e.createElementBlock("p",lk,e.toDisplayString(e.unref(s)),1)):e.createCommentVNode("",!0),e.createElementVNode("div",ck,[b[4]||(b[4]=e.createTextVNode(" Already have an account? ",-1)),e.createElementVNode("button",{type:"button",class:"link-button",onClick:b[3]||(b[3]=T=>p.$emit("switch-to-login"))}," Login ")])],32)),[[v,"slide-visible"]])],2)}}}),u2=e.defineComponent({__name:"RegisterPage",props:{initialEmail:{default:""}},emits:["register-success","switch-to-login"],setup(n,{emit:t}){const{currentProject:o,initializeTheme:r}=me();e.onMounted(async()=>{await r()});const a=e.computed(()=>{var u;const d=((u=o.value)==null?void 0:u.name)||"Freddy Public";return d.includes("Contentplate")?"contentplate":d.includes("Flowplate")?"flowplate":(d.includes("Freddy"),"freddy")}),i=t,l=e.ref(!1),s=e.ref(""),c=async(d,u,_)=>{l.value=!0,s.value="";try{if(a.value==="flowplate")if(await O_.register(u,d.split(" ")[0],d.split(" ").slice(1).join(" "),_))i("register-success",u);else throw new Error("Registration failed");else if(await new Promise(m=>setTimeout(m,1500)),d&&u&&_)i("register-success",u);else throw new Error("Please enter valid registration information")}catch(m){s.value=m.message||"Registration failed. Please try again."}finally{l.value=!1}};return(d,u)=>(e.openBlock(),e.createBlock(D_,{brand:a.value},{default:e.withCtx(()=>[e.createVNode(x_,{brand:a.value},{default:e.withCtx(()=>[e.createVNode(d2,{brand:a.value,loading:l.value,error:s.value,onSubmit:c,onSwitchToLogin:u[0]||(u[0]=_=>d.$emit("switch-to-login"))},null,8,["brand","loading","error"])]),_:1},8,["brand"])]),_:1},8,["brand"]))}}),dk={key:0,class:"api-warning"},uk={class:"api-warning__content"},_k={class:"api-warning__text"},pk=e.defineComponent({__name:"AuthManager",props:{initialView:{default:"login"},initialEmail:{default:""}},emits:["login-success","register-success"],setup(n,{emit:t}){const o=n,{currentProject:r,initializeTheme:a}=me();e.onMounted(async()=>{await a()});const i=e.computed(()=>{var p;const g=((p=r.value)==null?void 0:p.name)||"Freddy Public";return g.includes("Contentplate")?"contentplate":g.includes("Flowplate")?"flowplate":(g.includes("Freddy"),"freddy")}),l=t,s=e.ref(o.initialView),c=e.ref(o.initialEmail),d=()=>{s.value="register"},u=()=>{s.value="login"},_=g=>{l("login-success",g)},m=g=>{l("register-success",g)};return(g,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["auth-manager",`auth-manager--${i.value}`])},[i.value!=="flowplate"?(e.openBlock(),e.createElementBlock("div",dk,[e.createElementVNode("div",uk,[p[1]||(p[1]=e.createElementVNode("div",{class:"api-warning__icon"},"⚠️",-1)),e.createElementVNode("div",_k,[p[0]||(p[0]=e.createElementVNode("h3",null,"API Integration Not Available",-1)),e.createElementVNode("p",null,"API interaction is not yet enabled for "+e.toDisplayString(i.value)+" brand. This is a demo interface.",1)])])])):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"auth-slide",mode:"out-in"},{default:e.withCtx(()=>[s.value==="login"?(e.openBlock(),e.createBlock(c2,{key:"login",brand:i.value,"initial-email":c.value,onLoginSuccess:_,onSwitchToRegister:d},null,8,["brand","initial-email"])):(e.openBlock(),e.createBlock(u2,{key:"register",brand:i.value,"initial-email":c.value,onRegisterSuccess:m,onSwitchToLogin:u},null,8,["brand","initial-email"]))]),_:1})],2))}}),mk={class:"freddy-plugins-modal-header"},gk={class:"freddy-plugins-modal-body"},fk=e.defineComponent({__name:"ModalOverlay",props:{modalTitle:{},headerClass:{},disableClickOutside:{type:Boolean}},emits:["close"],setup(n,{emit:t}){const{currentProject:o,currentColorMode:r}=me(),a=n,i=t,l=()=>{i("close")},s=()=>{a.disableClickOutside||l()};return(c,d)=>(e.openBlock(),e.createElementBlock("div",{role:"dialog","aria-modal":"true",class:"freddy-plugins-modal-overlay",onClick:s},[e.createElementVNode("div",{class:"freddy-plugins-modal-content",onClick:d[0]||(d[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("header",mk,[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(mn,{class:"freddy-plugins-modal-close-icon"})])]),e.createElementVNode("div",gk,[e.renderSlot(c.$slots,"content")])])]))}}),Ek=["placeholder","maxlength"],er=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(n,{emit:t}){const{currentProject:o,currentColorMode:r}=me(),a=e.useAttrs(),i=e.ref(null),l=e.ref(null),s=e.ref(null),c=t,d=()=>{var m;(m=l.value)==null||m.focus()},u=()=>{c("update:searchInput",i.value)},_=()=>{c("clear")};return(m,g)=>{var p;return e.openBlock(),e.createElementBlock("div",{ref_key:"dropdownRef",ref:s,class:e.normalizeClass(["freddy-search-wrapper",e.unref(a).class]),onClick:d},[e.createVNode(e.unref(fn),{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":g[0]||(g[0]=b=>i.value=b),onInput:u,placeholder:m.placeholder,maxlength:m.maxCharLimit},null,40,Ek),[[e.vModelText,i.value]]),m.showLoaderForSearch?(e.openBlock(),e.createBlock(m_,{key:0,class:"freddy-search-spinner"})):e.createCommentVNode("",!0),m.showCloseButton&&!m.showLoaderForSearch&&((p=i.value)!=null&&p.length)?(e.openBlock(),e.createBlock(Ye,{key:1,class:"freddy-search-close",onClick:_})):e.createCommentVNode("",!0)],2)}}}),Sk={class:"model-dropdown-selected-content"},bk=["src","alt"],hk={class:"model-dropdown-placeholder"},Ck={key:0,class:"model-dropdown-menu"},vk={key:0,class:"model-dropdown-search"},yk={class:"model-dropdown-options"},Tk=["onClick"],Ak=["src","alt"],Nk={class:"model-dropdown-option-value"},Ik={key:0,class:"model-dropdown-no-options"},Rk=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(n,{emit:t}){const o=n,r=t,a=e.ref(!1),i=e.ref(""),l=e.ref(null),s=e.computed(()=>!o.searchable||!i.value?o.options:o.options.filter(m=>m.value.toLowerCase().includes(i.value.toLowerCase()))),c=()=>{a.value=!a.value,a.value||(i.value="")},d=()=>{a.value=!1,i.value=""},u=m=>{l.value=m,r("select",m),d()},_=m=>{m.target.closest(".model-dropdown-wrapper")||d()};return e.watch(a,m=>{m?setTimeout(()=>{document.addEventListener("click",_)},0):document.removeEventListener("click",_)}),e.onUnmounted(()=>{document.removeEventListener("click",_)}),(m,g)=>{var p,b;return e.openBlock(),e.createElementBlock("div",{class:"model-dropdown-wrapper",onKeydown:e.withKeys(d,["esc"])},[e.createElementVNode("div",{class:e.normalizeClass(["model-dropdown-trigger",[`model-dropdown-trigger--${m.size}`,{"model-dropdown-trigger--open":a.value}]]),onClick:c},[e.createElementVNode("div",Sk,[(p=l.value)!=null&&p.imageSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:l.value.imageSrc,alt:l.value.value,class:"model-dropdown-selected-image"},null,8,bk)):e.createCommentVNode("",!0),e.createElementVNode("span",hk,e.toDisplayString(((b=l.value)==null?void 0:b.value)||m.modelPlaceholder),1)]),a.value?(e.openBlock(),e.createBlock(un,{key:1,class:"model-dropdown-chevron"})):(e.openBlock(),e.createBlock(Et,{key:0,class:"model-dropdown-chevron"}))],2),a.value?(e.openBlock(),e.createElementBlock("div",Ck,[m.searchable?(e.openBlock(),e.createElementBlock("div",vk,[e.createVNode(er,{modelValue:i.value,"onUpdate:modelValue":g[0]||(g[0]=v=>i.value=v),placeholder:m.searchPlaceholder,showCloseButton:!0},null,8,["modelValue","placeholder"])])):e.createCommentVNode("",!0),e.createElementVNode("ul",yk,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,v=>{var T;return e.openBlock(),e.createElementBlock("li",{key:v.id,class:e.normalizeClass(["model-dropdown-option",{"model-dropdown-option--selected":((T=l.value)==null?void 0:T.id)===v.id}]),onClick:E=>u(v)},[v.imageSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:v.imageSrc,alt:v.value,class:"model-dropdown-option-image"},null,8,Ak)):e.createCommentVNode("",!0),e.createElementVNode("span",Nk,e.toDisplayString(v.value),1)],10,Tk)}),128)),s.value.length===0?(e.openBlock(),e.createElementBlock("li",Ik," No providers found ")):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)],32)}}}),Ok=R(Rk,[["__scopeId","data-v-75f8685b"]]),Dk=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(n,{emit:t}){const o=t,r=i=>{try{JSON.parse(i),o("save",i)}catch{alert("Invalid JSON format. Please fix the JSON before saving.")}},a=i=>{o("toggleAI",i)};return(i,l)=>(e.openBlock(),e.createBlock(Vn,{"is-visible":n.isVisible,title:"Edit response format",description:"Use a JSON schema to define the structure of the model's response format. Learn more.","initial-content":n.initialJsonContent,"openai-api-key":n.openaiApiKey,"openai-model":n.openaiModel,"openai-organization":n.openaiOrganization,onClose:l[0]||(l[0]=s=>i.$emit("close")),onSave:r,onCancel:l[1]||(l[1]=s=>i.$emit("cancel")),onAskAI:l[2]||(l[2]=s=>i.$emit("askAI",s)),onToggleAI:a},null,8,["is-visible","initial-content","openai-api-key","openai-model","openai-organization"]))}}),xk={key:0,class:"freddy-pagination-nav","aria-label":"Pagination"},wk=["disabled"],kk={class:"freddy-pagination-dynamic-container"},Mk=["onClick","disabled"],Lk=["disabled"],Pk=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(n,{emit:t}){const o=n,r=t,a=e.computed(()=>!o.totalItems||isNaN(o.totalItems)?0:Math.ceil(o.totalItems/o.itemsPerPage)),i=e.computed(()=>{const s=[],c=a.value,d=o.currentPage;if(c<=7)for(let u=1;u<=c;u++)s.push(u);else{s.push(1),d>4?s.push("..."):s.push(2,3);for(let u=Math.max(4,d-1);u<=Math.min(c-3,d+1);u++)s.push(u);d<c-4&&s.push("..."),s.push(c-2,c-1,c)}return s});function l(s){s==="..."||s===o.currentPage||typeof s=="number"&&s>=1&&s<=a.value&&r("update:currentPage",s)}return(s,c)=>a.value>0?(e.openBlock(),e.createElementBlock("nav",xk,[e.createElementVNode("button",{class:e.normalizeClass(["freddy-pagination-end-button",{"freddy-pagination-hover-enabled":n.currentPage!==1}]),onClick:c[0]||(c[0]=d=>l(n.currentPage-1)),disabled:n.currentPage===1}," Previous ",10,wk),e.createElementVNode("div",kk,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,d=>(e.openBlock(),e.createElementBlock("button",{key:String(d),class:e.normalizeClass(["freddy-pagination-number-button",{active:d===n.currentPage}]),onClick:u=>l(d),disabled:d==="..."||d===n.currentPage},e.toDisplayString(d),11,Mk))),128)),e.createElementVNode("button",{class:e.normalizeClass(["freddy-pagination-end-button",{"freddy-pagination-hover-enabled":n.currentPage!==a.value}]),onClick:c[1]||(c[1]=d=>l(n.currentPage+1)),disabled:n.currentPage===a.value||a.value===0}," Next ",10,Lk)])])):e.createCommentVNode("",!0)}}),Bk={key:0,class:"skeleton-card"},Fk={key:0,class:"skeleton-line skeleton-wave skeleton-w-32 skeleton-h-6 mb-2"},Uk={key:1,class:"skeleton-paragraph"},Gk={key:0,class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40 mb-2"},Vk={key:2,class:"skeleton-single-box"},Yk={key:0,class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40 mb-2"},Hk={key:3,class:"skeleton-table"},zk={key:0,class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40"},qk={class:"table-full"},$k=e.defineComponent({__name:"SkeletonLoader",props:{type:{},hasHeader:{type:Boolean},count:{}},setup(n){const t=n,{type:o,hasHeader:r=!1,count:a=5}=t;return(i,l)=>e.unref(o)==="card"?(e.openBlock(),e.createElementBlock("div",Bk,[e.unref(r)?(e.openBlock(),e.createElementBlock("div",Fk)):e.createCommentVNode("",!0),l[0]||(l[0]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-3-4"},null,-1)),l[1]||(l[1]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full"},null,-1)),l[2]||(l[2]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-5-6"},null,-1))])):e.unref(o)==="paragraph"?(e.openBlock(),e.createElementBlock("div",Uk,[e.unref(r)?(e.openBlock(),e.createElementBlock("div",Gk)):e.createCommentVNode("",!0),l[3]||(l[3]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full"},null,-1)),l[4]||(l[4]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-5-6"},null,-1)),l[5]||(l[5]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-3-4"},null,-1))])):e.unref(o)==="single-box"?(e.openBlock(),e.createElementBlock("div",Vk,[e.unref(r)?(e.openBlock(),e.createElementBlock("div",Yk)):e.createCommentVNode("",!0),l[6]||(l[6]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full"},null,-1))])):e.unref(o)==="table"?(e.openBlock(),e.createElementBlock("div",Hk,[e.unref(r)?(e.openBlock(),e.createElementBlock("div",zk)):e.createCommentVNode("",!0),e.createElementVNode("table",qk,[e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),s=>(e.openBlock(),e.createElementBlock("tr",{key:s},[...l[7]||(l[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)}}),Wk={class:"freddy-plugins-slider-container"},Kk={key:0,class:"freddy-plugins-slider-header"},Qk={key:0,class:"freddy-plugins-slider-label-section"},Zk={class:"freddy-plugins-slider-label"},jk={key:1,class:"freddy-plugins-slider-value-badge"},Xk=["tabindex","aria-valuemin","aria-valuemax","aria-valuenow","aria-disabled","aria-label"],Jk={key:1,class:"freddy-plugins-slider-hint"},eM=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(n,{emit:t}){const{currentProject:o,currentColorMode:r}=me(),a=n,i=t,l=e.ref(!1),s=e.ref(null),c=e.computed(()=>Math.round(a.modelValue)),d=e.computed(()=>{const E=a.max-a.min,h=a.modelValue-a.min;return Math.min(100,Math.max(0,h/E*100))}),u=e.computed(()=>d.value),_=E=>{const h=Math.round(E/a.step)*a.step;return Math.min(a.max,Math.max(a.min,h))},m=E=>{if(!s.value)return a.modelValue;const h=s.value.getBoundingClientRect(),S=Math.max(0,Math.min(1,(E-h.left)/h.width)),C=a.min+S*(a.max-a.min),f=Math.round(C/a.step)*a.step;return Math.min(a.max,Math.max(a.min,f))},g=E=>{const h=_(E);h!==a.modelValue&&i("update:modelValue",h)},p=E=>{if(a.disabled)return;E.preventDefault(),E.stopPropagation(),l.value=!0;const h=C=>{if(!l.value)return;C.preventDefault();const f=m(C.clientX);g(f)},S=()=>{l.value=!1,document.removeEventListener("mousemove",h),document.removeEventListener("mouseup",S)};document.addEventListener("mousemove",h),document.addEventListener("mouseup",S)},b=E=>{if(a.disabled)return;E.preventDefault(),E.stopPropagation(),l.value=!0;const h=C=>{!l.value||!C.touches[0]||(C.preventDefault(),g(m(C.touches[0].clientX)))},S=()=>{l.value=!1,document.removeEventListener("touchmove",h),document.removeEventListener("touchend",S)};document.addEventListener("touchmove",h),document.addEventListener("touchend",S)},v=E=>{if(a.disabled||l.value)return;E.preventDefault(),E.stopPropagation();const h=m(E.clientX);g(h)},T=E=>{if(a.disabled)return;let h=a.modelValue;switch(E.key){case"ArrowLeft":case"ArrowDown":E.preventDefault(),h=a.modelValue-a.step;break;case"ArrowRight":case"ArrowUp":E.preventDefault(),h=a.modelValue+a.step;break;case"Home":E.preventDefault(),h=a.min;break;case"End":E.preventDefault(),h=a.max;break;case"PageDown":E.preventDefault(),h=a.modelValue-a.step*10;break;case"PageUp":E.preventDefault(),h=a.modelValue+a.step*10;break;default:return}g(h)};return(E,h)=>(e.openBlock(),e.createElementBlock("div",Wk,[E.label||E.showValue?(e.openBlock(),e.createElementBlock("div",Kk,[E.label?(e.openBlock(),e.createElementBlock("div",Qk,[e.createElementVNode("span",Zk,e.toDisplayString(E.label),1),E.tooltip?(e.openBlock(),e.createBlock(bt,{key:0,text:E.tooltip,placement:E.tooltipPlacement},{default:e.withCtx(()=>[e.createVNode(ct,{class:"freddy-plugins-slider-tooltip-icon"})]),_:1},8,["text","placement"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),E.showValue?(e.openBlock(),e.createElementBlock("div",jk,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":E.disabled}]),onClick:v,onKeydown:T,tabindex:E.disabled?-1:0,role:"slider","aria-valuemin":E.min,"aria-valuemax":E.max,"aria-valuenow":E.modelValue,"aria-disabled":E.disabled,"aria-label":E.label||"Slider"},[e.createElementVNode("div",{ref_key:"sliderTrack",ref:s,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":E.disabled}]),style:e.normalizeStyle({left:u.value+"%"}),onMousedown:p,onTouchstart:b},null,38)],42,Xk),E.hint?(e.openBlock(),e.createElementBlock("p",Jk,e.toDisplayString(E.hint),1)):e.createCommentVNode("",!0)]))}}),tM=R(eM,[["__scopeId","data-v-2b73014b"]]),nM={class:"freddy-plugins-snackbar-content"},oM={class:"freddy-plugins-snackbar-left"},rM={class:"freddy-plugins-snackbar-text"},aM=["innerHTML"],iM=["innerHTML"],sM=["onClick"],lM=e.defineComponent({__name:"SnackBar",setup(n){const{currentProject:t,currentColorMode:o}=me(),{snackQueue:r}=og(),a=s=>{switch(s){case"success":return nn;case"danger":return Ye;case"info":return ct;default:return nn}},i=e.computed(()=>{const s=r.value[r.value.length-1];if(!s)return"side70";switch(s.toastContainerSize){case"half":return"half";case"full":return"full";default:return"side70"}}),l=s=>{r.value.splice(s,1)};return(s,c)=>(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(r),(d,u)=>(e.openBlock(),e.createElementBlock("div",{key:u,class:e.normalizeClass(["freddy-plugins-snackbar",`freddy-plugins-snackbar--${d.toastType}`])},[e.createElementVNode("div",nM,[e.createElementVNode("div",oM,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a(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",rM,[e.createElementVNode("p",{class:"freddy-plugins-snackbar-title",innerHTML:d.title},null,8,aM),e.createElementVNode("p",{class:"freddy-plugins-snackbar-message",innerHTML:d.message},null,8,iM)])]),e.createElementVNode("button",{class:"freddy-plugins-snackbar-close-btn",onClick:_=>l(u)},[e.createVNode(mn,{class:"freddy-plugins-snackbar-close-icon"})],8,sM)])],2))),128))],2))}}),cM={class:"freddy-plugins-switch-slot__header"},dM={key:0,class:"freddy-plugins-switch-slot__label-section"},uM={key:0,class:"freddy-plugins-switch-slot__label"},_M=["aria-checked","tabindex","onKeydown","disabled"],pM={key:0,class:"freddy-plugins-switch-slot__content"},mM={key:1,class:"freddy-plugins-switch-slot__hint"},gM=e.defineComponent({__name:"SwitchSlot",props:{modelValue:{type:Boolean},label:{},tooltip:{},tooltipPlacement:{},hint:{},disabled:{type:Boolean},variant:{},showSlotContent:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:t}){const{currentProject:o,currentColorMode:r}=me(),a=n,i=t,l=s=>{s.stopPropagation(),a.disabled||i("update:modelValue",!a.modelValue)};return(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-plugins-switch-slot",{"freddy-plugins-switch-slot--bordered":s.variant==="bordered","freddy-plugins-switch-slot--disabled":s.disabled}])},[e.createElementVNode("div",cM,[s.label||s.tooltip?(e.openBlock(),e.createElementBlock("div",dM,[s.label?(e.openBlock(),e.createElementBlock("span",uM,e.toDisplayString(s.label),1)):e.createCommentVNode("",!0),s.tooltip?(e.openBlock(),e.createBlock(bt,{key:1,text:s.tooltip,placement:s.tooltipPlacement},{default:e.withCtx(()=>[e.createVNode(ct,{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":s.modelValue}]),"aria-checked":s.modelValue,role:"switch",tabindex:s.disabled?-1:0,onClick:l,onKeydown:[e.withKeys(e.withModifiers(l,["prevent"]),["space"]),e.withKeys(e.withModifiers(l,["prevent"]),["enter"])],disabled:s.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,_M)]),s.showSlotContent?(e.openBlock(),e.createElementBlock("div",pM,[e.renderSlot(s.$slots,"content",{},void 0,!0)])):e.createCommentVNode("",!0),s.hint?(e.openBlock(),e.createElementBlock("p",mM,e.toDisplayString(s.hint),1)):e.createCommentVNode("",!0)],2))}}),fM=R(gM,[["__scopeId","data-v-a5f9fecf"]]),EM={class:"freddy-plugin-nav-bar"},SM=["onClick"],bM=e.defineComponent({__name:"TabList",props:{tabList:{},currentTab:{default:0},activeStateType:{},orientation:{},fullWidth:{type:Boolean}},emits:["tabSwitch"],setup(n,{emit:t}){const o=n,r=t,a=e.ref(o.currentTab),i=l=>{a.value!==l.id&&(a.value=l.id,r("tabSwitch",l.id))};return(l,s)=>(e.openBlock(),e.createElementBlock("div",EM,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.tabList,(c,d)=>(e.openBlock(),e.createElementBlock("button",{class:"freddy-plugin-menu-button",key:d,onClick:u=>i(c)},[e.createTextVNode(e.toDisplayString(c.title)+" ",1),e.createElementVNode("span",{class:e.normalizeClass({"freddy-plugin-active-tab":a.value===c.id})},null,2)],8,SM))),128))]))}}),hM={class:"theme-switcher"},CM={class:"theme-switcher-header"},vM={class:"header-content"},yM={class:"header-right"},TM=["title"],AM={class:"status-text"},NM={key:0,class:"loading-container"},IM={key:1,class:"error-container"},RM={class:"error-content"},OM={key:2,class:"theme-switcher-main"},DM={class:"current-theme-section"},xM={class:"section-header"},wM={class:"current-theme-card"},kM={class:"theme-info"},MM={class:"theme-brand-info"},LM={class:"brand-icon"},PM={class:"brand-details"},BM={class:"brand-version"},FM={class:"theme-mode-info"},UM={class:"mode-details"},GM={class:"mode-key"},VM={key:0,class:"enhanced-color-preview"},YM={class:"primary-color-grid"},HM=["onClick"],zM={key:0,class:"color-text-sample"},qM={class:"color-overlay"},$M={class:"color-label"},WM={class:"color-description"},KM={class:"color-value"},QM={class:"theme-controls-section"},ZM={class:"control-card"},jM={class:"brand-selection"},XM=["onClick"],JM={class:"brand-visual"},eL={class:"brand-logo"},tL={key:0,class:"brand-status"},nL={class:"brand-content"},oL={class:"brand-version"},rL={class:"color-mode-section"},aL={class:"mode-selection"},iL=["onClick"],sL={class:"mode-visual"},lL={key:0,class:"mode-status"},cL={class:"mode-content"},dL={class:"mode-key"},uL={key:0,class:"debug-section"},_L={class:"debug-content"},pL={class:"debug-item"},mL={class:"debug-item"},gL={class:"debug-item"},fL={class:"debug-item"},EL={class:"debug-item"},SL={class:"debug-colors"},bL={key:0},hL={key:1},CL={key:2},vL={class:"debug-css-vars"},yL={class:"control-card"},TL={class:"stats-grid"},AL={class:"stat-item"},NL={class:"stat-content"},IL={class:"stat-value"},RL={class:"stat-item"},OL={class:"stat-content"},DL={class:"stat-value"},xL={class:"stat-item"},wL={class:"stat-content"},kL={class:"stat-value"},ML={class:"stat-item"},LL={class:"stat-content"},PL={class:"stat-value"},_2=e.defineComponent({__name:"ThemeSwitcher",setup(n){const{currentBrandId:t,currentModeId:o,currentProject:r,currentColorMode:a,isLoading:i,error:l,availableBrands:s,availableModes:c,setBrand:d,setMode:u,initializeTheme:_,applyThemeToDocument:m,getCSSVariableMapping:g,saveThemeToStorage:p,loadThemeFromStorage:b}=me(),v=()=>i.value?"Loading...":l.value?"Error":"Ready to Switch",T=()=>i.value?"Loading theme configuration...":l.value?"Error loading theme configuration":"Theme system is ready - you can switch between brands and color modes",E=()=>!r.value||!a.value?"inactive":"active",h=()=>!r.value||!a.value?"No Theme":"Active",S=y=>y&&{"Contentplate Public":"contentplate","Flowplate Public":"flowplate","Freddy Public":"freddy"}[y]||"contentplate",C=y=>{const N=y.name.toLowerCase().includes("dark");return{backgroundColor:N?"#2a2a2a":"var(--freddy-bg-primary)",color:N?"var(--freddy-bg-primary)":"var(--freddy-text-primary)"}},f=()=>{var N,k,O,H,j,w,B,D,K,M,L;if(!a.value)return{};const y={};if((N=a.value.backgroundColor)!=null&&N.colors){const G=((k=a.value.backgroundColor.colors.find(Y=>Y.name==="Background"))==null?void 0:k.value)||((O=a.value.backgroundColor.colors.find(Y=>Y.name==="Surface"))==null?void 0:O.value);G&&(y.background={value:G,label:"Background",description:"Main page background"})}if((H=a.value.textColors)!=null&&H.colors){const G=((j=a.value.textColors.colors.find(Y=>Y.name==="Primary"))==null?void 0:j.value)||((w=a.value.textColors.colors.find(Y=>Y.name==="Text"))==null?void 0:w.value);G&&(y.text={value:G,label:"Text",description:"Primary text color"})}if((B=a.value.textColors)!=null&&B.colors){const G=((D=a.value.textColors.colors.find(Y=>Y.name==="Accent"))==null?void 0:D.value)||((K=a.value.textColors.colors.find(Y=>Y.name==="Link"))==null?void 0:K.value);G&&(y.primary={value:G,label:"Primary",description:"Brand & action color"})}if((M=a.value.borderColor)!=null&&M.colors){const G=(L=a.value.borderColor.colors.find(Y=>Y.name==="Border"))==null?void 0:L.value;G&&(y.border={value:G,label:"Border",description:"UI element borders"})}return y},A=async(y,N)=>{try{await navigator.clipboard.writeText(y)}catch{}};return e.onMounted(()=>{_()}),(y,N)=>{var k,O,H,j,w,B,D,K,M,L,G,Y,ue,ge,ie,re,ne,$,V,se,oe,Se,_e,Te,Oe,Fe;return e.openBlock(),e.createElementBlock("div",hM,[e.createElementVNode("div",CM,[e.createElementVNode("div",vM,[N[2]||(N[2]=e.createElementVNode("div",{class:"header-left"},[e.createElementVNode("h2",null,"🎨 Theme Switcher"),e.createElementVNode("p",null,"Customize your design system appearance")],-1)),e.createElementVNode("div",yM,[e.createElementVNode("div",{class:e.normalizeClass(["status-indicator",{active:!e.unref(i)&&!e.unref(l)}]),title:T()},[N[1]||(N[1]=e.createElementVNode("div",{class:"status-dot"},null,-1)),e.createElementVNode("span",AM,e.toDisplayString(v()),1)],10,TM)])])]),e.unref(i)?(e.openBlock(),e.createElementBlock("div",NM,[...N[3]||(N[3]=[e.createStaticVNode('<div class="loading-content"><div class="loading-spinner"><div class="spinner-ring"></div><div class="spinner-ring"></div><div class="spinner-ring"></div></div><h3>Loading Theme Configuration</h3><p>Please wait while we load your available themes...</p></div>',1)])])):e.unref(l)?(e.openBlock(),e.createElementBlock("div",IM,[e.createElementVNode("div",RM,[N[5]||(N[5]=e.createElementVNode("div",{class:"error-icon"},"⚠️",-1)),N[6]||(N[6]=e.createElementVNode("h3",null,"Configuration Error",-1)),e.createElementVNode("p",null,e.toDisplayString(e.unref(l)),1),e.createElementVNode("button",{onClick:N[0]||(N[0]=(...Q)=>e.unref(_)&&e.unref(_)(...Q)),class:"retry-button"},[...N[4]||(N[4]=[e.createElementVNode("span",{class:"btn-icon"},"🔄",-1),e.createTextVNode(" Try Again ",-1)])])])])):(e.openBlock(),e.createElementBlock("div",OM,[e.createElementVNode("div",DM,[e.createElementVNode("div",xM,[N[7]||(N[7]=e.createElementVNode("h3",null,"Current Theme",-1)),e.createElementVNode("div",{class:e.normalizeClass(["theme-badge",E()])},e.toDisplayString(h()),3)]),e.createElementVNode("div",wM,[e.createElementVNode("div",kM,[e.createElementVNode("div",MM,[e.createElementVNode("div",LM,[e.createVNode(Yn,{brand:S((k=e.unref(r))==null?void 0:k.name),size:"sm","show-title":!1},null,8,["brand"])]),e.createElementVNode("div",PM,[e.createElementVNode("h4",null,e.toDisplayString(((O=e.unref(r))==null?void 0:O.name)||"No Brand Selected"),1),e.createElementVNode("span",BM,"v"+e.toDisplayString(((H=e.unref(r))==null?void 0:H.version)||"0"),1)])]),e.createElementVNode("div",FM,[N[8]||(N[8]=e.createElementVNode("div",{class:"mode-icon"},[e.createElementVNode("span",{class:"mode-icon-text"},"🎨")],-1)),e.createElementVNode("div",UM,[e.createElementVNode("h4",null,e.toDisplayString(((j=e.unref(a))==null?void 0:j.name)||"No Mode Selected"),1),e.createElementVNode("span",GM,e.toDisplayString(((w=e.unref(a))==null?void 0:w.name)||"none"),1)])])]),e.unref(a)?(e.openBlock(),e.createElementBlock("div",VM,[N[10]||(N[10]=e.createElementVNode("h4",null,"Theme Color Palette",-1)),N[11]||(N[11]=e.createElementVNode("p",{class:"color-preview-description"}," Key colors from the current theme ",-1)),e.createElementVNode("div",YM,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f(),(Q,we)=>(e.openBlock(),e.createElementBlock("div",{key:we,class:"primary-color-item",style:e.normalizeStyle({backgroundColor:Q.value}),onClick:dt=>A(Q.value)},[we==="background"?(e.openBlock(),e.createElementBlock("div",zM,[...N[9]||(N[9]=[e.createElementVNode("span",{style:{color:"var(--freddy-text-primary)"}},"Sample Text",-1)])])):e.createCommentVNode("",!0),e.createElementVNode("div",qM,[e.createElementVNode("span",$M,e.toDisplayString(Q.label),1),e.createElementVNode("span",WM,e.toDisplayString(Q.description),1),e.createElementVNode("span",KM,e.toDisplayString(Q.value),1)])],12,HM))),128))])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",QM,[e.createElementVNode("div",ZM,[N[13]||(N[13]=e.createElementVNode("div",{class:"card-header"},[e.createElementVNode("h3",null,"Brand Selection"),e.createElementVNode("span",{class:"card-subtitle"},"Choose your design system")],-1)),e.createElementVNode("div",jM,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),Q=>(e.openBlock(),e.createElementBlock("div",{key:Q.id,onClick:we=>e.unref(d)(Q.id),class:e.normalizeClass(["brand-option",{active:e.unref(t)===Q.id}])},[e.createElementVNode("div",JM,[e.createElementVNode("div",eL,[e.createVNode(Yn,{brand:S(Q.name),size:"sm","show-title":!1},null,8,["brand"])]),e.unref(t)===Q.id?(e.openBlock(),e.createElementBlock("div",tL,[...N[12]||(N[12]=[e.createElementVNode("span",{class:"check-icon"},"✓",-1)])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",nL,[e.createElementVNode("h4",null,e.toDisplayString(Q.name),1),e.createElementVNode("span",oL,"Version "+e.toDisplayString(Q.version),1)])],10,XM))),128))])]),e.createElementVNode("div",rL,[N[16]||(N[16]=e.createElementVNode("div",{class:"section-header"},[e.createElementVNode("h3",null,"Color Mode"),e.createElementVNode("span",{class:"card-subtitle"},"Select your preferred appearance")],-1)),e.createElementVNode("div",aL,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),Q=>(e.openBlock(),e.createElementBlock("div",{key:Q.id,onClick:we=>e.unref(u)(Q.id),class:e.normalizeClass(["mode-option",{active:e.unref(o)===Q.id}])},[e.createElementVNode("div",sL,[e.createElementVNode("div",{class:"mode-preview",style:e.normalizeStyle(C(Q))},[...N[14]||(N[14]=[e.createElementVNode("div",{class:"mode-icon"},"🎨",-1)])],4),e.unref(o)===Q.id?(e.openBlock(),e.createElementBlock("div",lL,[...N[15]||(N[15]=[e.createElementVNode("span",{class:"check-icon"},"✓",-1)])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",cL,[e.createElementVNode("h4",null,e.toDisplayString(Q.name),1),e.createElementVNode("span",dL,e.toDisplayString(Q.name),1)])],10,iL))),128))])]),e.unref(a)?(e.openBlock(),e.createElementBlock("div",uL,[N[27]||(N[27]=e.createElementVNode("div",{class:"section-header"},[e.createElementVNode("h3",null,"Debug Info"),e.createElementVNode("span",{class:"card-subtitle"},"Current theme debugging")],-1)),e.createElementVNode("div",_L,[e.createElementVNode("div",pL,[N[17]||(N[17]=e.createElementVNode("strong",null,"Current Brand:",-1)),e.createTextVNode(" "+e.toDisplayString((B=e.unref(r))==null?void 0:B.name),1)]),e.createElementVNode("div",mL,[N[18]||(N[18]=e.createElementVNode("strong",null,"Current Mode:",-1)),e.createTextVNode(" "+e.toDisplayString((D=e.unref(a))==null?void 0:D.name),1)]),e.createElementVNode("div",gL,[N[19]||(N[19]=e.createElementVNode("strong",null,"Text Colors:",-1)),e.createTextVNode(" "+e.toDisplayString(((L=(M=(K=e.unref(a))==null?void 0:K.textColors)==null?void 0:M.colors)==null?void 0:L.length)||0)+" colors ",1)]),e.createElementVNode("div",fL,[N[20]||(N[20]=e.createElementVNode("strong",null,"Background Colors:",-1)),e.createTextVNode(" "+e.toDisplayString(((ue=(Y=(G=e.unref(a))==null?void 0:G.backgroundColor)==null?void 0:Y.colors)==null?void 0:ue.length)||0)+" colors ",1)]),e.createElementVNode("div",EL,[N[21]||(N[21]=e.createElementVNode("strong",null,"Border Colors:",-1)),e.createTextVNode(" "+e.toDisplayString(((re=(ie=(ge=e.unref(a))==null?void 0:ge.borderColor)==null?void 0:ie.colors)==null?void 0:re.length)||0)+" colors ",1)]),e.createElementVNode("div",SL,[N[25]||(N[25]=e.createElementVNode("h4",null,"Found Colors:",-1)),($=(ne=e.unref(a))==null?void 0:ne.textColors)!=null&&$.colors?(e.openBlock(),e.createElementBlock("div",bL,[N[22]||(N[22]=e.createElementVNode("strong",null,"Text Colors:",-1)),e.createTextVNode(" "+e.toDisplayString(e.unref(a).textColors.colors.map(Q=>Q.name).join(", ")),1)])):e.createCommentVNode("",!0),(se=(V=e.unref(a))==null?void 0:V.backgroundColor)!=null&&se.colors?(e.openBlock(),e.createElementBlock("div",hL,[N[23]||(N[23]=e.createElementVNode("strong",null,"Background Colors:",-1)),e.createTextVNode(" "+e.toDisplayString(e.unref(a).backgroundColor.colors.map(Q=>Q.name).join(", ")),1)])):e.createCommentVNode("",!0),(Se=(oe=e.unref(a))==null?void 0:oe.borderColor)!=null&&Se.colors?(e.openBlock(),e.createElementBlock("div",CL,[N[24]||(N[24]=e.createElementVNode("strong",null,"Border Colors:",-1)),e.createTextVNode(" "+e.toDisplayString(e.unref(a).borderColor.colors.map(Q=>Q.name).join(", ")),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",vL,[N[26]||(N[26]=e.createElementVNode("h4",null,"Generated CSS Variables:",-1)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(g)(),(Q,we)=>(e.openBlock(),e.createElementBlock("div",{key:we,class:"css-var"},[e.createElementVNode("strong",null,e.toDisplayString(we)+":",1),e.createTextVNode(" "+e.toDisplayString(Q),1)]))),128))])])])):e.createCommentVNode("",!0),e.createElementVNode("div",yL,[N[36]||(N[36]=e.createElementVNode("div",{class:"card-header"},[e.createElementVNode("h3",null,"Theme Statistics"),e.createElementVNode("span",{class:"card-subtitle"},"Current theme details")],-1)),e.createElementVNode("div",TL,[e.createElementVNode("div",AL,[N[29]||(N[29]=e.createElementVNode("div",{class:"stat-icon"},"🎨",-1)),e.createElementVNode("div",NL,[e.createElementVNode("span",IL,e.toDisplayString(Object.keys(e.unref(g)()).length),1),N[28]||(N[28]=e.createElementVNode("span",{class:"stat-label"},"CSS Variables",-1))])]),e.createElementVNode("div",RL,[N[31]||(N[31]=e.createElementVNode("div",{class:"stat-icon"},"📝",-1)),e.createElementVNode("div",OL,[e.createElementVNode("span",DL,e.toDisplayString(((Te=(_e=e.unref(r))==null?void 0:_e.fontThemes)==null?void 0:Te.length)||0),1),N[30]||(N[30]=e.createElementVNode("span",{class:"stat-label"},"Font Themes",-1))])]),e.createElementVNode("div",xL,[N[33]||(N[33]=e.createElementVNode("div",{class:"stat-icon"},"🔲",-1)),e.createElementVNode("div",wL,[e.createElementVNode("span",kL,e.toDisplayString(((Fe=(Oe=e.unref(r))==null?void 0:Oe.cornerRadiusThemes)==null?void 0:Fe.length)||0),1),N[32]||(N[32]=e.createElementVNode("span",{class:"stat-label"},"Corner Radius",-1))])]),e.createElementVNode("div",ML,[N[35]||(N[35]=e.createElementVNode("div",{class:"stat-icon"},"🎯",-1)),e.createElementVNode("div",LL,[e.createElementVNode("span",PL,e.toDisplayString(e.unref(c).length),1),N[34]||(N[34]=e.createElementVNode("span",{class:"stat-label"},"Color Modes",-1))])])])])])]))])}}}),BL={class:"freddy-plugins-themable"},FL={key:0,class:"freddy-plugins-status-indicator"},UL={class:"freddy-plugins-status-content"},GL={key:0},VL={key:1},YL={class:"freddy-plugins-tab-navigation"},HL=["onClick"],zL={class:"freddy-plugins-tab-icon"},qL={class:"freddy-plugins-tab-label"},$L={class:"freddy-plugins-tab-content"},WL={key:0,class:"freddy-plugins-tab-panel"},KL={key:1,class:"freddy-plugins-tab-panel"},QL={key:2,class:"freddy-plugins-tab-panel"},ZL={key:3,class:"freddy-plugins-tab-panel"},jL=e.defineComponent({__name:"Themable",setup(n){const t=e.ref("overview"),o=e.ref("Initializing..."),{initializeTheme:r,currentProject:a,currentColorMode:i,configuration:l}=me(),s=[{id:"overview",label:"Overview Dashboard",icon:"📊"},{id:"comparison",label:"Color Comparison",icon:"🎨"},{id:"tests",label:"Color Tests",icon:"🧪"},{id:"switcher",label:"Theme Switcher",icon:"⚙️"}];return e.onMounted(async()=>{try{o.value="Loading...",await r(),o.value="Ready"}catch(c){o.value="Error: "+(c instanceof Error?c.message:"Unknown error")}}),(c,d)=>(e.openBlock(),e.createElementBlock("div",BL,[d[4]||(d[4]=e.createElementVNode("div",{class:"freddy-plugins-themable-header"},[e.createElementVNode("h1",null,"Themable Design System"),e.createElementVNode("p",null,"Comprehensive tools for managing and comparing design system configurations")],-1)),o.value!=="Ready"?(e.openBlock(),e.createElementBlock("div",FL,[e.createElementVNode("div",UL,[e.createElementVNode("p",null,"Theme Service Status: "+e.toDisplayString(o.value),1),e.unref(a)?(e.openBlock(),e.createElementBlock("p",GL,"Current Project: "+e.toDisplayString(e.unref(a).name),1)):e.createCommentVNode("",!0),e.unref(i)?(e.openBlock(),e.createElementBlock("p",VL,"Current Mode: "+e.toDisplayString(e.unref(i).name),1)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),e.createElementVNode("div",YL,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(s,u=>e.createElementVNode("button",{key:u.id,onClick:_=>t.value=u.id,class:e.normalizeClass(["freddy-plugins-tab-button",{"freddy-plugins-active":t.value===u.id}])},[e.createElementVNode("span",zL,e.toDisplayString(u.icon),1),e.createElementVNode("span",qL,e.toDisplayString(u.label),1)],10,HL)),64))]),e.createElementVNode("div",$L,[t.value==="overview"?(e.openBlock(),e.createElementBlock("div",WL,[d[0]||(d[0]=e.createElementVNode("div",{class:"freddy-plugins-panel-header"},[e.createElementVNode("h2",null,"Overview Dashboard"),e.createElementVNode("p",null,"View all color configurations, fonts, and corner radius for all brands and color modes")],-1)),e.createVNode(R_)])):e.createCommentVNode("",!0),t.value==="comparison"?(e.openBlock(),e.createElementBlock("div",KL,[d[1]||(d[1]=e.createElementVNode("div",{class:"freddy-plugins-panel-header"},[e.createElementVNode("h2",null,"Color Comparison"),e.createElementVNode("p",null,"Compare colors across different brands and color modes")],-1)),e.createVNode(Qg)])):e.createCommentVNode("",!0),t.value==="tests"?(e.openBlock(),e.createElementBlock("div",QL,[d[2]||(d[2]=e.createElementVNode("div",{class:"freddy-plugins-panel-header"},[e.createElementVNode("h2",null,"Color Tests"),e.createElementVNode("p",null,"Validate that applied CSS variables match the configuration for the selected brand and mode.")],-1)),e.createVNode(Zg)])):e.createCommentVNode("",!0),t.value==="switcher"?(e.openBlock(),e.createElementBlock("div",ZL,[d[3]||(d[3]=e.createElementVNode("div",{class:"freddy-plugins-panel-header"},[e.createElementVNode("h2",null,"Theme Switcher"),e.createElementVNode("p",null,"Switch between different brands and color modes to customize your design system")],-1)),e.createVNode(_2)])):e.createCommentVNode("",!0)])]))}}),XL={class:"freddy-plugins-themable-overview-dashboard"},JL=e.defineComponent({__name:"ThemableOverviewDashboard",setup(n){return(t,o)=>(e.openBlock(),e.createElementBlock("div",XL,[o[0]||(o[0]=e.createElementVNode("div",{class:"freddy-plugins-dashboard-header"},[e.createElementVNode("h1",null,"Themable Overview Dashboard"),e.createElementVNode("p",null," View all color configurations, fonts, and corner radius for all brands and color modes ")],-1)),e.createVNode(R_)]))}}),eP={class:"freddy-plugins-toast-wrapper"},tP={class:"freddy-plugins-toast-icon-wrapper"},nP={class:"freddy-plugins-toast-message"},oP=["onClick"],rP=e.defineComponent({__name:"ToastMessage",setup(n){const{toastQueue:t}=Rc(),o={success:"freddy-plugins-toast-success",danger:"freddy-plugins-toast-danger",info:"freddy-plugins-toast-info"},r=l=>o[l],a=l=>{switch(l){case"success":return Nt;case"danger":return Ye;case"info":return ct;default:return Nt}},i=l=>{t.value.splice(l,1)};return(l,s)=>(e.openBlock(),e.createElementBlock("div",eP,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t),(c,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:e.normalizeClass(["freddy-plugins-toast-item",r(c.toastType)])},[e.createElementVNode("div",tP,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a(c.toastType)),{class:"freddy-plugins-toast-icon"}))]),e.createElementVNode("span",nP,e.toDisplayString(c.message),1),e.createElementVNode("button",{class:"freddy-plugins-toast-close-button",onClick:u=>i(d)},[e.createVNode(e.unref(Ye),{class:"freddy-plugins-toast-close-icon"})],8,oP)],2))),128))]))}}),aP=["aria-label"],iP=["innerHTML"],sP={key:1},lP=e.defineComponent({__name:"TooltipV2",props:{text:{},placement:{default:"top"},html:{type:Boolean,default:!1},contentClass:{},delay:{default:200},hideDelay:{default:0}},setup(n){const t=n,o=e.ref(!1),r=e.ref(!1),a=e.ref(null);let i=null,l=null;const s=()=>{l&&(clearTimeout(l),l=null),i&&clearTimeout(i),i=setTimeout(()=>{if(a.value){const _=a.value.getBoundingClientRect();r.value=_.top<150}o.value=!0},t.delay)},c=()=>{i&&(clearTimeout(i),i=null),l=setTimeout(()=>{o.value=!1},t.hideDelay)},d=()=>{s()},u=()=>{c()};return(_,m)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tooltipWrapper",ref:a,class:"freddy-plugins-tooltip-v2-wrapper",onMouseenter:s,onMouseleave:c,onFocusin:d,onFocusout:u,tabindex:"0"},[e.renderSlot(_.$slots,"default",{},void 0,!0),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[o.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["freddy-plugins-tooltip-v2-content",[_.placement,r.value?"force-bottom":"",_.contentClass]]),role:"tooltip","aria-label":_.text},[e.renderSlot(_.$slots,"content",{},()=>[_.html?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:_.text},null,8,iP)):(e.openBlock(),e.createElementBlock("span",sP,e.toDisplayString(_.text),1))],!0)],10,aP)):e.createCommentVNode("",!0)]),_:3})],544))}}),cP=R(lP,[["__scopeId","data-v-55872ec8"]]);function dP(n={}){const{logErrors:t=!0,throwOnCritical:o=!1,maxRetries:r=3}=n,a=e.ref([]),i=e.ref(!1),l=e.ref(0),s=e.computed(()=>a.value.length>0),c=e.computed(()=>a.value[a.value.length-1]||null),d=(b,v)=>{const T={message:b instanceof Error?b.message:String(b),stack:b instanceof Error?b.stack:void 0,timestamp:new Date().toISOString(),context:{...v,retryCount:l.value,userAgent:typeof navigator<"u"?navigator.userAgent:"Unknown"}};if(b&&typeof b=="object"&&"status"in b&&(T.code=b.status),a.value.push(T),t&&process.env.NODE_ENV,o&&p(b))throw b;return T},u=async(b,v)=>{i.value=!0;try{const T=await b();return l.value=0,{data:T,error:null}}catch(T){return{data:null,error:d(T,v)}}finally{i.value=!1}},_=async(b,v)=>{let T=null;for(let E=1;E<=r;E++){l.value=E-1;const h=await u(b,{...v,attempt:E,maxRetries:r});if(h.data!==null)return h;if(T=h.error,T!=null&&T.code&&typeof T.code=="number"&&T.code>=400&&T.code<500)break;E<r&&await new Promise(S=>setTimeout(S,Math.pow(2,E)*1e3))}return{data:null,error:T}},m=()=>{a.value=[],l.value=0},g=b=>{b>=0&&b<a.value.length&&a.value.splice(b,1)},p=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(()=>a.value),hasErrors:s,latestError:c,isLoading:e.computed(()=>i.value),retryCount:e.computed(()=>l.value),handleError:d,handleAsync:u,retryAsync:_,clearErrors:m,clearError:g,isCriticalError:p}}function uP(n={}){const{enableMetrics:t=process.env.NODE_ENV==="development",trackMemory:o=!1,sampleRate:r=.1}=n,a=e.ref([]),i=e.ref(!1),l=e.ref(0),s=e.computed(()=>a.value.length===0?0:a.value.reduce((S,C)=>S+C.renderTime,0)/a.value.length),c=e.computed(()=>a.value.length===0?0:Math.max(...a.value.map(h=>h.renderTime))),d=h=>{!t||Math.random()>r||(i.value=!0,l.value=performance.now(),h&&process.env.NODE_ENV)},u=(h,S=1)=>{if(!i.value||!t)return;const A={renderTime:performance.now()-l.value,componentCount:S,timestamp:new Date().toISOString()};if(o&&"memory"in performance){const y=performance.memory;A.memoryUsage=y.usedJSHeapSize}return a.value.push(A),a.value.length>100&&a.value.shift(),i.value=!1,h&&process.env.NODE_ENV,A},_=async(h,S)=>{d(S);try{const C=await h(),f=u(S)||{renderTime:0,componentCount:1,timestamp:new Date().toISOString()};return{result:C,metrics:f}}catch(C){throw u(S),C}},m=(h,S)=>{let C;return(...f)=>{clearTimeout(C),C=setTimeout(()=>h(...f),S)}},g=(h,S)=>{let C;return(...f)=>{C||(h(...f),C=!0,setTimeout(()=>C=!1,S))}},p=(h,S=5e3)=>{"requestIdleCallback"in window?window.requestIdleCallback(h,{timeout:S}):setTimeout(h,0)},b=async(h,S=0)=>(S>0&&await new Promise(C=>setTimeout(C,S)),new Promise(C=>{p(async()=>{try{const f=await h();C(f)}catch(f){throw f}})})),v=(h,S,C)=>{const f=Math.ceil(C/S),A=Math.ceil(f*.5);return y=>{const N=Math.max(0,Math.floor(y/S)-A),k=Math.min(h.length,N+f+A*2);return{visibleItems:h.slice(N,k),startIndex:N,endIndex:k,totalHeight:h.length*S,offsetY:N*S}}},T=()=>{a.value=[]},E=()=>({totalMeasurements:a.value.length,averageRenderTime:s.value,maxRenderTime:c.value,recentMetrics:a.value.slice(-10)});return t&&process.env.NODE_ENV==="development"&&e.onMounted(()=>{d("Component Mount"),e.nextTick(()=>{u("Component Mount")})}),{metrics:e.computed(()=>a.value),isTracking:e.computed(()=>i.value),averageRenderTime:s,maxRenderTime:c,startTracking:d,endTracking:u,measureAsync:_,debounce:m,throttle:g,scheduleWork:p,lazyLoad:b,createVirtualList:v,clearMetrics:T,getSummary:E}}exports.AITextService=e2;exports.AdvancedModal=G4;exports.AnimeSpaceman=M4;exports.ApiInteraction=s5;exports.AssistantField=gg;exports.AssistantList=b5;exports.AssistantsHeader=D5;exports.AuthCard=x_;exports.AuthContainer=D_;exports.AuthManager=pk;exports.AvatarChoosing=g_;exports.AvatarList=F5;exports.BaseButton=ht;exports.BaseFlowplateApiService=jg;exports.BaseInput=Jo;exports.BaseTabButton=fg;exports.CardInput=r2;exports.ChatInput=vg;exports.ChatInterface=AR;exports.ChatMessage=S_;exports.ChatMessages=fT;exports.ChooseAssistantAvatar=sv;exports.CodeBlock=Sg;exports.CodeSnippet=tl;exports.ColorComparison=Qg;exports.ColorValidation=Zg;exports.ConfigurationDashboard=R_;exports.ConfirmationModal=rg;exports.ContextItem=nl;exports.ContextManager=E_;exports.CustomCheckbox=$D;exports.DefaultInput=a2;exports.DeleteConfirmationModal=_g;exports.Descriptions=ow;exports.DiffTextarea=lw;exports.Dropdown=Bn;exports.EditFeaturedExcerptModal=Vn;exports.EmailCodeVerification=hw;exports.ErrorBoundary=bg;exports.FlowplateApiService=Jg;exports.IconAddFileSystem=Hn;exports.IconAddPeople=sl;exports.IconAitronos=cl;exports.IconApple=zn;exports.IconApplePay=_l;exports.IconArrowDown=ml;exports.IconArrowLeft=gl;exports.IconArrowUp=fl;exports.IconBadgeCheck=Kn;exports.IconBroom=Sl;exports.IconBuildings=hl;exports.IconCalendarWithTickInside=vl;exports.IconCallNotAllowed=Tl;exports.IconCardPay=Nl;exports.IconCaution=Qn;exports.IconChangeLog=Ol;exports.IconCheckCircleFill=Zn;exports.IconCheckInCircle=nn;exports.IconCheckRounded=on;exports.IconChevronDown=Et;exports.IconChevronLeft=Ml;exports.IconChevronRight=Ll;exports.IconChevronUp=un;exports.IconCircledCheck=Pl;exports.IconClock=Fl;exports.IconClosedEnvelope=Gl;exports.IconCloudUpload=Yl;exports.IconConnectorConfluence=zl;exports.IconConnectorFigma=$l;exports.IconConnectorFreshDesk=Kl;exports.IconConnectorGitHub=Zl;exports.IconConnectorJira=Xl;exports.IconConnectorLinear=ec;exports.IconConnectorNotion=nc;exports.IconConnectorSlack=rc;exports.IconConnectorZapier=ic;exports.IconCopy=rn;exports.IconCross=Ye;exports.IconCrossCircleFill=lc;exports.IconCrossInCircle=dc;exports.IconCurrentTick=_c;exports.IconDataUpload=oo;exports.IconDelete=ro;exports.IconDeleteFillRed=gc;exports.IconDialingPhone=Ec;exports.IconDisabledAlert=bc;exports.IconDocumentation=Cc;exports.IconDownload=yc;exports.IconDribbble=so;exports.IconDropdownArrow=Ac;exports.IconEdit=Tt;exports.IconEditLinePath=co;exports.IconEllipse=d_;exports.IconExcelThumbnail=Oc;exports.IconEye=uo;exports.IconFacebook=po;exports.IconFigma=mo;exports.IconFile=_n;exports.IconFileSystem=fo;exports.IconFileUpload=Mc;exports.IconFilter=Eo;exports.IconFolder=pn;exports.IconFreddyHub=Pc;exports.IconFreddyHubLogo=Fc;exports.IconFreddyHubNewLogo=Gc;exports.IconFreddyHubTitle=Yc;exports.IconFreddySmall=ho;exports.IconGlobExpand=qc;exports.IconGlobe=Wc;exports.IconGoogle=Co;exports.IconHollowCircle=Zc;exports.IconHome=Xc;exports.IconInfoRounded=ct;exports.IconInvalidInvoice=ed;exports.IconInvoice=nd;exports.IconInvoiceSwitch=rd;exports.IconLapTableBottom=id;exports.IconLense=ld;exports.IconLightCross=mn;exports.IconLink04=Pt;exports.IconLoadingError=ud;exports.IconLoadingOrg=pd;exports.IconLocationWithCircleIn=gd;exports.IconLock=To;exports.IconMarketPlace=Ed;exports.IconMaximize=No;exports.IconMicrophone=hd;exports.IconMutedMicrophone=vd;exports.IconNewNotification=Td;exports.IconNewTab=Io;exports.IconNotification=Id;exports.IconOpenBook=Od;exports.IconPaperAirPlane=Ro;exports.IconPauseCircle=wd;exports.IconPdfThumbnail=Md;exports.IconPenEdit=Pd;exports.IconPencil=Fd;exports.IconPeopleHub=Gd;exports.IconPersonCircle=Yd;exports.IconPits=zd;exports.IconPlay=$d;exports.IconPlus=Oo;exports.IconPolygonDown=Kd;exports.IconPresentation=Zd;exports.IconProgressBase=Xd;exports.IconProgressComplete=eu;exports.IconProgressGoing=nu;exports.IconPurpose=ru;exports.IconPurseCircleFill=iu;exports.IconQuestion=At;exports.IconRadio=cu;exports.IconRadioFill=uu;exports.IconRefresh=xo;exports.IconRevertedTraingle=ko;exports.IconRobotScreen=gn;exports.IconRoundTick=gu;exports.IconSearch=fn;exports.IconSearchOptimised=Eu;exports.IconSectionHide=Lo;exports.IconSend=Po;exports.IconSettings=hu;exports.IconSettingsBold=Cu;exports.IconSize=yu;exports.IconSliderKnobs=Au;exports.IconSortIdle=Iu;exports.IconSparkle=En;exports.IconSpotlio=Du;exports.IconStar=Uo;exports.IconStatistics=wu;exports.IconStopChat=Mu;exports.IconStreamLineHub=Pu;exports.IconStreamLineHubNewLogo=Fu;exports.IconStyleDirective=__;exports.IconSun=Gu;exports.IconSwap=Yu;exports.IconText=Vo;exports.IconTextThumbnail=zu;exports.IconThinDocument=$u;exports.IconThinFile=Ku;exports.IconThumbsDown=Ho;exports.IconTick=Nt;exports.IconUser=ju;exports.IconVerticalDots=Xu;exports.IconVideoCamera=e_;exports.IconWarningOctal=n_;exports.IconX=$o;exports.IconZip=a_;exports.InputField=Lt;exports.InstructionsModal=$w;exports.InstructiontextArea=Qw;exports.LoginForm=l2;exports.LoginPage=c2;exports.ModalBox=s2;exports.ModalOverlay=fk;exports.ModelDropdown=Ok;exports.OutputModeModal=Dk;exports.Pagination=Pk;exports.PhoneInput=i2;exports.RegisterForm=d2;exports.RegisterPage=u2;exports.RulesManagement=zv;exports.SearchInput=er;exports.SendButton=Cg;exports.SimpleChatInterface=t2;exports.SkeletonLoader=$k;exports.Slider=tM;exports.SnackBar=lM;exports.SocialButtons=Fy;exports.Spinner=m_;exports.Switch=hg;exports.SwitchSlot=fM;exports.TabList=bM;exports.Text=Xt;exports.TextAreaInputField=n2;exports.Themable=jL;exports.ThemableOverviewDashboard=JL;exports.ThemeSwitcher=_2;exports.ToastMessage=rP;exports.Tooltip=bt;exports.TooltipV2=cP;exports.VectorFrame=Eg;exports.VectorSection=hy;exports.VoiceList=Ay;exports.VoiceSelection=f_;exports.aiResponseToChatMessage=T4;exports.aiTextService=Jt;exports.calculatePercentage=b3;exports.cloneDeepSafe=C4;exports.copyToClipboard=f4;exports.createChangesObject=c_;exports.daysInMonth=I3;exports.debounce=b4;exports.deepEqual=Js;exports.default=x4;exports.defaultImageSrc=Ln;exports.extractStats=y4;exports.fileSizeFormatter=E4;exports.fillMissingDays=h3;exports.flowplateApiService=Jg;exports.flowplateAuthService=O_;exports.flowplateEnvironmentManager=QD;exports.formatDate=T3;exports.formatDateToLocaleString=v3;exports.formatLastUsedDate=A3;exports.frSanitizePlugin=w4;exports.getDatesForMonth=C3;exports.getDaysInMonth=ng;exports.getDisplayContent=l_;exports.getFileNameFromUrl=O3;exports.getShortMonthName=tg;exports.hasOverflow=S4;exports.hasTextImprovements=v4;exports.iconStylePlugin=k4;exports.interpolateColor=R3;exports.isValidAIResponse=A4;exports.openConfirmBoxModal=m4;exports.openDeleteConfirmModal=p4;exports.parseAITextResponse=pg;exports.parseApiResponse=Ko;exports.readableDateFormat=y3;exports.scrollToBottom=kt;exports.scrollToElement=g4;exports.useErrorHandler=dP;exports.usePerformance=uP;exports.useSnackBar=og;exports.useThemeService=tn;exports.useToast=Rc;exports.vFrSanitize=p_;
|
|
233
233
|
//# sourceMappingURL=index.cjs.map
|