@aitronos/freddy-plugins 0.4.57 → 0.4.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (293) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +224 -27
  3. package/dist/freddy-plugins.css +1 -1
  4. package/dist/{icons-Lnvg2xiB.js → icons-Be1wtE70.js} +2066 -2000
  5. package/dist/icons-Be1wtE70.js.map +1 -0
  6. package/dist/icons-CCfXKsmx.cjs +2 -0
  7. package/dist/icons-CCfXKsmx.cjs.map +1 -0
  8. package/dist/index.cjs +6 -6
  9. package/dist/index.cjs.map +1 -1
  10. package/dist/index.d.ts +6 -4389
  11. package/dist/index.js +2252 -2234
  12. package/dist/index.js.map +1 -1
  13. package/dist/src/App.vue.d.ts +2 -0
  14. package/dist/src/animations/AnimeSpaceman.vue.d.ts +8 -0
  15. package/dist/src/animations/index.d.ts +1 -0
  16. package/dist/src/assets/logos/index.d.ts +4 -0
  17. package/dist/src/components/AdvancedModal.vue.d.ts +23 -0
  18. package/dist/src/components/Assistant/AssistantField.vue.d.ts +13 -0
  19. package/dist/src/components/Assistant/AssistantList.vue.d.ts +10 -0
  20. package/dist/src/components/Assistant/AssistantsHeader.vue.d.ts +17 -0
  21. package/dist/src/components/Assistant/AvatarChoosing.vue.d.ts +16 -0
  22. package/dist/src/components/Assistant/AvatarList.vue.d.ts +30 -0
  23. package/dist/src/components/Assistant/ChooseAssistantAvatar.vue.d.ts +77 -0
  24. package/dist/src/components/Assistant/RulesManagement.vue.d.ts +28 -0
  25. package/dist/src/components/Assistant/VectorFrame.vue.d.ts +15 -0
  26. package/dist/src/components/Assistant/VectorSection.vue.d.ts +31 -0
  27. package/dist/src/components/Assistant/VoiceList.vue.d.ts +27 -0
  28. package/dist/src/components/Assistant/VoiceSelection.vue.d.ts +12 -0
  29. package/dist/src/components/Buttons/BaseButton.vue.d.ts +25 -0
  30. package/dist/src/components/Buttons/SocialButtons.vue.d.ts +13 -0
  31. package/dist/src/components/Buttons/index.d.ts +2 -0
  32. package/dist/src/components/CodeBlock.vue.d.ts +6 -0
  33. package/dist/src/components/ConfirmationModal.vue.d.ts +28 -0
  34. package/dist/src/components/CustomCheckbox.vue.d.ts +13 -0
  35. package/dist/src/components/DeleteConfirmationModal.vue.d.ts +28 -0
  36. package/dist/src/components/Descriptions.vue.d.ts +85 -0
  37. package/dist/src/components/DiffTextarea.vue.d.ts +21 -0
  38. package/dist/src/components/Dropdown.vue.d.ts +75 -0
  39. package/dist/src/components/EditFeaturedExcerptModal.vue.d.ts +161 -0
  40. package/dist/src/components/EmailCodeVerification.vue.d.ts +20 -0
  41. package/dist/src/components/InputField/BaseInput.vue.d.ts +46 -0
  42. package/dist/src/components/InputField/CardInput.vue.d.ts +77 -0
  43. package/dist/src/components/InputField/DefaultInput.vue.d.ts +39 -0
  44. package/dist/src/components/InputField/InputField.vue.d.ts +74 -0
  45. package/dist/src/components/InputField/PhoneInput.vue.d.ts +75 -0
  46. package/dist/src/components/InputField/index.d.ts +5 -0
  47. package/dist/src/components/Instructions/InstructionsModal.vue.d.ts +12 -0
  48. package/dist/src/components/Instructions/InstructiontextArea.vue.d.ts +11 -0
  49. package/dist/src/components/ModalOverlay.vue.d.ts +26 -0
  50. package/dist/src/components/ModelDropdown.vue.d.ts +23 -0
  51. package/dist/src/components/OutputModeModal.vue.d.ts +61 -0
  52. package/dist/src/components/Pagination.vue.d.ts +42 -0
  53. package/dist/src/components/SearchInput.vue.d.ts +26 -0
  54. package/dist/src/components/SendButton.vue.d.ts +7 -0
  55. package/dist/src/components/SimpleChatInterface.vue.d.ts +48 -0
  56. package/dist/src/components/SkeletonLoader.vue.d.ts +8 -0
  57. package/dist/src/components/Slider.vue.d.ts +19 -0
  58. package/dist/src/components/SnackBar.vue.d.ts +2 -0
  59. package/dist/src/components/Spinner.vue.d.ts +5 -0
  60. package/dist/src/components/Switch.vue.d.ts +11 -0
  61. package/dist/src/components/SwitchSlot.vue.d.ts +22 -0
  62. package/dist/src/components/TabList.vue.d.ts +9 -0
  63. package/dist/src/components/Tabs/BaseTabButton.vue.d.ts +12 -0
  64. package/dist/src/components/Tabs/index.d.ts +5 -0
  65. package/dist/src/components/TextAreaInputField.vue.d.ts +266 -0
  66. package/dist/src/components/ToastMessage.vue.d.ts +2 -0
  67. package/dist/src/components/Tooltip.vue.d.ts +32 -0
  68. package/dist/src/components/TooltipV2.vue.d.ts +41 -0
  69. package/dist/src/components/index.d.ts +50 -0
  70. package/dist/src/composables/index.d.ts +4 -0
  71. package/dist/src/composables/useErrorHandler.d.ts +46 -0
  72. package/dist/src/composables/usePerformance.d.ts +54 -0
  73. package/dist/src/composables/useTheme.d.ts +37 -0
  74. package/dist/src/config/api.config.d.ts +31 -0
  75. package/dist/src/config/colors/brands/contentplate.colors.d.ts +3 -0
  76. package/dist/src/config/colors/brands/flowplate.colors.d.ts +3 -0
  77. package/dist/src/config/colors/brands/freddy.colors.d.ts +3 -0
  78. package/dist/src/config/colors/color-system.d.ts +58 -0
  79. package/dist/src/config/colors/index.d.ts +12 -0
  80. package/dist/src/config/colors/types/color-system.types.d.ts +62 -0
  81. package/dist/src/config/colors/types/color.types.d.ts +99 -0
  82. package/dist/src/config/colors/utils/color.utils.d.ts +86 -0
  83. package/dist/src/config/environments.d.ts +11 -0
  84. package/dist/src/config/theme/freddy-default.d.ts +16 -0
  85. package/dist/src/config/theme/freddy-light.d.ts +14 -0
  86. package/dist/src/config/theme/global-theme-store.d.ts +128 -0
  87. package/dist/src/config/theme/themes.d.ts +12 -0
  88. package/dist/src/directives/frSanitize.d.ts +5 -0
  89. package/dist/src/directives/index.d.ts +1 -0
  90. package/dist/src/foundations/components/Logo.vue.d.ts +11 -0
  91. package/dist/src/foundations/components/index.d.ts +1 -0
  92. package/dist/src/foundations/index.d.ts +1 -0
  93. package/dist/src/helpers/BaseImageIcon.vue.d.ts +6 -0
  94. package/dist/src/helpers/api-response.helper.d.ts +100 -0
  95. package/dist/src/helpers/colors.helper.d.ts +8 -0
  96. package/dist/src/helpers/common.helper.d.ts +42 -0
  97. package/dist/src/helpers/date-format.helper.d.ts +34 -0
  98. package/dist/src/helpers/date.helper.d.ts +23 -0
  99. package/dist/src/helpers/fileName-handler.helper.d.ts +6 -0
  100. package/dist/src/helpers/index.d.ts +9 -0
  101. package/dist/src/helpers/percentageCalc.helper.d.ts +7 -0
  102. package/dist/src/helpers/validators.helper.d.ts +11 -0
  103. package/dist/src/icons/IconAddChatPop.vue.d.ts +2 -0
  104. package/dist/src/icons/IconAddFileSystem.vue.d.ts +2 -0
  105. package/dist/src/icons/IconAddPeople.vue.d.ts +2 -0
  106. package/dist/src/icons/IconAitronos.vue.d.ts +2 -0
  107. package/dist/src/icons/IconApple.vue.d.ts +2 -0
  108. package/dist/src/icons/IconApplePay.vue.d.ts +2 -0
  109. package/dist/src/icons/IconAppsGrid.vue.d.ts +2 -0
  110. package/dist/src/icons/IconArrowDown.vue.d.ts +2 -0
  111. package/dist/src/icons/IconArrowLeft.vue.d.ts +2 -0
  112. package/dist/src/icons/IconArrowUp.vue.d.ts +2 -0
  113. package/dist/src/icons/IconBadgeCheck.vue.d.ts +2 -0
  114. package/dist/src/icons/IconBroom.vue.d.ts +2 -0
  115. package/dist/src/icons/IconBuildings.vue.d.ts +2 -0
  116. package/dist/src/icons/IconCalendarWithTickInside.vue.d.ts +2 -0
  117. package/dist/src/icons/IconCallNotAllowed.vue.d.ts +2 -0
  118. package/dist/src/icons/IconCardPay.vue.d.ts +2 -0
  119. package/dist/src/icons/IconCaution.vue.d.ts +2 -0
  120. package/dist/src/icons/IconChangeLog.vue.d.ts +2 -0
  121. package/dist/src/icons/IconCheckCircleFill.vue.d.ts +2 -0
  122. package/dist/src/icons/IconCheckInCircle.vue.d.ts +2 -0
  123. package/dist/src/icons/IconCheckRounded.vue.d.ts +2 -0
  124. package/dist/src/icons/IconChevronDown.vue.d.ts +2 -0
  125. package/dist/src/icons/IconChevronLeft.vue.d.ts +2 -0
  126. package/dist/src/icons/IconChevronRight.vue.d.ts +2 -0
  127. package/dist/src/icons/IconChevronUp.vue.d.ts +2 -0
  128. package/dist/src/icons/IconCircledCheck.vue.d.ts +2 -0
  129. package/dist/src/icons/IconClock.vue.d.ts +2 -0
  130. package/dist/src/icons/IconClosedEnvelope.vue.d.ts +2 -0
  131. package/dist/src/icons/IconCloudUpload.vue.d.ts +2 -0
  132. package/dist/src/icons/IconConnectorConfluence.vue.d.ts +2 -0
  133. package/dist/src/icons/IconConnectorFigma.vue.d.ts +2 -0
  134. package/dist/src/icons/IconConnectorFreshDesk.vue.d.ts +2 -0
  135. package/dist/src/icons/IconConnectorGitHub.vue.d.ts +2 -0
  136. package/dist/src/icons/IconConnectorJira.vue.d.ts +2 -0
  137. package/dist/src/icons/IconConnectorLinear.vue.d.ts +2 -0
  138. package/dist/src/icons/IconConnectorNotion.vue.d.ts +2 -0
  139. package/dist/src/icons/IconConnectorSlack.vue.d.ts +2 -0
  140. package/dist/src/icons/IconConnectorZapier.vue.d.ts +2 -0
  141. package/dist/src/icons/IconCopy.vue.d.ts +2 -0
  142. package/dist/src/icons/IconCross.vue.d.ts +2 -0
  143. package/dist/src/icons/IconCrossCircleFill.vue.d.ts +2 -0
  144. package/dist/src/icons/IconCrossInCircle.vue.d.ts +2 -0
  145. package/dist/src/icons/IconCurrentTick.vue.d.ts +2 -0
  146. package/dist/src/icons/IconDataUpload.vue.d.ts +2 -0
  147. package/dist/src/icons/IconDelete.vue.d.ts +2 -0
  148. package/dist/src/icons/IconDeleteFillRed.vue.d.ts +2 -0
  149. package/dist/src/icons/IconDialingPhone.vue.d.ts +2 -0
  150. package/dist/src/icons/IconDisabledAlert.vue.d.ts +2 -0
  151. package/dist/src/icons/IconDocumentation.vue.d.ts +2 -0
  152. package/dist/src/icons/IconDownload.vue.d.ts +2 -0
  153. package/dist/src/icons/IconDribbble.vue.d.ts +2 -0
  154. package/dist/src/icons/IconDropdownArrow.vue.d.ts +2 -0
  155. package/dist/src/icons/IconEdit.vue.d.ts +2 -0
  156. package/dist/src/icons/IconEditLinePath.vue.d.ts +72 -0
  157. package/dist/src/icons/IconEllipse.vue.d.ts +2 -0
  158. package/dist/src/icons/IconExcelThumbnail.vue.d.ts +2 -0
  159. package/dist/src/icons/IconEye.vue.d.ts +2 -0
  160. package/dist/src/icons/IconFacebook.vue.d.ts +2 -0
  161. package/dist/src/icons/IconFigma.vue.d.ts +2 -0
  162. package/dist/src/icons/IconFile.vue.d.ts +2 -0
  163. package/dist/src/icons/IconFileSystem.vue.d.ts +2 -0
  164. package/dist/src/icons/IconFileUpload.vue.d.ts +2 -0
  165. package/dist/src/icons/IconFilter.vue.d.ts +2 -0
  166. package/dist/src/icons/IconFolder.vue.d.ts +2 -0
  167. package/dist/src/icons/IconFreddyHub.vue.d.ts +2 -0
  168. package/dist/src/icons/IconFreddyHubLogo.vue.d.ts +2 -0
  169. package/dist/src/icons/IconFreddyHubNewLogo.vue.d.ts +2 -0
  170. package/dist/src/icons/IconFreddyHubTitle.vue.d.ts +2 -0
  171. package/dist/src/icons/IconFreddySmall.vue.d.ts +2 -0
  172. package/dist/src/icons/IconGlobExpand.vue.d.ts +2 -0
  173. package/dist/src/icons/IconGlobe.vue.d.ts +2 -0
  174. package/dist/src/icons/IconGoogle.vue.d.ts +2 -0
  175. package/dist/src/icons/IconHollowCircle.vue.d.ts +2 -0
  176. package/dist/src/icons/IconHome.vue.d.ts +2 -0
  177. package/dist/src/icons/IconInfoRounded.vue.d.ts +2 -0
  178. package/dist/src/icons/IconInvalidInvoice.vue.d.ts +2 -0
  179. package/dist/src/icons/IconInvoice.vue.d.ts +2 -0
  180. package/dist/src/icons/IconInvoiceSwitch.vue.d.ts +2 -0
  181. package/dist/src/icons/IconLapTableBottom.vue.d.ts +2 -0
  182. package/dist/src/icons/IconLense.vue.d.ts +2 -0
  183. package/dist/src/icons/IconLightCross.vue.d.ts +2 -0
  184. package/dist/src/icons/IconLink04.vue.d.ts +2 -0
  185. package/dist/src/icons/IconLoadingError.vue.d.ts +2 -0
  186. package/dist/src/icons/IconLoadingOrg.vue.d.ts +2 -0
  187. package/dist/src/icons/IconLocationWithCircleIn.vue.d.ts +2 -0
  188. package/dist/src/icons/IconLock.vue.d.ts +2 -0
  189. package/dist/src/icons/IconMarketPlace.vue.d.ts +2 -0
  190. package/dist/src/icons/IconMaximize.vue.d.ts +2 -0
  191. package/dist/src/icons/IconMicrophone.vue.d.ts +2 -0
  192. package/dist/src/icons/IconMutedMicrophone.vue.d.ts +2 -0
  193. package/dist/src/icons/IconNewNotification.vue.d.ts +2 -0
  194. package/dist/src/icons/IconNewTab.vue.d.ts +2 -0
  195. package/dist/src/icons/IconNotification.vue.d.ts +2 -0
  196. package/dist/src/icons/IconOpenBook.vue.d.ts +2 -0
  197. package/dist/src/icons/IconPaperAirPlane.vue.d.ts +2 -0
  198. package/dist/src/icons/IconPauseCircle.vue.d.ts +2 -0
  199. package/dist/src/icons/IconPdfThumbnail.vue.d.ts +2 -0
  200. package/dist/src/icons/IconPenEdit.vue.d.ts +2 -0
  201. package/dist/src/icons/IconPencil.vue.d.ts +2 -0
  202. package/dist/src/icons/IconPeopleHub.vue.d.ts +2 -0
  203. package/dist/src/icons/IconPersonCircle.vue.d.ts +2 -0
  204. package/dist/src/icons/IconPits.vue.d.ts +2 -0
  205. package/dist/src/icons/IconPlay.vue.d.ts +2 -0
  206. package/dist/src/icons/IconPlus.vue.d.ts +2 -0
  207. package/dist/src/icons/IconPolygonDown.vue.d.ts +2 -0
  208. package/dist/src/icons/IconPresentation.vue.d.ts +2 -0
  209. package/dist/src/icons/IconProgressBase.vue.d.ts +2 -0
  210. package/dist/src/icons/IconProgressComplete.vue.d.ts +2 -0
  211. package/dist/src/icons/IconProgressGoing.vue.d.ts +2 -0
  212. package/dist/src/icons/IconPurpose.vue.d.ts +2 -0
  213. package/dist/src/icons/IconPurseCircleFill.vue.d.ts +2 -0
  214. package/dist/src/icons/IconQuestion.vue.d.ts +2 -0
  215. package/dist/src/icons/IconRadio.vue.d.ts +2 -0
  216. package/dist/src/icons/IconRadioFill.vue.d.ts +2 -0
  217. package/dist/src/icons/IconRefresh.vue.d.ts +2 -0
  218. package/dist/src/icons/IconRevertedTriangle.vue.d.ts +2 -0
  219. package/dist/src/icons/IconRobotScreen.vue.d.ts +2 -0
  220. package/dist/src/icons/IconRoundTick.vue.d.ts +2 -0
  221. package/dist/src/icons/IconSearch.vue.d.ts +2 -0
  222. package/dist/src/icons/IconSearchOptimised.vue.d.ts +2 -0
  223. package/dist/src/icons/IconSectionHide.vue.d.ts +2 -0
  224. package/dist/src/icons/IconSend.vue.d.ts +2 -0
  225. package/dist/src/icons/IconSettings.vue.d.ts +2 -0
  226. package/dist/src/icons/IconSettingsBold.vue.d.ts +2 -0
  227. package/dist/src/icons/IconSize.vue.d.ts +2 -0
  228. package/dist/src/icons/IconSliderKnobs.vue.d.ts +2 -0
  229. package/dist/src/icons/IconSortIdle.vue.d.ts +2 -0
  230. package/dist/src/icons/IconSparkle.vue.d.ts +2 -0
  231. package/dist/src/icons/IconSpotlio.vue.d.ts +2 -0
  232. package/dist/src/icons/IconStar.vue.d.ts +2 -0
  233. package/dist/src/icons/IconStatistics.vue.d.ts +2 -0
  234. package/dist/src/icons/IconStopChat.vue.d.ts +2 -0
  235. package/dist/src/icons/IconStreamLineHub.vue.d.ts +2 -0
  236. package/dist/src/icons/IconStreamLineHubNewLogo.vue.d.ts +2 -0
  237. package/dist/src/icons/IconSun.vue.d.ts +2 -0
  238. package/dist/src/icons/IconSwap.vue.d.ts +2 -0
  239. package/dist/src/icons/IconText.vue.d.ts +2 -0
  240. package/dist/src/icons/IconTextThumbnail.vue.d.ts +2 -0
  241. package/dist/src/icons/IconThinDocument.vue.d.ts +2 -0
  242. package/dist/src/icons/IconThinFile.vue.d.ts +2 -0
  243. package/dist/src/icons/IconThumbsDown.vue.d.ts +2 -0
  244. package/dist/src/icons/IconTick.vue.d.ts +2 -0
  245. package/dist/src/icons/IconUser.vue.d.ts +2 -0
  246. package/dist/src/icons/IconVerticalDots.vue.d.ts +2 -0
  247. package/dist/src/icons/IconVideoCamera.vue.d.ts +2 -0
  248. package/dist/src/icons/IconWarningOctal.vue.d.ts +2 -0
  249. package/dist/src/icons/IconX.vue.d.ts +2 -0
  250. package/dist/src/icons/IconZip.vue.d.ts +2 -0
  251. package/dist/src/icons/index.d.ts +148 -0
  252. package/dist/src/index.d.ts +23 -0
  253. package/dist/src/interfaces/assistant.interfaces.d.ts +237 -0
  254. package/dist/src/interfaces/base-button.interfaces.d.ts +119 -0
  255. package/dist/src/interfaces/color-comparison.interfaces.d.ts +71 -0
  256. package/dist/src/interfaces/index.d.ts +19 -0
  257. package/dist/src/interfaces/input-field.interfaces.d.ts +226 -0
  258. package/dist/src/interfaces/reference.d.ts +14 -0
  259. package/dist/src/interfaces/services/ai.interfaces.d.ts +56 -0
  260. package/dist/src/interfaces/services/api.interfaces.d.ts +46 -0
  261. package/dist/src/interfaces/services/auth.interfaces.d.ts +99 -0
  262. package/dist/src/interfaces/services/index.d.ts +7 -0
  263. package/dist/src/interfaces/skeleton-loader.interfaces.d.ts +1 -0
  264. package/dist/src/interfaces/slider.interfaces.d.ts +81 -0
  265. package/dist/src/interfaces/social-buttons.interfaces.d.ts +115 -0
  266. package/dist/src/interfaces/switch-slot.interfaces.d.ts +55 -0
  267. package/dist/src/interfaces/tab-button.interfaces.d.ts +23 -0
  268. package/dist/src/interfaces/tab-list.interfaces.d.ts +15 -0
  269. package/dist/src/interfaces/theme/index.d.ts +5 -0
  270. package/dist/src/interfaces/theme/theme.interfaces.d.ts +88 -0
  271. package/dist/src/interfaces/ui/chat.interfaces.d.ts +66 -0
  272. package/dist/src/interfaces/ui/editor.interfaces.d.ts +31 -0
  273. package/dist/src/interfaces/ui/feedback.interfaces.d.ts +39 -0
  274. package/dist/src/interfaces/ui/form.interfaces.d.ts +51 -0
  275. package/dist/src/interfaces/ui/index.d.ts +10 -0
  276. package/dist/src/interfaces/ui/modal.interfaces.d.ts +34 -0
  277. package/dist/src/interfaces/ui/navigation.interfaces.d.ts +31 -0
  278. package/dist/src/interfaces/utilities/common.interfaces.d.ts +59 -0
  279. package/dist/src/interfaces/utilities/index.d.ts +5 -0
  280. package/dist/src/main.d.ts +1 -0
  281. package/dist/src/plugin.d.ts +5 -0
  282. package/dist/src/plugins/icon-style.d.ts +3 -0
  283. package/dist/src/plugins/index.d.ts +11 -0
  284. package/dist/src/services/AITextService.d.ts +68 -0
  285. package/dist/src/services/index.d.ts +15 -0
  286. package/dist/src/utility/confirmationModal.d.ts +2 -0
  287. package/dist/src/utility/index.d.ts +3 -0
  288. package/dist/src/utility/useSnackbar.d.ts +26 -0
  289. package/dist/src/utility/useToast.d.ts +19 -0
  290. package/package.json +6 -2
  291. package/dist/icons-DQveW34E.cjs +0 -2
  292. package/dist/icons-DQveW34E.cjs.map +0 -1
  293. package/dist/icons-Lnvg2xiB.js.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var ue=Object.create;var L=Object.defineProperty;var _e=Object.getOwnPropertyDescriptor;var pe=Object.getOwnPropertyNames;var ve=Object.getPrototypeOf,me=Object.prototype.hasOwnProperty;var he=(h,_,s)=>_ in h?L(h,_,{enumerable:!0,configurable:!0,writable:!0,value:s}):h[_]=s;var fe=(h,_,s,r)=>{if(_&&typeof _=="object"||typeof _=="function")for(let l of pe(_))!me.call(h,l)&&l!==s&&L(h,l,{get:()=>_[l],enumerable:!(r=_e(_,l))||r.enumerable});return h};var ge=(h,_,s)=>(s=h!=null?ue(ve(h)):{},fe(_||!h||!h.__esModule?L(s,"default",{value:h,enumerable:!0}):s,h));var z=(h,_,s)=>he(h,typeof _!="symbol"?_+"":_,s);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./icons-DQveW34E.cjs"),e=require("vue"),O={mounted(h){h.getAttribute("class")||h.setAttribute("class","base-fallback-style")}};let R=null;const ye=async()=>{try{R=(await import("dompurify")).default}catch{}};ye();const be=["a","abbr","b","blockquote","br","code","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","li","ol","p","pre","span","strong","sub","sup","table","tbody","td","th","thead","tr","u","ul"],Ie=["href","src","alt","title","width","height","align","class","id","colspan","rowspan"],Z=h=>h.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").replace(/<iframe\b[^<]*(?:(?!<\/iframe>)<[^<]*)*<\/iframe>/gi,"").replace(/on\w+="[^"]*"/gi,"").replace(/javascript:/gi,""),J=h=>{if(!R)return Z(h);try{return R.sanitize(h,{ALLOWED_TAGS:be,ALLOWED_ATTR:Ie,USE_PROFILES:{html:!0}})}catch{return Z(h)}},H={mounted(h,_){h.innerHTML=J(_.value||"")},updated(h,_){h.innerHTML=J(_.value||"")}},ke={install(h){var s;h.directive("icon-style",O),h.directive("fr-sanitize",H);const _=Object.assign({"./icons/IconAddFileSystem.vue":n.__vite_glob_0_0,"./icons/IconAddPeople.vue":n.__vite_glob_0_1,"./icons/IconAitronos.vue":n.__vite_glob_0_2,"./icons/IconApple.vue":n.__vite_glob_0_3,"./icons/IconApplePay.vue":n.__vite_glob_0_4,"./icons/IconArrowDown.vue":n.__vite_glob_0_5,"./icons/IconArrowLeft.vue":n.__vite_glob_0_6,"./icons/IconArrowUp.vue":n.__vite_glob_0_7,"./icons/IconBadgeCheck.vue":n.__vite_glob_0_8,"./icons/IconBroom.vue":n.__vite_glob_0_9,"./icons/IconBuildings.vue":n.__vite_glob_0_10,"./icons/IconCalendarWithTickInside.vue":n.__vite_glob_0_11,"./icons/IconCallNotAllowed.vue":n.__vite_glob_0_12,"./icons/IconCardPay.vue":n.__vite_glob_0_13,"./icons/IconCaution.vue":n.__vite_glob_0_14,"./icons/IconChangeLog.vue":n.__vite_glob_0_15,"./icons/IconCheckCircleFill.vue":n.__vite_glob_0_16,"./icons/IconCheckInCircle.vue":n.__vite_glob_0_17,"./icons/IconCheckRounded.vue":n.__vite_glob_0_18,"./icons/IconChevronDown.vue":n.__vite_glob_0_19,"./icons/IconChevronLeft.vue":n.__vite_glob_0_20,"./icons/IconChevronRight.vue":n.__vite_glob_0_21,"./icons/IconChevronUp.vue":n.__vite_glob_0_22,"./icons/IconCircledCheck.vue":n.__vite_glob_0_23,"./icons/IconClock.vue":n.__vite_glob_0_24,"./icons/IconClosedEnvelope.vue":n.__vite_glob_0_25,"./icons/IconCloudUpload.vue":n.__vite_glob_0_26,"./icons/IconConnectorConfluence.vue":n.__vite_glob_0_27,"./icons/IconConnectorFigma.vue":n.__vite_glob_0_28,"./icons/IconConnectorFreshDesk.vue":n.__vite_glob_0_29,"./icons/IconConnectorGitHub.vue":n.__vite_glob_0_30,"./icons/IconConnectorJira.vue":n.__vite_glob_0_31,"./icons/IconConnectorLinear.vue":n.__vite_glob_0_32,"./icons/IconConnectorNotion.vue":n.__vite_glob_0_33,"./icons/IconConnectorSlack.vue":n.__vite_glob_0_34,"./icons/IconConnectorZapier.vue":n.__vite_glob_0_35,"./icons/IconCopy.vue":n.__vite_glob_0_36,"./icons/IconCross.vue":n.__vite_glob_0_37,"./icons/IconCrossCircleFill.vue":n.__vite_glob_0_38,"./icons/IconCrossInCircle.vue":n.__vite_glob_0_39,"./icons/IconCurrentTick.vue":n.__vite_glob_0_40,"./icons/IconDataUpload.vue":n.__vite_glob_0_41,"./icons/IconDelete.vue":n.__vite_glob_0_42,"./icons/IconDeleteFillRed.vue":n.__vite_glob_0_43,"./icons/IconDialingPhone.vue":n.__vite_glob_0_44,"./icons/IconDisabledAlert.vue":n.__vite_glob_0_45,"./icons/IconDocumentation.vue":n.__vite_glob_0_46,"./icons/IconDownload.vue":n.__vite_glob_0_47,"./icons/IconDribbble.vue":n.__vite_glob_0_48,"./icons/IconDropdownArrow.vue":n.__vite_glob_0_49,"./icons/IconEdit.vue":n.__vite_glob_0_50,"./icons/IconEditLinePath.vue":n.__vite_glob_0_51,"./icons/IconEllipse.vue":n.__vite_glob_0_52,"./icons/IconExcelThumbnail.vue":n.__vite_glob_0_53,"./icons/IconEye.vue":n.__vite_glob_0_54,"./icons/IconFacebook.vue":n.__vite_glob_0_55,"./icons/IconFigma.vue":n.__vite_glob_0_56,"./icons/IconFile.vue":n.__vite_glob_0_57,"./icons/IconFileSystem.vue":n.__vite_glob_0_58,"./icons/IconFileUpload.vue":n.__vite_glob_0_59,"./icons/IconFilter.vue":n.__vite_glob_0_60,"./icons/IconFolder.vue":n.__vite_glob_0_61,"./icons/IconFreddyHub.vue":n.__vite_glob_0_62,"./icons/IconFreddyHubLogo.vue":n.__vite_glob_0_63,"./icons/IconFreddyHubNewLogo.vue":n.__vite_glob_0_64,"./icons/IconFreddyHubTitle.vue":n.__vite_glob_0_65,"./icons/IconFreddySmall.vue":n.__vite_glob_0_66,"./icons/IconGlobExpand.vue":n.__vite_glob_0_67,"./icons/IconGlobe.vue":n.__vite_glob_0_68,"./icons/IconGoogle.vue":n.__vite_glob_0_69,"./icons/IconHollowCircle.vue":n.__vite_glob_0_70,"./icons/IconHome.vue":n.__vite_glob_0_71,"./icons/IconInfoRounded.vue":n.__vite_glob_0_72,"./icons/IconInvalidInvoice.vue":n.__vite_glob_0_73,"./icons/IconInvoice.vue":n.__vite_glob_0_74,"./icons/IconInvoiceSwitch.vue":n.__vite_glob_0_75,"./icons/IconLapTableBottom.vue":n.__vite_glob_0_76,"./icons/IconLense.vue":n.__vite_glob_0_77,"./icons/IconLightCross.vue":n.__vite_glob_0_78,"./icons/IconLink04.vue":n.__vite_glob_0_79,"./icons/IconLoadingError.vue":n.__vite_glob_0_80,"./icons/IconLoadingOrg.vue":n.__vite_glob_0_81,"./icons/IconLocationWithCircleIn.vue":n.__vite_glob_0_82,"./icons/IconLock.vue":n.__vite_glob_0_83,"./icons/IconMarketPlace.vue":n.__vite_glob_0_84,"./icons/IconMaximize.vue":n.__vite_glob_0_85,"./icons/IconMicrophone.vue":n.__vite_glob_0_86,"./icons/IconMutedMicrophone.vue":n.__vite_glob_0_87,"./icons/IconNewNotification.vue":n.__vite_glob_0_88,"./icons/IconNewTab.vue":n.__vite_glob_0_89,"./icons/IconNotification.vue":n.__vite_glob_0_90,"./icons/IconOpenBook.vue":n.__vite_glob_0_91,"./icons/IconPaperAirPlane.vue":n.__vite_glob_0_92,"./icons/IconPauseCircle.vue":n.__vite_glob_0_93,"./icons/IconPdfThumbnail.vue":n.__vite_glob_0_94,"./icons/IconPenEdit.vue":n.__vite_glob_0_95,"./icons/IconPencil.vue":n.__vite_glob_0_96,"./icons/IconPeopleHub.vue":n.__vite_glob_0_97,"./icons/IconPersonCircle.vue":n.__vite_glob_0_98,"./icons/IconPits.vue":n.__vite_glob_0_99,"./icons/IconPlay.vue":n.__vite_glob_0_100,"./icons/IconPlus.vue":n.__vite_glob_0_101,"./icons/IconPolygonDown.vue":n.__vite_glob_0_102,"./icons/IconPresentation.vue":n.__vite_glob_0_103,"./icons/IconProgressBase.vue":n.__vite_glob_0_104,"./icons/IconProgressComplete.vue":n.__vite_glob_0_105,"./icons/IconProgressGoing.vue":n.__vite_glob_0_106,"./icons/IconPurpose.vue":n.__vite_glob_0_107,"./icons/IconPurseCircleFill.vue":n.__vite_glob_0_108,"./icons/IconQuestion.vue":n.__vite_glob_0_109,"./icons/IconRadio.vue":n.__vite_glob_0_110,"./icons/IconRadioFill.vue":n.__vite_glob_0_111,"./icons/IconRefresh.vue":n.__vite_glob_0_112,"./icons/IconRevertedTriangle.vue":n.__vite_glob_0_113,"./icons/IconRobotScreen.vue":n.__vite_glob_0_114,"./icons/IconRoundTick.vue":n.__vite_glob_0_115,"./icons/IconSearch.vue":n.__vite_glob_0_116,"./icons/IconSearchOptimised.vue":n.__vite_glob_0_117,"./icons/IconSectionHide.vue":n.__vite_glob_0_118,"./icons/IconSend.vue":n.__vite_glob_0_119,"./icons/IconSettings.vue":n.__vite_glob_0_120,"./icons/IconSettingsBold.vue":n.__vite_glob_0_121,"./icons/IconSize.vue":n.__vite_glob_0_122,"./icons/IconSliderKnobs.vue":n.__vite_glob_0_123,"./icons/IconSortIdle.vue":n.__vite_glob_0_124,"./icons/IconSparkle.vue":n.__vite_glob_0_125,"./icons/IconSpotlio.vue":n.__vite_glob_0_126,"./icons/IconStar.vue":n.__vite_glob_0_127,"./icons/IconStatistics.vue":n.__vite_glob_0_128,"./icons/IconStopChat.vue":n.__vite_glob_0_129,"./icons/IconStreamLineHub.vue":n.__vite_glob_0_130,"./icons/IconStreamLineHubNewLogo.vue":n.__vite_glob_0_131,"./icons/IconSun.vue":n.__vite_glob_0_132,"./icons/IconSwap.vue":n.__vite_glob_0_133,"./icons/IconText.vue":n.__vite_glob_0_134,"./icons/IconTextThumbnail.vue":n.__vite_glob_0_135,"./icons/IconThinDocument.vue":n.__vite_glob_0_136,"./icons/IconThinFile.vue":n.__vite_glob_0_137,"./icons/IconThumbsDown.vue":n.__vite_glob_0_138,"./icons/IconTick.vue":n.__vite_glob_0_139,"./icons/IconUser.vue":n.__vite_glob_0_140,"./icons/IconVerticalDots.vue":n.__vite_glob_0_141,"./icons/IconVideoCamera.vue":n.__vite_glob_0_142,"./icons/IconWarningOctal.vue":n.__vite_glob_0_143,"./icons/IconX.vue":n.__vite_glob_0_144,"./icons/IconZip.vue":n.__vite_glob_0_145});for(const r in _){const l=_[r],a=l.default.name||((s=r.split("/").pop())==null?void 0:s.replace(".vue",""));h.component(a,l.default)}}},Ce={install(h){h.directive("fr-sanitize",H)}},Pe={install(h){h.directive("icon-style",O)}},we=e.defineComponent({__name:"AnimeSpaceman",props:{customClass:{},customStyle:{}},setup(h){return(_,s)=>(e.openBlock(),e.createElementBlock("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 800 600",class:e.normalizeClass(["spaceman-logo",_.customClass]),style:e.normalizeStyle(_.customStyle)},[...s[0]||(s[0]=[e.createStaticVNode(`<g><defs><clipPath id="GlassClip"><path d="M380.857,346.164c-1.247,4.651-4.668,8.421-9.196,10.06c-9.332,3.377-26.2,7.817-42.301,3.5
1
+ "use strict";var ue=Object.create;var M=Object.defineProperty;var he=Object.getOwnPropertyDescriptor;var pe=Object.getOwnPropertyNames;var me=Object.getPrototypeOf,ve=Object.prototype.hasOwnProperty;var fe=(f,h,i)=>h in f?M(f,h,{enumerable:!0,configurable:!0,writable:!0,value:i}):f[h]=i;var Ie=(f,h,i,o)=>{if(h&&typeof h=="object"||typeof h=="function")for(let s of pe(h))!ve.call(f,s)&&s!==i&&M(f,s,{get:()=>h[s],enumerable:!(o=he(h,s))||o.enumerable});return f};var ge=(f,h,i)=>(i=f!=null?ue(me(f)):{},Ie(h||!f||!f.__esModule?M(i,"default",{value:f,enumerable:!0}):i,f));var R=(f,h,i)=>fe(f,typeof h!="symbol"?h+"":h,i);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("./icons-CCfXKsmx.cjs"),H={mounted(f){f.getAttribute("class")||f.setAttribute("class","base-fallback-style")}};let z=null;const ye=async()=>{try{z=(await import("dompurify")).default}catch{}};ye();const ke=["a","abbr","b","blockquote","br","code","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","li","ol","p","pre","span","strong","sub","sup","table","tbody","td","th","thead","tr","u","ul"],Ce=["href","src","alt","title","width","height","align","class","id","colspan","rowspan"],Z=f=>f.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").replace(/<iframe\b[^<]*(?:(?!<\/iframe>)<[^<]*)*<\/iframe>/gi,"").replace(/on\w+="[^"]*"/gi,"").replace(/javascript:/gi,""),J=f=>{if(!z)return Z(f);try{return z.sanitize(f,{ALLOWED_TAGS:ke,ALLOWED_ATTR:Ce,USE_PROFILES:{html:!0}})}catch{return Z(f)}},O={mounted(f,h){f.innerHTML=J(h.value||"")},updated(f,h){f.innerHTML=J(h.value||"")}},be={install(f){var h;f.directive("icon-style",H),f.directive("fr-sanitize",O);try{const i=Object.assign({"./icons/IconAddChatPop.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconAddChatPop$1),"./icons/IconAddFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconAddFileSystem$1),"./icons/IconAddPeople.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconAddPeople$1),"./icons/IconAitronos.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconAitronos$1),"./icons/IconApple.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconApple$1),"./icons/IconApplePay.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconApplePay$1),"./icons/IconAppsGrid.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconAppsGrid$1),"./icons/IconArrowDown.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconArrowDown$1),"./icons/IconArrowLeft.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconArrowLeft$1),"./icons/IconArrowUp.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconArrowUp$1),"./icons/IconBadgeCheck.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconBadgeCheck$1),"./icons/IconBroom.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconBroom$1),"./icons/IconBuildings.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconBuildings$1),"./icons/IconCalendarWithTickInside.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconCalendarWithTickInside$1),"./icons/IconCallNotAllowed.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconCallNotAllowed$1),"./icons/IconCardPay.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconCardPay$1),"./icons/IconCaution.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconCaution$1),"./icons/IconChangeLog.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconChangeLog$1),"./icons/IconCheckCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconCheckCircleFill$1),"./icons/IconCheckInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconCheckInCircle$1),"./icons/IconCheckRounded.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconCheckRounded$1),"./icons/IconChevronDown.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconChevronDown$1),"./icons/IconChevronLeft.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconChevronLeft$1),"./icons/IconChevronRight.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconChevronRight$1),"./icons/IconChevronUp.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconChevronUp$1),"./icons/IconCircledCheck.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconCircledCheck$1),"./icons/IconClock.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconClock$1),"./icons/IconClosedEnvelope.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconClosedEnvelope$1),"./icons/IconCloudUpload.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconCloudUpload$1),"./icons/IconConnectorConfluence.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconConnectorConfluence$1),"./icons/IconConnectorFigma.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconConnectorFigma$1),"./icons/IconConnectorFreshDesk.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconConnectorFreshDesk$1),"./icons/IconConnectorGitHub.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconConnectorGitHub$1),"./icons/IconConnectorJira.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconConnectorJira$1),"./icons/IconConnectorLinear.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconConnectorLinear$1),"./icons/IconConnectorNotion.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconConnectorNotion$1),"./icons/IconConnectorSlack.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconConnectorSlack$1),"./icons/IconConnectorZapier.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconConnectorZapier$1),"./icons/IconCopy.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconCopy$1),"./icons/IconCross.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconCross$1),"./icons/IconCrossCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconCrossCircleFill$1),"./icons/IconCrossInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconCrossInCircle$1),"./icons/IconCurrentTick.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconCurrentTick$1),"./icons/IconDataUpload.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconDataUpload$1),"./icons/IconDelete.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconDelete$1),"./icons/IconDeleteFillRed.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconDeleteFillRed$1),"./icons/IconDialingPhone.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconDialingPhone$1),"./icons/IconDisabledAlert.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconDisabledAlert$1),"./icons/IconDocumentation.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconDocumentation$1),"./icons/IconDownload.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconDownload$1),"./icons/IconDribbble.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconDribbble$1),"./icons/IconDropdownArrow.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconDropdownArrow$1),"./icons/IconEdit.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconEdit$1),"./icons/IconEditLinePath.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconEditLinePath$1),"./icons/IconEllipse.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconEllipse),"./icons/IconExcelThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconExcelThumbnail$1),"./icons/IconEye.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconEye$1),"./icons/IconFacebook.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconFacebook$1),"./icons/IconFigma.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconFigma$1),"./icons/IconFile.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconFile$1),"./icons/IconFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconFileSystem$1),"./icons/IconFileUpload.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconFileUpload$1),"./icons/IconFilter.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconFilter$1),"./icons/IconFolder.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconFolder$1),"./icons/IconFreddyHub.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconFreddyHub$1),"./icons/IconFreddyHubLogo.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconFreddyHubLogo$1),"./icons/IconFreddyHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconFreddyHubNewLogo$1),"./icons/IconFreddyHubTitle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconFreddyHubTitle),"./icons/IconFreddySmall.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconFreddySmall$1),"./icons/IconGlobExpand.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconGlobExpand$1),"./icons/IconGlobe.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconGlobe$1),"./icons/IconGoogle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconGoogle$1),"./icons/IconHollowCircle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconHollowCircle$1),"./icons/IconHome.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconHome$1),"./icons/IconInfoRounded.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconInfoRounded$1),"./icons/IconInvalidInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconInvalidInvoice$1),"./icons/IconInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconInvoice$1),"./icons/IconInvoiceSwitch.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconInvoiceSwitch$1),"./icons/IconLapTableBottom.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconLapTableBottom$1),"./icons/IconLense.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconLense$1),"./icons/IconLightCross.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconLightCross$1),"./icons/IconLink04.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconLink04$1),"./icons/IconLoadingError.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconLoadingError$1),"./icons/IconLoadingOrg.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconLoadingOrg$1),"./icons/IconLocationWithCircleIn.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconLocationWithCircleIn$1),"./icons/IconLock.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconLock$1),"./icons/IconMarketPlace.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconMarketPlace$1),"./icons/IconMaximize.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconMaximize$1),"./icons/IconMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconMicrophone$1),"./icons/IconMutedMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconMutedMicrophone$1),"./icons/IconNewNotification.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconNewNotification$1),"./icons/IconNewTab.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconNewTab$1),"./icons/IconNotification.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconNotification$1),"./icons/IconOpenBook.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconOpenBook$1),"./icons/IconPaperAirPlane.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconPaperAirPlane$1),"./icons/IconPauseCircle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconPauseCircle$1),"./icons/IconPdfThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconPdfThumbnail$1),"./icons/IconPenEdit.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconPenEdit$1),"./icons/IconPencil.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconPencil$1),"./icons/IconPeopleHub.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconPeopleHub$1),"./icons/IconPersonCircle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconPersonCircle$1),"./icons/IconPits.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconPits$1),"./icons/IconPlay.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconPlay$1),"./icons/IconPlus.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconPlus$1),"./icons/IconPolygonDown.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconPolygonDown$1),"./icons/IconPresentation.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconPresentation$1),"./icons/IconProgressBase.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconProgressBase$1),"./icons/IconProgressComplete.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconProgressComplete$1),"./icons/IconProgressGoing.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconProgressGoing$1),"./icons/IconPurpose.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconPurpose$1),"./icons/IconPurseCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconPurseCircleFill$1),"./icons/IconQuestion.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconQuestion$1),"./icons/IconRadio.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconRadio$1),"./icons/IconRadioFill.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconRadioFill$1),"./icons/IconRefresh.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconRefresh$1),"./icons/IconRevertedTriangle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconRevertedTriangle$1),"./icons/IconRobotScreen.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconRobotScreen$1),"./icons/IconRoundTick.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconRoundTick$1),"./icons/IconSearch.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconSearch$1),"./icons/IconSearchOptimised.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconSearchOptimised$1),"./icons/IconSectionHide.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconSectionHide$1),"./icons/IconSend.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconSend$1),"./icons/IconSettings.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconSettings$1),"./icons/IconSettingsBold.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconSettingsBold$1),"./icons/IconSize.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconSize$1),"./icons/IconSliderKnobs.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconSliderKnobs$1),"./icons/IconSortIdle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconSortIdle$1),"./icons/IconSparkle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconSparkle$1),"./icons/IconSpotlio.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconSpotlio$1),"./icons/IconStar.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconStar$1),"./icons/IconStatistics.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconStatistics$1),"./icons/IconStopChat.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconStopChat$1),"./icons/IconStreamLineHub.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconStreamLineHub$1),"./icons/IconStreamLineHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconStreamLineHubNewLogo$1),"./icons/IconSun.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconSun$1),"./icons/IconSwap.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconSwap$1),"./icons/IconText.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconText$1),"./icons/IconTextThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconTextThumbnail$1),"./icons/IconThinDocument.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconThinDocument$1),"./icons/IconThinFile.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconThinFile$1),"./icons/IconThumbsDown.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconThumbsDown$1),"./icons/IconTick.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconTick$1),"./icons/IconUser.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconUser$1),"./icons/IconVerticalDots.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconVerticalDots$1),"./icons/IconVideoCamera.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconVideoCamera$1),"./icons/IconWarningOctal.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconWarningOctal$1),"./icons/IconX.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconX$1),"./icons/IconZip.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(o=>o.IconZip)});for(const o in i){const s=((h=o.split("/").pop())==null?void 0:h.replace(".vue",""))||"";s&&i[o]&&f.component(s,e.defineAsyncComponent({loader:async()=>{const c=await i[o]();return c.default||c},delay:0,timeout:0}))}}catch{typeof process<"u"&&process.env.NODE_ENV}}},Pe={install(f){f.directive("fr-sanitize",O)}},$e={install(f){f.directive("icon-style",H)}},we=e.defineComponent({__name:"AnimeSpaceman",props:{customClass:{},customStyle:{}},setup(f){return(h,i)=>(e.openBlock(),e.createElementBlock("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 800 600",class:e.normalizeClass(["spaceman-logo",h.customClass]),style:e.normalizeStyle(h.customStyle)},[...i[0]||(i[0]=[e.createStaticVNode(`<g><defs><clipPath id="GlassClip"><path d="M380.857,346.164c-1.247,4.651-4.668,8.421-9.196,10.06c-9.332,3.377-26.2,7.817-42.301,3.5
2
2
  s-28.485-16.599-34.877-24.192c-3.101-3.684-4.177-8.66-2.93-13.311l7.453-27.798c0.756-2.82,3.181-4.868,6.088-5.13
3
3
  c6.755-0.61,20.546-0.608,41.785,5.087s33.181,12.591,38.725,16.498c2.387,1.682,3.461,4.668,2.705,7.488L380.857,346.164z"></path></clipPath><clipPath id="cordClip"><rect width="800" height="600"></rect></clipPath></defs><g id="planet"><circle fill="none" stroke="#ffffff" stroke-width="3" stroke-miterlimit="10" cx="572.859" cy="108.803" r="90.788"></circle><circle id="craterBig" fill="none" stroke="#ffffff" stroke-width="3" stroke-miterlimit="10" cx="548.891" cy="62.319" r="13.074"></circle><circle id="craterSmall" fill="none" stroke="#ffffff" stroke-width="3" stroke-miterlimit="10" cx="591.743" cy="158.918" r="7.989"></circle><path id="ring" fill="none" stroke="#ffffff" stroke-width="3" stroke-linecap="round" stroke-miterlimit="10" d="
4
4
  M476.562,101.461c-30.404,2.164-49.691,4.221-49.691,8.007c0,6.853,63.166,12.408,141.085,12.408s141.085-5.555,141.085-12.408
@@ -31,7 +31,7 @@
31
31
  M380.857,346.164c-1.247,4.651-4.668,8.421-9.196,10.06c-9.332,3.377-26.2,7.817-42.301,3.5s-28.485-16.599-34.877-24.192
32
32
  c-3.101-3.684-4.177-8.66-2.93-13.311l7.453-27.798c0.756-2.82,3.181-4.868,6.088-5.13c6.755-0.61,20.546-0.608,41.785,5.087
33
33
  s33.181,12.591,38.725,16.498c2.387,1.682,3.461,4.668,2.705,7.488L380.857,346.164z"></path><g clip-path="url(#GlassClip)"><polygon id="glassShine" fill="none" stroke="#ffffff" stroke-width="3" stroke-miterlimit="10" points="
34
- 278.436,375.599 383.003,264.076 364.393,251.618 264.807,364.928 "></polygon></g></g></g></g>`,1)])],6))}}),Be={key:0,class:"fixed z-[9998] top-0 left-0 w-full h-full bg-modalBackgroundBlur flex justify-center items-center"},Ee={class:"flex justify-center items-center"},Se={class:"modal-header"},Ve={class:"modal-body"},Ne={class:"modal-footer"},Te=e.defineComponent({__name:"AdvancedModal",props:{isVisible:{type:Boolean},largeModel:{type:Boolean}},setup(h){return(_,s)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[_.isVisible?(e.openBlock(),e.createElementBlock("div",Be,[e.createElementVNode("div",Ee,[e.createElementVNode("div",{class:e.normalizeClass({"p-8 bg-background rounded-[2.5rem] overflow-hidden text-white 2xl:w-[56.25rem] xl:w-[56.25rem] lg:w-[56.25rem] md:w-[45.625rem] sm:w-[31.25rem] xs:w-auto":_.largeModel})},[e.createElementVNode("div",Se,[e.renderSlot(_.$slots,"header")]),e.createElementVNode("div",Ve,[e.renderSlot(_.$slots,"body")]),e.createElementVNode("div",Ne,[e.renderSlot(_.$slots,"footer")])],2)])])):e.createCommentVNode("",!0)]),_:3}))}}),qe={class:"freddy-assistant-field__content"},$e={class:"freddy-assistant-field__header"},De={class:"freddy-assistant-field__name"},xe={class:"freddy-assistant-field__date"},Ae={class:"freddy-assistant-field__footer"},Fe={class:"freddy-assistant-field__id"},Me={key:0,class:"freddy-assistant-field__privacy-icon"},Le=e.defineComponent({__name:"AssistantField",props:{name:{default:"Name of the assistant"},date:{default:"mar 2024"},assistantId:{default:"Ass_id.asdasddas"},isDefault:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1}},emits:["assistantFieldClick"],setup(h,{emit:_}){const s=_,r=l=>{s("assistantFieldClick",l)};return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-assistant-field",{"freddy-assistant-field--selected":l.isSelected}]),onClick:r},[e.createElementVNode("div",qe,[e.createElementVNode("div",$e,[e.createElementVNode("div",De,e.toDisplayString(l.name),1),e.createElementVNode("div",xe,e.toDisplayString(l.date),1)]),e.createElementVNode("div",Ae,[e.createElementVNode("div",Fe,e.toDisplayString(l.assistantId),1),l.isDefault?(e.openBlock(),e.createElementBlock("div",Me,[e.createVNode(e.unref(n.IconLock),{class:"freddy-assistant-field__lock-icon"})])):e.createCommentVNode("",!0)])])],2))}}),Y=n._export_sfc(Le,[["__scopeId","data-v-482ea9be"]]),ze={class:"freddy-assistant-list"},Re={class:"freddy-assistant-list__container"},Oe=e.defineComponent({__name:"AssistantList",props:{assistants:{default:()=>[]},selectedAssistantId:{default:null}},emits:["assistantClick"],setup(h,{emit:_}){const s=h,r=_,l=e.ref(s.selectedAssistantId),a=e.computed(()=>{const u=s.selectedAssistantId??l.value;return s.assistants.map(d=>({...d,isSelected:d.assistantId===u}))}),c=(u,d)=>{l.value=u.assistantId,r("assistantClick",u,d)};return(u,d)=>(e.openBlock(),e.createElementBlock("div",ze,[e.createElementVNode("div",Re,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(t,f)=>(e.openBlock(),e.createBlock(e.unref(Y),{key:t.id||f,name:t.name,date:t.date,assistantId:t.assistantId,isDefault:t.isDefault,isSelected:t.isSelected,onAssistantFieldClick:y=>c(t,y)},null,8,["name","date","assistantId","isDefault","isSelected","onAssistantFieldClick"]))),128))])]))}}),He=n._export_sfc(Oe,[["__scopeId","data-v-37cf8653"]]),U=(h,_,s)=>{const r=h[_];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((l,a)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(a.bind(null,new Error("Unknown variable dynamic import: "+_+(_.split("/").length!==s?". Note that variables only represent file names one level deep.":""))))})},Ue={class:"freddy-assistants-header"},Ke={key:0,class:"freddy-assistants-header__avatar"},je=["src"],Ge={key:1,class:"freddy-assistants-header__icon-with-edit"},We={key:2,class:"freddy-assistants-header__side-icon"},Ze={class:"freddy-assistants-header__content"},Je={class:"freddy-assistants-header__content-inner"},Qe={class:"freddy-assistants-header__text-content"},Ye={class:"freddy-assistants-header__id-badge"},Xe={class:"freddy-assistants-header__actions"},eo=e.defineComponent({__name:"AssistantsHeader",props:{assistantImage:{default:void 0},assistantIcon:{default:"IconRobotScreen"},assistantId:{default:"assistant ID"}},emits:["edit","playground"],setup(h,{emit:_}){const s=h,r=_,l=d=>{r("edit",d)},a=d=>{r("playground",d)},c=d=>d?e.defineAsyncComponent(()=>U(Object.assign({"../../icons/IconAddFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_0),"../../icons/IconAddPeople.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_1),"../../icons/IconAitronos.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_2),"../../icons/IconApple.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_3),"../../icons/IconApplePay.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_4),"../../icons/IconArrowDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_5),"../../icons/IconArrowLeft.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_6),"../../icons/IconArrowUp.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_7),"../../icons/IconBadgeCheck.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_8),"../../icons/IconBroom.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_9),"../../icons/IconBuildings.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_10),"../../icons/IconCalendarWithTickInside.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_11),"../../icons/IconCallNotAllowed.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_12),"../../icons/IconCardPay.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_13),"../../icons/IconCaution.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_14),"../../icons/IconChangeLog.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_15),"../../icons/IconCheckCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_16),"../../icons/IconCheckInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_17),"../../icons/IconCheckRounded.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_18),"../../icons/IconChevronDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_19),"../../icons/IconChevronLeft.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_20),"../../icons/IconChevronRight.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_21),"../../icons/IconChevronUp.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_22),"../../icons/IconCircledCheck.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_23),"../../icons/IconClock.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_24),"../../icons/IconClosedEnvelope.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_25),"../../icons/IconCloudUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_26),"../../icons/IconConnectorConfluence.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_27),"../../icons/IconConnectorFigma.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_28),"../../icons/IconConnectorFreshDesk.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_29),"../../icons/IconConnectorGitHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_30),"../../icons/IconConnectorJira.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_31),"../../icons/IconConnectorLinear.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_32),"../../icons/IconConnectorNotion.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_33),"../../icons/IconConnectorSlack.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_34),"../../icons/IconConnectorZapier.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_35),"../../icons/IconCopy.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_36),"../../icons/IconCross.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_37),"../../icons/IconCrossCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_38),"../../icons/IconCrossInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_39),"../../icons/IconCurrentTick.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_40),"../../icons/IconDataUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_41),"../../icons/IconDelete.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_42),"../../icons/IconDeleteFillRed.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_43),"../../icons/IconDialingPhone.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_44),"../../icons/IconDisabledAlert.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_45),"../../icons/IconDocumentation.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_46),"../../icons/IconDownload.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_47),"../../icons/IconDribbble.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_48),"../../icons/IconDropdownArrow.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_49),"../../icons/IconEdit.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_50),"../../icons/IconEditLinePath.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_51),"../../icons/IconEllipse.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_52),"../../icons/IconExcelThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_53),"../../icons/IconEye.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_54),"../../icons/IconFacebook.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_55),"../../icons/IconFigma.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_56),"../../icons/IconFile.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_57),"../../icons/IconFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_58),"../../icons/IconFileUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_59),"../../icons/IconFilter.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_60),"../../icons/IconFolder.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_61),"../../icons/IconFreddyHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_62),"../../icons/IconFreddyHubLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_63),"../../icons/IconFreddyHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_64),"../../icons/IconFreddyHubTitle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_65),"../../icons/IconFreddySmall.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_66),"../../icons/IconGlobExpand.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_67),"../../icons/IconGlobe.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_68),"../../icons/IconGoogle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_69),"../../icons/IconHollowCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_70),"../../icons/IconHome.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_71),"../../icons/IconInfoRounded.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_72),"../../icons/IconInvalidInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_73),"../../icons/IconInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_74),"../../icons/IconInvoiceSwitch.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_75),"../../icons/IconLapTableBottom.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_76),"../../icons/IconLense.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_77),"../../icons/IconLightCross.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_78),"../../icons/IconLink04.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_79),"../../icons/IconLoadingError.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_80),"../../icons/IconLoadingOrg.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_81),"../../icons/IconLocationWithCircleIn.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_82),"../../icons/IconLock.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_83),"../../icons/IconMarketPlace.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_84),"../../icons/IconMaximize.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_85),"../../icons/IconMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_86),"../../icons/IconMutedMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_87),"../../icons/IconNewNotification.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_88),"../../icons/IconNewTab.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_89),"../../icons/IconNotification.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_90),"../../icons/IconOpenBook.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_91),"../../icons/IconPaperAirPlane.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_92),"../../icons/IconPauseCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_93),"../../icons/IconPdfThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_94),"../../icons/IconPenEdit.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_95),"../../icons/IconPencil.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_96),"../../icons/IconPeopleHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_97),"../../icons/IconPersonCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_98),"../../icons/IconPits.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_99),"../../icons/IconPlay.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_100),"../../icons/IconPlus.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_101),"../../icons/IconPolygonDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_102),"../../icons/IconPresentation.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_103),"../../icons/IconProgressBase.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_104),"../../icons/IconProgressComplete.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_105),"../../icons/IconProgressGoing.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_106),"../../icons/IconPurpose.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_107),"../../icons/IconPurseCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_108),"../../icons/IconQuestion.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_109),"../../icons/IconRadio.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_110),"../../icons/IconRadioFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_111),"../../icons/IconRefresh.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_112),"../../icons/IconRevertedTriangle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_113),"../../icons/IconRobotScreen.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_114),"../../icons/IconRoundTick.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_115),"../../icons/IconSearch.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_116),"../../icons/IconSearchOptimised.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_117),"../../icons/IconSectionHide.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_118),"../../icons/IconSend.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_119),"../../icons/IconSettings.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_120),"../../icons/IconSettingsBold.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_121),"../../icons/IconSize.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_122),"../../icons/IconSliderKnobs.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_123),"../../icons/IconSortIdle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_124),"../../icons/IconSparkle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_125),"../../icons/IconSpotlio.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_126),"../../icons/IconStar.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_127),"../../icons/IconStatistics.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_128),"../../icons/IconStopChat.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_129),"../../icons/IconStreamLineHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_130),"../../icons/IconStreamLineHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_131),"../../icons/IconSun.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_132),"../../icons/IconSwap.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_133),"../../icons/IconText.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_134),"../../icons/IconTextThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_135),"../../icons/IconThinDocument.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_136),"../../icons/IconThinFile.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_137),"../../icons/IconThumbsDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_138),"../../icons/IconTick.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_139),"../../icons/IconUser.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_140),"../../icons/IconVerticalDots.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_141),"../../icons/IconVideoCamera.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_142),"../../icons/IconWarningOctal.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_143),"../../icons/IconX.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_144),"../../icons/IconZip.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_145)}),`../../icons/${d}.vue`,4).catch(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(t=>t.__vite_glob_0_114))):n.IconRobotScreen,u=e.computed(()=>c(s.assistantIcon));return(d,t)=>(e.openBlock(),e.createElementBlock("div",Ue,[e.createElementVNode("div",{class:e.normalizeClass(["freddy-assistants-header__avatar-section",{"freddy-assistants-header__avatar-section--with-image":d.assistantImage,"freddy-assistants-header__avatar-section--no-image":!d.assistantImage}])},[d.assistantImage?(e.openBlock(),e.createElementBlock("div",Ke,[e.createElementVNode("img",{src:d.assistantImage,alt:"Assistant Avatar",class:"freddy-assistants-header__avatar-image"},null,8,je),e.createElementVNode("button",{class:"freddy-assistants-header__edit-overlay",onClick:l},[e.createVNode(e.unref(n.IconEdit),{class:"freddy-assistants-header__edit-icon"})])])):(e.openBlock(),e.createElementBlock("div",Ge,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.value),{class:"freddy-assistants-header__icon-component"})),e.createElementVNode("button",{class:"freddy-assistants-header__edit-overlay-icon",onClick:l},[e.createVNode(e.unref(n.IconEdit),{class:"freddy-assistants-header__edit-icon"})])])),d.assistantImage&&d.assistantIcon?(e.openBlock(),e.createElementBlock("div",We,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.value),{class:"freddy-assistants-header__side-icon-component"}))])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",Ze,[e.createElementVNode("div",Je,[e.createElementVNode("div",Qe,[e.createElementVNode("div",Ye,e.toDisplayString(d.assistantId||"assistant ID"),1)])])]),e.createElementVNode("div",Xe,[e.createElementVNode("button",{class:"freddy-assistants-header__playground-button",onClick:a},[e.createVNode(e.unref(n.IconNewTab),{class:"freddy-assistants-header__playground-icon"}),t[0]||(t[0]=e.createElementVNode("span",{class:"freddy-assistants-header__playground-label"},"Playground",-1))])])]))}}),oo=["src","alt"],to={key:0,class:"freddy-avatar-choosing__border"},no={key:1,class:"freddy-avatar-choosing__check-icon"},X=e.defineComponent({__name:"AvatarChoosing",props:{imageUrl:{},isSelected:{type:Boolean,default:!1},altText:{default:"Avatar"},backgroundColor:{default:"#cfcbdc"}},emits:["click"],setup(h,{emit:_}){const s=_,r=l=>{s("click",l)};return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-avatar-choosing",{"freddy-avatar-choosing--selected":l.isSelected}]),onClick:r},[e.createElementVNode("div",{class:"freddy-avatar-choosing__background",style:e.normalizeStyle({backgroundColor:l.backgroundColor})},null,4),e.createElementVNode("img",{src:l.imageUrl,alt:l.altText,class:"freddy-avatar-choosing__image"},null,8,oo),l.isSelected?(e.openBlock(),e.createElementBlock("div",to)):e.createCommentVNode("",!0),l.isSelected?(e.openBlock(),e.createElementBlock("div",no,[e.createVNode(n.IconTick,{class:"freddy-avatar-choosing__check-icon-svg"})])):e.createCommentVNode("",!0)],2))}}),io={class:"freddy-avatar-list"},lo={key:0,class:"freddy-avatar-list__title"},so={class:"freddy-avatar-list__grid"},ro={key:1,class:"freddy-avatar-list__selected-info"},ao=e.defineComponent({__name:"AvatarList",props:{avatars:{},title:{default:""},showSelectedInfo:{type:Boolean,default:!0},allowDeselect:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1}},emits:["selectionChange","avatarClick"],setup(h,{expose:_,emit:s}){const r=h,l=s,a=e.ref(null),c=e.computed(()=>r.avatars.find(d=>d.id===a.value)||null),u=d=>{a.value===d&&r.allowDeselect?a.value=null:a.value=d,l("selectionChange",a.value),l("avatarClick",d,a.value===d)};return _({selectedAvatarId:a,selectedAvatar:c,selectAvatar:d=>{a.value=d,l("selectionChange",d)},clearSelection:()=>{a.value=null,l("selectionChange",null)}}),(d,t)=>{var f;return e.openBlock(),e.createElementBlock("div",io,[d.title?(e.openBlock(),e.createElementBlock("h3",lo,e.toDisplayString(d.title),1)):e.createCommentVNode("",!0),e.createElementVNode("div",so,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.avatars,y=>(e.openBlock(),e.createBlock(e.unref(X),{key:y.id,imageUrl:y.url,isSelected:a.value===y.id,altText:y.name,onClick:E=>u(y.id)},null,8,["imageUrl","isSelected","altText","onClick"]))),128))]),d.showSelectedInfo?(e.openBlock(),e.createElementBlock("div",ro,[e.createElementVNode("p",null,"Selected: "+e.toDisplayString(((f=c.value)==null?void 0:f.name)||"None"),1)])):e.createCommentVNode("",!0)])}}}),co={class:"freddy-choose-assistant-avatar"},uo={class:"freddy-choose-assistant-avatar__header"},_o={class:"freddy-choose-assistant-avatar__title-section"},po={class:"freddy-choose-assistant-avatar__title-row"},vo={class:"freddy-choose-assistant-avatar__title"},mo=["aria-label"],ho={class:"freddy-choose-assistant-avatar__description"},fo={class:"freddy-choose-assistant-avatar__content"},go={class:"freddy-choose-assistant-avatar__section"},yo={class:"freddy-choose-assistant-avatar__icon-container"},bo={class:"freddy-choose-assistant-avatar__icon-search"},Io=["aria-label"],ko={class:"freddy-choose-assistant-avatar__icon-grid"},Co=["onClick","title"],Po={class:"freddy-choose-assistant-avatar__icon-wrapper"},wo={key:1,class:"freddy-choose-assistant-avatar__icon-placeholder"},Bo={class:"freddy-choose-assistant-avatar__section"},Eo={class:"freddy-choose-assistant-avatar__voice-list"},So={class:"freddy-choose-assistant-avatar__actions"},Vo=["disabled"],No=e.defineComponent({__name:"ChooseAssistantAvatar",props:{title:{default:"Choose your assistant"},description:{default:"Choose your assistant's appearance and select a preferred voice."},icons:{default:()=>[]},faces:{},voices:{default:()=>[{id:1,name:"Alloy"},{id:2,name:"Echo"},{id:3,name:"Fable"},{id:4,name:"Onyx"},{id:5,name:"Nova"},{id:6,name:"Shimmer"},{id:7,name:"Aurora"},{id:8,name:"Phoenix"}]},searchPlaceholder:{default:"Search icon"},cancelButtonText:{default:"Cancel"},saveButtonText:{default:"Save"},closeButtonAriaLabel:{default:"Close dialog"},searchButtonAriaLabel:{default:"Search icons"},uploadButtonAriaLabel:{default:"Upload custom icon"},allowMultipleSelection:{type:Boolean,default:!1}},emits:["close","cancel","save","iconSelect","faceSelect","voiceSelect","searchInput","searchClick","uploadClick"],setup(h,{expose:_,emit:s}){const r=h,l=()=>{const o=[];let v=1;for(const[C,I]of Object.entries(n.Icons))if(typeof I=="object"&&I&&"default"in I){const i=I.default;o.push({id:v++,name:C.replace("Icon",""),iconName:C,component:i})}return o},a=e.computed(()=>r.icons.length>0?r.icons:l()),c=s,u=e.ref(null),d=e.ref(null),t=e.ref(null),f=e.ref(""),y=e.computed(()=>f.value?a.value.filter(v=>{var C;return(C=v.name)==null?void 0:C.toLowerCase().includes(f.value.toLowerCase())}):a.value),E=e.computed(()=>u.value!==null||d.value!==null||t.value!==null),S=()=>{c("close")},m=()=>{c("cancel")},P=()=>{E.value&&c("save",{selectedIconId:u.value,selectedFaceId:d.value,selectedVoiceId:t.value})},b=o=>{u.value=o.id,c("iconSelect",o)},k=o=>{t.value=o.id,c("voiceSelect",o)},g=o=>{f.value=o||"",c("searchInput",o||"")},w=()=>{c("uploadClick")},p=o=>n.Icons[o]||n.IconRobotScreen;return _({selectedIconId:u,selectedFaceId:d,selectedVoiceId:t,resetSelections:()=>{u.value=null,d.value=null,t.value=null}}),(o,v)=>(e.openBlock(),e.createElementBlock("div",co,[e.createElementVNode("div",uo,[e.createElementVNode("div",_o,[e.createElementVNode("div",po,[e.createElementVNode("h1",vo,e.toDisplayString(o.title),1),e.createElementVNode("button",{class:"freddy-choose-assistant-avatar__close-button",onClick:S,"aria-label":o.closeButtonAriaLabel},[e.createVNode(e.unref(n.IconCross),{class:"freddy-choose-assistant-avatar__close-icon"})],8,mo)])]),e.createElementVNode("p",ho,e.toDisplayString(o.description),1)]),e.createElementVNode("div",fo,[e.createElementVNode("div",go,[v[1]||(v[1]=e.createElementVNode("h3",{class:"freddy-choose-assistant-avatar__section-title"}," Choose the icon ",-1)),e.createElementVNode("div",yo,[e.createElementVNode("div",bo,[e.createElementVNode("button",{class:"freddy-choose-assistant-avatar__search-button",onClick:w,"aria-label":o.uploadButtonAriaLabel},[e.createVNode(e.unref(n.IconDataUpload),{class:"freddy-choose-assistant-avatar__upload-icon"})],8,Io),e.createVNode(e.unref(F),{searchInput:f.value,"onUpdate:searchInput":[v[0]||(v[0]=C=>f.value=C),g],placeholder:o.searchPlaceholder,class:"freddy-choose-assistant-avatar__search-input-wrapper"},null,8,["searchInput","placeholder"])]),e.createElementVNode("div",ko,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(C,I)=>{var i;return e.openBlock(),e.createElementBlock("div",{key:C.id||I,class:e.normalizeClass(["freddy-choose-assistant-avatar__icon-item",{"freddy-choose-assistant-avatar__icon-item--selected":u.value===C.id}]),onClick:V=>b(C),title:C.name},[e.createElementVNode("div",Po,[C.component||C.iconName?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C.component||(C.iconName?p(C.iconName):null)),{key:0,class:"freddy-choose-assistant-avatar__icon-svg"})):(e.openBlock(),e.createElementBlock("div",wo,e.toDisplayString(((i=C.name)==null?void 0:i.charAt(0))||"?"),1))])],10,Co)}),128))])])]),v[3]||(v[3]=e.createElementVNode("div",{class:"freddy-choose-assistant-avatar__section"},[e.createElementVNode("h3",{class:"freddy-choose-assistant-avatar__section-title"}," Choose the face "),e.createElementVNode("div",{class:"freddy-choose-assistant-avatar__face-grid"})],-1)),e.createElementVNode("div",Bo,[v[2]||(v[2]=e.createElementVNode("h3",{class:"freddy-choose-assistant-avatar__section-title"}," Choose the voice ",-1)),e.createElementVNode("div",Eo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.voices,(C,I)=>(e.openBlock(),e.createBlock(e.unref(K),{key:C.id||I,voiceName:C.name,isSelected:t.value===C.id,onClick:i=>k(C)},null,8,["voiceName","isSelected","onClick"]))),128))])]),e.createElementVNode("div",So,[e.createElementVNode("button",{class:"freddy-choose-assistant-avatar__cancel-button",onClick:m},e.toDisplayString(o.cancelButtonText),1),e.createElementVNode("button",{class:"freddy-choose-assistant-avatar__save-button",onClick:P,disabled:!E.value},e.toDisplayString(o.saveButtonText),9,Vo)])])]))}}),To=["onClick","aria-selected","onKeydown"],qo={class:"freddy-plugin-menu-button-label"},$o={key:0,class:"freddy-plugin-menu-button-badge"},ee=e.defineComponent({__name:"BaseTabButton",props:{tabList:{},currentTab:{default:0},activeStateType:{default:"bottom-dash"},orientation:{default:"horizontal"},fullWidth:{type:Boolean,default:!1}},emits:["tabSwitch"],setup(h,{emit:_}){const s=h,r=_,l=e.computed(()=>s.activeStateType||"bottom-dash"),a=e.computed(()=>s.orientation||"horizontal"),c=e.computed(()=>{const t=a.value,f=l.value;return t==="vertical"&&f==="bottom-dash"?"left-dash":{"bottom-dash":"bottom-dash","bg-primary-active":"background-21404F8F","primary-active":"background-031525","bg-primary-active-bordered":"background-border"}[f]||f}),u=e.ref(s.currentTab);e.watch(()=>s.currentTab,t=>{u.value=t});const d=t=>{u.value!==t.id&&(u.value=t.id,r("tabSwitch",t.id))};return(t,f)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-plugin-nav-bar",`freddy-plugin-nav-bar--${a.value}`,`freddy-plugin-nav-bar--${c.value}`,{"freddy-plugin-nav-bar--full-width":s.fullWidth}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.tabList,(y,E)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["freddy-plugin-menu-button",`freddy-plugin-menu-button--${c.value}`,{"freddy-plugin-menu-button--active":u.value===y.id},{"freddy-plugin-menu-button--full-width":s.fullWidth}]),key:E,onClick:S=>d(y),"aria-selected":u.value===y.id,role:"tab",tabindex:"0",onKeydown:[e.withKeys(S=>d(y),["enter"]),e.withKeys(e.withModifiers(S=>d(y),["prevent"]),["space"])]},[e.createElementVNode("span",qo,e.toDisplayString(y.title),1),y.badge!==void 0?(e.openBlock(),e.createElementBlock("span",$o,e.toDisplayString(y.badge),1)):e.createCommentVNode("",!0),c.value==="bottom-dash"&&u.value===y.id?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass({"freddy-plugin-active-tab-bottom":u.value===y.id})},null,2)):e.createCommentVNode("",!0)],42,To))),128))],2))}}),Do={class:"rules-management"},xo={class:"rules-header"},Ao={class:"header-actions"},Fo={class:"search-wrapper"},Mo=["onKeydown"],Lo={class:"tabs-container",role:"tablist","aria-label":"Rules filter tabs"},zo=["id","aria-labelledby"],Ro={class:"rules-table",role:"table","aria-label":"Rules list"},Oo={class:"col-dependencies",scope:"col"},Ho={class:"info-icon",title:"Number of dependent rules","aria-label":"Information about dependencies",role:"img"},Uo={class:"rule-info"},Ko={class:"rule-title"},jo={class:"rule-description"},Go=["aria-label"],Wo={class:"dependencies-count"},Zo=["aria-label"],Jo={class:"creator-info"},Qo={class:"creator-wrapper"},Yo=["src","alt"],Xo={class:"creator-details"},et={class:"creator-name"},ot={class:"creator-username"},tt={class:"action-cell"},nt=["aria-label"],it={class:"action-icons"},lt=["onClick","onKeydown","aria-label"],st=["onClick","onKeydown","aria-label"],rt={class:"pagination-container",role:"navigation","aria-label":"Pagination"},at=["disabled","onKeydown","tabindex"],ct={class:"page-numbers",role:"list","aria-label":"Page numbers"},dt=["onClick","onKeydown","disabled","aria-label","aria-current","tabindex"],ut=["disabled","onKeydown","tabindex"],_t=e.defineComponent({__name:"RulesManagement",props:{rules:{default:()=>[]},tabs:{default:()=>[{id:"all",label:"All Rules",count:43},{id:"my",label:"My Rules",count:5},{id:"others",label:"Other's Rules",count:8},{id:"current",label:"Current Assistant",count:6}]},initialTab:{default:"all"},totalPages:{default:10}},emits:["search","createRule","tabChange","edit","view","pageChange"],setup(h,{emit:_}){const s=h,r=_,l=e.ref(""),a=e.ref(s.initialTab),c=e.ref(1),u=e.computed(()=>s.tabs.map((p,o)=>({id:o+1,title:p.label,badge:p.count,originalId:p.id}))),d=e.computed(()=>{const p=s.tabs.findIndex(o=>o.id===a.value);return p>=0?p+1:1}),t=p=>{const o=u.value.find(v=>v.id===p);o&&o.originalId&&m(o.originalId)},f=e.computed(()=>{if(!l.value)return s.rules;const p=l.value.toLowerCase();return s.rules.filter(o=>{var v;return o.title.toLowerCase().includes(p)||((v=o.description)==null?void 0:v.toLowerCase().includes(p))||o.creator.name.toLowerCase().includes(p)})}),y=e.computed(()=>{const p=[],o=s.totalPages,v=c.value;if(o<=7)for(let C=1;C<=o;C++)p.push(C);else{p.push(1),v>3&&p.push("...");for(let C=Math.max(2,v-1);C<=Math.min(o-1,v+1);C++)p.push(C);v<o-2&&p.push("..."),p.push(o)}return p}),E=()=>{r("search",l.value)},S=()=>{r("createRule")},m=p=>{a.value=p,r("tabChange",p)},P=p=>{r("edit",p)},b=p=>{r("view",p)},k=p=>{c.value=p,r("pageChange",p)},g=()=>{c.value>1&&k(c.value-1)},w=()=>{c.value<s.totalPages&&k(c.value+1)};return(p,o)=>(e.openBlock(),e.createElementBlock("div",Do,[e.createElementVNode("div",xo,[o[3]||(o[3]=e.createElementVNode("div",{class:"header-content"},[e.createElementVNode("h1",{class:"title"},"Rules Management"),e.createElementVNode("p",{class:"subtitle"}," Manage and organize your organization's rules and guidelines ")],-1)),e.createElementVNode("div",Ao,[e.createElementVNode("div",Fo,[e.createVNode(e.unref(n.IconSearch),{class:"search-icon","aria-hidden":"true"}),e.withDirectives(e.createElementVNode("input",{type:"text",class:"search-input",placeholder:"Search","onUpdate:modelValue":o[0]||(o[0]=v=>l.value=v),onInput:E,"aria-label":"Search rules"},null,544),[[e.vModelText,l.value]]),o[1]||(o[1]=e.createElementVNode("kbd",{class:"search-kbd","aria-label":"Keyboard shortcut"},"⌘K",-1))]),e.createElementVNode("button",{class:"create-rule-btn",onClick:S,onKeydown:[e.withKeys(S,["enter"]),e.withKeys(e.withModifiers(S,["prevent"]),["space"])],"aria-label":"Create new rule",tabindex:"0"},[e.createVNode(e.unref(n.IconPlus),{class:"plus-icon","aria-hidden":"true"}),o[2]||(o[2]=e.createTextVNode(" Create Rule ",-1))],40,Mo)])]),e.createElementVNode("div",Lo,[e.createVNode(ee,{tabList:u.value,currentTab:d.value,activeStateType:"bottom-dash",orientation:"horizontal",onTabSwitch:t},null,8,["tabList","currentTab"])]),e.createElementVNode("div",{class:"table-container",role:"tabpanel",id:`tabpanel-${a.value}`,"aria-labelledby":`tab-${a.value}`},[e.createElementVNode("table",Ro,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[o[5]||(o[5]=e.createElementVNode("th",{class:"col-rule",scope:"col"},"Rule",-1)),o[6]||(o[6]=e.createElementVNode("th",{class:"col-status",scope:"col"},"Status",-1)),e.createElementVNode("th",Oo,[o[4]||(o[4]=e.createTextVNode(" Dependencies ",-1)),e.createElementVNode("span",Ho,[e.createVNode(e.unref(n.IconInfoRounded),{"aria-hidden":"true"})])]),o[7]||(o[7]=e.createElementVNode("th",{class:"col-created-by",scope:"col"},"Created By",-1)),o[8]||(o[8]=e.createElementVNode("th",{class:"col-status-action",scope:"col"},"Actions",-1))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,v=>(e.openBlock(),e.createElementBlock("tr",{key:v.id,class:"rule-row",role:"row"},[e.createElementVNode("td",Uo,[e.createElementVNode("div",Ko,e.toDisplayString(v.title),1),e.createElementVNode("div",jo,e.toDisplayString(v.description),1)]),e.createElementVNode("td",null,[e.createElementVNode("span",{class:e.normalizeClass(["status-badge",v.status.toLowerCase()]),"aria-label":`Status: ${v.status}`},e.toDisplayString(v.status),11,Go)]),e.createElementVNode("td",Wo,[e.createElementVNode("span",{"aria-label":`${v.dependencies} dependencies`},e.toDisplayString(v.dependencies),9,Zo)]),e.createElementVNode("td",Jo,[e.createElementVNode("div",Qo,[e.createElementVNode("img",{src:v.creator.avatar,alt:`${v.creator.name} avatar`,class:"creator-avatar"},null,8,Yo),e.createElementVNode("div",Xo,[e.createElementVNode("div",et,e.toDisplayString(v.creator.name),1),e.createElementVNode("div",ot,e.toDisplayString(v.creator.username),1)])])]),e.createElementVNode("td",tt,[e.createElementVNode("span",{class:e.normalizeClass(["status-badge",v.status.toLowerCase()]),"aria-label":`Status: ${v.status}`},e.toDisplayString(v.status),11,nt),e.createElementVNode("div",it,[e.createElementVNode("button",{class:"icon-btn",onClick:C=>P(v),onKeydown:[e.withKeys(C=>P(v),["enter"]),e.withKeys(e.withModifiers(C=>P(v),["prevent"]),["space"])],"aria-label":`Edit ${v.title}`,tabindex:"0"},[e.createVNode(e.unref(n.IconEdit),{"aria-hidden":"true"})],40,lt),e.createElementVNode("button",{class:"icon-btn",onClick:C=>b(v),onKeydown:[e.withKeys(C=>b(v),["enter"]),e.withKeys(e.withModifiers(C=>b(v),["prevent"]),["space"])],"aria-label":`View ${v.title}`,tabindex:"0"},[e.createVNode(e.unref(n.IconEye),{"aria-hidden":"true"})],40,st)])])]))),128))])])],8,zo),e.createElementVNode("nav",rt,[e.createElementVNode("button",{class:"pagination-btn",disabled:c.value===1,onClick:g,onKeydown:[e.withKeys(g,["enter"]),e.withKeys(e.withModifiers(g,["prevent"]),["space"])],"aria-label":"Go to previous page",tabindex:c.value===1?-1:0}," Previous ",40,at),e.createElementVNode("div",ct,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,v=>(e.openBlock(),e.createElementBlock("button",{key:v,class:e.normalizeClass(["page-number",{active:c.value===v,ellipsis:v==="..."}]),onClick:C=>v!=="..."&&k(v),onKeydown:[e.withKeys(C=>v!=="..."&&k(v),["enter"]),e.withKeys(e.withModifiers(C=>v!=="..."&&k(v),["prevent"]),["space"])],disabled:v==="...","aria-label":v==="..."?"More pages":`Go to page ${v}`,"aria-current":c.value===v?"page":void 0,tabindex:v==="..."?-1:0,role:"listitem"},e.toDisplayString(v),43,dt))),128))]),e.createElementVNode("button",{class:"pagination-btn",disabled:c.value===p.totalPages,onClick:w,onKeydown:[e.withKeys(w,["enter"]),e.withKeys(e.withModifiers(w,["prevent"]),["space"])],"aria-label":"Go to next page",tabindex:c.value===p.totalPages?-1:0}," Next ",40,ut)])]))}}),pt=n._export_sfc(_t,[["__scopeId","data-v-e6ad3a6e"]]),vt={class:"freddy-vector-frame__content"},mt={class:"freddy-vector-frame__icon-container"},ht={class:"freddy-vector-frame__title"},ft={key:0,class:"freddy-vector-frame__badge"},gt={class:"freddy-vector-frame__badge-content"},yt={class:"freddy-vector-frame__badge-text"},bt={key:1,class:"freddy-vector-frame__tick-container"},It={key:0,class:"freddy-vector-frame__underline"},kt=e.defineComponent({__name:"VectorFrame",props:{title:{default:"Main Vector Store"},badgeText:{default:"Popular"},isSelected:{type:Boolean,default:!1}},emits:["click"],setup(h,{emit:_}){const s=h,r=_,l=e.ref(s.isSelected),a=c=>{l.value=!l.value,r("click",c)};return(c,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-vector-frame",{"freddy-vector-frame--clicked":l.value}]),onClick:a},[e.createElementVNode("div",vt,[e.createElementVNode("div",mt,[e.createVNode(e.unref(n.IconFileSystem),{class:"freddy-vector-frame__icon"})]),e.createElementVNode("div",ht,e.toDisplayString(c.title),1),l.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ft,[e.createElementVNode("div",gt,[e.createVNode(e.unref(n.IconStar),{class:"freddy-vector-frame__badge-icon"}),e.createElementVNode("div",yt,e.toDisplayString(c.badgeText),1)])])),l.value?(e.openBlock(),e.createElementBlock("div",bt,[e.createVNode(e.unref(n.IconBadgeCheck),{class:"freddy-vector-frame__tick-icon"})])):e.createCommentVNode("",!0)]),l.value?(e.openBlock(),e.createElementBlock("div",It)):e.createCommentVNode("",!0)],2))}}),Ct=n._export_sfc(kt,[["__scopeId","data-v-e2bc0b9f"]]),Pt={class:"freddy-vector-section"},wt={class:"freddy-vector-section__content"},Bt={class:"freddy-vector-section__header"},Et={class:"freddy-vector-section__count"},St={class:"freddy-vector-section__main"},Vt={class:"freddy-vector-section__search-container"},Nt={class:"freddy-vector-section__search-header"},Tt={class:"freddy-vector-section__search-label"},qt={class:"freddy-vector-section__help-icon"},$t={class:"freddy-vector-section__search-input-container"},Dt={class:"freddy-vector-section__filter-results"},xt={class:"freddy-vector-section__filter"},At={class:"freddy-vector-section__filter-button"},Ft={class:"freddy-vector-section__results-count"},Mt={class:"freddy-vector-section__frames-container"},Lt={key:0,class:"freddy-vector-section__show-more"},zt={class:"freddy-vector-section__show-more-text"},Rt={class:"freddy-vector-section__add-section"},Ot={class:"freddy-vector-section__add-container"},Ht=e.defineComponent({__name:"VectorSection",props:{title:{default:"Knowledge"},dbCount:{default:0},searchPlaceholder:{default:"Search vector store"},frames:{default:()=>[{id:1,title:"Main Vector Store",badgeText:"Popular",isSelected:!0},{id:2,title:"Secondary Database",badgeText:"Popular",isSelected:!1},{id:3,title:"Custom Vector Store",badgeText:"Popular",isSelected:!0},{id:4,title:"Backup Store",badgeText:"Popular",isSelected:!1},{id:5,title:"Analytics Database",badgeText:"Popular",isSelected:!1},{id:6,title:"User Data Store",badgeText:"Popular",isSelected:!1},{id:7,title:"Logs Database",badgeText:"Popular",isSelected:!1},{id:8,title:"Cache Store",badgeText:"Popular",isSelected:!1},{id:9,title:"Metrics Database",badgeText:"Popular",isSelected:!1},{id:10,title:"Archive Store",badgeText:"Popular",isSelected:!1},{id:11,title:"Test Database",badgeText:"Popular",isSelected:!1},{id:12,title:"Production Store",badgeText:"Popular",isSelected:!1}]},maxDisplayed:{default:4}},emits:["frameClick","addVectorStore","showMore","searchInput"],setup(h,{emit:_}){const s=h,r=_,l=e.ref(""),a=e.ref(s.maxDisplayed),c=e.computed(()=>l.value.trim()?s.frames.filter(m=>m.title.toLowerCase().includes(l.value.toLowerCase())):s.frames),u=e.computed(()=>c.value.slice(0,a.value)),d=e.computed(()=>c.value.length),t=e.computed(()=>c.value.length>a.value),f=e.computed(()=>c.value.length-a.value),y=()=>{r("addVectorStore")},E=()=>{a.value=c.value.length,r("showMore")},S=m=>{l.value=m||"",a.value=s.maxDisplayed,r("searchInput",l.value)};return(m,P)=>(e.openBlock(),e.createElementBlock("div",Pt,[e.createElementVNode("div",wt,[e.createElementVNode("div",Bt,[P[1]||(P[1]=e.createElementVNode("div",{class:"freddy-vector-section__title"},"Knowledge",-1)),e.createElementVNode("div",Et,e.toDisplayString(m.dbCount)+" DBs added",1)]),e.createElementVNode("div",St,[e.createElementVNode("div",Vt,[e.createElementVNode("div",Nt,[e.createElementVNode("div",Tt,[P[2]||(P[2]=e.createTextVNode(" Vector Stores ",-1)),e.createElementVNode("div",qt,[e.createVNode(e.unref(n.IconQuestion),{class:"freddy-vector-section__help-icon-svg"})])]),e.createElementVNode("div",$t,[e.createVNode(e.unref(F),{searchInput:l.value,"onUpdate:searchInput":[P[0]||(P[0]=b=>l.value=b),S],placeholder:m.searchPlaceholder,class:"freddy-vector-section__search-input"},null,8,["searchInput","placeholder"])])])]),e.createElementVNode("div",Dt,[e.createElementVNode("div",xt,[e.createElementVNode("div",At,[e.createVNode(e.unref(n.IconFilter),{class:"freddy-vector-section__filter-icon"}),P[3]||(P[3]=e.createElementVNode("span",{class:"freddy-vector-section__filter-text"},"Filter by",-1)),e.createVNode(e.unref(n.IconChevronDown),{class:"freddy-vector-section__filter-arrow"})])]),e.createElementVNode("div",Ft,e.toDisplayString(d.value)+" databases found ",1)]),e.createElementVNode("div",Mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(b,k)=>(e.openBlock(),e.createElementBlock("div",{key:b.id||k,class:"freddy-vector-section__frame-item"}))),128))]),t.value?(e.openBlock(),e.createElementBlock("div",Lt,[e.createElementVNode("button",{class:"freddy-vector-section__show-more-button",onClick:E},[e.createElementVNode("span",zt,"Show "+e.toDisplayString(f.value)+" more",1),e.createVNode(e.unref(n.IconChevronDown),{class:"freddy-vector-section__show-more-icon"})])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Rt,[P[5]||(P[5]=e.createElementVNode("div",{class:"freddy-vector-section__add-title"},"Knowledge",-1)),e.createElementVNode("div",Ot,[e.createElementVNode("button",{class:"freddy-vector-section__add-button",onClick:y},[e.createVNode(e.unref(n.IconAddFileSystem),{class:"freddy-vector-section__add-icon"}),P[4]||(P[4]=e.createElementVNode("span",{class:"freddy-vector-section__add-text"},"Add vector store to assistant",-1))])])])])]))}}),Ut=n._export_sfc(Ht,[["__scopeId","data-v-8434fbf8"]]),Kt={class:"freddy-voice-list"},jt={key:0,class:"freddy-voice-list__title"},Gt={class:"freddy-voice-list__container"},Wt={key:1,class:"freddy-voice-list__selected-info"},Zt=e.defineComponent({__name:"VoiceList",props:{voices:{},title:{default:""},showSelectedInfo:{type:Boolean,default:!0},allowDeselect:{type:Boolean,default:!0}},emits:["selectionChange","voiceClick"],setup(h,{expose:_,emit:s}){const r=h,l=s,a=e.ref(null),c=e.computed(()=>r.voices.find(d=>d.id===a.value)||null),u=d=>{a.value===d&&r.allowDeselect?a.value=null:a.value=d,l("selectionChange",a.value),l("voiceClick",d,a.value===d)};return _({selectedVoiceId:a,selectedVoice:c,selectVoice:d=>{a.value=d,l("selectionChange",d)},clearSelection:()=>{a.value=null,l("selectionChange",null)}}),(d,t)=>{var f;return e.openBlock(),e.createElementBlock("div",Kt,[d.title?(e.openBlock(),e.createElementBlock("h3",jt,e.toDisplayString(d.title),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Gt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.voices,y=>(e.openBlock(),e.createBlock(e.unref(K),{key:y.id,voiceName:y.name,isSelected:a.value===y.id,onClick:E=>u(y.id)},null,8,["voiceName","isSelected","onClick"]))),128))]),d.showSelectedInfo?(e.openBlock(),e.createElementBlock("div",Wt,[e.createElementVNode("p",null,"Selected: "+e.toDisplayString(((f=c.value)==null?void 0:f.name)||"None"),1)])):e.createCommentVNode("",!0)])}}}),Jt={class:"freddy-voice-selection__container"},Qt={class:"freddy-voice-selection__icon-container"},Yt={class:"freddy-voice-selection__icon"},Xt={class:"freddy-voice-selection__play-background"},en={class:"freddy-voice-selection__name-container"},on={class:"freddy-voice-selection__name-wrapper"},tn={class:"freddy-voice-selection__name"},nn={key:0,class:"freddy-voice-selection__check-icon"},ln={key:1,class:"freddy-voice-selection__indicator"},K=e.defineComponent({__name:"VoiceSelection",props:{voiceName:{},isSelected:{type:Boolean,default:!1}},emits:["handleClick"],setup(h,{emit:_}){const s=_,r=l=>{s("handleClick",l)};return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-voice-selection",{"freddy-voice-selection--selected":l.isSelected}]),onClick:r},[e.createElementVNode("div",Jt,[e.createElementVNode("div",Qt,[e.createElementVNode("div",Yt,[e.createElementVNode("div",Xt,[e.createVNode(e.unref(n.IconRevertedTriangle),{class:"freddy-voice-selection__triangle-icon"})])])]),e.createElementVNode("div",en,[e.createElementVNode("div",on,[e.createElementVNode("div",tn,e.toDisplayString(l.voiceName),1)])]),l.isSelected?(e.openBlock(),e.createElementBlock("div",nn,[e.createVNode(e.unref(n.IconTick),{class:"freddy-voice-selection__check-icon-svg"})])):(e.openBlock(),e.createElementBlock("div",ln))])],2))}}),sn=["innerHTML"],rn={key:1},T=e.defineComponent({__name:"Tooltip",props:{text:{},placement:{},html:{type:Boolean},contentClass:{}},setup(h){n.useTheme();const _=e.ref(!1),s=e.ref(!1),r=e.ref(null);let l=null;function a(){l&&clearTimeout(l),l=setTimeout(()=>{if(r.value){const u=r.value.getBoundingClientRect();s.value=u.top<150}_.value=!0},200)}function c(){l&&clearTimeout(l),_.value=!1}return(u,d)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tooltipWrapper",ref:r,class:"tooltip-wrapper",onMouseenter:a,onMouseleave:c,onFocusin:a,onFocusout:c,tabindex:"0"},[e.renderSlot(u.$slots,"default"),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[_.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tooltip-content",[u.placement,s.value?"force-bottom":"",u.contentClass]])},[e.renderSlot(u.$slots,"content",{},()=>[u.html?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:u.text},null,8,sn)):(e.openBlock(),e.createElementBlock("span",rn,e.toDisplayString(u.text),1))])],2)):e.createCommentVNode("",!0)]),_:3})],544))}}),an=["disabled","aria-disabled","aria-label"],cn={key:0,class:"freddy-plugins-button-label"},dn={key:1,class:"freddy-plugins-button-label"},un=["disabled","aria-disabled","aria-label"],_n={key:0,class:"freddy-plugins-button-label"},pn={key:1,class:"freddy-plugins-button-label"},vn=e.defineComponent({__name:"BaseButton",props:{size:{default:"md"},hierarchy:{default:"primary"},state:{default:"default"},errorState:{type:Boolean,default:!1},iconOnly:{type:Boolean,default:!1},leftIcon:{default:void 0},rightIcon:{default:void 0},label:{default:"Button"},loadingText:{default:void 0},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},tooltip:{default:void 0},tooltipPlacement:{default:"top"}},emits:["click","leftIconClick","rightIconClick"],setup(h,{emit:_}){const s=h,r={IconSearch:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_116)),IconUser:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_140)),IconDelete:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_42)),IconSend:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_119)),IconPlus:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_101)),IconEdit:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_50)),IconCross:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_37)),IconTick:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_139)),IconArrowLeft:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_6)),IconArrowDown:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_5)),IconArrowUp:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_7)),IconChevronDown:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_19)),IconChevronUp:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_22)),IconChevronLeft:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_20)),IconChevronRight:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_21)),IconSettings:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_120)),IconHome:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_71)),IconDownload:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_47)),IconRefresh:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_112)),IconCopy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_36)),IconEye:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_54)),IconLock:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_83)),IconStar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_127)),IconFilter:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_60)),IconFile:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_57)),IconFolder:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_61)),IconText:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_134)),IconLink04:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(m=>m.__vite_glob_0_79))},l=e.computed(()=>s.leftIcon&&r[s.leftIcon]||null),a=e.computed(()=>s.rightIcon&&r[s.rightIcon]||null),c=_,u=e.ref(!1),d=e.computed(()=>["freddy-plugins-base-button",`freddy-plugins-base-button--${s.size}`,`freddy-plugins-base-button--${s.hierarchy}`,{"freddy-plugins-base-button--disabled":s.disabled,"freddy-plugins-base-button--loading":s.loading,"freddy-plugins-base-button--icon-only":s.iconOnly,"freddy-plugins-base-button--error":s.errorState,"freddy-plugins-base-button--hover":u.value&&!s.disabled&&!s.loading,"freddy-plugins-base-button--focused":s.state==="focused"}]),t=m=>{!s.disabled&&!s.loading&&c("click",m)},f=m=>{!s.disabled&&!s.loading&&c("leftIconClick",m)},y=m=>{!s.disabled&&!s.loading&&c("rightIconClick",m)},E=()=>{u.value=!0},S=()=>{u.value=!1};return(m,P)=>m.tooltip?(e.openBlock(),e.createBlock(T,{key:0,text:m.tooltip,placement:m.tooltipPlacement},{default:e.withCtx(()=>[e.createElementVNode("button",{class:e.normalizeClass(d.value),disabled:m.disabled||m.loading,"aria-disabled":m.disabled||m.loading,"aria-label":m.iconOnly?m.label:void 0,role:"button",onClick:t,onMouseenter:E,onMouseleave:S},[m.loading?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[P[0]||(P[0]=e.createElementVNode("span",{class:"freddy-plugins-button-spinner","aria-hidden":"true"},null,-1)),m.loadingText||m.label?(e.openBlock(),e.createElementBlock("span",cn,e.toDisplayString(m.loadingText||m.label),1)):e.createCommentVNode("",!0)],64)):m.iconOnly?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value),{key:1,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-center",`freddy-plugins-button-icon--${m.size}`]),"aria-hidden":"true"},null,8,["class"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[m.leftIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value),{key:0,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-left",`freddy-plugins-button-icon--${m.size}`]),"aria-hidden":"true",onClick:e.withModifiers(f,["stop"])},null,8,["class"])):e.createCommentVNode("",!0),m.label?(e.openBlock(),e.createElementBlock("span",dn,e.toDisplayString(m.label),1)):e.createCommentVNode("",!0),m.rightIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value),{key:2,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-right",`freddy-plugins-button-icon--${m.size}`]),"aria-hidden":"true",onClick:e.withModifiers(y,["stop"])},null,8,["class"])):e.createCommentVNode("",!0)],64))],42,an)]),_:1},8,["text","placement"])):(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(d.value),disabled:m.disabled||m.loading,"aria-disabled":m.disabled||m.loading,"aria-label":m.iconOnly?m.label:void 0,role:"button",onClick:t,onMouseenter:E,onMouseleave:S},[m.loading?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[P[1]||(P[1]=e.createElementVNode("span",{class:"freddy-plugins-button-spinner","aria-hidden":"true"},null,-1)),m.loadingText||m.label?(e.openBlock(),e.createElementBlock("span",_n,e.toDisplayString(m.loadingText||m.label),1)):e.createCommentVNode("",!0)],64)):m.iconOnly?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value),{key:1,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-center",`freddy-plugins-button-icon--${m.size}`]),"aria-hidden":"true"},null,8,["class"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[m.leftIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value),{key:0,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-left",`freddy-plugins-button-icon--${m.size}`]),"aria-hidden":"true",onClick:e.withModifiers(f,["stop"])},null,8,["class"])):e.createCommentVNode("",!0),m.label?(e.openBlock(),e.createElementBlock("span",pn,e.toDisplayString(m.label),1)):e.createCommentVNode("",!0),m.rightIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value),{key:2,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-right",`freddy-plugins-button-icon--${m.size}`]),"aria-hidden":"true",onClick:e.withModifiers(y,["stop"])},null,8,["class"])):e.createCommentVNode("",!0)],64))],42,un))}}),j=n._export_sfc(vn,[["__scopeId","data-v-ca53fa07"]]),mn=["disabled","aria-label","onClick"],hn={key:0,class:"freddy-plugins-social-button-label"},fn=e.defineComponent({__name:"SocialButtons",props:{providers:{},variant:{default:"filled"},size:{default:"md"},disabled:{type:Boolean,default:!1},iconOnly:{type:Boolean,default:!1},layout:{default:"horizontal"},class:{},style:{}},emits:["click"],setup(h,{emit:_}){const s=h,r=_,l={google:{icon:n.IconGoogle,label:"Sign in with Google",colors:{filled:{background:"#ffffff",color:"#1f2937",border:"#d1d5db"},outlined:{background:"#ffffff",color:"#1f2937",border:"#10b981"},ghost:{background:"transparent",color:"#9ca3af",border:"#d1d5db"}}},facebook:{icon:n.IconFacebook,label:"Sign in with Facebook",colors:{filled:{background:"#1877f2",color:"#ffffff"},outlined:{background:"#ffffff",color:"#1877f2",border:"#1877f2"},ghost:{background:"transparent",color:"#9ca3af",border:"#d1d5db"}}},apple:{icon:n.IconApple,label:"Sign in with Apple",colors:{filled:{background:"#000000",color:"#ffffff"},outlined:{background:"#ffffff",color:"#000000",border:"#000000"},ghost:{background:"transparent",color:"#9ca3af",border:"#d1d5db"}}},x:{icon:n.IconX,label:"Sign in with X",colors:{filled:{background:"#000000",color:"#ffffff"},outlined:{background:"#ffffff",color:"#000000",border:"#000000"},ghost:{background:"transparent",color:"#9ca3af",border:"#d1d5db"}}},figma:{icon:n.IconFigma,label:"Sign in with Figma",colors:{filled:{background:"#000000",color:"#ffffff"},outlined:{background:"#ffffff",color:"#000000",border:"#000000"},ghost:{background:"transparent",color:"#9ca3af",border:"#d1d5db"}}},dribbble:{icon:n.IconDribbble,label:"Sign in with Dribbble",colors:{filled:{background:"#ea4c89",color:"#ffffff"},outlined:{background:"#ffffff",color:"#ea4c89",border:"#ea4c89"},ghost:{background:"transparent",color:"#9ca3af",border:"#d1d5db"}}}},a=e.computed(()=>["freddy-plugins-social-buttons",`freddy-plugins-social-buttons--${s.layout}`,`freddy-plugins-social-buttons--${s.size}`,{"freddy-plugins-social-buttons--disabled":s.disabled},s.class]),c=f=>l[f].icon,u=f=>l[f].label,d=f=>["freddy-plugins-social-button",`freddy-plugins-social-button--${s.variant}`,`freddy-plugins-social-button--${s.size}`,`freddy-plugins-social-button--${f}`,{"freddy-plugins-social-button--disabled":s.disabled,"freddy-plugins-social-button--icon-only":s.iconOnly}],t=(f,y)=>{s.disabled||r("click",f,y)};return(f,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.value),style:e.normalizeStyle(f.style)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.providers,E=>(e.openBlock(),e.createElementBlock("button",{key:E,class:e.normalizeClass(d(E)),disabled:f.disabled,"aria-label":f.iconOnly?u(E):void 0,role:"button",onClick:S=>t(E,S)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c(E)),{class:"freddy-plugins-social-button-icon","aria-hidden":"true"})),f.iconOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",hn,e.toDisplayString(u(E)),1))],10,mn))),128))],6))}}),gn=n._export_sfc(fn,[["__scopeId","data-v-22e5ee7c"]]),yn=["innerHTML"],Q="nord",bn=e.defineComponent({__name:"CodeBlock",props:{code:{},language:{}},setup(h){const _=h,s=e.ref("");let r=null,l=null;const a=async()=>{try{if(typeof window<"u"&&window.shiki){l=window.shiki.createHighlighter;return}}catch{}},c=["js","ts","json","python","vue","html","css","scss","bash","yaml","markdown","c","cpp","java","go","php","ruby","rust","swift","kotlin"],u=async()=>{if(l||await a(),!l){s.value=`<pre><code>${_.code.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}</code></pre>`;return}try{r||(r=await l({themes:[Q],langs:c})),s.value=r.codeToHtml(_.code,{lang:_.language,theme:Q})}catch{s.value=`<pre><code>${_.code.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}</code></pre>`}};return e.watch(()=>[_.code,_.language],u,{immediate:!0}),e.onMounted(u),(d,t)=>(e.openBlock(),e.createElementBlock("pre",null,[e.createElementVNode("code",{innerHTML:s.value},null,8,yn)]))}}),In=["aria-checked","aria-disabled","aria-label"],kn=["checked","disabled"],Cn={key:0,class:"freddy-plugins-checkbox-dash"},Pn={key:1,class:"freddy-plugins-checkbox-icon",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wn=["stroke"],Bn=e.defineComponent({__name:"CustomCheckbox",props:{isChecked:{type:Boolean},isDashInput:{type:Boolean},blueCheckbox:{type:Boolean},disabled:{type:Boolean},ariaLabel:{}},emits:["update:isChecked"],setup(h,{emit:_}){n.useTheme();const s=h,r=_;function l(a){const c=a.target;s.disabled||r("update:isChecked",c.checked)}return(a,c)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["freddy-plugins-base-checkbox",{"freddy-plugins-checked":a.isChecked&&!a.blueCheckbox,"freddy-plugins-checked-blue":a.isChecked&&a.blueCheckbox,"freddy-plugins-not-checked":!a.isChecked,"freddy-plugins-is-disabled":a.disabled}]),"aria-checked":a.isChecked,"aria-disabled":a.disabled,"aria-label":a.ariaLabel,role:"checkbox"},[e.createElementVNode("input",{id:"checkbox-input",type:"checkbox",class:"freddy-plugins-checkbox-input",checked:a.isChecked,disabled:a.disabled,onChange:l},null,40,kn),a.isDashInput&&a.isChecked?(e.openBlock(),e.createElementBlock("span",Cn)):a.isChecked&&!a.isDashInput?(e.openBlock(),e.createElementBlock("svg",Pn,[e.createElementVNode("path",{d:"M10 3L4.5 8.5L2 6",stroke:a.blueCheckbox?"var(--text-50, var(--text-inverse))":"#000","stroke-width":"1.6666","stroke-linecap":"round","stroke-linejoin":"round"},null,8,wn)])):e.createCommentVNode("",!0)],10,In))}});class En{constructor(_){z(this,"apiKey",null);z(this,"baseUrl","https://api.openai.com/v1");this.apiKey=_||this.getApiKeyFromEnv()||"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"}getApiKeyFromEnv(){return process.env.OPENAI_API_KEY||null}setApiKey(_){this.apiKey=_}getSmartSystemPrompt(){return`You are an AI assistant that helps with text editing, code improvement, and content generation. You excel at working with JavaScript, HTML, CSS, JSON, and all programming languages. Analyze the user's request and respond with the appropriate action.
34
+ 278.436,375.599 383.003,264.076 364.393,251.618 264.807,364.928 "></polygon></g></g></g></g>`,1)])],6))}}),_e={key:0,class:"fixed z-[9998] top-0 left-0 w-full h-full bg-modalBackgroundBlur flex justify-center items-center"},Be={class:"flex justify-center items-center"},Se={class:"modal-header"},Ee={class:"modal-body"},qe={class:"modal-footer"},Ne=e.defineComponent({__name:"AdvancedModal",props:{isVisible:{type:Boolean},largeModel:{type:Boolean}},setup(f){return(h,i)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[h.isVisible?(e.openBlock(),e.createElementBlock("div",_e,[e.createElementVNode("div",Be,[e.createElementVNode("div",{class:e.normalizeClass({"p-8 bg-background rounded-[2.5rem] overflow-hidden text-white 2xl:w-[56.25rem] xl:w-[56.25rem] lg:w-[56.25rem] md:w-[45.625rem] sm:w-[31.25rem] xs:w-auto":h.largeModel})},[e.createElementVNode("div",Se,[e.renderSlot(h.$slots,"header")]),e.createElementVNode("div",Ee,[e.renderSlot(h.$slots,"body")]),e.createElementVNode("div",qe,[e.renderSlot(h.$slots,"footer")])],2)])])):e.createCommentVNode("",!0)]),_:3}))}}),Ve={class:"freddy-assistant-field__content"},Te={class:"freddy-assistant-field__header"},De={class:"freddy-assistant-field__name"},xe={class:"freddy-assistant-field__date"},Fe={class:"freddy-assistant-field__footer"},Ae={class:"freddy-assistant-field__id"},Le={key:0,class:"freddy-assistant-field__privacy-icon"},Me=e.defineComponent({__name:"AssistantField",props:{name:{default:"Name of the assistant"},date:{default:"mar 2024"},assistantId:{default:"Ass_id.asdasddas"},isDefault:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1}},emits:["assistantFieldClick"],setup(f,{emit:h}){const i=h,o=s=>{i("assistantFieldClick",s)};return(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-assistant-field",{"freddy-assistant-field--selected":s.isSelected}]),onClick:o},[e.createElementVNode("div",Ve,[e.createElementVNode("div",Te,[e.createElementVNode("div",De,e.toDisplayString(s.name),1),e.createElementVNode("div",xe,e.toDisplayString(s.date),1)]),e.createElementVNode("div",Fe,[e.createElementVNode("div",Ae,e.toDisplayString(s.assistantId),1),s.isDefault?(e.openBlock(),e.createElementBlock("div",Le,[e.createVNode(e.unref(l.IconLock),{class:"freddy-assistant-field__lock-icon"})])):e.createCommentVNode("",!0)])])],2))}}),Y=l._export_sfc(Me,[["__scopeId","data-v-482ea9be"]]),Re={class:"freddy-assistant-list"},ze={class:"freddy-assistant-list__container"},He=e.defineComponent({__name:"AssistantList",props:{assistants:{default:()=>[]},selectedAssistantId:{default:null}},emits:["assistantClick"],setup(f,{emit:h}){const i=f,o=h,s=e.ref(i.selectedAssistantId),c=e.computed(()=>{const u=i.selectedAssistantId??s.value;return i.assistants.map(d=>({...d,isSelected:d.assistantId===u}))}),a=(u,d)=>{s.value=u.assistantId,o("assistantClick",u,d)};return(u,d)=>(e.openBlock(),e.createElementBlock("div",Re,[e.createElementVNode("div",ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(t,I)=>(e.openBlock(),e.createBlock(e.unref(Y),{key:t.id||I,name:t.name,date:t.date,assistantId:t.assistantId,isDefault:t.isDefault,isSelected:t.isSelected,onAssistantFieldClick:y=>a(t,y)},null,8,["name","date","assistantId","isDefault","isSelected","onAssistantFieldClick"]))),128))])]))}}),Oe=l._export_sfc(He,[["__scopeId","data-v-37cf8653"]]),U=(f,h,i)=>{const o=f[h];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((s,c)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(c.bind(null,new Error("Unknown variable dynamic import: "+h+(h.split("/").length!==i?". Note that variables only represent file names one level deep.":""))))})},Ue={class:"freddy-assistants-header"},Ke={key:0,class:"freddy-assistants-header__avatar"},je=["src"],Ge={key:1,class:"freddy-assistants-header__icon-with-edit"},We={key:2,class:"freddy-assistants-header__side-icon"},Ze={class:"freddy-assistants-header__content"},Je={class:"freddy-assistants-header__content-inner"},Qe={class:"freddy-assistants-header__text-content"},Ye={class:"freddy-assistants-header__id-badge"},Xe={class:"freddy-assistants-header__actions"},eo=e.defineComponent({__name:"AssistantsHeader",props:{assistantImage:{default:void 0},assistantIcon:{default:"IconRobotScreen"},assistantId:{default:"assistant ID"}},emits:["edit","playground"],setup(f,{emit:h}){const i=f,o=h,s=d=>{o("edit",d)},c=d=>{o("playground",d)},a=d=>d?e.defineAsyncComponent(()=>U(Object.assign({"../../icons/IconAddChatPop.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconAddChatPop$1),"../../icons/IconAddFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconAddFileSystem$1),"../../icons/IconAddPeople.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconAddPeople$1),"../../icons/IconAitronos.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconAitronos$1),"../../icons/IconApple.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconApple$1),"../../icons/IconApplePay.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconApplePay$1),"../../icons/IconAppsGrid.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconAppsGrid$1),"../../icons/IconArrowDown.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconArrowDown$1),"../../icons/IconArrowLeft.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconArrowLeft$1),"../../icons/IconArrowUp.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconArrowUp$1),"../../icons/IconBadgeCheck.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconBadgeCheck$1),"../../icons/IconBroom.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconBroom$1),"../../icons/IconBuildings.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconBuildings$1),"../../icons/IconCalendarWithTickInside.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconCalendarWithTickInside$1),"../../icons/IconCallNotAllowed.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconCallNotAllowed$1),"../../icons/IconCardPay.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconCardPay$1),"../../icons/IconCaution.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconCaution$1),"../../icons/IconChangeLog.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconChangeLog$1),"../../icons/IconCheckCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconCheckCircleFill$1),"../../icons/IconCheckInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconCheckInCircle$1),"../../icons/IconCheckRounded.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconCheckRounded$1),"../../icons/IconChevronDown.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconChevronDown$1),"../../icons/IconChevronLeft.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconChevronLeft$1),"../../icons/IconChevronRight.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconChevronRight$1),"../../icons/IconChevronUp.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconChevronUp$1),"../../icons/IconCircledCheck.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconCircledCheck$1),"../../icons/IconClock.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconClock$1),"../../icons/IconClosedEnvelope.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconClosedEnvelope$1),"../../icons/IconCloudUpload.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconCloudUpload$1),"../../icons/IconConnectorConfluence.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconConnectorConfluence$1),"../../icons/IconConnectorFigma.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconConnectorFigma$1),"../../icons/IconConnectorFreshDesk.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconConnectorFreshDesk$1),"../../icons/IconConnectorGitHub.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconConnectorGitHub$1),"../../icons/IconConnectorJira.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconConnectorJira$1),"../../icons/IconConnectorLinear.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconConnectorLinear$1),"../../icons/IconConnectorNotion.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconConnectorNotion$1),"../../icons/IconConnectorSlack.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconConnectorSlack$1),"../../icons/IconConnectorZapier.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconConnectorZapier$1),"../../icons/IconCopy.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconCopy$1),"../../icons/IconCross.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconCross$1),"../../icons/IconCrossCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconCrossCircleFill$1),"../../icons/IconCrossInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconCrossInCircle$1),"../../icons/IconCurrentTick.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconCurrentTick$1),"../../icons/IconDataUpload.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconDataUpload$1),"../../icons/IconDelete.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconDelete$1),"../../icons/IconDeleteFillRed.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconDeleteFillRed$1),"../../icons/IconDialingPhone.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconDialingPhone$1),"../../icons/IconDisabledAlert.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconDisabledAlert$1),"../../icons/IconDocumentation.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconDocumentation$1),"../../icons/IconDownload.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconDownload$1),"../../icons/IconDribbble.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconDribbble$1),"../../icons/IconDropdownArrow.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconDropdownArrow$1),"../../icons/IconEdit.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconEdit$1),"../../icons/IconEditLinePath.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconEditLinePath$1),"../../icons/IconEllipse.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconEllipse),"../../icons/IconExcelThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconExcelThumbnail$1),"../../icons/IconEye.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconEye$1),"../../icons/IconFacebook.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconFacebook$1),"../../icons/IconFigma.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconFigma$1),"../../icons/IconFile.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconFile$1),"../../icons/IconFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconFileSystem$1),"../../icons/IconFileUpload.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconFileUpload$1),"../../icons/IconFilter.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconFilter$1),"../../icons/IconFolder.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconFolder$1),"../../icons/IconFreddyHub.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconFreddyHub$1),"../../icons/IconFreddyHubLogo.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconFreddyHubLogo$1),"../../icons/IconFreddyHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconFreddyHubNewLogo$1),"../../icons/IconFreddyHubTitle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconFreddyHubTitle),"../../icons/IconFreddySmall.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconFreddySmall$1),"../../icons/IconGlobExpand.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconGlobExpand$1),"../../icons/IconGlobe.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconGlobe$1),"../../icons/IconGoogle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconGoogle$1),"../../icons/IconHollowCircle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconHollowCircle$1),"../../icons/IconHome.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconHome$1),"../../icons/IconInfoRounded.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconInfoRounded$1),"../../icons/IconInvalidInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconInvalidInvoice$1),"../../icons/IconInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconInvoice$1),"../../icons/IconInvoiceSwitch.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconInvoiceSwitch$1),"../../icons/IconLapTableBottom.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconLapTableBottom$1),"../../icons/IconLense.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconLense$1),"../../icons/IconLightCross.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconLightCross$1),"../../icons/IconLink04.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconLink04$1),"../../icons/IconLoadingError.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconLoadingError$1),"../../icons/IconLoadingOrg.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconLoadingOrg$1),"../../icons/IconLocationWithCircleIn.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconLocationWithCircleIn$1),"../../icons/IconLock.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconLock$1),"../../icons/IconMarketPlace.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconMarketPlace$1),"../../icons/IconMaximize.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconMaximize$1),"../../icons/IconMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconMicrophone$1),"../../icons/IconMutedMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconMutedMicrophone$1),"../../icons/IconNewNotification.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconNewNotification$1),"../../icons/IconNewTab.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconNewTab$1),"../../icons/IconNotification.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconNotification$1),"../../icons/IconOpenBook.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconOpenBook$1),"../../icons/IconPaperAirPlane.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconPaperAirPlane$1),"../../icons/IconPauseCircle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconPauseCircle$1),"../../icons/IconPdfThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconPdfThumbnail$1),"../../icons/IconPenEdit.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconPenEdit$1),"../../icons/IconPencil.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconPencil$1),"../../icons/IconPeopleHub.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconPeopleHub$1),"../../icons/IconPersonCircle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconPersonCircle$1),"../../icons/IconPits.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconPits$1),"../../icons/IconPlay.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconPlay$1),"../../icons/IconPlus.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconPlus$1),"../../icons/IconPolygonDown.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconPolygonDown$1),"../../icons/IconPresentation.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconPresentation$1),"../../icons/IconProgressBase.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconProgressBase$1),"../../icons/IconProgressComplete.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconProgressComplete$1),"../../icons/IconProgressGoing.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconProgressGoing$1),"../../icons/IconPurpose.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconPurpose$1),"../../icons/IconPurseCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconPurseCircleFill$1),"../../icons/IconQuestion.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconQuestion$1),"../../icons/IconRadio.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconRadio$1),"../../icons/IconRadioFill.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconRadioFill$1),"../../icons/IconRefresh.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconRefresh$1),"../../icons/IconRevertedTriangle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconRevertedTriangle$1),"../../icons/IconRobotScreen.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconRobotScreen$1),"../../icons/IconRoundTick.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconRoundTick$1),"../../icons/IconSearch.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconSearch$1),"../../icons/IconSearchOptimised.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconSearchOptimised$1),"../../icons/IconSectionHide.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconSectionHide$1),"../../icons/IconSend.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconSend$1),"../../icons/IconSettings.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconSettings$1),"../../icons/IconSettingsBold.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconSettingsBold$1),"../../icons/IconSize.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconSize$1),"../../icons/IconSliderKnobs.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconSliderKnobs$1),"../../icons/IconSortIdle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconSortIdle$1),"../../icons/IconSparkle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconSparkle$1),"../../icons/IconSpotlio.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconSpotlio$1),"../../icons/IconStar.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconStar$1),"../../icons/IconStatistics.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconStatistics$1),"../../icons/IconStopChat.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconStopChat$1),"../../icons/IconStreamLineHub.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconStreamLineHub$1),"../../icons/IconStreamLineHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconStreamLineHubNewLogo$1),"../../icons/IconSun.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconSun$1),"../../icons/IconSwap.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconSwap$1),"../../icons/IconText.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconText$1),"../../icons/IconTextThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconTextThumbnail$1),"../../icons/IconThinDocument.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconThinDocument$1),"../../icons/IconThinFile.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconThinFile$1),"../../icons/IconThumbsDown.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconThumbsDown$1),"../../icons/IconTick.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconTick$1),"../../icons/IconUser.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconUser$1),"../../icons/IconVerticalDots.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconVerticalDots$1),"../../icons/IconVideoCamera.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconVideoCamera$1),"../../icons/IconWarningOctal.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconWarningOctal$1),"../../icons/IconX.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconX$1),"../../icons/IconZip.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconZip)}),`../../icons/${d}.vue`,4).catch(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(t=>t.IconRobotScreen$1))):l.IconRobotScreen,u=e.computed(()=>a(i.assistantIcon));return(d,t)=>(e.openBlock(),e.createElementBlock("div",Ue,[e.createElementVNode("div",{class:e.normalizeClass(["freddy-assistants-header__avatar-section",{"freddy-assistants-header__avatar-section--with-image":d.assistantImage,"freddy-assistants-header__avatar-section--no-image":!d.assistantImage}])},[d.assistantImage?(e.openBlock(),e.createElementBlock("div",Ke,[e.createElementVNode("img",{src:d.assistantImage,alt:"Assistant Avatar",class:"freddy-assistants-header__avatar-image"},null,8,je),e.createElementVNode("button",{class:"freddy-assistants-header__edit-overlay",onClick:s},[e.createVNode(e.unref(l.IconEdit),{class:"freddy-assistants-header__edit-icon"})])])):(e.openBlock(),e.createElementBlock("div",Ge,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.value),{class:"freddy-assistants-header__icon-component"})),e.createElementVNode("button",{class:"freddy-assistants-header__edit-overlay-icon",onClick:s},[e.createVNode(e.unref(l.IconEdit),{class:"freddy-assistants-header__edit-icon"})])])),d.assistantImage&&d.assistantIcon?(e.openBlock(),e.createElementBlock("div",We,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.value),{class:"freddy-assistants-header__side-icon-component"}))])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",Ze,[e.createElementVNode("div",Je,[e.createElementVNode("div",Qe,[e.createElementVNode("div",Ye,e.toDisplayString(d.assistantId||"assistant ID"),1)])])]),e.createElementVNode("div",Xe,[e.createElementVNode("button",{class:"freddy-assistants-header__playground-button",onClick:c},[e.createVNode(e.unref(l.IconNewTab),{class:"freddy-assistants-header__playground-icon"}),t[0]||(t[0]=e.createElementVNode("span",{class:"freddy-assistants-header__playground-label"},"Playground",-1))])])]))}}),oo=["src","alt"],no={key:0,class:"freddy-avatar-choosing__border"},to={key:1,class:"freddy-avatar-choosing__check-icon"},X=e.defineComponent({__name:"AvatarChoosing",props:{imageUrl:{},isSelected:{type:Boolean,default:!1},altText:{default:"Avatar"},backgroundColor:{default:"#cfcbdc"}},emits:["click"],setup(f,{emit:h}){const i=h,o=s=>{i("click",s)};return(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-avatar-choosing",{"freddy-avatar-choosing--selected":s.isSelected}]),onClick:o},[e.createElementVNode("div",{class:"freddy-avatar-choosing__background",style:e.normalizeStyle({backgroundColor:s.backgroundColor})},null,4),e.createElementVNode("img",{src:s.imageUrl,alt:s.altText,class:"freddy-avatar-choosing__image"},null,8,oo),s.isSelected?(e.openBlock(),e.createElementBlock("div",no)):e.createCommentVNode("",!0),s.isSelected?(e.openBlock(),e.createElementBlock("div",to,[e.createVNode(l.IconTick,{class:"freddy-avatar-choosing__check-icon-svg"})])):e.createCommentVNode("",!0)],2))}}),ro={class:"freddy-avatar-list"},so={key:0,class:"freddy-avatar-list__title"},io={class:"freddy-avatar-list__grid"},lo={key:1,class:"freddy-avatar-list__selected-info"},co=e.defineComponent({__name:"AvatarList",props:{avatars:{},title:{default:""},showSelectedInfo:{type:Boolean,default:!0},allowDeselect:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1}},emits:["selectionChange","avatarClick"],setup(f,{expose:h,emit:i}){const o=f,s=i,c=e.ref(null),a=e.computed(()=>o.avatars.find(d=>d.id===c.value)||null),u=d=>{c.value===d&&o.allowDeselect?c.value=null:c.value=d,s("selectionChange",c.value),s("avatarClick",d,c.value===d)};return h({selectedAvatarId:c,selectedAvatar:a,selectAvatar:d=>{c.value=d,s("selectionChange",d)},clearSelection:()=>{c.value=null,s("selectionChange",null)}}),(d,t)=>{var I;return e.openBlock(),e.createElementBlock("div",ro,[d.title?(e.openBlock(),e.createElementBlock("h3",so,e.toDisplayString(d.title),1)):e.createCommentVNode("",!0),e.createElementVNode("div",io,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.avatars,y=>(e.openBlock(),e.createBlock(e.unref(X),{key:y.id,imageUrl:y.url,isSelected:c.value===y.id,altText:y.name,onClick:B=>u(y.id)},null,8,["imageUrl","isSelected","altText","onClick"]))),128))]),d.showSelectedInfo?(e.openBlock(),e.createElementBlock("div",lo,[e.createElementVNode("p",null,"Selected: "+e.toDisplayString(((I=a.value)==null?void 0:I.name)||"None"),1)])):e.createCommentVNode("",!0)])}}}),ao={class:"freddy-choose-assistant-avatar"},uo={class:"freddy-choose-assistant-avatar__header"},ho={class:"freddy-choose-assistant-avatar__title-section"},po={class:"freddy-choose-assistant-avatar__title-row"},mo={class:"freddy-choose-assistant-avatar__title"},vo=["aria-label"],fo={class:"freddy-choose-assistant-avatar__description"},Io={class:"freddy-choose-assistant-avatar__content"},go={class:"freddy-choose-assistant-avatar__section"},yo={class:"freddy-choose-assistant-avatar__icon-container"},ko={class:"freddy-choose-assistant-avatar__icon-search"},Co=["aria-label"],bo={class:"freddy-choose-assistant-avatar__icon-grid"},Po=["onClick","title"],$o={class:"freddy-choose-assistant-avatar__icon-wrapper"},wo={key:1,class:"freddy-choose-assistant-avatar__icon-placeholder"},_o={class:"freddy-choose-assistant-avatar__section"},Bo={class:"freddy-choose-assistant-avatar__voice-list"},So={class:"freddy-choose-assistant-avatar__actions"},Eo=["disabled"],qo=e.defineComponent({__name:"ChooseAssistantAvatar",props:{title:{default:"Choose your assistant"},description:{default:"Choose your assistant's appearance and select a preferred voice."},icons:{default:()=>[]},faces:{},voices:{default:()=>[{id:1,name:"Alloy"},{id:2,name:"Echo"},{id:3,name:"Fable"},{id:4,name:"Onyx"},{id:5,name:"Nova"},{id:6,name:"Shimmer"},{id:7,name:"Aurora"},{id:8,name:"Phoenix"}]},searchPlaceholder:{default:"Search icon"},cancelButtonText:{default:"Cancel"},saveButtonText:{default:"Save"},closeButtonAriaLabel:{default:"Close dialog"},searchButtonAriaLabel:{default:"Search icons"},uploadButtonAriaLabel:{default:"Upload custom icon"},allowMultipleSelection:{type:Boolean,default:!1}},emits:["close","cancel","save","iconSelect","faceSelect","voiceSelect","searchInput","searchClick","uploadClick"],setup(f,{expose:h,emit:i}){const o=f,s=()=>{const n=[];let m=1;for(const[P,C]of Object.entries(l.Icons))if(typeof C=="object"&&C&&"default"in C){const r=C.default;n.push({id:m++,name:P.replace("Icon",""),iconName:P,component:r})}return n},c=e.computed(()=>o.icons.length>0?o.icons:s()),a=i,u=e.ref(null),d=e.ref(null),t=e.ref(null),I=e.ref(""),y=e.computed(()=>I.value?c.value.filter(m=>{var P;return(P=m.name)==null?void 0:P.toLowerCase().includes(I.value.toLowerCase())}):c.value),B=e.computed(()=>u.value!==null||d.value!==null||t.value!==null),S=()=>{a("close")},v=()=>{a("cancel")},$=()=>{B.value&&a("save",{selectedIconId:u.value,selectedFaceId:d.value,selectedVoiceId:t.value})},k=n=>{u.value=n.id,a("iconSelect",n)},b=n=>{t.value=n.id,a("voiceSelect",n)},g=n=>{I.value=n||"",a("searchInput",n||"")},w=()=>{a("uploadClick")},p=n=>l.Icons[n]||l.IconRobotScreen;return h({selectedIconId:u,selectedFaceId:d,selectedVoiceId:t,resetSelections:()=>{u.value=null,d.value=null,t.value=null}}),(n,m)=>(e.openBlock(),e.createElementBlock("div",ao,[e.createElementVNode("div",uo,[e.createElementVNode("div",ho,[e.createElementVNode("div",po,[e.createElementVNode("h1",mo,e.toDisplayString(n.title),1),e.createElementVNode("button",{class:"freddy-choose-assistant-avatar__close-button",onClick:S,"aria-label":n.closeButtonAriaLabel},[e.createVNode(e.unref(l.IconCross),{class:"freddy-choose-assistant-avatar__close-icon"})],8,vo)])]),e.createElementVNode("p",fo,e.toDisplayString(n.description),1)]),e.createElementVNode("div",Io,[e.createElementVNode("div",go,[m[1]||(m[1]=e.createElementVNode("h3",{class:"freddy-choose-assistant-avatar__section-title"}," Choose the icon ",-1)),e.createElementVNode("div",yo,[e.createElementVNode("div",ko,[e.createElementVNode("button",{class:"freddy-choose-assistant-avatar__search-button",onClick:w,"aria-label":n.uploadButtonAriaLabel},[e.createVNode(e.unref(l.IconDataUpload),{class:"freddy-choose-assistant-avatar__upload-icon"})],8,Co),e.createVNode(e.unref(A),{searchInput:I.value,"onUpdate:searchInput":[m[0]||(m[0]=P=>I.value=P),g],placeholder:n.searchPlaceholder,class:"freddy-choose-assistant-avatar__search-input-wrapper"},null,8,["searchInput","placeholder"])]),e.createElementVNode("div",bo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(P,C)=>{var r;return e.openBlock(),e.createElementBlock("div",{key:P.id||C,class:e.normalizeClass(["freddy-choose-assistant-avatar__icon-item",{"freddy-choose-assistant-avatar__icon-item--selected":u.value===P.id}]),onClick:E=>k(P),title:P.name},[e.createElementVNode("div",$o,[P.component||P.iconName?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(P.component||(P.iconName?p(P.iconName):null)),{key:0,class:"freddy-choose-assistant-avatar__icon-svg"})):(e.openBlock(),e.createElementBlock("div",wo,e.toDisplayString(((r=P.name)==null?void 0:r.charAt(0))||"?"),1))])],10,Po)}),128))])])]),m[3]||(m[3]=e.createElementVNode("div",{class:"freddy-choose-assistant-avatar__section"},[e.createElementVNode("h3",{class:"freddy-choose-assistant-avatar__section-title"}," Choose the face "),e.createElementVNode("div",{class:"freddy-choose-assistant-avatar__face-grid"})],-1)),e.createElementVNode("div",_o,[m[2]||(m[2]=e.createElementVNode("h3",{class:"freddy-choose-assistant-avatar__section-title"}," Choose the voice ",-1)),e.createElementVNode("div",Bo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.voices,(P,C)=>(e.openBlock(),e.createBlock(e.unref(K),{key:P.id||C,voiceName:P.name,isSelected:t.value===P.id,onClick:r=>b(P)},null,8,["voiceName","isSelected","onClick"]))),128))])]),e.createElementVNode("div",So,[e.createElementVNode("button",{class:"freddy-choose-assistant-avatar__cancel-button",onClick:v},e.toDisplayString(n.cancelButtonText),1),e.createElementVNode("button",{class:"freddy-choose-assistant-avatar__save-button",onClick:$,disabled:!B.value},e.toDisplayString(n.saveButtonText),9,Eo)])])]))}}),No=["onClick","aria-selected","onKeydown"],Vo={class:"freddy-plugin-menu-button-label"},To={key:0,class:"freddy-plugin-menu-button-badge"},ee=e.defineComponent({__name:"BaseTabButton",props:{tabList:{},currentTab:{default:0},activeStateType:{default:"bottom-dash"},orientation:{default:"horizontal"},fullWidth:{type:Boolean,default:!1}},emits:["tabSwitch"],setup(f,{emit:h}){const i=f,o=h,s=e.computed(()=>i.activeStateType||"bottom-dash"),c=e.computed(()=>i.orientation||"horizontal"),a=e.computed(()=>{const t=c.value,I=s.value;return t==="vertical"&&I==="bottom-dash"?"left-dash":{"bottom-dash":"bottom-dash","bg-primary-active":"background-21404F8F","primary-active":"background-031525","bg-primary-active-bordered":"background-border"}[I]||I}),u=e.ref(i.currentTab);e.watch(()=>i.currentTab,t=>{u.value=t});const d=t=>{u.value!==t.id&&(u.value=t.id,o("tabSwitch",t.id))};return(t,I)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-plugin-nav-bar",`freddy-plugin-nav-bar--${c.value}`,`freddy-plugin-nav-bar--${a.value}`,{"freddy-plugin-nav-bar--full-width":i.fullWidth}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.tabList,(y,B)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["freddy-plugin-menu-button",`freddy-plugin-menu-button--${a.value}`,{"freddy-plugin-menu-button--active":u.value===y.id},{"freddy-plugin-menu-button--full-width":i.fullWidth}]),key:B,onClick:S=>d(y),"aria-selected":u.value===y.id,role:"tab",tabindex:"0",onKeydown:[e.withKeys(S=>d(y),["enter"]),e.withKeys(e.withModifiers(S=>d(y),["prevent"]),["space"])]},[e.createElementVNode("span",Vo,e.toDisplayString(y.title),1),y.badge!==void 0?(e.openBlock(),e.createElementBlock("span",To,e.toDisplayString(y.badge),1)):e.createCommentVNode("",!0),a.value==="bottom-dash"&&u.value===y.id?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass({"freddy-plugin-active-tab-bottom":u.value===y.id})},null,2)):e.createCommentVNode("",!0)],42,No))),128))],2))}}),Do={class:"rules-management"},xo={class:"rules-header"},Fo={class:"header-actions"},Ao={class:"search-wrapper"},Lo=["onKeydown"],Mo={class:"tabs-container",role:"tablist","aria-label":"Rules filter tabs"},Ro=["id","aria-labelledby"],zo={class:"rules-table",role:"table","aria-label":"Rules list"},Ho={class:"col-dependencies",scope:"col"},Oo={class:"info-icon",title:"Number of dependent rules","aria-label":"Information about dependencies",role:"img"},Uo={class:"rule-info"},Ko={class:"rule-title"},jo={class:"rule-description"},Go=["aria-label"],Wo={class:"dependencies-count"},Zo=["aria-label"],Jo={class:"creator-info"},Qo={class:"creator-wrapper"},Yo=["src","alt"],Xo={class:"creator-details"},en={class:"creator-name"},on={class:"creator-username"},nn={class:"action-cell"},tn=["aria-label"],rn={class:"action-icons"},sn=["onClick","onKeydown","aria-label"],ln=["onClick","onKeydown","aria-label"],cn={class:"pagination-container",role:"navigation","aria-label":"Pagination"},an=["disabled","onKeydown","tabindex"],dn={class:"page-numbers",role:"list","aria-label":"Page numbers"},un=["onClick","onKeydown","disabled","aria-label","aria-current","tabindex"],hn=["disabled","onKeydown","tabindex"],pn=e.defineComponent({__name:"RulesManagement",props:{rules:{default:()=>[]},tabs:{default:()=>[{id:"all",label:"All Rules",count:43},{id:"my",label:"My Rules",count:5},{id:"others",label:"Other's Rules",count:8},{id:"current",label:"Current Assistant",count:6}]},initialTab:{default:"all"},totalPages:{default:10}},emits:["search","createRule","tabChange","edit","view","pageChange"],setup(f,{emit:h}){const i=f,o=h,s=e.ref(""),c=e.ref(i.initialTab),a=e.ref(1),u=e.computed(()=>i.tabs.map((p,n)=>({id:n+1,title:p.label,badge:p.count,originalId:p.id}))),d=e.computed(()=>{const p=i.tabs.findIndex(n=>n.id===c.value);return p>=0?p+1:1}),t=p=>{const n=u.value.find(m=>m.id===p);n&&n.originalId&&v(n.originalId)},I=e.computed(()=>{if(!s.value)return i.rules;const p=s.value.toLowerCase();return i.rules.filter(n=>{var m;return n.title.toLowerCase().includes(p)||((m=n.description)==null?void 0:m.toLowerCase().includes(p))||n.creator.name.toLowerCase().includes(p)})}),y=e.computed(()=>{const p=[],n=i.totalPages,m=a.value;if(n<=7)for(let P=1;P<=n;P++)p.push(P);else{p.push(1),m>3&&p.push("...");for(let P=Math.max(2,m-1);P<=Math.min(n-1,m+1);P++)p.push(P);m<n-2&&p.push("..."),p.push(n)}return p}),B=()=>{o("search",s.value)},S=()=>{o("createRule")},v=p=>{c.value=p,o("tabChange",p)},$=p=>{o("edit",p)},k=p=>{o("view",p)},b=p=>{a.value=p,o("pageChange",p)},g=()=>{a.value>1&&b(a.value-1)},w=()=>{a.value<i.totalPages&&b(a.value+1)};return(p,n)=>(e.openBlock(),e.createElementBlock("div",Do,[e.createElementVNode("div",xo,[n[3]||(n[3]=e.createElementVNode("div",{class:"header-content"},[e.createElementVNode("h1",{class:"title"},"Rules Management"),e.createElementVNode("p",{class:"subtitle"}," Manage and organize your organization's rules and guidelines ")],-1)),e.createElementVNode("div",Fo,[e.createElementVNode("div",Ao,[e.createVNode(e.unref(l.IconSearch),{class:"search-icon","aria-hidden":"true"}),e.withDirectives(e.createElementVNode("input",{type:"text",class:"search-input",placeholder:"Search","onUpdate:modelValue":n[0]||(n[0]=m=>s.value=m),onInput:B,"aria-label":"Search rules"},null,544),[[e.vModelText,s.value]]),n[1]||(n[1]=e.createElementVNode("kbd",{class:"search-kbd","aria-label":"Keyboard shortcut"},"⌘K",-1))]),e.createElementVNode("button",{class:"create-rule-btn",onClick:S,onKeydown:[e.withKeys(S,["enter"]),e.withKeys(e.withModifiers(S,["prevent"]),["space"])],"aria-label":"Create new rule",tabindex:"0"},[e.createVNode(e.unref(l.IconPlus),{class:"plus-icon","aria-hidden":"true"}),n[2]||(n[2]=e.createTextVNode(" Create Rule ",-1))],40,Lo)])]),e.createElementVNode("div",Mo,[e.createVNode(ee,{tabList:u.value,currentTab:d.value,activeStateType:"bottom-dash",orientation:"horizontal",onTabSwitch:t},null,8,["tabList","currentTab"])]),e.createElementVNode("div",{class:"table-container",role:"tabpanel",id:`tabpanel-${c.value}`,"aria-labelledby":`tab-${c.value}`},[e.createElementVNode("table",zo,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[n[5]||(n[5]=e.createElementVNode("th",{class:"col-rule",scope:"col"},"Rule",-1)),n[6]||(n[6]=e.createElementVNode("th",{class:"col-status",scope:"col"},"Status",-1)),e.createElementVNode("th",Ho,[n[4]||(n[4]=e.createTextVNode(" Dependencies ",-1)),e.createElementVNode("span",Oo,[e.createVNode(e.unref(l.IconInfoRounded),{"aria-hidden":"true"})])]),n[7]||(n[7]=e.createElementVNode("th",{class:"col-created-by",scope:"col"},"Created By",-1)),n[8]||(n[8]=e.createElementVNode("th",{class:"col-status-action",scope:"col"},"Actions",-1))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,m=>(e.openBlock(),e.createElementBlock("tr",{key:m.id,class:"rule-row",role:"row"},[e.createElementVNode("td",Uo,[e.createElementVNode("div",Ko,e.toDisplayString(m.title),1),e.createElementVNode("div",jo,e.toDisplayString(m.description),1)]),e.createElementVNode("td",null,[e.createElementVNode("span",{class:e.normalizeClass(["status-badge",m.status.toLowerCase()]),"aria-label":`Status: ${m.status}`},e.toDisplayString(m.status),11,Go)]),e.createElementVNode("td",Wo,[e.createElementVNode("span",{"aria-label":`${m.dependencies} dependencies`},e.toDisplayString(m.dependencies),9,Zo)]),e.createElementVNode("td",Jo,[e.createElementVNode("div",Qo,[e.createElementVNode("img",{src:m.creator.avatar,alt:`${m.creator.name} avatar`,class:"creator-avatar"},null,8,Yo),e.createElementVNode("div",Xo,[e.createElementVNode("div",en,e.toDisplayString(m.creator.name),1),e.createElementVNode("div",on,e.toDisplayString(m.creator.username),1)])])]),e.createElementVNode("td",nn,[e.createElementVNode("span",{class:e.normalizeClass(["status-badge",m.status.toLowerCase()]),"aria-label":`Status: ${m.status}`},e.toDisplayString(m.status),11,tn),e.createElementVNode("div",rn,[e.createElementVNode("button",{class:"icon-btn",onClick:P=>$(m),onKeydown:[e.withKeys(P=>$(m),["enter"]),e.withKeys(e.withModifiers(P=>$(m),["prevent"]),["space"])],"aria-label":`Edit ${m.title}`,tabindex:"0"},[e.createVNode(e.unref(l.IconEdit),{"aria-hidden":"true"})],40,sn),e.createElementVNode("button",{class:"icon-btn",onClick:P=>k(m),onKeydown:[e.withKeys(P=>k(m),["enter"]),e.withKeys(e.withModifiers(P=>k(m),["prevent"]),["space"])],"aria-label":`View ${m.title}`,tabindex:"0"},[e.createVNode(e.unref(l.IconEye),{"aria-hidden":"true"})],40,ln)])])]))),128))])])],8,Ro),e.createElementVNode("nav",cn,[e.createElementVNode("button",{class:"pagination-btn",disabled:a.value===1,onClick:g,onKeydown:[e.withKeys(g,["enter"]),e.withKeys(e.withModifiers(g,["prevent"]),["space"])],"aria-label":"Go to previous page",tabindex:a.value===1?-1:0}," Previous ",40,an),e.createElementVNode("div",dn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,m=>(e.openBlock(),e.createElementBlock("button",{key:m,class:e.normalizeClass(["page-number",{active:a.value===m,ellipsis:m==="..."}]),onClick:P=>m!=="..."&&b(m),onKeydown:[e.withKeys(P=>m!=="..."&&b(m),["enter"]),e.withKeys(e.withModifiers(P=>m!=="..."&&b(m),["prevent"]),["space"])],disabled:m==="...","aria-label":m==="..."?"More pages":`Go to page ${m}`,"aria-current":a.value===m?"page":void 0,tabindex:m==="..."?-1:0,role:"listitem"},e.toDisplayString(m),43,un))),128))]),e.createElementVNode("button",{class:"pagination-btn",disabled:a.value===p.totalPages,onClick:w,onKeydown:[e.withKeys(w,["enter"]),e.withKeys(e.withModifiers(w,["prevent"]),["space"])],"aria-label":"Go to next page",tabindex:a.value===p.totalPages?-1:0}," Next ",40,hn)])]))}}),mn=l._export_sfc(pn,[["__scopeId","data-v-e6ad3a6e"]]),vn={class:"freddy-vector-frame__content"},fn={class:"freddy-vector-frame__icon-container"},In={class:"freddy-vector-frame__title"},gn={key:0,class:"freddy-vector-frame__badge"},yn={class:"freddy-vector-frame__badge-content"},kn={class:"freddy-vector-frame__badge-text"},Cn={key:1,class:"freddy-vector-frame__tick-container"},bn={key:0,class:"freddy-vector-frame__underline"},Pn=e.defineComponent({__name:"VectorFrame",props:{title:{default:"Main Vector Store"},badgeText:{default:"Popular"},isSelected:{type:Boolean,default:!1}},emits:["click"],setup(f,{emit:h}){const i=f,o=h,s=e.ref(i.isSelected),c=a=>{s.value=!s.value,o("click",a)};return(a,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-vector-frame",{"freddy-vector-frame--clicked":s.value}]),onClick:c},[e.createElementVNode("div",vn,[e.createElementVNode("div",fn,[e.createVNode(e.unref(l.IconFileSystem),{class:"freddy-vector-frame__icon"})]),e.createElementVNode("div",In,e.toDisplayString(a.title),1),s.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",gn,[e.createElementVNode("div",yn,[e.createVNode(e.unref(l.IconStar),{class:"freddy-vector-frame__badge-icon"}),e.createElementVNode("div",kn,e.toDisplayString(a.badgeText),1)])])),s.value?(e.openBlock(),e.createElementBlock("div",Cn,[e.createVNode(e.unref(l.IconBadgeCheck),{class:"freddy-vector-frame__tick-icon"})])):e.createCommentVNode("",!0)]),s.value?(e.openBlock(),e.createElementBlock("div",bn)):e.createCommentVNode("",!0)],2))}}),$n=l._export_sfc(Pn,[["__scopeId","data-v-e2bc0b9f"]]),wn={class:"freddy-vector-section"},_n={class:"freddy-vector-section__content"},Bn={class:"freddy-vector-section__header"},Sn={class:"freddy-vector-section__count"},En={class:"freddy-vector-section__main"},qn={class:"freddy-vector-section__search-container"},Nn={class:"freddy-vector-section__search-header"},Vn={class:"freddy-vector-section__search-label"},Tn={class:"freddy-vector-section__help-icon"},Dn={class:"freddy-vector-section__search-input-container"},xn={class:"freddy-vector-section__filter-results"},Fn={class:"freddy-vector-section__filter"},An={class:"freddy-vector-section__filter-button"},Ln={class:"freddy-vector-section__results-count"},Mn={class:"freddy-vector-section__frames-container"},Rn={key:0,class:"freddy-vector-section__show-more"},zn={class:"freddy-vector-section__show-more-text"},Hn={class:"freddy-vector-section__add-section"},On={class:"freddy-vector-section__add-container"},Un=e.defineComponent({__name:"VectorSection",props:{title:{default:"Knowledge"},dbCount:{default:0},searchPlaceholder:{default:"Search vector store"},frames:{default:()=>[{id:1,title:"Main Vector Store",badgeText:"Popular",isSelected:!0},{id:2,title:"Secondary Database",badgeText:"Popular",isSelected:!1},{id:3,title:"Custom Vector Store",badgeText:"Popular",isSelected:!0},{id:4,title:"Backup Store",badgeText:"Popular",isSelected:!1},{id:5,title:"Analytics Database",badgeText:"Popular",isSelected:!1},{id:6,title:"User Data Store",badgeText:"Popular",isSelected:!1},{id:7,title:"Logs Database",badgeText:"Popular",isSelected:!1},{id:8,title:"Cache Store",badgeText:"Popular",isSelected:!1},{id:9,title:"Metrics Database",badgeText:"Popular",isSelected:!1},{id:10,title:"Archive Store",badgeText:"Popular",isSelected:!1},{id:11,title:"Test Database",badgeText:"Popular",isSelected:!1},{id:12,title:"Production Store",badgeText:"Popular",isSelected:!1}]},maxDisplayed:{default:4}},emits:["frameClick","addVectorStore","showMore","searchInput"],setup(f,{emit:h}){const i=f,o=h,s=e.ref(""),c=e.ref(i.maxDisplayed),a=e.computed(()=>s.value.trim()?i.frames.filter(v=>v.title.toLowerCase().includes(s.value.toLowerCase())):i.frames),u=e.computed(()=>a.value.slice(0,c.value)),d=e.computed(()=>a.value.length),t=e.computed(()=>a.value.length>c.value),I=e.computed(()=>a.value.length-c.value),y=()=>{o("addVectorStore")},B=()=>{c.value=a.value.length,o("showMore")},S=v=>{s.value=v||"",c.value=i.maxDisplayed,o("searchInput",s.value)};return(v,$)=>(e.openBlock(),e.createElementBlock("div",wn,[e.createElementVNode("div",_n,[e.createElementVNode("div",Bn,[$[1]||($[1]=e.createElementVNode("div",{class:"freddy-vector-section__title"},"Knowledge",-1)),e.createElementVNode("div",Sn,e.toDisplayString(v.dbCount)+" DBs added",1)]),e.createElementVNode("div",En,[e.createElementVNode("div",qn,[e.createElementVNode("div",Nn,[e.createElementVNode("div",Vn,[$[2]||($[2]=e.createTextVNode(" Vector Stores ",-1)),e.createElementVNode("div",Tn,[e.createVNode(e.unref(l.IconQuestion),{class:"freddy-vector-section__help-icon-svg"})])]),e.createElementVNode("div",Dn,[e.createVNode(e.unref(A),{searchInput:s.value,"onUpdate:searchInput":[$[0]||($[0]=k=>s.value=k),S],placeholder:v.searchPlaceholder,class:"freddy-vector-section__search-input"},null,8,["searchInput","placeholder"])])])]),e.createElementVNode("div",xn,[e.createElementVNode("div",Fn,[e.createElementVNode("div",An,[e.createVNode(e.unref(l.IconFilter),{class:"freddy-vector-section__filter-icon"}),$[3]||($[3]=e.createElementVNode("span",{class:"freddy-vector-section__filter-text"},"Filter by",-1)),e.createVNode(e.unref(l.IconChevronDown),{class:"freddy-vector-section__filter-arrow"})])]),e.createElementVNode("div",Ln,e.toDisplayString(d.value)+" databases found ",1)]),e.createElementVNode("div",Mn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(k,b)=>(e.openBlock(),e.createElementBlock("div",{key:k.id||b,class:"freddy-vector-section__frame-item"}))),128))]),t.value?(e.openBlock(),e.createElementBlock("div",Rn,[e.createElementVNode("button",{class:"freddy-vector-section__show-more-button",onClick:B},[e.createElementVNode("span",zn,"Show "+e.toDisplayString(I.value)+" more",1),e.createVNode(e.unref(l.IconChevronDown),{class:"freddy-vector-section__show-more-icon"})])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Hn,[$[5]||($[5]=e.createElementVNode("div",{class:"freddy-vector-section__add-title"},"Knowledge",-1)),e.createElementVNode("div",On,[e.createElementVNode("button",{class:"freddy-vector-section__add-button",onClick:y},[e.createVNode(e.unref(l.IconAddFileSystem),{class:"freddy-vector-section__add-icon"}),$[4]||($[4]=e.createElementVNode("span",{class:"freddy-vector-section__add-text"},"Add vector store to assistant",-1))])])])])]))}}),Kn=l._export_sfc(Un,[["__scopeId","data-v-8434fbf8"]]),jn={class:"freddy-voice-list"},Gn={key:0,class:"freddy-voice-list__title"},Wn={class:"freddy-voice-list__container"},Zn={key:1,class:"freddy-voice-list__selected-info"},Jn=e.defineComponent({__name:"VoiceList",props:{voices:{},title:{default:""},showSelectedInfo:{type:Boolean,default:!0},allowDeselect:{type:Boolean,default:!0}},emits:["selectionChange","voiceClick"],setup(f,{expose:h,emit:i}){const o=f,s=i,c=e.ref(null),a=e.computed(()=>o.voices.find(d=>d.id===c.value)||null),u=d=>{c.value===d&&o.allowDeselect?c.value=null:c.value=d,s("selectionChange",c.value),s("voiceClick",d,c.value===d)};return h({selectedVoiceId:c,selectedVoice:a,selectVoice:d=>{c.value=d,s("selectionChange",d)},clearSelection:()=>{c.value=null,s("selectionChange",null)}}),(d,t)=>{var I;return e.openBlock(),e.createElementBlock("div",jn,[d.title?(e.openBlock(),e.createElementBlock("h3",Gn,e.toDisplayString(d.title),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Wn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.voices,y=>(e.openBlock(),e.createBlock(e.unref(K),{key:y.id,voiceName:y.name,isSelected:c.value===y.id,onClick:B=>u(y.id)},null,8,["voiceName","isSelected","onClick"]))),128))]),d.showSelectedInfo?(e.openBlock(),e.createElementBlock("div",Zn,[e.createElementVNode("p",null,"Selected: "+e.toDisplayString(((I=a.value)==null?void 0:I.name)||"None"),1)])):e.createCommentVNode("",!0)])}}}),Qn={class:"freddy-voice-selection__container"},Yn={class:"freddy-voice-selection__icon-container"},Xn={class:"freddy-voice-selection__icon"},et={class:"freddy-voice-selection__play-background"},ot={class:"freddy-voice-selection__name-container"},nt={class:"freddy-voice-selection__name-wrapper"},tt={class:"freddy-voice-selection__name"},rt={key:0,class:"freddy-voice-selection__check-icon"},st={key:1,class:"freddy-voice-selection__indicator"},K=e.defineComponent({__name:"VoiceSelection",props:{voiceName:{},isSelected:{type:Boolean,default:!1}},emits:["handleClick"],setup(f,{emit:h}){const i=h,o=s=>{i("handleClick",s)};return(s,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-voice-selection",{"freddy-voice-selection--selected":s.isSelected}]),onClick:o},[e.createElementVNode("div",Qn,[e.createElementVNode("div",Yn,[e.createElementVNode("div",Xn,[e.createElementVNode("div",et,[e.createVNode(e.unref(l.IconRevertedTriangle),{class:"freddy-voice-selection__triangle-icon"})])])]),e.createElementVNode("div",ot,[e.createElementVNode("div",nt,[e.createElementVNode("div",tt,e.toDisplayString(s.voiceName),1)])]),s.isSelected?(e.openBlock(),e.createElementBlock("div",rt,[e.createVNode(e.unref(l.IconTick),{class:"freddy-voice-selection__check-icon-svg"})])):(e.openBlock(),e.createElementBlock("div",st))])],2))}}),it=["innerHTML"],lt={key:1},N=e.defineComponent({__name:"Tooltip",props:{text:{},placement:{},html:{type:Boolean},contentClass:{}},setup(f){l.useTheme();const h=e.ref(!1),i=e.ref(!1),o=e.ref(null);let s=null;function c(){s&&clearTimeout(s),s=setTimeout(()=>{if(o.value){const u=o.value.getBoundingClientRect();i.value=u.top<150}h.value=!0},200)}function a(){s&&clearTimeout(s),h.value=!1}return(u,d)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tooltipWrapper",ref:o,class:"tooltip-wrapper",onMouseenter:c,onMouseleave:a,onFocusin:c,onFocusout:a,tabindex:"0"},[e.renderSlot(u.$slots,"default"),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[h.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["tooltip-content",[u.placement,i.value?"force-bottom":"",u.contentClass]])},[e.renderSlot(u.$slots,"content",{},()=>[u.html?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:u.text},null,8,it)):(e.openBlock(),e.createElementBlock("span",lt,e.toDisplayString(u.text),1))])],2)):e.createCommentVNode("",!0)]),_:3})],544))}}),ct=["disabled","aria-disabled","aria-label"],at={key:0,class:"freddy-plugins-button-label"},dt={key:1,class:"freddy-plugins-button-label"},ut=["disabled","aria-disabled","aria-label"],ht={key:0,class:"freddy-plugins-button-label"},pt={key:1,class:"freddy-plugins-button-label"},mt=e.defineComponent({__name:"BaseButton",props:{size:{default:"md"},hierarchy:{default:"primary"},state:{default:"default"},errorState:{type:Boolean,default:!1},iconOnly:{type:Boolean,default:!1},leftIcon:{default:void 0},rightIcon:{default:void 0},label:{default:"Button"},loadingText:{default:void 0},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},tooltip:{default:void 0},tooltipPlacement:{default:"top"}},emits:["click","leftIconClick","rightIconClick"],setup(f,{emit:h}){const i=f,o={IconSearch:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconSearch$1)),IconUser:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconUser$1)),IconDelete:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconDelete$1)),IconSend:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconSend$1)),IconPlus:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconPlus$1)),IconEdit:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconEdit$1)),IconCross:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconCross$1)),IconTick:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconTick$1)),IconArrowLeft:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconArrowLeft$1)),IconArrowDown:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconArrowDown$1)),IconArrowUp:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconArrowUp$1)),IconChevronDown:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconChevronDown$1)),IconChevronUp:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconChevronUp$1)),IconChevronLeft:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconChevronLeft$1)),IconChevronRight:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconChevronRight$1)),IconSettings:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconSettings$1)),IconHome:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconHome$1)),IconDownload:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconDownload$1)),IconRefresh:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconRefresh$1)),IconCopy:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconCopy$1)),IconEye:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconEye$1)),IconLock:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconLock$1)),IconStar:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconStar$1)),IconFilter:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconFilter$1)),IconFile:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconFile$1)),IconFolder:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconFolder$1)),IconText:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconText$1)),IconLink04:e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(v=>v.IconLink04$1))},s=e.computed(()=>i.leftIcon&&o[i.leftIcon]||null),c=e.computed(()=>i.rightIcon&&o[i.rightIcon]||null),a=h,u=e.ref(!1),d=e.computed(()=>["freddy-plugins-base-button",`freddy-plugins-base-button--${i.size}`,`freddy-plugins-base-button--${i.hierarchy}`,{"freddy-plugins-base-button--disabled":i.disabled,"freddy-plugins-base-button--loading":i.loading,"freddy-plugins-base-button--icon-only":i.iconOnly,"freddy-plugins-base-button--error":i.errorState,"freddy-plugins-base-button--hover":u.value&&!i.disabled&&!i.loading,"freddy-plugins-base-button--focused":i.state==="focused"}]),t=v=>{!i.disabled&&!i.loading&&a("click",v)},I=v=>{!i.disabled&&!i.loading&&a("leftIconClick",v)},y=v=>{!i.disabled&&!i.loading&&a("rightIconClick",v)},B=()=>{u.value=!0},S=()=>{u.value=!1};return(v,$)=>v.tooltip?(e.openBlock(),e.createBlock(N,{key:0,text:v.tooltip,placement:v.tooltipPlacement},{default:e.withCtx(()=>[e.createElementVNode("button",{class:e.normalizeClass(d.value),disabled:v.disabled||v.loading,"aria-disabled":v.disabled||v.loading,"aria-label":v.iconOnly?v.label:void 0,role:"button",onClick:t,onMouseenter:B,onMouseleave:S},[v.loading?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[$[0]||($[0]=e.createElementVNode("span",{class:"freddy-plugins-button-spinner","aria-hidden":"true"},null,-1)),v.loadingText||v.label?(e.openBlock(),e.createElementBlock("span",at,e.toDisplayString(v.loadingText||v.label),1)):e.createCommentVNode("",!0)],64)):v.iconOnly?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.value),{key:1,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-center",`freddy-plugins-button-icon--${v.size}`]),"aria-hidden":"true"},null,8,["class"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[v.leftIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.value),{key:0,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-left",`freddy-plugins-button-icon--${v.size}`]),"aria-hidden":"true",onClick:e.withModifiers(I,["stop"])},null,8,["class"])):e.createCommentVNode("",!0),v.label?(e.openBlock(),e.createElementBlock("span",dt,e.toDisplayString(v.label),1)):e.createCommentVNode("",!0),v.rightIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.value),{key:2,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-right",`freddy-plugins-button-icon--${v.size}`]),"aria-hidden":"true",onClick:e.withModifiers(y,["stop"])},null,8,["class"])):e.createCommentVNode("",!0)],64))],42,ct)]),_:1},8,["text","placement"])):(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(d.value),disabled:v.disabled||v.loading,"aria-disabled":v.disabled||v.loading,"aria-label":v.iconOnly?v.label:void 0,role:"button",onClick:t,onMouseenter:B,onMouseleave:S},[v.loading?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[$[1]||($[1]=e.createElementVNode("span",{class:"freddy-plugins-button-spinner","aria-hidden":"true"},null,-1)),v.loadingText||v.label?(e.openBlock(),e.createElementBlock("span",ht,e.toDisplayString(v.loadingText||v.label),1)):e.createCommentVNode("",!0)],64)):v.iconOnly?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.value),{key:1,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-center",`freddy-plugins-button-icon--${v.size}`]),"aria-hidden":"true"},null,8,["class"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[v.leftIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.value),{key:0,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-left",`freddy-plugins-button-icon--${v.size}`]),"aria-hidden":"true",onClick:e.withModifiers(I,["stop"])},null,8,["class"])):e.createCommentVNode("",!0),v.label?(e.openBlock(),e.createElementBlock("span",pt,e.toDisplayString(v.label),1)):e.createCommentVNode("",!0),v.rightIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.value),{key:2,class:e.normalizeClass(["freddy-plugins-button-icon freddy-plugins-button-icon-right",`freddy-plugins-button-icon--${v.size}`]),"aria-hidden":"true",onClick:e.withModifiers(y,["stop"])},null,8,["class"])):e.createCommentVNode("",!0)],64))],42,ut))}}),j=l._export_sfc(mt,[["__scopeId","data-v-ca53fa07"]]),vt=["disabled","aria-label","onClick"],ft={key:0,class:"freddy-plugins-social-button-label"},It=e.defineComponent({__name:"SocialButtons",props:{providers:{},variant:{default:"filled"},size:{default:"md"},disabled:{type:Boolean,default:!1},iconOnly:{type:Boolean,default:!1},layout:{default:"horizontal"},class:{},style:{}},emits:["click"],setup(f,{emit:h}){const i=f,o=h,s={google:{icon:l.IconGoogle,label:"Sign in with Google",colors:{filled:{background:"#ffffff",color:"#1f2937",border:"#d1d5db"},outlined:{background:"#ffffff",color:"#1f2937",border:"#10b981"},ghost:{background:"transparent",color:"#9ca3af",border:"#d1d5db"}}},facebook:{icon:l.IconFacebook,label:"Sign in with Facebook",colors:{filled:{background:"#1877f2",color:"#ffffff"},outlined:{background:"#ffffff",color:"#1877f2",border:"#1877f2"},ghost:{background:"transparent",color:"#9ca3af",border:"#d1d5db"}}},apple:{icon:l.IconApple,label:"Sign in with Apple",colors:{filled:{background:"#000000",color:"#ffffff"},outlined:{background:"#ffffff",color:"#000000",border:"#000000"},ghost:{background:"transparent",color:"#9ca3af",border:"#d1d5db"}}},x:{icon:l.IconX,label:"Sign in with X",colors:{filled:{background:"#000000",color:"#ffffff"},outlined:{background:"#ffffff",color:"#000000",border:"#000000"},ghost:{background:"transparent",color:"#9ca3af",border:"#d1d5db"}}},figma:{icon:l.IconFigma,label:"Sign in with Figma",colors:{filled:{background:"#000000",color:"#ffffff"},outlined:{background:"#ffffff",color:"#000000",border:"#000000"},ghost:{background:"transparent",color:"#9ca3af",border:"#d1d5db"}}},dribbble:{icon:l.IconDribbble,label:"Sign in with Dribbble",colors:{filled:{background:"#ea4c89",color:"#ffffff"},outlined:{background:"#ffffff",color:"#ea4c89",border:"#ea4c89"},ghost:{background:"transparent",color:"#9ca3af",border:"#d1d5db"}}}},c=e.computed(()=>["freddy-plugins-social-buttons",`freddy-plugins-social-buttons--${i.layout}`,`freddy-plugins-social-buttons--${i.size}`,{"freddy-plugins-social-buttons--disabled":i.disabled},i.class]),a=I=>s[I].icon,u=I=>s[I].label,d=I=>["freddy-plugins-social-button",`freddy-plugins-social-button--${i.variant}`,`freddy-plugins-social-button--${i.size}`,`freddy-plugins-social-button--${I}`,{"freddy-plugins-social-button--disabled":i.disabled,"freddy-plugins-social-button--icon-only":i.iconOnly}],t=(I,y)=>{i.disabled||o("click",I,y)};return(I,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(c.value),style:e.normalizeStyle(I.style)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.providers,B=>(e.openBlock(),e.createElementBlock("button",{key:B,class:e.normalizeClass(d(B)),disabled:I.disabled,"aria-label":I.iconOnly?u(B):void 0,role:"button",onClick:S=>t(B,S)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a(B)),{class:"freddy-plugins-social-button-icon","aria-hidden":"true"})),I.iconOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",ft,e.toDisplayString(u(B)),1))],10,vt))),128))],6))}}),gt=l._export_sfc(It,[["__scopeId","data-v-22e5ee7c"]]),yt=["innerHTML"],Q="nord",kt=e.defineComponent({__name:"CodeBlock",props:{code:{},language:{}},setup(f){const h=f,i=e.ref("");let o=null,s=null;const c=async()=>{try{if(typeof window<"u"&&window.shiki){s=window.shiki.createHighlighter;return}}catch{}},a=["js","ts","json","python","vue","html","css","scss","bash","yaml","markdown","c","cpp","java","go","php","ruby","rust","swift","kotlin"],u=async()=>{if(s||await c(),!s){i.value=`<pre><code>${h.code.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}</code></pre>`;return}try{o||(o=await s({themes:[Q],langs:a})),i.value=o.codeToHtml(h.code,{lang:h.language,theme:Q})}catch{i.value=`<pre><code>${h.code.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}</code></pre>`}};return e.watch(()=>[h.code,h.language],u,{immediate:!0}),e.onMounted(u),(d,t)=>(e.openBlock(),e.createElementBlock("pre",null,[e.createElementVNode("code",{innerHTML:i.value},null,8,yt)]))}}),Ct=["aria-checked","aria-disabled","aria-label"],bt=["checked","disabled"],Pt={key:0,class:"freddy-plugins-checkbox-dash"},$t={key:1,class:"freddy-plugins-checkbox-icon",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wt=["stroke"],_t=e.defineComponent({__name:"CustomCheckbox",props:{isChecked:{type:Boolean},isDashInput:{type:Boolean},blueCheckbox:{type:Boolean},disabled:{type:Boolean},ariaLabel:{}},emits:["update:isChecked"],setup(f,{emit:h}){l.useTheme();const i=f,o=h;function s(c){const a=c.target;i.disabled||o("update:isChecked",a.checked)}return(c,a)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["freddy-plugins-base-checkbox",{"freddy-plugins-checked":c.isChecked&&!c.blueCheckbox,"freddy-plugins-checked-blue":c.isChecked&&c.blueCheckbox,"freddy-plugins-not-checked":!c.isChecked,"freddy-plugins-is-disabled":c.disabled}]),"aria-checked":c.isChecked,"aria-disabled":c.disabled,"aria-label":c.ariaLabel,role:"checkbox"},[e.createElementVNode("input",{id:"checkbox-input",type:"checkbox",class:"freddy-plugins-checkbox-input",checked:c.isChecked,disabled:c.disabled,onChange:s},null,40,bt),c.isDashInput&&c.isChecked?(e.openBlock(),e.createElementBlock("span",Pt)):c.isChecked&&!c.isDashInput?(e.openBlock(),e.createElementBlock("svg",$t,[e.createElementVNode("path",{d:"M10 3L4.5 8.5L2 6",stroke:c.blueCheckbox?"var(--text-50, var(--text-inverse))":"#000","stroke-width":"1.6666","stroke-linecap":"round","stroke-linejoin":"round"},null,8,wt)])):e.createCommentVNode("",!0)],10,Ct))}});class Bt{constructor(h){R(this,"apiKey",null);R(this,"baseUrl","https://api.openai.com/v1");this.apiKey=h||this.getApiKeyFromEnv()||"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"}getApiKeyFromEnv(){return process.env.OPENAI_API_KEY||null}setApiKey(h){this.apiKey=h}getSmartSystemPrompt(){return`You are an AI assistant that helps with text editing, code improvement, and content generation. You excel at working with JavaScript, HTML, CSS, JSON, and all programming languages. Analyze the user's request and respond with the appropriate action.
35
35
 
36
36
  RESPONSE RULES:
37
37
  - NEVER use greetings, pleasantries, or filler phrases
@@ -71,11 +71,11 @@ IMPORTANT:
71
71
  - The textBoxContent represents the current text/code the user is working with
72
72
  - When improving JavaScript code, ensure proper syntax, variable naming, and modern practices
73
73
  - Escape special characters properly in JSON responses
74
- - Maintain original code formatting and style when possible`}analyzeRequest(_,s){const r=_.toLowerCase(),c=!!(s&&s.trim().length>0&&["edit","improve","fix","correct","rewrite","revise","polish","enhance"].some(f=>r.includes(f))),d=!!["write","create","generate","compose","draft"].some(f=>r.includes(f)),t=c&&(r.includes("significant")||r.includes("major")||r.includes("restructure")||r.includes("rewrite"));return{isEdit:c,isGeneration:d,needsStructuredResponse:t}}createPrompt(_,s){const r=this.analyzeRequest(_,s),l=[{role:"system",content:this.getSmartSystemPrompt()}],a=[];return s&&s.trim()&&a.push({type:"text",text:`Current text: ${s.trim()}`}),a.push({type:"text",text:_}),r.needsStructuredResponse?a.push({type:"text",text:"Please respond with JSON format including change details and statistics."}):r.isEdit&&a.push({type:"text",text:"Provide only the improved text without explanations."}),l.push({role:"user",content:a}),l}createResponsesPayload(_,s){return{model:"gpt-4o-mini",input:[{role:"system",content:this.getSmartSystemPrompt()},{role:"user",content:[{type:"text",text:s?`Existing text: ${s}`:"No existing text."},{type:"text",text:_}]}],temperature:.7}}calculateStats(_,s){const r=_.trim().split(/\s+/).filter(u=>u.length>0),l=s.trim().split(/\s+/).filter(u=>u.length>0),a=Math.max(0,l.length-r.length),c=Math.max(0,r.length-l.length);return{added:a,removed:c}}processResponse(_,s,r){try{const l=JSON.parse(_);if(l.action)switch(l.action){case"replace":const a=r&&l.improvedText?this.calculateStats(r,l.improvedText):l.stats||{added:0,removed:0};return{success:!0,content:l.improvedText,hasChanges:!0,action:"replace",changeTitle:l.changeTitle||"Text Replacement",changeDescription:l.changeDescription||"Text has been improved",improvedText:l.improvedText,stats:a};case"complete":return{success:!0,content:l.content,hasChanges:!1,action:"complete"};case"chat":return{success:!0,content:l.content,hasChanges:!1,action:"chat"}}if(l.hasChanges&&l.improvedText){const a=r?this.calculateStats(r,l.improvedText):{added:0,removed:0};return{success:!0,content:l.improvedText,hasChanges:!0,action:"replace",changeTitle:l.changeTitle||"Text Improvement",changeDescription:l.changeDescription||"Text has been improved",improvedText:l.improvedText,stats:a}}if(r&&l.content){const a=this.calculateStats(r,l.content);return{success:!0,content:l.content,hasChanges:!0,action:"replace",changeTitle:"AI Response",changeDescription:"AI has provided a response to your request",improvedText:l.content,stats:a}}return{success:!0,content:l.content||_,hasChanges:!1,action:"chat"}}catch{return{success:!0,content:_,hasChanges:!1,action:"chat"}}}async askAI(_,s){var r,l,a,c,u;if(!this.apiKey)return{success:!1,error:"OpenAI API key is not configured. Please set your API key first."};if(!_.trim())return{success:!1,error:"User question cannot be empty."};try{const d=s?`Existing content:
74
+ - Maintain original code formatting and style when possible`}analyzeRequest(h,i){const o=h.toLowerCase(),a=!!(i&&i.trim().length>0&&["edit","improve","fix","correct","rewrite","revise","polish","enhance"].some(I=>o.includes(I))),d=!!["write","create","generate","compose","draft"].some(I=>o.includes(I)),t=a&&(o.includes("significant")||o.includes("major")||o.includes("restructure")||o.includes("rewrite"));return{isEdit:a,isGeneration:d,needsStructuredResponse:t}}createPrompt(h,i){const o=this.analyzeRequest(h,i),s=[{role:"system",content:this.getSmartSystemPrompt()}],c=[];return i&&i.trim()&&c.push({type:"text",text:`Current text: ${i.trim()}`}),c.push({type:"text",text:h}),o.needsStructuredResponse?c.push({type:"text",text:"Please respond with JSON format including change details and statistics."}):o.isEdit&&c.push({type:"text",text:"Provide only the improved text without explanations."}),s.push({role:"user",content:c}),s}createResponsesPayload(h,i){return{model:"gpt-4o-mini",input:[{role:"system",content:this.getSmartSystemPrompt()},{role:"user",content:[{type:"text",text:i?`Existing text: ${i}`:"No existing text."},{type:"text",text:h}]}],temperature:.7}}calculateStats(h,i){const o=h.trim().split(/\s+/).filter(u=>u.length>0),s=i.trim().split(/\s+/).filter(u=>u.length>0),c=Math.max(0,s.length-o.length),a=Math.max(0,o.length-s.length);return{added:c,removed:a}}processResponse(h,i,o){try{const s=JSON.parse(h);if(s.action)switch(s.action){case"replace":const c=o&&s.improvedText?this.calculateStats(o,s.improvedText):s.stats||{added:0,removed:0};return{success:!0,content:s.improvedText,hasChanges:!0,action:"replace",changeTitle:s.changeTitle||"Text Replacement",changeDescription:s.changeDescription||"Text has been improved",improvedText:s.improvedText,stats:c};case"complete":return{success:!0,content:s.content,hasChanges:!1,action:"complete"};case"chat":return{success:!0,content:s.content,hasChanges:!1,action:"chat"}}if(s.hasChanges&&s.improvedText){const c=o?this.calculateStats(o,s.improvedText):{added:0,removed:0};return{success:!0,content:s.improvedText,hasChanges:!0,action:"replace",changeTitle:s.changeTitle||"Text Improvement",changeDescription:s.changeDescription||"Text has been improved",improvedText:s.improvedText,stats:c}}if(o&&s.content){const c=this.calculateStats(o,s.content);return{success:!0,content:s.content,hasChanges:!0,action:"replace",changeTitle:"AI Response",changeDescription:"AI has provided a response to your request",improvedText:s.content,stats:c}}return{success:!0,content:s.content||h,hasChanges:!1,action:"chat"}}catch{return{success:!0,content:h,hasChanges:!1,action:"chat"}}}async askAI(h,i){var o,s,c,a,u;if(!this.apiKey)return{success:!1,error:"OpenAI API key is not configured. Please set your API key first."};if(!h.trim())return{success:!1,error:"User question cannot be empty."};try{const d=i?`Existing content:
75
75
  \`\`\`
76
- ${s}
76
+ ${i}
77
77
  \`\`\`
78
78
 
79
- User request: ${_}`:_,t={model:"gpt-4o-mini",input:[{role:"system",content:this.getSmartSystemPrompt()},{role:"user",content:d}],temperature:.7},f=await fetch(`${this.baseUrl}/responses`,{method:"POST",headers:{Authorization:`Bearer ${this.apiKey}`,"Content-Type":"application/json"},body:JSON.stringify(t)});if(!f.ok)return{success:!1,error:((r=(await f.json().catch(()=>({}))).error)==null?void 0:r.message)||`API request failed with status ${f.status}: ${f.statusText}`};const E=(u=(c=(a=(l=(await f.json()).output)==null?void 0:l[0])==null?void 0:a.content)==null?void 0:c[0])==null?void 0:u.text;return E?this.processResponse(E,_,s):{success:!1,error:"No response received from AI"}}catch(d){return{success:!1,error:d instanceof Error?d.message:"An unexpected error occurred"}}}isConfigured(){return!!this.apiKey}getStatus(){var _;return{configured:this.isConfigured(),keyLength:(_=this.apiKey)==null?void 0:_.length}}}const D=new En("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"),Sn={class:"freddy-plugins-simple-chat-interface"},Vn={class:"freddy-plugins-messages-list"},Nn={key:0,class:"freddy-plugins-user-message-container"},Tn={class:"freddy-plugins-user-bubble"},qn={class:"freddy-plugins-user-actions"},$n={class:"freddy-plugins-action-btn",title:"Copy"},Dn={class:"freddy-plugins-action-btn",title:"Edit"},xn={key:1,class:"freddy-plugins-assistant-message-container"},An={class:"freddy-plugins-assistant-content"},Fn={class:"freddy-plugins-assistant-text"},Mn={key:0,class:"freddy-plugins-changes-card"},Ln={class:"freddy-plugins-changes-header"},zn={class:"freddy-plugins-header-left"},Rn={class:"freddy-plugins-change-title"},On={key:0,class:"freddy-plugins-stat-added"},Hn={key:1,class:"freddy-plugins-stat-removed"},Un={class:"freddy-plugins-changes-content"},Kn={class:"freddy-plugins-content-description"},jn={key:0,class:"freddy-plugins-content-actions"},Gn=["onClick"],Wn=["onClick"],Zn={key:1,class:"freddy-plugins-applied-label"},Jn={class:"freddy-plugins-assistant-actions"},Qn={class:"freddy-plugins-action-btn",title:"Refresh"},Yn={class:"freddy-plugins-action-btn",title:"Copy"},Xn={class:"freddy-plugins-action-btn",title:"Thumbs down"},ei={key:0,class:"freddy-plugins-processing-indicator"},oi={class:"freddy-plugins-chat-input-area"},ti={class:"freddy-plugins-folder-btn"},ni=["placeholder","onKeydown"],ii=["disabled"],oe=e.defineComponent({__name:"SimpleChatInterface",props:{placeholder:{},messages:{},enableAI:{type:Boolean},openaiApiKey:{},textBoxContent:{}},emits:["send","acceptChanges","denyChanges","textReplacement","textCompletion"],setup(h,{expose:_,emit:s}){const r=h,l=s,a=e.ref(""),c=e.ref(null),u=e.ref(null),d=e.ref(r.messages||[]),t=e.ref(!1);r.openaiApiKey&&D.setApiKey(r.openaiApiKey),e.watch(()=>r.messages,o=>{o&&(d.value=o,b())}),e.watch(()=>r.openaiApiKey,o=>{o&&D.setApiKey(o)});const f=o=>{switch(o){case"replace":return"Text Replacement";case"complete":return"Text Completion";case"chat":return"AI Response";default:return"Text Improvement"}},y=o=>{switch(o){case"replace":return"Your text has been improved and replaced";case"complete":return"Your text has been continued";case"chat":return"AI provided a conversational response";default:return"Text has been improved"}},E=async o=>{var v,C;if(!D.isConfigured()){const I={id:Date.now().toString(),content:"AI service is not configured. Please provide an OpenAI API key.",sender:"assistant",timestamp:new Date};d.value.push(I),b();return}t.value=!0;try{const I=await D.askAI(o,r.textBoxContent);if(I.success&&I.content){const i={id:Date.now().toString(),content:I.content,sender:"assistant",timestamp:new Date,applied:!1,changes:I.hasChanges?{title:I.changeTitle||f(I.action),description:I.changeDescription||y(I.action),added:((v=I.stats)==null?void 0:v.added)||0,removed:((C=I.stats)==null?void 0:C.removed)||0,data:{originalText:r.textBoxContent,improvedText:I.improvedText||I.content,action:I.action}}:void 0};d.value.push(i),b()}else{const i={id:Date.now().toString(),content:I.error||"Failed to process your request. Please try again.",sender:"assistant",timestamp:new Date};d.value.push(i),b()}}catch{const i={id:Date.now().toString(),content:"An unexpected error occurred while processing your request.",sender:"assistant",timestamp:new Date};d.value.push(i),b()}finally{t.value=!1}},S=async()=>{const o=a.value.trim();if(!o)return;const v={id:Date.now().toString(),content:o,sender:"user",timestamp:new Date};d.value.push(v),l("send",o),a.value="",P(),b(),r.enableAI&&await E(o)},m=()=>{a.value+=`
80
- `,P()},P=()=>{e.nextTick(()=>{u.value&&(u.value.style.height="auto",u.value.style.height=Math.min(u.value.scrollHeight,120)+"px")})},b=()=>{e.nextTick(()=>{c.value&&(c.value.scrollTop=c.value.scrollHeight)})},k=o=>{l("acceptChanges",o)},g=o=>{o.changes&&(o.changes=void 0),l("denyChanges",o)};return _({addAIResponse:(o,v)=>{const C={id:Date.now().toString(),content:o,sender:"assistant",timestamp:new Date,changes:v};d.value.push(C),b()},addAIResponseFromApi:o=>{const v=n.parseApiResponse(o),C=n.getDisplayContent(v),I=n.createChangesObject(v),i={id:Date.now().toString(),content:C,sender:"assistant",timestamp:new Date,applied:!1,changes:I};d.value.push(i),b()}}),(o,v)=>(e.openBlock(),e.createElementBlock("div",Sn,[e.createElementVNode("div",{ref_key:"messagesContainer",ref:c,class:"freddy-plugins-chat-messages"},[e.createElementVNode("div",Vn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,C=>(e.openBlock(),e.createElementBlock("div",{key:C.id,class:e.normalizeClass(["freddy-plugins-message",C.sender])},[C.sender==="user"?(e.openBlock(),e.createElementBlock("div",Nn,[e.createElementVNode("div",Tn,e.toDisplayString(C.content),1),e.createElementVNode("div",qn,[e.createElementVNode("button",$n,[e.createVNode(e.unref(n.IconCopy),{class:"freddy-plugins-action-icon"})]),e.createElementVNode("button",Dn,[e.createVNode(e.unref(n.IconEdit),{class:"freddy-plugins-action-icon"})])])])):(e.openBlock(),e.createElementBlock("div",xn,[e.createElementVNode("div",An,[e.createElementVNode("p",Fn,e.toDisplayString(C.content),1),C.changes?(e.openBlock(),e.createElementBlock("div",Mn,[e.createElementVNode("div",Ln,[e.createElementVNode("div",zn,[e.createVNode(e.unref(n.IconFile),{class:"freddy-plugins-building-icon"}),e.createElementVNode("span",Rn,e.toDisplayString(C.changes.title||"Instructions"),1),C.changes.added>0?(e.openBlock(),e.createElementBlock("span",On,"+"+e.toDisplayString(C.changes.added),1)):e.createCommentVNode("",!0),C.changes.removed>0?(e.openBlock(),e.createElementBlock("span",Hn,"-"+e.toDisplayString(C.changes.removed),1)):e.createCommentVNode("",!0),v[1]||(v[1]=e.createElementVNode("span",{class:"freddy-plugins-changes-applied"},"Changes applied",-1))])]),e.createElementVNode("div",Un,[v[5]||(v[5]=e.createElementVNode("div",{class:"freddy-plugins-content-header"},[e.createElementVNode("span",{class:"freddy-plugins-content-title"},"Instructions")],-1)),e.createElementVNode("p",Kn,e.toDisplayString(C.changes.description),1),C.applied?(e.openBlock(),e.createElementBlock("div",Zn,[e.createVNode(e.unref(n.IconCheckRounded),{class:"freddy-plugins-applied-icon"}),v[4]||(v[4]=e.createTextVNode(" Applied ",-1))])):(e.openBlock(),e.createElementBlock("div",jn,[e.createElementVNode("button",{class:"freddy-plugins-accept-btn",onClick:I=>k(C)},[e.createVNode(e.unref(n.IconCheckRounded),{class:"freddy-plugins-btn-icon"}),v[2]||(v[2]=e.createTextVNode(" Accept ",-1))],8,Gn),e.createElementVNode("button",{class:"freddy-plugins-deny-btn",onClick:I=>g(C)},[e.createVNode(e.unref(n.IconCross),{class:"freddy-plugins-btn-icon"}),v[3]||(v[3]=e.createTextVNode(" Deny ",-1))],8,Wn)]))])])):e.createCommentVNode("",!0),e.createElementVNode("div",Jn,[e.createElementVNode("button",Qn,[e.createVNode(e.unref(n.IconRefresh),{class:"freddy-plugins-action-icon"})]),e.createElementVNode("button",Yn,[e.createVNode(e.unref(n.IconCopy),{class:"freddy-plugins-action-icon"})]),e.createElementVNode("button",Xn,[e.createVNode(e.unref(n.IconThumbsDown),{class:"freddy-plugins-action-icon"})])])])]))],2))),128))]),t.value?(e.openBlock(),e.createElementBlock("div",ei,[...v[6]||(v[6]=[e.createElementVNode("div",{class:"freddy-plugins-processing-content"},[e.createElementVNode("div",{class:"freddy-plugins-processing-spinner"}),e.createElementVNode("span",{class:"freddy-plugins-processing-text"},"AI is processing your request...")],-1)])])):e.createCommentVNode("",!0)],512),e.createElementVNode("div",oi,[e.createElementVNode("button",ti,[e.createVNode(e.unref(n.IconFolder),{class:"freddy-plugins-folder-icon"})]),e.withDirectives(e.createElementVNode("textarea",{ref_key:"inputRef",ref:u,"onUpdate:modelValue":v[0]||(v[0]=C=>a.value=C),placeholder:o.placeholder||"Type here...",class:"freddy-plugins-chat-input",rows:"1",onKeydown:[e.withKeys(e.withModifiers(S,["exact","prevent"]),["enter"]),e.withKeys(e.withModifiers(m,["shift","exact"]),["enter"])],onInput:P},null,40,ni),[[e.vModelText,a.value]]),e.createElementVNode("button",{class:"freddy-plugins-send-button",disabled:!a.value.trim(),onClick:S},[e.createVNode(e.unref(n.IconPaperAirPlane),{class:"freddy-plugins-send-icon"})],8,ii)])]))}}),li={class:"freddy-plugins-edit-excerpt-modal-content"},si={class:"freddy-plugins-edit-excerpt-modal-header"},ri={class:"freddy-plugins-edit-excerpt-modal-header-content"},ai={class:"freddy-plugins-edit-excerpt-modal-icon"},ci={class:"freddy-plugins-edit-excerpt-modal-text"},di={class:"freddy-plugins-edit-excerpt-modal-title"},ui={class:"freddy-plugins-edit-excerpt-modal-subtitle"},_i={class:"freddy-plugins-edit-excerpt-modal-textarea-section"},pi={class:"freddy-plugins-edit-excerpt-modal-footer"},vi={class:"freddy-plugins-edit-excerpt-modal-footer-content"},mi={key:0,class:"freddy-plugins-edit-excerpt-modal-ai-container"},hi=e.defineComponent({__name:"EditFeaturedExcerptModal",props:{isVisible:{type:Boolean,required:!0},title:{type:String,default:"Edit featured excerpt"},description:{type:String,default:"This will be displayed on your profile."},initialContent:{type:String,default:""},openaiApiKey:{type:String,default:""},openaiModel:{type:String,default:"gpt-4o-mini"},openaiOrganization:{type:String,default:""}},emits:["close","save","cancel","askAI","toggleAI"],setup(h,{emit:_}){const s=h,r=_,l=e.ref(s.initialContent),a=e.ref(!1),c=e.ref([]),u=e.ref(null);e.watch(()=>s.initialContent,g=>{l.value=g});const d=()=>{a.value=!1,c.value=[],r("close")},t=()=>{r("save",l.value)},f=()=>{a.value=!1,c.value=[],r("cancel")},y=()=>{a.value=!0,r("toggleAI",a.value),r("askAI",l.value)},E=()=>{a.value=!1,r("toggleAI",a.value)},S=async g=>{},m=g=>{g.changes&&g.changes.data&&g.changes.data.improvedText&&(l.value,l.value=g.changes.data.improvedText,g.applied=!0)},P=g=>{},b=g=>{},k=g=>{};return(g,w)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[h.isVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"freddy-plugins-edit-excerpt-modal-overlay",onClick:e.withModifiers(d,["self"])},[e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-edit-excerpt-modal-container",{"ai-active":a.value}])},[e.createElementVNode("div",li,[e.createElementVNode("div",si,[e.createElementVNode("div",ri,[e.createElementVNode("div",ai,[e.createVNode(e.unref(n.IconEditLinePath),{class:"freddy-plugins-edit-excerpt-edit-icon","center-distance":36,"circle-gap":44,"show-circles":!0})]),e.createElementVNode("div",ci,[e.createElementVNode("h2",di,e.toDisplayString(h.title),1),e.createElementVNode("p",ui,e.toDisplayString(h.description),1)])]),e.createElementVNode("button",{class:"freddy-plugins-edit-excerpt-modal-close-btn",style:e.normalizeStyle({right:a.value?"52px":"16px"}),onClick:d,"aria-label":"Close modal"},[e.createVNode(e.unref(n.IconCross),{class:"freddy-plugins-edit-excerpt-modal-close-icon"})],4),a.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:"freddy-plugins-edit-excerpt-modal-close-btn",style:{right:"16px"},onClick:E,"aria-label":"Hide AI"},[e.createVNode(n.IconSectionHide,{class:"freddy-plugins-edit-excerpt-hide-section-icon"})])):e.createCommentVNode("",!0),w[1]||(w[1]=e.createElementVNode("div",{class:"freddy-plugins-edit-excerpt-modal-header-spacing"},null,-1))]),e.createElementVNode("div",_i,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":w[0]||(w[0]=p=>l.value=p),class:"freddy-plugins-edit-excerpt-modal-textarea",placeholder:"The text thats needed",rows:"12"},null,512),[[e.vModelText,l.value]])]),e.createElementVNode("div",pi,[e.createElementVNode("div",vi,[a.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,class:"freddy-plugins-edit-excerpt-modal-ai-btn",onClick:y},[e.createVNode(e.unref(n.IconSparkle),{class:"freddy-plugins-edit-excerpt-modal-ai-icon"}),w[2]||(w[2]=e.createElementVNode("span",{class:"freddy-plugins-edit-excerpt-modal-ai-text"}," Ask AI ",-1))])),e.createElementVNode("div",{class:"freddy-plugins-edit-excerpt-modal-action-buttons"},[e.createElementVNode("button",{class:"freddy-plugins-edit-excerpt-modal-cancel-btn",onClick:f}," Cancel "),e.createElementVNode("button",{class:"freddy-plugins-edit-excerpt-modal-save-btn",onClick:t}," Save changes ")])])])]),a.value?(e.openBlock(),e.createElementBlock("div",mi,[e.createVNode(oe,{ref_key:"chatRef",ref:u,placeholder:"Type here...",messages:c.value,"enable-a-i":!0,"openai-api-key":h.openaiApiKey,"text-box-content":l.value,onSend:S,onAcceptChanges:m,onDenyChanges:P,onTextReplacement:b,onTextCompletion:k},null,8,["messages","openai-api-key","text-box-content"])])):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0)]),_:1}))}}),x=n._export_sfc(hi,[["__scopeId","data-v-5aacf574"]]),fi={class:"freddy-plugins-textarea-input-field-wrapper"},gi={class:"freddy-plugins-textarea-input-container"},yi={class:"freddy-plugins-textarea-header"},bi={class:"freddy-plugins-textarea-label-wrapper"},Ii={class:"freddy-plugins-textarea-label-container"},ki={key:0,class:"freddy-plugins-textarea-required"},Ci={class:"freddy-plugins-textarea-input-wrapper"},Pi=["placeholder","disabled","readonly"],wi={key:1,class:"freddy-plugins-textarea-diff-container"},Bi={class:"freddy-plugins-textarea-diff-content"},Ei={class:"freddy-plugins-textarea-diff-block freddy-plugins-textarea-diff-block--old"},Si={class:"freddy-plugins-textarea-diff-block freddy-plugins-textarea-diff-block--new"},Vi={key:2,class:"freddy-plugins-textarea-tags-container"},Ni={class:"freddy-plugins-textarea-tags"},Ti={class:"freddy-plugins-textarea-tag-content"},qi=["onClick","onKeydown","aria-label"],$i=e.defineComponent({__name:"TextAreaInputField",props:{modelValue:{default:""},label:{default:"Description"},placeholder:{default:"The text thats needed"},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!0},tooltipText:{default:"Provide detailed description"},showAiButton:{type:Boolean,default:!0},showTags:{type:Boolean,default:!1},tags:{default:()=>[]},showAddTagsPlaceholder:{type:Boolean,default:!1},addTagsPlaceholder:{default:"Add tags..."},hintText:{default:"This is a hint text to help user."},hasError:{type:Boolean,default:!1},errorMessage:{default:""},modalTitle:{default:"Edit Description"},modalDescription:{default:"Provide detailed description for your content."},openaiApiKey:{default:""},openaiModel:{default:"gpt-4o-mini"},openaiOrganization:{default:""},showUnderlines:{type:Boolean,default:!1},dynamicTitle:{default:""},showHint:{type:Boolean,default:!0},diffMode:{type:Boolean,default:!1},oldText:{default:""},newText:{default:""},tagsOnly:{type:Boolean,default:!1}},emits:["update:modelValue","input","focus","blur","ask-ai","expand","remove-tag","tooltip-click","add-tag","tags-click"],setup(h,{expose:_,emit:s}){const r=h,l=s,a=e.ref(null),c=e.ref(null),u=e.ref(r.modelValue),d=e.ref(""),t=e.ref(!1),f=e.ref("expand"),y=e.ref(!1),E=e.computed(()=>r.showTags&&r.tags.length>0?"":r.placeholder);e.watch(()=>r.modelValue,B=>{u.value=B});const S=()=>{l("update:modelValue",u.value),l("input",u.value)},m=B=>{y.value=!0,l("focus",B)},P=B=>{y.value=!1,l("blur",B)},b=B=>{},k=()=>{r.tagsOnly&&l("tags-click")},g=()=>{l("tooltip-click")},w=B=>{(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),g())},p=()=>{d.value=u.value,f.value="ai",t.value=!0,l("ask-ai",u.value)},o=B=>{(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),p())},v=()=>{d.value=u.value,f.value="expand",t.value=!0,l("expand",u.value)},C=B=>{(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),v())},I=B=>{l("remove-tag",B)},i=(B,$)=>{(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),I($))},V=()=>{u.value=d.value,l("update:modelValue",d.value),l("input",d.value),t.value=!1},N=B=>{u.value=B,l("update:modelValue",B),l("input",B),t.value=!1},G=()=>{u.value=d.value,l("update:modelValue",d.value),l("input",d.value),t.value=!1},ce=()=>{l("ask-ai",u.value)},de=B=>{};return _({focus:()=>{var B;(B=a.value)==null||B.focus()}}),(B,$)=>(e.openBlock(),e.createElementBlock("div",fi,[e.createElementVNode("div",gi,[e.createElementVNode("div",yi,[e.createElementVNode("div",bi,[e.createElementVNode("div",Ii,[e.createElementVNode("label",{class:e.normalizeClass(["freddy-plugins-textarea-label",{"freddy-plugins-textarea-label--underlined":B.showUnderlines}])},e.toDisplayString(B.dynamicTitle||B.label),3),B.required?(e.openBlock(),e.createElementBlock("span",ki,"*")):e.createCommentVNode("",!0),B.showTooltip&&B.tooltipText?(e.openBlock(),e.createBlock(T,{key:1,text:B.tooltipText,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("button",{type:"button",class:"freddy-plugins-textarea-tooltip-button","aria-label":"Help",tabindex:"0",onClick:g,onKeydown:w},[e.createVNode(e.unref(n.IconQuestion),{class:"freddy-plugins-textarea-tooltip-icon"})],32)]),_:1},8,["text"])):e.createCommentVNode("",!0)])]),B.showAiButton?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"freddy-plugins-textarea-ai-button",onClick:p,onKeydown:o,"aria-label":"Ask AI for help",tabindex:"0"},[e.createVNode(e.unref(n.IconSparkle),{class:"freddy-plugins-textarea-ai-icon"})],32)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ci,[B.diffMode?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:0,ref_key:"textareaRef",ref:a,"onUpdate:modelValue":$[0]||($[0]=q=>u.value=q),class:e.normalizeClass(["freddy-plugins-textarea-input",{"freddy-plugins-textarea-input--error":B.hasError,"freddy-plugins-textarea-input--disabled":B.disabled,"freddy-plugins-textarea-input--focused":y.value,"freddy-plugins-textarea-input--with-tags":B.showTags&&B.tags.length>0,"freddy-plugins-textarea-input--tags-only":B.tagsOnly}]),placeholder:E.value,disabled:B.disabled,readonly:B.readonly||B.tagsOnly,onInput:S,onFocus:m,onBlur:P,onKeydown:b,onClick:k},null,42,Pi)),[[e.vModelText,u.value]]),B.diffMode?(e.openBlock(),e.createElementBlock("div",wi,[e.createElementVNode("div",Bi,[e.createElementVNode("div",Ei,e.toDisplayString(B.oldText),1),e.createElementVNode("div",Si,e.toDisplayString(B.newText),1)])])):e.createCommentVNode("",!0),B.showTags&&B.tags.length>0?(e.openBlock(),e.createElementBlock("div",Vi,[e.createElementVNode("div",Ni,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.tags,(q,M)=>(e.openBlock(),e.createElementBlock("div",{key:`${q}-${M}`,class:"freddy-plugins-textarea-tag"},[e.createElementVNode("div",Ti,[e.createElementVNode("span",{class:e.normalizeClass(["freddy-plugins-textarea-tag-text",{"freddy-plugins-textarea-tag-text--underlined":B.showUnderlines}])},e.toDisplayString(q),3)]),e.createElementVNode("button",{type:"button",class:"freddy-plugins-textarea-tag-close",onClick:W=>I(M),onKeydown:W=>i(W,M),"aria-label":`Remove ${q} tag`,tabindex:"0"},[e.createVNode(e.unref(n.IconCross),{class:"freddy-plugins-textarea-tag-close-icon"})],40,qi)]))),128))]),B.showAddTagsPlaceholder?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["freddy-plugins-textarea-add-tags",{"freddy-plugins-textarea-add-tags--underlined":B.showUnderlines}])},e.toDisplayString(B.addTagsPlaceholder),3)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:"freddy-plugins-textarea-expand-button",onClick:v,onKeydown:C,"aria-label":"Expand textarea",tabindex:"0"},[e.createVNode(n.IconMaximize,{class:"freddy-plugins-textarea-expand-icon"})],32)])]),B.showHint&&B.hintText&&!B.hasError?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["freddy-plugins-textarea-hint-text",{"freddy-plugins-textarea-hint-text--underlined":B.showUnderlines}])},e.toDisplayString(B.hintText),3)):e.createCommentVNode("",!0),B.hasError&&B.errorMessage?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(["freddy-plugins-textarea-error-text",{"freddy-plugins-textarea-error-text--underlined":B.showUnderlines}])},e.toDisplayString(B.errorMessage),3)):e.createCommentVNode("",!0),f.value==="ai"?(e.openBlock(),e.createBlock(x,{key:2,ref_key:"aiModalRef",ref:c,"is-visible":t.value&&f.value==="ai",title:B.modalTitle,description:B.modalDescription,"initial-content":u.value,"openai-api-key":B.openaiApiKey,"openai-model":B.openaiModel,"openai-organization":B.openaiOrganization,"auto-show-a-i":!0,onClose:V,onSave:N,onCancel:G,onAskAI:ce,onToggleAI:de},null,8,["is-visible","title","description","initial-content","openai-api-key","openai-model","openai-organization"])):e.createCommentVNode("",!0),f.value==="expand"?(e.openBlock(),e.createBlock(x,{key:3,"is-visible":t.value&&f.value==="expand",title:B.modalTitle,description:B.modalDescription,"initial-content":u.value,"openai-api-key":"","openai-model":B.openaiModel,"openai-organization":"",onClose:V,onSave:N,onCancel:G},null,8,["is-visible","title","description","initial-content","openai-model"])):e.createCommentVNode("",!0)]))}}),te=n._export_sfc($i,[["__scopeId","data-v-c6385f70"]]),Di=e.defineComponent({__name:"Descriptions",props:{modelValue:{default:""},label:{default:"Description"},placeholder:{default:"The text thats needed"},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!0},showTooltip:{type:Boolean,default:!0},tooltipText:{default:"Provide detailed description for your content"},showAiButton:{type:Boolean,default:!0},stage:{default:"placeholder"},type:{default:"default"},destructive:{type:Boolean,default:!1},tags:{default:()=>[]},hintText:{default:"This is a hint text to help user."},errorMessage:{default:"This is an error message."},modalTitle:{default:"Edit Description"},modalDescription:{default:"Provide detailed description for your content."},openaiApiKey:{default:""},openaiModel:{default:"gpt-4o-mini"},openaiOrganization:{default:""},showUnderlines:{type:Boolean,default:!1},dynamicTitle:{default:""},showHint:{type:Boolean,default:!0},diffMode:{type:Boolean,default:!1},oldText:{default:""},newText:{default:""},tagsOnly:{type:Boolean,default:!1}},emits:["update:modelValue","input","focus","blur","ask-ai","expand","remove-tag","tooltip-click","add-tag","tags-click"],setup(h,{expose:_,emit:s}){const r=h,l=s,a=e.ref(r.modelValue),c=e.ref([...r.tags]);e.watch(()=>r.modelValue,v=>{a.value=v}),e.watch(()=>r.tags,v=>{c.value=[...v]},{deep:!0});const u=e.computed(()=>r.type==="tags"),d=e.computed(()=>r.type==="tags"&&(r.stage==="placeholder"||r.stage==="focused")),t=e.computed(()=>(r.stage==="focused","Add tags...")),f=e.computed(()=>r.stage==="error"||r.destructive);e.computed(()=>f.value&&r.destructive?r.errorMessage:r.hintText),e.computed(()=>r.stage==="placeholder"?r.placeholder:r.stage==="focused"&&r.type==="tags"||r.stage==="default"||r.stage==="focused"?"":r.placeholder);const y=v=>{a.value=v,l("update:modelValue",v)},E=v=>{l("input",v)},S=v=>{l("focus",v)},m=v=>{l("blur",v)},P=v=>{l("ask-ai",v)},b=v=>{l("expand",v)},k=v=>{c.value.splice(v,1),l("remove-tag",v)},g=()=>{l("tooltip-click")},w=v=>{l("add-tag",v)},p=()=>{l("tags-click")};return _({focus:()=>{}}),(v,C)=>(e.openBlock(),e.createBlock(te,{modelValue:a.value,"onUpdate:modelValue":[C[0]||(C[0]=I=>a.value=I),y],label:v.label,placeholder:v.placeholder,disabled:v.disabled,readonly:v.readonly,required:v.required,"show-tooltip":v.showTooltip,"tooltip-text":v.tooltipText,"show-ai-button":v.showAiButton,"show-tags":u.value,tags:c.value,"show-add-tags-placeholder":d.value,"add-tags-placeholder":t.value,"hint-text":v.hintText,"has-error":f.value,"error-message":v.errorMessage,"modal-title":v.modalTitle,"modal-description":v.modalDescription,"openai-api-key":v.openaiApiKey,"openai-model":v.openaiModel,"openai-organization":v.openaiOrganization,"show-underlines":v.showUnderlines,"dynamic-title":v.dynamicTitle,"show-hint":v.showHint,"diff-mode":v.diffMode,"old-text":v.oldText,"new-text":v.newText,"tags-only":v.tagsOnly,onInput:E,onFocus:S,onBlur:m,onAskAi:P,onExpand:b,onRemoveTag:k,onTooltipClick:g,onAddTag:w,onTagsClick:p},null,8,["modelValue","label","placeholder","disabled","readonly","required","show-tooltip","tooltip-text","show-ai-button","show-tags","tags","show-add-tags-placeholder","add-tags-placeholder","hint-text","has-error","error-message","modal-title","modal-description","openai-api-key","openai-model","openai-organization","show-underlines","dynamic-title","show-hint","diff-mode","old-text","new-text","tags-only"]))}}),xi=n._export_sfc(Di,[["__scopeId","data-v-19ded011"]]),Ai={class:"freddy-plugins-diff-container"},Fi=["innerHTML"],Mi=["placeholder"],Li=e.defineComponent({__name:"DiffTextarea",props:{modelValue:{},placeholder:{default:"Enter your text..."},originalText:{},improvedText:{},showDiff:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(h,{expose:_,emit:s}){const r=h,l=s,a=e.ref(null),c=e.ref(r.modelValue);e.watch(()=>r.modelValue,t=>{c.value=t});const u=()=>{l("update:modelValue",c.value)},d=e.computed(()=>{if(!r.originalText||!r.improvedText)return"";const t=r.originalText.split(/(\s+)/),f=r.improvedText.split(/(\s+)/);let y="";const E=t.filter(m=>!f.includes(m)&&m.trim()).join(" ");E&&(y+=`<span class="freddy-plugins-diff-removed">${E}</span>`);const S=f.filter(m=>!t.includes(m)&&m.trim()).join(" ");return S&&(y&&(y+="<br>"),y+=`<span class="freddy-plugins-diff-added">${S}</span>`),y||(y=`<span class="freddy-plugins-diff-improved">${r.improvedText}</span>`),y});return _({focus:()=>{var t;return(t=a.value)==null?void 0:t.focus()},blur:()=>{var t;return(t=a.value)==null?void 0:t.blur()}}),(t,f)=>(e.openBlock(),e.createElementBlock("div",Ai,[t.showDiff&&d.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"freddy-plugins-diff-preview",innerHTML:d.value},null,8,Fi)):e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:1,ref_key:"textareaRef",ref:a,"onUpdate:modelValue":f[0]||(f[0]=y=>c.value=y),class:"freddy-plugins-diff-textarea",placeholder:t.placeholder,onInput:u},null,40,Mi)),[[e.vModelText,c.value]])]))}}),zi=n._export_sfc(Li,[["__scopeId","data-v-54efeaf3"]]),Ri=["aria-checked","tabindex","onKeydown","disabled"],ne=e.defineComponent({__name:"Switch",props:{modelValue:{type:Boolean},disabled:{type:Boolean},size:{}},emits:["update:modelValue"],setup(h,{emit:_}){n.useTheme();const s=h,r=_;function l(a){a.stopPropagation(),s.disabled||r("update:modelValue",!s.modelValue)}return(a,c)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["freddy-plugins-switch",{"freddy-plugins-switch--on":a.modelValue,"freddy-plugins-switch--disabled":a.disabled,[`freddy-plugins-switch--${a.size}`]:!0}]),"aria-checked":a.modelValue,role:"switch",tabindex:a.disabled?-1:0,onClick:l,onKeydown:[e.withKeys(e.withModifiers(l,["prevent"]),["space"]),e.withKeys(e.withModifiers(l,["prevent"]),["enter"])],disabled:a.disabled},[...c[0]||(c[0]=[e.createElementVNode("span",{class:"freddy-plugins-switch__track"},null,-1),e.createElementVNode("span",{class:"freddy-plugins-switch__thumb"},null,-1)])],42,Ri))}}),Oi={key:0,class:"freddy-plugins-dropdown-search-bar"},Hi=["placeholder"],Ui={class:"freddy-plugins-dropdown-options"},Ki=["onClick"],ji={class:"freddy-plugins-dropdown-option-label"},Gi={key:1,class:"freddy-plugins-dropdown-option-shortcut"},Wi={key:0,class:"freddy-plugins-dropdown-no-options"},Zi=e.defineComponent({__name:"Dropdown",props:{label:{default:"Select"},size:{default:"sm"},iconOnly:{type:Boolean,default:!1},options:{default:()=>[]},searchable:{type:Boolean,default:!1},searchPlaceholder:{default:"Search..."},openUp:{type:Boolean,default:!1},chevronRight:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},customIcon:{default:null},optionIconRight:{type:Boolean,default:!1},showShortcut:{type:Boolean,default:!1},background:{default:"transparent"},borderRadius:{default:"8px"},activeBackground:{default:"var(--freddy-bg-tertiary)"},openBackground:{default:"var(--freddy-bg-tertiary)"},variant:{default:"primary"},stayOpen:{type:Boolean,default:!1}},emits:["select","toggle"],setup(h,{emit:_}){const s=h,r=_,l=e.ref(!1),a=e.ref(""),c=e.ref(null),u=e.shallowRef([...s.options]);e.watch(()=>s.options,g=>{u.value=[...g]});const d=()=>{if(c.value)return;const g=u.value.find(w=>w.default);g&&(c.value=g)};e.watch(u,()=>{d()},{immediate:!0});const t=e.computed(()=>s.label!=="Select"?s.label:c.value?c.value.label:"Select"),f=e.computed(()=>s.showIcon?s.customIcon?s.customIcon:s.openUp?n.IconChevronUp:n.IconChevronDown:null),y=()=>{l.value=!l.value,l.value||(a.value="")},E=()=>{l.value=!1,a.value=""},S=e.computed(()=>!s.searchable||!a.value?u.value:u.value.filter(g=>g.label.toLowerCase().includes(a.value.toLowerCase()))),m=(g,w)=>{g.type!=="toggle"&&P(g)},P=g=>{c.value=g,r("select",g),s.stayOpen||E()},b=(g,w)=>{const p=u.value.findIndex(o=>o.value===g.value);p!==-1&&(u.value[p].checked=w),r("toggle",{...g,checked:w})},k=g=>{g.target.closest(".freddy-plugins-dropdown-wrapper")||E()};return e.watch(l,g=>{g?setTimeout(()=>{document.addEventListener("click",k)},0):document.removeEventListener("click",k)}),(g,w)=>(e.openBlock(),e.createElementBlock("div",{class:"freddy-plugins-dropdown-wrapper",onKeydown:e.withKeys(E,["esc"]),tabindex:"0"},[e.createVNode(j,{class:"freddy-plugins-dropdown-trigger",label:t.value,iconOnly:g.iconOnly,rightIcon:g.chevronRight&&g.showIcon?f.value:void 0,leftIcon:!g.chevronRight&&g.showIcon?f.value:void 0,size:g.size,hierarchy:"tertiary",onClick:y,"aria-expanded":l.value,"aria-haspopup":!0,type:"button"},{default:e.withCtx(()=>[e.renderSlot(g.$slots,"button",{},()=>[e.createTextVNode(e.toDisplayString(t.value),1)])]),_:3},8,["label","iconOnly","rightIcon","leftIcon","size","aria-expanded"]),l.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["freddy-plugins-dropdown-menu",{"freddy-plugins-dropdown-menu--up":g.openUp,"freddy-plugins-dropdown-menu--down":!g.openUp}])},[g.searchable?(e.openBlock(),e.createElementBlock("div",Oi,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":w[0]||(w[0]=p=>a.value=p),type:"text",class:"freddy-plugins-dropdown-search-input",placeholder:g.searchPlaceholder},null,8,Hi),[[e.vModelText,a.value]])])):e.createCommentVNode("",!0),e.createElementVNode("ul",Ui,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,p=>(e.openBlock(),e.createElementBlock("li",{key:p.value,class:e.normalizeClass(["freddy-plugins-dropdown-option",{"freddy-plugins-dropdown-option--toggle":p.type==="toggle"}]),onClick:o=>m(p)},[e.createElementVNode("span",ji,[!g.optionIconRight&&p.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p.icon),{key:0,class:"freddy-plugins-dropdown-option-icon"})):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(p.label),1),g.showShortcut&&p.shortcut?(e.openBlock(),e.createElementBlock("span",Gi,e.toDisplayString(p.shortcut),1)):e.createCommentVNode("",!0),g.optionIconRight&&p.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p.icon),{key:2,class:"freddy-plugins-dropdown-option-icon freddy-plugins-dropdown-option-icon--right"})):e.createCommentVNode("",!0)]),p.type==="toggle"?(e.openBlock(),e.createBlock(ne,{key:0,modelValue:p.checked??!1,size:s.size,"onUpdate:modelValue":o=>{b(p,o)},onClick:w[1]||(w[1]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","size","onUpdate:modelValue"])):e.createCommentVNode("",!0)],10,Ki))),128)),S.value.length===0?(e.openBlock(),e.createElementBlock("li",Wi,[e.renderSlot(g.$slots,"no-options",{},()=>[w[2]||(w[2]=e.createTextVNode("No options",-1))])])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0)],32))}}),Ji={class:"verification-container"},Qi={class:"verification-header"},Yi={class:"verification-subtitle"},Xi={class:"code-input-container"},el={class:"code-inputs"},ol=["onUpdate:modelValue","onInput","onKeydown","disabled"],tl={class:"verification-actions"},nl={key:0,class:"error-message"},il={class:"verification-footer"},ll={class:"resend-text"},sl=["disabled"],rl=e.defineComponent({__name:"EmailCodeVerification",props:{email:{},brand:{default:"contentplate"},loading:{type:Boolean,default:!1},error:{default:""},resendCooldown:{default:0}},emits:["verify","resend"],setup(h,{emit:_}){const s=h,{brand:r,loading:l,error:a,resendCooldown:c}=s,u=_,d=e.ref(["","","",""]),t=e.ref([]),f=e.computed(()=>d.value.every(k=>k!=="")),y=e.computed(()=>d.value.join("")),E=(k,g)=>{const w=g.target,p=w.value;if(!/^\d*$/.test(p)){w.value="";return}d.value[k]=p,p&&k<3&&e.nextTick(()=>{var o;(o=t.value[k+1])==null||o.focus()})},S=(k,g)=>{g.key==="Backspace"&&!d.value[k]&&k>0&&e.nextTick(()=>{var w;(w=t.value[k-1])==null||w.focus()})},m=k=>{var v;k.preventDefault();const g=(v=k.clipboardData)==null?void 0:v.getData("text");if(!g)return;const w=g.replace(/\D/g,"").slice(0,4).split("");d.value=[...w,"","","",""].slice(0,4);const p=d.value.findIndex(C=>C===""),o=p===-1?3:p;e.nextTick(()=>{var C;(C=t.value[o])==null||C.focus()})},P=()=>{f.value&&u("verify",y.value)},b=()=>{u("resend")};return e.onMounted(()=>{e.nextTick(()=>{var k;(k=t.value[0])==null||k.focus()})}),(k,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["email-verification",`email-verification--${e.unref(r)}`])},[e.createElementVNode("div",Ji,[e.createElementVNode("div",Qi,[g[1]||(g[1]=e.createElementVNode("h2",{class:"verification-title"},"Verify Your Email",-1)),e.createElementVNode("p",Yi,[g[0]||(g[0]=e.createTextVNode(" We've sent a 4-digit verification code to ",-1)),e.createElementVNode("strong",null,e.toDisplayString(k.email),1)])]),e.createElementVNode("form",{onSubmit:e.withModifiers(P,["prevent"]),class:"verification-form"},[e.createElementVNode("div",Xi,[e.createElementVNode("div",el,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,(w,p)=>e.withDirectives(e.createElementVNode("input",{key:p,ref_for:!0,ref:o=>t.value[p]=o,"onUpdate:modelValue":o=>d.value[p]=o,type:"text",maxlength:"1",class:e.normalizeClass(["code-input",`code-input--${e.unref(r)}`]),onInput:o=>E(p,o),onKeydown:o=>S(p,o),onPaste:m,disabled:e.unref(l),autocomplete:"one-time-code"},null,42,ol),[[e.vModelText,d.value[p]]])),64))])]),e.createElementVNode("div",tl,[e.createVNode(j,{type:"submit",label:e.unref(l)?"Verifying...":"Verify Code",hierarchy:"primary",size:"lg",loading:e.unref(l),disabled:!f.value||e.unref(l),class:e.normalizeClass(`verify-button verify-button--${e.unref(r)}`)},null,8,["label","loading","disabled","class"])]),e.unref(a)?(e.openBlock(),e.createElementBlock("div",nl,e.toDisplayString(e.unref(a)),1)):e.createCommentVNode("",!0),e.createElementVNode("div",il,[e.createElementVNode("p",ll,[g[2]||(g[2]=e.createTextVNode(" Didn't receive the code? ",-1)),e.createElementVNode("button",{type:"button",class:"resend-button",disabled:e.unref(c)>0,onClick:b},e.toDisplayString(e.unref(c)>0?`Resend in ${e.unref(c)}s`:"Resend code"),9,sl)])])],32)])],2))}}),al={class:"freddy-plugins-input-field-wrapper"},cl=["for"],dl={key:0,class:"freddy-plugins-required-asterisk"},ul=e.defineComponent({__name:"BaseInput",props:{size:{default:"md"},colorStyle:{default:"freddy"},state:{default:"placeholder"},destructive:{type:Boolean,default:!1},required:{type:Boolean,default:!1},label:{default:""},hintText:{default:""},disabled:{type:Boolean,default:!1}},emits:["focus","blur"],setup(h,{expose:_,emit:s}){const r=h,l=s,a=e.computed(()=>`input-${Math.random().toString(36).substr(2,9)}`),c=e.computed(()=>({[`freddy-plugins-input-field-container--${r.size}`]:!0,[`freddy-plugins-input-field-container--${r.colorStyle}`]:!0,"freddy-plugins-input-field-container--destructive":r.destructive||r.state==="error","freddy-plugins-input-field-container--focused":r.state==="focused","freddy-plugins-input-field-container--disabled":r.state==="disabled","freddy-plugins-input-field-container--loading":r.state==="loading","freddy-plugins-input-field-container--success":r.state==="success"})),u=()=>{r.state!=="disabled"&&l("focus",new FocusEvent("focus"))};return _({inputId:a,containerClasses:c,focusInput:u}),(d,t)=>(e.openBlock(),e.createElementBlock("div",al,[d.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:a.value,class:e.normalizeClass(["freddy-plugins-input-field-label",`freddy-plugins-input-field-label--${d.colorStyle}`])},[e.createTextVNode(e.toDisplayString(d.label)+" ",1),d.required?(e.openBlock(),e.createElementBlock("span",dl,"*")):e.createCommentVNode("",!0)],10,cl)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-input-field-container",c.value]),onClick:u},[e.renderSlot(d.$slots,"default",{},void 0,!0)],2),d.hintText?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(["freddy-plugins-input-hint-text",`freddy-plugins-input-hint-text--${d.colorStyle}`])},e.toDisplayString(d.hintText),3)):e.createCommentVNode("",!0)]))}}),A=n._export_sfc(ul,[["__scopeId","data-v-bb114a19"]]),_l=["src","alt"],pl=["id","placeholder","disabled","readonly","maxlength"],vl=e.defineComponent({__name:"CardInput",props:{cardNumber:{default:""},cardType:{default:"unknown"},maskInput:{type:Boolean,default:!0},showCardIcon:{type:Boolean,default:!0},placeholder:{default:"1234 5678 9012 3456"},trailingIcon:{},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},size:{default:"md"},colorStyle:{default:"freddy"},state:{default:"placeholder"},destructive:{type:Boolean,default:!1},variant:{},type:{},label:{default:""},hintText:{default:""},required:{type:Boolean,default:!1},value:{},modelValue:{},inputType:{},leadingIcon:{},tooltipText:{},iconLeading:{type:Boolean},helpIcon:{type:Boolean},helpText:{},leadingDropdownText:{},trailingDropdownText:{},leadingText:{},trailingButtonText:{},countryCode:{},countryOptions:{},phoneNumber:{},currency:{},currencyOptions:{},amount:{},showCurrencySymbol:{type:Boolean},protocol:{},allowProtocolChange:{type:Boolean},url:{},tags:{},maxTags:{},allowDuplicates:{type:Boolean},tagSeparators:{},suggestions:{},copyText:{},showCopyButton:{type:Boolean},copySuccessMessage:{}},emits:["update:cardNumber","card-type-detected","update:modelValue","input","focus","blur","trailing-icon-click","keydown","leading-icon-click","trailing-button-click","update:countryCode","update:phoneNumber","country-change","update:currency","update:amount","currency-change","update:protocol","update:url","protocol-change","update:tags","tag-added","tag-removed","max-tags-reached","copy-success","copy-error"],setup(h,{expose:_,emit:s}){const r=h,l=s,a=e.ref(null),c=e.ref(null),u=e.ref(""),d=e.ref(""),t=e.ref("unknown"),f=e.computed(()=>({size:r.size,colorStyle:r.colorStyle,state:r.state,destructive:r.destructive,required:r.required,label:r.label,hintText:r.hintText,disabled:r.disabled})),y=I=>I?typeof I=="object"?I:typeof I=="string"?e.defineAsyncComponent(()=>U(Object.assign({"../../icons/IconAddFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_0),"../../icons/IconAddPeople.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_1),"../../icons/IconAitronos.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_2),"../../icons/IconApple.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_3),"../../icons/IconApplePay.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_4),"../../icons/IconArrowDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_5),"../../icons/IconArrowLeft.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_6),"../../icons/IconArrowUp.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_7),"../../icons/IconBadgeCheck.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_8),"../../icons/IconBroom.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_9),"../../icons/IconBuildings.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_10),"../../icons/IconCalendarWithTickInside.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_11),"../../icons/IconCallNotAllowed.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_12),"../../icons/IconCardPay.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_13),"../../icons/IconCaution.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_14),"../../icons/IconChangeLog.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_15),"../../icons/IconCheckCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_16),"../../icons/IconCheckInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_17),"../../icons/IconCheckRounded.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_18),"../../icons/IconChevronDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_19),"../../icons/IconChevronLeft.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_20),"../../icons/IconChevronRight.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_21),"../../icons/IconChevronUp.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_22),"../../icons/IconCircledCheck.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_23),"../../icons/IconClock.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_24),"../../icons/IconClosedEnvelope.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_25),"../../icons/IconCloudUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_26),"../../icons/IconConnectorConfluence.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_27),"../../icons/IconConnectorFigma.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_28),"../../icons/IconConnectorFreshDesk.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_29),"../../icons/IconConnectorGitHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_30),"../../icons/IconConnectorJira.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_31),"../../icons/IconConnectorLinear.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_32),"../../icons/IconConnectorNotion.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_33),"../../icons/IconConnectorSlack.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_34),"../../icons/IconConnectorZapier.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_35),"../../icons/IconCopy.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_36),"../../icons/IconCross.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_37),"../../icons/IconCrossCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_38),"../../icons/IconCrossInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_39),"../../icons/IconCurrentTick.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_40),"../../icons/IconDataUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_41),"../../icons/IconDelete.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_42),"../../icons/IconDeleteFillRed.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_43),"../../icons/IconDialingPhone.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_44),"../../icons/IconDisabledAlert.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_45),"../../icons/IconDocumentation.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_46),"../../icons/IconDownload.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_47),"../../icons/IconDribbble.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_48),"../../icons/IconDropdownArrow.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_49),"../../icons/IconEdit.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_50),"../../icons/IconEditLinePath.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_51),"../../icons/IconEllipse.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_52),"../../icons/IconExcelThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_53),"../../icons/IconEye.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_54),"../../icons/IconFacebook.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_55),"../../icons/IconFigma.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_56),"../../icons/IconFile.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_57),"../../icons/IconFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_58),"../../icons/IconFileUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_59),"../../icons/IconFilter.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_60),"../../icons/IconFolder.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_61),"../../icons/IconFreddyHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_62),"../../icons/IconFreddyHubLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_63),"../../icons/IconFreddyHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_64),"../../icons/IconFreddyHubTitle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_65),"../../icons/IconFreddySmall.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_66),"../../icons/IconGlobExpand.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_67),"../../icons/IconGlobe.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_68),"../../icons/IconGoogle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_69),"../../icons/IconHollowCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_70),"../../icons/IconHome.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_71),"../../icons/IconInfoRounded.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_72),"../../icons/IconInvalidInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_73),"../../icons/IconInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_74),"../../icons/IconInvoiceSwitch.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_75),"../../icons/IconLapTableBottom.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_76),"../../icons/IconLense.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_77),"../../icons/IconLightCross.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_78),"../../icons/IconLink04.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_79),"../../icons/IconLoadingError.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_80),"../../icons/IconLoadingOrg.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_81),"../../icons/IconLocationWithCircleIn.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_82),"../../icons/IconLock.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_83),"../../icons/IconMarketPlace.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_84),"../../icons/IconMaximize.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_85),"../../icons/IconMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_86),"../../icons/IconMutedMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_87),"../../icons/IconNewNotification.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_88),"../../icons/IconNewTab.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_89),"../../icons/IconNotification.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_90),"../../icons/IconOpenBook.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_91),"../../icons/IconPaperAirPlane.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_92),"../../icons/IconPauseCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_93),"../../icons/IconPdfThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_94),"../../icons/IconPenEdit.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_95),"../../icons/IconPencil.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_96),"../../icons/IconPeopleHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_97),"../../icons/IconPersonCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_98),"../../icons/IconPits.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_99),"../../icons/IconPlay.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_100),"../../icons/IconPlus.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_101),"../../icons/IconPolygonDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_102),"../../icons/IconPresentation.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_103),"../../icons/IconProgressBase.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_104),"../../icons/IconProgressComplete.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_105),"../../icons/IconProgressGoing.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_106),"../../icons/IconPurpose.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_107),"../../icons/IconPurseCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_108),"../../icons/IconQuestion.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_109),"../../icons/IconRadio.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_110),"../../icons/IconRadioFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_111),"../../icons/IconRefresh.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_112),"../../icons/IconRevertedTriangle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_113),"../../icons/IconRobotScreen.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_114),"../../icons/IconRoundTick.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_115),"../../icons/IconSearch.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_116),"../../icons/IconSearchOptimised.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_117),"../../icons/IconSectionHide.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_118),"../../icons/IconSend.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_119),"../../icons/IconSettings.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_120),"../../icons/IconSettingsBold.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_121),"../../icons/IconSize.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_122),"../../icons/IconSliderKnobs.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_123),"../../icons/IconSortIdle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_124),"../../icons/IconSparkle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_125),"../../icons/IconSpotlio.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_126),"../../icons/IconStar.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_127),"../../icons/IconStatistics.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_128),"../../icons/IconStopChat.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_129),"../../icons/IconStreamLineHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_130),"../../icons/IconStreamLineHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_131),"../../icons/IconSun.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_132),"../../icons/IconSwap.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_133),"../../icons/IconText.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_134),"../../icons/IconTextThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_135),"../../icons/IconThinDocument.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_136),"../../icons/IconThinFile.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_137),"../../icons/IconThumbsDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_138),"../../icons/IconTick.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_139),"../../icons/IconUser.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_140),"../../icons/IconVerticalDots.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_141),"../../icons/IconVideoCamera.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_142),"../../icons/IconWarningOctal.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_143),"../../icons/IconX.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_144),"../../icons/IconZip.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(i=>i.__vite_glob_0_145)}),`../../icons/${I}.vue`,4).catch(()=>({template:"<div></div>"}))):null:null,E=e.computed(()=>y(r.trailingIcon)),S=e.computed(()=>{switch(t.value){case"amex":return 17;default:return 19}}),m=e.computed(()=>({[`freddy-plugins-input-field--${r.size}`]:!0,[`freddy-plugins-input-field--${r.colorStyle}`]:!0,"freddy-plugins-input-field--destructive":r.destructive,"freddy-plugins-input-field--focused":r.state==="focused","freddy-plugins-input-field--disabled":r.state==="disabled","freddy-plugins-input-field--with-leading":r.showCardIcon&&t.value!=="unknown","freddy-plugins-input-field--with-trailing":!!E.value})),P=I=>{const i=I.replace(/\D/g,"");return/^4/.test(i)?"visa":/^5[1-5]/.test(i)||/^2[2-7]/.test(i)?"mastercard":/^3[47]/.test(i)?"amex":/^6/.test(i)?"discover":"unknown"},b=I=>{const i=I.replace(/\D/g,"");return P(i)==="amex"?i.replace(/(\d{4})(\d{6})(\d{5})/,"$1 $2 $3").replace(/(\d{4})(\d{1,6})/,"$1 $2").substring(0,17):i.replace(/(\d{4})(\d{4})(\d{4})(\d{4})/,"$1 $2 $3 $4").replace(/(\d{4})(\d{4})(\d{4})/,"$1 $2 $3").replace(/(\d{4})(\d{4})/,"$1 $2").replace(/(\d{4})/,"$1").substring(0,19)},k=I=>{const i={visa:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCA0MCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iIzAwNTFBNSIvPgo8cGF0aCBkPSJNMTYuNzUgN0wxNC4yNSAxN0gxMS43NUwxMy41IDEwLjVMMTIuMjUgOC41SDEwLjc1TDEyLjc1IDdIMTYuNzVaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMjkuMjUgN0wyNi43NSAxN0gyNC4yNUwyNi43NSA3SDI5LjI1WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+",mastercard:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCA0MCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iI0VCMDAxQiIvPgo8Y2lyY2xlIGN4PSIxNSIgY3k9IjEyIiByPSI3IiBmaWxsPSIjRkY1RjAwIi8+CjxjaXJjbGUgY3g9IjI1IiBjeT0iMTIiIHI9IjciIGZpbGw9IiNGRkY1RjAiLz4KPC9zdmc+",amex:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCA0MCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iIzAwNkZDRiIvPgo8cGF0aCBkPSJNMTAgOEgxNEwxNiAxMkwxOCA4SDIyTDE4IDE2SDE0TDEyIDEyTDEwIDE2SDZMMTAgOFoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0yNCA4SDMwVjEwSDI2VjEySDI5VjE0SDI2VjE2SDMwVjE4SDI0VjhaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4=",discover:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCA0MCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iI0ZGNjAwMCIvPgo8cGF0aCBkPSJNOCA4SDE2VjE2SDhWOFoiIGZpbGw9IndoaXRlIi8+CjxjaXJjbGUgY3g9IjI4IiBjeT0iMTIiIHI9IjYiIGZpbGw9IndoaXRlIi8+CjwvdXZnPg==",unknown:""};return i[I]||i.unknown},g=I=>{const V=I.target.value;u.value=V.replace(/\D/g,""),d.value=b(V);const N=P(u.value);N!==t.value&&(t.value=N,l("card-type-detected",N)),l("update:modelValue",d.value),l("update:cardNumber",u.value),l("input",d.value)},w=I=>{[8,9,27,13,46].indexOf(I.keyCode)!==-1||I.keyCode===65&&I.ctrlKey===!0||I.keyCode===67&&I.ctrlKey===!0||I.keyCode===86&&I.ctrlKey===!0||I.keyCode===88&&I.ctrlKey===!0||I.keyCode>=35&&I.keyCode<=39||(I.shiftKey||I.keyCode<48||I.keyCode>57)&&(I.keyCode<96||I.keyCode>105)&&I.preventDefault()},p=I=>{l("focus",I)},o=I=>{l("blur",I)},v=I=>{l("trailing-icon-click",I)},C=()=>{var I;(I=a.value)==null||I.focus()};return e.watch(()=>r.cardNumber,I=>{I!==u.value&&(u.value=I,d.value=b(I),t.value=P(I))},{immediate:!0}),_({focus:C,inputRef:a}),(I,i)=>(e.openBlock(),e.createBlock(A,e.mergeProps(f.value,{onFocus:p,onBlur:o}),{default:e.withCtx(()=>{var V;return[I.showCardIcon&&t.value!=="unknown"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["freddy-plugins-card-type-icon",`freddy-plugins-card-type-icon--${I.colorStyle}`])},[e.createElementVNode("img",{src:k(t.value),alt:`${t.value} card`,class:"freddy-plugins-card-icon-image"},null,8,_l)],2)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:(V=c.value)==null?void 0:V.inputId,ref_key:"inputRef",ref:a,"onUpdate:modelValue":i[0]||(i[0]=N=>d.value=N),type:"text",inputmode:"numeric",placeholder:I.placeholder,disabled:I.disabled,readonly:I.readonly,maxlength:S.value,class:e.normalizeClass(["freddy-plugins-input-field freddy-plugins-card-input-field",m.value]),onInput:g,onKeydown:w,onFocus:p,onBlur:o},null,42,pl),[[e.vModelText,d.value]]),E.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(E.value),{key:1,class:e.normalizeClass(["freddy-plugins-input-trailing-icon",`freddy-plugins-input-trailing-icon--${I.colorStyle}`]),onClick:v},null,8,["class"])):e.createCommentVNode("",!0)]}),_:1},16))}}),ie=n._export_sfc(vl,[["__scopeId","data-v-3a6797a1"]]),ml=["id","type","placeholder","disabled","readonly"],hl=e.defineComponent({__name:"DefaultInput",props:{placeholder:{default:""},inputType:{default:"text"},modelValue:{default:""},readonly:{type:Boolean,default:!1},leadingIcon:{},trailingIcon:{},tooltipText:{},size:{default:"md"},colorStyle:{default:"freddy"},state:{default:"placeholder"},destructive:{type:Boolean,default:!1},required:{type:Boolean,default:!1},label:{default:""},hintText:{default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","input","focus","blur","keydown","leading-icon-click","trailing-icon-click"],setup(h,{expose:_,emit:s}){const r=h,l=s,a=e.ref(null),c=e.ref(null),u=e.ref(r.modelValue||""),d=e.computed(()=>({size:r.size,colorStyle:r.colorStyle,state:r.state,destructive:r.destructive,required:r.required,label:r.label,hintText:r.hintText,disabled:r.disabled})),t=p=>p?typeof p=="object"?p:typeof p=="string"?e.defineAsyncComponent(()=>U(Object.assign({"../../icons/IconAddFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_0),"../../icons/IconAddPeople.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_1),"../../icons/IconAitronos.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_2),"../../icons/IconApple.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_3),"../../icons/IconApplePay.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_4),"../../icons/IconArrowDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_5),"../../icons/IconArrowLeft.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_6),"../../icons/IconArrowUp.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_7),"../../icons/IconBadgeCheck.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_8),"../../icons/IconBroom.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_9),"../../icons/IconBuildings.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_10),"../../icons/IconCalendarWithTickInside.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_11),"../../icons/IconCallNotAllowed.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_12),"../../icons/IconCardPay.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_13),"../../icons/IconCaution.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_14),"../../icons/IconChangeLog.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_15),"../../icons/IconCheckCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_16),"../../icons/IconCheckInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_17),"../../icons/IconCheckRounded.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_18),"../../icons/IconChevronDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_19),"../../icons/IconChevronLeft.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_20),"../../icons/IconChevronRight.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_21),"../../icons/IconChevronUp.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_22),"../../icons/IconCircledCheck.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_23),"../../icons/IconClock.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_24),"../../icons/IconClosedEnvelope.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_25),"../../icons/IconCloudUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_26),"../../icons/IconConnectorConfluence.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_27),"../../icons/IconConnectorFigma.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_28),"../../icons/IconConnectorFreshDesk.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_29),"../../icons/IconConnectorGitHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_30),"../../icons/IconConnectorJira.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_31),"../../icons/IconConnectorLinear.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_32),"../../icons/IconConnectorNotion.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_33),"../../icons/IconConnectorSlack.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_34),"../../icons/IconConnectorZapier.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_35),"../../icons/IconCopy.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_36),"../../icons/IconCross.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_37),"../../icons/IconCrossCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_38),"../../icons/IconCrossInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_39),"../../icons/IconCurrentTick.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_40),"../../icons/IconDataUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_41),"../../icons/IconDelete.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_42),"../../icons/IconDeleteFillRed.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_43),"../../icons/IconDialingPhone.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_44),"../../icons/IconDisabledAlert.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_45),"../../icons/IconDocumentation.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_46),"../../icons/IconDownload.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_47),"../../icons/IconDribbble.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_48),"../../icons/IconDropdownArrow.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_49),"../../icons/IconEdit.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_50),"../../icons/IconEditLinePath.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_51),"../../icons/IconEllipse.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_52),"../../icons/IconExcelThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_53),"../../icons/IconEye.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_54),"../../icons/IconFacebook.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_55),"../../icons/IconFigma.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_56),"../../icons/IconFile.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_57),"../../icons/IconFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_58),"../../icons/IconFileUpload.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_59),"../../icons/IconFilter.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_60),"../../icons/IconFolder.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_61),"../../icons/IconFreddyHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_62),"../../icons/IconFreddyHubLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_63),"../../icons/IconFreddyHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_64),"../../icons/IconFreddyHubTitle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_65),"../../icons/IconFreddySmall.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_66),"../../icons/IconGlobExpand.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_67),"../../icons/IconGlobe.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_68),"../../icons/IconGoogle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_69),"../../icons/IconHollowCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_70),"../../icons/IconHome.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_71),"../../icons/IconInfoRounded.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_72),"../../icons/IconInvalidInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_73),"../../icons/IconInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_74),"../../icons/IconInvoiceSwitch.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_75),"../../icons/IconLapTableBottom.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_76),"../../icons/IconLense.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_77),"../../icons/IconLightCross.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_78),"../../icons/IconLink04.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_79),"../../icons/IconLoadingError.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_80),"../../icons/IconLoadingOrg.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_81),"../../icons/IconLocationWithCircleIn.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_82),"../../icons/IconLock.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_83),"../../icons/IconMarketPlace.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_84),"../../icons/IconMaximize.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_85),"../../icons/IconMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_86),"../../icons/IconMutedMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_87),"../../icons/IconNewNotification.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_88),"../../icons/IconNewTab.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_89),"../../icons/IconNotification.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_90),"../../icons/IconOpenBook.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_91),"../../icons/IconPaperAirPlane.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_92),"../../icons/IconPauseCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_93),"../../icons/IconPdfThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_94),"../../icons/IconPenEdit.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_95),"../../icons/IconPencil.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_96),"../../icons/IconPeopleHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_97),"../../icons/IconPersonCircle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_98),"../../icons/IconPits.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_99),"../../icons/IconPlay.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_100),"../../icons/IconPlus.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_101),"../../icons/IconPolygonDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_102),"../../icons/IconPresentation.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_103),"../../icons/IconProgressBase.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_104),"../../icons/IconProgressComplete.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_105),"../../icons/IconProgressGoing.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_106),"../../icons/IconPurpose.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_107),"../../icons/IconPurseCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_108),"../../icons/IconQuestion.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_109),"../../icons/IconRadio.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_110),"../../icons/IconRadioFill.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_111),"../../icons/IconRefresh.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_112),"../../icons/IconRevertedTriangle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_113),"../../icons/IconRobotScreen.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_114),"../../icons/IconRoundTick.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_115),"../../icons/IconSearch.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_116),"../../icons/IconSearchOptimised.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_117),"../../icons/IconSectionHide.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_118),"../../icons/IconSend.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_119),"../../icons/IconSettings.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_120),"../../icons/IconSettingsBold.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_121),"../../icons/IconSize.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_122),"../../icons/IconSliderKnobs.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_123),"../../icons/IconSortIdle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_124),"../../icons/IconSparkle.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_125),"../../icons/IconSpotlio.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_126),"../../icons/IconStar.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_127),"../../icons/IconStatistics.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_128),"../../icons/IconStopChat.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_129),"../../icons/IconStreamLineHub.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_130),"../../icons/IconStreamLineHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_131),"../../icons/IconSun.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_132),"../../icons/IconSwap.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_133),"../../icons/IconText.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_134),"../../icons/IconTextThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_135),"../../icons/IconThinDocument.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_136),"../../icons/IconThinFile.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_137),"../../icons/IconThumbsDown.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_138),"../../icons/IconTick.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_139),"../../icons/IconUser.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_140),"../../icons/IconVerticalDots.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_141),"../../icons/IconVideoCamera.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_142),"../../icons/IconWarningOctal.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_143),"../../icons/IconX.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_144),"../../icons/IconZip.vue":()=>Promise.resolve().then(()=>require("./icons-DQveW34E.cjs")).then(o=>o.__vite_glob_0_145)}),`../../icons/${p}.vue`,4).catch(()=>({template:"<div></div>"}))):null:null,f=e.computed(()=>t(r.leadingIcon)),y=e.computed(()=>t(r.trailingIcon)),E=e.computed(()=>({[`freddy-plugins-input-field--${r.size}`]:!0,[`freddy-plugins-input-field--${r.colorStyle}`]:!0,"freddy-plugins-input-field--destructive":r.destructive,"freddy-plugins-input-field--focused":r.state==="focused","freddy-plugins-input-field--disabled":r.state==="disabled","freddy-plugins-input-field--with-leading":!!f.value,"freddy-plugins-input-field--with-trailing":!!y.value})),S=p=>{const o=p.target;u.value=o.value,l("update:modelValue",o.value),l("input",o.value)},m=p=>{l("focus",p)},P=p=>{l("blur",p)},b=p=>{l("keydown",p)},k=p=>{l("leading-icon-click",p)},g=p=>{l("trailing-icon-click",p)},w=()=>{var p;(p=a.value)==null||p.focus()};return e.watch(()=>r.modelValue,p=>{p!==void 0&&(u.value=p)}),_({focus:w,inputRef:a}),(p,o)=>(e.openBlock(),e.createBlock(A,e.mergeProps(d.value,{onFocus:m,onBlur:P}),{default:e.withCtx(()=>{var v;return[f.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value),{key:0,class:e.normalizeClass(["freddy-plugins-input-leading-icon",`freddy-plugins-input-leading-icon--${p.colorStyle}`]),onClick:k},null,8,["class"])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:(v=c.value)==null?void 0:v.inputId,ref_key:"inputRef",ref:a,"onUpdate:modelValue":o[0]||(o[0]=C=>u.value=C),type:p.inputType,placeholder:p.placeholder,disabled:p.disabled,readonly:p.readonly,class:e.normalizeClass(["freddy-plugins-input-field",E.value]),onInput:S,onFocus:m,onBlur:P,onKeydown:b},null,42,ml),[[e.vModelDynamic,u.value]]),p.trailingIcon==="IconQuestion"&&p.tooltipText?(e.openBlock(),e.createBlock(T,{key:1,text:p.tooltipText,placement:"top"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.value),{class:e.normalizeClass(["freddy-plugins-input-trailing-icon",`freddy-plugins-input-trailing-icon--${p.colorStyle}`])},null,8,["class"]))]),_:1},8,["text"])):y.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.value),{key:2,class:e.normalizeClass(["freddy-plugins-input-trailing-icon",`freddy-plugins-input-trailing-icon--${p.colorStyle}`]),onClick:g},null,8,["class"])):e.createCommentVNode("",!0)]}),_:1},16))}}),le=n._export_sfc(hl,[["__scopeId","data-v-e865b202"]]),fl={class:"freddy-plugins-figma-dropdown-text"},gl=["onClick"],yl={class:"freddy-plugins-country-flag"},bl={class:"freddy-plugins-country-name"},Il={class:"freddy-plugins-country-dial-code"},kl=["id","placeholder","disabled","readonly"],Cl={key:0,class:"freddy-plugins-figma-help-icon"},Pl=e.defineComponent({__name:"PhoneInput",props:{countryCode:{default:"US"},countryOptions:{},phoneNumber:{default:""},placeholder:{default:"Enter phone number"},trailingIcon:{},tooltipText:{},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},size:{default:"md"},colorStyle:{default:"freddy"},state:{default:"placeholder"},destructive:{type:Boolean,default:!1},variant:{},type:{},label:{default:""},hintText:{default:""},required:{type:Boolean,default:!1},value:{},modelValue:{},inputType:{},leadingIcon:{},iconLeading:{type:Boolean},helpIcon:{type:Boolean},helpText:{},leadingDropdownText:{},trailingDropdownText:{},leadingText:{},trailingButtonText:{},currency:{},currencyOptions:{},amount:{},showCurrencySymbol:{type:Boolean},protocol:{},allowProtocolChange:{type:Boolean},url:{},cardNumber:{},cardType:{},maskInput:{type:Boolean},showCardIcon:{type:Boolean},tags:{},maxTags:{},allowDuplicates:{type:Boolean},tagSeparators:{},suggestions:{},copyText:{},showCopyButton:{type:Boolean},copySuccessMessage:{}},emits:["update:countryCode","update:phoneNumber","country-change","update:modelValue","input","focus","blur","keydown","leading-icon-click","trailing-icon-click","trailing-button-click","update:currency","update:amount","currency-change","update:protocol","update:url","protocol-change","update:cardNumber","card-type-detected","update:tags","tag-added","tag-removed","max-tags-reached","copy-success","copy-error"],setup(h,{expose:_,emit:s}){const r=h,l=s,a=e.ref(null),c=e.ref(null),u=e.ref(r.phoneNumber||""),d=e.ref(!1),t=e.ref(r.countryCode||"US"),f=[{code:"US",name:"United States",flag:"🇺🇸",dialCode:"+1"},{code:"GB",name:"United Kingdom",flag:"🇬🇧",dialCode:"+44"},{code:"CA",name:"Canada",flag:"🇨🇦",dialCode:"+1"},{code:"AU",name:"Australia",flag:"🇦🇺",dialCode:"+61"},{code:"DE",name:"Germany",flag:"🇩🇪",dialCode:"+49"},{code:"FR",name:"France",flag:"🇫🇷",dialCode:"+33"},{code:"IT",name:"Italy",flag:"🇮🇹",dialCode:"+39"},{code:"ES",name:"Spain",flag:"🇪🇸",dialCode:"+34"},{code:"JP",name:"Japan",flag:"🇯🇵",dialCode:"+81"},{code:"IN",name:"India",flag:"🇮🇳",dialCode:"+91"}],y=e.computed(()=>({size:r.size,colorStyle:r.colorStyle,state:r.state,destructive:r.destructive,required:r.required,label:r.label,hintText:r.hintText,disabled:r.disabled})),E=e.computed(()=>r.countryOptions||f),S=e.computed(()=>E.value.find(o=>o.code===t.value)||E.value[0]),m=()=>{r.disabled||(d.value=!d.value)},P=o=>{t.value=o.code,l("update:countryCode",o.code),l("country-change",o);const v=u.value.replace(/^\+\d+\s*/,""),C=`${o.dialCode} ${v}`.trim();u.value=C,l("update:phoneNumber",C),l("update:modelValue",C),d.value=!1},b=o=>{const v=o.target;u.value=v.value;const C=`${S.value.dialCode} ${v.value}`;l("update:modelValue",C),l("update:phoneNumber",v.value),l("input",C)},k=o=>{l("focus",o)},g=o=>{l("blur",o)},w=()=>{var o;(o=a.value)==null||o.focus()},p=o=>{o.target.closest(".freddy-plugins-input-field-container")||(d.value=!1)};return e.watch(()=>r.countryCode,o=>{o&&o!==t.value&&(t.value=o)},{immediate:!0}),e.watch(()=>r.phoneNumber,o=>{o!==void 0&&(u.value=o)}),e.onMounted(()=>{document.addEventListener("click",p)}),e.onUnmounted(()=>{document.removeEventListener("click",p)}),_({focus:w,inputRef:a}),(o,v)=>(e.openBlock(),e.createBlock(A,e.mergeProps(y.value,{onFocus:k,onBlur:g}),{default:e.withCtx(()=>{var C;return[e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-figma-dropdown",`freddy-plugins-figma-dropdown--${o.colorStyle}`]),onClick:m},[e.createElementVNode("span",fl,e.toDisplayString(S.value.code),1),e.createVNode(e.unref(n.IconChevronDown),{class:"freddy-plugins-figma-dropdown-icon"})],2),d.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["freddy-plugins-country-options-dropdown",`freddy-plugins-country-options-dropdown--${o.colorStyle}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(E.value,I=>(e.openBlock(),e.createElementBlock("div",{key:I.code,class:e.normalizeClass(["freddy-plugins-country-option",`freddy-plugins-country-option--${o.colorStyle}`]),onClick:i=>P(I)},[e.createElementVNode("span",yl,e.toDisplayString(I.flag),1),e.createElementVNode("span",bl,e.toDisplayString(I.name),1),e.createElementVNode("span",Il,e.toDisplayString(I.dialCode),1)],10,gl))),128))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-figma-text-input",`freddy-plugins-figma-text-input--${o.colorStyle}`])},[e.withDirectives(e.createElementVNode("input",{id:(C=c.value)==null?void 0:C.inputId,ref_key:"inputRef",ref:a,"onUpdate:modelValue":v[0]||(v[0]=I=>u.value=I),type:"tel",placeholder:o.placeholder,disabled:o.disabled,readonly:o.readonly,class:"freddy-plugins-figma-phone-input",onInput:b,onFocus:k,onBlur:g},null,40,kl),[[e.vModelText,u.value]]),o.trailingIcon==="IconQuestion"?(e.openBlock(),e.createElementBlock("div",Cl,[o.tooltipText?(e.openBlock(),e.createBlock(T,{key:0,text:o.tooltipText,placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(n.IconQuestion),{class:"freddy-plugins-figma-help-icon-svg"})]),_:1},8,["text"])):(e.openBlock(),e.createBlock(e.unref(n.IconQuestion),{key:1,class:"freddy-plugins-figma-help-icon-svg"}))])):e.createCommentVNode("",!0)],2)]}),_:1},16))}}),se=n._export_sfc(Pl,[["__scopeId","data-v-20d005c2"]]),wl=e.defineComponent({__name:"InputField",props:{size:{default:"md"},colorStyle:{default:"freddy"},state:{default:"placeholder"},destructive:{type:Boolean,default:!1},variant:{default:"default"},type:{default:"default"},label:{default:""},hintText:{default:""},required:{type:Boolean,default:!1},placeholder:{default:""},value:{},modelValue:{default:""},inputType:{default:"text"},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},leadingIcon:{},trailingIcon:{},tooltipText:{},iconLeading:{type:Boolean},helpIcon:{type:Boolean},helpText:{},leadingDropdownText:{},trailingDropdownText:{},leadingText:{},trailingButtonText:{},countryCode:{default:"US"},countryOptions:{},phoneNumber:{default:""},currency:{},currencyOptions:{},amount:{},showCurrencySymbol:{type:Boolean},protocol:{},allowProtocolChange:{type:Boolean},url:{},cardNumber:{},cardType:{},maskInput:{type:Boolean},showCardIcon:{type:Boolean},tags:{},maxTags:{},allowDuplicates:{type:Boolean},tagSeparators:{},suggestions:{},copyText:{},showCopyButton:{type:Boolean},copySuccessMessage:{}},emits:["update:modelValue","input","focus","blur","keydown","leading-icon-click","trailing-icon-click","trailing-button-click","update:countryCode","update:phoneNumber","country-change","update:currency","update:amount","currency-change","update:protocol","update:url","protocol-change","update:cardNumber","card-type-detected","update:tags","tag-added","tag-removed","max-tags-reached","copy-success","copy-error"],setup(h,{emit:_}){const s=h,r=_,l=e.computed(()=>s.variant||s.type||"default"),a=e.computed(()=>({size:s.size,colorStyle:s.colorStyle,state:s.state,destructive:s.destructive,required:s.required,label:s.label,hintText:s.hintText,placeholder:s.placeholder,countryCode:s.countryCode,phoneNumber:s.phoneNumber,countryOptions:s.countryOptions,trailingIcon:s.trailingIcon,tooltipText:s.tooltipText,disabled:s.disabled,readonly:s.readonly})),c=e.computed(()=>({size:s.size,colorStyle:s.colorStyle,state:s.state,destructive:s.destructive,required:s.required,label:s.label,hintText:s.hintText,placeholder:s.placeholder,cardNumber:s.cardNumber,cardType:s.cardType,maskInput:s.maskInput,showCardIcon:s.showCardIcon,trailingIcon:s.trailingIcon,disabled:s.disabled,readonly:s.readonly})),u=e.computed(()=>({size:s.size,colorStyle:s.colorStyle,state:s.state,destructive:s.destructive,required:s.required,label:s.label,hintText:s.hintText,placeholder:s.placeholder,inputType:s.inputType,modelValue:s.modelValue,leadingIcon:s.leadingIcon,trailingIcon:s.trailingIcon,tooltipText:s.tooltipText,disabled:s.disabled,readonly:s.readonly})),d=p=>{r("update:modelValue",p)},t=p=>{r("input",p)},f=p=>{r("focus",p)},y=p=>{r("blur",p)},E=p=>{r("keydown",p)},S=p=>{r("leading-icon-click",p)},m=p=>{r("trailing-icon-click",p)},P=p=>{r("update:countryCode",p)},b=p=>{r("update:phoneNumber",p)},k=p=>{r("country-change",p)},g=p=>{r("update:cardNumber",p)},w=p=>{r("card-type-detected",p)};return(p,o)=>l.value==="phone"?(e.openBlock(),e.createBlock(se,e.mergeProps({key:0},a.value,{"onUpdate:modelValue":d,"onUpdate:countryCode":P,"onUpdate:phoneNumber":b,onCountryChange:k,onInput:t,onFocus:f,onBlur:y}),null,16)):l.value==="card"?(e.openBlock(),e.createBlock(ie,e.mergeProps({key:1},c.value,{"onUpdate:modelValue":d,"onUpdate:cardNumber":g,onCardTypeDetected:w,onInput:t,onFocus:f,onBlur:y,onTrailingIconClick:m}),null,16)):(e.openBlock(),e.createBlock(le,e.mergeProps({key:2},u.value,{"onUpdate:modelValue":d,onInput:t,onFocus:f,onBlur:y,onKeydown:E,onLeadingIconClick:S,onTrailingIconClick:m}),null,16))}}),Bl=n._export_sfc(wl,[["__scopeId","data-v-5a761e6c"]]),El={name:"ModalBox",props:{isVisible:{type:Boolean,default:!0},largeModel:{type:Boolean,default:!0}},methods:{closeModal(){this.$emit("close")}}},Sl={key:0,class:"fixed z-[9998] top-0 left-0 w-full h-full bg-modalBackgroundBlur flex justify-center items-center"},Vl={class:"flex justify-center items-center"},Nl={class:"freddy-plugins-modal-header"},Tl={class:"freddy-plugins-modal-body"},ql={class:"freddy-plugins-modal-footer"};function $l(h,_,s,r,l,a){return e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[s.isVisible?(e.openBlock(),e.createElementBlock("div",Sl,[e.createElementVNode("div",Vl,[e.createElementVNode("div",{class:e.normalizeClass({"p-8 bg-background rounded-[2.5rem] overflow-hidden text-white":s.largeModel,"freddy-plugins-modal-container-large":s.largeModel})},[e.createElementVNode("div",Nl,[e.renderSlot(h.$slots,"header")]),e.createElementVNode("div",Tl,[e.renderSlot(h.$slots,"body")]),e.createElementVNode("div",ql,[e.renderSlot(h.$slots,"footer")])],2)])])):e.createCommentVNode("",!0)]),_:3})}const re=n._export_sfc(El,[["render",$l]]),Dl=e.defineComponent({__name:"InstructionsModal",props:{isVisible:{type:Boolean,required:!0}},setup(h){return(_,s)=>(e.openBlock(),e.createBlock(re,{isVisible:h.isVisible},{header:e.withCtx(()=>[...s[0]||(s[0]=[e.createElementVNode("h2",null,"Instructions",-1)])]),body:e.withCtx(()=>[...s[1]||(s[1]=[e.createElementVNode("p",null,"Instructions",-1)])]),_:1},8,["isVisible"]))}}),xl=["value","placeholder"],Al=e.defineComponent({__name:"InstructiontextArea",props:{inputValue:{},placeholder:{},height:{}},emits:["update:inputValue"],setup(h,{emit:_}){const s=h,r=_,l=e.computed(()=>s.height||"40px"),a=c=>{const u=c.target;r("update:inputValue",u.value)};return(c,u)=>(e.openBlock(),e.createElementBlock("input",{type:"text",value:c.inputValue,placeholder:c.placeholder,style:e.normalizeStyle({width:"100%",height:l.value}),onInput:a,class:"instruction-text-input","aria-label":"Instruction input"},null,44,xl))}}),Fl=n._export_sfc(Al,[["__scopeId","data-v-d4000e78"]]),Ml={class:"freddy-plugins-modal-header"},Ll={class:"freddy-plugins-modal-body"},zl=e.defineComponent({__name:"ModalOverlay",props:{modalTitle:{},headerClass:{},disableClickOutside:{type:Boolean}},emits:["close"],setup(h,{emit:_}){n.useTheme();const s=h,r=_,l=()=>{r("close")},a=()=>{s.disableClickOutside||l()};return(c,u)=>(e.openBlock(),e.createElementBlock("div",{role:"dialog","aria-modal":"true",class:"freddy-plugins-modal-overlay",onClick:a},[e.createElementVNode("div",{class:"freddy-plugins-modal-content",onClick:u[0]||(u[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("header",Ml,[e.createElementVNode("h2",{class:e.normalizeClass(["freddy-plugins-modal-title",c.headerClass])},e.toDisplayString(c.modalTitle),3),e.createElementVNode("button",{class:"freddy-plugins-modal-close",onClick:l},[e.createVNode(n.IconLightCross,{class:"freddy-plugins-modal-close-icon"})])]),e.createElementVNode("div",Ll,[e.renderSlot(c.$slots,"content")])])]))}}),ae=e.defineComponent({__name:"Spinner",props:{customClass:{}},setup(h){return n.useTheme(),(_,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-plugin-spinner",_.customClass])},null,2))}}),Rl=["placeholder","maxlength"],F=e.defineComponent({inheritAttrs:!1,__name:"SearchInput",props:{placeholder:{default:"Search here..."},showLoaderForSearch:{type:Boolean,default:!1},maxCharLimit:{default:void 0},showCloseButton:{type:Boolean,default:!1}},emits:["update:searchInput","clear"],setup(h,{emit:_}){n.useTheme();const s=e.useAttrs(),r=e.ref(null),l=e.ref(null),a=e.ref(null),c=_,u=()=>{var f;(f=l.value)==null||f.focus()},d=()=>{c("update:searchInput",r.value)},t=()=>{c("clear")};return(f,y)=>{var E;return e.openBlock(),e.createElementBlock("div",{ref_key:"dropdownRef",ref:a,class:e.normalizeClass(["freddy-search-wrapper",e.unref(s).class]),onClick:u},[e.createVNode(e.unref(n.IconSearch),{class:"freddy-search-icon"}),e.withDirectives(e.createElementVNode("input",{type:"text",id:"search-input",class:"freddy-search-input",ref_key:"searchInput",ref:l,"onUpdate:modelValue":y[0]||(y[0]=S=>r.value=S),onInput:d,placeholder:f.placeholder,maxlength:f.maxCharLimit},null,40,Rl),[[e.vModelText,r.value]]),f.showLoaderForSearch?(e.openBlock(),e.createBlock(ae,{key:0,class:"freddy-search-spinner"})):e.createCommentVNode("",!0),f.showCloseButton&&!f.showLoaderForSearch&&((E=r.value)!=null&&E.length)?(e.openBlock(),e.createBlock(n.IconCross,{key:1,class:"freddy-search-close",onClick:t})):e.createCommentVNode("",!0)],2)}}}),Ol={class:"model-dropdown-selected-content"},Hl=["src","alt"],Ul={class:"model-dropdown-placeholder"},Kl={key:0,class:"model-dropdown-menu"},jl={key:0,class:"model-dropdown-search"},Gl={class:"model-dropdown-options"},Wl=["onClick"],Zl=["src","alt"],Jl={class:"model-dropdown-option-value"},Ql={key:0,class:"model-dropdown-no-options"},Yl=e.defineComponent({__name:"ModelDropdown",props:{options:{},searchable:{type:Boolean,default:!1},searchPlaceholder:{default:"Search providers..."},modelPlaceholder:{default:"Select a model"},size:{default:"md"}},emits:["select"],setup(h,{emit:_}){const s=h,r=_,l=e.ref(!1),a=e.ref(""),c=e.ref(null),u=e.computed(()=>!s.searchable||!a.value?s.options:s.options.filter(E=>E.value.toLowerCase().includes(a.value.toLowerCase()))),d=()=>{l.value=!l.value,l.value||(a.value="")},t=()=>{l.value=!1,a.value=""},f=E=>{c.value=E,r("select",E),t()},y=E=>{E.target.closest(".model-dropdown-wrapper")||t()};return e.watch(l,E=>{E?setTimeout(()=>{document.addEventListener("click",y)},0):document.removeEventListener("click",y)}),e.onUnmounted(()=>{document.removeEventListener("click",y)}),(E,S)=>{var m,P;return e.openBlock(),e.createElementBlock("div",{class:"model-dropdown-wrapper",onKeydown:e.withKeys(t,["esc"])},[e.createElementVNode("div",{class:e.normalizeClass(["model-dropdown-trigger",[`model-dropdown-trigger--${E.size}`,{"model-dropdown-trigger--open":l.value}]]),onClick:d},[e.createElementVNode("div",Ol,[(m=c.value)!=null&&m.imageSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:c.value.imageSrc,alt:c.value.value,class:"model-dropdown-selected-image"},null,8,Hl)):e.createCommentVNode("",!0),e.createElementVNode("span",Ul,e.toDisplayString(((P=c.value)==null?void 0:P.value)||E.modelPlaceholder),1)]),l.value?(e.openBlock(),e.createBlock(n.IconChevronUp,{key:1,class:"model-dropdown-chevron"})):(e.openBlock(),e.createBlock(n.IconChevronDown,{key:0,class:"model-dropdown-chevron"}))],2),l.value?(e.openBlock(),e.createElementBlock("div",Kl,[E.searchable?(e.openBlock(),e.createElementBlock("div",jl,[e.createVNode(F,{modelValue:a.value,"onUpdate:modelValue":S[0]||(S[0]=b=>a.value=b),placeholder:E.searchPlaceholder,showCloseButton:!0},null,8,["modelValue","placeholder"])])):e.createCommentVNode("",!0),e.createElementVNode("ul",Gl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,b=>{var k;return e.openBlock(),e.createElementBlock("li",{key:b.id,class:e.normalizeClass(["model-dropdown-option",{"model-dropdown-option--selected":((k=c.value)==null?void 0:k.id)===b.id}]),onClick:g=>f(b)},[b.imageSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:b.imageSrc,alt:b.value,class:"model-dropdown-option-image"},null,8,Zl)):e.createCommentVNode("",!0),e.createElementVNode("span",Jl,e.toDisplayString(b.value),1)],10,Wl)}),128)),u.value.length===0?(e.openBlock(),e.createElementBlock("li",Ql," No providers found ")):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)],32)}}}),Xl=n._export_sfc(Yl,[["__scopeId","data-v-75f8685b"]]),es=e.defineComponent({__name:"OutputModeModal",props:{isVisible:{type:Boolean,required:!0},initialJsonContent:{type:String,default:"{}"},openaiApiKey:{type:String,default:""},openaiModel:{type:String,default:"gpt-4o-mini"},openaiOrganization:{type:String,default:""}},emits:["close","save","cancel","askAI","toggleAI"],setup(h,{emit:_}){const s=_,r=a=>{try{JSON.parse(a),s("save",a)}catch{alert("Invalid JSON format. Please fix the JSON before saving.")}},l=a=>{s("toggleAI",a)};return(a,c)=>(e.openBlock(),e.createBlock(x,{"is-visible":h.isVisible,title:"Edit response format",description:"Use a JSON schema to define the structure of the model's response format. Learn more.","initial-content":h.initialJsonContent,"openai-api-key":h.openaiApiKey,"openai-model":h.openaiModel,"openai-organization":h.openaiOrganization,onClose:c[0]||(c[0]=u=>a.$emit("close")),onSave:r,onCancel:c[1]||(c[1]=u=>a.$emit("cancel")),onAskAI:c[2]||(c[2]=u=>a.$emit("askAI",u)),onToggleAI:l},null,8,["is-visible","initial-content","openai-api-key","openai-model","openai-organization"]))}}),os={key:0,class:"freddy-pagination-nav","aria-label":"Pagination"},ts=["disabled"],ns={class:"freddy-pagination-dynamic-container"},is=["onClick","disabled"],ls=["disabled"],ss=e.defineComponent({__name:"Pagination",props:{totalItems:{type:Number,required:!0,default:0},itemsPerPage:{type:Number,required:!0,default:10},currentPage:{type:Number,required:!0,default:1}},emits:["update:currentPage"],setup(h,{emit:_}){const s=h,r=_,l=e.computed(()=>!s.totalItems||isNaN(s.totalItems)?0:Math.ceil(s.totalItems/s.itemsPerPage)),a=e.computed(()=>{const u=[],d=l.value,t=s.currentPage;if(d<=7)for(let f=1;f<=d;f++)u.push(f);else{u.push(1),t>4?u.push("..."):u.push(2,3);for(let f=Math.max(4,t-1);f<=Math.min(d-3,t+1);f++)u.push(f);t<d-4&&u.push("..."),u.push(d-2,d-1,d)}return u});function c(u){u==="..."||u===s.currentPage||typeof u=="number"&&u>=1&&u<=l.value&&r("update:currentPage",u)}return(u,d)=>l.value>0?(e.openBlock(),e.createElementBlock("nav",os,[e.createElementVNode("button",{class:e.normalizeClass(["freddy-pagination-end-button",{"freddy-pagination-hover-enabled":h.currentPage!==1}]),onClick:d[0]||(d[0]=t=>c(h.currentPage-1)),disabled:h.currentPage===1}," Previous ",10,ts),e.createElementVNode("div",ns,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,t=>(e.openBlock(),e.createElementBlock("button",{key:String(t),class:e.normalizeClass(["freddy-pagination-number-button",{active:t===h.currentPage}]),onClick:f=>c(t),disabled:t==="..."||t===h.currentPage},e.toDisplayString(t),11,is))),128)),e.createElementVNode("button",{class:e.normalizeClass(["freddy-pagination-end-button",{"freddy-pagination-hover-enabled":h.currentPage!==l.value}]),onClick:d[1]||(d[1]=t=>c(h.currentPage+1)),disabled:h.currentPage===l.value||l.value===0}," Next ",10,ls)])])):e.createCommentVNode("",!0)}}),rs=["disabled"],as=e.defineComponent({__name:"SendButton",props:{disabled:{type:Boolean},active:{type:Boolean},size:{}},setup(h){return n.useTheme(),(_,s)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["chat-bar-send-btn",{active:_.active,[`chat-bar-send-btn--${_.size}`]:!0}]),disabled:_.disabled,onClick:s[0]||(s[0]=r=>_.$emit("click"))},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.IconSend),{class:"chat-bar-send-icon"}))],10,rs))}}),cs={key:0,class:"skeleton-card"},ds={key:0,class:"skeleton-line skeleton-wave skeleton-w-32 skeleton-h-6 mb-2"},us={key:1,class:"skeleton-paragraph"},_s={key:0,class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40 mb-2"},ps={key:2,class:"skeleton-single-box"},vs={key:0,class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40 mb-2"},ms={key:3,class:"skeleton-table"},hs={key:0,class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40"},fs={class:"table-full"},gs=e.defineComponent({__name:"SkeletonLoader",props:{type:{},hasHeader:{type:Boolean},count:{}},setup(h){const _=h,{type:s,hasHeader:r=!1,count:l=5}=_;return(a,c)=>e.unref(s)==="card"?(e.openBlock(),e.createElementBlock("div",cs,[e.unref(r)?(e.openBlock(),e.createElementBlock("div",ds)):e.createCommentVNode("",!0),c[0]||(c[0]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-3-4"},null,-1)),c[1]||(c[1]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full"},null,-1)),c[2]||(c[2]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-5-6"},null,-1))])):e.unref(s)==="paragraph"?(e.openBlock(),e.createElementBlock("div",us,[e.unref(r)?(e.openBlock(),e.createElementBlock("div",_s)):e.createCommentVNode("",!0),c[3]||(c[3]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full"},null,-1)),c[4]||(c[4]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-5-6"},null,-1)),c[5]||(c[5]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-3-4"},null,-1))])):e.unref(s)==="single-box"?(e.openBlock(),e.createElementBlock("div",ps,[e.unref(r)?(e.openBlock(),e.createElementBlock("div",vs)):e.createCommentVNode("",!0),c[6]||(c[6]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full"},null,-1))])):e.unref(s)==="table"?(e.openBlock(),e.createElementBlock("div",ms,[e.unref(r)?(e.openBlock(),e.createElementBlock("div",hs)):e.createCommentVNode("",!0),e.createElementVNode("table",fs,[e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),u=>(e.openBlock(),e.createElementBlock("tr",{key:u},[...c[7]||(c[7]=[e.createElementVNode("td",{class:"td-padding"},[e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-8 skeleton-w-full"})],-1),e.createElementVNode("td",{class:"td-padding"},[e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-8 skeleton-w-full"})],-1)])]))),128))])])])):e.createCommentVNode("",!0)}}),ys={class:"freddy-plugins-slider-container"},bs={key:0,class:"freddy-plugins-slider-header"},Is={key:0,class:"freddy-plugins-slider-label-section"},ks={class:"freddy-plugins-slider-label"},Cs={key:1,class:"freddy-plugins-slider-value-badge"},Ps=["tabindex","aria-valuemin","aria-valuemax","aria-valuenow","aria-disabled","aria-label"],ws={key:1,class:"freddy-plugins-slider-hint"},Bs=e.defineComponent({__name:"Slider",props:{modelValue:{},min:{default:0},max:{default:100},step:{default:1},label:{},tooltip:{},tooltipPlacement:{default:"top"},hint:{},disabled:{type:Boolean,default:!1},showValue:{type:Boolean,default:!0},range:{type:Boolean,default:!1},rangeValue:{}},emits:["update:modelValue","update:rangeValue"],setup(h,{emit:_}){const s=h,r=_,l=e.ref(!1),a=e.ref(null),c=e.computed(()=>Math.round(s.modelValue)),u=e.computed(()=>{const b=s.max-s.min,k=s.modelValue-s.min;return Math.min(100,Math.max(0,k/b*100))}),d=e.computed(()=>u.value),t=b=>{const k=Math.round(b/s.step)*s.step;return Math.min(s.max,Math.max(s.min,k))},f=b=>{if(!a.value)return s.modelValue;const k=a.value.getBoundingClientRect(),g=Math.max(0,Math.min(1,(b-k.left)/k.width)),w=s.min+g*(s.max-s.min),p=Math.round(w/s.step)*s.step;return Math.min(s.max,Math.max(s.min,p))},y=b=>{const k=t(b);k!==s.modelValue&&r("update:modelValue",k)},E=b=>{if(s.disabled)return;b.preventDefault(),b.stopPropagation(),l.value=!0;const k=w=>{if(!l.value)return;w.preventDefault();const p=f(w.clientX);y(p)},g=()=>{l.value=!1,document.removeEventListener("mousemove",k),document.removeEventListener("mouseup",g)};document.addEventListener("mousemove",k),document.addEventListener("mouseup",g)},S=b=>{if(s.disabled)return;b.preventDefault(),b.stopPropagation(),l.value=!0;const k=w=>{!l.value||!w.touches[0]||(w.preventDefault(),y(f(w.touches[0].clientX)))},g=()=>{l.value=!1,document.removeEventListener("touchmove",k),document.removeEventListener("touchend",g)};document.addEventListener("touchmove",k),document.addEventListener("touchend",g)},m=b=>{if(s.disabled||l.value)return;b.preventDefault(),b.stopPropagation();const k=f(b.clientX);y(k)},P=b=>{if(s.disabled)return;let k=s.modelValue;switch(b.key){case"ArrowLeft":case"ArrowDown":b.preventDefault(),k=s.modelValue-s.step;break;case"ArrowRight":case"ArrowUp":b.preventDefault(),k=s.modelValue+s.step;break;case"Home":b.preventDefault(),k=s.min;break;case"End":b.preventDefault(),k=s.max;break;case"PageDown":b.preventDefault(),k=s.modelValue-s.step*10;break;case"PageUp":b.preventDefault(),k=s.modelValue+s.step*10;break;default:return}y(k)};return(b,k)=>(e.openBlock(),e.createElementBlock("div",ys,[b.label||b.showValue?(e.openBlock(),e.createElementBlock("div",bs,[b.label?(e.openBlock(),e.createElementBlock("div",Is,[e.createElementVNode("span",ks,e.toDisplayString(b.label),1),b.tooltip?(e.openBlock(),e.createBlock(T,{key:0,text:b.tooltip,placement:b.tooltipPlacement},{default:e.withCtx(()=>[e.createVNode(n.IconInfoRounded,{class:"freddy-plugins-slider-tooltip-icon"})]),_:1},8,["text","placement"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),b.showValue?(e.openBlock(),e.createElementBlock("div",Cs,e.toDisplayString(c.value),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-slider-track-container",{"freddy-plugins-slider-disabled":b.disabled}]),onClick:m,onKeydown:P,tabindex:b.disabled?-1:0,role:"slider","aria-valuemin":b.min,"aria-valuemax":b.max,"aria-valuenow":b.modelValue,"aria-disabled":b.disabled,"aria-label":b.label||"Slider"},[e.createElementVNode("div",{ref_key:"sliderTrack",ref:a,class:"freddy-plugins-slider-track-background"},null,512),e.createElementVNode("div",{class:"freddy-plugins-slider-track-progress",style:e.normalizeStyle({width:u.value+"%"})},null,4),e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-slider-thumb",{"freddy-plugins-slider-thumb-dragging":l.value,"freddy-plugins-slider-thumb-disabled":b.disabled}]),style:e.normalizeStyle({left:d.value+"%"}),onMousedown:E,onTouchstart:S},null,38)],42,Ps),b.hint?(e.openBlock(),e.createElementBlock("p",ws,e.toDisplayString(b.hint),1)):e.createCommentVNode("",!0)]))}}),Es=n._export_sfc(Bs,[["__scopeId","data-v-7f709ec1"]]),Ss={class:"freddy-plugins-snackbar-content"},Vs={class:"freddy-plugins-snackbar-left"},Ns={class:"freddy-plugins-snackbar-text"},Ts=["innerHTML"],qs=["innerHTML"],$s=["onClick"],Ds=e.defineComponent({__name:"SnackBar",setup(h){n.useTheme();const{snackQueue:_}=n.useSnackBar(),s=a=>{switch(a){case"success":return n.IconCheckInCircle;case"danger":return n.IconCross;case"info":return n.IconInfoRounded;default:return n.IconCheckInCircle}},r=e.computed(()=>{const a=_.value[_.value.length-1];if(!a)return"side70";switch(a.toastContainerSize){case"half":return"half";case"full":return"full";default:return"side70"}}),l=a=>{_.value.splice(a,1)};return(a,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-plugins-snackbar-container",`freddy-plugins-snackbar-container--${r.value}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(_),(u,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:e.normalizeClass(["freddy-plugins-snackbar",`freddy-plugins-snackbar--${u.toastType}`])},[e.createElementVNode("div",Ss,[e.createElementVNode("div",Vs,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s(u.toastType)),{class:e.normalizeClass(["freddy-plugins-snackbar-icon",[u.toastType==="info"&&"freddy-plugins-snackbar-icon--info",u.toastType==="danger"&&"freddy-plugins-snackbar-icon--danger",u.toastType==="success"&&"freddy-plugins-snackbar-icon--success"]])},null,8,["class"])),e.createElementVNode("div",Ns,[e.createElementVNode("p",{class:"freddy-plugins-snackbar-title",innerHTML:u.title},null,8,Ts),e.createElementVNode("p",{class:"freddy-plugins-snackbar-message",innerHTML:u.message},null,8,qs)])]),e.createElementVNode("button",{class:"freddy-plugins-snackbar-close-btn",onClick:t=>l(d)},[e.createVNode(n.IconLightCross,{class:"freddy-plugins-snackbar-close-icon"})],8,$s)])],2))),128))],2))}}),xs={class:"freddy-plugins-switch-slot__header"},As={key:0,class:"freddy-plugins-switch-slot__label-section"},Fs={key:0,class:"freddy-plugins-switch-slot__label"},Ms=["aria-checked","tabindex","onKeydown","disabled"],Ls={key:0,class:"freddy-plugins-switch-slot__content"},zs={key:1,class:"freddy-plugins-switch-slot__hint"},Rs=e.defineComponent({__name:"SwitchSlot",props:{modelValue:{type:Boolean},label:{},tooltip:{},tooltipPlacement:{},hint:{},disabled:{type:Boolean},variant:{},showSlotContent:{type:Boolean}},emits:["update:modelValue"],setup(h,{emit:_}){const s=h,r=_,l=a=>{a.stopPropagation(),s.disabled||r("update:modelValue",!s.modelValue)};return(a,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-plugins-switch-slot",{"freddy-plugins-switch-slot--bordered":a.variant==="bordered","freddy-plugins-switch-slot--disabled":a.disabled}])},[e.createElementVNode("div",xs,[a.label||a.tooltip?(e.openBlock(),e.createElementBlock("div",As,[a.label?(e.openBlock(),e.createElementBlock("span",Fs,e.toDisplayString(a.label),1)):e.createCommentVNode("",!0),a.tooltip?(e.openBlock(),e.createBlock(T,{key:1,text:a.tooltip,placement:a.tooltipPlacement},{default:e.withCtx(()=>[e.createVNode(n.IconInfoRounded,{class:"freddy-plugins-switch-slot__tooltip-icon"})]),_:1},8,["text","placement"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:e.normalizeClass(["freddy-plugins-switch-slot__switch",{"freddy-plugins-switch-slot__switch--on":a.modelValue}]),"aria-checked":a.modelValue,role:"switch",tabindex:a.disabled?-1:0,onClick:l,onKeydown:[e.withKeys(e.withModifiers(l,["prevent"]),["space"]),e.withKeys(e.withModifiers(l,["prevent"]),["enter"])],disabled:a.disabled},[...c[0]||(c[0]=[e.createElementVNode("span",{class:"freddy-plugins-switch-slot__track"},null,-1),e.createElementVNode("span",{class:"freddy-plugins-switch-slot__thumb"},null,-1)])],42,Ms)]),a.showSlotContent?(e.openBlock(),e.createElementBlock("div",Ls,[e.renderSlot(a.$slots,"content",{},void 0,!0)])):e.createCommentVNode("",!0),a.hint?(e.openBlock(),e.createElementBlock("p",zs,e.toDisplayString(a.hint),1)):e.createCommentVNode("",!0)],2))}}),Os=n._export_sfc(Rs,[["__scopeId","data-v-edc0859a"]]),Hs={class:"freddy-plugin-nav-bar"},Us=["onClick"],Ks=e.defineComponent({__name:"TabList",props:{tabList:{},currentTab:{default:0},activeStateType:{},orientation:{},fullWidth:{type:Boolean}},emits:["tabSwitch"],setup(h,{emit:_}){const s=h,r=_,l=e.ref(s.currentTab),a=c=>{l.value!==c.id&&(l.value=c.id,r("tabSwitch",c.id))};return(c,u)=>(e.openBlock(),e.createElementBlock("div",Hs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.tabList,(d,t)=>(e.openBlock(),e.createElementBlock("button",{class:"freddy-plugin-tab-list-menu-button",key:t,onClick:f=>a(d)},[e.createTextVNode(e.toDisplayString(d.title)+" ",1),e.createElementVNode("span",{class:e.normalizeClass({"freddy-plugin-active-tab":l.value===d.id})},null,2)],8,Us))),128))]))}}),js={class:"freddy-plugins-toast-wrapper"},Gs={class:"freddy-plugins-toast-icon-wrapper"},Ws={class:"freddy-plugins-toast-message"},Zs=["onClick"],Js=e.defineComponent({__name:"ToastMessage",setup(h){const{toastQueue:_}=n.useToast(),s={success:"freddy-plugins-toast-success",danger:"freddy-plugins-toast-danger",info:"freddy-plugins-toast-info"},r=c=>s[c],l=c=>{switch(c){case"success":return n.IconTick;case"danger":return n.IconCross;case"info":return n.IconInfoRounded;default:return n.IconTick}},a=c=>{_.value.splice(c,1)};return(c,u)=>(e.openBlock(),e.createElementBlock("div",js,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(_),(d,t)=>(e.openBlock(),e.createElementBlock("div",{key:t,class:e.normalizeClass(["freddy-plugins-toast-item",r(d.toastType)])},[e.createElementVNode("div",Gs,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l(d.toastType)),{class:"freddy-plugins-toast-icon"}))]),e.createElementVNode("span",Ws,e.toDisplayString(d.message),1),e.createElementVNode("button",{class:"freddy-plugins-toast-close-button",onClick:f=>a(t)},[e.createVNode(e.unref(n.IconCross),{class:"freddy-plugins-toast-close-icon"})],8,Zs)],2))),128))]))}}),Qs=["aria-label"],Ys=["innerHTML"],Xs={key:1},er=e.defineComponent({__name:"TooltipV2",props:{text:{},placement:{default:"top"},html:{type:Boolean,default:!1},contentClass:{},delay:{default:200},hideDelay:{default:0}},setup(h){const _=h,s=e.ref(!1),r=e.ref(!1),l=e.ref(null);let a=null,c=null;const u=()=>{c&&(clearTimeout(c),c=null),a&&clearTimeout(a),a=setTimeout(()=>{if(l.value){const y=l.value.getBoundingClientRect();r.value=y.top<150}s.value=!0},_.delay)},d=()=>{a&&(clearTimeout(a),a=null),c=setTimeout(()=>{s.value=!1},_.hideDelay)},t=()=>{u()},f=()=>{d()};return(y,E)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tooltipWrapper",ref:l,class:"freddy-plugins-tooltip-v2-wrapper",onMouseenter:u,onMouseleave:d,onFocusin:t,onFocusout:f,tabindex:"0"},[e.renderSlot(y.$slots,"default",{},void 0,!0),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["freddy-plugins-tooltip-v2-content",[y.placement,r.value?"force-bottom":"",y.contentClass]]),role:"tooltip","aria-label":y.text},[e.renderSlot(y.$slots,"content",{},()=>[y.html?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:y.text},null,8,Ys)):(e.openBlock(),e.createElementBlock("span",Xs,e.toDisplayString(y.text),1))],!0)],10,Qs)):e.createCommentVNode("",!0)]),_:3})],544))}}),or=n._export_sfc(er,[["__scopeId","data-v-55872ec8"]]);function tr(h={}){const{logErrors:_=!0,throwOnCritical:s=!1,maxRetries:r=3}=h,l=e.ref([]),a=e.ref(!1),c=e.ref(0),u=e.computed(()=>l.value.length>0),d=e.computed(()=>l.value[l.value.length-1]||null),t=(P,b)=>{const k={message:P instanceof Error?P.message:String(P),stack:P instanceof Error?P.stack:void 0,timestamp:new Date().toISOString(),context:{...b,retryCount:c.value,userAgent:typeof navigator<"u"?navigator.userAgent:"Unknown"}};if(P&&typeof P=="object"&&"status"in P&&(k.code=P.status),l.value.push(k),_&&process.env.NODE_ENV,s&&m(P))throw P;return k},f=async(P,b)=>{a.value=!0;try{const k=await P();return c.value=0,{data:k,error:null}}catch(k){return{data:null,error:t(k,b)}}finally{a.value=!1}},y=async(P,b)=>{let k=null;for(let g=1;g<=r;g++){c.value=g-1;const w=await f(P,{...b,attempt:g,maxRetries:r});if(w.data!==null)return w;if(k=w.error,k!=null&&k.code&&typeof k.code=="number"&&k.code>=400&&k.code<500)break;g<r&&await new Promise(p=>setTimeout(p,Math.pow(2,g)*1e3))}return{data:null,error:k}},E=()=>{l.value=[],c.value=0},S=P=>{P>=0&&P<l.value.length&&l.value.splice(P,1)},m=P=>{if(P instanceof Error){if(P.name==="NetworkError"||P.name==="TypeError")return!1;if(P.name==="SyntaxError")return!0}return P&&typeof P=="object"&&"status"in P?P.status>=500:!1};return{errors:e.computed(()=>l.value),hasErrors:u,latestError:d,isLoading:e.computed(()=>a.value),retryCount:e.computed(()=>c.value),handleError:t,handleAsync:f,retryAsync:y,clearErrors:E,clearError:S,isCriticalError:m}}function nr(h={}){const{enableMetrics:_=process.env.NODE_ENV==="development",trackMemory:s=!1,sampleRate:r=.1}=h,l=e.ref([]),a=e.ref(!1),c=e.ref(0),u=e.computed(()=>l.value.length===0?0:l.value.reduce((p,o)=>p+o.renderTime,0)/l.value.length),d=e.computed(()=>l.value.length===0?0:Math.max(...l.value.map(w=>w.renderTime))),t=w=>{!_||Math.random()>r||(a.value=!0,c.value=performance.now(),w&&process.env.NODE_ENV)},f=(w,p=1)=>{if(!a.value||!_)return;const C={renderTime:performance.now()-c.value,componentCount:p,timestamp:new Date().toISOString()};if(s&&"memory"in performance){const I=performance.memory;C.memoryUsage=I.usedJSHeapSize}return l.value.push(C),l.value.length>100&&l.value.shift(),a.value=!1,w&&process.env.NODE_ENV,C},y=async(w,p)=>{t(p);try{const o=await w(),v=f(p)||{renderTime:0,componentCount:1,timestamp:new Date().toISOString()};return{result:o,metrics:v}}catch(o){throw f(p),o}},E=(w,p)=>{let o;return(...v)=>{clearTimeout(o),o=setTimeout(()=>w(...v),p)}},S=(w,p)=>{let o;return(...v)=>{o||(w(...v),o=!0,setTimeout(()=>o=!1,p))}},m=(w,p=5e3)=>{"requestIdleCallback"in window?window.requestIdleCallback(w,{timeout:p}):setTimeout(w,0)},P=async(w,p=0)=>(p>0&&await new Promise(o=>setTimeout(o,p)),new Promise(o=>{m(async()=>{try{const v=await w();o(v)}catch(v){throw v}})})),b=(w,p,o)=>{const v=Math.ceil(o/p),C=Math.ceil(v*.5);return I=>{const i=Math.max(0,Math.floor(I/p)-C),V=Math.min(w.length,i+v+C*2);return{visibleItems:w.slice(i,V),startIndex:i,endIndex:V,totalHeight:w.length*p,offsetY:i*p}}},k=()=>{l.value=[]},g=()=>({totalMeasurements:l.value.length,averageRenderTime:u.value,maxRenderTime:d.value,recentMetrics:l.value.slice(-10)});return _&&process.env.NODE_ENV==="development"&&e.onMounted(()=>{t("Component Mount"),e.nextTick(()=>{f("Component Mount")})}),{metrics:e.computed(()=>l.value),isTracking:e.computed(()=>a.value),averageRenderTime:u,maxRenderTime:d,startTracking:t,endTracking:f,measureAsync:y,debounce:E,throttle:S,scheduleWork:m,lazyLoad:P,createVirtualList:b,clearMetrics:k,getSummary:g}}exports.ConfirmationModal=n._sfc_main;exports.DeleteConfirmationModal=n._sfc_main$1;exports.IconAddFileSystem=n.IconAddFileSystem;exports.IconAddPeople=n.IconAddPeople;exports.IconAitronos=n.IconAitronos;exports.IconApple=n.IconApple;exports.IconApplePay=n.IconApplePay;exports.IconArrowDown=n.IconArrowDown;exports.IconArrowLeft=n.IconArrowLeft;exports.IconArrowUp=n.IconArrowUp;exports.IconBadgeCheck=n.IconBadgeCheck;exports.IconBroom=n.IconBroom;exports.IconBuildings=n.IconBuildings;exports.IconCalendarWithTickInside=n.IconCalendarWithTickInside;exports.IconCallNotAllowed=n.IconCallNotAllowed;exports.IconCardPay=n.IconCardPay;exports.IconCaution=n.IconCaution;exports.IconChangeLog=n.IconChangeLog;exports.IconCheckCircleFill=n.IconCheckCircleFill;exports.IconCheckInCircle=n.IconCheckInCircle;exports.IconCheckRounded=n.IconCheckRounded;exports.IconChevronDown=n.IconChevronDown;exports.IconChevronLeft=n.IconChevronLeft;exports.IconChevronRight=n.IconChevronRight;exports.IconChevronUp=n.IconChevronUp;exports.IconCircledCheck=n.IconCircledCheck;exports.IconClock=n.IconClock;exports.IconClosedEnvelope=n.IconClosedEnvelope;exports.IconCloudUpload=n.IconCloudUpload;exports.IconConnectorConfluence=n.IconConnectorConfluence;exports.IconConnectorFigma=n.IconConnectorFigma;exports.IconConnectorFreshDesk=n.IconConnectorFreshDesk;exports.IconConnectorGitHub=n.IconConnectorGitHub;exports.IconConnectorJira=n.IconConnectorJira;exports.IconConnectorLinear=n.IconConnectorLinear;exports.IconConnectorNotion=n.IconConnectorNotion;exports.IconConnectorSlack=n.IconConnectorSlack;exports.IconConnectorZapier=n.IconConnectorZapier;exports.IconCopy=n.IconCopy;exports.IconCross=n.IconCross;exports.IconCrossCircleFill=n.IconCrossCircleFill;exports.IconCrossInCircle=n.IconCrossInCircle;exports.IconCurrentTick=n.IconCurrentTick;exports.IconDataUpload=n.IconDataUpload;exports.IconDelete=n.IconDelete;exports.IconDeleteFillRed=n.IconDeleteFillRed;exports.IconDialingPhone=n.IconDialingPhone;exports.IconDisabledAlert=n.IconDisabledAlert;exports.IconDocumentation=n.IconDocumentation;exports.IconDownload=n.IconDownload;exports.IconDribbble=n.IconDribbble;exports.IconDropdownArrow=n.IconDropdownArrow;exports.IconEdit=n.IconEdit;exports.IconEditLinePath=n.IconEditLinePath;exports.IconEllipse=n._sfc_main$2;exports.IconExcelThumbnail=n.IconExcelThumbnail;exports.IconEye=n.IconEye;exports.IconFacebook=n.IconFacebook;exports.IconFigma=n.IconFigma;exports.IconFile=n.IconFile;exports.IconFileSystem=n.IconFileSystem;exports.IconFileUpload=n.IconFileUpload;exports.IconFilter=n.IconFilter;exports.IconFolder=n.IconFolder;exports.IconFreddyHub=n.IconFreddyHub;exports.IconFreddyHubLogo=n.IconFreddyHubLogo;exports.IconFreddyHubNewLogo=n.IconFreddyHubNewLogo;exports.IconFreddyHubTitle=n._sfc_main$3;exports.IconFreddySmall=n.IconFreddySmall;exports.IconGlobExpand=n.IconGlobExpand;exports.IconGlobe=n.IconGlobe;exports.IconGoogle=n.IconGoogle;exports.IconHollowCircle=n.IconHollowCircle;exports.IconHome=n.IconHome;exports.IconInfoRounded=n.IconInfoRounded;exports.IconInvalidInvoice=n.IconInvalidInvoice;exports.IconInvoice=n.IconInvoice;exports.IconInvoiceSwitch=n.IconInvoiceSwitch;exports.IconLapTableBottom=n.IconLapTableBottom;exports.IconLense=n.IconLense;exports.IconLightCross=n.IconLightCross;exports.IconLink04=n.IconLink04;exports.IconLoadingError=n.IconLoadingError;exports.IconLoadingOrg=n.IconLoadingOrg;exports.IconLocationWithCircleIn=n.IconLocationWithCircleIn;exports.IconLock=n.IconLock;exports.IconMarketPlace=n.IconMarketPlace;exports.IconMaximize=n.IconMaximize;exports.IconMicrophone=n.IconMicrophone;exports.IconMutedMicrophone=n.IconMutedMicrophone;exports.IconNewNotification=n.IconNewNotification;exports.IconNewTab=n.IconNewTab;exports.IconNotification=n.IconNotification;exports.IconOpenBook=n.IconOpenBook;exports.IconPaperAirPlane=n.IconPaperAirPlane;exports.IconPauseCircle=n.IconPauseCircle;exports.IconPdfThumbnail=n.IconPdfThumbnail;exports.IconPenEdit=n.IconPenEdit;exports.IconPencil=n.IconPencil;exports.IconPeopleHub=n.IconPeopleHub;exports.IconPersonCircle=n.IconPersonCircle;exports.IconPits=n.IconPits;exports.IconPlay=n.IconPlay;exports.IconPlus=n.IconPlus;exports.IconPolygonDown=n.IconPolygonDown;exports.IconPresentation=n.IconPresentation;exports.IconProgressBase=n.IconProgressBase;exports.IconProgressComplete=n.IconProgressComplete;exports.IconProgressGoing=n.IconProgressGoing;exports.IconPurpose=n.IconPurpose;exports.IconPurseCircleFill=n.IconPurseCircleFill;exports.IconQuestion=n.IconQuestion;exports.IconRadio=n.IconRadio;exports.IconRadioFill=n.IconRadioFill;exports.IconRefresh=n.IconRefresh;exports.IconRevertedTriangle=n.IconRevertedTriangle;exports.IconRobotScreen=n.IconRobotScreen;exports.IconRoundTick=n.IconRoundTick;exports.IconSearch=n.IconSearch;exports.IconSearchOptimised=n.IconSearchOptimised;exports.IconSectionHide=n.IconSectionHide;exports.IconSend=n.IconSend;exports.IconSettings=n.IconSettings;exports.IconSettingsBold=n.IconSettingsBold;exports.IconSize=n.IconSize;exports.IconSliderKnobs=n.IconSliderKnobs;exports.IconSortIdle=n.IconSortIdle;exports.IconSparkle=n.IconSparkle;exports.IconSpotlio=n.IconSpotlio;exports.IconStar=n.IconStar;exports.IconStatistics=n.IconStatistics;exports.IconStopChat=n.IconStopChat;exports.IconStreamLineHub=n.IconStreamLineHub;exports.IconStreamLineHubNewLogo=n.IconStreamLineHubNewLogo;exports.IconSun=n.IconSun;exports.IconSwap=n.IconSwap;exports.IconText=n.IconText;exports.IconTextThumbnail=n.IconTextThumbnail;exports.IconThinDocument=n.IconThinDocument;exports.IconThinFile=n.IconThinFile;exports.IconThumbsDown=n.IconThumbsDown;exports.IconTick=n.IconTick;exports.IconUser=n.IconUser;exports.IconVerticalDots=n.IconVerticalDots;exports.IconVideoCamera=n.IconVideoCamera;exports.IconWarningOctal=n.IconWarningOctal;exports.IconX=n.IconX;exports.IconZip=n._sfc_main$4;exports.aiResponseToChatMessage=n.aiResponseToChatMessage;exports.calculatePercentage=n.calculatePercentage;exports.cloneDeepSafe=n.cloneDeepSafe;exports.copyToClipboard=n.copyToClipboard;exports.createChangesObject=n.createChangesObject;exports.daysInMonth=n.daysInMonth;exports.debounce=n.debounce;exports.deepEqual=n.deepEqual;exports.defaultImageSrc=n.defaultImageSrc;exports.extractStats=n.extractStats;exports.fileSizeFormatter=n.fileSizeFormatter;exports.fillMissingDays=n.fillMissingDays;exports.formatDate=n.formatDate;exports.formatDateToLocaleString=n.formatDateToLocaleString;exports.formatLastUsedDate=n.formatLastUsedDate;exports.getDatesForMonth=n.getDatesForMonth;exports.getDaysInMonth=n.getDaysInMonth;exports.getDisplayContent=n.getDisplayContent;exports.getFileNameFromUrl=n.getFileNameFromUrl;exports.getShortMonthName=n.getShortMonthName;exports.hasOverflow=n.hasOverflow;exports.hasTextImprovements=n.hasTextImprovements;exports.interpolateColor=n.interpolateColor;exports.isValidAIResponse=n.isValidAIResponse;exports.openConfirmBoxModal=n.openConfirmBoxModal;exports.openDeleteConfirmModal=n.openDeleteConfirmModal;exports.parseAITextResponse=n.parseAITextResponse;exports.parseApiResponse=n.parseApiResponse;exports.readableDateFormat=n.readableDateFormat;exports.scrollToBottom=n.scrollToBottom;exports.scrollToElement=n.scrollToElement;exports.useSnackBar=n.useSnackBar;exports.useToast=n.useToast;exports.AdvancedModal=Te;exports.AnimeSpaceman=we;exports.AssistantField=Y;exports.AssistantList=He;exports.AssistantsHeader=eo;exports.AvatarChoosing=X;exports.AvatarList=ao;exports.BaseButton=j;exports.BaseInput=A;exports.BaseTabButton=ee;exports.CardInput=ie;exports.ChooseAssistantAvatar=No;exports.CodeBlock=bn;exports.CustomCheckbox=Bn;exports.DefaultInput=le;exports.Descriptions=xi;exports.DiffTextarea=zi;exports.Dropdown=Zi;exports.EditFeaturedExcerptModal=x;exports.EmailCodeVerification=rl;exports.IconStyleDirective=O;exports.InputField=Bl;exports.InstructionsModal=Dl;exports.InstructiontextArea=Fl;exports.ModalBox=re;exports.ModalOverlay=zl;exports.ModelDropdown=Xl;exports.OutputModeModal=es;exports.Pagination=ss;exports.PhoneInput=se;exports.RulesManagement=pt;exports.SearchInput=F;exports.SendButton=as;exports.SimpleChatInterface=oe;exports.SkeletonLoader=gs;exports.Slider=Es;exports.SnackBar=Ds;exports.SocialButtons=gn;exports.Spinner=ae;exports.Switch=ne;exports.SwitchSlot=Os;exports.TabList=Ks;exports.TextAreaInputField=te;exports.ToastMessage=Js;exports.Tooltip=T;exports.TooltipV2=or;exports.VectorFrame=Ct;exports.VectorSection=Ut;exports.VoiceList=Zt;exports.VoiceSelection=K;exports.default=ke;exports.frSanitizePlugin=Ce;exports.iconStylePlugin=Pe;exports.useErrorHandler=tr;exports.usePerformance=nr;exports.vFrSanitize=H;
79
+ User request: ${h}`:h,t={model:"gpt-4o-mini",input:[{role:"system",content:this.getSmartSystemPrompt()},{role:"user",content:d}],temperature:.7},I=await fetch(`${this.baseUrl}/responses`,{method:"POST",headers:{Authorization:`Bearer ${this.apiKey}`,"Content-Type":"application/json"},body:JSON.stringify(t)});if(!I.ok)return{success:!1,error:((o=(await I.json().catch(()=>({}))).error)==null?void 0:o.message)||`API request failed with status ${I.status}: ${I.statusText}`};const B=(u=(a=(c=(s=(await I.json()).output)==null?void 0:s[0])==null?void 0:c.content)==null?void 0:a[0])==null?void 0:u.text;return B?this.processResponse(B,h,i):{success:!1,error:"No response received from AI"}}catch(d){return{success:!1,error:d instanceof Error?d.message:"An unexpected error occurred"}}}isConfigured(){return!!this.apiKey}getStatus(){var h;return{configured:this.isConfigured(),keyLength:(h=this.apiKey)==null?void 0:h.length}}}const D=new Bt("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"),St={class:"freddy-plugins-simple-chat-interface"},Et={class:"freddy-plugins-messages-list"},qt={key:0,class:"freddy-plugins-user-message-container"},Nt={class:"freddy-plugins-user-bubble"},Vt={class:"freddy-plugins-user-actions"},Tt={class:"freddy-plugins-action-btn",title:"Copy"},Dt={class:"freddy-plugins-action-btn",title:"Edit"},xt={key:1,class:"freddy-plugins-assistant-message-container"},Ft={class:"freddy-plugins-assistant-content"},At={class:"freddy-plugins-assistant-text"},Lt={key:0,class:"freddy-plugins-changes-card"},Mt={class:"freddy-plugins-changes-header"},Rt={class:"freddy-plugins-header-left"},zt={class:"freddy-plugins-change-title"},Ht={key:0,class:"freddy-plugins-stat-added"},Ot={key:1,class:"freddy-plugins-stat-removed"},Ut={class:"freddy-plugins-changes-content"},Kt={class:"freddy-plugins-content-description"},jt={key:0,class:"freddy-plugins-content-actions"},Gt=["onClick"],Wt=["onClick"],Zt={key:1,class:"freddy-plugins-applied-label"},Jt={class:"freddy-plugins-assistant-actions"},Qt={class:"freddy-plugins-action-btn",title:"Refresh"},Yt={class:"freddy-plugins-action-btn",title:"Copy"},Xt={class:"freddy-plugins-action-btn",title:"Thumbs down"},er={key:0,class:"freddy-plugins-processing-indicator"},or={class:"freddy-plugins-chat-input-area"},nr={class:"freddy-plugins-folder-btn"},tr=["placeholder","onKeydown"],rr=["disabled"],oe=e.defineComponent({__name:"SimpleChatInterface",props:{placeholder:{},messages:{},enableAI:{type:Boolean},openaiApiKey:{},textBoxContent:{}},emits:["send","acceptChanges","denyChanges","textReplacement","textCompletion"],setup(f,{expose:h,emit:i}){const o=f,s=i,c=e.ref(""),a=e.ref(null),u=e.ref(null),d=e.ref(o.messages||[]),t=e.ref(!1);o.openaiApiKey&&D.setApiKey(o.openaiApiKey),e.watch(()=>o.messages,n=>{n&&(d.value=n,k())}),e.watch(()=>o.openaiApiKey,n=>{n&&D.setApiKey(n)});const I=n=>{switch(n){case"replace":return"Text Replacement";case"complete":return"Text Completion";case"chat":return"AI Response";default:return"Text Improvement"}},y=n=>{switch(n){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"}},B=async n=>{var m,P;if(!D.isConfigured()){const C={id:Date.now().toString(),content:"AI service is not configured. Please provide an OpenAI API key.",sender:"assistant",timestamp:new Date};d.value.push(C),k();return}t.value=!0;try{const C=await D.askAI(n,o.textBoxContent);if(C.success&&C.content){const r={id:Date.now().toString(),content:C.content,sender:"assistant",timestamp:new Date,applied:!1,changes:C.hasChanges?{title:C.changeTitle||I(C.action),description:C.changeDescription||y(C.action),added:((m=C.stats)==null?void 0:m.added)||0,removed:((P=C.stats)==null?void 0:P.removed)||0,data:{originalText:o.textBoxContent,improvedText:C.improvedText||C.content,action:C.action}}:void 0};d.value.push(r),k()}else{const r={id:Date.now().toString(),content:C.error||"Failed to process your request. Please try again.",sender:"assistant",timestamp:new Date};d.value.push(r),k()}}catch{const r={id:Date.now().toString(),content:"An unexpected error occurred while processing your request.",sender:"assistant",timestamp:new Date};d.value.push(r),k()}finally{t.value=!1}},S=async()=>{const n=c.value.trim();if(!n)return;const m={id:Date.now().toString(),content:n,sender:"user",timestamp:new Date};d.value.push(m),s("send",n),c.value="",$(),k(),o.enableAI&&await B(n)},v=()=>{c.value+=`
80
+ `,$()},$=()=>{e.nextTick(()=>{u.value&&(u.value.style.height="auto",u.value.style.height=Math.min(u.value.scrollHeight,120)+"px")})},k=()=>{e.nextTick(()=>{a.value&&(a.value.scrollTop=a.value.scrollHeight)})},b=n=>{s("acceptChanges",n)},g=n=>{n.changes&&(n.changes=void 0),s("denyChanges",n)};return h({addAIResponse:(n,m)=>{const P={id:Date.now().toString(),content:n,sender:"assistant",timestamp:new Date,changes:m};d.value.push(P),k()},addAIResponseFromApi:n=>{const m=l.parseApiResponse(n),P=l.getDisplayContent(m),C=l.createChangesObject(m),r={id:Date.now().toString(),content:P,sender:"assistant",timestamp:new Date,applied:!1,changes:C};d.value.push(r),k()}}),(n,m)=>(e.openBlock(),e.createElementBlock("div",St,[e.createElementVNode("div",{ref_key:"messagesContainer",ref:a,class:"freddy-plugins-chat-messages"},[e.createElementVNode("div",Et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,P=>(e.openBlock(),e.createElementBlock("div",{key:P.id,class:e.normalizeClass(["freddy-plugins-message",P.sender])},[P.sender==="user"?(e.openBlock(),e.createElementBlock("div",qt,[e.createElementVNode("div",Nt,e.toDisplayString(P.content),1),e.createElementVNode("div",Vt,[e.createElementVNode("button",Tt,[e.createVNode(e.unref(l.IconCopy),{class:"freddy-plugins-action-icon"})]),e.createElementVNode("button",Dt,[e.createVNode(e.unref(l.IconEdit),{class:"freddy-plugins-action-icon"})])])])):(e.openBlock(),e.createElementBlock("div",xt,[e.createElementVNode("div",Ft,[e.createElementVNode("p",At,e.toDisplayString(P.content),1),P.changes?(e.openBlock(),e.createElementBlock("div",Lt,[e.createElementVNode("div",Mt,[e.createElementVNode("div",Rt,[e.createVNode(e.unref(l.IconFile),{class:"freddy-plugins-building-icon"}),e.createElementVNode("span",zt,e.toDisplayString(P.changes.title||"Instructions"),1),P.changes.added>0?(e.openBlock(),e.createElementBlock("span",Ht,"+"+e.toDisplayString(P.changes.added),1)):e.createCommentVNode("",!0),P.changes.removed>0?(e.openBlock(),e.createElementBlock("span",Ot,"-"+e.toDisplayString(P.changes.removed),1)):e.createCommentVNode("",!0),m[1]||(m[1]=e.createElementVNode("span",{class:"freddy-plugins-changes-applied"},"Changes applied",-1))])]),e.createElementVNode("div",Ut,[m[5]||(m[5]=e.createElementVNode("div",{class:"freddy-plugins-content-header"},[e.createElementVNode("span",{class:"freddy-plugins-content-title"},"Instructions")],-1)),e.createElementVNode("p",Kt,e.toDisplayString(P.changes.description),1),P.applied?(e.openBlock(),e.createElementBlock("div",Zt,[e.createVNode(e.unref(l.IconCheckRounded),{class:"freddy-plugins-applied-icon"}),m[4]||(m[4]=e.createTextVNode(" Applied ",-1))])):(e.openBlock(),e.createElementBlock("div",jt,[e.createElementVNode("button",{class:"freddy-plugins-accept-btn",onClick:C=>b(P)},[e.createVNode(e.unref(l.IconCheckRounded),{class:"freddy-plugins-btn-icon"}),m[2]||(m[2]=e.createTextVNode(" Accept ",-1))],8,Gt),e.createElementVNode("button",{class:"freddy-plugins-deny-btn",onClick:C=>g(P)},[e.createVNode(e.unref(l.IconCross),{class:"freddy-plugins-btn-icon"}),m[3]||(m[3]=e.createTextVNode(" Deny ",-1))],8,Wt)]))])])):e.createCommentVNode("",!0),e.createElementVNode("div",Jt,[e.createElementVNode("button",Qt,[e.createVNode(e.unref(l.IconRefresh),{class:"freddy-plugins-action-icon"})]),e.createElementVNode("button",Yt,[e.createVNode(e.unref(l.IconCopy),{class:"freddy-plugins-action-icon"})]),e.createElementVNode("button",Xt,[e.createVNode(e.unref(l.IconThumbsDown),{class:"freddy-plugins-action-icon"})])])])]))],2))),128))]),t.value?(e.openBlock(),e.createElementBlock("div",er,[...m[6]||(m[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",or,[e.createElementVNode("button",nr,[e.createVNode(e.unref(l.IconFolder),{class:"freddy-plugins-folder-icon"})]),e.withDirectives(e.createElementVNode("textarea",{ref_key:"inputRef",ref:u,"onUpdate:modelValue":m[0]||(m[0]=P=>c.value=P),placeholder:n.placeholder||"Type here...",class:"freddy-plugins-chat-input",rows:"1",onKeydown:[e.withKeys(e.withModifiers(S,["exact","prevent"]),["enter"]),e.withKeys(e.withModifiers(v,["shift","exact"]),["enter"])],onInput:$},null,40,tr),[[e.vModelText,c.value]]),e.createElementVNode("button",{class:"freddy-plugins-send-button",disabled:!c.value.trim(),onClick:S},[e.createVNode(e.unref(l.IconPaperAirPlane),{class:"freddy-plugins-send-icon"})],8,rr)])]))}}),sr={class:"freddy-plugins-edit-excerpt-modal-content"},ir={class:"freddy-plugins-edit-excerpt-modal-header"},lr={class:"freddy-plugins-edit-excerpt-modal-header-content"},cr={class:"freddy-plugins-edit-excerpt-modal-icon"},ar={class:"freddy-plugins-edit-excerpt-modal-text"},dr={class:"freddy-plugins-edit-excerpt-modal-title"},ur={class:"freddy-plugins-edit-excerpt-modal-subtitle"},hr={class:"freddy-plugins-edit-excerpt-modal-textarea-section"},pr={class:"freddy-plugins-edit-excerpt-modal-footer"},mr={class:"freddy-plugins-edit-excerpt-modal-footer-content"},vr={key:0,class:"freddy-plugins-edit-excerpt-modal-ai-container"},fr=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(f,{emit:h}){const i=f,o=h,s=e.ref(i.initialContent),c=e.ref(!1),a=e.ref([]),u=e.ref(null);e.watch(()=>i.initialContent,g=>{s.value=g});const d=()=>{c.value=!1,a.value=[],o("close")},t=()=>{o("save",s.value)},I=()=>{c.value=!1,a.value=[],o("cancel")},y=()=>{c.value=!0,o("toggleAI",c.value),o("askAI",s.value)},B=()=>{c.value=!1,o("toggleAI",c.value)},S=async g=>{},v=g=>{g.changes&&g.changes.data&&g.changes.data.improvedText&&(s.value,s.value=g.changes.data.improvedText,g.applied=!0)},$=g=>{},k=g=>{},b=g=>{};return(g,w)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[f.isVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"freddy-plugins-edit-excerpt-modal-overlay",onClick:e.withModifiers(d,["self"])},[e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-edit-excerpt-modal-container",{"ai-active":c.value}])},[e.createElementVNode("div",sr,[e.createElementVNode("div",ir,[e.createElementVNode("div",lr,[e.createElementVNode("div",cr,[e.createVNode(e.unref(l.IconEditLinePath),{class:"freddy-plugins-edit-excerpt-edit-icon","center-distance":36,"circle-gap":44,"show-circles":!0})]),e.createElementVNode("div",ar,[e.createElementVNode("h2",dr,e.toDisplayString(f.title),1),e.createElementVNode("p",ur,e.toDisplayString(f.description),1)])]),e.createElementVNode("button",{class:"freddy-plugins-edit-excerpt-modal-close-btn",style:e.normalizeStyle({right:c.value?"52px":"16px"}),onClick:d,"aria-label":"Close modal"},[e.createVNode(e.unref(l.IconCross),{class:"freddy-plugins-edit-excerpt-modal-close-icon"})],4),c.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:"freddy-plugins-edit-excerpt-modal-close-btn",style:{right:"16px"},onClick:B,"aria-label":"Hide AI"},[e.createVNode(l.IconSectionHide,{class:"freddy-plugins-edit-excerpt-hide-section-icon"})])):e.createCommentVNode("",!0),w[1]||(w[1]=e.createElementVNode("div",{class:"freddy-plugins-edit-excerpt-modal-header-spacing"},null,-1))]),e.createElementVNode("div",hr,[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":w[0]||(w[0]=p=>s.value=p),class:"freddy-plugins-edit-excerpt-modal-textarea",placeholder:"The text thats needed",rows:"12"},null,512),[[e.vModelText,s.value]])]),e.createElementVNode("div",pr,[e.createElementVNode("div",mr,[c.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,class:"freddy-plugins-edit-excerpt-modal-ai-btn",onClick:y},[e.createVNode(e.unref(l.IconSparkle),{class:"freddy-plugins-edit-excerpt-modal-ai-icon"}),w[2]||(w[2]=e.createElementVNode("span",{class:"freddy-plugins-edit-excerpt-modal-ai-text"}," Ask AI ",-1))])),e.createElementVNode("div",{class:"freddy-plugins-edit-excerpt-modal-action-buttons"},[e.createElementVNode("button",{class:"freddy-plugins-edit-excerpt-modal-cancel-btn",onClick:I}," Cancel "),e.createElementVNode("button",{class:"freddy-plugins-edit-excerpt-modal-save-btn",onClick:t}," Save changes ")])])])]),c.value?(e.openBlock(),e.createElementBlock("div",vr,[e.createVNode(oe,{ref_key:"chatRef",ref:u,placeholder:"Type here...",messages:a.value,"enable-a-i":!0,"openai-api-key":f.openaiApiKey,"text-box-content":s.value,onSend:S,onAcceptChanges:v,onDenyChanges:$,onTextReplacement:k,onTextCompletion:b},null,8,["messages","openai-api-key","text-box-content"])])):e.createCommentVNode("",!0)],2)])):e.createCommentVNode("",!0)]),_:1}))}}),x=l._export_sfc(fr,[["__scopeId","data-v-5aacf574"]]),Ir={class:"freddy-plugins-textarea-input-field-wrapper"},gr={class:"freddy-plugins-textarea-input-container"},yr={class:"freddy-plugins-textarea-header"},kr={class:"freddy-plugins-textarea-label-wrapper"},Cr={class:"freddy-plugins-textarea-label-container"},br={key:0,class:"freddy-plugins-textarea-required"},Pr={class:"freddy-plugins-textarea-input-wrapper"},$r=["placeholder","disabled","readonly"],wr={key:1,class:"freddy-plugins-textarea-diff-container"},_r={class:"freddy-plugins-textarea-diff-content"},Br={class:"freddy-plugins-textarea-diff-block freddy-plugins-textarea-diff-block--old"},Sr={class:"freddy-plugins-textarea-diff-block freddy-plugins-textarea-diff-block--new"},Er={key:2,class:"freddy-plugins-textarea-tags-container"},qr={class:"freddy-plugins-textarea-tags"},Nr={class:"freddy-plugins-textarea-tag-content"},Vr=["onClick","onKeydown","aria-label"],Tr=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(f,{expose:h,emit:i}){const o=f,s=i,c=e.ref(null),a=e.ref(null),u=e.ref(o.modelValue),d=e.ref(""),t=e.ref(!1),I=e.ref("expand"),y=e.ref(!1),B=e.computed(()=>o.showTags&&o.tags.length>0?"":o.placeholder);e.watch(()=>o.modelValue,_=>{u.value=_});const S=()=>{s("update:modelValue",u.value),s("input",u.value)},v=_=>{y.value=!0,s("focus",_)},$=_=>{y.value=!1,s("blur",_)},k=_=>{},b=()=>{o.tagsOnly&&s("tags-click")},g=()=>{s("tooltip-click")},w=_=>{(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),g())},p=()=>{d.value=u.value,I.value="ai",t.value=!0,s("ask-ai",u.value)},n=_=>{(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),p())},m=()=>{d.value=u.value,I.value="expand",t.value=!0,s("expand",u.value)},P=_=>{(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),m())},C=_=>{s("remove-tag",_)},r=(_,T)=>{(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),C(T))},E=()=>{u.value=d.value,s("update:modelValue",d.value),s("input",d.value),t.value=!1},q=_=>{u.value=_,s("update:modelValue",_),s("input",_),t.value=!1},G=()=>{u.value=d.value,s("update:modelValue",d.value),s("input",d.value),t.value=!1},ae=()=>{s("ask-ai",u.value)},de=_=>{};return h({focus:()=>{var _;(_=c.value)==null||_.focus()}}),(_,T)=>(e.openBlock(),e.createElementBlock("div",Ir,[e.createElementVNode("div",gr,[e.createElementVNode("div",yr,[e.createElementVNode("div",kr,[e.createElementVNode("div",Cr,[e.createElementVNode("label",{class:e.normalizeClass(["freddy-plugins-textarea-label",{"freddy-plugins-textarea-label--underlined":_.showUnderlines}])},e.toDisplayString(_.dynamicTitle||_.label),3),_.required?(e.openBlock(),e.createElementBlock("span",br,"*")):e.createCommentVNode("",!0),_.showTooltip&&_.tooltipText?(e.openBlock(),e.createBlock(N,{key:1,text:_.tooltipText,placement:"top"},{default:e.withCtx(()=>[e.createElementVNode("button",{type:"button",class:"freddy-plugins-textarea-tooltip-button","aria-label":"Help",tabindex:"0",onClick:g,onKeydown:w},[e.createVNode(e.unref(l.IconQuestion),{class:"freddy-plugins-textarea-tooltip-icon"})],32)]),_:1},8,["text"])):e.createCommentVNode("",!0)])]),_.showAiButton?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"freddy-plugins-textarea-ai-button",onClick:p,onKeydown:n,"aria-label":"Ask AI for help",tabindex:"0"},[e.createVNode(e.unref(l.IconSparkle),{class:"freddy-plugins-textarea-ai-icon"})],32)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Pr,[_.diffMode?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:0,ref_key:"textareaRef",ref:c,"onUpdate:modelValue":T[0]||(T[0]=V=>u.value=V),class:e.normalizeClass(["freddy-plugins-textarea-input",{"freddy-plugins-textarea-input--error":_.hasError,"freddy-plugins-textarea-input--disabled":_.disabled,"freddy-plugins-textarea-input--focused":y.value,"freddy-plugins-textarea-input--with-tags":_.showTags&&_.tags.length>0,"freddy-plugins-textarea-input--tags-only":_.tagsOnly}]),placeholder:B.value,disabled:_.disabled,readonly:_.readonly||_.tagsOnly,onInput:S,onFocus:v,onBlur:$,onKeydown:k,onClick:b},null,42,$r)),[[e.vModelText,u.value]]),_.diffMode?(e.openBlock(),e.createElementBlock("div",wr,[e.createElementVNode("div",_r,[e.createElementVNode("div",Br,e.toDisplayString(_.oldText),1),e.createElementVNode("div",Sr,e.toDisplayString(_.newText),1)])])):e.createCommentVNode("",!0),_.showTags&&_.tags.length>0?(e.openBlock(),e.createElementBlock("div",Er,[e.createElementVNode("div",qr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.tags,(V,L)=>(e.openBlock(),e.createElementBlock("div",{key:`${V}-${L}`,class:"freddy-plugins-textarea-tag"},[e.createElementVNode("div",Nr,[e.createElementVNode("span",{class:e.normalizeClass(["freddy-plugins-textarea-tag-text",{"freddy-plugins-textarea-tag-text--underlined":_.showUnderlines}])},e.toDisplayString(V),3)]),e.createElementVNode("button",{type:"button",class:"freddy-plugins-textarea-tag-close",onClick:W=>C(L),onKeydown:W=>r(W,L),"aria-label":`Remove ${V} tag`,tabindex:"0"},[e.createVNode(e.unref(l.IconCross),{class:"freddy-plugins-textarea-tag-close-icon"})],40,Vr)]))),128))]),_.showAddTagsPlaceholder?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["freddy-plugins-textarea-add-tags",{"freddy-plugins-textarea-add-tags--underlined":_.showUnderlines}])},e.toDisplayString(_.addTagsPlaceholder),3)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:"freddy-plugins-textarea-expand-button",onClick:m,onKeydown:P,"aria-label":"Expand textarea",tabindex:"0"},[e.createVNode(l.IconMaximize,{class:"freddy-plugins-textarea-expand-icon"})],32)])]),_.showHint&&_.hintText&&!_.hasError?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(["freddy-plugins-textarea-hint-text",{"freddy-plugins-textarea-hint-text--underlined":_.showUnderlines}])},e.toDisplayString(_.hintText),3)):e.createCommentVNode("",!0),_.hasError&&_.errorMessage?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(["freddy-plugins-textarea-error-text",{"freddy-plugins-textarea-error-text--underlined":_.showUnderlines}])},e.toDisplayString(_.errorMessage),3)):e.createCommentVNode("",!0),I.value==="ai"?(e.openBlock(),e.createBlock(x,{key:2,ref_key:"aiModalRef",ref:a,"is-visible":t.value&&I.value==="ai",title:_.modalTitle,description:_.modalDescription,"initial-content":u.value,"openai-api-key":_.openaiApiKey,"openai-model":_.openaiModel,"openai-organization":_.openaiOrganization,"auto-show-a-i":!0,onClose:E,onSave:q,onCancel:G,onAskAI:ae,onToggleAI:de},null,8,["is-visible","title","description","initial-content","openai-api-key","openai-model","openai-organization"])):e.createCommentVNode("",!0),I.value==="expand"?(e.openBlock(),e.createBlock(x,{key:3,"is-visible":t.value&&I.value==="expand",title:_.modalTitle,description:_.modalDescription,"initial-content":u.value,"openai-api-key":"","openai-model":_.openaiModel,"openai-organization":"",onClose:E,onSave:q,onCancel:G},null,8,["is-visible","title","description","initial-content","openai-model"])):e.createCommentVNode("",!0)]))}}),ne=l._export_sfc(Tr,[["__scopeId","data-v-c6385f70"]]),Dr=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(f,{expose:h,emit:i}){const o=f,s=i,c=e.ref(o.modelValue),a=e.ref([...o.tags]);e.watch(()=>o.modelValue,m=>{c.value=m}),e.watch(()=>o.tags,m=>{a.value=[...m]},{deep:!0});const u=e.computed(()=>o.type==="tags"),d=e.computed(()=>o.type==="tags"&&(o.stage==="placeholder"||o.stage==="focused")),t=e.computed(()=>(o.stage==="focused","Add tags...")),I=e.computed(()=>o.stage==="error"||o.destructive);e.computed(()=>I.value&&o.destructive?o.errorMessage:o.hintText),e.computed(()=>o.stage==="placeholder"?o.placeholder:o.stage==="focused"&&o.type==="tags"||o.stage==="default"||o.stage==="focused"?"":o.placeholder);const y=m=>{c.value=m,s("update:modelValue",m)},B=m=>{s("input",m)},S=m=>{s("focus",m)},v=m=>{s("blur",m)},$=m=>{s("ask-ai",m)},k=m=>{s("expand",m)},b=m=>{a.value.splice(m,1),s("remove-tag",m)},g=()=>{s("tooltip-click")},w=m=>{s("add-tag",m)},p=()=>{s("tags-click")};return h({focus:()=>{}}),(m,P)=>(e.openBlock(),e.createBlock(ne,{modelValue:c.value,"onUpdate:modelValue":[P[0]||(P[0]=C=>c.value=C),y],label:m.label,placeholder:m.placeholder,disabled:m.disabled,readonly:m.readonly,required:m.required,"show-tooltip":m.showTooltip,"tooltip-text":m.tooltipText,"show-ai-button":m.showAiButton,"show-tags":u.value,tags:a.value,"show-add-tags-placeholder":d.value,"add-tags-placeholder":t.value,"hint-text":m.hintText,"has-error":I.value,"error-message":m.errorMessage,"modal-title":m.modalTitle,"modal-description":m.modalDescription,"openai-api-key":m.openaiApiKey,"openai-model":m.openaiModel,"openai-organization":m.openaiOrganization,"show-underlines":m.showUnderlines,"dynamic-title":m.dynamicTitle,"show-hint":m.showHint,"diff-mode":m.diffMode,"old-text":m.oldText,"new-text":m.newText,"tags-only":m.tagsOnly,onInput:B,onFocus:S,onBlur:v,onAskAi:$,onExpand:k,onRemoveTag:b,onTooltipClick:g,onAddTag:w,onTagsClick:p},null,8,["modelValue","label","placeholder","disabled","readonly","required","show-tooltip","tooltip-text","show-ai-button","show-tags","tags","show-add-tags-placeholder","add-tags-placeholder","hint-text","has-error","error-message","modal-title","modal-description","openai-api-key","openai-model","openai-organization","show-underlines","dynamic-title","show-hint","diff-mode","old-text","new-text","tags-only"]))}}),xr=l._export_sfc(Dr,[["__scopeId","data-v-19ded011"]]),Fr={class:"freddy-plugins-diff-container"},Ar=["innerHTML"],Lr=["placeholder"],Mr=e.defineComponent({__name:"DiffTextarea",props:{modelValue:{},placeholder:{default:"Enter your text..."},originalText:{},improvedText:{},showDiff:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(f,{expose:h,emit:i}){const o=f,s=i,c=e.ref(null),a=e.ref(o.modelValue);e.watch(()=>o.modelValue,t=>{a.value=t});const u=()=>{s("update:modelValue",a.value)},d=e.computed(()=>{if(!o.originalText||!o.improvedText)return"";const t=o.originalText.split(/(\s+)/),I=o.improvedText.split(/(\s+)/);let y="";const B=t.filter(v=>!I.includes(v)&&v.trim()).join(" ");B&&(y+=`<span class="freddy-plugins-diff-removed">${B}</span>`);const S=I.filter(v=>!t.includes(v)&&v.trim()).join(" ");return S&&(y&&(y+="<br>"),y+=`<span class="freddy-plugins-diff-added">${S}</span>`),y||(y=`<span class="freddy-plugins-diff-improved">${o.improvedText}</span>`),y});return h({focus:()=>{var t;return(t=c.value)==null?void 0:t.focus()},blur:()=>{var t;return(t=c.value)==null?void 0:t.blur()}}),(t,I)=>(e.openBlock(),e.createElementBlock("div",Fr,[t.showDiff&&d.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"freddy-plugins-diff-preview",innerHTML:d.value},null,8,Ar)):e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{key:1,ref_key:"textareaRef",ref:c,"onUpdate:modelValue":I[0]||(I[0]=y=>a.value=y),class:"freddy-plugins-diff-textarea",placeholder:t.placeholder,onInput:u},null,40,Lr)),[[e.vModelText,a.value]])]))}}),Rr=l._export_sfc(Mr,[["__scopeId","data-v-54efeaf3"]]),zr=["aria-checked","tabindex","onKeydown","disabled"],te=e.defineComponent({__name:"Switch",props:{modelValue:{type:Boolean},disabled:{type:Boolean},size:{}},emits:["update:modelValue"],setup(f,{emit:h}){l.useTheme();const i=f,o=h;function s(c){c.stopPropagation(),i.disabled||o("update:modelValue",!i.modelValue)}return(c,a)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["freddy-plugins-switch",{"freddy-plugins-switch--on":c.modelValue,"freddy-plugins-switch--disabled":c.disabled,[`freddy-plugins-switch--${c.size}`]:!0}]),"aria-checked":c.modelValue,role:"switch",tabindex:c.disabled?-1:0,onClick:s,onKeydown:[e.withKeys(e.withModifiers(s,["prevent"]),["space"]),e.withKeys(e.withModifiers(s,["prevent"]),["enter"])],disabled:c.disabled},[...a[0]||(a[0]=[e.createElementVNode("span",{class:"freddy-plugins-switch__track"},null,-1),e.createElementVNode("span",{class:"freddy-plugins-switch__thumb"},null,-1)])],42,zr))}}),Hr={key:0,class:"freddy-plugins-dropdown-search-bar"},Or=["placeholder"],Ur={class:"freddy-plugins-dropdown-options"},Kr=["onClick"],jr={class:"freddy-plugins-dropdown-option-label"},Gr={key:1,class:"freddy-plugins-dropdown-option-shortcut"},Wr={key:0,class:"freddy-plugins-dropdown-no-options"},Zr=e.defineComponent({__name:"Dropdown",props:{label:{default:"Select"},size:{default:"sm"},iconOnly:{type:Boolean,default:!1},options:{default:()=>[]},searchable:{type:Boolean,default:!1},searchPlaceholder:{default:"Search..."},openUp:{type:Boolean,default:!1},chevronRight:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},customIcon:{default:null},optionIconRight:{type:Boolean,default:!1},showShortcut:{type:Boolean,default:!1},background:{default:"transparent"},borderRadius:{default:"8px"},activeBackground:{default:"var(--freddy-bg-tertiary)"},openBackground:{default:"var(--freddy-bg-tertiary)"},variant:{default:"primary"},stayOpen:{type:Boolean,default:!1}},emits:["select","toggle"],setup(f,{emit:h}){const i=f,o=h,s=e.ref(!1),c=e.ref(""),a=e.ref(null),u=e.shallowRef([...i.options]);e.watch(()=>i.options,g=>{u.value=[...g]});const d=()=>{if(a.value)return;const g=u.value.find(w=>w.default);g&&(a.value=g)};e.watch(u,()=>{d()},{immediate:!0});const t=e.computed(()=>i.label!=="Select"?i.label:a.value?a.value.label:"Select"),I=e.computed(()=>i.showIcon?i.customIcon?i.customIcon:i.openUp?l.IconChevronUp:l.IconChevronDown:null),y=()=>{s.value=!s.value,s.value||(c.value="")},B=()=>{s.value=!1,c.value=""},S=e.computed(()=>!i.searchable||!c.value?u.value:u.value.filter(g=>g.label.toLowerCase().includes(c.value.toLowerCase()))),v=(g,w)=>{g.type!=="toggle"&&$(g)},$=g=>{a.value=g,o("select",g),i.stayOpen||B()},k=(g,w)=>{const p=u.value.findIndex(n=>n.value===g.value);p!==-1&&(u.value[p].checked=w),o("toggle",{...g,checked:w})},b=g=>{g.target.closest(".freddy-plugins-dropdown-wrapper")||B()};return e.watch(s,g=>{g?setTimeout(()=>{document.addEventListener("click",b)},0):document.removeEventListener("click",b)}),(g,w)=>(e.openBlock(),e.createElementBlock("div",{class:"freddy-plugins-dropdown-wrapper",onKeydown:e.withKeys(B,["esc"]),tabindex:"0"},[e.createVNode(j,{class:"freddy-plugins-dropdown-trigger",label:t.value,iconOnly:g.iconOnly,rightIcon:g.chevronRight&&g.showIcon?I.value:void 0,leftIcon:!g.chevronRight&&g.showIcon?I.value:void 0,size:g.size,hierarchy:"tertiary",onClick:y,"aria-expanded":s.value,"aria-haspopup":!0,type:"button"},{default:e.withCtx(()=>[e.renderSlot(g.$slots,"button",{},()=>[e.createTextVNode(e.toDisplayString(t.value),1)])]),_:3},8,["label","iconOnly","rightIcon","leftIcon","size","aria-expanded"]),s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["freddy-plugins-dropdown-menu",{"freddy-plugins-dropdown-menu--up":g.openUp,"freddy-plugins-dropdown-menu--down":!g.openUp}])},[g.searchable?(e.openBlock(),e.createElementBlock("div",Hr,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":w[0]||(w[0]=p=>c.value=p),type:"text",class:"freddy-plugins-dropdown-search-input",placeholder:g.searchPlaceholder},null,8,Or),[[e.vModelText,c.value]])])):e.createCommentVNode("",!0),e.createElementVNode("ul",Ur,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,p=>(e.openBlock(),e.createElementBlock("li",{key:p.value,class:e.normalizeClass(["freddy-plugins-dropdown-option",{"freddy-plugins-dropdown-option--toggle":p.type==="toggle"}]),onClick:n=>v(p)},[e.createElementVNode("span",jr,[!g.optionIconRight&&p.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p.icon),{key:0,class:"freddy-plugins-dropdown-option-icon"})):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(p.label),1),g.showShortcut&&p.shortcut?(e.openBlock(),e.createElementBlock("span",Gr,e.toDisplayString(p.shortcut),1)):e.createCommentVNode("",!0),g.optionIconRight&&p.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p.icon),{key:2,class:"freddy-plugins-dropdown-option-icon freddy-plugins-dropdown-option-icon--right"})):e.createCommentVNode("",!0)]),p.type==="toggle"?(e.openBlock(),e.createBlock(te,{key:0,modelValue:p.checked??!1,size:i.size,"onUpdate:modelValue":n=>{k(p,n)},onClick:w[1]||(w[1]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","size","onUpdate:modelValue"])):e.createCommentVNode("",!0)],10,Kr))),128)),S.value.length===0?(e.openBlock(),e.createElementBlock("li",Wr,[e.renderSlot(g.$slots,"no-options",{},()=>[w[2]||(w[2]=e.createTextVNode("No options",-1))])])):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0)],32))}}),Jr={class:"verification-container"},Qr={class:"verification-header"},Yr={class:"verification-subtitle"},Xr={class:"code-input-container"},es={class:"code-inputs"},os=["onUpdate:modelValue","onInput","onKeydown","disabled"],ns={class:"verification-actions"},ts={key:0,class:"error-message"},rs={class:"verification-footer"},ss={class:"resend-text"},is=["disabled"],ls=e.defineComponent({__name:"EmailCodeVerification",props:{email:{},brand:{default:"contentplate"},loading:{type:Boolean,default:!1},error:{default:""},resendCooldown:{default:0}},emits:["verify","resend"],setup(f,{emit:h}){const i=f,{brand:o,loading:s,error:c,resendCooldown:a}=i,u=h,d=e.ref(["","","",""]),t=e.ref([]),I=e.computed(()=>d.value.every(b=>b!=="")),y=e.computed(()=>d.value.join("")),B=(b,g)=>{const w=g.target,p=w.value;if(!/^\d*$/.test(p)){w.value="";return}d.value[b]=p,p&&b<3&&e.nextTick(()=>{var n;(n=t.value[b+1])==null||n.focus()})},S=(b,g)=>{g.key==="Backspace"&&!d.value[b]&&b>0&&e.nextTick(()=>{var w;(w=t.value[b-1])==null||w.focus()})},v=b=>{var m;b.preventDefault();const g=(m=b.clipboardData)==null?void 0:m.getData("text");if(!g)return;const w=g.replace(/\D/g,"").slice(0,4).split("");d.value=[...w,"","","",""].slice(0,4);const p=d.value.findIndex(P=>P===""),n=p===-1?3:p;e.nextTick(()=>{var P;(P=t.value[n])==null||P.focus()})},$=()=>{I.value&&u("verify",y.value)},k=()=>{u("resend")};return e.onMounted(()=>{e.nextTick(()=>{var b;(b=t.value[0])==null||b.focus()})}),(b,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["email-verification",`email-verification--${e.unref(o)}`])},[e.createElementVNode("div",Jr,[e.createElementVNode("div",Qr,[g[1]||(g[1]=e.createElementVNode("h2",{class:"verification-title"},"Verify Your Email",-1)),e.createElementVNode("p",Yr,[g[0]||(g[0]=e.createTextVNode(" We've sent a 4-digit verification code to ",-1)),e.createElementVNode("strong",null,e.toDisplayString(b.email),1)])]),e.createElementVNode("form",{onSubmit:e.withModifiers($,["prevent"]),class:"verification-form"},[e.createElementVNode("div",Xr,[e.createElementVNode("div",es,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,(w,p)=>e.withDirectives(e.createElementVNode("input",{key:p,ref_for:!0,ref:n=>t.value[p]=n,"onUpdate:modelValue":n=>d.value[p]=n,type:"text",maxlength:"1",class:e.normalizeClass(["code-input",`code-input--${e.unref(o)}`]),onInput:n=>B(p,n),onKeydown:n=>S(p,n),onPaste:v,disabled:e.unref(s),autocomplete:"one-time-code"},null,42,os),[[e.vModelText,d.value[p]]])),64))])]),e.createElementVNode("div",ns,[e.createVNode(j,{type:"submit",label:e.unref(s)?"Verifying...":"Verify Code",hierarchy:"primary",size:"lg",loading:e.unref(s),disabled:!I.value||e.unref(s),class:e.normalizeClass(`verify-button verify-button--${e.unref(o)}`)},null,8,["label","loading","disabled","class"])]),e.unref(c)?(e.openBlock(),e.createElementBlock("div",ts,e.toDisplayString(e.unref(c)),1)):e.createCommentVNode("",!0),e.createElementVNode("div",rs,[e.createElementVNode("p",ss,[g[2]||(g[2]=e.createTextVNode(" Didn't receive the code? ",-1)),e.createElementVNode("button",{type:"button",class:"resend-button",disabled:e.unref(a)>0,onClick:k},e.toDisplayString(e.unref(a)>0?`Resend in ${e.unref(a)}s`:"Resend code"),9,is)])])],32)])],2))}}),cs={class:"freddy-plugins-input-field-wrapper"},as=["for"],ds={key:0,class:"freddy-plugins-required-asterisk"},us=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(f,{expose:h,emit:i}){const o=f,s=i,c=e.computed(()=>`input-${Math.random().toString(36).substr(2,9)}`),a=e.computed(()=>({[`freddy-plugins-input-field-container--${o.size}`]:!0,[`freddy-plugins-input-field-container--${o.colorStyle}`]:!0,"freddy-plugins-input-field-container--destructive":o.destructive||o.state==="error","freddy-plugins-input-field-container--focused":o.state==="focused","freddy-plugins-input-field-container--disabled":o.state==="disabled","freddy-plugins-input-field-container--loading":o.state==="loading","freddy-plugins-input-field-container--success":o.state==="success"})),u=()=>{o.state!=="disabled"&&s("focus",new FocusEvent("focus"))};return h({inputId:c,containerClasses:a,focusInput:u}),(d,t)=>(e.openBlock(),e.createElementBlock("div",cs,[d.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:c.value,class:e.normalizeClass(["freddy-plugins-input-field-label",`freddy-plugins-input-field-label--${d.colorStyle}`])},[e.createTextVNode(e.toDisplayString(d.label)+" ",1),d.required?(e.openBlock(),e.createElementBlock("span",ds,"*")):e.createCommentVNode("",!0)],10,as)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-input-field-container",a.value]),onClick:u},[e.renderSlot(d.$slots,"default",{},void 0,!0)],2),d.hintText?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(["freddy-plugins-input-hint-text",`freddy-plugins-input-hint-text--${d.colorStyle}`])},e.toDisplayString(d.hintText),3)):e.createCommentVNode("",!0)]))}}),F=l._export_sfc(us,[["__scopeId","data-v-bb114a19"]]),hs=["src","alt"],ps=["id","placeholder","disabled","readonly","maxlength"],ms=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(f,{expose:h,emit:i}){const o=f,s=i,c=e.ref(null),a=e.ref(null),u=e.ref(""),d=e.ref(""),t=e.ref("unknown"),I=e.computed(()=>({size:o.size,colorStyle:o.colorStyle,state:o.state,destructive:o.destructive,required:o.required,label:o.label,hintText:o.hintText,disabled:o.disabled})),y=C=>C?typeof C=="object"?C:typeof C=="string"?e.defineAsyncComponent(()=>U(Object.assign({"../../icons/IconAddChatPop.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconAddChatPop$1),"../../icons/IconAddFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconAddFileSystem$1),"../../icons/IconAddPeople.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconAddPeople$1),"../../icons/IconAitronos.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconAitronos$1),"../../icons/IconApple.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconApple$1),"../../icons/IconApplePay.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconApplePay$1),"../../icons/IconAppsGrid.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconAppsGrid$1),"../../icons/IconArrowDown.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconArrowDown$1),"../../icons/IconArrowLeft.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconArrowLeft$1),"../../icons/IconArrowUp.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconArrowUp$1),"../../icons/IconBadgeCheck.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconBadgeCheck$1),"../../icons/IconBroom.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconBroom$1),"../../icons/IconBuildings.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconBuildings$1),"../../icons/IconCalendarWithTickInside.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconCalendarWithTickInside$1),"../../icons/IconCallNotAllowed.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconCallNotAllowed$1),"../../icons/IconCardPay.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconCardPay$1),"../../icons/IconCaution.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconCaution$1),"../../icons/IconChangeLog.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconChangeLog$1),"../../icons/IconCheckCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconCheckCircleFill$1),"../../icons/IconCheckInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconCheckInCircle$1),"../../icons/IconCheckRounded.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconCheckRounded$1),"../../icons/IconChevronDown.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconChevronDown$1),"../../icons/IconChevronLeft.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconChevronLeft$1),"../../icons/IconChevronRight.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconChevronRight$1),"../../icons/IconChevronUp.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconChevronUp$1),"../../icons/IconCircledCheck.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconCircledCheck$1),"../../icons/IconClock.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconClock$1),"../../icons/IconClosedEnvelope.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconClosedEnvelope$1),"../../icons/IconCloudUpload.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconCloudUpload$1),"../../icons/IconConnectorConfluence.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconConnectorConfluence$1),"../../icons/IconConnectorFigma.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconConnectorFigma$1),"../../icons/IconConnectorFreshDesk.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconConnectorFreshDesk$1),"../../icons/IconConnectorGitHub.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconConnectorGitHub$1),"../../icons/IconConnectorJira.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconConnectorJira$1),"../../icons/IconConnectorLinear.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconConnectorLinear$1),"../../icons/IconConnectorNotion.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconConnectorNotion$1),"../../icons/IconConnectorSlack.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconConnectorSlack$1),"../../icons/IconConnectorZapier.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconConnectorZapier$1),"../../icons/IconCopy.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconCopy$1),"../../icons/IconCross.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconCross$1),"../../icons/IconCrossCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconCrossCircleFill$1),"../../icons/IconCrossInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconCrossInCircle$1),"../../icons/IconCurrentTick.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconCurrentTick$1),"../../icons/IconDataUpload.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconDataUpload$1),"../../icons/IconDelete.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconDelete$1),"../../icons/IconDeleteFillRed.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconDeleteFillRed$1),"../../icons/IconDialingPhone.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconDialingPhone$1),"../../icons/IconDisabledAlert.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconDisabledAlert$1),"../../icons/IconDocumentation.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconDocumentation$1),"../../icons/IconDownload.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconDownload$1),"../../icons/IconDribbble.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconDribbble$1),"../../icons/IconDropdownArrow.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconDropdownArrow$1),"../../icons/IconEdit.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconEdit$1),"../../icons/IconEditLinePath.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconEditLinePath$1),"../../icons/IconEllipse.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconEllipse),"../../icons/IconExcelThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconExcelThumbnail$1),"../../icons/IconEye.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconEye$1),"../../icons/IconFacebook.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconFacebook$1),"../../icons/IconFigma.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconFigma$1),"../../icons/IconFile.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconFile$1),"../../icons/IconFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconFileSystem$1),"../../icons/IconFileUpload.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconFileUpload$1),"../../icons/IconFilter.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconFilter$1),"../../icons/IconFolder.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconFolder$1),"../../icons/IconFreddyHub.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconFreddyHub$1),"../../icons/IconFreddyHubLogo.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconFreddyHubLogo$1),"../../icons/IconFreddyHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconFreddyHubNewLogo$1),"../../icons/IconFreddyHubTitle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconFreddyHubTitle),"../../icons/IconFreddySmall.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconFreddySmall$1),"../../icons/IconGlobExpand.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconGlobExpand$1),"../../icons/IconGlobe.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconGlobe$1),"../../icons/IconGoogle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconGoogle$1),"../../icons/IconHollowCircle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconHollowCircle$1),"../../icons/IconHome.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconHome$1),"../../icons/IconInfoRounded.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconInfoRounded$1),"../../icons/IconInvalidInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconInvalidInvoice$1),"../../icons/IconInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconInvoice$1),"../../icons/IconInvoiceSwitch.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconInvoiceSwitch$1),"../../icons/IconLapTableBottom.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconLapTableBottom$1),"../../icons/IconLense.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconLense$1),"../../icons/IconLightCross.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconLightCross$1),"../../icons/IconLink04.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconLink04$1),"../../icons/IconLoadingError.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconLoadingError$1),"../../icons/IconLoadingOrg.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconLoadingOrg$1),"../../icons/IconLocationWithCircleIn.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconLocationWithCircleIn$1),"../../icons/IconLock.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconLock$1),"../../icons/IconMarketPlace.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconMarketPlace$1),"../../icons/IconMaximize.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconMaximize$1),"../../icons/IconMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconMicrophone$1),"../../icons/IconMutedMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconMutedMicrophone$1),"../../icons/IconNewNotification.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconNewNotification$1),"../../icons/IconNewTab.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconNewTab$1),"../../icons/IconNotification.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconNotification$1),"../../icons/IconOpenBook.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconOpenBook$1),"../../icons/IconPaperAirPlane.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconPaperAirPlane$1),"../../icons/IconPauseCircle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconPauseCircle$1),"../../icons/IconPdfThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconPdfThumbnail$1),"../../icons/IconPenEdit.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconPenEdit$1),"../../icons/IconPencil.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconPencil$1),"../../icons/IconPeopleHub.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconPeopleHub$1),"../../icons/IconPersonCircle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconPersonCircle$1),"../../icons/IconPits.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconPits$1),"../../icons/IconPlay.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconPlay$1),"../../icons/IconPlus.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconPlus$1),"../../icons/IconPolygonDown.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconPolygonDown$1),"../../icons/IconPresentation.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconPresentation$1),"../../icons/IconProgressBase.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconProgressBase$1),"../../icons/IconProgressComplete.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconProgressComplete$1),"../../icons/IconProgressGoing.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconProgressGoing$1),"../../icons/IconPurpose.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconPurpose$1),"../../icons/IconPurseCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconPurseCircleFill$1),"../../icons/IconQuestion.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconQuestion$1),"../../icons/IconRadio.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconRadio$1),"../../icons/IconRadioFill.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconRadioFill$1),"../../icons/IconRefresh.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconRefresh$1),"../../icons/IconRevertedTriangle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconRevertedTriangle$1),"../../icons/IconRobotScreen.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconRobotScreen$1),"../../icons/IconRoundTick.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconRoundTick$1),"../../icons/IconSearch.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconSearch$1),"../../icons/IconSearchOptimised.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconSearchOptimised$1),"../../icons/IconSectionHide.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconSectionHide$1),"../../icons/IconSend.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconSend$1),"../../icons/IconSettings.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconSettings$1),"../../icons/IconSettingsBold.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconSettingsBold$1),"../../icons/IconSize.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconSize$1),"../../icons/IconSliderKnobs.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconSliderKnobs$1),"../../icons/IconSortIdle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconSortIdle$1),"../../icons/IconSparkle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconSparkle$1),"../../icons/IconSpotlio.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconSpotlio$1),"../../icons/IconStar.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconStar$1),"../../icons/IconStatistics.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconStatistics$1),"../../icons/IconStopChat.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconStopChat$1),"../../icons/IconStreamLineHub.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconStreamLineHub$1),"../../icons/IconStreamLineHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconStreamLineHubNewLogo$1),"../../icons/IconSun.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconSun$1),"../../icons/IconSwap.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconSwap$1),"../../icons/IconText.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconText$1),"../../icons/IconTextThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconTextThumbnail$1),"../../icons/IconThinDocument.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconThinDocument$1),"../../icons/IconThinFile.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconThinFile$1),"../../icons/IconThumbsDown.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconThumbsDown$1),"../../icons/IconTick.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconTick$1),"../../icons/IconUser.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconUser$1),"../../icons/IconVerticalDots.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconVerticalDots$1),"../../icons/IconVideoCamera.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconVideoCamera$1),"../../icons/IconWarningOctal.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconWarningOctal$1),"../../icons/IconX.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconX$1),"../../icons/IconZip.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(r=>r.IconZip)}),`../../icons/${C}.vue`,4).catch(()=>({template:"<div></div>"}))):null:null,B=e.computed(()=>y(o.trailingIcon)),S=e.computed(()=>{switch(t.value){case"amex":return 17;default:return 19}}),v=e.computed(()=>({[`freddy-plugins-input-field--${o.size}`]:!0,[`freddy-plugins-input-field--${o.colorStyle}`]:!0,"freddy-plugins-input-field--destructive":o.destructive,"freddy-plugins-input-field--focused":o.state==="focused","freddy-plugins-input-field--disabled":o.state==="disabled","freddy-plugins-input-field--with-leading":o.showCardIcon&&t.value!=="unknown","freddy-plugins-input-field--with-trailing":!!B.value})),$=C=>{const r=C.replace(/\D/g,"");return/^4/.test(r)?"visa":/^5[1-5]/.test(r)||/^2[2-7]/.test(r)?"mastercard":/^3[47]/.test(r)?"amex":/^6/.test(r)?"discover":"unknown"},k=C=>{const r=C.replace(/\D/g,"");return $(r)==="amex"?r.replace(/(\d{4})(\d{6})(\d{5})/,"$1 $2 $3").replace(/(\d{4})(\d{1,6})/,"$1 $2").substring(0,17):r.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)},b=C=>{const r={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 r[C]||r.unknown},g=C=>{const E=C.target.value;u.value=E.replace(/\D/g,""),d.value=k(E);const q=$(u.value);q!==t.value&&(t.value=q,s("card-type-detected",q)),s("update:modelValue",d.value),s("update:cardNumber",u.value),s("input",d.value)},w=C=>{[8,9,27,13,46].indexOf(C.keyCode)!==-1||C.keyCode===65&&C.ctrlKey===!0||C.keyCode===67&&C.ctrlKey===!0||C.keyCode===86&&C.ctrlKey===!0||C.keyCode===88&&C.ctrlKey===!0||C.keyCode>=35&&C.keyCode<=39||(C.shiftKey||C.keyCode<48||C.keyCode>57)&&(C.keyCode<96||C.keyCode>105)&&C.preventDefault()},p=C=>{s("focus",C)},n=C=>{s("blur",C)},m=C=>{s("trailing-icon-click",C)},P=()=>{var C;(C=c.value)==null||C.focus()};return e.watch(()=>o.cardNumber,C=>{C!==u.value&&(u.value=C,d.value=k(C),t.value=$(C))},{immediate:!0}),h({focus:P,inputRef:c}),(C,r)=>(e.openBlock(),e.createBlock(F,e.mergeProps(I.value,{onFocus:p,onBlur:n}),{default:e.withCtx(()=>{var E;return[C.showCardIcon&&t.value!=="unknown"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["freddy-plugins-card-type-icon",`freddy-plugins-card-type-icon--${C.colorStyle}`])},[e.createElementVNode("img",{src:b(t.value),alt:`${t.value} card`,class:"freddy-plugins-card-icon-image"},null,8,hs)],2)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:(E=a.value)==null?void 0:E.inputId,ref_key:"inputRef",ref:c,"onUpdate:modelValue":r[0]||(r[0]=q=>d.value=q),type:"text",inputmode:"numeric",placeholder:C.placeholder,disabled:C.disabled,readonly:C.readonly,maxlength:S.value,class:e.normalizeClass(["freddy-plugins-input-field freddy-plugins-card-input-field",v.value]),onInput:g,onKeydown:w,onFocus:p,onBlur:n},null,42,ps),[[e.vModelText,d.value]]),B.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(B.value),{key:1,class:e.normalizeClass(["freddy-plugins-input-trailing-icon",`freddy-plugins-input-trailing-icon--${C.colorStyle}`]),onClick:m},null,8,["class"])):e.createCommentVNode("",!0)]}),_:1},16))}}),re=l._export_sfc(ms,[["__scopeId","data-v-3a6797a1"]]),vs=["id","type","placeholder","disabled","readonly"],fs=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(f,{expose:h,emit:i}){const o=f,s=i,c=e.ref(null),a=e.ref(null),u=e.ref(o.modelValue||""),d=e.computed(()=>({size:o.size,colorStyle:o.colorStyle,state:o.state,destructive:o.destructive,required:o.required,label:o.label,hintText:o.hintText,disabled:o.disabled})),t=p=>p?typeof p=="object"?p:typeof p=="string"?e.defineAsyncComponent(()=>U(Object.assign({"../../icons/IconAddChatPop.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconAddChatPop$1),"../../icons/IconAddFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconAddFileSystem$1),"../../icons/IconAddPeople.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconAddPeople$1),"../../icons/IconAitronos.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconAitronos$1),"../../icons/IconApple.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconApple$1),"../../icons/IconApplePay.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconApplePay$1),"../../icons/IconAppsGrid.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconAppsGrid$1),"../../icons/IconArrowDown.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconArrowDown$1),"../../icons/IconArrowLeft.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconArrowLeft$1),"../../icons/IconArrowUp.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconArrowUp$1),"../../icons/IconBadgeCheck.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconBadgeCheck$1),"../../icons/IconBroom.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconBroom$1),"../../icons/IconBuildings.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconBuildings$1),"../../icons/IconCalendarWithTickInside.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconCalendarWithTickInside$1),"../../icons/IconCallNotAllowed.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconCallNotAllowed$1),"../../icons/IconCardPay.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconCardPay$1),"../../icons/IconCaution.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconCaution$1),"../../icons/IconChangeLog.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconChangeLog$1),"../../icons/IconCheckCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconCheckCircleFill$1),"../../icons/IconCheckInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconCheckInCircle$1),"../../icons/IconCheckRounded.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconCheckRounded$1),"../../icons/IconChevronDown.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconChevronDown$1),"../../icons/IconChevronLeft.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconChevronLeft$1),"../../icons/IconChevronRight.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconChevronRight$1),"../../icons/IconChevronUp.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconChevronUp$1),"../../icons/IconCircledCheck.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconCircledCheck$1),"../../icons/IconClock.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconClock$1),"../../icons/IconClosedEnvelope.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconClosedEnvelope$1),"../../icons/IconCloudUpload.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconCloudUpload$1),"../../icons/IconConnectorConfluence.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconConnectorConfluence$1),"../../icons/IconConnectorFigma.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconConnectorFigma$1),"../../icons/IconConnectorFreshDesk.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconConnectorFreshDesk$1),"../../icons/IconConnectorGitHub.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconConnectorGitHub$1),"../../icons/IconConnectorJira.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconConnectorJira$1),"../../icons/IconConnectorLinear.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconConnectorLinear$1),"../../icons/IconConnectorNotion.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconConnectorNotion$1),"../../icons/IconConnectorSlack.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconConnectorSlack$1),"../../icons/IconConnectorZapier.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconConnectorZapier$1),"../../icons/IconCopy.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconCopy$1),"../../icons/IconCross.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconCross$1),"../../icons/IconCrossCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconCrossCircleFill$1),"../../icons/IconCrossInCircle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconCrossInCircle$1),"../../icons/IconCurrentTick.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconCurrentTick$1),"../../icons/IconDataUpload.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconDataUpload$1),"../../icons/IconDelete.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconDelete$1),"../../icons/IconDeleteFillRed.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconDeleteFillRed$1),"../../icons/IconDialingPhone.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconDialingPhone$1),"../../icons/IconDisabledAlert.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconDisabledAlert$1),"../../icons/IconDocumentation.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconDocumentation$1),"../../icons/IconDownload.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconDownload$1),"../../icons/IconDribbble.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconDribbble$1),"../../icons/IconDropdownArrow.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconDropdownArrow$1),"../../icons/IconEdit.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconEdit$1),"../../icons/IconEditLinePath.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconEditLinePath$1),"../../icons/IconEllipse.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconEllipse),"../../icons/IconExcelThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconExcelThumbnail$1),"../../icons/IconEye.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconEye$1),"../../icons/IconFacebook.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconFacebook$1),"../../icons/IconFigma.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconFigma$1),"../../icons/IconFile.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconFile$1),"../../icons/IconFileSystem.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconFileSystem$1),"../../icons/IconFileUpload.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconFileUpload$1),"../../icons/IconFilter.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconFilter$1),"../../icons/IconFolder.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconFolder$1),"../../icons/IconFreddyHub.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconFreddyHub$1),"../../icons/IconFreddyHubLogo.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconFreddyHubLogo$1),"../../icons/IconFreddyHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconFreddyHubNewLogo$1),"../../icons/IconFreddyHubTitle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconFreddyHubTitle),"../../icons/IconFreddySmall.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconFreddySmall$1),"../../icons/IconGlobExpand.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconGlobExpand$1),"../../icons/IconGlobe.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconGlobe$1),"../../icons/IconGoogle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconGoogle$1),"../../icons/IconHollowCircle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconHollowCircle$1),"../../icons/IconHome.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconHome$1),"../../icons/IconInfoRounded.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconInfoRounded$1),"../../icons/IconInvalidInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconInvalidInvoice$1),"../../icons/IconInvoice.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconInvoice$1),"../../icons/IconInvoiceSwitch.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconInvoiceSwitch$1),"../../icons/IconLapTableBottom.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconLapTableBottom$1),"../../icons/IconLense.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconLense$1),"../../icons/IconLightCross.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconLightCross$1),"../../icons/IconLink04.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconLink04$1),"../../icons/IconLoadingError.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconLoadingError$1),"../../icons/IconLoadingOrg.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconLoadingOrg$1),"../../icons/IconLocationWithCircleIn.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconLocationWithCircleIn$1),"../../icons/IconLock.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconLock$1),"../../icons/IconMarketPlace.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconMarketPlace$1),"../../icons/IconMaximize.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconMaximize$1),"../../icons/IconMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconMicrophone$1),"../../icons/IconMutedMicrophone.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconMutedMicrophone$1),"../../icons/IconNewNotification.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconNewNotification$1),"../../icons/IconNewTab.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconNewTab$1),"../../icons/IconNotification.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconNotification$1),"../../icons/IconOpenBook.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconOpenBook$1),"../../icons/IconPaperAirPlane.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconPaperAirPlane$1),"../../icons/IconPauseCircle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconPauseCircle$1),"../../icons/IconPdfThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconPdfThumbnail$1),"../../icons/IconPenEdit.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconPenEdit$1),"../../icons/IconPencil.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconPencil$1),"../../icons/IconPeopleHub.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconPeopleHub$1),"../../icons/IconPersonCircle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconPersonCircle$1),"../../icons/IconPits.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconPits$1),"../../icons/IconPlay.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconPlay$1),"../../icons/IconPlus.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconPlus$1),"../../icons/IconPolygonDown.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconPolygonDown$1),"../../icons/IconPresentation.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconPresentation$1),"../../icons/IconProgressBase.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconProgressBase$1),"../../icons/IconProgressComplete.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconProgressComplete$1),"../../icons/IconProgressGoing.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconProgressGoing$1),"../../icons/IconPurpose.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconPurpose$1),"../../icons/IconPurseCircleFill.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconPurseCircleFill$1),"../../icons/IconQuestion.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconQuestion$1),"../../icons/IconRadio.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconRadio$1),"../../icons/IconRadioFill.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconRadioFill$1),"../../icons/IconRefresh.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconRefresh$1),"../../icons/IconRevertedTriangle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconRevertedTriangle$1),"../../icons/IconRobotScreen.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconRobotScreen$1),"../../icons/IconRoundTick.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconRoundTick$1),"../../icons/IconSearch.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconSearch$1),"../../icons/IconSearchOptimised.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconSearchOptimised$1),"../../icons/IconSectionHide.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconSectionHide$1),"../../icons/IconSend.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconSend$1),"../../icons/IconSettings.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconSettings$1),"../../icons/IconSettingsBold.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconSettingsBold$1),"../../icons/IconSize.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconSize$1),"../../icons/IconSliderKnobs.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconSliderKnobs$1),"../../icons/IconSortIdle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconSortIdle$1),"../../icons/IconSparkle.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconSparkle$1),"../../icons/IconSpotlio.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconSpotlio$1),"../../icons/IconStar.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconStar$1),"../../icons/IconStatistics.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconStatistics$1),"../../icons/IconStopChat.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconStopChat$1),"../../icons/IconStreamLineHub.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconStreamLineHub$1),"../../icons/IconStreamLineHubNewLogo.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconStreamLineHubNewLogo$1),"../../icons/IconSun.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconSun$1),"../../icons/IconSwap.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconSwap$1),"../../icons/IconText.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconText$1),"../../icons/IconTextThumbnail.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconTextThumbnail$1),"../../icons/IconThinDocument.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconThinDocument$1),"../../icons/IconThinFile.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconThinFile$1),"../../icons/IconThumbsDown.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconThumbsDown$1),"../../icons/IconTick.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconTick$1),"../../icons/IconUser.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconUser$1),"../../icons/IconVerticalDots.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconVerticalDots$1),"../../icons/IconVideoCamera.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconVideoCamera$1),"../../icons/IconWarningOctal.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconWarningOctal$1),"../../icons/IconX.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconX$1),"../../icons/IconZip.vue":()=>Promise.resolve().then(()=>require("./icons-CCfXKsmx.cjs")).then(n=>n.IconZip)}),`../../icons/${p}.vue`,4).catch(()=>({template:"<div></div>"}))):null:null,I=e.computed(()=>t(o.leadingIcon)),y=e.computed(()=>t(o.trailingIcon)),B=e.computed(()=>({[`freddy-plugins-input-field--${o.size}`]:!0,[`freddy-plugins-input-field--${o.colorStyle}`]:!0,"freddy-plugins-input-field--destructive":o.destructive,"freddy-plugins-input-field--focused":o.state==="focused","freddy-plugins-input-field--disabled":o.state==="disabled","freddy-plugins-input-field--with-leading":!!I.value,"freddy-plugins-input-field--with-trailing":!!y.value})),S=p=>{const n=p.target;u.value=n.value,s("update:modelValue",n.value),s("input",n.value)},v=p=>{s("focus",p)},$=p=>{s("blur",p)},k=p=>{s("keydown",p)},b=p=>{s("leading-icon-click",p)},g=p=>{s("trailing-icon-click",p)},w=()=>{var p;(p=c.value)==null||p.focus()};return e.watch(()=>o.modelValue,p=>{p!==void 0&&(u.value=p)}),h({focus:w,inputRef:c}),(p,n)=>(e.openBlock(),e.createBlock(F,e.mergeProps(d.value,{onFocus:v,onBlur:$}),{default:e.withCtx(()=>{var m;return[I.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(I.value),{key:0,class:e.normalizeClass(["freddy-plugins-input-leading-icon",`freddy-plugins-input-leading-icon--${p.colorStyle}`]),onClick:b},null,8,["class"])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{id:(m=a.value)==null?void 0:m.inputId,ref_key:"inputRef",ref:c,"onUpdate:modelValue":n[0]||(n[0]=P=>u.value=P),type:p.inputType,placeholder:p.placeholder,disabled:p.disabled,readonly:p.readonly,class:e.normalizeClass(["freddy-plugins-input-field",B.value]),onInput:S,onFocus:v,onBlur:$,onKeydown:k},null,42,vs),[[e.vModelDynamic,u.value]]),p.trailingIcon==="IconQuestion"&&p.tooltipText?(e.openBlock(),e.createBlock(N,{key:1,text:p.tooltipText,placement:"top"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.value),{class:e.normalizeClass(["freddy-plugins-input-trailing-icon",`freddy-plugins-input-trailing-icon--${p.colorStyle}`])},null,8,["class"]))]),_:1},8,["text"])):y.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.value),{key:2,class:e.normalizeClass(["freddy-plugins-input-trailing-icon",`freddy-plugins-input-trailing-icon--${p.colorStyle}`]),onClick:g},null,8,["class"])):e.createCommentVNode("",!0)]}),_:1},16))}}),se=l._export_sfc(fs,[["__scopeId","data-v-e865b202"]]),Is={class:"freddy-plugins-figma-dropdown-text"},gs=["onClick"],ys={class:"freddy-plugins-country-flag"},ks={class:"freddy-plugins-country-name"},Cs={class:"freddy-plugins-country-dial-code"},bs=["id","placeholder","disabled","readonly"],Ps={key:0,class:"freddy-plugins-figma-help-icon"},$s=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(f,{expose:h,emit:i}){const o=f,s=i,c=e.ref(null),a=e.ref(null),u=e.ref(o.phoneNumber||""),d=e.ref(!1),t=e.ref(o.countryCode||"US"),I=[{code:"US",name:"United States",flag:"🇺🇸",dialCode:"+1"},{code:"GB",name:"United Kingdom",flag:"🇬🇧",dialCode:"+44"},{code:"CA",name:"Canada",flag:"🇨🇦",dialCode:"+1"},{code:"AU",name:"Australia",flag:"🇦🇺",dialCode:"+61"},{code:"DE",name:"Germany",flag:"🇩🇪",dialCode:"+49"},{code:"FR",name:"France",flag:"🇫🇷",dialCode:"+33"},{code:"IT",name:"Italy",flag:"🇮🇹",dialCode:"+39"},{code:"ES",name:"Spain",flag:"🇪🇸",dialCode:"+34"},{code:"JP",name:"Japan",flag:"🇯🇵",dialCode:"+81"},{code:"IN",name:"India",flag:"🇮🇳",dialCode:"+91"}],y=e.computed(()=>({size:o.size,colorStyle:o.colorStyle,state:o.state,destructive:o.destructive,required:o.required,label:o.label,hintText:o.hintText,disabled:o.disabled})),B=e.computed(()=>o.countryOptions||I),S=e.computed(()=>B.value.find(n=>n.code===t.value)||B.value[0]),v=()=>{o.disabled||(d.value=!d.value)},$=n=>{t.value=n.code,s("update:countryCode",n.code),s("country-change",n);const m=u.value.replace(/^\+\d+\s*/,""),P=`${n.dialCode} ${m}`.trim();u.value=P,s("update:phoneNumber",P),s("update:modelValue",P),d.value=!1},k=n=>{const m=n.target;u.value=m.value;const P=`${S.value.dialCode} ${m.value}`;s("update:modelValue",P),s("update:phoneNumber",m.value),s("input",P)},b=n=>{s("focus",n)},g=n=>{s("blur",n)},w=()=>{var n;(n=c.value)==null||n.focus()},p=n=>{n.target.closest(".freddy-plugins-input-field-container")||(d.value=!1)};return e.watch(()=>o.countryCode,n=>{n&&n!==t.value&&(t.value=n)},{immediate:!0}),e.watch(()=>o.phoneNumber,n=>{n!==void 0&&(u.value=n)}),e.onMounted(()=>{document.addEventListener("click",p)}),e.onUnmounted(()=>{document.removeEventListener("click",p)}),h({focus:w,inputRef:c}),(n,m)=>(e.openBlock(),e.createBlock(F,e.mergeProps(y.value,{onFocus:b,onBlur:g}),{default:e.withCtx(()=>{var P;return[e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-figma-dropdown",`freddy-plugins-figma-dropdown--${n.colorStyle}`]),onClick:v},[e.createElementVNode("span",Is,e.toDisplayString(S.value.code),1),e.createVNode(e.unref(l.IconChevronDown),{class:"freddy-plugins-figma-dropdown-icon"})],2),d.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["freddy-plugins-country-options-dropdown",`freddy-plugins-country-options-dropdown--${n.colorStyle}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value,C=>(e.openBlock(),e.createElementBlock("div",{key:C.code,class:e.normalizeClass(["freddy-plugins-country-option",`freddy-plugins-country-option--${n.colorStyle}`]),onClick:r=>$(C)},[e.createElementVNode("span",ys,e.toDisplayString(C.flag),1),e.createElementVNode("span",ks,e.toDisplayString(C.name),1),e.createElementVNode("span",Cs,e.toDisplayString(C.dialCode),1)],10,gs))),128))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-figma-text-input",`freddy-plugins-figma-text-input--${n.colorStyle}`])},[e.withDirectives(e.createElementVNode("input",{id:(P=a.value)==null?void 0:P.inputId,ref_key:"inputRef",ref:c,"onUpdate:modelValue":m[0]||(m[0]=C=>u.value=C),type:"tel",placeholder:n.placeholder,disabled:n.disabled,readonly:n.readonly,class:"freddy-plugins-figma-phone-input",onInput:k,onFocus:b,onBlur:g},null,40,bs),[[e.vModelText,u.value]]),n.trailingIcon==="IconQuestion"?(e.openBlock(),e.createElementBlock("div",Ps,[n.tooltipText?(e.openBlock(),e.createBlock(N,{key:0,text:n.tooltipText,placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(l.IconQuestion),{class:"freddy-plugins-figma-help-icon-svg"})]),_:1},8,["text"])):(e.openBlock(),e.createBlock(e.unref(l.IconQuestion),{key:1,class:"freddy-plugins-figma-help-icon-svg"}))])):e.createCommentVNode("",!0)],2)]}),_:1},16))}}),ie=l._export_sfc($s,[["__scopeId","data-v-20d005c2"]]),ws=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(f,{emit:h}){const i=f,o=h,s=e.computed(()=>i.variant||i.type||"default"),c=e.computed(()=>({size:i.size,colorStyle:i.colorStyle,state:i.state,destructive:i.destructive,required:i.required,label:i.label,hintText:i.hintText,placeholder:i.placeholder,countryCode:i.countryCode,phoneNumber:i.phoneNumber,countryOptions:i.countryOptions,trailingIcon:i.trailingIcon,tooltipText:i.tooltipText,disabled:i.disabled,readonly:i.readonly})),a=e.computed(()=>({size:i.size,colorStyle:i.colorStyle,state:i.state,destructive:i.destructive,required:i.required,label:i.label,hintText:i.hintText,placeholder:i.placeholder,cardNumber:i.cardNumber,cardType:i.cardType,maskInput:i.maskInput,showCardIcon:i.showCardIcon,trailingIcon:i.trailingIcon,disabled:i.disabled,readonly:i.readonly})),u=e.computed(()=>({size:i.size,colorStyle:i.colorStyle,state:i.state,destructive:i.destructive,required:i.required,label:i.label,hintText:i.hintText,placeholder:i.placeholder,inputType:i.inputType,modelValue:i.modelValue,leadingIcon:i.leadingIcon,trailingIcon:i.trailingIcon,tooltipText:i.tooltipText,disabled:i.disabled,readonly:i.readonly})),d=p=>{o("update:modelValue",p)},t=p=>{o("input",p)},I=p=>{o("focus",p)},y=p=>{o("blur",p)},B=p=>{o("keydown",p)},S=p=>{o("leading-icon-click",p)},v=p=>{o("trailing-icon-click",p)},$=p=>{o("update:countryCode",p)},k=p=>{o("update:phoneNumber",p)},b=p=>{o("country-change",p)},g=p=>{o("update:cardNumber",p)},w=p=>{o("card-type-detected",p)};return(p,n)=>s.value==="phone"?(e.openBlock(),e.createBlock(ie,e.mergeProps({key:0},c.value,{"onUpdate:modelValue":d,"onUpdate:countryCode":$,"onUpdate:phoneNumber":k,onCountryChange:b,onInput:t,onFocus:I,onBlur:y}),null,16)):s.value==="card"?(e.openBlock(),e.createBlock(re,e.mergeProps({key:1},a.value,{"onUpdate:modelValue":d,"onUpdate:cardNumber":g,onCardTypeDetected:w,onInput:t,onFocus:I,onBlur:y,onTrailingIconClick:v}),null,16)):(e.openBlock(),e.createBlock(se,e.mergeProps({key:2},u.value,{"onUpdate:modelValue":d,onInput:t,onFocus:I,onBlur:y,onKeydown:B,onLeadingIconClick:S,onTrailingIconClick:v}),null,16))}}),_s=l._export_sfc(ws,[["__scopeId","data-v-5a761e6c"]]),Bs={name:"ModalBox",props:{isVisible:{type:Boolean,default:!0},largeModel:{type:Boolean,default:!0}},methods:{closeModal(){this.$emit("close")}}},Ss={key:0,class:"fixed z-[9998] top-0 left-0 w-full h-full bg-modalBackgroundBlur flex justify-center items-center"},Es={class:"flex justify-center items-center"},qs={class:"freddy-plugins-modal-header"},Ns={class:"freddy-plugins-modal-body"},Vs={class:"freddy-plugins-modal-footer"};function Ts(f,h,i,o,s,c){return e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[i.isVisible?(e.openBlock(),e.createElementBlock("div",Ss,[e.createElementVNode("div",Es,[e.createElementVNode("div",{class:e.normalizeClass({"p-8 bg-background rounded-[2.5rem] overflow-hidden text-white":i.largeModel,"freddy-plugins-modal-container-large":i.largeModel})},[e.createElementVNode("div",qs,[e.renderSlot(f.$slots,"header")]),e.createElementVNode("div",Ns,[e.renderSlot(f.$slots,"body")]),e.createElementVNode("div",Vs,[e.renderSlot(f.$slots,"footer")])],2)])])):e.createCommentVNode("",!0)]),_:3})}const le=l._export_sfc(Bs,[["render",Ts]]),Ds=e.defineComponent({__name:"InstructionsModal",props:{isVisible:{type:Boolean,required:!0}},setup(f){return(h,i)=>(e.openBlock(),e.createBlock(le,{isVisible:f.isVisible},{header:e.withCtx(()=>[...i[0]||(i[0]=[e.createElementVNode("h2",null,"Instructions",-1)])]),body:e.withCtx(()=>[...i[1]||(i[1]=[e.createElementVNode("p",null,"Instructions",-1)])]),_:1},8,["isVisible"]))}}),xs=["value","placeholder"],Fs=e.defineComponent({__name:"InstructiontextArea",props:{inputValue:{},placeholder:{},height:{}},emits:["update:inputValue"],setup(f,{emit:h}){const i=f,o=h,s=e.computed(()=>i.height||"40px"),c=a=>{const u=a.target;o("update:inputValue",u.value)};return(a,u)=>(e.openBlock(),e.createElementBlock("input",{type:"text",value:a.inputValue,placeholder:a.placeholder,style:e.normalizeStyle({width:"100%",height:s.value}),onInput:c,class:"instruction-text-input","aria-label":"Instruction input"},null,44,xs))}}),As=l._export_sfc(Fs,[["__scopeId","data-v-d4000e78"]]),Ls={class:"freddy-plugins-modal-header"},Ms={class:"freddy-plugins-modal-body"},Rs=e.defineComponent({__name:"ModalOverlay",props:{modalTitle:{},headerClass:{},disableClickOutside:{type:Boolean}},emits:["close"],setup(f,{emit:h}){l.useTheme();const i=f,o=h,s=()=>{o("close")},c=()=>{i.disableClickOutside||s()};return(a,u)=>(e.openBlock(),e.createElementBlock("div",{role:"dialog","aria-modal":"true",class:"freddy-plugins-modal-overlay",onClick:c},[e.createElementVNode("div",{class:"freddy-plugins-modal-content",onClick:u[0]||(u[0]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("header",Ls,[e.createElementVNode("h2",{class:e.normalizeClass(["freddy-plugins-modal-title",a.headerClass])},e.toDisplayString(a.modalTitle),3),e.createElementVNode("button",{class:"freddy-plugins-modal-close",onClick:s},[e.createVNode(l.IconLightCross,{class:"freddy-plugins-modal-close-icon"})])]),e.createElementVNode("div",Ms,[e.renderSlot(a.$slots,"content")])])]))}}),ce=e.defineComponent({__name:"Spinner",props:{customClass:{}},setup(f){return l.useTheme(),(h,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-plugin-spinner",h.customClass])},null,2))}}),zs=["placeholder","maxlength"],A=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(f,{emit:h}){l.useTheme();const i=e.useAttrs(),o=e.ref(null),s=e.ref(null),c=e.ref(null),a=h,u=()=>{var I;(I=s.value)==null||I.focus()},d=()=>{a("update:searchInput",o.value)},t=()=>{a("clear")};return(I,y)=>{var B;return e.openBlock(),e.createElementBlock("div",{ref_key:"dropdownRef",ref:c,class:e.normalizeClass(["freddy-search-wrapper",e.unref(i).class]),onClick:u},[e.createVNode(e.unref(l.IconSearch),{class:"freddy-search-icon"}),e.withDirectives(e.createElementVNode("input",{type:"text",id:"search-input",class:"freddy-search-input",ref_key:"searchInput",ref:s,"onUpdate:modelValue":y[0]||(y[0]=S=>o.value=S),onInput:d,placeholder:I.placeholder,maxlength:I.maxCharLimit},null,40,zs),[[e.vModelText,o.value]]),I.showLoaderForSearch?(e.openBlock(),e.createBlock(ce,{key:0,class:"freddy-search-spinner"})):e.createCommentVNode("",!0),I.showCloseButton&&!I.showLoaderForSearch&&((B=o.value)!=null&&B.length)?(e.openBlock(),e.createBlock(l.IconCross,{key:1,class:"freddy-search-close",onClick:t})):e.createCommentVNode("",!0)],2)}}}),Hs={class:"model-dropdown-selected-content"},Os=["src","alt"],Us={class:"model-dropdown-placeholder"},Ks={key:0,class:"model-dropdown-menu"},js={key:0,class:"model-dropdown-search"},Gs={class:"model-dropdown-options"},Ws=["onClick"],Zs=["src","alt"],Js={class:"model-dropdown-option-value"},Qs={key:0,class:"model-dropdown-no-options"},Ys=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(f,{emit:h}){const i=f,o=h,s=e.ref(!1),c=e.ref(""),a=e.ref(null),u=e.computed(()=>!i.searchable||!c.value?i.options:i.options.filter(B=>B.value.toLowerCase().includes(c.value.toLowerCase()))),d=()=>{s.value=!s.value,s.value||(c.value="")},t=()=>{s.value=!1,c.value=""},I=B=>{a.value=B,o("select",B),t()},y=B=>{B.target.closest(".model-dropdown-wrapper")||t()};return e.watch(s,B=>{B?setTimeout(()=>{document.addEventListener("click",y)},0):document.removeEventListener("click",y)}),e.onUnmounted(()=>{document.removeEventListener("click",y)}),(B,S)=>{var v,$;return e.openBlock(),e.createElementBlock("div",{class:"model-dropdown-wrapper",onKeydown:e.withKeys(t,["esc"])},[e.createElementVNode("div",{class:e.normalizeClass(["model-dropdown-trigger",[`model-dropdown-trigger--${B.size}`,{"model-dropdown-trigger--open":s.value}]]),onClick:d},[e.createElementVNode("div",Hs,[(v=a.value)!=null&&v.imageSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:a.value.imageSrc,alt:a.value.value,class:"model-dropdown-selected-image"},null,8,Os)):e.createCommentVNode("",!0),e.createElementVNode("span",Us,e.toDisplayString((($=a.value)==null?void 0:$.value)||B.modelPlaceholder),1)]),s.value?(e.openBlock(),e.createBlock(l.IconChevronUp,{key:1,class:"model-dropdown-chevron"})):(e.openBlock(),e.createBlock(l.IconChevronDown,{key:0,class:"model-dropdown-chevron"}))],2),s.value?(e.openBlock(),e.createElementBlock("div",Ks,[B.searchable?(e.openBlock(),e.createElementBlock("div",js,[e.createVNode(A,{modelValue:c.value,"onUpdate:modelValue":S[0]||(S[0]=k=>c.value=k),placeholder:B.searchPlaceholder,showCloseButton:!0},null,8,["modelValue","placeholder"])])):e.createCommentVNode("",!0),e.createElementVNode("ul",Gs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,k=>{var b;return e.openBlock(),e.createElementBlock("li",{key:k.id,class:e.normalizeClass(["model-dropdown-option",{"model-dropdown-option--selected":((b=a.value)==null?void 0:b.id)===k.id}]),onClick:g=>I(k)},[k.imageSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:k.imageSrc,alt:k.value,class:"model-dropdown-option-image"},null,8,Zs)):e.createCommentVNode("",!0),e.createElementVNode("span",Js,e.toDisplayString(k.value),1)],10,Ws)}),128)),u.value.length===0?(e.openBlock(),e.createElementBlock("li",Qs," No providers found ")):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)],32)}}}),Xs=l._export_sfc(Ys,[["__scopeId","data-v-75f8685b"]]),ei=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(f,{emit:h}){const i=h,o=c=>{try{JSON.parse(c),i("save",c)}catch{alert("Invalid JSON format. Please fix the JSON before saving.")}},s=c=>{i("toggleAI",c)};return(c,a)=>(e.openBlock(),e.createBlock(x,{"is-visible":f.isVisible,title:"Edit response format",description:"Use a JSON schema to define the structure of the model's response format. Learn more.","initial-content":f.initialJsonContent,"openai-api-key":f.openaiApiKey,"openai-model":f.openaiModel,"openai-organization":f.openaiOrganization,onClose:a[0]||(a[0]=u=>c.$emit("close")),onSave:o,onCancel:a[1]||(a[1]=u=>c.$emit("cancel")),onAskAI:a[2]||(a[2]=u=>c.$emit("askAI",u)),onToggleAI:s},null,8,["is-visible","initial-content","openai-api-key","openai-model","openai-organization"]))}}),oi={key:0,class:"freddy-pagination-nav","aria-label":"Pagination"},ni=["disabled"],ti={class:"freddy-pagination-dynamic-container"},ri=["onClick","disabled"],si=["disabled"],ii=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(f,{emit:h}){const i=f,o=h,s=e.computed(()=>!i.totalItems||isNaN(i.totalItems)?0:Math.ceil(i.totalItems/i.itemsPerPage)),c=e.computed(()=>{const u=[],d=s.value,t=i.currentPage;if(d<=7)for(let I=1;I<=d;I++)u.push(I);else{u.push(1),t>4?u.push("..."):u.push(2,3);for(let I=Math.max(4,t-1);I<=Math.min(d-3,t+1);I++)u.push(I);t<d-4&&u.push("..."),u.push(d-2,d-1,d)}return u});function a(u){u==="..."||u===i.currentPage||typeof u=="number"&&u>=1&&u<=s.value&&o("update:currentPage",u)}return(u,d)=>s.value>0?(e.openBlock(),e.createElementBlock("nav",oi,[e.createElementVNode("button",{class:e.normalizeClass(["freddy-pagination-end-button",{"freddy-pagination-hover-enabled":f.currentPage!==1}]),onClick:d[0]||(d[0]=t=>a(f.currentPage-1)),disabled:f.currentPage===1}," Previous ",10,ni),e.createElementVNode("div",ti,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,t=>(e.openBlock(),e.createElementBlock("button",{key:String(t),class:e.normalizeClass(["freddy-pagination-number-button",{active:t===f.currentPage}]),onClick:I=>a(t),disabled:t==="..."||t===f.currentPage},e.toDisplayString(t),11,ri))),128)),e.createElementVNode("button",{class:e.normalizeClass(["freddy-pagination-end-button",{"freddy-pagination-hover-enabled":f.currentPage!==s.value}]),onClick:d[1]||(d[1]=t=>a(f.currentPage+1)),disabled:f.currentPage===s.value||s.value===0}," Next ",10,si)])])):e.createCommentVNode("",!0)}}),li=["disabled"],ci=e.defineComponent({__name:"SendButton",props:{disabled:{type:Boolean},active:{type:Boolean},size:{}},setup(f){return l.useTheme(),(h,i)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["chat-bar-send-btn",{active:h.active,[`chat-bar-send-btn--${h.size}`]:!0}]),disabled:h.disabled,onClick:i[0]||(i[0]=o=>h.$emit("click"))},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.IconSend),{class:"chat-bar-send-icon"}))],10,li))}}),ai={key:0,class:"skeleton-card"},di={key:0,class:"skeleton-line skeleton-wave skeleton-w-32 skeleton-h-6 mb-2"},ui={key:1,class:"skeleton-paragraph"},hi={key:0,class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40 mb-2"},pi={key:2,class:"skeleton-single-box"},mi={key:0,class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40 mb-2"},vi={key:3,class:"skeleton-table"},fi={key:0,class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-40"},Ii={class:"table-full"},gi=e.defineComponent({__name:"SkeletonLoader",props:{type:{},hasHeader:{type:Boolean},count:{}},setup(f){const h=f,{type:i,hasHeader:o=!1,count:s=5}=h;return(c,a)=>e.unref(i)==="card"?(e.openBlock(),e.createElementBlock("div",ai,[e.unref(o)?(e.openBlock(),e.createElementBlock("div",di)):e.createCommentVNode("",!0),a[0]||(a[0]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-6 skeleton-w-3-4"},null,-1)),a[1]||(a[1]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full"},null,-1)),a[2]||(a[2]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-5-6"},null,-1))])):e.unref(i)==="paragraph"?(e.openBlock(),e.createElementBlock("div",ui,[e.unref(o)?(e.openBlock(),e.createElementBlock("div",hi)):e.createCommentVNode("",!0),a[3]||(a[3]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full"},null,-1)),a[4]||(a[4]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-5-6"},null,-1)),a[5]||(a[5]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-3-4"},null,-1))])):e.unref(i)==="single-box"?(e.openBlock(),e.createElementBlock("div",pi,[e.unref(o)?(e.openBlock(),e.createElementBlock("div",mi)):e.createCommentVNode("",!0),a[6]||(a[6]=e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-4 skeleton-w-full"},null,-1))])):e.unref(i)==="table"?(e.openBlock(),e.createElementBlock("div",vi,[e.unref(o)?(e.openBlock(),e.createElementBlock("div",fi)):e.createCommentVNode("",!0),e.createElementVNode("table",Ii,[e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),u=>(e.openBlock(),e.createElementBlock("tr",{key:u},[...a[7]||(a[7]=[e.createElementVNode("td",{class:"td-padding"},[e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-8 skeleton-w-full"})],-1),e.createElementVNode("td",{class:"td-padding"},[e.createElementVNode("div",{class:"skeleton-line skeleton-wave skeleton-h-8 skeleton-w-full"})],-1)])]))),128))])])])):e.createCommentVNode("",!0)}}),yi={class:"freddy-plugins-slider-container"},ki={key:0,class:"freddy-plugins-slider-header"},Ci={key:0,class:"freddy-plugins-slider-label-section"},bi={class:"freddy-plugins-slider-label"},Pi={key:1,class:"freddy-plugins-slider-value-badge"},$i=["tabindex","aria-valuemin","aria-valuemax","aria-valuenow","aria-disabled","aria-label"],wi={key:1,class:"freddy-plugins-slider-hint"},_i=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(f,{emit:h}){const i=f,o=h,s=e.ref(!1),c=e.ref(null),a=e.computed(()=>Math.round(i.modelValue)),u=e.computed(()=>{const k=i.max-i.min,b=i.modelValue-i.min;return Math.min(100,Math.max(0,b/k*100))}),d=e.computed(()=>u.value),t=k=>{const b=Math.round(k/i.step)*i.step;return Math.min(i.max,Math.max(i.min,b))},I=k=>{if(!c.value)return i.modelValue;const b=c.value.getBoundingClientRect(),g=Math.max(0,Math.min(1,(k-b.left)/b.width)),w=i.min+g*(i.max-i.min),p=Math.round(w/i.step)*i.step;return Math.min(i.max,Math.max(i.min,p))},y=k=>{const b=t(k);b!==i.modelValue&&o("update:modelValue",b)},B=k=>{if(i.disabled)return;k.preventDefault(),k.stopPropagation(),s.value=!0;const b=w=>{if(!s.value)return;w.preventDefault();const p=I(w.clientX);y(p)},g=()=>{s.value=!1,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",g)};document.addEventListener("mousemove",b),document.addEventListener("mouseup",g)},S=k=>{if(i.disabled)return;k.preventDefault(),k.stopPropagation(),s.value=!0;const b=w=>{!s.value||!w.touches[0]||(w.preventDefault(),y(I(w.touches[0].clientX)))},g=()=>{s.value=!1,document.removeEventListener("touchmove",b),document.removeEventListener("touchend",g)};document.addEventListener("touchmove",b),document.addEventListener("touchend",g)},v=k=>{if(i.disabled||s.value)return;k.preventDefault(),k.stopPropagation();const b=I(k.clientX);y(b)},$=k=>{if(i.disabled)return;let b=i.modelValue;switch(k.key){case"ArrowLeft":case"ArrowDown":k.preventDefault(),b=i.modelValue-i.step;break;case"ArrowRight":case"ArrowUp":k.preventDefault(),b=i.modelValue+i.step;break;case"Home":k.preventDefault(),b=i.min;break;case"End":k.preventDefault(),b=i.max;break;case"PageDown":k.preventDefault(),b=i.modelValue-i.step*10;break;case"PageUp":k.preventDefault(),b=i.modelValue+i.step*10;break;default:return}y(b)};return(k,b)=>(e.openBlock(),e.createElementBlock("div",yi,[k.label||k.showValue?(e.openBlock(),e.createElementBlock("div",ki,[k.label?(e.openBlock(),e.createElementBlock("div",Ci,[e.createElementVNode("span",bi,e.toDisplayString(k.label),1),k.tooltip?(e.openBlock(),e.createBlock(N,{key:0,text:k.tooltip,placement:k.tooltipPlacement},{default:e.withCtx(()=>[e.createVNode(l.IconInfoRounded,{class:"freddy-plugins-slider-tooltip-icon"})]),_:1},8,["text","placement"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),k.showValue?(e.openBlock(),e.createElementBlock("div",Pi,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-slider-track-container",{"freddy-plugins-slider-disabled":k.disabled}]),onClick:v,onKeydown:$,tabindex:k.disabled?-1:0,role:"slider","aria-valuemin":k.min,"aria-valuemax":k.max,"aria-valuenow":k.modelValue,"aria-disabled":k.disabled,"aria-label":k.label||"Slider"},[e.createElementVNode("div",{ref_key:"sliderTrack",ref:c,class:"freddy-plugins-slider-track-background"},null,512),e.createElementVNode("div",{class:"freddy-plugins-slider-track-progress",style:e.normalizeStyle({width:u.value+"%"})},null,4),e.createElementVNode("div",{class:e.normalizeClass(["freddy-plugins-slider-thumb",{"freddy-plugins-slider-thumb-dragging":s.value,"freddy-plugins-slider-thumb-disabled":k.disabled}]),style:e.normalizeStyle({left:d.value+"%"}),onMousedown:B,onTouchstart:S},null,38)],42,$i),k.hint?(e.openBlock(),e.createElementBlock("p",wi,e.toDisplayString(k.hint),1)):e.createCommentVNode("",!0)]))}}),Bi=l._export_sfc(_i,[["__scopeId","data-v-7f709ec1"]]),Si={class:"freddy-plugins-snackbar-content"},Ei={class:"freddy-plugins-snackbar-left"},qi={class:"freddy-plugins-snackbar-text"},Ni=["innerHTML"],Vi=["innerHTML"],Ti=["onClick"],Di=e.defineComponent({__name:"SnackBar",setup(f){l.useTheme();const{snackQueue:h}=l.useSnackBar(),i=c=>{switch(c){case"success":return l.IconCheckInCircle;case"danger":return l.IconCross;case"info":return l.IconInfoRounded;default:return l.IconCheckInCircle}},o=e.computed(()=>{const c=h.value[h.value.length-1];if(!c)return"side70";switch(c.toastContainerSize){case"half":return"half";case"full":return"full";default:return"side70"}}),s=c=>{h.value.splice(c,1)};return(c,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-plugins-snackbar-container",`freddy-plugins-snackbar-container--${o.value}`])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(h),(u,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:e.normalizeClass(["freddy-plugins-snackbar",`freddy-plugins-snackbar--${u.toastType}`])},[e.createElementVNode("div",Si,[e.createElementVNode("div",Ei,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i(u.toastType)),{class:e.normalizeClass(["freddy-plugins-snackbar-icon",[u.toastType==="info"&&"freddy-plugins-snackbar-icon--info",u.toastType==="danger"&&"freddy-plugins-snackbar-icon--danger",u.toastType==="success"&&"freddy-plugins-snackbar-icon--success"]])},null,8,["class"])),e.createElementVNode("div",qi,[e.createElementVNode("p",{class:"freddy-plugins-snackbar-title",innerHTML:u.title},null,8,Ni),e.createElementVNode("p",{class:"freddy-plugins-snackbar-message",innerHTML:u.message},null,8,Vi)])]),e.createElementVNode("button",{class:"freddy-plugins-snackbar-close-btn",onClick:t=>s(d)},[e.createVNode(l.IconLightCross,{class:"freddy-plugins-snackbar-close-icon"})],8,Ti)])],2))),128))],2))}}),xi={class:"freddy-plugins-switch-slot__header"},Fi={key:0,class:"freddy-plugins-switch-slot__label-section"},Ai={key:0,class:"freddy-plugins-switch-slot__label"},Li=["aria-checked","tabindex","onKeydown","disabled"],Mi={key:0,class:"freddy-plugins-switch-slot__content"},Ri={key:1,class:"freddy-plugins-switch-slot__hint"},zi=e.defineComponent({__name:"SwitchSlot",props:{modelValue:{type:Boolean},label:{},tooltip:{},tooltipPlacement:{},hint:{},disabled:{type:Boolean},variant:{},showSlotContent:{type:Boolean}},emits:["update:modelValue"],setup(f,{emit:h}){const i=f,o=h,s=c=>{c.stopPropagation(),i.disabled||o("update:modelValue",!i.modelValue)};return(c,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["freddy-plugins-switch-slot",{"freddy-plugins-switch-slot--bordered":c.variant==="bordered","freddy-plugins-switch-slot--disabled":c.disabled}])},[e.createElementVNode("div",xi,[c.label||c.tooltip?(e.openBlock(),e.createElementBlock("div",Fi,[c.label?(e.openBlock(),e.createElementBlock("span",Ai,e.toDisplayString(c.label),1)):e.createCommentVNode("",!0),c.tooltip?(e.openBlock(),e.createBlock(N,{key:1,text:c.tooltip,placement:c.tooltipPlacement},{default:e.withCtx(()=>[e.createVNode(l.IconInfoRounded,{class:"freddy-plugins-switch-slot__tooltip-icon"})]),_:1},8,["text","placement"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("button",{class:e.normalizeClass(["freddy-plugins-switch-slot__switch",{"freddy-plugins-switch-slot__switch--on":c.modelValue}]),"aria-checked":c.modelValue,role:"switch",tabindex:c.disabled?-1:0,onClick:s,onKeydown:[e.withKeys(e.withModifiers(s,["prevent"]),["space"]),e.withKeys(e.withModifiers(s,["prevent"]),["enter"])],disabled:c.disabled},[...a[0]||(a[0]=[e.createElementVNode("span",{class:"freddy-plugins-switch-slot__track"},null,-1),e.createElementVNode("span",{class:"freddy-plugins-switch-slot__thumb"},null,-1)])],42,Li)]),c.showSlotContent?(e.openBlock(),e.createElementBlock("div",Mi,[e.renderSlot(c.$slots,"content",{},void 0,!0)])):e.createCommentVNode("",!0),c.hint?(e.openBlock(),e.createElementBlock("p",Ri,e.toDisplayString(c.hint),1)):e.createCommentVNode("",!0)],2))}}),Hi=l._export_sfc(zi,[["__scopeId","data-v-edc0859a"]]),Oi={class:"freddy-plugin-nav-bar"},Ui=["onClick"],Ki=e.defineComponent({__name:"TabList",props:{tabList:{},currentTab:{default:0},activeStateType:{},orientation:{},fullWidth:{type:Boolean}},emits:["tabSwitch"],setup(f,{emit:h}){const i=f,o=h,s=e.ref(i.currentTab),c=a=>{s.value!==a.id&&(s.value=a.id,o("tabSwitch",a.id))};return(a,u)=>(e.openBlock(),e.createElementBlock("div",Oi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.tabList,(d,t)=>(e.openBlock(),e.createElementBlock("button",{class:"freddy-plugin-tab-list-menu-button",key:t,onClick:I=>c(d)},[e.createTextVNode(e.toDisplayString(d.title)+" ",1),e.createElementVNode("span",{class:e.normalizeClass({"freddy-plugin-active-tab":s.value===d.id})},null,2)],8,Ui))),128))]))}}),ji={class:"freddy-plugins-toast-wrapper"},Gi={class:"freddy-plugins-toast-icon-wrapper"},Wi={class:"freddy-plugins-toast-message"},Zi=["onClick"],Ji=e.defineComponent({__name:"ToastMessage",setup(f){const{toastQueue:h}=l.useToast(),i={success:"freddy-plugins-toast-success",danger:"freddy-plugins-toast-danger",info:"freddy-plugins-toast-info"},o=a=>i[a],s=a=>{switch(a){case"success":return l.IconTick;case"danger":return l.IconCross;case"info":return l.IconInfoRounded;default:return l.IconTick}},c=a=>{h.value.splice(a,1)};return(a,u)=>(e.openBlock(),e.createElementBlock("div",ji,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(h),(d,t)=>(e.openBlock(),e.createElementBlock("div",{key:t,class:e.normalizeClass(["freddy-plugins-toast-item",o(d.toastType)])},[e.createElementVNode("div",Gi,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s(d.toastType)),{class:"freddy-plugins-toast-icon"}))]),e.createElementVNode("span",Wi,e.toDisplayString(d.message),1),e.createElementVNode("button",{class:"freddy-plugins-toast-close-button",onClick:I=>c(t)},[e.createVNode(e.unref(l.IconCross),{class:"freddy-plugins-toast-close-icon"})],8,Zi)],2))),128))]))}}),Qi=["aria-label"],Yi=["innerHTML"],Xi={key:1},el=e.defineComponent({__name:"TooltipV2",props:{text:{},placement:{default:"top"},html:{type:Boolean,default:!1},contentClass:{},delay:{default:200},hideDelay:{default:0}},setup(f){const h=f,i=e.ref(!1),o=e.ref(!1),s=e.ref(null);let c=null,a=null;const u=()=>{a&&(clearTimeout(a),a=null),c&&clearTimeout(c),c=setTimeout(()=>{if(s.value){const y=s.value.getBoundingClientRect();o.value=y.top<150}i.value=!0},h.delay)},d=()=>{c&&(clearTimeout(c),c=null),a=setTimeout(()=>{i.value=!1},h.hideDelay)},t=()=>{u()},I=()=>{d()};return(y,B)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"tooltipWrapper",ref:s,class:"freddy-plugins-tooltip-v2-wrapper",onMouseenter:u,onMouseleave:d,onFocusin:t,onFocusout:I,tabindex:"0"},[e.renderSlot(y.$slots,"default",{},void 0,!0),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[i.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["freddy-plugins-tooltip-v2-content",[y.placement,o.value?"force-bottom":"",y.contentClass]]),role:"tooltip","aria-label":y.text},[e.renderSlot(y.$slots,"content",{},()=>[y.html?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:y.text},null,8,Yi)):(e.openBlock(),e.createElementBlock("span",Xi,e.toDisplayString(y.text),1))],!0)],10,Qi)):e.createCommentVNode("",!0)]),_:3})],544))}}),ol=l._export_sfc(el,[["__scopeId","data-v-55872ec8"]]);function nl(f={}){const{logErrors:h=!0,throwOnCritical:i=!1,maxRetries:o=3}=f,s=e.ref([]),c=e.ref(!1),a=e.ref(0),u=e.computed(()=>s.value.length>0),d=e.computed(()=>s.value[s.value.length-1]||null),t=($,k)=>{const b={message:$ instanceof Error?$.message:String($),stack:$ instanceof Error?$.stack:void 0,timestamp:new Date().toISOString(),context:{...k,retryCount:a.value,userAgent:typeof navigator<"u"?navigator.userAgent:"Unknown"}};if($&&typeof $=="object"&&"status"in $&&(b.code=$.status),s.value.push(b),h&&process.env.NODE_ENV,i&&v($))throw $;return b},I=async($,k)=>{c.value=!0;try{const b=await $();return a.value=0,{data:b,error:null}}catch(b){return{data:null,error:t(b,k)}}finally{c.value=!1}},y=async($,k)=>{let b=null;for(let g=1;g<=o;g++){a.value=g-1;const w=await I($,{...k,attempt:g,maxRetries:o});if(w.data!==null)return w;if(b=w.error,b!=null&&b.code&&typeof b.code=="number"&&b.code>=400&&b.code<500)break;g<o&&await new Promise(p=>setTimeout(p,Math.pow(2,g)*1e3))}return{data:null,error:b}},B=()=>{s.value=[],a.value=0},S=$=>{$>=0&&$<s.value.length&&s.value.splice($,1)},v=$=>{if($ instanceof Error){if($.name==="NetworkError"||$.name==="TypeError")return!1;if($.name==="SyntaxError")return!0}return $&&typeof $=="object"&&"status"in $?$.status>=500:!1};return{errors:e.computed(()=>s.value),hasErrors:u,latestError:d,isLoading:e.computed(()=>c.value),retryCount:e.computed(()=>a.value),handleError:t,handleAsync:I,retryAsync:y,clearErrors:B,clearError:S,isCriticalError:v}}function tl(f={}){const{enableMetrics:h=process.env.NODE_ENV==="development",trackMemory:i=!1,sampleRate:o=.1}=f,s=e.ref([]),c=e.ref(!1),a=e.ref(0),u=e.computed(()=>s.value.length===0?0:s.value.reduce((p,n)=>p+n.renderTime,0)/s.value.length),d=e.computed(()=>s.value.length===0?0:Math.max(...s.value.map(w=>w.renderTime))),t=w=>{!h||Math.random()>o||(c.value=!0,a.value=performance.now(),w&&process.env.NODE_ENV)},I=(w,p=1)=>{if(!c.value||!h)return;const P={renderTime:performance.now()-a.value,componentCount:p,timestamp:new Date().toISOString()};if(i&&"memory"in performance){const C=performance.memory;P.memoryUsage=C.usedJSHeapSize}return s.value.push(P),s.value.length>100&&s.value.shift(),c.value=!1,w&&process.env.NODE_ENV,P},y=async(w,p)=>{t(p);try{const n=await w(),m=I(p)||{renderTime:0,componentCount:1,timestamp:new Date().toISOString()};return{result:n,metrics:m}}catch(n){throw I(p),n}},B=(w,p)=>{let n;return(...m)=>{clearTimeout(n),n=setTimeout(()=>w(...m),p)}},S=(w,p)=>{let n;return(...m)=>{n||(w(...m),n=!0,setTimeout(()=>n=!1,p))}},v=(w,p=5e3)=>{"requestIdleCallback"in window?window.requestIdleCallback(w,{timeout:p}):setTimeout(w,0)},$=async(w,p=0)=>(p>0&&await new Promise(n=>setTimeout(n,p)),new Promise(n=>{v(async()=>{try{const m=await w();n(m)}catch(m){throw m}})})),k=(w,p,n)=>{const m=Math.ceil(n/p),P=Math.ceil(m*.5);return C=>{const r=Math.max(0,Math.floor(C/p)-P),E=Math.min(w.length,r+m+P*2);return{visibleItems:w.slice(r,E),startIndex:r,endIndex:E,totalHeight:w.length*p,offsetY:r*p}}},b=()=>{s.value=[]},g=()=>({totalMeasurements:s.value.length,averageRenderTime:u.value,maxRenderTime:d.value,recentMetrics:s.value.slice(-10)});return h&&process.env.NODE_ENV==="development"&&e.onMounted(()=>{t("Component Mount"),e.nextTick(()=>{I("Component Mount")})}),{metrics:e.computed(()=>s.value),isTracking:e.computed(()=>c.value),averageRenderTime:u,maxRenderTime:d,startTracking:t,endTracking:I,measureAsync:y,debounce:B,throttle:S,scheduleWork:v,lazyLoad:$,createVirtualList:k,clearMetrics:b,getSummary:g}}exports.ConfirmationModal=l._sfc_main;exports.DeleteConfirmationModal=l._sfc_main$1;exports.IconAddChatPop=l.IconAddChatPop;exports.IconAddFileSystem=l.IconAddFileSystem;exports.IconAddPeople=l.IconAddPeople;exports.IconAitronos=l.IconAitronos;exports.IconApple=l.IconApple;exports.IconApplePay=l.IconApplePay;exports.IconAppsGrid=l.IconAppsGrid;exports.IconArrowDown=l.IconArrowDown;exports.IconArrowLeft=l.IconArrowLeft;exports.IconArrowUp=l.IconArrowUp;exports.IconBadgeCheck=l.IconBadgeCheck;exports.IconBroom=l.IconBroom;exports.IconBuildings=l.IconBuildings;exports.IconCalendarWithTickInside=l.IconCalendarWithTickInside;exports.IconCallNotAllowed=l.IconCallNotAllowed;exports.IconCardPay=l.IconCardPay;exports.IconCaution=l.IconCaution;exports.IconChangeLog=l.IconChangeLog;exports.IconCheckCircleFill=l.IconCheckCircleFill;exports.IconCheckInCircle=l.IconCheckInCircle;exports.IconCheckRounded=l.IconCheckRounded;exports.IconChevronDown=l.IconChevronDown;exports.IconChevronLeft=l.IconChevronLeft;exports.IconChevronRight=l.IconChevronRight;exports.IconChevronUp=l.IconChevronUp;exports.IconCircledCheck=l.IconCircledCheck;exports.IconClock=l.IconClock;exports.IconClosedEnvelope=l.IconClosedEnvelope;exports.IconCloudUpload=l.IconCloudUpload;exports.IconConnectorConfluence=l.IconConnectorConfluence;exports.IconConnectorFigma=l.IconConnectorFigma;exports.IconConnectorFreshDesk=l.IconConnectorFreshDesk;exports.IconConnectorGitHub=l.IconConnectorGitHub;exports.IconConnectorJira=l.IconConnectorJira;exports.IconConnectorLinear=l.IconConnectorLinear;exports.IconConnectorNotion=l.IconConnectorNotion;exports.IconConnectorSlack=l.IconConnectorSlack;exports.IconConnectorZapier=l.IconConnectorZapier;exports.IconCopy=l.IconCopy;exports.IconCross=l.IconCross;exports.IconCrossCircleFill=l.IconCrossCircleFill;exports.IconCrossInCircle=l.IconCrossInCircle;exports.IconCurrentTick=l.IconCurrentTick;exports.IconDataUpload=l.IconDataUpload;exports.IconDelete=l.IconDelete;exports.IconDeleteFillRed=l.IconDeleteFillRed;exports.IconDialingPhone=l.IconDialingPhone;exports.IconDisabledAlert=l.IconDisabledAlert;exports.IconDocumentation=l.IconDocumentation;exports.IconDownload=l.IconDownload;exports.IconDribbble=l.IconDribbble;exports.IconDropdownArrow=l.IconDropdownArrow;exports.IconEdit=l.IconEdit;exports.IconEditLinePath=l.IconEditLinePath;exports.IconEllipse=l._sfc_main$2;exports.IconExcelThumbnail=l.IconExcelThumbnail;exports.IconEye=l.IconEye;exports.IconFacebook=l.IconFacebook;exports.IconFigma=l.IconFigma;exports.IconFile=l.IconFile;exports.IconFileSystem=l.IconFileSystem;exports.IconFileUpload=l.IconFileUpload;exports.IconFilter=l.IconFilter;exports.IconFolder=l.IconFolder;exports.IconFreddyHub=l.IconFreddyHub;exports.IconFreddyHubLogo=l.IconFreddyHubLogo;exports.IconFreddyHubNewLogo=l.IconFreddyHubNewLogo;exports.IconFreddyHubTitle=l._sfc_main$3;exports.IconFreddySmall=l.IconFreddySmall;exports.IconGlobExpand=l.IconGlobExpand;exports.IconGlobe=l.IconGlobe;exports.IconGoogle=l.IconGoogle;exports.IconHollowCircle=l.IconHollowCircle;exports.IconHome=l.IconHome;exports.IconInfoRounded=l.IconInfoRounded;exports.IconInvalidInvoice=l.IconInvalidInvoice;exports.IconInvoice=l.IconInvoice;exports.IconInvoiceSwitch=l.IconInvoiceSwitch;exports.IconLapTableBottom=l.IconLapTableBottom;exports.IconLense=l.IconLense;exports.IconLightCross=l.IconLightCross;exports.IconLink04=l.IconLink04;exports.IconLoadingError=l.IconLoadingError;exports.IconLoadingOrg=l.IconLoadingOrg;exports.IconLocationWithCircleIn=l.IconLocationWithCircleIn;exports.IconLock=l.IconLock;exports.IconMarketPlace=l.IconMarketPlace;exports.IconMaximize=l.IconMaximize;exports.IconMicrophone=l.IconMicrophone;exports.IconMutedMicrophone=l.IconMutedMicrophone;exports.IconNewNotification=l.IconNewNotification;exports.IconNewTab=l.IconNewTab;exports.IconNotification=l.IconNotification;exports.IconOpenBook=l.IconOpenBook;exports.IconPaperAirPlane=l.IconPaperAirPlane;exports.IconPauseCircle=l.IconPauseCircle;exports.IconPdfThumbnail=l.IconPdfThumbnail;exports.IconPenEdit=l.IconPenEdit;exports.IconPencil=l.IconPencil;exports.IconPeopleHub=l.IconPeopleHub;exports.IconPersonCircle=l.IconPersonCircle;exports.IconPits=l.IconPits;exports.IconPlay=l.IconPlay;exports.IconPlus=l.IconPlus;exports.IconPolygonDown=l.IconPolygonDown;exports.IconPresentation=l.IconPresentation;exports.IconProgressBase=l.IconProgressBase;exports.IconProgressComplete=l.IconProgressComplete;exports.IconProgressGoing=l.IconProgressGoing;exports.IconPurpose=l.IconPurpose;exports.IconPurseCircleFill=l.IconPurseCircleFill;exports.IconQuestion=l.IconQuestion;exports.IconRadio=l.IconRadio;exports.IconRadioFill=l.IconRadioFill;exports.IconRefresh=l.IconRefresh;exports.IconRevertedTriangle=l.IconRevertedTriangle;exports.IconRobotScreen=l.IconRobotScreen;exports.IconRoundTick=l.IconRoundTick;exports.IconSearch=l.IconSearch;exports.IconSearchOptimised=l.IconSearchOptimised;exports.IconSectionHide=l.IconSectionHide;exports.IconSend=l.IconSend;exports.IconSettings=l.IconSettings;exports.IconSettingsBold=l.IconSettingsBold;exports.IconSize=l.IconSize;exports.IconSliderKnobs=l.IconSliderKnobs;exports.IconSortIdle=l.IconSortIdle;exports.IconSparkle=l.IconSparkle;exports.IconSpotlio=l.IconSpotlio;exports.IconStar=l.IconStar;exports.IconStatistics=l.IconStatistics;exports.IconStopChat=l.IconStopChat;exports.IconStreamLineHub=l.IconStreamLineHub;exports.IconStreamLineHubNewLogo=l.IconStreamLineHubNewLogo;exports.IconSun=l.IconSun;exports.IconSwap=l.IconSwap;exports.IconText=l.IconText;exports.IconTextThumbnail=l.IconTextThumbnail;exports.IconThinDocument=l.IconThinDocument;exports.IconThinFile=l.IconThinFile;exports.IconThumbsDown=l.IconThumbsDown;exports.IconTick=l.IconTick;exports.IconUser=l.IconUser;exports.IconVerticalDots=l.IconVerticalDots;exports.IconVideoCamera=l.IconVideoCamera;exports.IconWarningOctal=l.IconWarningOctal;exports.IconX=l.IconX;exports.IconZip=l._sfc_main$4;exports.aiResponseToChatMessage=l.aiResponseToChatMessage;exports.calculatePercentage=l.calculatePercentage;exports.cloneDeepSafe=l.cloneDeepSafe;exports.copyToClipboard=l.copyToClipboard;exports.createChangesObject=l.createChangesObject;exports.daysInMonth=l.daysInMonth;exports.debounce=l.debounce;exports.deepEqual=l.deepEqual;exports.defaultImageSrc=l.defaultImageSrc;exports.extractStats=l.extractStats;exports.fileSizeFormatter=l.fileSizeFormatter;exports.fillMissingDays=l.fillMissingDays;exports.formatDate=l.formatDate;exports.formatDateToLocaleString=l.formatDateToLocaleString;exports.formatLastUsedDate=l.formatLastUsedDate;exports.getDatesForMonth=l.getDatesForMonth;exports.getDaysInMonth=l.getDaysInMonth;exports.getDisplayContent=l.getDisplayContent;exports.getFileNameFromUrl=l.getFileNameFromUrl;exports.getShortMonthName=l.getShortMonthName;exports.hasOverflow=l.hasOverflow;exports.hasTextImprovements=l.hasTextImprovements;exports.interpolateColor=l.interpolateColor;exports.isValidAIResponse=l.isValidAIResponse;exports.openConfirmBoxModal=l.openConfirmBoxModal;exports.openDeleteConfirmModal=l.openDeleteConfirmModal;exports.parseAITextResponse=l.parseAITextResponse;exports.parseApiResponse=l.parseApiResponse;exports.readableDateFormat=l.readableDateFormat;exports.scrollToBottom=l.scrollToBottom;exports.scrollToElement=l.scrollToElement;exports.useSnackBar=l.useSnackBar;exports.useToast=l.useToast;exports.AdvancedModal=Ne;exports.AnimeSpaceman=we;exports.AssistantField=Y;exports.AssistantList=Oe;exports.AssistantsHeader=eo;exports.AvatarChoosing=X;exports.AvatarList=co;exports.BaseButton=j;exports.BaseInput=F;exports.BaseTabButton=ee;exports.CardInput=re;exports.ChooseAssistantAvatar=qo;exports.CodeBlock=kt;exports.CustomCheckbox=_t;exports.DefaultInput=se;exports.Descriptions=xr;exports.DiffTextarea=Rr;exports.Dropdown=Zr;exports.EditFeaturedExcerptModal=x;exports.EmailCodeVerification=ls;exports.IconStyleDirective=H;exports.InputField=_s;exports.InstructionsModal=Ds;exports.InstructiontextArea=As;exports.ModalBox=le;exports.ModalOverlay=Rs;exports.ModelDropdown=Xs;exports.OutputModeModal=ei;exports.Pagination=ii;exports.PhoneInput=ie;exports.RulesManagement=mn;exports.SearchInput=A;exports.SendButton=ci;exports.SimpleChatInterface=oe;exports.SkeletonLoader=gi;exports.Slider=Bi;exports.SnackBar=Di;exports.SocialButtons=gt;exports.Spinner=ce;exports.Switch=te;exports.SwitchSlot=Hi;exports.TabList=Ki;exports.TextAreaInputField=ne;exports.ToastMessage=Ji;exports.Tooltip=N;exports.TooltipV2=ol;exports.VectorFrame=$n;exports.VectorSection=Kn;exports.VoiceList=Jn;exports.VoiceSelection=K;exports.default=be;exports.frSanitizePlugin=Pe;exports.iconStylePlugin=$e;exports.useErrorHandler=nl;exports.usePerformance=tl;exports.vFrSanitize=O;
81
81
  //# sourceMappingURL=index.cjs.map