@8wave/ai-elements 0.69.0 → 0.70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -5
- package/dist/_chunks/{PkStreamingMarkdown-C0BpOvli.js → PkStreamingMarkdown-CCD_gifi.js} +2 -2
- package/dist/_chunks/{PkStreamingMarkdown-C0BpOvli.js.map → PkStreamingMarkdown-CCD_gifi.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-DzNIkKvZ.js → PkToolShowArtifact-BZ9-wuXH.js} +12 -11
- package/dist/_chunks/PkToolShowArtifact-BZ9-wuXH.js.map +1 -0
- package/dist/_chunks/{PkToolShowCalendarEvent-Dolb7MTf.js → PkToolShowCalendarEvent-BFHzjM9E.js} +2 -2
- package/dist/_chunks/{PkToolShowCalendarEvent-Dolb7MTf.js.map → PkToolShowCalendarEvent-BFHzjM9E.js.map} +1 -1
- package/dist/_chunks/{PkToolShowComparison-BWwQPM6d.js → PkToolShowComparison-D-cY7yXE.js} +1 -1
- package/dist/_chunks/{PkToolShowComparison-BWwQPM6d.js.map → PkToolShowComparison-D-cY7yXE.js.map} +1 -1
- package/dist/_chunks/PkToolShowContactForm-B5Zuup-c.js +2 -0
- package/dist/_chunks/PkToolShowContactForm-izy_eJOv.js +1102 -0
- package/dist/_chunks/PkToolShowContactForm-izy_eJOv.js.map +1 -0
- package/dist/_chunks/{PkToolShowEmail-BrBJY7Op.js → PkToolShowEmail-BhGdH4Ig.js} +1 -1
- package/dist/_chunks/{PkToolShowEmail-BrBJY7Op.js.map → PkToolShowEmail-BhGdH4Ig.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-dnCkJaK8.js → PkToolShowImageGallery-CiN2M02m.js} +3 -3
- package/dist/_chunks/{PkToolShowImageGallery-dnCkJaK8.js.map → PkToolShowImageGallery-CiN2M02m.js.map} +1 -1
- package/dist/_chunks/PkToolShowLocation-CbaF2oBf.js +2 -0
- package/dist/_chunks/PkToolShowLocation-gQtxMrSM.js +4996 -0
- package/dist/_chunks/PkToolShowLocation-gQtxMrSM.js.map +1 -0
- package/dist/_chunks/{PkToolShowMessage-D0hwYIlo.js → PkToolShowMessage-5Luc042T.js} +1 -1
- package/dist/_chunks/{PkToolShowMessage-D0hwYIlo.js.map → PkToolShowMessage-5Luc042T.js.map} +1 -1
- package/dist/_chunks/PkToolShowMultipleChoice-DgfLPaKE.js +2 -0
- package/dist/_chunks/PkToolShowMultipleChoice-WBsP83PW.js +44 -0
- package/dist/_chunks/PkToolShowMultipleChoice-WBsP83PW.js.map +1 -0
- package/dist/_chunks/{PkToolShowProductList-C-t2Q6vG.js → PkToolShowProductList-BSLTdM8w.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-C-t2Q6vG.js.map → PkToolShowProductList-BSLTdM8w.js.map} +1 -1
- package/dist/_chunks/{PkToolShowQrCode-pX-2NQ0q.js → PkToolShowQrCode-DLSOtaV9.js} +1 -1
- package/dist/_chunks/{PkToolShowQrCode-pX-2NQ0q.js.map → PkToolShowQrCode-DLSOtaV9.js.map} +1 -1
- package/dist/_chunks/PkToolShowSources-BZyYFWu6.js +490 -0
- package/dist/_chunks/PkToolShowSources-BZyYFWu6.js.map +1 -0
- package/dist/_chunks/PkToolShowSources-C0Edf43F.js +2 -0
- package/dist/_chunks/PkToolShowSuggestedReply-CMIWzymE.js +2 -0
- package/dist/_chunks/PkToolShowSuggestedReply-PyXHjIMg.js +40 -0
- package/dist/_chunks/PkToolShowSuggestedReply-PyXHjIMg.js.map +1 -0
- package/dist/_chunks/{PkToolShowWeather-BlxQ4-di.js → PkToolShowWeather-BmB6I1CQ.js} +1 -1
- package/dist/_chunks/{PkToolShowWeather-BlxQ4-di.js.map → PkToolShowWeather-BmB6I1CQ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-CflGTyAq.js → PkToolShowWebPages-BQEuy2SB.js} +3 -3
- package/dist/_chunks/{PkToolShowWebPages-CflGTyAq.js.map → PkToolShowWebPages-BQEuy2SB.js.map} +1 -1
- package/dist/_chunks/{PkUrl-BiCK2gUF.js → PkUrl-DbCzf0TH.js} +5 -8
- package/dist/_chunks/{PkUrl-BiCK2gUF.js.map → PkUrl-DbCzf0TH.js.map} +1 -1
- package/dist/_chunks/{VvCheckbox.es-BB__5AQf.js → VvCheckbox.es-xoDP7xfG.js} +1 -1
- package/dist/_chunks/{VvCheckbox.es-BB__5AQf.js.map → VvCheckbox.es-xoDP7xfG.js.map} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-B8vNssFt.js → VvCheckboxGroup.es-CqmkSf32.js} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-B8vNssFt.js.map → VvCheckboxGroup.es-CqmkSf32.js.map} +1 -1
- package/dist/_chunks/{VvCombobox.es-B3EXD0qk.js → VvCombobox.es-8c5A9J7u.js} +1 -1
- package/dist/_chunks/{VvCombobox.es-B3EXD0qk.js.map → VvCombobox.es-8c5A9J7u.js.map} +1 -1
- package/dist/_chunks/{VvInputText.es-Dz2nJhHg.js → VvInputText.es-C3DasKVI.js} +1 -1
- package/dist/_chunks/{VvInputText.es-Dz2nJhHg.js.map → VvInputText.es-C3DasKVI.js.map} +1 -1
- package/dist/_chunks/{VvRadio.es-CBNUR8-A.js → VvRadio.es-DWCbGLSw.js} +1 -1
- package/dist/_chunks/{VvRadio.es-CBNUR8-A.js.map → VvRadio.es-DWCbGLSw.js.map} +1 -1
- package/dist/_chunks/{VvRadioGroup.es-C3cxLQie.js → VvRadioGroup.es-DeZPOSLg.js} +1 -1
- package/dist/_chunks/{VvRadioGroup.es-C3cxLQie.js.map → VvRadioGroup.es-DeZPOSLg.js.map} +1 -1
- package/dist/_chunks/{VvSelect.es-DhnVYyFM.js → VvSelect.es-Cbdxv0hL.js} +1 -1
- package/dist/_chunks/{VvSelect.es-DhnVYyFM.js.map → VvSelect.es-Cbdxv0hL.js.map} +1 -1
- package/dist/_chunks/{VvTextarea.es-CqwOOwHn.js → VvTextarea.es-G6PqQj_w.js} +1 -1
- package/dist/_chunks/{VvTextarea.es-CqwOOwHn.js.map → VvTextarea.es-G6PqQj_w.js.map} +1 -1
- package/dist/_chunks/_plugin-vue_export-helper-C6kC663S.js +8 -0
- package/dist/_chunks/marker-icon-2x-B5zK5Qr3.js +7 -0
- package/dist/_chunks/marker-icon-2x-B5zK5Qr3.js.map +1 -0
- package/dist/_chunks/marker-icon-C9YVKiza.js +7 -0
- package/dist/_chunks/marker-icon-C9YVKiza.js.map +1 -0
- package/dist/_chunks/marker-shadow-C69K8Z1K.js +7 -0
- package/dist/_chunks/marker-shadow-C69K8Z1K.js.map +1 -0
- package/dist/_chunks/schemas-BzxsvNFR.js +3117 -0
- package/dist/_chunks/schemas-BzxsvNFR.js.map +1 -0
- package/dist/_chunks/{src-BRYn66N3.js → src-B7wQQMx2.js} +1 -1
- package/dist/_chunks/{src-BRYn66N3.js.map → src-B7wQQMx2.js.map} +1 -1
- package/dist/_chunks/{useLightbox-RmU8z981.js → useLightbox-krdR1Z0n.js} +2 -2
- package/dist/_chunks/{useLightbox-RmU8z981.js.map → useLightbox-krdR1Z0n.js.map} +1 -1
- package/dist/ai-elements.es.js +7433 -12095
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotError.js +1 -1
- package/dist-vue/PkChatbotFeedbackForm.js +1 -1
- package/dist-vue/PkChatbotFilePreview.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/Media-COOsOMMv.js +120 -0
- package/dist-vue/_chunks/Media-COOsOMMv.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbot-Cy7p5UI_.js → PkChatbot-h7EIb9Y5.js} +61 -60
- package/dist-vue/_chunks/{PkChatbot-Cy7p5UI_.js.map → PkChatbot-h7EIb9Y5.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotError-DOkNTDsc.js → PkChatbotError-CBQaRNse.js} +1 -1
- package/dist-vue/_chunks/{PkChatbotError-DOkNTDsc.js.map → PkChatbotError-CBQaRNse.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotFeedbackForm-C5QLJeUc.js +91 -0
- package/dist-vue/_chunks/PkChatbotFeedbackForm-C5QLJeUc.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotFilePreview-zHYZ0F7j.js → PkChatbotFilePreview-0ow1cjom.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotFilePreview-zHYZ0F7j.js.map → PkChatbotFilePreview-0ow1cjom.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-CXydKByS.js → PkChatbotInput-DjUU_5_9.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotInput-CXydKByS.js.map → PkChatbotInput-DjUU_5_9.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-C7-ZtU0-.js → PkChatbotMessages-DJngZXIX.js} +130 -121
- package/dist-vue/_chunks/PkChatbotMessages-DJngZXIX.js.map +1 -0
- package/dist-vue/_chunks/PkChatbotViewChat-LdHOe19w.js +246 -0
- package/dist-vue/_chunks/PkChatbotViewChat-LdHOe19w.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-Ct0TbDrg.js → PkChatbotViewConversations-BAU8tPTf.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotViewConversations-Ct0TbDrg.js.map → PkChatbotViewConversations-BAU8tPTf.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-BhdCxVSX.js → PkChatbotViewProfile-B_TpBkAf.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-BhdCxVSX.js.map → PkChatbotViewProfile-B_TpBkAf.js.map} +1 -1
- package/dist-vue/_chunks/{PkRelativeTime-Bzh37jv5.js → PkRelativeTime-ivIkVQRR.js} +1 -1
- package/dist-vue/_chunks/{PkRelativeTime-Bzh37jv5.js.map → PkRelativeTime-ivIkVQRR.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-C-XHB63C.js → PkStreamingMarkdown-CGEZEVZF.js} +2 -2
- package/dist-vue/_chunks/{PkStreamingMarkdown-C-XHB63C.js.map → PkStreamingMarkdown-CGEZEVZF.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-pTS7wzhw.js → PkToolShowArtifact-D1PnI-E1.js} +14 -13
- package/dist-vue/_chunks/PkToolShowArtifact-D1PnI-E1.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowCalendarEvent-DQ--fzwb.js → PkToolShowCalendarEvent-HiRf_hSv.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowCalendarEvent-DQ--fzwb.js.map → PkToolShowCalendarEvent-HiRf_hSv.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowComparison-CzRUrjbP.js → PkToolShowComparison-Bll3lc1g.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowComparison-CzRUrjbP.js.map → PkToolShowComparison-Bll3lc1g.js.map} +1 -1
- package/dist-vue/_chunks/PkToolShowContactForm-DQDXyNco.js +130 -0
- package/dist-vue/_chunks/PkToolShowContactForm-DQDXyNco.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowEmail-htn0ivwY.js → PkToolShowEmail-DzYBtaIE.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowEmail-htn0ivwY.js.map → PkToolShowEmail-DzYBtaIE.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-CpU183SC.js → PkToolShowImageGallery-BQtLChsM.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowImageGallery-CpU183SC.js.map → PkToolShowImageGallery-BQtLChsM.js.map} +1 -1
- package/dist-vue/_chunks/PkToolShowLocation-CaG0Txb6.js +148 -0
- package/dist-vue/_chunks/PkToolShowLocation-CaG0Txb6.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowMessage-DtGDm3pq.js → PkToolShowMessage-C4os87fJ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowMessage-DtGDm3pq.js.map → PkToolShowMessage-C4os87fJ.js.map} +1 -1
- package/dist-vue/_chunks/PkToolShowMultipleChoice-DB5ZvvhS.js +45 -0
- package/dist-vue/_chunks/PkToolShowMultipleChoice-DB5ZvvhS.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowProductList-BlkUdbtV.js → PkToolShowProductList-BR14mmfl.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowProductList-BlkUdbtV.js.map → PkToolShowProductList-BR14mmfl.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowQrCode-BUyhM_MN.js → PkToolShowQrCode-CTfDrItd.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowQrCode-BUyhM_MN.js.map → PkToolShowQrCode-CTfDrItd.js.map} +1 -1
- package/dist-vue/_chunks/PkToolShowSources-B_UfP0QT.js +377 -0
- package/dist-vue/_chunks/PkToolShowSources-B_UfP0QT.js.map +1 -0
- package/dist-vue/_chunks/PkToolShowSuggestedReply-BVa6p4DJ.js +40 -0
- package/dist-vue/_chunks/PkToolShowSuggestedReply-BVa6p4DJ.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowWeather-iAV7Hn_J.js → PkToolShowWeather-D3MyAnH4.js} +1 -1
- package/dist-vue/_chunks/{PkToolShowWeather-iAV7Hn_J.js.map → PkToolShowWeather-D3MyAnH4.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-BQp9A4vb.js → PkToolShowWebPages-0pwK7psA.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowWebPages-BQp9A4vb.js.map → PkToolShowWebPages-0pwK7psA.js.map} +1 -1
- package/dist-vue/_chunks/{PkUrl-C9annqfF.js → PkUrl-tuHTaGCy.js} +1 -1
- package/dist-vue/_chunks/{PkUrl-C9annqfF.js.map → PkUrl-tuHTaGCy.js.map} +1 -1
- package/dist-vue/_chunks/{ZodError-B3AvmUCJ.js → ZodError-DkVfTODd.js} +1 -1
- package/dist-vue/_chunks/{ZodError-B3AvmUCJ.js.map → ZodError-DkVfTODd.js.map} +1 -1
- package/dist-vue/_chunks/{apl-Bkqrrr3v.js → apl-j-tvtpTP.js} +1 -1
- package/dist-vue/_chunks/{apl-Bkqrrr3v.js.map → apl-j-tvtpTP.js.map} +1 -1
- package/dist-vue/_chunks/{asciiarmor-DMBg7NdB.js → asciiarmor-JNKKTtQt.js} +1 -1
- package/dist-vue/_chunks/{asciiarmor-DMBg7NdB.js.map → asciiarmor-JNKKTtQt.js.map} +1 -1
- package/dist-vue/_chunks/{asn1-WRfjxqL1.js → asn1-DBQ_amwa.js} +1 -1
- package/dist-vue/_chunks/{asn1-WRfjxqL1.js.map → asn1-DBQ_amwa.js.map} +1 -1
- package/dist-vue/_chunks/{asterisk-DYv-EHWB.js → asterisk-Di3iYNR-.js} +1 -1
- package/dist-vue/_chunks/{asterisk-DYv-EHWB.js.map → asterisk-Di3iYNR-.js.map} +1 -1
- package/dist-vue/_chunks/{brainfuck-hzOnKOH7.js → brainfuck-D8mwwQut.js} +1 -1
- package/dist-vue/_chunks/{brainfuck-hzOnKOH7.js.map → brainfuck-D8mwwQut.js.map} +1 -1
- package/dist-vue/_chunks/{clike-r66wHNGT.js → clike-I6ihTsJ5.js} +1 -1
- package/dist-vue/_chunks/{clike-r66wHNGT.js.map → clike-I6ihTsJ5.js.map} +1 -1
- package/dist-vue/_chunks/{clojure-BDb_WsAm.js → clojure-CGENQS-R.js} +1 -1
- package/dist-vue/_chunks/{clojure-BDb_WsAm.js.map → clojure-CGENQS-R.js.map} +1 -1
- package/dist-vue/_chunks/{cmake-Curqstum.js → cmake-D2jqXHLk.js} +1 -1
- package/dist-vue/_chunks/{cmake-Curqstum.js.map → cmake-D2jqXHLk.js.map} +1 -1
- package/dist-vue/_chunks/{cobol-BAx4MdII.js → cobol-Db3IHNru.js} +1 -1
- package/dist-vue/_chunks/{cobol-BAx4MdII.js.map → cobol-Db3IHNru.js.map} +1 -1
- package/dist-vue/_chunks/{coffeescript-jbcF4nR3.js → coffeescript-B4Rd3RcP.js} +1 -1
- package/dist-vue/_chunks/{coffeescript-jbcF4nR3.js.map → coffeescript-B4Rd3RcP.js.map} +1 -1
- package/dist-vue/_chunks/{commonlisp-BXKJxcTF.js → commonlisp-B-ehiawF.js} +1 -1
- package/dist-vue/_chunks/{commonlisp-BXKJxcTF.js.map → commonlisp-B-ehiawF.js.map} +1 -1
- package/dist-vue/_chunks/createChatbotApiClient-C520OTrB.js +521 -0
- package/dist-vue/_chunks/createChatbotApiClient-C520OTrB.js.map +1 -0
- package/dist-vue/_chunks/{crystal-Dq4io9oq.js → crystal-Bj2fwY3J.js} +1 -1
- package/dist-vue/_chunks/{crystal-Dq4io9oq.js.map → crystal-Bj2fwY3J.js.map} +1 -1
- package/dist-vue/_chunks/{css-Bd9Y1kSi.js → css-CDqbdUZS.js} +1 -1
- package/dist-vue/_chunks/{css-Bd9Y1kSi.js.map → css-CDqbdUZS.js.map} +1 -1
- package/dist-vue/_chunks/{cypher-D14rILSd.js → cypher-BPgl78lW.js} +1 -1
- package/dist-vue/_chunks/{cypher-D14rILSd.js.map → cypher-BPgl78lW.js.map} +1 -1
- package/dist-vue/_chunks/{d-B-E6YUkN.js → d-_9PAw1JO.js} +1 -1
- package/dist-vue/_chunks/{d-B-E6YUkN.js.map → d-_9PAw1JO.js.map} +1 -1
- package/dist-vue/_chunks/{diff-BPPcQvHC.js → diff-C_qwk3ek.js} +1 -1
- package/dist-vue/_chunks/{diff-BPPcQvHC.js.map → diff-C_qwk3ek.js.map} +1 -1
- package/dist-vue/_chunks/{dist-CJYiwDlx.js → dist-2RCoY9yL.js} +2 -2
- package/dist-vue/_chunks/{dist-CJYiwDlx.js.map → dist-2RCoY9yL.js.map} +1 -1
- package/dist-vue/_chunks/{dist-DEe8jwtO.js → dist-B504iqq4.js} +3 -3
- package/dist-vue/_chunks/{dist-DEe8jwtO.js.map → dist-B504iqq4.js.map} +1 -1
- package/dist-vue/_chunks/{dist-BHuX2VvC.js → dist-BbACD7ZF.js} +3 -3
- package/dist-vue/_chunks/{dist-BHuX2VvC.js.map → dist-BbACD7ZF.js.map} +1 -1
- package/dist-vue/_chunks/{dist-Bh5Q6aSI2.js → dist-BfWfkbOA.js} +2 -2
- package/dist-vue/_chunks/dist-BfWfkbOA.js.map +1 -0
- package/dist-vue/_chunks/{dist-Qq_6SbFF.js → dist-BnR5Kl9J.js} +3 -3
- package/dist-vue/_chunks/{dist-Qq_6SbFF.js.map → dist-BnR5Kl9J.js.map} +1 -1
- package/dist-vue/_chunks/{dist-KPI2eL8F.js → dist-Bx_jrcne.js} +2 -2
- package/dist-vue/_chunks/{dist-KPI2eL8F.js.map → dist-Bx_jrcne.js.map} +1 -1
- package/dist-vue/_chunks/{dist-CAXUIcdd.js → dist-C4DKJxXu.js} +4 -4
- package/dist-vue/_chunks/{dist-CAXUIcdd.js.map → dist-C4DKJxXu.js.map} +1 -1
- package/dist-vue/_chunks/{dist-CAZOa5qs2.js → dist-C9oRomIQ.js} +3 -3
- package/dist-vue/_chunks/dist-C9oRomIQ.js.map +1 -0
- package/dist-vue/_chunks/{dist-DfEAZDKB.js → dist-COvC03Xx.js} +3 -3
- package/dist-vue/_chunks/{dist-DfEAZDKB.js.map → dist-COvC03Xx.js.map} +1 -1
- package/dist-vue/_chunks/{dist-D-VT7gvP.js → dist-CwB_dFae.js} +3 -3
- package/dist-vue/_chunks/{dist-D-VT7gvP.js.map → dist-CwB_dFae.js.map} +1 -1
- package/dist-vue/_chunks/{dist-BaIe783A.js → dist-Cz8slHpf.js} +2 -2
- package/dist-vue/_chunks/{dist-BaIe783A.js.map → dist-Cz8slHpf.js.map} +1 -1
- package/dist-vue/_chunks/{dist-DV82RztV.js → dist-D-G-983p.js} +3 -3
- package/dist-vue/_chunks/{dist-DV82RztV.js.map → dist-D-G-983p.js.map} +1 -1
- package/dist-vue/_chunks/{dist-BNLIqE7O.js → dist-DGsr6BFK.js} +2 -2
- package/dist-vue/_chunks/{dist-BNLIqE7O.js.map → dist-DGsr6BFK.js.map} +1 -1
- package/dist-vue/_chunks/{dist-DMP9Xsk0.js → dist-DJFxbNlz.js} +2 -2
- package/dist-vue/_chunks/{dist-DMP9Xsk0.js.map → dist-DJFxbNlz.js.map} +1 -1
- package/dist-vue/_chunks/{dist-bUGhZmKp.js → dist-DKeYnhzh.js} +5 -5
- package/dist-vue/_chunks/{dist-bUGhZmKp.js.map → dist-DKeYnhzh.js.map} +1 -1
- package/dist-vue/_chunks/{dist--mE2E_mM.js → dist-DL84m6GA.js} +1 -1
- package/dist-vue/_chunks/{dist--mE2E_mM.js.map → dist-DL84m6GA.js.map} +1 -1
- package/dist-vue/_chunks/{dist-QbFF3eM_.js → dist-DS-IY-lt.js} +4 -4
- package/dist-vue/_chunks/{dist-QbFF3eM_.js.map → dist-DS-IY-lt.js.map} +1 -1
- package/dist-vue/_chunks/{dist-s_XUA-aw.js → dist-DZloX6N0.js} +3 -3
- package/dist-vue/_chunks/{dist-s_XUA-aw.js.map → dist-DZloX6N0.js.map} +1 -1
- package/dist-vue/_chunks/{dist-jVwgEJDw.js → dist-DapfuoOT.js} +3 -3
- package/dist-vue/_chunks/{dist-jVwgEJDw.js.map → dist-DapfuoOT.js.map} +1 -1
- package/dist-vue/_chunks/{dist-BWXfA4NS.js → dist-DmUxIVrQ.js} +5 -5
- package/dist-vue/_chunks/{dist-BWXfA4NS.js.map → dist-DmUxIVrQ.js.map} +1 -1
- package/dist-vue/_chunks/{dist-BQRG0D3Y.js → dist-LX3EryGA.js} +2 -2
- package/dist-vue/_chunks/{dist-BQRG0D3Y.js.map → dist-LX3EryGA.js.map} +1 -1
- package/dist-vue/_chunks/{dist-afJW4ohP2.js → dist-Z_cFz9nA.js} +2 -2
- package/dist-vue/_chunks/dist-Z_cFz9nA.js.map +1 -0
- package/dist-vue/_chunks/{dist-DVM_p-M1.js → dist-mJVylhvZ.js} +4 -4
- package/dist-vue/_chunks/{dist-DVM_p-M1.js.map → dist-mJVylhvZ.js.map} +1 -1
- package/dist-vue/_chunks/{dockerfile-CGxYmrOo.js → dockerfile-nMSg2tXY.js} +2 -2
- package/dist-vue/_chunks/{dockerfile-CGxYmrOo.js.map → dockerfile-nMSg2tXY.js.map} +1 -1
- package/dist-vue/_chunks/{dtd-ztbg9nev.js → dtd-BhtRjlzo.js} +1 -1
- package/dist-vue/_chunks/{dtd-ztbg9nev.js.map → dtd-BhtRjlzo.js.map} +1 -1
- package/dist-vue/_chunks/{dylan-Do2p-AA-.js → dylan-DyLL0Sxl.js} +1 -1
- package/dist-vue/_chunks/{dylan-Do2p-AA-.js.map → dylan-DyLL0Sxl.js.map} +1 -1
- package/dist-vue/_chunks/{ebnf-ChJPn51D.js → ebnf-DcBh-k1T.js} +1 -1
- package/dist-vue/_chunks/{ebnf-ChJPn51D.js.map → ebnf-DcBh-k1T.js.map} +1 -1
- package/dist-vue/_chunks/{ecl-ztl4D9j5.js → ecl-C-A1gGx7.js} +1 -1
- package/dist-vue/_chunks/{ecl-ztl4D9j5.js.map → ecl-C-A1gGx7.js.map} +1 -1
- package/dist-vue/_chunks/{eiffel-BYAAf3D8.js → eiffel-DwgfvIBI.js} +1 -1
- package/dist-vue/_chunks/{eiffel-BYAAf3D8.js.map → eiffel-DwgfvIBI.js.map} +1 -1
- package/dist-vue/_chunks/{elm-DFquGUxW.js → elm-RPF69bOV.js} +1 -1
- package/dist-vue/_chunks/{elm-DFquGUxW.js.map → elm-RPF69bOV.js.map} +1 -1
- package/dist-vue/_chunks/{erlang-BIndT8-8.js → erlang-BvNh96Ir.js} +1 -1
- package/dist-vue/_chunks/{erlang-BIndT8-8.js.map → erlang-BvNh96Ir.js.map} +1 -1
- package/dist-vue/_chunks/{factor-DqGzyyvS.js → factor-B_mOIxzF.js} +2 -2
- package/dist-vue/_chunks/{factor-DqGzyyvS.js.map → factor-B_mOIxzF.js.map} +1 -1
- package/dist-vue/_chunks/{fcl-MTt_AC1b.js → fcl-C9ulsEA4.js} +1 -1
- package/dist-vue/_chunks/{fcl-MTt_AC1b.js.map → fcl-C9ulsEA4.js.map} +1 -1
- package/dist-vue/_chunks/{forth-BPoSoJYE.js → forth-CFaZGhGS.js} +1 -1
- package/dist-vue/_chunks/{forth-BPoSoJYE.js.map → forth-CFaZGhGS.js.map} +1 -1
- package/dist-vue/_chunks/{fortran-BmHZEBN4.js → fortran-Cjm6fEBu.js} +1 -1
- package/dist-vue/_chunks/{fortran-BmHZEBN4.js.map → fortran-Cjm6fEBu.js.map} +1 -1
- package/dist-vue/_chunks/{gas-7ZHFSr9Y.js → gas-C3adNyJH.js} +1 -1
- package/dist-vue/_chunks/{gas-7ZHFSr9Y.js.map → gas-C3adNyJH.js.map} +1 -1
- package/dist-vue/_chunks/{gherkin-DiGPpFIT.js → gherkin-DFFRCqQB.js} +1 -1
- package/dist-vue/_chunks/{gherkin-DiGPpFIT.js.map → gherkin-DFFRCqQB.js.map} +1 -1
- package/dist-vue/_chunks/{groovy-DdKIH6vq.js → groovy-BHcqGGgZ.js} +1 -1
- package/dist-vue/_chunks/{groovy-DdKIH6vq.js.map → groovy-BHcqGGgZ.js.map} +1 -1
- package/dist-vue/_chunks/{haskell-DAISwZqR.js → haskell-BB45MUCR.js} +1 -1
- package/dist-vue/_chunks/{haskell-DAISwZqR.js.map → haskell-BB45MUCR.js.map} +1 -1
- package/dist-vue/_chunks/{haxe-CcCnoX02.js → haxe-QBohTRDI.js} +1 -1
- package/dist-vue/_chunks/{haxe-CcCnoX02.js.map → haxe-QBohTRDI.js.map} +1 -1
- package/dist-vue/_chunks/{http-Dy51A1Ji.js → http-HqJENFoz.js} +1 -1
- package/dist-vue/_chunks/{http-Dy51A1Ji.js.map → http-HqJENFoz.js.map} +1 -1
- package/dist-vue/_chunks/{idl-Cf5JG3Ez.js → idl-DZZwNvlw.js} +1 -1
- package/dist-vue/_chunks/{idl-Cf5JG3Ez.js.map → idl-DZZwNvlw.js.map} +1 -1
- package/dist-vue/_chunks/index.es-CikrfdXD.js +950 -0
- package/dist-vue/_chunks/index.es-CikrfdXD.js.map +1 -0
- package/dist-vue/_chunks/{javascript-CzLVX0gM.js → javascript-C85sLH7Y.js} +1 -1
- package/dist-vue/_chunks/{javascript-CzLVX0gM.js.map → javascript-C85sLH7Y.js.map} +1 -1
- package/dist-vue/_chunks/{julia-B2PXBujh.js → julia-ChIE7-ml.js} +1 -1
- package/dist-vue/_chunks/{julia-B2PXBujh.js.map → julia-ChIE7-ml.js.map} +1 -1
- package/dist-vue/_chunks/{livescript-2I87cCXG.js → livescript-BCs3u_kv.js} +1 -1
- package/dist-vue/_chunks/{livescript-2I87cCXG.js.map → livescript-BCs3u_kv.js.map} +1 -1
- package/dist-vue/_chunks/{lua-C3mMI1er.js → lua-DzZVFmfH.js} +1 -1
- package/dist-vue/_chunks/{lua-C3mMI1er.js.map → lua-DzZVFmfH.js.map} +1 -1
- package/dist-vue/_chunks/{mathematica-fQn4Bu4o.js → mathematica-Zz2lXOfW.js} +1 -1
- package/dist-vue/_chunks/{mathematica-fQn4Bu4o.js.map → mathematica-Zz2lXOfW.js.map} +1 -1
- package/dist-vue/_chunks/{mbox-DKAPFpEV.js → mbox-CuPDY4hp.js} +1 -1
- package/dist-vue/_chunks/{mbox-DKAPFpEV.js.map → mbox-CuPDY4hp.js.map} +1 -1
- package/dist-vue/_chunks/{mirc-BjO0qN2s.js → mirc-DwrsqNtD.js} +1 -1
- package/dist-vue/_chunks/{mirc-BjO0qN2s.js.map → mirc-DwrsqNtD.js.map} +1 -1
- package/dist-vue/_chunks/{mllike-BlZyj79n.js → mllike-76cVByXA.js} +1 -1
- package/dist-vue/_chunks/{mllike-BlZyj79n.js.map → mllike-76cVByXA.js.map} +1 -1
- package/dist-vue/_chunks/{modelica-QjIv2_JC.js → modelica-kytS8Bwg.js} +1 -1
- package/dist-vue/_chunks/{modelica-QjIv2_JC.js.map → modelica-kytS8Bwg.js.map} +1 -1
- package/dist-vue/_chunks/{mscgen-LfC5dXDe.js → mscgen-CoPuHfjN.js} +1 -1
- package/dist-vue/_chunks/{mscgen-LfC5dXDe.js.map → mscgen-CoPuHfjN.js.map} +1 -1
- package/dist-vue/_chunks/{mumps-Dv1DAXnR.js → mumps-B2uz6FeJ.js} +1 -1
- package/dist-vue/_chunks/{mumps-Dv1DAXnR.js.map → mumps-B2uz6FeJ.js.map} +1 -1
- package/dist-vue/_chunks/{nginx-3DgpfXl3.js → nginx-BSBpB1IU.js} +1 -1
- package/dist-vue/_chunks/{nginx-3DgpfXl3.js.map → nginx-BSBpB1IU.js.map} +1 -1
- package/dist-vue/_chunks/{nsis-K3Sov04-.js → nsis-R5ELJwT9.js} +2 -2
- package/dist-vue/_chunks/{nsis-K3Sov04-.js.map → nsis-R5ELJwT9.js.map} +1 -1
- package/dist-vue/_chunks/{ntriples-BEnyXf7m.js → ntriples-CAwEARBj.js} +1 -1
- package/dist-vue/_chunks/{ntriples-BEnyXf7m.js.map → ntriples-CAwEARBj.js.map} +1 -1
- package/dist-vue/_chunks/{octave-CyLDdHqN.js → octave-Ufq41PR2.js} +1 -1
- package/dist-vue/_chunks/{octave-CyLDdHqN.js.map → octave-Ufq41PR2.js.map} +1 -1
- package/dist-vue/_chunks/{oz-D5CDtCy5.js → oz-gzP8z3Q6.js} +1 -1
- package/dist-vue/_chunks/{oz-D5CDtCy5.js.map → oz-gzP8z3Q6.js.map} +1 -1
- package/dist-vue/_chunks/{pascal-BSLSyZrm.js → pascal-Ccg4lI6j.js} +1 -1
- package/dist-vue/_chunks/{pascal-BSLSyZrm.js.map → pascal-Ccg4lI6j.js.map} +1 -1
- package/dist-vue/_chunks/{perl-DBW5T0Wn.js → perl-64iNbjRD.js} +1 -1
- package/dist-vue/_chunks/{perl-DBW5T0Wn.js.map → perl-64iNbjRD.js.map} +1 -1
- package/dist-vue/_chunks/{pig-C5Bshhgj.js → pig-CsJsXnem.js} +1 -1
- package/dist-vue/_chunks/{pig-C5Bshhgj.js.map → pig-CsJsXnem.js.map} +1 -1
- package/dist-vue/_chunks/{powershell-BEB8cXp1.js → powershell-CPnsuu0v.js} +1 -1
- package/dist-vue/_chunks/{powershell-BEB8cXp1.js.map → powershell-CPnsuu0v.js.map} +1 -1
- package/dist-vue/_chunks/{properties-Dywxo8ET.js → properties-CEGInQuZ.js} +1 -1
- package/dist-vue/_chunks/{properties-Dywxo8ET.js.map → properties-CEGInQuZ.js.map} +1 -1
- package/dist-vue/_chunks/{protobuf-236BAJ7w.js → protobuf-BGU8l-K6.js} +1 -1
- package/dist-vue/_chunks/{protobuf-236BAJ7w.js.map → protobuf-BGU8l-K6.js.map} +1 -1
- package/dist-vue/_chunks/{pug-cbZddqK7.js → pug-DMZOuiBR.js} +2 -2
- package/dist-vue/_chunks/{pug-cbZddqK7.js.map → pug-DMZOuiBR.js.map} +1 -1
- package/dist-vue/_chunks/{puppet-C2NL98jI.js → puppet-CT38RAOR.js} +1 -1
- package/dist-vue/_chunks/{puppet-C2NL98jI.js.map → puppet-CT38RAOR.js.map} +1 -1
- package/dist-vue/_chunks/{python-CwQbjwek.js → python-BmpRibCQ.js} +1 -1
- package/dist-vue/_chunks/{python-CwQbjwek.js.map → python-BmpRibCQ.js.map} +1 -1
- package/dist-vue/_chunks/{q-BSTDwNDO.js → q-CtSYDlyO.js} +1 -1
- package/dist-vue/_chunks/{q-BSTDwNDO.js.map → q-CtSYDlyO.js.map} +1 -1
- package/dist-vue/_chunks/{r-DFZgsfAZ.js → r-oVGiwSoK.js} +1 -1
- package/dist-vue/_chunks/{r-DFZgsfAZ.js.map → r-oVGiwSoK.js.map} +1 -1
- package/dist-vue/_chunks/{rpm-C0LbsDPX.js → rpm-B5gOa5-q.js} +1 -1
- package/dist-vue/_chunks/{rpm-C0LbsDPX.js.map → rpm-B5gOa5-q.js.map} +1 -1
- package/dist-vue/_chunks/{ruby-Bier99ao.js → ruby-34fuN336.js} +1 -1
- package/dist-vue/_chunks/{ruby-Bier99ao.js.map → ruby-34fuN336.js.map} +1 -1
- package/dist-vue/_chunks/{sas-VrUpo2iQ.js → sas-BlnUKWuD.js} +1 -1
- package/dist-vue/_chunks/{sas-VrUpo2iQ.js.map → sas-BlnUKWuD.js.map} +1 -1
- package/dist-vue/_chunks/{scheme-D6LSF3th.js → scheme-Ba-z_mxe.js} +1 -1
- package/dist-vue/_chunks/{scheme-D6LSF3th.js.map → scheme-Ba-z_mxe.js.map} +1 -1
- package/dist-vue/_chunks/{shell-Pil6sZYj.js → shell-B-EgOeQy.js} +1 -1
- package/dist-vue/_chunks/{shell-Pil6sZYj.js.map → shell-B-EgOeQy.js.map} +1 -1
- package/dist-vue/_chunks/{sieve-BP6vUMh6.js → sieve-DsG7bfYX.js} +1 -1
- package/dist-vue/_chunks/{sieve-BP6vUMh6.js.map → sieve-DsG7bfYX.js.map} +1 -1
- package/dist-vue/_chunks/{simple-mode-BG7WQO3g.js → simple-mode-wQYx-pPa.js} +1 -1
- package/dist-vue/_chunks/{simple-mode-BG7WQO3g.js.map → simple-mode-wQYx-pPa.js.map} +1 -1
- package/dist-vue/_chunks/{smalltalk-BnTD_-u6.js → smalltalk-ChZvyDpP.js} +1 -1
- package/dist-vue/_chunks/{smalltalk-BnTD_-u6.js.map → smalltalk-ChZvyDpP.js.map} +1 -1
- package/dist-vue/_chunks/{solr-VuxI6OR2.js → solr-Dqcv2AYp.js} +1 -1
- package/dist-vue/_chunks/{solr-VuxI6OR2.js.map → solr-Dqcv2AYp.js.map} +1 -1
- package/dist-vue/_chunks/{sparql-7LilzgeP.js → sparql-DqMXm2dv.js} +1 -1
- package/dist-vue/_chunks/{sparql-7LilzgeP.js.map → sparql-DqMXm2dv.js.map} +1 -1
- package/dist-vue/_chunks/{spreadsheet-CMp1pfGY.js → spreadsheet-DZEh4bps.js} +1 -1
- package/dist-vue/_chunks/{spreadsheet-CMp1pfGY.js.map → spreadsheet-DZEh4bps.js.map} +1 -1
- package/dist-vue/_chunks/{sql-7pX-pbPB.js → sql-MyS5CFp1.js} +1 -1
- package/dist-vue/_chunks/{sql-7pX-pbPB.js.map → sql-MyS5CFp1.js.map} +1 -1
- package/dist-vue/_chunks/{src-DjRNH9vV.js → src-BteqqLGW.js} +1 -1
- package/dist-vue/_chunks/{src-DjRNH9vV.js.map → src-BteqqLGW.js.map} +1 -1
- package/dist-vue/_chunks/{stex-Bb7D4YTq.js → stex-CuUykOIw.js} +1 -1
- package/dist-vue/_chunks/{stex-Bb7D4YTq.js.map → stex-CuUykOIw.js.map} +1 -1
- package/dist-vue/_chunks/{stylus-DtQ7d5hI.js → stylus-BIh9GBXG.js} +1 -1
- package/dist-vue/_chunks/{stylus-DtQ7d5hI.js.map → stylus-BIh9GBXG.js.map} +1 -1
- package/dist-vue/_chunks/{swift-BUw5YtkI.js → swift-En1d22e-.js} +1 -1
- package/dist-vue/_chunks/{swift-BUw5YtkI.js.map → swift-En1d22e-.js.map} +1 -1
- package/dist-vue/_chunks/{tcl-DXJDyEhN.js → tcl-CA3XR2Sh.js} +1 -1
- package/dist-vue/_chunks/{tcl-DXJDyEhN.js.map → tcl-CA3XR2Sh.js.map} +1 -1
- package/dist-vue/_chunks/{textile-CFJlGF4J.js → textile-CKe5SU6F.js} +1 -1
- package/dist-vue/_chunks/{textile-CFJlGF4J.js.map → textile-CKe5SU6F.js.map} +1 -1
- package/dist-vue/_chunks/{tiddlywiki-BcfgI-U0.js → tiddlywiki-UOzNZSPW.js} +1 -1
- package/dist-vue/_chunks/{tiddlywiki-BcfgI-U0.js.map → tiddlywiki-UOzNZSPW.js.map} +1 -1
- package/dist-vue/_chunks/{tiki-Ck3ovlwE.js → tiki-CTiuYP9v.js} +1 -1
- package/dist-vue/_chunks/{tiki-Ck3ovlwE.js.map → tiki-CTiuYP9v.js.map} +1 -1
- package/dist-vue/_chunks/{toml-Cj82erLE.js → toml-DDNufn3M.js} +1 -1
- package/dist-vue/_chunks/{toml-Cj82erLE.js.map → toml-DDNufn3M.js.map} +1 -1
- package/dist-vue/_chunks/{troff-CizaXfug.js → troff-DW8Y_3S4.js} +1 -1
- package/dist-vue/_chunks/{troff-CizaXfug.js.map → troff-DW8Y_3S4.js.map} +1 -1
- package/dist-vue/_chunks/{ttcn-mPO-QsiQ.js → ttcn-C-DIoNCg.js} +1 -1
- package/dist-vue/_chunks/{ttcn-mPO-QsiQ.js.map → ttcn-C-DIoNCg.js.map} +1 -1
- package/dist-vue/_chunks/{ttcn-cfg-c_AW8b7V.js → ttcn-cfg-B4ziRnM-.js} +1 -1
- package/dist-vue/_chunks/{ttcn-cfg-c_AW8b7V.js.map → ttcn-cfg-B4ziRnM-.js.map} +1 -1
- package/dist-vue/_chunks/{turtle-BF5AsFbP.js → turtle-CARqpYpc.js} +1 -1
- package/dist-vue/_chunks/{turtle-BF5AsFbP.js.map → turtle-CARqpYpc.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-ys9uGP5v.js → useChatbotStore-C9xj40sY.js} +24 -24
- package/dist-vue/_chunks/{useChatbotStore-ys9uGP5v.js.map → useChatbotStore-C9xj40sY.js.map} +1 -1
- package/dist-vue/_chunks/{useLightbox-CRpWDdlN.js → useLightbox-CsBDIq4B.js} +2 -2
- package/dist-vue/_chunks/{useLightbox-CRpWDdlN.js.map → useLightbox-CsBDIq4B.js.map} +1 -1
- package/dist-vue/_chunks/useSafeLocalStorage-C1GCM7nD.js +15 -0
- package/dist-vue/_chunks/useSafeLocalStorage-C1GCM7nD.js.map +1 -0
- package/dist-vue/_chunks/{utils-DBd_X5-V.js → utils-D1pBqT-n.js} +2 -2
- package/dist-vue/_chunks/{utils-DBd_X5-V.js.map → utils-D1pBqT-n.js.map} +1 -1
- package/dist-vue/_chunks/{vb-CeqEYgxc.js → vb-jy9Yl8VS.js} +1 -1
- package/dist-vue/_chunks/{vb-CeqEYgxc.js.map → vb-jy9Yl8VS.js.map} +1 -1
- package/dist-vue/_chunks/{vbscript-Dy7to0l6.js → vbscript-srk6lbz5.js} +1 -1
- package/dist-vue/_chunks/{vbscript-Dy7to0l6.js.map → vbscript-srk6lbz5.js.map} +1 -1
- package/dist-vue/_chunks/{velocity-CKubdsu-.js → velocity-DYmMYLwp.js} +1 -1
- package/dist-vue/_chunks/{velocity-CKubdsu-.js.map → velocity-DYmMYLwp.js.map} +1 -1
- package/dist-vue/_chunks/{verilog-BhlfpzOZ.js → verilog-UsIZeNkB.js} +1 -1
- package/dist-vue/_chunks/{verilog-BhlfpzOZ.js.map → verilog-UsIZeNkB.js.map} +1 -1
- package/dist-vue/_chunks/{vhdl-8WXkWtGM.js → vhdl-DNCP7Bn1.js} +1 -1
- package/dist-vue/_chunks/{vhdl-8WXkWtGM.js.map → vhdl-DNCP7Bn1.js.map} +1 -1
- package/dist-vue/_chunks/{webidl-Jc36v0Y0.js → webidl-DOqqk_0y.js} +1 -1
- package/dist-vue/_chunks/{webidl-Jc36v0Y0.js.map → webidl-DOqqk_0y.js.map} +1 -1
- package/dist-vue/_chunks/{xquery-H0oz85f3.js → xquery-DJDJrmLG.js} +1 -1
- package/dist-vue/_chunks/{xquery-H0oz85f3.js.map → xquery-DJDJrmLG.js.map} +1 -1
- package/dist-vue/_chunks/{yacas-BdW11VL8.js → yacas-BSgkPzcj.js} +1 -1
- package/dist-vue/_chunks/{yacas-BdW11VL8.js.map → yacas-BSgkPzcj.js.map} +1 -1
- package/dist-vue/_chunks/{z80-GK9AbKDL.js → z80-C0-Mg9L3.js} +1 -1
- package/dist-vue/_chunks/{z80-GK9AbKDL.js.map → z80-C0-Mg9L3.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/composables/useChatbotAuth.d.ts +2 -1
- package/dist-vue/composables.js +92 -80
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +874 -857
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +1 -0
- package/dist-vue/packages/ability/src/types.d.ts +3 -1
- package/dist-vue/packages/components/src/chat/PkChatbotMessages.d.ts +10 -3
- package/dist-vue/packages/components/src/chat/PkCopyBlock.d.ts +4 -2
- package/dist-vue/packages/components/src/chat/PkMessageParts.d.ts +5 -1
- package/dist-vue/packages/components/src/chat/PkToolShowLocation.d.ts +5 -0
- package/dist-vue/packages/components/src/index.d.ts +2 -1
- package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +5 -0
- package/dist-vue/packages/composable/src/index.d.ts +1 -0
- package/dist-vue/packages/composable/src/useSafeLocalStorage.d.ts +7 -0
- package/dist-vue/packages/models/src/schema/AgentEndpoint.d.ts +108 -0
- package/dist-vue/packages/models/src/schema/AgentEndpointLog.d.ts +48 -0
- package/dist-vue/packages/models/src/schema/index.d.ts +2 -0
- package/dist-vue/style.css +1 -1
- package/package.json +3 -2
- package/dist/_chunks/PkToolShowArtifact-DzNIkKvZ.js.map +0 -1
- package/dist/_chunks/PkToolShowLocation-BsBiA4jV.js +0 -134
- package/dist/_chunks/PkToolShowLocation-BsBiA4jV.js.map +0 -1
- package/dist/_chunks/vue-leaflet.es-BT-uRmMx.js +0 -1738
- package/dist/_chunks/vue-leaflet.es-BT-uRmMx.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotFeedbackForm-Dl1pWKbb.js +0 -1035
- package/dist-vue/_chunks/PkChatbotFeedbackForm-Dl1pWKbb.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-C7-ZtU0-.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-EWotdJkz.js +0 -792
- package/dist-vue/_chunks/PkChatbotViewChat-EWotdJkz.js.map +0 -1
- package/dist-vue/_chunks/PkToolShowArtifact-pTS7wzhw.js.map +0 -1
- package/dist-vue/_chunks/PkToolShowLocation-DSZvW68g.js +0 -135
- package/dist-vue/_chunks/PkToolShowLocation-DSZvW68g.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-BJL1_AVi.js +0 -630
- package/dist-vue/_chunks/createChatbotApiClient-BJL1_AVi.js.map +0 -1
- package/dist-vue/_chunks/dist-Bh5Q6aSI2.js.map +0 -1
- package/dist-vue/_chunks/dist-CAZOa5qs2.js.map +0 -1
- package/dist-vue/_chunks/dist-afJW4ohP2.js.map +0 -1
|
@@ -0,0 +1,1102 @@
|
|
|
1
|
+
import { $ as e, B as t, D as n, E as r, Gt as i, I as a, L as o, T as s, U as c, Z as l, _ as u, _t as d, dt as f, ft as p, ht as m, it as h, j as g, k as _, m as v, n as y, q as b, st as x, v as S, vt as C, w, x as T, yt as E, z as D } from "./vue.runtime.esm-bundler-ljsQ8m_k.js";
|
|
2
|
+
import { n as O } from "./vue-i18n-WIOZBzzw.js";
|
|
3
|
+
import { g as k, h as A, u as j } from "./dist-BajHjEnz.js";
|
|
4
|
+
import { n as M, t as N } from "./dot-prop-DBnEiG9k.js";
|
|
5
|
+
import { i as P, o as F } from "./index.es-D7jJWPne.js";
|
|
6
|
+
import { D as I, E as L, O as R, T as ee, l as z, m as te, v as ne } from "./schemas-BzxsvNFR.js";
|
|
7
|
+
import { f as re } from "./src-B7wQQMx2.js";
|
|
8
|
+
import { t as ie } from "./PkStreamingMarkdown-CCD_gifi.js";
|
|
9
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/util.js
|
|
10
|
+
var B;
|
|
11
|
+
(function(e) {
|
|
12
|
+
e.assertEqual = (e) => {};
|
|
13
|
+
function t(e) {}
|
|
14
|
+
e.assertIs = t;
|
|
15
|
+
function n(e) {
|
|
16
|
+
throw Error();
|
|
17
|
+
}
|
|
18
|
+
e.assertNever = n, e.arrayToEnum = (e) => {
|
|
19
|
+
let t = {};
|
|
20
|
+
for (let n of e) t[n] = n;
|
|
21
|
+
return t;
|
|
22
|
+
}, e.getValidEnumValues = (t) => {
|
|
23
|
+
let n = e.objectKeys(t).filter((e) => typeof t[t[e]] != "number"), r = {};
|
|
24
|
+
for (let e of n) r[e] = t[e];
|
|
25
|
+
return e.objectValues(r);
|
|
26
|
+
}, e.objectValues = (t) => e.objectKeys(t).map(function(e) {
|
|
27
|
+
return t[e];
|
|
28
|
+
}), e.objectKeys = typeof Object.keys == "function" ? (e) => Object.keys(e) : (e) => {
|
|
29
|
+
let t = [];
|
|
30
|
+
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && t.push(n);
|
|
31
|
+
return t;
|
|
32
|
+
}, e.find = (e, t) => {
|
|
33
|
+
for (let n of e) if (t(n)) return n;
|
|
34
|
+
}, e.isInteger = typeof Number.isInteger == "function" ? (e) => Number.isInteger(e) : (e) => typeof e == "number" && Number.isFinite(e) && Math.floor(e) === e;
|
|
35
|
+
function r(e, t = " | ") {
|
|
36
|
+
return e.map((e) => typeof e == "string" ? `'${e}'` : e).join(t);
|
|
37
|
+
}
|
|
38
|
+
e.joinValues = r, e.jsonStringifyReplacer = (e, t) => typeof t == "bigint" ? t.toString() : t;
|
|
39
|
+
})(B ||= {});
|
|
40
|
+
var ae;
|
|
41
|
+
(function(e) {
|
|
42
|
+
e.mergeShapes = (e, t) => ({
|
|
43
|
+
...e,
|
|
44
|
+
...t
|
|
45
|
+
});
|
|
46
|
+
})(ae ||= {});
|
|
47
|
+
var V = B.arrayToEnum([
|
|
48
|
+
"string",
|
|
49
|
+
"nan",
|
|
50
|
+
"number",
|
|
51
|
+
"integer",
|
|
52
|
+
"float",
|
|
53
|
+
"boolean",
|
|
54
|
+
"date",
|
|
55
|
+
"bigint",
|
|
56
|
+
"symbol",
|
|
57
|
+
"function",
|
|
58
|
+
"undefined",
|
|
59
|
+
"null",
|
|
60
|
+
"array",
|
|
61
|
+
"object",
|
|
62
|
+
"unknown",
|
|
63
|
+
"promise",
|
|
64
|
+
"void",
|
|
65
|
+
"never",
|
|
66
|
+
"map",
|
|
67
|
+
"set"
|
|
68
|
+
]), oe = (e) => {
|
|
69
|
+
switch (typeof e) {
|
|
70
|
+
case "undefined": return V.undefined;
|
|
71
|
+
case "string": return V.string;
|
|
72
|
+
case "number": return Number.isNaN(e) ? V.nan : V.number;
|
|
73
|
+
case "boolean": return V.boolean;
|
|
74
|
+
case "function": return V.function;
|
|
75
|
+
case "bigint": return V.bigint;
|
|
76
|
+
case "symbol": return V.symbol;
|
|
77
|
+
case "object": return Array.isArray(e) ? V.array : e === null ? V.null : e.then && typeof e.then == "function" && e.catch && typeof e.catch == "function" ? V.promise : typeof Map < "u" && e instanceof Map ? V.map : typeof Set < "u" && e instanceof Set ? V.set : typeof Date < "u" && e instanceof Date ? V.date : V.object;
|
|
78
|
+
default: return V.unknown;
|
|
79
|
+
}
|
|
80
|
+
}, se = B.arrayToEnum([
|
|
81
|
+
"invalid_type",
|
|
82
|
+
"invalid_literal",
|
|
83
|
+
"custom",
|
|
84
|
+
"invalid_union",
|
|
85
|
+
"invalid_union_discriminator",
|
|
86
|
+
"invalid_enum_value",
|
|
87
|
+
"unrecognized_keys",
|
|
88
|
+
"invalid_arguments",
|
|
89
|
+
"invalid_return_type",
|
|
90
|
+
"invalid_date",
|
|
91
|
+
"invalid_string",
|
|
92
|
+
"too_small",
|
|
93
|
+
"too_big",
|
|
94
|
+
"invalid_intersection_types",
|
|
95
|
+
"not_multiple_of",
|
|
96
|
+
"not_finite"
|
|
97
|
+
]), H = class e extends Error {
|
|
98
|
+
get errors() {
|
|
99
|
+
return this.issues;
|
|
100
|
+
}
|
|
101
|
+
constructor(e) {
|
|
102
|
+
super(), this.issues = [], this.addIssue = (e) => {
|
|
103
|
+
this.issues = [...this.issues, e];
|
|
104
|
+
}, this.addIssues = (e = []) => {
|
|
105
|
+
this.issues = [...this.issues, ...e];
|
|
106
|
+
};
|
|
107
|
+
let t = new.target.prototype;
|
|
108
|
+
Object.setPrototypeOf ? Object.setPrototypeOf(this, t) : this.__proto__ = t, this.name = "ZodError", this.issues = e;
|
|
109
|
+
}
|
|
110
|
+
format(e) {
|
|
111
|
+
let t = e || function(e) {
|
|
112
|
+
return e.message;
|
|
113
|
+
}, n = { _errors: [] }, r = (e) => {
|
|
114
|
+
for (let i of e.issues) if (i.code === "invalid_union") i.unionErrors.map(r);
|
|
115
|
+
else if (i.code === "invalid_return_type") r(i.returnTypeError);
|
|
116
|
+
else if (i.code === "invalid_arguments") r(i.argumentsError);
|
|
117
|
+
else if (i.path.length === 0) n._errors.push(t(i));
|
|
118
|
+
else {
|
|
119
|
+
let e = n, r = 0;
|
|
120
|
+
for (; r < i.path.length;) {
|
|
121
|
+
let n = i.path[r];
|
|
122
|
+
r === i.path.length - 1 ? (e[n] = e[n] || { _errors: [] }, e[n]._errors.push(t(i))) : e[n] = e[n] || { _errors: [] }, e = e[n], r++;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
return r(this), n;
|
|
127
|
+
}
|
|
128
|
+
static assert(t) {
|
|
129
|
+
if (!(t instanceof e)) throw Error(`Not a ZodError: ${t}`);
|
|
130
|
+
}
|
|
131
|
+
toString() {
|
|
132
|
+
return this.message;
|
|
133
|
+
}
|
|
134
|
+
get message() {
|
|
135
|
+
return JSON.stringify(this.issues, B.jsonStringifyReplacer, 2);
|
|
136
|
+
}
|
|
137
|
+
get isEmpty() {
|
|
138
|
+
return this.issues.length === 0;
|
|
139
|
+
}
|
|
140
|
+
flatten(e = (e) => e.message) {
|
|
141
|
+
let t = Object.create(null), n = [];
|
|
142
|
+
for (let r of this.issues) if (r.path.length > 0) {
|
|
143
|
+
let n = r.path[0];
|
|
144
|
+
t[n] = t[n] || [], t[n].push(e(r));
|
|
145
|
+
} else n.push(e(r));
|
|
146
|
+
return {
|
|
147
|
+
formErrors: n,
|
|
148
|
+
fieldErrors: t
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
get formErrors() {
|
|
152
|
+
return this.flatten();
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
H.create = (e) => new H(e);
|
|
156
|
+
//#endregion
|
|
157
|
+
//#region ../../packages/composable/src/useSafeLocalStorage.ts
|
|
158
|
+
function ce(e, t) {
|
|
159
|
+
try {
|
|
160
|
+
return window.localStorage.getItem(""), j(e, t);
|
|
161
|
+
} catch (e) {
|
|
162
|
+
return re.warn("[useSafeLocalStorage] localStorage blocked, falling back to in-memory ref", e), p(t);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
//#endregion
|
|
166
|
+
//#region ../../node_modules/.pnpm/@volverjs+form-vue@1.1.1_@volverjs+ui-vue@0.0.13-beta.8_@volverjs+style@0.1.24-beta.3_@_d32cee6109e6c99de4048561886749f8/node_modules/@volverjs/form-vue/dist/index.es.js
|
|
167
|
+
var U = /* @__PURE__ */ ((e) => (e.text = "text", e.number = "number", e.email = "email", e.password = "password", e.tel = "tel", e.url = "url", e.search = "search", e.date = "date", e.time = "time", e.datetimeLocal = "datetime-local", e.month = "month", e.week = "week", e.color = "color", e.select = "select", e.checkbox = "checkbox", e.radio = "radio", e.textarea = "textarea", e.radioGroup = "radioGroup", e.checkboxGroup = "checkboxGroup", e.combobox = "combobox", e.custom = "custom", e))(U || {}), W = /* @__PURE__ */ ((e) => (e.invalid = "invalid", e.valid = "valid", e.submitting = "submitting", e.reset = "reset", e.updated = "updated", e.unknown = "unknown", e))(W || {}), G = (e) => e._def.typeName === "ZodObject", K = (e) => e._zod.def.type === "object", le = (e) => e._def.typeName === "ZodDefault", ue = (e) => e._zod.def.type === "default", de = (e) => e._def.typeName === "ZodNullable", fe = (e) => e._zod.def.type === "nullable", pe = (e) => e._def.typeName === "ZodRecord", me = (e) => e._zod.def.type === "record", he = (e) => e._def.typeName === "ZodArray", ge = (e) => e._zod.def.type === "array", _e = (e) => e._def.typeName === "ZodEffects", q = (e) => e._def.typeName === "ZodOptional", ve = (e) => e._zod.def.type === "optional", ye = (e) => e._zod.def.type === "pipe", be = (e) => e._zod.def.type === "transform";
|
|
168
|
+
function xe(e) {
|
|
169
|
+
let t = e;
|
|
170
|
+
for (; _e(t);) t = t.innerType();
|
|
171
|
+
return t;
|
|
172
|
+
}
|
|
173
|
+
function Se(e) {
|
|
174
|
+
let t = e;
|
|
175
|
+
for (; ye(t);) t = be(t._zod.def.out) ? t._zod.def.in : t._zod.def.out;
|
|
176
|
+
return t;
|
|
177
|
+
}
|
|
178
|
+
var J = (e) => {
|
|
179
|
+
let t = xe(e);
|
|
180
|
+
return q(t) && (t = t._def.innerType), t;
|
|
181
|
+
}, Y = (e) => {
|
|
182
|
+
let t = Se(e);
|
|
183
|
+
return ve(t) && (t = t._zod.def.innerType), t;
|
|
184
|
+
}, Ce = (e) => !!q(xe(e)), we = (e) => !!ve(Se(e)), X = (e) => "_zod" in e;
|
|
185
|
+
function Z(e, t = {}) {
|
|
186
|
+
if (X(e)) {
|
|
187
|
+
let n = Y(e);
|
|
188
|
+
return K(n) ? {
|
|
189
|
+
...n._zod.def.catchall && n._zod.def.catchall._zod.def.type !== "never" ? t : {},
|
|
190
|
+
...Object.fromEntries(("shape" in n._zod.def ? Object.entries(n._zod.def.shape) : []).map(([e, n]) => {
|
|
191
|
+
let r = t[e], i = we(n), a = Y(n), o;
|
|
192
|
+
if (ue(a) && (o = a._zod.def.defaultValue, a = a._zod.def.innerType), r === null && fe(a)) return [e, r];
|
|
193
|
+
if (r == null && i) return [e, o];
|
|
194
|
+
if (a) {
|
|
195
|
+
let t = ee(n, r);
|
|
196
|
+
if (t.success) return [e, t.data ?? o];
|
|
197
|
+
}
|
|
198
|
+
if (ge(a) && Array.isArray(r) && r.length) {
|
|
199
|
+
let t = Y(a._zod.def.element);
|
|
200
|
+
if (K(t)) return [e, r.map((e) => Z(t, e && typeof e == "object" ? e : void 0))];
|
|
201
|
+
}
|
|
202
|
+
if (me(a) && r) {
|
|
203
|
+
let t = Y(a._zod.def.valueType);
|
|
204
|
+
if (K(t)) return [e, Object.keys(r).reduce((e, n) => (e[n] = Z(t, r[n]), e), {})];
|
|
205
|
+
}
|
|
206
|
+
return K(a) ? [e, Z(a, r && typeof r == "object" ? r : o)] : [e, o];
|
|
207
|
+
}))
|
|
208
|
+
} : t;
|
|
209
|
+
}
|
|
210
|
+
let n = J(e);
|
|
211
|
+
return G(n) ? {
|
|
212
|
+
...n._def.unknownKeys === "passthrough" ? t : {},
|
|
213
|
+
...Object.fromEntries(("shape" in n ? Object.entries(n.shape) : []).map(([e, n]) => {
|
|
214
|
+
let r = t[e], i = Ce(n), a = J(n), o;
|
|
215
|
+
if (le(a) && (o = a._def.defaultValue(), a = a._def.innerType), r === null && de(a)) return [e, r];
|
|
216
|
+
if (r == null && i) return [e, o];
|
|
217
|
+
if (a) {
|
|
218
|
+
let t = n.safeParse(r);
|
|
219
|
+
if (t.success) return [e, t.data ?? o];
|
|
220
|
+
}
|
|
221
|
+
if (he(a) && Array.isArray(r) && r.length) {
|
|
222
|
+
let t = J(a._def.type);
|
|
223
|
+
if (G(t)) return [e, r.map((e) => Z(t, e && typeof e == "object" ? e : void 0))];
|
|
224
|
+
}
|
|
225
|
+
if (pe(a) && r) {
|
|
226
|
+
let t = J(a._def.valueType);
|
|
227
|
+
if (G(t)) return [e, Object.keys(r).reduce((e, n) => (e[n] = Z(t, r[n]), e), {})];
|
|
228
|
+
}
|
|
229
|
+
return G(a) ? [e, Z(a, r && typeof r == "object" ? r : o)] : [e, o];
|
|
230
|
+
}))
|
|
231
|
+
} : t;
|
|
232
|
+
}
|
|
233
|
+
var Te = (e, t) => X(e) ? L(e, t) : e.safeParseAsync(t), Ee = (e, t) => X(e) ? R(t) : t.format(), De = (e, t) => X(e) ? R(new I(t)) : new H(t).format();
|
|
234
|
+
function Oe(e, n, i, a, s) {
|
|
235
|
+
let c = p(), d = p(), g = u(() => d.value === W.invalid), y = p(), b = p(!1), x, S = (t) => {
|
|
236
|
+
let n = Z(e, t);
|
|
237
|
+
if (i?.class) {
|
|
238
|
+
let e = i.class;
|
|
239
|
+
return new e(n);
|
|
240
|
+
}
|
|
241
|
+
return n;
|
|
242
|
+
}, C = async (t = y.value, n) => {
|
|
243
|
+
if (x = n?.fields, b.value) return !0;
|
|
244
|
+
let r = await Te(e, t);
|
|
245
|
+
if (!r.success) {
|
|
246
|
+
if (d.value = W.invalid, !x?.size) return c.value = Ee(e, r.error), !1;
|
|
247
|
+
let t = r.error.issues.filter((e) => x?.has(e.path.join(".")));
|
|
248
|
+
return t.length ? (c.value = De(e, t), !1) : (c.value = void 0, !0);
|
|
249
|
+
}
|
|
250
|
+
return c.value = void 0, d.value = W.valid, y.value = S(r.data), !0;
|
|
251
|
+
}, w = () => {
|
|
252
|
+
c.value = void 0, d.value = void 0, x = void 0;
|
|
253
|
+
}, T = () => {
|
|
254
|
+
y.value = S(), w(), d.value = W.reset;
|
|
255
|
+
}, E = async (e) => b.value || !await C(void 0, e) ? !1 : (d.value = W.submitting, !0), { ignoreUpdates: D, stop: O } = k(y, () => {
|
|
256
|
+
d.value = W.updated;
|
|
257
|
+
}, {
|
|
258
|
+
deep: !0,
|
|
259
|
+
eventFilter: A(i?.updateThrottle ?? 500)
|
|
260
|
+
}), j = f(c), M = f(d);
|
|
261
|
+
return {
|
|
262
|
+
clear: w,
|
|
263
|
+
errors: c,
|
|
264
|
+
formData: y,
|
|
265
|
+
ignoreUpdates: D,
|
|
266
|
+
invalid: g,
|
|
267
|
+
readonly: b,
|
|
268
|
+
reset: T,
|
|
269
|
+
status: d,
|
|
270
|
+
wrappers: s,
|
|
271
|
+
stopUpdatesWatch: O,
|
|
272
|
+
submit: E,
|
|
273
|
+
validate: C,
|
|
274
|
+
VvForm: r({
|
|
275
|
+
name: "VvForm",
|
|
276
|
+
props: {
|
|
277
|
+
continuousValidation: {
|
|
278
|
+
type: Boolean,
|
|
279
|
+
default: !1
|
|
280
|
+
},
|
|
281
|
+
modelValue: {
|
|
282
|
+
type: Object,
|
|
283
|
+
default: () => ({})
|
|
284
|
+
},
|
|
285
|
+
readonly: {
|
|
286
|
+
type: Boolean,
|
|
287
|
+
default: i?.readonly
|
|
288
|
+
},
|
|
289
|
+
tag: {
|
|
290
|
+
type: String,
|
|
291
|
+
default: "form"
|
|
292
|
+
},
|
|
293
|
+
template: {
|
|
294
|
+
type: [Array, Function],
|
|
295
|
+
default: void 0
|
|
296
|
+
},
|
|
297
|
+
superRefine: {
|
|
298
|
+
type: Function,
|
|
299
|
+
default: void 0
|
|
300
|
+
},
|
|
301
|
+
validateFields: {
|
|
302
|
+
type: Array,
|
|
303
|
+
default: void 0
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
emits: [
|
|
307
|
+
"invalid",
|
|
308
|
+
"submit",
|
|
309
|
+
"update:modelValue",
|
|
310
|
+
"update:readonly",
|
|
311
|
+
"valid",
|
|
312
|
+
"reset"
|
|
313
|
+
],
|
|
314
|
+
expose: [
|
|
315
|
+
"errors",
|
|
316
|
+
"invalid",
|
|
317
|
+
"readonly",
|
|
318
|
+
"status",
|
|
319
|
+
"submit",
|
|
320
|
+
"tag",
|
|
321
|
+
"template",
|
|
322
|
+
"valid",
|
|
323
|
+
"validate",
|
|
324
|
+
"clear",
|
|
325
|
+
"reset"
|
|
326
|
+
],
|
|
327
|
+
slots: Object,
|
|
328
|
+
setup(e, { emit: r }) {
|
|
329
|
+
return y.value = S(m(e.modelValue)), l(() => e.modelValue, (e) => {
|
|
330
|
+
if (e) {
|
|
331
|
+
let t = h(e) ? m(e) : e;
|
|
332
|
+
if (JSON.stringify(t) === JSON.stringify(m(y.value))) return;
|
|
333
|
+
y.value = typeof t?.clone == "function" ? t.clone() : JSON.parse(JSON.stringify(t));
|
|
334
|
+
}
|
|
335
|
+
}, { deep: !0 }), l(d, async (t) => {
|
|
336
|
+
if (t === W.invalid) {
|
|
337
|
+
let e = m(c.value);
|
|
338
|
+
r("invalid", e), i?.onInvalid?.(e);
|
|
339
|
+
return;
|
|
340
|
+
}
|
|
341
|
+
if (t === W.valid) {
|
|
342
|
+
let e = m(y.value);
|
|
343
|
+
r("valid", e), i?.onValid?.(e), r("update:modelValue", e), i?.onUpdate?.(e);
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
346
|
+
if (t === W.submitting) {
|
|
347
|
+
let e = m(y.value);
|
|
348
|
+
r("submit", e), i?.onSubmit?.(e);
|
|
349
|
+
return;
|
|
350
|
+
}
|
|
351
|
+
if (t === W.reset) {
|
|
352
|
+
let e = m(y.value);
|
|
353
|
+
r("reset", e), i?.onReset?.(e);
|
|
354
|
+
return;
|
|
355
|
+
}
|
|
356
|
+
if (t === W.updated) {
|
|
357
|
+
if ((c.value || i?.continuousValidation || e.continuousValidation) && await C(void 0, {
|
|
358
|
+
superRefine: e.superRefine,
|
|
359
|
+
fields: x ?? new Set(e.validateFields)
|
|
360
|
+
}), !y.value || !e.modelValue || JSON.stringify(y.value) !== JSON.stringify(e.modelValue)) {
|
|
361
|
+
let e = m(y.value);
|
|
362
|
+
r("update:modelValue", e), i?.onUpdate?.(e);
|
|
363
|
+
}
|
|
364
|
+
d.value === W.updated && (d.value = W.unknown);
|
|
365
|
+
}
|
|
366
|
+
}), o(() => {
|
|
367
|
+
e.readonly !== void 0 && (b.value = e.readonly);
|
|
368
|
+
}), l(() => e.readonly, (e) => {
|
|
369
|
+
b.value = e;
|
|
370
|
+
}), l(b, (t) => {
|
|
371
|
+
t !== e.readonly && r("update:readonly", b.value);
|
|
372
|
+
}), t(n, {
|
|
373
|
+
clear: w,
|
|
374
|
+
errors: j,
|
|
375
|
+
formData: y,
|
|
376
|
+
ignoreUpdates: D,
|
|
377
|
+
invalid: g,
|
|
378
|
+
readonly: b,
|
|
379
|
+
reset: T,
|
|
380
|
+
status: M,
|
|
381
|
+
stopUpdatesWatch: O,
|
|
382
|
+
submit: E,
|
|
383
|
+
validate: C,
|
|
384
|
+
wrappers: s
|
|
385
|
+
}), {
|
|
386
|
+
clear: w,
|
|
387
|
+
errors: j,
|
|
388
|
+
formData: y,
|
|
389
|
+
ignoreUpdates: D,
|
|
390
|
+
invalid: g,
|
|
391
|
+
isReadonly: b,
|
|
392
|
+
reset: T,
|
|
393
|
+
status: M,
|
|
394
|
+
stopUpdatesWatch: O,
|
|
395
|
+
submit: () => E({
|
|
396
|
+
superRefine: e.superRefine,
|
|
397
|
+
fields: new Set(e.validateFields)
|
|
398
|
+
}),
|
|
399
|
+
validate: C,
|
|
400
|
+
wrappers: s
|
|
401
|
+
};
|
|
402
|
+
},
|
|
403
|
+
render() {
|
|
404
|
+
let e = () => this.$slots?.default?.({
|
|
405
|
+
errors: j.value,
|
|
406
|
+
formData: y.value,
|
|
407
|
+
invalid: g.value,
|
|
408
|
+
readonly: b.value,
|
|
409
|
+
status: M.value,
|
|
410
|
+
wrappers: s,
|
|
411
|
+
clear: w,
|
|
412
|
+
ignoreUpdates: D,
|
|
413
|
+
reset: T,
|
|
414
|
+
stopUpdatesWatch: O,
|
|
415
|
+
submit: E,
|
|
416
|
+
validate: C
|
|
417
|
+
}) ?? this.$slots.default;
|
|
418
|
+
return _(this.tag, {
|
|
419
|
+
onSubmit: v(this.submit, ["prevent"]),
|
|
420
|
+
onReset: v(this.reset, ["prevent"])
|
|
421
|
+
}, (this.template ?? i?.template) && a ? [_(a, { schema: this.template ?? i?.template }, { default: e })] : { default: e });
|
|
422
|
+
}
|
|
423
|
+
})
|
|
424
|
+
};
|
|
425
|
+
}
|
|
426
|
+
function ke(e, n, i, p) {
|
|
427
|
+
return r({
|
|
428
|
+
name: "VvFormField",
|
|
429
|
+
props: {
|
|
430
|
+
type: {
|
|
431
|
+
type: String,
|
|
432
|
+
validator: (e) => Object.values(U).includes(e),
|
|
433
|
+
default: U.custom
|
|
434
|
+
},
|
|
435
|
+
is: {
|
|
436
|
+
type: [Object, String],
|
|
437
|
+
default: void 0
|
|
438
|
+
},
|
|
439
|
+
name: {
|
|
440
|
+
type: [
|
|
441
|
+
String,
|
|
442
|
+
Number,
|
|
443
|
+
Boolean,
|
|
444
|
+
Symbol
|
|
445
|
+
],
|
|
446
|
+
required: !0
|
|
447
|
+
},
|
|
448
|
+
props: {
|
|
449
|
+
type: [Object, Function],
|
|
450
|
+
default: () => ({})
|
|
451
|
+
},
|
|
452
|
+
showValid: {
|
|
453
|
+
type: Boolean,
|
|
454
|
+
default: !1
|
|
455
|
+
},
|
|
456
|
+
defaultValue: {
|
|
457
|
+
type: [
|
|
458
|
+
String,
|
|
459
|
+
Number,
|
|
460
|
+
Boolean,
|
|
461
|
+
Array,
|
|
462
|
+
Object
|
|
463
|
+
],
|
|
464
|
+
default: void 0
|
|
465
|
+
},
|
|
466
|
+
lazyLoad: {
|
|
467
|
+
type: Boolean,
|
|
468
|
+
default: !1
|
|
469
|
+
},
|
|
470
|
+
readonly: {
|
|
471
|
+
type: Boolean,
|
|
472
|
+
default: void 0
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
emits: [
|
|
476
|
+
"invalid",
|
|
477
|
+
"update:formData",
|
|
478
|
+
"update:modelValue",
|
|
479
|
+
"valid"
|
|
480
|
+
],
|
|
481
|
+
expose: [
|
|
482
|
+
"component",
|
|
483
|
+
"errors",
|
|
484
|
+
"hasProps",
|
|
485
|
+
"invalid",
|
|
486
|
+
"invalidLabel",
|
|
487
|
+
"is",
|
|
488
|
+
"type"
|
|
489
|
+
],
|
|
490
|
+
slots: Object,
|
|
491
|
+
setup(r, { slots: m, emit: h }) {
|
|
492
|
+
let { props: _, name: v } = d(r), y = b(), x = g(n, void 0);
|
|
493
|
+
x && x.fields.value.set(y, r.name);
|
|
494
|
+
let S = g(e), C = u({
|
|
495
|
+
get() {
|
|
496
|
+
if (S?.formData) return N(new Object(S.formData.value), String(r.name));
|
|
497
|
+
},
|
|
498
|
+
set(e) {
|
|
499
|
+
S?.formData && (M(new Object(S.formData.value), String(r.name), e), h("update:modelValue", {
|
|
500
|
+
newValue: C.value,
|
|
501
|
+
formData: S?.formData
|
|
502
|
+
}));
|
|
503
|
+
}
|
|
504
|
+
});
|
|
505
|
+
o(() => {
|
|
506
|
+
C.value === void 0 && r.defaultValue !== void 0 && (C.value = r.defaultValue);
|
|
507
|
+
}), a(() => {
|
|
508
|
+
x && x.fields.value.delete(y);
|
|
509
|
+
});
|
|
510
|
+
let w = u(() => {
|
|
511
|
+
if (S?.errors.value) return N(S.errors.value, String(r.name));
|
|
512
|
+
}), T = u(() => w.value?._errors), D = u(() => w.value !== void 0), O = l(D, (e) => {
|
|
513
|
+
if (e) {
|
|
514
|
+
h("invalid", w.value), x && x.errors.value.set(String(r.name), w.value);
|
|
515
|
+
return;
|
|
516
|
+
}
|
|
517
|
+
h("valid", C.value), x && x.errors.value.delete(r.name);
|
|
518
|
+
}), k = l(() => S?.formData, () => {
|
|
519
|
+
h("update:formData", S?.formData);
|
|
520
|
+
}, { deep: !0 });
|
|
521
|
+
a(() => {
|
|
522
|
+
O(), k();
|
|
523
|
+
});
|
|
524
|
+
let A = (e) => {
|
|
525
|
+
e instanceof InputEvent && (e = e.target.value), C.value = e;
|
|
526
|
+
}, j = u(() => {
|
|
527
|
+
let e = _.value;
|
|
528
|
+
return typeof e == "function" && (e = e(S?.formData)), Object.keys(e).reduce((t, n) => (t[n] = E(e[n]), t), {});
|
|
529
|
+
}), P = u(() => S?.readonly.value || x?.readonly.value ? !0 : j.value.readonly ?? r.readonly), F = u(() => ({
|
|
530
|
+
...j.value,
|
|
531
|
+
name: j.value.name ?? r.name,
|
|
532
|
+
invalid: D.value,
|
|
533
|
+
valid: r.showValid ? !!(!D.value && C.value) : void 0,
|
|
534
|
+
type: ((e) => {
|
|
535
|
+
if ([
|
|
536
|
+
U.color,
|
|
537
|
+
U.date,
|
|
538
|
+
U.datetimeLocal,
|
|
539
|
+
U.email,
|
|
540
|
+
U.month,
|
|
541
|
+
U.number,
|
|
542
|
+
U.password,
|
|
543
|
+
U.search,
|
|
544
|
+
U.tel,
|
|
545
|
+
U.text,
|
|
546
|
+
U.time,
|
|
547
|
+
U.url,
|
|
548
|
+
U.week
|
|
549
|
+
].includes(e)) return e;
|
|
550
|
+
})(r.type),
|
|
551
|
+
invalidLabel: T.value,
|
|
552
|
+
modelValue: C.value,
|
|
553
|
+
readonly: P.value,
|
|
554
|
+
"onUpdate:modelValue": A
|
|
555
|
+
}));
|
|
556
|
+
return t(i, {
|
|
557
|
+
name: f(v),
|
|
558
|
+
errors: f(w)
|
|
559
|
+
}), {
|
|
560
|
+
component: u(() => {
|
|
561
|
+
if (r.type === U.custom) return { render() {
|
|
562
|
+
return m.default?.({
|
|
563
|
+
errors: f(w).value,
|
|
564
|
+
formData: S?.formData.value,
|
|
565
|
+
formErrors: S?.errors.value,
|
|
566
|
+
invalid: D.value,
|
|
567
|
+
invalidLabel: T.value,
|
|
568
|
+
modelValue: C.value,
|
|
569
|
+
readonly: P.value,
|
|
570
|
+
onUpdate: A,
|
|
571
|
+
submit: S?.submit,
|
|
572
|
+
validate: S?.validate
|
|
573
|
+
}) ?? m.default;
|
|
574
|
+
} };
|
|
575
|
+
if (!(p?.lazyLoad ?? r.lazyLoad)) {
|
|
576
|
+
let e;
|
|
577
|
+
switch (r.type) {
|
|
578
|
+
case U.select:
|
|
579
|
+
e = c("VvSelect");
|
|
580
|
+
break;
|
|
581
|
+
case U.checkbox:
|
|
582
|
+
e = c("VvCheckbox");
|
|
583
|
+
break;
|
|
584
|
+
case U.radio:
|
|
585
|
+
e = c("VvRadio");
|
|
586
|
+
break;
|
|
587
|
+
case U.textarea:
|
|
588
|
+
e = c("VvTextarea");
|
|
589
|
+
break;
|
|
590
|
+
case U.radioGroup:
|
|
591
|
+
e = c("VvRadioGroup");
|
|
592
|
+
break;
|
|
593
|
+
case U.checkboxGroup:
|
|
594
|
+
e = c("VvCheckboxGroup");
|
|
595
|
+
break;
|
|
596
|
+
case U.combobox:
|
|
597
|
+
e = c("VvCombobox");
|
|
598
|
+
break;
|
|
599
|
+
default: e = c("VvInputText");
|
|
600
|
+
}
|
|
601
|
+
if (typeof e != "string") return e;
|
|
602
|
+
console.warn(`[@volverjs/form-vue]: ${e} not found, the component will be loaded asynchronously. To avoid this warning, please set "lazyLoad" option.`);
|
|
603
|
+
}
|
|
604
|
+
return s(async () => {
|
|
605
|
+
switch (p?.sideEffects && await Promise.resolve(p.sideEffects(r.type)), r.type) {
|
|
606
|
+
case U.textarea: return import("./VvTextarea.es-G6PqQj_w.js");
|
|
607
|
+
case U.radio: return import("./VvRadio.es-DWCbGLSw.js");
|
|
608
|
+
case U.radioGroup: return import("./VvRadioGroup.es-DeZPOSLg.js");
|
|
609
|
+
case U.checkbox: return import("./VvCheckbox.es-xoDP7xfG.js");
|
|
610
|
+
case U.checkboxGroup: return import("./VvCheckboxGroup.es-CqmkSf32.js");
|
|
611
|
+
case U.select: return import("./VvSelect.es-Cbdxv0hL.js");
|
|
612
|
+
case U.combobox: return import("./VvCombobox.es-8c5A9J7u.js");
|
|
613
|
+
}
|
|
614
|
+
return import("./VvInputText.es-C3DasKVI.js");
|
|
615
|
+
});
|
|
616
|
+
}),
|
|
617
|
+
hasProps: F,
|
|
618
|
+
invalid: D
|
|
619
|
+
};
|
|
620
|
+
},
|
|
621
|
+
render() {
|
|
622
|
+
return this.is ? _(this.is, this.hasProps, this.$slots) : this.type === U.custom ? _(this.component, null, this.$slots) : _(this.component, this.hasProps, this.$slots);
|
|
623
|
+
}
|
|
624
|
+
});
|
|
625
|
+
}
|
|
626
|
+
function Ae(e, n, i) {
|
|
627
|
+
return r({
|
|
628
|
+
name: "VvFormFieldsGroup",
|
|
629
|
+
props: {
|
|
630
|
+
is: {
|
|
631
|
+
type: [Object, String],
|
|
632
|
+
default: void 0
|
|
633
|
+
},
|
|
634
|
+
names: {
|
|
635
|
+
type: [Array, Object],
|
|
636
|
+
required: !0
|
|
637
|
+
},
|
|
638
|
+
props: {
|
|
639
|
+
type: [Object, Function],
|
|
640
|
+
default: () => ({})
|
|
641
|
+
},
|
|
642
|
+
showValid: {
|
|
643
|
+
type: Boolean,
|
|
644
|
+
default: !1
|
|
645
|
+
},
|
|
646
|
+
defaultValues: {
|
|
647
|
+
type: [Object],
|
|
648
|
+
default: void 0
|
|
649
|
+
},
|
|
650
|
+
readonly: {
|
|
651
|
+
type: Boolean,
|
|
652
|
+
default: void 0
|
|
653
|
+
}
|
|
654
|
+
},
|
|
655
|
+
emits: [
|
|
656
|
+
"invalid",
|
|
657
|
+
"update:formData",
|
|
658
|
+
"update:modelValue",
|
|
659
|
+
"valid"
|
|
660
|
+
],
|
|
661
|
+
expose: [
|
|
662
|
+
"component",
|
|
663
|
+
"errors",
|
|
664
|
+
"hasProps",
|
|
665
|
+
"invalid",
|
|
666
|
+
"invalidLabels",
|
|
667
|
+
"is"
|
|
668
|
+
],
|
|
669
|
+
slots: Object,
|
|
670
|
+
setup(r, { slots: s, emit: c }) {
|
|
671
|
+
let { props: p, names: m, defaultValues: h } = d(r), _ = b(), v = u(() => Array.isArray(m.value) ? m.value : Object.values(m.value)), y = u(() => Array.isArray(m.value) ? m.value : Object.keys(m.value)), x = u(() => Array.isArray(m.value) ? m.value.reduce((e, t) => (e[String(t)] = t, e), {}) : m.value), S = u(() => Object.keys(x.value).reduce((e, t) => (e[String(x.value[t])] = t, e), {})), C = g(n, void 0);
|
|
672
|
+
C && v.value.forEach((e) => {
|
|
673
|
+
C.fields.value.set(`${_}-${e}`, e);
|
|
674
|
+
});
|
|
675
|
+
let w = g(e), T = u({
|
|
676
|
+
get() {
|
|
677
|
+
return w?.formData ? y.value.reduce((e, t) => (e[t] = N(new Object(w.formData.value), x.value[t]), e), {}) : {};
|
|
678
|
+
},
|
|
679
|
+
set(e) {
|
|
680
|
+
w?.formData && (y.value.forEach((t) => {
|
|
681
|
+
M(new Object(w.formData.value), x.value[t], e?.[t]);
|
|
682
|
+
}), c("update:modelValue", {
|
|
683
|
+
newValue: T.value,
|
|
684
|
+
formData: w?.formData
|
|
685
|
+
}));
|
|
686
|
+
}
|
|
687
|
+
});
|
|
688
|
+
o(() => {
|
|
689
|
+
h.value && v.value.forEach((e) => {
|
|
690
|
+
h.value?.[e] !== void 0 && T.value[e] === void 0 && (T.value = {
|
|
691
|
+
...T.value,
|
|
692
|
+
[e]: h.value?.[e]
|
|
693
|
+
});
|
|
694
|
+
});
|
|
695
|
+
}), a(() => {
|
|
696
|
+
C && v.value.forEach((e) => {
|
|
697
|
+
C.fields.value.delete(`${_}-${e}`);
|
|
698
|
+
});
|
|
699
|
+
});
|
|
700
|
+
let D = u(() => {
|
|
701
|
+
if (!w?.errors.value) return;
|
|
702
|
+
let e = v.value.reduce((e, t) => {
|
|
703
|
+
if (!w.errors.value) return e;
|
|
704
|
+
let n = N(w.errors.value, String(t));
|
|
705
|
+
return n === void 0 || (e[String(t)] = n), e;
|
|
706
|
+
}, {});
|
|
707
|
+
if (Object.keys(e).length !== 0) return e;
|
|
708
|
+
}), O = u(() => {
|
|
709
|
+
if (!D.value) return;
|
|
710
|
+
let e = Object.keys(D.value).reduce((e, t) => (D.value?.[t] && (e[S.value[t]] = D.value[t]._errors), e), {});
|
|
711
|
+
if (Object.keys(e).length !== 0) return e;
|
|
712
|
+
}), k = u(() => D.value !== void 0), A = u(() => y.value.reduce((e, t) => (e[t] = !!D.value?.[S.value[t]], e), {})), j = l(k, () => {
|
|
713
|
+
if (k.value) {
|
|
714
|
+
c("invalid", D.value), C && v.value.forEach((e) => {
|
|
715
|
+
if (!D.value?.[e]) {
|
|
716
|
+
C.errors.value.delete(e);
|
|
717
|
+
return;
|
|
718
|
+
}
|
|
719
|
+
C.errors.value.set(e, D.value?.[e]);
|
|
720
|
+
});
|
|
721
|
+
return;
|
|
722
|
+
}
|
|
723
|
+
c("valid", T.value), C && v.value.forEach((e) => {
|
|
724
|
+
C.errors.value.delete(e);
|
|
725
|
+
});
|
|
726
|
+
}), P = l(() => w?.formData, () => {
|
|
727
|
+
c("update:formData", w?.formData);
|
|
728
|
+
}, { deep: !0 });
|
|
729
|
+
a(() => {
|
|
730
|
+
j(), P();
|
|
731
|
+
});
|
|
732
|
+
let F = (e) => {
|
|
733
|
+
T.value = e;
|
|
734
|
+
}, I = (e, t) => {
|
|
735
|
+
t instanceof InputEvent && (t = t.target.value), y.value.includes(e) && (T.value = {
|
|
736
|
+
...T.value,
|
|
737
|
+
[e]: t
|
|
738
|
+
});
|
|
739
|
+
}, L = u(() => {
|
|
740
|
+
let e = p.value;
|
|
741
|
+
return typeof e == "function" && (e = e(w?.formData)), Object.keys(e).reduce((t, n) => (t[n] = E(e[n]), t), {});
|
|
742
|
+
}), R = u(() => w?.readonly.value ? !0 : L.value.readonly ?? r.readonly), ee = u(() => y.value.reduce((e, t) => (e[`onUpdate:${t}`] = (e) => {
|
|
743
|
+
I(t, e);
|
|
744
|
+
}, e), { "onUpdate:modelValue": F })), z = u(() => ({
|
|
745
|
+
...ee.value,
|
|
746
|
+
...L.value,
|
|
747
|
+
...T.value,
|
|
748
|
+
modelValue: T.value,
|
|
749
|
+
names: L.value.name ?? v.value,
|
|
750
|
+
invalid: k.value,
|
|
751
|
+
invalids: A.value,
|
|
752
|
+
valid: r.showValid ? !!(!k.value && T.value) : void 0,
|
|
753
|
+
invalidLabels: O.value,
|
|
754
|
+
readonly: R.value
|
|
755
|
+
}));
|
|
756
|
+
return t(i, {
|
|
757
|
+
names: f(m),
|
|
758
|
+
errors: f(D)
|
|
759
|
+
}), {
|
|
760
|
+
component: u(() => ({ render() {
|
|
761
|
+
return s.default?.({
|
|
762
|
+
errors: D.value,
|
|
763
|
+
formData: w?.formData.value,
|
|
764
|
+
formErrors: w?.errors.value,
|
|
765
|
+
invalid: k.value,
|
|
766
|
+
invalids: A.value,
|
|
767
|
+
invalidLabels: O.value,
|
|
768
|
+
modelValue: T.value,
|
|
769
|
+
onUpdate: F,
|
|
770
|
+
onUpdateField: I,
|
|
771
|
+
readonly: R.value,
|
|
772
|
+
submit: w?.submit,
|
|
773
|
+
validate: w?.validate
|
|
774
|
+
}) ?? s.default;
|
|
775
|
+
} })),
|
|
776
|
+
hasProps: z,
|
|
777
|
+
invalid: k
|
|
778
|
+
};
|
|
779
|
+
},
|
|
780
|
+
render() {
|
|
781
|
+
return this.is ? _(this.is, this.hasProps, this.$slots) : _(this.component, null, this.$slots);
|
|
782
|
+
}
|
|
783
|
+
});
|
|
784
|
+
}
|
|
785
|
+
function je(e, n) {
|
|
786
|
+
return r({
|
|
787
|
+
name: "VvFormWrapper",
|
|
788
|
+
props: {
|
|
789
|
+
name: {
|
|
790
|
+
type: String,
|
|
791
|
+
required: !0
|
|
792
|
+
},
|
|
793
|
+
tag: {
|
|
794
|
+
type: String,
|
|
795
|
+
default: void 0
|
|
796
|
+
},
|
|
797
|
+
readonly: {
|
|
798
|
+
type: Boolean,
|
|
799
|
+
default: !1
|
|
800
|
+
}
|
|
801
|
+
},
|
|
802
|
+
emits: ["invalid", "valid"],
|
|
803
|
+
expose: [
|
|
804
|
+
"clear",
|
|
805
|
+
"errors",
|
|
806
|
+
"fields",
|
|
807
|
+
"fieldsErrors",
|
|
808
|
+
"formData",
|
|
809
|
+
"invalid",
|
|
810
|
+
"readonly",
|
|
811
|
+
"reset",
|
|
812
|
+
"submit",
|
|
813
|
+
"tag",
|
|
814
|
+
"validate",
|
|
815
|
+
"validateWrapper"
|
|
816
|
+
],
|
|
817
|
+
slots: Object,
|
|
818
|
+
setup(r, { emit: i }) {
|
|
819
|
+
let s = g(e), c = g(n, void 0), m = p(/* @__PURE__ */ new Map()), h = p(/* @__PURE__ */ new Map()), { name: _ } = d(r), v = u(() => s?.invalid.value ? h.value.size > 0 : !1);
|
|
820
|
+
l(v, (e) => {
|
|
821
|
+
if (e) {
|
|
822
|
+
i("invalid");
|
|
823
|
+
return;
|
|
824
|
+
}
|
|
825
|
+
i("valid");
|
|
826
|
+
});
|
|
827
|
+
let y = u(() => s?.readonly.value || r.readonly), b = {
|
|
828
|
+
name: f(_),
|
|
829
|
+
errors: h,
|
|
830
|
+
invalid: f(v),
|
|
831
|
+
readonly: f(y),
|
|
832
|
+
fields: m
|
|
833
|
+
};
|
|
834
|
+
return t(n, b), l(u(() => new Map(m.value)), (e, t) => {
|
|
835
|
+
c?.fields && (t.forEach((t, n) => {
|
|
836
|
+
e.has(n) || c?.fields.value.delete(n);
|
|
837
|
+
}), e.forEach((e, t) => {
|
|
838
|
+
c?.fields.value.has(t) || c?.fields.value.set(t, e);
|
|
839
|
+
}));
|
|
840
|
+
}, { deep: !0 }), l(h, (e) => {
|
|
841
|
+
c?.errors && m.value.forEach((t) => {
|
|
842
|
+
if (e.has(t) || c.errors.value.delete(t), e.has(t)) {
|
|
843
|
+
let n = e.get(t);
|
|
844
|
+
n && c.errors.value.set(t, n);
|
|
845
|
+
}
|
|
846
|
+
});
|
|
847
|
+
}, { deep: !0 }), o(() => {
|
|
848
|
+
if (!s?.wrappers || !_.value) {
|
|
849
|
+
console.warn("[@volverjs/form-vue]: Invalid wrapper registration state");
|
|
850
|
+
return;
|
|
851
|
+
}
|
|
852
|
+
if (s.wrappers.has(_.value)) {
|
|
853
|
+
console.warn(`[@volverjs/form-vue]: wrapper name "${_.value}" is already used`);
|
|
854
|
+
return;
|
|
855
|
+
}
|
|
856
|
+
s.wrappers.set(_.value, b);
|
|
857
|
+
}), a(() => {
|
|
858
|
+
s?.wrappers && _.value && s.wrappers.delete(_.value);
|
|
859
|
+
}), {
|
|
860
|
+
errors: s?.errors,
|
|
861
|
+
fields: m,
|
|
862
|
+
fieldsErrors: h,
|
|
863
|
+
formData: s?.formData,
|
|
864
|
+
invalid: v,
|
|
865
|
+
readonly: y,
|
|
866
|
+
clear: s?.clear,
|
|
867
|
+
reset: s?.reset,
|
|
868
|
+
submit: s?.submit,
|
|
869
|
+
validate: s?.validate,
|
|
870
|
+
validateWrapper: () => s?.validate(void 0, { fields: new Set(m.value.values()) }) ?? Promise.resolve(!0)
|
|
871
|
+
};
|
|
872
|
+
},
|
|
873
|
+
render() {
|
|
874
|
+
let e = () => this.$slots.default?.({
|
|
875
|
+
errors: this.errors,
|
|
876
|
+
fieldsErrors: this.fieldsErrors,
|
|
877
|
+
formData: this.formData,
|
|
878
|
+
invalid: this.invalid,
|
|
879
|
+
readonly: this.readonly,
|
|
880
|
+
clear: this.clear,
|
|
881
|
+
reset: this.reset,
|
|
882
|
+
submit: this.submit,
|
|
883
|
+
validate: this.validate,
|
|
884
|
+
validateWrapper: this.validateWrapper
|
|
885
|
+
});
|
|
886
|
+
return this.tag ? _(this.tag, null, { default: e }) : e();
|
|
887
|
+
}
|
|
888
|
+
});
|
|
889
|
+
}
|
|
890
|
+
function Me(e, t) {
|
|
891
|
+
let n = r({
|
|
892
|
+
name: "VvFormTemplate",
|
|
893
|
+
props: {
|
|
894
|
+
schema: {
|
|
895
|
+
type: [Array, Function],
|
|
896
|
+
required: !0
|
|
897
|
+
},
|
|
898
|
+
scope: {
|
|
899
|
+
type: Object,
|
|
900
|
+
default: () => ({})
|
|
901
|
+
}
|
|
902
|
+
},
|
|
903
|
+
slots: Object,
|
|
904
|
+
setup(r, { slots: i }) {
|
|
905
|
+
let a = g(e);
|
|
906
|
+
if (a?.formData) return () => {
|
|
907
|
+
let e = typeof r.schema == "function" ? r.schema(a, r.scope) : r.schema, o, s = e.reduce((e, i) => {
|
|
908
|
+
let { vvIs: s, vvName: c, vvSlots: l, vvChildren: u, vvIf: d, vvElseIf: f, vvType: p, vvDefaultValue: m, vvShowValid: h, vvContent: g, ...v } = typeof i == "function" ? i(a, r.scope) : i;
|
|
909
|
+
if (d !== void 0) {
|
|
910
|
+
if (o = typeof d == "string" ? !!N(new Object(a.formData.value), d) : E(typeof d == "function" ? d(a) : d), !o) return e;
|
|
911
|
+
} else if (f !== void 0 && o !== void 0) {
|
|
912
|
+
if (o || (o = typeof f == "string" ? !!N(new Object(a.formData.value), f) : E(typeof f == "function" ? f(a) : f), !o)) return e;
|
|
913
|
+
} else o = void 0;
|
|
914
|
+
let y;
|
|
915
|
+
return u && (y = typeof s == "string" ? _(n, { schema: u }) : { default: (e) => _(n, {
|
|
916
|
+
schema: u,
|
|
917
|
+
scope: e
|
|
918
|
+
}) }), c ? (e.push(_(t, {
|
|
919
|
+
name: c,
|
|
920
|
+
is: s,
|
|
921
|
+
type: p,
|
|
922
|
+
defaultValue: m,
|
|
923
|
+
showValid: h,
|
|
924
|
+
props: v
|
|
925
|
+
}, l ?? y ?? g)), e) : s ? (e.push(_(s, v, l ?? y ?? g)), e) : (y && ("default" in y ? e.push(y.default(r.scope)) : e.push(y)), e);
|
|
926
|
+
}, []);
|
|
927
|
+
return s.push(i?.default?.({
|
|
928
|
+
errors: a?.errors.value,
|
|
929
|
+
formData: a?.formData.value,
|
|
930
|
+
invalid: a?.invalid.value,
|
|
931
|
+
status: a?.status.value,
|
|
932
|
+
submit: a?.submit,
|
|
933
|
+
validate: a?.validate,
|
|
934
|
+
clear: a?.clear,
|
|
935
|
+
reset: a?.reset
|
|
936
|
+
})), s;
|
|
937
|
+
};
|
|
938
|
+
}
|
|
939
|
+
});
|
|
940
|
+
return n;
|
|
941
|
+
}
|
|
942
|
+
function Ne(e, t = {}) {
|
|
943
|
+
let n = Symbol("formInjectionKey"), r = Symbol("formWrapperInjectionKey"), i = Symbol("formFieldInjectionKey"), a = Symbol("formFieldsGroupInjectionKey"), o = je(n, r), s = ke(n, r, i, t), c = Ae(n, r, a), l = Me(n, s), u = /* @__PURE__ */ new Map(), { clear: d, errors: f, formData: p, ignoreUpdates: m, invalid: h, readonly: g, reset: _, status: v, stopUpdatesWatch: y, submit: b, validate: x, VvForm: S } = Oe(e, n, t, l, u);
|
|
944
|
+
return {
|
|
945
|
+
clear: d,
|
|
946
|
+
errors: f,
|
|
947
|
+
formData: p,
|
|
948
|
+
formFieldInjectionKey: i,
|
|
949
|
+
formInjectionKey: n,
|
|
950
|
+
formWrapperInjectionKey: r,
|
|
951
|
+
ignoreUpdates: m,
|
|
952
|
+
invalid: h,
|
|
953
|
+
readonly: g,
|
|
954
|
+
reset: _,
|
|
955
|
+
status: v,
|
|
956
|
+
stopUpdatesWatch: y,
|
|
957
|
+
submit: b,
|
|
958
|
+
validate: x,
|
|
959
|
+
wrappers: u,
|
|
960
|
+
VvForm: S,
|
|
961
|
+
VvFormField: s,
|
|
962
|
+
VvFormFieldsGroup: c,
|
|
963
|
+
VvFormTemplate: l,
|
|
964
|
+
VvFormWrapper: o
|
|
965
|
+
};
|
|
966
|
+
}
|
|
967
|
+
var Pe = Symbol("pluginInjectionKey"), Q = /* @__PURE__ */ new Map();
|
|
968
|
+
function Fe(e, t = {}) {
|
|
969
|
+
if (t.scope && Q.has(t.scope)) return Q.get(t.scope);
|
|
970
|
+
if (!n()) {
|
|
971
|
+
let n = Ne(e, t);
|
|
972
|
+
return t.scope && Q.set(t.scope, n), n;
|
|
973
|
+
}
|
|
974
|
+
let r = Ne(e, {
|
|
975
|
+
...g(Pe, {}),
|
|
976
|
+
...t
|
|
977
|
+
});
|
|
978
|
+
return t.scope && Q.set(t.scope, r), r;
|
|
979
|
+
}
|
|
980
|
+
//#endregion
|
|
981
|
+
//#region ../../packages/components/src/composables/useLocalizedString.ts
|
|
982
|
+
function $(e, t) {
|
|
983
|
+
let { locale: n, t: r, te: i } = O({ useScope: "global" });
|
|
984
|
+
return u(() => {
|
|
985
|
+
let a = C(e), o = t !== void 0 && i(t) ? r(t) : void 0;
|
|
986
|
+
return a && a[n.value] || o;
|
|
987
|
+
});
|
|
988
|
+
}
|
|
989
|
+
//#endregion
|
|
990
|
+
//#region ../../packages/components/src/chat/PkToolShowContactForm.vue?vue&type=script&setup=true&lang.ts
|
|
991
|
+
var Ie = { class: "border border-surface-3 rounded-xl w-full overflow-hidden" }, Le = { class: "px-sm py-6 bg-surface-1 text-12 border-b border-surface-3 text-word-3 flex items-center gap-8 min-h-40" }, Re = { class: "font-bold" }, ze = {
|
|
992
|
+
key: 0,
|
|
993
|
+
class: "p-sm"
|
|
994
|
+
}, Be = { class: "flex justify-between items-center gap-16 mt-xs" }, Ve = { class: "text-smaller text-word-3 flex items-center gap-8" }, He = {
|
|
995
|
+
key: 1,
|
|
996
|
+
class: "p-sm"
|
|
997
|
+
}, Ue = { class: "flex items-center gap-sm" }, We = { class: "font-semibold block text-success" }, Ge = { class: "text-word-3" }, Ke = /* @__PURE__ */ r({
|
|
998
|
+
__name: "PkToolShowContactForm",
|
|
999
|
+
props: {
|
|
1000
|
+
part: { type: null },
|
|
1001
|
+
submitted: { type: Boolean },
|
|
1002
|
+
loading: { type: Boolean },
|
|
1003
|
+
error: { type: String },
|
|
1004
|
+
readonly: { type: Boolean },
|
|
1005
|
+
privacyPolicyNotice: { type: null }
|
|
1006
|
+
},
|
|
1007
|
+
emits: ["submit"],
|
|
1008
|
+
setup(t, { emit: n }) {
|
|
1009
|
+
let { t: r } = O({ useScope: "global" }), a = t, o = u(() => a.part), s = u(() => o.value.input), c = ce(u(() => `${o.value.toolCallId}-${o.value.type}-submitted`), !1), d = te({
|
|
1010
|
+
name: ne().min(1).max(255).default(""),
|
|
1011
|
+
email: z().max(255).default(""),
|
|
1012
|
+
phone: ne().max(50).regex(/^[+0-9\s\-.()]*$/, r("validation.invalidPhoneNumber")).optional()
|
|
1013
|
+
}), f = n, { VvForm: p, VvFormField: m, formData: h } = Fe(d, { lazyLoad: !0 });
|
|
1014
|
+
l(s, (e) => {
|
|
1015
|
+
h.value = {
|
|
1016
|
+
name: e?.name || "",
|
|
1017
|
+
email: e?.email || "",
|
|
1018
|
+
phone: e?.phone || ""
|
|
1019
|
+
};
|
|
1020
|
+
}, { immediate: !0 }), l(() => a.submitted, (e) => {
|
|
1021
|
+
e && (c.value = !0);
|
|
1022
|
+
}, { immediate: !0 });
|
|
1023
|
+
let g = u(() => a.submitted || c.value), _ = async (e) => {
|
|
1024
|
+
f("submit", {
|
|
1025
|
+
...e,
|
|
1026
|
+
metadata: s.value?.conversationContext
|
|
1027
|
+
});
|
|
1028
|
+
}, v = $(() => a.privacyPolicyNotice, "message.defaultPrivacyPolicyNotice");
|
|
1029
|
+
return (n, a) => {
|
|
1030
|
+
let o = P, s = F;
|
|
1031
|
+
return D(), T("div", Ie, [S("div", Le, [w(o, {
|
|
1032
|
+
name: "ri:send-plane-2-line",
|
|
1033
|
+
class: "text-16"
|
|
1034
|
+
}), S("strong", Re, i(E(r)("label.contactUs")), 1)]), w(y, { mode: "out-in" }, {
|
|
1035
|
+
default: e(() => [g.value ? (D(), T("div", He, [S("div", Ue, [w(o, {
|
|
1036
|
+
name: "ri:mail-check-line",
|
|
1037
|
+
class: "text-24 text-success"
|
|
1038
|
+
}), S("div", null, [S("strong", We, i(E(r)("message.leadSubmittedTitle")), 1), S("p", Ge, i(E(r)("message.leadSubmittedMessage")), 1)])])])) : (D(), T("div", ze, [w(E(p), {
|
|
1039
|
+
modelValue: E(h),
|
|
1040
|
+
"onUpdate:modelValue": a[0] ||= (e) => x(h) ? h.value = e : null,
|
|
1041
|
+
readonly: t.readonly,
|
|
1042
|
+
onSubmit: _
|
|
1043
|
+
}, {
|
|
1044
|
+
default: e(() => [
|
|
1045
|
+
w(E(m), {
|
|
1046
|
+
name: "name",
|
|
1047
|
+
type: "text",
|
|
1048
|
+
label: E(r)("label.name"),
|
|
1049
|
+
placeholder: E(r)("placeholder.name"),
|
|
1050
|
+
icon: "ri:user-line",
|
|
1051
|
+
modifiers: "compact no-label",
|
|
1052
|
+
class: "mb-md"
|
|
1053
|
+
}, null, 8, ["label", "placeholder"]),
|
|
1054
|
+
w(E(m), {
|
|
1055
|
+
name: "email",
|
|
1056
|
+
type: "email",
|
|
1057
|
+
label: E(r)("label.email"),
|
|
1058
|
+
placeholder: E(r)("placeholder.email"),
|
|
1059
|
+
icon: "ri:mail-line",
|
|
1060
|
+
modifiers: "compact no-label",
|
|
1061
|
+
class: "mb-md"
|
|
1062
|
+
}, null, 8, ["label", "placeholder"]),
|
|
1063
|
+
w(E(m), {
|
|
1064
|
+
name: "phone",
|
|
1065
|
+
type: "tel",
|
|
1066
|
+
label: E(r)("label.phone"),
|
|
1067
|
+
placeholder: E(r)("placeholder.phone"),
|
|
1068
|
+
icon: "ri:phone-line",
|
|
1069
|
+
class: "mb-md",
|
|
1070
|
+
modifiers: "compact no-label"
|
|
1071
|
+
}, null, 8, ["label", "placeholder"]),
|
|
1072
|
+
S("div", Be, [S("div", Ve, [w(o, {
|
|
1073
|
+
name: "ri:shield-check-line",
|
|
1074
|
+
class: "text-16 shrink-0"
|
|
1075
|
+
}), w(ie, {
|
|
1076
|
+
markdown: E(v),
|
|
1077
|
+
class: "wysiwyg"
|
|
1078
|
+
}, null, 8, ["markdown"])]), w(s, {
|
|
1079
|
+
type: "submit",
|
|
1080
|
+
modifiers: "primary",
|
|
1081
|
+
loading: t.loading,
|
|
1082
|
+
disabled: t.loading || t.readonly,
|
|
1083
|
+
"icon-position": "right",
|
|
1084
|
+
class: "shrink-0",
|
|
1085
|
+
label: E(r)("action.submit")
|
|
1086
|
+
}, null, 8, [
|
|
1087
|
+
"loading",
|
|
1088
|
+
"disabled",
|
|
1089
|
+
"label"
|
|
1090
|
+
])])
|
|
1091
|
+
]),
|
|
1092
|
+
_: 1
|
|
1093
|
+
}, 8, ["modelValue", "readonly"])]))]),
|
|
1094
|
+
_: 1
|
|
1095
|
+
})]);
|
|
1096
|
+
};
|
|
1097
|
+
}
|
|
1098
|
+
});
|
|
1099
|
+
//#endregion
|
|
1100
|
+
export { H as a, oe as c, ce as i, B as l, $ as n, se as o, Fe as r, V as s, Ke as t };
|
|
1101
|
+
|
|
1102
|
+
//# sourceMappingURL=PkToolShowContactForm-izy_eJOv.js.map
|