zignal-stencil-library 1.1.195 → 1.1.197
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/cjs/autocomplete-address_45.cjs.entry.js +115 -81
- package/dist/cjs/create-master-data-dialog_2.cjs.entry.js +6 -6
- package/dist/cjs/{icon-svg-X7YOWZTq.js → icon-svg-BmTU9CPx.js} +6 -4
- package/dist/{zignal-stencil-library/icon-svg-Dhobbock.js.map → cjs/icon-svg-BmTU9CPx.js.map} +1 -1
- package/dist/cjs/{index-C6w1KesR.js → index-BuXc5iFV.js} +16 -4
- package/dist/{esm/index-BmdsD0oP.js.map → cjs/index-BuXc5iFV.js.map} +1 -1
- package/dist/cjs/{index-DPhBM48K.js → index-REEdj4HR.js} +49 -8
- package/dist/cjs/index-REEdj4HR.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/master-status-app.cjs.entry.js +5 -5
- package/dist/cjs/master-tag-app.cjs.entry.js +5 -5
- package/dist/cjs/quick-message-app.cjs.entry.js +4 -4
- package/dist/cjs/quick-message-app.entry.cjs.js.map +1 -1
- package/dist/cjs/{store-dZyyLnWf.js → store-ugl6HU9h.js} +3 -3
- package/dist/cjs/{store-dZyyLnWf.js.map → store-ugl6HU9h.js.map} +1 -1
- package/dist/cjs/{z-input-CN07sH4v.js → z-input-DqCc5nh2.js} +59 -59
- package/dist/cjs/{z-input-CN07sH4v.js.map → z-input-DqCc5nh2.js.map} +1 -1
- package/dist/cjs/zignal-stencil-library.cjs.js +2 -2
- package/dist/collection/api/index.js +11 -0
- package/dist/collection/api/index.js.map +1 -1
- package/dist/collection/api/type.js.map +1 -1
- package/dist/collection/components/autocomplete-address/autocomplete-address.css +1 -1
- package/dist/collection/components/autocomplete-address/autocomplete-address.js +2 -2
- package/dist/collection/components/autocomplete-address/autocomplete-address.js.map +1 -1
- package/dist/collection/components/autocomplete-multiple-select/autocomplete-multiple-select.css +1 -1
- package/dist/collection/components/autocomplete-select/autocomplete-select.css +1 -1
- package/dist/collection/components/channel-box/channel-box.css +1 -1
- package/dist/collection/components/chat-app/chat-app.css +1 -1
- package/dist/collection/components/chat-app/chat-app.js +1 -0
- package/dist/collection/components/chat-app/chat-app.js.map +1 -1
- package/dist/collection/components/chat-header/chat-header.css +1 -1
- package/dist/collection/components/chat-header/chat-header.js +1 -1
- package/dist/collection/components/chat-header/chat-header.js.map +1 -1
- package/dist/collection/components/chat-input/chat-input.css +1 -1
- package/dist/collection/components/checkbox-list/checkbox-list.css +1 -1
- package/dist/collection/components/create-master-data-dialog/create-master-data-dialog.css +1 -1
- package/dist/collection/components/dialog-bill-editor/dialog-bill-editor.css +1 -1
- package/dist/collection/components/dialog-custom-filter/dialog-custom-filter.css +1 -1
- package/dist/collection/components/dialog-editor/dialog-editor.css +1 -1
- package/dist/collection/components/dialog-preview-media/dialog-preview-media.css +1 -1
- package/dist/collection/components/dialog-search/dialog-search.css +1 -1
- package/dist/collection/components/master-data-item/master-data-item.css +1 -1
- package/dist/collection/components/master-status-app/master-status-app.css +1 -1
- package/dist/collection/components/master-tag-app/master-tag-app.css +1 -1
- package/dist/collection/components/menu-chat-channel/menu-chat-channel.css +1 -1
- package/dist/collection/components/menu-chat-type/menu-chat-type.css +1 -1
- package/dist/collection/components/menu-list/menu-list.css +1 -1
- package/dist/collection/components/menu-list/menu-list.js +23 -3
- package/dist/collection/components/menu-list/menu-list.js.map +1 -1
- package/dist/collection/components/message-box/message-box.css +1 -1
- package/dist/collection/components/message-content/message-content.css +1 -1
- package/dist/collection/components/message-item/message-item.css +1 -1
- package/dist/collection/components/message-media/message-media.css +1 -1
- package/dist/collection/components/profile-history/profile-history.css +1 -1
- package/dist/collection/components/profile-info/profile-info.css +1 -1
- package/dist/collection/components/profile-info/user-info-section.js +43 -7
- package/dist/collection/components/profile-info/user-info-section.js.map +1 -1
- package/dist/collection/components/profile-media/profile-media.css +1 -1
- package/dist/collection/components/profile-media/profile-media.js +1 -1
- package/dist/collection/components/profile-tabs/profile-tabs.css +1 -1
- package/dist/collection/components/profile-tabs/profile-tabs.js +2 -2
- package/dist/collection/components/profile-tabs/profile-tabs.js.map +1 -1
- package/dist/collection/components/quick-message-add-template/quick-message-add-template.css +1 -1
- package/dist/collection/components/quick-message-add-template/quick-message-add-template.js +3 -3
- package/dist/collection/components/quick-message-add-template/quick-message-text-content.js +1 -1
- package/dist/collection/components/quick-message-app/quick-message-app.css +1 -1
- package/dist/collection/components/quick-message-app/quick-message-app.js +1 -1
- package/dist/collection/components/quick-message-file/quick-message-file.css +1 -1
- package/dist/collection/components/quick-message-file/quick-message-file.js +1 -1
- package/dist/collection/components/quick-message-image/quick-message-image.css +1 -1
- package/dist/collection/components/quick-message-image/quick-message-image.js +1 -1
- package/dist/collection/components/quick-message-modal/quick-message-modal.css +1 -1
- package/dist/collection/components/quick-message-modal/quick-message-modal.js +1 -1
- package/dist/collection/components/quick-message-template/quick-message-template.css +1 -1
- package/dist/collection/components/quick-message-template/quick-message-template.js +3 -3
- package/dist/collection/components/search-box/search-box.css +1 -1
- package/dist/collection/components/search-box/search-box.js +5 -5
- package/dist/collection/components/status-badge/status-badge.css +1 -1
- package/dist/collection/components/status-badge/status-badge.js +2 -2
- package/dist/collection/components/tag-list/tag-list.css +1 -1
- package/dist/collection/components/tag-list/tag-list.js +1 -1
- package/dist/collection/components/tag-or-status-item/tag-or-status-item.css +1 -1
- package/dist/collection/components/tag-or-status-item/tag-or-status-item.js +2 -2
- package/dist/collection/components/tag-popper/tag-popper.css +1 -1
- package/dist/collection/components/tag-popper/tag-popper.js +2 -2
- package/dist/collection/components/typography-clamp/typography-clamp.css +1 -1
- package/dist/collection/components/typography-clamp/typography-clamp.js +2 -2
- package/dist/collection/components/z-avatar/z-avatar.css +1 -1
- package/dist/collection/components/z-dialog/z-dialog.css +1 -1
- package/dist/collection/components/z-tooltip/z-tooltip.css +1 -1
- package/dist/collection/store/type.js.map +1 -1
- package/dist/collection/utils/icon-svg.js +1 -0
- package/dist/collection/utils/icon-svg.js.map +1 -1
- package/dist/components/autocomplete-address2.js +3 -3
- package/dist/components/autocomplete-address2.js.map +1 -1
- package/dist/components/autocomplete-multiple-select2.js +1 -1
- package/dist/components/autocomplete-multiple-select2.js.map +1 -1
- package/dist/components/autocomplete-select2.js +1 -1
- package/dist/components/autocomplete-select2.js.map +1 -1
- package/dist/components/channel-box2.js +1 -1
- package/dist/components/channel-box2.js.map +1 -1
- package/dist/components/chat-app.js +3 -2
- package/dist/components/chat-app.js.map +1 -1
- package/dist/components/chat-header2.js +3 -3
- package/dist/components/chat-header2.js.map +1 -1
- package/dist/components/chat-input2.js +1 -1
- package/dist/components/chat-input2.js.map +1 -1
- package/dist/components/checkbox-list2.js +1 -1
- package/dist/components/checkbox-list2.js.map +1 -1
- package/dist/components/create-master-data-dialog2.js +1 -1
- package/dist/components/dialog-bill-editor2.js +1 -1
- package/dist/components/dialog-bill-editor2.js.map +1 -1
- package/dist/components/dialog-custom-filter2.js +1 -1
- package/dist/components/dialog-custom-filter2.js.map +1 -1
- package/dist/components/dialog-editor2.js +1 -1
- package/dist/components/dialog-editor2.js.map +1 -1
- package/dist/components/dialog-preview-media2.js +1 -1
- package/dist/components/dialog-preview-media2.js.map +1 -1
- package/dist/components/dialog-search2.js +1 -1
- package/dist/components/dialog-search2.js.map +1 -1
- package/dist/components/icon-svg.js +2 -1
- package/dist/components/icon-svg.js.map +1 -1
- package/dist/components/icon.js +55 -55
- package/dist/components/icon.js.map +1 -1
- package/dist/components/index2.js +48 -7
- package/dist/components/index2.js.map +1 -1
- package/dist/components/index3.js +12 -1
- package/dist/components/index3.js.map +1 -1
- package/dist/components/master-data-item2.js +1 -1
- package/dist/components/master-status-app.js +2 -2
- package/dist/components/master-tag-app.js +2 -2
- package/dist/components/menu-chat-channel2.js +1 -1
- package/dist/components/menu-chat-channel2.js.map +1 -1
- package/dist/components/menu-chat-type2.js +1 -1
- package/dist/components/menu-chat-type2.js.map +1 -1
- package/dist/components/menu-list2.js +5 -3
- package/dist/components/menu-list2.js.map +1 -1
- package/dist/components/message-box2.js +1 -1
- package/dist/components/message-box2.js.map +1 -1
- package/dist/components/message-content2.js +1 -1
- package/dist/components/message-content2.js.map +1 -1
- package/dist/components/message-item2.js +1 -1
- package/dist/components/message-item2.js.map +1 -1
- package/dist/components/message-media2.js +1 -1
- package/dist/components/message-media2.js.map +1 -1
- package/dist/components/profile-history2.js +1 -1
- package/dist/components/profile-history2.js.map +1 -1
- package/dist/components/profile-info2.js +14 -8
- package/dist/components/profile-info2.js.map +1 -1
- package/dist/components/profile-media2.js +2 -2
- package/dist/components/profile-media2.js.map +1 -1
- package/dist/components/profile-tabs2.js +3 -3
- package/dist/components/profile-tabs2.js.map +1 -1
- package/dist/components/quick-message-add-template2.js +4 -4
- package/dist/components/quick-message-add-template2.js.map +1 -1
- package/dist/components/quick-message-app.js +2 -2
- package/dist/components/quick-message-app.js.map +1 -1
- package/dist/components/quick-message-file2.js +2 -2
- package/dist/components/quick-message-file2.js.map +1 -1
- package/dist/components/quick-message-image2.js +2 -2
- package/dist/components/quick-message-image2.js.map +1 -1
- package/dist/components/quick-message-modal2.js +2 -2
- package/dist/components/quick-message-modal2.js.map +1 -1
- package/dist/components/quick-message-template2.js +4 -4
- package/dist/components/quick-message-template2.js.map +1 -1
- package/dist/components/quick-message-text-content2.js +1 -1
- package/dist/components/search-box2.js +6 -6
- package/dist/components/search-box2.js.map +1 -1
- package/dist/components/status-badge2.js +3 -3
- package/dist/components/status-badge2.js.map +1 -1
- package/dist/components/summarize-message-section2.js +1 -1
- package/dist/components/summarize-message-section2.js.map +1 -1
- package/dist/components/tag-list2.js +2 -2
- package/dist/components/tag-list2.js.map +1 -1
- package/dist/components/tag-or-status-item2.js +3 -3
- package/dist/components/tag-or-status-item2.js.map +1 -1
- package/dist/components/tag-popper2.js +3 -3
- package/dist/components/tag-popper2.js.map +1 -1
- package/dist/components/typography-clamp2.js +3 -3
- package/dist/components/typography-clamp2.js.map +1 -1
- package/dist/components/user-info-section2.js +52 -10
- package/dist/components/user-info-section2.js.map +1 -1
- package/dist/components/z-avatar2.js +1 -1
- package/dist/components/z-avatar2.js.map +1 -1
- package/dist/components/z-dialog2.js +1 -1
- package/dist/components/z-dialog2.js.map +1 -1
- package/dist/components/z-tooltip2.js +1 -1
- package/dist/components/z-tooltip2.js.map +1 -1
- package/dist/esm/autocomplete-address_45.entry.js +115 -81
- package/dist/esm/create-master-data-dialog_2.entry.js +6 -6
- package/dist/{zignal-stencil-library/icon-svg-Dhobbock.js → esm/icon-svg-B4mPSJrF.js} +6 -5
- package/dist/{cjs/icon-svg-X7YOWZTq.js.map → esm/icon-svg-B4mPSJrF.js.map} +1 -1
- package/dist/esm/{index-BmdsD0oP.js → index-D5teAbfw.js} +16 -5
- package/dist/{cjs/index-C6w1KesR.js.map → esm/index-D5teAbfw.js.map} +1 -1
- package/dist/esm/{index-NR-FjQmT.js → index-DrJU7-bz.js} +49 -8
- package/dist/esm/index-DrJU7-bz.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/master-status-app.entry.js +5 -5
- package/dist/esm/master-tag-app.entry.js +5 -5
- package/dist/esm/quick-message-app.entry.js +4 -4
- package/dist/esm/quick-message-app.entry.js.map +1 -1
- package/dist/{zignal-stencil-library/store-yUM2Y3GN.js → esm/store-DmdXE1Wh.js} +3 -3
- package/dist/esm/{store-yUM2Y3GN.js.map → store-DmdXE1Wh.js.map} +1 -1
- package/dist/esm/{z-input-CxAJ3tlw.js → z-input-Dzf4lnZC.js} +59 -59
- package/dist/{zignal-stencil-library/z-input-CxAJ3tlw.js.map → esm/z-input-Dzf4lnZC.js.map} +1 -1
- package/dist/esm/zignal-stencil-library.js +3 -3
- package/dist/types/api/index.d.ts +1 -0
- package/dist/types/api/type.d.ts +10 -0
- package/dist/types/components/menu-list/menu-list.d.ts +2 -1
- package/dist/types/components/profile-info/user-info-section.d.ts +1 -0
- package/dist/types/components.d.ts +3 -1
- package/dist/types/store/type.d.ts +2 -2
- package/dist/types/utils/icon-svg.d.ts +1 -0
- package/dist/zignal-stencil-library/autocomplete-address_45.entry.js +115 -81
- package/dist/zignal-stencil-library/create-master-data-dialog_2.entry.js +6 -6
- package/dist/{esm/icon-svg-Dhobbock.js → zignal-stencil-library/icon-svg-B4mPSJrF.js} +6 -5
- package/dist/{esm/icon-svg-Dhobbock.js.map → zignal-stencil-library/icon-svg-B4mPSJrF.js.map} +1 -1
- package/dist/zignal-stencil-library/{index-BmdsD0oP.js → index-D5teAbfw.js} +16 -5
- package/dist/zignal-stencil-library/{index-BmdsD0oP.js.map → index-D5teAbfw.js.map} +1 -1
- package/dist/zignal-stencil-library/{index-NR-FjQmT.js → index-DrJU7-bz.js} +49 -8
- package/dist/zignal-stencil-library/index-DrJU7-bz.js.map +1 -0
- package/dist/zignal-stencil-library/master-status-app.entry.js +5 -5
- package/dist/zignal-stencil-library/master-tag-app.entry.js +5 -5
- package/dist/zignal-stencil-library/quick-message-app.entry.esm.js.map +1 -1
- package/dist/zignal-stencil-library/quick-message-app.entry.js +4 -4
- package/dist/{esm/store-yUM2Y3GN.js → zignal-stencil-library/store-DmdXE1Wh.js} +3 -3
- package/dist/zignal-stencil-library/{store-yUM2Y3GN.js.map → store-DmdXE1Wh.js.map} +1 -1
- package/dist/zignal-stencil-library/{z-input-CxAJ3tlw.js → z-input-Dzf4lnZC.js} +59 -59
- package/dist/{esm/z-input-CxAJ3tlw.js.map → zignal-stencil-library/z-input-Dzf4lnZC.js.map} +1 -1
- package/dist/zignal-stencil-library/zignal-stencil-library.esm.js +3 -3
- package/package.json +2 -2
- package/dist/cjs/index-DPhBM48K.js.map +0 -1
- package/dist/esm/index-NR-FjQmT.js.map +0 -1
- package/dist/zignal-stencil-library/index-NR-FjQmT.js.map +0 -1
|
@@ -660,8 +660,19 @@ const getChatFilterConfig = async () => {
|
|
|
660
660
|
}
|
|
661
661
|
throw new Error('Failed to getChatFilterConfig');
|
|
662
662
|
};
|
|
663
|
+
const getShopUrl = async ({ connectionId, channel, userId, urlType }) => {
|
|
664
|
+
const { data, status } = await apiService().post(`api/zwiz/${connectionId}/shop-url`, {
|
|
665
|
+
channel,
|
|
666
|
+
user_id: userId,
|
|
667
|
+
url_type: urlType,
|
|
668
|
+
});
|
|
669
|
+
if (status === 200) {
|
|
670
|
+
return data;
|
|
671
|
+
}
|
|
672
|
+
throw new Error('Failed to getShopUrl');
|
|
673
|
+
};
|
|
663
674
|
|
|
664
|
-
export {
|
|
675
|
+
export { createUserStatus as A, updateUserStatus as B, deleteUserStatus as C, reorderUserTag as D, createUserTag as E, updateUserTag as F, deleteUserTag as G, syncMessage as H, syncTags as I, updateUser as J, getAddressAsText as K, getUser as L, mergeUser as M, unlinkUser as N, getChats as a, getChatFilters as b, createChatFilter as c, deleteChatFilter as d, getUserStatuses as e, getUserTags as f, getChat as g, getChatFilterConfig as h, getReplyTokenInfo as i, updateChat as j, saveUserEvent as k, getFileNameFromUrl as l, getMessageMedia as m, blobCache as n, getFileTypeAndMimeFromUrl as o, getActivityLogs as p, unReadMessage as q, readMessage as r, sendMessage as s, translateChatMessage as t, updateChatFilter as u, isValidTelNumber as v, getChatMessages as w, syncUser as x, getShopUrl as y, reorderUserStatus as z };
|
|
665
676
|
//# sourceMappingURL=index3.js.map
|
|
666
677
|
|
|
667
678
|
//# sourceMappingURL=index3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"index3.js","mappings":";;;;;AAEa,MAAA,gBAAgB,GAAG,CAAC,OAA4B,KAAI;AAC/D,IAAA,IAAI,CAAC,OAAO;AAAE,QAAA,OAAO,EAAE;IAEvB,MAAM,UAAU,GAAG,EAAE;IACrB,IAAI,OAAO,CAAC,OAAO;AAAE,QAAA,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;IACrD,IAAI,OAAO,CAAC,QAAQ;AAAE,QAAA,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;IACvD,IAAI,OAAO,CAAC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W,CAAC,GAAG,CAAC,YAAY,CAAC;IAChD,MAAM,MAAM,GAAG,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC;AACxC,IAAA,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,UAAU,EAAE,CAAC,GAAG,CAAoC,CAAO,IAAA,EAAA,UAAU,IAAI,MAAM,CAAA,mBAAA,CAAqB,CAAC;AAEpI,IAAA,IAAI,MAAM,KAAK,GAAG,EAAE;AAClB,QAAA,OAAO,IAAI;;AAGb,IAAA,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC;AAClD;;;;","names":[],"sources":["src/utils/func.ts","src/utils/blobCache.ts","src/api/index.ts"],"sourcesContent":["import { UserAddress, TFileItem } from '../store/type';\n\nexport const getAddressAsText = (address?: UserAddress | null) => {\n if (!address) return '';\n\n const addressStr = [];\n if (address.address) addressStr.push(address.address);\n if (address.province) addressStr.push(address.province);\n if (address.district) addressStr.push(address.district);\n if (address.sub_district) addressStr.push(address.sub_district);\n if (address.zip_code) addressStr.push(address.zip_code);\n return addressStr.join(', ');\n};\n\nexport const isUrl = (value: string) => {\n try {\n new URL(value);\n\n return true;\n } catch (e) {\n return false;\n }\n};\n\nexport const getFileNameFromUrl = (url: string): string => {\n try {\n const pathname = new URL(url).pathname;\n return decodeURIComponent(pathname.split('/').pop() || 'Unknown File');\n } catch (e) {\n return 'Unknown File';\n }\n}\n\nexport const getFileTypeAndMimeFromUrl = (url: string): TFileItem => {\n try {\n const pathname = new URL(url).pathname;\n const pathnameSplitted = pathname.split('.').pop();\n const extension = pathnameSplitted ? pathnameSplitted.toLowerCase() : '';\n\n const mimeMap: Record<string, TFileItem> = {\n // Excel\n 'xlsx': { type: 'excel', icon: 'excel', mime: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' },\n 'xls': { type: 'excel', icon: 'excel', mime: 'application/vnd.ms-excel' },\n 'xlsm': { type: 'excel', icon: 'excel', mime: 'application/vnd.ms-excel.sheet.macroEnabled.12' },\n // PDF\n 'pdf': { type: 'pdf', icon: 'pdf', mime: 'application/pdf' },\n // Word\n 'docx': { type: 'word', icon: 'word', mime: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' },\n 'doc': { type: 'word', icon: 'word', mime: 'application/msword' },\n // PowerPoint\n 'pptx': { type: 'powerpoint', icon: 'powerpoint', mime: 'application/vnd.openxmlformats-officedocument.presentationml.presentation' },\n 'ppt': { type: 'powerpoint', icon: 'powerpoint', mime: 'application/vnd.ms-powerpoint' },\n 'pptm': { type: 'powerpoint', icon: 'powerpoint', mime: 'application/vnd.ms-powerpoint.presentation.macroEnabled.12' },\n 'ppsx': { type: 'powerpoint', icon: 'powerpoint', mime: 'application/vnd.openxmlformats-officedocument.presentationml.slideshow' },\n 'pps': { type: 'powerpoint', icon: 'powerpoint', mime: 'application/vnd.ms-powerpoint' },\n // Others\n // 'zip': { type: 'archive', mime: 'application/zip' },\n 'csv': { type: 'csv', icon: 'excel', mime: 'text/csv' },\n };\n\n return { ...(mimeMap[extension || ''] || { type: 'unknown', mime: 'application/octet-stream' }), extension };\n } catch (e) {\n return { type: 'unknown', mime: 'application/octet-stream' };\n }\n}\n\nconst mimeToTypeMap: Record<string, TFileItem> = {\n // Excel\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': { type: 'excel', icon: 'excel', extension: 'xlsx' },\n 'application/vnd.ms-excel': { type: 'excel', icon: 'excel', extension: 'xls' },\n 'application/vnd.ms-excel.sheet.macroenabled.12': { type: 'excel', icon: 'excel', extension: 'xlsm' },\n // PDF\n 'application/pdf': { type: 'pdf', icon: 'pdf', extension: 'pdf' },\n // Word\n 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': { type: 'word', icon: 'word', extension: 'docx' },\n 'application/msword': { type: 'word', icon: 'word', extension: 'doc' },\n // PowerPoint\n 'application/vnd.openxmlformats-officedocument.presentationml.presentation': { type: 'powerpoint', icon: 'powerpoint', extension: 'pptx' },\n 'application/vnd.ms-powerpoint': { type: 'powerpoint', icon: 'powerpoint', extension: 'ppt' },\n 'application/vnd.ms-powerpoint.presentation.macroenabled.12': { type: 'powerpoint', icon: 'powerpoint', extension: 'pptm' },\n 'application/vnd.openxmlformats-officedocument.presentationml.slideshow': { type: 'powerpoint', icon: 'powerpoint', extension: 'ppsx' },\n // CSV\n 'text/csv': { type: 'csv', icon: 'excel', extension: 'csv' },\n};\n\n// Cache for blob URL file types to avoid repeated fetches\nconst blobUrlCache = new Map<string, TFileItem>();\n\nexport const getFileTypeFromMime = (mimeType: string): TFileItem => {\n const mime = mimeType.toLowerCase().trim();\n return mimeToTypeMap[mime] || { type: 'unknown', icon: 'unknown' };\n}\n\nexport const getFileTypeFromBlobUrl = async (blobUrl: string): Promise<TFileItem> => {\n // Check cache first for performance\n if (blobUrlCache.has(blobUrl)) {\n return blobUrlCache.get(blobUrl)!;\n }\n\n try {\n const response = await fetch(blobUrl);\n const blob = await response.blob();\n const result = getFileTypeFromMime(blob.type);\n\n // Cache the result\n blobUrlCache.set(blobUrl, result);\n\n return result;\n } catch (e) {\n const fallback = { type: 'unknown', icon: 'unknown' };\n blobUrlCache.set(blobUrl, fallback);\n return fallback;\n }\n}\n\nexport function isValidTelNumber(value: string): boolean {\n const cleaned = value.replace(/^tel:/, '').trim();\n // Allow +, digits, spaces, dashes, parentheses\n // Must have 7-15 digits total\n const formatRegex = /^\\+?[\\d\\s\\-()]+$/;\n if (!formatRegex.test(cleaned)) return false;\n\n const digitsOnly = cleaned.replace(/\\D/g, '');\n return digitsOnly.length >= 7 && digitsOnly.length <= 15;\n} ","import { TFileItem } from '../store/type';\n\ninterface BlobCacheEntry {\n url: string | null;\n type: TFileItem | null;\n refCount: number;\n hasError: boolean;\n}\n\nclass BlobCache {\n private cache: Map<string, BlobCacheEntry> = new Map();\n\n /**\n * Generates a cache key from media parameters\n */\n private getCacheKey(channel: string, sessionId: string, messageId: string): string {\n return `${channel}:${sessionId}:${messageId}`;\n }\n\n /**\n * Gets a cached blob URL if it exists\n */\n get(channel: string, sessionId: string, messageId: string): { url: string | null; type: TFileItem | null; hasError: boolean } | null {\n const key = this.getCacheKey(channel, sessionId, messageId);\n const entry = this.cache.get(key);\n\n if (entry) {\n // Increment reference count\n entry.refCount++;\n return { url: entry.url, type: entry.type, hasError: entry.hasError };\n }\n\n return null;\n }\n\n /**\n * Stores a blob URL in the cache\n */\n set(channel: string, sessionId: string, messageId: string, url: string, type: TFileItem): void {\n const key = this.getCacheKey(channel, sessionId, messageId);\n\n // If entry already exists, revoke the old URL before replacing\n const existingEntry = this.cache.get(key);\n if (existingEntry && existingEntry.url) {\n URL.revokeObjectURL(existingEntry.url);\n }\n\n this.cache.set(key, {\n url,\n type,\n refCount: 1,\n hasError: false,\n });\n }\n\n /**\n * Marks a media entry as having an error (failed to load)\n */\n setError(channel: string, sessionId: string, messageId: string): void {\n const key = this.getCacheKey(channel, sessionId, messageId);\n\n this.cache.set(key, {\n url: null,\n type: null,\n refCount: 1,\n hasError: true,\n });\n }\n\n /**\n * Decrements reference count and optionally revokes the blob URL\n * Returns true if the entry was removed\n */\n release(channel: string, sessionId: string, messageId: string): boolean {\n const key = this.getCacheKey(channel, sessionId, messageId);\n const entry = this.cache.get(key);\n\n if (entry) {\n entry.refCount--;\n\n // Keep the blob URL cached even if refCount reaches 0\n // This prevents re-fetching when scrolling back to the same message\n // Only revoke when explicitly cleared or cache is full\n return false;\n }\n\n return false;\n }\n\n /**\n * Clears all cached blob URLs\n */\n clear(): void {\n this.cache.forEach(entry => {\n if (entry.url) {\n URL.revokeObjectURL(entry.url);\n }\n });\n this.cache.clear();\n }\n\n /**\n * Gets the current cache size\n */\n size(): number {\n return this.cache.size;\n }\n\n /**\n * Removes least recently used entries if cache exceeds size limit\n */\n cleanup(maxSize: number = 100): void {\n if (this.cache.size <= maxSize) {\n return;\n }\n\n const entriesToRemove = this.cache.size - maxSize;\n let removed = 0;\n\n // Remove entries with lowest refCount first\n const sortedEntries = Array.from(this.cache.entries())\n .sort((a, b) => a[1].refCount - b[1].refCount);\n\n for (const [key, entry] of sortedEntries) {\n if (removed >= entriesToRemove) {\n break;\n }\n if (entry.url) {\n URL.revokeObjectURL(entry.url);\n }\n this.cache.delete(key);\n removed++;\n }\n }\n}\n\n// Export a singleton instance\nexport const blobCache = new BlobCache();\n","import axios from 'axios';\nimport { configStore } from '../store/store';\nimport { apiService, apiServiceSso } from '../utils/axios';\nimport { BASE_URL } from '../utils/constant';\nimport * as Types from './type';\nimport { getFileTypeFromMime } from '../utils/func';\nimport { TFileItem } from '../store/type';\nimport { blobCache } from '../utils/blobCache';\n\nexport {\n createQuickMessageTemplate,\n createQuickMessageLibraryFiles,\n deleteQuickMessageTemplate,\n getQuickMessageLibraryFiles,\n getQuickMessageTemplates,\n updateQuickMessageLibraryFileName,\n updateQuickMessageTemplate,\n} from './quick-message';\n\n/**\n * @deprecated use '@Props' memberList instead\n */\nexport const getProfileMembers = async (request: { page_number: number; page_size: number }) => {\n const businessId = configStore.get('businessId');\n const { data, status } = await apiServiceSso().get<Types.GetProfileMembersResponse>(`/api/channel/profile/${businessId}/member`, { params: request });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to getProfileMembers');\n};\n\nexport const getChats = async (params: Types.GetChatsParams) => {\n const { connectionIds, lastAnswerByIds, statusIds, tagIds, ...rest } = params;\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n\n const { data, status } = await apiService().get<Types.GetChatsResponse>(`api/${businessId}/${shopId}/chat`, {\n params: {\n ...rest,\n connection_id: connectionIds && connectionIds.length === configStore.get('connectionList').length ? undefined : connectionIds,\n last_answer_by_id: lastAnswerByIds && lastAnswerByIds.length === configStore.get('memberList').length ? undefined : lastAnswerByIds,\n status_id: statusIds,\n tag_id: tagIds,\n },\n });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to getChats');\n};\n\nexport const getChat = async (params: Types.GetChatParams) => {\n const { sessionId } = params;\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { data, status } = await apiService().get<Types.GetChatResponse>(`api/${businessId}/${shopId}/chat/${sessionId}`);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to getChat');\n};\n\nexport const updateChat = async (params: Types.UpdateChatParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { sessionId, ...rest } = params;\n const { data, status } = await apiService().patch<Types.UpdateChatResponse>(`api/${businessId}/${shopId}/chat/${sessionId}`, rest);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to updateUser');\n};\n\nexport const translateChatMessage = async (params: Types.TranslateChatMessageParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { sessionId, text, messageIds } = params;\n const { data, status } = await apiService().post<Types.TranslateChatMessageResponse>(`api/${businessId}/${shopId}/chat/${sessionId}/translate`, {\n text,\n message_ids: messageIds,\n });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to updateUser');\n};\n\nexport const getChatMessages = async (params: Types.GetChatMessagesParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { sessionId, startMessageId, ...rest } = params;\n const { data, status } = await apiService().get<Types.GetChatMessagesResponse>(`api/${businessId}/${shopId}/chat/${sessionId}/message`, {\n params: {\n start_message_id: startMessageId,\n ...rest,\n },\n });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to getChatMessages');\n};\n\nexport const sendMessage = async (params: Types.SendMessageParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { sessionId, messages } = params;\n const { data, status } = await apiService().post<Types.SendMessageResponse>(`api/${businessId}/${shopId}/chat/${sessionId}/send-message`, {\n messages: (messages || []).map(({ mimeType, replyMessageId, buttons, menu_list, ...rest }) => ({\n ...rest,\n mime_type: mimeType,\n reply_message_id: replyMessageId,\n buttons: (buttons || undefined)?.map(({ action_type, text, action }) => ({ alt_text: text, action_type, text, action: action || undefined })),\n menu_list: (menu_list || undefined)?.map(({ file_url, title, description, buttons }) => ({ file_url, title, description, buttons: (buttons || []).map(({ action_type, text, action }) => ({ action_type, text, action: action || undefined })), })),\n })),\n });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to sendMessage');\n};\n\nexport const readMessage = async (params: Types.ReadMessageParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { sessionId } = params;\n const { data, status } = await apiService().post<Types.ReadMessageResponse>(`api/${businessId}/${shopId}/chat/${sessionId}/read`);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to readMessage');\n};\n\nexport const unReadMessage = async (params: Types.ReadMessageParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { sessionId } = params;\n const { data, status } = await apiService().post<Types.BaseResponse>(`api/${businessId}/${shopId}/chat/${sessionId}/mark-as-unread`);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to unReadMessage');\n};\n\nexport const getMessageMedia = async (params: Types.GetImageParams): Promise<{ url: string | null, type: TFileItem }> => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { channel, sessionId, messageId } = params;\n\n const cached = blobCache.get(channel, sessionId, messageId);\n if (cached) {\n if (cached.hasError) {\n return null;\n }\n return cached;\n }\n\n const url = `${BASE_URL}/api/${businessId}/${shopId}/${channel}/${sessionId}/${messageId}/content`;\n\n let attempts = 0;\n const maxRetries = 3;\n\n while (attempts < maxRetries) {\n try {\n const response = await axios.get(url, { responseType: 'arraybuffer' });\n const arrayBuffer = response.data as ArrayBuffer;\n const contentType = response.headers['content-type'];\n\n const blob = new Blob([arrayBuffer], { type: contentType });\n const blobUrl = URL.createObjectURL(blob);\n const blobType = getFileTypeFromMime(blob.type);\n\n blobCache.set(channel, sessionId, messageId, blobUrl, blobType);\n\n blobCache.cleanup(100);\n\n return { url: blobUrl, type: blobType };\n } catch (error: unknown) {\n attempts++;\n if (attempts >= maxRetries) {\n const errorMessage = error instanceof Error ? error.message : 'Failed to fetch image';\n console.error(`Failed to fetch image after ${maxRetries} attempts`, errorMessage);\n\n blobCache.setError(channel, sessionId, messageId);\n\n return null;\n }\n await new Promise(resolve => setTimeout(resolve, 500));\n }\n }\n\n return null;\n};\n\n//Waiting for resolve expired attachments from facebook eg. attachments.find((item) => item.type === 'video'|'image').payload.url;\nexport const getMessageAttachment = async (params: Types.GetImageParams): Promise<string | null> => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { channel, sessionId, messageId } = params;\n\n const url = `${BASE_URL}/api/${businessId}/${shopId}/${channel}/${sessionId}/${messageId}/attachment`;\n\n let attempts = 0;\n const maxRetries = 3;\n\n while (attempts < maxRetries) {\n try {\n const response = await axios.get(url, {\n responseType: 'blob',\n });\n const blobUrl = URL.createObjectURL(response.data);\n return blobUrl;\n } catch (error: unknown) {\n attempts++;\n if (attempts >= maxRetries) {\n const errorMessage = error instanceof Error ? error.message : 'Failed to fetch attachment';\n console.error(`Failed to fetch attachment after ${maxRetries} attempts`, errorMessage);\n return null;\n }\n await new Promise(resolve => setTimeout(resolve, 500));\n }\n }\n\n return null;\n};\n\nexport const getUser = async (params: Types.GetUserParams) => {\n const { type = 'user', channel, id, sessionId } = params;\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n let route = `user/${channel}/${id}`;\n if (type === 'group') {\n route = `${channel}/group/${id}`\n }\n const { data, status } = await apiService().get<Types.GetUserResponse>(`api/${businessId}/${shopId}/${route}`, { params: { session_id: sessionId } });\n\n if (status === 200) {\n let addressFormat = null\n if (data.address && Object.keys(data.address).length > 0) {\n addressFormat = {\n address: data.address ? data.address.address || '' : '',\n province: data.address ? data.address.province || '' : '',\n district: data.address ? data.address.district || '' : '',\n sub_district: data.address ? data.address.sub_district || data.address.subdistrict || '' : '',\n zip_code: data.address ? data.address.zip_code || '' : '',\n }\n }\n\n return {\n ...data, address: addressFormat\n };\n }\n\n throw new Error('Failed to getUser');\n};\n\nexport const getActivityLogs = async (params: Types.GetActivityLogParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { type = 'user', channel, id } = params;\n let route = `user/${channel}/${id}/activity-log`;\n if (type === 'group') {\n route = `${channel}/group/${id}/activity_logs`\n }\n const { data, status } = await apiService().get<Types.GetActivityLogsResponse>(`api/${businessId}/${shopId}/${route}`);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to getActivityLogs');\n};\n\nexport const updateUser = async (params: Types.UpdateUserParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { type = 'user', channel, id } = params;\n let _channel = channel;\n if (type === 'group') {\n _channel = 'line';\n }\n let route = `user/${_channel}/${id}`;\n if (type === 'group') {\n route = `${_channel}/group/${id}`\n }\n const { data, status } = await apiService().patch<Types.UpdateUserResponse>(`api/${businessId}/${shopId}/${route}`, {\n nickname: params.nickname,\n email: params.email,\n phone_number: params.phone_number,\n address: params.address,\n gender: params.gender,\n locale: params.locale,\n note: params.note,\n status_id: params.status_id,\n add_tag_ids: params.add_tag_ids,\n remove_tag_ids: params.remove_tag_ids,\n context: params.context,\n });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to updateUser');\n};\n\nexport const mergeUser = async (params: Types.MergeUserParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { matchUserId, matchDecision } = params;\n const { data, status } = await apiService().post<Types.MergeUserResponse>(`api/${businessId}/${shopId}/user/merge`, {\n match_user_id: matchUserId,\n match_decision: matchDecision,\n });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to mergeUser');\n};\n\nexport const unlinkUser = async (params: Types.UnlinkUserParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { zignalUserId, channel, userId } = params;\n const { data, status } = await apiService().request<Types.UnlinkUserResponse>({\n method: 'DELETE',\n url: `api/${businessId}/${shopId}/user/unlink`,\n data: {\n zignal_user_id: zignalUserId,\n channel: channel,\n user_id: userId,\n },\n });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to unlinkUser');\n};\n\nexport const getUserStatuses = async () => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { data, status } = await apiService().get<Types.GetUserStatusesResponse>(`api/${businessId}/${shopId}/user/status`);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to getUserStatuses');\n};\n\nexport const createUserStatus = async (params: Types.CreateUserStatusParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { data, status } = await apiService().post<Types.CreateUserStatusResponse>(`api/${businessId}/${shopId}/user/status`, params);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to createUserStatus');\n};\n\nexport const getUserTags = async () => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { data, status } = await apiService().get<Types.GetUserTagsResponse>(`api/${businessId}/${shopId}/user/tag`);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to getUserTags');\n};\n\nexport const createUserTag = async (params: Types.CreateUserTagParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { data, status } = await apiService().post<Types.CreateUserTagResponse>(`api/${businessId}/${shopId}/user/tag`, params);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to createUserTag');\n};\n\nexport const updateUserStatus = async (params: Types.UpdateUserStatusParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { id, ...rest } = params;\n const { data, status } = await apiService().patch<Types.UpdateUserStatusResponse>(`api/${businessId}/${shopId}/user/status/${id}`, rest);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to updateUserStatus');\n};\n\nexport const deleteUserStatus = async (params: Types.DeleteUserStatusParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { id, force, checkOnly } = params;\n const { data, status } = await apiService().delete<Types.DeleteUserStatusResponse>(`api/${businessId}/${shopId}/user/status/${id}`, {\n data: { force, check_only: checkOnly }\n });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to deleteUserStatus');\n};\n\nexport const reorderUserStatus = async (params: Types.ReorderUserStatusParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { id, sequence } = params;\n const { data, status } = await apiService().patch<Types.ReorderUserStatusResponse>(`api/${businessId}/${shopId}/user/status/${id}`, {\n sequence\n });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to reorderUserStatus');\n};\n\nexport const updateUserTag = async (params: Types.UpdateUserTagParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { id, ...rest } = params;\n const { data, status } = await apiService().patch<Types.UpdateUserTagResponse>(`api/${businessId}/${shopId}/user/tag/${id}`, rest);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to updateUserTag');\n};\n\nexport const deleteUserTag = async (params: Types.DeleteUserTagParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { id, force, checkOnly } = params;\n const { data, status } = await apiService().delete<Types.DeleteUserTagResponse>(`api/${businessId}/${shopId}/user/tag/${id}`, {\n data: { force, check_only: checkOnly }\n });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to deleteUserTag');\n};\n\nexport const reorderUserTag = async (params: Types.ReorderUserTagParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { id, sequence } = params;\n const { data, status } = await apiService().patch<Types.ReorderUserTagResponse>(`api/${businessId}/${shopId}/user/tag/${id}`, {\n sequence\n });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to reorderUserTag');\n};\n\nexport const createUserContext = async (params: Types.CreateUserContextParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { data, status } = await apiService().post<Types.CreateUserContextResponse>(`api/${businessId}/${shopId}/user/context`, params);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to createUserContext');\n};\n\nexport const saveUserEvent = async (params: Types.SaveUserEventParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { sessionId } = params;\n const { data, status } = await apiService().post<Types.SaveUserEventResponse>(`api/${businessId}/${shopId}/chat/${sessionId}/zwiz/save-user-event`, params);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to saveUserEvent');\n};\n\nexport const getReplyTokenInfo = async (params: Types.GetReplyTokenInfoParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { sessionId } = params;\n const { data, status } = await apiService().get<Types.GetReplyTokenInfoResponse>(`api/${businessId}/${shopId}/chat/${sessionId}/reply-token-info`);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to getReplyTokenInfo');\n};\n\nexport const syncMessage = async (params: Types.SyncMessageParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { sessionId } = params;\n const { data, status } = await apiService().post<Types.BaseResponse>(`api/${businessId}/${shopId}/chat/${sessionId}/sync-message`);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to syncMessage');\n};\n\nexport const syncTags = async (params: Types.SyncTagsParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { sessionId } = params;\n const { data, status } = await apiService().post<Types.BaseResponse>(`api/${businessId}/${shopId}/chat/${sessionId}/sync-tag`);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to syncTags');\n};\n\nexport const syncUser = async (params: Types.SyncUserParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { channel, id } = params;\n const { data, status } = await apiService().post<Types.BaseResponse>(`api/${businessId}/${shopId}/user/${channel}/${id}/sync`);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to syncUser');\n};\n\n// Custom Filter API Functions\nexport const getChatFilters = async () => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { data, status } = await apiService().get<Types.GetChatFiltersResponse>(`api/${businessId}/${shopId}/chat/filters`);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to getChatFilters');\n};\n\nexport const createChatFilter = async (params: Types.CreateChatFilterParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { connection_ids, last_answer_by_ids, status_ids, tag_ids, ...rest } = params;\n const { data, status } = await apiService().post<Types.CreateChatFilterResponse>(`api/${businessId}/${shopId}/chat/filters`, {\n ...rest,\n connection_ids,\n last_answer_by_ids,\n status_ids,\n tag_ids,\n });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to createChatFilter');\n};\n\nexport const updateChatFilter = async (params: Types.UpdateChatFilterParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { id, connection_ids, last_answer_by_ids, status_ids, tag_ids, ...rest } = params;\n const { data, status } = await apiService().patch<Types.UpdateChatFilterResponse>(`api/${businessId}/${shopId}/chat/filters/${id}`, {\n ...rest,\n connection_ids,\n last_answer_by_ids,\n status_ids,\n tag_ids,\n });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to updateChatFilter');\n};\n\nexport const deleteChatFilter = async (params: Types.DeleteChatFilterParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { data, status } = await apiService().delete<Types.BaseResponse>(`api/${businessId}/${shopId}/chat/filters/${params.id}`);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to deleteChatFilter');\n};\n\nexport const getChatFilterConfig = async (): Promise<Types.GetChatFilterConfigResponse> => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { data, status } = await apiService().get<Types.GetChatFilterConfigResponse>(`api/${businessId}/${shopId}/chat/filter-config`);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to getChatFilterConfig');\n};"],"version":3}
|
|
1
|
+
{"file":"index3.js","mappings":";;;;;AAEa,MAAA,gBAAgB,GAAG,CAAC,OAA4B,KAAI;AAC/D,IAAA,IAAI,CAAC,OAAO;AAAE,QAAA,OAAO,EAAE;IAEvB,MAAM,UAAU,GAAG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,EAAE,CAAE,CAAA,CAAC;AAE/H,IAAA,IAAI,MAAM,KAAK,GAAG,EAAE;AAClB,QAAA,OAAO,IAAI;;AAGb,IAAA,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC;AAC/C;AAEa,MAAA,mBAAmB,GAAG,YAAuD;IACxF,MAAM,UAAU,GAAG,WAAW,CAAC,GAAG,CAAC,YAAY,CAAC;IAChD,MAAM,MAAM,GAAG,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC;AACxC,IAAA,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,UAAU,EAAE,CAAC,GAAG,CAAoC,CAAO,IAAA,EAAA,UAAU,IAAI,MAAM,CAAA,mBAAA,CAAqB,CAAC;AAEpI,IAAA,IAAI,MAAM,KAAK,GAAG,EAAE;AAClB,QAAA,OAAO,IAAI;;AAGb,IAAA,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC;AAClD;AAEa,MAAA,UAAU,GAAG,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAA0B,KAAuC;AACxI,IAAA,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,UAAU,EAAE,CAAC,IAAI,CAA2B,CAAY,SAAA,EAAA,YAAY,WAAW,EAC5G;QACE,OAAO;AACP,QAAA,OAAO,EAAE,MAAM;AACf,QAAA,QAAQ,EAAE,OAAO;AAClB,KAAA,CACF;AAED,IAAA,IAAI,MAAM,KAAK,GAAG,EAAE;AAClB,QAAA,OAAO,IAAI;;AAGb,IAAA,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC;AACzC;;;;","names":[],"sources":["src/utils/func.ts","src/utils/blobCache.ts","src/api/index.ts"],"sourcesContent":["import { UserAddress, TFileItem } from '../store/type';\n\nexport const getAddressAsText = (address?: UserAddress | null) => {\n if (!address) return '';\n\n const addressStr = [];\n if (address.address) addressStr.push(address.address);\n if (address.province) addressStr.push(address.province);\n if (address.district) addressStr.push(address.district);\n if (address.sub_district) addressStr.push(address.sub_district);\n if (address.zip_code) addressStr.push(address.zip_code);\n return addressStr.join(', ');\n};\n\nexport const isUrl = (value: string) => {\n try {\n new URL(value);\n\n return true;\n } catch (e) {\n return false;\n }\n};\n\nexport const getFileNameFromUrl = (url: string): string => {\n try {\n const pathname = new URL(url).pathname;\n return decodeURIComponent(pathname.split('/').pop() || 'Unknown File');\n } catch (e) {\n return 'Unknown File';\n }\n}\n\nexport const getFileTypeAndMimeFromUrl = (url: string): TFileItem => {\n try {\n const pathname = new URL(url).pathname;\n const pathnameSplitted = pathname.split('.').pop();\n const extension = pathnameSplitted ? pathnameSplitted.toLowerCase() : '';\n\n const mimeMap: Record<string, TFileItem> = {\n // Excel\n 'xlsx': { type: 'excel', icon: 'excel', mime: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' },\n 'xls': { type: 'excel', icon: 'excel', mime: 'application/vnd.ms-excel' },\n 'xlsm': { type: 'excel', icon: 'excel', mime: 'application/vnd.ms-excel.sheet.macroEnabled.12' },\n // PDF\n 'pdf': { type: 'pdf', icon: 'pdf', mime: 'application/pdf' },\n // Word\n 'docx': { type: 'word', icon: 'word', mime: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' },\n 'doc': { type: 'word', icon: 'word', mime: 'application/msword' },\n // PowerPoint\n 'pptx': { type: 'powerpoint', icon: 'powerpoint', mime: 'application/vnd.openxmlformats-officedocument.presentationml.presentation' },\n 'ppt': { type: 'powerpoint', icon: 'powerpoint', mime: 'application/vnd.ms-powerpoint' },\n 'pptm': { type: 'powerpoint', icon: 'powerpoint', mime: 'application/vnd.ms-powerpoint.presentation.macroEnabled.12' },\n 'ppsx': { type: 'powerpoint', icon: 'powerpoint', mime: 'application/vnd.openxmlformats-officedocument.presentationml.slideshow' },\n 'pps': { type: 'powerpoint', icon: 'powerpoint', mime: 'application/vnd.ms-powerpoint' },\n // Others\n // 'zip': { type: 'archive', mime: 'application/zip' },\n 'csv': { type: 'csv', icon: 'excel', mime: 'text/csv' },\n };\n\n return { ...(mimeMap[extension || ''] || { type: 'unknown', mime: 'application/octet-stream' }), extension };\n } catch (e) {\n return { type: 'unknown', mime: 'application/octet-stream' };\n }\n}\n\nconst mimeToTypeMap: Record<string, TFileItem> = {\n // Excel\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': { type: 'excel', icon: 'excel', extension: 'xlsx' },\n 'application/vnd.ms-excel': { type: 'excel', icon: 'excel', extension: 'xls' },\n 'application/vnd.ms-excel.sheet.macroenabled.12': { type: 'excel', icon: 'excel', extension: 'xlsm' },\n // PDF\n 'application/pdf': { type: 'pdf', icon: 'pdf', extension: 'pdf' },\n // Word\n 'application/vnd.openxmlformats-officedocument.wordprocessingml.document': { type: 'word', icon: 'word', extension: 'docx' },\n 'application/msword': { type: 'word', icon: 'word', extension: 'doc' },\n // PowerPoint\n 'application/vnd.openxmlformats-officedocument.presentationml.presentation': { type: 'powerpoint', icon: 'powerpoint', extension: 'pptx' },\n 'application/vnd.ms-powerpoint': { type: 'powerpoint', icon: 'powerpoint', extension: 'ppt' },\n 'application/vnd.ms-powerpoint.presentation.macroenabled.12': { type: 'powerpoint', icon: 'powerpoint', extension: 'pptm' },\n 'application/vnd.openxmlformats-officedocument.presentationml.slideshow': { type: 'powerpoint', icon: 'powerpoint', extension: 'ppsx' },\n // CSV\n 'text/csv': { type: 'csv', icon: 'excel', extension: 'csv' },\n};\n\n// Cache for blob URL file types to avoid repeated fetches\nconst blobUrlCache = new Map<string, TFileItem>();\n\nexport const getFileTypeFromMime = (mimeType: string): TFileItem => {\n const mime = mimeType.toLowerCase().trim();\n return mimeToTypeMap[mime] || { type: 'unknown', icon: 'unknown' };\n}\n\nexport const getFileTypeFromBlobUrl = async (blobUrl: string): Promise<TFileItem> => {\n // Check cache first for performance\n if (blobUrlCache.has(blobUrl)) {\n return blobUrlCache.get(blobUrl)!;\n }\n\n try {\n const response = await fetch(blobUrl);\n const blob = await response.blob();\n const result = getFileTypeFromMime(blob.type);\n\n // Cache the result\n blobUrlCache.set(blobUrl, result);\n\n return result;\n } catch (e) {\n const fallback = { type: 'unknown', icon: 'unknown' };\n blobUrlCache.set(blobUrl, fallback);\n return fallback;\n }\n}\n\nexport function isValidTelNumber(value: string): boolean {\n const cleaned = value.replace(/^tel:/, '').trim();\n // Allow +, digits, spaces, dashes, parentheses\n // Must have 7-15 digits total\n const formatRegex = /^\\+?[\\d\\s\\-()]+$/;\n if (!formatRegex.test(cleaned)) return false;\n\n const digitsOnly = cleaned.replace(/\\D/g, '');\n return digitsOnly.length >= 7 && digitsOnly.length <= 15;\n} ","import { TFileItem } from '../store/type';\n\ninterface BlobCacheEntry {\n url: string | null;\n type: TFileItem | null;\n refCount: number;\n hasError: boolean;\n}\n\nclass BlobCache {\n private cache: Map<string, BlobCacheEntry> = new Map();\n\n /**\n * Generates a cache key from media parameters\n */\n private getCacheKey(channel: string, sessionId: string, messageId: string): string {\n return `${channel}:${sessionId}:${messageId}`;\n }\n\n /**\n * Gets a cached blob URL if it exists\n */\n get(channel: string, sessionId: string, messageId: string): { url: string | null; type: TFileItem | null; hasError: boolean } | null {\n const key = this.getCacheKey(channel, sessionId, messageId);\n const entry = this.cache.get(key);\n\n if (entry) {\n // Increment reference count\n entry.refCount++;\n return { url: entry.url, type: entry.type, hasError: entry.hasError };\n }\n\n return null;\n }\n\n /**\n * Stores a blob URL in the cache\n */\n set(channel: string, sessionId: string, messageId: string, url: string, type: TFileItem): void {\n const key = this.getCacheKey(channel, sessionId, messageId);\n\n // If entry already exists, revoke the old URL before replacing\n const existingEntry = this.cache.get(key);\n if (existingEntry && existingEntry.url) {\n URL.revokeObjectURL(existingEntry.url);\n }\n\n this.cache.set(key, {\n url,\n type,\n refCount: 1,\n hasError: false,\n });\n }\n\n /**\n * Marks a media entry as having an error (failed to load)\n */\n setError(channel: string, sessionId: string, messageId: string): void {\n const key = this.getCacheKey(channel, sessionId, messageId);\n\n this.cache.set(key, {\n url: null,\n type: null,\n refCount: 1,\n hasError: true,\n });\n }\n\n /**\n * Decrements reference count and optionally revokes the blob URL\n * Returns true if the entry was removed\n */\n release(channel: string, sessionId: string, messageId: string): boolean {\n const key = this.getCacheKey(channel, sessionId, messageId);\n const entry = this.cache.get(key);\n\n if (entry) {\n entry.refCount--;\n\n // Keep the blob URL cached even if refCount reaches 0\n // This prevents re-fetching when scrolling back to the same message\n // Only revoke when explicitly cleared or cache is full\n return false;\n }\n\n return false;\n }\n\n /**\n * Clears all cached blob URLs\n */\n clear(): void {\n this.cache.forEach(entry => {\n if (entry.url) {\n URL.revokeObjectURL(entry.url);\n }\n });\n this.cache.clear();\n }\n\n /**\n * Gets the current cache size\n */\n size(): number {\n return this.cache.size;\n }\n\n /**\n * Removes least recently used entries if cache exceeds size limit\n */\n cleanup(maxSize: number = 100): void {\n if (this.cache.size <= maxSize) {\n return;\n }\n\n const entriesToRemove = this.cache.size - maxSize;\n let removed = 0;\n\n // Remove entries with lowest refCount first\n const sortedEntries = Array.from(this.cache.entries())\n .sort((a, b) => a[1].refCount - b[1].refCount);\n\n for (const [key, entry] of sortedEntries) {\n if (removed >= entriesToRemove) {\n break;\n }\n if (entry.url) {\n URL.revokeObjectURL(entry.url);\n }\n this.cache.delete(key);\n removed++;\n }\n }\n}\n\n// Export a singleton instance\nexport const blobCache = new BlobCache();\n","import axios from 'axios';\nimport { configStore } from '../store/store';\nimport { apiService, apiServiceSso } from '../utils/axios';\nimport { BASE_URL } from '../utils/constant';\nimport * as Types from './type';\nimport { getFileTypeFromMime } from '../utils/func';\nimport { TFileItem } from '../store/type';\nimport { blobCache } from '../utils/blobCache';\n\nexport {\n createQuickMessageTemplate,\n createQuickMessageLibraryFiles,\n deleteQuickMessageTemplate,\n getQuickMessageLibraryFiles,\n getQuickMessageTemplates,\n updateQuickMessageLibraryFileName,\n updateQuickMessageTemplate,\n} from './quick-message';\n\n/**\n * @deprecated use '@Props' memberList instead\n */\nexport const getProfileMembers = async (request: { page_number: number; page_size: number }) => {\n const businessId = configStore.get('businessId');\n const { data, status } = await apiServiceSso().get<Types.GetProfileMembersResponse>(`/api/channel/profile/${businessId}/member`, { params: request });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to getProfileMembers');\n};\n\nexport const getChats = async (params: Types.GetChatsParams) => {\n const { connectionIds, lastAnswerByIds, statusIds, tagIds, ...rest } = params;\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n\n const { data, status } = await apiService().get<Types.GetChatsResponse>(`api/${businessId}/${shopId}/chat`, {\n params: {\n ...rest,\n connection_id: connectionIds && connectionIds.length === configStore.get('connectionList').length ? undefined : connectionIds,\n last_answer_by_id: lastAnswerByIds && lastAnswerByIds.length === configStore.get('memberList').length ? undefined : lastAnswerByIds,\n status_id: statusIds,\n tag_id: tagIds,\n },\n });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to getChats');\n};\n\nexport const getChat = async (params: Types.GetChatParams) => {\n const { sessionId } = params;\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { data, status } = await apiService().get<Types.GetChatResponse>(`api/${businessId}/${shopId}/chat/${sessionId}`);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to getChat');\n};\n\nexport const updateChat = async (params: Types.UpdateChatParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { sessionId, ...rest } = params;\n const { data, status } = await apiService().patch<Types.UpdateChatResponse>(`api/${businessId}/${shopId}/chat/${sessionId}`, rest);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to updateUser');\n};\n\nexport const translateChatMessage = async (params: Types.TranslateChatMessageParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { sessionId, text, messageIds } = params;\n const { data, status } = await apiService().post<Types.TranslateChatMessageResponse>(`api/${businessId}/${shopId}/chat/${sessionId}/translate`, {\n text,\n message_ids: messageIds,\n });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to updateUser');\n};\n\nexport const getChatMessages = async (params: Types.GetChatMessagesParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { sessionId, startMessageId, ...rest } = params;\n const { data, status } = await apiService().get<Types.GetChatMessagesResponse>(`api/${businessId}/${shopId}/chat/${sessionId}/message`, {\n params: {\n start_message_id: startMessageId,\n ...rest,\n },\n });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to getChatMessages');\n};\n\nexport const sendMessage = async (params: Types.SendMessageParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { sessionId, messages } = params;\n const { data, status } = await apiService().post<Types.SendMessageResponse>(`api/${businessId}/${shopId}/chat/${sessionId}/send-message`, {\n messages: (messages || []).map(({ mimeType, replyMessageId, buttons, menu_list, ...rest }) => ({\n ...rest,\n mime_type: mimeType,\n reply_message_id: replyMessageId,\n buttons: (buttons || undefined)?.map(({ action_type, text, action }) => ({ alt_text: text, action_type, text, action: action || undefined })),\n menu_list: (menu_list || undefined)?.map(({ file_url, title, description, buttons }) => ({ file_url, title, description, buttons: (buttons || []).map(({ action_type, text, action }) => ({ action_type, text, action: action || undefined })), })),\n })),\n });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to sendMessage');\n};\n\nexport const readMessage = async (params: Types.ReadMessageParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { sessionId } = params;\n const { data, status } = await apiService().post<Types.ReadMessageResponse>(`api/${businessId}/${shopId}/chat/${sessionId}/read`);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to readMessage');\n};\n\nexport const unReadMessage = async (params: Types.ReadMessageParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { sessionId } = params;\n const { data, status } = await apiService().post<Types.BaseResponse>(`api/${businessId}/${shopId}/chat/${sessionId}/mark-as-unread`);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to unReadMessage');\n};\n\nexport const getMessageMedia = async (params: Types.GetImageParams): Promise<{ url: string | null, type: TFileItem }> => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { channel, sessionId, messageId } = params;\n\n const cached = blobCache.get(channel, sessionId, messageId);\n if (cached) {\n if (cached.hasError) {\n return null;\n }\n return cached;\n }\n\n const url = `${BASE_URL}/api/${businessId}/${shopId}/${channel}/${sessionId}/${messageId}/content`;\n\n let attempts = 0;\n const maxRetries = 3;\n\n while (attempts < maxRetries) {\n try {\n const response = await axios.get(url, { responseType: 'arraybuffer' });\n const arrayBuffer = response.data as ArrayBuffer;\n const contentType = response.headers['content-type'];\n\n const blob = new Blob([arrayBuffer], { type: contentType });\n const blobUrl = URL.createObjectURL(blob);\n const blobType = getFileTypeFromMime(blob.type);\n\n blobCache.set(channel, sessionId, messageId, blobUrl, blobType);\n\n blobCache.cleanup(100);\n\n return { url: blobUrl, type: blobType };\n } catch (error: unknown) {\n attempts++;\n if (attempts >= maxRetries) {\n const errorMessage = error instanceof Error ? error.message : 'Failed to fetch image';\n console.error(`Failed to fetch image after ${maxRetries} attempts`, errorMessage);\n\n blobCache.setError(channel, sessionId, messageId);\n\n return null;\n }\n await new Promise(resolve => setTimeout(resolve, 500));\n }\n }\n\n return null;\n};\n\n//Waiting for resolve expired attachments from facebook eg. attachments.find((item) => item.type === 'video'|'image').payload.url;\nexport const getMessageAttachment = async (params: Types.GetImageParams): Promise<string | null> => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { channel, sessionId, messageId } = params;\n\n const url = `${BASE_URL}/api/${businessId}/${shopId}/${channel}/${sessionId}/${messageId}/attachment`;\n\n let attempts = 0;\n const maxRetries = 3;\n\n while (attempts < maxRetries) {\n try {\n const response = await axios.get(url, {\n responseType: 'blob',\n });\n const blobUrl = URL.createObjectURL(response.data);\n return blobUrl;\n } catch (error: unknown) {\n attempts++;\n if (attempts >= maxRetries) {\n const errorMessage = error instanceof Error ? error.message : 'Failed to fetch attachment';\n console.error(`Failed to fetch attachment after ${maxRetries} attempts`, errorMessage);\n return null;\n }\n await new Promise(resolve => setTimeout(resolve, 500));\n }\n }\n\n return null;\n};\n\nexport const getUser = async (params: Types.GetUserParams) => {\n const { type = 'user', channel, id, sessionId } = params;\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n let route = `user/${channel}/${id}`;\n if (type === 'group') {\n route = `${channel}/group/${id}`\n }\n const { data, status } = await apiService().get<Types.GetUserResponse>(`api/${businessId}/${shopId}/${route}`, { params: { session_id: sessionId } });\n\n if (status === 200) {\n let addressFormat = null\n if (data.address && Object.keys(data.address).length > 0) {\n addressFormat = {\n address: data.address ? data.address.address || '' : '',\n province: data.address ? data.address.province || '' : '',\n district: data.address ? data.address.district || '' : '',\n sub_district: data.address ? data.address.sub_district || data.address.subdistrict || '' : '',\n zip_code: data.address ? data.address.zip_code || '' : '',\n }\n }\n\n return {\n ...data, address: addressFormat\n };\n }\n\n throw new Error('Failed to getUser');\n};\n\nexport const getActivityLogs = async (params: Types.GetActivityLogParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { type = 'user', channel, id } = params;\n let route = `user/${channel}/${id}/activity-log`;\n if (type === 'group') {\n route = `${channel}/group/${id}/activity_logs`\n }\n const { data, status } = await apiService().get<Types.GetActivityLogsResponse>(`api/${businessId}/${shopId}/${route}`);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to getActivityLogs');\n};\n\nexport const updateUser = async (params: Types.UpdateUserParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { type = 'user', channel, id } = params;\n let _channel = channel;\n if (type === 'group') {\n _channel = 'line';\n }\n let route = `user/${_channel}/${id}`;\n if (type === 'group') {\n route = `${_channel}/group/${id}`\n }\n const { data, status } = await apiService().patch<Types.UpdateUserResponse>(`api/${businessId}/${shopId}/${route}`, {\n nickname: params.nickname,\n email: params.email,\n phone_number: params.phone_number,\n address: params.address,\n gender: params.gender,\n locale: params.locale,\n note: params.note,\n status_id: params.status_id,\n add_tag_ids: params.add_tag_ids,\n remove_tag_ids: params.remove_tag_ids,\n context: params.context,\n });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to updateUser');\n};\n\nexport const mergeUser = async (params: Types.MergeUserParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { matchUserId, matchDecision } = params;\n const { data, status } = await apiService().post<Types.MergeUserResponse>(`api/${businessId}/${shopId}/user/merge`, {\n match_user_id: matchUserId,\n match_decision: matchDecision,\n });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to mergeUser');\n};\n\nexport const unlinkUser = async (params: Types.UnlinkUserParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { zignalUserId, channel, userId } = params;\n const { data, status } = await apiService().request<Types.UnlinkUserResponse>({\n method: 'DELETE',\n url: `api/${businessId}/${shopId}/user/unlink`,\n data: {\n zignal_user_id: zignalUserId,\n channel: channel,\n user_id: userId,\n },\n });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to unlinkUser');\n};\n\nexport const getUserStatuses = async () => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { data, status } = await apiService().get<Types.GetUserStatusesResponse>(`api/${businessId}/${shopId}/user/status`);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to getUserStatuses');\n};\n\nexport const createUserStatus = async (params: Types.CreateUserStatusParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { data, status } = await apiService().post<Types.CreateUserStatusResponse>(`api/${businessId}/${shopId}/user/status`, params);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to createUserStatus');\n};\n\nexport const getUserTags = async () => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { data, status } = await apiService().get<Types.GetUserTagsResponse>(`api/${businessId}/${shopId}/user/tag`);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to getUserTags');\n};\n\nexport const createUserTag = async (params: Types.CreateUserTagParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { data, status } = await apiService().post<Types.CreateUserTagResponse>(`api/${businessId}/${shopId}/user/tag`, params);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to createUserTag');\n};\n\nexport const updateUserStatus = async (params: Types.UpdateUserStatusParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { id, ...rest } = params;\n const { data, status } = await apiService().patch<Types.UpdateUserStatusResponse>(`api/${businessId}/${shopId}/user/status/${id}`, rest);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to updateUserStatus');\n};\n\nexport const deleteUserStatus = async (params: Types.DeleteUserStatusParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { id, force, checkOnly } = params;\n const { data, status } = await apiService().delete<Types.DeleteUserStatusResponse>(`api/${businessId}/${shopId}/user/status/${id}`, {\n data: { force, check_only: checkOnly }\n });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to deleteUserStatus');\n};\n\nexport const reorderUserStatus = async (params: Types.ReorderUserStatusParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { id, sequence } = params;\n const { data, status } = await apiService().patch<Types.ReorderUserStatusResponse>(`api/${businessId}/${shopId}/user/status/${id}`, {\n sequence\n });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to reorderUserStatus');\n};\n\nexport const updateUserTag = async (params: Types.UpdateUserTagParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { id, ...rest } = params;\n const { data, status } = await apiService().patch<Types.UpdateUserTagResponse>(`api/${businessId}/${shopId}/user/tag/${id}`, rest);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to updateUserTag');\n};\n\nexport const deleteUserTag = async (params: Types.DeleteUserTagParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { id, force, checkOnly } = params;\n const { data, status } = await apiService().delete<Types.DeleteUserTagResponse>(`api/${businessId}/${shopId}/user/tag/${id}`, {\n data: { force, check_only: checkOnly }\n });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to deleteUserTag');\n};\n\nexport const reorderUserTag = async (params: Types.ReorderUserTagParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { id, sequence } = params;\n const { data, status } = await apiService().patch<Types.ReorderUserTagResponse>(`api/${businessId}/${shopId}/user/tag/${id}`, {\n sequence\n });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to reorderUserTag');\n};\n\nexport const createUserContext = async (params: Types.CreateUserContextParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { data, status } = await apiService().post<Types.CreateUserContextResponse>(`api/${businessId}/${shopId}/user/context`, params);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to createUserContext');\n};\n\nexport const saveUserEvent = async (params: Types.SaveUserEventParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { sessionId } = params;\n const { data, status } = await apiService().post<Types.SaveUserEventResponse>(`api/${businessId}/${shopId}/chat/${sessionId}/zwiz/save-user-event`, params);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to saveUserEvent');\n};\n\nexport const getReplyTokenInfo = async (params: Types.GetReplyTokenInfoParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { sessionId } = params;\n const { data, status } = await apiService().get<Types.GetReplyTokenInfoResponse>(`api/${businessId}/${shopId}/chat/${sessionId}/reply-token-info`);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to getReplyTokenInfo');\n};\n\nexport const syncMessage = async (params: Types.SyncMessageParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { sessionId } = params;\n const { data, status } = await apiService().post<Types.BaseResponse>(`api/${businessId}/${shopId}/chat/${sessionId}/sync-message`);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to syncMessage');\n};\n\nexport const syncTags = async (params: Types.SyncTagsParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { sessionId } = params;\n const { data, status } = await apiService().post<Types.BaseResponse>(`api/${businessId}/${shopId}/chat/${sessionId}/sync-tag`);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to syncTags');\n};\n\nexport const syncUser = async (params: Types.SyncUserParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { channel, id } = params;\n const { data, status } = await apiService().post<Types.BaseResponse>(`api/${businessId}/${shopId}/user/${channel}/${id}/sync`);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to syncUser');\n};\n\n// Custom Filter API Functions\nexport const getChatFilters = async () => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { data, status } = await apiService().get<Types.GetChatFiltersResponse>(`api/${businessId}/${shopId}/chat/filters`);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to getChatFilters');\n};\n\nexport const createChatFilter = async (params: Types.CreateChatFilterParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { connection_ids, last_answer_by_ids, status_ids, tag_ids, ...rest } = params;\n const { data, status } = await apiService().post<Types.CreateChatFilterResponse>(`api/${businessId}/${shopId}/chat/filters`, {\n ...rest,\n connection_ids,\n last_answer_by_ids,\n status_ids,\n tag_ids,\n });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to createChatFilter');\n};\n\nexport const updateChatFilter = async (params: Types.UpdateChatFilterParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { id, connection_ids, last_answer_by_ids, status_ids, tag_ids, ...rest } = params;\n const { data, status } = await apiService().patch<Types.UpdateChatFilterResponse>(`api/${businessId}/${shopId}/chat/filters/${id}`, {\n ...rest,\n connection_ids,\n last_answer_by_ids,\n status_ids,\n tag_ids,\n });\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to updateChatFilter');\n};\n\nexport const deleteChatFilter = async (params: Types.DeleteChatFilterParams) => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { data, status } = await apiService().delete<Types.BaseResponse>(`api/${businessId}/${shopId}/chat/filters/${params.id}`);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to deleteChatFilter');\n};\n\nexport const getChatFilterConfig = async (): Promise<Types.GetChatFilterConfigResponse> => {\n const businessId = configStore.get('businessId');\n const shopId = configStore.get('shopId');\n const { data, status } = await apiService().get<Types.GetChatFilterConfigResponse>(`api/${businessId}/${shopId}/chat/filter-config`);\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to getChatFilterConfig');\n};\n\nexport const getShopUrl = async ({ connectionId, channel, userId, urlType }: Types.GetShopUrlParams): Promise<Types.GetShopUrlResponse> => {\n const { data, status } = await apiService().post<Types.GetShopUrlResponse>(`api/zwiz/${connectionId}/shop-url`,\n {\n channel,\n user_id: userId,\n url_type: urlType,\n }\n );\n\n if (status === 200) {\n return data;\n }\n\n throw new Error('Failed to getShopUrl');\n};"],"version":3}
|
|
@@ -4,7 +4,7 @@ import { u as useTranslation } from './utils.js';
|
|
|
4
4
|
import { r as reorderIcon, d as dragReorder } from './icon-svg.js';
|
|
5
5
|
import { c as configStore } from './store.js';
|
|
6
6
|
|
|
7
|
-
const masterDataItemCss = "@layer base{*,::backdrop,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-x-reverse:0;--tw-shadow:0 0 #0000;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-alpha:100%;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-offset-width:0;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-drop-shadow-alpha:100%;--tw-border-style:solid;border:0 solid;box-sizing:border-box;margin:0;padding:0}}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-space-x-reverse:0;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-font-weight:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-border-style:solid;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}}@layer theme{:host,:root{--color-yellow-500:oklch(79.5% .184 86.047);--container-xs:20rem;--container-sm:24rem;--color-red-700:oklch(50.5% .213 27.518);--color-green-500:oklch(72.3% .219 149.579);--color-green-700:oklch(52.7% .154 150.069);--color-blue-500:oklch(62.3% .214 259.815);--color-pink-100:oklch(94.8% .028 342.258);--color-gray-400:oklch(70.7% .022 261.325);--font-weight-semibold:600;--font-weight-bold:700;--animate-spin:spin 1s linear infinite;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--color-red-500:oklch(63.7% .237 25.331);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-500:oklch(55.1% .027 264.364);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:1.33333;--text-sm:.875rem;--text-sm--line-height:1.42857;--text-base:1rem;--text-base--line-height:1.5;--text-lg:1.125rem;--text-lg--line-height:1.55556;--font-weight-medium:500;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:\"Kanit\",var(--default-font);--default-mono-font-family:var(--font-mono);--default-font:ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";--color-primary:#e02848;--color-secondary:#023761;--color-background:#fff;--color-surface:#000;--color-paper:#f3f4f6;--color-divider:#e5e7eb;--color-theme-gray:#6b7280;--color-overlay:#0000004d;--color-selected:#fdeef1}}@layer base{::file-selector-button{appearance:button;background-color:#0000;border:0 solid;border-radius:0;box-sizing:border-box;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;margin:0;margin-inline-end:4px;opacity:1;padding:0}:host,html{-webkit-text-size-adjust:100%;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);tab-size:4;-webkit-tap-highlight-color:transparent;line-height:1.5}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-size:1em;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{background-color:#0000;border-radius:0;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-second-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-meridiem-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{appearance:none;--tw-shadow:0 0 #0000;background-color:#fff;border-color:oklch(55.1% .027 264.364);border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}:is([type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select):focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color);border-color:oklch(54.6% .245 262.881);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}input::placeholder,textarea::placeholder{color:oklch(55.1% .027 264.364);opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}select{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='oklch(55.1%25 0.027 264.364)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E\");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;print-color-adjust:exact}[multiple],[size]:where(select:not([size=\"1\"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;print-color-adjust:unset}[type=checkbox],[type=radio]{appearance:none;color:oklch(54.6% .245 262.881);print-color-adjust:exact;-webkit-user-select:none;user-select:none;vertical-align:middle;--tw-shadow:0 0 #0000;background-color:#fff;background-origin:border-box;border-color:oklch(55.1% .027 264.364);border-width:1px;display:inline-block;flex-shrink:0;height:1rem;padding:0;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0'/%3E%3C/svg%3E\")}[type=radio]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E\")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:#0000}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:#0000}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid buttontext;outline:1px auto -webkit-focus-ring-color}}@layer components{.dialog-backdrop{align-items:center;background-color:#0006;display:flex;inset:calc(var(--spacing)*0);justify-content:center;position:fixed;z-index:50}@supports (color:color-mix(in lab,red,red)){.dialog-backdrop{background-color:color-mix(in oklab,var(--color-black)40%,transparent);background-color:color-mix(in srgb,#00040%,transparent)}}.chat-item{border-radius:var(--radius-xl);cursor:pointer;margin-block:calc(var(--spacing)*1);margin-inline:calc(var(--spacing)*2);padding-block:calc(var(--spacing)*3);padding-inline:calc(var(--spacing)*4);--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);align-items:flex-start;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);display:flex;position:relative}:where(.chat-item>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:calc(var(--spacing)*4*(1 - var(--tw-space-x-reverse)));margin-inline-start:calc(var(--spacing)*4*var(--tw-space-x-reverse))}.chat-item .chat-item-pin{position:absolute;right:calc(var(--spacing)*-3);top:calc(var(--spacing)*1)}.chat-item .chat-item-pin-icon{fill:currentColor;height:calc(var(--spacing)*3);rotate:45deg;width:calc(var(--spacing)*3)}.chat-item .chat-item-content-container{display:flex;flex-direction:row;width:100%}:where(.chat-item .chat-item-content-container>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:calc(var(--spacing)*4*(1 - var(--tw-space-x-reverse)));margin-inline-start:calc(var(--spacing)*4*var(--tw-space-x-reverse))}.chat-item .chat-item-avatar-wrapper{align-self:center;flex-shrink:0;position:relative}.chat-item .chat-item-avatar-badge{bottom:calc(var(--spacing)*-.5);position:absolute;right:calc(var(--spacing)*-.5)}.chat-item .chat-item-content-wrapper{min-height:calc(var(--spacing)*18);width:100%}.chat-item .chat-item-content-main{align-items:center;display:flex}:where(.chat-item .chat-item-content-main>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:calc(var(--spacing)*1*(1 - var(--tw-space-x-reverse)));margin-inline-start:calc(var(--spacing)*1*var(--tw-space-x-reverse))}.chat-item .chat-item-content-main-image{border-radius:3.40282e+38px;height:calc(var(--spacing)*4);width:calc(var(--spacing)*4)}.chat-item .chat-item-content-main-name{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.chat-item .chat-item-content-main-name,.chat-item .chat-item-content-main-time{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.chat-item .chat-item-content-main-time{color:var(--color-gray-500);font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));margin-left:auto}.chat-item .chat-item-content-secondary{align-items:flex-start;display:flex;flex-direction:row;width:100%}.chat-item .chat-item-content-secondary-nickname{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.chat-item .chat-item-content-secondary-message,.chat-item .chat-item-content-secondary-nickname{color:var(--color-surface);-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.chat-item .chat-item-content-secondary-message{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.chat-item .chat-item-content-unread{background-color:var(--color-primary);border-radius:3.40282e+38px;color:var(--color-white);font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));margin-left:auto}.chat-item .chat-item-content-unread-mark{display:inline-block;height:calc(var(--spacing)*2.5);width:calc(var(--spacing)*2.5)}.chat-item .chat-item-content-unread-count{padding-block:calc(var(--spacing)*.5);padding-inline:calc(var(--spacing)*2)}.z-icon-button{cursor:pointer;font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));--tw-font-weight:var(--font-weight-medium);align-items:center;border-radius:3.40282e+38px;display:inline-flex;font-weight:var(--font-weight-medium);justify-content:center;transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.z-icon-button:focus{--tw-outline-style:none;outline-style:none}.z-icon-button-primary{background-color:var(--color-primary);color:var(--color-white)}.z-icon-button-outlined{border-color:var(--color-primary);border-style:var(--tw-border-style);border-width:1px}.z-icon-button-outlined,.z-icon-button-text{color:var(--color-primary)}.z-icon-button-disabled{cursor:not-allowed;opacity:.5}.z-button{cursor:pointer;--tw-font-weight:var(--font-weight-medium);align-items:center;border-radius:3.40282e+38px;display:inline-flex;font-weight:var(--font-weight-medium);justify-content:center;transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.z-button:focus{--tw-outline-style:none;outline-style:none}.z-button-small{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));padding-block:calc(var(--spacing)*1.5);padding-inline:calc(var(--spacing)*2)}.z-button-medium{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*3)}.z-button-large{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height));padding-block:calc(var(--spacing)*3);padding-inline:calc(var(--spacing)*4)}.z-button-primary{background-color:var(--color-primary);color:var(--color-white)}.z-button-outlined{border-color:var(--color-primary);border-style:var(--tw-border-style);border-width:1px;color:var(--color-primary)}.z-button-disabled{cursor:not-allowed;opacity:.5}.z-button-text{margin-inline:calc(var(--spacing)*2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.z-input-area-label{margin-bottom:calc(var(--spacing)*1);--tw-font-weight:var(--font-weight-medium);display:block;font-weight:var(--font-weight-medium)}.z-input-area-input,.z-input-area-label{color:var(--color-surface);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.z-input-area-input{background-color:var(--color-paper);border-color:var(--color-surface);border-radius:var(--radius-lg);border-style:var(--tw-border-style);padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*4);--tw-ring-color:var(--color-primary);border-width:1px;width:100%}.z-input-area-input:focus{border-color:var(--color-primary);--tw-outline-style:none;outline-style:none}.z-input-area-error{color:var(--color-red-500);font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));margin-top:calc(var(--spacing)*1)}.z-input-label{margin-bottom:calc(var(--spacing)*1);--tw-font-weight:var(--font-weight-medium);display:block;font-weight:var(--font-weight-medium)}.z-input,.z-input-label{color:var(--color-surface);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.z-input{background-color:var(--color-background);border-color:var(--color-divider);border-radius:var(--radius-md);border-style:var(--tw-border-style);padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*4);--tw-ring-color:var(--color-primary);border-width:1px;width:100%}.z-input:focus{border-color:var(--color-primary);--tw-outline-style:none;outline-style:none}.z-input-error{color:var(--color-red-500);font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));margin-top:calc(var(--spacing)*1)}.z-select-input-label{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));margin-bottom:calc(var(--spacing)*1);--tw-font-weight:var(--font-weight-medium);display:block;font-weight:var(--font-weight-medium)}.z-tag-or-status-item{align-items:center;border-radius:var(--radius-2xl);gap:calc(var(--spacing)*2);padding-block:calc(var(--spacing)*1.5);padding-inline:calc(var(--spacing)*3);--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);display:inline-flex}.z-tag-or-status-item .z-tag-or-status-item-name{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));max-width:calc(var(--spacing)*20)}.z-tag-or-status-item .z-tag-or-status-item-icon{border-radius:3.40282e+38px;height:calc(var(--spacing)*4);width:calc(var(--spacing)*4)}.z-context-input{align-items:stretch;display:flex;flex-direction:row;margin-block:calc(var(--spacing)*1)}.z-context-input-key{background-color:var(--color-background);border-bottom-left-radius:var(--radius-3xl);border-color:var(--color-divider);border-style:var(--tw-border-style);border-top-left-radius:var(--radius-3xl);border-width:1px;color:var(--color-surface);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));max-height:6.4rem;min-height:2.4rem;padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*4);resize:none;width:100%;--tw-ring-color:var(--color-primary);flex:1}.z-context-input-key:focus{border-color:var(--color-primary);--tw-outline-style:none;outline-style:none}.z-context-input-value{background-color:var(--color-background);border-bottom-right-radius:var(--radius-3xl);border-color:var(--color-primary);border-style:var(--tw-border-style);border-top-right-radius:var(--radius-3xl);border-width:1px;color:var(--color-surface);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));max-height:6.4rem;min-height:2.4rem;padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*4);resize:none;width:100%;--tw-ring-color:var(--color-primary);flex:1}.z-context-input-value:focus{border-color:var(--color-primary);--tw-outline-style:none;outline-style:none}.z-text-with-link{color:var(--color-blue-600);text-decoration-line:underline}.z-button-group{display:inline-flex}.z-button-group-tab{border-radius:var(--radius-md);display:flex;gap:calc(var(--spacing)*1);padding:calc(var(--spacing)*.5)!important}.z-button-group-tab-overlay{background-color:var(--color-overlay)}.z-button-group-item{border-style:var(--tw-border-style);cursor:pointer;--tw-font-weight:var(--font-weight-medium);align-items:center;border-width:1px;display:inline-flex;font-weight:var(--font-weight-medium);justify-content:center;transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.z-button-group-item:focus{--tw-outline-style:none;outline-style:none}.z-button-group-item-tab{align-items:center;border-radius:var(--radius-sm);border-style:var(--tw-border-style)!important;border-width:0!important;display:flex;flex:1;flex-direction:column;gap:calc(var(--spacing)*2);justify-content:center;padding:calc(var(--spacing)*1)!important}.z-button-group-item-tab-selected{background-color:var(--color-white);--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.z-button-group-item-tab-selected,.z-button-group-item-tab-unselected{border-style:var(--tw-border-style)!important;border-width:0!important}.z-button-group-small{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));padding-block:calc(var(--spacing)*1.5);padding-inline:calc(var(--spacing)*2)}.z-button-group-medium{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*3)}.z-button-group-large{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height));padding-block:calc(var(--spacing)*3);padding-inline:calc(var(--spacing)*4)}.z-button-group-item-first{border-bottom-left-radius:3.40282e+38px;border-top-left-radius:3.40282e+38px}.z-button-group-item-last{border-bottom-right-radius:3.40282e+38px;border-top-right-radius:3.40282e+38px}.z-button-group-item-middle{border-radius:0}.z-button-group-item-primary-selected{background-color:var(--color-primary);border-color:var(--color-primary);color:var(--color-white)}.z-button-group-item-primary-unselected{background-color:var(--color-white);border-color:var(--color-primary);color:var(--color-primary)}.z-button-group-item-outlined-selected{background-color:var(--color-primary);border-color:var(--color-primary);color:var(--color-white)}.z-button-group-item-outlined-unselected{background-color:#0000;border-color:var(--color-primary);color:var(--color-primary)}.z-button-group-item-disabled{cursor:not-allowed;opacity:.5}.z-button-group-item:not(:first-child){margin-left:-1px}.z-avatar-error{align-items:center;display:flex;justify-content:center}.z-avatar-2x-small{height:calc(var(--spacing)*3);min-height:calc(var(--spacing)*3);min-width:calc(var(--spacing)*3);width:calc(var(--spacing)*3)}.z-avatar-x-small{height:calc(var(--spacing)*4);min-height:calc(var(--spacing)*4);min-width:calc(var(--spacing)*4);width:calc(var(--spacing)*4)}.z-avatar-small{height:calc(var(--spacing)*8);min-height:calc(var(--spacing)*8);min-width:calc(var(--spacing)*8);width:calc(var(--spacing)*8)}.z-avatar-medium{height:calc(var(--spacing)*16);min-height:calc(var(--spacing)*16);min-width:calc(var(--spacing)*16);width:calc(var(--spacing)*16)}.z-avatar-large{height:calc(var(--spacing)*32);min-height:calc(var(--spacing)*32);min-width:calc(var(--spacing)*32);width:calc(var(--spacing)*32)}.z-avatar-full{height:100%;width:100%}.z-avatar-group{background-color:#023761;border-radius:3.40282e+38px}}@layer utilities;[data-theme=light]{--color-primary:#e02848;--color-secondary:#023761;--color-background:#fff;--color-surface:#000;--color-paper:#f3f4f6;--color-divider:#e5e7eb;--color-theme-gray:#6b7280;--color-overlay:#0000004d;--color-selected:#fdeef1}[data-theme=dark]{--color-primary:#b50f30;--color-secondary:#fff;--color-background:#23292d;--color-surface:#fff;--color-paper:#374151;--color-divider:#4b5563;--color-theme-gray:#d1d5db;--color-overlay:#ffffff4d;--color-selected:#3a242e}.scroll-container::-webkit-scrollbar{background:#0000001a;height:8px;width:8px}.scroll-container:active::-webkit-scrollbar,.scroll-container:hover::-webkit-scrollbar{background:#0003}.scroll-container:active::-webkit-scrollbar-thumb,.scroll-container:hover::-webkit-scrollbar-thumb{background:#0006;border-radius:4px}.z-zwiz-max-height{height:100vh}.bg-time-badge{background-color:#0000004d}@supports (color:color-mix(in lab,red,red)){.bg-time-badge{background-color:color-mix(in srgb,var(--color-surface)30%,transparent);background-color:color-mix(in srgb,#00030%,transparent)}}.placeholder-surface::placeholder{color:var(--color-text-gray)}.z-width-100{width:100%}.z-width-90{width:90%}.z-width-75{width:75%}.z-width-50{width:50%}.z-width-25{width:25%}.z-width-0{width:0}.z-animate-width{transition-duration:.5s;transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1)}.z-animate-grid-template-cols{transition:grid-template-rows .5s}[type=checkbox]{background-color:var(--color-gray-300);border-color:var(--color-gray-300);border-radius:4px;cursor:pointer}[type=checkbox]:checked,[type=checkbox]:indeterminate{background-color:var(--color-primary);border-color:var(--color-primary);border-radius:4px;cursor:pointer}[type=checkbox]:focus{offset:0;outline-offset:0;--tw-ring-color:var(--color-primary);outline:none}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.grid-cols-1{grid-template-columns:1fr}.grid-cols-1_3{grid-template-columns:1fr 3fr}.grid-cols-1_2_1{grid-template-columns:1fr 2fr 1fr}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{.mb-4{margin-bottom:calc(var(--spacing)*4)}.max-w-sm{max-width:var(--container-sm)}.max-w-xs{max-width:var(--container-xs)}.bg-background{background-color:var(--color-background)}.text-green-500{color:var(--color-green-500)}.text-red-500{color:var(--color-red-500)}.text-surface{color:var(--color-surface)}.text-theme-gray{color:var(--color-theme-gray)}.text-white{color:var(--color-white)}.text-yellow-500{color:var(--color-yellow-500)}.relative{position:relative}.mt-2{margin-top:calc(var(--spacing)*2)}.flex{display:flex}.h-8{height:calc(var(--spacing)*8)}.w-8{width:calc(var(--spacing)*8)}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.gap-2{gap:calc(var(--spacing)*2)}.rounded{border-radius:.25rem}.border-0{border-style:var(--tw-border-style);border-width:0}.p-0{padding:calc(var(--spacing)*0)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-gray-500{color:var(--color-gray-500)}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.top-1\\/2{top:50%}.right-3{right:calc(var(--spacing)*3)}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.m-2{margin:calc(var(--spacing)*2)}.mx-4{margin-inline:calc(var(--spacing)*4)}.mt-auto{margin-top:auto}.mb-2{margin-bottom:calc(var(--spacing)*2)}.ml-0\\.5{margin-left:calc(var(--spacing)*.5)}.ml-auto{margin-left:auto}.size-3{height:calc(var(--spacing)*3);width:calc(var(--spacing)*3)}.size-4{height:calc(var(--spacing)*4);width:calc(var(--spacing)*4)}.size-5{height:calc(var(--spacing)*5);width:calc(var(--spacing)*5)}.size-8{height:calc(var(--spacing)*8);width:calc(var(--spacing)*8)}.size-16{height:calc(var(--spacing)*16);width:calc(var(--spacing)*16)}.size-32{height:calc(var(--spacing)*32);width:calc(var(--spacing)*32)}.size-\\[8px\\]{height:8px;width:8px}.size-\\[10px\\]{height:10px;width:10px}.w-1\\/2{width:50%}.w-9{width:calc(var(--spacing)*9)}.w-full{width:100%}.max-w-32{max-width:calc(var(--spacing)*32)}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.translate-y-0{translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0)}.translate-y-full{--tw-translate-y:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.animate-spin{animation:var(--animate-spin)}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.justify-between{justify-content:space-between}.justify-end{justify-content:flex-end}.gap-y-1{row-gap:calc(var(--spacing)*1)}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded-full{border-radius:3.40282e+38px}.border{border-style:var(--tw-border-style);border-width:1px}.border-b-\\[0\\.5px\\]{border-bottom-style:var(--tw-border-style);border-bottom-width:.5px}.border-divider{border-color:var(--color-divider)}.border-primary{border-color:var(--color-primary)}.bg-pink-100{background-color:var(--color-pink-100)}.bg-selected{background-color:var(--color-selected)}.pt-2{padding-top:calc(var(--spacing)*2)}.pr-16{padding-right:calc(var(--spacing)*16)}.text-right{text-align:right}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.text-background{color:var(--color-background)}.text-black{color:var(--color-black)}.text-blue-500{color:var(--color-blue-500)}.text-gray-400{color:var(--color-gray-400)}.text-green-700{color:var(--color-green-700)}.text-primary{color:var(--color-primary)}.text-red-700{color:var(--color-red-700)}.capitalize{text-transform:capitalize}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}@keyframes spin{to{transform:rotate(1turn)}}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities;/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{.resize{resize:both}}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components{.chat-item .chat-item-content-main-name,.chat-item .chat-item-content-main-time{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.chat-item .chat-item-content-secondary-message,.chat-item .chat-item-content-secondary-nickname{color:var(--color-surface);-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.z-icon-button-outlined,.z-icon-button-text{color:var(--color-primary)}.z-input,.z-input-area-input,.z-input-area-label,.z-input-label{color:var(--color-surface);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.z-button-group-item-tab,.z-button-group-item-tab-selected{border-style:var(--tw-border-style)!important;border-width:0!important}}@layer utilities{.-translate-y-1\\/2,.translate-y-0{translate:var(--tw-translate-x)var(--tw-translate-y)}}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}:host{display:block}.master-data-item{align-items:center;background-color:var(--color-background);border-bottom:1px solid var(--color-divider);display:flex;padding:.5rem 0;transition:background-color .2s}.master-data-item:hover{background-color:var(--color-background-hover)}.master-data-item-drag-handle{align-items:center;color:var(--color-text-primary);cursor:grab;display:flex;margin-right:.5rem}.master-data-item-color{border-radius:50%;flex-shrink:0;height:1.5rem;margin:0 1rem;width:1.5rem}.master-data-item-name{color:var(--color-surface);flex-grow:1;font-size:1rem;font-weight:500;margin-left:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.master-data-item-actions{align-items:center;display:flex;gap:16px}.master-data-menu{background-color:var(--color-background);border:1px solid var(--color-border);border-radius:4px;box-shadow:0 2px 5px #0000001a;min-width:150px;position:absolute;right:0;top:100%;z-index:10}.master-data-menu-item{color:var(--color-text-primary);cursor:pointer;font-size:.875rem;padding:.5rem 1rem}.master-data-menu-item:hover{background-color:var(--color-background-hover)}.master-data-menu-item.disabled{color:var(--color-text-disabled);cursor:not-allowed;pointer-events:none}@property --tw-space-x-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-blur{syntax:\"*\";inherits:false}@property --tw-brightness{syntax:\"*\";inherits:false}@property --tw-contrast{syntax:\"*\";inherits:false}@property --tw-grayscale{syntax:\"*\";inherits:false}@property --tw-hue-rotate{syntax:\"*\";inherits:false}@property --tw-invert{syntax:\"*\";inherits:false}@property --tw-opacity{syntax:\"*\";inherits:false}@property --tw-saturate{syntax:\"*\";inherits:false}@property --tw-sepia{syntax:\"*\";inherits:false}@property --tw-drop-shadow{syntax:\"*\";inherits:false}@property --tw-drop-shadow-color{syntax:\"*\";inherits:false}@property --tw-drop-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:\"*\";inherits:false}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@media (forced-colors:active){[type=checkbox]:checked,[type=radio]:checked{appearance:auto}[type=checkbox]:indeterminate{appearance:auto}[type=checkbox]:checked,[type=checkbox]:indeterminate,[type=radio]:checked{appearance:auto}}@media (hover:hover){.z-button-outlined:hover,.z-button-primary:hover,.z-icon-button-outlined:hover,.z-icon-button-primary:hover,.z-icon-button-text:hover{--tw-brightness:brightness(110%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.z-button-group-item-tab:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.z-button-group-item-tab-unselected:hover{background-color:var(--color-white)}.z-button-group-item-primary-unselected:hover{--tw-brightness:brightness(95%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.z-button-group-item-outlined-unselected:hover{background-color:#e028481a}@supports (color:color-mix(in lab,red,red)){.z-button-group-item-outlined-unselected:hover{background-color:color-mix(in oklab,var(--color-primary)10%,transparent);background-color:color-mix(in srgb,#e0284810%,transparent)}}.hover\\:brightness-110:hover,.z-button-outlined:hover,.z-button-primary:hover,.z-icon-button-outlined:hover,.z-icon-button-primary:hover,.z-icon-button-text:hover{--tw-brightness:brightness(110%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}}@media screen and (min-width:0){.z-max-height{height:calc(100vh - 56px)}}@media screen and (min-width:600px){.z-max-height{height:calc(100vh - 64px)}}";
|
|
7
|
+
const masterDataItemCss = "@layer base{*,::backdrop,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-x-reverse:0;--tw-shadow:0 0 #0000;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-alpha:100%;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-offset-width:0;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-drop-shadow-alpha:100%;--tw-border-style:solid;border:0 solid;box-sizing:border-box;margin:0;padding:0}}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-space-x-reverse:0;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-font-weight:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-border-style:solid;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0}}}@layer theme{:host,:root{--color-yellow-500:oklch(79.5% .184 86.047);--container-xs:20rem;--container-sm:24rem;--color-red-700:oklch(50.5% .213 27.518);--color-green-500:oklch(72.3% .219 149.579);--color-green-700:oklch(52.7% .154 150.069);--color-blue-500:oklch(62.3% .214 259.815);--color-pink-100:oklch(94.8% .028 342.258);--color-gray-400:oklch(70.7% .022 261.325);--font-weight-semibold:600;--font-weight-bold:700;--animate-spin:spin 1s linear infinite;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--color-red-500:oklch(63.7% .237 25.331);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-500:oklch(55.1% .027 264.364);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:1.33333;--text-sm:.875rem;--text-sm--line-height:1.42857;--text-base:1rem;--text-base--line-height:1.5;--text-lg:1.125rem;--text-lg--line-height:1.55556;--font-weight-medium:500;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:\"Kanit\",var(--default-font);--default-mono-font-family:var(--font-mono);--default-font:ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";--color-primary:#e02848;--color-secondary:#023761;--color-background:#fff;--color-surface:#000;--color-paper:#f3f4f6;--color-divider:#e5e7eb;--color-theme-gray:#6b7280;--color-overlay:#0000004d;--color-selected:#fdeef1}}@layer base{::file-selector-button{appearance:button;background-color:#0000;border:0 solid;border-radius:0;box-sizing:border-box;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;margin:0;margin-inline-end:4px;opacity:1;padding:0}:host,html{-webkit-text-size-adjust:100%;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);tab-size:4;-webkit-tap-highlight-color:transparent;line-height:1.5}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-size:1em;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{background-color:#0000;border-radius:0;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-second-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-datetime-edit-meridiem-field{padding-block:0;padding-bottom:0;padding-top:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],input:where(:not([type])),select,textarea{appearance:none;--tw-shadow:0 0 #0000;background-color:#fff;border-color:oklch(55.1% .027 264.364);border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}:is([type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select):focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color);border-color:oklch(54.6% .245 262.881);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}input::placeholder,textarea::placeholder{color:oklch(55.1% .027 264.364);opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}select{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='oklch(55.1%25 0.027 264.364)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E\");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;print-color-adjust:exact}[multiple],[size]:where(select:not([size=\"1\"])){background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;print-color-adjust:unset}[type=checkbox],[type=radio]{appearance:none;color:oklch(54.6% .245 262.881);print-color-adjust:exact;-webkit-user-select:none;user-select:none;vertical-align:middle;--tw-shadow:0 0 #0000;background-color:#fff;background-origin:border-box;border-color:oklch(55.1% .027 264.364);border-width:1px;display:inline-block;flex-shrink:0;height:1rem;padding:0;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0'/%3E%3C/svg%3E\")}[type=radio]:checked{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E\")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:#0000}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E\");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:#0000}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid buttontext;outline:1px auto -webkit-focus-ring-color}}@layer components{.dialog-backdrop{align-items:center;background-color:#0006;display:flex;inset:calc(var(--spacing)*0);justify-content:center;position:fixed;z-index:50}@supports (color:color-mix(in lab,red,red)){.dialog-backdrop{background-color:color-mix(in oklab,var(--color-black)40%,transparent);background-color:color-mix(in srgb,#00040%,transparent)}}.chat-item{border-radius:var(--radius-xl);cursor:pointer;margin-block:calc(var(--spacing)*1);margin-inline:calc(var(--spacing)*2);padding-block:calc(var(--spacing)*3);padding-inline:calc(var(--spacing)*4);--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);align-items:flex-start;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);display:flex;position:relative}:where(.chat-item>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:calc(var(--spacing)*4*(1 - var(--tw-space-x-reverse)));margin-inline-start:calc(var(--spacing)*4*var(--tw-space-x-reverse))}.chat-item .chat-item-pin{position:absolute;right:calc(var(--spacing)*-3);top:calc(var(--spacing)*1)}.chat-item .chat-item-pin-icon{fill:currentColor;height:calc(var(--spacing)*3);rotate:45deg;width:calc(var(--spacing)*3)}.chat-item .chat-item-content-container{display:flex;flex-direction:row;width:100%}:where(.chat-item .chat-item-content-container>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:calc(var(--spacing)*4*(1 - var(--tw-space-x-reverse)));margin-inline-start:calc(var(--spacing)*4*var(--tw-space-x-reverse))}.chat-item .chat-item-avatar-wrapper{align-self:center;flex-shrink:0;position:relative}.chat-item .chat-item-avatar-badge{bottom:calc(var(--spacing)*-.5);position:absolute;right:calc(var(--spacing)*-.5)}.chat-item .chat-item-content-wrapper{min-height:calc(var(--spacing)*18);width:100%}.chat-item .chat-item-content-main{align-items:center;display:flex}:where(.chat-item .chat-item-content-main>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-end:calc(var(--spacing)*1*(1 - var(--tw-space-x-reverse)));margin-inline-start:calc(var(--spacing)*1*var(--tw-space-x-reverse))}.chat-item .chat-item-content-main-image{border-radius:3.40282e+38px;height:calc(var(--spacing)*4);width:calc(var(--spacing)*4)}.chat-item .chat-item-content-main-name{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.chat-item .chat-item-content-main-name,.chat-item .chat-item-content-main-time{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.chat-item .chat-item-content-main-time{color:var(--color-gray-500);font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));margin-left:auto}.chat-item .chat-item-content-secondary{align-items:flex-start;display:flex;flex-direction:row;width:100%}.chat-item .chat-item-content-secondary-nickname{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.chat-item .chat-item-content-secondary-message,.chat-item .chat-item-content-secondary-nickname{color:var(--color-surface);-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.chat-item .chat-item-content-secondary-message{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.chat-item .chat-item-content-unread{background-color:var(--color-primary);border-radius:3.40282e+38px;color:var(--color-white);font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));margin-left:auto}.chat-item .chat-item-content-unread-mark{display:inline-block;height:calc(var(--spacing)*2.5);width:calc(var(--spacing)*2.5)}.chat-item .chat-item-content-unread-count{padding-block:calc(var(--spacing)*.5);padding-inline:calc(var(--spacing)*2)}.z-icon-button{cursor:pointer;font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));--tw-font-weight:var(--font-weight-medium);align-items:center;border-radius:3.40282e+38px;display:inline-flex;font-weight:var(--font-weight-medium);justify-content:center;transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.z-icon-button:focus{--tw-outline-style:none;outline-style:none}.z-icon-button-primary{background-color:var(--color-primary);color:var(--color-white)}.z-icon-button-outlined{border-color:var(--color-primary);border-style:var(--tw-border-style);border-width:1px}.z-icon-button-outlined,.z-icon-button-text{color:var(--color-primary)}.z-icon-button-disabled{cursor:not-allowed;opacity:.5}.z-button{cursor:pointer;--tw-font-weight:var(--font-weight-medium);align-items:center;border-radius:3.40282e+38px;display:inline-flex;font-weight:var(--font-weight-medium);justify-content:center;transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.z-button:focus{--tw-outline-style:none;outline-style:none}.z-button-small{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));padding-block:calc(var(--spacing)*1.5);padding-inline:calc(var(--spacing)*2)}.z-button-medium{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*3)}.z-button-large{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height));padding-block:calc(var(--spacing)*3);padding-inline:calc(var(--spacing)*4)}.z-button-primary{background-color:var(--color-primary);color:var(--color-white)}.z-button-outlined{border-color:var(--color-primary);border-style:var(--tw-border-style);border-width:1px;color:var(--color-primary)}.z-button-disabled{cursor:not-allowed;opacity:.5}.z-button-text{margin-inline:calc(var(--spacing)*2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.z-input-area-label{margin-bottom:calc(var(--spacing)*1);--tw-font-weight:var(--font-weight-medium);display:block;font-weight:var(--font-weight-medium)}.z-input-area-input,.z-input-area-label{color:var(--color-surface);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.z-input-area-input{background-color:var(--color-paper);border-color:var(--color-surface);border-radius:var(--radius-lg);border-style:var(--tw-border-style);padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*4);--tw-ring-color:var(--color-primary);border-width:1px;width:100%}.z-input-area-input:focus{border-color:var(--color-primary);--tw-outline-style:none;outline-style:none}.z-input-area-error{color:var(--color-red-500);font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));margin-top:calc(var(--spacing)*1)}.z-input-label{margin-bottom:calc(var(--spacing)*1);--tw-font-weight:var(--font-weight-medium);display:block;font-weight:var(--font-weight-medium)}.z-input,.z-input-label{color:var(--color-surface);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.z-input{background-color:var(--color-background);border-color:var(--color-divider);border-radius:var(--radius-md);border-style:var(--tw-border-style);padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*4);--tw-ring-color:var(--color-primary);border-width:1px;width:100%}.z-input:focus{border-color:var(--color-primary);--tw-outline-style:none;outline-style:none}.z-input-error{color:var(--color-red-500);font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));margin-top:calc(var(--spacing)*1)}.z-select-input-label{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));margin-bottom:calc(var(--spacing)*1);--tw-font-weight:var(--font-weight-medium);display:block;font-weight:var(--font-weight-medium)}.z-tag-or-status-item{align-items:center;border-radius:var(--radius-2xl);gap:calc(var(--spacing)*2);padding-block:calc(var(--spacing)*1.5);padding-inline:calc(var(--spacing)*3);--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);display:inline-flex}.z-tag-or-status-item .z-tag-or-status-item-name{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));max-width:calc(var(--spacing)*20)}.z-tag-or-status-item .z-tag-or-status-item-icon{border-radius:3.40282e+38px;height:calc(var(--spacing)*4);width:calc(var(--spacing)*4)}.z-context-input{align-items:stretch;display:flex;flex-direction:row;margin-block:calc(var(--spacing)*1)}.z-context-input-key{background-color:var(--color-background);border-bottom-left-radius:var(--radius-3xl);border-color:var(--color-divider);border-style:var(--tw-border-style);border-top-left-radius:var(--radius-3xl);border-width:1px;color:var(--color-surface);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));max-height:6.4rem;min-height:2.4rem;padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*4);resize:none;width:100%;--tw-ring-color:var(--color-primary);flex:1}.z-context-input-key:focus{border-color:var(--color-primary);--tw-outline-style:none;outline-style:none}.z-context-input-value{background-color:var(--color-background);border-bottom-right-radius:var(--radius-3xl);border-color:var(--color-primary);border-style:var(--tw-border-style);border-top-right-radius:var(--radius-3xl);border-width:1px;color:var(--color-surface);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));max-height:6.4rem;min-height:2.4rem;padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*4);resize:none;width:100%;--tw-ring-color:var(--color-primary);flex:1}.z-context-input-value:focus{border-color:var(--color-primary);--tw-outline-style:none;outline-style:none}.z-text-with-link{color:var(--color-blue-600);text-decoration-line:underline}.z-button-group{display:inline-flex}.z-button-group-tab{border-radius:var(--radius-md);display:flex;gap:calc(var(--spacing)*1);padding:calc(var(--spacing)*.5)!important}.z-button-group-tab-overlay{background-color:var(--color-overlay)}.z-button-group-item{border-style:var(--tw-border-style);cursor:pointer;--tw-font-weight:var(--font-weight-medium);align-items:center;border-width:1px;display:inline-flex;font-weight:var(--font-weight-medium);justify-content:center;transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.z-button-group-item:focus{--tw-outline-style:none;outline-style:none}.z-button-group-item-tab{align-items:center;border-radius:var(--radius-sm);border-style:var(--tw-border-style)!important;border-width:0!important;display:flex;flex:1;flex-direction:column;gap:calc(var(--spacing)*2);justify-content:center;padding:calc(var(--spacing)*1)!important}.z-button-group-item-tab-selected{background-color:var(--color-white);--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.z-button-group-item-tab-selected,.z-button-group-item-tab-unselected{border-style:var(--tw-border-style)!important;border-width:0!important}.z-button-group-small{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height));padding-block:calc(var(--spacing)*1.5);padding-inline:calc(var(--spacing)*2)}.z-button-group-medium{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));padding-block:calc(var(--spacing)*2);padding-inline:calc(var(--spacing)*3)}.z-button-group-large{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height));padding-block:calc(var(--spacing)*3);padding-inline:calc(var(--spacing)*4)}.z-button-group-item-first{border-bottom-left-radius:3.40282e+38px;border-top-left-radius:3.40282e+38px}.z-button-group-item-last{border-bottom-right-radius:3.40282e+38px;border-top-right-radius:3.40282e+38px}.z-button-group-item-middle{border-radius:0}.z-button-group-item-primary-selected{background-color:var(--color-primary);border-color:var(--color-primary);color:var(--color-white)}.z-button-group-item-primary-unselected{background-color:var(--color-white);border-color:var(--color-primary);color:var(--color-primary)}.z-button-group-item-outlined-selected{background-color:var(--color-primary);border-color:var(--color-primary);color:var(--color-white)}.z-button-group-item-outlined-unselected{background-color:#0000;border-color:var(--color-primary);color:var(--color-primary)}.z-button-group-item-disabled{cursor:not-allowed;opacity:.5}.z-button-group-item:not(:first-child){margin-left:-1px}.z-avatar-error{align-items:center;display:flex;justify-content:center}.z-avatar-2x-small{height:calc(var(--spacing)*3);min-height:calc(var(--spacing)*3);min-width:calc(var(--spacing)*3);width:calc(var(--spacing)*3)}.z-avatar-x-small{height:calc(var(--spacing)*4);min-height:calc(var(--spacing)*4);min-width:calc(var(--spacing)*4);width:calc(var(--spacing)*4)}.z-avatar-small{height:calc(var(--spacing)*8);min-height:calc(var(--spacing)*8);min-width:calc(var(--spacing)*8);width:calc(var(--spacing)*8)}.z-avatar-medium{height:calc(var(--spacing)*16);min-height:calc(var(--spacing)*16);min-width:calc(var(--spacing)*16);width:calc(var(--spacing)*16)}.z-avatar-large{height:calc(var(--spacing)*32);min-height:calc(var(--spacing)*32);min-width:calc(var(--spacing)*32);width:calc(var(--spacing)*32)}.z-avatar-full{height:100%;width:100%}.z-avatar-group{background-color:#023761;border-radius:3.40282e+38px}}@layer utilities;[data-theme=light]{--color-primary:#e02848;--color-secondary:#023761;--color-background:#fff;--color-surface:#000;--color-paper:#f3f4f6;--color-divider:#e5e7eb;--color-theme-gray:#6b7280;--color-overlay:#0000004d;--color-selected:#fdeef1}[data-theme=dark]{--color-primary:#b50f30;--color-secondary:#fff;--color-background:#23292d;--color-surface:#fff;--color-paper:#374151;--color-divider:#4b5563;--color-theme-gray:#d1d5db;--color-overlay:#ffffff4d;--color-selected:#3a242e}.scroll-container::-webkit-scrollbar{background:#0000001a;height:8px;width:8px}.scroll-container:active::-webkit-scrollbar,.scroll-container:hover::-webkit-scrollbar{background:#0003}.scroll-container:active::-webkit-scrollbar-thumb,.scroll-container:hover::-webkit-scrollbar-thumb{background:#0006;border-radius:4px}.z-zwiz-max-height{height:100vh}.bg-time-badge{background-color:#0000004d}@supports (color:color-mix(in lab,red,red)){.bg-time-badge{background-color:color-mix(in srgb,var(--color-surface)30%,transparent);background-color:color-mix(in srgb,#00030%,transparent)}}.placeholder-surface::placeholder{color:var(--color-text-gray)}.z-width-100{width:100%}.z-width-90{width:90%}.z-width-75{width:75%}.z-width-50{width:50%}.z-width-25{width:25%}.z-width-0{width:0}.z-animate-width{transition-duration:.5s;transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1)}.z-animate-grid-template-cols{transition:grid-template-rows .5s}[type=checkbox]{background-color:var(--color-gray-300);border-color:var(--color-gray-300);border-radius:4px;cursor:pointer}[type=checkbox]:checked,[type=checkbox]:indeterminate{background-color:var(--color-primary);border-color:var(--color-primary);border-radius:4px;cursor:pointer}[type=checkbox]:focus{offset:0;outline-offset:0;--tw-ring-color:var(--color-primary);outline:none}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.grid-cols-1{grid-template-columns:1fr}.grid-cols-1_3{grid-template-columns:1fr 3fr}.grid-cols-1_2_1{grid-template-columns:1fr 2fr 1fr}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{.mt-2{margin-top:calc(var(--spacing)*2)}.flex{display:flex}.h-8{height:calc(var(--spacing)*8)}.w-8{width:calc(var(--spacing)*8)}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.gap-2{gap:calc(var(--spacing)*2)}.rounded{border-radius:.25rem}.border-0{border-style:var(--tw-border-style);border-width:0}.p-0{padding:calc(var(--spacing)*0)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-gray-500{color:var(--color-gray-500)}.relative{position:relative}.mb-4{margin-bottom:calc(var(--spacing)*4)}.max-w-sm{max-width:var(--container-sm)}.max-w-xs{max-width:var(--container-xs)}.bg-background{background-color:var(--color-background)}.text-green-500{color:var(--color-green-500)}.text-red-500{color:var(--color-red-500)}.text-surface{color:var(--color-surface)}.text-theme-gray{color:var(--color-theme-gray)}.text-white{color:var(--color-white)}.text-yellow-500{color:var(--color-yellow-500)}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.top-1\\/2{top:50%}.right-3{right:calc(var(--spacing)*3)}.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.m-2{margin:calc(var(--spacing)*2)}.mx-4{margin-inline:calc(var(--spacing)*4)}.mt-auto{margin-top:auto}.mb-2{margin-bottom:calc(var(--spacing)*2)}.ml-0\\.5{margin-left:calc(var(--spacing)*.5)}.ml-auto{margin-left:auto}.size-3{height:calc(var(--spacing)*3);width:calc(var(--spacing)*3)}.size-4{height:calc(var(--spacing)*4);width:calc(var(--spacing)*4)}.size-5{height:calc(var(--spacing)*5);width:calc(var(--spacing)*5)}.size-8{height:calc(var(--spacing)*8);width:calc(var(--spacing)*8)}.size-16{height:calc(var(--spacing)*16);width:calc(var(--spacing)*16)}.size-32{height:calc(var(--spacing)*32);width:calc(var(--spacing)*32)}.size-\\[8px\\]{height:8px;width:8px}.size-\\[10px\\]{height:10px;width:10px}.w-1\\/2{width:50%}.w-9{width:calc(var(--spacing)*9)}.w-full{width:100%}.max-w-32{max-width:calc(var(--spacing)*32)}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.translate-y-0{translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0)}.translate-y-full{--tw-translate-y:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.animate-spin{animation:var(--animate-spin)}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.justify-between{justify-content:space-between}.justify-end{justify-content:flex-end}.gap-y-1{row-gap:calc(var(--spacing)*1)}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded-full{border-radius:3.40282e+38px}.border{border-style:var(--tw-border-style);border-width:1px}.border-b-\\[0\\.5px\\]{border-bottom-style:var(--tw-border-style);border-bottom-width:.5px}.border-divider{border-color:var(--color-divider)}.border-primary{border-color:var(--color-primary)}.bg-pink-100{background-color:var(--color-pink-100)}.bg-selected{background-color:var(--color-selected)}.pt-2{padding-top:calc(var(--spacing)*2)}.pr-16{padding-right:calc(var(--spacing)*16)}.text-right{text-align:right}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.text-background{color:var(--color-background)}.text-black{color:var(--color-black)}.text-blue-500{color:var(--color-blue-500)}.text-gray-400{color:var(--color-gray-400)}.text-green-700{color:var(--color-green-700)}.text-primary{color:var(--color-primary)}.text-red-700{color:var(--color-red-700)}.capitalize{text-transform:capitalize}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{}@keyframes spin{to{transform:rotate(1turn)}}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities;/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer utilities{.resize{resize:both}}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{}@layer base{}@layer components{.chat-item .chat-item-content-main-name,.chat-item .chat-item-content-main-time{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.chat-item .chat-item-content-secondary-message,.chat-item .chat-item-content-secondary-nickname{color:var(--color-surface);-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.z-icon-button-outlined,.z-icon-button-text{color:var(--color-primary)}.z-input,.z-input-area-input,.z-input-area-label,.z-input-label{color:var(--color-surface);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.z-button-group-item-tab,.z-button-group-item-tab-selected{border-style:var(--tw-border-style)!important;border-width:0!important}}@layer utilities{.-translate-y-1\\/2,.translate-y-0{translate:var(--tw-translate-x)var(--tw-translate-y)}}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}:host{display:block}.master-data-item{align-items:center;background-color:var(--color-background);border-bottom:1px solid var(--color-divider);display:flex;padding:.5rem 0;transition:background-color .2s}.master-data-item:hover{background-color:var(--color-background-hover)}.master-data-item-drag-handle{align-items:center;color:var(--color-text-primary);cursor:grab;display:flex;margin-right:.5rem}.master-data-item-color{border-radius:50%;flex-shrink:0;height:1.5rem;margin:0 1rem;width:1.5rem}.master-data-item-name{color:var(--color-surface);flex-grow:1;font-size:1rem;font-weight:500;margin-left:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.master-data-item-actions{align-items:center;display:flex;gap:16px}.master-data-menu{background-color:var(--color-background);border:1px solid var(--color-border);border-radius:4px;box-shadow:0 2px 5px #0000001a;min-width:150px;position:absolute;right:0;top:100%;z-index:10}.master-data-menu-item{color:var(--color-text-primary);cursor:pointer;font-size:.875rem;padding:.5rem 1rem}.master-data-menu-item:hover{background-color:var(--color-background-hover)}.master-data-menu-item.disabled{color:var(--color-text-disabled);cursor:not-allowed;pointer-events:none}@property --tw-space-x-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:\"*\";inherits:false}@property --tw-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:\"*\";inherits:false}@property --tw-inset-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:\"*\";inherits:false}@property --tw-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:\"*\";inherits:false}@property --tw-inset-ring-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:\"*\";inherits:false}@property --tw-ring-offset-width{syntax:\"<length>\";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:\"*\";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:\"*\";inherits:false;initial-value:0 0 #0000}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-blur{syntax:\"*\";inherits:false}@property --tw-brightness{syntax:\"*\";inherits:false}@property --tw-contrast{syntax:\"*\";inherits:false}@property --tw-grayscale{syntax:\"*\";inherits:false}@property --tw-hue-rotate{syntax:\"*\";inherits:false}@property --tw-invert{syntax:\"*\";inherits:false}@property --tw-opacity{syntax:\"*\";inherits:false}@property --tw-saturate{syntax:\"*\";inherits:false}@property --tw-sepia{syntax:\"*\";inherits:false}@property --tw-drop-shadow{syntax:\"*\";inherits:false}@property --tw-drop-shadow-color{syntax:\"*\";inherits:false}@property --tw-drop-shadow-alpha{syntax:\"<percentage>\";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:\"*\";inherits:false}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@media (forced-colors:active){[type=checkbox]:checked,[type=radio]:checked{appearance:auto}[type=checkbox]:indeterminate{appearance:auto}[type=checkbox]:checked,[type=checkbox]:indeterminate,[type=radio]:checked{appearance:auto}}@media (hover:hover){.z-button-outlined:hover,.z-button-primary:hover,.z-icon-button-outlined:hover,.z-icon-button-primary:hover,.z-icon-button-text:hover{--tw-brightness:brightness(110%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.z-button-group-item-tab:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.z-button-group-item-tab-unselected:hover{background-color:var(--color-white)}.z-button-group-item-primary-unselected:hover{--tw-brightness:brightness(95%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.z-button-group-item-outlined-unselected:hover{background-color:#e028481a}@supports (color:color-mix(in lab,red,red)){.z-button-group-item-outlined-unselected:hover{background-color:color-mix(in oklab,var(--color-primary)10%,transparent);background-color:color-mix(in srgb,#e0284810%,transparent)}}.hover\\:brightness-110:hover,.z-button-outlined:hover,.z-button-primary:hover,.z-icon-button-outlined:hover,.z-icon-button-primary:hover,.z-icon-button-text:hover{--tw-brightness:brightness(110%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}}@media screen and (min-width:0){.z-max-height{height:calc(100vh - 56px)}}@media screen and (min-width:600px){.z-max-height{height:calc(100vh - 64px)}}";
|
|
8
8
|
|
|
9
9
|
const MasterDataItem = /*@__PURE__*/ proxyCustomElement(class MasterDataItem extends H {
|
|
10
10
|
constructor(registerHost) {
|