zignal-stencil-library 1.1.144 → 1.1.146

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/dist/cjs/autocomplete-address_44.cjs.entry.js +46 -46
  2. package/dist/cjs/{dayjs-DK5xTloK.js → dayjs-BSEUEjDP.js} +0 -5
  3. package/dist/cjs/quick-message-app.cjs.entry.js +2 -2
  4. package/dist/collection/components/autocomplete-address/autocomplete-address.css +1 -1
  5. package/dist/collection/components/autocomplete-multiple-select/autocomplete-multiple-select.css +1 -1
  6. package/dist/collection/components/autocomplete-select/autocomplete-select.css +1 -1
  7. package/dist/collection/components/autocomplete-select/autocomplete-select.js +1 -1
  8. package/dist/collection/components/channel-box/channel-box.css +1 -1
  9. package/dist/collection/components/chat-app/chat-app.css +1 -1
  10. package/dist/collection/components/chat-header/chat-header.css +1 -1
  11. package/dist/collection/components/chat-input/chat-input.css +1 -1
  12. package/dist/collection/components/checkbox-list/checkbox-list.css +1 -1
  13. package/dist/collection/components/dialog-bill-editor/dialog-bill-editor.css +1 -1
  14. package/dist/collection/components/dialog-custom-filter/dialog-custom-filter.css +1 -1
  15. package/dist/collection/components/dialog-editor/dialog-editor.css +1 -1
  16. package/dist/collection/components/dialog-preview-media/dialog-preview-media.css +1 -1
  17. package/dist/collection/components/dialog-search/dialog-search.css +1 -1
  18. package/dist/collection/components/menu-chat-channel/menu-chat-channel.css +1 -1
  19. package/dist/collection/components/menu-chat-type/menu-chat-type.css +1 -1
  20. package/dist/collection/components/menu-chat-type/menu-chat-type.js +3 -3
  21. package/dist/collection/components/menu-list/menu-list.css +1 -1
  22. package/dist/collection/components/message-box/message-box.css +1 -1
  23. package/dist/collection/components/message-content/message-content.css +1 -1
  24. package/dist/collection/components/message-item/message-item.css +1 -1
  25. package/dist/collection/components/message-media/message-media.css +1 -1
  26. package/dist/collection/components/profile-history/profile-history.css +1 -1
  27. package/dist/collection/components/profile-info/profile-info.css +1 -1
  28. package/dist/collection/components/profile-info/profile-info.js +3 -3
  29. package/dist/collection/components/profile-media/profile-media.css +1 -1
  30. package/dist/collection/components/profile-tabs/profile-tabs.css +1 -1
  31. package/dist/collection/components/quick-message-add-template/quick-message-add-template.css +1 -1
  32. package/dist/collection/components/quick-message-app/quick-message-app.css +1 -1
  33. package/dist/collection/components/quick-message-file/quick-message-file.css +1 -1
  34. package/dist/collection/components/quick-message-image/quick-message-image.css +1 -1
  35. package/dist/collection/components/quick-message-modal/quick-message-modal.css +1 -1
  36. package/dist/collection/components/quick-message-template/quick-message-template.css +1 -1
  37. package/dist/collection/components/search-box/search-box.css +1 -1
  38. package/dist/collection/components/status-badge/status-badge.css +1 -1
  39. package/dist/collection/components/tag-list/tag-list.css +1 -1
  40. package/dist/collection/components/tag-or-status-item/tag-or-status-item.css +1 -1
  41. package/dist/collection/components/tag-popper/tag-popper.css +1 -1
  42. package/dist/collection/components/typography-clamp/typography-clamp.css +1 -1
  43. package/dist/collection/components/z-avatar/z-avatar.css +1 -1
  44. package/dist/collection/components/z-dialog/z-dialog.css +1 -1
  45. package/dist/components/autocomplete-address.js +1 -1
  46. package/dist/components/autocomplete-multiple-select.js +1 -1
  47. package/dist/components/autocomplete-select.js +1 -1
  48. package/dist/components/channel-box.js +1 -1
  49. package/dist/components/chat-app.js +45 -45
  50. package/dist/components/chat-header.js +1 -1
  51. package/dist/components/chat-input.js +1 -1
  52. package/dist/components/checkbox-list.js +1 -1
  53. package/dist/components/dialog-bill-editor.js +1 -1
  54. package/dist/components/dialog-custom-filter.js +1 -1
  55. package/dist/components/dialog-editor.js +1 -1
  56. package/dist/components/dialog-preview-media.js +1 -1
  57. package/dist/components/dialog-search.js +1 -1
  58. package/dist/components/menu-chat-channel.js +1 -1
  59. package/dist/components/menu-chat-type.js +1 -1
  60. package/dist/components/menu-list.js +1 -1
  61. package/dist/components/message-box.js +1 -1
  62. package/dist/components/message-content.js +1 -1
  63. package/dist/components/message-item.js +1 -1
  64. package/dist/components/message-media.js +1 -1
  65. package/dist/components/{p-Bqrb_z9r.js → p-7shPb-VR.js} +3 -3
  66. package/dist/components/{p-DJdujxVe.js → p-B1lbZ6CO.js} +2 -2
  67. package/dist/components/{p-CxMNKhnt.js → p-B6WZQYpl.js} +11 -11
  68. package/dist/components/{p-De5Zv_Tk.js → p-BLtocTki.js} +4 -4
  69. package/dist/components/{p-Ctib2Jjc.js → p-BMHYuNRk.js} +18 -18
  70. package/dist/components/{p-CGDQz-CW.js → p-BUcXyf2N.js} +1 -1
  71. package/dist/components/{p-Dmy_NvyE.js → p-BYnT3wKZ.js} +10 -10
  72. package/dist/components/{p-pY1yLd9B.js → p-BijFT7Ed.js} +1 -1
  73. package/dist/components/{p-B0rXbCkU.js → p-BjU8JllK.js} +3 -3
  74. package/dist/components/{p-J-_6-MHE.js → p-BmTmiWwk.js} +1 -1
  75. package/dist/components/{p-DxC32Tm3.js → p-BmtHT-7G.js} +2 -2
  76. package/dist/components/{p-DgGNOsA7.js → p-Bo5yodaL.js} +10 -10
  77. package/dist/components/{p-C64Oh8a9.js → p-Br7G1klJ.js} +2 -2
  78. package/dist/components/{p-BT0XnEbd.js → p-BvWB2lEx.js} +6 -6
  79. package/dist/components/{p-Cdy6PVop.js → p-ByksJVYG.js} +1 -1
  80. package/dist/components/{p-B_EDCfzW.js → p-C6OtJiqv.js} +7 -7
  81. package/dist/components/{p-B9RQoH2A.js → p-C8_9J8Sz.js} +2 -2
  82. package/dist/components/{p-sZrPmPCC.js → p-CBQ6mt94.js} +9 -9
  83. package/dist/components/{p-CoUtkbfj.js → p-CFRyNp7_.js} +7 -7
  84. package/dist/components/{p-UhZOQVu8.js → p-CHzCM16q.js} +2 -2
  85. package/dist/components/{p-CeVV0ptJ.js → p-CJCXbpok.js} +3 -3
  86. package/dist/components/{p-TI13HCsn.js → p-CKek0cxe.js} +3 -3
  87. package/dist/components/{p-_0c-59tR.js → p-CL3LLJQ6.js} +5 -5
  88. package/dist/components/{p-CWtPpOBT.js → p-CX-dvB7Q.js} +2 -2
  89. package/dist/components/{p-wMJr4g3K.js → p-CZ9Strah.js} +1 -1
  90. package/dist/components/{p-BBtWf8nG.js → p-CZFrZOUS.js} +2 -2
  91. package/dist/components/{p-Bk0Uzsyt.js → p-CfkBMFOW.js} +24 -24
  92. package/dist/components/{p-BdGJ6MDW.js → p-CiIp03c0.js} +2 -2
  93. package/dist/components/{p-D93wPIC3.js → p-CjxHbUhu.js} +1 -5
  94. package/dist/components/{p-D86vkZJp.js → p-Ct7LKc-K.js} +8 -8
  95. package/dist/components/{p-Crv9K_cM.js → p-Cu-TzLi7.js} +1 -1
  96. package/dist/components/{p-DGCwmveI.js → p-CymibJ4D.js} +3 -3
  97. package/dist/components/{p-Cx2hr12G.js → p-D1KBnYsy.js} +3 -3
  98. package/dist/components/{p-EBl_-Yjv.js → p-D1yRqZGX.js} +3 -3
  99. package/dist/components/{p-DeLRW65o.js → p-D3oXF6ir.js} +2 -2
  100. package/dist/components/{p-DHb54V3W.js → p-D4RIWn5d.js} +16 -16
  101. package/dist/components/{p-DRlIEiqi.js → p-D8BzlnbC.js} +3 -3
  102. package/dist/components/{p-DixUhg-k.js → p-D9nmk5mt.js} +1 -1
  103. package/dist/components/{p-58d7ZTnt.js → p-DHav3rKr.js} +2 -2
  104. package/dist/components/{p-AJGpwcrT.js → p-DSxfNu_y.js} +1 -1
  105. package/dist/components/{p-CGmYhVxN.js → p-DXf9j5Kz.js} +1 -1
  106. package/dist/components/{p-DZu3aGyL.js → p-DZoKEX1l.js} +3 -3
  107. package/dist/components/{p-yrcJ6KbL.js → p-DpViaZIk.js} +1 -1
  108. package/dist/components/{p-CskjbbI3.js → p-DsArOYy3.js} +10 -10
  109. package/dist/components/{p-BkO9JOuA.js → p-Dt2ZMz3C.js} +1 -1
  110. package/dist/components/{p-q0d0ZnEw.js → p-DxuwtKFG.js} +2 -2
  111. package/dist/components/{p-mRPL0yOg.js → p-Y0ZsywmW.js} +4 -4
  112. package/dist/components/{p-BU1D_jM1.js → p-jFXeVuEx.js} +4 -4
  113. package/dist/components/{p--mc34v9O.js → p-lHID1Wbz.js} +6 -6
  114. package/dist/components/{p-ukNx5Rs-.js → p-oB31Dd2h.js} +15 -15
  115. package/dist/components/{p-Pm7T3Vt0.js → p-uDTLu3vv.js} +1 -1
  116. package/dist/components/profile-history.js +1 -1
  117. package/dist/components/profile-info.js +1 -1
  118. package/dist/components/profile-media.js +1 -1
  119. package/dist/components/profile-tabs.js +1 -1
  120. package/dist/components/quick-message-add-template.js +1 -1
  121. package/dist/components/quick-message-app.js +11 -11
  122. package/dist/components/quick-message-button-content.js +1 -1
  123. package/dist/components/quick-message-file.js +1 -1
  124. package/dist/components/quick-message-image-content.js +1 -1
  125. package/dist/components/quick-message-image.js +1 -1
  126. package/dist/components/quick-message-menu-list-content.js +1 -1
  127. package/dist/components/quick-message-modal.js +1 -1
  128. package/dist/components/quick-message-template.js +1 -1
  129. package/dist/components/quick-message-video-content.js +1 -1
  130. package/dist/components/search-box.js +1 -1
  131. package/dist/components/status-badge.js +1 -1
  132. package/dist/components/summarize-message-section.js +1 -1
  133. package/dist/components/tag-list.js +1 -1
  134. package/dist/components/tag-or-status-item.js +1 -1
  135. package/dist/components/tag-popper.js +1 -1
  136. package/dist/components/typography-clamp.js +1 -1
  137. package/dist/components/user-info-section.js +1 -1
  138. package/dist/components/z-avatar.js +1 -1
  139. package/dist/components/z-dialog.js +1 -1
  140. package/dist/esm/autocomplete-address_44.entry.js +46 -46
  141. package/dist/esm/{dayjs-17PiLdqV.js → dayjs-CudFbPUo.js} +1 -5
  142. package/dist/esm/quick-message-app.entry.js +2 -2
  143. package/dist/zignal-stencil-library/p-3c288e2f.entry.js +2 -0
  144. package/dist/zignal-stencil-library/p-QJh7p40E.js +1 -0
  145. package/dist/zignal-stencil-library/{p-7376f2ec.entry.js → p-ec1daa2b.entry.js} +1 -1
  146. package/dist/zignal-stencil-library/zignal-stencil-library.esm.js +1 -1
  147. package/package.json +1 -1
  148. package/dist/zignal-stencil-library/p-3a08f385.entry.js +0 -2
  149. package/dist/zignal-stencil-library/p-Cmzc9e1g.js +0 -1
@@ -1 +0,0 @@
1
- import{i as t}from"./p-B3nb31xy.js";import{g as n,f as r}from"./p-NR-FjQmT.js";function e(){return t.t}const i=(t,n=!1)=>{let r="#000";const e=t.includes("rgb")?"rgb":"hex";"hex"===e?r=t:"rgb"===e&&(r="#"+(t.match(/\d+/g)||[]).map((t=>{const n=parseInt(t,10).toString(16);return 1===n.length?"0"+n:n})).join(""));const i=(t=>.299*parseInt(t.substring(1,3),16)+.587*parseInt(t.substring(3,5),16)+.114*parseInt(t.substring(5,7),16))(r);return n?i>128?"#fff":"#000":i>128?"#000":"#fff"};function s(){return`#${Math.floor(16777215*Math.random()).toString(16).padStart(6,"0")}`}function u(t){const n=new DataTransfer;return t.forEach(((t,r)=>{const e=t.split(","),i=e[0].match(/:(.*?);/),s=i?i[1]:"image/png",u=atob(e[1]);let a=u.length;const o=new Uint8Array(a);for(;a--;)o[a]=u.charCodeAt(a);const h=new File([o],`image${r}.png`,{type:s});n.items.add(h)})),n.files}const a=t=>(["e","E","+","-","ArrowDown"].includes(t.key)||"ArrowDown"===t.key&&(0===parseInt(t.target.value)||""===t.target.value))&&t.preventDefault(),o=t=>!("isConnected"in t)||t.isConnected,h=(()=>{let t;return(...n)=>{t&&clearTimeout(t),t=setTimeout((()=>{t=0,(t=>{for(let n of t.keys())t.set(n,t.get(n).filter(o))})(...n)}),2e3)}})(),c=t=>"function"==typeof t?t():t,f=(t,n)=>{const r=t.indexOf(n);r>=0&&(t[r]=t[t.length-1],t.length--)},d=(t,e)=>{const i=((t,n=(t,n)=>t!==n)=>{const r=c(t);let e=new Map(Object.entries(r??{}));const i={dispose:[],get:[],set:[],reset:[]},s=new Map,u=()=>{e=new Map(Object.entries(c(t)??{})),i.reset.forEach((t=>t()))},a=t=>(i.get.forEach((n=>n(t))),e.get(t)),o=(t,r)=>{const s=e.get(t);n(r,s,t)&&(e.set(t,r),i.set.forEach((n=>n(t,r,s))))},h="undefined"==typeof Proxy?{}:new Proxy(r,{get:(t,n)=>a(n),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(t,n)=>e.has(n),set:(t,n,r)=>(o(n,r),!0)}),d=(t,n)=>(i[t].push(n),()=>{f(i[t],n)});return{state:h,get:a,set:o,on:d,onChange:(n,r)=>{const e=(t,e)=>{t===n&&r(e)},i=()=>r(c(t)[n]),u=d("set",e),a=d("reset",i);return s.set(r,{setHandler:e,resetHandler:i,propName:n}),()=>{u(),a(),s.delete(r)}},use:(...t)=>{const n=t.reduce(((t,n)=>(n.set&&t.push(d("set",n.set)),n.get&&t.push(d("get",n.get)),n.reset&&t.push(d("reset",n.reset)),n.dispose&&t.push(d("dispose",n.dispose)),t)),[]);return()=>n.forEach((t=>t()))},dispose:()=>{i.dispose.forEach((t=>t())),u()},reset:u,forceUpdate:t=>{const n=e.get(t);i.set.forEach((r=>r(t,n,n)))},removeListener:(t,n)=>{const r=s.get(n);r&&r.propName===t&&(f(i.set,r.setHandler),f(i.reset,r.resetHandler),s.delete(n))}}})(t,e);return i.use((()=>{if("function"!=typeof n)return{};const t=new Map;return{dispose:()=>t.clear(),get:r=>{const e=n();e&&((t,n,r)=>{const e=t.get(n);e?e.includes(r)||e.push(r):t.set(n,[r])})(t,r,e)},set:n=>{const e=t.get(n);e&&t.set(n,e.filter(r)),h(t)},reset:()=>{t.forEach((t=>t.forEach(r))),h(t)}}})()),i},l=d({language:"en",theme:"light",businessId:null,shopId:null,accessToken:null,isProduction:!1,timeZone:null,translationSettings:{is_auto:!1,target_language:null,exclude_languages:[]},isNotConnected:!1,connectionList:[],memberList:[]}),m=d({messages:[],reads:[],loadedKeys:new Set,readsMap:{}}),M=d({filterType:"quick"}),v=d({statuses:[]}),Y=d({tags:[]}),_=d({chats:[],loadedKeys:new Set}),g=d({user:null}),y=d({userAddress:null}),D=d({selectedChat:null,isSyncingTag:!1,isSyncingMessage:!1}),p=d({selectedMessageToReply:null}),w=d({isMobile:!1}),S=d({isShow:!1}),b=d({filters:[],selectedFilter:null,loading:!1});var H="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function T(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var k,$={exports:{}};function L(){return k||(k=1,$.exports=function(){var t=6e4,n=36e5,r="millisecond",e="second",i="minute",s="hour",u="day",a="week",o="month",h="quarter",c="year",f="date",d="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var n=["th","st","nd","rd"],r=t%100;return"["+t+(n[(r-20)%10]||n[r]||n[0])+"]"}},v=function(t,n,r){var e=String(t);return!e||e.length>=n?t:""+Array(n+1-e.length).join(r)+t},Y={s:v,z:function(t){var n=-t.utcOffset(),r=Math.abs(n),e=Math.floor(r/60),i=r%60;return(n<=0?"+":"-")+v(e,2,"0")+":"+v(i,2,"0")},m:function t(n,r){if(n.date()<r.date())return-t(r,n);var e=12*(r.year()-n.year())+(r.month()-n.month()),i=n.clone().add(e,o),s=r-i<0,u=n.clone().add(e+(s?-1:1),o);return+(-(e+(r-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:o,y:c,w:a,d:u,D:f,h:s,m:i,s:e,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},_="en",g={};g[_]=M;var y="$isDayjsObject",D=function(t){return t instanceof b||!(!t||!t[y])},p=function t(n,r,e){var i;if(!n)return _;if("string"==typeof n){var s=n.toLowerCase();g[s]&&(i=s),r&&(g[s]=r,i=s);var u=n.split("-");if(!i&&u.length>1)return t(u[0])}else{var a=n.name;g[a]=n,i=a}return!e&&i&&(_=i),i||!e&&_},w=function(t,n){if(D(t))return t.clone();var r="object"==typeof n?n:{};return r.date=t,r.args=arguments,new b(r)},S=Y;S.l=p,S.i=D,S.w=function(t,n){return w(t,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var b=function(){function M(t){this.$L=p(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[y]=!0}var v=M.prototype;return v.parse=function(t){this.$d=function(t){var n=t.date,r=t.utc;if(null===n)return new Date(NaN);if(S.u(n))return new Date;if(n instanceof Date)return new Date(n);if("string"==typeof n&&!/Z$/i.test(n)){var e=n.match(l);if(e){var i=e[2]-1||0,s=(e[7]||"0").substring(0,3);return r?new Date(Date.UTC(e[1],i,e[3]||1,e[4]||0,e[5]||0,e[6]||0,s)):new Date(e[1],i,e[3]||1,e[4]||0,e[5]||0,e[6]||0,s)}}return new Date(n)}(t),this.init()},v.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},v.$utils=function(){return S},v.isValid=function(){return!(this.$d.toString()===d)},v.isSame=function(t,n){var r=w(t);return this.startOf(n)<=r&&r<=this.endOf(n)},v.isAfter=function(t,n){return w(t)<this.startOf(n)},v.isBefore=function(t,n){return this.endOf(n)<w(t)},v.$g=function(t,n,r){return S.u(t)?this[n]:this.set(r,t)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(t,n){var r=this,h=!!S.u(n)||n,d=S.p(t),l=function(t,n){var e=S.w(r.$u?Date.UTC(r.$y,n,t):new Date(r.$y,n,t),r);return h?e:e.endOf(u)},m=function(t,n){return S.w(r.toDate()[t].apply(r.toDate("s"),(h?[0,0,0,0]:[23,59,59,999]).slice(n)),r)},M=this.$W,v=this.$M,Y=this.$D,_="set"+(this.$u?"UTC":"");switch(d){case c:return h?l(1,0):l(31,11);case o:return h?l(1,v):l(0,v+1);case a:var g=this.$locale().weekStart||0,y=(M<g?M+7:M)-g;return l(h?Y-y:Y+(6-y),v);case u:case f:return m(_+"Hours",0);case s:return m(_+"Minutes",1);case i:return m(_+"Seconds",2);case e:return m(_+"Milliseconds",3);default:return this.clone()}},v.endOf=function(t){return this.startOf(t,!1)},v.$set=function(t,n){var a,h=S.p(t),d="set"+(this.$u?"UTC":""),l=(a={},a[u]=d+"Date",a[f]=d+"Date",a[o]=d+"Month",a[c]=d+"FullYear",a[s]=d+"Hours",a[i]=d+"Minutes",a[e]=d+"Seconds",a[r]=d+"Milliseconds",a)[h],m=h===u?this.$D+(n-this.$W):n;if(h===o||h===c){var M=this.clone().set(f,1);M.$d[l](m),M.init(),this.$d=M.set(f,Math.min(this.$D,M.daysInMonth())).$d}else l&&this.$d[l](m);return this.init(),this},v.set=function(t,n){return this.clone().$set(t,n)},v.get=function(t){return this[S.p(t)]()},v.add=function(r,h){var f,d=this;r=Number(r);var l=S.p(h),m=function(t){var n=w(d);return S.w(n.date(n.date()+Math.round(t*r)),d)};if(l===o)return this.set(o,this.$M+r);if(l===c)return this.set(c,this.$y+r);if(l===u)return m(1);if(l===a)return m(7);var M=(f={},f[i]=t,f[s]=n,f[e]=1e3,f)[l]||1,v=this.$d.getTime()+r*M;return S.w(v,this)},v.subtract=function(t,n){return this.add(-1*t,n)},v.format=function(t){var n=this,r=this.$locale();if(!this.isValid())return r.invalidDate||d;var e=t||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),s=this.$H,u=this.$m,a=this.$M,o=r.weekdays,h=r.months,c=function(t,r,i,s){return t&&(t[r]||t(n,e))||i[r].slice(0,s)},f=function(t){return S.s(s%12||12,t,"0")},l=r.meridiem||function(t,n,r){var e=t<12?"AM":"PM";return r?e.toLowerCase():e};return e.replace(m,(function(t,e){return e||function(t){switch(t){case"YY":return String(n.$y).slice(-2);case"YYYY":return S.s(n.$y,4,"0");case"M":return a+1;case"MM":return S.s(a+1,2,"0");case"MMM":return c(r.monthsShort,a,h,3);case"MMMM":return c(h,a);case"D":return n.$D;case"DD":return S.s(n.$D,2,"0");case"d":return String(n.$W);case"dd":return c(r.weekdaysMin,n.$W,o,2);case"ddd":return c(r.weekdaysShort,n.$W,o,3);case"dddd":return o[n.$W];case"H":return String(s);case"HH":return S.s(s,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return l(s,u,!0);case"A":return l(s,u,!1);case"m":return String(u);case"mm":return S.s(u,2,"0");case"s":return String(n.$s);case"ss":return S.s(n.$s,2,"0");case"SSS":return S.s(n.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,f,d){var l,m=this,M=S.p(f),v=w(r),Y=(v.utcOffset()-this.utcOffset())*t,_=this-v,g=function(){return S.m(m,v)};switch(M){case c:l=g()/12;break;case o:l=g();break;case h:l=g()/3;break;case a:l=(_-Y)/6048e5;break;case u:l=(_-Y)/864e5;break;case s:l=_/n;break;case i:l=_/t;break;case e:l=_/1e3;break;default:l=_}return d?l:S.a(l)},v.daysInMonth=function(){return this.endOf(o).$D},v.$locale=function(){return g[this.$L]},v.locale=function(t,n){if(!t)return this.$L;var r=this.clone(),e=p(t,n,!0);return e&&(r.$L=e),r},v.clone=function(){return S.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},M}(),H=b.prototype;return w.prototype=H,[["$ms",r],["$s",e],["$m",i],["$H",s],["$W",u],["$M",o],["$y",c],["$D",f]].forEach((function(t){H[t[1]]=function(n){return this.$g(n,t[0],t[1])}})),w.extend=function(t,n){return t.$i||(t(n,b,w),t.$i=!0),w},w.locale=p,w.isDayjs=D,w.unix=function(t){return w(1e3*t)},w.en=g[_],w.Ls=g,w.p={},w}()),$.exports}var j,x,A,I,N,Z,P,O,C=T(L()),F={exports:{}},U=T((j||(j=1,F.exports=(x="minute",A=/[+-]\d\d(?::?\d\d)?/g,I=/([+-]|\d\d)/g,function(t,n,r){var e=n.prototype;r.utc=function(t){return new n({date:t,utc:!0,args:arguments})},e.utc=function(t){var n=r(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),x):n},e.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var i=e.parse;e.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),i.call(this,t)};var s=e.init;e.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else s.call(this)};var u=e.utcOffset;e.utcOffset=function(t,n){var r=this.$utils().u;if(r(t))return this.$u?0:r(this.$offset)?u.call(this):this.$offset;if("string"==typeof t&&(t=function(t){void 0===t&&(t="");var n=t.match(A);if(!n)return null;var r=(""+n[0]).match(I)||["-",0,0],e=60*+r[1]+ +r[2];return 0===e?0:"+"===r[0]?e:-e}(t),null===t))return this;var e=Math.abs(t)<=16?60*t:t;if(0===e)return this.utc(n);var i=this.clone();if(n)return i.$offset=e,i.$u=!1,i;var s=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(i=this.local().add(e+s,x)).$offset=e,i.$x.$localOffset=s,i};var a=e.format;e.format=function(t){return a.call(this,t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":""))},e.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},e.isUTC=function(){return!!this.$u},e.toISOString=function(){return this.toDate().toISOString()},e.toString=function(){return this.toDate().toUTCString()};var o=e.toDate;e.toDate=function(t){return"s"===t&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():o.call(this)};var h=e.diff;e.diff=function(t,n,e){if(t&&this.$u===t.$u)return h.call(this,t,n,e);var i=this.local(),s=r(t).local();return h.call(i,s,n,e)}})),F.exports)),q={exports:{}},z=(N||(N=1,q.exports=function(){var t={year:0,month:1,day:2,hour:3,minute:4,second:5},n={};return function(r,e,i){var s,u=function(t,r,e){void 0===e&&(e={});var i=new Date(t),s=function(t,r){void 0===r&&(r={});var e=r.timeZoneName||"short",i=t+"|"+e,s=n[i];return s||(s=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:e}),n[i]=s),s}(r,e);return s.formatToParts(i)},a=function(n,r){for(var e=u(n,r),s=[],a=0;a<e.length;a+=1){var o=e[a],h=t[o.type];h>=0&&(s[h]=parseInt(o.value,10))}var c=s[3],f=+n;return(i.utc(s[0]+"-"+s[1]+"-"+s[2]+" "+(24===c?0:c)+":"+s[4]+":"+s[5]+":000").valueOf()-(f-=f%1e3))/6e4},o=e.prototype;o.tz=function(t,n){void 0===t&&(t=s);var r,e=this.utcOffset(),u=this.toDate(),a=u.toLocaleString("en-US",{timeZone:t}),o=Math.round((u-new Date(a))/1e3/60),h=15*-Math.round(u.getTimezoneOffset()/15)-o;if(Number(h)){if(r=i(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(h,!0),n){var c=r.utcOffset();r=r.add(e-c,"minute")}}else r=this.utcOffset(0,n);return r.$x.$timezone=t,r},o.offsetName=function(t){var n=this.$x.$timezone||i.tz.guess(),r=u(this.valueOf(),n,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return r&&r.value};var h=o.startOf;o.startOf=function(t,n){if(!this.$x||!this.$x.$timezone)return h.call(this,t,n);var r=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return h.call(r,t,n).tz(this.$x.$timezone,!0)},i.tz=function(t,n,r){var e=r&&n,u=r||n||s,o=a(+i(),u);if("string"!=typeof t)return i(t).tz(u);var h=function(t,n,r){var e=t-60*n*1e3,i=a(e,r);if(n===i)return[e,n];var s=a(e-=60*(i-n)*1e3,r);return i===s?[e,i]:[t-60*Math.min(i,s)*1e3,Math.max(i,s)]}(i.utc(t,e).valueOf(),o,u),c=h[1],f=i(h[0]).utcOffset(c);return f.$x.$timezone=u,f},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(t){s=t}}}()),q.exports),J=T(z),K={exports:{}},W=(Z||(Z=1,K.exports=function(){var t,n,r=1e3,e=6e4,i=36e5,s=864e5,u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,a=31536e6,o=2628e6,h=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,c={years:a,months:o,days:s,hours:i,minutes:e,seconds:r,milliseconds:1,weeks:6048e5},f=function(t){return t instanceof _},d=function(t,n,r){return new _(t,r,n.$l)},l=function(t){return n.p(t)+"s"},m=function(t){return t<0},M=function(t){return m(t)?Math.ceil(t):Math.floor(t)},v=function(t){return Math.abs(t)},Y=function(t,n){return t?m(t)?{negative:!0,format:""+v(t)+n}:{negative:!1,format:""+t+n}:{negative:!1,format:""}},_=function(){function m(t,n,r){var e=this;if(this.$d={},this.$l=r,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),n)return d(t*c[l(n)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach((function(n){e.$d[l(n)]=t[n]})),this.calMilliseconds(),this;if("string"==typeof t){var i=t.match(h);if(i){var s=i.slice(2).map((function(t){return null!=t?Number(t):0}));return this.$d.years=s[0],this.$d.months=s[1],this.$d.weeks=s[2],this.$d.days=s[3],this.$d.hours=s[4],this.$d.minutes=s[5],this.$d.seconds=s[6],this.calMilliseconds(),this}}return this}var v=m.prototype;return v.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce((function(n,r){return n+(t.$d[r]||0)*c[r]}),0)},v.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=M(t/a),this.$d.months=M((t%=a)/o),this.$d.days=M((t%=o)/s),this.$d.hours=M((t%=s)/i),this.$d.minutes=M((t%=i)/e),this.$d.seconds=M((t%=e)/r),this.$d.milliseconds=t%=r},v.toISOString=function(){var t=Y(this.$d.years,"Y"),n=Y(this.$d.months,"M"),r=+this.$d.days||0;this.$d.weeks&&(r+=7*this.$d.weeks);var e=Y(r,"D"),i=Y(this.$d.hours,"H"),s=Y(this.$d.minutes,"M"),u=this.$d.seconds||0;this.$d.milliseconds&&(u+=this.$d.milliseconds/1e3,u=Math.round(1e3*u)/1e3);var a=Y(u,"S"),o=(t.negative||n.negative||e.negative||i.negative||s.negative||a.negative?"-":"")+"P"+t.format+n.format+e.format+(i.format||s.format||a.format?"T":"")+i.format+s.format+a.format;return"P"===o||"-P"===o?"P0D":o},v.toJSON=function(){return this.toISOString()},v.format=function(t){var r=t||"YYYY-MM-DDTHH:mm:ss",e={Y:this.$d.years,YY:n.s(this.$d.years,2,"0"),YYYY:n.s(this.$d.years,4,"0"),M:this.$d.months,MM:n.s(this.$d.months,2,"0"),D:this.$d.days,DD:n.s(this.$d.days,2,"0"),H:this.$d.hours,HH:n.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:n.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:n.s(this.$d.seconds,2,"0"),SSS:n.s(this.$d.milliseconds,3,"0")};return r.replace(u,(function(t,n){return n||String(e[t])}))},v.as=function(t){return this.$ms/c[l(t)]},v.get=function(t){var n=this.$ms,r=l(t);return"milliseconds"===r?n%=1e3:n="weeks"===r?M(n/c[r]):this.$d[r],n||0},v.add=function(t,n,r){var e;return e=n?t*c[l(n)]:f(t)?t.$ms:d(t,this).$ms,d(this.$ms+e*(r?-1:1),this)},v.subtract=function(t,n){return this.add(t,n,!0)},v.locale=function(t){var n=this.clone();return n.$l=t,n},v.clone=function(){return d(this.$ms,this)},v.humanize=function(n){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!n)},v.valueOf=function(){return this.asMilliseconds()},v.milliseconds=function(){return this.get("milliseconds")},v.asMilliseconds=function(){return this.as("milliseconds")},v.seconds=function(){return this.get("seconds")},v.asSeconds=function(){return this.as("seconds")},v.minutes=function(){return this.get("minutes")},v.asMinutes=function(){return this.as("minutes")},v.hours=function(){return this.get("hours")},v.asHours=function(){return this.as("hours")},v.days=function(){return this.get("days")},v.asDays=function(){return this.as("days")},v.weeks=function(){return this.get("weeks")},v.asWeeks=function(){return this.as("weeks")},v.months=function(){return this.get("months")},v.asMonths=function(){return this.as("months")},v.years=function(){return this.get("years")},v.asYears=function(){return this.as("years")},m}(),g=function(t,n,r){return t.add(n.years()*r,"y").add(n.months()*r,"M").add(n.days()*r,"d").add(n.hours()*r,"h").add(n.minutes()*r,"m").add(n.seconds()*r,"s").add(n.milliseconds()*r,"ms")};return function(r,e,i){t=i,n=i().$utils(),i.duration=function(t,n){var r=i.locale();return d(t,{$l:r},n)},i.isDuration=f;var s=e.prototype.add,u=e.prototype.subtract;e.prototype.add=function(t,n){return f(t)?g(this,t,1):s.bind(this)(t,n)},e.prototype.subtract=function(t,n){return f(t)?g(this,t,-1):u.bind(this)(t,n)}}}()),K.exports),B=T(W),Q={exports:{}},R=(P||(P=1,Q.exports=function(t,n,r){n.prototype.isBetween=function(t,n,e,i){var s=r(t),u=r(n),a="("===(i=i||"()")[0],o=")"===i[1];return(a?this.isAfter(s,e):!this.isBefore(s,e))&&(o?this.isBefore(u,e):!this.isAfter(u,e))||(a?this.isBefore(s,e):!this.isAfter(s,e))&&(o?this.isAfter(u,e):!this.isBefore(u,e))}}),Q.exports),E=T(R);O||(O=1,function(){var t=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(L()),n={name:"th",weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"},ordinal:function(t){return t+"."}};t.default.locale(n,null,!0)}()),C.extend(U),C.extend(J),C.extend(B),C.extend(E);const G=t=>C(t).isValid()?C(t).tz().format("HH:mm"):"",V=t=>C(t).isValid()?C(t).tz().format("DD/MM/YYYY"):"",X=t=>C().tz().format("DD MMM YYYY")===C(t).tz().format("DD MMM YYYY"),tt=t=>C(t).isValid()?C(t).tz().format("DD MMM YYYY"):"",nt=t=>C(t).isValid()?C(t).tz().format("DD MMM YYYY HH:mm"):"",rt=t=>{C.locale(t)},et=t=>{C.tz.setDefault(t)};export{tt as A,V as B,s as C,et as a,y as b,l as c,H as d,T as e,d as f,i as g,_ as h,M as i,b as j,v as k,D as l,X as m,G as n,nt as o,S as p,m as q,w as r,rt as s,Y as t,e as u,C as v,g as w,p as x,u as y,a as z}