@8wave/ai-elements 0.115.0-beta.52 → 0.115.0-beta.60
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/dist/_chunks/Agent-Bz23Ejuh.js +705 -0
- package/dist/_chunks/Agent-Bz23Ejuh.js.map +1 -0
- package/dist/_chunks/{PkChatbotFilePreview-DcqwX9nI.js → PkChatbotFilePreview-CyaNjBrA.js} +2 -2
- package/dist/_chunks/{PkChatbotFilePreview-DcqwX9nI.js.map → PkChatbotFilePreview-CyaNjBrA.js.map} +1 -1
- package/dist/_chunks/{PkHeldImage-BtaPh0Jr.js → PkHeldImage-CtqqMvpW.js} +2 -2
- package/dist/_chunks/{PkHeldImage-BtaPh0Jr.js.map → PkHeldImage-CtqqMvpW.js.map} +1 -1
- package/dist/_chunks/{PkLazyImg-Cx2e4KmY.js → PkLazyImg-Ci06XyhW.js} +2 -2
- package/dist/_chunks/{PkLazyImg-Cx2e4KmY.js.map → PkLazyImg-Ci06XyhW.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-B_qmgO9_.js → PkStreamingMarkdown-DbSttKVa.js} +3 -3
- package/dist/_chunks/{PkStreamingMarkdown-B_qmgO9_.js.map → PkStreamingMarkdown-DbSttKVa.js.map} +1 -1
- package/dist/_chunks/{PkToolEditSpreadsheet-BSxYLcys.js → PkToolEditSpreadsheet-BrYSJlT4.js} +3 -3
- package/dist/_chunks/{PkToolEditSpreadsheet-BSxYLcys.js.map → PkToolEditSpreadsheet-BrYSJlT4.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-YW0ilIxN.js → PkToolRequestGeolocation-D4rIR3LN.js} +3 -3
- package/dist/_chunks/{PkToolRequestGeolocation-YW0ilIxN.js.map → PkToolRequestGeolocation-D4rIR3LN.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-Cx4aFL5g.js → PkToolRequestOAuthConnection-epwcNb5F.js} +3 -3
- package/dist/_chunks/{PkToolRequestOAuthConnection-Cx4aFL5g.js.map → PkToolRequestOAuthConnection-epwcNb5F.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-Bgj02cPe.js → PkToolShowArtifact-BGUn1sMi.js} +3 -3
- package/dist/_chunks/{PkToolShowArtifact-Bgj02cPe.js.map → PkToolShowArtifact-BGUn1sMi.js.map} +1 -1
- package/dist/_chunks/{PkToolShowCalendarEvent-BLSTS6zf.js → PkToolShowCalendarEvent-DwxqgAUr.js} +3 -3
- package/dist/_chunks/PkToolShowCalendarEvent-DwxqgAUr.js.map +1 -0
- package/dist/_chunks/{PkToolShowComparison-DdT-C7iJ.js → PkToolShowComparison-hDhhVvwp.js} +2 -2
- package/dist/_chunks/{PkToolShowComparison-DdT-C7iJ.js.map → PkToolShowComparison-hDhhVvwp.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-Die8UpNv.js → PkToolShowContactForm-ChaAOt5I.js} +4 -4
- package/dist/_chunks/{PkToolShowContactForm-Die8UpNv.js.map → PkToolShowContactForm-ChaAOt5I.js.map} +1 -1
- package/dist/_chunks/{PkToolShowDiagram-Ct-dFEmS.js → PkToolShowDiagram-CyNPq6j7.js} +2 -2
- package/dist/_chunks/{PkToolShowDiagram-Ct-dFEmS.js.map → PkToolShowDiagram-CyNPq6j7.js.map} +1 -1
- package/dist/_chunks/{PkToolShowEmail-BvH4Czk2.js → PkToolShowEmail-BM16pMjW.js} +2 -2
- package/dist/_chunks/{PkToolShowEmail-BvH4Czk2.js.map → PkToolShowEmail-BM16pMjW.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-Dmq95u6b.js → PkToolShowForm-BpTuRgHg.js} +8 -8
- package/dist/_chunks/PkToolShowForm-BpTuRgHg.js.map +1 -0
- package/dist/_chunks/{PkToolShowImageGallery-CKuyTxih.js → PkToolShowImageGallery-CgjP34RE.js} +4 -4
- package/dist/_chunks/{PkToolShowImageGallery-CKuyTxih.js.map → PkToolShowImageGallery-CgjP34RE.js.map} +1 -1
- package/dist/_chunks/{PkToolShowLocation-DLYMzcrZ.js → PkToolShowLocation-rK5fcW4y.js} +2 -2
- package/dist/_chunks/{PkToolShowLocation-DLYMzcrZ.js.map → PkToolShowLocation-rK5fcW4y.js.map} +1 -1
- package/dist/_chunks/{PkToolShowMessage-BGcIhbEe.js → PkToolShowMessage-DgT-JkYg.js} +2 -2
- package/dist/_chunks/{PkToolShowMessage-BGcIhbEe.js.map → PkToolShowMessage-DgT-JkYg.js.map} +1 -1
- package/dist/_chunks/PkToolShowProductList-BIeg8NR-.js +72 -0
- package/dist/_chunks/PkToolShowProductList-BIeg8NR-.js.map +1 -0
- package/dist/_chunks/{PkToolShowQrCode-DDT92XTk.js → PkToolShowQrCode-C2hZDGqM.js} +2 -2
- package/dist/_chunks/{PkToolShowQrCode-DDT92XTk.js.map → PkToolShowQrCode-C2hZDGqM.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-MJRFeqMA.js → PkToolShowSources-B9nZyCAn.js} +4 -4
- package/dist/_chunks/{PkToolShowSources-MJRFeqMA.js.map → PkToolShowSources-B9nZyCAn.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-DPVS3C74.js → PkToolShowSuggestedReply-D6g3UYqI.js} +3 -3
- package/dist/_chunks/{PkToolShowSuggestedReply-DPVS3C74.js.map → PkToolShowSuggestedReply-D6g3UYqI.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-DnvvRE7H.js → PkToolShowVideo-B6GG8PJm.js} +4 -4
- package/dist/_chunks/{PkToolShowVideo-DnvvRE7H.js.map → PkToolShowVideo-B6GG8PJm.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWeather-DrxYD77R.js → PkToolShowWeather-C80WsCYi.js} +2 -2
- package/dist/_chunks/{PkToolShowWeather-DrxYD77R.js.map → PkToolShowWeather-C80WsCYi.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-CYbiGa7e.js → PkToolShowWebPages-BkUh-IyZ.js} +11 -11
- package/dist/_chunks/PkToolShowWebPages-BkUh-IyZ.js.map +1 -0
- package/dist/_chunks/{VvCheckbox.es-VDzdPrIO.js → VvCheckbox.es-UTRUhwdC.js} +2 -2
- package/dist/_chunks/{VvCheckbox.es-VDzdPrIO.js.map → VvCheckbox.es-UTRUhwdC.js.map} +1 -1
- package/dist/_chunks/{VvCheckboxGroup.es-D3Q0u-Xo.js → VvCheckboxGroup.es-Cj7KLXHq.js} +2 -2
- package/dist/_chunks/{VvCheckboxGroup.es-D3Q0u-Xo.js.map → VvCheckboxGroup.es-Cj7KLXHq.js.map} +1 -1
- package/dist/_chunks/{VvCombobox.es-CcgeeuW6.js → VvCombobox.es-DptfdnAe.js} +2 -2
- package/dist/_chunks/{VvCombobox.es-CcgeeuW6.js.map → VvCombobox.es-DptfdnAe.js.map} +1 -1
- package/dist/_chunks/{VvInputText.es-C5Y-NpdS.js → VvInputText.es-DqLQDq9I.js} +2 -2
- package/dist/_chunks/{VvInputText.es-C5Y-NpdS.js.map → VvInputText.es-DqLQDq9I.js.map} +1 -1
- package/dist/_chunks/{VvRadio.es-CgueGQnO.js → VvRadio.es-D7Ws1in6.js} +2 -2
- package/dist/_chunks/{VvRadio.es-CgueGQnO.js.map → VvRadio.es-D7Ws1in6.js.map} +1 -1
- package/dist/_chunks/{VvRadioGroup.es-CoyUKzWp.js → VvRadioGroup.es-BDgpsR9Z.js} +2 -2
- package/dist/_chunks/{VvRadioGroup.es-CoyUKzWp.js.map → VvRadioGroup.es-BDgpsR9Z.js.map} +1 -1
- package/dist/_chunks/{VvSelect.es-DJWvclS9.js → VvSelect.es-DWbNpZKw.js} +2 -2
- package/dist/_chunks/{VvSelect.es-DJWvclS9.js.map → VvSelect.es-DWbNpZKw.js.map} +1 -1
- package/dist/_chunks/{VvTextarea.es-zXk1Uruf.js → VvTextarea.es-5UD9_C3G.js} +2 -2
- package/dist/_chunks/{VvTextarea.es-zXk1Uruf.js.map → VvTextarea.es-5UD9_C3G.js.map} +1 -1
- package/dist/_chunks/{chatImagePolicy-C5eH4Cpq.js → chatImagePolicy-Cnmsgd96.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-C5eH4Cpq.js.map → chatImagePolicy-Cnmsgd96.js.map} +1 -1
- package/dist/_chunks/{index.es-_UjFDhTh.js → index.es-B9zAw2XU.js} +2 -2
- package/dist/_chunks/{index.es-_UjFDhTh.js.map → index.es-B9zAw2XU.js.map} +1 -1
- package/dist/_chunks/{index.es-BVC277zB.js → index.es-D9VqgSyV.js} +10 -10
- package/dist/_chunks/{index.es-BVC277zB.js.map → index.es-D9VqgSyV.js.map} +1 -1
- package/dist/_chunks/{markdown-qIVVfGoX.js → markdown-25UY48qE.js} +2 -2
- package/dist/_chunks/{markdown-qIVVfGoX.js.map → markdown-25UY48qE.js.map} +1 -1
- package/dist/ai-elements.es.js +939 -785
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotAuth.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotFeedbackForm.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotStepPayload.js +1 -1
- package/dist-vue/PkChatbotStepToolDetail.js +1 -1
- package/dist-vue/PkChatbotSteps.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/Agent-Ci7XnQ12.js +742 -0
- package/dist-vue/_chunks/Agent-Ci7XnQ12.js.map +1 -0
- package/dist-vue/_chunks/{Document-DmBTgjd4.js → Document-Bhlc3wdt.js} +10 -10
- package/dist-vue/_chunks/{Document-DmBTgjd4.js.map → Document-Bhlc3wdt.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbot-W9tO1H9i.js → PkChatbot-C05Rv5zO.js} +8 -8
- package/dist-vue/_chunks/{PkChatbot-W9tO1H9i.js.map → PkChatbot-C05Rv5zO.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotAuth-C2TpCnWH.js → PkChatbotAuth-DD5RF7kY.js} +3 -3
- package/dist-vue/_chunks/PkChatbotAuth-DD5RF7kY.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotEmptyState-BY3f3T0T.js → PkChatbotEmptyState-B5qeL1kv.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-BY3f3T0T.js.map → PkChatbotEmptyState-B5qeL1kv.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-h4mjmVTG.js → PkChatbotFeedbackForm-BJ_Omuq2.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotFeedbackForm-h4mjmVTG.js.map → PkChatbotFeedbackForm-BJ_Omuq2.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-C5l6QDQY.js → PkChatbotInput-BLzTQmvy.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotInput-C5l6QDQY.js.map → PkChatbotInput-BLzTQmvy.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-3RZER9PO.js → PkChatbotMessages-CxTz0W0d.js} +22 -22
- package/dist-vue/_chunks/PkChatbotMessages-CxTz0W0d.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotStepPayload-C-xnhmzZ.js → PkChatbotStepPayload-B04aqOGu.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-C-xnhmzZ.js.map → PkChatbotStepPayload-B04aqOGu.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-Cko1vU0N.js → PkChatbotStepToolDetail-yII_Dk3p.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-Cko1vU0N.js.map → PkChatbotStepToolDetail-yII_Dk3p.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-BkZ3Kq2M.js → PkChatbotSteps-DYiCeWOd.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-BkZ3Kq2M.js.map → PkChatbotSteps-DYiCeWOd.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-BFImSy1X.js → PkChatbotViewChat-s-Vx4U1E.js} +7 -7
- package/dist-vue/_chunks/PkChatbotViewChat-s-Vx4U1E.js.map +1 -0
- package/dist-vue/_chunks/PkChatbotViewConversations-D7XHDBGS.js +195 -0
- package/dist-vue/_chunks/PkChatbotViewConversations-D7XHDBGS.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewFiles-CMQdbZN6.js → PkChatbotViewFiles-t07w-VNZ.js} +36 -36
- package/dist-vue/_chunks/PkChatbotViewFiles-t07w-VNZ.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewProfile-CDCy1LEX.js → PkChatbotViewProfile-DJT5AEkZ.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-CDCy1LEX.js.map → PkChatbotViewProfile-DJT5AEkZ.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-DJG-aPx2.js → PkStreamingMarkdown-ALhm02o3.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-DJG-aPx2.js.map → PkStreamingMarkdown-ALhm02o3.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolEditSpreadsheet-BHh7NUdR.js → PkToolEditSpreadsheet-DU3RBd6q.js} +2 -2
- package/dist-vue/_chunks/{PkToolEditSpreadsheet-BHh7NUdR.js.map → PkToolEditSpreadsheet-DU3RBd6q.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-Ccbhljmn.js → PkToolRequestGeolocation-CE4zQofM.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-Ccbhljmn.js.map → PkToolRequestGeolocation-CE4zQofM.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-BXf5ZRzR.js → PkToolRequestOAuthConnection-CAk5s541.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-BXf5ZRzR.js.map → PkToolRequestOAuthConnection-CAk5s541.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-BsfbvfVC.js → PkToolShowArtifact-CA1sKasD.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-BsfbvfVC.js.map → PkToolShowArtifact-CA1sKasD.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowCalendarEvent-yttlTHiX.js → PkToolShowCalendarEvent-Cb3lmDQZ.js} +2 -2
- package/dist-vue/_chunks/PkToolShowCalendarEvent-Cb3lmDQZ.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowContactForm-C-YbtBlG.js → PkToolShowContactForm-C0QHEj5k.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowContactForm-C-YbtBlG.js.map → PkToolShowContactForm-C0QHEj5k.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-CIHVrQ3e.js → PkToolShowDiagram-CQUd_reA.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-CIHVrQ3e.js.map → PkToolShowDiagram-CQUd_reA.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-BwYJhEVO.js → PkToolShowForm-B_ezmfuo.js} +8 -8
- package/dist-vue/_chunks/PkToolShowForm-B_ezmfuo.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowImageGallery-1A9zyOVn.js → PkToolShowImageGallery-B8gmmHvk.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-1A9zyOVn.js.map → PkToolShowImageGallery-B8gmmHvk.js.map} +1 -1
- package/dist-vue/_chunks/PkToolShowProductList-BMvt5mKe.js +72 -0
- package/dist-vue/_chunks/PkToolShowProductList-BMvt5mKe.js.map +1 -0
- package/dist-vue/_chunks/{PkToolShowSources-BQpdJE_m.js → PkToolShowSources-DEmjN0Ou.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-BQpdJE_m.js.map → PkToolShowSources-DEmjN0Ou.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-D3jLsbKJ.js → PkToolShowSuggestedReply-BE6gBA-2.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-D3jLsbKJ.js.map → PkToolShowSuggestedReply-BE6gBA-2.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-DUdkb3qb.js → PkToolShowVideo-ZPDVzjPX.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-DUdkb3qb.js.map → PkToolShowVideo-ZPDVzjPX.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-BeeBiv9R.js → PkToolShowWebPages-dI4WMr7F.js} +8 -8
- package/dist-vue/_chunks/PkToolShowWebPages-dI4WMr7F.js.map +1 -0
- package/dist-vue/_chunks/{createChatbotApiClient-CDrs7NwO.js → createChatbotApiClient-IlTQndxL.js} +2 -2
- package/dist-vue/_chunks/{createChatbotApiClient-CDrs7NwO.js.map → createChatbotApiClient-IlTQndxL.js.map} +1 -1
- package/dist-vue/_chunks/{index.es-D7kQZyxD.js → index.es-VzNLOQUv.js} +2 -2
- package/dist-vue/_chunks/{index.es-D7kQZyxD.js.map → index.es-VzNLOQUv.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-D6YNk8Rx.js → useChatbotStore-CtJ3bwuy.js} +3 -3
- package/dist-vue/_chunks/{useChatbotStore-D6YNk8Rx.js.map → useChatbotStore-CtJ3bwuy.js.map} +1 -1
- package/dist-vue/_chunks/{useDialogConfirm-KWz0ohCQ.js → useDialogConfirm-BxhvsnRr.js} +9 -8
- package/dist-vue/_chunks/useDialogConfirm-BxhvsnRr.js.map +1 -0
- package/dist-vue/_chunks/{utils-roi6YVNC.js → utils-BzypADaU.js} +2 -2
- package/dist-vue/_chunks/{utils-roi6YVNC.js.map → utils-BzypADaU.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/components/EmbeddedChatWidget.ce.d.ts +4 -4
- package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +5 -4
- package/dist-vue/apps/web-component/src/composables/useChatbotProfileProvider.d.ts +1 -1
- package/dist-vue/composables.js +169 -24
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +3477 -3384
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/packages/auth/src/email-brand.d.ts +11 -0
- package/dist-vue/packages/components/src/PkEditorMarkdown.d.ts +1 -1
- package/dist-vue/packages/components/src/chat/PkChatbotMessages.d.ts +1 -1
- package/dist-vue/packages/components/src/table/PkTableEmpty.d.ts +1 -1
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +6 -6
- package/dist-vue/packages/composable/src/index.d.ts +1 -0
- package/dist-vue/packages/composable/src/useBranding.d.ts +89 -0
- package/dist-vue/packages/composable/src/useDialogConfirm.d.ts +2 -1
- package/dist-vue/packages/composable/src/useSettingsStore.d.ts +8 -3
- package/dist-vue/packages/models/src/schema/Agent.d.ts +20 -14
- package/dist-vue/packages/models/src/schema/Branding.d.ts +625 -0
- package/dist-vue/packages/models/src/schema/Platform.d.ts +8 -0
- package/dist-vue/packages/models/src/schema/PwaManifest.d.ts +38 -0
- package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +2 -2
- package/dist-vue/packages/models/src/schema/SubAgent.d.ts +2 -2
- package/dist-vue/packages/models/src/schema/index.d.ts +2 -0
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/Agent-CJbRpoZG.js +0 -577
- package/dist/_chunks/Agent-CJbRpoZG.js.map +0 -1
- package/dist/_chunks/PkToolShowCalendarEvent-BLSTS6zf.js.map +0 -1
- package/dist/_chunks/PkToolShowForm-Dmq95u6b.js.map +0 -1
- package/dist/_chunks/PkToolShowProductList-DjS9nvXe.js +0 -72
- package/dist/_chunks/PkToolShowProductList-DjS9nvXe.js.map +0 -1
- package/dist/_chunks/PkToolShowWebPages-CYbiGa7e.js.map +0 -1
- package/dist-vue/_chunks/Agent---jwXeaB.js +0 -558
- package/dist-vue/_chunks/Agent---jwXeaB.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotAuth-C2TpCnWH.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-3RZER9PO.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-BFImSy1X.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewConversations-C6T4ZxxX.js +0 -195
- package/dist-vue/_chunks/PkChatbotViewConversations-C6T4ZxxX.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewFiles-CMQdbZN6.js.map +0 -1
- package/dist-vue/_chunks/PkToolShowCalendarEvent-yttlTHiX.js.map +0 -1
- package/dist-vue/_chunks/PkToolShowForm-BwYJhEVO.js.map +0 -1
- package/dist-vue/_chunks/PkToolShowProductList-D61i6AMs.js +0 -72
- package/dist-vue/_chunks/PkToolShowProductList-D61i6AMs.js.map +0 -1
- package/dist-vue/_chunks/PkToolShowWebPages-BeeBiv9R.js.map +0 -1
- package/dist-vue/_chunks/useDialogConfirm-KWz0ohCQ.js.map +0 -1
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { r as t } from "./PkStreamingMarkdown-DJG-aPx2.js";
|
|
3
|
-
import { t as n } from "./PkLazyImg-CDxX9xnq.js";
|
|
4
|
-
import { t as r } from "./PkUrl-CN1kkZiH.js";
|
|
5
|
-
import { t as i } from "./PkHeldImage-BqnlurT_.js";
|
|
6
|
-
import { VvIcon as a } from "@volverjs/ui-vue/components";
|
|
7
|
-
import { Fragment as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, defineComponent as p, openBlock as m, renderList as h, resolveDynamicComponent as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
|
|
8
|
-
//#region ../../packages/components/src/chat/PkToolShowProductList.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var b = {
|
|
10
|
-
key: 0,
|
|
11
|
-
class: "u-pick-list w-full"
|
|
12
|
-
}, x = { class: "flex flex-col gap-4 min-w-0 flex-1" }, S = { class: "font-bold text-12 text-word-1 truncate" }, C = {
|
|
13
|
-
key: 0,
|
|
14
|
-
class: "text-10 text-word-4 truncate flex items-center gap-4"
|
|
15
|
-
}, w = { class: "flex items-center gap-sm flex-wrap text-12" }, T = {
|
|
16
|
-
key: 0,
|
|
17
|
-
class: "font-semibold text-word-1"
|
|
18
|
-
}, E = {
|
|
19
|
-
key: 1,
|
|
20
|
-
class: "text-10 text-word-3"
|
|
21
|
-
}, D = {
|
|
22
|
-
key: 1,
|
|
23
|
-
class: "text-12 text-word-3 line-clamp-2"
|
|
24
|
-
}, O = /*@__PURE__*/ p({
|
|
25
|
-
__name: "PkToolShowProductList",
|
|
26
|
-
props: { part: {} },
|
|
27
|
-
setup(e) {
|
|
28
|
-
let p = e, O = s(() => p.part), k = t();
|
|
29
|
-
return (e, t) => {
|
|
30
|
-
let s = a;
|
|
31
|
-
return O.value?.input?.products?.length ? (m(), u("ul", b, [(m(!0), u(o, null, h(O.value.input.products, (e, t) => (m(), u("li", {
|
|
32
|
-
key: t,
|
|
33
|
-
class: "u-pick-list__row"
|
|
34
|
-
}, [(m(), c(g(e.url ? "a" : "div"), {
|
|
35
|
-
href: e.url,
|
|
36
|
-
target: e.url ? "_blank" : void 0,
|
|
37
|
-
rel: e.url ? "noopener noreferrer" : void 0,
|
|
38
|
-
class: "u-pick-list__entry"
|
|
39
|
-
}, {
|
|
40
|
-
default: y(() => [e.image && !v(k).canLoad(e.image) ? (m(), c(i, {
|
|
41
|
-
key: 0,
|
|
42
|
-
host: v(k).hostOf(e.image),
|
|
43
|
-
class: "w-48 h-48 rounded-lg shrink-0 border border-surface-3 bg-surface",
|
|
44
|
-
onRelease: (t) => v(k).release(e.image)
|
|
45
|
-
}, null, 8, ["host", "onRelease"])) : e.image ? (m(), c(n, {
|
|
46
|
-
key: 1,
|
|
47
|
-
src: e.image,
|
|
48
|
-
alt: e.name,
|
|
49
|
-
"fallback-icon": "ri:image-off-line",
|
|
50
|
-
class: "w-48 h-48 object-contain rounded-lg shrink-0 border border-surface-3 bg-surface"
|
|
51
|
-
}, null, 8, ["src", "alt"])) : l("", !0), d("div", x, [
|
|
52
|
-
d("strong", S, _(e.name), 1),
|
|
53
|
-
e.url ? (m(), u("span", C, [f(s, {
|
|
54
|
-
name: "ri:link",
|
|
55
|
-
class: "shrink-0 text-12"
|
|
56
|
-
}), f(r, { url: e.url }, null, 8, ["url"])])) : l("", !0),
|
|
57
|
-
d("div", w, [e.price ? (m(), u("span", T, _(e.price), 1)) : l("", !0), e.availability ? (m(), u("span", E, _(e.availability), 1)) : l("", !0)]),
|
|
58
|
-
e.description ? (m(), u("p", D, _(e.description), 1)) : l("", !0)
|
|
59
|
-
])]),
|
|
60
|
-
_: 2
|
|
61
|
-
}, 1032, [
|
|
62
|
-
"href",
|
|
63
|
-
"target",
|
|
64
|
-
"rel"
|
|
65
|
-
]))]))), 128))])) : l("", !0);
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
}), k = /* @__PURE__ */ e({ default: () => A }), A = O;
|
|
69
|
-
//#endregion
|
|
70
|
-
export { k as n, A as t };
|
|
71
|
-
|
|
72
|
-
//# sourceMappingURL=PkToolShowProductList-D61i6AMs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PkToolShowProductList-D61i6AMs.js","names":["__unplugin_components_0","_openBlock","_createElementBlock","_Fragment","_renderList","_createBlock","_resolveDynamicComponent","_withCtx","_unref","PkHeldImage","PkLazyImg","_createCommentVNode","_createElementVNode","_toDisplayString","_createVNode","PkUrl","_sfc_main","__exportAll","useChatImageGate","PkLazyImg_default","PkUrl_default","PkHeldImage_default","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","PkToolShowProductList_vue_vue_type_script_setup_true_lang_default","props","__props","toolPart","computed","imageGate","_component_VvIcon","VvIcon","openBlock","createElementBlock","Fragment","renderList","index","createBlock","resolveDynamicComponent","product","withCtx","unref","createCommentVNode","createElementVNode","toDisplayString","createVNode","PkToolShowProductList_exports","PkToolShowProductList_default"],"sources":["../../../../packages/components/src/chat/PkToolShowProductList.vue","../../../../packages/components/src/chat/PkToolShowProductList.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { computed } from 'vue'\n import PkLazyImg from '../PkLazyImg.vue'\n import { useChatImageGate } from './chatImagePolicy'\n import PkHeldImage from './PkHeldImage.vue'\n import PkUrl from '../PkUrl.vue'\n\n const props = defineProps<{\n part: unknown\n }>()\n\n const toolPart = computed(() => {\n const part = props.part as {\n input?: {\n products: Array<{\n name: string\n url?: string\n image?: string\n price?: string\n availability?: string\n description?: string\n }>\n }\n }\n return part\n })\n\n // The model writes these urls: one from a host the agent does not list\n // waits for a click (chatImagePolicy.ts).\n const imageGate = useChatImageGate()\n</script>\n\n<template>\n <ul v-if=\"toolPart?.input?.products?.length\" class=\"u-pick-list w-full\">\n <li\n v-for=\"(product, index) in toolPart.input.products\"\n :key=\"index\"\n class=\"u-pick-list__row\">\n <component\n :is=\"product.url ? 'a' : 'div'\"\n :href=\"product.url\"\n :target=\"product.url ? '_blank' : undefined\"\n :rel=\"product.url ? 'noopener noreferrer' : undefined\"\n class=\"u-pick-list__entry\">\n <!-- Merchant images rot over time: a dead one degrades to an icon\n so the row keeps its thumbnail slot -->\n <PkHeldImage\n v-if=\"product.image && !imageGate.canLoad(product.image)\"\n :host=\"imageGate.hostOf(product.image)\"\n class=\"w-48 h-48 rounded-lg shrink-0 border border-surface-3 bg-surface\"\n @release=\"imageGate.release(product.image)\" />\n <PkLazyImg\n v-else-if=\"product.image\"\n :src=\"product.image\"\n :alt=\"product.name\"\n fallback-icon=\"ri:image-off-line\"\n class=\"w-48 h-48 object-contain rounded-lg shrink-0 border border-surface-3 bg-surface\" />\n <div class=\"flex flex-col gap-4 min-w-0 flex-1\">\n <strong class=\"font-bold text-12 text-word-1 truncate\">\n {{ product.name }}\n </strong>\n <span\n v-if=\"product.url\"\n class=\"text-10 text-word-4 truncate flex items-center gap-4\">\n <VvIcon name=\"ri:link\" class=\"shrink-0 text-12\" />\n <PkUrl :url=\"product.url\" />\n </span>\n <div class=\"flex items-center gap-sm flex-wrap text-12\">\n <span\n v-if=\"product.price\"\n class=\"font-semibold text-word-1\">\n {{ product.price }}\n </span>\n <!-- Free text from the merchant: it was colour-coded by\n substring, which only ever matched English and\n Italian. It reads as the note it is. -->\n <span\n v-if=\"product.availability\"\n class=\"text-10 text-word-3\">\n {{ product.availability }}\n </span>\n </div>\n <p\n v-if=\"product.description\"\n class=\"text-12 text-word-3 line-clamp-2\">\n {{ product.description }}\n </p>\n </div>\n </component>\n </li>\n </ul>\n</template>\n","<script setup lang=\"ts\">\n import { computed } from 'vue'\n import PkLazyImg from '../PkLazyImg.vue'\n import { useChatImageGate } from './chatImagePolicy'\n import PkHeldImage from './PkHeldImage.vue'\n import PkUrl from '../PkUrl.vue'\n\n const props = defineProps<{\n part: unknown\n }>()\n\n const toolPart = computed(() => {\n const part = props.part as {\n input?: {\n products: Array<{\n name: string\n url?: string\n image?: string\n price?: string\n availability?: string\n description?: string\n }>\n }\n }\n return part\n })\n\n // The model writes these urls: one from a host the agent does not list\n // waits for a click (chatImagePolicy.ts).\n const imageGate = useChatImageGate()\n</script>\n\n<template>\n <ul v-if=\"toolPart?.input?.products?.length\" class=\"u-pick-list w-full\">\n <li\n v-for=\"(product, index) in toolPart.input.products\"\n :key=\"index\"\n class=\"u-pick-list__row\">\n <component\n :is=\"product.url ? 'a' : 'div'\"\n :href=\"product.url\"\n :target=\"product.url ? '_blank' : undefined\"\n :rel=\"product.url ? 'noopener noreferrer' : undefined\"\n class=\"u-pick-list__entry\">\n <!-- Merchant images rot over time: a dead one degrades to an icon\n so the row keeps its thumbnail slot -->\n <PkHeldImage\n v-if=\"product.image && !imageGate.canLoad(product.image)\"\n :host=\"imageGate.hostOf(product.image)\"\n class=\"w-48 h-48 rounded-lg shrink-0 border border-surface-3 bg-surface\"\n @release=\"imageGate.release(product.image)\" />\n <PkLazyImg\n v-else-if=\"product.image\"\n :src=\"product.image\"\n :alt=\"product.name\"\n fallback-icon=\"ri:image-off-line\"\n class=\"w-48 h-48 object-contain rounded-lg shrink-0 border border-surface-3 bg-surface\" />\n <div class=\"flex flex-col gap-4 min-w-0 flex-1\">\n <strong class=\"font-bold text-12 text-word-1 truncate\">\n {{ product.name }}\n </strong>\n <span\n v-if=\"product.url\"\n class=\"text-10 text-word-4 truncate flex items-center gap-4\">\n <VvIcon name=\"ri:link\" class=\"shrink-0 text-12\" />\n <PkUrl :url=\"product.url\" />\n </span>\n <div class=\"flex items-center gap-sm flex-wrap text-12\">\n <span\n v-if=\"product.price\"\n class=\"font-semibold text-word-1\">\n {{ product.price }}\n </span>\n <!-- Free text from the merchant: it was colour-coded by\n substring, which only ever matched English and\n Italian. It reads as the note it is. -->\n <span\n v-if=\"product.availability\"\n class=\"text-10 text-word-3\">\n {{ product.availability }}\n </span>\n </div>\n <p\n v-if=\"product.description\"\n class=\"text-12 text-word-3 line-clamp-2\">\n {{ product.description }}\n </p>\n </div>\n </component>\n </li>\n </ul>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;EAOI,IAAM+B,IAAQC,GAIRC,IAAWC,QACAH,EAAM,IAatB,GAIKI,IAAYjB,EAAiB;;;GAIzB,OAAAe,EAAA,OAAU,OAAO,UAAU,UAArChC,EAAA,GAAAC,EAyDK,MAzDLoB,GAyDK,EAxDDrB,EAAA,EAAA,GAAAC,EAuDKC,GAAA,MAAAC,EAtD0B6B,EAAA,MAAS,MAAM,WAAlC,GAAS,OADrBhC,EAAA,GAAAC,EAuDK,MAAA;IArDA,KAAKwC;IACN,OAAM;GACNzC,GAAAA,EAAAA,EAAA,GAAAI,EAkDYC,EAjDHuC,EAAQ,MAAG,MAAA,KAAA,GAAA;IAC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,CAAA,CAAA;KAIrBH,EAAQ,eADlB5C,EAAA,GAAAC,EAII,KAJJ2B,GAIIhB,EADGgC,EAAQ,WAAW,GAAA,CAAA,KAAAG,EAAA,IAAA,EAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PkToolShowWebPages-BeeBiv9R.js","names":["$t","__unplugin_components_0","_openBlock","_createElementBlock","_Fragment","_renderList","_createElementVNode","_unref","_createBlock","PkHeldImage","PkLazyImg","_createCommentVNode","_toDisplayString","_createVNode","PkUrl","_createTextVNode","_sfc_main","__exportAll","useChatImageGate","PkLazyImg_default","PkUrl_default","PkHeldImage_default","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","PkToolShowWebPages_vue_vue_type_script_setup_true_lang_default","props","__props","toolPart","computed","imageGate","normalizeUrl","u","url","uniquePages","seen","result","page","key","showMore","ref","pages","hasMore","_component_VvIcon","VvIcon","openBlock","createElementBlock","Fragment","renderList","index","createElementVNode","_ctx","unref","isSameSite","createBlock","createCommentVNode","toDisplayString","createVNode","_cache","createTextVNode","PkToolShowWebPages_exports","PkToolShowWebPages_default"],"sources":["../../../../packages/components/src/chat/PkToolShowWebPages.vue","../../../../packages/components/src/chat/PkToolShowWebPages.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { computed, ref } from 'vue'\n import { isSameSite } from 'utils'\n import PkLazyImg from '../PkLazyImg.vue'\n import { useChatImageGate } from './chatImagePolicy'\n import PkHeldImage from './PkHeldImage.vue'\n import PkUrl from '../PkUrl.vue'\n\n const props = defineProps<{\n part: unknown\n }>()\n\n const toolPart = computed(() => {\n const part = props.part as {\n input?: {\n pages: Array<{\n title: string\n url: string\n image?: string\n description?: string\n }>\n }\n }\n return part\n })\n\n // The model writes these urls: one from a host the agent does not list\n // waits for a click (chatImagePolicy.ts).\n const imageGate = useChatImageGate()\n\n // The model often passes the same URL several times (e.g. multiple KB\n // chunks from one page), so collapse duplicates, keeping the first (richest)\n // entry. Normalize by dropping the hash and any trailing slash.\n const normalizeUrl = (url: string) => {\n try {\n const u = new URL(url)\n u.hash = ''\n return u.toString().replace(/\\/$/, '')\n } catch {\n return url.trim().replace(/\\/$/, '')\n }\n }\n const uniquePages = computed(() => {\n const seen = new Set<string>()\n const result: NonNullable<typeof toolPart.value.input>['pages'] = []\n for (const page of toolPart.value.input?.pages || []) {\n const key = normalizeUrl(page.url)\n if (seen.has(key)) {\n continue\n }\n seen.add(key)\n result.push(page)\n }\n return result\n })\n\n const showMore = ref(false)\n const pages = computed(() => {\n if (showMore.value) {\n return uniquePages.value\n }\n return uniquePages.value.slice(0, 2)\n })\n const hasMore = computed(() => uniquePages.value.length > 2)\n</script>\n\n<template>\n <ul v-if=\"pages?.length\" class=\"u-pick-list w-full shrink-0\">\n <li\n v-for=\"(page, index) in pages\"\n :key=\"index\"\n class=\"u-pick-list__row\">\n <a\n :href=\"page.url\"\n :title=\"$t('action.open')\"\n :target=\"isSameSite(page.url) ? undefined : '_blank'\"\n :rel=\"isSameSite(page.url) ? undefined : 'noopener noreferrer'\"\n class=\"u-pick-list__entry u-pick-list__entry--roomy u-pick-list__entry--top\">\n <!-- og:images the model scraped are third-party urls: a dead one\n degrades to an icon instead of breaking the card layout -->\n <PkHeldImage\n v-if=\"page.image && !imageGate.canLoad(page.image)\"\n :host=\"imageGate.hostOf(page.image)\"\n class=\"w-48 h-48 rounded-lg shrink-0 border border-surface-3 bg-surface\"\n @release=\"imageGate.release(page.image)\" />\n <PkLazyImg\n v-else-if=\"page.image\"\n :src=\"page.image\"\n :alt=\"page.title\"\n fallback-icon=\"ri:image-off-line\"\n class=\"w-48 h-48 object-contain rounded-lg shrink-0 border border-surface-3 bg-surface\" />\n <div class=\"flex flex-col gap-4 min-w-0 flex-1\">\n <strong\n class=\"u-pick-list__label font-medium text-12 text-word-1\">\n {{ page.title }}\n </strong>\n <span\n class=\"text-10 text-word-4 truncate flex items-center gap-4\">\n <VvIcon name=\"ri:link\" class=\"shrink-0 text-12\" />\n <PkUrl :url=\"page.url\" />\n </span>\n <p\n v-if=\"page.description\"\n class=\"text-12 text-word-3 line-clamp-2\">\n {{ page.description }}\n </p>\n </div>\n </a>\n </li>\n <li v-if=\"hasMore\" class=\"u-pick-list__row\">\n <button\n class=\"u-pick-list__entry text-12 text-word-3 justify-center cursor-pointer\"\n @click=\"showMore = !showMore\">\n <VvIcon\n :name=\"\n showMore ? 'ri:arrow-up-s-line' : 'ri:arrow-down-s-line'\n \"\n class=\"text-16\" />\n {{\n showMore\n ? $t('action.showLess')\n : $t('action.showMore', {\n count: uniquePages.length - 2,\n })\n }}\n </button>\n </li>\n </ul>\n</template>\n","<script setup lang=\"ts\">\n import { computed, ref } from 'vue'\n import { isSameSite } from 'utils'\n import PkLazyImg from '../PkLazyImg.vue'\n import { useChatImageGate } from './chatImagePolicy'\n import PkHeldImage from './PkHeldImage.vue'\n import PkUrl from '../PkUrl.vue'\n\n const props = defineProps<{\n part: unknown\n }>()\n\n const toolPart = computed(() => {\n const part = props.part as {\n input?: {\n pages: Array<{\n title: string\n url: string\n image?: string\n description?: string\n }>\n }\n }\n return part\n })\n\n // The model writes these urls: one from a host the agent does not list\n // waits for a click (chatImagePolicy.ts).\n const imageGate = useChatImageGate()\n\n // The model often passes the same URL several times (e.g. multiple KB\n // chunks from one page), so collapse duplicates, keeping the first (richest)\n // entry. Normalize by dropping the hash and any trailing slash.\n const normalizeUrl = (url: string) => {\n try {\n const u = new URL(url)\n u.hash = ''\n return u.toString().replace(/\\/$/, '')\n } catch {\n return url.trim().replace(/\\/$/, '')\n }\n }\n const uniquePages = computed(() => {\n const seen = new Set<string>()\n const result: NonNullable<typeof toolPart.value.input>['pages'] = []\n for (const page of toolPart.value.input?.pages || []) {\n const key = normalizeUrl(page.url)\n if (seen.has(key)) {\n continue\n }\n seen.add(key)\n result.push(page)\n }\n return result\n })\n\n const showMore = ref(false)\n const pages = computed(() => {\n if (showMore.value) {\n return uniquePages.value\n }\n return uniquePages.value.slice(0, 2)\n })\n const hasMore = computed(() => uniquePages.value.length > 2)\n</script>\n\n<template>\n <ul v-if=\"pages?.length\" class=\"u-pick-list w-full shrink-0\">\n <li\n v-for=\"(page, index) in pages\"\n :key=\"index\"\n class=\"u-pick-list__row\">\n <a\n :href=\"page.url\"\n :title=\"$t('action.open')\"\n :target=\"isSameSite(page.url) ? undefined : '_blank'\"\n :rel=\"isSameSite(page.url) ? undefined : 'noopener noreferrer'\"\n class=\"u-pick-list__entry u-pick-list__entry--roomy u-pick-list__entry--top\">\n <!-- og:images the model scraped are third-party urls: a dead one\n degrades to an icon instead of breaking the card layout -->\n <PkHeldImage\n v-if=\"page.image && !imageGate.canLoad(page.image)\"\n :host=\"imageGate.hostOf(page.image)\"\n class=\"w-48 h-48 rounded-lg shrink-0 border border-surface-3 bg-surface\"\n @release=\"imageGate.release(page.image)\" />\n <PkLazyImg\n v-else-if=\"page.image\"\n :src=\"page.image\"\n :alt=\"page.title\"\n fallback-icon=\"ri:image-off-line\"\n class=\"w-48 h-48 object-contain rounded-lg shrink-0 border border-surface-3 bg-surface\" />\n <div class=\"flex flex-col gap-4 min-w-0 flex-1\">\n <strong\n class=\"u-pick-list__label font-medium text-12 text-word-1\">\n {{ page.title }}\n </strong>\n <span\n class=\"text-10 text-word-4 truncate flex items-center gap-4\">\n <VvIcon name=\"ri:link\" class=\"shrink-0 text-12\" />\n <PkUrl :url=\"page.url\" />\n </span>\n <p\n v-if=\"page.description\"\n class=\"text-12 text-word-3 line-clamp-2\">\n {{ page.description }}\n </p>\n </div>\n </a>\n </li>\n <li v-if=\"hasMore\" class=\"u-pick-list__row\">\n <button\n class=\"u-pick-list__entry text-12 text-word-3 justify-center cursor-pointer\"\n @click=\"showMore = !showMore\">\n <VvIcon\n :name=\"\n showMore ? 'ri:arrow-up-s-line' : 'ri:arrow-down-s-line'\n \"\n class=\"text-16\" />\n {{\n showMore\n ? $t('action.showLess')\n : $t('action.showMore', {\n count: uniquePages.length - 2,\n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AAAA,MAAAA,GAAAA,CAAAA,MAAAA,CAAAA,GAAAA,EAAA,MACtBH,EACI+B,EAAA,QAAmC3C,EAAAA,GAAE,iBAAA,IAA8CA,EAAAA,GAAE,mBAAA,EAA2D,OAAAsC,EAAA,MAAY,SAAM,EAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA,KAAAqB,EAAA,IAAA,EAAA,CAAA,CAAA,KAAAA,EAAA,IAAA,EAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDialogConfirm-KWz0ohCQ.js","names":["isOpen","ref","title","transition","modifiers","size","keepOpen","role","slots","useDialog","onUpdateModelValue","value","onAfterLeave","defineComponent","h","VvDialog","newProps","newSlots","nextTick","useDialogConfirm","$t","useI18n","passphraseText","openDialog","descriptionLabel","questionLabel","passphrase","VvInputText","passphraseLabel","passphraseHint","VvButtonGroup","toReturn","onlyConfirm","VvButton","cancelLabel","emitReject","reject","resolve","confirmLabel"],"sources":["../../../../packages/composable/src/useDialog.ts","../../../../packages/composable/src/useDialogConfirm.ts"],"sourcesContent":["import { VvDialog } from '@volverjs/ui-vue/components'\nimport { defineComponent, h, nextTick, ref, type VNode } from 'vue'\n\ntype DialogProps = {\n title?: string\n transition?: string\n modifiers?: string | string[]\n /** @deprecated use modifiers instead */\n size?: 'small' | 'standard' | 'fullscreen'\n role?: 'alert' | 'alertdialog'\n keepOpen?: boolean\n}\n\ntype DialogSlots = {\n footer?: () => VNode | string\n header?: () => VNode | string\n default?: () => VNode | string | VNode[] | string[]\n}\n\nconst isOpen = ref(false)\nconst title = ref<DialogProps['title']>()\nconst transition = ref<DialogProps['transition']>()\nconst modifiers = ref<DialogProps['modifiers']>()\nconst size = ref<DialogProps['size']>()\nconst keepOpen = ref<DialogProps['keepOpen']>(false)\nconst role = ref<DialogProps['role']>()\nconst slots = ref<DialogSlots>()\n\nexport const useDialog = () => {\n const onUpdateModelValue = (value: boolean) => {\n isOpen.value = value\n }\n\n const onAfterLeave = () => {\n title.value = undefined\n transition.value = undefined\n modifiers.value = undefined\n size.value = undefined\n keepOpen.value = undefined\n role.value = undefined\n slots.value = undefined\n }\n\n const PkGlobalDialog = defineComponent({\n name: 'PkGlobalDialog',\n render: () =>\n h(\n VvDialog,\n {\n modelValue: isOpen.value,\n title: title.value,\n transition: transition.value,\n modifiers: modifiers.value,\n size: size.value,\n keepOpen: keepOpen.value,\n role: role.value,\n 'onUpdate:modelValue': onUpdateModelValue,\n onAfterLeave: onAfterLeave,\n },\n slots.value,\n ),\n })\n\n const openDialog = (newProps: DialogProps, newSlots?: DialogSlots) => {\n title.value = newProps?.title\n transition.value = newProps?.transition\n modifiers.value = newProps?.modifiers\n size.value = newProps?.size\n keepOpen.value = newProps?.keepOpen ?? false\n role.value = newProps?.role\n slots.value = newSlots\n nextTick(() => {\n isOpen.value = true\n })\n return isOpen\n }\n\n return { PkGlobalDialog, openDialog, isOpen }\n}\n","import type { VNode } from 'vue'\nimport { h, ref } from 'vue'\nimport { useI18n } from 'vue-i18n'\nimport {\n VvButton,\n VvButtonGroup,\n VvInputText,\n} from '@volverjs/ui-vue/components'\nimport { useDialog } from './useDialog'\n\nexport const useDialogConfirm = () => {\n const { openDialog } = useDialog()\n const { t: $t } = useI18n({\n useScope: 'global',\n })\n\n /**\n * Ask before doing something, in three parts that a person reads in order.\n *\n * `title` is what is about to happen, short, in the dialog header.\n * `questionLabel` is the question itself. `descriptionLabel` is what it\n * costs: the consequences, secondary, under the question. Splitting them\n * is the whole point: a confirm that puts question and consequences in one\n * paragraph is read as a wall and answered without being read, which is\n * the opposite of what a confirm is for.\n */\n const openDialogConfirm = ({\n emitReject = false,\n confirmLabel,\n cancelLabel,\n questionLabel,\n descriptionLabel,\n onlyConfirm = false,\n passphrase,\n passphraseLabel,\n passphraseHint,\n title,\n }: {\n emitReject?: boolean\n confirmLabel?: string\n cancelLabel?: string\n questionLabel?: string\n descriptionLabel?: string\n onlyConfirm?: boolean\n passphrase?: string\n passphraseLabel?: string\n passphraseHint?: string\n title?: string\n } = {}) => {\n return new Promise<boolean>((resolve, reject) => {\n const passphraseText = ref<string>()\n const isOpen = openDialog(\n {\n role: 'alertdialog',\n size: 'small',\n keepOpen: true,\n title,\n },\n {\n default: () =>\n h('div', [\n h(\n 'div',\n {\n class: descriptionLabel ? '' : 'mb-sm',\n style: 'white-space: pre-line',\n },\n questionLabel ?? $t('message.confirm'),\n ),\n descriptionLabel\n ? h(\n 'p',\n {\n class: 'text-14 text-word-2 mt-xs mb-sm',\n style: 'white-space: pre-line',\n },\n descriptionLabel,\n )\n : undefined,\n passphrase\n ? h(VvInputText, {\n modelValue: passphraseText.value,\n 'onUpdate:modelValue': (\n value: string,\n ) => {\n passphraseText.value = value\n },\n type: 'text',\n name: 'passphrase',\n class: 'mb-0',\n floating: true,\n label:\n passphraseLabel ??\n $t('label.passphrase'),\n hintLabel:\n passphraseHint ??\n $t('hint.passphrase', { passphrase }),\n })\n : undefined,\n ]),\n footer: () =>\n h(VvButtonGroup, () => {\n const toReturn: VNode[] = []\n if (!onlyConfirm) {\n toReturn.push(\n h(VvButton, {\n label:\n cancelLabel ?? $t('action.cancel'),\n modifiers: 'ghost',\n onClick: () => {\n if (emitReject) {\n reject()\n }\n resolve(false)\n isOpen.value = false\n },\n }),\n )\n }\n toReturn.push(\n h(VvButton, {\n label: confirmLabel ?? $t('action.proceed'),\n disabled: passphrase\n ? passphrase !== passphraseText.value\n : false,\n onClick: () => {\n resolve(true)\n isOpen.value = false\n },\n }),\n )\n return toReturn\n }),\n },\n )\n })\n }\n\n return { openDialogConfirm }\n}\n"],"mappings":";;;;AAmBA,IAAMA,IAASC,EAAI,EAAK,GAClBC,IAAQD,EAA0B,GAClCE,IAAaF,EAA+B,GAC5CG,IAAYH,EAA8B,GAC1CI,IAAOJ,EAAyB,GAChCK,IAAWL,EAA6B,EAAK,GAC7CM,IAAON,EAAyB,GAChCO,IAAQP,EAAiB,GAElBQ,UAAkB;CAC3B,IAAMC,KA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