@ftlab/one-vue3 0.1.6 → 0.2.1

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.
@@ -1,251 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="BranchesTreeState">
4
- <expand>
5
- <path>
6
- <item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
7
- <item name="LOCAL_ROOT" type="e8cecc67:BranchNodeDescriptor" />
8
- </path>
9
- <path>
10
- <item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
11
- <item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
12
- </path>
13
- <path>
14
- <item name="ROOT" type="e8cecc67:BranchNodeDescriptor" />
15
- <item name="REMOTE_ROOT" type="e8cecc67:BranchNodeDescriptor" />
16
- <item name="GROUP_NODE:origin" type="e8cecc67:BranchNodeDescriptor" />
17
- </path>
18
- </expand>
19
- <select />
20
- </component>
21
- <component name="ChangeListManager">
22
- <list default="true" id="c61f0246-f11e-4148-8bdf-37d779526335" name="默认的" comment="" />
23
- <option name="SHOW_DIALOG" value="false" />
24
- <option name="HIGHLIGHT_CONFLICTS" value="true" />
25
- <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
26
- <option name="LAST_RESOLUTION" value="IGNORE" />
27
- </component>
28
- <component name="Git.Settings">
29
- <option name="RECENT_BRANCH_BY_REPOSITORY">
30
- <map>
31
- <entry key="$PROJECT_DIR$" value="master" />
32
- </map>
33
- </option>
34
- <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
35
- </component>
36
- <component name="ProjectId" id="2S2ck7QSW9EbZrtnpEBpM6b9B5l" />
37
- <component name="ProjectLevelVcsManager">
38
- <ConfirmationsSetting value="2" id="新增" />
39
- </component>
40
- <component name="ProjectViewState">
41
- <option name="hideEmptyMiddlePackages" value="true" />
42
- <option name="showLibraryContents" value="true" />
43
- </component>
44
- <component name="PropertiesComponent">
45
- <property name="ASKED_ADD_EXTERNAL_FILES" value="true" />
46
- <property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
47
- <property name="WebServerToolWindowFactoryState" value="false" />
48
- <property name="last_opened_file_path" value="$PROJECT_DIR$/../oms-bms-web" />
49
- <property name="node.js.detected.package.eslint" value="true" />
50
- <property name="node.js.detected.package.standard" value="true" />
51
- <property name="node.js.detected.package.tslint" value="true" />
52
- <property name="node.js.path.for.package.eslint" value="project" />
53
- <property name="node.js.path.for.package.standard" value="project" />
54
- <property name="node.js.path.for.package.tslint" value="project" />
55
- <property name="node.js.selected.package.eslint" value="(autodetect)" />
56
- <property name="node.js.selected.package.standard" value="" />
57
- <property name="node.js.selected.package.tslint" value="(autodetect)" />
58
- <property name="nodejs_package_manager_path" value="npm" />
59
- <property name="settings.editor.selected.configurable" value="settings.javascript.linters.eslint" />
60
- <property name="ts.external.directory.path" value="D:\Code\one-vue3\node_modules\typescript\lib" />
61
- <property name="vue.rearranger.settings.migration" value="true" />
62
- </component>
63
- <component name="RunAnythingCache">
64
- <option name="myCommands">
65
- <command value="y" />
66
- </option>
67
- </component>
68
- <component name="RunManager" selected="npm.lint">
69
- <configuration name="build" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
70
- <package-json value="$PROJECT_DIR$/package.json" />
71
- <command value="run" />
72
- <scripts>
73
- <script value="build" />
74
- </scripts>
75
- <node-interpreter value="project" />
76
- <envs />
77
- <method v="2" />
78
- </configuration>
79
- <configuration name="lint" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
80
- <package-json value="$PROJECT_DIR$/package.json" />
81
- <command value="run" />
82
- <scripts>
83
- <script value="lint" />
84
- </scripts>
85
- <node-interpreter value="project" />
86
- <envs />
87
- <method v="2" />
88
- </configuration>
89
- <configuration name="serve" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
90
- <package-json value="$PROJECT_DIR$/package.json" />
91
- <command value="run" />
92
- <scripts>
93
- <script value="serve" />
94
- </scripts>
95
- <node-interpreter value="project" />
96
- <envs />
97
- <method v="2" />
98
- </configuration>
99
- <recent_temporary>
100
- <list>
101
- <item itemvalue="npm.serve" />
102
- <item itemvalue="npm.lint" />
103
- <item itemvalue="npm.build" />
104
- <item itemvalue="npm.lint" />
105
- <item itemvalue="npm.build" />
106
- </list>
107
- </recent_temporary>
108
- </component>
109
- <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
110
- <component name="SshConsoleOptionsProvider">
111
- <option name="myEncoding" value="UTF-8" />
112
- </component>
113
- <component name="TaskManager">
114
- <task active="true" id="Default" summary="Default task">
115
- <changelist id="c61f0246-f11e-4148-8bdf-37d779526335" name="默认的" comment="" />
116
- <created>1688348257004</created>
117
- <option name="number" value="Default" />
118
- <option name="presentableId" value="Default" />
119
- <updated>1688348257004</updated>
120
- <workItem from="1688348258109" duration="350000" />
121
- <workItem from="1688362176011" duration="11000" />
122
- <workItem from="1688453176295" duration="4148000" />
123
- <workItem from="1688979362488" duration="1107000" />
124
- <workItem from="1689149012329" duration="370000" />
125
- <workItem from="1689732820589" duration="22000" />
126
- <workItem from="1689928656530" duration="3806000" />
127
- <workItem from="1689990360101" duration="355000" />
128
- <workItem from="1691473384773" duration="692000" />
129
- <workItem from="1691474283537" duration="231000" />
130
- <workItem from="1691560776160" duration="187000" />
131
- <workItem from="1691564046216" duration="1797000" />
132
- <workItem from="1691650117050" duration="811000" />
133
- <workItem from="1691717362496" duration="2136000" />
134
- <workItem from="1691997098515" duration="2456000" />
135
- <workItem from="1692082021632" duration="61000" />
136
- <workItem from="1692172279569" duration="1397000" />
137
- <workItem from="1692173695493" duration="928000" />
138
- <workItem from="1692174700785" duration="967000" />
139
- <workItem from="1692175683650" duration="2657000" />
140
- <workItem from="1694424102453" duration="1394000" />
141
- </task>
142
- <task id="LOCAL-00001" summary="temp">
143
- <created>1692174916181</created>
144
- <option name="number" value="00001" />
145
- <option name="presentableId" value="LOCAL-00001" />
146
- <option name="project" value="LOCAL" />
147
- <updated>1692174916181</updated>
148
- </task>
149
- <task id="LOCAL-00002" summary="1">
150
- <created>1692176162133</created>
151
- <option name="number" value="00002" />
152
- <option name="presentableId" value="LOCAL-00002" />
153
- <option name="project" value="LOCAL" />
154
- <updated>1692176162133</updated>
155
- </task>
156
- <task id="LOCAL-00003" summary="1">
157
- <created>1692177162574</created>
158
- <option name="number" value="00003" />
159
- <option name="presentableId" value="LOCAL-00003" />
160
- <option name="project" value="LOCAL" />
161
- <updated>1692177162574</updated>
162
- </task>
163
- <option name="localTasksCounter" value="4" />
164
- <servers />
165
- </component>
166
- <component name="TypeScriptGeneratedFilesManager">
167
- <option name="version" value="3" />
168
- </component>
169
- <component name="Vcs.Log.Tabs.Properties">
170
- <option name="TAB_STATES">
171
- <map>
172
- <entry key="MAIN">
173
- <value>
174
- <State />
175
- </value>
176
- </entry>
177
- </map>
178
- </option>
179
- <option name="oldMeFiltersMigrated" value="true" />
180
- </component>
181
- <component name="VcsManagerConfiguration">
182
- <option name="ADD_EXTERNAL_FILES_SILENTLY" value="true" />
183
- <MESSAGE value="feat: add default" />
184
- <MESSAGE value="1" />
185
- <option name="LAST_COMMIT_MESSAGE" value="1" />
186
- </component>
187
- <component name="WindowStateProjectService">
188
- <state x="110" y="-992" width="1735" height="848" key="DiffContextDialog" timestamp="1694424495774">
189
- <screen x="0" y="-1080" width="1920" height="1032" />
190
- </state>
191
- <state x="110" y="-992" width="1735" height="848" key="DiffContextDialog/0.0.1920.1032/0.-1080.1920.1032@0.-1080.1920.1032" timestamp="1694424495774" />
192
- <state x="740" y="-809" key="FileChooserDialogImpl" timestamp="1694424909090">
193
- <screen x="0" y="-1080" width="1920" height="1032" />
194
- </state>
195
- <state x="740" y="-809" key="FileChooserDialogImpl/0.0.1920.1032/0.-1080.1920.1032@0.-1080.1920.1032" timestamp="1694424909090" />
196
- <state x="813" y="-665" key="Git.Rebase.Log.Action.NewCommitMessage.Dialog" timestamp="1692176550608">
197
- <screen x="0" y="-1080" width="1920" height="1032" />
198
- </state>
199
- <state x="813" y="-665" key="Git.Rebase.Log.Action.NewCommitMessage.Dialog/0.0.1920.1032/0.-1080.1920.1032@0.-1080.1920.1032" timestamp="1692176550608" />
200
- <state width="1876" height="331" key="GridCell.Tab.0.bottom" timestamp="1692177343802">
201
- <screen x="0" y="-1080" width="1920" height="1032" />
202
- </state>
203
- <state width="1876" height="331" key="GridCell.Tab.0.bottom/0.0.1920.1032/0.-1080.1920.1032@0.-1080.1920.1032" timestamp="1692177343802" />
204
- <state width="1876" height="391" key="GridCell.Tab.0.bottom/0.0.1920.1032@0.0.1920.1032" timestamp="1689990717254" />
205
- <state width="1876" height="331" key="GridCell.Tab.0.center" timestamp="1692177343802">
206
- <screen x="0" y="-1080" width="1920" height="1032" />
207
- </state>
208
- <state width="1876" height="331" key="GridCell.Tab.0.center/0.0.1920.1032/0.-1080.1920.1032@0.-1080.1920.1032" timestamp="1692177343802" />
209
- <state width="1876" height="391" key="GridCell.Tab.0.center/0.0.1920.1032@0.0.1920.1032" timestamp="1689990717254" />
210
- <state width="1876" height="331" key="GridCell.Tab.0.left" timestamp="1692177343801">
211
- <screen x="0" y="-1080" width="1920" height="1032" />
212
- </state>
213
- <state width="1876" height="331" key="GridCell.Tab.0.left/0.0.1920.1032/0.-1080.1920.1032@0.-1080.1920.1032" timestamp="1692177343801" />
214
- <state width="1876" height="391" key="GridCell.Tab.0.left/0.0.1920.1032@0.0.1920.1032" timestamp="1689990717254" />
215
- <state width="1876" height="331" key="GridCell.Tab.0.right" timestamp="1692177343802">
216
- <screen x="0" y="-1080" width="1920" height="1032" />
217
- </state>
218
- <state width="1876" height="331" key="GridCell.Tab.0.right/0.0.1920.1032/0.-1080.1920.1032@0.-1080.1920.1032" timestamp="1692177343802" />
219
- <state width="1876" height="391" key="GridCell.Tab.0.right/0.0.1920.1032@0.0.1920.1032" timestamp="1689990717254" />
220
- <state x="810" y="-863" key="RollbackChangesDialog" timestamp="1692176147661">
221
- <screen x="0" y="-1080" width="1920" height="1032" />
222
- </state>
223
- <state x="810" y="-863" key="RollbackChangesDialog/0.0.1920.1032/0.-1080.1920.1032@0.-1080.1920.1032" timestamp="1692176147661" />
224
- <state x="810" y="217" key="RollbackChangesDialog/0.0.1920.1032@0.0.1920.1032" timestamp="1689990703530" />
225
- <state x="461" y="-920" key="SettingsEditor" timestamp="1692176091453">
226
- <screen x="0" y="-1080" width="1920" height="1032" />
227
- </state>
228
- <state x="461" y="-920" key="SettingsEditor/0.0.1920.1032/0.-1080.1920.1032@0.-1080.1920.1032" timestamp="1692176091453" />
229
- <state x="552" y="-831" key="Vcs.Push.Dialog.v2" timestamp="1692177179635">
230
- <screen x="0" y="-1080" width="1920" height="1032" />
231
- </state>
232
- <state x="552" y="-831" key="Vcs.Push.Dialog.v2/0.0.1920.1032/0.-1080.1920.1032@0.-1080.1920.1032" timestamp="1692177179635" />
233
- <state x="944" y="-855" width="874" height="666" key="find.popup" timestamp="1692176921256">
234
- <screen x="0" y="-1080" width="1920" height="1032" />
235
- </state>
236
- <state x="944" y="-855" width="874" height="666" key="find.popup/0.0.1920.1032/0.-1080.1920.1032@0.-1080.1920.1032" timestamp="1692176921256" />
237
- <state x="781" y="-852" key="git4idea.branch.GitSmartOperationDialog" timestamp="1691717385670">
238
- <screen x="0" y="-1080" width="1920" height="1032" />
239
- </state>
240
- <state x="781" y="-852" key="git4idea.branch.GitSmartOperationDialog/0.0.1920.1032/0.-1080.1920.1032@0.-1080.1920.1032" timestamp="1691717385670" />
241
- <state x="616" y="-301" width="672" height="677" key="run.anything.popup" timestamp="1692176591270">
242
- <screen x="0" y="0" width="1920" height="1032" />
243
- </state>
244
- <state x="616" y="-301" width="672" height="677" key="run.anything.popup/0.0.1920.1032/0.-1080.1920.1032@0.-1080.1920.1032" timestamp="1692176591270" />
245
- <state x="623" y="-857" width="672" height="678" key="search.everywhere.popup" timestamp="1692177243551">
246
- <screen x="0" y="-1080" width="1920" height="1032" />
247
- </state>
248
- <state x="623" y="-857" width="672" height="678" key="search.everywhere.popup/0.0.1920.1032/0.-1080.1920.1032@0.-1080.1920.1032" timestamp="1692177243551" />
249
- <state x="623" y="223" width="672" height="678" key="search.everywhere.popup/0.0.1920.1032@0.0.1920.1032" timestamp="1689990677564" />
250
- </component>
251
- </project>
@@ -1 +0,0 @@
1
- "use strict";var oe=Object.defineProperty,ne=Object.defineProperties;var le=Object.getOwnPropertyDescriptors;var U=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var H=(t,o,n)=>o in t?oe(t,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[o]=n,O=(t,o)=>{for(var n in o||(o={}))se.call(o,n)&&H(t,n,o[n]);if(U)for(var n of U(o))ae.call(o,n)&&H(t,n,o[n]);return t},x=(t,o)=>ne(t,le(o));var Y=(t,o,n)=>new Promise((s,a)=>{var c=r=>{try{i(n.next(r))}catch(p){a(p)}},u=r=>{try{i(n.throw(r))}catch(p){a(p)}},i=r=>r.done?s(r.value):Promise.resolve(r.value).then(c,u);i((n=n.apply(t,o)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-292d39c2.cjs"),e=require("vue");require("pinia");let A;const re=t=>{var o;if(!l.isClient)return 0;if(A!==void 0)return A;const n=document.createElement("div");n.className=`${t}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const s=n.offsetWidth;n.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",n.appendChild(a);const c=a.offsetWidth;return(o=n.parentNode)==null||o.removeChild(n),A=s-c,A},ie=(t,o,n)=>{let s={offsetX:0,offsetY:0};const a=i=>{const r=i.clientX,p=i.clientY,{offsetX:v,offsetY:g}=s,d=t.value.getBoundingClientRect(),h=d.left,y=d.top,m=d.width,V=d.height,D=document.documentElement.clientWidth,N=document.documentElement.clientHeight,P=-h+v,B=-y+g,E=D-h-m+v,S=N-y-V+g,C=T=>{const f=Math.min(Math.max(v+T.clientX-r,P),E),b=Math.min(Math.max(g+T.clientY-p,B),S);s={offsetX:f,offsetY:b},t.value.style.transform=`translate(${l.addUnit(f)}, ${l.addUnit(b)})`},k=()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",k)};document.addEventListener("mousemove",C),document.addEventListener("mouseup",k)},c=()=>{o.value&&t.value&&o.value.addEventListener("mousedown",a)},u=()=>{o.value&&t.value&&o.value.removeEventListener("mousedown",a)};e.onMounted(()=>{e.watchEffect(()=>{n.value?c():u()})}),e.onBeforeUnmount(()=>{u()})};let ce;function ue(t,o=ce){o&&o.active&&o.effects.push(t)}const W=t=>{const o=new Set(t);return o.w=0,o.n=0,o},G=t=>(t.w&M)>0,Z=t=>(t.n&M)>0,de=({deps:t})=>{if(t.length)for(let o=0;o<t.length;o++)t[o].w|=M},fe=t=>{const{deps:o}=t;if(o.length){let n=0;for(let s=0;s<o.length;s++){const a=o[s];G(a)&&!Z(a)?a.delete(t):o[n++]=a,a.w&=~M,a.n&=~M}o.length=n}};let z=0,M=1;const R=30;let w;Symbol(process.env.NODE_ENV!=="production"?"iterate":"");Symbol(process.env.NODE_ENV!=="production"?"Map key iterate":"");class pe{constructor(o,n=null,s){this.fn=o,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,ue(this,s)}run(){if(!this.active)return this.fn();let o=w,n=L;for(;o;){if(o===this)return;o=o.parent}try{return this.parent=w,w=this,L=!0,M=1<<++z,z<=R?de(this):j(this),this.fn()}finally{z<=R&&fe(this),M=1<<--z,w=this.parent,L=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){w===this?this.deferStop=!0:this.active&&(j(this),this.onStop&&this.onStop(),this.active=!1)}}function j(t){const{deps:o}=t;if(o.length){for(let n=0;n<o.length;n++)o[n].delete(t);o.length=0}}let L=!0;function q(t,o){let n=!1;z<=R?Z(t)||(t.n|=M,n=!G(t)):n=!t.has(w),n&&(t.add(w),w.deps.push(t),process.env.NODE_ENV!=="production"&&w.onTrack&&w.onTrack(l.extend({effect:w},o)))}function X(t,o){const n=l.isArray(t)?t:[...t];for(const s of n)s.computed&&K(s,o);for(const s of n)s.computed||K(s,o)}function K(t,o){(t!==w||t.allowRecurse)&&(process.env.NODE_ENV!=="production"&&t.onTrigger&&t.onTrigger(l.extend({effect:t},o)),t.scheduler?t.scheduler():t.run())}new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(l.isSymbol));function F(t){const o=t&&t.__v_raw;return o?F(o):t}function me(t){L&&w&&(t=F(t),process.env.NODE_ENV!=="production"?q(t.dep||(t.dep=W()),{target:t,type:"get",key:"value"}):q(t.dep||(t.dep=W())))}function ve(t,o){t=F(t);const n=t.dep;n&&(process.env.NODE_ENV!=="production"?X(n,{target:t,type:"set",key:"value",newValue:o}):X(n))}class he{constructor(o,n,s,a){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new pe(o,()=>{this._dirty||(this._dirty=!0,ve(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=s}get value(){const o=F(this);return me(o),(o._dirty||!o._cacheable)&&(o._dirty=!1,o._value=o.effect.run()),o._value}set value(o){this._setter(o)}}function ye(t,o,n=!1){let s,a;const c=l.isFunction(t);c?(s=t,a=process.env.NODE_ENV!=="production"?()=>{console.warn("Write operation failed: computed value is readonly")}:l.NOOP):(s=t.get,a=t.set);const u=new he(s,a,c||!a,n);return process.env.NODE_ENV!=="production"&&o&&!n&&(u.effect.onTrack=o.onTrack,u.effect.onTrigger=o.onTrigger),u}const ge=(t,o={})=>{e.isRef(t)||l.throwError("[useLockscreen]","You need to pass a ref param to this function");const n=o.ns||l.useNamespace("popup"),s=ye(()=>n.bm("parent","hidden"));if(!l.isClient||l.hasClass(document.body,s.value))return;let a=0,c=!1,u="0";const i=()=>{setTimeout(()=>{l.removeClass(document==null?void 0:document.body,s.value),c&&document&&(document.body.style.width=u)},200)};e.watch(t,r=>{if(!r){i();return}c=!l.hasClass(document.body,s.value),c&&(u=document.body.style.width),a=re(n.namespace.value);const p=document.documentElement.clientHeight<document.body.scrollHeight,v=l.getStyle(document.body,"overflowY");a>0&&(p||v==="scroll")&&c&&(document.body.style.width=`calc(100% - ${a}px)`),l.addClass(document.body,s.value)}),e.onScopeDispose(()=>i())},J=t=>{if(!t)return{onClick:l.NOOP,onMousedown:l.NOOP,onMouseup:l.NOOP};let o=!1,n=!1;return{onClick:u=>{o&&n&&t(u),o=n=!1},onMousedown:u=>{o=u.target===u.currentTarget},onMouseup:u=>{n=u.target===u.currentTarget}}},Ce=l.buildProps({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:l.definePropType([String,Array,Object])},zIndex:{type:l.definePropType([String,Number])}}),we={click:t=>t instanceof MouseEvent},ke="overlay";var _e=e.defineComponent({name:"ElOverlay",props:Ce,emits:we,setup(t,{slots:o,emit:n}){const s=l.useNamespace(ke),a=r=>{n("click",r)},{onClick:c,onMousedown:u,onMouseup:i}=J(t.customMaskEvent?void 0:a);return()=>t.mask?e.createVNode("div",{class:[s.b(),t.overlayClass],style:{zIndex:t.zIndex},onClick:c,onMousedown:u,onMouseup:i},[e.renderSlot(o,"default")],l.PatchFlags.STYLE|l.PatchFlags.CLASS|l.PatchFlags.PROPS,["onClick","onMouseup","onMousedown"]):e.h("div",{class:t.overlayClass,style:{zIndex:t.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[e.renderSlot(o,"default")])}});const be=_e,Q=Symbol("dialogInjectionKey"),ee=l.buildProps({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:l.iconPropType},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),Ee={close:()=>!0},Se=["aria-label"],De=["id"],Ne=e.defineComponent({name:"ElDialogContent"}),Be=e.defineComponent(x(O({},Ne),{props:ee,emits:Ee,setup(t){const o=t,{t:n}=l.useLocale(),{Close:s}=l.CloseComponents,{dialogRef:a,headerRef:c,bodyId:u,ns:i,style:r}=e.inject(Q),{focusTrapRef:p}=e.inject(l.FOCUS_TRAP_INJECTION_KEY),v=l.composeRefs(p,a),g=e.computed(()=>o.draggable);return ie(a,c,g),(d,h)=>(e.openBlock(),e.createElementBlock("div",{ref:e.unref(v),class:e.normalizeClass([e.unref(i).b(),e.unref(i).is("fullscreen",d.fullscreen),e.unref(i).is("draggable",e.unref(g)),e.unref(i).is("align-center",d.alignCenter),{[e.unref(i).m("center")]:d.center},d.customClass]),style:e.normalizeStyle(e.unref(r)),tabindex:"-1"},[e.createElementVNode("header",{ref_key:"headerRef",ref:c,class:e.normalizeClass(e.unref(i).e("header"))},[e.renderSlot(d.$slots,"header",{},()=>[e.createElementVNode("span",{role:"heading",class:e.normalizeClass(e.unref(i).e("title"))},e.toDisplayString(d.title),3)]),d.showClose?(e.openBlock(),e.createElementBlock("button",{key:0,"aria-label":e.unref(n)("el.dialog.close"),class:e.normalizeClass(e.unref(i).e("headerbtn")),type:"button",onClick:h[0]||(h[0]=y=>d.$emit("close"))},[e.createVNode(e.unref(l.ElIcon),{class:e.normalizeClass(e.unref(i).e("close"))},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.closeIcon||e.unref(s))))]),_:1},8,["class"])],10,Se)):e.createCommentVNode("v-if",!0)],2),e.createElementVNode("div",{id:e.unref(u),class:e.normalizeClass(e.unref(i).e("body"))},[e.renderSlot(d.$slots,"default")],10,De),d.$slots.footer?(e.openBlock(),e.createElementBlock("footer",{key:0,class:e.normalizeClass(e.unref(i).e("footer"))},[e.renderSlot(d.$slots,"footer")],2)):e.createCommentVNode("v-if",!0)],6))}}));var Te=l._export_sfc(Be,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const Me=l.buildProps(x(O({},ee),{appendToBody:{type:Boolean,default:!1},beforeClose:{type:l.definePropType(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}})),Ve={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[l.UPDATE_MODEL_EVENT]:t=>l.isBoolean(t),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},Pe=(t,o)=>{const s=e.getCurrentInstance().emit,{nextZIndex:a}=l.useZIndex();let c="";const u=l.useId(),i=l.useId(),r=e.ref(!1),p=e.ref(!1),v=e.ref(!1),g=e.ref(t.zIndex||a());let d,h;const y=l.useGlobalConfig("namespace",l.defaultNamespace),m=e.computed(()=>{const _={},$=`--${y.value}-dialog`;return t.fullscreen||(t.top&&(_[`${$}-margin-top`]=t.top),t.width&&(_[`${$}-width`]=l.addUnit(t.width))),_}),V=e.computed(()=>t.alignCenter?{display:"flex"}:{});function D(){s("opened")}function N(){s("closed"),s(l.UPDATE_MODEL_EVENT,!1),t.destroyOnClose&&(v.value=!1)}function P(){s("close")}function B(){h==null||h(),d==null||d(),t.openDelay&&t.openDelay>0?{stop:d}=l.useTimeoutFn(()=>k(),t.openDelay):k()}function E(){d==null||d(),h==null||h(),t.closeDelay&&t.closeDelay>0?{stop:h}=l.useTimeoutFn(()=>T(),t.closeDelay):T()}function S(){function _($){$||(p.value=!0,r.value=!1)}t.beforeClose?t.beforeClose(_):E()}function C(){t.closeOnClickModal&&S()}function k(){l.isClient&&(r.value=!0)}function T(){r.value=!1}function f(){s("openAutoFocus")}function b(){s("closeAutoFocus")}function I(_){var $;(($=_.detail)==null?void 0:$.focusReason)==="pointer"&&_.preventDefault()}t.lockScroll&&ge(r);function te(){t.closeOnPressEscape&&S()}return e.watch(()=>t.modelValue,_=>{_?(p.value=!1,B(),v.value=!0,g.value=t.zIndex?g.value++:a(),e.nextTick(()=>{s("open"),o.value&&(o.value.scrollTop=0)})):r.value&&E()}),e.watch(()=>t.fullscreen,_=>{o.value&&(_?(c=o.value.style.transform,o.value.style.transform=""):o.value.style.transform=c)}),e.onMounted(()=>{t.modelValue&&(r.value=!0,v.value=!0,B())}),{afterEnter:D,afterLeave:N,beforeLeave:P,handleClose:S,onModalClick:C,close:E,doClose:T,onOpenAutoFocus:f,onCloseAutoFocus:b,onCloseRequested:te,onFocusoutPrevented:I,titleId:u,bodyId:i,closed:p,style:m,overlayDialogStyle:V,rendered:v,visible:r,zIndex:g}},Ie=["aria-label","aria-labelledby","aria-describedby"],$e=e.defineComponent({name:"ElDialog",inheritAttrs:!1}),Oe=e.defineComponent(x(O({},$e),{props:Me,emits:Ve,setup(t,{expose:o}){const n=t,s=e.useSlots();l.useDeprecated({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},e.computed(()=>!!s.title)),l.useDeprecated({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},e.computed(()=>!!n.customClass));const a=l.useNamespace("dialog"),c=e.ref(),u=e.ref(),i=e.ref(),{visible:r,titleId:p,bodyId:v,style:g,overlayDialogStyle:d,rendered:h,zIndex:y,afterEnter:m,afterLeave:V,beforeLeave:D,handleClose:N,onModalClick:P,onOpenAutoFocus:B,onCloseAutoFocus:E,onCloseRequested:S,onFocusoutPrevented:C}=Pe(n,c);e.provide(Q,{dialogRef:c,headerRef:u,bodyId:v,ns:a,rendered:h,style:g});const k=J(P),T=e.computed(()=>n.draggable&&!n.fullscreen);return o({visible:r,dialogContentRef:i}),(f,b)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body",disabled:!f.appendToBody},[e.createVNode(e.Transition,{name:"dialog-fade",onAfterEnter:e.unref(m),onAfterLeave:e.unref(V),onBeforeLeave:e.unref(D),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(e.unref(be),{"custom-mask-event":"",mask:f.modal,"overlay-class":f.modalClass,"z-index":e.unref(y)},{default:e.withCtx(()=>[e.createElementVNode("div",{role:"dialog","aria-modal":"true","aria-label":f.title||void 0,"aria-labelledby":f.title?void 0:e.unref(p),"aria-describedby":e.unref(v),class:e.normalizeClass(`${e.unref(a).namespace.value}-overlay-dialog`),style:e.normalizeStyle(e.unref(d)),onClick:b[0]||(b[0]=(...I)=>e.unref(k).onClick&&e.unref(k).onClick(...I)),onMousedown:b[1]||(b[1]=(...I)=>e.unref(k).onMousedown&&e.unref(k).onMousedown(...I)),onMouseup:b[2]||(b[2]=(...I)=>e.unref(k).onMouseup&&e.unref(k).onMouseup(...I))},[e.createVNode(e.unref(l.ElFocusTrap),{loop:"",trapped:e.unref(r),"focus-start-el":"container",onFocusAfterTrapped:e.unref(B),onFocusAfterReleased:e.unref(E),onFocusoutPrevented:e.unref(C),onReleaseRequested:e.unref(S)},{default:e.withCtx(()=>[e.unref(h)?(e.openBlock(),e.createBlock(Te,e.mergeProps({key:0,ref_key:"dialogContentRef",ref:i},f.$attrs,{"custom-class":f.customClass,center:f.center,"align-center":f.alignCenter,"close-icon":f.closeIcon,draggable:e.unref(T),fullscreen:f.fullscreen,"show-close":f.showClose,title:f.title,onClose:e.unref(N)}),e.createSlots({header:e.withCtx(()=>[f.$slots.title?e.renderSlot(f.$slots,"title",{key:1}):e.renderSlot(f.$slots,"header",{key:0,close:e.unref(N),titleId:e.unref(p),titleClass:e.unref(a).e("title")})]),default:e.withCtx(()=>[e.renderSlot(f.$slots,"default")]),_:2},[f.$slots.footer?{name:"footer",fn:e.withCtx(()=>[e.renderSlot(f.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):e.createCommentVNode("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,Ie)]),_:3},8,["mask","overlay-class","z-index"]),[[e.vShow,e.unref(r)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}}));var xe=l._export_sfc(Oe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const ze=l.withInstall(xe),Ae=l.buildProps({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:l.definePropType(String),default:"solid"}}),Le=e.defineComponent({name:"ElDivider"}),Fe=e.defineComponent(x(O({},Le),{props:Ae,setup(t){const o=t,n=l.useNamespace("divider"),s=e.computed(()=>n.cssVar({"border-style":o.borderStyle}));return(a,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(n).b(),e.unref(n).m(a.direction)]),style:e.normalizeStyle(e.unref(s)),role:"separator"},[a.$slots.default&&a.direction!=="vertical"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(n).e("text"),e.unref(n).is(a.contentPosition)])},[e.renderSlot(a.$slots,"default")],2)):e.createCommentVNode("v-if",!0)],6))}}));var Re=l._export_sfc(Fe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const Ue=l.withInstall(Re);const He={class:"dialog__title"},Ye=["innerHTML"],We=e.defineComponent({__name:"CheckMessageDialog",emits:["preventHiddenDropdown"],setup(t,{expose:o,emit:n}){const s=e.ref(!1),a=e.inject("authBaseUrl"),c=e.inject("dialogI18n"),u=localStorage.getItem("token")||"",i=e.ref(!1),r=e.ref({}),p={Authorization:`Bearer ${u}`},v=e.computed(()=>`${a||l.configProxy.authBaseUrl||"https://gateway-staging.ftlapp.io"}/api/xpush/imm/userMessage/getUserMsgInfo`),g=y=>Y(this,null,function*(){try{i.value=!0;const m=yield l.axios.get(v.value,{headers:p,params:{msgId:y}});m&&m.data&&(r.value=m.data)}catch(m){console.log(m)}finally{i.value=!1}}),d=e.computed(()=>r.value.immAttachments&&r.value.immAttachments.length!==0),h=y=>{y&&window.open(y,"_blank")};return o({open:y=>{g(y),s.value=!0}}),(y,m)=>{const V=Ue,D=l.ElButton,N=l.ElDropdownItem,P=l.ElDropdownMenu,B=l.ElDropdown,E=ze,S=l.vLoading;return e.openBlock(),e.createBlock(E,{center:"",title:e.unref(c).dialogTitleText,modelValue:e.unref(s),"onUpdate:modelValue":m[1]||(m[1]=C=>e.isRef(s)?s.value=C:null),"append-to-body":"",model:!1,onClosed:m[2]||(m[2]=()=>{y.$emit("preventHiddenDropdown")})},{default:e.withCtx(()=>[e.createElementVNode("header",He,e.toDisplayString(e.unref(r).title),1),e.createVNode(V),e.withDirectives(e.createElementVNode("div",{innerHTML:e.unref(r).content},null,8,Ye),[[S,e.unref(i)]]),e.createElementVNode("footer",{class:e.normalizeClass(["mt15",[e.unref(d)?"f-s-c":"f-c-e"]])},[e.unref(d)?(e.openBlock(),e.createBlock(B,{key:0},{dropdown:e.withCtx(()=>[e.createVNode(P,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).immAttachments,C=>(e.openBlock(),e.createBlock(N,{key:C.fileDownloadUrl,onClick:()=>h(C.fileDownloadUrl)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.fileName),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createVNode(D,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c).downloadText),1)]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(D,{onClick:m[0]||(m[0]=C=>s.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c).cancelButtonText),1)]),_:1})],2)]),_:1},8,["title","modelValue"])}}});const je=l._export_sfc$1(We,[["__scopeId","data-v-b6d5935c"]]);exports.default=je;