Files
ccdi/doc/other/纪检初核系统-离线演示包/mb-proto2/4.ekpaa-vendor-4a8c0d8af0989de4a89f.js
2026-01-29 22:03:42 +08:00

8 lines
2.4 MiB

try{let He=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},ee=new He.Error().stack;ee&&(He._sentryDebugIds=He._sentryDebugIds||{},He._sentryDebugIds[ee]="e0a5f8a9-5802-4441-9eaa-06808b42d79c",He._sentryDebugIdIdentifier="sentry-dbid-e0a5f8a9-5802-4441-9eaa-06808b42d79c")}catch(He){}{let He=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};He.SENTRY_RELEASE={id:"22.14.4"}}(self.webpackChunk_mb2024_mb_proto=self.webpackChunk_mb2024_mb_proto||[]).push([[652],{34:(He,ee,e)=>{"use strict";e.d(ee,{BT:()=>c,YD:()=>o,gd:()=>r});var n=e(47695);function r(I){const u=document.querySelector(I);if(!u)return null;const{top:d,left:C,width:h,height:i}=u.getBoundingClientRect();return{x:C,y:d,width:h,height:i}}function c(I){return!I||(I==null?void 0:I.length)<1?[]:I.filter(u=>!!u).map(u=>new Promise((d,C)=>{const h=new Image;h.src=u,h.onload=()=>d(!0),h.onerror=()=>C(new Error("[NO SENTRY] failed with loading image "+u))}))}const o=I=>{var u,d;let{selectedCids:C,guideType:h,onCondition:i}=I;if(!((u=MB)!=null&&(u=u.user)!=null&&u.id)||(d=MB)!=null&&(d=d.commonGuideHelper)!=null&&d.checkGuideHasShown(h))return;const f=(0,n.yX)();if(f!=null&&f.isCompleted&&(C==null?void 0:C.length)===1){const s=sdkStore.getHotItem(C[0]);if(i(s.hotAttr)){var p;const l=(p=document)==null?void 0:p.querySelector('.group-list .tree-node[data-cid="'+s.key+'"]');if(!l)return;new Promise(_=>{l.classList.add(h),_()}).then(()=>{MB.commonGuideHelper.checkGuideHasShown(h)||MB.commonGuideHelper.tryToShowGuide(h)})}}}},175:(He,ee,e)=>{"use strict";e.d(ee,{On:()=>v,wm:()=>S,Z8:()=>t});var n=e(70422),r=e(4235),c=e(89002),o=e(39563),I=e(86594),u=e(51320),d=e(20089),C=e(43838),h=e(13235);const i={fontSize:"font-size",lineHeight:"line-height",textDecoration:"text-decoration",fontStyle:"font-style"},f=(w,k)=>{const W={};if(w){const{appearance:G,text:$}=w;if(G){const P=(0,I.Dy)(G,k.appearance),{background:E}=P;E&&(W.background=E[1])}if($){const P=(0,I.Dy)($,k.text);Object.entries(P).forEach(E=>{let[H,O]=E;["fontSize","lineHeight","padding"].includes(H)?W[i[H]||H]=O+"px":H==="boldType"?W["font-weight"]=O?"bold":"normal":H==="ha"?W["text-align"]=O:H==="va"?W["align-items"]=O:H==="textColor"?W.color=(0,h._o)(O):W[i[H]||H]=O})}}let K="";return Object.entries(W).forEach(G=>{let[$,P]=G;K+=$+":"+P+";"}),K};var p=e(40860),s=e(15776),l=e(33379),_=e(81717),b=e(67167),a=e(9680),M=e(66156),x=e(70248);const g=(w,k)=>w?k.find(W=>W.key===w.key):k.find(W=>{var K;return((K=W.hotAttr)==null?void 0:K.type)===d.x.WTable}),S=w=>{const k=w(),W=g((0,n.nh)(k),(0,r.nE)(k)),K=(0,n.zX)(k),G=(0,n.Eb)(k);return{widget:W,selectTableCellInfo:K,selectCopyInfo:G}},t={"entry:insert:top:row":(w,k)=>{let{getState:W}=w,{payload:{rowNumber:K}}=k;const{widget:G,selectTableCellInfo:$}=S(W);if(!G)return;const{selectionLeftTopInfo:{x:P,y:E},selectionRightBottomInfo:{x:H,y:O}}=$,V=(0,c.BG)(G,K,Number(E),!0);v(V),(0,s.Z)({widget:V,x1:P,y1:Number(E)+K,x2:H,y2:Number(O)+K}),(0,_.Wv)(K)},"entry:insert:bottom:row":(w,k)=>{let{getState:W}=w,{payload:{rowNumber:K}}=k;const{widget:G,selectTableCellInfo:$}=S(W);if(!G)return;const{selectionLeftTopInfo:{x:P,y:E},selectionRightBottomInfo:{x:H,y:O}}=$,V=(0,c.BG)(G,K,Number(O));v(V),(0,s.Z)({widget:V,x1:P,y1:E,x2:H,y2:O}),(0,_.Wv)(K)},"entry:table:delete:row":w=>{let{getState:k}=w;const{widget:W,selectTableCellInfo:K}=S(k);if(!W)return;const{selectionLeftTopInfo:{y:G,x:$},selectionRightBottomInfo:{y:P,x:E}}=K,H=P-G+1,{newWidget:O}=(0,c.CF)(W,G,H);if(!O)return;O.hotAttr.refVars=(0,a.F4)(O.hotAttr),v(O);const{maxY:V}=(0,p.II)(O.hotAttr);let Q=P;P>V&&(Q=V),(0,s.Z)({widget:O,x1:$,y1:Q,x2:E,y2:Q})},"entry:table:insert:left:column":(w,k)=>{let{getState:W}=w,{payload:{columnNumber:K}}=k;const{widget:G,selectTableCellInfo:$}=S(W);if(!G)return;const{selectionLeftTopInfo:{x:P,y:E},selectionRightBottomInfo:{x:H,y:O}}=$,V=(0,c.GF)(G,K,P,!0);v(V),(0,s.Z)({widget:V,x1:P+K,y1:E,x2:H+K,y2:O}),(0,_.qt)(K)},"entry:table:insert:right:column":(w,k)=>{let{getState:W}=w,{payload:{columnNumber:K}}=k;const{widget:G,selectTableCellInfo:$}=S(W);if(!G)return;const{selectionLeftTopInfo:{x:P,y:E},selectionRightBottomInfo:{x:H,y:O}}=$,V=(0,c.GF)(G,K,H);v(V),(0,s.Z)({widget:V,x1:P,y1:E,x2:H,y2:O}),(0,_.qt)(K)},"entry:table:delete:column":w=>{let{getState:k}=w;const{widget:W,selectTableCellInfo:K}=S(k);if(!W)return;const{selectionLeftTopInfo:{y:G,x:$},selectionRightBottomInfo:{y:P,x:E}}=K,H=E-$+1,{newWidget:O}=(0,c.AR)(W,$,H);if(!O)return;O.hotAttr.refVars=(0,a.F4)(O.hotAttr),v(O);const{maxX:V}=(0,p.II)(O.hotAttr);let Q=E;E>V&&(Q=V),(0,s.Z)({widget:O,x1:Q,y1:G,x2:Q,y2:P})},"entry:table:merge:cell":async w=>{let{getState:k}=w;const{widget:W,selectTableCellInfo:K}=S(k);if(W)if((0,l.NJ)(K,W.hotAttr)){if(await(0,p.aT)()){const G=(0,l.Ry)(W.hotAttr,K);v({key:W.key,hotAttr:G})}}else{const G=(0,l.Ry)(W.hotAttr,K);v({key:W.key,hotAttr:G})}},"entry:table:remove:merge:cell":w=>{let{getState:k}=w;const{widget:W,selectTableCellInfo:K}=S(k);if(!W)return;const G=(0,l.zO)(W.hotAttr,K);v({key:W.key,hotAttr:G})},"entry:table:copy:selection":async w=>{let{getState:k,dispatch:W}=w;const{widget:K,selectTableCellInfo:G}=S(k);if(!K)return;const{str:$}=await(0,c.Bm)(K.hotAttr,G);(0,p.t0)({tableCopyInfo:$}),W({type:"entry:table:copy:cell:properties"})},"entry:table:cut:selection":async w=>{let{getState:k}=w;const{widget:W,selectTableCellInfo:K}=S(k);if(!W)return;const{widget:G,str:$}=await(0,c.Bm)(W.hotAttr,K);v({key:W.key,hotAttr:G}),(0,p.t0)({tableCopyInfo:$})},"entry:table:key:down":async(w,k)=>{let{getState:W}=w,{payload:K}=k;const{widget:G,eventType:$,options:P,selectTableCellInfo:E}=K;if(!E)return;const{hotAttr:H}=G,{selectionLeftTopInfo:{x:O,y:V},selectionRightBottomInfo:{x:Q,y:N}}=E,{maxX:L,maxY:U}=(0,p.II)(H);let A=!1,D=H,B={isNeedUpdate:!1,x1:O,y1:V,x2:Q,y2:N};if($==="up"){if(V-1<0)return;B={isNeedUpdate:!0,x1:O,x2:O,y1:V-1,y2:V-1},B=(0,c.n7)(H,B,"up")}else if($==="left"){if(O-1<0)return;B={isNeedUpdate:!0,x1:O-1,x2:O-1,y1:V,y2:V},B=(0,c.n7)(H,B,"left")}else if($==="right"){if(O+1>L)return;B={isNeedUpdate:!0,x1:O+1,x2:O+1,y1:V,y2:V},B=(0,c.n7)(H,B,"right")}else if($==="down"){if(V+1>U)return;B={isNeedUpdate:!0,x1:O,x2:O,y1:V+1,y2:V+1},B=(0,c.n7)(H,B,"down")}else if($==="delete"){A=!0;const F=(0,c.WJ)(O,V,Q,N,"");D=(0,c.HW)(H,F),D.refVars=(0,a.RG)(H,E,"data")}else if($==="selectAll")B={isNeedUpdate:!0,x1:0,x2:L,y1:0,y2:U};else if($==="copy"){const{str:F}=await(0,c.Bm)(H,E);(0,p.t0)({tableCopyInfo:F}),MB.action("entry:table:copy:cell:properties")}else if($==="cut"){const{widget:F,str:Y}=await(0,c.Bm)(H,E);(0,p.t0)({tableCopyInfo:Y}),A=!0,D=F}else if($==="paste"){const{text:F}=P;A=!0;const{map:Y,endX:X,endY:z,willCopyStyles:Z,willCopyRefVars:J,copyVarItems:te}=await(0,c.zi)(H,F,O,V);if(D=(0,c.HW)(H,Y),Z&&(D=(0,c.hB)(D,O,V,Q,N,Z)),B={isNeedUpdate:!0,x1:O,x2:X,y1:V,y2:z},te!=null&&te.length){var j;const ge=(0,a.jq)(te),pe=me=>ge[me],Ce=(0,M.xL)(J,pe);D.refVars={...D.refVars,cells:{...(j=D.refVars)==null?void 0:j.cells,...Ce}}}}else $==="undo"?MB.action("entry:undo-stack:undo"):$==="redo"?MB.action("entry:undo-stack:redo"):$==="pasteProperties"&&MB.action("entry:table:paste:cell:properties");B&&(B.isNeedUpdate&&D&&(0,s.Z)({widget:{key:G.key,hotAttr:D},x1:B.x1,y1:B.y1,x2:B.x2,y2:B.y2}),A&&D&&v({key:G.key,hotAttr:D}))},"entry:table:paste:selection":async w=>{let{getState:k,dispatch:W}=w;if(await(0,C.$H)({hasNotice:!1})){const{widget:K,selectTableCellInfo:G,selectCopyInfo:$}=S(k);if(!K||$===void 0||$===null)return;W({type:"entry:table:key:down",payload:{widget:K,eventType:"paste",options:{text:$},selectTableCellInfo:G}})}else{const{widget:K,selectTableCellInfo:G,selectCopyInfo:$}=S(k);let P=$;if(P===null&&(P=await(0,C.oV)({itemType:"text/plain"})),!K||!P)return;W({type:"entry:table:key:down",payload:{widget:K,eventType:"paste",options:{text:P},selectTableCellInfo:G}})}},"entry:table:set:cell:attr:new":(w,k)=>{let{getState:W,dispatch:K}=w,{payload:G}=k;const{attr:$,value:P,refVar:E}=G,{widget:H,selectTableCellInfo:O}=S(W);if(!H)return;const{key:V,hotAttr:Q}=H,N=(0,c.Kr)(Q,O,P,$);N.refVars=(0,a.RG)(Q,O,$,E),K({type:"entry:widget:change",payload:{flatChgList:[{key:V,hotAttr:N}]}})},"entry:table:set:cell:width:height":(w,k)=>{let{getState:W}=w,{payload:K}=k;const{attr:G,value:$}=K,{widget:P,selectTableCellInfo:E}=S(W);if(!P)return;const H=(0,c.rq)(P,E,$,G);v(H)},"entry:set:table:style:type":(w,k)=>{var W;let{getState:K}=w,{payload:G}=k;const{type:$}=G,{widget:P}=S(K);if(!P)return;const{key:E,hotAttr:H}=P,O=(0,c.zc)(H,$);let V={...O==null?void 0:O.refStyles};if(O!=null&&(W=O.refStyles)!=null&&W.color){var Q;V={...O==null?void 0:O.refStyles,color:{...O==null||(Q=O.refStyles)==null?void 0:Q.color,tableConfig:{}}}}v({key:E,hotAttr:{...O,refStyles:V}})},"entry:table:change:rows":(w,k)=>{let{getState:W,dispatch:K}=w,{payload:G}=k;const $=W(),E=(0,r.nE)($).filter(O=>O.hotAttr.type===d.x.WTable),H=[];for(const O of E){const{hotAttr:V}=O,Q=(0,o.SS)(V)?V.heightList.length:V.tableData.data.length,N=G-Q;if(N===0)return;let L;N>0?L=(0,c.BG)(O,N,Q-1):L=((0,o.SS)(V)?(0,c.HS)(O,Q+N,Math.abs(N)):(0,c.CF)(O,Q+N,Math.abs(N))).newWidget,L&&H.push(L)}K({type:"entry:widget:change",payload:{flatChgList:H}})},"entry:table:change:columns":(w,k)=>{let{getState:W,dispatch:K}=w,{payload:G}=k;const $=W(),E=(0,r.p$)($).map(sdkStore.getHotItem).filter(O=>(O==null?void 0:O.hotAttr.type)===d.x.WTable),H=[];for(const O of E){const{hotAttr:V}=O,Q=(0,o.SS)(V)?V.widthList.length:V.tableData.columns.length,N=G-Q;if(N===0)return;let L;if(N>0)L=(0,c.GF)(O,N,Q-1);else{const U=(0,c.AR)(O,Q+N,Math.abs(N));if(!U)return;L=U.newWidget}L&&H.push(L)}K({type:"entry:widget:change",payload:{flatChgList:H}})},"entry:table:copy:cell:properties":w=>{let{getState:k}=w;const W=k(),{selectTableCellInfo:K}=S(k),{selectionLeftTopInfo:{x:G,y:$},selectionRightBottomInfo:{x:P,y:E},isCanRemoveMerge:H}=K;if(G===P&&$===E||H){const V=(0,u.g)(W);(0,b.vz)(V)}},"entry:table:paste:cell:properties":async(w,k)=>{let{getState:W,dispatch:K}=w,{payload:G}=k;const{widget:$,selectTableCellInfo:P}=S(W);if(!$)return;const{hotAttr:E}=$,{tableData:{cellStyles:H}}=E,{selectionLeftTopInfo:{x:O,y:V},selectionRightBottomInfo:{x:Q,y:N}}=P,L=await(0,I._d)({isShowPrompt:!1});if(L&&H){if(sdkStore.combineMergeMark("paste-propertities"),(0,o.SS)(E)){const{table:U,cells:A,refVars:D}=E,B=JSON.parse(JSON.stringify(A)),j={...D==null?void 0:D.cells},F=(0,a.m1)(L);for(let Y=O;Y<=Q;Y++)for(let X=V;X<=N;X++){const z=(0,o.j)(B,U,X,Y);if(!z)continue;const Z=U[X][Y],J=(0,p.Gj)(z.style);z.style=f(L,J),F&&(j[Z]={...j[Z],style:{...F}})}K({type:"entry:widget:change",payload:{flatChgList:[{key:$.key,hotAttr:{cells:B,refVars:{...D,cells:j}}}]}})}else{const U=JSON.parse(JSON.stringify(H));for(let A=O;A<=Q;A++)for(let D=V;D<=N;D++){const B=(0,p.Gj)(H[D][A]);U[D][A]=f(L,B)}K({type:"entry:widget:change",payload:{flatChgList:[{key:$.key,hotAttr:{tableData:{...E.tableData,cellStyles:U}}}]}})}sdkStore.combineMerge("paste-propertities")}},"entry:table:widget:change":(w,k)=>{let{getState:W,dispatch:K}=w,{payload:G}=k;const{data:$}=G;K({type:"entry:widget:change",payload:{flatChgList:[$]}})},"entry:table:save:widget":(w,k)=>{let{getState:W,dispatch:K}=w,{payload:G}=k;const{newWidget:$}=G;K({type:"entry:table:widget:change",payload:{data:$}})},"entry:table:limitOneRowOrColumnAlert":w=>{let{getState:k,dispatch:W}=w;W({type:"modal:update:confirm:state",payload:{isOpen:!0,canCancel:!1,title:I18N.ScreenContainer.del_table_row_or_column_max_title,desc:I18N.ScreenContainer.del_table_row_or_column_max_desc,onConfirm:()=>{}}})},"entry:table:set:value":(w,k)=>{let{getState:W,dispatch:K}=w,{payload:G}=k;const{widget:$,position:{x:P,y:E},text:H}=G,{key:O,hotAttr:V}=$;let Q;if((0,o.SS)(V)){var N;const{cells:U,table:A,refVars:D}=V,B=JSON.parse(JSON.stringify(U)),j=(0,o.j)(B,A,E,P);if(!j)return;const F=A[E][P];B[F]={...j,data:H},j.data=H,Q={...V,cells:B};const Y=D==null||(N=D.cells)==null||(N=N[F])==null?void 0:N.data;if(Y&&(0,a.U_)(Y)!==H){var L;Q.refVars={...D,cells:{...D.cells,[F]:{...D==null||(L=D.cells)==null?void 0:L[F],data:void 0}}}}}else{const{data:U}=V.tableData,A=U.map((D,B)=>D.map((j,F)=>Number(P)===F&&Number(E)===B?H:j));Q={...V,tableData:{...$.tableData,data:A}}}v({key:O,hotAttr:Q})},"entry:table:batch:set:value":(w,k)=>{let{getState:W,dispatch:K}=w,{payload:G}=k;const{text:$,refVar:P}=G,{widget:E,selectTableCellInfo:H}=S(W);if(!E)return;const{hotAttr:{cells:O,table:V,refVars:Q},key:N}=E,L={...Q==null?void 0:Q.cells},U={...O},{selectionLeftTopInfo:{x:A,y:D},selectionRightBottomInfo:{x:B,y:j}}=H;for(let Y=D;Y<=j;Y++){const X=V[Y];for(let z=A;z<=B;z++){const Z=X[z];U[Z]={...U[Z],data:$},L[Z]={...L[Z],data:P}}}const F={cells:U,refVars:{...Q,cells:L}};K({type:"entry:widget:change",payload:{flatChgList:[{key:N,hotAttr:F}]}})},"entry:table:paste:copyselection":(w,k)=>{let{getState:W,dispatch:K}=w,{payload:G}=k;const{widget:$,selectCopyCell:P,selectionTableCellInfo:E}=G,{key:H,hotAttr:O}=$;let V;if((0,o.SS)(O)){const Q=(0,c.R3)(O,E),N=(0,c.Oc)(Q,E,P);V=(0,c.XU)(O,N)}else{const Q=(0,c.qR)(O,E),N=(0,c.Oc)(Q,E,P);V=(0,c.cG)(O,N)}V&&(v({key:H,hotAttr:V}),(0,p.t0)({selectCopyCell:null}))},"entry:table:migrate":(w,k)=>{let{getState:W,dispatch:K}=w,{payload:G}=k;const{key:$}=G;if((0,x.OO)($)&&!(0,c.K)($))return;const P=sdkStore.getHotItem($);if(!P)return;const E=(0,o.U1)(P.hotAttr.tableData),H=[{key:$,hotAttr:{"!version":3,...E}}];K({type:"entry:widget:change",payload:{flatChgList:H}})},"entry:table:rollback":(w,k)=>{let{getState:W,dispatch:K}=w,{payload:G}=k;const{key:$}=G;if((0,x.OO)($)&&!(0,c.K)($))return;const P=sdkStore.getHotItem($);if(!P)return;const E=(0,o.F7)(P.hotAttr);K({type:"entry:widget:change",payload:{flatChgList:[{key:$,hotAttr:{"!version":1,tableData:E}}]}})}},v=w=>{MB.action("entry:table:widget:change",{data:w})}},547:(He,ee,e)=>{"use strict";e.d(ee,{CU:()=>u,El:()=>C,H4:()=>d,Jz:()=>I,T7:()=>r,rn:()=>c,vI:()=>n});function n(f,p){var s,l,_;let b=(s=MB)==null?void 0:s.getCanvasRect();if(b)b={left:b.canvasLeft,top:b.canvasTop};else{var a;b=(a=document.querySelector("#canvas"))==null?void 0:a.getBoundingClientRect()}const M=((l=MB)==null?void 0:l.getCurrentToolBarHeight())||((_=document.querySelector("#screens"))==null||(_=_.getBoundingClientRect())==null?void 0:_.top);if(!b)return;const x=b.left,g=b.top-M,S=100/p;return o(f,{offsetX:x,offsetY:g,ratio:S})}function r(f,p,s){let{startX:l,startY:_,endX:b,endY:a}=f;p===void 0&&(p=90),s===void 0&&(s=0);const M=Math.atan2(a-_,b-l)/Math.PI*180,x=Math.hypot(b-l,a-_),g=s+p*Math.round((M-s)/p),S=x*Math.cos((M-g)/180*Math.PI);return{startX:l,startY:_,endX:l+Math.round(S*Math.cos(g/180*Math.PI).toFixed(2)),endY:_+Math.round(S*Math.sin(g/180*Math.PI).toFixed(2))}}function c(f){let{startX:p,startY:s,endX:l,endY:_}=f;const b=Math.min(s,_),a=Math.min(p,l),M=Math.abs(l-p),x=Math.abs(_-s);return{top:Math.round(b),left:Math.round(a),width:Math.round(M),height:Math.round(x)}}function o(f,p){let{startX:s,startY:l,endX:_,endY:b}=f,{offsetX:a,offsetY:M,ratio:x}=p;return{startX:Math.round((s-a)*x),startY:Math.round((l-M)*x),endX:Math.round((_-a)*x),endY:Math.round((b-M)*x)}}const I=(f,p)=>["top","left","width","height"].every(s=>f[s]===p[s]),u=(f,p)=>{const s=d(f,p);return s.width<f.width+p.width&&s.height<f.height+p.height},d=(f,p)=>{const s=Math.min(f.top||0,p.top||0),l=Math.max((f.top||0)+f.height,(p.top||0)+p.height),_=Math.min(f.left||0,p.left||0),b=Math.max((f.left||0)+f.width,(p.left||0)+p.width);return{top:s,left:_,width:b-_,height:l-s}},C=(f,p,s)=>h(f,s)&&i(p,s),h=(f,p)=>f>p.left&&f<p.left+p.width,i=(f,p)=>f>p.top&&f<p.top+p.height},847:(He,ee,e)=>{"use strict";e.d(ee,{q:()=>n});let n=function(r){return r.OpacityInfoPanel="OpacityInfoPanel",r.FixedInfoPanel="FixedInfoPanel",r}({})},1438:(He,ee,e)=>{var n=e(33020),r=e(91224),c=e(68151);function o(I,u,d){for(var C=-1,h=u.length,i={};++C<h;){var f=u[C],p=n(I,f);d(p,f)&&r(i,c(f,I),p)}return i}He.exports=o},1738:(He,ee,e)=>{"use strict";e.d(ee,{c:()=>c,l:()=>r});var n=e(34394),r=function(o){return o.MD="MD",o.NLP="NLP",o.AI="AI",o}(r||{}),c=function(o){return o.CategoryNLP="CategoryNLP",o.CategoryFile="CategoryFile",o.CategoryLayoutView="CategoryLayoutView",o.CategoryPreference="CategoryPreference",o.CategoryQuickCreate="CategoryQuickCreate",o.CategoryCommonOperation="CategoryCommonOperation",o.CategoryHelpCenter="CategoryHelpCenter",o.CategoryBW="CategoryBW",o.CategoryForm="CategoryForm",o.CategoryNavigation="CategoryNavigation",o.CategoryChart="CategoryChart",o.CategoryMultimedia="CategoryMultimedia",o.CategoryShape="CategoryShape",o.CategoryDelete="CategoryDelete",o.CategorySelected="CategorySelected",o.CategoryEdit="CategoryEdit",o.CategoryPage="CategoryPage",o.CategoryCanvas="CategoryCanvas",o.CategoryIntEvents="CategoryIntEvents",o.CategoryLayer="CategoryLayer",o.CategoryAI="CategoryAI",o.AIGC="AIGC",o.AIQ="AIQ",o.AI3Help="AI3Help",o.AIInDev="AIInDev",o.Save="Save",o.ViewFileInfo="ViewFileInfo",o.ViewVersionRecord="ViewVersionRecord",o.ToggleViewShare="ToggleViewShare",o.ProjectRename="ProjectRename",o.CreateNewVersion="CreateNewVersion",o.OpenColorPicker="OpenColorPicker",o.ZoomIn="ZoomIn",o.ZoomOut="ZoomOut",o.ZoomToHundred="ZoomToHundred",o.ZoomSelection="ZoomSelection",o.FitCanvas="FitCanvas",o.FullScreenMode="FullScreenMode",o.QuickCreateCanvas="QuickCreateCanvas",o.QuickCreateRect="QuickCreateRect",o.QuickCreateOval="QuickCreateOval",o.QuickCreateLine="QuickCreateLine",o.QuickCreateLr="QuickCreateLr",o.QuickCreateImage="QuickCreateImage",o.QuickCreateVector="QuickCreateVector",o.QuickCreateRichText="QuickCreateRichText",o.QuickCreateElbow="QuickCreateElbow",o.QuickCreateSticky="QuickCreateSticky",o.QuickCreateTear="QuickCreateTear",o.QuickCreateComment="QuickCreateComment",o.Undo="Undo",o.Redo="Redo",o.ToggleExport="ToggleExport",o.ComSelectAll="ComSelectAll",o.ComSelectPart="ComSelectPart",o.GlobalFindAndReplace="GlobalFindAndReplace",o.GlobalFind="GlobalFind",o.GlobalReplace="GlobalReplace",o.Preview="Preview",o.Group="Group",o.UnGroup="UnGroup",o.AddComponent="AddComponent",o.Delete="Delete",o.Cut="Cut",o.Copy="Copy",o.Past="Past",o.PastProperties="PastProperties",o.CreateMaster="CreateMaster",o.CreatePanel="CreatePanel",o.TogglePanelTransState="TogglePanelTransState",o.TogglePageTransState="TogglePageTransState",o.LinkDisplayChange="LinkDisplayChange",o.ToggleSelectMode="ToggleSelectMode",o.ToggleEyedropper="ToggleEyedropper",o.ToggleDynamicSpacing="ToggleDynamicSpacing",o.ToggleHandTool="ToggleHandTool",o.Alignment="Alignment",o.AlignmentTop="AlignmentTop",o.AlignmentMiddle="AlignmentMiddle",o.AlignmentBottom="AlignmentBottom",o.AlignmentLeft="AlignmentLeft",o.AlignmentCenter="AlignmentCenter",o.AlignmentRight="AlignmentRight",o.AlignmentHorizontal="AlignmentHorizontal",o.AlignmentVertical="AlignmentVertical",o.SearchMktSource="SearchMktSource",o.ToggleTheme="ToggleTheme",o.ToggleRuler="ToggleRuler",o.ToggleReferenceLine="ToggleReferenceLine",o.ToggleSticky="ToggleSticky",o.ToggleComment="ToggleComment",o.ToggleMultiplayerMouse="ToggleMultiplayerMouse",o.ToggleLeftSide="ToggleLeftSide",o.ToggleRightSide="ToggleRightSide",o.ToggleAlignLine="ToggleAlignLine",o.NewFeature="NewFeature",o.ToggleShortcutKey="ToggleShortcutKey",o.OpenHelperCenter="OpenHelperCenter",o.Feedback="Feedback",o.OnlineSupport="OnlineSupport",o.CRichText="C-"+n.x.WRichText,o.CWRect="C-"+n.x.WRect,o.CWOval="C-"+n.x.WOval,o.CWImage="C-"+n.x.WImage,o.CWButton="C-"+n.x.WButton,o.CWPolygon="C-"+n.x.WPolygon,o.CWStar="C-"+n.x.WStar,o.CWTriangle="C-"+n.x.WTriangle,o.CWArrow="C-"+n.x.WArrow,o.CWLine="C-"+n.x.WLine,o.CWPlaceholder="C-"+n.x.WPlaceholder,o.CWTable="C-"+n.x.WTable,o.CWSticky="C-"+n.x.WSticky,o.CWTear="C-"+n.x.WTear,o.CWIphoneXSB="C-"+n.x.WIphoneXSB,o.CDynCpts="CDynCpts",o.CScrollPanel="CScrollPanel",o.CWLr="C-"+n.x.WLR,o.CComment="CComment",o.CElbow="CElbow",o.CVector="CVector",o.CCustomComponent="CCustomComponent",o.CWebPage="CWebPage",o.CWPicture="C-Picture",o.CWIcon="C-"+n.x.WIcon,o.CLargeScreenPage="CLargeScreenPage",o.CWMTextInput="C-"+n.x.WMTextInput,o.CWMTextArea="C-"+n.x.WMTextArea,o.CWMSelect="C-"+n.x.WMSelect,o.CWMFileInput="C-"+n.x.WMFileInput,o.CWSelectionControlRadio="C-"+n.x.WSelectionControlRadio,o.CWSelectionControlCheckbox="C-"+n.x.WSelectionControlCheckbox,o.CWAndroidSwitch="C-"+n.x.WAndroidSwitch,o.CWIosSwitch="C-"+n.x.WIOSSwitch,o.CWSlider="C-"+n.x.WSlider,o.CWDigitalStepper="C-"+n.x.WDigitalStepper,o.CWDropMenu="C-"+n.x.WDropMenu,o.CDynamicDropMenu="CDynamicDropMenu",o.CWNavigationMenu="C-"+n.x.WNavigationMenu,o.CWNavigationMenuV="C-"+n.x.WNavigationMenuV,o.CWNavigationMenuH="C-"+n.x.WNavigationMenuH,o.CWMobileTabBars="C-"+n.x.WMobileTabBars,o.CWSegmentedControl="C-"+n.x.WSegmentedControl,o.CWCollapse="C-"+n.x.WCollapse,o.CWTabs="C-"+n.x.WTabs,o.CWPaginationMobile="C-"+n.x.WPaginationMobile,o.CWPaginationWeb="C-"+n.x.WPaginationWeb,o.CreateChart="CreateChart",o.CWCarousel="C-"+n.x.WCarousel,o.CWWebpage="C-"+n.x.WWebpage,o.CWVideo="C-"+n.x.WVideo,o.CWAudio="C-"+n.x.WAudio,o.CWQRCode="C-"+n.x.WQRCode,o.CWMapView="C-"+n.x.WMapView,o.CWMTooltip="C-"+n.x.WMTooltip,o.DWRichText="D-"+n.x.WRichText,o.DWRect="D-"+n.x.WRect,o.DWOval="D-"+n.x.WOval,o.DWLine="D-"+n.x.WLine,o.DWButton="D-"+n.x.WButton,o.DWArrow="D-"+n.x.WArrow,o.DWPolygon="D-"+n.x.WPolygon,o.DWStar="D-"+n.x.WStar,o.DWTriangle="D-"+n.x.WTriangle,o.DWCarousel="D-"+n.x.WCarousel,o.DWWebpage="D-"+n.x.WWebpage,o.DWVideo="D-"+n.x.WVideo,o.DWAudio="D-"+n.x.WAudio,o.DWQRCode="D-"+n.x.WQRCode,o.DWMapView="D-"+n.x.WMapView,o.DWMTooltip="D-"+n.x.WMTooltip,o.DWImage="D-"+n.x.WImage,o.DWLr="D-"+n.x.WLR,o.DWPlaceholder="D-"+n.x.WPlaceholder,o.DWTable="D-"+n.x.WTable,o.DWSticker="D-"+n.x.WSticky,o.DWTear="D-"+n.x.WTear,o.DWIphoneSB="D-"+n.x.WIphoneXSB,o.DWMTextInput="D-"+n.x.WMTextInput,o.DWMTextArea="D-"+n.x.WMTextArea,o.DWMSelect="D-"+n.x.WMSelect,o.DWMFileInput="D-"+n.x.WMFileInput,o.DWSelectionControlRadio="D-"+n.x.WSelectionControlRadio,o.DWSelectionControlCheckbox="D-"+n.x.WSelectionControlCheckbox,o.DWAndroidSwitch="D-"+n.x.WAndroidSwitch,o.DWIosSwitch="D-"+n.x.WIOSSwitch,o.DWSlider="D-"+n.x.WSlider,o.DWDigitalStepper="D-"+n.x.WDigitalStepper,o.DWDropMenu="D-"+n.x.WDropMenu,o.DWBasket="DWBasket",o.DWNavigationMenu="D-"+n.x.WNavigationMenu,o.DWNavigationMenuV="D-"+n.x.WNavigationMenuV,o.DWNavigationMenuH="D-"+n.x.WNavigationMenuH,o.DWMobileTabBars="D-"+n.x.WMobileTabBars,o.DWSegmentedControl="D-"+n.x.WSegmentedControl,o.DWCollapse="D-"+n.x.WCollapse,o.DWTabs="D-"+n.x.WTabs,o.DWPaginationMobile="D-"+n.x.WPaginationMobile,o.DWPaginationWeb="D-"+n.x.WPaginationWeb,o.DWChart="DWChart",o.DWidgets="DWidgets",o.SWRichText="S-"+n.x.WRichText,o.SWRect="S-"+n.x.WRect,o.SWOval="S-"+n.x.WOval,o.SWLine="S-"+n.x.WLine,o.SWButton="S-"+n.x.WButton,o.SWArrow="S-"+n.x.WArrow,o.SWPolygon="S-"+n.x.WPolygon,o.SWStar="S-"+n.x.WStar,o.SWTriangle="S-"+n.x.WTriangle,o.SWCarousel="S-"+n.x.WCarousel,o.SWWebpage="S-"+n.x.WWebpage,o.SWVideo="S-"+n.x.WVideo,o.SWAudio="S-"+n.x.WAudio,o.SWQRCode="S-"+n.x.WQRCode,o.SWMapView="S-"+n.x.WMapView,o.SWMTooltip="S-"+n.x.WMTooltip,o.SWImage="S-"+n.x.WImage,o.SWLr="S-"+n.x.WLR,o.SWPlaceholder="S-"+n.x.WPlaceholder,o.SWTable="S-"+n.x.WTable,o.SWSticker="S-"+n.x.WSticky,o.SWTear="S-"+n.x.WTear,o.SWIphoneSB="S-"+n.x.WIphoneXSB,o.SWMTextInput="S-"+n.x.WMTextInput,o.SWMTextArea="S-"+n.x.WMTextArea,o.SWMSelect="S-"+n.x.WMSelect,o.SWMFileInput="S-"+n.x.WMFileInput,o.SWSelectionControlRadio="S-"+n.x.WSelectionControlRadio,o.SWSelectionControlCheckbox="S-"+n.x.WSelectionControlCheckbox,o.SWAndroidSwitch="S-"+n.x.WAndroidSwitch,o.SWIosSwitch="S-"+n.x.WIOSSwitch,o.SWSlider="S-"+n.x.WSlider,o.SWDigitalStepper="S-"+n.x.WDigitalStepper,o.SWDropMenu="S-"+n.x.WDropMenu,o.SWBasket="SWBasket",o.SWNavigationMenu="S-"+n.x.WNavigationMenu,o.SWNavigationMenuV="S-"+n.x.WNavigationMenuV,o.SWNavigationMenuH="S-"+n.x.WNavigationMenuH,o.SWMobileTabBars="S-"+n.x.WMobileTabBars,o.SWSegmentedControl="S-"+n.x.WSegmentedControl,o.SWCollapse="S-"+n.x.WCollapse,o.SWTabs="S-"+n.x.WTabs,o.SWPaginationMobile="S-"+n.x.WPaginationMobile,o.SWPaginationWeb="S-"+n.x.WPaginationWeb,o.SWChart="SWChart",o.SWidgets="SWidgets",o.EWRichText="E-"+n.x.WRichText,o.EWRect="E-"+n.x.WRect,o.EWOval="E-"+n.x.WOval,o.EWLine="E-"+n.x.WLine,o.EWButton="E-"+n.x.WButton,o.EWArrow="E-"+n.x.WArrow,o.EWPolygon="E-"+n.x.WPolygon,o.EWStar="E-"+n.x.WStar,o.EWTriangle="E-"+n.x.WTriangle,o.EWCarousel="E-"+n.x.WCarousel,o.EWWebpage="E-"+n.x.WWebpage,o.EWVideo="E-"+n.x.WVideo,o.EWAudio="E-"+n.x.WAudio,o.EWQRCode="E-"+n.x.WQRCode,o.EWMapView="E-"+n.x.WMapView,o.EWMTooltip="E-"+n.x.WMTooltip,o.EWImage="E-"+n.x.WImage,o.EWLr="E-"+n.x.WLR,o.EWPlaceholder="E-"+n.x.WPlaceholder,o.EWTable="E-"+n.x.WTable,o.EWSticker="E-"+n.x.WSticky,o.EWTear="E-"+n.x.WTear,o.EWIphoneSB="E-"+n.x.WIphoneXSB,o.EWMTextInput="E-"+n.x.WMTextInput,o.EWMTextArea="E-"+n.x.WMTextArea,o.EWMSelect="E-"+n.x.WMSelect,o.EWMFileInput="E-"+n.x.WMFileInput,o.EWSelectionControlRadio="E-"+n.x.WSelectionControlRadio,o.EWSelectionControlCheckbox="E-"+n.x.WSelectionControlCheckbox,o.EWAndroidSWitch="E-"+n.x.WAndroidSwitch,o.EWIosSWitch="E-"+n.x.WIOSSwitch,o.EWSlider="E-"+n.x.WSlider,o.EWDigitalStepper="E-"+n.x.WDigitalStepper,o.EWDropMenu="E-"+n.x.WDropMenu,o.EWBasket="EWBasket",o.EWNavigationMenu="E-"+n.x.WNavigationMenu,o.EWNavigationMenuV="E-"+n.x.WNavigationMenuV,o.EWNavigationMenuH="E-"+n.x.WNavigationMenuH,o.EWMobileTabBars="E-"+n.x.WMobileTabBars,o.EWSegmentedControl="E-"+n.x.WSegmentedControl,o.EWCollapse="E-"+n.x.WCollapse,o.EWTabs="E-"+n.x.WTabs,o.EWPaginationMobile="E-"+n.x.WPaginationMobile,o.EWPaginationWeb="E-"+n.x.WPaginationWeb,o.EWElbow="E-"+n.x.WElbow,o.EWChart="E-"+n.x.WChart,o.EWidgets="EWidgets",o.CPage="CPage",o.EPage="EPage",o.EPageLayout="EPageLayout",o.CPageCopy="CPageCopy",o.CopyPage="CopyPage",o.CutPage="CutPage",o.PastePage="PastePage",o.ToggleClipContent="ToggleClipContent",o.CCanvas="CCanvas",o.CSubCanvas="CSubCanvas",o.CDirectory="CDirectory",o.ECanvas="ECanvas",o.DCanvas="DCanvas",o.CCanvasCopy="CCanvasCopy",o.MoveCanvas="MoveCanvas",o.CanvasViewRecycle="CanvasViewRecycle",o.CollapseCanvas="CollapseCanvas",o.ExpandCanvas="ExpandCanvas",o.Other="Other",o.ToggleLayerLock="ToggleLayerLock",o.ToggleLayerVisible="ToggleLayerVisible",o.ToggleLayerExpand="ToggleLayerExpand",o.OpenEventsPanel="OpenEventsPanel",o.OUnableRecognize="OUnableRecognize",o.OFreeChat="OFreeChat",o.OFreeChatQuestion="OFreeChatQuestion",o}(c||{})},1984:(He,ee,e)=>{"use strict";e.d(ee,{OI:()=>C,WB:()=>o,rT:()=>u,sw:()=>I,wx:()=>c,zI:()=>d});var n=e(27660);const r=["leftmenu","rightmenu","leftdrawer","rightdrawer","slideright","slideleft","slidetop","slidebottom","slideleft2","slideright2","topin","popin","leftout","rightout","topout","popout"],c=(0,n.R)(h=>{const i=r.map(f=>({value:f,label:I18N.dConst.tr[f]}));return h?i.filter(f=>{let{value:p}=f;return!/drawer|menu/.test(p)}):i}),o=(0,n.R)(()=>["slideleft2","slideright2","topin","popin"].map(h=>({value:h,label:I18N.dConst.tr[h]}))),I=1e5,u=99999,d=[{label:"0ms",value:"0"},{label:"10ms",value:10},{label:"50ms",value:50},{label:"100ms",value:100},{label:"200ms",value:200},{label:"500ms",value:500},{label:"1000ms",value:1e3},{label:"2000ms",value:2e3},{label:"5000ms",value:5e3}],C=[{label:"0ms",value:"0"},{label:"10ms",value:10},{label:"50ms",value:50},{label:"100ms",value:100},{label:"200ms",value:200},{label:"500ms",value:500},{label:"1000ms",value:1e3},{label:"2000ms",value:2e3},{label:"5000ms",value:5e3}]},2099:(He,ee,e)=>{"use strict";e.d(ee,{$6:()=>w,$b:()=>U,F5:()=>W,G8:()=>N,Ny:()=>P,OP:()=>t,QH:()=>k,cM:()=>A,f9:()=>L,l$:()=>V,qP:()=>B,r:()=>H,rf:()=>D,t_:()=>E,ws:()=>v,xT:()=>G,xe:()=>O});var n=e(18821),r=e.n(n),c=e(36198),o=e.n(c),I=e(19327),u=e.n(I),d=e(63986),C=e.n(d),h=e(4820),i=e(74160),f=e(8095),p=e(24229),s=e(34748),l=e(31569),_=e(21856);if(e.j!=477)var b=e(85449);if(e.j!=477)var a=e(8614);var M=e(64320),x=e(79287),g=e.n(x);const S=j=>{let{supAttrArr:F,attr:Y,colorRefStyles:X}=j;if(F.length===1){var z;return(z=X[F[0]])==null?void 0:z[Y]}for(let Z=0;Z<F.length-1;Z++)if(typeof X[F[Z]]=="object")return S({supAttrArr:F.slice(1),colorRefStyles:X[F[Z]],attr:Y})},t=j=>{let{selections:F,attr:Y="solidColor",supAttr:X="fill",styleType:z="color",refStyles:Z}=j,J;if(Z)J=Z;else{if(F.length===0)return;const Ce=F.map(me=>sdkStore.getHotItem(me));J=(0,l.i)(Ce,"refStyles")}if(!J||!J[z])return;let te="";if(z==="color"){var ge;const Ce=(ge=X==null?void 0:X.split("-"))!=null?ge:[];te=S({supAttrArr:Ce,attr:Y,colorRefStyles:J.color})}else{var pe;te=(pe=J)==null?void 0:pe[z]}return te?sdkStore.isActiveKey(te)&&sdkStore.getHotItem(te):void 0},v=function(j,F,Y,X){var z;Y===void 0&&(Y="B@style"),X===void 0&&(X=!0);const Z=(0,b.dP)(),te=(0,a.Ip)(Z).getTreeNodeLevel(Y);let ge=0,pe=j.split("/").filter(he=>he);if(Y!=="B@style"&&pe.length>1&&pe[0]===((z=sdkStore.getHotItem(Y))==null||(z=z.hotAttr)==null?void 0:z.name)&&(pe=pe.slice(1,pe.length)),M.N2>te+pe.length-1)ge=pe.length-1;else{if(!X){MB.notice({text:"\u6587\u4EF6\u5939\u5C42\u7EA7\u6700\u591A\u4E0D\u8D85\u8FC73\u7EA7"});return}ge=M.N2-te}let Ce=0,me=Y,be=sdkStore.getSubHotItemList(Y).filter(he=>he.hotAttr.type==="rResStyleGroup"&&he.hotAttr.styleType===F).map(he=>he.key);for(;Ce<ge;){let he=!1;for(let ce=0;ce<be.length;ce++){const re=sdkStore.getHotItem(be[ce]);if(re.hotAttr.name===pe[Ce]){he=!0,Ce++,me=be[ce],be=sdkStore.getSubHotItemList(re.key).filter(fe=>fe.hotAttr.type==="rResStyleGroup"&&fe.hotAttr.styleType===F).map(fe=>fe.key);break}}if(!he)break}sdkStore.combineMergeMark("create-style-group");const ie=[];for(;Ce<ge;){const he=(0,_.Z_)(me),ce=(0,i.pc)({name:pe[Ce],zIndex:he+1,styleType:F}),re=(0,p.cF)("stlg"),fe={key:re,sup:me,sub:[],hotAttr:ce};ie.push(fe),me=re,Ce++}sdkStore.updateHotItemBatch(ie);const oe=pe.slice(ge,pe.length).join("");return{hotItems:ie.length===0?[sdkStore.getHotItem(me)]:ie,name:oe,callback:()=>sdkStore.combineMerge("create-style-group")}},w=function(j,F){F===void 0&&(F="\u672A\u547D\u540D");const Y=sdkStore.getHotItem(j);if(!Y||!sdkStore.isActiveKey(j))return;const X=(0,b.dP)(),z=(0,a.Ip)(X),Z=z.getTreeNodeHeight(j),J=z.getTreeNodeLevel(j);if(Z+J>M.N2){MB.notice({text:"\u6587\u4EF6\u5939\u5C42\u7EA7\u6700\u591A\u4E0D\u8D85\u8FC73\u7EA7"});return}sdkStore.combineMergeMark("create-style-sup-group");const te=(0,_.Z_)(Y.sup),ge=(0,i.pc)({name:F,zIndex:te+1,styleType:Y.hotAttr.styleType}),pe=(0,p.cF)("stlg"),Ce={key:pe,sup:Y.sup,sub:[],hotAttr:ge};sdkStore.updateHotItem(Ce),sdkStore.moveHotItem(j,pe);const me=sdkStore.getSubHotItemList(Y.sup).filter(be=>be.hotAttr.name===F&&be.hotAttr.type==="rResStyleGroup"&&be.key!==pe&&be.hotAttr.styleType===Y.hotAttr.styleType);if(me.length>0){const be=me.map(ie=>ie.sub.map(oe=>[oe,pe]));for(let ie=0;ie<be.length;ie++)sdkStore.moveHotItemBatch(be[ie]);sdkStore.deleteHotItemBatch(me.map(ie=>ie.key))}sdkStore.combineMerge("create-style-sup-group")},k=function(j,F){F===void 0&&(F="B@style");let Y;switch(j.styleType){case"color":Y=(0,f.pA)(j);break;case"text":Y=(0,f.Rw)(j);break;case"appear":Y=(0,f.PC)(j);break;default:break}const X=(0,p.cF)("stl"),z={key:X,sup:F,sub:[],hotAttr:{...Y}};return sdkStore.updateHotItem(z),MB.action("style-lib:update:localReleaseNotes:add",[{key:X,type:j.styleType}]),z},W=(j,F,Y)=>{const X=F.split("/").filter(oe=>oe),z=sdkStore.getHotItem(j);if(!z||!sdkStore.isActiveKey(j))return;const Z=(0,b.dP)(),J=(0,a.Ip)(Z),te=J.getTreeNodeHeight(j),ge=J.getTreeNodeLevel(j);if(te+ge-1+X.length-1>M.N2){MB.notice({text:"\u6587\u4EF6\u5939\u5C42\u7EA7\u6700\u591A\u4E0D\u8D85\u8FC73\u7EA7"});return}let pe=z.sup,Ce=0;const me=(0,_.Z_)(pe);for(sdkStore.combineMergeMark("rename-style-group");Ce+1<X.length;){const oe=(0,i.pc)({name:X[Ce],zIndex:me+Ce+1,styleType:Y}),he=(0,p.cF)("stlg"),ce={key:he,sup:pe,sub:[],hotAttr:oe};sdkStore.updateHotItem(ce),pe=he,Ce++}const be=X[X.length-1],ie=sdkStore.getSubHotItemList(z.sup).filter(oe=>oe.hotAttr.name===be&&oe.hotAttr.type==="rResStyleGroup"&&oe.key!==z.key&&oe.hotAttr.styleType===z.hotAttr.styleType);if(ie.length>0){const oe=ie.map(he=>he.sub.map(ce=>[ce,z.key]));for(let he=0;he<oe.length;he++)sdkStore.moveHotItemBatch(oe[he]);sdkStore.deleteHotItemBatch(ie.map(he=>he.key)),sdkStore.updateHotAttrKV(j,"name",be)}else sdkStore.updateHotAttrKV(j,"name",be),sdkStore.moveHotItem(j,pe);sdkStore.combineMerge("rename-style-group")},K=(j,F,Y,X)=>{j.forEach(z=>{F(z),z.hotAttr.type==="rResStyleGroup"&&z.hotAttr.styleType===X&&K(Y.getSubHotItemList(z.key).filter(Z=>Z.hotAttr.styleType===X).sort(A),F,Y,X)})},G=j=>{let{type:F,sdk:Y=sdkStore,libKey:X="",isHasGroupPathName:z=!1}=j;if(z){const Z=new Map;return Z.set("B@style",[]),K(Y.getSubHotItemList("B@style").filter(J=>{var te;return J.hotAttr.styleType===F&&$((te=J.hotAttr)==null?void 0:te.libKey,X)}).sort(A),J=>{var te;if(J.hotAttr.type==="rResStyle"&&J.hotAttr.styleType===F&&$((te=J.hotAttr)==null?void 0:te.libKey,X)){var ge;const pe=(ge=Z.get(J.sup))!=null?ge:[];if(pe.length===0){const Ce=Y.findUpHotItemList(J.key).filter(me=>me.hotAttr.type==="rResStyleGroup").reverse().map(me=>me.hotAttr.name).join("/");pe.push({groupPathName:Ce,...J})}else pe.push(J);Z.set(J.sup,pe)}},Y,F),Array.from(Z.values())}else return Y.findAllTypeUnder("B@style","rResStyle").filter(Z=>{var J,te;return F==="all"?$((J=Z.hotAttr)==null?void 0:J.libKey,X):Z.hotAttr.styleType===F&&$((te=Z.hotAttr)==null?void 0:te.libKey,X)}).sort(A)},$=(j,F)=>F?F===j:j===""||j===void 0,P=function(j,F){return j===void 0&&(j=sdkStore),F===void 0&&(F=""),j.findAllTypeUnder("B@ref-muban","rResBunch").filter(Y=>{var X,z;return((X=Y.hotAttr)==null?void 0:X.bunch)==="rbPage"&&$((z=Y.hotAttr)==null?void 0:z.libKey,F)&&j.isActiveKey(Y.key)&&!Y.hotAttr.asFolder})},E=function(j){var F;return j===void 0&&(j=sdkStore),(F=j.getSubHotItemList("B@ref-muban"))==null?void 0:F.map(Y=>{var X;if(!(Y!=null&&(X=Y.hotAttr)!=null&&X.libKey)&&j.isActiveKey(Y.key)){var z;return{...Y,children:(z=Y.sub)==null?void 0:z.map(Z=>{var J;if(j.isActiveKey(Z)&&((J=j.getHotItem(Z))==null?void 0:J.hotAttr.bunch)==="rbPage")return{...j.getHotItem(Z),children:[]}}).sort(A).filter(Z=>Z)}}}).sort(A).filter(Y=>Y)},H=function(j,F){return j===void 0&&(j=sdkStore),F===void 0&&(F=""),j.getSubHotItemList("B@var").filter(Y=>{var X;return $((X=Y.hotAttr)==null?void 0:X.libKey,F)})},O=j=>{var F,Y;if(!j||j.length===0)return M.R3;const X=(F=j==null?void 0:j.map(be=>sdkStore.getHotItem(be)))!=null?F:[],z=(0,l.i)(X,"borderRadius"),Z=(0,l.i)(X,"borderRadiusIsVisible"),J=(0,l.i)(X,"borderVisibility"),te=(0,l.i)(X,"border"),ge=(0,l.i)(X,"fill"),pe=(0,l.i)(X,"shadow");let Ce=(0,l.i)(X,"refStyles");if((Y=Ce)!=null&&Y.appear){var me;Ce=(me=sdkStore.getHotItem(Ce.appear))==null||(me=me.hotAttr)==null?void 0:me.refStyles}return{attrs:{borderRadius:z,borderRadiusIsVisible:Z,borderVisibility:J,border:te,fill:ge,shadow:pe},refStyles:Ce}},V=j=>{var F,Y,X;if(!j||j.length===0)return h.oS;const z=(F=j==null?void 0:j.map(ge=>sdkStore.getHotItem(ge)))!=null?F:[],Z=(0,s.mj)({baseItem:(Y=z[0])==null?void 0:Y.hotAttr,isEditing:!1,richTextEditorState:null});let J=(0,l.i)(z,"refStyles");if((X=J)!=null&&X.text){var te;J=(te=sdkStore.getHotItem(J.text))==null||(te=te.hotAttr)==null?void 0:te.refStyles}return{attrs:{...r()(Z,M.F$)},refStyles:J}},Q=j=>j.map(F=>({...F,hotAttr:{...F.hotAttr,zIndex:0}})),N=async function(j){j===void 0&&(j=sdkStore);const F=P(j).map(ce=>({...ce,...ce.hotAttr})),Y=P().map(ce=>({...ce,...ce.hotAttr})),X=Q(H(j)),z=Q(H()),Z=[...Q(G({type:"all",sdk:j}))],J=[...Q(G({type:"all"}))],te=[...Z,...F,...X],ge=[...J,...Y,...z],pe=o()(ge,te,"key"),Ce=o()(te,ge,"key"),me=o()(Y,F,"mtime").filter(ce=>pe.findIndex(re=>re.key===ce.key)===-1),be=u()(Z,J,C()).filter(ce=>Ce.findIndex(re=>re.key===ce.key)===-1).map(ce=>J.find(re=>re.key===ce.key)),ie=u()(X,z,C()).filter(ce=>Ce.findIndex(re=>re.key===ce.key)===-1).map(ce=>z.find(re=>re.key===ce.key)),oe=[...me,...be,...ie],he=te.filter(ce=>pe.findIndex(re=>re.key===ce.key)===-1&&Ce.findIndex(re=>re.key===ce.key)===-1&&oe.findIndex(re=>re.key===ce.key)===-1);return{add:pe,del:Ce,chg:oe,noChg:he}},L=async j=>{let{libKey:F,oldStyleList:Y,oldMubanList:X,sclibSdkStore:z=sdkStore}=j;const Z=Q(Y),J=Q(G({type:"all",sdk:z})),te=P(z).map(Ce=>({...Ce,...Ce.hotAttr})),ge=[];return te.forEach(Ce=>{const me=X.find(be=>be.key===Ce.key);me&&(me.hotAttr.mtime===0&&Ce.hotAttr.mtime!==0||g()(me.hotAttr.mtime).isBefore(Ce.hotAttr.mtime))&&ge.push({...Ce,hotAttr:{...Ce==null?void 0:Ce.hotAttr,libKey:F}})}),[...u()(Z,J,C()).map(Ce=>{const me=J.find(be=>be.key===Ce.key);if(me)return{...me,hotAttr:{...me==null?void 0:me.hotAttr,libKey:F}}}).filter(Ce=>Ce),...ge]},U=j=>{let{supAttrArr:F,color:Y,key:X,val:z="",actionType:Z="update"}=j;if(F.length===1){Y[F[0]]?(Z==="update"&&(Y[F[0]][X]=z),Z==="del"&&delete Y[F[0]][X]):(Z==="update"&&(Y[F[0]]={[X]:z}),Z==="del"&&delete Y[F[0]]);return}for(let J=0;J<F.length-1;J++)typeof Y[F[J]]=="object"?U({supAttrArr:F.slice(1),color:Y[F[J]],key:X,val:z,actionType:Z}):Y[F[J]]===void 0&&(Y[F[J]]={[F[J+1]]:{}},U({supAttrArr:F.slice(1),color:Y[F[J]],key:X,val:z,actionType:Z}))},A=(j,F)=>F.hotAttr.zIndex-j.hotAttr.zIndex;function D(j,F){const Y=[];function X(z,Z){for(const J in z)if(Object.prototype.hasOwnProperty.call(z,J)){const te=z[J],ge=Z?Z+"-"+J:J;te===F?Y.push(ge):typeof te=="object"&&te!==null&&X(te,ge)}}return X(j,""),Y}const B=j=>{const F=document.querySelector('.lib-panel-content .lib-style-item[data-key="'+j+'"]'),Y=F==null?void 0:F.closest("section");if(F&&Y){const X=document.querySelector(".lib-panel-content");X&&(X.scrollTop=(F==null?void 0:F.offsetTop)+(Y==null?void 0:Y.offsetTop)-122||0)}}},2371:(He,ee,e)=>{"use strict";e.d(ee,{Eg:()=>r,jf:()=>n,k4:()=>c});const n=o=>{if(typeof o=="number")return{tl:o,tr:o,bl:o,br:o};{const{radiusTL:I,radiusTR:u,radiusBL:d,radiusBR:C}=o;return{tl:I,tr:u,bl:d,br:C}}},r=o=>o&&!!o.knobList,c=o=>typeof o!="number"},2827:(He,ee,e)=>{"use strict";e.d(ee,{z:()=>C});var n=e(79287),r=e.n(n),c=e(15515),o=e(17573),I=e(70812);const u="last_use_mkt_with_wm_date",d="2000-01-01",C=()=>{if(!(0,o._5)())return;const h=(0,c.Yt)(u,d,c.qW.String);(0,c.a0)(u,r()().format("YYYY-MM-DD"),c.qW.String),r()().isSame(h,"day")||(MB.action&&MB.action("reducer:watermark:update:is-show-up-mkt-tip",!0),I.U4.watermarkExposureTrack("corner"))}},3356:(He,ee,e)=>{"use strict";e.d(ee,{k:()=>l,A:()=>s});var n=e(95549),r=e(38502),c=e(39e3),o=e(78401),I=e(57479),u=e(79150),d=e(86594),C=e(93257),h=e(67787);const i=h.Ay.textarea.withConfig({displayName:"styles__StyledContentBox",componentId:"sc-182enj5-0"})(["&.batch-set-content-area{position:relative;width:100%;height:50px;padding:6px;border-radius:6px;outline:none;color:",";background-color:",";border:1px solid ",";overflow-y:auto;line-height:20px;user-select:text;resize:none;white-space:pre-line;transition:all 0.2s ease-out;cursor:auto;vertical-align:middle;&:hover,&:focus,&.active{border-color:",";}&:focus + .var-input-container.is-icon-button{display:none;}}&::-webkit-scrollbar{width:4px;}"],_=>_.theme.color_text_L1,_=>_.theme.color_bg_white,_=>_.theme.color_bg_border_02,_=>_.theme.color_proto),f=h.Ay.div.withConfig({displayName:"styles__StyledContainer",componentId:"sc-182enj5-1"})(["position:relative;.paste-icon{position:absolute;top:6px;right:6px;color:",";}"],_=>_.theme.color_text_L1);var p=e(72214);class s extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"setRef",b=>{this.$contentBox=b}),(0,n.A)(this,"handleFocus",()=>{const{disableModifyContentBox:b,onFocus:a}=this.props;a==null||a(),MB.f.editing=!0,b&&(this.$contentBox.blur(),MB.action("font:miss:modal:open"))}),(0,n.A)(this,"formatValue",b=>(this.props.canMultiline||(b=b.replace(/\n|\r|\r\n/gm," ")),b.split(/\n/))),(0,n.A)(this,"handleBlur",b=>{const{onBlur:a}=this.props,M=this.formatValue(b.target.value);typeof a=="function"&&M&&a(M),MB.f.editing=!1}),(0,n.A)(this,"handleKeyDown",b=>{b.key===I._.Enter&&!this.props.canMultiline&&b.preventDefault()}),(0,n.A)(this,"handleChange",b=>{const a=this.formatValue(b.target.value);this.props.onChange(a)}),(0,n.A)(this,"handlePaste",b=>{(0,o.kI)(b)})}componentWillUnmount(){MB.f.editing=!1}render(){const{content:b,placeholder:a}=this.props;return(0,p.jsx)(i,{ref:this.setRef,placeholder:a,className:"batch-set-content-area",value:b,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onPaste:this.handlePaste})}}class l extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"setRef",b=>{this.$contentBox=b}),(0,n.A)(this,"state",{isShowPasteIcon:this.props.content.length===0}),(0,n.A)(this,"handleFocus",b=>{b.target.select(),MB.f.editing=!0}),(0,n.A)(this,"washText",b=>b.replace(/\n|\r|\r\n/gm," ")),(0,n.A)(this,"handleBlur",b=>{let{target:{value:a}}=b;const{onBlur:M,onChange:x}=this.props;this.props.canMultiline||(a=this.washText(a));const g=a.split(/\n/);typeof M=="function"&&M(g),x(g),MB.f.editing=!1}),(0,n.A)(this,"handleKeyDown",b=>{setTimeout(()=>{this.$contentBox.value.length===0?this.state.isShowPasteIcon||this.setState({isShowPasteIcon:!0}):this.state.isShowPasteIcon&&this.setState({isShowPasteIcon:!1})},4),b.key===I._.Enter&&!this.props.canMultiline&&b.preventDefault()}),(0,n.A)(this,"handlePaste",b=>{(0,o.kI)(b)}),(0,n.A)(this,"handleClickOutSide",b=>{this.$contentBox&&this.$contentBox.contains(b.target)||this.$contentBox.blur()}),(0,n.A)(this,"handleIconPaste",async()=>{const{onChange:b,onBlur:a}=this.props,M=await(0,d.Oi)({isShowPrompt:!0}),x=this.washText(M||"");if(!this.$contentBox)return;this.$contentBox.value=x;const g=x.split(/\n/);b(g),this.setState({isShowPasteIcon:x.length===0}),a(g)})}componentDidUpdate(b){var a,M;((a=b.ita)==null?void 0:a.key)!==((M=this.props.ita)==null?void 0:M.key)&&this.setState({isShowPasteIcon:this.props.content.length===0})}componentWillUnmount(){this.$contentBox.value!==this.props.content&&this.handleBlur({target:{value:this.$contentBox.value}})}render(){const{content:b,placeholder:a,ita:M,className:x}=this.props;return(0,p.jsxs)(f,{className:x,children:[(0,p.jsx)(i,{ref:this.setRef,placeholder:a,className:"batch-set-content-area",defaultValue:b,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onPaste:this.handlePaste,maxLength:"1000"},M==null?void 0:M.key),this.state.isShowPasteIcon&&(0,p.jsx)(C.A,{content:I18N.Interaction.paste_please,children:(0,p.jsx)(u.A,{name:"interaction/hyperlink_paste",className:"paste-icon",onClick:this.handleIconPaste})}),(0,p.jsx)(c.A,{target:document,onMouseDown:(0,c.t)(this.handleClickOutSide,{capture:!0})})]})}}},3507:(He,ee,e)=>{"use strict";e.d(ee,{X:()=>I});var n=e(95549),r=e(38502),c=e(33568),o=e(72214);class I extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleChange",(d,C)=>{const{onChange:h,dispatch:i}=this.props;h&&h({value:d,attr:C,dispatch:i})}),(0,n.A)(this,"handleFakeOverrideChange",d=>{const{supAttr:C,dispatch:h,onFakeOverrideChange:i}=this.props;if(typeof i=="function"){i(d);return}h({type:"entry:set:text:attr:fakeOverride",payload:{attrValueList:d,supAttr:C,isTreeSelectNode:C==="wTree-selectNode"}})})}render(){const{fontFamily:d,fontWeight:C,fontStyle:h,wbiVersion:i,subMenuDirection:f,subMenuLeftOffset:p,isShowFontWeightLabel:s,isTextEditing:l,positionRelative:_={xOffset:0,yOffset:0},hasMissFontHi:b,isMissFont:a,fontSize:M,lineHeight:x,onChangeBatch:g,dispatch:S}=this.props;return(0,o.jsx)("div",{className:"font-group font-line height-32",children:(0,o.jsx)(c.A,{fontFamily:d,isTextEditing:l,fontWeight:C,fontStyle:h,handleChange:this.handleChange,wbiVersion:i,dispatch:S,subMenuDirection:f,subMenuLeftOffset:p,isShowFontWeightLabel:s,handleChangeBatch:g,handleFakeOverrideChange:this.handleFakeOverrideChange,positionRelative:_,hasMissFontHi:b,isMissFont:a,fontSize:M,lineHeight:x})})}}},3877:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>h});var n=e(38502),r=e(25582),c=e.n(r),o=e(17307),I=e(67787),u=e(72214);const d=i=>{let{className:f="",renderContent:p,customIconName:s}=i;return(0,u.jsxs)(C,{className:f,children:[(0,u.jsx)(o.C,{name:s||"design/warning",className:"tip-icon"}),(0,u.jsx)("div",{className:"reminder-tips",children:p()})]})};d.propTypes={renderContent:c().func};const C=I.Ay.a.withConfig({displayName:"HelpReminder__StyledHelpReminder",componentId:"sc-1r5piyy-0"})(["display:flex;align-items:center;margin-left:2px;position:relative;.tip-icon{width:16px;height:16px;color:",";&:hover{color:",";}}.svg-icon{.main{fill:",";}.secondary{fill:#ededed;}}&.fixed-reminder-tips{.reminder-tips{position:fixed;}}.reminder-tips{display:flex;visibility:hidden;transition-delay:0.3s;transition-property:visibility;}&:hover{.reminder-tips{visibility:visible;transition-delay:0s;transition-property:visibility;}}"],i=>i.theme.color_text_L2,i=>i.theme.color_text_L1,i=>i.theme.color_text_L3),h=d},4179:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>o});var n=e(38502),r=e(71272);const o=I=>{let{onMouseDown:u,onClick:d,onDoubleClick:C}=I;const h=(0,n.useRef)(!1),[i,f]=(0,n.useState)(!1),p=(0,n.useRef)(null),s=function(a){for(var M=arguments.length,x=new Array(M>1?M-1:0),g=1;g<M;g++)x[g-1]=arguments[g];a.persist(),a.preventDefault(),a.stopPropagation();let S=!0,t=!1;h.current=!1;const v=k=>{S&&(t=Math.abs(k.clientX-a.clientX)>5||Math.abs(k.clientY-a.clientY)>5,t&&(f(!0),u&&u(a,...x),S=!1))},w=()=>{S=!1,h.current=t,t=!1,f(!1),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",w)};document.addEventListener("mousemove",v),document.addEventListener("mouseup",w)},l=(0,n.useCallback)(()=>{p.current&&(clearTimeout(p.current),p.current=null)},[p]),_=(0,n.useCallback)(function(a){for(var M=arguments.length,x=new Array(M>1?M-1:0),g=1;g<M;g++)x[g-1]=arguments[g];l(),p.current=setTimeout(()=>{p.current=null,d&&d(a,...x)},r.xG)},[p,l,d]),b=(0,n.useCallback)(function(a){l();for(var M=arguments.length,x=new Array(M>1?M-1:0),g=1;g<M;g++)x[g-1]=arguments[g];C&&C(a,...x)},[l,C]);return{isMoveAfterClick:h,isDragging:i,handleMouseDown:s,handleClick:_,handleDoubleClick:b}}},4410:(He,ee,e)=>{"use strict";e.d(ee,{pv:()=>Le,lc:()=>Me,ow:()=>Ie,QI:()=>xe,WP:()=>de,Ai:()=>Ce,ob:()=>be,Su:()=>me,aJ:()=>ce,UL:()=>pe,PK:()=>ge,Q7:()=>fe,dD:()=>Se,en:()=>re,lY:()=>Y,g:()=>j,xy:()=>je,F6:()=>ve,ZZ:()=>L,WQ:()=>A});var n=e(70768),r=e(69623),c=e(74222),o=e(32424);let I=function(We){return We.landscape="landscape",We.portrait="portrait",We}({});const u="dummy-screen-meta-cid";var d=e(37320),C=e(50001),h=e(68863),i=e(547),f=e(20089),p=e(70933),s=e(25997),l=e(4235),_=e(65057),b=e(63902),a=e(62280),M=e(22835),x=e(93e3),g=e(30728),S=e(79770),t=e(14166),v=e(3862),w=e(85449),k=e(79209),W=e(8580),K=e(89054),G=e(34121),$=e(96788),P=e(73662),E=e(75006),H=e(92598),O=e(24229),V=e(85584);const Q={dragging:"RrZKprPGiEqkxEELaP57","dragging-template":"WVRqDWvrnmzMpK3ZflPA"};var N=e(72214);const L=We=>{var Ae;if(!(We!=null&&We.length))return"";const we=We.sort((Te,Ye)=>sdkStore.findUpHotItemList(Te).length-sdkStore.findUpHotItemList(Ye).length)[0],_e=sdkStore.getHotItem(we);return _e!=null&&_e.sup&&((Ae=sdkStore.getHotItem(_e==null?void 0:_e.sup))==null||(Ae=Ae.hotAttr)==null?void 0:Ae.type)===f.x.WWrap?_e.sup:""},U=(We,Ae,we)=>[f.x.WCarousel,f.x.WMapView].includes(We)?{width:200,height:100}:We===f.x.WImage&&(Ae>109||we>109)?{width:109,height:109}:{width:Ae,height:we},A=function(We,Ae){Ae===void 0&&(Ae=u);const we=new Map,_e=[];We.forEach(Fe=>{const Ve=(0,o.kt)(),rt={hotAttr:{...Fe},key:Ve,sup:Ae};return Fe.type===f.x.WTear&&(rt.hotAttr.tearMode=!0),_e.push(Ve),we.set(Ve,rt),rt});const Te={key:Ae,hotAttr:{type:"rResBunch",bunch:"rbPage"},sub:_e};we.set(Te.key,Te);const Ye={};return Ye.getHotItem=Fe=>we.get(Fe),Ye.getHotItemTL=Fe=>{const Ve=we.get(Fe);return{...Ve,hotAttr:{...Ve.hotAttr,xTL:Ve.hotAttr.x-Ve.hotAttr.w/2,yTL:Ve.hotAttr.y-Ve.hotAttr.h/2}}},Ye.getHotAABB=Fe=>{const{w:Ve,h:rt}=we.get(Fe).hotAttr;return(0,t.CD)((0,t.F1)(),Ve,rt)},Ye.getInteractionsOf=()=>[],Ye.getCCSBound2308=Fe=>{const{x:Ve=0,y:rt=0,r:Ue=0,w:et=0,h:lt=0}=we.get(Fe).hotAttr;return{x:Ve,y:rt,r:Ue,w:et,h:lt}},Ye.getHotKeyAABB=Fe=>{const{x:Ve=0,y:rt=0,r:Ue=0,w:et=0,h:lt=0}=we.get(Fe).hotAttr;return[Ve-et/2,rt-lt/2,et,lt]},new E.A(Ye,Ae,E.A.MODE.snapshot)},D=(We,Ae,we,_e,Te)=>{const{device:Ye,model:Fe}=_e,Ve=document.createElement("div");Ve.className=Q.dragging+" "+Ye+" "+Fe,Ve.style.width=Ae+"px",Ve.style.height=we+"px",Ve.style.transformOrigin="top left",Ve.style.transition="all 0.2s ease-in-out;",Ve.style.transform="translateZ(0)",Ve.style.willChange="transform",Ve.style.display="none";const rt=We.getRootSnapshot(),Ue={sdkStore:We,...Te},et=(0,n.createRoot)(Ve);(0,r.flushSync)(()=>{et.render((0,N.jsx)(H.o,{mode:"snapshot",hotItem:rt,treeData:Ue}))});const lt=Ve.innerHTML;return et.unmount(),We.destory(),Ve.innerHTML=lt,Ve},B=We=>{let{width:Ae,height:we}=We;const _e=document.createElement("div");return _e.className=Q["dragging-template"],_e.style.width=Ae+"px",_e.style.height=we+"px",_e.style.transition="all 0.2s ease-in-out;",_e},j=We=>{var Ae;const we=(0,w.PV)(We);return(Ae=document.getElementById(we))==null?void 0:Ae.getBoundingClientRect()},F=(We,Ae,we,_e)=>{const Te=document.createElement("div");Te.className=""+Q.dragging,Te.style.width=we+"px",Te.style.height=_e+"px",Te.style.transformOrigin="top left",Te.style.transition="all 0.2s ease-in-out;",Te.style.transform="translateZ(0)",Te.style.willChange="transform";const Ye={...Ae};Ye.getHotItem=et=>{const lt=Ae.getHotItem(et);return lt.hotAttr.type===f.x.WTear&&(lt.hotAttr.tearMode=!0),lt};const Fe=new E.A(Ye,We.key,E.A.MODE.snapshot),Ve=Fe.getRootSnapshot(),rt={sdkStore:Fe};return(0,n.createRoot)(Te).render((0,N.jsx)(H.o,{mode:"snapshot",hotItem:Ve,treeData:rt})),Te},Y=function(We,Ae,we){we===void 0&&(we=!1);const{sub:_e}=We,Te=_e.filter(lt=>{var Je;return((Je=Ae.getHotItem(lt))==null||(Je=Je.hotAttr)==null?void 0:Je.bunch)!==f.x.RbPage}),Ye=we?Te.filter(lt=>{var Je;return![f.x.WSticky,f.x.WTear].includes((Je=Ae.getHotItem(lt))==null||(Je=Je.hotAttr)==null?void 0:Je.type)}):Te;if(!(Ye!=null&&Ye.length))return{x:0,y:0,w:0,h:0};const Fe=Ae.getHotKeyListAABB(Ye),[Ve,rt]=Fe,{w:Ue,h:et}=(0,a.T3)(Fe);return{x:Ve,y:rt,w:Ue,h:et}},X=We=>{if(!We.length)return!0;const Ae=we=>{var _e;return we.name||((_e=we.hotAttr)==null?void 0:_e.type)};return We.length===1?Ae(We[0])!==f.x.WSticky:!We.every(we=>[f.x.WSticky,f.x.WTear].includes(Ae(we)))},z=We=>{let{scale:Ae,start:we,drag:_e,end:Te,canvasRect:Ye,showDragMode:Fe,isAdsorbentReferenceLine:Ve,onMouseMove:rt}=We;const Ue=Z({...we,scale:Ae,showDragMode:Fe,isAdsorbentReferenceLine:Ve});if(!Ue)return;const{alignUtil:et}=Ue,{onMoveHandler:lt,alignedPosition:Je}=J({alignUtil:et,...we,..._e,scale:Ae,canvasRect:Ye,showDragMode:Fe,isAdsorbentReferenceLine:Ve,onMouseMove:rt}),Xe=te({scale:Ae,onMoveHandler:lt,alignedPosition:Je,...we,...Te});document.addEventListener("mousemove",lt),document.addEventListener("mouseup",Xe)},Z=We=>{let{scale:Ae,e:we,$draggingPuppet:_e,showDragMode:Te,isAdsorbentReferenceLine:Ye}=We;if(we.button!==0)return null;we.preventDefault(),MB.action("reducer:flag:set:is-dragging-item",{isDraggingItem:!0}),document.body.appendChild(_e);let Ve=null;return(Te||Ye)&&(Ve=(0,d.ay)({movableItems:[],createSnapper:Te?C.WY:d.xb,viewport:{scale:Ae/100}})),{alignUtil:Ve}},J=We=>{let{e:Ae,scale:we,$draggingPuppet:_e,alignUtil:Te,hideChecker:Ye,itemSize:Fe,isTemplate:Ve=!0,isTear:rt=!1,canHover:Ue=!1,moveCallback:et,isToolbarCreate:lt=!1,showDragMode:Je,isAdsorbentReferenceLine:Xe,comboPos:st={x:0,y:0},onMouseMove:nt}=We;const tt={},ct=we/100;let ht=!1;const It=Ae.clientX,it=Ae.clientY;let Tt=Fe.width,Lt=Fe.height;const Rt=Kt=>{if(Kt.preventDefault(),ht=ht||Math.abs(Kt.clientX-It)>1||Math.abs(Kt.clientY-it)>1,!ht)return;nt&&nt(),MB.action("entry:resources:escape:template");const Gt=!!(Ye&&Ye(Kt));if(lt&&Gt)return;lt&&!Gt&&MB.action("set:quick-create-widget",{widget:null});let St={width:Fe.width,height:Fe.height};const Hn=MB.__store__.getState(),uo=(0,p.ER)(Hn),Po=(0,p.$S)(Hn),Yn=(0,p.Ur)(Hn),bo=(0,l.p$)(Hn),Ke=(0,_.mG)(Kt,{scale:we,offset:uo,viewportRect:Po});if(Gt){const kn=Fe.width/Fe.height;Tt=Math.min(Fe.width,224),Lt=Tt/kn}else Tt=Fe.width,Lt=Fe.height;const ut=g.Z.xy(Ke.x-Tt/2,Ke.y-Lt/2);St={...St,left:Math.round(ut.x),top:Math.round(ut.y)};let{top:zt,left:bt}=St;if(!Gt&&(Je||Xe)){const gn=(0,s.UV)(Hn).getRootSnapshot().key,Zn=(0,S.Tg)(Ke,gn),Pn=Te({_rect:St,sup:Zn||gn});({top:zt,left:bt}=Pn),MB.action("set:alignment",{alignment:Pn.alignment}),MB.action("set:sameSize",{alignment:Pn.sameSize}),MB.action("set:distributed",{distributed:Pn.distributed})}if(Wt({e:Kt,dataDoNotCreateValue:Gt,viewport:{scale:ct,size:Po,offset:uo},left:bt,top:zt,comboPos:st}),tt.top=zt,tt.left=bt,!Gt){const kn=Kt.ctrlKey||Kt.metaKey;let gn="";Ue&&(gn=(0,_.nS)({isTear:rt,world:Ke,scale:we,newSelection:bo,currentPageKey:Yn.cid,isCtrlDown:kn,event:Kt}),MB.action("mode:update:hover:item",gn)),et&&et({left:bt,top:zt,hoverItem:gn})}},Wt=Kt=>{let{e:Gt,dataDoNotCreateValue:St,viewport:Hn,left:uo,top:Po,comboPos:Yn}=Kt;_e.setAttribute("data-do-not-create",St);const bo=x.L.apply(Hn,g.Z.xy(uo,Po)),{top:Ke,height:ut}=Hn.size,{x:zt,y:bt}=g.Z.add(bo,g.Z.xy(window.innerWidth/2,Ke+ut/2));_e.style.display="block",_e.style.top=bt-Yn.y*Hn.scale+"px",_e.style.left=zt-Yn.x*Hn.scale+"px";const xn=St;_e.style.width=Tt*(xn?1:ct)+"px",_e.style.height=Lt*(xn?1:ct)+"px",Ve||(_e.style.transform="scale("+(xn?1:ct)+")")};return{onMoveHandler:Rt,alignedPosition:tt}},te=We=>{let{scale:Ae,onMoveHandler:we,alignedPosition:_e,$draggingPuppet:Te,fetchData:Ye,createItemDispatcher:Fe,handleCancel:Ve,callback:rt,successTip:Ue}=We;const et=MB.__store__.getState(),lt=(0,s.UV)(et),Je=(0,p.ER)(et),Xe=(0,p.$S)(et),st=(0,l.p$)(et),nt=L(st),tt=lt.getRootSnapshot().key,ct=async ht=>{document.removeEventListener("mousemove",we),document.removeEventListener("mouseup",ct);const It=Te.getAttribute("data-do-not-create"),it=Te.style.display==="block"&&!JSON.parse(It);if(MB.action("reducer:flag:set:is-dragging-item",{isDraggingItem:!1}),MB.action("ST:update",{isLeftDown:!0}),Te.remove(),MB.action("set:alignment",{alignment:{}}),MB.action("set:sameSize",{sameSize:{}}),MB.action("set:distributed",{distributed:{}}),MB.action("elbow:update",{isDraggingElbow:!1}),!it){Ve&&Ve();return}if(!(0,i.El)(ht.pageX,ht.pageY,Xe)){Ve&&Ve();return}const Lt={..._e};if(nt)Lt.sup=nt;else{const Rt=(0,_.mG)(ht,{scale:Ae,offset:Je,viewportRect:Xe}),Wt=(0,S.Tg)(Rt,tt);Wt&&(0,W.Op)(Wt)&&(Lt.sup=Wt)}Ye&&await Ye(),Fe(Lt),rt&&rt(),Ue&&MB.notice({text:Ue})};return ct},ge=We=>{let{e:Ae,template:we,thumbnailRect:_e,canvasRect:Te,scale:Ye,showDragMode:Fe,isAdsorbentReferenceLine:Ve,createLocalRefPageFromLib:rt,callback:Ue}=We;const et=we.hotAttr,lt=B({width:et.w,height:et.h});z({scale:Ye,canvasRect:Te,showDragMode:Fe,isAdsorbentReferenceLine:Ve,start:{e:Ae,$draggingPuppet:lt},drag:{itemSize:{width:et.w,height:et.h},hideChecker:Je=>(0,i.El)(Je.clientX,Je.clientY,_e)},end:{fetchData:null,createItemDispatcher:async Je=>{let{top:Xe,left:st,sup:nt}=Je;if(!(0,k._c)({type:"basket",count:1}))return;await rt();const tt=(0,h.M)(we);MB.action("entry:batch:create:items",{data:[{items:[tt]}],offset:{top:Xe,left:st},sup:nt})},callback:Ue}})},pe=async(We,Ae)=>{if(!(0,k._c)({type:"basket",count:1}))return;MB.action("entry:resources:escape:template"),await Ae();const we=(0,h.M)(We),_e=[{items:[we],width:we.w,height:we.h}];MB.action("entry:batch:create:items",{data:_e});const Te=We.isTemplate?I18N.dUtils.master_create_success:I18N.dUtils.widget_create_success;MB.notice({text:Te})},Ce=async We=>{let{template:Ae,mtSdkStore:we,callback:_e}=We;const Te=(0,k.UU)({sdk:we}),Ye=(0,k.Uu)(we);if((0,k._c)({type:f.x.RbPage,count:Ye})&&(0,k._c)({type:"widget",count:Te})){var Ve;sdkStore.combineMergeMark("used-template-file-in-proto");const rt=((Ve=sdkStore.getHotItem("B@main"))==null||(Ve=Ve.sub)==null?void 0:Ve.length)+1,Ue=(0,G.Hz)({name:Ae.title,zIndex:rt,sup:"B@main",asFolder:!0});let et="";const lt=new Map,Je=we.findAllTypeUnder(c.$k,"rResBunch").filter(Xe=>Xe.hotAttr.bunch==="rbPage").map(Xe=>{const st=(0,O.cF)("rbp");return lt.set(Xe.key,st),{...Xe,sup:Xe.sup==="B@main"?Ue.key:Xe.sup}});for(const Xe of Je){const st={...Xe,key:lt.get(Xe.key)||Xe.key,sup:lt.get(Xe.sup)||Xe.sup};if(st.hotAttr.asFolder)sdkStore.updateHotItem(st);else{sdkStore.updateHotItem(st);const nt=we.findAllTypeUnder(Xe.key,"rResCanvas").map(ct=>ct.key),tt=we.saveSubtree(nt);rootSdk.sdkStore.loadSubtree(tt,st==null?void 0:st.key,0,0)}}et=(0,V.pH)(sdkStore.getHotItem(Ue.key)),sdkStore.combineMerge("used-template-file-in-proto"),MB.action("entry:update:screen:list"),_e(et)}else _e()},me=We=>{let{e:Ae,marketTemplate:we,mtSdkStore:_e,doNotCreateRect:Te,callback:Ye,scale:Fe,canvasRect:Ve,currentEditorMode:rt,ghostItemCids:Ue,showDragMode:et,isAdsorbentReferenceLine:lt}=We;we.type===v.t_?ie({e:Ae,marketTemplate:we,mtSdkStore:_e,doNotCreateRect:Te,callback:Ye,scale:Fe,canvasRect:Ve,showDragMode:et,isAdsorbentReferenceLine:lt}):oe({e:Ae,marketTemplate:we,mtSdkStore:_e,doNotCreateRect:Te,callback:Ye,scale:Fe,canvasRect:Ve,currentEditorMode:rt,ghostItemCids:Ue,showDragMode:et,isAdsorbentReferenceLine:lt})},be=We=>{let{e:Ae,marketTemplate:we,store:_e,scale:Te}=We;we.type===v.t_?xe({e:Ae,combo:we,store:_e,scale:Te}):he({e:Ae,combo:we,store:_e,scale:Te})},ie=We=>{let{e:Ae,marketTemplate:we,mtSdkStore:_e,doNotCreateRect:Te,callback:Ye,scale:Fe,canvasRect:Ve,showDragMode:rt,isAdsorbentReferenceLine:Ue}=We;const et=_e.getHotItem(we.key),{w:lt,h:Je}=Y(et,_e),Xe={width:lt,height:Je},st=B(Xe),nt=_e.getSubHotItemList(we.key),tt=nt.length===1&&nt[0].hotAttr.type===f.x.WTear,ct=(0,k.UU)({initKeyList:[we.key],sdk:_e}),ht=(0,k._c)({type:"widget",count:ct},!1),It=X(nt);let it="";z({scale:Fe,canvasRect:Ve,showDragMode:rt,isAdsorbentReferenceLine:Ue,start:{e:Ae,$draggingPuppet:st},drag:{itemSize:Xe,hideChecker:Tt=>(0,i.El)(Tt.clientX,Tt.clientY,Te),isTear:tt,canHover:It,moveCallback:Tt=>{let{hoverItem:Lt}=Tt;tt&&(it=Lt)}},end:{createItemDispatcher:async Tt=>{let{top:Lt,left:Rt,sup:Wt}=Tt;if(!(0,k._c)({type:"widget",count:ct}))return;sdkStore.combineMergeMark("create-market-template");const Kt=_e.getSubHotItemList(et.key).filter(ut=>{let{key:zt,hotAttr:{type:bt}}=ut;return bt===f.x.Canvas}),Gt=MB.getCurrentScreen().cid;let St=Gt;!(Kt!=null&&Kt.length)&&Wt&&(St=Wt);const Hn=g.Z.xy(Rt,Lt),uo=MB.__store__.getState(),Po=(0,l.p$)(uo),Yn=(0,b.RQ)(we.key,_e,Hn,Gt,Po);if((Yn==null?void 0:Yn.length)===1){var bo;const ut=sdkStore.getHotItem(Yn[0]);(ut==null||(bo=ut.hotAttr)==null?void 0:bo.type)===f.x.WTear&&it&&sdkStore.updateHotAttrKV(Yn[0],"refWCKey",it)}Yn.some(ut=>{const zt=sdkStore.getHotItem(ut);return[f.x.WTear,f.x.WSticky].includes(zt.hotAttr.type)})&&MB.action("toolbar:update:state",{isShowSticky:!0}),MB.action("entry:select:items",{cids:Yn}),MB.action("entry:refresh:link-list"),MB.action(P.y.entryKey["font:cloudFontExtList:refresh"]),MB.action("entry:publish:create:items:success",{newKeys:Yn}),sdkStore.combineMerge("create-market-template")},callback:ht?Ye:null}})},oe=We=>{let{e:Ae,marketTemplate:we,mtSdkStore:_e,doNotCreateRect:Te,callback:Ye,scale:Fe,canvasRect:Ve,currentEditorMode:rt,ghostItemCids:Ue,showDragMode:et,isAdsorbentReferenceLine:lt}=We;const{w:Je,h:Xe}=Y({sub:[we.key]},_e),st={width:Je,height:Xe},nt=B(st),tt=(0,k.UU)({initKeyList:[we.key],sdk:_e}),ct=(0,k._c)({type:f.x.Canvas,count:1},!1)||(0,k._c)({type:"widget",count:tt},!1);z({scale:Fe,canvasRect:Ve,showDragMode:et,isAdsorbentReferenceLine:lt,start:{e:Ae,$draggingPuppet:nt},drag:{itemSize:st,hideChecker:ht=>(0,i.El)(ht.clientX,ht.clientY,Te)},end:{createItemDispatcher:async ht=>{let{top:It,left:it}=ht;if(!(0,k._c)({type:f.x.Canvas,count:1})||!(0,k._c)({type:"widget",count:tt}))return;const Tt=[we.key],Lt=MB.getCurrentScreen().cid,Rt=_e.saveSubtree(Tt),Wt=g.Z.xy(it,It),Kt=(0,b.BB)({data:Rt,worldPos:Wt,keyRndSup:Lt,currentPageKey:Lt});MB.action("entry:select:items",{cids:Kt}),MB.action("entry:refresh:link-list"),MB.action(P.y.entryKey["font:cloudFontExtList:refresh"]),MB.action("entry:publish:create:items:success",{newKeys:Kt})},callback:ct?Ye:null}})},he=We=>{let{e:Ae,combo:we,store:_e,scale:Te}=We;if(Ae.button!==0)return;const Ye=(0,k.UU)({initKeyList:[we.key],sdk:_e});if(!(0,k._c)({type:f.x.Canvas,count:1})||!(0,k._c)({type:"widget",count:Ye}))return;MB.action("entry:resources:escape:template");const{w:Fe,h:Ve}=Y({sub:[we.key]},_e),{left:rt,top:Ue}=(0,M.u5)({width:Fe,height:Ve,scale:Te}),et=g.Z.xy(rt,Ue),lt=MB.getCurrentScreen().cid,Je=[we.key],Xe=_e.saveSubtree(Je),st=(0,b.BB)({data:Xe,worldPos:et,keyRndSup:lt,currentPageKey:lt});MB.action("entry:select:items",{cids:st}),MB.action("entry:refresh:link-list"),MB.action(P.y.entryKey["font:cloudFontExtList:refresh"]),MB.action("entry:publish:create:items:success",{newKeys:st}),MB.notice({text:I18N.Resources.user_resource_panel.success_create_page})},ce=(We,Ae,we)=>{const _e=MB.getScale(),Te=MB.__store__.getState(),Ye=(0,p.ER)(Te),Fe=(0,p.$S)(Te),Ve=MB.getCurrentScreen().cid,rt=(0,_.mG)(We,{scale:_e,offset:Ye,viewportRect:Fe}),Ue=g.Z.xy(rt.x+We.clientX/_e,rt.y+We.clientY/_e);let et=[],lt=Ue;Ae.forEach((Je,Xe)=>{let[st,nt]=Je;const tt=st.map(ht=>ht.key),ct=(0,k.UU)({initKeyList:tt,sdk:nt});!(0,k._c)({type:f.x.Canvas,count:tt.length})||!(0,k._c)({type:"widget",count:ct})||st.forEach((ht,It)=>{const{key:it,hotAttr:{w:Tt}}=ht,Lt=[it],Rt=nt.saveSubtree(Lt),Wt=(0,b.BB)({data:Rt,worldPos:lt,keyRndSup:Ve,currentPageKey:Ve});et=[...et,...Wt],lt=g.Z.add(lt,g.Z.xy(Tt+20,0)),we(ht)})}),MB.action("entry:select:items",{cids:et}),MB.action(P.y.entryKey["font:cloudFontExtList:refresh"]),MB.action("entry:publish:create:items:success",{newKeys:et}),MB.notice({text:I18N.Resources.user_resource_panel.success_create_page})},re=async(We,Ae,we)=>{const _e=MB.getScale(),Te=MB.__store__.getState(),Ye=(0,s.UV)(Te),Fe=MB.getCurrentScreen().cid,Ve=(0,p.ER)(Te),rt=(0,p.$S)(Te);let Ue=Fe;const et=(0,_.mG)(We,{scale:_e,offset:Ve,viewportRect:rt}),lt=(0,S.Tg)(et,Ye.getRootSnapshot().key),Je=g.Z.xy(et.x+We.clientX/_e,et.y+We.clientY/_e);let Xe=[];const st=Ae.map(it=>{if((it==null?void 0:it.length)===2){const[Tt,Lt]=it;return Tt.map(Wt=>Lt.getSubHotItemList(Wt.key).filter(Kt=>{let{key:Gt,hotAttr:{type:St}}=Kt;return St===f.x.Canvas}))}return[]}).flat(1/0);st!=null&&st.length||(Ue=lt!=null?lt:Ue);let nt=!1;if(Ae!=null&&Ae.length){var tt;if((tt=Ae[0])!=null&&tt.length){var ct;nt=(ct=Ae[0])==null||(ct=ct[2])==null?void 0:ct.isTemplate}}const ht=Ae.reduce((it,Tt)=>{if([f.x.WIcon,f.x.WImage].includes(Tt==null?void 0:Tt.type))it+=1;else if(nt){const[Lt]=Tt;it+=Lt==null?void 0:Lt.length}else if((Tt==null?void 0:Tt.length)===2){const[Lt,Rt]=Tt,Wt=Lt.map(Gt=>Gt.key),Kt=(0,k.UU)({initKeyList:Wt,sdk:Rt});it+=Kt}return it},0);if(!(0,k._c)({type:nt?"basket":"widget",count:ht})){MB.action("update:screenContainer:state",{createTemplatesData:null});return}sdkStore.combineMergeMark("create-widgets-by-templates");let It=Je;for(const it of Ae)if([f.x.WIcon,f.x.WImage].includes(it==null?void 0:it.type)){MB.action("entry:batch:create:items",{data:[{items:[it]}],offset:{top:It.y,left:It.x},sup:Ue});const Tt=(0,l.p$)(MB.__store__.getState());Xe=[...Xe,...Tt],It=g.Z.add(It,g.Z.xy(10,10)),we(it)}else if(nt){const[Tt,Lt,{createLocalRefPageFromLib:Rt}]=it;Rt&&(await Rt(),Tt.forEach(Wt=>{const Kt=(0,h.M)(Wt);Kt&&(MB.action("entry:batch:create:items",{data:[{items:[Kt]}],offset:{top:It.y,left:It.x},sup:Ue}),It=g.Z.add(It,g.Z.xy((Kt==null?void 0:Kt.w)+10,0)))}))}else if((it==null?void 0:it.length)===2){const[Tt,Lt]=it;Tt.forEach((Rt,Wt)=>{const Kt=Lt.getHotItem(Rt==null?void 0:Rt.key);if(Kt){const{w:Gt,h:St}=Y(Kt,Lt),Hn=(0,b.CU)({combo:Kt,worldPos:It,size:{width:Gt,height:St},keyRndSup:Ue,currentPageKey:Fe,store:Lt});Xe=[...Xe,...Hn],It=g.Z.add(It,g.Z.xy(Gt+10,0)),we(Rt)}})}nt||(MB.action("entry:select:items",{cids:Xe}),MB.action(P.y.entryKey["font:cloudFontExtList:refresh"]),MB.action("entry:publish:create:items:success",{newKeys:Xe}),MB.notice({text:I18N.dUtils.widget_create_success})),MB.action("update:screenContainer:state",{createTemplatesData:null}),sdkStore.combineMerge("create-widgets-by-templates")},fe=(We,Ae,we)=>{if(We&&We.length&&!(0,k._c)({type:We[0].type,count:We.count}))return;MB.action("entry:batch:create:items",{data:[{items:We,width:Ae,height:we}],source:"click"});const _e=We.every(Te=>Te.type===f.x.Canvas);MB.notice({text:_e?I18N.dModals.artboard_create_success:I18N.dUtils.widget_create_success})},Se=We=>{var Ae;let{e:we,items:_e,width:Te,height:Ye,doNotCreateRect:Fe,callback:Ve,isToolbarCreate:rt=!1,scale:Ue=MB.getScale(),canvasRect:et=MB.getCanvasRect(),rootProject:lt,showDragMode:Je,isAdsorbentReferenceLine:Xe,onMouseMove:st=null}=We;const nt=A(_e),tt=D(nt,Te,Ye,lt),ct={width:Te,height:Ye},ht=_e.length===1&&_e[0].name===f.x.WTear,It=_e.length===1&&_e[0].name===f.x.WSticky,it=ht,Tt=_e.length>0?(0,k._c)({type:_e[0].type,count:_e.count},!1):!0;let Lt=_e;z({canvasRect:et,scale:Ue,showDragMode:Je,isAdsorbentReferenceLine:Xe,start:{e:we,$draggingPuppet:tt},drag:{itemSize:ct,isToolbarCreate:rt,dragSize:U((Ae=_e[0])==null?void 0:Ae.name,Te,Ye),hideChecker:Rt=>(0,i.El)(Rt.clientX,Rt.clientY,Fe),isTemplate:!1,isTear:ht,canHover:it,moveCallback:Rt=>{let{left:Wt,top:Kt,hoverItem:Gt}=Rt;if(ht){Lt=_e.map(Hn=>({...Hn,refWCKey:Gt}));const St=A(Lt);tt.innerHTML=D(St,100,100,lt).innerHTML}else if(It){const St=_e[0],Hn=[Wt-80,Kt,Wt-80+St.w,Kt+St.h];Lt=_e.map(Yn=>({...Yn}));const uo=A(Lt),Po=Yn=>{let{fakeBindingInfo:bo,fakePointToDir:Ke}=Yn;tt.innerHTML=D(uo,100,100,lt,{fakeBindingInfo:bo,fakePointToDir:Ke,fakeAABB:Hn}).innerHTML};MB.action("entry:ST:drag:sticky:point:fake:bind",{stickyKey:"fake",stickyAABBP:Hn,callback:Po})}}},end:{createItemDispatcher:Rt=>{let{top:Wt,left:Kt,sup:Gt}=Rt;(0,k._c)({type:_e[0].type,count:_e.count})&&(Lt=Lt.map(St=>{if(St.type===f.x.WRichText){const Hn=(0,K.gg)(St);return{...St,...Hn}}if(St.type===f.x.WTear||St.type===f.x.WSticky){const{tearFlag:Hn,name:uo,userCid:Po}=(0,$.wl)();return{...St,info:(0,$.wh)(Hn,uo,Po)}}return St}),MB.action("entry:batch:create:items",{data:[{items:Lt}],offset:{top:Wt,left:Kt},sup:Gt}))},handleCancel:()=>{},callback:Tt?Ve:null},onMouseMove:st})},Me=async(We,Ae)=>{if(We.button!==0||!(0,k._c)({type:"widget",count:1}))return;const we=MB.__store__.getState(),Te=(0,s.UV)(we).getRootSnapshot().key,Ye=(0,p.X_)(we),Fe=(0,p.Ur)(we),{width:Ve,height:rt}=Ae,{left:Ue,top:et}=(0,M.u5)({width:Ve,height:rt,scale:Ye}),lt=g.Z.xy(Ue,et);let Je=Fe==null?void 0:Fe.cid;const Xe=(0,S.Tg)(lt,Te);Xe&&(0,W.Op)(Xe)&&(Je=Xe),MB.action("entry:paste:items",{data:Ae.data,worldPos:lt,keyRndSup:Je,commonKeyRndSup:Je,isPaste:!1}),MB.notice({text:I18N.dUtils.widget_create_success})},Ie=We=>{let{e:Ae,template:we,doNotCreateRect:_e,callback:Te,scale:Ye=Math.round(MB.getScale()),canvasRect:Fe=MB.getCanvasRect(),showDragMode:Ve,isAdsorbentReferenceLine:rt,onMouseMove:Ue=null}=We;const et=B(we),lt=(0,k._c)({type:"widget",count:1},!1);z({scale:Ye,canvasRect:Fe,showDragMode:Ve,isAdsorbentReferenceLine:rt,start:{e:Ae,$draggingPuppet:et},drag:{itemSize:{width:we.width,height:we.height},hideChecker:Je=>(0,i.El)(Je.clientX,Je.clientY,_e)},end:{fetchData:null,createItemDispatcher:Je=>{let{top:Xe,left:st,sup:nt}=Je;if(!(0,k._c)({type:"widget",count:1}))return;const tt=g.Z.xy(st,Xe),ct=MB.getCurrentScreen().cid,ht=nt||ct;MB.action("entry:paste:items",{data:we.data,worldPos:tt,keyRndSup:ht,commonKeyRndSup:ht,isPaste:!1})},callback:lt?Te:null},onMouseMove:Ue})},de=We=>{let{e:Ae,combo:we,store:_e,doNotCreateRect:Te,callback:Ye,isToolbarCreate:Fe=!1,scale:Ve=1,canvasRect:rt,showDragMode:Ue,isAdsorbentReferenceLine:et,onMouseMove:lt=null}=We;const Je=_e.getHotItem(we.key),{x:Xe,y:st,w:nt,h:tt}=Y(Je,_e),ct=F(Je,_e,nt,tt),ht={width:nt,height:tt},It=_e.getSubHotItemList(we.key),it=It.length===1&&It[0].hotAttr.type===f.x.WTear,Tt=it;let Lt="";const Rt=(0,k.UU)({initKeyList:[we.key],sdk:_e}),Wt=(0,k._c)({type:"widget",count:Rt},!1);z({canvasRect:rt,scale:Ve,showDragMode:Ue,isAdsorbentReferenceLine:et,start:{e:Ae,$draggingPuppet:ct},drag:{itemSize:ht,isToolbarCreate:Fe,hideChecker:Kt=>(0,i.El)(Kt.clientX,Kt.clientY,Te),isTemplate:!1,comboPos:{x:Xe,y:st},isTear:it,canHover:Tt,moveCallback:Kt=>{let{hoverItem:Gt}=Kt;it&&(Lt=Gt)}},end:{createItemDispatcher:Kt=>{let{top:Gt,left:St,sup:Hn}=Kt;if(!(0,k._c)({type:"widget",count:Rt}))return;sdkStore.combineMergeMark("create-combo-widget-mousedown");const uo=g.Z.xy(St,Gt),Po=MB.getCurrentScreen().cid,Yn=MB.__store__.getState(),bo=(0,l.p$)(Yn),Ke=(0,b.RQ)(we.key,_e,uo,Po,bo);if((Ke==null?void 0:Ke.length)===1){var ut;const bt=sdkStore.getHotItem(Ke[0]);(bt==null||(ut=bt.hotAttr)==null?void 0:ut.type)===f.x.WTear&&Lt&&sdkStore.updateHotAttrKV(Ke[0],"refWCKey",Lt)}Ke.some(bt=>{const xn=sdkStore.getHotItem(bt),kn=[f.x.WTear,f.x.WSticky].includes(xn.hotAttr.type);if(kn){const{tearFlag:gn,name:Zn,userCid:Pn}=(0,$.wl)();sdkStore.updateHotAttrKV(bt,"info",(0,$.wh)(gn,Zn,Pn))}return kn})&&MB.action("toolbar:update:state",{isShowSticky:!0}),MB.action("entry:select:items",{cids:Ke}),MB.action("entry:refresh:link-list"),MB.action(P.y.entryKey["font:cloudFontExtList:refresh"]),MB.action("entry:publish:create:items:success",{newKeys:Ke}),sdkStore.combineMerge("create-combo-widget-mousedown")},handleCancel:()=>{},callback:Wt?Ye:null},onMouseMove:lt})},xe=We=>{var Ae;let{e:we,combo:_e,store:Te,scale:Ye}=We;if(we.button!==0)return;const Fe=Te.getHotItem(_e.key),Ve=(0,k.UU)({initKeyList:[_e.key],sdk:Te});if(!(0,k._c)({type:"widget",count:Ve}))return;if((Fe==null||(Ae=Fe.sub)==null?void 0:Ae.length)===0){MB.notice({text:I18N.dUtils.widget_create_success});return}MB.action("entry:resources:escape:template"),sdkStore.combineMergeMark("create-combo-widget-dblclick");const Ue=MB.__store__.getState(),lt=(0,s.UV)(Ue).getRootSnapshot().key,Je=(0,l.p$)(Ue),Xe=L(Je),{w:st,h:nt}=Y(Fe,Te),{left:tt,top:ct}=(0,M.u5)({width:st,height:nt,scale:Ye}),ht=g.Z.xy(tt,ct),It=MB.getCurrentScreen().cid;let it=It;const Tt=Te.getSubHotItemList(_e.key).filter(Wt=>{let{key:Kt,hotAttr:{type:Gt}}=Wt;return Gt===f.x.Canvas});if(!(Tt!=null&&Tt.length))if(Xe)it=Xe;else{const Wt=(0,S.Tg)(ht,lt);Wt&&(0,W.Op)(Wt)&&(it=Wt)}const Lt=(0,b.CU)({combo:Fe,worldPos:ht,size:{width:st,height:nt},keyRndSup:it,currentPageKey:It,store:Te});Lt.some(Wt=>{const Kt=sdkStore.getHotItem(Wt);return[f.x.WTear,f.x.WSticky].includes(Kt.hotAttr.type)})&&MB.action("toolbar:update:state",{isShowSticky:!0}),MB.action("entry:select:items",{cids:Lt}),MB.action("entry:refresh:link-list"),MB.action(P.y.entryKey["font:cloudFontExtList:refresh"]),MB.action("entry:publish:create:items:success",{newKeys:Lt}),MB.notice({text:I18N.dUtils.widget_create_success}),sdkStore.combineMerge("create-combo-widget-dblclick")};let Le=function(We){return We.PEN="pen",We.PENCIL="pencil",We}({});const ve=We=>{if(!We)return;const{name:Ae}=We;return Ae!==f.x.WVector?Ae:We.vector.toolType||Ae},je=We=>{var Ae;if(We)return(We==null||(Ae=We.attrs)==null?void 0:Ae.toolType)||We.name}},4461:(He,ee,e)=>{"use strict";e.d(ee,{F:()=>o});var n=e(38502),r=e(95956),c=e(72214);const o=(0,n.memo)(I=>{const{cid:u,path:d,viewBox:C,className:h}=I,[i,f]=(0,n.useState)(null);return(0,n.useEffect)(()=>{u&&d&&f((0,r.RY)({key:u,iconData:{path:d}}))},[u,d]),(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:h,dangerouslySetInnerHTML:{__html:(i==null?void 0:i.innerHTML)||d||""},viewBox:C})})},4648:(He,ee,e)=>{"use strict";e.d(ee,{Fw:()=>s.Fw,EY:()=>s.EY,R_:()=>K});var n=e(38502),r=e(18381),c=e(53732),o=e.n(c),I=e(4235),u=e(70422),d=e(60589),C=e(81973),h=e(10472),i=e(83199),f=e(62587),p=e(19376),s=e(35719),l=e(15542),_=e(28537),b=e(17307),a=e(2099),M=e(99340),x=e(5649),g=e(15186),S=e(41818),t=e(72214);const v=(0,n.memo)((0,n.forwardRef)((G,$)=>{const{sigmaPaint:P,color:E,refStyle:H,canOpenLib:O,isInputActive:V,onColorChange:Q,onSetIsInputActive:N,onOpenLibPanelTab:L}=G,U=(0,f.TQ)(P),[A,D]=(0,n.useState)(!1),[B,j]=(0,n.useState)("%"),F=()=>{N(!0)},Y=()=>{N(!1),j("%")},X=()=>{N(!0),D(!0),j("")},z=()=>{N(!1),D(!1)},Z=pe=>{const Ce=S.Q.hex(pe),me=(0,g.BN)(E.solidColor),be=(0,g.u_)({R:Ce[0]*255,G:Ce[1]*255,B:Ce[2]*255,A:me.A});Q({...E,solidColor:be})},J=pe=>{const Ce=(0,g.BN)(E.solidColor),me=(0,g.u_)({...Ce,A:pe});Q({...E,solidColor:me})},te=pe=>{L(pe,0),F()},ge=pe=>(pe.target.closest(".hex-a-input")||j("%"),!0);return(0,t.jsx)(t.Fragment,{children:H&&O?(0,t.jsx)("div",{className:"used-ref-style",ref:$,onClick:te,children:H.hotAttr.name}):U!=null&&U.text?(0,t.jsx)("span",{children:U==null?void 0:U.text}):(0,t.jsxs)("div",{className:"hex-a-input-wrap",children:[(0,t.jsx)("div",{className:"hex-input",children:(0,t.jsx)(M.A,{hexValue:U==null?void 0:U.hex.substring(1).toLowerCase(),className:"hex-color-input",onFocus:F,onBlur:Y,handleChange:Z})}),(0,t.jsx)(x.A,{className:"input-with-no-title hex-a-input "+(B===""?"no-suffix":""),min:0,max:100,suffix:B,isSelect:A,value:U==null?void 0:U.alpha,onMouseEnter:()=>j(""),onMouseLeave:()=>!V&&j("%"),onFocus:X,onBlur:z,onConfirm:J,onClickOutside:ge})]})})})),w=G=>{let{isActive:$,refStyle:P,isEditingCombo:E,onOpenLibPanelTab:H,onClearRefStyle:O}=G;const V=Q=>H(Q,124);return(0,t.jsxs)(t.Fragment,{children:[P?(0,t.jsx)(i.A,{content:I18N.SettingPanel.clear_style_ref,direction:"down",tipClassName:"clear-style-ref-tooltips",distance:8,children:(0,t.jsx)(b.C,{name:"setting_panel/general/clear_sl_ref",size:24,className:"clear-style-ref-icon",onClick:O})}):!E&&(0,t.jsx)(i.A,{content:I18N.SettingPanel.bind_color_ref,direction:"down",tipClassName:"bind-color-ref-tooltips",distance:8,children:(0,t.jsx)(b.C,{name:"setting_panel/general/open-lib",size:24,className:o()("open-lib-icon",{"is-active":$}),onClick:V})}),(0,t.jsx)(s.vH,{})]})};var k=e(17573);const W=(0,n.memo)(G=>{var $;let{className:P,supAttr:E,refStyles:H,attrPanel:O,color:V,colorPanelPosOffset:Q={offsetLeft:318,offsetTop:340},attr:N,enable:L=!0,iconImg:U,index:A,onColorChange:D,length:B,isShowMultipleColor:j=!1,isDefaultColor:F,onResetColor:Y,pIsSolidColorOnly:X=!1,mode:z,canOpenLib:Z,canCreateColorRef:J,isLibText:te=!1,canStopPropagation:ge=!0,toolTips:pe="",direction:Ce="down",distance2:me,solidRenderType:be="rect",size:ie,onMouseEnter:oe,onMouseLeave:he,onOpenColorPanel:ce,onCloseColorPanel:re,onPosition:fe,onApplyDidMountSideEffect:Se}=G;const[Me,Ie]=(0,n.useState)(!1),[de,xe]=(0,n.useState)({left:0,top:0}),Le=(0,r.d4)(I.p$),ve=(0,r.d4)(u.zX),[je,We]=(0,n.useState)(!1),[Ae,we]=(0,n.useState)("color"),[_e,Te]=(0,n.useState)(),Ye=(0,r.d4)(d.I5),Fe=(0,r.d4)(d.md),Ve=(0,r.d4)(C.Dw),rt=(0,r.d4)(C.jj),{isEditingCombo:Ue}=(0,r.d4)(h.r),et=(0,n.useMemo)(()=>Ye.isOpen?Ye.type==="create"&&Ve!=null&&Ve.key?[Ve.key]:Ye.type==="edit"?[Ye==null?void 0:Ye.currentKey]:Le:Fe.isOpen?Fe.type==="create"&&rt!=null&&rt.key?[rt.key]:Fe.type==="edit"?[Fe.currentKey]:Le:Le,[Ve,rt,Ye.currentKey,Ye.isOpen,Ye.type,Fe.currentKey,Fe.isOpen,Fe.type,Le]);(0,n.useEffect)(()=>{if(Z)if(Fe.isOpen&&Fe.refStyles)Te((0,a.OP)({selections:et,attr:N,supAttr:E,styleType:"color",refStyles:Fe.refStyles}));else if(Ye.isOpen&&Ye.refStyles)Te((0,a.OP)({selections:et,attr:N,supAttr:E,styleType:"color",refStyles:Ye.refStyles}));else if(te)Te((0,a.OP)({selections:et,attr:N,supAttr:E,styleType:"color",refStyles:H}));else{const Kt=(0,a.OP)({selections:et,attr:N,supAttr:E,styleType:"color"});Te(Kt)}},[Le,H,ve,te]);const lt=(0,n.useRef)(null),Je=(0,n.useRef)(null),Xe=(0,n.useRef)(""),st=(0,r.wA)(),nt=()=>{Ie(!1),st({type:"colorpanel:set:attr",payload:{attr:void 0}}),st({type:"colorpanel:set:attrPanel",payload:{attrPanel:void 0}}),re&&re(),We(!1),Z&&st({type:"modal:reset:popup:state",payload:{modalName:"libEditColorModal"}})},tt=Kt=>{st({type:"colorpanel:set:position",payload:{position:Kt}}),xe(Kt)},ct=function(Kt,Gt){if(Gt===void 0&&(Gt=0),!L)return;if(Me)return nt();const{offsetLeft:St,offsetTop:Hn}=Q,{left:uo,top:Po,height:Yn,right:bo,width:Ke}=Kt.target.getBoundingClientRect(),ut=document.querySelector(".mb-icon-modals");let zt={left:uo>=276?Math.max(uo-St-Gt>>0,0):bo+20,top:Math.max(Po+Yn/2-Hn>>0,56)};if(ut)ut.contains(Kt.target)&&(zt={left:uo-240/2+Ke/2,top:Po+Yn+10});else if(fe){const bt=fe(lt);bt&&(zt=bt)}st({type:"colorpanel:set:color",payload:{color:V}}),st({type:"colorpanel:set:attr",payload:{attr:N}}),st({type:"colorpanel:set:attrPanel",payload:{attrPanel:O}}),st({type:"colorpanel:set:supAttr",payload:{supAttr:E}}),tt(zt),Ie(!0),Xe.current=V,ce&&ce()},ht=Kt=>{ct(Kt),we(_e&&Z?"lib":"color")},It=function(Kt,Gt){Gt===void 0&&(Gt=0),!Ue&&(ct(Kt,Gt),we("lib"))},it=()=>{Te(void 0),st({type:"entry:libStyle:del:widget:refStyles",payload:{selections:et,key:N,supAttr:E,type:"color",refKey:_e==null?void 0:_e.key,isLibText:te,updateType:Fe!=null&&Fe.isOpen?"textRef":Ye!=null&&Ye.isOpen?"appearRef":"widget"}})},Tt=Kt=>{let{value:Gt,attr:St,compressible:Hn,needClearRef:uo=!0}=Kt;D(Gt,Hn),_e&&uo&&it()},Lt=Le.length>0?(($=sdkStore.getHotItem(Le[0]))==null?void 0:$.hotAttr)||{}:{},Rt=(0,f.$8)(V,{w:(Lt==null?void 0:Lt.w)||200,h:(Lt==null?void 0:Lt.h)||100}),Wt=Me&&Ae==="color";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.A,{content:pe,direction:Ce,distance2:me,children:(0,t.jsxs)(s.TN,{className:o()(P,{"is-open":Me}),type:U&&U.src?"":"color-btn",onMouseEnter:oe,onMouseLeave:he,children:[(0,t.jsxs)("div",{className:o()("color-btn-wrap",{"is-active":je||Wt},{"is-used-style-ref":_e&&Z}),children:[U&&U.src?(0,t.jsx)("div",{ref:lt,style:{display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",width:U.width||16,height:U.height||16,marginLeft:U.marginLeft||0,marginRight:U.marginRight||0,marginTop:U.marginTop||0,marginBottom:U.marginBottom||0,borderRadius:U.borderRadius||void 0},onMouseDown:ht,children:(0,t.jsx)("img",{src:U.src,style:{width:"100%",height:"100%"}})}):j?(0,t.jsx)("div",{className:"thumbnail-wrapper-multiple",children:(0,t.jsx)("span",{children:"..."})}):(0,t.jsx)(p.I,{className:"color-button-thumbnail",ref:lt,color:Rt,attr:N,index:A,size:ie||16,solidRenderType:be,handleColorThumbnailMouseDown:ht}),z==="input"&&(0,t.jsx)(v,{ref:Je,sigmaPaint:Rt,color:V,refStyle:_e,canOpenLib:Z,isInputActive:je,onSetIsInputActive:We,onColorChange:D,onOpenLibPanelTab:It})]}),Z&&(0,k.bJ)()&&(0,t.jsx)(w,{isActive:Me&&Ae==="lib",refStyle:_e,isEditingCombo:Ue,onOpenLibPanelTab:It,onClearRefStyle:it})]})}),Me&&(0,t.jsx)(l.Fo,{onSetIsColorPanelOpened:Ie,position:de,onSetPosition:tt,color:V,attr:N,supAttr:E,index:A,onColorChange:Tt,length:B,isDefaultColor:F,onResetColor:Y,onSetRefStyle:Te,pIsSolidColorOnly:X,isShowLibPanel:Z&&!Ue&&(0,k.bJ)(),canCreateColorRef:J&&(0,k.bJ)(),colorThumbnailEle:lt,colorUsedRefStyleEle:Je,onCloseColorPanel:nt,activeColorPanelTab:Ae,canStopPropagation:ge,onApplyDidMountSideEffect:Se})]})}),K=(0,n.memo)(G=>{let{attr:$,supAttr:P,attrPanel:E,onChange:H,color:O,pIsSolidColorOnly:V=!1,iconImg:Q,disabled:N,canOpenLib:L=!0,canCreateColorRef:U=!0,refStyles:A,mode:D="button",index:B=0,...j}=G;const F=(0,n.useMemo)(()=>P!=="fill"?Array.isArray(O)?(0,f.dT)(O[0]):O===void 0?void 0:(0,f.dT)(O):O,[P,O]),Y=(0,_.qK)((z,Z)=>{if(P!=="fill")if(Array.isArray(O)){const J=O.slice();J.splice(1,1,(0,f.wT)(z)),H(J,$,void 0,Z)}else H(z.solidColor,$,void 0,Z);else H(z,$,void 0,Z)});if(O===void 0||F===void 0)return null;let X=!0;return N!==void 0&&(X=!N),N?(0,t.jsx)(b.C,{size:24,name:"font/disabled_color_button"}):(0,t.jsx)(W,{attr:$,supAttr:P,attrPanel:E,color:F,canOpenLib:L,canCreateColorRef:U,refStyles:A,mode:D,index:B,length:1,onColorChange:Y,enable:!0,pIsSolidColorOnly:V,iconImg:Q,...j})})},4650:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>C});var n=e(25582),r=e.n(n),c=e(69368),o=e(67787);const I=o.Ay.label.withConfig({displayName:"styled__StyledInputLabel",componentId:"sc-p5wu1-0"})(["&.Textarea,&.CoreTextarea,&.Input,&.CoreInput{display:inline-block;color:#415058;input,textarea{font-size:inherit;color:inherit;&:disabled{opacity:0.5;cursor:not-allowed;}&[readonly]{color:#8d9ea7;}&:focus{outline:0;}&::placeholder{color:#8d9ea7;}}}&.is-invalid input,&.is-invalid textarea,& input:not([type=email]):invalid,& textarea:invalid{border-color:#ff6161 !important;box-shadow:0 0 6px 0 rgba(#ff6161,.5) !important;}&:not(.unstyled){input,textarea{background-color:#f6f7f8;border:1px solid #f2f2f3;border-radius:2px;caret-color:#298df8;transition:0.2s ease-out;transition-property:background,border,box-shadow,opacity;&:enabled:not([readonly]){:hover{border-color:#298df8;}:focus{background-color:#fff;border-color:#298df8;box-shadow:0 0 6px 0 rgba(41,141,248,.5);}}}}&.is-readonly{color:#8d9ea7;}&.Input,&.CoreInput{&.regular{height:34px;font-size:14px;}&.small{height:22px;font-size:12px;}input{padding:0 .5em;width:100%;height:100%;}}&.Textarea,&.CoreTextarea{&.regular{font-size:14px;}&.small{font-size:12px;}textarea{padding:.5em;width:100%;min-height:5em;max-height:10em;resize:vertical;&:disabled,&[readonly]{resize:none;}}}&.CoreInput:not(.unstyled) input,&.CoreTextarea:not(.unstyled) textarea{background-color:#fff;border-color:#c8cdd1;}&.InputEmail,&.CoreInputEmail{&:not(.unstyled).isnt-valid input{box-shadow:0 0 6px 0 rgba(255,97,97,.5) !important;border-color:#ff6161 !important;}}"]);var u=e(72214);function d(i){return f=>i(f.target.value,f)}function C(i){let{size:f="regular",theme:p="plain",isInvalid:s,unstyled:l,className:_,value:b,type:a="text",onChange:M=()=>null,isAutoFocus:x=!1,...g}=i;const S=(0,c.Hn)([p==="core"?"CoreInput":"Input",f,l&&"unstyled",s&&"is-invalid",_]);return(0,u.jsx)(I,{className:S,children:(0,u.jsx)("input",{type:a,value:b,onChange:d(M),autoFocus:x,...g})})}C.propTypes={type:r().string,size:r().oneOf(["regular","small"]),theme:r().oneOf(["core","plain"]),unstyled:r().bool,isInvalid:r().bool,className:r().string,value:r().string,onChange:r().func,isAutoFocus:r().bool};function h(i){let{size:f="regular",theme:p="plain",unstyled:s,className:l,value:_,onChange:b=()=>null,...a}=i;const M=(0,c.Hn)([p==="core"?"CoreTextarea":"Textarea",f,s&&"unstyled",l]);return(0,u.jsx)(I,{className:M,children:(0,u.jsx)("textarea",{value:_,onChange:d(b),...a})})}h.propTypes={className:r().string,size:r().oneOf(["regular","small"]),theme:r().oneOf(["core","plain"]),unstyled:r().bool,value:r().string,onChange:r().func}},5379:(He,ee,e)=>{"use strict";e.d(ee,{v:()=>n});const n=(r,c,o)=>{let I=!!c,u=!!o;const d=sdkStore.locUpRBPageKey(r);return I&&(I=sdkStore.locUpRBPageKey(c)===d),u&&(u=sdkStore.locUpRBPageKey(o)===d),{isRefFromExist:I,isRefToExist:u}}},5388:(He,ee,e)=>{"use strict";e.d(ee,{Rj:()=>t,VN:()=>v,Vz:()=>w});var n=e(38502),r=e(53732),c=e.n(r),o=e(18381),I=e(76613),u=e(68677),d=e(28068),C=e(37841),h=e(93872),i=e(61790),f=e(62150),p=e(29329),s=e(55584),l=e(4820),_=e(17307),b=e(89080),a=e(34999),M=e(43478),x=e(28652),g=e(72214);const S=null,t=["wLr","wWebpage","wMapView"],v=["wVector","wText","wRichText","wElbow","wRect","wOval","wLine","wButton","wPlaceholder","wArrow","wMTextInput","wMTextarea","wMSelect","wDigitalStepper","wPaginationWeb","wPaginationMobile","wMTooltip","wStar","wPolygon","wTriangle","wTriangleTL","wTriangleB","wFlowClosed","wFlowOpened"],w=(0,n.memo)(k=>{let{keyTriggerItem:W,keyTargetItem:K,onSelectTargetAttr:G,attrKey:$,handleChange:P,editorState:E,wAttrEditingMisc:H,handleCloseWattrSelect:O,removeRange:V}=k;const Q=(0,n.useRef)(null),N=(0,o.wA)(),[L,U]=(0,n.useState)(""),{targetItemOptionList:A}=(0,x.G)({query:L,keyTriggerItem:W}),D=A.length>0,[B,j]=(0,n.useState)(K||""),F=(0,n.useMemo)(()=>K===B?$:"",[K,B,$]),[Y,X]=(0,n.useState)(""),z=oe=>{N({type:"set:echo:item",payload:{cid:oe===I.rE?W:oe}})},Z=oe=>{N({type:"set:echo:item",payload:{cid:void 0}})},J=(0,n.useRef)(null);(0,n.useEffect)(()=>{var oe;const he=B?$:K;return(oe=J.current)==null||(oe=oe.querySelector('div[role="option"][data-value="'+he+'"]'))==null||oe.scrollIntoView(),()=>N({type:"set:echo:item",payload:{cid:void 0}})},[B,$,K]);const te=oe=>{j(oe)},ge=B?sdkStore.getHotItem(B):null,pe=B?(0,i.KD)(B):"",Ce=(0,n.useMemo)(()=>(0,M.Y)({keyWidgetSelected:B,attrQuery:Y}),[B,Y]),me=B&&Ce.length>0,be=oe=>{if((oe.metaKey||oe.ctrlKey)&&oe.key==="c")return;oe.preventDefault();const he=(0,p.Q8)(E,H.entityKey),ce=E.getSelection();if(oe.key==="Backspace"||oe.key==="Delete"){V(E,ce.merge({anchorOffset:he[0]-1,focusOffset:he[1]+1}));return}if(oe.key==="Escape"){O(),P((0,p.Qg)(E,he[1]+1,he[1]+1));return}if(oe.key==="ArrowLeft"){O(),P((0,p.Qg)(E,he[0]-1,he[0]-1));return}oe.key==="ArrowRight"&&(O(),P((0,p.Qg)(E,he[1]+1,he[1]+1)))},ie=oe=>{oe.preventDefault();const he=E.getSelection(),ce=(0,p.Q8)(E,H.entityKey),re=(0,p.$w)(E,ce),fe=(0,s.vd)({editorState:d.$t.forceSelection(E,he.merge({anchorOffset:ce[0]-1,focusOffset:ce[1]+1})),richTextV1:(0,l.$$)(),w:void 0,h:void 0,isRecordAttr:!0});oe.clipboardData.setData("text/html",fe),oe.clipboardData.setData("text/plain",re)};return(0,n.useEffect)(()=>{var oe;return(oe=Q.current)==null||oe.select(),()=>{}},[]),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("input",{ref:Q,onKeyDown:be,onCopy:ie,style:{position:"absolute",opacity:0}}),B?(0,g.jsx)(h.tb,{className:c()("isV9Layout"),children:(0,g.jsx)(C.N,{ref:J,query:Y,setQuery:X,children:()=>me?(0,g.jsxs)("div",{className:"option-container",children:[(0,g.jsxs)(h.Ag,{className:c()("dropmenu-no-exit0","isV9Layout"),onClick:()=>j(""),children:[(0,g.jsx)(_.C,{size:22,name:"sharing/back_to_page_16",className:"back"}),(0,g.jsx)(f.W,{renderItem:ge}),(0,g.jsx)(u.A,{children:(0,i.KD)(B)})]}),(0,g.jsx)(h.V5,{className:c()("isV9Layout"),children:(0,g.jsx)("div",{className:"scroll-able-container",children:Ce.map(oe=>(0,g.jsx)(C.D,{depth:0,withSubOptions:!1,optionItem:oe,isOptionActive:he=>{let{key:ce}=he;return F===ce},onSelect:()=>G(B,oe.key,pe),isOptionCollapsed:()=>!1,isOptionDisabled:()=>!1,onToggleCollapsed:()=>{},noIcon:!0},oe.key))})})]}):(0,g.jsx)(a.Q,{query:Y})})}):(0,g.jsx)(h.tb,{className:c()("isV9Layout"),children:(0,g.jsx)(C.N,{ref:J,query:L,setQuery:U,className:"wattr-widget-menu",children:oe=>{let{toToggleCollapsed:he,keyItemCollapsed:ce}=oe;const re=Me=>{let{key:Ie}=Me;return ce.includes(Ie)},fe=Me=>{let{key:Ie}=Me;return K===Ie},Se=Me=>{let{forDisplayOnly:Ie}=Me;return Ie};return D?(0,g.jsx)(b.A,{dataList:A,propsMap:{children:"subHotItemList"},isCollapsed:re,itemHeight:24,activeKey:K,itemRender:Me=>{let{item:Ie,depth:de}=Me;return(0,g.jsx)(C.D,{depth:de,withSubOptions:!0,shouldRenderChildren:!1,optionItem:Ie,isOptionActive:fe,onSelect:te,isOptionCollapsed:re,isOptionDisabled:Se,onToggleCollapsed:he,onMouseEnterOption:z,onMouseLeaveOption:Z},Ie.key)}}):(0,g.jsx)(a.Q,{query:L})}})})]})})},5438:(He,ee,e)=>{"use strict";e.d(ee,{X:()=>c,n:()=>r});var n=e(67787);const r=(0,n.AH)([".widget-icon-wrapper{width:68px;height:46px;display:flex;justify-content:center;.svg-icon{width:68px;height:46px;color:",";*{fill-opacity:1;stroke-opacity:1;}path.noFill{fill:none;}}&.w_text{.svg-icon{path{fill:",";}}}&.w_rectangle,&.w_circle{.svg-icon{rect{fill:",";stroke:",";}}}&.w_circle{.svg-icon{circle{fill:",";stroke:",";}}}&.w_button{.svg-icon{rect[stroke]{stroke:",";}path[fill]{fill:",";}}}&.w_line,&.w_flow_commentRight,&.w_flow_commentLeft,&.w_flow_noteRight,&.w_flow_noteLeft{.svg-icon{path{fill:none;stroke:",";}}}&.w_image,&.w_placeholder{.svg-icon{path{&:nth-child(1){fill:",";}&:nth-child(2){fill:",";}}}}&.w_linkarea{.svg-icon{rect{fill:",";stroke:",";}path{fill:",";stroke:",";}}}&.w_button{.svg-icon{rect{fill:",";stroke:",";}path{fill:",";}}}&.w_button_solid{.svg-icon{rect{fill:",";}path{fill:",";}}}&.w_table,&.w_polygon,&.w_star,&.w_eq_triangle{.svg-icon{path{fill:",";stroke:",";}}}&.w_note{.svg-icon{color:#FFECA8;path{stroke:#FFC85D;}}}&.w_tear{.svg-icon{color:#FFECA8;path{stroke:#FFC85D;}rect{fill:#FFC85D;stroke:",";}}}&.w_arrow{.svg-icon{path{fill:",";}}}&.w_dynamic{.svg-icon{path{&:first-child{fill:",";}&:last-child{fill:",";}}}}&.w_scroll_panel{.svg-icon{rect{fill:",";stroke:",";}path{fill:",";}}}&.w_mind{.svg-icon{rect{&:first-child{fill:",";}&:last-child{fill:",";}}path{&:nth-child(2){fill:",";}&:nth-child(3){fill:none;stroke:",";}}}}&.w_overlay{.svg-icon{rect{&:first-child{fill:",";stroke:",";}&:last-child{fill:",";}}}}&.w_input{.svg-icon{rect{fill:",";stroke:",";}path{fill:",";}}}&.w_textarea{.svg-icon{path{&:nth-child(1){fill:",";stroke:",";}&:nth-child(2){fill:",";}}}}&.w_select{.svg-icon{rect{fill:",";stroke:",";}path{&:nth-last-child(2){fill:",";}&:last-child{fill:",";}}}}&.w_file{.svg-icon{path{&:nth-child(1){fill:",";}&:nth-child(2){fill:",";}&:nth-child(3){fill:",";stroke:",";}}}}&.w_selection_control_radio{.svg-icon{path{fill:",";}}}&.w_selection_control_checkbox,&.w_ios_switch{.svg-icon{path{&:first-child{fill:",";}&:last-child{fill:#fff;}}}}&.w_android_switch{.svg-icon{path{&:first-child{fill:",";}&:last-child{fill:",";}}}}&.w_slider{.svg-icon{path{&:nth-child(1){fill:",";}&:nth-child(2){fill:",";}&:nth-child(3){fill:#fff;stroke:",";}}}}&.w_digital_stepper{.svg-icon{rect{&:nth-child(1),&:nth-child(3){fill:",";}&:nth-child(2),&:nth-child(4){fill:",";stroke:",";}}path{fill:",";}}}&.w_drop_menu{.svg-icon{path{&:nth-child(1),&:nth-child(4){fill:",";}&:nth-child(2){fill:",";}&:nth-child(3),&:nth-child(5){fill:none;stroke:",";}&:nth-child(6){fill:",";}}}}&.w_dynamic_drop_menu{.svg-icon{path{&:last-child{fill:",";}&:first-child{fill:",";}}circle{fill:none;stroke:",";}}}&.w_navigation_menu{.svg-icon{path{fill:",";&:nth-child(1){fill:",";stroke:",";}&:nth-child(2){fill:",";}&:nth-child(3){fill:",";}}}}&.w_navigation_menu_v{.svg-icon{path{&:nth-child(1),&:nth-child(3){fill:",";stroke:",";}&:nth-child(2){fill:",";}&:nth-child(4){stroke:",";}&:nth-child(5){fill:",";}}rect{&:nth-last-child(2){fill:",";}}}}&.w_navigation_menu_h{.svg-icon{path{&:nth-child(1){fill:",";stroke:",";}&:nth-child(2){fill:",";}}rect{fill:",";&:nth-last-child(2){fill:",";}}}}&.w_tree{.svg-icon{path{&:nth-child(1){fill:",";stroke:",";}&:nth-child(2){fill:",";}&:nth-child(3),&:nth-child(5){fill:",";}&:nth-child(4){stroke:",";}}}}&.w_tabs{.svg-icon{rect{fill:",";}path{fill:",";}}}&.w_pagination_mobile{.svg-icon{path{&:nth-child(1),&:nth-child(3){stroke:",";}&:nth-child(2){fill:",";}}}}&.w_pagination_web{.svg-icon{rect{&:nth-child(1),&:nth-child(3),&:nth-child(5){fill:",";}&:nth-child(2),&:nth-child(4),&:nth-child(6){fill:none;stroke:",";}}path{&:nth-last-child(1){fill:none;stroke:",";}&:nth-last-child(2){fill:",";}}}}&.w_mobile_tab_bars{.svg-icon{circle,rect:nth-child(4){fill:",";}}}&.w_segmented_control{.svg-icon{rect{fill:",";stroke:",";}path{fill:",";}}}&.w_collapse{.svg-icon{rect{fill:",";&:nth-child(2){stroke:",";}}path:nth-child(2){fill:",";}}}&.w_carousel{.svg-icon{rect{fill:",";stroke:",";}path{&:nth-child(2),&:nth-child(3){fill:none;stroke:",";}}}}&.w_webpage{.svg-icon{rect{fill:",";stroke:",";}path{&:nth-child(1){stroke:",";}&:nth-child(2){fill:",";}}circle{fill:",";}}}&.w_video{.svg-icon{rect{fill:",";stroke:",";}path{&:nth-child(2),&:nth-child(4){stroke:",";}&:nth-child(3){fill:",";}}}}&.w_audio{.svg-icon{path{&:nth-child(1),&:nth-child(2){fill:none;stroke:",";}&:nth-child(3){fill:",";}}}}&.w_qrcode{.svg-icon{path{fill:",";}}}&.w_map{.svg-icon{path{&:nth-child(1){fill:",";stroke:",";}&:nth-child(2){fill:",";stroke:",";}&:nth-child(3){fill:",";}}}}&.w_dialog{.svg-icon{path{&:nth-child(1){fill:",";stroke:",";}&:nth-child(2){fill:",";}}}}&.w_bar_chart,&.w_horizontal_bar_chart{.svg-icon{path{&:first-child{fill:",";}&:nth-child(2){fill:",";}}}}&.w_line_chart{.svg-icon{path{&:nth-child(1),&:nth-child(2){fill:none;stroke:",";}&:nth-child(3){fill:none;stroke:",";}}}}&.w_line_area_chart{.svg-icon{path{&:nth-child(1),&:nth-child(2){fill:none;stroke:",";}&:nth-child(3){fill:",";}}}}&.w_mixed_bar_line_chart{.svg-icon{path{&:nth-child(1){fill:",";}&:nth-child(2){stroke:",";}}}}&.w_pie_chart{.svg-icon{path{&:nth-child(1){fill:",";}&:nth-child(2){fill:",";}}}}&.w_ring_chart{.svg-icon{path{&:nth-child(1){fill:",";}&:nth-child(2){fill:",";}}}}&.w_progress_chart{.svg-icon{circle{fill:none;stroke:",";}path{&:nth-child(2){fill:",";}&:nth-child(3){fill:",";}}}}&.w_radar_chart{.svg-icon{path{&:nth-child(1){fill:",";stroke:",";}&:nth-child(2){fill:none;stroke:",";}&:nth-child(3){fill:",";}}}}&.w_waterfall_chart,&.w_funnel_chart,&.w_gauge_chart,&.w_sunburst_chart,&.w_word_cloud_chart,&.w_flow_concurrent{.svg-icon{path{fill:",";}}}&.w_nightingale_chart{.svg-icon{path{&:nth-child(1),&:nth-child(2){fill:",";}&:nth-child(3){fill:",";}}}}&.w_scatter_chart{.svg-icon{path{&:nth-child(1){fill:",";}&:nth-child(2){fill:none;stroke:",";}}}}&.w_liquid_fill_gauge_chart{.svg-icon{circle{fill:none;stroke:",";}path{fill:",";}}}&.w_bubble_chart{.svg-icon{path{fill:none;stroke:",";&:last-child{fill:",";}}}}&.w_radial_polar_chart{.svg-icon{path{fill:none;&:nth-child(1),&:nth-child(3){stroke:",";}&:nth-child(2){stroke:",";}}}}&.w_boxplot_chart{.svg-icon{path{fill:none;stroke:",";&:nth-child(2),&:nth-child(4){fill:",";stroke:",";}}}}&.w_sankey_chart{.svg-icon{path{fill:",";&:nth-child(1),&:nth-child(3){fill:","}&:nth-child(4){fill:",";}}}}&.w_map_chart{.svg-icon{path{&:nth-child(1){fill:",";}&:nth-child(2){fill:",";}}}}&.w_flow_process,&.w_flow_startEnd{.svg-icon{rect{fill:",";stroke:",";}}}&.w_flow_decision,&.w_flow_data,&.w_flow_outerData,&.w_flow_humanInput,&.w_flow_card,&.w_flow_strip,&.w_flow_show,&.w_flow_humanOp,&.w_flow_prepare,&.w_flow_loop,&.w_flow_refCrossPage{.svg-icon{path{fill:",";stroke:",";}}}&.w_flow_doc{.svg-icon{path{&:nth-child(1),&:nth-child(2){fill:",";}&:nth-child(2){stroke:",";}}}}&.w_flow_subProcess,&.w_flow_innerData,&.w_vertical_swimlane,&.w_horizontal_swimlane{.svg-icon{rect{fill:",";stroke:",";}path{fill:none;stroke:",";}}}&.w_flow_queueData,&.w_flow_or,&.w_flow_sum{.svg-icon{circle{fill:",";stroke:",";}path{fill:none;stroke:",";}}}&.w_flow_database1,&.w_flow_database2{.svg-icon{path{&:nth-child(1),&:nth-child(2){fill:",";}&:nth-child(3){fill:none;stroke:",";}}}}&.w_flow_refInPage{.svg-icon{circle{fill:",";stroke:",";}}}&.w_flow_sort{.svg-icon{path{&:nth-child(1){fill:",";}&:nth-child(2){fill:none;stroke:",";}}}}&.w_flow_union{.svg-icon{path{&:nth-child(1){fill:",";}&:nth-child(2){fill:",";}}}}}"],o=>o.theme.color_bg_border_02,o=>o.theme.color_text_L2,o=>o.theme.color_navigation_hover,o=>o.theme.color_text_L2,o=>o.theme.color_navigation_hover,o=>o.theme.color_text_L2,o=>o.theme.color_btn_primary_normal,o=>o.theme.color_btn_primary_normal,o=>o.theme.color_text_L2,o=>o.theme.color_bg_menu,o=>o.theme.color_text_L2,o=>o.theme.color_bg_menu,o=>o.theme.color_text_link_normal,o=>o.theme.color_text_link_normal,o=>o.theme.color_text_link_normal,o=>o.theme.color_bg_menu,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_btn_primary_normal,o=>o.theme.color_text_btn,o=>o.theme.color_bg_menu,o=>o.theme.color_text_L2,o=>o.theme.color_bg_menu,o=>o.theme.color_text_L2,o=>o.theme.color_bg_menu,o=>o.theme.color_warning,o=>o.theme.color_bg_menu,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_text_tips_hover,o=>o.theme.color_btn_primary_normal,o=>o.theme.color_text_tips_hover,o=>o.theme.color_text_L2,o=>o.theme.color_bg_menu,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_bg_menu,o=>o.theme.color_bg_border_02,o=>o.theme.color_text_L2,o=>o.theme.color_bg_menu,o=>o.theme.color_bg_border_02,o=>o.theme.color_text_L2,o=>o.theme.color_bg_menu,o=>o.theme.color_bg_border_02,o=>o.theme.color_text_L2,o=>o.theme.color_text_disabled01,o=>o.theme.color_bg_menu,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_btn_primary_normal,o=>o.theme.color_btn_primary_normal,o=>o.theme.color_textarea,o=>o.theme.color_btn_primary_normal,o=>o.theme.color_slider_normal,o=>o.theme.color_btn_primary_normal,o=>o.theme.color_btn_primary_normal,o=>o.theme.color_bg_menu,o=>o.theme.color_bg_menu,o=>o.theme.color_bg_border_02,o=>o.theme.color_text_L2,o=>o.theme.color_bg_menu,o=>o.theme.color_text_L2,o=>o.theme.color_bg_border_02,o=>o.theme.color_text_disabled01,o=>o.theme.color_text_L2,o=>o.theme.color_bg_border_02,o=>o.theme.color_text_L2,o=>o.theme.color_bg_border_02,o=>o.theme.color_bg_menu,o=>o.theme.color_bg_border_02,o=>o.theme.color_grid,o=>o.theme.color_btn_primary_normal,o=>o.theme.color_bg_menu,o=>o.theme.color_bg_border_02,o=>o.theme.color_grid,o=>o.theme.color_bg_border_02,o=>o.theme.color_text_L2,o=>o.theme.color_btn_primary_normal,o=>o.theme.color_bg_menu,o=>o.theme.color_bg_border_02,o=>o.theme.color_grid,o=>o.theme.color_bg_border_02,o=>o.theme.color_btn_primary_normal,o=>o.theme.color_bg_menu,o=>o.theme.color_bg_border_02,o=>o.theme.color_grid,o=>o.theme.color_btn_primary_normal,o=>o.theme.color_bg_border_02,o=>o.theme.color_btn_primary_normal,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_bg_menu,o=>o.theme.color_bg_border_02,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_btn_primary_normal,o=>o.theme.color_bg_menu,o=>o.theme.color_btn_primary_normal,o=>o.theme.color_btn_primary_normal,o=>o.theme.color_bg_menu,o=>o.theme.color_bg_border_02,o=>o.theme.color_text_L2,o=>o.theme.color_bg_menu,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_bg_menu,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_bg_border_02,o=>o.theme.color_text_L2,o=>o.theme.color_bg_menu,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_btn_primary_normal,o=>o.theme.color_text_L2,o=>o.theme.color_bg_border_02,o=>o.theme.color_text_L2,o=>o.theme.color_bg_menu,o=>o.theme.color_text_L2,o=>o.theme.color_bg_menu,o=>o.theme.color_btn_primary_normal,o=>o.theme.color_btn_primary_normal,o=>o.theme.color_bg_menu,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_text_disabled01,o=>o.theme.color_text_L2,o=>o.theme.color_text_disabled01,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_text_disabled01,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_text_disabled01,o=>o.theme.color_bg_border_02,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_navigation_hover,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_text_disabled01,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_navigation_hover,o=>o.theme.color_text_L2,o=>o.theme.color_text_disabled01,o=>o.theme.color_text_L2,o=>o.theme.color_navigation_hover,o=>o.theme.color_text_L2,o=>o.theme.color_text_L3,o=>o.theme.color_text_disabled01,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_text_disabled01,o=>o.theme.color_navigation_hover,o=>o.theme.color_text_L2,o=>o.theme.color_navigation_hover,o=>o.theme.color_text_L2,o=>o.theme.color_navigation_hover,o=>o.theme.color_text_L2,o=>o.theme.color_navigation_hover,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_navigation_hover,o=>o.theme.color_text_L2,o=>o.theme.color_text_L2,o=>o.theme.color_navigation_hover,o=>o.theme.color_text_L2,o=>o.theme.color_navigation_hover,o=>o.theme.color_text_L2,o=>o.theme.color_navigation_hover,o=>o.theme.color_text_L2,o=>o.theme.color_navigation_hover,o=>o.theme.color_text_L2),c=n.Ay.li.withConfig({displayName:"styles__StyledWidgetItem",componentId:"sc-o4gmpk-0"})(["width:70px;height:70px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;background:",";color:",";border-radius:6px;margin-bottom:8px;margin-right:8px;cursor:pointer;transition:all 0.2s ease-out;position:relative;"," .widget-key{width:14px;height:14px;position:absolute;top:0;left:0;rect{&:nth-child(1){fill:",";}&:nth-child(2){fill:",";}}}.new_text{width:20px;height:10px;position:absolute;top:2px;right:4px;path{fill:#1684fc;}}span{margin-bottom:10px;line-height:12px;text-align:center;color:",";}&:hover{background:",";}&:lang(en){span{margin:0;flex:1;display:flex;align-items:center;}}&.active{opacity:0.5;}"],o=>o.theme.color_bg_card,o=>o.theme.color_text_L2,r,o=>o.theme.color_bg_border_01,o=>o.theme.color_bg_menu,o=>o.theme.color_text_L3,o=>o.theme.color_btn_secondary_active)},5664:(He,ee,e)=>{"use strict";e.d(ee,{GA:()=>d,e_:()=>u,jb:()=>f,kh:()=>C});var n=e(29158),r=e(25037),c=e(74222),o=e(16966),I=e(91190);const u=(l,_)=>{let{key:b,sup:a,attr:M}=_;return l.push({type:r.UF,key:b,keySup:a}),l.push({type:r.qC,key:b,attrDiff:M}),l},d=l=>(0,c.xH)({type:"rResBunch",bunch:l}),C=function(l,_,b,a,M,x,g){return _===void 0&&(_=0),b===void 0&&(b="customize"),a===void 0&&(a=375),M===void 0&&(M=812),x===void 0&&(x="portrait"),g===void 0&&(g="vertical"),(0,c.KQ)({type:"rResBunch",bunch:"rbPage",name:l,zIndex:_,icon:""+I.KL+I.wv+"0",asFolder:!1,device:b,deviceW:a,deviceH:M,deviceOrientation:x,deviceScroll:g,alignH:[],alignV:[],scroll:1,scrollWay:"none",layout:"row",w:a,h:M,defaultCanvasKey:"",deleteInfo:{deleteTime:0,deleteUserName:""},fill:{fillIsVisible:!1,fill:"solid",solidColor:4126537215},"!liVersion":1})},h=function(l,_,b,a){_===void 0&&(_=0);let{x:M,y:x,w:g,h:S}=b;return a===void 0&&(a=1),packResCanvasAttr({type:"rResCanvas",name:l,zIndex:_,x:M,y:x,r:0,w:g,h:S,isLock:!1,isVisible:!0,isLockAspect:!0,isClipContent:!0,device:"customize",orientation:"portrait",stickyHeaderHeight:10,stickyFooterHeight:10,interactions:[],fill:{fillIsVisible:!0,fill:"solid",solidColor:4294967295},layoutGrid:{isGridLayout:!1,gridSize:10,isRowLayout:!1,rowHeight:10,rowGutter:10,isColLayout:!1,colCount:10,colGutter:10},alignH:[],alignV:[],order:a})},i={type:"extImage",key:"mockImageNode",hotAttr:{type:"rResExt",name:"\u793A\u4F8B\u56FE\u7247",zIndex:0,extData:"/res-img/org/hot/12.jpg",extType:"extImage"},sup:c.JC,sub:[]},f=l=>{const _=[];return u(_,{key:c.$k,sup:n.gT,attr:d("rbMain")}),u(_,{key:c.Ex,sup:n.gT,attr:d("rbTrash")}),u(_,{key:c.JC,sup:n.gT,attr:d("rbExt")}),u(_,{key:c.fW,sup:n.gT,attr:d("rbRefMuban")}),u(_,{key:c.W4,sup:n.gT,attr:d("rbRefDanli")}),u(_,{key:c.YZ,sup:n.gT,attr:d("rbRefMind")}),u(_,{key:c.fu,sup:n.gT,attr:d("rbVar")}),u(_,{key:c.EM,sup:n.gT,attr:d("rbDict")}),l.updateHotItem(i),_},p=l=>function(_){return _===void 0&&(_=KEY_MAIN),console.log(__devAttrFlatTree(l.getFlatTree(),_))},s=l=>function(_){return _===void 0&&(_=KEY_MAIN),console.log(l.__devHotTree(_))}},5680:(He,ee,e)=>{"use strict";e.d(ee,{R2:()=>_,BK:()=>s,k4:()=>l});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),I=e(39e3),u=e(17307),d=e(61068),C=e(30523),h=e(23108),i=e(67787);const f=i.Ay.div.withConfig({displayName:"styles__StyledBorderRadius",componentId:"sc-1o2jjky-0"})(["display:flex;align-items:flex-start;min-height:32px;margin-left:-6px;.common-check-label-box{margin-top:4px;}.Tooltip{display:flex;}.radius-set-controller{display:flex;height:24px;position:relative;margin-left:auto;margin-top:2px;&.can-not-set-single{width:auto;}svg{color:",";}.set-separately{display:inline-flex;width:24px;vertical-align:middle;justify-content:center;align-items:center;transition:all 0.2s ease-in-out;cursor:pointer;border-radius:4px;&.active{background-color:",";svg{color:#fff;}}&:not(.active):hover{background-color:",";}&:active{background-color:",";}}.set-all{display:flex;width:24px;justify-content:space-around;align-items:center;cursor:pointer;transition:all 0.2s ease-in-out;border-radius:4px;&.active{background-color:",";}&:not(.active):hover{background-color:",";}&:active{background-color:",";}}.separate-dropdown{position:relative;.expand-icon{position:absolute;right:6px;line-height:18px;color:#c8cdd0;svg{transform:rotate(180deg);transition:all 0.2s ease-out;}}&.is-open{.expand-icon{svg{transform:rotate(0);}}}}}.separate-wrap{max-width:124px;display:flex;flex-wrap:wrap;.var-input-container{margin-right:0;&:first-child,&:nth-child(2){margin-bottom:6px;}}.separate-input{width:56px;height:28px;margin-right:6px;margin-bottom:6px;border:1px solid ",";.title{padding-left:11px;.svg-icon{fill:none;width:10px;height:10px;path{fill:none;}}}&.tr,&.br{margin-right:0;}&.bl,&.br{margin-bottom:0;}}}"],b=>b.theme.color_text_L1,b=>b.theme.color_proto,b=>b.theme.color_btn_secondary_hover,b=>b.theme.color_btn_secondary_active,b=>b.theme.color_btn_secondary_active,b=>b.theme.color_btn_secondary_hover,b=>b.theme.color_btn_secondary_active,b=>b.theme.color_bg_border_02);var p=e(72214);const s=["radiusTL","radiusTR","radiusBL","radiusBR"],l=b=>typeof b!="number";class _ extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"state",{setAll:!0,activeRadius:""}),(0,n.A)(this,"setElementRef",a=>this.$element=a),(0,n.A)(this,"setRadiusActive",a=>this.$radiusActiveRef=a),(0,n.A)(this,"handleChange",(a,M,x)=>{const{onChange:g,selections:S,dispatch:t}=this.props;this.props.attr&&this.props.supAttr&&M!=="borderRadiusIsVisible"?g({value:a,attr:this.props.attr,refVar:x,dispatch:t,supAttr:this.props.supAttr,selections:S}):g({value:a,attr:M,refVar:x,selections:S,dispatch:t})}),(0,n.A)(this,"setSetAllFromProps",()=>{const{borderRadius:a}=this.props;this.setState({setAll:!l(a)})}),(0,n.A)(this,"enableSetAll",()=>{var a;if(this.state.setAll)return;const{borderRadius:M,refVars:x}=this.props,{radiusTL:g}=M;this.setState({activeRadius:""}),this.handleSetAll(g,x==null||(a=x.borderRadius)==null?void 0:a.radiusTL)}),(0,n.A)(this,"enableSetSeparately",()=>{this.state.setAll&&this.handleSetSeparatelyForOnce(this.props.borderRadius)}),(0,n.A)(this,"handleSetAll",(a,M)=>{const x=parseInt(a)||0;if(!l(this.props.borderRadius)){const{radiusTL:g}=this.props.borderRadius;if(x===g)return}this.handleChange(x,"borderRadius",M)}),(0,n.A)(this,"handleSetSeparately",(a,M,x)=>{var g;const S=parseInt(a)||0,{borderRadius:t,refVars:v}=this.props;if(S===t[M]&&(v==null||(g=v.borderRadius)==null?void 0:g[M])===x)return;const{radiusTL:w,radiusTR:k,radiusBR:W,radiusBL:K}=t,G={radiusTL:w,radiusTR:k,radiusBR:W,radiusBL:K,[M]:S};let $;typeof(v==null?void 0:v.borderRadius)!="object"?$={}:$={...v.borderRadius},$[M]=x,this.handleChange(G,"borderRadius",$)}),(0,n.A)(this,"handleFocusSeparately",(a,M)=>{this.setState({activeRadius:M})}),(0,n.A)(this,"handleSetSeparatelyForOnce",a=>{var M;const x={radiusTL:a,radiusTR:a,radiusBR:a,radiusBL:a},g=(M=this.props.refVars)==null?void 0:M.borderRadius,S=typeof g=="string"?{radiusTL:g,radiusTR:g,radiusBR:g,radiusBL:g}:void 0;this.handleChange(x,"borderRadius",S)}),(0,n.A)(this,"handleCancelActiveRadius",a=>{this.$element&&this.$element.contains(a.target)||this.setState({activeRadius:""})}),(0,n.A)(this,"handleChangeborderRadiusIsVisible",a=>{this.handleChange(a,"borderRadiusIsVisible")})}componentDidMount(){this.setSetAllFromProps()}componentDidUpdate(a){a.borderRadius!==this.props.borderRadius&&this.setSetAllFromProps()}render(){const{borderRadius:a,borderRadiusIsVisible:M,canSetSingleRadius:x,show:g,max:S,placeholder:t,className:v,refVars:w,canAddVar:k}=this.props,{activeRadius:W,setAll:K}=this.state;let G;if(typeof a!="number"?G=a:G={radiusTL:a,radiusTR:a,radiusBR:a,radiusBL:a},!g)return null;const $=w==null?void 0:w.borderRadius,P=K?typeof $=="string"?$:void 0:typeof $=="object"?$:void 0;return(0,p.jsxs)(f,{className:v,activeRadius:W,children:[(0,p.jsxs)("div",{className:"common-check-label-box",children:[(0,p.jsx)(d.A,{className:d.p,attr:"bdrIsVisible",isChecked:M,onChange:this.handleChangeborderRadiusIsVisible}),(0,p.jsx)("label",{className:"left-label",children:"\u5706\u89D2"})]}),(0,p.jsx)("div",{className:"separate-radius-input",children:K?(0,p.jsx)(C.Yw,{type:"number",inputClassName:o()("set-all-input width-66",{placeholder:t}),min:0,max:S||9999,value:typeof a=="object"?a.radiusTL:a,refVar:P,disabled:!K,isNotVerify:!!t,placeholder:t,canAddVar:k,onConfirm:this.handleSetAll}):(0,p.jsxs)("div",{className:"separate-wrap",ref:this.setElementRef,children:[s.map(E=>{var H;return(0,p.jsx)(C.Yw,{attr:E,type:"number",title:(0,p.jsx)(u.C,{name:"setting_panel/br/"+E,className:"tl-icon"}),inputClassName:"separate-input",min:0,max:9999,value:G[E],refVar:P==null?void 0:P[E],canAddVar:k,tooltipsContentText:(H=I18N.SettingPanel.border_radius)==null?void 0:H[E],onFocus:this.handleFocusSeparately,onConfirm:(O,V)=>this.handleSetSeparately(O,E,V)},E)}),W&&(0,p.jsx)(I.A,{target:document,onClick:this.handleCancelActiveRadius})]})}),x&&(0,p.jsx)("div",{className:"radius-set-controller",children:(0,p.jsx)(h.P,{iconClassName:o()("set-separately",{active:!K}),onClick:K?this.enableSetSeparately:this.enableSetAll,name:"design/br_set_separately",content:I18N.SettingPanel.uni_radius,direction:"down",tagName:"SVGIcon"})})]})}}(0,n.A)(_,"defaultProps",{canAddVar:!0})},6469:(He,ee,e)=>{"use strict";e.d(ee,{P:()=>p,V:()=>i});var n=e(53940),r=e(44805),c=e(38502),o=e(77494),I=e(59189),u=e(72214);const d=["children"];class C extends c.Component{shouldComponentUpdate(l,_,b){return this.props.isDraggingItem?!1:(0,I.N)(d).call(this,l,_)}render(){return(0,u.jsx)(o.H,{title:I18N.PreferenceBar.layout,className:"screen-panel",children:(0,u.jsx)("section",{type:"screen-body",children:this.props.children})})}}var h=e(89886);const i=s=>{let{selectedItems:l}=s;const _=l[0].hotAttr,{rowGutter:b,rowHeight:a,colCount:M,colGutter:x}=_.layoutGrid,g=Math.floor((_.h-n.nt.v)/(b+a)),S=Math.round((_.w-2*n.nt.h-(M-1)*x)/M);return{layoutGrid:_.layoutGrid,rowCount:g,colWidth:S}},f={component:h.A,params:{},getter:[i],setter:{onChange:r.c}},p=()=>[C,[f,"LayoutGridInfo"]]},6566:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>r});var n=e(67787);const r=n.Ay.div.withConfig({displayName:"styles__StyledGestures",componentId:"sc-1ofywp4-0"})(["width:100%;color:",";li{list-style:none;}.gesture{height:26px;display:flex;align-items:center;cursor:pointer;padding-left:26px;transition:all 0.2s ease-out;position:relative;.svg-icon{width:16px;height:16px;margin-right:7px;&.checked{position:absolute;left:8px;}}&:not(.disabled):hover{background:#666;}&.disabled{color:rgba(255,255,255,0.22);cursor:not-allowed;}}.shake-divider{pointer-events:none;margin:8px 0;height:1px;background:",";}li{border-radius:4px;}.gesture{&:not(.disabled):hover{background:",";}&.disabled{color:",";}p{margin-right:4px;}svg.listener-tip{&:hover{path{fill:",";}}path{fill:",";}}}.shake-divider{background:",";}li.gesture:not(.disabled) .display-gesture{color:",";}"],c=>c.theme.color_text_L1,c=>c.theme.color_bg_border_01,c=>c.theme.color_btn_secondary_hover,c=>c.theme.color_text_disabled01,c=>c.theme.color_text_L1,c=>c.theme.color_text_L3,c=>c.theme.color_bg_border_01,c=>c.theme.color_text_L0)},6611:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>C});var n=e(38502),r=e(28792),c=e(14269),o=e(56472);function I(h){function i(f,p){p===void 0&&(p={});let s;const{onError:l=S=>{console.error(S)}}=p;try{s=h()}catch(S){l(S)}const _=S=>p.serializer?p.serializer(S):JSON.stringify(S),b=S=>p.deserializer?p.deserializer(S):JSON.parse(S);function a(){try{var S;const t=(S=s)==null?void 0:S.getItem(f);if(t)return b(t)}catch(t){l(t)}return(0,o.Tn)(p.defaultValue)?p.defaultValue():p.defaultValue}const[M,x]=(0,n.useState)(a);(0,c.A)(()=>{x(a())},[f]);const g=S=>{const t=(0,o.Tn)(S)?S(M):S;if(x(t),(0,o.XB)(t)){var v;(v=s)==null||v.removeItem(f)}else try{var w;(w=s)==null||w.setItem(f,_(t))}catch(k){console.error(k)}};return[M,(0,r.A)(g)]}return i}var u=e(56202);const C=I(()=>u.Bd?window.localStorage:void 0)},6843:(He,ee,e)=>{"use strict";e.d(ee,{E4:()=>_,L4:()=>o,MB:()=>s,NV:()=>p,Sv:()=>d,Xh:()=>l,dA:()=>h,e:()=>u,jl:()=>I,mO:()=>i,ut:()=>f});var n=e(67787),r=e(51090),c=e(21066);const o=n.Ay.div.withConfig({displayName:"styles__StyledDropDown",componentId:"sc-7ps09c-0"})(["line-height:10px;.options-menu-opener{display:block;height:24px;width:24px;}"]),I=n.Ay.div.withConfig({displayName:"styles__StyledMenu",componentId:"sc-7ps09c-1"})(["width:204px;height:auto;header{height:40px;border-bottom:1px solid ",";display:flex;align-items:center;justify-content:space-between;padding:0 10px 0 16px;color:",";.title{font-weight:500;}div{&:not(.disabled):hover{background:",";}&:not(.disabled):active{background:",";}}}.svg-size .icon{width:24px;height:24px;}.menu-container{padding:8px 10px 8px 16px;}.menu-wrapper{display:flex;justify-content:space-between;align-items:center;padding:4px 0;color:",";.is-clip-text{height:24px;}.font-style-type,.is-clip-text,.font-style{display:flex;justify-content:space-between;align-items:center;width:100%;.paragraph-input{width:51px;& + .toolbar-dropdown-opener{.var-input{justify-content:flex-end;width:41px!important;}}}.var-binded:hover,.var-binded.is-active{.paragraph-input + .toolbar-dropdown-opener .var-input{justify-content:flex-start;width:25px!important;}}.radio-line{background:transparent;color:",";&:lang(en){justify-content:flex-start;}}.radio-option{border-radius:4px;overflow:hidden;}.radio-line{&:not(.disabled){.radio-option{&:not(.active):hover{background:",";color:",";}&.active{background:",";color:",";}}}}}.font-padding{display:flex;width:100%;align-items:baseline;justify-content:space-between;}.is-free-disabled:hover .radio-option{background:none;}}"],b=>b.theme.color_bg_border_02,b=>b.theme.color_text_L1,b=>b.theme.color_btn_secondary_hover,b=>b.theme.color_btn_secondary_active,b=>b.theme.color_text_L3,b=>b.theme.color_text_L1,b=>b.theme.color_btn_secondary_hover,b=>b.theme.color_text_L1,b=>b.theme.color_btn_secondary_active,b=>b.theme.color_text_L1),u=(0,n.DU)([".fontPaidTipsContainer.Tip.on-bottom.is-open{transform:translate(-50%,0);.content{width:176px;padding:12px 16px;}}.font-family-selector .font-loading{width:24px;height:24px;}"]),d=n.Ay.div.withConfig({displayName:"styles__StyledFontSize",componentId:"sc-7ps09c-2"})(["position:relative;width:66px;.font-size-input{+ .toolbar-dropdown-opener{.var-tag{margin-left:4px;}}&.less-than{input{padding-left:24px;}+ .toolbar-dropdown-opener .var-tag{max-width:100%;}}}.questionMark{position:absolute;top:6px;left:4px;cursor:pointer;z-index:2;border-radius:2px;}"]),C=n.Ay.div.withConfig({displayName:"styles__StyledFontSizeTipsModal",componentId:"sc-7ps09c-3"})(["position:absolute;width:288px;height:",";border-radius:8px;background-color:",";box-shadow:0 2px 10px rgba(0,0,0,0.12);z-index:106;right:234px;top:",";padding:12px 0;color:",";header{display:flex;align-items:center;justify-content:space-between;padding:0 16px 8px;border-bottom:1px solid ",";font-weight:500;.close-btn{width:24px;height:24px;border-radius:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;&:hover{background-color:",";}&:active{background-color:",";}.svg-icon{width:100%;}}}.content{display:flex;flex-direction:column;padding:15px 24px 0;.bottomContainer{display:flex;justify-content:space-between;align-items:center;margin-top:12px;a.tutorials{text-decoration:underline;color:#1684FC;}span.noTips{color:",";cursor:pointer;&:hover{color:",";}}}}"],b=>b.height+"px",b=>b.theme.color_bg_white,b=>b.y+"px",b=>b.theme.color_text_L1,b=>b.theme.color_btn_secondary_active,b=>b.theme.color_btn_secondary_active,b=>b.theme.color_btn_secondary_active,b=>b.theme.color_text_L2,b=>b.theme.color_text_L1),h=n.Ay.div.withConfig({displayName:"styles__StyledFontInput",componentId:"sc-7ps09c-4"})(["position:relative;display:inline-flex;align-items:center;max-width:100%;min-width:3em;height:28px;font-size:12px;color:",";cursor:pointer;max-width:218px;border-radius:6px;border:1px solid transparent;button{height:100%;color:",";display:flex;align-items:center;max-width:192px;span{cursor:inherit;",";margin-left:6px;}.questionMark{width:16px;height:16px;margin-left:4px;}}&:not(.is-disabled):not(.readonly):hover,&.is-open{width:218px;border-color:",";.caret{margin-left:auto;visibility:visible;}}"],b=>b.theme.color_text_L2,b=>b.theme.color_text_L1,r.L9,b=>b.theme.color_bg_border_02),i=n.Ay.div.withConfig({displayName:"styles__StyledFontPadding",componentId:"sc-7ps09c-5"})(["flex:1;display:flex;max-width:146px;.var-input-container{&:hover,&.is-active,&:has(>.padding-number.is-active){z-index:2;}}.padding-item{display:flex;flex-direction:column;align-items:center;.padding-number{border-radius:0;input{margin:0 4px;}.var-input{max-width:calc(100% - 8px) !important;}&:not(.is-active){border-color:",";}&.is-active{outline:unset;border-left:1px solid "," !important;}}&:not(:first-child){margin-left:-1px;.padding-number:not(.is-active){border-left:1px solid transparent !important;}}&:first-child .padding-number{border-radius:6px 0 0 6px;}&:last-child .padding-number{border-radius:0 6px 6px 0;}.var-binded{.var-input{margin-left:4px !important;}&:not(.is-active,:hover){.var-tag{max-width:calc(100% - 7px)!important;}}.var-tag .tip-icon{display:none;& + span{max-width:100%;}}}.label{margin:8px 0;}}"],b=>b.theme.color_bg_border_02,b=>b.theme.color_proto),f=n.Ay.div.withConfig({displayName:"styles__StyledTypeface3Panel",componentId:"sc-7ps09c-6"})(["position:absolute;top:","px;right:","px;left:","px;z-index:201;width:240px;height:432px;background:",";box-shadow:0px 2px 10px rgba(0,0,0,0.12);border-radius:8px;border:1px solid ",";.cloud-unread{&::after{content:'';position:absolute;width:6px;height:6px;background-color:",";border-radius:50%;top:9px;right:0px;}}.searchbar-container{padding:0 8px;margin-top:12px;.search-bar{height:32px;border:1px solid ",";border-radius:6px;background:",";color:",";&:hover,&.isFocus{background:",";border-color:",";}}.font-search-exit{cursor:pointer;color:",";circle{fill:",";}&:hover{circle{fill:",";}}.svg-icon *{fill:currentColor;}margin-right:8px;}}.placeholder{border-bottom:1px solid ",";margin:0 21px;}.font-nav{height:36px;min-height:30px;padding:0px 15px;}.ol{height:34px;min-height:34px;}"],b=>b.position.top,b=>b.position.right,b=>b.position.left,b=>b.theme.color_bg_white,b=>b.theme.color_bg_border_01,b=>b.theme.color_proto,b=>b.theme.color_bg_border_02,b=>b.theme.color_bg_white,b=>b.theme.color_text_L3,b=>b.theme.color_bg_white,b=>b.theme.color_text_link_normal,b=>b.theme.color_slider_normal,b=>b.theme.color_slider_normal,b=>b.theme.color_slider_hover,b=>b.theme.color_bg_border_01),p=(0,n.Ay)(c.m).withConfig({displayName:"styles__StyledContextMenuEmbed",componentId:"sc-7ps09c-7"})(["position:relative !important;& > ul:first-of-type{height:","px;width:230px;overflow-y:scroll;overflow-x:hidden;margin-top:8px;padding:0;}&.font-family-menu ul{padding-left:8px;border-radius:8px;color:",";background:",";box-shadow:",";border:1px solid ",";&::-webkit-scrollbar-thumb{background:transparent;}&:hover{&::-webkit-scrollbar-thumb{background-color:",";border-radius:8px;&:hover{background-color:",";}}}&:first-of-type{height:",";background:transparent;box-shadow:none;border:0px;border-radius:0px;}.font-family-level{position:relative;}li.MenuItem{a{color:",";& > svg{margin-left:9px;}svg > path{fill:",";}.right-arrow svg > path{fill:",";}& > span{margin-left:28px;}.is-svg{fill:",";display:block;height:16px;max-width:164px;svg{height:14px;}}.is-svg *{fill:currentColor;}.right-arrow{margin-right:0px;position:absolute;right:8px;}& > .text{flex:none;}}&:not(.disabled).active{a{background:",";border-radius:4px;}}&.hovered{.is-svg{max-width:130px;}}}}& > ul:nth-of-type(2){min-width:116px;max-width:116px;margin-left:-16px;> li{max-width:unset;min-width:unset;a{margin-right:8px;}}}"],b=>b.isSearch?365:328,b=>b.theme.color_text_L1,b=>b.theme.color_bg_white,b=>b.theme.shadow_m,b=>b.theme.color_bg_border_01,b=>b.theme.color_slider_normal,b=>b.theme.color_slider_hover,b=>b.height+"px"||0,b=>b.theme.color_text_L1,b=>b.theme.color_text_L1,b=>b.theme.color_text_L2,b=>b.theme.color_text_L1,b=>b.theme.color_btn_secondary_hover),s=n.Ay.div.withConfig({displayName:"styles__StyledCloudFontPanel",componentId:"sc-7ps09c-8"})([".empty-font-container{position:absolute;top:168px;display:flex;flex-direction:column;align-items:center;width:100%;.upload-image-container{width:148px;height:67px;img{width:100%}}.sub-title{width:200px;color:",";text-align:center;}.tip1{margin-top:8px;}.blue{margin-top:6px;color:",";cursor:pointer;font-weight:500;&:hover{color:",";}}}"],b=>b.theme.color_text_L2,b=>b.theme.color_text_link_normal,b=>b.theme.color_text_link_hover),l=n.Ay.div.withConfig({displayName:"styles__StyledUploadBtn",componentId:"sc-7ps09c-9"})(["&.cloud-font-footer{display:flex;position:absolute;bottom:12px;margin-left:8px;align-items:center;.upload-btn{width :","px;height:28px;margin-right:4px;}.payme-upload-btn{width :224px;height:28px;}.payme-font{display:flex;align-items:center;justify-content:center;height:14px;}}"],b=>b.noSetting?224:196),_=n.Ay.div.withConfig({displayName:"styles__StyledEmptySearchResult",componentId:"sc-7ps09c-10"})(["display:flex;justify-content:center;align-items:center;flex-direction:column;height:386px;img{width:117px;margin-bottom:20px;}span{color:",";}"],b=>b.theme.color_text_L2)},6861:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>h});var n=e(15515),r=e(34860);const c="SHOW_COMMENT_IN_CANVAS_KEY",o="RO_SHOW_COMMENT_IN_CANVAS_KEY",I="COMMENT_FILTER_SELECTED",u=r.eT?!1:(0,n.Yt)((0,r.OB)()?c:o,!0,n.qW.Boolean),d=(0,n.Yt)(I,"",n.qW.String),C={isInCommentMode:!1,isShowCommentInCanvas:u,isShowCompletedComment:!1,commentFilterSelected:d,allCommentList:[],activeCommentCid:"",wigglingCommentCid:"",startCommentAnchorPoint:null,isCommentDragging:!1,emojiToastStyle:{left:0,top:0},atStyle:{display:"",recordCid:"",keywords:"",left:0,top:0},creatingComment:null,editorRawContentObject:{},editorIsEditing:!1,editingCommentCid:"",editingRecordCid:"",previewCommentCacheTag:0};function h(i,f){i===void 0&&(i=C);const{type:p,payload:s}=f;switch(p){case"comment:clear:state":return C;case"comment:update:state":return Object.assign({},i,s);case"comment:update:isInCommentMode":return Object.assign({},i,{isInCommentMode:s.isInCommentMode});case"comment:set:showCommentInCanvas":return(0,n.a0)((0,r.OB)()?c:o,!0,n.qW.Boolean),Object.assign({},i,{isShowCommentInCanvas:!0});case"comment:toggle:isShowCommentInCanvas":return(0,n.a0)((0,r.OB)()?c:o,!i.isShowCommentInCanvas,n.qW.Boolean),Object.assign({},i,{isShowCommentInCanvas:!i.isShowCommentInCanvas});case"comment:update:commentFilterSelected":return(0,n.a0)(I,s.commentFilterSelected,n.qW.String),Object.assign({},i,{commentFilterSelected:s.commentFilterSelected});case"comment:toggle:isShowCompletedComment":return Object.assign({},i,{isShowCompletedComment:!i.isShowCompletedComment});case"comment:update:allCommentList":return Object.assign({},i,{allCommentList:s.allCommentList});case"comment:update:activeCommentCid":return Object.assign({},i,{activeCommentCid:s.activeCommentCid});case"comment:update:wigglingCommentCid":return Object.assign({},i,{wigglingCommentCid:s.wigglingCommentCid});case"comment:update:startCommentAnchorPoint":return Object.assign({},i,{startCommentAnchorPoint:s.startCommentAnchorPoint});case"comment:update:isCommentDragging":return Object.assign({},i,{isCommentDragging:s.isCommentDragging});case"comment:update:emojiToastStyle":return Object.assign({},i,{emojiToastStyle:s.emojiToastStyle});case"comment:update:atStyle":return Object.assign({},i,{atStyle:{...i.atStyle,recordCid:"",...s.atStyle}});case"comment:update:creatingComment":return Object.assign({},i,{creatingComment:s.creatingComment});case"comment:update:editorRawContentObject":return Object.assign({},i,{editorRawContentObject:s.editorRawContentObject});case"comment:update:editorIsEditing":return Object.assign({},i,{editorIsEditing:s.editorIsEditing});case"comment:update:editingCommentCid":return Object.assign({},i,{editingCommentCid:s.editingCommentCid});case"comment:update:editingRecordCid":return Object.assign({},i,{editingRecordCid:s.editingRecordCid});case"comment:update:isShowCommentInCanvas":return Object.assign({},i,{isShowCommentInCanvas:s.isShowCommentInCanvas});default:return i}}},7279:(He,ee,e)=>{"use strict";e.d(ee,{S:()=>g,e:()=>S});var n=e(19396),r=e.n(n),c=e(38502),o=e(18381),I=e(35298),u=e(25409),d=e(37944),C=e(78257),h=e(72214);const i=t=>{const{activeWord:v,list:w,dispatch:k}=t,W=(0,c.useCallback)(()=>{k({type:"image-panel:update:state",payload:{findActiveWord:""}})},[k]);return(0,c.useEffect)(()=>()=>{W()},[]),(0,h.jsxs)(I.zw,{children:[(0,h.jsx)(u.l,{resources:{title:v},showSearch:!1,showStar:!1,onBack:W}),(0,h.jsx)(d.u,{stickerList:w,popupsName:C.lS.Asset})]})};var f=e(17307),p=e(9501),s=e(33680),l=e(83199),_=e(37253),b=e(67052),a=e(90144);const M=["\u793E\u5A92\u60C5\u7EEA\u8868\u8FBE","\u624B\u673A\u56FE\u6807","\u5E38\u89C4\u624B\u673A\u6307\u793A\u624B\u52BF","\u793E\u5A92\u4E92\u52A8","\u5404\u7C7B\u5F62\u72B6\u8868\u60C5","\u793E\u5A92\u70B9\u8D5E\u8BA2\u9605","\u529E\u516C\u573A\u666F","\u529E\u516C\u573A\u666F2","\u529E\u516C\u573A\u666F3","\u804C\u573A\u4EBA\u7269","\u7535\u5B50\u4EA7\u54C1","\u73B0\u4EE3\u79D1\u6280\u4EA7\u54C1","\u79D1\u6280","\u63D2\u753B\u98CE\u666F","\u5EFA\u7B51","\u63D2\u753B\u5361\u901A\u5EFA\u7B51","\u98DF\u7269","\u6C34\u679C\u852C\u83DC\u5361\u901A","\u6C34\u679C","\u852C\u83DC","\u5FEB\u9910\u98DF\u7269","\u5065\u5EB7\u533B\u7597","\u5065\u5EB7\u533B\u75972","\u5361\u901A\u52A8\u7269","\u690D\u7269\u5361\u901A","\u76C6\u683D","\u5929\u7A7A\u80CC\u666F","\u5F69\u8272\u65C5\u884C","\u590F\u65E5\u65C5\u884C","\u5F69\u8272\u6237\u5916\u65C5\u884C","\u8B66\u544A\u6807\u8BC6","\u4F53\u80B2\u5668\u6750","\u5065\u8EAB\u5F69\u8272","\u5965\u8FD0","\u5F69\u8272\u97F3\u4E50","\u6E38\u620F\u4EBA\u7269","\u50CF\u7D20\u98CE\u4EBA\u7269","\u5F69\u8272\u5361\u901A\u624B\u52BF","\u91D1\u878D\u5F69\u8272","\u91D1\u878D\u5355\u8272","\u73AF\u5883\u4FDD\u62A4","\u73AF\u5883\u4FDD\u62A4\u5355\u8272","\u80FD\u6E90","\u5723\u8BDE\u8282","\u53CC\u5341\u4E00","\u53CC\u5341\u4E002","\u4E2D\u79CB\u8282\u5361\u901A","\u4E2D\u79CB\u6708\u997C","\u60C5\u4EBA\u8282\u7231\u5FC3","\u60C5\u4EBA\u8282\u7231\u5FC32","\u4E03\u5915\u5361\u901A","\u5143\u5BB5\u8282\u5361\u901A","\u7AEF\u5348\u8282\u5361\u901A","\u5176\u4ED6"],x=t=>t.sort((v,w)=>M.findIndex(k=>k===v.category)-M.findIndex(k=>k===w.category)),g=e.j!=477?(0,c.memo)(t=>{var v;const{activeWord:w}=t,[k,W]=(0,c.useState)(1),K=(0,c.useRef)(null),G=(0,o.wA)(),$=(0,o.d4)(b.p),P=(0,c.useMemo)(()=>$.slice(0,k*8).map(O=>({...O,list:O.list.map(V=>(0,s.nA)(O.category,V))})),[k,$]),E=O=>{G({type:"image-panel:update:state",payload:{findActiveWord:O}}),(0,a.gQ)({widget_file_name:O,source:a.Dn.STICKER_FIND})},H=r()(O=>{const V=O.target,Q=V.scrollTop,N=V.scrollHeight,L=V.getBoundingClientRect().height;if(Q+L+24>N){if(k*8>P.length)return;W(U=>U+1)}},200);return!P||P.length<1?null:w?(0,h.jsx)(i,{list:(v=P.find(O=>O.category===w))==null?void 0:v.list,activeWord:w,dispatch:G}):(0,h.jsx)(I.VA,{ref:K,onScroll:H,children:P.map((O,V)=>(0,h.jsxs)("div",{className:"sticker-group-item",children:[(0,h.jsxs)("div",{className:"group-header",children:[(0,h.jsxs)("div",{className:"left",children:[(0,h.jsx)("p",{className:"title",children:O.category}),(0,h.jsx)(l.A,{content:I18N.Resources.resourcesFooter.free_for_member,direction:"down",distance:8,enterHoverTime:100,children:(0,h.jsx)(f.C,{name:"left_panel/icon_list/mat_member",className:"mat-member",isColorPure:!0})})]}),(0,h.jsxs)("div",{className:"right",onClick:()=>E(O.category),children:[(0,h.jsx)("p",{children:I18N.Popups.iconCat.All}),(0,h.jsx)(f.C,{className:"arrow-right",name:"design/arrow/right"})]})]}),(0,h.jsx)("ul",{className:"content",children:O.list.slice(0,6).map((Q,N)=>(0,h.jsx)(p.B,{asset:Q,popupsName:C.lS.Asset,from:"findPanel"},N))})]},V))})}):null,S=async()=>{const t=await(0,_.DE)("/api/community/v1/recommend_sticker");t!=null&&t.length&&x(t),MB.action("image-panel:set:stickerData",Array.isArray(t)?t:[])}},8113:(He,ee,e)=>{"use strict";e.d(ee,{EP:()=>S,Ey:()=>g,hp:()=>x});var n=e(60892);const r=(t,v)=>{const w=[];for(let k=0;k<v;k++)w.push(t(k));return w},c=(t,v)=>r(w=>w+t,v-t+1),o=t=>r(v=>v/t,1+t),I=(t,v)=>({[Symbol.iterator]:()=>{let w=0;return{next:()=>w<v?{value:t(w++),done:!1}:{value:t(w),done:!0}}}}),u=(t,v)=>I(w=>w+t,v-t+1),d=t=>I(v=>v/t,1+t);var C=e(94299),h=e(44691);const i="\u{1F631}\u{1F47E}",f=4,p=256,s=32*1024*1024,l=1024*1024*1024,_=t=>(0,h.l)(new TextEncoder().encode(JSON.stringify(t)).buffer),b=t=>JSON.parse(new TextDecoder().decode((0,h.D)(t))),a=async()=>{try{const{quota:t=0,usage:v=0}=await navigator.storage.estimate(),w=(0,C.qE)(t*.5,s,l);return{quota:t,usage:v,maxDataSize:w}}catch(t){console.warn("#FS|estimate",t)}return{maxDataSize:s}},M=async()=>{const{maxDataSize:t}=await a(),v=new Set(c(-4,2).map(W=>{const K=new Date;return K.setUTCDate(K.getUTCDate()+W),""+i+(0,n.J8)(K)}));let w=0;const k=[];if(typeof caches<"u"){for(const W of await caches.keys()){if(!W.startsWith(i))continue;if(!v.has(W)){console.log("#FS|trim outdated",W),await caches.delete(W);continue}const K=await caches.open(W);for(const G of await K.keys())try{const $=await K.match(G),{time:P=0,size:E=0}=b($.statusText);k.push({key:W,keyC:G,time:P,size:E})}catch($){console.warn("#FS|trim",G,$)}}for(k.sort((W,K)=>K.time-W.time),w=k.reduce((W,K)=>{let{size:G}=K;return W+G},0);(w>=t||k.length>=p)&&k.length>=f;){const{key:W,keyC:K,time:G,size:$}=k.pop();console.log("#FS|trim size",W,K,$,new Date(G).toISOString()),await(await caches.open(W)).delete(K),w-=$}}return{maxDataSize:t,sizeSum:w,ciList:k}},x=async(t,v,w)=>{const k={...w,time:Date.now(),size:v.size};if(typeof caches<"u"){const W=await caches.open(""+i+(0,n.J8)());await M(),await W.put(t,new Response(v,{statusText:_(k),headers:{"content-length":String(v.size)}}))}return k},g=async t=>{const v=[];if(typeof caches<"u"){for(const w of await caches.keys()){const W=await(await caches.open(w)).match(t);if(W!==void 0)try{const K=await W.blob(),G=b(W.statusText);v.push({data:K,extra:G})}catch(K){console.warn("#FS|load",t,K)}}v.sort((w,k)=>k.extra.time-w.extra.time)}return v},S=async function(t,v){v===void 0&&(v=Date.now());let w=0;if(typeof caches<"u")for(const k of await caches.keys()){const W=await caches.open(k),K=await W.match(t);if(K!==void 0)try{if(b(K.statusText).time>v)continue;await W.delete(t),w++}catch(G){console.warn("#FS|free",t,k,G)}}return w}},8228:(He,ee,e)=>{"use strict";e.d(ee,{$I:()=>I,IA:()=>r,SR:()=>c});var n=e(27660);let r=function(d){return d.AIPanel="AI\u9762\u677F",d.SearchPanel="\u641C\u7D22\u9762\u677F",d.ComboPanel="\u7EC4\u4EF6\u9762\u677F",d.PagePanel="\u9875\u9762\u9762\u677F",d}({}),c=function(d){return d.AIAssistant="AIAssistant",d.Page="Page",d.PageV9="PageV9",d.AIHTML="AIHTML",d.Flow="flow",d.Mind="mind",d.Table="table",d.Chart="chart",d.AutoFill="autofill",d.Semantic="semantic",d.Combo="combo",d}({}),o=function(d){return d.page="page",d.component="component",d.other="other",d.semantic="semantic ",d}({});const I=(0,n.R)(()=>[{label:I18N.ChatGPT.ai_prototype,title:I18N.ChatGPT.ai_prototype_title,type:c.PageV9,points:400,recommends:[I18N.ChatGPT.ai_prototype_label_1,I18N.ChatGPT.ai_prototype_label_2,I18N.ChatGPT.ai_prototype_label_3],aiType:"\u751F\u6210\u539F\u578B\u9875\u9762",source:"",menu:o.page,icon:"chatGPT/ai-component-page",desc:I18N.ChatGPT.ai_prototype_desc,className:"ai-page",componentTitle:I18N.ChatGPT.ai_prototype_component_title},{label:I18N.ArtBoard.flow,title:I18N.ChatGPT.ai_flow_title,type:c.Flow,points:200,recommends:[I18N.ChatGPT.ai_flow_label_1,I18N.ChatGPT.ai_flow_label_2,I18N.ChatGPT.ai_flow_label_3],aiType:"\u751F\u6210\u6D41\u7A0B\u56FE",source:"",menu:o.component,icon:"chatGPT/ai-component-flow",desc:I18N.ChatGPT.ai_flow_desc,className:"ai-flow",componentTitle:I18N.ChatGPT.ai_flow_component_title},{label:I18N.ArtBoard.mind,title:I18N.ChatGPT.ai_mind_title,type:c.Mind,points:200,recommends:[I18N.ChatGPT.ai_mind_label_1,I18N.ChatGPT.ai_mind_label_2,I18N.ChatGPT.ai_mind_label_3],aiType:"\u751F\u6210\u601D\u7EF4\u5BFC\u56FE",source:"",menu:o.component,icon:"chatGPT/ai-component-mind",desc:I18N.ChatGPT.ai_mind_desc,className:"ai-mind",componentTitle:I18N.ChatGPT.ai_mind_component_title},{label:I18N.w.table,title:I18N.ChatGPT.ai_table_title,type:c.Table,points:200,recommends:[I18N.ChatGPT.ai_table_label_1,I18N.ChatGPT.ai_table_label_2,I18N.ChatGPT.ai_table_label_3],aiType:"\u751F\u6210\u8868\u683C",source:"",menu:o.component,icon:"chatGPT/ai-component-table",desc:I18N.ChatGPT.ai_table_desc,className:"ai-table",componentTitle:I18N.ChatGPT.ai_table_component_title},{label:I18N.w.wChart,title:I18N.ChatGPT.ai_Chart_title,type:c.Chart,points:200,recommends:[I18N.ChatGPT.ai_wChart_label_1,I18N.ChatGPT.ai_wChart_label_2,I18N.ChatGPT.ai_wChart_label_3],aiType:"\u751F\u6210\u56FE\u8868",source:"",menu:o.component,icon:"chatGPT/ai-component-chart",desc:I18N.ChatGPT.ai_Chart_desc,className:"ai-chart",componentTitle:I18N.ChatGPT.ai_Chart_component_title},{label:I18N.ChatGPT.magic_fill,title:I18N.ChatGPT.ai_magicFill_title,type:c.AutoFill,points:200,recommends:[I18N.ChatGPT.ai_smart_fill_label_2,I18N.ChatGPT.ai_smart_fill_label_1,I18N.ChatGPT.ai_smart_fill_label_3],aiType:"\u667A\u80FD\u586B\u5145",source:"",menu:o.other,icon:"chatGPT/ai-component-autofill",desc:I18N.ChatGPT.ai_magicFill_desc,className:"ai-magic-fill"},{label:"\u8BED\u4E49\u5316",title:"AI \u8BED\u4E49\u5316",type:c.Semantic,points:200,recommends:["\u5E2E\u6211\u751F\u6210\u4E00\u4E2A\u7535\u5546\u7C7BAPP\uFF0C\u5E76\u4E14\u8F93\u5165\u4E00\u4EFDprd\u6587\u6863","`\u6211\u7231\u52A0\u73ED`\u3002\u8BF7\u5E2E\u6211\u628A\u4E0A\u9762\u8FD9\u6BB5\u8BDD\u8C03\u6574\u7684\u66F4\u52A0\u4E30\u5BCC\u751F\u52A8\u4E00\u70B9","\u5E2E\u6211\u751F\u6210\u4E00\u4EFD2022\u5E74\u56FD\u5BB6\u7ECF\u6D4E\u66F2\u7EBF\u56FE\u30012022\u5E74\u5404\u7701\u7ECF\u6D4E\u6536\u5165\u8868\u683C"],aiType:"MD\u8BED\u4E49\u5316",source:"AI\u8BED\u4E49\u5316\u9762\u677F",menu:o.semantic,icon:"chatGPT/ai-component-autofill",desc:I18N.ChatGPT.ai_magicFill_desc,className:"ai-magic-fill"}]),u=(0,n.R)(()=>[{title:I18N.ChatGPT.ai_prototype,items:I().filter(C=>C.menu===o.page)},{title:I18N.ChatGPT.ai_advanced_components,items:I().filter(C=>C.menu===o.component)},{title:I18N.ChatGPT.ai_magic_fill,items:I().filter(C=>C.menu===o.other)}])},8281:(He,ee,e)=>{"use strict";e.d(ee,{hC:()=>V,Mj:()=>H,Wz:()=>O,eQ:()=>Q,rD:()=>E});function n(N,L,U,A){const D=[L];if(A.y<L.y){const B=(L.y+(A.y+U.h))/2;U.x+U.w>=L.x&&A.x<L.x?(D.push({x:L.x,y:B}),D.push({x:U.x+U.w+20,y:B}),D.push({x:U.x+U.w+20,y:A.y-20}),D.push({x:A.x,y:A.y-20})):A.x>=L.x&&U.x<L.x?(D.push({x:L.x,y:B}),D.push({x:U.x-20,y:B}),D.push({x:U.x-20,y:A.y-20}),D.push({x:A.x,y:A.y-20})):(D.push({x:L.x,y:A.y-20}),D.push({x:A.x,y:A.y-20}))}if(A.y>=L.y){const B=(A.y+(L.y+N.h))/2;A.x>=N.x&&A.x<N.x+N.w/2?(D.push({x:L.x,y:L.y-20}),D.push({x:N.x-20,y:L.y-20}),D.push({x:N.x-20,y:B}),D.push({x:A.x,y:B})):A.x>=N.x+N.w/2&&A.x<N.x+N.w?(D.push({x:L.x,y:L.y-20}),D.push({x:N.x+N.w+20,y:L.y-20}),D.push({x:N.x+N.w+20,y:B}),D.push({x:A.x,y:B})):(D.push({x:L.x,y:L.y-20}),D.push({x:A.x,y:L.y-20}))}return D.push(A),D}function r(N,L,U,A){return I(U,A,N,L).reverse()}function c(N,L,U,A){const D=[L];if(A.y<L.y){const B=(L.y+A.y)/2;D.push({x:L.x,y:B}),D.push({x:A.x,y:B})}if(A.y>=L.y&&U.y<=N.y+N.h)if(U.x+U.w<N.x){const B=(U.x+U.w+N.x)/2;D.push({x:L.x,y:L.y-20}),D.push({x:B,y:L.y-20}),D.push({x:B,y:A.y+20}),D.push({x:A.x,y:A.y+20})}else if(U.x+U.w>=N.x&&A.x<L.x){const B=N.y<U.y?N.y-20:U.y-20,j=N.x<U.x?N.x-20:U.x-20;D.push({x:L.x,y:B}),D.push({x:j,y:B}),D.push({x:j,y:A.y+20}),D.push({x:A.x,y:A.y+20})}else if(A.x>=L.x&&U.x<=N.x+N.w){const B=N.y<U.y?N.y-20:U.y-20,j=N.x+N.w>U.x+U.w?N.x+N.w+20:U.x+U.w+20;D.push({x:L.x,y:B}),D.push({x:j,y:B}),D.push({x:j,y:A.y+20}),D.push({x:A.x,y:A.y+20})}else{const B=(N.x+N.w+U.x)/2;D.push({x:L.x,y:L.y-20}),D.push({x:B,y:L.y-20}),D.push({x:B,y:A.y+20}),D.push({x:A.x,y:A.y+20})}if(U.y>N.y+N.h)if(U.x+U.w<N.x){const B=(U.x+U.w+N.x)/2;D.push({x:L.x,y:L.y-20}),D.push({x:B,y:L.y-20}),D.push({x:B,y:A.y+20}),D.push({x:A.x,y:A.y+20})}else if(U.x+U.w>=N.x&&A.x<L.x){const B=(N.y+N.h+U.y)/2;D.push({x:L.x,y:L.y-20}),D.push({x:N.x-20,y:L.y-20}),D.push({x:N.x-20,y:B}),D.push({x:U.x+U.w+20,y:B}),D.push({x:U.x+U.w+20,y:A.y+20}),D.push({x:A.x,y:A.y+20})}else if(A.x>=L.x&&U.x<=N.x+N.w){const B=(N.y+N.h+U.y)/2;D.push({x:L.x,y:L.y-20}),D.push({x:N.x+N.w+20,y:L.y-20}),D.push({x:N.x+N.w+20,y:B}),D.push({x:U.x-20,y:B}),D.push({x:U.x-20,y:A.y+20}),D.push({x:A.x,y:A.y+20})}else{const B=(N.x+N.w+U.x)/2;D.push({x:L.x,y:L.y-20}),D.push({x:B,y:L.y-20}),D.push({x:B,y:A.y+20}),D.push({x:A.x,y:A.y+20})}return D.push(A),D}function o(N,L,U,A){const D=[L];if(A.y<L.y&&(A.x>L.x&&D.push({x:L.x,y:A.y}),A.x<=L.x)){if(U.y+U.h<L.y){const B=(U.y+U.h+L.y)/2;D.push({x:L.x,y:B}),D.push({x:U.x-20,y:B}),D.push({x:U.x-20,y:A.y})}if(U.y+U.h>=L.y)if(U.x+U.w>=N.x)D.push({x:L.x,y:U.y-20}),D.push({x:A.x-20,y:U.y-20}),D.push({x:A.x-20,y:A.y});else{const B=(U.x+U.w+N.x)/2;D.push({x:L.x,y:L.y-20}),D.push({x:B,y:L.y-20}),D.push({x:B,y:U.y+U.h+20}),D.push({x:A.x-20,y:U.y+U.h+20}),D.push({x:A.x-20,y:A.y})}}if(A.y>=L.y)if(A.x<=L.x){const B=N.x<U.x?N.x-20:U.x-20,j=N.y<U.y?N.y-20:U.y-20;D.push({x:L.x,y:j}),D.push({x:B,y:j}),D.push({x:B,y:A.y})}else if(A.x>L.x&&A.x<=N.x+N.w)if(U.y<=N.y+N.h)D.push({x:L.x,y:L.y-20}),D.push({x:N.x-20,y:L.y-20}),D.push({x:N.x-20,y:A.y});else{const B=(N.y+N.h+U.y)/2;D.push({x:L.x,y:L.y-20}),D.push({x:N.x+N.w+20,y:L.y-20}),D.push({x:N.x+N.w+20,y:B}),D.push({x:A.x-20,y:B}),D.push({x:A.x-20,y:A.y})}else{const B=(N.x+N.w+A.x)/2;D.push({x:L.x,y:L.y-20}),D.push({x:B,y:L.y-20}),D.push({x:B,y:A.y})}return D.push(A),D}function I(N,L,U,A){const D=[L];if(U.x>L.x){const B=(L.x+U.x)/2;A.y<=L.y?(D.push({x:B,y:L.y}),D.push({x:B,y:A.y-20}),D.push({x:A.x,y:A.y-20})):D.push({x:A.x,y:L.y})}if(U.x<=L.x&&U.x+U.w>L.x&&(U.y+U.h<=L.y&&(D.push({x:U.x+U.w+20,y:L.y}),D.push({x:U.x+U.w+20,y:A.y-20}),D.push({x:A.x,y:A.y-20})),U.y>=L.y&&U.y<=N.y+N.h&&D.push({x:A.x,y:L.y}),U.y>N.y+N.h))if(A.x>L.x)D.push({x:A.x,y:L.y});else{const B=(A.y+(N.y+N.h))/2;D.push({x:L.x+20,y:L.y}),D.push({x:L.x+20,y:B}),D.push({x:A.x,y:B})}if(U.x+U.w<=L.x)if(A.y>N.y+N.h){const B=(A.y+(N.y+N.h))/2;D.push({x:L.x+20,y:L.y}),D.push({x:L.x+20,y:B}),D.push({x:A.x,y:B})}else if(A.y>L.y&&A.y<=N.y+N.h)if(U.x+U.w>=N.x)D.push({x:L.x+20,y:L.y}),D.push({x:L.x+20,y:N.y-20}),D.push({x:A.x,y:N.y-20});else{const B=(U.x+U.w+N.x)/2;D.push({x:L.x+20,y:L.y}),D.push({x:L.x+20,y:N.y+N.h+20}),D.push({x:B,y:N.y+N.h+20}),D.push({x:B,y:A.y-20}),D.push({x:A.x,y:A.y-20})}else{const B=U.y<N.y?U.y-20:N.y-20;D.push({x:L.x+20,y:L.y}),D.push({x:L.x+20,y:B}),D.push({x:A.x,y:B})}return D.push(A),D}function u(N,L,U,A){const D=[L];if(A.y>N.y+N.h){const B=A.x>L.x?A.x+20:L.x+20;if(U.x>L.x&&U.y<L.y){const j=(U.x+L.x)/2;D.push({x:j,y:L.y}),D.push({x:j,y:U.y-20}),D.push({x:A.x+20,y:U.y-20}),D.push({x:A.x+20,y:A.y})}else D.push({x:B,y:L.y}),D.push({x:B,y:A.y})}if(A.y<=N.y+N.h&&A.y>L.y){if(A.x<N.x){const B=(A.x+N.x)/2;D.push({x:L.x+20,y:L.y}),D.push({x:L.x+20,y:N.y+N.h+20}),D.push({x:B,y:N.y+N.h+20}),D.push({x:B,y:A.y})}if(U.x>L.x){const B=(U.x+L.x)/2;D.push({x:B,y:L.y}),D.push({x:B,y:U.y-20}),D.push({x:A.x+20,y:U.y-20}),D.push({x:A.x+20,y:A.y})}}if(A.y<=L.y&&A.y>N.y){if(A.x<N.x){const B=(A.x+N.x)/2;D.push({x:L.x+20,y:L.y}),D.push({x:L.x+20,y:N.y-20}),D.push({x:B,y:N.y-20}),D.push({x:B,y:A.y})}if(U.x>L.x){const B=(U.x+L.x)/2;D.push({x:B,y:L.y}),D.push({x:B,y:U.y+U.h+20}),D.push({x:A.x+20,y:U.y+U.h+20}),D.push({x:A.x+20,y:A.y})}}if(A.y<=N.y){const B=A.x>L.x?A.x+20:L.x+20;if(U.x>L.x&&U.y+U.h>L.y){const j=(U.x+L.x)/2;D.push({x:j,y:L.y}),D.push({x:j,y:U.y+U.h+20}),D.push({x:A.x+20,y:U.y+U.h+20}),D.push({x:A.x+20,y:A.y})}else D.push({x:B,y:L.y}),D.push({x:B,y:A.y})}return D.push(A),D}function d(N,L,U,A){const D=[L];if(A.y<N.y)if(A.x<L.x){const B=(A.y+N.y)/2;D.push({x:L.x+20,y:L.y}),D.push({x:L.x+20,y:B}),D.push({x:A.x,y:B})}else D.push({x:A.x,y:L.y});if(A.y>=N.y&&A.y<L.y){if(U.x+U.w<N.x){const B=(U.x+U.w+N.x)/2;D.push({x:L.x+20,y:L.y}),D.push({x:L.x+20,y:N.y-20}),D.push({x:B,y:N.y-20}),D.push({x:B,y:A.y+20}),D.push({x:A.x,y:A.y+20})}U.x+U.w>=N.x&&A.x<N.x&&(D.push({x:L.x+20,y:L.y}),D.push({x:L.x+20,y:N.y+N.h+20}),D.push({x:A.x,y:N.y+N.h+20})),A.x>L.x&&D.push({x:A.x,y:L.y})}if(A.y>=L.y){if(A.x<=L.x){const B=L.x>U.x+U.w?L.x+20:U.x+U.w+20,j=A.y>N.y+N.h?A.y+20:N.y+N.h+20;D.push({x:B,y:L.y}),D.push({x:B,y:j}),D.push({x:A.x,y:j})}if(A.x>L.x&&U.x<=L.x)if(U.y<=N.y+N.h)D.push({x:U.x+U.w+20,y:L.y}),D.push({x:U.x+U.w+20,y:A.y+20}),D.push({x:A.x,y:A.y+20});else{const B=(U.y+(N.y+N.h))/2;D.push({x:L.x+20,y:L.y}),D.push({x:L.x+20,y:B}),D.push({x:U.x-20,y:B}),D.push({x:U.x-20,y:A.y+20}),D.push({x:A.x,y:A.y+20})}if(U.x>L.x){const B=(L.x+U.x)/2;D.push({x:B,y:L.y}),D.push({x:B,y:A.y+20}),D.push({x:A.x,y:A.y+20})}}return D.push(A),D}function C(N,L,U,A){const D=[L];if(A.x>L.x){const B=(L.x+A.x)/2;D.push({x:B,y:L.y}),D.push({x:B,y:A.y})}if(A.x<=L.x){if(U.y+U.h<N.y){const B=(U.y+U.h+N.y)/2;D.push({x:L.x+20,y:L.y}),D.push({x:L.x+20,y:B}),D.push({x:A.x-20,y:B}),D.push({x:A.x-20,y:A.y})}if(U.y+U.h>=N.y&&A.y<N.y)if(U.x+U.w<N.x){const B=(U.x+U.w+N.x)/2;D.push({x:L.x+20,y:L.y}),D.push({x:L.x+20,y:N.y-20}),D.push({x:B,y:N.y-20}),D.push({x:B,y:U.y+U.h+20}),D.push({x:A.x-20,y:U.y+U.h+20}),D.push({x:A.x-20,y:A.y})}else{const B=U.x+U.w>N.x+N.w?U.x+U.w+20:N.x+N.w+20,j=U.y<N.y?U.y-20:N.y-20;D.push({x:B,y:L.y}),D.push({x:B,y:j}),D.push({x:A.x-20,y:j}),D.push({x:A.x-20,y:A.y})}if(A.y>=N.y&&A.y<N.y+N.h){const B=U.y<N.y?U.y-20:N.y-20;D.push({x:L.x+20,y:L.y}),D.push({x:L.x+20,y:B}),D.push({x:A.x-20,y:B}),D.push({x:A.x-20,y:A.y})}if(A.y>=N.y+N.h&&U.y<N.y+N.h)if(U.x+U.w<N.x){const B=(U.x+U.w+N.x)/2;D.push({x:L.x+20,y:L.y}),D.push({x:L.x+20,y:N.y+N.h+20}),D.push({x:B,y:N.y+N.h+20}),D.push({x:B,y:U.y-20}),D.push({x:A.x-20,y:U.y-20}),D.push({x:A.x-20,y:A.y})}else{const B=U.y<N.y?U.y-20:N.y-20,j=U.x<N.x?U.x-20:N.x-20;D.push({x:L.x+20,y:L.y}),D.push({x:L.x+20,y:B}),D.push({x:j,y:B}),D.push({x:j,y:A.y})}if(U.y>=N.y+N.h){const B=(U.y+(N.y+N.h))/2;D.push({x:L.x+20,y:L.y}),D.push({x:L.x+20,y:B}),D.push({x:A.x-20,y:B}),D.push({x:A.x-20,y:A.y})}}return D.push(A),D}function h(N,L,U,A){return c(U,A,N,L).reverse()}function i(N,L,U,A){return d(U,A,N,L).reverse()}function f(N,L,U,A){const D=[L];if(A.y>L.y){const B=(L.y+U.y)/2;U.x+U.w>=L.x&&A.x<L.x?(D.push({x:L.x,y:B}),D.push({x:U.x+U.w+20,y:B}),D.push({x:U.x+U.w+20,y:A.y+20}),D.push({x:A.x,y:A.y+20})):A.x>=L.x&&U.x<L.x?(D.push({x:L.x,y:B}),D.push({x:U.x-20,y:B}),D.push({x:U.x-20,y:A.y+20}),D.push({x:A.x,y:A.y+20})):(D.push({x:L.x,y:A.y+20}),D.push({x:A.x,y:A.y+20}))}if(A.y<=L.y){const B=(A.y+N.y)/2;A.x>=N.x&&A.x<N.x+N.w/2?(D.push({x:L.x,y:L.y+20}),D.push({x:N.x-20,y:L.y+20}),D.push({x:N.x-20,y:B}),D.push({x:A.x,y:B})):A.x>=N.x+N.w/2&&A.x<N.x+N.w?(D.push({x:L.x,y:L.y+20}),D.push({x:N.x+N.w+20,y:L.y+20}),D.push({x:N.x+N.w+20,y:B}),D.push({x:A.x,y:B})):(D.push({x:L.x,y:L.y+20}),D.push({x:A.x,y:L.y+20}))}return D.push(A),D}function p(N,L,U,A){return _(U,A,N,L).reverse()}function s(N,L,U,A){return o(U,A,N,L).reverse()}function l(N,L,U,A){return C(U,A,N,L).reverse()}function _(N,L,U,A){const D=[L];if(A.y<L.y&&(A.x<L.x&&D.push({x:A.x,y:L.y}),A.x>=L.x)){if(A.y<N.y){const B=(A.y+N.y)/2;D.push({x:L.x-20,y:L.y}),D.push({x:L.x-20,y:B}),D.push({x:A.x,y:B})}if(A.y>=N.y&&(U.x<=N.x+N.w&&(D.push({x:L.x-20,y:L.y}),D.push({x:L.x-20,y:N.y+N.h+20}),D.push({x:A.x,y:N.y+N.h+20})),U.x>N.x+N.w)){const B=(U.x+(N.x+N.w))/2;D.push({x:L.x-20,y:L.y}),D.push({x:L.x-20,y:N.y-20}),D.push({x:B,y:N.y-20}),D.push({x:B,y:A.y+20}),D.push({x:A.x,y:A.y+20})}}if(A.y>=L.y){if(U.x+U.w<L.x){const B=(U.x+U.w+L.x)/2;D.push({x:B,y:L.y}),D.push({x:B,y:A.y+20}),D.push({x:A.x,y:A.y+20})}if(U.x+U.w>=L.x&&A.x<L.x)if(U.y<=N.y+N.h)D.push({x:U.x-20,y:L.y}),D.push({x:U.x-20,y:A.y+20}),D.push({x:A.x,y:A.y+20});else{const B=(U.y+(N.y+N.h))/2;D.push({x:L.x-20,y:L.y}),D.push({x:L.x-20,y:B}),D.push({x:U.x+U.w+20,y:B}),D.push({x:U.x+U.w+20,y:A.y+20}),D.push({x:A.x,y:A.y+20})}if(A.x>=L.x){const B=N.x<U.x?N.x-20:U.x-20,j=N.y+N.h>U.y+U.h?N.y+N.h+20:U.y+U.h+20;D.push({x:B,y:L.y}),D.push({x:B,y:j}),D.push({x:A.x,y:j})}}return D.push(A),D}function b(N,L,U,A){const D=[L];if(A.x<L.x){const B=(L.x+(U.x+U.w))/2;U.y+U.h>=L.y&&A.y<L.y?(D.push({x:B,y:L.y}),D.push({x:B,y:U.y+U.h+20}),D.push({x:A.x-20,y:U.y+U.h+20}),D.push({x:A.x-20,y:A.y})):A.y>=L.y&&U.y<L.y?(D.push({x:B,y:L.y}),D.push({x:B,y:U.y-20}),D.push({x:A.x-20,y:U.y-20}),D.push({x:A.x-20,y:A.y})):(D.push({x:A.x-20,y:L.y}),D.push({x:A.x-20,y:A.y}))}if(A.x>=L.x){const B=(A.x+(N.x+N.w))/2;A.y>=N.y&&A.y<N.y+N.h/2?(D.push({x:L.x-20,y:L.y}),D.push({x:L.x-20,y:N.y-20}),D.push({x:B,y:N.y-20}),D.push({x:B,y:A.y})):A.y>=N.y+N.h/2&&A.y<N.y+N.h?(D.push({x:L.x-20,y:L.y}),D.push({x:L.x-20,y:N.y+N.h+20}),D.push({x:B,y:N.y+N.h+20}),D.push({x:B,y:A.y})):(D.push({x:L.x-20,y:L.y}),D.push({x:L.x-20,y:A.y}))}return D.push(A),D}const M={toptop:n,topright:r,topbottom:c,topleft:o,righttop:I,rightright:u,rightbottom:d,rightleft:C,bottomtop:h,bottomright:i,bottombottom:f,bottomleft:p,lefttop:s,leftright:l,leftbottom:_,leftleft:b};var x=e(33848);function g(N,L){const U={};switch(L){case"top":U.x=N.x+N.w/2,U.y=N.y;break;case"right":U.x=N.x+N.w,U.y=N.y+N.h/2;break;case"bottom":U.x=N.x+N.w/2,U.y=N.y+N.h;break;case"left":U.x=N.x,U.y=N.y+N.h/2;break;default:break}return U}function S(N,L){const U={};switch(L){case"top":U.x=N.x+N.w/2,U.y=N.y-20;break;case"right":U.x=N.x+N.w+20,U.y=N.y+N.h/2;break;case"bottom":U.x=N.x+N.w/2,U.y=N.y+N.h+20;break;case"left":U.x=N.x-20,U.y=N.y+N.h/2;break;default:break}return U}function t(N,L,U){const A=Math.atan2(L.y-U.y,U.x-L.x)*(180/Math.PI),D=(L.x+U.x)/2,B=(L.y+U.y)/2,j=[L];switch(N){case"top":Math.abs(U.x-L.x)>5?(A>=-135&&A<=-45?(j.push({x:L.x,y:B}),j.push({x:U.x,y:B})):j.push({x:L.x,y:U.y}),j.push(U)):j.push({x:L.x,y:U.y});break;case"right":Math.abs(U.y-L.y)>5?(A>=-45&&A<=45?(j.push({x:D,y:L.y}),j.push({x:D,y:U.y})):j.push({x:U.x,y:L.y}),j.push(U)):j.push({x:U.x,y:L.y});break;case"bottom":Math.abs(U.x-L.x)>5?(A>=45&&A<=135?(j.push({x:L.x,y:B}),j.push({x:U.x,y:B})):j.push({x:L.x,y:U.y}),j.push(U)):j.push({x:L.x,y:U.y});break;case"left":Math.abs(U.y-L.y)>5?(A>=135&&A<=180||A>=-180&&A<=-135?(j.push({x:D,y:L.y}),j.push({x:D,y:U.y})):j.push({x:U.x,y:L.y}),j.push(U)):j.push({x:U.x,y:L.y});break;default:j.push(U);break}return j}function v(N,L,U,A){const D=Math.atan2(U.y-A.y,A.x-U.x)*(180/Math.PI),B=(U.x+A.x)/2,j=(U.y+A.y)/2,F=[U];switch(N){case"top":A.y<=U.y-10&&(Math.abs(A.x-U.x)>5?((D<45||D>135)&&F.push({x:U.x,y:A.y}),D>=45&&D<=135&&(F.push({x:U.x,y:j}),F.push({x:A.x,y:j})),F.push(A)):F.push({x:U.x,y:A.y})),A.y>U.y-10&&A.y<=U.y&&(Math.abs(A.x-U.x)>5?(F.push({x:U.x,y:U.y-10}),F.push({x:A.x,y:U.y-10})):F.push({x:U.x,y:U.y-10})),A.y>U.y&&(F.push({x:U.x,y:U.y-20}),(A.x<=L.x-20||A.x>=L.x+L.w+20)&&F.push({x:A.x,y:U.y-20}),A.x>L.x-20&&A.x<=L.x+L.w/2&&(F.push({x:L.x-20,y:U.y-20}),F.push({x:L.x-20,y:A.y})),A.x>L.x+L.w/2&&A.x<L.x+L.w+20&&(F.push({x:L.x+L.w+20,y:U.y-20}),F.push({x:L.x+L.w+20,y:A.y})),F.push(A));break;case"right":A.x>=U.x+10&&(Math.abs(A.y-U.y)>5?((D>45||D<-45)&&F.push({x:A.x,y:U.y}),D>=-45&&D<=45&&(F.push({x:B,y:U.y}),F.push({x:B,y:A.y})),F.push(A)):F.push({x:A.x,y:U.y})),A.x>=U.x&&A.x<U.x+10&&(Math.abs(A.y-U.y)>5?(F.push({x:U.x+10,y:U.y}),F.push({x:U.x+10,y:A.y})):F.push({x:U.x+10,y:U.y})),A.x<U.x&&(F.push({x:U.x+20,y:U.y}),(A.y<=L.y-20||A.y>=L.y+L.h+20)&&F.push({x:U.x+20,y:A.y}),A.y>L.y-20&&A.y<=L.y+L.h/2&&(F.push({x:U.x+20,y:L.y-20}),F.push({x:A.x,y:L.y-20})),A.y>L.y+L.h/2&&A.y<L.y+L.h+20&&(F.push({x:U.x+20,y:L.y+L.h+20}),F.push({x:A.x,y:L.y+L.h+20})),F.push(A));break;case"bottom":A.y>=U.y+10&&(Math.abs(A.x-U.x)>5?((D<-135||D>-45)&&F.push({x:U.x,y:A.y}),D>=-135&&D<=-45&&(F.push({x:U.x,y:j}),F.push({x:A.x,y:j})),F.push(A)):F.push({x:U.x,y:A.y})),A.y<U.y+10&&A.y>=U.y&&(Math.abs(A.x-U.x)>5?(F.push({x:U.x,y:U.y+10}),F.push({x:A.x,y:U.y+10})):F.push({x:U.x,y:U.y+10})),A.y<U.y&&(F.push({x:U.x,y:U.y+20}),(A.x<=L.x-20||A.x>=L.x+L.w+20)&&F.push({x:A.x,y:U.y+20}),A.x>L.x-20&&A.x<=L.x+L.w/2&&(F.push({x:L.x-20,y:U.y+20}),F.push({x:L.x-20,y:A.y})),A.x>L.x+L.w/2&&A.x<L.x+L.w+20&&(F.push({x:L.x+L.w+20,y:U.y+20}),F.push({x:L.x+L.w+20,y:A.y})),F.push(A));break;case"left":A.x<=U.x-10&&(Math.abs(A.y-U.y)>5?((D<135||D>-135)&&F.push({x:A.x,y:U.y}),(D>=135&&D<=180||D>=-180&&D<=-135)&&(F.push({x:B,y:U.y}),F.push({x:B,y:A.y})),F.push(A)):F.push({x:A.x,y:U.y})),A.x>U.x-10&&A.x<=U.x&&(Math.abs(A.y-U.y)>5?(F.push({x:U.x-10,y:U.y}),F.push({x:U.x-10,y:A.y})):F.push({x:U.x-10,y:U.y})),A.x>U.x&&(F.push({x:U.x-20,y:U.y}),(A.y<=L.y-20||A.y>=L.y+L.h+20)&&F.push({x:U.x-20,y:A.y}),A.y>L.y-20&&A.y<=L.y+L.h/2&&(F.push({x:U.x-20,y:L.y-20}),F.push({x:A.x,y:L.y-20})),A.y>L.y+L.h/2&&A.y<L.y+L.h+20&&(F.push({x:U.x-20,y:L.y+L.h+20}),F.push({x:A.x,y:L.y+L.h+20})),F.push(A));break;default:F.push(A);break}return F}function w(N,L,U,A){const D=[L],B=(L.x+A.x)/2,j=(L.y+A.y)/2;switch(N+"&"+U){case"top&top":D.push({x:L.x,y:j}),D.push({x:A.x,y:j});break;case"top&right":D.push({x:L.x,y:A.y});break;case"top&bottom":D.push({x:L.x,y:j}),D.push({x:A.x,y:j});break;case"top&left":D.push({x:L.x,y:A.y});break;case"right&top":D.push({x:A.x,y:L.y});break;case"right&right":D.push({x:B,y:L.y}),D.push({x:B,y:A.y});break;case"right&bottom":D.push({x:A.x,y:L.y});break;case"right&left":D.push({x:B,y:L.y}),D.push({x:B,y:A.y});break;case"bottom&top":D.push({x:L.x,y:j}),D.push({x:A.x,y:j});break;case"bottom&right":D.push({x:L.x,y:A.y});break;case"bottom&bottom":D.push({x:L.x,y:j}),D.push({x:A.x,y:j});break;case"bottom&left":D.push({x:L.x,y:A.y});break;case"left&top":D.push({x:A.x,y:L.y});break;case"left&right":D.push({x:B,y:L.y}),D.push({x:B,y:A.y});break;case"left&bottom":D.push({x:A.x,y:L.y});break;case"left&left":D.push({x:B,y:L.y}),D.push({x:B,y:A.y});break;default:break}return D.push(A),D}function k(N,L,U){const A=g(N,L),D=g(N,U),B=S(N,"top"),j=S(N,"right"),F=S(N,"bottom"),Y=S(N,"left"),X=[A];switch(L+"&"+U){case"top&right":X.push(B),X.push({x:j.x,y:B.y}),X.push(j);break;case"top&bottom":X.push(B),X.push({x:j.x,y:B.y}),X.push({x:j.x,y:F.y}),X.push(F);break;case"top&left":X.push(B),X.push({x:Y.x,y:B.y}),X.push(Y);break;case"right&top":X.push(j),X.push({x:j.x,y:B.y}),X.push(B);break;case"right&bottom":X.push(j),X.push({x:j.x,y:F.y}),X.push(F);break;case"right&left":X.push(j),X.push({x:j.x,y:F.y}),X.push({x:Y.x,y:F.y}),X.push(Y);break;case"bottom&top":X.push(F),X.push({x:j.x,y:F.y}),X.push({x:j.x,y:B.y}),X.push(B);break;case"bottom&right":X.push(F),X.push({x:j.x,y:F.y}),X.push(j);break;case"bottom&left":X.push(F),X.push({x:Y.x,y:F.y}),X.push(Y);break;case"left&top":X.push(Y),X.push({x:Y.x,y:B.y}),X.push(B);break;case"left&right":X.push(Y),X.push({x:Y.x,y:F.y}),X.push({x:j.x,y:F.y}),X.push(j);break;case"left&bottom":X.push(Y),X.push({x:Y.x,y:F.y}),X.push(F);break;default:break}return X.push(D),X}var W=e(27480);function K(N,L,U,A,D,B){if(U)return D?(0,x.RR)(N,L,!0,!1):(0,x.RR)(N,L,B==="end",B==="start");if(A)return[N,L];const j=Math.atan2(N.y-L.y,L.x-N.x)*(180/Math.PI),F=[];return F.push(N),(j>-45&&j<=45||j>135&&j<=180||j>-180&&j<=-135)&&(F.push({x:(N.x+L.x)/2,y:N.y}),F.push({x:(N.x+L.x)/2,y:L.y})),(j>45&&j<=135||j>-135&&j<=-45)&&(F.push({x:N.x,y:(N.y+L.y)/2}),F.push({x:L.x,y:(N.y+L.y)/2})),F.push(L),F}function G(N,L,U,A,D,B,j,F){return D?j?(0,x.RR)(N,L,!0,!1):(0,x.RR)(N,L,!0,F!=="end"):B?[N,L]:W.rw.contains(A,L)?t(U,N,L):v(U,A,N,L)}function $(N,L,U,A,D,B,j,F){return D?j?(0,x.RR)(N,L,!0,!0):(0,x.RR)(N,L,F!=="start",!0):B?[N,L]:G(L,N,U,A,!1,!1,!1,F).reverse()}function P(N,L,U,A,D,B,j,F,Y){if(F||Y)return[N,L];if(j)return k(D,U,A);if(W.rw.contains(D,L))return w(U,N,A,L);if(W.rw.contains(B,N))return w(A,L,U,N).reverse();const Z=""+U+A;return M[Z]?M[Z](D,N,B,L):[N,L]}function E(N){return(0,x.ZT)(N)}function H(N,L,U,A,D,B,j,F,Y,X,z,Z,J,te){if(J&&te)return P(A,F,L,B,U,j,N===D,Y,X);if(J&&!te)return G(A,F,L,U,Y,X,z,Z);if(!J&&te)return $(A,F,B,j,Y,X,z,Z);if(!te&&!te)return K(A,F,Y,X,z,Z)}function O(N,L,U,A){const D=[],B=N;D.push(B);const j=Math.atan2(U.y-A.y,A.x-U.x)*(180/Math.PI),Y=(0,x.b4)(j)==="horizontal"?"vertical":"horizontal",X=L;return Y==="horizontal"?(X.x=L.x,X.y=B.y):(X.y=L.y,X.x=B.x),D.push(X),D}function V(N,L,U,A){const D=[],B=N;D.push(B);const j=Math.atan2(L.y-U.y,U.x-L.x)*(180/Math.PI),Y=(0,x.b4)(j)==="horizontal"?"vertical":"horizontal",X=A;return Y==="horizontal"?(X.x=A.x,X.y=B.y):(X.y=A.y,X.x=B.x),D.push(X),D.reverse()}function Q(N,L,U,A,D,B){const j=[],F=JSON.parse(JSON.stringify(N)),Y=F.length;for(let Z=0;Z<Y-1;Z+=1){const J=F[Z],te=F[Z+1],ge=Math.atan2(J.y-te.y,te.x-J.x)*(180/Math.PI);j.push({from:J,to:te,fromIndex:Z,toIndex:Z+1,direction:(0,x.b4)(ge)})}const X=Math.round(L.x),z=Math.round(L.y);return j.forEach((Z,J)=>{if(Z.fromIndex===U&&Z.toIndex===A){const te=Z;let ge=null,pe=null;if(J-2>=0&&(ge=j[J-2]),J+2<=j.length-1&&(pe=j[J+2]),ge&&pe){if(D==="vertical")if(ge.to.y===pe.to.y)Math.abs(L.y-ge.to.y)<=B?(te.from.y=ge.to.y,te.to.y=ge.to.y):(te.from.y=z,te.to.y=z);else{const Ce=Math.abs(ge.to.y-L.y),me=Math.abs(pe.to.y-L.y);Ce<=me?Math.abs(L.y-ge.to.y)<=B?(te.from.y=ge.to.y,te.to.y=ge.to.y):(te.from.y=z,te.to.y=z):Math.abs(L.y-pe.to.y)<=B?(te.from.y=pe.to.y,te.to.y=pe.to.y):(te.from.y=z,te.to.y=z)}if(D==="horizontal")if(ge.to.x===pe.to.x)Math.abs(L.x-ge.to.x)<=B?(te.from.x=ge.to.x,te.to.x=ge.to.x):(te.from.x=X,te.to.x=X);else{const Ce=Math.abs(ge.to.x-L.x),me=Math.abs(pe.to.x-L.x);Ce<=me?Math.abs(L.x-ge.to.x)<=B?(te.from.x=ge.to.x,te.to.x=ge.to.x):(te.from.x=X,te.to.x=X):Math.abs(L.x-pe.to.x)<=B?(te.from.x=pe.to.x,te.to.x=pe.to.x):(te.from.x=X,te.to.x=X)}}ge&&!pe&&(D==="vertical"&&(Math.abs(L.y-ge.to.y)<=B?(te.from.y=ge.to.y,te.to.y=ge.to.y):(te.from.y=z,te.to.y=z)),D==="horizontal"&&(Math.abs(L.x-ge.to.x)<=B?(te.from.x=ge.to.x,te.to.x=ge.to.x):(te.from.x=X,te.to.x=X))),!ge&&pe&&(D==="vertical"&&(Math.abs(L.y-pe.to.y)<=B?(te.from.y=pe.to.y,te.to.y=pe.to.y):(te.from.y=z,te.to.y=z)),D==="horizontal"&&(Math.abs(L.x-pe.to.x)<=B?(te.from.x=pe.to.x,te.to.x=pe.to.x):(te.from.x=X,te.to.x=X))),!ge&&!pe&&(D==="vertical"&&(te.from.y=z,te.to.y=z),D==="horizontal"&&(te.from.x=X,te.to.x=X))}}),[j[0].from].concat(j.map(Z=>Z.to))}},8293:(He,ee,e)=>{"use strict";e.d(ee,{C1:()=>b,IP:()=>M,Ly:()=>_,Ow:()=>g});var n=e(70768),r=e(9233),c=e(29158),o=e(41011),I=e(26812),u=e(5664),d=e(74222),C=e(73658),h=e(83744),i=e(37860),f=e(75006),p=e(92598),s=e(72214);const l=()=>{const v=(0,r.v)((0,c.Id)(),(0,o.aF)({})),w=(0,I.uq)(v),k=(0,u.jb)(w);return v.applyDiff(k),w},_=(v,w)=>{const k=l(),W=k.loadSubtreeTL(v,d.$k,0,0),K=k.getHotKeyListAABB(W),G=K[2]-K[0],$=K[3]-K[1],P=k.getHotItem(W[0]);switch(P.hotAttr.type){case"wSticky":{const Q=(0,C.Be)(w)+1;k.updateHotAttrMerge(W[0],{order:Q});break}case"wTear":{const Q=(0,C.Be)(w)+1;k.updateHotAttrMerge(W[0],{order:Q});break}}(0,h.xB)(P.hotAttr.type,W[0],k);const E=new f.A(k,W[0],f.A.MODE.snapshot),H={sdkStore:E},O=E.getRootSnapshot();return O.hotAttr.type==="wTear"&&(O.hotAttr.tearMode=!0),{widgetWrapper:(0,s.jsx)(p.o,{mode:"snapshot",hotItem:O,treeData:H}),puppetWidth:G,puppetHeight:$,widgetTreeStore:E,hotItem:O}},b=(v,w)=>{const{widgetWrapper:k,puppetWidth:W,puppetHeight:K,widgetTreeStore:G,hotItem:$}=_(v,w),P=document.createElement("div");P.id="create-click-widget-puppet",P.style.position="absolute",P.style.display="none",P.style.zIndex="11",P.style.width=W+"px",P.style.height=K+"px",P.style.transformOrigin="top left",P.style.transition="all 0.2s ease-in-out;",P.style.transform="translateZ(0)",P.style.willChange="transform",P.style.pointerEvents="none";const E=(0,n.createRoot)(P);return E.render(k),document.body.appendChild(P),{getWidgetInsertablePuppet:()=>P,moveAndScaleWidgetInsertablePuppet:H=>{let{top:O,left:V,scale:Q}=H;const N=W*Q/100,L=K*Q/100;P.style.display="block",P.style.top=O+"px",P.style.left=V+"px",P.style.width=N+"px",P.style.height=L+"px",P.style.transform="scale("+Q/100+")"},updateWidgetInsertablePuppetRenderProps:H=>{Object.assign($.hotAttr,H),E.render(k)},destroyWidgetInsertablePuppet:()=>{G.destory(),E==null||E.unmount(),P==null||P.remove()}}},a=(v,w)=>{if(!v||!w)return[];w.sort((k,W)=>{var K,G;return(((K=KNOWN_ORDER_MKTS_MAP[v])==null?void 0:K[k.cid])||1e4)-(((G=KNOWN_ORDER_MKTS_MAP[v])==null?void 0:G[W.cid])||1e4)})},M=v=>{if(!v)return[];const w=(0,i.HI)();Object.entries(v).forEach(k=>{let[W,K]=k;K.sort((G,$)=>{var P,E;return(((P=w[W])==null?void 0:P[G.name])||1e4)-(((E=w[W])==null?void 0:E[$.name])||1e4)})},{})},x=(v,w,k)=>{var W;const G=(W=getSceTagAndPlableToInsertWidgetMap()[v])==null?void 0:W[w];return G?k.filter($=>Object.keys(G).includes($.split("/")[0])).sort(($,P)=>G[$.split("/")[0]]-G[P.split("/")[0]]):[]},g=v=>Object.values(i.c3).includes(v)?v===i.c3.Customize?i.c3.Common:v===i.c3.DS_Customize?i.c3.DS_Screen:v===i.c3.HMI_Customize?i.c3.HMI_IndusHmi:v===i.c3.CAR_Car?i.c3.HMI_Car:[i.c3.MP_ECommerce,i.c3.MP_Poster].includes(v)?i.c3.MP_App:v:i.c3.Common,S=(v,w)=>v.length===0?[]:v.map(k=>(w.get(k.mtCid)||[]).find(G=>G.key===k.key)||k),t=(v,w)=>arrDedup(v,"clabel").map(k=>{const W=S(arrDedup(k.list,"key"),w);return{...k,list:W}})},8452:(He,ee,e)=>{"use strict";e.d(ee,{dZ:()=>c,z9:()=>I});var n=e(81717),r=e(5209),c=function(C){return C[C.Toolbar=1]="Toolbar",C[C.ShortCut=2]="ShortCut",C[C.TransformDoubleClick=3]="TransformDoubleClick",C[C.TransformSettingPanel=4]="TransformSettingPanel",C}(c||{});const o={[c.Toolbar]:"\u9876\u90E8\u680F\u5355\u51FB",[c.ShortCut]:"\u5FEB\u6377\u952E",[c.TransformDoubleClick]:"\u7EC4\u4EF6\u8F6C\u6362-\u53CC\u51FB\u8DEF\u5F84",[c.TransformSettingPanel]:"\u7EC4\u4EF6\u8F6C\u6362-\u53F3\u4FA7\u9762\u677F\u6309\u94AE"};var I=function(C){return C[C.Enter=1]="Enter",C[C.Esc=2]="Esc",C[C.ClickBlank=3]="ClickBlank",C[C.Exit=4]="Exit",C[C.Other=5]="Other",C}(I||{});const u={[I.Enter]:"Enter",[I.Esc]:"Esc",[I.ClickBlank]:"\u70B9\u51FB\u7A7A\u767D",[I.Exit]:"\u70B9\u51FB\u5B8C\u6210\u7F16\u8F91",[I.Other]:"\u5176\u4ED6"},d=(C,h,i)=>{saTrack("add_vector_V8",{source:o[C],vector_type:h?"\u95ED\u5408":"\u975E\u95ED\u5408",vector_finish:u[i]}),TrackTool.editProjectNew("\u65B0\u5EFA\u77E2\u91CF")}},8614:(He,ee,e)=>{"use strict";e.d(ee,{$Y:()=>S,HL:()=>o,Ip:()=>d,JY:()=>f,Qe:()=>l,R0:()=>b,Rd:()=>r,SP:()=>n,TP:()=>s,V5:()=>i,_h:()=>v,aD:()=>p,ap:()=>_,bC:()=>u,dN:()=>a,eP:()=>t,fn:()=>x,kR:()=>M,nC:()=>g,oo:()=>C,qF:()=>c,rw:()=>I,xg:()=>h});const n=w=>w.lib.isLoadedInitialData,r=w=>w.lib.cacheLocalLibTag,c=w=>w.lib.collapseGroupKeySet,o=w=>w.lib.textStyleTree,I=w=>w.lib.colorStyleTree,u=w=>w.lib.appearStyleTree,d=w=>w.lib.localStyleStore,C=w=>w.lib.addedLibList,h=w=>w.lib.usedLibList,i=w=>w.lib.currentManagePanel,f=w=>w.lib.detailLib,p=w=>w.lib.mubanDetailLib,s=w=>w.lib.teamLibList,l=w=>w.lib.recommendLibList,_=w=>w.lib.isCurrentProjectSclib,b=w=>w.lib.localStyleUpdateDiff,a=w=>w.lib.currentMubanFolderData,M=w=>w.lib.isFetchMubanData,x=w=>w.lib.libMubanTreeMap,g=w=>w.lib.libSdkStoreMap,S=w=>w.lib.isLoadedNeedUpdateLibs,t=w=>w.lib.needUpdateLibs,v=w=>w.lib.collapseMubanFolderKeySet},8926:(He,ee,e)=>{"use strict";e.d(ee,{iJ:()=>ao,ER:()=>qe,sw:()=>On,Gh:()=>Jn,Cj:()=>Qn,fZ:()=>no,Pn:()=>Jt,d0:()=>In,St:()=>yo,i:()=>$n,$t:()=>En,PL:()=>$t,dB:()=>ke});var n=e(18821),r=e.n(n),c=e(63986),o=e.n(c),I=e(41589),u=e.n(I);if(e.j!=477)var d=e(10549);var C=e(9911),h=e(24229),i=e(74222),f=e(29158),p=e(52049),s=e(70248),l=e(21856),_=e(64320),b=e(34121),a=e(9521),M=e(20089),x=e(15186),g=e(64012),S=e(95549),t=e(38502),v=e(72214);class w extends t.PureComponent{render(){const{pointsData:Oe,selectedIndex:De,vx:Be,vy:Qe,showVirtualLine:$e,px:ot,py:mt,showVirtualPoint:ft}=this.props,gt=ft&&ot!==null&&mt!==null;let _t,Yt,Ft;if($e){const Zt=Oe[De[0]];Yt=Be||Zt.x,Ft=Qe||Zt.y,De[0]===Oe.length-1?_t="M"+Zt.x+" "+Zt.y+" C"+Zt.next.x+" "+Zt.next.y+" "+Yt+" "+Ft+" "+Yt+" "+Ft:_t="M "+Yt+" "+Ft+" C"+Yt+" "+Ft+" "+Zt.prev.x+" "+Zt.prev.y+" "+Zt.x+" "+Zt.y}return(0,v.jsxs)(v.Fragment,{children:[$e&&(0,v.jsx)("path",{className:"virtual-line",d:_t}),$e&&(0,v.jsx)("circle",{className:"virtual-point-outside",cx:Yt,cy:Ft,r:4}),gt&&(0,v.jsx)("circle",{className:"virtual-point-online",cx:ot,cy:mt,r:3})]})}}var k=e(93e3);class W extends t.PureComponent{render(){const{pointsData:Oe,selectedIndex:De,selectedAssistIndex:Be,closed:Qe,vx:$e,vy:ot,mapX:mt,mapY:ft,viewport:gt,transform:_t,boundingBoxTransform:Yt}=this.props;let Ft,Zt;if(!Qe&&(De[0]===0||De[0]===Oe.length-1)){const Ot=Oe[De[0]];Ft=$e||Ot.x,Zt=ot||Ot.y}else if(Oe[De[0]]){const Ot=Be?Oe[De[0]][Be]:Oe[De[0]];Ft=Ot==null?void 0:Ot.x,Zt=Ot==null?void 0:Ot.y}const{x:Nt,y:Qt}=k.L.applyInverse(gt,{x:Ft,y:Zt}),vt=Math.round(Nt),yn=Math.round(Qt),rn=[];if(mt.has(vt)){const[Ot,Nn]=mt.get(vt),To=_t.inverted().apply({x:vt,y:Ot}),fo=Yt.apply(To),ro=_t.inverted().apply({x:vt,y:Nn}),Bn=Yt.apply(ro);rn.push("M"+Ft+" "+Bn.y+" L"+Ft+" "+Zt+" L"+Ft+" "+fo.y+" Z")}if(ft.has(yn)){const[Ot,Nn]=ft.get(yn),To=_t.inverted().apply({x:Ot,y:yn}),fo=Yt.apply(To),ro=_t.inverted().apply({x:Nn,y:yn}),Bn=Yt.apply(ro);rn.push("M"+fo.x+" "+Zt+" L"+Ft+" "+Zt+" L"+Bn.x+" "+Zt+" Z")}return rn.map((Ot,Nn)=>(0,v.jsx)("path",{className:"align-line",d:Ot,strokeWidth:1,stroke:"red"},"alignment-"+Nn))}}var K=e(53732),G=e.n(K),$=e(30728);let P=function(ze){return ze.Straight="straight",ze.Mirrored="mirrored",ze.Asymmetric="asymmetric",ze.Disconnected="disconnected",ze}({}),E;(function(ze){const Oe={x:0,y:0,type:P.Disconnected,radius:0,prev:$.Z.zero,next:$.Z.zero};function De($e){return{x:$e,y:0,type:P.Straight,radius:0,prev:$.Z.zero,next:$.Z.zero}}ze.x=De;function Be($e){return{x:0,y:$e,type:P.Straight,radius:0,prev:$.Z.zero,next:$.Z.zero}}ze.y=Be;function Qe($e,ot,mt){return mt===void 0&&(mt=0),{x:$e,y:ot,type:P.Straight,radius:mt,prev:$.Z.zero,next:$.Z.zero}}ze.xyr=Qe})(E||(E={}));let H;(function(ze){function Oe(Be){if(Be.points.length>1){if(Be.points.every(Qe=>Qe.type===P.Straight&&Math.abs(Qe.y)<1e-10))return"h";if(Be.points.every(Qe=>Qe.type===P.Straight&&Math.abs(Qe.x)<1e-10))return"v"}return null}ze.isLine=Oe;function De(Be,Qe,$e){$e===void 0&&($e=$.Z.zero);const{x:ot,y:mt}=Qe;return{points:Be.points.map(gt=>({type:gt.type,x:gt.x*ot+$e.x,y:gt.y*mt+$e.y,next:{x:gt.next.x*ot,y:gt.next.y*mt},prev:{x:gt.prev.x*ot,y:gt.prev.y*mt},radius:gt.radius})),closed:Be.closed}}ze.scale=De})(H||(H={}));class O extends t.PureComponent{render(){const{hoverIndex:Oe,pointsData:De,showVirtualPoint:Be,closed:Qe}=this.props,$e=De.map((ot,mt)=>{const ft=De[mt+1]||De[0],{x:gt,y:_t,next:Yt}=ot,{x:Ft,y:Zt,prev:Nt}=ft,Qt=mt+1===De.length?0:mt+1;return ot.type!==P.Straight&&De[Qt].type===P.Straight?"M"+gt+" "+_t+" Q"+Yt.x+" "+Yt.y+" "+Ft+" "+Zt:ot.type===P.Straight&&De[Qt].type!==P.Straight?"M"+gt+" "+_t+" Q"+Nt.x+" "+Nt.y+" "+Ft+" "+Zt:"M"+gt+" "+_t+" C"+Yt.x+" "+Yt.y+" "+Nt.x+" "+Nt.y+" "+Ft+" "+Zt});return Qe||$e.pop(),(0,v.jsx)(v.Fragment,{children:$e.map((ot,mt)=>{const ft=Oe===mt&&Be;return(0,v.jsx)("path",{className:G()("vector-line",{"is-hover-line":ft}),d:ot},mt)})})}}var V=e(69248),Q=e.n(V);const N=(ze,Oe)=>{const De=Oe.findIndex(Be=>Be===ze);De!==-1?Oe.splice(De,1):Oe.push(ze)},L=(ze,Oe,De)=>{const Be=[ze,...Oe].sort((ot,mt)=>ot-mt),Qe=Be.indexOf(ze);let $e;if(Qe===0)Be[1]-ze<=De&&($e=Be[1]);else if(Qe===Be.length-1)ze-Be[Be.length-2]<=De&&($e=Be[Be.length-2]);else{const ot=Be[Qe-1],mt=Be[Qe+1];ze-ot<=De?mt-ze<=De?$e=ze-ot>mt-ze?mt:ot:$e=ot:mt-ze<=De&&($e=mt)}return $e},U=(ze,Oe)=>ze.map(Be=>{const{x:Qe,y:$e,next:ot,prev:mt}=Be,{x:ft,y:gt}=Oe.apply({x:Qe,y:$e}),{x:_t,y:Yt}=Oe.apply({x:Qe+ot.x,y:$e+ot.y}),{x:Ft,y:Zt}=Oe.apply({x:Qe+mt.x,y:$e+mt.y});return{...Be,x:ft,y:gt,next:{x:_t,y:Yt},prev:{x:Ft,y:Zt}}}),A=(ze,Oe,De)=>{const{x:Be,y:Qe}=ze,{x:$e,y:ot}=Oe,mt="M"+$e+" "+ot+" l"+De+" "+De+" l"+De+" "+-De+" l"+-De+" "+-De+" l"+-De+" "+De+" Z",gt="rotate("+Math.atan2(Qe-ot,Be-$e)*180/Math.PI+" "+$e+" "+ot+")";return{path:mt,rotate:gt}},D={prev:{x:-12,y:0},next:{x:12,y:0}},B=(ze,Oe)=>{if(ze.length<3)return D;const De=ze[Oe],Be=Oe===0?ze[ze.length-1]:ze[Oe-1],Qe=Oe===ze.length-1?ze[0]:ze[Oe+1];if(typeof Qe.y!="number"||typeof Be.y!="number")return D;const $e=Math.pow((Qe.y-Be.y)**2+(Qe.x-Be.x)**2,.5),ot=Math.pow((Qe.y-De.y)**2+(Qe.x-De.x)**2,.5),mt=Math.pow((De.y-Be.y)**2+(De.x-Be.x)**2,.5),ft=$e*(ot/(ot+mt)),gt=(Qe.x-Be.x)/$e,_t=(Qe.y-Be.y)/$e,Yt=gt*(ft/2),Ft=_t*(ft/2);return{prev:{x:-Yt,y:-Ft},next:{x:Yt,y:Ft}}},j=(ze,Oe)=>{let De;if(ze.x===0&&ze.y===0&&Oe.x===0&&Oe.y===0)De=P.Straight;else if(ze.x===-Oe.x&&ze.y===-Oe.y)De=P.Mirrored;else{const Be=Math.atan2(ze.y,ze.x),Qe=Math.pow(Oe.y**2+Oe.x**2,.5);Oe.x===-Math.cos(Be)*Qe&&Oe.y===-Math.sin(Be)*Qe?De=P.Asymmetric:De=P.Disconnected}return De},F=(ze,Oe,De)=>{let{x:Be,y:Qe}=De;switch(ze.type){case P.Mirrored:return Oe==="prev"?{...ze,prev:{x:Be,y:Qe},next:{x:-Be,y:-Qe}}:{...ze,prev:{x:-Be,y:-Qe},next:{x:Be,y:Qe}};case P.Asymmetric:{const $e=Math.atan2(Qe,Be);if(Oe==="prev"){const ot=Math.pow(ze.next.y**2+ze.next.x**2,.5);return{...ze,prev:{x:Be,y:Qe},next:{x:-Math.cos($e)*ot,y:-Math.sin($e)*ot}}}else{const ot=Math.pow(ze.prev.y**2+ze.prev.x**2,.5);return{...ze,prev:{x:-Math.cos($e)*ot,y:-Math.sin($e)*ot},next:{x:Be,y:Qe}}}}case P.Disconnected:return{...ze,[Oe]:{x:Be,y:Qe}}}},Y=(ze,Oe,De,Be,Qe)=>{let{x:$e,y:ot}=Oe,{x:mt,y:ft}=De,{x:gt,y:_t}=Be,{x:Yt,y:Ft}=Qe;const Zt=$e*(1-ze)*(1-ze)*(1-ze)+3*mt*ze*(1-ze)*(1-ze)+3*gt*ze*ze*(1-ze)+Yt*ze*ze*ze,Nt=ot*(1-ze)*(1-ze)*(1-ze)+3*ft*ze*(1-ze)*(1-ze)+3*_t*ze*ze*(1-ze)+Ft*ze*ze*ze;return{x:Zt,y:Nt}},X=(ze,Oe)=>{let De;return ze.type!==P.Straight&&Oe.type===P.Straight?De=new(Q())(Oe.x,Oe.y,ze.prev.x,ze.prev.y,ze.x,ze.y):ze.type===P.Straight&&Oe.type!==P.Straight?De=new(Q())(Oe.x,Oe.y,Oe.next.x,Oe.next.y,ze.x,ze.y):De=new(Q())(Oe.x,Oe.y,Oe.next.x,Oe.next.y,ze.prev.x,ze.prev.y,ze.x,ze.y),De},z=(ze,Oe,De)=>{let $e=!1;const ot={index:-1,splitPoint:null},{x:mt,y:ft}=ze,gt=(Ft,Zt,Nt,Qt,vt,yn,rn,Ot)=>{if(Qt-Zt===0&&vt>Math.min(Ft,Nt)&&vt<Math.max(Ft,Nt)&&_t(Qt,Ot),Nt-Ft===0&&yn>Math.min(Zt,Qt)&&yn<Math.max(Zt,Qt)&&Yt(Nt,Ot),yn>Math.min(Zt,Qt)&&yn<Math.max(Zt,Qt)){const Nn=(Qt-Zt)/(Nt-Ft);if(Nn<=1&&Nn>=-1){const To=Qt+(vt-Nt)*(Zt-Qt)/(Ft-Nt);_t(To,Ot)}else{const To=Nt+(yn-Qt)*(Ft-Nt)/(Zt-Qt);Yt(To,Ot)}}},_t=(Ft,Zt)=>{Ft>=ft-8&&Ft<=ft+8&&($e=!0,ot.index=Zt,ot.splitPoint={x:mt,y:Ft,type:P.Straight,e1:{x:mt,y:Ft},e2:{x:mt,y:Ft}})},Yt=(Ft,Zt)=>{Ft>=mt-8&&Ft<=mt+8&&($e=!0,ot.index=Zt,ot.splitPoint={x:Ft,y:ft,type:P.Straight,e1:{x:Ft,y:ft},e2:{x:Ft,y:ft}})};for(let Ft=0;Ft<Oe.length;Ft++){if(!De&&Ft===0)continue;const Zt=Oe[Ft],Nt=Ft===0?Oe[Oe.length-1]:Oe[Ft-1],Qt=Zt.x,vt=Zt.y,yn=Nt.x,rn=Nt.y;if(Qt-12<=mt&&mt<=Qt+12&&vt-12<=ft&&ft<=vt+12||yn-12<=mt&&mt<=yn+12&&rn-12<=ft&&ft<=rn+12)$e=!1;else if(Zt.type===P.Straight&&Nt.type===P.Straight)gt(yn,rn,Qt,vt,mt,ft,8,Ft);else{const Ot=X(Zt,Nt);if(Ot!==null){let Nn=[],To,fo;Nn=Ot.getUtils().roots(Ot.points.map(Ao=>({x:Ao.y,y:Ao.y-ft})));let ro=Nn[0],Bn=Ot.get(ro);if(Bn.x>=mt-8&&Bn.x<=mt+8){const{left:Ao,right:go}=Ot.split(ro),[,Jo,$o]=Ao.points,[,po,us]=go.points,hs={x:$o.x-Bn.x,y:$o.y-Bn.y},pt={x:po.x-Bn.x,y:po.y-Bn.y},Ht=j(hs,pt);To={x:Bn.x,y:Bn.y,e1:$o,e2:po,type:Ht,prevPointNextAssist:us,nextPointPrevAssist:Jo}}if(Nn=Ot.getUtils().roots(Ot.points.map(Ao=>({x:Ao.x,y:Ao.x-mt}))),ro=Nn[0],Bn=Ot.get(ro),Bn.y>=ft-8&&Bn.y<=ft+8){const{left:Ao,right:go}=Ot.split(ro),[,Jo,$o]=Ao.points,[,po,us]=go.points,hs={x:$o.x-Bn.x,y:$o.y-Bn.y},pt={x:po.x-Bn.x,y:po.y-Bn.y},Ht=j(hs,pt);fo={x:Bn.x,y:Bn.y,e1:$o,e2:po,type:Ht,prevPointNextAssist:us,nextPointPrevAssist:Jo}}To&&fo?($e=!0,ot.index=Ft,Z(To.x,To.y,mt,ft)<Z(fo.x,fo.y,mt,ft)?ot.splitPoint=To:ot.splitPoint=fo):To?($e=!0,ot.index=Ft,ot.splitPoint=To):fo&&($e=!0,ot.index=Ft,ot.splitPoint=fo)}}}return $e?ot:null},Z=(ze,Oe,De,Be)=>((ze-De)**2+(Oe-Be)**2)**.5,J=(ze,Oe,De)=>{let{x:Be,y:Qe}=De;const $e=X(Oe,ze),ot=$e.points[0],mt=$e.points[$e.order],ft=ge(ot,{x:Be,y:Qe},mt),gt=new(Q())(ft.S,ft.C1,ft.C2,ft.E),[,_t,Yt]=gt.points;return{next:_t,prev:Yt}},te=function(ze,Oe,De,Be,Qe,$e){ze===void 0&&(ze=2),Qe===void 0&&(Qe=.5);const ot=$e.projectionratio(Qe,ze),mt=1-ot,ft={x:ot*Oe.x+mt*Be.x,y:ot*Oe.y+mt*Be.y},gt=$e.abcratio(Qe,ze);return{A:{x:De.x+(De.x-ft.x)/gt,y:De.y+(De.y-ft.y)/gt},B:De,C:ft,S:Oe,E:Be}},ge=(ze,Oe,De)=>{const Be=Q().getUtils(),Qe=Be.getccenter(ze,Oe,De),$e=Z(ze.x,ze.y,Oe.x,Oe.y),ot=Z(De.x,De.y,Oe.x,Oe.y),mt=$e/($e+ot),{A:ft,B:gt,C:_t,S:Yt,E:Ft}=te(3,ze,Oe,De,mt,Be),Zt=(Math.atan2(Ft.y-Yt.y,Ft.x-Yt.x)-Math.atan2(gt.y-Yt.y,gt.x-Yt.x)+Math.PI*2)%(Math.PI*2),Nt=(Zt<0||Zt>Math.PI?-1:1)*Z(Yt.x,Yt.y,Ft.x,Ft.y)/3,Qt=mt*Nt,vt=(1-mt)*Nt,yn=[{x:gt.x-10*(gt.y-Qe.y),y:gt.y+10*(gt.x-Qe.x)},{x:gt.x+10*(gt.y-Qe.y),y:gt.y-10*(gt.x-Qe.x)}],rn=Z(yn[0].x,yn[0].y,yn[1].x,yn[1].y),Ot=(yn[1].x-yn[0].x)/rn,Nn=(yn[1].y-yn[0].y)/rn,To={x:gt.x+Qt*Ot,y:gt.y+Qt*Nn},fo={x:gt.x-vt*Ot,y:gt.y-vt*Nn},{C1:ro,C2:Bn}=pe(Yt,ft,Ft,To,fo,mt);return{S:Yt,E:Ft,C1:ro,C2:Bn}},pe=(ze,Oe,De,Be,Qe,$e)=>{const ot={x:Oe.x-(Oe.x-Be.x)/(1-$e),y:Oe.y-(Oe.y-Be.y)/(1-$e)},mt={x:Oe.x-(Oe.x-Qe.x)/$e,y:Oe.y-(Oe.y-Qe.y)/$e},ft={x:ze.x+(ot.x-ze.x)/$e,y:ze.y+(ot.y-ze.y)/$e},gt={x:De.x+(mt.x-De.x)/(1-$e),y:De.y+(mt.y-De.y)/(1-$e)};return{C1:ft,C2:gt}};class Ce extends t.PureComponent{render(){const{pointsData:Oe,isHoverPointIndex:De="no no",selectedIndexList:Be,selectedAssistIndex:Qe,onPointDoubleClick:$e,onPointMouseEnter:ot,onPointMouseDown:mt,onMouseLeave:ft,onAssistMouseEnter:gt,onAssistMouseDown:_t}=this.props,Yt=[],Ft=[];Oe.forEach((Nt,Qt)=>{Be.includes(Qt)||(Nt.type===P.Straight&&Yt.push(Qt),Nt.type!==P.Straight&&Ft.push(Qt))});const Zt=Yt.concat(Ft).concat(Be);return(0,v.jsx)(v.Fragment,{children:Zt.map(Nt=>{const Qt=Oe[Nt];if(!Qt)return null;const{x:vt,y:yn,next:rn,prev:Ot,type:Nn}=Qt,To=Be.includes(Nt),fo=(To||Be.includes(Nt-1))&&Nn!==P.Straight,ro=(To||Be.includes(Nt+1))&&Nn!==P.Straight,Bn=To&&Qe===void 0,Ao=+De===Nt,[go,Jo]=De.split(" "),$o=go==="prev"&&+Jo===Nt,po=go==="next"&&+Jo===Nt,us=To&&Qe==="prev",hs=To&&Qe==="next",pt="M"+vt+" "+yn+" L"+Ot.x+" "+Ot.y+" Z",Ht="M"+vt+" "+yn+" L"+rn.x+" "+rn.y+" Z",{path:nn,rotate:en}=A(Qt,rn,3),{path:Un,rotate:Kn}=A(Qt,Ot,3);return(0,v.jsxs)(t.Fragment,{children:[fo&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("path",{className:G()("assist-line",{"is-assist-line-selected":us||$o}),d:pt}),(0,v.jsx)("path",{className:G()("assist-point",{"is-assist-point-selected":us},{"is-assist-point-hover":$o}),d:Un,transform:Kn}),(0,v.jsx)("circle",{className:"assist-point-hotzone",cx:Ot.x,cy:Ot.y,r:6,"data-number":"prev "+Nt,onMouseEnter:gt,onMouseDown:Vn=>_t(Vn,Nt,"prev"),onMouseLeave:ft})]}),ro&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("path",{className:G()("assist-line",{"is-assist-line-selected":hs||po}),d:Ht}),(0,v.jsx)("path",{className:G()("assist-point",{"is-assist-point-selected":hs},{"is-assist-point-hover":po}),d:nn,transform:en}),(0,v.jsx)("circle",{className:"assist-point-hotzone",cx:rn.x,cy:rn.y,r:8,"data-number":"next "+Nt,onMouseEnter:gt,onMouseDown:Vn=>_t(Vn,Nt,"next"),onMouseLeave:ft})]}),(0,v.jsx)("circle",{className:G()("vector-point",{"is-selected":Bn},{"is-hover":Ao}),cx:vt,cy:yn,r:Bn?5:4}),(0,v.jsx)("circle",{className:"vector-point-hotzone",cx:vt,cy:yn,r:8,"data-number":Nt,onDoubleClick:$e,onMouseEnter:Vn=>ot(Nt,Vn),onMouseLeave:()=>ft(Nt),onMouseDown:Vn=>mt(Vn,Nt)})]},Nt)})})}}class me extends t.PureComponent{render(){const{adjacentPoints:Oe}=this.props;return(0,v.jsx)(v.Fragment,{children:Oe.map((De,Be)=>{const{x:Qe,y:$e,next:ot,prev:mt,type:ft}=De;if(ft===P.Straight)return null;const gt="M"+Qe+" "+$e+" L"+mt.x+" "+mt.y+" Z",_t="M"+Qe+" "+$e+" L"+ot.x+" "+ot.y+" Z",{path:Yt,rotate:Ft}=A(De,ot,3),{path:Zt,rotate:Nt}=A(De,mt,3);return(0,v.jsxs)(t.Fragment,{children:[(0,v.jsx)("path",{className:"assist-line",d:gt}),(0,v.jsx)("path",{className:"assist-point",d:Zt,transform:Nt}),(0,v.jsx)("path",{className:"assist-line",d:_t}),(0,v.jsx)("path",{className:"assist-point",d:Yt,transform:Ft}),(0,v.jsx)("circle",{className:"vector-point",cx:Qe,cy:$e,r:4})]},Be+"-"+Qe+"-"+$e)})})}}var be=e(12583),ie=e(27480),oe=e(67787),he=e(69594);const ce=oe.Ay.div.withConfig({displayName:"styles__StyledVector",componentId:"sc-1yq71tr-0"})(["position:absolute;width:100%;height:100%;overflow:hidden;&.init-cursor{cursor:",";}&.add-cursor{cursor:",";}&.line-cursor{cursor:",";}&.move-cursor{cursor:",";}&.hover-cursor{cursor:",";}&.trans-cursor{cursor:",";}&.hover-assist-cursor{cursor:",";}&.move-assist-cursor{cursor:",";}&.hover-assist-asymmetric-cursor{cursor:",";}&.move-assist-asymmetric-cursor{cursor:",";}&.drag-cursor{cursor:",";}.vector-container{position:absolute;top:0;left:0;width:100%;height:100%;}.vector-line,.virtual-line{stroke:#b3b3b3;fill:none;stroke-width:1px;}.assist-line{stroke:#b3b3b3;fill:none;stroke-width:1px;}.is-hover-line{stroke:#298df8;}.virtual-point-outside{stroke:#298df8;fill:#fff;stroke-width:1px;}.vector-point{stroke:#298df8;fill:#fff;stroke-width:1px;&.is-hover{fill:#90c6ff;}&.is-selected{stroke:#fff;fill:#298df8;}}.assist-point{stroke:#298df8;fill:#fff;stroke-width:1px;&.is-assist-point-hover{fill:#90c6ff;}&.is-assist-point-selected{fill:#298df8;}}.is-assist-line-selected{stroke:#298df8;}.virtual-point-online{fill:#298df8;}.virtual-line,.virtual-point-online,.virtual-point-outside{stroke-width:1px;opacity:0.85;}.assist-point-hotzone,.vector-point-hotzone{fill:transparent;}"],he.M.vectorCreate,he.M.vectorAdd,he.M.vectorConnect,he.M.vectorAssistPointMove,he.M.vectorEdgeDrag,he.M.vectorAnchorPointSwitch,he.M.default,he.M.vectorAssistPointMove,he.M.vectorAssistPointAsymmetricHover,he.M.vectorAssistPointAsymmetricMove,he.M.vectorEdgeDrag),re="Vector";class fe extends t.PureComponent{constructor(){var Oe;super(...arguments),Oe=this,(0,S.A)(this,"isCreatBezierCurve",!1),(0,S.A)(this,"isDragging",!1),(0,S.A)(this,"state",{vx:null,vy:null,px:null,py:null,splitPoint:null,cursorStyle:"",isOutside:!1,isDragLineByCmd:!1,showVirtualPoint:!1,adjacentPoints:[],hoverIndex:void 0,hoverPoint:void 0,boundingBoxTransform:this.props.boundingBoxTransform,isHoverPointIndex:void 0}),(0,S.A)(this,"createSvgRef",De=>this.$svgRef=De),(0,S.A)(this,"checkIsContains",De=>{const{isOutside:Be}=this.state,Qe=this.$svgRef.contains(De.target);return!Be&&Qe}),(0,S.A)(this,"onSaveVector",function(De,Be){Be===void 0&&(Be=!1);const $e={vector:{...Oe.props.widget.vector,points:[...De]}};Oe.props.widget.type!==re&&($e.type=re),Oe.props.onChangeProps($e,Be)}),(0,S.A)(this,"onSaveSelectedIndex",function(De,Be){Be===void 0&&(Be=void 0),Oe.props.onChangeState(De,Be)}),(0,S.A)(this,"setCursor",function(De,Be){Be===void 0&&(Be=De),Oe.state.cursorStyle!==Be&&Oe.setState({cursorStyle:De})}),(0,S.A)(this,"setAssistPointCursor",function(De,Be){Be===void 0&&(Be="move"),De.metaKey||De.ctrlKey?Oe.setCursor(Be+"-assist-asymmetric-cursor"):Oe.setCursor(Be+"-assist-cursor")}),(0,S.A)(this,"changePointPosition",(De,Be)=>{if(De.button===1)return;De.stopPropagation(),this.setCursor("move-cursor");const{vectorEditor:{selectedIndex:Qe},widget:{vector:$e,worldBoundingBox:{transform:ot}},handleAdsorption:mt,handleCombineMarkChange:ft,handleCombineChange:gt}=this.props,{points:_t,closed:Yt}=$e,{showVirtualPoint:Ft}=this.state;if(ft&&ft("vector-editor-drag-point"),(Be===0||Be===_t.length-1)&&this.setState({vx:De.offsetX,vy:De.offsetY}),De.shiftKey){N(Be,Qe),this.onSaveSelectedIndex(Qe);return}if(Qe.length<2&&Qe[0]!==Be&&this.onSaveSelectedIndex([Be]),!Yt&&(Be===0||Be===_t.length-1)&&Qe[0]+Be===_t.length-1&&_t.length>1&&!Ft){const Ot={...$e,closed:!0};this.props.onChangeProps({vector:Ot})}const Zt=[..._t];let Nt=!1;const Qt=Qe.length===1?[Be]:Qe;let vt=0;const yn=Ot=>{if(vt<5)return vt++;if(this.isDragging=!0,this.checkIsContains(Ot)){Nt=!0,this.setCursor("move-cursor");const To=mt($.Z.xy(Ot.offsetX,Ot.offsetY),ot),{x:fo,y:ro}=$.Z.subtract(To,_t[Be]);Qt.forEach(Bn=>{const{x:Ao,y:go}=_t[Bn];Zt[Bn]={...Zt[Bn],x:Ao+fo,y:go+ro}}),this.onSaveVector(Zt,!0)}},rn=()=>{const{isOutside:Ot}=this.state;this.isDragging=!1,this.setCursor(""),!Ot&&Nt&&this.onSaveVector(Zt,!1),!Ot&&!Nt&&this.onSaveSelectedIndex([Be]),document.removeEventListener("mousemove",yn),document.removeEventListener("mouseup",rn),gt&&gt("vector-editor-drag-point")};document.addEventListener("mousemove",yn),document.addEventListener("mouseup",rn)}),(0,S.A)(this,"changeAssistPointPosition",(De,Be,Qe)=>{if(De.button===1)return;De.stopPropagation();const{widget:{vector:{points:$e},worldBoundingBox:{transform:ot}},handleAdsorption:mt,handleCombineMarkChange:ft,handleCombineChange:gt}=this.props;ft&&ft("vector-editor-drag-assist-point"),!this.isCreatBezierCurve&&this.setAssistPointCursor(De,"move"),this.onSaveSelectedIndex([Be],Qe),(Be===0||Be===$e.length-1)&&this.setState({vx:De.offsetX,vy:De.offsetY});const{x:_t,y:Yt}=$e[Be],Ft=[...$e];let Zt=0;const Nt=vt=>{if(Zt<5)return Zt++;if(this.isCreatBezierCurve=!0,this.checkIsContains(vt)){const rn=mt($.Z.xy(vt.offsetX,vt.offsetY),ot),Ot=F(Ft[Be],Qe,{x:rn.x-_t,y:rn.y-Yt});this.setAssistPointCursor(vt,"move"),Ft[Be]=Ot,this.onSaveVector(Ft,!0)}},Qt=()=>{const{isOutside:vt}=this.state;this.isCreatBezierCurve=!1,this.setCursor(""),!vt&&this.onSaveVector(Ft,!1),document.removeEventListener("mousemove",Nt),document.removeEventListener("mouseup",Qt),gt&&gt("vector-editor-drag-assist-point")};document.addEventListener("mousemove",Nt),document.addEventListener("mouseup",Qt)}),(0,S.A)(this,"changeType",()=>{const{widget:{vector:De},vectorEditor:{selectedIndex:Be}}=this.props,{points:Qe}=De;if(Be.length!==1)return;let $e=Qe[Be[0]];if($e.type===P.Straight){const{prev:mt,next:ft}=B(Qe,Be[0]);$e={...$e,type:P.Mirrored,prev:mt,next:ft}}else $e={...$e,type:P.Straight,prev:$.Z.zero,next:$.Z.zero};const ot=[...Qe];ot[Be[0]]=$e,this.props.onChangeProps({vector:{...De,points:[...ot]}})}),(0,S.A)(this,"handleMouseDown",De=>{const{widget:{vector:Be,worldBoundingBox:{transform:Qe}},vectorEditor:{selectedIndex:$e},rect:ot,boundingBoxTransform:mt,handleClientPosition:ft,handleCombineMarkChange:gt,handleCombineChange:_t}=this.props,{points:Yt,closed:Ft}=Be,{showVirtualPoint:Zt,hoverIndex:Nt,vx:Qt,vy:vt,px:yn,py:rn,splitPoint:Ot}=this.state,Nn=ft(De),{x:To,y:fo}=mt.inverted().apply(Nn);if(Qt===null&&vt===null)return;const{x:ro,y:Bn}=mt.inverted().apply({x:Qt,y:vt});if(De.metaKey||De.ctrlKey){this.dragLine();return}const Ao=!Ft&&$e[0]!==0&&$e[0]!==Yt.length-1;if(ie.rw.contains(ot,$.Z.xy(To,fo))&&(Ft||Ao)&&!Zt){this.props.onClearSelection();return}if(!Zt&&(Ft||Ao)||$e.length===0){this.props.onExit();return}let go,Jo=[...Yt];const $o={type:P.Straight,x:ro,y:Bn,next:$.Z.zero,prev:$.Z.zero,radius:0};if(Zt&&Nt!==void 0){const pt=this.changeAdjacentPointsWhenCreate(yn,rn,Nt,Ot);this.changePointPositionAfterCreate(Nt+1,pt);return}if(gt&&gt("vector-editor-drag"),$e[0]===0&&Yt.length>1?(Jo=[$o,...Yt],go=0):(Jo=[...Yt,$o],go=Yt.length),Yt.find(pt=>pt.x===ro&&pt.y===Bn))return;this.onSaveVector(Jo,!0),this.onSaveSelectedIndex([go]),this.setState({hoverPoint:go});let po=0;const us=pt=>{if(pt.stopPropagation(),pt.stopImmediatePropagation(),pt.preventDefault(),po<5)return po++;const Ht={x:pt.offsetX,y:pt.offsetY},nn=mt.inverted().apply({x:Ht.x,y:Ht.y}),{x:en,y:Un}=Qe.apply(nn),{x:Kn,y:Vn}=Qe.inverted().apply({x:Math.round(en),y:Math.round(Un)});this.isCreatBezierCurve=!0;const vo="next";this.onSaveSelectedIndex([go],vo);const zn={x:Kn-ro,y:Vn-Bn};let Fn;zn.x===0&&zn.y===0||Math.abs(Nn.x-pt.clientX)<6&&Math.abs(Nn.y-pt.clientY)<6?Fn={...$o,type:P.Straight}:(Fn={...$o,type:P.Mirrored},Fn=F(Fn,vo,zn)),Jo[go]=Fn,this.onSaveVector(Jo,!0)},hs=()=>{this.isCreatBezierCurve=!1,this.onSaveSelectedIndex([go]),this.props.onMouseUp(),document.removeEventListener("mousemove",us),document.removeEventListener("mouseup",hs),_t&&_t("vector-editor-drag")};document.addEventListener("mousemove",us),document.addEventListener("mouseup",hs)}),(0,S.A)(this,"dragLine",()=>{const{widget:{vector:{points:De}},boundingBoxTransform:Be,viewport:Qe,handleCombineMarkChange:$e,handleCombineChange:ot}=this.props,{hoverIndex:mt}=this.state;if(mt===void 0)return;$e&&$e("vector-editor-drag-line");const ft=[...De],gt=mt===De.length-1?0:mt+1,_t=ft[mt],Yt=ft[gt],Ft=U([_t],Be)[0],Zt=U([Yt],Be)[0],Nt=[Ft,Zt];this.setState({cursorStyle:"drag-cursor",showVirtualPoint:!1,adjacentPoints:Nt});const Qt=yn=>{const{showVirtualPoint:rn,isDragLineByCmd:Ot}=this.state;!Ot&&this.setState({isDragLineByCmd:!0}),rn&&this.setState({showVirtualPoint:!1}),this.setCursor("drag-cursor");const Nn=yn.clientX-Qe.size.x,To=yn.clientY-Qe.size.y,{next:fo,prev:ro}=J(Ft,Zt,{x:Nn,y:To}),{x:Bn,y:Ao}=Be.inverted().apply(fo),{x:go,y:Jo}=Be.inverted().apply(ro),$o={x:Bn-_t.x,y:Ao-_t.y},po={x:go-Yt.x,y:Jo-Yt.y},us=j(_t.prev,$o),hs=j(po,Yt.next);ft[mt]={..._t,type:us,next:$o},ft[gt]={...Yt,type:hs,prev:po},this.onSaveVector(ft,!0)},vt=()=>{this.setState({isDragLineByCmd:!1,cursorStyle:"",adjacentPoints:[]}),this.props.onMouseUp(),document.removeEventListener("mousemove",Qt),document.removeEventListener("mouseup",vt),ot&&ot("vector-editor-drag-line")};document.addEventListener("mousemove",Qt),document.addEventListener("mouseup",vt)}),(0,S.A)(this,"changeAdjacentPointsWhenCreate",(De,Be,Qe,$e)=>{const{widget:{vector:ot},boundingBoxTransform:mt}=this.props,{points:ft}=ot,{e1:gt,e2:_t,prevPointNextAssist:Yt,nextPointPrevAssist:Ft,type:Zt}=$e,{x:Nt,y:Qt}=mt.inverted().apply({x:De,y:Be});let vt;const yn=[...ft];if(Zt===P.Straight)vt={type:P.Straight,x:Nt,y:Qt,prev:$.Z.zero,next:$.Z.zero,radius:0};else{const{x:rn,y:Ot}=mt.inverted().apply(gt),{x:Nn,y:To}=mt.inverted().apply(_t),fo=mt.inverted().apply(Yt),ro=mt.inverted().apply(Ft);vt={x:Nt,y:Qt,type:Zt,radius:0,prev:{x:rn-Nt,y:Ot-Qt},next:{x:Nn-Nt,y:To-Qt}};const Bn=Qe===ft.length-1?0:Qe+1,Ao=yn[Qe],go=yn[Bn],Jo={x:ro.x-Ao.x,y:ro.y-Ao.y},$o={x:fo.x-go.x,y:fo.y-go.y},po=j(Ao.prev,Jo),us=j($o,go.next);yn[Qe]={...Ao,type:po,next:Jo},yn[Bn]={...go,type:us,prev:$o}}return yn.splice(Qe+1,0,vt),this.onSaveVector(yn),this.onSaveSelectedIndex([Qe+1]),yn}),(0,S.A)(this,"changePointPositionAfterCreate",(De,Be)=>{this.setCursor("");const{widget:{worldBoundingBox:{transform:Qe}},handleAdsorption:$e,handleCombineMarkChange:ot,handleCombineChange:mt}=this.props;ot&&ot("vector-editor-drag-create-point");let ft=!1;const gt=Yt=>{if(this.isDragging=!0,this.checkIsContains(Yt)){ft=!0;const Zt=$e($.Z.xy(Yt.offsetX,Yt.offsetY),Qe);Be[De]={...Be[De],...Zt},this.onSaveVector(Be,!0)}},_t=()=>{const{isOutside:Yt}=this.state;this.isDragging=!1,!Yt&&ft&&this.onSaveVector(Be,!1),!Yt&&!ft&&this.onSaveSelectedIndex([De]),document.removeEventListener("mousemove",gt),document.removeEventListener("mouseup",_t),mt&&mt("vector-editor-drag-create-point")};document.addEventListener("mousemove",gt),document.addEventListener("mouseup",_t)}),(0,S.A)(this,"handleVirtualPointUpdate",(De,Be)=>{const{widget:{vector:{points:Qe,closed:$e},worldBoundingBox:{transform:ot}},vectorEditor:{selectedIndex:mt,selectedAssistIndex:ft},boundingBoxTransform:gt,handleAdsorption:_t,handleClientPosition:Yt}=this.props,{cursorStyle:Ft,showVirtualPoint:Zt,isHoverPointIndex:Nt,isOutside:Qt,isDragLineByCmd:vt}=this.state,yn=Yt(De);if(this.isCreatBezierCurve&&ft!==void 0){this.setState({showVirtualPoint:!1});return}this.setState({isDragLineByCmd:!1}),Zt&&this.setCursor("add-cursor"),Qt&&this.setState({isOutside:!1});let rn,Ot;const Nn=z(yn,Be,$e);if(Nn){const To=Be[Nn.index-1]?Nn.index-1:Be.length-1;if(De.shiftKey){const fo=Be[Nn.index],ro=Be[To],Bn=Y(.5,ro,ro.next,fo.prev,fo);rn=Bn.x,Ot=Bn.y;const Ao=z({x:rn,y:Ot},Be,$e);this.setState({splitPoint:Ao==null?void 0:Ao.splitPoint})}else rn=Nn.splitPoint.x,Ot=Nn.splitPoint.y,this.setState({splitPoint:Nn.splitPoint});if(this.setState({showVirtualPoint:!0,px:rn,py:Ot,hoverIndex:To}),De.metaKey||De.ctrlKey){this.setState({showVirtualPoint:!1,isDragLineByCmd:!0}),this.setCursor("hover-cursor","drag-cursor");return}}else Ft!==""&&(Zt||vt)&&this.setState({showVirtualPoint:!1,cursorStyle:""});if(!(mt.length!==1||$e||this.isCreatBezierCurve)&&(mt[0]===0||mt[0]===Qe.length-1)&&!$e&&!Zt){if(Ft==="line-cursor")return;Nt===void 0&&!this.isDragging&&this.setCursor("init-cursor");const To=yn.x,fo=yn.y;if(De.shiftKey){const{x:ro,y:Bn}=gt.apply({x:Qe[mt[0]].x,y:Qe[mt[0]].y}),Ao=(fo-Bn)/(To-ro);Math.abs(Ao)<Math.tan(22.5*Math.PI/180)?this.setState({vx:To,vy:Bn}):Math.abs(Ao)>Math.tan(67.5*Math.PI/180)?this.setState({vx:ro,vy:fo}):Ao<0?this.setState({vx:(To-fo+ro+Bn)*.5,vy:(fo-To+ro+Bn)*.5}):this.setState({vx:(To+fo+ro-Bn)*.5,vy:(To+fo-ro+Bn)*.5})}else{const ro=_t(yn,ot),Bn=gt.apply(ro);this.setState({vx:Bn.x,vy:Bn.y})}}}),(0,S.A)(this,"handleMouseOverPoint",(De,Be)=>{const{widget:{vector:{closed:Qe,points:$e}},vectorEditor:{selectedIndex:ot},boundingBoxTransform:mt}=this.props,{isHoverPointIndex:ft}=this.state,{number:gt}=Be.target.dataset,_t=(De===0||De===$e.length-1)&&ot[0]+De===$e.length-1;if(Be.metaKey||Be.ctrlKey)this.setState({cursorStyle:"trans-cursor"});else if(!Qe&&_t&&$e.length>1){const{x:Yt,y:Ft}=mt.apply({x:$e[De].x,y:$e[De].y});this.setState({vx:Yt,vy:Ft,cursorStyle:"line-cursor"})}ft!==gt&&this.setState({isHoverPointIndex:gt})}),(0,S.A)(this,"handleMouseOverAssist",De=>{const{isHoverPointIndex:Be}=this.state,{number:Qe}=De.target.dataset;Be!==Qe&&this.setState({isHoverPointIndex:Qe}),!this.isDragging&&!this.isCreatBezierCurve&&this.setAssistPointCursor(De,"hover")}),(0,S.A)(this,"handleMouseLeave",function(De){De===void 0&&(De=-1);const{vectorEditor:{selectedIndex:Be}}=Oe.props;Oe.isDragging||Oe.isCreatBezierCurve?Oe.setState({cursorStyle:"move-cursor",isHoverPointIndex:void 0}):(!Oe.isDragging&&!Oe.isCreatBezierCurve||Be[0]!==De)&&Oe.setState({cursorStyle:"",isHoverPointIndex:void 0})}),(0,S.A)(this,"handleOutside",()=>{this.setState({isOutside:!0})}),(0,S.A)(this,"handleInside",()=>{this.setState({isOutside:!1})})}static getDerivedStateFromProps(Oe,De){if(!Oe.widget)return null;if(!o()(Oe.boundingBoxTransform,De.boundingBoxTransform)&&De.cursorStyle!=="init-cursor"){const{widget:{vector:{points:Be,closed:Qe}},boundingBoxTransform:$e}=Oe,{px:ot,py:mt,hoverIndex:ft,showVirtualPoint:gt}=De;if(ft===void 0||ft<0||ft>Be.length-1)return null;const _t=ft===Be.length-1?0:ft+1,Yt=[Be[ft],Be[_t]],Ft=U(Yt,$e);if(!z({x:ot,y:mt},Ft,Qe))return!Qe&&!gt?{...De,boundingBoxTransform:$e,showVirtualPoint:!1,cursorStyle:"init-cursor"}:{...De,boundingBoxTransform:$e,showVirtualPoint:!1,cursorStyle:""}}return null}render(){if(!this.props.widget)return null;const{shortcutsSheet:Oe,svgStyle:De,wrapperStyle:Be,widget:{vector:{points:Qe,closed:$e},worldBoundingBox:{transform:ot}},vectorEditor:{selectedIndex:mt,selectedAssistIndex:ft},boundingBoxTransform:gt,mapX:_t,mapY:Yt,viewport:Ft}=this.props,{px:Zt,py:Nt,vx:Qt,vy:vt,hoverIndex:yn,showVirtualPoint:rn,cursorStyle:Ot,isOutside:Nn,hoverPoint:To,isHoverPointIndex:fo,isDragLineByCmd:ro,adjacentPoints:Bn}=this.state,Ao=To!==mt[0]&&To!==void 0,go=mt.length===1&&(mt[0]===0||mt[0]===Qe.length-1),Jo=Qe.length===1&&ft,$o=go&&!$e&&!this.isCreatBezierCurve&&!Nn&&!rn&&(fo===void 0||Ot==="line-cursor"||Ao)&&!Jo,po=mt.length===1&&(this.isDragging||this.isCreatBezierCurve||Ot==="init-cursor")&&!Jo,us=U(Qe,gt);return(0,v.jsxs)(ce,{className:Ot+" vector-editor-container",style:Be,children:[(0,v.jsx)(be.Cd,{sheet:Oe}),(0,v.jsxs)("svg",{ref:this.createSvgRef,className:"vector-container",style:De,onMouseDown:this.handleMouseDown,onMouseMove:hs=>this.handleVirtualPointUpdate(hs,us),onMouseLeave:this.handleOutside,onMouseEnter:this.handleInside,children:[(0,v.jsx)(O,{showVirtualPoint:ro||rn,pointsData:us,hoverIndex:yn,closed:$e}),po&&(0,v.jsx)(W,{closed:this.isCreatBezierCurve||$e,vx:Qt,vy:vt,transform:ot,boundingBoxTransform:gt,selectedIndex:mt,selectedAssistIndex:ft,pointsData:us,mapX:_t,mapY:Yt,viewport:Ft}),(0,v.jsx)(w,{showVirtualPoint:rn,showVirtualLine:$o,px:Zt,py:Nt,vx:Qt,vy:vt,pointsData:us,selectedIndex:mt}),(0,v.jsx)(Ce,{selectedIndexList:mt,onMouseLeave:this.handleMouseLeave,onPointDoubleClick:this.changeType,onPointMouseEnter:this.handleMouseOverPoint,onPointMouseDown:this.changePointPosition,onAssistMouseEnter:this.handleMouseOverAssist,onAssistMouseDown:this.changeAssistPointPosition,pointsData:us,isHoverPointIndex:fo,selectedAssistIndex:ft}),(0,v.jsx)(me,{adjacentPoints:Bn})]})]})}}(0,S.A)(fe,"defaultProps",{viewport:k.L.identity(),svgStyle:{left:0,top:0},wrapperStyle:{left:0,top:0},onMouseUp:()=>null,handleClientPosition:ze=>$.Z.xy(ze.clientX,ze.clientY)});var Se=e(23536),Me=e(8580);const Ie=(ze,Oe,De)=>{const Be=new Map,Qe=new Map,$e=[];De.map(ft=>{const gt=ft.props.complex||{a:1,b:0,c:0,d:1},{transform:_t,rect:Yt}=getWorldBoundingBox(ft.key),{x:Ft,y:Zt,w:Nt,h:Qt}=Yt;let vt=[],yn=[];if(ze&&Oe===ft.ref){if(ze.selectedIndex&&ze.selectedIndex.length>0){const{points:Nn,closed:To}=ft.props.vector,{selectedIndex:fo}=ze;Nn.forEach((ro,Bn)=>{const Ao=fo.includes(Bn);if(ze.selectedIndex.length===1){const go=Ao&&(Bn===0||Bn===Nn.length-1)&&!To;(!Ao||go)&&$e.push(ro)}else Ao||$e.push(ro)})}}else vt=[Ft,Ft+Nt/2,Ft+Nt],yn=[Zt,Zt+Qt/2,Zt+Qt];vt=vt.map(Nn=>Math.round(_t.apply(Transform.parse({complex:gt,x:Nn,y:0})).x)),yn=yn.map(Nn=>Math.round(_t.apply(Transform.parse({complex:gt,x:0,y:Nn})).y)),vt.forEach(Nn=>Be.has(Nn)?Be.set(Nn,[Math.max(...yn,...Be.get(Nn)),Math.min(...yn,...Be.get(Nn))]):Be.set(Nn,[Math.max(...yn),Math.min(...yn)])),yn.forEach(Nn=>Qe.has(Nn)?Qe.set(Nn,[Math.max(...vt,...Qe.get(Nn)),Math.min(...vt,...Qe.get(Nn))]):Qe.set(Nn,[Math.max(...vt),Math.min(...vt)]));const rn={},Ot={};$e.forEach(Nn=>{let{x:To,y:fo}=Nn;const{x:ro,y:Bn}=_t.apply(Transform.parse({complex:gt,x:To,y:fo}));if(rn[ro]){const[Ao,go]=rn[ro];rn[ro]=[Math.max(Ao,Bn),Math.min(go,Bn)]}else rn[ro]=[Bn,Bn];if(Ot[Bn]){const[Ao,go]=Ot[Bn];Ot[Bn]=[Math.max(Ao,ro),Math.min(go,ro)]}else Ot[Bn]=[ro,ro]}),Object.keys(rn).forEach(Nn=>Be.set(+Nn,rn[+Nn])),Object.keys(Ot).forEach(Nn=>Qe.set(+Nn,Ot[+Nn]))});const ot=[...Be.keys()],mt=[...Qe.keys()];return{mapX:Be,mapY:Qe,listX:ot,listY:mt}},de="Vector",xe=(ze,Oe)=>{const{selectedIndex:De,selectedAssistIndex:Be}=ze;if(De.length!==1||Be===void 0)return{};const Qe=Oe.points[De[0]].type;if([PointType.Mirrored,PointType.Asymmetric].includes(Qe)){const $e=[...Oe.points];return $e[De[0]].type=PointType.Disconnected,{vector:{...Oe,points:[...$e]}}}return{}},Le=ze=>({vectorEditor:{selectedIndex:new Array(ze.points.length).fill(null).map((De,Be)=>Be),selectedAssistIndex:void 0}}),ve=ze=>({vector:{...ze,closed:!ze.closed}}),je=(ze,Oe)=>{const De=Oe.points;if(De.length===1)return{};const{selectedIndex:Be}=ze;return{vectorEditor:{selectedIndex:[Be[0]===De.length-1?0:Be[0]+1],selectedAssistIndex:void 0}}},We=(ze,Oe,De,Be)=>{let Qe={};const $e=[...De.points];if(ze!==de&&(Qe={type:de}),$e.length===1)return Be(),!1;{const ot={vectorEditor:{selectedIndex:[0],selectedAssistIndex:void 0}};return $e.splice(Oe.selectedIndex[0],1),Qe={...Qe,vector:{...De,points:$e}},{props:Qe,mode:ot}}},Ae=(ze,Oe,De)=>{const{selectedIndex:Be}=Oe,Qe=[...De.points];if(ze===PointType.Straight)Qe[Be[0]]={...Qe[Be[0]],type:ze,prev:Vec2.zero,next:Vec2.zero};else{const{prev:$e,next:ot}=getInitAssistPoint(Qe,Be[0]);Qe[Be[0]]={...Qe[Be[0]],type:ze,prev:$e,next:ot}}return{vector:{...De,points:[...Qe]}}},we=(ze,Oe,De,Be)=>(ze!==de?De():Oe.points.length===1?Be():De(),!1),_e=(ze,Oe,De,Be,Qe)=>{const{key:$e,selectedIndex:ot}=ze;return ot.length>0?{vectorEditor:{key:$e,selectedIndex:[],selectedAssistIndex:void 0}}:we(Oe,De,Be,Qe)},Te=(ze,Oe,De,Be,Qe)=>{const{selectedIndex:$e,selectedAssistIndex:ot}=De,{points:mt}=Be;if($e.length<1)return{};const ft=[...mt];if($e.length===1&&ot){const{x:gt,y:_t}=ft[$e[0]],Yt=ft[$e[0]][ot],{x:Ft,y:Zt}=Qe.clone().apply({x:gt+Yt.x,y:_t+Yt.y});let Nt;ze==="x"&&(Nt={x:Ft+Oe,y:Zt}),ze==="y"&&(Nt={x:Ft,y:Zt+Oe});const Qt=Qe.inverted().apply(Nt);ft[$e[0]]=getPointDataByAssistPosition(ft[$e[0]],ot,{x:Qt.x-gt,y:Qt.y-_t})}else ze==="x"&&$e.map(gt=>{const _t=ft[gt],{x:Yt,y:Ft}=Qe.apply(_t),{x:Zt,y:Nt}=Qe.inverted().apply({x:Yt+Oe,y:Ft});ft[gt]={..._t,x:Zt,y:Nt}}),ze==="y"&&$e.map(gt=>{const _t=ft[gt],{x:Yt,y:Ft}=Qe.apply(_t),{x:Zt,y:Nt}=Qe.inverted().apply({x:Yt,y:Ft+Oe});ft[gt]={..._t,x:Zt,y:Nt}});return{vector:{...Be,points:[...ft]}}};var Ye=e(44115),Fe=e(38047);const Ve=(ze,Oe)=>!Oe||Oe===0?0:Oe/Math.tan(ze/2);function rt(ze,Oe){return(ze%Oe+Oe)%Oe}const Ue=(ze,Oe)=>Oe*4/3*Math.tan((Math.PI-ze)/4),et=(ze,Oe,De)=>{const Qe=ze.getLUT(100);let $e=0,ot=1;for(;$e<Oe&&ot<=99;)$e+=$.Z.distance(Qe[ot-1],Qe[ot]),ot+=1;return De?(ot-1)/100:ot/100},lt=(ze,Oe,De,Be,Qe,$e)=>{const ot=[],mt=[];if(ze.forEach((Jo,$o)=>{if($o===ze.length-1&&!$e){ot.push([]),mt.push([]);return}const po=rt($o-1,ze.length);if(Jo.radius>0&&$o!==0){const hs=ot[po],pt=Oe[$o],Ht=ze[$o].radius*Qe,nn=De[$o]*Qe,en=Be[$o],Un=Ue(en,Ht),Kn=et(hs,hs.length()-nn,!1),Vn=et(pt,nn,!0),vo=hs.split(Kn),zn=pt.split(Vn);ot[po]=vo.left,ot.push(zn.right);const Fn=ot[po].points,Rn=Fn[Fn.length-1],wo=ot[$o].points[0],dn=$.Z.unitization(ot[po].derivative(1)),pn=$.Z.add(Rn,$.Z.mul(dn,Un)),ho=$.Z.unitization(ot[$o].derivative(0)),Oo=$.Z.add(wo,$.Z.mul(ho,-Un));mt.push([Rn,pn,Oo,wo])}else{const hs=[],pt=Oe[$o];mt.push(hs),ot.push(pt)}}),!$e||!ze[0].radius)return{radiusC:mt,splitC:ot};const ft=ze.length-1,gt=ot[ft],_t=ot[0],Yt=ze[0].radius*Qe,Ft=De[0]*Qe,Zt=Be[0],Nt=Ue(Zt,Yt),Qt=et(gt,gt.length()-Ft,!1),vt=et(_t,Ft,!0),yn=gt.split(Qt),rn=_t.split(vt);ot[ft]=yn.left,ot[0]=rn.right;const Ot=ot[ft].points,Nn=Ot[Ot.length-1],fo=ot[0].points[0],ro=$.Z.unitization(ot[ft].derivative(1)),Bn=$.Z.add(Nn,$.Z.mul(ro,Nt)),Ao=$.Z.unitization(ot[0].derivative(0)),go=$.Z.add(fo,$.Z.mul(Ao,-Nt));return mt[0]=[Nn,Bn,go,fo],{radiusC:mt,splitC:ot}},Je=ze=>{const{points:Oe,closed:De}=ze,Be=[],Qe=[],$e=[],ot=[],mt=1e-5;for(let gt=0;gt<Oe.length;gt++){const _t={...Oe[gt],x:Oe[gt].x||0,y:Oe[gt].y||0},Yt=gt===Oe.length-1?Oe[0]:Oe[gt+1],Ft={...Yt,x:(Yt==null?void 0:Yt.x)||0,y:(Yt==null?void 0:Yt.y)||0};if(_t.type===P.Straight&&Ft.type===P.Straight){const Zt=new(Q())(_t.x,_t.y,(Ft.x+_t.x)/2,(Ft.y+_t.y)/2,Ft.x,Ft.y);Be.push(Zt),Qe.push(Zt.length())}else if(_t.type===P.Straight&&Ft.type!==P.Straight){const Zt=new(Q())(_t.x,_t.y,Ft.x+(Ft.prev.x||mt),Ft.y+(Ft.prev.y||mt),Ft.x,Ft.y);Be.push(Zt),Qe.push(Zt.length())}else if(_t.type!==P.Straight&&Ft.type===P.Straight){const Zt=new(Q())(_t.x,_t.y,_t.x+(_t.next.x||mt),_t.y+(_t.next.y||mt),Ft.x,Ft.y);Be.push(Zt),Qe.push(Zt.length())}else{const Zt=new(Q())(_t.x,_t.y,_t.x+(_t.next.x||mt),_t.y+(_t.next.y||mt),Ft.x+(Ft.prev.x||mt),Ft.y+(Ft.prev.y||mt),Ft.x,Ft.y);Be.push(Zt),Qe.push(Zt.length())}}for(let gt=0;gt<Oe.length;gt++){const _t=(gt-1+Oe.length)%Oe.length,Yt=Be[_t],Ft=Be[gt],Zt=$.Z.neg(Yt.derivative(1)),Nt=Ft.derivative(0),Qt=Math.min(Math.abs($.Z.radianClockWise(Zt,Nt)),Math.abs($.Z.radianClockWise(Zt,Nt)));ot[gt]=Qt,$e[gt]=Ve(Qt,Oe[gt].radius)}const ft=Math.min(...Qe.map((gt,_t)=>{const Yt=rt(_t+1,Oe.length),Ft=Math.min(Math.abs(gt/($e[_t]+$e[Yt])),1);return isNaN(Ft)?1:Ft}));return lt(Oe,Be,$e,ot,ft,De)},Xe=ze=>ze.every(De=>De.type===PointType.Straight)&&(new Set(ze.map(De=>De.x)).size===1||new Set(ze.map(De=>De.y)).size===1),st=ze=>{let Oe="";return ze.forEach((De,Be)=>{Be===0?Oe+="M "+De.x+" "+De.y+" ":Oe+="L "+De.x+" "+De.y+" "}),Oe},nt=ze=>{let Oe="";if(!ze)return Oe;const{points:De,closed:Be}=ze,Qe=Je(ze),{radiusC:$e,splitC:ot}=Qe;if(ot[0].length===0)return Oe;if(De[0].radius&&Be){const mt=$e[0][0];Oe+="M "+mt.x+" "+mt.y+" "}else Oe+="M "+De[0].x+" "+De[0].y+" ";for(let mt=0;mt<De.length&&!(!Be&&mt===De.length-1);mt++){const ft=$e[mt],gt=ot[mt].points;De[mt].radius&&ft.length!==0&&(Oe+="C "+ft[1].x+" "+ft[1].y+" "+ft[2].x+" "+ft[2].y+" "+ft[3].x+" "+ft[3].y+" "),gt.length===3?Oe+="Q "+gt[1].x+" "+gt[1].y+" "+gt[2].x+" "+gt[2].y+" ":Oe+="C "+gt[1].x+" "+gt[1].y+" "+gt[2].x+" "+gt[2].y+" "+gt[3].x+" "+gt[3].y+" "}return Be&&(Oe+="Z"),Oe},tt=(ze,Oe)=>{const{hotAttr:{vector:De}}=sdkStore.getHotItem(ze),Be=De||Oe,Qe=sdkStore.getHotInnerMatrix(ze),$e=new MutableTransform(Qe.a,Qe.b,Qe.c,Qe.d,Qe.tx,Qe.ty);if(!Be)return $e;const{x:ot,y:mt}=it(Be),ft=$e.clone().applyWithoutXY({x:-ot,y:-mt});return $e.clone().translate(ft)},ct="position: fixed; top: -9999px; left: -9999px",ht="vector-sample";let It;const it=ze=>{if(!It||!document.getElementById(ht)){const Be="http://www.w3.org/2000/svg",Qe=document.createElementNS(Be,"svg"),$e=document.createElementNS(Be,"path");Qe.appendChild($e),Qe.setAttribute("style",ct),Qe.setAttribute("id",ht),document.body.appendChild(Qe),It=$e}const Oe=nt(ze);It.setAttributeNS(null,"d",Oe);const De=It.getBBox();return{x:De.x,y:De.y,w:Math.max(De.width,1),h:Math.max(De.height,1)}},Tt=ze=>{const{x:Oe,y:De}=it(ze),Be=new MutableTransform(1,0,0,1,-Oe,-De);return ze.points.map(Qe=>{const{x:$e,y:ot,next:mt,prev:ft}=Qe,{x:gt,y:_t}=Be.apply({x:$e,y:ot});return{...Qe,x:gt,y:_t,next:mt,prev:ft}})},Lt=ze=>{var Oe;let{key:De,vector:Be}=ze;const Qe=sdkStore.getHotInnerMatrix(De),{r:$e}=sdkStore.getHotBound(De),{hotAttr:{vector:ot,borderRadiusIsVisible:mt}}=sdkStore.getHotItem(De),ft=it({...ot,points:ot==null||(Oe=ot.points)==null?void 0:Oe.map(Bn=>({...Bn,radius:mt?Bn.radius:0}))}),gt=it(Be),_t=new Ye.h(Qe.a,Qe.b,Qe.c,Qe.d,Qe.tx,Qe.ty),Yt=_t.clone().applyWithoutXY({x:-ft.x,y:-ft.y}),Ft=_t.clone().applyWithoutXY({x:-gt.x,y:-gt.y}),Zt=Qe.tx+Yt.x-Ft.x,Nt=Qe.ty+Yt.y-Ft.y,{w:Qt,h:vt}=gt,yn=(0,Fe.EQ)($e),rn=Math.sin(yn)*.5,Ot=Math.cos(yn)*.5,Nn=Zt-vt*rn+Qt*Ot,To=Nt+vt*Ot+Qt*rn,{x:fo,y:ro}=sdkStore.toAttrXY({x:Nn,y:To},De);return{w:Qt,h:vt,x:fo,y:ro}},Rt=ze=>{let{key:Oe,vector:De}=ze;const Be=sdkStore.getHotInnerMatrix(Oe),{r:Qe}=sdkStore.getHotBound(Oe),{hotAttr:{elbow:{dPathList:$e}}}=sdkStore.getHotItem(Oe),mt=it({closed:!1,points:$e}),ft=it(De),gt=new MutableTransform(Be.a,Be.b,Be.c,Be.d,Be.tx,Be.ty),_t=gt.clone().applyWithoutXY({x:-mt.x,y:-mt.y}),Yt=gt.clone().applyWithoutXY({x:-ft.x,y:-ft.y}),Ft=Be.tx+_t.x-Yt.x,Zt=Be.ty+_t.y-Yt.y,{w:Nt,h:Qt}=ft,vt=calcRadianFromD1(Qe),yn=Math.sin(vt)*.5,rn=Math.cos(vt)*.5,Ot=Ft-Qt*yn+Nt*rn,Nn=Zt+Qt*rn+Nt*yn,{x:To,y:fo}=sdkStore.toAttrXY({x:Ot,y:Nn},Oe);return{w:Nt,h:Qt,x:To,y:fo}},Wt=(ze,Oe,De,Be)=>{let Qe="";return Qe+="M "+(ze-De)+" "+Oe+" ",Qe+="C "+(ze-De)+" "+(Oe-.552*Be)+" "+(ze-.552*De)+" "+(Oe-Be)+" "+ze+" "+(Oe-Be)+" ",Qe},Kt=(ze,Oe,De)=>{const Be=Wt(ze,Oe,-De,De),Qe=Wt(ze,Oe,De,De),$e=Wt(ze,Oe,De,-De),ot=Wt(ze,Oe,-De,-De);return Be+Qe+$e+ot},Gt=(ze,Oe)=>{const De="http://www.w3.org/2000/svg",Be=document.createElementNS(De,"svg"),Qe=document.createElementNS(De,"path");return Qe.setAttributeNS(null,"d",Oe),Qe.style.fill="none",Qe.style.stroke="red",Be.appendChild(Qe),Be.style.overflow="inherit",Be.style.position="absolute",Be.style.top="0",Be.style.left="0",Be.style.zIndex="9999",ze.appendChild(Be),Be},St=(ze,Oe)=>{const De=Vec2.xy(ze.x-Oe,ze.y-Oe),Be=Vec2.xy(ze.x-Oe,ze.y+Oe),Qe=Vec2.xy(ze.x+Oe,ze.y-Oe),$e=Vec2.xy(ze.x+Oe,ze.y+Oe);return[{p1:De,p2:Be},{p1:Be,p2:$e},{p1:Qe,p2:$e},{p1:De,p2:Qe}]},Hn=(ze,Oe)=>{const De=ze.curves;if(!(De!=null&&De.length))return!1;for(let Be=0;Be<=De.length-1;Be++)if(Oe.some(($e,ot)=>{var mt;return((mt=De[Be].intersects($e))==null?void 0:mt.length)>0}))return!0;return!1},uo=(ze,Oe,De,Be)=>{const Qe=Oe.points.map(ft=>{const{x:gt,y:_t,next:Yt,prev:Ft}=ft,{x:Zt,y:Nt}=Be.apply({x:gt,y:_t});return{...ft,x:Zt,y:Nt,next:Yt,prev:Ft}}),$e=nt({points:Qe,closed:Oe.closed}),ot=Bezier.SVGtoBeziers($e),mt=St(ze,De);return Hn(ot,mt)},Po=(ze,Oe,De,Be)=>{const{vector:Qe,w:$e,h:ot}=Oe;let mt=tt(Be,Qe);if($e&&ot){const{hotAttr:{w:ft,h:gt}}=sdkStore.getHotItem(Be),_t=(ft-$e)/2,Yt=(gt-ot)/2,{x:Ft,y:Zt}=it(Qe),Nt=sdkStore.getHotInnerMatrix(Be),Qt=new MutableTransform(Nt.a,Nt.b,Nt.c,Nt.d,Nt.tx,Nt.ty),vt=Qt.clone().applyWithoutXY({x:-Ft+_t,y:-Zt+Yt});mt=Qt.clone().translate(vt)}return uo(ze,Qe,De,mt)},Yn=(ze,Oe)=>{if(ze==="solid")return"";if(ze==="dotted")return Oe+" "+Oe;if(ze==="dashed"){if(Oe===1)return"3 2";if(Oe===2)return"6 4";if(Oe>2)return Oe*2+" "+Oe}};var bo=e(83084),Ke=e(64273);const ut=ze=>{let{width:Oe,height:De,borderRadius:Be}=ze;return[Point.xyr(Oe/2,0,Be),Point.xyr(Oe,De,Be),Point.xyr(0,De,Be)]},zt=(ze,Oe)=>{const De=[[0,ze,Oe/2],[3,ze,Oe,ze/2,Oe,.7071067690849304],[3,0,Oe,0,Oe/2,.7071067690849304],[3,0,0,ze/2,0,.7071067690849304],[3,ze,0,ze,Oe/2,.7071067690849304],[5]];function Be(ot,mt,ft){const gt=$e[$e.length-1];ft===2?gt.next={x:2*(ot-gt.x)/3,y:2*(mt-gt.y)/3}:gt.next={x:ot-gt.x,y:mt-gt.y},gt.type===PointType.Straight&&(gt.type=PointType.Disconnected)}const Qe=[];let $e=[{x:0,y:0,type:PointType.Disconnected,radius:0,prev:Vec2.zero,next:Vec2.zero}];for(let ot=0;ot<De.length;ot++){const mt=De[ot],ft=mt[0];switch(ft){case 0:{const[,gt,_t]=mt;$e.length>1&&Qe.push({points:$e,closed:!1}),$e=[],$e.push({x:gt,y:_t,type:PointType.Disconnected,radius:0,prev:Vec2.zero,next:Vec2.zero});break}case 1:{const[,gt,_t]=mt,Yt=$e[$e.length-1],Ft=Vec2.average(Vec2.xy(Yt.x,Yt.y),Vec2.xy(gt,_t));Be(Ft.x,Ft.y,ft),$e.push({x:gt,y:_t,type:PointType.Straight,radius:0,prev:Vec2.subtract(Ft,Vec2.xy(gt,_t)),next:Vec2.zero});break}case 2:{const[,gt,_t,Yt,Ft]=mt;Be(gt,_t,ft),$e.push({x:Yt,y:Ft,type:PointType.Disconnected,radius:0,prev:Vec2.xy(2*(gt-Yt)/3,2*(_t-Ft)/3),next:Vec2.zero});break}case 3:{const[,gt,_t,Yt,Ft,Zt]=mt,Nt=$e.length===0?Vec2.zero:$e[$e.length-1],Qt={x:gt,y:_t},vt={x:Yt,y:Ft},{c1:yn,c2:rn}=conicToCubic(Nt,Qt,vt,Zt);Be(yn.x,yn.y,ft);const Ot=Vec2.subtract(rn,vt);$e.push({x:Yt,y:Ft,type:PointType.Disconnected,radius:0,prev:Ot,next:Vec2.zero});break}case 4:{const[,gt,_t,Yt,Ft,Zt,Nt]=mt;Be(gt,_t,ft);const Qt={x:Yt-Zt,y:Ft-Nt};$e.push({x:Zt,y:Nt,type:PointType.Disconnected,radius:0,prev:Qt,next:Vec2.zero});break}case 5:{$e.length>1&&(Vec2.isEqual($e[0],$e[$e.length-1])&&($e[0].prev=$e[$e.length-1].prev,$e.splice($e.length-1,1)),Qe.push({points:$e,closed:!0}),$e=[last($e)]);break}}}return $e.length>1&&Qe.push({points:$e,closed:!1}),Qe},bt=ze=>{const{type:Oe,w:De,h:Be,borderRadius:Qe,polygon:$e,star:ot,line:mt,border:ft,elbow:gt,refVars:_t}=sdkStore.getHotItem(ze).hotAttr;let Yt;switch(ft&&(Yt=ft.bdrWidth),Oe){case WidgetType.WRect:{let Qt,vt,yn,rn,Ot;const Nn=_t==null?void 0:_t.borderRadius;if(typeof Qe!="number"?{radiusTL:Qt,radiusTR:vt,radiusBR:yn,radiusBL:rn}=Qe:(Qt=Qe,vt=Qe,yn=Qe,rn=Qe),typeof Nn=="object"){const{radiusTL:fo,radiusTR:ro,radiusBR:Bn,radiusBL:Ao}=Nn;Ot=[fo,ro,Bn,Ao]}else typeof Nn=="string"&&(Ot=new Array(4).fill(Nn));return{vector:{points:[Point.xyr(0,0,Qt),Point.xyr(De,0,vt),Point.xyr(De,Be,yn),Point.xyr(0,Be,rn)],closed:!0},refVars:{..._t,borderRadius:void 0,vector:Ot?{points:Ot.map(fo=>({radius:fo}))}:void 0}}}case WidgetType.WOval:return{vector:zt(De,Be)[0]};case WidgetType.WPolygon:{var Ft;const Qt=$e.sideNum,vt=$e.cornerRadius,rn=getPolygonPointsArr({width:De,height:Be,sides:Qt,borderWidth:Yt}).map(Bn=>Point.xyr(Bn.x,Bn.y,vt)),Ot={points:rn,closed:!0},{w:Nn,h:To}=getVectorPointsRect(Ot);let fo;const ro=_t==null||(Ft=_t.polygon)==null?void 0:Ft.cornerRadius;return ro&&(fo={points:rn.map(()=>({radius:ro}))}),{vector:Ot,w:Nn,h:To,refVars:{..._t,polygon:void 0,vector:fo}}}case WidgetType.WStar:{var Zt,Nt;const Qt=ot.sideNum,vt=ot.cornerRadius,yn=(Zt=ot==null?void 0:ot.radius)!=null?Zt:0,Ot=getStarPointsArr({width:De,height:Be,sides:Qt,radius:yn/100,borderWidth:Yt}).map(Ao=>Point.xyr(Ao.x,Ao.y,vt)),Nn={points:Ot,closed:!0},{w:To,h:fo}=getVectorPointsRect(Nn);let ro;const Bn=_t==null||(Nt=_t.star)==null?void 0:Nt.cornerRadius;return Bn&&(ro={points:Ot.map(()=>({radius:Bn}))}),{vector:Nn,w:To,h:fo,refVars:{..._t,star:void 0,vector:ro}}}case WidgetType.WLine:{const{linePointFrom:{x:Qt,y:vt},linePointTo:{x:yn,y:rn}}=mt,Ot=[De*(yn-Qt),Be*(rn-vt)];return{vector:{points:[Point.xyr(0,0,0),Point.xyr(Ot[0],Ot[1],0)],closed:!1}}}case WidgetType.WTriangle:{const Qt=getTrianglePoints({width:De,height:Be,borderRadius:Qe}),vt={points:Qt,closed:!0},{w:yn,h:rn}=getVectorPointsRect(vt);let Ot;const Nn=_t==null?void 0:_t.borderRadius;return Nn&&(Ot={points:Qt.map(()=>({radius:Nn}))}),{vector:vt,w:yn,h:rn,refVars:{..._t,borderRadius:void 0,vector:Ot}}}case WidgetType.WElbow:return{vector:{points:gt.dPathList,closed:!0}}}};var xn=e(62587),kn=e(36052),gn=e(54801),Zn=e(41818);const Pn=null;class _n extends null{shouldComponentUpdate(Oe,De,Be){return createShouldUpdate(Pn).call(this,Oe,De)}render(){const{vector:Oe,widget:{key:De,vector:Be,borderRadiusIsVisible:Qe,w:$e,h:ot,fill:mt,border:{bdrColor:ft,bdrWidth:gt,bdrStyle:_t,bdrIsVisible:Yt}}}=this.props,Ft=Oe||Be;if(!Ft)return null;const{closed:Zt}=Ft,Nt={...Ft,points:Ft.points.map(go=>({...go,radius:Qe?go.radius:0}))},Qt=getTransformPoints(Nt),vt=protoFillData2SigmaPaint(mt,{w:$e,h:ot}),yn=getSvgMatrixFromFill(vt),rn=getGradientColorsFromFill(vt),Ot=Math.floor(Math.random()*1e5),Nn=toRGBACSS(ft),To=getStrokeDashArray(_t,Number.parseInt(gt)),fo=getRadiusPointsPath({points:Qt,closed:Zt}),ro=getIsVectorLine(Nt.points),Bn=De+Date.now();if(Zt&&!ro)return _jsxs(_Fragment,{children:[_jsxs("defs",{children:[vt.type===PaintType.LinearGradient?_jsx("linearGradient",{id:Ot,x1:0,x2:1,y1:0,y2:0,gradientTransform:yn,children:rn.sort((go,Jo)=>go.point-Jo.point).map((go,Jo)=>_jsx("stop",{stopColor:go.hex,stopOpacity:go.alpha,offset:go.point},Jo))}):vt.type===PaintType.RadialGradient?_jsx("radialGradient",{id:Ot,cx:0,cy:0,r:1,gradientTransform:yn,children:rn.map((go,Jo)=>_jsx("stop",{stopColor:go.hex,stopOpacity:go.alpha,offset:go.point},Jo))}):null,_jsx("path",{id:Bn,d:fo}),_jsx("clipPath",{id:"clip-"+Bn,children:_jsx("use",{xlinkHref:"#"+Bn})})]}),_jsx("g",{children:_jsx("use",{xlinkHref:"#"+Bn,clipPath:"url(#clip-"+Bn+")",fill:vt.v?vt.type!==PaintType.Solid?"url(#"+Ot+")":Color.toRGBAStr(vt.color):"rgba(255, 255, 255, 0)",stroke:Yt?Nn:"none",strokeWidth:gt*2,strokeDasharray:To})})]});if(!Yt)return null;const Ao=ro?getVectorLinePath(Qt):fo;return _jsx("path",{id:Bn,d:Ao,stroke:Nn,strokeWidth:gt,strokeDasharray:To,fill:"none"})}}var Wn=e(89002),Ln=e(83744);const io=ze=>{const Oe=[];function De(Be){if(typeof Be=="string"){Oe.push(Be);return}for(const Qe in Be)Object.prototype.hasOwnProperty.call(Be,Qe)&&De(Be[Qe])}return De(ze),Oe};function to(ze,Oe,De,Be){const Qe=[];function $e(ot,mt){if(mt===void 0&&(mt=[]),typeof ot!="object"||ot===null){ot===De&&Qe.push([...mt]);return}for(const ft in ot)Object.prototype.hasOwnProperty.call(ot,ft)&&$e(ot[ft],[...mt,ft])}return $e(ze),Qe.forEach(ot=>{let mt=Oe,ft=!0;for(let gt=0;gt<ot.length-1;gt++){const _t=ot[gt];if(!Object.prototype.hasOwnProperty.call(mt,_t)||typeof mt[_t]!="object"){ft=!1;break}mt=mt[_t]}ft&&Object.prototype.hasOwnProperty.call(mt,ot[ot.length-1])&&(mt[ot[ot.length-1]]=Be)}),Oe}const mo=(ze,Oe,De,Be)=>{if((0,s.OO)(ze.key)){const $e=sdkStore.locUpBasketKey(ze.key),ot=$e&&sdkStore.getHotItem($e);if(ot){const mt=(0,s.QL)(ze.key);if(mt.length>0){var Qe;const ft=mt[mt.length-1],gt=sdkStore.getHotItem(ft),_t=gt==null||(Qe=gt.hotAttr)==null?void 0:Qe.refStyles;return[...io(_t==null?void 0:_t.color),_t==null?void 0:_t.text,_t==null?void 0:_t.appear].includes(Be)&&(De.findIndex(Ft=>Ft.key===ft)===-1&&De.push({key:ft,hotAttr:Oe}),De.findIndex(Ft=>{var Zt;return Ft.key===((Zt=ot.hotAttr)==null?void 0:Zt.refRBPageKey)})===-1&&De.push({key:ot.hotAttr.refRBPageKey,hotAttr:{mtime:rootSdk.fssCmt.getClockStore().getMtime()}})),!0}return!1}}return!1},Io=ze=>{var Oe,De,Be,Qe,$e;let{hotItem:ot,currentKey:mt,widgetRefStyleKeyList:ft,color:gt,flatChgList:_t,otherPageFlatChgList:Yt,updateBasketItemList:Ft,refStyleFlatChgList:Zt,currentPageKey:Nt}=ze;const Qt=u()(ot==null?void 0:ot.hotAttr);let vt={...Qt};if(ft.findIndex(fo=>fo===mt)!==-1){var yn;const fo=ot==null||(yn=ot.hotAttr)==null||(yn=yn.refStyles)==null?void 0:yn.color;let ro={};for(const[Bn,Ao]of Object.entries(fo))if(Ao)switch(Bn){case"richTextV1":if(Ao.textColor===mt){var rn,Ot;const $o={...Qt==null?void 0:Qt.richTextV1,textColor:(0,x.t0)(gt)};ro=In({selections:[ot==null?void 0:ot.key],attrs:$o,isAutoSize:!1,isOnlyUpdateTextColor:!0})[0].hotAttr,vt={...Qt,...ro};const po=(0,Ln.bC)(ot==null||(rn=ot.hotAttr)==null?void 0:rn.type);po&&(po==null||(Ot=po.refStyles)==null||(Ot=Ot.color)==null||(Ot=Ot.richTextV1)==null?void 0:Ot.textColor)===mt&&(0,Ln.Xq)([(0,Me.Op)(ot==null?void 0:ot.key,vt)])}break;case"cells":const go=_t.find($o=>$o.key===(ot==null?void 0:ot.key)),Jo=go?u()(go==null||(Oe=go.hotAttr)==null?void 0:Oe.cells):u()((De=(Be=ro)==null?void 0:Be.cells)!=null?De:vt.cells);for(const[$o,po]of Object.entries(Ao)){const us=(po==null?void 0:po.background)===mt,hs=(po==null?void 0:po.color)===mt,pt=Jo[$o];us&&(pt.style=(0,Wn.qI)("background",gt,pt.style,"change")),hs&&(pt.style=(0,Wn.qI)("color",(0,x.t0)(gt),pt.style,"change"))}ro.cells=Jo,vt={...Qt,...ro};break;default:ro=to(Ao,vt[Bn],mt,gt),vt={...Qt,[Bn]:ro};break}if(mo(ot,vt,Ft,mt))return;if(sdkStore.locUpRBPageKey(ot.key)===Nt){const Bn=_t.findIndex(go=>go.key===ot.key),Ao={key:ot.key,hotAttr:vt};Bn!==-1?_t[Bn]=Ao:_t.push(Ao)}else{const Bn={...ot,hotAttr:{...ot.hotAttr,...vt}},Ao=Yt.findIndex(go=>go.key===ot.key);Ao!==-1?Yt[Ao]=Bn:Yt.push(Bn)}}if(ot!=null&&(Qe=ot.hotAttr)!=null&&(Qe=Qe.refStyles)!=null&&Qe.appear){const fo=Zt.find(ro=>{var Bn;return ro.key===(ot==null||(Bn=ot.hotAttr)==null||(Bn=Bn.refStyles)==null?void 0:Bn.appear)});if(fo){const ro=r()(fo.hotAttr,_.vZ);if(mo(ot,ro,Ft,fo==null?void 0:fo.key))return;sdkStore.locUpRBPageKey(ot.key)===Nt?_t.push({key:ot.key,hotAttr:ro}):Yt.push({...ot,hotAttr:{...ot.hotAttr,...ro}})}}if(ot!=null&&($e=ot.hotAttr)!=null&&($e=$e.refStyles)!=null&&$e.text){const fo=Zt.find(ro=>{var Bn;return ro.key===(ot==null||(Bn=ot.hotAttr)==null||(Bn=Bn.refStyles)==null?void 0:Bn.text)});if(fo){var Nn,To;const ro=r()(fo.hotAttr,_.F$),Bn=In({selections:[ot==null?void 0:ot.key],attrs:ro,isOnlyUpdateTextColor:!0})[0].hotAttr,Ao=(0,Ln.bC)(ot==null||(Nn=ot.hotAttr)==null?void 0:Nn.type);if(Ao&&(Ao==null||(To=Ao.refStyles)==null?void 0:To.text)===(fo==null?void 0:fo.key)&&(0,Ln.Xq)([(0,Me.Op)(ot==null?void 0:ot.key,Bn)]),mo(ot,Bn,Ft,fo==null?void 0:fo.key))return;sdkStore.locUpRBPageKey(ot.key)===Nt?_t.push({key:ot.key,hotAttr:Bn}):Yt.push({...ot,hotAttr:{...ot.hotAttr,newHotAttr:Bn}})}}},co=ze=>{let{currentKey:Oe,refStyleFlatChgList:De,color:Be}=ze;sdkStore.findAllTypeUnder("B@style","rResStyle").filter($e=>$e.hotAttr.styleType!=="color").forEach($e=>{var ot;if($e!=null&&(ot=$e.hotAttr)!=null&&ot.refStyles&&sdkStore.isActiveKey($e.key)){var mt;const ft=$e==null||(mt=$e.hotAttr)==null||(mt=mt.refStyles)==null?void 0:mt.color;if(io(ft).findIndex(_t=>_t===Oe)!==-1){const _t=$e.hotAttr.styleType==="text",Yt=_t?{richTextV1:{...$e.hotAttr}}:u()($e==null?void 0:$e.hotAttr);for(const[Ft,Zt]of Object.entries(ft))if(Zt){const Nt=Yt[Ft];if(Nt){const Qt=Object.keys(Zt)[0];if(Object.values(Zt)[0]===Oe){const yn=_t?(0,x.t0)(Be):Be,rn={...Nt,[Qt]:yn};De.push({key:$e.key,hotAttr:_t?{...Yt==null?void 0:Yt.richTextV1,...rn}:{...Yt,[Ft]:rn}})}}}}}})},On=(ze,Oe,De)=>{const Be=[],Qe=[],$e=[],ot=[];co({refStyleFlatChgList:$e,color:Oe.solidColor,currentKey:De});const mt=ft=>{var gt;const _t=ft==null||(gt=ft.hotAttr)==null||(gt=gt.refStyles)==null?void 0:gt.color;if(_t&&Object.keys(_t).length&&sdkStore.isActiveKey(ft.key)){const Ft=io(_t);Io({hotItem:ft,currentKey:De,widgetRefStyleKeyList:Ft,color:Oe.solidColor,flatChgList:Be,otherPageFlatChgList:Qe,updateBasketItemList:ot,refStyleFlatChgList:$e,currentPageKey:ze})}};return sdkStore.walkHotItemSubtree2("B@ref-danli",mt),sdkStore.walkHotItemSubtree2("B@ref-muban",mt),sdkStore.walkHotItemSubtree2("B@main",mt),{flatChgList:[...Be,...$e,...ot],otherPageFlatChgList:Qe,isUpdateBasket:ot.length>0}},Cn=ze=>{var Oe,De;let{hotItem:Be,currentRefKey:Qe,attrs:$e,flatChgList:ot,otherPageFlatChgList:mt,currentPageKey:ft,updateBasketItemList:gt=[]}=ze;if(Be!=null&&(Oe=Be.hotAttr)!=null&&Oe.refStyles&&(Be==null||(De=Be.hotAttr)==null?void 0:De.refStyles.appear)===Qe){const _t={...$e,...yo({...Be.hotAttr,key:Be.key},$e.borderRadius)};if(mo(Be,_t,gt,Qe))return;sdkStore.locUpRBPageKey(Be.key)===ft?ot.push({key:Be.key,hotAttr:_t}):mt.push({...Be,hotAttr:{...Be.hotAttr,..._t}})}},qe=ze=>{let{currentPageKey:Oe,currentKey:De,attrs:Be}=ze;const Qe=[],$e=[],ot=[];return sdkStore.walkHotItemSubtree2("B@main",mt=>{Cn({hotItem:mt,currentRefKey:De,attrs:Be,flatChgList:Qe,otherPageFlatChgList:$e,currentPageKey:Oe,updateBasketItemList:ot})}),{flatChgList:[...Qe,...ot],otherPageFlatChgList:$e,isUpdateBasket:ot.length>0}},vn=ze=>{var Oe,De;let{hotItem:Be,currentRefKey:Qe,attrs:$e,flatChgList:ot,otherPageFlatChgList:mt,currentPageKey:ft,updateBasketItemList:gt=[]}=ze;if(Be!=null&&(Oe=Be.hotAttr)!=null&&Oe.refStyles&&(Be==null||(De=Be.hotAttr)==null?void 0:De.refStyles.text)===Qe){const _t=In({selections:[Be==null?void 0:Be.key],attrs:$e})[0].hotAttr;if(mo(Be,_t,gt,Qe))return;sdkStore.locUpRBPageKey(Be.key)===ft?ot.push({key:Be.key,hotAttr:_t}):mt.push({...Be,hotAttr:{...Be.hotAttr,..._t}})}},Jn=ze=>{let{currentPageKey:Oe,currentKey:De,attrs:Be}=ze;const Qe=[],$e=[],ot=[];return sdkStore.walkHotItemSubtree2("B@main",mt=>{vn({hotItem:mt,currentRefKey:De,attrs:Be,flatChgList:Qe,otherPageFlatChgList:$e,currentPageKey:Oe,updateBasketItemList:ot})}),{flatChgList:[...Qe,...ot],otherPageFlatChgList:$e,isUpdateBasket:ot.length>0}},ao=ze=>{let{currentPageKey:Oe,updateList:De}=ze;const Be=[],Qe=[],$e=[],ot=[];De.forEach(ft=>{var gt;if(((gt=ft.hotAttr)==null?void 0:gt.styleType)==="color"){var _t;co({refStyleFlatChgList:$e,color:(_t=ft.hotAttr)==null?void 0:_t.fill,currentKey:ft.key})}});const mt=De.map(ft=>({...ft,sup:"B@style"}));return sdkStore.updateHotItemBatch(mt),sdkStore.walkHotItemSubtree2("B@main",ft=>{var gt,_t,Yt;if(ft!=null&&(gt=ft.hotAttr)!=null&&(gt=gt.refStyles)!=null&&gt.appear){const vt=De.find(yn=>{var rn;return yn.key===(ft==null||(rn=ft.hotAttr)==null||(rn=rn.refStyles)==null?void 0:rn.appear)})||$e.find(yn=>{var rn;return yn.key===(ft==null||(rn=ft.hotAttr)==null||(rn=rn.refStyles)==null?void 0:rn.appear)});vt&&Cn({hotItem:ft,currentRefKey:vt==null?void 0:vt.key,attrs:r()(vt==null?void 0:vt.hotAttr,_.vZ),flatChgList:Be,otherPageFlatChgList:Qe,updateBasketItemList:ot,currentPageKey:Oe})}if(ft!=null&&(_t=ft.hotAttr)!=null&&(_t=_t.refStyles)!=null&&_t.text){const vt=De.find(yn=>{var rn;return yn.key===(ft==null||(rn=ft.hotAttr)==null||(rn=rn.refStyles)==null?void 0:rn.text)})||$e.find(yn=>{var rn;return yn.key===(ft==null||(rn=ft.hotAttr)==null||(rn=rn.refStyles)==null?void 0:rn.text)});if(vt){var Ft;vn({hotItem:ft,currentRefKey:vt==null?void 0:vt.key,attrs:{...ft==null||(Ft=ft.hotAttr)==null?void 0:Ft.richTextV1,...r()(vt.hotAttr,_.F$)},flatChgList:Be,otherPageFlatChgList:Qe,updateBasketItemList:ot,currentPageKey:Oe})}}if(ft==null||(Yt=ft.hotAttr)==null||(Yt=Yt.refStyles)==null?void 0:Yt.color){var Nt;const vt=io(ft==null||(Nt=ft.hotAttr)==null?void 0:Nt.refStyles.color).filter(rn=>rn),yn=De.map(rn=>{if(vt.includes(rn.key))return rn==null?void 0:rn.key}).filter(rn=>rn);for(const rn of yn){var Qt;const Ot=(Qt=sdkStore.getHotItem(rn))==null||(Qt=Qt.hotAttr)==null?void 0:Qt.fill;Io({hotItem:ft,currentKey:rn,widgetRefStyleKeyList:vt,color:Ot,flatChgList:Be,otherPageFlatChgList:Qe,currentPageKey:Oe,refStyleFlatChgList:$e,updateBasketItemList:ot})}}}),{flatChgList:[...Be,...$e,...ot],otherPageFlatChgList:Qe,isUpdateBasket:ot.length>0}},no=async ze=>{let{libSdkStore:Oe,data:De,projectMetaCid:Be}=ze;const Qe=Oe.getHotItem(De.key),$e=await(0,b.Hz)({key:De.key,...De.hotAttr,sup:"B@ref-muban",sub:Qe.sub,libKey:Be});return $e.sub.forEach(ot=>{var mt;const ft=Oe.getHotItem(ot);sdkStore.updateHotItem(ft);const gt=Oe.saveSubtree(ft==null?void 0:ft.sub);sdkStore.deleteHotItemBatch((mt=sdkStore.getHotItem(ot))==null?void 0:mt.sub),sdkStore.loadSubtreeTL(gt,ot,0,0)}),$e},ke=(ze,Oe)=>{!ze||!(Oe!=null&&Oe.length)||(Oe.forEach(De=>{const Be=sdkStore.getHotItem(De.key),Qe=(Be==null?void 0:Be.hotAttr.defaultCanvasKey)!==De.hotAttr.defaultCanvasKey,$e=r()(Be==null?void 0:Be.hotAttr,["w","h","scroll","name"]),ot=r()(De==null?void 0:De.hotAttr,["w","h","scroll","name"]);!o()($e,ot)&&sdkStore.updateHotAttrMerge(De.key,ot),Qe&&sdkStore.updateHotAttrKV(De.key,"defaultCanvasKey",De.hotAttr.defaultCanvasKey),De==null||De.sub.forEach(ft=>{var gt;const _t=ze.getHotItem(ft);(Be==null?void 0:Be.sub.findIndex(Zt=>Zt===ft))===-1&&sdkStore.updateHotItem(_t),sdkStore.deleteHotItemBatch((gt=sdkStore.getHotItem(ft))==null?void 0:gt.sub);const Ft=ze.saveSubtree(_t.sub);sdkStore.loadSubtreeTL(Ft,ft,0,0)}),sdkStore.updateHotAttrKV(De.key,"mtime",rootSdk.fssCmt.getClockStore().getMtime())}),MB.action("entry:rebuild:screen-widget-tree"))},$n=function(ze,Oe){Oe===void 0&&(Oe=0);const De=sdkStore.findAllTypeUnder("B@ref-muban","rResBunch").filter(Qe=>Qe.hotAttr.asFolder===!0).find(Qe=>Qe.hotAttr.name===ze);let Be="B@ref-muban";if(De)Be=De==null?void 0:De.key;else{const Qe=(0,l.Z_)("B@ref-muban");Be=(0,b.Hz)({name:ze,asFolder:!0,sup:"B@ref-muban",zIndex:Oe||Qe}).key}return Be},$t=(ze,Oe)=>{let De=ze;const Be=sdkStore.getHotItem(Oe);if(!Be||!sdkStore.isActiveKey(Oe))return;const Qe=Be.sup!=="B@ref-muban"?{...sdkStore.getHotItem(Be.sup)}:void 0,$e=ze.split("/");if($e.length===1)Qe&&(sdkStore.updateHotItem({...Be,sup:"B@ref-muban"}),Qe.sub.length===1&&Qe.sub[0]===Be.key&&sdkStore.deleteHotItem(Qe.key));else{var ot;const mt=$e[0];if(De=$e.slice(1,$e.length).join(""),Qe&&(Qe==null||(ot=Qe.hotAttr)==null?void 0:ot.name)!==mt||!Qe){const ft=$n(mt);sdkStore.updateHotItem({...Be,sup:ft}),Qe&&Qe.key!==ft&&Qe.sub.length===1&&Qe.sub[0]===Be.key&&sdkStore.deleteHotItem(Qe.key)}}return De},cn=e.j!=477?["bold","italic","underline","strikethrough"]:null,xt=e.j!=477?["letterSpacing","fontWeight","fontFamily","lineHeight","fontSize"]:null,Et=e.j!=477?["paraSpacing"]:null,jt=ze=>{let{oldRichTextV1:Oe,richTextV1:De,textV1:Be}=ze;const{blocks:Qe}=Be;if((0,d.SD)(Qe))return;let $e=(0,d.yU)({blocks:Qe,fn:mt=>({...mt})});return Object.keys(De).forEach(mt=>{Oe[mt]!==De[mt]&&Oe[mt]!==void 0&&De[mt]!==void 0&&(cn.includes(mt)&&($e=(0,d.RG)({blocks:{...$e},attr:mt.toUpperCase(),value:De[mt]})),xt.includes(mt)&&($e=(0,d.RG)({blocks:{...$e},attr:mt.toLowerCase(),value:De[mt]})),Et.includes(mt)&&($e=(0,d.RG)({blocks:{...$e},attr:mt,value:De[mt]})),mt==="textColor"&&($e=(0,d.RG)({blocks:{...$e},attr:"color",value:De[mt]})))}),$e},Jt=ze=>{var Oe,De;const Be=u()(ze==null||(Oe=ze.refStyles)==null?void 0:Oe.color),Qe=u()(ze==null||(De=ze.refStyles)==null?void 0:De.refVars);if(Be){var $e,ot;Be!=null&&($e=Be.richTextV1)!=null&&$e.textColor&&(Be==null||(ot=Be.richTextV1)==null||delete ot.textColor)}return Qe&&Be!=null&&Be.richTextV1&&(Be==null||delete Be.richTextV1),{color:Be,refVars:Qe}},In=ze=>{let{selections:Oe,attrs:De,currentRefStyle:Be,isAutoSize:Qe=!0,isDelRef:$e=!1,isOnlyUpdateTextColor:ot=!1}=ze,mt={};return Oe.map(gt=>{var _t,Yt,Ft,Zt,Nt;const Qt=sdkStore.getHotItem(gt),vt=(Qt==null?void 0:Qt.hotAttr.type)==="wElbow"?r()(De,_.Rf):r()(De,_.F$);let yn={...Qt==null||(_t=Qt.hotAttr)==null||(_t=_t.refStyles)==null?void 0:_t.color},rn={...Qt==null||(Yt=Qt.hotAttr)==null?void 0:Yt.refVars};if($e){const{color:To,refVars:fo}=Jt(Qt==null?void 0:Qt.hotAttr);yn=To,rn=fo}const Ot={textV1:{...Qt==null?void 0:Qt.hotAttr.textV1},richTextV1:{...Qt==null||(Ft=Qt.hotAttr)==null?void 0:Ft.richTextV1,...vt},refStyles:{color:yn,appear:Qt==null||(Zt=Qt.hotAttr)==null||(Zt=Zt.refStyles)==null?void 0:Zt.appear,text:(Be==null?void 0:Be.key)||(Qt==null||(Nt=Qt.hotAttr)==null||(Nt=Nt.refStyles)==null?void 0:Nt.text)},refVars:rn};if(Qt!=null&&Qt.hotAttr.textV1&&Object.keys(Qt==null?void 0:Qt.hotAttr.textV1.blocks).length!==0){const To=jt({richTextV1:Ot.richTextV1,oldRichTextV1:Qt==null?void 0:Qt.hotAttr.richTextV1,textV1:Qt==null?void 0:Qt.hotAttr.textV1});To&&(Ot.textV1.blocks=To)}if(M.Q.USE_TEXT_LIST.includes(Qt==null?void 0:Qt.hotAttr.type)&&De!=null&&De.listValue&&!ot){const{listValue:To="unstyled"}=De,fo=hn(Ot.textV1.blocks,To,!1);mt={...Ot.textV1,blocks:fo},Ot.textV1=mt}const Nn={...Qt==null?void 0:Qt.hotAttr,...Ot};return Qe&&((0,a.PQ)(Nn),(Nn.w!==(Qt==null?void 0:Qt.hotAttr.w)||Nn.h!==(Qt==null?void 0:Qt.hotAttr.h)||Nn.x!==(Qt==null?void 0:Qt.hotAttr.x)||Nn.y!==(Qt==null?void 0:Qt.hotAttr.y))&&(Ot.w=Nn.w,Ot.h=Nn.h,Ot.x=Nn.x,Ot.y=Nn.y)),{key:gt,hotAttr:Ot}})},En=(ze,Oe)=>{var De,Be;const Qe=(ze==null?void 0:ze.sclib_cid)||(ze==null||(De=ze.hotAttr)==null||(De=De.extInfo)==null?void 0:De.flatKey),$e=sdkStore.getSubHotItemList("B@ext").find(gt=>{var _t,Yt;return((_t=gt.hotAttr)==null?void 0:_t.extType)==="extProtoLib"&&((Yt=gt.hotAttr)==null||(Yt=Yt.extInfo)==null?void 0:Yt.flatKey)===Qe});if($e){const gt={...$e,hotAttr:{...$e.hotAttr,extInfo:{...$e.hotAttr.extInfo,updateTime:rootSdk.fssCmt.getClockStore().getMtime(),isRemove:!1}}};return sdkStore.updateHotItem(gt),gt}const ot={flatKey:ze.sclib_cid,projectCid:ze.cid,name:ze.name,addUser:Oe.name,updateTime:rootSdk.fssCmt.getClockStore().getMtime(),version:1},mt=ze!=null&&ze.is_custom_cover?ze==null?void 0:ze.custom_cover:(Be=ze==null?void 0:ze.cover)!=null?Be:"",ft={key:(0,h.cF)("el"),hotAttr:(0,C.Rq)({name:ze.name,extInfo:ot,extData:mt}),sup:i.JC};return sdkStore.updateHotItem(ft),ft},hn=(ze,Oe,De)=>{const Be={};for(const[Qe,$e]of Object.entries(ze))Be[Qe]={...$e,type:Oe,depth:De?$e.depth:0};return Be},_o=ze=>typeof ze=="object"?ze==null?void 0:ze.radiusTL:ze,yo=(ze,Oe)=>{let De;if(g.T.includes(ze.type))De={borderRadius:Oe};else switch(ze.type){case"wPolygon":De={polygon:{...ze.polygon,cornerRadius:_o(Oe)}};break;case"wStar":De={star:{...ze.star,cornerRadius:_o(Oe)}};break;case"wVector":const Be={...ze.vector,points:ze.vector.points.map(ft=>({...ft,radius:_o(Oe)}))},{x:Qe,y:$e,w:ot,h:mt}=Lt({key:ze.key,vector:Be});De={vector:Be,x:Qe,y:$e,w:ot,h:mt};break;default:De={borderRadius:_o(Oe)}}return De},Qn=()=>{var ze;const Oe=((ze=sdkStore.getHotItem(i.fW))==null?void 0:ze.sub)||[],De=new Set(Oe.filter(Be=>{var Qe;return!!((Qe=sdkStore.getHotItem(Be))!=null&&(Qe=Qe.hotAttr)!=null&&Qe.libKey)}));(0,f.of)(rootSdk.fssDat.getFlatStore().getFlatTree(),f.gT,Be=>{const{T:Qe,rRBPK:$e}=Be.attr;if(Qe===p.FQ&&(De.has($e)&&De.delete($e),!De.size))return!0}),De.size>0&&sdkStore.deleteHotItemBatch([...De])}},9248:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>p});var n=e(95549),r=e(25582),c=e.n(r),o=e(38502),I=e(53732),u=e.n(I),d=e(68677),C=e(57479),h=e(60121),i=e(62490),f=e(72214);class p extends o.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"setElementRef",l=>this.textarea=l),(0,n.A)(this,"handleFocus",()=>{this.props.onFocus()}),(0,n.A)(this,"handleChange",l=>{const{onChange:_}=this.props,{value:b}=l.target;_(b)}),(0,n.A)(this,"handleBlur",()=>{this.props.onBlur()}),(0,n.A)(this,"handleKeyDown",l=>{l.key===C._.Enter?(l.preventDefault(),this.handleBlur()):l.key===C._.Escape&&(this.props.onChange(this.cacheValue),this.cacheValue=null,this.handleBlur())})}componentDidMount(){this.props.editing&&(this.cacheValue=this.props.value,this.textarea.select())}componentDidUpdate(l){!l.editing&&this.props.editing&&(this.cacheValue=this.props.value,this.textarea.select())}handleStopPropagation(l){l.stopPropagation()}render(){const{editing:l,value:_,className:b,isShowToolTips:a,highlightKeyword:M}=this.props;return l?(0,f.jsx)(i.O,{className:u()("is-editing",b),onClick:this.handleStopPropagation,children:(0,f.jsx)("textarea",{ref:this.setElementRef,value:_,onFocus:this.handleFocus,onChange:this.handleChange,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown})}):(0,f.jsx)(i.O,{className:b,children:a?(0,f.jsx)(d.A,{arrowed:!1,children:_}):(0,f.jsx)(h.A,{value:_,highlightKeyword:M})})}}(0,n.A)(p,"propTypes",{editing:c().bool,value:c().string,className:c().string,onFocus:c().func,onBlur:c().func,onChange:c().func,isShowToolTips:c().bool,highlightKeyword:c().string}),(0,n.A)(p,"defaultProps",{onFocus:()=>{},onChange:()=>{},isShowToolTips:!1})},9446:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>I});var n=e(95549),r=e(69190);class c{constructor(){(0,n.A)(this,"FlpakSzieInfo",void 0)}init(d){this.initFlpakSizeInfo(d)}initFlpakSizeInfo(d){const C=Number(((d.treGz+d.flpbxGz+d.flpch)/1024/1024).toFixed(1));this.FlpakSzieInfo={isFlpakSizeWarn:(0,r.BC)(d,ENV.IS_FEAT_FLPAK4GB),isFlpakSizeLimit:(0,r.uC)(d,ENV.IS_FEAT_FLPAK4GB),currentSize:C,warnSize:(0,r.Ku)(ENV.IS_FEAT_FLPAK4GB)}}getFlpakSizeInfo(){return this.FlpakSzieInfo}}const I=new c},9501:(He,ee,e)=>{"use strict";e.d(ee,{B:()=>M});var n=e(38502),r=e(18381),c=e(53732),o=e.n(c),I=e(21770),u=e(70933),d=e(67588),C=e(4235),h=e(12211),i=e(89505),f=e(11032),p=e(3862),s=e(68863),l=e(4179),_=e(14285),b=e(72214);const a=(0,h.Mz)([u.wA,u.HW,u.X_,u.Pz,u.PL,d.PI,d.k3,u.Ur,C.nE,u.YY],(x,g,S,t,v,w,k,W,K,G)=>({currentOrg:x,currentUser:g,scale:S,canvasRect:t,rootProject:v,showDragMode:w,isAdsorbentReferenceLine:k,currentScreen:W,selectedItems:K,createTemplatesData:G})),M=(0,n.memo)(x=>{const{asset:g,popupsName:S,from:t}=x,v=(0,r.wA)(),w=(0,r.d4)(a),{currentOrg:k,currentUser:W,createTemplatesData:K}=w||{},G=(0,i.c)({dispatch:v,...w,popupsName:S,type:"sticker",isFind:!0,isOrg:!1}),$=(0,n.useMemo)(()=>{const{isMktMember:D}=(0,I.s)(W,k);return D},[W,k]),P=()=>{if(ENV.IS_MO)MB.notice({text:(0,b.jsxs)("p",{children:["You can ",(0,b.jsx)("a",{style:{color:"#fff"},onClick:()=>P(),children:"upgrade"})," to use premium templates."]}),showClose:!0,duration:0,isReactDom:!0});else{const{checkoutPlace:D,payEntrance:B}=(0,f.FS)(p.b4),j={mode:"mat",payEntrance:B,checkoutArea:"proto",checkoutPlace:D,templateCid:g==null?void 0:g.id,templateName:g==null?void 0:g.name,templateCategory:p.b4,templateGroupName:g==null?void 0:g.group_cid};MB.global.popupHelper.chargeAsync(j)}},E=(0,n.useCallback)(D=>{if(D.stopPropagation(),!$){P();return}const{onMouseDown:B}=G;B&&B(D,g)},[$,g,G==null?void 0:G.onAssetImport]),H=(0,n.useCallback)(()=>{if(!(V!=null&&V.current)){if(!$){P();return}v({type:"entry:image-panel:create:image:by:click",payload:{asset:g,type:"sticker"}})}},[g,v]),O=(0,n.useCallback)(D=>{if(D.stopPropagation(),!$){P();return}const{onAssetImport:B}=G;B&&B(g)},[g,G==null?void 0:G.onAssetImport]),{isMoveAfterClick:V,isDragging:Q,handleMouseDown:N,handleClick:L,handleDoubleClick:U}=(0,l.A)({onMouseDown:E,onClick:H,onDoubleClick:O}),A=(0,n.useMemo)(()=>{var D;const B=(0,s.F)(K);if((B==null||(D=B.recent)==null?void 0:D.projectUpperType)==="picture"){var j;return(B==null||(j=B.recent)==null?void 0:j.projectUpperCid)===(g==null?void 0:g.asset_cid)}return Q},[K,g,Q]);if(g)return(0,b.jsx)(_.mh,{className:o()("sticker-item "+(t==="findPanel"?"builtin":"card"),{active:A}),onDoubleClick:U,onClick:L,onMouseDown:N,children:(0,b.jsx)("img",{src:g.thumb||g.image,alt:g.name,draggable:"false"})})})},10308:He=>{/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/He.exports=function(n){return n!=null&&(ee(n)||e(n)||!!n._isBuffer)};function ee(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function e(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&ee(n.slice(0,0))}},10429:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>x});var n=e(38502),r=e(53732),c=e.n(r),o=e(99402),I=e(32424),u=e(11032),d=e(95956),C=e(3862),h=e(2827),i=e(36050),f=e(85449),p=e(68863),s=e(4179),l=e(67787),_=e(41240);const b=l.Ay.li.withConfig({displayName:"styles__StyledIconItem",componentId:"sc-13dftct-0"})(["position:relative;display:flex;justify-content:center;align-items:center;width:100%;height:40px;font-size:16px;cursor:pointer;.library-icon-item{width:20px;height:20px;color:",";&.is_multi_color{width:24px;height:24px;}}",";.check{top:7px;left:7px;.ant-checkbox-wrapper:not(.ant-checkbox-wrapper-disabled):hover .ant-checkbox-inner{border-color:",";}.ant-checkbox-checked .ant-checkbox-inner,&.ant-checkbox-wrapper:not(.ant-checkbox-wrapper-disabled):hover .ant-checkbox-checked:not(.ant-checkbox-disabled) .ant-checkbox-inner{border-color:",";background:",";}}&:hover{background:",";.check{visibility:visible;}}&.checked{border:1px solid ",";outline:1px solid ",";.check{visibility:visible;}}&.is-click-active{opacity:0.5;}"],g=>g.theme.color_text_L2,_.GR,g=>g.theme.color_btn_primary_normal,g=>g.theme.color_btn_primary_normal,g=>g.theme.color_btn_primary_normal,g=>g.theme.color_btn_secondary_hover,g=>g.theme.color_btn_primary_normal,g=>g.theme.color_btn_primary_normal);var a=e(72214);const x=(0,n.memo)(g=>{const{index:S,icon:{id:t,cid:v,groupCid:w,view_box:k,path:W},icon:K,isMultiColorIcon:G,from:$,canChecked:P,checkedSet:E,createTemplatesData:H,style:O,onUpdateChecked:V,onSetCurrentNodeIcon:Q,setIcon:N,onMouseDown:L,onAddItem:U,onDoubleClick:A}=g,D=()=>{MB.notice({text:(0,a.jsxs)("p",{children:["You can ",(0,a.jsx)("a",{style:{color:"#fff"},onClick:()=>B(MB.currentOrg),children:"upgrade"})," to use premium templates."]}),showClose:!0,duration:0,isReactDom:!0})},B=()=>{if(ENV.IS_MO)D();else{const{checkoutPlace:ie,payEntrance:oe}=(0,u.FS)(C.C),he={mode:"mat",payEntrance:oe,checkoutArea:"proto",checkoutPlace:ie,templateCid:v||w,templateName:t,templateCategory:C.C};MB.global.popupHelper.chargeAsync(he)}},j=()=>{const{iconName:ie,iconDisplayName:oe}=(0,i.RU)(K);V&&V(K==null?void 0:K.id,{...K,isMultiColorIcon:G,iconName:ie,iconDisplayName:oe})},F=ie=>{if($==="icon-modal"||MB.global.experienceLoginModalHelper("isSave"))return;const{show:oe}=(0,u.K1)(G,MB.user);if(oe&&!ENV.IS_ON_PREMISES){if((0,f.jI)()){B();return}(0,h.z)()}if(Q){Q(K,G);return}const{iconName:he,iconDisplayName:ce}=(0,i.RU)(K);L&&L(ie,K,he,ce)},Y=ie=>{if(Z!=null&&Z.current)return;if($=="icon-modal"){var oe;if(ie.stopPropagation(),ie.preventDefault(),P&&((oe=E==null?void 0:E.size)!=null?oe:0)>0){j();return}}if(MB.global.experienceLoginModalHelper("isSave"))return;const{show:he}=(0,u.K1)(G,MB.user);if(he){if((0,f.jI)()){B();return}(0,h.z)()}if(Q){Q(K,G);return}const{iconName:ce,iconDisplayName:re}=(0,i.RU)(K);if(L){L({type:"click"},K,ce,re);return}U&&U(ie,K,ce,re,G)},X=ie=>{if($==="icon-modal"||MB.global.experienceLoginModalHelper("isSave"))return;const{show:oe}=(0,u.K1)(G,MB.user);if(oe){if((0,f.jI)()){B();return}(0,h.z)()}if(Q){Q(K,G);return}const{iconName:he,iconDisplayName:ce}=(0,i.RU)(K);A&&A({type:"dblclick"},K,he,ce)},z=ie=>{if(ie.stopPropagation(),!P)return;const oe=E==null?void 0:E.has(K==null?void 0:K.id);j(),!oe&&N&&N(K)},{isMoveAfterClick:Z,isDragging:J,handleMouseDown:te,handleClick:ge,handleDoubleClick:pe}=(0,s.A)({onMouseDown:F,onClick:Y,onDoubleClick:X}),Ce=(0,n.useMemo)(()=>{const ie=(0,p.F)(H);return J||(ie==null?void 0:ie._icon_id)===(K==null?void 0:K.id)},[H,K,J]),me=(0,n.useMemo)(()=>K.fill?{fill:K.fill}:K.stroke?{stroke:K.stroke}:{},[K]),be=(0,n.useMemo)(()=>{let ie=W;if(G){const oe=new DOMParser,he='<svg xmlns="http://www.w3.org/2000/svg">'+W+"</svg>",re=oe.parseFromString(he,"text/html").querySelector("svg"),fe={id:[],class:[]},Se=((K==null?void 0:K.cid)||(K==null?void 0:K.groupCid)||(0,I.xc)())+S;(0,d.rD)(re,Se,fe),(0,d.kP)(re,Se,fe),ie="<g>"+(re==null?void 0:re.innerHTML)+"</g>"}return ie},[G,K,S,W]);return(0,a.jsxs)(b,{className:c()("mt-exposure-observer","icon-item",{checked:E&&E.has(t)},{"is-click-active":Ce}),style:O,onMouseDown:te,onClick:ge,onDoubleClick:pe,"data-cid":t,"data-resources-cid":w,children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:c()("library-icon-item svg-icon",{fill:!G},{is_multi_color:G}),viewBox:k,dangerouslySetInnerHTML:{__html:be},...me}),P&&(0,a.jsx)(o.A,{className:"check "+((E==null?void 0:E.has(t))&&"is-show"),checked:E&&E.has(t),onChange:z,onClick:ie=>ie.stopPropagation()})]})})},10999:(He,ee,e)=>{"use strict";e.d(ee,{J:()=>r});var n=e(38502);const r=c=>{const[o,I]=(0,n.useState)(c);return(0,n.useLayoutEffect)(()=>{I(c)},[c,I]),{position:o,setPosition:I}}},11032:(He,ee,e)=>{"use strict";e.d(ee,{AG:()=>k,Cs:()=>b,FS:()=>_,K1:()=>g,Z1:()=>t,ZU:()=>w,Z_:()=>S,_4:()=>W,f9:()=>p,jA:()=>K,kn:()=>a,lU:()=>s,o3:()=>x,qT:()=>v});var n=e(79287),r=e.n(n),c=e(20089),o=e(48790),I=e(16335),u=e(61541),d=e(21770),C=e(18833);const h=G=>{const{next_billing_on:$}=G;return!dayjs().startOf("day").isBefore(dayjs($).subtract(1,"day"))},i=G=>{if(!G)return!1;const $=h(G),{paid:P}=G;return!P&&!$},f=G=>G&&["paid_org","solo"].indexOf(G==null?void 0:G.login_plan)!==-1,p=G=>{const{is_star:$}=G,{isPurchased:P,isVipTemplate:E,isMdVipTemplate:H,isMktVipTemplate:O}=(0,u.TX)(G);return{isStar:$,isPurchased:P,isVipTemplate:E,isMdVipTemplate:H,isMktVipTemplate:O}},s=async function(G,$,P){P===void 0&&(P=!0);try{G?await(0,I.$z)($):await(0,I.a3)($),P&&MB.notice({text:G?I18N.Resources.user_resource_panel.success_unstore:I18N.Resources.user_resource_panel.success_store})}catch(E){(0,C.$r)()}},l={combo_group:{payEntrance:"\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u7EC4\u4EF6_\u5347\u7EA7VIP",checkoutPlace:"workspace-v8_components_use_vip"},screen_list:{payEntrance:"\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u9875\u9762_\u5347\u7EA7VIP",checkoutPlace:"workspace-v8_pages_use_vip"},icon_group:{payEntrance:"\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u5F69\u8272\u56FE\u6807_\u5347\u7EA7VIP",checkoutPlace:"workspace-v8_color_icon_use_vip"},asset:{payEntrance:"\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u8D34\u7EB8_\u5347\u7EA7VIP",checkoutPlace:"workspace-v8_sticker_use_vip"}},_=G=>["combo_group","screen_list","icon_group","asset"].includes(G)?l[G]:{payEntrance:"\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u4F7F\u7528\u7D20\u6750_\u5347\u7EA7VIP",checkoutPlace:"workspace-v8_template_use_vip"},b=(G,$)=>{var P,E;if(!$||!G)return;const H=(P=G.getBoundingClientRect())==null?void 0:P.top,O=(E=$.getBoundingClientRect())==null?void 0:E.top;G.scrollTo({top:O-H,left:0,behavior:"smooth"})},a=G=>r()(G).isBefore(r()("2022-03-22 23:59:59")),M=G=>dayjs(G).isBefore(dayjs("2022-06-14 00:00:00")),x=(G,$)=>{const{isMdVipDiscountTemplate:P,isMktVipFreeTemplate:E,isMktVipDiscountTemplate:H}=(0,u.TX)(G),{isBeforeMdMember:O,isMktMember:V}=(0,d.s)($,MB.currentOrg),{canDirectUse:Q}=(0,d.F)(G,$,MB.currentOrg);return{show:!Q,isMktMember:V,hasDiscount:O&&(P||E||H)}},g=(G,$)=>{const{isMktMember:P}=(0,d.s)($,MB.currentOrg);return{show:G&&!P}},S=(G,$,P)=>G.map(E=>{const H=E.market_templates.map(O=>O.cid===$?P(O):O);return{...E,market_templates:H}}),t=(G,$,P)=>{const E=new Map;for(const[H,O]of G){const V=S(O,$,P);E.set(H,V)}return E},v=G=>{let{url:$,tab:P,width:E,height:H,tags:O}=G;return{asset_cid:"findPicture_"+$,created_at:new Date().getTime(),group_cid:"findPicture_"+P,height:H,width:E,name:I18N.Resources.image_example,size:999,image:"/res-img/org/"+$,thumb:"/res-img/thmb/"+$,timestamp:0,tags:"",img_tag:O}},w=G=>{let{url:$,tab:P,name:E,thumb_url:H,res_id:O}=G;return{id:O||-1,asset_cid:"findSticker_"+$,created_at:new Date().getTime(),group_cid:"findSticker_"+P,height:180,width:320,name:E,size:999,image:$,thumb:H||$,timestamp:0,tags:"",img_tag:[]}},k=()=>{const G=MB.getCurrentProjectMeta().cid;return sdkStore.findAllTypeUnder("B@ref-muban","rResBunch").map($=>({...$,flpakKey:G})).filter($=>{let{hotAttr:{bunch:P}}=$;return P===c.x.RbPage}).map($=>{let{hotAttr:P,...E}=$;return{...E,...P,cid:E.key,width:P.w,height:P.y,hotAttr:P}}).reverse()},W=async G=>{const $=await Promise.all(G.map(async H=>{const O=await(0,I.Yk)(H),{marketTemplateItemListMap:V,marketTemplateListDataMap:Q}=await(0,o.Ci)(O);return{itemListMap:V,dataMap:Q}}));let P=new Map,E=new Map;return $.forEach(H=>{let{itemListMap:O,dataMap:V}=H;P=new Map([...P,...O]),E=new Map([...E,...V])}),{marketTemplateItemListMap:P,marketTemplateListDataMap:E}},K=async(G,$,P)=>{const E=$.map(async H=>{const O=P.get(H),V=await(0,I.rd)(O);return G.set(H,V),V});return await Promise.all(E),{mtSdkStoreListMap:G}}},11135:(He,ee,e)=>{"use strict";e.d(ee,{W:()=>o});var n=e(20089),r=e(5209);const c={[n.x.WFlowProcess]:"\u6D41\u7A0B",[n.x.WFlowDecision]:"\u5224\u65AD",[n.x.WFlowStartEnd]:"\u5F00\u59CB/\u7ED3\u675F",[n.x.WFlowDoc]:"\u6587\u6863",[n.x.WFlowData]:"\u6570\u636E",[n.x.WFlowSubProcess]:"\u5B50\u6D41\u7A0B",[n.x.WFlowOuterData]:"\u5916\u90E8\u6570\u636E",[n.x.WFlowInnerData]:"\u5185\u90E8\u5B58\u50A8",[n.x.WFlowQueueData]:"\u961F\u5217\u6570\u636E",[n.x.WFlowDatabase1]:"\u6570\u636E\u5E93\uFF08\u6A2A\uFF09",[n.x.WFlowDatabase2]:"\u6570\u636E\u5E93\uFF08\u7AD6\uFF09",[n.x.WFlowHumanInput]:"\u4EBA\u5DE5\u8F93\u5165",[n.x.WFlowCard]:"\u5361\u7247",[n.x.WFlowStrip]:"\u6761\u5E26",[n.x.WFlowShow]:"\u5C55\u793A",[n.x.WFlowHumanOp]:"\u4EBA\u5DE5\u64CD\u4F5C",[n.x.WFlowPrepare]:"\u9884\u5907",[n.x.WFlowLoop]:"\u5FAA\u73AF\u9650\u503C",[n.x.WFlowRefInPage]:"\u9875\u9762\u5185\u5F15\u7528",[n.x.WFlowOr]:"\u6216\u8005",[n.x.WFlowSum]:"\u6C42\u548C",[n.x.WFlowRefCrossPage]:"\u8DE8\u9875\u5F15\u7528",[n.x.WFlowSort]:"\u6392\u5E8F",[n.x.WFlowUnion]:"\u5408\u5E76",[n.x.WFlowConcurrent]:"\u5E76\u884C\u6A21\u5F0F",[n.x.WFlowCommentRight]:"\u6CE8\u91CA\uFF08\u5DE6\uFF09",[n.x.WFlowCommentLeft]:"\u6CE8\u91CA\uFF08\u53F3\uFF09",[n.x.WFlowNoteRight]:"\u5907\u6CE8\uFF08\u5DE6\uFF09",[n.x.WFlowNoteLeft]:"\u5907\u6CE8\uFF08\u53F3\uFF09",[n.x.WSwimlane]:"\u5782\u76F4\u6CF3\u9053",[n.x.WSwimlaneV]:"\u6C34\u5E73\u6CF3\u9053"},o=I=>{let{widget_source:u,widget_type:d}=I;(0,r.kH)("flowchart_V8",{widget_type:c[d],widget_source:u})}},11311:(He,ee,e)=>{"use strict";e.d(ee,{B:()=>n});const n=(r,c)=>{let o=0;const I="md-flpak-worker",u=()=>Date.now()+"-"+o++,d=new Map,C=async h=>{const{data:i}=h;if(r instanceof Worker&&(i==null?void 0:i.source)!==I)return;const{msgId:f,name:p,payload:s=[]}=i;if(d.has(f)){var l;(l=d.get(f))==null||l(s),d.delete(f);return}if(p){let b=null;try{var _;b=await(c==null||(_=c[p])==null?void 0:_.call(c,...s))}catch(a){console.error("worker remote "+p+" error"),console.error(a)}postMessage({source:I,msgId:f,payload:b})}};return r.addEventListener("message",C),{remote:function(h){const i=u();for(var f=arguments.length,p=new Array(f>1?f-1:0),s=1;s<f;s++)p[s-1]=arguments[s];return r.postMessage({source:I,msgId:i,name:h,payload:p}),new Promise(l=>{d.set(i,l)})},destory:()=>{r.removeEventListener("message",C),r instanceof Worker&&r.terminate()}}}},11582:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>f});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),I=e(72140),u=e(69874),d=e(89240),C=e(67787);const h=C.Ay.div.withConfig({displayName:"styles__StyledCollapsePanel",componentId:"sc-1pysor8-0"})(["width:inherit;&::-webkit-scrollbar{width:4px;height:4px;}header{height:32px;padding-left:","px;padding-right:10px;display:flex;align-items:center;cursor:pointer;.title{flex:1;height:20px;line-height:18px;font-size:12px;font-weight:500;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.arrow-16{margin-right:6px;path{stroke:",";}}.arrow-icon{flex-shrink:0;text-align:center;color:",";transition:transform 0.2s ease-in-out;width:6px;height:8px;margin-right:10px;}.expanded-icon{width:14px;height:14px;margin-right:4px;.main{fill:",";}.secondary{fill:",";}}&:hover{background:",";}}&.expanded > header .arrow-icon{transform:rotate(90deg);}&:not(.expanded) > header .arrow-16{transform:rotate(-90deg);}"],p=>p.level*12,p=>p.theme.color_text_L1,p=>p.theme.color_text_L3,p=>p.theme.sce_svg_arrow_icon_color,p=>p.theme.color_text_L3,p=>p.theme.color_text_disabled01,p=>p.theme.color_btn_secondary_hover);var i=e(72214);class f extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleClick",()=>{const{id:s,onToggle:l}=this.props;l(s)})}render(){const{id:s,title:l,className:_,expanded:b,isEditing:a,children:M,onConfirm:x,renderHeader:g,renderContent:S,renderIcon:t,width:v,isSearch:w,secondary:k,level:W,onSetItemRef:K,...G}=this.props;return(0,i.jsxs)(h,{"data-cid":s,"data-key":l,type:"collapse-panel",className:o()("collapse-panel",_,{expanded:b},{secondary:k}),isSearch:w,level:W!=null?W:1,...G,ref:K,children:[g?g():(0,i.jsxs)("header",{className:"header",onClick:this.handleClick,style:{width:v},"data-key":s,children:[(0,i.jsx)(d.A,{className:"arrow-16",size:16}),t&&t(b),(0,i.jsx)(u.A,{value:l,className:"title",isEditing:a,onConfirm:x},a+l),!a&&S&&S(s)]}),(0,i.jsx)(I.A,{collapse:!b,children:M})]})}}(0,n.A)(f,"defaultProps",{isEditing:!1,level:1})},11891:(He,ee,e)=>{"use strict";e.d(ee,{Z:()=>c});var n=e(67787),r=e(72214);const c=()=>(0,r.jsxs)(o,{className:"search-empty",children:[(0,r.jsx)("img",{src:"/mb-proto2/images/font/font_empty.png"}),(0,r.jsx)("span",{children:"\u6CA1\u6709\u5339\u914D\u7684\u7ED3\u679C"})]}),o=n.Ay.div.withConfig({displayName:"Empty__StyledEmptySearchResult",componentId:"sc-1nwr5fa-0"})(["display:flex;justify-content:center;align-items:center;flex-direction:column;height:100%;width:100%;img{width:117px;margin-bottom:20px;}span{color:",";}"],I=>I.theme.color_text_L2)},12566:(He,ee,e)=>{"use strict";e.d(ee,{k:()=>we});var n=e(43678),r=e(38502),c=e(18381),o=e(15207),I=e(88463),u=e(17307),d=e(50521),C=e(59736),h=e(15515),i=e(67588),f=e(60589),p=e(4235),s=e(8614),l=e(70933),_=e(77698),b=e(2099),a=e(53732),M=e.n(a),x=e(18821),g=e.n(x),S=e(41589),t=e.n(S),v=e(67709),w=e.n(v),k=e(81973),W=e(21066),K=e(19376),G=e(62587),$=e(31569),P=e(93257),E=e(46720),H=e(57514),O=e(83672),V=e(64320),Q=e(70812),N=e(67787),L=e(51090);const U=N.Ay.div.withConfig({displayName:"styled__StyledList",componentId:"sc-11m2nhp-0"})([".group-item{display:flex;align-items:center;height:32px;color:",";padding-left:16px;width:100%;}.lib-style-item{display:flex;align-items:center;height:32px;padding:0 10px 0 12px;color:",";cursor:pointer;position:relative;justify-content:space-between;&:hover,&.is-active{background:",";}&:hover{.edit-icon{display:flex;}}.thumbnail-wrapper:not(.appear-ref-view-item):not(.has-opacity){border-radius:16px;margin:8px 14px 8px 6px;flex:0 0 16px;.thumbnail,&::before{border-radius:16px;}}.thumbnail-wrapper.has-opacity{margin:8px 14px 8px 6px;}.thumbnail-wrapper.appear-ref-view-item.rect.list,.thumbnail-wrapper.appear-ref-view-item{margin:6px 16px 6px 2px;}.thumbnail-wrapper.appear-ref-view-item,.thumbnail-wrapper.appear-ref-view-item.has-opacity{border-radius:2px;}.content-wrap{flex:1;display:flex;white-space:nowrap;overflow:hidden;span.name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.desc{color:",";margin-left:10px;}}.edit-icon{width:24px;height:24px;display:none;border-radius:4px;flex:0 0 24px;margin-left:10px;color:",";&:hover{background:",";}.icon:hover{background:none;}}&.appear{padding-left:16px;}}&.grid{padding:0px 14px;.group-list{display:flex;flex-wrap:wrap;.group-list-content{width:100%;display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(auto-fill,28px);margin-top:4px;}.group-path-name-content{padding-left:0;}&:not(:first-child){margin-top:8px;}}.lib-style-item{padding:0;border-radius:28px;border:1px solid transparent;margin-right:8px;&.color{width:28px;height:28px;box-sizing:content-box;border:2px solid transparent;position:relative;&:hover,&.is-active{background:none;border:2px solid ",";}.has-border-transparent{position:absolute;left:-1px;}}&.appear{height:40px;}&:nth-child(6n){margin-right:0;}.thumbnail-wrapper:not(.appear-ref-view-item):not(.has-opacity){width:100%;height:100%;margin:0;flex:0 0 100%;&:before{width:100%;height:100%;border-radius:100%;}}.thumbnail-wrapper.has-opacity,.thumbnail-wrapper.appear-ref-view-item{margin:0;}}}"],_e=>_e.theme.color_text_L1,_e=>_e.theme.color_text_L1,_e=>_e.theme.color_btn_secondary_hover,_e=>_e.theme.color_text_L3,_e=>_e.theme.color_text_L1,_e=>_e.theme.color_bg_border_01,_e=>_e.theme.color_btn_primary_normal),A=(0,N.AH)(["display:flex;align-items:center;color:",";cursor:pointer;&:hover,&.is-active{background:",";}.muban-img-box{width:40px;height:40px;border-radius:6px;border:1px solid ",";background:",";overflow:hidden;}img{width:100%;height:100%;-webkit-user-drag:none;object-fit:contain;}"],_e=>_e.theme.color_text_L1,_e=>_e.theme.color_btn_secondary_hover,_e=>_e.theme.color_bg_border_01,_e=>_e.theme.color_btn_secondary_hover),D=N.Ay.ul.withConfig({displayName:"styled__StyledMubanItemList",componentId:"sc-11m2nhp-1"})(["&.muban-list{margin:0 10px;li{",";padding:6px;height:52px;border-radius:8px;.name{margin-left:12px;",";}.muban-img-box{padding:4px;}}}&.grid.muban-list{display:flex;flex-wrap:wrap;margin:12px 16px 0 16px;li.muban-item{width:98px;height:98px;padding:0px;margin-right:12px;margin-bottom:12px;&:nth-child(2n){margin-right:0;}.muban-img-box{padding:8px;width:100%;height:100%;}}}&.list.muban-list{li{.muban-img-box{flex:0 0 40px;}}}"],A,L.L9),B=N.Ay.ul.withConfig({displayName:"styled__StyledMubanFolderItemList",componentId:"sc-11m2nhp-2"})(["&.folder-list{.divider{margin:8px;width:auto;}li{",";justify-content:space-between;padding:5px 10px 5px 16px;.left-content{display:flex;align-items:center;width:calc(100% - 24px);.name{margin-left:8px;",";width:calc(100% - 32px);}}.expand-icon{transform:rotate(-90deg);}.muban-img-box{padding:4px;}}&.grid{li{.left-content{.name{width:calc(100% - 48px);}}}}}"],A,L.L9),j=(0,N.Ay)(W.Ay).withConfig({displayName:"styled__StyledMenuContent",componentId:"sc-11m2nhp-3"})(["z-index:201;ul{min-width:64px;}",";"],L.ZJ),F=N.Ay.div.withConfig({displayName:"styled__StyledPathNameContent",componentId:"sc-11m2nhp-4"})(["display:flex;align-items:center;height:32px;color:",";padding-left:16px;width:100%;span.path-name{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&.order-2,&.order-3{max-width:",";}}"],_e=>_e.theme.color_text_L1,_e=>_e.spanMaxWidth);var Y=e(72214);const X={isOpen:!1,position:{top:0,left:0}},z={fill:{},title:"",desc:"",key:""},Z=_e=>{let{type:Te,libKey:Ye,libData:Fe,mode:Ve,onSetRefStyle:rt,onColorChange:Ue,onClose:et,onGetNewEditModalPostion:lt=()=>({left:0,top:0})}=_e;const[Je,Xe]=(0,r.useState)(X),[st,nt]=(0,r.useState)(z),tt=(0,r.useRef)(null),ct=(0,c.d4)(l.th),ht=(0,c.d4)(l.Hi),It=(0,c.d4)(l.Xw),it=(0,c.d4)(p.p$),{position:Tt}=(0,c.d4)(f.FK),Lt=(0,c.d4)(f.I5),Rt=(0,c.d4)(f.md),Wt=(0,c.d4)(k.Dw),Kt=(0,c.d4)(k.jj),Gt=(0,c.wA)(),St=(0,r.useMemo)(()=>{if(Te==="color"){const bt=(0,b.OP)({selections:it,attr:ct,supAttr:ht,styleType:"color"});return bt==null?void 0:bt.key}if(Te==="appear")return Wt==null?void 0:Wt.key;if(Te==="text")return Kt==null?void 0:Kt.key},[Wt==null?void 0:Wt.key,Kt==null?void 0:Kt.key,it,ht,Te,Fe]);(0,r.useEffect)(()=>{St&&(0,b.qP)(St)},[St]);const Hn=bt=>{var xn;return(bt==null||(xn=bt.hotAttr)==null?void 0:xn.styleType)==="color"||(bt==null?void 0:bt.styleType)==="color"?!(Lt.isOpen||Rt.isOpen):Ye==="local"},uo=bt=>{if(nt(bt),Te==="color"&&Gt({type:"modal:update:state",payload:{libEditColorModal:{isOpen:!0,position:It?{...It,left:It.left-240}:lt(),type:"edit",attr:ct,supAttr:ht,color:bt==null?void 0:bt.fill,currentKey:bt==null?void 0:bt.key,title:bt==null?void 0:bt.title,desc:bt==null?void 0:bt.desc,onSetRefStyle:rt,onColorChange:Ue}}}),Te==="appear"){const xn={borderRadius:bt==null?void 0:bt.borderRadius,borderRadiusIsVisible:bt==null?void 0:bt.borderRadiusIsVisible,borderVisibility:bt==null?void 0:bt.borderVisibility,border:bt==null?void 0:bt.border,fill:bt==null?void 0:bt.fill,shadow:bt==null?void 0:bt.shadow,refStyles:bt==null?void 0:bt.refStyles};Gt({type:"modal:update:state",payload:{libEditAppearModal:{isOpen:!0,position:Tt?{...Tt,left:Tt.left-240}:lt(),type:"edit",refStyles:bt==null?void 0:bt.refStyles,currentKey:bt==null?void 0:bt.key,title:bt==null?void 0:bt.title,desc:bt==null?void 0:bt.desc,attrs:xn}}})}if(Te==="text"){const xn=g()(bt,V.F$);Gt({type:"modal:update:state",payload:{libEditTextModal:{isOpen:!0,position:Tt?{...Tt,left:Tt.left-240}:lt(),type:"edit",currentKey:bt==null?void 0:bt.key,refStyles:bt==null?void 0:bt.refStyles,title:bt==null?void 0:bt.title,desc:bt==null?void 0:bt.desc,attrs:xn}}})}},Po=(bt,xn)=>{bt.stopPropagation(),nt(xn),uo(xn),bo(bt)},Yn=(bt,xn)=>{!Hn(xn)||Ye!=="local"||(Xe({isOpen:!0,position:{top:bt.clientY,left:bt.clientX}}),nt(xn))},bo=bt=>{bt.preventDefault(),bt.stopPropagation(),Xe(X)},Ke=()=>{var bt;if((st==null?void 0:st.styleType)==="color"){const xn=(0,b.OP)({selections:it,attr:ct,supAttr:ht,styleType:"color"});(xn==null?void 0:xn.key)===st.key?Gt({type:"entry:libStyle:del:widget:refStyles",payload:{selections:it,key:ct,supAttr:ht,type:"color",refKey:st.key}}):Gt({type:"entry:libStyle:del:widget:colorRefStyles:by:refKey",payload:{refKey:st.key,selections:it}})}(st==null?void 0:st.styleType)==="appear"&&(Wt==null?void 0:Wt.key)===st.key&&Gt({type:"settings:update:currentAppearRefStyle",payload:null}),(st==null?void 0:st.styleType)==="text"&&(Kt==null?void 0:Kt.key)===st.key&&Gt({type:"settings:update:currentTextRefStyle",payload:null}),st.key&&sdkStore.deleteHotItem(st.key),Gt({type:"style-lib:set:attr",payload:{cacheLocalLibTag:Math.random()}}),Q.U4.protoStyleTrack((bt=MB)==null||(bt=bt.user)==null?void 0:bt.id,"\u5220\u9664",st.styleType)},ut=()=>Gt({type:"modal:reset:popup:state",payload:{modalName:"libPanelModal"}}),zt=(bt,xn)=>{var kn;Ye!=="local"&&sdkStore.updateHotItem({...bt,hotAttr:{...bt==null?void 0:bt.hotAttr,libKey:Ye},sup:"B@style"});const gn=bt.hotAttr.styleType;if(gn==="color"){var Zn,Pn;const io=(Zn=it==null?void 0:it.map(mo=>sdkStore.getHotItem(mo)))!=null?Zn:[],to=(0,$.i)(io,"fill");if(Ue&&Ue({value:{...xn,fillIsVisible:(Pn=to==null?void 0:to.fillIsVisible)!=null?Pn:!0},needClearRef:!1}),Lt.isOpen){var _n;const Io={...(_n=Lt==null?void 0:Lt.refStyles)!=null?_n:{color:{}}},co=ht==null?void 0:ht.split("-");(0,b.$b)({supAttrArr:co,color:Io.color,key:ct,val:bt.key}),Gt({type:"modal:update:state",payload:{libEditAppearModal:{...Lt,refStyles:Io}}})}else if(Rt.isOpen){var Wn,Ln;const mo=(Wn=Rt==null?void 0:Rt.refStyles)!=null?Wn:{color:{}},Io={...mo},co=ht==null?void 0:ht.split("-"),On=(Ln=t()(mo==null?void 0:mo.color))!=null?Ln:{};Io.color=On,(0,b.$b)({supAttrArr:co,color:On,key:ct,val:bt.key}),Gt({type:"modal:update:state",payload:{libEditTextModal:{...Rt,refStyles:Io}}})}else Gt({type:"entry:libStyle:update:widget:refStyles",payload:{supAttr:ht,selections:it,type:"color",key:ct,refKey:bt==null?void 0:bt.key}});rt&&rt(bt)}gn==="appear"&&(Gt({type:"entry:libStyle:use:appearRef",payload:{currentRefStyle:bt,onSetRefStyle:rt}}),ut()),gn==="text"&&(Gt({type:"entry:libStyle:use:textRef",payload:{currentRefStyle:bt,onSetRefStyle:rt}}),ut()),et&&et(),Q.U4.protoStyleTrack((kn=MB)==null||(kn=kn.user)==null?void 0:kn.id,"\u7ED1\u5B9A",gn)};return(0,Y.jsxs)(U,{className:"styles-content "+Ve,children:[Fe.map(bt=>{var xn;if(!(bt!=null&&bt.length))return null;const kn=(xn=bt[0])==null?void 0:xn.groupPathName;return(0,Y.jsxs)("div",{className:"group-list",children:[kn&&(0,Y.jsx)(J,{pathName:kn}),(0,Y.jsx)("div",{className:"group-list-content",children:bt==null?void 0:bt.map((gn,Zn)=>{var Pn;if(!gn)return null;const _n=gn.hotAttr.styleType==="color"?{fill:"solid",fillIsVisible:!0,solidColor:gn.hotAttr.fill}:(Pn=gn.hotAttr)==null?void 0:Pn.fill,Wn=_n&&(0,G.$8)(_n,{w:200,h:100}),Ln=Wn&&(0,G.TQ)(Wn),io={...gn.hotAttr,title:gn.hotAttr.name,desc:gn.hotAttr.desc,key:gn.key,fill:_n};return(0,Y.jsx)(P.A,{content:(0,E.M)(gn.hotAttr,Ln),direction:"down",delay:500,children:(0,Y.jsxs)("div",{"data-key":gn.key,className:M()("lib-style-item",gn.hotAttr.styleType,{"is-active":St===gn.key}),onContextMenu:to=>Yn(to,io),onClick:()=>zt(gn,_n),children:[gn.hotAttr.styleType==="color"&&(0,Y.jsx)(K.I,{ref:tt,color:Wn,attr:"local-color",index:Zn,solidRenderType:"circle",size:Ve==="grid"?28:16}),gn.hotAttr.styleType==="appear"&&(0,Y.jsx)(H.U,{appearStyle:gn,mode:Ve,index:w()(gn.key)}),gn.hotAttr.styleType==="text"&&(0,Y.jsx)(O.c,{textStyle:gn}),Ve==="list"&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)("div",{className:"content-wrap",children:[(0,Y.jsx)("span",{className:"name",children:gn.hotAttr.name}),gn.hotAttr.styleType==="text"&&(0,Y.jsxs)("span",{className:"desc",children:[gn.hotAttr.fontSize,"/",gn.hotAttr.lineHeight]})]}),Ye==="local"&&Hn(gn)&&(0,Y.jsx)(P.A,{content:I18N.SettingPanel.design.edit,direction:"down",delay:500,children:(0,Y.jsx)("div",{className:"edit-icon",children:(0,Y.jsx)(u.C,{name:"common/edit@24",size:24,onClick:to=>Po(to,io)})})})]})]})},gn.key)})})]},bt[0].sup)}),Je.isOpen&&(0,Y.jsxs)(j,{position:Je.position,onClose:bo,className:"lib-panel-actions-menu",children:[(0,Y.jsx)(W.Dr,{text:"\u7F16\u8F91",onClick:()=>uo(st)}),(0,Y.jsx)(W.Dr,{text:"\u5220\u9664",onClick:Ke})]})]})},J=(0,r.memo)(_e=>{let{pathName:Te}=_e;const Ye=(0,r.useMemo)(()=>Te.split("/"),[Te]),Fe=(0,r.useMemo)(()=>{const Ve=Ye==null?void 0:Ye.length;return Ve===2?"82px":Ve===3?"36px":"unset"},[Ye]);return(0,Y.jsx)(F,{className:"group-path-name-content",spanMaxWidth:Fe,children:Ye.map((Ve,rt)=>(0,Y.jsx)("span",{className:M()("path-name","order-"+(rt+1)),children:rt!==0?"/"+Ve:Ve},rt))})});var te=e(33573),ge=e(88194),pe=e(15400),Ce=e(60651),me=e(8926);const be=_e=>{let{lib:Te,libData:Ye,mode:Fe}=_e;const Ve=(0,c.d4)(l.YT),rt=(0,c.wA)(),Ue=(0,r.useMemo)(()=>Te.value==="local"?Ve.cid:Te.value,[Ve.cid,Te.value]),et=lt=>rt({type:"style-lib:set:currentMubanFolderData",payload:{...lt,projectMetaCid:Ue}});return(0,Y.jsxs)("div",{className:Fe,children:[(0,Y.jsx)(ie,{mubanList:Ye.filter(lt=>!lt.hotAttr.asFolder),projectMetaCid:Ue,mode:Fe}),(0,Y.jsx)(oe,{folderList:Ye.filter(lt=>lt.hotAttr.asFolder),projectMetaCid:Ue,mode:Fe,onGotoFolderDetail:et})]})},ie=_e=>{let{projectMetaCid:Te,mubanList:Ye,mode:Fe}=_e;const[Ve,rt]=(0,r.useState)(""),Ue=(0,c.d4)(p.p$),et=(0,c.d4)(s.nC),lt=(0,c.d4)(Ce.bt),{onSuccessCallBack:Je}=(0,c.d4)(f.FK),Xe=(0,c.d4)(f.Yo),st=(0,c.wA)();(0,r.useEffect)(()=>{if(Ue.length>0){var tt;const ct=sdkStore.getHotItem(Ue[0]),ht=ct==null||(tt=ct.hotAttr)==null?void 0:tt.refRBPageKey;if(rt(ht),ht){const It=document.querySelector('#lib-panel-modal .muban-list .muban-item[data-key="'+ht+'"]');if(It){const it=document.querySelector("#lib-panel-modal .lib-panel-content");it&&(it.scrollTop=It==null?void 0:It.offsetTop)}}}},[]);const nt=async tt=>{let ct=sdkStore,ht=tt;if(sdkStore.isActiveKey(tt.key)){const Lt=sdkStore.getHotItem(tt.key);if(lt===tt.key||sdkStore.parseSubtree(sdkStore.saveSubtree(Lt.sub)).contentFlatTree.get("B@ref-muban").sub.includes(lt))return MB.notice({text:I18N.SettingPanel.design.master_cannot_nesting,type:"error"}),!0;ht=sdkStore.getHotItem(tt.key)}else{var It;ct=(It=et.get(Te))!=null?It:sdkStore,ht=await(0,me.fZ)({libSdkStore:ct,data:tt,projectMetaCid:Te})}const it=Ue.map(Lt=>{var Rt,Wt,Kt;const Gt=sdkStore.getHotItem(Lt);if(Gt)return{...Gt,hotAttr:{...Gt==null?void 0:Gt.hotAttr,refRBPageKey:ht.key,refContentKey:(Rt=ht)==null||(Rt=Rt.hotAttr)==null?void 0:Rt.defaultCanvasKey,w:tt.hotAttr.w,h:tt.hotAttr.h,x:(Gt==null?void 0:Gt.hotAttr.x)-(Gt==null?void 0:Gt.hotAttr.w)/2+tt.hotAttr.w/2,y:(Gt==null?void 0:Gt.hotAttr.y)-(Gt==null?void 0:Gt.hotAttr.h)/2+tt.hotAttr.h/2,name:(Wt=ht)==null||(Wt=Wt.hotAttr)==null?void 0:Wt.name,scroll:(Kt=ht)==null||(Kt=Kt.hotAttr)==null?void 0:Kt.scroll}}}).filter(Lt=>Lt);if(st({type:"entry:widget:change",payload:{flatChgList:it,shouldReBuildTree:!0}}),Je(ht),rt(ht.key),Xe.isOpen&&Ue.length===1){var Tt;st({type:"modal:update:state",payload:{previewModal:{...Xe,activePageKey:ht.key,activeCanvasKey:"/"+Ue[0]+"/"+((Tt=ht)==null||(Tt=Tt.hotAttr)==null?void 0:Tt.defaultCanvasKey),basketKey:Ue[0],width:ht.hotAttr.w,height:ht.hotAttr.h}}})}};return(0,Y.jsx)(D,{className:"muban-list "+Fe,children:Ye==null?void 0:Ye.map(tt=>(0,Y.jsxs)("li",{"data-key":tt.key,className:M()("muban-item",{"is-active":Ve===tt.key}),onClick:()=>nt(tt),children:[(0,Y.jsx)("div",{className:"muban-img-box",children:(0,Y.jsx)(te.Ay,{projectMetaCid:Te,snapshotKey:tt.hotAttr.defaultCanvasKey,isVisible:!0,mode:ge.rY.PNG_CANVAS})}),Fe==="list"&&(0,Y.jsx)("span",{className:"name",children:tt.hotAttr.name})]},tt.key))})},oe=_e=>{let{folderList:Te,projectMetaCid:Ye,mode:Fe,onGotoFolderDetail:Ve}=_e;return(0,Y.jsxs)(B,{className:M()("folder-list",Fe),children:[Te.length>0&&(0,Y.jsx)(pe.cG,{className:"divider"}),Te==null?void 0:Te.map(rt=>{const Ue=rt==null?void 0:rt.children[0];return(0,Y.jsxs)("li",{className:"folder",onClick:()=>Ve(rt),children:[(0,Y.jsxs)("div",{className:"left-content",children:[Fe==="list"?(0,Y.jsx)(u.C,{name:"left_panel/screen/folder",className:"folder-icon",size:24}):(0,Y.jsx)("div",{className:"muban-img-box",children:(0,Y.jsx)(te.Ay,{projectMetaCid:Ye,snapshotKey:Ue==null?void 0:Ue.hotAttr.defaultCanvasKey,isVisible:!0,mode:ge.rY.PNG_CANVAS})}),(0,Y.jsx)("span",{className:"name",children:rt.hotAttr.name})]}),(0,Y.jsx)(u.C,{name:"common/expand/plus",className:"expand-icon",size:24})]},rt.key)})]})};var he=e(79150);const ce=_e=>{let{mode:Te}=_e;const Ye=(0,c.d4)(s.dN),Fe=(0,c.d4)(p.p$),Ve=(0,c.wA)(),rt=()=>{Ve({type:"style-lib:set:currentMubanFolderData",payload:null})},Ue=(0,r.useMemo)(()=>{if(Fe.length>0){var et;const lt=sdkStore.getHotItem(Fe[0]);return lt==null||(et=lt.hotAttr)==null?void 0:et.refRBPageKey}},[Fe]);if(Ye)return(0,Y.jsxs)(re,{children:[(0,Y.jsxs)("div",{className:"header-nav",children:[(0,Y.jsx)(he.A,{name:"design/arrow/right",className:"back-icon",onClick:rt}),(0,Y.jsx)("span",{className:"folder-name",children:Ye.hotAttr.name})]}),(0,Y.jsx)(ie,{mode:Te,mubanList:Ye.children,projectMetaCid:Ye==null?void 0:Ye.projectMetaCid,activeMubanRefKey:Ue})]})},re=N.Ay.div.withConfig({displayName:"MubanFolderDetail__StyledMubanFolderDetail",componentId:"sc-1oay1e4-0"})(["position:relative;min-height:100%;.header-nav{height:32px;color:",";display:flex;align-items:center;margin:8px 12px;font-weight:500;.back-icon{transform:rotate(180deg);margin-right:8px;.svg-icon{width:6px;height:10px;}}}"],_e=>_e.theme.color_text_L1);var fe=e(11891);const Se=N.Ay.div.withConfig({displayName:"styles__StyledLibPanelConent",componentId:"sc-t1yrku-0"})(["width:100%;height:312px;overflow:auto;scrollbar-width:none;&::-webkit-scrollbar{display:none;}.bar-vertical{top:113px;height:calc(100% - 113px);}ul{text-align:justify;li{list-style:none;}}section{position:relative;span.title{padding:0 16px;display:flex;height:32px;align-items:center;margin-top:8px;color:",";font-weight:500;",";}}"],_e=>_e.theme.color_text_L1,L.L9),Me=N.Ay.div.withConfig({displayName:"styles__StyledEmptyContent",componentId:"sc-t1yrku-1"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;img{width:88px;height:88px;}.empty-name{color:",";margin:16px 0 24px;}.create-btn{color:",";display:flex;height:28px;padding:6px 12px;justify-content:center;align-items:center;border-radius:6px;border:1px solid ",";background:",";&:hover{background:",";}&:active{background:",";}}"],_e=>_e.theme.color_text_L2,_e=>_e.theme.color_text_L1,_e=>_e.theme.color_bg_border_02,_e=>_e.theme.color_bg_white,_e=>_e.theme.color_btn_secondary_hover,_e=>_e.theme.color_btn_secondary_active),Ie=_e=>{let{type:Te,lib:Ye,libData:Fe,mode:Ve,onSetRefStyle:rt,onColorChange:Ue,onClose:et,onGetNewEditModalPostion:lt}=_e;return(0,Y.jsxs)("section",{children:[(0,Y.jsx)("span",{className:"title",children:Ye.text}),Te==="muban"?(0,Y.jsx)(be,{lib:Ye,libData:Fe,mode:Ve}):(0,Y.jsx)(Z,{type:Te,libKey:Ye.value,libData:Fe,mode:Ve,onSetRefStyle:rt,onColorChange:Ue,onClose:et,onGetNewEditModalPostion:lt})]},Ye.value)},de=_e=>{let{type:Te,onGetNewEditModalPostion:Ye=()=>({left:0,top:0})}=_e;const Fe=(0,c.d4)(i.O4),Ve=(0,c.d4)(f.FK),rt=(0,c.d4)(p.p$),Ue=(0,c.d4)(l.th),et=(0,c.d4)(l.Hg),lt=(0,c.d4)(l.Xw),Je=(0,c.d4)(l.Zn),Xe=(0,c.d4)(f.I5),st=(0,c.d4)(f.md),nt=(0,c.wA)(),tt=(0,r.useMemo)(()=>Te==="color"?!(Xe.isOpen||st.isOpen):Te!=="muban",[Xe.isOpen,st.isOpen,Te]),ct=()=>{if(Te==="color"){const ht={...lt,left:lt.left-240};nt({type:"entry:libStyle:open:color:modal",payload:{color:Je,position:ht,attr:Ue,attrPanel:et}});return}Te==="appear"&&nt({type:"modal:update:state",payload:{libEditAppearModal:{isOpen:!0,position:Ve!=null&&Ve.position?{...Ve.position,left:Ve.position.left-240}:Ye(),type:"create",...(0,b.xe)(rt)}}}),Te==="text"&&nt({type:"modal:update:state",payload:{libEditTextModal:{isOpen:!0,position:Ve!=null&&Ve.position?{...Ve.position,left:Ve.position.left-240}:Ye(),type:"create",...(0,b.l$)(rt)}}})};return(0,Y.jsxs)(Me,{className:"empty-content",children:[(0,Y.jsx)("img",{src:"/mb-proto2/images/lib/"+(Te==="text"?"font-empty":"color-empty")+"-"+Fe+".svg"}),(0,Y.jsx)("span",{className:"empty-name",children:Te==="muban"?"\u6682\u65E0"+I18N.libPanel.common[Te]:"\u6682\u65E0"+I18N.libPanel.common[Te]+"\u6837\u5F0F"}),tt&&(0,Y.jsx)("button",{className:"create-btn",onClick:ct,children:"\u521B\u5EFA"+I18N.libPanel.common[Te]+"\u6837\u5F0F"})]})},xe=_e=>{let{type:Te,isSearch:Ye,libsDataMap:Fe,currentLib:Ve,libsOptionList:rt,currentLibOption:Ue,mode:et,onSetRefStyle:lt,onColorChange:Je,onClose:Xe,onGetNewEditModalPostion:st}=_e;const nt=(0,c.d4)(s.dN),tt=(0,c.d4)(p.p$),ct=(0,c.d4)(l.YT),ht=(0,r.useRef)(null),It=(0,c.wA)(),it=(0,r.useMemo)(()=>{let Tt=!0;if(Ve==="all")Fe.forEach((Lt,Rt)=>{(Te==="muban"?(Lt==null?void 0:Lt.length)!==0:Lt.some(Wt=>Wt.length!==0))&&(Tt=!1)});else{const Lt=Fe.get(Ve);(Te==="muban"?(Lt==null?void 0:Lt.length)!==0:Lt!=null&&Lt.some(Rt=>(Rt==null?void 0:Rt.length)!==0))&&(Tt=!1)}return Tt},[Ve,Fe,Te]);return(0,r.useEffect)(()=>{if(tt.length>0&&Te==="muban"){var Tt;const Lt=sdkStore.getHotItem(tt[0]),Rt=Lt&&(Lt==null||(Tt=Lt.hotAttr)==null?void 0:Tt.refRBPageKey),Wt=Rt&&sdkStore.getHotItem(Rt);if(Wt){const Gt=(Fe.get(Wt.hotAttr.libKey||"local")||[]).find(St=>{var Hn,uo;return(St==null||(Hn=St.children)==null?void 0:Hn.length)>0&&(St==null||(uo=St.children)==null?void 0:uo.findIndex(Po=>Po.key===Rt))!==-1});if(Gt){const St=Wt.hotAttr.libKey?Wt.hotAttr.libKey:ct.cid;It({type:"style-lib:set:currentMubanFolderData",payload:{...Gt,projectMetaCid:St}})}}}},[Te]),(0,Y.jsxs)(Se,{className:"lib-panel-content "+et,ref:ht,children:[it?Ye?(0,Y.jsx)(fe.Z,{}):(0,Y.jsx)(de,{type:Te,onGetNewEditModalPostion:st}):nt?(0,Y.jsx)(ce,{mode:et}):Ve==="all"?rt.slice(1).map(Tt=>{const Lt=Fe.get(Tt.value)||[];return Lt.every(Rt=>(Rt==null?void 0:Rt.length)===0)?null:(0,Y.jsx)(Ie,{lib:Tt,libData:Lt,mode:et,onSetRefStyle:lt,onColorChange:Je,type:Te,onClose:Xe,onGetNewEditModalPostion:st},Tt.value)}):(0,Y.jsx)(Ie,{lib:Ue,libData:Fe.get(Ve)||[],mode:et,onSetRefStyle:lt,onColorChange:Je,type:Te,onClose:Xe,onGetNewEditModalPostion:st}),ht&&(0,Y.jsx)(_.yP,{type:"vertical",containerRef:ht,isAutoHideBar:!0})]})},Le=N.Ay.div.withConfig({displayName:"styles__StyledLibPanel",componentId:"sc-iyeovk-0"})(["min-height:389px;.libPanel-header{display:flex;align-items:center;justify-content:center;flex-direction:column;.sear-bar{border-radius:0;border:0;height:32px;border-bottom:1px solid ",";.clear-icon-box{margin-right:16px;}.search-icon{margin-left:16px;}}.select-actions{display:flex;align-items:center;justify-content:space-between;width:100%;height:41px;padding-bottom:9px;border-bottom:1px solid ",";padding:0 10px;.lib-menu-opener{width:auto;border-radius:6px;span{width:auto;}.icon:hover{background:none;}}}}.loading{width:80px;height:80px;position:absolute;top:50%;left:50%;margin-left:-40px;margin-top:-40px;}"],_e=>_e.theme.color_bg_border_01,_e=>_e.theme.color_bg_border_01),ve=(0,N.DU)([".context-menu-mask{z-index:200;}"]),je=[{text:"\u5168\u90E8\u8D44\u6E90\u5E93",value:"all"},{text:"\u672C\u5730\u8D44\u6E90\u5E93",value:"local"}],We="style_lib_color_modal_mode",Ae="style_lib_muban_modal_mode",we=_e=>{let{type:Te="color",onSetRefStyle:Ye,onColorChange:Fe,onClose:Ve,onGetNewEditModalPostion:rt}=_e;const[Ue,et]=(0,r.useState)(!1),[lt,Je]=(0,r.useState)(""),[Xe,st]=(0,r.useState)("all"),[nt,tt]=(0,r.useState)(je),[ct,ht]=(0,r.useState)(Te==="appear"||Te==="text"?"list":(0,h.Yt)(Te==="color"?We:Ae,"list",h.qW.String)),[It,it]=(0,r.useState)(new Map),[Tt,Lt]=(0,r.useState)(),Rt=(0,c.d4)(s.Rd),Wt=(0,c.d4)(s.fn),Kt=(0,c.d4)(s.nC),Gt=(0,c.wA)();(0,r.useEffect)(()=>{(async()=>{const zt=sdkStore.getSubHotItemList("B@ext").filter(Wn=>Wn.hotAttr.extType==="extProtoLib"&&!Wn.hotAttr.extInfo.isRemove),bt=zt==null?void 0:zt.map(Wn=>{var Ln,io;return{text:(Ln=Wn.hotAttr)==null?void 0:Ln.name,value:(io=Wn.hotAttr)==null||(io=io.extInfo)==null?void 0:io.flatKey}}),xn=[...je,...bt];if(tt(xn),Te==="muban")Gt({type:"entry:libStyle:mubanPanel:init:libMubanTreeMap"});else{const Wn=new Map;var kn=!1,gn=!1,Zn;try{for(var Pn=(0,n.A)(xn),_n;kn=!(_n=await Pn.next()).done;kn=!1){const Ln=_n.value;if(Ln&&Ln.value!=="all")if(Ln.value==="local"){const io=(0,b.xT)({type:Te,isHasGroupPathName:!0});Wn.set(Ln.value,io)}else{const io=Kt.get(Ln.value),to=(0,b.xT)({type:Te,isHasGroupPathName:!0,sdk:io});Wn.set(Ln.value,to)}}}catch(Ln){gn=!0,Zn=Ln}finally{try{kn&&Pn.return!=null&&await Pn.return()}finally{if(gn)throw Zn}}it(Wn)}et(!0)})()},[Rt,Gt,Kt,Te]),(0,r.useEffect)(()=>{Te==="muban"&&it(Wt)},[Wt,Te]);const St=(0,r.useMemo)(()=>nt.find(ut=>(ut==null?void 0:ut.value)===Xe)||je[0],[Xe,nt]),Hn=(0,r.useMemo)(()=>nt.filter(ut=>{var zt,bt;const xn=Te==="muban"?It==null||(zt=It.get(ut.value))==null?void 0:zt.length:It==null||(bt=It.get(ut.value))==null||(bt=bt[0])==null?void 0:bt.length;return ut.value!=="all"&&xn>0||ut.value==="all"}),[It,nt,Te]),uo=ut=>{Je(ut)},Po=ut=>{if(!ut){Lt(void 0);return}const zt=ut.toUpperCase(),bt=new Map;It==null||It.forEach((xn,kn)=>{if(Te==="muban"){var gn;const Pn=((gn=xn.filter(_n=>{var Wn;return(_n==null||(Wn=_n.children)==null?void 0:Wn.length)>0}))!=null?gn:[]).map(_n=>{var Wn;return _n==null||(Wn=_n.children)==null?void 0:Wn.filter(Ln=>Ln.hotAttr.name.toUpperCase().includes(zt))}).flat();bt.set(kn,[...xn.filter(_n=>_n.hotAttr.name.toUpperCase().includes(zt)),...Pn])}else bt.set(kn,xn.map(Zn=>Zn.filter(Pn=>Pn.hotAttr.name.toUpperCase().includes(zt))))}),Lt(bt)},Yn=()=>{Je(""),Lt(void 0)},bo=(0,r.useCallback)(()=>{const ut=ct==="list"?"grid":"list";ht(ut),(0,h.a0)(Te==="color"?We:Ae,ut,h.qW.String)},[ct,Te]),Ke=ut=>{st(ut),Gt({type:"style-lib:set:currentMubanFolderData",payload:null})};return(0,Y.jsx)(Le,{children:Ue?(0,Y.jsx)(Y.Fragment,{children:(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)("div",{className:"libPanel-header",children:[(0,Y.jsx)(I.A,{value:lt,className:"sear-bar",placeholder:"\u641C\u7D22"+I18N.libPanel.common[Te],onChange:uo,onSearch:Po,onClear:Yn,wait:200,canClear:!0}),(0,Y.jsxs)("div",{className:"select-actions",children:[(0,Y.jsx)(C.Z,{optionList:Hn,displayLabel:St==null?void 0:St.text,selectedOption:St==null?void 0:St.value,width:160,onChange:Ke,className:"lib-menu-opener",menuClassName:"lib-select-menu",leftUse:"left"}),(Te==="color"||Te==="muban")&&(0,Y.jsx)(d.Q,{icon:(0,Y.jsx)(u.C,{name:"setting_panel/libPanl/mode/"+ct,size:24}),content:I18N.libPanel.display_mode[ct],direction:"down",onClick:bo})]})]}),(0,Y.jsx)(xe,{type:Te,libsDataMap:Tt||It,isSearch:!!lt,currentLib:Xe,libsOptionList:nt,currentLibOption:St,mode:ct,onSetRefStyle:Ye,onColorChange:Fe,onClose:Ve,onGetNewEditModalPostion:rt}),(0,Y.jsx)(ve,{})]})}):(0,Y.jsx)(o.f,{className:"loading"})})}},12991:(He,ee,e)=>{"use strict";if(e.d(ee,{$Y:()=>A,JR:()=>x,Vt:()=>Q,WA:()=>g,dU:()=>L,nS:()=>G,o0:()=>U,qO:()=>W,rf:()=>M,wt:()=>a}),e.j!=477)var n=e(37754);var r=e(38155),c=e(54190),o=e(11032),I=e(85584),u=e(48790),d=e(77277);if(e.j!=477)var C=e(3862);var h=e(5288),i=e(49903),f=e(33680);const p=e.j!=477?[]:null,s=4*2,l={user:h.ER,org:h.RC,find:h.gV},_={star:h.s$,find:h.F2,"page-screen":h.eg,"page-library":h.vL},b={user:h.wU,org:h.n,find:h.ez,"asset-pic":h.dn,"asset-sticker":h.SM},a=(D,B)=>{switch(D){case C.t_:return l[B];case C.Gd:return _[B];case C.b4:return b[B];case C.C:return"";case C.RD:return""}};let M=function(D){return D.User="user",D.Org="org",D.Find="find",D.Star="star",D.PageScreen="page-screen",D.PageLibrary="page-library",D.AssetPic="asset-pic",D.AssetSticker="asset-sticker",D}({});const x=async D=>{var B,j;let{category:F,keyword:Y,size:X}=D;const z=()=>{F===C.b4&&MB.notice({text:I18N.Resources.searching.sensitive_keyword_search,type:"error"})};return await(0,n.P)({keyword:Y,size:X,triggerSensitiveWord:z,uId:(B=MB.user)==null?void 0:B.id,projectCid:(j=MB.getRootProject())==null?void 0:j.cid})},g=async D=>{let{dispatch:B,category:j,isSearchAll:F,keyword:Y,orgCid:X,builtWidgets:z,assetGroupCidSet:Z,userResourcesComboGroup:J,orgResourcesComboGroup:te,sceneTag:ge,from:pe,userAssetsMap:Ce,orgAssetsMap:me,isSaveAllAssetsMap:be}=D,ie,oe,he,ce,re,fe=Ce||new Map,Se=me||new Map,Me=Z;const Ie={category:F?"all":j,q:Y,limit:36};X&&(Ie.org_cid=X),(j===C.t_||F)&&ge&&(Ie.scene_tag=ge);const de=F?K:W;if(j===C.b4||F){if([ie,oe,he,ce,re]=await Promise.all([(0,c.F7)(new URLSearchParams(Ie),pe),(0,c.PK)(Y),x({category:j,keyword:Y,size:20}),!be&&(0,c.OJ)(),!be&&X&&(0,c.l9)(X)]),!be){const{userAssetGroupList:je,userAssets:We}=ce,Ae=We.reduce((_e,Te)=>_e.set(Te.group_cid,(_e.get(Te.group_cid)||[]).concat(Te)),new Map);fe=Ae,Me=new Set(je.map(_e=>_e.cid));const we={userAssetGroups:je,userAssetsMap:Ae,isRequestUserAssetGroup:!0,isSaveAllAssetsMap:!0};if(X){const{orgAssetGroupList:_e,orgAssets:Te}=re,Ye=Te.reduce((Fe,Ve)=>Fe.set(Ve.group_cid,(Fe.get(Ve.group_cid)||[]).concat(Ve)),new Map);Se=Ye,Me=new Set([...Me,..._e.map(Fe=>Fe.cid)]),we.orgAssetGroups=_e,we.orgAssetsMap=Ye,we.isRequestOrgAssetGroup=!0}B({type:"image-panel:update:state",payload:we})}const Le=await de({category:j,searchResults:ie,builtWidgets:z,assetGroupCidSet:Me,userResourcesComboGroup:J,orgResourcesComboGroup:te,userAssetsMap:fe,orgAssetsMap:Se,keyword:Y}),ve=F?Le.result.asset:Le;return t({data:Le,assetData:ve,unsplashList:he,isSearchAll:F}),S({data:Le,assetData:ve,stickers:oe,isSearchAll:F}),Le}return ie=await(0,c.F7)(new URLSearchParams(Ie),pe),de({category:j,searchResults:ie,builtWidgets:z,assetGroupCidSet:Me,userResourcesComboGroup:J,orgResourcesComboGroup:te,userAssetsMap:fe,orgAssetsMap:Se,keyword:Y})},S=D=>{let{data:B,assetData:j,stickers:F,isSearchAll:Y}=D;const X=F!=null&&F.length?F.map(Z=>{var J;return(0,f.nA)((J=Z.categories)==null||(J=J[0])==null?void 0:J.name,{name:Z.title,url:Z.imageUrl,thumb_url:Z.thumbUrl,res_id:Z.res_id})}):[],z=X.length;z>0&&(j.list.push({cid:a(C.b4,M.AssetSticker),name:M.AssetSticker,list:[{type:d.I.FindSticker,items:X}]}),j.total+=z,Y&&(B.total+=z))},t=async D=>{let{data:B,assetData:j,unsplashList:F,isSearchAll:Y}=D;const X=F==null?void 0:F.length;X>0&&(j.list.push({cid:h.dn,list:[{type:d.I.FindPicture,items:F}],name:M.AssetPic}),j.total+=X,Y&&(B.total+=X))},v=(D,B)=>{const j=new Map;let F=[];const Y=[];if(B){const X=B.filter(z=>z.tab!=="hot");X.filter(z=>z.name[0].includes(D)).forEach(z=>{F=F.concat(z.imgs.map(Z=>{let[J,[te,ge],[pe,Ce],me]=Z;return j.set("findPicture_"+J,1),getFindPictureAsset({url:J,tab:z.tab,height:Ce,width:pe,tags:me})}))}),X.forEach(z=>{z.imgs.filter(Z=>{let[,,,J]=Z;for(const te of J)if(te.includes(D))return!0;return!1}).forEach(Z=>{let[J,te,[ge,pe],Ce]=Z;j.has("findPicture_"+J)||(j.set("findPicture_"+J,1),Y.push(getFindPictureAsset({url:J,tab:z.tab,height:pe,width:ge,tags:Ce})))})})}return{cid:a(ASSET,M.Find),name:M.Find,list:[{type:SearchResultType.FindPicture,items:[...Y,...F]}]}},w=function(D,B,j){if(j===void 0&&(j=null),D!=null&&D.length&&B){const F=D.map(z=>(0,u.gT)(z,B).map(J=>({mt:J,currentResources:z,currentSearchCategory:j}))).flat(),Y=F.filter(z=>{let{currentResources:Z}=z;return Z.is_star}),X=F.filter(z=>{let{currentResources:Z}=z;return!Z.is_star});return{staredMarketTemplates:Y,unStaredMarketTemplates:X,marketTemplateItemList:F}}return{}},k=D=>{if(D!=null&&D.length){const B=D.filter(F=>{let{is_star:Y}=F;return Y}),j=D.filter(F=>{let{is_star:Y}=F;return!Y});return{staredMarketTemplateGroups:B,unStaredMarketTemplateGroups:j}}return{}},W=D=>{let{category:B,searchResults:j,builtWidgets:F,assetGroupCidSet:Y,userResourcesComboGroup:X,orgResourcesComboGroup:z,userAssetsMap:Z,orgAssetsMap:J}=D;const te=B===C.t_,ge=B===C.C,pe=B===C.Gd,Ce=B===C.b4;let me=0,be=[],ie=[];if(j){const{data:oe,p2mMMap:he}=j,{market_template_groups:ce,market_templates:re,user_combo_group:fe,org_combo_group:Se,icons:Me,user_asset_groups:Ie,user_assets:de,org_asset_groups:xe,org_assets:Le}=oe,ve=re&&re.filter(Ye=>(Ye==null?void 0:Ye.version)!=="v1"),je=ce&&ce.filter(Ye=>(Ye==null?void 0:Ye.version)!=="v1"),{staredMarketTemplates:We,unStaredMarketTemplates:Ae,marketTemplateItemList:we}=w(ve,he,B),{staredMarketTemplateGroups:_e,unStaredMarketTemplateGroups:Te}=k(je);if(ge){const{data:Ye,sum:Fe}=V({icons:Me,marketTemplateGroups:ce});be=Ye,me=Fe}else if(Ce){const Ye=Ie.filter(lt=>{var Je;return((Je=Z.get(lt.cid))==null?void 0:Je.length)>0}),Fe=xe.filter(lt=>{var Je;return((Je=J.get(lt.cid))==null?void 0:Je.length)>0}),{data:Ve,sum:rt}=O({assets:de,assetGroups:Ye,assetGroupCidSet:Y}),{data:Ue,sum:et}=O({assets:Le,assetGroups:Fe,assetGroupCidSet:Y});rt&&be.push({cid:a(B,M.User),name:M.User,list:Ve}),et&&be.push({cid:a(B,M.Org),name:M.Org,list:Ue}),me=rt+et}else if(pe){const{pageList:Ye,pageGroupList:Fe,sum:Ve}=H({category:B,staredMarketTemplates:We,unStaredMarketTemplates:Ae,staredMarketTemplateGroups:_e,unStaredMarketTemplateGroups:Te});Ye&&be.push(Ye),Fe&&be.push(Fe),me=Ve}else if(te){const{data:Ye,sum:Fe}=$({category:B,staredMarketTemplates:[],userComboGroup:fe,staredMarketTemplateGroups:_e,p2mMMap:he,userResourcesComboGroup:X}),{data:Ve,sum:rt}=P({category:B,orgComboGroup:Se,p2mMMap:he,orgResourcesComboGroup:z}),{data:Ue,sum:et}=E({category:B,marketTemplates:we,unStaredMarketTemplateGroups:Te,builtWidgets:F});et&&be.push(Ue),Fe&&be.push(Ye),rt&&be.push(Ve),me=me+Fe+rt+et}ie=ve}return{list:be,total:me,resources:ie}},K=async D=>{let{searchResults:B,builtWidgets:j,assetGroupCidSet:F,userResourcesComboGroup:Y,orgResourcesComboGroup:X,userAssetsMap:z,orgAssetsMap:Z,keyword:J}=D;const te={combo_group:{list:[],total:0},screen_list:{list:[],total:0},project_basic:{list:[],total:0},icon_group:{list:[],total:0},asset:{list:[],total:0}};let ge=0,pe=[];if(B){const{data:me,p2mMMap:be}=B;Object.entries(me).forEach(ie=>{let[oe,he]=ie,ce=0,re=[];const{market_template_groups:fe,market_templates:Se,user_combo_group:Me,org_combo_group:Ie,icons:de,user_asset_groups:xe,user_assets:Le,org_asset_groups:ve,org_assets:je}=he,We=Se&&Se.filter(Ve=>(Ve==null?void 0:Ve.version)!=="v1"),Ae=fe&&fe.filter(Ve=>(Ve==null?void 0:Ve.version)!=="v1"),{staredMarketTemplates:we,unStaredMarketTemplates:_e,marketTemplateItemList:Te}=w(We,be,oe),{staredMarketTemplateGroups:Ye,unStaredMarketTemplateGroups:Fe}=k(Ae);switch(oe){case C.C:{const{data:Ve,sum:rt}=V({icons:de,marketTemplateGroups:fe});re=Ve,ce=rt;break}case C.b4:{const Ve=xe.filter(Xe=>{var st;return((st=z.get(Xe.cid))==null?void 0:st.length)>0}),rt=ve.filter(Xe=>{var st;return((st=Z.get(Xe.cid))==null?void 0:st.length)>0}),{data:Ue,sum:et}=O({assets:Le,assetGroups:Ve,assetGroupCidSet:F}),{data:lt,sum:Je}=O({assets:je,assetGroups:rt,assetGroupCidSet:F});Je&&re.push({cid:a(oe,M.Org),name:M.Org,list:lt}),et&&re.push({cid:a(oe,M.User),name:M.User,list:Ue}),ce=et+Je;break}case C.Gd:{const{pageList:Ve,pageGroupList:rt,sum:Ue}=H({category:oe,staredMarketTemplates:we,unStaredMarketTemplates:_e,staredMarketTemplateGroups:Ye,unStaredMarketTemplateGroups:Fe});Ve&&re.push(Ve),rt&&re.push(rt),ce=Ue;break}case C.t_:{const{data:Ve,sum:rt}=$({category:oe,staredMarketTemplates:[],userComboGroup:Me,staredMarketTemplateGroups:Ye,p2mMMap:be,userResourcesComboGroup:Y}),{data:Ue,sum:et}=P({category:oe,orgComboGroup:Ie,p2mMMap:be,orgResourcesComboGroup:X}),{data:lt,sum:Je}=E({category:oe,marketTemplates:Te,unStaredMarketTemplateGroups:Fe,builtWidgets:j});et&&re.push(Ue),rt&&re.push(Ve),Je&&re.push(lt),ce=ce+rt+et+Je;break}}te[oe]={list:re,total:ce},ge=ge+ce,pe=We?pe.concat(We):pe})}const Ce=await(0,r.n5)({q:J,page_size:30});return te[C.RD]={list:[{type:"search_resources",items:Ce.market_templates}],total:Ce.market_templates.length},{result:te,total:ge,resources:pe}},G=(D,B,j,F)=>{const Y=[];let X=0;if(D&&B){const{project_meta_cid:z}=D,Z=B[z]||{},J=[],te=[];Object.entries(Z).forEach(ge=>{let[pe,Ce]=ge;const[me,be,ie]=Ce;(0,I.Mo)(ie)?!((F==null?void 0:F.getSubHotItemList(me).length)===0)&&te.push({cid:me,name:ie==null?void 0:ie.name,data:ie}):J.push({key:me,flpakKey:z,sup:be,hotAttr:ie,group:j.find(he=>he.cid===be)})}),J!=null&&J.length&&(Y.push({type:d.I.SelfMakeCombo,items:J}),X+=J.length),te!=null&&te.length&&(Y.push({type:d.I.Group,items:te}),X+=te.length)}return{combos:Y,sum:X}},$=D=>{let{category:B,staredMarketTemplates:j,userComboGroup:F,staredMarketTemplateGroups:Y,p2mMMap:X,userResourcesComboGroup:z}=D;const Z=[];let J=0;const{combos:te,sum:ge}=G(F,X,z,window.userSdkStore);return Z.push(...te),J+=ge,j!=null&&j.length&&(Z.push({type:d.I.MarketTemplate,items:j}),J+=j.length),Y!=null&&Y.length&&(Z.push({type:d.I.Resources,items:Y}),J+=Y.length),J?{data:{cid:a(B,M.User),name:M.User,list:Z},sum:J}:{sum:J}},P=D=>{let{category:B,orgComboGroup:j,p2mMMap:F,orgResourcesComboGroup:Y}=D;const X=[];let z=0;const{combos:Z,sum:J}=G(j,F,Y,window.orgSdkStore);return X.push(...Z),z+=J,z?{data:{cid:a(B,M.Org),name:M.Org,list:X},sum:z}:{sum:z}},E=D=>{let{category:B,marketTemplates:j,unStaredMarketTemplateGroups:F,builtWidgets:Y}=D;const X=[];let z=0;return Y&&(X.push({type:d.I.Widget}),z+=Y.items.length),j!=null&&j.length&&(X.push({type:d.I.MarketTemplate,items:j}),z+=j.length),F!=null&&F.length&&(X.push({type:d.I.Resources,items:F}),z+=F.length),z?{data:{cid:a(B,M.Find),name:M.Find,list:X},sum:z}:{sum:z}},H=D=>{let{category:B,staredMarketTemplates:j,unStaredMarketTemplates:F,staredMarketTemplateGroups:Y,unStaredMarketTemplateGroups:X}=D;const z=[],Z=[],J=[],te=[];j!=null&&j.length&&J.push(...j),F!=null&&F.length&&J.push(...F),Y!=null&&Y.length&&te.push(...Y),X!=null&&X.length&&te.push(...X);let ge=0;J!=null&&J.length&&(z.push({type:d.I.MarketTemplate,items:J}),ge+=J.length),te!=null&&te.length&&(Z.push({type:d.I.Resources,items:te}),ge+=te.length);const pe={sum:ge,pageList:null,pageGroupList:null};return z.length>0&&(pe.pageList={cid:a(B,M.PageScreen),name:M.PageScreen,list:z}),Z.length>0&&(pe.pageGroupList={cid:a(B,M.PageLibrary),name:M.PageLibrary,list:Z}),pe},O=D=>{let{assets:B,assetGroups:j,assetGroupCidSet:F}=D;const Y=[];let X=0;if(B!=null&&B.length){const z=B.map(Z=>({...Z,cid:Z.cid})).filter(Z=>{let{group_cid:J}=Z;return F.has(J)});Y.push({type:d.I.Asset,items:z}),X+=z.length}return j!=null&&j.length&&(Y.push({type:d.I.Group,items:j}),X+=j.length),X?{data:Y,sum:X}:{sum:X}},V=D=>{let{icons:B,marketTemplateGroups:j}=D,F=0;const Y=[];if(B!=null&&B.length){const X=B.map(J=>{const{data:te,title:ge}=J;F+=te.length;const pe=te.map(Ce=>({...Ce,type:i.I1[ge]||ge||"svg",id:Ce.name,groupCid:Ce.cid}));return{...J,data:pe,category:C.C}}),z=X.filter(J=>{let{is_star:te}=J;return te}),Z=X.filter(J=>{let{is_star:te}=J;return!te});Y.push({type:d.I.IconList,items:z.concat(Z)})}return j!=null&&j.length&&(Y.push({type:d.I.Resources,items:j}),F+=j.length),{data:Y,sum:F}},Q=D=>{const B=D.length;let j=0;for(let F=0;F<B;F++)if(D.charCodeAt(F)>128?j+=2:j+=1,j>s)return D.slice(0,F)+"...";return D},N=D=>{if(!(D!=null&&D.length))return p;const B=[];return D.forEach(j=>{var F;(F=j.list)!=null&&F.length&&j.list.reduce((X,z)=>{let{items:Z}=z;return X+((Z==null?void 0:Z.length)||0)},0)&&B.push(j)}),B},L=D=>{let{list:B,keys:j,type:F,mapFunc:Y,category:X,addList:z,spliceFunc:Z,otherKeys:J=[],filterFunc:te}=D;if(!(B!=null&&B.length))return;const ge=B.find(be=>{let{name:ie}=be;return j.includes(ie)}),pe=B.find(be=>{let{name:ie}=be;return J==null?void 0:J.includes(ie)}),Ce=(be,ie)=>be.map(oe=>{if(oe.type===F){const he=ie(oe.items);return{...oe,items:he}}return oe});let me=B;if(ge)me=B.map(be=>{if(j.includes(be.name)){if(be.list.find(oe=>oe.type===F)){const oe=Ce(be.list,Y);return{...be,list:oe}}else if(z){const oe=be.list.concat({type:F,items:z});return{...be,list:oe}}}else if(J!=null&&J.includes(be.name)&&te){const ie=Ce(be.list,te);return{...be,list:ie}}return be});else if(z){const be={cid:a(X,j[0]),name:j[0],list:[{type:F,items:z}]};me=B,Z&&Z(me,be),pe&&(me=B.map(ie=>{if(J!=null&&J.includes(ie.name)&&te){const oe=Ce(ie.list,te);return{...ie,list:oe}}return ie}))}return N(me)},U=(D,B)=>{try{return D.map(j=>{let{cid:F,name:Y,list:X}=j;const z=X.map(Z=>{let{type:J,items:te}=Z,ge=[];return J===d.I.MarketTemplate&&(ge=te==null?void 0:te.map(pe=>{const{mt:Ce,currentResources:me,currentSearchCategory:be}=pe;return(me==null?void 0:me.cid)===B.cid?{mt:{...Ce,marketTemplateSource:B},currentResources:B,currentSearchCategory:be}:pe})),J===d.I.Resources&&(ge=te==null?void 0:te.map(pe=>{const{cid:Ce}=pe;return Ce===B.cid?B:pe})),{type:J,items:ge}});return{cid:F,name:Y,list:z}})}catch(j){return console.log(j.message),[]}},A=function(D,B){B===void 0&&(B="title");const j={};return!D||D.length<1||D.forEach(function(F){const Y=F.currentResources[B],X=j[Y]||[];X.push(F),j[Y]=X}),j}},13217:(He,ee,e)=>{"use strict";e.d(ee,{O:()=>f,_:()=>i});var n=e(12211),r=e(70933),c=e(25997),o=e(60651),I=e(4235),u=e(53940),d=e(65057),C=e(45611);const h=(0,n.Mz)([I.nE],p=>{const s=[];return p.forEach(l=>s.push(...(0,C.Dx)(l))),s}),i=p=>{var s,l,_,b;const a=(s=(l=document.querySelector("#left-slide-panel"))==null?void 0:l.getBoundingClientRect().width)!=null?s:p?184:294,M=(_=(b=document.querySelector("#right-slide-panel"))==null?void 0:b.getBoundingClientRect().width)!=null?_:p?0:240;return{leftSidePanelWidth:a,rightSidePanelWidth:M}},f={"entry:init:design:scale":p=>{let{dispatch:s}=p;s({type:"entry:reset:design:scale"}),s({type:"entry:reset:canvas:offset"})},"entry:reset:design:scale":p=>{var s;let{getState:l,dispatch:_}=p;const b=l(),a=(0,c.UV)(b),M=a.getRootSnapshot(),x=a.getRenderableSubHotItems(M).map(V=>V.key),g=(0,o.pH)(b);if(!(M!=null&&(s=M.sub)!=null&&s.length)){_({type:"entry:set:scale",payload:{scale:100}});return}const[S,t,v,w]=sdkStore.getHotKeyListAABB(x),k=v-S,W=w-t,K=56,{leftSidePanelWidth:G,rightSidePanelWidth:$}=i(g),P=window.innerHeight-K,E=window.innerWidth-G-$,H=Math.min((P-150)/W,(E-150)/k)*100,O=Math.min(Math.max(H,u.sI),100);_({type:"entry:set:scale",payload:{scale:O}})},"entry:reset:canvas:offset":p=>{let{getState:s,dispatch:l}=p;const _=s(),b=(0,c.UV)(_),a=b.getRootSnapshot(),M=b.getRenderableSubHotItems(a).map(V=>V.key),x=(0,o.pH)(_);if(!(M!=null&&M.length)){l({type:"current:update:state",payload:{currentScreenOriginOffset:{x:0,y:0}}}),l({type:"design:set:canvas:offset",payload:{offset:{x:0,y:0}}});return}const[g,S,t,v]=sdkStore.getHotKeyListAABB(M),{leftSidePanelWidth:w,rightSidePanelWidth:k}=i(x),W=g,K=S,G=t-g,$=v-S,E=(0,r.X_)(_)/100,H=(-G/2-W+(w-k)/2)*E,O=(-$/2-K)*E;l({type:"current:update:state",payload:{currentScreenOriginOffset:{x:H,y:O}}}),l({type:"design:set:canvas:offset",payload:{offset:{x:H,y:O}}}),l({type:"entry:update:ruler"})},"entry:set:scale":(p,s)=>{let{getState:l,dispatch:_}=p,{payload:b}=s;const a=l(),{scale:M}=b,x=(0,r.X_)(a);_({type:"design:set:scale",payload:{scale:M}}),_({type:"entry:design:update:canvas:offset",payload:{scaleD:M/x}}),_({type:"entry:update:ruler"})},"entry:design:zoom:selection":(p,s)=>{let{getState:l,dispatch:_}=p,{payload:b}=s;const a=l(),M=h(a),x=(0,o.pH)(a),g=(b==null?void 0:b.initScale)||!1;if(!(M!=null&&M.length)){_({type:"entry:zoom:fit:scale:offset"});return}const[S,t,v,w]=sdkStore.getHotKeyListAABB(M.map(U=>U.key)),k=S,W=t,K=v-S,G=w-t,{leftSidePanelWidth:$,rightSidePanelWidth:P}=i(x),E=window.innerHeight-56,H=window.innerWidth-$-P,O=Math.min((E-150)/G,(H-150)/K)*100,V=Math.min(Math.max(O,u.sI),400),Q=g?(0,r.X_)(a):V,N=(-K/2-k+($-P)/2)*Q/100,L=(-G/2-W)*Q/100;_({type:"design:set:scale",payload:{scale:Q}}),_({type:"current:update:state",payload:{currentScreenOriginOffset:{x:N,y:L}}}),_({type:"design:set:canvas:offset",payload:{offset:{x:N,y:L}}}),_({type:"entry:update:ruler"})},"entry:design:update:canvas:offset":(p,s)=>{let{getState:l,dispatch:_}=p,{payload:{scaleD:b}}=s;const{view_mode:a}=Object.fromEntries(new URLSearchParams(location.search));if(a!=="device"){const M=l(),{x,y:g}=(0,r.ER)(M),S={x:b*x,y:b*g};_({type:"entry:set:canvas:offset",payload:{offset:S}})}},"entry:zoom:fit:scale:offset":p=>{let{dispatch:s}=p;s({type:"entry:reset:design:scale"}),s({type:"entry:reset:canvas:offset"}),s({type:"entry:update:ruler"})},"entry:set:canvas:offset":(p,s)=>{let{getState:l,dispatch:_}=p,{payload:{offset:{x:b,y:a}}}=s;_({type:"design:set:canvas:offset",payload:{offset:{x:b,y:a}}}),_({type:"entry:update:ruler"});const M=l(),x=(0,r.pO)(M),{eventOnDrag:g}=M.screencontainer.dragEventState,S=(0,r.X_)(M),t=(0,r.$S)(M);if(x&&g){const v=(0,d.mG)(g,{scale:S,offset:{x:b,y:a},viewportRect:t});_({type:"update:drag-event:state",payload:{worldPosOnDrag:v}})}}}},13537:(He,ee,e)=>{"use strict";e.d(ee,{Nj:()=>c,av:()=>u});function n(d){return d*Math.PI/180}function r(d,C,h){const i=n(h),f=Math.cos(i),p=Math.sin(i),[s,l]=C,_=d.x-s,b=d.y-l;return{x:_*f-b*p+s,y:_*p+b*f+l}}const c=(d,C)=>{const{x:h,y:i,w:f,h:p,r:s}=d;let l;switch(C){case"top":l={x:h,y:i-p/2};break;case"bottom":l={x:h,y:i+p/2};break;case"left":l={x:h-f/2,y:i};break;case"right":l={x:h+f/2,y:i};break;default:break}if(l)return r(l,[h,i],s)};function o(d){return Math.abs(Math.sin(n(d)))}function I(d){return Math.abs(Math.cos(n(d)))}function u(d,C){C===void 0&&(C="deg");let h;if(C==="deg")h=d-d%45;else{let i=Math.round(d*(180/Math.PI));i=i-i%45,h=i*Math.PI/180}return h}},13846:(He,ee,e)=>{"use strict";e.d(ee,{Gw:()=>U,aX:()=>N,af:()=>Q,e1:()=>L});var n=e(18381),r=e(37320),c=e(50001),o=e(65057),I=e(547),u=e(79209),d=e(21856),C=e(63902),h=e(70933),i=e(67588),f=e(4235),p=e(21191),s=e(67052),l=e(60651),_=e(8293),b=e(83744),a=e(73658),M=e(96788),x=e(20089),g=e(63763),S=e(50353),t=e(88225),v=e(21770),w=e(11032),k=e(3862),W=e(7279),K=e(33680),G=e(92272),$=e(16335),P=e(4410),E=e(78915),H=e(93413),O=e(70812);const V=A=>{let{widgetInsertable:D,insertWidgetAtWorld:B,e:j,viewportRect:F,currPageKey:Y,selectedItemsKeyList:X,dispatch:z}=A;const{data:Z,meta:{name:J,width:te,height:ge,type:pe}}=D;sdkStore.combineMergeMark("quick-create-no-rect");const Ce=Array.from(document.querySelectorAll('[data-is-widget-insertable="false"]')).map(oe=>oe.getBoundingClientRect());let me=[],be;if(pointInRect(j.clientX,j.clientY,F)&&Ce.every(oe=>!pointInRect(j.clientX,j.clientY,oe)))switch(pe){case WidgetType.CanvasAsOverlay:{be=Y,me=sdkStore.loadSubtree(Z,Y,B.x,B.y),moveItemsToTopUnder(me,be,sdkStore),orderCanvasesToTopUnder(me,be,sdkStore),renameItemsOnCreate(me,be,sdkStore);break}case"wSticky":case"wTear":{be=Y,me=sdkStore.loadSubtree(Z,Y,B.x,B.y),orderStickyToTopUnder(Y,me,sdkStore),renameItemsOnCreate(me,Y,sdkStore);break}default:{const oe=findFirstCommonRndSup(X,sdkStore);if(oe&&sdkStore.getHotItem(oe).hotAttr.type==="wWrap")be=oe,me=sdkStore.loadSubtree(Z,be,B.x,B.y);else{me=sdkStore.loadSubtree(Z,Y,B.x,B.y);const he=createIntersectCanvasSearch(Y,me),ce=createMemoRenameOnNew(),re=createReStackKit(),fe=me.map(Se=>{const Me=sdkStore.getHotItem(Se),Ie=sdkStore.getHotAABB(Se),de=he(Ie)||Y;return{...Me,sup:de,hotAttr:{...Me.hotAttr,...sdkStore.getRelocateLocalXYR(Se,de),zIndex:re.getReStackZIndex(Se,de),name:ce(de,Me.hotAttr.type,Me.hotAttr.name)}}});sdkStore.updateHotItemBatch(fe)}}}if(applyAvailableTextAttrsToSdkStoreWidget(pe,me[0]),sdkStore.combineMerge("quick-create-no-rect"),z({type:"ST:update",payload:{isLeftDown:!0}}),z({type:"set:alignment",payload:{alignment:{}}}),z({type:"set:sameSize",payload:{sameSize:{}}}),z({type:"set:distributed",payload:{distributed:{}}}),z({type:"elbow:update",payload:{isDraggingElbow:!1}}),me.length===1){const oe=sdkStore.getHotItem(me[0]);switch(oe.hotAttr.type){case"wSticky":{const{info:he}=resetHotInfo();z({type:"entry:ST:drag:sticky:point:real:bind",payload:{stickyKey:oe.key}}),z({type:"entry:set:editing:cid",payload:{item:oe}}),z({type:"toolbar:update:state",payload:{isShowSticky:!0}}),sdkStore.updateHotAttrMerge(oe.key,{info:he});break}case"wTear":{const{info:he}=resetHotInfo();z({type:"entry:ST:tear:bind",payload:{tearKey:oe.key,afterCreate:!0}}),z({type:"entry:set:editing:cid",payload:{item:oe}}),z({type:"toolbar:update:state",payload:{isShowSticky:!0}}),sdkStore.updateHotAttrMerge(oe.key,{info:he});break}case"wRichText":{z({type:"entry:set:editing:cid",payload:{item:oe}});break}case"wSwimlane":{z({type:"flow:update:clear"});break}}}const ie=me.map(oe=>sdkStore.getHotItem(oe));z({type:"entry:widget:change",payload:{flatChgList:ie,isCreateWidget:!0,shouldBreakLayerUICache:!0}}),z({type:"entry:select:items",payload:{cids:me}}),z({type:"entry:expend:groupOrCanvasOrBasket",payload:{cids:me}}),z({type:"entry:publish:create:items:success",payload:{newKeys:me}})},Q=function(A){A===void 0&&(A=()=>{});const D=(0,n.Pj)();return(B,j)=>{const{data:F,meta:{name:Y,type:X}}=j;if((0,u.z5)(F))try{var z;D.dispatch({type:"update:screenContainer:state",payload:{createTemplatesData:null}}),D.dispatch({type:"entry:resources:escape:quickCreateWidget"}),sdkStore.combineMergeMark("dblclick-to-insert-widget");const Z=((z=(0,h.Ur)(D.getState()))==null?void 0:z.cid)||"",J=(0,h.X_)(D.getState()),te=(0,h.$S)(D.getState()),ge=(0,h.ER)(D.getState()),pe=(0,f.p$)(D.getState()),Ce={scale:J/100,size:{w:te.width,h:te.height},offset:ge},me=(0,d.Dl)(Ce,te.left);let be=[],ie;switch(X){case x.x.CanvasAsOverlay:{ie=Z,be=sdkStore.loadSubtree(F,Z,me.x,me.y),(0,d.OV)(be,ie,sdkStore),(0,d.tu)(be,ie,sdkStore),(0,C.Yx)(be,ie,sdkStore);break}case"wSticky":case"wTear":{ie=Z,be=sdkStore.loadSubtree(F,Z,me.x,me.y),(0,d.gs)(Z,be,sdkStore),(0,C.Yx)(be,Z,sdkStore);break}default:{const he=(0,d.dk)(pe,sdkStore);if(he&&sdkStore.getHotItem(he).hotAttr.type==="wWrap")ie=he,be=sdkStore.loadSubtree(F,ie,me.x,me.y);else{be=sdkStore.loadSubtree(F,Z,me.x,me.y);const ce=(0,p.G9)(Z,be),re=(0,p.YQ)(),fe=(0,p.wr)(),Se=be.map(Me=>{const Ie=sdkStore.getHotItem(Me),de=sdkStore.getHotAABB(Me),xe=ce(de)||Z;return{...Ie,sup:xe,hotAttr:{...Ie.hotAttr,...sdkStore.getRelocateLocalXYR(Me,xe),zIndex:fe.getReStackZIndex(Me,xe),name:re(xe,Ie.hotAttr.type,Ie.hotAttr.name)}}});sdkStore.updateHotItemBatch(Se)}}}if(D.dispatch({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!1}}),D.dispatch({type:"ST:update",payload:{isLeftDown:!0}}),D.dispatch({type:"set:alignment",payload:{alignment:{}}}),D.dispatch({type:"set:sameSize",payload:{sameSize:{}}}),D.dispatch({type:"set:distributed",payload:{distributed:{}}}),D.dispatch({type:"elbow:update",payload:{isDraggingElbow:!1}}),be.length===1){const he=sdkStore.getHotItem(be[0]);if(!he)return;switch(he.hotAttr.type){case"wSticky":{const{info:ce}=(0,M.lp)();D.dispatch({type:"entry:ST:drag:sticky:point:real:bind",payload:{stickyKey:he.key,createSource:"click"}}),D.dispatch({type:"entry:set:editing:cid",payload:{item:he}}),D.dispatch({type:"toolbar:update:state",payload:{isShowSticky:!0}}),sdkStore.updateHotAttrMerge(he.key,{info:ce});break}case"wTear":{const{info:ce}=(0,M.lp)();D.dispatch({type:"entry:ST:tear:bind",payload:{tearKey:he.key,afterCreate:!0}}),D.dispatch({type:"entry:set:editing:cid",payload:{item:he}}),D.dispatch({type:"toolbar:update:state",payload:{isShowSticky:!0}}),sdkStore.updateHotAttrMerge(he.key,{info:ce});break}case"wRichText":{D.dispatch({type:"entry:set:editing:cid",payload:{item:he}});break}case"wSwimlane":{D.dispatch({type:"flow:update:clear"});break}}(0,b.xB)(X,be[0])}const oe=be.map(he=>sdkStore.getHotItem(he));D.dispatch({type:"entry:widget:change",payload:{flatChgList:oe,isCreateWidget:!0,shouldBreakLayerUICache:!0}}),D.dispatch({type:"entry:select:items",payload:{cids:be}}),D.dispatch({type:"entry:expend:groupOrCanvasOrBasket",payload:{cids:be}}),D.dispatch({type:"entry:publish:create:items:success",payload:{newKeys:be}}),typeof A=="function"&&A()}catch(Z){}finally{sdkStore.combineMerge("dblclick-to-insert-widget")}}},N=(A,D)=>{const B=(0,n.Pj)();return(j,F)=>{var Y;const{data:X,meta:{name:z,width:Z,height:J,type:te}}=F;if(j.button!==0)return;const ge=((Y=(0,h.Ur)(B.getState()))==null?void 0:Y.cid)||"";let pe=!1;const Ce=j.clientX,me=j.clientY,be=Array.from(document.querySelectorAll('[data-is-widget-insertable="false"]')).map(We=>We.getBoundingClientRect());B.dispatch({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!0}});const{moveAndScaleWidgetInsertablePuppet:ie,destroyWidgetInsertablePuppet:oe,updateWidgetInsertablePuppetRenderProps:he}=(0,_.C1)(X,ge);sdkStore.combineMergeMark("drag-and-insert-widget");let ce;const re=(0,i.k3)(B.getState()),fe=(0,i.PI)(B.getState()),Se=(0,h.X_)(B.getState()),Me=(0,h.ER)(B.getState()),Ie=(0,h.$S)(B.getState()),de=(0,f.p$)(B.getState());(re||fe)&&(ce=(0,r.ay)({movableItems:[],createSnapper:fe?c.WY:r.xb,viewport:{scale:Se/100}}));let xe=(0,o.mG)(j,{scale:Se,offset:Me,viewportRect:Ie}),Le;const ve=We=>{if(pe=pe||Math.abs(We.clientX-Ce)>1||Math.abs(We.clientY-me)>1,!pe)return;A(),B.dispatch({type:"update:screenContainer:state",payload:{createTemplatesData:null}}),B.dispatch({type:"entry:resources:escape:quickCreateWidget"}),Le=(0,o.nS)({isTear:te==="wTear",world:xe,scale:Se,newSelection:de,currentPageKey:ge,isCtrlDown:We.ctrlKey||We.metaKey,event:We})||"",xe=(0,o.mG)(We,{scale:(0,h.X_)(B.getState()),offset:Me,viewportRect:Ie});let Ae={},we={},_e={};if(typeof ce=="function"){var Te;const{top:Fe,left:Ve,alignment:rt,sameSize:Ue,distributed:et}=ce({_rect:{left:Math.round(xe.x-Z/2),top:Math.round(xe.y-J/2),right:Math.round(xe.x+Z/2),bottom:Math.round(xe.y+J/2),width:Math.round(Z),height:Math.round(J)},sup:((Te=sdkStore.getHotItem(Le))==null?void 0:Te.hotAttr.type)==="rResCanvas"?Le:ge});xe={x:Ve+Z/2,y:Fe+J/2},Ae=rt,we=Ue,_e=et}const Ye=(0,o.mY)({x:xe.x-Z/2,y:xe.y-J/2});switch(ie({top:Ye.y,left:Ye.x,scale:be.some(Fe=>(0,I.El)(We.clientX,We.clientY,Fe))?100:Se}),te){case"wSticky":{const Fe=[xe.x-Z/2,xe.y-J/2,xe.x+Z/2,xe.y+J/2];B.dispatch({type:"entry:ST:drag:sticky:point:fake:bind",payload:{stickyKey:"fake",stickyAABBP:Fe,callback:he}});break}case"wTear":{he({refWCKey:Le,tearMode:!0});break}default:break}B.dispatch({type:"set:alignment",payload:{alignment:Ae}}),B.dispatch({type:"set:sameSize",payload:{sameSize:we}}),B.dispatch({type:"set:distributed",payload:{distributed:_e}}),(0,a.yT)(te)&&B.dispatch({type:"mode:update:hover:item",payload:Le})},je=We=>{if(document.removeEventListener("mousemove",ve),document.removeEventListener("mouseup",je),oe(),B.dispatch({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!1}}),!pe||!(0,u.z5)(X))return;let Ae=[],we;if((0,I.El)(We.clientX,We.clientY,Ie)&&be.every(Te=>!(0,I.El)(We.clientX,We.clientY,Te)))switch(te){case x.x.CanvasAsOverlay:{we=ge,Ae=sdkStore.loadSubtree(X,ge,xe.x,xe.y),(0,d.OV)(Ae,we,sdkStore),(0,d.tu)(Ae,we,sdkStore),(0,C.Yx)(Ae,we,sdkStore);break}case"wSticky":case"wTear":{we=ge,Ae=sdkStore.loadSubtree(X,ge,xe.x,xe.y),(0,d.gs)(ge,Ae,sdkStore),(0,C.Yx)(Ae,ge,sdkStore);break}default:{const Te=(0,d.dk)(de,sdkStore);if(Te&&sdkStore.getHotItem(Te).hotAttr.type==="wWrap")we=Te,Ae=sdkStore.loadSubtree(X,we,xe.x,xe.y);else{Ae=sdkStore.loadSubtree(X,ge,xe.x,xe.y);const Ye=(0,p.G9)(ge,Ae),Fe=(0,p.YQ)(),Ve=(0,p.wr)(),rt=Ae.map(Ue=>{const et=sdkStore.getHotItem(Ue),lt=sdkStore.getHotAABB(Ue),Je=Ye(lt)||ge;return{...et,sup:Je,hotAttr:{...et.hotAttr,...sdkStore.getRelocateLocalXYR(Ue,Je),zIndex:Ve.getReStackZIndex(Ue,Je),name:Fe(Je,et.hotAttr.type,et.hotAttr.name)}}});sdkStore.updateHotItemBatch(rt)}}}if((0,b.xB)(te,Ae[0]),sdkStore.combineMerge("drag-and-insert-widget"),B.dispatch({type:"ST:update",payload:{isLeftDown:!0}}),B.dispatch({type:"set:alignment",payload:{alignment:{}}}),B.dispatch({type:"set:sameSize",payload:{sameSize:{}}}),B.dispatch({type:"set:distributed",payload:{distributed:{}}}),B.dispatch({type:"elbow:update",payload:{isDraggingElbow:!1}}),Ae.length===1){const Te=sdkStore.getHotItem(Ae[0]);switch(Te.hotAttr.type){case"wSticky":{const{info:Ye}=(0,M.lp)();B.dispatch({type:"entry:ST:drag:sticky:point:real:bind",payload:{stickyKey:Te.key}}),B.dispatch({type:"entry:set:editing:cid",payload:{item:Te}}),B.dispatch({type:"toolbar:update:state",payload:{isShowSticky:!0}}),sdkStore.updateHotAttrMerge(Te.key,{info:Ye});break}case"wTear":{const{info:Ye}=(0,M.lp)();B.dispatch({type:"entry:ST:tear:bind",payload:{tearKey:Te.key,afterCreate:!0}}),B.dispatch({type:"entry:set:editing:cid",payload:{item:Te}}),B.dispatch({type:"toolbar:update:state",payload:{isShowSticky:!0}}),sdkStore.updateHotAttrMerge(Te.key,{info:Ye});break}case"wRichText":{B.dispatch({type:"entry:set:editing:cid",payload:{item:Te}});break}case"wSwimlane":{B.dispatch({type:"flow:update:clear"});break}}}const _e=Ae.map(Te=>sdkStore.getHotItem(Te));B.dispatch({type:"entry:widget:change",payload:{flatChgList:_e,isCreateWidget:!0,shouldBreakLayerUICache:!0}}),B.dispatch({type:"entry:select:items",payload:{cids:Ae}}),B.dispatch({type:"entry:expend:groupOrCanvasOrBasket",payload:{cids:Ae}}),B.dispatch({type:"entry:publish:create:items:success",payload:{newKeys:Ae}}),typeof D=="function"&&D()};document.addEventListener("mousemove",ve),document.addEventListener("mouseup",je)}},L=function(A){A===void 0&&(A=()=>{});const D=(0,n.Pj)();return(B,j,F)=>{if(B.button!==0)return;const Y=D.getState(),X=(0,h.Ur)(Y),z=(0,h.wq)(Y),Z=(0,h.L8)(Y),J=(0,l.lY)(Y),te=(z==null?void 0:z.metaType)||(z==null?void 0:z.type);if(D.dispatch({type:"update:screenContainer:state",payload:{createTemplatesData:null}}),te===j&&(!Z||Z===F))j===x.x.WElbow?D.dispatch({type:"elbow:update",payload:{highlightAnchor:""}}):x.Q.ST_MODE_WIDGET_NAMES.includes(j)?D.dispatch({type:"entry:ST:STMode:disable"}):j===x.x.WVector&&J?D.dispatch({type:"entry:vector:exit:edit"}):j===P.pv.PENCIL&&D.dispatch({type:"entry:pencil:vector:exit:edit",payload:{isSelectLastCreate:!0}}),D.dispatch({type:"set:quick-create-widget",payload:{widget:null}});else{D.dispatch({type:"entry:vector:exit:edit",payload:{isNoGuide:!0}}),D.dispatch({type:"entry:pencil:vector:exit:edit"}),x.Q.ST_MODE_WIDGET_NAMES.includes(j)?(D.dispatch({type:"entry:ST:STMode:enable"}),D.dispatch({type:"toolbar:update:state",payload:{isShowSticky:!0}})):D.dispatch({type:"entry:ST:STMode:disable"}),D.dispatch(E.GO.hoverItem("")),D.dispatch({type:"entry:image-view:exit:edit"});const ge=(0,g.gu)({type:j,screen:X});D.dispatch({type:"set:quick-create-widget",payload:{widget:{...ge,metaType:j},quickCreateWidgetFrom:S.Hq.widgetModal,quickCreateBuiltinSceneData:F||""}}),D.dispatch(E.GO.toggleHandMode(!1)),j===x.x.WVector&&(MB.commonGuideHelper.checkGuideToBeShown(H.c.GUIDE_VECTOR_TASK_ENDING_EDITING)&&(MB.commonGuideHelper.markGuideAsRead(H.c.GUIDE_VECTOR_TASK_ENDING_EDITING),MB.commonGuideHelper.closeGuide(H.c.GUIDE_VECTOR_TASK_ENDING_EDITING)),MB.commonGuideHelper.tryToShowGuide(H.c.GUIDE_VECTOR_TASK_QUICK_CREATE)),j===P.pv.PENCIL&&D.dispatch({type:"entry:pencil:vector:enter:edit",payload:{source:O.U4.addShapeToCanvasTrackSourceMap.quickCreate}}),typeof A=="function"&&A()}D.dispatch({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),D.dispatch({type:"elbow:update",payload:{isInElbowMode:!1}}),j!==x.x.WTear&&j!==x.x.WSticky&&D.dispatch({type:"entry:ST:STMode:disable"})}},U=(A,D)=>{const B=(0,n.Pj)(),j=z=>{const{checkoutPlace:Z,payEntrance:J}=(0,w.FS)(k.b4),te={mode:"mat",payEntrance:J,checkoutArea:"proto",checkoutPlace:Z,templateCid:z==null?void 0:z.id,templateName:z==null?void 0:z.name,templateCategory:k.b4,templateGroupName:z==null?void 0:z.group_cid};MB.global.popupHelper.chargeAsync(te)},F=async z=>{var Z;const J=B.getState(),te=(0,s.oE)(J),ge=(0,s.DU)(J),pe=(0,h.HW)(J),Ce=(0,h.wA)(J),me=((Z=(0,h.Ur)(J))==null?void 0:Z.cid)||"",be=(0,h.X_)(J),ie=(0,h.$S)(J),oe=(0,h.ER)(J),he=(0,f.p$)(J),ce={scale:be/100,size:{w:ie.width,h:ie.height},offset:oe},re=(0,d.Dl)(ce,ie.left),fe=(0,d.dk)(he,sdkStore),Se=fe&&sdkStore.getHotItem(fe).hotAttr.type==="wWrap"?fe:me;z==="image-portal"?te||await(0,t._)():z==="image_sticker_portal"&&(ge||await(0,W.e)());const Me=B.getState(),Ie=(0,s.ld)(Me),de=(0,s.p)(Me);let xe;if(z==="image-portal"){if(Ie.length){var Le;const{tab:We,imgs:Ae}=Ie[0];Ae.length&&(Le=Ae[0])!=null&&Le.length&&(xe=(0,K.Kb)(We,Ae[0]))}}else if(z==="image_sticker_portal"&&de.length){var ve;const{category:We,list:Ae}=de[0];Ae.length&&(ve=Ae[0])!=null&&(ve=ve.url)!=null&&ve.length&&(xe=(0,K.nA)(We,Ae[0]))}if(!xe)return;if(z==="image_sticker_portal"){const{isMktMember:We}=(0,v.s)(pe,Ce);if(!We){j(xe);return}}return{w:(0,G.BL)(xe),asset:xe}};return{handleDblClickImageSticker:async(z,Z)=>{var J,te;if(!(0,u._c)({type:x.x.WImage,count:1}))return;B.dispatch({type:"set:quick-create-widget",payload:{widget:null}}),B.dispatch({type:"entry:ST:STMode:disable"});const ge=await F(Z);if(!ge)return;const{w:pe,asset:Ce}=ge;(0,P.Q7)([pe],(J=pe.width)!=null?J:pe.w,(te=pe.height)!=null?te:pe.h);const{asset_cid:me}=Ce;(0,$.Cp)({projectUpperType:"picture",projectUpperCid:me,itemCid:""})},handleDragAndInsertImageSticker:async(z,Z)=>{var J,te,ge;if(!(0,u._c)({type:x.x.WImage,count:1}))return;B.dispatch({type:"set:quick-create-widget",payload:{widget:null}}),B.dispatch({type:"entry:ST:STMode:disable"});const pe=await F(Z);if(!pe)return;const{w:Ce,asset:me}=pe,be=B.getState(),ie=(0,s.B8)(be),oe=(0,h.PL)(be),he=(0,i.PI)(be),ce=(0,i.k3)(be),re=(J=document.getElementById(ie))==null?void 0:J.getBoundingClientRect();(0,P.dD)({e:z,items:[Ce],width:(te=Ce.width)!=null?te:Ce.w,height:(ge=Ce.height)!=null?ge:Ce.h,doNotCreateRect:re,rootProject:oe,showDragMode:he,isAdsorbentReferenceLine:ce,onMouseMove:A,callback:D});const{asset_cid:fe}=me;(0,$.Cp)({projectUpperType:"picture",projectUpperCid:fe,itemCid:""})}}}},13923:(He,ee,e)=>{"use strict";e.d(ee,{E:()=>u});var n=e(39695),r=e(95106),c=e(40486),o=e(99566),I=e(42459);const u=d=>{let{buildTreeRes:C,selectSubItaType:h,widget:i,type:f}=d;const{itaTree:p,runTimeInteraction:s}=C,{hotAttr:{interactions:l}}=i,_=new Map,b=new Map(JSON.parse(JSON.stringify(s)).map(ie=>[ie.key,ie])),a=p.sub.map(ie=>ie.attr.trigger),M=new Map(a.map(ie=>[ie,(0,o.X5)(ie)]));_.set(p.attr.key,p),(0,c._k)(p,ie=>{_.set(ie.attr.key,ie)});const x=p,g=[...l],S=[],t=ie=>b.get(ie),v=ie=>M.get(ie)||(0,o.X5)(ie),w=(ie,oe)=>M.set(ie,oe),k=ie=>{const oe=_.get(ie);if(!oe)return;const he=b.get(ie);return he&&(oe.attr=he),oe},W=ie=>{const oe=[],he=ce=>{ce.type==="action"?ce.attr.interactionType!=="dummy"&&oe.push(ce.attr):ce.type==="branchRoot"&&oe.push(ce.attr)};return he(ie),(0,c._k)(ie,ce=>{he(ce)}),oe},K=(ie,oe,he)=>{const ce=b.get(ie);ce&&(ce[oe]=he,ce.data&&(ce.data[oe]=he))},G=ie=>{const oe=Z(ie);if(!oe)return;const he=v(oe.attr.trigger);Object.entries(he).map(ce=>{let[re,fe]=ce;return K(ie,re,fe)}),K(ie,"triggerDisable",oe.attr.disabled)},$=ie=>{b.get(ie.attr.key)||(b.set(ie.attr.key,ie.attr),_.set(ie.attr.key,ie))},P=ie=>{const oe=[...ie.sub];for(;oe.length!==0;){const he=oe.shift();he&&(S.push(he.attr.key),oe.push(...he.sub))}},E=ie=>{(0,c.Z_)(x,ie,S),x.sub=x.sub.filter(oe=>oe.attr.key!==ie.attr.key)},H=ie=>{V(ie.sup,ie.attr.key),P(ie)},O=()=>{const ie=x.sub;ie.length===1&&(0,c.xx)(ie[0].sub).length===0&&E(ie[0])},V=(ie,oe)=>{const he=k(ie);he.sub=he.sub.filter(ce=>ce.attr.key!==oe)},Q=ie=>{let{treeNode:oe,uiFrom:he}=ie;const ce=fe=>{const{branchIndex:Se}=fe,Me=k(fe.sup);if(!Me)return;const Ie=j({oldBranches:Me.attr.branches,branchIndex:Se,type:"del",itaKeyList:[oe.attr.key]});K(Me.attr.key,"branches",Ie),H(oe)},re=fe=>{if(fe.sub.length===2){const Se=fe.sub[0];if(Se.attr.interactionType===n.O2.ConditionalBranches)for(const Me of Se.sub)H(Me);K(Se.attr.key,"interactionType",n.O2.TriggerPlaceHolder)}else H(oe)};if(he==="treePanelFloat"){if(oe.type==="trigger")E(oe),O();else{S.push(oe.attr.key);const fe=k(oe.sup);if(!fe)return;if(fe.type==="trigger"){const Se=x.sub,Me=Z(oe.attr.key);Se.length===1?(0,c.xx)(Me.sub).length===1?(E(Me),O()):H(oe):re(Me)}else fe.type==="branch"&&ce(fe)}return}if(oe.type==="trigger")E(oe);else{S.push(oe.attr.key);const fe=k(oe.sup);if(!fe)return;fe.type==="trigger"?re(fe):fe.type==="branch"&&ce(fe)}},N=()=>{const ie=[],oe=x.sub;for(const re of oe){const fe=v(re.attr.trigger);for(const Se of re.sub){if(Se.attr.interactionType==="dummy")continue;if(Se.type==="branchRoot")for(const Ie of Se.sub)for(const de of Ie.sub){if(de.type==="action"&&de.attr.interactionType==="dummy")continue;Object.entries(fe).map(Le=>{let[ve,je]=Le;return K(Se.attr.key,ve,je)});const xe=t(Se.attr.key);xe&&ie.push(xe.data)}Object.entries(fe).map(Ie=>{let[de,xe]=Ie;return K(Se.attr.key,de,xe)});const Me=t(Se.attr.key);Me&&ie.push(Me.data)}}const he=(0,c.RO)(ie);return(0,c.RO)(g.filter(re=>!S.includes(re.key)&&!he.find(fe=>fe.key===re.key))).concat(he)},L=ie=>{const oe=[],he=x.sub;for(const re of he){const fe=v(re.attr.trigger);for(const Se of re.sub){if(Se.attr.interactionType==="dummy")continue;if(Se.type==="branchRoot")for(const Ie of Se.sub)for(const de of Ie.sub){if(de.type==="action"&&de.attr.interactionType==="dummy")continue;Object.entries(fe).map(Le=>{let[ve,je]=Le;return K(Se.attr.key,ve,je)});const xe=t(de.attr.key);xe&&oe.push(xe.data)}Object.entries(fe).map(Ie=>{let[de,xe]=Ie;return K(Se.attr.key,de,xe)});const Me=t(Se.attr.key);Me&&(ie.includes(Me.data.interactionTrigger)&&K(Se.attr.key,"!validVersion",2),oe.push(Me.data))}}const ce=(0,c.RO)(oe);return g.filter(re=>!S.includes(re.key)&&!ce.find(fe=>fe.key===re.key)).concat(ce).filter((re,fe,Se)=>re.interactionType!==n.O2.TriggerPlaceHolder||fe===Se.findIndex(Me=>Me.interactionType===n.O2.TriggerPlaceHolder&&(0,o.AE)(Me)===(0,o.AE)(re)&&Me.subKey===re.subKey))},U=ie=>x.sub.find(oe=>oe.attr.trigger===(0,r.oS)(ie)),A=(ie,oe,he)=>{if(ie.interactionType===n.O2.ConditionalBranches){const ce=(0,c.jB)({attr:{...ie,data:{...ie}},supKey:oe,level:2});return D(ce),ie.branches.forEach((re,fe)=>{let{condition:Se}=re;const Me=ie.key+"_branch_"+fe,Ie={type:"branch",attr:{key:Me,condition:Se},level:ce.level+1,branchIndex:fe,sub:[],sup:ce.attr.key};D(Ie);const de=(0,c.vh)({branchKey:Me,level:Ie.level+1,trigger:ie.key});de.sup=ce.attr.key,D(de)}),ce}else D((0,c.db)({attr:{...ie,data:{...ie}},supKey:oe}),he)},D=(ie,oe)=>{const he=ie.sup,ce=k(ie.sup);if(!ce){const re=(0,c.TK)({key:he,trigger:(0,c.KN)(he),sub:[],triggerDisable:!1});B(re,re.sup),B(ie,re.attr.key),K(ie.attr.key,"triggerDisable",!1);return}if(ce.type==="trigger"){const re=x.sub.find(fe=>fe.attr.key===he);B(ie,he),K(ie.attr.key,"triggerDisable",re.attr.disabled),G(ie.attr.key)}else if(ce.type==="branch"){const re=ce.branchIndex,fe=k(ce.sup);if(B(ie,ie.sup),G(ie.attr.key),!(oe!=null&&oe.skipUpdateBranches)){const Se=JSON.parse(JSON.stringify(fe.attr.branches));Se[re].subItaRefList=[...Se[re].subItaRefList,ie.attr.key],K(fe.attr.key,"branches",Se)}}},B=(ie,oe)=>{var he;$(ie),(he=k(oe))==null||he.sub.push(ie)},j=ie=>{let{oldBranches:oe,branchIndex:he,type:ce,itaKeyList:re,option:fe}=ie;const Se=[...oe];Se[he]={condition:oe[he].condition,subItaRefList:oe[he].subItaRefList};const Me=Se[he].subItaRefList;if(ce==="add")if(fe){const Ie=Me.findIndex(Le=>Le===fe.targetKey),de=Ie===-1?Me.length:Ie,xe=fe.insertType==="prevSibling"?de:de+1;Se[he].subItaRefList=(0,I.nK)(Me,xe,...re)}else Se[he].subItaRefList=Me.concat(re);else Se[he].subItaRefList=Me.filter(Ie=>!re.includes(Ie));return Se},F=(ie,oe)=>{const he=(0,c.KN)(oe),ce=(0,c.zS)(ie,x);if(!ce)return;const re=k(ce.sup);if(!re)return;const fe=v(he);if((0,c.sJ)(oe)&&(0,c.sJ)(ce.sup)){const Se=x.sub.find(Ie=>Ie.attr.key===ce.sup),Me=(0,c.xx)(Se.sub);if(Me.length===0||Me.length===1){ge({preTriggerNode:Se,nextTNodeTrigger:he});const Ie=x.sub.find(xe=>xe.attr.key===oe);let de;Ie&&(de=Ie.attr.disabled);for(const xe of Se.sub)Object.entries(fe).map(Le=>{let[ve,je]=Le;return te({selectNode:xe,attr:ve,value:je})}),de!==void 0&&te({selectNode:xe,attr:"triggerDisable",value:de})}else{Se.sub=Se.sub.filter(xe=>xe.attr.key!==ce.attr.key);const Ie=x.sub.find(xe=>xe.attr.key===oe);let de=!1;Ie?(B(ce,oe),de=Ie.attr.disabled):B((0,c.TK)({key:oe,trigger:he,sub:[ce],triggerDisable:!1}),"root"),te({selectNode:ce,attr:"triggerDisable",value:de}),Object.entries(fe).map(xe=>{let[Le,ve]=xe;return te({selectNode:ce,attr:Le,value:ve})})}}else if((0,c.sJ)(oe)&&re.type==="branch"){const Se=(0,c.KN)(oe),Me=k(re.sup);if(!Me)return;V(ce.sup,ce.attr.key);const Ie=j({oldBranches:Me.attr.branches,branchIndex:re.branchIndex,type:"del",itaKeyList:[ce.attr.key]});K(Me.attr.key,"branches",Ie);const de=k(oe);let xe=!1;de?(B(ce,de.attr.key),xe=de.attr.disabled):x.sub.push((0,c.TK)({key:oe,trigger:Se,sub:[ce],triggerDisable:!1})),Object.entries(fe).map(Le=>{let[ve,je]=Le;return te({selectNode:ce,attr:ve,value:je})}),te({selectNode:ce,attr:"triggerDisable",value:xe})}},Y=(ie,oe,he)=>{if(ie===oe)return;const ce=k(ie),re=k(oe);if(!ce||!re)return;if((0,c.sJ)(ie)&&(0,c.sJ)(oe)){const Me=x.sub.findIndex(de=>de.attr.key===ie),Ie=x.sub.findIndex(de=>de.attr.key===oe);if(he==="prevSibling"){const de=Me>Ie?0:-1;x.sub=(0,I.be)(x.sub,Ie+de,Me)}else{const de=Me>Ie?1:0;x.sub=(0,I.be)(x.sub,Ie+de,Me)}return}if((0,c.sJ)(ce.sup)&&(0,c.sJ)(re.sup)){const Me=k(ce.sup),Ie=k(re.sup);if(!Me||!Ie)return;Me.sub=Me.sub.filter(Le=>Le.attr.key!==ce.attr.key);const de=Ie.sub.findIndex(Le=>Le.attr.key===re.attr.key);he==="prevSibling"?Ie.sub=(0,I.nK)(Ie.sub,de,ce):Ie.sub=(0,I.nK)(Ie.sub,de+1,ce);const xe=v(Ie.attr.trigger);Object.entries(xe).map(Le=>{let[ve,je]=Le;return te({selectNode:k(ie),attr:ve,value:je})}),te({selectNode:k(ie),attr:"triggerDisable",value:Ie.attr.disabled});return}const fe=k(ce.sup),Se=k(re.sup);if(!(!fe||!Se)&&(fe.type==="branch"||Se.type==="branch")){if(fe.type==="branch"){const Ie=k(fe.sup),de=j({oldBranches:Ie.attr.branches,branchIndex:fe.branchIndex,type:"del",itaKeyList:[ce.attr.key]});K(Ie.attr.key,"branches",de)}if(V(ce.sup,ce.attr.key),Se.type==="branch"){const Ie=k(Se.sup),de=j({oldBranches:Ie.attr.branches,branchIndex:Se.branchIndex,type:"add",itaKeyList:[ce.attr.key],option:{type:"add",insertType:he,targetKey:re.attr.key}});K(Ie.attr.key,"branches",de),K(ce.attr.key,"actionDisable",Ie.attr.actionDisable)}const Me=Se.sub.findIndex(Ie=>Ie.attr.key===re.attr.key);he==="prevSibling"?Se.sub=(0,I.nK)(Se.sub,Me,ce):Se.sub=(0,I.nK)(Se.sub,Me+1,ce),ce.sup=Se.attr.key,G(ie)}},X=()=>h,z=ie=>{if(!ie)return[];const oe=[ie];let he=ie.sup;for(;he!=="root";){const ce=k(he);if(!ce)break;oe.push(ce),he=ce.sup}return oe},Z=ie=>{let oe=k(ie);if(oe){for(;oe.type!=="trigger"&&(oe=_.get(oe.sup),!!oe););return oe}},J=ie=>{let{trigger:oe,attr:he,value:ce}=ie;const re=(0,c.Mc)({interactionTree:x,trigger:oe});(0,c._k)(re,fe=>{K(fe.attr.key,he,ce)})},te=ie=>{let{selectNode:oe,attr:he,value:ce}=ie;K(oe.attr.key,he,ce),(0,c._k)(oe,re=>{K(re.attr.key,he,ce)})},ge=ie=>{let{preTriggerNode:oe,nextTNodeTrigger:he}=ie;if(!oe)return;const ce=oe,re=v(he);ce.attr.key=(0,c.iY)(he),ce.attr.trigger=he,ce.attr.triggerInfo=re};return{_interactionTree:x,type:f,query:{getNode:k,getInteractionByKey:t,getInteractions:N,getNodeInteractionWithSub:W,getTriggerNode:U,getSelectSubItaType:X,findUpNodeList:z,findUpTriggerNode:Z,getCurrentWidget:()=>i,getTriggerInfoByNTrigger:v},command:{deleteByTreeNode:Q,insertNode:D,insertNodeDirectly:B,insertNodeIta:A,moveNodeToNewSup:F,moveNodeToSibiling:Y,updateTriggerSubNode:J,updateNodeWalk:te,updateTriggerNodeWalk:ie=>{let{trigger:oe,attr:he,value:ce,nextTNodeTrigger:re}=ie;Y((0,c.iY)(re),(0,c.iY)(oe),"prevSibling");const fe=(0,c.Mc)({interactionTree:x,trigger:oe});if(ge({preTriggerNode:fe,nextTNodeTrigger:re}),he==="interactionTrigger"){const Se=v(re);Object.entries(Se).map(Me=>{let[Ie,de]=Me;(0,c._k)(fe,xe=>{K(xe.attr.key,Ie,de)})})}else(0,c._k)(fe,Se=>{K(Se.attr.key,he,ce)})},replaceIta:ie=>{const oe=b.get(ie.key);oe&&(oe.data=ie)},getInteractionsWithUV:L,toBranchRootNode:ie=>{let{newIta:oe}=ie;const he=k(oe.key),ce=b.get(oe.key);if(!(!ce||!he)){he.type="branchRoot",ce.data=oe;for(const[fe,Se]of Object.entries(oe.branches)){const Me=oe.key+"_branch_"+fe,Ie=(0,c.dq)({branchKey:Me,supNode:he,condition:Se.condition,branchIndex:fe});B(Ie,he.attr.key);for(const de of Se.subItaRefList){var re;const xe=(re=oe.tempItaList)==null?void 0:re.find(Le=>Le.key===de);xe&&A(xe,Ie.attr.key,{skipUpdateBranches:!0})}}}},updateTriggerNodeAttr:ge,updateTriggerInfo:w}}}},14002:(He,ee,e)=>{"use strict";e.d(ee,{I:()=>u});var n=e(14166),r=e(79770),c=e(98915),o=e(20089),I=e(62280);const u=(d,C,h,i,f)=>{const p=[],s=d.getRootSnapshot(),l=a=>{d.getSnapshotItem(a)&&p.push(a)},_=a=>{const M=sdkStore.getHotItem(a).hotAttr;if(M.isVisible===!0&&M.isLock===!1){if((M.type===o.x.WTear||M.type===o.x.WSticky)&&!i)return;if(h)switch(M.type){case"wElbow":{const x=M.elbow.elbowType;if(x==="straight")(0,r.s6)((0,r.pe)(sdkStore,a,M),b)&&l(a);else if(x==="curve")(0,n.cj)(b,(0,r.C0)(sdkStore,a,M))&&l(a);else for(const g of(0,r.wF)(sdkStore,a,f/100))if((0,n.cj)(b,g)){l(a);break}break}case"wArrow":case"wLine":{(0,r.s6)((0,r.pe)(sdkStore,a,M),b)&&l(a);break}case"wBasket":{sdkStore.isActiveKey(a)&&sdkStore.isActiveKey(M.refRBPageKey)&&sdkStore.isActiveKey(M.refContentKey)&&sdkStore.getHotItem(M.refContentKey).sup===M.refRBPageKey&&(0,n.cj)(b,(0,r.C0)(sdkStore,a,M))&&l(a);break}case"wWrap":{const x=(0,c.py)(a);if(x!==null){const g=(0,I.Pb)(x);(0,n.cj)(b,g)&&l(a)}break}default:{const x=o.Q.USE_CLIP_TEXT.includes(M.type)?(0,c.dU)(a):(0,r.C0)(sdkStore,a,M);(0,n.cj)(b,x)&&l(a);break}}else{const x=o.Q.USE_CLIP_TEXT.includes(M.type)?(0,c.dU)(a):(0,r.C0)(sdkStore,a,M);(0,n.Pn)(b,x)&&l(a)}}},b=[C.x,C.y,C.x+C.w,C.y+C.h];for(const a of sdkStore.getHotItem(s.key).sub){const M=sdkStore.getHotItem(a);if(!(M.hotAttr.isVisible===!1||M.hotAttr.isLock===!0))if(M.hotAttr.type==="rResCanvas"){const{hotAttr:{isClipContent:x}}=M,g=sdkStore.getHotAABB(a);if((0,n.Pn)(b,g))l(a);else if((0,n.cj)(b,g)||!x)for(const S of M.sub)_(S)}else _(a)}return p}},14073:(He,ee,e)=>{"use strict";e.d(ee,{LA:()=>n.LA,Nx:()=>c.N,Pi:()=>n.Pi,Q1:()=>h.Q,ZY:()=>I.Z,a$:()=>d.a,dL:()=>r.dL,hP:()=>o.h,oi:()=>u.o,wp:()=>n.wp});var n=e(54801),r=e(23536),c=e(89974),o=e(44115),I=e(30728),u=e(99963),d=e(61627),C=e(93e3),h=e(41818)},14269:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>o});var n=e(38502);const r=I=>(u,d)=>{const C=(0,n.useRef)(!1);I(()=>()=>{C.current=!1},[]),I(()=>{if(!C.current)C.current=!0;else return u()},d)},c=null,o=r(n.useEffect)},14285:(He,ee,e)=>{"use strict";e.d(ee,{Ws:()=>c,bu:()=>o,mh:()=>I});var n=e(67787);const r=n.Ay.div.withConfig({displayName:"styles__StyledFilterWords",componentId:"sc-1pmrs9z-0"})(["width:235px;margin:0 auto;ul{list-style-type:none;display:grid;grid-row-gap:8px;grid-column-gap:4px;grid-template-columns:repeat(",",1fr);padding:4px 0 10px 0;margin:0 5.5px;li{display:inline-flex;align-items:center;justify-content:center;height:24px;border-radius:6px;cursor:pointer;background:",";color:",";&:not(.active):hover{background:",";}&.active{background-color:",";color:",";font-weight:500;}}}ul{li{border:1px solid ",";&.active{border:1px solid ",";}}}"],u=>u.col,u=>u.theme.color_bg_white,u=>u.theme.color_text_L1,u=>u.theme.color_btn_secondary_hover,u=>u.theme.color_btn_primary_normal,u=>u.theme.color_text_btn,u=>u.theme.color_bg_border_01,u=>u.theme.color_btn_primary_normal),c=n.Ay.div.withConfig({displayName:"styles__StyledPictureList",componentId:"sc-1pmrs9z-1"})(["display:flex;flex-direction:row;overflow-x:hidden;overflow-y:auto;& > div:first-child{margin-right:8px;}& > div{display:flex;flex-direction:column;height:max-content;}"]),o=n.Ay.div.withConfig({displayName:"styles__StyledPictureItem",componentId:"sc-1pmrs9z-2"})(["cursor:pointer;position:relative;width:","px;height:","px;min-height:","px;margin-bottom:",";background-size:cover;border-radius:6px;margin-right:",";&.lazy{display:flex;align-items:center;justify-content:center;img{max-width:100%;max-height:100%;border-radius:6px;}}&.normal{background-image:url(",');}&:hover{&::after{outline:2px solid #79baff;}.copy-right{display:flex;}}&::after{content:"";position:absolute;top:0px;left:0px;width:100%;height:100%;border-radius:6px;transition:all 0.15s ease-in-out 0s;}.copy-right{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(180deg,rgba(0,0,0,0) -31.25%,rgba(0,0,0,0.8) 100%);height:24px;font-size:12px;color:white;align-items:center;padding:0 6px;justify-content:space-between;overflow:hidden;border-radius:0 0 4px 4px;flex-direction:row;display:none;z-index:1;.user-name{color:white;max-width:70px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}&.active{opacity:0.5;}'],u=>u.width,u=>u.height,u=>u.height,u=>u.isHistoryItem?"":"8px",u=>u.isHistoryItem?"8px":"",u=>u.url),I=n.Ay.div.withConfig({displayName:"styles__StyledStickerItem",componentId:"sc-1pmrs9z-3"})(["&.builtin{display:flex;justify-content:center;align-items:center;border-radius:6px;cursor:pointer;&:hover{background-color:",';}img{height:36px;}}&.card{display:flex;justify-content:center;align-items:center;transition:all 0.15s ease-in-out 0s;height:82px;position:relative;border-radius:6px;cursor:pointer;&:hover{&::after{border:2px solid #79baff;}.copy-right{display:flex;}}&::after{content:"";position:absolute;top:0px;left:0px;width:100%;height:100%;border-radius:5px;border:1px solid ',";transition:all 0.15s ease-in-out 0s;}img{height:60px;}}&.active{opacity:0.5;}"],u=>u.theme.color_btn_secondary_hover,u=>u.theme.color_btn_secondary_hover)},15086:(He,ee,e)=>{"use strict";e.d(ee,{M:()=>u});var n=e(95549);class r{constructor(C){(0,n.A)(this,"worker",null),this.workerURL=C}spawn(C){if(this.worker){console.warn("Worker is already running");return}this.worker=new Worker(this.workerURL),this.worker.onmessage=C}postMessage(C){if(!this.worker){console.warn("Worker is not running, cannot post message");return}this.worker.postMessage(C)}terminate(){this.worker&&(this.worker.onmessage=null,this.worker.terminate(),this.worker=null)}restart(C){this.terminate(),this.spawn(C)}}var c=e(43838),o=e(89054),I=e(78571);class u{constructor(C,h){(0,n.A)(this,"worker",null),(0,n.A)(this,"prevHtml",""),(0,n.A)(this,"isCanceled",!1),(0,n.A)(this,"state",{type:"idle"}),(0,n.A)(this,"listeners",[]),(0,n.A)(this,"dispatchFn",null),(0,n.A)(this,"subscribe",i=>(this.listeners=[...this.listeners,i],()=>{this.listeners=this.listeners.filter(f=>f!==i)})),(0,n.A)(this,"getSnapshot",()=>this.state),this.originWidgetKey=C,this.getWorldPos=h,this.originWidgetKey=C,this.getWorldPos=h}setDispatch(C){this.dispatchFn=C}setState(C){this.state=C,this.emitChange()}emitChange(){this.listeners.forEach(C=>C(this.state))}getPrevHtml(){return this.prevHtml}getIsCanceled(){return this.isCanceled}ensureWorker(){return this.worker||(this.worker=new r(I)),this.worker}async convert(C,h){const{htmlString:i,fileName:f,autoPaste:p=!0,targetType:s="rResBunch"}=C,l=h||{};if(this.isCanceled=!1,this.setState({type:"converting"}),i===""){var _;await((_=l.onError)==null?void 0:_.call(l));const a=I18N.Html2WidgetConverter.invalid_html_format;this.setState({type:"failed",reason:a});return}const b=this.ensureWorker();b.restart(async a=>{if(a.data.type==="result"){var M;const S=await(0,c.c3)(a.data.data,"widget");if(S&&p&&this.dispatchFn){const t=l.checkPasteBefore;if(t&&!await t())return;this.dispatchFn({type:"entry:paste:items:into:current-page",payload:{contentFromCBE:S,triggerType:"shortcut",isZoom:!0,targetItemKey:this.originWidgetKey,getWorldPos:this.getWorldPos}})}await((M=l.onSuccess)==null?void 0:M.call(l)),this.setState({type:"success"})}else if(a.data.type==="error"){var x;await((x=l.onError)==null?void 0:x.call(l)),this.prevHtml=i;const S=I18N.Html2WidgetConverter.parse_error;this.setState({type:"failed",reason:S})}else if(a.data.type==="request-measure-rtas"){const{richTextAttr:S,measurementRequestID:t}=a.data;(0,o.N7)(S,!1).then(v=>b.postMessage({type:"rtas-measurement-result",richTextAutoSize:v,measurementRequestID:t}))}else if(a.data.type==="convert"){var g;(g=l.onProgress)==null||g.call(l,a.data.stage)}}),b.postMessage({type:"start",htmlString:i,fileName:f,targetType:s,uId:MB.user.id,upperCid:MB.getRootProject().cid})}cancel(){var C,h;(C=this.worker)==null||C.postMessage({type:"abort"}),(h=this.worker)==null||h.terminate(),this.setState({type:"idle"}),this.isCanceled=!0}reset(){this.setState({type:"idle"})}destroy(){var C;this.prevHtml="",(C=this.worker)==null||C.terminate(),this.worker=null,this.listeners=[]}}},15400:(He,ee,e)=>{"use strict";e.d(ee,{Jz:()=>o,cG:()=>c,om:()=>r});var n=e(67787);const r=(0,n.AH)(["display:flex;justify-content:center;align-items:center;"]),c=n.Ay.div.withConfig({displayName:"style__Divider",componentId:"sc-21etpd-0"})(["margin:8px 0;border-top:1px solid ",";"],I=>I.theme.color_bg_border_01),o=n.Ay.div.withConfig({displayName:"style__StyledRedTips",componentId:"sc-21etpd-1"})(["position:absolute;top:0;right:0;display:inline-block;width:6px;height:6px;background:",";border:1px solid ",";border-radius:50%;"],I=>I.theme.color_btn_danger_normal,I=>I.theme.color_bg_white)},15542:(He,ee,e)=>{"use strict";e.d(ee,{Fo:()=>N,JL:()=>V,um:()=>O});var n=e(38502),r=e(12211),c=e(18381),o=e(70768),I=e(30728),u=e(44115),d=e(39e3),C=e(69368),h=e(23422),i=e(54801),f=e(41818),p=e(46082),s=e(70933),l=e(67588),_=e(4235),b=e(62587),a=e(86964),M=e(93413),x=e(47163),g=e(8580),S=e(56202),t=e(12566),v=e(72214);const w=L=>L.colorpanel.currentSelect,k=L=>L.colorpanel.isShowColorList,W=L=>L.colorpanel.colorInputOption,K=L=>L.colorpanel.historyColors,G=L=>L.colorpanel.favoriteColors,$=L=>L.colorpanel.colorPickerListener,P=()=>{},E=()=>{let L=!1,U=null;return A=>{try{if(L){var D;L=!1,(D=U)==null||D.abort("abort EyeDropper already opened")}else L=!0,U=new AbortController,MB.action("colorpanel:set:eyedropperStatus",{isEyedroppedOpen:!0}),new window.EyeDropper().open({signal:U.signal}).then(B=>{A(B),MB.action("colorpanel:set:eyedropperStatus",{isEyedroppedOpen:!1})}).catch(B=>!1).finally(()=>{L=!1,MB.action("colorpanel:set:eyedropperStatus",{isEyedroppedOpen:!1})})}catch(B){const{name:j,version:F}=(0,S.VK)();MB.action("colorpanel:set:eyedropperStatus",{isEyedroppedOpen:!1}),["Chrome","Edge"].includes(j)&&F<=95||j==="Opera"&&F<=81?MB.notice({text:"\u5F53\u524D\u6D4F\u89C8\u5668\u7248\u672C\u4E0D\u652F\u6301\u53D6\u8272\u5668"}):MB.notice({text:"\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u53D6\u8272\u5668"})}}},H=()=>{let L=!1,U=null;const A=n.memo(F=>{let{colorPickedCallback:Y,setIsNativeEyedropperComponentClosed:X,openDownloadPluginModal:z,event:Z}=F;const[J,te]=(0,n.useState)(!0);(0,n.useEffect)(()=>(U=te,()=>{U=null}),[]),(0,n.useEffect)(()=>{J&&(MB.action("colorpanel:set:eyedropperStatus",{isEyedroppedOpen:!0}),X==null||X(!1))},[J]);const ge=Ce=>{Y({sRGBHex:Ce})},pe=(0,n.useCallback)(()=>{L=!1,te(!1),X==null||X(!0),MB.action("colorpanel:set:eyedropperStatus",{isEyedroppedOpen:!1})},[te]);return(0,n.useEffect)(()=>{const Ce=me=>{me&&me.key!=="Escape"||pe()};return document.addEventListener("keydown",Ce),()=>{document.removeEventListener("keydown",Ce)}},[pe]),(0,v.jsx)(p.A,{open:J,event:Z,onClose:pe,onChange:ge,handleOpenDownloadPluginModal:z})});let D=null;const B=document.createElement("div");document.body.appendChild(B),D=o.createRoot(B);const j=()=>MB.action("modal:update:state",{colorPickerDownloadModal:{isOpen:!0}});return(F,Y,X)=>{try{if(L)L=!1,U&&U(!1);else{var z;if(!window.mbRequestMessage){j();return}L=!0,U&&U(!0),(z=D)==null||z.render((0,v.jsx)(A,{colorPickedCallback:F,setIsNativeEyedropperComponentClosed:X,openDownloadPluginModal:j,event:Y}))}}catch(Z){MB.notice({text:"\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u53D6\u8272\u5668"}),console.log(Z)}}},O=E(),V=H(),Q=(0,r.Mz)([_.nE,s.$S,w,W,K,G,$,s.an,l.O4,l.AM,l.nu,k,s.X_,s.ER],(L,U,A,D,B,j,F,Y,X,z,Z,J,te,ge)=>{const pe={scale:te/100,size:U,offset:ge};let Ce,me;if(L.length>0){const{key:oe,hotAttr:he={}}=L[0];me=(0,g.Oj)(oe),Ce={cid:oe,name:he.type,w:he.w,h:he.h,x:he.x,y:he.y}}const be=B.map(oe=>(0,b.jA)(oe,{w:1,h:1})),ie=j.map(oe=>(0,b.jA)(oe,{w:1,h:1}));return{widgetProps:Ce,boundingBox:me,currentSelect:A==="history"?"favorite":A,colorInputOption:D,isEyedroppedOpen:Y,historyColors:be,favoriteColors:ie,colorPickerListener:F,theme:X,useNativeEyedropper:z,colorPanelMode:Z,isShowColorList:J,viewport:pe}}),N=L=>{const{color:U,attr:A,supAttr:D,index:B,onSetRefStyle:j,onColorChange:F,activeColorPanelTab:Y,length:X,isDefaultColor:z,onResetColor:Z,pIsSolidColorOnly:J=!1,position:te,isShowLibPanel:ge,canCreateColorRef:pe,onSetPosition:Ce,colorThumbnailEle:me,colorUsedRefStyleEle:be,canStopPropagation:ie=!0,onCloseColorPanel:oe,onApplyDidMountSideEffect:he}=L,{isShowColorList:ce,isEyedroppedOpen:re,widgetProps:fe,viewport:Se,boundingBox:Me,colorInputOption:Ie,currentSelect:de,historyColors:xe,favoriteColors:Le,colorPickerListener:ve,theme:je,useNativeEyedropper:We,colorPanelMode:Ae}=(0,c.d4)(Rt=>Q(Rt)),we=D!=="fill"||J,_e=(0,n.useRef)(null);(0,n.useEffect)(()=>()=>{_e.current&&clearTimeout(_e.current)},[]);const Te=()=>!Ae||Ae==="panel"?1:0,Ye=Rt=>{var Wt;const Kt=Rt.target;if(Kt.closest("#lib-panel-color-edit-modal"))return;const Gt=document.querySelector(".color-input-wp")||null;if(!Kt.closest(".--mb--color-picker")&&!Kt.closest(".gradient-control-bar")&&Gt!=null&&Gt.classList.contains("is-active")){Rt.stopPropagation(),Gt.classList.remove("is-active"),Gt.blur&&(Gt.blur(),_e.current&&clearTimeout(_e.current),_e.current=setTimeout(()=>{oe()}));return}if(me!=null&&me.current.contains(Kt)||be!=null&&(Wt=be.current)!=null&&Wt.contains(Kt))return Rt.preventDefault();Kt.closest(".header-btn")&&Rt.preventDefault();const St=Kt.closest(".hover-add")||Kt.closest("#circle1")||Kt.closest("#circle2")||Kt.closest("#circle3")||Kt.closest(".color-stop");if(Kt.closest("#mb-toolbar")||Kt.closest("#left-slide-panel")||Kt.closest("#right-slide-panel")||Kt.closest("[type=color-btn]")||Kt.closest("#screens")&&!St||Kt.closest(".draft-inline-toolbar .quick-menu-option")||Kt.closest(".draft-inline-toolbar .typeface2-btn"))return ie&&Rt.stopPropagation(),oe()},Fe=()=>{var Rt;const Wt=((Rt=document.getElementById("screens"))==null?void 0:Rt.getBoundingClientRect())||{width:0,height:0};return new u.h().scale(Se.scale,Se.scale).translate(I.Z.xy(Wt.width/2,Wt.height/2)).translate(I.Z.xy(Se.offset.x,Se.offset.y))},Ve=(0,c.wA)(),rt=Rt=>{Rt.colorDropdownOption?Ve({type:"colorpanel:set:currentSelect",payload:{currentSelect:Rt.colorDropdownOption}}):Rt.colorInputOption?Ve({type:"colorpanel:set:colorInputOption",payload:{colorInputOption:Rt.colorInputOption}}):Rt.favoriteColors?Ve({type:"entry:update:favorite-colors",payload:{favoriteColors:JSON.stringify(Rt.favoriteColors.map(Wt=>(0,b.sD)(Wt)))}}):Rt.historyColors&&Ve({type:"entry:update:history-colors",payload:{historyColors:JSON.stringify(Rt.historyColors.map(Wt=>(0,b.sD)(Wt)))}})},Ue=Rt=>{Rt.colorPickerListener&&Ve({type:"colorpanel:set:colorPickerListener",payload:{colorPickerListener:Rt.colorPickerListener}})};let et=!1;const[lt,Je]=(0,n.useState)(!0),Xe=async Rt=>{if((0,S.b8)()){let Wt=null;try{Wt=window.MB_DESKTOP_GET_COLOR_HEX_RGB||window.parent.MB_DESKTOP_GET_COLOR_HEX_RGB}catch(Kt){console.warn(Kt)}if((0,S.uF)()&&We)new window.EyeDropper().open().then(Kt=>{let{sRGBHex:Gt}=Kt;return ve(f.Q.hex(Gt))});else{if(!Wt||et)return;et=!0;try{Wt().then(Kt=>{if(!Kt)return;const{hex:Gt}=(0,C.H0)(Kt);ve(f.Q.hex(Gt))},Kt=>console.warn(Kt)).then(()=>et=!1)}catch(Kt){console.warn(Kt),et=!1}}}else{if(ENV.IS_MO){window.EyeDropper&&O(Wt=>{let{sRGBHex:Kt}=Wt;return ve(f.Q.hex(Kt))});return}if((0,S.cX)()){window.EyeDropper&&O(Wt=>{let{sRGBHex:Kt}=Wt;return ve(f.Q.hex(Kt))});return}if(!window.chrome){Ve({type:"modal:update:state",payload:{colorPickerDownloadModal:{isOpen:!0}}});return}if(window.mbSendMessage){V(Wt=>{let{sRGBHex:Kt}=Wt;return ve(f.Q.hex(Kt))},Rt,Je);return}Ve({type:"modal:update:state",payload:{colorPickerDownloadModal:{isOpen:!0}}})}},st=(Rt,Wt,Kt)=>{Rt&&(F({value:(0,b.F0)(Rt),compressible:Wt}),Rt.type!==i.LA.Solid&&MB.commonGuideHelper.checkGuideToBeShown(M.c.GUIDE_GRADIENT_FILL)&&!MB.commonGuideHelper.checkGuideHasShown(M.c.GUIDE_GRADIENT_FILL)&&(MB.commonGuideHelper.closeGuide(M.c.GUIDE_GRADIENT_FILL),MB.commonGuideHelper.markGuideAsRead(M.c.GUIDE_GRADIENT_FILL)))},nt=(0,b.$8)(U,{w:(fe==null?void 0:fe.w)||200,h:(fe==null?void 0:fe.h)||100}),tt=Rt=>{Ve({type:"entry:update:color_panel_mode",payload:{mode:Rt===1?"panel":"space"}})},ct=Rt=>{Ve({type:"colorpanel:set:isShowColorList",payload:{isShowColorList:Rt}})},ht=()=>{sdkStore.combineMergeMark("color-panel-change")},It=()=>{sdkStore.combineMerge("color-panel-change")};(0,n.useEffect)(()=>(MB.f.isInSetting=!0,()=>{MB.f.isInSetting=!1}),[]);const it=Rt=>{if(Rt){let Wt;U.fill!=="solid"?Wt={fill:"solid",fillIsVisible:U.fillIsVisible,solidColor:U.knobList[0].color}:Wt={...U},Ve({type:"modal:update:state",payload:{libEditColorModal:{isOpen:!0,position:{...te,left:te.left-240},type:"create",supAttr:D,attr:A,color:Wt,onSetRefStyle:j,onColorChange:F}}})}else Ve({type:"modal:reset:popup:state",payload:{modalName:"libEditColorModal"}})},Tt=Rt=>{j(Rt),oe()},Lt=Rt=>{if(!Rt||!he)return;const Wt=he(me,Rt);Wt&&Ce(Wt)};return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(h.SP,{locale:(0,x.w)(),theme:je,themeColor:a.fm.color_proto.value_light,widgetProps:fe,historyColors:xe,favoriteColors:Le,currentSelect:de,colorInputOption:Ie,colorPickerEnabled:!1,isEyedropperOpen:re,nativeEyedropperIsOpen:lt,toggleColorPicker:Xe,saveColorPreference:rt,containerEle:document.querySelector("#screens"),viewport:Se,screenOffset:I.Z.xy(0,48),contextTransform:Fe(),boundingBox:Me,controlBarInteract:P,setInteraction:Ue,isDefaultColor:z,onResetColor:Z,colorObj:nt,attr:A,position:te,isSolidColorOnly:we,isHideBlendMode:!0,index:X-B,activeTab:Y,isShowLibPanel:ge,canCreateColorRef:pe,onClose:oe,onPositionChanged:Ce,onColorSave:st,defaultTab:Te(),onChangeTab:tt,onChangeShowColorList:ct,isShowColorList:ce,onMouseDownCallback:ht,onMouseUpCallback:It,onMouseDownToggleCreateModal:it,onApplyDidMountSideEffect:Lt,children:(0,v.jsx)(t.k,{type:"color",onSetRefStyle:Tt,onColorChange:F,onClose:oe})}),(0,v.jsx)(d.A,{target:document,onMouseDown:(0,d.t)(Ye,{capture:!0})})]})}},15572:(He,ee,e)=>{"use strict";e.d(ee,{P:()=>$n});var n=e(38502),r=e(18381),c=e(12211),o=e(67052),I=e(95549),u=e(70933),d=e(74923),C=e(11032),h=e(79371),i=e.n(h),f=e(17307),p=e(67588),s=e(53732),l=e.n(s),_=e(93093),b=e(11582),a=e(65415),M=e(68434),x=e(24374),g=e(93971),S=e(18356),t=e(20089),v=e(72214);class w extends n.PureComponent{render(){const{className:cn,level:xt,builtWidgets:Et,collapsePanelSet:jt,onRenderIcon:Jt,onTogglePanel:In,screenMeta:En,rootProject:hn,showDragMode:_o,isAdsorbentReferenceLine:yo,popupsPanelName:Qn,keyword:ze="",quickCreateBuiltinSceneData:Oe,dispatch:De}=this.props;if(!Et)return null;const{cid:Be,type:Qe,groupName:$e,items:ot}=Et,mt=jt.has(Be);return(0,v.jsx)(b.A,{className:l()("search-result-item-collapse",cn),id:Be,title:$e,expanded:mt,renderIcon:()=>Jt(mt),onToggle:()=>In(Be),isSearch:!0,secondary:!0,level:xt,children:(0,v.jsx)("ul",{className:l()("search-result-item-container","search_built_widgets",Qe),children:ot.map(ft=>{const{cid:gt,name:_t,svg_icon:Yt,isMockingBotWidget:Ft,template:Zt,type:Nt,key:Qt}=ft;if([t.x.WRichText,t.x.WRect,t.x.WImage].includes(Nt)){const yn=(0,S.OZ)(Nt);if(yn)return(0,v.jsx)(M.A,{widgetInsertableData:yn,className:l()({active:Oe===yn.data})},yn.key)}return Ft?(0,v.jsx)(x.Y,{screenMeta:En,rootProject:hn,groupCid:"builtin",name:_t,type:Nt,icon:Yt,showDragMode:_o,isAdsorbentReferenceLine:yo,popupsPanelName:Qn,source:g.ol.SearchPanel,keyword:ze,keyIcon:Qt,dispatch:De},_t):Zt?(0,v.jsx)(x.C,{template:ft,showDragMode:_o,isAdsorbentReferenceLine:yo,popupsPanelName:Qn,dispatch:De},gt):null})})})}}const k=(0,c.Mz)([u.Ur,u.PL,p.PI,p.k3,o.B8,d.uJ,u.L8],($t,cn,xt,Et,jt,Jt,In)=>({screenMeta:$t,rootProject:cn,showDragMode:xt,isAdsorbentReferenceLine:Et,popupsPanelName:jt,keyword:Jt,quickCreateBuiltinSceneData:In})),W=(0,r.Ng)($t=>k($t))(w);var K=e(29294),G=e(18575),$=e(40410),P=e(10472),E=e(54450),H=e(78257),O=e(43371);class V extends n.PureComponent{constructor(){super(...arguments),(0,I.A)(this,"onAddToOrg",cn=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{dispatch:xt,onSearch:Et}=this.props;xt({type:"entry:batch:transfer:user:combo:to:org",payload:{combo:cn,callback:()=>{Et&&Et()}}})}),(0,I.A)(this,"handleGetComboActions",()=>{const{currentOrg:cn,isOrg:xt,group:Et}=this.props;return{...(0,O.s)({...this.props,group:Et,popupsName:H.lS.Search}),onOrg:cn&&!xt?this.onAddToOrg:null}})}render(){const{item:cn,group:xt,isOrg:Et,currentUser:jt,containerRect:Jt,canEditLibrary:In,createTemplatesData:En}=this.props;return(0,v.jsx)(E.A,{groupCid:xt==null?void 0:xt.cid,item:cn,currentUserId:jt==null?void 0:jt.id,canEditLibrary:Et?In:!0,containerRect:Jt,comboActions:this.handleGetComboActions(),createTemplatesData:En},cn.key)}}const Q=(0,c.Mz)([u.wA,u.HW,u.X_,u.Pz,u.PL,p.PI,p.k3,u.F2,P.r,u.YY],($t,cn,xt,Et,jt,Jt,In,En,hn,_o)=>({currentOrg:$t,currentUser:cn,scale:xt,canvasRect:Et,rootProject:jt,showDragMode:Jt,isAdsorbentReferenceLine:In,projectUpperCid:En==null?void 0:En.cid,currentEditMode:hn,createTemplatesData:_o})),N=(0,r.Ng)($t=>Q($t))(V);var L=e(69874),U=e(68455),A=e(67787),D=e(80985),B=e(51090);const j=A.Ay.div.withConfig({displayName:"styles__StyledSearchPanel",componentId:"sc-78rp0k-0"})(["display:flex;flex:1 1 0;flex-direction:column;overflow:hidden;position:relative;> header{flex:none;height:48px;display:flex;align-items:center;padding:7px 6px;border-bottom:1px solid ",";> ol{width:100%;justify-content:flex-start;.nav-item{margin-left:8px;.nav-underline{width:85%;left:7.5%;}&:first-child{margin-left:unset;}}}}.template-category-header-nav{padding-left:7px;.nav-item{margin-left:8px;&:first-child{margin-left:unset;}}}.template-file-more-btn{display:flex;align-items:center;justify-content:center;color:",";cursor:pointer;svg{fill:none;width:5px;margin-left:6px;}}.result{flex:none;width:100%;background:",";display:flex;align-items:center;color:",";height:40px;padding:7px 12px;position:sticky;top:0;z-index:2;}.search-resources-detail-panel,.search-icon-detail-panel{> header{display:none;}.marketTemplate-list{margin-top:12px;}}> footer{width:100%;height:40px;display:flex;align-items:center;.color-settings{margin:0;}}.ai-entry-icon-button{&.screen_list .left svg{background:",";border-radius:8px;}&.combo_group .left svg{background:",";border-radius:8px;stop:first-child{stop-color:",";}stop:nth-child(2){stop-color:",";}}}.goto-community-button .left svg{rect{fill:",";}}"],$t=>$t.theme.color_bg_border_01,$t=>$t.theme.color_text_L3,$t=>$t.theme.color_bg_white,$t=>$t.theme.color_text_L3,$t=>$t.theme.comment_active,$t=>$t.theme.color_background_AI_component,$t=>$t.theme.color_AI_component_stop_color_1,$t=>$t.theme.color_AI_component_stop_color_2,$t=>$t.theme.community_icon_background_color),F=A.Ay.div.withConfig({displayName:"styles__StyledCenterContainer",componentId:"sc-78rp0k-1"})(["width:100%;height:100%;display:flex;align-items:center;justify-content:center;&.searchPanel{width:246px;}&.isFromIconSelectPopup{height:100%;}.loading-container{display:flex;align-items:center;justify-content:center;flex-direction:column;margin-top:-40px;margin-left:-25px;span{color:",";margin-top:9px;}}.loading{width:50px;height:50px;}img{margin-top:0;}"],$t=>$t.theme.color_text_L3),Y=A.Ay.div.withConfig({displayName:"styles__StyledSearchResultContent",componentId:"sc-78rp0k-2"})(["display:flex;flex-direction:column;width:246px;&::-webkit-scrollbar{width:4px !important;height:4px !important;}.resultList{flex:1;.search-result-item-collapse.asset .sticker-header{span{height:20px;line-height:18px;font-size:12px;color:",";}.mat-member{margin-left:4px;margin-bottom:2px;width:12px;width:12px;}}}.search-result-find-picture-container{padding:8px 12px 0;width:250px;}.search-result-find-sticker-container{padding:8px 12px;width:250px;}.search-result-item-container{padding:8px 6px 8px 8px;display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(auto-fill,109px);&.search_widget{grid-template-columns:repeat(auto-fill,70px);}&.search_built_widgets{padding:8px 6px 0 12px;}li{margin:0;}.template-item{width:109px;flex:0 0 109px;position:relative;.img-wrapper{width:100%;height:109px;border:none;border-radius:6px;border:1px solid ",";}}&.search_icon{display:grid;grid-row-gap:7px;grid-column-gap:8px;padding:0 12px;grid-template-columns:repeat(5,1fr);& > li{border:none;display:flex;justify-content:center;align-items:center;border-radius:6px;margin-right:7px;margin-bottom:8px;transition:all 0.2s ease-out 0s;&:hover{background:",";}}}&.isCombo{display:flex;flex-direction:column;grid-row-gap:16px;width:250px;padding:0px 12px 8px 12px;}}.search-page-result-container{width:250px;padding:0px 8px 8px 8px;.market-template-masonry-list-container{&.screen_list,&.project_basic{padding:1px 0 0 0;}}}.search-result-icon-group-list{&:not(:first-child){margin-top:8px;}}.search-widgets-render{margin-bottom:8px;}"],$t=>$t.theme.color_text_L1,$t=>$t.theme.color_bg_border_01,$t=>$t.theme.color_btn_secondary_hover),X=A.Ay.div.withConfig({displayName:"styles__StyledSearchResultFolder",componentId:"sc-78rp0k-3"})(["width:109px;flex:0 0 109px;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;.container{width:100%;height:82px;display:flex;align-items:center;justify-content:center;position:relative;svg.svg-icon.folder{width:62px;height:40px;path{&:first-child{fill:#ccc;}&:nth-child(2){fill:rgba(255,255,255,0.7);}&:nth-child(3){fill:#fff;}&:nth-child(4){fill:#c57d00;}&:nth-child(5){fill:#e5e5e5;}}}&::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;border-radius:4px;background-color:",";opacity:0;transition:opacity 0.2s ease-in-out;}.actions{z-index:1;position:absolute;display:flex;bottom:6px;right:6px;opacity:0;transition:all 0.15s ease-in-out;&.hover{opacity:1;}.flag-action{margin-right:4px;.library-tag{color:",";.rect{opacity:0.37;}}}.library-menu{color:",";width:16px;height:16px;}}&:hover{&::after{opacity:0.1;}.actions{opacity:1;}}}.item-name{display:flex;margin-top:4px;line-height:20px;text-align:center;cursor:text;justify-content:center;position:relative;.editable-name{width:100%;height:20px;line-height:20px;",";&.is-editing{border-bottom:1px solid #196ad4;}textarea{text-align:center;}}.item-action{display:none;position:absolute;width:14px;height:14px;bottom:3px;right:0;}&:hover{.item-action{display:flex;}}}"],$t=>$t.theme.color_text_L1,$t=>$t.theme.color_text_L1,$t=>$t.theme.color_text_L1,B.L9),z=A.Ay.div.withConfig({displayName:"styles__StyledComboGroupDetailPanel",componentId:"sc-78rp0k-4"})(["height:100%;display:flex;flex-direction:column;overflow:hidden;.combo-group-items-list{overflow-x:hidden;overflow-y:overlay;height:100%;flex:1;margin-top:12px;.scroll-container{padding:0 12px;display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(auto-fill,109px);width:250px;}}"]),Z=A.Ay.header.withConfig({displayName:"styles__StyledResourcesGroupHeader",componentId:"sc-78rp0k-5"})(["height:50px;min-height:50px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border-bottom:1px solid ",";position:relative;.nav-back-icon{margin-right:4px;flex:0 0 24px;svg.svg-icon{width:9px;height:14px;path{stroke:",";fill:none;}}}.center{flex:1;display:flex;align-items:center;justify-content:space-between;overflow:hidden;.title-box{width:calc(100% - 32px);display:flex;align-items:center;justify-content:center;margin-right:8px;}.template-title{margin-right:8px;}.title{white-space:nowrap;text-overflow:ellipsis;}.search-icon{flex:0 0 24px;}.search-bar{border-radius:13px;}.search-icon{svg.svg-icon{width:13px;height:14px;}}}.template-title{font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.title{font-size:14px;font-weight:500;text-align:center;color:",";textarea{text-align:center;}}.right{display:flex;align-items:center;justify-content:flex-end;flex:0 0 24px;margin-left:4px;}"],$t=>$t.theme.color_btn_secondary_active,$t=>$t.theme.color_text_L1,$t=>$t.theme.color_text_L1),J=A.Ay.div.withConfig({displayName:"styles__StyledResourcesGroupActionsMenu",componentId:"sc-78rp0k-6"})(["",""],B.n9),te=A.Ay.div.withConfig({displayName:"styles__StyledSearchResultIconGroupList",componentId:"sc-78rp0k-7"})(["header{display:flex;align-items:center;justify-content:space-between;height:32px;padding:0 12px;margin-bottom:8px;.left{display:flex;align-items:center;justify-content:center;column-gap:4px;.title{color:",";font-weight:500;display:inline-block;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.vip-icon{margin-left:4px;width:16px;height:16px;}}.right{display:flex;flex:0 0 40px;align-items:center;height:100%;color:",";cursor:pointer;margin-left:10px;.arrow-right{width:6px;height:10px;margin-left:10px;}}}"],$t=>$t.theme.color_text_L1,$t=>$t.theme.color_text_L3),ge=(0,A.Ay)(D.A).withConfig({displayName:"styles__StyledSearchResults",componentId:"sc-78rp0k-8"})(["flex:1;overflow:hidden auto;&::-webkit-scrollbar{width:4px;}.ai-entry-icon-button{display:flex;align-items:center;justify-content:start;margin:8px 0 16px 12px;padding:0 15px 0 12px;width:226px;height:56px;background-color:",";border-radius:8px;box-shadow:0px 2px 12px 0px #0303030F;cursor:pointer;.left{flex:1;display:flex;align-items:center;justify-content:start;span{font-size:12px;font-weight:500;color:",";}.AI-icon{margin-right:12px;width:32px;&.screen_list path{fill:none;}}}.arrow{fill:none;width:5px;path{stroke:",";}}}"],$t=>$t.theme.color_background_white_modal,$t=>$t.theme.color_text_L1,$t=>$t.theme.color_text_L1);class pe extends n.PureComponent{constructor(cn){var xt;super(cn),(0,I.A)(this,"handleEdit",jt=>{jt.stopPropagation(),this.setState({isEditing:!0}),this.handMouseLeave()}),(0,I.A)(this,"handleTransfer",jt=>{jt.stopPropagation();const{item:Jt,groupAction:{onTransfer:In}}=this.props;In(Jt)}),(0,I.A)(this,"handleConfirm",jt=>{const{isOrg:Jt,groupAction:{onConfirm:In},item:En}=this.props;In(jt,En,()=>{MB.notice({text:I18N.Popups.folder_save_success})},Jt),this.setState({isEditing:!1})}),(0,I.A)(this,"handleRemove",jt=>{jt.stopPropagation();const{isOrg:Jt,item:In,groupAction:{onRemove:En}}=this.props;En(In,Jt)}),(0,I.A)(this,"setListElementRef",jt=>this.$element=jt),(0,I.A)(this,"handleEditName",jt=>{jt.stopPropagation(),this.setState({isEditing:!0})}),(0,I.A)(this,"handMouseEnter",jt=>{jt.buttons===0&&this.setState({isListItemGroup:!0})}),(0,I.A)(this,"handMouseLeave",()=>{this.setState({isListItemGroup:!1})}),this.state={isEditing:!1,isListItemGroup:!1};const Et=cn.isOrg?cn.item.user_id&&cn.item.user_id===((xt=cn.currentUser)==null?void 0:xt.id):!0;this.menuItems=[{isShow:!0,label:I18N.ToolBar.rename,onClick:this.handleEdit},{isShow:Et,label:I18N.LibraryContainer.delete,onClick:this.handleRemove},{isShow:cn.canEditLibrary&&!cn.isOrg&&cn.currentOrg,label:I18N.Popups.add_to_org,onClick:this.handleTransfer}]}handStopPropagation(cn){cn.stopPropagation()}render(){const{item:cn,isOrg:xt,canEditLibrary:Et,onClickGroup:jt}=this.props,{cid:Jt,name:In}=cn,{isEditing:En,isListItemGroup:hn}=this.state,_o=xt?Et:!0;return(0,v.jsxs)(X,{className:"folder-group","data-cid":Jt,children:[(0,v.jsxs)("div",{className:"container",onClick:()=>jt(xt,cn),children:[(0,v.jsx)(f.C,{name:"art_board/folder",className:"folder"}),_o&&(0,v.jsxs)("div",{ref:this.setListElementRef,className:l()("actions",{hover:hn}),onMouseDown:this.handStopPropagation,onClick:this.handStopPropagation,onMouseEnter:this.handMouseEnter,onMouseLeave:this.handMouseLeave,children:[(0,v.jsx)(f.C,{name:"design/templates/temp-btn",className:"library-menu"}),hn&&(0,v.jsx)(U.A,{targetNode:this.$element,menuItems:this.menuItems,direction:"down",distance:2})]})]}),(0,v.jsxs)("div",{className:l()("item-name",{isLayerHover:!En}),onClick:this.handleEditName,children:[(0,v.jsx)(L.A,{value:In,className:"editable-name",isEditing:_o&&En,onConfirm:this.handleConfirm},In),_o&&!En&&(0,v.jsx)("div",{className:"item-action",children:(0,v.jsx)(f.C,{name:"general/pen"})})]})]})}}const Ce=(0,c.Mz)([u.HW,u.wA],($t,cn)=>({currentUser:$t,currentOrg:cn})),me=(0,r.Ng)($t=>Ce($t))(pe);var be=e(72606),ie=e(89505);class oe extends n.PureComponent{render(){const{item:cn,isOrg:xt,canEditLibrary:Et,containerRect:jt,currentUser:Jt,createTemplatesData:In,dispatch:En}=this.props;return(0,v.jsx)(be.O,{asset:cn,shouldAuth:xt,canEditLibrary:xt?Et:!0,assetActions:(0,ie.c)({...this.props,popupsName:H.lS.Search}),containerRect:jt,currentUserId:Jt==null?void 0:Jt.id,createTemplatesData:In,dispatch:En})}}const he=(0,c.Mz)([u.wA,u.HW,u.X_,u.Pz,u.PL,p.PI,p.k3,u.Ur,u.YY],($t,cn,xt,Et,jt,Jt,In,En,hn)=>({currentOrg:$t,currentUser:cn,scale:xt,canvasRect:Et,rootProject:jt,showDragMode:Jt,isAdsorbentReferenceLine:In,currentScreen:En,createTemplatesData:hn})),ce=(0,r.Ng)($t=>he($t))(oe);var re=e(83199),fe=e(46322),Se=e(10429),Me=e(54190),Ie=e(3862),de=e(77277),xe=e(90144);class Le extends n.PureComponent{constructor(){super(...arguments),(0,I.A)(this,"handleRenderSearchResultItem",(cn,xt)=>{const{isOrg:Et,containerRect:jt,rootProject:Jt,keyword:In,currentCategoryTab:En,canEditLibrary:hn,dispatch:_o,onSetCurrentNodeIcon:yo,onStarResources:Qn,onClickResources:ze,onPaidResources:Oe,onClickGroup:De,groupAction:Be,onSearch:Qe,onTrackTemplate:$e}=this.props;switch(cn){case de.I.SelfMakeCombo:return(0,v.jsx)(N,{item:xt,group:xt==null?void 0:xt.group,isOrg:Et,canEditLibrary:hn,containerRect:jt,onSearch:Qe});case de.I.MarketTemplate:{const{mt:ot,currentResources:mt,currentSearchCategory:ft}=xt;return(0,v.jsx)(K.A,{marketTemplate:ot,currentResources:mt,containerRect:jt,onPaidTemplates:()=>Oe(mt),onTrack:$e,isShowFolderIcon:ft===Ie.Gd,onOpenFolder:ze})}case de.I.Group:return(0,v.jsx)(me,{item:xt,isOrg:Et,canEditLibrary:hn,onClickGroup:De,groupAction:Be});case de.I.Resources:return(0,v.jsx)($.A,{isStared:xt.is_star,marketTemplate:xt,onStarTemplates:()=>Qn(xt),onClickCard:()=>ze(xt)});case de.I.IconList:return(0,v.jsx)(ve,{rootProject:Jt,group:xt,keyword:In,currentCategoryTab:En,onSetCurrentNodeIcon:yo,onClickCard:()=>{ze({cid:xt.cid,title:xt.title,is_star:xt.is_star,category:xt.category,is_color_icon:xt.is_color_icon,policy:xt.policy,groupCid:xt.groupCid}),(0,xe.gQ)({widget_file_name:xt.title,keyword:In,source:xt.is_color_icon?xe.Dn.COLOR_ICON_SEARCH:xe.Dn.ICON_SEARCH})},dispatch:_o});case de.I.Asset:return(0,v.jsx)(ce,{item:xt,isOrg:Et,canEditLibrary:hn,containerRect:jt});case de.I.FindPicture:return(0,v.jsx)(fe.I,{asset:xt,popupsName:H.lS.Search})}})}render(){const{type:cn,item:xt}=this.props;return(0,v.jsx)(v.Fragment,{children:this.handleRenderSearchResultItem(cn,xt)})}}const ve=(0,n.memo)($t=>{const cn=(0,r.d4)(u.YY),{group:xt,rootProject:Et,keyword:jt,currentCategoryTab:Jt,group:{title:In,data:En,is_color_icon:hn,policy:_o},onSetCurrentNodeIcon:yo,onClickCard:Qn,dispatch:ze}=$t,Oe=$e=>{let{itemCid:ot,groupCid:mt}=$e;const ft={projectUpperType:"icon_group",projectUpperCid:mt,itemCid:ot};(0,Me.Cp)(ft)},De=($e,ot,mt)=>{const ft=Jt!==Ie.C,gt=Jt===Ie.C&&hn?Ie.WY:Jt,_t=ft?g.Jj[gt]+"-"+g.Ii.OtherSearchResults:g.Jj[gt];(0,g.Mi)({popupsName:H.lS.Search,addType:$e,source:_t,category:gt,templateGroupName:In,name:ot,rootProject:Et,keyword:jt,templateGroupCid:mt})},Be=($e,ot,mt,ft)=>{ze({type:"entry:create:svg_icon_path:by:mousedown",payload:{event:$e,icon:ot,iconName:mt,iconDisplayName:ft,isMultiColorIcon:hn,callback:()=>{Oe({itemCid:ot.id,groupCid:ot.groupCid}),De(($e==null?void 0:$e.type)==="mousedown"?g.k8.Drag:g.k8.DoubleClick,mt,ot.groupCid)}}})},Qe=($e,ot)=>ot.offsetWidth<ot.scrollWidth;return(0,v.jsxs)(te,{className:"search-result-icon-group-list",children:[(0,v.jsxs)("header",{children:[(0,v.jsxs)("div",{className:"left",children:[(0,v.jsx)(re.A,{content:In,direction:"down",isShowTipsByTarget:Qe,children:(0,v.jsx)("div",{className:"template-title",children:In})}),hn&&(0,v.jsx)(G.W,{resources:{policy:_o}})]}),(0,v.jsxs)("div",{className:"right",onClick:Qn,children:[(0,v.jsx)("span",{children:I18N.Resources.all}),(0,v.jsx)(f.C,{className:"arrow-right",name:"design/arrow/right"})]})]}),(0,v.jsx)("div",{className:l()("search-result-item-container",de.I.Icon),children:En.map(($e,ot)=>(0,v.jsx)(Se.A,{index:ot,icon:$e,isMultiColorIcon:hn,onDoubleClick:Be,onMouseDown:Be,onSetCurrentNodeIcon:yo,createTemplatesData:cn},$e.id))})]})});var je=e(79743),We=e(77036),Ae=e(59531),we=e(37944),_e=e(12991),Te=e(8228),Ye=e(88670),Fe=e(59890);const Ve=$t=>{let{popupsPanelName:cn,children:xt,userInput:Et="",source:jt}=$t;const Jt=(0,r.wA)();return xt(async()=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const En=rt(jt,cn),hn=Ue(jt,cn);if(cn===Te.SR.Combo){await Jt({type:"ai:update:state",payload:{showAIModal:!1,currentAiComponent:null}}),Fe.ZF.setCache(En),(0,Fe.U2)({source:hn}),Jt({type:"entry:aiComponent:open:mode",payload:{userTextContent:Et}});return}const _o=(0,Te.$I)().find(yo=>yo.type===cn);_o&&Jt({type:Ye.X.AIOpenModal,payload:{..._o,userInput:Et,source:En,openTrackSource:hn}})})},rt=($t,cn)=>{if(cn===Te.SR.PageV9)switch($t){case Te.IA.SearchPanel:return"\u641C\u7D22\u9762\u677F-\u9875\u9762AI";default:return"\u9875\u9762AI"}if(cn===Te.SR.Combo)switch($t){case Te.IA.SearchPanel:return"\u641C\u7D22\u9762\u677F-\u7EC4\u4EF6AI";default:return""}},Ue=($t,cn)=>{if(cn===Te.SR.PageV9)switch($t){case Te.IA.SearchPanel:return"\u641C\u7D22\u9762\u677F-\u9875\u9762AI";default:return""}if(cn===Te.SR.Combo)switch($t){case Te.IA.SearchPanel:return"\u641C\u7D22\u9762\u677F-\u7EC4\u4EF6AI";default:return""}},et=$t=>{let{className:cn,iconName:xt,text:Et,onClick:jt}=$t;return(0,v.jsxs)(lt,{className:cn,onClick:jt,children:[(0,v.jsxs)("div",{className:"left",children:[(0,v.jsx)(f.C,{name:xt,isColorPure:!0}),(0,v.jsx)("span",{children:Et})]}),(0,v.jsx)(f.C,{name:"art_board/mkt/search/right_arrow",className:"arrow",isColorPure:!0})]})},lt=A.Ay.div.withConfig({displayName:"CardButton__StyledCardButton",componentId:"sc-6w1nzw-0"})(["flex:none;display:flex;align-items:center;justify-content:start;margin:8px 0 8px 12px;padding:0 15px 0 12px;width:226px;height:56px;background-color:",";border-radius:8px;box-shadow:0px 2px 12px 0px #0303030F;cursor:pointer;transition:0.2s;&:hover{transform:translateY(-4px);box-shadow:0px 2px 14px rgba(3,3,3,0.12);}.left{flex:1;display:flex;align-items:center;justify-content:start;span{font-size:12px;font-weight:500;color:",";display:inline-flex;align-items:center;}svg{margin-right:12px;width:32px;&.screen_list path{fill:none;}}}.arrow{fill:none;width:5px;path{stroke:",";}}"],$t=>$t.theme.color_background_white_modal,$t=>$t.theme.color_text_L1,$t=>$t.theme.color_text_L1);var Je=e(91474),Xe=e(5288),st=e(19062);class nt extends n.PureComponent{constructor(){super(...arguments),(0,I.A)(this,"collapse_title_i18n_map",{[_e.rf.User]:I18N.LeftSidePanel.user_resources,[_e.rf.Org]:I18N.LeftSidePanel.org_resources,[_e.rf.Find]:I18N.Resources.findTab,[_e.rf.Star]:I18N.Resources.user_resource_panel.store,[_e.rf.PageScreen]:I18N.Resources.page_panel.page,[_e.rf.PageLibrary]:I18N.Resources.page_panel.page_library,[_e.rf.AssetPic]:"\u56FE\u7247",[_e.rf.AssetSticker]:"\u8D34\u7EB8"}),(0,I.A)(this,"renderIcon",cn=>{const xt=cn?"design/group_open":"design/group_close";return(0,v.jsx)(f.C,{className:"expanded-icon",name:xt})}),(0,I.A)(this,"renderStickerHeader",()=>(0,v.jsxs)("header",{className:"sticker-header",onClick:()=>this.handleTogglePanel(Xe.SM),children:[(0,v.jsx)(f.C,{className:"arrow-icon",name:"new/arrow_1/mini"}),(0,v.jsx)("span",{children:this.collapse_title_i18n_map[_e.rf.AssetSticker]}),(0,v.jsx)(re.A,{content:I18N.Resources.resourcesFooter.free_for_member,direction:"down",distance:8,enterHoverTime:100,children:(0,v.jsx)(f.C,{name:"left_panel/icon_list/mat_member",className:"mat-member",isColorPure:!0})})]})),(0,I.A)(this,"handleTogglePanel",cn=>{this.props.dispatch({type:"searchPanel:toggle:collapsePanelSet",payload:{id:cn}})}),(0,I.A)(this,"handleClickResources",cn=>{const{onClickResources:xt,keyword:Et}=this.props;xt&&xt(cn),(0,xe.gQ)({widget_file_name:cn.title,keyword:Et,source:xe.Dn.WIDGET_SEARCH,filter:""})}),(0,I.A)(this,"handleRenderSearchResults",cn=>{let{resultList:xt,isOrg:Et,containerRect:jt,isVisible:Jt}=cn;if(!xt)return null;const{type:In,items:En}=xt;return In===de.I.FindPicture?(0,v.jsx)("div",{className:l()("search-result-find-picture-container"),children:(0,v.jsx)(Ae.D,{pictureList:En,popupsName:H.lS.Search})},In):In===de.I.FindSticker?(0,v.jsx)("div",{className:l()("search-result-find-sticker-container"),children:(0,v.jsx)(we.u,{stickerList:En,popupsName:H.lS.Search})},In):In===de.I.IconList?this.handleRenderItems({type:In,items:En,isOrg:Et,containerRect:jt,isVisible:Jt}):(0,v.jsx)("ul",{className:l()("search-result-item-container",In&&In),children:this.handleRenderItems({type:In,items:En,isOrg:Et,containerRect:jt,isVisible:Jt})},In)}),(0,I.A)(this,"handleRenderComboMtSearchResults",cn=>{let{resultList:xt,isOrg:Et,containerRect:jt,isVisible:Jt}=cn;if(!xt)return null;const{resultCategory:In,level:En,keyword:hn}=this.props,{type:_o,items:yo}=xt,Qn=(0,_e.$Y)(yo,"cid");return(0,v.jsx)("ul",{className:l()("search-result-item-container isCombo observe-target-list"),children:Object.entries(Qn).map((ze,Oe)=>{var De,Be;let[Qe,$e]=ze;return(0,v.jsx)(je.A,{dataCid:(De=$e[0])==null||(De=De.currentResources)==null?void 0:De.cid,className:In,index:Oe,title:((Be=$e[0])==null||(Be=Be.currentResources)==null?void 0:Be.title)||"DefaultMtName",onClickResources:()=>{var ot;return this.handleClickResources((ot=$e[0])==null?void 0:ot.currentResources)},trackSource:xe.Dn.WIDGET_SEARCH,keyword:hn,level:En,children:(0,v.jsx)("div",{className:"resources-card-list",children:this.handleRenderItems({type:_o,items:$e.slice(0,6),isOrg:Et,containerRect:jt,isVisible:Jt})})},Qe)})},_o)}),(0,I.A)(this,"handleRenderPageMtSearchResults",cn=>{let{resultList:xt,containerRect:Et,isVisible:jt}=cn;if(!xt)return null;const{type:Jt,items:In}=xt,{level:En,resultCategory:hn,onPaidResources:_o,onTrackTemplate:yo,onClickResources:Qn}=this.props,ze=(0,_e.$Y)(In,"platform"),Oe=[["mobile",Je.Il,I18N.Resources.page_panel.mobile],["web",Je.eD,I18N.Resources.page_panel.web],["other",Je.i1,I18N.Resources.page_panel.other]];return(0,v.jsx)("ul",{className:"search-page-result-container observe-target-list",children:Oe.map((De,Be)=>{let[Qe,$e,ot]=De;const mt=$e.reduce((gt,_t)=>gt.concat(ze[_t]||[]),[]);if(!mt||mt.length===0)return null;const ft=mt==null?void 0:mt.map(gt=>{let{mt:_t}=gt;return _t});return(0,v.jsx)(je.A,{dataCid:Qe,className:hn,index:Be,title:ot,level:En,children:(0,v.jsx)(We.A,{category:Ie.Gd,platform:Qe,marketTemplateItemList:ft,containerRect:jt?Et:null,onPaidResources:_o,onTrack:yo,isShowSign:!0,isShowFolderIcon:!0,onOpenFolder:Qn})},Qe)})},Jt)}),(0,I.A)(this,"handleRenderItems",cn=>{let{type:xt,items:Et,isOrg:jt,containerRect:Jt,isVisible:In}=cn;if(!Array.isArray(Et)){const{resultCategory:ft,resultGroupList:gt}=this.props;(0,_.Cp)(new Error("DEBUG search result is undefined"),{level:"debug",fingerprint:["debug-search-result-is-undefined"],extra:{resultCategory:ft,resultGroupList:gt}})}if(!(Et!=null&&Et.length))return null;const{rootProject:En,keyword:hn,currentCategoryTab:_o,canEditLibrary:yo,onSetCurrentNodeIcon:Qn,onStarResources:ze,onClickResources:Oe,onPaidResources:De,onClickGroup:Be,groupAction:Qe,onSearch:$e,onTrackTemplate:ot,dispatch:mt}=this.props;return Et.map(ft=>{var gt,_t;const Yt=xt===de.I.MarketTemplate?((gt=ft.mt)==null?void 0:gt.id)||((_t=ft.mt)==null?void 0:_t.cid):xt===de.I.Asset||xt===de.I.FindPicture?ft.asset_cid:xt===de.I.SelfMakeCombo?ft.key:ft.cid;return(0,v.jsx)(Le,{isOrg:jt,type:xt,item:ft,canEditLibrary:yo,rootProject:En,containerRect:In?Jt:null,keyword:hn,currentCategoryTab:_o,onSetCurrentNodeIcon:Qn,onStarResources:ze,onClickResources:Oe,onPaidResources:De,onClickGroup:Be,groupAction:Qe,onSearch:$e,onTrackTemplate:ot,dispatch:mt},Yt)})}),(0,I.A)(this,"handleRenderCollapseItems",cn=>{var xt;let{containerRect:Et,isVisible:jt}=cn;const{resultCategory:Jt,resultGroupList:In=[],searchCollapsePanelSet:En,builtWidgets:hn,level:_o}=this.props,yo=(hn==null||(xt=hn.items)==null?void 0:xt.length)>0;return(0,v.jsxs)(v.Fragment,{children:[yo&&(0,v.jsx)(W,{className:"search-widgets-render",builtWidgets:hn,collapsePanelSet:En,level:_o,onRenderIcon:this.renderIcon,onTogglePanel:this.handleTogglePanel}),In.map(Qn=>{const{cid:ze,name:Oe,list:De}=Qn,Be=En.has(ze),Qe=this.collapse_title_i18n_map[Oe];if(!(De!=null&&De.length))return null;const $e=De.filter(gt=>{let{type:_t}=gt;return![de.I.Group,de.I.Resources,de.I.Widget].includes(_t)}),ot=De.filter(gt=>{let{type:_t}=gt;return[de.I.Group,de.I.Resources].includes(_t)}),mt=Oe===_e.rf.Org,ft=Oe===_e.rf.AssetSticker;return(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(b.A,{className:l()("search-result-item-collapse",Jt),id:ze,title:Qe,expanded:Be,renderIcon:this.renderIcon,onToggle:this.handleTogglePanel,renderHeader:ft?this.renderStickerHeader:void 0,isSearch:!0,level:_o,children:[...$e,...ot].map(gt=>{if(!gt)return null;const{type:_t}=gt;return Jt===Ie.t_&&_t===de.I.MarketTemplate?this.handleRenderComboMtSearchResults({resultList:gt,isOrg:mt,containerRect:Et,isVisible:jt}):Jt===Ie.Gd&&_t===de.I.MarketTemplate?this.handleRenderPageMtSearchResults({resultList:gt,containerRect:Et,isVisible:jt}):this.handleRenderSearchResults({resultList:gt,isOrg:mt,containerRect:Et,isVisible:jt})})},ze)})})]})}),(0,I.A)(this,"handleRenderContent",()=>{const{resultCategory:cn,resultGroupList:xt,containerRect:Et,isVisible:jt,templateCategoryNavIndex:Jt}=this.props;switch(cn){case Ie.t_:case Ie.b4:return this.handleRenderCollapseItems({containerRect:Et,isVisible:jt});case Ie.Gd:{if(Jt===0)return this.handleRenderCollapseItems({containerRect:Et,isVisible:jt});if(Jt===1)return this.handleRenderSearchResults({resultList:xt[xt.length-1],isOrg:!1,containerRect:Et,isVisible:jt})}case Ie.C:case Ie.RD:return xt.map(In=>this.handleRenderSearchResults({resultList:In,isOrg:!1,containerRect:Et,isVisible:jt}));default:return null}}),(0,I.A)(this,"renderAI",()=>{const{isEditingCombo:cn,resultCategory:xt,keyword:Et}=this.props;if(![Ie.t_,Ie.Gd].includes(xt)||xt===Ie.t_&&cn)return;const jt=xt===Ie.Gd?Te.SR.PageV9:Te.SR.Combo,Jt=xt===Ie.Gd?I18N.ChatGPT.ai_prototype_component_title:I18N.ChatGPT.ai_component_title,In=xt===Ie.Gd?"chatGPT/ai-component-page":"chatGPT/ai-component-component";return(0,v.jsx)(Ve,{popupsPanelName:jt,userInput:Et,source:Te.IA.SearchPanel,children:En=>(0,v.jsx)(et,{className:"ai-entry-icon-button "+xt,iconName:In,text:"AI "+Jt,onClick:En})})})}render(){const{sum:cn,onRenderIconSetting:xt,isCurrentSearchCategory:Et,isFromIconSelectPopup:jt}=this.props;return cn===0?(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(st.q,{className:l()("searchPanel",{isFromIconSelectPopup:jt}),children:(0,v.jsx)(a.b,{})})}):(0,v.jsxs)(v.Fragment,{children:[!jt&&Et&&xt(),(0,v.jsx)(Y,{className:"search-result-container",children:(0,v.jsx)("div",{className:"resultList",children:this.handleRenderContent()})})]})}}var tt=e(34771),ct=e(72447);const ht=$t=>{const{resultCategory:cn,searchResultListMap:xt,searchCollapsePanelSet:Et,categoryList:jt,categoryI18nMap:Jt,isDirectlyEditingProjectMain:In,handleTogglePanel:En,renderSearchResultsContent:hn}=$t,_o=Et.has(Xe.Jf),yo=()=>(0,v.jsxs)("header",{onClick:()=>En(Xe.Jf),children:[(0,v.jsx)("span",{children:I18N.Resources.searchPanel.otherResults}),(0,v.jsx)(f.C,{name:"common/expand"})]});return(0,v.jsx)(It,{children:(0,v.jsx)(b.A,{className:l()("other-search-results-collapse"),id:Xe.Jf,title:I18N.Resources.searchPanel.otherResults,expanded:_o,onToggle:En,renderHeader:yo,children:Object.entries(xt).map(Qn=>{let[ze,Oe]=Qn;if(cn===Ie.Gd&&ze===Ie.RD||ze===cn&&jt.includes(ze)||!Oe||Oe.total===0||!In&&ze===Ie.Gd)return null;const De=Et.has(ze),Be=ze;return(0,v.jsx)(b.A,{className:l()("category-search-results-collapse",ze),id:ze,title:I18N.Resources.searchPanel.searchCategory.replace(/%category%/,Jt[ze])+"\uFF08"+Oe.total+"\uFF09",expanded:De,onToggle:En,isSearch:!0,level:1,children:hn(ze)},ze)})},Xe.Jf)})},It=A.Ay.div.withConfig({displayName:"OtherSearchResultContent__StyledOtherSearchResults",componentId:"sc-67gw9b-0"})(["width:246px;.other-search-results-collapse{&:not(.expanded) > header svg{transform:rotate(180deg);}> header{position:relative;display:flex;align-items:center;justify-content:start;margin-bottom:8px;cursor:pointer;span{margin-left:68px;font-size:12px;font-weight:400;color:",";}svg{transition:transform 0.2s ease-in-out;margin:4.5px;width:8px;path{fill-opacity:1;fill:",";}}&::before{content:'';position:absolute;left:12px;top:15.5px;height:1px;width:61px;background-color:",";}&::after{content:'';position:absolute;left:177px;top:15.5px;height:1px;width:61px;background-color:",";}}> div{display:flex;flex-direction:column;row-gap:8px;}}"],$t=>$t.theme.color_text_L2,$t=>$t.theme.color_text_L3,$t=>$t.theme.color_btn_secondary_hover,$t=>$t.theme.color_btn_secondary_hover);var it=e(37342),Tt=e(81717);class Lt extends n.PureComponent{constructor(){super(...arguments),(0,I.A)(this,"handleGotoCommunity",()=>{const{keyword:cn,currentCategoryTab:xt}=this.props,[Et,jt]=(()=>{switch(xt){case Ie.t_:return["proto-combo","\u7F16\u8F91\u533A-\u7EC4\u4EF6\u641C\u7D22\u7ED3\u679C\u9875"];case Ie.C:return["proto-icon","\u7F16\u8F91\u533A-\u56FE\u6807\u641C\u7D22\u7ED3\u679C\u9875"];case Ie.Gd:return["proto-page","\u7F16\u8F91\u533A-\u9875\u9762\u641C\u7D22\u7ED3\u679C\u9875"];default:return["",""]}})();Tt.Y4.communityEnterClick({source:jt}),(0,it.JW)("/com24/home?source="+Et+"&category="+xt+"&keyword="+cn+"&t=20250122","_blank","noreferrer")})}render(){const{currentCategoryTab:cn}=this.props;return cn!==Ie.b4&&(0,v.jsx)(et,{className:"goto-community-button",iconName:"art_board/mkt/search/community_icon",text:I18N.SettingPanel.sucai,onClick:this.handleGotoCommunity})}}(0,I.A)(Lt,"defaultProps",{isFromIconSelectPopup:!1,isEmpty:!1});var Rt=e(40610),Wt=e(28306),Kt=e(13642),Gt=e(88909),St=e(78915),Hn=e(70812);const uo=$t=>{var cn;const{loading:xt,unsplashLoading:Et,word:jt,type:Jt,searchResultSum:In,searchResultListMap:En,rootProject:hn,isDirectlyEditingProjectMain:_o,isFromIconSelectPopup:yo,iconSelectPopupSearchResultList:Qn,iconSelectPopupSearchResultSum:ze,searchCollapsePanelSet:Oe,isExperience:De,theme:Be,layoutV9:Qe,searchMtMetaCidMap:$e,isEditingCombo:ot,withOverlay:mt,canEditLibrary:ft,onSetCurrentNodeIcon:gt,onStarResources:_t,onPaidResources:Yt,onToggleCurrentResources:Ft,onToggleCurrentComboGroup:Zt,onToggleCurrentAssetGroup:Nt,onGetComboGroupActions:Qt,onGetAssetGroupAction:vt,onTrack:yn,onGetIsCategory:rn,renderLoading:Ot,dispatch:Nn}=$t,To=(0,r.d4)(d.rx),fo=(0,n.useMemo)(()=>{const dn=[{key:"1",label:I18N.ArtBoard.widget,type:Ie.t_},{key:"2",label:I18N.ArtBoard.icon,type:Ie.C},{key:"3",label:I18N.LeftSidePanel.screens,type:Ie.Gd}],pn={key:"4",label:I18N.ArtBoard.image,type:Ie.b4};return _o?dn.slice(0,2).concat(pn).concat(dn.slice(2,3)):dn.slice(0,2).concat(pn)},[_o]),ro=(0,n.useMemo)(()=>fo.map(dn=>{let{type:pn}=dn;return pn}),[fo]),Bn=(0,n.useMemo)(()=>[...fo.map(pn=>pn.type===Ie.Gd?{...pn,label:I18N.ArtBoard.page}:pn),{type:Ie.RD,label:I18N.ArtBoard.file}].reduce((pn,ho)=>{let{type:Oo,label:qn}=ho;return pn[Oo]=qn,pn},{}),[fo]),[Ao,go]=(0,n.useState)(ro.findIndex(dn=>dn===Jt)),[Jo,$o]=(0,n.useState)(To>1?0:To),po=(0,n.useMemo)(()=>ro[Ao],[ro,Ao]),us=In-(((cn=En[po])==null?void 0:cn.total)||0),hs=(0,n.useMemo)(()=>(0,Rt.D1)(_o,mt,jt),[_o,mt,jt]);(0,n.useEffect)(()=>(Kt.A.emit(Gt.rg),()=>{Kt.A.emit(Gt.P2,{shownMtItemCids:[]})}),[]),(0,n.useEffect)(()=>{const dn=document.querySelector("#mb-search-results-panel");dn&&dn.scrollTo(0,0),Nn({type:"searchPanel:update:state",payload:{searchCollapsePanelSet:new Set(Xe.CR)}})},[po,Nn]),(0,n.useEffect)(()=>{Nn({type:"searchPanel:update:state",payload:{type:po}})},[po,Nn]);const pt=(0,n.useCallback)(dn=>{go(dn),Nn({type:"searchPanel:update:state",payload:{searchResultCategory:ro[dn]}})},[ro,Nn]);(0,n.useEffect)(()=>{if(_o)return;Ao===(De?2:3)&&pt(0)},[pt,_o,De,Ao]);const Ht=function(dn){var pn,ho,Oo,qn,So;dn===void 0&&(dn=po);const Ut=yo?ze:dn===Ie.Gd?(pn=En[Jo===0?dn:Ie.RD])==null?void 0:pn.total:(ho=En[dn])==null?void 0:ho.total;return{list:yo?Qn:dn===Ie.Gd?[...(Oo=En[dn])==null?void 0:Oo.list,...(qn=En[Ie.RD])==null?void 0:qn.list]:(So=En[dn])==null?void 0:So.list,sum:Ut,resultCategory:yo?Ie.C:dn,collapsePanelSet:yo?new Set:Oe}},nn=()=>{const{iconDefaultColor:dn,iconDefaultSize:pn}=$t,{isIcon:ho}=rn(po),{sum:Oo}=Ht();return!ho||Oo===0?null:(0,v.jsx)("footer",{children:(0,v.jsx)(ct.N,{iconDefaultColor:dn,iconDefaultSize:pn})})},en=dn=>{Nn({type:"searchPanel:toggle:collapsePanelSet",payload:{id:dn}})},Un=()=>{Nn(St.GO.updateAIHTMLAgentType("prototyping")),Nn(St.GO.enableAIHTML()),Nn(St.GO.expandAIHTML()),Nn(St.GO.updateAIHTMLSource("designMubanPanel")),MB.commonGuideHelper.hideAllGuides(),Hn.U4.AIOpenSourceTrack(Te.SR.AIHTML)},Kn=()=>{const{isEditingCombo:dn,word:pn}=$t;if(ENV.IS_ON_PREMISES||![Ie.t_,Ie.Gd].includes(po)||po===Ie.t_&&dn)return;const ho=po===Ie.Gd,Oo=ho?Te.SR.PageV9:Te.SR.Combo,qn=ho?I18N.ChatGPT.ai_prototype_component_title:I18N.ChatGPT.ai_component_title,So=ho?"chatGPT/ai-component-page":"chatGPT/ai-component-component";return(0,v.jsx)(Ve,{popupsPanelName:Oo,userInput:pn,source:Te.IA.SearchPanel,children:Ut=>(0,v.jsx)(et,{className:"ai-entry-icon-button "+po,iconName:So,text:(0,v.jsxs)(v.Fragment,{children:["AI ",qn,ho&&(0,v.jsx)(f.C,{name:"toolbar/ai/agent",className:"pure-svg-icon",style:{marginLeft:4,width:47,height:16,borderRadius:0,background:"none"}})]}),onClick:ho?Un:Ut})})},Vn=dn=>{const{sum:pn}=Ht(dn),ho=(0,_e.Vt)(jt),Oo=dn===Ie.Gd?Bn[Jo===0?dn:Ie.RD]:Bn[dn];return(0,v.jsx)("div",{className:"result",children:(0,v.jsx)("span",{dangerouslySetInnerHTML:{__html:I18N.Resources.searchPanel.resultDesc_1.replace(/%num%/,pn).replace(/%keyword%/,ho).replace(/%category%/,Oo)}})})},vo=dn=>{$o(dn);const pn=document.querySelector("#mb-search-results-panel");pn&&pn.scrollTo(0,0)},zn=()=>{const dn=[{key:0,label:"\u9875\u9762"},{key:1,label:"\u6587\u4EF6"}];return(0,v.jsx)("div",{className:"template-category-header-nav",children:(0,v.jsx)(tt.Ay,{activeIndex:Jo,onTabChange:vo,children:dn.map(pn=>{let{key:ho,...Oo}=pn;return(0,v.jsx)(tt.nl,{...Oo},ho)})})})},Fn=()=>{Nn({type:"modal:update:state",payload:{templateModal:{isOpen:!0,keyword:jt,source:"file",page:2}}})},Rn=()=>{var dn;return Jo===0||((dn=En[Ie.RD])==null?void 0:dn.total)<30?null:(0,v.jsxs)("div",{className:"template-file-more-btn",onClick:Fn,children:[(0,v.jsx)("span",{children:"\u67E5\u770B\u5168\u90E8"}),(0,v.jsx)(f.C,{name:"art_board/mkt/search/right_arrow",className:"arrow",isColorPure:!0})]})},Mo=(dn,pn,ho)=>{const Oo=dn===po,{isCombo:qn}=rn(dn),{list:So,sum:Ut,collapsePanelSet:an}=Ht(dn);return!Oo&&(!So||So.length===0)?null:(0,v.jsx)(nt,{sum:Ut,isFromIconSelectPopup:yo,keyword:jt,builtWidgets:qn?hs:null,resultCategory:dn,resultGroupList:So||[],searchCollapsePanelSet:an,rootProject:hn,currentCategoryTab:po,isCurrentSearchCategory:Oo,isEditingCombo:ot,canEditLibrary:ft,containerRect:pn,isVisible:ho,onSetCurrentNodeIcon:gt,onStarResources:_t,onClickResources:Ft,onPaidResources:Yt,onClickGroup:qn?Zt:Nt,groupAction:qn?Qt():vt(),onTrackTemplate:yn,onRenderIconSetting:nn,dispatch:Nn,level:Oo?1:2,templateCategoryNavIndex:Jo},dn)};if(!En||!po)return null;if(xt)return Ot();if(yo)return(0,v.jsx)(Po,{keyword:jt,isFromIconSelectPopup:yo,iconList:Qn,children:(0,v.jsx)(ge,{children:(dn,pn)=>Mo(po,dn,pn)})});const wo=i()(()=>Kt.A.emit(Gt.kE,{delay:0}),500);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("header",{children:(0,v.jsx)(tt.Ay,{activeIndex:Ao,onTabChange:pt,children:fo.map(dn=>{let{key:pn,...ho}=dn;return(0,v.jsx)(tt.nl,{...ho},pn)})})}),po===Ie.b4&&Et?Ot():(0,v.jsxs)(Po,{keyword:jt,currentCategory:po,searchResultListMap:En,children:[po===Ie.Gd&&zn(),Vn(po),(0,v.jsx)(ge,{id:"mb-search-results-panel",onScrollChange:wo,children:(dn,pn)=>(0,v.jsxs)(v.Fragment,{children:[Mo(po,dn,pn),po===Ie.Gd&&Rn(),Kn(),us!==0&&(0,v.jsx)(ht,{resultCategory:po,searchResultListMap:En,searchCollapsePanelSet:Oe,categoryList:ro,categoryI18nMap:Bn,isDirectlyEditingProjectMain:_o,handleTogglePanel:en,renderSearchResultsContent:ho=>Mo(ho,dn,pn)}),!ENV.IS_ON_PREMISES&&(0,v.jsx)(Lt,{currentCategoryTab:po,keyword:jt})]})})]})]})},Po=$t=>{let{keyword:cn,currentCategory:xt,searchResultListMap:Et,isFromIconSelectPopup:jt,iconList:Jt,children:In}=$t;return(0,n.useEffect)(()=>{const En=jt?(0,Wt.K2)(cn,Jt):(0,Wt.wP)(cn,Et);Kt.A.emit(Gt.jy,{observeMtItemObj:En}),Kt.A.emit(Gt.BD)},[Jt,jt,cn,Et,xt]),(0,n.useEffect)(()=>{!jt&&Kt.A.emit(Gt.kE)},[xt,jt]),In},Yn=(0,c.Mz)([P.r,o.QU,o.Ct,u.W4,d.NA,d.Vs,d.I$,d.aP,d.uq,p.O4,d.FM,d.Xt,p.MZ,u.qv],($t,cn,xt,Et,jt,Jt,In,En,hn,_o,yo,Qn,ze,Oe)=>{let{isExperience:De}=Et;const{isEditingProjectMain:Be,isEditingCombo:Qe,isEditingBasket:$e,isEditingMuban:ot}=$t;return{iconDefaultColor:cn,iconDefaultSize:xt,isExperience:De,iconSelectPopupSearchResultList:jt,searchResultSum:Jt,iconSelectPopupSearchResultSum:In,searchCollapsePanelSet:En,isDirectlyEditingProjectMain:Be,searchResultListMap:hn,theme:_o,searchMtMetaCidMap:yo,isEditingCombo:Qe,withOverlay:!(Qe||$e||ot),unsplashLoading:Qn,layoutV9:ze,canEditLibrary:Oe}}),bo=(0,r.Ng)($t=>Yn($t))(uo);var Ke=e(80771),ut=e(32847);const zt=A.Ay.div.withConfig({displayName:"styles__StyledAssetGroupDetailPanel",componentId:"sc-vpipl0-0"})(["height:100%;display:flex;flex-direction:column;overflow:hidden;.asset-group-items-list{overflow-x:hidden;overflow-y:overlay;height:100%;flex:1;margin-top:12px;.scroll-container{padding:0 12px;display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(auto-fill,109px);width:250px;}}"]);class bt extends n.PureComponent{constructor(){super(...arguments),(0,I.A)(this,"handleLoadGroupData",cn=>{const{isOrg:xt,dispatch:Et}=this.props;Et(xt?{type:"entry:refresh:org-asset:from:cid",payload:{groupCid:cn}}:{type:"entry:refresh:user-asset:from:cid",payload:{groupCid:cn}})})}componentDidMount(){const{assetGroup:cn}=this.props;this.handleLoadGroupData(cn.cid)}render(){const{isOrg:cn,assetGroup:xt,orgAssetsMap:Et,userAssetsMap:jt}=this.props,{cid:Jt}=xt,In=cn?Et.get(Jt):jt.get(Jt),En=!In,hn=!En&&In.sort((yo,Qn)=>Qn.ctime-yo.ctime),_o=!En&&hn.length;return(0,v.jsx)(zt,{children:_o?(0,v.jsx)("div",{className:"asset-group-items-list",children:(0,v.jsx)(D.A,{className:"scroll-container",children:(yo,Qn)=>hn.map(ze=>(0,v.jsx)(ce,{isOrg:cn,item:ze,containerRect:Qn&&yo},ze.cid))})}):(0,v.jsx)(st.q,{children:(0,v.jsx)("span",{children:I18N.Resources.empty_folder})})})}}const xn=(0,c.Mz)([d.vl,d.M5],($t,cn)=>{const{orgAssetsMap:xt}=$t,{userAssetsMap:Et}=cn;return{orgAssetsMap:xt,userAssetsMap:Et}}),kn=(0,r.Ng)($t=>xn($t))(bt);class gn extends n.PureComponent{constructor(){super(...arguments),(0,I.A)(this,"handleMouseDown",cn=>cn.preventDefault())}render(){var cn;const{isOrg:xt,comboGroup:Et,userComboGroup:jt,orgComboGroup:Jt}=this.props,{cid:In}=Et,hn=((cn=(xt?Jt:jt).find(yo=>yo.cid===In))==null?void 0:cn.children)||[],_o=hn==null?void 0:hn.length;return(0,v.jsx)(z,{children:_o?(0,v.jsx)("div",{className:"combo-group-items-list",children:(0,v.jsx)(D.A,{className:"scroll-container",children:(yo,Qn)=>hn.map(ze=>(0,v.jsx)(N,{isOrg:xt,item:ze,group:Et,containerRect:Qn&&yo},ze.key))})}):(0,v.jsx)(st.q,{children:(0,v.jsx)("span",{children:I18N.Resources.empty_folder})})})}}const Zn=(0,c.Mz)([d.wS,d.lb],($t,cn)=>({userComboGroup:$t,orgComboGroup:cn})),Pn=(0,r.Ng)($t=>Zn($t))(gn);var _n=e(79150),Wn=e(88463),Ln=e(62987);class io extends n.PureComponent{constructor(cn){super(cn),(0,I.A)(this,"handleCreateRef",xt=>this.$ref=xt),(0,I.A)(this,"setElementRef",xt=>this.$element=xt),(0,I.A)(this,"handMouseEnter",xt=>{xt.buttons===0&&this.setState({isOpenMenu:!0})}),(0,I.A)(this,"handMouseLeave",()=>{this.setState({isOpenMenu:!1})}),(0,I.A)(this,"handleGetItemLists",()=>{const{group:xt,isOrg:Et,currentUser:jt,currentOrg:Jt}=this.props,In=Et?xt.user_id&&xt.user_id===(jt==null?void 0:jt.id):!0;return[{isShow:!0,label:I18N.ToolBar.rename,onClick:this.handleEdit},{isShow:In,label:I18N.LibraryContainer.delete,onClick:this.handleRemove},{isShow:!Et&&Jt,label:I18N.Popups.add_to_org,onClick:this.handleTransfer}]}),(0,I.A)(this,"handleTransfer",()=>{const{group:xt,groupAction:Et}=this.props;if(!xt)return;const{onTransfer:jt}=Et;jt(xt),this.handMouseLeave()}),(0,I.A)(this,"handleConfirm",xt=>{const{group:Et}=this.props;if(!Et)return;const{isOrg:jt,groupAction:{onConfirm:Jt}}=this.props;Jt(xt,Et,()=>{MB.notice({text:I18N.Popups.folder_save_success})},jt),this.setState({isEditing:!1})}),(0,I.A)(this,"handleEdit",xt=>{const{group:Et}=this.props;Et&&(xt.stopPropagation(),this.setState({isEditing:!0}),this.handMouseLeave())}),(0,I.A)(this,"handleRemove",xt=>{const{group:Et}=this.props;if(!Et)return;xt.stopPropagation();const{isOrg:jt,groupAction:{onRemove:Jt},onBack:In}=this.props;this.handMouseLeave(),Jt(Et,jt,()=>{In()})}),(0,I.A)(this,"handleToggle",xt=>{const Et=xt!==void 0?xt:!this.state.isSearching;this.setState({isSearching:Et}),Et&&setTimeout(()=>{this.$ref&&this.$ref.focus()})}),(0,I.A)(this,"handleBack",()=>{const{isSearching:xt}=this.state,{onBack:Et,onSearch:jt}=this.props;xt?(jt(""),this.handleToggle(!1)):Et()}),(0,I.A)(this,"onShowTipsByTarget",(xt,Et)=>Et.offsetWidth<Et.scrollWidth),this.state={isOpenMenu:!1,isEditing:!1,isSearching:!1}}render(){const{group:cn,currentResources:xt,onStarResources:Et,onSearch:jt}=this.props,{isOpenMenu:Jt,isEditing:In,isSearching:En}=this.state,hn=xt?xt.title:cn?cn.name:"",_o=this.handleGetItemLists(),yo=!!xt;return(0,v.jsxs)(Z,{children:[(0,v.jsx)(_n.A,{className:"nav-back-icon",name:"left_panel/back/arrow",onClick:this.handleBack}),(0,v.jsxs)("div",{className:"center",children:[yo?En?null:(0,v.jsxs)("div",{className:"title-box",children:[(0,v.jsx)(re.A,{content:hn,direction:"down",isShowTipsByTarget:this.onShowTipsByTarget,children:(0,v.jsx)("div",{className:"template-title",children:hn})}),(0,v.jsx)(G.W,{resources:xt})]}):(0,v.jsx)(L.A,{value:hn,className:"title",isEditing:In,onConfirm:this.handleConfirm},In+hn),yo?En?(0,v.jsx)(Wn.A,{ref:this.handleCreateRef,className:"search-bar is-searching",value:"",placeholder:I18N.ScreenPanel.keyword_search,onSearch:jt}):(0,v.jsx)(_n.A,{className:"search-icon",name:"design/scale_search",onClick:this.handleToggle}):null]}),(0,v.jsx)("div",{className:"right",children:xt?(0,v.jsx)(Ln.X,{isStar:xt.is_star,onClick:Et}):(0,v.jsxs)(J,{className:l()({"is-open":Jt}),ref:this.setElementRef,onMouseEnter:this.handMouseEnter,onMouseLeave:this.handMouseLeave,children:[(0,v.jsx)(_n.A,{className:"action-menu-opener",name:"left_panel/screen_action_menu"}),Jt&&(0,v.jsx)(U.A,{targetNode:this.$element,menuItems:_o})]})})]})}}const to=(0,c.Mz)([u.HW],$t=>({currentUser:$t})),mo=(0,r.Ng)($t=>to($t))(io),Io=$t=>{const{loading:cn,currentOrg:xt,currentResources:Et,currentComboGroup:jt,currentAssetGroup:Jt,from:In,word:En,onSetCurrentResources:hn,onSetCurrentNodeIcon:_o,onStarResources:yo,onPaidResources:Qn,onToggleCurrentResources:ze,onToggleCurrentComboGroup:Oe,onToggleCurrentAssetGroup:De,onGetComboGroupActions:Be,onGetAssetGroupAction:Qe,onGetIsCategory:$e,renderLoading:ot,onTrack:mt,dispatch:ft}=$t,{category:gt}=Et||{},{isCombo:_t,isIcon:Yt}=$e(gt),Ft=!!jt,Zt=jt||Jt,Nt=(0,n.useRef)(null),Qt=async()=>{if(!Et||MB.global.experienceLoginModalHelper("isSave"))return;const{is_star:Nn,cid:To}=Et;hn({...Et,is_star:!Nn}),await(0,C.lU)(Nn,To),await yo(Et,!1)},vt=()=>{hn({...Et,is_purchased:!0}),Qn(Et)},yn=Nn=>{Nt&&Nt.current.handleSearch(Nn,H.lS.SearchDetail)},rn=()=>{Et&&ft({type:"entry:search-panel:remove:resources",payload:{resources:Et}}),ze()},Ot=()=>{if(Et)return Yt?(0,v.jsx)(ut.a,{ref:Nt,className:"search-icon-detail-panel",from:In,popupsName:H.lS.Search,keyword:En,onSetCurrentNodeIcon:_o,currentResources:Et,onStarResources:Qt}):(0,v.jsx)(Ke.A,{ref:Nt,className:"search-resources-detail-panel",currentResources:Et,onStarTemplates:Qt,onPaidTemplates:vt,onBack:rn,onTrack:mt});if(jt)return(0,v.jsx)(Pn,{isOrg:jt.isOrg,comboGroup:jt.comboGroup});if(Jt)return(0,v.jsx)(kn,{isOrg:Jt.isOrg,assetGroup:Jt.assetGroup})};return cn?ot():(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(mo,{onBack:Et?()=>ze():()=>Ft?Oe():De(),currentOrg:xt,currentResources:Et,isOrg:Zt==null?void 0:Zt.isOrg,group:(jt==null?void 0:jt.comboGroup)||(Jt==null?void 0:Jt.assetGroup),onStarResources:Et?Qt:null,groupAction:Zt&&(Ft?Be():Qe()),onSearch:Et?yn:null}),Ot()]})};var co=e(68789),On=e(27508),Cn=e(91210),qe=e(30275);class vn extends n.PureComponent{constructor(cn){var xt;super(cn),xt=this,(0,I.A)(this,"handleGetComboGroupActions",()=>(0,On.H)({...this.props,popupsName:H.lS.Search})),(0,I.A)(this,"handleGetAssetGroupAction",()=>(0,Cn.B)({...this.props,popupsName:H.lS.Search})),(0,I.A)(this,"handleGetIsFromIconSelectPopup",()=>{const{from:Et}=this.props;return Et===qe.Z.iconSelectPopup}),(0,I.A)(this,"handleGetIsLoading",()=>{const{isLoading:Et,isIconSelectPopupLoading:jt}=this.props;return this.handleGetIsFromIconSelectPopup()?jt:Et}),(0,I.A)(this,"handleToggleShowHeader",Et=>{const{dispatch:jt}=this.props,Jt=this.handleGetIsFromIconSelectPopup();jt(Jt?{type:"icon-select-popup:update:state",payload:{isShowHeader:!Et}}:{type:"update:popups:state",payload:{showGlobalHeader:!Et}})}),(0,I.A)(this,"handleToggleCurrentResources",function(Et){var jt;if(Et===void 0&&(Et=null),Et&&((jt=Et)==null?void 0:jt.category)===Ie.RD){xt.props.dispatch({type:"modal:update:state",payload:{templateFileDetialModal:{isOpen:!0,template:Et}}});return}xt.handleToggleShowHeader(Et);const{currentResources:Jt}=xt.state;xt.setState({currentResources:Et}),Jt&&xt.handleResourcesDetailsBackScrollToView(Jt.cid)}),(0,I.A)(this,"handleResourcesDetailsBackScrollToView",Et=>{const jt=document.querySelector("#searchPanel .search-result-container"),Jt=document.querySelector('#searchPanel .template-box[data-cid="'+Et+'"]');(0,C.Cs)(jt,Jt)}),(0,I.A)(this,"handleStarResources",async function(Et,jt){jt===void 0&&(jt=!0);const{dispatch:Jt}=xt.props,In=Et==null?void 0:Et.category,En=xt.handleGetIsFromIconSelectPopup(),hn=Et.is_star;Jt({type:"entry:search-panel:refresh:star:resources",payload:{category:In,resources:Et,isFromIconSelectPopup:En,updateResources:_o=>({..._o,is_star:!_o.is_star})}}),Jt({type:"entry:resources:update:find:data",payload:{cid:Et.cid,category:In,updateData:_o=>({..._o,is_star:!_o.is_star})}}),jt&&await(0,C.lU)(hn,Et.cid)}),(0,I.A)(this,"handlePaidResources",Et=>{const{dispatch:jt}=this.props,Jt=Et==null?void 0:Et.category,In=this.handleGetIsFromIconSelectPopup();jt({type:"entry:search-panel:refresh:star:resources",payload:{category:Jt,resources:Et,isFromIconSelectPopup:In,updateResources:En=>({...En,is_purchased:!0,is_star:!0})}}),jt({type:"entry:resources:update:find:data",payload:{cid:Et.cid,category:Jt}})}),(0,I.A)(this,"handleToggleCurrentComboGroup",async function(Et,jt){Et===void 0&&(Et=!1),jt===void 0&&(jt=null);const{currentComboGroup:Jt,dispatch:In}=xt.props;if(xt.handleToggleShowHeader(jt),await In({type:"searchPanel:update:state",payload:{currentComboGroup:jt?{isOrg:Et,comboGroup:jt}:null}}),Jt){var En;xt.handleComboGroupBackScrollToView((En=Jt.comboGroup)==null?void 0:En.cid)}}),(0,I.A)(this,"handleToggleCurrentAssetGroup",async function(Et,jt){Et===void 0&&(Et=!1),jt===void 0&&(jt=null);const{currentAssetGroup:Jt}=xt.state;if(xt.handleToggleShowHeader(jt),xt.setState({currentAssetGroup:jt?{isOrg:Et,assetGroup:jt}:null}),Jt){var In;xt.handleComboGroupBackScrollToView((In=Jt.assetGroup)==null?void 0:In.cid)}}),(0,I.A)(this,"handleComboGroupBackScrollToView",Et=>{const jt=document.querySelector("#searchPanel .search-result-container"),Jt=document.querySelector('#searchPanel .folder-group[data-cid="'+Et+'"]');(0,C.Cs)(jt,Jt)}),(0,I.A)(this,"handleTrack",(Et,jt,Jt,In)=>{const{rootProject:En,keyword:hn,type:_o}=this.props,{policy:yo,category:Qn,title:ze,copyright:Oe,is_star:De,platform:Be}=Jt,Qe=_o!==Qn,$e=yo!==co.W.Everyone,ot=g.Jj[Qe?_o:Qn]+"-"+(Qe?g.Ii.OtherSearchResults:De?Qn===Ie.t_?g.Ii.User:g.Ii.Star:g.Ii.Find);(0,g.Mi)({popupsName:H.lS.Search,addType:jt,source:ot,category:Qn,platform:Be,vipTemplate:Number($e),templateGroupName:ze,copyright:Oe,name:In,rootProject:En,keyword:hn,esSearchKey:Et})}),(0,I.A)(this,"renderLoading",()=>(0,v.jsx)(st.S,{className:"margin-top-120",children:(0,v.jsx)("span",{children:I18N.Resources.searching.load})})),(0,I.A)(this,"handleGetIsCategory",Et=>{if(!Et)return{isCombo:!1,isIcon:!1,isAsset:!1};const jt=Et===Ie.t_,Jt=Et===Ie.C,In=Et===Ie.b4;return{isCombo:jt,isIcon:Jt,isAsset:In}}),(0,I.A)(this,"handleSetCurrentResources",Et=>this.setState({currentResources:Et})),this.state={currentResources:null}}componentWillUnmount(){const{dispatch:cn,from:xt}=this.props;cn({type:"entry:search-panel:clear:state",payload:{from:xt}})}render(){const{type:cn,from:xt,currentOrg:Et,currentComboGroup:jt,iconKeyword:Jt,keyword:In,rootProject:En,onSetCurrentNodeIcon:hn,dispatch:_o}=this.props,{currentResources:yo,currentAssetGroup:Qn}=this.state,ze=this.handleGetIsLoading(),Oe=this.handleGetIsFromIconSelectPopup(),De=Oe?Jt:In,Be={onGetIsCategory:this.handleGetIsCategory,onSetCurrentNodeIcon:hn,onStarResources:this.handleStarResources,onPaidResources:this.handlePaidResources,onToggleCurrentResources:this.handleToggleCurrentResources,onToggleCurrentComboGroup:this.handleToggleCurrentComboGroup,onToggleCurrentAssetGroup:this.handleToggleCurrentAssetGroup,onGetComboGroupActions:this.handleGetComboGroupActions,onGetAssetGroupAction:this.handleGetAssetGroupAction,renderLoading:this.renderLoading,onTrack:this.handleTrack,dispatch:_o};return(0,v.jsx)(j,{id:"searchPanel",children:yo||jt||Qn?(0,v.jsx)(Io,{loading:ze,from:xt,word:De,currentOrg:Et,currentResources:yo,currentComboGroup:jt,currentAssetGroup:Qn,onSetCurrentResources:this.handleSetCurrentResources,...Be}):(0,v.jsx)(bo,{loading:ze,type:cn,rootProject:En,word:De,isFromIconSelectPopup:Oe,...Be})})}}(0,I.A)(vn,"defaultProps",{from:qe.Z.sideBarPanel});const Jn=(0,c.Mz)([d.uJ,d.TF,d.Lq,u.wA,d.lW,d.hS,d.gt,u.PL],($t,cn,xt,Et,jt,Jt,In,En)=>({keyword:$t,iconKeyword:cn,type:xt,currentOrg:Et,currentComboGroup:jt,isLoading:Jt,isIconSelectPopupLoading:In,rootProject:En})),ao=(0,r.Ng)($t=>Jn($t))(vn);class no extends n.PureComponent{render(){const{show:cn,from:xt,onSetCurrentNodeIcon:Et,onClose:jt}=this.props,Jt=xt===qe.Z.iconSelectPopup;return!cn&&!Jt?null:(0,v.jsx)(ao,{from:xt,onSetCurrentNodeIcon:Et,onClose:jt})}}const ke=(0,c.Mz)([o.ut],$t=>({show:$t})),$n=(0,r.Ng)($t=>ke($t))(no)},15722:(He,ee,e)=>{"use strict";e.d(ee,{E:()=>c,y:()=>n});const n="default",r={keyword:"",currentResource:null,largeFactory:{tab:0,filter:"Ant Design",listMap:new Map,searchList:[],detail:null,level1:"",level2:"",scrollTop:0,detailScrollTop:0},componentLibrary:{page:1,platform:n,order:"recommend",policy:[n],templateList:[],totalCount:0,isFetchingMktData:!1,isFetchingDone:!1,currentResources:null,resourcesMap:new Map},me:{navIndex:0,resources:[],level1:"",level2:"",currentResource:null,marketTemplateList:[],resourcesMap:new Map}};function c(o,I){o===void 0&&(o=r);const{type:u,payload:d}=I;switch(u){case"widget-modal:update:state":return{...o,...d};case"widget-modal:update:keyword":return{...o,keyword:d};case"widget-modal:update:largeFactory":return{...o,largeFactory:{...o.largeFactory,...d}};case"widget-modal:update:componentLibrary":return{...o,componentLibrary:{...o.componentLibrary,...d}};case"widget-modal:update:me":return{...o,me:{...o.me,...d}};case"widget-modal:reset:state":return r;default:return o}}},16013:(He,ee,e)=>{"use strict";e.d(ee,{Wp:()=>c,em:()=>r,xk:()=>o});var n=e(67787);const r=n.Ay.div.withConfig({displayName:"styles__StyledResourcesDetailPanel",componentId:"sc-6eofzn-0"})(["height:100%;flex:1;display:flex;flex-direction:column;overflow:hidden;.resources-details-search{width:calc(100% - 28px);height:28px;}.marketTemplate-list{overflow:hidden;height:100%;padding-top:8px;position:relative;&.showSign{height:calc(100% - 40px - 48px);}.template-item.website{margin-bottom:16px;}}&.search-resources-detail-panel{.marketTemplate-list{&.showSign{height:calc(100% - 48px);}}}.search-no-results{margin-top:120px;img{margin-top:0;}.tips-link{margin:8px;}}"]),c=n.Ay.header.withConfig({displayName:"styles__StyledResourcesHeader",componentId:"sc-6eofzn-1"})(["height:40px;padding:7px 6px;display:flex;align-items:center;justify-content:space-between;&.template-modal{justify-content:flex-start;padding:16px 32px 16px 24px;height:auto;}.header-right{flex:1;display:flex;align-items:center;justify-content:space-between;.detail-search-bar{width:320px;height:32px;}}.modal-detail-header-action{flex:1;display:flex;align-items:center;position:relative;margin-left:20px;position:relative;.divider{position:absolute;display:block;left:-12px;top:6px;height:14px;width:1px;content:'';background-color:",";border-radius:100px;z-index:1;}.liked,.stared{display:flex;align-items:center;color:",";cursor:pointer;&:not(.is-actived):hover{color:",";&.liked svg path{fill:",";stroke:",";}&.stared .star svg path{fill:",";}}&.liked{margin-right:4px;svg{margin-right:4px;}}.star{&:not(.isStarred){svg path{fill:",";}}&:hover{background:transparent !important;}}}}.star{flex:0 0 24px;margin-left:4px;}"],I=>I.theme.color_bg_border_02,I=>I.theme.color_text_L3,I=>I.theme.color_text_L2,I=>I.theme.color_text_L2,I=>I.theme.color_text_L2,I=>I.theme.color_text_L2,I=>I.theme.color_text_L3),o=n.Ay.footer.withConfig({displayName:"styles__StyledResourcesDetailFooter",componentId:"sc-6eofzn-2"})(["width:100%;padding:0 12px;height:48px;display:flex;align-items:center;background:",";.footer-btn{width:110px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:4px;font-size:12px;cursor:pointer;&.alone{border:1px solid rgba(179,140,75,0.2);color:#b38c4b;}&.vip{width:118px;background:#415058;margin-left:10px;color:#ffdca9;.svg-icon{width:13px;margin-right:4px;}}}"],I=>I.theme.color_bg_white)},16249:(He,ee,e)=>{"use strict";e.d(ee,{j:()=>r});var n=e(70248);const r=(I,u)=>{const d=[];return I.forEach(C=>{const{cids:h,siblings:i}=C,f=[...i].sort((s,l)=>s.hotAttr.zIndex-l.hotAttr.zIndex),p=u===1?c(h,f):o(h,f);d.push(...p)}),d.filter(C=>!(0,n.OO)(C.key))},c=(I,u)=>{let d=-1/0;const C=[];if(u.forEach(f=>{I.includes(f.key)?C.push(f):d=Math.max(f.hotAttr.zIndex,d)}),d===-1/0)return[];const h=[],i=d+1;return C.forEach((f,p)=>{const s=i+p===0?1:i+p;f.hotAttr.zIndex!==s&&h.push({...f,hotAttr:{...f.hotAttr,zIndex:s}})}),h},o=(I,u)=>{let d=1/0;const C=[];if(u.forEach(i=>{I.includes(i.key)?C.unshift(i):d=Math.min(i.hotAttr.zIndex,d)}),d===1/0)return[];const h=[];if(d===0||d-C.length<=0){u.sort((f,p)=>p.hotAttr.zIndex-f.hotAttr.zIndex);const i=u.filter(f=>!I.includes(f.key)).concat(C);i.forEach((f,p)=>{h.push({...f,hotAttr:{...f.hotAttr,zIndex:i.length-p}})})}else{const i=d-1;C.forEach((f,p)=>{const s=i-p===0?-1:i-p;f.zIndex!==s&&h.push({...f,hotAttr:{...f.hotAttr,zIndex:s}})})}return h}},16573:He=>{var ee={utf8:{stringToBytes:function(e){return ee.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(ee.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var n=[],r=0;r<e.length;r++)n.push(e.charCodeAt(r)&255);return n},bytesToString:function(e){for(var n=[],r=0;r<e.length;r++)n.push(String.fromCharCode(e[r]));return n.join("")}}};He.exports=ee},16913:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>u});var n=e(38502),r=e(67787);const c=r.Ay.div.withConfig({displayName:"styles__StyledLinkAction",componentId:"sc-1tyil2l-0"})(["display:flex;justify-content:space-between;align-items:center;.link-action-title{display:flex;align-items:center;color:",";flex-shrink:0;&:lang(ja){font-size:10px;}}"],d=>d.theme.color_text_L3);var o=e(72214);const I=d=>{let{className:C="",linkTitle:h,children:i}=d;return(0,o.jsxs)(c,{className:C+" height-32 title-content",children:[(0,o.jsx)("p",{className:"link-action-title",children:h}),i]})},u=(0,n.memo)(I)},17533:(He,ee,e)=>{"use strict";e.d(ee,{v:()=>o});const n=new Set(["entry:draft:screen:mousemove","draft:update:state","entry:screenContainer:mousemove","entry:draft:activeEntityKey:update","mode:update:hover:item","update:screenContainer:state","mode:update:state","reducer:flag:set-isShowRadiusResizer","set:key:keyFlags","reset:key:flags","mode:update:toggle:isShowFloatingToolbar"]),r=I=>n.has(I);window.reduxLogList=[];const c=(I,u)=>{I.unshift(...u),I.length=100},o=I=>{let{getState:u}=I;return d=>C=>(r(C.type)||c(window.reduxLogList,[C]),d(C))}},17654:(He,ee,e)=>{"use strict";e.d(ee,{I:()=>C,q:()=>d});var n=e(18381),r=e(24094),c=e(67588),o=e(40486),I=e(87606),u=e(72214);const d=h=>{let{disableType:i}=h;const f=(0,n.d4)(c.O4);let p="",s="";return i==="notInCanvas"?(p=I18N.Interaction.disable.notInCanvas,s=o.AQ["canvas_outer_"+f]):i==="isWCode"?(p=I18N.Interaction.disable.isWCode,s=o.AQ["empty_panel_"+f]):i==="isMultiSelectItem"&&(p=I18N.Interaction.disable.multiSelect,s=o.AQ["empty_panel_"+f]),(0,u.jsxs)(r.i7,{className:"no-ita-content",children:[s&&(0,u.jsx)("img",{src:s}),(0,u.jsx)("p",{className:"tips",children:p})]})},C=h=>{let{disableType:i,onClose:f}=h;return(0,u.jsxs)(r.Ps,{children:[(0,u.jsx)(I.C,{uiFrom:"treePanelFloat",onClose:f}),(0,u.jsx)(d,{disableType:i})]})}},18356:(He,ee,e)=>{"use strict";e.d(ee,{OZ:()=>M,RU:()=>l,_T:()=>f,_i:()=>p,sb:()=>s,yj:()=>a});var n=e(20089),r=e(37860);const c={},o=()=>"\u5185\u7F6E",I=()=>ENV.IS_MO?'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nwbTOkTYpTtTUeNK4eU3iYQ {"Z":"C","N":"Dynamic Widget 1","xy":"7r5}7PY.","T":"R","r":"((","wh":"7l527jD4","o":"3_","iLVA":"*","fPt":"(","I":"","B":"*","rRBPK":"rbpTOkTYU8O7ZfQPgip7GE","rCK":"rcTOkTYpU8O7ZfQlS7HBeK","s":")","l":")"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli ) {"T":")","B":"0"}\nrbpTOkTYU8O7ZfQPgip7GE * {"T":")","B":")","N":"Rectangle","Z":".","ic":"","aF":"(","dvc":")","dWH":"7l527jD4","dORT":")","dSCR":")","alH":"","alV":"","wh":"7l527jD4","s":")","l":")","dck":"rcTOkTYpU8O7ZfQlS7HBeK","di":"( ","fill":"h ( wTRu7","mt":"("}\nrcTOkTYpU8O7ZfQlS7HBeK + {"N":"State 1","fill":"h ( wTRr:","xy":"7i^07he]","T":"*","Z":"-","wh":"7l527jD4","iLVA":"*","ort":")","icc":"h","shh":"(","sfh":"(","dvc":")","alH":"","alV":"","od":")","I":"","lg":"( 2 2 2 2 <"}\nlb4ryj5lU8O7ZfQmH2ybFF {"xy":"7gt07iju","N":"Oval","I":[[3,"itaTOkUSU8O7ZfQ6BPdr0N","","(",["9 0.4s 0 ","CURRENT_BASKET_REF","rcTOkTYpU8O7ZfQggV7Y7k"],"((((("]],"dtV":1,"!LHV":1,"!WBIV":1,"T":"Q","Z":"4","r":"((","wh":"7grF7grF","o":"3_","iLVA":"*","fPt":"(","ani":"( 0 0.1s 1","fill":"h ( wTRu7","brdR":"h bYpZx ) (!(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nlb4rx66dU8O7ZfQe65JQy8 {"xy":"7iY]7hSi","b/#000000":["( ( ","\\"Dynamic Widget\\" refers to a widget with several states, which is helpful for adding animation.Eg. The circle below is linked to\\"State 2\\", you can preview that it will move to right and change to red after being clicked.you can try it by clicking on the \\"Preview\\" button in the upper right corner!",[")R 2 color-rgba(189,49,36,1)","*{ 1 color-rgba(189,49,36,1)"],[]],"N":"Text","wh":"7k>H7iE>","dtV":1,"!LHV":1,"!WBIV":1,"!LIV":3,"!PSV":1,"rtS":["SourceHanSansSC","regular","#101010"],"rtN":"( ( ( 6 ) < ( 7g/. 7g4u","T":"x","Z":"3","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","ani":"( 0 0.1s 1","rtB":"("}\nlb4rvq80U8O7ZfQbCFCCIz {"N":"Rectangle","dtV":1,"!LHV":1,"!WBIV":1,"T":"M","Z":".","xy":"7i^07he]","r":"((","wh":"7l527jD4","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 0.1s 1","fill":"h ( wTRu7","brdRV":"h bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nrcTOkTYpU8O7ZfQggV7Y7k + {"N":"State 2","fill":"h ( wTRr:","Z":".","od":"*","xy":"7i^07he]","T":"*","wh":"7l527jD4","iLVA":"*","ort":")","icc":"h","shh":"(","sfh":"(","dvc":")","alH":"","alV":"","I":"","lg":"( 2 2 2 2 <"}\nlb4ryj5lU8O7ZfQ6JUriQW {"xy":"7k@27iju","N":"Oval","I":[[3,"itaTOkUVU8O7ZfQto2prTz","","(",["9 0.4s 0 ","CURRENT_BASKET_REF","rcTOkTYpU8O7ZfQlS7HBeK"],"((((("]],"dtV":1,"!LHV":1,"!WBIV":1,"fill":"h ( c*BHp","T":"Q","Z":"4","r":"((","wh":"7grF7grF","o":"3_","iLVA":"*","fPt":"(","ani":"( 0 0.1s 1","brdR":"h bYpZx ) (!(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nlb4rx66dU8O7ZfQJ2xIQ03 {"xy":"7iY]7h9Z","N":"Text","b/#000000":["( ( ","Now you\'re in\\"State 2\\", the red circle below will back to left and change to white based on being linked back to\\"State 1\\". So try to create your interaction through adding new states and links by clicking\\"New\\"on the \\"Screen State\\" panel on the right side.",["5 1 color-rgba(189,49,36,1)",")B 2 color-rgba(189,49,36,1)","*H - color-rgba(189,49,36,1)"],[]],"dtV":1,"!LHV":1,"!WBIV":1,"!LIV":3,"!PSV":1,"rtS":["SourceHanSansSC","regular","#101010"],"wh":"7k>H7hgy","rtN":"( ( ( 6 ) < ( 7g/. 7g4u","T":"x","Z":"3","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","ani":"( 0 0.1s 1","rtB":"("}\nlb4rvq80U8O7ZfQyjWFoHF {"N":"Rectangle","dtV":1,"!LHV":1,"!WBIV":1,"T":"M","Z":".","xy":"7i^07he]","r":"((","wh":"7l527jD4","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 0.1s 1","fill":"h ( wTRu7","brdRV":"h bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-29T06:13:10.230Z","hotAABB":[632,-1711,1007,-1471],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}':'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nwbTOkTYpTtTUeNK4eU3iYQ {"N":"\u52A8\u6001\u7EC4\u4EF6 1","Z":"@","T":"R","xy":"7eS]85jk","r":"((","wh":"7l527jD4","o":"3_","iLVA":"*","fPt":"(","I":"","B":"*","rRBPK":"rbpTOkTYTtTUeNK90Dmc7O","rCK":"rcTOkTYpTtTUeNKyZ2NaKu","s":")","l":")"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli ) {"T":")","B":"0"}\nrbpTOkTYTtTUeNK90Dmc7O * {"T":")","B":")","N":"\u77E9\u5F62","Z":".","ic":"","aF":"(","dvc":")","dWH":"7l527jD4","dORT":")","dSCR":")","alH":"","alV":"","wh":"7l527jD4","s":")","l":")","dck":"rcTOkTYpTtTUeNKyZ2NaKu","di":"( ","fill":"h ( wTRu7","mt":"("}\nrcTOkTYpTtTUeNKyZ2NaKu + {"fill":"h ( wTRr:","xy":"7i^07he]","T":"*","N":"\u72B6\u6001 1","Z":"-","wh":"7l527jD4","iLVA":"*","ort":")","icc":"h","shh":"(","sfh":"(","dvc":")","alH":"","alV":"","od":")","I":"","lg":"( 2 2 2 2 <"}\nlb4rx66dTtTUeNKMA45x8m {"rtS":["SourceHanSansSC","regular","#101010"],"xy":"7iY]7hBu","b/#1BwVNo":["( ( ","\u4E0B\u9762\u7684\u767D\u8272\u5706\u5708\u94FE\u63A5\u5230\u4E86\u300C\u72B6\u60012\u300D\uFF0C\u5728\u8FD0\u884C\u72B6\u6001\u70B9\u51FB\u8FD9\u4E2A\u5706\u5708\uFF0C\u5B83\u5C06\u4F1A\u79FB\u52A8\u5230\u6700\u53F3\u4FA7\u5E76\u53D8\u4E3A\u7EA2\u8272\uFF0C\u60A8\u53EF\u4EE5\u70B9\u51FB\u53F3\u4E0A\u89D2\u7684\u300C\u6F14\u793A\u300D\u6309\u94AE\u4EB2\u81EA\u8BD5\u8BD5\u770B\uFF01",["3 - color-rgba(189,49,36,1)","^ , color-rgba(189,49,36,1)"],[]],"wh":"7k>H7hgy","rtN":"( ( ( 6 ) < ( 7g/. 7g4u","b/#000000":["( ( ","\u52A8\u6001\u7EC4\u4EF6\u662F\u62E5\u6709\u591A\u4E2A\u72B6\u6001\u7684\u7EC4\u4EF6\uFF0C\u662F\u60A8\u5236\u4F5C\u52A8\u6001\u6548\u679C\u7684\u597D\u5E2E\u624B\u3002",[],[]],"T":"x","N":"\u6587\u672C","Z":"3","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","ani":"( 0 0.1s 1","rtB":"("}\nlb4ryj5lTtTUeNKMA74CgM {"I":[[3,"itaTOkUSTtTUeNKk10wys1","","(",["9 0.4s 0 ","CURRENT_BASKET_REF","rcTOkTYpTtTUeNKDCLjoMG"]]],"xy":"7gt07i_>","T":"Q","N":"\u5706\u5F62","Z":"4","r":"((","wh":"7grF7grF","o":"3_","iLVA":"*","fPt":"(","ani":"( 0 0.1s 1","fill":"h ( wTRu7","brdR":"h bYpZx ) (!(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nlb4rvq80TtTUeNKi00pnGs {"T":"M","N":"\u77E9\u5F62","Z":".","xy":"7i^07he]","r":"((","wh":"7l527jD4","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 0.1s 1","fill":"h ( wTRu7","brdRV":"h bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nrcTOkTYpTtTUeNKDCLjoMG + {"fill":"h ( wTRr:","N":"\u72B6\u6001 2","Z":".","od":"*","xy":"7i^07he]","T":"*","wh":"7l527jD4","iLVA":"*","ort":")","icc":"h","shh":"(","sfh":"(","dvc":")","alH":"","alV":"","I":"","lg":"( 2 2 2 2 <"}\nlb4ryj5lTtTUeNKVlBUae9 {"xy":"7k@27i_>","I":[[3,"itaTOkUVTtTUeNK4KhZpor","","(",["9 0.4s 0 ","CURRENT_BASKET_REF","rcTOkTYpTtTUeNKyZ2NaKu"]]],"fill":"h ( c*BHp","T":"Q","N":"\u5706\u5F62","Z":"4","r":"((","wh":"7grF7grF","o":"3_","iLVA":"*","fPt":"(","ani":"( 0 0.1s 1","brdR":"h bYpZx ) (!(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nlb4rx66dTtTUeNKlD0j0M9 {"rtS":["SourceHanSansSC","regular","#101010"],"xy":"7iY]7hBu","b/#1BwVNo":["( ( ","\u8FD9\u53EA\u662F\u4E00\u4E2A\u7B80\u5355\u7684\u6F14\u793A\uFF0C\u73B0\u5728\u60A8\u5C31\u53EF\u4EE5\u70B9\u51FB\u53F3\u4E0A\u89D2\u7684\u300C\u6DFB\u52A0\u72B6\u6001\u300D\u6309\u94AE\uFF0C\u6DFB\u52A0\u65B0\u7684\u72B6\u6001\u548C\u94FE\u63A5\u6765\u521B\u5EFA\u5C5E\u4E8E\u60A8\u81EA\u5DF1\u7684\u70AB\u9177\u4EA4\u4E92\u6548\u679C\u4E86\u3002",["? . color-rgba(189,49,36,1)"],[]],"b/#000000":["( ( ","\u597D\u4E86\uFF0C\u60A8\u73B0\u5728\u5DF2\u7ECF\u6765\u5230\u4E86\u300C\u72B6\u60012\u300D\uFF0C\u4E0B\u9762\u7684\u7EA2\u8272\u5706\u5708\u53C8\u94FE\u63A5\u56DE\u4E86\u300C\u72B6\u60011\u300D\uFF0C\u70B9\u51FB\u7EA2\u8272\u6309\u94AE\uFF0C\u5B83\u5C06\u4F1A\u56DE\u5230\u6700\u5DE6\u4FA7\u5E76\u6062\u590D\u767D\u8272\u3002",["3 - color-rgba(189,49,36,1)","E - color-rgba(189,49,36,1)"],[]],"wh":"7k>H7hgy","rtN":"( ( ( 6 ) < ( 7g/. 7g4u","T":"x","N":"\u6587\u672C","Z":"3","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","ani":"( 0 0.1s 1","rtB":"("}\nlb4rvq80TtTUeNKk7vwHWa {"T":"M","N":"\u77E9\u5F62","Z":".","xy":"7i^07he]","r":"((","wh":"7l527jD4","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 0.1s 1","fill":"h ( wTRu7","brdRV":"h bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.445Z","hotAABB":[-304,2667,71,2907],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}',u=()=>ENV.IS_MO?'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nwbTOkWBWTtTUelSImKcV05 {"xy":"7ioV7nKB","Z":"B","N":"Scroll Panel 1","s":",","T":"R","r":"((","wh":"7l527jD4","o":"3_","iLVA":"*","fPt":"(","I":"","B":"*","rRBPK":"rbpTOkWBU8OeCRLwb1Ctvz","rCK":"rcTOkWBWU8OeCRLhU0IRZ2","l":")"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli ) {"T":")","B":"0"}\nrbpTOkWBU8OeCRLwb1Ctvz ) {"T":")","B":")","N":"Rectangle","Z":"/","ic":"","aF":"(","dvc":")","dWH":"7l527jD4","dORT":")","dSCR":")","alH":"","alV":"","wh":"7l527jD4","s":")","l":")","dck":"rcTOkWBWU8OeCRLhU0IRZ2","di":"( ","fill":"h ( wTRu7","mt":"("}\nrcTOkWBWU8OeCRLhU0IRZ2 , {"fill":"h ( wTRr:","xy":"7jFP7he]","wh":"7m^s7jD4","T":"*","N":"State 1","Z":"-","iLVA":"*","ort":")","icc":"h","shh":"(","sfh":"(","dvc":")","alH":"","alV":"","od":")","I":"","lg":"( 2 2 2 2 <"}\nlb4sacz7U8OeCRL65wuiFj {"xy":"7ia(7iS:","wh":"7k^k7h:i","dtV":1,"!LHV":1,"!WBIV":1,"!LIV":1,"!PSV":1,"rtS":["SourceHanSansSC","regular","#101010"],"b/#000000":["( ( ","The scrolling panel is a container for long pages. Use it when you need to display content by scrolling, and the setting on the right can adjust the display of the scroll bar.",[],[]],"Z":"-","rtN":"( ( ( 6 ) < ( 7g/. 7g4u","T":"x","N":"Text","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","ani":"( 0 0.1s 1","rtB":"("}\nlb4w3kp9U8OeCRLnp0l6vS {"N":"Widget","Z":"+","xy":"7l1,7h*P","wh":"7i{i7hMF","T":"f","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 0.1s 1","fill":"h ( wTRu7","brdR":"h bYpZx ) (!(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","ttv0P":",xd+r ( ( ) ) 6 < (","ttv0S":""}\nlb4w3kp9U8OeCRLT3sQJNh {"Z":"*","xy":"7hl(7h*P","wh":"7i{i7hMF","T":"f","N":"Widget","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 0.1s 1","fill":"h ( wTRu7","brdR":"h bYpZx ) (!(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","ttv0P":",xd+r ( ( ) ) 6 < (","ttv0S":""}\nlb4s9biaU8OeCRLW9oDVB8 {"xy":"7jFP7he]","wh":"7m^s7jD4","Z":")","fill":"h ( wTRu7","brdRV":"( bYpZx ) (!(!7","T":"M","N":"Rectangle","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 0.1s 1","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-29T08:19:55.831Z","hotAABB":[15,422,390,662],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}':'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nwbTOkWBWTtTUelSImKcV05 {"xy":"7eZZ89(q","N":"\u6EDA\u52A8\u9762\u677F 1","Z":"A","s":",","T":"R","r":"((","wh":"7l527jD4","o":"3_","iLVA":"*","fPt":"(","I":"","B":"*","rRBPK":"rbpTOkWBTtTUelSr96Kh7r","rCK":"rcTOkWBWTtTUelS8RGJlJH","l":")"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli ) {"T":")","B":"0"}\nrbpTOkWBTtTUelSr96Kh7r ) {"T":")","B":")","N":"\u77E9\u5F62","Z":"/","ic":"","aF":"(","dvc":")","dWH":"7l527jD4","dORT":")","dSCR":")","alH":"","alV":"","wh":"7l527jD4","s":")","l":")","dck":"rcTOkWBWTtTUelS8RGJlJH","di":"( ","fill":"h ( wTRu7","mt":"("}\nrcTOkWBWTtTUelS8RGJlJH , {"fill":"h ( wTRr:","xy":"7jFP7he]","wh":"7m^s7jD4","T":"*","N":"\u72B6\u6001 1","Z":"-","iLVA":"*","ort":")","icc":"h","shh":"(","sfh":"(","dvc":")","alH":"","alV":"","od":")","I":"","lg":"( 2 2 2 2 <"}\nlb4s9biaTtTUelS8GWmXZS {"Z":")","fill":"h ( wTRu7","brdRV":"( bYpZx ) (!(!7","xy":"7jFP7he]","wh":"7m^s7jD4","T":"M","N":"\u77E9\u5F62","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 0.1s 1","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nlb4w3kp9TtTUelSnlrmfEv {"Z":"*","xy":"7hl(7h*P","wh":"7i{i7hMF","T":"f","N":"\u7EC4\u4EF6","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 0.1s 1","fill":"h ( wTRu7","brdR":"h bYpZx ) (!(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","ttv0P":",xd+r ( ( ) ) 6 < (","ttv0S":""}\nlb4w3kp9TtTUelSNCbIlAn {"N":"\u7EC4\u4EF6","Z":"+","xy":"7l1,7h*P","wh":"7i{i7hMF","T":"f","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 0.1s 1","fill":"h ( wTRu7","brdR":"h bYpZx ) (!(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","ttv0P":",xd+r ( ( ) ) 6 < (","ttv0S":""}\nlb4sacz7TtTUelStizbq4M {"rtS":["SourceHanSansSC","regular","#101010"],"xy":"7ia(7iGZ","wh":"7k^k7gj:","b/#000000":["( ( ","\u6EDA\u52A8\u9762\u677F\u662F\u4E00\u79CD\u627F\u8F7D\u957F\u9875\u9762\u7684\u5BB9\u5668\uFF0C\u5F53\u4F60\u9700\u8981\u6EDA\u52A8\u663E\u793A\u5185\u5BB9\u65F6\u4F7F\u7528\u3002\u53F3\u4FA7\u8BBE\u7F6E\u9879\u53EF\u4EE5\u8C03\u6574\u6EDA\u52A8\u65B9\u5F0F\u3002",[],[]],"Z":"-","rtN":"( ( ( 6 ) < ( 7g/. 7g4u","T":"x","N":"\u6587\u672C","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","ani":"( 0 0.1s 1","rtB":"("}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.445Z","hotAABB":[-298,2907,77,3147],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}',d=()=>ENV.IS_MO?'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTTv1aKU8qNRlkIpmArkI {"!LIV":3,"xy":"7hAg7la4","wh":"7gPm7gFD","Z":"8","ani":"( 0s ","!LHV":1,"!WBIV":1,"!PSV":1,"T":"x","N":"","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","dtV":1,"b/#000000":["( ( ","Text",[],[]],"rtS":["PingFangSC","regular","#101010"],"rtN":"( ( ( 6 ( < ( 7g/. 7g4u","rtB":"("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-04-03T02:08:52.992Z","hotAABB":[75.5,402,104.5,422],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}':'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTTv1aKsE0cet {"xy":"7d2L7e:]","T":"x","N":"","Z":"-","r":"((","wh":"7h:i7gFD","o":"3_","iLVA":"*","fPt":"(","I":"","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","ani":"( 0s","dtV":1,"b/#000000":["( ( ","'+I18N.Widget.wRichTextText+'",[],[]],"rtS":["PingFangSC","regular","#101010"],"rtN":"( ( ( 6 ( < ( 7g/. 7g4u","rtB":"("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.439Z","hotAABB":[-261,-148,-177,-128],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}',C=()=>{const{basic:x,form:g,navigation:S,chart:t,advancedChart:v,multimedia:w,shape:k,flow:W}=(0,r.YN)(),K=[x+"/TtTTv1aKsE0cet",x+"/TtTTvIjJW6lSl8",x+"/TtTTvYwezJIByu",x+"/TtTUK6pc0nOlls",x+"/TtTUKRrrZeva6I",x+"/TtTUKk15K2VtVV",x+"/TtTUL5lIeY7QJC",x+"/TtTULQotepGKet",x+"/TtTULmLslJeJF3",x+"/TtTUM7TNsC6x26",x+"/TtTUMlqh5E4toI",x+"/TtUY5QWzcPDsM6",x+"/TtTUZws6BjIWp8",x+"/wbTOkTYpTtTUeNK4eU3iYQ",x+"/wbTOkWBWTtTUelSImKcV05",x+"/wbTZ7lTOUL2uLnzrbpq7Cv",x+"/rcUEDRX9UFNTz9UT8dScLT",g+"/TtTV0ibAA8Ph2U",g+"/TtTV1DMzwcJfQg",g+"/TtTV1gg4BqfTS1",g+"/TtTV2BRrZzU4mT",g+"/TtTV2jWVHN2Qxr",g+"/TtTV31eY4oQ3p4",g+"/TtTV41o7t3NTQh",g+"/TtTV4cQXkxxF1L",g+"/TtTV59Xqm0dfmL",g+"/TtTV5Yge00GJ4v",S+"/TtTVJcgsuOKfA0",S+"/wbTOksOVTtTVK7dHXfAC4d",S+"/TtTVKdZUNWYGJl",S+"/TtTVL8ogc4IFRO",S+"/TtTVLvB2MuPXDp",S+"/U5lkS3FEPNd1at",S+"/TtTVMLlFqQpSXt",S+"/TtTVMqx9iR0R5D",S+"/TtTVNBcbIennx",S+"/TtTVO2WuWGtO7a",S+"/TtTVOdXCG999rR",S+"/TtTVP4fRDRkZug",t+"/TtTWeOPmqcisnP",t+"/TtTWel7wW2HUxE",t+"/TtTWfCFq1eoQ9w",t+"/TtTWfWul8AGMEc",t+"/TtTWfrVJJuk07W",t+"/TtTWgHsD6EmAYA",t+"/TtTWgk9hDScIoD",t+"/TtTWhAVnCqoxVg",t+"/TtTWhURSssw9ki",v+"/U112FanAvTVF9D",v+"/U113fyFbNJRWiK",v+"/U113uufKHEoqFT",v+"/U1148gCZR4ygZq",v+"/U114OrAt1MlRVf",v+"/U4sweo7BYbHNop",v+"/U507Ub07zHbTJ",v+"/U509Kv0xZkvFgv",v+"/U50AIEeIuu8IWE",v+"/U50AqngLUEseDG",v+"/U50AwlCkzU0gYu",v+"/U50B5Zm1LHtlga",v+"/U2NQ5ozyHumOF",w+"/TtTWqGpGF2j58X",w+"/TtTWqmEKaaiarz",w+"/TtTWrJ6YLVnfQT",w+"/TtTWrmruU1KJsD",w+"/TtTWsKDImZMznw",w+"/TtTWsl4NuKb29L",w+"/TtTWtRSAWjtpHu",w+"/TtTWtx6mtGSTqv",k+"/TtTTvIjJW6lSl8",k+"/TtTTvYwezJIByu",k+"/TtTUd5TXzQiUZ8",k+"/TtTUdXcfZUPIbh",k+"/TtTUdvDe5xyvMg",W+"/ULDYqDqAdDqgrj",W+"/ULDYqXn9Q7t5eX",W+"/ULDYquH4iIv29k",W+"/ULDYrE8F27zeaQ",W+"/ULDYrWZgO0LsX1",W+"/ULDYrmAmMyPxFm",W+"/ULDYs5JTSKf4Ww",W+"/ULDYsPv4WDOzVz",W+"/ULDYsbgRo08xib",W+"/ULDYstMIb8crJV",W+"/ULDYt71zJtCSyS",W+"/ULDYtPft4pJ2Lr",W+"/ULDYtnbvaiddhp",W+"/ULDYtyZc9NCDC9",W+"/ULDYu8Io3j4nq",W+"/ULDYuK7KP2OrEq",W+"/ULDYuTuekx7DDu",W+"/ULDYue9RMtuBeb",W+"/ULDYutd6twPNm8",W+"/ULDYv4PTGfGty4",W+"/ULDYvFGNKc8O9t",W+"/ULDYvVI3GXbeO5",W+"/ULDYvfkSfGrbK6",W+"/ULDYvqC2QIyP8L",W+"/ULDYw2n7qdB8kr",W+"/ULDYwEvu5dBJ1q",W+"/ULDYwT06ufHaJH",W+"/ULDYwoyv4NEzbh",W+"/ULDYx1e6MFZTcA",W+"/ULDYxJHTvgSer6",W+"/ULDYxc8hZvULQr"];return ENV.IS_MO&&h(K,[v+"/U2NQ5ozyHumOF"]),K},h=(x,g)=>{g.forEach(S=>{const t=x.indexOf(S);t>-1&&x.splice(t,1)})},i=(x,g)=>{const S=x.filter(t=>t.startsWith(g));h(x,S)},f=()=>({preview:"polygon",meta:{name:I18N.w.wPolygon,type:"wPolygon",width:100,height:100},data:'@@R * {}\n@@M 2 {}\nB@main ) {"T":")","B":"*"}\nTtTUd5TXV3dRLRK4YgFvXz {"rs":{"c":{}},"rtS":["PingFangSC","regular","rgba(16,16,16,1)"],"styT":"*","N":"'+I18N.w.wPolygon+' 1","Z":">","so":"","rtN":"( ) ) 6 ) < ( 7g/. 7g/. (!(!(!(","iCT":"h","!LHV":1,"!WBIV":1,"rtm":"7g/.7g/.7g/.7g/.","brdRV":"h","!FFV":1,"T":"W","xy":"7^~g7a{{","r":"((","wh":"7hMF7hMF","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","fill":"h ( wTRu7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","dtV":1,"rtB":"(","plgN":"7g6,7g/.","brd":"h bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\nB@var {"T":")","B":"2"}\nB@dict {"T":")","B":"3"}\nB@style {"T":")","B":"5"}\n@page-content-tag-proto2-2208 {"time":"2025-11-26T06:28:25.416Z","hotAABB":[-648,-428.5,-548,-328.5],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'}),p=()=>({preview:"eq_triangle",meta:{name:I18N.w.wTriangleB,type:"wTriangle",width:120,height:100},data:'@@R * {}\n@@M 2 {}\nB@main ) {"T":")","B":"*"}\nTtTUdvDeV3dTDgp6wlMgoh {"rs":{"c":{}},"rtS":["PingFangSC","regular","rgba(16,16,16,1)"],"styT":"*","N":"'+I18N.w.wTriangleB+' 1","Z":"@","so":"","brdR":"h bYpZx ) (!(!h","rtN":"( ) ) 6 ) < ( 7g/. 7g/. (!(!(!(","iCT":"h","!LHV":1,"!WBIV":1,"rtm":"7g/.7g/.7g/.7g/.","!FFV":1,"T":")0","xy":"7Y<L7^=8","r":"((","wh":"7he]7hMF","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","fill":"h ( wTRu7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","dtV":1,"rtB":"("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\nB@var {"T":")","B":"2"}\nB@dict {"T":")","B":"3"}\nB@style {"T":")","B":"5"}\n@page-content-tag-proto2-2208 {"time":"2025-11-26T06:35:57.608Z","hotAABB":[-1010,-703.5,-890,-603.5],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'}),s=()=>({preview:"star",meta:{name:I18N.w.wStar,type:"wStar",width:100,height:100},data:'@@R * {}\n@@M 2 {}\nB@main ) {"T":")","B":"*"}\nTtTUdXcfV3dTniFLuIJrIG {"rs":{"c":{}},"rtS":["PingFangSC","regular","rgba(16,16,16,1)"],"styT":"*","N":"'+I18N.w.wStar+' 1","Z":"?","so":"","rtN":"( ) ) 6 ) < ( 7g/. 7g/. (!(!(!(","iCT":"h","!LHV":1,"!WBIV":1,"rtm":"7g/.7g/.7g/.7g/.","brdRV":"h","!FFV":1,"T":"X","xy":"7V]q7^oC","r":"((","wh":"7hMF7hMF","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","fill":"h ( wTRu7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","dtV":1,"rtB":"(","plgS":"7g4u7g/.7gj:","brd":"h bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\nB@var {"T":")","B":"2"}\nB@dict {"T":")","B":"3"}\nB@style {"T":")","B":"5"}\n@page-content-tag-proto2-2208 {"time":"2025-11-26T06:38:08.830Z","hotAABB":[-1194,-661.25,-1094,-561.25],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'}),l=()=>({preview:"placeholder",meta:{name:I18N.w.placeholder,type:"wPlaceholder",width:200,height:100},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTULmLslJeJF3 {"xy":"7e+R7sRT","T":"f","N":"'+I18N.w.placeholder+' 1","Z":"5","r":"((","wh":"7il_7hMF","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","fill":"h ( wTRu7","brdR":"h bYpZx ) (!(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","ttv0P":",xd+r ( ( ) ) 6 < (","ttv0S":""}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.440Z","hotAABB":[-251,868,-51,968],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'}),_=()=>({preview:"vertical_swimlane",meta:{name:"\u5782\u76F4\u6CF3\u9053",width:320,height:480,type:"wSwimlane"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYxJHTvgSer6 {"xy":"7i=27jD4","wh":"7kK67mY:","wl":["7i=2","7i=2"],"T":")2","N":"\u5782\u76F4\u6CF3\u9053 1","Z":"J","r":"((","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","brdR":"h bYpZx ) (!(","hl":["7gQ{","7gQ{","7m6D"],"tb":[["cell0"],["cell1","cell2"],["cell3","cell4"]],"cls":{"cell0":{"rt1":{"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3},"t1":{"dtV":1,"b/#000000":["( ( ","\u6CF3\u9053\u56FE\u6807\u9898",[],[]]},"fl":"h ( oT(h~"},"cell1":{"rt1":{"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3},"t1":{"dtV":1,"b/#000000":["( ( ","\u6CF3\u9053\u540D\u79F0",[],[]]},"fl":"h ( oT(h~"},"cell2":{"rt1":{"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3},"t1":{"dtV":1,"b/#000000":["( ( ","\u6CF3\u9053\u540D\u79F0",[],[]]},"fl":"h ( oT(h~"},"cell3":{"rt1":{"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3},"t1":{"dtV":1,"b/#000000":["( ( ","",[],[]]},"fl":"( ( oT(h~"},"cell4":{"rt1":{"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3},"t1":{"dtV":1,"b/#000000":["( ( ","",[],[]]},"fl":"( ( oT(h~"}},"ihbt":"(","smt":")"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.207Z","hotAABB":[0,0,320,480],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'}),b=()=>({TtTTv1aKsE0cet:{preview:"text",meta:{name:I18N.w.rich_text,type:"wRichText",width:ENV.IS_MO?29:84,height:20,key:"T"},data:d()},TtTTvIjJW6lSl8:{preview:"rectangle",meta:{name:I18N.w.wRect,type:"wRect",width:200,height:100,key:"R"},data:'@@R * {}\n@@M 2 {}\nB@main ) {"T":")","B":"*"}\nTtTTvIjJV3dP8XGlY4ZawO {"rtS":["PingFangSC","regular","rgba(16,16,16,1)"],"styT":"*","rs":{"c":{},"a":""},"N":"'+I18N.w.wRect+' 1","Z":"/","so":"","brdRV":"h bYpZx ) (!(!7!h","rtN":"( ) ) 6 ) < ( 7g/. 7g/. (!(!(!(","iCT":"h","!LHV":1,"!WBIV":1,"rtm":"7g/.7g/.7g/.7g/.","xy":"7dE*7d2L","T":"M","r":"((","wh":"7il_7hMF","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","fill":"h ( wTRu7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","dtV":1,"!FFV":1,"rtB":"("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\nB@var {"T":")","B":"2"}\nB@dict {"T":")","B":"3"}\nB@style {"T":")","B":"5"}\n@page-content-tag-proto2-2208 {"time":"2025-11-26T06:19:45.622Z","hotAABB":[-303,-269,-103,-169],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTTvYwezJIByu:{preview:"circle",meta:{name:I18N.w.wOval,type:"wOval",width:100,height:100,key:"O"},data:'@@R * {}\n@@M 2 {}\nB@main ) {"T":")","B":"*"}\nTtTTvYweV3dQorg5UHpDHo {"rtS":["PingFangSC","regular","rgba(16,16,16,1)"],"styT":"*","rs":{"c":{},"a":""},"N":"'+I18N.w.wOval+' 1","Z":"<","so":"","brdR":"h bYpZx ) (!(!h","rtN":"( ) ) 6 ) < ( 7g/. 7g/. (!(!(!(","iCT":"h","!LHV":1,"!WBIV":1,"rtm":"7g/.7g/.7g/.7g/.","xy":"7a@<7bAN","T":"Q","r":"((","wh":"7hMF7hMF","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","fill":"h ( wTRu7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","dtV":1,"!FFV":1,"rtB":"("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\nB@var {"T":")","B":"2"}\nB@dict {"T":")","B":"3"}\nB@style {"T":")","B":"5"}\n@page-content-tag-proto2-2208 {"time":"2025-11-26T06:26:20.823Z","hotAABB":[-479,-404,-379,-304],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUK6pc0nOlls:{preview:"line",meta:{name:I18N.w.wLine,type:"wLine",width:150,height:1,key:"L"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTUK6pc0nOlls {"xy":"7dvs7j~e","T":"N","N":"'+I18N.w.wLine+' 1","Z":"0","r":"((","wh":"7i1R7g0<","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","fill":"h ( wTRu7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","brd":"h bYpZx ) (","linP":"5Tm5Z]5aL5Z]"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.439Z","hotAABB":[-236,289,-86,290],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUKRrrZeva6I:{preview:"image",meta:{name:I18N.w.wImage,type:"wImage",width:200,height:100},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTUKRrrZeva6I {"xy":"7dvs7m<4","imgP":"( (( ((()((()((()((()((()((()((() *","T":"S","N":"'+I18N.w.wImage+' 1","Z":"1","r":"((","wh":"7il_7hMF","o":"3_","iLVA":".","fPt":"(","I":"","ani":"( 0 1s 1","fill":"( ( oT(h~","brdR":"( bYpZx ) (!(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","imgF":"","imgR":""}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.439Z","hotAABB":[-261,405,-61,505],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUKk15K2VtVV:{preview:"linkarea",meta:{name:I18N.w.wLr,type:"wLr",width:45,height:45,key:"H"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTUKk15K2VtVV {"xy":"7dwN7o*:","T":"_","N":"'+I18N.w.wLr+' 1","Z":"2","r":"((","wh":"7gdJ7gdJ","o":"3_","iLVA":"*","fPt":"(","I":""}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.439Z","hotAABB":[-183,565,-138,610],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUL5lIeY7QJC:{preview:"button",meta:{name:I18N.w.wButton,type:"wButton",width:80,height:30},data:'@@R * {}\n@@M 2 {}\nB@main ) {"T":")","B":"*"}\nTtTUL5lIV4s4ujAfOmArYO {"rtN":"( ) ) 4 ) 9 ( 7g/. 7g4u ,!0!,!0","ttv0P":"3lsAb ( ( ) ) 4 9 ( ( + ,!0!,!0","RVS":{"rtN":" !!!"},"N":"'+I18N.w.wButton+' 1","Z":"7","b/#000000":["( ( ","\u6309\u94AE",["( * fontsize-12","( * lineheight-17px","( * color-rgba(38,111,255,1)"],[]],"defaC":"3lsAb","xy":"7f?B7fJy","wh":"7h607gT@","rtS":["PingFangSC","regular","rgba(38,111,255,1)"],"brdRV":"h 3lsAb ) (!,!7!h","styT":"*","rs":{"c":{},"a":""},"so":"","rtB":"(","iCT":"h","!LHV":1,"!WBIV":1,"dtV":1,"rtm":"7g/.7g/.7g/.7g/.","staT":"(","ttv0F":"PingFangSC","!FFV":1,"T":"]","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","fill":"h ( wTRu7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","ttv0S":"\u6309\u94AE"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\nB@var {"T":")","B":"2"}\nB@dict {"T":")","B":"3"}\nB@style {"T":")","B":"5"}\n@page-content-tag-proto2-2208 {"time":"2025-12-09T09:02:41.292Z","hotAABB":[-100,-66,-20,-34],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTULQotepGKet:{preview:"button_solid",meta:{name:I18N.w.button_solid,type:"wButton",width:80,height:30,metaType:n.x.WButtonSolid},data:'@@R * {}\n@@M 2 {}\nB@main ) {"T":")","B":"*"}\nTtTULQotV4s5kqRzZ5wUOX {"rtN":"( ) ) 4 ) 9 ( 7g/. 7g4u ,!0!,!0","ttv0P":"wTRu7 ( ( ) ) 4 9 ( ( + ,!0!,!0","RVS":{"rtN":" !!!"},"N":"'+I18N.w.button_solid+' 1","Z":"9","ttv0S":"\u6309\u94AE2","b/#000000":["( ( ","\u6309\u94AE2",["( * fontsize-12","( * lineheight-17px","( * color-rgba(255,255,255,1)"],[]],"defaC":"3lsAb","xy":"7fL07j0H","wh":"7h607gT@","brdRV":"( 3lsAb ) (!,!7!h","fill":"h ( 3lsAb","styT":"(","rs":{"c":{},"a":""},"so":"","rtS":["PingFangSC","regular","rgba(255,255,255,1)"],"rtB":"(","iCT":"h","!LHV":1,"!WBIV":1,"dtV":1,"rtm":"7g/.7g/.7g/.7g/.","staT":"(","ttv0F":"PingFangSC","!FFV":1,"T":"]","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","shd":") ( ((()8 ((((( ;_2g, ;rw*} ((((("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\nB@var {"T":")","B":"2"}\nB@dict {"T":")","B":"3"}\nB@style {"T":")","B":"5"}\n@page-content-tag-proto2-2208 {"time":"2025-12-09T09:05:51.489Z","hotAABB":[-89,207,-9,239],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTULmLslJeJF3:l(),TtTUM7TNsC6x26:{preview:"table",meta:{name:I18N.w.wTable,type:"wTable",width:320,height:120},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTUM7TNUEFDnpALab04sR {"T":"w","N":"'+I18N.w.wTable+'","Z":"7","xy":"7dmX7lY6","r":"((","wh":"7kK67he]","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","fill":"h ( wTRu7","brdRV":"h bYpZx ) (!(!7","ttv0P":",xd+r ( ( ) ) 6 < 0 ( + 0!0!0!0","ttv0S":"","ttv0F":"PingFangSC","tblP":", , ( 7g/G7g/G7g/G7g/G 7g/G7g/G7g/G7g/G","tblIBH":"h bYpZx )","tblIBV":"h bYpZx )","tblOB":"h bYpZx )","hlP3":"7gQ{7gQ{7gQ{7gQ{","wlP3":"7h607h607h607h60","tbP":[["1","2","3","4"],["5","6","7","8"],["9","A","B","C"],["D","E","F","G"]],"c/1":["","",""],"c/2":["","",""],"c/3":["","",""],"c/4":["","",""],"c/5":["","",""],"c/6":["","",""],"c/7":["","",""],"c/8":["","",""],"c/9":["","",""],"c/A":["","",""],"c/B":["","",""],"c/C":["","",""],"c/D":["","",""],"c/E":["","",""],"c/F":["","",""],"c/G":["","",""],"tblD":{"css":[[""]],"col":[{"t":"text","w":80}],"row":[{"h":30}],"da":[[""]],"lk":[[""]],"mc":{}},"!V":3}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-07-12T03:56:57.159Z","hotAABB":[-329,346,-9,466],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUMlqh5E4toI:{preview:"note",meta:{name:I18N.w.wSticky,type:"wSticky",width:280,height:140,key:"N"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTUMlqh5E4toI {"Z":";_2g-","xy":"7eZ(7w](","b/#000000":["( ( ","",[],[]],"T":"i","N":"'+I18N.w.wSticky+' 1","r":"((","wh":"7jsa7he]","o":"3_","iLVA":"*","fPt":"(","I":"","fill":"h ( vqxy[","ttv0LhpP":"< @","styp":"","dtV":1,"od":")","rWK":"","ptd":"l"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.443Z","hotAABB":[-251,1162,29,1282],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtUY5QWzcPDsM6:{preview:"tear",meta:{name:I18N.w.wTear,type:"wTear",width:20,height:20,key:"W"},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtUY5QWzcPDsM6 {"b/#000000":["( ( ","",[],[]],"T":")-","N":"'+I18N.w.wTear+' 1","Z":";_2g-","xy":"7eS*7ymH","r":"((","wh":"7gFD7gFD","o":"3_","iLVA":"*","fPt":"(","I":"","fill":"h ( vqxy[","ttv0LhpP":"< @","dtV":1,"od":")","sth":")J"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T07:19:37.418Z","hotAABB":[-127,1374,-107,1394],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUZws6BjIWp8:{preview:"arrow",meta:{name:I18N.w.wArrow,type:"wArrow",width:150,height:1},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTUZws6BjIWp8 {"T":"Y","N":"'+I18N.w.wArrow+' 1","Z":"7","xy":"7elN7{O}","r":"((","wh":"7i1R7g0<","o":"3_","iLVA":"*","fPt":"(","I":"","fill":"h ( wTRu7","ani":"( 0 1s 1","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","linP":"5Tm5Z]5aL5Z]","arrP":",!)!h uOTd= * ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.443Z","hotAABB":[-171,1507,-21,1508],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUaNUAiMYciI:{preview:"iphone_x_status_bar",meta:{name:I18N.w.wIphoneXSB,type:"wIphoneXSB",width:390,height:47},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTUaNUAiMYciI {"T":"~","N":"'+I18N.w.wIphoneXSB+' 1","Z":"8","xy":"7eZ(7|j]","r":"((","wh":"7lFX7gfg","o":"3_","iLVA":"*","fPt":"(","I":"","fill":"h ( uG3db","ttv0P":",xd+r ( ( ) ) 6 < (","ttv0S":""}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.443Z","hotAABB":[-306,1580,84,1627],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUap7E0wllRC:{preview:"input",meta:{name:I18N.w.wMTextInput,type:"wMTextInput",width:200,height:30},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTUap7E0wllRC {"T":"c","N":"'+I18N.w.wMTextInput+' 1","Z":"9","xy":"7eZ(7~>0","r":"((","wh":"7il_7gQ{","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":"QtD^Q ( ( ) ( 6 < (","ttv0S":"'+I18N.Widget.prompt+'","fill":"h ( wTRu7","brdRV":"h bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","ti":"(","pt1":"","ptc1":",xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.443Z","hotAABB":[-211,1699,-11,1729],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUbIaRroe2P0:{preview:"textarea",meta:{name:I18N.w.wMTextarea,type:"wMTextInput",width:200,height:100},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTUbIaRroe2P0 {"T":"b","N":"'+I18N.w.wMTextarea+' 1","Z":":","xy":"7eZ(8)Ha","r":"((","wh":"7il_7hMF","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":"QtD^Q ( ( ) ( 6 < 0","ttv0S":"'+I18N.Widget.prompt+'","fill":"h ( wTRu7","brdRV":"h bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","ti":"(","pt1":"","ptc1":",xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.443Z","hotAABB":[-211,1821,-11,1921],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUblAGCuLDKc:{preview:"select",meta:{name:I18N.w.wMSelect,type:"wMSelect",width:200,height:30},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTV1gg4UGlUWmVnmDOKOu {"brdRV":"h bYpZx ) (!.!7","N":"\u4E0B\u62C9\u9009\u62E9\u5668 20","Z":"Z","so":"","ttv0P":",xd+r ( ( ) ) 6 < 0 ( + (!;!(!1","ttv0F":"PingFangSC","!FFV":1,"T":"a","xy":"7wbH7gHT","r":"((","wh":"7il_7gQ{","o":"3_","iLVA":"*","fPt":"(","I":"","fill":"h ( wTRu7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","ttv0S":"1\\n2\\n3"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-06-26T01:56:34.656Z","hotAABB":[1126.62,6.879999999999999,1326.62,36.879999999999995],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUcRx7Gxlvl5:{preview:"drop_menu",meta:{name:I18N.Widget.wDropMenuText,type:"wDropMenu",width:120,height:32},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTUcRx7Gxlvl5 {"!FFV":1,"T":"q","N":"'+I18N.Widget.wDropMenuText+' 1","Z":"<","xy":"7eS*8,kT","r":"((","wh":"7he]7gT@","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","ttv0P":",xd+r ( ( ) ( 6 < 0","ttv0S":"'+I18N.Widget.wDropMenuText+'","fill":"h ( wTRu7","brdRV":"h bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","odDM":"( (","od":[[["'+I18N.Widget.option1+'","","(",""],[]],[["'+I18N.Widget.option2+'","","(",""],[]],[["'+I18N.Widget.option3+'","","(",""],[]]],"oc":"wTRu7 tMdit 1Wxsx"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.444Z","hotAABB":[-177,2106,-57,2138],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTUd5TXzQiUZ8:f(),TtTUdXcfZUPIbh:s(),TtTUdvDe5xyvMg:p(),wbTOkTYpTtTUeNK4eU3iYQ:{preview:"dynamic",meta:{name:I18N.w.dynamic_widget,type:"wBasket",width:375,height:240},data:I()},wbTOkWBWTtTUelSImKcV05:{preview:"scroll_panel",meta:{name:I18N.w.scroll_panel,type:"wBasket",width:375,height:240},data:u()},wbTZ7lTOUL2uLnzrbpq7Cv:{preview:"mind",meta:{name:I18N.w.wMind,type:"wMind",width:315,height:212},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nwbTZ7lTOUL2uLnzrbpq7Cv {"N":"'+I18N.w.wMind+' 1","Z":"W","so":"","t":"(","T":")5","xy":"9;q{7kv*","r":"((","wh":"7kEF7izZ","o":"3_","iLVA":"*","fPt":"(","I":"","rRBPK":"rbpTYYl9UL2uLnzWMXqtF2","rCK":"rcTZ7lTOUL2uLnzKbY0U3V","iAS":"h","fill":"( ( wTRu7","brd":"( bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind ) {"T":")","B":"1"}\nrbpTYYl9UL2uLnzWMXqtF2 ) {"T":")","B":")","N":"ref mind page 0","Z":"(","ic":"","aF":"(","dvc":"(","dWH":"7kw87r->","dORT":"*","dSCR":")","alH":"","alV":"","wh":"((((((((","s":")","l":")","dck":"","di":"( ","fill":"h ( wTRu7","iSDG":"h","!V":"","mt":"("}\nrcTZ7lTOUL2uLnzKbY0U3V ) {"T":"*","N":"\u72B6\u6001 1","Z":"(","xy":"7g/.7g/.","wh":"7g/.7g/.","fill":"h ( wTRu7","iLVA":".","ort":")","icc":"h","shh":"2","sfh":"2","dvc":"(","alH":"","alV":"","od":")","I":"","lg":"( 2 2 2 2 2","ao":"(","brdRV":"( bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} ((((("}\nTaKaVouWUL2uLnzf5qxAxu + {"T":")6","N":"\u4E2D\u5FC3\u4E3B\u9898","Z":"-","xy":"7g/.7g/.","r":"((","wh":"7g/.7g/.","o":"3_","iLVA":"*","fPt":"(","I":"","exp":"h","od":")","icn":"","ir":"h","dtV":1,"b/#000000":["( ( ","\u4E2D\u5FC3\u4E3B\u9898",[],[]],"rtS":["PingFangSC","regular",""],"rtN":"( ( ( 6 ( < ( 7g/. 7g4u","rtB":"(","fill":"( ( wTRu7","brd":"( bYpZx ) (","pla":")","imgP":"7g/.7g/.","imgR":""}\nTZ8nrXSkUL2uLnztl0dGFC {"T":")6","N":"\u4E3B\u9898 1","Z":"-","xy":"7g/.7g/.","r":"((","wh":"7g/.7g/.","o":"3_","iLVA":"*","fPt":"(","I":"","exp":"h","od":")","icn":"","ir":"(","dtV":1,"b/#000000":["( ( ","\u4E3B\u9898 1",[],[]],"rtS":["PingFangSC","regular",""],"rtN":"( ( ( 6 ( < ( 7g/. 7g4u","rtB":"(","fill":"( ( wTRu7","brd":"( bYpZx ) (","pla":")","imgP":"7g/.7g/.","imgR":""}\nTZ8nLY6wUL2uLnzAbWSkBq {"T":")6","N":"\u4E3B\u9898 2","Z":"-","xy":"7g/.7g/.","r":"((","wh":"7g/.7g/.","o":"3_","iLVA":"*","fPt":"(","I":"","exp":"h","od":"*","icn":"","ir":"(","dtV":1,"b/#000000":["( ( ","\u4E3B\u9898 2",[],[]],"rtS":["PingFangSC","regular",""],"rtN":"( ( ( 6 ( < ( 7g/. 7g4u","rtB":"(","fill":"( ( wTRu7","brd":"( bYpZx ) (","pla":")","imgP":"7g/.7g/.","imgR":""}\nTZ6C5iVrUL2uLnzYYOSlEv {"T":")6","N":"\u4E3B\u9898 3","Z":"-","xy":"7g/.7g/.","r":"((","wh":"7g/.7g/.","o":"3_","iLVA":"*","fPt":"(","I":"","exp":"h","od":"+","icn":"","ir":"(","dtV":1,"b/#000000":["( ( ","\u4E3B\u9898 3",[],[]],"rtS":["PingFangSC","regular",""],"rtN":"( ( ( 6 ( < ( 7g/. 7g4u","rtB":"(","fill":"( ( wTRu7","brd":"( bYpZx ) (","pla":")","imgP":"7g/.7g/.","imgR":""}\n@page-content-tag-proto2-2208 {"time":"2024-08-10T12:08:05.952Z","hotAABB":[9440,250,9755,462],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},rcUEDRX9UFNTz9UT8dScLT:{preview:"overlay",meta:{name:I18N.w.rResCanvasAsOverlay,type:"rResCanvasAsOverlay",width:300,height:240},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nrcUEDRX9UFNTz9UT8dScLT {"xy":"7i1R7he]","wh":"7k3w7jD4","brdRV":"( bYpZx ) (!(!7","N":"'+I18N.w.rResCanvasAsOverlay+'","T":"*","Z":"@","fill":"h ( wTRu7","iLVA":"*","ort":")","ao":"h","icc":"h","shh":"(","sfh":"(","dvc":")","alH":"","alV":"","od":",","I":"","lg":"( 2 2 2 2 <","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","r":"(("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-06-11T08:56:36.947Z","hotAABB":[0,0,300,240],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTV0ibAA8Ph2U:{preview:"input",meta:{name:I18N.w.wMTextInput,type:"wMTextInput",width:200,height:30},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTV0ibAA8Ph2U {"T":"c","N":"'+I18N.w.wMTextInput+' 2","Z":"B","xy":"7sd{7h[B","r":"((","wh":"7il_7gQ{","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":"QtD^Q ( ( ) ( 6 < (","ttv0S":"'+I18N.Widget.prompt+'","fill":"h ( wTRu7","brdRV":"h bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","ti":"(","pt1":"","ptc1":",xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:01:12.343Z","hotAABB":[833,97,1033,127],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTV1DMzwcJfQg:{preview:"textarea",meta:{name:I18N.w.wMTextarea,type:"wMTextInput",width:200,height:100},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTV1DMzwcJfQg {"T":"b","N":"'+I18N.w.wMTextarea+' 2","Z":"C","xy":"7sd{7ju}","r":"((","wh":"7il_7hMF","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":"QtD^Q ( ( ) ( 6 < 0","ttv0S":"'+I18N.Widget.prompt+'","fill":"h ( wTRu7","brdRV":"h bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","ti":"(","pt1":"","ptc1":",xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:01:12.343Z","hotAABB":[833,232,1033,332],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTV1gg4BqfTS1:{preview:"select",meta:{name:I18N.w.wMSelect,type:"wMSelect",width:200,height:30},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTV1gg4UGlUWmVnmDOKOu {"brdRV":"h bYpZx ) (!.!7","N":"\u4E0B\u62C9\u9009\u62E9\u5668 20","Z":"Z","so":"","ttv0P":",xd+r ( ( ) ) 6 < 0 ( + (!;!(!1","ttv0F":"PingFangSC","!FFV":1,"T":"a","xy":"7wbH7gHT","r":"((","wh":"7il_7gQ{","o":"3_","iLVA":"*","fPt":"(","I":"","fill":"h ( wTRu7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","ttv0S":"1\\n2\\n3"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-06-26T01:56:34.656Z","hotAABB":[1126.62,6.879999999999999,1326.62,36.879999999999995],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTV2BRrZzU4mT:{preview:"file",meta:{name:I18N.w.wMFileInput,type:"wMFileInput",width:200,height:30},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTV2BRrZzU4mT {"T":"`","N":"'+I18N.w.wMFileInput+' 1","Z":"E","xy":"7sd{7no8","r":"((","wh":"7il_7gQ{","o":"3_","iLVA":"*","fPt":"(","I":""}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:01:12.343Z","hotAABB":[833,557,1033,587],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTV2jWVHN2Qxr:{preview:"selection_control_radio",meta:{name:I18N.w.selection_control_radio,type:"wSelectionControlRadio",width:222,height:64},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTV2jWVHN2Qxr {"T":"s","N":"'+I18N.w.selection_control_radio+' 1","Z":"F","xy":"7sd{7pdo","r":"((","wh":"7j/:7gzR","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","odSLC":"( ( ), 6 7eS(K 7eS(K gn~wh .v~[9 7","od":[[["'+I18N.Widget.option1+'","","*",""],[]],[["'+I18N.Widget.option2+'","","(",""],[]],[["'+I18N.Widget.option3+'","","(",""],[]],[["'+I18N.Widget.option4+'","","(",""],[]]]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:01:12.344Z","hotAABB":[822,679,1044,743],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTV31eY4oQ3p4:{preview:"selection_control_checkbox",meta:{name:I18N.w.selection_control_checkbox,type:"wSelectionControlCheckbox",width:222,height:64},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTV31eY4oQ3p4 {"xy":"7sqi7rci","T":"s","N":"'+I18N.w.selection_control_checkbox+' 1","Z":"G","r":"((","wh":"7j/:7gzR","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","odSLC":"( ) ), 6 7eS(K 7eS(K gn~wh .v~[9 7","od":[[["'+I18N.Widget.option1+'","","*",""],[]],[["'+I18N.Widget.option2+'","","(",""],[]],[["'+I18N.Widget.option3+'","","(",""],[]],[["'+I18N.Widget.option4+'","","(",""],[]]]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:01:12.345Z","hotAABB":[833,826,1055,890],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTV41o7t3NTQh:{preview:"android_switch",meta:{name:I18N.w.wAndroidSwitch,type:"wAndroidSwitch",width:37,height:20},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTV41o7t3NTQh {"T":"Z","N":"'+I18N.w.wAndroidSwitch+' 1","Z":"H","xy":"7sNN7tRX","r":"((","wh":"7gZ07gFD","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","swi":"g wTRu7 Cid{` X`vSz ^@cip"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:01:12.345Z","hotAABB":[896,982,933,1002],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTV4cQXkxxF1L:{preview:"ios_switch",meta:{name:I18N.w.wIosSwitch,type:"wIosSwitch",width:37,height:20},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTV4cQXkxxF1L {"T":"[","N":"'+I18N.w.wIosSwitch+' 1","Z":"I","xy":"7s[<7uCR","r":"((","wh":"7gZ07gFD","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","swi":"g wTRu7 wTRu7 nZXq7 (?D51"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:01:12.345Z","hotAABB":[907,1043,944,1063],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTV59Xqm0dfmL:{preview:"slider",meta:{name:I18N.w.wSlider,type:"wSlider",width:240,height:20},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTV59Xqm0dfmL {"T":"g","N":"'+I18N.w.wSlider+' 1","Z":"J","xy":"7soL7vPD","r":"((","wh":"7jD47gFD","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","sldP":"/ wTRu7 pMNcl .v~[9 < < , , 7gj:","sldB":"h .v~[9 ) (","sldSthb":") ( bYpZx ((((( ;_2g, ;rw*} (((((","sldStrk":") ( bYpZx ((((( ;_2g, ;rw*} ((((("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:01:12.345Z","hotAABB":[822,1128,1062,1148],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTV5Yge00GJ4v:{preview:"digital_stepper",meta:{name:I18N.w.wDigitalStepper,type:"wDigitalStepper",width:92,height:24},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTV5Yge00GJ4v {"T":"^","N":"'+I18N.w.wDigitalStepper+' 1","Z":"K","xy":"7soL7xC_","r":"((","wh":"7hD,7gJ}","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","brdR":"h bYpZx ) (!*","ds":",xd+r <*l0[ @ 0 6 ( 2 )","fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:01:12.345Z","hotAABB":[896,1263,988,1287],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVJcgsuOKfA0:{preview:"drop_menu",meta:{name:I18N.w.drop_menu,type:"wDropMenu",width:140,height:40},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVJcgsUPH7pUD1zC44Y3 {"xy":"7raL7v){","wh":"7h|s7g^Z","N":"'+I18N.w.drop_menu+'","Z":"H","od":[[["'+I18N.Widget.nav1+'","","(","",""],[]],[["'+I18N.Widget.nav2+'","","(","",""],[]],[["'+I18N.Widget.nav3+'","","(","",""],[]]],"oc":"wTRu7 tMdit 1Wxsx .v~[9","brdRV":"h bYpZx ) (!.!7","so":"","ttv0P":",xd+r ( ( ) ( 6 < 0 ( + 0!0!0!0","ttv0F":"PingFangSC","!FFV":1,"T":"q","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","ttv0S":"'+I18N.w.drop_menu+'","fill":"h ( wTRu7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","odDM":"( ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-09-24T07:37:58.060Z","hotAABB":[786,1085,926,1125],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},wbTOksOVTtTVK7dHXfAC4d:{preview:"dynamic_drop_menu",meta:{name:I18N.w.dynamic_drop_menu,type:"wBasket",width:136,height:188},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nwbTOksOVTtTVK7dHXfAC4d {"N":"'+I18N.w.dynamic_drop_menu+' 1","Z":"M","xy":"7s>i8(E2","T":"R","r":"((","wh":"7hx:7i^c","o":"3_","iLVA":"*","fPt":"(","I":"","B":"*","rRBPK":"rbpTOksOTtTVK7dMOsJOhF","rCK":"rcTOksOVTtTVK7d10RPe7d","s":")","l":")"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli ) {"T":")","B":"0"}\nrbpTOksOTtTVK7dMOsJOhF * {"T":")","B":")","N":"'+I18N.w.rounded_rect+' 2","Z":"0","ic":"","aF":"(","dvc":")","dWH":"7hx:7i^c","dORT":")","dSCR":")","alH":"","alV":"","wh":"7hx:7i^c","s":")","l":")","dck":"rcTOksOVTtTVK7d10RPe7d","di":"( ","fill":"h ( wTRu7"}\nrcTOksOVTtTVK7d10RPe7d ) {"xy":"7h(47hFH","fill":"h ( wTRr:","T":"*","N":"'+I18N.Basket.state1+'","Z":"-","wh":"7hx:7i^c","iLVA":"*","ort":")","icc":"h","shh":"(","sfh":"(","dvc":")","alH":"","alV":"","od":")","I":"","lg":"( 2 2 2 2 <"}\nlb4vfhn3TtTVK7dmdQPejP {"I":[[3,"itaTOkwTTtTVK7dibTqsxv","","(",["9 0.2s 0 ","wbTOksOVTtTVK7dHXfAC4d","rcTOksOVTtTVK7dlo1EKl6"]]],"N":"'+I18N.w.add+'","xy":"7h]P7g?F","wh":"7gO_7gO_","icNCS":["ze-add-o","rgba(16,16,16,1)","D"],"T":"y","Z":"1","r":"((","o":"3_","iLVA":".","fPt":"(","ani":"( 0 0.1s 1","brdR":"h bYpZx ( (!(","fill":"h ( ,xd+r","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","icVB":"0 0 32 32","icP":"<path d=\\"M15.111 15.118v-6.222c0-0.491 0.398-0.889 0.889-0.889h0.005c0.488 0.003 0.882 0.4 0.88 0.889l-0.032 6.222h6.259c0.491 0 0.889 0.398 0.889 0.889s-0.398 0.889-0.889 0.889h-6.268l-0.033 6.264c-0.002 0.469-0.383 0.847-0.852 0.847s-0.847-0.379-0.847-0.847v-6.264h-6.222c-0.491 0-0.889-0.398-0.889-0.889s0.398-0.889 0.889-0.889h6.222z\\"></path><path d=\\"M16 28.444c6.873 0 12.444-5.572 12.444-12.444s-5.572-12.444-12.444-12.444c-6.873 0-12.444 5.572-12.444 12.444s5.572 12.444 12.444 12.444zM16 30.222c-7.855 0-14.222-6.367-14.222-14.222s6.367-14.222 14.222-14.222 14.222 6.367 14.222 14.222-6.367 14.222-14.222 14.222z\\"></path>","icSA":[0,0]}\nrcTOksOVTtTVK7dlo1EKl6 - {"N":"'+I18N.Basket.state2+'","Z":".","od":"*","xy":"7h(47hFH","fill":"h ( wTRr:","T":"*","wh":"7hx:7i^c","iLVA":"*","ort":")","icc":"h","shh":"(","sfh":"(","dvc":")","alH":"","alV":"","I":"","lg":"( 2 2 2 2 <"}\nlb4vfhn3TtTVK7do46cJSv {"N":"'+I18N.w.add+'","I":[[3,"itaTOkwaTtTVK7dJaNntsW","","(",["9 0.2s 0 ","wbTOksOVTtTVK7dHXfAC4d","rcTOksOVTtTVK7d10RPe7d"]]],"xy":"7h]P7g?F","wh":"7gO_7gO_","icNCS":["ze-add-o","rgba(16,16,16,1)","D"],"T":"y","Z":"1","r":"((","o":"3_","iLVA":".","fPt":"(","ani":"( 0 0.1s 1","brdR":"h bYpZx ( (!(","fill":"h ( ,xd+r","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","icVB":"0 0 32 32","icP":"<path d=\\"M15.111 15.118v-6.222c0-0.491 0.398-0.889 0.889-0.889h0.005c0.488 0.003 0.882 0.4 0.88 0.889l-0.032 6.222h6.259c0.491 0 0.889 0.398 0.889 0.889s-0.398 0.889-0.889 0.889h-6.268l-0.033 6.264c-0.002 0.469-0.383 0.847-0.852 0.847s-0.847-0.379-0.847-0.847v-6.264h-6.222c-0.491 0-0.889-0.398-0.889-0.889s0.398-0.889 0.889-0.889h6.222z\\"></path><path d=\\"M16 28.444c6.873 0 12.444-5.572 12.444-12.444s-5.572-12.444-12.444-12.444c-6.873 0-12.444 5.572-12.444 12.444s5.572 12.444 12.444 12.444zM16 30.222c-7.855 0-14.222-6.367-14.222-14.222s6.367-14.222 14.222-14.222 14.222 6.367 14.222 14.222-6.367 14.222-14.222 14.222z\\"></path>","icSA":[0,0]}\nwwTOkvlETtTVK7d3IrkxZ4 + {"N":"'+I18N.w.file_transfer+'","T":"P","Z":"6","xy":"7h(47i8P","r":"((","wh":"7g/.7g/.","o":"3_","iLVA":"*","fPt":"(","I":"","iASC":"+"}\nlb4vko3aTtTVK7dLyxzf94 {"fill":"( ( ?e~4[","Z":")","N":"'+I18N.w.rounded_rect+'","T":"M","xy":"7g/.7g/.","r":"((","wh":"7hx:7gc<","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 0.1s 1","brdRV":"( bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nlb4vl9gfTtTVK7dqDek3aV {"Z":"+","T":"x","N":"'+I18N.w.wRichText+'","xy":"7g7:7g.R","r":"((","wh":"7ggu7gIo","o":"3_","iLVA":"*","fPt":"(","I":"","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","ani":"( 0 0.1s 1","b/#000000":["( ( ","'+I18N.w.file_transfer+'",[],[]],"rtS":["SourceHanSansSC","regular","rgba(255,255,255,1)"],"rtN":"( ( ( 8 ( ? ( 7g/. 7g4u","rtB":"("}\nlb4vn4vyTtTVK7dzniLRLp {"Z":"*","N":"'+I18N.w.file_transfer+'","T":"y","xy":"7fXu7g/.","r":"((","wh":"7gJ}7gJ}","o":"3_","iLVA":".","fPt":"(","I":"","ani":"( 0 0.1s 1","brdR":"h bYpZx ( (!(","fill":"h ( wTRu7","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","icVB":"0 0 32 32","icP":"<path d=\\"M3.556 9.778v-4.444c0-0.982 0.796-1.778 1.778-1.778h4.444c0.491 0 0.889 0.398 0.889 0.889s-0.398 0.889-0.889 0.889h-4.444v4.444c0 0.491-0.398 0.889-0.889 0.889s-0.889-0.398-0.889-0.889zM5.333 22.222v4.444h4.444c0.491 0 0.889 0.398 0.889 0.889s-0.398 0.889-0.889 0.889h-4.444c-0.982 0-1.778-0.796-1.778-1.778v-4.444c0-0.491 0.398-0.889 0.889-0.889s0.889 0.398 0.889 0.889zM26.667 9.778v-4.444h-4.444c-0.491 0-0.889-0.398-0.889-0.889s0.398-0.889 0.889-0.889h4.444c0.982 0 1.778 0.796 1.778 1.778v4.444c0 0.491-0.398 0.889-0.889 0.889s-0.889-0.398-0.889-0.889zM28.444 22.222v4.444c0 0.982-0.796 1.778-1.778 1.778h-4.444c-0.491 0-0.889-0.398-0.889-0.889s0.398-0.889 0.889-0.889h4.444v-4.444c0-0.491 0.398-0.889 0.889-0.889s0.889 0.398 0.889 0.889zM4.444 15.111h23.111c0.491 0 0.889 0.398 0.889 0.889s-0.398 0.889-0.889 0.889h-23.111c-0.491 0-0.889-0.398-0.889-0.889s0.398-0.889 0.889-0.889z\\"></path>","icNCS":["ze-scan","rgba(16,16,16,1)","@"],"icSA":[0,0]}\nwwTOkvmlTtTVK7dPvwSWYn + {"N":"'+I18N.w.add_friend+'","T":"P","Z":";","xy":"7h(47h[B","r":"((","wh":"7g/.7g/.","o":"3_","iLVA":"*","fPt":"(","I":"","iASC":"+"}\nlb4vl9gfTtTVK7d7iWeBtp {"Z":",","T":"x","N":"'+I18N.w.wRichText+' 1","xy":"7g@T7g.R","r":"((","wh":"7gzR7gIo","o":"3_","iLVA":"*","fPt":"(","I":"","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","ani":"( 0 0.1s 1","b/#000000":["( ( ","'+I18N.w.add_friend+'",[],[]],"rtS":["SourceHanSansSC","regular","rgba(255,255,255,1)"],"rtN":"( ( ( 8 ( ? ( 7g/. 7g4u","rtB":"("}\nlb4vko3aTtTVK7d4uykMHK {"fill":"( ( ?e~4[","iLVA":"*","N":"'+I18N.w.rounded_rect+'","Z":")","T":"M","xy":"7g/.7g/.","r":"((","wh":"7hx:7gc<","o":"3_","fPt":"(","I":"","ani":"( 0 0.1s 1","brdRV":"( bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nlb4vzdfhTtTVK7d2EwEzsY {"N":"'+I18N.w.add_friend+'","fill":"h ( wTRu7","xy":"7fXu7g-w","Z":"+","T":"y","r":"((","wh":"7gJ}7gJ}","o":"3_","iLVA":".","fPt":"(","I":"","ani":"( 0 0.1s 1","brdR":"h bYpZx ( (!(","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","icVB":"0 0 32 32","icP":"<path d=\\"M10.102 13.369v1.791c-3.696 0.493-6.546 3.658-6.546 7.489l0-0.032c0.001 0.018 0.002 0.037 0.002 0.056 0 0.491-0.398 0.889-0.889 0.889s-0.889-0.398-0.889-0.889c0-0.008 0-0.016 0-0.024h-0.002c0-4.814 3.644-8.776 8.324-9.279zM10.036 6.262l0.015 0c0.484 0.008 0.874 0.403 0.874 0.889 0 0.491-0.398 0.889-0.889 0.889-1.473 0-2.667 1.194-2.667 2.667s1.194 2.667 2.667 2.667v1.778c-2.455 0-4.444-1.99-4.444-4.444s1.99-4.444 4.444-4.444zM17.703 15.076c5.891 0 10.667 4.776 10.667 10.667h-1.778c0-4.909-3.98-8.889-8.889-8.889l-0.147 0.001c-4.841 0.078-8.742 4.028-8.742 8.888h-1.778c0-5.891 4.776-10.667 10.667-10.667zM10.036 13.373c0.491 0 0.889 0.398 0.889 0.889s-0.398 0.889-0.889 0.889-0.889-0.398-0.889-0.889c0-0.491 0.398-0.889 0.889-0.889zM7.926 24.854c0.491 0 0.889 0.398 0.889 0.889s-0.398 0.889-0.889 0.889c-0.491 0-0.889-0.398-0.889-0.889s0.398-0.889 0.889-0.889zM27.481 24.854c0.491 0 0.889 0.398 0.889 0.889s-0.398 0.889-0.889 0.889c-0.491 0-0.889-0.398-0.889-0.889s0.398-0.889 0.889-0.889zM17.751 14.222c2.455 0 4.444-1.99 4.444-4.444s-1.99-4.444-4.444-4.444-4.444 1.99-4.444 4.444c0 2.455 1.99 4.444 4.444 4.444zM17.751 16c-3.436 0-6.222-2.786-6.222-6.222s2.786-6.222 6.222-6.222 6.222 2.786 6.222 6.222c0 3.436-2.786 6.222-6.222 6.222z\\"></path>","icNCS":["ze-friends-o","rgba(16,16,16,1)","@"],"icSA":[0,0]}\nwwTOkvo5TtTVK7deIPHH38 + {"N":"'+I18N.w.message+'","T":"P","Z":">","xy":"7h(47h(4","r":"((","wh":"7g/.7g/.","o":"3_","iLVA":"*","fPt":"(","I":"","iASC":"+"}\nlb4vl9gfTtTVK7djUT69GJ {"Z":",","b/#000000":["( ( ","'+I18N.w.message+'",[],[]],"T":"x","N":"'+I18N.w.wRichText+' 2","xy":"7g@T7g.R","r":"((","wh":"7gzR7gIo","o":"3_","iLVA":"*","fPt":"(","I":"","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","ani":"( 0 0.1s 1","rtS":["SourceHanSansSC","regular","rgba(255,255,255,1)"],"rtN":"( ( ( 8 ( ? ( 7g/. 7g4u","rtB":"("}\nlb4vko3aTtTVK7dsz8rQ9q {"fill":"( ( ?e~4[","iLVA":"*","N":"'+I18N.w.wRichText+'","Z":")","T":"M","xy":"7g/.7g/.","r":"((","wh":"7hx:7gc<","o":"3_","fPt":"(","I":"","ani":"( 0 0.1s 1","brdRV":"( bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nlb4vxrwaTtTVK7d2XimUnq {"N":"'+I18N.w.message+'","fill":"h ( wTRu7","xy":"7fXu7g-w","Z":"+","T":"y","r":"((","wh":"7gJ}7gJ}","o":"3_","iLVA":".","fPt":"(","I":"","ani":"( 0 0.1s 1","brdR":"h bYpZx ( (!(","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","icVB":"0 0 32 32","icP":"<path d=\\"M4.874 25.576l3.491-1.127 0.685 0.397c2.036 1.18 4.434 1.821 6.95 1.821 6.922 0 12.444-4.832 12.444-10.667s-5.523-10.667-12.444-10.667-12.444 4.832-12.444 10.667c0 2.059 0.683 4.033 1.958 5.739l0.603 0.807-1.242 3.031zM16 28.444c-2.898 0-5.593-0.758-7.841-2.061l-4.559 1.472c-0.082 0.027-0.176 0.043-0.273 0.043-0.122 0-0.237-0.024-0.343-0.069l0.006 0.002c-0.454-0.186-0.672-0.705-0.486-1.16l1.586-3.87c-1.462-1.955-2.311-4.292-2.311-6.803 0-6.873 6.367-12.444 14.222-12.444s14.222 5.572 14.222 12.444c0 6.873-6.367 12.444-14.222 12.444z\\"></path><path d=\\"M17.778 16c0 0.982-0.796 1.778-1.778 1.778s-1.778-0.796-1.778-1.778c0-0.982 0.796-1.778 1.778-1.778s1.778 0.796 1.778 1.778z\\"></path><path d=\\"M10.667 16c0 0.982-0.796 1.778-1.778 1.778s-1.778-0.796-1.778-1.778c0-0.982 0.796-1.778 1.778-1.778s1.778 0.796 1.778 1.778z\\"></path><path d=\\"M24.889 16c0 0.982-0.796 1.778-1.778 1.778s-1.778-0.796-1.778-1.778c0-0.982 0.796-1.778 1.778-1.778s1.778 0.796 1.778 1.778z\\"></path>","icNCS":["ze-chat-o","rgba(16,16,16,1)","@"],"icSA":[0,0]}\nwwTOkvpiTtTVK7dic22ooG * {"N":"'+I18N.w.bubble+'","T":"P","Z":"3","xy":"7h(47hYX","r":"((","wh":"7g/.7g/.","o":"3_","iLVA":"*","fPt":"(","I":"","iASC":"+"}\nlb4vimfnTtTVK7dlJwzTev {"fill":"h ( ?e~4[","T":"M","N":"'+I18N.w.wRichText+'","Z":"2","xy":"7g/.7g1}","r":"((","wh":"7hx:7i1R","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 0.1s 1","brdRV":"( bYpZx ) (!2!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nlb4vjlm6TtTVK7dGOai1fU {"N":"'+I18N.w.triangleb+'","T":"h","Z":"3","xy":"7gd}7f.N","r":"((","wh":"7g9V7g6,","o":"3_","iLVA":"*","fPt":"(","I":"","fill":"h ( ?e~4[","ani":"( 0 0.1s 1"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.166Z","hotAABB":[833,1700,969,1888],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVKdZUNWYGJl:{preview:"navigation_menu",meta:{name:I18N.w.navigation_menu,type:"wNavigationMenu",width:256,height:560},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVKdZUNWYGJl {"!FFV":1,"T":"n","N":"'+I18N.w.navigation_menu+' 1","Z":"N","xy":"7sMs8._}","r":"((","wh":"7jVi7na<","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","brdRV":"h bYpZx ) (!(!7","odNM":"U ( wTRu7 6 <*l0[ P u,aHh 6 <*l0[ P oq=X3 6 .v~[9 )","odNMb":"h bYpZx ) (","odNMs":") ( ((()8 ((((( ;_2g, ;rw*} (((((","od":[[["'+I18N.Widget.nav1+'","","-",["<path d=\\"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z\\"></path>","64 64 896 896"]],[[["'+I18N.Widget.navItem1+'","","/",""],[]],[["'+I18N.Widget.navItem2+'","","-",""],[]],[["'+I18N.Widget.navItem3+'","","-",""],[]]]],[["'+I18N.Widget.nav2+'","","-",["<path d=\\"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0 0 68.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z\\"></path>","64 64 896 896"]],[]],[["'+I18N.Widget.nav3+'","","-",["<path d=\\"M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z\\"></path>","64 64 896 896"]],[]]],"rm":"*"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.167Z","hotAABB":[786,1980,1042,2540],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVL8ogc4IFRO:{preview:"navigation_menu_v",meta:{name:I18N.w.navigation_menu_v,type:"wNavigationMenu",width:256,height:560,metaType:n.x.WNavigationMenuV},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVL8ogc4IFRO {"!FFV":1,"T":"n","N":"'+I18N.w.navigation_menu_v+' 1","Z":"O","xy":"7sn>87BD","r":"((","wh":"7jVi7na<","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","brdRV":"h bYpZx ) (!(!7","odNM":"U ) wTRu7 6 <*l0[ P u,aHh 6 <*l0[ P oq=X3 6 .v~[9 )","odNMb":"h bYpZx ) (","odNMs":") ( ((()8 ((((( ;_2g, ;rw*} (((((","od":[[["'+I18N.Widget.nav1+'","","-",["<path d=\\"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z\\"></path>","64 64 896 896"]],[[["'+I18N.Widget.navItem1+'","","/",""],[]],[["'+I18N.Widget.navItem2+'","","-",""],[]],[["'+I18N.Widget.navItem3+'","","-",""],[]]]],[["'+I18N.Widget.nav2+'","","-",["<path d=\\"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0 0 68.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z\\"></path>","64 64 896 896"]],[]],[["'+I18N.Widget.nav3+'","","-",["<path d=\\"M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z\\"></path>","64 64 896 896"]],[]]],"rm":"*"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.168Z","hotAABB":[813,2621,1069,3181],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVLvB2MuPXDp:{preview:"navigation_menu_h",meta:{name:I18N.w.navigation_menu_h,type:"wNavigationMenu",width:446,height:48,metaType:n.x.WNavigationMenuH},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVLvB2MuPXDp {"!FFV":1,"N":"'+I18N.w.navigation_menu_h+' 1","Z":"`","T":"n","xy":"7s=Z7li@","r":"((","wh":"7m1c7ggu","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","brdRV":"h bYpZx ) (!(!7","odNM":"U * wTRu7 6 <*l0[ P u,aHh 6 <*l0[ P oq=X3 6 .v~[9 )","odNMb":"h bYpZx ) (","odNMs":") ( ((()8 ((((( ;_2g, ;rw*} (((((","od":[[["'+I18N.Widget.nav1+'","","-",["<path d=\\"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z\\"></path>","64 64 896 896"]],[[["'+I18N.Widget.navItem1+'","","/",""],[]],[["'+I18N.Widget.navItem2+'","","-",""],[]],[["'+I18N.Widget.navItem3+'","","-",""],[]]]],[["'+I18N.Widget.nav2+'","","-",["<path d=\\"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0 0 68.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z\\"></path>","64 64 896 896"]],[]],[["'+I18N.Widget.nav3+'","","-",["<path d=\\"M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z\\"></path>","64 64 896 896"]],[]]],"rm":"*"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-02-05T03:39:34.619Z","hotAABB":[677,395,1123,443],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVMLlFqQpSXt:{preview:"mobile_tab_bars",meta:{name:I18N.w.wMobileTabBars,type:"wMobileTabBars",width:375,height:50},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVMLlFqQpSXt {"!FFV":1,"T":"r","N":"'+I18N.w.wMobileTabBars+' 1","Z":"Q","xy":"7sNN8?Y{","r":"((","wh":"7l527gj:","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","fill":"h ( wTRu7","brdRV":"h bYpZx ) (!(!7","odMTB":"7 6 6 GJ~|r .v~[9 .v~[9 GJ~|r","od":[[["'+I18N.Widget.tab1+'","","*",["<path d=\\"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z\\"></path>","64 64 896 896"]],[]],[["'+I18N.Widget.tab2+'","","(",["<path d=\\"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0 0 68.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z\\"></path>","64 64 896 896"]],[]],[["'+I18N.Widget.tab3+'","","(",["<path d=\\"M854.6 289.1a362.49 362.49 0 0 0-79.9-115.7 370.83 370.83 0 0 0-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 0 0 169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0 0 22.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1zm0-617.2c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 0 1 512 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8C612.4 381 624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z\\"></path>","64 64 896 896"]],[]],[["'+I18N.Widget.tab4+'","","(",["<path d=\\"M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z\\"></path>","64 64 896 896"]],[]]]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.171Z","hotAABB":[727,3488,1102,3538],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVMqx9iR0R5D:{preview:"segmented_control",meta:{name:I18N.w.wSegmentedControl,type:"wSegmentedControl",width:280,height:32},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVMqx9iR0R5D {"!FFV":1,"T":"o","N":"'+I18N.w.wSegmentedControl+' 1","Z":"R","xy":"7t/c8BE6","r":"((","wh":"7jsa7gT@","o":"3_","iLVA":"*","fPt":"(","I":"","fill":"h ( wTRu7","ani":"( 0 1s 1","brdRV":"h .v~[9 ) (!,!7","odSGC":"+ wTRu7 .v~[9 .v~[9 6 wTRu7 6","od":[[["'+I18N.Widget.option1+'","","+",""],[]],[["'+I18N.Widget.option2+'","",")",""],[]],[["'+I18N.Widget.option3+'","",")",""],[]]]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.171Z","hotAABB":[822,3701,1102,3733],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVNBcbIennx:{preview:"collapse",meta:{name:I18N.w.wCollapse,type:"wCollapse",width:320,height:212},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVNBcbIennx {"!FFV":1,"xy":"7ru88E<(","T":"m","N":"'+I18N.w.wCollapse+' 1","Z":"S","r":"((","wh":"7kK67izZ","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","brdRV":"h bYpZx ) (!*!7","ttv0P":"wTRu7 ( ( ) ) 6 < (","ttv0S":"","odCL":". ( wTRu7 <*l0[ 6 wTRu7 <*l0[ ((((6","od":[[["'+I18N.Widget.title1+'","","-",""],[[["'+I18N.Widget.content1+'","","(",""],[]]]],[["'+I18N.Widget.title2+'","",")",""],[[["'+I18N.Widget.content1+'","","(",""],[]]]],[["'+I18N.Widget.title3+'","",")",""],[[["'+I18N.Widget.content1+'","","(",""],[]]]]]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.173Z","hotAABB":[713,3825,1033,4037],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVO2WuWGtO7a:{preview:"tabs",meta:{name:I18N.w.wTabs,type:"wTabs",width:240,height:32},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVO2WuWGtO7a {"!FFV":1,"T":"p","N":"'+I18N.w.wTabs+' 1","Z":"T","xy":"7s>i8GrZ","r":"((","wh":"7jD47gT@","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":"wTRu7 ( ( ) ) 6 < (","ttv0S":"","ani":"( 0 1s 1","brdRV":"h bYpZx ) (!(!7","odT":"6 <*l0[ 6 .v~[9 ( ( (","odTb":"h .v~[9 * (","od":[[["'+I18N.Widget.tab1+'","","*",""],[]],[["'+I18N.Widget.tab2+'","","(",""],[]],[["'+I18N.Widget.tab3+'","","(",""],[]]]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.174Z","hotAABB":[781,4109,1021,4141],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVOdXCG999rR:{preview:"pagination_mobile",meta:{name:I18N.w.wPaginationMobile,type:"wPaginationMobile",width:232,height:32},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVOdXCG999rR {"!FFV":1,"T":"k","N":"'+I18N.w.wPaginationMobile+' 1","Z":"U","xy":"7ru88IKB","r":"((","wh":"7j:q7gT@","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":"wTRu7 ( ( ) ) 6 < (","ttv0S":"","fill":"h ( wTRu7","ani":"( 0 1s 1","brdRV":"h bYpZx ) (!*!7","pagM":"- 6 .v~[9 <*l0[ ((((6 *"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.174Z","hotAABB":[757,4224,989,4256],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVP4fRDRkZug:{preview:"pagination_web",meta:{name:I18N.w.wPaginationWeb,type:"wPaginationWeb",width:232,height:32},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVP4fRDRkZug {"!FFV":1,"T":"j","N":"'+I18N.w.wPaginationWeb+' 1","Z":"V","xy":"7rTm8K/R","r":"((","wh":"7j:q7gT@","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":"wTRu7 ( ( ) ) 6 < (","ttv0S":"","fill":"h ( wTRu7","ani":"( 0 1s 1","brdRV":"h bYpZx ) (!*!7","pagW":"- wTRu7 h 6 .v~[9 <*l0[ ((((6 *","pagWb":"h .v~[9 ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.174Z","hotAABB":[730,4348,962,4380],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWeOPmqcisnP:{preview:"bar_chart",meta:{name:I18N.w.bar_chart,type:"wChart",width:360,height:300,metaType:n.x.WBarChart},data:'\'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWeOPmUJuPgqQ4v2yvqT {"chtP":"( ( ) , o ( ( e ), pMNcl .v~[9 ( + 5Tm 1]wvb 4 ,xd+r Z","N":"'+I18N.w.bar_chart+'","Z":"X","so":"","ttv0P":",xd+r ( ( ) ) 4 < ( ( + (!(!(!(","ttv0F":"PingFangSC","chtAX":"h 4 ,xd+r (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],"","","",""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],"","","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"( 4 ,xd+r","chtLT":"","chtLN":"","T":"t","xy":"7i[F7Vca","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0S":"","ani":"( 0 1s 1","chtSF":"","chtPF":"","chtB":"h bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-07-29T09:59:56.426Z","hotAABB":[6,-1289,366,-989],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWel7wW2HUxE:{preview:"horizontal_bar_chart",meta:{name:I18N.w.horizontal_bar_chart2,type:"wChart",width:360,height:300,metaType:n.x.WHorizontalBarChart},data:'\'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWel7wUJuQJyN2PMk8ux {"chtP":") ( ) , o ( ( e ), pMNcl .v~[9 ( + 5Tm 1]wvb 4 ,xd+r Z","N":"'+I18N.w.horizontal_bar_chart2+'","Z":"[","so":"","ttv0P":",xd+r ( ( ) ) 4 < ( ( + (!(!(!(","ttv0F":"PingFangSC","chtAX":"h 4 ,xd+r (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],"","","",""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],"","","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"( 4 ,xd+r","chtLT":"","chtLN":"","T":"t","xy":"7n(L7Ym0","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0S":"","ani":"( 0 1s 1","chtSF":"","chtPF":"","chtB":"h bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-07-29T10:02:27.796Z","hotAABB":[332,-1059,692,-759],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWfCFq1eoQ9w:{preview:"line_chart",meta:{name:I18N.w.line_chart,type:"wChart",width:360,height:300,metaType:n.x.WLineChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWfCFq1eoQ9w {"T":"t","N":"'+I18N.w.line_chart+'","Z":"Y","xy":"7h+_8[Ha","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"* ( ) , o ( ( e ), pMNcl .v~[9 ( + ","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],""]],"6 wTRu7"]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:07:40.968Z","hotAABB":[-109,5419,251,5719],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWfWul8AGMEc:{preview:"line_area_chart",meta:{name:I18N.w.line_area_chart,type:"wChart",width:360,height:300,metaType:n.x.WLineAreaChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWfWul8AGMEc {"T":"t","N":"'+I18N.w.line_area_chart+'","Z":"Z","xy":"7gV]8acP","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"+ ( ) , o ( ( e ), pMNcl .v~[9 ( + ","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],""]],"6 wTRu7"]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:07:40.968Z","hotAABB":[-146,5811,214,6111],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWfrVJJuk07W:{preview:"mixed_bar_line_chart",meta:{name:I18N.w.mixed_bar_line_chart,type:"wChart",width:360,height:300,metaType:n.x.WMixedBarLineChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWfrVJUJuQUGbyBKlYWV {"chtP":"0 ( ) , o ( ( e ), pMNcl .v~[9 ( + 5Tm 1]wvb 4 ,xd+r Z","N":"\u7EC4\u5408\u56FE 2","Z":"]","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],"","","","("],["'+I18N.Widget.data2+'",["150","100","200","140","100"],"","","",")"]],"6 wTRu7"],"so":"","ttv0P":",xd+r ( ( ) ) 4 < ( ( + (!(!(!(","ttv0F":"PingFangSC","chtAX":"h 4 ,xd+r (","chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"( 4 ,xd+r","chtLT":"","chtLN":"","T":"t","xy":"7rt*7l.4","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0S":"","ani":"( 0 1s 1","chtSF":"","chtPF":"","chtB":"h bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-07-29T10:03:10.506Z","hotAABB":[692,219,1052,519],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWgHsD6EmAYA:{preview:"pie_chart",meta:{name:I18N.w.pie_chart,type:"wChart",width:360,height:300,metaType:n.x.WPieChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWgHsD6EmAYA {"T":"t","N":"'+I18N.w.pie_chart+'","Z":"]","xy":"7e]D8l(q","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":", ( ) , o ( ( e ), pMNcl .v~[9 ( + ","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],""]],"6 wTRu7"]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:07:40.969Z","hotAABB":[-289,6575,71,6875],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWgk9hDScIoD:{preview:"ring_chart",meta:{name:I18N.w.ring_chart,type:"wChart",width:360,height:300,metaType:n.x.WRingChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWgk9hDScIoD {"T":"t","N":"'+I18N.w.ring_chart+'","Z":"^","xy":"7fy@8r2L","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"- ( ) , o ( ( e ), pMNcl .v~[9 ( + ","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],""]],"6 wTRu7"]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:07:40.969Z","hotAABB":[-191,7027,169,7327],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWhAVnCqoxVg:{preview:"progress_chart",meta:{name:I18N.w.progress_chart,type:"wChart",width:360,height:300,metaType:n.x.WProgressChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWhAVnCqoxVg {"T":"t","N":"'+I18N.w.progress_chart+'","Z":"_","xy":"7gV]8wL<","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":". ( ) , o ( ( e ), pMNcl .v~[9 ( + ","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],""]],"6 wTRu7"]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:07:40.969Z","hotAABB":[-146,7419,214,7719],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWhURSssw9ki:{preview:"radar_chart",meta:{name:I18N.w.radar_chart,type:"wChart",width:360,height:300,metaType:n.x.WRadarChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWhURSssw9ki {"T":"t","N":"'+I18N.w.radar_chart+'","Z":"`","xy":"7fy@8}Uo","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"/ ( ) , o ( ( e ), pMNcl .v~[9 ( + ","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],""]],"6 wTRu7"]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:07:40.969Z","hotAABB":[-191,7871,169,8171],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U112FanAvTVF9D:{preview:"waterfall_chart",meta:{name:I18N.w.waterfall_chart,type:"wChart",width:360,height:300,metaType:n.x.WWaterfallChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU112FanAUJuXtqJgWJ17H7 {"chtP":"1 ( ) , o ( ( e ), pMNcl .v~[9 ( / 5Tm 1]wvb 4 ,xd+r Z","N":"\u7011\u5E03\u56FE 4","Z":"i","so":"","ttv0P":",xd+r ( ( ) ) 4 < ( ( + (!(!(!(","ttv0F":"PingFangSC","chtAX":"h 4 ,xd+r (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.added_value+'",["600","300","-500","200","-100"],"@e5qC","","",""],["'+I18N.Widget.decreased_add+'",[],"H2W=M","","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"( 4 ,xd+r","chtLT":"","chtLN":"","xy":"7qx_7F^>","T":"t","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0S":"","ani":"( 0 1s 1","chtSF":"","chtPF":"","chtB":"h bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-07-29T10:32:30.768Z","hotAABB":[622,-2477,982,-2177],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U4sweo7BYbHNop:{preview:"scatter_chart",meta:{name:"\u6563\u70B9\u56FE",type:"wChart",width:360,height:300,metaType:n.x.WScatterChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU4sweo7BYbHNop {"T":"t","N":"\u6563\u70B9\u56FE","Z":"1","xy":"7iTH7i_q","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"2 ( ) , o ( ( e ), pMNcl .v~[9 ( / 5Tm 1]wvb 4 ,xd+r 7 ( H 4 e Z","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtAX":"h 4 ,xd+r (","chtD":[["X","Y"],[],[["\u7C7B\u522B1",[1,3],"","",""],["\u7C7B\u522B1",[3,4],"","",""],["\u7C7B\u522B1",[5,7],"","",""],["\u7C7B\u522B2",[2,4],"","",""],["\u7C7B\u522B2",[4,5],"","",""],["\u7C7B\u522B2",[6,3],"","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"h 4 ,xd+r","chtLT":"h 4 ,xd+r","chtLN":"h 4 ,xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-18T01:23:06.149Z","hotAABB":[0,39,360,339],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U113fyFbNJRWiK:{preview:"nightingale_chart",meta:{name:I18N.w.nightingale_chart,type:"wChart",width:360,height:300,metaType:n.x.WNightingaleChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU113fyFbNJRWiK {"chtP":"3 ( ) , < ( ( e ), pMNcl .v~[9 0 / ","Z":"l","N":"'+I18N.w.nightingale_chart+' 2","chtD":[["'+I18N.Widget.jan+'"],[],[["'+I18N.Widget.data1+'",["40"],""],["'+I18N.Widget.data2+'",["32"],""],["'+I18N.Widget.data3+'",["28"],""],["'+I18N.Widget.data4+'",["25"],""],["'+I18N.Widget.data5+'",["18"],""]],"6 wTRu7"],"xy":"7f767ex.","T":"t","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtSF":"","chtPF":"","chtB":"h bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-01-17T01:39:32.385Z","hotAABB":[-247,-236,113,64],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U113uufKHEoqFT:{preview:"funnel_chart",meta:{name:I18N.w.funnel_chart,type:"wChart",width:360,height:300,metaType:n.x.WFunnelChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU113uufKHEoqFT {"chtP":"4 ( ) , o ( ( e ), pMNcl .v~[9 ( / ","Z":"k","chtD":[["'+I18N.Widget.jan+'"],[],[["'+I18N.Widget.data1+'",["100"],""],["'+I18N.Widget.data2+'",["80"],""],["'+I18N.Widget.data3+'",["60"],""],["'+I18N.Widget.data4+'",["40"],""],["'+I18N.Widget.data5+'",["20"],""]],"6 wTRu7"],"xy":"7dBe7esL","T":"t","N":"'+I18N.w.funnel_chart+'","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtSF":"","chtPF":"","chtB":"h bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-01-17T01:41:07.311Z","hotAABB":[-385,-240,-25,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U1148gCZR4ygZq:{preview:"gauge_chart",meta:{name:I18N.w.gauge_chart,type:"wChart",width:360,height:300,metaType:n.x.WGaugeChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU1148gCZR4ygZq {"chtP":"5 ( ) , o ( ( e ), pMNcl .v~[9 ( / ( )6 ","chtSF":"","Z":"m","xy":"7opJ7kVm","T":"t","N":"'+I18N.w.gauge_chart+'","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtPF":"","chtB":"h bYpZx ) (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],""]],"6 wTRu7"]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-01-16T09:21:09.437Z","hotAABB":[467,180,827,480],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U114OrAt1MlRVf:{preview:"liquid_fill_gauge_chart",meta:{name:I18N.w.liquid_fill_gauge_chart,type:"wChart",width:360,height:300,metaType:n.x.WLiquidFillGaugeChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU114OrAt1MlRVf {"chtP":"6 ( ) , o ( ( e ), pMNcl .v~[9 ( . ","N":"'+I18N.w.liquid_fill_gauge_chart+' 1","Z":"r","ttv0P":",xd+r ( ( ) ) D < (","chtD":[["'+I18N.Widget.jan+'"],[],[["'+I18N.Widget.data1+'",["0.6"],""],["'+I18N.Widget.data2+'",["0.4"],""],["'+I18N.Widget.data3+'",["0.2"],""]],"6 wTRu7"],"xy":"7jOk7gme","T":"t","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0S":"","ani":"( 0 1s 1","chtSF":"","chtPF":"","chtB":"h bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-01-25T02:27:03.644Z","hotAABB":[70,-97,430,203],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U2NQ5ozyHumOF:{preview:"map_chart",meta:{name:I18N.w.map_chart,type:"wChart",width:800,height:616,metaType:n.x.WMapChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU2NQ5ozyHumOF {"xy":"7lR87k=:","wh":"7qvB7oKF","Z":"5","chtT":"wTRu7 wTRu7 ) GJ~|r 6","Z":"6","chtH":"=F@k| ,xd+r ) ,xd+r 2","chtP":"7 ( ) , o ( ( e ), pMNcl .v~[9 ( + 5Tm 1]wvb","N":"'+I18N.w.map_chart+'","ttv0P":",xd+r ( ( ) ) 2 < (","T":"t","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0S":"","ani":"( 0 1s 1","chtSF":"","chtPF":"","chtB":"h ;ei.S ) (","Z":"7","chtD":[["'+I18N.Widget.data1+'","'+I18N.Widget.data2+'"],[],[["d1",["130","150"],"u|sdf"],["d2",["100","170"],"wQB/n"],["d3",["130","110"],"kpR_S"],["d4",["150","160"],"ks5e["],["d5",["180","100"],"wQv[9"],["d6",["140","190"],"wO;9~"],["d7",["100","180"],"m{.Dx"],["d8",["150","110"],"agIL["],["d9",["110","100"],"m~E/A"],["d10",["110","170"],"iJ*9z"],["d11",["190","170"],"u|sdf"],["d12",["150","170"],"wQB/n"],["d13",["150","180"],"kpR_S"],["d14",["140","120"],"ks5e["],["d15",["160","170"],"wQv[9"],["d16",["180","160"],"wO;9~"],["d17",["180","140"],"m{.Dx"],["d18",["170","140"],"agIL["],["d19",["190","100"],"m~E/A"],["d20",["160","190"],"iJ*9z"],["d21",["150","120"],"u|sdf"],["d22",["160","100"],"wQB/n"],["d23",["150","130"],"kpR_S"],["d24",["140","190"],"ks5e["],["d25",["160","140"],"wQv[9"],["d26",["170","150"],"wO;9~"],["d27",["180","150"],"m{.Dx"],["d28",["190","150"],"agIL["],["d29",["110","140"],"m~E/A"],["d30",["170","160"],"iJ*9z"],["d31",["160","130"],"u|sdf"],["d32",["180","120"],"wQB/n"],["d33",["150","110"],"kpR_S"],["d34",["190","170"],"ks5e["],["d35",["100","100"],"wQv[9"],["d36",["140","140"],"wO;9~"],["d37",["150","130"],"m{.Dx"],["d38",["100","150"],"agIL["]],"6 wTRu7"]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-01-30T05:41:56.231Z","hotAABB":[0,0,800,616],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U507Ub07zHbTJ:{preview:"bubble_chart",meta:{name:"\u6C14\u6CE1\u56FE",type:"wChart",width:360,height:300,metaType:n.x.WBubbleChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU507Ub07zHbTJ {"T":"t","N":"\u6C14\u6CE1\u56FE","Z":"1","xy":"7ig}7j.,","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"8 ( ) , o ( ( e ), pMNcl .v~[9 ( / 5Tm 1]wvb 4 ,xd+r < 2 L 4 e Z","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtAX":"h 4 ,xd+r (","chtD":[["X","Y","\u6570\u503C"],[],[["\u7C7B\u522B1",[1,3,4],"","",""],["\u7C7B\u522B1",[3,4,2],"","",""],["\u7C7B\u522B1",[5,7,5],"","",""],["\u7C7B\u522B2",[2,4,3],"","",""],["\u7C7B\u522B2",[4,5,6],"","",""],["\u7C7B\u522B2",[6,3,4],"","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"h 4 ,xd+r","chtLT":"h 4 ,xd+r","chtLN":"h 4 ,xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-18T01:24:41.390Z","hotAABB":[16,71,376,371],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U509Kv0xZkvFgv:{preview:"radial_polar_chart",meta:{name:"\u7389\u73A6\u56FE",type:"wChart",width:360,height:300,metaType:n.x.WRadialPolarChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU509Kv0xZkvFgv {"T":"t","N":"\u7389\u73A6\u56FE","Z":"1","xy":"7i{i7iq@","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"9 ( ) , o ( ( e ), pMNcl .v~[9 ( / 5Tm 1]wvb 4 ,xd+r < ( H 4 e Z","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtAX":"h 4 ,xd+r (","chtD":[["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708"],[],[["\u6570\u636E1",[100,140,100,222,160],"","",""],["\u6570\u636E2",[140,100,140,190,140],"","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"( 4 ,xd+r","chtLT":"h 4 ,xd+r","chtLN":"h 4 ,xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-18T01:25:58.910Z","hotAABB":[33,54,393,354],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U50AIEeIuu8IWE:{preview:"sunburst_chart",meta:{name:"\u65ED\u65E5\u56FE",type:"wChart",width:360,height:300,metaType:n.x.WSunburstChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU50AIEeIuu8IWE {"T":"t","N":"\u65ED\u65E5\u56FE","Z":"-","xy":"7i7B7ijB","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":": ( ) ( o ( ( e ), pMNcl .v~[9 ( / 5Tm 1]wvb 4 ,xd+r < ( H 4 e Z","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtAX":"h 4 ,xd+r (","chtD":[["\u5B63\u5EA6","\u6708\u4EFD","\u5468","\u6570\u503C"],[],[["1",["1","1\u6708","\u7B2C1\u5468",3],"","",""],["1",["1","1\u6708","\u7B2C2\u5468",2],"","",""],["1",["1","2\u6708","",1],"","",""],["1",["1","2\u6708","",4],"","",""],["1",["1","3\u6708","\u7B2C\u4E00\u5468",6],"","",""],["2",["2","4\u6708","\u7B2C1\u5468",4],"","",""],["2",["2","4\u6708","\u7B2C2\u5468",2],"","",""],["2",["2","5\u6708","",4],"","",""],["2",["2","6\u6708","\u7B2C1\u5468",2],"","",""],["2",["2","6\u6708","",2],"","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"h 4 ,xd+r","chtLT":"h 4 ,xd+r","chtLN":"( 4 ,xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-18T01:27:19.654Z","hotAABB":[-25,48,335,348],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U50AqngLUEseDG:{preview:"boxplot_chart",meta:{name:"\u7BB1\u578B\u56FE",type:"wChart",width:360,height:300,metaType:n.x.WBoxplotChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU50AqngLUEseDG {"T":"t","N":"\u7BB1\u578B\u56FE","Z":"/","xy":"7e,a7itk","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"= ( ) , o ( ( e ), pMNcl .v~[9 ( / 5Tm 1]wvb 4 ,xd+r < ( H 4 e <","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtAX":"h 4 ,xd+r (","chtD":[["\u4E0B\u8FB9\u7F18","\u4E0A\u56DB\u5206\u4F4D\u6570","\u4E2D\u4F4D\u6570","\u4E0B\u56DB\u5206\u4F4D\u6570","\u4E0A\u8FB9\u7F18"],[],[["\u6570\u636E1",[100,140,180,80,130],"g;hSr","",""],["\u6570\u636E2",[240,160,180,140,60],"g;hSr","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"h 4 ,xd+r","chtLT":"h 4 ,xd+r","chtLN":"h 4 ,xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-18T01:29:55.364Z","hotAABB":[-330,57,30,357],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U50AwlCkzU0gYu:{preview:"sankey_chart",meta:{name:"\u6851\u57FA\u56FE",type:"wChart",width:360,height:300,metaType:n.x.WSankeyChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU50AwlCkzU0gYu {"T":"t","N":"\u6851\u57FA\u56FE","Z":"-","xy":"7fNL7dsH","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"< ( ) , o ( ( e ), pMNcl .v~[9 ( / 5Tm 1]wvb 4 ,xd+r < ( H 4 e Z","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtAX":"h 4 ,xd+r (","chtD":[["\u6765\u6E90","\u76EE\u6807","\u6570\u503C"],[],[["",["a","a1",2],"","",""],["",["a","a2",2],"","",""],["",["b","b1",3],"","",""],["",["a","b1",3],"","",""],["",["b1","a1",2],"","",""],["",["b1","c",2],"","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"h 4 ,xd+r","chtLT":"h 4 ,xd+r","chtLN":"( 4 ,xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-18T01:32:24.682Z","hotAABB":[-227,-314,133,-14],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U50B5Zm1LHtlga:{preview:"word_cloud_chart",meta:{name:"\u8BCD\u4E91",type:"wChart",width:360,height:300,metaType:n.x.WWordCloudChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU50B5Zm1LHtlga {"T":"t","N":"\u8BCD\u4E91","Z":"-","xy":"7f6(7f4q","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"; ( ) , o ( ( e ), pMNcl .v~[9 ( + 5Tm 1]wvb 4 ,xd+r < ( H 4 e Z","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtAX":"h 4 ,xd+r (","chtD":[["\u8BCD","\u6570\u503C"],[],[["Welcome",[30],"","","("],["Word",[20],"","","("],["Cloud",[15],"","","("],["Happy",[10],"","","),"],["Lucky",[10],"","","),"],["Smile",[5],"","","),"]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"h 4 ,xd+r","chtLT":"h 4 ,xd+r","chtLN":"h 4 ,xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-18T01:34:56.447Z","hotAABB":[-248,-219,112,81],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWqGpGF2j58X:{preview:"image",meta:{name:I18N.w.wImage,type:"wImage",width:200,height:100},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWqGpGF2j58X {"T":"S","N":"'+I18N.w.wImage+' 2","Z":"a","xy":"7v<X8pk4","r":"((","wh":"7il_7hMF","o":"3_","iLVA":".","fPt":"(","I":"","ani":"( 0 1s 1","fill":"( ( oT(h~","brdR":"( bYpZx ) (!(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","imgP":"( (( (((((((((((((((((((((((((((( *","imgF":"","imgR":""}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:09:10.700Z","hotAABB":[1021,7027,1221,7127],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWqmEKaaiarz:{preview:"carousel",meta:{name:I18N.w.wCarousel,type:"wCarousel",width:375,height:200},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWqmEKaaiarz {"T":"l","N":"'+I18N.w.wCarousel+' 1","Z":"b","xy":"7v^e8sPe","r":"((","wh":"7l527il_","o":"3_","iLVA":"*","fPt":"(","I":"","crsS":[["","",")"],["","",")"]],"crsP":"-!?>!(!bYpZx!7eS(K!(","brdRo":"("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:09:10.700Z","hotAABB":[962,7177,1337,7377],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWrJ6YLVnfQT:{preview:"webpage",meta:{name:I18N.w.wWebpage,type:"wWebpage",width:320,height:210},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWrJ6YLVnfQT {"T":"u","N":"'+I18N.w.wWebpage+' 1","Z":"c","xy":"7v=g8wGZ","r":"((","wh":"7kK67ix>","o":"3_","iLVA":"*","fPt":"(","I":"","wbp":""}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:09:10.700Z","hotAABB":[962,7460,1282,7670],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWrmruU1KJsD:{preview:"video",meta:{name:I18N.w.wVideo,type:"wVideo",width:320,height:180},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWrmruU1KJsD {"T":"U","N":"'+I18N.w.wVideo+' 1","Z":"d","xy":"7v=g8zbB","r":"((","wh":"7kK67iTH","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","brdRo":"(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","vidP":"(","vidS":"https://cdn.modao.cc/Default_video.mp4"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:09:10.700Z","hotAABB":[962,7719,1282,7899],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWsKDImZMznw:{preview:"audio",meta:{name:I18N.w.wAudio,type:"wAudio",width:330,height:60},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWsKDImZMznw {"T":"T","N":"'+I18N.w.wAudio+' 1","Z":"e","xy":"7vCV8}Uo","r":"((","wh":"7kVm7guq","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","brdRo":")6","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","audP":"(","audS":"https://cdn.modao.cc/Default_audio.mp3"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:09:10.700Z","hotAABB":[962,7991,1292,8051],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWsl4NuKb29L:{preview:"qrcode",meta:{name:I18N.w.wQRCode,type:"wQRCode",width:120,height:120},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWsl4NuKb29L {"T":"V","N":"'+I18N.w.wQRCode+' 1","Z":"f","xy":"7unF9)H(","r":"((","wh":"7he]7he]","o":"3_","iLVA":".","fPt":"(","I":"","ani":"( 0 1s 1","qrcC":"'+(ENV.IS_MO?"https://mockitt.wondershare.com":"https://modao.cc")+'","qrcP":"+ wTRu7 (((*|"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:09:10.700Z","hotAABB":[1029,8171,1149,8291],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWtRSAWjtpHu:{preview:"map",meta:{name:I18N.w.wMapView,type:"wMapView",width:375,height:230},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWtRSAWjtpHu {"T":"d","N":"'+I18N.w.wMapView+' 1","Z":"g","xy":"7v)H9,W>","r":"((","wh":"7l527j8T","o":"3_","iLVA":"*","fPt":"(","I":"","mapS":"eTtTWt0WJPbDVIs"}\nB@trash {"T":")","B":"+"}\nB@ext ) {"T":")","B":"-"}\neTtTWt0WJPbDVIs {"T":"+","N":"Map","Z":"(","eD":"/mb-workspace/images/widget/staticmap_zh-CN.png","eT":")"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:09:10.700Z","hotAABB":[917,8351,1292,8581],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWtx6mtGSTqv:{preview:"dialog",meta:{name:I18N.w.wMTooltip,type:"wMTooltip",width:220,height:42},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWtx6mtGSTqv {"!FFV":1,"T":"e","N":"'+I18N.w.wMTooltip+' 1","Z":"h","xy":"7unF9/l6","r":"((","wh":"7j,u7g`w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ( ( 6 < 2","ttv0S":"'+I18N.w.wMTooltip+'","fill":"h ( SVzm+","brdRV":"h bYpZx ) (!-!7","ani":"( 0 1s 1","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","tt":"2 2 )"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:09:10.700Z","hotAABB":[979,8684,1199,8726],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U5lkS3FEPNd1at:{preview:"tree",meta:{name:"\u6811\u5F62\u7EC4\u4EF6",type:"wTree",width:256,height:210},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU612mEnkU7LrBvOzK6pSx2 {"!FFV":1,"od":[[["\u4E00\u7EA7\u9009\u98791","","/","",""],[[["\u4E8C\u7EA7\u9009\u98791","","-","",""],[]],[["\u4E8C\u7EA7\u9009\u98792","","-","",""],[]]]],[["\u4E00\u7EA7\u9009\u98792","","-","",""],[]],[["\u4E00\u7EA7\u9009\u98793","","-","",""],[]]],"Z":"c","tt":"h!(!gn~wh!.v~[9!h!(!P!@","N":"\u6811\u5F62\u7EC4\u4EF6 1","xy":"7ix>7ld_","wh":"7jVi7ix>","ttv0P":"<*l0[ ( ( ) ) 6 < (","tsn":"h!oq=X3!(!PingFangSC!6!(!(!.v~[9!(","T":")7","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","brdV":"( bYpZx ) (!7","ttv0S":"","fi":"( ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-18T06:23:11.059Z","hotAABB":[82,310,338,520],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYqDqAdDqgrj:{preview:"flow_process",meta:{name:"\u6D41\u7A0B",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowProcess},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYqDqAdDqgrj {"xy":"7gj:7gQ{","T":")3","N":"\u6D41\u7A0B 1","Z":"-","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":")","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.204Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYqXn9Q7t5eX:{preview:"flow_decision",meta:{name:"\u5224\u5B9A",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowDecision},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYqXn9Q7t5eX {"xy":"7gj:7gQ{","T":")3","N":"\u5224\u5B9A 1","Z":".","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"*","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYquH4iIv29k:{preview:"flow_startEnd",meta:{name:"\u5F00\u59CB/\u7ED3\u675F",width:100,height:40,type:"wFlowClosed",metaType:n.x.WFlowStartEnd},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYquH4iIv29k {"xy":"7gj:7gFD","T":")3","N":"\u5F00\u59CB/\u7ED3\u675F 1","Z":"/","r":"((","wh":"7hMF7g^Z","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"+","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,40],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYrE8F27zeaQ:{preview:"flow_doc",meta:{name:"\u6587\u6863",width:100,height:74,type:"wFlowClosed",metaType:n.x.WFlowDoc},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYrE8F27zeaQ {"xy":"7gj:7gZ0","T":")3","N":"\u6587\u6863 1","Z":"0","r":"((","wh":"7hMF7h/2","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":",","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,74],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYrWZgO0LsX1:{preview:"flow_data",meta:{name:"\u6570\u636E",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowData},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYrWZgO0LsX1 {"xy":"7gj:7gQ{","T":")3","N":"\u6570\u636E 1","Z":"1","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"-","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYrmAmMyPxFm:{preview:"flow_subProcess",meta:{name:"\u5B50\u6D41\u7A0B",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowSubProcess},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYrmAmMyPxFm {"xy":"7gj:7gQ{","T":")3","N":"\u5B50\u6D41\u7A0B 1","Z":"2","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":".","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYs5JTSKf4Ww:{preview:"flow_outerData",meta:{name:"\u5916\u90E8\u6570\u636E",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowOuterData},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYs5JTSKf4Ww {"xy":"7gj:7gQ{","T":")3","N":"\u5916\u90E8\u6570\u636E 1","Z":"3","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"/","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYsPv4WDOzVz:{preview:"flow_innerData",meta:{name:"\u5185\u90E8\u5B58\u50A8",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowInnerData},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYsPv4WDOzVz {"xy":"7gj:7gQ{","T":")3","N":"\u5185\u90E8\u5B58\u50A8 1","Z":"4","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"0","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYsbgRo08xib:{preview:"flow_queueData",meta:{name:"\u961F\u5217\u6570\u636E",width:60,height:60,type:"wFlowClosed",metaType:n.x.WFlowQueueData},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYsbgRo08xib {"xy":"7gQ{7gQ{","T":")3","N":"\u961F\u5217\u6570\u636E 1","Z":"5","r":"((","wh":"7guq7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"1","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,60,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYstMIb8crJV:{preview:"flow_database1",meta:{name:"\u6570\u636E\u5E93",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowDatabase1},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYstMIb8crJV {"xy":"7gj:7gQ{","T":")3","N":"\u6570\u636E\u5E93 1","Z":"6","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"2","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYt71zJtCSyS:{preview:"flow_database2",meta:{name:"\u6570\u636E\u5E93",width:62,height:62,type:"wFlowClosed",metaType:n.x.WFlowDatabase2},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYt71zJtCSyS {"xy":"7gS27gS2","T":")3","N":"\u6570\u636E\u5E93 2","Z":"7","r":"((","wh":"7gx67gx6","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"3","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,62,62],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYtPft4pJ2Lr:{preview:"flow_humanInput",meta:{name:"\u4EBA\u5DE5\u8F93\u5165",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowHumanInput},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYtPft4pJ2Lr {"xy":"7gj:7gQ{","T":")3","N":"\u4EBA\u5DE5\u8F93\u5165 1","Z":"8","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"4","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYtnbvaiddhp:{preview:"flow_card",meta:{name:"\u5361\u7247",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowCard},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYtnbvaiddhp {"xy":"7gj:7gQ{","T":")3","N":"\u5361\u7247 1","Z":"9","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"5","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYtyZc9NCDC9:{preview:"flow_strip",meta:{name:"\u6761\u5E26",width:100,height:74,type:"wFlowClosed",metaType:n.x.WFlowStrip},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYtyZc9NCDC9 {"xy":"7gj:7gZ0","T":")3","N":"\u6761\u5E26 1","Z":":","r":"((","wh":"7hMF7h/2","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"6","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,74],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYu8Io3j4nq:{preview:"flow_show",meta:{name:"\u5C55\u793A",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowShow},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYu8Io3j4nq {"xy":"7gj:7gQ{","T":")3","N":"\u5C55\u793A 1","Z":";","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"7","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYuK7KP2OrEq:{preview:"flow_humanOp",meta:{name:"\u4EBA\u5DE5\u64CD\u4F5C",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowHumanOp},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYuK7KP2OrEq {"xy":"7gj:7gQ{","T":")3","N":"\u4EBA\u5DE5\u64CD\u4F5C 1","Z":"<","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"8","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYuTuekx7DDu:{preview:"flow_prepare",meta:{name:"\u9884\u5907",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowPrepare},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYuTuekx7DDu {"xy":"7gj:7gQ{","T":")3","N":"\u9884\u5907 1","Z":"=","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"9","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYue9RMtuBeb:{preview:"flow_loop",meta:{name:"\u5FAA\u73AF\u9650\u503C",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowLoop},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYue9RMtuBeb {"xy":"7gj:7gQ{","T":")3","N":"\u5FAA\u73AF\u9650\u503C 1","Z":">","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":":","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYutd6twPNm8:{preview:"flow_refInPage",meta:{name:"\u9875\u9762\u5185\u5F15\u7528",width:60,height:60,type:"wFlowClosed",metaType:n.x.WFlowRefInPage},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYutd6twPNm8 {"xy":"7gQ{7gQ{","T":")3","N":"\u9875\u9762\u5185\u5F15\u7528 1","Z":"?","r":"((","wh":"7guq7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":";","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,60,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYv4PTGfGty4:{preview:"flow_or",meta:{name:"\u6216\u8005",width:60,height:60,type:"wFlowClosed",metaType:n.x.WFlowOr},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYv4PTGfGty4 {"xy":"7gQ{7gQ{","T":")3","N":"\u6216\u8005 1","Z":"@","r":"((","wh":"7guq7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"<","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,60,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYvFGNKc8O9t:{preview:"flow_sum",meta:{name:"\u6C42\u548C",width:60,height:60,type:"wFlowClosed",metaType:n.x.WFlowSum},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYvFGNKc8O9t {"xy":"7gQ{7gQ{","T":")3","N":"\u6C42\u548C 1","Z":"A","r":"((","wh":"7guq7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"=","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,60,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYvVI3GXbeO5:{preview:"flow_refCrossPage",meta:{name:"\u8DE8\u9875\u5F15\u7528",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowRefCrossPage},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYvVI3GXbeO5 {"xy":"7gj:7gQ{","T":")3","N":"\u8DE8\u9875\u5F15\u7528 1","Z":"B","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":">","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYvfkSfGrbK6:{preview:"flow_sort",meta:{name:"\u6392\u5E8F",width:60,height:60,type:"wFlowClosed",metaType:n.x.WFlowSort},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYvfkSfGrbK6 {"xy":"7gQ{7gQ{","T":")3","N":"\u6392\u5E8F 1","Z":"C","r":"((","wh":"7guq7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"?","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,60,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYvqC2QIyP8L:{preview:"flow_union",meta:{name:"\u5408\u5E76",width:60,height:40,type:"wFlowClosed",metaType:n.x.WFlowUnion},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYvqC2QIyP8L {"xy":"7gQ{7gFD","T":")3","N":"\u5408\u5E76 1","Z":"D","r":"((","wh":"7guq7g^Z","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"@","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,60,40],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYw2n7qdB8kr:{preview:"flow_concurrent",meta:{name:"\u5E76\u884C\u6A21\u5F0F",width:100,height:60,type:"wFlowOpened",metaType:n.x.WFlowConcurrent},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYw2n7qdB8kr {"xy":"7gj:7gQ{","T":")4","N":"\u5E76\u884C\u6A21\u5F0F 1","Z":"E","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"!FFV":1,"sT":")"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYwEvu5dBJ1q:{preview:"flow_commentRight",meta:{name:"\u6CE8\u91CA",width:100,height:60,type:"wFlowOpened",metaType:n.x.WFlowCommentLeft},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYwEvu5dBJ1q {"xy":"7gj:7gQ{","T":")4","N":"\u6CE8\u91CA 1","Z":"F","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"!FFV":1,"sT":"*"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYwT06ufHaJH:{preview:"flow_commentLeft",meta:{name:"\u6CE8\u91CA",width:100,height:60,type:"wFlowOpened",metaType:n.x.WFlowCommentLeft},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYwT06ufHaJH {"xy":"7gj:7gQ{","T":")4","N":"\u6CE8\u91CA 2","Z":"G","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"!FFV":1,"sT":"+"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYwoyv4NEzbh:{preview:"flow_noteRight",meta:{name:"\u5907\u6CE8",width:100,height:60,type:"wFlowOpened",metaType:n.x.WFlowCommentRight},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYwoyv4NEzbh {"xy":"7gj:7gQ{","T":")4","N":"\u5907\u6CE8 1","Z":"H","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"!FFV":1,"sT":","}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYx1e6MFZTcA:{preview:"flow_noteLeft",meta:{name:"\u5907\u6CE8",width:100,height:60,type:"wFlowOpened",metaType:n.x.WFlowNoteLeft},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYx1e6MFZTcA {"xy":"7gj:7gQ{","T":")4","N":"\u5907\u6CE8 2","Z":"I","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"!FFV":1,"sT":"-"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.207Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYxc8hZvULQr:{preview:"horizontal_swimlane",meta:{name:"\u6C34\u5E73\u6CF3\u9053",width:480,height:320,type:"wSwimlane",metaType:n.x.WSwimlaneV},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYxc8hZvULQr {"xy":"7jD47i=2","T":")2","N":"\u6C34\u5E73\u6CF3\u9053 1","Z":"K","r":"((","wh":"7mY:7kK6","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","brdR":"h bYpZx ) (!(","wl":["7gQ{","7gQ{","7m6D"],"hl":["7i=2","7i=2"],"tb":[["cell0"],["cell1","cell3"],["cell2","cell4"]],"cls":{"cell0":{"rt1":{"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3},"t1":{"dtV":1,"b/#000000":["( ( ","\u6CF3\u9053\u56FE\u6807\u9898",[],[]]},"fl":"h ( oT(h~"},"cell1":{"rt1":{"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3},"t1":{"dtV":1,"b/#000000":["( ( ","\u6CF3\u9053\u540D\u79F0",[],[]]},"fl":"h ( oT(h~"},"cell2":{"rt1":{"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3},"t1":{"dtV":1,"b/#000000":["( ( ","\u6CF3\u9053\u540D\u79F0",[],[]]},"fl":"h ( oT(h~"},"cell3":{"rt1":{"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3},"t1":{"dtV":1,"b/#000000":["( ( ","",[],[]]},"fl":"( ( oT(h~"},"cell4":{"rt1":{"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3},"t1":{"dtV":1,"b/#000000":["( ( ","",[],[]]},"fl":"( ( oT(h~"}},"ihbt":"(","smt":"("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.207Z","hotAABB":[0,0,480,320],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYxJHTvgSer6:_()}),a=()=>{const x={sceName:o(),sceListing:C(),sceData:b()};return c.BUILTIN_SCENE=x,x},M=x=>{const g=b();let S=null;const t=[...Object.entries(g)];if(x===n.x.WSwimlane)return _();for(let v=0;v<t.length;v++){const[w,k]=t[v];if(k){const{meta:{type:W,metaType:K}}=k;if(x===K||x===W){S=k;break}}}return S}},18501:(He,ee,e)=>{"use strict";e.d(ee,{$Z:()=>f,Bg:()=>d,Ky:()=>I,Ny:()=>h,Pp:()=>n,Qj:()=>c,Sd:()=>u,Uz:()=>i,fh:()=>r,fz:()=>o,tK:()=>C});const n=p=>p.ui.fixedLayout.ai.showAIModal,r=p=>p.ui.fixedLayout.ai.currentAiComponent,c=p=>p.ui.fixedLayout.ai.showAIGuide,o=p=>p.ui.fixedLayout.ai.aiGenerating,I=p=>p.ui.fixedLayout.ai.showAISemantic,u=p=>p.ui.fixedLayout.ai.historySemanticValue,d=p=>p.ui.fixedLayout.ai.switchIsChat,C=p=>{var s;return(s=p.ui)==null||(s=s.fixedLayout)==null||(s=s.ai)==null?void 0:s.showAISemanticTip},h=p=>{var s;return(s=p.ui)==null||(s=s.fixedLayout)==null||(s=s.ai)==null?void 0:s.userInputObj},i=p=>p.ui.fixedLayout.ai.showAIChatPanel,f=p=>p.ui.fixedLayout.ai.agentAiPoints},18575:(He,ee,e)=>{"use strict";e.d(ee,{D:()=>$,W:()=>P});var n=e(38502),r=e(53732),c=e.n(r),o=e(88194),I=e(83199),u=e(17307),d=e(33573),C=e(99402),h=Object.defineProperty,i=Object.defineProperties,f=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,_=(H,O,V)=>O in H?h(H,O,{enumerable:!0,configurable:!0,writable:!0,value:V}):H[O]=V,b=(H,O)=>{for(var V in O||(O={}))s.call(O,V)&&_(H,V,O[V]);if(p)for(var V of p(O))l.call(O,V)&&_(H,V,O[V]);return H},a=(H,O)=>i(H,f(O)),M=(H,O)=>{var V={};for(var Q in H)s.call(H,Q)&&O.indexOf(Q)<0&&(V[Q]=H[Q]);if(H!=null&&p)for(var Q of p(H))O.indexOf(Q)<0&&l.call(H,Q)&&(V[Q]=H[Q]);return V},g=(0,n.forwardRef)((H,O)=>{var V=H,{size:Q,spin:N,style:L}=V,U=M(V,["size","spin","style"]);const A=b(b({width:Q||"var(--x-icon-size, 1em)",height:Q||"var(--x-icon-size, 1em)",animation:N?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),L);return n.createElement("svg",a(b({ref:O,style:A},U),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),n.createElement("path",{d:"M10.2832 5.51465C10.7668 5.58301 11.1927 5.88441 11.415 6.3291L12 7.5H17.5C18.3284 7.5 19 8.17157 19 9V17C19 17.7767 18.4097 18.4154 17.6533 18.4922L17.5 18.5H6.5C5.72334 18.5 5.08461 17.9097 5.00781 17.1533L5 17V7C5 6.17157 5.67157 5.5 6.5 5.5H10.0732L10.2832 5.51465ZM6.5 17H17.5V9H12C11.4318 9 10.9123 8.67907 10.6582 8.1709L10.0732 7H6.5V17ZM10.126 10.3838C10.3993 10.1105 10.8428 10.1106 11.1162 10.3838C11.3895 10.6572 11.3895 11.1007 11.1162 11.374L10.1904 12.2998H15.5C15.8865 12.2999 16.2002 12.6134 16.2002 13C16.2001 13.3864 15.8865 13.7001 15.5 13.7002H10.1904L11.1162 14.626C11.3894 14.8993 11.3895 15.3429 11.1162 15.6162C10.8429 15.8894 10.3993 15.8894 10.126 15.6162L8.00488 13.4951C7.73171 13.2218 7.73167 12.7782 8.00488 12.5049L10.126 10.3838Z",fill:"white"}))}),S=e(31757),t=e(11032),v=e(78161),w=e(46442),k=e(4179),W=e(41240),K=e(3862),G=e(72214);const $=(0,n.memo)(H=>{const{className:O,itemKey:V,cid:Q,isBasicOrScreen:N,projectMetaCid:L,platform:U,flatItemType:A,ssZoomMode:D,policy:B,is_purchased:j,name:F,isShowSign:Y,isShowFolderIcon:X,isVisible:z,isShowFloatPreviewPanel:Z,isShowFloatPreviewIcon:J,onMouseDown:te,onClick:ge,onCreate:pe,onToggleHoverPreviewIcon:Ce,onShowTipsByTarget:me,onOpenFolder:be,onSetElementRef:ie,onGetImgSrc:oe,handMouseEnter:he,handMouseLeave:ce,canChecked:re,onCheckedResource:fe,checkedSet:Se,isCanPreviewInModal:Me,modalName:Ie,onOpenPreviewModal:de,currentResourcesTitle:xe,category:Le}=H,ve=!!(Me&&(Ie!=null&&Ie.length)),je=_e=>{_e.stopPropagation(),fe==null||fe(V)},We=_e=>{_e.stopPropagation(),_e.preventDefault(),de==null||de(V)},{handleClick:Ae,handleDoubleClick:we}=(0,k.A)({onClick:_e=>ge(_e,V),onDoubleClick:_e=>pe(_e,V)});return z?(0,G.jsxs)(W.nK,{className:c()("template-item mt-exposure-observer",O,U,{"is-basic-or-screen":N,"is-can-check":re,"is-checked":re&&(Se==null?void 0:Se.has(V))}),ref:ie,onMouseDown:te,onClick:Ae,onDoubleClick:we,"data-cid":V,"data-resources-cid":Q,"data-project-cid":L,onMouseEnter:_e=>he&&he(_e),onMouseLeave:_e=>ce&&ce(_e),children:[(0,G.jsxs)("div",{className:c()("img-wrapper",{"is-hover":Z}),children:[Me&&Le===K.t_?(0,G.jsx)(E,{projectMetaCid:L,snapshotKey:V,isVisible:z,mode:A==="rResCanvas"?o.rY.PNG_CANVAS:o.rY.PNG_PAGE,ssZoomMode:D,name:F}):(0,G.jsx)(d.Ay,{projectMetaCid:L,snapshotKey:V,isVisible:z,mode:A==="rResCanvas"?o.rY.PNG_CANVAS:o.rY.PNG_PAGE,ssZoomMode:D}),(0,G.jsxs)("div",{className:"operation-box",children:[X&&(0,G.jsx)("div",{className:"operation folder",onClick:be,children:(0,G.jsx)(I.A,{content:xe||I18N.Resources.folder,direction:"down",children:(0,G.jsx)(g,{size:Me?24:16,className:c()("open-folder",{"size-24":Me})})})}),J&&(0,G.jsx)(v.Y,{className:"operation preview",getImgSrc:oe,onToggleHover:Ce})]}),Y&&(0,G.jsx)(P,{resources:{policy:B,is_purchased:j},isCard:!0,isShowModalFloatPreviewIcon:ve}),re&&(0,G.jsx)(C.A,{className:"check "+((Se==null?void 0:Se.has(V))&&"is-show"),checked:Se==null?void 0:Se.has(V),onChange:je,onClick:_e=>_e.stopPropagation()}),ve&&(0,G.jsx)(v.Y,{className:"preview-in-modal",getImgSrc:oe,onToggleHover:Ce,onClick:We,modalName:Ie,delay:0,children:(0,G.jsx)(S.A,{size:12})}),(0,G.jsx)("div",{className:"cover-fade"})]}),(0,G.jsx)(I.A,{content:F,direction:"down",isShowTipsByTarget:me,children:(0,G.jsx)("span",{className:"template-name",children:F})})]}):(0,G.jsx)(w.a,{item:{key:V,mtCid:Q},onSetTemplateRef:ie},V)}),P=H=>{let{resources:O,isSmall:V=!1,isCard:Q=!1,isShowModalFloatPreviewIcon:N=!1}=H;const{isPurchased:L,isVipTemplate:U,isMdVipTemplate:A}=(0,t.f9)(O);if(L)return(0,G.jsx)(W.yD,{className:c()("sign purchased",{small:V}),src:"/mb-workspace/images/nav/mt_purchased@"+(Q?"card":V?"21":"28")+".png"});if(U){const D=A?"art_board/community_resources/md_vip":"art_board/community_resources/mkt_vip",B=A?"/mb-proto2/images/nav/md_vip.png":"/mb-proto2/images/nav/mt_vip.png",j=A?"art_board/community_resources/md_vip_s":"art_board/community_resources/mt_vip_s";return(0,G.jsx)(W.ch,{children:ENV.IS_MO?(0,G.jsx)(u.C,{className:c()("sign",{small:V}),name:D,isColorPure:!0}):(0,G.jsxs)(G.Fragment,{children:[Q&&(0,G.jsx)(u.C,{className:c()("sign short",N?"has-preview-icon large":"small"),name:j,isColorPure:!0}),(0,G.jsx)("img",{className:c()("sign long",{"has-preview-icon large":N}),src:B})]})})}return null},E=(0,n.memo)(H=>{const{projectMetaCid:O,snapshotKey:V,isVisible:Q,mode:N,ssZoomMode:L,name:U}=H,[A,D]=(0,n.useState)({}),B=async()=>{const j=await(0,d.pG)({projectMetaCid:O,snapshotKey:V,mode:N,ssZoomMode:L});if(!j)return;const{width:F,height:Y}=j,X=F/Y;F>=155||Y>=155?F>=155?D({width:155,height:155/X}):D({width:155*X,height:155}):F<100&&D({width:100,height:100/X})};return(0,n.useEffect)(()=>{(async()=>{await B()})()},[]),(0,G.jsx)(d.Ay,{projectMetaCid:O,snapshotKey:V,isVisible:Q,mode:N,ssZoomMode:L,style:A})})},18805:(He,ee,e)=>{"use strict";e.d(ee,{Ez:()=>c,NT:()=>f,fC:()=>r,l$:()=>h,rk:()=>o,rp:()=>i,zS:()=>I});var n=e(14073);function r(p,s,l,_){const{top:b,left:a}=l.current.getBoundingClientRect(),{top:M,left:x}=_.current.getBoundingClientRect();let g;if(a===x)s<Math.min(b,M)?g=b<M?0:100:s>Math.max(b,M)?g=b<M?100:0:g=Math.abs((s-b)/Math.abs(M-b)*100).toFixed(0);else if(b===M)p<Math.min(a,x)?g=a<x?0:100:p>Math.max(a,x)?g=a<x?100:0:g=Math.abs((p-a)/Math.abs(x-a)*100).toFixed(0);else{const S=(b-M)/(a-x),t=b-S*a,v=-1/S,k=(s-v*p-t)/(S-v),W=Math.abs(a-x);k<Math.min(a,x)?g=a<x?0:100:k>Math.max(a,x)?g=a<x?100:0:g=Math.round(Math.abs(a-k)/W*100)}return g}const c=(p,s)=>{const l=[];return p.map((_,b)=>{const a=_[3],x={hex:n.Q1.toHexAndAlpha(_)[0],alpha:a,point:s[b]};l.push(x)}),l},o=(p,s,l)=>{const _=[...p,l].sort((M,x)=>M-x),b=_.findIndex(M=>M===l);let a=[...s];if(b===0)a=[a[0],...s];else if(b===a.length)a=[...s,a[a.length-1]];else{a.splice(b,0,null);const M=Math.min(Math.max(b,_.length-1),0),x=Math.max(Math.min(b,0),_.length-1),g=a[M],S=a[x],t=_[M],v=_[x],w=(l-t)/(v-t||1);a[b]=[g[0]+(S[0]-g[0])*w,g[1]+(S[1]-g[1])*w,g[2]+(S[2]-g[2])*w,g[3]+(S[3]-g[3])*w]}return{nextColors:a,nextStops:_,index:b}},I=p=>{const s={...p,colors:[...p.colors],stops:[...p.stops]},l=s.stops.map((_,b)=>[_,s.colors[b]]);return l.sort((_,b)=>_[0]-b[0]),s.colors=l.map(_=>_[1]),s.stops=l.map(_=>_[0]),s},u=(p,s)=>Math.round(Number(p)*Math.pow(10,s))/Math.pow(10,s),d=function(p,s,l,_){s===void 0&&(s=2),l===void 0&&(l=-1/0),_===void 0&&(_=1/0);const b=u(Math.min(Math.max(p,l),_),s);return isNaN(b)?0:b},C=p=>p.length===4?"rgba("+d(p[0]*255,0)+","+d(p[1]*255,0)+","+d(p[2]*255,0)+","+d(p[3])+")":"rgba(16,16,16,1)",h=p=>{const{colors:s,stops:l,complex:_,x:b,y:a}=p,M=n.dL.parse({x:b,y:a,complex:_}),x=M.decompose().ro,g=x*180/Math.PI,S=M.apply(n.ZY.xy(0,0)),t=M.apply(n.ZY.xy(1,0)),v=n.ZY.xy(.5,.5),w=Math.abs(Math.sin(x))+Math.abs(Math.cos(x)),k=n.ZY.rotate(v,x,n.ZY.xy((1-w)/2,.5)),W=n.ZY.rotate(v,x,n.ZY.xy((1+w)/2,.5)),K=n.oi.projectOnePoint2Line(S,[k,W]),G=n.ZY.dot(n.ZY.subtract(K,k),n.ZY.subtract(W,k))>0?n.ZY.distance(K,k)/w:-n.ZY.distance(K,k)/w,$=n.oi.projectOnePoint2Line(t,[k,W]),P=n.ZY.dot(n.ZY.subtract($,k),n.ZY.subtract(W,k))>0?n.ZY.distance($,k)/w:-n.ZY.distance($,k)/w,E=l.map((H,O)=>{const V=(P-G)*H+G;return C(s[O])+" "+d(V*100)+"%"});return"linear-gradient("+d(g+90)+"deg, "+E.toString()+")"},i=p=>{const{colors:s,stops:l,complex:_,x:b,y:a}=p,{a:M,b:x,c:g,d:S}=_,t=new n.hP(M,x,g,S,0,0),{x:v,y:w}=t.apply(n.ZY.xy(1,1)),k=l.map((W,K)=>C(s[K])+" "+d(W*100)+"%");return"radial-gradient("+Math.abs(v)+"% "+Math.abs(w)+"% at "+b*100+"% "+a*100+"%, "+k.toString()+")"},f=p=>p===n.LA.LinearGradient||p===n.LA.RadialGradient||p===n.LA.AngularGradient},18821:(He,ee,e)=>{var n=e(64719),r=e(85378),c=r(function(o,I){return o==null?{}:n(o,I)});He.exports=c},19013:(He,ee,e)=>{"use strict";e.d(ee,{Hy:()=>n,m9:()=>r,n1:()=>c});let n=function(o){return o[o.General=0]="General",o[o.Common=1]="Common",o[o.Text=2]="Text",o[o.Appearance=3]="Appearance",o[o.PolygonInfo=4]="PolygonInfo",o[o.ImageDrop=5]="ImageDrop",o[o.Carousel=6]="Carousel",o[o.Canvas=7]="Canvas",o[o.LayoutGrid=8]="LayoutGrid",o[o.StickyArea=9]="StickyArea",o[o.WebPagePanel=10]="WebPagePanel",o[o.VideoPanel=11]="VideoPanel",o[o.AudioPanel=12]="AudioPanel",o[o.QRCodePanel=13]="QRCodePanel",o[o.TablePanel=14]="TablePanel",o[o.TableCellPanel=15]="TableCellPanel",o[o.DropMenuPanel=16]="DropMenuPanel",o[o.OptionDropMenuPanel=17]="OptionDropMenuPanel",o[o.OptionNavigationMenuPanel=18]="OptionNavigationMenuPanel",o[o.OptionNavigationMenuHPanel=19]="OptionNavigationMenuHPanel",o[o.OptionNavigationMenuVPanel=20]="OptionNavigationMenuVPanel",o[o.OptionCollapsePanel=21]="OptionCollapsePanel",o[o.OptionSegmentedControlPanel=22]="OptionSegmentedControlPanel",o[o.OptionTabsPanel=23]="OptionTabsPanel",o[o.NavigationMenuTypePanel=24]="NavigationMenuTypePanel",o[o.NavigationMenuOtherOptionsPanel=25]="NavigationMenuOtherOptionsPanel",o[o.NavigationMenuSettingsPanel=26]="NavigationMenuSettingsPanel",o[o.CollapseSettingsPanel=27]="CollapseSettingsPanel",o[o.CollapseSwitchOptionsPanel=28]="CollapseSwitchOptionsPanel",o[o.SegmentedControlPanel=29]="SegmentedControlPanel",o[o.TabsPanel=30]="TabsPanel",o[o.PaginationMobilePanel=31]="PaginationMobilePanel",o[o.PaginationWebPanel=32]="PaginationWebPanel",o[o.DigitalStepperPanel=33]="DigitalStepperPanel",o[o.SliderPanel=34]="SliderPanel",o[o.SwitchOptionsPanel=35]="SwitchOptionsPanel",o[o.SwitchPanel=36]="SwitchPanel",o[o.MobileTabBarsSwitchOptionsPanel=37]="MobileTabBarsSwitchOptionsPanel",o[o.MobileTabBarsPanel=38]="MobileTabBarsPanel",o[o.SelectionControlTypeSettingsPanel=39]="SelectionControlTypeSettingsPanel",o[o.SelectionControlAttrSettingsPanel=40]="SelectionControlAttrSettingsPanel",o[o.SelectionControlColorSettingsPanel=41]="SelectionControlColorSettingsPanel",o[o.ChartSettingsPanel=42]="ChartSettingsPanel",o[o.TemplatePanel=43]="TemplatePanel",o[o.Animation=44]="Animation",o[o.CanvasColorPanel=45]="CanvasColorPanel",o[o.InputTypePanel=46]="InputTypePanel",o[o.InputPlaceholderPanel=47]="InputPlaceholderPanel",o[o.IconFlipPanel=48]="IconFlipPanel",o[o.DropMenuOptionColor=49]="DropMenuOptionColor",o[o.MaxPageNumber=50]="MaxPageNumber",o[o.TreeSwitchPanel=51]="TreeSwitchPanel",o}({});const r="default",c="multiple"},19062:(He,ee,e)=>{"use strict";e.d(ee,{S:()=>o,q:()=>I});var n=e(67787),r=e(15207),c=e(72214);const o=u=>{const{className:d,children:C}=u;return(0,c.jsx)(I,{className:d,children:(0,c.jsxs)("div",{className:"loading-container",children:[(0,c.jsx)(r.f,{className:"loading"}),C]})})},I=n.Ay.div.withConfig({displayName:"LoadingCenter__StyledCenterContainer",componentId:"sc-15j8bof-0"})(["width:100%;height:311px;display:flex;align-items:center;justify-content:center;&.searchPanel{width:246px;}&.isFromIconSelectPopup{height:100%;}&.fill-height{height:100%;.loading-container{margin:0;}}&.margin-top-120{height:auto;margin-top:120px;.loading-container{margin:0;}}&.margin-top-170{height:auto;margin-top:170px;.loading-container{margin:0;}}.loading-container{display:flex;align-items:center;justify-content:center;flex-direction:column;margin-top:-40px;margin-left:-25px;span{color:",";margin-top:9px;}}.loading{width:50px;height:50px;}img{margin-top:0;}"],u=>u.theme.color_text_L1)},19269:(He,ee,e)=>{"use strict";e.d(ee,{e:()=>c});var n=e(67787);const r="0.15s",c=n.Ay.div.withConfig({displayName:"ImageWrapper__StyledImageWrapper",componentId:"sc-1a2jgrx-0"})(["position:relative;display:flex;align-items:center;justify-content:center;border-radius:4px;background-color:",";transition:all "," ease-in-out;&.svg-icon-path-item .library-icon-item{width:36px;height:36px;}img{max-width:100%;max-height:100%;border-radius:4px;pointer-events:none;}.svg-icon{color:",';}&::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;border-radius:4px;border:2px solid transparent;transition:all '," ease-in-out;}.actions{z-index:1;position:absolute;display:flex;bottom:8px;right:8px;opacity:0;transition:all "," ease-in-out;&.hover{opacity:1;.btn-box{background:rgba(51,51,51,0.7);}}.flag-action{margin-right:4px;.library-tag{color:",";.rect{opacity:0.37;}}}.btn-box{width:18px;height:18px;border-radius:4px;display:flex;align-items:center;justify-content:center;background:rgba(51,51,51,0.5);&:hover{background:rgba(51,51,51,0.7);}}.library-menu{color:",";width:16px;height:16px;rect{fill:none;}}}.image-type{position:absolute;top:2px;left:2px;padding:0 6px;height:24px;line-height:24px;font-size:20px;text-align:center;color:",";background:",";border-radius:1px;transform:scale(0.5);transform-origin:0 0;transition:all "," ease-in-out;}.dynamic-flag{display:flex;align-items:center;justify-content:center;position:absolute;top:2px;left:2px;width:16px;height:16px;background:",";border-top-left-radius:2px;.icon{width:8px;}}&.is-select{.image-type,.dynamic-flag{opacity:0;}&::after{border:1px solid ",";}}&.is-more-select{.actions{opacity:0;pointer-events:none;}}&:not(.is-select){&:hover,&.hover{background:",";.image-type,.dynamic-flag{opacity:0;}.actions{opacity:1;}&:not(.combo)::after{border:2px solid ",";}}}"],o=>o.theme.color_btn_secondary_active,r,o=>o.theme.color_text_L2,r,r,o=>o.theme.color_text_L1,o=>o.theme.color_text_L1,o=>o.theme.color_text_L2,o=>o.theme.color_btn_secondary_active,r,o=>o.theme.color_bg_border_02,o=>o.theme.color_proto,o=>o.theme.color_bg_white,o=>o.theme.color_proto)},19327:(He,ee,e)=>{var n=e(71893),r=e(71602),c=e(48236),o=e(52255),I=e(83084),u=c(function(d,C){var h=I(C);return o(h)&&(h=void 0),o(d)?n(d,r(C,1,o,!0),void 0,h):[]});He.exports=u},19376:(He,ee,e)=>{"use strict";e.d(ee,{I:()=>s});var n=e(38502),r=e(18381),c=e(53732),o=e.n(c),I=e(54801),u=e(41818),d=e(75810),C=e(67588),h=e(35719),i=e(72214);const f=(l,_,b)=>{const a=l.startsWith("#")?l.slice(1):"";if(!a)return"transparent";const M=(0,d.bJ)(a,b==="light"?"FFFFFF":"212121"),x=b==="light"?"#DEE0E2":"#4F5052";return M<=1.2?x:_<100?"transparent":l},p=(0,n.memo)((0,n.forwardRef)((l,_)=>{let{className:b,color:a,index:M,attr:x,size:g=18,solidRenderType:S="rect",brColor:t,hasBorder:v,handleColorThumbnailMouseDown:w}=l;const k=a.color[3],W=u.Q.toHexAndAlpha(a.color)[0],G=Math.floor(k*100)/100,$=(0,n.useMemo)(()=>{const O=Math.random().toString(36).slice(2);return"colorButton-"+S+"-opacity-"+O},[S]),P={clipPath:"url('#"+$+"')"},E=O=>w&&w(O,{color:a,attr:x,index:M}),H=t==="transparent"&&v?G===0?g:g+2:g;return G===0?(0,i.jsx)(h.tI,{className:o()("thumbnail-wrapper","has-opacity","opacity-0",b,S,{"has-border":v&&t!=="transparent"},{"has-border-transparent":v&&t==="transparent"}),ref:_,size:H,opacity:1-G,brColor:t,onMouseDown:E}):S==="circle"?(0,i.jsxs)(h.tI,{className:o()("thumbnail-wrapper","has-opacity",b,S,{"has-border":v},{"has-border-transparent":v&&t==="transparent"}),ref:_,size:H,opacity:1-G,brColor:t,onMouseDown:E,children:[(0,i.jsx)("svg",{viewBox:"0 0 "+H*2+" "+H*2,children:(0,i.jsx)("circle",{cx:H,cy:H,r:H,fill:W,opacity:G})}),(0,i.jsx)("div",{className:"clip",width:H,height:H,style:P}),(0,i.jsx)("svg",{width:"0",height:"0",children:(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:$,clipPathUnits:"objectBoundingBox",children:(0,i.jsx)("path",{d:"M 0.146 0.146 A 0.5 0.5 225 0 1 0.854 0.854"})})})})]}):(0,i.jsxs)(h.tI,{className:o()("thumbnail-wrapper","has-opacity",b,S,{"has-border":v},{"has-border-transparent":v&&t==="transparent"}),ref:_,size:H,opacity:1-G,brColor:t,onMouseDown:E,children:[(0,i.jsx)("svg",{viewBox:"0 0 "+H+" "+H,children:(0,i.jsx)("rect",{width:H,height:H,fill:W,opacity:G})}),(0,i.jsx)("div",{className:"clip",width:H,height:H,style:P}),(0,i.jsx)("svg",{width:H,height:H,children:(0,i.jsx)("defs",{children:(0,i.jsx)("clipPath",{id:$,children:(0,i.jsx)("rect",{x:"50%",y:"0",width:"50%",height:"100%"})})})})]})})),s=(0,n.memo)((0,n.forwardRef)((l,_)=>{const b=(0,r.d4)(C.O4),{color:a,hasBorder:M=!0}=l,x=a.type===I.LA.Solid;let g=0,S="";if(x){const t=a.color[3];g=Math.floor(t*100);const v=u.Q.toHexAndAlpha(a.color)[0];S=f(v,g,b)}return x&&g===100||!x?(0,i.jsx)(h.pt,{...l,ref:_,brColor:S}):(0,i.jsx)(p,{...l,ref:_,brColor:S,hasBorder:M})}))},20119:(He,ee,e)=>{"use strict";e.d(ee,{c:()=>o});var n=e(12211),r=e(70933),c=e(25997);const o=(0,n.Mz)([r.lh,c.UV,c.RX],(I,u,d)=>{if(I)return u.getHotItem(I)})},20166:(He,ee,e)=>{"use strict";e.d(ee,{A9:()=>M,Se:()=>f,Yq:()=>a,ln:()=>o,mB:()=>i,s9:()=>s,wH:()=>_,wS:()=>b,yU:()=>x});var n=e(93971),r=e(5209),c=e(81717);let o=function(g){return g.Copy="\u590D\u5236\u521B\u5EFA",g.ToolBar="\u9876\u90E8\u680F",g.ShortCut="\u5FEB\u6377\u952E",g.PagePanel="\u9875\u9762\u9762\u677F",g.SearchPanel="\u641C\u7D22\u9762\u677F",g.PageList="\u9875\u9762\u5217\u8868",g.TopNavSizeSelectList="\u9876\u90E8\u5BFC\u822A\u680F\u4E0B\u62C9\u9009\u9879",g.LeftPanelSizeSelectList="\u5DE6\u4FA7\u9875\u9762\u9762\u677F\u65B0\u5EFA\u7A7A\u767D\u9875\u9762",g}({}),I=function(g){return g.Drag="\u62D6\u62FD",g.DoubleClick="\u53CC\u51FB",g.Click="\u5355\u51FB",g.Click_1="\u5355\u51FB\u81EA\u7531\u7ED8\u5236",g.Click_2="\u5355\u51FB\u9009\u62E9\u7C7B\u578B",g.Import="\u7F6E\u5165",g.Action_1="\u81EA\u7531\u7ED8\u5236",g.Action_2="\u9009\u62E9\u9875\u9762",g}({}),u=function(g){return g.ChangeShell="\u66F4\u6539\u5C3A\u5BF8",g.Open="\u5F00\u542F",g.Close="\u5173\u95ED",g.Adjust="\u8C03\u6574",g.Drag="\u62D6\u52A8",g}({}),d=function(g){return g.Shell="\u8FB9\u6846",g.WH="WH",g.CutDown="\u88C1\u51CF",g.DropDownMenu="\u4E0B\u62C9\u83DC\u5355",g.Color="\u989C\u8272",g.Opacity="\u900F\u660E\u5EA6",g.StickyHeader="\u9876\u90E8\u5C4F\u5E55\u56FA\u5B9A",g.StickyFooter="\u5E95\u90E8\u5C4F\u5E55\u56FA\u5B9A",g.Grid="\u7F51\u683C",g.HorizontalGrid="\u6A2A\u6805\u683C",g.VerticalGrid="\u7AD6\u6805\u683C",g}({});const C=g=>{let{source:S,page_type:t}=g;const v=(0,n.RX)();(0,r.kH)("add_page_V8",{source:S,page_type:t,scene_tag:v}),c.Y4.editProjectNew("\u65B0\u5EFA\u9875\u9762")},h=g=>{let{operation_type:S}=g;(0,r.kH)("page_operation_V8",{operation_type:S}),c.Y4.editProjectNew("\u9875\u9762\u64CD\u4F5C")},i=g=>{let{page:{device:S}}=g;C({source:o.Copy,page_type:S})},f=g=>{let{page:{device:S}}=g;C({source:""+o.ToolBar+I.Drag,page_type:S})},p=g=>{let{page:{device:S}}=g;C({source:""+o.ToolBar+I.Click_1,page_type:S})},s=g=>{let{page:{device:S}}=g;C({source:""+o.ToolBar+I.Click_2,page_type:S})},l=g=>{let{page:{device:S}}=g;C({source:""+o.ShortCut+I.Click_1,page_type:S})},_=g=>{let{page:{device:S}}=g;C({source:""+o.PageList,page_type:S})},b=(g,S)=>{C({source:g,page_type:S})},a=()=>{h({operation_type:u.ChangeShell+"-"+d.Shell})},M=g=>{let{attr:S,isOpen:t}=g;S==="device"?h({operation_type:u.ChangeShell+"-"+d.DropDownMenu}):["x","y","w","h"].includes(S)?h({operation_type:u.ChangeShell+"-"+d.WH}):S==="isClipContent"?h({operation_type:""+(t?u.Open:u.Close)+d.CutDown}):S==="fill"?h({operation_type:""+u.Adjust+d.Color}):S==="opacity"?h({operation_type:""+u.Adjust+d.Opacity}):S==="stickyHeaderHeight"?h({operation_type:""+u.Drag+d.StickyHeader}):S==="stickyFooterHeight"?h({operation_type:""+u.Drag+d.StickyFooter}):S==="isGridLayout"?h({operation_type:""+(t?u.Open:u.Close)+d.Grid}):S==="isColLayout"?h({operation_type:""+(t?u.Open:u.Close)+d.VerticalGrid}):S==="isRowLayout"&&h({operation_type:""+(t?u.Open:u.Close)+d.HorizontalGrid})},x=g=>{h({operation_type:g?"\u79FB\u52A8\u753B\u5E03\u5230\u5176\u4ED6\u9879\u76EE-\u521B\u5EFA\u526F\u672C":"\u79FB\u52A8\u753B\u5E03\u5230\u5176\u4ED6\u9879\u76EE-\u4E0D\u521B\u5EFA\u526F\u672C"})}},20459:(He,ee,e)=>{"use strict";e.d(ee,{_:()=>C});var n=e(38502),r=e(23089),c=e(89671),o=e(20089),I=e(8580),u=e(87612),d=e(72214);const C=(0,n.memo)(h=>{let{panel:i,dispatch:f,editingBasketRefPage:p,className:s="height-32"}=h;const{key:l,hotAttr:{type:_,basket:b,refRBPageKey:a,bunch:M,refContentKey:x,defaultCanvasKey:g}}=i,S=k=>{if(_===o.x.WBasket){try{sdkStore.updateHotAttrKV(l,"refContentKey",k)}catch(W){(0,u.p)("[fatal]: no owa update under",W,JSON.stringify(i)),f({type:"entry:update:selection:select:items",payload:{type:"selection:clear"}});return}b==="bDanli"&&sdkStore.updateHotAttrKV(a,"defaultCanvasKey",k)}else M===o.x.RbPage&&sdkStore.updateHotAttrMerge(i==null?void 0:i.key,{defaultCanvasKey:k,mtime:rootSdk.fssCmt.getClockStore().getMtime()})},t=a||l;if(!t||sdkStore.isTrashed(t))return null;const w=(0,I.XY)(t).map(k=>({value:k.cid,label:k.name}));return(0,d.jsxs)(c.d,{className:"panel-state-line "+s,children:[(0,d.jsx)("label",{className:"left-label",children:p?I18N.SettingPanel.main_default_state:I18N.SettingPanel.main_state}),(0,d.jsx)("div",{className:"right-content",children:(0,d.jsx)(r.mq,{className:"panelstate-select",menuClassName:"panelstate-selectmenu",value:x||g,optionList:w,isRightAlign:!0,onChange:S})})]})})},20862:(He,ee,e)=>{"use strict";e.d(ee,{l:()=>x});var n=e(67787),r=e(38502),c=Object.defineProperty,o=Object.defineProperties,I=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,h=(S,t,v)=>t in S?c(S,t,{enumerable:!0,configurable:!0,writable:!0,value:v}):S[t]=v,i=(S,t)=>{for(var v in t||(t={}))d.call(t,v)&&h(S,v,t[v]);if(u)for(var v of u(t))C.call(t,v)&&h(S,v,t[v]);return S},f=(S,t)=>o(S,I(t)),p=(S,t)=>{var v={};for(var w in S)d.call(S,w)&&t.indexOf(w)<0&&(v[w]=S[w]);if(S!=null&&u)for(var w of u(S))t.indexOf(w)<0&&C.call(S,w)&&(v[w]=S[w]);return v},l=(0,r.forwardRef)((S,t)=>{var v=S,{size:w,spin:k,style:W}=v,K=p(v,["size","spin","style"]);const G=i(i({width:w||"var(--x-icon-size, 1em)",height:w||"var(--x-icon-size, 1em)",animation:k?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),W);return r.createElement("svg",f(i({ref:t,style:G},K),{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),r.createElement("path",{d:"M0 4.5C0 2.01472 2.01472 0 4.5 0H13.5C15.9853 0 18 2.01472 18 4.5V13.5C18 15.9853 15.9853 18 13.5 18H4.5C2.01472 18 0 15.9853 0 13.5V4.5Z",fill:"url(#paint0_linear_1160_1265)"}),r.createElement("path",{opacity:"0.5",d:"M6.85175 4.16031C6.81622 4.05542 6.89422 3.94664 7.00497 3.94664H9.25172C9.32106 3.94664 9.3827 3.99084 9.40494 4.05651L12.6926 13.7628C12.7281 13.8677 12.6501 13.9765 12.5393 13.9765H10.2926C10.2232 13.9765 10.1616 13.9323 10.1394 13.8666L6.85175 4.16031Z",fill:"white"}),r.createElement("path",{d:"M8.4691 4.16031C8.43357 4.05542 8.51157 3.94664 8.62232 3.94664H10.8691C10.9384 3.94664 11.0001 3.99084 11.0223 4.05651L14.3099 13.7628C14.3455 13.8677 14.2674 13.9765 14.1567 13.9765H11.9099C11.8406 13.9765 11.779 13.9323 11.7567 13.8666L8.4691 4.16031Z",fill:"white"}),r.createElement("g",{clipPath:"url(#clip0_1160_1265)"},r.createElement("path",{d:"M5.1921 10.0665C5.27619 9.88634 5.5324 9.88634 5.61649 10.0665L6.1134 11.1313C6.13667 11.1811 6.17673 11.2212 6.22657 11.2444L7.29131 11.7413C7.47149 11.8254 7.47149 12.0816 7.29131 12.1657L6.22657 12.6626C6.17673 12.6859 6.13667 12.726 6.1134 12.7758L5.61649 13.8405C5.5324 14.0207 5.27619 14.0207 5.1921 13.8405L4.69518 12.7758C4.67192 12.726 4.63186 12.6859 4.58202 12.6626L3.51728 12.1657C3.3371 12.0816 3.3371 11.8254 3.51728 11.7413L4.58202 11.2444C4.63186 11.2212 4.67192 11.1811 4.69518 11.1313L5.1921 10.0665Z",fill:"white"})),r.createElement("defs",null,r.createElement("linearGradient",{id:"paint0_linear_1160_1265",x1:"0.574469",y1:"19.8",x2:"17.0426",y2:"2.025",gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"#8DDAFF"}),r.createElement("stop",{offset:"0.540572",stopColor:"#183DFF"}),r.createElement("stop",{offset:"1",stopColor:"#9E61FF"})),r.createElement("clipPath",{id:"clip0_1160_1265"},r.createElement("rect",{width:"4.0443",height:"4.0443",fill:"white",transform:"translate(3.38229 9.93236)"}))))}),_=e(32330),b=e(18381),a=e(78915),M=e(72214);const x=()=>{const S=(0,b.wA)(),t=()=>{S({type:"modal:update:state",payload:{templateModal:{isOpen:!1}}}),S(a.GO.updateAIHTMLAgentType("prototyping")),S(a.GO.enableAIHTML()),S(a.GO.expandAIHTML()),S(a.GO.updateAIHTMLSource("templateModalsSearch"))};return ENV.IS_ON_PREMISES?null:(0,M.jsxs)(g,{onClick:t,children:[(0,M.jsx)(l,{size:32}),(0,M.jsxs)("div",{className:"desc",children:[(0,M.jsx)("span",{children:"\u627E\u4E0D\u5230\u4F60\u60F3\u8981\u7684\u7D20\u6750\uFF1F\u8BD5\u8BD5"}),(0,M.jsx)("span",{className:"ai-text",children:"\u58A8\u5200AI\u751F\u6210"})]}),(0,M.jsx)(_.A,{size:24,className:"send-icon"})]})},g=n.Ay.div.withConfig({displayName:"AIButton__StyledAIButton",componentId:"sc-w641qe-0"})(["width:347px;height:56px;display:flex;border:1px solid ",";align-items:center;justify-content:center;border-radius:12px;padding:12px;color:",";font-size:14px;cursor:pointer;margin-top:48px;transition:all 0.2s ease-in-out;.desc{flex:1;margin-left:12px;margin-right:16px;.ai-text{background:linear-gradient(259deg,#FB5FFF 6.12%,#4136F5 71.1%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;}}&:hover{transform:scale(1.05);border-color:transparent;background:linear-gradient(23deg,rgba(141,218,255,0.08) -47.01%,rgba(64,95,255,0.08) 47.85%,rgba(233,123,255,0.08) 140.9%);.send-icon{path{fill:#6669FF;}}}.send-icon{transform:rotate(90deg);path{fill:",";}}"],S=>S.theme.color_bg_border_01,S=>S.theme.color_text_L1,S=>S.theme.color_text_L3)},21259:(He,ee,e)=>{"use strict";e.d(ee,{T:()=>r,v:()=>c});var n=e(67787);const r={width:288,height:139},c=n.Ay.div.withConfig({displayName:"styles__StyledFontSizeTipsModal",componentId:"sc-1k6b3av-0"})(["position:absolute;width:","px;height:","px;border-radius:8px;background-color:",";box-shadow:0 2px 10px rgba(0,0,0,0.12);z-index:106;left:",";top:",";padding:12px 0;color:",";header{display:flex;align-items:center;justify-content:space-between;padding:0 16px 8px;border-bottom:1px solid ",";font-weight:500;.close-btn{width:24px;height:24px;border-radius:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;&:hover{background-color:",";}&:active{background-color:",";}.svg-icon{width:100%;}}}.content{display:flex;flex-direction:column;padding:15px 24px 0;.bottomContainer{display:flex;justify-content:space-between;align-items:center;margin-top:12px;a.tutorials{text-decoration:underline;color:#1684FC;}span.noTips{color:",";cursor:pointer;&:hover{color:",";}}}}"],r.width,r.height,o=>o.theme.color_bg_white,o=>o.position.left+"px",o=>o.position.top+"px",o=>o.theme.color_text_L1,o=>o.theme.color_btn_secondary_active,o=>o.theme.color_btn_secondary_active,o=>o.theme.color_btn_secondary_active,o=>o.theme.color_text_L2,o=>o.theme.color_text_L1)},21489:(He,ee,e)=>{"use strict";e.d(ee,{$S:()=>k,Bh:()=>K,Bt:()=>G,Ch:()=>W,GY:()=>P,IP:()=>v,KA:()=>b,RR:()=>H,V3:()=>i,_p:()=>t,bL:()=>w,gR:()=>$,kJ:()=>V,m0:()=>M,ug:()=>a,v0:()=>S,vl:()=>x,xJ:()=>O,xb:()=>h,yG:()=>C});var n=e(32424),r=e(66360),c=e(30728),o=e(93e3),I=e(788);if(e.j!=477)var u=e(25337);var d=e(79770);const C=32,h=32,i=Q=>{let{comment:N,mode:L,viewport:U}=Q,A;const D=U.scale/100;if(L==="design"){const{x:B,y:j,w:F,h:Y,threadType:X,status:z}=N;X==="point"&&(A={width:C,height:h,left:B*D,top:j*D-(z==="creating"?36:h)}),X==="frame"&&(A={width:F*D,height:Y*D,left:B*D,top:j*D})}else if(L==="preview"){const{w:B,h:j,canvasCid:F,canvasVec2:Y,threadType:X,status:z}=N;if(F&&Y){const{x:Z,y:J}=Y;X==="point"&&(A={width:C,height:h,left:Z*D,top:J*D-(z==="creating"?36:h)}),X==="frame"&&(A={width:B*D,height:j*D,left:Z*D,top:J*D})}}return A},f=240,p=340,s=358,l=(Q,N)=>Q+N+p+f<window.innerWidth,_=(Q,N)=>Q+N+s<window.innerHeight,b=Q=>{var N;let{comment:L,mode:U,viewport:A,recordList:D}=Q,B={width:p};const j=A.scale/100;let{x:F,y:Y}=L||{};const{w:X,threadType:z,canvasCid:Z,canvasVec2:J}=L||{},{left:te=0,top:ge=0}=((N=document.querySelector("#"+U+"-comment-view-container"))==null?void 0:N.getBoundingClientRect())||{};if(U==="preview"&&Z&&J){const{x:Ce,y:me}=J||{};F=Ce,Y=me}const pe=Ce=>{let{left:me,top:be,panelLeft:ie,panelTop:oe,getPanelRight:he,getPanelBottom:ce}=Ce;const re={};return l(me,ie)?re.left=ie:re.right=he(),_(be,oe)?re.top=oe:re.bottom=ce(),re};return z==="point"&&(B={...B,...pe({left:te,top:ge,panelLeft:F*j+38+10,panelTop:Y*j-10,getPanelRight:()=>-(F*j)+10,getPanelBottom:()=>-(Y*j)})}),z==="frame"&&(B={...B,...pe({left:te,top:ge,panelLeft:(F+X)*j+38+10,panelTop:Y*j-10,getPanelRight:()=>-(F+X)*j+10,getPanelBottom:()=>-(Y*j)})}),B},a=Q=>{var N,L;const U=(N=MB.currentOrg)==null?void 0:N.members;let A;return U?A=U.find(D=>D.user_cid===Q.cid)||{}:Q&&Q.cid===((L=MB.user)==null?void 0:L.cid)&&MB.user.name&&(A={name:MB.user.name}),{...Q,...A}};function M(Q){const N=document.elementFromPoint(Q.clientX,Q.clientY);return!N||!N.closest?!1:[".ModalPortal","#mb-toolbar",".comment-panel-container",".emoji-toast",".project-member-list",".comment-anchor",".comment-rect-anchor",".single-resizer"].some(L=>N.closest(L))}function x(Q,N){if(!N)return;const{x:L,y:U,w:A,h:D}=rootSdk.sdkStore.getHotItem(N).hotAttr,B={x:L-A/2,y:U-D/2};return c.Z.subtract(Q,B)}function g(Q,N,L){if(!N)return;const U=document.querySelector('div[data-cid="'+N+'"]').getBoundingClientRect(),A=Vec2.xy(U.x,U.y);return Viewport.applyInverse(L,Vec2.subtract(Q,A))}function S(Q,N,L,U,A){const{scale:D}=L,B=document.querySelector('#preview-content-container div[data-cid="'+N+'"]').getBoundingClientRect();return{x:(Q.x-B.x)/D-U,y:(Q.y-B.y)/D-A}}function t(Q,N,L){const{x:U,y:A,w:D,h:B}=rootSdk.sdkStore.getHotItem(N).hotAttr,j={x:U-D/2,y:A-B/2};return c.Z.add(j,o.L.applyInverse(L,Q))}const v=(Q,N)=>{if(!N)return!1;const{user:L}=window.MB,U=[Q,...Q.comments];let A="";try{const{blocks:B}=N;B&&B.length>0&&(A=B.map(j=>j.text.trim()).join(""))}catch(B){A=""}let D=!0;if(U.length>0){const B=Q.userInfo;if(L.cid!==B.cid){const j=a(B),Y=("\u56DE\u590D@"+((j==null?void 0:j.name)||"\u533F\u540D")+": ").trim();A&&A===Y&&(D=!1)}else!A.trim()&&(D=!1)}else!A.trim()&&(D=!1);return D},w=Q=>{const N=(0,r.HL)(Q);let L="";const U=[];if(!Q)return{content:N,replyUserCid:L,userCids:U};const A=(0,I.Ew)(Q),D=Object.keys(A);return D.length?(D.map(B=>A[B].url).forEach(B=>{B.includes("replyUserCid:")&&(L=B.split("replyUserCid:")[1]),B.includes("userCid:")&&U.push(B.split("userCid:")[1])}),{content:N,replyUserCid:L,userCids:U}):{content:N,userCids:U}},k=Q=>({key:Q,sub:[],sup:"C@main",hotAttr:{type:"cCmtPack",refKey:Q}}),W=(Q,N,L)=>{let{x:U,y:A,w:D,h:B,z:j,userInfo:F,message:Y,canvasCid:X,canvasVec2:z,threadType:Z}=L;return{key:N,sub:[],sup:Q,hotAttr:{type:"cCmtThread",threadType:Z,isCompleted:!1,mtime:null,canvasCid:X,canvasVec2:z,message:Y,x:U,y:A,w:D,h:B,z:j,userInfo:F,userId:F.id,ctime:rootSdk.fssCmt.getClockStore().getMtime()}}},K=(Q,N)=>{let{userInfo:L,message:U}=N;return{key:(0,n.xc)(),sub:[],sup:Q,hotAttr:{type:"cCmtContent",ctime:rootSdk.fssCmt.getClockStore().getMtime(),mtime:null,userInfo:L,userId:L.id,message:U}}},G=Q=>({...Q.hotAttr,cid:Q.key,screenCid:Q.sup,comments:[],rect:{x:Q.hotAttr.x,y:Q.hotAttr.y,w:Q.hotAttr.w,h:Q.hotAttr.h,rotate:Q.hotAttr.rotate||0},vec2:Q.hotAttr.threadType==="point"?{x:Q.hotAttr.x,y:Q.hotAttr.y}:null,status:Q.hotAttr.isCompleted?"checked":"created"}),$=Q=>({...Q.hotAttr,cid:Q.key});function P(Q,N){let L=Q.offsetLeft,U=Q.offsetTop;const A=Q.offsetWidth,D=Q.offsetHeight;let B=Q.offsetParent;for(;B&&B!==N;)L+=B.offsetLeft,U+=B.offsetTop,B=B.offsetParent;return{top:U,left:L,width:A,height:D}}function E(Q,N){const L=Math.atan2(Q.y-N.y,N.x-Q.x),U=(0,u.av)(L,"radian"),A=c.Z.distance(N,Q),D={x:Q.x+A,y:Q.y},B=c.Z.rotate(Q,-U,D);return[Q,B]}function H(Q,N,L,U){return L&&U?[Q,N]:U?E(N,Q).reverse():E(Q,N)}const O=(Q,N)=>{var L;let U=(0,d.Tg)(Q,N)||"";return(L=sdkStore.getHotItem(U))!=null&&L.hotAttr.asOverlay&&(U=""),U},V=(Q,N)=>{var L;let U=(0,d.TW)(Q,N)||"";return(L=sdkStore.getHotItem(U))!=null&&L.hotAttr.asOverlay&&(U=""),U}},21677:(He,ee,e)=>{"use strict";e.d(ee,{Z:()=>c});var n=e(32709),r=e(5209);const c=function(o,I){I===void 0&&(I=""),!(!n.Hy[o]||!r.kH)&&(0,r.kH)("ai_open",{source:I||n.Hy[o]})}},21856:(He,ee,e)=>{"use strict";e.d(ee,{Ar:()=>B,CB:()=>K,D7:()=>k,Dl:()=>t,F6:()=>V,OV:()=>$,Q5:()=>v,WO:()=>x,Z_:()=>W,Zb:()=>S,_W:()=>g,dk:()=>w,gs:()=>N,hf:()=>Q,rB:()=>j,rq:()=>O,tu:()=>P});var n=e(70093),r=e.n(n),c=e(33254),o=e.n(c),I=e(80313),u=e(76805),d=e(42459),C=e(32424),h=e(29158),i=e(74222),f=e(57170),p=e(14166),s=e(70248),l=e(76613),_=e(20089),b=e(93e3),a=e(63763),M=e(73658);const x=(F,Y)=>{const X=b.L.applyInverse(F,{x:Y-window.innerWidth/2,y:-F.size.h/2}),z=b.L.applyInverse(F,{x:Y-window.innerWidth/2+F.size.w,y:F.size.h/2});return[X.x,X.y,z.x,z.y]},g=(F,Y,X)=>{const z=x(F,Y);return(0,p.Pn)(z,X)},S=(F,Y,X)=>{const z=x(F,Y);return(0,p.cj)(z,X)},t=(F,Y)=>b.L.applyInverse(F,{x:Y-window.innerWidth/2+F.size.w/2,y:0}),v=(F,Y)=>sdkStore.getHotItem(Y).sub.reduce((X,z)=>{if(sdkStore.getHotItem(z).hotAttr.type!=="rResBunch"){const J=sdkStore.getHotAABB(z);if(J[0]>F)return X.concat([J])}return X},[]).sort((X,z)=>X[0]-z[0]).shift(),w=function(F,Y){return Y===void 0&&(Y=sdkStore),F.reduce((z,Z,J)=>Y.isTrashed(Z)?z:J!==0?r()(z,Y.findUpHotItemList(Z).filter(te=>!(0,s.OO)(te.key)).map(te=>te.key).slice(1)):Y.findUpHotItemList(Z).filter(te=>!(0,s.OO)(te.key)).map(te=>te.key).slice(1),[])[0]},k=function(F,Y,X){X===void 0&&(X=sdkStore),F.forEach(z=>{X.changeRndSup(z,Y)})},W=function(F,Y){return Y===void 0&&(Y=sdkStore),Y.getSubHotItemList(F).reduce((X,z)=>{let{hotAttr:{type:Z,zIndex:J}}=z;return _.Q.ALWAYS_ON_TOP_NAMES.includes(Z)?X:Math.max(X,J)},0)},K=function(F,Y,X){X===void 0&&(X=sdkStore);const z=[],Z=[];return F.sort((J,te)=>X.getHotItem(J).hotAttr.zIndex-X.getHotItem(te).hotAttr.zIndex).forEach(J=>{const{zIndex:te}=sdkStore.getHotItem(J).hotAttr;te>Y?Z.push(J):z.push(J)}),{lowZIndexItemsKeyList:z,highZIndexItemsKeyList:Z}},G=function(F,Y,X){X===void 0&&(X=sdkStore);const z=[],Z=[];return F.sort((J,te)=>X.getHotItem(J).hotAttr.order-X.getHotItem(te).hotAttr.order).forEach(J=>{const{order:te}=sdkStore.getHotItem(J).hotAttr;te>Y?Z.push(J):z.push(J)}),{lowZIndexItemsKeyList:z,highZIndexItemsKeyList:Z}},$=function(F,Y,X){X===void 0&&(X=sdkStore);let z=W(Y,X);F.sort((Z,J)=>X.getHotItem(Z).hotAttr.zIndex-X.getHotItem(J).hotAttr.zIndex).forEach(Z=>{_.Q.ALWAYS_ON_TOP_NAMES.includes(X.getHotItem(Z).hotAttr.type)||X.updateHotAttrKV(Z,"zIndex",++z)})},P=function(F,Y,X){X===void 0&&(X=sdkStore);let z=X.getSubHotItemList(Y).filter(Z=>{const J=Z.hotAttr.type;return J!==_.x.WSticky&&J!==_.x.WTear&&!F.includes(Z.key)}).reduce((Z,J)=>J.hotAttr.order>Z?J.hotAttr.order:Z,0);F.sort((Z,J)=>X.getHotItem(Z).hotAttr.order-X.getHotItem(J).hotAttr.order).forEach(Z=>{X.updateHotAttrKV(Z,"order",++z)})},E=/(\s\d+)?$/,H=/(\sCopy(\s\d+)?)?$/,O=function(F,Y,X,z){X===void 0&&(X=sdkStore),z===void 0&&(z=!1),F.forEach(Z=>{const J=X.getHotItem(Z),te=J.hotAttr.name;if(te==="")return;const ge=J.hotAttr.type,pe=X.getSubHotItemList(Y).filter(Ce=>Ce.hotAttr.type===ge);if(ge===_.x.Canvas&&!z){const Ce=te.replace(E,""),me=pe.reduce((be,ie)=>{const oe=new RegExp("^"+o()(ie.hotAttr.name).replace(E,"")+"(\\s\\d+)?$").exec(ie.hotAttr.name);if(oe){const he=Number(oe[1]||0);return he>be?he:be}return be},0);X.updateHotAttrKV(Z,"name",Ce+" "+(me+1))}else{const Ce=te.replace(H," Copy"),me=pe.reduce((be,ie)=>{const oe=new RegExp("^"+o()(Ce)+"(\\s\\d+)?$").exec(ie.hotAttr.name);if(oe){var he;const ce=Number(oe[1]);return(he=ce>be)!=null&&he?ce:be}return be},0);X.updateHotAttrKV(Z,"name",Ce+" "+(me+1))}})},V=function(F,Y,X,z){Y===void 0&&(Y=sdkStore),X===void 0&&(X={x:0,y:0}),z===void 0&&(z=!0);const Z=A(F,Y);for(const te of F){const ge=Y.getHotItem(te);switch(ge.hotAttr.type){case _.x.WElbow:{const pe=Z.has(ge.hotAttr.refFromKey)?ge.hotAttr.refFromKey:"",Ce=Z.has(ge.hotAttr.refToKey)?ge.hotAttr.refToKey:"",me={...ge,hotAttr:{...ge.hotAttr,refFromKey:pe,refToKey:Ce}};Y.updateHotItem(me);break}case _.x.WSticky:{const pe=Z.has(ge.hotAttr.refWCKey)?ge.hotAttr.refWCKey:"";let Ce=ge.hotAttr.sticky.point;if(pe===""){var J;if(z)Ce=[];else if(Ce&&(J=Ce)!=null&&J.length)if(ge.hotAttr.refWCKey)Ce=[];else{const[be,ie]=Ce;Ce=[be+X.x,ie+X.y]}}const me={...ge,hotAttr:{...ge.hotAttr,sticky:{...ge.hotAttr.sticky,point:Ce},refWCKey:pe}};Y.updateHotItem(me);break}case _.x.WTear:{const pe=Z.has(ge.hotAttr.refWCKey)?ge.hotAttr.refWCKey:"",Ce={...ge,hotAttr:{...ge.hotAttr,refWCKey:pe}};Y.updateHotItem(Ce);break}default:break}}},Q=(F,Y,X)=>{const z=sdkStore.findAllTypeUnderNoSubPage(Y,_.x.WSticky),Z=sdkStore.findAllTypeUnderNoSubPage(Y,_.x.WTear),J=[],te=ge=>{z.filter(me=>me.hotAttr.refWCKey===ge).forEach(me=>{const be={key:me.key,hotAttr:{sticky:{point:[]},refWCKey:""}};J.push(be)}),Z.filter(me=>me.hotAttr.refWCKey===ge).forEach(me=>{const be={key:me.key,hotAttr:{refWCKey:""}};J.push(be)})};for(const ge of F)te(ge),sdkStore.walkHotItemSubtree(ge,pe=>{te(pe.key)});X({type:"entry:widget:change",payload:{flatChgList:J}})},N=function(F,Y,X){X===void 0&&(X=sdkStore);const z=new Set(Y),Z=X.getSubHotItemList(F).filter(pe=>{var Ce;return!z.has(pe.key)&&(((Ce=pe.hotAttr)==null?void 0:Ce.type)===_.x.WTear||pe.hotAttr.type===_.x.WSticky)}).sort((pe,Ce)=>pe.hotAttr.order-Ce.hotAttr.order),J=[];let te=Z.length;Z.forEach((pe,Ce)=>{J.push({...pe,hotAttr:{...pe.hotAttr,order:Ce+1,zIndex:a.Mh+Ce+1}})});const ge=[];Y.forEach(pe=>{const Ce=X.getHotItem(pe);(0,M.yT)(Ce.hotAttr.type)&&(te+=1,ge.push({...Ce,hotAttr:{...Ce.hotAttr,order:te,zIndex:a.Mh+te}}))}),X.updateHotItemBatch([...J,...ge])},L=(F,Y)=>{const X=[];return U(Y.getHotItem(F),Y,z=>{if(!z)return[];X.push(z.sub)}),X.flat()},U=(F,Y,X)=>{var z;const Z=[],J=X(F);return J&&Z.push(J),F==null||(z=F.sub)==null||z.forEach(te=>{Z.push(...U(Y.getHotItem(te),Y,X))}),Z},A=(F,Y)=>{const X=F.map(z=>{const Z=L(z,Y);return[z,...Z]}).flat(1/0);return new Set(X)},D=(F,Y,X,z)=>{if(Y){if(F.name==="link"&&(F.link_type===Link.TYPE.screen_link&&!X.has(F.target_cid)||F.link_type===Link.TYPE.state_link&&STATE_LINK_VALID_VALUE.find(Z=>Z===F.targetstate_cid)===void 0&&!z.has(F.targetstate_cid)))return!1}else if(F.name==="link"&&F.link_type===Link.TYPE.screen_link&&F.target_cid===MB.getCurrentScreen().cid)return!1;return!0},B=F=>{let Y=[...F];const X=new Map;for(const z of Y){const Z=sdkStore.getHotItem(z);if(!Z)continue;const J=sdkStore.getHotItem(Z.sup);if(!J||J.hotAttr.type!=="wWrap")continue;const te=X.get(J.key);te===void 0?X.set(J.key,[z]):te.push(z)}for(const[z,Z]of X)sdkStore.getHotItem(z).sub.length===Z.length&&(Y=Y.filter(J=>!Z.includes(J)),Y.push(z));return Y},j=async(F,Y)=>{var X,z,Z;if(!Y)return F;MB.safeLoading&&MB.safeLoading(I18N.dUtils.image_progress_in);const J=JSON.parse(Y);if(J.length===0)return MB.safeLoading&&MB.safeLoading(!1),F;const{contentFlatTree:te}=sdkStore.parseSubtree(F),ge="project_image",pe="",Ce=((X=MB)==null||(X=X.currentOrg)==null?void 0:X.cid)||"",me=(z=MB)==null?void 0:z.user.id,be=((Z=MB)==null||(Z=Z.getRootProject())==null?void 0:Z.cid)||"",ie=(oe,he)=>{te.delete(he);const ce=te.get(i.JC);if(ce){te.set(i.JC,{...ce,sub:(0,d.Uj)(ce.sub,he)});for(const re of oe){const fe=te.get(re);if(!fe)continue;const Se=(0,f.Op)(fe.attr),Me={...Se,image:{...Se.image,imageRef:""},fill:{fill:"solid",fillIsVisible:!0,solidColor:3857048832}};te.set(re,{...fe,attr:(0,f.II)(Me)})}}};return await(0,u.t_)(6,J.map(oe=>async()=>{try{const{keyList:he,extImageKey:ce,image:re,name:fe}=oe;if(!re)return ie(he,ce);const Se=(0,C.xc)(),Me=te.get(ce);if(!Me)return;const Ie=await new Promise((je,We)=>{const Ae=new Image;Ae.onerror=()=>We(new Error(I18N.dUtils.unsupported)),Ae.onload=()=>je(Ae),Ae.src=re});if(!Ie)return;const de=Ie.width,xe=Ie.height;let Le="/mb-sigma/static/images/broken.png";const ve=await fetch(re).then(je=>je.blob());try{Le=(await(await(0,I.m)("/nodekiq/process-asset-image",{credentials:"same-origin",method:"POST",headers:{"mb-asset-name":fe,"mb-asset-cid":Se,"mb-asset-type":ge,"mb-asset-group-cid":pe,"mb-project-cid":be,"mb-asset-width":de,"mb-asset-height":xe,"mb-user-id":me,"mb-org-cid":Ce},body:ve,timeout:6e5})).json()).image,Me.attr.eD=Le;for(const Ae of he){const we=te.get(Ae);if(!we)return;const _e=(0,f.Op)(we.attr),Te={..._e,image:{..._e.image,imageRectOriginalWidth:de,imageRectOriginalHeight:xe,..._e.image.imageFillType==="fill"?{imageRectHeight:_e.image.imageRectWidth*(xe/de)}:{imageRectWidth:_e.image.imageRectHeight*(de/xe)},imageRectAspect:de/xe}};te.set(Ae,{...we,attr:(0,f.II)(Te)})}}catch(je){console.error(je)}}catch(he){console.error(he)}})),MB.safeLoading&&MB.safeLoading(!1),(0,h.zW)(te)}},22835:(He,ee,e)=>{"use strict";e.d(ee,{Fw:()=>u,H1:()=>C,RF:()=>f,cL:()=>h,fl:()=>i,hw:()=>d,u5:()=>c,yA:()=>I});var n=e(21856),r=e(44229);const c=p=>{let{width:s,height:l,scale:_}=p;const b=_/100,a=document.querySelector("#canvas").getBoundingClientRect(),M=document.querySelector(".mb-viewport").getBoundingClientRect(),x={x:(M.left+M.right)/2,y:(M.top+M.bottom)/2},g={x:(x.x-a.left)/b,y:(x.y-a.top)/b};return{top:Math.round(g.y-l/2),left:Math.round(g.x-s/2)}},o=(p,s)=>{const l=document.querySelector(p);if(!l)return;const _=l.querySelector('[data-cid="'+s+'"]')||l.querySelector('[data-interactive-target-key="'+s+'"]');if(!_)return;const{height:b,top:a}=l.getBoundingClientRect(),M=_.getBoundingClientRect(),x=M.top-a>=b,g=M.top<a;(x||g)&&(l.scrollTop+=M.top-a)},I=(0,r.hb)((p,s)=>{if(!s||!p)return;const l=p.querySelector('.rn-content-item[data-cid="'+s+'"]');if(!l)return;const{height:_,top:b}=p.getBoundingClientRect(),a=l.getBoundingClientRect(),M=a.top-b>=_,x=a.top<b;(M||x)&&(p.scrollTop+=a.top-b)},{timeout:500}),u=(p,s,l)=>{let{width:_,height:b,scale:a}=s,{top:M}=c({width:_,height:b,scale:a});l.length!==0&&(M=sdkStore.getHotKeyListAABB(l.map(t=>t.key))[1]);const x=p.sort((t,v)=>v.hotAttr.x+v.hotAttr.w/2-(t.hotAttr.x+t.hotAttr.w/2)),{hotAttr:{x:g=0,w:S=0}={}}=x[0]||{};return{left:g+S/2+50,top:M}},d=(p,s,l)=>{const _=sdkStore.getHotKeyListAABB(l.map(x=>x.key));let b=_[2],a=(0,n.Q5)(b,p),M;for(;;){if(!a||a[0]>b+s+50){M={x:b+50,y:_[1]};break}b=a[2],a=(0,n.Q5)(b,p)}return{left:M.x,top:M.y}},C=p=>o("#mobile-screen-tree",p),h=p=>o(".mb-preview-page .canvas-scroll-list",p),i=p=>o(".screen-list-container",p),f=p=>o(".mb-design-page #screen-scroll-list",p)},23033:(He,ee,e)=>{"use strict";e.d(ee,{f5:()=>l,os:()=>_,qM:()=>b,rj:()=>s});var n=e(56193),r=e(67787),c=e(38502),o=e(70768),I=e(86200),u=e(77814);if(e.j==907)var d=e(19249);if(e.j==907)var C=e(47163);var h=e(25306),i=e(72214);const f=document.getElementById("workspace"),p=(0,r.Ay)(n.A).withConfig({displayName:"utils__CustomizedCrashedPageStyle",componentId:"sc-1m050bu-0"})([".btn-list{display:flex;flex-direction:row-reverse;justify-content:center;.primary{margin-left:20px;}.regular{margin-left:0 !important;}}"]),s=(a,M,x)=>{(0,o.createRoot)(f).render((0,i.jsx)(p,{locale:(0,C.w)(),errorType:a.status||401,customTitle:M,customDes:x}))},l=async a=>{var M;let x,g,S,t,v;try{({user:v}=await(0,d.DE)("/api/web/v3/initial"))}catch(k){console.warn("[crashedPageWithUser]",k);const W=ENV.IS_MO?u.A:I.A,K=document.getElementById("IBOT_MODAL_ROOT"),G=(0,o.createRoot)(K);G.render((0,i.jsx)(W,{isOpen:!1,source:"proto-org-preview",onConfirm:()=>location.reload()},Math.random())),x=()=>{G.render((0,i.jsx)(W,{isOpen:!0,type:"signin",source:"proto-org-preview",onConfirm:()=>location.reload()},Math.random()))},g=I18N.Common.signin,t=()=>{G.render((0,i.jsx)(W,{isOpen:!0,type:"signup",source:"proto-org-preview",onConfirm:()=>location.reload()},Math.random()))},S=I18N.Common.signup,v={}}(0,o.createRoot)(f).render((0,i.jsx)(i.Fragment,{children:(0,i.jsx)(p,{locale:(0,C.w)(),errorType:a.status||401,identity:1,account:(M=v)==null?void 0:M.email,primaryBtnText:g,primaryBtnClick:x,secondaryBtnText:S,secondaryBtnClick:t})}))},_=(a,M)=>{if((0,h.Gq)()){(0,h.Z0)({event:h.Q8.goBack});return}let x="";a==="zh-CN"?x="/":a==="jp"?x="https://mockitt.wondershare.jp":x="https://mockitt.wondershare.com",location.replace(x)},b=()=>{const a=new URL(location.href);a.searchParams.set("screen",""),a.searchParams.set("canvasId",""),location.href=""+a}},23108:(He,ee,e)=>{"use strict";e.d(ee,{P:()=>h});var n=e(38502),r=e(83199),c=e(17307),o=e(56202),I=e(67787);const u=I.Ay.div.withConfig({displayName:"styles__StyledIconTips",componentId:"sc-1it9kzs-0"})(["display:flex;align-items:center;justify-content:center;flex-direction:row;.shortfont{color:#c8cdd0;margin-left:10px;white-space:nowrap;kbd{display:inline-block;text-align:center;min-width:12px;}}"]);var d=e(72214);const C=i=>{const{iconClassName:f,name:p,onClick:s,content:l,direction:_="down",hotKeyText:b,iconProps:a}=i,M=(0,n.useRef)(null),x=w=>{s&&s(w)},S={down:"bottom",up:"top",left:"left",right:"right"}[_]||_,t=b&&b.length>0&&((0,o.cX)()?b.filter(w=>w!=="+"):b),v=()=>(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(u,{children:[l,t&&t.length>0&&(0,d.jsx)("div",{className:"shortfont",children:t.map((w,k)=>(0,d.jsx)("kbd",{children:w},k))})]})});return(0,d.jsx)(r.A,{content:v(),direction:S,children:(0,d.jsx)("a",{className:f,ref:M,onClick:x,children:(0,d.jsx)(c.C,{...a,name:p})})})},h=i=>(0,d.jsx)(r.A,{component:(0,d.jsx)(C,{...i})})},23314:(He,ee,e)=>{"use strict";e.d(ee,{F2:()=>a,GN:()=>x,Jv:()=>M,b2:()=>p,f7:()=>f});var n=e(14166),r=e(20089),c=e(13537),o=e(63966);if(e.j!=477)var I=e(5379);var u=e(33848),d=e(21191),C=e(79770),h=e(50060),i=e(59025);const f=function(g,S,t){t===void 0&&(t=sdkStore);const{hotAttr:{refFromKey:v,refToKey:w}}=t.getHotItem(g),{isRefFromExist:k,isRefToExist:W}=(0,I.v)(g,v,w);k&&W&&S.push(_(g,t))},p=g=>{var S;const t=g[0];if(t===void 0)return[];if(!((S=MB.getCurrentScreen())==null?void 0:S.cid))return[];const{hotAttr:{x:w,y:k,w:W,h:K,r:G},notTriggerAttachedUpdate:$}=t;if($)return[];if(!(w!==void 0||k!==void 0||W!==void 0||K!==void 0||G!==void 0))return[];const P=new Set(g.map(N=>N.key)),E=new Set,H=new Set,O=[];for(const{key:N}of g){const L=sdkStore.getHotItem(N);if(!L)continue;const{hotAttr:{type:U}}=L;U===r.x.WElbow?H.add(N):U===r.x.WWrap&&sdkStore.walkHotItemSubtree2(N,A=>{A.hotAttr.type===r.x.WElbow&&E.add(A.key)})}(0,h.vC)(Array.from(P),N=>{var L;const U=((L=sdkStore.getHotItem(N))==null?void 0:L.hotAttr.type)===r.x.WElbow;return U&&E.add(N),U});for(const N of E)b(N,O);for(const N of H)s(N,P,O);const V=new Map;for(const N of O){const L=N.key,U=V.get(L);U?U.push(N):V.set(L,[N])}const Q=[];for(const N of V.values()){const L=N.at(-1);Q.push(L)}return sdkStore.updateHotItemBatch(Q),Q.map(N=>({...N.hotAttr,cid:N.key,key:N.key,sup:N.sup,sub:N.sub}))},s=(g,S,t)=>{const{hotAttr:{refFromKey:v,refToKey:w}}=sdkStore.getHotItem(g);if(S.has(v)||S.has(w))return;const{isRefFromExist:k,isRefToExist:W}=(0,I.v)(g,v,w);k?t.push(l(g,"start")):W&&t.push(l(g,"end"))},l=(g,S)=>{const{hotAttr:t,sup:v}=sdkStore.getHotItem(g);if(S==="start"){const w=sdkStore.getRelocateLocalBound(t.refFromKey,v);return M({elbowKey:g,bound:w,direction:t.elbow.fromDirection,refKey:t.refFromKey,moveAnchor:"start"})}else{const w=sdkStore.getRelocateLocalBound(t.refToKey,v);return M({elbowKey:g,bound:w,direction:t.elbow.toDirection,refKey:t.refToKey,moveAnchor:"end"})}},_=function(g,S){S===void 0&&(S=sdkStore);const{hotAttr:{refFromKey:t,refToKey:v,elbow:{fromDirection:w,toDirection:k,elbowType:W,middleIsAdjusted:K,dPathList:G}},sup:$}=S.getHotItem(g),{sup:P}=S.getHotItem(t),{sup:E}=S.getHotItem(v);let H,O,V=$;if(P===E)V=P,H=S.getLocalBound(t),O=S.getLocalBound(v);else{const L=MB.getCurrentScreen().cid;if(P===L||E===L)V=L,H=S.getHotBound(t),O=S.getHotBound(v);else{const U=S.locUpHotCanvasKey(t),A=S.locUpHotCanvasKey(v);if(U!==void 0&&U===A){const D=(0,i.t$)(t,r.x.WWrap).map(Y=>Y.key),B=(0,i.t$)(v,r.x.WWrap).map(Y=>Y.key);V=(0,i.t$)(g,r.x.WWrap).map(Y=>Y.key).find(Y=>B.includes(Y)&&D.includes(Y))||U,H=S.getRelocateLocalBound(t,V),O=S.getRelocateLocalBound(v,V)}else V=L,H=S.getHotBound(t),O=S.getHotBound(v)}}const Q=M({elbowKey:g,bound:H,direction:w,refKey:t,moveAnchor:"start"},S),N=(0,d.Us)();if(W==="curve"){S.updateHotItem(Q);const L=M({elbowKey:g,bound:O,direction:k,refKey:v,moveAnchor:"end",elbow:Q},S);if(V!==$)if(K){const U={x:G[1].x-G[2].x,y:G[1].y-G[2].y},A=L.hotAttr.elbow.dPathList[2],D={x:U.x+A.x,y:U.y+A.y},B=JSON.parse(JSON.stringify(L.hotAttr.elbow.dPathList));B[1].x=D.x,B[1].y=D.y;const{x:j,y:F,r:Y}=S.getRelocateLocalXYR(g,V);return{...L,sup:V,hotAttr:{...L.hotAttr,x:j,y:F,r:Y,zIndex:N(g,V),elbow:{...L.hotAttr.elbow,dPathList:B}}}}else{const{x:U,y:A,r:D}=S.getRelocateLocalXYR(g,V);return{...L,sup:V,hotAttr:{...L.hotAttr,x:U,y:A,r:D,zIndex:N(g,V)}}}else return L.sup=V,L}else{const L=M({elbowKey:g,bound:O,direction:k,refKey:v,moveAnchor:"end",elbow:Q},S);return L.sup=V,V!==$&&(L.hotAttr.zIndex=N(g,V)),L}},b=function(g,S,t){t===void 0&&(t=sdkStore);const{hotAttr:{refFromKey:v,refToKey:w,elbow:{fromDirection:k,toDirection:W,dPathList:K}},sup:G}=t.getHotItem(g),{isRefFromExist:$,isRefToExist:P}=(0,I.v)(g,v,w),E=MB.getCurrentScreen().cid,H=t.getHotAABB(g),O={x:.5*(H[0]+H[2]),y:.5*(H[1]+H[3])},V={x:H[0],y:H[1]},Q=(0,u.Ui)(V,[K[0]])[0],N=(0,u.Ui)(V,[K[K.length-1]])[0],L=(0,C.Tg)(Q,E),U=(0,C.Tg)(N,E),A=(0,d.Us)(t);if($&&P){const B=_(g,t),j=(0,d.G9)(E,[],t),F={x:B.hotAttr.x,y:B.hotAttr.y},Y=(0,d.fW)(g,E,j,t);let X=B;if(B.sup!==Y){var D;const z=t.getHotAABB(v),Z=t.getHotAABB(w),J=((D=t.getHotItem(w))==null?void 0:D.hotAttr.type)===r.x.Canvas;(0,n.Pn)(J?Z:z,J?z:Z)&&(X={...B,sup:Y,hotAttr:{...B.hotAttr,...t.toAttrXY(F,g,Y),zIndex:A(g,Y)}})}S.push(X)}else if($){const B=t.getRelocateLocalBound(v,G);let j=M({elbowKey:g,bound:B,direction:k,refKey:v,moveAnchor:"start"},t);const F=t.locUpHotCanvasKey(v)||E,Y=t.locUpHotCanvasKey(G)||E,X=(0,i.t$)(v,r.x.WWrap).map(ge=>ge.key),Z=(0,i.t$)(g,r.x.WWrap).map(ge=>ge.key).find(ge=>X.includes(ge)),te=Z&&Y===F?Z:F===U?F:E;G!==te&&(j={...j,sup:te,hotAttr:{...j.hotAttr,...t.toAttrXY(O,g,te),zIndex:A(g,te)}}),S.push(j)}else if(P){const B=t.getRelocateLocalBound(w,G);let j=M({elbowKey:g,bound:B,direction:W,refKey:w,moveAnchor:"end"},t);const F=t.locUpHotCanvasKey(w)||E,Y=t.locUpHotCanvasKey(G)||E,X=(0,i.t$)(w,r.x.WWrap).map(ge=>ge.key),Z=(0,i.t$)(g,r.x.WWrap).map(ge=>ge.key).find(ge=>X.includes(ge)),te=Z&&Y===F?Z:F===L?F:E;G!==te&&(j={...j,sup:te,hotAttr:{...j.hotAttr,...t.toAttrXY(O,g,te),zIndex:A(g,te)}}),S.push(j)}},a=(g,S)=>{const t=[],{sup:v,hotAttr:{refFromKey:w,refToKey:k,elbow:{fromDirection:W,toDirection:K}}}=sdkStore.getHotItem(g);if(v!==S){const{isRefFromExist:G,isRefToExist:$}=(0,I.v)(g,w,k);if(G&&$)t.push(_(g)),sdkStore.updateHotItemBatch(t);else if(G){const{sup:P}=sdkStore.getHotItem(w);if(P!==v){if(P===S){const E=sdkStore.getLocalBound(w);sdkStore.changeRndSup(g,S);const H=M({elbowKey:g,bound:E,direction:W,refKey:w,moveAnchor:"start"});sdkStore.updateHotItem(H)}}}else if($){const{sup:P}=sdkStore.getHotItem(k);if(P!==v){if(P===S){const E=sdkStore.getLocalBound(k);sdkStore.changeRndSup(g,S);const H=M({elbowKey:g,bound:E,direction:K,refKey:k,moveAnchor:"end"});sdkStore.updateHotItem(H)}}}else{const P=sdkStore.getHotAABB(g),E=sdkStore.getHotAABB(S);(0,n.Pn)(E,P)&&sdkStore.changeRndSup(g,S)}}},M=function(g,S){let{elbowKey:t,bound:v,moveAnchor:w,direction:k,refKey:W,elbow:K}=g;S===void 0&&(S=sdkStore);const $=S.getHotItem(t).hotAttr.elbow.elbowType==="curve"?S.getHotBound(W):v,P=(0,c.Nj)($,k);if(P===void 0)return K;const E={elbowKey:t,moveAnchor:w,worldPos:P,refKey:W,direction:k,isUpdateByRef:!0};return(0,o.b)(E,K)},x=(g,S)=>{const{sup:t,hotAttr:{elbow:v}}=sdkStore.getHotItem(g),{hotAttr:{type:w}}=sdkStore.getHotItem(t),{x:k,y:W}=S;let K={x:k,y:W},G=!1,$;return[r.x.Canvas,r.x.WWrap,r.x.WBasket].includes(w)&&v.elbowType!=="curve"&&(K=sdkStore.toAttrXY(S,"",t),G=!0,$=t),{realPos:K,updated:G,offsetSup:$}}},23422:(He,ee,e)=>{"use strict";e.d(ee,{SP:()=>xa,I$:()=>De});var n=e(95549),r=e(38502),c=e(67787),o=e(69623);const I=(ne,ae)=>{if(ne===ae)return!0;if(ne.length!==ae.length)return!1;for(let ye=0,Ee=ne.length;ye<Ee;ye++)if(ne[ye]!==ae[ye])return!1;return!0},u=ne=>{let ae=null,ye=null;return function(){for(var Ee=arguments.length,Pe=new Array(Ee),Ze=0;Ze<Ee;Ze++)Pe[Ze]=arguments[Ze];return(!ye||!I(ye,Pe))&&(ae=ne.apply(null,Pe),ye=Pe),ae}};var d=e(14073),C=e(41589),h=e.n(C),i=e(53732),f=e.n(i),p=e(25582),s=e.n(p),l=e(39e3),_=e(28322),b=e.n(_),a=e(89775),M=e.n(a),x=e(63986),g=e.n(x),S=e(37862),t=e.n(S),v=e(74937),w=e.n(v),k=e(41391),W=e.n(k),K=e(18250),G=e(3367),$=e.n(G),P=e(69173),E=e.n(P),H='<svg width="6" height="4" viewBox="0 0 6 4"><path d="M3 0l3 4H0"></path></svg>',O='<svg viewBox="0 0 8 3"><path d="M4.654.233L8 3H0L3.383.23c.37-.303.902-.302 1.27.003z" /></svg>',V='<svg width="27" height="8"><path d="M15.069 6.66a3.27 3.27 0 0 1-3.13 0L0 0h27.008l-11.94 6.66z" /></svg>',Q='<svg width="16" height="16"><path d="M8 6.945L6.218 5.163a.688.688 0 0 0-.973.972l1.783 1.782L5.245 9.7a.688.688 0 0 0 .973.972L8 8.89l1.782 1.782a.688.688 0 0 0 .973-.972L8.972 7.917l1.783-1.782a.688.688 0 0 0-.973-.972L8 6.945zm-5.185 6.24a7.333 7.333 0 1 1 10.37-10.37 7.333 7.333 0 0 1-10.37 10.37z"/></svg>',N=Object.freeze({__proto__:null,INPUT_ARROW:H,DROPDOWN_ARROW:O,GUIDE_ARROW:V,CLOSE_FILLED:Q});function L(ne,ae,ye){return ae in ne?Object.defineProperty(ne,ae,{value:ye,enumerable:!0,configurable:!0,writable:!0}):ne[ae]=ye,ne}function U(ne,ae){return B(ne)||D(ne,ae)||Y(ne,ae)||A()}function A(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function D(ne,ae){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(ne)))){var ye=[],Ee=!0,Pe=!1,Ze=void 0;try{for(var Ct=ne[Symbol.iterator](),wt;!(Ee=(wt=Ct.next()).done)&&(ye.push(wt.value),!(ae&&ye.length===ae));Ee=!0);}catch(Mt){Pe=!0,Ze=Mt}finally{try{!Ee&&Ct.return!=null&&Ct.return()}finally{if(Pe)throw Ze}}return ye}}function B(ne){if(Array.isArray(ne))return ne}function j(ne){return z(ne)||X(ne)||Y(ne)||F()}function F(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Y(ne,ae){if(ne){if(typeof ne=="string")return Z(ne,ae);var ye=Object.prototype.toString.call(ne).slice(8,-1);if(ye==="Object"&&ne.constructor&&(ye=ne.constructor.name),ye==="Map"||ye==="Set")return Array.from(ne);if(ye==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ye))return Z(ne,ae)}}function X(ne){if(typeof Symbol<"u"&&Symbol.iterator in Object(ne))return Array.from(ne)}function z(ne){if(Array.isArray(ne))return Z(ne)}function Z(ne,ae){(ae==null||ae>ne.length)&&(ae=ne.length);for(var ye=0,Ee=new Array(ae);ye<ae;ye++)Ee[ye]=ne[ye];return Ee}var J=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z0-9-]{2,63}$/i,te={OPEN_MODAL_STACK:[]};function ge(ne){return te.OPEN_MODAL_STACK.indexOf(ne)}function pe(){var ne=te.OPEN_MODAL_STACK;return ne.length===0||ne.every(function(ae){return!ae.state.isOpen})}function Ce(ne){return Object.assign(te,{OPEN_MODAL_STACK:[ne].concat(j(te.OPEN_MODAL_STACK))})}function me(ne){return Object.assign(te,{OPEN_MODAL_STACK:te.OPEN_MODAL_STACK.filter(function(ae){return ae!==ne})})}function be(ne){return $()(ne).join(" ")}function ie(ne,ae){var ye=ne.propTypes,Ee=ye===void 0?{}:ye,Pe=Object.keys(Ee);return Object.entries(ae).reduce(function(Ze,Ct){var wt=U(Ct,2),Mt=wt[0],Vt=wt[1];return Pe.includes(Mt)?Ze:Object.assign(Ze,L({},Mt,Vt))},{})}function oe(ne){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;return ae.querySelector(ne)}function he(ne){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;return Array.from(ae.querySelectorAll(ne))}function ce(ne,ae){var ye=Object.assign(document.createElement("div"),{className:ae});return ne.appendChild(ye),ye}function re(ne){!ne||!(ne instanceof Element)||ne.addEventListener("wheel",function(ae){var ye=ne.scrollTop,Ee=ne.scrollHeight,Pe=ne.getBoundingClientRect(),Ze=Pe.height,Ct=ae.deltaY*-1,wt=Ct>0,Mt=function(){return ae.stopPropagation(),ae.preventDefault(),!1};if(!wt&&-Ct>Ee-Ze-ye)return ne.scrollTop=Ee,Mt();if(wt&&Ct>ye)return ne.scrollTop=0,Mt()})}function fe(ne){var ae=document.documentElement,ye=document.body,Ee=oe(".ContentRoot"),Pe=window,Ze=Pe.innerWidth,Ct=Pe.scrollX,wt=Pe.scrollY,Mt=isBoolean(ne)?ne:ye.classList.toggle("is-content-fixed");return isBoolean(ne)&&ye.classList[ne?"add":"remove"]("is-content-fixed"),Ee&&(Mt?(Ee.style.left="-".concat(Ct,"px"),Ee.style.top="-".concat(wt,"px"),window.scrollTo(Math.max((ae.scrollWidth-Ze)/2,0),0)):window.scrollTo(Math.abs(parseInt(Ee.style.left,10)),Math.abs(parseInt(Ee.style.top,10)))),Mt}function Se(ne,ae){return isString(ne)||isNumber(ne)||isValidElement(ne)?ne:ne[ae||"label"]?ne[ae||"label"]:void 0}function Me(ne){return isString(ne)||isNumber(ne)?String(ne):ne.value||ne.label?String(ne.value||ne.label):void 0}function Ie(ne){return new Set(Array.from(ne||[]).map(String))}function de(ne,ae){return!!ae&&Me(ne)===String(ae)}function xe(ne,ae){return Ie(ae).has(Me(ne))}function Le(ne){return ne!==""&&isNumber(Number(ne))?Number(ne):""}function ve(){var ne=We(["\n &.TipBase {\n position: fixed;\n z-index: 1200;\n pointer-events: none;\n }\n .Tip {\n position: absolute;\n padding: 0.33em 0.5em;\n font-size: 12px;\n line-height: 1.4;\n pointer-events: none;\n speak: none;\n transition-property: opacity, transform;\n transition-duration: 0.15s;\n user-select: none;\n filter: opacity(0.8);\n &.arrowed {\n padding: 0.33em 0.75em;\n }\n & > .arrow {\n position: absolute;\n z-index: 10;\n display: block;\n font-size: 14px;\n line-height: 0;\n svg {\n width: 1em;\n height: 0.375em;\n fill: #415058;\n }\n }\n &:not(.is-open) {\n opacity: 0 !important;\n }\n &.is-open {\n opacity: 1;\n }\n &.on-top {\n left: 50%;\n bottom: 100%;\n transform: translate(-50%, -10%);\n &.arrowed {\n margin-bottom: 0.25em;\n }\n &.is-open {\n transform: translate(-50%);\n }\n }\n &.on-bottom {\n left: 50%;\n top: 100%;\n transform: translate(-50%, 10%);\n &.arrowed {\n margin-top: 0.25em;\n }\n &.is-open {\n transform: translate(-50%);\n }\n }\n &.on-left {\n right: 100%;\n top: 50%;\n transform: translate(-10%, -50%);\n &.is-open {\n transform: translate(0, -50%);\n }\n }\n &.on-right {\n left: 100%;\n top: 50%;\n transform: translate(10%, -50%);\n &.is-open {\n transform: translate(0, -50%);\n }\n }\n &.on-top > .arrow {\n left: 50%;\n bottom: 0;\n transform: translateX(-50%);\n &.on-top > .arrow svg {\n transform: rotate(180deg);\n }\n }\n &.on-bottom > .arrow {\n top: 0;\n left: 50%;\n transform: translateX(-50%);\n }\n &.on-right > .arrow {\n top: 50%;\n left: 0;\n font-size: 16px;\n transform: translateY(-50%);\n svg {\n transform: rotate(-90deg);\n }\n }\n &.on-left > .arrow {\n top: 50%;\n right: 0;\n font-size: 16px;\n transform: translateY(-50%);\n svg {\n transform: rotate(90deg);\n }\n }\n > .content {\n position: relative;\n z-index: 20;\n padding: 0.5em;\n width: -moz-max-content;\n width: max-content;\n min-width: 3em;\n max-width: 20em;\n min-height: 2em;\n background-color: #415058;\n -webkit-backdrop-filter: blur(2px);\n backdrop-filter: blur(2px);\n border-radius: 2px;\n color: #fff;\n }\n }\n .CoreTip {\n filter: opacity(0.9);\n > .arrow svg {\n fill: #1e292e;\n }\n > .content {\n padding: 0.5em 0.75em;\n background-color: #1e292e;\n border-radius: 4px;\n box-shadow: 0 2px 8px 0 rgba(0,0,0,0.15);\n }\n }\n"]);return ve=function(){return ne},ne}function je(){var ne=We(["\n div.Tooltip {\n width: -moz-fit-content;\n width: -webkit-fit-content;\n width: fit-content;\n }\n &.Ellipsis {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: inline-block;\n max-width: 100%;\n vertical-align: bottom;\n &.isnt-truncated {\n display: inline;\n max-width: initial !important;\n }\n &.is-truncated:before {\n content: '';\n display: block;\n }\n &[data-type=user],\n &[data-type=id] {\n max-width: 10em;\n }\n &[data-type=email] {\n max-width: 12em;\n }\n &[data-type=org] {\n max-width: 15em;\n }\n &[data-type=team] {\n max-width: 10em;\n }\n &[data-type=app] {\n max-width: 15em;\n }\n &[data-type=widget] {\n max-width: 12em;\n }\n }\n"]);return je=function(){return ne},ne}function We(ne,ae){return ae||(ae=ne.slice(0)),Object.freeze(Object.defineProperties(ne,{raw:{value:Object.freeze(ae)}}))}var Ae=c.Ay.span.withConfig({displayName:"tooltip__StyledToolTipSpan",componentId:"sc-k1px3u-0"})(je()),we=c.Ay.div.withConfig({displayName:"tooltip__StyledToolTip",componentId:"sc-k1px3u-1"})(ve());function _e(ne){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_e=function(ye){return typeof ye}:_e=function(ye){return ye&&typeof Symbol=="function"&&ye.constructor===Symbol&&ye!==Symbol.prototype?"symbol":typeof ye},_e(ne)}function Te(){return Te=Object.assign||function(ne){for(var ae=1;ae<arguments.length;ae++){var ye=arguments[ae];for(var Ee in ye)Object.prototype.hasOwnProperty.call(ye,Ee)&&(ne[Ee]=ye[Ee])}return ne},Te.apply(this,arguments)}function Ye(ne,ae){if(!(ne instanceof ae))throw new TypeError("Cannot call a class as a function")}function Fe(ne,ae){for(var ye=0;ye<ae.length;ye++){var Ee=ae[ye];Ee.enumerable=Ee.enumerable||!1,Ee.configurable=!0,"value"in Ee&&(Ee.writable=!0),Object.defineProperty(ne,Ee.key,Ee)}}function Ve(ne,ae,ye){return ae&&Fe(ne.prototype,ae),ye&&Fe(ne,ye),ne}function rt(ne,ae){if(typeof ae!="function"&&ae!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(ae&&ae.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),ae&&Ue(ne,ae)}function Ue(ne,ae){return Ue=Object.setPrototypeOf||function(Ee,Pe){return Ee.__proto__=Pe,Ee},Ue(ne,ae)}function et(ne){var ae=Xe();return function(){var Ee=st(ne),Pe;if(ae){var Ze=st(this).constructor;Pe=Reflect.construct(Ee,arguments,Ze)}else Pe=Ee.apply(this,arguments);return lt(this,Pe)}}function lt(ne,ae){return ae&&(_e(ae)==="object"||typeof ae=="function")?ae:Je(ne)}function Je(ne){if(ne===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ne}function Xe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(ne){return!1}}function st(ne){return st=Object.setPrototypeOf?Object.getPrototypeOf:function(ye){return ye.__proto__||Object.getPrototypeOf(ye)},st(ne)}function nt(ne,ae,ye){return ae in ne?Object.defineProperty(ne,ae,{value:ye,enumerable:!0,configurable:!0,writable:!0}):ne[ae]=ye,ne}var tt=["hover","click"],ct="IBOT_TOOLTIP_ROOT",ht=document.getElementById(ct)||Object.assign(document.createElement("div"),{id:ct}),It=document.body;It.contains(ht)||It.appendChild(ht);function it(ne){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"hover";return w()(ne)||M()(ne)||(0,r.isValidElement)(ne)?ne:tt.includes(ae)&&W()(ne)?ne[ae]||ne.hover:null}var Tt=function(ne){rt(ye,ne);var ae=et(ye);function ye(){var Ee;Ye(this,ye);for(var Pe=arguments.length,Ze=new Array(Pe),Ct=0;Ct<Pe;Ct++)Ze[Ct]=arguments[Ct];return Ee=ae.call.apply(ae,[this].concat(Ze)),nt(Je(Ee),"state",{isOpen:!1,isClicked:!1,$text:null}),nt(Je(Ee),"ref",r.createRef()),nt(Je(Ee),"onClick",function(wt){Ee.setState({isOpen:!!it(Ee.props.content,"click"),isClicked:!0}),wt.persist(),Ee.props.onClick(wt)}),nt(Je(Ee),"onMouseEnter",function(){return Object.assign(Je(Ee),{hoverTimeout:setTimeout(function(){return Ee.setState({isOpen:!!it(Ee.props.content,"hover")},Ee.props.onMouseEnter)},Ee.props.delay)})}),nt(Je(Ee),"onMouseLeave",function(){clearTimeout(Ee.hoverTimeout),Ee.setState({isOpen:!1,isClicked:!1},Ee.props.onMouseLeave)}),Ee}return Ve(ye,[{key:"componentDidMount",value:function(){this.props.setRef(this.ref.current)}},{key:"componentDidUpdate",value:function(Pe,Ze){var Ct=this,wt=Ze.isOpen,Mt=this.props.duration,Vt=this.state.isOpen;Mt>0&&!wt&&Vt&&(this.timeout=setTimeout(function(){return Ct.setState({isOpen:!1})},Mt))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),clearTimeout(this.hoverTimeout)}},{key:"render",value:function(){var Pe=this.props,Ze=Pe.theme,Ct=Pe.position,wt=Pe.inflexible,Mt=Pe.arrowed,Vt=Pe.className,on=Pe.tipClassName,tn=Pe.content,ln=Pe.children,bn=this.state,Gn=bn.isOpen,so=bn.isClicked,eo=be(["Tooltip",Vt,Gn?"is-open":"",so?"is-clicked":""]),Co=so?"click":"hover";return r.createElement(Ae,Te({ref:this.ref,className:eo,onMouseEnter:this.onMouseEnter,onClick:this.onClick,onMouseLeave:this.onMouseLeave},ie(this.constructor,this.props)),r.createElement(r.Fragment,null,ln,r.createElement(Lt,{$text:this.ref.current,isOpen:Gn,className:on,eventName:Co,theme:Ze,position:Ct,inflexible:wt,arrowed:Mt},it(tn,Co))))}}]),ye}(r.PureComponent);nt(Tt,"propTypes",{theme:s().oneOf(["core","plain"]),position:s().oneOf(["top","right","bottom","left"]).isRequired,arrowed:s().bool,inflexible:s().bool,className:s().string,tipClassName:s().string,content:s().oneOfType([s().node,s().shape(tt.reduce(function(ne,ae){return Object.assign(ne,nt({},ae,s().node))},{}))]),onMouseEnter:s().func,onClick:s().func,onMouseLeave:s().func,delay:s().oneOfType([s().number,s().string]),duration:s().oneOfType([s().number,s().string]),children:s().node,setRef:s().func}),nt(Tt,"defaultProps",{theme:"plain",position:"right",arrowed:!0,inflexible:!1,delay:200,className:"",tipClassName:"",setRef:function(){return null},onClick:function(){return null}});var Lt=function(ne){rt(ye,ne);var ae=et(ye);function ye(){var Ee;Ye(this,ye);for(var Pe=arguments.length,Ze=new Array(Pe),Ct=0;Ct<Pe;Ct++)Ze[Ct]=arguments[Ct];return Ee=ae.call.apply(ae,[this].concat(Ze)),nt(Je(Ee),"state",{prevProps:Ee.props,isOpen:Ee.props.isOpen,position:Ee.props.position}),nt(Je(Ee),"ref",r.createRef()),nt(Je(Ee),"position",function(){var wt=Ee.props,Mt=wt.$text,Vt=wt.position,on=wt.inflexible,tn=Je(Ee),ln=tn.$tipBase,bn=tn.$tip;if(!(!Mt||!ln||!bn)){var Gn=!on,so=10,eo=10,Co=window.innerWidth-10,ko=window.innerHeight-10,Ro=Mt.getBoundingClientRect(),Bo=Ro.top,Fo=Ro.right,Ho=Ro.bottom,Lo=Ro.left,Go=Mt.offsetWidth,ts=Mt.offsetHeight,Qo=bn.offsetWidth,Xo=bn.offsetHeight,rs=Lo+Go/2,_s=Bo+ts/2,cs={},vs={},ms=function(Os){return Object.assign(cs,Os)},Cs=function(Os){return Object.assign(vs,Os)};switch(ms({top:"".concat(Bo,"px"),left:"".concat(Lo,"px"),width:"".concat(Go,"px"),height:"".concat(ts,"px")}),Gn&&(Vt==="top"&&Bo-Xo<eo?Ee.setState({position:"bottom"}):Vt==="bottom"&&Ho+Xo>ko?Ee.setState({position:"top"}):Vt==="left"&&Lo-Qo<so?Ee.setState({position:"right"}):Vt==="right"&&Fo+Qo>Co&&Ee.setState({position:"left"})),Vt){case"top":case"bottom":{var ls=(Qo-18)/2+6,Is=rs-Qo/2<10?Math.min(Qo/2-rs-6,ls):rs+Qo/2>Co?Math.max(-(Qo/2-(Co+10-rs))+6,-ls):0;Is!==0&&Cs({transform:"translateX(".concat(Is,"px)")});break}case"left":case"right":{var Ms=(Xo-18)/2-6,xi=Xo>50&&(_s-5<=ko/2&&_s-Xo/2<10?Math.min(Xo/2-_s-6,Ms):_s-5>ko/2&&_s+Xo/2>ko?Math.max(-(Xo/2-(ko+10-_s)),-Ms):0);xi!==0&&Cs({transform:"translateY(".concat(xi,"px)")});break}}Object.assign(ln.style,cs),Object.assign(oe(".content",bn).style,vs),bn.classList.add("is-open")}}),nt(Je(Ee),"onTransitionEnd",function(){var wt=Ee.props.isOpen;wt?Ee.$tip.classList.add("is-open"):Ee.setState({isOpen:!1})}),Ee}return Ve(ye,[{key:"componentDidUpdate",value:function(Pe){var Ze=Pe.isOpen,Ct=this.props.isOpen;!Ze&&Ct?this.position():Ze&&!Ct&&this.$tip&&this.$tip.classList.remove("is-open")}},{key:"render",value:function(){return(0,o.createPortal)(this.tip,ht)}},{key:"$tipBase",get:function(){return this.ref.current}},{key:"$tip",get:function(){return this.$tipBase&&oe(".Tip",this.$tipBase)}},{key:"tip",get:function(){var Pe=this.props,Ze=Pe.className,Ct=Pe.theme,wt=Pe.inflexible,Mt=Pe.arrowed,Vt=Pe.children,on=this.state,tn=on.isOpen,ln=on.position,bn=be([Ct==="core"?"Tip CoreTip":"Tip",Ze,"on-".concat(ln),wt&&"inflexible",Mt&&"arrowed"]);return tn&&r.createElement(we,{className:"TipBase",ref:this.ref},r.createElement("div",{className:bn,onTransitionEnd:this.onTransitionEnd},Mt&&r.createElement("div",{className:"arrow",dangerouslySetInnerHTML:{__html:N.DROPDOWN_ARROW}}),r.createElement("div",{className:"content"},Vt)))}}],[{key:"getDerivedStateFromProps",value:function(Pe,Ze){var Ct=Ze.prevProps;return g()(Ct,Pe)?null:{prevProps:Pe,isOpen:Pe.isOpen,position:Pe.position}}}]),ye}(r.PureComponent);nt(Lt,"propTypes",{isOpen:s().bool,className:s().string,eventName:s().oneOf(tt),$text:s().instanceOf(Element),theme:s().oneOf(["plain","core"]),position:s().oneOf(["top","right","bottom","left"]),inflexible:s().bool,arrowed:s().bool,children:s().node});const Rt=Tt;function Wt(){var ne=Kt([void 0],["\n &.Punctuation {\n display: inline-flex;\n display: inline-flex;\n &.isnt-truncated {\n display: inline;\n }\n &.with-period {\n &:after {\n content: '. ';\n }\n &:lang(zh):after {\n content: '\\3002';\n }\n }\n &.with-comma {\n &:after {\n content: ', ';\n }\n &:lang(zh):after {\n content: '\\FF0C';\n }\n }\n &.with-question-mark:after {\n &:after {\n content: '? ';\n }\n &:lang(zh):after {\n content: '\\FF1F';\n }\n\n }\n &.with-quote {\n &:before {\n content: '\\201C';\n }\n &:after {\n content: '\\201D';\n }\n &.with-period:after {\n content: '\\201D. ';\n }\n &.with-comma:after {\n content: '\\201D, ';\n }\n &.with-question-mark:after {\n content: '\\201D? ';\n }\n &:lang(zh):before {\n content: '\\300C';\n }\n &:lang(zh):after {\n content: '\\300D';\n }\n &.with-period:lang(zh):after {\n content: '\\300D\\3002';\n }\n &.with-comma:lang(zh):after {\n content: '\\300D\\FF0C';\n }\n &.with-question-mark:lang(zh):after {\n content: '\\300D\\FF1F';\n }\n }\n }\n"]);return Wt=function(){return ne},ne}function Kt(ne,ae){return ae||(ae=ne.slice(0)),Object.freeze(Object.defineProperties(ne,{raw:{value:Object.freeze(ae)}}))}var Gt=c.Ay.span.withConfig({displayName:"ellipsis__StyledEllipsis",componentId:"sc-15mnwib-0"})(Wt());function St(ne){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?St=function(ye){return typeof ye}:St=function(ye){return ye&&typeof Symbol=="function"&&ye.constructor===Symbol&&ye!==Symbol.prototype?"symbol":typeof ye},St(ne)}function Hn(){return Hn=Object.assign||function(ne){for(var ae=1;ae<arguments.length;ae++){var ye=arguments[ae];for(var Ee in ye)Object.prototype.hasOwnProperty.call(ye,Ee)&&(ne[Ee]=ye[Ee])}return ne},Hn.apply(this,arguments)}function uo(ne,ae){var ye=Object.keys(ne);if(Object.getOwnPropertySymbols){var Ee=Object.getOwnPropertySymbols(ne);ae&&(Ee=Ee.filter(function(Pe){return Object.getOwnPropertyDescriptor(ne,Pe).enumerable})),ye.push.apply(ye,Ee)}return ye}function Po(ne){for(var ae=1;ae<arguments.length;ae++){var ye=arguments[ae]!=null?arguments[ae]:{};ae%2?uo(Object(ye),!0).forEach(function(Ee){Wn(ne,Ee,ye[Ee])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(ye)):uo(Object(ye)).forEach(function(Ee){Object.defineProperty(ne,Ee,Object.getOwnPropertyDescriptor(ye,Ee))})}return ne}function Yn(ne,ae){if(ne==null)return{};var ye=bo(ne,ae),Ee,Pe;if(Object.getOwnPropertySymbols){var Ze=Object.getOwnPropertySymbols(ne);for(Pe=0;Pe<Ze.length;Pe++)Ee=Ze[Pe],!(ae.indexOf(Ee)>=0)&&Object.prototype.propertyIsEnumerable.call(ne,Ee)&&(ye[Ee]=ne[Ee])}return ye}function bo(ne,ae){if(ne==null)return{};var ye={},Ee=Object.keys(ne),Pe,Ze;for(Ze=0;Ze<Ee.length;Ze++)Pe=Ee[Ze],!(ae.indexOf(Pe)>=0)&&(ye[Pe]=ne[Pe]);return ye}function Ke(ne,ae){if(!(ne instanceof ae))throw new TypeError("Cannot call a class as a function")}function ut(ne,ae){for(var ye=0;ye<ae.length;ye++){var Ee=ae[ye];Ee.enumerable=Ee.enumerable||!1,Ee.configurable=!0,"value"in Ee&&(Ee.writable=!0),Object.defineProperty(ne,Ee.key,Ee)}}function zt(ne,ae,ye){return ae&&ut(ne.prototype,ae),ye&&ut(ne,ye),ne}function bt(ne,ae){if(typeof ae!="function"&&ae!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(ae&&ae.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),ae&&xn(ne,ae)}function xn(ne,ae){return xn=Object.setPrototypeOf||function(Ee,Pe){return Ee.__proto__=Pe,Ee},xn(ne,ae)}function kn(ne){var ae=Pn();return function(){var Ee=_n(ne),Pe;if(ae){var Ze=_n(this).constructor;Pe=Reflect.construct(Ee,arguments,Ze)}else Pe=Ee.apply(this,arguments);return gn(this,Pe)}}function gn(ne,ae){return ae&&(St(ae)==="object"||typeof ae=="function")?ae:Zn(ne)}function Zn(ne){if(ne===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ne}function Pn(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(ne){return!1}}function _n(ne){return _n=Object.setPrototypeOf?Object.getPrototypeOf:function(ye){return ye.__proto__||Object.getPrototypeOf(ye)},_n(ne)}function Wn(ne,ae,ye){return ae in ne?Object.defineProperty(ne,ae,{value:ye,enumerable:!0,configurable:!0,writable:!0}):ne[ae]=ye,ne}var Ln=function(ne){bt(ye,ne);var ae=kn(ye);function ye(){var Ee;Ke(this,ye);for(var Pe=arguments.length,Ze=new Array(Pe),Ct=0;Ct<Pe;Ct++)Ze[Ct]=arguments[Ct];return Ee=ae.call.apply(ae,[this].concat(Ze)),Wn(Zn(Ee),"state",{isTruncated:!1,isDetected:!1}),Wn(Zn(Ee),"set$ellipsis",function(wt){return Object.assign(Zn(Ee),{$ellipsis:wt})}),Wn(Zn(Ee),"detectTruncation",function(){var wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ee.$ellipsis;return wt.offsetWidth<wt.scrollWidth}),Ee}return zt(ye,[{key:"componentDidMount",value:function(){return this.setState({isDetected:!0,isTruncated:this.detectTruncation()})}},{key:"componentDidUpdate",value:function(Pe){var Ze=Pe.children,Ct=this.props,wt=Ct.children,Mt=this.state.isDetected;if(Ze!==wt)return this.setState({isDetected:!1});if(!Mt)return this.setState({isDetected:!0,isTruncated:this.detectTruncation()})}},{key:"render",value:function(){var Pe=this.props,Ze=Pe.className,Ct=Pe.to,wt=Pe.type,Mt=Pe.max,Vt=Pe.display,on=Pe.lang,tn=Pe.theme,ln=Pe.noTooltip,bn=Pe.withTooltip,Gn=Pe.withQuote,so=Pe.withPeriod,eo=Pe.withComma,Co=Pe.withQuestionMark,ko=Pe.children,Ro=Yn(Pe,["className","to","type","max","display","lang","theme","noTooltip","withTooltip","withQuote","withPeriod","withComma","withQuestionMark","children"]),Bo=this.state,Fo=Bo.isTruncated,Ho=Bo.isDetected,Lo={children:ko},Go=Ho&&(Fo?"is-truncated":"isnt-truncated"),ts=Po({type:Ct?"link":"inline",theme:tn,className:be(["Ellipsis",Go,Ze,(Gn||so||eo||Co)&&"Punctuation",Gn&&"with-quote",so&&"with-period",eo&&"with-comma",Co&&"with-question-mark"]),href:Ct,"data-type":wt,"data-max":Mt,style:{display:Vt,maxWidth:isFinite(Mt)?"".concat(Mt,"em"):Mt},content:(bn||Fo&&!ln)&&r.createElement("div",Hn({lang:on,className:"EllipsisTip"},Lo)),children:ko,setRef:this.set$ellipsis},Ro),Qo=r.createElement(Rt,ts);return Gn||so||eo||Co?r.createElement(Gt,{className:be(["Punctuation",Gn&&"with-quote",so&&"with-period",eo&&"with-comma",Co&&"with-question-mark",Go])},Qo):Qo}}]),ye}(r.PureComponent);Wn(Ln,"propTypes",{className:s().string,theme:s().oneOf(["core","plain"]),type:s().oneOf(["user","id","email","org","team","app","widget"]),max:s().oneOfType([s().string,s().number]),display:s().oneOf(["inline-block","block"]),lang:s().string,to:s().string,children:s().node,noTooltip:s().bool,withTooltip:s().bool,withQuote:s().bool,withComma:s().bool,withPeriod:s().bool,withQuestionMark:s().bool}),Wn(Ln,"defaultProps",{lang:"en",theme:"core"});const io=Ln;function to(ne){let{$opener:ae,$menuBase:ye,$menuContainer:Ee,isShowButton:Pe,placement:Ze,width:Ct,deltaY:wt}=ne;if(!ae||!ye)return;const Mt=Pe?ae.closest("label"):ae.closest("div"),Vt=ye.querySelector("*"),tn=(oe("li[role=option].is-active",Vt)||oe("li[role=option]",Vt)||oe("li[role=empty-msg]",Vt)).getBoundingClientRect(),ln=Vt.getBoundingClientRect(),bn={styleFor$menuBase:{},styleFor$menu:{},styleFor$menuContainer:{},styleFor$fontTip:{}},Gn=_s=>Object.assign(bn.styleFor$menuBase,_s),so=_s=>Object.assign(bn.styleFor$menuContainer,_s),{top:eo}=ae.getBoundingClientRect(),Co=Mt.getBoundingClientRect(),{top:ko,left:Ro,width:Bo,height:Fo}=Co,Ho=16,Lo=72,Go=8;let ts,Qo=0,Xo=Lo-Go*2;const rs=tn.top-ln.top;switch(On(ln,tn)?Qo=-rs:(Xo=tn.bottom-ln.bottom,Qo=-rs+Xo),Ze){case"bottom":Gn({top:ko+Fo+Ho+wt+"px",left:Ro-(Ct/2-Bo/2)+"px"});break;case"rightBottom":Gn({top:ko+Fo+Ho+wt+"px",left:Ro+"px"});break;case"leftBottom":Gn({top:ko+Fo+Ho+wt+"px",left:Ro-(Ct-Bo)+"px"});break;default:{const _s=document.body.clientWidth,cs=document.body.clientHeight,vs=ye.getBoundingClientRect().height;let ms,Cs;ts=-Qo-eo,ms=ko+wt,Cs=eo+Qo+wt<Lo?eo+vs+Qo+wt:cs-eo-Qo+wt,ms=eo+Qo<Lo?ms+ts:ms;const ls=Math.abs(Qo),Is=ls+Lo>eo,Ms=vs-ls+Go>cs-eo;Is&&Ms?(Cs=cs-Lo-Go,ms=ms+Lo-Go):Is?(Cs=Cs-Lo+Go,ms=ms+Lo-Go):Ms&&(Cs=Cs-Go*2),so({top:Qo+wt+"px",maxHeight:Cs+"px"}),Gn({top:ms+"px",left:(Ct+Ro>_s?_s-Ct-16:Ro)+"px"})}}return Object.assign(ye.style,bn.styleFor$menuBase),Object.assign(Ee.style,bn.styleFor$menuContainer),ts&&(Ee.scrollTop=Xo+ts+wt+Ho),bn}function mo(ne){return w()(ne)||E()(ne)||(0,r.isValidElement)(ne)?ne:ne.label||ne.value?ne.label||ne.value:void 0}function Io(ne){return w()(ne)||E()(ne)?String(ne):ne.value||ne.label?String(ne.value||ne.label):void 0}function co(ne,ae){return!!ae&&Io(ne)===String(ae)}function On(ne,ae){return ae.top>=ne.top&&ae.bottom<=ne.bottom}var Cn=e(41818);const qe=c.Ay.label.withConfig({displayName:"styles__StyledSelect",componentId:"sc-374bve-0"})(["position:relative;display:inline-flex;align-items:center;max-width:",";min-width:",";width:",";height:",";"," font-size:12px;color:",";cursor:pointer;.btn-wp{display:inline-flex;justify-content:flex-start;width:",";align-items:center;border-radius:6px;text-align:start;cursor:inherit;white-space:nowrap;text-overflow:ellipsis;height:28px;padding:8px 7px;border:solid 1px transparent;box-sizing:border-box;.select-icon{margin-right:8px;}button{cursor:inherit;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;align-items:center;line-height:inherit;padding:0;& > .question-icon{display:flex;align-items:center;width:16px;margin-right:8px;}}&:not(.is-toolbar):hover:not(.is-disabled){border:solid 1px ",";justify-content:flex-start;transition:all 0.2s;}&.is-active{border:solid 1px ",";}&.is-toolbar{border:none;padding:8px 6px 8px 10px;width:auto;&:hover{background-color:",";}}}.caret{margin-left:8px;display:inline-flex;align-items:center;svg{margin:auto;}path{fill:",";transition:transform 0.2s ease-out;}&.is-disabled{.down-arrow{fill:#999999}}}&{border:1px solid transparent;border-radius:2px;}&.is-open{.caret{svg{transform:rotate(180deg);}}}&.is-disabled{cursor:not-allowed;color:#999999;}&.readonly{cursor:default;}&.single-menu{cursor:default;.btn-wp{&:hover{border:1px solid transparent !important;transition:none !important;}}}"],ne=>ne.isShowButton?"100%":0,ne=>ne.isShowButton?"3em":0,ne=>ne.width?ne.width+"px":"auto",ne=>ne.isShowButton?"28px":0,ne=>ne.isShowButton?"":"border: none !important;",ne=>ne.theme.color_text_L1,ne=>ne.width?"auto":"60px",ne=>ne.theme.input.hover.border,ne=>ne.theme.input.hover.border,ne=>ne.theme.input.hover.border,ne=>ne.theme.color_text_L1),vn=(0,c.i7)(["from{opacity:0;transform:scale(0.8);}to{opacity:1;transform:scale(1);}"]),Jn=(0,c.i7)(["from{opacity:1;transform:scale(1);}to{opacity:0;transform:scale(0.8);}"]),ao=c.Ay.div.withConfig({displayName:"styles__StyledSelectMenu",componentId:"sc-374bve-1"})(["position:fixed;pointer-events:none;z-index:",";.WorkspaceSelectMenu{position:relative;padding:0;display:block;width:",";overflow-x:hidden;overflow-y:auto;list-style:none;box-shadow:",";color:#fff;border-radius:4px;background-color:#333;font-size:12px;pointer-events:all;transition:opacity,transform 0.2s ease-in-out;transform-origin:50% 0;&.blur-select{.SelectOption{padding:6px 0 6px 26px;}}&.LeftPanelCBShape{width:120px;.SelectOption{height:25px;padding:6px 0 6px 24px;&.is-empty{margin:4px 0;}}}&:nth-of-type(1){padding-top:8px;}&:nth-last-of-type(1){padding-bottom:8px;}&::-webkit-scrollbar{display:block;width:4px;height:4px;}&::-webkit-scrollbar-thumb{background-color:",";border-radius:2px;}&::-webkit-scrollbar-track{background-color:rgba(#fff,0.5);}&.is-empty{width:fit-content;}&:not(.is-open){animation:"," 0.1s;animation-fill-mode:forwards;}&.is-open{opacity:1;pointer-events:initial;}&.stroke-select-option .SelectOption{padding:6px 0 6px 28px;}& .missingFont{padding-left:9px;height:30px;border-bottom:1px solid rgba(243,244,245,0.1);color:rgba(255,255,255,0.5);line-height:21px;white-space:nowrap;text-overflow:ellipsis;span{margin-right:10px;path{fill:rgba(255,255,255,0.5);}}}.SelectOption{position:relative;display:flex;align-items:center;justify-content:space-between;padding:3px 0 3px 27px;cursor:pointer;margin-bottom:2px;& > .Ellipsis{padding:0 16px;}&.is-disabled{cursor:not-allowed;opacity:0.5;}&:not(.is-empty):not(.is-disabled):not(.with-input):hover{background-color:#666;}&.with-input{padding:2px 16px;input{font-size:12px;width:100%;height:100%;border-radius:2px;border:solid 1px #298DF8;color:#fff;padding:6px 0 5px 8px;&::selection{background-color:",";}}}&.is-empty{margin:4px 0;padding:0 !important;height:1px;background-color:rgba(243,244,245,0.1);}.checked{position:absolute;left:10px;svg{path{fill:",";}}}.value-wp{display:inline-flex;align-items:center;.value{word-break:keep-all;}.icon{width:20px;height:20px;display:inline-flex;justify-content:center;align-items:center;margin-right:9px;}.all-fill{fill:#ffffff;}.all-stroke{stroke:#ffffff;}}.shortcut{display:inline-flex;align-items:center;color:#999999;margin-right:9px;}}.SelectOption.noCheck{padding:6px 15px;.shortcut{margin-right:0;}}&.cant-select .SelectOption{cursor:default;}.SelectGroup{.divider{height:1px;margin:4px 16px;background:",";}& > .title{font-size:12px;padding:0 8px 0 16px;width:100%;height:30px;line-height:30px;color:",";span{display:block;}}& > ul{margin:0;padding:0;}}}.font-select-menu-tip{position:absolute;margin-top:-1px;padding:8px 16px;font-size:10px;box-shadow:0 2px 10px 0 rgba(39,54,78,0.08),4px 12px 40px 0 rgba(39,54,78,0.1);color:#fff;background-color:#1f292e;border-radius:0 0 2px 2px;pointer-events:auto;transition:opacity 0.2s ease-in;.font-link{color:",";margin-left:10px;text-decoration:underline;}&:not(.is-show){opacity:0;}&.is-show{opacity:1;}}"],ne=>ne.zIndex||1100,ne=>typeof ne.width=="number"?ne.width+"px":ne.width,ne=>ne.theme.common.shadow.shadow_3,ne=>ne.theme.scrollbar.thumb.y_bg,Jn,ne=>""+Cn.Q.hex2rgbaStr(ne.theme.themeColor,.3),ne=>ne.theme.color_text_L1,ne=>ne.theme.select.divider,ne=>ne.theme.common.text_22.cr,ne=>ne.theme.menu.font.family.link_tc);var no=e(85691),ke=e(72214);const $n="IBOT_SELECT_MENU_ROOT",$t=(0,ke.jsx)("svg",{width:"8",height:"6",xmlns:"http://www.w3.org/2000/svg",children:(0,ke.jsxs)("g",{transform:"translate(-2 -3)",fill:"none",fillRule:"evenodd",children:[(0,ke.jsx)("rect",{width:"12",height:"12",rx:"1.867"}),(0,ke.jsx)("path",{d:"M2.4 5.883a.64.64 0 00.194.471l1.949 1.903c.129.129.29.193.48.193a.643.643 0 00.473-.193l4.01-3.93a.627.627 0 00.202-.468.614.614 0 00-.201-.465.667.667 0 00-.479-.194.667.667 0 00-.479.194l-3.526 3.46-1.472-1.441a.667.667 0 00-.479-.194.667.667 0 00-.478.194.64.64 0 00-.194.47z",fill:"#F2F4F5"})]})}),cn=(0,ke.jsx)("svg",{width:"7",height:"4",xmlns:"http://www.w3.org/2000/svg",children:(0,ke.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M.171.168a.564.564 0 000 .809l2.916 2.855a.593.593 0 00.826 0L6.83.977a.564.564 0 000-.81.593.593 0 00-.826 0L3.5 2.62.997.168a.593.593 0 00-.826 0z",fill:"#8B8C8F"})}),xt=(0,ke.jsx)("svg",{width:"16",height:"14",xmlns:"http://www.w3.org/2000/svg",children:(0,ke.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,ke.jsx)("rect",{fill:"#FFFA00",width:"16",height:"14",rx:"2.667"}),(0,ke.jsx)("path",{d:"M8.658 9.147v-.19c0-.269.056-.515.179-.74.1-.201.257-.403.47-.582.527-.459.84-.75.941-.873.28-.359.426-.818.426-1.367 0-.672-.224-1.21-.672-1.601-.448-.404-1.03-.594-1.748-.594-.828 0-1.478.235-1.948.717-.47.47-.706 1.109-.706 1.926h1.176c0-.493.1-.873.302-1.142.224-.325.594-.482 1.098-.482.403 0 .728.112.952.336.213.224.325.527.325.919 0 .29-.112.56-.314.817l-.19.213c-.695.616-1.12 1.075-1.266 1.389-.157.291-.224.65-.224 1.064v.19h1.199zm-.605 2.207a.841.841 0 00.582-.224.795.795 0 00.247-.583.743.743 0 00-.236-.571c-.156-.157-.358-.224-.593-.224a.793.793 0 00-.583.224.743.743 0 00-.235.571.803.803 0 00.818.806z",fill:"#333",fillRule:"nonzero"})]})}),Et=document.getElementById($n)||Object.assign(document.createElement("div"),{id:$n}),jt=document.body;jt.contains(Et)||jt.appendChild(Et);class Jt extends r.PureComponent{constructor(ae){super(ae),(0,n.A)(this,"set$select",ye=>this.setState({$select:ye})),(0,n.A)(this,"open",()=>this.setState({isOpen:!0})),(0,n.A)(this,"close",()=>this.setState({isOpen:!1})),(0,n.A)(this,"toggle",()=>{this.props.optionList.length!==1&&this.setState({isOpen:!this.state.isOpen})}),(0,n.A)(this,"onResizeWindow",()=>this.state.isOpen&&this.close()),(0,n.A)(this,"onChange",ye=>{const{isToolBar:Ee}=this.props;this.setState({value:ye},()=>{Ee||this.close(),this.props.onChange(ye,this.props.attr)})}),(0,n.A)(this,"onSelect",ye=>{const{value:Ee}=this.props,Pe=ye.currentTarget;if(Pe.tagName==="INPUT")return this.onChange(Pe.value);{const{canSelect:Ze}=this,Ct=Pe.dataset.value;return this.onChange(Ze?typeof Ee=="number"?+Ct:Ct:Ee)}}),this.state={isOpen:!1,prevProps:this.props,value:this.props.value},this.Select=(0,r.createRef)()}static getDerivedStateFromProps(ae,ye){let{prevProps:Ee,value:Pe,isOpen:Ze}=ye;return ae.onClose(Ze),g()(Ee,ae)?null:{prevProps:ae,value:ae.value}}componentDidMount(){const{isShowButton:ae}=this.props;window.addEventListener("resize",this.onResizeWindow),ae||this.Select.current.parentElement.addEventListener("click",this.toggle)}componentWillUnmount(){const{isShowButton:ae}=this.props;ae||this.Select.current.parentElement.removeEventListener("click",this.toggle)}get isDisabled(){const{isDisabled:ae,disabled:ye}=this.props;return ae||ye}get readOnly(){return this.props.readOnly}get canSelect(){const{isDisabled:ae,readOnly:ye}=this;return!ae&&!ye}get displayText(){const{optionList:ae,placeholder:ye,withInput:Ee,showQuestionMark:Pe}=this.props,{value:Ze}=this.state;if(Pe)return Ze;const wt=(ae.find(Mt=>M()(Mt)&&Mt.slice(0).some(Vt=>co(Vt,Ze)))||ae).find(Mt=>!M()(Mt)&&Object.keys(Mt).length>0&&Mt.value===Ze);return typeof wt=="number"||wt?mo(wt):Ee?Ze:ye}render(){var ae;const{optionList:ye,children:Ee,menuClassName:Pe,size:Ze,unstyled:Ct,className:wt,textAlign:Mt,onMouseEnter:Vt,onMouseLeave:on,isShowButton:tn,placement:ln,selectWidth:bn,width:Gn,withInput:so,zIndex:eo,isToolBar:Co,noCheck:ko,showQuestionMark:Ro,missingFont:Bo,prefix:Fo,suffix:Ho}=this.props,Lo=(ae=this.props.arrow)!=null?ae:cn,{isOpen:Go,$select:ts,value:Qo}=this.state,{Select:Xo}=this,{isDisabled:rs,readOnly:_s,canSelect:cs}=this,vs=be(["WorkspaceSelect",Ze,Ct&&"unstyled",wt,Go&&"is-open",rs&&"is-disabled",_s&&"readonly",ye.length===1&&"single-menu"]),ms=f()("btn-wp",{"is-active":Go,"is-toolbar":Co},{"is-disabled":rs});return(0,ke.jsxs)(qe,{className:vs,role:"listbox",isShowButton:tn,ref:Xo,width:bn==="auto"?void 0:bn||Gn,children:[tn&&(0,ke.jsxs)("div",{className:ms,style:Mt==="right"?{justifyContent:"flex-end"}:{},children:[Ee,(0,ke.jsxs)("button",{disabled:rs,onClick:this.toggle,children:[Fo,Ro&&(0,ke.jsx)("span",{className:"question-icon",children:xt}),this.displayText,Ho]}),ye.length!==1&&(0,ke.jsx)("span",{className:f()("caret",{"is-disabled":rs}),children:Lo})]}),Go&&(0,ke.jsx)(In,{menuClassName:Pe,isOpen:Go,...this.props,value:Qo,$select:Xo.current,isShowButton:tn,placement:ln,width:Gn,withInput:so,zIndex:eo,canSelect:cs,onChange:this.onSelect,onMouseEnter:Vt,onMouseLeave:on,onClose:this.close,noCheck:ko,missingFont:Bo})]})}}(0,n.A)(Jt,"propTypes",{children:s().node,size:s().oneOf(["regular","small"]),menuTheme:s().oneOf(["core","plain","check"]),unstyled:s().bool,className:s().string,menuClassName:s().string,placeholder:s().string,range:s().array,optionList:s().arrayOf(s().oneOfType([s().node,s().shape({label:s().node,value:s().any,isDisabled:s().bool}),s().arrayOf(s().oneOfType([s().node,s().shape({label:s().node,value:s().any,isDisabled:s().bool})]))])).isRequired,value:s().oneOfType([s().number,s().string,s().bool]),isDisabled:s().bool,disabled:s().bool,readOnly:s().bool,onClose:s().func,onChange:s().func,onMouseEnter:s().func,onMouseLeave:s().func,textAlign:s().oneOf(["left","right"]),isShowButton:s().bool,placement:s().oneOf(["rightBottom","bottom","leftBottom","center"]),width:s().oneOfType([s().number,s().string]),selectWidth:s().oneOfType([s().number,s().string]),withInput:s().bool,zIndex:s().number,isToolBar:s().bool,noCheck:s().bool,showQuestionMark:s().bool,missingFont:s().string,prefix:s().string,suffix:s().string}),(0,n.A)(Jt,"defaultProps",{size:"regular",menuTheme:"plain",className:"",menuClassName:"",placeholder:"Choose one\u2026",emptyMsg:"Nothing to display\u2026",optionList:[],isDisabled:!1,textAlign:"left",onClose:()=>null,onChange:()=>null,onMouseEnter:()=>null,onMouseLeave:()=>null,isShowButton:!0,placement:"center",withInput:!1,zIndex:void 0,isToolBar:!1,noCheck:!1,showQuestionMark:!1,missingFont:""});class In extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"state",{isTransform:!1}),(0,n.A)(this,"portal",ce(Et,"SelectMenuPortal")),(0,n.A)(this,"menuBaseRef",(0,r.createRef)()),(0,n.A)(this,"menuContainerRef",(0,r.createRef)()),(0,n.A)(this,"position",ae=>{const{$select:ye,isShowButton:Ee,placement:Pe,width:Ze,optionList:Ct,value:wt}=this.props,{menuBaseRef:{current:Mt},menuContainerRef:{current:Vt}}=this,on=ae?ae.deltaY:0;if(ae){const ln=b()(ae,"target");if(ln&&t()(ln)&&ln.matches(".WorkspaceSelectMenu"))return}let tn=Ct.findIndex(ln=>ln.value===wt);tn=tn>-1?tn:0,to({$menuBase:Mt,$opener:ye,$menuContainer:Vt,isShowButton:Ee,placement:Pe,width:Ze,activeIndex:tn,deltaY:on}),this.setState({isTransform:!0})}),(0,n.A)(this,"onChange",ae=>{const{onChange:ye}=this.props,Ee=ae.currentTarget,Pe=Ee.closest(".WorkspaceSelectMenu");if(!Ee||!Pe)return this.onClose();ye(ae)}),(0,n.A)(this,"onClose",()=>{const{onClose:ae}=this.props;ae()}),(0,n.A)(this,"onClickOutside",ae=>{const{target:ye}=ae,{$select:Ee,isShowButton:Pe}=this.props,Ze=!Et.contains(ye),Ct=ye.closest("label");let wt;if(Pe)wt=Ct&&Ct.contains(Ee);else{const Mt=ye.closest("div");wt=Mt&&Ee.parentElement.parentNode===Mt}Ze&&!wt&&(ae.stopPropagation(),this.onClose())})}componentDidMount(){const{menuBaseRef:{current:ae}}=this,{$select:ye,isShowButton:Ee,withInput:Pe}=this.props;re(oe(".WorkspaceSelectMenu",ae)),this.position(),Ee||ye.parentElement.classList.add("is-active"),Pe&&this.menuBaseRef.current.getElementsByTagName("input")[0].focus()}componentWillUnmount(){const{$select:ae,isShowButton:ye}=this.props;ye||ae.parentElement.classList.remove("is-active"),this.portal&&this.portal.remove()}render(){return(0,o.createPortal)(this.menu,this.portal)}get menu(){const{isOpen:ae,isDisabled:ye,menuTheme:Ee,menuClassName:Pe,optionList:Ze,emptyMsg:Ct,value:wt,canSelect:Mt,onMouseEnter:Vt,onMouseLeave:on,width:tn,withInput:ln,zIndex:bn,range:Gn,noCheck:so,missingFont:eo}=this.props,{isTransform:Co}=this.state,ko=Ze.length===0,Ro=be(["WorkspaceSelectMenu",Pe,Co&&"is-open",ye&&"is-disabled",ko&&"is-empty",Mt?"can-select":"cant-select"]);return(0,ke.jsxs)(ao,{ref:this.menuBaseRef,width:tn,zIndex:bn,children:[(0,ke.jsx)(no.lZ,{dismiss:this.onClose}),(0,ke.jsx)("ul",{className:Ro,ref:this.menuContainerRef,style:{overflow:"auto"},children:ko?(0,ke.jsx)("li",{className:"SelectOption empty-msg",role:"empty-msg",children:Ct}):(0,ke.jsxs)(ke.Fragment,{children:[ln&&(0,ke.jsx)(_o,{value:wt,range:Gn,onChange:this.onChange}),eo!==""&&(0,ke.jsxs)("div",{className:"missingFont",children:[(0,ke.jsx)("span",{children:$t}),eo]}),Ze.map((Bo,Fo)=>M()(Bo)?(0,ke.jsx)(En,{menuTheme:Ee,optionList:Bo,value:wt,onChange:this.onChange,onClose:this.onClose,onMouseEnter:Vt,onMouseLeave:on},Fo):(0,ke.jsx)(hn,{menuTheme:Ee,isActive:wt===Bo.value,option:Bo,isDisabled:Bo.isDisabled,onChange:this.onChange,onClose:this.onClose,onMouseEnter:Vt,onMouseLeave:on,noCheck:so},Fo))]})}),ae&&(0,ke.jsx)(l.A,{target:document,onClickCapture:this.onClickOutside})]})}}(0,n.A)(In,"propTypes",{...Jt.propTypes,isOpen:s().bool,canSelect:s().bool,menuClassName:s().string,onChange:s().func,onClose:s().func,$select:s().instanceOf(Element),noCheck:s().bool,missingFont:s().string}),(0,n.A)(In,"defaultProps",{isOpen:!1,isTransform:!1,noCheck:!1});function En(ne){let{value:ae,optionList:[ye,...Ee],menuTheme:Pe,onChange:Ze,onClose:Ct,onMouseEnter:wt,onMouseLeave:Mt}=ne;return(0,ke.jsxs)("li",{className:"SelectGroup",children:[ye==="HIDDELINE"?null:ye==="DIVIDER"?(0,ke.jsx)("div",{className:"divider"}):(0,ke.jsx)(io,{className:"title",onClick:Ze,children:ye}),(0,ke.jsx)("ul",{children:Ee.map((Vt,on)=>(0,ke.jsx)(hn,{menuTheme:Pe,option:Vt,isActive:co(Vt,ae),isDisabled:Vt.isDisabled,onChange:Ze,onClose:Ct,onMouseEnter:wt,onMouseLeave:Mt},on))})]})}En.propTypes={value:s().oneOfType([s().string,s().number]),optionList:s().array,onChange:s().func,onClose:s().func,menuTheme:s().string,onMouseEnter:s().func,onMouseLeave:s().func};function hn(ne){let{option:ae,isActive:ye,isDisabled:Ee,menuTheme:Pe,onChange:Ze,onClose:Ct,onMouseEnter:wt,onMouseLeave:Mt,noCheck:Vt}=ne;const on=Object.keys(ae).length===0,tn=be(["SelectOption",Vt&&"noCheck",ye&&"is-active",Ee&&"is-disabled",on&&"is-empty"]),{icon:ln,label:bn,value:Gn,shortcut:so,onClick:eo}=ae,Co=()=>{eo()};return(0,ke.jsx)("li",{role:"option","data-value":Gn,className:tn,onClick:Ee||on?void 0:eo?Co:Ze,onMouseEnter:wt,onMouseLeave:Mt,children:on?(0,ke.jsx)(ke.Fragment,{}):(0,ke.jsxs)(ke.Fragment,{children:[!Vt&&ye&&(0,ke.jsx)("span",{className:"checked",children:$t}),(0,ke.jsxs)("div",{className:"value-wp",children:[ln&&(0,ke.jsx)("div",{className:"icon",children:ln}),(0,ke.jsx)("span",{className:"value",children:bn||Gn})]}),(0,ke.jsx)("span",{className:"shortcut",children:so})]})})}hn.propTypes={isActive:s().bool,option:s().oneOfType([s().node,s().object]),isDisabled:s().bool,menuTheme:s().string,onChange:s().func,onClose:s().func,onMouseEnter:s().func,onMouseLeave:s().func,noCheck:s().bool};function _o(ne){let{value:ae,range:ye,onChange:Ee}=ne;const[Pe,Ze]=(0,r.useState)(ae);(0,r.useEffect)(()=>{Ze(ae)},[ae]);const Ct=(0,r.useRef)(),wt=on=>{if(on.key==="Enter")if(ye){const[tn,ln]=ye;Pe>=tn&&Pe<=ln?Ee(on):Ze(ae)}else Ee(on)},Mt=on=>{on.target.select()},Vt=on=>{const tn=on.target.value.replace(/\D/g,"");Ze(tn),on.target.focus()};return(0,ke.jsx)("li",{className:"SelectOption with-input",children:(0,ke.jsx)("input",{type:"text",value:Pe,ref:Ct,onFocus:Mt,onKeyDown:wt,onChange:Vt})})}_o.propTypes={value:s().any,range:s().array,onChange:s().func};function yo(ne){if(ne.isIdentity())return null;if(ne.isTranslate())return"translate("+Number(ne.x)+", "+Number(ne.y)+")";{const{a:ae,b:ye,c:Ee,d:Pe,x:Ze,y:Ct}=ne;return"matrix("+Number(ae)+", "+Number(ye)+", "+Number(Ee)+", "+Number(Pe)+", "+Number(Ze)+", "+Number(Ct)+")"}}var Qn=e(18805);const ze=c.Ay.div.withConfig({displayName:"styles__StyledColorThumbnail",componentId:"sc-1fxfprf-0"})(["position:relative;display:inline-flex;width:18px;height:18px;background-image:linear-gradient(45deg,#ccc 25%,transparent 0),linear-gradient(-45deg,#ccc 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ccc 0),linear-gradient(-45deg,transparent 75%,#ccc 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0;background-clip:padding-box;border-radius:2px;border:solid 1px #f1f1f1;background-color:#f1f1f1;box-sizing:border-box;.thumbnail{width:100%;height:100%;z-index:1;border-radius:2px;background-size:cover;border:1px solid rgba(0,0,0,0.17);box-sizing:border-box;&.gradient-btn{border:unset;}&.img-type{height:100%;width:auto;margin:auto;max-width:16px;}}&:before{content:'';position:absolute;width:20px;height:20px;left:-2px;top:-2px;border-radius:2px;background-color:transparent;z-index:0;border:solid 3px #f1f1f1;box-sizing:border-box;}.transparent{position:absolute;top:50%;left:50%;width:40px;border-top:2px solid #eb5648;transform-origin:0 0;transform:rotate(-22deg) translate(-50%,-50%);}"]),Oe=ne=>{let{color:ae,attr:ye,index:Ee,alpha:Pe}=ne;const{colors:Ze,stops:Ct,type:wt}=ae,Mt=[];Ze.map((ln,bn)=>{const Gn=ln[3],eo={hex:d.Q1.toHexAndAlpha(ln)[0],alpha:Gn,point:Ct[bn]};Mt.push(eo)});const Vt="colorButton-"+ye+"-"+wt+"-"+Ee,on=d.dL.parse(ae),tn=yo(on);return(0,ke.jsxs)("svg",{className:"thumbnail gradient-btn",children:[(0,ke.jsx)("defs",{children:wt===d.LA.LinearGradient?(0,ke.jsx)("linearGradient",{id:Vt,x1:0,x2:1,y1:0,y2:0,gradientTransform:tn,children:Mt.sort((ln,bn)=>ln.point-bn.point).map((ln,bn)=>{let{alpha:Gn,hex:so,point:eo}=ln;return(0,ke.jsx)("stop",{stopColor:so,stopOpacity:Gn,offset:eo},bn)})}):(0,ke.jsx)("radialGradient",{id:Vt,cx:0,cy:0,r:1,gradientTransform:tn,children:Mt.map((ln,bn)=>{let{alpha:Gn,hex:so,point:eo}=ln;return(0,ke.jsx)("stop",{stopColor:so,stopOpacity:Gn,offset:eo},bn)})})}),(0,ke.jsx)("rect",{width:"100%",height:"100%",fill:"url(#"+Vt+")",style:{opacity:Pe/100}})]})},De=(0,r.forwardRef)((ne,ae)=>{let{className:ye,color:Ee,attr:Pe,index:Ze,handleColorThumbnailMouseDown:Ct}=ne,wt=0,Mt="";if(Ee.type===d.LA.Solid){const on=Ee.color[3];Mt=d.Q1.toHexAndAlpha(Ee.color)[0],wt=Math.floor(on*100)}else wt=Ee.o*100;const Vt=on=>Ct&&Ct(on,{color:Ee,attr:Pe,index:Ze});return(0,ke.jsxs)(ze,{ref:ae,className:f()("thumbnail-wrapper",ye),onMouseDown:Vt,children:[Ee.type===d.LA.Solid&&(0,ke.jsx)("div",{className:"thumbnail",style:{backgroundColor:Mt,opacity:wt/100}}),(0,Qn.NT)(Ee.type)&&(0,ke.jsx)(Oe,{color:Ee,attr:Pe,index:Ze,alpha:wt}),Ee.type===d.LA.Image&&(0,ke.jsx)("img",{className:"thumbnail img-type",src:Ee.src,style:{opacity:wt/100}})]})});De.displayName="ColorThumbnail";const Be=ne=>{let{color:ae,attr:ye,index:Ee}=ne,Pe=0,Ze="";if(ae.type===d.LA.Solid){const Ct=ae.color[3];Ze=d.Q1.toHexAndAlpha(ae.color)[0],Pe=Math.floor(Ct*100)}else Pe=ae.o*100;return(0,ke.jsxs)(r.Fragment,{children:[ae.type===d.LA.Solid&&(0,ke.jsx)("div",{className:"thumbnail",style:{backgroundColor:Ze,opacity:Pe/100}}),(0,Qn.NT)(ae.type)&&(0,ke.jsx)(Oe,{color:ae,attr:ye,index:Ee,alpha:Pe}),ae.type===d.LA.Image&&(0,ke.jsx)("img",{className:"thumbnail img-type",src:ae.src,style:{opacity:Pe/100}})]})};Be.displayName="ColorRender";const Qe=ne=>{let{color:ae,attr:ye,colorPanelPosOffset:Ee={offsetLeft:266,offsetTop:140},enable:Pe,index:Ze,onChange:Ct,onChangeState:wt,length:Mt}=ne;const[Vt,on]=(0,r.useState)(!1),[tn,ln]=(0,r.useState)({left:0,top:0}),[bn,Gn]=(0,r.useState)(!1),so=(0,r.useRef)(null),eo=!!ye&&(ye==="text"||ye==="shadows"||ye==="LGColor"),Co=ye==="LGColor"||ye==="text",ko=Ho=>{if(!Pe)return;if(Vt)return Ro();const{offsetLeft:Lo,offsetTop:Go}=Ee,{left:ts,top:Qo,height:Xo}=Ho.target.getBoundingClientRect(),rs={left:ts-Lo>>0,top:Qo+Xo/2-Go>>0};ln(rs),on(!0)},Ro=()=>{on(!1),wt&&wt(void 0)},Bo=Ho=>{const Lo=Ho.target;if(Lo.closest(".create-icon-arrow")||so.current.contains(Lo))return Ho.preventDefault();(Lo.closest("#mb-toolbar")||Lo.closest(".thumbnail-wrapper")||Lo.closest(".appearance-mode")||Lo.closest(".appearance-shadow")||Lo.closest(".appearance-blur")||Lo.closest(".appearance-fills")||Lo.closest(".export-setting")||Lo.closest(".rows"))&&on(!1)},Fo=Ho=>{Gn(Ho)};return(0,ke.jsxs)(ke.Fragment,{children:[(0,ke.jsx)(De,{ref:so,color:ae,attr:ye,index:Ze,handleColorThumbnailMouseDown:ko}),Vt&&(0,ke.jsxs)(ke.Fragment,{children:[(0,ke.jsx)(xa,{colorObj:ae,attr:ye,position:tn,isSolidColorOnly:eo,isHideBlendMode:Co,index:Mt-Ze,onClose:Ro,onPositionChanged:ln,onColorSave:Ct,onChangeShowColorList:Fo,isShowColorList:bn}),(0,ke.jsx)(l.A,{target:document,onMouseDown:(0,l.t)(Bo,{capture:!0})})]})]})};var $e=e(21066);const ot=(0,ke.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ke.jsx)("path",{fill:"#19191A","fill-rule":"evenodd",d:"M1.11.404a.5.5 0 0 0-.706.707L4.293 5 .403 8.89a.5.5 0 1 0 .708.706L5 5.707l3.89 3.89a.5.5 0 1 0 .706-.708L5.707 5l3.89-3.89a.5.5 0 0 0-.708-.706L5 4.293z","clip-rule":"evenodd"})}),mt=(ne,ae)=>(0,ke.jsx)("svg",{width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,ke.jsx)("circle",{cx:"8",cy:"8",r:"7.5",fill:ne?ae:"#6c6c6c",stroke:ne?ae:"#6c6c6c",strokeWidth:ne?"1px":"0.5px",fillRule:"evenodd",fillOpacity:".54"})}),ft=(ne,ae)=>(0,ke.jsxs)("svg",{width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,ke.jsx)("defs",{children:(0,ke.jsxs)("linearGradient",{x1:"50%",y1:"39.897%",x2:"50%",y2:"81.179%",id:"LINEAR_ICON",children:[(0,ke.jsx)("stop",{stopColor:ne?"#ffffff":"#f9f9f9",offset:"0%"}),(0,ke.jsx)("stop",{stopColor:ne?ae:"#939393",offset:"100%"})]})}),(0,ke.jsx)("circle",{cx:"32",cy:"8",r:"7.5",transform:"translate(-24)",fill:"url(#LINEAR_ICON)",stroke:ne?ae:"#6c6c6c",strokeWidth:ne?"1px":"0.5px",fillRule:"evenodd"})]}),gt=(ne,ae)=>(0,ke.jsxs)("svg",{width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,ke.jsx)("defs",{children:(0,ke.jsxs)("radialGradient",{cx:"50%",cy:"50%",fx:"50%",fy:"50%",r:"50%",id:"RADIAL_ICON",children:[(0,ke.jsx)("stop",{stopColor:"#ffffff",offset:"0%"}),(0,ke.jsx)("stop",{stopColor:"#ffffff",offset:"37.844%"}),(0,ke.jsx)("stop",{stopColor:ne?ae:"#a0a0a0",offset:"100%"})]})}),(0,ke.jsx)("circle",{cx:"56",cy:"8",r:"7.5",transform:"translate(-48)",fill:"url(#RADIAL_ICON)",stroke:ne?ae:"#6c6c6c",strokeWidth:ne?"1px":"0.5px",fillRule:"evenodd"})]}),_t=ne=>(0,ke.jsxs)("svg",{width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink",children:[(0,ke.jsxs)("defs",{children:[(0,ke.jsx)("circle",{id:"IMAGE_ICONa",cx:"8",cy:"8",r:"8"}),(0,ke.jsx)("circle",{id:"IMAGE_ICONc",cx:"8",cy:"8",r:"8"})]}),(0,ke.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,ke.jsx)("mask",{id:"IMAGE_ICONb",fill:"#fff",children:(0,ke.jsx)("use",{href:"#IMAGE_ICONa"})}),(0,ke.jsx)("circle",{stroke:"#1169C9",strokeWidth:".5",cx:"8",cy:"8",r:"7.75"}),(0,ke.jsx)("circle",{fill:ne?"#9881e1":"#9f9f9f",mask:"url(#IMAGE_ICONb)",cx:"10",cy:"5",r:"2"}),(0,ke.jsx)("path",{d:"M-3.376 17l7.137-8.785a2 2 0 012.999-.12l1.955 2.047c.62.65 1.642.691 2.313.095a1.65 1.65 0 012.302.106L18.624 16l-22 1z",fill:ne?"#9881e1":"#9f9f9f",mask:"url(#IMAGE_ICONb)"}),(0,ke.jsx)("circle",{stroke:ne?"#6c4bd5":"#6c6c6c",cx:"8",cy:"8",r:"7.5"})]})]}),Yt=(0,ke.jsx)("svg",{width:"8",height:"12",xmlns:"http://www.w3.org/2000/svg",children:(0,ke.jsx)("path",{d:"M3.41 1.925C1.626 4.367.668 6.162.668 7.333c0 .92.373 1.754.976 2.357A3.323 3.323 0 004 10.667c.92 0 1.754-.373 2.357-.977a3.323 3.323 0 00.976-2.357c0-1.136-.907-2.858-3.221-5.701-.218 0-.454.104-.701.293z",stroke:"#666",strokeWidth:"1.333",fill:"none",fillRule:"evenodd"})}),Ft=(0,ke.jsx)("svg",{width:"8px",height:"13px",viewBox:"0 0 8 13",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,ke.jsx)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,ke.jsx)("g",{transform:"translate(-46.000000, -161.000000)",children:(0,ke.jsxs)("g",{transform:"translate(46.000000, 161.049808)",children:[(0,ke.jsx)("path",{d:"M4.11191096,1.58215796 C6.42605214,4.42488591 7.33333333,6.14723803 7.33333333,7.28352545 C7.33333333,8.20400004 6.96023729,9.03733337 6.3570226,9.64054806 C5.75380792,10.2437627 4.92047458,10.6168588 4,10.6168588 C3.07952542,10.6168588 2.24619208,10.2437627 1.6429774,9.64054806 C1.03976271,9.03733337 0.666666667,8.20400004 0.666666667,7.28352545 C0.666666667,6.11218556 1.62493917,4.31685542 3.410905,1.87530515 C3.65755854,1.68591297 3.89402263,1.58215794 4.11191096,1.58215796 Z",id:"\u692D\u5706\u5F62",stroke:"#666666",strokeWidth:"1.33333333"}),(0,ke.jsx)("path",{d:"M4,11.2835255 C6.209139,11.2835255 8,9.49266445 8,7.28352545 C8,5.07438645 5.54839832,7.62780603 4,6.4999772 C2.45160168,5.37214836 0,5.07438645 0,7.28352545 C0,9.49266445 1.790861,11.2835255 4,11.2835255 Z",id:"\u692D\u5706\u5F62",fill:"#666666"})]})})})}),Zt=(0,ke.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,ke.jsx)("path",{fill:"#19191A","fill-rule":"evenodd",d:"M1 6a5 5 0 0 1 9.331-2.5H8.5a.5.5 0 0 0 0 1h3A.5.5 0 0 0 12 4V1a.5.5 0 0 0-1 0v1.682a6 6 0 1 0 .59 5.5.5.5 0 1 0-.93-.364A5.002 5.002 0 0 1 1 6","clip-rule":"evenodd"})}),Nt=(0,ke.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",fill:"none",children:(0,ke.jsx)("path",{fill:"#19191A","fill-rule":"evenodd",d:"M6.5 1a.5.5 0 0 0-1 0v4.5H1a.5.5 0 0 0 0 1h4.5V11a.5.5 0 0 0 1 0V6.5H11a.5.5 0 0 0 0-1H6.5z","clip-rule":"evenodd"})}),Qt=(0,ke.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none",children:(0,ke.jsx)("path",{fill:"#19191A","fill-rule":"evenodd",d:"M11.354 6.354a.5.5 0 0 1-.708 0L6 1.707 1.354 6.354a.5.5 0 0 1-.708-.708l5-5a.5.5 0 0 1 .708 0l5 5a.5.5 0 0 1 0 .708","clip-rule":"evenodd"})}),vt=(0,ke.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"10",fill:"none",children:(0,ke.jsx)("path",{stroke:"#19191A","stroke-linecap":"round","stroke-linejoin":"round",d:"M2.15.6.5 2.25m0 0L2.15 3.9M.5 2.25h11M9.85 6.1l1.65 1.65m0 0L9.85 9.4m1.65-1.65H.5"})}),yn=(0,ke.jsx)("svg",{width:"9",height:"12",xmlns:"http://www.w3.org/2000/svg",children:(0,ke.jsxs)("g",{stroke:"#666",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,ke.jsx)("path",{d:"M1 10.5v-4a3 3 0 013-3h4"}),(0,ke.jsx)("path",{d:"M6.333 1.5l2 2.003-2 1.997"})]})}),rn=(0,ke.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"none",children:(0,ke.jsx)("path",{fill:"#555557","fill-rule":"evenodd",d:"M4.136 11a6.864 6.864 0 1 1 13.728 0c0 .634-.362 1.048-.806 1.305-.416.241-.95.377-1.443.483q-.228.05-.448.093c-.355.073-.69.141-1.002.232-.447.13-.731.277-.881.446l-.358-.317.357.317c-.205.232-.328.553-.406.963a9 9 0 0 0-.11.891q-.018.209-.041.43c-.047.431-.123.931-.367 1.323-.129.208-.307.39-.548.517-.24.125-.512.18-.81.18A6.864 6.864 0 0 1 4.135 11M11 5.136a5.864 5.864 0 0 0 0 11.728.74.74 0 0 0 .347-.067.4.4 0 0 0 .163-.158c.11-.178.174-.466.222-.904q.017-.165.034-.358c.03-.328.063-.7.129-1.042.092-.488.262-1.013.64-1.44.347-.391.868-.602 1.35-.742.355-.103.753-.184 1.123-.26l.396-.082c.497-.108.889-.218 1.153-.37.236-.137.307-.266.307-.441A5.864 5.864 0 0 0 11 5.136M14.5 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-7 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2M11 7.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-2.5 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2","clip-rule":"evenodd"})}),Ot=(0,ke.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"none",children:(0,ke.jsx)("path",{fill:"#fff","fill-opacity":".64","fill-rule":"evenodd",d:"M4.136 11a6.864 6.864 0 1 1 13.728 0c0 .634-.362 1.048-.806 1.305-.416.241-.95.377-1.443.483q-.228.05-.448.093c-.355.073-.69.141-1.002.232-.447.13-.731.277-.881.446l-.358-.317.357.317c-.205.232-.328.553-.406.963a9 9 0 0 0-.11.891q-.018.209-.041.43c-.047.431-.123.931-.367 1.323-.129.208-.307.39-.548.517-.24.125-.512.18-.81.18A6.864 6.864 0 0 1 4.135 11M11 5.136a5.864 5.864 0 0 0 0 11.728.74.74 0 0 0 .347-.067.4.4 0 0 0 .163-.158c.11-.178.174-.466.222-.904q.017-.165.034-.358c.03-.328.063-.7.129-1.042.092-.488.262-1.013.64-1.44.347-.391.868-.602 1.35-.742.355-.103.753-.184 1.123-.26l.396-.082c.497-.108.889-.218 1.153-.37.236-.137.307-.266.307-.441A5.864 5.864 0 0 0 11 5.136M14.5 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-7 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2M11 7.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-2.5 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2","clip-rule":"evenodd"})}),Nn=(0,ke.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"none",children:[(0,ke.jsx)("rect",{width:"3.55",height:"3.55",x:"4.583",y:"4.583",fill:"#B7B9BD",rx:".5"}),(0,ke.jsx)("rect",{width:"3.55",height:"3.55",x:"4.583",y:"9.133",fill:"#555557",rx:".5"}),(0,ke.jsx)("rect",{width:"3.55",height:"3.55",x:"4.583",y:"13.683",fill:"#8B8C8F",rx:".5"}),(0,ke.jsx)("rect",{width:"3.55",height:"3.55",x:"9.225",y:"4.583",fill:"#8B8C8F",rx:".5"}),(0,ke.jsx)("rect",{width:"3.55",height:"3.55",x:"9.225",y:"9.133",fill:"#B7B9BD",rx:".5"}),(0,ke.jsx)("rect",{width:"3.55",height:"3.55",x:"9.225",y:"13.683",fill:"#555557",rx:".5"}),(0,ke.jsx)("rect",{width:"3.55",height:"3.55",x:"13.867",y:"4.583",fill:"#555557",rx:".5"}),(0,ke.jsx)("rect",{width:"3.55",height:"3.55",x:"13.867",y:"9.133",fill:"#8B8C8F",rx:".5"}),(0,ke.jsx)("rect",{width:"3.55",height:"3.55",x:"13.867",y:"13.683",fill:"#B7B9BD",rx:".5"})]}),To=(0,ke.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[(0,ke.jsx)("mask",{id:"eyedroppera",fill:"#fff",children:(0,ke.jsx)("path",{"fill-rule":"evenodd",d:"M11.074 7.27a1 1 0 0 1 1.414 0l.706.707.205-.205 2.623-2.623a1.999 1.999 0 1 1 2.828 2.829l-2.828 2.828.707.707a1 1 0 0 1-1.414 1.414l-.708-.708L8.6 18.23a2 2 0 0 1-2.43.31l-.75.75a.5.5 0 1 1-.708-.706l.752-.752a2 2 0 0 1 .309-2.43l6.008-6.01-.706-.706a1 1 0 0 1 0-1.415m1.413 2.828-6.009 6.01a1 1 0 0 0 1.414 1.414l6.008-6.01z","clip-rule":"evenodd"})}),(0,ke.jsx)("path",{fill:"#19191A","fill-rule":"evenodd",d:"M11.074 7.27a1 1 0 0 1 1.414 0l.706.707.205-.205 2.623-2.623a1.999 1.999 0 1 1 2.828 2.829l-2.828 2.828.707.707a1 1 0 0 1-1.414 1.414l-.708-.708L8.6 18.23a2 2 0 0 1-2.43.31l-.75.75a.5.5 0 1 1-.708-.706l.752-.752a2 2 0 0 1 .309-2.43l6.008-6.01-.706-.706a1 1 0 0 1 0-1.415m1.413 2.828-6.009 6.01a1 1 0 0 0 1.414 1.414l6.008-6.01z","clip-rule":"evenodd"}),(0,ke.jsx)("path",{fill:"#19191A",d:"m12.488 7.27-.707.707zm.706.707-.707.707.707.707.707-.707zm.205-.205.707-.707-.707-.708-.708.708zm0 0-.707.707.707.708.708-.707zm2.623-2.623.707.707zm2.828 0-.708.707zm0 2.829.707.707zm-2.828 2.828-.707-.707-.707.707.707.707zm.707.707-.707.707zm0 1.414.707.707zm-1.414 0 .708-.707zm-.708-.708.708-.707-.708-.707-.707.707zM8.6 18.23l.707.707zm-2.43.31.51-.862-.668-.394-.549.548zm-.75.75-.708-.706zm-.708 0 .708-.706zm0-.706.708.707zm.752-.752.707.707.548-.548-.394-.667zm.309-2.43-.708-.707zm6.008-6.01.707.707.707-.707-.707-.707zm-.706-.706.707-.707zm-4.596 7.423.708.707zm6.009-6.01.707-.707-.707-.707-.707.707zm-6.009 7.424.708-.707zm1.414 0-.707-.707zm6.008-6.01.708.707.706-.707-.706-.707zm-.705-4.949a2 2 0 0 0-2.828 0l1.414 1.414zm.706.707-.706-.707-1.415 1.414.707.707zm0 1.414.205-.205-1.415-1.414-.204.205zm-1.21-.205zl1.415-1.413v-.001zm2.624-4.037-2.623 2.624 1.415 1.414 2.622-2.624zm4.242 0a3 3 0 0 0-4.242 0l1.414 1.414a1 1 0 0 1 1.413 0zm0 4.243a3 3 0 0 0 0-4.243l-1.415 1.414a1 1 0 0 1 0 1.415zm-2.828 2.828 2.828-2.828-1.415-1.414-2.827 2.828zm.707-.707-.707-.707-1.414 1.414.707.707zm0 2.828a2 2 0 0 0 0-2.828l-1.414 1.414zm-2.828 0a2 2 0 0 0 2.828 0l-1.414-1.414zm-.708-.708.708.708 1.415-1.414-.708-.708zm0-1.414-6.008 6.01 1.414 1.414 6.009-6.01zm-6.008 6.01a1 1 0 0 1-1.214.155L5.661 19.4a3 3 0 0 0 3.645-.463zm-2.43.31-.751.75 1.414 1.415.752-.752zm-.751.75a.5.5 0 0 1 .708 0l-1.415 1.415a1.5 1.5 0 0 0 2.121 0zm.708 0a.5.5 0 0 1 0 .708l-1.415-1.414a1.5 1.5 0 0 0 0 2.12zm0 .708.75-.752-1.414-1.414-.75.752zm.905-1.967a1 1 0 0 1 .155-1.215l-1.415-1.414a3 3 0 0 0-.462 3.646zm.155-1.215 6.008-6.01-1.414-1.414-6.009 6.01zm3.888-6.716.706.706 1.414-1.414-.706-.706zm0-2.829a2 2 0 0 0 0 2.829l1.414-1.414zM7.186 16.815l6.008-6.01-1.414-1.414-6.009 6.01zm0 0L5.77 15.401a2 2 0 0 0 0 2.828zm-.001 0L5.772 18.23a2 2 0 0 0 2.828 0zm6.008-6.01-6.008 6.01 1.414 1.414 6.009-6.01zm-1.413 0 1.413 1.414 1.415-1.414-1.414-1.414z",mask:"url(#eyedroppera)"})]}),fo=(0,ke.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:(0,ke.jsx)("path",{fill:"#19191A",d:"M12 6.5a.5.5 0 0 1 .5.5v4.5H17l.1.01a.5.5 0 0 1 0 .98l-.1.01h-4.5V17l-.01.1a.5.5 0 0 1-.98 0l-.01-.1v-4.5H7a.5.5 0 0 1 0-1h4.5V7a.5.5 0 0 1 .5-.5"})}),ro=(0,ke.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:(0,ke.jsx)("path",{fill:"#19191A",d:"M7.404 7.404a.5.5 0 0 1 .707 0L12 11.293l3.89-3.89a.5.5 0 1 1 .706.708L12.707 12l3.89 3.89a.5.5 0 1 1-.708.706L12 12.707l-3.89 3.89a.5.5 0 1 1-.706-.708L11.293 12l-3.89-3.89a.5.5 0 0 1 0-.706"})}),Bn=["zh","en"],Ao="zh",go={"popup.colorPanel.colorSpace":["\u8272\u5F69\u7A7A\u95F4","Color Space"],"popup.colorPanel.colorChart":["\u8272\u677F","Color Chart"],"popup.colorPanel.history":["\u6700\u8FD1\u4F7F\u7528","Recently used"],"popup.colorPanel.favorite":["\u6211\u7684\u6536\u85CF","Favorite colors"],"helper.color_breakpoint_tips":["\u989C\u8272\u65AD\u70B9\u4E0D\u80FD\u8D85\u8FC7128\u4E2A","No more than 128 color breakpoints"],"popup.colorPanel.basic":["\u901A\u7528\u989C\u8272","Basic colors"],"components.reverse_gradient":["\u53CD\u5411\u6E10\u53D8","Invert Gradient"],"components.rotate_gradient":["\u65CB\u8F6C\u6E10\u53D8","Rotate Gradient"],"common.delete":["\u5220\u9664","Delete"],"common.hide":["\u9690\u85CF","Hide"],"common.show":["\u663E\u793A","Show"],"common.resetColor":["\u91CD\u7F6E\u989C\u8272","Reset Color"],"settingPanel.blendModeList.normal":["\u6B63\u5E38","Normal"],"settingPanel.blendModeList.darken":["\u53D8\u6697","Darken"],"settingPanel.blendModeList.multiply":["\u6B63\u7247\u53E0\u5E95","Multiply"],"settingPanel.blendModeList.colorBurn":["\u989C\u8272\u52A0\u6DF1","Color Burn"],"settingPanel.blendModeList.lighten":["\u53D8\u4EAE","Lighten"],"settingPanel.blendModeList.screen":["\u6EE4\u8272","Screen"],"settingPanel.blendModeList.colorDodge":["\u989C\u8272\u51CF\u6DE1"," Color dodge"],"settingPanel.blendModeList.overlay":["\u53E0\u52A0","Overlay"],"settingPanel.blendModeList.softLight":["\u67D4\u5149","Soft light"],"settingPanel.blendModeList.hardLight":["\u5F3A\u5149","Hard light"],"settingPanel.blendModeList.difference":["\u5DEE\u96C6","Difference"],"settingPanel.blendModeList.exclusion":["\u6392\u9664","Exclusion"],"settingPanel.blendModeList.hue":["\u8272\u76F8","Hue"],"settingPanel.blendModeList.saturation":["\u9971\u548C\u5EA6","Saturation"],"settingPanel.blendModeList.color":["\u989C\u8272","Color"],"settingPanel.blendModeList.luminosity":["\u660E\u5EA6","Luminosity"],"settingPanel.blendModeList.passThrough":["\u7A7F\u900F","Pass through"],"components.solidFill":["\u7EAF\u8272\u586B\u5145","Solid Color"],"settingPanel.linearGradient":["\u7EBF\u6027\u6E10\u53D8","Linear"],"settingPanel.radialGradient":["\u5F84\u5411\u6E10\u53D8","Radial"],"settingPanel.imageFill":["\u56FE\u7247\u586B\u5145","Image Fill"],"components.chooseImage":["\u9009\u62E9\u56FE\u7247","Choose Image"],"shortcuts.image":["\u56FE\u7247","Image"],"components.pictureFill":["\u586B\u5145","Fill"],"components.pictureFit":["\u9002\u5408","Fit"],"components.addToCollection":["\u70B9\u51FB + \u53F7\u6DFB\u52A0\u5230\u4F60\u7684\u6536\u85CF",'Click "+" to add to Assets'],"common.multipleValues":["\u591A\u4E2A\u503C","Multiple Values"],"settingPanel.createColorRef":["\u521B\u5EFA\u989C\u8272","Create Color"],"common.close":["\u5173\u95ED","Close"]},Jo={locale:Ao,localeIndex:Bn.indexOf(Ao)},$o={"zh-CN":"zh",zh:"zh",en:"en","mockitt-en":"en"},po=ne=>go[ne]&&go[ne][Jo.localeIndex]||"\u2426\u2426\u2426\u2426",us=ne=>{if(ne=$o[ne],ne=ne.toLowerCase(),ne=Bn.find(ae=>ne.includes(ae))||"",!ne)throw new Error("[I18N] invalid locale: "+ne);Jo.locale=ne,Jo.localeIndex=Bn.indexOf(ne)},hs=()=>Jo.locale;function pt(ne,ae,ye){const Ee=ae.getBoundingClientRect(),Pe=Math.min(Ee.left,document.documentElement.clientWidth-Ee.right);return ne.offsetWidth+ae.offsetWidth+ye+Pe<document.documentElement.clientWidth}function Ht(ne,ae){const ye=ne.getBoundingClientRect(),Ee=ye.bottom>window.innerHeight,Pe=ye.top<0;if(Pe&&Ee)return!0;if(ne.offsetHeight>ae.offsetHeight){const Ze=ne.offsetHeight/2,Ct=ye.bottom-window.innerHeight,wt=-ye.top,Mt=Ze-Ct,Vt=Ze-wt;return Mt>=0&&Vt>=0}return!Ee&&!Pe}function nn(ne,ae,ye,Ee,Pe){if(!ye)return ne;const Ze=ye.getBoundingClientRect(),Ct=ae.offsetHeight+Ee,wt=window.innerHeight-Ze.bottom,Mt=Ze.top,Vt=wt>=Ct,on=Mt>=Ct;switch(ne){case"right":return!pt(ae,ye,Ee)||!Ht(ye,ae)?nn("up",ae,ye,Ee,!0):document.documentElement.clientWidth-Ze.right<ae.offsetWidth+Ee?"left":"right";case"left":return!pt(ae,ye,Ee)||!Ht(ye,ae)?nn("up",ae,ye,Ee,!0):Ze.left<ae.offsetWidth+Ee?"right":"left";case"up":if(!on){if(Vt)return"down";if(!Pe&&pt(ae,ye,Ee))return nn("right",ae,ye,Ee,!0)}return"up";case"down":default:if(!Vt){if(on)return"up";if(!Pe&&pt(ae,ye,Ee))return nn("right",ae,ye,Ee,!0)}return"down"}}function en(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function Un(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0}function Kn(){return typeof document<"u"?document.documentElement.clientWidth:1e3}function Vn(ne){const ae=ne.split("-");return ae.length>1?ae[1]:"middle"}function vo(ne,ae,ye,Ee,Pe){let Ze=-1e7,Ct;if(ne){const wt=Un(),Mt=ae.getBoundingClientRect(),Vt=Mt.left+wt,on=Math.round(ae.offsetWidth/2),tn=Math.min(Kn(),ne.offsetWidth);if(Ee==="start")Ze=Vt;else if(Ee==="end"){const so=Vt+ae.offsetWidth;Ze=Math.max(so-tn,wt)}else{const so=Vt+on-Math.round(tn/2);Ze=Math.max(so,wt)}const ln=Ze+tn,bn=wt+document.documentElement.clientWidth,Gn=ln-bn;Gn>0&&(Ze-=Gn),ye==="up"?Ct=Mt.top+en()-(ne.offsetHeight+Pe):Ct=Mt.bottom+en()+Pe}return{left:Ze,top:Ct}}function zn(ne,ae,ye,Ee,Pe){let Ze=-1e7,Ct=0;if(ne){const wt=en(),Mt=Un(),Vt=ae.getBoundingClientRect(),on=Vt.top+wt,tn=Math.round(ae.offsetHeight/2),ln=on+tn,bn=Vt.top+wt+tn;if(Ee==="start")Ct=on;else if(Ee==="end")Ct=Vt.bottom+wt-ne.offsetHeight;else{const so=Math.max(on+tn-Math.round(ne.offsetHeight/2),wt);Ct=Math.min(so,ln)}const Gn=Ct-wt+ne.offsetHeight-window.innerHeight;Gn>0&&(Ct=Math.max(Ct-Gn,bn-ne.offsetHeight)),ye==="right"?Ze=Vt.right+Pe+Mt:Ze=Vt.left-Pe-ne.offsetWidth+Mt}return{left:Ze,top:Ct}}function Fn(ne,ae,ye){let{direction:Ee,distance:Pe,forceDirection:Ze}=ye;const Ct=Vn(Ee),wt=Ee.split("-")[0];let Mt=wt;return!Ze&&ae&&(Mt=nn(wt,ae,ne,Pe)),{sourceNodePosition:Mt==="up"||Mt==="down"?vo(ae,ne,Mt,Ct,Pe):zn(ae,ne,Mt,Ct,Pe),realDirection:Mt}}class Rn extends r.Component{constructor(ae){super(ae),this.container=document.createElement("div"),document.body.appendChild(this.container)}componentWillUnmount(){document.body.removeChild(this.container)}render(){return(0,o.createPortal)(this.props.children,this.container)}}Rn.propTypes={children:s().node.isRequired};const Mo=c.Ay.div.withConfig({displayName:"styles__StyledTips",componentId:"sc-1ffkypo-0"})(["display:flex;justify-content:center;align-items:center;flex-direction:column;position:absolute;opacity:0;background:rgb(69,70,71);color:#fff;width:auto;text-align:center;text-decoration:none;word-break:break-all;max-width:200px;padding:4px 8px;box-sizing:border-box;z-index:1101;border-radius:4px;box-shadow:0 2px 8px 0 rgba(0,0,0,0.15);line-height:18px;font-size:12px;transition:all 0.2s ease-in-out;&.show{opacity:0.9;}.shortcut-key{white-space:nowrap;display:inline-block;font-family:inherit;text-align:center;margin-left:12px;color:rgb(200,205,208);}"]);function wo(ne,ae,ye){return(ae=dn(ae))in ne?Object.defineProperty(ne,ae,{value:ye,enumerable:!0,configurable:!0,writable:!0}):ne[ae]=ye,ne}function dn(ne){var ae=pn(ne,"string");return typeof ae=="symbol"?ae:ae+""}function pn(ne,ae){if(typeof ne!="object"||!ne)return ne;var ye=ne[Symbol.toPrimitive];if(ye!==void 0){var Ee=ye.call(ne,ae||"default");if(typeof Ee!="object")return Ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ae==="string"?String:Number)(ne)}function ho(ne){const ae=ne.getBoundingClientRect(),{paddingTop:ye,paddingLeft:Ee,paddingRight:Pe,paddingBottom:Ze}=getComputedStyle(ne),Ct=parseInt(ye),wt=parseInt(Ee),Mt=parseInt(Pe),Vt=parseInt(Ze);return{top:ae.top+Ct,left:ae.left+wt,width:ae.width-(wt+Mt),height:ae.height-(Ct+Vt)}}let qn=document.createElement("canvas").getContext("2d");qn.font="12px -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif";const So=ne=>qn.measureText(ne);class Ut extends r.PureComponent{constructor(){var ae;super(),ae=this,wo(this,"hideTip",ye=>{clearTimeout(this.timer),this.timer=null;const Ee=this.props.children.props;Ee.onMouseLeave&&Ee.onMouseLeave(ye),this.state.showTip&&this.setState({showTip:!1})}),wo(this,"startHover",ye=>{const{isTruncated:Ee,hangingTime:Pe}=this.props,Ze=this.props.children.props;Ze.onMouseEnter&&Ze.onMouseEnter(ye);const{isShowTipsByTarget:Ct}=this.props;Ct(this.tip,(0,o.findDOMNode)(this),ye)&&(!Ee||this.detectTruncation(this.tip))&&(Pe?this.timer=setTimeout(()=>{this.setState(wt=>{if(!wt.showTip)return{showTip:!0}})},Pe):this.setState({showTip:!0}))}),wo(this,"onHiddenTips",ye=>{const{onMouseEvent:Ee}=this.props,Pe=this.props.children.props;Pe[Ee]&&Pe[Ee](ye),this.state.showTip&&this.setState({showTip:!1})}),wo(this,"detectTruncation",function(ye){return ye===void 0&&(ye=ae.$ellipsis),ye.offsetWidth<ye.scrollWidth}),wo(this,"adjustPositionForToolTips",()=>{const{direction:ye,distance:Ee,forceDirection:Pe,content:Ze,maxWidth:Ct}=this.props,wt={direction:ye,distance:Ee,forceDirection:Pe},{sourceNodePosition:Mt}=Fn((0,o.findDOMNode)(this),this.tip,wt),Vt=document.body.clientWidth,on=Math.min(Ct,So(Ze).width),tn=Ze&&typeof Ze=="string"?on+16:0;for(;Mt.left+tn>Vt;)Mt.left-=5;this.setState({tipPosition:Mt})}),wo(this,"setTipsRef",ye=>this.tip=ye),this.state={showTip:!1,tipPosition:{}}}componentDidUpdate(ae,ye){(!ye.showTip&&this.state.showTip||this.state.showTip&&ae.content!==this.props.content)&&this.adjustPositionForToolTips(),setTimeout(()=>{this.tip&&this.tip.classList&&this.tip.classList.add("show")},10)}render(){const{children:ae,content:ye,isShowTipsByProps:Ee,isShowTips:Pe,onMouseEvent:Ze,maxWidth:Ct,autoHeight:wt,isHideMouseDown:Mt,hotKey:Vt}=this.props,{showTip:on,tipPosition:tn}=this.state,ln={key:"trigger"};Ee&&Pe&&(ln.onMouseEnter=this.startHover,ln.onMouseLeave=this.hideTip,Mt&&(ln.onMouseDown=this.hideTip),Ze&&(ln[Ze]=this.onHiddenTips));const bn=r.Children.only(ae),Gn=(0,r.cloneElement)(bn,ln);let so=null;if(on&&Ee&&Pe){const eo={maxWidth:Ct,...tn,whiteSpace:wt?"wrap":"nowrap"};so=ye&&(0,ke.jsx)(Rn,{children:(0,ke.jsx)(Mo,{style:eo,ref:this.setTipsRef,children:(0,ke.jsxs)("span",{children:[ye,Vt&&(0,ke.jsx)("span",{className:"shortcut-key",children:Vt})]})})},"portal")}return[Gn,so]}}wo(Ut,"propTypes",{isTruncated:s().bool,forceDirection:s().bool,isShowTipsByProps:s().bool,isShowTips:s().bool,autoHeight:s().bool,children:s().node.isRequired,content:s().node,maxWidth:s().number,hangingTime:s().number,onMouseEvent:s().string,direction:s().string,distance:s().number,isShowTipsByTarget:s().func,isHideMouseDown:s().bool,hotKey:s().string}),wo(Ut,"defaultProps",{direction:"up",distance:3,forceDirection:!1,isShowTipsByProps:!0,isShowTips:!0,isShowTipsByTarget:()=>!0,isTruncated:!1,onMouseEvent:"",maxWidth:void 0,isHideMouseDown:!0,autoHeight:!1});const an=()=>[{name:po("popup.colorPanel.basic"),key:"theme",colors:["transparent","#000000","#FF2525","#FF6200","#fcca00","#27B148","#00C7FF","#3291F8","#A411D1","#8CA2AA","#505559","#FF7272","#FF9959","#FEDD59","#52CC6F","#59DBFF","#7AB8FB","#C465E2","#C1CDD1","#C2C7CC","#FFB3B3","#FFC9A6","#FEEDA6","#7EE697","#A6ECFF","#B8D9FD","#E0ACEF","#EDF1F2","#E1E3E6","#FFE9E9","#FFEFE5","#FFFAE5","#DDFAE4","#E5FAFF","#EBF4FF","#F6E7FB"]},{name:"Ant Design",key:"ant",colors:["#fbfbfb","#F7F7F7","#F5F5F5","#E9E9E9","#D9D9D9","#BFBFBF","#919191","#5A5A5A","#404040","#FFF1F0","#FFCCC7","#FFA39E","#FF7875","#FF4D4F","#F5222D","#CF1322","#A8071A","#820014","#FFF7E6","#FFE7BA","#FFD591","#FFC069","#FFA940","#FA8C16","#D46B08","#AD4E00","#873800","#FEFFE6","#FFFFB8","#FFFB8F","#FFF566","#FFEC3D","#FADB14","#D4B106","#AD8B00","#876800","#F6FFED","#D9F7BE","#B7EB8F","#95DE64","#73D13D","#52C41A","#389E0D","#237804","#135200","#E6FFFB","#B5F5EC","#87E8DE","#5CDBD3","#36CFC9","#13C2C2","#08979C","#006D75","#00474F","#E6F7FF","#BAE7FF","#91D5FF","#69C0FF","#40A9FF","#1890FF","#096DD9","#0050B3","#003A8C","#F9F0FF","#EFDBFF","#D3ADF7","#B37FEB","#9254DE","#722ED1","#531DAB","#391085","#22075e","#FFF0F6","#FFD6E7","#FFADD2","#FF85C0","#F759AB","#EB2F96","#C41D7F","#9E1068","#780650"]},{name:"Apple iOS UI",key:"apple",colors:["#FF3A30","#FF2D55","#FF9502","#FFCB01","#34C758","#5AC8FA","#007AFF","#5756D7","#AF52DE","#8E8E93","#AEAEB2","#C7C7CC","#E5E5EA","#F2F2F7"]},{name:"Material Design",key:"Material",colors:["#FF1744","#F50057","#D500F9","#651FFF","#3D5AFE","#2979FF","#00B0FF","#00E5FF","#1DE9B6","#00E676","#76FF03","#C6FF00","#FFEA00","#FFC400","#FF9100","#FF3D00","#212121","#424242","#616161","#757575","#9E9E9E","#BDBDBD","#E0E0E0","#EEEEEE","#F5F5F5","#FAFAFA","#FFFFFF"]},{name:po("settingPanel.linearGradient"),key:"lg",colors:[{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,1],colors:[[.996,.639,.451,1],[1,.404,.545,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,.504,1],colors:[[.996,.337,.302,1],[.984,.608,.212,1],[.976,.792,.149,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,.42,1],colors:[[.953,.941,.643,1],[.929,.914,.463,1],[.902,.882,.282,1]]},{v:!0,blend:1,type:1,o:1,x:.5,y:1.207,complex:{a:-.7069999999999999,b:-.707,c:.707,d:-.7069999999999999},stops:[0,1],colors:[[.788,1,.749,1],[.047,.643,.318,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,.5,1],colors:[[.678,.792,.667,1],[.518,.686,.498,1],[.357,.58,.329,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,.5,1],colors:[[.608,.89,.878,1],[.349,.769,.769,1],[.086,.643,.655,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,.5,.99],colors:[[.51,.82,.965,1],[.161,.714,.957,1],[0,.537,.804,1]]},{v:!0,blend:1,type:1,o:1,x:1,y:0,complex:{a:6123233995736766e-32,b:1,c:-1,d:6123233995736766e-32},stops:[0,1],colors:[[0,.482,.827,1],[.012,.263,.451,1]]},{v:!0,blend:1,type:1,o:1,x:1,y:0,complex:{a:6123233995736766e-32,b:1,c:-1,d:6123233995736766e-32},stops:[0,1],colors:[[.482,.196,.698,1],[.251,.102,.365,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[.19,.44,.64,.84],colors:[[1,.725,.725,1],[.996,.62,.624,1],[1,.561,.557,1],[1,.451,.451,1]]},{v:!0,blend:1,type:1,o:1,x:.5,y:-.207,complex:{a:.707,b:.7069999999999999,c:-.7069999999999999,d:.707},stops:[.4,1],colors:[[1,.863,.565,1],[.992,.745,.161,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,.5,1],colors:[[.965,.82,.655,1],[.961,.741,.486,1],[.957,.659,.314,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,1],colors:[[1,.945,.624,1],[.678,.882,.722,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[.06,1],colors:[[.494,.784,.733,1],[.937,.949,.714,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,.42,1],colors:[[.769,.894,.859,1],[.671,.851,.792,1],[.569,.808,.725,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,.5,1],colors:[[.725,.89,.957,1],[.596,.843,.945,1],[.467,.796,.929,1]]},{v:!0,blend:1,type:1,o:1,x:-.183,y:.683,complex:{a:.4999999999999999,b:-.8660000000000001,c:.8660000000000001,d:.4999999999999999},stops:[0,.99],colors:[[.231,.714,.996,1],[.557,.298,.718,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,.506,1],colors:[[.988,.851,.871,1],[.925,.737,.8,1],[.651,.553,.729,1]]},{v:!0,blend:1,type:1,o:1,x:-.207,y:.5,complex:{a:.707,b:-.7069999999999999,c:.7069999999999999,d:.707},stops:[0,.52,.99],colors:[[.976,.878,.894,1],[.988,.659,.659,1],[1,.584,.584,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,1],colors:[[.973,.855,.467,1],[.929,.42,.788,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,1],colors:[[.537,.882,.933,1],[1,.765,.831,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,.99],colors:[[.788,1,.749,1],[1,.69,.745,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,1],colors:[[.576,.91,.835,1],[.627,.678,.882,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,.5,1],colors:[[.922,.584,.98,1],[.388,.816,.976,1],[.471,.984,.576,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,1],colors:[[.78,.706,.925,1],[1,.733,.737,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,1],colors:[[.741,.839,.988,1],[.855,.337,.325,1]]},{v:!0,blend:1,type:1,o:1,x:0,y:0,complex:{a:1,b:0,c:0,d:1},stops:[0,.5,1],colors:[[.835,.635,.867,1],[.91,.753,.667,1],[.98,.867,.467,1]]}]},{name:po("settingPanel.radialGradient"),key:"rg",colors:[{v:!0,blend:1,type:2,o:1,x:0,y:1,complex:{a:6123233995736766e-32,b:-1,c:1,d:6123233995736766e-32},stops:[.47,.63,.73,.82,.99],colors:[[.992,.784,.957,1],[.957,.988,.702,1],[.698,.984,.714,1],[.69,.933,.976,1],[.902,.69,.984,1]]},{v:!0,blend:1,type:2,o:1,x:1,y:1,complex:{a:6123233995736766e-32,b:-1,c:1,d:6123233995736766e-32},stops:[0,1],colors:[[.38,.847,.863,1],[.91,.251,.969,1]]},{v:!0,blend:1,type:2,o:1,x:1,y:1,complex:{a:6123233995736766e-32,b:-1,c:1,d:6123233995736766e-32},stops:[.03,.487,1],colors:[[.761,1,.847,1],[.541,.714,.91,1],[.322,.431,.973,1]]},{v:!0,blend:1,type:2,o:1,x:.5,y:.5,complex:{a:-.5,b:6123233995736766e-32,c:-6123233995736766e-32,d:-.5},stops:[0,1],colors:[[.565,.996,.624,1],[.008,.792,.992,1]]},{v:!0,blend:1,type:2,o:1,x:1,y:1,complex:{a:6123233995736766e-32,b:-1,c:1,d:6123233995736766e-32},stops:[0,.5,1],colors:[[.976,.502,.004,1],[.839,.871,.561,1],[.212,.733,.651,1]]},{v:!0,blend:1,type:2,o:1,x:1,y:1,complex:{a:6123233995736766e-32,b:-1,c:1,d:6123233995736766e-32},stops:[0,.32,.58,.86],colors:[[.922,.31,.18,1],[.957,.804,.576,1],[.439,.694,.902,1],[.161,.345,.584,1]]},{v:!0,blend:1,type:2,o:1,x:1,y:1,complex:{a:6123233995736766e-32,b:-1,c:1,d:6123233995736766e-32},stops:[.01,.31,.62,.98],colors:[[.961,.714,.431,1],[.89,.475,.494,1],[.596,.42,.675,1],[.298,.333,.682,1]]}]}],wn=["\u6CE2\u65AF\u83CA","\u843D\u65E5\u4F59\u6656","\u9999\u69AD\u4E3D\u820D","\u722C\u5C71\u864E\u7684\u811A","\u7EFF\u8272\u591A\u8089","1837\u84DD","\u5546\u52A1\u6E10\u53D8\u84DD","\u5927\u6D77\u7684\u4F20\u8BF4","\u7D2B\u8272\u70DF\u82B1","\u8349\u8393\u5976\u971C","\u6A58\u5B50\u6C7D\u6C34","\u7ACB\u79CB","\u54C8\u5BC6\u74DC","\u9752\u67E0\u5473","\u4E00\u7247\u8584\u8377","\u6625\u65E5\u6674","\u79D1\u6280\u611F","\u85B0\u8863\u8349","\u6C34\u871C\u6843","\u5C11\u5973\u65F6\u4EE3","\u51B0\u6FC0\u51CC","\u9A6C\u5361\u9F99","\u5C0F\u7CBE\u7075","\u68C9\u82B1\u7CD6","\u9999\u828B\u5976\u8336","\u5E72\u67AF\u73AB\u7470","\u5348\u540E\u5FAE\u91BA"],fn=["\u5F69\u8679\u751C\u5FC3","\u5706\u821E\u66F2","\u62C2\u6653","\u6D77\u84DD\u4E4B\u5FC3","\u82A6\u82C7\u4E1B","\u5C11\u5E74\u7684\u68A6","\u5915\u9633\u665A\u971E"],mn={theme:"\u901A\u7528\u989C\u8272",ant:"Ant Design",apple:"Apple IOS UI",Material:"Material Design",lg:"\u7EBF\u6027\u6E10\u53D8",rg:"\u5F84\u5411\u6E10\u53D8",favorite:"\u6211\u7684\u6536\u85CF"};class Sn extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"state",{index:-1,showDeleteMenu:!1}),(0,n.A)(this,"handleChangeSelect",ae=>{this.props.onChangeSelect(ae),this.setState({index:-1})}),(0,n.A)(this,"getOpacityPerc",ae=>{if(typeof ae!="string")return!1;const ye=ae.split(","),Ee=ye.length;return Ee>3&&+ye[Ee-1].replace(")","")!=1}),(0,n.A)(this,"handleSelect",(ae,ye,Ee)=>{const{currentSelect:Pe}=this.props;this.setState({index:Ee}),ae.button===2&&Pe==="favorite"?this.setState({showDeleteMenu:{left:ae.clientX,top:ae.clientY-18}}):(this.props.handleSelect(ye,mn[Pe],1),this.setState({showDeleteMenu:!1}))}),(0,n.A)(this,"toggleShowColorList",()=>{const{isShowColorList:ae,onChangeShowColorList:ye}=this.props;ye(!ae),this.props.onToggleExpand()}),(0,n.A)(this,"getSolidColor",(ae,ye)=>{const{index:Ee}=this.state,[Pe,Ze=1]=ae.split("&"),Ct=f()("current-palette-color-li gradient-bg",{transparent:ae==="transparent"},{"is-active":Ee===ye&&this.props.isFocus});return(0,ke.jsx)("li",{className:Ct,onMouseDown:wt=>this.handleSelect(wt,ae,ye),children:(0,ke.jsx)("div",{className:"color-box",style:{backgroundColor:Pe,opacity:Number(Ze)}})})}),(0,n.A)(this,"getGradientColor",(ae,ye)=>{const{index:Ee}=this.state,Pe=f()("current-palette-color-li gradient-bg",{"is-active":Ee===ye&&this.props.isFocus});return(0,ke.jsx)("li",{className:Pe,onMouseDown:Ze=>this.handleSelect(Ze,ae,ye),children:(0,ke.jsx)(Oe,{color:ae,attr:"dropDown",index:ye,alpha:ae.o*100})})}),(0,n.A)(this,"handleDelete",()=>{const{onDeleteFavorite:ae}=this.props,{index:ye}=this.state;ae(ye),this.setState({showDeleteMenu:!1})}),(0,n.A)(this,"handleClose",()=>{this.setState({showDeleteMenu:!1})})}render(){const{colorPanelList:ae,currentSelect:ye="theme",onAddToFavorite:Ee}=this.props,{showDeleteMenu:Pe}=this.state,{isShowColorList:Ze}=this.props,Ct=ae.filter(on=>{let{key:tn}=on;return tn!=="history"}).map(on=>{let{key:tn,name:ln}=on;return{value:tn,label:ln}}),{colors:wt}=ae.find(on=>on.key===ye)||{},Mt=document.documentElement.lang,Vt=ye==="lg"?wn:ye==="rg"?fn:null;return(0,ke.jsxs)("div",{className:"panel-color-list",style:{paddingTop:0},children:[(0,ke.jsxs)("header",{className:f()({"is-alone":!Ze}),children:[(0,ke.jsx)(Jt,{width:140,value:ye,optionList:Ct,selectWidth:Mt==="en"?120:118,onChange:this.handleChangeSelect}),(0,ke.jsxs)("div",{className:"btns-wp",children:[ye==="favorite"&&(0,ke.jsx)("div",{className:"icon add-to-favorite",onClick:Ee,children:Nt}),(0,ke.jsx)("div",{className:f()("icon","down-arrow",{"is-rotate":!Ze}),onClick:this.toggleShowColorList,children:Qt})]})]}),Ze&&(0,ke.jsx)("ul",{className:f()("current-palette","drop-down-color-list",{"color-palette-list":wt&&wt.length>0}),style:{marginTop:-5},children:wt&&wt.length>0?wt.map((on,tn)=>Vt?(0,ke.jsx)(Ut,{content:Vt[tn],direction:"down",children:(0,ke.jsx)("div",{className:"current-palette-color "+(this.getOpacityPerc(on)?"current-palette-color-imagback":""),children:typeof on=="string"?this.getSolidColor(on,tn):this.getGradientColor(on,tn)})},tn):(0,ke.jsx)("div",{className:"current-palette-color "+(this.getOpacityPerc(on)?"current-palette-color-imagback":""),children:typeof on=="string"?this.getSolidColor(on,tn):this.getGradientColor(on,tn)},tn)):(0,ke.jsxs)("div",{className:"block",children:[(0,ke.jsx)("div",{className:"placeholder-icon"}),ye==="favorite"&&(0,ke.jsx)("span",{children:po("components.addToCollection")})]})}),ye==="favorite"&&Pe&&(0,ke.jsx)($e.Ay,{position:Pe,style:{minWidth:55,height:30,padding:"4px 0"},onClose:this.handleClose,children:(0,ke.jsx)($e.Dr,{text:po("common.delete"),onClick:this.handleDelete})})]})}}const Tn=ne=>{ne.stopPropagation(),ne.nativeEvent.stopImmediatePropagation()},un=c.Ay.div.withConfig({displayName:"styles__StyledHSVPicker",componentId:"sc-i7fbzf-0"})([".inline{display:flex;flex-direction:row;width:240px;height:188px;margin-left:-15px;padding:16px 16px 5px 16px;.s-v-plane{position:relative;width:100%;height:100%;background-clip:content-box;.pointer{position:absolute;width:16px;height:16px;margin:calc(-14px / 2);box-shadow:0px 1px 4px 0px #00000033;border:3px solid ",";border-radius:50%;background-color:transparent;}}}.row{display:flex;align-items:center;height:52px;}.outside-color-picker-btn{width:24px;height:24px;margin-left:-5px;margin-right:8px;cursor:pointer;border-radius:4px;display:flex;justify-content:center;align-items:center;background:transparent;color:",";&:hover{background:",";}&.is-close{svg{path{fill:",";}}}}.h-a-bands{display:flex;flex-direction:row;align-items:center;flex:1;}.h-band,.a-band{position:relative;height:10px;border:0.5px solid rgba(0,0,0,0.12);border-radius:8px;cursor:pointer;background-clip:padding-box;.rail{position:absolute;top:1px;bottom:1px;left:calc(5px / 2 + 1px);right:calc(5px / 2 + 1px);}.slider{position:absolute;top:-3.5px;width:14px;height:14px;margin-left:calc(-14px / 2);background:transparent;border:solid 2px #ffffff;box-shadow:0 1px 4px 0 rgba(0,0,0,0.2);border-radius:50%;z-index:2;pointer-events:none;}}.h-band{width:180px;margin-bottom:10px;background-image:linear-gradient(to left,red,#ff0080,magenta,#8000ff,blue,#0080ff,cyan,#00ff80,lime,#80ff00,yellow,#ff8000,red);.rail{top:0;bottom:9px;left:4px;}}.a-band{width:180px;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:6px 6px;background-position:0 0,0 3px,3px -3px,-3px 0;}.preview-container{width:24px;height:24px;border:1px solid ",";border-radius:2px;background-image:linear-gradient(45deg,#ccc 25%,transparent 0),linear-gradient(-45deg,#ccc 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ccc 0),linear-gradient(-45deg,transparent 75%,#ccc 0);background-size:12px 12px;background-position:-1px -1px,-1px 5px,5px -7px,-7px -1px;}"],ne=>ne.theme.color_text_btn,ne=>ne.theme.color_text_L1,ne=>ne.theme.icon_bg_hover,ne=>ne.theme.color_text_L1,ne=>ne.theme.borderColor),An=c.Ay.div.withConfig({displayName:"styles__StyledLayer",componentId:"sc-i7fbzf-1"})(["position:relative;width:100%;height:100%;pointer-events:none;border-radius:6px;overflow:hidden;.base-hue-layer,.s-layer,.v-layer{position:absolute;width:100%;height:100%;pointer-events:none;}.base-hue-layer{background:",";width:calc(100% - 2px);height:calc(100% - 2px);left:2px;top:2px;border-radius:6px;overflow:hidden;}.s-layer{-ms-filter:\"progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#ffffff', endColorstr='#00ffffff')\";background:-moz-linear-gradient(left,white 0%,rgba(255,255,255,0) 100%);background:-webkit-gradient(linear,left top,right top,color-stop(0%,white),color-stop(100%,rgba(255,255,255,0)));background:-webkit-linear-gradient(left,white 0%,rgba(255,255,255,0) 100%);background:-o-linear-gradient(left,white 0%,rgba(255,255,255,0) 100%);background:-ms-linear-gradient(left,white 0%,rgba(255,255,255,0) 100%);background:linear-gradient(to right,white 0%,rgba(255,255,255,0) 100%);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#ffffff',endColorstr='#00ffffff');}.v-layer{-ms-filter:\"progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#00000000', endColorstr='#000000')\";background:-moz-linear-gradient(top,transparent 0%,black 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,transparent),color-stop(100%,black));background:-webkit-linear-gradient(top,transparent 0%,black 100%);background:-o-linear-gradient(top,transparent 0%,black 100%);background:-ms-linear-gradient(top,transparent 0%,black 100%);background:linear-gradient(to bottom,transparent 0%,black 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000',endColorstr='#000000',GradientType=0 );}"],ne=>ne.bg);class oo extends r.PureComponent{constructor(ae){super(ae),(0,n.A)(this,"$SVPlane",null),(0,n.A)(this,"$HBand",null),(0,n.A)(this,"$ABand",null),(0,n.A)(this,"setSVPlaneRef",Mt=>{this.$SVPlane=Mt}),(0,n.A)(this,"setHBandRef",Mt=>{this.$HBand=Mt}),(0,n.A)(this,"setABandRef",Mt=>{this.$ABand=Mt}),(0,n.A)(this,"_getBaseHue",Mt=>d.Q1.rgb2hex(d.Q1.hsv2rgb({h:Mt,s:1,v:1}))),(0,n.A)(this,"_getSVPointerStyle",(Mt,Vt)=>{const{h:on}=this.state,{r:tn,g:ln,b:bn}=d.Q1.hsv2rgb({h:on,s:Mt,v:Vt}),{color:Gn}=this.props,[,,,so]=Gn;return{top:100-Vt*100+"%",left:Mt*100+"%",background:"rgba("+tn+", "+ln+", "+bn+", "+so+")"}}),(0,n.A)(this,"_getSVValue",(Mt,Vt)=>{const on=this.$SVPlane.getBoundingClientRect();return{s:Math.min(1,Math.max(0,Mt-on.left)/on.width),v:1-Math.min(1,Math.max(0,Vt-on.top)/on.height)}}),(0,n.A)(this,"_getHPointerStyle",()=>{const{h:Mt}=this.state,Vt=this._getBaseHue(Mt);return{left:Mt*100+"%",backgroundColor:Vt}}),(0,n.A)(this,"_getAPointerStyle",Mt=>{const{h:Vt,s:on,v:tn}=this.state,{r:ln,g:bn,b:Gn}=d.Q1.hsv2rgb({h:Vt,s:on,v:tn});return{left:Mt*100+"%",backgroundColor:"rgba("+ln+", "+bn+", "+Gn+", "+Mt+")"}}),(0,n.A)(this,"_getHValue",Mt=>{const Vt=this.$HBand.getBoundingClientRect(),on=Math.min(1,Math.max(0,Mt-Vt.left)/Vt.width);return{h:Math.round(on*100)/100}}),(0,n.A)(this,"_getAValue",Mt=>{const Vt=this.$ABand.getBoundingClientRect(),on=Math.min(1,Math.max(0,Mt-Vt.left)/Vt.width);return{a:Math.round(on*100)/100}}),(0,n.A)(this,"handleDragSVPlane",Mt=>{Tn(Mt),Mt.preventDefault();const{color:Vt,onChange:on,onMouseDownCallback:tn,onMouseUpCallback:ln}=this.props,{h:bn}=this.state,[,,,Gn]=Vt;this.setState({changeInside:!0}),tn();const so=Co=>{if(Co.stopPropagation(),Co.stopImmediatePropagation(),Co.preventDefault(),!this.$SVPlane)return;const{s:ko,v:Ro}=this._getSVValue(Co.clientX,Co.clientY),{r:Bo,g:Fo,b:Ho}=d.Q1.hsv2rgb({h:bn,s:ko,v:Ro}),Lo=[Bo,Fo,Ho,Gn];this.setState({s:ko,v:Ro,changeInside:!0}),on({color:Lo},!0)},eo=Co=>{if(!this.$SVPlane)return;const{s:ko,v:Ro}=this._getSVValue(Co.clientX,Co.clientY),{r:Bo,g:Fo,b:Ho}=d.Q1.hsv2rgb({h:bn,s:ko,v:Ro}),Lo=[Bo,Fo,Ho,Gn];this.setState({s:ko,v:Ro}),on({color:Lo},!1),document.removeEventListener("mousemove",so),document.removeEventListener("mouseup",eo),this.setState({changeInside:!1}),ln()};document.addEventListener("mousemove",so),document.addEventListener("mouseup",eo)}),(0,n.A)(this,"handleDragHBand",Mt=>{Tn(Mt),Mt.preventDefault();const{color:Vt,onChange:on,onMouseDownCallback:tn,onMouseUpCallback:ln}=this.props,{s:bn,v:Gn}=this.state,[,,,so]=Vt;this.setState({changeInside:!0}),tn();const eo=ko=>{if(ko.stopPropagation(),ko.stopImmediatePropagation(),ko.preventDefault(),!this.$HBand)return;const{h:Ro}=this._getHValue(ko.clientX),{r:Bo,g:Fo,b:Ho}=d.Q1.hsv2rgb({h:Ro,s:bn,v:Gn}),Lo=[Bo,Fo,Ho,so];this.setState({h:Ro,changeInside:!0}),on({color:Lo},!0)},Co=ko=>{if(!this.$HBand)return;const{h:Ro}=this._getHValue(ko.clientX),{r:Bo,g:Fo,b:Ho}=d.Q1.hsv2rgb({h:Ro,s:bn,v:Gn}),Lo=[Bo,Fo,Ho,so];this.setState({h:Ro}),on({color:Lo},!1),document.removeEventListener("mousemove",eo),document.removeEventListener("mouseup",Co),this.setState({changeInside:!1}),ln()};document.addEventListener("mousemove",eo),document.addEventListener("mouseup",Co)}),(0,n.A)(this,"handleDragABand",Mt=>{Tn(Mt),Mt.preventDefault();const{a:Vt}=this._getAValue(Mt.clientX),{color:on,onChange:tn,onMouseDownCallback:ln,onMouseUpCallback:bn}=this.props;on[3]=Vt,this.setState({changeInside:!0}),ln();const Gn=eo=>{if(eo.stopPropagation(),eo.stopImmediatePropagation(),eo.preventDefault(),!this.$ABand)return;const{a:Co}=this._getAValue(eo.clientX);on[3]=Co,tn({color:on},!0),this.setState({changeInside:!0})},so=eo=>{if(!this.$ABand)return;const{a:Co}=this._getAValue(eo.clientX);on[3]=Co,tn({color:on},!1),document.removeEventListener("mousemove",Gn),document.removeEventListener("mouseup",so),this.setState({changeInside:!1}),bn()};document.addEventListener("mousemove",Gn),document.addEventListener("mouseup",so)}),(0,n.A)(this,"handleChangeShowGradientBar",()=>{const{isShowGradientBar:Mt,onChangeIsShowGradientBar:Vt}=this.props;Vt(!Mt)});const[ye,Ee,Pe]=ae.color,{s:Ze,v:Ct,h:wt}=d.Q1.rgb2hsv({r:ye,g:Ee,b:Pe});this.state={s:Ze,v:Ct,h:wt,changeInside:!1,currentTab:0}}static getDerivedStateFromProps(ae,ye){const[Ee,Pe,Ze]=ae.color,{r:Ct,g:wt,b:Mt}=d.Q1.hsv2rgb({h:ye.h,s:ye.s,v:ye.v});if([Ee,Pe,Ze].toString()!==[Ct,wt,Mt].toString()&&!ye.changeInside){const{s:Vt,v:on,h:tn}=d.Q1.rgb2hsv({r:Ee,g:Pe,b:Ze});return{s:Vt,v:on,h:tn}}return null}render(){const{color:ae,isEyedropperOpen:ye,toggleColorPicker:Ee,colorPickerEnabled:Pe}=this.props,[,,,Ze]=ae,{h:Ct,s:wt,v:Mt}=this.state,Vt=this._getBaseHue(Ct),on=this._getSVPointerStyle(wt,Mt),tn=this._getHPointerStyle(),ln=this._getAPointerStyle(Ze);return(0,ke.jsxs)(un,{className:"hsv-picker padding-15",children:[(0,ke.jsx)("div",{className:"inline",children:(0,ke.jsxs)("section",{className:"s-v-plane",ref:this.setSVPlaneRef,onMouseDown:this.handleDragSVPlane,children:[(0,ke.jsxs)(An,{bg:Vt,children:[(0,ke.jsx)("div",{className:"base-hue-layer"}),(0,ke.jsx)("div",{className:"s-layer"}),(0,ke.jsx)("div",{className:"v-layer"})]}),(0,ke.jsx)("i",{className:"pointer",style:on,onMouseDown:this.handleDragSVPlane})]})}),(0,ke.jsxs)("div",{className:"row",children:[(0,ke.jsx)(Ut,{content:"\u53D6\u8272\u5668",hotKey:"I",direction:"down",hangingTime:"1000",children:(0,ke.jsx)("div",{className:f()("outside-color-picker-btn",{"color-picker-enabled":Pe},{"is-close":!ye}),onClick:Ee,children:ye?(0,ke.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",children:[(0,ke.jsx)("rect",{width:"24",height:"24",rx:"4",fill:"#0077FF","fill-opacity":"0.15"}),(0,ke.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.9142 5.24234C19.6598 5.98788 19.6112 7.25801 18.8289 8.1483L18.7122 8.2728L16.2878 10.6972C16.2196 10.7654 16.1486 10.829 16.0753 10.8878L17.8543 12.6668C18.4401 13.2526 18.4401 14.2023 17.8543 14.7881C17.2685 15.3739 16.3188 15.3739 15.733 14.7881L14.4957 13.5509C14.4956 13.551 14.4955 13.5511 14.4953 13.5513L8.55563 19.491C7.94111 20.1055 7.17438 20.4902 6.40809 20.5901C5.64078 20.6902 4.83142 20.5044 4.24228 19.9152C3.10291 18.7759 3.46287 16.9403 4.50402 15.7739L4.51111 15.7659L4.65905 15.6094L10.6062 9.6622C10.6064 9.66206 10.6065 9.66192 10.6066 9.66179L9.36903 8.42417C8.78324 7.83838 8.78324 6.88863 9.36903 6.30285C9.95481 5.71706 10.9046 5.71706 11.4903 6.30285L13.2687 8.0812C13.2926 8.0515 13.3172 8.02217 13.3426 7.99324L13.4594 7.86874L15.8838 5.44437C16.7764 4.55174 18.1332 4.46129 18.9142 5.24234ZM11.6673 10.7224C11.6672 10.7226 11.667 10.7227 11.6669 10.7229L5.7347 16.6551L5.61639 16.7803C4.87011 17.6221 4.95226 18.5039 5.30294 18.8546C5.49484 19.0465 5.80414 19.1562 6.21408 19.1027C6.62503 19.0491 7.09413 18.8312 7.49497 18.4303L13.4347 12.4906C13.4348 12.4905 13.4349 12.4903 13.4351 12.4902L11.6673 10.7224Z",fill:"#0077FF"})]}):To})}),(0,ke.jsxs)("div",{className:"hand-wrap",children:[(0,ke.jsx)("div",{className:"h-band",onMouseDown:this.handleDragHBand,children:(0,ke.jsx)("div",{className:"rail",ref:this.setHBandRef,children:(0,ke.jsx)("span",{className:"slider",style:tn})})}),(0,ke.jsx)("div",{className:"h-a-bands",children:(0,ke.jsxs)("div",{className:"a-band",onMouseDown:this.handleDragABand,children:[(0,ke.jsx)("div",{style:{width:"100%",height:"100%",borderRadius:8,background:"linear-gradient(to right, transparent 0%, "+d.Q1.rgb2rgbaStr({...d.Q1.hsv2rgb({h:Ct,s:wt,v:Mt}),a:1})+" 100%)"}}),(0,ke.jsx)("div",{className:"rail",ref:this.setABandRef,children:(0,ke.jsx)("span",{className:"slider",style:ln})})]})})]})]})]})}}var No=e(45525),Vo=e.n(No),Ko=[15,18,'<path d="M9.32 16.345H5.68c.062.422.248.798.518 1.085.331.351.793.57 1.302.57s.97-.219 1.302-.57c.27-.287.456-.663.517-1.085zM8.528 1.901a1.275 1.275 0 0 0-.233-.36 1.09 1.09 0 0 0-.796-.348c-.31 0-.593.132-.796.348a1.275 1.275 0 0 0-.233.36 4.945 4.945 0 0 1 2.058 0zm-3.278.42A2.444 2.444 0 0 1 5.908.7c.41-.432.97-.7 1.592-.7.622 0 1.183.268 1.59.7.395.416.642.989.66 1.62a5.52 5.52 0 0 1 1.548 1.15 5.87 5.87 0 0 1 1.578 4.028c0 .878.096 2.046.276 3.214.157 1.026.38 2.055.665 2.89.041.12.149.198.262.198.253 0 .482.11.65.286l.012.013a1.01 1.01 0 0 1-.011 1.365.902.902 0 0 1-.651.286H.918a.89.89 0 0 1-.648-.286l-.01-.014a1.015 1.015 0 0 1 .012-1.365.89.89 0 0 1 .647-.286.287.287 0 0 0 .273-.225c.28-.83.5-1.846.657-2.863.18-1.168.273-2.336.273-3.214 0-1.569.608-2.993 1.581-4.028a5.52 5.52 0 0 1 1.549-1.15z"/>'],zo=[32,32,'<circle cx="16" cy="16" r="16"/><path class="fore" d="M16 14.336l4.992-4.991a1.177 1.177 0 0 1 1.663 1.663L17.664 16l4.991 4.992a1.177 1.177 0 1 1-1.663 1.663L16 17.664l-4.992 4.991a1.177 1.177 0 1 1-1.663-1.663L14.336 16l-4.991-4.992a1.177 1.177 0 0 1 1.663-1.663L16 14.336z"/>'],xs=[18,18,'<path d="M16 11a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm-7 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm-7 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4z"/>'],ys=[16,16,'<path d="M8.825 8.05a3.366 3.366 0 0 0 1.316-2.662C10.141 3.52 8.604 2 6.713 2c-1.89 0-3.428 1.52-3.428 3.388a3.37 3.37 0 0 0 1.316 2.663C2.495 8.883 1 10.917 1 13.292v1.13c0 .311.256.564.571.564h10.284a.568.568 0 0 0 .571-.565v-1.129c0-2.376-1.494-4.41-3.601-5.241zM6.713 3.13C7.973 3.13 9 4.141 9 5.387c0 1.245-1.025 2.258-2.286 2.258-1.26 0-2.285-1.013-2.285-2.258 0-1.246 1.025-2.259 2.285-2.259zm4.57 10.727h-9.14v-.565c0-2.49 2.05-4.517 4.57-4.517 2.52 0 4.57 2.026 4.57 4.517v.565zm.97-6.01a4.492 4.492 0 0 1 2.456 4.007v.873a.568.568 0 0 1-.57.565.568.568 0 0 1-.572-.565v-.873a3.378 3.378 0 0 0-2.587-3.28.565.565 0 0 1-.444-.327c-.016-.034-.016-.07-.024-.106-.005-.021-.011-.042-.014-.064a.542.542 0 0 1 .004-.131c.002-.023-.003-.045.002-.068.004-.014.013-.024.017-.036.009-.025.021-.047.033-.07a.556.556 0 0 1 .085-.134l.015-.014a.558.558 0 0 1 .182-.125 1.695 1.695 0 0 0 1.017-1.546 1.7 1.7 0 0 0-1.268-1.637.564.564 0 1 1 .297-1.09 2.833 2.833 0 0 1 2.113 2.727 2.8 2.8 0 0 1-.742 1.894z"/>'],ss=[24,24,'<path d="M12 24C5.373 24 0 18.627 0 12S5.373 0 12 0s12 5.373 12 12-5.373 12-12 12zm0-2.25c5.385 0 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25 2.25 6.615 2.25 12s4.365 9.75 9.75 9.75zm1.926-5.643c-.942 1.396-1.902 2.475-3.516 2.475-1.101-.177-1.554-.957-1.314-1.75l2.076-6.79c.05-.165-.035-.345-.188-.397-.154-.053-.454.144-.713.425l-1.255 1.49c-.034-.25-.004-.664-.004-.83.944-1.399 2.492-2.501 3.543-2.501.999.1 1.47.89 1.296 1.755l-2.09 6.822a.318.318 0 0 0 .196.36c.154.052.476-.144.737-.425l1.254-1.49c.035.25-.022.69-.022.854v.002zm-.363-8.784c-.795 0-1.439-.57-1.439-1.41 0-.843.646-1.413 1.439-1.413S15 5.07 15 5.912c0 .841-.645 1.411-1.437 1.411z"/>'],le=[12,12,'<path d="M6 0a6 6 0 1 0 0 12A6 6 0 1 0 6 0zm3.646 9.646A5.13 5.13 0 0 1 6 11.156a5.127 5.127 0 0 1-3.646-1.51A5.13 5.13 0 0 1 .844 6a5.127 5.127 0 0 1 1.51-3.646A5.13 5.13 0 0 1 6 .844a5.127 5.127 0 0 1 3.646 1.51A5.13 5.13 0 0 1 11.156 6a5.127 5.127 0 0 1-1.51 3.646zM5.939 7.78a.422.422 0 0 1-.42-.464c.057-.585.486-1.057.958-1.53.756-.755.769-.995.782-1.25a1.085 1.085 0 0 0-.31-.81 1.317 1.317 0 0 0-.951-.405h-.003a1.262 1.262 0 0 0-1.257 1.26.422.422 0 1 1-.844 0c0-.561.218-1.089.614-1.486a2.089 2.089 0 0 1 1.485-.618 2.165 2.165 0 0 1 1.568.668c.376.396.568.906.54 1.436-.03.542-.196.97-1.028 1.802-.421.422-.687.738-.714 1.016a.422.422 0 0 1-.42.381zm-.523 1.234a.507.507 0 1 0 1.015 0 .507.507 0 0 0-1.015 0z"/>'],At=[12,12,'<path d="M6 0a6 6 0 1 0 0 12A6 6 0 1 0 6 0zm0 8a.667.667 0 0 1-.667-.667v-4a.667.667 0 0 1 1.334 0v4A.667.667 0 0 1 6 8zm.667 1.333a.666.666 0 1 1-1.332.002.666.666 0 0 1 1.332-.002z"/>'],Pt=[14,14,'<path d="M12 9.576l6.06-6.061a1.714 1.714 0 1 1 2.425 2.424L14.425 12l6.06 6.06a1.714 1.714 0 1 1-2.424 2.425L12 14.425l-6.06 6.06a1.714 1.714 0 1 1-2.425-2.424L9.575 12l-6.06-6.06a1.714 1.714 0 1 1 2.424-2.425L12 9.575z"></path>'],Re=[14,14,'<path d="M8.253 10.253l3.89-4.596.706.707.707-.707-4.95-4.95-.707.707.708.707-4.597 3.89-1.767-.354-.707.707L4.01 8.839.828 12.728l.708.707 3.889-3.182 2.474 2.475.708-.707z"/>'],yt=[20,20,'<path d="M5.5 3.833h11.667c.92 0 1.666.747 1.666 1.667v11.667c0 .92-.746 1.666-1.666 1.666H5.5c-.92 0-1.667-.746-1.667-1.666V5.5c0-.92.747-1.667 1.667-1.667zm1.667 3.334V15.5H15.5V7.167H7.167z"/><path d="M15.5 2.167H3.833c-.92 0-1.666.746-1.666 1.666V15.5C1.247 15.5.5 14.754.5 13.833V2.167C.5 1.247 1.246.5 2.167.5h11.666c.92 0 1.667.746 1.667 1.667z"/>'],Dt=[20,20,'<path d="M18.546 11.32c0 .405.322.734.718.734a.726.726 0 0 0 .718-.734.726.726 0 0 0-.718-.734.726.726 0 0 0-.718.734z" /><path d="M19.978 6.567l.002 9.49c0 1.617-1.278 2.927-2.854 2.927H2.856c-1.576 0-2.854-1.31-2.854-2.927V3.931c0-1.616 1.278-2.926 2.854-2.926l5.396.002c.207-.005.444.07.609.366L10.7 3.64h6.423c1.576 0 2.854 1.31 2.854 2.927zm-7.404 9.214l3.172-3.22a.768.768 0 0 0 .04-1.1L12.6 8.227a.735.735 0 0 0-1.05-.002.768.768 0 0 0-.016 1.08l1.921 1.951H4.74a.747.747 0 0 0-.738.75c0 .412.333.75.738.75h8.687L11.513 14.7a.772.772 0 0 0-.002 1.08.745.745 0 0 0 1.063 0z"/>'],Xt=[20,20,'<path d="M2.8 5.455h14.4V18a2 2 0 0 1-2 2H4.8a2 2 0 0 1-2-2V5.455zM7.3 9.09a.9.9 0 0 0-.9.9v5.473a.9.9 0 0 0 1.8 0V9.99a.9.9 0 0 0-.9-.9zm5.4 0a.9.9 0 0 0-.9.9v5.473a.9.9 0 0 0 1.8 0V9.99a.9.9 0 0 0-.9-.9zM8.2.909C8.2.407 8.603 0 9.1 0h1.8c.497 0 .9.407.9.91 0 .501.403.908.9.908h5.39a.91.91 0 0 1 0 1.818H1.91a.91.91 0 0 1 0-1.818H7.3c.497 0 .9-.407.9-.909z"/>'],Xn=[20,20,'<path d="M8.258 8.69L16.446.617c.8-.824 2.111-.824 2.935 0 .824.797.824 2.11 0 2.935l-8.215 8.071a2.38 2.38 0 0 1-.621.424l-3.356 1.49c-.596.267-1.109-.246-.865-.87l1.512-3.356a1.92 1.92 0 0 1 .421-.623zm9.193 2.534h-.001c.69 0 1.245.556 1.245 1.242v3.822A3.715 3.715 0 0 1 14.987 20H3.707A3.712 3.712 0 0 1 0 16.288V4.99c0-2.045 1.662-3.714 3.707-3.737h3.66a1.245 1.245 0 0 1 0 2.492h-3.66A1.24 1.24 0 0 0 2.463 4.99v11.298c0 .688.554 1.245 1.244 1.245h11.257c.69 0 1.243-.558 1.243-1.245v-3.822c0-.687.557-1.242 1.244-1.242z"/>'],Do=[20,20,'<path d="M5 6v10a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V6h2v10.846c0 1.19-.895 2.154-2 2.154H5c-1.105 0-2-.964-2-2.154V6h2zm3-5V.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5V1a1 1 0 0 0 1 1h4.5a1 1 0 0 1 0 2h-15a1 1 0 1 1 0-2H7a1 1 0 0 0 1-1zm5.741 10.864c.305.479.344 1.011.1 1.447-.249.437-.735.689-1.338.689h-1.67l-.695-.707.696-.707H12.5l-.58-.962.877.06.364-.782.58.962zM10.007 8.51l-.682 1.126-.384-.739-.856.016.69-1.14C9.09 7.279 9.544 7 10.028 7s.94.278 1.245.76l1.1 1.83-.253.965-.989-.246-1.089-1.815-.013-.02c-.007.012-.016.022-.023.036zm-2.508 4.075h1.775l-.514.707.513.708H7.496c-.6 0-1.086-.243-1.333-.667-.246-.423-.212-.958.093-1.468l.977-1.667.995-.22.256.926-.985 1.68z"/>'],Uo=[16,16,'<path d="M7.992 0a7.993 7.993 0 0 0 0 15.985.783.783 0 0 0 0-1.565 6.427 6.427 0 1 1 6.428-6.428.783.783 0 1 0 1.565 0A7.993 7.993 0 0 0 7.992 0z" fill-rule="nonzero"/>'],jo=[9,10,'<path d="M2.425 3.762h4.15V3.12c0-.506-.45-1.906-2.075-1.906-1.625 0-2.075 1.4-2.075 1.906v.643zm-1.3 0V3.12C1.125 1.324 2.55 0 4.5 0s3.375 1.324 3.375 3.119v.643h.345c.43 0 .78.35.78.78V9.22c0 .43-.35.78-.78.78H.78A.78.78 0 0 1 0 9.22V4.542c0-.43.35-.78.78-.78h.345z"/>'],as=[12,9,'<path d="M8.575 1.553L6.928 2.786a2.4 2.4 0 0 0-3.314 2.482L1.26 7.032C.456 6.256.004 5.446 0 5c-.01-1.029 2.49-4 6-4 .941 0 1.81.217 2.575.553zm1.798 1.124C11.4 3.542 12 4.515 12 5c0 .988-2.403 4-6 4a6.606 6.606 0 0 1-3.057-.758l1.692-1.268A2.4 2.4 0 0 0 8.28 4.245l2.094-1.568z"/><path d="M11.898.192a.476.476 0 0 1-.094.677L.801 8.905a.508.508 0 0 1-.7-.097.476.476 0 0 1 .095-.677L11.199.095a.508.508 0 0 1 .7.097z" fill-rule="nonzero"/>'],gs=[16,16,'<path d="M10 6V4.889A.889.889 0 0 0 9.111 4H8.89A.889.889 0 0 0 8 4.889V6H6.889A.889.889 0 0 0 6 6.889v.222c0 .491.398.889.889.889H8v1.111c0 .491.398.889.889.889h.222c.491 0 .889-.398.889-.889V8h1.111c.491 0 .889-.398.889-.889V6.89A.889.889 0 0 0 11.111 6H10zm-7.436 9.56l2.653-2.652a6.97 6.97 0 0 0 3.77 1.115 7.012 7.012 0 1 0-7.01-7.011c0 1.39.416 2.68 1.115 3.77L.44 13.435a1.502 1.502 0 1 0 2.124 2.126zM9.017 1.924a5.057 5.057 0 1 1 0 10.116 5.057 5.057 0 1 1 0-10.116z" fill-rule="nonzero"/>'],Eo=[16,16,'<path d="M2.564 15.56l2.653-2.652a6.97 6.97 0 0 0 3.77 1.115 7.012 7.012 0 1 0-7.01-7.011c0 1.39.416 2.68 1.115 3.77L.44 13.435a1.502 1.502 0 1 0 2.124 2.126zM9.017 1.924a5.057 5.057 0 1 1 0 10.116 5.057 5.057 0 1 1 0-10.116zM11.11 8c.491 0 .889-.398.889-.889V6.89A.889.889 0 0 0 11.111 6H6.89A.889.889 0 0 0 6 6.889v.222c0 .491.398.889.889.889h4.222z" fill-rule="nonzero"/>'],ws=[12,12,'<path d="M8.224 2.142L9.859 3.78l-7.026 7.014L1.175 11a.156.156 0 0 1-.174-.174l.206-1.66 7.017-7.023zm1.27-1.108a.117.117 0 0 0-.164 0l-.788.79 1.635 1.636.789-.79a.117.117 0 0 0-.006-.17L9.495 1.034z"/>'],Rs=[12,12,'<path d="M10.077 11.67l-1.99-1.99a5.227 5.227 0 0 1-2.828.837 5.259 5.259 0 1 1 5.259-5.258c0 1.043-.313 2.01-.837 2.828l1.989 1.988a1.128 1.128 0 0 1-1.593 1.595zM5.237 1.443a3.795 3.795 0 1 0 .002 7.59 3.795 3.795 0 0 0-.002-7.59z"/>'],As=[32,32,'<path d="M8.97 8.558a1.849 1.849 0 0 0-2.664 0L.552 14.457a1.963 1.963 0 0 0 0 2.73l5.754 5.9c.368.376.85.565 1.332.565.482 0 .964-.189 1.332-.565a1.966 1.966 0 0 0 0-2.73l-4.423-4.535 4.423-4.534a1.965 1.965 0 0 0 0-2.73zm21.686 5.912l-5.754-5.898a1.848 1.848 0 0 0-2.663 0 1.965 1.965 0 0 0 0 2.73l4.422 4.534-4.422 4.534a1.966 1.966 0 0 0 0 2.73c.367.377.85.566 1.331.566s.964-.19 1.332-.565l5.754-5.9a1.964 1.964 0 0 0 0-2.73z" fill-rule="nonzero"/><rect class="fore" transform="rotate(18 15.014 15.696)" x="13.585" y="2.125" width="2.857" height="27.143" rx="1.429"/>'],js=[32,32,'<path d="M15.786 29.786c-7.732 0-14-6.268-14-14s6.268-14 14-14 14 6.268 14 14-6.268 14-14 14zm0-3c6.075 0 11-4.925 11-11s-4.925-11-11-11-11 4.925-11 11 4.925 11 11 11z"/><path class="fore" d="M13.643 21.5c-.38 0-.707-.157-.945-.454-.237-.297-.369-.722-.369-1.194V11.72c0-.472.132-.897.37-1.193.237-.297.564-.455.944-.455.285 0 .58.094.87.274l6.175 4.078c.517.326.812.821.812 1.363 0 .547-.295 1.036-.828 1.374L14.54 21.21c-.317.198-.607.291-.897.291z" fill-rule="nonzero"/>'],Ls=[32,32,'<path class="fore" d="M20.567 7.637V4.575a.98.98 0 0 1 1.689-.676l5.238 5.498a1.96 1.96 0 0 1 0 2.703l-5.238 5.498a.98.98 0 0 1-1.69-.676v-3.248c-2.393-.281-5.635 1.815-9.726 6.288a.659.659 0 0 1-1.132-.578c1.565-7.6 5.184-11.516 10.859-11.747z"/><path d="M28.786 21.214v4.204a2.939 2.939 0 0 1-2.94 2.94H5.93A2.857 2.857 0 0 1 3.07 25.5V6.929A2.857 2.857 0 0 1 5.93 4.07h5.714a1.429 1.429 0 1 1 0 2.858h-4c-.947 0-1.714.767-1.714 1.714v15.143c0 .946.767 1.714 1.714 1.714h16.571c.947 0 1.715-.768 1.715-1.714v-2.572a1.429 1.429 0 0 1 2.857 0z"/>'],wi=[32,32,'<path d="M25.929 14.429v-6c0-.947-.768-1.715-1.715-1.715h-14v2.857h12.857v4.858c0 .473.384.857.858.857h1.142a.857.857 0 0 0 .858-.857z"/><path class="fore" d="M5.929 12.429h2.857a2.857 2.857 0 0 0 2.857-2.858V6.714a2.857 2.857 0 0 0-2.857-2.857H5.929A2.857 2.857 0 0 0 3.07 6.714v2.857a2.857 2.857 0 0 0 2.86 2.859z"/><path d="M5.929 17.571v6c0 .947.767 1.715 1.714 1.715h14v-2.857H8.786V17.57a.857.857 0 0 0-.857-.857H6.786a.857.857 0 0 0-.857.857z"/><path class="fore" d="M23.071 28.143h2.858a2.857 2.857 0 0 0 2.857-2.857v-2.857a2.857 2.857 0 0 0-2.857-2.858H23.07a2.857 2.857 0 0 0-2.857 2.858v2.857a2.857 2.857 0 0 0 2.857 2.857z"/>'],Fs=[32,32,'<g transform="translate(3 3)"><path d="M3.774 21.1c-.723.373-1.642.126-2.051-.55l-1.52-2.507c-.41-.676-.178-1.554.527-1.965l1.07-.624c.407-.237.737-.797.737-1.252l-.002-2.676c0-.454-.33-1.015-.737-1.252L.728 9.65C.025 9.24-.209 8.36.201 7.685l1.52-2.506c.411-.676 1.326-.924 2.052-.549l1.103.57c.42.217 1.095.208 1.51-.019l2.436-1.337c.414-.227.76-.778.772-1.232l.033-1.194C9.65.636 10.334.002 11.154.002L14.196 0c.821 0 1.504.629 1.526 1.415l.033 1.194c.012.454.358 1.006.772 1.234l2.436 1.338c.414.227 1.09.236 1.51.02l1.103-.571c.723-.373 1.642-.126 2.051.55l1.52 2.506c.41.677.178 1.554-.527 1.965l-1.07.624c-.407.237-.737.798-.737 1.253l.002 2.675c0 .455.33 1.015.737 1.253l1.07.624c.702.408.936 1.289.526 1.964l-1.52 2.506c-.411.676-1.326.925-2.052.55l-1.103-.57c-.42-.217-1.095-.209-1.51.018l-2.436 1.337c-.414.227-.76.778-.772 1.233l-.033 1.194c-.022.781-.706 1.415-1.526 1.416l-3.042.001c-.821 0-1.504-.628-1.526-1.414l-.033-1.195c-.012-.454-.358-1.006-.772-1.233l-2.436-1.338c-.414-.228-1.09-.237-1.51-.02l-1.103.57zm8.901-.85c4.173 0 7.556-3.307 7.556-7.385 0-4.08-3.383-7.386-7.556-7.386s-7.556 3.307-7.556 7.386c0 4.078 3.383 7.385 7.556 7.385z" fill-rule="nonzero"/><ellipse class="fore" cx="12.675" cy="12.865" rx="2.681" ry="2.621"/></g>'],Ii=[10,7,'<path d="M4.95 2.828l2.828 2.829a1 1 0 1 0 1.414-1.414L5.657.707a.997.997 0 0 0-1.414 0L.707 4.243a1 1 0 1 0 1.414 1.414L4.95 2.828z"/>'],Bs=[10,7,'<path d="M4.95 4.071l2.828-2.828a1 1 0 1 1 1.414 1.414L5.657 6.192a.997.997 0 0 1-1.414 0L.707 2.657a1 1 0 0 1 1.414-1.414L4.95 4.07z"/>'],hi=[8,12,'<path d="M7.137 10.872a1.04 1.04 0 0 0 0-1.578L2.994 5.6l4.143-3.694a1.04 1.04 0 0 0 0-1.578 1.343 1.343 0 0 0-1.759 0L.363 4.81a1.042 1.042 0 0 0 0 1.58l5.015 4.482a1.343 1.343 0 0 0 1.76 0z"/>'],Li=[8,12,'<path d="M.363 10.872a1.04 1.04 0 0 1 0-1.578L4.506 5.6.363 1.906a1.04 1.04 0 0 1 0-1.578 1.343 1.343 0 0 1 1.759 0L7.137 4.81a1.042 1.042 0 0 1 0 1.58l-5.015 4.482a1.343 1.343 0 0 1-1.76 0z"/>'],qs=[6,4,'<path d="M3 0l3 4H0z"/>'],Ws=[6,4,'<path d="M3 4l3-4H0z"/>'],Wi=[24,24,'<path d="M10.286 10.286V1.714a1.714 1.714 0 1 1 3.428 0v8.572h8.572a1.714 1.714 0 1 1 0 3.428h-8.572v8.572a1.714 1.714 0 1 1-3.428 0v-8.572H1.714a1.714 1.714 0 1 1 0-3.428h8.572z"/>'],Ds=[24,24,'<rect y="10.286" width="24" height="3.429" rx="1.714"/>'],Xs=[24,24,'<path d="M12 9.576l6.06-6.061a1.714 1.714 0 1 1 2.425 2.424L14.425 12l6.06 6.06a1.714 1.714 0 1 1-2.424 2.425L12 14.425l-6.06 6.06a1.714 1.714 0 1 1-2.425-2.424L9.575 12l-6.06-6.06a1.714 1.714 0 1 1 2.424-2.425L12 9.575z"/>'],Ti=[24,24,'<path d="M12 24C5.373 24 0 18.627 0 12S5.373 0 12 0s12 5.373 12 12-5.373 12-12 12zM6 12.106c0 .338.117.625.35.861l3.52 3.479c.234.236.523.354.868.354.336 0 .62-.118.854-.354l7.244-7.184c.243-.236.364-.522.364-.858a1.13 1.13 0 0 0-.364-.85 1.197 1.197 0 0 0-.864-.354c-.334 0-.622.118-.865.354l-6.369 6.327-2.66-2.636a1.197 1.197 0 0 0-.864-.354c-.333 0-.621.118-.864.354a1.18 1.18 0 0 0-.35.861z"/>'],ri=[10,10,'<path d="M.8 4.864c0 .215.075.398.226.55L3.3 7.632c.15.15.337.226.56.226a.75.75 0 0 0 .552-.226l4.679-4.584a.73.73 0 0 0 .235-.547.717.717 0 0 0-.235-.543.778.778 0 0 0-.558-.226.778.778 0 0 0-.559.226L3.861 5.996 2.143 4.315a.778.778 0 0 0-.559-.226.778.778 0 0 0-.558.226.748.748 0 0 0-.226.549z" fill="#FFF" fill-rule="evenodd"/>'],ui=[14,14,'<rect x="3" y="2" width="10" height="4" rx="1" class="secondary"/><rect x="3" y="8" width="5" height="4" rx="1" class="tertiary"/><path d="M1 1h1v12H1z" class="main"/>'],Ks=[14,14,'<path d="M0 7h14v1H0z" class="main"/><rect x="2" width="4" height="13" rx="1" class="secondary"/><rect x="8" y="4" width="4" height="7" rx="1" class="tertiary"/>'],li=[14,14,'<path class="main" d="M12 1h1v12h-1z"/><rect class="secondary" y="2" width="10" height="4" rx="1"/><rect class="tertiary" x="5" y="8" width="6" height="4" rx="1"/>'],gi=[14,14,'<rect class="secondary" x="2" y="3" width="4" height="10" rx="1"/><rect class="tertiary" x="8" y="3" width="4" height="5" rx="1"/><path class="main" d="M1 1h12v1H1z"/>'],wa=[14,14,'<path class="main" d="M7 0h1v14H7z"/><rect class="secondary" y="2" width="13" height="4" rx="1"/><rect class="tertiary" x="4" y="8" width="7" height="4" rx="1"/>'],ta=[14,14,'<rect class="secondary" x="2" width="4" height="10" rx="1"/><rect class="tertiary" x="8" y="6" width="4" height="5" rx="1"/><path class="main" d="M1 12h12v1H1z"/>'],pr=[14,14,'<rect class="secondary" x="5" y="3" width="4" height="8" rx="1"/><path class="main" d="M1 1h1v12H1zM12 1h1v12h-1z"/>'],hr=[14,14,'<rect class="secondary" x="3" y="5" width="8" height="4" rx="1"/><path class="main" d="M1 1h12v1H1zM1 12h12v1H1z"/>'],ac=[12,12,'<path class="main" d="M0 1h5v2H0zm0 8h12v2H0z"/><path class="secondary" d="M0 5h8v2H0z"/>'],Ia=[12,12,'<path class="main" d="M3 1h6v2H3zm0 8h6v2H3z"/><path class="secondary" d="M0 5h12v2H0z"/>'],ur=[12,12,'<path class="main" d="M7 1h5v2H7zM0 9h12v2H0z"/><path class="secondary" d="M4 5h8v2H4z"/>'],gr=[12,12,'<path class="main" d="M1 1h10v2H1zm0 8h10v2H1z"/><path class="secondary" d="M1 5h10v2H1z"/>'],mr=[14,14,'<path d="M8 6h2l-3 4-3-4h2V2h2v4zm-7 5h12v1H1v-1z"/>'],Fi=[14,14,'<path d="M6 12H4l3-3 3 3H8v2H6v-2zm2-9h2L7 6 4 3h2V1h2v2zM1 7h12v1H1V7z"/>'],Ta=[14,14,'<path d="M8 8h2L7 4 4 8h2v4h2V8zM1 3h12V2H1v1z"/>'],Aa=[34,24,'<path d="M10.72 16.588l.564 1.966a.782.782 0 0 0 .075.178l-6.537-1.153a1 1 0 0 1-.807-1.16L6.588 1.83a1.001 1.001 0 0 1 1.16-.814l11.837 2.088-.191.387-3.476.997L8.385 3.16 6.158 15.785l4.562.804zm-.463-8.227a.998.998 0 0 1 .707-1.22L24.64 3.478a1.001 1.001 0 0 1 1.222.703L29.565 18a.998.998 0 0 1-.707 1.22l-13.676 3.664a1.001 1.001 0 0 1-1.222-.703L10.257 8.36zm2.192.453l3.183 11.877 11.74-3.145L24.19 5.668 12.45 8.814zm2.712 5.735l-.259-.966 9.548-2.559.26.966-9.55 2.559zm-.844-3.149l-.258-.966 9.548-2.558.259.966-9.549 2.558zm1.687 6.297l-.258-.966 7.207-1.932.26.966-7.209 1.932z"/>'],Pa=[34,24,'<path d="M0 7.006C0 4.793 1.82 3 4.061 3H29.94C32.18 3 34 4.792 34 7.006v9.988C34 19.207 32.18 21 29.939 21H4.06C1.82 21 0 19.208 0 16.994V7.006zm2 0v9.988C2 18.103 2.913 19 4.038 19h25.924C31.086 19 32 18.102 32 16.994V7.006C32 5.897 31.087 5 29.962 5H4.038C2.914 5 2 5.898 2 7.006zm4.729 7.9H4V9h2.682c1.157 0 1.883.569 1.883 1.473 0 .647-.504 1.187-1.158 1.281v.033c.837.062 1.452.647 1.452 1.429 0 1.04-.815 1.69-2.13 1.69zM5.289 9.92v1.535h.927c.688 0 1.08-.29 1.08-.79 0-.475-.345-.745-.948-.745H5.29zm0 4.064H6.4c.744 0 1.145-.303 1.145-.868 0-.552-.414-.847-1.174-.847H5.29v1.715zm8.425-3.467v4.388H12.51v-.79h-.026c-.226.552-.678.872-1.37.872-.99 0-1.648-.618-1.648-1.641v-2.829h1.246v2.579c0 .585.304.896.854.896.556 0 .901-.38.901-.962v-2.513h1.247zm1.145-1.01h1.246v1.01h.846v.9h-.846v2.1c0 .336.171.496.538.496.111 0 .227-.009.304-.02v.88a3.058 3.058 0 0 1-.594.048c-1.076 0-1.494-.344-1.494-1.199V11.42h-.645v-.9h.645V9.507zm3.108 0h1.247v1.01h.845v.9h-.845v2.1c0 .336.17.496.538.496.111 0 .226-.009.303-.02v.88a3.047 3.047 0 0 1-.593.048c-1.076 0-1.495-.344-1.495-1.199V11.42h-.645v-.9h.645V9.507zM22.843 15c-1.383 0-2.267-.851-2.267-2.292 0-1.42.897-2.284 2.267-2.284 1.371 0 2.268.86 2.268 2.284 0 1.445-.884 2.292-2.268 2.292zm0-.913c.611 0 1-.495 1-1.375 0-.872-.393-1.375-1-1.375-.606 0-1.003.503-1.003 1.375 0 .88.389 1.375 1.003 1.375zm2.908.819v-4.388h1.204v.782h.026c.244-.544.726-.863 1.43-.863 1.017 0 1.589.613 1.589 1.64v2.829h-1.247v-2.579c0-.573-.282-.9-.841-.9-.56 0-.914.393-.914.962v2.517h-1.247z"/>'],na=[34,24,'<path d="M15.764 8.697a.835.835 0 0 0-.081.303v9a1 1 0 0 1-1.625.78l-2.543-2.035a.886.886 0 0 0-.1-.063c-.152-.083-.244-.091-.328-.037-.044.03-.059.049-.07.086a.598.598 0 0 0-.005.25L14.23 22h7.585l.76-5.356-5.2-1.693a1 1 0 0 1-.691-.951V9a.799.799 0 0 0-.083-.293c-.071-.14-.163-.2-.426-.207-.257.001-.34.058-.41.197zm-2.081 7.222V9c0-.329.07-.752.293-1.197.398-.797 1.157-1.303 2.207-1.303 1.049.019 1.797.516 2.196 1.293.23.448.304.875.304 1.207v4.274l5.309 1.728a1 1 0 0 1 .68 1.091l-1 7.047a1 1 0 0 1-.99.86h-9a1 1 0 0 1-.841-.46l-3.6-5.617a1 1 0 0 1-.102-.208 2.28 2.28 0 0 1-.075-.275 2.55 2.55 0 0 1 .04-1.293 2.13 2.13 0 0 1 .893-1.179c.798-.518 1.642-.443 2.378-.04.208.113.367.23.432.291l.876.7zm6.415-3.42l-1.193-1.606a4.35 4.35 0 0 0 1.778-3.499c0-2.422-2.01-4.394-4.5-4.394s-4.5 1.972-4.5 4.394c0 1.4.674 2.69 1.8 3.517l-1.182 1.613a6.351 6.351 0 0 1-2.618-5.13c0-3.536 2.914-6.394 6.5-6.394 3.585 0 6.5 2.858 6.5 6.394a6.35 6.35 0 0 1-2.585 5.104z"/>'],fr=[34,24,'<path d="M27 8.667V4H7v4.667h20zm0 1H7V20h20V9.667zM5 2.992A.996.996 0 0 1 6 2h22c.552 0 1 .455 1 .992v18.016A.996.996 0 0 1 28 22H6c-.552 0-1-.455-1-.992V2.992zm4.645 4.473a1.062 1.062 0 1 1 0-2.124 1.062 1.062 0 0 1 0 2.124zm4.332 0a1.062 1.062 0 1 1 0-2.124 1.062 1.062 0 0 1 0 2.124zm4.33 0a1.062 1.062 0 1 1 0-2.124 1.062 1.062 0 0 1 0 2.124z"/>'],xr=[34,24,'<path d="M18 22l-3.828-3.862H6.998C5.34 18.138 4 16.774 4 15.11V5.028A3.01 3.01 0 0 1 7.003 2h20.994C29.655 2 31 3.362 31 5.028V15.11c0 1.67-1.346 3.028-2.997 3.028h-6.175L18 22zM6 5.002v9.996c0 .546.447 1.002.998 1.002H15l3 3 3-3h7.003c.544 0 .997-.449.997-1.002V5.002C29 4.456 28.55 4 27.997 4H7.003A.996.996 0 0 0 6 5.002zM11.5 11a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm6 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm6 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"/>'],rc=[34,24,'<path d="M6 2.993C6 2.445 6.44 2 7.002 2h19.996A.998.998 0 0 1 28 2.993v18.014c0 .548-.44.993-1.002.993H7.002A.998.998 0 0 1 6 21.007V2.993zM8 4v16h18V4H8zm6.335 12.976a.448.448 0 0 1-.196-.132c-.156-.18-.186-.473-.063-.712l1.695-3.317-1.345-1.198a.618.618 0 0 1-.193-.492.596.596 0 0 1 .246-.476l4.71-3.55a.444.444 0 0 1 .602.04c.16.167.202.464.09.707l-1.594 3.51 1.468.959c.153.1.24.289.245.494 0 .22-.095.405-.26.52l-4.99 3.575a.437.437 0 0 1-.415.072z"/>'],Ma=[34,24,'<path d="M21.61 19.632l2.08 3.604-.866.5-2.08-3.604-2.64 1.524-.35-7.75 6.538 4.177-2.682 1.55zM19 4.5h8a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-2v-2h.5a.5.5 0 0 0 .5-.5V7a.5.5 0 0 0-.5-.5h-17A.5.5 0 0 0 8 7v10a.5.5 0 0 0 .5.5H16v2H7a1 1 0 0 1-1-1v-17a1 1 0 0 1 1-1h8l4 4zm0 0h-2.828L14 2.5H8.5A.5.5 0 0 0 8 3v1.5H6h13z"/>'],yr=[34,24,'<path d="M3 7c0-.553.44-1 1-1h26c.554 0 1 .447 1 1v11c0 .553-.44 1-1 1H4c-.554 0-1-.447-1-1V7zm2 1v9h24V8H5zm2 1h1v7H7V9z"/>'],vr=[34,24,'<path d="M28 13.586V5H6v15h15.586L28 13.586zm0 2.828L24.414 20H28v-3.586zM4 3.992A.999.999 0 0 1 5.003 3h23.994C29.55 3 30 3.455 30 3.992v17.016a.999.999 0 0 1-1.003.992H5.003A1.005 1.005 0 0 1 4 21.008V3.992zM8 6h1v6H8V6z"/>'],br=[34,24,'<path d="M19.749 18.974v-8.682a.5.5 0 1 1 1 0v8.631l5.817 1.293V6.859l-4.817-1.093V3.715l6.038 1.37a1 1 0 0 1 .779.975v15.402a1 1 0 0 1-1.217.977l-6.768-1.504a1 1 0 0 0-.437 0l-6.72 1.52a1 1 0 0 1-.438.001l-7.204-1.607A1 1 0 0 1 5 19.871l.04-15.44a1 1 0 0 1 1.224-.972l5.734 1.317v2.052l-4.961-1.14-.035 13.384 5.747 1.282V10.292a.5.5 0 1 1 1 0v10.04l6-1.358zm-3-6.736s-3.959-4.12-3.959-7.28a3.958 3.958 0 1 1 7.917 0c0 3.173-3.958 7.28-3.958 7.28zm0-5.3a1.98 1.98 0 1 0 0-3.959 1.98 1.98 0 0 0 0 3.958z"/>'],Cr=[34,24,'<path d="M2 6.007C2 5.451 2.447 5 2.998 5h28.004c.551 0 .998.449.998 1.007v12.986c0 .556-.447 1.007-.998 1.007H2.998C2.447 20 2 19.551 2 18.993V6.007zM4 7v11h26V7H4zm21 8l-3-4h6l-3 4z"/>'],lc=[34,24,'<path d="M6 2.002A.997.997 0 0 1 7.002 1h19.996A.997.997 0 0 1 28 2.002v19.996A.997.997 0 0 1 26.998 23H7.002A.997.997 0 0 1 6 21.998V2.002zM8 3v18h18V3H8zm2 5V5h14v3H10z"/>'],Sr=[34,24,'<path d="M17.128 4.613L8.025 21.025h18.207L17.128 4.613zm-.482-3.253c.266-.48.7-.479.965 0l11.535 20.795c.266.48.027.87-.513.87H5.623c-.55 0-.778-.391-.512-.87L16.646 1.36z"/>'],_r=[34,24,'<path d="M8 4.38v16.717h16.718L8 4.38zM6 1.559C6 .45 6.63.18 7.42.97l20.706 20.706c.785.785.526 1.42-.587 1.42H6.997A.999.999 0 0 1 6 22.101V1.559z"/>'],Ea=[34,24,'<path d="M28.5 6.5v1.007l2-.01v10.035h-2v.968H31a.5.5 0 0 0 .5-.5V7a.5.5 0 0 0-.5-.5h-2.5zm-23 0H3a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h2.5v-.968h-2V7.498l2 .009V6.5z" stroke-width="1" /><path d="M9 5v15h16V5H9zM8 3h18a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"/><path d="M14 11a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm-2.253 7.664l-1.494-1.328 4.787-5.386L17 14.4l3.917-4.897 3.79 3.79-1.414 1.414-2.21-2.21L17 17.601l-2.04-2.55z"/>'],oa=[34,24,'<path d="M19 14H8v8h18v-8h-2l-2.5-2-2.5 2zM7 12h12l2.5-2 2.5 2h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V13a1 1 0 0 1 1-1zm14.5-3a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9zm0-1.5a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/><path d="M21 4V3h1v1h1.001v1H22v1h-1V5h-.999V4H21zM10 19v-2h14v2z"/>'],La=[14,14,'<path d="M7.762.18l4.445 2.5c.49.275.793.794.793 1.356v4.928c0 .562-.303 1.08-.793 1.356l-4.445 2.5a1.556 1.556 0 0 1-1.524 0l-4.445-2.5A1.556 1.556 0 0 1 1 8.964V4.036c0-.562.303-1.08.793-1.356L6.238.18a1.556 1.556 0 0 1 1.524 0z"/><path d="M7.727 7.013v3.25A.732.732 0 0 1 7 11a.732.732 0 0 1-.727-.737v-3.25L3.374 5.38a.742.742 0 0 1-.282-1.002.722.722 0 0 1 .989-.286L7 5.736l2.92-1.643a.722.722 0 0 1 .988.286.742.742 0 0 1-.282 1.002L7.727 7.013z" class="fore"/>'],mi=[14,14,'<path d="M12.59 4.712c-1.16.66-1.684 1.64-1.57 2.937.114 1.297.774 2.174 1.98 2.629-.273.57-.58 1.127-.922 1.673C11.191 13.317 10.383 14 9.655 14c-.273 0-.637-.102-1.092-.307a3.23 3.23 0 0 0-1.332-.308c-.432 0-.87.103-1.314.308-.443.205-.802.307-1.075.307-.774 0-1.581-.637-2.423-1.912-.797-1.23-1.258-2.521-1.383-3.876-.125-1.354.074-2.407.598-3.158.75-1.184 1.729-1.776 2.935-1.776.387 0 .86.102 1.417.307.557.205.972.308 1.245.308.274 0 .672-.103 1.195-.308.524-.205 1.013-.307 1.468-.307 1.024 0 1.923.478 2.696 1.434z"/><path d="M8.938 2.288c-.592.774-1.308 1.138-2.15 1.092-.114-.75.125-1.49.717-2.219C8.096.455 8.802.068 9.62 0c.114.774-.114 1.537-.683 2.288z" class="fore"/>'],sa=[14,14,'<path d="M7 14A7 7 0 1 1 7 0a7 7 0 0 1 0 14zM4.324 7a1.03 1.03 0 1 0 0-2.059 1.03 1.03 0 0 0 0 2.059zm5.352-.03a1 1 0 1 0 0-2 1 1 0 0 0 0 2zM4 9a3.046 3.046 0 0 0 6 0H4z"/>'],Na=[14,14,'<g transform="translate(1)"><path d="M6.875 0v2.625c0 .966.784 1.75 1.75 1.75h2.625v7.875A1.75 1.75 0 0 1 9.5 14h-7a1.75 1.75 0 0 1-1.75-1.75V1.75C.75.784 1.534 0 2.5 0h4.375zm.875 0l3.5 3.5H8.625a.875.875 0 0 1-.875-.875V0z"/><rect class="fore" x="2.5" y="6.125" width="7" height="1.75" rx=".875"/><rect class="fore" x="2.5" y="9.625" width="7" height="1.75" rx=".875"/></g>'],wr=[14,14,'<path d="M2.01 7.37l3.78 2.511a2.188 2.188 0 0 0 2.42 0l3.78-2.51 1.73 1.155c.14.14.28.351.28.562 0 .21-.07.42-.28.561l-5.769 3.735a1.75 1.75 0 0 1-1.902 0L.28 9.65C.14 9.51 0 9.3 0 9.088c0-.21.14-.421.28-.562L2.01 7.37z" class="fore"/><path d="M.28 5.439C.14 5.299 0 5.088 0 4.877c0-.21.14-.42.35-.561l5.702-3.7A1.75 1.75 0 0 1 7.951.61l5.769 3.705c.14.14.28.35.28.561 0 .21-.14.421-.28.562L7.972 9.28a1.75 1.75 0 0 1-1.944 0L2.59 6.982.28 5.44z"/>'],cc=[14,14,'<path d="M6 5h7v6.267c0 .957-.776 1.733-1.733 1.733H6V5z" class="fore"/><path d="M2.733 13A1.733 1.733 0 0 1 1 11.267V5h4v8H2.733zM13 4H1V2.733C1 1.776 1.776 1 2.733 1h8.534C12.224 1 13 1.776 13 2.733V4z"/>'],dc=[14,14,'<path d="M12.82 1.016l-5.397-.008c-.2-.01-.355-.027-.458.065l-2.613 2.34a.243.243 0 0 0-.008.351L6.85 6.36c.099.103.238.132.341.04l5.686-5.081c.186-.167.157-.308-.057-.303zM6.807 7.602l-5.686 5.08c-.184.166-.157.307.059.302l5.396.008c.201.01.355.027.458-.065l2.613-2.337a.243.243 0 0 0 .008-.352L7.151 7.642c-.1-.102-.24-.132-.343-.04z"/><path d="M1.075 7.037c-.094-.103-.076-.257-.065-.46l.008-5.396c-.005-.216.136-.243.302-.059L6.4 6.811c.091.103.063.242-.04.34L3.764 9.658a.243.243 0 0 1-.352-.008L1.075 7.037zm9.513-2.684l2.34 2.61c.091.103.074.257.064.458l-.008 5.397c.005.215-.136.242-.303.058l-5.08-5.685c-.092-.103-.063-.242.04-.34l2.595-2.506a.243.243 0 0 1 .352.008z" class="fore"/>'],ia=[14,14,'<path d="M13 7h-2V4.2A1.2 1.2 0 0 0 9.8 3H7V1h2.8A3.2 3.2 0 0 1 13 4.2V7zm-6 6H4.2A3.2 3.2 0 0 1 1 9.8V7h2v2.8A1.2 1.2 0 0 0 4.2 11H7v2z"/><path d="M3 5a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm8 8a2 2 0 1 1 0-4 2 2 0 0 1 0 4z" class="fore"/>'],Da=[14,14,'<path d="M7.512.295l5.039 2.91c.316.182.511.52.511.886v5.818c0 .366-.195.704-.511.886l-5.04 2.91a1.023 1.023 0 0 1-1.023 0l-5.039-2.91a1.023 1.023 0 0 1-.511-.886V4.091c0-.366.195-.704.511-.886L6.49.295a1.023 1.023 0 0 1 1.023 0zM7 9a2 2 0 1 0 0-4 2 2 0 0 0 0 4z" class="fore"/>'],Ir=[14,14,'<path d="M5.66 14a.735.735 0 0 1-.727-.89l1.006-4.64-2.422-.854a.767.767 0 0 1-.485-.501.675.675 0 0 1 .15-.668L8.378.267a.754.754 0 0 1 .876-.204c.298.13.484.464.428.798l-.782 4.825 2.496.52c.26.055.466.24.559.482.093.26.037.52-.15.724L6.219 13.74a.727.727 0 0 1-.559.26z" class="fore"/>'],Tr=[12,12,'<path d="M4.81 12h6.38c.447 0 .81-.448.81-1s-.363-1-.81-1H4.81c-.447 0-.81.448-.81 1s.363 1 .81 1zm0-10h6.38c.447 0 .81-.448.81-1s-.363-1-.81-1H4.81C4.363 0 4 .448 4 1s.363 1 .81 1zm0 5h6.38c.447 0 .81-.448.81-1s-.363-1-.81-1H4.81C4.363 5 4 5.448 4 6s.363 1 .81 1zM0 0h2v2H0V0zm0 5h2v2H0V5zm0 5h2v2H0v-2z" class="fore"/>'],aa=[12,12,'<path d="M1 7h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm7-7h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1z"/><path d="M8 7h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1z" fill-opacity=".4"/><path d="M1 0h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1z"/>'],Ar=[12,12,'<path d="M8.322 2.743A4 4 0 1 0 9.714 7.49a1 1 0 1 1 1.856.745 6 6 0 1 1-1.855-6.947l1.053-1.1a.5.5 0 0 1 .862.345v3.69a.5.5 0 0 1-.503.498l-3.512-.018a.5.5 0 0 1-.36-.845l1.067-1.115z" class="fore"/>'],Pr=[18,18,'<path d="M8 14V4.332H5V6H3V2.332h12V6h-2V4.332h-3V14h2v2H6v-2h2z"/>'],ka=[18,18,'<path d="M4 4v10h10V4H4zM2 2h14v14H2V2z"/>'],Mr=[18,18,'<path d="M9 15A6 6 0 1 0 9 3a6 6 0 0 0 0 12zm0 2A8 8 0 1 1 9 1a8 8 0 0 1 0 16z"/>'],Ns=[18,18,'<path d="M12.642 6.419L5.42 13.642c.116.261.181.552.181.858 0 1.16-.932 2.1-2.1 2.1-1.16 0-2.1-.932-2.1-2.1 0-1.16.932-2.1 2.1-2.1.306 0 .596.065.858.181l7.223-7.223A2.103 2.103 0 0 1 11.4 4.5c0-1.16.932-2.1 2.1-2.1 1.16 0 2.1.932 2.1 2.1 0 1.16-.932 2.1-2.1 2.1-.306 0-.596-.065-.858-.181z"/>'],Er=[18,18,'<path d="M15 13.108V5H3v7.992l1.776-1.48 1.954 1.466 4.07-4.07 4.2 4.2zM1 3h16v13H1V3zm5.5 7a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"/>'],oi=[12,12,'<path d="M2.138 9.84a.658.658 0 0 1-.89-.256l-.66-1.169A.689.689 0 0 1 .817 7.5l.464-.291a.764.764 0 0 0 .32-.584L1.6 5.376a.764.764 0 0 0-.32-.585l-.464-.29a.69.69 0 0 1-.228-.917l.66-1.168a.657.657 0 0 1 .89-.257l.478.266a.73.73 0 0 0 .655-.009l1.058-.623a.762.762 0 0 0 .335-.575l.014-.557a.674.674 0 0 1 .662-.66L6.66 0c.356 0 .653.293.662.66l.014.557c.006.212.156.47.335.575l1.058.624c.18.106.472.11.655.01l.478-.267a.658.658 0 0 1 .89.257l.66 1.169a.689.689 0 0 1-.229.916l-.464.291a.764.764 0 0 0-.32.584l.001 1.248c0 .212.143.474.32.585l.464.29a.69.69 0 0 1 .228.917l-.66 1.168a.657.657 0 0 1-.89.257l-.478-.266a.73.73 0 0 0-.655.009l-1.058.623a.762.762 0 0 0-.335.575l-.014.557a.674.674 0 0 1-.662.66L5.34 12a.672.672 0 0 1-.662-.66l-.014-.557a.763.763 0 0 0-.335-.575L3.27 9.584a.729.729 0 0 0-.655-.01l-.478.267zM6 8.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z"/>'],Lr=[12,12,'<path d="M2 3.5h8v7a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-7zm2.5 2A.5.5 0 0 0 4 6v3a.5.5 0 0 0 1 0V6a.5.5 0 0 0-.5-.5zm3 0A.5.5 0 0 0 7 6v3a.5.5 0 0 0 1 0V6a.5.5 0 0 0-.5-.5zM5 1a.5.5 0 0 1 .5-.5h1A.5.5 0 0 1 7 1a.5.5 0 0 0 .5.5h3a.5.5 0 1 1 0 1h-9a.5.5 0 0 1 0-1h3A.5.5 0 0 0 5 1z"/>'],Nr=[12,12,'<path d="M3.5 2.5h7a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-7a1 1 0 0 1 1-1zm1 2h5v5h-5v-5zm5-3h-7a1 1 0 0 0-1 1v7a1 1 0 0 1-1-1v-7a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1z" fill-rule="evenodd"/>'],Dr=[12,12,'<path d="M3.5 9.5H9a.5.5 0 0 0 .5-.5V3.5l-1-1h-5v-1a1 1 0 0 1 1-1h4.586a1 1 0 0 1 .707.293l1.414 1.414a1 1 0 0 1 .293.707V10.5a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-1z"/><path d="M5.526 5.5H1.833a.5.5 0 0 0 0 1h3.693v1.57a.2.2 0 0 0 .329.154l2.19-1.841a.5.5 0 0 0 0-.766l-2.19-1.84a.2.2 0 0 0-.329.152V5.5z"/>'],kr=[14,14,'<path d="M3 12V1h3.842c.606 0 1.15.06 1.632.178.483.118.891.298 1.225.54.333.241.589.55.766.925.177.375.266.82.266 1.334 0 .503-.14.957-.416 1.36-.277.402-.683.715-1.217.936.324.086.605.21.843.374a2.33 2.33 0 0 1 .944 1.311c.077.267.115.544.115.831 0 .529-.089.994-.266 1.394-.177.4-.433.735-.77 1.005-.336.27-.744.472-1.224.608A5.977 5.977 0 0 1 7.112 12H3zm1.948-4.964v3.438h2.164c.318 0 .599-.04.843-.121.244-.08.448-.195.612-.344.164-.148.287-.326.37-.532.082-.207.123-.436.123-.688 0-.544-.147-.972-.44-1.284-.292-.312-.767-.469-1.424-.469H4.948zm0-1.405h1.91c.605 0 1.079-.135 1.42-.404.342-.27.512-.651.512-1.145 0-.544-.158-.936-.473-1.178C8 2.662 7.509 2.54 6.842 2.54H4.948v3.09z"/>'],Oa=[14,14,'<path d="M5 11l2-9H5V1h6v1H9l-2 9h2v1H3v-1h2z"/>'],Ra=[14,14,'<path d="M2 12h10v1H2v-1zm9-5.753c0 1.25-.333 2.045-1 2.67C9.333 9.544 8.247 10 7.014 10 5.754 10 4.708 9.598 4 9c-.708-.598-1-1.447-1-2.753V1h2v5.247C5 7.123 5.5 8 7 8s2-.877 2-1.753V1h2v5.247z"/>'],Or=[14,14,'<path d="M6.092 7H1V6h3.244a2.775 2.775 0 0 1-.66-.84 2.522 2.522 0 0 1-.255-1.15c0-.429.09-.828.272-1.196a2.87 2.87 0 0 1 .771-.958 3.65 3.65 0 0 1 1.187-.631C6.02 1.075 6.527 1 7.086 1c.615 0 1.166.092 1.651.278.484.185.893.431 1.226.739a3.119 3.119 0 0 1 1.016 2.305v.193H9.166v-.193c0-.268-.043-.515-.128-.74a1.495 1.495 0 0 0-.378-.568 1.748 1.748 0 0 0-.637-.371 2.87 2.87 0 0 0-.937-.136c-.344 0-.64.04-.887.117-.244.076-.442.18-.595.31-.153.128-.266.28-.34.455-.076.182-.115.38-.115.6 0 .19.04.36.12.514.08.154.205.298.378.432.179.139.414.27.704.39a9.27 9.27 0 0 0 1.079.36c.352.098.677.203.975.315H13v1h-2.853c.282.266.494.564.635.893.146.34.218.722.218 1.147 0 .447-.092.855-.277 1.221a2.7 2.7 0 0 1-.79.94c-.339.259-.745.457-1.217.594A5.555 5.555 0 0 1 7.157 12c-.334 0-.668-.03-1.002-.093a5.01 5.01 0 0 1-.964-.279 4.304 4.304 0 0 1-.86-.464 3.345 3.345 0 0 1-.697-.65 2.91 2.91 0 0 1-.466-.833A2.937 2.937 0 0 1 3 8.671v-.193h1.813v.193c0 .327.063.601.188.826.127.228.295.414.505.562.214.15.46.26.741.331.288.074.592.11.91.11.678 0 1.184-.134 1.527-.394.336-.255.503-.6.503-1.052 0-.22-.033-.411-.098-.573a1.083 1.083 0 0 0-.336-.43 2.93 2.93 0 0 0-.708-.401 10.97 10.97 0 0 0-1.19-.406A11.9 11.9 0 0 1 6.093 7z"/>'],Ba=[12,12,'<path class="main" d="M11 1v2H9V1z"/><path class="secondary" d="M7 1v2H5V1z"/><path class="main" d="M3 1v2H1V1z"/><path class="secondary" d="M11 5v2H9V5z"/><path class="main" d="M7 5v2H5V5z"/><path class="secondary" d="M3 5v2H1V5z"/><path class="main" d="M11 9v2H9V9z"/><path class="secondary" d="M7 9v2H5V9z"/><path class="main" d="M3 9v2H1V9z"/>'],ra=[12,12,'<path class="main" d="M1 1h2v10H1z"/><path class="secondary" d="M5 1h2v10H5z"/><path class="main" d="M9 1h2v10H9z"/>'],Rr=[12,12,'<path class="main" d="M11 1v2H1V1z"/><path class="secondary" d="M11 5v2H1V5z"/><path class="main" d="M11 9v2H1V9z"/>'],Br=[18,18,'<path d="M15.893 13.45c0-.041 0-.084-.004-.127a1.258 1.258 0 0 0-.883-1.121L10 10.49V4h5a1 1 0 0 1 1 1v8a.996.996 0 0 1-.107.45zM6 4v10a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z" class="fore"/><path d="M3 3v12h4V3H3zm6 7.15a1.236 1.236 0 0 0-.989.068c-.157.08-.288.189-.396.319a1.27 1.27 0 0 0-.157 1.406L9 14.97V17H1V1h8v9.15z" class="main"/><path d="M14.892 13.4c.01.128-.039.219-.147.274l-1.473.75 2.31 1.93c.06.052.093.117.1.195a.286.286 0 0 1-.06.205l-.531.646a.262.262 0 0 1-.19.097.285.285 0 0 1-.203-.067l-2.224-1.854-.57 1.854a.26.26 0 0 1-.238.19.266.266 0 0 1-.272-.156L8.349 11.49a.267.267 0 0 1 .034-.313.26.26 0 0 1 .294-.08l6.02 2.057a.26.26 0 0 1 .195.247z" class="main"/>'],jr=[18,18,'<path d="M13 10.635l-1.716-.587a1.236 1.236 0 0 0-.989.068c-.157.08-.289.19-.397.32a1.27 1.27 0 0 0-.156 1.406l.59 1.158H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4.635z" class="fore"/><path d="M17 12.002l-2-.684V3H3v12h8.351l1.02 2H1V1h16v11.002z" class="main"/><path d="M17.175 13.298c.01.129-.038.22-.147.275l-1.473.75 2.311 1.93c.06.052.093.117.1.194a.286.286 0 0 1-.06.206l-.532.646a.262.262 0 0 1-.189.097.285.285 0 0 1-.204-.067l-2.223-1.854-.57 1.854a.26.26 0 0 1-.238.19.266.266 0 0 1-.273-.156l-3.044-5.975a.267.267 0 0 1 .034-.313.26.26 0 0 1 .294-.08l6.02 2.057a.26.26 0 0 1 .194.246z"/>'],Vi=[14,14,'<path d="M11 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1zM5 3.5v7a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5z"/>'],Wr=[14,14,'<path d="M13 11H1a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1zm-2.5-6h-7a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5z"/>'],Hi=[14,14,'<path d="M3 7.83a2.995 2.995 0 0 1-2 0v5.198c0 .537.435.972.972.972h.056A.972.972 0 0 0 3 13.028V7.829zm0-5.66V.973A.972.972 0 0 0 2.028 0h-.056A.972.972 0 0 0 1 .972v1.199a2.995 2.995 0 0 1 2 0zm5 10.66a2.995 2.995 0 0 1-2 0v.198c0 .537.435.972.972.972h.056A.972.972 0 0 0 8 13.028v-.199zm0-5.66V.973A.972.972 0 0 0 7.028 0h-.056A.972.972 0 0 0 6 .972v6.199a2.995 2.995 0 0 1 2 0zm5-2.34a2.995 2.995 0 0 1-2 0V13a1 1 0 1 0 2 0V4.83zM10 2a2 2 0 1 0 4 0 2 2 0 0 0-4 0zm1 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0zm1 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM0 5a2 2 0 1 0 4 0 2 2 0 0 0-4 0zm1 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0z"/>'],Fr=[14,14,'<path d="M0 4h12.364c.351 0 .636.285.636.636v7.728a.636.636 0 0 1-.636.636H.636A.636.636 0 0 1 0 12.364V4zm6 4H4.5a.5.5 0 0 0 0 1H6v1.5a.5.5 0 1 0 1 0V9h1.5a.5.5 0 0 0 0-1H7V6.5a.5.5 0 0 0-1 0V8z" class="main"/><path d="M8 4L6 2H.636A.636.636 0 0 0 0 2.636V4h8z" class="secondary"/>'],Vr=[16,15,'<path class="fore" d="M6.757 3.454l3.528 2.117a.5.5 0 0 1 0 .858L6.757 8.546A.5.5 0 0 1 6 8.116V3.884a.5.5 0 0 1 .757-.429z"/><path d="M7 14v-2H.875A.875.875 0 0 1 0 11.125V.875C0 .392.392 0 .875 0h14.25c.483 0 .875.392.875.875v10.25a.875.875 0 0 1-.875.875H9v2h3v1H4v-1h3zm2-4h5V2H2v8h7z" fill-rule="nonzero"/>'],Hr=[16,16,'<path d="M11.781 9H6.625a1 1 0 1 1 0-2h5.156V3.5L16 8l-4.219 4.5V9zm-1.937 6a1 1 0 0 1-1 1H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3h5.844a1 1 0 1 1 0 2H2.875a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h5.969a1 1 0 0 1 1 1z"/>'],Ur=[18,18,'<path d="M9 18A9 9 0 1 1 9 0a9 9 0 0 1 0 18zM9 2v14A7 7 0 0 0 9 2z" fill-rule="evenodd"/>'],ja=[16,16,'<path d="M12.38 10.514l-.002-.001-.044.017-.074.074c.135.547.138 1.123.01 1.683a3.691 3.691 0 0 1-1.003 1.808l-.028.028a3.86 3.86 0 0 1-1.954 1.006 3.596 3.596 0 0 1-2.175-.294.545.545 0 0 1-.221-.728c.03-.03.06-.09.09-.12.196-.223.36-.475.484-.741l.06-.119c-.147.003-.293.036-.441.068-.44.067-.88.104-1.305.098a.51.51 0 0 1-.363-.153l-2.37-2.37a.506.506 0 0 1-.153-.422A7.002 7.002 0 0 1 2.99 9.1c.018-.161.05-.308.083-.456l-.134.047c-.251.108-.517.26-.74.484-.21.21-.562.186-.762-.015a.382.382 0 0 1-.1-.13 3.627 3.627 0 0 1-.28-2.161A3.633 3.633 0 0 1 2.09 4.887c.523-.523 1.146-.857 1.776-.973a3.383 3.383 0 0 1 1.67-.003l.12-.12A9.443 9.443 0 0 1 9.79 1.353a9.1 9.1 0 0 1 4.733-.077c.19.04.318.198.373.373l.014.015a9.204 9.204 0 0 1-.093 4.716 9.666 9.666 0 0 1-2.438 4.134zm-8.202 2.973h-.001a.33.33 0 0 1 .47-.01c.114.145.125.335-.01.47l-.821.82a.328.328 0 0 1-.47.01.33.33 0 0 1 .01-.469l.822-.821zm6.053-5.45c1.172-.022 2.158-1.008 2.195-2.166a2.057 2.057 0 0 0-2.112-2.111c-1.185.008-2.158 1.009-2.18 2.18a2.05 2.05 0 0 0 2.097 2.098zm-8.384 4.764V12.8c-.133.134-.338.138-.453-.006a.323.323 0 0 1-.006-.454l.82-.82a.34.34 0 0 1 .47-.01.325.325 0 0 1-.009.468l-.822.823zm1.808-.284c.13.1.126.304.006.453l-1.866 1.866a.328.328 0 0 1-.47.01.323.323 0 0 1-.006-.453l1.867-1.867a.328.328 0 0 1 .469-.01z"/>'],Kr=[16,16,'<path d="M8.623 6.691v-3.48a8.548 8.548 0 0 1-.511-.06v-.007h-.033.032v.007h-.025c-.001 0-.007.006-.013.006-.195.024-.435.054-.706.079v3.456H0V3.918c0-.437.359-.786.808-.786h3.357c-.901-.184-1.578-.56-1.602-1.252-.026-.817.921-2.137 2.304-1.835C6.294.357 7.29 1.43 8.054 2.352c.77-.939 1.863-2.148 3.352-2.339 1.244-.153 2.273 1.056 2.14 1.854-.113.7-.802 1.08-1.68 1.264h3.315c.448 0 .808.35.808.786v2.774H8.623zM5.019.768c-.69-.264-1.093.02-1.383.486-.158.263-.328.614-.076.871.663.663 2.48.614 3.7.491-.575-.699-1.282-1.479-2.241-1.848zm7.53 1.352c.473-.59-.455-1.818-1.452-1.364-.953.436-1.641 1.148-2.234 1.848.51.043 1.028.055 1.54.03.625-.024 1.78-.067 2.146-.514zM7.417 14.99H1.414a.724.724 0 0 1-.733-.718V7.25h6.736v7.738zm7.89-.718a.723.723 0 0 1-.732.717H8.572V7.251h6.735v7.02z"/>'],zr=[14,12,'<path d="M10.915 4.5H14L7.115 12 0 4.5h3.027L7.115 12l3.8-7.5zm-.74 0l-3.06 6.185L3.773 4.5h6.402zm-9.96-.657L2.5.886l.334 2.957H.215zm13.565 0h-2.675V.384l2.675 3.459zm-3.196 0H3.382L6.88.384l3.704 3.459zM3.225.347L6.388 0 3.594 2.795 3.225.347zM7.408.001l2.993.31v2.484L7.408.001z"/>'],Gr=[18,18,'<path d="M13.096 4.922a.853.853 0 0 0 0-1.187L9.63.25a.841.841 0 0 0-1.18 0L.342 8.408a.853.853 0 0 0 0 1.186l8.11 8.158a.841.841 0 0 0 1.18 0l3.465-3.487a.853.853 0 0 0 0-1.187.841.841 0 0 0-1.18 0l-2.285 2.3a.841.841 0 0 1-1.18 0L2.7 9.591a.853.853 0 0 1 0-1.186L8.452 2.62a.841.841 0 0 1 1.18 0l2.286 2.3a.84.84 0 0 0 1.178 0zm4.646 3.486l-2.287-2.301a.841.841 0 0 0-1.18 0 .834.834 0 0 0 0 1.186l1.108 1.113c.32.332.32.863 0 1.186l-1.108 1.113a.853.853 0 0 0 0 1.187.841.841 0 0 0 1.18 0l2.287-2.3a.851.851 0 0 0 0-1.184zM6.404 9a2.643 2.643 0 0 0 2.638 2.653A2.641 2.641 0 0 0 11.68 9 2.643 2.643 0 0 0 9.04 6.347 2.641 2.641 0 0 0 6.404 9zm4.013-.01c-.01.77-.62 1.383-1.377 1.383a1.379 1.379 0 0 1-1.376-1.384c0-.759.61-1.383 1.376-1.383.767 0 1.377.614 1.377 1.383z"/>'],Zr=[23,20,'<path d="M15.96 6.627c-2.126.111-3.974.761-5.475 2.229-1.516 1.482-2.208 3.299-2.019 5.551-.83-.103-1.587-.218-2.348-.282-.263-.023-.575.01-.798.136-.739.42-1.447.895-2.287 1.424.154-.703.254-1.318.43-1.91.13-.434.07-.676-.327-.96C.584 11-.491 8.282.314 5.484 1.058 2.895 2.887 1.325 5.372.507c3.392-1.117 7.203.022 9.265 2.737a6.427 6.427 0 0 1 1.323 3.383zm-9.783-.872c.02-.512-.42-.973-.943-.989a.955.955 0 0 0-.99.928.945.945 0 0 0 .931.984.97.97 0 0 0 1.002-.923zm5.104-.989c-.524.01-.967.46-.958.974a.96.96 0 0 0 .983.943.944.944 0 0 0 .946-.972.949.949 0 0 0-.97-.945zm9.454 15.219c-.673-.302-1.29-.755-1.948-.825-.654-.069-1.343.312-2.028.383-2.087.215-3.956-.371-5.498-1.808C8.33 15 8.75 10.81 12.141 8.569c3.014-1.99 7.435-1.327 9.56 1.436 1.856 2.41 1.638 5.61-.627 7.635-.655.587-.89 1.069-.47 1.842.077.142.086.323.131.503zm-7.661-7.478a.796.796 0 0 0 .797-.764.8.8 0 0 0-.792-.832.81.81 0 0 0-.8.827c.014.425.37.769.795.77zm4.939-1.595a.795.795 0 0 0-.786.764.783.783 0 0 0 .775.826c.43.001.77-.327.786-.758a.79.79 0 0 0-.775-.832z"/>'],Yr=[24,17,'<path d="M12.005 4.702L13.94.649C14.128.253 14.53 0 14.973 0h7.882c.17 0 .338.037.491.11.571.268.814.944.543 1.51l-7.066 14.733c-.19.395-.592.647-1.033.647h-.142c-.44 0-.841-.25-1.032-.644L12.5 11.982l1.532-3.13 1.588 3.095a.23.23 0 0 0 .412-.008l4.03-8.646a.452.452 0 0 0-.415-.644h-3.295a.458.458 0 0 0-.415.262l-2.274 4.837a.45.45 0 0 0-.024.064l-1.623 3.104-2.632 5.44c-.19.394-.592.644-1.032.644H8.21c-.441 0-.844-.252-1.033-.647L.11 1.62A1.129 1.129 0 0 1 .654.11C.807.037.974 0 1.144 0h7.883c.442 0 .845.253 1.034.65l1.491 3.125L9.944 6.91l-1.88-4a.458.458 0 0 0-.416-.262H4.353a.452.452 0 0 0-.416.643l4.031 8.647a.23.23 0 0 0 .412.008l1.926-3.807c.026-.051.05-.11.072-.156l1.627-3.282z"/>'],Wa={"general/alarm":Ko,"general/close":zo,"general/ellipsis":xs,"general/group":ys,"general/info":ss,"general/question":le,"general/warning_filled":At,"general/close_new":Pt,"general/pin":Re,"general/duplicate":yt,"general/move":Dt,"general/trash":Xt,"general/edit":Xn,"general/recycle":Do,"general/loading":Uo,"general/lock":jo,"general/invisible":as,"general/scale_enlarge":gs,"general/scale_reduce":Eo,"general/pen":ws,"general/search":Rs,"general/code":As,"general/play":js,"general/share":Ls,"general/workflow":wi,"general/setting":Fs,"general/angle_bracket_up":Ii,"general/angle_bracket_down":Bs,"general/angle_bracket_left":hi,"general/angle_bracket_right":Li,"general/triangle_up":qs,"general/triangle_down":Ws,"general/plus":Wi,"general/minus":Ds,"general/times":Xs,"general/check_filled":Ti,"general/check":ri,"design/align_left":ui,"design/align_center_h":Ks,"design/align_right":li,"design/align_top":gi,"design/align_center_v":wa,"design/align_bottom":ta,"design/dist_evenly_h":pr,"design/dist_evenly_v":hr,"design/text_align_left":ac,"design/text_align_center":Ia,"design/text_align_right":ur,"design/text_align_justify":gr,"design/text_align_v_bottom":mr,"design/text_align_v_center":Fi,"design/text_align_v_top":Ta,"design/note":Aa,"design/button":Pa,"design/gesture":na,"design/webpage":fr,"design/dialog":xr,"design/linkarea":rc,"design/file":Ma,"design/input":yr,"design/textarea":vr,"design/map":br,"design/select":Cr,"design/topbar":lc,"design/eq_triangle":Sr,"design/triangle":_r,"design/carousel":Ea,"design/dropdown":oa,"design/common_widget":La,"design/platform_widget":mi,"design/smiley":sa,"design/screen":Na,"design/layer":wr,"design/master":cc,"design/dynamic_widget":dc,"design/my_widget":ia,"design/attribute_setting":Da,"design/link":Ir,"design/list":Tr,"design/thumbnail":aa,"design/onekey_recovery":Ar,"design/text":Pr,"design/rectangle":ka,"design/circle":Mr,"design/line":Ns,"design/image":Er,"design/settings":oi,"design/trash":Lr,"design/copy":Nr,"design/enchase":Dr,"design/font_bold":kr,"design/font_italic":Oa,"design/font_underline":Ra,"design/font_line_through":Or,"design/grid":Ba,"design/grid_column":ra,"design/grid_row":Rr,"design/intersect_select":Br,"design/include_select":jr,"design/screen_portrait":Vi,"design/screen_landscape":Wr,"design/preference":Hi,"design/new_widgets":Fr,"preview/fullscreen":Vr,"preview/exit":Hr,"preview/daynight":Ur,"misc/rocket":ja,"misc/gift":Kr,"brand/sketch":zr,"brand/antd":Gr,"brand/wechat":Zr,"brand/wps":Yr};function la(){var ne=Ni(["\n fill: currentColor;\n width: 1em;\n"]);return la=function(){return ne},ne}function Ni(ne,ae){return ae||(ae=ne.slice(0)),Object.freeze(Object.defineProperties(ne,{raw:{value:Object.freeze(ae)}}))}var Di=c.Ay.svg.withConfig({displayName:"svg__StyledSvg",componentId:"sc-tmzb4u-0"})(la());function Ui(){return Ui=Object.assign||function(ne){for(var ae=1;ae<arguments.length;ae++){var ye=arguments[ae];for(var Ee in ye)Object.prototype.hasOwnProperty.call(ye,Ee)&&(ne[Ee]=ye[Ee])}return ne},Ui.apply(this,arguments)}function Fa(ne,ae){var ye=Object.keys(ne);if(Object.getOwnPropertySymbols){var Ee=Object.getOwnPropertySymbols(ne);ae&&(Ee=Ee.filter(function(Pe){return Object.getOwnPropertyDescriptor(ne,Pe).enumerable})),ye.push.apply(ye,Ee)}return ye}function ca(ne){for(var ae=1;ae<arguments.length;ae++){var ye=arguments[ae]!=null?arguments[ae]:{};ae%2?Fa(Object(ye),!0).forEach(function(Ee){Xr(ne,Ee,ye[Ee])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(ye)):Fa(Object(ye)).forEach(function(Ee){Object.defineProperty(ne,Ee,Object.getOwnPropertyDescriptor(ye,Ee))})}return ne}function Xr(ne,ae,ye){return ae in ne?Object.defineProperty(ne,ae,{value:ye,enumerable:!0,configurable:!0,writable:!0}):ne[ae]=ye,ne}function $r(ne,ae){if(ne==null)return{};var ye=Qr(ne,ae),Ee,Pe;if(Object.getOwnPropertySymbols){var Ze=Object.getOwnPropertySymbols(ne);for(Pe=0;Pe<Ze.length;Pe++)Ee=Ze[Pe],!(ae.indexOf(Ee)>=0)&&Object.prototype.propertyIsEnumerable.call(ne,Ee)&&(ye[Ee]=ne[Ee])}return ye}function Qr(ne,ae){if(ne==null)return{};var ye={},Ee=Object.keys(ne),Pe,Ze;for(Ze=0;Ze<Ee.length;Ze++)Pe=Ee[Ze],!(ae.indexOf(Pe)>=0)&&(ye[Pe]=ne[Pe]);return ye}function Jr(ne,ae){return el(ne)||xo(ne,ae)||fi(ne,ae)||qr()}function qr(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function fi(ne,ae){if(ne){if(typeof ne=="string")return da(ne,ae);var ye=Object.prototype.toString.call(ne).slice(8,-1);if(ye==="Object"&&ne.constructor&&(ye=ne.constructor.name),ye==="Map"||ye==="Set")return Array.from(ne);if(ye==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ye))return da(ne,ae)}}function da(ne,ae){(ae==null||ae>ne.length)&&(ae=ne.length);for(var ye=0,Ee=new Array(ae);ye<ae;ye++)Ee[ye]=ne[ye];return Ee}function xo(ne,ae){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(ne)))){var ye=[],Ee=!0,Pe=!1,Ze=void 0;try{for(var Ct=ne[Symbol.iterator](),wt;!(Ee=(wt=Ct.next()).done)&&(ye.push(wt.value),!(ae&&ye.length===ae));Ee=!0);}catch(Mt){Pe=!0,Ze=Mt}finally{try{!Ee&&Ct.return!=null&&Ct.return()}finally{if(Pe)throw Ze}}return ye}}function el(ne){if(Array.isArray(ne))return ne}function Ki(ne){var ae=ne.name,ye=ne.className,Ee=ne.label,Pe=$r(ne,["name","className","label"]),Ze=Wa[ae&&ae.includes("/")?ae:"general/"+ae];if(!Ze)return null;var Ct=Jr(Ze,3),wt=Ct[0],Mt=Ct[1],Vt=Ee?{"aria-label":Ee}:{"aria-hidden":!0};return r.createElement(Di,Ui({xmlns:"http://www.w3.org/2000/svg",className:be(["svg-icon",ae,ye]),viewBox:"0 0 ".concat(wt," ").concat(Mt)},ca(ca({},Vt),Pe),{dangerouslySetInnerHTML:{__html:Ct[2]}}))}Ki.propTypes={name:s().string,className:s().string,label:s().string},Ki.ICON_MAP=Wa;const pa=Ki;function Va(){var ne=tl(["\n &.RegularButton,\n &.PrimaryButton,\n &.PrimaryCoreButton,\n &.RegularCoreButton,\n &.SecondaryCoreButton,\n &.TertiaryCoreButton {\n padding: 0 0.5em;\n height: 2.125rem;\n font-size: 0.875rem;\n border: 1px solid;\n border-radius: 2px;\n cursor: pointer; \n transition: all 0.2s ease-out;\n &:not(button) {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n }\n &:disabled {\n cursor: not-allowed;\n opacity: 0.6;\n }\n .icon {\n margin-right: 0.125em;\n }\n &.small {\n height: 2em;\n font-size: 0.75rem;\n }\n .svg-icon.loading {\n margin-right: 0.5em;\n vertical-align: -.15em;\n animation: ibot-ani-spinning 1.5s infinite ease-out;\n }\n }\n\n &.PrimaryCoreButton,\n &.RegularCoreButton,\n &.SecondaryCoreButton,\n &.TertiaryCoreButton {\n padding: 0 1em;\n height: 2.375rem;\n &.small {\n height: 2em;\n }\n &:disabled {\n background-color: #f6f7f8;\n border-color: #dedee4;\n color: #c8cdd1;\n opacity: 1;\n }\n }\n\n &.PrimaryCoreButton {\n background-color: #eb5648;\n &,\n &:link,\n &:visited {\n border-color: transparent;\n color: #fff;\n }\n &:enabled:hover,\n a&:hover {\n background-color: #ef776c;\n color: #fff;\n }\n &:enabled:active,\n a&:active {\n background-color: #bc4439;\n color: #e4b4b0;\n }\n }\n\n &.RegularCoreButton,\n &.SecondaryCoreButton {\n background-color: #fff;\n &,\n &:link,\n &:visited {\n color: #eb5648;\n }\n &:enabled:hover,\n a&:hover {\n border-color: #ffa39e;\n color: #ef776c;\n }\n &:enabled:active,\n a&:active {\n border-color: #e84030;\n color: #bc4439;\n }\n }\n\n &.TertiaryCoreButton {\n background-color: #fff;\n border-color: #c8cdd1;\n &,\n &:link,\n &:visited {\n color: #415058;\n }\n &:enabled:hover,\n a&:hover {\n background-color: #8d9ea7;\n border-color: #7d8694;\n color: #fff;\n }\n &:enabled:active,\n a&:active {\n background-color: #5b6b73;\n border-color: #415058;\n }\n }\n\n &.RegularButton {\n &,\n &:link,\n &:visited {\n color: #8d9ea7;\n }\n &:enabled:hover,\n a&:hover {\n color: #5b6b73;\n }\n &:disabled {\n opacity: 0.6;\n }\n }\n\n &.PrimaryButton {\n background-color: #8d9ea7;\n border-color: transparent;\n &,\n &:link,\n &:visited {\n color: #fff;\n }\n &:enabled:hover,\n a&:hover {\n background-color: #5b6b73;\n color: #fff;\n }\n &:enabled:active,\n a&:active {\n color: rgba(255,255,255,0.6);\n }\n }\n\n &.TextButton,\n &.TextCoreButton {\n transition: all 0.1s ease-out;\n &,\n &:link,\n &:visited {\n color: #298df8;\n }\n &:disabled {\n cursor: not-allowed;\n opacity: 0.6;\n }\n &:enabled:hover,\n a&:hover {\n color: #0d7ef7;\n text-decoration: underline;\n }\n .svg-icon.loading {\n margin-right: 0.25em;\n vertical-align: -.15em;\n animation: ibot-ani-spinning 1.5s infinite ease-out;\n }\n .icon {\n margin-right: 0.125em;\n }\n &.small {\n height: 2em;\n font-size: 0.75rem;\n }\n }\n\n &.TextCoreButton {\n &,\n &:link,\n &:visited {\n color: #eb5648;\n }\n &:enabled:hover,\n a&:hover {\n color: #ef776c;\n text-decoration: none;\n }\n &:enabled:active,\n a&:active {\n color: #bc4439;\n }\n }\n"]);return Va=function(){return ne},ne}function tl(ne,ae){return ae||(ae=ne.slice(0)),Object.freeze(Object.defineProperties(ne,{raw:{value:Object.freeze(ae)}}))}var nl=c.Ay.button.withConfig({displayName:"button__StyledButton",componentId:"sc-1h2gqlg-0"})(Va());function ki(ne){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ki=function(ye){return typeof ye}:ki=function(ye){return ye&&typeof Symbol=="function"&&ye.constructor===Symbol&&ye!==Symbol.prototype?"symbol":typeof ye},ki(ne)}function Ai(){return Ai=Object.assign||function(ne){for(var ae=1;ae<arguments.length;ae++){var ye=arguments[ae];for(var Ee in ye)Object.prototype.hasOwnProperty.call(ye,Ee)&&(ne[Ee]=ye[Ee])}return ne},Ai.apply(this,arguments)}function ol(ne,ae){if(ne==null)return{};var ye=sl(ne,ae),Ee,Pe;if(Object.getOwnPropertySymbols){var Ze=Object.getOwnPropertySymbols(ne);for(Pe=0;Pe<Ze.length;Pe++)Ee=Ze[Pe],!(ae.indexOf(Ee)>=0)&&Object.prototype.propertyIsEnumerable.call(ne,Ee)&&(ye[Ee]=ne[Ee])}return ye}function sl(ne,ae){if(ne==null)return{};var ye={},Ee=Object.keys(ne),Pe,Ze;for(Ze=0;Ze<Ee.length;Ze++)Pe=Ee[Ze],!(ae.indexOf(Pe)>=0)&&(ye[Pe]=ne[Pe]);return ye}function il(ne,ae){if(!(ne instanceof ae))throw new TypeError("Cannot call a class as a function")}function Ha(ne,ae){for(var ye=0;ye<ae.length;ye++){var Ee=ae[ye];Ee.enumerable=Ee.enumerable||!1,Ee.configurable=!0,"value"in Ee&&(Ee.writable=!0),Object.defineProperty(ne,Ee.key,Ee)}}function al(ne,ae,ye){return ae&&Ha(ne.prototype,ae),ye&&Ha(ne,ye),ne}function rl(ne,ae){if(typeof ae!="function"&&ae!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(ae&&ae.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),ae&&ha(ne,ae)}function ha(ne,ae){return ha=Object.setPrototypeOf||function(Ee,Pe){return Ee.__proto__=Pe,Ee},ha(ne,ae)}function ll(ne){var ae=pl();return function(){var Ee=zi(ne),Pe;if(ae){var Ze=zi(this).constructor;Pe=Reflect.construct(Ee,arguments,Ze)}else Pe=Ee.apply(this,arguments);return cl(this,Pe)}}function cl(ne,ae){return ae&&(ki(ae)==="object"||typeof ae=="function")?ae:dl(ne)}function dl(ne){if(ne===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ne}function pl(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(ne){return!1}}function zi(ne){return zi=Object.setPrototypeOf?Object.getPrototypeOf:function(ye){return ye.__proto__||Object.getPrototypeOf(ye)},zi(ne)}function Ua(ne,ae,ye){return ae in ne?Object.defineProperty(ne,ae,{value:ye,enumerable:!0,configurable:!0,writable:!0}):ne[ae]=ye,ne}var hl={primary:"Primary",regular:"Regular",secondary:"Regular",tertiary:"Tertiary",text:"Text"},Gi=function(ne){rl(ye,ne);var ae=ll(ye);function ye(){return il(this,ye),ae.apply(this,arguments)}return al(ye,[{key:"render",value:function(){var Pe=this.className,Ze=this.isLoading,Ct=this.isDisabled,wt=this.props,Mt=wt.iconType,Vt=wt.icon,on=wt.children,tn=ol(wt,["iconType","icon","children"]);return r.createElement(nl,Ai({className:Pe,disabled:Ct,onClick:function(bn){return Ct&&bn.preventDefault()},type:"button"},Vo()(tn,["className","type","theme","isDisabled","disabled","isLoading","loading"])),r.createElement(r.Fragment,null,Ze&&r.createElement(pa,{name:"loading"}),Vt&&Mt==="svg"&&r.createElement(pa,{name:Vt}),on))}},{key:"className",get:function(){var Pe=this.props,Ze=Pe.type,Ct=Pe.theme,wt=Pe.size,Mt=Pe.className,Vt=this.isDisabled,on=this.isLoading;return be(["Button","".concat(hl[Ze]).concat(Ct==="core"?"CoreButton":"Button"),wt!=="regular"&&wt,on&&"is-loading",Vt&&"is-disabled",Mt])}},{key:"isDisabled",get:function(){var Pe=this.props,Ze=Pe.isDisabled,Ct=Pe.disabled;return Ze||Ct}},{key:"isLoading",get:function(){var Pe=this.props,Ze=Pe.isLoading,Ct=Pe.loading;return Ze||Ct}}]),ye}(r.PureComponent);Ua(Gi,"propTypes",{type:s().oneOf(["primary","regular","secondary","tertiary","text"]),size:s().oneOf(["regular","small"]),theme:s().oneOf(["core","plain"]),iconType:s().oneOf(["svg","dora","mb","icon","fa","md"]),icon:s().string,className:s().string,isDisabled:s().bool,disabled:s().bool,isLoading:s().bool,loading:s().bool,children:s().any}),Ua(Gi,"defaultProps",{type:"regular",size:"regular",theme:"plain",icon:"",className:"",isDisabled:!1});function Ka(ne){return React.createElement(Gi,Ai({},ne,{theme:"core"}))}function Pd(ne){return React.createElement(Ka,Ai({},ne,{type:"primary"}))}function ul(ne){return React.createElement(Ka,Ai({},ne,{type:"tertiary"}))}const ua=Gi,gl=(0,c.DU)([".no-pointer-events{&::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;z-index:10000;}&.col-resize{cursor:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik0xNyAzLjVWMGw4IDUtOCA1VjYuNUg4VjEwTDAgNWw4LTV2My41aDl6IiBpZD0iYiIvPjxmaWx0ZXIgeD0iLTIwJSIgeT0iLTQwJSIgd2lkdGg9IjE0MCUiIGhlaWdodD0iMjAwJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0iYSI+PGZlT2Zmc2V0IGR5PSIxIiBpbj0iU291cmNlQWxwaGEiIHJlc3VsdD0ic2hhZG93T2Zmc2V0T3V0ZXIxIi8+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMS41IiBpbj0ic2hhZG93T2Zmc2V0T3V0ZXIxIiByZXN1bHQ9InNoYWRvd0JsdXJPdXRlcjEiLz48ZmVDb2xvck1hdHJpeCB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuNDEyMTA5Mzc1IDAiIGluPSJzaGFkb3dCbHVyT3V0ZXIxIi8+PC9maWx0ZXI+PC9kZWZzPjxnIGZpbGwtcnVsZT0ibm9uemVybyIgZmlsbD0ibm9uZSI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMyAyKSI+PHVzZSBmaWxsPSIjMDAwIiBmaWx0ZXI9InVybCgjYSkiIHhsaW5rOmhyZWY9IiNiIi8+PHVzZSBmaWxsPSIjRkZGIiB4bGluazpocmVmPSIjYiIvPjwvZz48cGF0aCBkPSJNMjEgNi41VjRsNSAzLTUgM1Y3LjVIMTBWMTBMNSA3bDUtM3YyLjVoMTF6IiBmaWxsPSIjMDAwIi8+PC9nPjwvc3ZnPg==') 12 5,default;}&.row-resize{cursor:url(\"data:image/svg+xml,%3Csvg width='31' height='31' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cfilter x='-52.3%25' y='-175.5%25' width='204.6%25' height='450.9%25' filterUnits='objectBoundingBox' id='a'%3E%3CfeOffset dy='1' in='SourceAlpha' result='shadowOffsetOuter1'/%3E%3CfeGaussianBlur stdDeviation='1.5' in='shadowOffsetOuter1' result='shadowBlurOuter1'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0' in='shadowBlurOuter1' result='shadowMatrixOuter1'/%3E%3CfeMerge%3E%3CfeMergeNode in='shadowMatrixOuter1'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cg fill='%23000' fill-rule='nonzero'%3E%3Cg filter='url(%23a)' stroke='%23FFF' transform='translate(7 13)'%3E%3Cpath d='M1.5 1.5h14v2h-14z'/%3E%3Cpath d='M-.607 2.72L3.09-.82l.488 6.39L-.607 2.72zM17.607 2.28L13.91 5.82l-.488-6.39 4.185 2.852z'/%3E%3C/g%3E%3Cpath d='M9 15h13v1H9z'/%3E%3Cpath d='M7.184 15.346l2.488-2.073a.2.2 0 01.328.154v4.146a.2.2 0 01-.328.154l-2.488-2.073a.2.2 0 010-.308zM23.816 15.654l-2.488 2.073a.2.2 0 01-.328-.154v-4.146a.2.2 0 01.328-.154l2.488 2.073a.2.2 0 010 .308z'/%3E%3C/g%3E%3C/svg%3E\") 8 15,default;}}"]),ml=c.Ay.label.withConfig({displayName:"styles__StyledInputNumber",componentId:"sc-n99ip8-0"})(["position:relative;display:flex;align-items:center;flex:0 0 80px;padding:8px 0 8px 8px;font-size:12px;border-radius:4px;height:28px;overflow:hidden;transition:border 0.2s ease-out 0s,outline,opacity;box-sizing:border-box;.title{display:flex;align-items:center;justify-content:center;width:12px;height:15px;line-height:15px;user-select:none;margin-right:9px;color:rgba(153,153,153,0.7);&.title-cursor{&.col-resize{cursor:url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjdweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgMjcgMTYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+57yW57uEPC90aXRsZT4KICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPgogICAgPGRlZnM+CiAgICAgICAgPHBhdGggZD0iTTEzLDMuNSBMMTMsLTEuNTMxNDI3NDhlLTE1IEwyMSw1IEwxMywxMCBMMTMsNi41IEw4LDYuNSBMOCwxMCBMLTMuMDYxNjE3ZS0xNiw1IEw4LDIuNDQ5MjkzNmUtMTYgTDgsMy41IEwxMywzLjUgWiIgaWQ9InBhdGgtMSI+PC9wYXRoPgogICAgICAgIDxmaWx0ZXIgeD0iLTIzLjglIiB5PSItNDAuMCUiIHdpZHRoPSIxNDcuNiUiIGhlaWdodD0iMjAwLjAlIiBmaWx0ZXJVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giIGlkPSJmaWx0ZXItMiI+CiAgICAgICAgICAgIDxmZU9mZnNldCBkeD0iMCIgZHk9IjEiIGluPSJTb3VyY2VBbHBoYSIgcmVzdWx0PSJzaGFkb3dPZmZzZXRPdXRlcjEiPjwvZmVPZmZzZXQ+CiAgICAgICAgICAgIDxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjEuNSIgaW49InNoYWRvd09mZnNldE91dGVyMSIgcmVzdWx0PSJzaGFkb3dCbHVyT3V0ZXIxIj48L2ZlR2F1c3NpYW5CbHVyPgogICAgICAgICAgICA8ZmVDb2xvck1hdHJpeCB2YWx1ZXM9IjAgMCAwIDAgMCAgIDAgMCAwIDAgMCAgIDAgMCAwIDAgMCAgMCAwIDAgMC40MTIxMDkzNzUgMCIgdHlwZT0ibWF0cml4IiBpbj0ic2hhZG93Qmx1ck91dGVyMSI+PC9mZUNvbG9yTWF0cml4PgogICAgICAgIDwvZmlsdGVyPgogICAgPC9kZWZzPgogICAgPGcgaWQ9Iuiuvue9rumdouadvyIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9Iue7hOS7tuagt+W8jyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTQwLjAwMDAwMCwgLTYyMS4wMDAwMDApIiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgICAgICA8ZyBpZD0i57yW57uEIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg0My4wMDAwMDAsIDYyMy4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxnIGlkPSJDb21iaW5lZC1TaGFwZSI+CiAgICAgICAgICAgICAgICAgICAgPHVzZSBmaWxsPSJibGFjayIgZmlsbC1vcGFjaXR5PSIxIiBmaWx0ZXI9InVybCgjZmlsdGVyLTIpIiB4bGluazpocmVmPSIjcGF0aC0xIj48L3VzZT4KICAgICAgICAgICAgICAgICAgICA8dXNlIGZpbGw9IiNGRkZGRkYiIHhsaW5rOmhyZWY9IiNwYXRoLTEiPjwvdXNlPgogICAgICAgICAgICAgICAgPC9nPgogICAgICAgICAgICAgICAgPHBhdGggZD0iTTE0LDQuNSBMMTQsMiBMMTksNSBMMTQsOCBMMTQsNS41IEw3LDUuNSBMNyw4IEwyLDUgTDcsMiBMNyw0LjUgTDE0LDQuNSBaIiBpZD0i5b2i54q257uT5ZCIIiBmaWxsPSIjMDAwMDAwIj48L3BhdGg+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==') 10 5,default;}&.row-resize{cursor:url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMjYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGQ9Ik0xMyAzLjVWMGw4IDUtOCA1VjYuNUg4VjEwTDAgNWw4LTV2My41aDV6IiBpZD0iYiIvPjxmaWx0ZXIgeD0iLTIzLjglIiB5PSItNDAlIiB3aWR0aD0iMTQ3LjYlIiBoZWlnaHQ9IjIwMCUiIGZpbHRlclVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgaWQ9ImEiPjxmZU9mZnNldCBkeT0iMSIgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjEuNSIgaW49InNoYWRvd09mZnNldE91dGVyMSIgcmVzdWx0PSJzaGFkb3dCbHVyT3V0ZXIxIi8+PGZlQ29sb3JNYXRyaXggdmFsdWVzPSIwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwLjQxMjEwOTM3NSAwIiBpbj0ic2hhZG93Qmx1ck91dGVyMSIvPjwvZmlsdGVyPjwvZGVmcz48ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIGZpbGw9Im5vbmUiPjxnIHRyYW5zZm9ybT0icm90YXRlKDkwIDUuNSA4KSI+PHVzZSBmaWxsPSIjMDAwIiBmaWx0ZXI9InVybCgjYSkiIHhsaW5rOmhyZWY9IiNiIi8+PHVzZSBmaWxsPSIjRkZGIiB4bGluazpocmVmPSIjYiIvPjwvZz48cGF0aCBkPSJNOSAxNi41aDIuNWwtMyA1LTMtNUg4di03SDUuNWwzLTUgMyA1SDl2N3oiIGZpbGw9IiMwMDAiLz48L2c+PC9zdmc+') 8 13,default;}}}input{color:",";width:36px;transition:0.2s ease-out;cursor:default;caret-color:",";font-size:12px;&::selection{background-color:",";}}.suffix{position:absolute;top:0;display:flex;align-items:center;height:100%;pointer-events:none;user-select:none;width:100%;color:",";&::before{content:attr(data-value);display:inline-block;margin-right:0.125em;width:fit-content;overflow:hidden;opacity:0;}}.action{position:absolute;right:0;top:0;display:flex;flex-direction:column;justify-content:center;width:16px;height:100%;text-align:center;visibility:hidden;transition:0.2s ease-out;transition-property:background,border,opacity;border-radius:4px;svg{height:4px;fill:currentColor;fill-rule:evenodd;}button{display:flex;justify-content:center;margin:0;padding:0;width:100%;height:50%;line-height:0;color:",";transition:all 0.1s ease-out;&:nth-of-type(1){align-items:flex-end;padding-bottom:3px;}&:nth-of-type(2){align-items:flex-start;padding-top:3px;}&:hover{color:",";svg path{fill:#333;}}&:active{color:",";}}&.caret{width:22px;svg{height:10px;width:10px;margin-right:0;}button{height:100%;}}}&.is-disabled{> *{opacity:0.5;cursor:not-allowed;}}&.is-readOnly{pointer-events:none;.action{visibility:hidden;}}&:hover:not(.has-menu):not(.is-disabled){box-shadow:inset 0 0 0 1px #e5e5e5;.action{visibility:visible;color:#c8cdd0;}}&.is-active:not(.has-menu):not(.is-disabled){box-shadow:inset 0 0 0 2px ",";.action{&:not(.caret){visibility:visible;}}}&.is-active-title{box-shadow:inset 0 0 0 2px ",";}&.has-menu{input{width:calc(100% - 22px);border-radius:4px;margin-left:0;padding-left:5px;transition:0.2s ease-out;transition-property:outline,border;}&:hover:not(.is-active):not(.is-disabled){.action.caret{visibility:visible;background:",";}}&.is-active{input{box-shadow:inset 0 0 0 2px ",";}.action.caret{visibility:visible;color:#c8cdd0;&:hover{background:",";}}}}"],ne=>ne.theme.color_text_L1,ne=>ne.theme.themeColor,ne=>""+Cn.Q.hex2rgbaStr(ne.theme.themeColor,.3),ne=>ne.theme.color_text_L1,ne=>ne.theme.common.text_20.cr,ne=>ne.theme.common.text_20.hover,ne=>ne.theme.themeColor,ne=>ne.theme.themeColor,ne=>ne.theme.themeColor,ne=>ne.theme.inputNumber.caret_bg_hover,ne=>ne.theme.themeColor,ne=>ne.theme.inputNumber.caret_bg_hover);var fl=e(18381);function xl(ne){for(var ae=[],ye=/\s*([0-9\.]+|\S)\s*/g,Ee;(Ee=ye.exec(ne))!==null;)ae.push(Ee[1]);return ae}function yl(ne){return ne!==void 0&&ne.match(/^[0-9\.]+$/)!==null}function vl(ne,ae){var ye=xl(ae),Ee=0;function Pe(){return ye[Ee]}function Ze(ln){Ee++}function Ct(){var ln=Pe();if(ln==="-"){Ze(ln);const Gn=Pe();return Ze(Gn),{type:"number",value:ln+Gn}}else if(ln==="+"){Ze(ln);const Gn=Pe();return Ze(Gn),{type:"number",value:Gn}}else{if(yl(ln))return Ze(ln),{type:"number",value:ln};if(ln==="("){Ze(ln);var bn=Vt();if(Pe()!==")")throw new SyntaxError("expected )");return Ze(")"),bn}else throw new SyntaxError("expected a number, a variable, or parentheses")}}function wt(ln){return Pe()==="%"?(Ze("%"),wt({type:"%",expr:ln})):ln}function Mt(){for(var ln=wt(Ct()),bn=Pe();bn==="*"||bn==="/";){Ze(bn);var Gn=wt(Ct());ln={type:bn,left:ln,right:Gn},bn=Pe()}return ln}function Vt(){for(var ln=Mt(),bn=Pe();bn==="+"||bn==="-";){Ze(bn);var Gn=Mt();ln={type:bn,left:ln,right:Gn},bn=Pe()}return ln}var on=Vt();if(Ee!==ye.length)throw new SyntaxError("unexpected '"+Pe()+"'");function tn(ln){switch(ln.type){case"number":return parseFloat(ln.value);case"%":if(typeof ne=="number")return ne*tn(ln.expr)*.01;throw new Error("% of non-number");case"+":return tn(ln.left)+tn(ln.right);case"-":return tn(ln.left)-tn(ln.right);case"*":return tn(ln.left)*tn(ln.right);case"/":return tn(ln.left)/tn(ln.right)}}return tn(on)}const pc=(0,ke.jsx)("svg",{width:"6",height:"4",xmlns:"http://www.w3.org/2000/svg",children:(0,ke.jsx)("path",{d:"M5.52 3.601l-4.514.057a.5.5 0 01-.35-.863L2.942.637a.5.5 0 01.686 0l2.23 2.1a.5.5 0 01-.337.864z",fill:"#999",fillRule:"nonzero"})}),za=(0,ke.jsx)("svg",{width:"6",height:"4",xmlns:"http://www.w3.org/2000/svg",children:(0,ke.jsx)("path",{d:"M5.52.715L1.006.658a.5.5 0 00-.35.864L2.942 3.68a.5.5 0 00.686 0l2.23-2.1A.5.5 0 005.52.714z",fill:"#999",fillRule:"nonzero"})}),bl=500,Cl=30,Zi=(ne,ae)=>Math.round(Number(ne)*Math.pow(10,ae))/Math.pow(10,ae);function Yi(ne,ae,ye){return ne===po("common.multipleValues")?ne:ae||ne!==""&&E()(Number(ne))?Zi(ne,ye):""}const Ga=function(ne,ae){let{shiftKey:ye}=ne;return ae===void 0&&(ae=1),ye?ae*10:ae},hc=ne=>{let{currentTarget:ae}=ne;return setTimeout(()=>ae.select(),50)};class ci extends r.PureComponent{constructor(ae){var ye;super(ae),ye=this,(0,n.A)(this,"setElemRef",Pe=>this.$title=Pe),(0,n.A)(this,"setLabelRef",Pe=>this.$label=Pe),(0,n.A)(this,"setInputRef",Pe=>this.$input=Pe),(0,n.A)(this,"onChange",Pe=>{const{target:{value:Ze}}=Pe;this.setValue(Ze.trim(),Pe)}),(0,n.A)(this,"correctNumber",Pe=>{typeof Pe=="string"&&(Pe=Number.parseFloat(Pe));const{value:Ze,min:Ct,max:wt,precision:Mt}=this.props,Vt=Zi(Math.min(Math.max(Pe,Ct),wt),Mt);if(isNaN(Vt)){if(isNaN(Ze))return 0}else return Vt}),(0,n.A)(this,"checkValidity",Pe=>/^\+$/.test(Pe)?this.canBePositive:/^\-$/.test(Pe)?this.canBeNegative:Pe===""||isFinite(Pe)&&this.correctNumber(Pe)===Number(Pe)||Pe===po("common.multipleValues")),(0,n.A)(this,"setValue",(Pe,Ze,Ct)=>{if(Ze.persist&&Ze.persist(),Pe===this.state.value){Ct();return}this.setState({value:Pe},Ct)}),(0,n.A)(this,"setConfirmedValue",(Pe,Ze,Ct)=>this.setValue(Pe,Ze,()=>this.onConfirm(Ze,Ct))),(0,n.A)(this,"setConfirmedValueWhenResize",(Pe,Ze,Ct)=>this.setValue(Pe,Ze,()=>this.onConfirm(Ze,Ct))),(0,n.A)(this,"onConfirm",function(Pe,Ze){Ze===void 0&&(Ze=!1);const{attr:Ct,value:wt,precision:Mt,onConfirm:Vt,isNotVerify:on,canReturnUndefined:tn}=ye.props,ln=ye.materializeToNumber(),bn=ye.checkValidity(ln);if(on&&!bn||ye.props.isDisabled||ye.props.disabled)return;Pe.persist&&Pe.persist();const so=ye.correctNumber(ln),eo=isNaN(so)?wt:so,Co=ln===""?tn?void 0:wt:bn?/^[\+\-]$/.test(ln)?0:so:so===Zi(ln,Mt)?so:wt||eo,ko=Co||eo;if(!(!E()(Co)&&!tn))return ye.setState({value:ko},()=>Vt(Co,Ct,Pe,Ze))}),(0,n.A)(this,"focusOnInput",Pe=>{try{const Ze=Pe.currentTarget.closest("label").querySelector("input");setTimeout(()=>Ze.focus())}catch(Ze){console.error(Ze)}}),(0,n.A)(this,"stepStopCompress",void 0),(0,n.A)(this,"onStep",Pe=>{Pe.persist(),Pe.nativeEvent.stopPropagation();const{action:Ze}=Pe.currentTarget.dataset,Ct=Ga(Pe,this.props.step)*(Ze==="up"?1:-1);this.stepStopCompress!==void 0&&clearTimeout(this.stepStopCompress),this.stepStopCompress=setTimeout(()=>{this.stepStopCompress=void 0},1e3),this.setConfirmedValue(this.correctNumber(this.materializeToNumber()+Ct),Pe,!0),Object.assign(this,{longPressedTimeout:setTimeout(()=>Object.assign(this,{steppingInterval:setInterval(()=>this.setConfirmedValue(this.correctNumber(this.materializeToNumber()+Ct),Pe,!0),Cl)}),bl)})}),(0,n.A)(this,"onRelease",()=>{clearTimeout(this.longPressedTimeout),clearInterval(this.steppingInterval)}),(0,n.A)(this,"onFocus",Pe=>{const{attr:Ze,onFocus:Ct=hc}=this.props;Ct(Pe,Ze)}),(0,n.A)(this,"onKeyDown",Pe=>{const{key:Ze,currentTarget:Ct}=Pe,wt=Ze==="ArrowUp"?"up":Ze==="ArrowDown"?"down":Ze==="Enter"?"enter":Ze==="Tab"?"tab":null,Mt=Ct instanceof Element&&Ct.matches("input");if(wt){if(Pe.persist&&Pe.persist(),wt!=="tab"&&Pe.preventDefault(),Mt&&wt==="tab")return this.setInactive(),this.onConfirm(Pe);if(Mt&&wt==="enter"){this.onConfirm(Pe),this.setInactive(),this.$label.querySelector("input").select();return}if(Mt){if(!this.shouldEnableByValue(this.state.value))return;const Vt=Ga(Pe,this.props.step)*(wt==="up"?1:-1);this.setConfirmedValue(this.correctNumber(this.materializeToNumber()+Vt),Pe,!0)}}}),(0,n.A)(this,"setActive",Pe=>{Pe.target.closest(".action")||this.setState({isActive:!0})}),(0,n.A)(this,"setInactive",()=>{this.setState({isActive:!1})}),(0,n.A)(this,"toggleMenu",()=>this.setState({isMenuOpen:!this.state.isMenuOpen})),(0,n.A)(this,"closeMenu",()=>this.setState({isMenuOpen:!1})),(0,n.A)(this,"onSelect",Pe=>{Pe.persist();const{currentTarget:Ze}=Pe;this.setConfirmedValue(Ze.dataset.value,Pe),this.setInactive(),this.closeMenu()}),(0,n.A)(this,"onClickOutside",Pe=>{const{target:Ze}=Pe,{onBlur:Ct}=this.props;Ze.closest("label")&&this.$label.contains(Ze)||(this.onConfirm(Pe),this.setInactive(),Ct&&Ct())}),(0,n.A)(this,"handleRectResize",Pe=>{Pe.stopPropagation();const{isDisabled:Ze,disabled:Ct,cursorSize:wt,cursorDirection:Mt}=this.props;if(Ze||Ct||!this.shouldEnableByValue(this.state.value))return;const{left:Vt,right:on,top:tn,bottom:ln}=this.$title.getBoundingClientRect();this.lastRecordedClientX=wt==="col-resize"?(Vt+on)/2:(tn+ln)/2,this.lastRecordedValue=this.materializeToNumber(),this.setState({isTitleActive:!0}),document.body.classList.add("no-pointer-events",wt),this.props.onRectResize&&this.props.onRectResize(!0);const bn=so=>{const eo=(wt==="col-resize"?so.pageX:so.pageY)-this.lastRecordedClientX;this.setConfirmedValueWhenResize(this.correctNumber(this.lastRecordedValue+(Mt?Number(eo):-Number(eo))),so,!0)},Gn=so=>{this.setState({isTitleActive:!1}),document.body.classList.remove("no-pointer-events",wt),this.props.onRectResize&&this.props.onRectResize(!1),document.removeEventListener("mousemove",bn),document.removeEventListener("mouseup",Gn)};document.addEventListener("mousemove",bn),document.addEventListener("mouseup",Gn)}),(0,n.A)(this,"handleChangeCursor",Pe=>{const{isDisabled:Ze,disabled:Ct}=this.props;Ze||Ct||this.shouldEnableByValue(this.state.value)&&this.setState({isCursor:!this.state.isCursor})});const Ee=Yi(this.props.value,this.props.isNotVerify,this.props.precision);this.state={prevProps:this.props,value:Ee,isActive:!1,isMenuOpen:!1,isTitleActive:!1,isCursor:!1,suffixStyle:null},this.lastRecordedClientX=null,this.lastRecordedValue=Ee}static getDerivedStateFromProps(ae,ye){let{prevProps:Ee,value:Pe}=ye;return(0,fl.bN)(Ee,ae)?null:{prevProps:ae,value:Yi(ae.value,ae.isNotVerify,ae.precision)}}componentDidMount(){this.positionEverything()}positionEverything(){const{value:ae,suffix:ye,suffixOffsetLeft:Ee}=this.props;if(ye){const Pe={left:this.$input.offsetLeft+Ee};this.setState({suffixStyle:Pe})}}get canBePositive(){return this.props.max>0}get canBeNegative(){return this.props.min<0}materializeToNumber(){try{return vl(this.props.value,this.state.value.toString())}catch(ae){return(this.props.value===""||this.props.value===void 0)&&this.setState({value:""}),this.props.value}}shouldEnableByValue(ae){return E()(ae)||/[0-9+\%\*\-\(\)]+/.test(ae)}render(){const{className:ae,placeholder:ye,title:Ee,cursorSize:Pe,suffix:Ze,formatter:Ct,optionList:wt,canSlidingAdjustment:Mt,readOnly:Vt,onMouseEnter:on,onMouseLeave:tn,withBtns:ln,showCursorResize:bn}=this.props,{value:Gn,isActive:so,isMenuOpen:eo,isTitleActive:Co,isCursor:ko,suffixStyle:Ro}=this.state,Bo=this.props.isDisabled||this.props.disabled,Fo=Bo||!this.shouldEnableByValue(Gn),Ho=wt&&wt.length>0,Lo=f()(ae,"WorkspaceInputNumber",{"is-disabled":Bo,"is-active":so&&!Bo,"is-menu-open":eo,"is-active-title":Co,"can-sliding-adjustment":Mt,"has-menu":Ho,"is-readOnly":Vt});return(0,ke.jsxs)(ml,{className:Lo,ref:this.setLabelRef,onMouseDown:this.setActive,onMouseEnter:on,onMouseLeave:tn,children:[Ee&&(0,ke.jsx)("div",{className:f()("title",{"title-cursor":ko},Pe),ref:this.setElemRef,onMouseDown:this.handleRectResize,onMouseEnter:this.handleChangeCursor,onMouseLeave:this.handleChangeCursor,children:Ee}),!Ee&&bn&&(0,ke.jsx)("div",{className:f()("title no-title",{"title-cursor":ko},Pe),ref:this.setElemRef,onMouseDown:this.handleRectResize,onMouseEnter:this.handleChangeCursor,onMouseLeave:this.handleChangeCursor}),(0,ke.jsx)("input",{type:"text",value:Ct(Gn),placeholder:ye,ref:this.setInputRef,disabled:Bo,onChange:this.onChange,onKeyDown:this.onKeyDown,onKeyUp:this.handleAfterChangeValue,onFocus:this.onFocus}),Ze&&(0,ke.jsx)("span",{className:"suffix",style:Ro,"data-value":Ct(Gn),"data-suffix":Ze,children:(0,ke.jsx)("span",{children:Ze})}),ln&&(0,ke.jsx)(Za,{hasMenu:Ho,isDisabled:Fo,onToggleMenu:this.toggleMenu,onStep:this.onStep,onRelease:this.onRelease}),Ho&&eo&&(0,ke.jsx)(In,{isOpen:eo,menuClassName:"SelectNumberMenu",$select:this.$label,optionList:wt,value:Gn,onChange:this.onSelect,onClose:this.closeMenu}),so&&(0,ke.jsx)(l.A,{target:document,onMouseDown:(0,l.t)(this.onClickOutside,{capture:!0})}),(0,ke.jsx)(gl,{})]})}}(0,n.A)(ci,"propTypes",{step:s().number,precision:s().number,formatter:s().func,parser:s().func,value:s().oneOfType([s().string,s().number]),placeholder:s().oneOfType([s().string,s().number]),readOnly:s().bool,canReturnUndefined:s().bool,title:s().node,suffix:s().string,cursorSize:s().string,min:s().number,max:s().number,suffixOffsetLeft:s().number,cursorDirection:s().bool,isDisabled:s().bool,isNotVerify:s().bool,disabled:s().bool,canSlidingAdjustment:s().bool,withBtns:s().bool,showCursorResize:s().bool,onRectResize:s().func,onFocus:s().func,onBlur:s().func,onConfirm:s().func.isRequired,attr:s().oneOfType([s().string,s().array]),className:s().string,optionList:s().array,onMouseEnter:s().func,onMouseLeave:s().func}),(0,n.A)(ci,"defaultProps",{unstyled:!1,value:"",placeholder:"",cursorSize:"col-resize",cursorDirection:!0,step:1,suffixOffsetLeft:0,isNotVerify:!1,parser:ne=>ne,formatter:ne=>ne,min:-1/0,max:1/0,isDisabled:!1,disabled:!1,readOnly:!1,canReturnUndefined:!1,withBtns:!0,showCursorResize:!1,onConfirm:()=>null,onBlur:()=>null,onMouseEnter:()=>null,onMouseLeave:()=>null,onRectResize:()=>null,precision:0,canSlidingAdjustment:!0});const Za=(0,r.memo)(ne=>{let{hasMenu:ae,onToggleMenu:ye,onStep:Ee,isDisabled:Pe,onRelease:Ze}=ne;return(0,ke.jsx)(ke.Fragment,{children:ae?(0,ke.jsx)("div",{className:"action caret",children:(0,ke.jsx)(ua,{type:"text",tabIndex:"-1",onClick:ye})}):(0,ke.jsxs)("div",{className:"action",children:[(0,ke.jsx)(ua,{type:"text",tabIndex:"-1","data-action":"up",isDisabled:Pe,onMouseDown:Ee,onMouseLeave:Ze,onMouseUp:Ze,children:pc}),(0,ke.jsx)(ua,{type:"text",tabIndex:"-1","data-action":"down",isDisabled:Pe,onMouseDown:Ee,onMouseLeave:Ze,onMouseUp:Ze,children:za})]})})});Za.propTypes={hasMenu:s().bool,isDisabled:s().bool,onToggleMenu:s().func,onStep:s().func,onRelease:s().func};var Sl=e(99340);const _l=c.Ay.div.withConfig({displayName:"styles__StyledInputGroup",componentId:"sc-kybwl8-0"})(["display:flex;align-items:center;justify-content:flex-start;width:100%;height:32px;margin-left:-7px;.WorkspaceSelect{flex:0 0 60px;}input{color:",";transition:all 0.2s;caret-color:#333333;&::selection{background-color:",";}}.is-active-title{box-shadow:none;}.hex-input-wp{display:flex;flex:0 0 152px;position:relative;align-items:center;border-radius:6px;padding-left:0;margin-left:2px;margin-right:0;height:28px;.bgColorText{padding:7px 0 7px 26px;font-size:12px;width:67px;background-color:transparent;box-sizing:content-box;color:",";}.hex-suffix{position:absolute;left:9px;font-size:12px;color:",";cursor:default;}&:hover:not(.disable):not(.is-active){box-shadow:inset 0 0 0 1px ",";&::after{content:'';position:absolute;left:93px;top:1px;width:1px;height:calc(100% - 2px);background-color:",";}}&.is-rect-resize{box-shadow:inset 0 0 0 2px ",";&::after{content:'';position:absolute;left:93px;top:1px;width:2px;height:calc(100% - 2px);background-color:",";}}&.is-active{box-shadow:inset 0 0 0 2px ",";&::after{content:'';position:absolute;left:93px;top:2px;width:1px;height:calc(100% - 4px);background-color:",";}}&.hide-line{.bgColorText,.alphaText{opacity:0.4;}}&:hover::after{left:93px;}}.rgba-input-wp{display:flex;align-items:center;border:solid 1px transparent;border-radius:6px;transition:all 0.2s;height:30px;input{font-size:12px;}input:nth-of-type(3){border-right:solid 1px transparent;}&:hover{box-shadow:inset 0 0 0 1px ",";input:not(:nth-of-type(1)){border-left:solid 1px ",";}input:nth-of-type(3){border-right:solid 1px ",";}}&.is-active{box-shadow:inset 0 0 0 2px ",";input:not(:nth-of-type(1)){border-left:solid 1px ",";height:24px;}input:nth-of-type(3){border-right:solid 1px ",";height:24px;}}&.is-rect-resize{box-shadow:inset 0 0 0 2px ",";input:nth-of-type(3){border-right:solid 2px ",";height:24px;}input:not(:nth-of-type(1)){border-left:solid 1px ",";height:24px;}}input{width:34px;height:28px;margin-left:-1px;border-left:solid 1px transparent;padding:7px 2px 7px 0;text-align:center;&:nth-child(1){margin-left:0;border-left:none;}}.alpha-input{padding:7px 0 7px 8px;text-align:left;width:64px;}}.css-input{width:152px;height:28px;line-height:28px;padding-left:4px;border-radius:6px;border-radius:4px;font-size:12px;&:hover{box-shadow:inset 0 0 0 1px ",";}&:focus{box-shadow:inset 0 0 0 2px ",";}}.input-with-no-title{padding:8px 2px;flex:0 0 58px;font-size:12px;input{padding-left:0;}.no-title{margin:0;width:6px;}.suffix{left:12px;}.action{right:5px;width:12px;background:",";height:18px;margin:5px 0;}&.hex-a-input{padding:0;flex:0 0 59px;font-size:12px;box-shadow:none;justify-content:center;input{width:100%;padding-left:3px;}input,.suffix{color:",";line-height:28px;}.suffix{left:7px !important;}&:hover:not(.has-menu):not(.is-disabled){box-shadow:none;}&.is-active:not(.has-menu):not(.is-disabled){box-shadow:none;}.no-title{margin-right:0;width:6px;}.action{width:10px;}}&.rgba-a-input{outline:none;flex:0 0 50px;input{width:50px;text-align:start;padding-left:3px;}.action{right:1px;}.suffix{left:4px !important;}&:hover:not(.has-menu):not(.is-disabled){outline:none;box-shadow:none;}&.is-active:not(.has-menu):not(.is-disabled){outline:none;box-shadow:none;}}}"],ne=>ne.theme.color_text_L0,ne=>""+Cn.Q.hex2rgbaStr(ne.theme.themeColor,.3),ne=>ne.theme.color_text_L0,ne=>ne.theme.color_text_L3,ne=>ne.theme.input.hover.border,ne=>ne.theme.input.hover.border,ne=>ne.theme.themeColor,ne=>ne.theme.themeColor,ne=>ne.theme.themeColor,ne=>ne.theme.themeColor,ne=>ne.theme.input.hover.border,ne=>ne.theme.input.hover.border,ne=>ne.theme.input.hover.border,ne=>ne.theme.themeColor,ne=>ne.theme.input.hover.border,ne=>ne.theme.input.hover.border,ne=>ne.theme.themeColor,ne=>ne.theme.themeColor,ne=>ne.theme.input.hover.border,ne=>ne.theme.input.hover.border,ne=>ne.theme.themeColor,ne=>ne.theme.bgColor,ne=>ne.theme.color_text_L0),wl=[{value:"HEX"},{value:"RGB"},{value:"CSS"},{value:"HSB"}],uc={h:360,s:100,v:100};class Ya extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"_originalValueOfInput",0),(0,n.A)(this,"_invalidFace",""),(0,n.A)(this,"_changedMannually",!1),(0,n.A)(this,"state",{r:this.props.color[0],g:this.props.color[1],b:this.props.color[2],a:this.props.color[3],cssStr:"rgba("+Math.round(this.props.color[0])+", "+Math.round(this.props.color[1])+", "+Math.round(this.props.color[2])+", "+this.props.color[3]+")",h:0,s:0,v:0,prevHexFromProps:null,isRgbaInputActive:!1,isRectResize:!1}),(0,n.A)(this,"selectWhenClick",ae=>{const ye=ae.target;ye.select(),this._originalValueOfInput=Number(ye.value)}),(0,n.A)(this,"_correctInput",ae=>ae.replace(/\D/g,"").slice(0,3)),(0,n.A)(this,"handleChange",ae=>{this._changedMannually=!0;const ye=ae.target,Ee=ye.dataset.face,Pe=Number(this._correctInput(ye.value));this.setState({[Ee]:Pe})}),(0,n.A)(this,"validate",(ae,ye)=>{const Ee=this.props.colorInputOption==="HSB"?uc[ae]:255;return ye===""||Number(ye)>Ee?(this._invalidFace=ae,!1):(this._invalidFace="",!0)}),(0,n.A)(this,"emitChange",()=>{if(!this._changedMannually)return;const{r:ae,g:ye,b:Ee,h:Pe,s:Ze,v:Ct}=this.state;if(this.props.colorInputOption==="HSB"){const wt=d.Q1.hsv2rgb({h:Pe/360,s:Ze/100,v:Ct/100});this.props.onRgbaChange(wt)}else this.props.onRgbaChange({r:ae,g:ye,b:Ee})}),(0,n.A)(this,"handleBlur",ae=>{const ye=ae.target.dataset.face;ye===this._invalidFace?this.setState({[ye]:this._originalValueOfInput}):this.emitChange(),this._invalidFace="",this._originalValueOfInput=0,this.rgbaInputCancel()}),(0,n.A)(this,"handleEnter",ae=>{if(ae.key!=="Enter")return;const ye=ae.target,Ee=ye.dataset.face;Ee===this._invalidFace?this.setState({[Ee]:this._originalValueOfInput}):(this._originalValueOfInput=this.state[Ee],this.emitChange()),this._invalidFace="",ye.select()}),(0,n.A)(this,"rgbaInputActive",ae=>{ae&&ae.target.select&&ae.target.select(),this.setState({isRgbaInputActive:!0})}),(0,n.A)(this,"rgbaInputCancel",()=>{this.setState({isRgbaInputActive:!1})}),(0,n.A)(this,"handleCssInput",ae=>{this.setState({cssStr:ae.target.value})}),(0,n.A)(this,"handleRectResize",ae=>{this.setState({isRectResize:ae})}),(0,n.A)(this,"handleHexChange",ae=>{const{r:ye,g:Ee,b:Pe}=d.Q1.hex2rgb(ae),{onHexChange:Ze}=this.props,{a:Ct}=this.state;Ze({color:[ye/255,Ee/255,Pe/255,Ct]}),this.rgbaInputCancel()}),(0,n.A)(this,"handleCssSubmit",ae=>{ae.preventDefault();const{onRgbaChange:ye}=this.props,{cssStr:Ee}=this.state,Pe=Ee.match(/rgba?\(\s*([\w.+]+)\s*,\s*([\w.+]+)\s*,\s*([\w.+]+)\s*(?:,\s*([\w%.+]+)\s*)?\)/);if(Pe){const Ze=Math.min(Math.max(+Pe[1],0),255),Ct=Math.min(Math.max(+Pe[2],0),255),wt=Math.min(Math.max(+Pe[3],0),255);let Mt=Number(Pe[4]);Mt=isNaN(Mt)?1:Math.max(Math.min(Mt,1),0),ye({r:Ze,g:Ct,b:wt,a:Mt})}else{const[Ze,Ct,wt,Mt]=this.props.color;this.setState({cssStr:"rgba("+Math.round(Ze)+", "+Math.round(Ct)+", "+Math.round(wt)+", "+Mt+")"})}this.rgbaInputCancel()}),(0,n.A)(this,"handleCssEnter",ae=>{!ae||!ae.key||ae.key==="Enter"&&ae.target.blur()})}static getDerivedStateFromProps(ae,ye){if(ae.color!==ye.prevHexFromProps){const[Ee,Pe,Ze,Ct]=ae.color;let wt={r:Ee,g:Pe,b:Ze,a:Ct,cssStr:"rgba("+Math.round(Ee)+", "+Math.round(Pe)+", "+Math.round(Ze)+", "+Ct+")",prevHexFromProps:ae.color};if(ae.colorInputOption==="HSB"){const{h:Mt,s:Vt,v:on}=d.Q1.rgb2hsv({r:Ee,g:Pe,b:Ze});wt={...wt,h:Mt*360,s:Vt*100,v:on*100}}return wt}else return null}render(){const{colorInputOption:ae,onHexChange:ye,onChangeInputType:Ee,onAlphaChange:Pe}=this.props,{r:Ze,g:Ct,b:wt,a:Mt,cssStr:Vt,h:on,s:tn,v:ln,isRgbaInputActive:bn,isRectResize:Gn}=this.state;return(0,ke.jsxs)(_l,{children:[(0,ke.jsx)(Jt,{width:80,selectWidth:60,optionList:wl,value:ae,onChange:Ee}),ae==="HEX"&&(0,ke.jsxs)("div",{className:"hex-input-wp "+(bn?"is-active":"")+" "+(Gn?"is-rect-resize":"")+" color-input-wp",children:[(0,ke.jsx)(Sl.A,{hexValue:d.Q1.toHexAndAlpha([Ze/255,Ct/255,wt/255,Mt])[0].substring(1),className:"bgColorText",handleChange:this.handleHexChange,onFocus:this.rgbaInputActive,onBlur:this.handleBlur}),(0,ke.jsx)(ci,{className:"input-with-no-title hex-a-input",min:0,max:100,suffix:"%",showCursorResize:!0,value:Mt*100,onChange:Pe,onConfirm:Pe,onFocus:this.rgbaInputActive,onRectResize:this.handleRectResize,onBlur:this.rgbaInputCancel})]}),ae==="RGB"&&(0,ke.jsxs)("div",{className:"rgba-input-wp "+(bn?"is-active":"")+" "+(Gn?"is-rect-resize":"")+" color-input-wp",children:[(0,ke.jsx)("input",{type:"text",value:Math.round(Ze),"data-face":"r",onChange:this.handleChange,onKeyUp:this.handleEnter,onFocus:this.rgbaInputActive,onBlur:this.handleBlur}),(0,ke.jsx)("input",{type:"text",value:Math.round(Ct),"data-face":"g",onChange:this.handleChange,onKeyUp:this.handleEnter,onFocus:this.rgbaInputActive,onBlur:this.handleBlur}),(0,ke.jsx)("input",{type:"text",value:Math.round(wt),"data-face":"b",onChange:this.handleChange,onKeyUp:this.handleEnter,onFocus:this.rgbaInputActive,onBlur:this.handleBlur}),(0,ke.jsx)(ci,{className:"input-with-no-title rgba-a-input",min:0,max:100,suffix:"%",showCursorResize:!0,value:Mt*100,onChange:Pe,onConfirm:Pe,onFocus:this.rgbaInputActive,onRectResize:this.handleRectResize,onBlur:this.rgbaInputCancel})]}),ae==="CSS"&&(0,ke.jsx)("div",{className:(bn?"is-active":"")+" color-input-wp",children:(0,ke.jsx)("input",{type:"text",value:Vt,onChange:this.handleCssInput,onKeyUp:this.handleCssEnter,onFocus:this.rgbaInputActive,onBlur:this.handleCssSubmit,className:"css-input"})}),ae==="HSB"&&(0,ke.jsxs)("div",{className:"rgba-input-wp "+(bn?"is-active":"")+" "+(Gn?"is-rect-resize":"")+" color-input-wp",children:[(0,ke.jsx)("input",{type:"text",value:Math.round(on),"data-face":"h",onChange:this.handleChange,onKeyUp:this.handleEnter,onFocus:this.rgbaInputActive,onBlur:this.handleBlur}),(0,ke.jsx)("input",{type:"text",value:Math.round(tn),"data-face":"s",onChange:this.handleChange,onKeyUp:this.handleEnter,onFocus:this.rgbaInputActive,onBlur:this.handleBlur}),(0,ke.jsx)("input",{type:"text",value:Math.round(ln),"data-face":"v",onChange:this.handleChange,onKeyUp:this.handleEnter,onFocus:this.rgbaInputActive,onBlur:this.handleBlur}),(0,ke.jsx)(ci,{className:"input-with-no-title rgba-a-input",min:0,max:100,suffix:"%",showCursorResize:!0,value:Mt*100,onChange:Pe,onConfirm:Pe,onFocus:this.rgbaInputActive,onRectResize:this.handleRectResize,onBlur:this.rgbaInputCancel})]})]})}}const Il=c.Ay.div.withConfig({displayName:"styles__StyledGradientPanel",componentId:"sc-12bpo4d-0"})(["width:100%;height:40px;display:flex;justify-content:space-between;align-items:center;padding:0 15px;.operate-bar{position:relative;display:inline-block;width:195px;height:12px;border:solid 0.5px #cccccc;border-radius:8px;.backSvg{position:absolute;left:0;top:0;width:100%;height:100%;z-index:0;border-radius:8px;}&:after{content:'';position:absolute;left:0;top:0;width:100%;height:100%;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:6px 6px;background-position:0 0,0 3px,3px -3px,-3px 0;z-index:-1}.rail{position:absolute;top:1px;bottom:1px;left:calc(5px / 2 + 1px);right:calc(5px / 2 + 1px);cursor:pointer;}}.gradient-btns{height:24px;margin-right:-6px;margin-left:15px;.icon{width:24px !important;height:24px !important;}svg{path{fill:","}}}.operate-point-list{position:absolute;left:0;top:0;padding:0;margin:0;list-style:none;cursor:pointer;}.operate-point{display:inline-flex;position:absolute;width:14px;height:14px;top:-3px;margin-left:-7px;border:solid 2px white;border-radius:50%;outline:none;box-shadow:0 0 2px 0 #999999;&.active{box-shadow:0 0 2px 0 #999999,0 0 2px 2px rgba(41,141,248,0.8);z-index:999 !important;}.operate-point-color{position:absolute;display:flex;top:2px;left:2px;width:calc(100% - 4px);height:calc(100% - 4px);pointer-events:none;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:6px 6px;background-position:0 0,0 3px,3px -3px,-3px 0;& > div{flex:1;}}}"],ne=>ne.theme.icon.reverse);class Tl extends r.PureComponent{constructor(){var ae;super(...arguments),ae=this,(0,n.A)(this,"operateBar",(0,r.createRef)()),(0,n.A)(this,"state",{prevIndex:null,prevPoint:null}),(0,n.A)(this,"onColorListChange",function(ye,Ee,Pe){Pe===void 0&&(Pe=!1);const{color:Ze,onChangeColor:Ct}=ae.props,wt={...Ze,colors:ye,stops:Ee};Ct(wt,Pe)}),(0,n.A)(this,"addPoint",ye=>{const{color:Ee,onActivePointChange:Pe,onMouseDownCallback:Ze,onMouseUpCallback:Ct}=this.props,{colors:wt,stops:Mt}=Ee;if(Mt.length>=128){alert(po("helper.color_breakpoint_tips"));return}const{left:Vt,width:on}=this.operateBar.current.getBoundingClientRect(),tn=ye.clientX,bn=[...Mt.map(Ro=>Vt+on*Ro),tn].sort((Ro,Bo)=>Ro-Bo),Gn=bn.map(Ro=>(Ro-Vt)/on),so=bn.findIndex(Ro=>Ro===tn);let eo=[...wt];if(so===0)eo=[eo[0],...wt];else if(so===eo.length)eo=[...wt,eo[eo.length-1]];else{eo.splice(so,0,null);const Ro=Math.min(Math.max(so,bn.length-1),0),Bo=Math.max(Math.min(so,0),bn.length-1),Fo=eo[Ro],Ho=eo[Bo],Lo=bn[Ro],Go=bn[Bo],ts=(ye.clientX-Lo)/(Go-Lo||1);eo[so]=[Fo[0]+(Ho[0]-Fo[0])*ts,Fo[1]+(Ho[1]-Fo[1])*ts,Fo[2]+(Ho[2]-Fo[2])*ts,Fo[3]+(Ho[3]-Fo[3])*ts]}this.onColorListChange(eo,Gn),Pe(so),Ze();const Co=Ro=>{const{activeIndex:Bo}=this.props,{prevPoint:Fo,prevIndex:Ho}=this.state,Lo=Ro.pageX,Go=this.operateBar.current,ts=Go.getBoundingClientRect().left,Qo=Go.clientWidth;let Xo;if(Lo-ts<0?Xo=0:Lo-ts>Qo?Xo=1:Xo=+((Lo-ts)/Qo).toFixed(2),Xo!==Fo||Bo!==Ho){const{color:rs}=this.props,{colors:_s,stops:cs}=rs,vs=[...cs];vs[Bo]=Xo,this.onColorListChange(_s,vs,!0)}this.setState({prevPoint:Xo,prevIndex:Bo})},ko=()=>{document.removeEventListener("mousemove",Co),document.removeEventListener("mouseup",ko),Ct()};document.addEventListener("mousemove",Co),document.addEventListener("mouseup",ko)}),(0,n.A)(this,"handleMouseDown",ye=>{Tn(ye);const{onActivePointChange:Ee,activeIndex:Pe,onMouseDownCallback:Ze,onMouseUpCallback:Ct}=this.props,{index:wt}=ye.target.dataset;if(Ee(+wt),ye.altKey){const{color:on}=this.props,{colors:tn,stops:ln}=on;if(ln.length>=128){alert(po("helper.color_breakpoint_tips"));return}const bn=[...tn],Gn=[...ln];bn.splice(Pe,0,tn[Pe]),Gn.splice(Pe,0,ln[Pe]),this.onColorListChange(bn,Gn),Ee(Pe+1)}Ze();const Mt=on=>{const{activeIndex:tn}=this.props,{prevPoint:ln,prevIndex:bn}=this.state,Gn=on.pageX,so=this.operateBar.current,eo=so.getBoundingClientRect().left,Co=so.clientWidth;let ko;if(Gn-eo<0?ko=0:Gn-eo>Co?ko=1:ko=+((Gn-eo)/Co).toFixed(2),ko!==ln||tn!==bn){const{color:Ro}=this.props,{colors:Bo,stops:Fo}=Ro,Ho=[...Fo];Ho[tn]=ko,this.onColorListChange(Bo,Ho,!0)}this.setState({prevPoint:ko,prevIndex:tn})},Vt=()=>{document.removeEventListener("mousemove",Mt),document.removeEventListener("mouseup",Vt),Ct()};document.addEventListener("mousemove",Mt),document.addEventListener("mouseup",Vt)}),(0,n.A)(this,"reverseGradient",()=>{const{color:ye}=this.props,{colors:Ee,stops:Pe}=ye,Ze=[...Ee].reverse();this.onColorListChange(Ze,Pe)}),(0,n.A)(this,"rotate90Gradient",()=>{const{color:ye,onChangeColor:Ee,widgetProps:Pe}=this.props,{w:Ze,h:Ct}=Pe;let wt=ye;if(ye.type===d.LA.LinearGradient){const Mt=d.dL.parse(ye),Vt={x:Ze*Mt.x,y:Ct*Mt.y},on=Mt.translate({x:-Mt.x,y:-Mt.y}),tn=d.ZY.add(Vt,on.apply({x:Ze,y:0})),ln=ye.type===d.LA.LinearGradient?d.ZY.average(Vt,tn):Vt,bn=d.ZY.rotate(ln,Math.PI/2,Vt),{a:Gn,b:so,c:eo,d:Co,x:ko,y:Ro}=on.clone().rotate(Math.PI/2).translate(d.ZY.divVec2(bn,d.ZY.xy(Ze,Ct)));wt={...ye,x:ko,y:Ro,complex:{a:Gn,b:so,c:eo,d:Co}}}else if(ye.type===d.LA.RadialGradient){const Mt=d.ZY.zero,Vt=d.ZY.horizontal,on=d.ZY.vertical;let tn=d.ZY.zero,ln=d.ZY.zero,bn=d.ZY.zero;const{x:Gn,y:so,complex:eo}=ye,Co=d.dL.parse({x:Gn,y:so,complex:eo}).scale(Ze,Ct);tn=Co.apply(Mt);const ko=Co.apply(Vt),Ro={x:ko.x,y:ko.y};ln=d.ZY.rotate(tn,Math.PI/2,ko),bn=Co.apply(on);const Bo=d.ZY.distance(ln,tn)/d.ZY.distance(Ro,tn),Fo=Ro.x-tn.x,Ho=Ro.y-tn.y,Lo=ln.x-tn.x,Go=ln.y-tn.y,ts=(Go*Ho+Fo*Lo)/(Bo*(Math.pow(Fo,2)+Math.pow(Ho,2))),Qo=(Go*Fo-Ho*Lo)/(Bo*(Math.pow(Fo,2)+Math.pow(Ho,2)));bn=new d.hP(Bo*ts,Bo*Qo,-Bo*Qo,Bo*ts,0,0).apply({x:bn.x-tn.x,y:bn.y-tn.y}),bn=d.ZY.add(bn,tn);const rs=d.dL.serialize(new d.hP(ln.x-tn.x,ln.y-tn.y,bn.x-tn.x,bn.y-tn.y,tn.x,tn.y).scale(1/Ze,1/Ct));wt={...ye,...rs}}Ee(wt)})}render(){const{color:ae,activeIndex:ye,widgetProps:Ee}=this.props,{colors:Pe,stops:Ze}=ae,Ct=(0,Qn.Ez)(Pe,Ze),wt=(0,Qn.zS)(ae),Mt=(0,Qn.Ez)(wt.colors,wt.stops);return(0,ke.jsxs)(Il,{children:[(0,ke.jsxs)("div",{className:"operate-bar",ref:this.operateBar,onMouseDown:this.addPoint,children:[(0,ke.jsxs)("svg",{height:"100%",className:"backSvg",children:[(0,ke.jsx)("defs",{children:(0,ke.jsx)("linearGradient",{id:"Gradient",x1:"0",x2:"1",y1:"1",y2:"1",children:Mt.map((Vt,on)=>(0,ke.jsx)("stop",{stopColor:Vt.hex,stopOpacity:Vt.alpha,offset:Vt.point},on))})}),(0,ke.jsx)("rect",{width:"100%",height:12,fill:"url(#Gradient)"})]}),(0,ke.jsx)("div",{className:"rail",children:Ct.map((Vt,on)=>(0,ke.jsx)(Xa,{point:Vt.point*100,zIndex:on+1,index:on,hex:Vt.hex,className:"operate-point "+(ye===on?"active":""),activeIndex:ye,handleMouseDown:this.handleMouseDown},on))})]}),(0,ke.jsx)("div",{className:"gradient-btns",children:(0,ke.jsx)(Ut,{content:po("components.reverse_gradient"),direction:"down",children:(0,ke.jsx)("div",{className:"icon",onClick:this.reverseGradient,children:vt})})})]})}}class Xa extends r.PureComponent{render(){const{point:ae,zIndex:ye,index:Ee,className:Pe,handleMouseDown:Ze,handleKeyDown:Ct,activeIndex:wt,hex:Mt}=this.props;return(0,ke.jsx)("div",{"data-index":Ee,tabIndex:wt===Ee?0:Ee+1,className:Pe,style:{left:"calc("+ae+"%)",backgroundColor:Mt,zIndex:ye},onKeyDown:Ct,onMouseDown:Ze,onClick:Tn})}}const Al=c.Ay.div.withConfig({displayName:"styles__StyledPicture",componentId:"sc-mhm08d-0"})(["width:100%;margin:16px 0;.toolbar{display:flex;align-items:center;justify-content:space-between;width:100%;.btns{.icon{width:16px !important;height:16px !important;}}}.image-wp{position:relative;height:168px;margin:9px 0 10px;border-radius:4px;background-clip:content-box;overflow:hidden;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0;border:solid 1px #ccc;img{width:100%;height:100%;object-fit:contain;}&:hover{.mask{display:flex;}}.mask{position:absolute;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,0.4);display:none;justify-content:center;align-items:center;span{color:#fff;font-size:12px;display:inline-block;text-align:center;border-radius:4px;border:solid 1px #fff;width:60px;height:30px;line-height:30px;&:lang(en){width:100px;}&:hover{border:solid 1px #ccc;}}}}"]),gc=[{value:d.wp.Fill,label:"pictureFill"},{value:d.wp.Fit,label:"pictureFit"}];class Pl extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"$upload",(0,r.createRef)()),(0,n.A)(this,"onChangePicture",ae=>{const{color:ye,onChange:Ee}=this.props;Ee({...ye,src:ae})}),(0,n.A)(this,"changeObjectFit",ae=>{const{color:ye,onChange:Ee}=this.props;Ee({...ye,scale:ae})}),(0,n.A)(this,"addPicture",()=>{var ae;(ae=this.$upload.current)==null||ae.click()}),(0,n.A)(this,"uploadPicture",async()=>{var ae;const{createAssetFromFiles:ye}=this.props,Ee=(((ae=this.$upload.current)==null?void 0:ae.files)||[])[0];if(!(!Ee||!window.FileReader)&&/^image/.test(Ee.type)){const Pe=await ye([Ee])||[];Pe[0]&&this.onChangePicture(Pe[0].image)}})}render(){const{color:{src:ae,scale:ye}}=this.props,Ee={transform:"scale("+d.wp[ye]+")"};return(0,ke.jsxs)(Al,{children:[(0,ke.jsx)("div",{className:"toolbar",children:(0,ke.jsx)(Jt,{optionList:gc.map(Pe=>({...Pe,label:po("components."+Pe.label)})),value:ye,width:90,onChange:this.changeObjectFit})}),(0,ke.jsxs)("div",{className:"image-wp",children:[(0,ke.jsx)("img",{src:ae,alt:po("shortcuts.image"),style:Ee}),(0,ke.jsxs)("div",{className:"mask",onClick:this.addPicture,children:[(0,ke.jsx)("span",{children:po("components.chooseImage")}),(0,ke.jsx)("input",{type:"file",accept:".png,.jpeg",hidden:!0,onChange:this.uploadPicture,ref:this.$upload})]})]})]})}}const Ml=[{label:"normal",value:d.Nx.Normal},{},{label:"darken",value:d.Nx.Darken},{label:"multiply",value:d.Nx.Multiply},{label:"colorBurn",value:d.Nx.ColorBurn},{},{label:"lighten",value:d.Nx.Lighten},{label:"screen",value:d.Nx.Screen},{label:"colorDodge",value:d.Nx.ColorDodge},{},{label:"overlay",value:d.Nx.Overlay},{label:"softLight",value:d.Nx.SoftLight},{label:"hardLight",value:d.Nx.HardLight},{},{label:"difference",value:d.Nx.Difference},{label:"exclusion",value:d.Nx.Exclusion},{},{label:"hue",value:d.Nx.Hue},{label:"saturation",value:d.Nx.Saturation},{label:"color",value:d.Nx.Color},{label:"luminosity",value:d.Nx.Luminosity}],El=ne=>ne.map(ae=>ae.label?{...ae,label:po("settingPanel.blendModeList."+ae.label)}:{}),Ll=c.Ay.div.withConfig({displayName:"styles__StyledPanelSelector",componentId:"sc-12z6co1-0"})(["width:54px;height:26px;border-radius:4px;display:flex;background:",";overflow:hidden;div{width:27px;height:22px;display:flex;justify-content:center;align-items:center;cursor:pointer;overflow:hidden;margin:2px;border-radius:4px;}.selected{background:",";filter:drop-shadow(0px 0px 4px rgba(0,0,0,0.2));}.draw-tab{color:",";&.selected{color:",";}svg{path{fill:currentColor;}}}.color-tab{svg{rect{&:nth-child(1),&:nth-child(5),&:nth-child(9){fill:",";}&:nth-child(2),&:nth-child(6),&:nth-child(7){fill:",";}&:nth-child(3),&:nth-child(4),&:nth-child(8){fill:",";}}}}"],ne=>ne.theme.panel_picker.bg,ne=>ne.theme.bgColor,ne=>ne.theme.color_text_L3,ne=>ne.theme.color_text_L1,ne=>ne.theme.color_text_disabled01,ne=>ne.theme.color_text_L2,ne=>ne.theme.color_text_L3),mc=ne=>{let{onChangeTab:ae,currentTab:ye}=ne;const Ee=Pe=>{ae(Pe)};return(0,ke.jsxs)(Ll,{children:[(0,ke.jsx)("div",{style:{marginRight:0},className:f()("draw-tab",{selected:ye===0}),onClick:()=>Ee(0),children:rn}),(0,ke.jsx)("div",{className:f()("color-tab",{selected:ye===1}),onClick:()=>Ee(1),children:Nn})]})},fc=c.Ay.div.withConfig({displayName:"styles__StyledColorPanel",componentId:"sc-b21sek-0"})(["font-size:0;line-height:0;.colors-container{font-size:0;line-height:0;margin:16px 0 8px;display:grid;grid-row-gap:6px;grid-column-gap:6px;grid-template-columns:repeat(auto-fill,18px);}.row{display:flex;align-items:center;height:52px;.h-a-bands{display:flex;flex-direction:row;align-items:center;flex:1;}.outside-color-picker-btn{width:24px;height:24px;margin-left:-5px;margin-right:8px;cursor:pointer;border-radius:4px;display:flex;justify-content:center;align-items:center;background:transparent;color:",";&:hover{background:",";}&.is-close{svg{path{fill:",";}}}}.a-band{position:relative;height:10px;border:0.5px solid rgba(0,0,0,0.12);border-radius:8px;cursor:pointer;background-clip:padding-box;.rail{position:absolute;top:1px;bottom:1px;left:calc(5px / 2 + 1px);right:calc(5px / 2 + 1px);}.slider{position:absolute;top:-3.5px;width:14px;height:14px;margin-left:calc(-14px / 2);background:transparent;border:solid 2px #ffffff;box-shadow:0 1px 4px 0 rgba(0,0,0,0.2);border-radius:50%;z-index:2;pointer-events:none;}}.a-band{width:180px;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:6px 6px;background-position:0 0,0 3px,3px -3px,-3px 0;}}"],ne=>ne.theme.color_text_L1,ne=>ne.theme.icon_bg_hover,ne=>ne.theme.color_text_L1),$a=c.Ay.div.withConfig({displayName:"styles__StyledColorItem",componentId:"sc-b21sek-1"})(["width:18px;height:18px;border-radius:2px;display:inline-block;background-color:",';border:1px solid rgba(0,0,0,0.08);cursor:pointer;position:relative;&.is-active{&:after{content:"";position:absolute;left:-2px;top:-2px;width:20px;height:20px;border:1px solid #298df8;border-radius:2px;box-sizing:border-box;}}'],ne=>ne.color),Nl=["#000000","#333333","#4F4F4F","#6c6c6c","#9a9a9a","#bebebe","#cecece","#efefef","#ffffff","#de868f","#fcca00","#f4ce98","#fefa83","#ccf783","#B4FDFF","#93D2F3","#7F83F7","#B886F8","#BD3124","#E99D42","#FFBF6B","#FFF81D","#A2EF4D","#75F9FD","#4095E5","#0F40F5","#7728F5","#951D1D","#A16222","#CBA43F","#BFBF3D","#81B337","#54BCBD","#347CAF","#0014B7","#591BB7","#641013","#744E20","#9B7D31","#817F26","#567722","#377F7F","#215476","#000A7B","#3B0E7B"],Dl=ne=>{let{onChangeSelect:ae,colorPickerEnabled:ye,color:Ee,isEyedropperOpen:Pe,onChange:Ze,toggleColorPicker:Ct,isFocus:wt}=ne;const[Mt,Vt]=(0,r.useState)(-1),[on,tn,ln]=Ee,{s:bn,v:Gn,h:so}=d.Q1.rgb2hsv({r:on,g:tn,b:ln}),eo=(0,r.useRef)(null),Co=Lo=>{const[Go,ts,Qo]=Ee;return{left:Lo*100+"%",backgroundColor:"rgba("+Go+", "+ts+", "+Qo+", "+Lo+")"}},[,,,ko]=Ee,Ro=Co(ko),Bo=(Lo,Go)=>{Vt(Lo),ae(Go+"&"+ko,"\u8272\u677F",2)},Fo=Lo=>{const Go=eo.current.getBoundingClientRect(),ts=Math.min(1,Math.max(0,Lo-Go.left)/Go.width);return{a:Math.round(ts*100)/100}},Ho=Lo=>{Tn(Lo),Lo.preventDefault();const{a:Go}=Fo(Lo.clientX);Ee[3]=Go;const ts=Xo=>{if(Xo.stopPropagation(),Xo.stopImmediatePropagation(),Xo.preventDefault(),!eo.current)return;const{a:rs}=Fo(Xo.clientX);Ee[3]=rs,Ze({color:Ee},!0)},Qo=Xo=>{if(!eo.current)return;const{a:rs}=Fo(Xo.clientX);Ee[3]=rs,Ze({color:Ee},!1),document.removeEventListener("mousemove",ts),document.removeEventListener("mouseup",Qo)};document.addEventListener("mousemove",ts),document.addEventListener("mouseup",Qo)};return(0,ke.jsxs)(fc,{children:[(0,ke.jsx)("div",{className:"divider"}),(0,ke.jsx)("div",{className:"colors-container padding-15",children:Nl.map((Lo,Go)=>(0,ke.jsx)($a,{className:Mt===Go&&wt?"is-active":"",color:Lo,onClick:()=>Bo(Go,Lo)},Lo))}),(0,ke.jsx)("div",{className:"divider"}),(0,ke.jsx)("div",{className:"row padding-15",children:(0,ke.jsxs)("div",{className:"h-a-bands",children:[(0,ke.jsx)(Ut,{content:"\u53D6\u8272\u5668",hotKey:"I",direction:"down",hangingTime:"1000",children:(0,ke.jsx)("div",{className:f()("outside-color-picker-btn",{"color-picker-enabled":ye},{"is-close":!Pe}),onClick:Ct,children:Pe?(0,ke.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",children:[(0,ke.jsx)("rect",{width:"24",height:"24",rx:"4",fill:"#0077FF","fill-opacity":"0.15"}),(0,ke.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.9142 5.24234C19.6598 5.98788 19.6112 7.25801 18.8289 8.1483L18.7122 8.2728L16.2878 10.6972C16.2196 10.7654 16.1486 10.829 16.0753 10.8878L17.8543 12.6668C18.4401 13.2526 18.4401 14.2023 17.8543 14.7881C17.2685 15.3739 16.3188 15.3739 15.733 14.7881L14.4957 13.5509C14.4956 13.551 14.4955 13.5511 14.4953 13.5513L8.55563 19.491C7.94111 20.1055 7.17438 20.4902 6.40809 20.5901C5.64078 20.6902 4.83142 20.5044 4.24228 19.9152C3.10291 18.7759 3.46287 16.9403 4.50402 15.7739L4.51111 15.7659L4.65905 15.6094L10.6062 9.6622C10.6064 9.66206 10.6065 9.66192 10.6066 9.66179L9.36903 8.42417C8.78324 7.83838 8.78324 6.88863 9.36903 6.30285C9.95481 5.71706 10.9046 5.71706 11.4903 6.30285L13.2687 8.0812C13.2926 8.0515 13.3172 8.02217 13.3426 7.99324L13.4594 7.86874L15.8838 5.44437C16.7764 4.55174 18.1332 4.46129 18.9142 5.24234ZM11.6673 10.7224C11.6672 10.7226 11.667 10.7227 11.6669 10.7229L5.7347 16.6551L5.61639 16.7803C4.87011 17.6221 4.95226 18.5039 5.30294 18.8546C5.49484 19.0465 5.80414 19.1562 6.21408 19.1027C6.62503 19.0491 7.09413 18.8312 7.49497 18.4303L13.4347 12.4906C13.4348 12.4905 13.4349 12.4903 13.4351 12.4902L11.6673 10.7224Z",fill:"#0077FF"})]}):To})}),(0,ke.jsxs)("div",{className:"a-band",onMouseDown:Ho,children:[(0,ke.jsx)("div",{style:{width:"100%",height:"100%",borderRadius:8,background:"linear-gradient(to right, transparent 0%, "+d.Q1.rgb2rgbaStr({...d.Q1.hsv2rgb({h:so,s:bn,v:Gn}),a:1})+" 100%)"}}),(0,ke.jsx)("div",{className:"rail",ref:eo,children:(0,ke.jsx)("span",{className:"slider",style:Ro})})]})]})})]})};class kl extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"state",{index:-1,isShowColorList:!0,showDeleteMenu:!1}),(0,n.A)(this,"handleChangeSelect",ae=>{this.props.onChangeSelect(ae),this.setState({index:-1})}),(0,n.A)(this,"getOpacityPerc",ae=>{if(typeof ae!="string")return!1;const ye=ae.split(","),Ee=ye.length;return Ee>3&&+ye[Ee-1].replace(")","")!=1}),(0,n.A)(this,"handleSelect",(ae,ye,Ee)=>{const{currentSelect:Pe}=this.props;this.setState({index:Ee}),ae.button===2&&Pe==="favorite"?this.setState({showDeleteMenu:{left:ae.clientX,top:ae.clientY-18}}):(this.props.handleSelect(ye,"\u6700\u8FD1\u4F7F\u7528",0),this.setState({showDeleteMenu:!1}))}),(0,n.A)(this,"toggleShowColorList",()=>{const{isShowColorList:ae}=this.state;this.setState({isShowColorList:!ae}),this.props.onToggleExpand()}),(0,n.A)(this,"getSolidColor",(ae,ye)=>{const{index:Ee}=this.state,[Pe,Ze=1]=ae.split("&"),Ct=f()("current-palette-color-li gradient-bg",{transparent:ae==="transparent"},{"is-active":Ee===ye&&this.props.isFocus});return(0,ke.jsx)("li",{className:Ct,onMouseDown:wt=>this.handleSelect(wt,ae,ye),children:(0,ke.jsx)("div",{className:"color-box",style:{backgroundColor:Pe,opacity:Number(Ze)}})})}),(0,n.A)(this,"getGradientColor",(ae,ye)=>{const{index:Ee}=this.state,Pe=f()("current-palette-color-li gradient-bg",{"is-active":Ee===ye&&this.props.isFocus});return(0,ke.jsx)("li",{className:Pe,onMouseDown:Ze=>this.handleSelect(Ze,ae,ye),children:(0,ke.jsx)(Oe,{color:ae,attr:"dropDown",index:ye,alpha:ae.o*100})})}),(0,n.A)(this,"handleDelete",()=>{const{onDeleteFavorite:ae}=this.props,{index:ye}=this.state;ae(ye),this.setState({showDeleteMenu:!1})}),(0,n.A)(this,"handleClose",()=>{this.setState({showDeleteMenu:!1})})}render(){const{colorPanelList:ae,currentSelect:ye}=this.props,{isShowColorList:Ee}=this.state,{colors:Pe}=ae.find(Ze=>Ze.key==="history")||{};return(0,ke.jsxs)("div",{className:"panel-color-list",style:{paddingBottom:0},children:[(0,ke.jsx)("header",{className:f()({"is-alone":!Ee}),children:(0,ke.jsx)("span",{children:po("popup.colorPanel.history")})}),Ee&&(0,ke.jsx)("ul",{className:f()("current-palette",{"color-palette-list":Pe&&Pe.length>0}),children:Pe&&Pe.length>0?Pe.map((Ze,Ct)=>(0,ke.jsx)("div",{className:"current-palette-color "+(this.getOpacityPerc(Ze)?"current-palette-color-imagback":""),children:typeof Ze=="string"?this.getSolidColor(Ze,Ct):this.getGradientColor(Ze,Ct)},Ct)):(0,ke.jsxs)("div",{className:"block",children:[(0,ke.jsx)("div",{className:"placeholder-icon"}),ye==="favorite"&&(0,ke.jsx)("span",{children:po("components.addToCollection")})]})})]})}}var Pi=e(46219);const Ol=c.Ay.div.withConfig({displayName:"styles__StyledColorPicker",componentId:"sc-tanz9d-0"})(["box-sizing:content-box;position:absolute;width:240px;color:",";background:",";border-radius:8px;box-shadow:0 3px 10px 0 rgba(0,0,0,0.1);font-size:12px;text-align:left;border:1px solid ",";.padding-15{padding:0 15px;}.header{display:flex;align-items:center;justify-content:space-between;width:100%;.header-left{.tab-name{color:",";font-size:12px;margin-right:16px;cursor:pointer;&.active{font-weight:600;color:",";}}}.header-right{&.color{margin-right:8px;}}}input{background:none;border:0;}button{background:none;border:0;outline:0;border-radius:0;color:inherit;cursor:pointer;}*{box-sizing:border-box;}input{outline:none;}.icon{display:inline-flex;justify-content:center;align-items:center;width:24px;height:24px;border-radius:4px;cursor:pointer;&:hover{background-color:",";}&:active{background-color:",";}&:nth-of-type(1){margin-right:4px;}&:only-of-type{margin-right:0;}&.close-icon{margin:0;}&.createColorRef,&.close-icon,&.add-to-favorite,&.down-arrow{color:",";svg{path{fill:currentColor;}}}}.header-text{display:flex;font-size:12px;line-height:1;font-weight:normal;cursor:pointer;.header-icon{display:flex;align-items:center;margin-right:12px;}}.input-section{display:flex;justify-content:space-between;padding-right:1px;margin-bottom:4px;.hex-input{input{padding-left:11px;}}}.divider{padding:0 8px;width:100%;border-bottom:solid 1px ",";}.color-picker-header{display:flex;justify-content:space-between;align-items:center;padding:12px 8px 12px 16px;height:40px;cursor:move;border-bottom:solid 1px ",";.header-btn{display:flex;.icon{cursor:pointer;}}}.color-picker-body{.tab-line{color:",";height:36px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;}}.gradientPanel{position:absolute;display:flex;flex-direction:column;top:0;right:100%;width:120px;height:100%;background-color:rgb(254,254,254);z-index:-1;transform:translateX(100%);transition:transform 0.3s 0.1s,box-shadow 0.2s;&.open{box-shadow:0 -2px 20px 0 rgba(39,54,78,0.11);transform:translateX(0);z-index:0;transition:transform 0.3s,box-shadow 0.2s 0.1s,z-index 0.6s;}.gradient-header{display:flex;justify-content:space-between;align-items:center;padding:0 10px;.CoreSelect{border:none !important;padding:10px 0 0 !important;height:auto;background-color:"," !important;&.is-open:not(.unstyled){background:none;box-shadow:none;}button{border:none;padding:0;height:auto;background-color:",";span{color:",";}&:focus{outline:0;}}.caret{margin:0 6px;color:",";}}.close-gradient{margin-top:10px;cursor:pointer;path{fill:",";}&:hover path{fill:",";}}}.gradient-body{flex:1;padding:20px 0;text-align:center;}}.panel-color-list{header{display:flex;justify-content:space-between;align-items:center;color:",";margin-top:4px;margin-bottom:4px;height:32px;label{margin-left:-10px;}div{margin-right:-7px;}&.is-alone{margin-bottom:8px;}.btns-wp{display:flex;}}.icon{width:24px !important;height:24px !important;margin-right:6px;&.is-rotate{transform:rotate(180deg);}}.CoreSelect{border:none !important;padding:10px 0 0 !important;height:auto;background-color:"," !important;&.is-open:not(.unstyled){background:none;box-shadow:none;}button{border:none;padding:0;height:auto;background-color:",";span{color:",";}&:focus{outline:0;}}.caret{margin:0 6px;color:",";}}.current-palette{display:flex;flex-wrap:wrap;margin:0;padding:0;margin-bottom:8px;max-height:72px;overflow:hidden auto;margin-left:-2px;padding-left:2px;padding-top:1px;&::-webkit-scrollbar{width:4px;}&::-webkit-scrollbar-track{background-color:transparent;}::-webkit-scrollbar-thumb{background-color:",";border-radius:4px;&:hover{background-color:",';}}&.color-palette-list{display:grid;grid-row-gap:6px;grid-column-gap:6px;grid-template-columns:repeat(auto-fill,18px);&.drop-down-color-list{margin-right:-13px;}}}.block{display:flex;align-items:center;font-size:12px;color:#999999;margin-top:9px;.placeholder-icon{width:18px;height:18px;margin-right:8px;border:dashed 1px #cccccc;}}.current-palette-color-imagback{background-image:linear-gradient(45deg,#ccc 26%,transparent 26%),linear-gradient(-45deg,#ccc 26%,transparent 26%),linear-gradient(45deg,transparent 73%,#ccc 73%),linear-gradient(-45deg,transparent 73%,#ccc 73%);background-size:6px 6px;border-radius:2px;background-position:0 0,0 3px,3px -3px,-3px 0;background-clip:padding-box;overflow:hidden;}.current-palette-color-li{position:relative;height:100%;.color-box{height:100%;width:100%;}&.is-active{&:after{content:"";position:absolute;left:-2px;top:-2px;width:20px;height:20px;border:1px solid #298df8;border-radius:2px;box-sizing:border-box;}}&.transparent{position:relative;overflow:hidden;background-image:linear-gradient(45deg,#ccc 26%,transparent 26%),linear-gradient(-45deg,#ccc 26%,transparent 26%),linear-gradient(45deg,transparent 73%,#ccc 73%),linear-gradient(-45deg,transparent 73%,#ccc 73%);background-size:6px 6px;background-position:0 0,0 3px,3px -3px,-3px 0;}&.gradient-bg{background-image:linear-gradient(45deg,rgb(204,204,204) 25%,transparent 0px),linear-gradient(-45deg,rgb(204,204,204) 25%,transparent 0px),linear-gradient(45deg,transparent 75%,rgb(204,204,204) 0px),linear-gradient(-45deg,transparent 75%,rgb(204,204,204) 0px);background-size:10px 10px;background-position:0px 0px,0px 5px,5px -5px,-5px 0px;background-clip:padding-box;svg{height:18px;width:18px;position:absolute;top:-1px;left:-1px;border-radius:2px;}}}.current-palette-color{list-style:none;width:18px;height:18px;cursor:pointer;position:relative;li{border-radius:2px;border:1px solid ',";}&:not(:nth-child(9n)){}}}&.color-current-tab{.panel-color-list .current-palette{max-height:120px;}}"],ne=>ne.theme.tc,ne=>ne.theme.color_bg_white,ne=>ne.theme.color_bg_border_01,ne=>ne.theme.color_text_L2,ne=>ne.theme.color_text_L1,ne=>ne.theme.color_btn_secondary_hover,ne=>ne.theme.color_btn_secondary_hover,ne=>ne.theme.color_text_L1,ne=>ne.theme.color_bg_border_01,ne=>ne.theme.color_bg_border_01,ne=>ne.theme.color_text_L1,ne=>ne.theme.bgColor,ne=>ne.theme.bgColor,ne=>ne.theme.tc,ne=>ne.theme.icon.select,ne=>ne.theme.darkTc,ne=>ne.theme.icon.close.hover,ne=>ne.theme.color_text_L1,ne=>ne.theme.bgColor,ne=>ne.theme.bgColor,ne=>ne.theme.tc,ne=>ne.theme.icon.select,ne=>ne.theme.color_bg_border_02,ne=>ne.theme.color_background_split_hover,ne=>ne.theme.colorBlock.border),Rl=(0,c.DU)([".context-menu-mask{z-index:200;}"]),ga=()=>null;class Qa extends r.PureComponent{constructor(ae){var ye,Ee;super(ae),(0,n.A)(this,"outsideListener",Pe=>(this.handleHexChange({color:Pe}),[])),(0,n.A)(this,"handleToggleExpand",()=>{this.setState({isClickExpand:!this.state.isClickExpand},()=>{this.props.applyDidMountSideEffect(this.$container.current)})}),(0,n.A)(this,"handleColorChangeFromExternal",(Pe,Ze,Ct)=>{const{color:wt,isSolidColorOnly:Mt,colorType:Vt,activeIndex:on,onChangeColor:tn,onChangeGradientMode:ln}=this.props;if(this.setState({focusingTab:Ct}),typeof Pe=="string"){const[bn,Gn=this.currentColor[3]]=Pe.split("&"),so=Number(Gn),{r:eo,g:Co,b:ko}=d.Q1.hex2rgb(bn),Ro=bn==="transparent"?0:so>1?so/100:so;let Bo;if((0,Qn.NT)(Vt)){const Fo=[...wt.colors];Fo[on]=d.Q1.rgb255a(eo,Co,ko,Ro),Bo={...wt,colors:Fo}}else Bo={type:d.LA.Solid,v:!0,blend:wt.blend,color:d.Q1.rgb255a(eo,Co,ko,Ro)};tn(Bo,!1,Ze)}else{let bn=Pe;Vt!==Pe.type&&(Mt?bn={type:d.LA.Solid,v:Pe.v,blend:Pe.blend,color:Pe.colors[0]}:ln(Pe.type)),tn(bn,!1,Ze)}}),(0,n.A)(this,"handleRgbChange",Pe=>{let{r:Ze,g:Ct,b:wt,a:Mt}=Pe;this.hsvChange({color:[Ze,Ct,wt,Mt!=null?Mt:this.currentColor[3]]})}),(0,n.A)(this,"handleHexChange",(Pe,Ze)=>{let{color:Ct}=Pe;const{color:wt,onChangeColor:Mt,colorType:Vt,activeIndex:on}=this.props;let tn;if(Vt===d.LA.Solid)tn={...wt,color:Ct};else{const ln=[...wt.colors];ln[on]=Ct,tn={...wt,colors:ln}}Mt(tn,Ze,this.state.currentTab===1?po("popup.colorPanel.colorChart"):po("popup.colorPanel.colorSpace"))}),(0,n.A)(this,"hsvChange",(Pe,Ze)=>{let{color:Ct}=Pe;const{color:wt,activeIndex:Mt,colorType:Vt,onChangeColor:on}=this.props,[tn,ln,bn,Gn]=Ct,so=Gn>1?Gn/100:Gn,eo=d.Q1.rgb255a(tn,ln,bn,so);if(Vt===d.LA.Solid){const Co={...wt,color:eo};on(Co,Ze,this.state.currentTab===1?po("popup.colorPanel.colorChart"):po("popup.colorPanel.colorSpace"))}else if((0,Qn.NT)(Vt)){const Co=[...wt.colors];Co[Mt]=eo;const ko={...wt,colors:Co};on(ko,Ze,this.state.currentTab===1?po("popup.colorPanel.colorChart"):po("popup.colorPanel.colorSpace"))}}),(0,n.A)(this,"isShowGradientBarChange",Pe=>{const{onChangeGradientMode:Ze}=this.props,{cachedMode:Ct}=this.state;this.setState({isShowGradientBar:Pe}),Ze(Pe?Ct||d.LA.LinearGradient:d.LA.Solid)}),(0,n.A)(this,"gradientModeChange",Pe=>{const{onChangeGradientMode:Ze,onChangeActiveIndex:Ct}=this.props,wt=Number(Pe.currentTarget.dataset.value);this.setState({cachedMode:wt}),Ct(0),Ze(wt)}),(0,n.A)(this,"handleAlphaChange",(Pe,Ze,Ct,wt)=>{const Mt=[...this.currentColor];Mt[3]=Pe*.01,this.hsvChange({color:Mt},wt)}),(0,n.A)(this,"handleBlendModeChange",Pe=>{this.props.onChangeColor({...this.props.color,blend:Number(Pe)},!1,"blendMode")}),(0,n.A)(this,"handleAddToFavorite",()=>{const{colorType:Pe,onAddToFavorite:Ze,color:Ct}=this.props;if(Pe===d.LA.Solid){const[wt,Mt,Vt,on]=this.currentColor;let tn=d.Q1.rgb2hex({r:wt,g:Mt,b:Vt});tn=tn.length>7?tn.slice(0,7):tn,Ze(tn+"&"+on)}else(Pe===d.LA.LinearGradient||Pe===d.LA.RadialGradient)&&Ze(Ct)}),(0,n.A)(this,"handleChangeTab",Pe=>{this.setState({currentTab:Pe}),this.props.onChangeTab&&this.props.onChangeTab(Pe)}),(0,n.A)(this,"handleChangeActiveTab",Pe=>{this.setState({activeTab:Pe})}),this.state={isClickExpand:!1,isShowGradientBar:ae.colorType===d.LA.LinearGradient||ae.colorType===d.LA.RadialGradient||ae.colorType===d.LA.AngularGradient,cachedMode:null,currentTab:(ye=ae.defaultTab)!=null?ye:1,focusingTab:(Ee=ae.defaultTab)!=null?Ee:1,activeTab:ae.activeTab||"color"},this.$container=(0,r.createRef)()}componentDidMount(){setTimeout(()=>{this.props.applyDidMountSideEffect(this.$container.current)},10),this.props.setInteraction({colorPickerListener:this.outsideListener})}componentDidUpdate(){const{color:ae,activeIndex:ye,colorType:Ee,onChangeActiveIndex:Pe}=this.props;if((0,Qn.NT)(Ee)){const Ze=ae.colors.length,Ct=ye===Ze?Ze-1:ye;ye===Ze&&Pe(Ct)}}componentWillUnmount(){if(this.props.colorType!==d.LA.Image){const ae=[...this.currentColor],[ye,Ee,Pe,Ze]=ae;this.props.applyWillUnmountSideEffect(d.Q1.rgb2hex({r:ye,g:Ee,b:Pe})+"&"+Ze)}this.props.setInteraction({colorPickerListener:null})}get currentColor(){const{color:ae,activeIndex:ye,colorType:Ee}=this.props;if(Ee===d.LA.Image)return ae;let Pe=Ee===d.LA.Solid?ae.color:ae.colors[ye]||ae.colors.at(-1);const[Ze,Ct,wt,Mt]=Pe;return Pe=[Math.round(Ze*255),Math.round(Ct*255),Math.round(wt*255),Mt],Pe}render(){const{themeColor:ae,color:ye,onClose:Ee,colorPanelList:Pe,colorType:Ze,onDragStart:Ct,onChangeSelect:wt,currentSelect:Mt,onChangeColor:Vt,onChangeActiveIndex:on,activeIndex:tn,colorInputOption:ln,onChangeInputType:bn,onDeleteFavorite:Gn,colorPickerEnabled:so,widgetProps:eo,isEyedropperOpen:Co,isDefaultColor:ko,onResetColor:Ro,isSolidColorOnly:Bo,isHideBlendMode:Fo,createAssetFromFiles:Ho,isShowLibPanel:Lo,canCreateColorRef:Go,dropdownColorFilter:ts,onMouseDownCallback:Qo,onMouseUpCallback:Xo,onMouseDownToggleCreateModal:rs}=this.props,{isShowGradientBar:_s,activeTab:cs,currentTab:vs}=this.state,ms=h()(this.currentColor),Cs=ts?Pe.filter(ts):Pe;return(0,ke.jsxs)(Ol,{className:f()("--mb--color-picker",{"color-current-tab":vs===1}),ref:this.$container,onMouseDown:Tn,onClick:Tn,children:[(0,ke.jsx)("header",{className:"color-picker-header",onMouseDown:Ct,children:(0,ke.jsxs)("div",{className:"header",children:[(0,ke.jsxs)("div",{className:"header-left",children:[(0,ke.jsx)("span",{className:cs==="color"?"active tab-name":"tab-name",onClick:()=>this.handleChangeActiveTab("color"),children:"\u989C\u8272"}),Lo&&(0,ke.jsx)("span",{className:cs==="lib"?"active tab-name":"tab-name",onClick:()=>this.handleChangeActiveTab("lib"),children:"\u8D44\u6E90\u5E93"})]}),(0,ke.jsx)("div",{className:f()("header-right",cs),children:(0,ke.jsxs)("div",{className:"header-btn",children:[cs==="lib"&&Go&&(0,ke.jsx)(Pi.A,{content:po("settingPanel.createColorRef"),position:"bottom",children:(0,ke.jsx)("div",{className:"icon createColorRef",onMouseDown:()=>rs(!0),children:fo})}),!Fo&&(0,ke.jsxs)("div",{className:"icon",children:[ye.blend===d.Nx.Normal?Yt:Ft,(0,ke.jsx)(Jt,{optionList:El(Ml),value:ye.blend,isShowButton:!1,width:160,onChange:this.handleBlendModeChange})]}),Ro&&!ko&&(0,ke.jsx)(Pi.A,{content:po("common.resetColor"),position:"bottom",children:(0,ke.jsx)("div",{className:"icon",onClick:Ro,children:Zt})}),Ee&&(0,ke.jsx)(Pi.A,{content:po("common.close"),position:"bottom",children:(0,ke.jsx)("div",{className:"icon close-icon",onClick:Ee,children:ro})})]})})]})}),(0,ke.jsxs)("div",{className:"color-picker-body",children:[cs==="color"&&(0,ke.jsxs)(ke.Fragment,{children:[Ze===d.LA.Image&&(0,ke.jsx)(Pl,{color:ye,createAssetFromFiles:Ho,onChange:Vt}),Ze!==d.LA.Image&&(0,ke.jsxs)(ke.Fragment,{children:[(0,ke.jsxs)("div",{className:"tab-line padding-15",children:[(0,ke.jsxs)("div",{className:"header-text",children:[(0,ke.jsx)("div",{className:"header-icon","data-value":d.LA.Solid,onClick:this.gradientModeChange,children:(0,ke.jsx)(Pi.A,{content:po("components.solidFill"),position:"bottom",children:mt(Ze===d.LA.Solid,ae)})}),!Bo&&(0,ke.jsxs)(ke.Fragment,{children:[(0,ke.jsx)("div",{className:"header-icon","data-value":d.LA.LinearGradient,onClick:this.gradientModeChange,children:(0,ke.jsx)(Pi.A,{content:po("settingPanel.linearGradient"),position:"bottom",children:ft(Ze===d.LA.LinearGradient,ae)})}),(0,ke.jsx)("div",{className:"header-icon","data-value":d.LA.RadialGradient,onClick:this.gradientModeChange,children:(0,ke.jsx)(Pi.A,{content:po("settingPanel.radialGradient"),position:"bottom",children:gt(Ze===d.LA.RadialGradient,ae)})}),Ho&&(0,ke.jsx)("div",{className:"header-icon","data-value":d.LA.Image,onClick:this.gradientModeChange,children:(0,ke.jsx)(Pi.A,{content:po("settingPanel.imageFill"),position:"bottom",children:_t(Ze===d.LA.Image)})})]})]}),(0,ke.jsx)(mc,{currentTab:vs,onChangeTab:this.handleChangeTab})]}),(0,ke.jsx)("div",{className:"divider"})]}),(0,Qn.NT)(Ze)&&(0,ke.jsx)(ke.Fragment,{children:(0,ke.jsx)(Tl,{color:ye,widgetProps:eo,activeIndex:tn,onActivePointChange:on,onChangeColor:Vt,onMouseDownCallback:Qo,onMouseUpCallback:Xo})}),(0,ke.jsxs)(ke.Fragment,{children:[Ze!==d.LA.Image&&(0,ke.jsxs)(ke.Fragment,{children:[vs===0&&(0,ke.jsx)(oo,{color:ms,onChange:this.hsvChange,isShowGradientBar:_s,colorPickerEnabled:so,isEyedropperOpen:Co,toggleColorPicker:this.props.toggleColorPicker,onChangeIsShowGradientBar:this.isShowGradientBarChange,onMouseDownCallback:Qo,onMouseUpCallback:Xo}),vs===1&&(0,ke.jsx)(Dl,{color:ms,onChange:this.hsvChange,colorPickerEnabled:so,isEyedropperOpen:Co,toggleColorPicker:this.props.toggleColorPicker,onChangeSelect:this.handleColorChangeFromExternal,isFocus:this.state.focusingTab===2}),(0,ke.jsx)("div",{className:"input-section padding-15",children:(0,ke.jsx)(Ya,{color:ms,colorInputOption:ln,onHexChange:this.handleHexChange,onRgbaChange:this.handleRgbChange,onChangeInputType:bn,onAlphaChange:this.handleAlphaChange})})]}),Ze!==d.LA.Image&&(0,ke.jsxs)("div",{className:"padding-15",children:[(0,ke.jsx)("div",{className:"divider"}),(0,ke.jsx)(kl,{colorPanelList:Pe,currentSelect:Mt,onChangeSelect:wt,onToggleExpand:this.handleToggleExpand,onAddToFavorite:this.handleAddToFavorite,onDeleteFavorite:Gn,handleSelect:this.handleColorChangeFromExternal,isFocus:this.state.focusingTab===0}),(0,ke.jsx)(Sn,{colorPanelList:Cs,currentSelect:Mt,onChangeSelect:wt,onToggleExpand:this.handleToggleExpand,onAddToFavorite:this.handleAddToFavorite,onDeleteFavorite:Gn,handleSelect:this.handleColorChangeFromExternal,isFocus:this.state.focusingTab===1,isShowColorList:this.props.isShowColorList,onChangeShowColorList:this.props.onChangeShowColorList})]})]})]}),cs==="lib"&&this.props.children]}),(0,ke.jsx)(Rl,{})]})}}(0,n.A)(Qa,"defaultProps",{applyDidMountSideEffect:ga,applyWillUnmountSideEffect:ga,isShowGradient:!0,isShowLibPanel:!0,canCreateColorRef:!0});const Oi=Qa,Bl=c.Ay.div.withConfig({displayName:"style__ControlBarDiv",componentId:"sc-dby9rv-0"})(["position:absolute;left:0px;top:0px;width:100%;height:100%;.backSvg{position:absolute;left:0;top:0;width:100%;height:100%;filter:drop-shadow(0 0 2px rgba(0,0,0,0.4));}.hover-add{&:hover{cursor:crosshair;}}"]),ks=4.5;class Mi extends r.PureComponent{componentDidMount(){this.props.setInteraction({disablePointerEvents:!0})}componentWillUnmount(){this.props.setInteraction({disablePointerEvents:!1})}render(){const{selectedItem:ae}=this.props,{x:ye,y:Ee}=ae;return(0,ke.jsx)("div",{style:{position:"absolute",top:ye,left:Ee},children:(0,ke.jsx)(jl,{...this.props})})}}(0,n.A)(Mi,"defaultProps",{screenOffset:d.ZY.zero,setInetraction:()=>null});class jl extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"$circle1",(0,r.createRef)()),(0,n.A)(this,"$circle2",(0,r.createRef)()),(0,n.A)(this,"removeEventListeners",null),(0,n.A)(this,"state",{hoverColor:null,hoverStop:null,alignmentLines:[]}),(0,n.A)(this,"handleOperatePoint",ae=>{const{color:ye,boundingBox:Ee,screenOffset:Pe,onChangePosition:Ze,contextTransform:Ct=new d.hP,onMouseDownCallback:wt,onMouseUpCallback:Mt}=this.props,{transform:Vt,rect:{w:on,h:tn}}=Ee,{complex:ln,x:bn,y:Gn,type:so}=ye,eo=Vt.clone().prepend(Ct),Co=eo.clone().append(d.dL.parse({x:bn,y:Gn,complex:ln}).scale(on,tn)),{tl:ko,tr:Ro,bl:Bo,br:Fo}=d.a$.fromRect(d.oi.axisAligned(d.oi.prepend(Ct,Ee))),Ho=[[ko,Ro],[Bo,Fo],[ko,Bo],[Ro,Fo],[d.ZY.average(ko,Ro),d.ZY.average(Bo,Fo)],[d.ZY.average(ko,Bo),d.ZY.average(Ro,Fo)]],Lo=d.ZY.xy(ae.clientX,ae.clientY),{number:Go}=ae.target.dataset;wt();const ts=Xo=>{let rs=d.ZY.subtract(d.ZY.xy(Xo.clientX,Xo.clientY),Lo);const _s={x:Xo.offsetX,y:Xo.offsetY},cs=[];if(Ho.forEach(bs=>{const Os=d.oi.projectOnePoint2Line(_s,bs);d.ZY.distance(Os,_s)<=8&&cs.push(bs)}),this.setState({alignmentLines:cs}),cs.length===1){const[bs,Os]=cs[0];bs.x===Os.x&&(rs=d.ZY.subtract(d.ZY.xy(bs.x+Pe.x,Xo.clientY),Lo)),bs.y===Os.y&&(rs=d.ZY.subtract(d.ZY.xy(Xo.clientX,bs.y+Pe.y),Lo))}else if(cs.length>1){const bs=d.ZY.getIntersect(cs[0],cs[1]);rs=d.ZY.subtract(d.ZY.add(bs,Pe),Lo)}const vs=d.ZY.zero,ms=d.ZY.horizontal,Cs=d.ZY.vertical;let ls=d.ZY.zero,Is=d.ZY.zero,Ms=d.ZY.zero;if(so===d.LA.RadialGradient)switch(parseInt(Go)){case 1:{const bs=Co.apply(vs),Os=Co.apply(ms),Gs=Co.apply(Cs);ls=d.ZY.add(bs,rs),Is=d.ZY.add(Os,rs),Ms=d.ZY.add(Gs,rs);break}case 2:{ls=Co.apply(vs);const bs=Co.apply(ms),Os={x:bs.x,y:bs.y};Is=d.ZY.add(bs,rs),Ms=Co.apply(Cs);const Gs=d.ZY.distance(Is,ls)/d.ZY.distance(Os,ls),Vs=Os.x-ls.x,yi=Os.y-ls.y,Ji=Is.x-ls.x,tr=Is.y-ls.y,nr=(tr*yi+Vs*Ji)/(Gs*(Math.pow(Vs,2)+Math.pow(yi,2))),or=(tr*Vs-yi*Ji)/(Gs*(Math.pow(Vs,2)+Math.pow(yi,2)));Ms=new d.hP(Gs*nr,Gs*or,-Gs*or,Gs*nr,0,0).apply({x:Ms.x-ls.x,y:Ms.y-ls.y}),Ms=d.ZY.add(Ms,ls);break}case 3:{const bs=Co.apply(vs),Os=Co.apply(ms),Gs=Co.apply(Cs);ls=bs,Is=Os;const Vs={x:Gs.x-bs.x,y:Gs.y-bs.y},yi=(Vs.x*rs.x+Vs.y*rs.y)/(Math.pow(Vs.x,2)+Math.pow(Vs.y,2)),Ji={x:Vs.x*yi,y:Vs.y*yi};Ms=d.ZY.add(Gs,Ji);break}}else if(so===d.LA.LinearGradient){if(parseInt(Go)===2){const bs=Co.apply(ms);ls=Co.apply(vs),Is=d.ZY.add(bs,rs)}else{const bs=Co.apply(vs);ls=d.ZY.add(bs,rs),Is=Co.apply(ms)}Ms={x:Is.y-ls.y+ls.x,y:ls.x-Is.x+ls.y}}const xi=eo.clone().inverted().append(new d.hP(Is.x-ls.x,Is.y-ls.y,Ms.x-ls.x,Ms.y-ls.y,ls.x,ls.y)).scale(1/on,1/tn);Ze(xi,!0)},Qo=()=>{var Xo;this.setState({alignmentLines:[]}),(Xo=this.removeEventListeners)==null||Xo.call(this),Mt()};this.removeEventListeners=()=>{document.removeEventListener("mousemove",ts),document.removeEventListener("mouseup",Qo)},document.addEventListener("mousemove",ts),document.addEventListener("mouseup",Qo)}),(0,n.A)(this,"addPoint",ae=>{const{color:ye,onChangeGradient:Ee,onChangeActiveIndex:Pe,onMouseDownCallback:Ze,onMouseUpCallback:Ct}=this.props,{colors:wt,stops:Mt}=ye;if(Mt.length>=128)return;const{hoverColor:Vt,hoverStop:on}=this.state;if(!Vt||!on)return;const tn=(0,Qn.fC)(ae.pageX,ae.pageY,this.$circle1,this.$circle2)/100,{nextColors:ln,nextStops:bn,index:Gn}=(0,Qn.rk)(Mt,wt,tn),so={...ye,colors:ln,stops:bn};Ee(so),Pe(Gn);let eo,Co=!1;Ze();const ko=Bo=>{const{color:Fo,activeIndex:Ho}=this.props,{stops:Lo}=Fo;Co=!0;const Go=Bo.pageX,ts=Bo.pageY,Qo=(0,Qn.fC)(Go,ts,this.$circle1,this.$circle2),Xo=[...Lo];Xo[Ho]=Qo/100,eo={...Fo,stops:Xo},Ee(eo,!0)},Ro=()=>{var Bo;Co&&Ee(eo,!1),(Bo=this.removeEventListeners)==null||Bo.call(this),Ct()};this.removeEventListeners=()=>{document.removeEventListener("mousemove",ko),document.removeEventListener("mouseup",Ro)},document.addEventListener("mousemove",ko),document.addEventListener("mouseup",Ro)}),(0,n.A)(this,"addPointHover",ae=>{const{color:ye}=this.props,{colors:Ee,stops:Pe}=ye,Ze=(0,Qn.fC)(ae.pageX,ae.pageY,this.$circle1,this.$circle2)/100,{nextColors:Ct,nextStops:wt,index:Mt}=(0,Qn.rk)(Pe,Ee,Ze);this.setState({hoverColor:Ct[Mt],hoverStop:wt[Mt]})}),(0,n.A)(this,"addPointLeave",()=>{this.setState({hoverColor:null,hoverStop:null})}),(0,n.A)(this,"handleMouseDown",ae=>{Tn(ae);const{color:ye,onChangeGradient:Ee,onChangeActiveIndex:Pe,onMouseDownCallback:Ze,onMouseUpCallback:Ct}=this.props,{stops:wt}=ye,{number:Mt}=ae.target.dataset;Pe(+Mt);let Vt,on=!1;Ze();const tn=bn=>{on=!0;const Gn=bn.pageX,so=bn.pageY,eo=(0,Qn.fC)(Gn,so,this.$circle1,this.$circle2),Co=[...wt];Co[Mt]=eo/100,Vt={...ye,stops:Co},Ee(Vt,!0)},ln=()=>{var bn;on&&Ee(Vt,!1),(bn=this.removeEventListeners)==null||bn.call(this),Ct()};this.removeEventListeners=()=>{document.removeEventListener("mousemove",tn),document.removeEventListener("mouseup",ln)},document.addEventListener("mousemove",tn),document.addEventListener("mouseup",ln)})}componentWillUnmount(){var ae;(ae=this.removeEventListeners)==null||ae.call(this)}render(){const{activeIndex:ae,color:ye,viewport:{scale:Ee},boundingBox:Pe,onClose:Ze,containerEle:Ct,contextTransform:wt=new d.hP}=this.props,{hoverColor:Mt,hoverStop:Vt,alignmentLines:on}=this.state,{colors:tn,stops:ln,complex:bn,x:Gn,y:so,type:eo}=ye,{w:Co,h:ko,x:Ro,y:Bo}=Pe.rect,Fo=Pe.transform.clone().prepend(wt).translate(d.ZY.xy(Ro*Ee,Bo*Ee)),Ho=d.dL.parse({x:Gn,y:so,complex:bn}).scale(Co,ko),{x:Lo,y:Go}=Fo.apply(Ho.apply(d.ZY.zero)),{x:ts,y:Qo}=Fo.apply(Ho.apply(d.ZY.horizontal)),{x:Xo,y:rs}=Fo.apply(Ho.apply(d.ZY.vertical)),_s=ln.map((vs,ms)=>{const{x:Cs,y:ls}=Fo.apply(Ho.apply({x:vs,y:0}));return{x:Cs,y:ls,index:ms,color:tn[ms]}}),cs=Wl(Lo,Go,ts,Qo);return(0,o.createPortal)((0,ke.jsx)(Bl,{onDoubleClick:Ze,children:(0,ke.jsx)("div",{className:"gradient-control-bar",children:(0,ke.jsxs)("svg",{className:"backSvg",children:[(0,ke.jsxs)("g",{className:"hover-add",onPointerDown:this.addPoint,onPointerMove:this.addPointHover,onPointerLeave:this.addPointLeave,children:[(0,ke.jsx)("line",{x1:Lo,x2:ts,y1:Go,y2:Qo,stroke:"#fff",strokeWidth:1}),(0,ke.jsx)("line",{x1:Lo,x2:ts,y1:Go,y2:Qo,stroke:"transparent",strokeWidth:8}),(0,ke.jsx)(qa,{color:Mt,stop:Vt,angle:cs,boundingBoxTransform:Fo,colorTransform:Ho})]}),(0,ke.jsx)("circle",{id:"circle1",ref:this.$circle1,style:{cursor:"move"},cx:Lo,cy:Go,r:ks,fill:"#fff","data-number":1,onPointerDown:this.handleOperatePoint}),(0,ke.jsx)("circle",{id:"circle2",ref:this.$circle2,style:{cursor:"move"},cx:ts,cy:Qo,r:ks,fill:"#fff","data-number":2,onPointerDown:this.handleOperatePoint}),_s.map(vs=>{const{x:ms,y:Cs,index:ls,color:Is}=vs;return(0,ke.jsx)(Ja,{x:ms,y:Cs,color:Is,angle:cs,index:ls,active:ae===ls,onActivePoint:this.handleMouseDown},ls)}),eo!==d.LA.LinearGradient&&(0,ke.jsx)("circle",{id:"circle3",style:{cursor:"move"},cx:Xo,cy:rs,r:ks,"data-number":3,fill:"#fff",onPointerDown:this.handleOperatePoint}),on.map((vs,ms)=>{const[Cs,ls]=vs;return(0,ke.jsx)("line",{x1:Cs.x,x2:ls.x,y1:Cs.y,y2:ls.y,stroke:"#ff0000",strokeWidth:1},ms)})]})})}),Ct)}}const Wl=(ne,ae,ye,Ee)=>180-Math.atan2(ne-ye,ae-Ee)*180/Math.PI,ma=(0,ke.jsxs)("g",{fill:"#d7d7d7",transform:"translate(10, 2)",children:[(0,ke.jsx)("rect",{x:"0",y:"4",width:"4",height:"4"}),(0,ke.jsx)("rect",{x:"8",y:"4",width:"4",height:"4"}),(0,ke.jsx)("rect",{x:"4",y:"8",width:"4",height:"4"}),(0,ke.jsx)("rect",{x:"0",y:"12",width:"4",height:"4"}),(0,ke.jsx)("rect",{x:"8",y:"12",width:"4",height:"4"})]}),Ja=(0,r.memo)(ne=>{let{x:ae,y:ye,color:Ee,index:Pe,angle:Ze,active:Ct,onActivePoint:wt}=ne;const[Mt,Vt,on,tn]=Ee,ln="rgba("+Mt*255+", "+Vt*255+", "+on*255+", "+tn+")";return(0,ke.jsxs)("g",{className:"color-stop",transform:"translate("+(ae+ks)+", "+(ye-ks*2)+") rotate("+Ze+" -6 "+ks*2+")",children:[(0,ke.jsx)("path",{fill:Ct?"#298df8":"#fff",d:"M16.083 0c6.628 0 12 5.373 12 12s-5.372 12-12 12c-5.63 0-10.355-3.878-11.649-9.108a20.86 20.86 0 00-1.733-.975c-.49-.246-1.07-.51-1.74-.792l-.342-.142a1 1 0 01.006-1.852c.684-.276 1.376-.59 2.076-.94.641-.32 1.207-.63 1.699-.931C5.637 3.953 10.399 0 16.083 0z",fillRule:"evenodd"}),(0,ke.jsx)("circle",{cx:16,cy:12,r:9,fill:"#fff",strokeWidth:1,stroke:"#fff"}),ma,(0,ke.jsx)("circle",{cx:16,cy:12,r:8,fill:ln,strokeWidth:2,stroke:"rgba(0, 0, 0, 0.16)","data-number":Pe,onPointerDown:wt})]})});Ja.displayName="ControlBarOptimize";const qa=(0,r.memo)(ne=>{let{color:ae,stop:ye,angle:Ee,boundingBoxTransform:Pe,colorTransform:Ze}=ne;if(!ae||!ye)return null;const[Ct,wt,Mt,Vt]=ae,on="rgba("+Ct*255+", "+wt*255+", "+Mt*255+", "+Vt+")",{x:tn,y:ln}=Pe.apply(Ze.apply({x:ye,y:0}));return(0,ke.jsxs)("g",{className:"color-stop",transform:"translate("+(tn+ks)+", "+(ln-ks*2)+") rotate("+Ee+" -6 "+ks*2+")",children:[(0,ke.jsx)("circle",{cx:16,cy:12,r:12,fill:"#fff"}),ma,(0,ke.jsx)("circle",{cx:16,cy:12,r:8,fill:on,strokeWidth:2,stroke:"rgba(0, 0, 0, 0.16)"})]})});qa.displayName="ControlBarHover";const di=c.Ay.div.withConfig({displayName:"styles__StyledColorPanel",componentId:"sc-1bezuz8-0"})(['position:fixed;z-index:200;[type="color-picker"]{transform:translate(-50%);}']);var zs=e(86964);const Fl=Object.entries(zs.fm).reduce((ne,ae)=>{const ye=ae[0];return{...ne,[ye]:[zs.fm[ye].value_light,zs.fm[ye].value_dark||zs.fm[ye].value_light,zs.fm[ye].value_skyblue||zs.fm[ye].value_light]}},{}),Vl=Object.entries(zs.$B).reduce((ne,ae)=>{const ye=ae[0];return{...ne,[ye]:[zs.$B[ye].value_light,zs.$B[ye].value_dark||zs.$B[ye].value_light,zs.$B[ye].value_skyblue||zs.$B[ye].value_light]}},{}),Xi={...Fl,...Vl,bgColor:["#fff","#252626","#fff"],tc:["#415058","#d7dde0","#415058"],lightTc:["#415058","#f2f4f5","#415058"],darkTc:["#8d9ea7","#b8bcbf","#8d9ea7"],borderColor:["#dedee4","#151515","#dedee4"],colorBlock:{border:["rgba(0, 0, 0, 0.08)","rgba(255, 255, 255, 0.15)","rgba(0, 0, 0, 0.08)"]},header_border:["rgba(51, 51, 51, 0.05)","#4F5052","rgba(51, 51, 51, 0.05)"],icon:{close:{color:["#666666","#d8d8d8","#666666"],hover:["#415058","#dbdbdb","#415058"]},piker:{bg:["#fff","#454647","#fff"],border:["#8d9ea7","#595a5c","#8d9ea7"]},drop:{tc:["#8d9ea7","#999999","#8d9ea7"],hover:["#5b6b73","#d7dde0","#5b6b73"]},select:["#8d9ea7","#d7dde0","#8d9ea7"],reverse:["#999999","#979797","#999999"]},input:{bg:["#f6f7f8","#252626","#f6f7f8"],border:["#f2f2f3","#454647","#f2f2f3"],hover:{border:["#dbdbdb","#4f5052","#dbdbdb"]}},icon_bg_hover:["#f2f2f2","#363738","#f2f2f2"],icon_bg_active:["#e5e5e5","#454647","#e5e5e5"],common:{bg:{bg_4:["#fff","#454647","#fff"],menu_bg:["#333","#363738","#333"]},radio:{bg:["#f6f7f8","#454647","#f6f7f8"]},divider:{divider_2:["rgba(243, 244, 245, 0.1)","#252626","rgba(243, 244, 245, 0.1)"]},menu:{panel:{bg:["#fff","#363738","#fff"]},tc:["#415058","#d7dde0","#415058"],disabled_tc:["#c8cdd0","#999999","#c8cdd0"]},text_2:{cr:["#415058","#d7dde0","#415058"],active:["#298df8","#f2f4f5","#298df8"]},text_3:{cr:["#415058","#d7dde0","#415058"]},text_5:{cr:["#5b6b73","#d7dde0","#5b6b73"]},text_11:{cr:["#8d9ea7","#999999","#8d9ea7"]},text_12:{cr:["#415058","#f2f4f5","#415058"]},text_disabled:{cr:["rgb(242 244 245 / 0.4)","#808080","rgb(242 244 245 / 0.4)"]},text_13:{cr:["#1f292e","#f2f4f5","#1f292e"]},text_17:{cr:["#5b6b73","#f2f4f5","#5b6b73"],hover_active:["#298df8","#f2f4f5","#298df8"]},text_20:{cr:["#8d9ea7","#999999","#8d9ea7"],hover:["#5b6b73","#f2f4f5","#5b6b73"]},text_22:{cr:["#8d9ea7","#999999","#8d9ea7"]},text_23:{cr:["#5b6b73","#b8bcbf","#5b6b73"]},shadow:{shadow_1:["0 2px 4px 0 rgba(39, 54, 78, 0.08), 0 6px 16px 0 rgba(39, 54, 78, 0.1)","0 2px 6px 0 rgba(0,0,0,0.30), 0 10px 30px 0 rgba(0,0,0,0.15), inset 0 1px 0 0 #252626","0 2px 4px 0 rgba(39, 54, 78, 0.08), 0 6px 16px 0 rgba(39, 54, 78, 0.1)"],shadow_3:["0 2px 8px 0 rgba(0, 0, 0, 0.1)","0 2px 7px 0 rgba(0, 0, 0, 0.26), 0 12px 36px 0 rgba(0, 0, 0, 0.1)","0 2px 8px 0 rgba(0, 0, 0, 0.1)"]}},inputNumber:{caret_bg_hover:["#ededed","#363738","#ededed"]},select:{divider:["#7d8694","#363738","#7d8694"]},toolbar:{shadow:["0 0 5px 0 rgba(0, 0, 0, 0.10)",null,"0 0 5px 0 rgba(0, 0, 0, 0.10)"],bg:["#fff","#353738","#fff"],border_bottom:["0px solid transparent","1px solid #151515","0px solid transparent"]},leftpane:{shadow:["0 0 5px 0 rgba(0, 0, 0, 0.10)",null,"0 0 5px 0 rgba(0, 0, 0, 0.10)"]},rightpane:{shadow:["0 0 5px 0 rgba(0, 0, 0, 0.10)",null,"0 0 5px 0 rgba(0, 0, 0, 0.10)"]},basicWidgets:{bg:["#fff","#363738","#fff"],icon:{color:["#6c6d6e","#d7dde0","#6c6d6e"],hover:{bg:["#f2f2f2","#252626","#f2f2f2"],border_color:["#e8e8e8","#252626","#e8e8e8"]},active:{bg:["#f2f2f2","#252626","#f2f2f2"],color:["#ff6161","#b8bcbf","#ff6161"],border_color:["#e8e8e8","#252626","#e8e8e8"]}},nav:{divider:["#d8d8d8","#808080","#d8d8d8"]}},scrollbar:{thumb:{x_bg:["#d2d2d8","#454647","#d2d2d8"],y_bg:["#dedee4","#454647","#dedee4"],x_hover_bg:["#bec3c5","#595a5c","#bec3c5"],y_hover_bg:["#c8cdd0","#595a5c","#c8cdd0"]}},listItem:{action_color:["#8d9ea7","#b8bcbf","#8d9ea7"],action_hover_color:["#5b6b73","#f2f4f5","#5b6b73"],icon_expander:["#8d9ea7","#e6e9eb","#8d9ea7"],hover:{tc:["#298df8","#d7dde0","#298df8"],bg:["#f7f7f7","#151515","#f7f7f7"],transfer_bg:["#f7f7f7","#252626","#f7f7f7"],action:["#8d9ea7","#f2f4f5","#8d9ea7"],action_icon:["#298df8","#f2f4f5","#298df8"]},group_icon:{main:{hover_active:["#298df8","#d7dde0","#298df8"]},secondary:{hover_active:["#76b8ff","#f2f4f5","#76b8ff"]}},link_icon:{tc:["#298df8","#b8bcbf","#298df8"],tc_hover:["#298df8","#f2f4f5","#298df8"]},active:{slice_item_bg:["#ebebeb","#196ad4","#ebebeb"],bg:["#f2f2f2","#151515","#f2f2f2"]}},colorButton:{border_color_hover:["#8d9ea7","#808080","#8d9ea7"]},menu:{context:{item_hover_bg:["#666666","#196ad4","#666666"],icon:{cr:["#8d9ea7","#999999","#8d9ea7"],hover:["#298df8","#f2f4f5","#298df8"]}},font:{family:{divider:["#7d8694","#363738","#7d8694"],link_tc:["#fff","#298df8","#fff"]}}},modal:{close_btn:["#8d9ea7","#b8bcbf","#8d9ea7"],bg:["#fff","#363738","#fff"],bg1:["linear-gradient(to bottom,#fafafa,#f5f5f5)","#595a5c","linear-gradient(to bottom,#fafafa,#f5f5f5)"],bg2:["#298df8","#196ad4","#298df8"],bg3:["#1a70d8","#0b55b6","#1a70d8"],footer_bg:["#f7f7f7","#454647","#f7f7f7"],border_color:["#f2f2f3","#454647","#f2f2f3"],select_active_bg:["#f6f7f8","#196ad4","#f6f7f8"],select_hover_bg:["#f6f7f8","#363738","#f6f7f8"],shadow:["0 2px 10px 0 rgba(0, 0, 0, 0.1), 0 12px 40px 0 rgba(0, 0, 0, 0.1)",null,"0 2px 10px 0 rgba(0, 0, 0, 0.1), 0 12px 40px 0 rgba(0, 0, 0, 0.1)"],input:{border:["#f2f2f3","#595a5c","#f2f2f3"]},cancel_btn:{bg:["#fff","#595a5c","#fff"],hover:["#8d9ea7","#252626","#8d9ea7"],active:["#5b6b73","#252626","#5b6b73"],border:["#c8cdd0","#808080","#c8cdd0"]},confirm_btn:{border:["#dedee4","transparent","#dedee4"],disabled:["#fff","rgba(235, 86, 72, 0.6)","#fff"]},border:{cancel_hover:["#7d8694","#595a5c","#7d8694"],cancel_active:["#415058","#595a5c","#415058"],input_border:["#c8cdd0","#595a5c","#c8cdd0"]},tc:{hover:["#fff","#f2f4f5","#fff"],active:["#fff","rgba(242, 244, 245, 0.6)","#fff"],disabled:["#fff","rgba(235, 86, 72, 0.6)","#fff"]}},workspace_dropdown_menu:{shadow:{shadow_3:["0 2px 8px 0 rgba(0, 0, 0, 0.1)","0 2px 7px 0 rgba(0, 0, 0, 0.26), 0 12px 36px 0 rgba(0, 0, 0, 0.1)","0 2px 8px 0 rgba(0, 0, 0, 0.1)"]},bg:{bg_4:["#fff","#454647","#fff"]},text_5:{cr:["#5b6b73","#d7dde0","#5b6b73"]},dark:{tc:["#fff","#415058","#fff"],hover_tc:["#fff","#1f292e","#fff"],bg:["rgba(30, 41, 46, 0.9)","rgba(242, 244, 245)","rgba(30, 41, 46, 0.9)"]}},panel_picker:{bg:["#F2F2F2","#4F4F4F","#F2F2F2"]}},$i=(ne,ae)=>{const ye={};return Object.entries(ne).forEach(Ee=>{let[Pe,Ze]=Ee;Array.isArray(Ze)?ye[Pe]=Ze[ae]:typeof Ze=="object"?ye[Pe]=$i(Ze,ae):ye[Pe]=Ze}),ye},er={light:$i(Xi,0),dark:$i(Xi,1),skyblue:$i(Xi,2)},Hl=u((ne,ae,ye)=>[...ne,{key:"history",name:po("popup.colorPanel.history"),colors:ae},{key:"favorite",name:po("popup.colorPanel.favorite"),colors:ye}]),fa=new Map;class Qi extends r.PureComponent{constructor(ae){var ye;super(ae),ye=this,(0,n.A)(this,"state",{activeIndex:0}),(0,n.A)(this,"interactionsSetTo",!1),(0,n.A)(this,"delayedSetter",null),(0,n.A)(this,"addLastColorToHistory",Pe=>{const{historyColors:Ze}=this.props;if(!Ze)return;const Ct=[...Ze];Ze.includes(Pe)?Ct.splice(Ze.indexOf(Pe),1):Ct.splice(17),Ct.unshift(Pe),this.props.saveColorPreference({historyColors:Ct})}),(0,n.A)(this,"keepColorPickerInViewport",Pe=>{const{position:Ze,onPositionChanged:Ct,onApplyDidMountSideEffect:wt}=this.props;if(!Pe)return;if(wt){wt(Pe);return}const Mt=Pe.getBoundingClientRect(),{top:Vt,left:on,right:tn,bottom:ln}=Mt;let bn=0,Gn=0;if(on<0&&(bn=0-on),tn>window.innerWidth&&(bn=window.innerWidth-tn),Vt<56&&(Gn=56-Vt),ln>window.innerHeight-18&&(Gn=window.innerHeight-ln-18),bn||Gn){const so={left:Ze.left+bn,top:Ze.top+Gn};Ct(so)}}),(0,n.A)(this,"handlePanelDown",Pe=>{const Ze=Pe.clientX,Ct=Pe.clientY,{position:wt,onPositionChanged:Mt}=this.props,{top:Vt,left:on}=wt,tn=bn=>{const Gn=bn.clientX-Ze,so=bn.clientY-Ct,eo={left:on+Gn,top:Vt+so};Mt(eo)},ln=()=>{document.removeEventListener("mousemove",tn),document.removeEventListener("mouseup",ln)};document.addEventListener("mousemove",tn),document.addEventListener("mouseup",ln)}),(0,n.A)(this,"changePosition",function(Pe,Ze){Ze===void 0&&(Ze=!1);const{colorObj:Ct}=ye.props,{a:wt,b:Mt,c:Vt,d:on,x:tn,y:ln}=Pe;ye.onChangeColor({...Ct,complex:{a:wt,b:Mt,c:Vt,d:on},x:tn,y:ln},Ze)}),(0,n.A)(this,"handleChangeSelect",Pe=>{const Ze=document.querySelector(".--mb--color-picker");this.props.saveColorPreference({colorDropdownOption:Pe}),this.keepColorPickerInViewport(Ze)}),(0,n.A)(this,"handleActiveIndex",Pe=>this.setState({activeIndex:Pe})),(0,n.A)(this,"handleGradientMode",async Pe=>{const{colorObj:Ze,attr:Ct,index:wt,widgetProps:Mt,onColorSave:Vt}=this.props,on=(Mt==null?void 0:Mt.cid)||"";fa.set(on+Ct+wt+Ze.type,Ze);let tn;if(Pe===d.LA.Solid?this.setInteractions(!1,2e3):this.setInteractions(!0),fa.get(on+Ct+wt+Pe))tn=fa.get(on+Ct+wt+Pe);else switch(Pe){case d.LA.Solid:tn={type:d.LA.Solid,v:!0,blend:Ze.blend,color:d.Pi.convertColorsToColor(Ze)};break;case d.LA.LinearGradient:tn={type:d.LA.LinearGradient,v:!0,o:1,stops:[0,1],blend:Ze.blend,...d.dL.serialize(new d.hP().rotate(Math.PI/2).translate({x:.5,y:0})),colors:d.Pi.convertColorsToColors(Ze)};break;case d.LA.RadialGradient:tn={type:d.LA.RadialGradient,v:!0,o:1,stops:[0,1],blend:Ze.blend,...d.dL.serialize(new d.hP().scale(.5,.5).translate({x:.5,y:.5})),colors:d.Pi.convertColorsToColors(Ze)};break;case d.LA.Image:tn={...d.Pi.image("/src/public/default.png"),blend:Ze.blend};break;default:break}Vt(tn)}),(0,n.A)(this,"addToFavorite",Pe=>{const{favoriteColors:Ze}=this.props;this.props.saveColorPreference({favoriteColors:[...Ze,Pe]})}),(0,n.A)(this,"deleteFavorite",Pe=>{const{favoriteColors:Ze}=this.props,Ct=[...Ze];Ct.splice(Pe,1),this.props.saveColorPreference({favoriteColors:Ct})}),(0,n.A)(this,"handleChangeInputType",Pe=>{this.props.saveColorPreference({colorInputOption:Pe})}),(0,n.A)(this,"deleteStop",()=>{const{colorObj:Pe,attr:Ze}=this.props;if(!((0,Qn.NT)(this.colorType)&&Ze))return;const{activeIndex:wt}=this.state,{colors:Mt,stops:Vt}=Pe;if(Vt.length>2){const on=[...Vt],tn=[...Mt];on.splice(wt,1),tn.splice(wt,1);let ln;wt===0?ln=0:wt===Vt.length-1?ln=wt-1:ln=wt;const bn={...Pe,colors:tn,stops:on};this.handleActiveIndex(ln),this.onChangeColor(bn)}}),(0,n.A)(this,"moveStop",Pe=>{const{colorObj:Ze,attr:Ct}=this.props;if(!((0,Qn.NT)(this.colorType)&&Ct))return;const{activeIndex:Mt}=this.state,{colors:Vt,stops:on}=Ze;let tn=on[Mt],ln=tn;if(Pe==="ArrowUp"||Pe==="ArrowLeft"?ln=tn===0?tn:tn-=.01:(Pe==="ArrowDown"||Pe==="ArrowRight")&&(ln=tn===1?tn:tn+=.01),ln=Number(ln.toFixed(2)),ln){const bn=[...on];bn[Mt]=ln;const Gn={...Ze,colors:Vt,stops:bn};this.onChangeColor(Gn)}}),(0,n.A)(this,"shortcuts",{keys:{esc:()=>(this.props.nativeEyedropperIsOpen===void 0?!0:this.props.nativeEyedropperIsOpen)&&this.props.onClose(),del:()=>this.deleteStop(),backspace:()=>this.deleteStop(),up:()=>this.moveStop("ArrowUp"),left:()=>this.moveStop("ArrowLeft"),down:()=>this.moveStop("ArrowDown"),right:()=>this.moveStop("ArrowRight")},priority:no.zu.FloatingPanel}),(0,n.A)(this,"onChangeColor",function(Pe,Ze,Ct){Ze===void 0&&(Ze=!1),Ct===void 0&&(Ct=""),ye.props.onColorSave(Pe,Ze,Ct),ye.setInteractions(!0),ye.colorType===d.LA.Solid&&ye.setInteractions(!1,2e3)}),this.el=document.createElement("div"),this.el.style.position="relative";const{locale:Ee}=ae;us(Ee)}componentDidMount(){document.body.appendChild(this.el)}setInteractions(ae,ye){ye===void 0&&(ye=0),this.delayedSetter!==null&&clearTimeout(this.delayedSetter),ae!==this.interactionsSetTo&&(ye!==0?this.delayedSetter=setTimeout(()=>{this.props.setInteraction({disableRenderSelections:ae}),this.interactionsSetTo=ae,this.delayedSetter=null},ye):(this.props.setInteraction({disableRenderSelections:ae}),this.interactionsSetTo=ae))}componentWillUnmount(){document.body.removeChild(this.el),this.setInteractions(!1)}get colorType(){var ae;return((ae=this.props.colorObj)==null?void 0:ae.type)||d.LA.Solid}render(){const{themeColor:ae,attr:ye,theme:Ee,isDefaultColor:Pe,onResetColor:Ze,historyColors:Ct,colorPickerEnabled:wt,isEyedropperOpen:Mt,favoriteColors:Vt,widgetProps:on,colorInputOption:tn,position:{top:ln,left:bn},colorObj:Gn,currentSelect:so,onColorSave:eo,isSolidColorOnly:Co,isHideBlendMode:ko,createAssetFromFiles:Ro,activeTab:Bo,isShowLibPanel:Fo,canCreateColorRef:Ho,viewport:Lo,boundingBox:Go,screenOffset:ts,controlBarInteract:Qo,onClose:Xo,containerEle:rs,contextTransform:_s,onChangeTab:cs,dropdownColorFilter:vs,onMouseDownCallback:ms,onMouseUpCallback:Cs,onMouseDownToggleCreateModal:ls}=this.props,{activeIndex:Is}=this.state,{colorType:Ms}=this,xi=Hl(an(),Ct,Vt),bs=(0,Qn.NT)(Ms)&&ye&&on;return(0,o.createPortal)((0,ke.jsxs)(c.NP,{theme:{...er[Ee],themeColor:ae},children:[(0,ke.jsxs)(di,{className:"--mb--color-panel",style:{top:ln,left:bn},children:[(0,ke.jsx)(Oi,{theme:Ee,themeColor:ae,color:Gn,isDefaultColor:Pe,onResetColor:Ze,widgetProps:on,colorType:Ms,activeIndex:Is,colorInputOption:tn,currentSelect:so,colorPanelList:xi,onDragStart:this.handlePanelDown,onClose:this.props.onClose,onChangeSelect:this.handleChangeSelect,onChangeInputType:this.handleChangeInputType,onAddToFavorite:this.addToFavorite,onDeleteFavorite:this.deleteFavorite,applyDidMountSideEffect:this.keepColorPickerInViewport,applyWillUnmountSideEffect:this.addLastColorToHistory,onChangeColor:this.onChangeColor,onChangeActiveIndex:this.handleActiveIndex,onChangeGradientMode:this.handleGradientMode,colorPickerEnabled:wt,isEyedropperOpen:Mt,setInteraction:this.props.setInteraction,toggleColorPicker:this.props.toggleColorPicker,isSolidColorOnly:Co,isHideBlendMode:ko,createAssetFromFiles:Ro,defaultTab:this.props.defaultTab,onChangeTab:cs,isShowColorList:this.props.isShowColorList,onChangeShowColorList:this.props.onChangeShowColorList,dropdownColorFilter:vs,onMouseDownCallback:ms,onMouseUpCallback:Cs,onMouseDownToggleCreateModal:ls,activeTab:Bo,isShowLibPanel:Fo,canCreateColorRef:Ho,children:this.props.children}),(0,ke.jsx)(no.NH,{sheet:this.shortcuts})]}),bs&&(0,ke.jsx)(Mi,{containerEle:rs,color:Gn,activeIndex:Is,selectedItem:on,viewport:Lo,boundingBox:Go,screenOffset:ts,setInteraction:Qo,contextTransform:_s,onClose:Xo,onChangeGradient:eo,onChangeActiveIndex:this.handleActiveIndex,onChangePosition:this.changePosition,onMouseDownCallback:ms,onMouseUpCallback:Cs})]}),this.el)}}(0,n.A)(Qi,"defaultProps",{theme:"light",locale:"zh-CN",activeTab:"color",isShowLibPanel:!0,canCreateColorRef:!0});const xa=Qi;class Ei extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"_invalid",!1),(0,n.A)(this,"_originalValueOfInput",""),(0,n.A)(this,"_changedMannually",!1),(0,n.A)(this,"$input",null),(0,n.A)(this,"state",{hexValue:null,prevHexValueFromProps:null}),(0,n.A)(this,"setInputRef",ae=>{this.$input=ae}),(0,n.A)(this,"selectWhenClick",ae=>{ae.target.select(),this._originalValueOfInput=ae.target.value}),(0,n.A)(this,"_correctInput",ae=>ae.toUpperCase().replace(/[^0-9A-F]/g,"").slice(0,6)),(0,n.A)(this,"handleChange",ae=>{this._changedMannually=!0;const ye=this._correctInput(ae.target.value);ye.length===3||ye.length===6?this._invalid=!1:this._invalid=!0,this.setState({hexValue:ye})}),(0,n.A)(this,"_format3DigitValue",ae=>""+ae[0]+ae[0]+ae[1]+ae[1]+ae[2]+ae[2]),(0,n.A)(this,"formatAndHandleChange",()=>{if(!this._changedMannually)return;const{hexValue:ae}=this.state;let ye=ae;return ae.length===3&&(ye=this._format3DigitValue(ye),this.setState({hexValue:ye})),ye.toLowerCase(),this.props.handleChange("#"+ye),ye}),(0,n.A)(this,"handleBlur",ae=>{this._invalid?this.setState({hexValue:this._originalValueOfInput}):this.formatAndHandleChange(),this._invalid=!1,this._originalValueOfInput="",this.props.onBlur&&this.props.onBlur()}),(0,n.A)(this,"handleEnter",ae=>{if(ae.key==="Enter"){if(this._invalid)this.setState({hexValue:this._originalValueOfInput});else{const ye=this.formatAndHandleChange();this._originalValueOfInput=ye}this._invalid=!1,ae.target.select()}})}static getDerivedStateFromProps(ae,ye){const Ee=ae.hexValue.toUpperCase();return Ee!==ye.prevHexValueFromProps?{prevHexValueFromProps:Ee,hexValue:Ee}:null}render(){const{className:ae,onFocus:ye}=this.props,{hexValue:Ee}=this.state;return(0,ke.jsxs)(ke.Fragment,{children:[(0,ke.jsx)("a",{className:"hex-suffix",children:"#"}),(0,ke.jsx)("input",{className:ae,ref:this.setInputRef,value:Ee,onFocus:ye,onClick:this.selectWhenClick,onKeyUp:this.handleEnter,onChange:this.handleChange,onBlur:this.handleBlur})]})}}(0,n.A)(Ei,"propTypes",{className:s().string,hexValue:s().string,handleChange:s().func,onFocus:s().func,onBlur:s().func});const Ri=c.Ay.div.withConfig({displayName:"styles__StyledColorInput",componentId:"sc-5a4lom-0"})(["position:relative;display:flex;align-items:center;height:32px;.color-wrapper{display:flex;align-items:center;border-radius:4px;padding-left:6px;height:28px;width:147px;.hex-suffix{position:absolute;left:40px;font-size:12px;color:",";cursor:default;}&:hover:not(.disable):not(.is-active){box-shadow:inset 0 0 0 1px #e5e5e5;&::after{content:'';position:absolute;left:92px;top:3px;width:1px;height:calc(100% - 6px);background-color:#e5e5e5;}}&.is-rect-resize{box-shadow:inset 0 0 0 2px #6C4BD5;&::after{content:'';position:absolute;left:92px;top:3px;width:2px;height:calc(100% - 6px);background-color:#6C4BD5;}}&.is-active{box-shadow:inset 0 0 0 2px #6C4BD5;&::after{content:'';position:absolute;left:92px;top:4px;width:1px;height:calc(100% - 8px);background-color:#e5e5e5;}}&.hide-line{.bgColorText,.alphaText{opacity:0.4;}}}&.text{margin-left:19px;}.transparent{position:absolute;top:50%;left:50%;width:42px;border-top:2px solid #eb5648;transform-origin:0 0;transform:rotate(-22deg) translate(-50%,-50%);}.is-active-title{box-shadow:none;}.thumbnail-wrapper{position:relative;display:inline-flex;width:18px;height:18px;background-image:linear-gradient(45deg,#ccc 25%,transparent 0),linear-gradient(-45deg,#ccc 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ccc 0),linear-gradient(-45deg,transparent 75%,#ccc 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0;background-clip:padding-box;border-radius:2px;border:solid 1px #f1f1f1;background-color:#f1f1f1;.thumbnail{width:100%;height:100%;z-index:1;border-radius:2px;background-size:cover;border:1px solid rgba(0,0,0,0.17);&.gradient-btn{border:unset;}&.img-type{height:100%;width:auto;margin:auto;max-width:16px;}}&:before{content:'';position:absolute;width:20px;height:20px;left:-2px;top:-2px;border-radius:2px;background-color:transparent;z-index:0;border:solid 3px #f1f1f1;}.transparent{position:absolute;top:50%;left:50%;width:40px;border-top:2px solid #eb5648;transform-origin:0 0;transform:rotate(-22deg) translate(-50%,-50%);}}.bgColorText{font-size:12px;width:58px;padding:7px 0 7px 8px;background-color:transparent;box-sizing:content-box;margin-left:4px;&::selection{background-color:",";}}.gradient-text{color:",";padding:7px 0 7px 8px;}.alphaText{width:54px;height:28px;padding:6px 9px;box-sizing:border-box;font-size:12px;}.input-with-no-title{padding:8px 0;flex:0 0 53px;font-size:12px;box-shadow:none;input,.suffix{color:#000;line-height:28px;left:8px !important;}&:hover:not(.has-menu):not(.is-disabled){box-shadow:none;}&.is-active:not(.has-menu):not(.is-disabled){box-shadow:none;}.no-title{margin-right:0;width:9px;}.action{right:-1px;width:10px;background:",";height:18px;margin:5px 0;}}.icon{display:inline-flex;justify-content:center;align-items:center;}"],ne=>ne.theme.color_text_L3,ne=>""+Cn.Q.hex2rgbaStr(ne.theme.themeColor,.3),ne=>ne.theme.color_text_L1,ne=>ne.theme.bgColor),ya={[d.LA.LinearGradient]:"linearGradient",[d.LA.RadialGradient]:"radialGradient",[d.LA.AngularGradient]:"angularGradient"};class Ul extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"colorRef",(0,r.createRef)()),(0,n.A)(this,"state",{isRgbaInputActive:!1,isRectResize:!1}),(0,n.A)(this,"handleColorChange",ae=>{const{type:ye,value:Ee,onChange:Pe}=this.props;if(ye!==d.LA.Solid)return;const{r:Ze,g:Ct,b:wt}=d.Q1.hex2rgb(ae),Mt=Ee.color[3];Pe({...Ee,color:d.Q1.rgb255a(Ze,Ct,wt,Mt)}),this.handleInputCancel()}),(0,n.A)(this,"handleGradientOrImageAlphaChange",(ae,ye,Ee,Pe)=>{const{value:Ze,onChange:Ct}=this.props;Ct({...Ze,o:ae/100},Pe),this.handleInputCancel()}),(0,n.A)(this,"handleSolidAlphaChange",(ae,ye,Ee,Pe)=>{const{type:Ze,value:Ct,onChange:wt}=this.props;if(Ze!==d.LA.Solid)return;const[Mt,Vt,on]=Ct.color;wt({...Ct,color:[Mt,Vt,on,ae/100]},Pe),this.handleInputCancel()}),(0,n.A)(this,"handleClick",()=>{const{attr:ae,onChangeState:ye,onSelected:Ee}=this.props;Ee&&Ee(["",-1]),ye&&ye(ae),this.handleInputCancel()}),(0,n.A)(this,"handleInputActive",ae=>{ae&&ae.target.select&&ae.target.select(),this.setState({isRgbaInputActive:!0})}),(0,n.A)(this,"handleInputCancel",()=>this.setState({isRgbaInputActive:!1})),(0,n.A)(this,"handleRectResize",ae=>this.setState({isRectResize:ae}))}render(){const{attr:ae,value:ye,type:Ee,index:Pe,className:Ze,colorPanelPosOffset:Ct,onChange:wt,onChangeState:Mt,length:Vt,enable:on=!0}=this.props,{isRgbaInputActive:tn,isRectResize:ln}=this.state,bn=f()("color-wrapper",{"hide-line disable":!on},{"is-active":tn},{"is-rect-resize":ln});return(0,ke.jsx)(Ri,{className:Ze,children:(0,ke.jsxs)("div",{className:bn,onClick:this.handleClick,children:[(0,ke.jsx)(Qe,{color:ye,attr:ae,enable:on,index:Pe,onChangeState:Mt,onChange:wt,length:Vt,colorPanelPosOffset:Ct}),Ee===d.LA.Solid&&(0,ke.jsxs)(ke.Fragment,{children:[(0,ke.jsx)(Ei,{hexValue:d.Q1.toHexAndAlpha(ye.color)[0].substring(1),className:"bgColorText",handleChange:this.handleColorChange,onFocus:this.handleInputActive,onBlur:this.handleInputCancel}),(0,ke.jsx)(ci,{className:"alphaText input-with-no-title",min:0,max:100,suffix:"%",showCursorResize:!0,value:Math.floor(ye.color[3]*100),onRectResize:this.handleRectResize,onConfirm:this.handleSolidAlphaChange,onFocus:this.handleInputActive,onBlur:this.handleInputCancel})]}),(Ee===d.LA.LinearGradient||Ee===d.LA.RadialGradient||Ee===d.LA.AngularGradient)&&(0,ke.jsxs)(ke.Fragment,{children:[(0,ke.jsx)("span",{className:"bgColorText gradient-text",children:po("settingPanel."+ya[Ee])}),(0,ke.jsx)(ci,{className:"alphaText input-with-no-title",min:0,max:100,suffix:"%",showCursorResize:!0,value:ye.o*100,onRectResize:this.handleRectResize,onConfirm:this.handleGradientOrImageAlphaChange,onFocus:this.handleInputActive,onBlur:this.handleInputCancel})]}),Ee===d.LA.Image&&(0,ke.jsxs)(ke.Fragment,{children:[(0,ke.jsx)("span",{className:"bgColorText",children:po("settingPanel.imageFill")}),(0,ke.jsx)(ci,{className:"alphaText input-with-no-title",min:0,max:100,suffix:"%",showCursorResize:!0,value:ye.o*100,onRectResize:this.handleRectResize,onConfirm:this.handleGradientOrImageAlphaChange,onFocus:this.handleInputActive,onBlur:this.handleInputCancel})]})]})})}}(0,n.A)(Ul,"defaultProps",{hideColor:!1,enable:!0,index:0,length:1,className:""});const ei=(ne,ae)=>ne+ae},23744:(He,ee,e)=>{"use strict";e.d(ee,{C:()=>u});var n=e(80138);const c={...{"design/autoFillPanel/person":[21,21,'<path d="m15.34 16.916.008-.002c.194-.031.584-.095.928-.268.35-.176.662-.47.662-.966v-.266c0-2.52-2.082-4.569-4.638-4.569H9.588c-2.556 0-4.638 2.049-4.638 4.57v.265c0 .506.311.805.662.982.349.176.745.237.938.266.794.122 1.885.122 3.033.122H12.298c1.196 0 2.253-.009 3.042-.134zm-.142-.863c-.72.116-1.738.125-2.902.125H9.585c-1.122 0-2.176 0-2.904-.112a2.865 2.865 0 0 1-.595-.147.683.683 0 0 1-.199-.114c-.046-.041-.066-.083-.066-.125v-.266c0-2.037 1.689-3.696 3.765-3.696h2.708c2.077 0 3.766 1.659 3.766 3.696v.266c0 .04-.025.082-.083.126a.903.903 0 0 1-.234.117 3.2 3.2 0 0 1-.545.13zM7.242 6.586c0 2.004 1.656 3.635 3.69 3.635 2.033 0 3.689-1.63 3.689-3.635S12.965 2.95 10.93 2.95c-2.033 0-3.689 1.63-3.689 3.636zm.873 0c0-1.524 1.263-2.764 2.816-2.764 1.554 0 2.817 1.24 2.817 2.764 0 1.523-1.263 2.763-2.816 2.763-1.554 0-2.817-1.24-2.817-2.763z" fill="#333" stroke="#333" stroke-width=".1"/>'],"design/autoFillPanel/more":[12,3,'<circle cx="1.2" cy="1.2" r="1.2" fill="#999"/><circle cx="6" cy="1.2" r="1.2" fill="#999"/><circle cx="10.8" cy="1.2" r="1.2" fill="#999"/>'],"design/autoFillPanel/phone":[21,21,'<path d="M6.888 3.873c-2.269 1.693-2.55 5.408-.532 9.152 1.972 3.658 5.098 5.602 8.33 4.604.84-.26 1.646-.977 1.646-1.786 0-1.405-1.608-4.204-2.813-4.422-.338-.06-.747.061-1.354.324l-.194.086-.152.07c-.148.068-.272.129-.483.233l-.091.045-.004-.004a2.006 2.006 0 0 1-.11-.116 6.013 6.013 0 0 1-.587-.826l-.06-.1a9.607 9.607 0 0 1-.686-1.399l-.015-.04.383-.165.235-.103.224-.1.172-.081c.436-.207.695-.356.84-.515.833-.905-.817-5.28-2.17-5.532-.805-.15-1.778.112-2.5.618l-.08.057h.001zm2.371.44c.173.032.677.81 1.055 1.813.189.5.332 1.006.399 1.404l.011.07c.018.112.028.225.03.34l-.002.051-.071.042-.04.021c-.125.068-.29.15-.49.241l-.329.148c-.116.051-.233.102-.377.163l-.521.222-.078.036-.026.014-.015-.015c-.03-.021-.058.055-.265.644.344 1.475 1.798 3.867 2.692 3.869l.11-.012a.323.323 0 0 0 .049-.01l.075-.026.065-.028.234-.114.397-.194c.061-.03.12-.057.184-.087l.181-.082.087-.038c.173-.077.35-.144.53-.2l.063-.018c.077-.02.122-.028.111-.03.567.102 1.88 2.388 1.88 3.306 0 .193-.427.574-.847.703-2.623.81-5.254-.825-6.997-4.06-1.778-3.296-1.543-6.395.212-7.704.488-.365 1.19-.563 1.693-.47zM13.29 3c1.544 1.258 1.995 3.176 1.327 5.07l-.037.101-1.062-.397c.545-1.457.247-2.875-.872-3.835l-.072-.06L13.29 3z" fill="#333"/>'],"design/autoFillPanel/city":[21,21,'<path d="M3.136 17.203v.344H16.789V6.907a.7.7 0 0 0-.412-.637l-3.784-1.712-.003-.001-.006-.003a.997.997 0 0 0-.392-.079H7.775a.702.702 0 0 0-.702.702v4.825H3.802a.702.702 0 0 0-.702.701v6.5h.036zm5.083-7.201H7.86v-4.74h4.15v6.356l-3.392-1.534h-.002l-.007-.004a.997.997 0 0 0-.391-.078zm3.792 2.483v4.274H8.825v-5.714l3.186 1.44zm-3.974-1.694v5.968h-4.15v-5.968h4.15zm7.965 5.968h-3.204V5.517l3.204 1.45v9.792z" fill="#333" stroke="#333" stroke-width=".1"/><path d="M9.003 7.056h1.842a.344.344 0 1 0 0-.687H9.003a.343.343 0 0 0-.344.344c0 .19.153.343.344.343zm0 1.842h1.842a.344.344 0 1 0 0-.687H9.003a.343.343 0 0 0-.344.344c0 .19.153.343.344.343zm-3.992 4.299h1.842c.19 0 .344-.153.344-.344a.343.343 0 0 0-.344-.344H5.011a.343.343 0 0 0-.344.344c0 .19.153.344.344.344zm0 1.842h1.842c.19 0 .344-.153.344-.344a.343.343 0 0 0-.344-.343H5.011a.343.343 0 0 0-.344.343c0 .19.153.344.344.344z" fill="#333"/>'],"design/autoFillPanel/country":[21,21,'<path d="M10.848 8.351c.41 0 .796.16 1.086.45.29.29.45.676.45 1.086 0 .41-.16.796-.45 1.086-.29.29-.676.45-1.086.45a1.537 1.537 0 0 1 0-3.071zm0-1.024a2.56 2.56 0 1 0 0 5.119 2.56 2.56 0 0 0 0-5.119z" fill="#333"/><path d="M10.848 5.024c1.407 0 2.748.612 3.677 1.68 1.665 1.913 1.504 4.878-.367 6.75l-3.31 3.31-3.311-3.31c-1.871-1.872-2.032-4.837-.366-6.75a4.875 4.875 0 0 1 3.677-1.68zm0-1.024c-1.636 0-3.27.677-4.45 2.031-2.048 2.355-1.792 5.94.415 8.146l3.673 3.673a.51.51 0 0 0 .724 0l3.672-3.673c2.207-2.207 2.464-5.791.415-8.146A5.874 5.874 0 0 0 10.847 4z" fill="#333"/>'],"design/autoFillPanel/content":[21,21,'<path d="M10.381 6.99H6.836v.98h3.545v-.98zm-3.545 3.92h7.09v-.98h-7.09v.98zm0 2.94h7.09v-.98h-7.09v.98zm9.785-7.63-3.404-3.08a.54.54 0 0 0-.283-.14H4.496A.482.482 0 0 0 4 3.49v13.02c0 .28.213.49.496.49h11.841c.284 0 .496-.21.496-.49V6.57c-.07-.07-.141-.21-.212-.35zm-3.475-1.89L15.7 6.71h-2.553V4.33zm2.624 11.69H4.993V3.98h7.16V7.2c0 .28.213.49.497.49h3.19v8.33h-.07z" fill="#333"/>'],"design/autoFillPanel/dateTime":[21,21,'<path d="M16 10a6 6 0 1 0-12 0 6 6 0 0 0 12 0zm1 0a7 7 0 1 1-14 0 7 7 0 0 1 14 0z" fill="#333"/><path d="m10.5 10.522 1.855 1.85a.502.502 0 1 1-.71.71l-2-2a.5.5 0 0 1-.145-.355v-4.5a.5.5 0 0 1 1 0v4.295z" fill="#333"/>'],"design/autoFillPanel/email":[21,21,'<path d="M5.313 15.55h11.375c.75 0 1.362-.611 1.362-1.363V6.314c0-.752-.611-1.363-1.363-1.363H5.313c-.752 0-1.363.611-1.363 1.362v7.875c0 .752.611 1.363 1.363 1.363zm-.274-9.512a.387.387 0 0 1 .274-.113h11.375a.387.387 0 0 1 .387.388v7.875a.389.389 0 0 1-.387.387H5.313a.387.387 0 0 1-.388-.387V6.311c0-.102.04-.2.114-.274z" fill="#333" stroke="#333" stroke-width=".1"/><path d="M15.106 7.11a.487.487 0 0 1 .54.81v.001l-4.376 2.917a.478.478 0 0 1-.27.082m4.106-3.81-4.376 3.728c.08.053.174.082.27.082m4.106-3.81h-.001L11 9.846 6.896 7.11a.487.487 0 1 0-.54.812l4.374 2.916 4.376-3.729zM11 10.92v-.05.05z" fill="#333" stroke="#333" stroke-width=".1"/>'],"design/autoFillPanel/number":[21,21,'<path d="M15.505 4h-9.69c-1.071 0-1.939.896-1.939 2v6.981c0 1.105.868 2.003 1.94 2.003h2.018c.17 0 .335.045.482.132a.983.983 0 0 1 .354.361l1.152 2.029a.954.954 0 0 0 1.672 0l1.154-2.03a.984.984 0 0 1 .355-.36.946.946 0 0 1 .481-.132h2.022c1.069 0 1.934-.895 1.934-1.997V5.996C17.44 4.894 16.574 4 15.505 4zm.967 8.987c0 .264-.102.518-.283.705a.952.952 0 0 1-.683.293h-2.022c-.338 0-.67.09-.963.263a1.966 1.966 0 0 0-.708.723L10.66 17v-.001l-1.153-2.028c-.171-.3-.416-.55-.709-.723a1.888 1.888 0 0 0-.963-.263H5.815a.958.958 0 0 1-.687-.294 1.02 1.02 0 0 1-.284-.71v-6.98a1.03 1.03 0 0 1 .285-.709A.969.969 0 0 1 5.815 5h9.69a.94.94 0 0 1 .684.292 1 1 0 0 1 .283.705v6.991z" fill="#333"/><path d="M12.116 7.491a.47.47 0 0 0-.343.146.501.501 0 0 0-.141.353v2.502L9.591 7.69a.47.47 0 0 0-.54-.174.485.485 0 0 0-.239.183.51.51 0 0 0-.091.291v3.997c0 .132.05.26.142.353a.477.477 0 0 0 .684 0 .508.508 0 0 0 .142-.353v-2.5l2.039 2.801a.47.47 0 0 0 .78-.008.51.51 0 0 0 .09-.291V7.99a.514.514 0 0 0-.141-.353.483.483 0 0 0-.342-.146z" fill="#333"/>'],"design/autoFillPanel/animal":[21,21,'<mask id="a" maskUnits="userSpaceOnUse" x="2" y="2" width="18" height="16" fill="#000"><path fill="#fff" d="M2 2h18v16H2z"/><path d="M5.263 10.934c-.1 0-.202-.01-.303-.027-.606-.105-1.164-.513-1.534-1.117a2.884 2.884 0 0 1-.415-1.748c.055-.623.32-1.156.747-1.5a1.684 1.684 0 0 1 1.366-.35c.606.105 1.165.512 1.535 1.117.322.526.468 1.147.415 1.747-.055.624-.32 1.157-.747 1.5a1.683 1.683 0 0 1-1.064.378zm-.446-4.007a.91.91 0 0 0-.58.208c-.264.214-.43.559-.468.976-.04.438.07.894.307 1.283.256.417.625.695 1.014.764a.928.928 0 0 0 .757-.193c.263-.213.428-.558.467-.975a2.12 2.12 0 0 0-.307-1.283c-.256-.417-.625-.696-1.014-.764a1.108 1.108 0 0 0-.176-.016zM9.01 7.934c-.364 0-.726-.126-1.042-.366-.522-.397-.871-1.06-.96-1.816-.075-.633.043-1.262.333-1.77.309-.539.772-.882 1.307-.964.442-.068.898.056 1.281.347.522.397.871 1.06.96 1.817.075.632-.043 1.261-.333 1.768-.309.54-.772.883-1.307.965-.078.013-.159.019-.239.019zm-.118-4.172a.98.98 0 0 0-.126.01c-.3.045-.57.255-.76.588-.21.366-.293.83-.238 1.302.063.543.312 1.03.665 1.298a.92.92 0 0 0 .703.2c.301-.046.57-.255.76-.589.21-.366.294-.829.239-1.302-.063-.543-.313-1.029-.665-1.298a.974.974 0 0 0-.578-.21zm8.48 7.172c-.387 0-.755-.13-1.062-.378-.425-.343-.69-.876-.747-1.5-.054-.6.093-1.221.415-1.747.37-.606.929-1.012 1.535-1.117.493-.086.98.038 1.366.35.425.344.69.877.747 1.5.053.6-.093 1.222-.415 1.748-.37.606-.928 1.012-1.534 1.117a1.66 1.66 0 0 1-.305.027zm.445-4.007c-.057 0-.116.006-.175.016-.389.066-.758.345-1.014.764a2.128 2.128 0 0 0-.307 1.283c.037.415.202.762.467.975a.914.914 0 0 0 .757.193c.389-.067.758-.345 1.014-.764.236-.387.345-.843.307-1.283-.037-.415-.202-.762-.467-.976a.91.91 0 0 0-.582-.208zM13.7 7.934c-.08 0-.16-.006-.24-.02-.534-.081-.999-.424-1.308-.964-.29-.507-.408-1.136-.333-1.768.088-.757.438-1.418.96-1.817a1.683 1.683 0 0 1 1.281-.347c.534.082.999.425 1.308.965.29.507.407 1.136.333 1.769-.088.756-.438 1.417-.96 1.816-.313.24-.675.366-1.041.366zm.12-4.172a.98.98 0 0 0-.578.21c-.352.268-.6.752-.665 1.297-.055.473.03.936.239 1.302.19.334.46.543.76.589.301.046.549-.084.703-.2.353-.269.6-.753.665-1.298.056-.473-.03-.936-.238-1.302-.19-.333-.461-.543-.76-.589a.978.978 0 0 0-.126-.01zM14.286 17c-.038 0-.076-.002-.114-.004-.4-.023-.79-.16-1.123-.4-.536-.385-1.113-.58-1.713-.58-.6 0-1.176.195-1.714.58-.333.24-.722.377-1.122.4a2.168 2.168 0 0 1-1.925-.982 2.123 2.123 0 0 1-.336-1.143v-.044c0-1.677.52-3.257 1.464-4.45a5.16 5.16 0 0 1 1.618-1.376 4.226 4.226 0 0 1 2.015-.513c.7 0 1.378.174 2.014.513a5.16 5.16 0 0 1 1.618 1.376c.944 1.193 1.464 2.773 1.464 4.45v.044a2.123 2.123 0 0 1-.335 1.144 2.153 2.153 0 0 1-.832.747 2.135 2.135 0 0 1-.98.238zm-2.95-1.744c.752 0 1.498.25 2.157.722.427.305.959.345 1.428.107.466-.238.747-.694.75-1.216v-.04c0-3.074-1.944-5.576-4.333-5.576-2.39 0-4.334 2.502-4.334 5.576v.04c.003.524.284.978.75 1.216.467.238 1.001.198 1.428-.107.656-.472 1.4-.722 2.154-.722z"/></mask><path d="M5.263 10.934c-.1 0-.202-.01-.303-.027-.606-.105-1.164-.513-1.534-1.117a2.884 2.884 0 0 1-.415-1.748c.055-.623.32-1.156.747-1.5a1.684 1.684 0 0 1 1.366-.35c.606.105 1.165.512 1.535 1.117.322.526.468 1.147.415 1.747-.055.624-.32 1.157-.747 1.5a1.683 1.683 0 0 1-1.064.378zm-.446-4.007a.91.91 0 0 0-.58.208c-.264.214-.43.559-.468.976-.04.438.07.894.307 1.283.256.417.625.695 1.014.764a.928.928 0 0 0 .757-.193c.263-.213.428-.558.467-.975a2.12 2.12 0 0 0-.307-1.283c-.256-.417-.625-.696-1.014-.764a1.108 1.108 0 0 0-.176-.016zM9.01 7.934c-.364 0-.726-.126-1.042-.366-.522-.397-.871-1.06-.96-1.816-.075-.633.043-1.262.333-1.77.309-.539.772-.882 1.307-.964.442-.068.898.056 1.281.347.522.397.871 1.06.96 1.817.075.632-.043 1.261-.333 1.768-.309.54-.772.883-1.307.965-.078.013-.159.019-.239.019zm-.118-4.172a.98.98 0 0 0-.126.01c-.3.045-.57.255-.76.588-.21.366-.293.83-.238 1.302.063.543.312 1.03.665 1.298a.92.92 0 0 0 .703.2c.301-.046.57-.255.76-.589.21-.366.294-.829.239-1.302-.063-.543-.313-1.029-.665-1.298a.974.974 0 0 0-.578-.21zm8.48 7.172c-.387 0-.755-.13-1.062-.378-.425-.343-.69-.876-.747-1.5-.054-.6.093-1.221.415-1.747.37-.606.929-1.012 1.535-1.117.493-.086.98.038 1.366.35.425.344.69.877.747 1.5.053.6-.093 1.222-.415 1.748-.37.606-.928 1.012-1.534 1.117a1.66 1.66 0 0 1-.305.027zm.445-4.007c-.057 0-.116.006-.175.016-.389.066-.758.345-1.014.764a2.128 2.128 0 0 0-.307 1.283c.037.415.202.762.467.975a.914.914 0 0 0 .757.193c.389-.067.758-.345 1.014-.764.236-.387.345-.843.307-1.283-.037-.415-.202-.762-.467-.976a.91.91 0 0 0-.582-.208zM13.7 7.934c-.08 0-.16-.006-.24-.02-.534-.081-.999-.424-1.308-.964-.29-.507-.408-1.136-.333-1.768.088-.757.438-1.418.96-1.817a1.683 1.683 0 0 1 1.281-.347c.534.082.999.425 1.308.965.29.507.407 1.136.333 1.769-.088.756-.438 1.417-.96 1.816-.313.24-.675.366-1.041.366zm.12-4.172a.98.98 0 0 0-.578.21c-.352.268-.6.752-.665 1.297-.055.473.03.936.239 1.302.19.334.46.543.76.589.301.046.549-.084.703-.2.353-.269.6-.753.665-1.298.056-.473-.03-.936-.238-1.302-.19-.333-.461-.543-.76-.589a.978.978 0 0 0-.126-.01zM14.286 17c-.038 0-.076-.002-.114-.004-.4-.023-.79-.16-1.123-.4-.536-.385-1.113-.58-1.713-.58-.6 0-1.176.195-1.714.58-.333.24-.722.377-1.122.4a2.168 2.168 0 0 1-1.925-.982 2.123 2.123 0 0 1-.336-1.143v-.044c0-1.677.52-3.257 1.464-4.45a5.16 5.16 0 0 1 1.618-1.376 4.226 4.226 0 0 1 2.015-.513c.7 0 1.378.174 2.014.513a5.16 5.16 0 0 1 1.618 1.376c.944 1.193 1.464 2.773 1.464 4.45v.044a2.123 2.123 0 0 1-.335 1.144 2.153 2.153 0 0 1-.832.747 2.135 2.135 0 0 1-.98.238zm-2.95-1.744c.752 0 1.498.25 2.157.722.427.305.959.345 1.428.107.466-.238.747-.694.75-1.216v-.04c0-3.074-1.944-5.576-4.333-5.576-2.39 0-4.334 2.502-4.334 5.576v.04c.003.524.284.978.75 1.216.467.238 1.001.198 1.428-.107.656-.472 1.4-.722 2.154-.722z" fill="#333"/><path d="M5.263 10.934c-.1 0-.202-.01-.303-.027-.606-.105-1.164-.513-1.534-1.117a2.884 2.884 0 0 1-.415-1.748c.055-.623.32-1.156.747-1.5a1.684 1.684 0 0 1 1.366-.35c.606.105 1.165.512 1.535 1.117.322.526.468 1.147.415 1.747-.055.624-.32 1.157-.747 1.5a1.683 1.683 0 0 1-1.064.378zm-.446-4.007a.91.91 0 0 0-.58.208c-.264.214-.43.559-.468.976-.04.438.07.894.307 1.283.256.417.625.695 1.014.764a.928.928 0 0 0 .757-.193c.263-.213.428-.558.467-.975a2.12 2.12 0 0 0-.307-1.283c-.256-.417-.625-.696-1.014-.764a1.108 1.108 0 0 0-.176-.016zM9.01 7.934c-.364 0-.726-.126-1.042-.366-.522-.397-.871-1.06-.96-1.816-.075-.633.043-1.262.333-1.77.309-.539.772-.882 1.307-.964.442-.068.898.056 1.281.347.522.397.871 1.06.96 1.817.075.632-.043 1.261-.333 1.768-.309.54-.772.883-1.307.965-.078.013-.159.019-.239.019zm-.118-4.172a.98.98 0 0 0-.126.01c-.3.045-.57.255-.76.588-.21.366-.293.83-.238 1.302.063.543.312 1.03.665 1.298a.92.92 0 0 0 .703.2c.301-.046.57-.255.76-.589.21-.366.294-.829.239-1.302-.063-.543-.313-1.029-.665-1.298a.974.974 0 0 0-.578-.21zm8.48 7.172c-.387 0-.755-.13-1.062-.378-.425-.343-.69-.876-.747-1.5-.054-.6.093-1.221.415-1.747.37-.606.929-1.012 1.535-1.117.493-.086.98.038 1.366.35.425.344.69.877.747 1.5.053.6-.093 1.222-.415 1.748-.37.606-.928 1.012-1.534 1.117a1.66 1.66 0 0 1-.305.027zm.445-4.007c-.057 0-.116.006-.175.016-.389.066-.758.345-1.014.764a2.128 2.128 0 0 0-.307 1.283c.037.415.202.762.467.975a.914.914 0 0 0 .757.193c.389-.067.758-.345 1.014-.764.236-.387.345-.843.307-1.283-.037-.415-.202-.762-.467-.976a.91.91 0 0 0-.582-.208zM13.7 7.934c-.08 0-.16-.006-.24-.02-.534-.081-.999-.424-1.308-.964-.29-.507-.408-1.136-.333-1.768.088-.757.438-1.418.96-1.817a1.683 1.683 0 0 1 1.281-.347c.534.082.999.425 1.308.965.29.507.407 1.136.333 1.769-.088.756-.438 1.417-.96 1.816-.313.24-.675.366-1.041.366zm.12-4.172a.98.98 0 0 0-.578.21c-.352.268-.6.752-.665 1.297-.055.473.03.936.239 1.302.19.334.46.543.76.589.301.046.549-.084.703-.2.353-.269.6-.753.665-1.298.056-.473-.03-.936-.238-1.302-.19-.333-.461-.543-.76-.589a.978.978 0 0 0-.126-.01zM14.286 17c-.038 0-.076-.002-.114-.004-.4-.023-.79-.16-1.123-.4-.536-.385-1.113-.58-1.713-.58-.6 0-1.176.195-1.714.58-.333.24-.722.377-1.122.4a2.168 2.168 0 0 1-1.925-.982 2.123 2.123 0 0 1-.336-1.143v-.044c0-1.677.52-3.257 1.464-4.45a5.16 5.16 0 0 1 1.618-1.376 4.226 4.226 0 0 1 2.015-.513c.7 0 1.378.174 2.014.513a5.16 5.16 0 0 1 1.618 1.376c.944 1.193 1.464 2.773 1.464 4.45v.044a2.123 2.123 0 0 1-.335 1.144 2.153 2.153 0 0 1-.832.747 2.135 2.135 0 0 1-.98.238zm-2.95-1.744c.752 0 1.498.25 2.157.722.427.305.959.345 1.428.107.466-.238.747-.694.75-1.216v-.04c0-3.074-1.944-5.576-4.333-5.576-2.39 0-4.334 2.502-4.334 5.576v.04c.003.524.284.978.75 1.216.467.238 1.001.198 1.428-.107.656-.472 1.4-.722 2.154-.722z" stroke="#333" stroke-width=".2" mask="url(#a)"/>'],"design/autoFillPanel/tech":[21,21,'<path d="M9.089 12.568a3.131 3.131 0 0 0-2.044-.758A3.15 3.15 0 0 0 3.9 14.955 3.148 3.148 0 0 0 7.045 18.1a3.148 3.148 0 0 0 3.145-3.145c0-.702-.232-1.351-.623-1.875l.7-.7c.353.217.768.343 1.211.343a2.3 2.3 0 0 0 1.453-.515l.718.719a2.266 2.266 0 0 0 1.91 3.476 2.266 2.266 0 0 0 2.264-2.263 2.266 2.266 0 0 0-2.264-2.264c-.55 0-1.053.197-1.446.524l-.71-.71c.244-.366.386-.806.386-1.278 0-.442-.125-.856-.341-1.208l.682-.682a1.922 1.922 0 0 0 2.918-1.638 1.92 1.92 0 1 0-3.44 1.17l-.615.614a2.301 2.301 0 0 0-1.515-.566c-.472 0-.911.142-1.277.386l-.695-.695A2.443 2.443 0 0 0 7.546 3.9a2.442 2.442 0 0 0-2.44 2.44 2.443 2.443 0 0 0 2.44 2.44c.55 0 1.058-.182 1.467-.49l.67.67a2.3 2.3 0 0 0-.515 1.452 2.3 2.3 0 0 0 .565 1.512l-.644.644zm4-2.154c0 .386-.136.74-.363 1.018a.355.355 0 0 0-.097.109c-.292.298-.7.484-1.15.484a1.613 1.613 0 0 1-1.612-1.611c0-.889.724-1.611 1.611-1.611.889 0 1.611.722 1.611 1.61zM4.6 14.955a2.448 2.448 0 0 1 2.446-2.445 2.448 2.448 0 0 1 2.445 2.445 2.447 2.447 0 0 1-2.445 2.446 2.447 2.447 0 0 1-2.446-2.446zM5.806 6.34c0-.959.78-1.739 1.74-1.739.959 0 1.74.78 1.74 1.74 0 .959-.781 1.739-1.74 1.739-.96 0-1.74-.78-1.74-1.74zm8.19 7.8c0-.863.701-1.565 1.563-1.565.863 0 1.565.702 1.565 1.565 0 .862-.702 1.564-1.565 1.564a1.566 1.566 0 0 1-1.564-1.564zm-.085-7.256a1.22 1.22 0 1 1 1.218 1.218 1.22 1.22 0 0 1-1.218-1.218z" fill="#333" stroke="#333" stroke-width=".2"/>'],"design/autoFillPanel/nature":[21,21,'<path d="M18.03 14.774h-.768c-.007-.01-.007-.021-.015-.032l-6.015-7.516a.386.386 0 0 0-.306-.143.382.382 0 0 0-.3.162l-2.642 3.763-.422-.56a.37.37 0 0 0-.296-.152c-.113-.016-.229.05-.302.143l-3.421 4.3c-.008.01-.011.024-.019.035H2.318c-.21 0-.38.173-.38.385 0 .213.17.385.38.385h15.713c.21 0 .38-.172.38-.385a.383.383 0 0 0-.38-.385zm-7.073-6.668 5.335 6.668h-5.487c-.005-.008-.005-.016-.013-.024L8.464 11.65l2.493-3.545zm-3.705 3.197 2.606 3.468H4.494l2.758-3.468zm-2.194-4.06c.88 0 1.6-.729 1.6-1.622 0-.895-.72-1.621-1.6-1.621-.881 0-1.6.728-1.6 1.621 0 .896.719 1.621 1.6 1.621zm0-2.472c.464 0 .839.382.839.85 0 .47-.378.85-.84.85a.846.846 0 0 1-.838-.85c0-.468.378-.85.839-.85zm9.551 12.458H5.865c-.21 0-.38.173-.38.386 0 .212.17.385.38.385h8.744c.21 0 .38-.173.38-.385a.383.383 0 0 0-.38-.386z" fill="#333"/><path fill-rule="evenodd" clip-rule="evenodd" d="M17.247 14.742c.004.005.006.01.008.016l.008.016h.768c.21 0 .38.173.38.385 0 .213-.17.385-.38.385H2.318a.383.383 0 0 1-.38-.385c0-.213.17-.385.38-.385h1.206l.01-.017.009-.018 3.421-4.3c.073-.093.189-.16.301-.143a.37.37 0 0 1 .297.151l.422.561 2.643-3.763c.07-.098.18-.16.298-.162.124 0 .231.05.307.143l6.015 7.516zm-9.266-3.9 2.568-3.657a.477.477 0 0 1 .374-.202h.002c.151 0 .286.062.381.179h.001l6.01 7.512h.714c.261 0 .477.216.477.485 0 .27-.216.485-.477.485H2.318a.481.481 0 0 1-.477-.485c0-.27.216-.485.477-.485H3.47l3.42-4.298c.086-.108.229-.199.383-.18a.466.466 0 0 1 .367.19l.342.455zm2.976-2.736L8.464 11.65l2.328 3.099c.005.005.006.01.008.014l.005.01h5.487l-5.335-6.668zm.005.163-2.377 3.38 2.272 3.025h5.23l-5.125-6.405zm-3.71 3.034-2.758 3.468h5.364l-2.606-3.468zm-.002.16L4.7 14.671h4.96l-2.41-3.208zm-.496-5.842c0 .95-.763 1.721-1.696 1.721a1.71 1.71 0 0 1-1.696-1.72c0-.95.763-1.722 1.696-1.722a1.71 1.71 0 0 1 1.696 1.721zm-.954 0c0-.41-.33-.75-.742-.75-.41 0-.742.34-.742.75 0 .411.33.75.742.75.41 0 .742-.337.742-.75zm.065 11.508h8.744c.262 0 .477.216.477.486s-.215.485-.477.485H5.865a.481.481 0 0 1-.477-.485c0-.27.216-.486.477-.486zm.792-11.508c0 .893-.718 1.621-1.6 1.621-.88 0-1.598-.725-1.598-1.62C3.459 4.727 4.177 4 5.058 4c.88 0 1.6.726 1.6 1.621zm-.76 0a.846.846 0 0 0-.84-.85.847.847 0 0 0-.838.85c0 .468.375.85.839.85.461 0 .839-.38.839-.85zM5.865 17.23h8.744c.21 0 .38.173.38.386 0 .212-.17.385-.38.385H5.865a.383.383 0 0 1-.38-.385c0-.213.17-.386.38-.386z" fill="#333"/>'],"design/autoFillPanel/business":[21,21,'<path d="M16.473 5.867c0-.562-.475-1.06-1.342-1.4-.76-.3-1.77-.467-2.833-.467-1.063 0-2.073.166-2.834.467-.874.34-1.35.838-1.35 1.4v2.681a10.867 10.867 0 0 0-1.032-.055c-1.062 0-2.072.166-2.833.466-.867.348-1.342.847-1.342 1.408v5.766c0 .562.475 1.06 1.341 1.4.762.3 1.772.467 2.834.467 1.063 0 2.073-.166 2.834-.467.754-.3 1.213-.712 1.319-1.186.347.04.7.055 1.055.055 1.063 0 2.073-.166 2.834-.466.867-.34 1.341-.839 1.341-1.4v-.048l.008-8.621zm-.67 6.525c0 .483-1.373 1.17-3.513 1.17-.354 0-.7-.015-1.032-.055v-1.44c.339.04.678.056 1.032.056 1.063 0 2.073-.166 2.834-.466a3.49 3.49 0 0 0 .678-.348v1.083zm-5.209-.016c0 .483-1.371 1.17-3.512 1.17-2.14 0-3.512-.695-3.512-1.17v-.957c.189.127.415.245.679.348.76.3 1.77.467 2.833.467 1.063 0 2.073-.166 2.834-.467.264-.103.49-.221.678-.348v.957zM3.57 13.428c.189.127.415.245.679.348.76.3 1.77.467 2.833.467 1.063 0 2.073-.166 2.834-.467a3.49 3.49 0 0 0 .678-.348v.83c0 .483-1.371 1.171-3.512 1.171-2.14 0-3.512-.696-3.512-1.17v-.83zm12.232-3.171c0 .482-1.371 1.17-3.512 1.17-.354 0-.7-.016-1.032-.055v-1.005c0-.15-.038-.3-.106-.443.37.04.746.064 1.138.064 1.063 0 2.073-.167 2.834-.467.264-.103.49-.222.678-.348v1.084zm0-2.144c0 .482-1.371 1.17-3.512 1.17-2.14 0-3.512-.695-3.512-1.17V6.919c.188.126.415.245.678.348.761.3 1.771.466 2.834.466 1.063 0 2.073-.166 2.834-.466.264-.103.49-.222.678-.348v1.194zM12.29 4.688c2.14 0 3.512.696 3.512 1.17 0 .475-1.364 1.18-3.512 1.18-2.14 0-3.512-.697-3.512-1.171 0-.475 1.372-1.179 3.512-1.179zm-5.208 4.5c.475 0 .905.032 1.297.096.015 0 .022.008.037.008 1.357.205 2.178.703 2.178 1.075 0 .483-1.371 1.17-3.512 1.17-2.14 0-3.512-.695-3.512-1.17 0-.474 1.364-1.178 3.512-1.178zm0 8.124c-2.14 0-3.512-.696-3.512-1.17V15.31c.189.126.415.245.679.348.76.3 1.77.466 2.833.466 1.063 0 2.073-.166 2.834-.466a3.49 3.49 0 0 0 .678-.348v.83c0 .475-1.371 1.17-3.512 1.17zm5.208-1.606c-.354 0-.7-.016-1.032-.055v-1.44c.339.04.678.056 1.032.056 1.063 0 2.073-.166 2.834-.467a3.49 3.49 0 0 0 .678-.348v1.091c0 .467-1.364 1.163-3.512 1.163z" fill="#262435"/>'],"design/autoFillPanel/food":[21,21,'<path d="M17 15.5v-1a.5.5 0 0 0-.5-.5h-13a.5.5 0 0 0-.5.5v1c0 1.103.897 2 2 2h10c1.103 0 2-.897 2-2zm-13 0V15h12v.5c0 .552-.448 1-1 1H5c-.551 0-1-.448-1-1zm12.5-5h-13c-.827 0-1.5.673-1.5 1.5s.673 1.5 1.5 1.5h13c.827 0 1.5-.673 1.5-1.5s-.673-1.5-1.5-1.5zm0 2h-13a.5.5 0 0 1 0-1h13a.501.501 0 0 1 0 1zM3.5 10h13.01a.5.5 0 0 0 .488-.609C16.907 6.817 13.613 4.5 10 4.5c-3.663 0-7 2.383-7 5a.5.5 0 0 0 .5.5zM10 5.5c3.078 0 5.527 1.784 5.939 3.5H4.061C4.473 7.284 6.922 5.5 10 5.5z" fill="#333"/><path d="M7 7.5a.5.5 0 1 0 1 0 .5.5 0 0 0-1 0zM10 6.5a.5.5 0 1 0 1 0 .5.5 0 0 0-1 0zM12.5 8a.5.5 0 1 0 1 0 .5.5 0 0 0-1 0z" fill="#333"/>'],"design/autoFillPanel/close":[24,24,'<path fill-rule="evenodd" clip-rule="evenodd" d="M15.854 8.146a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708-.708l7-7a.5.5 0 0 1 .708 0z" fill="#333"/><path fill-rule="evenodd" clip-rule="evenodd" d="M15.854 15.854a.5.5 0 0 1-.708 0l-7-7a.5.5 0 1 1 .708-.708l7 7a.5.5 0 0 1 0 .708z" fill="#333"/>'],"design/br_single":[9,10,'<path stroke="#8B8C8F" stroke-linecap="round" stroke-width="1.2" d="M8 1.5H4a3 3 0 0 0-3 3v4"/>'],"chatGPT/ai-help":[16,16,'<path fill="#999" fill-rule="evenodd" d="M2.67 8a5.33 5.33 0 1 1 10.66 0A5.33 5.33 0 0 1 2.67 8ZM8 1.33a6.67 6.67 0 1 0 0 13.34A6.67 6.67 0 0 0 8 1.33ZM6.87 6.66v-.15c0-.19.06-.39.2-.54.14-.14.4-.3.93-.3.48 0 .82.23 1 .5.18.28.15.51.06.63a2.98 2.98 0 0 1-.59.6l-.36.3c-.37.37-.78.86-.78 1.63v.34h1.34v-.34c0-.23.1-.4.36-.66l.27-.24.24-.2c.19-.18.4-.38.59-.63.5-.69.39-1.55-.02-2.17A2.5 2.5 0 0 0 8 4.33c-.82 0-1.46.27-1.88.72-.42.43-.59.98-.59 1.45v.16h1.34Zm.47 3.67v1.34h1.33v-1.34H7.34Z" clip-rule="evenodd"/>'],"embed/question/circle":[12,12,'<path fill-rule="evenodd" clip-rule="evenodd" d="M6.199 9.156a.618.618 0 0 1-.404.162c-.162 0-.324-.08-.486-.162-.08-.161-.161-.323-.161-.485 0-.161.08-.323.161-.485.162-.08.324-.161.486-.161.161 0 .323.08.485.161.08.162.161.324.161.485 0 .162-.08.324-.242.485Zm1.617-4.042c-.08.242-.162.404-.324.485l-.727.728-.243.242c-.05 0-.069.031-.095.074a.451.451 0 0 1-.066.088v.162c-.081.08-.081.161-.081.323-.081.243-.243.404-.566.404-.081 0-.243-.08-.324-.161-.161-.081-.161-.243-.161-.405 0-.242 0-.485.08-.647.081-.161.162-.323.324-.485.08-.08.242-.242.485-.404l.404-.404c.081-.081.162-.162.162-.243.03-.062.062-.112.088-.154.043-.07.074-.12.074-.17 0-.242-.162-.484-.324-.646-.161-.08-.323-.162-.647-.162-.323 0-.566.081-.646.162a1.563 1.563 0 0 0-.405.728c-.08.323-.323.485-.566.485a.618.618 0 0 1-.404-.162c-.08-.08-.162-.242-.162-.323 0-.324.081-.566.243-.89.162-.242.485-.485.808-.647.324-.242.728-.323 1.132-.323.405 0 .809.08 1.132.243.324.161.566.404.728.646.162.243.243.566.243.89 0 .242 0 .404-.162.566Z" fill="#333"/><circle cx="6" cy="6" r="5.5" stroke="#333"/>'],"preview/inspect/color_absorber":[24,24,'<path fill-rule="evenodd" clip-rule="evenodd" d="M18.181 5.937c.671.667.627 1.802-.077 2.598L18 8.647l-2.182 2.167a2.347 2.347 0 01-.19.17l1.6 1.591a1.335 1.335 0 010 1.897 1.356 1.356 0 01-1.91 0l-1.113-1.106-5.346 5.311c-.553.55-1.243.894-1.932.983-.691.09-1.42-.077-1.95-.604-1.025-1.018-.701-2.66.236-3.702l.006-.007.133-.14 5.353-5.318L9.59 8.782a1.335 1.335 0 010-1.897 1.356 1.356 0 011.91 0l1.6 1.59.067-.078.105-.112 2.182-2.167c.803-.798 2.024-.88 2.727-.181zm-6.522 4.9l-5.34 5.305-.106.111c-.672.753-.598 1.542-.282 1.855.173.172.451.27.82.222.37-.048.792-.243 1.153-.601l5.345-5.311-1.59-1.581z" fill="#000" />'],"chatGPT/ai-switch-left":[14,14,'<path fill="url(#paint_linear_0)" fill-rule="evenodd" d="M3.16.36c.08-.22.4-.22.49 0l.62 1.58c.03.07.08.12.15.15L6 2.7c.22.1.22.4 0 .5l-1.58.62a.26.26 0 0 0-.15.15l-.62 1.58a.26.26 0 0 1-.5 0l-.62-1.58a.26.26 0 0 0-.15-.15L.8 3.2a.26.26 0 0 1 0-.49l1.58-.62a.26.26 0 0 0 .15-.15L3.16.36Zm6.8.96c.24-.03.47.16.49.41l.05.57a.46.46 0 0 1-.92.08l-.05-.57a.46.46 0 0 1 .42-.5Zm2.27 1.76a.46.46 0 0 0-.65-.65l-.4.4a.46.46 0 1 0 .65.65l.4-.4ZM2.3 12.8l5.45-5.46-.43-.43-5.46 5.45a.3.3 0 1 0 .44.44Zm5.67-6.54.43.43 1.7-1.7a.3.3 0 0 0-.43-.43l-1.7 1.7ZM9.02 3.9l-1.7 1.7-.65.65L1.2 11.7a1.23 1.23 0 0 0 1.74 1.74L8.4 7.99l.65-.65 1.7-1.7a1.23 1.23 0 1 0-1.73-1.73Zm3.92.32a.46.46 0 0 1-.08.91l-.57-.05a.46.46 0 0 1 .08-.91l.57.05ZM7.9 2.08c.2-.14.5-.1.64.12l.33.47a.46.46 0 0 1-.76.52l-.33-.46c-.14-.21-.1-.5.12-.65Zm4.4 3.87a.46.46 0 1 1-.54.76l-.46-.33a.46.46 0 0 1 .52-.76l.47.33Zm-1.83 2.92a.17.17 0 0 0-.32 0l-.33.86a.17.17 0 0 1-.1.1l-.86.33a.17.17 0 0 0 0 .31l.86.34c.05.02.08.05.1.1l.33.85c.06.14.26.14.31 0l.34-.86a.17.17 0 0 1 .1-.09l.86-.34a.17.17 0 0 0 0-.3l-.86-.35a.17.17 0 0 1-.1-.09l-.33-.86Z" clip-rule="evenodd"/><defs><linearGradient id="paint_linear_0" x1="-.02" x2="12.17" y1="1.49" y2="11.91" gradientUnits="userSpaceOnUse"><stop stop-color="#4AD2FF"/><stop offset=".47" stop-color="#1684FC"/><stop offset="1" stop-color="#6559FF"/></linearGradient><linearGradient id="paint_linear_1" x1="15.7" x2="-1.61" y1="-7.29" y2="-5.94" gradientUnits="userSpaceOnUse"><stop stop-color="#BA52FA"/><stop offset="1" stop-color="#7EBCFF"/></linearGradient></defs>'],"chatGPT/ai-switch-right":[15,14,'<path fill="url(#paint_linear_0)" fill-rule="evenodd" d="M1.17 4.3a2.5 2.5 0 0 1 2.5-2.5h7.66a2.5 2.5 0 0 1 2.5 2.5v4.74a2.5 2.5 0 0 1-2.5 2.5H6.74l-2.8 1.4a.5.5 0 0 1-.73-.44v-1a2.5 2.5 0 0 1-2.04-2.46V4.3Zm2.5-1.5c-.83 0-1.5.66-1.5 1.5v4.74c0 .83.67 1.5 1.5 1.5h.04c.27 0 .5.23.5.5v.65l2.2-1.1a.5.5 0 0 1 .22-.05h4.7c.83 0 1.5-.67 1.5-1.5V4.3c0-.83-.67-1.5-1.5-1.5H3.67ZM9.5 5.24c.28 0 .5.22.5.5v1.5a.5.5 0 0 1-1 0v-1.5c0-.28.22-.5.5-.5Zm-3.5.5a.5.5 0 0 0-1 0v1.5a.5.5 0 0 0 1 0v-1.5Z" clip-rule="evenodd"/><defs><linearGradient id="paint_linear_0" x1="16.16" x2="-1.02" y1="-4.37" y2="-2.74" gradientUnits="userSpaceOnUse"><stop stop-color="#642EFF"/><stop offset="1" stop-color="#1684FC"/><linearGradient id="paint_linear_1" x1="16.16" x2="-1.02" y1="-4.37" y2="-2.74" gradientUnits="userSpaceOnUse"><stop stop-color="#BA52FA"/><stop offset="1" stop-color="#7EBCFF"/></linearGradient></defs>'],"chatGPT/tip-loading":[20,20,'<path fill="url(#paint0_linear_758_23907)" fill-rule="evenodd" d="M10.73 2.73a.73.73 0 1 0-1.46 0v1.45a.73.73 0 0 0 1.46 0V2.73Zm3.54 1.34A.73.73 0 0 0 13 3.34l-.73 1.26a.73.73 0 0 0 1.26.73l.73-1.26ZM16.93 6c.2.35.08.8-.27 1l-1.26.72a.73.73 0 0 1-.72-1.26l1.25-.73c.35-.2.8-.08 1 .27Zm-1.11 3.27a.73.73 0 1 0 0 1.46h1.45a.73.73 0 1 0 0-1.46h-1.45Zm-1.36 3.28a.73.73 0 0 1 1-.27l1.25.73a.73.73 0 1 1-.72 1.26l-1.26-.73a.73.73 0 0 1-.27-1Zm-.92 2.13a.73.73 0 1 0-1.26.72l.73 1.26a.73.73 0 1 0 1.26-.73l-.73-1.25Zm-3.54.41c.4 0 .73.33.73.73v1.45a.73.73 0 1 1-1.46 0v-1.45c0-.4.33-.73.73-.73Zm-2.28.31a.73.73 0 0 0-1.26-.72l-.73 1.25a.73.73 0 1 0 1.26.73l.73-1.26ZM5.6 12.55c.2.34.08.79-.26.99l-1.26.73A.73.73 0 0 1 3.34 13l1.26-.73c.35-.2.79-.08 1 .27ZM2.73 9.27a.73.73 0 0 0 0 1.46h1.45a.73.73 0 1 0 0-1.46H2.73ZM3.07 6a.73.73 0 0 1 1-.27l1.26.73a.73.73 0 1 1-.73 1.26L3.34 7A.73.73 0 0 1 3.07 6ZM7 3.34a.73.73 0 1 0-1.26.73l.73 1.26a.73.73 0 1 0 1.26-.73L7 3.34Z" clip-rule="evenodd"/><defs><linearGradient id="paint0_linear_758_23907" x1="1.18" x2="15.63" y1="3.52" y2="16.73" gradientUnits="userSpaceOnUse"><stop stop-color="#4AD2FF"/><stop offset=".47" stop-color="#1684FC"/><stop offset="1" stop-color="#6559FF"/></linearGradient></defs>'],"chatGPT/create-comment-send":[20,20,'<path fill-rule="evenodd" clip-rule="evenodd" d="M18.2131 11.035C18.5022 10.8933 18.6838 10.5976 18.6795 10.2757C18.6752 9.95372 18.4858 9.66304 18.193 9.52905L2.83162 2.49873C2.492 2.3433 2.09044 2.43282 1.849 2.7178C1.60757 3.00277 1.58524 3.41359 1.79436 3.72305L6.2495 10.316L2.10701 17.2255C1.91714 17.5422 1.95832 17.9461 2.2082 18.218C2.45809 18.4898 2.85708 18.5648 3.18862 18.4022L18.2131 11.035ZM7.68133 9.45816L4.83745 5.24964L15.9005 10.3128L4.98608 15.6646L7.70784 11.1248H10.5729C11.0331 11.1248 11.4062 10.7517 11.4062 10.2915C11.4062 9.83126 11.0331 9.45816 10.5729 9.45816H7.68133Z" fill="#1685FC"/>'],"chatGPT/ai-point-icon":[16,16,'<circle cx="8" cy="8" r="7.31" fill="#1684FC" stroke="url(#paint0_linear_1039_38488)" stroke-width=".62"/><path fill="#fff" fill-rule="evenodd" d="M9.28 3.53a.2.2 0 0 0-.3-.17l-3.1 1.8a.2.2 0 0 0-.08.07l-1.05-.6a.2.2 0 0 0-.3.16v3.6l.03.1-1.05.6a.2.2 0 0 0 0 .34l3.1 1.8a.2.2 0 0 0 .1.03v1.21c0 .15.17.25.3.17l3.1-1.79a.2.2 0 0 0 .08-.07l1.05.6a.2.2 0 0 0 .3-.17V7.6a.2.2 0 0 0-.03-.1l1.06-.6a.2.2 0 0 0 0-.35l-3.1-1.8a.2.2 0 0 0-.1-.02l-.01-1.2ZM6.83 8.68a.2.2 0 0 1 .1.03l1.05.6a.2.2 0 0 1 .07-.06l1.06-.62a.2.2 0 0 1-.02-.1V7.32a.2.2 0 0 1-.1-.03l-1.05-.6a.2.2 0 0 1-.08.07l-1.05.6a.2.2 0 0 1 .02.1v1.22Z" clip-rule="evenodd"/><defs><linearGradient id="paint0_linear_1039_38488" x1="8" x2="8" y1="1" y2="15" gradientUnits="userSpaceOnUse"><stop stop-color="#8FC5FF"/><stop offset="1" stop-color="#0076F8"/></linearGradient></defs>'],"chatGPT/ai-point-icon-red":[16,16,'<circle cx="8" cy="8" r="7" fill="url(#paint0_linear_1370_37031)" stroke="url(#paint1_linear_1370_37031)" stroke-width=".5"/><path fill="#fff" fill-rule="evenodd" d="M9.28 3.53a.2.2 0 0 0-.3-.17l-3.1 1.8a.2.2 0 0 0-.08.07l-1.05-.6a.2.2 0 0 0-.3.16v3.6l.03.1-1.05.6a.2.2 0 0 0 0 .34l3.1 1.8a.2.2 0 0 0 .1.03v1.21c0 .15.17.25.3.17l3.1-1.79a.2.2 0 0 0 .08-.07l1.05.6a.2.2 0 0 0 .3-.17V7.6a.2.2 0 0 0-.03-.1l1.06-.6a.2.2 0 0 0 0-.35l-3.1-1.8a.2.2 0 0 0-.1-.02l-.01-1.2ZM6.83 8.68a.2.2 0 0 1 .1.03l1.05.6a.2.2 0 0 1 .07-.06l1.06-.62a.2.2 0 0 1-.02-.1V7.32a.2.2 0 0 1-.1-.03l-1.05-.6a.2.2 0 0 1-.08.07l-1.05.6a.2.2 0 0 1 .02.1v1.22Z" clip-rule="evenodd"/><defs><linearGradient id="paint0_linear_1370_37031" x1="17.57" x2="-1.46" y1="-6.7" y2="-5.1" gradientUnits="userSpaceOnUse"><stop stop-color="#EC4954"/><stop offset="1" stop-color="#FA52D6"/></linearGradient><linearGradient id="paint1_linear_1370_37031" x1="8" x2="8" y1="1" y2="15" gradientUnits="userSpaceOnUse"><stop stop-color="#FFBBCE"/><stop offset="1" stop-color="#F750B1"/></linearGradient></defs>'],"chatGPT/ai-cmd-help":[24,24,'<path fill="#000" fill-rule="evenodd" d="M11.56 5.4a6.6 6.6 0 1 0 .08 13.2 6.6 6.6 0 0 0-.08-13.2Zm.04 12.1a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11Zm.84-8.53a2.63 2.63 0 0 0-1.4-.05 1.9 1.9 0 0 0-1.3.96 2.13 2.13 0 0 0-.26 1.15v.1h1.11l.01-.04V11c.01-.23.03-.45.13-.66.1-.23.28-.38.52-.44.2-.05.4-.06.6-.02.25.04.46.17.56.42.16.37.12.73-.15 1.04-.08.1-.17.18-.26.27-.25.23-.5.47-.72.74-.1.13-.19.28-.24.45a2.59 2.59 0 0 0-.09.92H12.1v-.28c0-.18.04-.36.13-.51.08-.17.2-.3.34-.43l.6-.53c.12-.1.2-.22.28-.35.22-.42.26-.86.18-1.31a1.64 1.64 0 0 0-1.18-1.34ZM11.45 14c.21 0 .4.04.56.18.23.2.3.46.22.74a.67.67 0 0 1-.53.52c-.3.07-.57-.01-.77-.26a.67.67 0 0 1-.16-.45.72.72 0 0 1 .68-.73Z" clip-rule="evenodd"/>'],"chatGPT/ai-cmd-send":[24,24,'<path fill="#000" fill-rule="evenodd" d="M7.77 14.94h6.43a3.5 3.5 0 0 0 2.48-1.03 3.49 3.49 0 0 0 1.04-2.49V7.18a.43.43 0 0 0-.87 0v4.24a2.66 2.66 0 0 1-2.65 2.65H7.77l1.57-1.57a.43.43 0 1 0-.61-.61l-2.28 2.28a.43.43 0 0 0 0 .68l2.28 2.28a.43.43 0 0 0 .61 0 .43.43 0 0 0 0-.61l-1.57-1.58Z" clip-rule="evenodd"/>'],"chatGPT/ai-chat-send":[28,28,'<rect width="28" height="28" fill="#266FFF" rx="14"/><path fill="#fff" d="M14.53 7.47a.75.75 0 0 0-1.06 0L8.7 12.24a.75.75 0 0 0 1.06 1.06L14 9.06l4.24 4.24a.75.75 0 0 0 1.06-1.06zM13.25 20a.75.75 0 0 0 1.5 0zm0-12v12h1.5V8z"/>'],"chatGPT/ai-chat-stop":[28,28,'<rect width="28" height="28" fill="#266FFF" rx="14"/><rect width="10" height="10" x="9" y="9" fill="#fff" rx="2" class="center-rect"/>'],"chatGPT/ai-chat-avatar":[32,32,'<path fill="url(#paint0_linear_40002274_4788)" fill-rule="evenodd" d="M19.52 11.92 25.2 9v12.93c0 .59-.48 1.07-1.08 1.07z" clip-rule="evenodd"/><path fill="url(#paint1_linear_40002274_4788)" d="M10.73 9h7l-5 12.22A2.9 2.9 0 0 1 10.08 23H5z"/><path fill="url(#paint2_linear_40002274_4788)" d="M17.73 9h-7l5 12.22A2.9 2.9 0 0 0 18.37 23h5.08z"/><mask id="mask0_40002274_4788" width="14" height="14" x="10" y="9" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="url(#paint3_linear_40002274_4788)" d="M17.73 9h-7l5 12.22A2.9 2.9 0 0 0 18.37 23h5.09z"/></mask><g mask="url(#mask0_40002274_4788)"><path fill="url(#paint4_linear_40002274_4788)" d="M10.73 9h7L12 23H5z"/></g><defs><linearGradient id="paint0_linear_40002274_4788" x1="20.25" x2="22.08" y1="11.25" y2="22.5" gradientUnits="userSpaceOnUse"><stop stop-color="#42E9FF"/><stop offset="1" stop-color="#5AB2F7"/></linearGradient><linearGradient id="paint1_linear_40002274_4788" x1="13.48" x2="7.64" y1="8.58" y2="22.64" gradientUnits="userSpaceOnUse"><stop stop-color="#BBD3FF"/><stop offset="1" stop-color="#60EFFF"/></linearGradient><linearGradient id="paint2_linear_40002274_4788" x1="14.97" x2="21.6" y1="8.58" y2="23.23" gradientUnits="userSpaceOnUse"><stop stop-color="#7C3FFF"/><stop offset="1" stop-color="#C191FF"/></linearGradient><linearGradient id="paint3_linear_40002274_4788" x1="14.97" x2="21.6" y1="8.58" y2="23.23" gradientUnits="userSpaceOnUse"><stop stop-color="#7C3FFF"/><stop offset="1" stop-color="#C191FF"/></linearGradient><linearGradient id="paint4_linear_40002274_4788" x1="14.81" x2="12.17" y1="8.63" y2="18.19" gradientUnits="userSpaceOnUse"><stop stop-color="#5FA9FF"/><stop offset="1" stop-color="#38CFFF"/></linearGradient></defs>'],"chatGPT/ai-chat-expand-arrow":[24,24,'<path stroke="#555557" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m8 10 4 4 4-4" fill="rgba(0,0,0,0)"/>'],"chatGPT/ai-chat-copy":[24,24,'<path fill="#555557" d="M10.26 6h6.63A1.1 1.1 0 0 1 18 7.1v6.64a1.1 1.1 0 0 1-1.1 1.1h-6.64a1.1 1.1 0 0 1-1.1-1.1V7.1A1.1 1.1 0 0 1 10.26 6m0 .95a.16.16 0 0 0-.15.16v6.63a.2.2 0 0 0 .15.15h6.63a.16.16 0 0 0 .16-.15V7.1a.16.16 0 0 0-.16-.16zm3.63 8.84a.47.47 0 1 1 .95 0v1.1a1.1 1.1 0 0 1-1.1 1.11H7.1A1.1 1.1 0 0 1 6 16.9v-6.64a1.1 1.1 0 0 1 1.1-1.1h1.11a.47.47 0 0 1 0 .95h-1.1a.16.16 0 0 0-.16.15v6.63a.16.16 0 0 0 .16.16h6.63a.16.16 0 0 0 .15-.16z"/>'],"chatGPT/ai-panel-head-close":[24,24,'<path fill="#19191A" fill-rule="evenodd" d="M6.85 6.15a.5.5 0 1 0-.7.7L11.29 12l-5.14 5.15a.5.5 0 0 0 .7.7L12 12.71l5.15 5.14a.5.5 0 0 0 .7-.7L12.71 12l5.14-5.15a.5.5 0 0 0-.7-.7L12 11.29z" clip-rule="evenodd"/>'],"common/expand":[8,8,'<path fill-rule="evenodd" clip-rule="evenodd" d="M7.18198 2.64658C7.37724 2.84184 7.37724 3.15842 7.18198 3.35369L4.35355 6.18211C4.15829 6.37738 3.84171 6.37738 3.64645 6.18211L0.81802 3.35369C0.622757 3.15842 0.622757 2.84184 0.81802 2.64658C1.01328 2.45132 1.32986 2.45132 1.52513 2.64658L4 5.12145L6.47487 2.64658C6.67014 2.45132 6.98672 2.45132 7.18198 2.64658Z" fill="#333"/>']},...n.K};var o=e(51582),I=e(72214);o.C.ICON_MAP={...o.C.ICON_MAP,...c};function u(d){return(0,I.jsx)(o.C,{...d})}},24094:(He,ee,e)=>{"use strict";e.d(ee,{$s:()=>u,GO:()=>v,H0:()=>i,Jr:()=>b,LY:()=>p,Ny:()=>g,Ps:()=>M,RN:()=>t,Sv:()=>l,UD:()=>s,Wu:()=>h,gB:()=>S,i7:()=>f,it:()=>_,iv:()=>I,j$:()=>x,kS:()=>a,yF:()=>C});var n=e(67787),r=e(21066),c=e(51090),o=e(75810);const I=n.Ay.div.withConfig({displayName:"style__StyledInteractionFloatPanel",componentId:"sc-108t05d-0"})(["position:absolute;width:","px;height:",";z-index:108;background-color:",";box-shadow:rgba(0,0,0,0.1) 0px 2px 8px 0px;color:",";border:1px solid ",";display:flex;flex-direction:column;border-radius:8px;.big-container{display:flex;flex:1;height:calc(100% - 41px);.tree-container{width:240px;display:flex;flex-direction:column;height:100%;}.editor-container{width:240px;border-left:1px solid ",";height:100%;overflow:visible;}}.tree-float-resizer{position:absolute;width:100%;height:2px;&.top{top:0px;cursor:ns-resize;}&.bottom{bottom:-1px;cursor:ns-resize;}}"],w=>w.panelWidth,w=>w.panelHeight?w.panelHeight+"px":"unset",w=>w.theme.color_bg_white,w=>w.theme.color_text_L1,w=>w.theme.color_bg_border_01,w=>w.theme.color_bg_border_01),u=n.Ay.div.withConfig({displayName:"style__StyledInteractionEditorFloat",componentId:"sc-108t05d-1"})(["position:absolute;z-index:5;width:240px;background-color:",";box-shadow:rgba(0,0,0,0.1) 0px 2px 8px 0px;color:",";border:1px solid ",";border-radius:8px;"],w=>w.theme.color_bg_white,w=>w.theme.color_text_L1,w=>w.theme.color_bg_border_01),d=(0,n.AH)(["cursor:pointer;width:100%;height:32px;position:relative;display:flex;align-items:center;color:",";&.hovered{background:",";border-radius:6px;.hover-more{background:",";}}&.active{background:",";border-radius:6px;font-weight:500;.hover-more{background:",";}}.rn-list-item{height:100%;}.hover-more{position:absolute;right:4px;top:4px;z-index:2;}&.disabled{color:",";.hover-more{color:",";}.expression-cell{color:"," !important;}.var-tag,.expression-cell.name-cell{color:",";svg{color:",";rect{stroke:",";}}}.suffix-name{color:",";}}.interaction-icon{margin-right:4px;flex-shrink:0;}"],w=>w.theme.color_text_L1,w=>w.theme.color_btn_secondary_hover,w=>w.theme.color_btn_secondary_hover,w=>w.theme.color_bg_select02,w=>w.theme.color_bg_select02,w=>w.theme.color_text_disabled01,w=>w.theme.color_text_L1,w=>w.theme.color_text_disabled01,w=>w.theme.color_text_disabled01,w=>w.theme.color_text_disabled01,w=>w.theme.color_text_disabled01,w=>w.theme.color_text_disabled01),C=n.Ay.div.withConfig({displayName:"style__StyledInteractionTreeActionNodeUI",componentId:"sc-108t05d-2"})(["padding-left:28px;",";.rn-list-item{display:flex;align-items:center;}.strange-name{",";&.valid{max-width:166px;&.isShowMore{max-width:156px;}}&.is-ui-invalid{max-width:156px;&.isShowMore{max-width:132px;}}&.inValid{max-width:100px;}margin-right:2px;}.no-target-span{color:",";margin-right:2px;}&.disabled{.no-target-span{color:",";}}.branch-icon{color:",";width:20px;height:22px;flex-shrink:0;}.var-display-name{display:flex;align-items:center;flex-wrap:nowrap;svg{flex-shrink:0;}.var-tag{background-color ",";}.is-readonly{padding:0 !important;width:unset !important;border:none;font-weight:normal;margin-left:4px;cursor:pointer;.DraftEditor-root{height:inherit;}.DraftEditor-editorContainer{background:transparent;border:none;.cell-wrapper{&:first-child,&:last-child{.space-cell{display:none;}}}.public-DraftStyleDefault-block{margin:0;white-space:nowrap;}.name-cell{background-color ",";}}}}"],d,c.L9,w=>w.theme.color_text_L2,w=>w.theme.color_text_disabled01,w=>w.theme.color_text_disabled01,w=>w.theme.color_bg_white,w=>w.theme.color_bg_white),h=n.Ay.div.withConfig({displayName:"style__StyledInteractionTreeTriggerNodeUI",componentId:"sc-108t05d-3"})(["",";width:100%;.trigger-collapse{margin-left:8px;margin-right:4px;}"],d),i=n.Ay.div.withConfig({displayName:"style__StyledInteractionTreeTriggerNodeContainerUI",componentId:"sc-108t05d-4"})(["margin-bottom:",";border-radius:6px;&.hovered{background:",";> .rn-list-item{background:",";border-top-left-radius:6px;border-top-right-radius:6px;}}&.active{background:",";> .rn-list-item{font-weight:500;background:",";border-top-left-radius:6px;border-top-right-radius:6px;.fw-normal{font-weight:400;}}}&.collapsed{.trigger-collapse{transform:rotate(270deg);}> .rn-list-item{border-bottom-left-radius:6px;border-bottom-right-radius:6px;}}.no-target-span{color:",";margin-right:2px;}&.disabled{.listener .listener-trigger-tag,.no-target-span{color:",";}}"],w=>w.isTrigger?"8px":void 0,w=>w.theme.color_bg_card,w=>w.theme.color_btn_secondary_hover,w=>w.theme.color_bg_select03,w=>w.theme.color_bg_select02,w=>w.theme.color_text_L2,w=>w.theme.color_text_disabled01),f=n.Ay.div.withConfig({displayName:"style__StyledNoLinks",componentId:"sc-108t05d-5"})(["display:flex;flex-direction:column;align-items:center;padding-top:30px;img{width:129px;margin:20px 0;}.tips{margin:0px 24px;color:",";text-align:center;}"],w=>w.theme.color_text_L3),p=n.Ay.div.withConfig({displayName:"style__StyledLinkSettings",componentId:"sc-108t05d-6"})(["flex:1;min-height:380px;overflow:hidden;display:flex;flex-direction:column;.link-list{height:calc(100% - 44px);padding:0 16px;overflow-x:hidden;overflow-y:auto;scroll-behavior:smooth;}"]),s=n.Ay.div.withConfig({displayName:"style__StyledInteractionTreeUI",componentId:"sc-108t05d-7"})(["height:calc(100% - 44px);overflow-y:auto;overflow-x:hidden;padding:0 2px 0 8px;margin-top:-16px;&::before{content:'';position:sticky;width:100%;height:16px;display:flex;top:0;background-color:",";z-index:2;}.container2{position:relative;}&.is-dragging{pointer-events:none;}&::-webkit-scrollbar{display:none;}&:hover::-webkit-scrollbar{display:block;}.dnd .indicator .indicator-line{width:200px;}"],w=>w.theme.color_bg_white),l=(0,n.Ay)(r.Ay).withConfig({displayName:"style__StyledMenuContent",componentId:"sc-108t05d-8"})(["ul{min-width:64px;}ul{padding:8px;border-radius:8px;border:1px solid ",";color:",";background:",";box-shadow:",";li.MenuItem{a{border-radius:4px;background:",";color:",";svg path{fill:",";}.right-arrow svg > path{fill:",";}.shortfont kbd{color:",";}}&:not(.disabled).active{a{background:",";}}&.disabled{a{color:",";svg path{fill:",";}.shortfont kbd{color:",";}}}}}"],w=>w.theme.color_bg_border_01,w=>w.theme.color_text_L0,w=>w.theme.color_bg_white,w=>w.theme.shadow_m,w=>w.theme.color_bg_white,w=>w.theme.color_text_L0,w=>w.theme.color_text_L0,w=>w.theme.color_text_L2,w=>w.theme.color_text_L2,w=>w.theme.color_btn_secondary_hover,w=>w.theme.color_text_disabled01,w=>w.theme.color_text_disabled01,w=>w.theme.color_text_disabled01),_=n.Ay.header.withConfig({displayName:"style__StyledEditorHeader",componentId:"sc-108t05d-9"})(["color:",";font-weight:500;.container{display:flex;height:40px;align-items:center;width:100%;padding:0 16px;font-weight:500;font-family:'PingFangSC';.close{margin-left:4px;}.icon-container{display:flex;position:absolute;right:16px;}}.divider{border-top:1px solid ",";}"],w=>w.theme.color_text_L1,w=>w.theme.color_bg_border_01),b=n.Ay.div.withConfig({displayName:"style__StyledEmptyPanel",componentId:"sc-108t05d-10"})(["display:flex;flex-direction:column;align-items:center;padding-top:30px;color:",";flex:1;.secBtn{width:204px;color:",";&:hover,&:active{color:",";}margin-bottom:8px;}img{width:129px;margin:20px 0;}.tip0{margin-bottom:6px;}.tip1{margin-bottom:20px;}&.treePanelFloat{.tip1{margin-top:50px;}}"],w=>w.theme.color_text_L3,w=>w.theme.color_text_L2,w=>w.theme.color_text_L1),a=n.Ay.div.withConfig({displayName:"style__StyledQuickDisplayContent",componentId:"sc-108t05d-11"})(["display:flex;align-items:center;font-weight:400;.arrow{margin:0 8px;}.s-icon{margin-right:4px;}"]),M=n.Ay.div.withConfig({displayName:"style__StyledDisableTreePanelContainer",componentId:"sc-108t05d-12"})(["height:400px;.no-ita-content{height:inherit;justify-content:center;height:calc(100% - 41px);img{margin-top:0px;}}"]),x=n.Ay.div.withConfig({displayName:"style__StyledSetVariableDispalyName",componentId:"sc-108t05d-13"})(["display:inline-flex;flex:1;align-items:center;flex-wrap:wrap;> .var-tag{display:inline-flex;align-items:center;height:20px;padding:0 4px;border-radius:4px;border:1px solid ",";color:",";font-weight:normal;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:0;margin-right:4px;}.expression-cell{color:",";}.name-cell,.var-tag{background:transparent;}.is-readonly{border:none;padding:0 !important;width:auto !important;height:auto !important;min-height:auto !important;font-weight:normal;cursor:pointer;}"],w=>(0,o.oU)(w,"color_bg_border_02"),w=>(0,o.oU)(w,"color_text_L1"),w=>(0,o.oU)(w,"color_text_L1")),g=n.Ay.div.withConfig({displayName:"style__StyledTriggerName",componentId:"sc-108t05d-14"})(["display:flex;align-items:center;flex-wrap:wrap;.ita-trigger-name{white-space:nowrap;&.margin-right-4{margin-right:4px;}}"]),S=n.Ay.div.withConfig({displayName:"style__StyledSetTriggerSuffixName",componentId:"sc-108t05d-15"})(["display:inline-flex;align-items:center;color:",";&.listener{display:flex;flex-wrap:nowrap;align-items:center;max-width:146px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;.listener-trigger-tag{height:20px;padding:0 4px;border-radius:4px;border:1px solid ",";color:",";font-weight:normal;margin-right:4px;background-color:",";max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&.is-var{max-width:142px;}&.tarAttrName{flex-shrink:0;}}}"],w=>w.theme.color_text_L2,w=>w.theme.color_bg_border_02,w=>w.theme.color_text_L1,w=>w.theme.color_bg_white),t=(0,n.DU)(["#IBOT_TOOLTIP_ROOT{.public-DraftStyleDefault-block{white-space:wrap !important;}.var-display-name{.var-tag,.expression-cell{border-color:rgba(255,255,255,0.19);color:rgba(255,255,255,0.91);}.builtinVar-cell,.wattr-cell{background:transparent;}.space-cell-wrapper{width:4px;}.DraftEditor-root{height:auto;}.is-readonly{padding:0 !important;}}.listener-trigger-tag{border:1px solid rgba(255,255,255,0.19);color:rgba(255,255,255,0.91);background:transparent;height:20px;padding:0 4px;border-radius:4px;font-weight:normal;margin-right:4px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}"]),v=(0,n.DU)(["#DRAG_SORT_EVENT_ROOT{.dragging-item{width:232px;}}"])},24374:(He,ee,e)=>{"use strict";e.d(ee,{C:()=>M,Y:()=>a});var n=e(38502),r=e(18381),c=e(53732),o=e.n(c),I=e(17307),u=e(63763),d=e(4410),C=e(50353),h=e(93971),i=e(70933),f=e(13846),p=e(4179),s=e(5438),l=e(72214);const _=x=>{let{type:g,rootProject:S,screenMeta:t,showDragMode:v,isAdsorbentReferenceLine:w,popupsPanelName:k,callback:W}=x;return K=>{var G,$,P;const E=(0,u.gu)({type:g,screen:t}),H=(G=document.getElementById(k))==null?void 0:G.getBoundingClientRect();(0,d.dD)({e:K,items:[E],width:($=E.width)!=null?$:E.w,height:(P=E.height)!=null?P:E.h,doNotCreateRect:H,rootProject:S,showDragMode:v,isAdsorbentReferenceLine:w,callback:W})}},b=function(x,g,S,t,v,w,k,W,K){return K===void 0&&(K=""),()=>{const G=(0,u.gu)({type:x,screen:w});(0,d.Q7)([G],G.width||G.h,G.height|G.h),(0,h.Yp)({source:""+k+h.k8.DoubleClick,widgetName:(0,h.KR)(g),groupCid:t,type:x,popupsPanelName:W,keyword:K})}},a=(0,n.memo)(x=>{var g;const{name:S,type:t,icon:v,keyIcon:w,groupCid:k,rootProject:W,screenMeta:K,showDragMode:G,isAdsorbentReferenceLine:$,popupsPanelName:P,source:E,keyword:H="",dispatch:O}=x,V=(0,r.d4)(i.wq),Q=(0,f.e1)(),N=Y=>_({type:t,rootProject:W,screenMeta:K,showDragMode:G,isAdsorbentReferenceLine:$,popupsPanelName:P,callback:()=>{(0,h.Yp)({source:""+E+h.k8.Drag,widgetName:(0,h.KR)(S),groupCid:k,type:t,popupsPanelName:P,keyword:H})}})(Y),L=Y=>{A!=null&&A.current||Q(Y,t)},U=Y=>b(t,S,O,k!=null?k:"",W,K,E,P,H)(),{isMoveAfterClick:A,isDragging:D,handleMouseDown:B,handleClick:j,handleDoubleClick:F}=(0,p.A)({onMouseDown:N,onClick:L,onDoubleClick:U});return(0,l.jsxs)(s.X,{"data-guide-id":S,className:o()("widget-item",{"deluxe-widget":(0,C.X3)(t)},{active:D||t===((V==null?void 0:V.metaType)||(V==null?void 0:V.type))}),onMouseDown:B,onClick:j,onDoubleClick:F,children:[(0,l.jsx)("div",{className:o()("widget-icon-wrapper","w_"+v),children:(0,l.jsx)(I.C,{name:"art_board/widget/"+v})}),(0,l.jsx)("span",{children:((g=I18N.w[S])==null?void 0:g.replace("Chart",""))||S}),w&&(0,l.jsx)(I.C,{className:"widget-key",name:"art_board/widget/"+v+"/"+w,isColorPure:!0})]})}),M=(0,n.memo)(x=>{const g=(0,r.d4)(i.L8),S=(0,f.e1)(),{template:t,showDragMode:v,isAdsorbentReferenceLine:w,popupsPanelName:k,dispatch:W}=x,K=Q=>{var N;const L=(N=document.getElementById(k))==null?void 0:N.getBoundingClientRect();(0,d.ow)({e:Q,template:t,doNotCreateRect:L,callback:()=>{W({type:"state-panel:set:show",payload:{key:"panelStateShow",show:!0}}),(0,h.XG)("\u5DE6\u4FA7\u5E38\u7528\u9762\u677F")},showDragMode:v,isAdsorbentReferenceLine:w})},G=Q=>{P!=null&&P.current||S(Q,t.type,t.data)},$=async Q=>{await(0,d.lc)(Q,t),W({type:"state-panel:set:show",payload:{key:"panelStateShow",show:!0}})},{isMoveAfterClick:P,isDragging:E,handleMouseDown:H,handleClick:O,handleDoubleClick:V}=(0,p.A)({onMouseDown:K,onClick:G,onDoubleClick:$});return(0,l.jsxs)(s.X,{className:o()("widget-item",{active:g===(t==null?void 0:t.data)||E}),onMouseDown:H,onClick:O,onDoubleClick:V,"data-guide-id":t.name,children:[(0,l.jsx)("div",{className:o()("widget-icon-wrapper","w_"+t.svg_icon),children:(0,l.jsx)(I.C,{name:t.icon})}),(0,l.jsx)("span",{children:t.name})]})})},24640:(He,ee,e)=>{"use strict";e.d(ee,{CF:()=>C,GF:()=>o,ON:()=>i,b4:()=>f,cm:()=>u,jD:()=>d});var n=e(20089),r=e(11619),c=e(73658);const o=p=>{const s={};p.forEach(_=>{const b=sdkStore.getHotItem(_),a=b.sup;s[a]?s[a].cids.push(_):s[a]={gid:a,cids:[_],siblings:sdkStore.getSubHotItemList(b.sup).filter(x=>!(0,c.yT)(x.hotAttr.type))}});const l=[];return Object.entries(s).forEach(_=>{let[,b]=_;return l.push(b)}),l},I=p=>p.sort((s,l)=>s.data.zIndex-l.data.zIndex),u=p=>{const s=sdkStore.locUpRBPageKey(p[0]),l={};let _=0;sdkStore.getHotItem(p[0]).hotAttr.type!==n.x.Canvas&&(_=(0,r.ZS)(p[0])),_===0?p.forEach(a=>{const M=sdkStore.getHotItem(a),x=M.sup;l[x]?l[x].cids.push(a):l[x]={gid:x,cids:[a],siblings:sdkStore.getSubHotItemList(M.sup).filter(S=>S.hotAttr.type===n.x.WSticky?(0,r.ZS)(S.key)===0:S.hotAttr.type===n.x.Canvas)}}):p.forEach(a=>{const M=(0,r.kP)(a),x=l[M],g=(0,r.iq)(s,M);if(x)l[M].cids.push(a);else{const S=[];for(const t of g)S.push(sdkStore.getSubHotItemList(a).find(v=>v.key===t.key));l[M]={gid:M,cids:[a],siblings:S}}});const b=[];return Object.entries(l).forEach(a=>{let[,M]=a;return b.push(M)}),b},d=(p,s,l)=>{const _=JSON.parse(JSON.stringify(s)),b=(M,x)=>{for(const g of M){if(g.cid===x.sup)return g.subFolder=g.subFolder||[],g.subFolder.unshift(x),!0;if(g.subFolder&&g.subFolder.length>0&&b(g.subFolder,x))return!0}return!1};b(_,p)||_.unshift(p);const a=function(M,x){return x===void 0&&(x=0),I(M).map((S,t)=>{const v=x+t;return S.data.zIndex!==v&&(l(S.cid,{zIndex:v}),S={...S,data:{...S.data,zIndex:v}}),S.subFolder&&S.subFolder.length>0&&(S.subFolder=a(S.subFolder,v+1)),S})};return a(_)},C=(p,s,l)=>{const _=[...p,...s];return I(_.map((b,a)=>b.data.zIndex!==a?(l(b.cid,{zIndex:a}),{...b,data:{...b.data,zIndex:a}}):b))},h=p=>p.every(l=>{let{position:_}=l;return!isNaN(_)})?p.sort((l,_)=>l.position-_.position):p.sort((l,_)=>_.created_at-l.created_at),i=(p,s,l)=>{const _=[p,...s];return h(_.map((b,a)=>b.position!==a?(l(b.cid,{position:a}),{...b,position:a}):b))},f=(p,s,l)=>{const _=[p,...s];return h(_).map((a,M)=>a.position!==M?(l(a.cid,{position:M}),{...a,position:M}):a)}},25067:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>s});var n=e(95549),r=e(25582),c=e.n(r),o=e(38502),I=e(53732),u=e.n(I),d=e(17307),C=e(83199),h=e(67787),i=e(15400);const f=h.Ay.a.withConfig({displayName:"styles__StyledIconBox",componentId:"sc-1pg70qp-0"})(["position:relative;",";height:32px;width:38px;border-radius:6px;transition:all 0.2s ease-in-out;.box-dropdown{margin-left:4px;}&:not(.disabled):not(.active):not(:active):hover{background-color:",";}&:not(.disabled):active,&:not(.disabled).active{background-color:",";}&.disabled{cursor:not-allowed;.svg-icon{color:",";}}&.is-dropdown{height:32px;width:48px;}"],i.om,l=>l.theme.color_btn_secondary_hover,l=>l.theme.color_btn_secondary_active,l=>l.theme.color_text_disabled01);var p=e(72214);class s extends o.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleClick",_=>{const{name:b,disabled:a,tempDisabled:M,onClick:x}=this.props;if(a){M&&MB.notice({text:I18N.Common.feature_is_not_available,type:"warning"});return}x&&x(b)}),(0,n.A)(this,"handleMouseDown",_=>{const{name:b,disabled:a,onMouseDown:M}=this.props;a||M&&M(_,b)}),(0,n.A)(this,"handleDoubleClick",()=>{const{name:_,disabled:b,onDoubleClick:a}=this.props;b||a&&a(_)})}render(){const{svgIconName:_,disabled:b,active:a,isShowDropDown:M,className:x,toolTipName:g,dropDownIconName:S,toolTipDistance:t,size:v,direction:w,enterHoverTime:k,isColorPure:W}=this.props;return(0,p.jsx)(C.A,{content:g,direction:w||"down",distance:t,enterHoverTime:k,children:(0,p.jsxs)(f,{className:u()(x,"toolbar-icon-item",{disabled:b,active:a,"is-dropdown":M}),onClick:this.handleClick,onMouseDown:this.handleMouseDown,onDoubleClick:this.handleDoubleClick,children:[(0,p.jsx)(d.C,{className:_.replace("/","-"),name:_,size:v,isColorPure:W}),M&&(0,p.jsx)(d.C,{className:"box-dropdown "+S.replace("/","-"),name:S})]})})}}(0,n.A)(s,"propTypes",{svgIconName:c().string,active:c().bool,disabled:c().bool,tempDisabled:c().bool,isShowDropDown:c().bool,className:c().string,name:c().string,toolTipName:c().oneOfType([c().string,c().object]),toolTipDistance:c().number,onClick:c().func,onMouseDown:c().func,onDoubleClick:c().func,dropDownIconName:c().string,size:c().number,direction:c().string,enterHoverTime:c().number,isColorPure:c().bool}),(0,n.A)(s,"defaultProps",{isShowDropDown:!1,toolTipDistance:0})},25409:(He,ee,e)=>{"use strict";e.d(ee,{l:()=>s});var n=e(38502),r=e(53732),c=e.n(r),o=e(62987),I=e(44421),u=e(88463),d=e(11032),C=e(27142),h=e(16013),i=e(72214);const f=(0,i.jsx)("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",children:(0,i.jsx)("path",{fill:"#8B8C8F",stroke:"#8B8C8F",strokeWidth:".12",d:"m6.28 3.11-.01.04Q5.94 4.6 5.3 5.4a2.4 2.4 0 0 1-1.82.9h-.35c-.84.02-1.52.72-1.52 1.58v4.96c0 1.05.84 1.9 1.88 1.9h6.44a3.2 3.2 0 0 0 3.01-2.14l1.34-3.74-.05-.02.05.02a1.9 1.9 0 0 0-1.77-2.53H9.8q.38-1.69.53-2.45l-.06-.01h.06c.13-.66.02-1.3-.29-1.79-.31-.48-.84-.8-1.53-.8a2 2 0 0 0-1.44.47q-.52.46-.78 1.37Zm1.49-.5q.25-.22.73-.22.43.01.63.35.2.35.1.9-.18.9-.68 3.11c-.08.35.18.69.54.69h3.42q.13 0 .26.04c.4.15.6.59.46 1l.05.01-.05-.02-1.34 3.74.06.02-.06-.02c-.3.84-1.08 1.4-1.96 1.4H3.49a.77.77 0 0 1-.76-.78V7.87c0-.25.2-.45.44-.46h.34a3.5 3.5 0 0 0 2.66-1.32q.8-1 1.18-2.67.17-.59.42-.8Zm-4.6 4.74h.34a3.5 3.5 0 0 0 2.61-1.3z"})}),p=(0,i.jsx)("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",children:(0,i.jsx)("path",{fill:"#266FFF",stroke:"#266FFF",d:"M13.15 6.41q-.31-.12-.64-.1H9.79l.53-2.46c.12-.62.01-1.26-.32-1.8a1.8 1.8 0 0 0-1.53-.8 2 2 0 0 0-1.44.47 3 3 0 0 0-.78 1.37q-.24 1.23-1 2.24-.32.4-.76.65-.49.23-1 .25h-.36A1.56 1.56 0 0 0 1.6 7.85v5a1.9 1.9 0 0 0 1.88 1.9h6.44a3.2 3.2 0 0 0 3-2.14l1.34-3.74a1.9 1.9 0 0 0-1.12-2.46"})});class s extends n.PureComponent{renderModalStar(){const{resources:_,onStartTemplates:b,onFavoriteTemplates:a,from:M,onSearch:x}=this.props,g=new C.H(_.liked_count).getDisplayStr(),S=new C.H(_.star_count).getDisplayStr();return(0,i.jsxs)("div",{className:"header-right",children:[(0,i.jsxs)("div",{className:"modal-detail-header-action",children:[(0,i.jsx)("div",{className:"divider"}),!ENV.IS_ON_PREMISES&&(0,i.jsxs)("div",{className:"liked "+(_.is_liked?"is-actived":""),onClick:()=>a==null?void 0:a(_),children:[_.is_liked?p:f,(0,i.jsx)("span",{className:"nums",children:g})]}),(0,i.jsxs)("div",{className:"stared "+(_.is_star?"is-actived":""),onClick:()=>b==null?void 0:b(_),children:[(0,i.jsx)(o.X,{isStar:_.is_star}),!ENV.IS_ON_PREMISES&&(0,i.jsx)("span",{className:"nums",children:S})]})]}),(0,i.jsx)(u.A,{className:"search-bar detail-search-bar",value:"",placeholder:M==="template-modal"?I18N.templateModal.search_bar_placeholder:I18N.widgetModal.search_bar_placeholder,onSearch:x})]})}render(){const{showSearch:_,from:b,showStar:a=!0,resources:M,onStartTemplates:x,onBack:g,onSearch:S}=this.props,{title:t}=M,{isStar:v}=(0,d.f9)(M),w=["template-modal","icon-modal"].includes(b!=null?b:"");return(0,i.jsxs)(h.Wp,{className:c()("resources-header",b),children:[(0,i.jsx)(I.H,{title:t,resources:M,showSearch:_,onBack:g,onSearch:S,from:b}),w&&M!=null&&M.cid?this.renderModalStar():(0,i.jsx)(i.Fragment,{children:a&&(0,i.jsx)(o.X,{isStar:v,onClick:()=>x==null?void 0:x(M)})})]})}}},26842:(He,ee,e)=>{"use strict";e.d(ee,{FC:()=>u,WT:()=>r,Xh:()=>o,_j:()=>I,eK:()=>d,qf:()=>c});var n=e(67787);const r=(0,n.AH)(["display:flex;align-items:center;justify-content:space-between;height:32px;margin-bottom:8px;.item-title{color:",";}.item-input{width:144px;height:28px;border:1px solid ",";border-radius:6px;padding:5px 8px;background:",";color:",";&:hover{border-color:",";}&:focus,&.focus,&.is-active{outline:1px solid ",";border-color:",";background:",";color:",";outline-offset:0;}&::placeholder{color:",";}}"],C=>C.theme.color_text_L3,C=>C.theme.color_bg_border_02,C=>C.theme.color_bg_white,C=>C.theme.color_text_L1,C=>C.theme.color_btn_primary_normal,C=>C.theme.color_btn_primary_normal,C=>C.theme.color_btn_primary_normal,C=>C.theme.color_bg_white,C=>C.theme.color_text_L1,C=>C.theme.color_text_L3),c=(0,n.AH)(["display:flex;width:64px;height:28px;padding:6px 8px;justify-content:center;align-items:center;border-radius:6px;background:",";color:",";margin-left:auto;&.is-disabled{cursor:not-allowed;background:",";}&:hover:not([class*='is-disabled']){background:",";}&:active:not([class*='is-disabled']){background:",";}"],C=>C.theme.color_btn_primary_normal,C=>C.theme.color_text_btn,C=>C.theme.color_btn_primary_disabled,C=>C.theme.color_btn_primary_hover,C=>C.theme.color_btn_primary_clicked),o=n.Ay.div.withConfig({displayName:"styles__StyledTipsContent",componentId:"sc-11hxe4w-0"})(["color:rgba(255,255,255,0.45);display:flex;flex-direction:column;max-width:196px;color:",";span.text{color:",";}"],C=>C.theme.color_text_L3,C=>C.theme.color_text_btn),I=(0,n.AH)(["border-radius:6px;background:",";padding:6px 10px;display:flex;justify-content:center;align-items:center;color:",";min-width:64px;min-height:28px;&:not(.disabled):hover{background:",";cursor:pointer;}&:not(.disabled):active{background:",";cursor:pointer;}&.disabled{background:",";color:",";}"],C=>C.theme.color_btn_primary_normal,C=>C.theme.color_text_btn,C=>C.theme.color_btn_primary_hover,C=>C.theme.color_btn_primary_clicked,C=>C.theme.color_btn_primary_disabled,C=>C.theme.color_text_disabled02),u=(0,n.AH)(["border-radius:6px;background:",";border:1px solid ",";padding:6px 10px;display:flex;justify-content:center;align-items:center;color:",";min-width:64px;min-height:28px;&:not(.disabled):hover{background:",";cursor:pointer;}&:not(.disabled):active{background:",";cursor:pointer;}&.disabled{color:",";}"],C=>C.theme.color_bg_white,C=>C.theme.color_bg_border_02,C=>C.theme.color_text_L1,C=>C.theme.color_btn_secondary_hover,C=>C.theme.color_btn_secondary_active,C=>C.theme.color_text_disabled02),d=(0,n.AH)(["border-radius:4px;cursor:pointer;&:not(.is-active):hover{background-color:",";}&:active{background:",";}&.is-active{background-color:",";}"],C=>C.theme.color_btn_secondary_hover,C=>C.theme.color_btn_secondary_active,C=>C.theme.color_btn_secondary_active)},27086:(He,ee,e)=>{"use strict";e.d(ee,{E:()=>d});var n=e(38502),r=e(23089),c=e(68033),o=e(67787);const I=o.Ay.section.withConfig({displayName:"styles__StyledSinglePanelScroll",componentId:"sc-1v0mahd-0"})(["width:240px;color:",";display:flex;align-items:center;padding:0 14px;justify-content:space-between;.left-label{height:14px;color:",";line-height:14px;white-space:nowrap;margin-right:40px;&:lang(en){margin-right:0;}}.scrollSettingSelect{width:140px;margin-left:auto;}"],C=>C.theme.color_text_L2,C=>C.theme.color_text_L2);var u=e(72214);const d=(0,n.memo)(C=>{let{scroll:h,handleChange:i}=C;const f=p=>{i(parseInt(p),"scroll")};return(0,u.jsxs)(I,{className:"height-32",children:[(0,u.jsx)("label",{className:"left-label",children:I18N.SettingPanel.singlePanelScroll.title}),(0,u.jsx)("div",{className:"right-content",children:(0,u.jsx)(r.mq,{className:"scrollSettingSelect",optionList:c.SK.map(p=>({...p,label:I18N.SettingPanel.singlePanelScroll[p.label]})),value:h||c.Ci.hide,onChange:f})})]})})},27142:(He,ee,e)=>{"use strict";e.d(ee,{H:()=>n});class n{constructor(c){this.value=c}getDisplayStrLessThan4(){return this.value.toString()}getDisplayStrEqualTo4(){return(this.value/1e3).toFixed(1)+"k"}getDisplayStrMoreThan4(){return(this.value/1e4).toFixed(1)+"w"}getDisplayStr(){if(this.value===void 0)return"0";const c=this.value.toString().length;if(c<=3)return this.getDisplayStrLessThan4();if(c===4)return this.getDisplayStrEqualTo4();if(c>4)return this.getDisplayStrMoreThan4()}}},27306:(He,ee,e)=>{"use strict";e.d(ee,{U:()=>a});var n=e(38502),r=e(18381),c=e(53732),o=e.n(c),I=e(39695),u=e(54449),d=e(37780),C=e(24094),h=e(21066),i=e(97974),f=e(40486),p=e(17307),s=e(67588),l=e(86594),_=e(72214);const b=(M,x)=>(0,_.jsxs)(C.kS,{children:[(0,_.jsx)("span",{children:(0,f.Oz)(M)}),(0,_.jsx)(p.C,{className:"arrow",size:12,name:"interaction/empty_new_arrow"}),(0,_.jsx)("span",{children:(0,f.Qe)(x)})]}),a=M=>{let{isEditingCombo:x,showImg:g=!0,openEditorFloat:S,uiFrom:t,interactionStore:v}=M;const w=(0,r.wA)(),k=(0,r.d4)(s.O4),{menuStatus:W,handleToggle2:K,handleClose:G}=(0,u.z)(),$=Q=>N=>{w(d.R7.command.editingInteractionCreateCommand({interactionType:Q,tNodeTrigger:"tap",openEditorFloat:S,uiFrom:t,interactionStore:v}))},P=()=>{w(d.R7.command.pasteIta({targetInteractionKey:void 0,uiFrom:t}))},E=Q=>{Q.button===2&&K(Q)},H=x?[{text:b("tap",I.O2.SetBasketCanvas),interactionType:I.O2.SetBasketCanvas},{text:b("tap",I.O2.SetVisibility),interactionType:I.O2.SetVisibility},{text:b("tap",I.O2.ScrollTo),interactionType:I.O2.ScrollTo}]:[{text:b("tap",I.O2.LinkToCanvas),interactionType:I.O2.LinkToCanvas},{text:b("tap",I.O2.OpenOverlay),interactionType:I.O2.OpenOverlay},{text:b("tap",I.O2.SetBasketCanvas),interactionType:I.O2.SetBasketCanvas}],[O,V]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{(0,l.YF)().then(Q=>{V(Q)})},[W.isOpenContextMenu]),(0,_.jsxs)(C.Jr,{onMouseDown:E,className:o()(t),children:[g&&(0,_.jsx)("img",{src:f.AQ["empty_panel_"+k],height:90}),t==="treePanelRight"&&(0,_.jsx)("p",{className:"tip0",children:I18N.SettingPanel.create_links_desc}),(0,_.jsx)("p",{className:"tip1",children:I18N.Interaction.create_tip1}),H.map((Q,N)=>(0,_.jsx)(i.Yr,{onClick:$(Q.interactionType),type:"secondary",size:"tiny",className:"secBtn quickCreateItaBtn",children:Q.text},N)),W.isOpenContextMenu&&(0,_.jsx)(C.Sv,{position:W.position,onClose:G,children:(0,_.jsx)(h.Dr,{text:I18N.Interaction.paste,onClick:P,disabled:!O})})]})}},27384:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>i});var n=e(95549),r=e(25582),c=e.n(r),o=e(38502),I=e(69405),u=e(72214);const{push:d}=(0,I.O)(),C=(f,p)=>{f.src=p},h="/mb-workspace/images/preview/image-load.png";class i extends o.PureComponent{constructor(){super(),(0,n.A)(this,"setElementRef",p=>this.$elem=p),this.isUnmounted=!1,this.retryTimer=null}componentDidMount(){this.props.isVisible&&this.generateSnapshotTask()}componentDidUpdate(p,s){!this.props.isVisible&&p.imageUrl===this.props.imageUrl||(clearTimeout(this.retryTimer),this.generateSnapshotTask())}componentWillUnmount(){this.isUnmounted=!0,clearTimeout(this.retryTimer)}generateSnapshotTask(p){p===void 0&&(p=5),d(async()=>{const{imageUrl:l,isVisible:_}=this.props;_&&(this.isUnmounted||C(this.$elem,l))}).catch(l=>{this.retryTimer=setTimeout(()=>{this.generateSnapshotTask(p*2)},p*1e3)})}render(){return(0,u.jsx)("img",{ref:this.setElementRef,src:h})}}(0,n.A)(i,"propTypes",{imageUrl:c().string.isRequired,isVisible:c().bool.isRequired})},27508:(He,ee,e)=>{"use strict";e.d(ee,{H:()=>n});const n=r=>{const c=i=>{const{isOrg:f,comboOpenCids:p,dispatch:s}=r,{cid:l}=i;if(Object.prototype.toString.call(p)==="[object Array]"){const _=p.includes(l)?"minus":"plus";s({type:f?"widget-panel:set:local-org-combo-expand-cids":"widget-panel:set:local-user-combo-expand-cids",payload:{oper:_,cid:l}})}},o=(i,f,p,s)=>{const{isOrg:l,dispatch:_}=r,b=s!==void 0?s:l;MB.global.experienceLoginModalHelper("isSave")||_({type:"entry:auto:change:confirm:combo_group:name",payload:{comboGroup:f,comboGroupName:i,isOrg:b,callback:p}})},I=i=>{const{dispatch:f}=r;MB.global.experienceLoginModalHelper("isSave")||f({type:"update:popups:state",payload:{editingCid:i}})},u=(i,f)=>{const{isOrg:p,dispatch:s}=r,l=f!==void 0?f:p;MB.global.experienceLoginModalHelper("isSave")||s(l?{type:"entry:remove:org-combo-group",payload:{comboGroup:i}}:{type:"entry:remove:user-combo-group",payload:{comboGroup:i}})},d=i=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{dispatch:f}=r;f({type:"entry:transfer:to:org:combo-groups",payload:{comboGroup:i}})},C=i=>{const{isOrg:f,dispatch:p}=r;p({type:"entry:auto:create:sub-combo-group",payload:{comboGroup:i,isOrg:f}})},h=(i,f)=>{const{isOrg:p,dispatch:s}=r;s({type:"entry:auto:create:combo-group-insertion",payload:{comboGroup:i,isOrg:p,insertionType:f}})};return{onToggle:c,onConfirm:o,onEdit:I,onRemove:u,onTransfer:!r.isOrg&&r.currentOrg?d:null,onAddSub:C,onAdd:h}}},27814:(He,ee,e)=>{"use strict";e.d(ee,{r:()=>r});var n="@mb2024/mb-flat-json",r="0.29.0"},27879:(He,ee,e)=>{"use strict";if(e.d(ee,{$3:()=>x,Im:()=>s,KC:()=>l,N8:()=>f,cb:()=>i,jH:()=>h,kW:()=>M,no:()=>b,v_:()=>C}),e.j!=477)var n=e(87612);var r=e(70248),c=e(20089),o=e(18630),I=e(30728),u=e(9634),d=e(50060);const C=3,h=8,i=g=>g.map(S=>{const[t,v,w,k]=sdkStore.getHotAABB(S.key),{x:W,y:K,w:G,h:$}=sdkStore.getHotBound(S.key),P={tl:{x:t,y:v},tr:{x:w,y:v},bl:{x:t,y:k},br:{x:w,y:k}};return{key:S.key,center:{x:W,y:K},boundingPoints:P,height:k-v,width:w-t,w:S,wW:G,wH:$}}),f=function(g,S,t){t===void 0&&(t=!1);const v=g.sort((K,G)=>K.boundingPoints.tl.y-G.boundingPoints.tl.y)[0],w=g.sort((K,G)=>K.center.y-G.center.y).filter(K=>K.key!==v.key),k=[{rowH:v.height,centerY:v.center.y,items:[v]}];let W=S;for(const K of w){const{height:G,center:{y:$}}=K;let P=0,E=!1;for(;P<k.length&&!E;){const{centerY:H,rowH:O}=k[P],V=H+O*.5;$<V?(k[P].items.push(K),k[P].rowH=Math.max(G,O),E=!0):P++}if(!E){const{centerY:H,rowH:O}=k[P-1],V=H+O*.5;if(W===null){const Q=Math.round(K.boundingPoints.tl.y-V);t?W=Q>=0?Q:h:W=Q}k[P]={rowH:G,centerY:K.center.y,items:[K]}}}return k.forEach(K=>{K.items.sort((G,$)=>G.boundingPoints.tl.x-$.boundingPoints.tl.x)}),{result:k,lineSpace:W}},p=function(g,S,t,v,w){v===void 0&&(v=!1),w===void 0&&(w=!1);const k=S;let W=g;if(typeof g!="number"){let P=0;const E=[];for(;P<t.length;){if(t[P].items.length>1){const H=t[P].items.map((O,V)=>{const Q=t[P].items[V+1];return Q?Math.round(Q.boundingPoints.tl.x-O.boundingPoints.tr.x):null}).filter(O=>O!==null);E.push(...H)}P++}W=_(E)}const K=[];let G=null,$=null;return t.forEach(P=>{const{rowH:E,centerY:H,items:O}=P,V=$===null?0:$+k+E*.5-H;let Q=null;O.forEach(N=>{const{key:L,center:U,boundingPoints:A,width:D,wW:B,wH:j}=N;let F=0;w||(G===null?G=A.tl.x:F=G-A.tl.x);const Y=Q===null?F:Q+(W!=null?W:h)-A.tl.x,X=w&&W!==null?0:H-U.y+V,z=I.Z.xy(Y,X),Z=I.Z.add(A.tl,z);if(Math.round(Y)!==0||Math.round(X)!==0){const J={};(0,o.Ie)(L,J);const te=[],ge={x:U.x+z.x,y:U.y+z.y,w:B,h:j};(0,o.$O)(te,L,ge,J);const pe=(0,d.vC)([L],Ce=>{var me;const be=((me=sdkStore.getHotItem(Ce))==null?void 0:me.hotAttr.type)===c.x.WTear;return be&&(0,o.Ie)(Ce,J),be});(0,u.PB)(te,L,ge,pe,J),K.push(...te)}Q=Z.x+D}),$=H+V+E*.5}),{result:t,changes:K,lineSpace:k,itemMargin:W}},s=function(g,S,t,v){v===void 0&&(v=!1);const{result:w,lineSpace:k}=f(g,t,v),{result:W,changes:K,lineSpace:G,itemMargin:$}=l(g,S,k,w,v);return{result:W,changes:K,lineSpace:G,itemMargin:$}},l=function(g,S,t,v,w){w===void 0&&(w=!1);const k=g.length===2,{result:W,changes:K,lineSpace:G,itemMargin:$}=p(S,t,v,w,k);return{result:W,changes:K,lineSpace:G,itemMargin:$}},_=function(g){if(g.length===0)return null;if(g.length===1)return g[0];let S,t=1;const v=g.reduce((w,k)=>(w[k]?w[k]++:w[k]=1,w[k]>t&&(S=k,t++),w),{});return S===void 0?g[0]>0?g[0]:h:S},b=function(g){const S=[];g.forEach(W=>W.items.length>1&&S.push(...W.items));const t=Math.min(...S.map(W=>W.width)),v=Math.round(1-t),w=Math.min(...g.map(W=>W.rowH)),k=Math.round(1-w);return{minItemMargin:v,minLineSpace:k}},a=function(g){if(g.length===2){const S=g[0].boundingPoints,t=g[1].boundingPoints,v=I.Z.average(S.tl,S.br),w=I.Z.average(t.tl,t.br);return!(v.x===w.x&&v.y===w.y)}return!1},M=(g,S)=>{const t=S.length>2,v=S.length===2&&a(g);return t||v},x=g=>g.filter(S=>{const{hotAttr:t,key:v,type:w,isLock:k}=S||{},W=(t==null?void 0:t.type)||w,K=(t==null?void 0:t.isLock)||k;return t||(0,n.p)("[fatal]: widget hotAttr is undefined",void 0,JSON.stringify(S)),W!==c.x.WSticky&&W!==c.x.WTear&&!K&&!(0,r.OO)(v)})},28306:(He,ee,e)=>{"use strict";e.d(ee,{K2:()=>i,Oc:()=>u,R9:()=>I,X_:()=>o,_Z:()=>C,le:()=>d,pq:()=>h,wP:()=>f});var n=e(3862),r=e(93971),c=e(68789);const o=p=>{let{list:s,sceTag:l,plabel:_}=p;return s.reduce((b,a,M)=>{if(a.hotAttr){const{marketTemplateSource:x={}}=a,g=a.key+"-"+(x.cid||"");b[g]={source:"\u539F\u578B\u5185\u53D1\u73B0-\u7EC4\u4EF6",template_cid:a.key,template_name:a.hotAttr.name,template_group_cid:x.cid,template_group_name:x.title,template_category:x.category,sence_tag:l,widget_categories:_.name==="all"?"\u63A8\u8350":_.name,sort:M,policy:x.policy}}return b},{})},I=p=>{let{source:s,list:l}=p;return l.reduce((_,b,a)=>{var M;const{cid:x="",title:g="",category:S="",policy:t=""}=b.marketTemplateSource||{},v=b.key+"-"+x;return _[v]={source:s==="detail"?"\u539F\u578B\u5185\u67E5\u770B\u5168\u90E8-"+r.Jj[S]:s,template_cid:b.key,template_name:(M=b.hotAttr)==null?void 0:M.name,template_group_cid:x,template_group_name:g,template_category:S,sort:a,policy:t},_},{})},u=p=>{let{source:s,list:l,igCid:_="",igName:b,policy:a}=p;return l.reduce((M,x,g)=>{const S=x.id+"-"+(x.groupCid||"");return M[S]={source:s,template_cid:x.id,template_name:x.id,template_group_cid:_||x.groupCid,template_group_name:b,template_category:n.C,sort:g,policy:a},M},{})},d=(p,s)=>p.reduce((l,_)=>{const{icons:b}=_;return b.forEach((a,M)=>{const x=a.id+"-"+(a.groupCid||"");l[x]={source:"\u539F\u578B\u5185\u53D1\u73B0-\u56FE\u6807",template_cid:a.id,template_name:a.id,template_group_cid:_.groupName,template_group_name:_.label,template_category:n.C,sort:M,policy:s}}),l},{}),C=p=>p.reduce((s,l,_)=>{const{imgs:b,tab:a,name:M}=l;return b.forEach(x=>{const g=x.asset_cid+"-"+(x.group_cid||"");s[g]={source:"\u539F\u578B\u5185\u53D1\u73B0-\u56FE\u7247",template_cid:x.asset_cid,template_name:x.name,template_group_cid:a,template_group_name:M,template_category:n.b4,sort:_,policy:c.W.Everyone}}),s},{}),h=(p,s)=>p.reduce((l,_,b)=>{const{tab:a,asset_cid:M,group_cid:x,name:g}=_,S=M+"-"+(x||"");return l[S]={source:"\u539F\u578B\u5185\u67E5\u770B\u5168\u90E8-\u56FE\u7247",template_cid:M,template_name:g,template_group_cid:a,template_group_name:s,template_category:n.b4,sort:b,policy:c.W.Everyone},l},{}),i=(p,s)=>{var l;let _={};const b=s==null||(l=s.find(a=>a.type==="search_icon_list"))==null?void 0:l.items;return b&&b.length>0&&(_=b.reduce((a,M)=>{const{data:x}=M;return x.forEach((g,S)=>{const t=g.id+"-"+(g.groupCid||"");a[t]={source:"\u539F\u578B\u5185\u641C\u7D22-\u56FE\u6807",template_cid:g.id,template_name:g.name,template_group_cid:g.groupCid,template_group_name:g.group,template_category:M.category,sort:S,policy:M.policy,keyword:p}}),a},{})),_},f=(p,s)=>{var l,_,b,a;let M={};const x=s==null||(l=s.combo_group)==null||(l=l.list)==null||(l=l.find(v=>v.cid==="search_combo_find_collapse"))==null||(l=l.list)==null||(l=l.find(v=>v.type==="search_template"))==null?void 0:l.items,g=s==null||(_=s.screen_list)==null||(_=_.list)==null||(_=_.find(v=>v.cid==="search_page_screen_collapse"))==null||(_=_.list)==null||(_=_.find(v=>v.type==="search_template"))==null?void 0:_.items,S=s==null||(b=s.icon_group)==null||(b=b.list)==null||(b=b.find(v=>v.type==="search_icon_list"))==null?void 0:b.items,t=s==null||(a=s.asset)==null||(a=a.list)==null||(a=a.find(v=>v.cid==="search_asset_find_collapse"))==null||(a=a.list)==null||(a=a.find(v=>v.type==="search_find_picture"))==null?void 0:a.items;if(x&&x.length>0){const v=x.reduce((w,k,W)=>{const K=k.mt.key+"-"+(k.currentResources.cid||"");return w[K]={source:"\u539F\u578B\u5185\u641C\u7D22-\u7EC4\u4EF6",template_cid:k.mt.key,template_name:k.mt.hotAttr.name,template_group_cid:k.currentResources.cid,template_group_name:k.currentResources.title,template_category:k.currentResources.category,sort:W,policy:k.currentResources.policy,keyword:p},w},{});M={...M,...v}}if(g&&g.length>0){const v=g.reduce((w,k,W)=>{const K=k.mt.key+"-"+(k.currentResources.cid||"");return w[K]={source:"\u539F\u578B\u5185\u641C\u7D22-\u9875\u9762",template_cid:k.mt.key,template_name:k.mt.hotAttr.name,template_group_cid:k.currentResources.cid,template_group_name:k.currentResources.title,template_category:k.currentResources.category,sort:W,policy:k.currentResources.policy,keyword:p},w},{});M={...M,...v}}if(S&&S.length>0){const v=S.reduce((w,k)=>{const{data:W}=k;return W.forEach((K,G)=>{const $=K.id+"-"+(K.groupCid||"");w[$]={source:"\u539F\u578B\u5185\u641C\u7D22-\u56FE\u6807",template_cid:K.id,template_name:K.name,template_group_cid:K.groupCid,template_group_name:K.group,template_category:k.category,sort:G,policy:k.policy,keyword:p}}),w},{});M={...M,...v}}if(t&&t.length>0){const v=t.reduce((w,k,W)=>{const K=k.asset_cid+"-"+(k.groupCid||"");return w[K]={source:"\u539F\u578B\u5185\u641C\u7D22-\u56FE\u7247",template_cid:k.asset_cid,template_name:k.name,template_group_cid:k.group_cid,template_group_name:"",template_category:n.b4,sort:W,policy:c.W.Everyone,keyword:p},w},{});M={...M,...v}}return M}},28537:(He,ee,e)=>{"use strict";e.d(ee,{wo:()=>X,_N:()=>N,Vc:()=>c.A,qK:()=>n.A});var n=e(28792),r=e(14269),c=e(6611),o=e(38502);function I(z){const Z=(0,o.useRef)(z);return Z.current=z,Z}const u=I,C=z=>{const Z=u(z);(0,o.useEffect)(()=>()=>{Z.current()},[])};function h(z){const Z=useRef(0),[J,te]=useState(z),ge=useCallback(pe=>{cancelAnimationFrame(Z.current),Z.current=requestAnimationFrame(()=>{te(pe)})},[]);return useUnmount(()=>{cancelAnimationFrame(Z.current)}),[J,ge]}const i=null;var f=e(56472),p=e(56202);const s=(z,Z)=>{if(!p.Bd)return;if(typeof z=="string")return document.querySelector(z);if(!z)return Z;let J;return(0,f.Tn)(z)?J=z():"current"in z?J=z.current:J=z,J},l=z=>z.every(Z=>{const J=s(Z);return J?J.getRootNode()instanceof ShadowRoot:!1}),_=z=>z?z.getRootNode():document,b=z=>{if(!z||!document.getRootNode)return document;const Z=Array.isArray(z)?z:[z];return l(Z)?_(s(Z[0])):document};function a(z,Z){if(z===Z)return!0;for(let J=0;J<z.length;J++)if(!Object.is(z[J],Z[J]))return!1;return!0}const g=(z=>(J,te,ge)=>{const pe=(0,o.useRef)(!1),Ce=(0,o.useRef)([]),me=(0,o.useRef)([]),be=(0,o.useRef)();z(()=>{const oe=(Array.isArray(ge)?ge:[ge]).map(ce=>s(ce));if(!pe.current){pe.current=!0,Ce.current=oe,me.current=te,be.current=J();return}if(oe.length!==Ce.current.length||!a(Ce.current,oe)||!a(me.current,te)){var he;(he=be.current)==null||he.call(be),Ce.current=oe,me.current=te,be.current=J()}}),C(()=>{var ie;(ie=be.current)==null||ie.call(be),pe.current=!1})})(o.useLayoutEffect),S=e.j!=477?g:null;function t(z){const[Z,J]=useRafState(()=>{const te=getTargetElement(z);return te?{width:te.clientWidth,height:te.clientHeight}:void 0});return useEffectWithTarget(()=>{const te=getTargetElement(z);if(!te)return;const ge=new ResizeObserver(pe=>{pe.forEach(Ce=>{const{clientWidth:me,clientHeight:be}=Ce.target;J({width:me,height:be})})});return ge.observe(te),()=>{ge.disconnect()}},[],z),Z}const v=null,w={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:p.lg?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222};var k=e(63986),W=e.n(k);const K=(z,Z,J)=>{const te=(0,o.useRef)(),ge=(0,o.useRef)(0);W()(Z,te.current)||(te.current=Z,ge.current+=1),S(z,[ge.current],J)},G=e.j!=477?K:null,$={ctrl:z=>z.ctrlKey,shift:z=>z.shiftKey,alt:z=>z.altKey,meta:z=>z.type==="keyup"?w.meta.includes(z.keyCode):z.metaKey};function P(z){return(0,f.Kg)(z)||(0,f.Et)(z)}function E(z){const Z=Object.keys($).reduce((J,te)=>$[te](z)?J+1:J,0);return[16,17,18,91,92].includes(z.keyCode)?Z:Z+1}function H(z,Z,J){if(!z.key)return!1;if((0,f.Et)(Z))return z.keyCode===Z?Z:!1;const te=Z.split(".");let ge=0;for(const pe of te){const Ce=$[pe],me=w[pe.toLowerCase()];(Ce&&Ce(z)||me&&me===z.keyCode)&&ge++}return J?ge===te.length&&E(z)===te.length?Z:!1:ge===te.length?Z:!1}function O(z,Z){return(0,f.Tn)(z)?z:P(z)?J=>H(J,z,Z):Array.isArray(z)?J=>z.find(te=>H(J,te,Z)):()=>!!z}const V=e.j!=477?["keydown"]:null;function Q(z,Z,J){const{events:te=V,target:ge,exactMatch:pe=!1,useCapture:Ce=!1}=J||{},me=u(Z),be=u(z);G(()=>{const ie=s(ge,window);if(!ie)return;const oe=ce=>{const fe=O(be.current,pe)(ce),Se=P(fe)?fe:ce.key;if(fe){var Me;return(Me=me.current)==null?void 0:Me.call(me,ce,Se)}};for(const ce of te){var he;ie==null||(he=ie.addEventListener)==null||he.call(ie,ce,oe,Ce)}return()=>{for(const re of te){var ce;ie==null||(ce=ie.removeEventListener)==null||ce.call(ie,re,oe,Ce)}}},[te],ge)}const N=e.j!=477?Q:null;function L(z,Z,J){J===void 0&&(J="click");const te=useLatest(z);useEffectWithTarget(()=>{const ge=me=>{(Array.isArray(Z)?Z:[Z]).some(ie=>{if(typeof ie=="string")return me.target.classList.contains(ie);const oe=getTargetElement(ie);return!oe||oe.contains(me.target)})||te.current(me)},pe=getDocumentOrShadow(Z),Ce=Array.isArray(J)?J:[J];return Ce.forEach(me=>pe.addEventListener(me,ge)),()=>{Ce.forEach(me=>pe.removeEventListener(me,ge))}},Array.isArray(J)?J:[J],Z)}var U=e(55244);const A=null,D=()=>{const z=useRef(A);return{appendPendingPromises:ge=>z.current=[...z.current,ge],removePendingPromise:ge=>z.current=z.current.filter(pe=>pe!==ge),clearPendingPromises:()=>z.current.map(ge=>ge.cancel())}},B=null;function j(z,Z){const J=useCancellablePromises();return[(pe,Ce)=>{J.clearPendingPromises();const me=cancellablePromise(delay(50));return J.appendPendingPromises(me),me.promise.then(()=>{J.removePendingPromise(me),z(pe,Ce)}).catch(be=>{if(J.removePendingPromise(me),!be.isCanceled)throw be.error})},(pe,Ce)=>{J.clearPendingPromises(),Z(pe,Ce)}]}const F=null,X=(z,Z)=>{(0,o.useEffect)(()=>{if(!z.current)return;const J=Z?z.current[Z]:z.current;if(!J)return;const te=ge=>{(ge.ctrlKey||ge.metaKey)&&ge.preventDefault()};return J.addEventListener("wheel",te,{passive:!1}),()=>{J.removeEventListener("wheel",te,{passive:!1})}},[])}},28652:(He,ee,e)=>{"use strict";e.d(ee,{G:()=>h});var n=e(38502),r=e(18381),c=e(55914),o=e(73442),I=e(60651),u=e(10472),d=e(95106);const C=i=>{let{editingPanelRefPage:f,isEditingCombo:p,keyTriggerItem:s}=i,l="";return f?l=f:l=(p?(0,d.n$)(sdkStore,s):(0,d.ao)(sdkStore,s))||(0,d.OV)(sdkStore,s),l},h=i=>{let{query:f="",keyTriggerItem:p}=i;const s=(0,r.d4)(I.bt),{isEditingCombo:l}=(0,r.d4)(u.r),_=C({editingPanelRefPage:s,isEditingCombo:l,keyTriggerItem:p}),b=(0,n.useCallback)(x=>new RegExp((0,c.$)(f),"i").test(x),[f]),a=(0,n.useMemo)(()=>(0,o.Tx)(_,b),[_,b]);return{targetItemOptionList:a.hotAttr.type==="wBasket"?[a]:a.subHotItemList}}},28681:(He,ee,e)=>{"use strict";e.d(ee,{MQ:()=>o,Td:()=>n,_v:()=>c});const n="use-localstorage-pagination-max-page",r="use-localstorage-settings-var-height",c="use-localstore-shortcut-fast-copy",o="local_font_size_less_12"},28792:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>c});var n=e(38502);function r(o){const I=(0,n.useRef)(o);I.current=(0,n.useMemo)(()=>o,[o]);const u=(0,n.useRef)();return u.current||(u.current=function(){for(var d=arguments.length,C=new Array(d),h=0;h<d;h++)C[h]=arguments[h];return I.current.apply(this,C)}),u.current}const c=r},29187:(He,ee,e)=>{"use strict";e.d(ee,{EG:()=>f,Gq:()=>h,Hl:()=>i,Po:()=>C,jN:()=>u,p7:()=>I,rw:()=>s,wl:()=>p});var n=e(93413),r=e(47695),c=e(34860);const o=[n.c.GUIDE_NEW_CREATE_PAGE,n.c.GUIDE_NEW_SHOW_WIDGET_LIBRARY,n.c.GUIDE_NEW_FLOW_AND_MIND,n.c.GUIDE_NEW_CREATE_LINK,n.c.GUIDE_NEW_USE_PREVIEW,n.c.GUIDE_NEW_USE_SHARE,n.c.GUIDE_NEW_USE_COMMENT],I=function(l){var _;l===void 0&&(l=null);const b=(0,r.cz)(),a=l||((_=MB)==null?void 0:_.getRootProject()),{source_upper_cid:M,parent_cid:x,scene_tag:g}=a||{},S=g==null?void 0:g.includes("axure_import"),t=["MP","PC","DS","axure_import"],v=g?g.split("-")[0]:"",k=!!ENV.IS_MO||g&&t.includes(v),W=(0,c.OB)();return(M||x||S)&&W||a&&!k&&!b},u=function(l){var _,b,a;if(l===void 0&&(l=null),!(0,r.Ge)())return{};if(!((_=MB)!=null&&(_=_.commonGuideHelper)!=null&&(_=_.getState())!=null&&_.commonGuidesHasShown))return{};const x=((b=MB)==null||(b=b.commonGuideHelper)==null||(b=b.getState())==null?void 0:b.commonGuidesHasShown)||[],g=[n.c.GUIDE_NOVICE_2309,...o].find(S=>S&&x.includes(S));return g?(g!==n.c.GUIDE_NOVICE_2309&&MB.commonGuideHelper.markGuideAsRead(n.c.GUIDE_NOVICE_2309),{isCompleted:!0}):x!=null&&x.includes(n.c.GUIDE_NOVICE_2309_START)?{isInProgress:!0}:typeof((a=MB)==null?void 0:a.getRootProject)!="function"?{}:I(l)?(setTimeout(()=>MB.commonGuideHelper.markGuideAsRead(n.c.GUIDE_NOVICE_2309),2e3),{isCompleted:!0,isShowTaskList:!0}):{isToShow:!0}},d=[n.c.GUIDE_NOVICE_2309_START,n.c.GUIDE_NOVICE_2309_STEP_2,n.c.GUIDE_NOVICE_2309_TASK_2,n.c.GUIDE_NOVICE_2309_STEP_3,n.c.GUIDE_NOVICE_2309_TASK_3,n.c.GUIDE_NOVICE_2309_STEP_4,n.c.GUIDE_NOVICE_2309_TASK_4,n.c.GUIDE_NOVICE_2309_STEP_5,n.c.GUIDE_AWARDED,n.c.GUIDE_NOVICE_2309_TASK_5,n.c.GUIDE_NOVICE_2309],C=()=>{var l;const _=((l=MB)==null||(l=l.commonGuideHelper)==null||(l=l.getState())==null?void 0:l.commonGuidesHasShown)||[];return d.every(b=>_.includes(b))?{isAllGuidesCompleted:!0}:{isAllGuidesCompleted:!1}},h=()=>{var l;const _=u();!_||!_.isToShow||(l=MB)==null||(l=l.commonGuideHelper)==null||l.tryToShowGuide(n.c.GUIDE_NOVICE_2309)},i=l=>{var _,b;const a=u();if(a!=null&&a.isCompleted||Object.keys(a).length===0)return!0;const M=((_=MB)==null||(_=_.commonGuideHelper)==null||(_=_.getState())==null?void 0:_.commonGuidesHasShown)||[],x=((b=MB)==null||(b=b.commonGuideHelper)==null||(b=b.getState())==null?void 0:b.commonGuidesToBeShown)||[];return!M.includes("GUIDE_NOVICE_2309")&&!x.includes("GUIDE_NOVICE_2309")?!0:M.includes(l)},f=l=>{var _,b,a;const M=((_=MB)==null||(_=_.commonGuideHelper)==null||(_=_.getState())==null?void 0:_.commonGuidesHasShown)||[],x=((b=MB)==null||(b=b.commonGuideHelper)==null||(b=b.getState())==null?void 0:b.mountGuidesMap)||new Map;M.includes(l)||x.get(n.c.GUIDE_NOVICE_2309)&&((a=MB)==null||(a=a.commonGuideHelper)==null||a.tryToContinueMountGuide(n.c.GUIDE_NOVICE_2309,l))},p=()=>{var l,_;const b=u();!(b!=null&&b.isInProgress)||!(((l=MB)==null||(l=l.commonGuideHelper)==null||(l=l.getState())==null?void 0:l.mountGuidesMap)||new Map).get(n.c.GUIDE_NOVICE_2309)||(_=MB)==null||(_=_.commonGuideHelper)==null||_.tryToCloseMountGuide(n.c.GUIDE_NOVICE_2309)},s=()=>{var l,_,b;const a=u();if(!(a!=null&&a.isToShow||a!=null&&a.isInProgress)||a!=null&&a.isCompleted||!((l=MB)!=null&&(l=l.commonGuideHelper)!=null&&(l=l.getState())!=null&&l.commonGuidesHasShown))return!1;const M=((_=MB)==null||(_=_.commonGuideHelper)==null||(_=_.getState())==null?void 0:_.commonGuidesHasShown)||[];return M.includes(n.c.GUIDE_NOVICE_2309_TIP_1)?!M.includes(n.c.GUIDE_NOVICE_2309):(!M.includes(n.c.GUIDE_NOVICE_2309)&&!M.includes(n.c.GUIDE_NOVICE_2309_START)||(b=MB)==null||(b=b.commonGuideHelper)==null||b.tryToShowGuide(n.c.GUIDE_NOVICE_2309_TIP_1),!0)}},29294:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>P});var n=e(95549),r=e(18381),c=e(38502),o=e(53732),I=e.n(o),u=e(21770),d=e(33573),C=e(3862),h=e(4410),i=e(11032),f=e(12246),p=e(93413),s=e(70933),l=e(25997),_=e(10472),b=e(67052),a=e(67588),M=e(93971),x=e(88194),g=e(16335),S=e(68863),t=e(72524),v=e(72214);const w=E=>{let{targetElement:H,getImgSrc:O,onToggleHover:V,children:Q}=E;const[N,L]=(0,c.useState)(!1),U=(0,r.d4)(a.bP),A=(0,r.d4)(b.B8),D=(0,c.useRef)(null),B=X=>{L(X),V&&V(X)},j=X=>{X.buttons===0&&B(!0)},F=()=>{clearTimeout(D.current),B(!1)},Y=X=>{X.buttons===0&&B(!0)};return(0,v.jsxs)(v.Fragment,{children:[Q(j,F),N&&(0,v.jsx)("div",{style:{display:"none"},onMouseEnter:Y,onMouseLeave:F,children:(0,v.jsx)(t.A,{layout:U,targetNode:H,getImgSrc:O,popupsPanelName:A,isAutoSize:!0})})]})};var k=e(2827),W=e(18575),K=e(85449),G=e(70812);class $ extends c.PureComponent{constructor(H){super(H),(0,n.A)(this,"setElementRef",O=>this.$elem=O),(0,n.A)(this,"updateIsVisible",async()=>{const O=this.isInBoundingClientRect();if(this.setState({isVisible:this.isInBoundingClientRect()}),O&&this.props.isRequsetMktStore){const{currentResources:V,marketTemplate:Q,mtResourceSdkStoreMap:N,dispatch:L}=this.props;if(!N.get(V.cid)){const A=new Map;A.set(V.cid,Q.projectMetaCid),await L({type:"entry:resources:set:mtSdkStore:map",payload:{mtResourceCidList:[V.cid],mtProjectMetaCidMap:A}})}}}),(0,n.A)(this,"handleOpenPaymentPage",O=>{const V=(0,f.l)(O,"","");MB.global.popupHelper.chargeAsync(V)}),(0,n.A)(this,"handleNoticeUpgrade",O=>{MB.notice({text:(0,v.jsxs)("p",{children:["You can ",(0,v.jsx)("a",{style:{color:"#fff"},onClick:()=>this.handleOpenPaymentPage(O),children:"upgrade"})," to use premium templates."]}),showClose:!0,duration:0,isReactDom:!0})}),(0,n.A)(this,"handleMouseDown",O=>{O.preventDefault();const{from:V}=this.props;if(["widget-modal","template-modal"].includes(V!=null?V:""))return;let Q=!0,N=!1;this.setState({isMoveAfterClick:!1});const L=async A=>{Q&&(N=Math.abs(A.clientX-O.clientX)>5||Math.abs(A.clientY-O.clientY)>5,N&&(this.setState({isDragging:!0}),await this.handleDown(O),Q=!1))},U=()=>{Q=!1,this.setState({isMoveAfterClick:N,isDragging:!1}),N=!1,document.removeEventListener("mousemove",L),document.removeEventListener("mouseup",U)};document.addEventListener("mousemove",L),document.addEventListener("mouseup",U)}),(0,n.A)(this,"handleDown",async O=>{var V;const{currentResources:Q,marketTemplate:N,currentEditorMode:L,ghostItemCids:U,showDragMode:A,isAdsorbentReferenceLine:D,popupsPanelName:B,currentUser:j,currentOrg:F,mtResourceSdkStoreMap:Y,dispatch:X,onPaidTemplates:z}=this.props;if(MB.global.experienceLoginModalHelper("isSave"))return;const{show:Z}=(0,i.o3)(Q,j);if(Z){if((0,K.jI)()){if(ENV.IS_MO)this.handleNoticeUpgrade(F);else{const{isMktMember:Ce}=(0,u.s)(j,MB.currentOrg);if(Ce){X({type:"modal:update:state",payload:{resourcePurchaseModal:{isOpen:!0,resources:Q,currentOrg:F,paidCallback:z}}});return}const{cid:me,title:be,category:ie}=Q,{checkoutPlace:oe,payEntrance:he}=(0,i.FS)(ie),{isMdVipTemplate:ce}=(0,i.f9)(Q),re={mode:ce?"solo":"mat",payEntrance:he,checkoutArea:"proto",checkoutPlace:oe,templateCid:me,templateName:be,templateCategory:ie};MB.global.popupHelper.chargeAsync(re);return}return}(0,k.z)()}const J=(V=document.getElementById(B))==null?void 0:V.getBoundingClientRect(),te=Y.get(Q.cid);if(!te)return;const ge=MB.getCanvasRect(),pe=MB.getScale();X({type:"modal:update:state",payload:{templateModal:{isOpen:!1}}}),(0,h.Su)({e:O,marketTemplate:N,mtSdkStore:te,doNotCreateRect:J,canvasRect:ge,scale:pe,currentEditorMode:L,ghostItemCids:U,callback:()=>{this.onRequestUpdateRecentImportResources(),this.addTrack(M.k8.Drag)},showDragMode:A,isAdsorbentReferenceLine:D})}),(0,n.A)(this,"handleGetRecentData",()=>{const{marketTemplate:{key:O,type:V},currentResources:Q,from:N}=this.props;return{isRequestRecent:!0,projectUpperType:V,projectUpperCid:Q==null?void 0:Q.cid,itemCid:O,from:N,isTrack:!0}}),(0,n.A)(this,"handleClick",async(O,V)=>{const{marketTemplate:Q,dispatch:N,from:L,currentResources:U,currentUser:A,currentOrg:D,onPaidTemplates:B,checkedSet:j,onCheckedResource:F,mtResourceSdkStoreMap:Y}=this.props,{isMoveAfterClick:X}=this.state;if(X)return;if(j&&j.size>=1){O.stopPropagation(),O.preventDefault(),F&&F(V);return}if(MB.global.experienceLoginModalHelper("isSave"))return;const{show:z}=(0,i.o3)(U,A);if(z){if((0,K.jI)()){if(ENV.IS_MO)this.handleNoticeUpgrade(D);else{const{isMktMember:ge}=(0,u.s)(A,D);if(ge){N({type:"modal:update:state",payload:{resourcePurchaseModal:{isOpen:!0,resources:U,currentOrg:D,paidCallback:B}}});return}const{cid:pe,title:Ce,category:me}=U,{checkoutPlace:be,payEntrance:ie}=(0,i.FS)(me),{isMdVipTemplate:oe}=(0,i.f9)(U),he={mode:oe?"solo":"mat",payEntrance:ie,checkoutArea:"proto",checkoutPlace:be,templateCid:pe,templateName:Ce,templateCategory:me};MB.global.popupHelper.chargeAsync(he);return}return}(0,k.z)()}const Z=Y.get(U.cid);if(!Z)return;const J=this.handleGetRecentData(),te=[[[{...Q,recent:J}],Z]];N({type:"entry:resources:quick:create:template",payload:{data:te}}),L==="widget-modal"?(N({type:"modal:update:state",payload:{widgetModal:{isOpen:!1}}}),N({type:"widget-modal:reset:state"})):L==="template-modal"&&N({type:"modal:update:state",payload:{templateModal:{isOpen:!1}}})}),(0,n.A)(this,"handleCreate",async(O,V)=>{const{currentResources:Q,marketTemplate:N,currentUser:L,currentOrg:U,mtResourceSdkStoreMap:A,dispatch:D,onPaidTemplates:B,from:j,checkedSet:F,onCheckedResource:Y}=this.props;if(O.persist(),O.stopPropagation(),["widget-modal","template-modal"].includes(j!=null?j:"")){if(F&&(F==null?void 0:F.size)>=1){Y&&Y(V);return}return}if(MB.global.experienceLoginModalHelper("isSave"))return;const{show:X}=(0,i.o3)(Q,L);if(X){if((0,K.jI)()){if(ENV.IS_MO)this.handleNoticeUpgrade(U);else{const{isMktMember:J}=(0,u.s)(L);if(J){D({type:"modal:update:state",payload:{resourcePurchaseModal:{isOpen:!0,resources:Q,currentOrg:U,paidCallback:B}}});return}const{cid:te,title:ge,category:pe}=Q,{checkoutPlace:Ce,payEntrance:me}=(0,i.FS)(pe),{isMdVipTemplate:be}=(0,i.f9)(Q),ie={mode:be?"solo":"mat",payEntrance:me,checkoutArea:"proto",checkoutPlace:Ce,templateCid:te,templateName:ge,templateCategory:pe};MB.global.popupHelper.chargeAsync(ie)}return}(0,k.z)()}const z=MB.getScale(),Z=A.get(Q.cid);Z&&((0,h.ob)({e:O,marketTemplate:N,store:Z,scale:z}),this.onRequestUpdateRecentImportResources(),this.addTrack(M.k8.DoubleClick))}),(0,n.A)(this,"addTrack",O=>{const{onTrack:V,currentResources:Q,marketTemplate:{key:N,hotAttr:{name:L}}}=this.props;MB.commonGuideHelper.closeGuide(p.c.GUIDE_RESOURCES_SHOW),V&&V(N,O,Q,L)}),(0,n.A)(this,"onRequestUpdateRecentImportResources",()=>{const{marketTemplate:O,marketTemplate:{key:V,type:Q},currentResources:N,from:L}=this.props,U=this.handleGetRecentData();if((0,g.Cp)(U),(O==null?void 0:O.category)==="screen_list"){var A,D;const{isVipTemplate:B,isMdVipTemplate:j}=(0,i.f9)(N);G.U4.protoPageAddTrack((A=MB)==null||(A=A.user)==null?void 0:A.id,L==="template-modal"?"\u6A21\u677F\u5F39\u7A97":"\u6A21\u677F\u5DE6\u4FA7\u680F","\u9875\u9762",j?"\u539F\u578B\u4F1A\u5458\u7D20\u6750":B?"\u7D20\u6750\u4F1A\u5458\u7D20\u6750":"\u514D\u8D39",O==null||(D=O.hotAttr)==null?void 0:D.name,N==null?void 0:N.cid)}}),(0,n.A)(this,"onToggleHoverPreviewIcon",O=>{this.setState({isShowFloatPreviewPanel:O})}),(0,n.A)(this,"onShowTipsByTarget",(O,V)=>V.offsetWidth<V.scrollWidth),(0,n.A)(this,"handleOpenFolder",O=>{O.stopPropagation();const{onOpenFolder:V,currentResources:Q}=this.props;V&&V(Q)}),(0,n.A)(this,"getImgSrc",()=>{const{marketTemplate:O,isFloatPreviewMkt:V,from:Q}=this.props,{projectMetaCid:N,key:L,hotAttr:{type:U},category:A}=O,D=["widget-modal","template-modal"].includes(Q!=null?Q:""),B=(V||D)&&A===C.t_?x.BU.ZOOM_200:x.BU.ZOOM_100;return(0,d.NI)({flpakKey:N,ssKey:L,ssTaskMode:U==="rResCanvas"?x.rY.PNG_CANVAS:x.rY.PNG_PAGE,ssZoomMode:B})}),this.state={isVisible:!1,isShowFloatPreviewPanel:!1,isMoveAfterClick:!1,isDragging:!1}}componentDidMount(){const{containerRect:H}=this.props,{isVisible:O}=this.state;H&&(O||this.updateIsVisible())}componentDidUpdate(H){const{isVisible:O}=this.state;O||this.updateIsVisible()}isInBoundingClientRect(){const{containerRect:H,xContainerRect:O,preloadDistance:V=150,marketTemplate:Q}=this.props;if(!H||!this.$elem)return!1;const N=this.$elem.getBoundingClientRect(),L=N.bottom-50>H.top&&N.top-V<H.bottom;return O?L&&N.right>O.left&&N.left<O.right:L}render(){const{className:H,from:O,marketTemplate:V,currentResources:Q,isShowSign:N,isShowFolderIcon:L,isFloatPreviewMkt:U,canChecked:A,onCheckedResource:D,checkedSet:B,onOpenPreviewModal:j,createTemplatesData:F}=this.props,{isDragging:Y}=this.state,X=(0,S.F)(F),{isVisible:z,isShowFloatPreviewPanel:Z}=this.state,{key:J,category:te,hotAttr:{name:ge,type:pe},projectMetaCid:Ce}=V,me=["project_basic","screen_list"].includes(te),be=me?"wf320":void 0,ie=["widget-modal","template-modal"].includes(O!=null?O:""),oe=O==="widget-modal"?"mb-widget-modals":O==="template-modal"?"mb-template-modals":"",he=I()(H,O,{active:(X==null?void 0:X.key)===J||Y});return U?(0,v.jsx)(w,{getImgSrc:this.getImgSrc,targetElement:this.$elem,children:(ce,re)=>(0,v.jsx)(W.D,{className:he,itemKey:J,cid:Q.cid,isBasicOrScreen:me,projectMetaCid:Ce,platform:Q.platform,flatItemType:pe,ssZoomMode:be,policy:Q.policy,is_purchased:Q.is_purchased,currentResourcesTitle:Q.title,name:ge,isShowSign:N,isShowFolderIcon:!!L,isVisible:z,isShowFloatPreviewPanel:Z,isShowFloatPreviewIcon:!U,onMouseDown:this.handleMouseDown,onClick:this.handleClick,canChecked:A,checkedSet:B,onCheckedResource:D,onCreate:this.handleCreate,onToggleHoverPreviewIcon:this.onToggleHoverPreviewIcon,onShowTipsByTarget:this.onShowTipsByTarget,onOpenFolder:this.handleOpenFolder,onSetElementRef:this.setElementRef,onGetImgSrc:this.getImgSrc,handMouseEnter:ce,handMouseLeave:re,isCanPreviewInModal:ie,onOpenPreviewModal:j,category:te})}):(0,v.jsx)(W.D,{className:he,itemKey:J,cid:Q.cid,isBasicOrScreen:me,projectMetaCid:Ce,platform:Q.platform,flatItemType:pe,ssZoomMode:be,policy:Q.policy,is_purchased:Q.is_purchased,name:ge,isShowSign:N,isShowFolderIcon:!!L,isVisible:z,isShowFloatPreviewPanel:Z,isShowFloatPreviewIcon:!U&&!ie,onClick:this.handleClick,onMouseDown:this.handleMouseDown,onCreate:this.handleCreate,onToggleHoverPreviewIcon:this.onToggleHoverPreviewIcon,onShowTipsByTarget:this.onShowTipsByTarget,onOpenFolder:this.handleOpenFolder,onSetElementRef:this.setElementRef,onGetImgSrc:this.getImgSrc,canChecked:A,checkedSet:B,onCheckedResource:D,isCanPreviewInModal:ie,onOpenPreviewModal:j,currentResourcesTitle:Q.title,modalName:oe,category:te})}}(0,n.A)($,"defaultProps",{isShowSign:!0,isFloatPreviewMkt:!0,isRequsetMktStore:!1});const P=(0,r.Ng)(E=>{const H=(0,_.r)(E),O=(0,l.GO)(E),V=(0,a.PI)(E),Q=(0,a.k3)(E),N=(0,b.B8)(E),L=(0,s.HW)(E),U=(0,s.wA)(E),A=(0,b.fm)(E),D=(0,a.bP)(E),B=(0,s.YY)(E);return{currentEditorMode:H,ghostItemCids:O,showDragMode:V,isAdsorbentReferenceLine:Q,popupsPanelName:N,currentUser:L,currentOrg:U,mtResourceSdkStoreMap:A,layout:D,createTemplatesData:B}})($)},29360:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>bo});var n=e(38502),r=e(53732),c=e.n(r),o=e(28068),I=e(39e3),u=e(67787),d=e(58603),C=e(75810),h=e(51090);const i=(0,u.Ay)(d.A).withConfig({displayName:"style__StyledDropdownList",componentId:"sc-1ujczzp-0"})(["width:",";max-height:",";"],Ke=>Ke.width,Ke=>Ke.maxHeight+"px"),f=u.Ay.div.withConfig({displayName:"style__StyledInputExtression",componentId:"sc-1ujczzp-1"})(["min-height:28px;line-height:20px;border:1px solid ",";border-radius:6px;cursor:text;outline:none;box-sizing:border-box;font-size:12px;&.is-readonly{cursor:default;padding:0 4px !important;height:28px;.cell-wrapper:first-child .space-cell{display:none;}.expression-cell,.expression-text{pointer-events:none !important;}.public-DraftEditorPlaceholder-root,.public-DraftStyleDefault-block{margin-top:0px;margin-bottom:0;}.public-DraftEditorPlaceholder-inner{line-height:24px;margin-left:1px;}.DraftEditor-root{height:26px;overflow:hidden;border-top:1px solid transparent;}.public-DraftStyleDefault-block{margin-top:0;line-height:23px;}&.is-disabled{.public-DraftEditorPlaceholder-root{color:",";}}}.DraftEditor-editorContainer{border-left:none;}.public-DraftEditorPlaceholder-root{color:",';}.public-DraftStyleDefault-block > *{vertical-align:middle;}[aria-multiline="false"] .public-DraftStyleDefault-block{overflow:hidden;text-overflow:ellipsis;white-space:preserve nowrap;}&.is-editable{margin:0 4px;padding:0 4px;border-color:transparent;max-height:158px;overflow-y:auto;.public-DraftEditorPlaceholder-inner{padding-left:4px;margin-top:2px;}.public-DraftStyleDefault-block{margin:1px 0 0;min-height:24px;line-height:23px;> div{line-height:23px;margin-left:3px;margin-top:3px;}&::after{content:"";flex:1;}&::selection{background-color:',";}}.cell-wrapper:not(.space-cell-wrapper):first-child{margin-left:4px;}.expression-cell:not(.space-cell,.vacant-cell){&.is-focus,&:hover,&:focus{background-color:",";}}.expression-cell{&.builtinVar-cell,&.wattr-cell,&.wattrDummy-cell,&.name-cell{&.is-focus,&:focus{background-color:",";border-color:",";&:not(.is-trashed){color:",";svg{color:",";&.down-arrow{color:",";}}}}}}}&.is-error{border-color:",";outline:1px solid ",";}&.is-disabled{cursor:not-allowed;.public-DraftEditorPlaceholder-inner{color:",";}.DraftEditor-root{pointer-events:none;.expression-text{pointer-events:none !important;}}}.cell-wrapper{padding:2px 0;vertical-align:middle;&.name-cell-wrapper,&.builtinVar-cell-wrapper,&.wattr-cell-wrapper,&.vacant-cell-wrapper{display:inline-flex;}}.expression-cell{font-size:12px;height:20px;color:",";box-sizing:border-box;outline:none;caret-color:",";word-break:break-all;&:not(.name-cell){line-height:20px;}&.space-cell{width:4px;&.is-focus{width:auto;min-width:4px;}}&.vacant-cell,&.wattr-cell,&.wattrDummy-cell,&.builtinVar-cell,&.name-cell{&::selection{background-color:transparent;}span::selection{background-color:transparent;}}&.vacant-cell,&.wattr-cell,&.wattrDummy-cell,&.builtinVar-cell,&.name-cell{display:inline-flex;height:20px;border-radius:4px;border:1px solid ",";padding:0 4px;align-items:center;cursor:default;user-select:none;caret-color:transparent;color:",";&.is-simple{height:20px;line-height:20px;padding:0 4px;}.expression-text{pointer-events:auto;display:inline-flex;align-items:center;height:100%;}.var-tag{display:inline-flex;align-items:center;height:100%;}.var-name > div{display:inline;min-width:1px;max-width:132px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:22px;}.wattr-name{max-width:140px;}.widget-name{max-width:70px;display:inline;min-width:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}svg{color:",";margin-right:4px;font-size:16px;rect{fill:",";stroke:",";}&.rotate90{transform:rotate(90deg);}}.svg{color:",";path{fill:",";}}&.is-trashed{color:",";svg{color:",";}.down-arrow{color:",";}}}&.wattr-cell,&.wattrDummy-cell{padding:0 2px 0 4px;.down-arrow{margin-right:0px;color:",";}&:hover{border:1px solid ",";background:",";}&.isActive{border:1px solid ",";background:",";.down-arrow{transform:rotate(180deg);}&:hover{border:1px solid ",";background:",";}}}&.wattrDummy-cell{color:",";}&.builtinVar-cell,&.wattr-cell{&.is-simple{background-color:",";}&.invalid{color:",";.question{color:",";}.down-arrow{color:",";}}}&.vacant-cell{background:",";border:none;&:hover{cursor:text;}&:not(.no-is-focus){&.is-focus{div{background:"," !important;}}}.expression-text{color:",";&.has-text{color:",";}}.search{max-width:132px;",";}.func{max-width:112px;",";}}&.number-cell:not(.is-simple){color:",";}&.string-cell:not(.is-simple){color:",";}&.boolean-cell:not(.is-simple){color:",";}&.globalVar-cell:not(.is-simple){color:",";}&.operator-cell:not(.is-simple){color:",";&.is-bracket{color:","}}&.func-cell{color:",";}}"],Ke=>Ke.theme.color_bg_border_01,Ke=>Ke.theme.color_text_disabled01,Ke=>Ke.theme.color_text_L3,Ke=>Ke.theme.color_textarea,Ke=>Ke.theme.color_btn_secondary_hover,Ke=>Ke.theme.color_info_bg,Ke=>Ke.theme.color_text_link_normal,Ke=>Ke.theme.color_text_L1,Ke=>Ke.theme.color_text_L1,Ke=>Ke.theme.color_text_disabled01,Ke=>Ke.theme.color_polyline_normal,Ke=>Ke.theme.color_polyline_normal,Ke=>Ke.theme.color_text_disabled01,Ke=>Ke.theme.color_text_L1||"rgba(0, 0, 0, 0.85)",Ke=>Ke.theme.color_text_L1||"rgba(0, 0, 0, 0.85)",Ke=>Ke.theme.color_bg_border_02,Ke=>Ke.theme.color_text_L1,Ke=>Ke.theme.color_text_L2,Ke=>Ke.theme.color_bg_white,Ke=>(0,C.oU)(Ke,"color_bg_black"),Ke=>Ke.theme.color_text_L3,Ke=>Ke.theme.color_text_L3,Ke=>Ke.theme.color_warning,Ke=>Ke.theme.color_warning,Ke=>Ke.theme.color_text_disabled01,Ke=>Ke.theme.color_text_disabled01,Ke=>Ke.theme.color_btn_secondary_hover,Ke=>Ke.theme.color_btn_secondary_hover,Ke=>Ke.theme.color_btn_primary_normal,Ke=>Ke.theme.color_info_bg,Ke=>Ke.theme.color_btn_primary_normal,Ke=>Ke.theme.color_info_bg,Ke=>Ke.theme.color_text_link_normal,Ke=>Ke.theme.color_bg_white,Ke=>Ke.theme.color_warning,Ke=>Ke.theme.color_warning,Ke=>Ke.theme.color_text_disabled01,Ke=>Ke.theme.color_btn_secondary_active,Ke=>Ke.theme.color_textarea,Ke=>Ke.theme.color_text_L3,Ke=>Ke.theme.color_text_L1,h.L9,h.L9,Ke=>Ke.theme.color_literal_number,Ke=>Ke.theme.color_literal_string,Ke=>Ke.theme.color_literal_boolean,Ke=>Ke.theme.color_literal_boolean,Ke=>Ke.theme.color_literal_operator,Ke=>Ke.theme.color_text_L1,Ke=>Ke.theme.expr_editor_func),p=u.Ay.div.withConfig({displayName:"style__StyledEditorPanel",componentId:"sc-1ujczzp-2"})(["position:absolute;top:","px;left:","px;border-radius:8px;background-color:",";display:flex;flex-direction:column;padding:4px 0;box-shadow:",";border:1px solid ",";&.error-swing{animation-name:tiny-swing;animation-duration:0.8s;transform-origin:bottom center;}@keyframes tiny-swing{20%{transform:rotate3d(0,0,1,4deg);}40%{transform:rotate3d(0,0,1,-4deg);}60%{transform:rotate3d(0,0,1,2deg);}80%{transform:rotate3d(0,0,1,-2deg);}to{transform:rotate3d(0,0,1,0deg);}}"],Ke=>Ke.$top||-5,Ke=>{var ut;return((ut=Ke.$left)!=null?ut:0)-9||-9},Ke=>Ke.theme.color_bg_white,Ke=>Ke.theme.shadow_m,Ke=>Ke.theme.color_bg_border_01),s=u.Ay.div.withConfig({displayName:"style__StyledSuggestion",componentId:"sc-1ujczzp-3"})(["border-top:1px solid ",";box-sizing:border-box;margin-top:4px;.suggestion-list{padding:10px 11px;height:244px;overflow:auto;::-webkit-scrollbar{width:4px;}}.no-icon-placeholder{height:100%;img{width:50px;height:51px;}.tips{margin:16px 0 0;}}.bottom-tip{position:relative;display:flex;justify-content:space-between;align-items:center;padding:4px 20px 0;height:32px;border-top:1px solid ",";color:",";&.bottom-error{padding:4px 20px 0 8px;color:",";}&.serach-info{color:",";}.help-link{display:flex;align-items:center;color:",";svg{margin-left:4px;}}.help-error{display:flex;align-items:center;.svg-icon{margin-left:4px;}&:hover{.sign{color:",";}}}.help-keys{display:flex;align-items:center;.key-button{display:flex;justify-content:center;align-items:center;width:20px;height:20px;margin-right:4px;border-radius:4px;border:1px solid ",";color:",";}}}"],Ke=>Ke.theme.color_bg_border_01,Ke=>Ke.theme.color_bg_border_01,Ke=>Ke.theme.color_text_L2,Ke=>Ke.theme.color_text_L3,Ke=>Ke.theme.color_text_L3,Ke=>Ke.theme.color_text_L2,Ke=>Ke.theme.color_text_L2,Ke=>Ke.theme.color_bg_border_01,Ke=>Ke.theme.color_text_L2),l=u.Ay.div.withConfig({displayName:"style__StyledSuggestionItem",componentId:"sc-1ujczzp-4"})(["display:flex;align-items:center;justify-content:space-between;height:32px;border-radius:6px;padding:0 6px;&.is-selected{background-color:",";}.description{max-width:calc(50% - 4px);height:100%;display:inline-flex;align-items:center;justify-content:flex-end;.content{max-witdh:100%;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.Ellipsis{position:absolute;left:0;top:0;max-width:calc(100% - 8px);height:100%;opacity:0;}&.string{.content{max-witdh:calc(100% - 8px);}&::before{content:'\"'; } &::after { content: '\"';}}}.name{display:flex;align-items:center;width:calc(50% - 4px);color:",";span{max-width:calc(100% - 20px);overflow:hidden;text-overflow:ellipsis;white-space:pre;}}svg{margin-right:8px;color:",";font-size:16px;path{fill:currentColor;}rect{fill:",";stroke:",";}&.rotate90{transform:rotate(90deg);}}.description{text-align:right;color:",";}"],Ke=>Ke.theme.color_btn_secondary_hover,Ke=>Ke.theme.color_text_L1,Ke=>Ke.theme.color_text_L3,Ke=>Ke.theme.color_bg_white,Ke=>(0,C.oU)(Ke,"color_bg_black"),Ke=>Ke.theme.color_text_L3),_=(0,u.DU)([".TipBase{.Tip.var-tooltip{transform:translate(-50%,0) !important;opacity:1 !important;}}"]),b=u.Ay.div.withConfig({displayName:"style__StyledWAttrSelect",componentId:"sc-1ujczzp-5"})(["position:fixed;top:","px;left:","px;z-index:1999;background:",";width:fit-content;min-width:7em;font-size:12px;transition:.2s ease-in-out;box-shadow:",";border:1px solid ",";width:200px;height:301px;border-radius:8px;border:1px solid ",";background:",";box-shadow:0px 4px 10px 0px rgba(0,18,38,0.10);.attr-option-name{color:black;}&.x-left .arrow{left:0.5em;right:initial;}&.x-right .arrow{left:initial;right:0.5em;}&.is-upward .arrow{transform:rotate(180deg);top:initial;bottom:calc(-0.375em + 1px);}.content{padding:8px;min-height:32px;border-radius:9px;}"],Ke=>Ke.position.top,Ke=>Ke.position.left,Ke=>Ke.theme.color_bg_white,Ke=>Ke.theme.shadow_m,Ke=>Ke.theme.color_bg_border_01,Ke=>Ke.theme.color_bg_border_01,Ke=>Ke.theme.color_bg_white);var a=e(29329),M=e(17307),x=e(68677),g=e(88255),S=e(46953),t=e(38167),v=e(7091),w=e(27660);const k=[{name:"true",text:"true",type:"boolean",description:"\u5E03\u5C14\u503C"},{name:"false",text:"false",type:"boolean",description:"\u5E03\u5C14\u503C"}],W=(Ke,ut)=>{let{text:zt,name:bt,desc:xn}=Ke;return(zt==null?void 0:zt.toLowerCase().includes(ut))||(bt==null?void 0:bt.toLowerCase().includes(ut))||(xn==null?void 0:xn.toLowerCase().includes(ut))},K=(Ke,ut)=>Ke.zIndex-ut.zIndex,G=(Ke,ut)=>{const zt=[];return Ke.forEach(bt=>{bt.varDataType===ut&&zt.push(bt)}),zt.sort(K).concat(O({type:ut}))},$=(0,w.R)(()=>{let Ke=[];for(const ut of Object.keys(t.PZ))Ke=Ke.concat(P({type:ut}));return Ke}),P=Ke=>{let{type:ut,sliceNum:zt=0}=Ke;return Object.keys(t.PZ[ut]||{}).map(bt=>{const xn=t.PZ[ut][bt],kn=(0,t.eB)(bt),gn=xn.argsType,Zn=xn.returnType,Pn={type:ut,funcName:kn,argsType:gn,returnType:Zn,suggestType:xn.type};let _n,Wn;if((0,t.ud)(ut)?(Wn=ut+"."+kn+"()",_n={text:ut,type:a.wv.globalVar}):(Wn=(0,t.IV)(ut)+"."+kn+(xn.type==="func"?"()":""),_n={text:(0,t.IV)(ut),realText:"",type:a.wv.vacant,valueType:ut,vacantFrom:"func",funcInfo:Pn}),xn.type==="property")return{name:"\u5C5E\u6027",text:Wn,type:a.wv.func,desc:(0,t.mQ)(ut,kn),insertList:[_n,{text:".",type:a.wv.dot},{text:kn,type:a.wv.func,funcInfo:Pn}].slice(zt),returnType:Zn,funcInfo:Pn};const Ln=gn.filter(to=>!to.optional),io=[];for(let to=0;to<Ln.length;to++)io.push({text:""+(0,t.IV)(Ln[to].type),type:a.wv.vacant,vacantFrom:"func",valueType:Ln[to].type,funcInfo:Pn}),to!==Ln.length-1&&io.push({text:",",type:a.wv.unknown});return{name:"\u51FD\u6570",text:Wn,type:a.wv.func,desc:(0,t.mQ)(ut,kn),insertList:[_n,{text:".",type:a.wv.dot},{text:kn,type:a.wv.func,funcInfo:Pn},{text:"(",type:a.wv.operator},...io,{text:")",type:a.wv.operator}].slice(zt),returnType:Zn,funcInfo:Pn}})},E=Ke=>{let{typeList:ut,sliceNum:zt=0}=Ke;return $().filter(bt=>ut.includes(bt.returnType)).map(bt=>({...bt,insertList:bt.insertList.slice(zt)}))},H=()=>Object.keys(v.om).map(Ke=>({name:(0,t.kz)(Ke),text:Ke,type:a.wv.builtinVar,desc:(0,t.K1)(Ke),valueType:v.om[Ke].valueType,info:{builtinVarName:Ke}})),O=Ke=>{let{type:ut}=Ke;return H().filter(zt=>zt.valueType===ut)},V=Ke=>{let{exprEntityListUseful:ut}=Ke;const zt=Pn=>{let{editorState:_n,focusOffset:Wn,blockText:Ln}=Pn;const[io,to]=(0,a.Lc)(_n,Wn,!0),mo=(io==null?void 0:io.entity.type)===a.wv.unknown?io:to;if(!mo||mo.entity.type!==a.wv.unknown)return;const[co]=(0,a.Lc)(_n,mo.range[0],!0);if(!co)return;const On=co.entity;if(On.type!==a.wv.dot)return;const[Cn]=(0,a.Lc)(_n,co.range[0],!0);if(!Cn)return;const qe=Cn.entity;let vn=[];switch(qe.type){case a.wv.number:{if(D(On.data.text))return;vn=P({type:qe.type,sliceNum:2});break}case a.wv.string:{vn=P({type:qe.type,sliceNum:2});break}case a.wv.globalVar:{vn=P({type:qe.data.text,sliceNum:2});break}case a.wv.operator:{const ao=gn({editorState:_n,focusOffset:co.range[0]});vn=P({type:ao,sliceNum:2})||[];break}case a.wv.vacant:case a.wv.wattr:case a.wv.builtinVar:case a.wv.name:{vn=P({type:qe.data.varDataType||qe.data.valueType,sliceNum:2});break}case a.wv.unknown:{const ao=Ln.slice(...Cn.range),no=(0,t.uc)(ao),ke=Ln.slice(...mo.range).toLowerCase();if(no)return P({type:no}).map($n=>({...$n,replaceRange:[Cn.range[0],mo.range[1]]})).filter($n=>W($n,ke))}}const Jn=Ln.slice(...mo.range).toLowerCase();return vn.map(ao=>({...ao,replaceRange:mo.range})).filter(ao=>W(ao,Jn))},bt=Pn=>{let{editorState:_n,focusOffset:Wn,blockText:Ln}=Pn;try{const[io,to,mo]=(0,a.Lc)(_n,Wn,!0),[Io]=(0,a.Lc)(_n,io.range[0],!0),[co]=(0,a.Lc)(_n,Io.range[0],!0),On=io.entity,Cn=Jn=>{let{funcType:ao,sliceNum:no,funcNameKeyword:ke,replaceRange:$n}=Jn;return P({type:ao,sliceNum:no}).filter($t=>W($t,ke)).map($t=>({...$t,replaceRange:$n}))};if(On.type===a.wv.func){if(On.data.funcInfo.funcName==="length")return;const Jn=to==null?void 0:to.entity,ao=(0,t.uc)(co==null?void 0:co.entity.data.text)?0:1,no=ao===0?co.range[0]:Io.range[0],ke=On.data.funcInfo.funcName.toLowerCase();return B(Jn)?mo?j(mo.entity)?Cn({funcType:On.data.funcInfo.type,sliceNum:ao,funcNameKeyword:ke,replaceRange:[no,mo.range[1]]}):void 0:Cn({funcType:On.data.funcInfo.type,sliceNum:ao,funcNameKeyword:ke,replaceRange:[no,to.range[1]]}):Cn({funcType:On.data.funcInfo.type,sliceNum:ao,funcNameKeyword:ke,replaceRange:[no,io.range[1]]})}if(!B(io==null?void 0:io.entity)||ut.find(Jn=>Jn.start>=(io==null?void 0:io.range[1])&&Jn.text===")"))return;const vn=Io.entity;switch(vn.type){case a.wv.func:{if(vn.data.funcInfo.funcName==="length")return;const[Jn]=(0,a.Lc)(_n,co.range[0],!0),ao=vn.data.funcInfo.funcName.toLowerCase(),no=(0,t.uc)(Jn==null?void 0:Jn.entity.data.text)?0:1,ke=no===0?Jn.range[0]:co.range[0];return Cn({funcType:vn.data.funcInfo.type,sliceNum:no,funcNameKeyword:ao,replaceRange:[ke,io.range[1]]})}}}catch(io){return}},xn=Pn=>{let{editorState:_n,focusOffset:Wn,blockText:Ln}=Pn;try{const io=(0,a.Lc)(_n,Wn,!0)[1];return bt({editorState:_n,focusOffset:io==null?void 0:io.range[1],blockText:Ln})}catch(io){return}},kn=Pn=>{let{editorState:_n,focusOffset:Wn,blockText:Ln}=Pn;try{const[io]=(0,a.Lc)(_n,Wn,!0);if(B(io==null?void 0:io.entity)){const[to]=(0,a.Lc)(_n,io.range[0],!0),mo=zt({editorState:_n,focusOffset:to==null?void 0:to.range[0],blockText:Ln});return mo==null?void 0:mo.map(Io=>({...Io,replaceRange:[Io.replaceRange[0],io.range[1]]}))}}catch(io){return}},gn=Pn=>{let{editorState:_n,focusOffset:Wn,propPrev0:Ln=void 0}=Pn;const[io]=(0,a.Lc)(_n,Wn,!0),to=Ln||(io==null?void 0:io.entity);switch(to==null?void 0:to.type){case a.wv.operator:{if(to.data.text===")"){const mo=ut.findLastIndex(Cn=>Cn.type==="operator"&&Cn.text==="("),Io=ut.findLastIndex(Cn=>Cn.type==="func");if(mo===-1||Io===-1||Io!==mo-1)return;const co=ut[Io],On=(0,t.cV)(co.text);if(On)return On;for(const[Cn,qe]of Object.entries(t.PZ)){const vn=qe[co.text];if(vn)return vn.returnType}}break}}};return{typeDotUnknown2:zt,dot2:Pn=>{let{editorState:_n,focusOffset:Wn,blockText:Ln}=Pn;const[io]=(0,a.Lc)(_n,Wn,!0);if(!io)return;const[to]=(0,a.Lc)(_n,io.range[0],!0);if(!to)return;const mo=io.entity,Io=to.entity;if(mo.type!==a.wv.dot)return;let co=[];switch(Io==null?void 0:Io.type){case a.wv.name:{co=P({type:Io.data.varDataType,sliceNum:2});break}case a.wv.number:{if(D(Io.data.text))return;co=P({type:Io.type,sliceNum:2});break}case a.wv.string:{co=P({type:Io.type,sliceNum:2});break}case a.wv.globalVar:{co=P({type:Io.data.text,sliceNum:2});break}case a.wv.builtinVar:{co=P({type:Io.data.valueType,sliceNum:2});break}case a.wv.func:{Io.data.text==="length"&&(co=P({type:"number",sliceNum:2}));break}case a.wv.operator:{if(Io.data.text===")"){const On=ut.findLastIndex(qe=>qe.type==="operator"&&qe.text==="("),Cn=ut.findLastIndex(qe=>qe.type==="func");if(On!==-1&&Cn!==-1&&Cn===On-1){const qe=ut[Cn],vn=(0,t.cV)(qe.text);let Jn="";if(vn)Jn=vn;else for(const[ao,no]of Object.entries(t.PZ)){const ke=no[qe.text];if(no[qe.text]){Jn=ke.returnType;break}}if(!Jn)break;co=P({type:Jn,sliceNum:2});break}}break}case a.wv.wattr:{co=P({type:Io.data.valueType,sliceNum:2});break}case a.wv.unknown:{const On=Ln.slice(...to.range),Cn=(0,t.uc)(On);Cn&&(co=P({type:Cn}).map(qe=>({...qe,replaceRange:[to.range[0],io.range[1]]})))}}return co},funcMore:bt,funcInner:xn,afterLB:kn,getBracketRFuncReturnType:gn}},Q=Ke=>{let{typeList:ut}=Ke;return ut.map((zt,bt)=>({name:"\u641C\u7D22"+(0,t.IV)(zt)+"\u53D8\u91CF\u3001\u51FD\u6570...",text:"",text2:(0,t.IV)(zt),type:a.wv.vacant,defaultSelected:bt===0,valueType:zt,vacantFrom:"search"}))},N=Ke=>[{name:"\u9009\u53D6\u7EC4\u4EF6\u5C5E\u6027",text:"\u7EC4\u4EF6\u5C5E\u6027",text2:"\u8BF7\u9009\u62E9",type:a.wv.wattrDummy,...Ke}],L=Ke=>{let{editorState:ut,focusOffset:zt,exprEntityListUseful:bt,searchEntity:xn,range:kn,keyword:gn}=Ke;const Zn=gn;let _n=[].concat(H());const Wn=bt[bt.findIndex(to=>to.key===xn.key)-1],Ln=Wn?Wn.type===a.wv.unknown?0:(0,a.M4)(Wn,a.wv.string,a.wv.boolean,a.wv.number,a.wv.wattr,a.wv.vacant,a.wv.name)||V({exprEntityListUseful:bt}).getBracketRFuncReturnType({editorState:ut,focusOffset:zt,propPrev0:Wn})!==void 0?1:0:0;return _n=_n.concat(P({type:"Math"})).concat(P({type:"number",sliceNum:Ln})).concat(P({type:"string",sliceNum:Ln})).concat(P({type:"$date"})),_n=_n.filter(to=>W(to,Zn)),_n.map(to=>({...to,replaceRange:kn}))},U=Ke=>{let{type:ut,keyword:zt,variables:bt,isVacantFullSelected:xn}=Ke;const kn=zt.toLowerCase(),gn=[];if(ut==="string")zt!==""&&gn.push({...(0,a.gn)(zt,!1),defaultSelected:!xn});else if(ut==="number"){const Zn=(0,a.QD)(zt);Zn&&gn.push({...Zn,defaultSelected:!xn})}else ut==="boolean"&&(gn.push({...k[0],defaultSelected:!xn}),gn.push(k[1]));if(gn.push(...N({vacantFrom:"func"})),zt==="")gn.push(...G(bt,ut));else{const Zn=zt.replace(/^["']/,"").replace(/["']$/,"");for(const Pn of G(bt,ut))A({item:Pn,keyword:kn,content:Zn})&&gn.push(Pn)}return gn.push(...E({typeList:[ut]})),gn.filter(Zn=>Zn.varDataType?Zn:W(Zn,kn))},A=Ke=>{var ut;let{item:zt,keyword:bt,content:xn}=Ke;return!!(xn&&(zt.name.toLowerCase().includes(bt)||(ut=zt.varData)!=null&&ut.toString().toLowerCase().includes(xn)))},D=Ke=>Number.parseInt(Ke)===Number.parseFloat(Ke),B=Ke=>Ke?Ke.type===a.wv.operator&&Ke.data.text==="(":!1,j=Ke=>Ke?Ke.type===a.wv.operator&&Ke.data.text===")":!1;var F=e(86964);const Y=Ke=>{var ut;return(ut=F.fm[Ke])==null?void 0:ut.value_dark};var X=e(72214);const z=Ke=>{let{valueType:ut}=Ke;const[zt,bt]=(0,n.useState)(!1);return(0,X.jsxs)("div",{className:"bottom-tip",children:[(0,X.jsxs)("div",{className:"help-link",onMouseEnter:()=>{bt(!0)},onMouseLeave:()=>{bt(!1)},children:[(0,X.jsx)("span",{children:I18N.Expression.help_guid}),(0,X.jsx)(M.C,{className:"sign",name:"interaction/expression/sign",size:16}),(0,X.jsx)(J,{valueType:ut,isHandleHoverd:zt,type:"normal"})]}),(0,X.jsxs)("div",{className:"help-keys",children:[(0,X.jsx)("span",{className:"key-button",children:(0,X.jsx)(M.C,{name:"interaction/expression/key_up",size:10})}),(0,X.jsx)("span",{className:"key-button",children:(0,X.jsx)(M.C,{name:"interaction/expression/key_up",size:10,style:{transform:"rotate(180deg)"}})}),I18N.Expression.select,(0,X.jsx)("span",{className:"key-button",style:{marginLeft:16},children:(0,X.jsx)(M.C,{size:11,name:"interaction/expr/enter"})}),I18N.Expression.confirm]})]})},Z=Ke=>{let{valueType:ut,pauseError:zt,resumeError:bt}=Ke;const[xn,kn]=(0,n.useState)(!1);return(0,X.jsx)("div",{className:"bottom-tip bottom-error",children:(0,X.jsxs)("div",{className:"help-error",onMouseEnter:()=>{kn(!0),zt()},onMouseLeave:()=>{kn(!1),bt()},children:[(0,X.jsxs)("svg",{width:"32",height:"32",fill:"none",viewBox:"0 0 32 32",children:[(0,X.jsx)("g",{filter:"url(#filter0_d_40002516_39205)",children:(0,X.jsx)("circle",{cx:"16",cy:"16",r:"3",fill:"#FF4040"})}),(0,X.jsx)("circle",{cx:"16",cy:"16",r:"3",fill:"#FF4040"}),(0,X.jsx)("defs",{children:(0,X.jsxs)("filter",{id:"filter0_d_40002516_39205",width:"30",height:"30",x:"1",y:"1",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[(0,X.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,X.jsx)("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),(0,X.jsx)("feOffset",{}),(0,X.jsx)("feGaussianBlur",{stdDeviation:"6"}),(0,X.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,X.jsx)("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 0.25098 0 0 0 0 0.25098 0 0 0 1 0"}),(0,X.jsx)("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_40002516_39205"}),(0,X.jsx)("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_40002516_39205",result:"shape"})]})})]}),I18N.Expression.bottom.tip_error.replace("{type}",(0,t.IV)(ut)),(0,X.jsx)(M.C,{className:"sign",name:"interaction/expression/sign",size:16}),(0,X.jsx)(J,{valueType:ut,isHandleHoverd:xn,type:"error"})]})})},J=Ke=>{var ut;let{valueType:zt,isHandleHoverd:bt,type:xn}=Ke;const kn=()=>zt==="boolean"?I18N.Expression.bottom.tip_boolean:zt==="number"?I18N.Expression.bottom.tip_number:zt==="string"?I18N.Expression.bottom.tip_string:"",gn=(0,n.useRef)();return(0,X.jsxs)(te,{ref:gn,className:c()("upload-law-tip",zt,xn,{show:bt}),children:[(0,X.jsxs)("div",{className:"content-container",children:[(0,X.jsx)("p",{className:"content",dangerouslySetInnerHTML:{__html:kn()}}),(0,X.jsxs)("p",{children:[(0,X.jsxs)("a",{href:"/hc/articles/465",target:"blank",children:[(0,X.jsx)("span",{children:(ut=I18N.Common)==null?void 0:ut.learn_more}),(0,X.jsx)(M.C,{name:"interaction/expression/user_guide",size:16})]})," "]})]}),(0,X.jsx)("div",{className:"trigger"})]})},te=u.Ay.div.withConfig({displayName:"SuggestionComponent__StyledTipContent",componentId:"sc-17vyazg-0"})(["animation:none;transform:none;position:absolute;bottom:10px;width:240px;.content-container{background:",";color:",';flex-direction:column;justify-content:space-around;padding:12px 16px;border-radius:6px;}z-index:1;font-size:12px;visibility:hidden;&.show{visibility:visible;}.trigger{height:20px;}&::before{content:"";position:absolute;bottom:14px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid ',";}&.string{width:334px;}&.number{width:362px;}&.boolean{width:327px;}&.normal{left:0px;&::before{left:74px;}}&.error{right:0px;&::before{right:52px;}}p{font-size:12px;font-weight:400;line-height:20px;:nth-child(1){margin-bottom:4px;}a{display:flex;align-items:center;text-decoration:none;font-size:12px;color:",";&:focus,&:hover{color:",";}}}.content{cursor:default;}"],Ke=>Ke.theme.color_bg_tips,Ke=>Ke.theme.color_text_btn,Ke=>Ke.theme.color_bg_tips,Ke=>Y("color_text_link_normal"),Ke=>Y("color_text_link_hover")),ge=Ke=>{let{info:ut}=Ke;return(0,X.jsxs)(me,{children:[(0,X.jsx)("div",{className:"p1 builtinVar",children:ut.builtinVarName}),(0,X.jsx)("div",{className:"desc",children:(0,t.K1)(ut.builtinVarName)})]})},pe=Ke=>{let{info:ut}=Ke;const zt=()=>ut.argsType.map((xn,kn)=>(0,X.jsxs)("span",{children:[(0,X.jsx)("span",{className:xn.type,children:(0,t.A_)(xn.name)}),xn.optional&&xn.type!=="spread"&&(0,X.jsx)("span",{className:"optional",children:"\u53EF\u9009"}),kn!==ut.argsType.length-1&&(0,X.jsx)("span",{children:","})]},kn)),bt=ut.suggestType==="func";return(0,X.jsxs)(me,{children:[(0,X.jsxs)("div",{className:"p1",children:[(0,X.jsx)("span",{className:(0,t.ud)(ut.type)?"globalVar":ut.type,children:(0,t.IV)(ut.type)}),(0,X.jsx)("span",{children:"."}),(0,X.jsx)("span",{className:"func",children:ut.funcName}),bt&&(0,X.jsx)("span",{children:"("}),zt(),bt&&(0,X.jsx)("span",{children:")"}),(0,X.jsx)(M.C,{size:12,className:"arrow",name:"interaction/expression/right_arrow"}),(0,X.jsx)("span",{className:ut.returnType,children:(0,t.IV)(ut.returnType)})]}),(0,X.jsx)("div",{className:"desc",children:(0,t.mQ)(ut.type,ut.funcName)})]})},Ce=Ke=>{var ut;let{info:zt}=Ke;const bt=zt.varDataType||zt.valueType,xn=(ut=I18N.Expression.bottom.tip_vacant)==null?void 0:ut.replace("{type}",(0,t.IV)(bt,!0));return(0,X.jsx)("div",{className:"bottom-tip search-info",children:(0,X.jsx)("div",{className:"p1",children:xn})})},me=u.Ay.div.withConfig({displayName:"SuggestionComponent__StyledBottomFuncInfo",componentId:"sc-17vyazg-1"})(["padding:8px 20px 4px 20px;border-top:1px solid ",";.p1{margin-bottom:4px;display:flex;flex-wrap:wrap;align-items:center;line-height:16px;.svg-icon{color:",";}.arrow{margin:0px 4px;}}.string{color:",";}.number{color:",";}.boolean{color:",";}.func{color:",";}.builtinVar{color:",";}.desc{color:",";}.globalVar{color:",";}.optional{height:16px;padding:0px 4px;justify-content:center;align-items:center;border-radius:3px;border:1px solid ",";background:",";color:",";}"],Ke=>Ke.theme.color_bg_border_01,Ke=>Ke.theme.color_text_L3,Ke=>Ke.theme.expr_editor_string,Ke=>Ke.theme.expr_editor_number,Ke=>Ke.theme.expr_editor_boolean,Ke=>Ke.theme.expr_editor_func,Ke=>Ke.theme.expr_editor_builtinVar,Ke=>Ke.theme.color_text_L3,Ke=>Ke.theme.expr_editor_boolean,Ke=>Ke.theme.color_bg_border_02,Ke=>Ke.theme.color_bg_white,Ke=>Ke.theme.color_text_L3);var be=e(788),ie=e(92837),oe=e(83199),he=e(91063),ce=e(93257);const re=(0,n.createContext)({});var fe=e(95106),Se=e(39695),Me=e(62150);const Ie={$pi:"pi",$deviceWidth:"deviceWidth",$deviceHeight:"deviceHeight",$pageWidth:"deviceWidth",$pageHeight:"deviceHeight",$mouseX:"mouse",$mouseY:"mouse",$mousePageX:"mouse",$mousePageY:"mouse",$pageScrollX:"scroll",$pageScrollY:"scroll",$containerScrollX:"scroll",$containerScrollY:"scroll"},de=Ke=>new o.t8([{strategy:(ut,zt)=>{ut.findEntityRanges(bt=>!!bt.getEntity(),zt)},component:ut=>(0,X.jsx)(xe,{...ut,isSimple:Ke})}]),xe=Ke=>{var ut;const{contentState:zt,entityKey:bt,isSimple:xn}=Ke,{handleClickWAttrEntity:kn,setEditingVacant:gn}=(0,n.useContext)(re),Zn=bt&&zt.getEntity(bt);if(!Zn)return null;const{type:Pn,data:_n}=Zn,Wn=_n.varDataType,Ln=(_n==null?void 0:_n.isTrashed)||Pn==="name"&&!Wn,io=Pn==="name",to=Pn,mo=co=>{Zn.type!==a.wv.wattr&&Zn.type!==a.wv.wattrDummy||kn==null||kn({entityKey:bt,entity:Zn},co)},Io=co=>{co.preventDefault(),co.stopPropagation(),!(Zn.type!==a.wv.name&&Zn.type!==a.wv.vacant)&&gn({key:bt,data:Zn.type===a.wv.name?{...Zn.data,vacantFrom:"var"}:Zn.data})};return Zn.type===a.wv.wattrDummy?(0,X.jsx)(je,{handleClick:mo,entityKey:bt,children:Ke.children}):Zn.type===a.wv.wattr?(0,X.jsx)(ve,{handleClick:mo,entity:Zn,entityKey:bt,isSimple:xn,children:Ke.children}):(0,X.jsx)("span",{className:c()("cell-wrapper",to+"-cell-wrapper",{"cw-simple":xn}),children:(0,X.jsxs)("span",{"data-cid":bt,className:c()(["expression-cell",to+"-cell",{"is-trashed":Ln,"is-bracket":["(",")"].includes(Zn==null||(ut=Zn.data)==null?void 0:ut.text),"is-simple":xn}]),onClick:Io,children:[Zn.type===a.wv.vacant&&(0,ie.iZ)(Zn.data.vacantFrom)&&(0,X.jsx)(M.C,{size:16,name:"interaction/expression/vacant_eye"}),io?(0,X.jsx)(Le,{entity:Zn,isTrashed:Ln,isSimple:xn,handleVarMouseDown:Io,children:Ke.children}):Zn.type===a.wv.builtinVar?(0,X.jsx)(We,{entity:Zn,isSimple:xn,children:Ke.children}):Zn.type===a.wv.vacant?(0,X.jsx)(Ae,{entity:Zn,children:Ke.children}):(0,X.jsx)("span",{className:"expression-text",children:Ke.children})]})})},Le=Ke=>{let{entity:ut,children:zt,isSimple:bt,isTrashed:xn}=Ke;const{data:kn}=ut,gn=kn.varDataType,Zn=(0,S.Zg)(gn,kn.varData,xn),Pn=(0,n.useRef)(!1),_n=(0,n.useRef)(),Wn=(0,n.useCallback)(()=>{Pn.current=!0},[]),Ln=(0,n.useCallback)(()=>{clearTimeout(_n.current),Pn.current=!1},[]),io=(0,n.useCallback)((to,mo)=>{_n.current&&clearTimeout(_n.current),to?_n.current=setTimeout(()=>{Pn.current&&(mo==null||mo())},200):mo==null||mo()},[]);return(0,n.useEffect)(()=>()=>{Pn.current=!1,clearTimeout(_n.current)},[]),bt?(0,X.jsx)("span",{className:"var-tag var-name",children:zt}):(0,X.jsx)(ce.A,{direction:"down",tipClassName:"fixed-transform-y10",onChangeTooltipsHover:io,content:(0,X.jsx)(he.A,{showName:!0,isTrashed:xn,varAttr:ut.data,overflowWidth:132}),children:(0,X.jsx)("span",{className:"expression-text",onMouseMoveCapture:Wn,onMouseLeave:Ln,children:(0,X.jsxs)("span",{className:"var-tag var-name",children:[(0,X.jsx)(M.C,{name:Zn}),zt]})})})},ve=Ke=>{let{handleClick:ut,entity:zt,entityKey:bt,isSimple:xn,children:kn}=Ke;const{currentWidgetKey:gn,wAttrEditingMisc:Zn,vMode:Pn,editorWattrValidMap:_n}=(0,n.useContext)(re),[Wn]=(0,Se._S)(zt.data.key),Ln=gn?(0,fe.ck)(sdkStore,gn,Wn,Pn):!1,io=sdkStore.getHotItem(Wn);(0,n.useEffect)(()=>{_n==null||_n.set(zt.data.key,Ln)},[zt.data.key,Ln]);let to="";const mo=(0,n.useRef)();if(Ln)to=zt.data.nameKV.finalName;else{var Io;((Io=mo.current)==null||(Io=Io.querySelector(".widget-name"))==null?void 0:Io.scrollWidth)>70?to=(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)("div",{children:zt.data.nameKV.finalName}),(0,X.jsx)("div",{children:"\u7EC4\u4EF6\u5DF2\u88AB\u79FB\u9664\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9"})]}):to="\u7EC4\u4EF6\u5DF2\u88AB\u79FB\u9664\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9"}return(0,X.jsx)("span",{className:c()("cell-wrapper","wattr-cell-wrapper"),ref:mo,children:(0,X.jsx)(oe.A,{content:to,enterHoverTime:200,isShowTipsByTarget:(co,On)=>{var Cn;return Zn?!1:!Ln||((Cn=On.querySelector(".widget-name"))==null?void 0:Cn.scrollWidth)>70},children:(0,X.jsxs)("span",{"data-cid":bt,className:c()(["expression-cell","wattr-cell",{isActive:(Zn==null?void 0:Zn.entityKey)===bt,"is-trashed":!Ln,"is-simple":xn}]),onClick:ut,children:[xn?null:Ln?(0,X.jsx)(Me.W,{renderItem:io}):(0,X.jsx)(M.C,{size:16,className:"question",name:"design/preferencePanel/nav/tips"}),(0,X.jsxs)("span",{className:"var-tag wattr-name",children:[(0,X.jsx)("span",{className:"widget-name",children:zt.data.nameKV.name1}),(0,X.jsx)("span",{children:"\xA0/\xA0"}),kn]}),!xn&&(0,X.jsx)(M.C,{className:"down-arrow",size:12,name:"interaction/expression/wattr_arrow_tiny"})]})})})},je=Ke=>{let{handleClick:ut,entityKey:zt,children:bt}=Ke;const{wAttrEditingMisc:xn}=(0,n.useContext)(re);return(0,X.jsx)("span",{className:c()("cell-wrapper","wattr-cell-wrapper"),children:(0,X.jsxs)("span",{"data-cid":zt,className:c()(["expression-cell","wattrDummy-cell",{isActive:(xn==null?void 0:xn.entityKey)===zt}]),onClick:ut,children:[(0,X.jsx)(M.C,{name:"interaction/expression/wattrDummy"}),(0,X.jsx)("span",{className:"var-name",children:bt}),(0,X.jsx)(M.C,{className:"down-arrow",size:12,name:"interaction/expression/wattr_arrow_tiny"})]})})},We=Ke=>{let{entity:ut,isSimple:zt,children:bt}=Ke;return(0,X.jsxs)("span",{className:"expression-text",children:[!zt&&(0,X.jsx)(M.C,{name:"interaction/builtinVar/"+Ie[ut.data.text],className:c()({rotate90:ut.data.text.includes("ScrollY")})}),bt]})},Ae=Ke=>{let{entity:ut,children:zt}=Ke;return(0,X.jsx)("span",{className:c()("expression-text ",ut.data.vacantFrom,{"has-text":!!ut.data.realText}),children:zt})},we={number:[],string:["number"],boolean:["string","number"],unknown:["string","number","boolean"]},_e="BOOLEAN_KEYWORDS",Te={number:[{name:"\u52A0",text:"+",type:"operator",nextTypes:["number"],prevTypes:["number"]},{name:"\u51CF",text:"-",type:"operator",nextTypes:["number"],prevTypes:["number"]},{name:"\u4E58",text:"*",type:"operator",nextTypes:["number"],prevTypes:["number"]},{name:"\u9664",text:"/",type:"operator",nextTypes:["number"],prevTypes:["number"]}],string:[{name:"\u8FDE\u63A5\u5B57\u7B26\u4E32",text:"+",type:"operator",nextTypes:["string","number"],prevTypes:["string","number"]}],boolean:[{name:"\u7B49\u4E8E",text:"==",type:"operator",nextTypes:["boolean","string","number"],prevTypes:["boolean","string","number"]},{name:"\u4E0D\u7B49\u4E8E",text:"!=",type:"operator",nextTypes:["boolean","string","number"],prevTypes:["boolean","string","number"]},{name:"\u5927\u4E8E",text:">",type:"operator",nextTypes:["number"],prevTypes:["number"]},{name:"\u5927\u4E8E\u6216\u7B49\u4E8E",text:">=",type:"operator",nextTypes:["number"],prevTypes:["number"]},{name:"\u5C0F\u4E8E",text:"<",type:"operator",nextTypes:["number"],prevTypes:["number"]},{name:"\u5C0F\u4E8E\u6216\u7B49\u4E8E",text:"<=",type:"operator",nextTypes:["number"],prevTypes:["number"]},{name:"\u5E76\u4E14",text:"&&",type:"operator",nextTypes:["boolean","string","number",_e],prevTypes:["boolean","string","number",_e]},{name:"\u6216\u8005",text:"||",type:"operator",nextTypes:["boolean","string","number",_e],prevTypes:["boolean","string","number",_e]},{name:"\u975E",text:"!",prefix:!0,type:"operator",nextTypes:["boolean","string","number",_e]},{name:"\u52A0",text:"+",type:"operator",nextTypes:["string","number"],prevTypes:["string","number"]},{name:"\u51CF",text:"-",type:"operator",nextTypes:["number"],prevTypes:["number"]},{name:"\u4E58",text:"*",type:"operator",nextTypes:["number"],prevTypes:["number"]},{name:"\u9664",text:"/",type:"operator",nextTypes:["number"],prevTypes:["number"]}]},Ye=(Ke,ut,zt)=>{var bt;ut||(ut=a.wv.unknown);const xn=[ut,...we[ut]],kn=[];return(ut===a.wv.boolean||xn.includes(a.wv.boolean))&&k.forEach(gn=>{kn.push(gn)}),(bt=Te[ut])==null||bt.forEach(gn=>{gn.prefix&&kn.push(gn)}),Ke.forEach(gn=>{(zt||xn.includes(gn.varDataType))&&kn.push(gn)}),kn.concat(H().filter(gn=>xn.includes(gn.valueType)))},Fe=(Ke,ut,zt)=>{var bt;ut||(ut=a.wv.unknown);const xn=[ut,...we[ut]],kn=[];return(bt=Te[ut])==null||bt.forEach(gn=>{zt!=null&&zt.includes(gn.text)||gn.prefix&&kn.push(gn)}),kn.push(...N()),Ke.forEach(gn=>{if(xn.includes(gn.varDataType)){if(zt!=null&&zt.includes(gn.name))return;kn.push(gn)}}),kn.concat(H().filter(gn=>xn.includes(gn.valueType)))},Ve=(Ke,ut,zt,bt)=>{var xn;let{getSelectionSuggestList:kn}=bt;const{focusOffset:gn}=Ke.getSelection(),_n=Ke.getCurrentContent().getFirstBlock().getText(),[Wn,Ln,io]=(0,a.Lc)(Ke,gn,!0),to=Ln==null?void 0:Ln.entity,mo=Ln==null?void 0:Ln.range,Io=(0,a.b5)(Ke);if((0,a.M4)(to,a.wv.name,a.wv.builtinVar,a.wv.wattr,a.wv.wattrDummy))return kn();if((0,a.M4)(Wn==null?void 0:Wn.entity,a.wv.name)&&Wn.range[1]===gn){const Zt=document.querySelector("#expression-editor .expression-cell[data-cid='"+Wn.key+"'] .expression-text");if(Zt&&(0,a.gf)(Zt))return Ye(zt,ut,!1).filter(Nt=>Nt.type!=="operator").map(Nt=>({...Nt,replaceRange:Wn.range}))}if(mo&&gn>mo[0]&&gn<mo[1]&&(0,a.M4)(to,a.wv.operator,a.wv.func,a.wv.boolean,a.wv.number,a.wv.string,a.wv.number,a.wv.globalVar)){if((0,a.M4)(to,a.wv.operator)){var On,Cn,qe,vn;const Nt=(On=(Cn=Wn==null||(qe=Wn.entity.data)==null?void 0:qe.varDataType)!=null?Cn:Wn==null?void 0:Wn.entity.type)!=null?On:ut;return(vn=Te[Nt]||Te[ut])==null?void 0:vn.filter(Qt=>{var vt;return!Qt.prefix&&Qt.text!==((vt=to.data)==null?void 0:vt.text)}).map(Qt=>({...Qt,replaceRange:Ln.range}))}if((0,a.M4)(to,a.wv.func)){const Nt=V({exprEntityListUseful:Io}).funcInner({editorState:Ke,focusOffset:gn,blockText:_n});if(Nt)return Nt}const Zt=[];if((0,a.M4)(to,a.wv.boolean,a.wv.number)&&[a.wv.boolean,a.wv.string].includes(ut)&&Zt.push({...(0,a.gn)(_n.slice(...mo)),replaceRange:mo}),(0,a.M4)(to,a.wv.string,a.wv.number,a.wv.globalVar)){const Nt=_n.slice(...mo);a.wv.number&&D(Nt)||Zt.push(...P({type:(0,t.ud)(Nt)?Nt:to.type,sliceNum:1}).map(Qt=>({...Qt,replaceRange:[mo[1],mo[1]]})))}return Zt}const Jn=V({exprEntityListUseful:Io}).afterLB({editorState:Ke,focusOffset:gn,blockText:_n});if(Jn)return Jn;const ao=V({exprEntityListUseful:Io}).typeDotUnknown2({editorState:Ke,focusOffset:gn,blockText:_n});if(ao)return ao;const no=V({exprEntityListUseful:Io}).dot2({editorState:Ke,focusOffset:gn,blockText:_n});if(no)return no;const ke=V({exprEntityListUseful:Io}).funcMore({editorState:Ke,focusOffset:gn,blockText:_n});if(ke)return ke;const $n=[];let $t,cn=!1;if(to&&(0,a.M4)(to,a.wv.unknown)?$t=Ln:Wn&&($t=Wn,cn=!0),!$t)return[];const{entity:xt,range:Et}=$t;let jt=_n.slice(...Et);const Jt=(0,a.M4)(xt,a.wv.unknown),In=(0,a.M4)(xt,a.wv.globalVar),En=(0,a.M4)(xt,a.wv.number),hn=(0,a.M4)(xt,a.wv.func)&&jt==="length",_o=(0,a.M4)(xt,a.wv.string),yo=(0,a.M4)(xt,a.wv.boolean),Qn=(0,a.M4)(xt,a.wv.name),ze=(0,a.M4)(xt,a.wv.wattr),Oe=cn&&(0,a.M4)(xt,a.wv.operator),De=cn&&(0,a.M4)(xt,a.wv.builtinVar),Be=cn&&(0,a.M4)(xt,a.wv.vacant),Qe=[ut,...we[ut]],$e=((xn=$t.entity.data)==null?void 0:xn.varDataType)||$t.entity.type||ut,ot=ut===a.wv.boolean,mt=ut===a.wv.string,ft=jt.toLowerCase();if(!ft.length)return[];let gt=!1;ot&&Te.boolean.forEach(Zt=>{Zt.text!==ft&&Zt.text.includes(ft)&&($n.push({...Zt,replaceRange:Et}),gt=!0)});let _t;if(Jt&&!gt&&Qe.includes(a.wv.string)||(yo||En)&&(ot||mt)){if(Jt&&!['"',"'"].includes(jt[0])&&Et[0]>0){let Zt=Et[0],Nt=(0,a.Lc)(Ke,Et[0]-1)[1];for(;Zt>0&&Nt&&(0,a.M4)(Nt.entity,a.wv.number,a.wv.boolean);)Zt=Nt.range[0],Nt=(0,a.Lc)(Ke,Zt-1)[1];Zt<Et[0]&&(Et[0]=Zt),jt=_n.slice(...Et)}_t={...(0,a.gn)(jt),replaceRange:Et,defaultSelected:ot?Jt:!En},$n.push(_t)}if(Jt&&!gt&&Object.keys(Te).forEach(Zt=>{if(!Qe.includes(Zt))return;const Nt=Te[Zt].find(Qt=>Qt.name.includes(jt));Nt&&$n.push({...Nt,replaceRange:Et})}),Oe){const Zt=[$e];Object.keys(Te).forEach(yn=>{var rn;if(!Qe.includes(yn))return;const Ot=Te[yn].find(Nn=>Nn.text===jt);Ot&&Zt.push(...(rn=Ot.nextTypes)!=null?rn:[yn])});const Nt=new Set(Zt);Nt.has(_e)&&($n.push(...k),Nt.forEach(yn=>{var rn;(rn=Te[yn])==null||rn.forEach(Ot=>{Ot.prefix&&jt!==Ot.text&&$n.push(Ot)})}));const Qt=jt!=="("&&jt!==")";let vt=!1;if(jt==="("){const[yn,rn]=(0,a.Lc)(Ke,Et[0]-1);vt=!rn||(0,a.M4)(rn==null?void 0:rn.entity,a.wv.space,a.wv.operator),vt&&Nt.size===1&&Nt.add(ut)}if(vt)return kn();if(Qt){switch(ut){case"string":{$n.push(...Q({typeList:["string","number"]}));break}case"number":{$n.push(...Q({typeList:["number"]}));break}case"boolean":{["-","*","/"].includes(jt)?$n.push(...Q({typeList:["number"]})):[">","<",">=","<="].includes(jt)?$n.push(...Q({typeList:["number"]})):["+"].includes(jt)&&$n.push(...Q({typeList:["number","string"]}));break}}$n.push(...N())}if(zt.forEach(yn=>{Nt.has(yn.varDataType)&&$n.push(yn)}),Qt){$n.push(...H().filter(rn=>Nt.has(rn.valueType)));let yn=[];switch(ut){case"string":{yn=["string"],["+"].includes(jt)&&yn.push("number");break}case"number":{yn=["number"];break}case"boolean":{["-","*","/"].includes(jt)?yn=["number"]:["+"].includes(jt)?yn=["string","number"]:[">","<",">=","<="].includes(jt)?yn=["number"]:["==","!=","&&","||","!"].includes(jt)&&(yn=["string","number","boolean"]);break}}$n.push(...E({typeList:yn}))}}let Yt;if(Qn||En||hn||yo||_o||ze||Oe||De||Be){var Ft;const Zt=new Set;if((Ft=Te[ut])==null||Ft.forEach(Nt=>{var Qt;const vt=(Qt=Nt.prevTypes)!=null?Qt:[ut];let yn="";ze||De||Be?yn=xt.data.valueType:Oe?(yn=Yt!=null?Yt:V({exprEntityListUseful:Io}).getBracketRFuncReturnType({editorState:Ke,focusOffset:gn})||"",Yt=yn):hn?yn="number":yn=$e,vt.includes(yn)&&!Zt.has(Nt.text)&&!Nt.prefix&&(Zt.add(Nt.text),yn==="string"&&Nt.text==="+"?$n.push({...Nt,name:I18N.Expression.operator.plus_string}):$n.push(Nt))}),Oe&&jt===")"){const Nt=Yt!=null?Yt:V({exprEntityListUseful:Io}).getBracketRFuncReturnType({editorState:Ke,focusOffset:gn});$n.push(...P({type:Nt,sliceNum:1})),$n.length||$n.push(...Te[ut].filter(Qt=>Qt.text!=="!"))}}if(Jt||En||_o||yo){let Zt=!1;const Nt=ft.replace(/^["']/,"").replace(/["']$/,"");Jt&&$n.push(...N().filter(Qt=>W(Qt,ft)).map(Qt=>({...Qt,replaceRange:Et}))),Ye(zt,ut,!0).forEach(Qt=>{Qt.text!==jt&&A({item:Qt,keyword:ft,content:Nt})&&Qt.type!==a.wv.builtinVar&&($n.push({...Qt,defaultSelected:Zt,replaceRange:Et}),_t&&Zt&&(_t.defaultSelected=!1),Zt=!1)})}if(Qn||En||hn||yo||_o||ze||De||Be){let Zt="";ze||De||Be?Zt=xt.data.valueType:hn?Zt="number":Zt=$e,En&&D(jt)||$n.push(...P({type:Zt,sliceNum:1}))}return(Jt||In)&&$n.push(...L({editorState:Ke,focusOffset:gn,exprEntityListUseful:Io,searchEntity:$t,isGlobalVar:In,range:Et,keyword:ft})),$n},rt=(0,n.forwardRef)((Ke,ut)=>{let{valueType:zt,editorState:bt,scope:xn,width:kn,updateEditorState:gn,isShowError:Zn,pauseError:Pn,resumeError:_n,vacantEditorState:Wn,editingVacant:Ln,wAttrEditingMisc:io,setEditingVacant:to,handleClickWAttrEntity:mo,handleSuggestSelectUpdate:Io,handleChange:co}=Ke;const{variables:On}=xn,Cn=(0,n.useRef)(null),qe=(0,n.useRef)(null),[vn,Jn]=(0,n.useState)(null),[ao,no]=(0,n.useState)(Date.now()),ke=(0,n.useMemo)(()=>{const Jt=On.filter(De=>!De.isTrashed),In=Wn||bt,En=In.getCurrentContent(),hn=In.getSelection(),_o=En.getPlainText(),yo=hn.isCollapsed(),Qn=!_o.trim().length||Math.abs(hn.focusOffset-hn.anchorOffset)===_o.length,[ze]=(0,a.c0)(In);if(Wn){const De=In.getCurrentContent(),Be=In.getSelection(),$e=De.getFirstBlock().getText(),ot=Be.getEndOffset()-Be.getStartOffset()===$e.length;return U({type:(Ln==null?void 0:Ln.data.varDataType)||(Ln==null?void 0:Ln.data.valueType)||"string",keyword:Qn?"":$e||"",variables:Jt,isVacantFullSelected:ot})}if(io)return[];const Oe=()=>{const De=[];zt==="string"?De.push(...Q({typeList:["string","number"]})):zt==="number"&&De.push(...Q({typeList:["number"]})),zt==="boolean"&&k.forEach(Qe=>{De.push(Qe)}),De.push(...Fe(Jt,zt,void 0));let Be=[zt];return zt==="string"?Be.push("number"):zt==="boolean"&&(Be=["string","number","boolean"]),De.push(...E({typeList:Be})),De};return Qn||!yo?Oe():Ve(In,zt,Jt,{getSelectionSuggestList:Oe})},[zt,On,bt,ao,Wn,io,Ln]),$n=(0,n.useRef)(ke);if($n.current!==ke){const Jt=ke.find(In=>In.defaultSelected)||null;Jn(Jt),$n.current=ke}const $t=(Jt,In)=>{if(!vn)return;let En=bt;const hn={...vn};if(Wn){const Qn=(0,be.Cs)(bt,Ln.key);hn.replaceRange=[Qn.start,Qn.end],hn.type===a.wv.func&&(hn.insertList[0].replaceRange=[Qn.start,Qn.end])}const _o=hn.type===a.wv.func;let yo="";if(_o)for(const[Qn,ze]of Object.entries(hn.insertList)){let Oe=ze;parseInt(Qn)===0&&(Oe={...ze,replaceRange:hn.replaceRange});let De;!yo&&(0,ie.am)(ze.vacantFrom)&&(De={ref:null}),En=(0,a.FN)(En,Oe,{createKeyRef:De,insertSpaceV:(0,a.pg)({type:Oe.type,text:Oe.text}),insertSpaceBefore:parseInt(Qn)===0,insertSpaceAfter:ze.type===a.wv.unknown&&ze.text===","}),De&&(yo=De.ref)}else{const Qn={ref:null};En=(0,a.FN)(En,hn,{insertSpaceV:(0,a.pg)({type:hn.type,text:hn.text}),insertSpaceBefore:!0,createKeyRef:Qn}),yo=Qn.ref}if(En=Io(En,hn),Jn(null),xt(),_o&&yo)if(Wn){setTimeout(()=>{to({key:yo,data:En.getCurrentContent().getEntity(yo).data})},24);return}else to({key:yo,data:En.getCurrentContent().getEntity(yo).data});if(hn.type===a.wv.wattrDummy){setTimeout(()=>{mo({entityKey:yo,entity:En.getCurrentContent().getEntity(yo)})},40),to(void 0);return}if(hn.type===a.wv.vacant){setTimeout(()=>{to({key:yo,data:En.getCurrentContent().getEntity(yo).data})},40);return}if(Wn){const Qn=(0,be.Cs)(bt,Ln.key),De=(0,a.b5)(bt).filter(Be=>Be.start>Qn.end&&Be.type===a.wv.vacant&&(0,ie.am)(Be.data.vacantFrom))[0];De?(to(void 0),setTimeout(()=>{to({key:De.key,data:De.data})},50)):((0,a.g_)({editingVacant:Ln,handleChange:co,newEditorState:En,oldEditorState:bt,oldRange:Qn}),to(void 0))}},cn=Jt=>{Jt.preventDefault()},xt=()=>{const Jt=Cn.current.querySelector(".suggestion-list");Jt&&(Jt.scrollTop=0)},Et=(Jt,In)=>{var En;qe.current=null;const hn=(En=Cn.current)==null?void 0:En.querySelector(".is-selected"),_o=Cn.current.querySelector(".suggestion-list");if(In||!hn){Jt<0&&(_o.scrollTop=0);return}const{top:yo,bottom:Qn}=hn.getBoundingClientRect(),ze=_o.getBoundingClientRect(),Oe=ze.bottom-Qn,De=yo-ze.top;Oe>=0&&De>=0||(_o.scrollTop+=Jt>0?-(Oe-10):De-10)};(0,n.useImperativeHandle)(ut,()=>({handleSelectPrev:()=>{if(!ke.length||!vn)return;let Jt=0;vn&&(Jt=ke.indexOf(vn),Jt>0?Jt--:Jt=-1),Jn(Jt>=0?ke[Jt]:null),qe.current=()=>Et(-1,Jt===0)},handleSelectNext:()=>{if(!ke.length)return;let Jt=0;vn&&(Jt=ke.indexOf(vn),Jt<ke.length-1?Jt++:Jt=0),Jn(ke[Jt]),qe.current=()=>Et(1)},getSelectedItem:()=>vn,forceRefreshList:()=>{no(Date.now())},handleInsertItem:$t})),(0,n.useEffect)(()=>{var Jt;(Jt=qe.current)==null||Jt.call(qe)},[vn]);const[jt]=(0,a.c0)(bt);return(0,X.jsxs)(s,{style:{width:kn},ref:Cn,onPointerDown:cn,children:[(0,X.jsx)(_,{}),(0,X.jsx)("div",{className:c()("suggestion-list"),children:ke.length?ke.map((Jt,In)=>{const En=vn===Jt;return(0,X.jsx)(Ue,{...Jt,isSelected:En,onClick:$t,onMouseEnter:En?null:()=>{Jn(Jt)},onMouseLeave:En?()=>Jn(null):null},In)}):(0,X.jsx)(g.E,{noIconText:I18N.Expression.no_result,className:"no-icon-placeholder"})}),Zn?(0,X.jsx)(Z,{valueType:zt,pauseError:Pn,resumeError:_n}):(vn==null?void 0:vn.type)===a.wv.func&&vn.funcInfo?(0,X.jsx)(pe,{info:vn.funcInfo}):(jt==null?void 0:jt.type)===a.wv.func&&jt.data.funcInfo?(0,X.jsx)(pe,{info:jt.data.funcInfo}):(jt==null?void 0:jt.type)===a.wv.builtinVar?(0,X.jsx)(ge,{info:jt.data.info}):Ln&&!vn&&Ln.data.funcInfo?(0,X.jsx)(pe,{info:Ln.data.funcInfo}):Ln&&!vn&&((0,ie.hp)(Ln.data.vacantFrom)||(0,ie.iZ)(Ln.data.vacantFrom))?(0,X.jsx)(Ce,{info:Ln.data}):(vn==null?void 0:vn.type)===a.wv.builtinVar?(0,X.jsx)(ge,{info:vn.info}):(0,X.jsx)(z,{valueType:zt})]})}),Ue=Ke=>{var ut;let{varDataType:zt,name:bt,varData:xn,text:kn,type:gn,description:Zn,isSelected:Pn,onClick:_n,onMouseEnter:Wn,onMouseLeave:Ln}=Ke;const io=gn==="operator",[to,mo]=(0,n.useState)(!0),Io=()=>{Wn==null||Wn(),mo(!1)},co=()=>{Ln==null||Ln(),mo(!0)};(0,n.useEffect)(()=>{Pn||mo(!0)},[Pn]);const On=Pn&&!to,Cn=zt?(0,S.Zg)(zt,xn):gn===a.wv.func?"interaction/expression/fx":gn===a.wv.builtinVar?"interaction/builtinVar/"+Ie[kn]:gn===a.wv.wattrDummy?"interaction/expression/wattrDummy":gn===a.wv.vacant?"interaction/expression/search":null,qe=gn===a.wv.builtinVar&&kn!=null&&kn.includes("ScrollY")?"rotate90":void 0,vn=[a.wv.operator,a.wv.func,a.wv.builtinVar,a.wv.wattrDummy].includes(gn);return(0,X.jsxs)(l,{onClickCapture:Jn=>{_n()},onMouseMove:Io,onMouseLeave:co,className:Pn?"is-selected":"",children:[(0,X.jsxs)("span",{className:"name",children:[Cn&&(0,X.jsx)(M.C,{name:Cn,className:qe}),On?(0,X.jsx)(x.A,{delay:500,position:"bottom",max:"240px",tipClassName:"var-tooltip",children:(0,X.jsx)("span",{className:"text",children:vn?kn:bt})}):(0,X.jsx)("span",{className:"text",children:vn?kn:bt})]}),(0,X.jsx)("span",{className:c()("description",zt),children:(0,X.jsxs)("span",{className:"content",children:[vn?bt:(ut=Zn!=null?Zn:kn)!=null?ut:String(xn).replace(/\n/g,"\\n"),zt==="string"&&On&&(0,X.jsx)(x.A,{delay:500,position:"bottom",tipClassName:"var-tooltip",style:{maxWidth:240,wordBreak:"break-all",maxHeight:600,overflow:"auto",whiteSpace:"pre-wrap",userSelect:"text"},children:xn})]})})]})},et=rt;var lt=e(54449),Je=e(5388),Xe=e(69623),st=e(55584),nt=e(4820);const tt=()=>{const[Ke,ut]=(0,n.useState)(!1),[zt,bt]=(0,n.useState)(""),[xn,kn]=(0,n.useState)(""),[gn,Zn]=(0,n.useState)(!1),[Pn,_n]=(0,n.useState)(0),Wn=(0,n.useRef)(null),Ln=(0,n.useRef)(null),io=(0,n.useRef)(null),to=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(Ke&&!gn){const qe=Math.max(0,3e3-Pn);clearTimeout(Wn.current),Wn.current=setTimeout(()=>{Ln.current=setTimeout(()=>{ut(!1),_n(0)},100)},qe);const vn=Date.now();clearInterval(io.current),io.current=setInterval(()=>{gn||_n(Jn=>Math.min(Jn+(Date.now()-vn),3e3))},100)}return()=>{clearTimeout(Wn.current),clearInterval(io.current),clearInterval(Ln.current)}},[Ke,gn,Pn,xn]),{isShow:Ke,show:()=>{to.current&&(to.current.style.opacity=1),ut(!0),bt(""),_n(0),Zn(!1),kn("")},elementRef:to,displayText:zt,pause:()=>{Zn(!0),clearTimeout(Wn.current),clearInterval(Ln.current),clearInterval(io.current)},resume:()=>{Zn(!1)},clear:()=>{clearTimeout(Wn.current),clearInterval(Ln.current),clearInterval(io.current),_n(0),ut(!1)}}};var ct=e(66633);const ht=12,It=120,it=140,Tt=Ke=>{let{defaultText:ut,handleVacantCommand:zt,vacantEditorState:bt,setVacantEditorState:xn,editingVacant:kn}=Ke;const gn=(0,t.IV)(kn.data.type===a.wv.vacant?kn.data.valueType:kn.data.varDataType)||"",Zn=kn.data.vacantFrom,Pn=(0,ie.Zv)(Zn)?it:It,[_n,Wn]=(0,n.useState)(ut),[Ln,io]=(0,n.useState)({top:-9999,left:-9999}),[to,mo]=(0,n.useState)(ht),Io=_n===""?gn.length*ht:0,[co,On]=(0,n.useState)(0),Cn=(0,n.useRef)(null),qe=(0,n.useRef)(null),vn=(0,n.useRef)(!1),[Jn,ao]=(0,n.useState)([""]),[no,ke]=(0,n.useState)(0),[$n,$t]=(0,n.useState)(0),[cn,xt]=(0,n.useState)(1),[Et,jt]=(0,n.useState)(0),Jt=Oe=>{const De=[...Jn.slice(0,no+1),Oe];De.length>100&&De.shift(),ao(De),ke(De.length-1)},In=Oe=>{Wn(Oe.target.value),vn.current||Jt(Oe.target.value)},En=()=>{if(no>0){ke(no-1);const Oe=Jn[no-1];Wn(Oe),Cn.current.value=Oe}},hn=()=>{if(no<Jn.length-1){ke(no+1);const Oe=Jn[no+1];Wn(Jn[no+1]),Cn.current.value=Oe}},_o=Oe=>{const De=Cn.current;if(!De)return;if((Oe.ctrlKey||Oe.metaKey)&&(Oe.key==="Z"||Oe.shiftKey&&Oe.key==="z")){Oe.preventDefault(),hn();return}if((Oe.ctrlKey||Oe.metaKey)&&Oe.key==="z"){Oe.preventDefault(),En();return}const Be=_n!==ut;Oe.stopPropagation(),(Oe.key==="ArrowUp"||Oe.key==="ArrowDown")&&(Oe.preventDefault(),zt({type:"SuggestMove",isValueChanged:Be,option:{dir:Oe.key==="ArrowUp"?"up":"down"}}));const Qe=De.selectionStart,$e=De.selectionEnd;if(Qe===0&&$e===0&&(Oe.key==="ArrowLeft"&&(Oe.preventDefault(),zt({type:"Move",isValueChanged:Be,option:{dir:"left",value:_n,placeholder:gn}})),Oe.key==="Backspace"&&(Oe.preventDefault(),zt({type:"ExitFromDelete",isValueChanged:Be,option:{value:_n,from:"backspace"}}))),Qe===_n.length&&$e===_n.length&&(Oe.key==="ArrowRight"&&(Oe.preventDefault(),zt({type:"Move",isValueChanged:Be,option:{dir:"right",value:_n,placeholder:gn}})),Oe.key==="Delete"&&(Oe.preventDefault(),zt({type:"ExitFromDelete",isValueChanged:Be,option:{value:_n,from:"delete"}}))),Oe.key==="Tab"&&(Oe.preventDefault(),zt({type:"Tab",isValueChanged:Be,option:{value:_n}})),Oe.key==="Enter"){if((0,ct.cX)()&&vn.current){let ot=bt;ot=o.$t.createWithContent(o.z6.createFromText(_n),de()),ot=(0,a.Qg)(ot,Cn.current.selectionStart,Cn.current.selectionEnd),xn(ot)}Oe.preventDefault(),Oe.stopPropagation(),zt({type:"Enter",isValueChanged:Be,option:{value:_n}})}};(0,n.useEffect)(()=>{var Oe;Cn.current.value=ut,(Oe=Cn.current)==null||Oe.select(),Wn(ut),Jt(ut);let De=bt;return De=o.$t.createWithContent(o.z6.createFromText(ut),de()),De=(0,a.Qg)(De,0,ut.length-1),xn(De),()=>{xn(null)}},[ut,kn]);const yo=Oe=>{if(vn.current)return;let De=bt;De=o.$t.createWithContent(o.z6.createFromText(_n),de()),De=(0,a.Qg)(De,Cn.current.selectionStart,Cn.current.selectionEnd),xn(De)},Qn=Oe=>{$t($n+1)},ze=Oe=>{$t($n+1)};return(0,n.useEffect)(()=>(setTimeout(()=>{let Oe=o.$t.createWithContent(o.z6.createFromText(_n),de());Oe=(0,a.Qg)(Oe,Cn.current.selectionStart,Cn.current.selectionEnd),xn(Oe)},24),()=>{}),[$n]),(0,n.useLayoutEffect)(()=>{let Oe;if(kn&&(Oe=document.querySelector('#expression-editor .expression-cell[data-cid="'+kn.key+'"]'),Oe)){const{top:De,left:Be,width:Qe,height:$e}=Oe.getBoundingClientRect();io({top:De,left:Be});const ot=Qe>Pn?Pn:Qe;mo(ot),On($e)}return()=>{Oe&&(Oe.style.removeProperty("width"),Oe.style.removeProperty("overflow"),Oe.style.removeProperty("white-space"),Oe.classList.remove("no-is-focus"))}},[kn,no]),(0,n.useLayoutEffect)(()=>{const Oe=document.getElementById("expression-editor"),De=Be=>{const Qe=Be.target.scrollTop,$e=document.querySelector('#expression-editor .expression-cell[data-cid="'+kn.key+'"]');if($e){const{top:ot,left:mt}=$e.getBoundingClientRect();io({top:ot,left:mt}),$e.offsetTop-Qe>158?xt(0):xt(1)}};return Oe==null||Oe.addEventListener("scroll",De),()=>{Oe==null||Oe.removeEventListener("scroll",De)}},[]),(0,n.useLayoutEffect)(()=>{const Oe=qe.current.getBoundingClientRect().width,De=Oe,Be=(De>Pn?Pn:De)+((0,ie.Zv)(Zn)?(0,ie.hp)(Zn)?22:20:0);let Qe=Oe>Pn?Pn:Oe;Zn==="search"||Zn==="func"?Qe-=4:Qe-=2,mo(Qe);const $e=document.querySelector('#expression-editor .expression-cell[data-cid="'+kn.key+'"]');if($e){$e.style.setProperty("width",Be+"px"),$e.style.setProperty("overflow","hidden"),$e.style.setProperty("white-space","nowrap");const{top:ot,left:mt}=$e.getBoundingClientRect();io({top:ot,left:mt})}return()=>{}},[_n,to]),(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(Lt,{className:c()("vacant-input"),style:{top:Ln.top,left:Ln.left,height:co,opacity:cn},onClick:Qn,onDoubleClick:ze,children:[(0,ie.Zv)(Zn)&&(0,X.jsx)("div",{className:"icon-container",children:(0,X.jsx)(M.C,{className:c()(kn.data.vacantFrom),size:16,name:"interaction/expression/vacant_eye"})}),(0,X.jsx)("input",{style:{minWidth:Io,maxWidth:to},className:c()("vacant-input"),type:"text",defaultValue:ut,placeholder:gn,onChange:In,onKeyDown:_o,ref:Cn,onSelect:yo,onBlur:Oe=>{zt({type:"Enter",isValueChanged:_n!==ut,option:{placeholder:gn,value:_n,fromBlur:!0}})},onCompositionStart:Oe=>{console.log("start"),Oe.preventDefault()},onCompositionStartCapture:Oe=>{vn.current=!0,Oe.preventDefault()},onCompositionEnd:Oe=>{vn.current=!1,Oe.preventDefault(),yo(void 0),Jt(Oe.target.value)}},kn.data.key)]}),(0,X.jsx)(Rt,{style:{top:Ln.top,left:Ln.left,height:co,minWidth:Io},className:"vacant-input",defaultValue:ut,ref:qe,contenteditable:!0,children:_n||gn},kn.data.key)]})},Lt=u.Ay.div.withConfig({displayName:"VacantInput__StyledVacantInput",componentId:"sc-9d1abb-0"})(["position:fixed;z-index:1999;background:",";padding-left:4px;box-sizing:border-box;border-radius:4px;display:flex;align-items:center;.icon-container{display:inline-flex;.search{margin-right:4px;}.var{margin-right:5px;}}input{background:none;border:0;outline:0;font-size:12px;line-height:22px;padding:0;color:",";}input::placeholder{color:",";}"],Ke=>Ke.theme.color_btn_secondary_active,Ke=>Ke.theme.color_text_L1,Ke=>Ke.theme.color_text_L3),Rt=u.Ay.div.withConfig({displayName:"VacantInput__StyledDiv",componentId:"sc-9d1abb-1"})(["position:fixed;z-index:0;background:",";padding:0 4px;box-sizing:border-box;line-height:22px;border-radius:4px;font-size:12px;width:fit-content;height:20px;opacity:0;white-space:pre-wrap;"],Ke=>Ke.theme.color_bg_card);var Wt=e(20389),Kt=e(41815),Gt=e(44916);const St="is-focus",Hn={type:"space",text:" "},uo=Ke=>Ke.reduce((ut,zt)=>(ut.set(zt.key,zt.name),ut),new Map),Po=(Ke,ut)=>ut.size!==Ke.length?!0:Ke.some(zt=>zt.name!==ut.get(zt.key)),bo=(0,n.memo)(Ke=>{var ut,zt;let{readOnly:bt=!0,value:xn="",valueType:kn,scope:gn={variables:[]},width:Zn,height:Pn=28,maxHeight:_n,placeholder:Wn,multiline:Ln,disabled:io,simple:to,onSubmit:mo,onClick:Io,onCancel:co,currentWidgetKey:On,className:Cn,initPosition:qe}=Ke;Zn=Zn!=null?Zn:"100%";const{variables:vn,p2sdkStore:Jn=sdkStore}=gn,ao=(0,n.useRef)(null),no=(0,n.useRef)(null),ke=(0,n.useRef)(null),$n=(0,n.useRef)(null),$t=(0,n.useRef)(vn),cn=(0,n.useRef)(uo(vn)),[xt,Et]=(0,n.useState)(o.$t.createEmpty()),[jt,Jt]=(0,n.useState)(!1),[In,En]=(0,n.useState)(!1),hn=(0,n.useRef)(),yo=xt.getCurrentContent().getPlainText(),Qn=xt.getSelection(),ze=Qn.getHasFocus(),Oe=(0,n.useRef)(void 0),De=(0,n.useRef)(new Map),Be=(0,n.useRef)(!1),[Qe,$e]=(0,n.useState)((qe==null?void 0:qe.top)||0),[ot,mt]=(0,n.useState)((qe==null?void 0:qe.left)||0),[ft,gt]=(0,n.useState)(void 0),[_t,Yt]=(0,n.useState)(void 0),[Ft,Zt]=(0,n.useState)(null),Qt=!1?"combo":"non-combo",{menuStatus:vt,handleToggle2ByDom:yn,handleClose:rn}=(0,lt.z)(),{isShow:Ot,show:Nn,pause:To,resume:fo,clear:ro}=tt(),Bn=Ut=>{const an=document.querySelector('#expression-editor .expression-cell[data-cid="'+Ut.entityKey+'"]');if(!an)return;let wn=!0;ft&&Ut.entityKey===ft.entityKey?(gt(void 0),wn=!1):gt(Ut),yn(an,fn=>{let{left:mn,top:Sn}=fn;const Tn=300,un=200;let An=Sn+24,oo=mn;const No=Sn+Tn+24-window.innerHeight,Vo=mn+un-window.innerWidth;return No>0&&(An=window.innerHeight-Tn-12),Vo>0&&(oo=window.innerWidth-un),{left:oo,top:An}},{forceState:wn})},Ao=Ut=>{Bn(Ut)};ze&&jt!==ze&&Jt(!0);const go=(Ut,an)=>{let wn=Ut;const fn=Ut.getCurrentContent(),mn=Ut.getLastChangeType();let Sn=fn.getPlainText();if(Sn!==yo||an){if(wn=(0,a.bd)({editorState:Ut,variables:vn,p2sdkStore:Jn}),Sn=Ut.getCurrentContent().getPlainText(),!yo&&Sn&&Sn[0]!==" "){const Tn=(0,a.ki)(wn.getCurrentContent(),0);wn=o.$t.moveFocusToEnd(o.$t.set(wn,{currentContent:Tn}))}an&&(wn=o.$t.set(wn,{decorator:de(to)}))}return["undo","redo"].includes(mn)||(wn=o.$t.push(wn,wn.getCurrentContent(),mn)),Et(wn),wn},Jo=(Ut,an)=>{if(an.type===a.wv.operator)return Et(Ut),Ut;let wn=Ut,fn=Ut.getCurrentContent(),Sn=Ut.getSelection().getEndOffset();const Tn=(0,a.ZY)(Ut,0)[0];(Tn==null?void 0:Tn.type)!==a.wv.space&&(fn=(0,a.ki)(fn,0),Sn+=1);const An=fn.getFirstBlock().getEntityAt(fn.getPlainText().length-1),oo=An&&fn.getEntity(An);let No=!1;(oo==null?void 0:oo.type)!==a.wv.space&&(fn=(0,a.ki)(fn,fn.getPlainText().length),No=!0),wn=o.$t.set(wn,{currentContent:fn});let Vo=fn.getSelectionAfter();return No&&(Vo=Qn.merge({anchorOffset:Sn,focusOffset:Sn})),wn=o.$t.forceSelection(wn,Vo),Et(wn),wn};$t.current!==vn&&(Po(vn,cn.current)&&(go(xt,!0),cn.current=uo(vn)),$t.current=vn);const $o=(Ut,an)=>{let wn=an;const fn=Qn.getStartOffset(),mn=Qn.getEndOffset();if(Ut==='"'||Ut==="'")if(Qn.isCollapsed()){const Sn=(0,a.kj)(Ut,an);if(Sn)return Et(Sn),"handled"}else{const Sn=(0,a.aO)(an,fn),{entity:Tn,range:un}=Sn.current||{};if(((0,a.M4)(Tn,a.wv.number)||(0,a.M4)(Tn,a.wv.unknown))&&un[0]===fn&&un[1]===mn)return wn=(0,a.FN)(wn,{text:""+Ut+yo.slice(...un)+Ut,type:a.wv.string,replaceRange:un},{}),Et(wn),"handled"}if(["&","|","="].includes(Ut)){const Sn=(0,a.kj)(Ut,an,a.wv.operator);if(Sn)return Et(Sn),"handled"}if(Ut===","&&Qn.isCollapsed()){wn=(0,a.FN)(wn,{text:Ut,type:a.wv.unknown,replaceRange:[mn,mn]},{});const Sn=(0,a.ki)(wn.getCurrentContent(),mn+1);return wn=o.$t.set(wn,{currentContent:Sn}),Et(o.$t.forceSelection(wn,Sn.getSelectionAfter())),"handled"}if(Ut.length&&!Qn.isCollapsed()){const Sn=(0,a.q9)(an);if(Sn.focusOffset!==Qn.focusOffset||Sn.anchorOffset!==Qn.anchorOffset){const Tn=o.e6.replaceText(an.getCurrentContent(),Sn,Ut),un=Tn.getSelectionAfter();let An=o.$t.push(an,Tn,"insert-characters");return An=o.$t.forceSelection(An,un),Et(An),"handled"}}if((0,a.Zo)(Ut)&&!a.yk.includes(Ut)){const Sn=(0,a.aO)(an,fn),{entity:Tn,range:un}=Sn.current||{};if((Tn==null?void 0:Tn.type)===a.wv.string&&Qn.isCollapsed()&&fn>un[0])return;const An=(0,a.ki)(wn.getCurrentContent(),mn);wn=o.$t.set(wn,{currentContent:An}),wn=(0,a.FN)(wn,{text:Ut,type:a.wv.operator,replaceRange:[mn+1,mn+1]},{});const oo=(0,a.ki)(wn.getCurrentContent(),mn+2);return wn=o.$t.set(wn,{currentContent:oo}),Et(o.$t.forceSelection(wn,oo.getSelectionAfter())),"handled"}if(Ut){const Sn=(0,a.q9)(an);if(!Sn.isCollapsed()){const Tn=o.e6.replaceText(an.getCurrentContent(),Sn,Ut);let un=o.$t.push(an,Tn,"remove-range");const An=Tn.getSelectionAfter();return un=o.$t.forceSelection(un,An),Et((0,a.bd)({editorState:un,p2sdkStore:Jn,variables:vn})),"handled"}}},po=()=>{var Ut;return jt&&((Ut=$n.current)==null?void 0:Ut.getSelectedItem())},us=Ut=>{if(ft){if(Ut.code==="Backspace"||Ut.code==="Delete"){const wn=(0,a.Q8)(xt,ft.entityKey);en(xt,Qn.merge({anchorOffset:wn[0]-1,focusOffset:wn[1]+1}))}return"PreventKey"}if(["ArrowLeft","ArrowRight"].includes(Ut.code)||Ut.key==="Home"||Ut.key==="End")return Ut.key+(Ut.shiftKey?"Shift":"");if(["ArrowUp","ArrowDown"].includes(Ut.key)&&jt)return Ut.key;if(Ut.code==="Space"){const{focusOffset:wn}=Qn,[fn,,mn]=(0,a.c0)(xt);return(0,a.M4)(fn,a.wv.string)&&wn>mn[0]&&wn<mn[1]?(0,o.K6)(Ut):Qn.isCollapsed()?"SpaceInsert":"RemoveRange"+Ut.code}if(Ut.code==="Backspace"||Ut.code==="Delete"){var an;if(!Qn.isCollapsed())return"RemoveRange"+Ut.code;const wn=Ut.code==="Backspace",{focusOffset:fn}=Qn,[mn,Sn,Tn]=(0,a.Lc)(xt,fn),un=(Sn==null?void 0:Sn.range)&&fn>Sn.range[0]&&fn<Sn.range[1],An=!un&&(0,a.OO)(Sn==null?void 0:Sn.entity)&&((an=no.current)==null?void 0:an.querySelector(".expression-cell."+St+"[data-cid='"+Sn.key+"'")),oo=wn?mn:Sn;if(fn===xt.getCurrentContent().getPlainText().length&&wn&&(mn==null?void 0:mn.entity.type)===a.wv.space)return"ArrowLeft";if(fn===xt.getCurrentContent().getPlainText().length-1&&!wn&&(Sn==null?void 0:Sn.entity.type)===a.wv.space)return"PreventKey";if(!un&&!An&&(0,a.M4)(oo==null?void 0:oo.entity,a.wv.space)){const{range:No}=oo,[Vo,,Ko]=(0,a.Lc)(xt,No[0]);if(wn&&((0,a.OO)(Vo==null?void 0:Vo.entity)&&!(0,a.M4)(Ko==null?void 0:Ko.entity,a.wv.space)||(0,a.M4)(Vo==null?void 0:Vo.entity,a.wv.operator)&&!(0,a.M4)(Ko==null?void 0:Ko.entity,a.wv.space,a.wv.operator)||(0,a.M4)(Ko==null?void 0:Ko.entity,a.wv.operator)&&!(0,a.M4)(Vo==null?void 0:Vo.entity,a.wv.space,a.wv.operator)))return Ut.code==="Backspace"?"ArrowLeft":"ArrowRight"}if(!wn&&(0,a.M4)(oo==null?void 0:oo.entity,a.wv.space)&&(0,a.OO)(Tn==null?void 0:Tn.entity)){const No=xt.getCurrentContent().getPlainText();return en(xt,Qn.merge({anchorOffset:Math.max(Tn.range[0]-1,0),focusOffset:Math.min(Tn.range[1]+1,No.length)})),"PreventKey"}if(oo){const No=xt.getCurrentContent().getPlainText(),Vo=(0,a._M)(oo.entity)?oo.range:wn?[fn-1,fn]:[fn,fn+1],Ko=No.slice(...Vo),zo=No.replace(Ko,"");if(zo.length>0&&zo.trim().length===0)return en(xt,Qn.merge({anchorOffset:Math.max(oo.range[0]-1,0),focusOffset:Math.min(oo.range[1]+1,No.length)})),"PreventKey"}}if(Ut.key==="Enter"){const fn=xt.getSelection().getStartOffset(),mn=(0,a.aO)(xt,fn);return mn.current&&(0,a.M4)(mn.current.entity,a.wv.wattr,a.wv.wattrDummy)?"ToggleWAttr":po()?"SuggestionInsert":"Submit"}return Ut.code==="Escape"?"Cancel":Ut.code==="Tab"?"Tab":(0,o.K6)(Ut)},hs=Ut=>{const an=Ut.includes("Shift");if(Ut.includes("ArrowLeft")||Ut.includes("ArrowRight")){let Tn=xt;const un=Tn.getCurrentContent().getPlainText(),An=Ut.includes("ArrowLeft")?-1:1,oo=Tn.getSelection(),{anchorOffset:No}=oo;if(!oo.isCollapsed()&&!an){const Vo=oo.getStartOffset(),Ko=oo.getEndOffset(),zo=An>0?Ko:Vo;Tn=(0,a.Qg)(Tn,zo,zo)}else{if(!an&&(0,a.jn)(xt,An,0,!an,Yt))return"handled";let Vo=(0,a.bP)(xt,An,0,!an);const Ko=No;if(Vo<0&&(Vo=0),Vo>un.length&&(Vo=un.length),!an){const zo=Vo===un.length&&An>0,xs=Vo===0&&An<0;if(zo||xs){const ys=(0,a.rR)(xt,xs);if(ys)return go(ys),"handled"}}Tn=(0,a.Qg)(Tn,an?Ko:Vo,Vo)}return Tn=o.$t.push(Tn,Tn.getCurrentContent(),"move-focusoffset"),go(Tn),"handled"}if(Ut.includes("Home")){var wn;const Tn=xt.getSelection(),un=Tn.getStartOffset(),An=(0,a.aO)(xt,un);if(((wn=An.current)==null?void 0:wn.entity.type)===a.wv.vacant){const oo=(0,be.Cs)(xt,An.current.key);return go((0,a.Qg)(xt,oo.start+1,oo.start+1)),"handled"}if(!an){const oo=(0,a.rR)(xt,!0);if(oo)return go(oo),"handled"}return go((0,a.Qg)(xt,an?Tn.anchorOffset:0,0)),"handled"}if(Ut.includes("End")){var fn;const Tn=xt.getSelection(),un=Tn.getStartOffset(),An=(0,a.aO)(xt,un);if(((fn=An.current)==null?void 0:fn.entity.type)===a.wv.vacant){const No=(0,be.Cs)(xt,An.current.key);return go((0,a.Qg)(xt,No.end-1,No.end-1)),"handled"}const oo=yo.length;if(!an){const No=(0,a.rR)(xt);if(No)return go(No),"handled"}return go((0,a.Qg)(xt,an?Tn.anchorOffset:oo,oo)),"handled"}if(["ArrowUp","ArrowDown"].includes(Ut)){if(Ut==="ArrowUp"){var mn;(mn=$n.current)==null||mn.handleSelectPrev()}else{var Sn;(Sn=$n.current)==null||Sn.handleSelectNext()}return"handled"}if(Ut==="SuggestionInsert")return $n.current.handleInsertItem(),"handled";if(Ut==="SpaceInsert")return go((0,a.FN)(xt,Hn,{})),"handled";if(Ut.includes("RemoveRange"))return en(),"handled";if(Ut==="Submit")return Un(),"handled";if(Ut==="Cancel")return Fn(),"handled";if(Ut==="backspace"&&Qn.isCollapsed()){const{focusOffset:Tn}=Qn,[un,,An]=(0,a.ZY)(xt,Tn);if((0,a.OO)(un)&&An[0]===Tn)return en(xt,Qn.merge({anchorOffset:An[0],focusOffset:An[1]})),"handled"}if(Ut==="PreventKey")return"handled";if(Ut==="ToggleWAttr"){const[Tn,un]=(0,a.c0)(xt);Bn({entityKey:un,entity:Tn})}return"not-handled"},pt=Ut=>{let{value:an,isValueChanged:wn}=Ut;if(!_t)return;const fn=(0,be.Cs)(xt,_t.key);if((0,ie.am)(_t.data.vacantFrom)){const mn=xt,Sn=(0,a.b5)(mn),Tn=Sn.filter(An=>An.start>fn.end&&An.type===a.wv.vacant&&(0,ie.am)(An.data.vacantFrom)),un=Sn.findLast(An=>An.end<=fn.start&&An.text==="(");if(Tn.length>0){const An=Tn[0];wn&&go((0,a.FN)(xt,{text:an,realText:an,replaceRange:[fn.start,fn.end],...(0,ie.xR)(_t)},{insertSpaceV:!1})),setTimeout(()=>{Yt({key:An.key,data:An.data})},4)}else{let An=xt;wn&&(An=(0,a.FN)(xt,{text:an,realText:an,replaceRange:[fn.start,fn.end],...(0,ie.xR)(_t)},{insertSpaceV:!1}));const oo=(0,a.b5)(An),No=un&&oo.find(Ko=>Ko.start>un.end&&Ko.text===")"),Vo=(No==null?void 0:No.end)||An.getCurrentContent().getPlainText().length;Yt(void 0),Et((0,a.Qg)(An,Vo,Vo))}return"handled"}else(0,ie.hp)(_t.data.vacantFrom)||go((0,a.FN)(xt,{text:an,realText:an,replaceRange:[fn.start,fn.end],...(0,ie.xR)(_t)},{insertSpaceV:!1})),Yt(void 0)},Ht=Ut=>{let{type:an,isValueChanged:wn,option:fn}=Ut;if(!_t)return;const mn=(0,be.Cs)(xt,_t.key);if(an==="Tab")pt({value:fn.value,isValueChanged:wn});else if(an==="Enter"){if(fn.fromBlur){Be.current=!0,wn&&!(0,ie.hp)(_t.data.vacantFrom)&&go((0,a.FN)(xt,{text:fn.value||fn.placeholder,realText:fn.value,replaceRange:[mn.start,mn.end],...(0,ie.xR)(_t)},{insertSpaceV:!1,noFocus:!0})),Yt(void 0);return}po()&&$n.current.handleInsertItem(void 0,{})}else if(an==="ExitFromDelete"){if((0,ie.hp)(_t.data.vacantFrom)){const Vo=fn.from==="backspace"?mn.start:mn.end;go((0,a.Qg)(xt,Vo,Vo)),Yt(void 0);return}const un={ref:""};let An=(0,a.FN)(xt,{text:fn.value,type:a.wv.unknown,replaceRange:[mn.start,mn.end]},{insertSpaceV:!1,createKeyRef:un});const oo=(0,be.Cs)(An,un.ref);if(An=go(An),!oo){Yt(void 0);return}const No=fn.from==="backspace"?oo.start:oo.end;go((0,a.Qg)(An,No,No)),Yt(void 0)}else if(an==="Move"){let un;const An={ref:""};wn&&!(0,ie.hp)(_t.data.vacantFrom)?un=(0,a.FN)(xt,{text:fn.value||fn.placeholder,realText:fn.value,replaceRange:[mn.start,mn.end],...(0,ie.xR)(_t)},{insertSpaceV:!1,createKeyRef:An}):(An.ref=_t.key,un=xt);const oo=(0,be.Cs)(un,An.ref);fn.dir==="left"?go((0,a.Qg)(un,oo.start-1,oo.start-1)):go((0,a.Qg)(un,oo.end,oo.end)),Yt(void 0)}else if(an==="SuggestMove")if(fn.dir==="up"){var Sn;(Sn=$n.current)==null||Sn.handleSelectPrev()}else{var Tn;(Tn=$n.current)==null||Tn.handleSelectNext()}},nn=(0,n.useCallback)(Ut=>{if(ao.current)try{const wn=ao.current.props.editorState,fn=(0,a.JX)(wn);return(0,a.LB)(fn,kn,{...gn,editorWattrValidMap:De.current,p2sdkWkeyOnEval:"dummy"}),En(!1),fn}catch(wn){if(En(!0),Ut){var an;(an=ke.current)==null||an.classList.add("error-swing"),setTimeout(()=>{var fn;(fn=ke.current)==null||fn.classList.remove("error-swing")},1e3)}console.warn("[EvalError]",wn)}},[In,gn,kn]),en=function(Ut,an){if(Ut===void 0&&(Ut=xt),an||(an=(0,a.q9)(Ut)),an.isCollapsed())return Ut;const wn=Ut.getCurrentContent(),fn=o.e6.removeRange(wn,an);let mn=o.$t.push(Ut,fn,"remove-range");const Sn=fn.getSelectionAfter();return mn=o.$t.forceSelection(mn,Sn),go(mn),mn},Un=()=>{let Ut;yo.trim()?Ut=nn(!0):Ut="",typeof Ut=="string"?mo==null||mo(Ut,(0,a.nw)(xt),xt):Nn()},Kn=(Ut,an)=>{an.preventDefault(),an.stopPropagation();const wn=Ut.props.editorState,fn=(0,a.q9)(wn);if(fn.isCollapsed())return an.clipboardData.setData("text/plain","");const mn=(0,a.$w)(wn,[fn.getStartOffset(),fn.getEndOffset()]),Sn=(0,st.vd)({editorState:wn,richTextV1:(0,nt.$$)(),w:void 0,h:void 0,isRecordAttr:!0});an.clipboardData.setData("text/html",Sn),an.clipboardData.setData("text/plain",mn)},Vn=(Ut,an)=>{an.preventDefault(),an.stopPropagation();const wn=Ut.props.editorState,fn=(0,a.q9)(wn);if(fn.isCollapsed())return an.clipboardData.setData("text/plain","");const mn=(0,a.$w)(wn,[fn.getStartOffset(),fn.getEndOffset()]),Sn=(0,st.vd)({editorState:wn,richTextV1:(0,nt.$$)(),w:void 0,h:void 0,isRecordAttr:!0});an.clipboardData.setData("text/html",Sn),an.clipboardData.setData("text/plain",mn),en(wn)},vo=(Ut,an)=>{let wn;if(an!=null&&an.includes("<meta data-mb-text-flag")){const ys=(0,Kt.A)({html:an,componentType:Gt.a.TEXT,isExpr:!0});wn=o.z6.createFromText(o.z6.createFromBlockArray(ys.contentBlocks,ys.entityMap).getPlainText())}else{const ys=Ut.replace(/\n/g," ");wn=o.z6.createFromText(ys)}const fn=(0,a.q9)(xt),{focusOffset:mn,anchorOffset:Sn}=fn,Tn=xt.getCurrentContent(),un=Tn.getPlainText(),[An,oo]=mn<Sn?[mn,Sn]:[Sn,mn],Vo=(0,a.bd)({editorState:o.$t.createWithContent(wn,de(to)),p2sdkStore:Jn,isInit:!0,noStartSpace:un[An-1]===" ",noEndSpace:un[oo]===" ",variables:vn}).getCurrentContent().getBlockMap(),Ko=o.e6.replaceWithFragment(Tn,fn,Vo),zo=Ko.getSelectionAfter();let xs=o.$t.push(xt,Ko,"insert-fragment");return xs=(0,a.bd)({editorState:o.$t.forceSelection(xs,zo),variables:vn,p2sdkStore:Jn}),Et(xs),"handled"},zn=Ut=>{_t||vt.isOpenContextMenu||(Ut.preventDefault(),hn.current!==yo||!yo?(hn.current=yo,Un()):Fn())},Fn=()=>{hn.current="",co==null||co()},Rn=Ut=>{var an,wn,fn,mn,Sn;if(Ut.target.closest(".vacant-input")||Ut.target.closest(".WorkspaceInput")||((an=Ut.target)!=null&&an.closest(".DraftEditor-root")||Ut.preventDefault(),(wn=Ut.target)!=null&&wn.closest(".public-DraftStyleDefault-block")))return;const Tn=(fn=Ut.target)==null?void 0:fn.closest(".expression-cell");if(!Ut.target.closest(".vacant-input")){if((mn=Ut.target)!=null&&mn.closest(".expression-cell")){const un=Tn.dataset.cid;if(_t&&_t!==un){Yt(void 0);return}}else if(_t){Yt(void 0);return}if((Sn=ke.current)!=null&&Sn.contains(Ut.target)){const{clientX:un,clientY:An,shiftKey:oo}=Ut,{top:No,bottom:Vo}=no.current.getBoundingClientRect();if(An<No||An>Vo)return;const Ko=no.current.querySelectorAll(".expression-cell");if(!Ko.length)return;const zo=Ko[0],xs=Ko[Ko.length-1],{left:ys,bottom:ss}=zo.getBoundingClientRect();if(un<ys&&An<=ss){hs((oo?"Shift":"")+"Home");return}const{right:le,top:At}=xs.getBoundingClientRect();un>le&&An>=At&&hs((oo?"Shift":"")+"End")}}},Mo=Ut=>{vt.isOpenContextMenu||ke.current.contains(Ut.target)||Ut.target.closest(".wAttr-select-panel")||Ut.target.closest(".bar-vertical")||Ut.target.closest(".bar-horizontal")||Ut.stopPropagation()},wo=Ut=>{var an,wn;vt.isOpenContextMenu||Ut.target&&ke.current.contains(Ut.target)||Ut.target.closest(".wAttr-select-panel")||Ut.target.closest(".bar-vertical")||Ut.target.closest(".bar-horizontal")||((an=Ut.target)!=null&&(wn=an.closest)!=null&&wn.call(an,"#canvas .tree-node:not(.rResCanvas)")||Ut.stopPropagation(),zn(Ut))};(0,n.useLayoutEffect)(()=>{if(bt)$e(0),mt(0);else{var Ut;const{top:an,height:wn,right:fn}=(Ut=ke.current)==null?void 0:Ut.getBoundingClientRect(),mn=an+wn+8-window.innerHeight;mn>0&&$e(-mn-5),fn>window.innerWidth?mt(window.innerWidth-8-fn):mt((qe==null?void 0:qe.left)||0)}return()=>{}},[bt]),(0,n.useEffect)(()=>{if(In&&!ze&&!bt&&!_t&&!Be.current){var Ut;(Ut=ao.current)==null||Ut.focus()}else Be.current=!1},[In,ze,bt,_t]),(0,n.useEffect)(()=>{!bt&&In&&nn()},[yo,bt,In,nn]),(0,n.useEffect)(()=>{ro()},[bt]),(0,n.useEffect)(()=>{var Ut;let an;const wn=(Ut=ao.current)==null?void 0:Ut.editor,fn=Sn=>{const Tn=ao.current.props.editorState,un=(0,a.q9)(Tn);un.isCollapsed()||en(Tn,un)},mn=xn.trim();return mn?an=(0,a.bd)({editorState:o.$t.createWithContent(o.z6.createFromText(mn),de(to)),variables:vn,p2sdkStore:Jn,isInit:!0}):an=o.$t.createWithContent(o.z6.createFromText(mn),de(to)),bt?Et(an):(Et((0,a.Qg)(an,0,an.getCurrentContent().getPlainText().length)),wn&&wn.addEventListener("compositionstart",fn)),En(!1),()=>{a.RQ.clearMemo(),wn.removeEventListener("compositionstart",fn)}},[xn,bt]),(0,n.useEffect)(()=>(Zt(_t?o.$t.createWithContent(o.z6.createFromText(""),de()):void 0),()=>{}),[_t]),(0,n.useEffect)(()=>{if(!no.current)return;let Ut=null,an=new Set;const wn=mn=>{if(!no.current)return;Ut=null;const Sn=xt.getSelection(),Tn=Sn.isCollapsed(),An=xt.getCurrentContent().getAllEntities()||[],oo=(0,a.Uo)(),No=no.current,Vo=new Set;if(ze){const ss=(0,a.cj)(xt);if(No.querySelectorAll(".expression-cell").forEach(le=>{var At;const Pt=le.dataset.cid,Re=ss.has(Pt),yt=(At=le.querySelector(".expression-text"))==null?void 0:At.getBoundingClientRect();if((0,a.gf)(le))Tn&&le.classList.contains("vacant-cell")||(le.classList.add(St),Vo.add(Pt));else if(le.classList.remove(St),Re){var Dt;const Xt=An.get(Pt);(0,a.OO)(Xt)&&((Dt=(0,a.Q8)(xt,Pt))==null?void 0:Dt[0])===Sn.anchorOffset&&(Ut=Pt)}}),No.clientHeight<No.scrollHeight){if(!oo)return;const{top:le,bottom:At}=oo,{top:Pt,bottom:Re}=No.getBoundingClientRect(),yt=26;let Dt=At-Re;if(Dt>0){No.scrollBy(0,Dt+yt);return}Dt=le-Pt,Dt<0&&No.scrollBy(0,Dt-yt)}}else No.querySelectorAll(".expression-cell."+St).forEach(ss=>{ss.classList.remove(St)});const Ko=Array.from(an),zo=Array.from(Vo),xs=Ko.length!==zo.length||Ko.some(ss=>!Vo.has(ss))||zo.some(ss=>!an.has(ss));if(an=Vo,xs){var ys;(ys=$n.current)==null||ys.forceRefreshList()}},fn=()=>{setTimeout(()=>{if(Ut){const mn=xt.getSelection(),{anchorOffset:Sn,focusOffset:Tn}=mn,un=mn.isCollapsed(),An=Sn>0?Sn-1:0,oo=un?An:Tn,No=mn.merge({anchorOffset:An,focusOffset:oo});ao.current.update(o.$t.set(xt,{selection:No}))}},50)};return wn(),document.addEventListener("selectionchange",wn),window.addEventListener("mouseup",fn),()=>{document.removeEventListener("selectionchange",wn),window.removeEventListener("mouseup",fn)}},[xt,ze]);const dn=()=>{gt(void 0),rn()};(0,n.useEffect)(()=>{ft&&((0,a.Q8)(xt,ft.entityKey)||dn())},[xt,ft]);const pn=Ut=>{if(!Ut.target.closest(".wAttr-select-panel")){Ut.stopPropagation();const an=(0,be.Cs)(xt,ft.entityKey);if(dn(),Ut.target.closest(".expression-cell[data-cid="+CSS.escape(ft.entityKey)+"]")){go((0,a.Qg)(xt,an.end+1,an.end+1));return}if(Ut.target.closest(".DraftEditor-root"))return;go((0,a.Qg)(xt,an.end+1,an.end+1))}},ho=(Ut,an,wn)=>{const fn=(0,Se.$8)(Ut,an),mn=(0,be.Cs)(xt,ft.entityKey),Sn=(0,Wt.MO)({exprWattr:fn,p2sdkStore:Jn}),Tn=go((0,a.bd)({editorState:(0,a.FN)(xt,{type:a.wv.wattr,text:Sn.name2,nameKV:Sn,key:fn,replaceRange:[mn.start,mn.end],valueType:(0,Wt.Cz)(an).type},{}),variables:vn,p2sdkStore:Jn}));if(gt(void 0),rn(),ft.entity.data.vacantFrom){const oo=(0,a.b5)(Tn).filter(No=>No.start>mn.end&&No.type===a.wv.vacant&&(0,ie.am)(No.data.vacantFrom))[0];oo?setTimeout(()=>{Yt({key:oo.key,data:oo.data})},4):(0,a.g_)({editingVacant:{key:ft.entityKey,data:ft.entity.data},handleChange:go,newEditorState:Tn,oldEditorState:xt,oldRange:mn})}};if(bt)return(0,X.jsx)(f,{onClick:Io,className:c()(Cn,"is-readonly",{"is-disabled":io}),style:{width:Zn,height:Pn},children:(0,X.jsx)(re.Provider,{value:{currentWidgetKey:On,vMode:Qt},children:(0,X.jsx)(o.KE,{disabled:io,editorState:xt,ref:ao,readOnly:bt,placeholder:Wn,ariaMultiline:Ln})})});let Oo;_t&&(Oo=xt.getCurrentContent().getEntity(_t.key));let qn="",So="";if(vt.isOpenContextMenu&&(ft==null||(ut=ft.entity)==null?void 0:ut.type)===a.wv.wattr&&De.current.get(ft.entity.data.key)===!0){const[Ut,an]=(0,Se._S)(ft.entity.data.key);qn=Ut,So=an}return(0,X.jsxs)(p,{style:{width:Zn,maxHeight:_n},$top:Qe,$left:ot,ref:ke,className:"expression-editor-panel",onMouseDown:Rn,children:[(0,X.jsx)(f,{ref:no,id:"expression-editor",className:c()(Cn,"is-editable",{"is-error":In,"is-disabled":io}),children:(0,X.jsx)(re.Provider,{value:{currentWidgetKey:On,wAttrEditingMisc:ft,handleClickWAttrEntity:Ao,editorState:xt,updateEditorState:Et,vacantRef:Oe,setEditingVacant:Yt,vMode:Qt,editorWattrValidMap:De.current},children:(0,X.jsx)(o.KE,{disabled:io,editorState:xt,ref:ao,onBlur:zn,onChange:go,handleBeforeInput:$o,handleKeyCommand:hs,keyBindingFn:us,handlePastedText:vo,onCopy:Kn,onCut:Vn,preserveSelectionOnBlur:!0,placeholder:Wn,ariaMultiline:Ln})})}),vt.isOpenContextMenu&&ft&&(0,Xe.createPortal)((0,X.jsxs)(b,{className:"wAttr-select-panel",position:vt.position,children:[(0,X.jsx)(Je.Vz,{keyTriggerItem:On,keyTargetItem:qn,attrKey:So,onSelectTargetAttr:ho,editorWattrValidMap:De.current,wAttrEditingMisc:ft,handleChange:go,editorState:xt,handleCloseWattrSelect:dn,removeRange:en}),(0,X.jsx)(I.A,{target:document.body,onClick:(0,I.t)(pn,{capture:!0})})]}),document.body),(0,X.jsx)(et,{ref:$n,editorState:xt,vacantEditorState:Ft,editingVacant:_t,scope:gn,valueType:kn,updateEditorState:Et,focusEditor:()=>ao.current.focus(),isShowError:Ot,pauseError:To,resumeError:fo,clearError:ro,wAttrEditingMisc:ft,setEditingVacant:Yt,handleClickWAttrEntity:Ao,handleSuggestSelectUpdate:Jo,handleChange:go}),_t&&(0,X.jsx)(Tt,{editingVacant:_t,defaultText:_t.data.type===a.wv.vacant?((zt=Oo)==null?void 0:zt.data.realText)||"":Oo.data.text,handleVacantCommand:Ht,vacantEditorState:Ft,setVacantEditorState:Zt}),(0,X.jsx)(I.A,{target:window,onClick:(0,I.t)(Mo,{capture:!0})}),(0,X.jsx)(I.A,{target:window,onMouseDown:(0,I.t)(wo,{capture:!0})})]})})},29611:(He,ee,e)=>{"use strict";e.d(ee,{S:()=>n});var n=function(r){return r.Image="image",r.Sticker="sticker",r.User="user",r.Org="org",r.History="history",r}(n||{})},30275:(He,ee,e)=>{"use strict";e.d(ee,{Z:()=>n});let n=function(r){return r[r.iconSelectPopup=0]="iconSelectPopup",r[r.sideBarPanel=1]="sideBarPanel",r}({})},30523:(He,ee,e)=>{"use strict";e.d(ee,{Tl:()=>n.A,Hk:()=>c.A,Yw:()=>G,CB:()=>r.A});var n=e(57150),r=e(73352),c=e(61899),o=e(38502),I=e(18381),u=e(67787),d=e(53732),C=e.n(d),h=e(5649),i=e(83199),f=e(17307),p=e(87332),s=e(9680),l=e(75810),_=e(92414),b=e(91063),a=e(46953),M=e(57479),x=e(81973),g=e(60651),S=e(72214);const t=[".var-input-container.is-active",".var-dropmenu",".var-editor",".var-add-menubox"],v=(P,E,H)=>P==="string"?String(E)===String(H):E===H,w={number:["number"],string:["string","number"],boolean:["boolean"]},k=P=>{var E;let{type:H,refVar:O,isIconButton:V,hoverTrigger:Q,className:N,style:L,menuWidth:U=220,showName:A,onlyTag:D,iconTooltip:B,onToggleActive:j,dropdownProps:F,inputClassName:Y,canAddVar:X=!0,isShowAddVarIcon:z=!0,tooltipsContentText:Z,onRenderArrow:J,...te}=P;const ge=(0,I.wA)(),pe=(0,I.d4)(g.oO),Ce=w[H]||[],be=!(0,I.d4)(x.ue).some(Xe=>Ce.includes(Xe.hotAttr.varDataType))&&(0,s.P1)().length===0,ie=(0,o.useRef)(null),oe=(0,o.useRef)(null),he=(0,o.useRef)(null),ce=(0,o.useRef)(null),re=(0,o.useRef)(V),[fe,Se]=(0,o.useState)(!1),[Me,Ie]=(0,o.useState)(null),de=O?(0,s.hZ)(O):null,xe=!!de,Le=de==null?void 0:de.isTrashed,ve=xe&&!v(H,de.varData,te.value),je=(E=te.onChange)!=null?E:te.onConfirm,We=te.disabled||be,Ae=pe;B=B!=null?B:H==="string"?I18N.Variable.bind.text:I18N.Variable.bind.var;const we=(0,o.useCallback)(Xe=>{if(Xe){var st,nt;(st=oe.current)==null||(nt=st.setActive)==null||nt.call(st)}else{var tt,ct;(tt=oe.current)==null||(ct=tt.setInactive)==null||ct.call(tt)}Se(Xe),j==null||j(Xe)},[j]),_e=Xe=>{var st;We||((st=ie.current)==null||st.click(),we(Xe))},Te=()=>{We||Ae||we(!0)},Ye=()=>{We||we(!0)},Fe=(Xe,st)=>{if(We)return;if(we(!1),!Xe){var nt;return(nt=oe.current)==null||(nt=nt.$input)==null||nt.focus(),je==null?void 0:je(te.value,Xe)}if(Ae)return;const tt=sdkStore.getHotItem(Xe);if(!tt)return;const{varData:ct}=tt.hotAttr;let ht=ct;if(H==="number"){const{min:It,max:it,precision:Tt=0}=te;typeof It=="number"&&(ht=Math.max(ht,It)),typeof it=="number"&&(ht=Math.min(ht,it)),ht=Number(Number(ht).toFixed(Tt))}else H==="string"&&(ht=String(ht));je==null||je(ht,Xe,st)},Ve=function(){if(H==="number"){for(var Xe=arguments.length,st=new Array(Xe),nt=0;nt<Xe;nt++)st[nt]=arguments[nt];const tt=st[0];O&&tt!==(de==null?void 0:de.varData)?je==null||je(tt,""):je==null||je(tt,O),we(!1)}},rt=Xe=>{var st;return Xe&&t.some(nt=>{var tt;return(tt=Xe.target)==null?void 0:tt.closest(nt)})&&!((st=Xe.target)!=null&&st.closest(".var-input-container .input"))?(we(!0),!1):!0},Ue=Xe=>{var st;return Xe&&t.some(nt=>{var tt;return(tt=Xe.target)==null?void 0:tt.closest(nt)})&&fe?(we(!0),!1):(st=he.current)!=null&&st.state.isMenuShow?(we(!1),!1):!0},et=()=>{var Xe;(Xe=he.current)!=null&&Xe.state.isMenuShow&&(we(!1),he.current.setState({isMenuShow:!1}))},lt=()=>{var Xe,st;(Xe=he.current)==null||Xe.updateMenuPosition(),(st=ce.current)==null||st.updateEditorPosition()};(0,o.useEffect)(()=>{if(X&&(he.current.state.isMenuShow!==fe&&he.current.setState({isMenuShow:fe}),re.current!==V&&(re.current=V,!V&&fe))){var Xe,st;(Xe=ie.current)==null||Xe.scrollIntoView(!1),(st=he.current)==null||st.updateMenuPosition(),setTimeout(()=>{var nt;(nt=ce.current)==null||nt.updateEditorPosition()},10)}},[fe,X,V]),(0,o.useEffect)(()=>{let Xe;const st=nt=>{var tt;const ct=(tt=ie.current)==null?void 0:tt.querySelector(".icon-bind");ct&&(ct.style.display=nt.type==="mouseenter"?"block":"none")};return Q&&!We&&!Ae&&(Xe=document.querySelector(Q),Xe&&(Xe.addEventListener("mouseenter",st),Xe.addEventListener("mouseleave",st))),()=>{var nt,tt;(nt=Xe)==null||nt.removeEventListener("mouseenter",st),(tt=Xe)==null||tt.removeEventListener("mouseleave",st)}},[Q,We,Ae]),(0,o.useEffect)(()=>{var Xe;if(!xe)return Ie(null);const st=(Xe=oe.current)==null?void 0:Xe.$input;if(st){var nt,tt,ct,ht;const It=window.getComputedStyle(st),it=st.offsetLeft-4,Tt=Number(It.getPropertyValue("margin-right").replace("px","")),Lt=Number(It.getPropertyValue("padding-left").replace("px",""))||0,Rt=It.getPropertyValue("font-family")||void 0;Ie({marginLeft:it,paddingLeft:Lt,fontFamily:Rt,maxWidth:"calc(100% - "+(it+Lt+1)+"px)","--hover-width":(((nt=(tt=st.offsetParent)==null?void 0:tt.clientWidth)!=null?nt:0)-((ct=(ht=st.nextElementSibling)==null?void 0:ht.clientWidth)!=null?ct:0)-it-Tt||st.clientWidth||0)+"px"})}},[xe,O]),(0,o.useEffect)(()=>{if(xe&&fe){const Xe=st=>{var nt,tt;(nt=st.target)!=null&&nt.closest("#var-editor")||((tt=st.target)==null||(tt=tt.nodeName)==null?void 0:tt.toUpperCase())==="INPUT"||(st.key===M._.Escape&&(we(!1),st.stopPropagation()),(st.key===M._.Backspace||st.key===M._.Delete)&&(MB.f.editingRichText&&ge({type:"quit:rich:text:editing"}),Fe(""),we(!1),st.preventDefault(),st.stopPropagation()))};return document.addEventListener("keydown",Xe,!0),()=>{document.removeEventListener("keydown",Xe,!0)}}},[xe,fe]);const Je=(Xe,st)=>Z==null?void 0:Z.length;return(0,S.jsx)(i.A,{content:Z||"",direction:"down",distance:8,isShowTipsByTarget:Je,children:(0,S.jsxs)(W,{className:C()([N,"var-input-container",{"var-binded":xe,"is-icon-button":V,"is-active":fe,"is-disabled":We||be,"is-readonly":Ae,"is-boolean":H==="boolean","is-vartag-visible":!!Me}]),style:L,ref:ie,children:[!V&&!D&&H==="number"&&(0,S.jsx)(h.A,{...te,className:"input input-number "+Y,value:A?void 0:te.value,readOnly:!!A,onConfirm:Ve,onClickOutside:Ue,ref:oe,onRenderArrow:J}),!V&&!D&&H==="string"&&(0,S.jsx)(K,{...te,readOnly:!!A,value:A?void 0:te.value,className:C()(["input input-string",{"is-active":fe},Y]),onChange:Ve}),X&&(0,S.jsx)(p.A,{ref:he,distance:4,menuPosRight:10,...F,isDisabled:We,onClick:_e,onClickOutside:rt,renderOpener:(0,S.jsxs)(S.Fragment,{children:[!We&&!Ae&&(V||!de)&&z&&(0,S.jsx)(i.A,{content:B,direction:"down",enterHoverTime:200,isSkipShortTimerHover:!0,children:(0,S.jsx)("button",{className:"icon-bind",onClick:Te,children:(0,S.jsx)(f.C,{name:"flow/create/add"})})}),de&&!V&&(0,S.jsx)("div",{className:"var-input "+H,style:Me||H!=="number"?Me:{opacity:0},onClick:Ye,children:(0,S.jsx)(i.A,{position:"down",tipClassName:"fixed-transform-y10 is-open",isShowTipsByTarget:()=>!0,content:(0,S.jsx)(b.A,{isTrashed:Le,showName:A,isInvaild:ve,varAttr:de,value:te.value}),enterHoverTime:200,isSkipShortTimerHover:!0,children:(0,S.jsxs)("div",{className:C()(["var-tag",{"is-invaild":ve,"is-name":A,"is-trashed":Le}]),children:[Le?(0,S.jsx)(f.C,{name:"design/preferencePanel/nav/tips",className:"tip-icon var-icon"}):A?(0,S.jsx)(f.C,{size:16,name:(0,a.Zg)(de.varDataType,de.varData),className:"var-icon"}):null,(0,S.jsx)("span",{children:A?de.name:String(de.varData)+(te.suffix||"")})]})})})]}),renderMenu:(0,S.jsx)(_.A,{style:{width:U},ref:ce,type:H,className:"var-dropmenu",value:O,defaultVarData:te.value,selectedStyle:"binded",readOnly:Ae,needConfirm:!0,onChange:Fe,onSelect:et,onListChanged:lt})})]})})},W=u.Ay.div.withConfig({displayName:"VarInput__StyledVarInput",componentId:"sc-el435b-0"})(['position:relative;height:28px;&:hover .toolbar-dropdown-opener{pointer-events:auto;}&.is-readonly{.toolbar-dropdown-opener{cursor:default;opacity:1;}}&:not(.var-binded):has(input:focus) .toolbar-dropdown-opener{display:none !important;}.icon-bind{width:20px;height:20px;position:relative;display:none;&::before{content:"";position:absolute;background-color:',";border:1px solid ",";outline:2px solid ",";outline-offset:-3px;width:10px;height:10px;left:5px;top:5px;border-radius:50%;transition:all .3s;}svg{width:100%;height:100%;color:transparent;transform:scale(0.5);transition:transform .3s;border-radius:20px;opacity:0;circle{stroke:",";}path{fill:#fff;}}&:hover{&::before{opacity:0;}svg{color:",";box-shadow:none;transform:scale(1);opacity:1;}}}&.is-active .icon-bind{display:block!important;svg{transform:scale(1);opacity:1;color:",";}}&:hover:not(.is-disabled){.icon-bind{display:block;}.text-align-right{text-align:left;}.input{&:not(.is-disabled,.is-active){.action{visibility:visible;color:#c8cdd0;}&.input-number{border:1px solid ",";}}&.is-active:not(.is-disabled){.action{&:not(.caret){visibility:visible;}}}}.var-tag{background-color:",";border-color:transparent;}}.toolbar-dropdown-opener{position:absolute;cursor:pointer;left:-10px;top:-9px;z-index:2;width:20px;height:20px;display:flex;align-items:center;pointer-events:none;.var-input{pointer-events:auto;cursor:pointer;}.tip-icon{font-size:14px;margin-right:2px;vertical-align:middle;color:",';}&.is-open{height:calc(100% + 6px);align-items:flex-start;.icon-bind{display:block;&::before{display:none;}svg{opacity:1;}}}}&.is-icon-button{width:20px;height:20px;.toolbar-dropdown-opener{left:0;top:0;width:100%;height:100%;&.is-open{height:28px;align-items:flex-start;}}&.is-boolean:not(.is-disabled){&:hover,&.is-active{& + label{position:relative;&::after{position:absolute;content:"";width:calc(100% + 4px);height:calc(100% + 4px);left:-2px;top:-2px;border:1px solid ',";border-radius:10px;pointer-events:none;}}}}}&.var-binded{.toolbar-dropdown-opener{left:0;top:0;width:100%;height:100%;align-items:center;pointer-events:none;}&.is-active .var-tag,&.is-active .var-tag:hover{border-color:",";background-color:",";svg{color:",";}}.input-string + .toolbar-dropdown-opener{pointer-events:auto;.var-input{width:100%;padding-left:4px;padding-right:4px;}}&.is-vartag-visible{input,textarea{color:transparent;overflow:hidden;}}textarea{display:none;}&.is-boolean{width:100%;height:20px;margin-left:-6px;.var-tag{height:100%;padding:0 4px;}}}&:hover,&.is-active{.var-input{width:var(--hover-width,100%);}}.var-input{width:100%;height:100%;display:flex;align-items:center;max-width:100%;.var-tag{position:relative;border:1px solid ",";height:20px;padding:0 4px;border-radius:4px;overflow:hidden;background:",";color:",";svg{color:",";}display:inline-flex;align-items:center;max-width:calc(100% - 3px);&:hover{background-color:",";border-color:transparent;svg{color:",";}}span{max-width:100%;overflow:hidden;white-space:pre;text-overflow:ellipsis;}.var-icon{margin-right:4px;flex-shrink:0;font-size:14px;rect{fill:",";stroke:",";}}svg + span{max-width:calc(100% - 16px);}&.is-invaild span{text-decoration:line-through;}&.is-trashed{color:"," !important;.var-icon{color:"," !important;}}}&.number .var-tag:not(.is-name){.tip-icon{display:none;+ span{max-width:100%;}}}}.input-number.has-menu + .toolbar-dropdown-opener{.var-input.number{margin-left:6px;text-align:center;}}&.is-disabled{.var-input{.var-tag{color:",";}cursor:not-allowed;pointer-events:none;}.toolbar-dropdown-opener{cursor:default;}}"],P=>P.theme.color_bg_white,P=>P.theme.color_bg_white,P=>P.theme.color_var_bind_point,P=>P.theme.color_bg_white,P=>P.theme.color_text_disabled01,P=>P.theme.color_btn_primary_normal,P=>P.theme.color_bg_border_02,P=>P.theme.color_btn_secondary_active,P=>P.theme.color_text_L1,P=>P.theme.color_proto,P=>P.theme.color_btn_primary_normal,P=>P.theme.color_info_bg,P=>P.theme.color_text_L1,P=>P.theme.color_bg_border_02,P=>P.theme.color_bg_white,P=>P.theme.color_text_L1,P=>P.theme.color_text_L3,P=>P.theme.color_btn_secondary_active,P=>P.theme.color_text_L1,P=>P.theme.color_bg_white,P=>(0,l.oU)(P,"color_bg_black"),P=>P.theme.color_warning,P=>P.theme.color_warning,P=>P.theme.color_text_disabled01),K=u.Ay.textarea.withConfig({displayName:"VarInput__StyledInputString",componentId:"sc-el435b-1"})(["width:100%;height:28px;border-radius:4px;padding:0 6px;color:",";border:1px solid transparent;resize:none;&:hover{border:1px solid ",";}&:focus,&.is-active{border:1px solid ",";outline:1px solid ",";outline-offset:-2px;}"],P=>P.theme.color_text_L1,P=>P.theme.color_bg_border_02,P=>P.theme.color_proto,P=>P.theme.color_proto),G=k;var $=e(63143)},30542:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>_});var n=e(95549),r=e(38502),c=e(69623),o=e(53732),I=e.n(o),u=e(78401),d=e(547),C=e(67787),h=e(37361),i=e(63496);const f=C.Ay.div.withConfig({displayName:"styles__StyledDraggingItem",componentId:"sc-2bnk9y-0"})(["position:absolute;width:180px;pointer-events:none;z-index:200;& > li,& > div{background:"," !important;box-shadow:"," !important;opacity:0.7;input{background:"," !important;border:none !important;}.expander,.actions,.operations,.dragHandArea{display:none !important;}}.layer-item{display:flex;align-items:center;.layer-item-icon{",";}}.muban-list-item{padding:0 12px 0 8px;display:flex;align-items:center;height:32px;.arrow-icon-box{width:16px;height:16px;margin-right:4px;color:",";display:flex;align-items:center;justify-content:center;.arrow-expand{width:6px;}}&.is-expand .arrow-icon-box{transform:rotate(90deg);}}.style-content{",";.edit-icon{opacity:0;}.create-icon{opacity:0;}}*{pointer-events:none !important;}&.is-outside-container{pointer-events:auto;cursor:not-allowed !important;}"],x=>x.theme.color_bg_canvas,x=>x.theme.drag_sort_box_shadow,x=>x.theme.color_bg_canvas,h.u6,x=>x.theme.color_text_disabled01,i.I_),p=C.Ay.div.withConfig({displayName:"styles__StyledDnd",componentId:"sc-2bnk9y-1"})(["position:absolute;top:0;bottom:-3px;right:0;left:0;color:#298df8;overflow:hidden;&.is-invalid{cursor:not-allowed;}.group-indicator{position:absolute;&::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border:2px solid currentColor;opacity:0.6;border-radius:6px;}}.indicator{position:absolute;&.self-prev,&.self-next,&.prevSibling,&.nextSibling{width:152px !important;.indicator-line{position:absolute;left:0;width:100%;}.indicator-circle{position:absolute;right:100%;width:8px;height:8px;border-radius:50%;border:2px solid currentColor;}}&.self-prev,&.prevSibling{.indicator-line{top:0;border-bottom:2px solid currentColor;}.indicator-circle{top:-3px;}}&.self-next,&.nextSibling{.indicator-line{bottom:0;border-top:2px solid currentColor;}.indicator-circle{bottom:-3px;}}}"]);var s=e(72214);const l={cid:"",type:null,parentCid:"",isValid:!1};class _ extends r.PureComponent{constructor(g){super(g),(0,n.A)(this,"checkAutoScroll",(t,v)=>{const{containerRect:w}=this.props;let k=!1,W=0;t>w.left&&t<w.right&&(v>0&&v<w.top+20?(k=!0,W=-10):v>w.bottom-20&&v<window.innerHeight&&(k=!0,W=10)),k?this.createAutoScrollTask(W):this.destroyAutoScrollTask()}),(0,n.A)(this,"createAutoScrollTask",t=>{if(this.timer)return;const{getContainerElement:v}=this.props,w=v();this.timer=setInterval(()=>{w.scrollTop+=t},50)}),(0,n.A)(this,"destroyAutoScrollTask",()=>{clearInterval(this.timer),this.timer=null});const S=g.draggingElement.cloneNode(!0);S.style.cssText=getComputedStyle(g.draggingElement).cssText,this.state={isDragStart:!1,$element:S,x:0,y:0,matchData:l}}componentDidMount(){const{matchDataList:g,containerRect:S,getContainerElement:t,onDrop:v,rectQueryMap:w,onDragStartCallback:k}=this.props;(0,u.FJ)({onDragStart:()=>{this.setState({isDragStart:!0}),k==null||k()},onDrag:(W,K)=>{const G=t();if(!G)return;const $=W-S.left+G.scrollLeft,P=K-S.top+G.scrollTop;if(W<S.left||W>S.right||K<S.top-20||K>S.bottom+20)this.setState({x:W,y:K,matchData:l});else{const E=g.find(H=>{const{min:{x:O,y:V},max:{x:Q,y:N}}=H;return $>=O&&$<Q&&P>=V&&P<N})||l;this.setState({x:W,y:K,matchData:E})}this.checkAutoScroll(W,K)},onDrop:()=>{const{matchData:W}=this.state;this.destroyAutoScrollTask(),v(W)}})}render(){const{offsetX:g,offsetY:S,containerRect:t,rectQueryMap:v,protalClassName:w,noGroupIndicator:k}=this.props,{isDragStart:W,$element:K,x:G,y:$,matchData:P}=this.state;if(!W)return null;const E=!(0,d.El)(G,$,t);return(0,s.jsx)(b,{element:K,x:G,y:$,offsetX:g,offsetY:S,matchData:P,rectQueryMap:v,isOutSideContainer:E,protalClassName:w,noGroupIndicator:k})}}class b extends r.PureComponent{constructor(g){super(g),this.$portalElem=document.createElement("div"),this.$portalElem.id="DRAG_SORT_EVENT_ROOT"}componentDidMount(){document.body.appendChild(this.$portalElem)}componentWillUnmount(){document.body.removeChild(this.$portalElem)}render(){const{element:g,x:S,y:t,offsetX:v,offsetY:w,matchData:k,rectQueryMap:W,isOutSideContainer:K,protalClassName:G,noGroupIndicator:$}=this.props,{cid:P,parentCid:E,type:H,isValid:O,type2:V,uiCid:Q}=k,N=Q?W[Q]:W[P];return(0,s.jsxs)(p,{className:I()("dnd",{"is-invalid":!O}),children:[!$&&O&&E&&W[E]&&(0,s.jsx)(a,{rect:W[E].rect}),V==="lastChild"&&O&&(0,s.jsx)(a,{rect:W[E].rect}),O&&P&&N&&(0,s.jsx)(M,{type:H,rect:H==="nextSibling"?N.treeRect:N.contentRect}),(0,c.createPortal)((0,s.jsx)(f,{className:I()("dragging-item",{"is-outside-container":K},G),style:{marginTop:-w,marginLeft:-v,left:S,top:t},dangerouslySetInnerHTML:{__html:g.outerHTML}}),this.$portalElem)]})}}const a=x=>{let{rect:g}=x;const S={top:g.top,left:g.left,width:g.width,height:g.height};return(0,s.jsx)("div",{className:"group-indicator",style:S})},M=x=>{let{type:g,rect:S}=x;if(g==="firstChild")return null;const t={top:S.top,left:S.left,width:S.width,height:S.height};return(0,s.jsxs)("div",{className:I()("indicator",g),style:t,children:[(0,s.jsx)("span",{className:"indicator-line"}),(0,s.jsx)("span",{className:"indicator-circle"})]})}},31222:(He,ee,e)=>{"use strict";e.d(ee,{_H:()=>d,jm:()=>I,lS:()=>o});var n=e(15515),r=e(53940),c=e(34860);const o="leftnav_collapse",I="ro_leftnav_collapse",u={show:(0,n.Yt)((0,c.OB)()?o:I,!0,n.qW.Boolean),width:r.Cj,maxWidth:1/0};function d(C,h){C===void 0&&(C=u);const{type:i,payload:f}=h;switch(i){case"left-panel:update:state":return{...C,...f};case"left-panel:collapse:panel":{var p;return((p=f==null?void 0:f.isMemorize)!=null?p:!0)&&(0,n.a0)((0,c.OB)()?o:I,!C.show,n.qW.Boolean),{...C,show:!C.show}}case"left-panel:collapse:panel:show":{var s,l,_;return((s=f==null?void 0:f.isMemorize)!=null?s:!0)&&(0,n.a0)((0,c.OB)()?o:I,(l=f==null?void 0:f.show)!=null?l:!0,n.qW.Boolean),{...C,show:(_=f==null?void 0:f.show)!=null?_:!0}}case"left-panel:set:width":return f!=null&&f.isNotSaveLocal||(0,n.a0)("layer_left_panel_width_"+f.projectCid,f.width,n.qW.Number),{...C,width:f.width};case"left-panel:update:max-width":return{...C,maxWidth:f.screenListMaxWidth}}return C}},31569:(He,ee,e)=>{"use strict";e.d(ee,{i:()=>o});var n=e(59025),r=e(40610);const c=["background","border"],o=(I,u)=>{if(I.length===0)return"";const[d,...C]=u.split(":"),h=I.find(f=>{let{hotAttr:p}=f;return r.VV.includes(p.type)&&u==="textV0"?p.richTextV1!==void 0:p[d]!==void 0});if(!h)return;let i;if(C.length>0){const f=o([h],d);i=C.reduce((p,s)=>p[s],f)}else i=h.hotAttr[d];return i||(i===0||i===!1)&&!c.includes(d)?i:(0,n.BN)(h.hotAttr,d)}},31757:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>s});var n=e(38502),r=Object.defineProperty,c=Object.defineProperties,o=Object.getOwnPropertyDescriptors,I=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,C=(l,_,b)=>_ in l?r(l,_,{enumerable:!0,configurable:!0,writable:!0,value:b}):l[_]=b,h=(l,_)=>{for(var b in _||(_={}))u.call(_,b)&&C(l,b,_[b]);if(I)for(var b of I(_))d.call(_,b)&&C(l,b,_[b]);return l},i=(l,_)=>c(l,o(_)),f=(l,_)=>{var b={};for(var a in l)u.call(l,a)&&_.indexOf(a)<0&&(b[a]=l[a]);if(l!=null&&I)for(var a of I(l))_.indexOf(a)<0&&d.call(l,a)&&(b[a]=l[a]);return b},s=(0,n.forwardRef)((l,_)=>{var b=l,{size:a,spin:M,style:x}=b,g=f(b,["size","spin","style"]);const S=h(h({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:M?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),x);return n.createElement("svg",i(h({ref:_,style:S},g),{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),n.createElement("g",{clipPath:"url(#clip0_1404_154)"},n.createElement("path",{d:"M4.73535 8.20898C5.02734 7.917 5.49999 7.91702 5.79199 8.20898C6.08359 8.50101 6.08386 8.97376 5.79199 9.26562L2.55273 12.5049H4.91602C5.32869 12.5051 5.66387 12.8393 5.66406 13.252C5.66404 13.6648 5.32879 13.9998 4.91602 14H0.748047C0.702396 14 0.657659 13.9942 0.614258 13.9863C0.609727 13.9855 0.605104 13.9853 0.600586 13.9844C0.580425 13.9803 0.561534 13.9724 0.541992 13.9668C0.515196 13.9591 0.487884 13.9531 0.461914 13.9424C0.432497 13.9302 0.405315 13.9141 0.37793 13.8984C0.363206 13.89 0.347252 13.8836 0.333008 13.874C0.327591 13.8704 0.322699 13.8661 0.317383 13.8623C0.28716 13.8409 0.257948 13.8174 0.230469 13.791C0.222983 13.7838 0.216167 13.776 0.208984 13.7686C0.182451 13.7409 0.158169 13.7121 0.136719 13.6816C0.104887 13.6365 0.0779625 13.5879 0.0566406 13.5361C0.0484282 13.5161 0.0435107 13.4951 0.0371094 13.4746C0.0149708 13.404 4.96717e-06 13.3299 0 13.252V9.08398C0 8.67104 0.335101 8.33594 0.748047 8.33594C1.16084 8.33612 1.49609 8.67115 1.49609 9.08398V11.4482L4.73535 8.20898ZM13.252 8.33594C13.6649 8.33594 14 8.67104 14 9.08398V13.252C14 13.6649 13.6649 14 13.252 14H9.08398C8.67114 13.9999 8.33596 13.6648 8.33594 13.252C8.33613 12.8392 8.67125 12.505 9.08398 12.5049H12.5049V9.08398C12.5049 8.67122 12.8393 8.33623 13.252 8.33594ZM13.2539 0C13.3343 0.00018523 13.4108 0.0153815 13.4834 0.0390625C13.501 0.0447881 13.5189 0.0495739 13.5361 0.0566406C13.5879 0.0779503 13.6365 0.104895 13.6816 0.136719C13.7121 0.158169 13.7409 0.182451 13.7686 0.208984C13.776 0.216167 13.7838 0.222983 13.791 0.230469C13.8174 0.257948 13.8409 0.28716 13.8623 0.317383C13.8661 0.3227 13.8704 0.32759 13.874 0.333008C13.8836 0.347252 13.89 0.363206 13.8984 0.37793C13.9142 0.405321 13.9302 0.432489 13.9424 0.461914C13.949 0.477772 13.9526 0.494556 13.958 0.510742C13.9831 0.585548 14 0.664808 14 0.748047V4.91602C13.9998 5.3288 13.6648 5.66406 13.252 5.66406C12.8394 5.66377 12.5051 5.32862 12.5049 4.91602V2.55273L9.26562 5.79199C8.97376 6.08386 8.50101 6.08359 8.20898 5.79199C7.91702 5.49999 7.917 5.02734 8.20898 4.73535L11.4482 1.49609H9.08398C8.67124 1.49599 8.33612 1.16077 8.33594 0.748047C8.33594 0.335166 8.67113 0.000105793 9.08398 0H13.2539ZM4.91602 0C5.3288 0.000184886 5.66406 0.335215 5.66406 0.748047C5.66388 1.16072 5.32869 1.49591 4.91602 1.49609H1.49609V4.91602C1.49591 5.32869 1.16072 5.66388 0.748047 5.66406C0.335215 5.66406 0.000184886 5.3288 0 4.91602V0.748047C0 0.335101 0.335101 0 0.748047 0H4.91602Z",fill:"#19191A"})),n.createElement("defs",null,n.createElement("clipPath",{id:"clip0_1404_154"},n.createElement("rect",{width:"14",height:"14",fill:"white"}))))})},31781:(He,ee,e)=>{"use strict";e.d(ee,{MZ:()=>u,yt:()=>h});var n=e(40610),r=e(20089),c=e(5209),o=e(61790);const I=i=>{if(n.VV.includes(i.type)){const{textV1:p}=i;return(0,o.V7)(p)}else{let p="";if([r.x.WMTextInput,r.x.WMTextArea].includes(i.type))p=i.textInput.prefillTextV0;else{var f;p=((f=i.textV0)==null?void 0:f.text)||""}return d(String(p).replace(/<\/p><p>/gm,"\n").replace(/<(?:.)*?>/gm,""))}},u=i=>{let f,p;for(let s=0;s<i.length;s++){const l=i[s];if(s===0)f=I(l.hotAttr),p=f;else{const _=I(l.hotAttr);if(f!==_){p="";break}}}return p},d=i=>{let f=i;return C.forEach(p=>{let[s,l]=p;return f=f.replace(new RegExp(l,"g"),s)}),f},C=[["","&nbsp;"],[">","&gt;"],["<","&lt;"],["&","&amp;"]],h=i=>{(0,c.kH)("add_text_v8",{operation_type:i})}},32330:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>s});var n=e(38502),r=Object.defineProperty,c=Object.defineProperties,o=Object.getOwnPropertyDescriptors,I=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,C=(l,_,b)=>_ in l?r(l,_,{enumerable:!0,configurable:!0,writable:!0,value:b}):l[_]=b,h=(l,_)=>{for(var b in _||(_={}))u.call(_,b)&&C(l,b,_[b]);if(I)for(var b of I(_))d.call(_,b)&&C(l,b,_[b]);return l},i=(l,_)=>c(l,o(_)),f=(l,_)=>{var b={};for(var a in l)u.call(l,a)&&_.indexOf(a)<0&&(b[a]=l[a]);if(l!=null&&I)for(var a of I(l))_.indexOf(a)<0&&d.call(l,a)&&(b[a]=l[a]);return b},s=(0,n.forwardRef)((l,_)=>{var b=l,{size:a,spin:M,style:x}=b,g=f(b,["size","spin","style"]);const S=h(h({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:M?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),x);return n.createElement("svg",i(h({ref:_,style:S},g),{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),n.createElement("path",{d:"M8.92877 15.9951C8.53834 15.6046 8.53854 14.9715 8.92877 14.581L15.293 8.21674C15.6836 7.82622 16.3166 7.82622 16.7071 8.21674L23.0713 14.581C23.4616 14.9715 23.4618 15.6046 23.0713 15.9951C22.6809 16.3855 22.0478 16.3853 21.6573 15.9951L16.9864 11.3242L16.9864 23.0761C16.9862 23.6282 16.5385 24.0761 15.9864 24.0761C15.4342 24.0761 14.9866 23.6283 14.9864 23.0761L14.9864 11.3515L10.3428 15.9951C9.95229 16.3853 9.3192 16.3855 8.92877 15.9951Z",fill:"#19191A"}))})},32409:(He,ee,e)=>{"use strict";e.d(ee,{r:()=>s});var n=e(38502),r=e(18381),c=e(53732),o=e.n(c),I=e(60589),u=e(10472),d=e(67787),C=e(17307),h=e(26842);const i=(0,d.Ay)(C.C).withConfig({displayName:"styles__StyledLibOpenIcon",componentId:"sc-q1rms2-0"})(["",";margin-left:auto;margin-right:2px;color:",";"],h.eK,l=>l.theme.color_text_L1);var f=e(17573),p=e(72214);const s=l=>{let{type:_,onGetNewEditModalPostion:b}=l;const{isOpen:a,type:M}=(0,r.d4)(I.FK),{isEditingCombo:x}=(0,r.d4)(u.r),g=(0,r.wA)();if(x||!(0,f.bJ)())return null;const S=t=>{if(t.stopPropagation(),a)g({type:"modal:reset:popup:state",payload:{modalName:"libPanelModal"}});else{const{left:v,top:w,height:k,right:W}=t.target.getBoundingClientRect(),K=b?b():{left:v>=260?Math.max(v-240-176>>0,0):W+20,top:Math.max(w+k/2-340>>0,56)};g({type:"modal:update:state",payload:{libPanelModal:{isOpen:!0,type:_,position:K}}})}};return(0,p.jsx)(i,{name:"setting_panel/general/open-lib",size:24,className:o()("open-lib-icon",{"is-active":a&&M===_}),onClick:S})}},32709:(He,ee,e)=>{"use strict";e.d(ee,{Hy:()=>I,SR:()=>r});var n=e(27660);let r=function(u){return u.AIAssistant="AIAssistant",u.Page="Page",u.Flow="flow",u.Mind="mind",u.Table="table",u.Chart="chart",u.AutoFill="autofill",u.Semantic="semantic",u.PageV9="PageV9",u.Chat="Chat",u}({}),c=function(u){return u.page="page",u.component="component",u.other="other",u.semantic="semantic ",u}({});const o=(0,n.R)(()=>[{label:I18N.ChatGPT.ai_prototype,title:I18N.ChatGPT.ai_prototype_title,type:r.PageV9,points:400,recommends:[I18N.ChatGPT.ai_prototype_label_1,I18N.ChatGPT.ai_prototype_label_2,I18N.ChatGPT.ai_prototype_label_3],aiType:"\u751F\u6210\u539F\u578B\u9875\u9762",source:"",menu:c.page,icon:"chatGPT/ai-component-page",desc:I18N.ChatGPT.ai_prototype_desc,className:"ai-page",componentTitle:I18N.ChatGPT.ai_prototype_component_title},{label:I18N.ArtBoard.flow,title:I18N.ChatGPT.ai_flow_title,type:r.Flow,points:200,recommends:[I18N.ChatGPT.ai_flow_label_1,I18N.ChatGPT.ai_flow_label_2,I18N.ChatGPT.ai_flow_label_3],aiType:"\u751F\u6210\u6D41\u7A0B\u56FE",source:"",menu:c.component,icon:"chatGPT/ai-component-flow",desc:I18N.ChatGPT.ai_flow_desc,className:"ai-flow",componentTitle:I18N.ChatGPT.ai_flow_component_title},{label:I18N.ArtBoard.mind,title:I18N.ChatGPT.ai_mind_title,type:r.Mind,points:200,recommends:[I18N.ChatGPT.ai_mind_label_1,I18N.ChatGPT.ai_mind_label_2,I18N.ChatGPT.ai_mind_label_3],aiType:"\u751F\u6210\u601D\u7EF4\u5BFC\u56FE",source:"",menu:c.component,icon:"chatGPT/ai-component-mind",desc:I18N.ChatGPT.ai_mind_desc,className:"ai-mind",componentTitle:I18N.ChatGPT.ai_mind_component_title},{label:I18N.w.table,title:I18N.ChatGPT.ai_table_title,type:r.Table,points:200,recommends:[I18N.ChatGPT.ai_table_label_1,I18N.ChatGPT.ai_table_label_2,I18N.ChatGPT.ai_table_label_3],aiType:"\u751F\u6210\u8868\u683C",source:"",menu:c.component,icon:"chatGPT/ai-component-table",desc:I18N.ChatGPT.ai_table_desc,className:"ai-table",componentTitle:I18N.ChatGPT.ai_table_component_title},{label:I18N.w.wChart,title:I18N.ChatGPT.ai_Chart_title,type:r.Chart,points:200,recommends:[I18N.ChatGPT.ai_wChart_label_1,I18N.ChatGPT.ai_wChart_label_2,I18N.ChatGPT.ai_wChart_label_3],aiType:"\u751F\u6210\u56FE\u8868",source:"",menu:c.component,icon:"chatGPT/ai-component-chart",desc:I18N.ChatGPT.ai_Chart_desc,className:"ai-chart",componentTitle:I18N.ChatGPT.ai_Chart_component_title},{label:I18N.ChatGPT.magic_fill,title:I18N.ChatGPT.ai_magicFill_title,type:r.AutoFill,points:200,recommends:[I18N.ChatGPT.ai_smart_fill_label_2,I18N.ChatGPT.ai_smart_fill_label_1,I18N.ChatGPT.ai_smart_fill_label_3],aiType:"\u667A\u80FD\u586B\u5145",source:"",menu:c.other,icon:"chatGPT/ai-component-autofill",desc:I18N.ChatGPT.ai_magicFill_desc,className:"ai-magic-fill"},{label:"\u8BED\u4E49\u5316",title:"AI \u8BED\u4E49\u5316",type:r.Semantic,points:200,recommends:["\u5E2E\u6211\u751F\u6210\u4E00\u4E2A\u7535\u5546\u7C7BAPP\uFF0C\u5E76\u4E14\u8F93\u5165\u4E00\u4EFDprd\u6587\u6863","`\u6211\u7231\u52A0\u73ED`\u3002\u8BF7\u5E2E\u6211\u628A\u4E0A\u9762\u8FD9\u6BB5\u8BDD\u8C03\u6574\u7684\u66F4\u52A0\u4E30\u5BCC\u751F\u52A8\u4E00\u70B9","\u5E2E\u6211\u751F\u6210\u4E00\u4EFD2022\u5E74\u56FD\u5BB6\u7ECF\u6D4E\u66F2\u7EBF\u56FE\u30012022\u5E74\u5404\u7701\u7ECF\u6D4E\u6536\u5165\u8868\u683C"],aiType:"MD\u8BED\u4E49\u5316",source:"AI\u8BED\u4E49\u5316\u9762\u677F",menu:c.semantic,icon:"chatGPT/ai-component-autofill",desc:I18N.ChatGPT.ai_magicFill_desc,className:"ai-magic-fill"}]),I={[r.Page]:"\u751F\u6210APP\u9875\u9762",[r.PageV9]:"\u751F\u6210\u539F\u578B\u9875\u9762",[r.Flow]:"\u751F\u6210\u6D41\u7A0B\u56FE",[r.Mind]:"\u751F\u6210\u601D\u7EF4\u5BFC\u56FE",[r.Table]:"\u751F\u6210\u8868\u683C",[r.Chart]:"\u751F\u6210\u56FE\u8868",[r.AutoFill]:"\u667A\u80FD\u586B\u5145",[r.Semantic]:"AI\u6307\u4EE4",[r.AIAssistant]:"AI\u52A9\u624B",[r.Chat]:"AI\u5BF9\u8BDD"}},32847:(He,ee,e)=>{"use strict";e.d(ee,{a:()=>V});var n=e(95549),r=e(38502),c=e(12211),o=e(53732),I=e.n(o),u=e(18381),d=e(67787);const C=d.Ay.div.withConfig({displayName:"styles__StyledIconLoadingStyles",componentId:"sc-17k12g5-0"})(["flex:1;display:grid;grid-row-gap:7px;grid-column-gap:8px;padding:0 12px;grid-template-columns:repeat(5,1fr);.template-box{border-radius:2px;width:100%;height:40px;}@keyframes skeleton-loading{0%{background-position:100% 50%;}to{background-position:0 50%;}}.skeleton-loading{background:",";background-size:400% 100%;animation:skeleton-loading 1.4s ease infinite;}"],N=>N.theme.loading_styles_bg);var h=e(72214);class i extends r.PureComponent{constructor(L){super(L),(0,n.A)(this,"setComponentRef",U=>this.box=U),(0,n.A)(this,"arrayWithNumber",U=>[...Array(U).keys()]),this.state={count:20}}componentDidMount(){const L=this.box.getBoundingClientRect().height,U=this.box.getBoundingClientRect().width,A=L/40*(U/39);this.setState({count:Math.ceil(A)})}render(){const{count:L}=this.state,U=this.arrayWithNumber(L);return(0,h.jsx)(C,{className:"template-list",ref:this.setComponentRef,children:U.map(A=>(0,h.jsx)("div",{className:"template-box skeleton-loading"},A))})}}var f=e(44817),p=e(88255),s=e(72447),l=e(78257),_=e(25409),b=e(19062),a=e(30275),M=e(93971),x=e(67052),g=e(74923),S=e(70933),t=e(67588),v=e(36050),w=e(93413),k=e(54190);const W=d.Ay.div.withConfig({displayName:"styles__StyledIconDetail",componentId:"sc-hq2tyf-0"})(["height:100%;display:flex;flex-direction:column;overflow:hidden;> header{padding:8px 14px 8px 4px;display:flex;align-items:center;justify-content:space-between;.back{display:flex;align-items:center;color:",";cursor:pointer;.arrow-left{margin-right:4px;.svg-icon{width:6px;height:10px;transform:rotate(-180deg);}}span{font-weight:500;}}}.incon-setting{height:32px;}.icons-container{overflow-x:hidden;overflow-y:overlay;flex:1;}.icon-list{display:grid;grid-row-gap:7px;grid-column-gap:8px;padding:0 12px 12px;grid-template-columns:repeat(5,1fr);& > li{display:flex;justify-content:center;align-items:center;border-radius:6px;transition:all 0.2s ease-out 0s;&:hover{background:",";}}}.fromSetting-customized-search{width:226px;height:26px;border-radius:13px;margin:12px auto 0 auto;}> footer{width:100%;height:40px;display:flex;align-items:center;.color-settings{padding:0 12px;flex:1;}}.loading-container{margin-left:0;}"],N=>N.theme.color_text_L1,N=>N.theme.color_btn_secondary_hover),K=d.Ay.div.withConfig({displayName:"styles__StyledLoading",componentId:"sc-hq2tyf-1"})(["width:100%;height:100%;display:flex;align-items:center;justify-content:center;.loading{width:50px;height:50px;}"]);var G=e(3862),$=e(28306),P=e(13642),E=e(88909);const H=(0,c.Mz)([g._X,g.IG,x.QU,x.Ct,S.PL,t.O4,t.MZ],(N,L,U,A,D,B,j)=>({libraryIconDataForTabs:N,iconType:L,iconDefaultColor:U,iconDefaultSize:A,rootProject:D,theme:B,layoutV9:j}));class O extends r.PureComponent{constructor(L){var U;super(L),U=this,(0,n.A)(this,"handleInitMarketTemplate",async()=>{const{currentResources:A}=this.props,{libraryIconDataForTabs:D,dispatch:B}=this.props,{cid:j}=A;if(D.get(j))this.setState({marketTemplate:A});else{const{iconGroupData:Y,marketTemplate:X}=await(0,k.yr)(A);B({type:"icon-panel:update:icon_library_data_map:for:data",payload:{cid:j,iconGroupData:Y}}),X&&this.setState({marketTemplate:X})}}),(0,n.A)(this,"handleSearch",function(A,D){D===void 0&&(D=l.lS.Detail),U.setState({searchIconList:null});const{marketTemplate:B}=U.state,{libraryIconDataForTabs:j}=U.props,{cid:F}=B,Y=j.get(F);if(Y&&A){U.setState({searchLoading:!0});const X=(0,v.s4)(Y.All,A);setTimeout(()=>{U.setState({searchIconList:X,searchLoading:!1})},1e3)}MB.commonGuideHelper.closeGuide(w.c.GUIDE_SEARCH_RESOURCES_DETAILS),MB.commonGuideHelper.markGuideAsRead(w.c.GUIDE_SEARCH_RESOURCES_DETAILS)}),(0,n.A)(this,"handleMouseDown",(A,D,B,j)=>{const{marketTemplate:{is_color_icon:F}}=this.state,{id:Y,groupCid:X}=D;this.props.dispatch({type:"entry:create:svg_icon_path:by:mousedown",payload:{event:A,icon:D,iconName:B,iconDisplayName:j,isMultiColorIcon:F,callback:()=>{this.onRequestUpdateRecentImportesources({itemCid:Y}),this.addTrack(M.k8.Drag,B,X)}}})}),(0,n.A)(this,"handleIconItemCreate",(A,D,B,j)=>{const{marketTemplate:{is_color_icon:F}}=this.state,{id:Y,groupCid:X}=D;this.props.dispatch({type:"entry:create:svg_icon_path:by:mousedown",payload:{event:A,icon:D,iconName:B,iconDisplayName:j,isMultiColorIcon:F,callback:()=>{this.onRequestUpdateRecentImportesources({itemCid:Y}),this.addTrack(M.k8.DoubleClick,B,X)}}})}),(0,n.A)(this,"addTrack",(A,D,B)=>{const{marketTemplate:j}=this.state,{popupsName:F,rootProject:Y,keyword:X=""}=this.props,{policy:z,category:Z,title:J,copyright:te,is_color_icon:ge}=j,pe=Z===G.C&&ge?G.WY:Z,Ce=M.Jj[pe]+"-"+M.un;(0,M.Mi)({popupsName:F,addType:A,source:Ce,category:pe,policy:z,templateGroupName:J,copyright:te,name:D,rootProject:Y,keyword:X,templateGroupCid:B})}),(0,n.A)(this,"onRequestUpdateRecentImportesources",A=>{var D;let{itemCid:B}=A;const{marketTemplate:j}=this.state,Y={projectUpperType:"icon_group",projectUpperCid:j.source_upper_cid||((D=j.icon_group)==null?void 0:D.cid),itemCid:B};(0,k.Cp)(Y)}),(0,n.A)(this,"handleStarResources",A=>{const{marketTemplate:D}=this.state,{onStarResources:B}=this.props;B(A),this.setState({marketTemplate:{...D,is_star:!D.is_star}})}),this.state={marketTemplate:L.currentResources,searchIconList:null,searchLoading:!1}}async componentDidMount(){await this.handleInitMarketTemplate()}async componentDidUpdate(L,U,A){L.currentResources&&this.props.currentResources&&L.currentResources.cid!==this.props.currentResources.cid&&await this.handleInitMarketTemplate()}componentWillUnmount(){P.A.emit(E.P2,{shownMtItemCids:[]})}render(){const{libraryIconDataForTabs:L,className:U,onSetCurrentNodeIcon:A,onBack:D,iconType:B,iconDefaultColor:j,iconDefaultSize:F,theme:Y,from:X,layoutV9:z}=this.props,{marketTemplate:Z,searchIconList:J,searchLoading:te}=this.state,{cid:ge,title:pe,source_upper_cid:Ce}=Z,me=L.get(ge),be=me?Object.keys(me):[],ie=me?me[B]||[]:[],oe=(ie==null?void 0:ie.length)===0,he=J||ie;he.forEach(re=>re.groupCid=Ce);const ce=X===a.Z.iconSelectPopup;return(0,h.jsxs)(W,{className:U,children:[(0,h.jsx)(_.l,{resources:Z,layoutV9:z,onBack:D,onStartTemplates:this.handleStarResources,onSearch:this.handleSearch}),oe?(0,h.jsx)(i,{}):te?(0,h.jsx)(b.S,{children:(0,h.jsx)("span",{children:I18N.Resources.searching.load})}):(0,h.jsx)(h.Fragment,{children:(he==null?void 0:he.length)===0?(0,h.jsx)(p.E,{noIconText:I18N.Popups.iconContent_not_found,iconLink:(J==null?void 0:J.length)===0?"":I18N.Popups.iconContent_not_found_link,theme:Y}):(0,h.jsxs)(h.Fragment,{children:[!ce&&(0,h.jsx)("footer",{children:(0,h.jsx)(s.N,{iconDefaultColor:j,iconDefaultSize:F,iconTabs:J?[]:be,iconType:B,isMultiColorIcon:Z.is_color_icon})}),(0,h.jsx)(Q,{list:he,title:pe,policy:Z.policy,children:(0,h.jsx)("div",{className:I()("icons-container"),children:(0,h.jsx)(f.l,{onMouseDown:this.handleMouseDown,onDoubleClick:this.handleIconItemCreate,onSetCurrentNodeIcon:A,iconList:he,isMultiColorIcon:Z.is_color_icon})})})]})})]})}}const V=(0,u.Ng)(N=>H(N),null,null,{forwardRef:!0})(O),Q=N=>{let{list:L,title:U,policy:A,children:D}=N;return(0,r.useEffect)(()=>{const B=(0,$.Oc)({source:"\u539F\u578B\u5185\u67E5\u770B\u5168\u90E8-\u56FE\u6807",list:L,igName:U,policy:A});P.A.emit(E.jy,{observeMtItemObj:B}),P.A.emit(E.BD)},[L,A,U]),D}},32879:(He,ee,e)=>{"use strict";e.d(ee,{TQ:()=>C,cF:()=>I,d8:()=>d,xj:()=>u});var n=e(67787),r=e(5438),c=e(21066),o=e(51090);const I=n.Ay.div.withConfig({displayName:"styles__StyledCollapseWidgetInsertable",componentId:"sc-1tq3ys7-0"})([".title.hide{display:none;}.flow-collapse-panel{.header{padding-left:12px;padding-right:10px;margin-bottom:0;.right{.arrow-right{display:none;}}}}"]),u=n.Ay.div.withConfig({displayName:"styles__StyledWidgetInsertable",componentId:"sc-1tq3ys7-1"})(["position:relative;width:70px;height:70px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;background:",";color:",";border-radius:6px;margin-bottom:8px;margin-right:8px;cursor:pointer;transition:all 0.2s ease-out;"," span.widget-name{margin-bottom:10px;line-height:12px;text-align:center;color:",";}span.recently-added-highlight{position:absolute;right:8px;top:8px;display:inline-block;width:6px;height:6px;border-radius:50%;background-color:",";}.widget-key{width:14px;height:14px;position:absolute;top:0;left:0;rect{&:nth-child(1){fill:",";}&:nth-child(2){fill:",";}}}&:hover{background:",";}&:lang(en){span{margin:0;flex:1;display:flex;align-items:center;}}&.is-dropdown{.widget-icon-wrapper{position:relative;.arrow{position:absolute;top:calc(50% - 7px);border-radius:4px;right:8px;cursor:pointer;&.wRichText{right:6px;}&:hover,&.is-expand{background:",";}&.is-expand{transform:rotate(180deg);}}.corner-icon{position:absolute;width:12px;height:12px;border-radius:3px;background:",";border:1px solid ",";display:flex;align-items:center;justify-content:center;overflow:hidden;top:calc(50% + 1px);right:22px;&.icon-image-placeholder{rect{fill:none;stroke:",";}path{fill:",";}}}}}&.active{opacity:0.5;}"],h=>h.theme.color_navigation_hover,h=>h.theme.color_text_L3,r.n,h=>h.theme.color_text_L3,h=>h.theme.color_proto,h=>h.theme.color_bg_border_01,h=>h.theme.color_bg_menu,h=>h.theme.color_btn_secondary_active,h=>h.theme.color_slider_normal,h=>h.theme.color_bg_white,h=>h.theme.color_bg_border_01,h=>h.theme.color_text_L1,h=>h.theme.color_text_disabled01),d=(0,n.Ay)(c.Ay).withConfig({displayName:"styles__StyledWidgetInsertableContextMenu",componentId:"sc-1tq3ys7-2"})(["",";ul{width:160px;min-width:160px;li{> a{padding-left:8px;.option-icon-box{display:flex;align-items:center;margin-right:8px;.checked{width:16px;height:16px;margin-right:4px;opacity:0;&.show{opacity:1;}}.option-icon{width:20px;height:20px;&.icon-image-placeholder{rect{fill:none;stroke:",";}path{fill:",";}}}}}}}"],o.ZJ,h=>h.theme.color_text_L1,h=>h.theme.color_text_disabled01),C=n.Ay.div.withConfig({displayName:"styles__StyledDivider",componentId:"sc-1tq3ys7-3"})(["width:100%;height:1px;background:",";margin:8px 0;"],h=>h.theme.color_bg_border_01)},33515:(He,ee,e)=>{"use strict";e.d(ee,{se:()=>b,VA:()=>a,Ay:()=>M});var n=e(95549),r=e(25582),c=e.n(r),o=e(38502),I=e(17307),u=e(83199),d=e(53732),C=e.n(d),h=e(67787),i=e(58603);const f=(0,h.Ay)(i.A).withConfig({displayName:"styles__StyledDropdownList",componentId:"sc-1xo6v2t-0"})(['[type="button"]{display:flex;}&.is-open{.options-opener{border:1px solid ',";.expand-icon{transform:rotate(180deg);margin-left:auto;}}}&.is-disabled{.options-opener{&:hover{border-color:#e8e8e8;}.expand-icon{display:none;}}}"],x=>x.theme.color_bg_border_02),p=h.Ay.div.withConfig({displayName:"styles__StyledLinkOpener",componentId:"sc-1xo6v2t-1"})(["&.options-opener{width:202px;height:28px;border:1px solid transparent;display:flex;align-items:center;border-radius:6px;.opener-icon-container{width:24px;height:24px;display:flex;justify-content:center;align-items:center;margin-left:2px;flex-shrink:0;}.select-title{color:",";margin:0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;&.has-icon{margin:0 6px 0 4px;}&.is-placeholder{color:",";}}.expand-icon.svg-icon{color:",";width:26px;height:26px;flex-shrink:0;}&:hover{border:1px solid ",";.expand-icon{color:",";margin-left:auto;}}.page1,.page2{&.icon-arrow-top{.icon{transform:rotate(-90deg);}}&.icon-arrow-left{.icon{transform:rotate(-180deg);}}&.icon-arrow-bottom{.icon{transform:rotate(90deg);}}&::before{display:none;}.icon{width:12px;height:7px;}}}"],x=>x.theme.color_text_L1,x=>x.theme.color_text_link_normal,x=>x.theme.color_text_L3,x=>x.theme.color_bg_border_02,x=>x.theme.color_text_L1),s=h.Ay.div.withConfig({displayName:"styles__StyledLinkOpenerWithToolTip",componentId:"sc-1xo6v2t-2"})(["width:202px;height:28px;border:1px solid transparent;display:flex;align-items:center;border-radius:6px;.opener-icon-container{width:24px;height:24px;display:flex;justify-content:center;align-items:center;margin-left:2px;flex-shrink:0;}.select-title{color:",";margin:0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:80px;&.has-icon{margin:0 6px 0 4px;}&.is-placeholder{color:",";}}.expand-icon.svg-icon{color:",";width:26px;height:26px;flex-shrink:0;}&:hover{border:1px solid ",";.expand-icon{color:",";margin-left:auto;}}.page1,.page2{&.icon-arrow-top{.icon{transform:rotate(-90deg);}}&.icon-arrow-left{.icon{transform:rotate(-180deg);}}&.icon-arrow-bottom{.icon{transform:rotate(90deg);}}&::before{display:none;}.icon{width:12px;height:7px;}}.Tooltip{display:flex;align-items:center;}"],x=>x.theme.color_text_L1,x=>x.theme.color_text_link_normal,x=>x.theme.color_text_L3,x=>x.theme.color_bg_border_02,x=>x.theme.color_text_L1);var l=e(72214);class _ extends o.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"setComponentRef",g=>this.dropdown=g),(0,n.A)(this,"close",()=>this.dropdown.close()),(0,n.A)(this,"open",()=>this.dropdown.open())}render(){const{forceDarkTheme:g=!1,isOpen:S=!1,renderMenu:t,className:v,title:w,icon:k,menux:W,isPlaceholder:K,renderTitle:G,isOpenerAttrDisabled:$,shouldPreventScrollingPropagation:P,shouldCloseOnSelect:E=!0,isPosition2:H=!1,customOpener:O,...V}=this.props;return(0,l.jsx)(f,{isOpen:S,ref:this.setComponentRef,shouldPreventScrollingPropagation:P,isDisabled:$,menuX:W,isPlaceholder:!0,className:"link-opener-wrapper",opener:O||(0,l.jsx)(b,{className:v,icon:k,title:w,isPlaceholder:K,renderTitle:G}),menuClassName:C()("link-wrapper",v),menu:t,forceDarkTheme:g,shouldCloseOnSelect:E,isPosition2:H,...V})}}_.propTypes={isOpen:c().bool,title:c().string,menux:c().string,isPlaceholder:c().bool,shouldPreventScrollingPropagation:c().bool,isOpenerAttrDisabled:c().bool,className:c().string,renderMenu:c().object,icon:c().object,renderTitle:c().func,forceDarkTheme:c().bool,shouldCloseOnSelect:c().bool};const b=x=>{let{className:g,title:S,icon:t,isPlaceholder:v,renderTitle:w}=x;return(0,l.jsxs)(p,{className:C()("options-opener",g),children:[t&&(0,l.jsx)("div",{className:"opener-icon-container",children:t}),w&&w(),S&&(0,l.jsx)("p",{className:C()("select-title",{"is-placeholder":v,"has-icon":t}),children:S}),(0,l.jsx)(I.C,{className:"expand-icon",name:"common/expand@26"})]})};b.propTypes={title:c().string,className:c().string,icon:c().object,isPlaceholder:c().bool,renderTitle:c().func};const a=x=>{let{className:g,title:S,icon:t,isPlaceholder:v,renderTitle:w,onShowTipsByTarget:k}=x;return(0,l.jsx)(u.A,{direction:"down",enterHoverTime:200,isSkipShortTimerHover:!0,isShowTipsByTarget:k&&k,tipClassName:"fixed-transform-y10",content:w&&w()||S,children:(0,l.jsxs)(s,{className:C()("options-opener",g),children:[t&&(0,l.jsx)("div",{className:"opener-icon-container",children:t}),w&&w(),S&&(0,l.jsx)("p",{className:C()("select-title",{"is-placeholder":v,"has-icon":t}),children:S}),(0,l.jsx)(I.C,{className:"expand-icon",name:"common/expand@26"})]})})};a.propTypes={title:c().string,className:c().string,icon:c().object,isPlaceholder:c().bool,renderTitle:c().func,onShowTipsByTarget:c().func};const M=_},33568:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>$});var n=e(38502),r=e(69623),c=e(18381),o=e(53732),I=e.n(o),u=e(94585),d=e.n(u),C=e(45709),h=e(25582),i=e.n(h),f=e(67787),p=e(58320),s=e(72214);const l=P=>{let{isOpen:E,onConfirm:H,onClose:O,className:V}=P;return(0,s.jsxs)(_,{isOpen:E,className:I()("fz-auth-modal",V),title:"\u5B57\u4F53\u4F7F\u7528\u987B\u77E5",confirmText:"\u540C\u610F",cancelText:"\u4E0D\u540C\u610F",onConfirm:H,onCancel:O,onClose:O,width:400,children:[(0,s.jsx)("p",{children:"\u5C0A\u656C\u7684\u58A8\u5200\u7528\u6237\uFF0C\u60A8\u597D!"}),(0,s.jsx)("p",{children:"\u60A8\u53EF\u4EE5\u5728\u58A8\u5200\u8BBE\u8BA1\u5DE5\u5177\u4E2D\u514D\u8D39\u8BD5\u7528\u65B9\u6B63\u5B57\u4F53\uFF0C\u4EE5\u5448\u73B0\u66F4\u597D\u7684\u5728\u7EBF\u8BBE\u8BA1\u6548\u679C\u3002\u5F53\u60A8\u5C06\u65B9\u6B63\u5B57\u4F53\u7528\u4E8E\u5546\u4E1A\u7528\u9014\u65F6\uFF0C\u9700\u8981\u4E3B\u52A8\u8054\u7CFB\u65B9\u6B63\u5B57\u5E93\u8D2D\u4E70\u6388\u6743\u3002\u300C\u514D\u8D39\u83B7\u5F97\u8BD5\u7528\u6743\uFF0C\u4ED8\u8D39\u83B7\u5F97\u4F7F\u7528\u6743\u300D\u3002"}),(0,s.jsx)("br",{}),(0,s.jsxs)("p",{children:["\u65B9\u6B63\u5B57\u5E93\u4EC5\u9488\u5BF9\u6700\u7EC8\u7528\u6237\u7684\u5546\u4E1A\u884C\u4E3A\u6536\u53D6\u6388\u6743\u8D39\u3002\u6709\u5173\u65B9\u6B63\u5B57\u5E93\u6388\u6743\u6A21\u5F0F\u548C\u4EF7\u683C\u7684\u8BE6\u7EC6\u5185\u5BB9\uFF0C\u8BF7\u4ED4\u7EC6\u9605\u8BFB",(0,s.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"http://www.foundertype.com/index.php/About/bookAuth/key/my_sysq.html",children:"\u300A\u65B9\u6B63\u5B57\u5E93\u201C\u5546\u4E1A\u53D1\u5E03\u201D\u6388\u6743\u4EF7\u683C\u8BF4\u660E\u300B"})]})]})};l.propTypes={isOpen:i().bool,className:i().string,onConfirm:i().func,onClose:i().func};const _=(0,f.Ay)(p.H).withConfig({displayName:"FZAuthModal__StyledModal",componentId:"sc-1drz5mu-0"})(["&.fz-auth-modal{background-color:",";border:1px solid ",";p{color:",";}.content{a{color:",";}}}"],P=>P.theme.color_bg_white,P=>P.theme.color_bg_border_02,P=>P.theme.color_text_L1,P=>P.theme.color_text_link_normal),b=l;var a=e(15515),M=e(83199),x=e(34677),g=e(6843),S=e(17307),t=e(99203),v=e(73662),w=e(4235),k=e(69815),W=e(91363),K=e(55171);const{w4:G}=x;function $(P){let{fontFamily:E,fontWeight:H,fontStyle:O,wbiVersion:V,isShowFontWeightLabel:Q,dispatch:N,handleChange:L,handleFakeOverrideChange:U,isTextEditing:A,handleChangeBatch:D,subMenuDirection:B,positionRelative:j,isMissFont:F,fontSize:Y,lineHeight:X,dropdownPosition:z,renderTitle:Z,renderArrow:J}=P;const te=(0,c.d4)(v.y.query.getFontLocalList),ge=(0,c.d4)(w.p$),[pe,Ce]=(0,n.useState)({top:300,left:0}),[me,be]=(0,n.useState)(!1),[ie,oe]=(0,n.useState)(!1),[he,ce]=(0,n.useState)(E),[re,fe]=(0,n.useState)(H),[Se,Me]=(0,n.useState)(O),Ie=(0,n.useRef)(!1),de=(0,n.useRef)(!1),xe=(0,n.useRef)(null),Le=(0,n.useRef)(()=>null),ve=(0,n.useRef)(()=>null),je=(0,n.useRef)(),We=(0,n.useRef)();(0,n.useLayoutEffect)(()=>{me||(ce(E),fe(H),Ie.current=!1,de.current=!1)},[me,E,H]),(0,n.useEffect)(()=>{ce(E),fe(H),Me(O)},[me,ge]);const Ae=nt=>{const tt=(0,t.dv)(nt),ct=tt.ff,ht=(0,C._K)(tt.fw),It=(0,C.LR)(tt.fw)?"italic":"normal";return[ct,ht,It,tt.defaultFw]},we=()=>{Ie.current||de.current&&(clearTimeout(je.current),We.current=setTimeout(()=>{A?(L(he,"fontFamily"),L(re,"fontWeight"),L(Se,"fontStyle")):N({type:"entry:set:text:attr:fakeOverride:restore"})},200))};(0,n.useEffect)(()=>()=>{we()},[]),(0,n.useEffect)(()=>{me?A&&N({type:"draft:update:state",payload:{isStopAutoSave:!0}}):A&&N({type:"draft:update:state",payload:{isStopAutoSave:!1}})},[me,N]);const _e=async nt=>{const tt=nt.value,ct=nt.type==="cloud",ht=()=>{sdkStore.combineMergeMark("font-style-family-change");const It=(0,k.qp)(he,Y);if(ct){const it=Ae(nt);if(L(it[0],"fontFamily"),re!=="bold"&&Se!=="italic")L(it[1],"fontWeight"),L(it[1]==="bold","bold"),Se!==it[2]&&L(it[2],"fontStyle");else{const{isAllWeightItalic:Tt,isAllWeightOverBold:Lt}=(0,t.rB)(nt);Tt||Lt?(re!=="bold"&&L(it[1],"fontWeight"),Se!==it[2]&&L(it[2],"fontStyle"),L(it[1]==="bold","bold")):re!=="bold"&&L(it[1],"fontWeight")}X===It&&L((0,k.qp)(it[0],Y),"lineHeight")}else L(tt,"fontFamily"),re!=="bold"&&L("regular","fontWeight"),L(re==="bold","bold"),X===It&&L((0,k.qp)(tt,Y),"lineHeight");if(sdkStore.combineMerge("font-style-family-change"),(0,W.rr)({operation_type:"\u5E94\u7528\u5B57\u4F53",font_type:ct?"\u4E91\u7AEF":"\u5B98\u65B9"}),!!D)if(ct){const it=Ae(nt);D({fontFamily:nt.value,fontWeight:it[3]||it[1],fontStyle:it[2],cloudFontKey:it[0]})}else D({fontFamily:tt,fontWeight:re!=="bold"?"regular":void 0})};if((0,t.x7)(tt))oe(!0),new Promise((it,Tt)=>{Le.current=it,ve.current=Tt}).then(()=>{ht(),(0,a.cH)("FZFontAuthInformed",!0),oe(!1)},()=>{oe(!1)});else if(G.includes(tt))ht();else try{ct||(await new(d())(tt).load(),await new(d())(tt,{waight:(0,C._y)(re,!1)}).load())}catch(It){}finally{ht()}Ue()},Te=async nt=>{const tt=[];if(nt.type==="cloud"){const ct=Ae(nt);if(tt.push(["fontFamily",ct[0]]),re!=="bold"&&Se!=="italic")tt.push(["fontWeight",ct[1]],["fontStyle",ct[2]]);else{const{isAllWeightItalic:ht,isAllWeightOverBold:It}=(0,t.rB)(nt);ht||It?(re!=="bold"&&tt.push(["fontWeight",ct[1]]),tt.push(["fontStyle",ct[2]])):re!=="bold"&&tt.push(["fontWeight",ct[1]])}}else tt.push(["fontFamily",nt.value]);clearTimeout(We.current),je.current=setTimeout(()=>{U(tt)},200)},Ye=(nt,tt)=>{let ct=nt.value;nt.type==="cloud"&&(ct=nt.weightExtKeyKV[tt.value]);const ht=tt.value,It=(0,C._K)(ht),it=C.S0[It]!==void 0,Tt=(0,C.LR)(ht)?"italic":"normal";return{nextFontFamily:ct,nextFontWeight:it?It:"regular",nextFontStyle:Tt,nextBold:It==="bold",fontWeightNoItalic:It}},Fe=async(nt,tt)=>{const ct=nt.type==="cloud",{nextFontFamily:ht,nextFontWeight:It,nextFontStyle:it,fontWeightNoItalic:Tt}=Ye(nt,tt);try{G.includes(ht)||(ct?await new(d())(ht).load():await new(d())(ht,{weight:(0,C._y)(Tt,!1),style:it}).load())}catch(Lt){}finally{sdkStore.combineMergeMark("font-style-weight-change"),de.current&&L(re,"fontWeight"),L(ht,"fontFamily"),L(It,"fontWeight"),L(It==="bold","bold"),it!==Se&&L(it,"fontStyle");const Lt=(0,k.qp)(he,Y);X===Lt&&L((0,k.qp)(ht,Y),"lineHeight"),sdkStore.combineMerge("font-style-weight-change"),(0,W.rr)({operation_type:"\u5E94\u7528\u5B57\u4F53",font_type:ct?"\u4E91\u7AEF":"\u5B98\u65B9"}),D&&D(ct?{fontFamily:nt.value,fontWeight:Tt,fontStyle:it}:{fontFamily:ht,fontWeight:Tt,fontStyle:it}),Ue()}},Ve=async(nt,tt)=>{const{nextFontFamily:ct,nextFontStyle:ht,nextFontWeight:It}=Ye(nt,tt);clearTimeout(We.current),je.current=setTimeout(()=>{const it=[];it.push(["fontFamily",ct]),it.push(["fontStyle",ht]),It!==H&&it.push(["fontWeight",It]),U(it)},200)},rt=()=>{var nt;const tt=(nt=xe.current)==null?void 0:nt.getBoundingClientRect();if(tt)if(z==="top"){const ct=tt.top-432+((j==null?void 0:j.yOffset)||0),ht=tt.left-240/2+((j==null?void 0:j.xOffset)||0);Ce({top:ct,left:ht})}else if(z==="bottom"){const ct=tt.bottom+((j==null?void 0:j.yOffset)||0),ht=tt.left-tt.width/2+((j==null?void 0:j.xOffset)||0);Ce({top:ct,left:ht})}else{let ct=tt.top-82+((j==null?void 0:j.yOffset)||0),ht=tt.left-250+((j==null?void 0:j.xOffset)||0);ct+432-window.innerHeight>0&&(ct=window.innerHeight-432-18),Ce({top:ct,left:ht})}be(!me)},Ue=()=>{be(!1),we()},et=()=>{const{chooseFont:nt,fontWeightList:tt}=(0,t.Y_)(te,he,re);if(!Q||tt.length===0)return"";const ct=tt.length;if(ct===0||ct===1||!nt)return"";const ht=(0,C.KI)(nt,tt),It=(0,t.Ls)(re,ht,Se);return(0,C.cB)(It)||It},lt=nt=>{var tt,ct,ht,It;let it=nt.target;for(!((tt=(ct=it).closest)!=null&&tt.call(ct,"#font-list-panel"))&&!((ht=(It=it).closest)!=null&&ht.call(It,".font-family-label"))&&Ue();it.nodeName!=="BODY";){var Tt;if(it=it.parentElement,!it)return;if((Tt=it.classList)!=null&&Tt.contains("typeface2-btn")){it!==xe.current&&Ue();return}}},Je=(0,t.c9)(he,te),Xe=et(),st=Q&&Xe.length>0?Je+","+Xe:Je;return(0,s.jsxs)("div",{className:"typeface2-btn",ref:xe,children:[(0,s.jsxs)(g.dA,{className:I()("font-family-label",{"is-open":me}),onClick:rt,children:[(0,s.jsxs)("button",{children:[(F||D&&(0,t.Zf)(te,he,re))&&(0,s.jsx)(M.A,{content:"\u5B57\u4F53\u7F3A\u5931",direction:"down",distance:5,enterHoverTime:500,children:(0,s.jsx)(S.C,{isColorPure:!0,name:"design/notify/questionMark",className:"questionMark"})}),Z?Z(st):(0,s.jsx)("span",{children:st})]}),J?J():(0,s.jsx)(S.C,{name:"arrow/down",className:"caret",size:24})]}),me&&(0,r.createPortal)((0,s.jsx)(K.Z,{fontFamily:he,fontWeight:re,fontStyle:Se,position:pe,subMenuDirection:B,clickFF:nt=>{Ie.current=!0,_e(nt)},clickFW:(nt,tt)=>{Ie.current=!0,Fe(nt,tt)},hoverFF:nt=>{de.current=!0,Te(nt)},hoverFW:(nt,tt)=>{de.current=!0,Ve(nt,tt)},clearOverrideAttr:we,handleClickOutSideToClose:lt,fontListOriginal:te,setIsOpenListPanel:be}),document.body),ie&&(0,s.jsx)(b,{isOpen:!0,onConfirm:Le.current,onClose:ve.current}),(0,s.jsx)(g.e,{})]})}},33573:(He,ee,e)=>{"use strict";e.d(ee,{Ay:()=>p,NI:()=>i,V:()=>h,pG:()=>f});var n=e(95549),r=e(25582),c=e.n(r),o=e(38502),I=e(69405),u=e(88194),d=e(72214);const{push:C}=(0,I.O)(),h="/mb-proto2/images/preview/image-load.png",i=s=>{let{flpakKey:l,ssKey:_,ssTaskMode:b,ssZoomMode:a}=s;return l&&_&&b&&a?"/flatshot/sync.png?tMod="+b+"&zMod="+a+"&k="+l+"&ssK="+_:h},f=async s=>{let{projectMetaCid:l,snapshotKey:_,mode:b,ssZoomMode:a}=s;const M=await new Promise((S,t)=>{const v=i({flpakKey:l,ssKey:_,ssTaskMode:b||u.rY.PNG_PAGE,ssZoomMode:a||u.BU.LETTERBOX_256}),w=new Image;w.onerror=()=>t(new Error(I18N.dUtils.unsupported)),w.onload=()=>S(w),w.src=v});if(!M)return;const x=M.width,g=M.height;return{width:x,height:g}};class p extends o.PureComponent{constructor(l){super(l),(0,n.A)(this,"setElementRef",_=>this.$elem=_),(0,n.A)(this,"loadSnapshot",async()=>{const{projectMetaCid:_,snapshotKey:b,isVisible:a,mode:M,ssZoomMode:x}=this.props;if(a&&!this.isUnmounted){{const g=this.$elem;await new Promise((S,t)=>{const v=i({flpakKey:_,ssKey:b,ssTaskMode:M||u.rY.PNG_PAGE,ssZoomMode:x||u.BU.LETTERBOX_256});g.onerror=()=>{g.src=h,t(new Error("failed to load "+v))},g.onload=()=>S(g),g.src=v})}this.imageDidLoad=!0}}),this.isUnmounted=!1,this.retryTimer=null,this.imageDidLoad=!1}componentDidMount(){const{isVisible:l}=this.props;l&&!this.imageDidLoad&&this.loadSnapshot()}componentDidUpdate(l){const{isVisible:_}=this.props;_&&this.props.snapshotKey!==l.snapshotKey&&(clearTimeout(this.retryTimer),this.generateSnapshotTask()),_&&!this.imageDidLoad&&(clearTimeout(this.retryTimer),this.generateSnapshotTask())}componentWillUnmount(){this.isUnmounted=!0,clearTimeout(this.retryTimer)}generateSnapshotTask(l){l===void 0&&(l=5),C(this.loadSnapshot).catch(b=>{this.retryTimer=setTimeout(()=>{this.generateSnapshotTask(l*2)},l*1e3)})}render(){return(0,d.jsx)("img",{ref:this.setElementRef,src:h,style:this.props.style})}}(0,n.A)(p,"propTypes",{projectMetaCid:c().string.isRequired,isVisible:c().bool.isRequired})},33680:(He,ee,e)=>{"use strict";e.d(ee,{Kb:()=>r,Pb:()=>d,SU:()=>I,kN:()=>u,nA:()=>c});var n=e(11032);const r=(C,h)=>{let[i,[f,p],[s,l],_]=h;return(0,n.qT)({url:i,tab:C,height:l,width:s,tags:_})},c=(C,h)=>{let{url:i,name:f,thumb_url:p,res_id:s}=h;return(0,n.ZU)({url:i,tab:C,name:f,thumb_url:p,res_id:s})},o=C=>C.sort(()=>Math.random()-.5),I=C=>{const h=[],i=[];return C.forEach(f=>f.width/f.height>1?h.push(f):i.push(f)),[h,i]},u=(C,h)=>{const i=[];if(C.length===0||h.length===0)return o([...C,...h]);const f=o(C),p=o(h);return i.push(...o([f.pop(),p.pop()])),i.push(...o([...f,...p])),i},d=C=>{const h=C[0],i=C[1];return 218/(h.width/h.height+i.width/i.height)}},34121:(He,ee,e)=>{"use strict";e.d(ee,{Ed:()=>i,Hz:()=>b,NA:()=>l,Pv:()=>h,X3:()=>M,gu:()=>x,iZ:()=>p,o:()=>s,pV:()=>_});var n=e(85584),r=e(20640),c=e(24229),o=e(26034),I=e(53940),u=e(85449),d=e(93413),C=e(20089);const h=(g,S)=>{const v=(0,n.Bq)(g.sup||"root",S).children.map(W=>W.data),k=v.findIndex(W=>W.cid===g.key)+1;v.splice(k,0,null),v.forEach((W,K)=>{if(W&&(W.sup!==g.sup||W.zIndex!==K+1)){const G=sdkStore.getHotItem(W.cid),$={...G,hotAttr:{...G.hotAttr,zIndex:K+1}};sdkStore.updateHotItem($)}})},i=(g,S)=>{const t={};g.forEach(w=>t[w.key]={cid:w.key,...w.hotAttr,sup:w.sup,sub:w.sub});const{treeData:v}=f(t,S);return v},f=(g,S)=>{const{cid:t,data:v,children:w}=S,k=!!g[t];let W=!1;const K=g[t],G=w.map($=>{const{isChanged:P,treeData:E}=f(g,$);return P&&(W=!0),E});return k||W?{isChanged:!0,treeData:{...S,data:k?K:v,children:W?G:w}}:{isChanged:!1,treeData:S}},p=(g,S)=>{const t={...S};return g.forEach(v=>t[v.key]=v),t},s=g=>{const{hotAttr:{asFolder:S,zIndex:t,name:v,...w},sup:k}=g,W={name:v+" Copy",zIndex:t+1,sup:k,asFolder:S,...w},K=b(W);return sdkStore.dupRBPageSub(g.key,K.key),K},l=(g,S)=>{var t;g!=null&&(t=g.sub)!=null&&t.length&&g.sub.forEach(v=>{const w=sdkStore.getHotItem(v);if(w.hotAttr.bunch===C.x.RbPage){const k={...w.hotAttr,sup:S},W=b(k);sdkStore.dupRBPageSub(w.key,W.key),l(w,W.key)}})},_=function(g,S,t){return S===void 0&&(S=!1),t===void 0&&(t=!1),S?I18N.LeftSidePanel.page_folder+" "+(g.filter(v=>v&&(0,n.Mo)(v)).length+1):(t?I18N.LeftSidePanel.widget:I18N.LeftSidePanel.page)+" "+(g.filter(v=>v&&!(0,n.Mo)(v)).length+1)},b=g=>{var S;let{name:t,sup:v,sub:w=[],zIndex:k=1,asFolder:W=!1,device:K="customize",deviceH:G=0,deviceW:$=0,deviceOrientation:P="portrait",defaultCanvasKey:E="",w:H=0,h:O=0,alignH:V=[],alignV:Q=[],icon:N,fill:L,deviceScroll:U="vertical",isShowDeviceGuide:A=!0,store:D=sdkStore,key:B=(0,c.cF)("rbp"),libKey:j=""}=g;const F=o.N[C.x.RbPage](t,k,$,G,N||(0,r.eO)({asFolder:W}),H,O,""),Y=(S=(0,u.dP)())==null?void 0:S.ui.fixedLayout.preference.theme,X={sup:v,sub:w,key:B,hotAttr:{...F,asFolder:W,device:K,deviceScroll:U,deviceOrientation:P,alignH:V,alignV:Q,fill:L||{fillIsVisible:!1,fill:"solid",solidColor:I.kV[Y||I.Sx.LIGHT]},isShowDeviceGuide:A,libKey:j,defaultCanvasKey:E}};return D.updateHotItem(X),X},a=(g,S,t)=>{const v={deleteTime:Math.floor(Date.now()/1e3),deleteUserName:S==null?void 0:S.name};t.updateHotAttrMerge(g,{deleteInfo:v});const w=sdkStore.getSubHotItemList(g).filter(k=>k.hotAttr.bunch===C.x.RbPage);w!=null&&w.length&&w.forEach(k=>a(k.key,S,t))},M=function(g,S,t){t===void 0&&(t=sdkStore),a(g,S,t),t.moveHotItem(g,"B@trash")},x=(g,S)=>{g.forEach(t=>{M(t.key||t.cid,S)}),MB.commonGuideHelper.tryToShowGuide(d.c.GUIDE_TOOLBAR_TRASH)}},34771:(He,ee,e)=>{"use strict";e.d(ee,{Ay:()=>u,eD:()=>I,nl:()=>n.n,np:()=>c});var n=e(89208),r=e(67787);const c=(0,r.Ay)(n.A).withConfig({displayName:"ResourcesNewSlideNav__ResourcesNewSlideNavNoBackGround",componentId:"sc-ny9lwh-0"})(["height:32px;min-height:32px;.nav-underline{display:none;}.nav-item{flex:none;justify-content:center;font-size:12px;padding:4px 6px;margin-right:16px;}.nav-item:not(:first-child){margin-left:unset;}.nav-label{flex-shrink:0;padding:0;}padding:0;.nav-item{color:",";&.active{color:",";font-weight:500;}}"],d=>d.theme.color_text_L2,d=>d.theme.color_text_L1),o=(0,r.Ay)(n.A).withConfig({displayName:"ResourcesNewSlideNav",componentId:"sc-ny9lwh-1"})(["height:100%;min-height:40px;margin:0;padding:0;display:flex;align-items:center;.nav-underline{display:none;}.nav-item{flex:none;justify-content:center;font-size:12px;height:24px;padding:4px 6px;border-radius:4px;color:",";margin-left:16px;&.active{color:",";font-weight:500;background:",";}&:first-child{margin-left:unset;}}.nav-label{flex-shrink:0;padding:0;}"],d=>d.theme.color_text_L2,d=>d.theme.color_text_L1,d=>d.theme.color_btn_secondary_active),I=(0,r.Ay)(o).withConfig({displayName:"ResourcesNewSlideNav__ResourcesNewSlideNavBlueBackGround",componentId:"sc-ny9lwh-2"})([".nav-item{height:",";border:1px solid ",";padding:8px 12px;&.active{color:",";font-weight:500;background:",";border-color:",";}}"],d=>(d.height||24)+"px",d=>d.theme.color_bg_border_01,d=>d.theme.color_text_link_normal,d=>d.theme.color_bg_tab,d=>d.theme.color_bg_tab),u=o},34999:(He,ee,e)=>{"use strict";e.d(ee,{Q:()=>o});var n=e(38502),r=e(67787),c=e(72214);const o=u=>{let{query:d}=u;return(0,c.jsxs)(I,{children:[(0,c.jsx)("img",{src:"/mb-proto2/images/interaction/no_result.png"}),(0,c.jsx)("p",{children:d?"\u6CA1\u6709\u5339\u914D\u7684\u7ED3\u679C":"\u5F53\u524D\u573A\u666F\u4E2D\u65E0\u7EC4\u4EF6"})]})},I=r.Ay.div.withConfig({displayName:"NoResultContainer__StyledNoResultContainer",componentId:"sc-8na15l-0"})(["display:flex;flex-flow:column;justify-content:center;align-items:center;flex:1;padding-bottom:8px;img{width:88px;height:88px;}"])},35298:(He,ee,e)=>{"use strict";e.d(ee,{CN:()=>r,SC:()=>o,VA:()=>I,ks:()=>c,zw:()=>u});var n=e(67787);const r=n.Ay.div.withConfig({displayName:"styles__StyledFindAssetsPanel",componentId:"sc-1oeyzvg-0"})(["width:100%;display:flex;flex-direction:column;.switch-tab{position:relative;display:flex;align-items:center;width:100%;padding:6px;height:auto;.nav-item{margin-left:8px;&:first-child{margin-left:0;}}}"]),c=n.Ay.div.withConfig({displayName:"styles__StyledFindPictures",componentId:"sc-1oeyzvg-1"})(["display:flex;flex-direction:column;width:100%;padding-bottom:10px;row-gap:8px;.picture-panel{position:relative;width:250px;&.resources-list.expanded .card-header{margin-bottom:8px;width:calc(100% - 16px);padding-left:12px;}.collapse-box{padding:0 12px;position:relative;&:hover{.scroll-bar{opacity:1;}}.picture-item-container{display:flex;column-gap:8px;align-items:center;padding:0 2px;overflow:auto hidden;scrollbar-width:none;-ms-overflow-style:none;&::-webkit-scrollbar{display:none;}.pic-item{flex:0 0 auto;margin-bottom:0;}}.scroll-bar{transition:opacity 0.15s ease-in-out;opacity:0;display:flex;align-items:center;justify-content:center;width:20px;height:28px;position:absolute;top:calc((100% - 28px) / 2);border-radius:6px;backdrop-filter:blur(10px);background-color:#00000014;&:hover{background-color:#00000026;}&.dark{background-color:#FFFFFF14;&:hover{background-color:#FFFFFF26;}}&.left{left:6px;}&.right{right:6px;}.scroll-arrow{width:8px;height:12px;color:",";&.left{transform:rotate(180deg);}}}}}padding-top:8px;"],d=>d.theme.color_text_L1),o=n.Ay.div.withConfig({displayName:"styles__StyledPicturesDetail",componentId:"sc-1oeyzvg-2"})(["display:flex;flex-direction:column;height:100%;.picture-list{padding:0 12px;height:100%;transform:translateX(0px);}"]),I=n.Ay.div.withConfig({displayName:"styles__StyledFindStickers",componentId:"sc-1oeyzvg-3"})(["display:flex;flex-direction:column;width:100%;height:calc(100% - 40px);overflow:hidden auto;padding-bottom:10px;row-gap:8px;padding-top:8px;.sticker-group-item .group-header{padding:0 12px;}.sticker-group-item{display:flex;flex-direction:column;row-gap:8px;.group-header{display:flex;align-items:center;justify-content:space-between;height:32px;padding:0 12px;.left{display:flex;align-items:center;justify-content:center;column-gap:4px;.title{color:",";}.mat-member{width:12px;height:12px;}}.right{display:flex;align-items:center;height:100%;color:",";cursor:pointer;.arrow-right{width:6px;height:10px;margin-left:10px;}}}.content{width:226px;margin-left:12px;display:grid;grid-template-columns:repeat(3,66px);grid-template-rows:repeat(2,56px);gap:8px 6px;padding:7px;border:1px solid ",";border-radius:6px;}}"],d=>d.theme.color_text_L1,d=>d.theme.color_text_L3,d=>d.theme.color_btn_secondary_hover),u=n.Ay.div.withConfig({displayName:"styles__StyledStickersDetail",componentId:"sc-1oeyzvg-4"})(["display:flex;flex-direction:column;height:100%;header{padding:8px 14px 8px 5px;}.sticker-item-list{padding:8px 12px;}"])},35719:(He,ee,e)=>{"use strict";e.d(ee,{B3:()=>o,EY:()=>d,Fw:()=>u,TN:()=>C,pt:()=>I,tI:()=>h,vH:()=>i});var n=e(67787),r=e(51090),c=e(23422);const o=(0,n.AH)(["&:hover{.open-lib-icon,.clear-style-ref-icon{display:block;}.color-btn-has-hex-input{.color-btn-wrap.is-used-style-ref{max-width:122px;}}}"]),I=(0,n.Ay)(c.I$).withConfig({displayName:"styles__StyledColorThumbnail",componentId:"sc-1aky3bu-0"})(["width:16px;height:16px;border-radius:4px;border:none;.thumbnail{border:solid 1px ",";border-radius:4px;}&:before{position:absolute;content:'';width:16px;height:16px;left:-1px;top:-1px;cursor:pointer;overflow:hidden;border-radius:4px;border-width:0;}"],f=>f.brColor||f.theme.color_bg_border_02),u="color-btn-has-box",d="color-btn-has-hex-input",C=n.Ay.div.withConfig({displayName:"styles__StyledColorButton",componentId:"sc-1aky3bu-1"})(["display:flex;align-self:center;cursor:pointer;div.thumbnail-wrapper-multiple{width:16px;height:16px;display:flex;align-items:center;justify-content:center;color:",';position:relative;&:before{content:"";position:absolute;border-radius:4px;background-color:transparent;z-index:0;box-sizing:content-box;width:16px;height:16px;left:-1px;top:-1px;border:solid 1px ',";cursor:pointer;overflow:hidden;}span{height:100%;line-height:8px;}}.hex-a-input-wrap{display:flex;align-items:center;width:98px;.hex-input{flex:1;color:",";.hex-suffix{display:none;}.hex-color-input{width:100%;color:inherit;text-indent:4px;}}.hex-a-input{width:40px;border:none !important;&.no-suffix{input{margin-left:-0.45em;}}&:hover{border:none !important;}&.is-active{border:none !important;outline:none !important;outline-offset:0px !important;}input{margin-left:0;text-align:center;}}}&:not(.color-btn-has-box){.thumbnail-wrapper{margin:4px;}}&.","{width:24px;height:24px;display:flex;justify-content:center;align-items:center;}&.","{display:flex;height:28px;align-items:center;justify-content:space-between;flex:1;",";.color-btn-wrap{flex:1;border:1px solid transparent;border-radius:6px;display:flex;align-items:center;max-width:122px;color:",";&:not(.is-used-style-ref):hover{border:1px solid ",";}&:not(.is-used-style-ref).is-active,&:not(.is-used-style-ref):active{border:1px solid ",";outline:"," solid 1px;outline-offset:-2px;}&.is-used-style-ref{max-width:148px;border:1px solid ",";overflow:hidden;padding-right:4px;.used-ref-style{flex:1;height:28px;line-height:28px;",";color:",";}&:hover{border-color:transparent;background-color:",";}&.is-active{border-color:transparent;background-color:",";}}}.open-lib-icon,.clear-style-ref-icon{cursor:pointer;border-radius:4px;color:",";display:none;margin-left:4px;flex:0 0 24px;&:not(.is-active):hover{background-color:",";}&.is-active{background-color:",";display:block;}}}&.disabled{cursor:not-allowed;}"],f=>f.theme.color_text_L3,f=>f.theme.color_bg_border_02,f=>f.theme.color_text_L1,u,d,o,f=>f.theme.color_text_L1,f=>f.theme.color_bg_border_02,f=>f.theme.color_proto,f=>f.theme.color_proto,f=>f.theme.color_bg_border_02,r.L9,f=>f.theme.color_text_L1,f=>f.theme.color_btn_secondary_hover,f=>f.theme.color_btn_secondary_active,f=>f.theme.color_text_L1,f=>f.theme.color_btn_secondary_hover,f=>f.theme.color_btn_secondary_active),h=n.Ay.div.withConfig({displayName:"styles__StyledSolidColorBox",componentId:"sc-1aky3bu-2"})(["&.thumbnail-wrapper.has-opacity{width:","px;height:","px;flex:0 0 ","px;position:relative;overflow:hidden;&.has-border{border:solid 1px ",";}.clip{width:","px;height:","px;opacity:",";position:absolute;background:url(data:image/svg+xml;utf8,%3Csvg%20width%3D%226%22%20height%3D%226%22%20viewBox%3D%220%200%206%206%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200H3V3H0V0Z%22%20fill%3D%22%23E1E1E1%22/%3E%3Cpath%20d%3D%22M3%200H6V3H3V0Z%22%20fill%3D%22white%22/%3E%3Cpath%20d%3D%22M3%203H6V6H3V3Z%22%20fill%3D%22%23E1E1E1%22/%3E%3Cpath%20d%3D%22M0%203H3V6H0V3Z%22%20fill%3D%22white%22/%3E%3C/svg%3E%0A);}svg{position:absolute;}&.rect{border-radius:4px;}&.circle{border-radius:50%;}&.opacity-0{background:url(data:image/svg+xml;utf8,%3Csvg%20width%3D%226%22%20height%3D%226%22%20viewBox%3D%220%200%206%206%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200H3V3H0V0Z%22%20fill%3D%22%23E1E1E1%22/%3E%3Cpath%20d%3D%22M3%200H6V3H3V0Z%22%20fill%3D%22white%22/%3E%3Cpath%20d%3D%22M3%203H6V6H3V3Z%22%20fill%3D%22%23E1E1E1%22/%3E%3Cpath%20d%3D%22M0%203H3V6H0V3Z%22%20fill%3D%22white%22/%3E%3C/svg%3E%0A);}}"],f=>f.size,f=>f.size,f=>f.size,f=>f.brColor,f=>f.size,f=>f.size,f=>f.opacity),i=(0,n.DU)([".TipBase{.Tip.on-bottom.clear-style-ref-tooltips,.Tip.on-bottom.bind-color-ref-tooltips{left:0;> .arrow{left:70%;}}}"])},35770:(He,ee,e)=>{"use strict";e.d(ee,{Ef:()=>u,fl:()=>c,pn:()=>o});var n=e(67787),r=e(21066);const c=(0,n.DU)([".SelectMenuPortal{.link-type-list{transform:translateX(-20px);}.SelectNumberMenu{transform:translateX(-20px);}}.WorkspaceSelectMenu{&.link-time-menu{width:100%;}&.link-state-select{max-width:136px;li.SelectGroup .divider{background:",';}&::-webkit-scrollbar-thumb{background-color:#666;}}&.overlay-relative-pos-select{left:-30px;.svg-icon{margin-right:8px;}}}.DesignDropdownMenuBase{.link--drop-screen-list{[type="search"]{}.content{padding:0px;width:190px;height:275px;&:has(.empty-target-option){padding-top:8px;width:144px;height:auto;}.empty-target-option{padding-left:6px;color:',";opacity:0.9;}.rn-list-item{color:",";&:not(.active):hover{background-color:",";color:",";}&[data-forcedarktheme='true']{color:#b8bcbf;&:not(.active):hover{background-color:#363738;color:#1684fc;}}}}}.link--drop-transition-list{border-radius:8px;background:",";.content{padding:0;}}.link--drop-transition-state-list{.content{padding:0;&:lang(en){width:max-content;}}}.link--drop-gesture-list{transition:unset;transform:unset;border-radius:8px;width:208px;.content{border-radius:8px;}}.link-drop-action-list{transition:unset;transform:unset;transition-delay:0.1s;filter:unset;border-radius:8px;width:160px;.content{border-radius:8px;}}.input-event-trigger-list{transition:unset;transform:unset;border-radius:8px;width:170px;.content{border-radius:8px;}}}"],d=>d.theme.color_bg_border_01,d=>d.theme.color_text_L0,d=>d.theme.color_text_L2,d=>d.theme.color_bg_canvas,d=>d.theme.color_proto,d=>d.theme.color_background_white_modal),o=n.Ay.div.withConfig({displayName:"styles__StyledLinkEditor",componentId:"sc-1exmbd1-0"})([".divider{border-top:1px solid ",";margin:8px 16px;}.link-main{padding-bottom:16px;}.panel-footer{margin:12px 10px;display:flex;justify-content:flex-end;.cancel-btn{color:#7d8694;margin-right:16px;}.confirm-btn{width:68px;height:24px;border-radius:2px;font-size:12px;background:",";color:#fff;&[disabled]{cursor:not-allowed;color:rgb(200,205,208);background:rgb(246,247,248);border-width:1px;border-style:solid;border-color:rgb(222,222,228);border-image:initial;}}}.height-32{height:32px;justify-content:unset;.opener-icon-container{margin-left:1px;}}.branchSwitch{margin-left:7px;}.title-content{> p{min-width:64px;width:64px;}> :nth-child(2){&:not(.state-link-select,.branchSwitch,.rotate3d,.transform-origin-box){width:142px;.options-opener{width:142px;}}}}&.duumy-editor{padding-bottom:16px;}.expression-invalid-icon{margin-left:4px;cursor:pointer;color:",";&:hover{color:",";}}.step-input-width-72{flex:0 0 72px;display:flex;justify-content:space-between;align-items:center;.title{width:24px;height:24px;padding:0;margin-left:2px;flex-shrink:0;margin-left:1px;svg{width:24px;height:24px;color:inherit;}}input{margin-left:4px;}&:not(:last-child){margin-right:4px;}}"],d=>d.theme.color_bg_border_01,d=>d.theme.color_proto,d=>d.theme.color_text_L3,d=>d.theme.color_text_L2),I=(0,n.Ay)(r.Ay).withConfig({displayName:"styles__StyledMenuContent",componentId:"sc-1exmbd1-1"})(["ul{min-width:64px;}&.isV9Layout ul{padding:8px;border-radius:8px;border:1px solid ",";color:",";background:",";box-shadow:",";li.MenuItem{a{border-radius:4px;background:",";color:",";svg path{fill:",";}.right-arrow svg > path{fill:",";}.shortfont kbd{color:",";}}&:not(.disabled).active{a{background:",";}}&.disabled{a{color:",";svg path{fill:",";}.shortfont kbd{color:",";}}}}}"],d=>d.theme.color_bg_border_01,d=>d.theme.color_text_L0,d=>d.theme.color_bg_white,d=>d.theme.shadow_m,d=>d.theme.color_bg_white,d=>d.theme.color_text_L0,d=>d.theme.color_text_L0,d=>d.theme.color_text_L2,d=>d.theme.color_text_L2,d=>d.theme.color_btn_secondary_hover,d=>d.theme.color_text_disabled01,d=>d.theme.color_text_disabled01,d=>d.theme.color_text_disabled01),u=n.Ay.div.withConfig({displayName:"styles__StyledExpression",componentId:"sc-1exmbd1-2"})(["position:relative;height:28px;border-radius:6px;z-index:2;width:calc(100% - 64px);&.is-readonly-wrapper{overflow:hidden;.public-DraftStyleDefault-block{white-space:nowrap;}&.is-overflow::after{content:'';pointer-events:none;position:absolute;z-index:1;top:1px;right:1px;width:30px;height:26px;border-radius:0 6px 6px 0;background:linear-gradient(to right,transparent,"," 100%);}}.is-readonly{&:not(.is-disabled){cursor:pointer;}&:hover{border-color:",";}&:not(:hover),&.is-disabled{border-color:transparent;}}.is-readonly.is-disabled{padding-left:3px;}"],d=>d.theme.color_bg_white,d=>d.theme.color_bg_border_02)},36050:(He,ee,e)=>{"use strict";e.d(ee,{If:()=>h,RU:()=>i,s4:()=>I});var n=e(55914),r=e(27660),c=e(20089),o=e(47163);const I=(f,p)=>{const l=p.trim().split(/\s+/).map(_=>({literal:_,regular:new RegExp("\\b"+(0,n.$)(_),"i"),chinese:new RegExp(""+(0,n.$)(_))}));return f.filter(_=>C(l,_))},u=/[\u4E00-\u9FFF]/,d=(0,r.R)(()=>({All:I18N.dConst.icons.all,"Web Application":I18N.dConst.icons.web_app,Medical:I18N.dConst.icons.medical,"Text Editor":I18N.dConst.icons.text_editor,Spinner:I18N.dConst.icons.spinner,"File Type":I18N.dConst.icons.file_type,Directional:I18N.dConst.icons.directional,"Video Player":I18N.dConst.icons.video_player,"Form Control":I18N.dConst.icons.form_control,Transportation:I18N.dConst.icons.transportation,Chart:I18N.dConst.icons.chart,Brand:I18N.dConst.icons.brand,Hand:I18N.dConst.icons.hand,Payment:I18N.dConst.icons.payment,Currency:I18N.dConst.icons.currency,Accessibility:I18N.dConst.icons.accessibility,Gender:I18N.dConst.icons.gender,AV:I18N.dConst.icons.av,Action:I18N.dConst.icons.action,Alert:I18N.dConst.icons.alert,Communication:I18N.dConst.icons.communication,Content:I18N.dConst.icons.content,Device:I18N.dConst.icons.device,Editor:I18N.dConst.icons.text_editor,File:I18N.dConst.icons.file,Hardware:I18N.dConst.icons.hardware,Image:I18N.dConst.icons.image,Maps:I18N.dConst.icons.maps,"Navi.":I18N.dConst.icons.navi,"Notif.":I18N.dConst.icons.notif,Places:I18N.dConst.icons.places,Social:I18N.dConst.icons.social,Toggle:I18N.dConst.icons.toggle,Widgets:I18N.dConst.icons.widgets,Tool:I18N.dConst.icons.tool,Arrow:I18N.dConst.icons.directional,Miscellaneous:I18N.dConst.icons.miscellaneous,"Brand and Logos":I18N.dConst.icons.brand,Application:"App",Data:I18N.dConst.icons.data,Suggested:I18N.dConst.icons.suggested})),C=(f,p)=>{const s=d((0,o.w)()),l=[p.id,p.keywords,p.aliases,p.cat,s[p.cat]].join();return f.some(_=>{let{literal:b,regular:a,chinese:M}=_;return a.test(l)||u.test(b)&&M.test(l)})},h=f=>[c.x.WIcon].includes(f),i=f=>{const{type:p,id:s,lib:l=""}=f,_=s.split("-")[0]===p?s.slice(s.indexOf("-")+1):s,b=p==="fa5"&&l?p+"-"+_+"-"+l:p+"-"+_,a=p==="fa5"?(l+" fa-"+_).trim():p+"-"+_;return{iconName:b,iconDisplayName:a}}},36052:(He,ee,e)=>{"use strict";e.d(ee,{NV:()=>x,Ps:()=>s,Um:()=>d});var n=e(41818),r=e(54801),c=e(23536),o=e(15186),I=e(45709),u=e(59025);const d=A=>{var D;return(D=A.border)!=null&&D.bdrIsVisible?{borderColor:(0,o.t0)(A.border.bdrColor),borderWidth:A.borderVisibility?(A.borderVisibility.bdrIsVisibleT?A.border.bdrWidth:0)+"px "+(A.borderVisibility.bdrIsVisibleR?A.border.bdrWidth:0)+"px "+(A.borderVisibility.bdrIsVisibleB?A.border.bdrWidth:0)+"px "+(A.borderVisibility.bdrIsVisibleL?A.border.bdrWidth:0)+"px":A.border.bdrWidth+"px",borderStyle:A.border.bdrStyle}:{border:"none"}},C=A=>({borderRadius:A.borderRadiusIsVisible===!1?void 0:A.borderRadius?typeof A.borderRadius=="number"?A.borderRadius+"px":A.borderRadius.radiusTL+"px "+A.borderRadius.radiusTR+"px "+A.borderRadius.radiusBR+"px "+A.borderRadius.radiusBL+"px":void 0}),h=A=>({borderRadius:A?typeof A=="number"?A+"px":A.radiusTL+"px "+A.radiusTR+"px "+A.radiusBR+"px "+A.radiusBL+"px":void 0}),i=A=>A.bdrIsVisible?{borderColor:toRGBACSS(A.bdrColor),borderWidth:A.bdrWidth+"px",borderStyle:A.bdrStyle}:{border:"none"},f=A=>A.bdrIsVisible?A.bdrWidth+"px "+A.bdrStyle+" "+toRGBACSS(A.bdrColor):"",p=A=>A.bdrIsVisible?{borderColor:toRGBACSS(A.bdrColor),borderWidth:A.bdrWidth+"px",bdrIsVisible:A.bdrIsVisible}:{border:"none",bdrIsVisible:A.bdrIsVisible},s=A=>A&&A.shadowIsVisible?A.offsetX+"px "+A.offsetY+"px "+A.blurRadius+"px "+A.spreadRadius+"px "+(0,o.t0)(A.shadowColor):"none",l=A=>{let D="none";return A.textV0&&A.textV0.textDecoration&&A.textV0.textDecoration!=="normal"&&(D=A.textV0.textDecoration),{textDecoration:D}},_=A=>{const D=formatPaddingTuple(A.richTextV1.paddingTuple);return{width:"100%",height:"100%",display:"flex",zIndex:A.zIndex,...d(A),...C(A),...D,boxShadow:s(A.shadow)}};function b(A){var D,B;return{zIndex:A.zIndex,...C(A),boxShadow:s(A.shadow),alignItems:(D=A.textV0)==null?void 0:D.verticalAlign,textAlign:(B=A.textV0)==null?void 0:B.horizontalAlign,...L(A.textV0)}}const a=A=>{if(!A||!A.flip)return"";const{flip:{flipH:D,flipV:B}}=A;return(D?"scaleX(-1)":"")+" "+(B?"scaleY(-1)":"")};function M(A){const{border:{bdrWidth:D}}=A,{bdrIsVisibleT:B,bdrIsVisibleR:j,bdrIsVisibleB:F,bdrIsVisibleL:Y}=A.borderVisibility;return(B?D:"0")+"px "+(j?D:"0")+"px "+(F?D:"0")+"px "+(Y?D:"0")+"px"}const x=A=>{let D=0,B=0,j=0,F=0;if(A){const{border:Y,borderVisibility:X}=A;if(Y){const{bdrIsVisible:z,bdrWidth:Z}=Y,J=Z||0;if(z)if(X){const{bdrIsVisibleT:te,bdrIsVisibleR:ge,bdrIsVisibleB:pe,bdrIsVisibleL:Ce}=X;D=Ce?J:0,B=te?J:0,j=ge?J:0,F=pe?J:0}else D=B=j=F=J}}return{borderLeft:D,borderTop:B,borderRight:j,borderBottom:F}};function g(A,D){D===void 0&&(D={minX:0,minY:0,width:1,height:1});const B=A.clone().translate({x:-A.x,y:-A.y}).translate({x:A.x*D.width,y:A.y*D.height});if(A.isIdentity())return null;if(B.isTranslate())return"translate("+Number(A.x)+", "+Number(A.y)+")";{const{a:j,b:F,c:Y,d:X,x:z,y:Z}=B;return"matrix("+Number(j)+", "+Number(F)+", "+Number(Y)+", "+Number(X)+", "+Number(z)+", "+Number(Z)+")"}}function S(A,D){return D===void 0&&(D={minX:0,minY:0,width:1,height:1}),A.type!==PaintType.Solid?g(Transform.parse(A),D):null}function t(A){if(A.type!==PaintType.Solid){const{colors:D,stops:B}=A;return D.map((j,F)=>({hex:Color.toHexAndAlpha(j)[0],alpha:j[3],point:B[F]}))}return[]}function v(A){const{colors:D,stops:B}=A,j=Transform.parse(A);return'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"><defs><linearGradient id="1" x1="0" x2="1" y1="0" y2="0" gradientTransform="'+g(j)+'">'+D.map((Y,X)=>({hex:Color.toHexAndAlpha(Y)[0],alpha:Y[3],point:B[X]})).sort((Y,X)=>Y.point-X.point).map(Y=>{let{alpha:X,hex:z,point:Z}=Y;return'<stop stop-color="'+z+'" stop-opacity="'+X+'" offset="'+Z+'"></stop>'}).join("")+'</linearGradient></defs><rect width="100%" height="100%" fill="url(#1)"></rect></svg>'}function w(A){const{colors:D,stops:B}=A,j=Transform.parse(A);return'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"><defs><radialGradient id="1" cx="0" cy="0" r="1" gradientTransform="'+g(j)+'">'+D.map((Y,X)=>({hex:Color.toHexAndAlpha(Y)[0],alpha:Y[3],point:B[X]})).sort((Y,X)=>Y.point-X.point).map(Y=>{let{alpha:X,hex:z,point:Z}=Y;return'<stop stop-color="'+z+'" stop-opacity="'+X+'" offset="'+Z+'"></stop>'}).join("")+'</radialGradient></defs><rect width="100%" height="100%" fill="url(#1)"></rect></svg>'}function k(A,D,B){B===void 0&&(B={minX:0,minY:0,width:1,height:1});const{colors:j,stops:F}=A,Y=Transform.parse(A),X=g(Y,B);return A.type===PaintType.LinearGradient?'<defs><linearGradient id="'+D+'" x1="0" x2="100%" y1="0" y2="0" gradientTransform="'+X+'" gradientUnits="userSpaceOnUse">'+j.map((z,Z)=>({hex:Color.toHexAndAlpha(z)[0],alpha:z[3],point:F[Z]})).sort((z,Z)=>z.point-Z.point).map(z=>{let{alpha:Z,hex:J,point:te}=z;return'<stop stop-color="'+J+'" stop-opacity="'+Z+'" offset="'+te+'"></stop>'}).join("")+"</linearGradient></defs>":A.type===PaintType.RadialGradient?'<defs><radialGradient id="'+D+'" cx="0" cy="0" r="100%" gradientTransform="'+X+'" gradientUnits="userSpaceOnUse">'+j.map((z,Z)=>({hex:Color.toHexAndAlpha(z)[0],alpha:z[3],point:F[Z]})).sort((z,Z)=>z.point-Z.point).map(z=>{let{alpha:Z,hex:J,point:te}=z;return'<stop stop-color="'+J+'" stop-opacity="'+Z+'" offset="'+te+'"></stop>'}).join("")+"</radialGradient></defs>":""}function W(A){return{fontSize:A.textV0.fontSize,justifyContent:A.textV0.horizontalAlign,alignItems:A.textV0.verticalAlign,color:toRGBACSS(A.textV0.textColor),fontFamily:"PingFangSC"}}function K(A){return{textAlign:A.textV0.horizontalAlign}}const G=(A,D)=>A?toRGBACSS(D):"",$=A=>{var D,B;return{alignItems:(D=A.textV0)==null?void 0:D.verticalAlign,justifyContent:(B=A.textV0)==null?void 0:B.horizontalAlign}},P=A=>A.textDecoration==="normal"?void 0:A.textDecoration,E=A=>A.italic?"italic":"normal",H=A=>A.bold?"bold":"normal",O=A=>({letterSpacing:A.textV0.letterSpacing}),V=A=>({...formatPaddingTuple(A.textV0.paddingTuple)}),Q=A=>({lineHeight:A.textV0.lineHeight+"px"}),N=(A,D)=>A?toRGBACSS(D):"",L=A=>{const{fontFamily:D,fontWeight:B,italic:j,bold:F,textColor:Y,fontSize:X,lineHeight:z,letterSpacing:Z,textDecoration:J="normal",horizontalAlign:te,verticalAlign:ge,color:pe}=A||{},Ce=J==="normal"?"none":J;return{fontFamily:D,fontSize:X,fontWeight:computedFontWeightValue(B,F),lineHeight:z+"px",fontStyle:j?"italic":"normal",color:pe||toRGBACSS(Y),letterSpacing:Z,textDecoration:Ce,alignItems:ge,justifyContent:te}},U=A=>{var D,B;if(!(A!=null&&A.textV1)||Object.keys(A.textV1).length===0||Object.keys((D=A.textV1)==null?void 0:D.blocks).length===0)return!1;if(Object.keys((B=A.textV1)==null?void 0:B.blocks).length===1){const j=A.textV1.blocks,F=Object.values(j)[0];if((F==null?void 0:F.text)==="")return!1}return!0}},36198:(He,ee,e)=>{var n=e(71893),r=e(71602),c=e(57327),o=e(48236),I=e(52255),u=e(83084),d=o(function(C,h){var i=u(h);return I(i)&&(i=void 0),I(C)?n(C,r(h,1,I,!0),c(i,2)):[]});He.exports=d},36620:(He,ee,e)=>{"use strict";e.d(ee,{j:()=>d,s:()=>u});var n=e(95549),r=e(38502),c=e(61068),o=e(4648),I=e(72214);class u extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleChange",(h,i)=>{const{onChange:f,selections:p,dispatch:s}=this.props;f({value:h,attr:"fill",selections:p,dispatch:s})}),(0,n.A)(this,"handleVisibleChanged",h=>{const{selections:i,fill:f,onChange:p,dispatch:s}=this.props,l={...f,fillIsVisible:h};p({value:l,attr:"fill",selections:i,dispatch:s})})}render(){const{show:h,fill:i,pIsSolidColorOnly:f,canOpenLib:p,canCreateColorRef:s,refStyles:l,index:_,onPosition:b}=this.props;return h?(0,I.jsxs)("div",{className:"appearance-line color-line height-32 margin-left-n6",children:[(0,I.jsxs)("div",{className:"common-check-label-box",children:[(0,I.jsx)(c.A,{attr:"isVisible",className:c.p,isChecked:i==null?void 0:i.fillIsVisible,onChange:a=>this.handleVisibleChanged(a)}),(0,I.jsx)("label",{className:"left-label background-label",children:I18N.SettingPanel.fill})]}),(0,I.jsx)(o.R_,{mode:"input",className:o.EY,attr:"solidColor",supAttr:"fill",color:i,refStyles:l,pIsSolidColorOnly:!!f,canOpenLib:p,canCreateColorRef:s,index:_,onPosition:b,onChange:this.handleChange})]}):null}}(0,n.A)(u,"defaultProps",{show:!0,canCreateColorRef:!0,index:0});class d extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleChange",(h,i)=>{const{onChange:f,selections:p,dispatch:s,supAttr:l}=this.props;f({value:h,attr:i,selections:p,dispatch:s,supAttr:l})})}render(){const{isBackgroundVisible:h,backgroundColor:i,backgroundColorAttr:f,isVisibleAttr:p}=this.props,s={solid:I18N.SettingPanel.fill,linearGradient:I18N.SettingPanel.linear_gradient,radialGradient:I18N.SettingPanel.radial_gradient};return(0,I.jsxs)("div",{className:"appearance-line color-line height-32 margin-left-n6",children:[(0,I.jsxs)("div",{className:"common-check-label-box",children:[(0,I.jsx)(c.A,{className:c.p,attr:p,isChecked:h,onChange:this.handleChange}),(0,I.jsx)("label",{className:"left-label background-label",children:s.solid})]}),(0,I.jsx)(o.R_,{mode:"input",className:o.EY,supAttr:"segmentedControl",attr:f,color:i,onChange:this.handleChange})]})}}},36666:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>r});const n={mdWMMktList:new Set,mtWMMktList:new Set,noWMMktList:new Set,isShowUpMktTip:!1};function r(c,o){c===void 0&&(c=n);let{type:I,payload:u}=o;switch(I){case"reducer:watermark:update-state":return{...c,...u};case"reducer:watermark:update:is-show-up-mkt-tip":return{...c,isShowUpMktTip:u};default:return c}}},37253:(He,ee,e)=>{"use strict";e.d(ee,{DE:()=>r,uz:()=>M,zi:()=>f});const n=(x,g)=>{const S=new Error("[NO SENTRY] "+x);return Object.assign(S,g),S},r=async x=>{const g=await fetch(x,{credentials:"same-origin"});let S;try{S=await g.json()}catch(t){S={}}if(!g.ok)throw n("[fetchGetJSON] failed with "+g.status+": "+x,{...S,status:g.status});return S},c=async(x,g)=>{const S=await fetch(x,{credentials:"same-origin",body:JSON.stringify(g)});let t;try{t=await S.json()}catch(v){t={}}if(!S.ok)throw n("[fetchGetJSON] failed with "+S.status+": "+x,{...t,status:S.status});return t},o=async x=>{const g=await fetch(x,{credentials:"same-origin",headers:{"content-type":"application/json",accept:"application/json"}});let S;try{S=await g.json()}catch(t){S={}}if(!g.ok)throw n("[fetchGetJSON] failed with "+g.status+": "+x,{...S,status:g.status});return S},I=async x=>{let g=await fetch(x,{credentials:"same-origin"});const S=g.headers;if(!g.ok)throw n("[fetchGetJSON] failed with "+g.status+": "+x,{...await g.json(),status:g.status});return g=await g.json(),{result:g,headers:S}},u=async x=>{const g=await fetch(x,{method:"DELETE",credentials:"same-origin"});if(!g.ok)throw n("[fetchDeleteHead] failed with "+g.status+": "+x,{status:g.status})},d=async x=>{const g=await fetch(x,{method:"DELETE",credentials:"same-origin",headers:{"content-type":"application/json",accept:"application/json"}});if(!g.ok)throw n("[fetchDeleteHead] failed with "+g.status+": "+x,{status:g.status})},C=async x=>{const g=await fetch(x,{method:"DELETE",credentials:"same-origin"});if(!g.ok)throw n("[fetchDeleteJSON] failed with "+g.status+": "+x,{...await g.json(),status:g.status});return g.json()},h=async(x,g)=>fetch(x,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(g)}),i=async(x,g)=>{const S=await h(x,g);if(!S.ok)throw n("[fetchPostHead] failed with "+S.status+": "+x,{status:S.status})},f=async(x,g)=>{const S=await fetch(x,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify(g)});if(!S.ok)throw n("[fetchPostJSON] failed with "+S.status+": "+x,{...await S.json(),status:S.status});return S.json()},p=async(x,g)=>{const S=await fetch(x,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify(g)});if(!S.ok)throw n("[fetchPostText] failed with "+S.status+": "+x,{status:S.status});return S.json()},s=async(x,g)=>{const S=await fetch(x,{method:"POST",credentials:"same-origin",headers:{accept:"application/json","content-type":"application/json"},body:JSON.stringify(g)});if(!S.ok)throw n("[fetchPostJSON] failed with "+S.status+": "+x,{...await S.json(),status:S.status});return S.json()},l=async(x,g)=>{const S=await fetch(x,{method:"POST",headers:{"content-type":"application/json"},credentials:"same-origin",body:g});if(!S.ok)throw n("[fetchDeleteJSON] failed with "+S.status+": "+x,{url:x,status:S.status});return S.json()},_=async(x,g)=>{const S=await fetch(x,{method:"PUT",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify(g)});if(!S.ok)throw n("[fetchPutHead] failed with "+S.status+": "+x,{status:S.status})},b=async(x,g)=>{const S=await fetch(x,{method:"PUT",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify(g)});if(!S.ok)throw n("[fetchPutJSON] failed with "+S.status+": "+x,{...await S.json(),status:S.status});return S.json()},a=async(x,g)=>{const S=await fetch(x,{method:"PUT",credentials:"same-origin",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(g)});if(!S.ok)throw n("[fetchPutJSON] failed with "+S.status+": "+x,{...await S.json(),status:S.status});return S.json()},M=async(x,g)=>{const S=await fetch(x,{method:"DELETE",headers:{"content-type":"application/json"},body:JSON.stringify(g)});if(!S.ok)throw n("[fetchDeleteBodyHead] failed with "+S.status+": "+x)}},37320:(He,ee,e)=>{"use strict";e.d(ee,{xb:()=>N,p$:()=>Q,ay:()=>A});var n=e(99963),r=e(70933),c=e(67588);const o=["top","bottom","left","right"],I={onV:["top","bottom"],onH:["left","right"]},u=(z,Z,J)=>{const te={top:new Map,bottom:new Map,left:new Map,right:new Map};return te.bottom=h({dirPositionObj:Z,target:z,currentRectGap:te,rects:J}),te.top=f({dirPositionObj:Z,target:z,currentRectGap:te,rects:J}),te.left=p({dirPositionObj:Z,target:z,currentRectGap:te,rects:J}),te.right=s({dirPositionObj:Z,target:z,currentRectGap:te,rects:J}),te},d=(z,Z,J)=>{const te=z.get(Z)||[];te.push(J),z.set(Z,te)},C=z=>{const Z={top:{map:new Map,positionArr:[]},bottom:{map:new Map,positionArr:[]},left:{map:new Map,positionArr:[]},right:{map:new Map,positionArr:[]}};z.forEach((te,ge)=>{o.forEach(pe=>{d(Z[pe].map,te[pe],ge)})}),o.forEach(te=>{Z[te].positionArr=[...Z[te].map.keys()].sort((ge,pe)=>ge-pe)});const J=[];return z.forEach(te=>{const ge=u(te,Z,z);J.push(ge)}),{systemGapArr:J,dirPositionObj:Z}},h=z=>{let{dirPositionObj:Z,target:J,currentRectGap:te,rects:ge}=z;const pe=l(Z.top.positionArr,J.bottom);if(pe!==-1){const Ce=Z.top.positionArr.length;let me=!1;for(let be=pe;be<Ce&&!me;be++){const ie=Z.top.positionArr[be];Z.top.map.get(ie).forEach(he=>{const ce=ge[he];!(ce.right<J.left||ce.left>J.right)&&!i(ce,J)&&(me=!0,te.bottom.set(ie-J.bottom,[he]))})}}return te.bottom},i=(z,Z)=>z.top===Z.top&&z.left===Z.left&&z.right===Z.right&&z.bottom===Z.bottom,f=z=>{let{dirPositionObj:Z,target:J,currentRectGap:te,rects:ge}=z;const pe=_(Z.bottom.positionArr,J.top);if(pe!==-1){let Ce=!1;for(let me=pe;me>=0&&!Ce;me--){const be=Z.bottom.positionArr[me];Z.bottom.map.get(be).forEach(oe=>{const he=ge[oe];!(he.right<J.left||he.left>J.right)&&!i(he,J)&&(Ce=!0,te.top.set(J.top-be,[oe]))})}}return te.top},p=z=>{let{dirPositionObj:Z,target:J,currentRectGap:te,rects:ge}=z;const pe=_(Z.right.positionArr,J.left);if(pe!==-1){let Ce=!1;for(let me=pe;me>=0&&!Ce;me--){const be=Z.right.positionArr[me];Z.right.map.get(be).forEach(oe=>{const he=ge[oe];!(he.bottom<J.top||he.top>J.bottom)&&!i(he,J)&&(Ce=!0,te.left.set(J.left-be,[oe]))})}}return te.left},s=z=>{let{dirPositionObj:Z,target:J,currentRectGap:te,rects:ge}=z;const pe=l(Z.left.positionArr,J.right);if(pe!==-1){const Ce=Z.left.positionArr.length;let me=!1;for(let be=pe;be<Ce&&!me;be++){const ie=Z.left.positionArr[be];Z.left.map.get(ie).forEach(he=>{const ce=ge[he];!(ce.bottom<J.top||ce.top>J.bottom)&&!i(ce,J)&&(me=!0,te.right.set(ie-J.right,[he]))})}}return te.right},l=(z,Z)=>{const J=z.length;if(J<=0||z[J-1]<Z)return-1;let te=0,ge=J-1,pe=J-1;for(;te<ge;){let Ce=(te+ge)/2;if(!Number.isInteger(Ce)){const me=Math.ceil(Ce),be=Math.floor(Ce);z[be]>=Z?Ce=be:Ce=me}z[Ce]>=Z?(ge=Ce-1,pe=Ce):te=Ce+1}return pe>0&&z[pe-1]>=Z&&(pe=pe-1),pe},_=(z,Z)=>{const J=z.length;if(J<=0||z[0]>Z)return-1;let te=0,ge=J-1,pe=0;for(;te<ge;){let Ce=(te+ge)/2;if(!Number.isInteger(Ce)){const me=Math.ceil(Ce),be=Math.floor(Ce);z[be]>=Z?Ce=be:Ce=me}z[Ce]<=Z?(te=Ce+1,pe=Ce):ge=Ce-1}return pe!==J&&z[pe+1]<=Z&&(pe=pe+1),pe},b=z=>{const Z={onV:new Map,onH:new Map},J=new Map;return z.forEach((te,ge)=>{const{top:pe,bottom:Ce,left:me,right:be}=te;J.set(ge,te),d(Z.onH,pe,ge),d(Z.onH,Math.floor((pe+Ce)/2),ge),d(Z.onH,Ce,ge),d(Z.onV,me,ge),d(Z.onV,Math.floor((me+be)/2),ge),d(Z.onV,be,ge)}),{systemRefMap:Z,systemRectSizeMap:J}},a=function(z,Z,J,te,ge){J===void 0&&(J=[]),ge===void 0&&(ge=15);const pe=M(z,J),Ce={onV:{offset:0,lines:new Map},onH:{offset:0,lines:new Map}};let me=!1,be=!1;for(let ie=0;ie<Math.round(ge/te)+1&&!me;ie++)pe.onV.forEach((oe,he)=>{if(typeof oe!="number"||!Number.isInteger(oe))return;const ce=Math.pow(-1,ie)*ie/2>>0,re=oe+ce;if(Z.onV.has(re)){const fe=J.includes("left")||J.includes("right"),Me=he===2&&fe?ce*2:ce;Ce.onV.offset=Me,Ce.onV.lines.set(re,Z.onV.get(re)),me=!0}});for(let ie=0;ie<Math.round(ge/te)+1&&!be;ie++)pe.onH.forEach((oe,he)=>{if(typeof oe!="number"||!Number.isInteger(oe))return;const ce=Math.pow(-1,ie)*ie/2>>0,re=oe+ce;if(Z.onH.has(re)){const fe=J.includes("top")||J.includes("bottom"),Me=he===2&&fe?ce*2:ce;Ce.onH.offset=Me,Ce.onH.lines.set(re,Z.onH.get(re)),be=!0}});return Ce},M=function(z,Z){Z===void 0&&(Z=[]);const J=Z.length>0,{left:te,right:ge,top:pe,bottom:Ce,width:me,height:be}=z;return{onV:[J&&!Z.includes("right")?null:me===1?te:ge,J&&!Z.includes("left")?null:te,J?null:Math.floor((te+ge)/2)],onH:[J&&!Z.includes("bottom")?null:be===1?pe:Ce,J&&!Z.includes("top")?null:pe,J?null:Math.floor((pe+Ce)/2)]}},x=function(z,Z,J,te,ge,pe,Ce){te===void 0&&(te=[]),Ce===void 0&&(Ce=5);const me=u(z,ge,Z),be=te.length>0,ie={onV:{offset:0,adjustedGap:1/0,rects:{top:[],bottom:[]}},onH:{offset:0,adjustedGap:1/0,rects:{left:[],right:[]}}},oe={v:null,h:null},he=Math.round(Ce/pe)+1;return be?((G(te,"bottom")||G(te,"top"))&&(oe.v=w(he,me,J,te)),(G(te,"left")||G(te,"right"))&&(oe.h=k(he,me,J,te))):(oe.v=w(he,me,J,te),oe.h=k(he,me,J,te)),oe.v&&oe.v.gap<1e3/3&&(oe.v.rects=oe.v&&Array.from(new Set(oe.v.rects.map(ce=>String(ce)))).map(ce=>ce.split(",")),oe.v.rects.length>1&&(ie.onV.rects=[...oe.v.rects],ie.onV.offset=oe.v.offset,ie.onV.adjustedGap=oe.v.gap)),oe.h&&oe.h.gap<1e3/3&&(oe.h.rects=oe.h&&Array.from(new Set(oe.h.rects.map(ce=>String(ce)))).map(ce=>ce.split(",")),oe.h.rects.length>1&&(ie.onH.rects=[...oe.h.rects],ie.onH.offset=oe.h.offset,ie.onH.adjustedGap=oe.h.gap)),ie},g=(z,Z,J)=>z.filter(te=>te.startRect!=="target"&&te.endRect!=="target"?!0:S(te,Z,J)).map(te=>[te.endRect,te.startRect].sort()),S=(z,Z,J)=>{let{startRect:te,endRect:ge,dir:pe}=z,Ce=te;ge!=="target"&&(Ce=ge);const me=v(J[Number(Ce)][t(pe)]);return!me||me>Z},t=z=>{let Z=z;switch(z){case"top":Z="bottom";break;case"bottom":Z="top";break;case"left":Z="right";break;case"right":Z="left";break;default:}return Z},v=z=>z.size?[...z.keys()][0]:!1,w=(z,Z,J,te)=>{const ge={offset:null,gap:null,top:[],bottom:[]},pe=I.onV,Ce=te.length>0;let me=null,be=null;return Ce?(G(te,"top")&&(me=W({range:z,targetGapMap:Z,systemGapArr:J,dir:"top",directions:pe})),G(te,"bottom")&&(me&&me.offset!==null?be=K({offset:me.offset,existLength:me.gap,targetGapMap:Z,systemGapArr:J,dir:"bottom",directions:pe}):be=W({range:z,targetGapMap:Z,systemGapArr:J,dir:"bottom",directions:pe}))):(me=W({range:z,targetGapMap:Z,systemGapArr:J,dir:"top",directions:pe}),me&&me.offset!==null?be=K({offset:me.offset,existLength:me.gap,targetGapMap:Z,systemGapArr:J,dir:"bottom",directions:pe}):be=W({range:z,targetGapMap:Z,systemGapArr:J,dir:"bottom",directions:pe})),me&&me.offset!==null&&(ge.offset=me.offset,ge.gap=me.gap),be&&be.offset!==null&&(ge.offset=be.offset,ge.gap=be.gap),ge.rects=[],me&&me.rects&&me.rects.length&&(ge.rects=ge.rects.concat(g(me.rects,ge.gap,J))),be&&be.rects&&be.rects.length&&(ge.rects=ge.rects.concat(g(be.rects,ge.gap,J))),ge},k=(z,Z,J,te)=>{const ge={offset:null,gap:null,rects:[]},pe=I.onH,Ce=te.length>0;let me=null,be=null;return Ce?(G(te,"left")&&(be=W({range:z,targetGapMap:Z,systemGapArr:J,dir:"left",directions:pe})),G(te,"right")&&(be&&be.offset!==null?me=K({offset:be.offset,existLength:be.gap,targetGapMap:Z,systemGapArr:J,dir:"right",directions:pe}):me=W({range:z,targetGapMap:Z,systemGapArr:J,dir:"right",directions:pe}))):(be=W({range:z,targetGapMap:Z,systemGapArr:J,dir:"left",directions:pe}),be&&be.offset!==null?me=K({offset:be.offset,existLength:be.gap,targetGapMap:Z,systemGapArr:J,dir:"right",directions:pe}):me=W({range:z,targetGapMap:Z,systemGapArr:J,dir:"right",directions:pe})),be&&be.offset!==null&&(ge.offset=be.offset,ge.gap=be.gap),me&&me.offset!==null&&(ge.offset=me.offset,ge.gap=me.gap),ge.rects=[],be&&be.rects&&(ge.rects=ge.rects.concat(g(be.rects,ge.gap,J))),me&&me.rects&&(ge.rects=ge.rects.concat(g(me.rects,ge.gap,J))),ge},W=z=>{let{range:Z,targetGapMap:J,systemGapArr:te,dir:ge,directions:pe}=z;const Ce={offset:null,gap:null,rects:[]},me=J[ge];if(!me.size)return Ce;const be=v(me);let ie=!1;for(let oe=0;oe<Z&&!ie;oe++){const he=Math.pow(-1,oe)*oe/2>>0,ce=be+he;te.forEach((re,fe)=>{pe.forEach(Se=>{const Me=re[Se];if(!Me.size)return;const Ie=[...Me.keys()][0];Ie===ce&&(ie=!0,ge==="right"||ge==="bottom"?Ce.offset=-he:Ce.offset=he,Ce.gap=ce,Ce.rects.push({startRect:fe,endRect:Me.get(Ie)[0],dir:Se}),Ce.rects.push({endRect:me.get(be)[0],startRect:"target",dir:ge}))})}),pe.forEach(re=>{if(re===ge)return;const fe=J[re];if(!fe.size)return;const Se=v(fe);Se===ce&&(ie=!0,ge==="right"||ge==="bottom"?Ce.offset=-he:Ce.offset=he,Ce.gap=ce,Ce.rects.push({startRect:"target",endRect:fe.get(Se)[0],dir:re}),Ce.rects.push({endRect:me.get(be)[0],startRect:"target",dir:ge}))})}return Ce},K=z=>{let{offset:Z,existLength:J,targetGapMap:te,systemGapArr:ge,dir:pe,directions:Ce}=z;const me={offset:null,gap:null,rects:[]},be=te[pe];if(!be.size)return me;const ie=v(be),oe=-Z;return ge.forEach((he,ce)=>{Ce.forEach(re=>{const fe=he[re];if(!fe.size)return;const Se=[...fe.keys()][0];Se===J&&(pe==="right"||pe==="bottom"?me.offset=-oe:me.offset=oe,me.gap=J,me.rects.push({startRect:ce,endRect:fe.get(Se)[0],dir:re}),ie===J&&me.rects.push({endRect:be.get(ie)[0],startRect:"target",dir:pe}))})}),Ce.forEach(he=>{if(he===pe)return;const ce=te[he];if(!ce.size)return;const re=v(ce);re-oe===J&&(pe==="right"||pe==="bottom"?me.offset=-oe:me.offset=oe,me.gap=J,me.rects.push({startRect:"target",endRect:ce.get(re)[0],dir:he}),ie===J&&me.rects.push({endRect:be.get(ie)[0],startRect:"target",dir:pe}))}),me},G=(z,Z)=>z.includes(Z),$=function(z,Z,J,te,ge){J===void 0&&(J=[]),ge===void 0&&(ge=3);const{width:pe,height:Ce}=z,me={onV:{offset:0,sameLengthMap:new Map},onH:{offset:0,sameLengthMap:new Map}};let be=!1,ie=!1;for(let oe=0;oe<Math.round(ge/te)+1&&!(be&&ie);oe++){const he=Math.pow(-1,oe)*oe/2>>0;let ce,re;J.includes("left")&&(ce=pe-he),J.includes("right")&&(ce=pe+he),J.includes("bottom")&&(re=Ce+he),J.includes("top")&&(re=Ce-he),Z.forEach(fe=>{const{top:Se,left:Me,width:Ie,height:de}=fe;!be&&(J.includes("left")||J.includes("right"))&&Ie&&Ie===ce&&d(me.onH.sameLengthMap,ce,[Me,Se]),!ie&&(J.includes("bottom")||J.includes("top"))&&de&&de===re&&d(me.onV.sameLengthMap,re,[Me,Se])}),me.onH.sameLengthMap.size>0&&!be&&(me.onH.offset=he,be=!0),me.onV.sameLengthMap.size>0&&!ie&&(me.onV.offset=he,ie=!0)}return me},P=(z,Z,J)=>{const te={onV:new Map,onH:new Map},ge=z.h,pe=z.v;ge.forEach(oe=>{d(te.onH,oe,"ruler")}),pe.forEach(oe=>{d(te.onV,oe,"ruler")});const{h:Ce,v:me}=J;Ce.forEach(oe=>{d(te.onH,oe,"ruler")}),me.forEach(oe=>{d(te.onV,oe,"ruler")});const be=Z?Z.h:[],ie=Z?Z.v:[];return be.forEach(oe=>{d(te.onV,oe,"ruler")}),ie.forEach(oe=>{d(te.onH,oe,"ruler")}),te},E=function(z,Z,J,te){te===void 0&&(te=10);const ge=M(z,J),pe={onV:{offset:0,isHave:!1},onH:{offset:0,isHave:!1}};let Ce=!1,me=!1;for(let be=0;be<2*te+1&&!Ce;be++)ge.onV.forEach((ie,oe)=>{if(typeof ie!="number")return;const he=Math.pow(-1,be)*be/2>>0,ce=ie+he;if(Z.onV.has(ce)){const re=J.includes("left")||J.includes("right"),Se=oe===2&&re?he*2:he;pe.onV={offset:Se,isHave:!0},Ce=!0}});for(let be=0;be<2*te+1&&!me;be++)ge.onH.forEach((ie,oe)=>{if(typeof ie!="number")return;const he=Math.pow(-1,be)*be/2>>0,ce=ie+he;if(Z.onH.has(ce)){const re=J.includes("top")||J.includes("bottom"),Se=oe===2&&re?he*2:he;pe.onH={offset:Se,isHave:!0},me=!0}});return pe};var H=e(50001),O=e(20089),V=e(8580);const Q={v:[],h:[]},N=()=>[],L=()=>{var z,Z;const J=MB.__store__.getState(),te=(0,c.k3)(J),ge=(0,r.eo)(J);if(!te||!ge)return Q;const pe=sdkStore.getHotItem(ge);return{v:(pe==null||(z=pe.hotAttr)==null?void 0:z.alignV)||[],h:(pe==null||(Z=pe.hotAttr)==null?void 0:Z.alignH)||[]}},U=(z,Z)=>{var J;const te=MB.__store__.getState();if(!(0,c.k3)(te))return Q;const pe=(Z==null?void 0:Z.length)===1&&((J=Z[0])==null?void 0:J.hotAttr.type)===O.x.Canvas;let Ce=null;if(pe){var me;Ce=sdkStore.getHotItem((me=Z[0])==null?void 0:me.key)}if(!z&&!Ce)return Q;const be=[],ie=[],oe=he=>{if(!he)return;const{hotAttr:{alignH:ce,alignV:re}}=he,{x:fe,y:Se}=n.o.axisAligned((0,V.Oj)(he.key));be.push(...re.map(Me=>Me+fe)||[]),ie.push(...ce.map(Me=>Me+Se)||[])};return oe(z),oe(Ce),{v:be,h:ie}},A=z=>{let{viewport:Z={scale:1},movableItems:J=[],isRuleLine:te=!1,refTolerance:ge=15,referenceTolerance:pe=10,sameSizeTolerance:Ce=3,distributedTolerance:me=5,createSnapper:be=(Le,ve,je)=>[],getCurrentLayout:ie=Le=>Q,getCurrentScreenAlign:oe=Le=>L(),getCommonParentAlign:he=(Le,ve)=>U(Le,ve)}=z,ce=(0,H.ZZ)(J);const re=Le=>{const ve=oe(J),je=ie(J),We=be(te,J,Le),Ae=he(ce,J),we=P(ve,je,Ae),_e=C(We),Te=b(We);return{rectList:We,refMap:Te,systemRulerAndLayoutMap:we,systemGap:_e}};let{rectList:fe,refMap:Se,systemRulerAndLayoutMap:Me,systemGap:Ie}=re();const de=Le=>{({rectList:fe,refMap:Se,systemRulerAndLayoutMap:Me,systemGap:Ie}=re(Le))};let xe;return function(Le){let{_rect:ve,resizing:je=[],altKey:We=!1,originAspectRatio:Ae=void 0,sup:we}=Le;if(xe!==we&&we){var _e;const Wt=(0,H.ZZ)(J,we);((_e=ce)==null?void 0:_e.key)!==(Wt==null?void 0:Wt.key)&&(ce=Wt,de(we))}xe=we;const{systemRefMap:Te,systemRectSizeMap:Ye}=Se,{systemGapArr:Fe,dirPositionObj:Ve}=Ie,rt={...ve,bottom:ve.top+ve.height,right:ve.left+ve.width},Ue=je.length!==0,{onV:et,onH:lt}=a(rt,Te,je,Z.scale,ge),{onV:Je,onH:Xe}=x(rt,fe,Fe,je,Ve,Z.scale,me),{onV:st,onH:nt}=E(rt,Me,je,pe);let tt;Ue&&(tt=$(rt,fe,je,Z.scale,Ce));const ct=B({refOnV:et,refOnH:lt,distributedOnV:Je,distributedOnH:Xe,sameSizeOri:tt,referenceLineV:st,referenceLineH:nt}),[ht,It,it]=Y(rt,ct,je,We,Ae);Ye.set("target",ht);let Tt={},Lt={},Rt={};if(It&&It.refOnVLines){const Wt=[];et.lines.forEach((Kt,Gt)=>{const St=Kt.map(Hn=>fe[Hn]);St&&Wt.push({x:Gt,refRects:St,refTotalRect:X(St)})}),Tt.onV=Wt,Tt.showNumber=!Ue}if(It&&It.sameSizeOnH&&(Rt.onH=It.sameSizeOnH.sameLengthMap),it&&it.refOnHLines){const Wt=[];lt.lines.forEach((Kt,Gt)=>{const St=Kt.map(Hn=>fe[Hn]);St&&Wt.push({y:Gt,refRects:St,refTotalRect:X(St)})}),Tt.onH=Wt,Tt.showNumber=!Ue}if(it&&it.sameSizeOnV&&(Rt.onV=it.sameSizeOnV.sameLengthMap),F(Rt)?Rt=null:Rt.target=ht,F(Tt)?Tt=null:Tt.target=ht,it&&it.distributedOnV){const Kt=Array.from(new Set(Array.prototype.concat.apply([],it.distributedOnV.rects))).filter(St=>St==="target"?!1:!D(ht,Ye.get(Number(St)),"onV")),Gt=it.distributedOnV.rects.filter(St=>!St.some(Hn=>Kt.includes(Hn))).map(St=>St.map(Hn=>Ye.get(Hn==="target"?"target":Number(Hn))));Gt.length>1&&(Lt.onV={gap:it.distributedOnV.adjustedGap,offset:it.distributedOnV.offset,rects:Gt})}if(!Lt.onV&&It&&It.distributedOnH){const Kt=Array.from(new Set(Array.prototype.concat.apply([],It.distributedOnH.rects))).filter(St=>St==="target"?!1:!D(ht,Ye.get(Number(St)),"onH")),Gt=It.distributedOnH.rects.filter(St=>!St.some(Hn=>Kt.includes(Hn))).map(St=>St.map(Hn=>Ye.get(Hn==="target"?"target":Number(Hn))));Gt.length>1&&(Lt.onH={gap:It.distributedOnH.adjustedGap,offset:It.distributedOnH.offset,rects:Gt})}return F(Lt)?Lt=null:Lt.target=ht,{...ht,alignment:Tt,distributed:Lt,sameSize:Rt}}},D=(z,Z,J)=>J==="onV"?!(z.right<=Z.left||z.left>=Z.right):J==="onH"?!(z.bottom<=Z.top||z.top>=Z.bottom):!1,B=z=>{let{refOnV:Z,refOnH:J,distributedOnV:te,distributedOnH:ge,sameSizeOri:pe,referenceLineV:Ce,referenceLineH:me}=z;const be=new Map,ie=new Map;return ge.adjustedGap!==1/0&&ge.adjustedGap!==null&&j(be,ge.offset,{distributedOnH:ge}),Z.lines.size>0&&j(be,Z.offset,{refOnVLines:Z.lines}),pe&&pe.onH.sameLengthMap.size>0&&j(be,pe.onH.offset,{sameSizeOnH:pe.onH}),te.adjustedGap!==1/0&&te.adjustedGap!==null&&j(ie,te.offset,{distributedOnV:te}),J.lines.size>0&&j(ie,J.offset,{refOnHLines:J.lines}),pe&&pe.onV.sameLengthMap.size>0&&j(ie,pe.onV.offset,{sameSizeOnV:pe.onV}),Ce.isHave&&j(be,Ce.offset,{referenceLineV:Ce}),me.isHave&&j(ie,me.offset,{referenceLineH:me}),{offsetXMap:be,offsetYMap:ie}},j=(z,Z,J)=>{const te=z.get(Z)||{};z.set(Z,{...te,...J})},F=z=>Object.keys(z).length===0,Y=(z,Z,J,te,ge)=>{let pe=null,Ce=null;const{offsetXMap:me,offsetYMap:be}=Z,ie={x:0,y:0};if(me.size!==0){const xe=Math.min(...Array.from(me.keys()));ie.x=xe,pe=me.get(xe)}if(be.size!==0){const xe=Math.min(...Array.from(be.keys()));ie.y=xe,Ce=be.get(xe)}const{left:oe,width:he,right:ce,top:re,height:fe,bottom:Se}=z,{x:Me,y:Ie}=ie,de=J.length!==0;if(te)if(ge!==void 0&&de){const xe=!!pe,Le=!!Ce,ve={...z},je={x:(z.left+z.right)/2,y:(z.top+z.bottom)/2};return xe&&Le||xe&&!Le?(J.includes("left")?(ve.left=oe+Me,ve.right=ce-Me,ve.width=he-2*Me,ve.height=Math.floor(ve.width/ge),ve.top=Math.floor(je.y-ve.width/ge/2),ve.bottom=Math.floor(je.y+ve.width/ge/2)):J.includes("right")&&(ve.right=ce+Me,ve.left=oe-Me,ve.width=he+2*Me,ve.height=Math.floor(ve.width/ge),ve.top=Math.floor(je.y-ve.width/ge/2),ve.bottom=Math.floor(je.y+ve.width/ge/2)),Ce=null):Le&&!xe&&(J.includes("top")?(ve.top=re+Ie,ve.bottom=Se-Ie,ve.height=fe-2*Ie,ve.width=Math.floor(ve.height*ge),ve.left=Math.floor(je.x-ve.height*ge/2),ve.right=Math.floor(je.x+ve.height*ge/2)):J.includes("bottom")&&(ve.bottom=Se+Ie,ve.top=re-Ie,ve.height=fe+2*Ie,ve.width=Math.floor(ve.height*ge),ve.left=Math.floor(je.x-ve.height*ge/2),ve.right=Math.floor(je.x+ve.height*ge/2))),[ve,pe,Ce]}else{const xe={...z};return J.includes("left")?(xe.left=oe+Me,xe.right=ce-Me,xe.width=he-2*Me):J.includes("right")?(xe.right=ce+Me,xe.left=oe-Me,xe.width=he+2*Me):de||(xe.left=oe+Me,xe.right=ce+Me),J.includes("top")?(xe.top=re+Ie,xe.bottom=Se-Ie,xe.height=fe-2*Ie):J.includes("bottom")?(xe.bottom=Se+Ie,xe.top=re-Ie,xe.height=fe+2*Ie):de||(xe.top=re+Ie,xe.bottom=Se+Ie),[xe,pe,Ce]}else if(ge!==void 0&&de){const xe=!!pe,Le=!!Ce,ve={...z};if(xe&&Le||xe&&!Le){if(J.includes("left"))if(ve.left=oe+Me,ve.width=he-Me,ve.height=Math.floor(ve.width/ge),J.includes("top"))ve.top=ve.bottom-ve.height;else if(J.includes("bottom"))ve.bottom=ve.top+ve.height;else{const je=ve.height-z.height;ve.bottom=Math.floor(ve.bottom+je/2),ve.top=Math.floor(ve.top-je/2)}else if(J.includes("right"))if(ve.right=ce+Me,ve.width=he+Me,ve.height=Math.floor(ve.width/ge),J.includes("top"))ve.top=ve.bottom-ve.height;else if(J.includes("bottom"))ve.bottom=ve.top+ve.height;else{const je=ve.height-z.height;ve.bottom=Math.floor(ve.bottom+je/2),ve.top=Math.floor(ve.top-je/2)}Ce=null}else if(Le&&!xe){if(J.includes("top"))if(ve.top=re+Ie,ve.height=fe-Ie,ve.width=Math.floor(ve.height*ge),J.includes("left"))ve.left=ve.right-ve.width;else if(J.includes("right"))ve.right=ve.left+ve.width;else{const je=ve.width-z.width;ve.right=Math.floor(ve.right+je/2),ve.left=Math.floor(ve.left-je/2)}else if(J.includes("bottom"))if(ve.bottom=Se+Ie,ve.height=fe+Ie,ve.width=Math.floor(ve.height*ge),J.includes("left"))ve.left=ve.right-ve.width;else if(J.includes("right"))ve.right=ve.left+ve.width;else{const je=ve.width-z.width;ve.right=Math.floor(ve.right+je/2),ve.left=Math.floor(ve.left-je/2)}}return[ve,pe,Ce]}else{const xe={...z};return J.includes("left")?(xe.left=oe+Me,xe.width=he-Me):J.includes("right")?(xe.right=ce+Me,xe.width=he+Me):de||(xe.left=oe+Me,xe.right=ce+Me),J.includes("top")?(xe.top=re+Ie,xe.height=fe-Ie):J.includes("bottom")?(xe.bottom=Se+Ie,xe.height=fe+Ie):de||(xe.top=re+Ie,xe.bottom=Se+Ie),[xe,pe,Ce]}};function X(z){let Z=1/0,J=1/0,te=-1/0,ge=-1/0;return z.forEach(pe=>{Z=Math.min(pe==null?void 0:pe.top,Z),J=Math.min(pe==null?void 0:pe.left,J),te=Math.max((pe==null?void 0:pe.left)+(pe==null?void 0:pe.width),te),ge=Math.max((pe==null?void 0:pe.top)+(pe==null?void 0:pe.height),ge)}),{top:Z,left:J,right:te,bottom:ge,width:te-J,height:ge-Z}}},37361:(He,ee,e)=>{"use strict";e.d(ee,{MI:()=>u,PN:()=>I,u6:()=>o});var n=e(67787),r=e(15305),c=e(51090);const o=(0,n.AH)(["width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin-right:2px;cursor:pointer;.svg-icon{width:20px;height:20px;}svg.group-icon{path:first-child{fill:transparent;stroke:",";}path:last-child{fill:",";stroke:",";}}.icon{color:",";& > *{fill:currentColor;}&.old-icon,&.svg-icon-path-icon{width:14px;height:14px;",";}&.design-progress_chart-new{path:first-child{fill:#a4adb3;}}}.is-multi-color-icon{width:14px;height:14px;}"],d=>d.theme.color_text_L2,d=>d.theme.color_bg_border_02,d=>d.theme.color_text_L2,d=>d.theme.color_text_L1,r.T),I=n.Ay.div.withConfig({displayName:"styles__StyledComponentList",componentId:"sc-1wn9qcs-0"})(["width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden;.layer-scroll-list{flex:1;overflow-x:hidden;overflow-y:overlay;.layer-sortable-list{position:relative;min-height:100%;",";.layer-item{",";padding-left:28px;color:",";background-color:",";&.is-disabled{&.active{color:",";}}&.dummy-select{background:",";}&.is-not-drag{.editable-name,.layer-item-icon svg.svg-icon{color:#808080;}}&.active{background:",";}&:not(.active):not(.dummy-select):hover,&:not(.active):not(.dummy-select).hover{background:",";}.expander{display:flex;align-items:center;justify-content:center;margin-left:-15px;margin-right:1px;width:14px;height:14px;.arrow-icon{margin-right:0;color:#999;width:8px;&:not(.is-expand){transform:rotate(-90deg);}}}.layer-item-icon{",";}.group-icon{opacity:1;.main{fill:#1684fc;}}.ant-icon{width:16px;height:16px;color:#8d9ea7;}.editable-name{flex:1;margin-right:0;border:none;",";}.action{width:20px;height:20px;display:flex;align-items:center;justify-content:center;visibility:hidden;cursor:pointer;.svg-icon{width:20px;height:20px;}&.disabled{color:"," !important;cursor:not-allowed;}}&:hover{.action{visibility:visible;}}&:hover,&.hover,&.active{.arrow-icon{color:#999;}.actions{background-color:transparent;}}&.is-disabled{& > *{opacity:0.4;}.actions{display:none;background:inherit;}}&.is-hidden{.eye-icon{visibility:visible;}}&.is-locked{.lock-icon{visibility:visible;}}&.is-linked{.link-icon{visibility:visible;color:",";}}&.is-hidden,&.is-locked,&.is-linked{.actions{display:flex;align-items:center;}}}}}.search-bar{border-radius:100px;width:calc(100% - 48px);margin:8px 24px 6px;}.old-right-header{display:flex;align-items:center;.search-bar{width:calc(100% - 54px);margin:8px 8px 6px 14px;}}.layer-scroll-list{padding:8px;.layer-sortable-list{.layer-item{border-radius:6px;.editable-span,.editable-name{&.is-editing{textarea{margin-right:18px;border:1px solid #0077FF;border-radius:6px;line-height:16px;padding:3px 6px;}}}.actions{.action{margin-right:4px;&:last-child{margin-right:0;}}}}}}"],c.eP,c.Aw,d=>d.theme.color_text_L1,d=>d.theme.color_bg_white,d=>d.theme.color_proto,d=>d.theme.color_directory_hover,d=>d.theme.color_directory_active,d=>d.theme.color_directory_hover,o,c.L9,d=>d.theme.color_text_disabled01,d=>d.theme.color_proto),u=n.Ay.span.withConfig({displayName:"styles__StyledOrderSpan",componentId:"sc-1wn9qcs-1"})(["display:inline-block;font-size:12px;font-weight:500;color:",";width:","px;"],d=>d.theme.color_text_L1,d=>24+(d.len>2?(d.len-2)*6:0))},37505:(He,ee,e)=>{"use strict";e.d(ee,{H3:()=>f,hp:()=>l,Ge:()=>p,pQ:()=>b,ae:()=>M});var n=e(80666),r=e(19013),c=e(31569);const o=x=>{if(!x)return!1;const[g,S]=x,[t,v]=g,[w,k]=S;return t===1&&v===0&&w===0&&k===1||t===1&&v===.5&&w===0&&k===.5||t===1&&v===1&&w===0&&k===0};var I=e(20089),u=e(49021),d=e(44940),C=e(99917),h=e(97453),i=e(9680);const f=[...u.cX,I.x.CanvasAsOverlay,I.x.WLine,I.x.WArrow,I.x.WImage,I.x.WAudio,I.x.WVideo,I.x.WTriangleB,I.x.WTriangleTL,I.x.WIcon,I.x.WDropMenu,I.x.WDigitalStepper,I.x.WMobileTabBars,I.x.WSegmentedControl,I.x.WPaginationWeb,I.x.WPaginationMobile,I.x.WElbow,I.x.WMind],p=[I.x.CanvasAsOverlay,I.x.WRect,I.x.WOval,I.x.WButton,I.x.WButtonSolid,I.x.WSticky,I.x.WPlaceholder,I.x.WPolygon,I.x.WStar,I.x.WTriangleTL,I.x.WTriangleB,I.x.WIcon,I.x.WMSelect,I.x.WTriangle],s=[I.x.CanvasAsOverlay,I.x.WRect,I.x.WOval,I.x.WButton,I.x.WButtonSolid,I.x.WSticky,I.x.WPlaceholder,I.x.WPolygon,I.x.WStar,I.x.WTriangleTL,I.x.WTriangleB,I.x.WIcon,I.x.WMSelect,I.x.WMTextInput,I.x.WMTextArea,I.x.WVector,I.x.WTriangle,I.x.WFlowOpened,I.x.wFlowClosed,I.x.WMind,I.x.WMindNode,I.x.WImage],l=[I.x.WMapView,I.x.WWebpage],_=x=>{const{key:g}=x[0],{w:S,h:t}=sdkStore.getLocalBound(g);return Math.min(S,t)/2},b={[n.z.BorderRadiusPanel]:{[r.m9]:x=>{var g,S;let{selectedItems:t}=x;const v=(0,c.i)(t,"borderRadius")||d.A.border_radius,w=(g=(0,c.i)(t,"borderRadiusIsVisible"))!=null?g:!0,k=_(t);return{borderRadius:((S=(0,c.i)(t,"borderRadiusIsRound"))!=null?S:!1)?k:v,borderRadiusIsVisible:w,show:!0,refVars:{borderRadius:(0,i.QC)(t)}}},[I.x.WImage]:x=>{var g,S;let{selectedItems:t}=x;const v=t.find($=>$.hotAttr.type===I.x.WImage),{image:{imageClipType:w}}=v==null?void 0:v.hotAttr,k=(0,c.i)(t,"borderRadius")||d.A.border_radius,W=_(t),K=(g=(0,c.i)(t,"borderRadiusIsRound"))!=null?g:!1,G=(S=(0,c.i)(t,"borderRadiusIsVisible"))!=null?S:!0;return{borderRadius:K?W:k,show:w!==C.Mg.circular,borderRadiusIsVisible:G,refVars:{borderRadius:(0,i.QC)(t)}}},[I.x.WPolygon]:x=>{var g,S;let{selectedItems:t}=x;const w=(0,c.i)(t,"polygon").cornerRadius||d.A.border_radius,k=(g=(0,c.i)(t,"borderRadiusIsVisible"))!=null?g:!0,W=_(t);return{borderRadius:((S=(0,c.i)(t,"borderRadiusIsRound"))!=null?S:!1)?W:w,borderRadiusIsVisible:k,show:!0,refVars:{borderRadius:(0,i.QC)(t)}}},[I.x.WStar]:x=>{var g,S;let{selectedItems:t}=x;const v=(0,c.i)(t,"star"),w=(v==null?void 0:v.cornerRadius)||d.A.border_radius,k=(g=(0,c.i)(t,"borderRadiusIsVisible"))!=null?g:!0,W=_(t);return{borderRadius:((S=(0,c.i)(t,"borderRadiusIsRound"))!=null?S:!1)?W:w,show:!0,borderRadiusIsVisible:k,refVars:{borderRadius:(0,i.QC)(t)}}},[I.x.WVector]:x=>{var g,S;let{selectedItems:t}=x;const v=(0,c.i)(t,"vector"),{points:w}=v,k=w.map(E=>{let{radius:H}=E;return H}),W=new Set(k),K=W.size===1,G=(g=(0,c.i)(t,"borderRadiusIsVisible"))!=null?g:!0,$=_(t),P=(S=(0,c.i)(t,"borderRadiusIsRound"))!=null?S:!1;return{borderRadius:K?k[0]:P?$:0,borderRadiusIsVisible:G,show:!0,placeholder:W.size===1?"":I18N.SettingPanel.multiple_value,refVars:{borderRadius:(0,i.QC)(t)}}}},[n.z.FillPanel]:{[r.m9]:x=>{let{selectedItems:g,isTextEditing:S,selectionAttrs:t}=x;const v=(0,c.i)(g,"background")||d.A.background;return{background:S&&t.background||v}},new:x=>{let{selectedItems:g}=x;const S=(0,c.i)(g,"fill"),t=(0,c.i)(g,"refStyles");return{fill:S,refStyles:t}},properties:x=>{let{selectedItems:g}=x;return{attr:"fill",fill:(0,c.i)(g,"fill")||{fillIsVisible:!0,fill:"solid",solidColor:4294967295}}},solidFillOnly:x=>{let{selectedItems:g}=x;return{attr:"fill",fill:(0,c.i)(g,"fill")||{fillIsVisible:!0,fill:"solid",solidColor:4294967295},pIsSolidColorOnly:!0}},segmentedControl:x=>{let{selectedItems:g}=x;const{backgroundColor:S,isBackgroundVisible:t}=(0,c.i)(g,"segmentedControl");return{backgroundColorAttr:"backgroundColor",isVisibleAttr:"isBackgroundVisible",isBackgroundVisible:t,backgroundColor:S,supAttr:"segmentedControl"}},[I.x.WTree]:x=>{let{selectedItems:g}=x;return{attr:"fill",fill:(0,c.i)(g,"fill"),pIsSolidColorOnly:!0}},[I.x.WIphoneXSB]:x=>{let{selectedItems:g}=x;return{attr:"fill",fill:(0,c.i)(g,"fill"),pIsSolidColorOnly:!0}},[I.x.WVector]:x=>{let{selectedItems:g}=x;const S=(0,c.i)(g,"fill"),t=(0,c.i)(g,"vector");return{show:t==null?void 0:t.closed,attr:"fill",fill:S}},[I.x.wFlowClosed]:x=>{let{selectedItems:g}=x;return{attr:"fill",fill:(0,c.i)(g,"fill"),pIsSolidColorOnly:!0}}},[n.z.BorderPanel]:{[r.m9]:x=>{let{selectedItems:g}=x;return{borderVisibility:(0,c.i)(g,"borderVisibility")||d.A.border_visibility,border:(0,c.i)(g,"border")||d.A.border,refVars:{border:(0,i.xj)(g,"border")},refStyles:(0,c.i)(g,"refStyles")}},properties:x=>{let{selectedItems:g}=x;const S=(0,c.i)(g,"borderVisibility")||d.A.border_visibility,t=(0,c.i)(g,"border")||d.A.border;return{borderVisibility:S,border:t,refVars:{border:(0,i.xj)(g,"border")}}}},[n.z.BoxShadowsPanel]:{[r.m9]:x=>{let{selectedItems:g}=x;const S=(0,c.i)(g,"shadow")||d.A.box_shadow,t=(0,i.xj)(g,"shadow");return{shadow:S,refVars:t,refStyles:(0,c.i)(g,"refStyles")}},properties:x=>{let{selectedItems:g}=x;return{shadowValue:(0,c.i)(g,"shadow")||d.A.box_shadow,refVars:{shadow:(0,i.xj)(g,"shadow")}}}},[n.z.TextShadowsPanel]:{[r.m9]:x=>{let{selectedItems:g}=x;const S=(0,c.i)(g,"shadow")||d.A.text_shadow,t=(0,i.xj)(g,"shadow");return{shadow:S,refVars:t,refStyles:(0,c.i)(g,"refStyles")}},properties:x=>{let{selectedItems:g}=x;return{shadowValue:(0,c.i)(g,"shadow")||d.A.text_shadow,refVars:{shadow:(0,i.xj)(g,"shadow")}}}},[n.z.ArrowSettingPanel]:{[I.x.WElbow]:x=>{let{selectedItems:g}=x;const S=(0,c.i)(g,"elbow"),{arrowStroke:t,startAnchor:v,endAnchor:w}=S,k=h.nF[v],W=h.EL[w];return{arrowTypes:[k,W],arrowStroke:t,anchorFromType:"startAnchor",anchorToType:"endAnchor",supAttr:"elbow",reverseArrow:!1,elbow:S,refVars:{elbow:(0,i.xj)(g,"elbow")}}},[r.m9]:x=>{var g,S,t,v;let{selectedItems:w}=x;const k=(0,c.i)(w,"arrow");return{arrowTypes:[k==null?void 0:k.arrowPointFromType,k==null?void 0:k.arrowPointToType],anchorFromType:"arrowPointFromType",anchorToType:"arrowPointToType",supAttr:"arrow",arrowStroke:k==null?void 0:k.arrowStroke,reverseArrow:o([[k==null||(g=k.arrowPointFrom)==null?void 0:g.x,k==null||(S=k.arrowPointFrom)==null?void 0:S.y],[k==null||(t=k.arrowPointTo)==null?void 0:t.x,k==null||(v=k.arrowPointTo)==null?void 0:v.y]]),refVars:{arrow:(0,i.xj)(w,"arrow")}}}},[n.z.ToolTipArrowSettingPanel]:{[r.m9]:x=>{let{selectedItems:g}=x;return{tooltip:(0,c.i)(g,"tooltip")}}},[n.z.TextStatusBarPanel]:{[r.m9]:x=>{let{selectedItems:g}=x;const{textColor:S}=(0,c.i)(g,"textV0");return{textColor:S,supAttr:"textV0"}}},[n.z.InputTypeKeyboardPanel]:{[r.m9]:x=>{let{selectedItems:g}=x;const{inputTypes:S}=(0,c.i)(g,"textInput");return{inputType:S,supAttr:"textInput"}}},[n.z.QRCodeSettingPanel]:{[r.m9]:x=>{let{selectedItems:g}=x;const{foregroundColor:S,isForegroundVisible:t,backgroundColor:v,isBackgroundVisible:w}=(0,c.i)(g,"qrCode");return{foreground:{color:S,isVisible:t},background:{color:v,isVisible:w}}}},[n.z.TextPanel]:{[r.m9]:x=>{let{selectedItems:g}=x;const{fontSize:S,textColor:t}=(0,c.i)(g,"textV0");return{fs:S,textColor:t,supAttr:"textV0"}},[I.x.WPaginationWeb]:x=>{let{selectedItems:g}=x;const{textSize:S,textColor:t}=(0,c.i)(g,"paginationWeb");return{fs:S,textColor:t,supAttr:"paginationWeb",fsAttr:"textSize"}},[I.x.WPaginationMobile]:x=>{let{selectedItems:g}=x;const{textSize:S,textColor:t}=(0,c.i)(g,"paginationMobile");return{fs:S,textColor:t,supAttr:"paginationMobile",fsAttr:"textSize"}},[I.x.WTabs]:x=>{let{selectedItems:g}=x;const{fontSize:S,textColor:t}=(0,c.i)(g,"tabs");return{fs:S,textColor:t,supAttr:"tabs"}},[I.x.WMobileTabBars]:x=>{let{selectedItems:g}=x;const{fontSize:S,textColor:t}=(0,c.i)(g,"mobileTabBars");return{fs:S,textColor:t,supAttr:"mobileTabBars"}},[I.x.WSegmentedControl]:x=>{let{selectedItems:g}=x;const{fontSize:S,textColor:t}=(0,c.i)(g,"segmentedControl");return{fs:S,textColor:t,supAttr:"segmentedControl"}}},[n.z.DigitalStepperPanel]:{[r.m9]:x=>{let{selectedItems:g}=x;const S=(0,c.i)(g,"digitalStepper");return{is:S.iconSize,iconColor:S.iconColor,sliderSize:S.sliderSize,refVars:{digitalStepper:(0,i.xj)(g,"digitalStepper",["iconSize","sliderSize"])}}}},[n.z.IconSettingsPanel]:{[r.m9]:x=>{let{selectedItems:g}=x;const S=(0,c.i)(g,"iconData"),t=(0,c.i)(g,"refStyles");return{is:(S==null?void 0:S.iconSize)||0,fill:(0,c.i)(g,"fill"),iconColor:S==null?void 0:S.iconColor,canSetIconColor:!(S!=null&&S.isMultiColorIcon),refStyles:t}},old:x=>{let{selectedItems:g}=x;const S=(0,c.i)(g,"tc")||d.A.tc,t=(0,c.i)(g,"refStyles");return{is:(0,c.i)(g,"is")||0,iconColor:S,refStyles:t}}},[n.z.MobileTabBarsIconPanel]:{[r.m9]:x=>{let{selectedItems:g}=x;const{iconSize:S,iconColor:t}=(0,c.i)(g,"mobileTabBars");return{iconSize:S,iconColor:t,refVars:{mobileTabBars:(0,i.xj)(g,"mobileTabBars",["iconSize"])}}}},[n.z.UnifiedKeyboardPanel]:{[r.m9]:x=>{let{selectedItems:g}=x;return{kbdStyle:(0,c.i)(g,"numeric")?"numeric":"text"}}},[n.z.CheckPanel]:{[r.m9]:x=>{let{selectedItems:g}=x;return{isChecked:!!(0,c.i)(g,"isChecked")}}}},a=[I.x.WRichText,I.x.WIcon],M=x=>{if(!f.includes(x))return[];const S=a.includes(x)?b[n.z.TextShadowsPanel].properties:b[n.z.BoxShadowsPanel].properties,t=[I.x.WRichText].includes(x)?()=>({}):b[n.z.BorderPanel].properties;return[b[n.z.BorderRadiusPanel][x]||b[n.z.BorderRadiusPanel][r.m9],b[n.z.FillPanel][s.includes(x)?"properties":r.m9],b[n.z.ArrowSettingPanel][x]||b[n.z.ArrowSettingPanel][r.m9],S,t]}},37780:(He,ee,e)=>{"use strict";e.d(ee,{R7:()=>K,iA:()=>w,mJ:()=>k});var n=e(24229),r=e(39695),c=e(39563),o=e(40860),I=e(95106),u=e(93413),d=e(83485),C=e(13923),h=e(19969),i=e(40486),f=e(9680),p=e(99566),s=e(70933),l=e(10472),_=e(25997),b=e(175),a=e(60651),M=e(4235),x=e(70422),g=e(87229),S=e(86594),t=e(83535),v=e(70812);const w=-999,k=250,K=(()=>{const G={isEditorFloatOpen:!1,editorFloatPosition:{top:w,left:w},editorFloatOpenFrom:"treePanelRightNormal",selectInteractionKeyList:[],selectItaInfo:{type:"empty",keyList:[]},newTriggerNodeShowKey:"",newTriggerNodeEditingKey:"",newInteractionTypeEditingKey:"",stateStack:[]},$=function(Ue,et){Ue===void 0&&(Ue=G);let{type:lt="interaction:state:update",payload:Je=G}=et,Xe=[];if(Je)if(Je.stateStack)Xe=[];else{Xe=[...Ue.stateStack];const st={};Je.selectInteractionKeyList?st.selectInteractionKeyList=Je.selectInteractionKeyList:st.selectInteractionKeyList=Ue.selectInteractionKeyList,Je.selectItaInfo?st.selectItaInfo=Je.selectItaInfo:st.selectItaInfo=Ue.selectItaInfo,Xe.push(st)}switch(lt){case"interaction:state:update":return{...Ue,...Je,stateStack:Xe};default:return Ue}},P=(Ue,et)=>{et({type:"interaction:state:update",payload:{...Ue}})},[E,H]=g.B.genCommand({name:"interaction:interactionKeyList:select",impl:(Ue,et)=>{let{dispatch:lt,getState:Je}=Ue,{payload:{selectInteractionKeyList:Xe,isScroll:st}}=et;const nt=Je(),tt=Ve.getNewInteractionTypeEditingKey(nt),ct=Ve.getNewTriggerNodeShowKey(nt);let ht="",It="";Xe.forEach(it=>{tt===it&&(ht=tt),ct===it&&(It=ct)}),P({...(0,i.qL)(Xe),newInteractionTypeEditingKey:ht,newTriggerNodeShowKey:It},lt),st&&Xe.length>0&&setTimeout(()=>{(0,i._6)({itaKey:Xe[0]})},4)}}),[O,V]=g.B.genCommand({name:"interaction:clear:all",impl:(Ue,et)=>{let{dispatch:lt}=Ue,{payload:Je}=et;P({...(0,i.qL)([]),isEditorFloatOpen:!1,newInteractionTypeEditingKey:"",editorFloatOpenFrom:"treePanelRightNormal",stateStack:[],newTriggerNodeEditingKey:"",newTriggerNodeShowKey:""},lt),Je.withClearCellLinks&&lt({type:"links:active:link",payload:{cid:[]}})}}),[Q,N]=g.B.genCommand({name:"interaction:interactionEditorFloat:open",impl:(Ue,et)=>{let{dispatch:lt,getState:Je}=Ue,{payload:Xe}=et;const st=Je(),tt=Ve.getSelectInteractionKeyList(st)[0],ct=document.querySelector('#interaction-tree-list [data-key="'+tt+'"]');if(!ct)return;const{top:ht,left:It}=ct.getBoundingClientRect(),it=document.getElementById("tree-editor-float");let Tt;it?Tt=it.getBoundingClientRect().height:Tt=i.CS[Xe==null?void 0:Xe.interactionType]||107;const{finalTop:Lt,finalLeft:Rt}=(0,i.X2)({top:ht,left:It,height:Tt}),Wt=()=>{Xe!=null&&Xe.alignTop?P({isEditorFloatOpen:!0,editorFloatOpenFrom:"alignTop",editorFloatPosition:{top:102,left:Rt-k}},lt):P({isEditorFloatOpen:!0,editorFloatOpenFrom:"treePanelRightNormal",editorFloatPosition:{top:Lt,left:Rt-k}},lt),lt({type:"settings:update:state",payload:{selectCarouselImageIndex:null}})};Xe!=null&&Xe.directlySelect?Wt():(0,i._6)({itaKey:tt,callback:Wt})}}),[L,U]=g.B.genCommand({name:"interaction:intActConnector:select",impl:(Ue,et)=>{var lt;let{dispatch:Je}=Ue,{payload:{interaction:Xe,e:st}}=et;(lt=Xe.data)!=null&&lt.triggerItemKey&&Je({type:"entry:select:items",payload:{cids:[Xe.data.triggerItemKey]}}),Je({type:"right-side-panel:show:panel"}),Je({type:"settings:set:autoTabIndex",payload:{autoTabIndex:1}});let nt=i.CS[Xe.interactionType];Xe.interactionType===r.O2.SetVisibility&&(nt=i.CS[Xe.actionType]);const{finalTop:tt,finalLeft:ct}=(0,i.X2)({top:st.clientY+20,left:st.clientX-120,height:nt});P({isEditorFloatOpen:!0,editorFloatOpenFrom:"itaConnector",...(0,i.qL)([Xe.key]),editorFloatPosition:{top:tt,left:ct}},Je),setTimeout(()=>{(0,i._6)({itaKey:Xe.key})},4)}}),[A,D]=g.B.genCommand({name:"interaction:intActConnector:duumy:select",impl:(Ue,et)=>{let{dispatch:lt}=Ue,{payload:{e:Je}}=et;lt({type:"right-side-panel:show:panel"}),lt({type:"settings:set:autoTabIndex",payload:{autoTabIndex:1}});const Xe=107,st=(0,i.m1)("tap"),{finalTop:nt,finalLeft:tt}=(0,i.X2)({top:Je.clientY+16,left:Je.clientX-120,height:Xe});P({isEditorFloatOpen:!0,editorFloatOpenFrom:"itaConnector",...(0,i.qL)([st]),editorFloatPosition:{top:nt,left:tt}},lt),setTimeout(()=>{(0,i._6)({itaKey:st})},4)}}),[B,j]=g.B.genCommand({name:"interaction:editingInteraction:create",impl:(Ue,et)=>{let{getState:lt,dispatch:Je}=Ue,{payload:{interactionType:Xe,tNodeTrigger:st,openEditorFloat:nt,uiFrom:tt,isActionDummy:ct,interactionStore:ht,selectNode2:It}}=et;const it=lt(),Tt=(0,x.zX)(it),Lt=(0,M.p$)(it)[0],Rt=sdkStore.getHotItem(Lt),Wt=(0,i.P8)(Xe);if(!Wt)return;const Kt=ht.query.getTriggerInfoByNTrigger(st),Gt={...Wt,...Kt};(0,h.cM)({ita:Gt,state:it});const{selectSubItaType:St}=(0,h.ju)(it,tt);if(St!=="empty"&&(Gt.subKey=(0,n.cF)("sub")),Rt.hotAttr.type==="wTable"&&Tt&&(0,i.PP)(Tt)>1){if((0,c.SS)(Rt.hotAttr)){const{newHi:Hn,selectKeyList:uo,activeLinkList:Po}=(0,i.OT)({item:Rt,selectTableCellInfo:Tt,newInteraction:Gt});if(Je({type:"entry:widget:change",payload:{flatChgList:[Hn]}}),ct)return;Je({type:"links:active:link",payload:{cid:Po}}),Je(H({selectInteractionKeyList:uo})),setTimeout(()=>{(0,i._6)({itaKey:Gt.key}),nt&&Je(N({}))},4),Je(z({newIta:Gt}))}}else{const Hn=(It==null?void 0:It.sup)||(0,i.iY)(st),uo=[];if(ht.command.insertNodeIta(Gt,Hn),uo.push(Gt),tt==="treePanelFloat"&&Xe===r.O2.ConditionalBranches){const bo=ht.query.findUpTriggerNode(Gt.key);if(!bo.sub.find(Ke=>Ke.attr.interactionType===r.O2.TriggerPlaceHolder)){const Ke={...(0,r.SL)(),subKey:(0,n.cF)("sub")};ht.command.insertNodeIta(Ke,bo.attr.key),uo.push(Ke)}}const{mergePair:Po,tableMisc:Yn}=(0,i.Bj)({hi:Rt,selectSubItaType:St,state:it,newItaList:uo});if(St==="optionData"){const{updateNode:bo}=(0,i.DL)({type:"create",interactionList:uo,optionData:Rt.hotAttr.optionData,state:it,mergePair:Po});Je({type:rt["interaction:sub:optionData:craete"],payload:{updateNode:bo}})}if(Po.hotAttr.interactions=ht.command.getInteractionsWithUV([Gt.interactionTrigger]),Je({type:"entry:widget:change",payload:{flatChgList:[Po]}}),Yn&&Je({type:"links:active:link",payload:{cid:Yn.activeCidList}}),ct)return;P({...(0,i.qL)([Gt.key]),newInteractionTypeEditingKey:Gt.key},Je),setTimeout(()=>{(0,i._6)({itaKey:Gt.key}),nt&&Je(N({interactionType:Gt.interactionType})),Je(z({newIta:Gt}))},4)}Je({type:"entry:refresh:link-list"})}}),[F,Y]=g.B.genCommand({name:"interaction:linkDesignCreateIta",impl:(Ue,et)=>{let{getState:lt,dispatch:Je}=Ue,{payload:{interactionTrigger:Xe,newInteraction:st,e:nt}}=et;const tt=lt(),ct=(0,M.nE)(tt)[0],{key:ht,hotAttr:It}=ct,it={...st};(0,h.cM)({ita:it,state:tt});const Tt=(0,t.G$)(It.interactions.filter(Wt=>!Wt.subKey)),Lt=(0,C.E)({buildTreeRes:{itaTree:(0,i.Yj)({interactions:Tt}).itaTree,runTimeInteraction:Tt.map(Wt=>({...Wt,data:{...Wt}}))},selectSubItaType:"empty",type:"hasData",widget:ct});Lt.command.insertNode((0,i.db)({attr:{...it,data:{...it}},supKey:(0,i.iY)(Xe)}));const Rt={key:ht,hotAttr:{interactions:Lt.command.getInteractionsWithUV([Xe])}};Je({type:"entry:widget:change",payload:{flatChgList:[Rt]}}),Je({type:"entry:refresh:link-list"}),Je(K.command.intActConnectorSelectCommand({interaction:it,e:nt})),setTimeout(()=>{Je(z({newIta:it}))},4)}}),[X,z]=g.B.genCommand({name:"interaction:interaction:guide",impl:(Ue,et)=>{let{getState:lt,dispatch:Je}=Ue,{payload:{newIta:Xe}}=et;const st=lt(),{scene_tag:nt}=(0,s.PL)(st);Xe.transition==="auto"&&Xe.interactionType===r.O2.LinkToCanvas&&setTimeout(()=>{MB.commonGuideHelper.tryToShowGuide(u.c.GUIDE_PAGE_CREAT_LINK2)},30),nt&&(nt.split("-")[0]==="DS"?Je({type:"entry:update:novice:guide:and:task",payload:{taskType:u.c.GUIDE_NOVICE_2309_TASK_3}}):Je({type:"entry:update:novice:guide:and:task",payload:{guideType:u.c.GUIDE_NOVICE_2309_STEP_3,taskType:u.c.GUIDE_NOVICE_2309_TASK_3}}))}}),[Z,J]=g.B.genCommand({name:"interaction:treePanelSingle:create",impl:(Ue,et)=>{let{getState:lt,dispatch:Je}=Ue,{payload:{triggerList:Xe,interactionStore:st}}=et;const nt=lt(),tt=(0,M.p$)(nt)[0],ct=sdkStore.getHotItem(tt),ht=st.query.getSelectSubItaType(),It=Xe.map(Lt=>({...(0,r.SL)(),...(0,p.X5)(Lt),subKey:(0,n.cF)("sub")}));for(const Lt of It)st.command.insertNode((0,i.db)({attr:{...Lt,data:Lt},supKey:(0,i.iY)((0,p.AE)(Lt))}));const it={key:tt,hotAttr:{interactions:st.query.getInteractions()}};if(ht==="optionData"){const{updateNode:Lt}=(0,i.DL)({type:"create",interactionList:It,optionData:ct.hotAttr.optionData,state:nt,mergePair:it});Je({type:rt["interaction:sub:optionData:craete"],payload:{updateNode:Lt}})}else ht==="carouselImage"&&(0,i.e7)({type:"create",interactionList:It,carousel:ct.hotAttr.carousel,state:nt,mergePair:it});Je({type:"entry:widget:change",payload:{flatChgList:[it]}}),Je({type:"entry:refresh:link-list"}),Je(H({selectInteractionKeyList:[(0,i.m1)(Xe[0])]}));const Tt=(0,i.iY)(Xe[0]);P({newTriggerNodeEditingKey:Tt,newTriggerNodeShowKey:Tt},Je)}}),[te,ge]=g.B.genCommand({name:"interaction:instant:create",impl:(Ue,et)=>{let{getState:lt,dispatch:Je}=Ue,{payload:{tNodeTrigger:Xe,uiFrom:st,interactionTree:nt,interactionStore:tt}}=et;const ct=nt==null?void 0:nt.sub.find(it=>it.attr.trigger===Xe),ht=(0,i.iY)(Xe);let It="";nt&&ct||(Je(j({interactionType:r.O2.TriggerPlaceHolder,tNodeTrigger:Xe,uiFrom:st,isActionDummy:!0,interactionStore:tt})),It=ht),P({...(0,i.qL)([(0,i.m1)(Xe)]),newTriggerNodeEditingKey:It,newTriggerNodeShowKey:It},Je)}}),[pe,Ce]=g.B.genCommand({name:"interaction:editingInteraction:edit",impl:(Ue,et)=>{let{getState:lt,dispatch:Je}=Ue,{payload:{link:Xe,attr:st,value:nt,uiFrom:tt,interactionStore:ct,isNewTriggerPlaceHolder:ht=!0,nextTNodeTrigger:It}}=et;const it=lt(),Tt=(0,M.p$)(it)[0],Lt=Ve.getSelectInteractionKeyList(it);if(Lt.length>1){var Rt;const Ke=(Rt=sdkStore.getHotItem(Xe.triggerItemKey))==null?void 0:Rt.hotAttr.interactions;if(!Ke)return;let ut=[...Ke];for(const bt of Ke)if(Lt.includes(bt.key)){const xn=(0,i.GE)({link:Xe,attr:st,v:nt,state:it,attrInteraction:bt}),{newInteractions:kn}=(0,i.bH)({interactions:ut},xn);ut=kn}Je({type:"entry:widget:change",payload:{flatChgList:[{key:Tt,hotAttr:{interactions:ut}}]}});return}const Wt=Tt&&sdkStore.getHotItem(Tt);if(!Wt)return;let Kt=[...Wt.hotAttr.interactions];const Gt=Kt.find(Ke=>{let{key:ut,interactionType:zt}=Ke;return ut===Xe.key&&zt===Xe.interactionType})||Xe,St=(0,p.AE)(Gt);let Hn={};if(st==="interactionTrigger"){var uo;const Ke=Gt.interactionTrigger;if(ct.command.moveNodeToNewSup(Gt.key,(0,i.iY)(It)),Kt=ct.command.getInteractionsWithUV([Ke,nt]),ht&&ct._interactionTree.sub.length>1&&((uo=ct.query.getTriggerNode(St))==null?void 0:uo.sub.length)===1){const zt=(0,p.FK)(Gt),bt=ct.query.getSelectSubItaType(),xn={...(0,i.P8)(r.O2.TriggerPlaceHolder),...zt,"!validVersion":2};Hn=(0,i.gk)({hi:{...Wt,hotAttr:{...Wt==null?void 0:Wt.hotAttr,interactions:Kt}},selectSubItaType:bt,newIta:xn,state:it,...zt,preserveOrder:Gt.order}).newFlatChg,Hn&&(Kt=Hn.hotAttr.interactions)}const ut=[{key:Wt.key,hotAttr:{...Hn.hotAttr,interactions:Kt}}];Je({type:"entry:widget:change",payload:{flatChgList:ut}}),Je({type:"entry:refresh:link-list"}),setTimeout(()=>{(0,i._6)({itaKey:Xe.key})},4);return}const Po=(0,i.GE)({link:Xe,attr:st,v:nt,state:it,attrInteraction:Gt,itaStore:ct});if(ct.command.replaceIta(Po),st==="interactionType"&&(Xe.interactionType===r.O2.ConditionalBranches&&(0,i._k)(ct.query.getNode(Xe.key),Ke=>{ct.command.deleteByTreeNode({treeNode:Ke,uiFrom:tt})}),Po.interactionType===r.O2.ConditionalBranches&&ct.command.toBranchRootNode({newIta:Po}),tt==="treePanelFloat"&&Po.interactionType===r.O2.ConditionalBranches)){const Ke=ct.query.findUpTriggerNode(Po.key);if(!Ke.sub.find(ut=>ut.attr.interactionType===r.O2.TriggerPlaceHolder)){const ut={...(0,r.SL)(),subKey:(0,n.cF)("sub")};ct.command.insertNodeIta(ut,Ke.attr.key);const{selectSubItaType:zt}=(0,h.ju)(it,tt),{mergePair:bt,tableMisc:xn}=(0,i.Bj)({hi:Wt,selectSubItaType:zt,state:it,newItaList:[ut]});Hn.hotAttr=bt.hotAttr}}const Yn=ct.command.getInteractionsWithUV([Po.interactionTrigger]),bo=[{key:Tt,hotAttr:{...Hn.hotAttr,interactions:Yn}}];Je({type:"entry:widget:change",payload:{flatChgList:bo}}),Je({type:"entry:refresh:link-list"}),st==="interactionType"&&(tt==="treePanelRight"&&Je(K.command.interactionEditorFloatOpenCommand({directlySelect:!0,interactionType:nt})),P({newInteractionTypeEditingKey:Xe.key},Je))}}),[me,be]=g.B.genCommand({name:"interaction:editingInteraction:edit:direct",impl:(Ue,et)=>{var lt;let{getState:Je,dispatch:Xe}=Ue,{payload:{runtimeIta:st,attrValueList:nt}}=et;const tt=Je(),ht=(lt=(0,M.nE)(tt)[0])==null?void 0:lt.key,It=ht&&sdkStore.getHotItem(ht);if(!It)return;let it=[...It.hotAttr.interactions];const Tt={...st.data};for(const[Rt,Wt]of nt)Tt[Rt]=Wt,Tt.expression&&(Tt.expression={...Tt.expression,[Rt]:void 0});it=it.map(Rt=>Rt.key===st.key?{...Tt,"!validVersion":2}:{...Rt,"!validVersion":2}),Xe({type:"entry:widget:change",payload:{flatChgList:[{key:ht,hotAttr:{interactions:it}}]}}),Xe({type:"entry:refresh:link-list"})}}),[ie,oe]=g.B.genCommand({name:"interaction:editingInteraction:edit:batch",impl:(Ue,et)=>{let{getState:lt,dispatch:Je}=Ue,{payload:{attr:Xe,value:st,trigger:nt,interactionStore:tt,selectNode:ct,nextTNodeTrigger:ht,uiFrom:It}}=et,it=(0,p.Jh)(nt);if(Xe==="interactionTrigger"){var Tt,Lt;if(((Tt=tt.query.getTriggerNode(nt))==null?void 0:Tt.attr.disabled)!==((Lt=tt.query.getTriggerNode(ht))==null?void 0:Lt.attr.disabled)){var Rt;tt.command.updateTriggerSubNode({trigger:nt,attr:"triggerDisable",value:!!((Rt=tt.query.getTriggerNode(ht))!=null&&Rt.attr.disabled)})}if(it=st,P({newTriggerNodeEditingKey:(0,i.iY)(ht)},Je),ct){ct.type==="trigger"&&tt.command.updateTriggerNodeAttr({preTriggerNode:ct,nextTNodeTrigger:ht});const Gt=tt.query.getTriggerInfoByNTrigger(ht);Object.entries(Gt).map(St=>{let[Hn,uo]=St;return tt.command.updateNodeWalk({selectNode:ct,key:Hn,value:uo})})}else tt.command.updateTriggerNodeWalk({trigger:nt,attr:Xe,value:st,nextTNodeTrigger:ht})}else ct?tt.command.updateNodeWalk({selectNode:ct,attr:Xe,value:st}):tt.command.updateTriggerSubNode({trigger:nt,attr:Xe,value:st});const Wt=tt.command.getInteractionsWithUV([it]);It==="treePanelFloat"&&ht&&Wt.length===1&&Wt[0].interactionType===r.O2.TriggerPlaceHolder&&(Wt.pop(),H({selectInteractionKeyList:[(0,i.m1)(ht)]}));const Kt=[{key:tt.query.getCurrentWidget().key,hotAttr:{interactions:Wt}}];Je({type:"entry:widget:change",payload:{flatChgList:Kt}}),Je({type:"entry:refresh:link-list"})}}),[he,ce]=g.B.genCommand({name:"interaction:interaction:delete2",impl:(Ue,et)=>{let{getState:lt,dispatch:Je}=Ue,{payload:{uiFrom:Xe,interactionStore:st,deleteNode:nt,deleteUiFrom:tt,onCloseCallback:ct}}=et;const ht=lt(),It=(0,M.p$)(ht)[0],it=(0,x.zX)(ht),Tt=sdkStore.getHotItem(It),{selectSubItaType:Lt}=(0,h.ju)(ht,Xe);let Rt;if(Xe==="treePanelFloat"){const bo=Ve.getSelectInteractionKeyList(ht)[0],{renderContentType:Ke,nextKey:ut}=(0,i.H4)(st._interactionTree);if(Ke==="multiple"){const zt=st.query.findUpNodeList(st.query.getNode(bo));bo===nt.attr.key||zt.map(bt=>bt.attr.key).includes(nt.attr.key)?Rt=(0,i.he)({selectNode:nt,interactionStore:st}):Rt=[bo]}else Ke==="single"||(Rt=[ut])}st.command.deleteByTreeNode({treeNode:nt,uiFrom:Xe});const Wt=[];if(tt==="treePanelFloat"&&Lt!=="empty"&&Lt!=="tableCell"&&st._interactionTree.sub.length===1){const bo=st._interactionTree.sub[0];if((0,i.xx)(bo.sub).length===1&&!bo.sub.find(Ke=>Ke.interactionType===r.O2.TriggerPlaceHolder)){const Ke=bo.attr.trigger,ut=st.query.getTriggerInfoByNTrigger(Ke),zt={...(0,r.SL)(),subKey:(0,n.cF)("sub"),...ut};st.command.insertNodeIta(zt,bo.attr.key),Wt.push(zt)}}const Kt=st.command.getInteractionsWithUV([nt.type==="trigger"?(0,p.Jh)(nt.attr.trigger):nt.attr.interactionTrigger]),Gt={key:It,hotAttr:{interactions:Kt}};if(Lt==="optionData"){var St;let bo;const{updateNode:Ke}=(0,i.DL)({type:"delete",interactionList:Kt,optionData:Tt.hotAttr.optionData,state:ht,mergePair:Gt});if(bo=Ke,Wt.length>0){const{updateNode:ut}=(0,i.DL)({type:"create",interactionList:Wt,optionData:Gt.hotAttr.optionData,state:ht,mergePair:Gt});bo=ut}((St=Rt)==null?void 0:St.length)===0&&(ct==null||ct()),Je({type:rt["interaction:sub:optionData:delete"],payload:{updateNode:bo}})}else if(Lt==="carouselImage"){var Hn;(0,i.e7)({type:"delete",interactionList:Kt,carousel:Tt.hotAttr.carousel,state:ht,mergePair:Gt}),Wt.length>0&&(0,i.e7)({type:"create",interactionList:Wt,carousel:Gt.hotAttr.carousel,state:ht,mergePair:Gt}),((Hn=Rt)==null?void 0:Hn.length)===0&&(ct==null||ct())}else if(Lt==="tableCell"){const{activeLinkList:bo}=(0,i.g)({type:"delete",oldHi:Tt,selectTableCellInfo:it,interactionList:Kt,mergePair:Gt});Je({type:"links:active:link",payload:{cid:bo}})}if(Je(H(Rt?{selectInteractionKeyList:Rt}:{selectInteractionKeyList:[]})),Je({type:"entry:widget:change",payload:{flatChgList:[Gt]}}),Je({type:"entry:refresh:link-list"}),nt)if(nt.type==="trigger"){var uo;(uo=nt.sub)!=null&&uo.length&&nt.sub.forEach(bo=>{var Ke,ut;v.U4.updateInteractionTrack({type:"\u5220\u9664",interactionTrigger:bo==null||(Ke=bo.attr)==null?void 0:Ke.interactionTrigger,interactionType:bo==null||(ut=bo.attr)==null?void 0:ut.interactionType})})}else{var Po,Yn;v.U4.updateInteractionTrack({type:"\u5220\u9664",interactionTrigger:(Po=nt.attr)==null?void 0:Po.interactionTrigger,interactionType:(Yn=nt.attr)==null?void 0:Yn.interactionType})}}}),[re,fe]=g.B.genCommand({name:"interaction:intActConnector:delete2",impl:(Ue,et)=>{let{getState:lt,dispatch:Je}=Ue,{payload:{interactionKeyList:Xe}}=et;const st=lt(),nt=(0,M.p$)(st)[0],tt=sdkStore.getHotItem(nt),ct=tt.hotAttr.interactions,{nextItaList:ht}=(0,i.BX)({prevInteractionList:ct,deleteKeyList:Xe,hasSubKey:!1}),It={key:tt.key,hotAttr:{interactions:ht}};Je({type:"entry:widget:change",payload:{flatChgList:[It]}}),Je({type:"entry:refresh:link-list"}),Je(H({selectInteractionKeyList:[]}))}}),[Se,Me]=g.B.genCommand({name:"interaction:insert",impl:(Ue,et)=>{let{getState:lt,dispatch:Je}=Ue,{payload:{sourceInteractionKey:Xe,targetInteractionKey:st,insertType:nt,selectTreeNode:tt,interactionStore:ct}}=et;const ht=lt(),It=(0,M.p$)(ht)[0],it=sdkStore.getHotItem(It);let Tt=[],Lt={hotAttr:{}},Rt;ct.command.moveNodeToSibiling(Xe,st,nt);const Wt=ct.query.findUpTriggerNode(Xe),Kt=ct.query.findUpTriggerNode(st);if(!(0,i.sJ)(Xe)&&Wt.sub.length===1){const St=ct.query.getSelectSubItaType(),Hn=(0,p.FK)(tt.attr),uo={...(0,i.P8)(r.O2.TriggerPlaceHolder),...Hn};if(St!=="empty"&&(uo.subKey=(0,n.cF)("sub")),ct.command.insertNode((0,i.db)({attr:{...uo,data:uo},supKey:Wt.attr.key})),St!=="empty"){const{tableMisc:Po,mergePair:Yn}=(0,i.Bj)({hi:it,selectSubItaType:St,newItaList:[uo],state:ht});Lt=Yn,Rt=Po}}Tt=ct.command.getInteractionsWithUV([(0,p.Jh)(Wt.attr.trigger),(0,p.Jh)(Kt.attr.trigger)]);const Gt=[{key:It,hotAttr:{...Lt.hotAttr,interactions:Tt}}];Je({type:"entry:widget:change",payload:{flatChgList:Gt}}),Rt&&Je({type:"links:active:link",payload:{cid:Rt.activeCidList}})}}),[Ie,de]=g.B.genCommand({name:"interaction:copy",impl:(Ue,et)=>{let{getState:lt,dispatch:Je}=Ue,{payload:{isCanvasLayerItemContext:Xe}}=et;const st=lt(),nt=(0,M.p$)(st),tt=(0,_.UV)(st),ct=(0,a.jI)(st),{isEditingCombo:ht}=(0,l.r)(st);if(nt.length!==1)return;const It=sdkStore.getHotItem(nt[0]);if(It.hotAttr.interactions.length===0)return;let it=(0,I.Xr)(tt.sdkStore,nt[0],ht,ct);if(Xe){const Wt=(0,t.G$)(sdkStore.getInteractionsOf(It.key)).reduce((Kt,Gt)=>{if(Gt.subKey)return Kt;const St=It.hotAttr.interactions.find(Hn=>Hn.key===Gt.key);return St?Kt.concat([{...Gt,data:{...St,triggerItemKey:It.key}}]):Kt},[]);it=(0,I.I3)(sdkStore,Wt,It.key,"non-combo")}const Tt=(0,t.mV)(It.hotAttr.type,it),Lt=(0,t.QP)({oldInteractions:Tt}),Rt=(0,f.IN)(Lt);(0,S.b1)({beCopiedInteractions:Lt,varItems:Rt,copyType:"trigger"})}}),[xe,Le]=g.B.genCommand({name:"interaction:tableCell:copy",impl:(Ue,et)=>{let{getState:lt,dispatch:Je}=Ue,{payload:Xe}=et;const{widget:st,selectTableCellInfo:nt}=(0,b.wm)(lt),{selectionLeftTopInfo:{x:tt,y:ct},selectionRightBottomInfo:{x:ht,y:It},isCanRemoveMerge:it}=nt;if(tt===ht&&ct===It||it){let Rt;if((0,c.SS)(st)){var Lt;const{table:Gt,cells:St}=st;Rt=(((Lt=(0,c.j)(St,Gt,ct,tt))==null?void 0:Lt.link)||"").split(",")}else Rt=st.tableData.links[ct][tt].split(",");const Wt=st.interactions.filter(Gt=>Rt.find(St=>St===Gt.subKey)).map(Gt=>({...Gt,subKey:null})),Kt=(0,f.IN)(beCopiedInteractions);(0,S.b1)({beCopiedInteractions:Wt,varItems:Kt,copyType:"trigger"})}}}),[ve,je]=g.B.genCommand({name:"interaction:select:copy",impl:(Ue,et)=>{let{getState:lt,dispatch:Je}=Ue,{payload:{selectNode:Xe,copyType:st,interactionStore:nt}}=et;const tt=nt.query.getNodeInteractionWithSub(Xe),ct=(0,t.QP)({oldInteractions:tt}),ht=(0,f.IN)(ct);(0,S.b1)({beCopiedInteractions:ct,varItems:ht,copyType:st})}}),[We,Ae]=g.B.genCommand({name:"interaction:paste",impl:async(Ue,et)=>{let{getState:lt,dispatch:Je}=Ue,{payload:{targetInteractionKey:Xe,uiFrom:st,option:nt={type:"normal"}}}=et;const tt=lt(),{isEditingBasket:ct}=(0,l.r)(tt),ht=(0,a.jI)(tt),{beCopiedInteractions:It,varItems:it,copyType:Tt}=await(0,S.V5)({isShowPrompt:!0});sdkStore.combineMergeMark("paste-interactions");const Lt=(0,f.E3)(It,it),{selectSubItaType:Rt}=(0,h.ju)(tt,st),Wt=Gt=>{let{hasSubKey:St,hi:Hn}=Gt,uo,Po;if(nt.type!=="pasteToBranch")return{bePastedItas:[],nextItas:[]};const Yn=nt.interactionStore;if(Tt==="action"){const Ke=(0,i.zC)({clipboardItas:Lt,editingBasketKey:ht,isEditingBasket:ct,hasSubKey:St,hi:Hn}),ut=Yn.query.getNode(nt.selectNode.sup),zt=new Set;for(const bt of Ke)if(!zt.has(bt.key))if(bt.interactionType===r.O2.ConditionalBranches){var bo;Yn.command.insertNodeIta(bt,(bo=Yn.query.findUpTriggerNode(ut.attr.key))==null?void 0:bo.attr.key),Yn.command.moveNodeToSibiling(bt.key,Yn.query.getNode(ut.sup).attr.key,"nextSibling"),zt.add(bt.key);const xn=Yn.query.getNode(bt.key);for(const[kn,gn]of Object.entries(bt.branches)){const Zn=bt.key+"_branch_"+kn,Pn=(0,i.dq)({branchKey:Zn,supNode:xn,condition:gn.condition,branchIndex:kn});Yn.command.insertNodeDirectly(Pn,xn.attr.key);for(const _n of gn.subItaRefList){const Wn=Ke.find(Ln=>Ln.key===_n);Wn&&(Yn.command.insertNodeIta(Wn,Pn.attr.key,{skipUpdateBranches:!0}),zt.add(_n))}}}else Yn.command.insertNodeIta(bt,ut.attr.key),Yn.command.moveNodeToSibiling(bt.key,nt.selectNode.attr.key,"nextSibling"),zt.add(bt.key);uo=Ke,Po=Yn.command.getInteractionsWithUV([nt.selectNode.attr.interactionTrigger])}else{const Ke=Hn.hotAttr.interactions,ut=(0,i.ZE)([...Ke]);uo=(0,i.Ge)({clipboardItas:Lt,editingBasketKey:ht,isEditingBasket:ct,hasSubKey:St,targetInteraction:void 0,prevItas:ut,hi:Hn}),Po=(0,i.ow)({nextItas0:ut,bePastedItas:uo,insertPos:ut.length+1})}return{bePastedItas:uo,nextItas:Po}},Kt=Gt=>{let{oldItas:St,hasSubKey:Hn,option:uo,hi:Po}=Gt;const Yn=(0,i.ZE)([...St]);let bo,Ke;Tt==="action"?(bo=Xe?Yn.findIndex(bt=>bt.key===Xe):Yn.length,Ke=Xe?Yn[bo]:void 0):(bo=Yn.length,Ke=void 0);const ut=(0,i.Ge)({clipboardItas:Lt,editingBasketKey:ht,isEditingBasket:ct,hasSubKey:Hn,targetInteraction:Ke,prevItas:Yn,hi:Po});let zt;return uo.type==="tableCell"?zt=(0,i.ow)({nextItas0:St,bePastedItas:ut,insertPos:uo.isSingleCellSelect?bo+1:St.length}):zt=(0,i.ow)({nextItas0:Yn,bePastedItas:ut,insertPos:bo+1}),{bePastedItas:ut,nextItas:zt}};if(Rt==="tableCell"){const Gt=(0,x.zX)(tt),St=(0,M.p$)(tt)[0],Hn=sdkStore.getHotItem(St);let uo=[...Hn.hotAttr.interactions];const{cells:Po,table:Yn}=Hn.hotAttr,bo=JSON.parse(JSON.stringify(Po)),Ke=[],{selectionLeftTopInfo:{x:ut,y:zt},selectionRightBottomInfo:{x:bt,y:xn}}=Gt,kn=ut===bt&&zt===xn;let gn=[];(0,i.In)({x1:ut,x2:bt,y1:zt,y2:xn},(Pn,_n)=>{const{oldCellItas:Wn,oldCellItaKeys:Ln}=(0,t.iL)({cells:Po,table:Yn,interactions:uo,j:_n,i:Pn});let io,to;if(nt.type==="pasteToBranch"){const{bePastedItas:Io,nextItas:co}=Wt({hasSubKey:!0,hi:Hn});io=Io,to=co}else{const{bePastedItas:Io,nextItas:co}=Kt({oldItas:Wn,hasSubKey:!0,option:{type:"tableCell",isSingleCellSelect:kn},hi:Hn});io=Io,to=co}if(io.length===0)return;gn=io;const mo=(0,c.j)(bo,Yn,_n,Pn);if(!mo)return"CONTINUE";mo.link?mo.link=mo.link+","+io.map(Io=>Io.subKey).join(","):mo.link=io.map(Io=>Io.subKey).join(",");for(const Io of Ln)uo=uo.filter(co=>co.subKey!==Io);Ke.push(...to)});const Zn={...Hn,hotAttr:{...Hn.hotAttr,cells:bo,interactions:[...uo,...Ke]}};Je({type:"entry:widget:change",payload:{flatChgList:[Zn],shouldReBuildTree:!0}}),Je({type:"links:active:link",payload:{cid:kn?(0,o.J5)(Zn.hotAttr,Gt):[]}}),setTimeout(()=>{const Pn=(0,i.Yw)(gn);if(Tt==="action")(0,i._6)({itaKey:Pn[0].key});else{var _n;(0,i._6)({itaKey:(_n=Pn.at(-1))==null?void 0:_n.key})}for(const Wn of Pn)(0,i.cF)({itaKey:Wn.key,type:Wn.interactionType===r.O2.ConditionalBranches?"branch":"normal"})},4)}else{const Gt=(0,M.p$)(tt),St=[];let Hn;const uo=Rt!=="empty";for(const Po of Gt){const Yn=sdkStore.getHotItem(Po);if(t.eX.includes(Yn.hotAttr.type))continue;let bo,Ke;if(nt.type==="pasteToBranch"){const{bePastedItas:zt,nextItas:bt}=Wt({hasSubKey:uo,hi:Yn});bo=zt,Ke=bt}else{const zt=Yn.hotAttr.interactions,{bePastedItas:bt,nextItas:xn}=Kt({oldItas:zt,hasSubKey:uo,option:{type:"widget"},hi:Yn});bo=bt,Ke=xn}if(bo.length===0)return;const ut={key:Yn.key,hotAttr:{interactions:Ke}};if(Rt==="optionData"){const{updateNode:zt}=(0,i.DL)({type:"create",interactionList:bo,optionData:Yn.hotAttr.optionData,state:tt,mergePair:ut});Je({type:rt["interaction:sub:optionData:craete"],payload:{updateNode:zt}})}else Rt==="carouselImage"&&(0,i.e7)({type:"create",interactionList:bo,carousel:Yn.hotAttr.carousel,state:tt,mergePair:ut});Gt.length===1&&(Hn=bo),St.push(ut)}if(Je({type:"entry:widget:change",payload:{flatChgList:St}}),Je({type:"entry:refresh:link-list"}),!st)return;if(Gt.length===1){const Po=Hn[0].key;!Xe&&st==="treePanelFloat"&&Je(K.command.interactionSelectCommand({selectInteractionKeyList:[Po]})),setTimeout(()=>{const Yn=(0,i.Yw)(Hn);if(Tt==="action")(0,i._6)({itaKey:Yn[0].key});else{var bo;(0,i._6)({itaKey:(bo=Yn.at(-1))==null?void 0:bo.key})}for(const Ke of Yn)(0,i.cF)({itaKey:Ke.key,type:Ke.interactionType===r.O2.ConditionalBranches?"branch":"normal"})},4)}}sdkStore.combineMerge("paste-interactions")}}),[we,_e]=g.B.genCommand({name:"interaction:subIta:select",impl:async(Ue,et)=>{let{getState:lt,dispatch:Je}=Ue,{payload:Xe}=et;const st=lt(),nt=(0,M.nE)(st)[0],{key:tt,hotAttr:ct}=nt;let ht="";if(Xe.type==="optionData"?ht=Xe.node.data.linkCids:ht=ct.carousel.slides[Xe.imageIndex].linkCids,!ht)Je(H({selectInteractionKeyList:[(0,i.m1)("tap")]})),(0,d.X)();else if(ct.interactions.length===0)Je(H({selectInteractionKeyList:[(0,i.m1)("tap")]})),(0,d.X)();else{var It;const{itaTree:it}=(0,i.Yj)({interactions:ct.interactions.filter(Lt=>ht.includes(Lt.subKey))});let Tt;if(Xe.type==="carouselImage"?Tt=i.e4.getSelection(tt+"-"+Xe.imageIndex):Xe.type==="optionData"&&(Tt=i.e4.getSelection(tt+"-"+Xe.path)),Tt&&(0,i.zS)(Tt,it)){Je(H({selectInteractionKeyList:[Tt],isScroll:!0}));return}for(const Lt of it.sub){const Rt=(0,i.aW)(Lt.sub);if(Rt.length>0){Je(H({selectInteractionKeyList:[Rt[0].attr.key],isScroll:!0}));return}}Je(H({selectInteractionKeyList:[(0,i.m1)(((It=it.sub[0])==null?void 0:It.attr.trigger)||"tap")],isScroll:!0}))}}}),[Te,Ye]=g.B.genCommand({name:"interaction:edit:undo",impl:async(Ue,et)=>{let{getState:lt,dispatch:Je}=Ue,{payload:Xe}=et;const st=lt(),nt=Ve.getStateStack(st),tt=nt.pop(),ct=nt.pop();ct&&P(ct,Je)}}),Fe={...E,...O,...Q,...L,...B,...te,...pe,...ie,...he,...Se,...Ie,...ve,...We,...xe,...we,...Z,...re,...F,...X,...Te,...A,...me,"interaction:sub:optionData:craete":(Ue,et)=>{let{getState:lt,dispatch:Je}=Ue,{payload:Xe}=et;const{updateNode:st}=Xe;Je({type:"settings:set:select:option:node",payload:{node:st}})},"interaction:sub:optionData:delete":(Ue,et)=>{let{getState:lt,dispatch:Je}=Ue,{payload:Xe}=et;const{updateNode:st}=Xe;Je({type:"settings:set:select:option:node",payload:{node:st}})}},Ve=g.B.genQuery(G,{getStateFn:Ue=>Ue.editor.state.interaction}),rt=g.B.genEntryKey(Fe);return{__initialState:G,__reducer:$,__entry:Fe,entryKey:rt,query:Ve,dispatchState:P,command:{interactionSelectCommand:H,subItaSelectCommand:_e,undoCommand:Ye,clearAllCommand:V,interactionEditorFloatOpenCommand:N,intActConnectorSelectCommand:U,intActConnectorDummySelectCommand:D,editingInteractionCreateCommand:j,linkDesignCreateIta:Y,treePanelSingleCreateCommand:J,addIta:ge,updateItaKV:Ce,updateItaKVDirect:be,updateItaBatch:oe,deleteIta:ce,interactionInsertCommand:Me,intActConnectorDeleteCommand:fe,interactionCopyCommand:de,interactionCopyTableCellCommand:Le,selectCopyCommand:je,pasteIta:Ae}}})()},37841:(He,ee,e)=>{"use strict";e.d(ee,{D:()=>p,N:()=>s});var n=e(38502),r=e(53732),c=e.n(r),o=e(68677),I=e(76613),u=e(46464),d=e(58093),C=e(17307),h=e(69246),i=e(93872),f=e(72214);const p=l=>{let{depth:_,withSubOptions:b=!0,optionItem:a,isOptionActive:M,isOptionDisabled:x=()=>!1,isOptionCollapsed:g=()=>!1,onSelect:S,onToggleCollapsed:t,onMouseEnterOption:v,onMouseLeaveOption:w,noIcon:k=!1,shouldRenderChildren:W=!0}=l;const{key:K,hotAttr:{name:G}}=a,$=b&&a.subHotItemList||[],P=x(a),E=M(a),H=g(a),O=(0,n.useCallback)(L=>{L.stopPropagation(),!P&&S(a.key,a)},[P,S,a]),V=(0,n.useCallback)(L=>{L.stopPropagation(),t(K)},[t,K]),Q=(0,n.useCallback)(L=>{L.stopPropagation(),v&&v(K)},[v,K]),N=(0,n.useCallback)(L=>{L.stopPropagation(),w&&w(K)},[w,K]);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(i.Av,{role:"option",depth:_,"data-value":K,onClick:O,onMouseEnter:Q,onMouseLeave:N,className:c()("dropmenu-no-exit","isV9Layout",{" is-disabled":P,"is-active":E}),children:[$.length>0&&(0,f.jsx)(C.C,{className:c()("expander",{"is-collapsed":H}),name:"common/solid-arrow",onClick:V}),k?null:a.hotAttr.bunch==="rbPage"?(0,f.jsx)(h.k,{icon:a.hotAttr.icon,isExpand:!H,theme:"dark"}):K===I.rE?(0,f.jsx)(C.C,{name:"setting_panel/event/current_widget"}):(0,f.jsx)(u.A,{widget:a,isDynamic:a.hotAttr.basket==="bDanli"}),a.iconName&&(0,f.jsx)(C.C,{name:a.iconName}),(0,f.jsx)(o.A,{children:K===I.rE?I18N.SettingPanel.current_widget:G})]}),!H&&W&&$.map(L=>(0,f.jsx)(p,{depth:_+1,withSubOptions:b,optionItem:L,isOptionActive:M,isOptionDisabled:x,isOptionCollapsed:g,onToggleCollapsed:t,onMouseEnterOption:v,onMouseLeaveOption:w,onSelect:S},L.key))]})},s=(0,n.memo)((0,n.forwardRef)((l,_)=>{let{children:b,query:a,setQuery:M,className:x,forceFocus:g}=l;const[S,t]=(0,n.useState)([]),v=(0,n.useCallback)(w=>S.includes(w)?t(S.filter(k=>k!==w)):t([...S,w]),[S]);return(0,f.jsxs)(i.vw,{ref:_,className:c()("isV9Layout",x),children:[(0,f.jsx)(d.A,{placeholder:I18N.w.search,value:a,onChange:w=>M(w),forceDarkTheme:!0,forceFocus:g}),b({toToggleCollapsed:v,keyItemCollapsed:S})]})}))},37860:(He,ee,e)=>{"use strict";e.d(ee,{GT:()=>x,HI:()=>_,P8:()=>f,YN:()=>o,c3:()=>u,nh:()=>p});var n=e(75258);const r={"MP-app":{all:[{clabel:"\u514D\u8D39",list:[{key:"sl4hv9chThmb520x3emdCy",mtCid:"mtl4hv9cfoo3ju0u"},{key:"sl4hv9chThmb52JX4SwBy6",mtCid:"mtl4hv9cfoo3ju0u"}]},{clabel:"\u4F1A\u5458\u514D\u8D39",list:[{key:"sl4hv9chThmb520x3emdCy",mtCid:"mtl4hv9cfoo3ju0u"},{key:"sl4hv9chThmb52JX4SwBy6",mtCid:"mtl4hv9cfoo3ju0u"}]},{clabel:"\u7D20\u6750\u4F1A\u5458\u514D\u8D39",list:[{key:"sl4hv9chThmb520x3emdCy",mtCid:"mtl4hv9cfoo3ju0u"},{key:"sl4hv9chThmb52JX4SwBy6",mtCid:"mtl4hv9cfoo3ju0u"}]}]}},c={"MP-app":{all:[{clabel:"\u514D\u8D39",list:[{key:"sk4s6tnqol1mm4f",mtCid:"mtk4s6tnpu2wjeno"},{key:"sk4s6tnqo7wp040",mtCid:"mtk4s6tnpu2wjeno"}]},{clabel:"\u4F1A\u5458\u514D\u8D39",list:[{key:"sk4s6trox95ivvt",mtCid:"mtk4s6tro3wncexo"},{key:"sk4s6troxs65vul",mtCid:"mtk4s6tro3wncexo"}]},{clabel:"\u7D20\u6750\u4F1A\u5458\u514D\u8D39",list:[{key:"sk6rlt9uz2kn47i",mtCid:"mtk6rlt9u4p7hmtf"},{key:"sk6rlt9uz8qrmn7",mtCid:"mtk6rlt9u4p7hmtf"}]}]}},o=()=>{const g=I18N.Resources.basic_widget,S=I18N.Resources.form_widget,t=I18N.Resources.nav_widget,v=I18N.Resources.chart_widget,w=I18N.Resources.advanced_chart_widget,k=I18N.Resources.multimedia_widget,W=I18N.Resources.shape_widget,K=I18N.Resources.flow_widget;return{basic:g,form:S,navigation:t,chart:v,advancedChart:w,multimedia:k,shape:W,flow:K}},I={...n.Yw,Common:"common"},u={...n.Iw,Common:"common"},d={...n.zk,[I.Common]:[u.Common]},C={All:"all",More:"more"},h={[u.MP_App]:{mt2lozhvvrwd9qh3y:1,mt2lozhjwat9i4s4f:2,mt2lozn2pekekuj9o:3,mt2lozkjwaxx5sc6l:4,mt2lozkqyxzboszxp:5,mt2lozkx5obr587d4:6,mt2lozl89fz8opt8u:7,mt2loznb2k0zlyffa:8,mt2lozll0ulbic8cr:9,mt2lozo1tr65gz6pn:10,mt2lozmatpdb5sriv:11,mt2lozmj66ykejjy9:12,mt2lozmtwmqe7ys4b:13},[u.MP_IOS]:{mt2loxx9vhe83pho7:1,mt2lozcyfdcve2tbx:2,mt2lozruqjwdtbvue:3,mt2lozpshrhq5vij5:4,mt2lozs5uy3zaoupu:5,mt2lozsedohxe6r74:6,mt2lozqoyxhmgy5y5:7,mt2lp0j70wykekm4h:8,mt2lozq2ddinb4pf7:9},[u.MP_Android]:{mt2lozsl4bkv77j8s:1,mt2lozsovqt9b08nn:2,mt2lozss5n1uvuc46:3,mt2lozsu90qn0obeu:4},[u.MP_Applet]:{mtl2eevw55atfiu9:1,mtkc608a4k7xr0i2:2,mtkc33rwf8yjgahd:3,mtkc5zphvgbjz33n:4,mtl2gzug7zytusa4:5,mtkc33x51uq24mx:6,mtkc32xraihahnkg:7,mtk4s6tn56o6ph8a:8,mtk4s6tmciidvya6:9,mtki026w64jh2esk:10},[u.MP_H5]:{mtl121jwze5ph1ap:1,mtl4pfb4nyec95sh:2,mtk4s6tsiqfw31q2:3,mtl4f8r5zpju1kk6:4,mtl486i14562v4cu:5},[u.MP_Public]:{mt2lozoup371ddim9:1,mt2lozpcypmvjkd2p:2},[u.MP_ECommerce]:{mtk4s6ttaa6zwrn2:1,mtk4s6tstihx3kv:2,mtk4s6tu9ngo0rcj:3,mtk4s6tkm7vl5oj8:4},[u.MP_Poster]:{mtki03e4384ossnz:1},[u.PC_Website]:{mt2lp0te7lkorbvrt:1,mt2lp0jjhriinr65t:2,mt2lp0tla1tadz8i3:3,mt2lp0tod9dgs38vz:4,mt2lp0trerpe843hv:5,mt2lp0tu2xixvnzxq:6,mt2lp0y1yqzsmvq4b:7,mt2lp0ywxvf2oqb8u:8,mt2lp0y6te0ortuu9:9,mt2lp0yr1u4kwi6tg:10,mt2lp0yp388m469rj:11,mt2lp0yc11psuwxi4:12},[u.PC_WebBack]:{mt2loztlvsbwyhnct:1,mt2lp0hxsgd1u52oi:2,mt2lp0i0kr4oo4ham:3,mt2lp0it6gedxfg4e:4,mt2lp0i3buy38zpxw:5,mt2lozsoc1x8dhgcu:6,mt2lozrjpn1uvtppn:7,mt2lozsjfmlbtb8br:8,mt2lozrsfzox2pvxz:9,mt2lozrngjw8j02by:10},[u.PC_MacOS]:{mt2lp0nlmyrcmh92j:1,mt2lp0sl3piupf46h:2,mt2lp0rlhnccjqm51:3,mt2lp0shy54ktv3ia:4,mt2lp0xqwg1ytx1m1:5,mt2lp0u2tdh8jrsec:6,mt2lp0tyg6sz9t8oc:7,mt2lp0tv5f6q8rnw3:8,mt2lp0y0szn7hv2py:9,mt2lp0yvugl91ms3u:10,mt2lp0y6466kwqonr:11,mt2lp0yrgwtji3xcl:12,mt2lp0yonfcn3ah55:13,mt2lp0yltffjfqtbl:14},[u.PC_Windows]:{mt2lp12zpb0kdluo4:1,mt2lp16ho95o9h1be:2,mt2lp16lqjaey7agv:3,mt2lp16nnmowgzouf:4,mt2lp0xrf137mahyp:5,mt2lp0u3po8n4hcrq:6,mt2lp0tz1rehh8d73:7,mt2lp0tvw7cliz08m:8,mt2lp0y07dhidvrp4:9,mt2lp0yv8u4q8pnhr:10,mt2lp0y5hmrhbtc03:11,mt2lp0yruig74twz:12,mt2lp0yo93fkym2ec:13,mt2lp0yb0uom7m0n1:14},[u.PAD_IpadOs]:{mt2lozt1l2kg7iqtr:1,mt2lp0it6t990rnld:2,mt2lp0mwm8jwcotdv:3,mt2lp0n74zbbdnr7w:4},[u.PAD_Android]:{mtki03e4384ossnz:1},[u.TV_AppleTVOS]:{mt2lp1ycn4ioyfy5a:1,mt2lp1yffemkhsle3:2,mt2lp1yij1yg8g5i3:3,mt2lp1ylg5hmk0i5q:4},[u.TV_AndroidTV]:{mt2lp1y91m6cei8v9:1,mt2lp1xnd95laexgk:2,mt2lp1xuxbeh2rcg1:3,mt2lp1xpsdjrjh6db:4,mt2lp1xkugp2eu9nb:5},[u.HMI_Car]:{mt2lozre4zpi75z6k:1,mt2lozqzddfwb9gs8:2},[u.HMI_IndusHmi]:{mt2lpi48t5neqizai:1,mt2lpi43mu6wk9ffy:2},[u.WATCH_Apple]:{mt2lp0izyslgamu24:1},[u.WATCH_Android]:{mt2lp0j3czrmtow9j:1},[u.SLIDE_Slide]:{mt2lp0kvxkb2r9k7c:1},[u.DS_Screen]:{mt2lpi3vazsyug92l:1,mt2lpi38e9imwzi56:2,mt2lpi2w3koehilvz:3,mt2lpi340d21pk2bv:4,mt2lpi3cszx3ysf1k:5,mt2lpi30fwywrqmar:6}},i={name:C.More,id:null},f={name:C.All,id:null},p=()=>{const{basic:g,form:S,navigation:t,chart:v,multimedia:w,shape:k,flow:W}=o();return{[u.Common]:[{name:g},{name:S},{name:t},{name:v},{name:w},{name:k},{name:W}]}},s={[u.MP_App]:{\u5927\u5382\u8D44\u6E90:1,\u901A\u7528:2,\u6570\u636E\u5F55\u5165:3,\u6570\u636E\u5C55\u793A:4,\u5BFC\u822A:5,\u53CD\u9988:6,\u5176\u5B83:7},[u.MP_Applet]:{\u5927\u5382\u8D44\u6E90:1,\u901A\u7528:2,\u6570\u636E\u5F55\u5165:3,\u6570\u636E\u5C55\u793A:4,\u5BFC\u822A:5,\u53CD\u9988:6,\u5176\u5B83:7},[u.PC_WebBack]:{\u5927\u5382\u8D44\u6E90:1,\u901A\u7528:2,\u6570\u636E\u5F55\u5165:3,\u6570\u636E\u5C55\u793A:4,\u5BFC\u822A:5,\u53CD\u9988:6,\u5176\u5B83:7},[u.PC_Website]:{\u5B98\u7F51\u5BFC\u822A:1,\u5185\u5BB9\u533A:2,\u7279\u5F81\u533A:3,Banner:4,\u5B9A\u4EF7\u533A:5,\u9875\u811A:6},[u.DS_Screen]:{\u56FE\u8868:1,\u6846\u67B6\u80CC\u666F:2,\u6807\u9898\u6837\u5F0F:3,\u5730\u56FE:4,\u6309\u94AE:5,\u7A97\u53E3\u6846:6},[u.Common]:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u56FE\u8868:4,\u591A\u5A92\u4F53:5,\u5F62\u72B6:6}},l={[u.MP_App]:{\u5927\u5382\u8D44\u6E90:1,\u901A\u7528:2,\u6570\u636E\u5F55\u5165:3,\u6570\u636E\u5C55\u793A:4,\u5BFC\u822A:5,\u6D41\u7A0B:6},[u.MP_Applet]:{\u5927\u5382\u8D44\u6E90:1,\u901A\u7528:2,\u6570\u636E\u5F55\u5165:3,\u6570\u636E\u5C55\u793A:4,\u5BFC\u822A:5,\u6D41\u7A0B:6},[u.PC_WebBack]:{\u5927\u5382\u8D44\u6E90:1,\u901A\u7528:2,\u6570\u636E\u5F55\u5165:3,\u6570\u636E\u5C55\u793A:4,\u5BFC\u822A:5,\u6D41\u7A0B:6},[u.PC_Website]:{\u5B98\u7F51\u5BFC\u822A:1,\u5185\u5BB9\u533A:2,\u7279\u5F81\u533A:3,Banner:4,\u5B9A\u4EF7\u533A:5,\u6D41\u7A0B:6},[u.DS_Screen]:{\u56FE\u8868:1,\u6846\u67B6\u80CC\u666F:2,\u6807\u9898\u6837\u5F0F:3,\u5730\u56FE:4,\u6309\u94AE:5,\u6D41\u7A0B:6},[u.Common]:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u56FE\u8868:4,\u591A\u5A92\u4F53:5,\u5F62\u72B6:6,\u6D41\u7A0B:7}},_=()=>{if(!ENV.IS_MO)return l;const{basic:g,form:S,navigation:t,chart:v,multimedia:w,shape:k}=o();return{[u.Common]:{[g]:1,[S]:2,[t]:3,[v]:4,[w]:5,[k]:6}}},b={[u.MP_App]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u591A\u5A92\u4F53:4,\u56FE\u8868:5,\u5F62\u72B6:6,\u6D41\u7A0B:7},\u901A\u7528:{\u57FA\u7840:1},\u6570\u636E\u5F55\u5165:{\u8868\u5355:1},\u5BFC\u822A:{\u5BFC\u822A:1},\u6D41\u7A0B:{\u6D41\u7A0B:1},\u6570\u636E\u5C55\u793A:{\u591A\u5A92\u4F53:1,\u56FE\u8868:2,\u9AD8\u7EA7\u56FE\u8868:3},\u5176\u5B83:{\u5F62\u72B6:1}},[u.MP_Applet]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u591A\u5A92\u4F53:4,\u6D41\u7A0B:5},\u901A\u7528:{\u57FA\u7840:1},\u6570\u636E\u5F55\u5165:{\u8868\u5355:1},\u5BFC\u822A:{\u5BFC\u822A:1},\u6D41\u7A0B:{\u6D41\u7A0B:1},\u6570\u636E\u5C55\u793A:{\u591A\u5A92\u4F53:1,\u56FE\u8868:2,\u9AD8\u7EA7\u56FE\u8868:3},\u5176\u5B83:{\u5F62\u72B6:1}},[u.PC_WebBack]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u56FE\u8868:4,\u9AD8\u7EA7\u56FE\u8868:5,\u591A\u5A92\u4F53:6,\u6D41\u7A0B:7},\u901A\u7528:{\u57FA\u7840:1},\u6570\u636E\u5F55\u5165:{\u8868\u5355:1},\u5BFC\u822A:{\u5BFC\u822A:1},\u6D41\u7A0B:{\u6D41\u7A0B:1},\u6570\u636E\u5C55\u793A:{\u591A\u5A92\u4F53:1,\u56FE\u8868:2,\u9AD8\u7EA7\u56FE\u8868:3},\u5176\u5B83:{\u5F62\u72B6:1}},[u.PC_Website]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u591A\u5A92\u4F53:4,\u56FE\u8868:5,\u5F62\u72B6:6,\u6D41\u7A0B:7},\u5B98\u7F51\u5BFC\u822A:{\u5BFC\u822A:1},\u5185\u5BB9\u533A:{\u591A\u5A92\u4F53:1},\u6D41\u7A0B:{\u6D41\u7A0B:1}},[u.DS_Screen]:{all:{\u57FA\u7840:1,\u56FE\u8868:2,\u9AD8\u7EA7\u56FE\u8868:3,\u591A\u5A92\u4F53:4,\u8868\u5355:5,\u5BFC\u822A:6,\u5F62\u72B6:7,\u6D41\u7A0B:8},\u56FE\u8868:{\u56FE\u8868:1,\u9AD8\u7EA7\u56FE\u8868:2},\u6D41\u7A0B:{\u6D41\u7A0B:1}},[u.MP_H5]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u591A\u5A92\u4F53:4,\u56FE\u8868:5,\u5F62\u72B6:6,\u6D41\u7A0B:7}},[u.MP_Public]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u591A\u5A92\u4F53:4,\u6D41\u7A0B:5}},[u.MP_IOS]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u591A\u5A92\u4F53:4,\u56FE\u8868:5,\u5F62\u72B6:6,\u6D41\u7A0B:7}},[u.MP_Android]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u591A\u5A92\u4F53:4,\u56FE\u8868:5,\u5F62\u72B6:6,\u6D41\u7A0B:7}},[u.PC_MacOS]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u591A\u5A92\u4F53:4,\u56FE\u8868:5,\u5F62\u72B6:6,\u6D41\u7A0B:7}},[u.PC_Windows]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u591A\u5A92\u4F53:4,\u56FE\u8868:5,\u5F62\u72B6:6,\u6D41\u7A0B:7}},[u.PAD_IpadOs]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u591A\u5A92\u4F53:4,\u56FE\u8868:5,\u5F62\u72B6:6,\u6D41\u7A0B:7}},[u.PAD_Android]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u591A\u5A92\u4F53:4,\u56FE\u8868:5,\u5F62\u72B6:6,\u6D41\u7A0B:7}},[u.TV_AppleTVOS]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u56FE\u8868:4,\u591A\u5A92\u4F53:5,\u5F62\u72B6:6,\u6D41\u7A0B:7}},[u.TV_AndroidTV]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u56FE\u8868:4,\u591A\u5A92\u4F53:5,\u5F62\u72B6:6,\u6D41\u7A0B:7}},[u.HMI_IndusHmi]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u56FE\u8868:4,\u9AD8\u7EA7\u56FE\u8868:5,\u591A\u5A92\u4F53:6,\u5F62\u72B6:7,\u6D41\u7A0B:8}},[u.HMI_Car]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u591A\u5A92\u4F53:3,\u5BFC\u822A:4,\u56FE\u8868:5,\u5F62\u72B6:6,\u6D41\u7A0B:7}},[u.WATCH_Apple]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u591A\u5A92\u4F53:4,\u5F62\u72B6:5,\u6D41\u7A0B:6}},[u.WATCH_Android]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u591A\u5A92\u4F53:4,\u5F62\u72B6:5,\u6D41\u7A0B:6}},[u.SLIDE_Slide]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u591A\u5A92\u4F53:3,\u56FE\u8868:4,\u9AD8\u7EA7\u56FE\u8868:5,\u5BFC\u822A:6,\u5F62\u72B6:7,\u6D41\u7A0B:7}},[u.Common]:{all:{\u57FA\u7840:1,\u8868\u5355:2,\u5BFC\u822A:3,\u56FE\u8868:4,\u591A\u5A92\u4F53:5,\u5F62\u72B6:6,\u6D41\u7A0B:7},\u57FA\u7840:{\u57FA\u7840:1},\u8868\u5355:{\u8868\u5355:1},\u5BFC\u822A:{\u5BFC\u822A:1},\u56FE\u8868:{\u56FE\u8868:1,\u9AD8\u7EA7\u56FE\u8868:2},\u591A\u5A92\u4F53:{\u591A\u5A92\u4F53:1},\u5F62\u72B6:{\u5F62\u72B6:1},\u6D41\u7A0B:{\u6D41\u7A0B:1}}},a=()=>{if(!ENV.IS_MO)return b;const{basic:g,form:S,navigation:t,chart:v,advancedChart:w,multimedia:k,shape:W}=o();return{[u.Common]:{all:{[g]:1,[S]:2,[t]:3,[v]:4,[w]:5,[k]:6,[W]:7},[g]:{[g]:1},[S]:{[S]:1},[t]:{[t]:1},[v]:{[v]:1,[w]:2},[k]:{[k]:1},[W]:{[W]:1}}}},M={[u.MP_App]:"app",[u.MP_IOS]:"ios",[u.MP_Android]:"android",[u.MP_Applet]:"\u5C0F\u7A0B\u5E8F",[u.MP_H5]:"H5",[u.MP_Public]:"\u516C\u4F17\u53F7",[u.MP_ECommerce]:"\u7535\u5546",[u.MP_Poster]:"\u6D77\u62A5",[u.PC_Website]:"web\u5B98\u7F51",[u.PC_WebBack]:"web\u540E\u53F0",[u.PC_MacOS]:"mac OS",[u.PC_Windows]:"windows",[u.PAD_IpadOs]:"iPad OS",[u.PAD_Android]:"\u5E73\u677F\u5B89\u5353",[u.TV_AppleTVOS]:"apple tv",[u.TV_AndroidTV]:"Android tv",[u.HMI_IndusHmi]:"\u5DE5\u4E1AHMI",[u.HMI_Car]:"\u8F66\u8F7D\u4E2D\u63A7",[u.CAR_Car]:"\u8F66\u8F7D\u4E2D\u63A7",[u.WATCH_Apple]:"watch os",[u.WATCH_Android]:"\u5B89\u5353\u624B\u8868",[u.SLIDE_Slide]:"\u5E7B\u706F\u7247",[u.DS_Screen]:"\u53EF\u89C6\u5316\u5927\u5C4F"},x={[n.So.Mobile]:"\u624B\u673A",[n.So.Web]:"\u7F51\u9875/\u7535\u89C6",[n.So.Other]:"\u5176\u5B83",[n.So.App]:"App",[n.So.Applet]:"\u5C0F\u7A0B\u5E8F",[n.So.Website]:"Web\u7F51\u7AD9",[n.So.WebBack]:"Web\u540E\u53F0",[n.So.Ipad]:"\u5E73\u677F\u7AEF",[n.So.SmartTV]:"\u667A\u80FD\u7535\u89C6",[n.So.AppleWatch]:"\u624B\u8868",[n.So.Slide]:"\u5E7B\u706F\u7247",[n.So.DisplayScreen]:"\u53EF\u89C6\u5316\u5927\u5C4F",[n.So.HMI]:"HMI",[n.So.Activity]:"\u6D3B\u52A8"}},37944:(He,ee,e)=>{"use strict";e.d(ee,{u:()=>I});var n=e(38502),r=e(67787),c=e(9501),o=e(72214);const I=(0,n.memo)(d=>{const{stickerList:C,popupsName:h}=d;return C?(0,o.jsx)(u,{className:"sticker-item-list",children:C.map((i,f)=>(0,o.jsx)(c.B,{asset:i,popupsName:h},f))}):null}),u=r.Ay.div.withConfig({displayName:"StickerList__StyledStickerList",componentId:"sc-1bmduah-0"})(["&.sticker-item-list{width:100%;overflow:hidden auto;display:grid;grid-template-columns:repeat(2,109px);gap:8px;}"])},38155:(He,ee,e)=>{"use strict";if(e.d(ee,{EG:()=>o,bq:()=>I,n5:()=>c}),e.j!=477)var n=e(19249);var r=e(18833);const c=async function(u,d){var C,h,i,f;d===void 0&&(d=1);let p={category:"project_basic",order:"recommend",page:d,page_size:30,project_type:"prototype",version:"v2"};u&&(p={...p,...u}),((C=p)==null?void 0:C.platform)==="default"&&delete p.platform,((h=p)==null?void 0:h.plabel)==="default"&&(delete p.plabel,delete p.plabelId,delete p.clabel,delete p.clabelId),((i=p)==null?void 0:i.clabel)==="default"&&(delete p.clabel,delete p.clabelId),((f=p)==null?void 0:f.policy)==="default"&&delete p.policy;let s=[],l=0;try{const _=!p.q&&p.order==="recommend"&&!p.policy,b=!p.q&&p.order==="recommend",a=_&&!ENV.IS_ON_PREMISES?"/api/community/v1/community_search_balanced":"/api/community/v1/community_search",M=b&&!ENV.IS_ON_PREMISES?{...p,balanced_type:"market_template"}:p,{market_templates:x,total_count:g}=await(0,n.zi)(a,M);s=x,l=g}catch(_){(0,r.FY)(_)}return{market_templates:s,total_count:l}},o=async()=>{const{keywords:u}=await(0,n.DE)("/api/community/v1/community/labels"),d=u.project_basic.labels,C={};return d.forEach(h=>{let{plabel:i,clabels:f}=h;const p={plabelId:i.label_id,clabels:{}};f.forEach(s=>{let{name:l,label_id:_}=s;p.clabels[l]=_}),C[i.name]=p}),C},I=async u=>{const d=ENV.IS_ON_PREMISES?"/mb-proto2/mk_2512/json/new_page_types_"+u+".json":"/api/market_template/v4/workspace/new_page_types?platform="+u;return(await(0,n.DE)(d)).types}},38462:(He,ee,e)=>{"use strict";e.d(ee,{E:()=>c,K:()=>o});var n=e(93413);if(e.j!=477)var r=e(47163);const c=[n.c.GUIDE_OLD_NEW_CREATE_PAGE],o=function(I,u){u===void 0&&(u=!1);const d=!(0,r.k)();return{[n.c.GUIDE_OLD_NEW_CREATE_PAGE]:{selector:n.c.GUIDE_OLD_NEW_CREATE_PAGE,guide:{position:{top:53,left:-28},title:I.CommonGuides.v8guide28,content:I.CommonGuides.v8guide29},arrow:{position:{top:-24,left:36},direction:"top"},imgUrl:"/mb-proto2/images/guide/newGuides/guide_"+n.c.GUIDE_OLD_NEW_CREATE_PAGE+(d?"_en":"")+".png"},[n.c.GUIDE_TOOLBAR_COMMON]:{position:{top:78,left:320}}}}},38571:(He,ee,e)=>{"use strict";e.d(ee,{y:()=>l,S:()=>s});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),I=e(61068),u=e(4648),d=e(67787);const C=d.Ay.div.withConfig({displayName:"styles__StylesShadowCollapseBody",componentId:"sc-64hzv5-0"})(["height:0;transition:height 200ms ease-in-out 0s;overflow:hidden;&.is-open{height:auto;overflow:visible;margin-top:4px;}.shadow-line{width:142px;margin-left:auto;margin-right:8px;flex-direction:row;display:flex;flex-wrap:wrap;align-items:center;.var-input-container{margin-right:6px;&:nth-child(2n){margin-right:0;}&:first-child,&:nth-child(2){margin-bottom:6px;}}.shadow-item{height:28px;width:68px;border:1px solid ",";&.is-active{border:1px solid ",";}.title.col-resize{font-size:11px;white-space:nowrap;}&.shadow-item-x,&.shadow-item-y{.title.col-resize{padding-left:11px;}input{margin-left:10px;}}&.shadow-item-b,&.shadow-item-s{.title.col-resize{padding-left:4px;}input{margin-left:2px;}}}}.shadow-title{width:180px;height:24px;display:flex;margin-left:28px;span{flex:1;padding-left:6px;color:",";font-size:12px;}}"],_=>_.theme.color_bg_border_02,_=>_.theme.color_proto,_=>_.theme.color_text_L3);var h=e(20089),i=e(30523),f=e(72214);const p=()=>null,s=(_,b)=>{const a=_==null?void 0:_.type;if(a==="box_shadow"){var M;if(((M=b.hotAttr)==null?void 0:M.type)===h.x.WRichText)return{..._,spreadRadius:0,type:"text_shadow"};if(!_.spreadRadius)return{..._,spreadRadius:0}}else if(a==="text_shadow"){var x;if(((x=b.hotAttr)==null?void 0:x.type)!==h.x.WRichText)return{..._,spreadRadius:_.spreadRadius||0,type:"box_shadow"}}return _};class l extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleShadowChanged",(b,a,M)=>{const{attr:x,onChange:g,selections:S,dispatch:t,shadow:v,refVars:w}=this.props,k={...v,type:x};k[a]=b;const W={...w,[a]:M};S.length>1?S.forEach(K=>{const G=sdkStore.getHotItem(K),$=s({...k},G);g({value:$,attr:"shadow",refVar:W,selections:[K],dispatch:t})}):g({value:k,attr:"shadow",refVar:W,selections:S,dispatch:t}),this.setState({shadowValue:k,refVar:W})})}render(){const{attr:b,shadow:a,refVars:M,refStyles:x,canOpenLib:g,canCreateColorRef:S,onPosition:t}=this.props;return(0,f.jsxs)("div",{className:"shadows-panel",children:[(0,f.jsxs)("div",{className:"appearance-line height-32 margin-left-n6",children:[(0,f.jsxs)("div",{className:"common-check-label-box",children:[(0,f.jsx)(I.A,{attr:"shadowIsVisible",className:"style-check "+I.p,isChecked:a.shadowIsVisible,onChange:this.handleShadowChanged}),(0,f.jsx)("label",{className:"left-label",children:I18N.SettingPanel.shadows})]}),(0,f.jsx)(u.R_,{mode:"input",canOpenLib:g,className:u.EY,supAttr:"shadow",attr:"shadowColor",color:a.shadowColor,canCreateColorRef:S,refStyles:x,onChange:this.handleShadowChanged,onPosition:t})]}),(0,f.jsx)(C,{className:o()({"is-open":a.shadowIsVisible}),children:(0,f.jsxs)("section",{className:"shadow-line",children:[(0,f.jsx)(i.Yw,{type:"number",inputClassName:"shadow-item shadow-item-x",min:-99,max:99,attr:"offsetX",value:a.offsetX,refVar:M==null?void 0:M.offsetX,onConfirm:(v,w)=>this.handleShadowChanged(v,"offsetX",w),title:"X"}),(0,f.jsx)(i.Yw,{type:"number",inputClassName:"shadow-item shadow-item-y",min:-99,max:99,attr:"offsetY",value:a.offsetY,refVar:M==null?void 0:M.offsetY,onConfirm:(v,w)=>this.handleShadowChanged(v,"offsetY",w),title:"Y"}),(0,f.jsx)(i.Yw,{type:"number",inputClassName:"shadow-item shadow-item-b",min:0,max:99,attr:"blurRadius",value:a.blurRadius,refVar:M==null?void 0:M.blurRadius,onConfirm:(v,w)=>this.handleShadowChanged(v,"blurRadius",w),title:I18N.SettingPanel.blur,tooltipsContentText:I18N.SettingPanel.blur}),(0,f.jsx)(i.Yw,{type:"number",inputClassName:"shadow-item shadow-item-s",min:-99,max:99,disabled:b==="text_shadow",attr:"spreadRadius",value:a.spreadRadius,refVar:M==null?void 0:M.spreadRadius,onConfirm:b==="text_shadow"?p:(v,w)=>this.handleShadowChanged(v,"spreadRadius",w),title:I18N.SettingPanel.spread,tooltipsContentText:I18N.SettingPanel.spread})]})})]})}}},39117:(He,ee,e)=>{"use strict";e.d(ee,{I:()=>n.I8});var n=e(4649)},39138:(He,ee,e)=>{"use strict";e.d(ee,{En:()=>c,Tb:()=>h,aJ:()=>o,h9:()=>u,vq:()=>I,xP:()=>d,xv:()=>C});var n=e(67787),r=e(47507);const c=(0,n.DU)([".ModalPortal{position:fixed;top:0;left:0;z-index:1050;width:100vw;min-width:64rem;height:auto;min-height:100vh;transition:all 0.2s ease-out;&:not(.is-open){pointer-events:none;}&.is-open{.TransitionModalMask{opacity:1;}.TransitionModal{transition-delay:.175s;transform:translateY(0);opacity:1;}}@media (max-width:40rem){padding:unset;min-width:unset;}}"]),o=n.Ay.div.withConfig({displayName:"styled__StyledMask",componentId:"sc-13h1acb-0"})(["position:fixed;top:0;left:0;right:0;width:100vw;height:100vh;transition:all 0.2s ease-out;opacity:0;background-color:rgba(0,0,0,0.4);&.can-close{cursor:pointer;}&.mask-enter{opacity:0;}&.mask-exit-active{opacity:0;}"]),I=n.Ay.div.withConfig({displayName:"styled__StyledModal",componentId:"sc-13h1acb-1"})(["position:absolute;top:22vh;bottom:auto;right:0;left:0;margin:auto;height:fit-content;min-height:9.5rem;width:400px;font-size:0.875rem;background-color:rgb(255,255,255);box-shadow:rgba(0,0,0,0.1) 0px 2px 8px 0px;border-radius:10px;color:",";cursor:initial;transition:all 0.2s ease-out 0s;transform:translateY(-50vh);opacity:0;&.is-v-centered{top:0;bottom:0;}"],r.q.color_text_L1),u=n.Ay.header.withConfig({displayName:"styled__StyledHeader",componentId:"sc-13h1acb-2"})(["&.header{position:relative;display:flex;align-items:center;height:50px;border-bottom:1px solid ",";padding:0 20px;font-size:16px;font-weight:500;color:",";justify-content:space-between;}"],r.q.color_split_line,r.q.color_text_L1),d=n.Ay.button.withConfig({displayName:"styled__StyledCloseIcon",componentId:"sc-13h1acb-3"})(["&.close-btn{margin-left:auto;width:28px;height:28px;border:none;color:",";background:transparent;position:absolute;top:11px;right:20px;svg{width:100%;height:100%;}&:hover{color:",";}&:active{color:",";}}"],r.q.color_text_L2,r.q.color_text_L3,r.q.color_text_L1),C=n.Ay.div.withConfig({displayName:"styled__StyledContent",componentId:"sc-13h1acb-4"})(["color:",";padding:24px 20px;"],r.q.color_text_L1),h=n.Ay.footer.withConfig({displayName:"styled__StyledFooter",componentId:"sc-13h1acb-5"})(["display:flex;justify-content:flex-end;align-items:flex-start;padding:0 20px;height:56px;& .cancel-btn{margin:0 12px;}& .confirm-btn{border-color:transparent;}"])},40033:(He,ee,e)=>{"use strict";e.d(ee,{G:()=>d});var n=e(12211),r=e(20089),c=e(16249),o=e(24640),I=e(60651),u=e(4235);const d=(0,n.Mz)([I.Bk,u.p$],(C,h)=>{let i=C;if(h&&h.length>0){const s=(0,o.GF)(h);i=(0,c.j)(s,1)}const p=(i.length>0?i:C).filter(s=>!r.Q.ALWAYS_ON_TOP_NAMES.includes(s.hotAttr.type)).map(s=>{var l;return(s==null||(l=s.hotAttr)==null?void 0:l.zIndex)||5});return Math.max.call(null,4,...p)+1})},40042:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>s});var n=e(38502),r=Object.defineProperty,c=Object.defineProperties,o=Object.getOwnPropertyDescriptors,I=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,C=(l,_,b)=>_ in l?r(l,_,{enumerable:!0,configurable:!0,writable:!0,value:b}):l[_]=b,h=(l,_)=>{for(var b in _||(_={}))u.call(_,b)&&C(l,b,_[b]);if(I)for(var b of I(_))d.call(_,b)&&C(l,b,_[b]);return l},i=(l,_)=>c(l,o(_)),f=(l,_)=>{var b={};for(var a in l)u.call(l,a)&&_.indexOf(a)<0&&(b[a]=l[a]);if(l!=null&&I)for(var a of I(l))_.indexOf(a)<0&&d.call(l,a)&&(b[a]=l[a]);return b},s=(0,n.forwardRef)((l,_)=>{var b=l,{size:a,spin:M,style:x}=b,g=f(b,["size","spin","style"]);const S=h(h({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:M?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),x);return n.createElement("svg",i(h({ref:_,style:S},g),{width:"120",height:"120",viewBox:"0 0 120 120",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.828 37.4606C16.1894 37.5747 12.6696 36.9892 11.6998 33.7333C10.7301 30.4775 4.63827 30.1592 1.71362 30.407L4.10171 26.9434C5.84802 27.1075 9.85658 28.0194 11.9201 30.355C14.4995 33.2745 13.0713 36.3413 17.828 37.4606Z",fill:"#48A0F7"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.4482 28.514C13.8064 26.6297 9.40335 22.4111 4.92456 20.6123L7.77172 17C9.55932 19.1951 13.5973 24.5712 15.4482 28.514Z",fill:"#30BEB9"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M106.429 36.6467C107.765 36.2026 111.225 35.4931 114.383 36.2071L113.067 33.0133C111.592 33.5795 108.199 35.0984 106.429 36.6467Z",fill:"#C263E8"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M102.714 31.6498C104.993 29.3281 111.041 24.1868 117.006 22.1968L113.575 17.2804C111.082 19.9948 105.421 26.6688 102.714 31.6498Z",fill:"#48A0F7"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.5984 6.22428L31.6186 7.02438C31.284 7.29764 30.8163 7.31809 30.4604 7.07503L29.4162 6.36206C28.6213 5.81919 27.6151 6.63893 27.9469 7.55898L28.3848 8.77325C28.5331 9.18438 28.4075 9.64685 28.0737 9.91952L27.0886 10.7241C26.3408 11.3349 26.7901 12.573 27.7442 12.5306L28.9914 12.4751C29.4188 12.4561 29.8093 12.7227 29.9581 13.1352L30.3923 14.3388C30.7244 15.2597 32.0083 15.2052 32.2656 14.2593L32.6044 13.0135C32.7193 12.5912 33.0851 12.2928 33.511 12.2738L34.7692 12.2178C35.7225 12.1753 36.0667 10.9035 35.2718 10.3606L34.2276 9.64757C33.8717 9.40455 33.7086 8.95328 33.8237 8.53019L34.1606 7.291C34.4179 6.34468 33.3466 5.61319 32.5984 6.22428Z",fill:"#48A0F7"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M89.6612 15.9425L89.0814 15.1476C88.8834 14.8762 88.8874 14.5121 89.0913 14.246L89.6893 13.4654C90.1446 12.8711 89.5507 12.0548 88.8221 12.2734L87.8605 12.562C87.5349 12.6597 87.1811 12.5425 86.9835 12.2717L86.4005 11.4725C85.9578 10.8658 84.9772 11.1622 84.9697 11.905L84.9598 12.8759C84.9565 13.2086 84.7328 13.5006 84.4061 13.5986L83.4529 13.8847C82.7237 14.1036 82.7115 15.103 83.4352 15.343L84.3883 15.659C84.7114 15.7661 84.9276 16.0629 84.9243 16.3944L84.9144 17.374C84.9069 18.1162 85.88 18.4374 86.3353 17.8431L86.9335 17.0625C87.1373 16.7964 87.4947 16.6889 87.8184 16.7962L88.7664 17.1105C89.4905 17.3505 90.104 16.5496 89.6612 15.9425Z",fill:"#C263E8"}),n.createElement("circle",{cx:"79.2136",cy:"3.5",r:"1.5",fill:"#30BEB9"}),n.createElement("circle",{cx:"49.2136",cy:"18.5",r:"1.5",fill:"#C263E8"}),n.createElement("circle",{cx:"60",cy:"68.0626",r:"28",fill:"#39BF50"}),n.createElement("path",{d:"M69.3849 60.7195C70.1659 59.9384 71.4323 59.9384 72.2133 60.7195C72.9944 61.5005 72.9944 62.7669 72.2133 63.5479L59.4854 76.2758C58.7043 77.0569 57.438 77.0569 56.657 76.2758L49.5859 69.2048C48.8048 68.4237 48.8048 67.1574 49.5859 66.3763C50.3669 65.5953 51.6333 65.5953 52.4143 66.3763L58.0712 72.0332L69.3849 60.7195Z",fill:"white"}))})},40410:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>M});var n=e(38502),r=e(53732),c=e.n(r),o=e(18381),I=e(17307),u=e(83199),d=e(18575),C=e(27142),h=e(64335),i=e(78257),f=e(67787);const p=f.Ay.div.withConfig({displayName:"styles__StyledResourcesCard",componentId:"sc-wqgh6p-0"})(["display:block;position:relative;width:116px;cursor:pointer;padding:4px;border-radius:8px;.flex-row{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;}&:hover,&.is-hover{background:",";.template-cover .btn-box{display:flex;}.template-cover .img-box{&::after{opacity:0.1;}}.template-info{.expand-icon{visibility:visible;}}.sign.short{visibility:hidden}}&:not(:hover){.sign.long{visibility:hidden}}&:hover .template-cover .btn-box{display:flex;}.template-cover{position:relative;height:76px;background:",";background-size:48px auto;border-radius:6px;border:1px solid ",";overflow:hidden;.img-box{height:76px;width:108px;position:relative;&::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;border-radius:4px;background-color:#1f292e;opacity:0;transition:opacity 0.2s ease-in-out;}.template-cover-image{width:100%;height:100%;object-fit:cover;}svg.sign{position:absolute;top:3px;right:3px;&.short{top:6px;right:6px;}}img.sign{position:absolute;top:6px;right:6px;}}.btn-box{display:none;position:absolute;width:18px;height:18px;bottom:8px;right:8px;border-radius:4px;align-items:center;justify-content:center;background:rgba(51,51,51,0.5);.temp-star-btn{width:8px;height:11px;path{fill:#fff;}}&.isStarred{background:",";}&:not(.isStarred):hover{background:rgba(51,51,51,0.7);}}}.template-info{padding-left:2px;margin-top:8px;margin-bottom:4px;display:flex;align-items:center;justify-content:space-between;.expand-icon{visibility:hidden;transform:rotate(-90deg);color:",";}.template-title{color:",";font-size:12px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;}.liked,.used{display:flex;color:",";margin-left:8px;align-items:center;margin-top:1px;.nums{margin-left:4px;}}.liked,.used{display:flex;color:",";margin-left:8px;align-items:center;margin-top:1px;.nums{margin-left:4px;}}}"],x=>x.theme.color_btn_secondary_hover,x=>x.cover?"none":"url(/images/square/template_default_cover.svg) no-repeat center #f7f7f7",x=>x.theme.color_bg_border_01,x=>x.theme.color_proto,x=>x.theme.color_text_L3,x=>x.theme.color_text_L2,x=>x.theme.color_text_L3,x=>x.theme.color_text_L3);var s=e(72214);const l=(0,s.jsx)("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",children:(0,s.jsx)("path",{fill:"#7D8CA5",stroke:"#7D8CA5",strokeWidth:".12",d:"m6.28 3.11-.01.04Q5.94 4.6 5.3 5.4a2.4 2.4 0 0 1-1.82.9h-.35c-.84.02-1.52.72-1.52 1.58v4.96c0 1.05.84 1.9 1.88 1.9h6.44a3.2 3.2 0 0 0 3.01-2.14l1.34-3.74-.05-.02.05.02a1.9 1.9 0 0 0-1.77-2.53H9.8q.38-1.69.53-2.45l-.06-.01h.06c.13-.66.02-1.3-.29-1.79-.31-.48-.84-.8-1.53-.8a2 2 0 0 0-1.44.47q-.52.46-.78 1.37Zm1.49-.5q.25-.22.73-.22.43.01.63.35.2.35.1.9-.18.9-.68 3.11c-.08.35.18.69.54.69h3.42q.13 0 .26.04c.4.15.6.59.46 1l.05.01-.05-.02-1.34 3.74.06.02-.06-.02c-.3.84-1.08 1.4-1.96 1.4H3.49a.77.77 0 0 1-.76-.78V7.87c0-.25.2-.45.44-.46h.34a3.5 3.5 0 0 0 2.66-1.32q.8-1 1.18-2.67.17-.59.42-.8Zm-4.6 4.74h.34a3.5 3.5 0 0 0 2.61-1.3z",opacity:".4"})}),_=(0,s.jsx)("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",children:(0,s.jsx)("path",{fill:"#F85050",d:"M13.15 6.41q-.31-.12-.64-.1H9.79l.53-2.46c.12-.62.01-1.26-.32-1.8a1.8 1.8 0 0 0-1.53-.8 2 2 0 0 0-1.44.47 3 3 0 0 0-.78 1.37q-.24 1.23-1 2.24-.32.4-.76.65-.49.23-1 .25h-.36A1.56 1.56 0 0 0 1.6 7.85v5a1.9 1.9 0 0 0 1.88 1.9h6.44a3.2 3.2 0 0 0 3-2.14l1.34-3.74a1.9 1.9 0 0 0-1.12-2.46"})}),b=(0,s.jsxs)("svg",{width:"16px",height:"16px",viewBox:"0 0 16 16",children:[(0,s.jsx)("g",{clipPath:"url(#clip0_11355_1024)",opacity:".4",children:(0,s.jsx)("path",{fill:"#7D8CA5",d:"M14.18 7.25a.8.8 0 0 0-.76-.51h-2.74v-4a1 1 0 0 0-1-1H6.34a1 1 0 0 0-1 1v4H2.58a.8.8 0 0 0-.77.5.9.9 0 0 0 .19.91L7.4 14a.9.9 0 0 0 .6.26.8.8 0 0 0 .6-.26L14 8.16a.8.8 0 0 0 .18-.91M12.69 8 8 13 3.31 8v-.06h2.62a.56.56 0 0 0 .56-.56V2.87h3a.1.1 0 0 1 .05.06V7.3a.56.56 0 0 0 .55.56h2.53s.09.07.07.14"})}),(0,s.jsx)("defs",{children:(0,s.jsx)("clipPath",{id:"clip0_11355_1024",children:(0,s.jsx)("path",{fill:"#fff",d:"M1.75 1.75h12.5v12.5H1.75z"})})})]}),M=(0,n.memo)(x=>{const{marketTemplate:g,isShowStar:S=!0,isShowTag:t=!1,marketTemplate:{cid:v,cover:w,title:k,is_liked:W,liked_count:K,used_count:G},isStared:$,className:P,onClickCard:E,onStarTemplates:H,onFavorite:O,onUsedCallback:V}=x,Q=new C.H(K).getDisplayStr(),N=new C.H(G).getDisplayStr(),{handleUsedTemplate:L}=(0,h.A)(),U=(0,o.wA)(),A=async()=>{E(g)},D=async Y=>{Y.stopPropagation(),Y.preventDefault(),H==null||H(g)},B=(Y,X)=>X.offsetWidth<X.scrollWidth,j=Y=>{Y.stopPropagation(),O==null||O(g)},F=Y=>{Y.stopPropagation(),L(g,X=>{V==null||V(g),X&&(U({type:"modal:update:state",payload:{templateModal:{isOpen:!1}}}),U({type:"entry:active:popup:panel",payload:{name:i.lS.Directory}}))})};return(0,s.jsxs)(p,{"data-cid":v,cover:w,className:c()("template-box",P),onClick:A,children:[(0,s.jsxs)("div",{className:"template-cover",children:[(0,s.jsxs)("div",{className:"img-box",children:[w&&(0,s.jsx)("img",{className:"template-cover-image",src:w}),(0,s.jsx)("div",{className:"cover-fade"}),(0,s.jsx)(d.W,{resources:g,isCard:!0})]}),S&&(0,s.jsx)("div",{className:c()("btn-box",{"isStarred ":$}),onClick:D,children:(0,s.jsx)(u.A,{content:$?I18N.Resources.stared:I18N.Resources.star,direction:"down",children:(0,s.jsx)(I.C,{className:c()("temp-star-btn"),name:"art_board/resources/star/small"})})})]}),(0,s.jsxs)("div",{className:"template-info",children:[(0,s.jsx)(u.A,{content:k,direction:"down",isShowTipsByTarget:B,children:(0,s.jsx)("div",{className:"template-title",children:k})}),(0,s.jsx)(I.C,{name:"common/expand",className:"expand-icon"}),t&&(0,s.jsxs)(s.Fragment,{children:[!ENV.IS_ON_PREMISES&&(0,s.jsxs)("div",{className:"liked",onClick:j,children:[W?_:l,(0,s.jsx)("span",{className:"nums",children:Q})]}),(0,s.jsxs)("div",{className:"used",onClick:F,children:[b,!ENV.IS_ON_PREMISES&&(0,s.jsx)("span",{className:"nums",children:N})]})]})]})]})})},40497:(He,ee,e)=>{"use strict";e.d(ee,{m:()=>M});var n=e(38502),r=e(67787);const c=r.Ay.div.withConfig({displayName:"style__StyledItaQuickCreateBtn",componentId:"sc-wcmqfo-0"})(["display:flex;align-items:center;justify-content:space-between;padding:16px;.create-btn{height:28px;width:100%;border-radius:6px;}.icon-container{margin-left:6px;}.btn-group{border:1px solid ",";width:","px;height:28px;border-radius:6px;display:flex;align-items:center;color:",";cursor:pointer;.btn{height:100%;display:flex;align-items:center;justify-content:center;}.btn1{width:150px;width:","px;border-right:1px solid ",";}.dropdown-container{height:100%;width:32px;display:flex;justify-content:center;align-items:center;border-top-right-radius:6px;border-bottom-right-radius:6px;&.is-open{background:",";}}.btn1,.btn2{&:hover{background:",";}&:active{background:",";}}}&.disabled{pointer-events:none;.btn-group{color:",";}}"],x=>x.theme.color_bg_border_02,x=>x.uiFrom==="treePanelFloat"?204:182,x=>x.theme.color_text_L1,x=>x.uiFrom==="treePanelFloat"?174:150,x=>x.theme.color_bg_border_02,x=>x.theme.color_btn_secondary_active,x=>x.theme.color_btn_secondary_hover,x=>x.theme.color_btn_secondary_active,x=>x.theme.color_text_disabled01),o=r.Ay.div.withConfig({displayName:"style__StyledTriggerList",componentId:"sc-wcmqfo-1"})(["padding:16px 8px 8px 8px;width:208px;border-radius:8px;border:1px solid ",";color:",";background:",";box-shadow:",";"],x=>x.theme.color_bg_border_01,x=>x.theme.color_text_L0,x=>x.theme.color_bg_white,x=>x.theme.shadow_m);var I=e(18381),u=e(53732),d=e.n(u),C=e(37780),h=e(79150),i=e(40486),f=e(99566),p=e(69374),s=e(87332),l=e(83485),_=e(88981),b=e(17573),a=e(72214);const M=(0,n.memo)(x=>{let{disabled:g,showPreference:S,buttonType:t,uiFrom:v,handleCollapse:w,interactionTree:k,interactionStore:W,itemKey:K}=x;const G=(0,I.wA)(),$=(0,n.useCallback)(V=>{const Q=(0,f.AE)({interactionTrigger:V});G(C.R7.command.addIta({tNodeTrigger:Q,uiFrom:v,interactionTree:k,interactionStore:W})),w((0,i.iY)(Q),"del"),setTimeout(v==="treePanelRight"?()=>{G(C.R7.command.interactionEditorFloatOpenCommand({alignTop:!0}))}:()=>{(0,i._6)({itaKey:(0,i.m1)(Q)})},4),![_.O.Keydown,_.O.Listener].includes(V)&&(0,l.X)()},[G,w,v,k,W]),P=(0,n.useCallback)(V=>{var Q;V.stopPropagation(),$((0,f.b7)((Q=sdkStore.getHotItem(K))==null?void 0:Q.hotAttr.type)&&(0,b.qK)()?_.O.InputEvent:_.O.Tap)},[K,$]),E=(0,n.useCallback)(V=>{V.stopPropagation(),$("timer")},[$]),H=V=>{V.stopPropagation(),G({type:"preference:update:state",payload:{preferenceNav:"actions"}}),G({type:"preference:open:appearance"})},O=V=>{$(V)};return(0,a.jsxs)(c,{uiFrom:v,className:d()({disabled:g}),children:[(0,a.jsxs)("div",{className:"btn-group",children:[(0,a.jsx)("div",{className:"btn btn1",onClick:P,children:(0,a.jsx)("span",{children:I18N.Interaction.header_title1})}),(0,a.jsx)(s.A,{isOpenerAttrDisabled:!1,ref:null,distance:4,offsetX:v==="treePanelFloat"?-86:-16,className:"dropdown-container btn2",menuClassName:"dropdown-trigger-list",renderOpener:(0,a.jsx)("svg",{width:"12",height:"6",fill:"none",viewBox:"0 0 12 6",children:(0,a.jsx)("path",{fill:"currentColor",fillOpacity:".85",fillRule:"evenodd",d:"M.65.15c.2-.2.5-.2.7 0L6 4.79 10.65.15a.5.5 0 0 1 .7.7l-5 5a.5.5 0 0 1-.7 0l-5-5a.5.5 0 0 1 0-.7",clipRule:"evenodd"})}),renderMenu:(0,a.jsx)(o,{children:(0,a.jsx)(p.A,{currentGesture:"dap",onSelect:O,isLimitTrigger:!1})})})]}),(0,a.jsxs)("div",{className:"icon-container",children:[S&&(0,a.jsx)(h.A,{name:"right_panel/link/setting",isDisabled:g,onClick:H}),t==="global"&&(0,a.jsx)(h.A,{size:16,name:"interaction/trigger/timer",onClick:E})]})]})})},40625:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>I,d:()=>r});var n=e(15515);const r="IS_HIDE_TASK_LIST",c="IS_COLLAPSE_TASK_LIST",o={isHide:(0,n.Yt)(r,!0,n.qW.Boolean),isCollapse:(0,n.Yt)(c,!0,n.qW.Boolean),isComplete:!1,completeList:[]};function I(u,d){u===void 0&&(u=o);const{type:C,payload:h}=d;switch(C){case"update:taskList:data":return{...u,...h};case"update:taskList:isHide":return(0,n.a0)(r,h.isHide,n.qW.Boolean),{...u,isHide:h.isHide};case"update:taskList:isCollapse":return(0,n.a0)(c,h.isCollapse,n.qW.Boolean),{...u,isCollapse:h.isCollapse};case"update:taskList:completed":return(0,n.a0)(r,!0,n.qW.Boolean),{...u,isComplete:!0,isHide:!0};default:return u}}},40988:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>s});var n=e(18381),r=e(12211),c=e(70933),o=e(4235),I=e(60651),u=e(20315),d=e(78915),C=e(47892),h=e(75862),i=e(20089);const f=(0,r.Mz)([o.nE,o.p$,h.x,c.PL,I.uu,c.wA,c.HW,c.Ur,u.Lc,I.jx,I._b],(l,_,b,a,M,x,g,S,t,v,w)=>{const k=v===d.qi.OnlyView&&!w||v===d.qi.Edit&&t;return{isExportAllAIComponent:l.every(K=>{var G;return((G=K.hotAttr)==null?void 0:G.type)===i.x.WCode}),isST:k,currentScreen:S,isWidgetBeingExported:b,isHtmlZipPreview:M,newSelection:_,currentUser:g,currentOrg:x,currentProject:a}}),p=l=>({updateExportSettings:(_,b)=>l({type:"entry:update:root-project:exportSettings",payload:{exportSettings:_,exportWithDeviceFrame:b}}),exportItem:_=>l({type:"entry:export:item",payload:{exportConfigList:_}})}),s=(0,n.Ng)(l=>f(l),p)(C.A)},41240:(He,ee,e)=>{"use strict";e.d(ee,{GR:()=>r,ch:()=>I,nK:()=>c,yD:()=>o});var n=e(67787);const r=(0,n.AH)([".check{position:absolute;top:8px;left:8px;visibility:hidden;width:24px;height:24px;&.is-show{visibility:visible;}.ant-checkbox{padding:4px;> div{display:none;}&:not(.ant-checkbox-checked){.ant-checkbox-inner{border-color:rgb(139,140,143);}}.ant-checkbox-inner{transition:none;&:after{margin-left:2px;}}}}"]),c=n.Ay.li.withConfig({displayName:"styles__StyledMarketTemplateItem",componentId:"sc-eeidlb-0"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;position:relative;margin-bottom:8px;&.is-can-check{&:hover{.img-wrapper{border-color:"," !important;outline:1px solid "," !important;}}}&.is-checked{.img-wrapper{border-color:"," !important;outline:1px solid "," !important;}}.img-wrapper{position:relative;display:flex;align-items:center;justify-content:center;padding:10px;background:",";border-radius:6px;border:1px solid ",";overflow:hidden;",";.operation-box{position:absolute;bottom:6px;right:6px;display:flex;align-items:center;justify-content:center;column-gap:6px;z-index:1;}.operation{display:flex;align-items:center;opacity:0;.open-folder{border-radius:4px;background:rgba(95,95,95,0.4);backdrop-filter:blur(4px);&.size-24{border-radius:6px;}path{fill:rgba(255,255,255,0.91);}}}.preview-in-modal{position:absolute;top:8px;right:8px;width:24px;height:24px;border-radius:6px;background:rgba(95,95,95,0.4);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;opacity:0;z-index:99;svg{rect,path{fill:rgba(255,255,255,0.91);}}.svgContainer{width:100%;height:100%;display:flex;align-items:center;justify-content:center;svg{border-radius:0;background:none;&:hover{background:none;}}}}&::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;border-radius:6px;opacity:0;transition:opacity 0.2s ease-in-out;}&:hover,&.is-hover{&::after{opacity:0.1;}.operation{opacity:1;}.preview-button{display:block;}.check{visibility:visible;}.preview-in-modal{opacity:1;}.sign.short{visibility:hidden}}&:not(:hover){.sign.long{visibility:hidden}}img{max-width:100%;max-height:100%;pointer-events:none;}}.template-name{width:80%;margin-top:6px;line-height:16px;text-align:center;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.preview-button{display:none;position:absolute;width:109px;height:24px;color:#fff;text-align:center;line-height:24px;background:rgba(0,0,0,0.5);border-bottom-right-radius:4px;border-bottom-left-radius:4px;bottom:0;z-index:1;}svg.sign{position:absolute;top:3px;right:3px;z-index:0;&.short{top:6px;right:6px;&.has-preview-icon{top:10px;right:10px;}}}img.sign{position:absolute;top:6px;right:6px;z-index:0;&.long.has-preview-icon{top:10px;right:36px;}}&.widget-modal,&.template-modal{.template-name{line-height:20px;}}&.active{opacity:0.5;}&:not(.template-modal):not(.widget-modal){&:hover{.img-wrapper{background:",";}}}"],u=>u.theme.color_btn_primary_normal,u=>u.theme.color_btn_primary_normal,u=>u.theme.color_btn_primary_normal,u=>u.theme.color_btn_primary_normal,u=>u.theme.color_bg_card,u=>u.theme.color_bg_border_01,r,u=>u.theme.color_text_L3,u=>u.theme.color_btn_secondary_active),o=n.Ay.img.withConfig({displayName:"styles__StyledResourcesSign",componentId:"sc-eeidlb-1"})(["width:28px;height:16px;flex:0 0 28px;&.small{width:21px;height:12px;flex:0 0 21px;}&.isMockitt{width:46px;height:16px;}&.discount{width:47px;}"]),I=n.Ay.div.withConfig({displayName:"styles__StyledNewResourcesSign",componentId:"sc-eeidlb-2"})(["display:flex;svg{width:18px;fill:none;border-radius:4px;&.small{width:16px;}&.large{width:20px;}}img{height:16px;&.large{height:20px;}}"])},42402:(He,ee,e)=>{"use strict";e.d(ee,{F:()=>G});var n=e(95549),r=e(38502),c=e(18381),o=e(12211),I=e(53732),u=e.n(I),d=e(39e3),C=e(79150),h=e(88463),i=e(74923),f=e(67588),p=e(79581),s=e(72214);function l(){const $=(0,c.d4)(i.GI),P=(0,c.d4)(f.bP),[E,H]=(0,r.useState)(!1),O=(0,c.wA)(),V=(0,r.useCallback)(L=>O({type:"searchPanel:update:state",payload:{masterKeyword:L}}),[O]),Q=(0,r.useCallback)(()=>{H(!0)},[]),N=(0,r.useCallback)(L=>{L.stopPropagation(),H(!1),O({type:"searchPanel:update:state",payload:{masterKeyword:""}})},[O]);return(0,s.jsxs)(p.Ij,{className:u()({"is-search-mode":E}),children:[P==="old_right"&&(0,s.jsx)("span",{className:"title old_right-title",children:I18N.LeftPane.master}),(0,s.jsx)(h.A,{className:u()("search-bar",E?"is-searching":"default-search"),value:$,placeholder:I18N.LeftSidePanel.keyword_search,onChange:V,onFocus:Q,canClear:!0})]})}const _=(0,r.memo)(l);var b=e(67052),a=e(70933),M=e(3862),x=e(78257),g=e(30275),S=e(54190),t=e(67787);const v=t.Ay.div.withConfig({displayName:"styles__StyledResourcesPanelHeaderV9",componentId:"sc-gmyrwz-0"})(["height:40px;min-height:40px;position:relative;display:none;border-bottom:1px solid ",";&.show{display:flex;}.title{max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;color:",";font-weight:500;&:lang(en){font-weight:600;}}.old_right-title{margin:auto 0 auto 12px;font-size:16px;font-weight:500;display:flex;&:after{width:1px;height:18px;content:'';display:block;background:",";margin-left:10px;}}.nav-back-icon{margin-right:4px;svg.svg-icon{width:9px;height:14px;path{stroke:",";fill:none;}}}.search-bar{width:100%;height:100%;border:none;background:",";color:",";flex:1;margin-right:6px;.search-icon{margin-left:10px;margin-right:2px;path{fill:",";}input{margin-left:2px;}}.search-icon{margin-left:12px;margin-right:7px;path{fill:",";}}&:hover,&.isFocus{background:",";border-color:",";}}&:lang(en){justify-content:flex-start;.title{min-width:60px;}.search-bar{width:auto;flex:1;margin-right:6px;}}&.has-ai-icon{justify-content:space-between;}.devider{width:1px;height:16px;background:",";}.manage-icon{display:flex;.history{width:24px;height:24px;margin:4px;}}.close{margin:4px 0px 4px 8px;svg.svg-icon{width:8px;height:8px;}}.history-panel{position:absolute;top:41px;left:0;z-index:3;width:238px;margin:6px;padding:10px 2px;border-radius:8px;background:",";box-shadow:",";border:1px solid ",";.header{width:100%;padding:0 8px;display:flex;align-items:center;justify-content:space-between;span{display:inline-block;color:",";&.clear{cursor:pointer;&:hover{color:",";}}}}.history{padding-bottom:6px;}&.has-history{.devider{width:calc(100% - 16px);height:1px;margin:0 8px;background:",";}.hot{padding-top:12px;}}.words-container{display:flex;flex-flow:row wrap;align-items:center;max-height:60px;overflow:hidden;span{display:inline-flex;cursor:pointer;color:",";margin:6px 8px;}}}"],$=>$.theme.color_bg_border_01,$=>$.theme.color_text_L1,$=>$.theme.color_bg_border_01,$=>$.theme.color_text_L1,$=>$.theme.color_bg_white,$=>$.theme.color_text_L3,$=>$.theme.color_text_L2,$=>$.theme.color_text_L2,$=>$.theme.color_bg_white,$=>$.theme.color_text_link_normal,$=>$.theme.color_bg_border_02,$=>$.theme.color_bg_white,$=>$.theme.shadow_m,$=>$.theme.color_bg_border_01,$=>$.theme.color_text_L3,$=>$.theme.color_text_L1,$=>$.theme.color_bg_border_01,$=>$.theme.color_text_L1);var w=e(10472);const k=5;class W extends r.PureComponent{constructor(P){var E;super(P),E=this,(0,n.A)(this,"titleFromPopupsName",{[x.lS.Builtin]:I18N.LeftSidePanel.widget,[x.lS.Icon]:I18N.LeftSidePanel.icon,[x.lS.Asset]:I18N.LeftSidePanel.image,[x.lS.Page]:I18N.LeftSidePanel.screens,[x.lS.Template]:I18N.LeftSidePanel.master,[x.lS.Flow]:I18N.LeftSidePanel.flow,[x.lS.Mind]:I18N.LeftSidePanel.mind}),(0,n.A)(this,"handleCreateRef",H=>{this.$ref=H}),(0,n.A)(this,"handleGetIsFromIconSelectPopup",()=>{const{from:H}=this.props;return H===g.Z.iconSelectPopup}),(0,n.A)(this,"handleGetConfig",()=>{const{currentPopupPanel:H,type:O}=this.props,V=this.handleGetIsFromIconSelectPopup(),Q=V?M.C:O,N=V?I18N.ArtBoard.icon:this.titleFromPopupsName[H],L=!(H===x.lS.Template&&!V),U=V?!1:H!==x.lS.Template;return{type:Q,title:N,isGlobalSearch:L,isShowManage:U}}),(0,n.A)(this,"handleHistoryKeyWords",async()=>{const{historyKeyWords:H,dispatch:O}=this.props,{isGlobalSearch:V}=this.handleGetConfig();if(!V||H.length)return;const Q=await(0,S.Tf)();O({type:"searchPanel:update:state",payload:{historyKeyWords:Q.splice(0,k)}})}),(0,n.A)(this,"handleChange",H=>{const{dispatch:O}=this.props;this.setState({curHotKey:H});const V=this.handleGetIsFromIconSelectPopup();O(V?{type:"searchPanel:update:state",payload:{iconKeyword:H}}:{type:"searchPanel:update:state",payload:{keyword:H}})}),(0,n.A)(this,"handleSearch",async function(H,O,V){O===void 0&&(O=!1),V===void 0&&(V=!1),await E.handleUpdateHistory(H,O,V)}),(0,n.A)(this,"handleClearHistory",()=>{this.props.dispatch({type:"searchPanel:update:state",payload:{historyKeyWords:[]}}),(0,S.s_)()}),(0,n.A)(this,"handleUpdateHistory",async(H,O,V)=>{const{currentPopupPanel:Q,historyKeyWords:N,type:L,dispatch:U}=this.props,A=this.handleGetIsFromIconSelectPopup();if(!(Q===x.lS.Template&&!A))if(H){const B=[H].concat(N.filter(j=>j!==H)).splice(0,k);U({type:"searchPanel:update:state",payload:{historyKeyWords:B}}),this.handleGlobalSearch(H,O,V)}else{var D;this.handleNavBack(),await this.handleFocus(),(D=this.$ref)==null||D.focus()}}),(0,n.A)(this,"handleGlobalSearch",(H,O,V)=>{const{dispatch:Q,from:N}=this.props,{type:L}=this.handleGetConfig();Q({type:"entry:search-panel:search:from:keyword",payload:{from:N,category:L,isHistoryWord:O,isHotKeyWord:V}}),this.handleToggleIsHideHistory(!!H)}),(0,n.A)(this,"handleToggleIsHideHistory",H=>this.setState({isHideHistory:H})),(0,n.A)(this,"handleOpenHistory",()=>{MB.global.experienceLoginModalHelper("isSave")||(this.props.dispatch({type:"exalt:panel:order",payload:{name:x.lS.History}}),this.props.dispatch({type:"historyPanel:set:show",payload:{show:!0}}))}),(0,n.A)(this,"handleFocus",async()=>{const{isSearching:H,iconSelectPopupIsSearching:O,isExperience:V}=this.props,N=this.handleGetIsFromIconSelectPopup()?O:H;this.handleToggleIsSearching(!0),this.handleToggleIsHideHistory(!1),await this.props.dispatch({type:"entry:init:hotKeyWords"}),!N&&!V&&await this.handleHistoryKeyWords()}),(0,n.A)(this,"handleToggleIsSearching",H=>{const V=this.handleGetIsFromIconSelectPopup()?"iconSelectPopupIsSearching":"isSearching";this.props.dispatch({type:"searchPanel:update:state",payload:{[V]:H}})}),(0,n.A)(this,"handleNavBack",()=>{this.handleToggleIsSearching(!1);const{dispatch:H,from:O}=this.props;H({type:"entry:search-panel:clear:state",payload:{from:O}})}),(0,n.A)(this,"handleBlur",H=>{let{target:O}=H;O.closest(".search-bar input")||O.classList.contains("words")||O.classList.contains("clear")||(this.handleToggleIsHideHistory(!0),this.state.curHotKey.trim()===""&&this.handleNavBack())}),(0,n.A)(this,"handleSelectWord",async function(H,O,V){O===void 0&&(O=!1),V===void 0&&(V=!1),E.handleChange(H),await E.handleSearch(H,O,V)}),(0,n.A)(this,"handleFocusSearch",()=>{this.handleFocus()}),(0,n.A)(this,"handleClear",async()=>{const{iconKeyword:H,keyword:O}=this.props;(this.handleGetIsFromIconSelectPopup()?H:O)?(this.handleToggleIsHideHistory(!1),await this.handleSearch(""),this.handleToggleIsSearching(!0)):this.handleToggleIsHideHistory(!0)}),this.state={isHideHistory:!1,curHotKey:""}}render(){const{keyword:P,iconKeyword:E,className:H,hotKeyWords:O,historyKeyWords:V,onClose:Q,show:N,isSearching:L,iconSelectPopupIsSearching:U,currentPopupPanel:A,currentEditMode:D,layoutV8:B}=this.props,{isHideHistory:j}=this.state,{title:F,isGlobalSearch:Y,isShowManage:X}=this.handleGetConfig(),z=this.handleGetIsFromIconSelectPopup(),Z=z?E:P,J=z?U:L,{isEditingProjectMain:te}=D||{},ge=!ENV.IS_ON_PREMISES&&[x.lS.Flow,x.lS.Mind].includes(A)&&!z&&te;return A===x.lS.Template&&!z?(0,s.jsx)(_,{}):(0,s.jsxs)(v,{className:u()("resourcesPanel-header",{show:N},H,ge&&A!==x.lS.Page&&"has-ai-icon"),children:[(0,s.jsx)(h.A,{ref:this.handleCreateRef,className:"search-bar",value:Z,placeholder:Y?I18N.ScreenPanel.search_sea:I18N.ScreenPanel.keyword_search,onChange:this.handleChange,onSearch:this.handleSearch,onFocus:this.handleFocusSearch,onClear:this.handleClear,canClear:!0}),z&&Q&&(0,s.jsx)(C.A,{name:"design/scale_clear",className:"close",onClick:Q}),J&&Y&&!j?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:u()("history-panel",{"has-history":V==null?void 0:V.length}),children:[V!=null&&V.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"history",children:[(0,s.jsxs)("div",{className:"header",children:[(0,s.jsx)("span",{children:I18N.Resources.searching.recent}),(0,s.jsx)("span",{className:"clear",onClick:this.handleClearHistory,children:I18N.Resources.searching.clear})]}),(0,s.jsx)("div",{className:"words-container",children:V.map(pe=>(0,s.jsx)("span",{className:"words",onClick:()=>this.handleSelectWord(pe,!0),children:pe},pe))})]}),(0,s.jsx)("div",{className:"devider"})]}):null,!ENV.IS_MO&&O!=null&&O.length?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"hot",children:[(0,s.jsx)("div",{className:"header",children:(0,s.jsx)("span",{children:I18N.Resources.searching.hot})}),(0,s.jsx)("div",{className:"words-container",children:O.map(pe=>(0,s.jsx)("span",{className:"words",onClick:()=>this.handleSelectWord(pe,!1,!0),children:pe},pe))})]})}):null]}),(0,s.jsx)(d.A,{target:document,onMouseDown:(0,d.t)(this.handleBlur,{capture:!0})})]}):null]})}}const K=(0,o.Mz)([b.OW,i.y9,i.pM,i.uJ,i.TF,i.F8,i.At,i.Lq,a.W4,a.HW,a.wA,w.r,f.bP,f.MZ],($,P,E,H,O,V,Q,N,L,U,A,D,B,j)=>{let{isExperience:F}=L;return{currentPopupPanel:$,hotKeyWords:P,historyKeyWords:E,keyword:H,iconKeyword:O,isSearching:V,iconSelectPopupIsSearching:Q,type:N,isExperience:F,user:U,org:A,currentEditMode:D,layoutV8:B,layoutV9:j}}),G=(0,c.Ng)($=>K($))(W)},43371:(He,ee,e)=>{"use strict";e.d(ee,{s:()=>I});var n=e(4410),r=e(93971),c=e(3862),o=e(16335);const I=u=>{const d=x=>{const{projectUpperCid:g,isOrg:S}=u;return{isRequestRecent:!S,projectUpperType:"user_combo",projectUpperCid:g,itemCid:x.key}},C=x=>{const{isOrg:g}=u;if(g)return;const S=d(x);(0,o.Cp)(S)},h=(x,g,S)=>{const{isOrg:t,rootProject:v,currentOrg:w,currentUser:k,popupsName:W}=u;(0,r.BZ)({tab:t?r.Ii.Org:r.Ii.User,popupsName:W,addType:g,category:c.t_,name:S,rootProject:v,currentOrg:w,currentUser:k,esSearchKey:x})},i=async(x,g)=>{const{isOrg:S,scale:t,canvasRect:v,showDragMode:w,isAdsorbentReferenceLine:k,popupsName:W}=u,K=S?orgSdkStore:userSdkStore,G=(0,n.g)(W);(0,n.WP)({e:x,combo:g,store:K,doNotCreateRect:G,scale:t,canvasRect:v,showDragMode:w,isAdsorbentReferenceLine:k,callback:()=>{var $,P;C(g),h(($=g.flpakKey)!=null?$:"",r.k8.Drag,(P=g.hotAttr)==null?void 0:P.name)}})},f=x=>{const{isOrg:g,dispatch:S}=u;MB.global.experienceLoginModalHelper("isSave")||S({type:"entry:edit:combo",payload:{isOrg:g,combo:x}})},p=(x,g,S)=>{var t;const{isOrg:v,dispatch:w}=u;MB.global.experienceLoginModalHelper("isSave")||((t=x.hotAttr)==null?void 0:t.name)!==g&&(w({type:"entry:auto:update:combo:name",payload:{isOrg:v,groupCid:S,itemCid:x.key,name:g}}),w({type:"entry:search-panel:update:combo:name",payload:{cid:x.key,name:g,isOrg:v}}))},s=x=>{const{isOrg:g,group:S,dispatch:t}=u;MB.global.experienceLoginModalHelper("isSave")||t({type:"entry:auto:duplicate:combo",payload:{group:S,combo:x,isOrg:g}})},l=x=>{const{isOrg:g,group:S,dispatch:t}=u;MB.global.experienceLoginModalHelper("isSave")||t({type:"entry:auto:batch:remove:combo",payload:{group:S,combo:x,isOrg:g}})},_=(x,g)=>{var S,t;const{isOrg:v,scale:w}=u,k=v?orgSdkStore:userSdkStore;(0,n.QI)({e:x,combo:g,store:k,scale:w}),C(g),h((S=g.flpakKey)!=null?S:"",r.k8.DoubleClick,(t=g.hotAttr)==null?void 0:t.name)},b=x=>{const{group:g,isOrg:S,dispatch:t}=u;MB.global.experienceLoginModalHelper("isSave")||t({type:"entry:auto:transfer:combo",payload:{group:g,excludedCombo:x,isOrg:S}})},a=x=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{dispatch:g}=u;g({type:"entry:batch:transfer:user:combo:to:org",payload:{combo:x}})},M=x=>{if(!x)return;const{isOrg:g,dispatch:S}=u,t=d(x),v=g?orgSdkStore:userSdkStore,w=[[[{...x,recent:t}],v]];S({type:"entry:resources:quick:create:template",payload:{data:w}})};return{onMouseDown:i,onEdit:f,onRename:p,onDup:s,onRemove:l,onImport:_,onMove:b,onOrg:u.currentOrg&&!u.isOrg?a:null,onQuickCreate:M}}},43478:(He,ee,e)=>{"use strict";e.d(ee,{Y:()=>c});var n=e(20389),r=e(5388);const c=o=>{let{keyWidgetSelected:I,attrQuery:u,numberArreList:d=null}=o;const C=[],h=sdkStore.getHotItem(I);if(!h)return[];const i=h.hotAttr.type;for(const p of n.Lu)p==="TC"&&!r.VN.includes(i)||C.push(p);const f=[];for(const p of d||n.nC)p==="O"&&r.Rj.includes(i)||p==="TL"&&!r.VN.includes(i)||f.push(p);return C.concat(f).map(p=>({key:p,hotAttr:{name:I18N.Expression.exprWattr[p]},iconName:"interaction/expression/wattr/"+p})).filter(p=>p.hotAttr.name.includes(u))}},43678:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>n});function n(c){var o,I,u,d=2;for(typeof Symbol<"u"&&(I=Symbol.asyncIterator,u=Symbol.iterator);d--;){if(I&&(o=c[I])!=null)return o.call(c);if(u&&(o=c[u])!=null)return new r(o.call(c));I="@@asyncIterator",u="@@iterator"}throw new TypeError("Object is not async iterable")}function r(c){function o(I){if(Object(I)!==I)return Promise.reject(new TypeError(I+" is not an object."));var u=I.done;return Promise.resolve(I.value).then(function(d){return{value:d,done:u}})}return r=function(u){this.s=u,this.n=u.next},r.prototype={s:null,n:null,next:function(){return o(this.n.apply(this.s,arguments))},return:function(u){var d=this.s.return;return d===void 0?Promise.resolve({value:u,done:!0}):o(d.apply(this.s,arguments))},throw:function(u){var d=this.s.return;return d===void 0?Promise.reject(u):o(d.apply(this.s,arguments))}},new r(c)}},44327:(He,ee,e)=>{"use strict";e.d(ee,{Bk:()=>Q,i_:()=>N,wV:()=>U,aQ:()=>H,zR:()=>E,mK:()=>L});var n=e(79388),r=e(47946),c=e(8445),o=e(19249),I=e(16335),u=e(31561),d=e(85449),C=e(76805);if(/^4[67]7$/.test(e.j))var h=e(60892);var i=e(49425),f=e(55338),p=e(62732),s=e(83557);if(e.j!=477)var l=e(24437);var _=e(88334),b=e(79287),a=e.n(b),M=e(29158),x=e(74222),g=e(52049);const S=A=>{const D=new Set;(0,M.iX)(M.gT,F=>{if(F===x.Ex)return M.NU;const Y=A.get(F).attr;!g.Gw.has(Y.T)||!Y.mc||D.add(Y.mc)},A);const B=[],j=[];for(const F of D)F.startsWith("ig")?j.push(F):B.push(F);return{mtCids:B,igCids:j}},t=function(A,D,B){if(B===void 0&&(B=[]),!D)throw new Error("[cTMCFD] bad mktCid: "+D);return flatTreeKeyDFS2(KEY_MAIN,j=>{if(j===KEY_RB_TRASH)return SEARCH_SKIP;const F=A.get(j).attr;!SetEVRender.has(F.T)||F.mc===D||B.push({type:"A",key:j,attrDiff:{mc:D}})},A),B};var v=e(25037),w=e(67771),k=e(54190),W=e(16615);const K=async(A,D,B)=>{try{var j,F,Y,X,z,Z,J;const Ce=A.getFlatTree(),me=B?Array.from(B.keys()):Object.values(S(Ce)).flat(),{mdWMMktList:be,mtWMMktList:ie,noWMMktList:oe}=await(0,w.Iz)(me),he=new Set(be),ce=new Set(ie),re=new Set(oe),fe=D.is_org_project&&a()(D.created_at).isBefore(a()("2025-04-10"))&&!((j=D.attr)!=null&&j.mkt_unlocked_250410),Se=((F=D.attr)==null?void 0:F.from)==="mdrp"&&!!((Y=D.attr)!=null&&Y.src_org_cid)&&((X=D.attr)==null?void 0:X.src_org_cid)!==(D.is_org_project?(z=MB.currentOrg)==null?void 0:z.cid:(Z=MB.user)==null||(Z=Z.solo_org)==null?void 0:Z.cid),Me=(de,xe)=>{const Le=de.attr.mc;if(!Le)return;const ve=oe.includes(Le)||!be.includes(Le)&&!ie.includes(Le),je=fe||ve?1:Se?null:de.attr.mul;je!==de.attr.mul&&xe.push({type:v.qC,key:de.key,attrDiff:{mul:je}}),je&&(re.add(Le),he.delete(Le),ce.delete(Le))},Ie=[];if(B?B.forEach(de=>{Array.from(de).forEach(xe=>{Ce.has(xe)&&Me(Ce.get(xe),Ie)})}):((0,M.yc)(Ce,x.$k,de=>Me(de,Ie)),(0,M.yc)(Ce,x.W4,de=>Me(de,Ie)),(0,M.yc)(Ce,x.fW,de=>Me(de,Ie))),A.applyDiff(Ie),A.resetUndo(),(J=D.attr)!=null&&J.src_org_cid||fe){var te;const de=Object.assign({},D.attr);if(fe&&(de.mkt_unlocked_250410=!0),(te=D.attr)!=null&&te.src_org_cid&&(de.src_org_cid=""),(0,k.Yu)(D.cid,{attr:de}),Se&&(he.size>0||ce.size>0)){var ge,pe;(0,W.ZI)("proto_import_watermark",{template_cid:[...he,...ce].join(","),user_cid:(ge=MB.user)==null?void 0:ge.cid,export_org_cid:(pe=D.attr)==null?void 0:pe.src_org_cid})}}MB.action("reducer:watermark:update-state",{mdWMMktList:he,mtWMMktList:ce,noWMMktList:re})}catch(Ce){console.error(Ce)}};var G=e(9446),$=e(68587),P=e(69190);const E=async A=>{const[{project_basic:D,project_metas:[B]},{userId:j,flatKey:F,sclibKey:Y}]=await Promise.all([(0,o.DE)("/api/upper/web_v1/basics/"+A),(0,n.yk)({projectBasicCid:A})]);MB.sclibKey=Y,console.log("[p2edit] uId="+j+" key="+F+" pbCid="+A);const z=location.hash.includes("CHOP-PROTO"),Z=!z&&(0,n.il)(F);Z&&(0,$.xd)({value:5,message:"start"});let J;return await(0,n.F2)({userId:j,flpakKey:F,afterStoreCreate:(0,n.Ok)(D),onTransferError:n.z0,onReadOnlyError:n.sH,isAllowDat:!0,isAllowCmt:!0,isAllowCur:!0,workerOptions:Z?{...Z,onCollectMktCids:te=>{J=te}}:void 0,__fetchFlpakAsync:async(te,ge)=>{const pe=await(0,c.TP)(te,ge);if(z){const Ce=new Date(/CHOP-PROTO-([\w:-]+)/.exec(location.hash)[1]);if(Ce&&await MB.global.popupHelper.confirmAsync({title:"\u6570\u636E\u56DE\u9000?",desc:"\u6570\u636E\u56DE\u9000\u5230: "+Ce.toISOString()})){const me=[Ce.getTime(),0,0,0],be=await(0,p.w0)(f.r,pe,me),{clientData:{upperCid:ie}}=await(0,s.Nc)(be,D.team_cid,{...D,name:D.name+"-\u56DE\u9000\u6570\u636E"});await MB.global.popupHelper.alertAsync({title:"\u6570\u636E\u56DE\u9000\u6210\u529F",desc:"\u6570\u636E\u56DE\u9000\u6210\u529F\u5230\u65B0\u6587\u4EF6: "+ie}),location.href="/proto/design/"+ie,await(0,h.Y_)(1e9)}}return te===F&&G.A.init((0,P.tv)(pe)),pe}},D),K(rootSdk.flatStore,D,J),{projectBasic:D,projectMeta:B}},H=async A=>{const{market_template:D,project_metas:[B]}=await(0,I.Yk)(A);return await(0,n.F2)({userId:void 0,flpakKey:B.cid,isAllowDat:!1,isAllowCmt:!1,isAllowCur:!1,onTransferError:n.z0,onReadOnlyError:n.sH},D,_.B9),{projectBasic:D,projectMeta:B}},O={repaint:A=>{let{type:D,payload:B}=A;D===u.a&&V(B.changedKeyList)}},V=(0,C.nF)(A=>{const D=(0,d.dP)();if(!D||!MB.action)return;const B=D.ui.leftLayout.popups.currentPopupPanel,j=D.current.currentOrg,F=D.current.currentUser,Y=D.editor.state.mode.editingOrgComboMode,X=D.editor.state.mode.editingUserComboMode;if(B!=="builtin"&&!(F&&X)&&!(j&&Y))return;const z=D.ui.leftLayout.widget.navIndex;if(X||Y){const Z=X?userSdk:orgSdk;if(!Z)return;(0,n.LK)(A,Z)}else if(F&&z===1&&userSdk){const Z=userSdk.sdkStore.getHotItem(A[0]);(Z==null?void 0:Z.hotAttr.type)==="rResBunch"&&(Z==null?void 0:Z.hotAttr.bunch)==="rbPage"&&MB.action("entry:load:user:combo:group:list")}else if(j&&z===2&&orgSdk){const Z=orgSdk.sdkStore.getHotItem(A[0]);(Z==null?void 0:Z.hotAttr.type)==="rResBunch"&&(Z==null?void 0:Z.hotAttr.bunch)==="rbPage"&&MB.action("entry:load:org:combo:group:list")}},.5*1e3),Q=()=>{var A,D;const B=(A=MB)==null?void 0:A.user,j=(D=MB)==null?void 0:D.currentOrg,F=j==null?void 0:j.library_accesses;return(0,l.RD)(B,j,F)?!0:"RO"},N=async A=>{let{project_meta_cid:D,userId:B,repaint:j,isAllowDat:F=!0}=A;try{const Y=await(0,r.ur)({userId:B,flpakKey:D,isDummyCmt:!0,isAllowDat:F,onTransferError:n.z0,onReadOnlyError:n.sH,useWorker:!0});return j&&Y.sdkStore.subscribe(O.repaint),(0,i.lb)(Y.flatStore),(0,i.TK)(Y.flatStore),Y}catch(Y){console.warn("[initComboStore]",Y)}},L=()=>(0,o.DE)("/api/web/v3/market_template/mt_vip/mt_vip_downloads"),U=A=>(0,o.DE)("/api/upper/web_v1/design/init2403?project_cid="+A)},44421:(He,ee,e)=>{"use strict";e.d(ee,{H:()=>s});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),I=e(79150),u=e(83199),d=e(88463),C=e(18575),h=e(67787);const i=h.Ay.div.withConfig({displayName:"styles__StyledResourcesDetailSearch",componentId:"sc-10x3nsf-0"})(["display:flex;align-items:center;justify-content:space-between;flex:1;&.template-modal{flex:none;.back{.arrow-left{.svg-icon{width:7px;height:14px;}}}}&.resources-details-search{width:calc(100% - 28px);}.back{display:flex;align-items:center;color:",";cursor:pointer;overflow:hidden;flex:1;margin-right:8px;.arrow-left{margin-right:4px;flex:0 0 24px;.svg-icon{width:6px;height:10px;transform:rotate(-180deg);}}.template-title{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.sign{margin-left:8px;}}.right{display:flex;align-items:center;justify-content:flex-end;flex:0 0 24px;.search-bar{border-radius:6px;}&.isSearching{flex:1;}.search-icon{svg.svg-icon{width:13px;height:14px;}}.search-bar.is-searching{height:24px;}}&.isSearching{.back{flex:0 0 24px;margin-right:4px;}.right{flex:1;}}"],l=>l.theme.color_text_L1),f=h.Ay.div.withConfig({displayName:"styles__StyledResourcesDetailSearchV9",componentId:"sc-10x3nsf-1"})(["display:flex;align-items:center;justify-content:space-between;flex:1;&.resources-details-search{width:calc(100% - 28px);}.back{display:flex;align-items:center;color:",";cursor:pointer;overflow:hidden;flex:1;margin-right:8px;.arrow-left{margin-right:4px;flex:0 0 24px;.svg-icon{width:6px;height:10px;transform:rotate(-180deg);}}.template-title{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.sign{margin-left:8px;}}.right{display:flex;align-items:center;justify-content:flex-end;flex:0 0 24px;.search-bar{border:1px solid ",";border-radius:6px;background:",";color:",";flex:1;&:hover,&.isFocus{background:",";border-color:",";}}.search-icon{svg.svg-icon{width:13px;height:14px;}}.search-bar.is-searching{height:28px;}}&.isSearching{.back{flex:0 0 24px;margin-right:4px;}.right{flex:1;}}"],l=>l.theme.color_text_L1,l=>l.theme.color_bg_border_02,l=>l.theme.color_bg_white,l=>l.theme.color_text_L3,l=>l.theme.color_bg_white,l=>l.theme.color_text_link_normal);var p=e(72214);class s extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"state",{isSearching:!1}),(0,n.A)(this,"handleCreateRef",_=>this.$ref=_),(0,n.A)(this,"handleToggle",_=>{const b=_!==void 0?_:!this.state.isSearching;this.setState({isSearching:b}),b&&setTimeout(()=>{this.$ref&&this.$ref.focus()})}),(0,n.A)(this,"handleBack",()=>{const{isSearching:_}=this.state,{onSearch:b,onBack:a}=this.props;_?(b==null||b(""),this.handleToggle(!1)):a()}),(0,n.A)(this,"onShowTipsByTarget",(_,b)=>b.offsetWidth<b.scrollWidth)}render(){const{showSearch:_,title:b,iconName:a,resources:M,onSearch:x,from:g}=this.props,{isSearching:S}=this.state;return g==="template-modal"?(0,p.jsx)(i,{className:g,children:(0,p.jsxs)("div",{className:"back",onClick:this.handleBack,children:[(0,p.jsx)(I.A,{name:a||"design/arrow/right",className:"arrow-left"}),S?null:(0,p.jsx)(u.A,{content:b,direction:"down",isShowTipsByTarget:this.onShowTipsByTarget,children:(0,p.jsx)("div",{className:"template-title",children:b})}),M&&(0,p.jsx)(C.W,{resources:M})]})}):(0,p.jsxs)(i,{className:o()("resources-details-search",{isSearching:S}),children:[(0,p.jsxs)("div",{className:"back",onClick:this.handleBack,children:[(0,p.jsx)(I.A,{name:a||"design/arrow/right",className:"arrow-left"}),S?null:(0,p.jsx)(u.A,{content:b,direction:"down",isShowTipsByTarget:this.onShowTipsByTarget,children:(0,p.jsx)("div",{className:"template-title",children:b})}),M&&(0,p.jsx)(C.W,{resources:M})]}),_&&(0,p.jsx)("div",{className:"right",children:S?(0,p.jsx)(d.A,{ref:this.handleCreateRef,className:"search-bar is-searching",value:"",placeholder:I18N.ScreenPanel.keyword_search,onSearch:x}):(0,p.jsx)(I.A,{className:"search-icon",name:"design/scale_search",onClick:this.handleToggle})})]})}}(0,n.A)(s,"defaultProps",{showSearch:!0})},44518:(He,ee,e)=>{"use strict";e.d(ee,{$:()=>_});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),I=e(61068),u=e(4648),d=e(23089),C=e(54460),h=e(98886),i=e(56849),f=e(67787);const p=f.Ay.div.withConfig({displayName:"styles__StylesBorderOpener",componentId:"sc-1l0g1ik-0"})(["display:flex;flex-direction:column;transition:height 200ms ease-in-out 0s;height:auto;.appearance-line.border-open{min-height:16px;margin-left:-6px;}.border-collapse-body{display:flex;align-items:center;color:#415058;transition:height 200ms ease-in-out 0s;overflow:hidden;margin-left:auto;&.is-open{overflow:visible;}> label{width:50px;height:22px;}.border-select-size-warp{margin-right:15px;}.var-binded .var-input{margin-left:0!important;}.border-select-size{width:59px;height:28px;&:hover,&.is-open{border:1px solid ",";}.border-style{width:12px;height:12px;}.radio-option{&.active{.border-style{border-color:",";}}}button{.border-line{color:",";}}}.border-width-input{width:52px;height:28px;}.border-width-menu-opener{width:24px;height:24px;&.is-open{.widthSettings{background-color:",";color:",";.svg-icon{color:",";path{stroke:currentColor;}}}}}}&.is-only-stroke-width{.border-collapse-body.is-open{margin-left:22px;.left-label{height:14px;color:",";line-height:14px;white-space:nowrap;width:42px;}}}&.has-style-width-no-visibility{.border-collapse-body.is-open{margin-left:62px;}}"],b=>b.theme.color_bg_border_02,b=>b.theme.color_proto,b=>b.theme.color_text_L1,b=>b.theme.color_btn_primary_normal,b=>b.theme.color_text_btn,b=>b.theme.color_text_btn,b=>b.theme.color_text_L2);var s=e(30523),l=e(72214);class _ extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleBorderVisibilityChanged",a=>{const{onChange:M,selections:x,borderVisibility:g,dispatch:S}=this.props,{borderSide:t}=a.currentTarget.dataset,v={...g,["bdrIsVisible"+t]:!g["bdrIsVisible"+t]};M({value:v,attr:"borderVisibility",selections:x,dispatch:S})}),(0,n.A)(this,"handleBorderChanged",(a,M,x)=>{const{onChange:g,selections:S,dispatch:t,refVars:v,border:w}=this.props,k={...w,[M]:M==="bdrWidth"?parseInt(a):a},W={...v==null?void 0:v.border,[M]:x};g({value:k,attr:"border",refVar:W,selections:S,dispatch:t})})}render(){var a;const{canBorderWidth:M,canBorderStyle:x,canSetBorderVisibility:g,border:S,borderVisibility:t,refVars:v,canOpenLib:w,canAddVar:k,canCreateColorRef:W,refStyles:K,onPosition:G}=this.props,$=!x&&!M,P=!x&&!g&&M,E=x&&M&&!g;return(0,l.jsxs)(p,{className:o()({"is-open":S.bdrIsVisible&&!$},{"is-only-stroke-width":P},{"has-style-width-no-visibility":E}),children:[(0,l.jsxs)("div",{className:"appearance-line border-open height-32",children:[(0,l.jsxs)("div",{className:"common-check-label-box",children:[(0,l.jsx)(I.A,{className:I.p,attr:"bdrIsVisible",isChecked:S.bdrIsVisible,onChange:H=>this.handleBorderChanged(H,"bdrIsVisible")}),(0,l.jsx)("label",{className:"left-label",children:I18N.SettingPanel.stroke})]}),(0,l.jsx)(u.R_,{mode:"input",className:u.EY,supAttr:"border",attr:"bdrColor",color:S.bdrColor,canOpenLib:w,canCreateColorRef:W,refStyles:K,onChange:this.handleBorderChanged,onPosition:G})]}),(0,l.jsxs)("div",{className:o()("border-collapse-body",{"is-open":S.bdrIsVisible&&!$},{"height-32":x||M||g}),children:[P&&(0,l.jsx)("label",{className:"left-label",children:I18N.SettingPanel.thickness}),(0,l.jsx)(i.v,{}),x&&(0,l.jsx)("div",{className:"border-select-size-warp",children:(0,l.jsx)(d.mq,{className:o()("border-select-size"),attr:"bdrStyle",menuClassName:"border_style_select_menu",optionList:(0,C.se)(),value:S.bdrStyle,onChange:this.handleBorderChanged})}),M&&(0,l.jsx)(s.Yw,{type:"number",attr:"bdrWidth",value:S.bdrWidth,refVar:v==null||(a=v.border)==null?void 0:a.bdrWidth,inputClassName:o()("border-width-input"),menuClassName:"border_width_select_menu",optionList:C.xq,canAddVar:k,showCaretIcon:!0,onConfirm:(H,O)=>this.handleBorderChanged(H,"bdrWidth",O)}),g&&(0,l.jsx)(h.A,{handleChange:this.handleBorderVisibilityChanged,borderVisibility:t})]})]})}}(0,n.A)(_,"defaultProps",{colorButtonAttr:"bdrColor",canAddVar:!0,canCreateColorRef:!0})},44805:(He,ee,e)=>{"use strict";e.d(ee,{c:()=>u,k:()=>d});var n=e(20089),r=e(19013),c=e(59025),o=e(64320);const I=(C,h,i)=>{switch(C){case n.x.Canvas:{if(["asOverlay","shadow","border","borderRadius","borderVisibility"].includes(h)||h==="fill"&&i.fill!=="solid")return!1;break}case n.x.CanvasAsOverlay:{if(["asOverlay","stickyHeaderHeight","stickyFooterHeight","layoutGrid","orientation","device"].includes(h))return!1;break}default:return!0}return!0},u=C=>{let{value:h,attr:i,refVar:f,dispatch:p,supAttr:s,selections:l=[]}=C;const _=l.map(b=>{if(sdkStore.isTrashed(b))return null;const a=sdkStore.getHotItem(b),M=(0,c.o9)(a);if(!I(M,i,h)||!I(M,s,h))return null;const{refVars:x,refStyles:g}=a.hotAttr;let S,t,v=!1;if(s&&a.hotAttr[s]){var w;v=(x==null||(w=x[s])==null?void 0:w[i])!==f,v&&(S={...x,[s]:{...x==null?void 0:x[s],[i]:f}},Object.keys(S).forEach(k=>{S[s][k]||delete S[s][k]})),t={[s]:{...a.hotAttr[s],[i]:h}},i==="cornerRadius"&&(t={...t,borderRadiusIsRound:!1})}else v=(x==null?void 0:x[i])!==f,v&&(S={...x,[i]:f},S&&!S[i]&&delete S[i]),t={[i]:h},i==="borderRadius"&&(t={...t,borderRadiusIsRound:!1});return o.vZ.includes(i)&&(t.refStyles={...g,appear:void 0}),v&&(t.refVars=S),{key:b,hotAttr:t}}).filter(b=>!!b);p({type:"entry:widget:change",payload:{flatChgList:_}})},d=C=>{let{selectedItems:h,settingPanelMap:i,otherProps:f}=C;const p={},s=[],l=_=>(i[(0,c.o9)(_)]||i[r.m9])(h,{...f}).flat().filter(b=>typeof b=="number");h.forEach(_=>{l(_).forEach(a=>{p[a]=p[a]?p[a]+1:1})});for(const[_,b]of Object.entries(p))b===h.length&&s.push(Number(_));return s}},44817:(He,ee,e)=>{"use strict";e.d(ee,{l:()=>d,q:()=>C});var n=e(38502),r=e(18381),c=e(10429),o=e(70933),I=e(53940),u=e(72214);const d=n.memo(function(i){const{onMouseDown:f,onDoubleClick:p,onSetCurrentNodeIcon:s,iconList:l,isMultiColorIcon:_}=i,b=(0,r.d4)(o.YY);return(0,u.jsx)("ul",{className:"icon-list",style:{width:I.qv},children:l.map((a,M)=>(0,u.jsx)(c.A,{index:M,icon:a,isMultiColorIcon:_,onDoubleClick:p,onMouseDown:f,onSetCurrentNodeIcon:s,createTemplatesData:b},M))})}),C=e.j!=477?n.memo(function(i){const{onMouseDown:f,onDoubleClick:p,onSetCurrentNodeIcon:s,iconList:l,multiColorIconObj:_}=i,b=(0,r.d4)(o.YY);return(0,u.jsx)("ul",{className:"icon-list",style:{width:I.qv},children:l.map((a,M)=>(0,u.jsx)(c.A,{index:M,icon:a,isMultiColorIcon:!!_[a.groupCid],onDoubleClick:p,onMouseDown:f,onSetCurrentNodeIcon:s,createTemplatesData:b},M))})}):null},45246:(He,ee,e)=>{"use strict";e.d(ee,{J6:()=>c});const n="_cmt",r=h=>h.endsWith(n),c=h=>{if(r(h))throw new Error("bad datKey: "+h);return""+h+n},o=h=>{if(!r(h))throw new Error("bad cmtKey: "+h);return h.slice(0,-n.length)},I="_cur",u=h=>h.endsWith(I),d=h=>{if(u(h))throw new Error("bad datKey: "+h);return""+h+I},C=h=>{if(!u(h))throw new Error("bad curKey: "+h);return h.slice(0,-I.length)}},45392:(He,ee,e)=>{"use strict";e.d(ee,{L:()=>v,X:()=>k});var n=e(51306),r=e(95549),c=e(38502),o=e(67787),I=e(23089),u=e(5649);function d(W){return W&&(W==="0"||W.endsWith("s"))?parseFloat(W)*1e3:W}var C=e(27660);const h=["none","bounce","fadeIn","fadeOut","flash","pulse","rubberBand","shake","swing","tada","wobble","jello",{groupName:"bouncing_entrances",itemList:["bounceIn","bounceInDown","bounceInLeft","bounceInRight","bounceInUp"]},{groupName:"flippers",itemList:["flipInX","flipInY"]},{groupName:"rotating_entrances",itemList:["spinning","spinning-reverse","rotateIn","rotateInDownLeft","rotateInDownRight","rotateInUpLeft","rotateInUpRight"]},{groupName:"sliding_entrances",itemList:["slideInDown","slideInLeft","slideInRight","slideInUp"]},{groupName:"zoom_entrances",itemList:["zoomIn","zoomInDown","zoomInLeft","zoomInRight","zoomInUp"]},{groupName:"specials",itemList:["rollIn","lightSpeedIn"]}],i="0",f=[{label:"0ms",value:i},{label:"10ms",value:10},{label:"50ms",value:50},{label:"100ms",value:100},{label:"200ms",value:200},{label:"500ms",value:500},{label:"1000ms",value:1e3},{label:"2000ms",value:2e3},{label:"5000ms",value:5e3}],p=W=>W===i,s=[{label:"100ms",value:100},{label:"200ms",value:200},{label:"300ms",value:300},{label:"500ms",value:500},{label:"1000ms",value:1e3},{label:"2000ms",value:2e3},{label:"5000ms",value:5e3}],l=(0,C.R)(()=>Array.from({length:10},(K,G)=>{const $=(G+1).toString();return{label:$,value:$}}).concat({label:I18N.dConst.infinite,value:"infinite"})),_=(0,C.R)(()=>h.map(W=>typeof W=="string"?{label:I18N.dConst.ani[W],value:W}:[I18N.dConst.ani[W.groupName],...W.itemList.map(K=>({label:I18N.dConst.ani[K],value:K}))])),b=(0,C.R)(()=>[{label:I18N.SettingPanel.ani_delay,attrName:"aniDelay",valueName:"aniDelay",optionList:f},{label:I18N.SettingPanel.ani_duration,attrName:"aniDuration",valueName:"aniDuration",optionList:s}]);var a=e(70812),M=e(72214);class x extends c.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleChange",(K,G)=>{const{onChange:$,dispatch:P,aniName:E,aniDelay:H,aniDuration:O,aniCount:V,selections:Q}=this.props,N={aniName:E,aniDelay:H,aniDuration:O,aniCount:V,[G]:K};$({value:N,attr:"animation",dispatch:P,selections:Q}),G==="aniName"&&E==="none"&&a.U4.addAnimationTrack(K)}),(0,r.A)(this,"handleAniSChange",(K,G)=>{this.handleChange(parseFloat(K)/1e3+"s",G)}),(0,r.A)(this,"handleAniCountChange",(K,G)=>{this.handleChange(K,G)})}render(){const{aniName:K,aniDelay:G,aniDuration:$,aniCount:P}=this.props,E={aniDelay:G,aniDuration:$},H={animationName:K,animationDelay:G,animationDuration:p($)?S:$};return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)("div",{className:"line animation-line height-32",children:[(0,M.jsx)("label",{className:"left-label",children:I18N.SettingPanel.animation}),(0,M.jsx)("div",{className:"right-content",children:(0,M.jsx)(I.mq,{className:"select animation-select",attr:"aniName",optionList:_(),value:K,onChange:this.handleChange,menuClassName:"menu-animation-select"})})]}),b().map(O=>{let{label:V,attrName:Q,valueName:N,optionList:L}=O;return(0,M.jsxs)("div",{className:"line animation-line height-32",children:[(0,M.jsx)("label",{className:"left-label",children:V}),(0,M.jsx)("div",{className:"right-content",children:(0,M.jsx)(u.A,{className:"select",attr:Q,value:d(E[N]),min:0,suffix:"ms",max:1e4,optionList:L,onConfirm:this.handleAniSChange})})]},V)}),(0,M.jsxs)("div",{className:"line animation-line height-32",children:[(0,M.jsx)("label",{className:"left-label",children:I18N.SettingPanel.ani_count}),(0,M.jsx)("div",{className:"right-content",children:(0,M.jsx)(u.A,{className:"select",attr:"aniCount",min:1,max:100,optionList:l(),isNotVerify:P==="infinite",formatter:O=>O==="infinite"?I18N.SettingPanel.infinite:O,value:P,onConfirm:this.handleAniCountChange})})]}),(0,M.jsx)("div",{className:"animation-box",children:(0,M.jsx)(g,{style:H,children:I18N.SettingPanel.show_case})})]})}}const g=o.Ay.div.withConfig({displayName:"Animationui__StyledShowCase",componentId:"sc-1ixtrc1-0"})(["height:80px;font-size:18px;color:",";display:flex;justify-content:center;align-items:center;animation-timing-function:ease-in-out;animation-iteration-count:infinite;"],W=>W.theme.color_text_L1),S="2s";var t=e(44805);const v=W=>{let{selectedItems:K}=W;const{animation:G}=K[0].hotAttr;if(G)return{aniName:G.aniName,aniDelay:G.aniDelay||"0",aniCount:G.aniCount||"1",aniDuration:G.aniDuration||"1s"}},w={component:x,params:{},getter:[v],setter:{onChange:t.c}},k=()=>[n.m,[w,"AnimationInfo"]]},45765:(He,ee,e)=>{"use strict";e.d(ee,{d$:()=>u,S$:()=>I});var n=e(32424);const r=JSON.parse('{"content":["iconPark-picture-one","iconPark-like","iconPark-check-small","ze-good-job-o","iconPark-thumbs-down","riLine-rocket-2-line","if-play-alt-2","iconPark-acoustic","iconPark-volume-mute","iconPark-voice","ze-fire","ze-thumb-circle","if-stop","if-volume-off","if-volume-mute","if-video-alt","iconPark-voice-off","iconPark-music","iconPark-smiling-face-with-squinting-eyes","iconPark-slightly-frowning-face-whit-open-mouth","iconPark-star","arcoDesign-subscribed","arcoDesign-thunderbolt","arcoDesign-share-alt","arcoDesign-translate","if-volume-down","if-volume-up","ze-star","md-folder_special","antOutline-step-forward"],"symbol":["iconPark-add-one","iconPark-plus","iconPark-minus","iconPark-add","iconPark-attention","iconPark-close","iconPark-more-three","antOutline-exclamation","antOutline-info-circle","antOutline-question-circle","iconPark-copyright","iconPark-percentage","iconPark-division","arcoDesign-code","arcoDesign-at","arcoDesign-question","arcoDesign-stop","semiDesign-semi-icons-hash","semiDesign-semi-icons-font","md-exposure_plus_1","md-looks_one","md-looks_two","md-looks_3"],"direction":["iconPark-left","iconPark-right","iconPark-arrow-circle-down","iconPark-arrow-circle-left","iconPark-arrow-circle-right","iconPark-arrow-circle-up","iconPark-arrow-down","iconPark-arrow-left","iconPark-arrow-right","iconPark-arrow-up","iconPark-corner-down-left","iconPark-double-left","iconPark-down","iconPark-down-c","iconPark-left-c","iconPark-to-bottom","iconPark-to-bottom-one","iconPark-to-top","iconPark-to-top-one","iconPark-up-two","iconPark-undo","iconPark-right-two","riLine-arrow-up-down-line","fa5-caret-down-fas","antOutline-vertical-left","antOutline-right-square","antFill-right-circle","antFill-right-square"],"application":["ze-alipay","st-weixin","st-qq","riFill-weibo-fill","ze-chat","riFill-map-pin-2-fill","md-security","st-apple","iconPark-taobao","arcoDesign-message","ze-shopping-cart-o","ze-gem-o","iconPark-chart-pie","arcoDesign-location","iconPark-take-off","iconPark-trophy","iconPark-finance","iconPark-shopping-cart","iconPark-knife-fork","iconPark-gold-medal-two","iconPark-book-open","iconPark-sun","iconPark-heavy-rain","iconPark-thunderstorm-one","iconPark-moon","iconPark-comments"],"figure":["ze-manager-o","ze-friends-o","ze-user-circle-o","riFill-customer-service-2-fill","antOutline-user","iconPark-people-plus","riLine-user-voice-line","antOutline-user-delete","antOutline-user-add","iconPark-robot-one","ze-friends","if-group","fa5-users-fas 2","semiDesign-semi-icons-user_circle","riFill-user-settings-fill","iconPark-people-safe","iconPark-user-positioning","iconPark-woman","iconPark-baby","riFill-user-search-fill","riFill-account-box-fill","md-person_add","antFill-customer-service","if-live-support","if-girl-alt","if-user-alt-3"],"system":["ze-edit","semiDesign-semi-icons-plus","iconPark-check-one","iconPark-switch","ze-certificate","if-close","arcoDesign-search","iconPark-return","ze-scan","md-help_outline","ze-warning","riFill-close-circle-fill","fa5-check-circle-fas","if-bin","riFill-settings-2-fill","md-radio_button_unchecked","riLine-asterisk","ze-setting-o","ze-warning-o","riLine-add-line","riLine-close-circle-line","arcoDesign-more","riLine-time-line","ze-bar-chart-o","iconPark-alarm-clock","arcoDesign-drag-dot","arcoDesign-home","md-send","ze-eye-o","ze-filter-o","ze-bars","iconPark-wifi","fa5-square-far"],"popular":["ze-arrow","ze-arrow-left","ze-arrow-down","ze-cross","ze-add-o","mb-search","ze-plus","ze-ellipsis","ze-search","ze-bars","ze-checked","ze-clear","fa5-weixin-fab","ze-add","ze-manager","ze-circle","ze-arrow-up","antOutline-user","ze-close","ze-success","ze-star-o","ze-wap-home","ze-apps-o","ze-question-o","ze-chat-o","ze-like-o","riLine-checkbox-blank-line","fa5-times-fas","ze-weapp-nav","ze-wap-nav","ze-orders-o","ze-edit","ze-add-square","fa5-user-circle-fas","ze-star","ze-play","ze-like","ze-location","ze-bell","fa5-user-fas"]}');let c=function(d){return d.Popular="popular",d.System="system",d.Direction="direction",d.Figure="figure",d.Content="content",d.Symbol="symbol",d.Application="application",d}({});const o=[c.Popular,c.System,c.Direction,c.Figure,c.Content,c.Symbol,c.Application],I=d=>d?o.map(C=>{var h,i;const f=r[C];return{label:(h=I18N)==null||(h=h.Resources)==null?void 0:h.icon_panel[C],groupName:C,icons:f==null||(i=f.map(p=>d==null?void 0:d.find(s=>s.id===p)))==null?void 0:i.filter(p=>p)}}):[],u=d=>{if(!d)return[];const C=[],h={};for(const f of d){if(!f)continue;const[p,s,l,_,b,a,M]=f,x={cid:(0,n.xc)(),id:p,cat:s,view_box:l,keywords:b,lib:a,path:_,type:s||"svg",groupCid:M};h[s]||(h[s]=s),C.push(x)}return Object.values(h).map(f=>({groupName:f,label:f,icons:C.filter(p=>p.cat===f)}))}},46082:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>x});var n=e(38502),r=e(69623);const c=g=>("0"+g.toString(16)).slice(-2),o=g=>{let{r:S,g:t,b:v}=g;const{a:w}=g;return S=Math.floor(S*w),t=Math.floor(t*w),v=Math.floor(v*w),"#"+c(S)+c(t)+c(v)},I=()=>{const g="abcdefghijklmnopqrstuvwxyz",S=Array.from({length:8},()=>g[Math.floor(Math.random()*g.length)]).join("");return new Date().getTime()+S};var u=e(39e3);const d={canvasContainer:{position:"fixed",top:"0px",left:"0px",width:"100vw",height:"100vh",zIndex:999,display:"none",cursor:"none"},floatContainer:{position:"fixed",top:"0px",left:"0px",width:"165px",height:"195px",borderRadius:"5px",overflow:"hidden",display:"flex",visibility:"hidden",flexWrap:"wrap",zIndex:1e3},colorItem:{width:"15px",height:"15px",border:"solid 1px rgba(0,0,0,0.2)",boxSizing:"border-box"},text:{width:"165px",height:"30px",color:"#000000",textAlign:"center",lineHeight:"30px",backgroundColor:"rgba(0,0,0,0.1)",fontWeight:"bold"}},C=11,i=C*10/2,f=Math.floor(C/3),p={COLOR_ITEM_SIZE:11,GRID_SIZE:12,get MAGNIFIER_SIZE(){return this.COLOR_ITEM_SIZE*this.GRID_SIZE},get ITEM_SIZE(){return this.MAGNIFIER_SIZE/this.COLOR_ITEM_SIZE},get CENTER_INDEX(){return Math.floor(this.COLOR_ITEM_SIZE/2)}};var s=e(67787);const l=s.Ay.div.withConfig({displayName:"styles__StyledMagnifier",componentId:"sc-1w57q74-0"})([".float-container{position:fixed;top:0;left:0;width:110px;height:110px;background-color:black;border-radius:50%;box-shadow:0 0 0 1px black,0 0 0 3px white;overflow:hidden;display:flex;visibility:hidden;flex-wrap:wrap;z-index:1000;.text{width:62px;height:16px;position:absolute;left:50%;bottom:12px;border-radius:10px;transform:translateX(-50%);color:#fff;text-align:center;line-height:16px;background-color:rgba(56,56,56,1);font-weight:bold;text-transform:uppercase;}.md-magnifier-color-item{width:10px;height:10px;border:solid 1px #D2D2D2;box-sizing:border-box;}}"]);var _=e(72214);const b=g=>{let{elementId:S,style:t,color:v,onMouseDown:w}=g;const k=(0,n.useRef)(null),W=p.CENTER_INDEX,K=Array.from({length:p.COLOR_ITEM_SIZE*p.COLOR_ITEM_SIZE},(G,$)=>{const P=Math.floor($/p.COLOR_ITEM_SIZE),E=$%p.COLOR_ITEM_SIZE,H=P===W&&E===W;return(0,_.jsx)("div",{id:S+"-"+($+1),className:"md-magnifier-color-item",style:{borderColor:H?"#000000":d.colorItem.borderColor}},$)});return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(l,{children:(0,_.jsxs)("div",{ref:k,className:"float-container",style:{...t,gridTemplateColumns:"repeat("+p.COLOR_ITEM_SIZE+", 1fr)"},children:[K,(0,_.jsx)("div",{id:S+"-text",className:"text",style:{color:"#fff"},children:v})]})}),(0,_.jsx)(u.A,{target:document,onMouseDown:(0,u.t)(w,{capture:!0})})]})},x=g=>{let{open:S,event:t,onChange:v,onClose:w,handleOpenDownloadPluginModal:k}=g,W="";const K=(0,n.useRef)(null),G=(0,n.useRef)(null),$=(0,n.useRef)(""),[P,E]=(0,n.useState)({visibility:"hidden"}),[H,O]=(0,n.useState)(null),V=(0,n.useRef)(!1),Q=(Y,X)=>{if(G.current){const{data:z}=G.current.getImageData(Y-f,X-f,C,C),Z=[];for(let J=0;J<z.length;J+=4)Z.push([z[J],z[J+1],z[J+2],z[J+3]]);return Z}},N=(Y,X)=>{if(Y&&G.current){const z=Y.pageX*window.devicePixelRatio,Z=Y.pageY*window.devicePixelRatio,J=Q(z,Z);if(J){E({visibility:X,transform:"translate("+(Y.pageX-i)+"px, "+(Y.pageY-i)+"px)"});const te=Math.ceil(C/2),ge=Math.ceil(C/2),pe=document.getElementById($.current+"-text");for(let Ce=0,me=C*C;Ce<me;Ce++){const be=document.getElementById($.current+"-"+(Ce+1));if(be){const[ie,oe,he,ce]=J[Ce],re=o({r:ie,g:oe,b:he,a:ce/255}),fe=Math.ceil((Ce+1)/C),Se=(Ce+1)%C;fe===te&&Se===ge&&pe&&(pe.textContent=re,W=re),be.style.backgroundColor=re}}}}},L=(0,n.useCallback)(Y=>{Y.ctrlKey&&Y.preventDefault()},[]),U=(0,n.useCallback)(Y=>{N(Y,"visible")},[N]),A=(0,n.useCallback)(()=>{if(V.current)return;const Y=document.getElementById("md-color-picker-container");Y&&document.body.removeChild(Y),window.removeEventListener("mousemove",U),O(null),E({visibility:"hidden"}),V.current=!0,w()},[U,w]),D=(0,n.useCallback)(Y=>{Y.stopPropagation(),Y.buttons===1&&v&&v(W),A()},[v]),B=Y=>{const X=new Image;X.onload=()=>{const z=document.createElement("canvas");z.width=X.width,z.height=X.height;const Z=z.getContext("2d");Z&&(Z.drawImage(X,0,0),K.current=z,G.current=Z,window.addEventListener("mousemove",U))},X.src=Y.payload},j=Y=>{if(Y.type==="mb-extend-send"){const X=Y.data;B(X)}},F=()=>{var Y;if((Y=window.chrome)!=null&&Y.runtime&&window.mbRequestMessage){const X=window.localStorage.getItem("mb-assistant-for-chrome")||"";X?window.chrome.runtime.sendMessage(X,{msg:"captured"},z=>{if((z==null?void 0:z.message)==="ok"){B(z);return}z||(k==null||k(),A())}):window.mbRequestMessage({msg:"captured"})}else window.mbRequestMessage&&window.mbRequestMessage({msg:"captured"})};return(0,n.useEffect)(()=>{if(S){V.current=!1,$.current=I();const Y=document.createElement("div");Y.id="color-picker-container",document.body.appendChild(Y),O(Y),window.addEventListener("mb-extend-send",j),window.addEventListener("wheel",L,{passive:!1});try{F()}catch(X){console.error("[plugin error]",X)}N(t,"hidden")}return()=>{A(),window.removeEventListener("mb-extend-send",j),window.removeEventListener("wheel",L,{passive:!1})}},[S]),H?(0,r.createPortal)((0,_.jsx)(b,{elementId:$.current,style:P,color:W,onMouseDown:D,onMouseMove:U}),H):null}},46322:(He,ee,e)=>{"use strict";e.d(ee,{I:()=>M});var n=e(38502),r=e(18381),c=e(53732),o=e.n(c),I=e(12211),u=e(89505),d=e(14285),C=e(70933),h=e(67588),i=e(4235),f=e(17307),p=e(37342),s=e(27384),l=e(68863),_=e(4179),b=e(72214);const a=(0,I.Mz)([C.wA,C.HW,C.X_,C.Pz,C.PL,h.PI,h.k3,C.Ur,i.nE,C.YY],(g,S,t,v,w,k,W,K,G,$)=>({currentOrg:g,currentUser:S,scale:t,canvasRect:v,rootProject:w,showDragMode:k,isAdsorbentReferenceLine:W,currentScreen:K,selectedItems:G,createTemplatesData:$})),M=g=>{const S=(0,r.wA)(),t=(0,r.d4)(a),{createTemplatesData:v}=t,{asset:w,lazyLoad:k,containerRect:W,scrollDirection:K,preloadDistance:G}=g,$=(0,u.c)({dispatch:S,...t,popupsName:g.popupsName,type:"picture",isFind:!0,isOrg:!1}),P=(0,n.useCallback)((me,be)=>{me.stopPropagation();const{onMouseDown:ie}=$;ie&&ie(me,be)},[$==null?void 0:$.onMouseDown]),E=(0,n.useCallback)(()=>{O!=null&&O.current||S({type:"entry:image-panel:create:image:by:click",payload:{asset:w,type:"picture"}})},[w,S]),H=(0,n.useCallback)(me=>{me.stopPropagation();const{onAssetImport:be}=$;be&&be(w)},[w,$==null?void 0:$.onAssetImport]),{isMoveAfterClick:O,isDragging:V,handleMouseDown:Q,handleClick:N,handleDoubleClick:L}=(0,_.A)({onMouseDown:P,onClick:E,onDoubleClick:H}),U=(0,n.useMemo)(()=>{var me;const be=(0,l.F)(v);if((be==null||(me=be.recent)==null?void 0:me.projectUpperType)==="picture"){var ie;return(be==null||(ie=be.recent)==null?void 0:ie.projectUpperCid)===(w==null?void 0:w.asset_cid)}return V},[v,w,V]),A=me=>me.tabHeight?me.tabHeight:g.isHistoryItem?109:109*me.height/me.width,D=me=>me.tabHeight?me.width*me.tabHeight/me.height:109,B=me=>{me.stopPropagation();const{copyright:be}=w,{user_html:ie}=be||{};(0,p.JW)(ie,"_blank","noreferrer")},j=me=>{me.stopPropagation();const{copyright:be}=w,{img_html:ie}=be||{};(0,p.JW)(ie,"_blank","noreferrer")};if(!w)return;const{image:F,thumb:Y,from:X,copyright:z,asset_cid:Z,group_cid:J}=w,{user_name:te,img_html:ge,user_html:pe}=z||{},Ce={key:F,height:A(w),width:D(w),onDoubleClick:L,onClick:N,onMouseDown:me=>Q(me,w),isHistoryItem:g.isHistoryItem};return k?!W||!K||!G?null:(0,b.jsx)(x,{className:o()({active:U}),asset:w,containerRect:W,scrollDirection:K,preloadDistance:G,commonProps:Ce}):(0,b.jsx)(d.bu,{className:o()("pic-item mt-exposure-observer normal",{active:U}),url:Y,"data-cid":Z,"data-resources-cid":J,...Ce,children:X==="unsplash"&&(0,b.jsxs)("div",{className:"copy-right",children:[pe&&(0,b.jsx)("div",{className:"user-name",onClick:B,children:te}),ge&&(0,b.jsx)(f.C,{name:"chatGPT/auth_image_html",isColorPure:!0,size:10,onClick:j})]})})},x=g=>{const{className:S,containerRect:t,scrollDirection:v,preloadDistance:w,commonProps:k,asset:W}=g,{thumb:K,asset_cid:G,group_cid:$}=W,[P,E]=(0,n.useState)(!1),H=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(!H||!H.current)return;const O=H.current;if(v==="y"){const{top:V,bottom:Q}=O.getBoundingClientRect(),{top:N,bottom:L}=t;V-w<L&&Q>N?E(!0):E(!1)}else if(v==="x"){const{left:V,right:Q}=O.getBoundingClientRect(),{left:N,right:L}=t;V-w<L&&Q>N?E(!0):E(!1)}},[t,w,v]),(0,b.jsx)(d.bu,{className:o()("pic-item mt-exposure-observer lazy",S),ref:H,"data-cid":G,"data-resources-cid":$,...k,children:(0,b.jsx)(s.A,{isVisible:P,imageUrl:K})})}},46364:(He,ee,e)=>{"use strict";e.d(ee,{Ky:()=>I,OW:()=>n,V5:()=>c,dx:()=>r});const n=20,r=360,c={edit:130,generate:160,snapshot:44,thinking:44},o="AI_COMPONENT_SNAPSHOT_MODE_KEY",I=e.j!=477?["\u521B\u5EFA\u4E00\u4E2A\u65E5\u5386\u7EC4\u4EF6\uFF0C\u7528\u6237\u53EF\u4EE5\u67E5\u770B\u3001\u9009\u62E9\u65E5\u671F\u3002\u8981\u6C42\u6709\u6708\u4EFD\u5207\u6362\u529F\u80FD\uFF0C\u5F53\u524D\u65E5\u671F\u9AD8\u4EAE\u663E\u793A\u3002","\u521B\u5EFA\u4E00\u4E2A\u79FB\u52A8\u7AEF\u7684\u641C\u7D22\u6846\u3002\u5360\u4F4D\u7B26\u6587\u672C\u4E3A\u201C\u641C\u7D22...\u201D\u3002\u8F93\u5165\u6587\u672C\u540E\uFF0C\u663E\u793A\u6E05\u9664\u6309\u94AE\u3002","\u521B\u5EFA\u4E00\u4E2A3\u79D2\u5B8C\u6210\u64AD\u653E\u7684\u52A8\u6001\u8FDB\u5EA6\u6761\uFF0C\u53F3\u4FA7\u663E\u793A\u5F53\u524D\u767E\u5206\u6BD4\u503C\u6807\u7B7E\u3002","\u5236\u4F5C\u4E00\u4E2A\u79FB\u52A8\u7AEF\u767B\u5F55\u6CE8\u518C\u8868\u5355\u3002\u4E24\u4E2A\u8868\u5355\u5E94\u72EC\u7ACB\u663E\u793A\uFF0C\u5E76\u6709\u5207\u6362\u529F\u80FD\u3002","\u521B\u5EFA\u4E00\u4E2A\u4E0B\u62C9\u83DC\u5355\uFF0C\u83DC\u5355\u9879\u5305\u542B\u5317\u4EAC\u5E02\u7684\u6240\u6709\u533A\u53BF\u3002\u4E0B\u62C9\u83DC\u5355\u7684\u9ED8\u8BA4\u63D0\u793A\u6587\u672C\u4E3A\u201C\u8BF7\u9009\u62E9\u533A\u53BF\u201D\u3002","\u521B\u5EFA\u4E00\u4E2A\u201C\u5458\u5DE5\u4FE1\u606F\u8868\u201D\u8868\u683C\u3002\u8868\u683C\u5305\u542B\u4EE5\u4E0B\u5217\uFF1A\u5E8F\u53F7\u3001\u540D\u79F0\u3001\u5E74\u9F84\u3001\u804C\u4F4D\u3002","\u521B\u5EFA\u4E00\u4E2A\u5E26\u6709\u547C\u5438\u52A8\u753B\u7684\u9AA8\u67B6\u5C4F\u7EC4\u4EF6\uFF0C\u7528\u4E8EUI\u52A0\u8F7D\u72B6\u6001\u3002\u9AA8\u67B6\u5C4F\u5305\u62EC\u77E9\u5F62\u56FE\u7247\u5360\u4F4D\u7B26\u548C\u51E0\u884C\u6A2A\u7EBF\u6587\u672C\u5360\u4F4D\u7B26\u3002","\u521B\u5EFA\u4E00\u4E2A\u6C34\u5E73\u6ED1\u52A8\u6761\u7EC4\u4EF6\uFF0C\u8303\u56F40\u5230100\uFF0C\u521D\u59CB\u503C50\uFF0C\u6ED1\u52A8\u6761\u53F3\u4FA7\u6709\u4E00\u4E2A\u663E\u793A\u5F53\u524D\u503C\u7684\u6587\u672C\u6807\u7B7E\u3002","\u521B\u5EFA\u4E00\u4E2A\u5B57\u7B26\u6570\u9650\u5236\u4E3A500\u4E2A\u5B57\u7B26\u7684\u591A\u884C\u6587\u672C\u8F93\u5165\u6846\uFF0C\u5E76\u5728\u53F3\u4E0B\u89D2\u5B9E\u65F6\u663E\u793A\u5F53\u524D\u5B57\u7B26\u6570\u548C\u6700\u5927\u5B57\u7B26\u6570\uFF0C\u683C\u5F0F\u4E3A\u201C\u5F53\u524D\u5B57\u7B26\u6570/500\u201D\u3002","\u751F\u6210\u4E00\u4E2A\u201C\u64AD\u653E\u201D\u56FE\u6807\uFF0C\u70B9\u51FB\u540E\u53D8\u4E3A\u201C\u6682\u505C\u201D\u56FE\u6807\u3002"]:null},46442:(He,ee,e)=>{"use strict";e.d(ee,{a:()=>I});var n=e(38502),r=e(67787),c=e(33573),o=e(72214);const I=d=>{const{item:C,onSetTemplateRef:h}=d;return(0,o.jsx)(u,{ref:h,className:"sample mt-exposure-observer","data-cid":C.key,"data-resources-cid":C.mtCid,children:(0,o.jsx)("img",{src:c.V})},C.key)},u=r.Ay.li.withConfig({displayName:"SampleTemplateItem__StyledSampleTemplateItem",componentId:"sc-114ge1i-0"})(["&.sample{display:flex;align-items:center;justify-content:center;flex:0 0 109px;width:100%;height:109px;margin-bottom:28px;background:",";border-radius:4px;pointer-events:none;}"],d=>d.theme.color_bg_card)},46464:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>p,D:()=>f});var n=e(38502),r=e(53732),c=e.n(r),o=e(17307),I=e(4461),u=e(82629),d=e(20089),C=e(50353),h=e(72214);const i=(0,n.memo)(s=>{let{widget:l,className:_,isDynamic:b,isExpanded:a}=s;const{key:M,hotAttr:x,hotAttr:{type:g}}=l;switch(g){case d.x.WBasket:return b?(0,h.jsx)(o.C,{className:c()(_,"design-dynamic-new"),name:"left_panel/dynamic/new"}):(0,h.jsx)(o.C,{className:c()(_,"design-master-new"),name:"left_panel/master/new"});case d.x.WIcon:{const{iconData:{viewBox:S,path:t,svgAttr:v,isMultiColorIcon:w}}=x;return(0,h.jsx)(f,{cid:M,isMultiColorIcon:w,view_box:S,path:t,svgAttr:v})}case d.x.WWrap:{const S=a?"group_open":"group_close";return(0,h.jsx)(o.C,{className:c()("icon","group-icon",_),name:"left_panel/"+S})}case d.x.WChart:{const{chartType:S}=x.chartConfig;return(0,h.jsx)(o.C,{className:c()(_,"design-"+S+"-new"),name:"left_panel/"+S+"/new"})}case d.x.WSelectionControl:return(0,h.jsx)(o.C,{className:c()(_,"highWidget"),name:"left_panel/deluxe_widget/new"});case d.x.WSticky:return(0,h.jsx)(o.C,{className:c()(_,"highWidget"),name:"left_panel/canvas_list_/sticky/sticky_20"});case d.x.WTear:return(0,h.jsx)(o.C,{className:c()(_,"highWidget"),name:"left_panel/canvas_list_/sticky/tear_20"});case d.x.WElbow:return(0,h.jsx)(o.C,{className:c()(_,"highWidget"),name:"left_panel/canvas_list_/sticky/elbow_24"});case d.x.WSwimlane:{const{swimlaneType:S}=x;return(0,h.jsx)(o.C,{className:c()(_,"design-"+S+"-new"),name:"left_panel/"+S+"/new"})}case d.x.wFlowClosed:case d.x.WFlowOpened:{const{subType:S}=x;return(0,h.jsx)(o.C,{className:c()(_,"highWidget"),name:"left_panel/flow_"+S})}case d.x.WTree:return(0,h.jsx)(o.C,{className:c()(_,"highWidget"),name:"left_panel/tree"});case d.x.WCode:return(0,h.jsx)(o.C,{className:c()(_,"highWidget"),name:"left_panel/code"});case d.x.Canvas:{const S=x.asOverlay?"overlay":"rResCanvas";return(0,h.jsx)(o.C,{className:c()(_,"design-"+S+"-new"),name:"left_panel/"+S+"/new"})}default:{const S=u.G[g];return S?(0,C.X3)(g)?(0,h.jsx)(o.C,{className:c()(_,"design-"+S.svg_icon+"-new","highWidget"),name:"left_panel/deluxe_widget/new"}):S.svg_icon?(0,h.jsx)(o.C,{className:c()(_,"design-"+S.svg_icon+"-new"),name:"left_panel/"+S.svg_icon+"/new"}):S.icon_name==="text"?(0,h.jsx)(o.C,{className:c()(_,"design-"+S.icon_name),name:"left_panel/text/new"}):S.name==="ios_check"||S.name==="android_check"?(0,h.jsx)(o.C,{className:c()(_,'design-checkbox-new"'),name:"left_panel/checkbox/new"}):S.name==="android_radio"?(0,h.jsx)(o.C,{className:c()(_,"design-android_radio-new"),name:"left_panel/radio/new"}):S.icon_name==="battery"?(0,h.jsx)(o.C,{className:c()(_,"design-"+S.icon_name+"-new"),name:"left_panel/"+S.icon_name+"/new"}):S.name.includes("keyboard")?(0,h.jsx)(o.C,{className:c()(_,"design-keyboard-new"),name:"left_panel/keyboard/new"}):S.name.includes("switch")?(0,h.jsx)(o.C,{className:c()(_,"design-switch-new"),name:"left_panel/toggle/new"}):S.name==="nav_bar"?(0,h.jsx)(o.C,{className:c()(_,"design-nav-bar-new"),name:"left_panel/topbar/new"}):(0,h.jsx)("i",{className:c()("icon","icon-widget-"+(S.icon_name||""),_)}):null}}}),f=(0,n.memo)(s=>{let{cid:l,isMultiColorIcon:_,view_box:b,path:a,svgAttr:M}=s;const x=M&&M.fill?{fill:M.fill}:M&&M.stroke?{stroke:M.stroke}:{};return _&&l?(0,h.jsx)(I.F,{className:c()({"is-multi-color-icon":_}),cid:l,path:a,viewBox:b}):(0,h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:c()("icon","svg-icon-path-icon","fill"),viewBox:b,dangerouslySetInnerHTML:{__html:a},...x})}),p=i},46606:(He,ee,e)=>{"use strict";e.d(ee,{N:()=>r});var n=e(67787);const r=n.Ay.ol.withConfig({displayName:"style__StyledRadioLine",componentId:"sc-awuumb-0"})(["display:flex;justify-content:center;height:100%;align-items:center;background:",";color:",";overflow:hidden;text-align:center;border:",";&.radio-line{height:24px;}&.quick-radius{margin-bottom:0;li:first-child{border-right:",";}}.radio-option{flex:1;display:flex;width:100%;height:100%;justify-content:center;align-items:center;position:relative;cursor:pointer;&:not(.active):hover{background:",";border-radius:4px;}.radio-content{display:flex;justify-content:center;align-items:center;position:relative;}&.active{background:",";}.main{fill:#7d8694;}.secondary{fill:#c8cdd0;}&.disabled{color:",";background-color:#f7f7f7;cursor:not-allowed;svg{color:"," !important;}}}&.link-guesture-list{.radio-option:not(.active):hover{background:",";}}&.disabled{cursor:not-allowed;.radio-option{cursor:not-allowed;pointer-events:none;svg{color:"," !important;}}}&.is-free-disabled{.radio-option{pointer-events:auto;}}.image_view_flipH,.image_view_flipV{path:first-child{fill:",";}}"],c=>c.theme.color_bg_white,c=>c.theme.color_text_L2,c=>c.theme.color_bg_border_02,c=>c.theme.color_bg_border_02,c=>c.theme.color_btn_secondary_hover,c=>c.theme.color_btn_secondary_active,c=>c.theme.color_text_disabled01,c=>c.theme.color_text_disabled01,c=>c.theme.color_btn_secondary_hover,c=>c.theme.color_text_disabled01,c=>c.theme.color_text_L1)},46720:(He,ee,e)=>{"use strict";e.d(ee,{M:()=>o,w:()=>c});var n=e(26842),r=e(72214);const c=()=>{const I=document.getElementById("IBOT_MODAL_ROOT");if(I)return I;const u=document.createElement("div");return u.id="IBOT_MODAL_ROOT",u},o=(I,u)=>{switch(I.styleType){case"color":return(0,r.jsxs)(n.Xh,{children:[(0,r.jsx)("span",{className:"text",children:I.name}),(0,r.jsx)("span",{className:"text",children:u.hex.toLocaleUpperCase()+"\xA0\xA0"+u.alpha+"%"}),I.desc]});case"text":return(0,r.jsxs)(n.Xh,{children:[(0,r.jsxs)("div",{className:"wrap",children:[(0,r.jsx)("span",{className:"text",children:I.name}),(0,r.jsx)("span",{children:"\xA0\xA0"+I.fontSize+"/"+I.lineHeight})]}),I.desc]});case"muban":return(0,r.jsx)(n.Xh,{children:(0,r.jsx)("span",{className:"text",children:I.name})});default:return(0,r.jsxs)(n.Xh,{children:[(0,r.jsx)("span",{className:"text",children:I.name}),I.desc]})}}},46953:(He,ee,e)=>{"use strict";e.d(ee,{D5:()=>h,DE:()=>o,FF:()=>d,LK:()=>b,Zg:()=>I,_G:()=>_,hX:()=>u,iL:()=>l,tG:()=>i,zY:()=>c});var n=e(61967),r=e(39117);const c={[r.I.string]:"setting_panel/var/string",[r.I.number]:"setting_panel/var/number",[r.I.boolean]:"setting_panel/var/bool_false",boolean_false:"setting_panel/var/bool_false",boolean_true:"setting_panel/var/bool_true",unknown:"design/preferencePanel/nav/tips"},o=[{name:"number",svgIconName:c[r.I.number],className:"var-number",type:r.I.number},{name:"string",svgIconName:c[r.I.string],className:"var-string",type:r.I.string},{name:"boolean",svgIconName:c[r.I.boolean],className:"var-boolean",type:r.I.boolean}],I=(a,M,x)=>x||!a?c.unknown:a===r.I.boolean?c["boolean_"+M]:c[a],u=(a,M)=>{let x=1;if(!M)M=I18N.Variable.default.name||"var";else{const S=M.match(/(\d+)$/);S&&(x=Number(S[0])+1,M=M.replace(S[0],""))}const g=new RegExp("^"+M+"(\\d+)$");return a.forEach(S=>{const t=S.match(g),v=t?parseInt(t[1]):0;v>=x&&(x=v+1)}),""+M+x},d=a=>{for(let M=0;M<a.length;M++){let x=!1;const g=a.charCodeAt(M);if(M===0?x=g!==36&&(0,n.o6)(g):x=(0,n.WP)(g),!x)return!1}return!0},C=function(a,M){return M===void 0&&(M=sdkStore.findAllTypeUnder("B@var","rResVar")),M.some(x=>x.hotAttr.name===a)},h=(a,M)=>{if(a===r.I.boolean)return M!=null?M:!1;if(a===r.I.number){let x=Number(M!=null?M:0);return Number.isNaN(x)&&(x=0),x}return a===r.I.string?M||I18N.Variable.default.string:""},i=(a,M)=>{if(!a)return;const x=M.querySelector("[data-cid="+a+"]");x&&x.scrollIntoView(!1)},f=240,p={left:-999,top:-999},s=a=>a==="string"?176:144,l=(a,M)=>{if(!a)return p;const x=M.querySelector("[data-cid="+a.key+"]");if(x){let g=x.getBoundingClientRect();const S=M.getBoundingClientRect();g.top<S.top&&(x.scrollIntoView(!1),g=x.getBoundingClientRect());const v=s(a.hotAttr.varDataType);let w=g.top;const k=window.innerHeight-w-v-8;return k<0&&(w=w+k),{top:w,left:S.left-f}}return p},_=(a,M)=>{const{top:x,left:g}=a.getBoundingClientRect(),S=x+50,t=s(M)+44,v=S+t,w=g-f;return v>window.innerHeight?{left:w,top:x+42-t}:{left:w,top:S}},b=(a,M,x)=>{let g=""+M;return a===r.I.string&&(g=g.replace(/\n/g,"\\n"),x&&(g='"'+g+'"')),g}},47266:(He,ee,e)=>{"use strict";e.d(ee,{s:()=>i,v:()=>h});var n=e(79287),r=e.n(n),c=e(15515),o=e(87512),I=e(85449),u=e(17573);const d="last_open_export_menu_with_wm_date",C="2000-01-01",h=()=>{if(!(0,u._5)())return!0;const f=(0,I.fV)();if(!f)return!1;const{mdWMMktList:p,mtWMMktList:s}=f;if(p.size||s.size){const l=(0,c.Yt)(d,C,c.qW.String);return r()().isSame(l,"day")?!0:((0,c.a0)(d,r()().format("YYYY-MM-DD"),c.qW.String),!1)}return!0},i=f=>{if(!(0,u._5)())return!0;const p=(0,I.fV)();if(!p)return!1;const{noWMMktList:s}=p;if(f.every(_=>(0,o.bB)(_.hotAttr.mktCid,{noWMMktList:s})))return!0;const l=(0,c.Yt)(d,C,c.qW.String);return r()().isSame(l,"day")?!0:((0,c.a0)(d,r()().format("YYYY-MM-DD"),c.qW.String),!1)}},47437:(He,ee,e)=>{"use strict";e.d(ee,{$7:()=>S,$r:()=>h,Am:()=>t,CH:()=>c,Ei:()=>l,I4:()=>i,Ip:()=>b,LZ:()=>n,NX:()=>w,VU:()=>s,pL:()=>v,s5:()=>k,sP:()=>W,uB:()=>p,zS:()=>_});const n=K=>{let{flpakKey:G,needDat:$,needCmt:P,needCur:E}=K;const H=($?4:0)+(P?2:0)+(E?1:0);return!G||!H?"":G+"!"+H.toString(8)},r=K=>{const[G,$]=(K||"").split("!"),P=parseInt($,8)||0;return!G||!P?void 0:{flpakKey:G,needDat:!!(P&4),needCmt:!!(P&2),needCur:!!(P&1)}},c="-",o="P2e",I="P2eu",u="P2eo",d="P2v",C="P2vd",h="/flat-ws",i="/",f="[DROP|client]",p="[DROP|client|no-retry]",s="@drop-client",l="@error",_="@ready",b=">time",a=">close",M=">DBG-long",x=">DBG-error",g="<DBG",S="<r-cur",t=">r-skt",v=">cur",w="<cur",k=">save",W="<save"},47617:(He,ee,e)=>{"use strict";e.d(ee,{jl:()=>C,rQ:()=>I,tb:()=>d,v:()=>h,vU:()=>u});var n=e(39138),r=e(65609),c=e(51582),o=e(72214);const I=i=>{let{title:f,type:p}=i;return f===null?null:(0,o.jsx)(n.h9,{className:"header",type:p,children:f})},u={type:"linear",className:"cancel-btn",disabled:!1,children:"\u53D6\u6D88"},d={type:"primary",className:"confirm-btn",disabled:!1,children:"\u786E\u8BA4"},C=i=>{let{footer:f,onCancel:p,onConfirm:s,renderFooterSide:l,cancelBtnProps:_,confirmBtnProps:b}=i;if(f===null)return null;const a={...u,..._},M={...d,...b};return(0,o.jsx)(n.Tb,{children:f||(0,o.jsxs)(o.Fragment,{children:[l&&l(),p&&(0,o.jsx)(r.A,{...a}),s&&(0,o.jsx)(r.A,{...M})]})})},h=i=>{let{canClose:f,closeIcon:p,onClick:s}=i;return f?(0,o.jsx)(n.xP,{className:"close-btn",onClick:s,children:p||(0,o.jsx)(c.A,{name:"general/modal/times",label:"Close the Modal"})}):null}},47695:(He,ee,e)=>{"use strict";e.d(ee,{rB:()=>l,jo:()=>_,cz:()=>b,Ge:()=>f,XM:()=>p,yX:()=>s});var n=e(79287),r=e.n(n),c=e(91110),o=e(38462);const I=()=>{var a,M;if(f())return{};if(!((a=MB)!=null&&(a=a.commonGuideHelper)!=null&&(a=a.getState())!=null&&a.commonGuidesHasShown))return{};const g=((M=MB)==null||(M=M.commonGuideHelper)==null||(M=M.getState())==null?void 0:M.commonGuidesHasShown)||[],S=o.E.every(W=>W&&g.includes(W));if(S)return{isCompleted:S};const t=o.E.slice().reverse().findIndex(W=>g.includes(W)),v=t===-1?-1:o.E.length-1-t,w=o.E[v],k=o.E[v+1];return{isToShow:!0,lastShownGuideIndex:v,lastShownGuideType:w,nextShownGuideType:k}},u=()=>{const a=I();!a||!a.isToShow||(a!=null&&a.nextShownGuideType&&MB.commonGuideHelper.tryToShowGuide(a.nextShownGuideType),c.Y.showNewGuideTrack())};var d=e(29187);const C="2023-01-04",h="2024-08-22",i=()=>{var a;return dayjs((a=MB.user)==null?void 0:a.created_at).isAfter(dayjs(C))},f=()=>{var a;return r()((a=MB.user)==null?void 0:a.created_at).isAfter(r()(C))},p=()=>{var a;return r()((a=MB.user)==null?void 0:a.created_at).isAfter(r()(h))},s=()=>f()?(0,d.jN)():I(),l=a=>{f()?(0,d.Gq)():u()},_=()=>{var a;return(0,d.rw)()?!0:(typeof((a=MB)==null||(a=a.commonGuideHelper)==null?void 0:a.checkGuideHasShown)!="function",!1)},b=()=>!1},47892:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>j});var n=e(38502),r=e(53732),c=e.n(r),o=e(95549),I=e(69368),u=e(25234),d=e(17307),C=e(61068),h=e(74302),i=e(67787);const f=40,p=i.Ay.footer.withConfig({displayName:"styles__StyledWidgetExport",componentId:"sc-1o3cpyy-0"})(["position:relative;display:flex;flex-direction:column;align-items:flex-start;height:1px;transition:all 0.2s ease-in-out;overflow:hidden;&.is-open{height:auto;border-top:none;box-shadow:",";background-color:",";}.export-panel{width:100%;height:auto;display:flex;flex-direction:column;align-items:stretch;.export-header{display:flex;justify-content:space-between;align-items:center;height:40px;padding:0 10px 0px 16px;border-bottom:1px solid ",";&.is-misc-opened{&:lang(en){height:auto;padding:10px 10px 10px 16px;align-items:flex-start;.check{align-items:flex-start;}}}.label{color:",";font-weight:600;align-self:center;}.check{margin-left:-6px;input,.Check-state{margin:6px;}.Check-label{margin-left:4px;}}}.svg-icon-wrapper{color:",";width:24px;height:24px;cursor:pointer;text-align:center;border-radius:4px;&.is-disabled{cursor:not-allowed;color:",";}&:not(.is-disabled):hover{background-color:",";}&:not(.is-disabled).active{background-color:",";}svg{width:24px;height:24px;}&:nth-child(2){margin-left:auto;}}.export-settings{display:flex;flex-direction:column;padding:8px 10px 0px;.export-state{display:flex;align-items:center;height:28px;margin-bottom:4px;label{width:212px;height:28px;}}.is-multi-select-includes-panel-tip{background-color:rgba(22,132,252,0.1);width:202px;height:28px;color:",";align-self:center;border-radius:2px;line-height:28px;text-align:center;margin-top:3px;margin-bottom:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:0 7px;}.select-label{height:26px;display:flex;justify-content:space-between;padding-right:32px;span{padding-left:7px;color:",";&.ratio{margin-left:0px;width:51px;}&.affix{width:64px;}&.format{width:65px;}}}.export-second{display:flex;justify-content:space-between;flex-direction:column;& > div.select{height:32px;display:flex;align-items:center;justify-content:space-between;position:relative;padding-right:32px;.WorkspaceSelect.export-select{width:100%;}button:disabled{color:#c8cdd0;cursor:not-allowed;}.ratio{width:51px;}.affix{width:64px;}.format{width:65px;input{color:",";background-color:",";border:none;}}.remove{position:absolute;right:0;}& > label{width:100%;height:28px;border-radius:4px;}& > span{color:",";line-height:20px;}}}}}"],F=>F.theme.export_bar_box_shadow,F=>F.theme.color_bg_white,F=>F.theme.color_btn_secondary_active,F=>F.theme.color_text_L1,F=>F.theme.color_text_L1,F=>F.theme.color_text_disabled01,F=>F.theme.color_btn_secondary_hover,F=>F.theme.color_btn_secondary_active,F=>F.theme.color_proto,F=>F.theme.color_text_L3,F=>F.theme.color_text_disabled01,F=>F.theme.color_bg_white,F=>F.theme.color_text_L3),s=i.Ay.div.withConfig({displayName:"styles__StyledExportButton",componentId:"sc-1o3cpyy-1"})(["width:100%;height:","px;background:",";padding:0 10px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;z-index:1;border-top:",";.button-root{width:100%;.btn-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}.svg-icon.btn-loading{animation:spinning 2s linear infinite;}.converted-pixso{&.button-root{.btn-text{display:flex;align-items:center;}}.beta{width:31px !important;height:14px !important;margin-left:4px;}}&.has-converted-pixso{height:","px;}"],f,F=>F.theme.color_bg_white,F=>F.isOpen?"none":"1px solid "+F.theme.color_bg_border_01,f+28+8),l=(0,i.DU)(["#IBOT_SELECT_MENU_ROOT{.SelectMenuPortal{.WorkspaceSelectMenu.export-select-menu.is-open{width:90px;}.select-format-menu{right:0;}}}"]);var _=e(83199),b=e(23089);const a=[{label:"1x",value:"1"},{label:"2x",value:"2"},{label:"3x",value:"3"}],M=[{label:"1x",value:"1"},{label:"2x",value:"2"}],x=["prefix","suffix"],g=a.map(F=>F.value),S=M.map(F=>F.value),t=(F,Y,X,z)=>F.reduce((Z,J)=>!Y&&J.format===h.xk.GIF?(z||Z.push({...J,format:h.xk.PNG}),Z):!X&&J.format===h.xk.SVG?(z||Z.push({...J,format:h.xk.PNG}),Z):(Z.push(J),Z),[]),v=(F,Y)=>F.filter(X=>X.format===Y).map(X=>X.scale);var w=e(72214);const k=F=>{let{id:Y,config:X,isSelectSvgIconsOnly:z,isSelectGifOnly:Z,isRemoveButtonDisabled:J,availablePNGScale:te,availablePDFScale:ge,isFreePlan:pe,handleRemoveConfig:Ce,onChange:me}=F;const{format:be,scale:ie,affix:oe}=X,he=(0,n.useCallback)(()=>{Ce==null||Ce(Y)},[Ce,Y]),ce=(0,n.useCallback)((Me,Ie)=>{me==null||me({...X,[Ie]:Me},Y)},[X,Y,me]),re=(0,n.useMemo)(()=>x.map(Me=>({label:I18N.WidgetExport[Me],value:Me})),[]),fe=(0,n.useMemo)(()=>{const Me=be===h.xk.PDF?M:a,Ie=be===h.xk.PDF?ge:te;return Me.map(de=>{if(!Ie.includes(de.value)){const xe=de.value!==ie;return{...de,isDisabled:xe,tooltipWrapper:pe?W:void 0}}return{...de,isDisabled:!1}})},[be,ie,te,ge,pe]),Se=(0,n.useMemo)(()=>[{label:"PNG",value:h.xk.PNG,isDisabled:be===h.xk.PNG?!1:te.length<=0||!te.includes(ie)},...z?[{label:"SVG",value:h.xk.SVG,isDisabled:be===h.xk.SVG?!1:ie!=="1"}]:Z?[{label:"GIF",value:h.xk.GIF,isDisabled:be===h.xk.GIF?!1:ie!=="1"}]:[],{label:"PDF",value:h.xk.PDF,isDisabled:be===h.xk.PDF?!1:ge.length<=0||!ge.includes(ie)}],[be,ie,z,Z,te,ge]);return(0,w.jsxs)("div",{className:"select",children:[(0,w.jsx)("div",{className:"ratio",children:(0,w.jsx)(b.mq,{isDisabled:be===h.xk.SVG||be===h.xk.GIF,className:"select export-select",menuClassName:"export-select-menu",value:ie,optionList:fe,onChange:Me=>ce(Me,"scale")})}),(0,w.jsx)("div",{className:"affix",children:(0,w.jsx)(b.mq,{isDisabled:be===h.xk.SVG||be===h.xk.GIF,className:"affix-select export-select",menuClassName:"export-select-menu",value:oe,optionList:re,onChange:Me=>ce(Me,"affix")})}),(0,w.jsx)("div",{className:"format",children:(0,w.jsx)(b.mq,{isDisabled:!1,className:"select export-select",menuClassName:"export-select-menu select-format-menu",value:be,optionList:Se,onChange:Me=>ce(Me,"format")})}),(0,w.jsx)("div",{className:(0,I.Hn)(["svg-icon-wrapper","remove",J&&"is-disabled"]),children:(0,w.jsx)(d.C,{className:"remove",name:"common/subtract",isDisabled:J,onClick:he})}),(0,w.jsx)(l,{})]})},W=F=>(0,w.jsx)(_.A,{content:I18N.ExportManager.export_watermark_tip,maxWidth:100,direction:"right",children:F}),K=n.memo(k);var G=e(70812);class $ extends n.PureComponent{constructor(Y){super(Y),(0,o.A)(this,"handleClick",()=>{var re,fe;const{onCheck:Se,isWidgetBeingExported:Me,exportItem:Ie}=this.props;if(Se&&Se()||Me)return;const{configs:de,isWithDeviceFrame:xe}=this.state;Ie(de.map(Le=>({...Le,isWithDeviceFrame:xe}))),de!=null&&de.length&&G.U4.protoDownloadTrack((re=MB)==null||(re=re.user)==null?void 0:re.id,(fe=de[0])==null?void 0:fe.format,"\u53F3\u4E0B\u89D2\u5C5E\u6027\u9762\u677F")}),(0,o.A)(this,"handleChangeConfig",(re,fe)=>{const{updateExportSettings:Se,isFreePlan:Me}=this.props;this.setState(Ie=>{const de=Array.from(Ie.configs),xe=de[fe].format===h.xk.SVG&&de[fe].format!==re.format,Le=de[fe].format===h.xk.GIF&&de[fe].format!==re.format;de.splice(fe,1,re);const ve=v(de,h.xk.PNG),je=v(de,h.xk.PDF),We=re.format===h.xk.PNG&&de[fe].format!==re.format?[...Ie.availablePNGScale,re.scale]:g.filter(we=>!ve.includes(we)).filter(we=>Me?we==="1":!0),Ae=re.format===h.xk.PDF&&de[fe].format!==re.format?[...Ie.availablePDFScale,re.scale]:S.filter(we=>!je.includes(we)).filter(we=>Me?we==="1":!0);return Se(de,Ie.isWithDeviceFrame),{configs:de,availablePNGScale:We,availablePDFScale:Ae,isSvgOptionAvailable:xe,isGifOptionAvailable:Le}})}),(0,o.A)(this,"handleInsertConfig",()=>{const{isSelectSvgIconsOnly:re,isSelectGifOnly:fe,updateExportSettings:Se}=this.props,{availablePNGScale:Me,availablePDFScale:Ie,isSvgOptionAvailable:de,isGifOptionAvailable:xe}=this.state;Me.length<=0&&Ie.length<=0&&(re&&!de||fe&&!xe)||this.setState(Le=>{const ve=Array.from(Le.configs),je=v(ve,h.xk.PNG),We=v(ve,h.xk.PDF),Ae=g.filter(Fe=>!je.includes(Fe)),we=S.filter(Fe=>!We.includes(Fe)),_e=Ae.length,Te=we.length,Ye=Le.configs.concat(_e?[{scale:Ae.shift(),affix:"suffix",format:h.xk.PNG}]:Te?[{scale:we.shift(),affix:"suffix",format:h.xk.PDF}]:de||xe?[{scale:"1",affix:"suffix",format:de?h.xk.SVG:h.xk.GIF}]:[]);return Se(Ye,Le.isWithDeviceFrame),{configs:Ye,availablePNGScale:Ae,availablePDFScale:we,isSvgOptionAvailable:re&&Ye.filter(Fe=>Fe.format===h.xk.SVG).length<1,isGifOptionAvailable:fe&&Ye.filter(Fe=>Fe.format===h.xk.GIF).length<1}})}),(0,o.A)(this,"handleRemoveConfig",re=>{const{isSelectSvgIconsOnly:fe,isSelectGifOnly:Se,updateExportSettings:Me}=this.props,{configs:Ie}=this.state;Ie.length<=1||this.setState(de=>{const xe=Array.from(de.configs);xe.splice(re,1);const Le=v(xe,h.xk.PNG),ve=v(xe,h.xk.PDF),je=g.filter(_e=>!Le.includes(_e)),We=S.filter(_e=>!ve.includes(_e)),Ae=fe&&!xe.find(_e=>_e.format===h.xk.SVG),we=Se&&!xe.find(_e=>_e.format===h.xk.GIF);return Me(xe,de.isWithDeviceFrame),{configs:xe,availablePNGScale:je,availablePDFScale:We,isSvgOptionAvailable:Ae,isGifOptionAvailable:we}})}),(0,o.A)(this,"onShowTipsByTarget",(re,fe)=>{const Se=fe.querySelector(".is-multi-select-includes-panel-tip");return Se.offsetWidth<Se.scrollWidth}),(0,o.A)(this,"handleClose",()=>{const{setIsOpen:re,setIsExportOpenFromContainer:fe,updateExportSettings:Se}=this.props,{configs:Me,isWithDeviceFrame:Ie}=this.state;re(!1),fe&&fe(!1),Se(Me,Ie)}),(0,o.A)(this,"handleIsWithDeviceFrameChecked",re=>{const{updateExportSettings:fe}=this.props,{configs:Se}=this.state;this.setState({isWithDeviceFrame:re}),fe(Se,re)});const{isSelectSvgIconsOnly:X,isSelectGifOnly:z,exportSettings:Z,isFreePlan:J,exportWithDeviceFrame:te}=Y,ge=[X?{format:h.xk.SVG,scale:"1",affix:"suffix"}:z?{format:h.xk.GIF,scale:"1",affix:"suffix"}:{format:h.xk.PNG,scale:"1",affix:"suffix"}],pe=Z!=null&&Z.length?Z.some(re=>re.format===h.xk.PNG&&re.scale==="1"):!0,Ce=Z!=null&&Z.length?t(Z,z,X,pe):ge,me=v(Ce,h.xk.PNG),be=v(Ce,h.xk.PDF),ie=g.filter(re=>!me.includes(re)).filter(re=>J?re==="1":!0),oe=S.filter(re=>!be.includes(re)).filter(re=>J?re==="1":!0),he=X&&!Ce.some(re=>re.format===h.xk.SVG),ce=z&&!Ce.some(re=>re.format===h.xk.GIF);this.state={isMiscOpened:!1,isWithDeviceFrame:te!=null?te:!1,configs:Ce,availablePNGScale:ie,availablePDFScale:oe,isSvgOptionAvailable:he,isGifOptionAvailable:ce}}componentDidUpdate(Y,X){const{exportSettings:z,isSelectGifOnly:Z,isSelectSvgIconsOnly:J,updateExportSettings:te}=this.props;let ge=this.state.configs,pe=!1,Ce=this.state.isSvgOptionAvailable,me=this.state.isGifOptionAvailable;const be=z!=null&&z.length?z.some(ie=>ie.format===h.xk.PNG&&ie.scale==="1"):!0;(Y.isSelectGifOnly!==Z||Y.isSelectSvgIconsOnly!==J)&&((!Z||!J)&&(ge=t(ge,Z,J,be),pe=!0),Z&&(me=!ge.some(ie=>ie.format===h.xk.GIF),pe=!0),J&&(Ce=!ge.some(ie=>ie.format===h.xk.SVG),pe=!0)),pe&&(ge.length||ge.push({format:h.xk.PNG,scale:"1",affix:"suffix"}),this.setState({configs:ge,isGifOptionAvailable:me,isSvgOptionAvailable:Ce}),te(ge,this.state.isWithDeviceFrame))}render(){const{isWidgetBeingExported:Y,selectedWidgetsCount:X,isSelectSvgIconsOnly:z,isSelectGifOnly:Z,widgetDisplayName:J,isFreePlan:te}=this.props;if(!X)return null;const{configs:ge,isMiscOpened:pe,isWithDeviceFrame:Ce,availablePNGScale:me,availablePDFScale:be,isSvgOptionAvailable:ie,isGifOptionAvailable:oe}=this.state,re=me.length>0||be.length>0||(Z||z?ie||oe:!1);return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(p,{className:c()({"is-open":!0}),children:(0,w.jsxs)("div",{className:c()("export-panel",{"is-open":!0}),children:[(0,w.jsx)("div",{className:c()("export-header",{"is-misc-opened":pe}),children:pe?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(C.A,{className:"check",label:I18N.WidgetExport.show_device_frame_when_exporting_pages,isChecked:Ce,onChange:this.handleIsWithDeviceFrameChecked}),(0,w.jsx)("div",{className:"svg-icon-wrapper close",children:(0,w.jsx)(d.C,{name:"common/close",onClick:()=>this.setState({isMiscOpened:!1})})})]}):(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("label",{className:"label",children:I18N.WidgetExport.export}),(0,w.jsx)("div",{className:"svg-icon-wrapper",children:(0,w.jsx)(d.C,{name:"common/misc",onClick:()=>this.setState({isMiscOpened:!0})})}),(0,w.jsx)("div",{className:"svg-icon-wrapper caret",children:(0,w.jsx)(d.C,{name:"common/expand/plus",onClick:this.handleClose})}),(0,w.jsx)("div",{className:(0,I.Hn)(["svg-icon-wrapper","add",!re&&"is-disabled"]),children:(0,w.jsx)(d.C,{name:"common/add",onClick:this.handleInsertConfig})})]})}),(0,w.jsx)("div",{className:"export-settings",children:(0,w.jsxs)("div",{className:"export-second",children:[ge.map((fe,Se)=>(0,w.jsx)(K,{id:Se,config:fe,availablePNGScale:me,availablePDFScale:be,isSelectSvgIconsOnly:z,isSelectGifOnly:Z,isRemoveButtonDisabled:ge.length<=1,handleRemoveConfig:this.handleRemoveConfig,onChange:this.handleChangeConfig,isFreePlan:te},Se)),(0,w.jsxs)("div",{className:"select-label",children:[(0,w.jsx)("span",{className:"ratio",children:I18N.WidgetExport.times}),(0,w.jsx)("span",{className:"affix",children:I18N.WidgetExport.prefix_suffix}),(0,w.jsx)("span",{className:"format",children:I18N.WidgetExport.format})]})]})})]})}),(0,w.jsx)(s,{isOpen:!0,children:(0,w.jsx)(u.lV,{isLoading:Y,onClick:this.handleClick,corner:"smooth",children:X>1?z?""+I18N.WidgetExport.export_selected_icons.replace("%selectedIconCount%",X):J+"\uFF08"+X+"\uFF09":""+I18N.WidgetExport.export+J})})]})}}var P=e(65541),E=e(73658),H=e(20089),O=e(61790),V=e(47266),Q=e(25306),N=e(27845),L=e(53559),U=e(70248),A=e(34860);const D=()=>MB.global.experienceLoginModalHelper("isSave"),j=F=>{var Y,X;let{isExportAllAIComponent:z,isWidgetBeingExported:Z,isHtmlZipPreview:J,isExportOpenFromContainer:te,setIsExportOpenFromContainer:ge,updateExportSettings:pe,isST:Ce,currentScreen:me,exportItem:be,newSelection:ie,currentUser:oe,currentOrg:he,currentProject:ce}=F;const[re,fe]=(0,n.useState)(!1),Se=(0,n.useMemo)(()=>ie.length>0?ie.map(Ye=>sdkStore.getHotItem(Ye)):[],[ie]),Me=me==null?void 0:me.cid,Ie=(0,n.useMemo)(()=>Ce&&Se.length===0,[Ce,Se.length]),de=(0,n.useMemo)(()=>Ie&&Me?(0,E.UR)(Me).map(Ye=>({...Ye,cid:Ye.key})):Se,[Me,Ie,Se]),xe=(0,n.useMemo)(()=>de.every(Ye=>{let{hotAttr:Fe}=Ye;return Fe.type===H.x.WIcon}),[de]),ve=(0,n.useMemo)(()=>{const Ye=de[0];return de.length===1&&(Ye==null?void 0:Ye.hotAttr.type)===H.x.Canvas&&!(0,U.OO)(Ye==null?void 0:Ye.key)},[de])&&!re&&!ENV.IS_ON_PREMISES&&((0,A.OB)()||MB.canEditByCurrentUser),je=(0,n.useMemo)(()=>{const Ye=[];return!de.some(Ve=>{if((Ve==null?void 0:Ve.hotAttr.type)!==H.x.WImage)return!0;{var rt;const Ue=Ve.hotAttr.image;if(!Ue)return!0;const et=(rt=sdkStore.getHotItem(Ue.imageRef))==null?void 0:rt.hotAttr.extData;return et&&et.toLowerCase().endsWith(".gif")?(Ye.push(et),!1):!0}})},[de]),We=re||te&&(oe==null?void 0:oe.id),Ae=(0,n.useMemo)(()=>{var Ye,Fe,Ve,rt;if(!We)return"";let Ue=I18N.Note.selected_notes;if(de.length>1&&!Ie){let et=0,lt=0;de.forEach(Je=>{var Xe;((Xe=Je.hotAttr)==null?void 0:Xe.type)===H.x.Canvas?et+=1:lt+=1}),et===de.length?Ue=I18N.SettingPanel.multi_select_artboards:lt===de.length?Ue=I18N.SettingPanel.multi_select:Ue=I18N.SettingPanel.multi_select_artboards_widgets}return Se.length>0?de.length>1?Ue:((Ye=de[0].hotAttr)==null?void 0:Ye.type)===H.x.WRichText?(0,O.rs)(de[0]):H.Q.ST_MODE_WIDGET_NAMES.includes((Fe=de[0].hotAttr)==null?void 0:Fe.type)?I18N.Note.note+((Ve=de[0])==null||(Ve=Ve.hotAttr)==null?void 0:Ve.order):(rt=de[0])==null||(rt=rt.hotAttr)==null?void 0:rt.name:Ie?Ue:""},[de,Ie,Se.length,We]),{isFree:we}=(0,n.useMemo)(()=>{if(!oe)return{isFree:!0};if(ce!=null&&ce.is_org_project&&he){const{plan:Ye}=(0,L.rM)(he);return{isFree:[N.Sj.OrgExpired,N.Sj.OrgFree].includes(Ye)}}else return{isFree:Q.tz.InitialUser(oe).planSdk.prototypePlan.getUserPlan()===N.L1.Free}},[he,ce==null?void 0:ce.is_org_project,oe]);if(de.length===0||J||z)return null;const _e=()=>{if(MB.global.experienceLoginModalHelper("isSave")||!(oe!=null&&oe.id)){MB.global.popupHelper.loginAsync({onConfirm:()=>{setTimeout(()=>location.reload(),50)},type:"signin",source:"proto-inspect"});return}if(!(0,V.s)(de)){MB.action("modal:update:state",{mktWMExportModal:{isOpen:!0,onExport:()=>{fe(!0)}}}),G.U4.watermarkExposureTrack("export");return}fe(!0)},Te=()=>{if(MB.global.experienceLoginModalHelper("isSave")||!(oe!=null&&oe.id)){MB.global.popupHelper.loginAsync({onConfirm:()=>{setTimeout(()=>location.reload(),50)},type:"signin",source:"proto-inspect"});return}MB.action("modal:update:state",{canvasConvertedToPixsoModal:{isOpen:!0,from:"rightPanel"}})};return re||te&&oe!=null&&oe.id?(0,w.jsx)($,{isSelectSvgIconsOnly:xe,isWidgetBeingExported:Z,onCheck:D,setIsOpen:fe,widgetDisplayName:Ae,selectedWidgetsCount:de.length,exportSettings:ce==null||(Y=ce.attr)==null?void 0:Y.export_settings,exportWithDeviceFrame:ce==null||(X=ce.attr)==null?void 0:X.export_with_device_frame,isSelectGifOnly:je,setIsExportOpenFromContainer:ge,isFreePlan:we,updateExportSettings:pe,exportItem:be}):(0,w.jsxs)(s,{className:c()({"has-converted-pixso":ve}),isOpen:re,children:[ve&&(0,w.jsxs)(u.lV,{corner:"smooth",className:"converted-pixso",onClick:Te,children:[I18N.ContextMenu.converted_pixso,(0,w.jsx)(P.A,{className:"beta"})]}),(0,w.jsx)(u.lV,{isLoading:Z,onClick:_e,corner:"smooth",children:oe!=null&&oe.id?I18N.WidgetExport.export:I18N.WidgetExport.export_after_login})]})}},48028:(He,ee,e)=>{"use strict";e.d(ee,{Yt:()=>d,a0:()=>C,qW:()=>u});const r=function(){const h={getItem(){return null},setItem(){},removeItem(){},clear(){}};return function(){try{return window.localStorage.setItem("localStorage",String(1)),window.localStorage.removeItem("localStorage"),!0}catch(f){return!1}}()?window.localStorage:h}(),c=h=>r.getItem(h),o=(h,i)=>r.setItem(h,i),I=h=>r.removeItem(h),u={String:1,Number:2,Boolean:3,Object:4,Array:5},d=(h,i,f)=>{const p=r.getItem(h);if(p===null)return i;switch(f){case u.String:return p;case u.Number:return Number(p);case u.Boolean:return JSON.parse(p);case u.Object:return JSON.parse(p);case u.Array:return JSON.parse(p)}},C=(h,i,f)=>{switch(f){case u.String:return r.setItem(h,String(i));case u.Number:return r.setItem(h,String(Number(i)));case u.Boolean:return r.setItem(h,JSON.stringify(i));case u.Object:return r.setItem(h,JSON.stringify(i));case u.Array:return r.setItem(h,JSON.stringify(i))}}},48260:(He,ee,e)=>{"use strict";e.d(ee,{C0:()=>d,CO:()=>I,O0:()=>C,wy:()=>u});var n=e(67787),r=e(97974),c=e(82535),o=e(86964);const I=(0,n.DU)([".new-model-portal{overflow:hidden;.ModalMask{visibility:hidden;}&.ModalPortal{z-index:1051;}.Modal{background-color:",";color:",";&.workspace-modal{margin-top:-50px;visibility:visible;box-shadow:",";}}.workspace-modal-mask{z-index:1;position:fixed;height:100%;width:100%;top:0;left:0;}.FunctionalModal{&.library-transfer-modal{margin-top:-50px;}}}.library-model-portal{&.ModalPortal{z-index:1051;}.workspace-modal{&::after{display:none;}}}#IBOT_SELECT_MENU_ROOT{.SelectMenu{color:#fff;background-color:#333;padding:8px 0;border:1px solid ",";&::-webkit-scrollbar-thumb{background-color:#7f7f7f;}&::-webkit-scrollbar-track{background-color:transparent;}.SelectOption{&.is-active{color:#fff;background-color:#666;}&:not(.is-active):hover{background-color:#666;color:#fff;}}}}#IBOT_MODAL_ROOT{.new-model-portal{.workspace-modal{width:480px;}}}"],h=>h.theme.color_bg_white,h=>h.theme.color_text_L2,h=>h.theme.modal_shadow,o.fm.color_bg_border_02.value_dark),u=(0,n.AH)([".header{border-bottom:1px solid ",";color:",";background-color:",";}.close-btn{color:",";&:hover{color:",";}&:active{color:",";}}"],h=>h.theme.color_bg_border_02,h=>h.theme.color_text_L1,h=>h.theme.color_bg_white,h=>h.theme.color_text_L2,h=>h.theme.color_text_L1,h=>h.theme.color_text_L1),d=(0,n.AH)([".button-root{","}"],r.in),C=(0,n.Ay)(c.FO).withConfig({displayName:"styles__StyledWorkspaceModal",componentId:"sc-c2h429-0"})(["&.workspace-modal{border-radius:10px;z-index:2;overflow:hidden;border:",";box-shadow:0 3px 6px rgba(0,0,0,0.02),0 6px 16px rgba(0,0,0,0.02),0 9px 28px rgba(0,0,0,0.09);background-color:",";&.top-modal{top:",";border-radius:0 0 10px 10px;}",";.content{color:",";background-color:",";font-weight:400;p{color:",";}}footer{background:",";.button-root{","}}.modal-content{.modal-title{font-size:16px;color:",";line-height:24px;margin-bottom:24px;font-weight:500;border-bottom:1px solid ",";}.span-box{display:inline-flex;.del-screen-folder-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:12em;display:inline-block;}}}.Select{width:180px;&.is-open:not(.unstyled){background-color:",";box-shadow:none;}.Ellipsis{display:inherit;}}.Select,.Input input{background-color:",";border-color:",";color:",";border-radius:6px;&:enabled:not([readonly]):focus{background-color:",";box-shadow:none;border-color:",";}&::placeholder{color:",";}}.content{footer{padding:0px 20px 24px 20px;background-color:"," !important;border-color:",";border-radius:0 0 10px 10px;border-top:none;.footer-actions{width:166px;.Input{width:128px;input{border-color:",";border-radius:6px;}}}}}}"],h=>h.theme.border_modal,h=>h.theme.color_bg_white,h=>h.theme.color_proto===o.fm.color_proto.value_dark?"48px":"49px",u,h=>h.theme.color_text_L1,h=>h.theme.color_bg_white,h=>h.theme.color_text_L1,h=>h.theme.color_bg_white,r.in,h=>h.theme.color_text_L1,h=>h.theme.color_bg_border_02,h=>h.theme.color_bg_white,h=>h.theme.color_bg_white,h=>h.theme.color_border_state,h=>h.theme.color_text_L2,h=>h.theme.color_bg_white,h=>h.theme.color_proto,h=>h.theme.color_text_L3,h=>h.theme.color_bg_white,h=>h.theme.color_btn_secondary_active,h=>h.theme.color_border_state)},48790:(He,ee,e)=>{"use strict";if(e.d(ee,{Ci:()=>o,He:()=>h,QD:()=>u,gT:()=>I}),e.j!=477)var n=e(3862);var r=e(20089),c=e(54190);const o=async i=>{const f=new Map,p=new Map;if(i){const{market_template:l,project_metas:_}=i,b=l.category===n.C,a=l.category===n.t_;if(!b){var s;const M=(s=_[0])==null?void 0:s.cid,x=await(0,c.vs)(M),g=C(x,a),S=d(l,M,g);f.set(l.cid,S),p.set(l.cid,{projectMetaList:_})}}return{marketTemplateItemListMap:f,marketTemplateListDataMap:p}},I=(i,f)=>{const{project_metas:p,keys:s}=i;let l=[];if(s!=null&&s.length&&p!=null&&p.length&&f){const{cid:_}=p[0],b=Object.values(f[_]);l=d(i,_,b)}return l},u=function(i,f,p){p===void 0&&(p=[]);const s=C(p);return d(i,f,s)},d=function(i,f,p){var s;if(p===void 0&&(p=[]),!i||!f||!p||((s=p)==null?void 0:s.length)<1)return[];const{category:l,policy:_}=i,b=[];return p.forEach(a=>{if(a){const[M,x,g]=a;((g==null?void 0:g.bunch)===r.x.RbPage?!(g!=null&&g.asFolder):!0)&&b.push({key:M,sup:x,hotAttr:g,category:l,policy:_,type:l,projectMetaCid:f,marketTemplateSource:i})}}),b},C=function(i,f){var p;return i===void 0&&(i=[]),f===void 0&&(f=!1),(p=i)!=null&&p.length?f?i.filter(s=>{var l;return((l=s[(s==null?void 0:s.length)-1])==null?void 0:l.bunch)===r.x.RbPage}):i.filter(s=>{var l;return((l=s[(s==null?void 0:s.length)-1])==null?void 0:l.type)===r.x.Canvas}):[]},h=function(i,f){if(f===void 0&&(f=2),!i||(i==null?void 0:i.length)<1)return[];if(!Number.isInteger(f)||f<2)return[i];const p=new Map([...Array.from(new Array(f)).map((l,_)=>[_,[]])]),s=new Map([...Array.from(new Array(f)).map((l,_)=>[_,0])]);try{for(let l of i){if(!l||!l.hotAttr||!l.hotAttr.h)continue;const{hotAttr:{h:_,w:b}}=l,a=Math.min(b/320*_,800),M=[...s.values()],x=Math.min(...M),g=M.indexOf(x);p.get(g).push(l),s.set(g,a+x)}}catch(l){console.log(l.message)}return[...p.values()]}},49021:(He,ee,e)=>{"use strict";e.d(ee,{b5:()=>g,cX:()=>s,sE:()=>M,xR:()=>x});var n=e(20089),r=e(89002),c=e(44940),o=e(56938),I=e(19013),u=e(31781),d=e(31569),C=e(39563),h=e(34748),i=e(40610),f=e(9680),p=e(33421);const s=[n.x.WRichText,n.x.WRect,n.x.WOval,n.x.WStar,n.x.WLine,n.x.WArrow,n.x.WPolygon,n.x.WPlaceholder,n.x.WMTooltip,n.x.WButton,n.x.WButtonSolid,n.x.WMTextInput,n.x.WMTextArea,n.x.WMSelect,n.x.WTabs,n.x.WDropMenu,n.x.WVector,n.x.WMindNode,n.x.WElbow,n.x.WTriangle,n.x.WFlowOpened,n.x.wFlowClosed,n.x.WMindNode,n.x.WTree,n.x.WMobileTabBars],l=t=>v=>{let{selectedItems:w,rootProject:{device:k,model:W},hasMissFontHi:K,cloudFontLocalList:G}=v;const{fontSize:$,bold:P,textDecoration:E,italic:H,letterSpacing:O,fontFamily:V,fontWeight:Q,textColor:N}=(0,d.i)(w,"textV0");let L=N,U="textV0";if([n.x.WMTextInput,n.x.WMTextArea].includes(t)){const{prefillTextColorV0:A}=(0,d.i)(w,"textInput");L=A,U="textInput"}return{device:k,model:W,fontSize:$,boldType:P?1:0,textDecoration:E,fontStyle:H?"italic":"normal",boldAttr:"boldType",letterSpacing:O,fontFamily:V,wbiVersion:3,fontWeight:Q,textColor:L,name:t,colorAttr:"prefillTextColorV0",hasMissFontHi:K,isMissFont:(0,p.QT)(V,Q),cloudFontLocalList:G,refVars:(0,f.xu)(w),supAttr:U}},_=t=>{let{defaultCanHa:v,defaultCanVa:w}=t;return k=>{let{selectedItems:W,hasMissFontHi:K}=k;const G=(0,d.i)(W,"richTextV1");return{ha:G.horizontalAlign,va:G.verticalAlign,canHa:v,canVa:w==="dependSizetype"?G.sizeType!==0:w,shouldReverseDesc:(G==null?void 0:G.fontDirection)==="vertical-lr",sizeType:G==null?void 0:G.sizeType,hasMissFontHi:K}}},b=t=>v=>{let{selectedItems:w,isTextEditing:k,richTextEditorState:W,hasMissFontHi:K}=v;const{hotAttr:G}=w.find(B=>B.hotAttr.type===t),{lineHeight:$,paddingTuple:P,letterSpacing:E,listValue:H,paraSpacing:O,fontDirection:V,isHavingLink:Q,isClipText:N,fontFamily:L,sizeType:U,fontSize:A}=(0,h.mj)({baseItem:G,isEditing:k,richTextEditorState:W}),D=(0,f.xu)(w);if(k&&D!=null&&D.paddingTuple){const B=D==null?void 0:D.paddingTuple;Object.keys(B).forEach(j=>{if(typeof B[j]=="string"){var F;P[j]!==((F=G.richTextV1)==null||(F=F.paddingTuple)==null?void 0:F[j])&&delete B[j]}})}return{fontSize:A,lineHeight:$,paddingTuple:P,letterSpacing:E,name:G.type,disabled:k&&t!==n.x.WRichText,shouldReverseDesc:V==="vertical-lr",listValue:H,paraSpacing:O,isClipText:N,fontDirection:V,isHavingLink:Q,isWRichText:!0,fontFamily:L,hasMissFontHi:K,isMissFont:K,sizeType:U,refVars:D}},a=t=>v=>{let{selectedItems:w,rootProject:{device:k,model:W},isTextEditing:K,richTextEditorState:G,hasMissFontHi:$,cloudFontLocalList:P}=v;const{hotAttr:E}=w.find(F=>F.hotAttr.type===t),{letterSpacing:H,fontFamily:O,color:V,fontSize:Q,fontStyle:N,sizeType:L,textDecoration:U,boldType:A,fontWeight:D,lineHeight:B}=(0,h.mj)({baseItem:E,isEditing:K,richTextEditorState:G}),j=(0,f.xu)(w);return{device:k,model:W,fontFamily:O,lineHeight:B,letterSpacing:H,fontSize:Q,fontWeight:D,fontStyle:N,fontStyleAttr:"fontStyle",textColor:V||c.A.tc,colorAttr:"textColor",sizeType:L,textDecoration:U,boldType:A,boldAttr:"boldType",isTextEditing:K,isRichText:!0,hasMissFontHi:$,isMissFont:$,cloudFontLocalList:P,refVars:j,supAttr:"richTextV1",refStyles:(0,d.i)(w,"refStyles")}},M={[o.s.TextFontPanel]:{[I.m9]:t=>{let{selectedItems:v,rootProject:{device:w,model:k},hasMissFontHi:W,cloudFontLocalList:K}=t;const{fontFamily:G,fontWeight:$,fontSize:P,bold:E,italic:H,textColor:O,textDecoration:V}=(0,d.i)(v,"textV0")||{},Q=(0,d.i)(v,"refStyles");return{device:w,model:k,fontFamily:G,fontSize:P,textColor:O,fontWeight:$,boldAttr:"boldType",boldType:E?1:0,textDecoration:V,wbiVersion:3,fontStyle:H?"italic":"normal",hasMissFontHi:W,isMissFont:(0,p.QT)(G,$),cloudFontLocalList:K,refVars:(0,f.xu)(v),refStyles:Q,supAttr:"textV0"}},[n.x.WTree]:t=>{let{selectedItems:v,hasMissFontHi:w,cloudFontLocalList:k}=t;const W=(0,d.i)(v,"textV0");return{fontSize:W.fontSize,textColor:W.textColor,boldType:W.bold?1:0,boldAttr:"boldType",textDecoration:W.textDecoration,fontStyle:W.italic?"italic":"normal",fontFamily:W.fontFamily,fontWeight:W.fontWeight,isMissFont:(0,p.QT)(W.fontFamily,W.fontWeight),hasMissFontHi:w,cloudFontLocalList:k,refVars:(0,f.xu)(v),supAttr:"textV0"}},[n.x.WTabs]:t=>{let{selectedItems:v}=t;const{textColor:w,fontSize:k}=(0,d.i)(v,"tabs");return{fontSize:k,textColor:w,colorAttr:"textColor",supAttr:"tabs"}},[n.x.WMTextArea]:l(n.x.WMTextArea),[n.x.WMTextInput]:l(n.x.WMTextInput),[n.x.WMSelect]:l(n.x.WMSelect),[n.x.WDropMenu]:l(n.x.WDropMenu),[n.x.WRichText]:t=>{let{selectedItems:v,rootProject:{device:w,model:k},isTextEditing:W,richTextEditorState:K,hasMissFontHi:G,cloudFontLocalList:$}=t;const P=v.find(ge=>ge.hotAttr.type===n.x.WRichText).hotAttr,E=(0,h.mj)({baseItem:P,isEditing:W,richTextEditorState:K}),{fontFamily:H,color:O,fontSize:V,letterSpacing:Q,fontStyle:N,sizeType:L,textDecoration:U,boldType:A,fontWeight:D,fontDirection:B,listValue:j,isHavingLink:F,curBlockKey:Y,wbiVersion:X,paraSpacing:z,isClipText:Z,lineHeight:J}=E,te=(0,f.xu)(v);return W&&te&&Object.keys(te).forEach(ge=>{typeof te[ge]=="string"&&E[ge]!==P.richTextV1[ge]&&delete te[ge]}),{device:w,model:k,fontFamily:H,fontSize:V,lineHeight:J,letterSpacing:Q,fontWeight:D,fontStyle:N,fontStyleAttr:"fontStyle",textColor:O||c.A.tc,colorAttr:"textColor",sizeType:L,textDecoration:U,isClipText:Z,boldType:A,boldAttr:"boldType",isTextEditing:W,fontDirection:B,isRichText:!0,listValue:j,isHavingLink:F,curBlockKey:Y,isWRichText:!0,wbiVersion:X,shouldReverseDesc:B==="vertical-lr",paraSpacing:z,isMissFont:G,hasMissFontHi:G,cloudFontLocalList:$,refVars:te,supAttr:"richTextV1",refStyles:(0,d.i)(v,"refStyles")}},[n.x.WRect]:a(n.x.WRect),[n.x.WOval]:a(n.x.WOval),[n.x.WLine]:a(n.x.WLine),[n.x.WElbow]:a(n.x.WElbow),[n.x.WArrow]:a(n.x.WArrow),[n.x.WPlaceholder]:a(n.x.WPlaceholder),[n.x.WMTooltip]:a(n.x.WMTooltip),[n.x.WButton]:a(n.x.WButton),[n.x.WPolygon]:a(n.x.WPolygon),[n.x.WStar]:a(n.x.WStar),[n.x.WVector]:a(n.x.WVector),[n.x.WTriangle]:a(n.x.WTriangle),[n.x.WFlowOpened]:a(n.x.WFlowOpened),[n.x.wFlowClosed]:a(n.x.wFlowClosed),[n.x.WMindNode]:a(n.x.WMindNode),[n.x.WSticky]:a(n.x.WSticky)},[o.s.TableTextFontPanel]:{[I.m9]:t=>{var v,w;let{selectedItems:k,selectionTableCell:W}=t;const K=k[0],{color:G,fontSize:$,fontStyle:P,boldType:E,textDecoration:H}=(0,r.kO)(W,K.hotAttr),{selectionLeftTopInfo:{x:O,y:V}}=W,Q=K==null||(v=K.hotAttr.table)==null||(v=v[V])==null?void 0:v[O];return{textColor:G,isTableCell:!0,fontSize:$,fontStyle:P,fontStyleAttr:"fontStyle",boldType:E,boldAttr:"boldType",supAttr:"cells-"+Q,colorAttr:"color",textDecoration:H,refVars:(w=(0,f.p0)(K,W))==null?void 0:w.style}}},[o.s.ChartTextFontPanel]:{[I.m9]:t=>{let{selectedItems:v}=t;const w=(0,d.i)(v,"textV0");return{fontSize:w.fontSize,textColor:w.textColor}}},[o.s.AlignPanel]:{[I.m9]:t=>{let{selectedItems:v,hasMissFontHi:w}=t;const k=(0,d.i)(v,"textV0");return{ha:k.horizontalAlign,va:k.verticalAlign,canVa:!0,canHa:!0,hasMissFontHi:w}},[n.x.WRichText]:_({defaultCanHa:!0,defaultCanVa:"dependSizetype"}),[n.x.WRect]:_({defaultCanHa:!0,defaultCanVa:"dependSizetype"}),[n.x.WOval]:_({defaultCanHa:!0,defaultCanVa:"dependSizetype"}),[n.x.WLine]:_({defaultCanHa:!1,defaultCanVa:!1}),[n.x.WElbow]:_({defaultCanHa:!1,defaultCanVa:!1}),[n.x.WArrow]:_({defaultCanHa:!1,defaultCanVa:!1}),[n.x.WPlaceholder]:_({defaultCanHa:!0,defaultCanVa:"dependSizetype"}),[n.x.WButton]:_({defaultCanHa:!0,defaultCanVa:"dependSizetype"}),[n.x.WMTooltip]:_({defaultCanHa:!0,defaultCanVa:"dependSizetype"}),[n.x.WPolygon]:_({defaultCanHa:!0,defaultCanVa:!0}),[n.x.WStar]:_({defaultCanHa:!0,defaultCanVa:!0}),[n.x.WVector]:_({defaultCanHa:!0,defaultCanVa:!0}),[n.x.WTriangle]:_({defaultCanHa:!0,defaultCanVa:!0}),[n.x.wFlowClosed]:_({defaultCanHa:!0,defaultCanVa:!0}),[n.x.WFlowOpened]:_({defaultCanHa:!0,defaultCanVa:!0}),[n.x.WMTextInput]:()=>({canVa:!1}),[n.x.WMTextArea]:()=>({canVa:!1}),[n.x.WTree]:()=>({canVa:!1}),[n.x.WMSelect]:()=>({canVa:!1,canHa:!1}),[n.x.WTable]:t=>{let{selectedItems:v,selectionTableCell:w}=t;const{ha:k,va:W}=(0,r.kO)(w,v[0].hotAttr);return{ha:k,va:W,canVa:!0,canHa:!0}}},[o.s.SpacingPanel]:{[I.m9]:t=>{let{selectedItems:v,isTextEditing:w,hasMissFontHi:k}=t;const W=v.filter(N=>N.hotAttr.type!==n.x.WRichText),K=(0,d.i)(W,"textV0"),{lineHeight:G=c.A.lineHeight,paddingTuple:$=c.A.paddingTuple,letterSpacing:P,paraSpacing:E,padding:H,fontFamily:O,fontWeight:V}=K||{},Q=W.length===1?W[0].hotAttr.type:void 0;return{lineHeight:G,paddingTuple:$,padding:H,disabled:w,letterSpacing:P,baseItem:W,name:Q,paraSpacing:E,isMissFont:(0,p.QT)(O,V),hasMissFontHi:k,refVars:(0,f.xu)(v)}},[n.x.WRichText]:b(n.x.WRichText),[n.x.WPlaceholder]:b(n.x.WPlaceholder),[n.x.WButton]:b(n.x.WButton),[n.x.WMTooltip]:b(n.x.WMTooltip),[n.x.WTree]:l(n.x.WTree),[n.x.WRect]:b(n.x.WRect),[n.x.WOval]:b(n.x.WOval),[n.x.WPolygon]:b(n.x.WPolygon),[n.x.WStar]:b(n.x.WStar),[n.x.WVector]:b(n.x.WVector),[n.x.WLine]:b(n.x.WLine),[n.x.WElbow]:b(n.x.WElbow),[n.x.WArrow]:b(n.x.WArrow),[n.x.WTriangle]:b(n.x.WTriangle),[n.x.WFlowOpened]:b(n.x.WFlowOpened),[n.x.wFlowClosed]:b(n.x.wFlowClosed),[n.x.WTable]:t=>{var v;let{selectedItems:w,selectionTableCell:k}=t;const W=w[0].hotAttr,{lineHeight:K,padding:G}=(0,r.kO)(k,W);return{lineHeight:K,padding:G,name:W==null?void 0:W.type,refVars:(v=(0,f.p0)(w[0],k))==null?void 0:v.style}}},[o.s.ContentBoxPanel]:{[I.m9]:t=>{let{selectedItems:v,hasMissFontHi:w}=t;const k=v.length&&(v.every(G=>{let{hotAttr:$}=G;return $.type===n.x.WMSelect})||v.every(G=>{let{hotAttr:$}=G;return s.includes($.type)&&$.type!==n.x.WMSelect})),W=v.some(G=>{let{hotAttr:$}=G;return i.VV.includes($.type)||[n.x.WMTextArea,n.x.WMSelect].includes($.type)});let K;if(k){const G=(0,f.GN)(v);G.size===1&&(K=G.values().next().value)}return{canShowContentBox:k,disableModifyContentBox:!!w,canMultiline:W,content:k&&(0,u.MZ)(v),isBatch:v.length>1,refVar:K}},[n.x.WTable]:t=>{var v;let{selectedItems:w,selectionTableCell:k,hasMissFontHi:W}=t;const K=!!k,G=w[0],$=(v=(0,f.p0)(G,k))==null?void 0:v.data,{selectionLeftTopInfo:{x:P,y:E}}=k,H=(0,C.j)(G.hotAttr.cells,G.hotAttr.table,E,P),O=(H==null?void 0:H.data)||"";return{canShowContentBox:K,disableModifyContentBox:!!W,canMultiline:!0,content:O,refVar:$}}},disableSetting:{[I.m9]:()=>({}),[n.x.WMTextInput]:()=>({noTd:!0}),[n.x.WMTextArea]:()=>({noTd:!0}),[n.x.WMSelect]:()=>({noTd:!0,noBold:!0,noItalic:!0})}},x=t=>s.includes(t)?[M[o.s.TextFontPanel][t]||M[o.s.TextFontPanel][I.m9],M[o.s.AlignPanel][I.m9],M[o.s.AlignPanel][t]||M[o.s.AlignPanel][I.m9],M[o.s.AlignPanel][t]||M[o.s.SpacingPanel][I.m9],M[o.s.SpacingPanel][t]||M[o.s.SpacingPanel][I.m9],M.disableSetting[t]||M.disableSetting[I.m9]]:[],g=()=>[M[o.s.TableTextFontPanel][I.m9],M[o.s.AlignPanel][I.m9],M[o.s.AlignPanel][n.x.WTable],M[o.s.SpacingPanel][n.x.WTable]],S=t=>{let{selectedItems:v}=t;const w=itemsGetAttr(v,"selectNode");return{fontSize:w.fontSize,textColor:w.textColor,boldType:w.bold?1:0,textDecoration:w.textDecoration,fontStyle:w.italic?"italic":"normal",fontFamily:w.fontFamily}}},49425:(He,ee,e)=>{"use strict";e.d(ee,{y2:()=>g,a3:()=>K,Uh:()=>k,nU:()=>t,lb:()=>v,TK:()=>W,th:()=>w});var n=e(74222),r=e(25037),c=e(24229),o=e(16966),I=e(29158),u=e(38581),d=e(69415),C=e(70756),h=e(52049);const i=G=>{let $=0;return(0,I.yc)(G,n.$k,P=>{const E=P.attr;if(E.T!==h._b)return C.NU;const H=(0,n.mq)(E);H.bunch==="rbPage"&&!H.asFolder&&$++}),$},f=new Set([h._b,h.e]),p=G=>{const $=[];let P=0,E=0;return walkFlatTreeItem2(G,KEY_RB_MAIN,H=>{const O=H.attr;if(!f.has(O.T))return;const V=toProto2HotAttr(O);$.push([H.key,H.sup,V]),V.type==="rResBunch"&&V.bunch==="rbPage"&&!V.asFolder?P++:V.type==="rResCanvas"&&E++}),{p2mList:$,p2mStat:{countPG:P,countCV:E}}};var s=e(20089),l=e(5664),_=e(26034),b=e(14861),a=e(29187);const M={iphone_17_pro_max:54,iphone_17_pro:54,iphone_17:54,iphone_air:54,iphone_16_pro_max:54,iphone_16_pro:54,iphone_16_plus:54,iphone_16:54,iphone_15_pro_max:54,iphone_15_pro:54,iphone_15_plus:54,iphone_15:54,iphone_13_pro_max:44,iphone_13_pro:44,iphone_13_mini:44,iphone_11_pro_max:44,iphone_se:20,Huawei_mate70:48,Huawei_mate70_pro:48,Huawei_mate70_pro_plus:48,Huawei_mateXT_one_screen:48,Huawei_mateXT_two_screen:48,Huawei_mateXT_three_screen:48,Huawei_mate60:48,Huawei_mate60_pro:48,Huawei_mateX5_fold:48,Xiaomi_14:48,Xiaomi_15:48,samsung_galaxy_s23:48,ipad_pro_11:24,ipad_pro_12:24,ipad_2023:24,Huawei_mate_pad_pro_13_2:24,Huawei_mate_pad_pro_11:24},x={iphone_17_pro_max:34,iphone_17_pro:34,iphone_17:34,iphone_air:34,iphone_16_pro_max:34,iphone_16_pro:34,iphone_16_plus:34,iphone_16:34},g=G=>{var $;let P=!1,E=!1,H="",O=G.hotAttr.device;if(O==="customize")for(const N of["android","iphone","ipad"]){const L=b.Am[N]||[];for(const U of L){const A=b.v2[U];if(A&&A.height===G.hotAttr.h&&A.width===G.hotAttr.w){O=U;break}}}const V=($=b.v2[O])==null?void 0:$.device;["android","iphone","ipad"].includes(V)&&(P=!0,E=!0,H=V,V==="android"&&(E=!1),["iphone_se","Huawei_mate_pad_pro_13_2","Huawei_mate_pad_pro_11"].includes(O)&&(E=!1),["Huawei_mateX5_expand"].includes(O)&&(P=!1));let Q;if(P){Q=[];let N;N=_.N.wIphoneXSB(I18N.w.wIphoneXSB),N.h=M[G.hotAttr.device]||44,N.w=G.hotAttr.w,N.x=G.hotAttr.w/2,N.y=N.h/2,N.zIndex=6,N.fixPosTo="none";const L={key:(0,c.cF)(),attr:(0,u.Xd)(N),hotAttr:N,sup:G.key,sub:[]};Q.push(L)}if(E){let N=_.N.wRect(I18N.w.tab_bar);N={...N,zIndex:7,fixPosTo:"none",fill:{fillIsVisible:!0,fill:"solid",solidColor:4177066239},border:{bdrIsVisible:!1,bdrColor:4278190080,bdrWidth:1,bdrStyle:"solid"},borderRadius:0,borderVisibility:{bdrIsVisibleT:!0,bdrIsVisibleL:!0,bdrIsVisibleB:!0,bdrIsVisibleR:!0}},N.h=x[G.hotAttr.device]||21,N.w=G.hotAttr.w,N.x=G.hotAttr.w/2,N.y=G.hotAttr.h-N.h/2;const L={key:(0,c.cF)(),attr:(0,u.Xd)(N),hotAttr:N,sup:G.key,sub:[]};Q.push(L);let U=_.N.wRect(I18N.w.wRect);U={...U,zIndex:8,fixPosTo:"none",fill:{fillIsVisible:!0,fill:"solid",solidColor:255},borderRadius:3,border:{bdrIsVisible:!1,bdrColor:3149642751,bdrWidth:1,bdrStyle:"solid"}},U.h=5,U.w=134,U.x=G.hotAttr.w/2,U.y=N.y;const A={key:(0,c.cF)(),attr:(0,u.Xd)(U),hotAttr:U,sup:G.key,sub:[]};Q.push(A)}return Q},S=(G,$)=>{var P,E;const{model:H,height:O,width:V,attr:Q}=$,N=(0,c.cF)("rbp");(0,l.e_)(G,{key:N,sup:n.$k,attr:(0,l.kh)(I18N.LeftSidePanel.page,1,H,V,O,(P=Q==null?void 0:Q.orientation)!=null?P:"portrait")});const L=Object.fromEntries(new URLSearchParams(location.search));if(!ENV.IS_ON_PREMISES&&(E=(0,a.jN)($))!=null&&E.isToShow||L.code||L.target_area)return G;const U=_.N[s.x.Canvas](I18N.LeftSidePanel.artboard+" 1",5,V/2,O/2,V,O,H),A=(0,o.XR)(U),D=(0,c.cF)("rc");G.push({type:r.UF,key:D,keySup:N}),G.push({type:r.qC,key:D,attrDiff:A});const B=g({hotAttr:U,key:D});if(B!==void 0){for(const j of B)G.push({type:r.UF,key:j.key,keySup:j.sup}),G.push({type:r.qC,key:j.key,attrDiff:j.attr});B.length===1?G.push({type:r.qC,key:D,attrDiff:{shh:(0,d.c5)(B[0].hotAttr.h)}}):G.push({type:r.qC,key:D,attrDiff:{shh:(0,d.c5)(B[0].hotAttr.h),sfh:(0,d.c5)(B[1].hotAttr.h)}})}return G},t=(G,$)=>{if(G.getFlatTree().get("B@main").sub.length===0){const P=S([],$);G.applyDiff(P),G.resetUndo()}},v=G=>{(!G.getFlatTree().get("B@ref-mind")||G.getFlatTree().get("B@ref-mind").sup!==I.gT)&&(G.applyDiff([{type:r.UF,key:n.YZ,keySup:I.gT},{type:r.qC,key:n.YZ,attrDiff:(0,l.GA)("rbRefMind")}]),G.resetUndo())},w=G=>{var $;(!G.getFlatTree().get("B@var")||(($=G.getFlatTree().get("B@var"))==null?void 0:$.sup)!==I.gT)&&(G.applyDiff([{type:r.UF,key:n.fu,keySup:I.gT},{type:r.qC,key:n.fu,attrDiff:(0,l.GA)("rbVar")}]),G.resetUndo())},k=G=>{var $;(!G.getFlatTree().get("B@dict")||(($=G.getFlatTree().get("B@dict"))==null?void 0:$.sup)!==I.gT)&&(G.applyDiff([{type:r.UF,key:n.EM,keySup:I.gT},{type:r.qC,key:n.EM,attrDiff:(0,l.GA)("rbDict")}]),G.resetUndo())},W=G=>{(!G.getFlatTree().get("B@style")||G.getFlatTree().get("B@style").sup!==I.gT)&&(G.applyDiff([{type:r.UF,key:n.nK,keySup:I.gT},{type:r.qC,key:n.nK,attrDiff:(0,l.GA)("rbStyle")}]),G.resetUndo())},K=(G,$)=>{let{cid:P,screens_count:E}=$,H=E;const O=()=>{const V=i(G.getFlatTree());H!==V&&(H=V,fetch("/api/flat/web_v1/proj2-stat-sync?"+new URLSearchParams({prj2Cid:P,countPG:String(V)}),{method:"PUT"}).catch(console.error))};setInterval(O,15*1e3),O()}},49899:function(He,ee,e){var n,r,c;(function(o,I){r=[],n=I,c=typeof n=="function"?n.apply(ee,r):n,c!==void 0&&(He.exports=c)})(this,function(){"use strict";function o(f,p){return typeof p>"u"?p={autoBom:!1}:typeof p!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),p={autoBom:!p}),p.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(f.type)?new Blob(["\uFEFF",f],{type:f.type}):f}function I(f,p,s){var l=new XMLHttpRequest;l.open("GET",f),l.responseType="blob",l.onload=function(){i(l.response,p,s)},l.onerror=function(){console.error("could not download file")},l.send()}function u(f){var p=new XMLHttpRequest;p.open("HEAD",f,!1);try{p.send()}catch(s){}return 200<=p.status&&299>=p.status}function d(f){try{f.dispatchEvent(new MouseEvent("click"))}catch(s){var p=document.createEvent("MouseEvents");p.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),f.dispatchEvent(p)}}var C=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof e.g=="object"&&e.g.global===e.g?e.g:void 0,h=C.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),i=C.saveAs||(typeof window!="object"||window!==C?function(){}:"download"in HTMLAnchorElement.prototype&&!h?function(f,p,s){var l=C.URL||C.webkitURL,_=document.createElement("a");p=p||f.name||"download",_.download=p,_.rel="noopener",typeof f=="string"?(_.href=f,_.origin===location.origin?d(_):u(_.href)?I(f,p,s):d(_,_.target="_blank")):(_.href=l.createObjectURL(f),setTimeout(function(){l.revokeObjectURL(_.href)},4e4),setTimeout(function(){d(_)},0))}:"msSaveOrOpenBlob"in navigator?function(f,p,s){if(p=p||f.name||"download",typeof f!="string")navigator.msSaveOrOpenBlob(o(f,s),p);else if(u(f))I(f,p,s);else{var l=document.createElement("a");l.href=f,l.target="_blank",setTimeout(function(){d(l)})}}:function(f,p,s,l){if(l=l||open("","_blank"),l&&(l.document.title=l.document.body.innerText="downloading..."),typeof f=="string")return I(f,p,s);var _=f.type==="application/octet-stream",b=/constructor/i.test(C.HTMLElement)||C.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||_&&b||h)&&typeof FileReader<"u"){var M=new FileReader;M.onloadend=function(){var S=M.result;S=a?S:S.replace(/^data:[^;]*;/,"data:attachment/file;"),l?l.location.href=S:location=S,l=null},M.readAsDataURL(f)}else{var x=C.URL||C.webkitURL,g=x.createObjectURL(f);l?l.location=g:location.href=g,l=null,setTimeout(function(){x.revokeObjectURL(g)},4e4)}});C.saveAs=i.saveAs=i,He.exports=i})},49989:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>h,z:()=>s});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),I=e(83199),u=e(46606),d=e(13172),C=e(72214);class h extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleChange",_=>{if(this.props.disabled||_.currentTarget.classList.contains("disabled"))return;const b=_.currentTarget.dataset.value;this.props.handleChange(b)})}render(){const{options:_,value:b,disabled:a,className:M,isLongTimeHover:x}=this.props;return(0,C.jsx)(u.N,{className:o()("radio-line",M,{disabled:a}),children:_.map((g,S)=>{const{label:t,value:v,compatibleValues:w,disabled:k,tip_title:W,isFree:K}=g;return K?(0,C.jsx)(f,{label:t,value:b,optionValue:v,compatibleValues:w,disabled:k,tip_title:W,handleChange:this.handleChange},v):x?(0,C.jsx)(p,{label:t,value:b,optionValue:v,compatibleValues:w,disabled:k,tip_title:W,handleChange:this.handleChange},v):(0,C.jsx)(i,{label:t,value:b,optionValue:v,compatibleValues:w,disabled:k,tip_title:W,handleChange:this.handleChange},v)})})}}(0,n.A)(h,"defaultProps",{isLongTimeHover:!1});const i=l=>{const{label:_,value:b,optionValue:a,compatibleValues:M,disabled:x,tip_title:g,handleChange:S}=l,t=(0,r.useRef)(null),v=!x&&(M?M.includes(b):b===a),w=k=>{S&&S(k)};return(0,C.jsx)(I.A,{content:g,direction:"down",children:(0,C.jsx)("li",{className:o()("radio-option",{active:v,disabled:x}),"data-value":a,onClick:w,ref:t,children:(0,C.jsx)("div",{className:"radio-content",children:_})},a)})},f=l=>{const{label:_,value:b,optionValue:a,compatibleValues:M,disabled:x,tip_title:g,handleChange:S}=l,t=(0,r.useRef)(null),v=!x&&(M?M.includes(b):b===a),w=k=>{S&&S(k)};return(0,C.jsx)(d.A,{title:g,placement:"bottom",zIndex:1200,children:(0,C.jsx)("li",{className:o()("radio-option",{active:v,disabled:x}),"data-value":a,onClick:w,ref:t,children:(0,C.jsx)("div",{className:"radio-content",children:_})},a)})},p=l=>(0,C.jsx)(I.A,{component:(0,C.jsx)(i,{...l})}),s=l=>(0,C.jsx)(I.A,{component:(0,C.jsx)(h,{...l})})},50001:(He,ee,e)=>{"use strict";e.d(ee,{WY:()=>b,ZZ:()=>s});var n=e(99963),r=e(70933),c=e(25997),o=e(60651),I=e(20089),u=e(59323),d=e(45611),C=e(15653),h=e(21856),i=e(14166),f=e(8580);const p=a=>{const{x:M,y:x,h:g,w:S}=n.o.axisAligned((0,f.Oj)(a.key));return{left:Math.round(M),top:Math.round(x),right:Math.round(M+S),bottom:Math.round(x+g),width:Math.round(S),height:Math.round(g)}},s=(a,M)=>{if(M)return M=sdkStore.locUpColdCanvasKey(M),M&&sdkStore.getHotItem(M);{const x=a.map(t=>{let{key:v}=t;return v}),g=(0,u.vR)(x),S=(0,u.zB)(x);if(g&&S.size===1)return[...S.values()][0]}return null},l=a=>{var M;const x=s(a),g=(M=MB.getCurrentScreen())==null?void 0:M.cid;return(x==null?void 0:x.key)||g},_=(a,M,x)=>{var g,S;const t=MB.__store__.getState(),v=(0,c.UV)(t),w=(0,r.$S)(t),k=(0,r.ER)(t),W=(0,r.X_)(t),K={scale:W/100,size:{w:w.width,h:w.height},offset:k},G=x||l(M),$=G===((g=MB.getCurrentScreen())==null?void 0:g.cid),P=a&&$,E=new Set(M.map(B=>B.key)),H=v.getHotItem(G),O=[];if(!H)return[];const V=[];M.forEach(B=>{B.hotAttr.type===I.x.WWrap&&V.push(B.key)});const Q=v.getRenderableSubHotItems(H),N=B=>B.hotAttr.isVisible&&B.hotAttr.opacity!==0;Q.forEach(B=>{if(V.includes(B.key))return;const j=(0,d.l8)(B,P,N);O.push(...j)}),M.length===1&&((S=M[0])==null?void 0:S.hotAttr.type)===I.x.Canvas&&v.getHotItem(M[0].key)&&v.getRenderableSubHotItems(H).forEach(F=>{const Y=(0,d.l8)(F);O.push(...Y)}),H.hotAttr.bunch!==I.x.RbPage&&O.push(H);const U=(0,h.WO)(K,w.left),A=[];O.forEach(B=>{const{key:j,hotAttr:{type:F}}=B;if(F!==I.x.WWrap&&!E.has(j)&&N(B)){const Y=sdkStore.getHotAABB(j);if(!(0,i.cj)(U,Y))return;const z=p(B);A.push(z)}});const D=(0,o.jI)(t)||(0,o.bt)(t);if(D){const B=[];let j=[];$?j=Q.filter(F=>F.hotAttr.type===I.x.Canvas):j=[H],j.forEach(F=>{const Y=sdkStore.getHotAABB(F.key);if(!(0,i.cj)(U,Y))return;const z=(0,C.lG)({node:F,basketKey:D,scale:W});B.push(z)}),A.push(...B)}return A},b=(a,M,x)=>_(a,M,x)},50320:(He,ee,e)=>{"use strict";e.d(ee,{B:()=>_,O:()=>l});var n=e(38502),r=e(53732),c=e.n(r),o=e(99566),I=e(16913),u=e(88981),d=e(17307),C=e(67787);const h=C.Ay.div.withConfig({displayName:"styles__StyledInputEventCategory",componentId:"sc-5tkqb7-0"})(["padding:0px 16px;"]),i=C.Ay.div.withConfig({displayName:"styles__StyledInputEventDropMenu",componentId:"sc-5tkqb7-1"})(["color:",";.input-event-menu-item{position:relative;display:flex;align-items:center;height:28px;border-radius:4px;transition:all 0.2s ease-out;cursor:pointer;&:hover{background:",";}.input-event-checked-icon{position:absolute;width:16px;height:16px;top:6px;left:8px;}span{margin-left:32px;font-weight:400;font-size:12px;line-height:16px;color:",";}}"],b=>b.theme.color_text_L0,b=>b.theme.color_btn_secondary_hover,b=>b.theme.color_text_L1);var f=e(33515),p=e(72214);const s=["focus","blur","focusEnter"],l=b=>{switch(b){case"focus":return I18N.Interaction.trigger.inputEvent_focus;case"blur":return I18N.Interaction.trigger.inputEvent_blur;case"focusEnter":return I18N.Interaction.trigger.inputEvent_focusEnter;default:return""}},_=b=>{let{tNodeTrigger:a,onChangeTrigger:M}=b;const x=n.useRef(null),g=(0,o.lF)(a,!0)[1],S=l(g)||I18N.SettingPanel.please_select,t=v=>{var w;M({interactionTrigger:u.O.InputEvent,event:v}),(w=x.current)!=null&&w.state.isMenuShow&&x.current.setState({isMenuShow:!1})};return(0,p.jsx)(h,{children:(0,p.jsx)(I.A,{linkTitle:I18N.Interaction.trigger.inputEvent_category,className:"state-action",children:(0,p.jsx)(f.Ay,{isPosition2:!0,isOpenerAttrDisabled:!1,menux:"left",className:"input-event-trigger-list",customOpener:(0,p.jsx)(f.VA,{title:S,isPlaceholder:!g,onShowTipsByTarget:(v,w)=>{var k;return((k=w.querySelector(".select-title"))==null?void 0:k.scrollWidth)>80}}),renderMenu:(0,p.jsx)(i,{children:s.map(v=>{const w=v===g;return(0,p.jsxs)("li",{role:"option",className:c()("input-event-menu-item",{"is-active":w}),onClick:()=>t(v),children:[w&&(0,p.jsx)(d.C,{name:"common/checked",className:"input-event-checked-icon"}),(0,p.jsx)("span",{children:l(v)})]},v)})})})})})}},50521:(He,ee,e)=>{"use strict";e.d(ee,{Q:()=>i});var n=e(38502),r=e(83199),c=e(67787);const o=c.Ay.a.withConfig({displayName:"styles__StyledToolTipsIcon",componentId:"sc-1p5p501-0"})(["display:flex;align-items:center;width:24px;height:24px;justify-content:center;align-content:center;transition:background-color 0.2s ease-out 0s;position:relative;border-radius:4px;.svg-icon{width:24px;height:24px;color:",";}&[disabled]{cursor:not-allowed;.svg-icon{color:",";}}&:hover:not([disabled]){background:",";}&:not([disabled]):active{background:",";}&.widthSettings{width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:",";border-radius:4px;&:hover{background:",";}&:active{background:",";}.options-icon{width:24px;height:24px;path{stroke:",";}}}&.aspectRatioButton{position:relative;width:24px;height:24px;border-radius:4px;border:none;display:flex;align-items:center;justify-content:center;.svg-icon{width:24px;height:24px;color:",";}&.locked{background:",";}&:not(.locked):hover{background:",";}&.disabled.unLocked,&.disabled.locked{cursor:not-allowed;background:transparent;.svg-icon{color:",";}&:hover{background:transparent;}}}&.fontSettings{width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:",";&:hover{background:",";}&:active{background:",";}.options-icon{width:24px;height:24px;}}"],f=>f.theme.color_text_L1,f=>f.theme.color_text_disabled01,f=>f.theme.color_btn_secondary_hover,f=>f.theme.color_btn_secondary_active,f=>f.theme.color_text_L1,f=>f.theme.color_btn_secondary_hover,f=>f.theme.color_btn_secondary_active,f=>f.theme.color_text_L1,f=>f.theme.color_text_L1,f=>f.theme.color_btn_secondary_active,f=>f.theme.color_btn_secondary_hover,f=>f.theme.color_text_disabled01,f=>f.theme.color_text_L1,f=>f.theme.color_btn_secondary_active,f=>f.theme.color_btn_secondary_active),I=c.Ay.div.withConfig({displayName:"styles__StyledTips",componentId:"sc-1p5p501-1"})(["display:flex;flex-shrink:0;justify-content:center;align-items:center;flex-direction:column;position:absolute;background-color:",";color:",";width:auto;text-align:center;text-decoration:none;word-break:break-all;max-width:200px;padding:4px 8px;box-sizing:border-box;z-index:1101;border-radius:4px;line-height:14px;font-size:12px;&.arrangeTips.align_bottom,&.arrangeTips.windows.align_center_h{right:0;left:auto !important;transform:translateX(0) !important;}"],f=>f.theme.color_tips_black,f=>f.theme.color_text_btn);var u=e(53732),d=e.n(u),C=e(72214);const h=f=>{let{pointerEvents:p,icon:s,content:l,className:_="",tipsClassName:b="",disabled:a,onClick:M,dataValue:x,direction:g="down"}=f;const S=W=>{M&&M(W)},t=()=>null,v=d()(_,{disabled:a}),k={down:"bottom",up:"top",left:"left",right:"right"}[g];return(0,C.jsx)(r.A,{pointerEvents:p,tipClassName:b,content:l,direction:k,children:(0,C.jsx)(o,{"data-value":x,className:v,disabled:a,onClick:a?t:S,children:s})})},i=f=>(0,C.jsx)(r.A,{component:(0,C.jsx)(h,{...f})})},51007:(He,ee,e)=>{"use strict";e.d(ee,{Z:()=>c,g:()=>o});var n=e(67787),r=e(80985);const c=n.Ay.div.withConfig({displayName:"styles__StyledDndContent",componentId:"sc-163z1lt-0"})(["position:relative;flex:1;transition:box-shadow 0.2s ease-in-out;padding-bottom:",'px;&.is-active{&::after{content:"";position:absolute;z-index:1;top:0;left:0;right:0;bottom:0;border:2px solid #7fbbfb;pointer-events:none;}}.group-main{position:relative;height:100%;#group-list{height:100%;overflow-x:hidden;overflow-y:overlay;&::-webkit-scrollbar{display:none;}&:hover::-webkit-scrollbar{display:block;}}}'],I=>I.isShowUpgradeButton?56:0),o=(0,n.Ay)(r.A).withConfig({displayName:"styles__StyledRecentPanelContent",componentId:"sc-163z1lt-1"})(["width:250px;&.find-icon-content{margin:0 0 8px 0;}&.recent-panel-content{.combos-container,.screens-container{display:flex;flex-flow:row wrap;padding:0 4px 0 12px;.template-item{margin:0 8px 10px 0;}.combo-item{margin:0 8px 10px 0;}li > .img-wrapper{width:109px;height:109px;}}.icon-list{display:grid;grid-row-gap:7px;grid-column-gap:8px;padding:0 12px;grid-template-columns:repeat(5,1fr);& > li{border:none;border-radius:6px;transition:all 0.2s ease-out 0s;&:hover{background:",";}}}.collapse-panel{.arrow-icon{width:16px;}.title{color:",";font-size:14px;font-weight:500;}}}"],I=>I.theme.color_btn_secondary_hover,I=>I.theme.color_text_L2)},51306:(He,ee,e)=>{"use strict";e.d(ee,{P:()=>b,m:()=>M});var n=e(95549),r=e(38502),c=e(15515),o=e(71190),I=e(59189),u=e(39695),d=e(20089),C=e(60651),h=e(82694),i=e(76613),f=e(70812),p=e(79388),s=e(72214);const l="state",_="mp_"+l,b="ANI_ITA_CREATED_BY_ANI_PANEL",a=["children"];class M extends r.Component{constructor(){super(...arguments),(0,n.A)(this,"state",{show:(0,c.Yt)(_,!0,c.qW.Boolean)}),(0,n.A)(this,"handleChange",()=>{const{show:g}=this.state;(0,c.a0)(_,!g,c.qW.Boolean),this.setState({show:!g})}),(0,n.A)(this,"handleClickAdd",()=>{const g=MB.getSelectionItems()[0];if(!g||!Object.hasOwn(g.hotAttr,"interactions"))return;const{dispatch:S}=this.props,{key:t,hotAttr:v}=g,w=v.animation;if(!w)return;let k,W;w.aniName&&w.aniName!=="none"?(k=(0,p.Ck)(w),W=[{key:t,hotAttr:{animation:{...w,aniName:"none"},interactions:[...v.interactions||[],k]}}]):(k={...(0,u.nF)(),interactionTrigger:"timer",timerDuration:"",targetWidgetKey:i.rE},W=[{key:t,hotAttr:{interactions:[...v.interactions||[],k]}}]),S({type:"entry:widget:change",payload:{flatChgList:W}}),f.U4.updateInteractionTrack({type:"\u65B0\u589E",interactionTrigger:"timer",interactionType:u.O2.SetAnimation});const K=(0,C.lY)(MB.__store__.getState()),$=(v.type===d.x.Canvas?(0,h.xV)(K):(0,h.HA)(K)).findIndex(P=>P.label===I18N.Interaction.new_name&&!P.disabled);if($!==-1){S({type:"settings:set:autoTabIndex",payload:{autoTabIndex:null}}),S({type:"settings:set:activeIndex",payload:{activeIndex:$}}),(0,c.cH)(b,k.key);const P=setTimeout(()=>{var E;(E=document.querySelector("#interaction-tree-list .interaction-trigger-node div[data-key="+k.key+"]"))==null||E.click(),clearTimeout(P)},200)}})}shouldComponentUpdate(g,S,t){return this.props.isDraggingItem?!g.isDraggingItem:(0,I.N)(a).call(this,g,S)}render(){var g;return!sdkStore.locUpHotCanvasKey((g=MB.getSelectionItems()[0])==null?void 0:g.key)?null:(0,s.jsx)(o.A,{className:"animation-sub-panel",onClickAdd:this.handleClickAdd,title:I18N.SettingPanel.inspector[l],onChange:this.handleChange})}}},51320:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>j0,g:()=>Id});var n=e(18381),r=e(12211),c=e(70933),o=e(99587),I=e(60651),u=e(81973),d=e(4235),C=e(70422),h=e(38502),i=e(95549),f=e(53732),p=e.n(f),s=e(67787);const l=s.Ay.div.withConfig({displayName:"styles__StyledArrange",componentId:"sc-7nizi4-0"})(["height:40px;display:flex;align-items:center;border-bottom:1px solid ",";padding:0 10px;justify-content:space-between;"],m=>m.theme.color_bg_border_01);var _=e(50521),b=e(62118),a=e(83199),M=e(56202),x=e(17307),g=e(59025),S=e(88944),t=e(72214);class v extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"_handleAlign",y=>{this.props.dispatch({type:"entry:align:items",payload:{direction:y}}),(0,S.W0)({operationType:S.MO[y]})}),(0,i.A)(this,"handleAlignLeft",()=>{this._handleAlign("left")}),(0,i.A)(this,"handleAlignRight",()=>{this._handleAlign("right")}),(0,i.A)(this,"handleAlignCenter",()=>{this._handleAlign("center")}),(0,i.A)(this,"handleAlignTop",()=>{this._handleAlign("top")}),(0,i.A)(this,"handleAlignMiddle",()=>{this._handleAlign("middle")}),(0,i.A)(this,"handleAlignBottom",()=>{this._handleAlign("bottom")}),(0,i.A)(this,"_handleDistribute",y=>{this.props.dispatch({type:"entry:distribute:items",payload:{direction:y}})}),(0,i.A)(this,"handleHorizontalDistribute",()=>{this._handleDistribute("horizontal")}),(0,i.A)(this,"handleVerticalDistribute",()=>{this._handleDistribute("vertical")}),(0,i.A)(this,"handleGetContent",(y,T)=>{const R=b.lk[T+"_mac"],q=b.lk[T+"_win"];return(0,a.u)({text:y,key:(0,M.cX)()?R:q})}),(0,i.A)(this,"handleRenderIcon",y=>(0,t.jsx)(x.C,{name:y})),(0,i.A)(this,"handleGetTipsClassName",y=>p()("arrangeTips",(0,M.cX)()?"mac":"windows",y))}render(){const{canAlign:y,canDistribute:T}=this.props;return(0,t.jsxs)(l,{children:[(0,t.jsx)(_.Q,{icon:this.handleRenderIcon("setting_panel/arrange/dist_evenly_h"),content:this.handleGetContent(I18N.SettingPanel.hdistribute,"dist_evenly_h"),tipsClassName:this.handleGetTipsClassName("dist_evenly_h"),disabled:!T,onClick:this.handleHorizontalDistribute}),(0,t.jsx)(_.Q,{icon:this.handleRenderIcon("setting_panel/arrange/dist_evenly_v"),content:this.handleGetContent(I18N.SettingPanel.vdistribute,"dist_evenly_v"),tipsClassName:this.handleGetTipsClassName("dist_evenly_v"),disabled:!T,onClick:this.handleVerticalDistribute}),(0,t.jsx)(_.Q,{icon:this.handleRenderIcon("setting_panel/arrange/align_left"),content:this.handleGetContent(I18N.SettingPanel.hleft,"align_left"),tipsClassName:this.handleGetTipsClassName("align_left"),disabled:!y,onClick:this.handleAlignLeft}),(0,t.jsx)(_.Q,{icon:this.handleRenderIcon("setting_panel/arrange/align_center_v"),content:this.handleGetContent(I18N.SettingPanel.hcenter,"align_center_v"),tipsClassName:this.handleGetTipsClassName("align_center_v"),disabled:!y,onClick:this.handleAlignCenter}),(0,t.jsx)(_.Q,{icon:this.handleRenderIcon("setting_panel/arrange/align_right"),content:this.handleGetContent(I18N.SettingPanel.hright,"align_right"),tipsClassName:this.handleGetTipsClassName("align_right"),disabled:!y,onClick:this.handleAlignRight}),(0,t.jsx)(_.Q,{icon:this.handleRenderIcon("setting_panel/arrange/align_top"),content:this.handleGetContent(I18N.SettingPanel.vtop,"align_top"),tipsClassName:this.handleGetTipsClassName("align_top"),disabled:!y,onClick:this.handleAlignTop}),(0,t.jsx)(_.Q,{icon:this.handleRenderIcon("setting_panel/arrange/align_center_h"),content:this.handleGetContent(I18N.SettingPanel.vcenter,"align_center_h"),tipsClassName:this.handleGetTipsClassName("align_center_h"),disabled:!y,onClick:this.handleAlignMiddle}),(0,t.jsx)(_.Q,{icon:this.handleRenderIcon("setting_panel/arrange/align_bottom"),content:this.handleGetContent(I18N.SettingPanel.vbottom,"align_bottom"),tipsClassName:this.handleGetTipsClassName("align_bottom"),disabled:!y,onClick:this.handleAlignBottom})]})}}const w=(0,r.Mz)([d.p$,I.lY],(m,y)=>{var T;const R=m.length>0&&((T=sdkStore.getHotItem(m[0]))==null?void 0:T.hotAttr.isLocked),q=!R&&!y&&(0,g.GS)(m),se=!R&&!y&&(0,g.oR)(m);return{canAlign:q,canDistribute:se}}),k=(0,n.Ng)(m=>w(m))(v),W=240,K=s.Ay.main.withConfig({displayName:"PanelBody",componentId:"sc-1f9pxef-0"})(["flex:1;width:",'px;overflow-x:hidden;overflow-y:auto;position:relative;[type="panel-body"]{width:',"px;padding:10px 10px 16px 10px;color:",";}.side{display:flex;justify-content:space-between;align-items:center;}.line{display:flex;justify-content:space-between;align-items:center;&:empty{position:relative;left:-5px;width:calc(100% + 10px);min-height:initial;border-bottom:1px solid #dedee4;}& > .side{flex:0 0 90px;}.left-label{height:14px;color:",";line-height:14px;}.right-content{width:140px;display:flex;flex-wrap:wrap;justify-content:space-between;color:",";&.flex-width{flex:1;}& > .side{flex:1;&:not(:last-child){margin-right:8px;}}}}&.widget-settings{.appearance-panel,.general-panel{.right-content{.select{width:100%;}}}.WorkspaceSelect{border-radius:6px;}.animation-panel{padding:0 16px;.line{display:flex;align-items:center;margin:0;}.right-content{width:140px;.select{width:100%;}.WorkspaceInputNumber.has-menu{.TextButton{&:hover{color:",";}&:active{color:",";}}}}.animation-box{margin:8px 0;background:",";overflow:hidden;border-radius:6px;}}}.image-settings{padding:0 14px;}.scroll-container{max-height:100%;max-width:100%;overflow-x:hidden;overflow-y:auto;scrollbar-width:none;}"],W,W,m=>m.theme.color_text_L2,m=>m.theme.color_text_L2,m=>m.theme.color_text_L2,m=>m.theme.color_text_L2,m=>m.theme.color_text_L2,m=>m.theme.color_bg_card);var G=e(77698),$=e(40988),P=e(20089),E=e(19013),H=e(68049);let O=function(m){return m.LayerInfoPanel="LayerInfoPanel",m.WidgetStatePanel="WidgetStatePanel",m.PositionInfoPanel="PositionInfoPanel",m.SizeInfoPanel="SizeInfoPanel",m.TableTypePanel="TableTypePanel",m.SmartGapPanel="SmartGapPanel",m.ClipContentPanel="ClipContentPanel",m.DevicePanel="DevicePanel",m}({});var V=e(69874),Q=e(23108),N=e(78661),L=e(21066),U=e(18250),A=e.n(U),D=e(5209),B=e(8452),j=e(73658),F=e(59189);const Y=["dispatch","isLocked","canVisible","canLocked","isVisible","layerName","canShowOverridesMenu","keySelection","canEditVector","vectorEditor","targetKey","type"];var X=e(51090),z=e(15400);const Z=s.Ay.div.withConfig({displayName:"styles__StyledLayerInfo",componentId:"sc-1clnmol-0"})(["height:40px;display:flex;align-items:center;margin:0 -14px 0px -9px;padding:0 10px 0 16px;color:",";font-weight:500;.layer-size{flex:1;border:1px solid transparent;cursor:text;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;.is-editing{textarea{font-weight:500;}}}.layer-name{flex:1;width:100%;height:23px;line-height:22px;overflow:hidden;border-bottom:1px solid transparent;font-weight:500;}.layerState{border-bottom:1px solid ",";}.isLayerHover{&:hover{border-bottom:1px solid ",";}}.action,.my-widget-action{display:inline-block;width:24px;height:24px;text-align:center;color:",";border-radius:4px;.icon{width:24px;height:24px;color:",";}&.icon-disabled{cursor:not-allowed;.icon{color:",";}}&:not(.icon-disabled):hover{background:",";}&:not(.icon-disabled):active,&:not(.icon-disabled).active{background:",";}}.actions,.my-widget-action{display:flex;align-items:center;margin-left:14px;}.divider{display:inline-block;content:'';width:1px;height:24px;background:",";margin-right:6px;margin-left:10px;}"],m=>m.theme.color_text_L1,m=>m.theme.color_proto,m=>m.theme.color_proto,m=>m.theme.color_text_L2,m=>m.theme.color_text_L1,m=>m.theme.color_text_disabled01,m=>m.theme.color_btn_secondary_hover,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_bg_border_02),J=m=>m.filter(y=>!(0,j.yT)(sdkStore.getHotItem(y).hotAttr.type));class te extends h.Component{constructor(y){super(y),(0,i.A)(this,"setElementRef",T=>this.$element=T),(0,i.A)(this,"handleEdit",()=>{this.setState({isEditing:!0})}),(0,i.A)(this,"handleLayerName",T=>{const{dispatch:R,keySelection:q}=this.props;if(T.trim()===""||T.includes("/"))MB.notice({text:I18N.Common.name_cannot_be_empty_or_symbol,type:"warning"});else{const Ne=J(q).map(Ge=>({key:Ge,hotAttr:{name:T}}));R({type:"entry:widget:change",payload:{flatChgList:Ne,shouldBreakLayerUICache:!0,shouldBreakCanvasUICache:!0}})}this.setState({isEditing:!1})}),(0,i.A)(this,"handleToggleLocked",()=>this.props.dispatch({type:"entry:toggle:lock"})),(0,i.A)(this,"handleToggleVisible",()=>this.props.dispatch({type:"entry:toggle:visible"})),(0,i.A)(this,"handleToggleIsOpenMenu",T=>{const{isOpenMenu:R}=this.state;if(this.setState({isOpenMenu:A()(T)?T:!R}),!R){const q=this.$element.getBoundingClientRect();this.setState({position:{left:q.left+q.width,top:q.top+q.height}})}}),(0,i.A)(this,"handleDetachMuban",()=>{this.props.dispatch({type:"entry:basket:transform",payload:{basketType:"bDanli",type:"detachMuban"}}),(0,D.kH)("master_operation_V8",{source:"\u56FE\u6807",operation_type:I18N.ContextMenu.detach_panel})}),(0,i.A)(this,"handleSyncMuban",async()=>{const{targetKey:T,dispatch:R}=this.props;await R({type:"entry:basket:muban:commitOwa"}),(0,D.kH)("master_operation_V8",{source:"\u56FE\u6807",operation_type:I18N.ContextMenu.sync_to_muban})}),(0,i.A)(this,"handleEditMuban",()=>{const{targetKey:T,dispatch:R}=this.props,q=sdkStore.getHotItem(T).hotAttr,se=sdkStore.getHotItem(q.refRBPageKey);R({type:"entry:edit:basket:source:muban",payload:{item:{...se,...se.hotAttr}}}),(0,D.kH)("master_operation_V8",{source:"\u56FE\u6807",operation_type:I18N.ContextMenu.edit_muban})}),(0,i.A)(this,"handleResetToMuban",()=>{this.props.dispatch({type:"entry:basket:muban:resetOwa"}),(0,D.kH)("master_operation_V8",{source:"\u56FE\u6807",operation_type:I18N.ContextMenu.reset_to_muban})}),(0,i.A)(this,"handleResetSize",()=>{var T,R;const{targetKey:q,dispatch:se}=this.props,ue=sdkStore.getHotItem(q).hotAttr,Ne=(T=sdkStore.getHotItem(ue==null?void 0:ue.refRBPageKey))==null?void 0:T.hotAttr.w,Ge=(R=sdkStore.getHotItem(ue==null?void 0:ue.refRBPageKey))==null?void 0:R.hotAttr.h;se({type:"entry:items:set:width",payload:{width:Ne}}),se({type:"entry:items:set:height",payload:{height:Ge}})}),(0,i.A)(this,"handleResetState",()=>{var T;const{dispatch:R,targetKey:q}=this.props,se=(T=sdkStore.getHotItem(sdkStore.getHotItem(q).hotAttr.refRBPageKey))==null||(T=T.hotAttr)==null?void 0:T.defaultCanvasKey;R({type:"entry:widget:change",payload:{flatChgList:[{key:q,hotAttr:{refContentKey:se}}]}})}),(0,i.A)(this,"handleResetScroll",()=>{var T;const{dispatch:R,targetKey:q}=this.props,se=(T=sdkStore.getHotItem(sdkStore.getHotItem(q).hotAttr.refRBPageKey))==null||(T=T.hotAttr)==null?void 0:T.scroll;R({type:"entry:widget:change",payload:{flatChgList:[{key:q,hotAttr:{scroll:se}}]}})}),(0,i.A)(this,"getMubanMenuList",T=>{var R,q,se,ue;const Ne=sdkStore.getHotItem(T).hotAttr,Ge=((R=sdkStore.getHotItem(Ne==null?void 0:Ne.refRBPageKey))==null||(R=R.hotAttr)==null?void 0:R.w)===Ne.w&&((q=sdkStore.getHotItem(Ne==null?void 0:Ne.refRBPageKey))==null?void 0:q.hotAttr.h)===Ne.h,at=((se=sdkStore.getHotItem(Ne==null?void 0:Ne.refRBPageKey))==null||(se=se.hotAttr)==null?void 0:se.defaultCanvasKey)===Ne.refContentKey,dt=((ue=sdkStore.getHotItem(Ne==null?void 0:Ne.refRBPageKey))==null||(ue=ue.hotAttr)==null?void 0:ue.scroll)===Ne.scroll,Bt=(0,g.K4)([T]),kt=(0,g.h1)([T]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(L.Dr,{text:I18N.ContextMenu.detach_panel,onClick:this.handleDetachMuban,disabled:!Bt}),(0,t.jsx)(L.Dr,{text:I18N.ContextMenu.sync_to_muban,onClick:this.handleSyncMuban,disabled:!kt||!sdkStore.hasOwa(T)}),(0,t.jsx)(L.Dr,{text:I18N.ContextMenu.edit_muban,onClick:this.handleEditMuban,disbaled:!kt}),(0,t.jsx)(z.cG,{}),(0,t.jsx)(L.Dr,{text:I18N.ContextMenu.reset_to_muban,onClick:this.handleResetToMuban,disabled:!sdkStore.hasOwa(T)}),!Ge&&(0,t.jsx)(L.Dr,{text:I18N.ContextMenu.reset_to_muban_size,onClick:this.handleResetSize,disabled:Ge}),!at&&(0,t.jsx)(L.Dr,{text:I18N.ContextMenu.reset_to_muban_state,onClick:this.handleResetState,disabled:at}),!dt&&(0,t.jsx)(L.Dr,{text:I18N.ContextMenu.reset_to_muban_scroll,onClick:this.handleResetScroll,disabled:dt})]})}),(0,i.A)(this,"getWidgetMenuList",T=>(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(L.Dr,{text:I18N.ContextMenu.reset_to_muban,onClick:this.handleResetToMuban,disabled:!sdkStore.hasOwa(T)})})),(0,i.A)(this,"handleEditVector",()=>{const{dispatch:T,keySelection:R,targetKey:q}=this.props,se=J(R);T({type:"entry:vector:enter:edit",payload:{key:se[0]}}),T({type:"update:screenContainer:state",payload:{addVectorSource:sdkStore.getHotItem(q).hotAttr.type===P.x.WVector?null:B.dZ.TransformSettingPanel}})}),this.state={isEditing:!1,isOpenMenu:!1,position:{left:0,top:0}}}shouldComponentUpdate(y,T,R){return(0,F.N)(Y).call(this,y,T)}render(){const{isEditing:y,isOpenMenu:T,position:R}=this.state,{type:q,targetKey:se,layerName:ue,isVisible:Ne,isLocked:Ge,canLocked:at,canVisible:dt,canShowOverridesMenu:Bt,canEditVector:kt,vectorEditor:qt,keySelection:sn}=this.props,jn=J(sn);return(0,t.jsxs)(Z,{className:"layer-info",children:[(0,t.jsx)("div",{className:p()("layer-size",{isLayerHover:!y,layerState:y}),onClick:this.handleEdit,children:(0,t.jsx)(V.A,{value:ue,className:"layer-name",isEditing:y,onConfirm:this.handleLayerName},ue)}),!y&&(0,t.jsxs)("div",{className:"actions",children:[Bt&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{ref:this.setElementRef,className:p()("action",{active:T}),children:(0,t.jsx)(Q.P,{iconClassName:"action muban-menu-icon",onClick:this.handleToggleIsOpenMenu,name:"left_panel/nav/template",direction:"down",tagName:"SVGIcon",content:"\u6BCD\u7248\u5B9E\u4F8B\u8BBE\u7F6E"})}),T&&(0,t.jsx)(ge,{position:R,onClose:()=>this.handleToggleIsOpenMenu(!1),children:this.getWidgetMenuList(se)})]}),kt&&(jn==null?void 0:jn.length)===1&&!Bt&&(0,t.jsx)(Q.P,{iconClassName:p()("action",{active:!!qt}),onClick:this.handleEditVector,name:"setting_panel/vector/edit",content:I18N.SettingPanel.vectorSetting.editPath,direction:"down",tagName:"SVGIcon"}),(0,t.jsx)(Q.P,{iconClassName:p()("action",{active:!Ne},{"icon-disabled":!dt}),onClick:dt?this.handleToggleVisible:null,name:"common/"+(Ne?"visible":"invisible"),content:Ne?I18N.SettingPanel.hide:I18N.ContextMenu.show,hotKeyText:N.V.hide,direction:"down",tagName:"SVGIcon"}),(0,t.jsx)(Q.P,{iconClassName:p()("action",{active:Ge},{"icon-disabled":!at}),onClick:at?this.handleToggleLocked:null,name:"common/"+(Ge?"lock":"unlock"),content:Ge?I18N.ContextMenu.unlock:I18N.SettingPanel.lock_widget_tip,hotKeyText:N.V.lock,direction:"down",tagName:"SVGIcon"})]})]})}}const ge=(0,s.Ay)(L.Ay).withConfig({displayName:"indexui__StyledMenuContent",componentId:"sc-63g9re-0"})(["",";"],X.ZJ);var pe=e(79150),Ce=e(25234),me=e(70248),be=e(60589),ie=e(8614),oe=e(20459),he=e(93971);const ce=m=>{let{selections:y}=m;const T=(0,n.wA)(),R=(0,h.useMemo)(()=>{const ue=y.map(Ne=>sdkStore.getHotItem(Ne));return(0,g.mO)(ue)},[y]),q=async()=>{var ue,Ne;const Ge=((ue=MB)==null||(ue=ue.__store__)==null||(ue=ue.getState())==null?void 0:ue.editor.state.mode.basketEditor.key)||((Ne=MB)==null||(Ne=Ne.__store__)==null||(Ne=Ne.getState())==null?void 0:Ne.editor.state.mode.basketEditor.refPage);T({type:"entry:create:basket",payload:{basketType:"bDanli",isToDoubleTheCanvas:!0}}),T({type:"entry:screenContainer:enter:editing:widget"}),(0,he.XG)("\u53F3\u4FA7\u6DFB\u52A0\u7EC4\u4EF6\u72B6\u6001",Ge,y||[])},se=async()=>{var ue,Ne;y.length===1&&((ue=sdkStore.getHotItem(y[0]))==null?void 0:ue.hotAttr.type)==="wBasket"&&((Ne=sdkStore.getHotItem(y[0]))==null?void 0:Ne.hotAttr.basket)==="bDanli"?T({type:"modal:update:state",payload:{nestedDynamicModal:{isOpen:!0,from:"rightPanel",onConfirm:()=>q()}}}):q()};return(0,t.jsx)(Ce.jf,{type:"secondary",size:"tiny",corner:"smooth",disabled:!R,className:"state-button",onClick:se,children:"\u6DFB\u52A0\u7EC4\u4EF6\u72B6\u6001"})},re=s.Ay.div.withConfig({displayName:"style__StyledMubanLayerInfoPanel",componentId:"sc-1t1wc5o-0"})(["margin:0 -14px 0px -9px;padding:8px 10px 0px 16px;color:",";font-weight:500;border-bottom:1px solid ",";.muban-select-actions-menu{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px;margin-left:-6px;width:100%;.action-icon{transform:rotate(90deg);margin-left:8px;}span{display:inline-block;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;text-align:left;}.select-menu{padding-left:6px;display:flex;align-items:center;padding-left:6px;border:1px solid transparent;border-radius:6px;color:",";font-weight:500;margin-right:8px;width:auto;max-width:calc(100% - 32px);&.disabled{opacity:0.3;}.expand-icon.svg-icon{color:",";flex:0 0 26px;}&:hover,&.is-active{border-color:",";.expand-icon{color:",";}}}}.lib-source-name{color:",";display:flex;align-items:center;font-weight:400;&:hover{color:",";}.lib-name{overflow:hidden;text-overflow:clip;white-space:nowrap;}.svg-icon{flex:0 0 24px}}.buttons-wrap{height:40px;display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;.button-root{width:98px;font-weight:400;}}.panel-state-line{margin-left:-16px;border-top:1px solid ",";padding-left:16px;width:calc(100% + 32px);height:50px;}"],m=>m.theme.color_text_L1,m=>m.theme.color_bg_border_01,m=>m.theme.color_text_L1,m=>m.theme.color_text_L3,m=>m.theme.color_bg_border_02,m=>m.theme.color_text_L1,m=>m.theme.color_text_L2,m=>m.theme.color_text_L1,m=>m.theme.color_bg_border_01),fe=(0,s.Ay)(L.Ay).withConfig({displayName:"style__StyledMenuContent",componentId:"sc-1t1wc5o-1"})(["",";ul li.MenuItem.hasIcon a{padding-left:8px;.svg-icon{margin-right:8px;&.reset_to_muban{path{fill:none;stroke:currentColor;}}}}"],X.ZJ);var Se=e(37342);class Me extends h.PureComponent{constructor(y){super(y),(0,i.A)(this,"setElementRef",T=>this.$element=T),(0,i.A)(this,"handleToggleVisible",()=>{this.props.dispatch({type:"entry:toggle:visible"}),this.setState({selectedItems:this.props.selections.map(T=>sdkStore.getHotItem(T))})}),(0,i.A)(this,"handleToggleLocked",()=>{this.props.dispatch({type:"entry:toggle:lock"}),this.setState({selectedItems:this.props.selections.map(T=>sdkStore.getHotItem(T))})}),(0,i.A)(this,"handleCloseMenu",()=>{this.setState({isOpenMenu:!1})}),(0,i.A)(this,"handleOpenMenu",()=>{const T=this.$element.getBoundingClientRect();this.setState({isOpenMenu:!0,position:{left:T.left+T.width,top:T.top+T.height}})}),(0,i.A)(this,"handleDetachMuban",()=>{this.props.dispatch({type:"entry:basket:transform",payload:{basketType:"bDanli",type:"detachMuban"}}),(0,D.kH)("master_operation_V8",{source:"\u56FE\u6807",operation_type:I18N.ContextMenu.detach_panel})}),(0,i.A)(this,"handleSyncMuban",async()=>{const{dispatch:T}=this.props;await T({type:"entry:basket:muban:commitOwa"}),T({type:"entry:rebuild:screen-widget-tree"}),(0,D.kH)("master_operation_V8",{source:"\u56FE\u6807",operation_type:I18N.ContextMenu.sync_to_muban})}),(0,i.A)(this,"handleEditMuban",()=>{var T;const{dispatch:R}=this.props,{selectedItems:q}=this.state,se=q[0].key,ue=(T=sdkStore.getHotItem(se))==null?void 0:T.hotAttr,Ne=sdkStore.getHotItem(ue==null?void 0:ue.refRBPageKey);R({type:"entry:edit:basket:source:muban",payload:{item:{...Ne,...Ne.hotAttr}}}),(0,D.kH)("master_operation_V8",{source:"\u56FE\u6807",operation_type:I18N.ContextMenu.edit_muban})}),(0,i.A)(this,"handleResetToMuban",()=>{this.props.dispatch({type:"entry:basket:muban:resetOwa"}),(0,D.kH)("master_operation_V8",{source:"\u56FE\u6807",operation_type:I18N.ContextMenu.reset_to_muban})}),(0,i.A)(this,"handleResetSize",()=>{var T,R,q;const{dispatch:se}=this.props,{selectedItems:ue}=this.state,Ne=ue[0].key,Ge=(T=sdkStore.getHotItem(Ne))==null?void 0:T.hotAttr,at=(R=sdkStore.getHotItem(Ge==null?void 0:Ge.refRBPageKey))==null||(R=R.hotAttr)==null?void 0:R.w,dt=(q=sdkStore.getHotItem(Ge==null?void 0:Ge.refRBPageKey))==null||(q=q.hotAttr)==null?void 0:q.h;se({type:"entry:items:set:width",payload:{width:at}}),se({type:"entry:items:set:height",payload:{height:dt}})}),(0,i.A)(this,"handleResetState",()=>{var T,R;const{dispatch:q}=this.props,{selectedItems:se}=this.state,ue=se[0].key,Ne=(T=sdkStore.getHotItem(ue))==null?void 0:T.hotAttr,Ge=(R=sdkStore.getHotItem(Ne.refRBPageKey))==null||(R=R.hotAttr)==null?void 0:R.defaultCanvasKey;q({type:"entry:widget:change",payload:{flatChgList:[{key:ue,hotAttr:{refContentKey:Ge}}]}})}),(0,i.A)(this,"handleResetScroll",()=>{var T,R;const{dispatch:q}=this.props,{selectedItems:se}=this.state,ue=se[0].key,Ne=(T=sdkStore.getHotItem(ue))==null?void 0:T.hotAttr,Ge=(R=sdkStore.getHotItem(Ne==null?void 0:Ne.refRBPageKey))==null||(R=R.hotAttr)==null?void 0:R.scroll;q({type:"entry:widget:change",payload:{flatChgList:[{key:ue,hotAttr:{scroll:Ge}}]}})}),(0,i.A)(this,"handleCreateWidget",async()=>{var T,R;const{dispatch:q,selections:se}=this.props,ue=((T=MB)==null||(T=T.__store__)==null||(T=T.getState())==null?void 0:T.editor.state.mode.basketEditor.key)||((R=MB)==null||(R=R.__store__)==null||(R=R.getState())==null?void 0:R.editor.state.mode.basketEditor.refPage);q({type:"entry:create:basket",payload:{basketType:"bDanli",isToDoubleTheCanvas:!0}}),q({type:"entry:screenContainer:enter:editing:widget"}),(0,he.XG)("\u53F3\u4FA7\u6DFB\u52A0\u7EC4\u4EF6\u72B6\u6001",ue,se||[])}),(0,i.A)(this,"handleCreateWidgetState",async()=>{var T,R;const{dispatch:q,selections:se}=this.props;se.length===1&&((T=sdkStore.getHotItem(se[0]))==null?void 0:T.hotAttr.type)==="wBasket"&&((R=sdkStore.getHotItem(se[0]))==null?void 0:R.hotAttr.basket)==="bDanli"?q({type:"modal:update:state",payload:{nestedDynamicModal:{isOpen:!0,from:"rightPanel",onConfirm:()=>this.handleCreateWidget()}}}):this.handleCreateWidget()}),(0,i.A)(this,"getMubanMenuList",()=>{const{selectedItems:T}=this.state,R=T.every(at=>{var dt;return!((dt=sdkStore.getHotItem(at.hotAttr.refRBPageKey))!=null&&(dt=dt.hotAttr)!=null&&dt.libKey)}),q=T[0].key;if(R){var se,ue,Ne,Ge;const at=sdkStore.getHotItem(q).hotAttr,dt=((se=sdkStore.getHotItem(at==null?void 0:at.refRBPageKey))==null||(se=se.hotAttr)==null?void 0:se.w)===at.w&&((ue=sdkStore.getHotItem(at==null?void 0:at.refRBPageKey))==null?void 0:ue.hotAttr.h)===at.h,Bt=((Ne=sdkStore.getHotItem(at==null?void 0:at.refRBPageKey))==null||(Ne=Ne.hotAttr)==null?void 0:Ne.defaultCanvasKey)===at.refContentKey,kt=((Ge=sdkStore.getHotItem(at==null?void 0:at.refRBPageKey))==null||(Ge=Ge.hotAttr)==null?void 0:Ge.scroll)===at.scroll,qt=(0,g.h1)([q]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(L.Dr,{text:I18N.ContextMenu.sync_to_muban,icon:(0,t.jsx)(x.C,{name:"setting_panel/muban/sync_to_muban",size:16}),onClick:this.handleSyncMuban,disabled:!qt||!sdkStore.hasOwa(q)}),(0,t.jsx)(L.Dr,{text:I18N.ContextMenu.edit_muban,icon:(0,t.jsx)(x.C,{name:"setting_panel/muban/edit_muban",size:16}),onClick:this.handleEditMuban,disbaled:!qt}),(0,t.jsx)(L.Dr,{text:I18N.SettingPanel.add_widget_state,icon:(0,t.jsx)(x.C,{name:"setting_panel/muban/add_widget_state",size:16}),onClick:this.handleCreateWidgetState}),(0,t.jsx)(L.Dr,{text:I18N.ContextMenu.reset_to_muban,icon:(0,t.jsx)(x.C,{name:"setting_panel/muban/reset_to_muban",className:"reset_to_muban",size:16}),onClick:this.handleResetToMuban,disabled:!sdkStore.hasOwa(q)}),!dt&&(0,t.jsx)(L.Dr,{text:I18N.ContextMenu.reset_to_muban_size,icon:(0,t.jsx)(x.C,{name:"setting_panel/muban/reset_to_muban_size",size:16}),onClick:this.handleResetSize,disabled:dt}),!Bt&&(0,t.jsx)(L.Dr,{text:I18N.ContextMenu.reset_to_muban_state,icon:(0,t.jsx)(x.C,{name:"setting_panel/muban/reset_to_muban_state",size:16}),onClick:this.handleResetState,disabled:Bt}),!kt&&(0,t.jsx)(L.Dr,{text:I18N.ContextMenu.reset_to_muban_scroll,icon:(0,t.jsx)(x.C,{name:"setting_panel/muban/reset_to_muban_scroll",size:16}),onClick:this.handleResetScroll,disabled:kt}),(0,t.jsx)(z.cG,{})]})}else return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(L.Dr,{text:I18N.ContextMenu.reset_to_muban,icon:(0,t.jsx)(x.C,{name:"setting_panel/muban/reset_to_muban",className:"reset_to_muban",size:16}),onClick:this.handleResetToMuban,disabled:!sdkStore.hasOwa(q)}),(0,t.jsx)(z.cG,{})]})}),(0,i.A)(this,"handleGoToProjectDesign",T=>{var R,q;if(!T)return;const{selectedItems:se,currentRefPage:ue}=this.state,Ne=(T==null||(R=T.hotAttr)==null?void 0:R.extInfo.projectCid)||(T==null?void 0:T.cid);if(Ne.startsWith("mt")){(0,Se.JW)("/com24/details/"+Ne);return}const Ge=se[0];Ne&&(0,Se.JW)("/proto/design/"+Ne+"?basket_cid="+((ue==null?void 0:ue.key)||(Ge==null||(q=Ge.hotAttr)==null?void 0:q.refRBPageKey)))}),(0,i.A)(this,"handleChangeSuccess",T=>{T&&this.setState({currentRefPage:T,currentLibKey:T.hotAttr.libKey||""})}),(0,i.A)(this,"handleOpenMubanLibModal",T=>{T.stopPropagation();const{dispatch:R,isOpenLibPanelModal:q}=this.props;if(q)R({type:"modal:reset:popup:state",payload:{modalName:"libPanelModal"}});else{const{left:se,top:ue,height:Ne,right:Ge}=T.target.getBoundingClientRect(),at={left:se>=260?Math.max(se-260>>0,0):Ge+20,top:Math.max(ue+Ne/2-340>>0,56)};R({type:"modal:update:state",payload:{libPanelModal:{isOpen:!0,type:"muban",position:at,onSuccessCallBack:this.handleChangeSuccess}}})}}),this.state={selectedItems:y.selections.map(T=>sdkStore.getHotItem(T)),isMultiple:y.selections.length>1,isOpenMenu:!1,currentRefPage:null,currentLibKey:"",position:{left:0,top:0}}}componentDidUpdate(y,T,R){y.selections!==this.props.selections&&this.setState({selectedItems:this.props.selections.map(q=>sdkStore.getHotItem(q)),isMultiple:this.props.selections.length>1})}render(){var y,T,R,q;const{editingBasketRefPage:se,selections:ue,dispatch:Ne,teamLibList:Ge}=this.props,{selectedItems:at,isMultiple:dt,isOpenMenu:Bt,position:kt,currentRefPage:qt,currentLibKey:sn}=this.state,jn=at[0],Dn=qt||sdkStore.getHotItem(jn==null||(y=jn.hotAttr)==null?void 0:y.refRBPageKey),lo=sn||(Dn==null||(T=Dn.hotAttr)==null?void 0:T.libKey),Wo=ue.every(ns=>{var qo;return((qo=sdkStore.getHotItem(ns))==null?void 0:qo.hotAttr.refRBPageKey)===(Dn==null?void 0:Dn.key)}),Zo=at.every(ns=>!(0,me.OO)(ns.key)),Yo=jn.hotAttr.isLock,is=jn.hotAttr.isVisible,os=(0,g.K4)([jn==null?void 0:jn.key]),es=lo?sdkStore.getSubHotItemList("B@ext").find(ns=>{var qo,ds;return((qo=ns.hotAttr)==null?void 0:qo.extType)==="extProtoLib"&&((ds=ns.hotAttr)==null||(ds=ds.extInfo)==null?void 0:ds.flatKey)===lo})||Ge.find(ns=>ns.sclib_cid===lo):null;return(0,t.jsxs)(re,{children:[(0,t.jsxs)("div",{className:"muban-select-actions-menu height-32",children:[(0,t.jsxs)("button",{className:p()("select-menu",{disabled:!Zo}),onClick:Zo?this.handleOpenMubanLibModal:()=>{},children:[(0,t.jsx)("span",{children:Wo?Dn==null||(R=Dn.hotAttr)==null?void 0:R.name:"\u591A\u9009\u7EC4\u4EF6"}),(0,t.jsx)(x.C,{name:"common/expand@26",size:26,className:"expand-icon"})]}),(0,t.jsx)(pe.A,{name:"left_panel/screen_action_menu",className:"action-icon",size:24,ref:this.setElementRef,onClick:this.handleOpenMenu})]}),!dt&&(0,t.jsx)("div",{className:"lib-source-name height-32",onClick:()=>this.handleGoToProjectDesign(es),children:es?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"lib-name",children:"\u524D\u5F80 "+((es==null||(q=es.hotAttr)==null?void 0:q.name)||(es==null?void 0:es.name))+" \u8D44\u6E90\u5E93"}),(0,t.jsx)(x.C,{name:"setting_panel/font/hyper_link",size:24})]}):lo?"\u6765\u81EA \u672A\u77E5\u8D44\u6E90\u5E93":"\u6765\u81EA \u672C\u5730\u8D44\u6E90\u5E93"}),(0,t.jsxs)("div",{className:"buttons-wrap",children:[(0,t.jsx)(Ce.jf,{type:"secondary",size:"tiny",corner:"smooth",disabled:!os,onClick:this.handleDetachMuban,children:"\u8131\u79BB\u6BCD\u7248"}),(0,t.jsx)(ce,{selections:ue})]}),!dt&&(0,t.jsx)(oe._,{panel:at[0],editingBasketRefPage:se,className:"height-40",dispatch:Ne}),Bt&&(0,t.jsxs)(fe,{position:kt,onClose:this.handleCloseMenu,children:[this.getMubanMenuList(),(0,t.jsx)(L.Dr,{text:Yo?I18N.ContextMenu.unlock:I18N.ContextMenu.lock_widget,icon:(0,t.jsx)(x.C,{name:"setting_panel/muban/"+(Yo?"lock":"unlock"),size:16}),onClick:this.handleToggleLocked}),(0,t.jsx)(L.Dr,{text:is?I18N.ContextMenu.hide:I18N.ContextMenu.show,icon:(0,t.jsx)(x.C,{name:"setting_panel/muban/"+(is?"visible":"invisible"),size:16}),onClick:this.handleToggleVisible})]})]})}}const Ie=(0,r.Mz)([I.bt,be.FK,ie.TP],(m,y,T)=>({editingBasketRefPage:m,isOpenLibPanelModal:y.isOpen,teamLibList:T})),de=(0,n.Ng)(m=>Ie(m))(Me);var xe=e(61790);class Le extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleCreateWidget",async()=>{var y,T;const{dispatch:R,selections:q}=this.props,se=((y=MB)==null||(y=y.__store__)==null||(y=y.getState())==null?void 0:y.editor.state.mode.basketEditor.key)||((T=MB)==null||(T=T.__store__)==null||(T=T.getState())==null?void 0:T.editor.state.mode.basketEditor.refPage);R({type:"entry:create:basket",payload:{basketType:"bDanli",isToDoubleTheCanvas:!0}}),R({type:"entry:screenContainer:enter:editing:widget"}),(0,he.XG)("\u53F3\u4FA7\u6DFB\u52A0\u7EC4\u4EF6\u72B6\u6001",se,q||[])}),(0,i.A)(this,"onCreateWidgetState",async()=>{var y,T;const{dispatch:R,selections:q}=this.props;q.length===1&&((y=sdkStore.getHotItem(q[0]))==null?void 0:y.hotAttr.type)==="wBasket"&&((T=sdkStore.getHotItem(q[0]))==null?void 0:T.hotAttr.basket)==="bDanli"?R({type:"modal:update:state",payload:{nestedDynamicModal:{isOpen:!0,from:"rightPanel",onConfirm:()=>this.handleCreateWidget()}}}):this.handleCreateWidget()}),(0,i.A)(this,"handleCreateMuban",async y=>{var T;if(y.preventDefault(),MB.global.experienceLoginModalHelper("isSave")||this.props.disabled)return;const{dispatch:R,selections:q}=this.props;if(q.length===0)return;const se=(T=sdkStore.getHotItem(q[0]))==null?void 0:T.hotAttr,ue=(se==null?void 0:se.name)||(0,xe.KD)(q[0]);R({type:"modal:update:state",payload:{masterCreateModal:{isOpen:!0,name:ue,onConfirm:async Ne=>{let{name:Ge,onSuccess:at}=Ne;R({type:"entry:create:basket",payload:{basketType:"bMuban",attr:{name:Ge},onSuccess:at,isCreateFolder:!0}})}}}})}),(0,i.A)(this,"handleDetachBasket",()=>{MB.global.experienceLoginModalHelper("isSave")||this.props.dispatch({type:"entry:detach:basket"})})}render(){const{canCreateWidgetState:y,selections:T,editingBasketRefPage:R,isEditingCombo:q,dispatch:se}=this.props,ue=T.every(Ge=>{var at;const dt=(at=sdkStore.getHotItem(Ge))==null?void 0:at.hotAttr;return(dt==null?void 0:dt.type)==="wBasket"&&(dt==null?void 0:dt.basket)==="bDanli"}),Ne=sdkStore.getHotItem(T[0]);return(0,t.jsxs)(We,{children:[y&&(0,t.jsxs)("div",{className:"actions-button",children:[(0,t.jsx)(Ce.jf,{type:"secondary",size:"tiny",corner:"smooth",className:"state-button",onClick:this.handleCreateMuban,disabled:q,children:(0,t.jsx)("p",{children:I18N.ContextMenu.create_master})}),(0,t.jsx)(Ce.jf,{type:"secondary",size:"tiny",corner:"smooth",className:"state-button",onClick:ue?this.handleDetachBasket:this.onCreateWidgetState,children:(0,t.jsx)("p",{children:ue?"\u5206\u79BB\u5F53\u524D\u72B6\u6001":I18N.SettingPanel.add_widget_state})})]}),T.length===1&&(Ne==null?void 0:Ne.hotAttr.type)==="wBasket"&&(0,t.jsx)(oe._,{panel:Ne,editingBasketRefPage:R,className:"height-40",dispatch:se})]})}}const ve=(0,r.Mz)([I.bt,I.oO],(m,y)=>({editingBasketRefPage:m,isEditingCombo:y})),je=(0,n.Ng)(m=>ve(m))(Le),We=s.Ay.div.withConfig({displayName:"indexui__StyledWidgetStateCreateButton",componentId:"sc-6gv1of-0"})(["display:flex;flex-direction:column;border-bottom:1px solid ",";margin:0px -14px 8px -9px;padding:0 16px;.actions-button{display:flex;align-items:center;justify-content:space-between;height:40px;margin-bottom:8px;.state-button{&.button-root{width:98px;font-weight:400;}}}.panel-state-line{margin-left:-16px;border-top:1px solid ",";height:42px;padding-left:16px;width:calc(100% + 32px);height:50px;}"],m=>m.theme.color_bg_border_01,m=>m.theme.color_bg_border_01);var Ae=e(5649),we=e(30523),_e=e(20166);const Te=(0,t.jsx)(x.C,{className:"design-rotate",name:"setting_panel/general/rotate"}),Ye=[P.x.WArrow,P.x.WLine];class Fe extends h.PureComponent{constructor(y){super(y),(0,i.A)(this,"handleLeft",T=>{const{dispatch:R,type:q}=this.props;typeof T=="number"&&(R({type:"entry:items:set:left",payload:{left:T}}),R({type:"entry:auto:show:hide:item"}),q===P.x.Canvas&&(0,_e.A9)({attr:"x"}))}),(0,i.A)(this,"handleTop",T=>{const{dispatch:R,type:q}=this.props;typeof T=="number"&&(R({type:"entry:items:set:top",payload:{top:T}}),R({type:"entry:auto:show:hide:item"}),q===P.x.Canvas&&(0,_e.A9)({attr:"y"}))}),(0,i.A)(this,"handleRotate",(T,R)=>{const{dispatch:q}=this.props,se=parseInt(T)||0;q({type:"entry:set:rotate",payload:{value:se,refVar:R}}),q({type:"entry:auto:show:hide:item"})}),this.state={canRotate:!1,isSelectItemsInMuban:!1,isShowMultipleLeft:!1,isShowMultipleTop:!1,prevSelections:[]}}static getDerivedStateFromProps(y,T){if(y.selections!==T.prevSelections){const q={canRotate:(0,g.QH)(y.selections),isSelectItemsInMuban:(0,g.td)(y.selections),prevSelections:y.selections};if(y.selections.length>1){let se=!1,ue=!1;for(const Ne of y.selections.slice(1)){var R;const at=sdkStore.getHotItem(Ne).hotAttr.type===P.x.Canvas?null:sdkStore.locUpColdCanvasKey(Ne),dt=(R=MB.getCurrentScreen())==null?void 0:R.cid,{x:Bt,y:kt,w:qt,h:sn}=sdkStore.getRelocateLocalBound(Ne,at||dt);!se&&y.left!==Bt-qt/2&&(se=!0),!ue&&y.top!==kt-sn/2&&(ue=!0)}return{...q,isShowMultipleLeft:se,isShowMultipleTop:ue}}return{...q,isShowMultipleLeft:!1,isShowMultipleTop:!1}}return null}render(){const{top:y,left:T,canX:R,canY:q,hasRotate:se=!0,ro:ue,selections:Ne,type:Ge,refVars:at}=this.props,{canRotate:dt,isSelectItemsInMuban:Bt,isShowMultipleLeft:kt,isShowMultipleTop:qt}=this.state,sn=Ne.length>1?I18N.SettingPanel.multiple_value:"";return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"general-line height-32",style:{marginTop:8},children:[(0,t.jsx)(Ae.A,{className:"general-input step-input-width-72",title:"X",attr:"left",value:kt?void 0:T,disabled:!R||Bt,min:-99999,max:99999,placeholder:sn,isNotVerify:kt,onConfirm:this.handleLeft}),(0,t.jsx)(Ae.A,{className:"general-input step-input-width-72",title:"Y",attr:"top",value:qt?void 0:y,disabled:!q||Bt,min:-99999,max:99999,isNotVerify:qt,placeholder:sn,onConfirm:this.handleTop}),se&&(!0?(0,t.jsx)(Ae.s,{className:"general-input screen-rotate-input-number step-input-width-72",disabled:!dt||Bt,title:Te,attr:"ro",suffix:"\xB0",min:-360,max:360,value:ue,withToolTip:!0,toolTipContent:I18N.SettingPanel.rotate,direction:"down",onConfirm:Dn=>this.handleRotate(Dn)}):(0,t.jsx)(we.Yw,{type:"number",inputClassName:"general-input screen-rotate-input-number step-input-width-72",isLongTimeHoverForInput:!0,disabled:!dt||Bt,title:Te,attr:"ro",suffix:"\xB0",min:-360,max:360,value:ue,refVar:at==null?void 0:at.r,withToolTip:!0,toolTipContent:I18N.SettingPanel.rotate,direction:"down",onConfirm:this.handleRotate}))]})})}}const Ve=["dispatch","isShowMultipleWidth","isShowMultipleHeight","placeholder","canW","width","minWidth","canH","height","minHeight","canAspectRatio","isLockAspect","type","isSelectItemsInMuban","isSelectItemsAllMind","selections","isLine","disableAspectRatio","disableRefVar","refVars"];class rt extends h.Component{constructor(){super(...arguments),(0,i.A)(this,"handleWidth",(y,T)=>{const{minWidth:R,type:q,isLine:se,dispatch:ue}=this.props;if(typeof y!="number")return;const Ne=y>R?y:R;if(se){const Ge=parseInt(String(Ne))||0;ue({type:"entry:set:line:length",payload:{value:Ge,refVar:T}})}else ue({type:"entry:items:set:width",payload:{width:Ne,refVar:T}});ue({type:"entry:auto:show:hide:item"}),q===P.x.Canvas&&(0,_e.A9)({attr:"w"})}),(0,i.A)(this,"handleHeight",(y,T)=>{const{minHeight:R,type:q,dispatch:se}=this.props;if(typeof y!="number")return;const ue=y>R?y:R;se({type:"entry:items:set:height",payload:{height:ue,refVar:T}}),se({type:"entry:auto:show:hide:item"}),q===P.x.Canvas&&(0,_e.A9)({attr:"h"})}),(0,i.A)(this,"handleChangeAspectRatio",()=>{const{canAspectRatio:y,isLockAspect:T,dispatch:R,selections:q}=this.props;if(!y)return;const se=q.map(ue=>({key:ue,hotAttr:{isLockAspect:!T}}));R({type:"entry:widget:change",payload:{flatChgList:se}})})}shouldComponentUpdate(y,T){return(0,F.N)(Ve).call(this,y,T)}render(){const{isShowMultipleWidth:y,isShowMultipleHeight:T,placeholder:R,disableRefVar:q,canW:se,width:ue,minWidth:Ne,canH:Ge,height:at,minHeight:dt,disableAspectRatio:Bt,canAspectRatio:kt,isLockAspect:qt,isSelectItemsInMuban:sn,isSelectItemsAllMind:jn,refVars:Dn}=this.props;return(0,t.jsxs)("div",{className:"general-line height-32",style:{marginTop:2},children:[q?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Ae.A,{className:"general-input step-input-width-72",title:"W",attr:"width",value:y?void 0:ue,isNotVerify:y,disabled:!se||sn||jn,min:Ne,max:99999,placeholder:R,onConfirm:lo=>this.handleWidth(lo)}),(0,t.jsx)(Ae.A,{className:"general-input step-input-width-72",title:"H",attr:"height",value:T?void 0:at,isNotVerify:T,disabled:!Ge||sn||jn,min:dt,max:99999,placeholder:R,onConfirm:lo=>this.handleHeight(lo)})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(we.Yw,{type:"number",className:"step-input-width-72",inputClassName:"general-input",title:"W",value:y?void 0:qt&&Dn!=null&&Dn.h?ue:Math.round(ue),refVar:Dn==null?void 0:Dn.w,isNotVerify:y,disabled:!se||sn||jn,min:Ne,max:99999,placeholder:R,onConfirm:this.handleWidth}),(0,t.jsx)(we.Yw,{type:"number",className:"step-input-width-72",inputClassName:"general-input",title:"H",value:T?void 0:qt&&Dn!=null&&Dn.w?at:Math.round(at),refVar:Dn==null?void 0:Dn.h,isNotVerify:T,disabled:!Ge||sn||jn,min:dt,max:99999,placeholder:R,onConfirm:this.handleHeight})]}),(0,t.jsx)(_.Q,{className:p()("aspectRatioButton",{disabled:!kt,locked:qt,unLocked:!qt}),icon:(0,t.jsx)(x.C,{name:qt?"setting_panel/aspectRatio/lock":"setting_panel/aspectRatio/unlock"}),onClick:this.handleChangeAspectRatio,content:I18N.SettingPanel.lock_ratio,direction:"down",disabled:sn||jn||Bt||(Dn==null?void 0:Dn.w)&&(Dn==null?void 0:Dn.h)})]})}}(0,i.A)(rt,"defaultProps",{minWidth:1,minHeight:1});var Ue=e(40860);class et extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleChangeTableType",y=>{const{dispatch:T}=this.props,{index:R}=y.currentTarget.dataset;T({type:"entry:set:table:style:type",payload:{type:Number(R)}})})}render(){const{styleType:y}=this.props;return(0,t.jsxs)("div",{className:p()("general-line","tableStyleType"),children:[(0,t.jsx)("div",{className:"name",children:I18N.SettingPanel.type}),(0,t.jsx)("div",{className:"tableStyleTypeList",children:Ue.hG.map((T,R)=>(0,t.jsx)("div",{"data-index":R,className:p()({tableStyleItem:"tableStyleItem",active:(y||0)===R}),onClick:this.handleChangeTableType,children:(0,t.jsx)(x.C,{className:"tableStyleItem-"+T,name:"setting_panel/table/"+T})},T))})]})}}var lt=e(87765),Je=e(27879),Xe=e(64972);class st extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleSmartSelectionGapChange",(y,T)=>{const{dispatch:R}=this.props;R({type:"entry:smart-selection:updating:gap",payload:{[T]:y,shouldItemsUpdate:!0}}),R({type:"entry:select:smartly"})}),(0,i.A)(this,"handleSmartSelectionGapResizeMove",()=>{const{dispatch:y}=this.props;y(Xe.UU.update({isResizingGap:!0}))}),(0,i.A)(this,"handleSmartSelectionGapResizeEnd",()=>{const{dispatch:y}=this.props;y(Xe.UU.update({isResizingGap:!1}))})}render(){const{isSmartSelectionActive:y,colGap:T,minColGap:R,rowGap:q,minRowGap:se}=this.props;return y?(0,t.jsxs)("div",{className:"general-line height-32",children:[(0,t.jsx)(Ae.s,{className:"general-input col-gap step-input-width-72",title:(0,t.jsx)(x.C,{name:"setting_panel/smart_selection/col_gap"}),attr:"colGap",value:T,disabled:T===null,min:R,max:99999,onResizeMove:this.handleSmartSelectionGapResizeMove,onResizeEnd:this.handleSmartSelectionGapResizeEnd,onConfirm:this.handleSmartSelectionGapChange,withToolTip:!0,toolTipContent:I18N.SettingPanel.horizontal_spacing,direction:"down"}),(0,t.jsx)(Ae.s,{className:"general-input row-gap step-input-width-72",title:(0,t.jsx)(x.C,{name:"setting_panel/smart_selection/row_gap"}),attr:"rowGap",value:q,disabled:q===null,min:se,max:99999,onResizeMove:this.handleSmartSelectionGapResizeMove,onResizeEnd:this.handleSmartSelectionGapResizeEnd,onConfirm:this.handleSmartSelectionGapChange,withToolTip:!0,toolTipContent:I18N.SettingPanel.vertical_spacing,direction:"down"})]}):null}}const nt=(0,r.Mz)([lt.$],m=>{const{minItemMargin:y,minLineSpace:T}=(0,Je.no)(m.rowStates);return{rowGap:m.rowGap,minRowGap:T,colGap:m.colGap,minColGap:y,isSmartSelectionActive:m.isActive}}),tt=(0,n.Ng)(m=>nt(m))(st),ct=s.Ay.section.withConfig({displayName:"styles__StyledGeneral",componentId:"sc-1yjqoh8-0"})(["width:240px;padding:0 14px 6px 8px;color:",";.general-line{display:flex;align-items:center;.active{background:#1A70D8;}}.tableStyleType{display:flex;flex-wrap:wrap;margin:0 -14px 8px -9px;padding:0 16px;border-bottom:1px solid ",";.name{font-size:12px;font-weight:600;height:32px;line-height:32px;color:",";}.tableStyleTypeList{width:calc(100% + 15px);height:44px;display:flex;align-items:center;justify-content:space-around;.tableStyleItem{width:32px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:4px;.svg-icon{.noHover{fill:",";}path:not(.noHover){fill:",";&:first-child{fill:",";stroke:",";}}}&.active{background:",";}&:hover:not(.active){background:",";}.svg-icon{width:25px;height:21px;cursor:pointer;}}}}"],m=>m.theme.color_text_L2,m=>m.theme.color_bg_border_01,m=>m.theme.color_text_L1,m=>m.theme.color_bg_border_02,m=>m.theme.color_text_L2,m=>m.theme.color_bg_white,m=>m.theme.color_text_L2,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_btn_secondary_hover);class ht extends h.PureComponent{render(){return(0,t.jsx)(ct,{className:"general-panel",children:this.props.children})}}var It=e(43605),it=e(31569),Tt=e(5379),Lt=e(33421),Rt=e(99917),Wt=e(9680),Kt=e(90317);const Gt={[O.LayerInfoPanel]:{[E.m9]:m=>{var y;let{selectedItems:T,selections:R}=m;const q=T.length>1?T.find(at=>at.hotAttr.type===P.x.Canvas)?T.every(at=>at.hotAttr.type===P.x.Canvas)?I18N.SettingPanel.multi_select_artboards:I18N.SettingPanel.multi_select_artboards_widgets:I18N.SettingPanel.multi_select:(0,xe.KD)(R[0]),se=!!(0,it.i)(T,"isVisible"),ue=!!(0,it.i)(T,"isLock"),Ne=(0,g.td)(R)||(0,g.bp)(T),Ge=sdkStore.getHotItem(R[0]);return{layerName:q,isLocked:ue,isVisible:se,canShowOverridesMenu:Ne,keySelection:R,targetKey:Ge==null?void 0:Ge.key,type:Ge==null||(y=Ge.hotAttr)==null?void 0:y.type}}},[O.WidgetStatePanel]:{[E.m9]:m=>{let{selectedItems:y}=m;return{canCreateWidgetState:(0,g.mO)(y),selectedItems:y}}},[O.PositionInfoPanel]:{[E.m9]:m=>{var y;let{selectedItems:T}=m;const{key:R,hotAttr:{type:q}}=T[0];if(sdkStore.isTrashed(R))return{};const se=q===P.x.Canvas?null:sdkStore.locUpColdCanvasKey(R),ue=(y=MB.getCurrentScreen())==null?void 0:y.cid,{x:Ne,y:Ge,r:at,w:dt,h:Bt}=sdkStore.getRelocateLocalBound(R,se||ue);return{top:Ge-Bt/2,left:Ne-dt/2,ro:at}},[P.x.WLine]:m=>{let{selectedItems:y}=m;const{w:T,h:R}=y[0].hotAttr,{linePointFrom:q,linePointTo:se}=(0,it.i)(y,"line"),ue=[[q.x,q.y],[se.x,se.y]];return{ro:Math.round((0,It.W8)(T,R,ue))%360||0}},[P.x.WArrow]:m=>{let{selectedItems:y}=m;const{w:T,h:R}=y[0].hotAttr,{arrowPointFrom:q,arrowPointTo:se}=(0,it.i)(y,"arrow"),ue=[[q.x,q.y],[se.x,se.y]];return{ro:Math.round((0,It.W8)(T,R,ue))%360||0}},[P.x.WWrap]:m=>{let{selectedItems:y}=m;const{key:T}=y[0],R=sdkStore.locUpColdCanvasKey(T)||sdkStore.locUpRBPageKey(T);if(!R)return{top:0,left:0};const{x:q,y:se,w:ue,h:Ne}=sdkStore.getRelocateLocalBound(T,R);return{top:se-Ne/2,left:q-ue/2}},[P.x.WElbow]:m=>{let{selectedItems:y}=m;const R=y.find(q=>{const{hotAttr:{refFromKey:se,refToKey:ue}}=q,{isRefFromExist:Ne,isRefToExist:Ge}=(0,Tt.v)(q.key,se,ue);return!(Ne||Ge)})!==void 0;return{canX:R,canY:R,hasRotate:!0,canRotate:!1}}},[O.SizeInfoPanel]:{[E.m9]:m=>{let{selectedItems:y,selections:T,hasMissFontHi:R,imageProps:{currentImageOperateType:q}}=m,se=!1,ue=!1;const Ne=y.length>1,Ge=(0,it.i)(y,"isLockAspect"),{key:at,hotAttr:dt}=y[0],Bt=dt.type,{w:kt,h:qt}=sdkStore.getLocalBound(at),sn=P.x.WElbow===Bt?!1:Lt.u3.includes(Bt)?!0:!R,jn=[P.x.WElbow,P.x.WQRCode].includes(Bt)||q===Rt.bl.cutting?!1:!R;Ne&&y.forEach(Wo=>{let{hotAttr:{w:Zo,h:Yo}}=Wo;kt!==Zo&&(se=!0),qt!==Yo&&(ue=!0)});let Dn=1,lo=1;if(Bt===P.x.WButton){const{w:Wo,h:Zo}=(0,Kt.mu)(y[0]);Dn=Wo,lo=Zo}return{isLockAspect:Ge,isShowMultipleWidth:se,isShowMultipleHeight:ue,placeholder:Ne?I18N.SettingPanel.multiple_value:"",width:kt,height:qt,isSelectItemsInMuban:(0,g.td)(T),disableAspectRatio:y.every(Wo=>Wo.hotAttr.type===P.x.WGraph),isSelectItemsAllMind:y.every(Wo=>Wo.hotAttr.type===P.x.WMind),selections:T,canW:sn,canH:sn,canAspectRatio:jn,disableRefVar:y.some(Wo=>[P.x.Canvas,P.x.WWrap].includes(Wo.hotAttr.type)),refVars:{w:(0,Wt.xj)(y,"w"),h:(0,Wt.xj)(y,"h")},minWidth:Dn,minHeight:lo}},[P.x.WLine]:m=>{let{selectedItems:y}=m;const{w:T,h:R,border:q}=y[0].hotAttr;return{width:Math.round(Math.sqrt(T*T+R*R)),height:q.bdrWidth,canW:!0,canH:!1,canAspectRatio:!1}},[P.x.WArrow]:m=>{let{selectedItems:y}=m;const{w:T,h:R,arrow:q}=y[0].hotAttr;return{width:Math.round(Math.sqrt(T*T+R*R)),height:q.arrowStroke.bdrWidth,canW:!0,canH:!1,canAspectRatio:!1}}},[O.TableTypePanel]:{[E.m9]:m=>{var y;let{selectedItems:T}=m;return{styleType:((y=(0,it.i)(T,"tableConfig"))==null?void 0:y.styleType)||0}}},[O.SmartGapPanel]:{[E.m9]:()=>({})}};var St=e(61068);class Hn extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleCanvasAttrsChanged",(y,T)=>{const{canvasAttrs:R,type:q,selections:se,dispatch:ue}=this.props,{isClipContent:Ne}=R,Ge=se.map(at=>({key:at,hotAttr:{[T]:y}}));ue({type:"entry:widget:change",payload:{flatChgList:Ge}}),q===P.x.Canvas&&(0,_e.A9)({attr:"isClipContent",isOpen:!Ne})}),(0,i.A)(this,"handleIsClipContentChanged",y=>{this.handleCanvasAttrsChanged(y,"isClipContent")})}render(){const{canvasAttrs:y}=this.props,{isClipContent:T}=y;return(0,t.jsx)("div",{className:"general-line is-clip-content-line height-32",children:(0,t.jsx)(St.A,{className:p()("check",St.p),attr:"isClipContent",isChecked:T,label:I18N.builtin.is_crop,onChange:this.handleIsClipContentChanged})})}}var uo=e(86750),Po=e(14861),Yn=e(93257),bo=e(70812);class Ke extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"selectNewModel",y=>{const{type:T,canvasAttrs:{orientation:R},selections:q,dispatch:se}=this.props,ue=(0,Po.$n)(y.key),Ne=ue?R==="landscape":!1,Ge=q.map(at=>{let dt={device:y.key};if(!ue&&R==="landscape"&&(dt={...dt,orientation:"portrait"}),y.key!=="customize"){const{hotAttr:{x:Bt,y:kt,w:qt,h:sn}}=sdkStore.getHotItem(at),jn=Ne?y.height:y.width,Dn=Ne?y.width:y.height,lo={x:Bt-qt/2,y:kt-sn/2};dt={...dt,x:lo.x+jn/2,y:lo.y+Dn/2,w:jn,h:Dn}}return{key:at,hotAttr:dt}});se({type:"entry:widget:change",payload:{flatChgList:Ge}}),T===P.x.Canvas&&((0,_e.A9)({attr:"device"}),y.key&&bo.U4.protoDeviceCreate("\u53F3\u4FA7\u9875\u9762\u8BBE\u5907\u5207\u6362",y.key,!0))}),(0,i.A)(this,"handleOrientationChanged",y=>{const{canvasAttrs:{orientation:T,w:R,h:q},selections:se,dispatch:ue}=this.props;if(y===T)return;const Ne=se.map(Ge=>{const{hotAttr:{x:at,y:dt,w:Bt,h:kt}}=sdkStore.getHotItem(Ge),qt={x:at-Bt/2,y:dt-kt/2};return{key:Ge,hotAttr:{x:qt.x+q/2,y:qt.y+R/2,w:q,h:R,orientation:y}}});ue({type:"entry:widget:change",payload:{flatChgList:Ne}})})}render(){const{canvasAttrs:y,editingPanelCid:T}=this.props,{orientation:R,device:q}=y,se=(0,Po.$n)(q);return!se&&T?null:(0,t.jsx)(ut,{className:"general-line height-32",children:(0,t.jsxs)("div",{className:"screen-info",children:[!T&&(0,t.jsx)(uo.A,{model:q,renderList:Po.a$,onSelect:this.selectNewModel,isPageSize:!0}),(0,t.jsx)("div",{className:"placeholder"}),se&&(0,t.jsxs)("section",{className:p()("orientation-body"),children:[(0,t.jsx)(Yn.A,{content:I18N.SettingPanel.portrait,direction:"down",children:(0,t.jsx)("div",{className:p()("orientation-option",{active:R==="portrait"}),onClick:()=>this.handleOrientationChanged("portrait"),children:(0,t.jsx)(x.C,{className:"icon",name:"setting_panel/screen/screen_portrait"})})}),(0,t.jsx)(Yn.A,{content:I18N.SettingPanel.landscape,direction:"down",children:(0,t.jsx)("div",{className:p()("orientation-option",{active:R==="landscape"}),onClick:()=>this.handleOrientationChanged("landscape"),children:(0,t.jsx)(x.C,{className:"icon",name:"setting_panel/screen/screen_landscape"})})})]})]})})}}const ut=s.Ay.div.withConfig({displayName:"indexui__StyledCanvasSettings",componentId:"sc-1rjwtxi-0"})(["width:auto;overflow:hidden;margin-top:8px;margin-bottom:-8px;.screen-info{display:flex;align-items:center;width:100%;}.placeholder{flex:1}.orientation-body{display:flex;flex-direction:row;justify-content:flex-start;margin-left:10px;.orientation-option{cursor:pointer;width:24px;height:24px;border-radius:4px;&:not(.active):hover{background:",";color:",";}&.active{color:",";background:",";}.icon{font-size:24px;margin-right:6px;}.svg-icon{color:",";}&:first-child{margin:0 3px;}}}"],m=>m.theme.color_btn_secondary_hover,m=>m.theme.color_text_L1,m=>m.theme.color_text_L1,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_text_L1),zt=m=>{let y,T;return m&&m===P.x.WSticky&&(y=(0,H.He)({type:P.x.WSticky}),T=(0,H.m1)({type:P.x.WSticky})),m&&m===P.x.WMTooltip&&(y=(0,H.He)({type:P.x.WMTooltip}),T=(0,H.m1)({type:P.x.WMTooltip})),{minWidth:y,minHeight:T}},bt={component:te,params:{canLocked:!0,canVisible:!0},getter:[Gt[O.LayerInfoPanel][E.m9]]},xn=function(m){return m===void 0&&(m=!0),{component:te,params:{canLocked:m,canVisible:m,canEditVector:m},getter:[Gt[O.LayerInfoPanel][E.m9]]}},kn={component:te,params:{canLocked:!0,canVisible:!0},getter:[Gt[O.LayerInfoPanel][E.m9]]},gn={component:de,params:{},getter:[()=>{}]},Zn={component:je,params:{},getter:[Gt[O.WidgetStatePanel][E.m9]]},Pn=m=>({component:Fe,params:{canX:!0,canY:!0,canRotate:!0,type:m},getter:m?[Gt[O.PositionInfoPanel][E.m9],Gt[O.PositionInfoPanel][m]]:[Gt[O.PositionInfoPanel][E.m9]],setter:{}}),_n={...Pn(),params:{...Pn().params,hasRotate:!1,canRotate:!1}},Wn=m=>({...Pn(m),params:{...Pn().params,hasRotate:!1,canRotate:!1}}),Ln={component:rt,params:{canW:!0,canH:!0,canAspectRatio:!0},getter:[Gt[O.SizeInfoPanel][E.m9]],setter:{}},io=m=>({component:rt,params:{canW:!0,canH:!0,canAspectRatio:!0,...zt(m)},getter:[Gt[O.SizeInfoPanel][E.m9]],setter:{}}),to=m=>({component:rt,params:{canW:!0,canH:!0,canAspectRatio:!0,type:m},getter:[Gt[O.SizeInfoPanel][E.m9]],setter:{}}),mo={...Ln,params:{canW:!0,canH:!1,canAspectRatio:!0}},Io={...Ln,params:{canW:!0,canH:!0,canAspectRatio:!1}},co={...Ln,params:{canW:!1,canH:!1,canAspectRatio:!1}},On={...Ln,params:{...Ln.params,canH:!1,canAspectRatio:!1,isLine:!0},getter:[...Ln.getter,Gt[O.SizeInfoPanel][P.x.WLine]],setter:{}},Cn={...Ln,params:{...Ln.params,canH:!1,canAspectRatio:!1,isLine:!0},getter:[...Ln.getter,Gt[O.SizeInfoPanel][P.x.WArrow]],setter:{}},qe={component:et,params:{},getter:[Gt[O.TableTypePanel][E.m9]],setter:{}},vn={component:tt,params:{},getter:[Gt[O.SmartGapPanel][E.m9]],setter:{}},Jn=m=>({component:Hn,params:{type:m},getter:[y=>{var T;let{selectedItems:R}=y;return{canvasAttrs:(T=R[0])==null?void 0:T.hotAttr,selections:R.filter(se=>se.hotAttr.type===P.x.Canvas).map(se=>{let{key:ue}=se;return ue})}}],setter:{}}),ao=m=>({component:Ke,params:{type:m},getter:[y=>{let{selectedItems:T,editingPanelCid:R}=y;const q=T.filter(ue=>ue.hotAttr.type===P.x.Canvas);return{canvasAttrs:q[0].hotAttr,editingPanelCid:R,selections:q.map(ue=>{let{key:Ne}=ue;return Ne})}}],setter:{}}),no=m=>[[bt,O.LayerInfoPanel],[Zn,O.WidgetStatePanel],[Pn(m),O.PositionInfoPanel],[Ln,O.SizeInfoPanel],[vn,O.SmartGapPanel]],ke=[[xn(),O.LayerInfoPanel],[Zn,O.WidgetStatePanel],[Pn(P.x.WLine),O.PositionInfoPanel],[On,O.SizeInfoPanel],[vn,O.SmartGapPanel]],$n=[[bt,O.LayerInfoPanel],[Zn,O.WidgetStatePanel],[_n,O.PositionInfoPanel],[Ln,O.SizeInfoPanel],[vn,O.SmartGapPanel]],$t=[[bt,O.LayerInfoPanel],[Zn,O.WidgetStatePanel],[Pn(E.m9),O.PositionInfoPanel],[Io,O.SizeInfoPanel],[vn,O.SmartGapPanel]],cn=m=>[[kn,O.LayerInfoPanel],[_n,O.PositionInfoPanel],[io(m),O.SizeInfoPanel]],xt=[[bt,O.LayerInfoPanel],[Zn,O.WidgetStatePanel],[Pn(E.m9),O.PositionInfoPanel],[mo,O.SizeInfoPanel],[vn,O.SmartGapPanel]],Et=[[bt,O.LayerInfoPanel],[Pn(P.x.WElbow),O.PositionInfoPanel],[Ln,O.SizeInfoPanel],[vn,O.SmartGapPanel]],jt=[[xn(),O.LayerInfoPanel],[Zn,O.WidgetStatePanel],[Pn(E.m9),O.PositionInfoPanel],[Ln,O.SizeInfoPanel],[vn,O.SmartGapPanel]],Jt=m=>[[bt,O.LayerInfoPanel],[Zn,O.WidgetStatePanel],[Pn(E.m9),O.PositionInfoPanel],[io(m),O.SizeInfoPanel],[vn,O.SmartGapPanel]],In=[[gn,O.LayerInfoPanel],[_n,O.PositionInfoPanel],[Ln,O.SizeInfoPanel],[vn,O.SmartGapPanel]],En={[E.m9]:no(E.m9),[E.n1]:xt,[P.x.WRect]:jt,[P.x.WOval]:jt,[P.x.WPolygon]:jt,[P.x.WStar]:jt,[P.x.WVector]:jt,[P.x.WLine]:ke,[P.x.WArrow]:[[bt,O.LayerInfoPanel],[Zn,O.WidgetStatePanel],[Pn(P.x.WArrow),O.PositionInfoPanel],[Cn,O.SizeInfoPanel],[vn,O.SmartGapPanel]],[P.x.WWrap]:no(P.x.WWrap),[P.x.WSticky]:cn(P.x.WSticky),[P.x.WWebpage]:$n,[P.x.WMSelect]:$n,[P.x.WMTextInput]:$n,[P.x.WMTextArea]:$n,[P.x.WMFileInput]:$n,[P.x.WMapView]:$n,[P.x.WBasket]:$n,wBasketMuban:In,[P.x.WLR]:$n,[P.x.WCode]:$n,[P.x.WGraph]:$t,[P.x.WIcon]:$t,[P.x.WIconButton]:$t,[P.x.WQRCode]:$t,[P.x.WTable]:[[bt,O.LayerInfoPanel],[qe,O.TableTypePanel],[Zn,O.WidgetStatePanel],[_n,O.PositionInfoPanel],[Ln,O.SizeInfoPanel],[vn,O.SmartGapPanel]],[P.x.Canvas]:[[kn,O.LayerInfoPanel],[ao(P.x.Canvas),O.DevicePanel],[Wn(P.x.Canvas),O.PositionInfoPanel],[to(P.x.Canvas),O.SizeInfoPanel],[Jn(P.x.Canvas),O.ClipContentPanel]],[P.x.CanvasAsOverlay]:[[kn,O.LayerInfoPanel],[Wn(P.x.Canvas),O.PositionInfoPanel],[to(P.x.Canvas),O.SizeInfoPanel],[Jn(P.x.Canvas),O.ClipContentPanel]],[P.x.WElbow]:[[bt,O.LayerInfoPanel],[Pn(P.x.WElbow),O.PositionInfoPanel],[co,O.SizeInfoPanel]],[P.x.WTear]:cn(P.x.WTear),[P.x.WIosCB]:Et,[P.x.WAndroidCB]:Et,[P.x.WTabItem]:Et,[P.x.WSearchBar]:Et,[P.x.WUnifiedKeyboard]:Et,[P.x.WTriangle]:jt,[P.x.WSwimlane]:$n,[P.x.WMTooltip]:Jt(P.x.WMTooltip)},hn=m=>{const y=m[0],T=m.findIndex(ue=>ue.hotAttr.type===P.x.WLine)!==-1,R=m.every(ue=>{var Ne;return ue.hotAttr.type===P.x.WBasket&&(ue==null||(Ne=ue.hotAttr)==null?void 0:Ne.basket)==="bMuban"}),q=m.length>1&&m.some(ue=>(0,g.o9)(ue)===P.x.Canvas)&&m.some(ue=>(0,g.o9)(ue)===P.x.CanvasAsOverlay),se=T&&m.length>1?En[E.n1]:q?En[P.x.CanvasAsOverlay]:R?En.wBasketMuban:En[(0,g.o9)(y)]||En[E.m9];return[ht,...se]},_o=()=>[ht,[xn(!1),O.LayerInfoPanel]],yo=s.Ay.section.withConfig({displayName:"styled__StyledCommon",componentId:"sc-14b1ds7-0"})(["width:100%;padding:8px 0px 8px 16px;color:",";border-top:1px solid ",';>:not(:first-child){margin-top:2px;}.common-line{display:flex;align-items:center;}.opacity-line{[type="slider"]{width:92px;margin:0 8px;.rail{.fill{background-color:',";}}}.input-number{width:52px;}}.fix-line{.right-content{margin-right:16px;.fix-select{width:100%;}}}.expand{cursor:pointer;display:flex;align-items:center;height:32px;font-size:12px;color:",";&:hover,&:active{color:",";}}"],m=>m.theme.color_text_L2,m=>m.theme.color_bg_border_01,m=>m.theme.color_proto,m=>m.theme.color_text_link_normal,m=>m.theme.color_text_link_hover),Qn=["children"];class ze extends h.Component{shouldComponentUpdate(y,T,R){return this.props.isDraggingItem||MB.f.isResizing?!1:(0,F.N)(Qn).call(this,y,T)}render(){return(0,t.jsx)(yo,{className:"widgetSetting-common-panel",children:this.props.children})}}var Oe=e(51743);class De extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleOpacityChange",(y,T,R)=>{const{onChange:q,dispatch:se,selections:ue}=this.props;q({value:parseInt(y)/100,attr:T,refVar:R,dispatch:se,selections:ue}),se({type:"entry:auto:show:hide:item"})}),(0,i.A)(this,"handleOpacityConfirm",(y,T)=>{this.handleOpacityChange(y,T),sdkStore.combineMerge("opacity-update")}),(0,i.A)(this,"handleOpacityMouseDown",()=>sdkStore.combineMergeMark("opacity-update")),(0,i.A)(this,"createOnChangeHandler",y=>(T,R)=>{this.handleOpacityChange(T,y,R)})}render(){const{opacity:y,refVars:T}=this.props,R=parseInt(String(y));return(0,t.jsxs)("div",{className:"common-line opacity-line height-32",children:[(0,t.jsx)("span",{children:I18N.SettingPanel.o}),(0,t.jsx)(Oe.A,{attr:"opacity",value:R,max:100,min:0,onChange:this.handleOpacityChange,onConfirm:this.handleOpacityConfirm,onMouseDown:this.handleOpacityMouseDown}),(0,t.jsx)(we.Yw,{type:"number",inputClassName:"input-number",attr:"opacity",refVar:T==null?void 0:T.opacity,value:R,min:0,max:100,suffix:"%",onConfirm:this.createOnChangeHandler("opacity")})]})}}var Be=e(23089),Qe=e(93413),$e=e(39e3);class ot extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"FIX_OPTION_LIST",[{value:"none",label:I18N.SettingPanel.not_fixed},{value:"top",label:I18N.SettingPanel.fixed_top},{value:"bottom",label:I18N.SettingPanel.fixed_bottom},{value:"sticky",label:I18N.SettingPanel.sticky}]),(0,i.A)(this,"state",{prevStickyOffset:this.props.stickyOffset}),(0,i.A)(this,"updateModeState",y=>{(0,I.HD)(MB.__store__.getState())!==y&&this.props.dispatch({type:"mode:update:state",payload:{isFocusStickyOffset:y}})}),(0,i.A)(this,"handleCancelTimer",()=>{clearTimeout(this.timer),this.updateModeState(!1)}),(0,i.A)(this,"handleFixTypeChange",y=>{const{onChange:T,dispatch:R,selections:q,stickyOffset:se}=this.props;if(this.closeGuide(),T({value:y,attr:"fixPosTo",dispatch:R,selections:q}),se===null&&y==="sticky"){var ue;const Ne=sdkStore.locUpHotCanvasKey(q[0]),Ge=(q==null?void 0:q.length)>1?0:Ne&&((ue=sdkStore.getHotItem(Ne))==null||(ue=ue.hotAttr)==null?void 0:ue.stickyHeaderHeight)||0;T({value:Ge,attr:"stickyOffset",dispatch:R,selections:q})}(0,S.W0)({operationType:S.Vi[y]})}),(0,i.A)(this,"handleStickyOffsetChange",y=>{const{onChange:T,dispatch:R,selections:q}=this.props;T({value:y,attr:"stickyOffset",dispatch:R,selections:q})}),(0,i.A)(this,"handleBeforeChangeValue",()=>{const{stickyOffset:y}=this.props;this.setState({prevStickyOffset:y})}),(0,i.A)(this,"handleFocus",()=>{clearTimeout(this.timer),this.updateModeState(!0)}),(0,i.A)(this,"handleBlur",()=>{if(this.state.prevStickyOffset===this.props.stickyOffset){this.updateModeState(!1);return}this.setState({prevStickyOffset:this.props.stickyOffset}),this.timer=setTimeout(()=>{this.updateModeState(!1)},2e3)}),(0,i.A)(this,"handleOpen",()=>{setTimeout(()=>{MB.commonGuideHelper.tryToShowGuide(Qe.c.GUIDE_POSITION_STICKY_FEATURES),this.dropDownMenu=document.querySelector("."+Qe.c.GUIDE_POSITION_STICKY_FEATURES)},200)}),(0,i.A)(this,"handleClickOutside",y=>{this.dropDownMenu&&!this.dropDownMenu.contains(y.target)&&this.closeGuide()}),(0,i.A)(this,"closeGuide",()=>{MB.commonGuideHelper.closeGuide(Qe.c.GUIDE_POSITION_STICKY_FEATURES),MB.commonGuideHelper.markGuideAsRead(Qe.c.GUIDE_POSITION_STICKY_FEATURES)})}componentDidUpdate(y,T,R){y.selections!==this.props.selections&&this.handleCancelTimer()}componentWillUnmount(){this.handleCancelTimer()}render(){const{fixPosTo:y,selections:T,stickyOffset:R,placeholderOffset:q,isShowMultipleOffset:se}=this.props;if(!(T.length===1?!(0,g.Wi)(T[0]):!0))return null;const{FIX_OPTION_LIST:Ne}=this;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"fix-line line height-32",children:[(0,t.jsx)("span",{className:"left-label",children:I18N.SettingPanel.fixed}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(Be.mq,{className:"fix-select",optionList:Ne,value:y,onChange:this.handleFixTypeChange,menuClassName:Qe.c.GUIDE_POSITION_STICKY_FEATURES,onOpen:this.handleOpen})})]}),y==="sticky"&&(0,t.jsxs)("div",{className:"fix-line line height-32",children:[(0,t.jsx)("span",{className:"left-label",children:I18N.SettingPanel.stickyOffset}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(Ae.A,{className:"general-input width-66 sticky-offset-input",attr:"stickyOffset",min:-9999,max:9999,value:R,isNotVerify:se,placeholder:q,onConfirm:this.handleStickyOffsetChange,onFocus:this.handleFocus,onBlur:this.handleBlur,onBeforeChangeValue:this.handleBeforeChangeValue})})]}),(0,t.jsx)($e.A,{target:document,onMouseDown:(0,$e.t)(this.handleClickOutside,{capture:!0})})]})}}var mt=e(76210),ft=e(847),gt=e(44805);const _t={component:De,params:{},getter:[mt.U[ft.q.OpacityInfoPanel][E.m9]],setter:{onChange:gt.c}},Yt={component:ot,params:{},getter:[mt.U[ft.q.FixedInfoPanel][E.m9]],setter:{onChange:gt.c}},Ft=[[Yt,ft.q.FixedInfoPanel]],Zt={[P.x.WMapView]:Ft,[P.x.WLR]:Ft,[E.m9]:[[_t,ft.q.OpacityInfoPanel],[Yt,ft.q.FixedInfoPanel]]},Nt=m=>{const y=m[0],T=Zt[(0,g.o9)(y)]||Zt[E.m9];return[ze,...T]};var Qt=e(78401),vt=e(15515),yn=e(32409),rn=e(71190),Ot=e(56938),Nn=e(54852);const To="mp_text",fo=["children"];class ro extends h.Component{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)(To,!0,vt.qW.Boolean)}),(0,i.A)(this,"handleChange",()=>{const{show:y}=this.state;(0,vt.a0)(To,!y,vt.qW.Boolean),this.setState({show:!y})})}shouldComponentUpdate(y,T,R){return y.isDraggingItem?!1:(0,F.N)(fo).call(this,y,T)}render(){const{show:y}=this.state,T=this.props.children.findIndex(R=>(R==null?void 0:R.key)===Ot.s.UsedRefTextPanel)===-1&&this.props.children.findIndex(R=>(R==null?void 0:R.key)===Ot.s.CanShowLibPlhPanel)!==-1;return(0,t.jsx)(rn.A,{className:"text-setting-panel",collapse:!y,title:I18N.SettingPanel.inspector.text,headerChildren:T&&(0,t.jsx)(yn.r,{type:"text"}),onChange:this.handleChange,children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Nn.M,{id:"text-settings",className:p()({"is-show-lib-opener":T}),onMouseDown:Qt.kI,children:this.props.children}),(0,t.jsx)(Nn.F,{})]})})}}var Bn=e(3507),Ao=e(55203),go=e(49989),Jo=e(58603),$o=e(63768),po=e(92001),us=e(31781),hs=e(63126),pt=e(6843);class Ht extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"setComponentRef",y=>this.workspaceDropdown=y),(0,i.A)(this,"getHVList",()=>{const{shouldReverseDesc:y}=this.props,T=y?[{label:(0,t.jsx)(x.C,{name:"setting_panel/font/text_align_left_re"}),value:"left",tip_title:I18N.SettingPanel.vtop_2},{label:(0,t.jsx)(x.C,{name:"setting_panel/font/text_align_center_re"}),value:"center",tip_title:I18N.SettingPanel.vcenter_2},{label:(0,t.jsx)(x.C,{name:"setting_panel/font/text_align_right_re"}),value:"right",tip_title:I18N.SettingPanel.vbottom_2},{label:(0,t.jsx)(x.C,{name:"setting_panel/font/text_align_justify_re"}),value:"justify",tip_title:I18N.SettingPanel.text_Justify}]:[{label:(0,t.jsx)(x.C,{name:"setting_panel/font/text_align_left"}),value:"left",tip_title:I18N.SettingPanel.hleft_2},{label:(0,t.jsx)(x.C,{name:"setting_panel/font/text_align_center"}),value:"center",tip_title:I18N.SettingPanel.align_text_center},{label:(0,t.jsx)(x.C,{name:"setting_panel/font/text_align_right"}),value:"right",tip_title:I18N.SettingPanel.hright_2},{label:(0,t.jsx)(x.C,{name:"setting_panel/font/text_align_justify"}),value:"justify",tip_title:I18N.SettingPanel.text_Justify}],R=y?[{label:(0,t.jsx)(x.C,{name:"setting_panel/font/text_align_v_top_re"}),value:"flex-start",tip_title:I18N.SettingPanel.hleft_2},{label:(0,t.jsx)(x.C,{name:"setting_panel/font/text_align_v_center_re"}),value:"center",tip_title:I18N.SettingPanel.align_text_center},{label:(0,t.jsx)(x.C,{name:"setting_panel/font/text_align_v_bottom_re"}),value:"flex-end",tip_title:I18N.SettingPanel.hright_2}]:[{label:(0,t.jsx)(x.C,{name:"setting_panel/font/text_align_v_top"}),value:"flex-start",tip_title:I18N.SettingPanel.vtop_2},{label:(0,t.jsx)(x.C,{name:"setting_panel/font/text_align_v_center"}),value:"center",tip_title:I18N.SettingPanel.vcenter_2},{label:(0,t.jsx)(x.C,{name:"setting_panel/font/text_align_v_bottom"}),value:"flex-end",tip_title:I18N.SettingPanel.vbottom_2}];return{H_ALIGNMENT_OPTION_LIST:T,V_ALIGNMENT_OPTION_LIST:R}}),(0,i.A)(this,"handleChange",(y,T)=>{const{onChange:R,dispatch:q}=this.props;R({value:y,attr:T,dispatch:q})}),(0,i.A)(this,"handleHAChange",y=>{this.handleChange(y,"horizontalAlign"),S.MO[y]&&(0,S.W0)({operationType:S.MO[y]})}),(0,i.A)(this,"handleVAChange",y=>{this.handleChange(y,"verticalAlign"),S.Ww[y]&&(0,S.W0)({operationType:S.Ww[y]})}),(0,i.A)(this,"handleCloseOptionsMenu",()=>{this.workspaceDropdown.close()}),(0,i.A)(this,"handleSizeTypeChange",y=>{const{dispatch:T}=this.props,R=parseInt(y);T({type:"entry:set:text:attr",payload:{value:R,attr:"sizeType"}}),(0,us.yt)(hs.mG[R])})}render(){var y;const{ha:T,va:R,canHa:q,canVa:se,hasMissFontHi:ue,currentTextRefStyle:Ne,selections:Ge,sizeType:at,shouldReverseDesc:dt}=this.props,{H_ALIGNMENT_OPTION_LIST:Bt,V_ALIGNMENT_OPTION_LIST:kt}=this.getHVList(),qt=Ge.length>0&&((y=sdkStore.getHotItem(Ge[0]))==null?void 0:y.hotAttr.type),sn=P.Q.USE_SIZE_TYPE.includes(qt),jn=P.Q.USE_TEXT_FONT_DIRECTION.includes(qt);return!q&&!se&&Ne&&!sn&&jn?(0,t.jsx)("div",{className:"is-signle-show-direction-link menu-wrapper",children:(0,t.jsxs)("div",{className:"font-style svg-size",children:[(0,t.jsx)("p",{children:I18N.SettingPanel.design.link}),(0,t.jsx)(po.p,{className:"font-size-type",isHavingLink:"none"})]})}):(0,t.jsxs)("div",{className:p()({"font-group ali-line height-32":q||se},{"flex-between":q&&!se}),children:[q&&(0,t.jsx)(go.z,{className:"h-alignment",options:Bt,value:T,isLongTimeHover:!0,disabled:ue,handleChange:this.handleHAChange}),se&&(0,t.jsx)(go.z,{className:"v-alignment",options:kt,value:R,isLongTimeHover:!0,disabled:ue,handleChange:this.handleVAChange}),Ne&&(sn||jn)&&(0,t.jsx)(pt.L4,{className:"has-ref-style-font-menus",children:(0,t.jsx)(Jo.A,{menuX:"right",menuY:"bottom",ref:this.setComponentRef,className:"options-menu-opener font-menu-opener",opener:(0,t.jsx)(_.Q,{className:"menu-opener fontSettings",content:I18N.SettingPanel.text_settings,icon:(0,t.jsx)(x.C,{name:"common/more",className:"options-icon"}),direction:"down"}),menuClassName:"font-options-menu",menu:(0,t.jsxs)(pt.jl,{children:[(0,t.jsxs)("header",{children:[(0,t.jsx)("span",{className:"title",children:I18N.SettingPanel.text_settings}),(0,t.jsx)(pe.A,{name:"common/close_sm",onClick:this.handleCloseOptionsMenu})]}),(0,t.jsxs)("div",{id:"text-settings-font-menu",className:"menu-container",children:[sn&&(0,t.jsx)("div",{className:"menu-wrapper",children:(0,t.jsxs)("div",{className:"font-style svg-size",children:[(0,t.jsx)("p",{children:I18N.SettingPanel.text_fix_type}),(0,t.jsx)($o.A,{newOverOld:!0,isDisabledSizeType:!1,shouldReverseDesc:dt,sizeType:at,handleSizeTypeChange:this.handleSizeTypeChange})]})}),jn&&(0,t.jsx)("div",{className:"menu-wrapper",children:(0,t.jsxs)("div",{className:"font-style svg-size",children:[(0,t.jsx)("p",{children:I18N.SettingPanel.design.link}),(0,t.jsx)(po.p,{className:"font-size-type",isHavingLink:"none"})]})})]})]})})})]})}}const nn=(0,r.Mz)([u.jj],m=>({currentTextRefStyle:m})),en=(0,n.Ng)(m=>nn(m))(Ht);var Un=e(77643),Kn=e(3356);const Vn=m=>{let{canShowContentBox:y,isBatch:T,content:R,canMultiline:q,disableModifyContentBox:se,refVar:ue,onChange:Ne,dispatch:Ge}=m;const[at,dt]=(0,h.useState)(!1),Bt=(0,h.useRef)(null),kt=(Dn,lo)=>{Ne({contentArray:Dn,refVar:lo,dispatch:Ge})},qt=(Dn,lo)=>{const Wo=(""+Dn).split(/\n/);kt(Wo,lo)},sn=()=>dt(!0),jn=()=>dt(!1);return y?(0,t.jsxs)(vo,{className:p()(["item-with-name",{"context-box-single":!T&&!ue}]),children:[!at&&(0,t.jsx)(we.Yw,{type:"string",className:p()([{"is-single-button":!ue}]),refVar:ue,value:R,isIconButton:!ue,showName:!0,iconTooltip:I18N.Variable.bind.text,hoverTrigger:".text-setting-panel",disabled:se,onChange:qt}),(0,t.jsxs)("div",{className:"item-value",ref:Bt,children:[!at&&(0,t.jsx)(we.Yw,{type:"string",className:p()([{"is-single-button":!ue}]),refVar:ue,value:R,isIconButton:!ue,showName:!0,iconTooltip:I18N.Variable.bind.text,hoverTrigger:".text-setting-panel>.item-value",disabled:se,onChange:qt}),!ue&&T&&(0,t.jsx)(Kn.A,{canMultiline:q,content:R,onChange:kt,placeholder:I18N.SettingPanel.content_box_placeholder,disableModifyContentBox:se,onFocus:sn,onBlur:jn})]})]}):null},vo=s.Ay.div.withConfig({displayName:"indexui__StyledContextBoxWrapper",componentId:"sc-14ikb9u-0"})([".item-value{position:relative;.var-input-container.is-icon-button .toolbar-dropdown-opener{align-items:flex-start;height:60px;}.var-input-container.is-icon-button{z-index:2;position:absolute;left:-9px;top:-9px;&.is-active + textarea{border-color:",";}}&:hover{.icon-bind{display:block !important;}}}&:has(>.item-value:hover),&:has(>.item-value>.var-input-container.is-active){&>.is-single-button{display:none;}}&.context-box-single{height:0;margin:0;}.is-single-button{position:absolute;top:-25px;right:40px;}"],m=>m.theme.color_proto);var zn=e(60007),Fn=e(49021),Rn=e(40610),Mo=e(2099);const wo=m=>{let{attr:y,value:T,refVar:R,dispatch:q,supAttr:se,selections:ue}=m;(0,gt.c)({attr:y,value:T,refVar:R,dispatch:q,supAttr:se,selections:ue})},dn=function(m){return m===void 0&&(m=E.m9),{component:Bn.X,params:{},getter:[Fn.sE[Ot.s.TextFontPanel][m]],setter:{onChange:y=>{let{value:T,attr:R,refVar:q,dispatch:se,isFakeOverride:ue}=y;se({type:"entry:set:text:attr",payload:{value:T,attr:R,refVar:q,isFakeOverride:ue}})},onSetWeightValue:async y=>{let{fontFamily:T,fontWeight:R,boldType:q,dispatch:se}=y;T&&se({type:"entry:set:richText:attr:fontWeight",payload:{fontFamily:T,fontWeight:R,boldType:q}})}}}},pn=m=>({component:Ao.L,params:{canShowMenu:!0,newOverOld:Rn.VV.includes(m),isDisabledSizeType:m!==P.x.WRichText,isDisabledFontRadioLine:!1},getter:[Fn.sE[Ot.s.TextFontPanel][m]||Fn.sE[Ot.s.TextFontPanel][E.m9]],setter:{onChange:y=>{let{value:T,attr:R,refVar:q,selections:se,dispatch:ue,compressible:Ne,fromUI:Ge}=y;if(ue({type:"entry:set:text:attr",payload:{value:T,attr:R,refVar:q,compressible:Ne,fromUI:Ge}}),R==="fontSize"&&(se==null?void 0:se.length)>1){const at=se.filter(dt=>{var Bt;return((Bt=sdkStore.getHotItem(dt))==null?void 0:Bt.hotAttr.type)===P.x.WSelectionControl});at.length&&wo({attr:R,value:T,refVar:q,supAttr:"selectionControl",selections:at,dispatch:ue})}}}}),ho={...pn(P.x.WRichText),params:{canShowMenu:!0,newOverOld:!0}},Oo={component:Ao.L,params:{canShowBIUS:!1},getter:[Fn.sE[Ot.s.ChartTextFontPanel][E.m9]],setter:{onChange:wo}},qn={component:Ao.L,params:{canShowMenu:!0},getter:[Fn.sE[Ot.s.TableTextFontPanel][E.m9]],setter:{onChange:m=>{let{value:y,attr:T,refVar:R,dispatch:q}=m;q({type:"entry:table:set:cell:attr:new",payload:{attr:T,value:y,refVar:R}})}}},So=m=>({component:en,params:{canHa:!0,canVa:!0},getter:m?[Fn.sE[Ot.s.AlignPanel][E.m9],Fn.sE[Ot.s.AlignPanel][m]||Fn.sE[Ot.s.AlignPanel][E.m9]]:[Fn.sE[Ot.s.AlignPanel][E.m9]],setter:{onChange:y=>{let{value:T,attr:R,dispatch:q}=y;q({type:"entry:set:text:align",payload:{attr:R,value:T}})}}}),Ut=m=>({...So(m),setter:{onChange:y=>{let{value:T,attr:R,dispatch:q}=y;q({type:"entry:table:set:cell:attr:new",payload:{attr:R,value:T}})}}}),an=m=>{const y=m&&m in Fn.sE[Ot.s.SpacingPanel]?m:E.m9;return{component:Un.O,params:{},getter:[Fn.sE[Ot.s.SpacingPanel][y]],setter:{onChange:T=>{let{value:R,attr:q,refVar:se,dispatch:ue}=T;ue({type:"entry:set:text:attr",payload:{value:R,attr:q,refVar:se}})}}}},wn={...an(),getter:[Fn.sE[Ot.s.SpacingPanel][P.x.WTable]],setter:{onChange:m=>{let{value:y,attr:T,refVar:R,dispatch:q}=m;q({type:"entry:table:set:cell:attr:new",payload:{attr:T,value:y,refVar:R}})}}},fn={component:Un.O,params:{},getter:[Fn.sE[Ot.s.SpacingPanel][P.x.WRichText]],setter:{onSizeTypeChange:m=>{let{sizeType:y,dispatch:T}=m;const R=parseInt(y);T({type:"entry:set:text:attr",payload:{value:R,attr:"sizeType"}}),(0,us.yt)(hs.mG[R])},onChange:m=>{let{value:y,attr:T,refVar:R,dispatch:q}=m;q({type:"entry:set:text:attr",payload:{value:y,attr:T,refVar:R}})}}},mn={component:Vn,params:{},getter:[Fn.sE[Ot.s.ContentBoxPanel][E.m9]],setter:{onChange:m=>{let{contentArray:y,refVar:T,dispatch:R}=m;R({type:"entry:batch:edit:text:content",payload:{contentArray:y,refVar:T}})}}},Sn={component:Vn,params:{},getter:[Fn.sE[Ot.s.ContentBoxPanel][P.x.WTable]],setter:{onChange:m=>{let{contentArray:y,refVar:T,dispatch:R}=m;R({type:"entry:table:batch:set:value",payload:{text:y.join("\n"),refVar:T}})}}},un=[{component:()=>null,params:{},getter:[()=>{}],setter:{}},Ot.s.CanShowLibPlhPanel],An=function(m){let{textFontInfoType:y,alignInfoType:T,spacingInfoType:R}=m===void 0?{textFontInfoType:"",alignInfoType:"",spacingInfoType:""}:m;return[[pn(y),Ot.s.TextFontPanel],[So(T),Ot.s.AlignPanel],[an(R),Ot.s.SpacingPanel],[mn,Ot.s.ContentBoxPanel]]},oo=function(m){let{textFontInfoType:y,alignInfoType:T}=m===void 0?{textFontInfoType:"",alignInfoType:""}:m;return[[pn(y),Ot.s.TextFontPanel],[So(T),Ot.s.AlignPanel],[mn,Ot.s.ContentBoxPanel],un]},No=[[dn(P.x.WRichText),Ot.s.RichTextFontPanel],[ho,Ot.s.TextFontPanel],[So(P.x.WRichText),Ot.s.AlignPanel],[fn,Ot.s.RichTextSpacingPanel],[mn,Ot.s.ContentBoxPanel],un],Vo=[[dn(P.x.WDropMenu),Ot.s.RichTextFontPanel],[pn(),Ot.s.TextFontPanel],[So(),Ot.s.AlignPanel],[an(),Ot.s.SpacingPanel]],Ko=m=>[[dn(P.x.WMTextInput),Ot.s.RichTextFontPanel],[pn(m),Ot.s.TextFontPanel],[So(P.x.WMTextArea),Ot.s.AlignPanel],[mn,Ot.s.ContentBoxPanel]],zo=m=>[[dn(m),Ot.s.RichTextFontPanel],[pn(m),Ot.s.TextFontPanel],[So(m),Ot.s.AlignPanel],[an(m),Ot.s.SpacingPanel],[mn,Ot.s.ContentBoxPanel],un],ys=[{component:zn.M,params:{},getter:[()=>{}],setter:{}},Ot.s.UsedRefTextPanel],ss={[P.x.WRichText]:No,[P.x.WPlaceholder]:zo(P.x.WPlaceholder),[P.x.WRect]:zo(P.x.WRect),[P.x.WOval]:zo(P.x.WOval),[P.x.WLine]:[[dn(P.x.WLine),Ot.s.RichTextFontPanel],[pn(P.x.WLine),Ot.s.TextFontPanel],[So(P.x.WLine),Ot.s.AlignPanel],[an(P.x.WLine),Ot.s.SpacingPanel],[mn,Ot.s.ContentBoxPanel],un],[P.x.WArrow]:[[dn(P.x.WArrow),Ot.s.RichTextFontPanel],[pn(P.x.WArrow),Ot.s.TextFontPanel],[So(P.x.WArrow),Ot.s.AlignPanel],[an(P.x.WArrow),Ot.s.SpacingPanel],[mn,Ot.s.ContentBoxPanel],un],[P.x.WPolygon]:zo(P.x.WPolygon),[P.x.WStar]:zo(P.x.WStar),[P.x.wFlowClosed]:zo(P.x.wFlowClosed),[P.x.WFlowOpened]:zo(P.x.WFlowOpened),[P.x.WButton]:zo(P.x.WButton),[P.x.WButtonSolid]:oo(),[P.x.WDropMenu]:Vo,[P.x.WMTextInput]:Ko(P.x.WMTextInput),[P.x.WMTextArea]:[[dn(P.x.WMTextArea),Ot.s.RichTextFontPanel],[pn(P.x.WMTextArea),Ot.s.TextFontPanel],[So(P.x.WMTextArea),Ot.s.AlignPanel],[an(),Ot.s.SpacingPanel],[mn,Ot.s.ContentBoxPanel]],[P.x.WMobileTabBars]:[[dn(),Ot.s.RichTextFontPanel],[pn(),Ot.s.TextFontPanel],[an(),Ot.s.SpacingPanel]],[P.x.WMSelect]:[[dn(),Ot.s.RichTextFontPanel],[pn(),Ot.s.TextFontPanel],[an(),Ot.s.SpacingPanel],[mn,Ot.s.ContentBoxPanel]],[P.x.WTabs]:[[dn(),Ot.s.RichTextFontPanel],[pn(),Ot.s.TextFontPanel],[an(),Ot.s.SpacingPanel]],[P.x.WSegmentedControl]:[[dn(),Ot.s.RichTextFontPanel],[pn(),Ot.s.TextFontPanel],[an(),Ot.s.SpacingPanel]],[P.x.WChart]:[[Oo,Ot.s.ChartTextFontPanel]],[P.x.WTable]:[[qn,Ot.s.TableTextFontPanel],[Ut(P.x.WTable),Ot.s.TableAlignPanel],[wn,Ot.s.TableSpacingPanel],[Sn,Ot.s.ContentBoxPanel]],[P.x.WElbow]:zo(P.x.WElbow),[P.x.WVector]:zo(P.x.WVector),[P.x.WTriangle]:zo(P.x.WTriangle),[P.x.WTree]:[[dn(P.x.WTree),Ot.s.RichTextFontPanel],[pn(P.x.WTree),Ot.s.TextFontPanel],[an(P.x.WTree),Ot.s.SpacingPanel],[mn,Ot.s.ContentBoxPanel]],[P.x.WMTooltip]:[[dn(P.x.WMTooltip),Ot.s.RichTextFontPanel],[pn(P.x.WMTooltip),Ot.s.TextFontPanel],[So(P.x.WMTooltip),Ot.s.AlignPanel],[an(P.x.WMTooltip),Ot.s.SpacingPanel],[mn,Ot.s.ContentBoxPanel]],[E.m9]:An()},le=m=>{const y=m[0],T=y==null?void 0:y.hotAttr.type,R=ss[T]||ss[E.m9],q=(0,Mo.OP)({selections:[y==null?void 0:y.key],styleType:"text"});if(m.length===1){const se=q?[ys].concat(R.filter(ue=>ue[1]!==Ot.s.RichTextFontPanel&&ue[1]!==Ot.s.SpacingPanel&&ue[1]!==Ot.s.TextFontPanel&&ue[1]!==Ot.s.RichTextSpacingPanel)):R;return[ro,...se]}else{let se=[];const ue=m.map(dt=>dt.hotAttr.type);let Ne=ue.every(dt=>dt===T);if(Ne)se=ss[T]||ss[E.m9];else{const dt=new Map;if(ue.includes(P.x.WRichText)){const sn=ss[P.x.WRichText]||ss[E.m9],[jn,Dn]=sn[0];dt.set(Dn,[jn,Dn])}const Bt=ue.findIndex(sn=>Fn.cX.includes(sn)),kt=ue[Bt]||T;se=[...Array.from(dt.values()),...An({textFontInfoType:kt,alignInfoType:kt,spacingInfoType:kt})]}const Ge=Ne&&R.findIndex(dt=>dt[1]===Ot.s.CanShowLibPlhPanel)!==-1,at=Ge&&m.every(dt=>q&&(0,Mo.OP)({selections:[dt.key],styleType:"text"})===q);return Ge||(se=se.filter(dt=>dt[1]!==Ot.s.CanShowLibPlhPanel)),at&&(se=[ys].concat(R.filter(dt=>dt[1]!==Ot.s.RichTextFontPanel&&dt[1]!==Ot.s.SpacingPanel&&dt[1]!==Ot.s.TextFontPanel&&dt[1]!==Ot.s.RichTextSpacingPanel))),[ro,...se]}};var At=e(64012);const Pt=s.Ay.section.withConfig({displayName:"styles__StyledPolygonInfo",componentId:"sc-1cje4gl-0"})(['.radius,.sideNum{padding:0;.common-line{display:flex;align-items:center;}.side-num-line{span.labelName{min-width:48px;}[type="slider"]{width:92px;margin:0 8px;.rail{.fill{background-color:',";}}}.input-number{width:52px;}}}.sideNum{&.noPadding{padding-bottom:0;}}padding:8px 0 8px 16px;border-top:1px solid ",";"],m=>m.theme.color_proto,m=>m.theme.color_bg_border_02);class Re extends h.PureComponent{render(){return(0,t.jsx)(Pt,{children:this.props.children})}}class yt extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"createOnChangeHandler",y=>(T,R)=>{const{dispatch:q,onChange:se,widgetType:ue,selections:Ne}=this.props;T=Math.max(0,Math.min(T,100)),se({value:T,attr:y,refVar:R,dispatch:q,supAttr:ue===P.x.WPolygon?"polygon":"star",selections:Ne}),q({type:"entry:auto:show:hide:item"})}),(0,i.A)(this,"handleRadiusChange",(y,T)=>{const{dispatch:R,onChange:q,widgetType:se,selections:ue}=this.props;q({value:parseInt(y),attr:T,dispatch:R,supAttr:se===P.x.WPolygon?"polygon":"star",selections:ue}),R({type:"entry:auto:show:hide:item"})}),(0,i.A)(this,"handleRadiusConfirm",(y,T)=>{this.handleRadiusChange(y,T),sdkStore.combineMerge(T+"-update")}),(0,i.A)(this,"handleMouseDown",y=>sdkStore.combineMergeMark(y+"-update"))}render(){const{radius:y,refVar:T}=this.props;return(0,t.jsx)("div",{className:"radius",children:(0,t.jsxs)("div",{className:"common-line side-num-line height-32",children:[(0,t.jsx)("span",{className:"labelName",children:I18N.SettingPanel.rd}),(0,t.jsx)(Oe.A,{attr:"radius",value:y,min:0,max:100,onChange:this.handleRadiusChange,onConfirm:this.handleRadiusConfirm,onMouseDown:this.handleMouseDown}),(0,t.jsx)(we.Yw,{type:"number",inputClassName:"input-number",attr:"radius",value:y,min:0,max:100,suffix:"%",refVar:T,onConfirm:this.createOnChangeHandler("radius")})]})})}}class Dt extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"createOnChangeHandler",y=>(T,R)=>{const{dispatch:q,onChange:se,widgetType:ue,selections:Ne}=this.props;T=Math.max(3,Math.min(T,20)),se({value:T,attr:y,refVar:R,dispatch:q,supAttr:ue===P.x.WPolygon?"polygon":"star",selections:Ne}),q({type:"entry:auto:show:hide:item"})}),(0,i.A)(this,"handleSideNumChange",(y,T)=>{const{dispatch:R,onChange:q,widgetType:se,selections:ue}=this.props;q({value:parseInt(y),attr:T,dispatch:R,supAttr:se===P.x.WPolygon?"polygon":"star",selections:ue}),R({type:"entry:auto:show:hide:item"})}),(0,i.A)(this,"handleSideNumConfirm",(y,T)=>{this.handleSideNumChange(y,T),sdkStore.combineMerge(T+"-update")}),(0,i.A)(this,"handleSideNumMouseDown",y=>sdkStore.combineMergeMark(y+"-update"))}render(){const{sideNum:y,widgetType:T,refVar:R}=this.props;return(0,t.jsx)("div",{className:p()("sideNum",T===P.x.WPolygon&&"noPadding"),children:(0,t.jsxs)("div",{className:"common-line side-num-line height-32",children:[(0,t.jsx)("span",{className:"labelName",children:T===P.x.WPolygon?I18N.SettingPanel.side_num.polygon:I18N.SettingPanel.side_num.star}),(0,t.jsx)(Oe.A,{attr:"sideNum",value:y,min:3,max:20,onChange:this.handleSideNumChange,onConfirm:this.handleSideNumConfirm,onMouseDown:this.handleSideNumMouseDown}),(0,t.jsx)(we.Yw,{type:"number",inputClassName:"input-number",attr:"sideNum",value:y,min:3,max:20,refVar:R,onConfirm:this.createOnChangeHandler("sideNum")})]})})}}let Xt=function(m){return m[m.SideNumPanel=0]="SideNumPanel",m[m.RadiusPanel=1]="RadiusPanel",m}({});const Xn={[Xt.RadiusPanel]:{[P.x.WStar]:m=>{var y;let{selectedItems:T}=m;const R=T[0].hotAttr;return{radius:R.star.radius,widgetType:R.type,refVar:(y=(0,Wt.xj)(T,"star",["radius"]))==null?void 0:y.radius}}},[Xt.SideNumPanel]:{[P.x.WPolygon]:m=>{var y;let{selectedItems:T}=m;const R=T[0].hotAttr;return{sideNum:R.polygon.sideNum,widgetType:R.type,refVar:(y=(0,Wt.xj)(T,"polygon",["sideNum"]))==null?void 0:y.sideNum}},[P.x.WStar]:m=>{var y;let{selectedItems:T}=m;const R=T[0].hotAttr;return{sideNum:R.star.sideNum,widgetType:R.type,refVar:(y=(0,Wt.xj)(T,"star",["sideNum"]))==null?void 0:y.sideNum}}}},Do={component:Dt,params:{},getter:[Xn[Xt.SideNumPanel][P.x.WPolygon]],setter:{onChange:gt.c}},Uo={component:Dt,params:{},getter:[Xn[Xt.SideNumPanel][P.x.WStar]],setter:{onChange:gt.c}},jo={component:yt,params:{},getter:[Xn[Xt.RadiusPanel][P.x.WStar]],setter:{onChange:gt.c}},as={[E.m9]:[[]],[P.x.WPolygon]:[[Do,Xt.SideNumPanel]],[P.x.WStar]:[[Uo,Xt.SideNumPanel],[jo,Xt.RadiusPanel]]},gs=m=>{const y=m[0],T=as[y.hotAttr.type]||as[E.m9];return[Re,...T]};var Eo=e(45392);const ws="mp_image";class Rs extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)(ws,!0,vt.qW.Boolean)}),(0,i.A)(this,"handleChange",()=>{const{show:y}=this.state;(0,vt.a0)(ws,!y,vt.qW.Boolean),this.setState({show:!y})})}render(){const{show:y}=this.state;return(0,t.jsx)(rn.A,{collapse:!y,title:I18N.SettingPanel.inspector.image,onChange:this.handleChange,children:(0,t.jsx)("section",{type:"panel-body",className:"image-settings",children:this.props.children})})}}var As=e(79287),js=e.n(As),Ls=e(72490),wi=e(69623),Fs=e(27660);const Ii=(0,Fs.R)(()=>[{attr:"blur",label:I18N.dConst.inspector.blur,step:1,max:100,postfix:"px"},{attr:"brightness",label:I18N.dConst.inspector.brightness,step:.1,max:10,postfix:"",defaultValue:1},{attr:"contrast",label:I18N.dConst.inspector.contrast,step:.1,max:10,postfix:"",defaultValue:1},{attr:"saturate",label:I18N.dConst.inspector.saturate,step:.1,max:10,postfix:"",defaultValue:1},{attr:"grayscale",label:I18N.dConst.inspector.grayscale,step:.1,max:1,postfix:""},{attr:"sepia",label:I18N.dConst.inspector.sepia,step:.1,max:1,postfix:""},{attr:"hue-rotate",label:I18N.dConst.inspector.hue_rotate,step:30,max:360,postfix:"deg"},{attr:"invert",label:I18N.dConst.inspector.invert,step:.1,max:1,postfix:""}]);function Bs(m){m=m&&m.trim()||"";const y={};return m&&m.split(" ").forEach(R=>{if(R.trim()){const q=R.trim().split("("),se=q[0],ue=q[1].replace(/[a-zA-Z]*\)$/,"");y[se]=ue}}),y}function hi(m){const y=[];return Object.keys(m).forEach(T=>{const R=m[T];if(R&&R!=="none"){const{postfix:q}=Ii().find(se=>se.attr===T);y.push(T+"("+R+q+")")}}),y.join(" ")}const Li=s.Ay.div.withConfig({displayName:"styles__StyledImageFilterPanel",componentId:"sc-g79lpz-0"})(["position:absolute;z-index:1;margin-top:-25px;margin-left:1px;background:",";box-shadow:0 2px 10px rgba(0,0,0,0.12);border-radius:8px;border:1px solid ",";transform:translate(-100%);width:212px;header{display:flex;align-items:center;justify-content:space-between;height:40px;padding:0 8px 0 16px;font-weight:600;border-bottom:1px solid ",";.title{color:",";}.right{display:flex;align-items:center;justify-content:center;span.reset{visibility:hidden;&.show{visibility:visible;font-weight:400;font-size:12px;line-height:12px;color:",";width:50px;height:24px;padding:6px 13px;font-weight:400;font-size:12px;line-height:12px;cursor:pointer;border-radius:4px;&:hover{background-color:",";}&:active{background-color:",";}&:lang(en){width:40px;padding:6px 0;display:flex;justify-content:center;}}}.close{cursor:pointer;width:24px;height:24px;border-radius:4px;path{fill:",";}&:hover{background-color:",";}&:active{background-color:",";}}}}.content{padding:8px 16px 13px 16px;}"],m=>m.theme.color_bg_white,m=>m.theme.color_bg_border_02,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_text_L1,m=>m.theme.color_text_L1,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_text_L1,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_btn_secondary_active),qs=s.Ay.div.withConfig({displayName:"styles__StyledFilterSlider",componentId:"sc-g79lpz-1"})(["height:18px;align-items:center;display:flex;[type='slider']{width:67px;.rail .fill{background-color:",";}&:lang(en){width:56px;}}.WorkspaceInputNumber{border:none !important;outline:none !important;outline-offset:0 !important;height:18px;}input{height:18px;width:50px;margin-left:8px;text-indent:5px;color:",";background-color:",";outline:none;border-radius:4px;border-width:1px;border-style:solid;border-color:",";border-image:initial;cursor:text;&:lang(en){width:40px;}}span{flex:1 1 0;color:",";}&:not(:last-child){margin-bottom:14px;}"],m=>m.theme.color_proto,m=>m.theme.color_text_L2,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_text_L2);class Ws extends h.PureComponent{constructor(y){var T;super(y),(0,i.A)(this,"setElementRef",R=>this.$element=R),(0,i.A)(this,"setIsExceedScreen",()=>{const{y:R}=this.props,q=R>document.body.clientHeight-this.$element.offsetHeight;this.setState({isExceedScreen:q})}),(0,i.A)(this,"handleChange",(R,q)=>{const{filter:se,dispatch:ue,selectedImageItems:Ne}=this.props,Ge=Bs(se);Ge[q]=R;const at=hi(Ge),dt=Ne.map(Bt=>({key:Bt.key,hotAttr:{image:{...Bt.hotAttr.image,imageFilter:at}}}));ue({type:"entry:widget:change",payload:{flatChgList:dt}})}),(0,i.A)(this,"handleConfirm",(R,q)=>{this.handleChange(R,q),sdkStore.combineMerge(q+"-update")}),(0,i.A)(this,"handleMouseDown",R=>{sdkStore.combineMergeMark(R+"-update")}),(0,i.A)(this,"handleResetFilter",()=>{const{dispatch:R,selectedImageItems:q}=this.props,se=q.map(ue=>({key:ue.key,hotAttr:{image:{...ue.hotAttr.image,imageFilter:""}}}));R({type:"entry:widget:change",payload:{flatChgList:se}})}),(0,i.A)(this,"handleClickOutside",R=>{var q;const{onClose:se}=this.props;(q=this.$element)!=null&&q.contains(R.target)||se(R)}),this.el=document.createElement("div"),this.x=((T=document.querySelector(".main-content #right-slide-panel"))==null?void 0:T.offsetLeft)-8,this.state={isExceedScreen:!1}}componentDidMount(){this.el&&document.body.append(this.el),this.setIsExceedScreen()}componentDidUpdate(){this.setIsExceedScreen()}componentWillUnmount(){this.el&&document.body.removeChild(this.el)}render(){const{y,filter:T,canResetFilter:R,onClose:q}=this.props,{isExceedScreen:se}=this.state,ue=Bs(T),Ne={top:se?"auto":y+"px",left:this.x+"px",bottom:se?"12px":"auto"};return(0,wi.createPortal)((0,t.jsxs)(Li,{ref:this.setElementRef,style:Ne,children:[(0,t.jsxs)("header",{children:[(0,t.jsx)("span",{className:"title",children:I18N.SettingPanel.inspector.filter}),(0,t.jsxs)("div",{className:"right",children:[(0,t.jsx)("span",{className:p()("reset",{show:R}),onClick:this.handleResetFilter,children:I18N.SettingPanel.reset}),(0,t.jsx)(x.C,{name:"design/autoFillPanel/close",className:"close",isColorPure:!0,onClick:q})]})]}),(0,t.jsx)("div",{className:"content",children:Ii().map(Ge=>{const{attr:at}=Ge,dt=ue[at];return(0,t.jsx)(Wi,{filter:Ge,value:dt,onChange:this.handleChange,onConfirm:this.handleConfirm,onMouseDown:this.handleMouseDown},at)})}),(0,t.jsx)($e.A,{target:document,onClick:(0,$e.t)(this.handleClickOutside,{capture:!0})})]}),this.el)}}class Wi extends h.PureComponent{render(){const{filter:y,value:T,onChange:R,onConfirm:q,onMouseDown:se}=this.props,{attr:ue,label:Ne,max:Ge,defaultValue:at}=y,dt=T||at||0;return(0,t.jsxs)(qs,{className:"line slider-line",children:[(0,t.jsx)("span",{children:Ne}),(0,t.jsx)(Oe.A,{attr:ue,value:dt,max:Ge,onChange:R,onConfirm:q,onMouseDown:se}),(0,t.jsx)(Ae.A,{attr:ue,min:0,max:Ge,precision:1,actionButton:!1,value:dt,onConfirm:q})]})}}var Ds=e(61675),Xs=e(94754),Ti=Object.defineProperty,ri=Object.defineProperties,ui=Object.getOwnPropertyDescriptors,Ks=Object.getOwnPropertySymbols,li=Object.prototype.hasOwnProperty,gi=Object.prototype.propertyIsEnumerable,wa=(m,y,T)=>y in m?Ti(m,y,{enumerable:!0,configurable:!0,writable:!0,value:T}):m[y]=T,ta=(m,y)=>{for(var T in y||(y={}))li.call(y,T)&&wa(m,T,y[T]);if(Ks)for(var T of Ks(y))gi.call(y,T)&&wa(m,T,y[T]);return m},pr=(m,y)=>ri(m,ui(y)),hr=(m,y)=>{var T={};for(var R in m)li.call(m,R)&&y.indexOf(R)<0&&(T[R]=m[R]);if(m!=null&&Ks)for(var R of Ks(m))y.indexOf(R)<0&&gi.call(m,R)&&(T[R]=m[R]);return T},Ia=(0,h.forwardRef)((m,y)=>{var T=m,{size:R,spin:q,style:se}=T,ue=hr(T,["size","spin","style"]);const Ne=ta(ta({width:R||"var(--x-icon-size, 1em)",height:R||"var(--x-icon-size, 1em)",animation:q?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),se);return h.createElement("svg",pr(ta({ref:y,style:Ne},ue),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),h.createElement("path",{d:"M12.0642 5C12.3404 5 12.5642 5.22386 12.5642 5.5V18.5C12.5642 18.7761 12.3404 19 12.0642 19C11.7883 18.9998 11.5642 18.776 11.5642 18.5V5.5C11.5642 5.224 11.7883 5.00023 12.0642 5ZM9.90015 7.00977C10.1282 7.05619 10.2996 7.25819 10.2996 7.5C10.2996 7.74181 10.1282 7.94381 9.90015 7.99023L9.79956 8H7.57788C7.32327 8 7.10916 8.19135 7.08081 8.44434L6.30151 15.4443C6.26857 15.7405 6.50067 15.9999 6.79858 16H9.79858C10.0747 16 10.2986 16.2239 10.2986 16.5C10.2986 16.7761 10.0747 17 9.79858 17H6.79858C5.9046 16.9999 5.2095 16.2225 5.30835 15.334L6.08667 8.33398C6.17124 7.5745 6.81369 7 7.57788 7H9.79956L9.90015 7.00977Z",fill:"#19191A"}),h.createElement("path",{d:"M14.435 7C14.1588 7 13.935 7.22386 13.935 7.5C13.935 7.77614 14.1588 8 14.435 8H16.4223C16.6769 8 16.891 8.19134 16.9193 8.44434L17.6986 15.4443C17.7316 15.7405 17.4995 15.9999 17.2016 16H14.4359C14.1598 16 13.9359 16.2239 13.9359 16.5C13.9359 16.7761 14.1598 17 14.4359 17H17.2016C18.0955 16.9999 18.7906 16.2225 18.6918 15.334L17.9135 8.33398C17.8289 7.5745 17.1865 7 16.4223 7H14.435Z",fill:"#8B8C8F"}))}),ur=Object.defineProperty,gr=Object.defineProperties,mr=Object.getOwnPropertyDescriptors,Fi=Object.getOwnPropertySymbols,Ta=Object.prototype.hasOwnProperty,Aa=Object.prototype.propertyIsEnumerable,Pa=(m,y,T)=>y in m?ur(m,y,{enumerable:!0,configurable:!0,writable:!0,value:T}):m[y]=T,na=(m,y)=>{for(var T in y||(y={}))Ta.call(y,T)&&Pa(m,T,y[T]);if(Fi)for(var T of Fi(y))Aa.call(y,T)&&Pa(m,T,y[T]);return m},fr=(m,y)=>gr(m,mr(y)),xr=(m,y)=>{var T={};for(var R in m)Ta.call(m,R)&&y.indexOf(R)<0&&(T[R]=m[R]);if(m!=null&&Fi)for(var R of Fi(m))y.indexOf(R)<0&&Aa.call(m,R)&&(T[R]=m[R]);return T},Ma=(0,h.forwardRef)((m,y)=>{var T=m,{size:R,spin:q,style:se}=T,ue=xr(T,["size","spin","style"]);const Ne=na(na({width:R||"var(--x-icon-size, 1em)",height:R||"var(--x-icon-size, 1em)",animation:q?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),se);return h.createElement("svg",fr(na({ref:y,style:Ne},ue),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),h.createElement("path",{d:"M5 12.0645C5 12.3406 5.22386 12.5645 5.5 12.5645L18.5 12.5645C18.7761 12.5645 19 12.3406 19 12.0645C19 11.7883 18.7761 11.5645 18.5 11.5645L5.5 11.5645C5.22387 11.5645 5.00002 11.7883 5 12.0645ZM7.00977 9.90039C7.05633 10.1283 7.25832 10.2998 7.5 10.2998C7.74168 10.2998 7.94367 10.1283 7.99024 9.90039L8 9.7998L8 7.57812C8 7.32352 8.19137 7.10942 8.44434 7.08105L15.4443 6.30176C15.7405 6.26881 15.9999 6.50091 16 6.79883L16 9.79883C16.0002 10.0748 16.224 10.2988 16.5 10.2988C16.776 10.2988 16.9998 10.0748 17 9.79883L17 6.79883C16.9999 5.90484 16.2225 5.20974 15.334 5.30859L8.33398 6.08691C7.57452 6.1715 7 6.81394 7 7.57812L7 9.7998L7.00977 9.90039Z",fill:"#19191A"}),h.createElement("path",{d:"M7 14.435C7 14.1588 7.22386 13.935 7.5 13.935C7.77614 13.935 8 14.1588 8 14.435L8 16.4223C8 16.6769 8.19134 16.891 8.44434 16.9193L15.4443 17.6986C15.7405 17.7316 15.9999 17.4995 16 17.2016L16 14.4359C16 14.1598 16.2239 13.9359 16.5 13.9359C16.7761 13.9359 17 14.1598 17 14.4359L17 17.2016C16.9999 18.0955 16.2225 18.7906 15.334 18.6918L8.33398 17.9135C7.5745 17.8289 7 17.1865 7 16.4223L7 14.435Z",fill:"#8B8C8F"}))});const yr=s.Ay.div.withConfig({displayName:"style__StyledImageLine",componentId:"sc-18lu13n-0"})(["position:relative;height:80px;border-radius:6px;overflow:hidden;margin:8px 0;border:1px solid ",";&.line:not(:last-child){margin-bottom:12px;}&:hover{.drop-area{visibility:visible;}}"],m=>m.theme.color_bg_border_01),vr=s.Ay.div.withConfig({displayName:"style__StyledImage",componentId:"sc-18lu13n-1"})(["height:80px;position:absolute;display:flex;align-items:center;justify-content:center;width:202px;background-image:url(",");background-color:",";.styleForPlaceholder{background-color:",";width:134px;height:80px;display:flex;align-items:center;justify-content:center;.svg-icon{color:",";width:32px;height:32px;}}img{max-width:100%;max-height:100%;}"],m=>m.theme.bg_base64,m=>m.theme.color_btn_secondary_active,m=>m.placeholderBackground,m=>m.theme.color_text_L1),br=s.Ay.div.withConfig({displayName:"style__StyledDropArea",componentId:"sc-18lu13n-2"})(["width:100%;height:80px;text-align:center;position:absolute;background:transparent;transition:all 0.15s ease-in-out;font-size:12px;color:#fff;padding-top:14px;.arrow-icon{width:24px;height:24px;}&:lang(ja){font-size:10px;}&:hover{background:rgba(0,0,0,0.29);.desc,label{display:block;}}&.is-open{background:rgba(0,0,0,0.29);.desc,label{display:block;}}&.is-active{background:rgba(41,141,248,0.06);border:1px solid ",";.desc,label{display:none;}}.desc{display:none;}label{border:1px solid #fff;height:28px;color:#fff;width:108px;margin:auto;border-radius:4px;margin-top:6px;align-items:center;justify-content:center;display:none;&:lang(ja){width:106px;}button{display:flex;align-items:center;justify-content:center;margin:auto;width:100%;height:100%;div{display:flex;align-items:center;justify-content:center;width:100%;height:26px;position:relative;font-weight:500;.arrow-icon{position:absolute;right:1px;top:1px;}&:lang(ja){width:100px;}}}.is-expand{transform:rotate(180deg);}&:hover,&.is-open{border:1px solid #fff;height:28px;color:rgba(0,0,0,0.9);background:#ffffff;.arrow-icon{color:rgba(0,0,0,0.9);}}}"],m=>m.theme.color_proto),Cr=(0,s.DU)(["#IBOT_DROPDOWN_MENU_ROOT{.image-drop-area-menu{width:108px;color:#fff;border-radius:9px;.new{margin-left:4px;}.content{background:rgb(51,51,51);padding:8px;border-radius:8px;color:",";background:",";ul{list-style:none;li{height:24px;margin:2px 0;display:flex;align-items:center;padding-left:16px;border-radius:4px;cursor:pointer;color:",";.svg-icon{color:",";margin-left:12px;margin-right:6px;}&:hover{background:",";}}}}&:lang(en){width:130px;}}}"],m=>m.theme.color_text_L1,m=>m.theme.color_bg_white,m=>m.theme.color_text_L1,m=>m.theme.color_text_L2,m=>m.theme.color_btn_secondary_hover),lc=s.Ay.div.withConfig({displayName:"style__StyledCuttingButton",componentId:"sc-18lu13n-3"})(["display:flex;align-items:center;height:22px;span{color:",";}.radio-line{margin:0 16px 0 10px;width:50px;.radio-option.check-line{flex:0 0 24px;height:24px;border-radius:4px;transition:all 0.2s ease-in-out;&:not(.active):hover{background-color:",";}&.active{background:",";}}a{width:100%;height:100%;display:flex;align-items:center;justify-content:center;}.svg-icon{rect{fill:transparent;stroke:",";}}li{&.active{.svg-icon{rect{stroke:",";}}}}}button{width:101px;height:22px;display:flex;align-items:center;justify-content:center;border:1px solid ",";border-radius:2px;color:",";.svg-icon{margin-right:4px;}&:hover{background:",";}&:active{background:",";}}"],m=>m.theme.color_text_L2,m=>m.theme.color_btn_secondary_hover,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_text_L1,m=>m.theme.color_text_L1,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_text_L1,m=>m.theme.color_btn_secondary_hover,m=>m.theme.color_btn_secondary_active),Sr=s.Ay.div.withConfig({displayName:"style__StyledFooterOperationLine",componentId:"sc-18lu13n-4"})(["display:flex;align-items:center;justify-content:space-between;.image-operation-type{.image-mirror-h-s,.image-mirror-v-s{border-radius:4px;cursor:pointer;&:hover{background-color:",";}&:active{background-color:",";}path{&:nth-child(1){fill:",";}&:nth-child(2){fill:",";}}}}.image-operation-type,.filter{svg.svg-icon{width:24px;height:24px;color:",";&:not([fill]){[stroke]{fill:none;stroke:",";}}}}.Tooltip{display:flex;}.radio-line{display:flex;align-items:center;justify-content:center;height:24px;margin-bottom:0;.radio-option.check-line{flex:0 0 24px;height:24px;border-radius:4px;transition:all 0.2s ease-in-out;a{width:100%;height:100%;}&:not(.active):hover{background-color:",";}&.active,&:active{background:",";}}}.filter{width:24px;height:24px;border-radius:4px;transition:all 0.2s ease-in-out;&:not(.active):hover{background-color:",";}&.active{background:",";}}.image-operations{display:flex;align-items:center;.select-fill-type{width:64px;height:28px;align-items:center;justify-content:space-between;margin-left:6px;&:lang(en){width:76px;}&.select-fill-type-none{width:76px;button{color:",";}}}}"],m=>m.theme.color_background_icon_hover,m=>m.theme.color_background_icon_active,m=>m.theme.color_text_L1,m=>m.theme.color_text_disabled01,m=>m.theme.color_text_L1,m=>m.theme.color_text_L1,m=>m.theme.color_btn_secondary_hover,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_btn_secondary_hover,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_text_L2),_r=(0,s.DU)(["#IBOT_SELECT_MENU_ROOT{.SelectMenuPortal{.WorkspaceSelectMenu.is-open{&.image-fill-type-menu{width:78px;&:lang(en){width:96px;}transform:translateY(28px);top:0px !important;.Ellipsis{padding:0 10px 0 22px;}svg{left:7px;}}}}}"]);var Ea=e(87945),oa=e(92272),La=e(47163),mi=e(78257);let sa=null;const Na={[mi.lS.Directory]:"\u76EE\u5F55\u9762\u677F",[mi.lS.Builtin]:"\u7EC4\u4EF6\u9762\u677F",[mi.lS.Icon]:"\u56FE\u6807\u9762\u677F",[mi.lS.Page]:"\u9875\u9762\u9762\u677F",[mi.lS.Asset]:"\u56FE\u7247\u9762\u677F",[mi.lS.Template]:"\u6BCD\u7248\u9762\u677F",[mi.lS.AI]:"AI\u9762\u677F"},wr={combo_group:"\u7EC4\u4EF6",icon_group:"\u56FE\u6807",screen_list:"\u9875\u9762",asset:"\u56FE\u7247"},cc=m=>{let{isFromIconSelectPopup:y,panelName:T}=m;try{y?saTrack("widget_icon_search_start",{source:sa}):saTrack("panel_search_start",{source:Na[T]})}catch(R){console.log(R.message)}},dc=m=>{let{isFromIconSelectPopup:y,panelName:T,keyword:R,sort:q,count:se,responseTime:ue=null}=m;try{if(!R.trim())return;y?saTrack("widget_icon_search_result",{source:sa,keyword:R,count:se}):saTrack("panel_search_result",{source:Na[T],keyword:R,sort:wr[q],count:se,response_time:ue})}catch(Ne){console.log(Ne.message)}},ia=m=>{let{source:y}=m;try{(0,D.kH)("setting_panel_image_click",{source:y})}catch(T){console.log(T.message)}},Da=m=>{let{source:y}=m;try{sa=y,(0,D.kH)("setting_panel_widget_icon_click",{source:y})}catch(T){console.log(T.message)}},Ir=m=>js()(m).isBefore(js()("2022-04-28 23:59:59"));class Tr extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{isActive:!1,isOpen:!1,filterPanelOpen:!1,filterPositionY:0}),(0,i.A)(this,"IMAGE_SETTING_OPTIONS",[{label:(0,t.jsx)(Q.P,{name:"setting_panel/image_view/slicing",tagName:"SVGIcon",content:I18N.SettingPanel.slicing,direction:"down"}),value:Rt.bl.slicing},{label:(0,t.jsx)(Q.P,{name:"setting_panel/image_view/cutting",tagName:"SVGIcon",content:I18N.SettingPanel.cutting,direction:"down"}),value:Rt.bl.cutting},{label:(0,t.jsx)(a.A,{content:I18N.SettingPanel.horizontal_flip,direction:"down",children:(0,t.jsx)(Ia,{className:"image-mirror-h-s",size:24})}),value:Rt.bl.flipH},{label:(0,t.jsx)(a.A,{content:I18N.SettingPanel.vertical_flip,direction:"down",children:(0,t.jsx)(Ma,{className:"image-mirror-v-s",size:24})}),value:Rt.bl.flipV}]),(0,i.A)(this,"toggleDropdown",y=>this.setState({isOpen:y})),(0,i.A)(this,"setFileRef",y=>this.file=y),(0,i.A)(this,"handleManageImage",()=>{this.props.dispatch({type:"entry:resource:open:assetPanel"}),this.toggleDropdown(!1),ia({source:"\u56FE\u7247\u5E93"})}),(0,i.A)(this,"handleOpenAutoFill",()=>{this.props.dispatch({type:"entry:autoFillPanel:toggle:show",payload:{canClose:!1,openFrom:Ea.G.ImageMenu}}),this.toggleDropdown(!1),ia({source:"\u667A\u80FD\u586B\u5145"})}),(0,i.A)(this,"handleUploadImage",()=>{this.file.click(),ia({source:"\u672C\u5730\u56FE\u7247"})}),(0,i.A)(this,"handleFileChange",y=>{const T=y.target.files[0];this.file.value="",this.file.setAttribute("value",""),this.handleUpload(T)}),(0,i.A)(this,"handleDragLeave",y=>{y.stopPropagation(),y.preventDefault(),this.setState({isActive:!1})}),(0,i.A)(this,"handleDragOver",y=>{y.stopPropagation(),y.preventDefault(),y.nativeEvent.dataTransfer.dropEffect="copy",this.setState({isActive:!0})}),(0,i.A)(this,"handleDrop",y=>{y.stopPropagation(),y.preventDefault(),this.setState({isActive:!1});const T=y.nativeEvent.dataTransfer.files[0];this.handleUpload(T)}),(0,i.A)(this,"handleChangeOperationType",y=>{const{currentImageOperateType:T}=this.props,{dispatch:R}=this.props,q=y.currentTarget.dataset.value;if(!(T&&T===q))switch(q){case Rt.bl.flipH:R({type:"entry:image-view:horizontal-flip",payload:{isImage:!0}});break;case Rt.bl.flipV:R({type:"entry:image-view:vertically-flip",payload:{isImage:!0}});break;default:{R({type:"entry:image-view:edit",payload:{operationType:q}});const se=q===Rt.bl.cutting;R(se?{type:"entry:image-view:cutting"}:{type:"update:screenContainer:state",payload:{defaultImageSlicingOffset:{x:y.clientX-90,y:y.clientY}}})}break}}),(0,i.A)(this,"handleToggleFilterPanelOpen",(y,T)=>{const R=T!==void 0?T:!this.state.filterPanelOpen;this.setState({filterPanelOpen:R,filterPositionY:y.clientY}),R&&MB.commonGuideHelper.checkGuideToBeShown(Qe.c.GUIDE_IMAGE_SLICING)&&!MB.commonGuideHelper.checkGuideHasShown(Qe.c.GUIDE_IMAGE_SLICING)&&(MB.commonGuideHelper.closeGuide(Qe.c.GUIDE_IMAGE_SLICING),MB.commonGuideHelper.markGuideAsRead(Qe.c.GUIDE_IMAGE_SLICING))}),(0,i.A)(this,"handleChangeFillType",y=>{const{dispatch:T,fillType:R}=this.props;R!==y&&T({type:"entry:image-view:fill-type",payload:{imageFillType:y}})})}componentDidMount(){const{isDesign:y,currentUser:T,canClipImage:R}=this.props;y&&T&&R&&Ir(T==null?void 0:T.created_at)&&MB.commonGuideHelper.tryToShowGuide(Qe.c.GUIDE_IMAGE_SLICING)}componentWillUnmount(){MB.commonGuideHelper.closeGuide(Qe.c.GUIDE_IMAGE_SLICING)}handleUpload(y){const{isExperience:T,isLoggedExperience:R,rootProject:q,currentUser:se,currentOrg:ue}=this.props;if(T||R){MB.notice({text:I18N.LibraryContainer.un_save_tips});return}(0,Xs.i3)({files:[y],rootProject:q,callback:Ne=>{this.props.dispatch({type:"entry:items:set:asset",payload:{asset:Ne}})},isFilterSvg:!1},se,ue)}render(){const{showImageDropPanel:y,image:T,filter:R,canClipImage:q,canSliceImage:se,canResetFilter:ue,currentImageOperateType:Ne,background:Ge,dispatch:at,fillType:dt,canSetFillType:Bt,selectedImageItems:kt}=this.props,{isActive:qt,isOpen:sn,filterPanelOpen:jn,filterPositionY:Dn}=this.state;if(!y)return null;const lo=Ge&&(0,Ls.bH)(Ge)?(0,Ls.bH)(Ge):"rgb(229, 229, 229)",Wo=q?this.IMAGE_SETTING_OPTIONS:this.IMAGE_SETTING_OPTIONS.filter(is=>is.value!==Rt.bl.cutting),Zo=(0,oa.Kf)(T),Yo=[{label:I18N.SettingPanel.image_fill,value:"fill",isDisabled:!1},{label:I18N.SettingPanel.image_stretch,value:"stretch",isDisabled:!1}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(yr,{className:p()(Qe.c.GUIDE_IMAGE_SLICING),children:[(0,t.jsx)("input",{ref:this.setFileRef,type:"file",onChange:this.handleFileChange,hidden:!0,multiple:!0,accept:"image/*"}),(0,t.jsxs)(vr,{className:"bgImg",placeholderBackground:lo,children:[Zo&&(0,t.jsx)("img",{src:Zo}),!Zo&&(0,t.jsx)("div",{className:"styleForPlaceholder",children:(0,t.jsx)(x.C,{name:"right_panel/image/place_holder"})})]}),(0,t.jsxs)(br,{className:p()("drop-area",{"is-active":qt,"is-open":sn}),onDrop:this.handleDrop,onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,children:[(0,t.jsx)("span",{className:"desc",children:I18N.SettingPanel.inspector.drag_image_here}),(0,t.jsx)(Cr,{}),(0,t.jsx)(Jo.A,{menuY:"bottom",isOpen:sn,className:"image-drop-area-opener",onToggle:this.toggleDropdown,shouldPreventScrollingPropagation:!1,opener:(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"changeNewDeviceSize",children:I18N.SettingPanel.image_upload}),(0,t.jsx)(x.C,{className:p()("arrow-icon",{"is-expand":sn}),name:"common/expand@26"})]}),menuClassName:"image-drop-area-menu",menu:(0,t.jsxs)("ul",{children:[(0,t.jsx)("li",{onClick:this.handleUploadImage,children:I18N.SettingPanel.local_image}),(0,t.jsxs)("li",{onClick:this.handleManageImage,children:[I18N.SettingPanel.img_library,(0,t.jsx)(x.C,{className:"new",name:"design/find_picture/new",isColorPure:!0,style:{width:27,height:12}})]}),(0,La.k)()&&(0,t.jsx)("li",{onClick:this.handleOpenAutoFill,children:"\u667A\u80FD\u586B\u5145"})]})})]})]}),se&&(0,t.jsxs)(Sr,{className:"height-32",children:[(0,t.jsxs)("div",{className:"image-operations",children:[(0,t.jsx)(Ds.A,{className:"image-operation-type",options:Wo,value:Ne,handleChange:this.handleChangeOperationType}),Bt&&(0,t.jsx)(Be.mq,{className:p()("select-fill-type",!Yo.find(is=>is.value===dt)&&"select-fill-type-none"),menuClassName:"export-select-menu image-fill-type-menu",value:dt,optionList:Yo,onChange:this.handleChangeFillType,placeholder:I18N.SettingPanel.please_select})]}),(0,t.jsx)(Q.P,{iconClassName:p()("filter",{active:jn}),name:"setting_panel/image_view/filter",tagName:"SVGIcon",content:I18N.SettingPanel.inspector.filter,onClick:this.handleToggleFilterPanelOpen}),jn&&(0,t.jsx)(Ws,{y:Dn,filter:R,canResetFilter:ue,selectedImageItems:kt,onClose:is=>this.handleToggleFilterPanelOpen(is,!1),dispatch:at}),(0,t.jsx)(_r,{})]})]})}}var aa=e(55052),Ar=e(55514);const Pr={component:Tr,params:{},getter:[m=>{let{selectedItems:y,isLoggedExperience:T,isExperience:R,rootProject:q,currentUser:se,currentOrg:ue,isDesign:Ne,imageProps:{currentImageOperateType:Ge}}=m;const at=y.filter(jn=>jn.hotAttr.type===P.x.WImage),dt=(0,it.i)(y,"image");if(!dt)return{showImageDropPanel:!1};const{imageClipType:Bt,imageRef:kt,imageFilter:qt}=dt,sn=(0,Ar.v)(dt);return{showImageDropPanel:!0,isLoggedExperience:T,isExperience:R,canShowResetImage:Bt!=="none",clipType:Bt,image:kt,rootProject:q,background:(0,it.i)(y,"background"),canClipImage:(0,aa.Dt)(y),canSliceImage:(0,aa.yS)(y),canResetFilter:qt,filter:qt,currentUser:se,currentOrg:ue,isDesign:Ne,currentImageOperateType:Ge,fillType:sn,canSetFillType:(0,aa.Ef)(y),selectedImageItems:at}}],setter:{}},ka=()=>[Rs,[Pr,"ImageDropInfo"]];var Mr=e(25582),Ns=e.n(Mr),Er=e(27784),oi=e(40486),Lr=e(93446),Nr=e(10999),Dr=e(99378),kr=e(24094),Oa=e(54894),Ra=e(97919),Or=e(27306),Ba=e(61924),ra=e(87606),Rr=e(40497),Br=e(6611),jr=e(17654),Vi=e(37780),Wr=e(83485);const Hi=(0,h.createContext)(null),Fr=(0,h.memo)(m=>{let{anchorMeta:y,onClose:T,fromType:R}=m;const q="treePanelFloat",se=(0,n.wA)(),{interactionTree:ue,editingInteraction2:Ne,itemKey:Ge,currentCanvas:at,isEditingCombo:dt,selectItaInfo:Bt,editingPanelRefPage:kt,selectInteractionKey:qt,selectTreeNode:sn,currentPath:jn,selectCarouselImage:Dn,selectSubItaType:lo,disableType:Wo,interactionStore:Zo,selectTreeNode2:Yo}=(0,Ba._C)({from:q}),os="TFPH-"+(0,n.d4)(c.PL).cid,[es,ns]=(0,Br.A)(os,{defaultValue:{}}),qo=y.type==="carousel"?"carousel":""+y.data.cid,ds=parseInt((es==null?void 0:es[qo])||"418"),[Es,Ps]=(0,h.useState)({top:-99999,left:-99999}),fs=(0,h.useRef)(null),ps=(0,h.useRef)("none");let Ss="multiple",ii=Ne,ai=sn,Ys=qt;if(Wo!=="none")Ss="disable";else if((Zo==null?void 0:Zo.type)==="defaultData"){var ti;Ss="empty",Ys=(0,oi.m1)((ue==null||(ti=ue.sub[0])==null?void 0:ti.attr.trigger)||"tap")}else if((ue==null?void 0:ue.sub.length)===1){const Ts=(0,oi.zd)(ue.sub[0].sub);Ts.length<=1?Ts.length===1?(ai=(0,oi.zS)(Ts[0].attr.key,ue),ii=ai.attr,Ss="single"):(Ys=(0,oi.m1)(ue.sub[0].attr.trigger),Ss="empty"):Ss="multiple"}else Ss="multiple";const $s=Ss==="multiple"?480:240;(0,h.useLayoutEffect)(()=>{if(y){var Ts;if(((Ts=fs.current)==null?void 0:Ts.type)==="carousel"&&y.type==="carousel"&&fs.current.imageIndex===y.imageIndex&&ps.current===Ss)return;let Ci;if(R==="carouselImage"?Ci=document.querySelector(".carousel-asset-section"):Ci=document.querySelector('.setting-drag-menu-item[data-path="'+y.path+'"]'),!Ci){T();return}const{top:Si,left:ea}=Ci.getBoundingClientRect();let _i=Si,Qs=418;if(Ss==="multiple")Qs=ds||418;else if(Ss==="disable")Qs=418;else{var ni;const{height:Us}=(ni=document.getElementById("interaction-panel-float"))==null?void 0:ni.getBoundingClientRect();Qs=Us}Si+Qs-window.innerHeight>0&&(_i=window.innerHeight-Qs-18),Ps({top:_i,left:ea-$s}),fs.current=y,ps.current=Ss}},[y,R,$s,Ss,ds]);const qi=Ts=>{Ts.target.closest("#interaction-panel-float")||Ts.target.closest(".SelectMenuPortal")||Ts.target.closest(".DropdownMenuPortal")||Ts.target.closest(".context-menu-mask")||Ts.target.closest(".dropdown-trigger-list")||Ts.target.closest(".var-dropmenu")||Ts.target.closest(".var-editor")||Ts.target.closest(".var-add-menubox")||Ts.target.closest(".listener-trigger-dropmenu")||Ts.target.closest(".animation-name-dropmenu")||T()},vi=(0,h.useRef)(),{position:Hs,setPosition:ji}=(0,Nr.J)(Es),Ca=(Ts,ni)=>{ji({left:Ts,top:ni})},Sa=()=>{if(!vi.current||!vi.current.$body)return;const{top:Ts,height:ni}=vi.current.$body.getBoundingClientRect();Ts+ni>window.innerHeight&&ji({...Hs,top:window.innerHeight-ni-12})};(0,h.useEffect)(()=>{lo==="carouselImage"?oi.e4.setSelection(Ge+"-"+Dn,qt):lo==="optionData"&&oi.e4.setSelection(Ge+"-"+jn,qt)},[Ge,se,jn,Dn,lo,qt]);const bi=(0,h.useCallback)((Ts,ni)=>{const{clientY:Ci}=Ts,Si=_i=>{const Qs=_i.clientY-Ci,_a=window.innerHeight-48-20;if(ni==="bottom"){const Us=ds+Qs;if(Us>418&&Us<_a){const Js={...es,[qo]:Us};ns(Js)}}else{const Us=ds-Qs;if(Us>418&&Us<_a){ji({top:Hs.top+Qs,left:Hs.left});const Js={...es,[qo]:Us};ns(Js)}}},ea=_i=>{document.removeEventListener("mousemove",Si),document.removeEventListener("mouseup",ea)};document.addEventListener("mousemove",Si),document.addEventListener("mouseup",ea)},[Hs]);return ue?(0,t.jsxs)(Hi.Provider,{value:{uiFrom:q,handleMove:Ca,position:Hs,interactionTree:ue,onClose:T,editingInteraction2:Ne,selectTreeNode:sn,interactionStore:Zo,itemKey:Ge,selectInteractionKey:qt,handleClickClose:qi,panelWidth:$s,currentCanvas:at,hadnleResize:bi,editingPanelRefPage:kt,selectItaInfo:Bt,isEditingCombo:dt,selectSubItaType:lo,selectCarouselImage:Dn,currentPath:jn,treePanelFloatRenderContentType:Ss,singleEditingInteraction2:ii,singleSelectTreeNode:ai,emptySelectInderactionKey:Ys,selectTreeNode2:Yo,adaptTopPosition:Sa},children:[(0,t.jsx)(Lr.A,{position:{left:Hs.left,top:Hs.top},onMove:Ca,ref:vi,children:(0,t.jsx)(kr.iv,{id:"interaction-panel-float","data-rendertype":Ss,panelWidth:$s,panelHeight:Ss==="multiple"?ds:void 0,children:Ss==="empty"?(0,t.jsx)(Vr,{}):Ss==="single"?(0,t.jsx)(Hr,{}):Ss==="disable"?(0,t.jsx)(jr.I,{disableType:Wo,onClose:T}):(0,t.jsx)(Ur,{})})}),(0,t.jsx)($e.A,{onMouseDown:qi,target:document})]}):null}),Vr=(0,h.memo)(()=>{const{uiFrom:m,interactionTree:y,onClose:T,itemKey:R,treePanelFloatRenderContentType:q,emptySelectInderactionKey:se,interactionStore:ue,selectTreeNode2:Ne}=(0,h.useContext)(Hi);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ra.C,{uiFrom:m,onClose:T,interactionTree:y,interactionStore:ue,treePanelFloatContentType:q}),(0,t.jsx)(Ra.S,{itemKey:R,selectNode2:Ne,selectItaInfo:{type:"action",keyList:[]},interactionDummyKey:se,interactionTree:y,interactionStore:ue,uiFrom:m})]})}),Hr=(0,h.memo)(()=>{const{uiFrom:m,interactionTree:y,onClose:T,interactionStore:R,itemKey:q,currentCanvas:se,treePanelFloatRenderContentType:ue,singleEditingInteraction2:Ne,singleSelectTreeNode:Ge,adaptTopPosition:at}=(0,h.useContext)(Hi);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ra.C,{uiFrom:m,hasTrash:!0,hasAddTrigger:!0,isClearAll:!0,onClose:T,interactionTree:y,interactionStore:R,selectTreeNode:Ge,treePanelFloatContentType:ue}),(0,t.jsx)(Oa.A,{link:Ne,currentCanvas:se,currentWidgetKey:q,hasTrash:!0,interactionTree:y,interactionStore:R,selectTreeNode:Ge,uiFrom:m,isNewTriggerPlaceHolder:!1,adaptTopPosition:at})]})}),Ur=(0,h.memo)(()=>{const{uiFrom:m,interactionTree:y,editingInteraction2:T,interactionStore:R,selectTreeNode:q,onClose:se,itemKey:ue,selectInteractionKey:Ne,editingPanelRefPage:Ge,selectItaInfo:at,currentCanvas:dt,isEditingCombo:Bt,selectSubItaType:kt,selectCarouselImage:qt,currentPath:sn,hadnleResize:jn,treePanelFloatRenderContentType:Dn,selectTreeNode2:lo}=(0,h.useContext)(Hi),Wo=(0,h.useMemo)(()=>kt==="carouselImage"?ue+"-"+qt:kt==="optionData"?ue+"-"+sn:ue,[kt,qt,sn,ue]),{collapseList:Zo,handleCollapse:Yo}=(0,Ba.zi)({cacheKey:Wo,interactionTree:y}),is=(0,h.useCallback)((os,es)=>{es&&(0,oi.Es)(es.attr.key)&&(0,Wr.X)()},[]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"tree-float-resizer top",onMouseDown:os=>jn(os,"top")}),(0,t.jsx)(ra.C,{uiFrom:m,onClose:se,interactionTree:y,interactionStore:R,selectTreeNode:q,treePanelFloatContentType:Dn}),(0,t.jsxs)("div",{className:"big-container",children:[(0,t.jsxs)("div",{className:"tree-container",children:[(0,t.jsx)(Rr.m,{showPreference:!1,disabled:!1,buttonType:"common",uiFrom:m,handleCollapse:Yo,interactionTree:y,interactionStore:R,itemKey:ue}),y?(0,t.jsx)(Dr.L,{currentWidgetKey:ue,interactionTree:y,selectInteractionKey:Ne,editingPanelRefPage:Ge,uiFrom:m,collapseList:Zo,handleCollapse:Yo,interactionStore:R,extraClick:is,onCloseCallback:se,isEditingCombo:Bt}):(0,t.jsx)(Or.U,{isEditingCombo:Bt,showImg:!1,openEditorFloat:!1,uiFrom:m,interactionStore:R})]}),(0,t.jsx)("div",{className:"editor-container",children:at.type==="trigger"||at.type==="action"?(0,t.jsx)(Ra.S,{selectNode2:lo,selectItaInfo:at,interactionDummyKey:Ne,interactionTree:y,interactionStore:R,uiFrom:m}):T?(0,t.jsx)(Oa.A,{link:T,currentCanvas:dt,currentWidgetKey:ue,hasTrash:!0,interactionTree:y,interactionStore:R,selectTreeNode:q,uiFrom:m}):null})]}),(0,t.jsx)("div",{className:"tree-float-resizer bottom",onMouseDown:os=>jn(os,"bottom")})]})}),ja=m=>{let{onClose:y,anchorMeta:T,fromType:R}=m;const q=(0,n.wA)(),se=()=>{y(),q(Vi.R7.command.clearAllCommand({}))};return(0,wi.createPortal)((0,t.jsx)(t.Fragment,{children:(0,t.jsx)(Fr,{onClose:se,anchorMeta:T,fromType:R})}),document.getElementById("fixed-area"))};var Kr=e(68455),zr=e(62537);class Gr extends h.PureComponent{constructor(y){var T;super(y),T=this,(0,i.A)(this,"setListElementRef",R=>this.$element=R),(0,i.A)(this,"setInputRef",R=>this.input=R),(0,i.A)(this,"handleAssetUpload",()=>{const{assetIndex:R,onUploadStart:q}=this.props;q(R),this.input.click()}),(0,i.A)(this,"handleDropUpload",R=>{const{onUploadEnd:q,isExperience:se,isLoggedExperience:ue,rootProject:Ne,currentUser:Ge,currentOrg:at}=this.props;if(se||ue){MB.notice({text:I18N.LibraryContainer.un_save_tips});return}(0,Xs.i3)({files:R,rootProject:Ne,callback:dt=>q(dt.image)},Ge,at)}),(0,i.A)(this,"handleClickAction",R=>{R.stopPropagation(),this.handleToggle()}),(0,i.A)(this,"handleToggle",function(R){R===void 0&&(R=void 0);const{isListItemGroup:q}=T.state,se=R===void 0?!q:R;T.setState({isListItemGroup:se})}),(0,i.A)(this,"handleDocDown",R=>{var q;let{target:se}=R;const{isListItemGroup:ue}=this.state;ue&&((q=this.$element)!=null&&q.contains(se)||se.closest(".list-content")||this.handleToggle(!1))}),this.state={isListItemGroup:!1}}handStopPropagation(y){y.stopPropagation()}render(){const{assetIndex:y,isHasAsset:T,onUploadByLibrary:R,onRemove:q,onOpenAutoFillPanel:se}=this.props,{isListItemGroup:ue}=this.state;return(0,t.jsxs)("div",{ref:this.setListElementRef,className:p()("asset-menu-btn",{hover:ue}),onMouseDown:this.handStopPropagation,onClick:this.handleClickAction,children:[(0,t.jsx)(x.C,{name:"design/templates/temp-btn",className:"library-menu"}),ue&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Zr,{isHasAsset:T,assetIndex:y,targetNode:this.$element,onUpload:this.handleAssetUpload,onUploadByLibrary:R,onRemove:q,onClose:()=>this.handleToggle(!1),onOpenAutoFillPanel:se}),(0,t.jsx)($e.A,{target:document,onMouseDown:(0,$e.t)(this.handleDocDown,{capture:!0})})]}),(0,t.jsx)(zr.A,{ref:this.setInputRef,onChange:this.handleDropUpload})]})}}class Zr extends h.PureComponent{constructor(y){super(y),(0,i.A)(this,"onUpload",T=>{T.stopPropagation();const{assetIndex:R,onUpload:q,onClose:se}=this.props;q(R),se()}),(0,i.A)(this,"onUploadByLibrary",T=>{T.stopPropagation();const{assetIndex:R,onUploadByLibrary:q,onClose:se}=this.props;q(T,R),se()}),(0,i.A)(this,"onOpenAutoFillPanel",T=>{T.stopPropagation();const{assetIndex:R,onClose:q,onOpenAutoFillPanel:se}=this.props;se(T,R),q()}),(0,i.A)(this,"handleRemove",T=>{T.stopPropagation();const{assetIndex:R,onRemove:q,onClose:se}=this.props;q(R),se()}),this.menuItems=[{isShow:!0,label:I18N.TextToolbar.image1,onClick:this.onUpload},{isShow:!0,label:I18N.TextToolbar.image2,onClick:this.onUploadByLibrary,isNew:!0},{isShow:(0,La.k)(),label:I18N.SmartFill.smart_fill,onClick:this.onOpenAutoFillPanel},{isShow:!0,label:I18N.SettingPanel.delete,onClick:this.handleRemove}]}render(){const{targetNode:y}=this.props;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Yr,{}),(0,t.jsx)(Kr.A,{className:"asset-action-MenuItem",menuItems:this.menuItems,targetNode:y,direction:"down-end",distance:2})]})}}const Yr=(0,s.DU)([".asset-action-MenuItem.list-content{width:108px;min-width:108px;.action{margin:2px 0;}}"]),Wa={light:"#F7F7F7",dark:"#363738"};class la extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{assets:[],dragIndex:null,dragDelta:[0,0],orderThroughDrag:null,needForceUpdate:!1,showLinkEditor:!1,linkPositionY:0,selectedIndex:null,imageIndex:-1}),(0,i.A)(this,"setMaskRef",y=>this.mask=y),(0,i.A)(this,"calDragDelta",(y,T,R,q)=>[y-R,T-q]),(0,i.A)(this,"handleDragAssetStart",y=>{const T=Number(y.currentTarget.dataset.index);this.setState({dragIndex:T});const{pageX:R,pageY:q}=y,se=Ne=>{const Ge=this.calDragDelta(Ne.pageX,Ne.pageY,R,q),{assets:at}=this.state,{newOrder:dt}=ca(Ge,T,at.length);this.setState({orderThroughDrag:dt,dragDelta:Ge})},ue=Ne=>{window.removeEventListener("mousemove",se),window.removeEventListener("mouseup",ue);const Ge=this.calDragDelta(Ne.pageX,Ne.pageY,R,q),{assets:at}=this.state,{newOrder:dt}=ca(Ge,T,at.length);this.popChangeOfReorder(dt)};window.addEventListener("mousemove",se),window.addEventListener("mouseup",ue)}),(0,i.A)(this,"popChangeOfReorder",y=>{const{assets:T}=this.state,R=Xr(T,y);JSON.stringify(R)===JSON.stringify(T)?this.setState({needForceUpdate:!0}):this.props.handleChange(R)}),(0,i.A)(this,"handleManageAsset",(y,T)=>{y.stopPropagation();const R=y.currentTarget.dataset.index||T,{dispatch:q}=this.props;q({type:"entry:carousel:image:displayIndex:update",payload:Number(R)}),q({type:"setting:select:carousel:image",payload:{selectCarouselImageIndex:Number(R)}}),this.setState({selectedIndex:Number(R)}),this.props.dispatch({type:"entry:resource:open:assetPanel"})}),(0,i.A)(this,"handleOpenAutoFillPanel",(y,T)=>{y.stopPropagation();const R=y.currentTarget.dataset.index||T,{dispatch:q}=this.props;q({type:"entry:carousel:image:displayIndex:update",payload:Number(R)}),q({type:"setting:select:carousel:image",payload:{selectCarouselImageIndex:Number(R)}}),this.setState({selectedIndex:Number(R)}),this.props.dispatch({type:"entry:autoFillPanel:toggle:show",payload:{canClose:!1,openFrom:Ea.G.ImageMenu}})}),(0,i.A)(this,"handleAssetUploadEnd",y=>{this.props.dispatch({type:"entry:replace:carousel:image",payload:{image:y}})}),(0,i.A)(this,"handleAssetUploadStart",y=>{this.props.dispatch({type:"setting:select:carousel:image",payload:{selectCarouselImageIndex:y}})}),(0,i.A)(this,"handleOpenEditLink",y=>{y.stopPropagation();const T=Number(y.currentTarget.dataset.index),{dispatch:R}=this.props;R({type:"setting:select:carousel:image",payload:{selectCarouselImageIndex:T}}),this.setState({showLinkEditor:!0,linkPositionY:y.clientY,imageIndex:T}),this.props.dispatch({type:"settings:update:state",payload:{isShowLinkPanel:!0}}),R(Vi.R7.command.subItaSelectCommand({type:"carouselImage",imageIndex:T}))}),(0,i.A)(this,"handleCloseLinkEditor",y=>{this.setState({showLinkEditor:!1,imageIndex:-1}),this.props.dispatch({type:"settings:update:state",payload:{isShowLinkPanel:!1}})}),(0,i.A)(this,"handleClick",y=>{y.stopPropagation(),this.setState({selectedIndex:parseInt(y.currentTarget.dataset.index)}),this.props.dispatch({type:"entry:carousel:image:displayIndex:update",payload:Number(y.currentTarget.dataset.index)}),this.props.dispatch({type:"setting:select:carousel:image",payload:{selectCarouselImageIndex:Number(y.currentTarget.dataset.index)}})}),(0,i.A)(this,"genAssetsViewer",(y,T)=>{let{asset:R,linkCids:q,fillType:se}=y;const{dragIndex:ue,orderThroughDrag:Ne,dragDelta:Ge,showLinkEditor:at}=this.state,{carouselImageIndex:dt,theme:Bt,isExperience:kt,isLoggedExperience:qt,rootProject:sn,currentUser:jn,currentOrg:Dn,innerLinks:lo}=this.props,Wo=ue===T,Zo=at&&dt===T,{hasUiInteractiveIta:Yo}=(0,oi.HW)(lo,q),is=Yo;let os,es;if(Wo){const ns=Di(ue);os=ns[0]+Ge[0],es=ns[1]+Ge[1]}else{const ns=Ne.indexOf(T),qo=Di(ns);os=qo[0],es=qo[1]}return(0,t.jsxs)("div",{className:"asset-viewer asset-box "+(this.state.selectedIndex===T?"selected":"")+" "+(Wo?"dragging":""),style:{transform:"translate("+os+"px, "+es+"px)"},"data-index":T,onMouseDown:this.handleDragAssetStart,onDoubleClick:this.handleManageAsset,onClick:this.handleClick,children:[(0,t.jsx)(Er.A,{src:(0,oa.Kf)(R),backgroundColor:Wa[Bt],fillType:se}),(0,t.jsx)(Gr,{isLoggedExperience:qt,isExperience:kt,isHasAsset:!!R,assetIndex:T,rootProject:sn,onUploadStart:this.handleAssetUploadStart,onUploadEnd:this.handleAssetUploadEnd,onRemove:this.handleDeleteAsset,onUploadByLibrary:this.handleManageAsset,currentUser:jn,currentOrg:Dn,onOpenAutoFillPanel:this.handleOpenAutoFillPanel}),(0,t.jsx)("i",{className:"asset-link-btn "+(Zo?"is-open":"")+" "+(is?"is-linked":""),"data-index":T,onClick:this.handleOpenEditLink,onMouseDown:this.stopDeleteBtnPress,onDoubleClick:this.stopDeleteBtnPress,children:$r})]},"asset-box-"+T)}),(0,i.A)(this,"handleAddAsset",()=>this.handleAddSlides("")),(0,i.A)(this,"handleAddSlides",y=>{const{assets:T}=this.state,R=[...T,{asset:(0,oa.q4)("Carousel",y).key,linkCids:"",fillType:"fill"}];this.props.handleChange(R),this.handleCloseLinkEditor();const q=R.length-1;this.props.dispatch({type:"setting:select:carousel:image",payload:{selectCarouselImageIndex:q}}),this.props.dispatch({type:"entry:carousel:image:displayIndex:update",payload:Number(q)}),this.setState({selectedIndex:Number(q)})}),(0,i.A)(this,"stopDeleteBtnPress",y=>y.stopPropagation()),(0,i.A)(this,"handleDeleteAsset",y=>{const{assets:T}=this.state,R=[...T.slice(0,y),...T.slice(y+1)];this.props.dispatch({type:"setting:select:carousel:image",payload:{selectCarouselImageIndex:null}}),this.props.handleChange(R)}),(0,i.A)(this,"handleDragUploadLeave",()=>{this.mask.classList.remove("active")}),(0,i.A)(this,"handleDragUploadOver",y=>{y.stopPropagation(),y.preventDefault(),this.mask.classList.add("active"),y.nativeEvent.dataTransfer.dropEffect="copy"}),(0,i.A)(this,"handleDropUpload",y=>{y.stopPropagation(),y.preventDefault();const{rootProject:T,currentUser:R,currentOrg:q}=this.props;this.mask.classList.remove("active"),(0,Xs.i3)({files:y.nativeEvent.dataTransfer.files,rootProject:T,callback:se=>this.handleAddSlides(se.image)},R,q)})}static getDerivedStateFromProps(y,T){return T.needForceUpdate||y.assets!==T.assets?{assets:y.assets,dragIndex:null,dragDelta:[0,0],orderThroughDrag:Ui(y.assets.length),needForceUpdate:!1}:T}componentWillUnmount(){this.props.dispatch({type:"setting:select:carousel:image",payload:{selectCarouselImageIndex:null}})}render(){const{assets:y,dragIndex:T,orderThroughDrag:R,showLinkEditor:q,imageIndex:se}=this.state,{height:ue,verticalMargin:Ne,countInRow:Ge}=Ni,at=Math.ceil((y.length+1)/Ge)*(ue+Ne)-Ne,dt=Di(y.length),Bt={transform:"translate("+dt[0]+"px, "+dt[1]+"px)"},kt=T!==null,qt=Di(R.indexOf(T)),sn={transform:"translate("+qt[0]+"px, "+qt[1]+"px)"};return(0,t.jsxs)("section",{className:"carousel-asset-section",type:"panel-body",style:{height:at+"px"},onDragOver:this.handleDragUploadOver,children:[y.map(this.genAssetsViewer),(0,t.jsx)("div",{className:"add-asset asset-box",style:Bt,onClick:this.handleAddAsset,children:Qr}),kt&&(0,t.jsx)("div",{className:"drag-target asset-box",style:sn}),(0,t.jsx)("div",{className:"mask",ref:this.setMaskRef,onDragLeave:this.handleDragUploadLeave,onDragOver:this.handleDragUploadOver,onDrop:this.handleDropUpload}),q&&(0,t.jsx)(ja,{onClose:this.handleCloseLinkEditor,anchorMeta:{assets:y,imageIndex:se,type:"carousel"},fromType:"carouselImage"})]})}}la.propTypes={assets:Ns().array,carouselImageIndex:Ns().number,handleChange:Ns().func,dispatch:Ns().func,theme:Ns().string,isExperience:Ns().bool,isLoggedExperience:Ns().bool,rootProject:Ns().object,innerLinks:Ns().array,currentUser:Ns().object,currentOrg:Ns().object};const Ni={width:66,height:48,horizontalMargin:5,verticalMargin:8,countInRow:3},Di=m=>{const{width:y,height:T,horizontalMargin:R,verticalMargin:q,countInRow:se}=Ni,ue=Math.floor(m/se),Ne=m%se;return[(y+R)*Ne,(T+q)*ue]},Ui=m=>{const y=[];for(let T=0;T<m;T++)y.push(T);return y},Fa=(m,y,T)=>{const R=m.slice(y,y+1)[0],q=[...m.slice(0,y),...m.slice(y+1)];return[...q.slice(0,T),R,...q.slice(T)]},ca=(m,y,T)=>{let[R,q]=m;const[se,ue]=Di(y),Ne=[se+R,ue+q],{width:Ge,height:at,horizontalMargin:dt,verticalMargin:Bt,countInRow:kt}=Ni,qt=Math.min(Math.ceil(T/kt)-1,Math.max(0,Math.floor(Ne[1]/(at+Bt)))),sn=Math.min(2,Math.max(0,Math.floor(Ne[0]/(Ge+dt)))),jn=qt*kt+sn,Dn=Ui(T),lo=Fa(Dn,y,jn);return{newDragIndex:jn,newOrder:lo}},Xr=(m,y)=>y.map(T=>m[T]),$r=(0,t.jsx)("svg",{width:"12px",height:"16px",viewBox:"0 0 12 16",children:(0,t.jsx)("path",{d:"M4.77273049,10 C4.69821385,10 4.6236972,9.98939518 4.54918056,9.95758071 C4.35046951,9.87274214 4.23869455,9.68185535 4.28837231,9.49096856 L4.9590221,6.83976317 L3.34449484,6.35194137 C3.19546155,6.30952209 3.07126714,6.20347387 3.02158938,6.06561119 C2.97191162,5.92774851 3.00916994,5.78988583 3.12094491,5.68383761 L6.5859688,2.15243202 C6.73500208,2.00396452 6.97097145,1.96154524 7.1696825,2.03577899 C7.36839355,2.11001274 7.49258795,2.30089953 7.45532963,2.49178632 L6.93371313,5.24903993 L8.59791815,5.54597493 C8.77179032,5.5777894 8.90840416,5.68383761 8.97050137,5.82170029 C9.03259857,5.9701678 8.99534025,6.1186353 8.87114584,6.23528834 L5.1453137,9.8515325 C5.05837762,9.94697589 4.90934433,10 4.77273049,10 Z",id:"Shape"})}),Qr=(0,t.jsx)("svg",{width:"12px",height:"12px",viewBox:"0 0 12 12",children:(0,t.jsx)("path",{d:"M5,5 L5,1 C5,0.44771525 5.44771525,1.01453063e-16 6,0 C6.55228475,-1.01453063e-16 7,0.44771525 7,1 L7,5 L11,5 C11.5522847,5 12,5.44771525 12,6 C12,6.55228475 11.5522847,7 11,7 L7,7 L7,11 C7,11.5522847 6.55228475,12 6,12 C5.44771525,12 5,11.5522847 5,11 L5,7 L1,7 C0.44771525,7 6.76353751e-17,6.55228475 0,6 C-6.76353751e-17,5.44771525 0.44771525,5 1,5 L5,5 Z",id:"Combined-Shape"})}),Jr=s.Ay.div.withConfig({displayName:"styles__StyledCarouselSettings",componentId:"sc-awtkbf-0"})(["overflow:unset;.carousel-asset-section{position:relative;box-sizing:content-box;width:210px;padding-top:8px;padding-bottom:8px;}.asset-box{position:absolute;left:14px;display:inline-block;width:","px;height:","px;background-color:",";border:1px solid transparent;border-radius:4px;overflow:hidden;vertical-align:middle;}.selected{border:1px solid ",";outline:1px solid ",";outline-offset:-2px;}.asset-viewer{.image-wrapper{width:100%;height:100%;border-radius:1px;overflow:hidden;img{width:100%;}span{background:",";svg{width:32px;height:32px;color:",";}}}.asset-menu-btn{opacity:0;position:absolute;bottom:4px;right:4px;display:flex;justify-content:center;align-items:center;cursor:pointer;.library-menu{color:",";width:16px;height:16px;}&:hover,&.hover{opacity:1;}}.asset-link-btn{position:absolute;right:4px;top:4px;width:12px;height:12px;border-radius:2px;background-color:",";display:flex;justify-content:center;align-items:center;cursor:pointer;svg{fill:",";margin:3px 0 0 0;}&.is-linked{background-color:",";svg{fill:#fff;}}&.is-open{background-color:#fcfcfc;svg{fill:",";}}}&:hover{.asset-menu-btn{opacity:1;}}&.dragging{z-index:999;border-color:transparent;.asset-delete-btn{opacity:0;}.asset-link-btn{opacity:0;}}}.add-asset{background:",";svg{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);fill:",";cursor:pointer;}}.drag-target{border:1px solid ",";background:",";}.line{justify-content:space-between;.left-label{width:auto;}&:hover .icon-bind{display:block;}.right-content{width:140px;&.switch-container{padding-left:7px;position:relative;.is-icon-button{position:absolute;left:-14px;top:-4px;}}&.color-btn-container{padding-left:3px;}.direction-select,.interval-value{width:100%;}}}.border-radius-panel{justify-content:space-between;}.mask{display:none;position:absolute;top:-30px;left:0;width:calc(100% - 6px);height:calc(100% + 30px);border:2px solid rgba(41,144,248,1);background-color:rgba(41,144,248,0.06);&.active{display:block;}}.divider{border-top:1px solid ",';margin:4px 0;}[type="panel-body"]{&.carousel-section{padding:8px 16px;}}'],Ni.width,Ni.height,m=>m.theme.color_bg_white,m=>m.theme.color_proto,m=>m.theme.color_proto,m=>m.theme.color_bg_card,m=>m.theme.color_text_L3,m=>m.theme.color_text_L1,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_text_L3,m=>m.theme.color_proto,m=>m.theme.color_proto,m=>m.theme.color_bg_card,m=>m.theme.color_text_disabled01,m=>m.theme.color_proto,m=>m.theme.color_bg_card,m=>m.theme.color_bg_border_01);class qr extends h.PureComponent{render(){return(0,t.jsx)(Jr,{children:this.props.children})}}var fi=e(92114),da=e(67588),xo=e(4648),el=e(5680),Ki=e(95106),pa=e(25997);class Va extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"mask",null),(0,i.A)(this,"DIRECTION_OPTIONS",[{label:I18N.SettingPanel.horizontal,value:"horizontal"},{label:I18N.SettingPanel.vertical,value:"vertical"}]),(0,i.A)(this,"handleChange",(y,T)=>{const{onChange:R,dispatch:q,selections:se}=this.props;R({value:y,attr:T,dispatch:q,selections:se})}),(0,i.A)(this,"handleChangeCarousel",(y,T,R)=>{const{onChange:q,dispatch:se,selections:ue}=this.props;q({value:y,attr:T,dispatch:se,supAttr:"carousel",selections:ue,refVar:R})}),(0,i.A)(this,"handleAssetsChange",y=>this.handleChangeCarousel(y,"slides")),(0,i.A)(this,"handleDirectionChange",y=>this.handleChangeCarousel(y==="vertical","vertical")),(0,i.A)(this,"handleIntervalChange",y=>this.handleChangeCarousel(Number(y),"interval")),(0,i.A)(this,"handleAutoShiftChange",(y,T)=>this.handleChangeCarousel(y,"autoShift",T)),(0,i.A)(this,"handlePointersVisibilityChange",y=>this.handleChangeCarousel(y,"showPointers"))}render(){var y;const{carousel:T,carouselImageIndex:R,dispatch:q,theme:se,borderRadius:ue,borderRadiusIsVisible:Ne,isLoggedExperience:Ge,isExperience:at,rootProject:dt,currentUser:Bt,currentOrg:kt,onChange:qt,node:sn,selections:jn,isEditingCombo:Dn,editingPanelCid:lo,widgetStore:Wo,refVars:Zo}=this.props,{DIRECTION_OPTIONS:Yo}=this,{slides:is,vertical:os,autoShift:es,interval:ns,showPointers:qo,pointerBg:ds,pointerFg:Es}=T,Ps=os?"vertical":"horizontal",fs=(0,Ki.DS)(Wo.sdkStore,sn.key,Dn,lo),ps=Zo==null||(y=Zo.carousel)==null?void 0:y.autoShift;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(rn.A,{title:I18N.SettingPanel.inspector.carousel,children:(0,t.jsx)(la,{assets:is,carouselImageIndex:R,handleChange:this.handleAssetsChange,dispatch:q,theme:se,isLoggedExperience:Ge,isExperience:at,rootProject:dt,currentUser:Bt,currentOrg:kt,innerLinks:fs})}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsxs)("section",{className:"carousel-section",type:"panel-body",children:[(0,t.jsxs)("div",{className:"line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.autoShift}),(0,t.jsxs)("div",{className:"right-content switch-container",children:[(0,t.jsx)(we.Yw,{type:"boolean",isIconButton:!ps,showName:!0,onlyTag:!0,value:es,refVar:ps,onChange:this.handleAutoShiftChange}),!ps&&(0,t.jsx)(fi.A,{size:"small",isIOS:!0,isChecked:es,onChange:this.handleAutoShiftChange})]})]}),(0,t.jsxs)("div",{className:"line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.title}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(Be.mq,{className:"direction-select",menuClassName:Be.it,attr:"direction",value:Ps,optionList:Yo,onChange:this.handleDirectionChange})})]}),es&&(0,t.jsxs)("div",{className:"line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.interval}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(Be.mq,{className:"interval-value",attr:"interval",suffix:ki,value:ns,optionList:ol,onChange:this.handleIntervalChange})})]}),(0,t.jsx)(el.R2,{className:"border-radius-panel",canSetSingleRadius:!0,borderRadius:ue,borderRadiusIsVisible:Ne,onChange:qt,dispatch:q,selections:jn,show:!0,refVars:Zo})]}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsxs)("section",{className:"carousel-section",type:"panel-body",children:[(0,t.jsxs)("div",{className:"line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.showPointers}),(0,t.jsx)("div",{className:"right-content switch-container",children:(0,t.jsx)(fi.A,{size:"small",isIOS:!0,isChecked:qo,onChange:this.handlePointersVisibilityChange})})]}),qo&&(0,t.jsxs)(h.Fragment,{children:[(0,t.jsxs)("div",{className:"line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.pointerBg}),(0,t.jsx)("div",{className:"right-content color-btn-container",children:(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY+" point-bg",supAttr:"carousel",attr:"pointerBg",color:ds,onChange:this.handleChangeCarousel})})]}),(0,t.jsxs)("div",{className:"line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.pointerFg}),(0,t.jsx)("div",{className:"right-content color-btn-container",children:(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY+" point-bg",supAttr:"carousel",attr:"pointerFg",color:Es,onChange:this.handleChangeCarousel})})]})]})]})]})}}const tl=(0,n.Ng)(m=>{const y=(0,c.PL)(m),T=(0,c.HW)(m),R=(0,c.wA)(m),q=(0,I.oO)(m),se=(0,I.jI)(m),ue=(0,pa.UV)(m),Ne=(0,u.Yg)(m),Ge=(0,da.O4)(m);return{rootProject:y,currentUser:T,currentOrg:R,carouselImageIndex:Ne,theme:Ge,isEditingCombo:q,editingPanelCid:se,widgetStore:ue}})(Va),nl=[1e3,1500,2e3,2500,3e3,3500,4e3,4500,5e3],ki="ms",Ai=m=>({label:m+" "+ki,value:m}),ol=nl.map(Ai),sl={component:tl,params:{},getter:[m=>{let{selectedItems:y,isLoggedExperience:T,isExperience:R}=m;const q=y[0],{borderRadius:se,carousel:ue,borderRadiusIsVisible:Ne}=q.hotAttr;return{isExperience:R,isLoggedExperience:T,carousel:ue,borderRadius:se,borderRadiusIsVisible:Ne,node:q,refVars:{carousel:(0,Wt.xj)(y,"carousel",["autoShift"]),borderRadius:(0,Wt.xj)(y,"borderRadius")}}}],setter:{onChange:gt.c}},il=()=>[qr,[sl,"CarouselInfo"]],Ha=m=>{let{children:y}=m;return(0,t.jsx)("div",{children:y})},al=(0,s.Ay)(rn.A).withConfig({displayName:"styles__StyledFixedSlider",componentId:"sc-tlk57j-0"})(["border-bottom:1px solid ",';&.fixed-slider-body{[type="screen-body"]{padding:0 16px;}.fixed-slider-line{display:flex;align-items:center;justify-content:space-between;margin-left:-5px;margin-right:28px;.input-number{width:72px;.title{width:24px;height:24px;padding:0;flex-shrink:0;margin-left:2px;.slider-icon{width:20px;height:20px;color:#999;}}input{margin-left:4px;}input::placeholder{color:',";}}}}"],m=>m.theme.color_bg_border_02,m=>m.theme.color_text_L2),rl=(0,t.jsx)(x.C,{className:"slider-icon",name:"setting_panel/fixedSlider/slider_hh"}),ha=(0,t.jsx)(x.C,{className:"slider-icon",name:"setting_panel/fixedSlider/slider_fh"});class ll extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleHeaderHeight",y=>{const{fh:T,canvasHeight:R,onChange:q,dispatch:se,selections:ue}=this.props;y+T>R-14&&(y=R-T-14),q({value:y,attr:"stickyHeaderHeight",dispatch:se,selections:ue}),(0,_e.A9)({attr:"stickyHeaderHeight"})}),(0,i.A)(this,"handleHiddenNumberLineType",()=>{const{dispatch:y}=this.props;y({type:"set:numberLineType:show",payload:{type:""}})}),(0,i.A)(this,"handleBeforeNumberLineTypeForHh",()=>{const{dispatch:y}=this.props;y({type:"set:numberLineType:show",payload:{type:"hh"}})}),(0,i.A)(this,"handleBeforeNumberLineTypeForFh",()=>{const{dispatch:y}=this.props;y({type:"set:numberLineType:show",payload:{type:"fh"}})}),(0,i.A)(this,"handleFooterHeight",y=>{const{hh:T,canvasHeight:R,onChange:q,dispatch:se,selections:ue}=this.props;y+T>R-14&&(y=R-T-14),q({value:y,attr:"stickyFooterHeight",dispatch:se,selections:ue}),(0,_e.A9)({attr:"stickyFooterHeight"})})}render(){const{show:y,hh:T,fh:R,isShowMultipleFh:q,isShowMultipleHh:se,placeholderHh:ue,placeholderFh:Ne}=this.props;return y?(0,t.jsx)(al,{title:I18N.SettingPanel.fixedslider,className:"fixed-slider-body",children:(0,t.jsx)("section",{type:"screen-body",children:(0,t.jsxs)("div",{className:"fixed-slider-line height-32",children:[(0,t.jsx)(Ae.s,{toolTipContent:I18N.SettingPanel.top_fixed_slider,direction:"down",withToolTip:!0,className:"input-number",min:0,cursorSize:"row-resize",title:rl,value:se?void 0:T,isNotVerify:se,placeholder:ue,onConfirm:this.handleHeaderHeight,onAfterChangeValue:this.handleHiddenNumberLineType,onBeforeChangeValue:this.handleBeforeNumberLineTypeForHh}),(0,t.jsx)(Ae.s,{toolTipContent:I18N.SettingPanel.bottom_fixed_slider,direction:"down",withToolTip:!0,className:"input-number",min:0,cursorSize:"row-resize",cursorDirection:!1,title:ha,value:q?void 0:R,isNotVerify:q,placeholder:Ne,onConfirm:this.handleFooterHeight,onAfterChangeValue:this.handleHiddenNumberLineType,onBeforeChangeValue:this.handleBeforeNumberLineTypeForFh})]})})}):null}}const cl={component:ll,params:{},getter:[m=>{let{selectedItems:y,editingPanelCid:T,editingPanelRefPage:R}=m;const q=y[0].hotAttr,se=new Set(y.map(dt=>dt.hotAttr.stickyHeaderHeight)).size!==1,ue=new Set(y.map(dt=>dt.hotAttr.stickyFooterHeight)).size!==1,Ne=!T&&!R,Ge=se?I18N.SettingPanel.multiple_value:"",at=ue?I18N.SettingPanel.multiple_value:"";return{show:Ne,hh:q.stickyHeaderHeight,fh:q.stickyFooterHeight,canvasHeight:q.h,isShowMultipleHh:se,isShowMultipleFh:ue,placeholderHh:Ge,placeholderFh:at}}],setter:{onChange:gt.c}},dl=()=>[Ha,[cl,"StickyAreaInfo"]];var pl=e(6469);const zi=(0,s.Ay)(rn.A).withConfig({displayName:"styles__StyledWebPagePanel",componentId:"sc-8inxnp-0"})(["&.webpage-panel-container{header{.customize-title{order:1;}.angle-icon-wrap{order:2;}}}"]),Ua=s.Ay.div.withConfig({displayName:"styles__StyledTipContent",componentId:"sc-8inxnp-1"})(['position:absolute;top:20px;left:-55px;width:190px;background:#454647;color:#fff;flex-direction:column;justify-content:space-around;padding:16px 12px;border-radius:6px;z-index:1;transform:scaleY(-1);&:lang(en){width:240px;left:-95px;&::before{left:40%;}p{display:inline;white-space:normal;}}&::before{content:"";position:absolute;top:99%;left:29%;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #454647;}p{font-weight:400;line-height:20px;white-space:nowrap;}']),hl=s.Ay.div.withConfig({displayName:"styles__StyledURLSettings",componentId:"sc-8inxnp-2"})(["padding:8px 16px;textarea{min-height:80px;}"]),Gi=m=>{const{url:y,placeholder:T,handleURLChange:R,handleContentBoxBlur:q}=m;return(0,t.jsx)(hl,{children:(0,t.jsx)(Kn.A,{placeholder:T,content:y,onChange:R,onBlur:q})})},Ka=m=>{const y=(R,q)=>{const{onChange:se,dispatch:ue,selections:Ne}=m;se({value:R,attr:q,dispatch:ue,supAttr:"webpage",selections:Ne})},T=R=>{y(R[0],"url")};return(0,t.jsx)(Gi,{url:m.url,placeholder:I18N.SettingPanel.webpage_placeholder,handleURLChange:T,handleContentBoxBlur:R=>{}})},ul="mp_"+"web_page_panel_container",ua=()=>(0,t.jsxs)(Ua,{children:[(0,t.jsx)("p",{children:I18N.SettingPanel.webpage_notice_tips1}),(0,t.jsx)("p",{children:I18N.SettingPanel.webpage_notice_tips2})]});class gl extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)(ul,!0,vt.qW.Boolean)}),(0,i.A)(this,"handleChange",()=>{const{show:y}=this.state;(0,vt.a0)(ul,!y,vt.qW.Boolean),this.setState({show:!y})})}render(){return(0,t.jsx)(zi,{className:"webpage-panel-container",title:I18N.SettingPanel.inspector.web_address,renderTips:ua,collapse:!this.state.show,onChange:this.handleChange,children:this.props.children})}}const ml={component:Ka,params:{},getter:[m=>{let{selectedItems:y}=m;const{url:T}=(0,it.i)(y,"webpage");return{url:T}}],setter:{onChange:gt.c}},fl=()=>[gl,[ml]],xl=(0,s.Ay)(rn.A).withConfig({displayName:"styles__StyledVideoSubPanel",componentId:"sc-srzs6f-0"})(['&.video-panel-container{header{.customize-title{order:1;}.angle-icon-wrap{order:2;}}}.icon-wrapper{cursor:default;}.colorful-svg{margin-right:8px;width:16px;height:16px;}.colorful-svg path[fill="#1684FC"]{fill:#1684FC;}.colorful-svg path[fill="#FF4A4A"]{fill:#FF4A4A;}.colorful-svg path[fill="#38CEFF"]{fill:#38CEFF;}.colorful-svg path[fill="#0B99FF"]{fill:#0B99FF;}.colorful-svg path[fill="#F5001A"]{fill:#F5001A;}.colorful-svg path[fill="#10ABF2"]{fill:#10ABF2;}.colorful-svg path[fill="#FF8F21"]{fill:#FF8F21;}.colorful-svg path[fill="#7DE621"]{fill:#7DE621;}.colorful-svg path[fill="#1296DB"]{fill:#1296DB;}.colorful-svg path[fill="#fff"]{fill:#fff;}.colorful-svg circle[fill="#1684FC"]{fill:#1684FC;}']),yl=s.Ay.div.withConfig({displayName:"styles__StyledVideoSettings",componentId:"sc-srzs6f-1"})([".video-settings-checkboxes{display:grid;grid-template-columns:123px 90px;padding:0 16px 0px 10px;&:lang(en){grid-template-columns:106px 106px;}label{min-width:100px;height:32px;}}"]),vl=s.Ay.div.withConfig({displayName:"styles__StyledVideoTipContent",componentId:"sc-srzs6f-2"})(['position:absolute;top:22px;left:-42px;width:240px;background:#454647;color:#fff;flex-direction:column;justify-content:space-around;padding:12px 28px 10px 16px;border-radius:6px;z-index:1;transform:scaleY(-1);&:lang(en){left:-80px;}&::before{content:"";position:absolute;top:100%;left:19%;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #454647;}p{a{text-decoration:underline;color:#80BCFF;&:hover{color:#A6D2FF;}}&:hover{visibility:visible;}font-size:14px;font-weight:400;line-height:20px;}.icon-wrapper{margin-top:11px;}']),za="mp_"+"video_panel_container",bl=()=>{const m=ENV.IS_ON_PREMISES?"":"<p><a href=/hc/articles/28#%E8%A7%86%E9%A2%91%E7%BB%84%E4%BB%B6 target=_blank>"+I18N.SettingPanel.tip_help+"</a></p>",y=I18N.SettingPanel.tip_on_online_video_platform+m;return(0,t.jsxs)(vl,{children:[(0,t.jsx)("p",{dangerouslySetInnerHTML:{__html:y}}),(0,t.jsxs)("div",{className:"icon-wrapper",children:[(0,t.jsx)(x.C,{name:"setting_panel/video/link",className:"colorful-svg"}),(0,t.jsx)(x.C,{name:"setting_panel/video/youku",className:"colorful-svg"}),(0,t.jsx)(x.C,{name:"setting_panel/video/bilibili",className:"colorful-svg"}),(0,t.jsx)(x.C,{name:"setting_panel/video/tencent",className:"colorful-svg"})]})]})};class Cl extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)(za,!0,vt.qW.Boolean)}),(0,i.A)(this,"handleChange",()=>{const{show:y}=this.state;(0,vt.a0)(za,!y,vt.qW.Boolean),this.setState({show:!y})})}render(){const y=ENV.IS_MO?null:bl,{show:T}=this.state;return(0,t.jsx)(xl,{className:"video-panel-container",collapse:!T,title:I18N.SettingPanel.inspector.video,renderTips:y,onChange:this.handleChange,children:this.props.children})}}const Zi=s.Ay.div.withConfig({displayName:"styles__StyledURLSettings",componentId:"sc-14yf07q-0"})(["padding:8px 16px;vertical-align:middle;textarea{min-height:80px;}"]),Yi=m=>{const{url:y,placeholder:T,handleURLChange:R,handleContentBoxBlur:q}=m;return(0,t.jsx)(Zi,{children:(0,t.jsx)(Kn.A,{placeholder:T,content:y,onChange:R,onBlur:q})})};var Ga=e(55135);const ci={component:m=>{const{videoSrc:y,isAutoplay:T,isLoop:R,isMuted:q,isHideControls:se,onChange:ue,dispatch:Ne,selections:Ge}=m,at=kt=>{m.onChange({value:kt[0],attr:"videoSrc",dispatch:m.dispatch,supAttr:"video",selections:Ge})},dt=(kt,qt)=>{ue({value:kt,attr:qt,supAttr:"video",dispatch:Ne,selections:Ge})},Bt=kt=>{const qt=I18N.SettingPanel.video_insert_succeed,sn=I18N.SettingPanel.video_insert_fail;(0,Ga.dB)(kt[0])?MB.notice({text:qt}):MB.notice({text:sn})};return(0,t.jsxs)(yl,{children:[(0,t.jsx)(Yi,{url:y,placeholder:I18N.SettingPanel.video_url_setting_placeholder,handleURLChange:at,handleContentBoxBlur:Bt}),(0,t.jsxs)("div",{className:"video-settings-checkboxes",children:[(0,t.jsx)(St.A,{label:I18N.SettingPanel.autoplay,className:St.p,attr:"isAutoplay",name:"autoplay",isChecked:T,onChange:dt}),(0,t.jsx)(St.A,{label:I18N.SettingPanel.loop,className:St.p,attr:"isLoop",name:"loop",isChecked:R,onChange:dt}),(0,t.jsx)(St.A,{label:I18N.SettingPanel.muted,className:St.p,attr:"isMuted",name:"muted",isChecked:q,onChange:dt}),(0,t.jsx)(St.A,{label:I18N.SettingPanel.hide_controls,className:St.p,attr:"isHideControls",name:"hide-controls",isChecked:se,onChange:dt})]})]})},params:{},getter:[m=>{let{selectedItems:y}=m;const{video:T}=y[0].hotAttr;return{videoSrc:T.videoSrc,isAutoplay:T.isAutoplay,isLoop:T.isLoop,isMuted:T.isMuted,isHideControls:T.isHideControls}}],setter:{onChange:gt.c}},Za=()=>[Cl,[ci]],Sl=(0,s.Ay)(rn.A).withConfig({displayName:"styles__StyledAudioSubPanel",componentId:"sc-ek4sbb-0"})(["&.audio-panel-container{header{.customize-title{order:1;}.angle-icon-wrap{order:2;}}}"]),_l=s.Ay.div.withConfig({displayName:"styles__StyledAudioSettings",componentId:"sc-ek4sbb-1"})([".audio-settings-checkboxes{display:grid;grid-template-columns:123px 90px;padding:0 16px 0px 10px;&:lang(en){grid-template-columns:117px 106px;}label{min-width:100px;height:32px;}}"]),wl=s.Ay.div.withConfig({displayName:"styles__StyledAudioTipContent",componentId:"sc-ek4sbb-2"})(['position:absolute;top:22px;left:-35px;width:206px;background:#454647;color:#fff;flex-direction:column;justify-content:space-around;padding:12px 16px;border-radius:6px;z-index:1;transform:scaleY(-1);&::before{content:"";position:absolute;top:100%;left:19%;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #454647;}&:lang(en){&::before{left:18%;}}p{font-weight:400;line-height:20px;}']),Ya="mp_"+"audio_panel_container",Il=()=>(0,t.jsx)(wl,{children:(0,t.jsx)("p",{children:I18N.SettingPanel.tip_on_supported_audio_coding_formats})});class Tl extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)(Ya,!0,vt.qW.Boolean)}),(0,i.A)(this,"handleChange",()=>{const{show:y}=this.state;(0,vt.a0)(Ya,!y,vt.qW.Boolean),this.setState({show:!y})})}render(){const{show:y}=this.state;return(0,t.jsx)(Sl,{className:"audio-panel-container",title:I18N.SettingPanel.inspector.audio,collapse:!y,renderTips:Il,onChange:this.handleChange,children:this.props.children})}}var Xa=e(90141);const Al=m=>{try{const y=new URL(m);if(!Xa.YV.includes(y.href.split(".").slice(-1).join())||!Xa.BF.includes(y.protocol))return!1}catch(y){return!1}return!0},Pl={component:m=>{const{isHidden:y,audioSrc:T,isAutoplay:R,isLoop:q,isKeepAlive:se,onChange:ue,dispatch:Ne,selections:Ge}=m,at=kt=>{m.onChange({value:kt[0],attr:"audioSrc",dispatch:m.dispatch,supAttr:"audio",selections:Ge})},dt=(kt,qt)=>{ue({value:kt,attr:qt,supAttr:"audio",dispatch:Ne,selections:Ge})},Bt=kt=>{const qt=I18N.SettingPanel.audio_insert_succeed,sn=I18N.SettingPanel.audio_insert_fail;Al(kt[0])?MB.notice({text:qt}):MB.notice({text:sn})};return(0,t.jsxs)(_l,{children:[(0,t.jsx)(Yi,{url:T,placeholder:I18N.SettingPanel.audio_url_setting_placeholder,handleURLChange:at,handleContentBoxBlur:Bt}),(0,t.jsxs)("div",{className:"audio-settings-checkboxes",children:[(0,t.jsx)(St.A,{label:I18N.SettingPanel.autoplay,className:St.p,attr:"isAutoplay",name:"autoplay",isChecked:R,onChange:dt}),(0,t.jsx)(St.A,{label:I18N.SettingPanel.loop,className:St.p,attr:"isLoop",name:"loop",isChecked:q,onChange:dt}),(0,t.jsx)(St.A,{label:I18N.SettingPanel.keep_alive,className:St.p,attr:"isKeepAlive",name:"keep-alive",isChecked:se,onChange:dt}),(0,t.jsx)(St.A,{label:I18N.SettingPanel.hide_player,className:St.p,attr:"isHidden",name:"hidden",isChecked:y,onChange:dt})]})]})},params:{},getter:[m=>{let{selectedItems:y}=m;const T=y[0].hotAttr.audio;return{audioSrc:T.audioSrc,isAutoplay:T.isAutoplay,isLoop:T.isLoop,isKeepAlive:T.isKeepAlive,isHidden:T.isHidden}}],setter:{onChange:gt.c}},Ml=()=>[Tl,[Pl]],El=(0,s.Ay)(rn.A).withConfig({displayName:"styles__StyledQRCodePanel",componentId:"sc-1xhcgmm-0"})(["&.qrcode-panel-container{header{.customize-title{order:1;}.angle-icon-wrap{order:2;}}}"]),Ll=s.Ay.div.withConfig({displayName:"styles__StyledQRCodeTipContent",componentId:"sc-1xhcgmm-1"})(['position:absolute;top:22px;left:-54px;width:240px;background:#454647;color:#fff;flex-direction:column;justify-content:space-around;padding:12px 16px;border-radius:6px;z-index:1;transform:scaleY(-1);&::before{content:"";position:absolute;top:100%;left:23%;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #454647;}&:lang(en){left:-69px;&::before{left:29%;}}p{a{text-decoration:underline;color:#80BCFF;&:hover{color:#A6D2FF;}}&:hover{visibility:visible;}font-weight:400;line-height:20px;}']),mc=s.Ay.div.withConfig({displayName:"styles__StyledURLSettings",componentId:"sc-1xhcgmm-2"})(["padding:0 14px 8px 14px;textarea{min-height:80px;}"]),$a="mp_"+"qrcode_panel_container",Nl=()=>(0,t.jsx)(Ll,{children:(0,t.jsx)("p",{dangerouslySetInnerHTML:{__html:I18N.SettingPanel.tip_on_qrcode_link}})});class Dl extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)($a,!0,vt.qW.Boolean)}),(0,i.A)(this,"handleChange",()=>{const{show:y}=this.state;(0,vt.a0)($a,!y,vt.qW.Boolean),this.setState({show:!y})})}render(){return(0,t.jsx)(El,{className:"qrcode-panel-container",title:I18N.SettingPanel.inspector.qrcode,collapse:!this.state.show,onChange:this.handleChange,renderTips:Nl,children:this.props.children})}}const kl=1273,Ol={component:m=>{const y=(R,q)=>{const{onChange:se,dispatch:ue,selections:Ne}=m;se({value:R,attr:q,dispatch:ue,supAttr:"qrCode",selections:Ne})},T=R=>{y(R[0].slice(0,kl),"content")};return(0,t.jsx)(Yi,{url:m.url,placeholder:I18N.SettingPanel.qrcode_url_setting_placeholder,handleURLChange:T})},params:{},getter:[m=>{let{selectedItems:y}=m;const{content:T}=(0,it.i)(y,"qrCode");return{url:T}}],setter:{onChange:gt.c}},Rl=()=>[Dl,[Ol,"QRCodeInfo"]],ga=s.Ay.section.withConfig({displayName:"style__StyledTableInfo",componentId:"sc-1wtklsa-0"})([".tableBorderLine{.tableBorderLineBody{padding:0 10px 0 16px;}}.general-line{border-top:1px solid ",";padding:8px 14px;&.tableDimension{display:flex;margin-left:-5px;justify-content:space-between;padding:8px 16px;label{max-width:100px;.title{min-width:32px;&:lang(en){min-width:auto;white-space:nowrap;}}}}}"],m=>m.theme.color_bg_border_01);class Qa extends h.PureComponent{render(){return(0,t.jsx)(ga,{children:this.props.children})}}var Oi=e(35719);const Bl=s.Ay.div.withConfig({displayName:"styles__StylesBorderOpener",componentId:"sc-o7dvpl-0"})(["display:flex;flex-direction:column;transition:height 200ms ease-in-out 0s;margin-left:-6px;.title{width:40px;margin-left:28px;}.border-collapse-body{flex:1;display:flex;align-items:center;",";label.WorkspaceInputNumber.border-width{width:66px;}}"],Oi.B3);var ks=e(54460);class Mi extends h.PureComponent{render(){const{border:y,borderName:T,handleChange:R,supAttr:q,refStyles:se}=this.props,{bdrColor:ue,bdrWidth:Ne,bdrIsVisible:Ge}=y,at=(0,t.jsx)(Ae.A,{className:"border-width",attr:"bdrWidth",value:Ne,optionList:ks.xq,onConfirm:R});return(0,t.jsxs)(Bl,{children:[(0,t.jsxs)("div",{className:"border-collapse-body height-32",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(St.A,{attr:"bdrIsVisible",className:St.p,isChecked:Ge,onChange:R}),(0,t.jsx)("label",{className:"left-label",children:T})]}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,attr:"bdrColor",supAttr:q,color:ue,refStyles:se,onChange:R})]}),(0,t.jsxs)("div",{className:"border-collapse-body height-32",children:[(0,t.jsx)("label",{className:"title",children:I18N.SettingPanel.thickness}),at]})]})}}(0,i.A)(Mi,"propTypes",{border:Ns().any,borderName:Ns().string,supAttr:Ns().string,refStyles:Ns().any,handleChange:Ns().func}),(0,i.A)(Mi,"defaultProps",{colorButtonAttr:"border"});class jl extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleDimensions",(y,T)=>{const{dispatch:R}=this.props;T==="rowCount"&&R({type:"entry:table:change:rows",payload:y}),T==="colCount"&&R({type:"entry:table:change:columns",payload:y}),this.handleChange(y,T)}),(0,i.A)(this,"handleChange",(y,T)=>{const{onChange:R,dispatch:q,selections:se}=this.props;R({value:y,attr:T,dispatch:q,supAttr:"tableConfig",selections:se})}),(0,i.A)(this,"handleOuterBorderChange",(y,T)=>{const{tableConfig:R}=this.props,se={...R.outerBorder,[T]:y};this.handleChange(se,"outerBorder")}),(0,i.A)(this,"handleInnerBorderHChange",(y,T)=>{const{tableConfig:R}=this.props,se={...R.innerBorderH,[T]:y};this.handleChange(se,"innerBorderH")}),(0,i.A)(this,"handleInnerBorderVChange",(y,T)=>{const{tableConfig:R}=this.props,se={...R.innerBorderV,[T]:y};this.handleChange(se,"innerBorderV")})}render(){const{refStyles:y,tableConfig:T}=this.props,{innerBorderV:R,innerBorderH:q,outerBorder:se,rowCount:ue,colCount:Ne}=T;return(0,t.jsxs)(ga,{children:[(0,t.jsxs)("div",{className:"general-line tableDimension",children:[(0,t.jsx)(Ae.A,{className:"general-input",title:I18N.SettingPanel.row,attr:"rowCount",value:ue,min:1,max:99999,onConfirm:this.handleDimensions}),(0,t.jsx)(Ae.A,{className:"general-input",title:I18N.SettingPanel.column,attr:"colCount",value:Ne,min:1,max:99999,onConfirm:this.handleDimensions})]}),(0,t.jsx)(rn.A,{className:"tableBorderLine",title:I18N.SettingPanel.style,children:(0,t.jsxs)("div",{className:"tableBorderLineBody",children:[(0,t.jsx)(Mi,{canBorderWidth:!0,borderName:I18N.SettingPanel.table_border,border:se,width:0,height:0,supAttr:"tableConfig-outerBorder",refStyles:y,handleChange:this.handleOuterBorderChange}),(0,t.jsx)(Mi,{canBorderWidth:!0,borderName:I18N.SettingPanel.table_horizontal,border:q,width:0,height:0,supAttr:"tableConfig-innerBorderH",refStyles:y,handleChange:this.handleInnerBorderHChange}),(0,t.jsx)(Mi,{canBorderWidth:!0,borderName:I18N.SettingPanel.table_vertical,border:R,width:0,height:0,supAttr:"tableConfig-innerBorderV",refStyles:y,handleChange:this.handleInnerBorderVChange})]})})]})}}const Wl={component:jl,params:{},getter:[m=>{let{selectedItems:y}=m;const T=(0,it.i)(y,"tableConfig"),R=(0,it.i)(y,"!version"),q=(0,it.i)(y,"refStyles");return R===3&&(T.rowCount=(0,it.i)(y,"heightList").length,T.colCount=(0,it.i)(y,"widthList").length),{tableConfig:T,refStyles:q}}],setter:{onChange:gt.c}},ma=()=>[Qa,[Wl,"TableInfo"]];var Ja=e(56056),qa=e(41589),di=e.n(qa);const zs="mp_options",Fl=["children"];class Vl extends h.Component{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)(zs,!0,vt.qW.Boolean)})}shouldComponentUpdate(y,T,R){return this.props.isDraggingItem?!1:(0,F.N)(Fl).call(this,y,T)}render(){return(0,t.jsx)(rn.A,{title:I18N.SettingPanel.inspector.options,children:this.props.children})}}var Xi=e(97529),$i=e(30275);const er=s.Ay.ul.withConfig({displayName:"styles__StyledDragMenu",componentId:"sc-1fxrfo8-0"})(["display:flex;flex-direction:column;align-items:flex-end;position:relative;li.setting-drag-menu-item{display:flex;flex-direction:column;width:100%;}"]),Hl=s.Ay.div.withConfig({displayName:"styles__StyledDragItem",componentId:"sc-1fxrfo8-1"})(["&.dragItemWrap{min-height:32px;display:flex;align-items:center;justify-content:flex-end;cursor:move;&:hover{.dragHandArea{opacity:1;}}.dragHandArea{width:16px;flex-shrink:0;display:flex;align-items:center;justify-content:center;color:",";opacity:0;.dragHand{width:16px;height:16px;}}.expander{display:flex;align-items:center;justify-content:center;cursor:pointer;width:16px;height:24px;.arrowIcon{color:",";width:16px;height:16px;&:not(.is-expand){transform:rotate(-90deg);}}}&:hover{.itemContent .operations{opacity:1;.link,.selected{display:flex;}}}.itemContent{display:flex;justify-content:space-between;align-items:center;min-height:24px;position:relative;width:100%;flex-shrink:0;.iconWrap{position:absolute;display:flex;padding-left:5px;height:100%;align-items:center;cursor:pointer;.iconContent{width:16px;height:16px;border-radius:4px;display:flex;align-items:center;justify-content:center;&:not(.active):hover{background-color:",";}&:not(.active):active{background-color:",";}&.active{background-color:",";color:#fff;}}&::after{display:flex;content:'';width:1px;height:16px;background-color:",";margin-left:5px;}.svg-icon{width:14px;}}div.itemInput{flex:1;margin-right:6px;min-width:74px;background-color:",";border-radius:4px;height:28px;line-height:24px;padding-left:6px;color:",";border:2px solid ",";overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:auto;-webkit-user-select:text;user-select:text;&[contenteditable]{min-width:126px;&:focus{height:auto;white-space:break-spaces;}}&:focus{outline:none;border:2px solid #1684fc;+ .var-input-container{display:none;}}}input.itemInput{flex:1;margin-right:6px;min-width:74px;background-color:",";border-radius:4px;height:28px;line-height:28px;padding-left:6px;color:",";border:2px solid ",";text-overflow:ellipsis;&.hasPadding{line-height:14px;padding-left:32px;}&:focus{border:2px solid #1684fc;+ .var-input-container{display:none;}}}.actions{display:flex;color:#7d8b94;span{display:flex;width:24px;height:24px;align-items:center;justify-content:center;cursor:pointer;border-radius:4px;color:",";svg.svg-icon{width:10px;}&:not(.disabled):hover{background-color:",";}&:not(.disabled):active{background-color:",";}&.disabled{cursor:not-allowed;color:",";}&.hide{opacity:0;cursor:auto;}}span.remove{padding-top:9px;}}.operations{position:absolute;right:56px;top:6px;display:flex;background-color:",";opacity:0;&.show{opacity:1;}&.noIncreaseAction{right:32px;}.link,.selected{display:none;width:16px;height:16px;border-radius:4px;align-items:center;justify-content:center;cursor:pointer;&:not(.show):not(.active):hover{background-color:",";}}.link{svg.svg-icon{width:6px;path{fill:",";}}&.show{display:flex;.svg-icon.icon{path{fill:#1684fc;}}}&.active{display:flex;}&:not(.show):active,&.active{background-color:#1684fc;.svg-icon.icon{path{fill:#fff;}}}}.selected{&::after{display:inline-block;content:'';width:8px;height:8px;border-radius:50%;border:2px solid #7d8b94;background-color:#fff;}&.show{display:flex;&::after{border:2px solid #1684fc;}}&:not(.show):active{background-color:#dbdbdb;}}}}}"],m=>m.theme.color_text_L3,m=>m.theme.color_text_L1,m=>m.theme.color_btn_secondary_hover,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_proto,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_bg_card,m=>m.theme.color_text_L2,m=>m.theme.color_bg_card,m=>m.theme.color_bg_card,m=>m.theme.color_text_L2,m=>m.theme.color_bg_card,m=>m.theme.color_text_L1,m=>m.theme.color_btn_secondary_hover,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_text_disabled01,m=>m.theme.color_bg_card,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_text_L3);var fa=e(4461),Qi=e(57479),xa=e(66559),Ei=e(92465),Ri=e(73662);class ya extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{isFocus:!1}),(0,i.A)(this,"setElementRef",y=>this.$item=y),(0,i.A)(this,"setInputElementRef",y=>this.$input=y),(0,i.A)(this,"handleToggleFocus",()=>{this.setState({isFocus:!this.state.isFocus})}),(0,i.A)(this,"handleFocus",y=>{const{hasMissFontHi:T}=this.props;if(y.preventDefault(),y.stopPropagation(),T){y.target.blur(),MB.action(Ri.y.entryKey["font:miss:modal:open"]);return}y.target.select(),this.handleToggleFocus()}),(0,i.A)(this,"handleBlur",()=>{this.handleToggleFocus()}),(0,i.A)(this,"handleContentEditableDivFocus",y=>{const{hasMissFontHi:T}=this.props;if(T){y.target.blur(),MB.action(Ri.y.entryKey["font:miss:modal:open"]);return}window.getSelection().selectAllChildren(y.target),this.handleToggleFocus()}),(0,i.A)(this,"handleContentEditableDivBlur",y=>{window.getSelection().empty(),this.handleContentEditableDivChange(y),this.handleToggleFocus()}),(0,i.A)(this,"handleChangeName",y=>{const{node:T,parent:R,path:q,onUpdate:se}=this.props,ue={...T.data,name:y.target.value};se({data:ue,parent:R,path:q})}),(0,i.A)(this,"handleContentEditableDivChange",y=>{const{node:T,parent:R,path:q,onUpdate:se}=this.props,ue={...T.data,name:y.target.textContent};se({data:ue,parent:R,path:q})}),(0,i.A)(this,"handleMouseDown",y=>{const{onMouseDown:T,node:R,parent:q,level:se,path:ue}=this.props;T(y,R,q,this.$item,se,ue)}),(0,i.A)(this,"handleExpand",y=>{y.stopPropagation();const{node:T,onUpdate:R,parent:q,path:se}=this.props,ue={...T.data,expanded:!T.data.expanded};R({data:ue,parent:q,path:se})}),(0,i.A)(this,"handleOpenLinkPanel",y=>{const{onOpenLinkPanel:T,node:R,path:q}=this.props;T({y:y.clientY,node:R,path:q,e:y})}),(0,i.A)(this,"handleSetSelectedValue",()=>{const{onSetSelectedValue:y,node:T,path:R}=this.props;y({node:T,path:R})}),(0,i.A)(this,"handleExpandIconPanel",y=>{const{onClickableIconPanel:T,node:R,path:q}=this.props;T({y:y.clientY,node:R,path:q})}),(0,i.A)(this,"handleBlurInput",y=>{const{key:T,shiftKey:R}=y,q=T===" ";T===Qi._.Enter&&!R&&y.target.blur(),q&&(0,Qt.kI)(y)}),(0,i.A)(this,"handlePaste",y=>{y.stopPropagation(),y.preventDefault();let T="";const R=y.originalEvent||y;R.clipboardData&&R.clipboardData.getData&&(T=R.clipboardData.getData("text/plain")),document.execCommand("insertText",!1,T)}),(0,i.A)(this,"handleRemove",y=>{const{path:T,parent:R,dispatch:q,onRemoveChildItems:se}=this.props;y.children.length>0?q({type:"modal:update:state",payload:{optionRemoveModal:{isOpen:!0,data:{parent:R,path:T}}}}):se({parent:R,path:T})})}render(){const{cid:y,path:T,parent:R,node:q,node:{children:se,data:{linkCids:ue,expanded:Ne,name:Ge,icon:at}},level:dt,maxLevel:Bt,minDepth:kt,innerLinks:qt,type:sn,onAddChildItems:jn,onRemoveChildItems:Dn,onUpdate:lo,onMouseDown:Wo,onOpenLinkPanel:Zo,onSetSelectedValue:Yo,isShowExpander:is,isShowIncreaseAction:os,isShowSelectedOperation:es,clickableIconNode:ns,clickableLinkNode:qo,isDisabledDecrease:ds,isDisabledIncrease:Es,minTopLevelOptionLength:Ps,maxOptionLength:fs,isExpandEditableContentOnEditing:ps,onClickableIconPanel:Ss,hasMissFontHi:ii,optionDataSelected:ai,widgetVersion:Ys,dispatch:ti,itemContentInseter:$s}=this.props,{isFocus:qi}=this.state,vi=(0,Ei.lt)({optionData:q,optionDataSelected:ai,widgetVersion:Ys});let Hs;sn===P.x.WTree?Hs=!0:Hs=at&&dt===1;const ji=kt>1&&Hs?44:is?32:16,Sa={paddingLeft:(dt-1)*16+ji+"px"},bi=se.length>0,Ts=dt===1?Ne&&bi:bi,ni=dt===1&&is,Ci=os&&dt<Bt&&!Es;let Si;sn===P.x.WTree?Si=es:Si=es&&!bi;const ea=!!ue||vi||T===qo.path;let _i=!bi;sn===P.x.WTree||sn===P.x.WDropMenu?_i=!0:_i=!bi;const Qs=dt===1?!ds:R.children.length>kt,{firstUiInteractiveIta:_a}=(0,oi.HW)(qt,ue),Us=at!=null&&at.path?at:sn===P.x.WTree?dt===1?xa.zb:xa.bS:null;return(0,t.jsxs)("li",{"data-path":T,className:"setting-drag-menu-item",children:[(0,t.jsxs)(Hl,{ref:this.setElementRef,className:p()("dragItemWrap",{itemWrapLastLevel:dt>=Bt}),onMouseDown:this.handleMouseDown,style:Sa,children:[(0,t.jsx)("span",{className:p()("dragHandArea",{hasExpand:ni}),children:(0,t.jsx)(x.C,{name:"design/dragMenu/drag",className:"dragHand"})}),ni&&(0,t.jsx)("div",{className:"expander",onClick:this.handleExpand,onMouseDown:Js=>Js.stopPropagation(),children:(0,t.jsx)(x.C,{className:p()("arrowIcon",{"is-expand":Ne}),name:"new/arrow"})}),(0,t.jsxs)("div",{className:"itemContent",onMouseDown:Js=>Js.stopPropagation(),children:[Hs&&(0,t.jsx)("div",{className:"iconWrap",onClick:this.handleExpandIconPanel,children:(0,t.jsx)("span",{className:p()("iconContent",{active:T===ns.path}),children:Us!=null&&Us.path?(0,t.jsx)(fa.F,{className:p()("svg-icon fill",{"pure-svg-icon":Us.path.includes("<style>")}),cid:y,path:Us.path,viewBox:Us.viewBox}):null})}),$s?$s(q,dt,T,ii,this.state.isFocus):null,ps&&dt===2?(0,t.jsx)("div",{ref:this.setInputElementRef,className:"itemInput",onFocus:this.handleContentEditableDivFocus,onBlur:this.handleContentEditableDivBlur,onKeyDown:this.handleBlurInput,contentEditable:!0,onPaste:this.handlePaste,suppressContentEditableWarning:!0,children:Ge}):(0,t.jsx)("input",{ref:this.setInputElementRef,value:Ge,type:"text",className:p()("itemInput",{hasPadding:Hs}),onFocus:this.handleFocus,onChange:this.handleChangeName,onKeyDown:this.handleBlurInput,onBlur:this.handleBlur}),(0,t.jsxs)("div",{className:"actions",children:[os&&(0,t.jsx)(a.A,{isShowTips:os&&dt<Bt&&Es,content:dt<Bt?I18N.SettingPanel.max_n_of_options_supported.replace("{n}",fs):I18N.SettingPanel.max_n_of_options_level_supported.replace("{n}",Bt),direction:"down",style:{width:"max-content"},children:(0,t.jsx)("span",{className:p()("add",{disabled:!Ci,hide:kt>=1&&dt!==1}),onClick:Ci?()=>jn(q,dt,T):void 0,children:(0,t.jsx)(x.C,{name:"common/add@10"})})}),(0,t.jsx)(a.A,{isShowTips:!Qs,content:I18N.SettingPanel.minimum_n_of_options_required.replace("{n}",dt===1&&Ps||1),direction:"down",children:(0,t.jsx)("span",{className:p()("remove",{disabled:!Qs}),onClick:Qs?()=>this.handleRemove(q):void 0,children:(0,t.jsx)(x.C,{name:"common/subtract@10"})})})]}),!qi&&(0,t.jsxs)("div",{className:p()("operations",{show:ea,noIncreaseAction:!os}),children:[_i&&(0,t.jsx)("span",{className:p()("link",{show:_a,only:!es,active:T===qo.path}),onClick:Js=>this.handleOpenLinkPanel(Js),children:(0,t.jsx)(x.C,{name:"design/dragMenu/link"})}),Si&&(0,t.jsx)(a.A,{content:I18N.SettingPanel.defaultValue,direction:"down",distance:10,children:(0,t.jsx)("span",{className:p()("selected",{show:!!vi}),onClick:this.handleSetSelectedValue})})]})]})]}),Ts&&(0,t.jsx)(er,{children:se.map((Js,Td)=>{var Ad;return(0,t.jsx)(ya,{cid:Js==null||(Ad=Js.data)==null?void 0:Ad.cid,path:T+"-"+Td,parent:q,node:Js,level:dt+1,maxLevel:Bt,minDepth:kt,isShowIncreaseAction:os,isDisabledIncrease:Es,isDisabledDecrease:ds,maxOptionLength:fs,isExpandEditableContentOnEditing:ps,isShowExpander:is,isShowSelectedOperation:es,clickableIconNode:ns,clickableLinkNode:qo,innerLinks:qt,type:sn,onAddChildItems:jn,onRemoveChildItems:Dn,onUpdate:lo,onMouseDown:Wo,onOpenLinkPanel:Zo,onSetSelectedValue:Yo,onClickableIconPanel:Ss,hasMissFontHi:ii,optionDataSelected:ai,widgetVersion:Ys,dispatch:ti,itemContentInseter:$s},""+Td)})})]})}}var Ul=e(30542),ei=e(69986),ne=e(98407),ae=e(75661),ye=e(58320);const Ee=(0,s.Ay)(ye.H).withConfig({displayName:"styles__StyledOptionRemoveModal",componentId:"sc-dlt1ke-0"})([".mainContent{display:flex;flex-direction:column;.restore-tip{font-size:14px;color:",";margin-top:5px;}}"],m=>m.theme.color_text_L2);class Pe extends h.PureComponent{render(){const{isOpen:y,onClose:T,onConfirm:R}=this.props;return y&&(0,t.jsx)(Ee,{isOpen:y,onClose:T,type:"alert",className:"option-action-modal top-modal",onCancel:T,canConfirm:!0,onConfirm:R,title:"\u9009\u9879\u4E2D\u5B58\u5728\u5B50\u9009\u9879",mask:!1,canClose:!1,confirmBtnProps:{type:"danger"},children:(0,t.jsxs)("div",{className:"mainContent",children:[(0,t.jsx)("span",{children:"\u5220\u9664\u540E\u5C06\u8FDE\u5E26\u5B50\u9009\u9879\u4E00\u8D77\u5220\u9664"}),(0,t.jsx)("span",{className:"restore-tip",children:"\u53EF\u901A\u8FC7\u64A4\u9500\u64CD\u4F5C\u6062\u590D"})]})})}}var Ze=e(4914),Ct=e(24229);const wt={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94"};class Mt extends h.PureComponent{constructor(y){super(y),(0,i.A)(this,"setElementRef",T=>this.input=T),(0,i.A)(this,"handleUpdate",T=>{let{data:R,path:q,parent:se}=T;const{handleChange:ue,optionData:Ne}=this.props,Ge=di()(Ne),at=q.split("-"),dt=at[at.length-1];if(!se)Ge[dt].data=R;else{const Bt=kt=>{kt.data=R};(0,ei.PM)({newOptionData:Ge,pathArr:at,onUpdate:Bt})}ue(Ge,"optionData",q)}),(0,i.A)(this,"clearSelect",()=>{this.setState({isShowLinkPanel:!1,clickableLinkNode:{}}),this.props.dispatch({type:"settings:update:state",payload:{isShowLinkPanel:!1}}),this.props.dispatch(Vi.R7.command.clearAllCommand({}))}),(0,i.A)(this,"handleAddChildItems",async(T,R,q)=>{const{handleChange:se,optionData:ue,navigationMenuType:Ne,widgetVersion:Ge,optionDataDesignUnExpanded:at,optionDataSelected:dt}=this.props,Bt=T.children.length,kt=!Bt&&T.data.selected;let qt=T.data.selected;const sn=di()(ue),jn=Ne!==void 0?Ne===Ze.ue.navigationMenu:!0;kt&&(qt=!1);const Dn={...T.data,selected:qt,expanded:!0,designExpanded:jn},lo={data:{name:this.props.getDefaultDescentContent(wt[R+1],Bt+1),selected:kt,designExpanded:jn,expanded:!0,linkCids:""},children:[]};if(Ge===2){const Zo=(0,Ct.cF)("wod");if(lo.data.cid=Zo,dt.includes(T.data.cid)){const Yo=[...dt.filter(is=>is!==T.data.cid),Zo];se(Yo,"optionDataSelected")}}const Wo=q.split("-");if(Wo.length===1)sn[Wo[0]]={data:Dn,children:[...T.children,lo]};else{const Zo=Yo=>{Yo.children.push(lo),Yo.data=Dn};(0,ei.PM)({newOptionData:sn,pathArr:Wo,onUpdate:Zo})}se(sn,"optionData"),this.clearSelect()}),(0,i.A)(this,"handleRemoveChildItems",T=>{let{parent:R,path:q}=T;const{optionData:se,handleChange:ue,widgetVersion:Ne,optionDataSelected:Ge,optionDataDesignUnExpanded:at}=this.props,dt=q.split("-"),Bt=dt[dt.length-1],kt=di()(se),qt=R||se[Bt];if(!R)kt.splice(Bt,1);else{const sn=jn=>{jn.children.splice(Bt,1)};(0,ei.u2)({newOptionData:kt,pathArr:dt,onUpdate:sn})}if(Ne===2){let sn=Ge,jn=at;qt&&(jn.includes(qt.data.cid)&&(jn=jn.filter(Dn=>Dn!==qt.data.cid)),(0,ei.sV)(qt.children,Dn=>{Ge.includes(Dn.data.cid)&&(sn=sn.filter(lo=>lo!==Dn.data.cid)),at.includes(Dn.data.cid)&&(jn=jn.filter(lo=>lo!==Dn.data.cid))}),Ge!==sn&&ue(sn,"optionDataSelected"),at!==jn&&ue(jn,"optionDataDesignUnExpanded"))}ue(kt,"optionData"),this.clearSelect()}),(0,i.A)(this,"handleMouseDown",(T,R,q,se,ue,Ne)=>{if(T.stopPropagation(),se.querySelector(".actions").contains(T.target)){this.setState({dragAndDropState:null});return}const{optionData:Ge}=this.props,{top:at,left:dt}=se.getBoundingClientRect(),Bt=T.clientX-dt,kt=T.clientY-at,qt={node:{...R,path:Ne},$element:se,offsetX:Bt,offsetY:kt,...(0,ei.qL)({...R,path:Ne},Ge,q,ue)};this.setState({dragAndDropState:qt})}),(0,i.A)(this,"handleDropState",T=>{let{cid:R,type:q,parent:se,isValid:ue}=T;const{dragAndDropState:{node:Ne}}=this.state;if(this.setState({dragAndDropState:null}),!R||!ue)return;const{optionData:Ge,handleChange:at}=this.props,dt=di()(Ge),Bt=R.split("-"),kt=Number(Bt[Bt.length-1]),qt=Ne.path.split("-"),sn=Number(qt[qt.length-1]),jn=se?se.children[sn]:Ge[sn],Dn=q==="prevSibling"?kt:q==="nextSibling"?kt+1:"error";if(Dn==="error")throw new Error("drag type error");if(!se)dt.splice(Dn,0,jn);else{const Wo=Zo=>{Zo.children.splice(Dn,0,jn)};(0,ei.u2)({newOptionData:dt,pathArr:R.split("-"),onUpdate:Wo})}const lo=Dn>sn?sn:sn+1;if(!se)dt.splice(lo,1);else{const Wo=Zo=>{Zo.children.splice(lo,1)};(0,ei.u2)({newOptionData:dt,pathArr:R.split("-"),onUpdate:Wo})}at(dt,"optionData")}),(0,i.A)(this,"getContainerElement",()=>document.querySelector(".widget-settings")),(0,i.A)(this,"handleClickableIconPanel",async T=>{let{y:R,node:q,path:se}=T;const{clickableIconNode:ue}=this.state,Ne=ue.path!==se;await this.handleToggleOpenIconPanel(Ne,{y:R,node:q,path:se})}),(0,i.A)(this,"handleToggleOpenIconPanel",(T,R)=>{let{y:q,node:se,path:ue}=R;const{widgetName:Ne}=this.props,Ge=(0,Xi.Lm)(T)?T:!this.state.isShowIconPanel;this.setState({isShowIconPanel:Ge,clickableIconNode:T?{...se,path:ue,y:q}:{}}),Ge&&this.props.dispatch({type:"entry:toggle:icon-select-popup",payload:{source:ae.Z.navigationMenuSettingPanel}}),this.props.dispatch({type:"entry:search-panel:clear:state",payload:{from:$i.Z.iconSelectPopup}}),Ge&&Da({source:Ne})}),(0,i.A)(this,"handleSetCurrentNodeIcon",T=>{const{path:R,view_box:q}=T,{optionData:se,handleChange:ue}=this.props,{clickableIconNode:Ne}=this.state,Ge=di()(se),at=Ne.path.split("-"),dt=Bt=>{Bt.data={...Bt.data,icon:{path:R,viewBox:q}}};at.length===1?dt(Ge[at[0]]):(0,ei.PM)({newOptionData:Ge,pathArr:at,onUpdate:dt}),ue(Ge,"optionData")}),(0,i.A)(this,"handleSetSelectedValue",T=>{let{node:R,path:q}=T;const{optionData:se,handleChange:ue,optionMultiSelectable:Ne,widgetVersion:Ge,optionDataSelected:at}=this.props;if(Ge===2){(0,Ei.hZ)({node:R,optionDataSelected:at,onUpdate:qt=>ue(qt.optionDataSelected,"optionDataSelected")});return}const dt=di()(se);Ne||(0,ei.sV)(dt,qt=>{qt.data.selected&&(qt.data={...qt.data,selected:!1})});const Bt={...R.data,selected:!R.data.selected},kt=q.split("-");if(kt.length===1)dt[q].data=Bt;else{const qt=sn=>{sn.data=Bt};(0,ei.PM)({newOptionData:dt,pathArr:kt,onUpdate:qt})}ue(dt,"optionData")}),(0,i.A)(this,"handleToggleOpenLinkPanel",(T,R)=>{let{node:q,path:se,y:ue,e:Ne}=R;const Ge=(0,Xi.Lm)(T)?T:!this.state.isShowLinkPanel;this.setState({isShowLinkPanel:Ge,clickableLinkNode:T?{...q,path:se,y:ue}:{}}),this.props.dispatch({type:"settings:update:state",payload:{isShowLinkPanel:Ge}}),Ge&&(this.props.dispatch({type:"settings:set:select:option",payload:{option:{node:q,path:se}}}),this.props.dispatch({type:"entry:set:option:item"}),this.props.dispatch(Vi.R7.command.subItaSelectCommand({type:"optionData",node:q,path:se})))}),(0,i.A)(this,"handleOpenLinkPanel",async T=>{const{y:R,path:q,node:se,e:ue}=T,{clickableLinkNode:Ne}=this.state,Ge=Ne.path!==q;this.handleToggleOpenLinkPanel(Ge,{node:se,path:q,y:R,e:ue})}),(0,i.A)(this,"handleUpdateLinkSuccess",()=>this.setState({isUpdateLinkSuccess:!0})),(0,i.A)(this,"handleCloseRemoveModal",()=>this.props.dispatch({type:"modal:update:state",payload:{optionRemoveModal:{isOpen:!1}}})),this.state={dragAndDropState:null,isShowIconPanel:!1,isShowLinkPanel:!1,clickableIconNode:{y:0},clickableLinkNode:{y:0}}}render(){const{cid:y,optionData:T,minOptionLength:R,maxOptionLength:q,totalOptionLength:se,isShowIncreaseAction:ue,isShowExpander:Ne,isShowSelectedOperation:Ge,isExpandEditableContentOnEditing:at,maxLevel:dt,optionRemoveModal:Bt,minDepth:kt,innerLinks:qt,widgetName:sn,optionMultiSelectable:jn,dispatch:Dn,hasMissFontHi:lo,optionDataSelected:Wo,widgetVersion:Zo,itemContentInseter:Yo}=this.props,{dragAndDropState:is,isShowIconPanel:os,clickableIconNode:es,isShowLinkPanel:ns,clickableLinkNode:qo}=this.state,{$element:ds,matchDataList:Es,containerRect:Ps,rectQueryMap:fs,offsetX:ps,offsetY:Ss}=is||{},ii=T.length<=R,ai=se>=q;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(er,{className:"setting-drag-menu-container",children:[T.map((Ys,ti)=>{var $s;return(0,t.jsx)(ya,{cid:(Ys==null||($s=Ys.data)==null?void 0:$s.cid)||y+"-"+ti,path:""+ti,parent:null,node:Ys,level:1,maxLevel:dt,minDepth:kt,isShowIncreaseAction:ue,isShowExpander:Ne,isShowSelectedOperation:Ge,isDisabledDecrease:ii,minTopLevelOptionLength:R,isDisabledIncrease:ai,maxOptionLength:q,isExpandEditableContentOnEditing:at,clickableIconNode:os?es:{},clickableLinkNode:ns?qo:{},innerLinks:qt,onAddChildItems:this.handleAddChildItems,onRemoveChildItems:this.handleRemoveChildItems,onUpdate:this.handleUpdate,onMouseDown:this.handleMouseDown,onOpenLinkPanel:this.handleOpenLinkPanel,onSetSelectedValue:this.handleSetSelectedValue,onClickableIconPanel:this.handleClickableIconPanel,optionMultiSelectable:jn,type:sn,hasMissFontHi:lo,optionDataSelected:Wo,widgetVersion:Zo,dispatch:Dn,itemContentInseter:Yo},""+ti)}),is&&(0,t.jsx)(Ul.A,{draggingElement:ds,getContainerElement:this.getContainerElement,matchDataList:Es,containerRect:Ps,rectQueryMap:fs,offsetX:ps,offsetY:Ss,onDrop:this.handleDropState})]}),ns&&(0,t.jsx)(ja,{onClose:()=>this.handleToggleOpenLinkPanel(!1,{}),anchorMeta:qo,fromType:"optionData"}),os&&(0,t.jsx)(ne.A,{emitBaseRect:{top:es.y},onClose:()=>this.handleToggleOpenIconPanel(!1,{}),onSetCurrentNodeIcon:this.handleSetCurrentNodeIcon}),Bt.isOpen&&(0,t.jsx)(Pe,{...Bt,onClose:this.handleCloseRemoveModal,onConfirm:()=>this.handleRemoveChildItems(Bt.data)})]})}}(0,i.A)(Mt,"defaultProps",{maxLevel:5,isShowIncreaseAction:!0,isShowExpander:!0,isShowSelectedOperation:!0,isShowLinkOperation:!0,isDisabledDecrease:!1});var Vt=e(50353);function on(m){switch(m){case Vt.Z6.segmentedControl:case Vt.Z6.tabs:case Vt.Z6.mobileTabBars:case Vt.Z6.selectionControl:return!1;default:return!0}}function tn(m){switch(m){case Vt.Z6.segmentedControl:case Vt.Z6.tabs:case Vt.Z6.selectionControl:case Vt.Z6.mobileTabBars:return!1;default:return!0}}function ln(m){switch(m){case Vt.Z6.collapse:return!1;default:return!0}}function bn(m){switch(m){case Vt.Z6.dropMenu:return!0;case Vt.Z6.collapse:return!1;default:return!0}}function Gn(m){switch(m){case Vt.Z6.collapse:return 2;case Vt.Z6.segmentedControl:case Vt.Z6.selectionControl:return 1;default:return 5}}function so(m){switch(m){case Vt.Z6.navigationMenu:case Vt.Z6.mobileTabBars:return!0;default:return!1}}function eo(m){switch(m){case Vt.Z6.selectionControl:case Vt.Z6.dropMenu:case P.x.WNavigationMenu:case P.x.WCollapse:case P.x.WTree:return 1;default:return 2}}function Co(m){switch(m){case P.x.WTree:case Vt.Z6.navigationMenu:return 500;case Vt.Z6.mobileTabBars:return 20;default:return 50}}function ko(m){switch(m){case Vt.Z6.collapse:return 1;default:return-1/0}}function Ro(m){switch(m){case P.x.WDropMenu:case P.x.WTree:case Vt.Z6.navigationMenu:return I18N.SettingPanel.new_option_first_prev_name.nav;case Vt.Z6.tabs:case Vt.Z6.mobileTabBars:return I18N.SettingPanel.new_option_first_prev_name.tab;case Vt.Z6.collapse:return I18N.SettingPanel.new_option_first_prev_name.collapse;default:return I18N.SettingPanel.new_option_first_prev_name.default}}function Bo(m){switch(m){case P.x.WTree:case P.x.WDropMenu:case P.x.WNavigationMenu:return(y,T)=>I18N.SettingPanel.option_descent_default_content.nav.replace(/%level/,y).replace(/%childCount/,T);case Vt.Z6.collapse:return()=>I18N.SettingPanel.option_descent_default_content.collapse;default:return()=>""}}function Fo(m){switch(m){case Vt.Z6.collapse:return!0;default:return!1}}const Ho=s.Ay.section.withConfig({displayName:"styles__StyledOptionSettings",componentId:"sc-1btj6qh-0"})(["width:240px;padding:0 10px 8px 0;position:relative;.itemContent{.is-icon-button{position:absolute;left:-9px;top:-9px;.toolbar-dropdown-opener.is-open{height:34px;}&.is-active + .itemInput{border-color:",";}}&:hover .icon-bind{display:block;}.var-binded{position:absolute;top:0;left:4px;width:calc(100% - 54px);padding-right:34px;.toolbar-dropdown-opener{position:unset;z-index:0;}& + .itemInput{color:transparent !important;}.var-input{padding-left:1px;}}.iconWrap + .var-binded{width:calc(100% - 84px);left:30px;}}.setting-drag-menu-item .setting-drag-menu-item{.itemContent .var-binded{width:calc(100% - 58px);}}&.optionSetting_wMobileTabBars{.iconWrap + .var-binded{width:calc(100% - 60px);}}.setting-drag-menu-item .dragItemWrap .itemContent input.itemInput{border-radius:6px;}"],m=>m.theme.color_proto),Lo=s.Ay.div.withConfig({displayName:"styles__StyledOptionHeaderAction",componentId:"sc-1btj6qh-1"})(["width:24px;height:24px;border-radius:4px;display:flex;align-items:center;justify-content:center;position:absolute;top:-33px;right:10px;cursor:pointer;&.disabled{cursor:not-allowed;.icon{color:",";}}.icon{width:10px;height:10px;color:",";}&:not(.disabled):hover{background-color:",";}&:not(.disabled):active{background-color:",";}"],m=>m.theme.color_text_disabled01,m=>m.theme.color_text_L1,m=>m.theme.color_btn_secondary_hover,m=>m.theme.color_btn_secondary_active);class Go extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleClick",y=>{const{type:T,optionData:R,canExpandOneMenu:q,handleChange:se}=this.props;y.stopPropagation();const ue=R.filter(kt=>!kt.parent_cid),Ne=q?!R.some(kt=>kt.data.designExpanded):!0,Ge=ue.length+1,at=""+Ro(T)+Ge,dt={path:'<path d="M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z" />',viewBox:"64 64 896 896"},Bt=[...R];if(T.startsWith("collapse")){const kt=Bo(T)();Bt.push({data:{name:at,link_cids:"",expanded:!0,designExpanded:Ne,selected:!1},children:[{data:{name:kt,link_cids:"",expanded:!0,designExpanded:!0,selected:!1},children:[]}]})}else Bt.push({data:{name:at,link_cids:"",expanded:!0,designExpanded:Ne,selected:!1,icon:so(T)?dt:null},children:[]});se(Bt,"optionData")}),(0,i.A)(this,"handleStopPropagation",y=>y.stopPropagation())}render(){const{maxOptionLength:y,totalOptionLength:T}=this.props,R=T>=y;return(0,t.jsx)(Lo,{className:R?"disabled":"",onClick:R?this.handleStopPropagation:this.handleClick,children:(0,t.jsx)(a.A,{isShowTips:R,content:I18N.SettingPanel.max_n_of_options_supported.replace("{n}",y),direction:"down",style:{width:"max-content"},children:(0,t.jsx)(x.C,{name:"common/add@10"})})})}}class ts extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleChange",(y,T)=>{const{onChange:R,dispatch:q,selections:se}=this.props;let ue;T==="optionData"&&(ue=rs(y)),R({value:y,attr:T,dispatch:q,selections:se,refVar:ue})}),(0,i.A)(this,"itemContentInseter",(y,T,R,q,se)=>{var ue;if(se)return null;const Ne=(ue=y.data.refVars)==null?void 0:ue.name,Ge=(at,dt)=>{y.data.name=at,dt?y.data.refVars={name:dt}:delete y.data.refVars,this.handleChange(this.props.optionData,"optionData")};return(0,t.jsx)(we.Yw,{type:"string",isIconButton:!Ne,showName:!0,onlyTag:!0,refVar:Ne,value:y.data.name,onChange:Ge,disabled:q})})}render(){const{optionData:y,type:T,widget:R,canExpandOneMenu:q,optionRemoveModal:se,widgetStore:ue,isEditingCombo:Ne,editingPanelCid:Ge,hasMissFontHi:at,dispatch:dt}=this.props,{key:Bt,hotAttr:kt,hotAttr:{dropMenu:qt,selectionControl:sn,navigationMenu:jn,optionDataDesignUnExpanded:Dn,optionDataSelected:lo}}=R;let Wo,Zo,Yo;T===P.x.WDropMenu?Wo=qt.isMultiple:T===P.x.WSelectionControl?Zo=sn.type:T===P.x.WNavigationMenu&&(Yo=jn.navigationMenuType);const is=(0,Ki.DS)(ue.sdkStore,Bt,Ne,Ge),os=eo(T),es=Co(T),ns=(0,ei.vA)(y);return(0,t.jsxs)(Ho,{className:"optionSetting_"+T,children:[(0,t.jsx)(Go,{canExpandOneMenu:q,type:T,maxOptionLength:es,totalOptionLength:ns,optionData:y,handleChange:this.handleChange}),(0,t.jsx)(Mt,{cid:Bt,isShowIncreaseAction:on(T),isShowExpander:tn(T),isShowSelectedOperation:ln(T),isShowLinkOperation:bn(T),isExpandEditableContentOnEditing:Fo(T),minOptionLength:os,maxOptionLength:es,optionData:y,totalOptionLength:ns,getDefaultDescentContent:Bo(T),optionMultiSelectable:T===P.x.WSelectionControl&&Zo==="checkbox"||T===P.x.WDropMenu&&Wo,minDepth:ko(T),maxLevel:Gn(T),canExpandOneMenu:q,optionRemoveModal:se,innerLinks:is,widgetName:T,navigationMenuType:Yo,handleChange:this.handleChange,dispatch:dt,hasMissFontHi:at,optionDataDesignUnExpanded:Dn,optionDataSelected:lo,widgetVersion:kt["!version"],itemContentInseter:this.itemContentInseter})]})}}const Qo=(0,n.Ng)(m=>{const y=(0,pa.UV)(m),T=(0,be.rE)(m),R=(0,I.pj)(m)||(0,I.gm)(m),q=(0,I.jI)(m);return{widgetStore:y,optionRemoveModal:T,isEditingCombo:R,editingPanelCid:q}})(ts),Xo=(m,y)=>(m.forEach((T,R)=>{var q,se;let{data:ue,children:Ne}=T;const Ge=y==null||(q=y[R])==null?void 0:q.data;Ge&&(ue.refVars=Ge),Xo(Ne,y==null||(se=y[R])==null?void 0:se.children)}),m),rs=m=>{const y=[];return m.forEach((T,R)=>{var q;let{data:se,children:ue}=T;const Ne=(q=se.refVars)==null?void 0:q.name;delete se.refVars;let Ge;Ne&&(Ge={data:{name:Ne}}),ue.length&&(Ge=Object.assign(Ge||{},{children:rs(ue)})),y.push(Ge)}),y},_s={component:Qo,params:{},getter:[m=>{let{selectedItems:y,hasMissFontHi:T}=m;const{hotAttr:R}=y[0]||{},q=(0,Wt.xj)(y,"optionData"),se=di()((0,it.i)(y,"optionData")),ue=Xo(se,q);return{type:R==null?void 0:R.type,widget:y[0],optionData:ue,canExpandOneMenu:(0,it.i)(y,"canExpandOneMenu"),hasMissFontHi:T,refVars:(0,Wt.xj)(y,"optionData")}}],setter:{onChange:gt.c}},cs=()=>[Vl,[_s,"OptionInfo"]];var vs=e(38358),ms=e(5621);const Cs={0:"navigation_menu",1:"navigation_menu_v",2:"navigation_menu_h"},ls=[{icon:{width:27,height:24}},{icon:{width:41,height:24}},{icon:{width:39,height:27}}];class Is extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleChange",(y,T)=>{const{onChange:R,dispatch:q,selections:se}=this.props;R({value:y,attr:T,dispatch:q,selections:se})}),(0,i.A)(this,"handleChangeNavigationMenuType",y=>{const{navigationMenuType:T,selections:R,dispatch:q}=this.props,se=T===Ze.ue.navigationMenuH&&y!==Ze.ue.navigationMenuH,ue=T!==Ze.ue.navigationMenuH&&y===Ze.ue.navigationMenuH,Ne=R.map(Ge=>{const at=sdkStore.getHotItem(Ge);let dt={navigationMenu:{...at.hotAttr.navigationMenu,navigationMenuType:y,align:"space-between"}};if((se||ue)&&!(0,me.OO)(Ge)){const Bt=se?256:375,kt=se?560:48,{hotAttr:{isLockAspect:qt}}=at,sn=sdkStore.getHotBound(Ge),jn=qt?(0,ms.K)(sn.w,sn.h):!1,Dn=(0,vs.AL)(sn,Bt-sn.w,kt-sn.h,"br",jn),{x:lo,y:Wo}=sdkStore.toAttrXY(Dn,Ge);dt={...dt,x:lo,y:Wo,w:Bt,h:kt}}return{key:Ge,hotAttr:dt}});q({type:"entry:widget:change",payload:{flatChgList:Ne}})})}render(){const{navigationMenuType:y}=this.props;return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("ul",{className:"navTypeList",children:ls.map((T,R)=>{let{icon:q}=T;return(0,t.jsxs)("li",{className:p()("typeItem",{active:R===y}),onClick:()=>this.handleChangeNavigationMenuType(R),children:[(0,t.jsx)("div",{className:"iconTypeWrap",children:(0,t.jsx)(x.C,{style:{width:q.width+"px",height:q.height+"px"},name:"setting_panel/"+Cs[R]})}),(0,t.jsx)("span",{className:"name",children:I18N.SettingPanel.nav_menu.type[Cs[R]]})]},R)})})})}}const Ms=s.Ay.section.withConfig({displayName:"styles__StyledNavigationMenuTypeSettings",componentId:"sc-ivj39e-0"})(["&.navPanelSetting{padding:0 16px;}ul.navTypeList{display:flex;justify-content:space-between;padding:8px 0;li.typeItem{display:flex;flex-direction:column;align-items:center;.name{color:",";&:lang(en){text-align:center;}}.iconTypeWrap{width:56px;height:40px;border-radius:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;margin-bottom:4px;&:hover{background-color:",";}.svg-icon{rect{stroke:",";fill:",";}path{stroke:",";fill:none;}}}&.active{.iconTypeWrap{background-color:",";}}}}"],m=>m.theme.color_text_L2,m=>m.theme.color_btn_secondary_hover,m=>m.theme.color_text_L2,m=>m.theme.color_bg_border_02,m=>m.theme.color_text_L2,m=>m.theme.color_btn_secondary_active),xi="nav_menu_type",bs="mp_"+xi;class Os extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)(bs,!0,vt.qW.Boolean)}),(0,i.A)(this,"handleChange",()=>{const{show:y}=this.state;(0,vt.a0)(bs,!y,vt.qW.Boolean),this.setState({show:!y})})}render(){const{show:y}=this.state;return(0,t.jsx)(rn.A,{collapse:!y,title:I18N.SettingPanel.inspector[xi],onChange:this.handleChange,children:(0,t.jsx)(Ms,{type:"panel-body",className:"navPanelSetting",children:this.props.children})})}}const Gs={component:Is,params:{},getter:[m=>{let{selectedItems:y}=m;const{navigationMenuType:T}=(0,it.i)(y,"navigationMenu");return{navigationMenuType:T}}],setter:{onChange:gt.c}},Vs=()=>[Os,[Gs,"NavigationMenuTypeInfo"]],yi=s.Ay.section.withConfig({displayName:"styles__StyledNavigationMenuSettings",componentId:"sc-1ms4miy-0"})(['.sub-panel{[type="panel-body"]{padding:0 10px 0 16px;.panelItem{align-items:center;display:flex;.navHasInputSetting{display:flex;flex:1;align-items:center;label.leftLabel{margin-right:40px;}.WorkspaceInputNumber{width:66px;margin-right:6px;}.var-binded .var-input{margin-left:0 !important;}}}}}']),Ji=["children"];class tr extends h.Component{shouldComponentUpdate(y,T,R){return this.props.isDraggingItem?!1:(0,F.N)(Ji).call(this,y,T)}render(){return(0,t.jsx)(yi,{children:this.props.children})}}const nr=s.Ay.div.withConfig({displayName:"styles__StyledShadows",componentId:"sc-yqpes7-0"})(["display:flex;align-items:center;color:",";.left-label{height:14px;color:",";line-height:14px;white-space:nowrap;}"],m=>m.theme.color_text_L2,m=>m.theme.color_text_L2),or=s.Ay.div.withConfig({displayName:"styles__StylesShadowCollapseBody",componentId:"sc-yqpes7-1"})(["height:0;transition:height 200ms ease-in-out 0s;overflow:hidden;&.is-open{height:auto;overflow:visible;}.shadow-line{margin-left:28px;width:180px;height:32px;display:flex;align-items:center;.var-input-container:not(:first-child){.shadow-item{border-radius:0;border-left:1px solid transparent;margin-left:-1px;&:hover{border-color:",";border-left:1px solid ",";}}}.shadow-item{height:28px;border-radius:6px;&:not(.is-active){border-color:",";}&.is-active{border-left:1px solid ",";&:not(:first-child){border-left:1px solid ",";}}}}.shadow-title{width:180px;height:24px;display:flex;margin-left:28px;span{flex:1;padding-left:6px;color:",";font-size:12px;}}"],m=>m.theme.color_proto,m=>m.theme.color_proto,m=>m.theme.color_bg_border_02,m=>m.theme.color_proto,m=>m.theme.color_proto,m=>m.theme.color_text_L3),xc=()=>null,Kl=m=>{let{shadow:y,handleChange:T,apattr:R,supAttr:q,className:se="",refVars:ue}=m;const{type:Ne,shadowIsVisible:Ge,shadowColor:at,offsetX:dt,offsetY:Bt,blurRadius:kt,spreadRadius:qt}=y,sn=(jn,Dn,lo)=>{const Wo={...y,[Dn]:jn};T(Wo,R,{...ue,[Dn]:lo})};return(0,t.jsxs)(h.Fragment,{children:[(0,t.jsxs)(nr,{className:se+" height-32",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(St.A,{attr:"shadowIsVisible",className:"style-check "+St.p,isChecked:Ge,onChange:sn}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.shadows})]}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,attr:"shadowColor",supAttr:q,attrPanel:R,color:at,onChange:sn})]}),(0,t.jsxs)(or,{className:p()({"is-open":Ge}),children:[(0,t.jsxs)("section",{className:"shadow-line",children:[(0,t.jsx)(we.Yw,{type:"number",inputClassName:"shadow-item",min:-99,max:99,attr:"offsetX",value:dt,refVar:ue==null?void 0:ue.offsetX,onConfirm:(jn,Dn)=>sn(jn,"offsetX",Dn)}),(0,t.jsx)(we.Yw,{type:"number",inputClassName:"shadow-item",min:-99,max:99,attr:"offsetY",value:Bt,refVar:ue==null?void 0:ue.offsetY,onConfirm:(jn,Dn)=>sn(jn,"offsetY",Dn)}),(0,t.jsx)(we.Yw,{type:"number",inputClassName:"shadow-item",min:0,max:99,attr:"blurRadius",value:kt,refVar:ue==null?void 0:ue.blurRadius,onConfirm:(jn,Dn)=>sn(jn,"blurRadius",Dn)}),(0,t.jsx)(we.Yw,{type:"number",inputClassName:"shadow-item",min:-99,max:99,disabled:Ne==="text_shadow",attr:"spreadRadius",value:qt,refVar:ue==null?void 0:ue.spreadRadius,onConfirm:Ne==="text_shadow"?xc:(jn,Dn)=>sn(jn,"spreadRadius",Dn)})]}),(0,t.jsxs)("div",{className:"shadow-title",children:[(0,t.jsx)("span",{children:"X"}),(0,t.jsx)("span",{children:"Y"}),(0,t.jsx)("span",{children:I18N.SettingPanel.blur}),(0,t.jsx)("span",{children:I18N.SettingPanel.spread})]})]})]})};class yc extends h.PureComponent{render(){const{height:y,handleChangeHeight:T,refVar:R}=this.props;return(0,t.jsxs)("div",{className:"navHasInputSetting",children:[(0,t.jsx)("label",{className:"leftLabel",children:I18N.SettingPanel.height}),(0,t.jsx)(we.Yw,{type:"number",inputClassName:"nav_menu_panel_height",attr:"panelDataHeight",value:y,refVar:R,min:1,max:9999,optionList:Md,onConfirm:T})]})}}const Md=[32,36,40,44,48,56,64,72].map(m=>({label:m,value:m})),vc="nav_menu_panel",bc="mp_"+vc;class Ed extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)(bc,!0,vt.qW.Boolean)}),(0,i.A)(this,"handleSubChange",()=>{const{show:y}=this.state;(0,vt.a0)(bc,!y,vt.qW.Boolean),this.setState({show:!y})}),(0,i.A)(this,"handleChangeHeight",(y,T)=>{const{handleChange:R}=this.props;R(y,"menuHeight",T)}),(0,i.A)(this,"handleChangeMenuBorder",(y,T)=>{const{handleChange:R,widgetHotAttr:q}=this.props,ue={...q.navigationMenu.menuBorder,[T]:y};R(ue,"menuBorder")})}render(){const{panelData:y,navigationMenuType:T,handleChange:R,refVars:q}=this.props,{background:se,isBackgroundVisible:ue,border:Ne,fs:Ge,tc:at,shadow:dt,height:Bt}=y,{show:kt}=this.state;return(0,t.jsx)(rn.A,{collapse:!kt,title:I18N.SettingPanel.inspector[vc],onChange:this.handleSubChange,children:(0,t.jsxs)("section",{type:"panel-body",className:"navPanelSetting",children:[(0,t.jsxs)("div",{className:"panelItem height-32 margin-left-n6",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(St.A,{className:St.p,attr:"isMenuBackgroundVisible",isChecked:ue,onChange:R}),(0,t.jsx)("label",{className:"rightLabel",children:I18N.SettingPanel.menu_setting.bg_color})]}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:"navigationMenu",attr:"menuBackground",attrPanel:"panelData",color:se,onChange:(qt,sn)=>R(qt,sn)})]}),T!==Ze.ue.navigationMenuH&&(0,t.jsxs)("div",{className:"panelItem height-32 margin-left-n6",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(St.A,{className:St.p,attr:"bdrIsVisible",isChecked:Ne.bdrIsVisible,onChange:this.handleChangeMenuBorder}),(0,t.jsx)("label",{className:"rightLabel",children:I18N.SettingPanel.menu_setting.dividing})]}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:"navigationMenu-menuBorder",attr:"bdrColor",attrPanel:"panelData",color:Ne.bdrColor,onChange:this.handleChangeMenuBorder})]}),(0,t.jsx)("div",{children:(0,t.jsx)(Kl,{className:"margin-left-n6",shadow:dt,handleChange:R,supAttr:"navigationMenu-menuShadow",apattr:"menuShadow",refVars:q==null?void 0:q.menuShadow})}),T!==Ze.ue.navigationMenuH&&(0,t.jsx)("div",{className:"panelItem height-32",children:(0,t.jsx)(yc,{height:Bt,handleChangeHeight:this.handleChangeHeight,refVar:q==null?void 0:q.menuHeight})})]})})}}const Cc="nav_expand_panel",Sc="mp_"+Cc;class Ld extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)(Sc,!0,vt.qW.Boolean)}),(0,i.A)(this,"handleSubChange",()=>{const{show:y}=this.state;(0,vt.a0)(Sc,!y,vt.qW.Boolean),this.setState({show:!y})}),(0,i.A)(this,"handleChangeHeight",(y,T)=>{const{handleChange:R}=this.props;R(y,"subMenuHeight",T)})}render(){const{expandData:y,refVars:T,handleChange:R}=this.props,{background:q,isBackgroundVisible:se,height:ue}=y,{show:Ne}=this.state;return(0,t.jsx)(rn.A,{collapse:!Ne,title:I18N.SettingPanel.inspector[Cc],onChange:this.handleSubChange,children:(0,t.jsxs)("section",{type:"panel-body",className:"navExpandSetting",children:[(0,t.jsxs)("div",{className:"panelItem height-32 margin-left-n6",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(St.A,{className:St.p,attr:"isSubMenuBackground",isChecked:se,onChange:R}),(0,t.jsx)("label",{className:"rightLabel",children:I18N.SettingPanel.menu_setting.bg_color})]}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:"navigationMenu",attr:"subMenuBackground",attrPanel:"expandData",color:q,onChange:(Ge,at)=>R(Ge,at)})]}),(0,t.jsx)("div",{className:"panelItem height-32",children:(0,t.jsx)(yc,{height:ue,handleChangeHeight:this.handleChangeHeight,refVar:T==null?void 0:T.subMenuHeight})})]})})}}const _c="nav_selected_panel",wc="mp_"+_c;class Nd extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)(wc,!0,vt.qW.Boolean)}),(0,i.A)(this,"handleSubChange",()=>{const{show:y}=this.state;(0,vt.a0)(wc,!y,vt.qW.Boolean),this.setState({show:!y})})}render(){const{selectedData:y,handleChange:T}=this.props,{background:R,isBackgroundVisible:q}=y,{show:se}=this.state;return(0,t.jsx)(rn.A,{collapse:!se,title:I18N.SettingPanel.inspector[_c],onChange:this.handleSubChange,children:(0,t.jsx)("section",{type:"panel-body",className:"navSelectPanelSetting",children:(0,t.jsxs)("div",{className:"panelItem height-32 margin-left-n6",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(St.A,{className:St.p,attr:"isActiveMenuItemBackgroundVisible",isChecked:q,onChange:T}),(0,t.jsx)("label",{className:"rightLabel",children:I18N.SettingPanel.menu_setting.bg_color})]}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:"navigationMenu",attr:"activeMenuItemBackground",attrPanel:"selectedData",color:R,onChange:(ue,Ne)=>T(ue,Ne)})]})})})}}const si=m=>{let{title:y,data:T,onChange:R,updateFamilyVersion:q,hideFontFamily:se,supAttr:ue,attrPanel:Ne,refVars:Ge,refStyles:at}=m;const dt=(0,n.wA)(),Bt=(0,h.useRef)(T.textV0),[kt,qt]=(0,h.useState)(!1),{lineHeight:sn,letterSpacing:jn,fontFamily:Dn,fontWeight:lo,fontSize:Wo,textDecoration:Zo,italic:Yo,textColor:is,bold:os}=T.textV0,es=Yo?"italic":"normal",ns=os?1:0,qo=(0,n.d4)(Ri.y.query.getCloudFontLocalList),ds=(0,Lt.QT)(Dn,lo);(0,h.useEffect)(()=>{Bt.current=T.textV0},[T]);const Es=()=>{qt(!kt)},Ps=fs=>{let{value:ps,attr:Ss,refVar:ii,dispatch:ai}=fs;const Ys={textV0:{...Ge==null?void 0:Ge.textV0,[Ss]:ii}};Ss==="fontStyle"?Bt.current={...Bt.current,italic:ps==="italic"}:Bt.current={...Bt.current,[Ss]:ps},R(Bt.current,Ys),Ss==="fontFamily"&&(q==null||q())};return(0,t.jsx)(rn.A,{collapse:kt,title:y,onChange:Es,children:(0,t.jsxs)(Nn.M,{children:[!se&&(0,t.jsx)(Bn.X,{dispatch:dt,wbiVersion:3,fontFamily:Dn,fontWeight:lo,fontStyle:es,supAttr:ue,isMissFont:ds,onChange:Ps}),(0,t.jsx)(Ao.L,{textColor:is,isTextEditing:!1,fontSize:Wo,fontStyle:es,fontFamily:Dn,textDecoration:Zo,fontWeight:lo,boldType:ns,boldAttr:"boldType",newOverOld:!0,dispatch:dt,isDisabledFontRadioLine:!1,colorAttr:"textColor",isRichText:!1,onChange:Ps,hasMissFontHi:ds,cloudFontLocalList:qo,supAttr:ue,refVars:Ge==null?void 0:Ge.textV0,refStyles:at,attrPanel:Ne}),(0,t.jsx)(Un.O,{lineHeight:sn,letterSpacing:jn,onChange:Ps,dispatch:dt,fontFamily:Dn,fontSize:Wo,isWRichText:!1,hideLineHeight:!0,isMissFont:ds,refVars:Ge==null?void 0:Ge.textV0})]})})};class Dd extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleChange",(y,T,R)=>{const{onChange:q,dispatch:se,selections:ue}=this.props;q({value:y,attr:T,dispatch:se,supAttr:"navigationMenu",selections:ue,refVar:R})}),(0,i.A)(this,"onChangeText",y=>(T,R)=>{this.handleChange({textV0:T},y,R)}),(0,i.A)(this,"updateFamilyVersion",()=>{const{onChange:y,dispatch:T,selections:R}=this.props;y({value:1,attr:"!ffVersion",dispatch:T,selections:R})})}render(){const{panelData:y,expandData:T,selectedData:R,navigationMenuType:q,widgetHotAttr:se,dispatch:ue,refVars:Ne}=this.props,{menuText:Ge,subMenuText:at,activeMenuText:dt}=se.navigationMenu;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Ed,{panelData:y,navigationMenuType:q,widgetHotAttr:se,dispatch:ue,handleChange:this.handleChange,refVars:Ne}),(0,t.jsx)(si,{title:"\u4E00\u7EA7\u83DC\u5355\u6587\u672C",data:Ge,supAttr:"navigationMenu-menuText-textV0",attrPanel:"menuText",onChange:this.onChangeText("menuText"),updateFamilyVersion:this.updateFamilyVersion,refVars:Ne==null?void 0:Ne.menuText}),(0,t.jsx)(Ld,{expandData:T,widgetHotAttr:se,handleChange:this.handleChange,refVars:Ne}),(0,t.jsx)(si,{title:"\u5B50\u83DC\u5355\u6587\u672C",data:at,supAttr:"navigationMenu-subMenuText-textV0",attrPanel:"subMenuText",onChange:this.onChangeText("subMenuText"),updateFamilyVersion:this.updateFamilyVersion,refVars:Ne==null?void 0:Ne.subMenuText}),(0,t.jsx)(Nd,{selectedData:R,handleChange:this.handleChange}),(0,t.jsx)(si,{title:"\u9009\u4E2D\u9879\u6587\u672C",data:dt,supAttr:"navigationMenu-activeMenuText-textV0",attrPanel:"activeMenuText",onChange:this.onChangeText("activeMenuText"),updateFamilyVersion:this.updateFamilyVersion,refVars:Ne==null?void 0:Ne.activeMenuText})]})}}const kd={component:Dd,params:{},getter:[m=>{let{selectedItems:y,rootProject:T,hasMissFontHi:R,cloudFontLocalList:q}=m;const se=(0,it.i)(y,"navigationMenu"),{navigationMenuType:ue}=se,Ne=y[0].hotAttr;return{navigationMenuType:ue,panelData:(0,Ei.qS)(se),expandData:(0,Ei.Sr)(se),selectedData:(0,Ei.H8)(se),widgetHotAttr:Ne,rootProject:T,hasMissFontHi:R,cloudFontLocalList:q,refVars:(0,Wt.xj)(y,"navigationMenu",["menuHeight","subMenuHeight","menuShadow","menuText","subMenuText","activeMenuText"])}}],setter:{onChange:gt.c}},zl=()=>[tr,[kd,"NavigationMenuSettingsInfo"]];class Od extends h.PureComponent{render(){return(0,t.jsx)(t.Fragment,{children:this.props.children})}}const Rd=s.Ay.div.withConfig({displayName:"style__StyledCollapseStyleSettings",componentId:"sc-1e5xeog-0"})(["width:240px;padding:0 10px 0px 16px;color:",";.bg-color-line{display:flex;align-items:center;color:",";}.font-setting{justify-content:flex-start;.left-label.text_kbd{margin-right:24px;}.WorkspaceInputNumber{width:66px;}.font-color{margin-left:6px;}}.marker-position-setting{height:36px;justify-content:flex-start;.left-label{margin-right:38px;}}"],m=>m.theme.color_text_L2,m=>m.theme.color_text_L2),Bd=s.Ay.div.withConfig({displayName:"style__StyledMarkerPositionRatio",componentId:"sc-1e5xeog-1"})(["display:flex;box-sizing:border-box;border-radius:2px;"]);class Gl extends h.PureComponent{render(){const{background:y,isBackgroundVisible:T,markerPosition:R,handleChange:q,attrPanel:se,backgroundAttr:ue,isBackgroundVisibleAttr:Ne,supAttr:Ge}=this.props;return(0,t.jsxs)(Rd,{children:[(0,t.jsxs)("div",{className:"bg-color-line height-32 margin-left-n6",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(St.A,{className:St.p,attr:Ne,isChecked:T,onChange:q}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.bg_color})]}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:Ge,attr:ue,attrPanel:se,color:y,onChange:q})]}),R&&(0,t.jsxs)("div",{className:"line marker-position-setting height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.marker_position}),(0,t.jsx)(jd,{markerPosition:R,handleChange:q})]})]})}}const jd=m=>{const{markerPosition:y,handleChange:T}=m,R=se=>{T(se,"markerPosition")},q=[{label:I18N.SettingPanel.menu_setting.left,value:"left"},{label:I18N.SettingPanel.menu_setting.right,value:"right"}];return(0,t.jsx)(Bd,{children:(0,t.jsx)(Be.mq,{value:y,className:Be.it,onChange:R,optionList:q})})},Ic="collapse_title_settings",Tc="mp_"+Ic;class Wd extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)(Tc,!0,vt.qW.Boolean)}),(0,i.A)(this,"handleChange",(y,T)=>{const{onChange:R,dispatch:q,selections:se}=this.props;R({value:y,attr:T,dispatch:q,supAttr:"collapse",selections:se})}),(0,i.A)(this,"handleSubChange",()=>{const{show:y}=this.state;(0,vt.a0)(Tc,!y,vt.qW.Boolean),this.setState({show:!y})})}render(){const{show:y}=this.state,{titleData:{background:T,isBackgroundVisible:R},markerPosition:q}=this.props;return(0,t.jsx)(rn.A,{collapse:!y,title:I18N.SettingPanel.inspector[Ic],onChange:this.handleSubChange,children:(0,t.jsx)(Gl,{backgroundAttr:"titleBackground",isBackgroundVisibleAttr:"isTitleBackgroundVisible",attrPanel:"title",supAttr:"collapse",background:T,isBackgroundVisible:R,markerPosition:q,handleChange:this.handleChange})})}}const Ac="collapse_content_settings",Pc="mp_"+Ac;class Fd extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)(Pc,!0,vt.qW.Boolean)}),(0,i.A)(this,"handleSubChange",()=>{const{show:y}=this.state;(0,vt.a0)(Pc,!y,vt.qW.Boolean),this.setState({show:!y})}),(0,i.A)(this,"handleChange",(y,T)=>{const{onChange:R,dispatch:q,selections:se}=this.props;R({value:y,attr:T,dispatch:q,supAttr:"collapse",selections:se})})}render(){const{show:y}=this.state,{contentData:{background:T,isBackgroundVisible:R}}=this.props;return(0,t.jsx)(rn.A,{collapse:!y,title:I18N.SettingPanel.inspector[Ac],onChange:this.handleSubChange,children:(0,t.jsx)(Gl,{backgroundAttr:"isContentBackground",isBackgroundVisibleAttr:"isContentBackgroundVisible",attrPanel:"content",supAttr:"collapse",background:T,isBackgroundVisible:R,handleChange:this.handleChange})})}}class Vd extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"onChangeText",y=>(T,R)=>{const{onChange:q,dispatch:se,selections:ue}=this.props;q({value:{textV0:T},attr:y,refVar:R,dispatch:se,supAttr:"collapse",selections:ue})}),(0,i.A)(this,"updateFamilyVersion",()=>{const{onChange:y,dispatch:T,selections:R}=this.props;y({value:1,attr:"!ffVersion",dispatch:T,selections:R})})}render(){var y,T;const{dispatch:R,contentData:q,markerPosition:se,titleData:ue,selections:Ne,onChange:Ge,collapse:at,refVars:dt}=this.props,{titleText:Bt,contentText:kt}=at||{};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Wd,{selections:Ne,dispatch:R,titleData:ue,markerPosition:se,onChange:Ge}),(0,t.jsx)(si,{title:"\u6807\u9898\u6587\u672C",data:Bt,onChange:this.onChangeText("titleText"),supAttr:"collapse-titleText-textV0",attrPanel:"titleText",updateFamilyVersion:this.updateFamilyVersion,refVars:dt==null||(y=dt.collapse)==null?void 0:y.titleText}),(0,t.jsx)(Fd,{selections:Ne,dispatch:R,contentData:q,onChange:Ge}),(0,t.jsx)(si,{title:"\u5185\u5BB9\u6587\u672C",data:kt,onChange:this.onChangeText("contentText"),supAttr:"collapse-contentText-textV0",attrPanel:"contentText",updateFamilyVersion:this.updateFamilyVersion,refVars:dt==null||(T=dt.collapse)==null?void 0:T.contentText})]})}}const Hd={component:Vd,params:{},getter:[m=>{let{selectedItems:y,rootProject:T,hasMissFontHi:R,cloudFontLocalList:q}=m;const se=y[0],{collapse:ue}=se.hotAttr,{titleTextColor:Ne,titleTextSize:Ge,titleBackground:at,isTitleBackgroundVisible:dt,markerPosition:Bt,contentTextSize:kt,contentTextColor:qt,isContentBackground:sn,isContentBackgroundVisible:jn}=ue;return{markerPosition:Bt,titleData:{textColor:Ne,textSize:Ge,background:at,isBackgroundVisible:dt},contentData:{textColor:qt,textSize:kt,background:sn,isBackgroundVisible:jn},rootProject:T,collapse:ue,hasMissFontHi:R,cloudFontLocalList:q,refVars:{collapse:{titleText:{textV0:(0,Wt.xu)(y,["collapse","titleText","textV0"])},contentText:{textV0:(0,Wt.xu)(y,["collapse","contentText","textV0"])}}}}}],setter:{onChange:gt.c}},Ud=()=>[Od,[Hd,"CollapseSettingsInfo"]],Mc="segmented_control_checked_item",Ec="mp_"+Mc;class Kd extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)(Ec,!0,vt.qW.Boolean)}),(0,i.A)(this,"handleChange",(y,T,R)=>{const{onChange:q,dispatch:se,selections:ue}=this.props;let Ne=y;(T.includes("Size")||T.includes("size"))&&(Ne=parseInt(y)),q({value:Ne,attr:T,dispatch:se,supAttr:"segmentedControl",selections:ue,refVar:R})}),(0,i.A)(this,"handleSubChange",()=>{const{show:y}=this.state;(0,vt.a0)(Ec,!y,vt.qW.Boolean),this.setState({show:!y})}),(0,i.A)(this,"onChangeText",y=>(T,R)=>{this.handleChange({textV0:T},y,R)}),(0,i.A)(this,"updateFamilyVersion",()=>{const{onChange:y,dispatch:T,selections:R}=this.props;y({value:1,attr:"!ffVersion",dispatch:T,selections:R})})}render(){const{show:y}=this.state,{dispatch:T,segmentedControl:R,refVars:q}=this.props,{text:se,checkedText:ue,checkedTextColor:Ne,checkedBackgroundColor:Ge,isCheckedBackgroundVisible:at}=R,dt=q==null?void 0:q.segmentedControl;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(si,{title:"\u6587\u672C",data:se,supAttr:"segmentedControl-text-textV0",onChange:this.onChangeText("text"),updateFamilyVersion:this.updateFamilyVersion,refVars:dt==null?void 0:dt.text}),(0,t.jsx)(rn.A,{collapse:!y,title:I18N.SettingPanel.inspector[Mc],onChange:this.handleSubChange,children:(0,t.jsx)(Gl,{background:Ge,supAttr:"segmentedControl",backgroundAttr:"checkedBackgroundColor",isBackgroundVisible:at,isBackgroundVisibleAttr:"isCheckedBackgroundVisible",handleChange:this.handleChange})}),(0,t.jsx)(si,{title:"\u9009\u4E2D\u9879\u6587\u672C",data:ue,onChange:this.onChangeText("checkedText"),supAttr:"segmentedControl-checkedText-textV0",updateFamilyVersion:this.updateFamilyVersion,refVars:dt==null?void 0:dt.checkedText,attrPanel:"checkedText"})]})}}const zd=m=>{let{children:y}=m;return(0,t.jsx)(t.Fragment,{children:y})},Gd={component:Kd,params:{},getter:[m=>{let{selectedItems:y,rootProject:T,hasMissFontHi:R,cloudFontLocalList:q}=m;const se=y[0],{segmentedControl:ue}=se.hotAttr;return{segmentedControl:ue,rootProject:T,hasMissFontHi:R,cloudFontLocalList:q,refVars:{segmentedControl:(0,Wt.xj)(y,"segmentedControl",["text","checkedText"])}}}],setter:{onChange:gt.c}},Zd=()=>[zd,[Gd,"SegmentedControlInfo"]],Zl=s.Ay.div.withConfig({displayName:"styles__StyledCommon",componentId:"sc-b7m095-0"})(["border-top:1px solid ",";padding:8px 0 8px 14px;.itemPanel{display:flex;align-items:center;.right-label{margin-left:4px;}}"],m=>m.theme.color_bg_border_01);class Yd extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleChange",(y,T)=>{const{onChange:R,dispatch:q,selections:se}=this.props;R({value:y,attr:T,dispatch:q,supAttr:"collapse",selections:se})}),(0,i.A)(this,"handleSetCanExpandOneMenu",y=>{const{dispatch:T}=this.props;this.handleChange(y,"canExpandOneMenu"),y&&T({type:"entry:set:navigationMenu:canExpandOneMenu"})})}render(){const{canExpandOneMenu:y}=this.props;return(0,t.jsxs)("div",{className:"itemPanel margin-left-n6 height-32",children:[(0,t.jsx)(St.A,{className:St.p,attr:"canExpandOneMenu",isChecked:y,onChange:this.handleSetCanExpandOneMenu}),(0,t.jsx)("label",{className:"right-label",children:I18N.SettingPanel.navigation_menu.accordion_mode})]})}}const Xd=m=>{let{children:y}=m;return(0,t.jsx)(Zl,{className:"navigationOtherSettingPanel",children:y})},$d={component:Yd,params:{},getter:[m=>{let{selectedItems:y}=m;const{canExpandOneMenu:T}=(0,it.i)(y,"collapse");return{canExpandOneMenu:T}}],setter:{onChange:gt.c}},Qd=()=>[Xd,[$d,"CollapseSwitchOptionsInfo"]],Jd=s.Ay.ul.withConfig({displayName:"styles__StyledDropMenuSettings",componentId:"sc-16ydav1-0"})(["padding:8px 16px 8px 16px;border-top:1px solid ",";color:",";.common-line{display:flex;align-items:center;justify-content:space-between;.right-input-container{position:relative;margin-left:-6px;.is-icon-button{position:absolute;top:-9px;left:-9px;.toolbar-dropdown-opener.is-open{height:36px;}&.is-active + input{border:1px solid ",";outline:"," solid 1px;outline-offset:-2px;}}.var-binded{width:144px;.var-input{padding-right:0px;}}}&:hover .icon-bind{display:block;}.right-input-container{width:140px;}.right-input{width:140px;height:28px;border-radius:4px;padding-left:6px;white-space:nowrap;text-overflow:ellipsis;color:",";border:1px solid ",";&.has-value:not(:focus){border:1px solid transparent;&:hover{border:1px solid ",";}}&:hover{border:1px solid ",";}&:focus{border:1px solid ",";outline:"," solid 1px;outline-offset:-2px;}}.WorkspaceSelect{width:140px;}.right-switch-container{width:140px;padding-left:6px;display:flex;align-items:center;&:lang(en){width:112px;}}}"],m=>m.theme.color_bg_border_01,m=>m.theme.color_text_L2,m=>m.theme.color_proto,m=>m.theme.color_proto,m=>m.theme.color_text_L1,m=>m.theme.color_bg_border_02,m=>m.theme.color_bg_border_02,m=>m.theme.color_bg_border_02,m=>m.theme.color_proto,m=>m.theme.color_proto),qd=s.Ay.section.withConfig({displayName:"styles__StyledOptionColorSettings",componentId:"sc-16ydav1-1"})(["padding:0 16px;.drop-menu-option-color{height:32px;display:flex;justify-content:space-between;align-items:center;.right-area{width:150px;&:lang(en){width:80px;}}}"]);class ep extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{textFocused:!1}),(0,i.A)(this,"MUTUAL_WAY_OPTION_LIST",[{label:I18N.SettingPanel.drop_menu_option.click,value:"click"},{label:I18N.SettingPanel.drop_menu_option.hover,value:"hover"}]),(0,i.A)(this,"handleChange",(y,T,R)=>{const{onChange:q,dispatch:se,selections:ue}=this.props;q({value:y,attr:T,dispatch:se,supAttr:R,selections:ue})}),(0,i.A)(this,"handleChangeText",y=>{const T=y.target.value;this.handleChange(T,"text","textV0")}),(0,i.A)(this,"handleChangeTextVar",(y,T)=>{const{onChange:R,dispatch:q,selections:se}=this.props;R({value:y,attr:"text",supAttr:"textV0",refVar:T,dispatch:q,selections:se})}),(0,i.A)(this,"handleSelect",(y,T)=>{this.handleChange(y,T,"dropMenu")}),(0,i.A)(this,"handleFocus",y=>{const{selections:T}=this.props;if(this.setState({textFocused:!0}),y.preventDefault(),y.stopPropagation(),!(0,Lt.RC)(T[0])){y.target.blur();return}y.target.select()}),(0,i.A)(this,"hanldeBlur",()=>{this.setState({textFocused:!1})}),(0,i.A)(this,"handleBlurInput",y=>{const{key:T}=y;T===Qi._.Enter&&y.target.blur()}),(0,i.A)(this,"handleSetIsMultiple",y=>{this.handleChange(y,"isMultiple","dropMenu"),y===!0&&this.handleChange(!0,"dropMenuEcho","dropMenu")}),(0,i.A)(this,"handleSetEcho",y=>{this.handleChange(y,"dropMenuEcho","dropMenu")})}render(){var y;const{text:T,mutualWay:R,dropMenuEcho:q,isMultiple:se,refVars:ue,selections:Ne}=this.props,Ge=ue==null||(y=ue.textV0)==null?void 0:y.text,at=(0,Lt.fP)(Ne[0]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("li",{className:"common-line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.btn_content}),(0,t.jsxs)("div",{className:"right-input-container",children:[!this.state.textFocused&&(0,t.jsx)(we.Yw,{type:"string",refVar:Ge,showName:!0,isIconButton:!Ge,value:T,onChange:this.handleChangeTextVar,disabled:at!==void 0}),!Ge&&(0,t.jsx)("input",{value:T,className:p()("right-input",{"has-value":T.length>0}),onFocus:this.handleFocus,onChange:this.handleChangeText,onKeyDown:this.handleBlurInput,onBlur:this.hanldeBlur})]})]}),(0,t.jsxs)("li",{className:"common-line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.multiSelection}),(0,t.jsx)("div",{className:"right-switch-container",children:(0,t.jsx)(fi.A,{size:"small",isIOS:!0,isChecked:se,onChange:this.handleSetIsMultiple})})]}),(0,t.jsxs)("li",{className:"common-line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.switch_echo}),(0,t.jsx)("div",{className:"right-switch-container",children:(0,t.jsx)(fi.A,{size:"small",isIOS:!0,isChecked:q,onChange:this.handleSetEcho,isDisabled:se})})]}),(0,t.jsxs)("li",{className:"common-line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.interaction_mode}),(0,t.jsx)(Be.mq,{attr:"mutualWay",optionList:this.MUTUAL_WAY_OPTION_LIST,value:R,onChange:this.handleSelect})]})]})}}const tp=m=>{let{children:y}=m;return(0,t.jsx)(Jd,{children:y})};class np extends h.PureComponent{constructor(){var y;super(...arguments),y=this,(0,i.A)(this,"handleChange",function(T,R,q){q===void 0&&(q="optionColor");const{onChange:se,dispatch:ue,selections:Ne}=y.props;se({value:T,attr:R,dispatch:ue,supAttr:q,selections:Ne})})}render(){const{optionBgColor:y,optionHoverBgColor:T,optionSelectTextColor:R,optionSelectedColor:q}=this.props;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"drop-menu-option-color",children:[(0,t.jsx)("div",{className:"title",children:I18N.SettingPanel.listBackground}),(0,t.jsx)("div",{className:"right-area",children:(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:"optionColor",attr:"optionBgColor",color:y,onChange:(se,ue)=>this.handleChange(se,ue)})})]}),(0,t.jsxs)("div",{className:"drop-menu-option-color",children:[(0,t.jsx)("div",{className:"title",children:I18N.SettingPanel.hoverBackground}),(0,t.jsx)("div",{className:"right-area",children:(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:"optionColor",attr:"optionHoverBgColor",color:T,onChange:(se,ue)=>this.handleChange(se,ue)})})]}),(0,t.jsxs)("div",{className:"drop-menu-option-color",children:[(0,t.jsx)("div",{className:"title",children:I18N.SettingPanel.listTextColor}),(0,t.jsx)("div",{className:"right-area",children:(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:"optionColor",attr:"optionSelectTextColor",color:R,onChange:(se,ue)=>this.handleChange(se,ue)})})]}),(0,t.jsxs)("div",{className:"drop-menu-option-color",children:[(0,t.jsx)("div",{className:"title",children:I18N.SettingPanel.listSelectedTextColor}),(0,t.jsx)("div",{className:"right-area",children:(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:"optionColor",attr:"optionSelectedColor",color:q,onChange:(se,ue)=>this.handleChange(se,ue)})})]})]})}}const Lc="drop_menu_option_color",Nc="mp_"+Lc,op=["children"];class sp extends h.Component{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)(Nc,!0,vt.qW.Boolean)}),(0,i.A)(this,"handleChange",()=>{const{show:y}=this.state;(0,vt.a0)(Nc,!y,vt.qW.Boolean),this.setState({show:!y})})}shouldComponentUpdate(y,T,R){return this.props.isDraggingItem?!1:(0,F.N)(op).call(this,y,T)}render(){const{show:y}=this.state,{children:T}=this.props;return(0,t.jsx)(rn.A,{collapse:!y,title:I18N.SettingPanel.inspector[Lc],onChange:this.handleChange,children:(0,t.jsx)(qd,{className:"option-color-panel",children:T})})}}const ip={component:ep,params:{},getter:[m=>{let{selectedItems:y}=m;const T=(0,it.i)(y,"dropMenu");return{dropMenuEcho:T.dropMenuEcho,mutualWay:T.mutualWay,text:(0,it.i)(y,"textV0").text,isMultiple:T.isMultiple,refVars:{textV0:(0,Wt.xj)(y,"textV0",["text"])}}}],setter:{onChange:gt.c}},ap=()=>[tp,[ip,"DropMenuInfo"]],rp={component:np,params:{},getter:[m=>{let{selectedItems:y}=m;const T=(0,it.i)(y,"optionColor"),{optionBgColor:R,optionHoverBgColor:q,optionSelectTextColor:se,optionSelectedColor:ue}=T;return{optionBgColor:R,optionHoverBgColor:q,optionSelectTextColor:se,optionSelectedColor:ue}}],setter:{onChange:gt.c}},lp=()=>[sp,[rp,"OptionColorInfo"]];class cp extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleChange",(y,T)=>{const{onChange:R,dispatch:q,selections:se}=this.props;R({value:y,attr:T,dispatch:q,supAttr:"navigationMenu",selections:se})}),(0,i.A)(this,"handleSetIsShowIcon",y=>{this.handleChange(y,"isShowIcon")}),(0,i.A)(this,"handleSetCanExpandOneMenu",y=>{const{dispatch:T}=this.props;this.handleChange(y,"canExpandOneMenu"),y&&T({type:"entry:set:navigationMenu:canExpandOneMenu"})})}render(){const{isShowIcon:y,canExpandOneMenu:T,isShowAccordionMode:R}=this.props;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"itemPanel margin-left-n6 height-32",children:[(0,t.jsx)(St.A,{className:St.p,attr:"isShowIcon",isChecked:y,onChange:this.handleSetIsShowIcon}),(0,t.jsx)("label",{className:"right-label",children:I18N.SettingPanel.display_icon})]}),R&&(0,t.jsxs)("div",{className:"itemPanel margin-left-n6 height-32",children:[(0,t.jsx)(St.A,{className:St.p,attr:"canExpandOneMenu",isChecked:T,onChange:this.handleSetCanExpandOneMenu}),(0,t.jsx)("label",{className:"right-label",children:I18N.SettingPanel.navigation_menu.accordion_mode})]})]})}}const dp=m=>{let{children:y}=m;return(0,t.jsx)(Zl,{className:"navigationOtherSettingPanel",children:y})},pp={component:cp,params:{isShowAccordionMode:!0},getter:[m=>{let{selectedItems:y}=m;const{isShowIcon:T,canExpandOneMenu:R}=(0,it.i)(y,"navigationMenu");return{isShowIcon:T,canExpandOneMenu:R}}],setter:{onChange:gt.c}},hp=()=>[dp,[pp,"NavigationMenuSwitchOptionsInfo"]],up=s.Ay.section.withConfig({displayName:"styles__StyledSwitchesState",componentId:"sc-1fat5zb-0"})(["padding:8px 16px;border-top:1px solid ",";color:",";display:flex;align-items:start;position:relative;flex-direction:column;box-sizing:content-box;.line{width:100%;display:flex;align-items:center;justify-content:space-between;&:hover .icon-bind{display:block;}.right-content{width:140px;padding-left:7px;align-items:center;position:relative;.is-icon-button{position:absolute;left:-14px;top:-4px;}.direction-radio-line{margin-bottom:0;width:100%;border:none;.radio-option{border-radius:2px;color:",";&.active{background:",";}}}.interval-value{width:100%;}}}"],m=>m.theme.color_bg_border_01,m=>m.theme.color_text_L2,m=>m.theme.color_text_L1,m=>m.theme.color_btn_secondary_active),gp=(0,h.memo)(m=>{var y,T;let{checked:R,isDisabled:q,refVars:se,onChange:ue,dispatch:Ne,selections:Ge}=m;const at=(sn,jn,Dn)=>{ue({value:sn,attr:jn,supAttr:"switch",refVar:Dn,dispatch:Ne,selections:Ge})},dt=sn=>{at(sn,"checked")},Bt=sn=>{at(sn,"isDisabled")},kt=se==null||(y=se.switch)==null?void 0:y.checked,qt=se==null||(T=se.switch)==null?void 0:T.isDisabled;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.switch_state}),(0,t.jsxs)("div",{className:"right-content",children:[(0,t.jsx)(we.Yw,{type:"boolean",refVar:kt,value:R,isIconButton:!kt,showName:!0,onChange:(sn,jn)=>at(sn,"checked",jn)}),!kt&&(0,t.jsx)(fi.A,{size:"small",isIOS:!0,isChecked:R,onChange:dt})]})]}),(0,t.jsxs)("div",{className:"line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.switch_disabled}),(0,t.jsxs)("div",{className:"right-content",children:[(0,t.jsx)(we.Yw,{type:"boolean",refVar:qt,value:q,isIconButton:!qt,showName:!0,onChange:(sn,jn)=>at(sn,"isDisabled",jn)}),!qt&&(0,t.jsx)(fi.A,{size:"small",isIOS:!0,isChecked:q,onChange:Bt})]})]})]})}),mp=m=>{let{children:y}=m;return(0,t.jsx)(up,{children:y})},fp={component:gp,params:{},getter:[m=>{let{selectedItems:y}=m;const{isDisabled:T,checked:R}=(0,it.i)(y,"switch");return{checked:R,isDisabled:T,refVars:{switch:(0,Wt.xj)(y,"switch",["isDisabled","checked"])}}}],setter:{onChange:gt.c}},Dc=()=>[mp,[fp,"SwitchInfo"]];class xp extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleChange",(y,T)=>{const{onChange:R,dispatch:q,selections:se}=this.props;R({value:y,attr:T,dispatch:q,supAttr:"mobileTabBars",selections:se})}),(0,i.A)(this,"handleSetIsShowIcon",y=>{this.handleChange(y,"isShowIcon")}),(0,i.A)(this,"handleSetIsShowText",y=>{this.handleChange(y,"isShowText")})}render(){const{isShowIcon:y,isShowText:T}=this.props;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"itemPanel margin-left-n6 height-32",children:[(0,t.jsx)(St.A,{className:St.p,attr:"isShowSelectedIcon",isChecked:y,onChange:this.handleSetIsShowIcon}),(0,t.jsx)("label",{className:"right-label",children:I18N.SettingPanel.display_icon})]}),(0,t.jsxs)("div",{className:"itemPanel margin-left-n6 height-32",children:[(0,t.jsx)(St.A,{className:St.p,attr:"isShowSelectedText",isChecked:T,onChange:this.handleSetIsShowText}),(0,t.jsx)("label",{className:"right-label",children:I18N.SettingPanel.display_text})]})]})}}const yp=m=>{let{children:y}=m;return(0,t.jsx)(Zl,{className:"navigationOtherSettingPanel",children:y})},vp={component:xp,params:{},getter:[m=>{let{selectedItems:y}=m;const{isShowIcon:T,isShowText:R}=(0,it.i)(y,"mobileTabBars");return{isShowIcon:T,isShowText:R}}],setter:{onChange:gt.c}},bp=()=>[yp,[vp,"MobileTabBarsInfo"]],Cp=s.Ay.section.withConfig({displayName:"styles__StyledSwitchesAppearance",componentId:"sc-etjwqo-0"})(["width:240px;padding:0 10px 0 16px;color:",";.slider-setting-line{display:flex;align-items:center;",";}"],m=>m.theme.color_text_L2,Oi.B3);class kc extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)("mp_"+this.props.collapseName,!0,vt.qW.Boolean)}),(0,i.A)(this,"handleSwitchesTrackAttrChange",(y,T)=>{const{dispatch:R,handleChange:q}=this.props;q(y,T),R({type:"entry:auto:show:hide:item"})}),(0,i.A)(this,"handleSubChange",()=>{const{show:y}=this.state;(0,vt.a0)("mp_"+this.props.collapseName,!y,vt.qW.Boolean),this.setState({show:!y})})}render(){const{thumbAttr:y,trackAttr:T,isThumbVisible:R,isTrackVisible:q,collapseName:se,trackColor:ue,thumbColor:Ne,isThumbVisibleAttr:Ge,isTrackVisibleAttr:at}=this.props,{show:dt}=this.state;return(0,t.jsx)(rn.A,{collapse:!dt,title:I18N.SettingPanel.inspector[se],onChange:this.handleSubChange,children:(0,t.jsxs)(Cp,{children:[(0,t.jsxs)("div",{className:"slider-setting-line margin-left-n6 height-32",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(St.A,{className:St.p,attr:Ge,isChecked:R,onChange:this.handleSwitchesTrackAttrChange}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.thumb_bg_switches})]}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:"switch",attr:y,color:Ne,onChange:this.handleSwitchesTrackAttrChange})]}),(0,t.jsxs)("div",{className:"slider-setting-line margin-left-n6 height-32",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(St.A,{className:St.p,attr:at,isChecked:q,onChange:this.handleSwitchesTrackAttrChange}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.track_bg_switches})]}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:"switch",attr:T,color:ue,onChange:this.handleSwitchesTrackAttrChange})]})]})})}}const Sp=(0,h.memo)(m=>{let{dispatch:y,onChange:T,isThumbVisible:R,isCheckedThumbVisible:q,isTrackVisible:se,isCheckedTrackVisible:ue,thumbColor:Ne,trackColor:Ge,checkedThumbColor:at,checkedTrackColor:dt,selections:Bt}=m;const kt=(qt,sn)=>{T({value:qt,attr:sn,dispatch:y,supAttr:"switch",selections:Bt})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(kc,{dispatch:y,handleChange:kt,isThumbVisible:q,thumbColor:at,thumbAttr:"checkedThumbColor",isTrackVisible:ue,trackColor:dt,trackAttr:"checkedTrackColor",isTrackVisibleAttr:"isCheckedTrackVisible",isThumbVisibleAttr:"isCheckedThumbVisible",collapseName:"collapse_switches_checked_panel"}),(0,t.jsx)(kc,{dispatch:y,handleChange:kt,isThumbVisible:R,isTrackVisible:se,thumbAttr:"thumbColor",trackAttr:"trackColor",thumbColor:Ne,trackColor:Ge,isTrackVisibleAttr:"isTrackVisible",isThumbVisibleAttr:"isThumbVisible",collapseName:"collapse_switches_unchecked_panel"})]})}),_p=m=>{let{children:y}=m;return(0,t.jsx)(t.Fragment,{children:y})},wp={component:Sp,params:{},getter:[m=>{let{selectedItems:y}=m;const{isThumbVisible:T,isCheckedThumbVisible:R,isTrackVisible:q,isCheckedTrackVisible:se,thumbColor:ue,trackColor:Ne,checkedThumbColor:Ge,checkedTrackColor:at}=(0,it.i)(y,"switch");return{isThumbVisible:T,isCheckedThumbVisible:R,isTrackVisible:q,isCheckedTrackVisible:se,thumbColor:ue,trackColor:Ne,checkedThumbColor:Ge,checkedTrackColor:at}}],setter:{onChange:gt.c}},Oc=()=>[_p,[wp]];var Rc=e(97433),Bc=e(56849),Ip=e(98886);class sr extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleLineSizeChange",(y,T)=>{const{borderAttr:R,border:q}=this.props,se=(parseInt(y)||0)+10,ue={...q,[T]:se};this.props.handleChange(ue,R)}),(0,i.A)(this,"handleChangeBorder",(y,T,R)=>{const{borderAttr:q,border:se,refVars:ue}=this.props,Ne={...se,[T]:y};this.props.handleChange(Ne,q,{...ue,[T]:R})}),(0,i.A)(this,"handleChangeSingleBorder",y=>{y.stopPropagation();const{borderVisibility:T}=this.props,{borderSide:R}=y.currentTarget.dataset,q=[...T],se=Number(R);q[se]=!T[se],this.props.handleChange(q,"border_visibility")})}render(){const{attrPanel:y,supAttr:T,colorButtonAttr:R,canBorderWidth:q,canBorderStyle:se,border:ue,isHLine:Ne,isVLine:Ge,width:at,height:dt,borderVisibility:Bt,canSetBorderVisibility:kt,title:qt,refVars:sn,refStyles:jn}=this.props,{bdrIsVisible:Dn,bdrColor:lo,bdrStyle:Wo,bdrWidth:Zo}=ue;let Yo;if(Ne){const ns=dt-10>0?dt-10:1;Yo=(0,t.jsx)(Ae.A,{attr:"height",className:"border-width-input",value:ns,optionList:ks.K3,onConfirm:this.handleLineSizeChange})}else if(Ge){const ns=at-10>0?at-10:1;Yo=(0,t.jsx)(Ae.A,{attr:"width",className:"border-width-input",value:ns,optionList:ks.K3,onConfirm:this.handleLineSizeChange})}else q?Yo=(0,t.jsx)(we.Yw,{type:"number",inputClassName:"border-width-input",attr:"bdrWidth",value:Zo,refVar:sn==null?void 0:sn.bdrWidth,optionList:ks.xq,onConfirm:(ns,qo)=>this.handleChangeBorder(ns,"bdrWidth",qo)}):Yo=null;const is=!se&&!Yo,os=!se&&!kt&&Yo,es=se&&Yo&&!kt;return(0,t.jsxs)(Rc.Y,{className:p()({"is-open":Dn&&!is},{"is-only-stroke-width":os},{"has-style-width-no-visibility":es}),children:[(0,t.jsxs)("div",{className:"appearance-line border-open height-32",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(St.A,{className:St.p,attr:"bdrIsVisible",isChecked:Dn,onChange:this.handleChangeBorder}),(0,t.jsx)("label",{className:"left-label",children:qt||I18N.SettingPanel.stroke})]}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:T,attr:R,attrPanel:y,color:lo,refStyles:jn,onChange:this.handleChangeBorder})]}),(0,t.jsxs)("div",{className:p()("border-collapse-body height-36 margin-right-n6",{"is-open":Dn&&!is}),children:[os&&(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.thickness}),se&&(0,t.jsxs)("div",{className:"border-select-size-warp",children:[(0,t.jsx)(Bc.v,{}),(0,t.jsx)(Be.mq,{className:p()("border-select-size"),attr:"bdrStyle",menuClassName:"border_style_select_menu",optionList:(0,ks.se)(),value:Wo,onChange:this.handleChangeBorder})]}),Yo,kt&&(0,t.jsx)(Ip.A,{handleChange:this.handleChangeSingleBorder,borderVisibility:Bt})]})]})}}(0,i.A)(sr,"defaultProps",{colorButtonAttr:"bdrColor"});const Tp=s.Ay.section.withConfig({displayName:"styles__StyledTabsInfo",componentId:"sc-1ft6y5n-0"})(["width:240px;padding:0 10px 0 16px;color:",";.appearance-line{display:flex;align-items:center;color:",";",";.left-label{height:14px;color:",";line-height:14px;white-space:nowrap;}}.info{justify-content:flex-start;.left-label.text_kbd{margin-right:24px;}.WorkspaceInputNumber{width:66px;}[type=color-btn]{margin-left:6px;}.options-menu-opener{&.is-open{.menu-opener{background-color:",";}}&.font-menu-opener{flex:1;display:flex;justify-content:flex-end;align-items:center;}}}"],m=>m.theme.color_text_L2,m=>m.theme.color_text_L2,Oi.B3,m=>m.theme.color_text_L2,m=>m.color_background_split),F0=s.Ay.div.withConfig({displayName:"styles__StyledCheckedMenu",componentId:"sc-1ft6y5n-1"})(["width:204px;height:126px;header{height:40px;border-bottom:1px solid ",";display:flex;align-items:center;justify-content:space-between;padding:0 12px;color:",";.title{font-weight:500;}div{&:not(.disabled):hover{background:",";}&:not(.disabled):active{background:",";}}}.menu-wrapper{display:flex;flex-direction:row;justify-content:space-between;padding:8px 10px 16px 10px;color:",";&:not(:first-child){padding-top:0;}.font-style{p{margin-bottom:14px;}.icon{width:24px;height:24px;}.radio-line{background:transparent;color:",";&:lang(en){justify-content:flex-start;}}.radio-option{border-radius:4px;overflow:hidden;}.radio-line{&:not(.disabled){.radio-option{&:not(.active):hover{background:",";color:",";}&.active{background:",";color:",";}}}}}}"],m=>m.theme.color_bg_border_02,m=>m.theme.color_text_L1,m=>m.theme.color_btn_secondary_hover,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_text_L3,m=>m.theme.color_text_L1,m=>m.theme.color_btn_secondary_hover,m=>m.theme.color_text_L1,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_text_L1),V0=(0,s.Ay)(pt.L4).withConfig({displayName:"styles__StyledDropDown",componentId:"sc-1ft6y5n-2"})(["flex:1;display:flex;justify-content:flex-end;"]),jc="tabs_checked",Wc="mp_"+jc;class Ap extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)(Wc,!0,vt.qW.Boolean)}),(0,i.A)(this,"handleChange",(y,T,R)=>{const{onChange:q,dispatch:se,selections:ue}=this.props;q({value:y,attr:T,dispatch:se,supAttr:"tabs",selections:ue,refVar:R})}),(0,i.A)(this,"handleSubChange",()=>{const{show:y}=this.state;(0,vt.a0)(Wc,!y,vt.qW.Boolean),this.setState({show:!y})}),(0,i.A)(this,"onChangeText",y=>(T,R)=>{this.handleChange({textV0:T},y,R)}),(0,i.A)(this,"updateFamilyVersion",()=>{const{onChange:y,dispatch:T,selections:R}=this.props;y({value:1,attr:"!ffVersion",dispatch:T,selections:R})})}render(){var y,T,R;const{tabs:{checkedBorder:q,text:se,checkedText:ue},refVars:Ne,refStyles:Ge}=this.props,{show:at}=this.state;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(si,{title:"\u6587\u672C",data:se,supAttr:"tabs-text-textV0",onChange:this.onChangeText("text"),updateFamilyVersion:this.updateFamilyVersion,refVars:Ne==null?void 0:Ne.text,refStyles:Ge==null||(y=Ge.color)==null?void 0:y.tabs}),(0,t.jsx)(rn.A,{collapse:!at,title:I18N.SettingPanel.inspector[jc],onChange:this.handleSubChange,children:(0,t.jsx)(Tp,{children:(0,t.jsx)(sr,{canBorderWidth:!0,canBorderStyle:!0,border:q,isHLine:!1,isVLine:!1,borderAttr:"checkedBorder",supAttr:"tabs-checkedBorder",refVars:Ne==null?void 0:Ne.checkedBorder,refStyles:Ge==null||(T=Ge.color)==null?void 0:T.tabs,title:I18N.SettingPanel.tabs_checked_stroke,handleChange:this.handleChange})})}),(0,t.jsx)(si,{title:"\u9009\u4E2D\u9879\u6587\u672C",data:ue,supAttr:"tabs-checkedText-textV0",onChange:this.onChangeText("checkedText"),updateFamilyVersion:this.updateFamilyVersion,refVars:Ne==null?void 0:Ne.checkedText,refStyles:Ge==null||(R=Ge.color)==null?void 0:R.tabs})]})}}const Pp=m=>{let{children:y}=m;return(0,t.jsx)(t.Fragment,{children:y})},Mp={component:Ap,params:{},getter:[m=>{let{selectedItems:y,rootProject:T,hasMissFontHi:R,cloudFontLocalList:q}=m;const se=(0,it.i)(y,"tabs"),ue=(0,it.i)(y,"refStyles");return{tabs:se,rootProject:T,hasMissFontHi:R,cloudFontLocalList:q,refVars:(0,Wt.xj)(y,"tabs"),refStyles:ue}}],setter:{onChange:gt.c}},Ep=()=>[Pp,[Mp,"TabsInfo"]],Fc=s.Ay.section.withConfig({displayName:"styles__StyledInfoSetting",componentId:"sc-17wnp6b-0"})(["width:240px;padding:0 10px 0 16px;color:",";.appearance-line{display:flex;align-items:center;color:",";.left-label{height:14px;color:",";line-height:14px;white-space:nowrap;}}.info{justify-content:flex-start;.left-label{&.text_kbd{margin-right:24px;}&.page-number{margin-right:20px;&:lang(en){margin-right:8px;}}}.WorkspaceInputNumber{width:66px;}[type=color-btn]{margin-left:6px;}}"],m=>m.theme.color_text_L2,m=>m.theme.color_text_L2,m=>m.theme.color_text_L2),H0=s.Ay.div.withConfig({displayName:"styles__StyledSub",componentId:"sc-17wnp6b-1"})(["width:240px;& > header{font-weight:600;padding:14px 14px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid ",";transition:all 0.2s ease-in-out;cursor:pointer;}"],m=>m.theme.color_bg_border_02),Vc="pagination_checked",Hc="mp_"+Vc;class Lp extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)(Hc,!0,vt.qW.Boolean)}),(0,i.A)(this,"handleChange",(y,T,R)=>{const{onChange:q,dispatch:se,paginationType:ue,selections:Ne}=this.props;let Ge;ue==="web"?Ge="paginationWeb":Ge="paginationMobile",q({value:y,attr:T,dispatch:se,supAttr:Ge,selections:Ne,refVar:R})}),(0,i.A)(this,"onAppearanceChange",(y,T)=>{const{dispatch:R}=this.props;this.handleChange(y,T),R({type:"entry:auto:show:hide:item"})}),(0,i.A)(this,"handleChangeFontSize",y=>{this.handleChange(y,"checkedTextSize")}),(0,i.A)(this,"handleSubChange",()=>{const{show:y}=this.state;(0,vt.a0)(Hc,!y,vt.qW.Boolean),this.setState({show:!y})}),(0,i.A)(this,"onChangeText",y=>(T,R)=>{const{onChange:q,dispatch:se,selections:ue,paginationType:Ne}=this.props;q({value:T,attr:y,dispatch:se,supAttr:Ne==="web"?"paginationWeb":"paginationMobile",selections:ue,refVar:R==null?void 0:R.textV0})}),(0,i.A)(this,"updateFamilyVersion",()=>{const{onChange:y,dispatch:T,selections:R}=this.props;y({value:1,attr:"!ffVersion",dispatch:T,selections:R})})}render(){var y,T,R;const{paginationType:q,hotAttr:se}=this.props,{show:ue}=this.state,Ne=q==="web"?"paginationWeb":"paginationMobile",{isCheckedBackgroundVisible:Ge,checkedBackgroundColor:at,checkedBorder:dt,textV0:Bt,checkedTextV0:kt}=se[Ne],qt=q==="web";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(si,{title:"\u6587\u672C",data:{textV0:Bt},hideFontFamily:!0,onChange:this.onChangeText("textV0"),supAttr:Ne+"-textV0",updateFamilyVersion:this.updateFamilyVersion,refVars:(y=se.refVars)==null?void 0:y[Ne]}),qt&&(0,t.jsx)(rn.A,{collapse:!ue,title:I18N.SettingPanel.inspector[Vc],onChange:this.handleSubChange,children:(0,t.jsx)(Fc,{children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"appearance-line color-line height-32 margin-left-n6",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(St.A,{className:St.p,attr:"isCheckedBackgroundVisible",isChecked:Ge,onChange:this.handleChange}),(0,t.jsx)("label",{className:"left-label background-label",children:I18N.SettingPanel.fill})]}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:Ne,attr:"checkedBackgroundColor",color:at,onChange:this.handleChange})]}),(0,t.jsx)(sr,{canBorderWidth:!0,canBorderStyle:!0,border:dt,isHLine:!1,isVLine:!1,borderAttr:"checkedBorder",supAttr:Ne+"-checkedBorder",refVars:(T=se.refVars)==null||(T=T[Ne])==null?void 0:T.checkedBorder,handleChange:this.handleChange})]})})}),(0,t.jsx)(si,{title:"\u9009\u4E2D\u9879\u6587\u672C",data:{textV0:kt},hideFontFamily:!0,onChange:this.onChangeText("checkedTextV0"),supAttr:Ne+"-checkedTextV0",attrPanel:"checkedText",updateFamilyVersion:this.updateFamilyVersion,refVars:{textV0:(R=se.refVars)==null||(R=R[Ne])==null?void 0:R.checkedTextV0}})]})}}const Yl=m=>{let{children:y}=m;return(0,t.jsx)(t.Fragment,{children:y})};var Np=e(28681),Xl=e(28537);const Dp=m=>{let{maxNum:y,curPage:T,onChange:R,dispatch:q,selections:se,supAttr:ue,refVars:Ne}=m;const[Ge,at]=(0,Xl.Vc)(Np.Td,{defaultValue:!0}),dt=(0,Xl.qK)((qt,sn)=>{qt=parseInt(qt),qt<1&&(qt=1),R({value:qt,attr:"pagesNumber",dispatch:q,supAttr:ue,refVar:sn,selections:se}),qt<T&&R({value:qt,attr:"curPage",dispatch:q,supAttr:ue,refVar:Ne==null?void 0:Ne.curPage,selections:se})}),Bt=(0,Xl.qK)((qt,sn)=>{qt=parseInt(qt),qt<1&&(qt=1),qt>y&&(qt=y),R({value:qt,attr:"curPage",dispatch:q,supAttr:ue,refVar:sn,selections:se})}),kt=()=>{at(!Ge)};return(0,t.jsx)(rn.A,{collapse:!Ge,title:I18N.SettingPanel.numerValue,onChange:kt,children:(0,t.jsxs)(Fc,{children:[(0,t.jsxs)("div",{className:"line info height-32",children:[(0,t.jsx)("label",{className:"left-label page-number",children:I18N.SettingPanel.maxPageNum}),(0,t.jsx)(we.Yw,{type:"number",inputClassName:"page-input-number",refVar:Ne==null?void 0:Ne.pagesNumber,value:y,min:1,onConfirm:dt})]}),(0,t.jsxs)("div",{className:"line info height-32",children:[(0,t.jsx)("label",{className:"left-label page-number",children:I18N.SettingPanel.curPageNum}),(0,t.jsx)(we.Yw,{type:"number",inputClassName:"page-input-number",refVar:Ne==null?void 0:Ne.curPage,value:T,min:1,max:y,onConfirm:Bt})]})]})})},kp=(0,h.memo)(Dp),Uc={component:Lp,params:{paginationType:"default"},getter:[m=>{let{selectedItems:y,rootProject:T,hasMissFontHi:R,cloudFontLocalList:q}=m;return{hotAttr:y[0].hotAttr,rootProject:T,hasMissFontHi:R,cloudFontLocalList:q}}],setter:{onChange:gt.c}},Op={component:kp,params:{paginationType:"default"},getter:[m=>{let{selectedItems:y}=m;const T=y[0].hotAttr,R="paginationWeb"in T?T.paginationWeb:T.paginationMobile;return{maxNum:R.pagesNumber,curPage:R.curPage,refVars:(0,Wt.xj)(y,"paginationWeb"in T?"paginationWeb":"paginationMobile",["pagesNumber","curPage"])}}],setter:{onChange:gt.c}},Rp=()=>[Yl,[{...Uc,params:{paginationType:"mobile"}}]],Bp=()=>[Yl,[{...Uc,params:{paginationType:"web"}}]],Kc=m=>[Yl,[{...Op,params:{supAttr:m}}]];var pi=e(76199);const jp=s.Ay.section.withConfig({displayName:"styles__StyledDigitalStepperInfo",componentId:"sc-1v7m2wd-0"})(["width:240px;padding:0 16px;color:",";.stepperInfo{justify-content:flex-start;.left-label{flex:1;}.right-content{width:140px;display:flex;align-items:center;justify-content:flex-start;}.WorkspaceInputNumber{width:44px;&.font-size-input{width:66px;}&.stepperInfoText{width:66px;}}.dividing-line{margin:0 14px 0 2px;display:inline-block;width:10px;height:1px;background:",";}}"],m=>m.theme.color_text_L2,m=>m.theme.color_bg_border_01),zc="digital_stepper_number",Gc="mp_"+zc;class Wp extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)(Gc,!0,vt.qW.Boolean)}),(0,i.A)(this,"handleChange",(y,T,R)=>{const{onChange:q,dispatch:se,selections:ue}=this.props;q({value:y,attr:T,dispatch:se,supAttr:"digitalStepper",selections:ue,refVar:R})}),(0,i.A)(this,"handleIntChange",(y,T,R)=>{let q=parseInt(y)||0;if(["min","max"].includes(T)){const{number:se}=this.props,ue=parseInt(se)||0;(T==="min"&&q>ue||T==="max"&&q<ue)&&this.onDigitalStepperChange(q,"value")}else if(T==="value"){const{min:se,max:ue}=this.props;q<se&&(q=se),q>ue&&(q=ue)}this.onDigitalStepperChange(q,T,R)}),(0,i.A)(this,"onDigitalStepperChange",(y,T,R)=>{this.handleChange(y,T,R)}),(0,i.A)(this,"handleChangeFontSize",(y,T,R)=>{this.handleChange(parseInt(y),T,R)}),(0,i.A)(this,"handleSubChange",()=>{const{show:y}=this.state;(0,vt.a0)(Gc,!y,vt.qW.Boolean),this.setState({show:!y})})}render(){var y,T,R,q;const{min:se,max:ue,number:Ne,fontSize:Ge,color:at,dispatch:dt,refVars:Bt}=this.props,{show:kt}=this.state;return(0,t.jsx)(rn.A,{collapse:!kt,title:I18N.SettingPanel.inspector[zc],onChange:this.handleSubChange,children:(0,t.jsxs)(jp,{children:[(0,t.jsxs)("div",{className:"line stepperInfo height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.numericalRange}),(0,t.jsxs)("div",{className:"right-content",children:[(0,t.jsx)(we.Yw,{type:"number",refVar:Bt==null||(y=Bt.digitalStepper)==null?void 0:y.min,value:se,max:ue,min:-99999,onConfirm:(qt,sn)=>this.handleIntChange(qt,"min",sn)}),(0,t.jsx)("span",{className:"dividing-line"}),(0,t.jsx)(we.Yw,{type:"number",refVar:Bt==null||(T=Bt.digitalStepper)==null?void 0:T.max,value:ue,min:se,max:99999,onConfirm:(qt,sn)=>this.handleIntChange(qt,"max",sn)})]})]}),(0,t.jsxs)("div",{className:"line stepperInfo height-32",children:[(0,t.jsx)("label",{className:"left-label defaultValue",children:I18N.SettingPanel.defaultValue}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(we.Yw,{type:"number",inputClassName:"stepperInfoText",refVar:Bt==null||(R=Bt.digitalStepper)==null?void 0:R.value,value:Ne,max:ue,min:se,onConfirm:(qt,sn)=>this.handleIntChange(qt,"value",sn)})})]}),(0,t.jsxs)("div",{className:"line stepperInfo height-32",children:[(0,t.jsx)("label",{className:"left-label text_kbd",children:I18N.SettingPanel.font_size}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(pi.A,{disabled:!1,fontSize:Ge,checkMinFontSize:!0,refVar:Bt==null||(q=Bt.digitalStepper)==null?void 0:q.fontSize,handleChange:this.handleChangeFontSize,dispatch:dt})})]}),(0,t.jsxs)("div",{className:"line stepperInfo height-32",children:[(0,t.jsx)("label",{className:"left-label text_kbd",children:I18N.SettingPanel.font_color}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:"digitalStepper",attr:"textColor",color:at,onChange:this.handleChange})})]})]})})}}const Fp=m=>{let{children:y}=m;return(0,t.jsx)(t.Fragment,{children:y})},Vp={component:Wp,params:{},getter:[m=>{let{selectedItems:y}=m;const T=(0,it.i)(y,"digitalStepper"),{min:R,max:q,value:se,fontSize:ue,textColor:Ne}=T;return{min:R,max:q,number:se,fontSize:ue,color:Ne,refVars:{digitalStepper:(0,Wt.xj)(y,"digitalStepper",["min","max","value","fontSize"])}}}],setter:{onChange:gt.c}},Hp=()=>[Fp,[Vp,"DigitalStepperInfo"]],Up=m=>{const{thumbSize:y,thumbPosition:T,thumbShadow:R,thumbBorderRadius:q,thumbBorder:se,thumbBackgroundColor:ue,isThumbBackgroundVisible:Ne}=m;return{position:T,size:y,borderRadius:q,border:se,background:ue,isBackgroundVisible:Ne,shadow:R}},Kp=m=>{const{trackSize:y,trackBorderRadius:T,trackForegroundColor:R,isTrackForegroundVisible:q,trackBackgroundColor:se,isTrackBackgroundVisible:ue,trackShadow:Ne}=m;return{size:y,borderRadius:T,foreground:R,isForegroundVisible:q,background:se,isBackgroundVisible:ue,shadow:Ne}};var Zc=e(2371);const zp=(0,s.i7)(["from{opacity:1;}to{opacity:0.3;}"]),Gp=s.Ay.div.withConfig({displayName:"styles__StyledBorderRadius",componentId:"sc-ptmxyw-0"})(["display:flex;align-items:center;.radius-set-controller{display:flex;height:24px;margin-right:8px;position:relative;&.can-not-set-single{width:auto;}svg{color:",";}.set-seperately{display:inline-flex;width:24px;vertical-align:middle;justify-content:center;align-items:center;transition:all 0.2s ease-in-out;cursor:pointer;border-radius:4px;&.active{background-color:",";svg{path:first-child{fill:",";}path:nth-child(2){fill:",";}path:nth-child(3){fill:",";}path:nth-child(4){fill:",";}}}&:not(.active):hover{background-color:",";}&:active{background-color:",";}}.set-all{display:flex;width:24px;justify-content:space-around;align-items:center;cursor:pointer;transition:all 0.2s ease-in-out;border-radius:4px;&.active{background-color:",";}&:not(.active):hover{background-color:",";}&:active{background-color:",";}}.seperate-dropdown{position:relative;.expand-icon{position:absolute;right:6px;line-height:18px;color:#c8cdd0;svg{transform:rotate(180deg);transition:all 0.2s ease-out;}}&.is-open{.expand-icon{svg{transform:rotate(0);}}}}.radiusActiveIcon{position:absolute;width:5px;height:5px;display:none;path{fill:",";}&.tl{top:6px;left:30px;}&.tr{top:6px;right:5px;transform:rotate(90deg);}&.bl{left:30px;bottom:6px;transform:rotate(-90deg);}&.br{right:5px;bottom:6px;transform:rotate(180deg);}&.animated{display:inline-block;animation:"," 0.4s ease-in-out 0.2s 4 alternate;}}}.seperate-radius-input{.set-all-input{height:28px;}.seperate-set-area{display:flex;width:154px;.separate-input{height:28px;.title{padding-left:11px;}&:not(.is-active){border-color:",";}&.is-active{border-left:1px solid",";&:not(:first-child){border-left:1px solid ",";}}&:first-child{border-radius:4px 0 0 4px;&:hover{border-color:",";}}&:not(:first-child){border-radius:0;border-left:1px solid transparent;margin-left:-1px;&:hover{border-color:",";border-left:1px solid ",";}}&:last-child{border-radius:0 4px 4px 0;}}}}"],m=>m.theme.color_text_L1,m=>m.theme.color_btn_secondary_active,m=>m.activeRadius==="tl"?"transparent":m.theme.color_text_L1,m=>m.activeRadius==="tr"?"transparent":m.theme.color_text_L1,m=>m.activeRadius==="bl"?"transparent":m.theme.color_text_L1,m=>m.activeRadius==="br"?"transparent":m.theme.color_text_L1,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_btn_secondary_hover,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_proto,zp,m=>m.theme.color_bg_border_02,m=>m.theme.color_proto,m=>m.theme.color_proto,m=>m.theme.color_proto,m=>m.theme.color_proto,m=>m.theme.color_proto),Zp=["radiusTL","radiusTR","radiusBL","radiusBR"];class Yc extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{setAll:!0,activeRadius:""}),(0,i.A)(this,"setElementRef",y=>this.$element=y),(0,i.A)(this,"setRadiusActive",y=>this.$radiusActiveRef=y),(0,i.A)(this,"setSetAllFromProps",()=>{const{borderRadius:y}=this.props;this.setState({setAll:!(0,Zc.k4)(y)})}),(0,i.A)(this,"enableSetAll",()=>{var y;if(this.state.setAll)return;const{borderRadius:T,refVars:R}=this.props,{radiusTL:q}=T;this.setState({activeRadius:""}),this.handleSetAll(q,R==null||(y=R.borderRadius)==null?void 0:y.radiusTL)}),(0,i.A)(this,"enableSetSeparately",()=>{this.state.setAll&&this.handleSetSeparatelyForOnce(this.props.borderRadius)}),(0,i.A)(this,"handleSetAll",(y,T)=>{const{handleChange:R,attr:q}=this.props,se=parseInt(y)||0;if(!(0,Zc.k4)(this.props.borderRadius)){const{radiusTL:ue}=this.props.borderRadius;if(se===ue)return}R(se,q,T)}),(0,i.A)(this,"handleSetSeparately",(y,T,R)=>{const{handleChange:q,attr:se}=this.props,ue=parseInt(y)||0,{borderRadius:Ne,refVars:Ge}=this.props;if(ue===Ne[T])return;const{radiusTL:at,radiusTR:dt,radiusBR:Bt,radiusBL:kt}=Ne,qt={radiusTL:at,radiusTR:dt,radiusBR:Bt,radiusBL:kt,[T]:ue};let sn;typeof(Ge==null?void 0:Ge.borderRadius)!="object"?sn={}:sn={...Ge.borderRadius},q(qt,se,sn)}),(0,i.A)(this,"handleFocusSeparately",(y,T)=>{if(this.setState({activeRadius:T}),this.$radiusActiveRef){const R=this.$radiusActiveRef.querySelector(".radiusActiveIcon");R&&(R.classList.remove("animated"),window.requestAnimationFrame(()=>{R.classList.add("animated")}))}}),(0,i.A)(this,"handleSetSeparatelyForOnce",y=>{var T;const{handleChange:R,attr:q}=this.props,se={radiusTL:y,radiusTR:y,radiusBR:y,radiusBL:y},ue=(T=this.props.refVars)==null?void 0:T.borderRadius;R(se,q,typeof ue=="string"?{radiusTL:ue,radiusTR:ue,radiusBR:ue,radiusBL:ue}:void 0)}),(0,i.A)(this,"handleCancelActiveRadius",y=>{this.$element&&this.$element.contains(y.target)||this.setState({activeRadius:""})})}componentDidMount(){this.setSetAllFromProps()}componentDidUpdate(y){y.borderRadius!==this.props.borderRadius&&this.setSetAllFromProps()}render(){var y;const{canSetSingleRadius:T,borderRadius:R,className:q="",refVars:se}=this.props,{activeRadius:ue,setAll:Ne}=this.state;let Ge;typeof R!="number"?Ge=R:Ge={radiusTL:R,radiusTR:R,radiusBR:R,radiusBL:R};const at=(y=this.props.refVars)==null?void 0:y.borderRadius,dt=Ne?typeof at=="string"?at:void 0:typeof at=="object"?at:void 0;return(0,t.jsxs)(Gp,{className:q,activeRadius:ue,children:[(0,t.jsxs)("div",{className:p()("radius-set-controller",!T&&"can-not-set-single"),children:[(0,t.jsx)(Q.P,{iconClassName:p()("set-all",{active:Ne}),onClick:this.enableSetAll,name:"design/br_set_all",content:I18N.SettingPanel.radius,direction:"down",tagName:"SVGIcon"}),T&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Q.P,{iconClassName:p()("set-seperately",{active:!Ne}),onClick:this.enableSetSeparately,name:"design/br_set_separately",content:I18N.SettingPanel.uni_radius,direction:"down",tagName:"SVGIcon"}),(0,t.jsx)("div",{ref:this.setRadiusActive,children:(0,t.jsx)(x.C,{name:"design/settingPanel/radius/active",className:p()("radiusActiveIcon",ue)})})]})]}),(0,t.jsx)("div",{className:"seperate-radius-input",children:Ne?(0,t.jsx)(we.Yw,{type:"number",inputClassName:"set-all-input width-66",min:0,max:9999,value:typeof R=="object"?R.radiusTL:R,refVar:dt,disabled:!Ne,onConfirm:this.handleSetAll}):(0,t.jsxs)("div",{className:"seperate-set-area",ref:this.setElementRef,children:[Zp.map(Bt=>(0,t.jsx)(we.Yw,{attr:Bt,type:"number",className:"seperate-input",min:0,max:9999,refVar:dt==null?void 0:dt[Bt],value:Ge[Bt],onFocus:this.handleFocusSeparately,onConfirm:this.handleSetSeparately},Bt)),ue&&(0,t.jsx)($e.A,{target:document,onClick:this.handleCancelActiveRadius})]})})]})}}const U0=s.Ay.section.withConfig({displayName:"style__StyledSliderTrackSettings",componentId:"sc-mx1b6z-0"})(["width:240px;padding:0 14px;color:",";.line{display:flex;}"],m=>m.theme.color_text_L2),Xc=s.Ay.section.withConfig({displayName:"style__StyledSliderSettings",componentId:"sc-mx1b6z-1"})(["width:240px;padding:0 14px;color:",";.appearance-line{display:flex;align-items:center;color:",";.left-label{height:14px;color:",";line-height:14px;white-space:nowrap;}}.slider-setting-line{display:flex;align-items:center;.label-with-margin{flex-shrink:0;margin-right:14px;&:lang(en){width:68px;margin-right:0;}}&.slider-position{[type=slider]{width:92px;margin:0 8px;.rail{.fill{background-color:#1684fc;}}}.input-number{width:52px;}}&.size-setting{.input-number{width:64px;}}}"],m=>m.theme.color_text_L2,m=>m.theme.color_text_L2,m=>m.theme.color_text_L2),Yp=[8,16,24,32,40,48,56,64,72,80].map(m=>({label:m,value:m})),$c="slider_thumb_settings",Qc="mp_"+$c;class Xp extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)(Qc,!0,vt.qW.Boolean)}),(0,i.A)(this,"handleSliderThumbAttrChange",(y,T,R)=>{const{onChange:q}=this.props;q({value:y,attr:T,refVar:R})}),(0,i.A)(this,"handleSliderThumbAttrConfirm",(y,T)=>{this.handleSliderThumbAttrChange(y,T),sdkStore.combineMerge(T+"-update")}),(0,i.A)(this,"handleThumbPositionChange",(y,T)=>{y=parseInt(y),y>100&&(y=100),y<0&&(y=0);const{onChange:R}=this.props;R({value:y,attr:"thumbPosition",refVar:T})}),(0,i.A)(this,"handleThumbSizeChange",(y,T)=>{y=parseInt(y),y>80&&(y=80),y<2&&(y=2);const{onChange:R}=this.props;R({value:y,attr:"thumbSize",refVar:T})}),(0,i.A)(this,"handleSliderThumbAttrMouseDown",y=>sdkStore.combineMergeMark(y+"-update")),(0,i.A)(this,"handleSubChange",()=>{const{show:y}=this.state;(0,vt.a0)(Qc,!y,vt.qW.Boolean),this.setState({show:!y})})}render(){const{position:y,size:T,borderRadius:R,background:q,isBackgroundVisible:se,border:ue,shadow:Ne,refVars:Ge}=this.props,{show:at}=this.state;return(0,t.jsx)(rn.A,{collapse:!at,title:I18N.SettingPanel.inspector[$c],onChange:this.handleSubChange,children:(0,t.jsxs)(Xc,{children:[(0,t.jsxs)("div",{className:"slider-setting-line slider-position height-32",children:[(0,t.jsx)("label",{style:{flexShrink:0},children:I18N.SettingPanel.thumb_position}),(0,t.jsx)(Oe.A,{attr:"thumbPosition",className:"slider-thumb-position-setting",value:y,max:100,min:0,onChange:this.handleSliderThumbAttrChange,onConfirm:this.handleSliderThumbAttrConfirm,onMouseDown:this.handleSliderThumbAttrMouseDown}),(0,t.jsx)(we.Yw,{type:"number",inputClassName:"input-number",attr:"thumbPosition",refVar:Ge==null?void 0:Ge.thumbPosition,value:y,min:0,max:100,suffix:"%",onConfirm:this.handleThumbPositionChange})]}),(0,t.jsxs)("div",{className:"slider-setting-line size-setting height-32",children:[(0,t.jsx)("label",{className:"label-with-margin",children:I18N.SettingPanel.thumb_size}),(0,t.jsx)(we.Yw,{type:"number",value:T,attr:"thumbSize",refVar:Ge==null?void 0:Ge.thumbSize,min:2,max:80,optionList:Yp,onConfirm:this.handleThumbSizeChange})]}),(0,t.jsx)("div",{className:"slider-setting-line height-32",children:(0,t.jsx)(Yc,{attr:"thumbBorderRadius",canSetSingleRadius:!1,borderRadius:R,refVars:{borderRadius:Ge==null?void 0:Ge.thumbBorderRadius},handleChange:this.handleSliderThumbAttrChange})}),(0,t.jsxs)("div",{className:"slider-setting-line margin-left-n6 height-32",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(St.A,{mode:"input",className:St.p,attr:"isThumbBackgroundVisible",isChecked:se,onChange:this.handleSliderThumbAttrChange}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.fill})]}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:"slider",attr:"thumbBackgroundColor",attrPanel:"thumb",color:q,onChange:this.handleSliderThumbAttrChange})]}),(0,t.jsx)(sr,{className:"slider-setting-line height-32",attrPanel:"thumb",border:ue,canBorderWidth:!0,canBorderStyle:!0,handleChange:this.handleSliderThumbAttrChange,supAttr:"slider-thumbBorder",colorButtonAttr:"bdrColor",borderAttr:"thumbBorder",refVars:Ge==null?void 0:Ge.thumbBorder}),(0,t.jsx)(Kl,{className:"margin-left-n6",shadow:Ne,handleChange:this.handleSliderThumbAttrChange,apattr:"thumbShadow",supAttr:"slider-thumbShadow",refVars:Ge==null?void 0:Ge.thumbShadow})]})})}}const $p=[2,4,6,8,10,12,14,16,18,20].map(m=>({label:m,value:m})),Jc="slider_track_settings",qc="mp_"+Jc;class Qp extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)(qc,!0,vt.qW.Boolean)}),(0,i.A)(this,"handleSliderTrackAttrChange",(y,T,R)=>{const{onChange:q}=this.props;q({value:y,attr:T,refVar:R})}),(0,i.A)(this,"handleTrackSizeChange",(y,T)=>{const{onChange:R}=this.props;y=parseInt(y),y<2&&(y=2),y>20&&(y=20),R({value:y,attr:"trackSize",refVar:T})}),(0,i.A)(this,"handleSubChange",()=>{const{show:y}=this.state;(0,vt.a0)(qc,!y,vt.qW.Boolean),this.setState({show:!y})})}render(){const{size:y,borderRadius:T,background:R,isBackgroundVisible:q,isForegroundVisible:se,foreground:ue,shadow:Ne,refVars:Ge}=this.props,{show:at}=this.state;return(0,t.jsx)(rn.A,{collapse:!at,title:I18N.SettingPanel.inspector[Jc],onChange:this.handleSubChange,children:(0,t.jsxs)(Xc,{children:[(0,t.jsx)("div",{className:"slider-setting-line height-32",children:(0,t.jsx)(Yc,{attr:"trackBorderRadius",canSetSingleRadius:!1,borderRadius:T,handleChange:this.handleSliderTrackAttrChange,refVars:{borderRadius:Ge==null?void 0:Ge.trackBorderRadius}})}),(0,t.jsxs)("div",{className:"slider-setting-line size-setting height-32",children:[(0,t.jsx)("label",{className:"label-with-margin",children:I18N.SettingPanel.track_size}),(0,t.jsx)(we.Yw,{type:"number",value:y,attr:"trackSize",refVar:Ge==null?void 0:Ge.trackSize,onConfirm:this.handleTrackSizeChange,min:2,max:20,optionList:$p})]}),(0,t.jsxs)("div",{className:"slider-setting-line margin-left-n6 height-32",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(St.A,{className:St.p,attr:"isTrackBackgroundVisible",isChecked:q,onChange:this.handleSliderTrackAttrChange}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.track_background_color})]}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:"slider",attr:"trackBackgroundColor",attrPanel:"track",color:R,onChange:this.handleSliderTrackAttrChange})]}),(0,t.jsxs)("div",{className:"slider-setting-line margin-left-n6 height-32",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(St.A,{className:St.p,attr:"isTrackForegroundVisible",isChecked:se,onChange:this.handleSliderTrackAttrChange}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.track_foreground_color})]}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,attr:"trackForegroundColor",supAttr:"slider",attrPanel:"track",color:ue,onChange:this.handleSliderTrackAttrChange})]}),(0,t.jsx)(Kl,{className:"slider-setting-line shadow-line margin-left-n6",shadow:Ne,apattr:"trackShadow",supAttr:"slider-trackShadow",refVars:Ge==null?void 0:Ge.trackShadow,handleChange:this.handleSliderTrackAttrChange})]})})}}const Jp=m=>{let{track:y,thumb:T,selections:R,refVars:q,dispatch:se,onChange:ue}=m;const Ne=Ge=>{let{value:at,attr:dt,refVar:Bt}=Ge;ue({value:at,attr:dt,selections:R,refVar:Bt,dispatch:se})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Qp,{...y,refVars:q,onChange:Ne}),(0,t.jsx)(Xp,{...T,refVars:q,onChange:Ne})]})},qp=m=>{let{children:y}=m;return(0,t.jsx)(t.Fragment,{children:y})},eh={component:Jp,params:{},getter:[m=>{let{selectedItems:y}=m;const T=y[0].hotAttr;return{thumb:Up(T.slider),track:Kp(T.slider),refVars:(0,Wt.xj)(y,"slider",["thumbBorderRadius","thumbSize","trackBorderRadius","trackSize","thumbPosition","thumbBorder","thumbShadow","trackShadow"])}}],setter:{onChange:m=>(0,gt.c)({...m,supAttr:"slider"})}},th=()=>[qp,[eh]],nh=s.Ay.section.withConfig({displayName:"styles__StyledTabBarSelected",componentId:"sc-osxqby-0"})(["padding:0 10px 0 16px;color:",";.slider-setting-line{display:flex;align-items:center;}"],m=>m.theme.color_text_L2),ed="tab_bars_selected",td="mp_"+ed;class oh extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)(td,!0,vt.qW.Boolean)}),(0,i.A)(this,"handleChange",(y,T)=>{const{onChange:R,dispatch:q,selections:se}=this.props;R({value:y,attr:T,dispatch:q,supAttr:"mobileTabBars",selections:se})}),(0,i.A)(this,"handleCheckOnchange",(y,T)=>{this.handleChange(y,T)}),(0,i.A)(this,"handleSubChange",()=>{const{show:y}=this.state;(0,vt.a0)(td,!y,vt.qW.Boolean),this.setState({show:!y})})}render(){const{show:y}=this.state,{selectedTextColor:T,selectedIconColor:R,isShowSelectedText:q,isShowSelectedIcon:se}=this.props;return(0,t.jsx)(rn.A,{collapse:!y,title:I18N.SettingPanel.inspector[ed],onChange:this.handleSubChange,children:(0,t.jsxs)(nh,{children:[(0,t.jsxs)("div",{className:"slider-setting-line margin-left-n6 height-32",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(St.A,{className:St.p,attr:"isShowSelectedText",isChecked:q,onChange:this.handleCheckOnchange}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.mobile_tabs_text_color})]}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:"mobileTabBars",attr:"checkedTextColor",color:T,onChange:this.handleChange})]}),(0,t.jsxs)("div",{className:"slider-setting-line margin-left-n6 height-32",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(St.A,{className:St.p,attr:"isShowSelectedIcon",isChecked:se,onChange:this.handleCheckOnchange}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.mobile_tabs_icon_color})]}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:"mobileTabBars",attr:"checkedIconColor",color:R,onChange:this.handleChange})]})]})})}}const sh=m=>{let{children:y}=m;return(0,t.jsx)(t.Fragment,{children:y})},ih={component:oh,params:{isShowAccordionMode:!0},getter:[m=>{let{selectedItems:y}=m;const{checkedTextColor:T,checkedIconColor:R,isShowSelectedText:q,isShowSelectedIcon:se}=(0,it.i)(y,"mobileTabBars");return{selectedTextColor:T,selectedIconColor:R,isShowSelectedText:q,isShowSelectedIcon:se}}],setter:{onChange:gt.c}},ah=()=>[sh,[ih,"MobileTabBarsInfo"]];var $l=e(25067);const rh=s.Ay.section.withConfig({displayName:"styles__StyledSelectionControlTypeSetting",componentId:"sc-lft5f0-0"})(["padding:0 14px;display:flex;align-items:center;ul{display:flex;align-items:center;li{display:inline-block;width:24px;height:24px;border-radius:4px;&:first-child{margin-right:4px;}a{width:24px;height:24px;svg{width:24px;height:24px;color:",";}&.active{background-color:",";}&:not(.active):hover{background-color:"," !important;}}}}"],m=>m.theme.color_text_L1,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_btn_secondary_hover);var ir=function(m){return m.Radio="radio",m.Checkbox="checkbox",m}(ir||{});const lh=m=>{let{typeSelected:y,optionData:T,onChange:R,dispatch:q,selections:se}=m;const ue=function(Ge,at,dt){dt===void 0&&(dt="selectionControl"),R({value:Ge,attr:at,dispatch:q,supAttr:dt,selections:se})},Ne=Ge=>{if(Ge!==y&&(ue(Ge,"type"),Ge===ir.Radio)){let at=!1;const dt=di()(T).map(Bt=>at?{...Bt,data:{...Bt.data,selected:!1}}:(Bt.data.selected&&(at=!0),Bt));ue(dt,"optionData",null)}};return(0,t.jsx)(rh,{className:"height-32",children:(0,t.jsx)("ul",{children:Object.keys(ir).map(Ge=>{const at=ir[Ge],dt=at===y;return(0,t.jsx)("li",{children:(0,t.jsx)($l.A,{active:dt,svgIconName:"setting_panel/selection_control/"+at,onClick:()=>Ne(at)})},at)})})})},nd="selection_control_type_panel",od="mp_"+nd,ch=m=>{let{children:y}=m;const[T,R]=(0,h.useState)((0,vt.Yt)(od,!0,vt.qW.Boolean)),q=()=>{(0,vt.a0)(od,!T,vt.qW.Boolean),R(!T)};return(0,t.jsx)(rn.A,{collapse:!T,title:I18N.SettingPanel.inspector[nd],onChange:q,children:y})},dh={component:lh,params:{},getter:[m=>{let{selectedItems:y}=m;return{typeSelected:(0,it.i)(y,"selectionControl").type,optionData:(0,it.i)(y,"optionData")}}],setter:{onChange:gt.c}},ph=()=>[ch,[dh]],hh=s.Ay.section.withConfig({displayName:"styles__StyledSelectionControlAttrSettings",componentId:"sc-e7k6mf-0"})(["border-top:1px solid ",";padding:8px 16px 8px 16px;.line{display:flex;align-items:center;.left-label{white-space:nowrap;}.right-content{width:140px;}&.selection-control-disabled-setting{.right-content{padding-left:7px;position:relative;.is-icon-button{position:absolute;left:-14px;top:-4px;}}&:hover .icon-bind{display:block;}}}.selection-control-style{justify-content:flex-start;ul{display:inline-flex;transform:translateX(-3px);flex:1;li{display:inline-flex;width:24px;height:24px;border-radius:4px;&:first-child{margin-right:4px;}a{width:24px;height:24px;svg{width:24px;height:24px;color:",";}&.active{background-color:",";}&:not(.active):hover{background-color:"," !important;}}}}.gap-input{width:66px;span.title{padding-left:0;}svg.gap-icon{width:24px;height:24px;}}}"],m=>m.theme.color_bg_border_01,m=>m.theme.color_text_L2,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_btn_secondary_hover);var Ql=function(m){return m.Row="row",m.Column="column",m}(Ql||{});const uh=m=>{let{disabled:y,fontSize:T,layoutSelected:R,gap:q,w:se,h:ue,selections:Ne,refVars:Ge,onChange:at,dispatch:dt}=m;const Bt=(kt,qt,sn)=>{if(qt==="fontSize"){const jn=kt/T,Dn=Math.round(q*jn),lo=Math.round(se*jn),Wo=Math.round(ue*jn);at({value:Dn,attr:"gap",dispatch:dt,supAttr:"selectionControl",selections:Ne}),at({value:lo,attr:"w",dispatch:dt,selections:Ne}),at({value:Wo,attr:"h",dispatch:dt,selections:Ne})}at({value:kt,attr:qt,dispatch:dt,supAttr:"selectionControl",selections:Ne,refVar:sn})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"selection-control-disabled-setting line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.switch_disabled}),(0,t.jsxs)("div",{className:"right-content",children:[(0,t.jsx)(we.Yw,{type:"boolean",refVar:Ge==null?void 0:Ge.isDisabled,value:y,isIconButton:!(Ge!=null&&Ge.isDisabled),showName:!0,onChange:(kt,qt)=>Bt(kt,"isDisabled",qt)}),!(Ge!=null&&Ge.isDisabled)&&(0,t.jsx)(fi.A,{size:"small",isIOS:!0,isChecked:y,onChange:kt=>Bt(kt,"isDisabled")})]})]}),(0,t.jsxs)("div",{className:"selection-control-size-setting line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.design.size}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(pi.A,{attr:"fontSize",fontSize:T,handleChange:Bt,refVar:Ge==null?void 0:Ge.fontSize,dispatch:dt})})]}),(0,t.jsxs)("div",{className:"selection-control-style line height-32",children:[(0,t.jsx)("ul",{children:Object.keys(Ql).map(kt=>{const qt=Ql[kt],sn=qt===R;return(0,t.jsx)("li",{children:(0,t.jsx)(_.Q,{icon:(0,t.jsx)($l.A,{active:sn,svgIconName:"setting_panel/selection_control/"+qt}),content:I18N.SettingPanel.inspector["selection_control_"+qt],onClick:()=>Bt(qt,"layout"),direction:"down"})},qt)})}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(we.Yw,{type:"number",refVar:Ge==null?void 0:Ge.gap,value:q,inputClassName:"gap-input step-input-width-72",title:(0,t.jsx)(x.C,{name:"setting_panel/smart_selection/col_gap",className:"gap-icon"}),min:2,max:9999,onConfirm:(kt,qt)=>Bt(kt,"gap",qt)})})]})]})},gh=m=>{let{children:y}=m;return(0,t.jsx)(hh,{children:y})},mh={component:uh,params:{},getter:[m=>{let{selectedItems:y}=m;const T=(0,it.i)(y,"selectionControl"),R=(0,it.i)(y,"w"),q=(0,it.i)(y,"h");return{fontSize:T.fontSize,layoutSelected:T.layout,gap:T.gap,disabled:T.isDisabled,w:R,h:q,refVars:(0,Wt.xj)(y,"selectionControl",["isDisabled","fontSize","gap"])}}],setter:{onChange:gt.c}},fh=()=>[gh,[mh]],xh=s.Ay.section.withConfig({displayName:"styles__StyledSelectionControlColorSettings",componentId:"sc-m436s5-0"})(["padding:0 16px;.line{justify-content:flex-start;}label.right-content{color:",";}"],m=>m.theme.color_text_L2),sd=m=>{let{collapseName:y,buttonColorAttr:T,buttonColor:R,fontColorAttr:q,fontColor:se,handleChange:ue,isBorderVisible:Ne,isTextVisible:Ge,buttonIsVisibleAttr:at,fontIsVisibleAttr:dt,dispatch:Bt}=m;const[kt,qt]=(0,h.useState)((0,vt.Yt)("mp_"+y,!0,vt.qW.Boolean)),sn=()=>{(0,vt.a0)("mp_"+y,!kt,vt.qW.Boolean),qt(!kt)};return(0,t.jsx)(rn.A,{collapse:!kt,title:I18N.SettingPanel.inspector[y],onChange:sn,children:(0,t.jsxs)(xh,{children:[(0,t.jsxs)("div",{className:"line height-32 margin-left-n6",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(St.A,{className:St.p,attr:at,isChecked:Ne,onChange:ue}),(0,t.jsx)("label",{className:"right-content",children:I18N.SettingPanel.inspector.digital_stepper_button})]}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,attr:T,supAttr:"selectionControl",color:R,onChange:ue})]}),(0,t.jsxs)("div",{className:"line height-32 margin-left-n6",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(St.A,{className:St.p,attr:dt,isChecked:Ge,onChange:ue}),(0,t.jsx)("label",{className:"right-content",children:I18N.SettingPanel.inspector.text_color})]}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,attr:q,supAttr:"selectionControl",color:se,onChange:ue})]})]})})},yh=m=>{let{borderColor:y,textColor:T,checkedBorderColor:R,checkedTextColor:q,isCheckedTextVisible:se,isCheckedBorderVisible:ue,isBorderVisible:Ne,isTextVisible:Ge,selections:at,dispatch:dt,onChange:Bt}=m;const kt=(qt,sn)=>{Bt({value:qt,attr:sn,dispatch:dt,supAttr:"selectionControl",selections:at})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(sd,{buttonColorAttr:"borderColor",buttonColor:y,isBorderVisible:Ne,fontColorAttr:"textColor",fontColor:T,buttonIsVisibleAttr:"isBorderVisible",fontIsVisibleAttr:"isTextVisible",isTextVisible:Ge,collapseName:"selection_control_unchecked_style_panel",dispatch:dt,handleChange:kt}),(0,t.jsx)(sd,{dispatch:dt,handleChange:kt,buttonColorAttr:"checkedBorderColor",buttonColor:R,isBorderVisible:ue,fontColorAttr:"checkedTextColor",fontColor:q,buttonIsVisibleAttr:"isCheckedBorderVisible",fontIsVisibleAttr:"isCheckedTextVisible",isTextVisible:se,collapseName:"selection_control_checked_style_panel"})]})},vh=m=>{let{children:y}=m;return(0,t.jsx)(t.Fragment,{children:y})},bh={component:yh,params:{},getter:[m=>{let{selectedItems:y}=m;const{checkedTextColor:T,checkedBorderColor:R,borderColor:q,textColor:se,isCheckedTextVisible:ue,isCheckedBorderVisible:Ne,isBorderVisible:Ge,isTextVisible:at}=(0,it.i)(y,"selectionControl");return{checkedTextColor:T,checkedBorderColor:R,borderColor:q,textColor:se,isCheckedTextVisible:ue,isCheckedBorderVisible:Ne,isBorderVisible:Ge,isTextVisible:at}}],setter:{onChange:gt.c}},Ch=()=>[vh,[bh,"SelectionControlColorSettingsInfo"]];var Mn=e(18390);const Bi=[{name:"bar_chart",type:"bar_chart"},{name:"horizontal_bar_chart",type:"horizontal_bar_chart"},{name:"line_chart",type:"line_chart"},{name:"line_area_chart",type:"line_area_chart"},{name:"mixed_bar_line_chart",type:"mixed_bar_line_chart"},{name:"radar_chart",type:"radar_chart"},{name:"radial_polar_chart",type:"radial_polar_chart"}],Jl=[{name:"pie_chart",type:"pie_chart"},{name:"ring_chart",type:"ring_chart"},{name:"nightingale_chart",type:"nightingale_chart"}],Sh={bar_chart:Bi,horizontal_bar_chart:Bi,line_chart:Bi,line_area_chart:Bi,pie_chart:Jl,ring_chart:Jl,radar_chart:Bi,mixed_bar_line_chart:Bi,radial_polar_chart:Bi,nightingale_chart:Jl},va=[{name:"normal",type:"normal"},{name:"group",type:"group"},{name:"acc",type:"acc"},{name:"accPer",type:"accPer"}],_h={bar_chart:va,horizontal_bar_chart:va,line_chart:va,line_area_chart:va,pie_chart:[],ring_chart:[],radar_chart:[],mixed_bar_line_chart:[],radial_polar_chart:va,nightingale_chart:[]},wh=["progress_chart","waterfall_chart","scatter_chart","funnel_chart","gauge_chart","liquid_fill_gauge_chart","map_chart","bubble_chart","sunburst_chart","word_cloud_chart","sankey_chart","boxplot_chart"],Ih=[Mn.N.pie_chart,Mn.N.ring_chart,Mn.N.progress_chart,Mn.N.nightingale_chart,Mn.N.gauge_chart,Mn.N.scatter_chart,Mn.N.bubble_chart,Mn.N.sunburst_chart,Mn.N.boxplot_chart,Mn.N.mixed_bar_line_chart,Mn.N.waterfall_chart,Mn.N.bar_chart,Mn.N.horizontal_bar_chart],Th=[Mn.N.progress_chart,Mn.N.waterfall_chart,Mn.N.gauge_chart,Mn.N.map_chart,Mn.N.boxplot_chart],Ah=[Mn.N.scatter_chart,Mn.N.bubble_chart,Mn.N.sunburst_chart,Mn.N.boxplot_chart,Mn.N.sankey_chart],Ph=s.Ay.section.withConfig({displayName:"styles__StyledTypeSetting",componentId:"sc-c9lkva-0"})(["&.chartTypeSettings{padding:0 !important;ul.typeList{display:flex;align-items:center;height:32px;&.subTypeList{height:72px;}.chartTypeItem{width:24px;height:24px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:4px;margin-right:6px;color:",";svg{width:14px;height:14px;}&.nightingale_chart{svg{width:24px;height:24px;}}&:hover{background-color:",";}&.chartType{&.active{background-color:",";}}&.disabled{cursor:not-allowed;.svg-icon{color:",";}}}li.chartCategory{display:flex;flex-direction:column;align-items:center;margin-right:10px;span{color:",";&:lang(en){font-size:11px;}}.chartCategoryItem{width:44px;height:36px;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:4px;margin-bottom:4px;svg{width:28px;height:28px;path,rect{fill:#1684fc;}.axis{fill:#5b6b73;}.category{fill:#84bfff;}}&.lineItem{svg{path,rect{fill:none;stroke:#1684fc;}.axis{fill:#5b6b73;stroke:none;}.category{fill:none;stroke:#84bfff;}}}&:hover{background-color:",";}&.active{background-color:",";}}}}.dividing-line{margin:8px 0;border-top:1px solid ",";}}"],m=>m.theme.color_text_L1,m=>m.theme.color_btn_secondary_hover,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_text_L3,m=>m.theme.color_text_L2,m=>m.theme.color_btn_secondary_hover,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_bg_border_01),id="chart_settings_type",ad="mp_"+id;class Mh extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)(ad,!0,vt.qW.Boolean)}),(0,i.A)(this,"handleChangeType",y=>{const{handleChange:T,chartData:R,handleChangeHasSupAttr:q}=this.props;if(!(y===Mn.N.mixed_bar_line_chart&&R.series.length<2)&&(T(y,"chartType"),y===Mn.N.mixed_bar_line_chart)){T("group","chartCategory");const ue=R.series.map((Ne,Ge)=>Ne.type?Ne:{...Ne,type:Ge===R.series.length-1?"line":"bar"});q(ue,"series","chartData")}}),(0,i.A)(this,"handleChangeCategory",y=>{const{handleChange:T}=this.props;T(y,"chartCategory")}),(0,i.A)(this,"handleSubChange",()=>{const{show:y}=this.state;(0,vt.a0)(ad,!y,vt.qW.Boolean),this.setState({show:!y})})}render(){const{type:y,category:T,chartData:R}=this.props,{show:q}=this.state,se=Sh[y],ue=_h[y];return(0,t.jsx)(rn.A,{collapse:!q,title:I18N.SettingPanel.inspector[id],onChange:this.handleSubChange,children:(0,t.jsxs)(Ph,{type:"panel-body",className:"chartTypeSettings",children:[se.length>0&&(0,t.jsx)("ul",{className:"typeList",children:se.map((Ne,Ge)=>{const at=Ne.type==="mixed_bar_line_chart"&&R.series.length<2;return(0,t.jsx)(_.Q,{icon:(0,t.jsx)(x.C,{name:"design/settingPanel/chart/type/"+Ne.name}),onClick:()=>!at&&this.handleChangeType(Ne.type),content:at?Eh():I18N.w[Ne.name],direction:"down",className:p()("chartType chartTypeItem",Ne.name,Ne.type===y&&"active",{disabled:at})},Ge)})}),ue.length>0&&(0,t.jsxs)(t.Fragment,{children:[(se==null?void 0:se.length)>0&&(0,t.jsx)("div",{className:"dividing-line"}),(0,t.jsx)("ul",{className:p()("typeList","subTypeList"),children:ue.map((Ne,Ge)=>(0,t.jsxs)("li",{className:"chartCategory",children:[(0,t.jsx)("div",{className:p()("chartCategoryItem",Ne.type===T&&"active",y===Mn.N.line_chart&&"lineItem"),onClick:()=>this.handleChangeCategory(Ne.type),children:(0,t.jsx)(x.C,{name:"design/settingPanel/chart/type/"+y+"/subType/"+Ge})}),(0,t.jsx)("span",{children:I18N.SettingPanel.chartInfo.type[Ne.name]})]},Ge))})]})]})})}}const Eh=()=>(0,t.jsx)("span",{children:"\u7EC4\u5408\u56FE\u8868\u81F3\u5C11\u9700\u8981\u4E24\u4E2A\u6570\u636E\u7CFB\u5217"});var Lh=e(79186),ar=e(68033);const Nh=s.Ay.section.withConfig({displayName:"styles__StyledThemeSetting",componentId:"sc-1iy2i8y-0"})(["height:44px;display:flex;align-items:center;label.chartSelect{width:100%;height:28px;background-color:",";border:1px solid ",";border-radius:4px;&.is-open:not(.unstyled){background-color:",";border-color:",";box-shadow:none;}&:not(.unstyled):hover{border-color:"," !important;}button span.Ellipsis{display:flex;align-items:center;justify-content:center;width:100%;height:100%;ul.chartThemeWrap{width:100%;height:100%;display:flex;align-items:center;li{width:16px;height:16px;margin-right:4px;border-radius:1px;}}}.caret{margin:0;flex-shrink:0;width:26px;display:flex;justify-content:center;align-items:center;padding:0;color:",";svg{width:26px;height:26px;transform:rotate(0deg);}}&:not(.is-disabled):not(.readonly):hover{border-color:",";button{width:calc(100% - 26px);}.caret{padding:0;color:",";}}&.is-open{border-color:transparent;}}"],m=>m.theme.color_bg_white,m=>m.theme.color_bg_border_02,m=>m.theme.color_bg_white,m=>m.theme.color_bg_border_02,m=>m.theme.color_bg_border_02,m=>m.theme.color_text_L3,m=>m.theme.color_bg_border_02,m=>m.theme.color_text_L1),Dh=(0,s.DU)([".chartSelectMenu{display:grid;grid-template-columns:repeat(auto-fill,36px);;grid-row-gap:8px;grid-column-gap:15px;border-radius:4px;padding:8px;margin:0;overflow:hidden;background-color:",";width:150px;grid-template-columns:repeat(auto-fill,40px);grid-gap:6px 10px;li.SelectOption{width:40px;height:28px;border-radius:4px;border:1px solid transparent;overflow:hidden;padding:1px;background-color:",";&:not(.is-active):hover{background-color:"," !important;border-color:rgba(22,132,252,0.5);}&.is-active{background-color:"," !important;border-color:#1684FC;}span,ul.chartThemeWrap{overflow:hidden;display:flex;flex-wrap:wrap;width:36px;height:24px;padding:0 !important;align-items:center;justify-content:center;border-radius:2px;li{width:12px;height:12px;list-style:none;}}}}"],m=>m.theme.color_background_white_modal,m=>m.theme.color_bg_white,m=>m.theme.color_bg_white,m=>m.theme.color_bg_white),rd="chart_settings_theme",ld="mp_"+rd;class kh extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)(ld,!0,vt.qW.Boolean)}),(0,i.A)(this,"handleChangeTheme",y=>{const{handleChange:T}=this.props;T(+y,"chartTheme")}),(0,i.A)(this,"handleSubChange",()=>{const{show:y}=this.state;(0,vt.a0)(ld,!y,vt.qW.Boolean),this.setState({show:!y})})}render(){const{theme:y}=this.props,{show:T}=this.state;return(0,t.jsx)(rn.A,{collapse:!T,title:I18N.SettingPanel.inspector[rd],onChange:this.handleSubChange,children:(0,t.jsxs)(Nh,{className:"themeTypeSettings",children:[(0,t.jsx)(Dh,{}),(0,t.jsx)(Lh.Ay,{className:"chartSelect",menuClassName:"chartSelectMenu",value:""+y,arrowSvg:(0,t.jsx)(x.C,{className:"triangle-icon",name:"common/expand@26"}),optionList:ar.B5.map((R,q)=>({label:(0,t.jsx)("ul",{className:"chartThemeWrap",children:R.map(se=>(0,t.jsx)("li",{style:{backgroundColor:se}},se))},q),value:""+q})),onChange:this.handleChangeTheme,onMouseEnter:this.handleChangeTheme})]})})}}var Oh=e(63986),Rh=e.n(Oh);const Bh=s.Ay.section.withConfig({displayName:"styles__StyledOptionSetting",componentId:"sc-1dgtit4-0"})([".gridOption{.border-collapse-body{margin-left:60px;.WorkspaceInputNumber{flex:0 0 66px;}.border-select-size-warp{.border-select-size{width:70px;}}.color-btn-has-box{margin-left:auto;justify-content:flex-end;}}}.appearance-line{display:flex;align-items:center;&.border-open{min-height:auto;}.left-label{margin-left:4px;color:",";flex:1;}&.chartOption{align-items:center;.chartInput{width:111px;min-width:74px;border-radius:4px;height:28px;padding-left:6px;color:",";border:1px solid ",";text-overflow:ellipsis;opacity:0;pointer-events:none;&.has-value:not(:focus){border:1px solid transparent;&:hover{border:1px solid ",";}}&.show{opacity:1;pointer-events:auto;}&.hasPadding{padding-left:32px;}&:focus{border:1px solid ",";outline:1px solid ",";outline-offset:-2px;}}}}.legendOption,.AxisOption,.label-option{.border-collapse-body{.color-btn-has-hex-input{margin-left:20px;}label.name{line-height:22px;width:auto;color:",";white-space:nowrap;}}}.legendOption{.border-collapse-body{.legendPos.radio-line{height:24px;flex:1;display:flex;justify-content:flex-end;padding-right:16px;.radio-option{width:24px;height:24px;border-radius:4px;max-width:24px;&:not(.active){color:",";}}}}}.AxisOption{.border-collapse-body{.right-content{width:111px;}label.WorkspaceInputNumber{&.width-66{width:66px;}&.font-size-input{width:66px;}}}}"],m=>m.theme.color_text_L2,m=>m.theme.color_text_L1,m=>m.theme.color_bg_border_02,m=>m.theme.color_bg_border_02,m=>m.theme.color_proto,m=>m.theme.color_proto,m=>m.theme.color_text_L2,m=>m.theme.color_text_L1),rr=(0,s.Ay)(Rc.Y).withConfig({displayName:"styles__StylesBorderOpener",componentId:"sc-1dgtit4-1"})([".border-collapse-body{justify-content:space-between;margin-left:22px;height:0;}&.gridOption{width:calc(100% + 6px);.appearance-line{",";}}"],Oi.B3);class cd extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleChangeGrid",(y,T)=>{const{grid:R,handleChange:q}=this.props,se={...R,[T]:y};q(se,"grid")})}render(){const{grid:y}=this.props,{bdrIsVisible:T,bdrColor:R,bdrStyle:q,bdrWidth:se}=y;return(0,t.jsxs)(rr,{className:p()("gridOption",{"is-open":T}),children:[(0,t.jsxs)("div",{className:"appearance-line border-open margin-left-n6 height-32",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(St.A,{className:St.p,attr:"bdrIsVisible",isChecked:T,onChange:this.handleChangeGrid}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.grid})]}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:"chartConfig-grid",attr:"bdrColor",color:R,onChange:this.handleChangeGrid})]}),(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":T}),children:[(0,t.jsxs)("div",{className:"border-select-size-warp",children:[(0,t.jsx)(Bc.v,{}),(0,t.jsx)(Be.mq,{className:p()("border-select-size"),attr:"bdrStyle",menuClassName:"border_style_select_menu",optionList:(0,ks.se)(),value:q,onChange:this.handleChangeGrid})]}),(0,t.jsx)(Ae.A,{className:"grid-border-width",attr:"bdrWidth",value:se,optionList:ks.xq,onConfirm:this.handleChangeGrid})]})]})}}(0,i.A)(cd,"propTypes",{grid:Ns().array,handleChange:Ns().func});class jh extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"FIX_OPTION_LIST",[{label:(0,t.jsx)(x.C,{size:24,name:"setting_panel/chart/legend/top"}),value:"top",tip_title:I18N.SettingPanel.chartInfo.legend.top},{label:(0,t.jsx)(x.C,{size:24,name:"setting_panel/chart/legend/bottom"}),value:"bottom",tip_title:I18N.SettingPanel.chartInfo.legend.bottom},{label:(0,t.jsx)(x.C,{size:24,name:"setting_panel/chart/legend/left"}),value:"left",tip_title:I18N.SettingPanel.chartInfo.legend.left},{label:(0,t.jsx)(x.C,{size:24,name:"setting_panel/chart/legend/right"}),value:"right",tip_title:I18N.SettingPanel.chartInfo.legend.right}]),(0,i.A)(this,"handleChangeLegend",(y,T)=>{const{legend:R,handleChange:q}=this.props,se={...R,[T]:y};q(se,"legend")}),(0,i.A)(this,"handleChangeLegendPos",y=>{this.handleChangeLegend(y,"legendPos")}),(0,i.A)(this,"handleChangeTextStyle",(y,T)=>{const{legend:{textStyle:R}}=this.props;this.handleChangeLegend({...R,[T]:y},"textStyle")})}render(){const{legend:y}=this.props,{isVisible:T,legendPos:R,textStyle:q}=y;return(0,t.jsxs)(rr,{className:p()("legendOption",{"is-open":T}),children:[(0,t.jsxs)("div",{className:"appearance-line border-open legend-show height-32 margin-left-n6",children:[(0,t.jsx)(St.A,{className:St.p,attr:"isVisible",isChecked:T,onChange:this.handleChangeLegend}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.legend.title})]}),(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":T}),children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.chartInfo.legend.position}),(0,t.jsx)(go.z,{className:"legendPos",options:this.FIX_OPTION_LIST,value:R,isLongTimeHover:!0,handleChange:this.handleChangeLegendPos})]}),q&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":T}),children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.font_size}),(0,t.jsx)(pi.A,{attr:"fontSize",fontSize:q.fontSize,handleChange:this.handleChangeTextStyle})]}),(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":T}),children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.font_color}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:"chartConfig-legend-textStyle",attr:"color",attrPanel:"legendText",color:q.color,onChange:this.handleChangeTextStyle})]})]})]})}}const Wh=[Mn.N.bar_chart,Mn.N.horizontal_bar_chart,Mn.N.line_chart,Mn.N.line_area_chart,Mn.N.mixed_bar_line_chart,Mn.N.waterfall_chart,Mn.N.scatter_chart,Mn.N.bubble_chart,Mn.N.radial_polar_chart,Mn.N.boxplot_chart,Mn.N.radar_chart],Fh=[Mn.N.scatter_chart,Mn.N.bubble_chart],Vh=[Mn.N.line_chart,Mn.N.line_area_chart,Mn.N.mixed_bar_line_chart],Hh=[Mn.N.bar_chart,Mn.N.horizontal_bar_chart,Mn.N.line_chart,Mn.N.line_area_chart,Mn.N.mixed_bar_line_chart,Mn.N.waterfall_chart,Mn.N.scatter_chart,Mn.N.bubble_chart,Mn.N.radial_polar_chart,Mn.N.boxplot_chart],K0=[Mn.N.pie_chart,Mn.N.ring_chart,Mn.N.nightingale_chart],z0=[Mn.N.bar_chart,Mn.N.horizontal_bar_chart,Mn.N.line_chart,Mn.N.line_area_chart,Mn.N.radar_chart,Mn.N.mixed_bar_line_chart,Mn.N.waterfall_chart,Mn.N.funnel_chart,Mn.N.liquid_fill_gauge_chart],Uh=[Mn.N.word_cloud_chart,Mn.N.map_chart],Kh=[Mn.N.progress_chart,Mn.N.funnel_chart,Mn.N.liquid_fill_gauge_chart,Mn.N.scatter_chart],zh=[Mn.N.progress_chart,Mn.N.gauge_chart,Mn.N.liquid_fill_gauge_chart,Mn.N.sunburst_chart,Mn.N.word_cloud_chart,Mn.N.boxplot_chart,Mn.N.sankey_chart],Gh=[Mn.N.progress_chart,Mn.N.radial_polar_chart,Mn.N.pie_chart,Mn.N.ring_chart,Mn.N.nightingale_chart,Mn.N.bar_chart,Mn.N.horizontal_bar_chart,Mn.N.line_chart,Mn.N.line_area_chart,Mn.N.radar_chart,Mn.N.mixed_bar_line_chart,Mn.N.waterfall_chart,Mn.N.funnel_chart,Mn.N.liquid_fill_gauge_chart,Mn.N.gauge_chart],Zh=[Mn.N.bar_chart,Mn.N.horizontal_bar_chart,Mn.N.line_chart,Mn.N.line_area_chart,Mn.N.radar_chart,Mn.N.mixed_bar_line_chart,Mn.N.waterfall_chart],Yh=[Mn.N.sunburst_chart,Mn.N.sankey_chart,Mn.N.gauge_chart],Xh=[Mn.N.sunburst_chart,Mn.N.sankey_chart],ba=2352135087,lr=-2352135088;class $h extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleChangeShowAxis",y=>{const{handleChange:T,axis:R}=this.props;sdkStore.combineMergeMark("update-chart-axis-visible"),T(y,"isShowAxis"),T({...R,isVisible:y},"axis"),sdkStore.combineMerge("update-chart-axis-visible")}),(0,i.A)(this,"handleChangeAxisNumber",(y,T,R,q)=>{const{axis:se,handleChange:ue}=this.props,Ge=q===""?void 0:y;if(typeof Number(y)!="number"||isNaN(y))return;const[at,dt]=T.split("_"),Bt={...se,[dt]:{...se[dt],[at]:Ge}};sdkStore.combineMergeMark("update-chart-axis-"+T),dt==="yAxis"&&ue(Ge,at),ue(Bt,"axis"),sdkStore.combineMerge("update-chart-axis-"+T)}),(0,i.A)(this,"handleChangeTextStyle",(y,T)=>{const{axis:R,handleChange:q}=this.props;q({...R,textStyle:{...R.textStyle,[T]:y}},"axis")}),(0,i.A)(this,"handleChangeAxisAttr",(y,T,R,q)=>{const{axis:se,handleChange:ue}=this.props,Ge=q===""?void 0:y;typeof Number(y)!="number"||isNaN(y)||(sdkStore.combineMergeMark("update-chart-axis-"+T),ue(Ge,T),ue({...se,[T]:Ge},"axis"),sdkStore.combineMerge("update-chart-axis-"+T))})}render(){const{type:y,axis:T}=this.props,{isVisible:R,xAxis:{minNum:q,maxNum:se},yAxis:{minNum:ue,maxNum:Ne},textAngle:Ge,interval:at,textStyle:{fontSize:dt,color:Bt}}=T,kt=Fh.includes(y),qt=y!==Mn.N.radar_chart,sn=!kt&&y!==Mn.N.radar_chart;return(0,t.jsxs)(rr,{className:p()("AxisOption",{"is-open":R}),children:[(0,t.jsxs)("div",{className:p()("appearance-line","height-32","margin-left-n6","border-open","axis-show"),children:[(0,t.jsx)(St.A,{className:St.p,attr:"isShowAxis",isChecked:R,onChange:this.handleChangeShowAxis}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.axis.title})]}),kt&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":R}),children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.chartInfo.axis.maxNumX}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(Ae.A,{className:"general-input axis-input-num axis-option-input width-66",attr:"maxNum_xAxis",max:ba,min:q||lr,value:se===void 0?I18N.SettingPanel.chartInfo.axis.auto:se,isNotVerify:se===void 0,onConfirm:this.handleChangeAxisNumber})})]}),(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":R}),children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.chartInfo.axis.minNumX}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(Ae.A,{className:"general-input axis-input-num axis-option-input width-66",attr:"minNum_xAxis",max:se||ba,min:lr,value:q===void 0?I18N.SettingPanel.chartInfo.axis.auto:q,isNotVerify:q===void 0,onConfirm:this.handleChangeAxisNumber})})]})]}),qt&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":R}),children:[(0,t.jsx)("label",{className:"name",children:kt?I18N.SettingPanel.chartInfo.axis.maxNumY:I18N.SettingPanel.chartInfo.axis.maxNum}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(Ae.A,{className:"general-input axis-input-num axis-option-input width-66",attr:"maxNum_yAxis",max:ba,min:ue||lr,value:Ne===void 0?I18N.SettingPanel.chartInfo.axis.auto:Ne,isNotVerify:Ne===void 0,onConfirm:this.handleChangeAxisNumber})})]}),(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":R}),children:[(0,t.jsx)("label",{className:"name",children:kt?I18N.SettingPanel.chartInfo.axis.minNumY:I18N.SettingPanel.chartInfo.axis.minNum}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(Ae.A,{className:"general-input axis-input-num axis-option-input width-66",attr:"minNum_yAxis",max:Ne||ba,min:lr,value:ue===void 0?I18N.SettingPanel.chartInfo.axis.auto:ue,isNotVerify:ue===void 0,onConfirm:this.handleChangeAxisNumber})})]})]}),sn&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":R}),children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.chartInfo.axis.interval}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(Ae.A,{className:"general-input axis-input-num axis-option-input width-66",attr:"interval",value:at===void 0?I18N.SettingPanel.chartInfo.axis.auto:at,max:ba,min:0,isNotVerify:at===void 0,onConfirm:this.handleChangeAxisAttr})})]}),(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":R}),children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.chartInfo.axis.textAngle}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(Ae.A,{className:"axis-option-input",attr:"textAngle",value:Ge,optionList:ks.Jh,suffix:"\xB0",max:360,min:0,onConfirm:this.handleChangeAxisAttr})})]})]}),(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":R}),children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.font_size}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(pi.A,{attr:"fontSize",fontSize:dt,handleChange:this.handleChangeTextStyle})})]}),(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":R}),children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.font_color}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:"chartConfig-axis-textStyle",attr:"color",attrPanel:"axisText",color:Bt,onChange:this.handleChangeTextStyle})]})]})}}class cr extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleChangeIsVisible",y=>{const{supAttr:T,label:R,handleChange:q,type:se}=this.props,ue={...R,isVisible:y};if(sdkStore.combineMergeMark("update-chart-label-visible"),T==="label"){const Ne=["pie_chart","ring_chart","nightingale_chart"].includes(se)?"showHelpMark":"shLabel";q(y,Ne)}q(ue,T),sdkStore.combineMerge("update-chart-label-visible")}),(0,i.A)(this,"handleChangeTextStyle",(y,T)=>{const{label:R,supAttr:q,handleChange:se}=this.props;se({...R,textStyle:{...R.textStyle,[T]:y}},q)})}render(){const{label:y,title:T,canChangeColor:R,supAttr:q}=this.props,{isVisible:se,textStyle:{fontSize:ue,color:Ne}}=y;return(0,t.jsxs)(rr,{className:p()("label-option",{"is-open":se}),children:[(0,t.jsxs)("div",{className:p()("appearance-line","border-open","label-show","height-32","margin-left-n6"),children:[(0,t.jsx)(St.A,{className:St.p,attr:"isVisible",isChecked:se,onChange:this.handleChangeIsVisible}),(0,t.jsx)("label",{className:"left-label",children:T})]}),(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":se,"can-change-color":R}),children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.font_size}),(0,t.jsx)(pi.A,{attr:"fontSize",fontSize:ue,handleChange:this.handleChangeTextStyle})]}),R&&(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":se,"can-change-color":R}),children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.font_color}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:"chartConfig-"+q+"-textStyle",attr:"color",color:Ne,attrPanel:"labelText",onChange:this.handleChangeTextStyle})]})]})}}(0,i.A)(cr,"defaultProps",{canChangeColor:!0});const dd="chart_settings_option",pd="mp_"+dd,ql="prefix",Qh="suffix";class Jh extends h.PureComponent{constructor(y){super(y),(0,i.A)(this,"createPrefixInputRef",T=>this.$prefixInputRef=T),(0,i.A)(this,"createSuffixInputRef",T=>this.$suffixInputRef=T),(0,i.A)(this,"handleSubChange",()=>{const{show:T}=this.state;(0,vt.a0)(pd,!T,vt.qW.Boolean),this.setState({show:!T})}),(0,i.A)(this,"handleChangeXFix",T=>(R,q)=>{const{unit:se,handleChange:ue}=this.props,Ne={...se[T],[q]:R};if(ue(Ne,T),R){var Ge,at;T===ql?(Ge=this.$prefixInputRef)==null||Ge.setSelectionRange(-1,-1):(at=this.$suffixInputRef)==null||at.setSelectionRange(-1,-1)}}),(0,i.A)(this,"handleInputChange",(T,R)=>{const q=T.target.value,se=q&&q.trim().replace(/[0-9]/,"");this.setState({[R]:se})}),(0,i.A)(this,"handleInputBlur",T=>(R,q)=>{const se=this.state[q];se.length>5&&MB.notice({text:"\u5355\u4F4D\u540D\u79F0\u75315\u5B57\u4EE5\u5185\u7684\u7B26\u53F7/\u6C49\u5B57\u7EC4\u6210",type:"warning"}),this.handleChangeXFix(T)(se,q)}),(0,i.A)(this,"handleKeyDown",(T,R)=>{const{key:q}=T;q===Qi._.Enter&&this.handleInputBlur(R)(T,R===ql?"prefixString":"suffixString")}),this.state={show:(0,vt.Yt)(pd,!0,vt.qW.Boolean),prefixString:y.unit.prefix.prefixString,suffixString:y.unit.suffix.suffixString}}componentDidUpdate(y){const{unit:T}=this.props,{unit:R}=y;T&&R&&(Rh()(T,R)||this.setState({prefixString:T.prefix.prefixString,suffixString:T.suffix.suffixString}))}render(){const{show:y,prefixString:T,suffixString:R}=this.state,{type:q,grid:se,legend:ue,showToolTip:Ne,smooth:Ge,unit:at,category:dt,chartAnimation:Bt,axis:kt,label:qt,labelText:sn,labelNumber:jn,dispatch:Dn,handleChange:lo}=this.props,Wo=Wh.includes(q),Zo=Vh.includes(q),Yo=Hh.includes(q),is=!Uh.includes(q),os=!Kh.includes(q),es=!zh.includes(q),ns=dt!=="accPer",qo=Gh.includes(q),ds=Yh.includes(q),Es=Xh.includes(q),Ps=q===Mn.N.sankey_chart,fs=q===Mn.N.gauge_chart;return(0,t.jsx)(rn.A,{collapse:!y,title:I18N.SettingPanel.inspector[dd],onChange:this.handleSubChange,children:(0,t.jsxs)(Bh,{type:"panel-body",className:"optionSettings",children:[Zo&&(0,t.jsxs)("div",{className:"appearance-line chartOption height-32 margin-left-n6",children:[(0,t.jsx)(St.A,{className:St.p,attr:"smooth",isChecked:Ge,onChange:lo}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.smooth})]}),ue&&es&&(0,t.jsx)(jh,{legend:ue,handleChange:lo}),qo&&(0,t.jsx)(cr,{supAttr:"label",title:I18N.SettingPanel.chartInfo.dataTag,label:qt,canChangeColor:!Zh.includes(q),type:q,handleChange:lo}),ds&&(0,t.jsx)(cr,{supAttr:"labelText",title:Ps?I18N.SettingPanel.chartInfo.nodeTag:fs?I18N.SettingPanel.chartInfo.gauge.degree:I18N.SettingPanel.chartInfo.textTag,label:sn,handleChange:lo}),Es&&(0,t.jsx)(cr,{supAttr:"labelNumber",title:Ps?I18N.SettingPanel.chartInfo.flowsDataTag:I18N.SettingPanel.chartInfo.numberTag,label:jn,handleChange:lo}),(0,t.jsxs)("div",{className:"appearance-line chartOption height-32 margin-left-n6",children:[(0,t.jsx)(St.A,{className:St.p,attr:"isShowToolTip",isChecked:Ne,onChange:lo}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.showToolTip})]}),os&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"appearance-line chartOption height-32 margin-left-n6 unit",children:[(0,t.jsx)(St.A,{className:St.p,attr:"isEnable",isChecked:at.prefix.isEnable,onChange:this.handleChangeXFix("prefix")}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.prefix}),(0,t.jsx)("input",{ref:this.createPrefixInputRef,type:"text",className:p()("chartInput",{show:at.prefix.isEnable,"has-value":T.length>0}),value:T,onChange:ps=>this.handleInputChange(ps,"prefixString"),onBlur:ps=>this.handleInputBlur("prefix")(ps,"prefixString"),onKeyDown:ps=>this.handleKeyDown(ps,ql)})]}),ns&&(0,t.jsxs)("div",{className:p()("appearance-line","height-32","margin-left-n6","chartOption","unit",{"gauge-chart":q==="gauge_chart"}),children:[(0,t.jsx)(St.A,{className:St.p,attr:"isEnable",isChecked:at.suffix.isEnable,onChange:this.handleChangeXFix("suffix")}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.suffix}),(0,t.jsx)("input",{ref:this.createSuffixInputRef,type:"text",className:p()("chartInput",{show:at.suffix.isEnable,"has-value":R.length>0}),value:R,onChange:ps=>this.handleInputChange(ps,"suffixString"),onBlur:ps=>this.handleInputBlur("suffix")(ps,"suffixString"),onKeyDown:ps=>this.handleKeyDown(ps,Qh)})]})]}),Wo&&(0,t.jsx)($h,{type:q,axis:kt,handleChange:lo}),se&&Yo&&(0,t.jsx)(cd,{grid:se,dispatch:Dn,handleChange:lo}),is&&(0,t.jsxs)("div",{className:"appearance-line chartOption height-32 margin-left-n6",children:[(0,t.jsx)(St.A,{className:St.p,attr:"chartAnimation",isChecked:Bt,onChange:lo}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.chartAnimation})]})]})})}}const ec=2352135087,tc=-2352135088;class qh extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleValueChange",(y,T)=>{const{handleChange:R}=this.props;R(parseInt(y),T)}),(0,i.A)(this,"handleConfirm",(y,T)=>{this.handleValueChange(y,T),sdkStore.combineMerge(T+"-update")}),(0,i.A)(this,"handleMouseDown",y=>sdkStore.combineMergeMark(y+"-update")),(0,i.A)(this,"handleChangeNumber",(y,T)=>{const{handleChange:R}=this.props;typeof Number(y)!="number"||isNaN(y)||R(y,T)})}render(){const{type:y,progress:T,innerRadius:R,foregroundColor:q,backgroundColor:se,maxNum:ue,minNum:Ne,handleChange:Ge}=this.props,at=y===Mn.N.gauge_chart;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"progressAttr",children:[(0,t.jsxs)("div",{className:"appearance-line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.progress.background}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,color:se,supAttr:"chartConfig",attr:"backgroundColor",onChange:Ge})]}),(0,t.jsxs)("div",{className:"appearance-line height-32",children:[(0,t.jsx)("label",{className:"left-label foreground-color",children:I18N.SettingPanel.chartInfo.progress.color}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,color:q,supAttr:"chartConfig",attr:"foregroundColor",onChange:Ge})]})]}),at?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"common-line opacity-line gauge-chart height-32",children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.chartInfo.axis.maxNum}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(Ae.A,{className:"general-input axis-input-num axis-option-input width-66",attr:"maxNum",max:ec,min:tc,value:ue===void 0?I18N.SettingPanel.chartInfo.axis.auto:ue,isNotVerify:ue===void 0,onConfirm:this.handleChangeNumber})})]}),(0,t.jsxs)("div",{className:"common-line opacity-line gauge-chart height-32",children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.chartInfo.axis.minNum}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(Ae.A,{className:"general-input axis-input-num axis-option-input width-66",attr:"minNum",max:ec,min:tc,value:Ne===void 0?I18N.SettingPanel.chartInfo.axis.auto:Ne,isNotVerify:Ne===void 0,onConfirm:this.handleChangeNumber})})]}),(0,t.jsxs)("div",{className:"common-line opacity-line gauge-chart height-32",children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.chartInfo.gauge.currentValue}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(Ae.A,{className:"general-input axis-input-num axis-option-input width-66",attr:"progress",max:ec,min:tc,value:T,isNotVerify:T===void 0,onConfirm:this.handleChangeNumber})})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"common-line opacity-line height-32",children:[(0,t.jsx)("span",{className:"label-name",children:I18N.SettingPanel.innerRadius}),(0,t.jsx)(Oe.A,{attr:"chartInnerRadius",value:R,max:100,onChange:this.handleValueChange,onConfirm:this.handleConfirm,onMouseDown:this.handleMouseDown}),(0,t.jsx)(Ae.A,{className:"input-number",attr:"chartInnerRadius",value:R,min:0,max:100,onConfirm:this.handleValueChange,suffix:"%"})]}),(0,t.jsxs)("div",{className:"common-line opacity-line height-32",children:[(0,t.jsx)("span",{className:"label-name",children:I18N.SettingPanel.progress}),(0,t.jsx)(Oe.A,{attr:"progress",value:T,max:100,onChange:this.handleValueChange,onConfirm:this.handleConfirm,onMouseDown:this.handleMouseDown}),(0,t.jsx)(Ae.A,{className:"input-number",attr:"progress",value:T,min:0,max:100,onConfirm:this.handleValueChange,suffix:"%"})]})]})]})}}const eu=[Mn.N.pie_chart,Mn.N.ring_chart,Mn.N.nightingale_chart,Mn.N.sunburst_chart],tu=[Mn.N.ring_chart,Mn.N.nightingale_chart],nu=[Mn.N.progress_chart,Mn.N.gauge_chart],ou=[Mn.N.scatter_chart],su=[Mn.N.bubble_chart],iu=[Mn.N.boxplot_chart],au=[Mn.N.mixed_bar_line_chart,Mn.N.waterfall_chart,Mn.N.bar_chart,Mn.N.horizontal_bar_chart];class ru extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleBorderRadiusConfirm",(y,T)=>{const{handleChange:R}=this.props;R(y,T),sdkStore.combineMerge(T+"-update")}),(0,i.A)(this,"handleBorderRadiusMouseDown",y=>sdkStore.combineMergeMark(y+"-update"))}render(){const{borderRadius:y,innerRadius:T,type:R,progress:q,foregroundColor:se,backgroundColor:ue,minNum:Ne,maxNum:Ge,bubbleRadius:at,minBubbleRadius:dt,maxBubbleRadius:Bt,boxWidth:kt,barCategoryGap:qt,handleChange:sn,dispatch:jn}=this.props,Dn=tu.includes(R),lo=eu.includes(R),Wo=nu.includes(R),Zo=ou.includes(R),Yo=su.includes(R),is=iu.includes(R),os=au.includes(R);return(0,t.jsxs)(yo,{className:p()("chart-preference-common",(Wo||os)&&"noBorder",os&&"bottomBorder"),children:[Wo&&(0,t.jsx)(qh,{type:R,progress:q,foregroundColor:se,backgroundColor:ue,innerRadius:T,minNum:Ne,maxNum:Ge,handleChange:sn}),lo&&(0,t.jsxs)("div",{className:"common-line opacity-line height-32",children:[(0,t.jsx)("span",{className:"label-name",children:I18N.SettingPanel.radius}),(0,t.jsx)(Oe.A,{attr:"chartBorderRadius",value:y,max:100,onChange:sn,onConfirm:this.handleBorderRadiusConfirm,onMouseDown:this.handleBorderRadiusMouseDown}),(0,t.jsx)(Ae.A,{className:"input-number",attr:"chartBorderRadius",value:y,min:0,max:100,onConfirm:sn})]}),Dn&&(0,t.jsxs)("div",{className:"common-line opacity-line height-32",children:[(0,t.jsx)("span",{className:"label-name",children:I18N.SettingPanel.innerRadius}),(0,t.jsx)(Oe.A,{attr:"chartInnerRadius",value:T,max:100,onChange:sn,onConfirm:sn}),(0,t.jsx)(Ae.A,{className:"input-number",attr:"chartInnerRadius",value:T,min:0,max:100,onConfirm:sn,suffix:"%"})]}),Zo&&(0,t.jsxs)("div",{className:"common-line opacity-line",children:[(0,t.jsx)("span",{className:"label-name",children:I18N.SettingPanel.bubbleRadius}),(0,t.jsx)(Ae.A,{className:"input-number bubble-radius",attr:"bubbleRadius",value:at,min:1,onConfirm:sn})]}),Yo&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"common-line opacity-line",children:[(0,t.jsx)("span",{className:"label-name",children:I18N.SettingPanel.minBubbleRadius}),(0,t.jsx)(Ae.A,{className:"input-number bubble-radius min",attr:"minBubbleRadius",value:dt,min:1,max:Bt,onConfirm:sn})]}),(0,t.jsxs)("div",{className:"common-line opacity-line",children:[(0,t.jsx)("span",{className:"label-name bubble-radius",children:I18N.SettingPanel.maxBubbleRadius}),(0,t.jsx)(Ae.A,{className:"input-number bubble-radius max",attr:"maxBubbleRadius",value:Bt,min:dt||1,onConfirm:sn})]})]}),is&&(0,t.jsxs)("div",{className:"common-line opacity-line",children:[(0,t.jsx)("span",{className:"label-name",children:I18N.SettingPanel.boxWidth}),(0,t.jsx)(Oe.A,{attr:"boxWidth",value:kt,max:100,onChange:sn,onConfirm:sn}),(0,t.jsx)(Ae.A,{className:"input-number",attr:"boxWidth",value:kt,min:0,max:100,onConfirm:sn,suffix:"%"})]}),os&&(0,t.jsxs)("div",{className:"common-line opacity-line",children:[(0,t.jsx)("span",{className:"label-name",children:I18N.SettingPanel.boxWidth}),(0,t.jsx)(Oe.A,{attr:"barCategoryGap",value:qt,max:100,onChange:sn,onConfirm:sn}),(0,t.jsx)(Ae.A,{className:"input-number",attr:"barCategoryGap",value:qt,min:0,max:100,onConfirm:sn,suffix:"%"})]})]})}}const lu=s.Ay.div.withConfig({displayName:"styles__StyledWaterFallSetting",componentId:"sc-drrsng-0"})(["padding:8px 10px 8px 8px;.waterfall-line{display:flex;align-items:center;height:32px;input.series-name-input{color:",";width:60px;height:28px;border:1px solid transparent;text-overflow:ellipsis;padding-left:8px;border-radius:4px;&:hover{border:1px solid ",";}&:focus{border:1px solid ",";outline:1px solid ",";}&:lang(en){width:118px;}}}"],m=>m.theme.color_text_L2,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_proto,m=>m.theme.color_proto);class cu extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{seriesNameIn:this.props.chartData.series[0].name,seriesNameOut:this.props.chartData.series[1].name}),(0,i.A)(this,"handleChangeColor",(y,T)=>{const{dispatch:R}=this.props;R({type:"entry:set:chart:series:color:attr",payload:{attr:T,color:y}})}),(0,i.A)(this,"handleChangeSeriesName",(y,T,R)=>{const q=y.target.value.trim();if(q===T)return;const se=R?"seriesNameOut":"seriesNameIn";this.setState({[se]:q})}),(0,i.A)(this,"handleBlurSeriesName",(y,T)=>{const R=y.target.value.trim(),{chartData:{series:q},dispatch:se}=this.props,ue=q.map((Ne,Ge)=>Ge===T?{...Ne,name:R}:Ne);se({type:"entry:set:chart:chartData:attr",payload:{attr:"series",value:ue}})})}render(){const{chartData:{series:y}}=this.props,{seriesNameIn:T,seriesNameOut:R}=this.state,q=y[0].color,se=y[1].color;return(0,t.jsxs)(lu,{children:[(0,t.jsxs)("div",{className:"waterfall-line",children:[(0,t.jsx)("input",{type:"text",className:"series-name-input",value:T,onChange:ue=>this.handleChangeSeriesName(ue,T,0),onBlur:ue=>this.handleBlurSeriesName(ue,0)}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,attr:"chart_series_0",color:q,onChange:this.handleChangeColor,toolTips:I18N.SettingPanel.chartInfo.changeColor,direction:"left",canOpenLib:!1})]}),(0,t.jsxs)("div",{className:"waterfall-line",children:[(0,t.jsx)("input",{type:"text",className:"series-name-input",value:R,onChange:ue=>this.handleChangeSeriesName(ue,R,1),onBlur:ue=>this.handleBlurSeriesName(ue,1)}),(0,t.jsx)(xo.R_,{className:xo.EY,mode:"input",attr:"chart_series_1",color:se,onChange:this.handleChangeColor,toolTips:I18N.SettingPanel.chartInfo.changeColor,direction:"left",canOpenLib:!1})]})]})}}var du=e(31838);const pu=s.Ay.div.withConfig({displayName:"styles__StyledMapSetting",componentId:"sc-6ygupo-0"})([".collapse-block-title,.collapse-block-content{height:32px;display:flex;align-items:center;color:","}.collapse-block-title .checkable-title{margin-left:6px;}.collapse-block-content{margin-left:22px;.name{min-width:42px;}.general-input{width:66px;}&.hide{display:none;}}.theme-setting,.area-setting{.setting-line{height:32px;display:flex;align-items:center;}}.theme-select,.area-select{width:208px;}"],m=>m.theme.color_text_L2),dr=m=>"mp_"+m,hu=new Map([["chart_settings_map_theme","mapThemeShow"],["chart_settings_map_area","mapAreaShow"],["chart_settings_map_appearance","mapAppearanceShow"]]);class uu extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{mapThemeShow:(0,vt.Yt)(dr("chart_settings_map_theme"),!0,vt.qW.Boolean),mapAreaShow:(0,vt.Yt)(dr("chart_settings_map_area"),!0,vt.qW.Boolean),mapAppearanceShow:(0,vt.Yt)(dr("chart_settings_map_appearance"),!0,vt.qW.Boolean)}),(0,i.A)(this,"handleSubChange",y=>{const T=hu.get(y),R=this.state[T];(0,vt.a0)(dr(y),!R,vt.qW.Boolean),this.setState({[T]:!R})}),(0,i.A)(this,"handleChangeMapSetting",(y,T,R)=>{const{handleChange:q}=this.props;q(y,T,R)})}render(){const{mapAdCode:y,theme:T,hoverStyle:R,toolTipStyle:q,textV0:se,grid:ue,showToolTip:Ne,isShowAxis:Ge}=this.props,{mapThemeShow:at,mapAreaShow:dt,mapAppearanceShow:Bt}=this.state;return(0,t.jsxs)(pu,{children:[(0,t.jsx)(rn.A,{collapse:!at,title:"\u4E3B\u9898",onChange:()=>this.handleSubChange("chart_settings_map_theme"),className:"theme-setting",children:(0,t.jsx)("div",{className:"setting-line",children:(0,t.jsx)(Be.mq,{className:"theme-select",optionList:[{label:"\u5F69\u8272",value:"0"},{label:"\u5355\u8272",value:"1"}],value:String(T),onChange:kt=>this.handleChangeMapSetting(Number(kt),"chartTheme","chartConfig")})})}),(0,t.jsx)(rn.A,{collapse:!dt,title:"\u533A\u57DF",onChange:()=>this.handleSubChange("chart_settings_map_area"),className:"area-setting",children:(0,t.jsx)("div",{className:"setting-line",children:(0,t.jsx)(Be.mq,{className:"area-select",optionList:[{value:"100000",label:"\u4E2D\u56FD"}].concat([...du.AG].map(kt=>{let[qt,sn]=kt;return{value:qt,label:sn}})),value:String(y),onChange:kt=>this.handleChangeMapSetting(Number(kt),"mapAdCode","chartConfig")})})}),(0,t.jsxs)(rn.A,{collapse:!Bt,title:"\u5916\u89C2",onChange:()=>this.handleSubChange("chart_settings_map_appearance"),className:"appearance-setting",children:[(0,t.jsx)("div",{className:"collapse-block-title",children:(0,t.jsx)("span",{children:"\u9ED8\u8BA4\u5916\u89C2"})}),(0,t.jsxs)("div",{className:"collapse-block-content",children:[(0,t.jsx)("label",{className:"name",children:"\u63CF\u8FB9"}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,color:ue.bdrColor,supAttr:"chartConfig-grid",attr:"bdrColor",onChange:kt=>this.handleChangeMapSetting({...ue,bdrColor:kt},"grid","chartConfig")})]}),(0,t.jsxs)("div",{className:"collapse-block-content",children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.font_color}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,color:se.textColor,supAttr:"textV0",attr:"textColor",onChange:kt=>this.handleChangeMapSetting(kt,"textColor","textV0")})]}),(0,t.jsxs)("div",{className:"collapse-block-content",children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.font_size}),(0,t.jsx)(Ae.A,{className:"general-input",value:se.fontSize,min:1,max:1e3,optionList:pi.X,onConfirm:kt=>this.handleChangeMapSetting(kt,"fontSize","textV0")})]}),(0,t.jsx)("div",{className:"collapse-block-title",children:(0,t.jsx)("span",{children:"\u60AC\u505C\u5916\u89C2"})}),(0,t.jsxs)("div",{className:"collapse-block-content",children:[(0,t.jsx)("label",{className:"name",children:"\u586B\u5145"}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,color:R.bgColor,supAttr:"chartConfig-hoverStyle",attr:"bgColor",onChange:kt=>this.handleChangeMapSetting({...R,bgColor:kt},"hoverStyle","chartConfig")})]}),(0,t.jsxs)("div",{className:"collapse-block-content",children:[(0,t.jsx)("label",{className:"name",children:"\u63CF\u8FB9"}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,color:R.bdrColor,supAttr:"chartConfig-hoverStyle",attr:"bdrColor",onChange:kt=>this.handleChangeMapSetting({...R,bdrColor:kt},"hoverStyle","chartConfig")})]}),(0,t.jsxs)("div",{className:"collapse-block-content",children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.font_color}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,color:R.textColor,supAttr:"chartConfig-hoverStyle",attr:"textColor",onChange:kt=>this.handleChangeMapSetting({...R,textColor:kt},"hoverStyle","chartConfig")})]}),(0,t.jsxs)("div",{className:"collapse-block-content",children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.font_size}),(0,t.jsx)(Ae.A,{className:"general-input",value:R.fontSize,min:1,max:1e3,optionList:pi.X,onConfirm:kt=>this.handleChangeMapSetting({...R,fontSize:kt},"hoverStyle","chartConfig")})]}),(0,t.jsxs)("div",{className:"collapse-block-title",children:[(0,t.jsx)(St.A,{className:"general-check",isChecked:Ne,onChange:kt=>this.handleChangeMapSetting(kt,"isShowToolTip","chartConfig")}),(0,t.jsx)("span",{className:"checkable-title",children:"\u6570\u636E\u63D0\u793A"})]}),(0,t.jsxs)("div",{className:p()("collapse-block-content",{hide:!Ne}),children:[(0,t.jsx)("label",{className:"name",children:"\u586B\u5145"}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,color:q.bgColor,supAttr:"chartConfig-toolTipStyle",attr:"bgColor",onChange:kt=>this.handleChangeMapSetting({...q,bgColor:kt},"toolTipStyle","chartConfig")})]}),(0,t.jsxs)("div",{className:p()("collapse-block-content",{hide:!Ne}),children:[(0,t.jsx)("label",{className:"name",children:"\u63CF\u8FB9"}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,color:q.bdrColor,supAttr:"chartConfig-toolTipStyle",attr:"bdrColor",onChange:kt=>this.handleChangeMapSetting({...q,bdrColor:kt},"toolTipStyle","chartConfig")})]}),(0,t.jsxs)("div",{className:p()("collapse-block-content",{hide:!Ne}),children:[(0,t.jsx)("label",{className:"name",children:"\u7C97\u7EC6"}),(0,t.jsx)(Ae.A,{className:"general-input",value:q.bdrWidth,min:1,max:1e3,onConfirm:kt=>this.handleChangeMapSetting({...q,bdrWidth:kt},"toolTipStyle","chartConfig")})]}),(0,t.jsxs)("div",{className:p()("collapse-block-content",{hide:!Ne}),children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.font_color}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,color:q.textColor,supAttr:"chartConfig-toolTipStyle",attr:"textColor",onChange:kt=>this.handleChangeMapSetting({...q,textColor:kt},"toolTipStyle","chartConfig")})]}),(0,t.jsxs)("div",{className:p()("collapse-block-content",{hide:!Ne}),children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.font_size}),(0,t.jsx)(Ae.A,{className:"general-input",value:q.fontSize,min:1,max:1e3,optionList:pi.X,onConfirm:kt=>this.handleChangeMapSetting({...q,fontSize:kt},"toolTipStyle","chartConfig")})]}),(0,t.jsxs)("div",{className:"collapse-block-title",children:[(0,t.jsx)(St.A,{className:"general-check",isChecked:Ge,onChange:kt=>this.handleChangeMapSetting(kt,"isShowAxis","chartConfig")}),(0,t.jsx)("span",{className:"checkable-title",children:"\u533A\u57DF\u540D\u79F0"})]})]})]})}}var gu=e(13235),mu=e(33843);const hd=(m,y)=>{const T=[Mn.N.scatter_chart,Mn.N.bubble_chart].includes(y),R=y===Mn.N.sunburst_chart,q=new Map;for(let se=0;se<m.length;se++){const ue=m[se],Ne=T?ue.name:ue.data[0];if(R&&!Ne)continue;const Ge=q.get(Ne);Ge?q.set(Ne,{...Ge,numbers:Ge.numbers.concat(se)}):q.set(Ne,{numbers:[se],color:ue.color})}return Array.from(q.keys()).map(se=>({name:se,numbers:q.get(se).numbers,color:q.get(se).color}))},fu=m=>{const y=new Map;return m.forEach((T,R)=>{const q=String(T.data[0]),se=String(T.data[1]),ue=y.get(q),Ne=y.get(se);!ue||!Ne?(ue?y.set(q,{...ue,numbers:ue.numbers.concat(R)}):q&&y.set(q,{numbers:[R],color:T.color}),Ne?y.set(se,{...Ne,numbers:Ne.numbers.concat(R)}):se&&y.set(se,{numbers:[R],color:T.targetColor})):(ue&&y.set(q,{...ue,numbers:ue.numbers.concat(R)}),Ne&&y.set(se,{...Ne,numbers:Ne.numbers.concat(R)}))}),Array.from(y.keys()).map(T=>({name:T,numbers:y.get(T).numbers,color:y.get(T).color}))},xu=m=>{var y;const T=(0,mu.o)(m);return((y=T[0])==null||(y=y.data)==null?void 0:y.length)<2?[]:hd(T,Mn.N.sunburst_chart)},yu=(m,y)=>{const T=y===Mn.N.sankey_chart,R=y===Mn.N.sunburst_chart;return y===Mn.N.boxplot_chart?[]:T?fu(m):R?xu(m):hd(m,y)},vu=s.Ay.section.withConfig({displayName:"styles__StyledSeriesColorSetting",componentId:"sc-91gnmj-0"})([".color-section{height:32px;display:flex;align-items:center;span{display:block;width:88px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-right:8px;}}.color-container{max-height:104px;overflow:hidden;transition:all 0.2s ease-in-out;&.is-expand{height:auto;max-height:fit-content;.color-section{&:last-child{margin-bottom:0;}}}}.expand{cursor:pointer;display:flex;align-items:center;height:32px;font-size:12px;color:",";&:hover,&:active{color:",";}}"],m=>m.theme.color_text_link_normal,m=>m.theme.color_text_link_hover),ud="chart_settings_color",gd="mp_"+ud;class bu extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)(gd,!0,vt.qW.Boolean),isExpand:!1}),(0,i.A)(this,"handleSubChange",()=>{const{show:y}=this.state;(0,vt.a0)(gd,!y,vt.qW.Boolean),this.setState({show:!y})}),(0,i.A)(this,"handleChangeColor",(y,T,R)=>{const{handleChangeHasSupAttr:q,series:se,type:ue}=this.props,Ne=ue===Mn.N.sankey_chart,Ge=se.map((at,dt)=>{if(T.includes(dt)){if(Ne){const kt=at.data[0]===y?{color:R}:{targetColor:R};return{...at,...kt}}return{...at,color:R}}return at});q(Ge,"series","chartData")}),(0,i.A)(this,"handleToggleExpand",()=>{const{isExpand:y}=this.state;this.setState({isExpand:!y})}),(0,i.A)(this,"handleChangeBoxplotColor",y=>{const{handleChangeHasSupAttr:T,series:R}=this.props,q=R.map(se=>({...se,color:y}));T(q,"series","chartData")})}render(){const{show:y,isExpand:T}=this.state,{type:R,series:q,theme:se}=this.props,ue=R===Mn.N.boxplot_chart,Ne=yu(q,R),Ge=Ne.length;return(0,t.jsx)(rn.A,{collapse:!y,title:I18N.SettingPanel.inspector[ud],onChange:this.handleSubChange,children:(0,t.jsx)(vu,{type:"panel-body",className:"series-color-settings",children:ue?(0,t.jsx)("div",{className:"boxplot-color-container",children:(0,t.jsxs)("div",{className:"color-section",children:[(0,t.jsx)("span",{children:I18N.SettingPanel.boxplotColor}),(0,t.jsx)(xo.R_,{attr:"chart_series_color",color:q[0].color,onChange:this.handleChangeBoxplotColor,toolTips:I18N.SettingPanel.chartInfo.changeColor,direction:"left",canOpenLib:!1})]})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:p()("color-container",{"is-expand":T}),children:Ne.map((at,dt)=>{let{color:Bt,numbers:kt,name:qt}=at;const sn=Bt||(0,gu.zw)(ar.B5[se][dt%ar.B5.length]);return(0,t.jsxs)("div",{className:"color-section",children:[(0,t.jsx)("span",{children:qt}),(0,t.jsx)(xo.R_,{attr:"chart_series_color",color:sn,onChange:(jn,Dn)=>this.handleChangeColor(qt,kt,jn),toolTips:I18N.SettingPanel.chartInfo.changeColor,direction:"left",canOpenLib:!1})]},qt)})}),Ge>3&&(0,t.jsx)("span",{className:"expand",onClick:this.handleToggleExpand,children:T?I18N.ScreenList.collapse_screens:I18N.ScreenList.expand_screens})]})})})}}var Cu=e(87440);class Su extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleChangeFontSize",(y,T)=>{const{minFontSize:R,maxFontSize:q,handleChange:se}=this.props;if(sdkStore.combineMergeMark("echart-world-cloud-"+T),T==="minFontSize"&&Number(y)>q){se(q,T),this.handleRandomRotation(),sdkStore.combineMerge("echart-world-cloud-"+T);return}else if(T==="maxFontSize"&&Number(y)<R){se(R,T),this.handleRandomRotation(),sdkStore.combineMerge("echart-world-cloud-"+T);return}se(y,T),this.handleRandomRotation(),sdkStore.combineMerge("echart-world-cloud-"+T)}),(0,i.A)(this,"handleRandomRotation",()=>{const{series:y,handleChangeHasSupAttr:T}=this.props,R=y.map(q=>({...q,rotation:(0,Cu.s)()}));T(R,"series","chartData")})}render(){const{minFontSize:y,maxFontSize:T}=this.props;return(0,t.jsx)(yo,{className:p()("chart-preference-common"),children:(0,t.jsxs)("div",{className:"word_cloud_font_size",children:[(0,t.jsxs)("div",{className:"common-line opacity-line",children:[(0,t.jsx)("span",{className:"label-name min-font-size",children:I18N.SettingPanel.chartInfo.minFontSize}),(0,t.jsx)(pi.A,{attr:"minFontSize",fontSize:y,handleChange:this.handleChangeFontSize})]}),(0,t.jsxs)("div",{className:"common-line opacity-line",children:[(0,t.jsx)("span",{className:"label-name max-font-size",children:I18N.SettingPanel.chartInfo.maxFontSize}),(0,t.jsx)(pi.A,{attr:"maxFontSize",fontSize:T,handleChange:this.handleChangeFontSize})]})]})})}}const _u=s.Ay.section.withConfig({displayName:"styles__StyledChartInfo",componentId:"sc-1bqwdcr-0"})(["width:100%;color:#415058;border-top:1px solid ",';.sub-panel{margin:0 16px;}.sub-panel,.sub-panel.collapse{width:auto;&:first-child{border-top:none;header{border-top:none;}}header{padding:0;.angle-icon-wrap{transform:translateX(6px);}}[type="panel-body"]{padding:0;width:auto;}}.chart-preference-common{border-top:1px solid ',";width:auto;margin:0 16px;padding:8px 0;&.noBorder{border-top:none;}.progressAttr{border-bottom:1px solid ",";margin-bottom:8px;padding-bottom:8px;.appearance-line{display:flex;align-items:center;justify-content:space-between;.colorBtn{width:16px;border:1px solid rgba(0,0,0,0.12);}.left-label{color:",";margin-right:8px;&.foreground-color{margin-right:20px;}}.right-content{width:118px;padding-left:3px;}}}.common-line{.label-name{min-width:48px;&:lang(en){width:83px;}&.bubble-radius{word-break:keep-all;}}.input-number.bubble-radius{width:66px;margin-left:49px;&.min,&.max{margin-left:25px;}}&.gauge-chart{justify-content:space-between;label.name{line-height:22px;width:auto;color:",";}.right-content{width:111px;}}}.word_cloud_shape{justify-content:space-between;margin-bottom:8px;.word_cloud_shape_select{width:111px;border-radius:4px;justify-content:space-between;}}.word_cloud_font_size{.common-line{justify-content:space-between;.font-size-container{width:111px;}}}.mix-chart-type{max-height:96px;overflow:hidden;transition:all 0.2s ease-in-out;&.is-expand{height:auto;max-height:fit-content;}.Ellipsis{width:40%;}.common-line{justify-content:space-between;.border-select-size{width:110px;}}}}"],m=>m.theme.color_bg_border_01,m=>m.theme.color_bg_border_02,m=>m.theme.color_bg_border_02,m=>m.theme.color_text_L2,m=>m.theme.color_text_L2);var wu=e(68677);class Iu extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{isExpand:!1,modifiedSeries:[]}),(0,i.A)(this,"handleChangeMixedType",(y,T)=>{const{series:R,handleChangeHasSupAttr:q}=this.props,se=R.map((ue,Ne)=>Ne===y?{...ue,type:T}:ue);q(se,"series","chartData")}),(0,i.A)(this,"handleToggleExpand",()=>{const{isExpand:y}=this.state;this.setState({isExpand:!y})})}componentDidMount(){const{series:y,type:T,handleChangeHasSupAttr:R}=this.props;if(T===Mn.N.mixed_bar_line_chart){const se=y.map((ue,Ne)=>ue.type?ue:{...ue,type:Ne===y.length-1?"line":"bar"});R(se,"series","chartData"),this.setState({modifiedSeries:se})}}componentDidUpdate(y){const{series:T}=this.props;if(T!==y.series){const R=T.map((q,se)=>q.type?q:{...q,type:se===T.length-1?"line":"bar"});this.setState({modifiedSeries:R})}}render(){const{isExpand:y,modifiedSeries:T}=this.state,R=T.length;return(0,t.jsxs)(yo,{className:p()("chart-preference-common"),children:[(0,t.jsx)("div",{className:p()("mix-chart-type",{"is-expand":y}),children:T.map((q,se)=>(0,t.jsxs)("div",{className:"common-line opacity-line height-32",children:[(0,t.jsx)(wu.A,{children:q.name}),(0,t.jsx)(Be.mq,{className:p()("border-select-size"),menuClassName:"border_style_select_menu",optionList:[{label:"\u67F1\u72B6",value:"bar"},{label:"\u6298\u7EBF",value:"line"}],value:q.type,onChange:ue=>this.handleChangeMixedType(se,ue)})]},se))}),R>3&&(0,t.jsx)("span",{className:"expand",onClick:this.handleToggleExpand,children:y?I18N.ScreenList.collapse_screens:I18N.ScreenList.expand_screens})]})}}class Tu extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleChange",(y,T)=>{const{onChange:R,dispatch:q,selections:se}=this.props;R({value:y,attr:T,dispatch:q,supAttr:"chartConfig",selections:se})}),(0,i.A)(this,"handleChangeHasSupAttr",(y,T,R)=>{const{onChange:q,dispatch:se,selections:ue}=this.props;q({value:y,attr:T,dispatch:se,supAttr:R,selections:ue})})}render(){const{chartData:y,smooth:T,legend:R,grid:q,borderRadius:se,innerRadius:ue,progress:Ne,unit:Ge,backgroundColor:at,foregroundColor:dt,theme:Bt,type:kt,category:qt,showToolTip:sn,isShowAxis:jn,minNum:Dn,maxNum:lo,chartAnimation:Wo,axis:Zo,bubbleRadius:Yo,minBubbleRadius:is,maxBubbleRadius:os,label:es,labelText:ns,labelNumber:qo,minFontSize:ds,maxFontSize:Es,boxWidth:Ps,barCategoryGap:fs,mapAdCode:ps,hoverStyle:Ss,toolTipStyle:ii,textV0:ai,showTypeSettingPanel:Ys,dispatch:ti}=this.props,$s=Ih.includes(kt),qi=!Th.includes(kt),vi=kt===Mn.N.waterfall_chart,Hs=kt===Mn.N.map_chart,ji=![Mn.N.map_chart].includes(kt),Ca=Ah.includes(kt),Sa=kt===Mn.N.word_cloud_chart,bi=kt===Mn.N.mixed_bar_line_chart;return(0,t.jsxs)(t.Fragment,{children:[Ys&&(0,t.jsx)(Mh,{chartData:y,type:kt,category:qt,handleChange:this.handleChange,handleChangeHasSupAttr:this.handleChangeHasSupAttr}),qi&&(0,t.jsx)(kh,{theme:Bt,handleChange:this.handleChange}),Ca&&(0,t.jsx)(bu,{type:kt,series:y.series,theme:Bt,handleChangeHasSupAttr:this.handleChangeHasSupAttr}),Sa&&(0,t.jsx)(Su,{series:y.series,minFontSize:ds,maxFontSize:Es,handleChange:this.handleChange,handleChangeHasSupAttr:this.handleChangeHasSupAttr}),bi&&(0,t.jsx)(Iu,{series:y.series,type:kt,handleChange:this.handleChange,handleChangeHasSupAttr:this.handleChangeHasSupAttr}),$s&&(0,t.jsx)(ru,{borderRadius:se,innerRadius:ue,progress:Ne,foregroundColor:dt,backgroundColor:at,minNum:Dn,maxNum:lo,type:kt,bubbleRadius:Yo,minBubbleRadius:is,maxBubbleRadius:os,boxWidth:Ps,barCategoryGap:fs,handleChange:this.handleChange,dispatch:ti}),vi&&(0,t.jsx)(cu,{chartData:y,dispatch:ti}),Hs&&(0,t.jsx)(uu,{theme:Bt,mapAdCode:ps,hoverStyle:Ss,toolTipStyle:ii,textV0:ai,grid:q,showToolTip:sn,isShowAxis:jn,handleChange:this.handleChangeHasSupAttr}),ji&&(0,t.jsx)(Jh,{type:kt,grid:q,showToolTip:sn,legend:R,smooth:T,category:qt,unit:Ge,chartAnimation:Wo,axis:Zo,label:es,labelText:ns,labelNumber:qo,handleChange:this.handleChange,dispatch:ti})]})}}const Au=m=>{let{children:y}=m;return(0,t.jsx)(_u,{children:y})},Pu={component:Tu,params:{},getter:[m=>{let{selectedItems:y}=m;const T=(0,it.i)(y,"chartConfig"),R=(0,it.i)(y,"textV0"),se=y[0].hotAttr.chartConfig.chartType;return{showTypeSettingPanel:y.every(ue=>ue.hotAttr.chartConfig.chartType===se)&&!wh.includes(se),type:T.chartType,category:T.chartCategory,theme:T.chartTheme,chartData:(0,it.i)(y,"chartData"),grid:T.grid,legend:T.legend,borderRadius:T.chartBorderRadius,innerRadius:T.chartInnerRadius,progress:T.progress,minNum:T.minNum,maxNum:T.maxNum,showToolTip:T.isShowToolTip,isShowAxis:T.isShowAxis,smooth:T.smooth,unit:{prefix:T.prefix,suffix:T.suffix},foregroundColor:T.foregroundColor,backgroundColor:T.backgroundColor,chartAnimation:T.chartAnimation,mapAdCode:T.mapAdCode,hoverStyle:T.hoverStyle,textV0:R,toolTipStyle:T.toolTipStyle,axis:T.axis,bubbleRadius:T.bubbleRadius,minBubbleRadius:T.minBubbleRadius,maxBubbleRadius:T.maxBubbleRadius,label:T.label,labelText:T.labelText,labelNumber:T.labelNumber,minFontSize:T.minFontSize,maxFontSize:T.maxFontSize,boxWidth:T.boxWidth,barCategoryGap:T.barCategoryGap}}],setter:{onChange:gt.c}},Mu=()=>[Au,[Pu,"ChartSettingsInfo"]];var Eu=e(27086),Lu=e(95545);const Nu=(0,h.memo)(m=>{let{showSinglePanelState:y,panel:T,onChange:R,dispatch:q,selections:se}=m;const ue=(Ne,Ge)=>{R({value:Ne,attr:Ge,dispatch:q,selections:se})};return(0,t.jsxs)(Du,{className:"state-scroll-container",children:[(0,t.jsx)(Eu.E,{scroll:T==null?void 0:T.hotAttr.scroll,handleChange:ue}),(T==null?void 0:T.hotAttr.scroll)!==ar.Ci.hide&&(0,t.jsx)(Lu.W,{showScrollBar:T==null?void 0:T.hotAttr.showScrollBar,handleChange:ue})]})}),Du=s.Ay.div.withConfig({displayName:"indexui__StyledTemplatePanel",componentId:"sc-1jglpx4-0"})(["&.state-scroll-container{padding-top:8px;border-top:1px solid ",";}"],m=>m.theme.color_bg_border_01),ku=m=>{let{children:y}=m;return(0,t.jsx)(t.Fragment,{children:y})},Ou={component:Nu,params:{showSinglePanelState:!0},getter:[m=>{let{selectedItems:y}=m;const T=y[0];return{showSinglePanelState:y.length===1,panel:T}}],setter:{onChange:gt.c}},Ru=()=>[ku,[Ou,"TemplateInfo"]];var Bu=e(37505);const ju=["children"];class Wu extends h.Component{shouldComponentUpdate(y,T,R){return this.props.isDraggingItem?!1:(0,F.N)(ju).call(this,y,T)}render(){return(0,t.jsx)("div",{children:this.props.children})}}class Fu extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleCanvasAttrsChanged",(y,T)=>{const{onChange:R,dispatch:q,selections:se}=this.props;R({value:y,attr:"fill",dispatch:q,selections:se}),(0,_e.A9)({attr:"fill"})}),(0,i.A)(this,"handleVisibleChanged",y=>{const{canvasAttrs:{fill:T}}=this.props,R={...T,fillIsVisible:y};this.handleCanvasAttrsChanged(R,"fill")})}render(){const{canvasAttrs:y,refStyles:T}=this.props,{fill:R}=y;return(0,t.jsx)(Vu,{title:I18N.SettingPanel.inspector.artboard_bgcolor,className:"bgcolor-body",children:(0,t.jsx)("section",{type:"screen-body",children:(0,t.jsxs)("div",{className:"screen-bg-line height-32 margin-left-n6",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(St.A,{className:St.p,attr:"isVisible",isChecked:R==null?void 0:R.fillIsVisible,onChange:q=>this.handleVisibleChanged(q)}),(0,t.jsx)("label",{className:"left-label background-label",children:I18N.SettingPanel.fill})]}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:"fill",attr:"solidColor",color:R,pIsSolidColorOnly:!0,refStyles:T,onChange:this.handleCanvasAttrsChanged})]})})})}}const Vu=(0,s.Ay)(rn.A).withConfig({displayName:"CanvasColorPanelui__StyledCanvasColorPanel",componentId:"sc-rue2dl-0"})(['&.bgcolor-body{[type="screen-body"]{padding:0 10px 0 16px;}.screen-bg-line{display:flex;align-items:center;',";.left-label{height:14px;color:",";line-height:14px;white-space:nowrap;}}}"],Oi.B3,m=>m.theme.color_text_L2),Hu={component:Fu,params:{},getter:[m=>{let{selectedItems:y}=m;const T=y[0],R=(0,it.i)(y,"refStyles");return{canvasAttrs:T.hotAttr,refStyles:R}}],setter:{onChange:gt.c}},Uu=()=>[Wu,[Hu,"CanvasColorInfo"]],md=s.Ay.div.withConfig({displayName:"styles__StyledVectorEditingPanel",componentId:"sc-1ytj3wh-0"})(["width:240px;color:",";.layer-info{margin:0;}.general-line{display:flex;align-items:center;padding-left:10px;.general-input{flex:0 0 66px;display:flex;justify-content:space-between;align-items:center;&:not(:last-child){margin-right:8px;}}.active{background:#1A70D8;}}.rows{display:flex;padding-left:15px;align-items:center;&.with-line{border-top:1px solid ",";height:48px;padding-top:8px;}&.is-disabled-setting{opacity:0.4;cursor:not-allowed;}.rows-title{color:",";margin-right:12px;&:lang(en){margin-right:8px;}}.rows-content{flex:1;height:24px;&.point{&:lang(en){margin-left:8px;}}}.flex{padding-right:10px;height:28px;display:flex;flex-direction:row;justify-content:space-between;color:",";align-items:center;.slider .rail{width:116px;&:lang(en){width:104px;}}&.hide-radius{color:#eee;}.input-with-no-title{position:relative;flex:0 0 49px;font-size:12px;}}&.with-line{position:relative;align-items:center;width:100%;label{padding:8px 0;margin-right:14px;.col-resize{margin-left:6px;&.no-title{width:5px;margin:0;}}}}&.first-line{&::after{content:'';position:absolute;left:-16px;right:-16px;bottom:-10px;height:1px;background-color:#ededed;}}&.second-line{&::after{content:'';position:absolute;left:0;right:0;bottom:-16px;height:1px;background-color:#ededed;}}}.point-type{display:inline-flex;justify-content:center;align-items:center;border-radius:4px;cursor:pointer;width:40px;height:24px;margin-right:6px;&.active{background-color:",";color:#fff;path,circle{fill:#fff;}}&.disabled{cursor:not-allowed;}svg.svg-icon{width:40px;height:24px;}&:lang(en){width:36px;}&:nth-last-of-type(1){margin-right:0;}&:not(.active):not(.disabled):hover{background-color:",";}}.setting-btn{width:96px;&:not(:nth-last-of-type(1)){margin-right:16px;}}.seperate-set-area{display:flex;.seperate-input{border:solid 1px rgba(204,204,204,0.3);border-radius:0;font-size:12px;&:nth-of-type(1){border-radius:2px 0 0 2px;}&:nth-last-of-type(1){border-radius:0 2px 2px 0;}&:not(:nth-of-type(1)){margin-left:-1px;}input{width:32px;}}}.normal-h{height:40px;}"],m=>m.theme.color_text_L2,m=>m.theme.color_bg_border_02,m=>m.theme.color_text_L1,m=>m.theme.color_text_L1,m=>m.theme.color_proto,m=>m.theme.color_btn_secondary_active),Ku=m=>{let{children:y}=m;return(0,t.jsx)(md,{children:y})};var Zs=e(18637),fd=e(30728);function zu(m,y){if(m.length===0)return;const T=y(m[0]);if(m.every(R=>y(R)===T))return T}function nc(m,y){if(m.length===0)return null;const T=y(m[0]);return m.every(R=>Math.abs(y(R)-T)<1e-5)?T:null}class Gu extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"pointTypeList",[{type:Zs.pQ.Straight,icon:"setting_panel/vector/pointType/straight",title:I18N.SettingPanel.vectorSetting.pointType.straight},{type:Zs.pQ.Mirrored,icon:"setting_panel/vector/pointType/mirrored",title:I18N.SettingPanel.vectorSetting.pointType.mirrored},{type:Zs.pQ.Asymmetric,icon:"setting_panel/vector/pointType/asymmetric",title:I18N.SettingPanel.vectorSetting.pointType.asymmetric},{type:Zs.pQ.Disconnected,icon:"setting_panel/vector/pointType/disconnected",title:I18N.SettingPanel.vectorSetting.pointType.disconnected}]),(0,i.A)(this,"changeToVector",()=>{const{vectorWidget:{key:y,hotAttr:{type:T}},dispatch:R}=this.props;if(T!==P.x.WVector){const q=[{key:y,hotAttr:{type:P.x.WVector}}];R({type:"entry:widget:change",payload:{flatChgList:q}})}}),(0,i.A)(this,"handleChangePosition",(y,T,R,q)=>{this.changeToVector();const{vectorEditor:{selectedIndex:se,selectedAssistIndex:ue},vectorWidget:{key:Ne,hotAttr:{vector:Ge}},vectorTransform:at,dispatch:dt}=this.props;if(se.length<1)return;const Bt=[...Ge.points];if(se.length===1&&ue){const{x:kt,y:qt}=Bt[se[0]],sn=Bt[se[0]][ue],{x:jn,y:Dn}=at.clone().apply({x:kt+sn.x,y:qt+sn.y});let lo;T==="X"&&(lo={x:y,y:Dn}),T==="Y"&&(lo={x:jn,y});const Wo=at.inverted().apply(lo);Bt[se[0]]=(0,Zs.Yw)(Bt[se[0]],ue,{x:Wo.x-kt,y:Wo.y-qt})}else T==="X"&&se.map(kt=>{const qt=Bt[kt],{x:sn,y:jn}=at.clone().apply({x:qt.x,y:qt.y}),{x:Dn,y:lo}=at.inverted().apply({x:y,y:jn});Bt[kt]={...qt,x:Dn,y:lo}}),T==="Y"&&se.map(kt=>{const qt=Bt[kt],{x:sn,y:jn}=at.clone().apply({x:qt.x,y:qt.y}),{x:Dn,y:lo}=at.inverted().apply({x:sn,y});Bt[kt]={...qt,x:Dn,y:lo}});dt({type:"entry:vector:update:vector",payload:{vector:{...Ge,points:Bt}}})}),(0,i.A)(this,"handlePointType",y=>{this.changeToVector();const{vectorEditor:{selectedIndex:T,selectedAssistIndex:R},vectorWidget:{key:q,hotAttr:{vector:se}},dispatch:ue}=this.props;if(T.length>0){const Ne=y.currentTarget.dataset.pointType,Ge=[...se.points];T.map(at=>{const dt=Ge[at].type;if(Ne===Zs.pQ.Straight)Ge[at]={...Ge[at],type:Ne,next:fd.Z.zero,prev:fd.Z.zero};else if(dt===Zs.pQ.Straight){const{prev:Bt,next:kt}=(0,Zs.wX)(Ge,at);Ge[at]={...Ge[at],type:Ne,prev:Bt,next:kt}}else if(dt===Zs.pQ.Mirrored||dt===Zs.pQ.Asymmetric&&Ne===Zs.pQ.Disconnected)Ge[at].type=Ne;else{const Bt=R||"next";Ge[at].type=Ne,Ge[at]=(0,Zs.Yw)(Ge[at],Bt,Ge[at][Bt])}}),ue({type:"entry:vector:update:vector",payload:{vector:{...se,points:Ge}}})}}),(0,i.A)(this,"handleSlider",y=>{const T=Math.round(y);this.changeRadiusValue(T)}),(0,i.A)(this,"changeRadiusValue",(y,T)=>{var R;this.changeToVector();const{vectorEditor:{selectedIndex:q},vectorWidget:{hotAttr:{vector:se,refVars:ue}},dispatch:Ne}=this.props,Ge=[...se.points],at=(ue==null||(R=ue.vector)==null?void 0:R.points)||new Array(Ge.length);q.map(dt=>{const Bt=Ge[dt];Ge[dt]={...Bt,radius:y},at[dt]={...at[dt],radius:T}}),Ne({type:"entry:vector:update:vector",payload:{vector:{...se,points:Ge},refVars:{...ue,vector:{...ue==null?void 0:ue.vector,points:at}}}})}),(0,i.A)(this,"handleExitVectorEditor",()=>{this.props.dispatch({type:"entry:vector:exit:edit",payload:{end:B.z9.Exit}})}),(0,i.A)(this,"handleToggleClosed",()=>{const{vectorWidget:{hotAttr:{vector:y,vector:{points:T,closed:R}}},dispatch:q}=this.props;if(!(T.length<3))if(this.changeToVector(),R===!1){const se={...y,closed:!R};q({type:"entry:vector:update:vector",payload:{vector:se}})}else R===!0&&q({type:"entry:vector:open:path"})})}render(){const{vectorWidget:y,vectorEditor:T,vectorTransform:R}=this.props;if(!y||!T)return null;const{selectedIndex:q,selectedAssistIndex:se}=T,{vector:{points:ue,closed:Ne},refVars:Ge}=y.hotAttr,at=q.length<1;let dt="",Bt="",kt="",qt="",sn="",jn=-1,Dn,lo=0,Wo=!0,Zo;if(q.length===1&&ue[q[0]]){var Yo;Dn=ue[q[0]];const{x:qo,y:ds}=Dn;jn=Dn.type,dt=se?qo+Dn[se].x:qo,Bt=se?ds+Dn[se].y:ds;const{x:Es,y:Ps}=R.apply({x:dt,y:Bt});dt=Es.toFixed(2),Bt=Ps.toFixed(2),Dn.type!==Zs.pQ.Straight&&(Wo=!1),lo=Dn.radius,Zo=Ge==null||(Yo=Ge.vector)==null||(Yo=Yo.points)==null||(Yo=Yo[q[0]])==null?void 0:Yo.radius}else if(q.length>1){var is,os,es,ns;const qo=q.map(fs=>ue[fs]),ds=(is=nc(qo,fs=>fs==null?void 0:fs.x))!=null?is:void 0,Es=(os=nc(qo,fs=>fs==null?void 0:fs.y))!=null?os:void 0;dt=ds?R.apply({x:ds,y:0}).x:void 0,Bt=Es?R.apply({x:0,y:Es}).y:void 0,jn=(es=zu(qo,fs=>fs==null?void 0:fs.type))!=null?es:-1,lo=(ns=nc(qo,fs=>fs==null?void 0:fs.radius))!=null?ns:void 0,kt=dt?"":I18N.SettingPanel.multiple_value,qt=Bt?"":I18N.SettingPanel.multiple_value,sn=lo?"":I18N.SettingPanel.multiple_value;const Ps=new Set(q.map(fs=>{var ps;return Ge==null||(ps=Ge.vector)==null||(ps=ps.points)==null||(ps=ps[fs])==null?void 0:ps.radius}));Ps.size===1&&(Zo=Ps.values().next().value)}return(0,t.jsxs)(md,{children:[(0,t.jsxs)("div",{className:p()("general-line","height-32"),style:{marginBottom:8},children:[(0,t.jsx)(Ae.A,{className:"general-input",title:"X",attr:"X",value:dt,disabled:at,min:-99999,max:99999,isNotVerify:!!kt,placeholder:kt,onConfirm:this.handleChangePosition}),(0,t.jsx)(Ae.A,{className:"general-input",title:"Y",attr:"Y",value:Bt,disabled:at,min:-99999,max:99999,isNotVerify:!!qt,placeholder:qt,onConfirm:this.handleChangePosition})]}),(0,t.jsxs)("div",{className:p()({"is-disabled-setting":at},"rows with-line"),children:[(0,t.jsx)("span",{className:"rows-title",children:I18N.SettingPanel.vectorSetting.type}),(0,t.jsx)("div",{className:"rows-content point",children:this.pointTypeList.map((qo,ds)=>(0,t.jsx)(a.A,{content:qo.title,direction:"down",children:(0,t.jsx)("div",{"data-point-type":qo.type,className:p()({active:jn===qo.type,disabled:at},"point-type"),onClick:this.handlePointType,children:(0,t.jsx)(x.C,{name:qo.icon,isDisabled:at})})},ds))})]}),(0,t.jsxs)("div",{className:p()({"is-disabled-setting":at},"rows","normal-h"),children:[(0,t.jsx)("span",{className:"rows-title",children:I18N.SettingPanel.inspector.radius}),(0,t.jsx)("div",{className:p()("rows-content flex",{"hide-radius":!Wo}),children:(0,t.jsx)(we.Yw,{type:"number",inputClassName:"input-with-no-title",refVar:Zo,value:lo,showCursorResize:!0,disabled:!Wo,min:0,max:9999,isNotVerify:!!sn,placeholder:sn,onChange:this.changeRadiusValue,onConfirm:this.changeRadiusValue})})]}),(0,t.jsxs)("div",{className:"rows normal-h",style:{marginTop:8},children:[(0,t.jsx)(Ce.Oc,{type:"secondary",size:"tiny",corner:"soft",className:"setting-btn",disabled:ue.length<3||q.length===0,onClick:this.handleToggleClosed,children:Ne?I18N.SettingPanel.vectorSetting.openPath:I18N.SettingPanel.vectorSetting.closePath}),(0,t.jsx)(Ce.Oc,{type:"primary",size:"tiny",corner:"soft",className:"setting-btn active",onClick:this.handleExitVectorEditor,children:I18N.SettingPanel.vectorSetting.closeEdit})]})]})}}const Zu={component:Gu,params:{},getter:[m=>{let{selectedItems:y,vectorEditor:T}=m;const R=y[0];let q=(0,Zs.YW)(R.key);const se=sdkStore.locUpColdCanvasKey(R.key);if(se){const ue=sdkStore.getHotItem(se),{x:Ne,y:Ge,w:at,h:dt}=ue.hotAttr,Bt=Ne-at/2,kt=Ge-dt/2;q=q.clone().translate({x:-Bt,y:-kt})}return{vectorEditor:T,vectorWidget:R,vectorTransform:q}}]},Yu=()=>[Ku,[Zu,"VectorEditingInfo"]];var xd=e(50365);const Xu=s.Ay.section.withConfig({displayName:"style__StyledTableCellInfo",componentId:"sc-1hybu77-0"})([".general-line{border-top:1px solid ",";height:48px;align-items:center;&.tableCellWH{display:flex;border-top:none;padding:0 8px;label{&:first-child{margin-right:10px;}}}&.colorBtnWarp{display:flex;[type=color-btn]{margin-left:20px;}.thumbnail{width:14px;}}}"],m=>m.theme.color_bg_border_01),$u=m=>{let{width:y,height:T,dispatch:R}=m;const q=(se,ue)=>{se&&R({type:"entry:flow:change:width-height",payload:{value:se,attr:ue}})};return(0,t.jsxs)("div",{className:"general-line tableCellWH",children:[(0,t.jsx)(Ae.A,{className:"general-input step-input-width-72",title:"W",attr:"width",value:y,min:16,max:999,onConfirm:q}),(0,t.jsx)(Ae.A,{className:"general-input step-input-width-72",title:"H",attr:"height",value:T,min:16,max:999,onConfirm:q})]})},Qu=(0,h.memo)($u),Ju=m=>{let{children:y}=m;return(0,t.jsx)(Xu,{children:y})},qu={component:Qu,params:{},getter:[m=>{let{selectedItems:y,swimlaneSelectedCellsInfo:T}=m;const R=y[0],{tl:q}=T,{database:se,swimlaneType:ue}=R.hotAttr,{heightList:Ne,widthList:Ge}=se;let at=Ge[q.x],dt=Ne[q.y];return q.x===0&&q.y===0?ue==="topBottom"?(at=Ge[0],dt=(0,xd.PM)(Ne)):(at=(0,xd.PM)(Ge),dt=Ne[0]):ue==="topBottom"&&(dt=Ne[q.y-1],at=Ge[q.x+1]),{width:at,height:dt}}],setter:{}},e0=()=>[Ju,[qu]],yd=s.Ay.div.withConfig({displayName:"style__StyledInputContainer",componentId:"sc-1xym3na-0"})(["border-top:1px solid ",";display:flex;padding:8px 16px;flex-direction:column;.appearance-line{display:flex;align-items:center;justify-content:space-between;color:",";.left-label{height:14px;color:",";line-height:14px;white-space:nowrap;}.right-content{width:140px;}.placeholder-color,.placeholder-text{width:150px;}.input-type-select{width:140px;}}.placeholder-text{position:relative;&:hover{.is-icon-button .icon-bind{display:block;}}}.is-icon-button{position:absolute;left:-9px;top:-9px;.toolbar-dropdown-opener.is-open{height:36px;}&:hover + input{border-color:",";}&.is-active + input{border-color:",";}}"],m=>m.theme.color_bg_border_01,m=>m.theme.color_text_L2,m=>m.theme.color_text_L2,m=>m.theme.color_bg_border_02,m=>m.theme.color_proto),t0=(0,h.memo)(m=>{let{inputType:y,onChange:T,dispatch:R,supAttr:q,selections:se}=m;const ue=(Ge,at)=>{T({value:Ge,attr:at,dispatch:R,supAttr:q,selections:se})},Ne=[{label:I18N.SettingPanel.text,value:"text"},{label:I18N.SettingPanel.password,value:"password"},{label:I18N.SettingPanel.number,value:"tel"},{label:"Email",value:"email"},{label:I18N.SettingPanel.date,value:"date"},{label:I18N.SettingPanel.time,value:"time"},{label:I18N.SettingPanel.datetime,value:"datetime-local"}];return(0,t.jsx)(yd,{children:(0,t.jsxs)("div",{className:"appearance-line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.input_type}),(0,t.jsx)("div",{className:"right-content input-type",children:(0,t.jsx)(Be.mq,{className:"select input-type-select",attr:"inputTypes",optionList:Ne,value:y,onChange:ue})})]})})});class vd extends h.PureComponent{render(){return(0,t.jsx)("div",{children:this.props.children})}}const n0={component:t0,params:{},getter:[m=>{let{selectedItems:y}=m;const{inputTypes:T}=(0,it.i)(y,"textInput");return{inputType:T,supAttr:"textInput"}}],setter:{onChange:gt.c}},o0=()=>[vd,[n0,"InputTypeKeyboardInfo"]];var s0=e(60312);const i0=s.Ay.input.withConfig({displayName:"style__StyledPlacerholderInput",componentId:"sc-1g9zj7t-0"})(["width:140px;height:28px;border-radius:4px;padding:0 6px;color:",";border:1px solid transparent;&:hover{border:1px solid ",";}&:focus{border:1px solid ",";outline:1px solid ",";outline-offset:-2px;}"],m=>m.theme.color_text_L1,m=>m.theme.color_bg_border_02,m=>m.theme.color_proto,m=>m.theme.color_proto),a0={component:(0,h.memo)(m=>{let{text:y,textColor:T,refVar:R,onChange:q,dispatch:se,inputTypes:ue,selections:Ne}=m;const[Ge,at]=(0,h.useState)(!1),dt=(Dn,lo)=>{q({value:Dn,attr:lo,dispatch:se,supAttr:"textV0",selections:Ne})},Bt=Dn=>{q({value:Dn.target.value,attr:"text",dispatch:se,supAttr:"textV0",selections:Ne})},kt=(Dn,lo)=>{q({value:Dn,refVar:lo,attr:"text",dispatch:se,supAttr:"textV0",selections:Ne})},qt=(0,Lt.fP)(Ne[0]),sn=Dn=>{if(at(!0),typeof qt=="function"){var lo;qt(),(lo=Dn.target)==null||lo.blur()}},jn=()=>{at(!1)};return(0,t.jsxs)(yd,{children:[!(0,s0.PD)({textInput:{inputTypes:ue}})&&(0,t.jsxs)("div",{className:"appearance-line first-row height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.textInput.defaultPrompt}),(0,t.jsxs)("div",{className:"right-content placeholder-text",children:[!Ge&&(0,t.jsx)(we.Yw,{type:"string",value:y,refVar:R,isIconButton:!R,showName:!0,onChange:kt,disabled:qt!==void 0}),!R&&(0,t.jsx)(i0,{onFocus:sn,onBlur:jn,type:"text",value:y,onChange:Bt})]})]}),(0,t.jsxs)("div",{className:"appearance-line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.textInput.promptColor}),(0,t.jsx)("div",{className:"right-content placeholder-color",children:(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:"textV0",attr:"textColor",color:T,pIsSolidColorOnly:!0,onChange:dt})})]})]})}),params:{},getter:[m=>{let{selectedItems:y}=m;const{inputTypes:T}=(0,it.i)(y,"textInput"),{text:R,textColor:q}=(0,it.i)(y,"textV0"),se=(0,Wt.xj)(y,"textV0",["text"]);return{text:R,textColor:q,inputTypes:T,refVar:se==null?void 0:se.text}}],setter:{onChange:gt.c}},bd=()=>[vd,[a0,"InputPlaceholderInfo"]],Cd="icon_flip",r0=(0,h.memo)(m=>{const[y,T]=(0,h.useState)((0,vt.Yt)(Cd,!0,vt.qW.Boolean)),R=(0,h.useCallback)(()=>{(0,vt.a0)(Cd,!y,vt.qW.Boolean),T(!y)},[y,T]);return(0,t.jsx)(rn.A,{collapse:!y,title:I18N.SettingPanel.icon,onChange:R,children:m.children})});var l0=e(46464),c0=e(36050),d0=e(15305);const p0=s.Ay.div.withConfig({displayName:"styles__StyledIconFlipSettingsPanel",componentId:"sc-sx8pjy-0"})(["display:flex;flex-direction:column;transition:height 200ms ease-in-out 0s;padding:0 16px;&.isMuban{padding-bottom:14px;}.line{display:flex;justify-content:space-between;align-items:center;min-height:",";.left-label{height:14px;color:",";line-height:14px;}.panel-icon-info{display:flex;align-items:center;width:140px;color:",";border:1px solid ",";padding-right:6px;border-radius:4px;height:28px;cursor:pointer;&:hover{background-color:",";}&:active{background-color:",";}.icon{width:16px;height:16px;margin:0 6px;&.svg-icon-path-icon{",";}}.ant-icon{width:16px;height:16px;margin:0 6px;}.panel-icon-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}}.icon-flip-buttons{display:flex;align-items:center;.image-mirror-h-s,.image-mirror-v-s{border-radius:4px;cursor:pointer;&:hover{background-color:",";}&:active{background-color:",";}path{&:nth-child(1){fill:",";}&:nth-child(2){fill:",";}}}.image-mirror-h-s{margin-right:6px;}}"],"22px",m=>m.theme.color_text_L2,m=>m.theme.color_text_L2,m=>m.theme.color_background_icon_active,m=>m.theme.color_background_icon_hover,m=>m.theme.color_background_icon_active,d0.T,m=>m.theme.color_background_icon_hover,m=>m.theme.color_background_icon_active,m=>m.theme.color_text_L1,m=>m.theme.color_text_disabled01),h0={component:(0,h.memo)(m=>{let{view_box:y,path:T,svgAttr:R,iconName:q,isMuBan:se,dispatch:ue}=m;const[Ne,Ge]=(0,h.useState)(!1),[at,dt]=(0,h.useState)({top:null});(0,h.useEffect)(()=>{Ne&&ue({type:"entry:toggle:icon-select-popup",payload:{iconName:q,source:ae.Z.iconWidgetSettingPanel}})},[Ne,ue]);const Bt=(0,h.useCallback)((jn,Dn)=>{const{iconName:lo,iconDisplayName:Wo}=(0,c0.RU)(jn);ue({type:"entry:items:set:icon",payload:{icon:jn,iconName:lo,iconDisplayName:Wo,isMultiColorIcon:Dn}})},[ue]),kt=(0,h.useCallback)(jn=>{jn.nativeEvent.stopImmediatePropagation();const Dn=jn.currentTarget.getBoundingClientRect();dt({top:Dn==null?void 0:Dn.top}),Ge(!0),ue({type:"entry:toggle:icon-select-popup",payload:{iconName:q,source:ae.Z.iconWidgetSettingPanel}}),Da({source:"icon"})},[ue,q]),qt=(0,h.useCallback)(()=>{ue({type:"entry:image-view:horizontal-flip",payload:{isImage:!1}})},[ue]),sn=(0,h.useCallback)(()=>{ue({type:"entry:image-view:vertically-flip",payload:{isImage:!1}})},[ue]);return(0,t.jsxs)(p0,{className:se&&"isMuban",children:[(0,t.jsxs)("div",{className:"line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.replace_icon}),(0,t.jsxs)("div",{className:"panel-icon-info",onClick:kt,children:[(0,t.jsx)(l0.D,{view_box:y,path:T,svgAttr:R}),(0,t.jsx)("span",{className:"panel-icon-content",children:q})]})]}),!se&&(0,t.jsxs)("div",{className:"icon-flip-buttons height-32",children:[(0,t.jsx)(a.A,{content:I18N.SettingPanel.horizontal_flip,direction:"down",children:(0,t.jsx)(Ia,{className:"image-mirror-h-s",size:24,onClick:qt})}),(0,t.jsx)(a.A,{content:I18N.SettingPanel.vertical_flip,direction:"down",children:(0,t.jsx)(Ma,{className:"image-mirror-v-s",size:24,onClick:sn})})]}),Ne&&(0,t.jsx)(ne.A,{emitBaseRect:at,onSetCurrentNodeIcon:Bt,onClose:()=>Ge(!1)})]})}),params:{},getter:[m=>{let{selectedItems:y}=m;const T=(0,it.i)(y,"iconData"),R=y.map(se=>se.key),q=(0,g.td)(R)||(0,g.bp)(y);return{view_box:T==null?void 0:T.viewBox,path:T==null?void 0:T.path,svgAttr:T==null?void 0:T.svgAttr,iconName:(T==null?void 0:T.iconName)||"",isMuBan:q}}],setter:{}},u0=()=>[r0,[h0,"IconFlipPanel"]],g0=s.Ay.section.withConfig({displayName:"styles__StyledTreeSettingPanel",componentId:"sc-1690x29-0"})(['.sub-panel{[type="panel-body"]{.panelItem{display:flex;margin-bottom:16px;&.boxShowPanelItem{flex-direction:column;}&.otherMargin{margin-bottom:12px;}&:last-child{margin-bottom:0;}}}}.divider{height:1px;border-top:1px solid ',";}.select-node-setting{border-top:none;}"],m=>m.theme.color_bg_border_01),m0=["children"];class f0 extends h.Component{shouldComponentUpdate(y,T,R){return this.props.isDraggingItem?!1:(0,F.N)(m0).call(this,y,T)}render(){return(0,t.jsx)(g0,{children:this.props.children})}}const Sd="mp_"+"nav_selected_panel";class x0 extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)(Sd,!0,vt.qW.Boolean)}),(0,i.A)(this,"handleSubChange",()=>{const{show:y}=this.state;(0,vt.a0)(Sd,!y,vt.qW.Boolean),this.setState({show:!y})}),(0,i.A)(this,"updateFamilyVersion",()=>{const{onChange:y,dispatch:T,selections:R}=this.props;y({value:1,attr:"!ffVersion",dispatch:T,selections:R})}),(0,i.A)(this,"handleChange",y=>{let{value:T,attr:R,refVar:q}=y;if(R==="fontFamily"&&this.updateFamilyVersion(),R==="fontStyle"){const se=T==="italic";this.props.handleChange(se,"italic");return}this.props.handleChange(T,R,q)})}render(){const{selectNode:y,selections:T,dispatch:R,onChange:q,isMissFont:se,cloudFontLocalList:ue,refVars:Ne}=this.props,{show:Ge}=this.state,at=y.bold?"bold":"regular",dt=Number(y.bold),Bt=y.italic?"italic":"normal";return(0,t.jsx)(rn.A,{collapse:!Ge,title:"\u9009\u4E2D\u9879\u6587\u672C",onChange:this.handleSubChange,className:"select-node-setting",children:(0,t.jsxs)(Nn.M,{children:[(0,t.jsx)(Bn.X,{fontWeight:y.fontWeight,fontFamily:y.fontFamily,onChange:this.handleChange,wbiVersion:3,fontStyle:Bt,isMissFont:se,supAttr:"wTree-selectNode",dispatch:R}),(0,t.jsx)(Ao.L,{textColor:y.textColor,boldType:dt,colorAttr:"textColor",fontSize:y.fontSize,fontStyle:Bt,fontWeight:at,isDisabledFontRadioLine:!1,isRichText:!1,isTextEditing:!1,newOverOld:!0,onChange:q,onFontDirectionChange:()=>{},supAttr:"selectNode",textDecoration:y.textDecoration,boldAttr:"boldType",canShowBIUS:!0,fontFamily:y.fontFamily,fontStyleAttr:"italic",isTableCell:!1,selections:T,hasMissFontHi:se,cloudFontLocalList:ue,dispatch:R,refVars:Ne,attrPanel:"selectNodeText"}),(0,t.jsx)(Un.O,{isWRichText:!1,isDisalbeLineHeight:!0,lineHeight:20,hideLineHeight:!0,dispatch:R,onChange:this.handleChange,fontSize:y.fontSize,fontFamily:y.fontFamily,letterSpacing:y.letterSpacing,isMissFont:se,refVars:Ne})]})})}}const _d="nav_selected_panel",wd="mp_"+_d;class y0 extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,vt.Yt)(wd,!0,vt.qW.Boolean)}),(0,i.A)(this,"handleSubChange",()=>{const{show:y}=this.state;(0,vt.a0)(wd,!y,vt.qW.Boolean),this.setState({show:!y})})}render(){const{selectNode:y,handleChange:T}=this.props,{selectNodeBackground:R,isSelectNodeBackgroundVisible:q}=y,{show:se}=this.state;return(0,t.jsx)(rn.A,{collapse:!se,title:I18N.SettingPanel.inspector[_d],onChange:this.handleSubChange,children:(0,t.jsx)("section",{type:"panel-body",className:"navSelectPanelSetting",children:(0,t.jsxs)("div",{className:"panelItem otherMargin margin-left-n6",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(St.A,{className:St.p,attr:"isSelectNodeBackgroundVisible",isChecked:q,onChange:T}),(0,t.jsx)("label",{className:"rightLabel",children:I18N.SettingPanel.menu_setting.bg_color})]}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:"selectNode",attr:"selectNodeBackground",attrPanel:"selectNode",color:R,onChange:T})]})})})}}const v0={component:m=>{let{selectNode:y,onChange:T,selections:R,dispatch:q,isMissFont:se,cloudFontLocalList:ue,refVars:Ne}=m;const Ge=(at,dt,Bt)=>{T({value:at,attr:dt,dispatch:q,supAttr:"selectNode",selections:R,refVar:Bt})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(y0,{selectNode:y,handleChange:Ge}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(x0,{selectNode:y,dispatch:q,onChange:T,selections:R,handleChange:Ge,isMissFont:se,cloudFontLocalList:ue,refVars:Ne})]})},params:{},getter:[m=>{let{selectedItems:y,rootProject:T,hasMissFontHi:R,cloudFontLocalList:q}=m;const se=y[0].hotAttr,{selectNode:ue}=se,Ne=(0,Lt.QT)(ue.fontFamily,ue.fontWeight);return{selectNode:ue,rootProject:T,widgetHotAttr:se,isMissFont:Ne,hasMissFontHi:R,cloudFontLocalList:q,refVars:(0,Wt.xj)(y,"selectNode")}}],setter:{onChange:gt.c}},b0=()=>[f0,[v0,"TreeSettingsPanel"]],C0=s.Ay.section.withConfig({displayName:"styles__StyledTreeSwitche",componentId:"sc-11g0tqv-0"})(["padding:8px 14px 8px 14px;border-top:1px solid ",";color:",";display:flex;align-items:start;position:relative;flex-direction:column;box-sizing:content-box;.line{height:32px;.left-label{width:70px;}.right-content{width:90px;align-items:center;}.Check-label{margin-left:10px;}}.checkbox-color-container{display:flex;flex-direction:column;width:100%;> div{display:flex;justify-content:space-between;align-items:center;margin-left:22px;height:28px;label{margin-right:7px;}}}"],m=>m.theme.color_bg_border_01,m=>m.theme.color_text_L2);var S0=e(59736);const _0=()=>[{text:I18N.SettingPanel.tree_fold_symbol.arrow,value:"arrow"},{text:I18N.SettingPanel.tree_fold_symbol.triangle,value:"triangle"},{text:I18N.SettingPanel.tree_fold_symbol.plus,value:"plus"}],w0=(0,h.memo)(m=>{let{tree:y,onChange:T,dispatch:R,selections:q}=m;const se=(dt,Bt)=>{T({value:dt,attr:Bt,supAttr:"tree",dispatch:R,selections:q})},ue=dt=>{se(dt,"isShowNodeIcon")},Ne=dt=>{se(dt,"isShowCheckbox")},Ge=dt=>{se(dt,"isShowFoldSymbol")},at=dt=>{se(dt,"foldSymbol")};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"line",children:(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(St.A,{label:I18N.SettingPanel.display_icon,isChecked:y.isShowNodeIcon,onChange:ue})})}),(0,t.jsx)("div",{className:"line",children:(0,t.jsx)("div",{className:"right-content checkbox-content",children:(0,t.jsx)(St.A,{label:I18N.SettingPanel.tree.show_checkbox,isChecked:y.isShowCheckbox,onChange:Ne})})}),y.isShowCheckbox&&(0,t.jsxs)("div",{className:"checkbox-color-container",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{children:I18N.SettingPanel.pointerBg}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:"tree",attr:"checkboxNoColor",attrPanel:"selectNode",color:y.checkboxNoColor,onChange:se})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{children:I18N.SettingPanel.pointerFg}),(0,t.jsx)(xo.R_,{mode:"input",className:xo.EY,supAttr:"tree",attr:"checkboxSelectColor",attrPanel:"selectNode",color:y.checkboxSelectColor,onChange:se})]})]}),(0,t.jsxs)("div",{className:"line",children:[(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(St.A,{label:I18N.SettingPanel.tree.fold_symbol,isChecked:y.isShowFoldSymbol,onChange:Ge})}),y.isShowFoldSymbol&&(0,t.jsx)(S0.Z,{optionList:_0(),displayLabel:I18N.SettingPanel.tree_fold_symbol[y.foldSymbol],onChange:at,selectedOption:y.foldSymbol,width:126})]})]})}),I0=m=>{let{children:y}=m;return(0,t.jsx)(C0,{children:y})},T0={component:w0,params:{},getter:[m=>{let{selectedItems:y}=m;return{tree:(0,it.i)(y,"tree")}}],setter:{onChange:gt.c}},A0=()=>[I0,[T0,"TreeSwitchPanel"]],oc={[P.x.WRichText]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[le(m),E.Hy.Text],[(0,At.X)(m),E.Hy.Appearance],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WRect]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[(0,At.X)(m),E.Hy.Appearance],[le(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WOval]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[(0,At.X)(m),E.Hy.Appearance],[le(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WWrap]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WGraph]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common]],[P.x.WStar]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[gs(m),E.Hy.PolygonInfo],[(0,At.X)(m),E.Hy.Appearance],[le(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WPolygon]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[gs(m),E.Hy.PolygonInfo],[(0,At.X)(m),E.Hy.Appearance],[le(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WPlaceholder]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[(0,At.X)(m),E.Hy.Appearance],[le(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WMTooltip]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[(0,At.X)(m),E.Hy.Appearance],[le(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WButton]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[(0,At.X)(m),E.Hy.Appearance],[le(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WButtonSolid]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[(0,At.X)(m),E.Hy.Appearance],[le(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WMTextInput]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[o0(),E.Hy.InputTypePanel],[bd(),E.Hy.InputPlaceholderPanel],[(0,At.X)(m),E.Hy.Appearance],[le(m),E.Hy.Text]],[P.x.WMTextArea]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[bd(),E.Hy.InputPlaceholderPanel],[(0,At.X)(m),E.Hy.Appearance],[le(m),E.Hy.Text]],[P.x.WMSelect]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[(0,At.X)(m),E.Hy.Appearance],[le(m),E.Hy.Text]],[P.x.WIosCB]:m=>[[hn(m),E.Hy.General],[(0,At.X)(m),E.Hy.Appearance]],[P.x.WAndroidRadio]:m=>[[hn(m),E.Hy.General],[(0,At.X)(m),E.Hy.Appearance]],[P.x.WAndroidCB]:m=>[[hn(m),E.Hy.General],[(0,At.X)(m),E.Hy.Appearance]],[P.x.WLine]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[(0,At.X)(m),E.Hy.Appearance],[le(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WArrow]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[(0,At.X)(m),E.Hy.Appearance],[le(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WImage]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[ka(),E.Hy.ImageDrop],[(0,At.X)(m),E.Hy.Appearance],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WTable]:(m,y)=>{const{isSelectTableCell:T}=y;return T?[[(0,Ja.h)(),E.Hy.TableCellPanel],[le(m),E.Hy.Text]]:[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[ma(),E.Hy.TablePanel]]},[P.x.WQRCode]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[Rl(),E.Hy.QRCodePanel],[(0,At.X)(m),E.Hy.Appearance],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WWebpage]:m=>[[hn(m),E.Hy.General],[fl(),E.Hy.WebPagePanel]],[P.x.WAudio]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[Ml(),E.Hy.AudioPanel],[(0,At.X)(m),E.Hy.Appearance],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WVideo]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[Za(),E.Hy.VideoPanel],[(0,At.X)(m),E.Hy.Appearance],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WMFileInput]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common]],[P.x.WCarousel]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[il(),E.Hy.Carousel]],[P.x.WTriangleB]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[(0,At.X)(m),E.Hy.Appearance],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WTriangleTL]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[(0,At.X)(m),E.Hy.Appearance],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WMapView]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common]],[P.x.WLR]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common]],[P.x.WBasket]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[Ru(),E.Hy.TemplatePanel]],[P.x.WIcon]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[u0(),E.Hy.IconFlipPanel],[(0,At.X)(m),E.Hy.Appearance],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WIconButton]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[(0,At.X)(m),E.Hy.Appearance],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WDropMenu]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[ap(),E.Hy.DropMenuPanel],[cs(),E.Hy.OptionDropMenuPanel],[lp(),E.Hy.DropMenuOptionColor],[(0,At.X)(m),E.Hy.Appearance],[le(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WNavigationMenu]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[Vs(),E.Hy.NavigationMenuTypePanel],[hp(),E.Hy.NavigationMenuOtherOptionsPanel],[cs(),E.Hy.OptionNavigationMenuPanel],[zl(),E.Hy.NavigationMenuSettingsPanel],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WNavigationMenuH]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[Vs(),E.Hy.NavigationMenuTypePanel],[cs(),E.Hy.OptionNavigationMenuHPanel],[zl(),E.Hy.NavigationMenuSettingsPanel],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WNavigationMenuV]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[Vs(),E.Hy.NavigationMenuTypePanel],[cs(),E.Hy.OptionNavigationMenuVPanel],[zl(),E.Hy.NavigationMenuSettingsPanel],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WCollapse]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[Qd(),E.Hy.CollapseSwitchOptionsPanel],[cs(),E.Hy.OptionCollapsePanel],[(0,At.X)(m),E.Hy.Appearance],[Ud(),E.Hy.CollapseSettingsPanel],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WSegmentedControl]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[cs(),E.Hy.OptionSegmentedControlPanel],[(0,At.X)(m),E.Hy.Appearance],[Zd(),E.Hy.SegmentedControlPanel],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WTabs]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[cs(),E.Hy.OptionTabsPanel],[Ep(),E.Hy.TabsPanel],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WPaginationMobile]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[(0,At.X)(m),E.Hy.Appearance],[Kc("paginationMobile"),E.Hy.MaxPageNumber],[Rp(),E.Hy.PaginationMobilePanel],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WPaginationWeb]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[(0,At.X)(m),E.Hy.Appearance],[Kc("paginationWeb"),E.Hy.MaxPageNumber],[Bp(),E.Hy.PaginationWebPanel],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WDigitalStepper]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[Hp(),E.Hy.DigitalStepperPanel],[(0,At.X)(m),E.Hy.Appearance],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WSlider]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[th(),E.Hy.SliderPanel],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WMobileTabBars]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[bp(),E.Hy.MobileTabBarsSwitchOptionsPanel],[cs(),E.Hy.OptionTabsPanel],[(0,At.X)(m),E.Hy.Appearance],[le(m),E.Hy.Text],[ah(),E.Hy.MobileTabBarsPanel],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WAndroidSwitch]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[Dc(),E.Hy.SwitchOptionsPanel],[Oc(),E.Hy.SwitchPanel],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WIOSSwitch]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[Dc(),E.Hy.SwitchOptionsPanel],[Oc(),E.Hy.SwitchPanel],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WSelectionControl]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[ph(),E.Hy.SelectionControlTypeSettingsPanel],[fh(),E.Hy.SelectionControlAttrSettingsPanel],[cs(),E.Hy.OptionTabsPanel],[Ch(),E.Hy.SelectionControlColorSettingsPanel],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WChart]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[Mu(),E.Hy.ChartSettingsPanel],[(0,Eo.X)(),E.Hy.Animation]],[P.x.Canvas]:m=>[[hn(m),E.Hy.General],[Uu(),E.Hy.CanvasColorPanel],[(0,pl.P)(),E.Hy.LayoutGrid],[dl(),E.Hy.StickyArea]],[P.x.CanvasAsOverlay]:m=>[[hn(m),E.Hy.General],[(0,At.X)(m),E.Hy.Appearance]],[P.x.WElbow]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[le(m),E.Hy.Text],[(0,At.X)(m),E.Hy.Appearance]],[P.x.WUnifiedKeyboard]:m=>[[hn(m),E.Hy.General]],[P.x.WIphoneSB]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[(0,At.X)(m),E.Hy.Appearance]],[P.x.WIphoneXSB]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[(0,At.X)(m),E.Hy.Appearance]],[P.x.WAndroidSB]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[(0,At.X)(m),E.Hy.Appearance]],[P.x.WTabItem]:m=>[[hn(m),E.Hy.General]],[P.x.WSearchBar]:m=>[[hn(m),E.Hy.General]],[P.x.WVector]:(m,y)=>{let{vectorEditor:T}=y;return T?[[_o(),E.Hy.General],[Yu(),E.Hy.Common]]:[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[(0,At.X)(m),E.Hy.Appearance],[le(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]]},[P.x.WTriangle]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[(0,At.X)(m),E.Hy.Appearance],[le(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WSwimlane]:(m,y)=>{const{swimlaneIsShallowEditing:T}=y;return T?[[e0(),E.Hy.Common]]:[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common]]},[P.x.wFlowClosed]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[(0,At.X)(m),E.Hy.Appearance],[le(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WFlowOpened]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[(0,At.X)(m),E.Hy.Appearance],[le(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[P.x.WTree]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common],[A0(),E.Hy.TreeSwitchPanel],[cs(),E.Hy.OptionNavigationMenuVPanel],[(0,At.X)(m),E.Hy.Appearance],[le(m),E.Hy.Text],[b0(),E.Hy.NavigationMenuSettingsPanel],[(0,Eo.X)(),E.Hy.Animation]],[E.m9]:m=>[[hn(m),E.Hy.General],[Nt(m),E.Hy.Common]]},P0=m=>{let{selectedItems:y,...T}=m;const R=y[0],q=(oc[(0,g.o9)(R)]||oc[E.m9])(y,{...T});if(y.length===1)return q;{const se=(0,gt.k)({selectedItems:y,settingPanelMap:oc,otherProps:T});return M0({selectedItems:y,baseSettingPanel:q,intersection:se})}},M0=m=>{let{selectedItems:y,baseSettingPanel:T,intersection:R}=m;const q=T.filter(se=>{let[ue,Ne]=se;return R.includes(Ne)});if(y.findIndex(se=>se.hotAttr.type===P.x.WImage)!==-1&&!R.includes(E.Hy.ImageDrop)){const se=q.findIndex(Ne=>{let[Ge,at]=Ne;return at===E.Hy.Animation}),ue=[ka(),E.Hy.ImageDrop];q.splice(se!==-1?se:q.length,0,ue)}if(y.findIndex(se=>Fn.cX.includes(se.hotAttr.type))!==-1&&!R.includes(E.Hy.Text)){const se=q.findIndex(at=>{let[dt,Bt]=at;return Bt===E.Hy.Common}),ue=q.findIndex(at=>{let[dt,Bt]=at;return Bt===E.Hy.General}),Ne=se!==-1?se:ue!==-1?ue:0,Ge=[le(y),E.Hy.Text];q.splice(Ne+1,0,Ge)}if(y.findIndex(se=>Bu.H3.includes((0,g.o9)(se)))!==-1&&!R.includes(E.Hy.Appearance)){const se=q.findIndex(dt=>{let[Bt,kt]=dt;return kt===E.Hy.Common}),ue=q.findIndex(dt=>{let[Bt,kt]=dt;return kt===E.Hy.General}),Ne=q.findIndex(dt=>{let[Bt,kt]=dt;return kt===E.Hy.Text}),Ge=Ne!==-1?Ne:se!==-1?se:ue!==-1?ue:0,at=[(0,At.X)(y),E.Hy.Appearance];q.splice(Ge+1,0,at)}if(y.findIndex(se=>se.hotAttr.type===P.x.WTable)!==-1&&!R.includes(E.Hy.TablePanel)){const se=[ma(),E.Hy.TablePanel];q.splice(q.length,0,se)}return q};var E0=e(87612),sc=e(12410);const L0=s.Ay.div.withConfig({displayName:"styles__StyledWidgetOperationBox",componentId:"sc-1xp98a3-0"})([".widget-operation-icon-box{width:60px;height:28px;border:1px solid ",";&.disabled .svg-icon{color:",";}.svg-icon{width:24px;height:24px;color:",";}}.widget-operation-text{text-align:center;font-size:12px;line-height:16px;margin-top:6px;color:",";}"],m=>m.theme.color_bg_border_02,m=>m.theme.color_text_disabled01,m=>m.theme.color_text_L1,m=>m.theme.color_text_L1),N0=s.Ay.div.withConfig({displayName:"styles__StyledWidgetOperation",componentId:"sc-1xp98a3-1"})(["height:82px;display:flex;align-items:center;border-bottom:1px solid ",";padding:0 16px;justify-content:space-between;"],m=>m.theme.color_bg_border_01),D0=m=>{const{canMove:y,canGroup:T,canUngroup:R,isWidgetOperationLayoutModalIsOpen:q,dispatch:se}=m;(0,h.useEffect)(()=>()=>{var at;(at=MB)==null||(at=at.commonGuideHelper)==null||at.closeAndMarkGuideAsRead(Qe.c.GUIDE_COMMON_V9_OPERATIONS_GUIDE)},[]);const ue=()=>{se({type:"modal:update:state",payload:{widgetOperationLayoutModal:{isOpen:!q}}})},Ne=()=>{se({type:"entry:group:items"}),(0,S.$n)({operationType:S.VW.Combination})},Ge=()=>{se({type:"entry:ungroup:items"}),(0,S.$n)({operationType:S.VW.BreakUp})};return(0,t.jsxs)(N0,{className:""+Qe.c.GUIDE_COMMON_V9_OPERATIONS_GUIDE,children:[(0,t.jsx)(ic,{name:I18N.ToolBar.layout,svgIconName:"setting_panel/widget_operation/layer",disabled:!y,active:q,toolTipDistance:8,onClick:ue}),(0,t.jsx)(ic,{name:I18N.ToolBar.group,svgIconName:"setting_panel/widget_operation/group",disabled:!T,toolTipDistance:8,onClick:Ne}),(0,t.jsx)(ic,{name:I18N.ToolBar.ungroup,svgIconName:"setting_panel/widget_operation/ungroup",disabled:!R,toolTipDistance:8,onClick:Ge})]})},ic=m=>{const{name:y,...T}=m;return(0,t.jsxs)(L0,{children:[(0,t.jsx)($l.A,{className:"widget-operation-icon-box",...T}),(0,t.jsx)("div",{className:"widget-operation-text",children:y})]})},k0=D0,O0=(0,r.Mz)([sc.X.query.getIsShallowEditing,d.p$,be.tP],(m,y,T)=>{let R=!1,q=!1,se=!1;return y.length>0&&(R=(0,g.sQ)(y)&&!m,q=(0,g.kE)(y)&&!m,se=(0,g.P6)(y)&&!m),{canMove:R,canGroup:q,canUngroup:se,isWidgetOperationLayoutModalIsOpen:T}}),R0=(0,n.Ng)(m=>O0(m))(k0),B0=(0,h.memo)(m=>{var y,T;const{selectedItems:R,selections:q,isSelectTableCell:se,swimlaneIsShallowEditing:ue,isDraggingItem:Ne,dispatch:Ge,...at}=m,dt=h.useRef(null),Bt=(0,h.useMemo)(()=>P0({selections:q,selectedItems:R,isSelectTableCell:se,vectorEditor:at.vectorEditor,swimlaneIsShallowEditing:ue}),[se,at.vectorEditor,at.currentAppearRefStyle,at.currentTextRefStyle,q,ue,(y=R[0])==null?void 0:y.hotAttr.type,(T=R[0])==null?void 0:T.hotAttr.basket]);return R.length?(0,t.jsxs)(t.Fragment,{children:[!(se||ue)&&(0,t.jsx)(k,{}),!(se||ue)&&(0,t.jsx)(R0,{}),(0,t.jsxs)(K,{className:"widget-settings",children:[(0,t.jsx)("div",{className:"scroll-container",ref:dt,children:(0,t.jsx)("div",{className:"scroll-content",children:Bt.map(kt=>{let[[qt,...sn],jn]=kt;return(0,t.jsx)(qt,{type:jn,isDraggingItem:Ne,dispatch:Ge,children:sn.map((Dn,lo)=>{const[{component:Wo,params:Zo,getter:Yo,setter:is},os]=Dn,[es,ns]=Yo;try{const qo=es({selections:q,selectedItems:R,...at});let ds={};return ns&&(ds=ns({selections:q,selectedItems:R,...at})),(0,t.jsx)(Wo,{dispatch:Ge,selections:q,...is,...Object.assign({},Zo,qo,ds)},os)}catch(qo){return Ge({type:"entry:update:selection:select:items",payload:{type:"selection:clear"}}),console.log("[fatal]: widget settings error",qo,"type:",os,"data:",Dn,"selections:",q,"otherProps:",at),(0,E0.p)("[fatal]: widget settings",qo),null}})},jn)})})}),(0,t.jsx)(G.yP,{type:"vertical",containerRef:dt,isAutoHideBar:!0})]}),(0,t.jsx)($.A,{})]}):null}),Id=(0,r.Mz)([d.nE,d.p$,c.PL,c.Mj,c.W4,C.zX,o.tR,I.nx,c.lh,c.HW,c.wA,I.jI,I.bt,I.lY,sc.X.query.getIsShallowEditing,sc.X.query.getSelectedCellsInfo,da.MZ,Ri.y.query.getMissFontHiKeySet,Ri.y.query.getCloudFontLocalList,c.pO,u.Dw,u.jj],(m,y,T,R,q,se,ue,Ne,Ge,at,dt,Bt,kt,qt,sn,jn,Dn,lo,Wo,Zo,Yo,is)=>{let{isExperience:os,isLoggedExperience:es,isDesign:ns}=q;const qo=y.length>0,ds=qo?sdkStore.getHotItem(y[0]):null,Es=se&&(ds==null?void 0:ds.hotAttr.type)===P.x.WTable,Ps=qo&&Ge&&Ge===(ds==null?void 0:ds.key),fs=y.some(ps=>lo.has(ps));return{selectedItems:m,selections:y,isSelectTableCell:Es,rootProject:T,isDesign:ns,isExperience:os,isLoggedExperience:es,selectionTableCell:se,isTextEditing:Ps,selectionAttrs:Ne,richTextEditorState:R,currentUser:at,currentOrg:dt,imageProps:{currentImageOperateType:ue},editingPanelCid:Bt,editingPanelRefPage:kt,vectorEditor:qt,swimlaneIsShallowEditing:sn,swimlaneSelectedCellsInfo:jn,layoutV9:Dn,hasMissFontHi:fs,cloudFontLocalList:Wo,isDraggingItem:Zo,currentAppearRefStyle:Yo,currentTextRefStyle:is}}),j0=(0,n.Ng)(m=>Id(m))(B0)},51743:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>h});var n=e(95549),r=e(25582),c=e.n(r),o=e(38502),I=e(67787);const u=9,d=I.Ay.div.withConfig({displayName:"styles__StyledSlider",componentId:"sc-1hg1r6p-0"})(["&.slider{position:relative;width:100%;height:12px;display:flex;align-items:center;cursor:pointer;.rail{position:absolute;top:4px;left:0;width:calc(100% - ","px);height:4px;&::before{content:'';position:absolute;left:0;right:-","px;height:100%;background:",";border-radius:4px;}.fill{position:absolute;left:0;height:100%;background:",";border-radius:3px 0 0 3px;}.slider-btn{position:absolute;width:12px;height:12px;top:-4px;border-radius:50%;background:white;border:1px solid ",";&:hover{background:#ccc;border-color:#ccc;}}}}"],u,u,i=>i.theme.color_btn_secondary_active,i=>i.theme.color_proto,i=>i.theme.color_proto);var C=e(72214);class h extends o.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"setRef",f=>this.wrapper=f),(0,n.A)(this,"_calValue",f=>{const{min:p,max:s}=this.props,{left:l,width:_}=this.wrapper.getBoundingClientRect();let a=(Math.min(1,Math.max(0,(f-l)/_))*s).toFixed(1);return a<p?p:a}),(0,n.A)(this,"handleDown",f=>{const{attr:p,onChange:s,onConfirm:l,onMouseDown:_}=this.props,b=this._calValue(f.clientX);if(_&&_(p),s(b,p),!this.wrapper)return;this.wrapper.querySelector(".slider-btn").classList.add("slider-move");const a=x=>{if(!this.wrapper)return;const g=this._calValue(x.clientX);s(g,p)},M=x=>{if(document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",M),!this.wrapper)return;this.wrapper.querySelector(".slider-btn").classList.remove("slider-move");const g=this._calValue(x.clientX);l(g,p)};a(f.nativeEvent),document.addEventListener("mousemove",a),document.addEventListener("mouseup",M)})}render(){const{value:f,max:p,min:s,width:l}=this.props,_=(f-s)/(p-s),b=_*100+"%";return(0,C.jsx)(d,{type:"slider",ref:this.setRef,style:{width:l},className:"slider",onMouseDown:this.handleDown,children:(0,C.jsxs)("div",{className:"rail",children:[(0,C.jsx)("div",{className:"fill",style:{width:_>0?"calc("+b+" + 1px)":b}}),(0,C.jsx)("div",{className:"slider-btn",style:{left:b}})]})})}}(0,n.A)(h,"propTypes",{attr:c().string,value:c().oneOfType([c().number,c().string]).isRequired,max:c().number.isRequired,min:c().number,width:c().number,onChange:c().func,onConfirm:c().func,onMouseDown:c().func}),(0,n.A)(h,"defaultProps",{value:50,max:100,min:0})},52275:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>ie});var n=e(95549),r=e(38502),c=e(33515),o=e(69374),I=e(17307),u=e(67787);const d=u.Ay.div.withConfig({displayName:"style__StyledLinkHeader",componentId:"sc-5r07sc-0"})(["display:flex;flex-direction:column;padding-top:16px;.link-header{display:flex;align-items:center;justify-content:space-between;padding:0 10px 0 16px;.link-title{color:",";font-weight:500;flex:1;}.action{display:flex;.svg-icon{color:",";}.trash-icon{display:flex;align-items:center;color:",";width:10px;height:12px;&:hover{.svg-icon{color:#298df8;}}}}}.link-info{display:flex;align-items:center;padding:0 16px;&.keydown .title-content .input-key{width:144px;height:28px;display:flex;align-items:center;padding:0 6px;caret-color:transparent;cursor:pointer;border-radius:6px;border:1px solid transparent;outline:none;color:",";&.is-tips{color:",";}&.is-blur-tips{border:1px solid ",";}&:hover{border:1px solid ",";}&:focus{border:2px solid ",";}}.options-opener{width:137px;}.link-name{margin:0 4px;}.arrow-icon{font-size:12px;color:",";transform:rotate(90deg);}}"],oe=>oe.theme.color_text_L1,oe=>oe.theme.color_text_L2,oe=>oe.theme.color_text_L2,oe=>oe.theme.color_text_L1,oe=>oe.theme.color_text_L3,oe=>oe.theme.color_bg_border_02,oe=>oe.theme.color_bg_border_02,oe=>oe.theme.color_btn_primary_normal,oe=>oe.theme.color_text_L3);var C=e(40486),h=e(99566),i=e(16913),f=e(53732),p=e.n(f),s=e(82846),l=e(72214);const _="\u8BF7\u6309\u4E0B\u6309\u952E",b="\u70B9\u51FB\u4EE5\u6309\u4E0B\u6309\u952E",a=oe=>{const{tNodeTrigger:he,onChangeTrigger:ce}=oe,[re,fe]=(0,r.useState)((0,h.qS)(he,!0)[1]),[Se,Me]=(0,r.useState)((0,C.Pn)(re)||_),Ie=(0,r.useRef)(),de=(0,r.useRef)(),xe=(0,r.useMemo)(()=>[_,b].includes(Se),[Se]),Le=(0,r.useMemo)(()=>Se===b,[Se]);return(0,r.useEffect)(()=>{fe((0,h.qS)(he,!0)[1])},[he]),(0,r.useEffect)(()=>{const ve=new s.Ay({targetElement:Ie.current,containerEle:Ie.current,onCompleteCallback:je=>{var We;fe(je),ce((0,h.FK)({interactionTrigger:"keydown",keyseq:je})),(We=Ie.current)==null||We.blur()}});return de.current=ve,()=>{ve.destroyRecording()}},[ce]),(0,r.useEffect)(()=>{var ve;Me((0,C.Pn)(re));const je=()=>Me(_),We=()=>{var we;Me(re?(0,C.Pn)(re):b),(we=de.current)==null||we.clearKeysPressed()},Ae=Ie.current;return Ae&&Ae.addEventListener("focus",je),Ae&&Ae.addEventListener("blur",We),re||(ve=Ie.current)==null||ve.focus(),()=>{Ae&&Ae.removeEventListener("focus",je),Ae&&Ae.removeEventListener("blur",We)}},[re]),(0,l.jsx)("div",{className:"link-info keydown height-32",children:(0,l.jsx)(i.A,{linkTitle:I18N.Interaction.trigger.keydown_key,className:"state-action",children:(0,l.jsx)("div",{ref:Ie,className:p()("input-key",{"is-tips":xe},{"is-blur-tips":Le}),tabIndex:0,children:Se})})})},M=u.Ay.div.withConfig({displayName:"styles__StyledListenerTarget",componentId:"sc-1265d5b-0"})(["display:flex;flex-direction:column;align-items:center;padding:0px 16px;.listener-trigger-target-list{cursor:pointer;&.is-open .options-opener{border:1px solid ",";.expand-icon{color:",";margin-left:auto;}}}"],oe=>oe.theme.color_bg_border_02,oe=>oe.theme.color_text_L1),x=u.Ay.div.withConfig({displayName:"styles__StyledListenerOpener",componentId:"sc-1265d5b-1"})(["width:142px;height:28px;padding-left:4px;border:1px solid transparent;display:flex;align-items:center;border-radius:6px;.placeholder{color:",";}&:hover{border:1px solid ",";justify-content:space-between;.expand-icon{color:",";}}.expand-icon{width:26px;height:26px;flex-shrink:0;color:",";margin-left:4px;}"],oe=>oe.theme.color_text_link_normal,oe=>oe.theme.color_bg_border_02,oe=>oe.theme.color_text_L1,oe=>oe.theme.color_text_L3),g=(0,u.DU)([".DesignDropdownMenu.listener-trigger-target-list .content{padding:0px;width:190px;height:275px;}.design-toolbar-menu .listener-trigger-menu.is-animation{transition:unset;transform:unset;transition-delay:0.1s;}"]);var S=e(87332);const t=u.Ay.div.withConfig({displayName:"styles__StyledListenerDropMenu",componentId:"sc-u45kaq-0"})(["width:220px;height:300px;background:",";box-shadow:",";border-radius:8px;color:",";border:1px solid ",";.var-dropmenu-list{flex:1;.var-item{padding-left:24px;.left .var-icon{margin-right:8px;}}}"],oe=>oe.theme.color_bg_white,oe=>oe.theme.shadow_m,oe=>oe.theme.color_text_L0,oe=>oe.theme.color_bg_border_01),v=u.Ay.div.withConfig({displayName:"styles__StyledListenerTargetSelect",componentId:"sc-u45kaq-1"})(["width:100%;flex:1;overflow-x:auto;overflow-y:auto;list-style:none;color:#fff;pointer-events:all;padding:8px;color:",";.scroll-able-container{min-width:100%;width:max-content;display:flex;flex-direction:column;.dropmenu-no-exit{padding-top:4px;padding-bottom:4px;}}::-webkit-scrollbar-thumb{background-color:",";border-radius:4px;&:hover{background-color:",";}}"],oe=>oe.theme.color_text_L0,oe=>oe.theme.color_bg_border_02,oe=>oe.theme.color_background_split_hover),w=u.Ay.div.withConfig({displayName:"styles__StyledListenerMainMenu",componentId:"sc-u45kaq-2"})(["height:calc(100% - 32px);.lazy-list{height:100%;}.var-menu-open{display:flex;align-items:center;height:28px;padding-left:22px;border-radius:4px;cursor:pointer;&.is-disabled{cursor:not-allowed;opacity:0.5;}&:not(.is-disabled):hover{background:",";}.option-icon{width:20px;height:20px;display:flex;align-items:center;justify-content:center;}span{margin-left:6px;font-size:12px;font-weight:600;}.arrow-right{transform:rotate(180deg);}}.dropmenu-no-exit{padding-top:4px;padding-bottom:4px;}"],oe=>oe.theme.color_btn_secondary_hover),k=u.Ay.div.withConfig({displayName:"styles__StyledBackSelectOption",componentId:"sc-u45kaq-3"})(["display:flex;align-items:center;cursor:pointer;margin:8px 8px 0;height:28px;svg.back{flex-shrink:0;margin:0 2px 0 4px;path{fill:",";}}path{fill:",";}& > .Ellipsis{color:",";}.option-icon{width:20px;height:20px;display:flex;align-items:center;justify-content:center;}span{margin-left:6px;font-size:12px;font-weight:600;}"],oe=>oe.theme.color_text_L1,oe=>oe.theme.color_text_L1,oe=>oe.theme.color_text_L0);var W=e(37841),K=e(28652),G=e(18381),$=e(76613),P=e(89080);const E=oe=>{const{showVarMenu:he,targetWidgetKey:ce,triggerKey:re,wQuery:fe,onWQuery:Se,onSelectWidgetKey:Me,onOpenDropMode:Ie}=oe,de=(0,G.wA)(),xe=(0,r.useRef)(null),{targetItemOptionList:Le}=(0,K.G)({query:fe,keyTriggerItem:re}),ve=I18N.Variable.title.includes(fe);(0,r.useEffect)(()=>{var _e;const Te=ce;return(_e=xe.current)==null||(_e=_e.querySelector('div[role="option"][data-value="'+Te+'"]'))==null||_e.scrollIntoView(!1),()=>{de({type:"set:echo:item",payload:{cid:void 0}})}},[ce,de]);const je=_e=>{de({type:"set:echo:item",payload:{cid:_e===$.rE?re:_e}})},We=_e=>{de({type:"set:echo:item",payload:{cid:void 0}})},Ae=_e=>{Me(_e),Ie(pe.Attr)},we=()=>he&&Ie(pe.Var);return(0,l.jsx)(W.N,{ref:xe,query:fe,setQuery:Se,children:_e=>{let{toToggleCollapsed:Te,keyItemCollapsed:Ye}=_e;return(0,l.jsx)(w,{children:(0,l.jsx)(P.A,{dataList:Le,propsMap:{children:"subHotItemList"},itemHeight:28,activeKey:ce,isCollapsed:Fe=>{let{key:Ve}=Fe;return Ye.includes(Ve)},preItemHeight:ve?28:0,preItemRender:ve&&(0,l.jsxs)("div",{className:p()("var-menu-open",{"is-disabled":!he}),onClick:we,children:[(0,l.jsx)("div",{className:"option-icon",children:(0,l.jsx)(I.C,{size:16,name:"interaction/action/11"})}),(0,l.jsx)("span",{children:I18N.Variable.title}),(0,l.jsx)(I.C,{size:16,name:"sharing/back_to_page_16",className:"arrow-right"})]}),itemRender:Fe=>{let{item:Ve,depth:rt}=Fe;return(0,l.jsx)(W.D,{depth:rt,withSubOptions:!0,optionItem:Ve,shouldRenderChildren:!1,isOptionActive:Ue=>{let{key:et}=Ue;return ce===et},onSelect:Ae,isOptionCollapsed:Ue=>{let{key:et}=Ue;return Ye.includes(et)},isOptionDisabled:Ue=>{let{forDisplayOnly:et}=Ue;return et},onToggleCollapsed:Te,onMouseEnterOption:je,onMouseLeaveOption:We},Ve.key)}})})}})};var H=e(73352),O=e(81973),V=e(9680);const Q=oe=>{const{dropdownRef:he,targetVarKey:ce,varQuery:re,onVarQuery:fe,onSelectVarKey:Se,onOpenDropMode:Me}=oe,Ie=(0,G.d4)(O.ue),[de,xe]=(0,r.useState)(ce?[ce]:[]),Le=(0,r.useRef)(null),ve=ce&&sdkStore.isTrashed(ce)&&(0,V.hZ)(ce),je=(0,r.useMemo)(()=>{const Te=Ie.slice();if(Te.sort((Fe,Ve)=>Fe.hotAttr.zIndex-Ve.hotAttr.zIndex),ve&&ve.isTrashed&&Te.unshift({key:ve.key,hotAttr:ve}),!re)return Te;const Ye=re.toLowerCase();return Te.filter(Fe=>Fe.hotAttr.name.toLowerCase().includes(Ye)||String(Fe.hotAttr.varData).includes(Ye))},[Ie,re,ve]);(0,r.useEffect)(()=>{var Te;const Ye=ce;(Te=Le.current)==null||(Te=Te.querySelector('div.var-item.is-dropmenu[data-cid="'+Ye+'"]'))==null||Te.scrollIntoView(!1)},[ce]);const We=Te=>{if(Ae(),!Te)return Se("");sdkStore.getHotItem(Te)&&Se(Te)},Ae=()=>{var Te;(Te=he.current)!=null&&Te.state.isMenuShow&&he.current.setState({isMenuShow:!1})},we=Te=>{Te?(xe([Te.key]),We(Te.key),Ae()):(xe([]),We(""),Ae())},_e=()=>{Me(pe.Widget)};return(0,l.jsx)(W.N,{ref:Le,query:re,setQuery:fe,children:()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(k,{onClick:_e,children:[(0,l.jsx)(I.C,{size:16,name:"sharing/back_to_page_16",className:"back"}),(0,l.jsx)("div",{className:"option-icon",children:(0,l.jsx)(I.C,{size:16,name:"interaction/action/11"})}),(0,l.jsx)("span",{children:I18N.Variable.title})]}),(0,l.jsx)(H.A,{className:"var-dropmenu-list",list:je,selection:de,onClick:we,isDropMenu:!0})]})})};var N=e(10472),L=e(68677),U=e(62150),A=e(61790),D=e(34999),B=e(43478);const j=oe=>{const{dropdownRef:he,tempWTarKey:ce,targetWidgetKey:re,targetAttrKey:fe,attrQuery:Se,onAttrQuery:Me,onSelectTargetAttr:Ie,onOpenDropMode:de,onTempWTarKey:xe}=oe,Le=(0,G.wA)(),ve=(0,r.useRef)(null),je=sdkStore.getHotItem(ce),We=(0,r.useMemo)(()=>ce===re?fe:"",[ce,re,fe]),Ae=(0,r.useMemo)(()=>(0,B.Y)({keyWidgetSelected:ce,attrQuery:Se,numberArreList:["TL","W","H","TRLX","TRLY","SCLX","SCLY","R","RX","RY","O"]}),[ce,Se]),we=ce&&Ae.length>0;(0,r.useEffect)(()=>{var Ye;const Fe=fe;return(Ye=ve.current)==null||(Ye=Ye.querySelector('div[role="option"][data-value="'+Fe+'"]'))==null||Ye.scrollIntoView(!1),()=>{Le({type:"set:echo:item",payload:{cid:void 0}})}},[fe,Le]);const _e=Ye=>{var Fe;Ie(Ye),(Fe=he.current)!=null&&Fe.state.isMenuShow&&he.current.setState({isMenuShow:!1})},Te=()=>{xe(""),de(pe.Widget)};return(0,l.jsx)(W.N,{ref:ve,query:Se,setQuery:Me,children:()=>we?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(k,{onClick:Te,children:[(0,l.jsx)(I.C,{size:16,name:"sharing/back_to_page_16",className:"back"}),(0,l.jsx)(U.W,{renderItem:je}),(0,l.jsx)(L.A,{children:(0,A.KD)(ce)})]}),(0,l.jsx)(v,{children:(0,l.jsx)("div",{className:"scroll-able-container",children:Ae.map(Ye=>(0,l.jsx)(W.D,{depth:0,withSubOptions:!1,optionItem:Ye,isOptionActive:Fe=>{let{key:Ve}=Fe;return We===Ve},onSelect:()=>_e(Ye.key),isOptionCollapsed:()=>!1,isOptionDisabled:()=>!1,onToggleCollapsed:()=>{},noIcon:!0},Ye.key))})})]}):(0,l.jsx)(D.Q,{query:Se})})},F=oe=>{var he;const{targetAttrKey:ce,dropdownRef:re,targetWKey:fe,targetVarKey:Se="",triggerKey:Me,initDropMode:Ie,onChangeVarTarKey:de=()=>{},onChangeTargetAttr:xe}=oe,[Le,ve]=(0,r.useState)(Ie),[je,We]=(0,r.useState)(fe),[Ae,we]=(0,r.useState)(""),[_e,Te]=(0,r.useState)(""),[Ye,Fe]=(0,r.useState)(""),Ve=!((he=(0,G.d4)(N.r))!=null&&he.isEditingCombo),rt=Xe=>ve(Xe),Ue=Xe=>Xe.stopPropagation(),et=Xe=>We(Xe),lt=Xe=>{xe(Xe,je)},Je=()=>{switch(!0){case(Le===pe.Var&&Ve):return(0,l.jsx)(Q,{dropdownRef:re,targetVarKey:Se,varQuery:Ae,onVarQuery:we,onSelectVarKey:de,onOpenDropMode:rt});case Le===pe.Attr:return(0,l.jsx)(j,{dropdownRef:re,targetAttrKey:ce,tempWTarKey:je,targetWidgetKey:fe,attrQuery:Ye,onAttrQuery:Fe,onSelectTargetAttr:lt,onOpenDropMode:rt,onTempWTarKey:We});default:return(0,l.jsx)(E,{showVarMenu:Ve,targetWidgetKey:fe,triggerKey:Me,wQuery:_e,onWQuery:Te,onSelectWidgetKey:et,onOpenDropMode:rt})}};return(0,l.jsx)(t,{className:"listener-trigger-dropmenu",onClick:Ue,children:Je()})};var Y=e(20089),X=e(91137);const z=oe=>{const{openerMode:he,targetWKey:ce,targetVarKey:re="",targetAttrKey:fe=""}=oe;return(()=>{switch(he){case pe.Widget:{const Me=sdkStore.isTrashed(ce),Ie=Me?I18N.SettingPanel.please_select:(0,A.KD)(ce);return(0,l.jsx)(c.VA,{title:Ie,icon:Me?null:(0,l.jsx)(U.W,{renderItem:sdkStore.getHotItem(ce),targetKey:ce}),isPlaceholder:Me,onShowTipsByTarget:(de,xe)=>{var Le;return((Le=xe.querySelector(".select-title "))==null?void 0:Le.scrollWidth)>80}})}case pe.Attr:return(0,l.jsx)(c.VA,{title:I18N.Expression.exprWattr[fe],icon:fe?(0,l.jsx)(I.C,{size:20,name:"interaction/expression/wattr/"+fe}):null,isPlaceholder:!fe,onShowTipsByTarget:(Me,Ie)=>{var de;return((de=Ie.querySelector(".select-title "))==null?void 0:de.scrollWidth)>80}});case pe.Var:{const Me=sdkStore.isTrashed(re),Ie=(0,V.hZ)(re);return(0,l.jsx)(X.h,{varItem:Ie,isTrashed:Me,showName:!0})}default:return(0,l.jsxs)(x,{className:"empty-opener options-opener",children:[(0,l.jsx)("span",{className:"placeholder",children:I18N.SettingPanel.please_select}),(0,l.jsx)(I.C,{className:"expand-icon",name:"common/expand@26"})]})}})()};var Z=e(88981),J=e(4235),te=e(37780);const ge={distance:0,offsetX:-32},pe={Var:"var",Widget:"widget",Attr:"attr"},Ce=oe=>{let{targetKeyList:he,isListenerTarInvalid:ce}=oe;const[,re,fe=""]=he;if(!re)return{};const Se=sdkStore.getHotItem(re);return Se?Se.hotAttr.type===Y.x.Var?{varKey:re}:ce?{}:{wKey:re,attrKey:fe}:{}},me=oe=>{const{tNodeTrigger:he,isListenerTarInvalid:ce,onChangeTrigger:re}=oe,fe=(0,G.d4)(J.U2),Se=(0,G.d4)(te.R7.query.getSelectItaInfo),Me=(0,G.d4)(te.R7.query.getNewTriggerNodeShowKey),{wKey:Ie="",varKey:de="",attrKey:xe=""}=Ce({targetKeyList:(0,h.Tq)(he,!0),isListenerTarInvalid:ce}),[Le,ve]=(0,r.useState)(Ie),[je,We]=(0,r.useState)(de),[Ae,we]=(0,r.useState)(xe),[_e,Te]=(0,r.useState)(!1),Ye=(0,r.useRef)(null),Fe=(0,r.useRef)(null);(0,r.useEffect)(()=>{ve(Ie),We(de),we(xe);let Ue;return(Se.type==="trigger"||Me)&&(Ue=setTimeout(()=>Te(!Ie&&!de))),()=>{Te(!1),Ue&&clearTimeout(Ue)}},[xe,de,Ie,Se.type,Me]);const Ve=Ue=>{We(Ue),ve(""),re({interactionTrigger:Z.O.Listener,listenTarKey:Ue,listenTarAttr:""})},rt=function(Ue,et){et===void 0&&(et=""),et&&(ve(et),We("")),we(Ue),re({interactionTrigger:Z.O.Listener,listenTarKey:et||Le,listenTarAttr:Ue})};return(0,l.jsxs)(M,{children:[(0,l.jsx)(i.A,{linkTitle:I18N.SettingPanel.design.link_target,className:"listener-trigger",children:(0,l.jsx)(S.A,{className:"listener-trigger-target-list",menuClassName:"listener-trigger-menu",isAnimation:!0,ref:Ye,...ge,isDefaultOpen:_e,renderOpener:(0,l.jsx)(z,{openerMode:je?pe.Var:pe.Widget,triggerKey:fe,targetVarKey:je,targetWKey:Le}),renderMenu:(0,l.jsx)(F,{initDropMode:je?pe.Var:pe.Widget,dropdownRef:Ye,triggerKey:fe,targetVarKey:je,targetWKey:Le,targetAttrKey:Ae,onChangeVarTarKey:Ve,onChangeTargetAttr:rt})})}),Le&&(0,l.jsx)(i.A,{linkTitle:I18N.Interaction.trigger.listener_attr,className:"state-action",children:(0,l.jsx)(S.A,{className:"listener-trigger-target-list",menuClassName:"listener-trigger-menu",isAnimation:!0,ref:Fe,...ge,renderOpener:(0,l.jsx)(z,{openerMode:pe.Attr,triggerKey:fe,targetWKey:Le,targetAttrKey:Ae}),renderMenu:(0,l.jsx)(F,{initDropMode:pe.Attr,dropdownRef:Fe,triggerKey:fe,targetWKey:Le,targetAttrKey:Ae,onChangeVarTarKey:Ve,onChangeTargetAttr:rt})})}),(0,l.jsx)(g,{})]})};var be=e(50320);class ie extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleGesture",he=>{this.props.onChangeTrigger((0,h.FK)({interactionTrigger:he}))}),(0,n.A)(this,"handleTrashClick",()=>{const{handleDelete:he,hasTrash:ce}=this.props;!ce||!he||he()})}render(){var he;const{tNodeTrigger:ce,hasTrash:re,interactionTree:fe,onChangeTrigger:Se}=this.props,Me=(0,h.Jh)(ce);return(0,l.jsxs)(d,{children:[(0,l.jsx)("div",{className:"link-info height-32",children:(0,l.jsx)(i.A,{linkTitle:I18N.Interaction.trigger_desc,className:"state-action",children:(0,l.jsx)(c.Ay,{isPosition2:!0,isOpenerAttrDisabled:!1,menux:"left",title:(0,C.Oz)(Me),icon:(0,l.jsx)(I.C,{size:16,name:"interaction/trigger/"+Me}),className:"link--drop-gesture-list",renderMenu:(0,l.jsx)(o.A,{currentGesture:Me,onSelect:this.handleGesture,interactionTree:fe})})})}),(0,h.Id)(ce)&&(0,l.jsx)(a,{tNodeTrigger:ce,onChangeTrigger:Se}),(0,h.RR)(ce)&&(0,l.jsx)(me,{isListenerTarInvalid:fe==null||(he=fe.sub.find(Ie=>Ie.attr.trigger===ce))==null?void 0:he.attr.isListenerTarInvalid,tNodeTrigger:ce,onChangeTrigger:Se}),(0,h.hn)(ce)&&(0,l.jsx)(be.B,{tNodeTrigger:ce,onChangeTrigger:Se})]})}}},52315:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>U});var n=e(38502),r=e(53732),c=e.n(r),o=Object.defineProperty,I=Object.defineProperties,u=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,i=(A,D,B)=>D in A?o(A,D,{enumerable:!0,configurable:!0,writable:!0,value:B}):A[D]=B,f=(A,D)=>{for(var B in D||(D={}))C.call(D,B)&&i(A,B,D[B]);if(d)for(var B of d(D))h.call(D,B)&&i(A,B,D[B]);return A},p=(A,D)=>I(A,u(D)),s=(A,D)=>{var B={};for(var j in A)C.call(A,j)&&D.indexOf(j)<0&&(B[j]=A[j]);if(A!=null&&d)for(var j of d(A))D.indexOf(j)<0&&h.call(A,j)&&(B[j]=A[j]);return B},_=(0,n.forwardRef)((A,D)=>{var B=A,{size:j,spin:F,style:Y}=B,X=s(B,["size","spin","style"]);const z=f(f({width:j||"var(--x-icon-size, 1em)",height:j||"var(--x-icon-size, 1em)",animation:F?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),Y);return n.createElement("svg",p(f({ref:D,style:z},X),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),n.createElement("path",{d:"M8.03033 6.96967C7.73744 6.67678 7.26256 6.67678 6.96967 6.96967C6.67678 7.26256 6.67678 7.73744 6.96967 8.03033L10.9393 12L6.96967 15.9697C6.67678 16.2626 6.67678 16.7374 6.96967 17.0303C7.26256 17.3232 7.73744 17.3232 8.03033 17.0303L12 13.0607L15.9697 17.0303C16.2626 17.3232 16.7374 17.3232 17.0303 17.0303C17.3232 16.7374 17.3232 16.2626 17.0303 15.9697L13.0607 12L17.0303 8.03033C17.3232 7.73744 17.3232 7.26256 17.0303 6.96967C16.7374 6.67678 16.2626 6.67678 15.9697 6.96967L12 10.9393L8.03033 6.96967Z",fill:"#19191A"}))}),b=e(40042),a=e(63072),M=e(92312),x=e(63239),g=e(75006),S=e(36397),t=e(62448),v=e(20089),w=e(70248),k=e(19249);const W=async(A,D)=>{let{folderCid:B,spaceCid:j}=D;const F={name:A};let Y="/api/design/web_v1/create_design_project";j?Y+="?spaceCid="+j:Y+="?teamCid="+B;const{upperCid:X}=await(0,k.zi)(Y,{newOpt:F}),{project_basic:z}=await(0,k.DE)("/api/upper/web_v1/basics/"+X);return z},K=async A=>(0,k.uz)("/api/dashboard/v5/projects",{cid:A}),G=async A=>{await(0,k.zi)("/api/design/web_v1/sync",{org_cid:A})};var $=e(77337),P=e(70812);const E=A=>{let{pageType:D,canvasKey:B,currentPageKey:j,currentProject:F,trackParam:Y,$projectSelectIframeRef:X,$designIframeRef:z,onClose:Z}=A;const[J,te]=(0,n.useState)(x.l2.uninitialized),[ge,pe]=(0,n.useState)(0),[Ce,me]=(0,n.useState)(null),[be,ie]=(0,n.useState)(""),[oe,he]=(0,n.useState)(navigator.onLine),[ce,re]=(0,n.useState)(!1),{screenTreeData:fe}=(0,x.tb)("B@main"),Se=(0,n.useRef)(!1),Me=(0,n.useRef)(null);(0,n.useEffect)(()=>{const Fe=()=>{he(!0)},Ve=()=>{he(!1)};return window.addEventListener("online",Fe),window.addEventListener("offline",Ve),()=>{window.removeEventListener("online",Fe),window.removeEventListener("offline",Ve)}},[]),(0,n.useEffect)(()=>{if(J===x.l2.pending)if(oe){pe(0);const Fe=Date.now(),Ve=()=>{const rt=Date.now()-Fe;let Ue=0;if(rt<5e3)Ue=rt/5e3*60;else if(rt<1e4)Ue=60+(rt-5e3)/5e3*25;else{const et=(rt-1e4)/1e3;Ue=85+10*(1-Math.exp(-et/10))}pe(Math.min(Ue,95)),Me.current=window.requestAnimationFrame(Ve)};Me.current=window.requestAnimationFrame(Ve)}else te(x.l2.failed);else J===x.l2.succeeded?(pe(100),Me.current!==null&&(cancelAnimationFrame(Me.current),Me.current=null)):(J===x.l2.failed||J===x.l2.uninitialized)&&(Me.current!==null&&(cancelAnimationFrame(Me.current),Me.current=null),J===x.l2.uninitialized&&pe(0));return()=>{Me.current!==null&&(cancelAnimationFrame(Me.current),Me.current=null)}},[J,oe]);const Ie=async Fe=>{const Ve=new g.A(sdkStore,Fe,g.A.MODE.snapshot),rt=Ve.getRootSnapshot(),{hotAttr:{name:Ue}}=rt,et=(0,S.QP)({item:rt,sdk:Ve}),lt=(0,S.Gq)(Ve,Fe,!1,"local"),Je=Math.round(lt[2]-lt[0]),Xe=Math.round(lt[3]-lt[1]),st=document.createElement("div");st.innerHTML=et;const{cssStringList:nt,htmlStringList:tt}=await(0,t.Z)({element:st,width:Je,height:Xe,presetFontsSet:(0,$.cU)(Fe,sdkStore)}),ct='<!DOCTYPE html>\n <html>\n <head>\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <title>'+Ue+"</title>\n <style>\n body {\n margin: 0;\n padding: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;\n }\n body > div > .tree-node.rResCanvas {\n transform: none !important;\n }\n </style>\n "+nt.join("")+"\n </head>\n <body>\n "+tt.join("")+"\n </body>\n </html>",ht=new Blob([ct],{type:"text/html;charset=utf-8"}),It=Ue+".html",Tt=await new File([ht],It,{type:"text/html"}).arrayBuffer();return{blob:ht,arrayBuffer:new Uint8Array(Tt)}},de=async Fe=>{const Ve=(0,x.fY)(Fe),rt=[];for(const Ue of Ve){const{arrayBuffer:et}=await Ie(Ue.key);rt.push(et)}return rt},xe=async()=>{switch(D){case x.g6.SINGLE_CANVAS:if(B){var Fe;const rt=sdkStore.getHotItem(B);if((rt==null||(Fe=rt.hotAttr)==null?void 0:Fe.type)===v.x.Canvas&&!(0,w.OO)(B)){const{arrayBuffer:Ue}=await Ie(B);return Ue}}case x.g6.CURRENT_PAGE:if(j){const rt=sdkStore.getHotItem(j);if(rt){var Ve;const Ue=await de(j);return[{key:j,pageName:rt==null||(Ve=rt.hotAttr)==null?void 0:Ve.name,zip:Ue}]}}case x.g6.ALL_PAGE:return await(0,x.w7)(fe.children,de)}},Le=async(Fe,Ve,rt)=>{ie(Fe),Se.current=rt;try{await G(Ve)}catch(Ue){console.error("syncInfoToPx error",Ue)}},ve=Fe=>{te(x.l2.pending);const{isChecked:Ve,selectedProjectCid:rt,selectedOrgCid:Ue}=Fe;Le(rt,Ue,Ve)},je=async Fe=>{te(x.l2.pending);const{selectedFolderCid:Ve,isChecked:rt,selectedOrgCid:Ue}=Fe,et=(F==null?void 0:F.name)||I18N.dModals.canvas_converted_to_pixso.create,lt=await W(et,{folderCid:Ve});lt!=null&&lt.cid&&(re(!0),Le(lt==null?void 0:lt.cid,Ue,rt))},We=()=>{const Fe="/design/editor/"+be;J===x.l2.succeeded&&be?window.open(Fe,"_blank"):J===x.l2.failed&&(te(x.l2.pending),Te())},Ae=async()=>{te(x.l2.uninitialized),ce&&be&&await K(be),ie(""),re(!1)},we=()=>{J==x.l2.pending?Ae():Z()},_e=()=>{if(J===x.l2.pending)Ae();else{var Fe;X==null||(Fe=X.current)==null||(Fe=Fe.contentWindow)==null||Fe.postMessage({msg:"updateFolderList"},"*"),te(x.l2.uninitialized),ie("")}},Te=async()=>{const Fe=await xe();if(!(!Fe||!(z!=null&&z.current)))switch(D){case x.g6.SINGLE_CANVAS:{var Ve;(Ve=z.current)==null||(Ve=Ve.contentWindow)==null||Ve.postMessage({type:"proto2-export-single-canvas",param:{htmlUint8Array:Fe}},"*");break}}};return{exportStatus:J,exportProgress:ge,exportFailReason:Ce,designProjectCid:be,handleConvertedToFile:ve,handleConvertedAsNewFile:je,handleConfirmed:We,handleCanceled:_e,handleClose:we,handleLoadedDesignIframe:Te,handleUpdaterResult:(Fe,Ve)=>{if(re(!1),D===x.g6.SINGLE_CANVAS&&(0,P.Kr)({...Y,isSuccess:Fe}),Fe){if(te(x.l2.succeeded),Ve&&Se.current){const rt="/design/editor/"+Ve;window.open(rt,"_blank")}}else te(x.l2.failed),me(x.rU.GENERIC)}}};var H=e(25306),O=e(27845),V=e(67787);const Q=V.Ay.div.withConfig({displayName:"styles__ConvertedContainer",componentId:"sc-13eeyi1-0"})(["width:100%;height:100%;position:relative;.project-select-iframe{width:100%;height:100%;border:0;&:not(.uninitialized){display:none;}}.design2-iframe{visibility:hidden;pointer-events:none;position:absolute;top:0;left:0%;pointer-events:none;}.export-status-container{.header{height:50px;padding:18px 20px;display:flex;position:relative;width:100%;align-items:center;justify-content:space-between;border-bottom:1px solid ",";color:",";box-sizing:border-box;z-index:2;background:",";border-top-left-radius:12px;border-top-right-radius:12px;font-size:14px;font-style:normal;font-weight:600;line-height:24px;.title{color:",";}svg{width:24px;height:24px;cursor:pointer;color:",";path{fill:currentColor;}&:hover{color:",";}&:active{color:",";}}}.content-box{display:flex;gap:8px;margin-bottom:32px;align-items:center;justify-content:center;flex-direction:column;margin-top:65px;.export-status-succeeded,.export-status-failed{width:120px;height:120px;}.failed-icon-box{width:120px;height:120px;display:flex;align-items:center;justify-content:center;}.export-status-pending{width:112px;height:112px;transform:rotate(-90deg);circle{cx:56;cy:56;r:50;fill:none;stroke-width:12;&.track{stroke:",";}&.fill{stroke:",";stroke-linecap:round;}}foreignObject{width:100%;height:100%;transform:rotate(90deg);transform-origin:center;font-size:20px;font-weight:500;.export-progress-container{display:flex;width:100%;height:100%;align-items:center;justify-content:center;span{color:",";}}}}span{font-weight:500;color:",";}.beta-desc{color:",";font-weight:400;font-size:12px;line-height:24px;}}.footer{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:24px;button{width:76px;height:36px;border-radius:8px;box-shadow:none;&:not(.ant-btn-primary){border-color:",";color:",";background:",";}}}}"],A=>A.theme.color_bg_border_01,A=>A.theme.color_text_L1,A=>A.theme.color_bg_white,A=>A.theme.color_text_L1,A=>A.theme.color_text_L3,A=>A.theme.color_text_L2,A=>A.theme.color_text_L1,A=>A.theme.color_btn_secondary_hover,A=>A.theme.color_btn_primary_normal,A=>A.theme.color_text_L1,A=>A.theme.color_text_L1,A=>A.theme.color_text_L3,A=>A.theme.color_bg_border_02,A=>A.theme.color_text_L1,A=>A.theme.color_bg_white);var N=e(72214);const U=(0,n.memo)(A=>{var D;const{currentUser:B,currentOrg:j,theme:F,pageType:Y,canvasKey:X,currentPageKey:z,currentProject:Z,from:J,onClose:te}=A,ge=(D=new URLSearchParams(location.search))==null?void 0:D.get("pageType"),pe=Y||([x.g6.SINGLE_CANVAS,x.g6.CURRENT_PAGE,x.g6.ALL_PAGE].includes(ge)?ge:x.g6.ALL_PAGE),Ce=(0,n.useRef)(null),me=(0,n.useRef)(null),be={spaceSelectDisabled:!1,title:I18N.dModals.canvas_converted_to_pixso.title,projectType:"design2",currentOrgCid:(j==null?void 0:j.cid)||"",isShowCheck:!0,checkboxText:I18N.dModals.canvas_converted_to_pixso.checkBoxText,from:"design2",theme:F,folderSubmissionEnabled:!0,showCancel:!1,submitBtnText:I18N.dModals.canvas_converted_to_pixso.submitBtnText,isFromProto:!0},ie=(0,n.useMemo)(()=>{const je=J==="contextMenu"?"\u53F3\u952E\u83DC\u5355":J==="rightPanel"?"\u53F3\u4FA7\u9762\u677F":"";if(Z==null?void 0:Z.is_org_project){if(j){const Ae=H.tz.InitialOrg(j),we=Ae.planSdk.designPlan.status===O._E.Paid,_e=Ae.planSdk.prototypePlan.status===O._E.Paid;return{type:je,isDesignVipUser:we,isProtoVipUser:_e}}}else if(B){const Ae=H.tz.InitialUser(B),we=Ae.planSdk.designPlan.status===O.pZ.Paid,_e=Ae.planSdk.prototypePlan.status===O.pZ.Paid;return{type:je,isDesignVipUser:we,isProtoVipUser:_e}}return{type:je,isDesignVipUser:!1,isProtoVipUser:!1}},[J,j,B,Z]),{exportStatus:oe,exportProgress:he,exportFailReason:ce,designProjectCid:re,handleConvertedToFile:fe,handleConvertedAsNewFile:Se,handleConfirmed:Me,handleClose:Ie,handleCanceled:de,handleLoadedDesignIframe:xe,handleUpdaterResult:Le}=E({pageType:pe,canvasKey:X,currentPageKey:z,currentProject:Z,trackParam:ie,$projectSelectIframeRef:Ce,$designIframeRef:me,onClose:te});(0,n.useEffect)(()=>{const je=async We=>{const{msg:Ae,param:we,type:_e,data:Te}=We.data;if(We.data==="close"){te();return}switch(Ae){case"submit":{fe(we);break}case"submit-folder":{Se(we);break}default:break}switch(_e){case"design2-load-complete":{xe();break}case"design2-proto2-converted-pixso-result":{const{success:Ye,projectCid:Fe}=Te;Le(Ye,Fe);break}default:break}};return window.addEventListener("message",je),()=>{window.removeEventListener("message",je)}},[]);const ve=()=>(0,N.jsxs)("div",{className:"export-status-container",children:[(0,N.jsxs)("div",{className:"header",children:[(0,N.jsx)("div",{className:"title",children:I18N.dModals.canvas_converted_to_pixso.title}),(0,N.jsx)(_,{size:24,onClick:Ie})]}),(0,N.jsxs)("div",{className:"content-box",children:[oe===x.l2.pending?(0,N.jsxs)("svg",{className:"export-status-pending",children:[(0,N.jsx)("circle",{className:"track"}),(0,N.jsx)("circle",{strokeDasharray:50*2*Math.PI,strokeDashoffset:50*2*Math.PI*(1-he/100),className:"fill"}),(0,N.jsx)("foreignObject",{children:(0,N.jsx)("div",{className:"export-progress-container",children:(0,N.jsx)("span",{children:Math.round(he)+"%"})})})]}):oe===x.l2.succeeded?(0,N.jsx)(b.A,{size:120}):oe===x.l2.failed?(0,N.jsx)("div",{className:"failed-icon-box",children:(0,N.jsx)(a.A,{size:56})}):null,(0,N.jsx)("span",{children:oe===x.l2.pending?I18N.dModals.canvas_converted_to_pixso.export_status.pending:oe===x.l2.succeeded?I18N.dModals.canvas_converted_to_pixso.export_status.success:x.zK[ce||x.rU.GENERIC]}),oe===x.l2.pending&&(0,N.jsx)("span",{className:"beta-desc",children:I18N.dModals.canvas_converted_to_pixso.beta_desc})]}),(0,N.jsxs)("div",{className:"footer",children:[(0,N.jsx)(M.Ay,{onClick:de,children:oe===x.l2.pending?I18N.dModule.cancel:I18N.dModals.canvas_converted_to_pixso.export_button.back}),oe===x.l2.succeeded&&(0,N.jsx)(M.Ay,{type:"primary",onClick:Me,children:I18N.dModals.canvas_converted_to_pixso.export_button.check})]})]});return(0,N.jsxs)(Q,{children:[(0,N.jsx)("iframe",{className:c()("project-select-iframe",oe),src:"/embed/project_select?param="+JSON.stringify(be),ref:Ce}),oe!==x.l2.uninitialized&&ve(),re&&(0,N.jsx)("iframe",{className:"design2-iframe",src:"/design/editor/"+re,ref:me})]})})},54449:(He,ee,e)=>{"use strict";e.d(ee,{x:()=>r,z:()=>c});var n=e(38502);const r=o=>{let{ref:I,leftUse:u="right",xOffset:d=0}=o;const[C,h]=(0,n.useState)({isOpenContextMenu:!1,position:{top:0,left:0}}),i=()=>{const l=I.current.getBoundingClientRect();return{top:l.bottom,left:u==="right"?l.right-1:l.left+d}};return{menuStatus:C,handleClick:()=>{h({isOpenContextMenu:!C.isOpenContextMenu,position:i()})},handleClose:l=>{l.target.tagName!=="UL"&&h({...C,isOpenContextMenu:!1})},handleToggle:()=>{h({isOpenContextMenu:!C.isOpenContextMenu,position:i()})}}},c=()=>{const[o,I]=(0,n.useState)(void 0),[u,d]=(0,n.useState)({isOpenContextMenu:!1,position:{top:0,left:0}}),C=(0,n.useCallback)((p,s)=>{I(p),d({isOpenContextMenu:!u.isOpenContextMenu,position:s})},[u.isOpenContextMenu]),h=(0,n.useCallback)(()=>{d({position:{top:0,left:0},isOpenContextMenu:!1})},[]),i=(0,n.useCallback)(p=>{d({isOpenContextMenu:!u.isOpenContextMenu,position:{top:p.clientY,left:p.clientX}})},[u.isOpenContextMenu]),f=(0,n.useCallback)((p,s,l)=>{const{top:_,left:b}=p.getBoundingClientRect(),{top:a,left:M}=s({top:_,left:b});d({isOpenContextMenu:l.forceState,position:{top:a,left:M}})},[u.isOpenContextMenu]);return{menuStatus:u,clickedItem:o,handleClick:C,handleClose:h,handleToggle2:i,handleToggle2ByDom:f}}},54450:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>M});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),I=e(39e3),u=e(88194),d=e(17307),C=e(33573),h=e(69874),i=e(68455),f=e(71272),p=e(68863),s=e(19269),l=e(67787),_=e(51090);const b=l.Ay.li.withConfig({displayName:"styles__StyledLibraryThumbnailListItem",componentId:"sc-wtox56-0"})(["position:relative;width:109px;height:132px;margin-right:8px;margin-bottom:4px;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;cursor:pointer;color:",";","{width:109px;height:109px;border-radius:6px;background:",";&::after{border-radius:6px;border:1px solid ",";}}.item-name{display:flex;width:109px;height:26px;line-height:26px;text-align:center;cursor:text;justify-content:center;.editable-name{width:100%;height:23px;line-height:22px;",";&.is-editing{border-bottom:1px solid #196AD4;}textarea{text-align:center;}}&:not(.is-more-select) > span{&.editable-name:hover{border-bottom:1px solid ",";}}.item-action{display:none;position:absolute;width:14px;height:14px;bottom:8px;right:0;}&.is-more-select{.editable-name{cursor:pointer;}}}&:hover:not(.is-more-select){.item-name{width:94px;width:","}.cannot-edit-library{width:109px;}.item-action{display:flex;}}&.active{opacity:0.5;}"],S=>S.theme.color_text_L3,s.e,S=>S.theme.color_bg_card,S=>S.theme.color_bg_border_01,_.L9,S=>S.theme.color_primary_brand01,S=>S.isEditing?"109px":"94px");var a=e(72214);class M extends r.PureComponent{constructor(t){super(t),(0,n.A)(this,"setElementRef",v=>this.$elem=v),(0,n.A)(this,"updateIsVisible",()=>{this.setState({isVisible:this.isInBoundingClientRect()})}),(0,n.A)(this,"handleConfirm",v=>{const{groupCid:w,item:k,comboActions:{onRename:W}}=this.props;W(k,v,w),this.setState({isEditing:!1})}),(0,n.A)(this,"handleEditName",v=>{v.stopPropagation(),this.setState({isEditing:!0})}),(0,n.A)(this,"handleImport",v=>{v.stopPropagation();const{item:w,comboActions:{onImport:k},isMoreSelect:W}=this.props;!W&&k&&k(v,w)}),(0,n.A)(this,"handleSelect",v=>{v.stopPropagation();const{isMoveAfterClick:w}=this.state;if(w)return;const{item:k,index:W,isSelect:K,comboActions:{onSelect:G,onQuickCreate:$}}=this.props;G&&G(k,!K,v,W),$&&$(k)}),(0,n.A)(this,"handleMouseDown",v=>{v.preventDefault();const{item:w,comboActions:{onMouseDown:k}}=this.props;let W=!0,K=!1;this.setState({isMoveAfterClick:!1});const G=P=>{W&&(K=Math.abs(P.clientX-v.clientX)>5||Math.abs(P.clientY-v.clientY)>5,K&&(this.setState({isDragging:!0}),k&&k(v,w),W=!1))},$=()=>{W=!1,this.setState({isMoveAfterClick:K,isDragging:!1}),K=!1,document.removeEventListener("mousemove",G),document.removeEventListener("mouseup",$)};document.addEventListener("mousemove",G),document.addEventListener("mouseup",$)}),(0,n.A)(this,"handleClick",async v=>{this.timer?(clearTimeout(this.timer),this.timer=null,await this.handleImport(v)):this.timer=setTimeout(async()=>{this.timer=null,await this.handleSelect(v)},f.xG)}),this.state={isVisible:!1,isEditing:!1,isMoveAfterClick:!1,isDragging:!1}}componentDidMount(){this.props.containerRect&&this.updateIsVisible()}componentDidUpdate(t,v){this.updateIsVisible()}isInBoundingClientRect(){const{containerRect:t}=this.props;if(!t||!this.$elem)return!1;const v=this.$elem.getBoundingClientRect();return v.bottom>t.top&&v.top<t.bottom}render(){const{canEditLibrary:t,canAddToOrg:v,currentUserId:w,item:k,isSelect:W,comboActions:K,isMoreSelect:G,createTemplatesData:$}=this.props,{isEditing:P,isVisible:E,isDragging:H}=this.state,{key:O,flpakKey:V,hotAttr:{name:Q}}=k,N=k.sup==="B@ref-muban"?k.hotAttr.defaultCanvasKey:O,L=k.sup==="B@ref-muban"?u.rY.PNG_CANVAS:u.rY.PNG_PAGE,U=(0,p.F)($);return(0,a.jsxs)(b,{className:o()("thumbnail-list-item",{active:(U==null?void 0:U.key)===O||H}),isEditing:P,children:[(0,a.jsxs)(s.e,{ref:this.setElementRef,className:o()("thumbnail-list-item-img combo",{"is-select":W},{"is-more-select":G}),onClick:this.handleClick,onMouseDown:this.handleMouseDown,children:[(0,a.jsx)(C.Ay,{projectMetaCid:V,snapshotKey:N,isVisible:E,mode:L}),t&&!G&&(0,a.jsx)(x,{item:k,isSelect:W,comboActions:K,canAddToOrg:v,canEditLibrary:t,currentUserId:w})]}),(0,a.jsxs)("div",{className:o()("item-name",{"is-more-select":G},{isLayerHover:!P},{"cannot-edit-library":!t}),onClick:this.handleEditName,children:[(0,a.jsx)(h.A,{value:Q,className:"editable-name",isEditing:t&&P,onConfirm:this.handleConfirm},Q),t&&!P&&(0,a.jsx)("div",{className:"item-action",children:(0,a.jsx)(d.C,{name:"general/pen"})})]})]})}}(0,n.A)(M,"defaultProps",{canEditLibrary:!0});class x extends r.PureComponent{constructor(t){var v;super(t),v=this,(0,n.A)(this,"setListElementRef",w=>this.$element=w),(0,n.A)(this,"handleClick",w=>{w.stopPropagation(),this.handleToggle()}),(0,n.A)(this,"handleToggle",function(w){w===void 0&&(w=void 0);const{isListItemGroup:k}=v.state,W=w===void 0?!k:w;v.setState({isListItemGroup:W})}),(0,n.A)(this,"handleDocDown",w=>{var k;let{target:W}=w;const{isListItemGroup:K}=this.state;K&&((k=this.$element)!=null&&k.contains(W)||W.closest(".list-content")||this.handleToggle(!1))}),(0,n.A)(this,"handStopPropagation",w=>{w.stopPropagation()}),this.state={isListItemGroup:!1}}render(){const{currentUserId:t,item:v,isSelect:w,comboActions:k,canAddToOrg:W,canEditLibrary:K}=this.props,{isListItemGroup:G}=this.state,{onEdit:$,onDup:P,onRemove:E,onMove:H,onOrg:O}=k;return(0,a.jsxs)("div",{ref:this.setListElementRef,className:o()("actions",{hover:G}),onMouseDown:this.handStopPropagation,onDoubleClick:this.handStopPropagation,onClick:this.handleClick,children:[(0,a.jsx)("div",{className:"btn-box",children:(0,a.jsx)(d.C,{name:"design/templates/temp-btn",className:"library-menu"})}),G&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g,{isSelect:w,item:v,targetNode:this.$element,onClose:()=>this.handleToggle(!1),currentUserId:t,onRemove:!0?E:null,canAddToOrg:W,canEditLibrary:K,onEdit:$,onDup:P,onMove:H,onOrg:O}),(0,a.jsx)(I.A,{target:document,onMouseDown:(0,I.t)(this.handleDocDown,{capture:!0})})]})]})}}class g extends r.PureComponent{constructor(t){super(t),(0,n.A)(this,"handleMenuItemsEdit",v=>{v.stopPropagation();const{item:w,onEdit:k,onClose:W}=this.props;k(w),W()}),(0,n.A)(this,"handleDup",v=>{v.stopPropagation();const{item:w,onDup:k,onClose:W}=this.props;k(w),W()}),(0,n.A)(this,"handleMove",v=>{v.stopPropagation();const{onMove:w,isSelect:k,item:W,onClose:K}=this.props;w(W,!k),K()}),(0,n.A)(this,"handleRemove",v=>{v.stopPropagation();const{item:w,onRemove:k,onClose:W}=this.props;k(w),W()}),(0,n.A)(this,"handleAddToOrg",v=>{v.stopPropagation();const{item:w,onOrg:k,onClose:W}=this.props;k(w),W()}),this.menuItems=[{isShow:!!t.onEdit,label:I18N.LibraryContainer.edit,onClick:this.handleMenuItemsEdit},{isShow:!!t.onDup,label:I18N.LibraryContainer.make_a_copy,onClick:this.handleDup},{isShow:!!t.onMove,label:I18N.LibraryContainer.move_to,onClick:this.handleMove},{isShow:!!t.onRemove,label:I18N.LibraryContainer.delete,onClick:this.handleRemove},{isShow:!!t.onOrg&&this.props.canAddToOrg,label:I18N.LibraryContainer.add_to_org,onClick:this.handleAddToOrg}]}render(){const{targetNode:t}=this.props;return(0,a.jsx)(i.A,{menuItems:this.menuItems,targetNode:t,direction:"down",distance:2})}}},54460:(He,ee,e)=>{"use strict";e.d(ee,{Jh:()=>s,K3:()=>p,se:()=>C,xq:()=>i});var n=e(67787),r=e(27660),c=e(72214);const o=n.Ay.div.withConfig({displayName:"common__StyledLine",componentId:"sc-18x08ao-0"})(["width:43px;height:2px;color:",";background-repeat:repeat-x;background-position:left center;&.solid{background-image:linear-gradient(to right,currentColor 0%,currentColor 100%,transparent 0%);background-size:43px 1px;}&.dotted{background-image:linear-gradient(to right,currentColor 0%,currentColor 25%,transparent 25%);background-size:4px 1px;}&.dashed{background-image:linear-gradient(to right,currentColor 0%,currentColor 55%,transparent 55%);background-size:22% 1px;}"],l=>l.theme.color_text_L1),I=()=>(0,c.jsx)(o,{className:"border-line solid"}),u=()=>(0,c.jsx)(o,{className:"border-line dotted"}),d=()=>(0,c.jsx)(o,{className:"border-line dashed"}),C=(0,r.R)(()=>[{label:(0,c.jsx)(I,{}),value:"solid",tip_title:I18N.SettingPanel.solid_line},{label:(0,c.jsx)(u,{}),value:"dotted",tip_title:I18N.SettingPanel.dot_line},{label:(0,c.jsx)(d,{}),value:"dashed",tip_title:I18N.SettingPanel.break_line}]),h=l=>l.map(_=>({label:_.toString(),value:_})),i=h([0,1,2,3,4,5,6,7,8,9]),f=h([1,2,3,4,5,6,7,8,9]),p=h([1,2,3,4,5,6,7,8,9,10]),s=h([0,30,45,60,90])},54852:(He,ee,e)=>{"use strict";e.d(ee,{F:()=>r,M:()=>c});var n=e(67787);const r=(0,n.DU)([".DesignDropdownMenu{&.font-options-menu{transition:unset !important;background:",";border:1px solid ",";box-shadow:0 3px 6px -4px rgba(0,0,0,0.12),0 6px 16px rgba(0,0,0,0.08),0 9px 28px 8px rgba(0,0,0,0.05);border-radius:8px;overflow:hidden;.content{padding:0 !important;position:relative;background:",";}.radio-line{color:",";&.disabled{background:transparent;}.check-line{&.disabled{background-color:transparent;cursor:not-allowed;&:hover{background:transparent !important;}.svg-icon{color:",";}}}}}&.border-width-menu{transition:unset !important;.content{padding:0 !important;border-radius:8px !important;position:relative;}}}"],o=>o.theme.color_bg_white,o=>o.theme.color_bg_border_02,o=>o.theme.color_bg_white,o=>o.theme.color_text_L2,o=>o.theme.color_text_disabled01),c=n.Ay.section.withConfig({displayName:"styles__StyledTextSettings",componentId:"sc-v76r7a-0"})(["position:relative;width:240px;padding:0 10px;color:",";>:not(:first-child){margin-top:2px;}.font-group{display:flex;align-items:center;position:relative;&.font-line{justify-content:space-between;.font-family-selector{flex:0 0 100px;margin-right:23px;&:not(.is-disabled):not(.readonly):hover{.caret{padding:0 11px;}}}.font-menu-opener{display:flex;}}&.style-line{>:nth-child(1){margin-right:6px;}>:nth-child(3){width:96px;right:0px;position:absolute;}.font-size-input{width:66px;}.font-weight-selector{width:60px;}.options-menu-opener{&.is-open{.menu-opener{background-color:",";&.fontSettings{background-color:",";}}}&.font-menu-opener{margin-left:auto;display:flex;align-items:center;}}}&.ali-line{.has-ref-style-font-menus{position:absolute;right:0;}}&.ali-line >:nth-child(2){width:96px;position:absolute;right:0;justify-content:flex-start;*{flex-grow:0;}}&.spacing-line{justify-content:space-between;& >:nth-child(2){margin-left:37px;.radio-option svg{width:24px;height:24px;}}}&.flex-between{.has-ref-style-font-menus{display:flex;justify-content:flex-end;}}}.size-type-item{width:60px;}.sizetype,.h-alignment,.v-alignment{&.radio-line{margin-bottom:0;height:24px;border:none;.radio-option{width:24px;height:24px;transition:background-color 0.2s ease-in-out;border-radius:4px;.svg-icon{width:24px;height:24px;color:",";}&.active{background:",";}&:not(.active):hover{background:",";}}}.icon{width:24px;height:24px;}}.item-with-name{display:flex;justify-content:space-between;.item-name{height:22px;line-height:22px;color:#5b6b73;}.item-value{width:100%;}}.text-setting-tips{background:#f8efa7;width:202px;height:auto;line-height:24px;text-align:center;color:#415058;margin-bottom:8px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all;padding:0 10px;}.is-signle-show-direction-link{&.menu-wrapper{display:flex;justify-content:space-between;align-items:center;padding:4px 0 4px 6px;color:",";.font-style{display:flex;justify-content:space-between;align-items:center;width:100%;&.svg-size{.icon{width:24px;height:24px;}}.radio-line{background:transparent;color:",";&:lang(en){justify-content:flex-start;}&:not(.disabled){.radio-option{&:not(.active):hover{background:",";color:",";}&.active{background:",";color:",";}}}.radio-option{border-radius:4px;overflow:hidden;}}}}}&.is-show-lib-opener{.is-single-button{right:60px;}}"],o=>o.theme.color_text_L2,o=>o.theme.color_bg_border_02,o=>o.theme.color_btn_secondary_active,o=>o.theme.color_text_L1,o=>o.theme.color_btn_secondary_active,o=>o.theme.color_btn_secondary_hover,o=>o.theme.color_text_L2,o=>o.theme.color_text_L1,o=>o.theme.color_btn_secondary_hover,o=>o.theme.color_text_L1,o=>o.theme.color_btn_secondary_active,o=>o.theme.color_text_L1)},54894:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>hs});var n=e(38502),r=e(53732),c=e.n(r),o=e(39695),I=e(83485),u=e(52275),d=e(1984),C=e(95549),h=e(18381),i=e(12211),f=e(67052),p=e(33515),s=e(68677),l=e(79150),_=e(55914),b=e(69246),a=e(17307),M=e(93872),x=e(73442),g=e(37841),S=e(89080),t=e(72214);const v=()=>(0,t.jsxs)(M.wz,{children:[(0,t.jsx)(a.C,{className:"alert",name:"setting_panel/link/alert"}),(0,t.jsxs)("span",{children:["\xA0\xA0",I18N.SettingPanel.no_overlay_in_page]}),(0,t.jsx)("a",{href:"/hc/articles/441",target:"_blank",children:I18N.CommonGuides.version_guide_learn_more})]}),w=(0,n.memo)(pt=>{let{keyCanvasSrc:Ht,keyPage:nn,keyCanvasSelected:en,onSelectTargetCanvas:Un,isSelectOverlay:Kn=!1}=pt;const[Vn,vo]=(0,n.useState)(nn),[zn,Fn]=(0,n.useState)(""),[Rn,Mo]=(0,n.useState)(""),wo=(0,n.useCallback)(fn=>new RegExp((0,_.$)(zn),"i").test(fn),[zn]),dn=(0,n.useCallback)(fn=>new RegExp((0,_.$)(Rn),"i").test(fn),[Rn]),pn=(0,x.R_)("B@main",wo).subHotItemList,ho=sdkStore.findAllTypeUnder("B@main","rResBunch").filter(fn=>!fn.hotAttr.asFolder).length,Oo=(0,n.useRef)(null),qn=(0,n.useRef)(null),So=(0,h.wA)(),Ut=fn=>{So({type:"set:echo:item",payload:{cid:fn}})},an=fn=>{So({type:"set:echo:item",payload:{cid:void 0}})};(0,n.useEffect)(()=>()=>{So({type:"set:echo:item",payload:{cid:void 0}})},[]),(0,n.useEffect)(()=>()=>{So({type:"set:echo:item",payload:{cid:void 0}})},[]),(0,n.useEffect)(()=>{var fn,mn;(fn=Oo.current)==null||(fn=fn.querySelector('div[role="option"][data-value="'+en+'"]'))==null||fn.scrollIntoView(),(mn=qn.current)==null||(mn=mn.querySelector('div[role="option"][data-value="'+(nn||"")+'"]'))==null||mn.scrollIntoView()},[en,Ht,nn]);const wn=(0,n.useMemo)(()=>Vn?(0,x.mb)(Vn,dn,Kn):[],[Vn,Rn,Kn]);return Vn?(0,t.jsx)(M.RL,{className:c()("isV9Layout"),children:(0,t.jsx)(g.N,{query:Rn,setQuery:Mo,ref:Oo,children:()=>(0,t.jsxs)("div",{className:"option-container",children:[ho>1&&(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(M.Ag,{className:c()("dropmenu-no-exit","isV9Layout"),onClick:()=>vo(""),children:[(0,t.jsx)(l.A,{iconBoxSize:22,size:16,name:"sharing/back_to_page_16",className:"back"}),(0,t.jsx)(b.k,{icon:sdkStore.getHotItem(Vn).hotAttr.icon,isExpand:!1,theme:"dark"}),(0,t.jsx)(s.A,{children:sdkStore.getHotItem(Vn).hotAttr.name})]})}),wn.length>0?(0,t.jsx)(S.A,{dataList:wn,itemHeight:24,activeKey:Vn,itemRender:fn=>{let{item:mn,depth:Sn}=fn;return(0,t.jsx)(g.D,{depth:Sn,withSubOptions:!1,shouldRenderChildren:!1,optionItem:mn,isOptionActive:Tn=>{let{key:un}=Tn;return un===en},isOptionDisabled:Tn=>{let{key:un,forDisplayOnly:An}=Tn;return!!(un===Ht||An)},onSelect:Tn=>Un(Vn,Tn),onMouseEnterOption:Ut,onMouseLeaveOption:an},mn.key)}}):Kn?(0,t.jsx)(v,{}):null]})})}):(0,t.jsx)(g.N,{ref:qn,query:zn,setQuery:Fn,children:fn=>{let{toToggleCollapsed:mn,keyItemCollapsed:Sn}=fn;const Tn=oo=>{let{key:No}=oo;return Sn.includes(No)},un=()=>!1,An=oo=>{let{forDisplayOnly:No}=oo;return No};return(0,t.jsx)(S.A,{dataList:pn,propsMap:{children:"subHotItemList"},isCollapsed:Tn,itemHeight:24,activeKey:Vn,itemRender:oo=>{let{item:No,depth:Vo}=oo;return(0,t.jsx)(g.D,{depth:Vo,withSubOptions:!0,shouldRenderChildren:!1,optionItem:No,isOptionActive:un,onSelect:vo,isOptionCollapsed:Tn,isOptionDisabled:An,onToggleCollapsed:mn},No.key)}})}})});w.displayName="InteractionTargetCanvasSelect";var k=e(67787);const W=(0,k.DU)([".DropdownMenuPortal{.DesignDropdownMenu.dropScreenMenu{width:190px;height:274px;.content{width:100%;height:100%;padding:0;}}}"]),K=(0,k.DU)([".DropdownMenuPortal{.DesignDropdownMenu.dropScreenMenu{width:190px;height:274px;.content{width:100%;height:100%;padding:0px;}}}"]);var G=e(62150);const $=pt=>{switch(pt.data.interactionType){case o.O2.LinkToCanvas:return pt.isTargetValid?sdkStore.getHotItem(pt.data.targetResCanvasKey).hotAttr.name:I18N.Interaction.ita_please;case o.O2.OpenOverlay:case o.O2.SwapOverlay:return pt.isTargetValid?sdkStore.getHotItem(pt.data.targetOverlayKey).hotAttr.name:I18N.Interaction.ita_please;default:return I18N.Interaction.ita_please}};class P extends n.PureComponent{constructor(){super(...arguments),(0,C.A)(this,"setTargetDropdownRef",Ht=>this.targetDropdown=Ht),(0,C.A)(this,"handleTargetCanvasChanged",(Ht,nn)=>{const{isSelectOverlay:en,onChange:Un}=this.props;Un(Ht,"targetRBPageKey"),setTimeout(()=>Un(nn,en?"targetOverlayKey":"targetResCanvasKey")),this.targetDropdown.close()})}render(){const{interaction:Ht,isSelectOverlay:nn,currSelectedCanvasKey:en,targetRBPageKey:Un,isEditingCombo:Kn}=this.props,Vn=$(Ht),vo=Vn===I18N.SettingPanel.select_artboard||Vn===I18N.SettingPanel.select_overlay,zn=Ht.data.interactionType===o.O2.LinkToCanvas?Ht.data.targetResCanvasKey:Ht.data.targetOverlayKey;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p.Ay,{isOpen:!1,ref:this.setTargetDropdownRef,menux:"right",title:Vn,isPlaceholder:vo,shouldPreventScrollingPropagation:!1,className:"dropScreenMenu",forceDarkTheme:!0,isOpenerAttrDisabled:Kn,icon:vo?null:(0,t.jsx)(G.W,{renderItem:sdkStore.getHotItem(zn),targetKey:zn}),renderMenu:(0,t.jsx)(w,{keyPage:Un,keyCanvasSelected:zn,keyCanvasSrc:en,onSelectTargetCanvas:this.handleTargetCanvasChanged,isSelectOverlay:nn})}),(0,t.jsx)(K,{})]})}}const E=(0,i.Mz)([f.He],pt=>{var Ht;return{isShowCanvasBack:((Ht=Object.keys(pt))==null?void 0:Ht.length)>1}}),H=(0,h.Ng)(pt=>E(pt))(P),O=k.Ay.div.withConfig({displayName:"styles__StyledScreenLinkActions",componentId:"sc-1ksrbtu-0"})([".is-placeholder{button{color:",";}}.transition-view{width:24px;height:24px;margin-bottom:unset;margin-right:0px;.pages{width:24px;height:24px;border:none;line-height:24px;border-radius:4px;background-color:",';[class*=" icon-"]{margin-left:unset;width:100%;height:100%;}.page2{color:#fff;background:',";border-radius:4px;}}}.link--drop-screen-list{width:108px;}.state-action{.state-link-select{&.isPlaceholder{button{color:",";}}}}.screen-action{.link-opener-wrapper{.dropScreenMenu{width:108px;}&.is-disabled{.dropScreenMenu:hover{border-color:transparent;}}}}.screen-reset{display:flex;align-items:center;margin-left:-6px;.Check-label{color:",";}}.link--drop-transition-list{width:108px;}.screen-link-fragment{.select-number{width:108px;display:flex;align-items:center;}}&.hasPaddingTop{padding-top:4px;}"],pt=>pt.theme.color_text_disabled01,pt=>pt.theme.color_btn_secondary_active,pt=>pt.theme.color_proto,pt=>pt.theme.color_proto,pt=>pt.theme.color_text_L2);var V=e(16913);const Q=k.Ay.div.withConfig({displayName:"linkStyles__StyledLinkItemGroup",componentId:"sc-1nyf930-0"})(["padding:0px 16px 0px 16px;"]),N=k.Ay.div.withConfig({displayName:"linkStyles__StyledLinkTransitionGroup",componentId:"sc-1nyf930-1"})(["padding:0px 16px 0 16px;.group-name{font-weight:500;display:flex;align-items:center;color:",";}"],pt=>pt.theme.color_text_L1);var L=e(66727),U=e(5649);const A=k.Ay.div.withConfig({displayName:"styles__StyledStateTransitionMenu",componentId:"sc-91lwjs-0"})([".top{display:flex;align-items:center;padding:16px 16px 9px;gap:16px;}&:lang(en){padding:0 10px;}.transition-view{position:relative;height:53px;display:flex;flex-direction:column;align-items:center;cursor:pointer;&:lang(en){width:70px;}.view-icon{position:relative;height:34px;width:34px;display:flex;align-items:center;justify-content:center;background:#ebebeb;border:1px solid #ebebeb;transition:all 0.15s ease-in-out;border-radius:2px;&.active{background:white;border:1px solid ",";box-shadow:0 0 4px 0 rgba(41,141,248,0.74);}svg{width:18px;height:18px;}.transition-none{width:20px;height:20px;}}.view-title{position:absolute;white-space:nowrap;bottom:0;left:50%;transform:translateX(-50%);color:",";}}.containerBottom{display:flex;align-items:center;justify-content:center;height:100%;}"],pt=>pt.theme.color_proto,pt=>pt.theme.color_text_L1),D=k.Ay.div.withConfig({displayName:"styles__StyledTransitionList",componentId:"sc-91lwjs-1"})(["width:218px;padding:0 16px 7px;display:flex;flex-wrap:wrap;.pages{background-color:#f2f2f2;.page1{display:flex;align-items:center;justify-content:center;}.page2{&.icon-arrow-bottom,&.icon-arrow-top,&.icon-arrow-left,&.icon-arrow-right{display:flex;align-items:center;justify-content:center;}}.page1,.page2{&.icon-arrow-top{.icon{transform:rotate(-90deg);}}&.icon-arrow-left{.icon{transform:rotate(-180deg);}}&.icon-arrow-bottom{.icon{transform:rotate(90deg);}}&::before{display:none;}.icon{width:12px;height:7px;}}}.name{color:",";}.transitionView{.pages{border:none;}}.transitionView:hover{.pages{border:none;}}.transitionView.current .pages{border:1px solid "," !important;box-shadow:0 0 4px 0 rgba(41,141,248,0.74);.page1{background:white !important;}}"],pt=>pt.theme.color_text_L1,pt=>pt.theme.color_proto);var B=e(67588);const j=k.Ay.div.withConfig({displayName:"NoneOrAutoIcon__StyledNoneIcon",componentId:"sc-t0c4br-0"})(["width:24px;height:24px;color:"," !important;.transition-none{path{stroke:",";}}font-size:14px;display:flex;justify-content:center;align-content:center;border-radius:4px;&.is-dark{.transition-move{rect{stroke:#fff;}path{&:nth-child(2){fill:rgb(255,255,255,0.64);}&:last-child{fill:rgb(255,255,255,0.45);}}}}"],pt=>pt.theme.color_text_L1,pt=>pt.theme.color_text_L1),F=pt=>{let{transition:Ht}=pt;const en=(0,h.d4)(B.O4)==="dark";return(0,t.jsx)(j,{className:c()({"is-dark":en}),children:Ht==="auto"?(0,t.jsx)(a.C,{isColorPure:!0,className:"transition-move",name:"setting_panel/link/transition/move"}):(0,t.jsx)(a.C,{className:"transition-none",name:"setting_panel/link/transition/none"})})},Y={transition:"li7V5EPbUFjQxQ3UBo2z"},X="icon-arrow-top",z="icon-arrow-left",Z="icon-arrow-right",J="icon-arrow-bottom",te={none:"",leftmenu:Z,rightmenu:z,leftdrawer:Z,rightdrawer:z,slideright:Z,slideleft:z,slidetop:J,slidebottom:X,slideleft2:Z,slideright2:z,topin:J,popin:X,leftout:z,rightout:Z,topout:X,popout:J},pe=pt=>{let{id:Ht,name:nn,viewClassName:en,isActive:Un,onChange:Kn}=pt;const Vn=Un?"current":"",vo=Y.transition+" "+Ht+" "+Vn+" transitionView",zn=te[Ht],Fn=Kn?()=>Kn(Ht,"transition"):void 0;return(0,t.jsxs)("div",{className:c()(vo,en),onClick:Fn,children:[(0,t.jsxs)("div",{className:"pages",children:[(0,t.jsx)("div",{className:"page1 "+zn,children:(0,t.jsx)(a.C,{name:"setting_panel/link/transition/arrow"})}),(0,t.jsx)("div",{className:"page2 "+zn,children:(0,t.jsx)(a.C,{name:"setting_panel/link/transition/arrow"})},zn)]}),(0,t.jsx)("span",{className:"name",children:nn})]})},me=pt=>{let{transition:Ht,options:nn,onChange:en}=pt;return nn.length?(0,t.jsx)(D,{className:"transition-list",children:nn.map(Un=>{let{value:Kn,label:Vn}=Un;return(0,t.jsx)(pe,{id:Kn,name:Vn,isActive:Kn===Ht,onChange:en},Kn)})}):null},ie=pt=>{let{transition:Ht,transitionOptions:nn,onChange:en}=pt;const Un=(0,n.useRef)(null),Kn=zn=>{var Fn;(Fn=Un.current)==null||Fn.close(),en(zn)},{title:Vn,icon:vo}=(0,n.useMemo)(()=>{let zn="",Fn=(0,t.jsx)(F,{transition:Ht});if(Ht==="auto")zn=I18N.SettingPanel.link_move;else if(Ht==="none")zn=I18N.SettingPanel.link_none_ani;else if(nn){const Rn=nn.find(Mo=>Mo.value===Ht);Rn&&(zn=Rn.label,Fn=(0,t.jsx)(pe,{id:Rn.value,viewClassName:"transition-view transition-view-icon"}))}return{title:zn,icon:Fn}},[nn,Ht]);return(0,t.jsx)(p.Ay,{ref:Un,title:Vn,menux:"right",icon:vo,className:"link--drop-transition-state-list",renderMenu:(0,t.jsxs)(A,{children:[(0,t.jsxs)("div",{className:"top",children:[(0,t.jsxs)("div",{className:"transition-view",children:[(0,t.jsx)("div",{className:c()("view-icon",{active:Ht==="none"}),onClick:()=>Kn("none"),children:(0,t.jsx)(a.C,{className:"transition-none",name:"setting_panel/link/transition/none"})}),(0,t.jsx)("span",{className:"view-title",children:I18N.SettingPanel.link_none_ani})]}),(0,t.jsxs)("div",{className:"transition-view",children:[(0,t.jsx)("div",{className:c()("view-icon",{active:Ht==="auto"}),onClick:()=>Kn("auto"),children:(0,t.jsx)(a.C,{isColorPure:!0,className:"transition-move",name:"setting_panel/link/transition/move"})}),(0,t.jsx)("span",{className:"view-title",children:I18N.SettingPanel.link_move})]})]}),nn&&(0,t.jsx)(me,{transition:Ht,options:nn,onChange:Kn})]})})};var oe=e(26067);const he=k.Ay.div.withConfig({displayName:"style__StyledLinkTransitionGroup",componentId:"sc-2uc2er-0"})(["padding:0px 16px 0 16px;&.no-padding{padding:0;}.group-name{font-weight:500;display:flex;align-items:center;color:",";}"],pt=>pt.theme.color_text_L1);var ce=e(69623),re=e(83199),fe=e(93257),Se=e(81973),Me=e(9680),Ie=e(29360),de=e(60651),xe=e(24094),Le=e(38167),ve=e(78401),je=e(95106);const We=pt=>{let{children:Ht,visible:nn,prefix:en,prefixIcon:Un,suffix:Kn,style:Vn,className:vo,panelWidth:zn=400,iconTooltip:Fn="\u4F7F\u7528\u8868\u8FBE\u5F0F",getInvalidIconContainer:Rn,initPosition:Mo,invalidContent:wo,onInvalidIconVisible:dn,...pn}=pt;const[ho,Oo]=(0,n.useState)(nn),[qn,So]=(0,n.useState)(!0),[Ut,an]=(0,n.useState)(!1),wn=(0,h.d4)(Se.ue),fn=(0,h.d4)(de.oO),mn=(0,n.useRef)(null),Sn=(0,n.useRef)(null),Tn=I18N.Variable.editor[qn?"readonly_placeholder":"placeholder"].replace("{type}",(0,Le.IV)(pn.valueType,!0)),un=(0,n.useMemo)(()=>({variables:(0,Me.qL)(wn),p2sdkStore:sdkStore}),[wn]);(0,n.useEffect)(()=>{Oo(nn)},[nn]),(0,n.useEffect)(()=>{let ss=!1,le=!1;if(ho&&qn&&pn.value&&mn.current&&Rn!=null&&Rn(mn.current)){const{isTargetValid:At}=(0,je.P1)(pn.value,pn.currentWidgetKey,fn?"combo":"non-combo");At||(ss=!0)}an(ss),dn==null||dn(ss),setTimeout(()=>{var At,Pt;const Re=ho&&qn&&((At=mn.current)==null?void 0:At.querySelector(".public-DraftStyleDefault-block"))||null;le=Re&&Re.scrollWidth>Re.clientWidth||!1;const yt=(Pt=mn.current)==null?void 0:Pt.querySelector(".linear-cell");le?yt==null||yt.classList.add("visible",Re.clientWidth>160?"long":"short"):yt==null||yt.classList.remove("visible","long","short")},0)},[ho,qn,pn.value,pn.currentWidgetKey,wn,fn]);const An=mn.current&&(Rn==null?void 0:Rn(mn.current)),oo=()=>{var ss;(ss=pn.onSubmit)==null||ss.call(pn,""),Oo(!1),setTimeout(()=>{var le,At;const Pt=((le=mn.current)==null?void 0:le.querySelector("input"))||((At=mn.current)==null?void 0:At.querySelector("textarea"));Pt&&(0,ve.T5)(Pt)},10)},No=()=>{Oo(!0),So(!1)},Vo=()=>{fn||So(!1)},Ko=()=>{var ss;(ss=pn.onCancel)==null||ss.call(pn),So(!0),nn||Oo(nn)},zo=(ss,le,At)=>{var Pt;So(!0);const Re=(Pt=pn.onSubmit)==null?void 0:Pt.call(pn,ss,le,At);Oo(!!Re)},xs=ss=>{ss.stopPropagation()};let ys=zn;if(qn){const ss=(en?16:0)+(Kn?20:0);ys=ss>0?"calc(100% - "+ss+"px)":"100%"}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(Ae,{onPaste:xs,ref:mn,className:c()(vo,{"is-active":ho&&!qn,"is-readonly":ho&&qn,"has-prefix":!!en,"has-suffix":!!Kn}),style:{...Vn,"--link-exp-width":ys,"--link-exp-prefix":en?'"'+en+'"':null},children:[ho?(0,t.jsxs)("div",{className:"link-exp-area",onClick:Vo,children:[en&&(0,t.jsx)("span",{className:"prefix",children:en}),Un,(0,t.jsx)(re.A,{maxWidth:"200px",style:{padding:8,wordWrap:"break-word"},tipClassName:"long-name-trigger fixed-transform-y10",enterHoverTime:200,isSkipShortTimerHover:!0,isShowTipsByTarget:()=>{var ss,le;return qn&&((ss=Sn.current)==null||(ss=ss.querySelector(".DraftEditor-root"))==null?void 0:ss.scrollWidth)>((le=Sn.current)==null?void 0:le.clientWidth)},content:qn?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(xe.RN,{}),(0,t.jsx)(xe.j$,{className:"var-display-name",children:(0,t.jsx)(Ie.A,{readOnly:!0,simple:!0,value:pn.value,valueType:pn.valueType,scope:un,multiline:!1,currentWidgetKey:pn.currentWidgetKey})})]}):null,children:(0,t.jsx)("div",{className:"link-exp-wrapper",ref:Sn,children:(0,t.jsx)(Ie.A,{className:"link-exp",initPosition:Mo,width:qn?"100%":ys,height:26,placeholder:Tn,...pn,scope:un,readOnly:qn,disabled:fn,onCancel:Ko,onSubmit:zo})})}),qn&&(0,t.jsx)("span",{className:"linear-cell"}),qn&&Kn&&(0,t.jsx)("span",{className:"suffix",children:Kn})]}):Ht,qn&&ho&&(0,t.jsx)(re.A,{content:I18N.SettingPanel.reset,direction:"down",enterHoverTime:200,isSkipShortTimerHover:!0,children:(0,t.jsx)("button",{className:c()("icon-bind","icon-reset"),onClick:oo,children:(0,t.jsx)(a.C,{name:"setting_panel/image_view/reset"})})}),qn&&!ho&&!fn&&(0,t.jsx)(re.A,{content:Fn,direction:"down",enterHoverTime:200,isSkipShortTimerHover:!0,children:(0,t.jsx)("button",{className:c()("icon-bind","icon-add"),onClick:No,children:(0,t.jsx)(a.C,{name:"flow/create/add"})})})]}),Ut&&An&&(0,ce.createPortal)((0,t.jsx)(fe.A,{content:wo||I18N.Expression.invalid_value,direction:"down",delay:200,children:(0,t.jsx)(we,{className:"expression-invalid",children:(0,t.jsx)(a.C,{name:"interaction/invalid",size:16,className:"expression-invalid-icon"})})}),An)]})},Ae=k.Ay.div.withConfig({displayName:"LinkExpression__StyledContainer",componentId:"sc-1x03sd7-0"})(["height:28px;width:142px;.link-exp-area{display:flex;align-items:center;height:100%;cursor:pointer;}&:hover,&.is-active{position:relative;z-index:9;}&.is-readonly{border:1px solid transparent;border-radius:6px;padding:0 !important;.is-readonly{margin-top:1px;border:none;&:not(.is-disabled){cursor:pointer;}}.public-DraftStyleDefault-block{white-space:nowrap;}.link-exp-wrapper{max-width:var(--link-exp-width);}.linear-cell{display:none;height:calc(100% - 2px);position:relative;width:0;z-index:1;pointer-events:none;&.visible{display:inline;}&::after{content:'';position:absolute;top:0;left:-20px;width:20px;height:100%;border-radius:0 6px 6px 0;background:linear-gradient(to right,transparent,"," 100%);}&.long::after{width:30px;left:-30px;}&.short::after{width:20px;left:-20px;}}&:hover{border-color:",";.suffix{color:",";}}}&.has-prefix{.link-exp{width:calc(100% - 16px);&.is-readonly{padding-left:3px !important;}}&.is-active{.prefix,.suffix{display:none;}.link-exp{padding-left:20px;width:calc(100% - 8px);&::before{content:var(--link-exp-prefix);z-index:2;position:absolute;left:9px;top:6px;display:flex;align-items:center;justify-content:center;height:28px;padding-bottom:2px;color:",";pointer-events:none;width:16px;}}}}&:hover{.icon-bind{display:block;}.inner-input:not(.is-disabled),.WorkspaceInputNumber:not(.is-disabled){border:1px solid ",';}}.is-active + .icon-bind{display:none;}.icon-bind{width:20px;height:20px;border-radius:10px;position:absolute;left:-10px;top:-10px;display:none;&::before{content:"";position:absolute;background-color:',";border:1px solid ",";outline:2px solid ",";outline-offset:-3px;width:10px;height:10px;left:5px;top:5px;border-radius:50%;transition:all .3s;}svg{width:100%;height:100%;color:transparent;transform:scale(0.5);transition:transform .3s;border-radius:20px;opacity:0;circle{stroke:",";}path{fill:#fff;}}&:hover{&::before{opacity:0;}svg{color:",";box-shadow:none;transform:scale(1);opacity:1;}}&.icon-reset{transform:rotateY(180deg);&:hover{svg{background-color:",";border-radius:50%;padding:3px;border:2px solid ",";}}}}.prefix,.suffix{display:flex;align-items:center;justify-content:center;height:100%;color:",";}.prefix{pointer-events:none;width:16px;}.suffix{width:20px;}"],pt=>pt.theme.color_bg_white,pt=>pt.theme.color_bg_border_02,pt=>pt.theme.color_text_L2,pt=>pt.theme.color_text_L3,pt=>pt.theme.color_bg_border_02,pt=>pt.theme.color_bg_white,pt=>pt.theme.color_bg_white,pt=>pt.theme.color_var_bind_point,pt=>pt.theme.color_bg_white,pt=>pt.theme.color_text_disabled01,pt=>pt.theme.color_text_disabled01,pt=>pt.theme.color_bg_white,pt=>pt.theme.color_text_L3),we=k.Ay.span.withConfig({displayName:"LinkExpression__StyledInvalidIconContainer",componentId:"sc-1x03sd7-1"})(["display:inline-flex;align-items:center;svg.expression-invalid-icon{margin-left:0;path{translate:1px;}}& + .expression-invalid{display:none;}"]),_e=We;var Te=e(89853);const Fe=pt=>{var Ht;let{header:nn,link:en,noDelay:Un,noTransition:Kn,attrMap:Vn,transitionOptions:vo,currentWidgetKey:zn,className:Fn,onChange:Rn}=pt;const{interactionTrigger:Mo,menuOrDrawerOffset:wo,expression:dn}=en.data,pn=Mo==="timer",ho=pn?"timerDuration":"transitionDelay",Oo=(0,oe.W7)(en.data[ho]),qn=pn?d.OI:d.zI,So=dn==null?void 0:dn[ho],Ut=dn==null?void 0:dn.menuOrDrawerOffset,an=(Vn==null?void 0:Vn.transitionDuration)||"transitionDuration",wn=(Vn==null?void 0:Vn.transition)||"transition",fn=en.data[wn],mn=en.data[an],Sn=dn==null?void 0:dn[an],Tn=fn!=="none",un=(0,oe.W7)(mn),An=L.F.includes(fn),oo=(0,n.useRef)(an),No=Ko=>{Rn(Ko,(Vn==null?void 0:Vn.transition)||"transition")},Vo=(Ko,zo)=>{let xs=Ko.trim();xs||(zo==="menuOrDrawerOffset"&&(xs="75"),zo===an&&(xs="200"),zo===ho&&(xs="0"));const ys=Number(xs);return String(ys)===xs?(zo==="menuOrDrawerOffset"?xs=(0,Te.d8)(ys,[1,99]).toFixed(0):xs=(0,Te.d8)(ys,[0,d.sw]).toFixed(0),Rn(xs,zo),dn!=null&&dn[zo]&&Rn({...dn,[zo]:void 0},"expression"),!1):(xs!==(dn==null?void 0:dn[zo])&&Rn({...dn,[zo]:xs},"expression"),!0)};return(0,n.useEffect)(()=>{pn?dn!=null&&dn.transitionDelay&&Rn({...dn,timerDuration:dn.transitionDelay,transitionDelay:void 0},"expression"):dn!=null&&dn.timerDuration&&Rn({...dn,transitionDelay:dn.timerDuration,timerDuration:void 0},"expression")},[pn,dn,Rn]),(0,n.useEffect)(()=>{!An&&dn!=null&&dn.menuOrDrawerOffset&&Rn({...dn,menuOrDrawerOffset:void 0},"expression")},[An,dn,Rn]),(0,n.useEffect)(()=>{let Ko={...dn},zo=!1;!Tn&&dn!=null&&dn[an]&&(Ko={...dn,[an]:void 0},zo=!0),oo.current&&oo.current!==an&&dn!=null&&dn[oo.current]&&(Ko={...Ko,[oo.current]:void 0},zo=!0),zo&&Rn(Ko,"expression"),oo.current=an},[Tn,an,dn,Rn]),(0,n.useEffect)(()=>{!Tn&&dn!=null&&dn[an]&&Rn({...dn,[an]:void 0},"expression")},[an,dn,Rn]),(0,t.jsxs)(he,{className:c()("link-transition-group",Fn),children:[nn,!Kn&&(0,t.jsx)(V.A,{linkTitle:I18N.SettingPanel.ani_name,children:(0,t.jsx)(ie,{transition:fn,transitionOptions:vo,onChange:No})}),An&&(0,t.jsx)(V.A,{linkTitle:I18N.SettingPanel.menu_offset,className:"screen-link-fragment",children:(0,t.jsx)("div",{className:"select-number",children:(0,t.jsx)(_e,{value:Ut||String((Ht=parseInt(wo))!=null?Ht:200),visible:!!Ut,valueType:"number",onSubmit:Ko=>Vo(Ko,"menuOrDrawerOffset"),suffix:"%",currentWidgetKey:zn,getInvalidIconContainer:Ko=>{var zo;return(zo=Ko.closest(".screen-link-fragment"))==null?void 0:zo.querySelector(".link-action-title")},children:(0,t.jsx)(U.A,{className:"link-number-select",unstyled:!0,attr:"menuOrDrawerOffset",min:1,max:99,value:parseInt(wo),onConfirm:Rn,suffix:"%",unMountCallback:Rn})})})}),!Kn&&Tn&&(0,t.jsx)(V.A,{linkTitle:I18N.SettingPanel.ani_duration,className:"state-action",children:(0,t.jsx)("div",{className:"state-link-select",children:(0,t.jsx)(_e,{value:Sn||String(un!=null?un:200),visible:!!Sn,valueType:"number",onSubmit:Ko=>Vo(Ko,an),suffix:"ms",currentWidgetKey:zn,getInvalidIconContainer:Ko=>{var zo;return(zo=Ko.closest(".state-action"))==null?void 0:zo.querySelector(".link-action-title")},children:(0,t.jsx)(U.A,{attr:an,value:un,suffix:"ms",min:0,max:d.sw,optionList:d.zI,onConfirm:Rn,className:"inner-input",unMountCallback:Rn})})})}),!Un&&(0,t.jsx)(V.A,{linkTitle:I18N.SettingPanel.ani_delay,className:"state-action",children:(0,t.jsx)("div",{className:"state-link-select",children:(0,t.jsx)(_e,{value:So||String(Oo!=null?Oo:0),visible:!!So,valueType:"number",onSubmit:Ko=>Vo(Ko,ho),suffix:"ms",currentWidgetKey:zn,getInvalidIconContainer:Ko=>{var zo;return(zo=Ko.closest(".state-action"))==null?void 0:zo.querySelector(".link-action-title")},children:(0,t.jsx)(U.A,{attr:ho,value:Oo,suffix:"ms",min:0,max:d.sw,optionList:qn,onConfirm:Rn,className:"inner-input"})})})})]})};var Ve=e(61068),rt=e(15515);const Ue="interaction_link_reset_more",et="interaction_link_expand_more",lt=(0,n.memo)(pt=>{const{linkKey:Ht,adaptTopPosition:nn,children:en}=pt,Un=Ue+Ht,Kn=et+Ht,Vn=(0,rt.Yt)(Un,!1,rt.qW.Boolean),vo=(0,rt.Yt)(Kn,!1,rt.qW.Boolean),[zn,Fn]=(0,n.useState)(Vn||vo),Rn=()=>{Fn(!zn),(0,rt.a0)(Kn,!zn,rt.qW.Boolean)};return(0,n.useEffect)(()=>{Vn&&((0,rt.a0)(Kn,!0,rt.qW.Boolean),(0,rt.G5)(Un))},[Un,Kn,Vn]),(0,n.useEffect)(()=>{zn&&nn&&nn()},[zn,nn]),(0,t.jsxs)(Je,{className:c()({"open-more":zn}),children:[(0,t.jsxs)("div",{className:"more",onClick:Rn,children:[(0,t.jsx)("span",{children:I18N.ToolBar.more}),(0,t.jsx)(a.C,{className:"expand-icon",name:"common/expand@26"})]}),zn&&en]})}),Je=k.Ay.div.withConfig({displayName:"ExpandMore__StyledExpandMore",componentId:"sc-1ki889s-0"})(["padding:0 16px;.more{width:fit-content;height:32px;display:flex;align-items:center;color:",";cursor:pointer;}.expand-icon.svg-icon{width:26px;height:26px;transform:rotate(-90deg);path{fill:rgb(139,140,143);}}&.open-more{.expand-icon.svg-icon{color:",";transform:rotate(0);}}"],pt=>pt.theme.color_text_L3,pt=>pt.theme.color_text_L1),Xe=pt=>{const{link:Ht,onChange:nn,canResetScroll:en=!0,adaptTopPosition:Un}=pt,Kn=()=>{switch(Ht.interactionType){case o.O2.SetBasketCanvas:return I18N.Interaction.reset.basket_widget_state_tip;case o.O2.OpenOverlay:case o.O2.SwapOverlay:return I18N.Interaction.reset.overlay_widget_state_tip;default:return I18N.Interaction.reset.canvas_widget_state_tip}};return(0,t.jsx)(lt,{linkKey:Ht.key,adaptTopPosition:Un,children:(0,t.jsxs)(st,{children:[en&&(0,t.jsx)(Ve.A,{attr:"resetTargetCanvasScrollOffset",className:c()("screen-reset","height-32",Ve.p),label:I18N.ScreenPanel.reset,isChecked:!!Ht.data.resetTargetCanvasScrollOffset,onChange:nn}),(0,t.jsxs)("div",{className:"reset-widget-state",children:[(0,t.jsx)(Ve.A,{attr:"resetTargetSubWidgetsState",className:c()("screen-reset","height-32",Ve.p),label:I18N.Interaction.reset.widget_state,isChecked:!!Ht.data.resetTargetSubWidgetsState,onChange:nn}),(0,t.jsx)(fe.A,{content:Kn(),direction:"down",maxWidth:"220px",children:(0,t.jsx)(a.C,{className:"reset-tip",size:16,name:"interaction/trigger/listener/tip"})})]})]})})},st=k.Ay.div.withConfig({displayName:"LinkReset__StyledLinkReset",componentId:"sc-5zoh17-0"})([".screen-reset{display:flex;align-items:center;margin-left:-6px;.Check-label{color:",";}}.reset-widget-state{display:flex;align-items:center;column-gap:4px;svg.reset-tip{&:hover{path{fill:",";}}path{fill:",";}}}"],pt=>pt.theme.color_text_L1,pt=>pt.theme.color_text_L1,pt=>pt.theme.color_text_L3),tt=pt=>{let{link:Ht,targetScreen:nn,currentCanvas:en,editingPanelCid:Un,isEditingCombo:Kn,currentWidgetKey:Vn,onChange:vo,adaptTopPosition:zn}=pt;const Fn=(0,d.wx)(!!Un),Rn=Ht.data.interactionType===o.O2.LinkToCanvas;return(0,t.jsxs)(O,{children:[Rn&&(0,t.jsx)(Q,{className:"link-item-group",children:(0,t.jsx)(V.A,{linkTitle:I18N.SettingPanel.artboard,className:"screen-action",children:(0,t.jsx)(H,{interaction:Ht,isSelectOverlay:!1,targetRBPageKey:nn.key,currSelectedCanvasKey:en==null?void 0:en.key,isEditingCombo:Kn,onChange:vo})})}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(Fe,{link:Ht,transitionOptions:Fn,onChange:vo,currentWidgetKey:Vn}),(0,t.jsx)(Xe,{link:Ht,onChange:vo,adaptTopPosition:zn})]})};var ct=e(23089);const ht=k.Ay.div.withConfig({displayName:"styles__StyledPanelLinkActions",componentId:"sc-1pwfofu-0"})([".link--drop-screen-list{width:108px;}.link--drop-transition-state-list{width:108px;}.panel-state-link-select{width:130px;padding-right:7px;}.is-placeholder{button{color:",";}&.value-erased{button{color:",";}}}.panel-link-item{&:not(:last-child){margin-bottom:4px;}}.panel-link-select{width:130px;padding-right:7px;&:lang(ja){width:120px;}}.is-readonly{padding:0 6px;}"],pt=>pt.theme.color_text_disabled01,pt=>pt.theme.color_proto),It=k.Ay.div.withConfig({displayName:"styles__StyledSelectOptionItem",componentId:"sc-1ulpt1h-0"})(["display:flex;justify-content:flex-start;align-items:center;.svg-icon{min-width:16px;min-height:16px;margin-right:4px;}.number-index{display:flex;align-items:center;justify-content:center;min-width:16px;min-height:16px;margin-right:4px;}"]),it=pt=>{let{icon:Ht,name:nn,number:en}=pt;return(0,t.jsxs)(It,{children:[Ht?(0,t.jsx)(a.C,{name:Ht}):(0,t.jsx)("p",{className:"number-index",children:en}),(0,t.jsx)(s.A,{children:nn})]})},Tt=(0,n.memo)(it);var Lt=e(76613),Rt=e(10472);const Wt=(0,n.memo)(pt=>{var Ht;let{keyTriggerItem:nn,keyTargetItem:en,onSelectTargetItem:Un}=pt;const Kn=(0,h.d4)(de.bt),Vn=(0,h.wA)(),{isEditingCombo:vo}=(0,h.d4)(Rt.r);let zn="";Kn?zn=Kn:zn=(vo?(0,je.n$)(sdkStore,nn):(0,je.ao)(sdkStore,nn))||(0,je.OV)(sdkStore,nn);const Fn=(Ht=sdkStore.getHotItem(zn))==null?void 0:Ht.hotAttr.asOverlay,[Rn,Mo]=(0,n.useState)(""),wo=(0,n.useCallback)(qn=>new RegExp((0,_.$)(Rn),"i").test(qn),[Rn]),dn=(0,n.useMemo)(()=>{const qn=(0,x.w9)(zn,wo);return(qn==null?void 0:qn.hotAttr.type)==="wBasket"?[qn]:(qn==null?void 0:qn.subHotItemList)||[]},[zn,wo]),pn=qn=>{Vn({type:"set:echo:item",payload:{cid:qn}})},ho=qn=>{Vn({type:"set:echo:item",payload:{cid:void 0}})},Oo=(0,n.useRef)(null);return(0,n.useEffect)(()=>{var qn;return(qn=Oo.current)==null||(qn=qn.querySelector('div[role="option"][data-value="'+en+'"]'))==null||qn.scrollIntoView(),()=>Vn({type:"set:echo:item",payload:{cid:void 0}})},[Vn,en,nn]),(0,t.jsx)(t.Fragment,{children:dn.length===0&&!Rn?(0,t.jsx)("div",{className:"empty-target-option",children:Fn?I18N.SettingPanel.no_dynamic_in_overlay:I18N.SettingPanel.no_dynamic_in_screen}):(0,t.jsx)(g.N,{ref:Oo,query:Rn,setQuery:Mo,children:qn=>{let{toToggleCollapsed:So,keyItemCollapsed:Ut}=qn;const an=fn=>{let{key:mn}=fn;return Ut.includes(mn)},wn=fn=>{let{key:mn}=fn;return en===mn};return(0,t.jsx)(S.A,{dataList:dn,propsMap:{children:"subHotItemList"},isCollapsed:an,itemHeight:24,activeKey:en,itemRender:fn=>{let{item:mn,depth:Sn}=fn;return(0,t.jsx)(g.D,{depth:Sn,withSubOptions:!0,optionItem:mn,isOptionActive:wn,onSelect:Un,isOptionCollapsed:an,isOptionDisabled:Tn=>{let{forDisplayOnly:un}=Tn;return un},shouldRenderChildren:!1,onToggleCollapsed:So,onMouseEnterOption:pn,onMouseLeaveOption:ho},mn.key)}})}})})});Wt.displayName="InteractionTargetBasketSelect";class Kt extends n.PureComponent{constructor(Ht){super(Ht),(0,C.A)(this,"state",{linkTarget:(0,je.XR)({link:this.props.link,editingPanelRefPage:this.props.editingPanelRefPage})}),(0,C.A)(this,"handleTransitionChange",nn=>{const en=nn?"auto":"none";this.props.onChange(en,"transition")}),(0,C.A)(this,"handleTargetChange",(nn,en)=>{const{onChange:Un}=this.props;Un(nn,en),this.handleClearEchoItem()}),(0,C.A)(this,"handleClearEchoItem",()=>MB.action("clear:echo:item")),(0,C.A)(this,"getStateOptionList",()=>{var nn;const en=(nn=this.state.linkTarget)==null?void 0:nn.refRBPageKey;return en?[{label:(0,t.jsx)(Tt,{name:I18N.SettingPanel.first_state,icon:"link/state/first"}),value:Lt.L8},{label:(0,t.jsx)(Tt,{name:I18N.SettingPanel.pre_state,icon:"link/state/prev"}),value:Lt.Gp},{label:(0,t.jsx)(Tt,{name:I18N.SettingPanel.next_state,icon:"link/state/next"}),value:Lt.Oh},{label:(0,t.jsx)(Tt,{name:I18N.SettingPanel.last_state,icon:"link/state/last"}),value:Lt.Hg},["DIVIDER",...sdkStore.findAllTypeUnder(en,"rResCanvas").sort((Un,Kn)=>Un.hotAttr.order-Kn.hotAttr.order).map((Un,Kn)=>{let{key:Vn,hotAttr:vo}=Un;return{label:(0,t.jsx)(Tt,{name:vo.name,number:Kn+1}),value:Vn}})]]:[]}),this.targetDropdownRef=n.createRef()}static getDerivedStateFromProps(Ht,nn){return Ht.link?{linkTarget:(0,je.XR)({link:Ht.link,editingPanelRefPage:Ht.editingPanelRefPage})}:{linkTarget:void 0}}render(){var Ht,nn;const{currentWidgetKey:en,link:Un,onChange:Kn,editingPanelRefPage:Vn,adaptTopPosition:vo}=this.props,{basketKey:zn,canvasKey:Fn,refCanvasKey:Rn}=this.state.linkTarget||{},Mo=Un.isTargetCanvasSupValid||!Un.dataIntegrity&&zn,wo=Vn&&zn===Vn?Un.data.targetBasketKey:zn,dn=!(zn&&(Un.isTargetCanvasSupValid||!Un.dataIntegrity)),pn=Mo?this.getStateOptionList():[],ho=!pn.flat(1).find(Oo=>Oo.value===(Rn||Un.data.targetResCanvasKey));return(0,t.jsxs)(ht,{children:[(0,t.jsx)(Q,{className:"link-item-group",children:(0,t.jsx)(V.A,{linkTitle:I18N.SettingPanel.dynamic_widget,className:"panel-link-item",children:(0,t.jsx)(p.Ay,{ref:this.targetDropdownRef,menux:"right",title:zn&&(Un.isTargetCanvasSupValid||!Un.dataIntegrity)?(Ht=sdkStore.getHotItem(zn))==null?void 0:Ht.hotAttr.name:I18N.Interaction.ita_please,isPlaceholder:dn,shouldPreventScrollingPropagation:!1,className:"link--drop-screen-list",forceDarkTheme:!0,icon:dn?null:(0,t.jsx)(G.W,{renderItem:wo?sdkStore.getHotItem(wo):void 0,targetKey:wo}),renderMenu:(0,t.jsx)(Wt,{keyTriggerItem:en,keyTargetItem:wo,onSelectTargetItem:(Oo,qn)=>this.handleTargetChange(Oo,"targetBasketKey")})})})}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(N,{className:"link-transition-group",children:(0,t.jsx)(V.A,{linkTitle:I18N.SettingPanel.link_target,children:(0,t.jsx)(ct.mq,{isDisabled:!Un.data.targetBasketKey||!Mo,className:c()("panel-state-link-select",{"is-placeholder":!Un.data.targetBasketKey||ho,"value-erased":Un.data.targetBasketKey&&Mo&&ho}),menuClassName:"link-state-select",attr:"targetResCanvasKey",value:((nn=this.state.linkTarget)==null?void 0:nn.refCanvasKey)||Fn,optionList:pn,placeholder:I18N.SettingPanel.link_select_state,onChange:Kn})})}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(Fe,{link:Un,onChange:Kn,currentWidgetKey:en}),(0,t.jsx)(Xe,{link:Un,onChange:Kn,adaptTopPosition:vo})]})}}var Gt=e(4235);const St=k.Ay.div.withConfig({displayName:"styles__StyledVisibilitySelector",componentId:"sc-17brab8-0"})(["display:flex;margin:10px 16px;.item{width:68px;height:26px;display:flex;align-items:center;justify-content:center;border:1px solid ",";border-right:none;overflow:hidden;cursor:pointer;color:",";&:first-child{border-radius:4px 0px 0px 4px;}&:last-child{border-radius:0px 4px 4px 0px;border-right:1px solid ","}&:hover{background-color:",";}&.active{background-color:",";}}"],pt=>pt.theme.color_bg_border_02,pt=>pt.theme.color_text_L1,pt=>pt.theme.color_bg_border_02,pt=>pt.theme.color_btn_secondary_active,pt=>pt.theme.color_btn_secondary_active),Hn=pt=>{let{value:Ht,onChange:nn}=pt;return(0,t.jsxs)(St,{children:[(0,t.jsxs)("div",{className:"item "+(Ht==="setVisible"?"active":""),onClick:()=>nn("setVisible"),children:[(0,t.jsx)(a.C,{name:"setting_panel/event/show",size:20}),I18N.SettingPanel.show]}),(0,t.jsxs)("div",{className:"item "+(Ht==="setHidden"?"active":""),onClick:()=>nn("setHidden"),children:[(0,t.jsx)(a.C,{name:"setting_panel/event/hide",size:20}),I18N.SettingPanel.hide]}),(0,t.jsxs)("div",{className:"item "+(Ht==="toggleVisibility"?"active":""),onClick:()=>nn("toggleVisibility"),children:[(0,t.jsx)(a.C,{name:"setting_panel/event/change",size:20}),I18N.SettingPanel.switch]})]})},uo=pt=>{let{value:Ht,onChange:nn}=pt;return(0,t.jsxs)(St,{children:[(0,t.jsxs)("div",{className:"item "+(Ht==="vertical"?"active":""),onClick:()=>nn("vertical"),children:[(0,t.jsx)(a.C,{name:"setting_panel/link/scroll_to_vertical",size:20}),I18N.SettingPanel.scroll_to_vertical]}),(0,t.jsxs)("div",{className:"item "+(Ht==="horizontal"?"active":""),onClick:()=>nn("horizontal"),children:[(0,t.jsx)(a.C,{name:"setting_panel/link/scroll_to_horizontal",size:20}),I18N.SettingPanel.scroll_to_horizontal]}),(0,t.jsxs)("div",{className:"item "+(Ht==="both"?"active":""),onClick:()=>nn("both"),children:[(0,t.jsx)(a.C,{name:"setting_panel/link/scroll_to_both",size:20}),I18N.SettingPanel.scroll_to_both]})]})};var Po=e(20089);const Yn=(0,n.memo)(pt=>{let{keyTriggerItem:Ht,keyTargetItem:nn,onSelectTargetItem:en,checkInvalidTargetItem:Un,renderEmptyItaTargetItem:Kn}=pt;const Vn=(0,h.d4)(de.bt),vo=(0,h.wA)(),{isEditingCombo:zn}=(0,h.d4)(Rt.r);let Fn="";Vn?Fn=Vn:Fn=(zn?(0,je.n$)(sdkStore,Ht):(0,je.ao)(sdkStore,Ht))||(0,je.OV)(sdkStore,Ht);const[Rn,Mo]=(0,n.useState)(""),wo=(0,n.useCallback)(qn=>new RegExp((0,_.$)(Rn),"i").test(qn),[Rn]),dn=(0,n.useMemo)(()=>{const qn=(0,x.Tx)(Fn,wo,Un),So=(qn==null?void 0:qn.hotAttr.type)===Po.x.WBasket?[qn]:(qn==null?void 0:qn.subHotItemList)||[],Ut=sdkStore.getHotItem(Ht);return Ut&&Un!=null&&Un(Ut)?So:[{...Ut,key:Lt.rE},...So]},[Ht,Fn,wo,Un]),pn=qn=>{vo({type:"set:echo:item",payload:{cid:qn===Lt.rE?Ht:qn}})},ho=qn=>{vo({type:"set:echo:item",payload:{cid:void 0}})},Oo=(0,n.useRef)(null);return(0,n.useEffect)(()=>{var qn;return(qn=Oo.current)==null||(qn=qn.querySelector('div[role="option"][data-value="'+nn+'"]'))==null||qn.scrollIntoView(),()=>vo({type:"set:echo:item",payload:{cid:void 0}})}),(0,t.jsx)(g.N,{ref:Oo,query:Rn,setQuery:Mo,children:qn=>{let{toToggleCollapsed:So,keyItemCollapsed:Ut}=qn;const an=mn=>{let{key:Sn}=mn;return Ut.includes(Sn)},wn=mn=>{let{key:Sn}=mn;return nn===Sn},fn=mn=>{let{key:Sn,hotAttr:Tn,forDisplayOnly:un}=mn;return Sn===Lt.rE?Tn.type==="rResCanvas":un};return dn.length>0?(0,t.jsx)(S.A,{dataList:dn,propsMap:{children:"subHotItemList"},isCollapsed:an,itemHeight:24,activeKey:nn,itemRender:mn=>{let{item:Sn,depth:Tn}=mn;return(0,t.jsx)(g.D,{depth:Tn,withSubOptions:!0,shouldRenderChildren:!1,optionItem:Sn,isOptionActive:wn,onSelect:en,isOptionCollapsed:an,isOptionDisabled:fn,onToggleCollapsed:So,onMouseEnterOption:pn,onMouseLeaveOption:ho},Sn.key)}}):Kn}})});Yn.displayName="InteractionTargetItemSelect";const bo=k.Ay.div.withConfig({displayName:"styles__StyledVisibilityActions",componentId:"sc-99fmsd-0"})([".is-placeholder{button{color:",';}}.transition-view{width:20px;height:20px;margin-bottom:unset;margin-right:8px;.pages{width:20px;height:20px;border:1px solid transparent;line-height:20px;[class*=" icon-"]{margin-left:unset;width:100%;height:100%;}.page2{color:#fff;background:',";}}}.link--drop-screen-list{width:108px;}.link--drop-transition-state-list{width:108px;&:lang(ja){width:120px;}}.link--drop-transition-list{width:108px;}.screen-link-fragment{padding:4px 7px 0 0;.select-number{width:60px;display:flex;align-items:center;.time-unit{margin-left:2px;}}}.panel-link-item{&:not(:last-child){margin-bottom:4px;}}.panel-link-screen-select{width:130px;padding-right:7px;button{justify-content:flex-end;}}"],pt=>pt.theme.color_text_disabled01,pt=>pt.theme.color_proto),Ke={setVisible:{transition:"setVisibleTransition",transitionDuration:"setVisibleTransitionDuration"},setHidden:{transition:"setHiddenTransition",transitionDuration:"setHiddenTransitionDuration"}},ut=pt=>{let{link:Ht,currentWidgetKey:nn,onChange:en}=pt;const Un=(0,n.useRef)(null),Kn=(0,h.d4)(Gt.U2),Vn=(0,h.d4)(de.bt),vo=wo=>{Un.current.close(),en(wo,"targetWidgetKey")},zn=wo=>{en(wo,"actionType")},Fn=Ht.data.targetWidgetKey===Lt.VZ&&!Vn?(0,je.JC)(sdkStore,Ht.triggerItemKey):Ht.targetWidgetKey,Rn=Ht.data.actionType==="toggleVisibility",Mo=!Ht.isTargetWidgetValid;return(0,t.jsxs)(bo,{children:[(0,t.jsx)(Q,{className:"link-item-group",children:(0,t.jsx)(V.A,{linkTitle:I18N.SettingPanel.target_widget,children:(0,t.jsx)(p.Ay,{ref:Un,menux:"right",icon:Mo?null:(0,t.jsx)(G.W,{renderItem:sdkStore.getHotItem(Fn),targetKey:Fn}),title:(0,oe.iI)(Ht,Vn),isPlaceholder:Mo,shouldPreventScrollingPropagation:!1,className:"link--drop-screen-list",forceDarkTheme:!0,renderMenu:(0,t.jsx)(Yn,{keyTriggerItem:Kn,keyTargetItem:Fn,onSelectTargetItem:vo})})})}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(Hn,{value:Ht.data.actionType,onChange:zn}),Ht.data.actionType!=="setHidden"&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(Fe,{link:Ht,header:Rn?(0,t.jsx)("div",{className:"group-name height-32",children:I18N.ToolBar.text_show}):void 0,attrMap:Ke.setVisible,noDelay:Rn,onChange:en,currentWidgetKey:nn})]}),Ht.data.actionType!=="setVisible"&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(Fe,{link:Ht,header:Rn?(0,t.jsx)("div",{className:"group-name height-32",children:I18N.ToolBar.text_hidden}):void 0,attrMap:Ke.setHidden,noDelay:Rn,currentWidgetKey:nn,onChange:en})]}),Rn&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(Fe,{noTransition:!0,link:Ht,currentWidgetKey:nn,onChange:en})]})]})};var zt=e(27660),bt=e(4648);const xn=k.Ay.div.withConfig({displayName:"styles__StyledOverlayActions",componentId:"sc-1omos11-0"})([".is-placeholder{button{color:",";}}.transition-view{width:24px;height:24px;margin-bottom:unset;margin-right:0px;.pages{width:24px;height:24px;border:none;line-height:24px;border-radius:4px;background-color:",';[class*=" icon-"]{margin-left:unset;width:100%;height:100%;}.page2{color:#fff;background:',";border-radius:4px;}}}.transition-action{.link--drop-transition-list,.transition-param-input{width:108px;&.isPlaceholder{button{color:",";}}}}.overlay-action{.link-opener-wrapper{.dropScreenMenu{width:108px;}&.is-disabled{.dropScreenMenu:hover{border-color:transparent;}}}}"],pt=>pt.theme.color_text_disabled01,pt=>pt.theme.color_btn_secondary_active,pt=>pt.theme.color_proto,pt=>pt.theme.color_proto),kn=k.Ay.div.withConfig({displayName:"styles__StyledOverlayConfigGroup",componentId:"sc-1omos11-1"})(["padding:0 16px;.overlay-action{.overlay-input-wrapper,.overlay-relative-pos-select{width:108px;}.overlay-xy-input-wrapper{display:flex;align-items:center;justify-content:flex-start;width:148px;> label{flex:0 0 72px;&:not(:last-child){margin-right:4px;}}}}.overlay-check{display:flex;align-items:center;.Check-label{color:",";}}.margin-left-n6{margin-left:-6px;}.backdrop-line{display:flex;align-items:center;color:",";.left-label{height:14px;color:",';line-height:14px;white-space:nowrap;}[type="color-btn"]{margin:0 6px;}}'],pt=>pt.theme.color_text_L2,pt=>pt.theme.color_text_L2,pt=>pt.theme.color_text_L2),gn=(0,zt.R)(()=>[{value:"ce",label:(0,t.jsx)(Tt,{name:I18N.SettingPanel.overlay_relative_pos.center,icon:"setting_panel/link/overlay_relative_pos/ce"})},{value:"tl",label:(0,t.jsx)(Tt,{name:I18N.SettingPanel.overlay_relative_pos.topleft,icon:"setting_panel/link/overlay_relative_pos/tl"})},{value:"tc",label:(0,t.jsx)(Tt,{name:I18N.SettingPanel.overlay_relative_pos.topcenter,icon:"setting_panel/link/overlay_relative_pos/tc"})},{value:"tr",label:(0,t.jsx)(Tt,{name:I18N.SettingPanel.overlay_relative_pos.topright,icon:"setting_panel/link/overlay_relative_pos/tr"})},{value:"bl",label:(0,t.jsx)(Tt,{name:I18N.SettingPanel.overlay_relative_pos.bottomleft,icon:"setting_panel/link/overlay_relative_pos/bl"})},{value:"bc",label:(0,t.jsx)(Tt,{name:I18N.SettingPanel.overlay_relative_pos.bottomcenter,icon:"setting_panel/link/overlay_relative_pos/bc"})},{value:"br",label:(0,t.jsx)(Tt,{name:I18N.SettingPanel.overlay_relative_pos.bottomright,icon:"setting_panel/link/overlay_relative_pos/br"})},{type:"divider"},{value:"manual",label:(0,t.jsx)(Tt,{name:I18N.SettingPanel.overlay_relative_pos.manual,icon:"setting_panel/link/overlay_relative_pos/manual"})}]),Zn=pt=>{let{interaction:Ht,currRBPageKey:nn,currSelectedCanvasKey:en,currentWidgetKey:Un,onChange:Kn,adaptTopPosition:Vn}=pt;const{isEditingCombo:vo}=(0,h.d4)(Rt.r),zn=(0,d.WB)(),{addBackdrop:Fn,backdropFilterBlurRadius:Rn=0,overlayRelativePos:Mo,overlayRelativePosX:wo=0,overlayRelativePosY:dn=0,expression:pn={}}=Ht.data||{},{backdropFilterBlurRadius:ho,overlayRelativePosX:Oo,overlayRelativePosY:qn}=pn,So=(0,n.useRef)(new Map(Object.entries(pn))),Ut=(0,n.useRef)(!1),an=(mn,Sn)=>{let Tn=mn.trim()||"0";const un=Number(Tn);return String(un)===Tn?(Sn==="backdropFilterBlurRadius"?Tn=(0,Te.d8)(un,[0,1e4]).toFixed(0):Tn=(0,Te.d8)(un,[-d.rT,d.rT]).toFixed(0),Kn(Tn,Sn),pn!=null&&pn[Sn]&&Kn({...pn,[Sn]:void 0},"expression"),So.current.delete(Sn),!1):(Tn!==(pn==null?void 0:pn[Sn])&&(Kn({...pn,[Sn]:Tn},"expression"),So.current.set(Sn,Tn)),!0)},wn=(mn,Sn)=>{Kn(mn,Sn);let Tn=!1,un={...pn};!mn&&pn!=null&&pn.backdropFilterBlurRadius?(Tn=!0,un={...pn,backdropFilterBlurRadius:void 0}):Fn&&!(pn!=null&&pn.backdropFilterBlurRadius)&&So.current.get("backdropFilterBlurRadius")&&(Tn=!0,un={...un,backdropFilterBlurRadius:So.current.get("backdropFilterBlurRadius")}),Ut.current=Tn,Tn&&Kn(un,"expression")},fn=(mn,Sn)=>{Kn(mn,Sn);const Tn=mn==="manual";let un=!1,An={...pn};!Tn&&(pn!=null&&pn.overlayRelativePosX||pn!=null&&pn.overlayRelativePosY)&&(un=!0,An={...pn,overlayRelativePosX:void 0,overlayRelativePosY:void 0}),Tn&&(!(pn!=null&&pn.overlayRelativePosX)&&So.current.get("overlayRelativePosX")&&(un=!0,An={...An,overlayRelativePosX:So.current.get("overlayRelativePosX")}),!(pn!=null&&pn.overlayRelativePosY)&&So.current.get("overlayRelativePosY")&&(un=!0,An={...An,overlayRelativePosY:So.current.get("overlayRelativePosY")})),Ut.current=un,un&&Kn(An,"expression")};return(0,n.useEffect)(()=>{if(Ut.current){Ut.current=!1;return}!pn.overlayRelativePosX&&So.current.get("overlayRelativePosX")&&So.current.delete("overlayRelativePosX"),!pn.overlayRelativePosY&&So.current.get("overlayRelativePosY")&&So.current.delete("overlayRelativePosY")},[pn]),(0,t.jsxs)(xn,{children:[(0,t.jsx)(Q,{className:"link-item-group",children:(0,t.jsx)(V.A,{linkTitle:I18N.w.rResCanvasAsOverlay,className:"overlay-action",children:(0,t.jsx)(H,{interaction:Ht,isSelectOverlay:!0,targetRBPageKey:nn,currSelectedCanvasKey:en,isEditingCombo:vo,onChange:Kn})})}),Ht.data.interactionType===o.O2.OpenOverlay&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"divider"}),(0,t.jsxs)(kn,{children:[(0,t.jsx)(Ve.A,{attr:"closeWhenClickingOutside",className:c()("overlay-check","height-32","margin-left-n6",Ve.p),label:I18N.SettingPanel.close_overlay_when_clicking_outside,isChecked:Ht.data.closeWhenClickingOutside,onChange:Kn}),(0,t.jsxs)("div",{className:"backdrop-line height-32 margin-left-n6",children:[(0,t.jsx)(Ve.A,{attr:"addBackdrop",className:"style-check "+Ve.p,isChecked:Fn,onChange:wn}),(0,t.jsx)(bt.R_,{className:bt.Fw,attr:"backdropColor",color:Ht.data.backdropColor,onChange:Kn,canOpenLib:!1}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.backdrop})]}),Fn&&(0,t.jsx)(V.A,{linkTitle:I18N.SettingPanel.backdrop_filter_blur_radius,className:"overlay-action",children:(0,t.jsx)("div",{className:"overlay-input-wrapper",children:(0,t.jsx)(_e,{value:ho||Rn.toFixed(0),visible:!!ho,valueType:"number",onSubmit:mn=>an(mn,"backdropFilterBlurRadius"),style:{width:"100%"},currentWidgetKey:Un,getInvalidIconContainer:mn=>{var Sn;return(Sn=mn.closest(".overlay-action"))==null?void 0:Sn.querySelector(".link-action-title")},children:(0,t.jsx)(U.A,{attr:"backdropFilterBlurRadius",value:Rn,min:0,max:1e4,onConfirm:Kn,unMountCallback:Kn})})})}),(0,t.jsx)(V.A,{linkTitle:I18N.pInspect.position,className:"overlay-action",children:(0,t.jsx)(ct.mq,{className:c()("overlay-relative-pos-select"),menuClassName:"overlay-relative-pos-select",attr:"overlayRelativePos",value:Mo,optionList:gn(),onChange:fn})}),Mo==="manual"&&(0,t.jsx)(V.A,{className:"overlay-action",children:(0,t.jsxs)("div",{className:"overlay-xy-input-wrapper",children:[(0,t.jsx)(_e,{value:Oo||wo.toFixed(0),visible:!!Oo,valueType:"number",prefix:"X",onSubmit:mn=>an(mn,"overlayRelativePosX"),style:{width:70},currentWidgetKey:Un,getInvalidIconContainer:mn=>{var Sn;return(Sn=mn.closest(".overlay-action"))==null||(Sn=Sn.previousElementSibling)==null?void 0:Sn.querySelector(".link-action-title")},children:(0,t.jsx)(U.A,{attr:"overlayRelativePosX",title:"X",value:wo,min:-d.rT,max:d.rT,onConfirm:Kn,unMountCallback:Kn})}),(0,t.jsx)(_e,{value:qn||dn.toFixed(0),visible:!!qn,valueType:"number",prefix:"Y",onSubmit:mn=>an(mn,"overlayRelativePosY"),style:{width:70,marginLeft:4},currentWidgetKey:Un,getInvalidIconContainer:mn=>{var Sn;return(Sn=mn.closest(".overlay-action"))==null||(Sn=Sn.previousElementSibling)==null?void 0:Sn.querySelector(".link-action-title")},children:(0,t.jsx)(U.A,{attr:"overlayRelativePosY",title:"Y",value:dn,min:-d.rT,max:d.rT,onConfirm:Kn,unMountCallback:Kn})})]})})]})]}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(Fe,{link:Ht,transitionOptions:zn,onChange:Kn,currentWidgetKey:Un}),(0,t.jsx)(Xe,{link:Ht,onChange:Kn,canResetScroll:!1,adaptTopPosition:Vn})]})},Pn=pt=>{let{interaction:Ht,currentWidgetKey:nn,onChange:en}=pt;return(0,t.jsx)(xn,{children:(0,t.jsx)(Fe,{noTransition:!0,link:Ht,onChange:en,currentWidgetKey:nn})})},_n=k.Ay.div.withConfig({displayName:"styles__StyledScrollLinkActions",componentId:"sc-xw7n8u-0"})([".is-placeholder{button{color:",';}}.transition-view{width:20px;height:20px;margin-bottom:unset;margin-right:8px;.pages{width:20px;height:20px;border:1px solid transparent;line-height:20px;[class*=" icon-"]{margin-left:unset;width:100%;height:100%;}.page2{color:#fff;background:',";}}}.link--drop-screen-list{width:108px;}.link--drop-transition-state-list{width:130px;width:108px;&:lang(ja){width:120px;}}.link--drop-transition-list{width:108px;}.no-both{flex:1;}.screen-link-fragment{padding:4px 7px 0 0;.select-number{width:60px;display:flex;align-items:center;.time-unit{margin-left:2px;}}}.panel-link-item{&:not(:last-child){margin-bottom:4px;}}.panel-link-screen-select{width:130px;padding-right:7px;button{justify-content:flex-end;}}.scroll-link-offset{.link-action-title{flex-shrink:0;}.title + input{margin-left:4px;}&.both{.state-link-select.offset-x{margin-right:3px;}.state-link-select.offset-y{margin-left:3px;}}}"],pt=>pt.theme.color_text_disabled01,pt=>pt.theme.color_proto);var Wn=e(64122);const Ln=(0,n.memo)(pt=>{const{link:Ht,currentWidgetKey:nn,onChange:en,adaptTopPosition:Un}=pt,{iterationCount:Kn="1",iterationInterval:Vn="0",expression:vo={}}=Ht.data||{},{iterationCount:zn,iterationInterval:Fn}=vo,Rn=(0,oe.W7)(Vn),Mo=(dn,pn)=>{let ho=dn.trim()||"0";const Oo=Number(ho);return String(Oo)===ho?(pn==="iterationCount"?ho=Oo===1/0?"infinite":(0,Te.d8)(Oo,[1,d.sw]).toFixed(0):ho=(0,Te.d8)(Oo,[0,d.sw]).toFixed(0),en(ho,pn),vo!=null&&vo[pn]&&en({...vo,[pn]:void 0},"expression"),!1):(ho!==(vo==null?void 0:vo[pn])&&en({...vo,[pn]:ho},"expression"),!0)},wo=(dn,pn)=>{en(String(dn),pn)};return(0,t.jsx)(lt,{linkKey:Ht.key,adaptTopPosition:Un,children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(V.A,{linkTitle:I18N.SettingPanel.ani_count,children:(0,t.jsx)(_e,{value:zn||(Kn==="infinite"?"Infinity":Kn),visible:!!zn,valueType:"number",onSubmit:dn=>Mo(dn,"iterationCount"),currentWidgetKey:nn,children:(0,t.jsx)(U.A,{attr:"iterationCount",value:Kn,menuClassName:"ani-count-select",min:1,max:d.sw,isNotVerify:Kn==="infinite",formatter:dn=>dn==="infinite"?I18N.SettingPanel.infinite:dn,optionList:(0,Wn.iT)(),unMountCallback:wo,onConfirm:wo})})}),(0,t.jsx)(V.A,{linkTitle:I18N.Interaction.iteration.interval,children:(0,t.jsx)(_e,{value:Fn||String(Rn!=null?Rn:0),visible:!!Fn,valueType:"number",onSubmit:dn=>Mo(dn,"iterationInterval"),currentWidgetKey:nn,children:(0,t.jsx)(U.A,{attr:"iterationInterval",value:Rn,suffix:"ms",min:0,max:d.sw,optionList:d.zI,unMountCallback:en,onConfirm:en})})})]})})}),io=pt=>{var Ht;let{link:nn,onChange:en,currentCanvas:Un,isEditingCombo:Kn,currentWidgetKey:Vn,adaptTopPosition:vo}=pt;const zn=(0,n.useRef)(null),Fn=(0,h.d4)(Gt.U2),Rn=(0,h.d4)(de.bt),{scrollToDir:Mo,scrollToOffsetX:wo=0,scrollToOffsetY:dn=0,expression:pn={}}=nn.data||{},{scrollToOffsetX:ho,scrollToOffsetY:Oo}=pn,qn=Mo==="horizontal"||Mo==="both",So=Mo==="vertical"||Mo==="both",Ut=(0,n.useRef)(new Map(Object.entries(pn))),an=(0,n.useRef)(!1),wn=un=>{var An;(An=zn.current)==null||An.close(),en(un,"targetWidgetKey")},fn=(un,An)=>{let oo=un.trim()||"0";const No=Number(oo);return String(No)===oo?(oo=(0,Te.d8)(No,[-d.rT,d.rT]).toFixed(0),en(oo,An),pn!=null&&pn[An]&&en({...pn,[An]:void 0},"expression"),Ut.current.delete(An),!1):(oo!==(pn==null?void 0:pn[An])&&(en({...pn,[An]:oo},"expression"),Ut.current.set(An,oo)),!0)},mn=un=>{en(un,"scrollToDir");const An=un==="horizontal"||un==="both",oo=un==="vertical"||un==="both";let No={...pn},Vo=!1;!An&&pn!=null&&pn.scrollToOffsetX&&(No={...No,scrollToOffsetX:void 0},an.current=!0,Vo=!0),An&&!(pn!=null&&pn.scrollToOffsetX)&&Ut.current.get("scrollToOffsetX")&&(No={...No,scrollToOffsetX:Ut.current.get("scrollToOffsetX")},Vo=!0),!oo&&pn!=null&&pn.scrollToOffsetY&&(No={...No,scrollToOffsetY:void 0},an.current=!0,Vo=!0),oo&&!(pn!=null&&pn.scrollToOffsetY)&&Ut.current.get("scrollToOffsetY")&&(No={...No,scrollToOffsetY:Ut.current.get("scrollToOffsetY")},Vo=!0),Vo&&en(No,"expression")};(0,n.useEffect)(()=>{if(an.current){an.current=!1;return}!pn.scrollToOffsetX&&Ut.current.get("scrollToOffsetX")&&Ut.current.delete("scrollToOffsetX"),!pn.scrollToOffsetY&&Ut.current.get("scrollToOffsetY")&&Ut.current.delete("scrollToOffsetY")},[pn]);const Sn=((Ht=nn.data)==null?void 0:Ht.targetWidgetKey)===Lt.VZ&&!Rn?(0,je.JC)(sdkStore,nn.triggerItemKey):nn.targetWidgetKey,Tn=!nn.isTargetWidgetValid;return(0,t.jsxs)(_n,{children:[(0,t.jsx)(Q,{className:"link-item-group",children:(0,t.jsx)(V.A,{linkTitle:I18N.SettingPanel.target_widget,children:(0,t.jsx)(p.Ay,{ref:zn,menux:"right",title:(0,oe.iI)(nn,Rn),isPlaceholder:!nn.isTargetWidgetValid,shouldPreventScrollingPropagation:!1,className:"link--drop-screen-list",forceDarkTheme:!0,icon:Tn?null:(0,t.jsx)(G.W,{renderItem:sdkStore.getHotItem(Sn),targetKey:Sn}),renderMenu:(0,t.jsx)(Yn,{keyTriggerItem:Fn,keyTargetItem:Sn,onSelectTargetItem:wn})})})}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(uo,{value:Mo,onChange:mn}),(0,t.jsx)(N,{className:c()("scroll-link-offset",{both:Mo==="both"}),children:(0,t.jsxs)(V.A,{linkTitle:I18N.SettingPanel.scroll_to_offset,children:[qn&&(0,t.jsx)("div",{className:c()("state-link-select offset-x",{"no-both":Mo!=="both"}),children:(0,t.jsx)(_e,{value:ho||wo.toFixed(0),visible:!!ho,valueType:"number",prefix:"X",onSubmit:un=>fn(un,"scrollToOffsetX"),style:{width:68},currentWidgetKey:Vn,getInvalidIconContainer:un=>{var An;return(An=un.closest(".scroll-link-offset"))==null?void 0:An.querySelector(".link-action-title")},children:(0,t.jsx)(U.A,{attr:"scrollToOffsetX",value:wo,title:"X",min:-d.rT,max:d.rT,isDisabled:Kn?!0:!Un,unMountCallback:en,onConfirm:en})})}),So&&(0,t.jsx)("div",{className:c()("state-link-select offset-y",{"no-both":Mo!=="both"}),children:(0,t.jsx)(_e,{value:Oo||dn.toFixed(0),visible:!!Oo,valueType:"number",prefix:"Y",onSubmit:un=>fn(un,"scrollToOffsetY"),style:{width:68},panelWidth:qn?329:400,currentWidgetKey:Vn,getInvalidIconContainer:un=>{var An;return(An=un.closest(".scroll-link-offset"))==null?void 0:An.querySelector(".link-action-title")},children:(0,t.jsx)(U.A,{attr:"scrollToOffsetY",title:"Y",value:dn,min:-d.rT,max:d.rT,isDisabled:Kn?!0:!Un,unMountCallback:en,onConfirm:en})})})]})}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(Fe,{link:nn,onChange:en,currentWidgetKey:Vn}),(0,t.jsx)(Ln,{link:nn,currentWidgetKey:Vn,onChange:en,adaptTopPosition:vo})]})};var to=e(63143),mo=e(35770),Io=e(70812);const co=pt=>{var Ht;let{interaction:nn,onChange:en,currentWidgetKey:Un,adaptTopPosition:Kn}=pt;const Vn=(0,h.d4)(Se.ue),vo=(0,h.d4)(de.oO),zn=(0,n.useMemo)(()=>({variables:(0,Me.qL)(Vn),p2sdkStore:sdkStore}),[Vn]),{targetVarKey:Fn,targetVarValue:Rn}=nn.data,Mo=Fn&&((Ht=sdkStore.getHotItem(Fn))==null?void 0:Ht.hotAttr.varDataType),[wo,dn]=(0,n.useState)(!0),pn=(0,n.useRef)(new Map),ho=(0,n.useRef)(null),Oo=wo?void 0:400,qn=!Fn||vo,So=I18N.Variable.editor[Fn?wo?"readonly_placeholder":"placeholder":"disabled_placeholder"].replace("{type}",(0,Le.IV)(Mo,!0));let Ut=!0;Rn&&(Ut=nn.isTargetValid&&nn.isTargetExprWattrValid);const an=un=>{if(!(Fn&&Fn===un)){if(sdkStore.combineMergeMark("update-target-var"),en(un,"targetVarKey"),un){const An=pn.current.has(un),oo=pn.current.get(un);if(An)en(oo,"targetVarValue");else{const No=sdkStore.getHotItem(un);if(!No)return en("","targetVarValue");const{varDataType:Vo}=No.hotAttr;Mo!==Vo||!Rn?en("","targetVarValue"):Tn(un,Rn)}}sdkStore.combineMerge("update-target-var")}},wn=()=>{qn||dn(!1)},fn=()=>{dn(!0),en(Rn,"targetVarValue"),Tn(Fn,Rn)},mn=(un,An)=>{typeof un=="string"&&(en(un,"targetVarValue"),Tn(Fn,un),Io.U4.updateInteractionTrack({type:"\u66F4\u65B0",interactionTrigger:nn.interactionTrigger,interactionType:nn.interactionType,value:An})),dn(!0)},Sn=un=>{un.stopPropagation()},Tn=(un,An)=>{un&&(An?pn.current.set(un,An):pn.current.delete(un))};return(0,n.useEffect)(()=>{Tn(Fn,Rn)},[]),(0,n.useEffect)(()=>{setTimeout(()=>{var un;if(!wo||!ho.current)return;const An=ho.current.clientWidth;(((un=ho.current.querySelector(".public-DraftStyleDefault-block"))==null?void 0:un.scrollWidth)||0)>An?ho.current.classList.add("is-overflow"):ho.current.classList.remove("is-overflow")},0)},[wo,Rn]),(0,t.jsxs)(ht,{children:[(0,t.jsxs)(Q,{className:"link-item-group",children:[(0,t.jsx)(V.A,{linkTitle:I18N.Variable.target,className:"transition-action",children:(0,t.jsx)(to.A,{value:Fn,onChange:an,showName:!0,disabled:vo,onClickoutside:un=>{var An,oo;return(An=un.target)==null||(oo=An.closest)==null?void 0:oo.call(An,"#tree-editor-float")}})}),(0,t.jsx)(V.A,{linkTitle:(0,t.jsxs)(t.Fragment,{children:[I18N.Variable.editor.value,!Ut&&(0,t.jsx)(fe.A,{content:I18N.Expression.invalid_value,direction:"down",delay:200,children:(0,t.jsx)(a.C,{name:"interaction/invalid",size:16,className:"expression-invalid-icon"})})]}),className:"transition-action expression-action",children:(0,t.jsx)(re.A,{maxWidth:"200px",style:{padding:8,wordWrap:"break-word"},tipClassName:"long-name-trigger fixed-transform-y10",enterHoverTime:200,isSkipShortTimerHover:!0,isShowTipsByTarget:()=>{var un,An;return wo&&((un=ho.current)==null||(un=un.querySelector(".DraftEditor-root"))==null?void 0:un.scrollWidth)>((An=ho.current)==null?void 0:An.clientWidth)},content:wo?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(xe.RN,{}),(0,t.jsx)(xe.j$,{className:"var-display-name",children:(0,t.jsx)(Ie.A,{readOnly:!0,simple:!0,value:Rn,valueType:Mo,scope:zn,multiline:!1,currentWidgetKey:Un})})]}):null,children:(0,t.jsx)(mo.Ef,{ref:ho,className:c()({"is-readonly-wrapper":wo,"is-disabled":qn}),onPaste:Sn,children:(0,t.jsx)(Ie.A,{disabled:qn,value:Rn,valueType:Mo,scope:zn,readOnly:wo,placeholder:So,width:Oo,onClick:wn,onSubmit:mn,onCancel:fn,currentWidgetKey:Un})})})}),(0,t.jsx)(Fe,{className:"no-padding",noTransition:!0,link:nn,onChange:en,currentWidgetKey:Un})]}),(0,t.jsx)(Ln,{link:nn,currentWidgetKey:Un,onChange:en,adaptTopPosition:Kn})]})};var On=e(92114);const Cn=pt=>{let{interaction:Ht,currentWidgetKey:nn,onChange:en}=pt;const Un=(0,h.d4)(Se.ue),Kn=(0,h.d4)(de.oO),Vn=(0,n.useMemo)(()=>({variables:(0,Me.qL)(Un),p2sdkStore:sdkStore}),[Un]),{branches:vo,branchSwitch:zn}=Ht.data,{condition:Fn}=vo[0],[Rn,Mo]=(0,n.useState)(!0),wo=(0,n.useRef)(null),dn=Rn?void 0:400,pn=Kn;let ho=!0;Fn&&(ho=Ht.isTargetValid);const Oo=()=>{pn||Mo(!1)},qn=()=>{Mo(!0),en(vo,"branches")},So=(an,wn)=>{typeof an=="string"&&(vo[0]={...vo[0],condition:an},en(vo,"branches"),Io.U4.updateInteractionTrack({type:"\u66F4\u65B0",interactionTrigger:Ht.interactionTrigger,interactionType:Ht.interactionType,value:wn})),Mo(!0)},Ut=an=>{an.stopPropagation()};return(0,n.useEffect)(()=>{setTimeout(()=>{var an;if(!Rn||!wo.current)return;const wn=wo.current.clientWidth;(((an=wo.current.querySelector(".public-DraftStyleDefault-block"))==null?void 0:an.scrollWidth)||0)>wn?wo.current.classList.add("is-overflow"):wo.current.classList.remove("is-overflow")},0)},[Rn,Fn]),(0,t.jsxs)(ht,{children:[(0,t.jsx)(Q,{className:"link-item-group",children:(0,t.jsx)(V.A,{linkTitle:(0,t.jsxs)(t.Fragment,{children:[I18N.Interaction.branch.condition,!ho&&(0,t.jsx)(fe.A,{content:I18N.Expression.invalid_value,direction:"down",delay:200,children:(0,t.jsx)(a.C,{name:"interaction/invalid",size:16,className:"expression-invalid-icon"})})]}),className:"transition-action",children:(0,t.jsx)(re.A,{maxWidth:"200px",style:{padding:8,wordWrap:"break-word"},tipClassName:"long-name-trigger fixed-transform-y10",enterHoverTime:200,isSkipShortTimerHover:!0,isShowTipsByTarget:()=>{var an,wn;return Rn&&((an=wo.current)==null||(an=an.querySelector(".DraftEditor-root"))==null?void 0:an.scrollWidth)>((wn=wo.current)==null?void 0:wn.clientWidth)},content:Rn?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(xe.RN,{}),(0,t.jsx)(xe.j$,{className:"var-display-name",children:(0,t.jsx)(Ie.A,{readOnly:!0,simple:!0,value:Fn,valueType:"boolean",scope:Vn,multiline:!1,currentWidgetKey:nn})})]}):null,children:(0,t.jsx)(mo.Ef,{ref:wo,className:c()({"is-readonly-wrapper":Rn,"is-disabled":pn}),onPaste:Ut,children:(0,t.jsx)(Ie.A,{disabled:pn,value:Fn,valueType:"boolean",scope:Vn,readOnly:Rn,placeholder:I18N.Variable.editor.condition_placeholder,width:dn,onClick:Oo,onSubmit:So,onCancel:qn,currentWidgetKey:nn})})})})}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(Q,{className:"link-item-group",children:(0,t.jsx)(V.A,{linkTitle:I18N.Interaction.branch.switch_title,className:"transition-action",children:(0,t.jsx)(On.A,{className:"branchSwitch",size:"small",isIOS:!0,isChecked:zn,onChange:an=>en(an,"branchSwitch")})})})]})},qe=pt=>{let Ht;try{Ht=new URL(pt)}catch(nn){return!1}return Ht.protocol==="http:"||Ht.protocol==="https:"},vn=pt=>{pt=pt.trim();const Ht=pt[0];return Ht!=='"'&&Ht!=="'"||pt[pt.length-1]!==Ht?!1:pt.slice(1,-1)},Jn=k.Ay.div.withConfig({displayName:"styles__StyledHyperlinkActions",componentId:"sc-12fp4my-0"})(["padding:0 16px;.hyperlink-transition{.hyperlink-open-select{width:108px;}}.hyperlink-input{header{display:flex;align-items:center;color:",";}.content-box-container{padding:8px 0;.content-area{width:100%;&:has(>textarea:focus,>textarea.active) + .icon-bind{display:none !important;}}.content-expression{height:auto;min-height:28px;&.is-active > div{width:464px !important;}}textarea{height:80px;background:",";}}}.tip-icon{margin-left:2px;color:",";&:hover{color:",";}}"],pt=>pt.theme.color_text_L3,pt=>pt.theme.color_bg_white,pt=>pt.theme.color_text_L3,pt=>pt.theme.color_text_L2);var ao=e(3356),no=e(29329);class ke extends n.PureComponent{constructor(Ht){var nn;super(Ht),(0,C.A)(this,"handleContentChange",Un=>{this.props.onChange(Un[0],"interactionExternalUrl")}),(0,C.A)(this,"handleContentBoxBlur",Un=>{Un[0]&&!qe(Un[0])?(MB.notice({text:I18N.SettingPanel.invalid_url_notice}),this.setState({isURLValid:!1})):this.setState({isURLValid:!0})}),(0,C.A)(this,"handleLinkExpChange",(Un,Kn,Vn)=>{var vo;const{link:zn,onChange:Fn}=this.props;let Rn=Un.trim()||"";const Mo=(vo=zn.expression)==null?void 0:vo.interactionExternalUrl;let wo=!Rn;if(Rn){const dn=(0,no.b5)(Vn);dn.length===1&&dn[0].type===no.wv.string&&(Rn=Rn.slice(1,-1),wo=!0)}return wo?(Fn(Rn,"interactionExternalUrl"),Mo&&Fn({...zn.expression,interactionExternalUrl:void 0},"expression"),this.handleContentBoxBlur([Rn]),this.setState({isURLValid:Rn?qe(Rn):!0}),!1):(Rn!==Mo&&(Fn({...zn.expression,interactionExternalUrl:Rn},"expression"),this.setState({isURLValid:!0})),!0)});const{link:en}=Ht;this.state={isURLValid:(nn=en.expression)!=null&&nn.interactionExternalUrl?!0:en.interactionExternalUrl?qe(en.interactionExternalUrl):!0}}render(){const{link:Ht,link:{interactionExternalUrl:nn,openIn:en,expression:Un},currentWidgetKey:Kn,onChange:Vn}=this.props,{isURLValid:vo}=this.state,zn=Un==null?void 0:Un.interactionExternalUrl,Fn=[{label:I18N.SettingPanel.new_tab,value:"newTab"},{label:I18N.SettingPanel.current_artboard_transition,value:"inPage"}];return(0,t.jsxs)(Jn,{className:"hyper-link-actions",children:[(0,t.jsx)(V.A,{linkTitle:I18N.SettingPanel.jump,className:"hyperlink-transition",children:(0,t.jsx)(ct.mq,{className:"hyperlink-open-select",attr:"openIn",value:en,optionList:Fn,isRightAlign:!0,onChange:Vn})}),(0,t.jsxs)("div",{className:"hyperlink-input",children:[(0,t.jsxs)("header",{className:"height-32",children:[I18N.SettingPanel.address,!vo&&(0,t.jsx)(fe.A,{maxWidth:"252px",content:I18N.SettingPanel.invalid_url_tip,children:(0,t.jsx)(a.C,{size:16,name:"design/warning",className:"tip-icon"})})]}),(0,t.jsx)("div",{className:"content-box-container",children:(0,t.jsx)(_e,{value:zn||(nn?'"'+nn+'"':""),valueType:"string",visible:!!zn,onSubmit:this.handleLinkExpChange,currentWidgetKey:Kn,className:"content-expression",style:{width:"100%"},getInvalidIconContainer:Rn=>{var Mo;return(Mo=Rn.closest(".hyperlink-input"))==null?void 0:Mo.querySelector("header")},children:(0,t.jsx)(ao.k,{placeholder:I18N.SettingPanel.input_address,onChange:this.handleContentChange,onBlur:this.handleContentBoxBlur,content:nn,ita:Ht,className:"content-area"})})})]}),(0,t.jsx)(Fe,{className:"no-padding",noTransition:!0,link:Ht,onChange:Vn,currentWidgetKey:Kn})]})}}var $n=e(70933),$t=e(37780),cn=e(19969),xt=e(40486),Et=e(99566);const jt=k.Ay.div.withConfig({displayName:"styles__StyledTransformActions",componentId:"sc-1sabri9-0"})([".transform-link-offset{padding-right:12px;}.title-content{position:relative;&.transform-origin{height:80px;align-items:start;padding-top:8px;.transform-origin-box{height:64px;width:64px;border:1px solid ",";display:grid;grid-template-columns:repeat(3,20.6px);border-radius:6px;.option{position:relative;height:20.6px;display:flex;align-items:center;justify-content:center;&::after{content:'';position:absolute;top:5.3px;left:5.3px;width:10px;height:10px;border-radius:2px;}.dot{width:2px;height:2px;border-radius:50%;background-color:",";}&:hover{&::after{background-color:",";}.dot{display:none;}}&.active,&:active{&::after{background-color:",';}.dot{display:none;}}}}}&.has-exp{align-items:start;height:auto;.link-action-title{margin-top:7px;}&.transform-action .transform-input{flex-direction:column;.transform-exp{width:148px;margin:2px 0;.link-exp-area{.prefix{width:max-content;padding-left:10px;padding-right:4px;}}}}.translate-tip{position:absolute;left:37px;top:8px;}}&.transform-action .transform-input{display:flex;width:148px;column-gap:2px;.transform-exp{width:72px;.link-exp-area .link-exp-wrapper .expression-editor-panel #expression-editor::before{line-height:22px;font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;}}}.transform-exp:hover .WorkspaceInputNumber.is-active:not(.is-disabled){border:1px solid ',";}.link-exp-area > svg{flex-shrink:0;color:",";margin-left:1px;}.translate-tip{position:absolute;left:37px;}svg.translate-tip{&:hover{path{fill:",";}}path{fill:",";}}}.WorkspaceInputNumber:not(.icon-title){.title{padding-left:10px;padding-right:4px;}}.rotate3d{margin-left:6px;}"],pt=>pt.theme.color_bg_border_01,pt=>pt.theme.color_text_disabled01,pt=>pt.theme.color_btn_primary_disabled,pt=>pt.theme.color_btn_primary_normal,pt=>pt.theme.color_proto,pt=>pt.theme.color_text_L3,pt=>pt.theme.color_text_L1,pt=>pt.theme.color_text_L3),Jt=["topLeft","top","topRight","left","center","right","bottomLeft","bottom","bottomRight"],In={topLeft:[0,0],top:[50,0],topRight:[100,0],left:[0,50],center:[50,50],right:[100,50],bottomLeft:[0,100],bottom:[50,100],bottomRight:[100,100]},En=(pt,Ht)=>pt===0&&Ht===0?"topLeft":pt===50&&Ht===0?"top":pt===100&&Ht===0?"topRight":pt===0&&Ht===50?"left":pt===50&&Ht===50?"center":pt===100&&Ht===50?"right":pt===0&&Ht===100?"bottomLeft":pt===50&&Ht===100?"bottom":pt===100&&Ht===100?"bottomRight":"",hn=pt=>{var Ht;let{link:nn,onChange:en,currentCanvas:Un,isEditingCombo:Kn,currentWidgetKey:Vn,adaptTopPosition:vo}=pt;const zn=(0,n.useRef)(null),Fn=(0,h.d4)(Gt.U2),Rn=(0,h.d4)(de.bt),[Mo,wo]=(0,n.useState)(!0),dn=(0,n.useRef)({translateX:!1,translateY:!1}),{rotate3d:pn,transformTranslateX:ho=0,transformTranslateY:Oo=0,transformScaleX:qn=0,transformScaleY:So=0,transformRotateZ:Ut=0,transformRotateX:an=0,transformRotateY:wn=0,transformOriginX:fn,transformOriginY:mn,expression:Sn={}}=nn.data||{},{transformTranslateX:Tn,transformTranslateY:un,transformScaleX:An,transformScaleY:oo,transformRotateZ:No,transformRotateX:Vo,transformRotateY:Ko}=Sn,zo=(0,n.useRef)(new Map(Object.entries(Sn))),xs=(0,n.useMemo)(()=>Mo?I18N.Interaction.transform.translate_tip:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{children:I18N.Interaction.transform.translate_tip}),(0,t.jsx)("div",{children:I18N.Expression.invalid_value})]}),[Mo]),ys=((Ht=nn.data)==null?void 0:Ht.targetWidgetKey)===Lt.VZ&&!Rn?(0,je.JC)(sdkStore,nn.triggerItemKey):nn.targetWidgetKey,ss=!nn.isTargetWidgetValid,le=Dt=>{var Xt;if(!Dt||((Xt=zn.current)==null||Xt.close(),en(Dt,"targetWidgetKey"),ys))return;let Xn=Dt;if(Dt===Lt.rE&&(Xn=Fn),Dt===Lt.VZ&&(Xn=(0,je.JC)(sdkStore,Fn)),Xn){var Do;const Uo=((Do=sdkStore.getHotItem(Xn||""))==null?void 0:Do.hotAttr.r)||0;en(Uo,"transformRotateZ")}},At=(Dt,Xt)=>{let Xn=Dt.trim()||"0",Do=Number(Xn);return Xn.startsWith("-")&&!isNaN(Number(Xn.replace(/\s/g,"")))&&(Do=Number(Xn.replace(/\s/g,""))),String(Do)===Xn||String(Do)===Xn.replace(/\s/g,"")?(Xn=(0,Te.d8)(Do,[-d.rT,d.rT]).toFixed(0),en(Xn,Xt),Sn!=null&&Sn[Xt]&&en({...Sn,[Xt]:void 0},"expression"),zo.current.delete(Xt),!1):(Xn!==(Sn==null?void 0:Sn[Xt])&&(en({...Sn,[Xt]:Xn},"expression"),zo.current.set(Xt,Xn)),!0)},Pt=Dt=>{if(!Dt)return;const[Xt=50,Xn=50]=In[Dt]||[];en(Xt,"transformOriginX"),en(Xn,"transformOriginY")},Re=function(Dt,Xt){var Xn;if(Xt===void 0&&(Xt=!1),Xt){var Do;return pn?(Do=Dt.closest(".transform-link-offset"))==null?void 0:Do.querySelector(".rotate3d-action.title-content .link-action-title"):void 0}return(Xn=Dt.closest(".title-content"))==null?void 0:Xn.querySelector(".link-action-title")},yt=(Dt,Xt)=>{Xt==="translateX"&&(dn.current.translateX=Dt),Xt==="translateY"&&(dn.current.translateY=Dt),wo(!dn.current.translateX&&!dn.current.translateY)};return(0,t.jsxs)(jt,{children:[(0,t.jsx)(Q,{className:"link-item-group",children:(0,t.jsx)(V.A,{linkTitle:I18N.SettingPanel.design.link_target,children:(0,t.jsx)(p.Ay,{ref:zn,menux:"right",title:(0,oe.iI)(nn,Rn),isPlaceholder:!nn.isTargetWidgetValid,shouldPreventScrollingPropagation:!1,className:"link--drop-screen-list",forceDarkTheme:!0,icon:ss?null:(0,t.jsx)(G.W,{renderItem:sdkStore.getHotItem(ys),targetKey:ys}),renderMenu:(0,t.jsx)(Yn,{keyTriggerItem:Fn,keyTargetItem:ys,onSelectTargetItem:le})})})}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsxs)(N,{className:"transform-link-offset",children:[(0,t.jsxs)(V.A,{linkTitle:I18N.Interaction.transform.translate,className:c()("transform-action",{"has-exp":Tn||un}),children:[(0,t.jsxs)("div",{className:"transform-input",children:[(0,t.jsx)(_e,{className:"transform-exp",initPosition:{top:-6,left:6},value:Tn||String(Number(ho.toFixed(0))),visible:!!Tn,valueType:"number",prefix:"X",onSubmit:Dt=>At(Dt,"transformTranslateX"),currentWidgetKey:Vn,getInvalidIconContainer:Dt=>Re(Dt),invalidContent:xs,onInvalidIconVisible:Dt=>yt(Dt,"translateX"),children:(0,t.jsx)(U.A,{attr:"transformTranslateX",title:"X",value:ho,min:-d.rT,max:d.rT,unMountCallback:en,onConfirm:en})}),(0,t.jsx)(_e,{className:"transform-exp",initPosition:{top:-6,left:6},value:un||String(Number(Oo).toFixed(0)),visible:!!un,valueType:"number",prefix:"Y",onSubmit:Dt=>At(Dt,"transformTranslateY"),currentWidgetKey:Vn,getInvalidIconContainer:Dt=>Re(Dt),invalidContent:xs,onInvalidIconVisible:Dt=>yt(Dt,"translateY"),children:(0,t.jsx)(U.A,{attr:"transformTranslateY",title:"Y",value:Oo,min:-d.rT,max:d.rT,unMountCallback:en,onConfirm:en})})]}),Mo&&(0,t.jsx)(fe.A,{content:I18N.Interaction.transform.translate_tip,direction:"down",maxWidth:"180px",children:(0,t.jsx)(a.C,{className:"translate-tip",size:16,name:"interaction/trigger/listener/tip"})})]}),(0,t.jsx)(V.A,{linkTitle:I18N.Interaction.transform.scale,className:c()("transform-action",{"has-exp":An||oo}),children:(0,t.jsxs)("div",{className:"transform-input",children:[(0,t.jsx)(_e,{className:"transform-exp",initPosition:{top:-6,left:6},value:An||String(Number(qn).toFixed(0)),visible:!!An,valueType:"number",prefix:"X",suffix:"%",onSubmit:Dt=>At(Dt,"transformScaleX"),currentWidgetKey:Vn,getInvalidIconContainer:Dt=>Re(Dt),children:(0,t.jsx)(U.A,{attr:"transformScaleX",title:"X",suffix:"%",value:qn,min:-d.rT,max:d.rT,unMountCallback:en,onConfirm:en})}),(0,t.jsx)(_e,{className:"transform-exp",initPosition:{top:-6,left:6},value:oo||String(Number(So).toFixed(0)),visible:!!oo,valueType:"number",prefix:"Y",suffix:"%",onSubmit:Dt=>At(Dt,"transformScaleY"),currentWidgetKey:Vn,getInvalidIconContainer:Dt=>Re(Dt),children:(0,t.jsx)(U.A,{attr:"transformScaleY",title:"Y",suffix:"%",value:So,min:-d.rT,max:d.rT,unMountCallback:en,onConfirm:en})})]})}),(0,t.jsx)(V.A,{linkTitle:I18N.Interaction.transform.rotate,children:(0,t.jsx)(_e,{className:"transform-exp",value:No||String(Number(Ut).toFixed(0)),visible:!!No,valueType:"number",prefixIcon:(0,t.jsx)(a.C,{size:24,name:"setting_panel/general/rotate"}),suffix:"\xB0",onSubmit:Dt=>At(Dt,"transformRotateZ"),style:{width:No?148:72},currentWidgetKey:Vn,getInvalidIconContainer:Dt=>Re(Dt),children:(0,t.jsx)(U.A,{className:"step-input-width-72 icon-title",attr:"transformRotateZ",title:(0,t.jsx)(a.C,{name:"setting_panel/general/rotate"}),suffix:"\xB0",value:Ut,min:-d.rT,max:d.rT,unMountCallback:en,onConfirm:en})})}),(0,t.jsx)(V.A,{className:"rotate3d-action",linkTitle:I18N.Interaction.transform.rotate3d,children:(0,t.jsx)(On.A,{className:"rotate3d",size:"small",isIOS:!0,isChecked:pn,onChange:Dt=>en(Dt,"rotate3d")})}),pn&&(0,t.jsx)(V.A,{linkTitle:"",className:c()("transform-action",{"has-exp":Vo||Ko}),children:(0,t.jsxs)("div",{className:"transform-input",children:[(0,t.jsx)(_e,{className:"transform-exp",value:Vo||String(Number(an).toFixed(0)),visible:!!Vo,valueType:"number",prefixIcon:(0,t.jsx)(a.C,{size:24,name:"setting_panel/general/rotateX"}),suffix:"\xB0",onSubmit:Dt=>At(Dt,"transformRotateX"),currentWidgetKey:Vn,getInvalidIconContainer:Dt=>Re(Dt,!0),children:(0,t.jsx)(U.A,{className:"step-input-width-72 icon-title",attr:"transformRotateX",title:(0,t.jsx)(a.C,{name:"setting_panel/general/rotateX"}),suffix:"\xB0",value:an,min:-d.rT,max:d.rT,toolTipContent:I18N.Expression.exprWattr.RX,unMountCallback:en,onConfirm:en})}),(0,t.jsx)(_e,{className:"transform-exp",value:Ko||String(Number(wn).toFixed(0)),visible:!!Ko,valueType:"number",prefixIcon:(0,t.jsx)(a.C,{size:24,name:"setting_panel/general/rotateY"}),suffix:"\xB0",onSubmit:Dt=>At(Dt,"transformRotateY"),currentWidgetKey:Vn,getInvalidIconContainer:Dt=>Re(Dt,!0),children:(0,t.jsx)(U.A,{className:"step-input-width-72 icon-title",attr:"transformRotateY",title:(0,t.jsx)(a.C,{name:"setting_panel/general/rotateY"}),suffix:"\xB0",value:wn,min:-d.rT,max:d.rT,toolTipContent:I18N.Expression.exprWattr.RY,unMountCallback:en,onConfirm:en})})]})}),(0,t.jsx)(V.A,{linkTitle:I18N.Interaction.transform.origin,className:"transform-origin",children:(0,t.jsx)("div",{className:"transform-origin-box",children:Jt.map(Dt=>(0,t.jsx)("div",{className:c()("option",{active:Dt===En(fn,mn)}),onClick:()=>Pt(Dt),children:(0,t.jsx)("div",{className:"dot"})},Dt))})})]}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(Fe,{link:nn,onChange:en,currentWidgetKey:Vn}),(0,t.jsx)(Ln,{link:nn,currentWidgetKey:Vn,onChange:en,adaptTopPosition:vo})]})},_o=k.Ay.div.withConfig({displayName:"styles__StyledShowCase",componentId:"sc-7lnq7p-0"})(["height:80px;font-size:18px;color:",";display:flex;justify-content:center;align-items:center;animation-timing-function:ease-in-out;animation-iteration-count:infinite;"],pt=>pt.theme.color_text_L1),yo=k.Ay.div.withConfig({displayName:"styles__StyledSetAnimationActions",componentId:"sc-7lnq7p-1"})([".WorkspaceSelect.is-placeholder > button{color:",";}.animation-box{margin:8px 0px;background:",";overflow:hidden;border-radius:6px;}.amimation-name-opener{cursor:pointer;}"],pt=>pt.theme.color_text_link_normal,pt=>pt.theme.color_bg_card),Qn=(0,k.DU)(["#IBOT_SELECT_MENU_ROOT .SelectMenuPortal .WorkspaceSelectMenu.SelectNumberMenu.ani-count-select{max-height:326px;}"]);var ze=e(25431),Oe=e(7501),De=e(64165),Be=e(87332),Qe=e(89775),$e=e.n(Qe),ot=e(51306);const mt=pt=>{let{isTargetAniValid:Ht,targetWKey:nn,animationName:en,onChange:Un}=pt;const Kn=(0,n.useRef)(null),[Vn,vo]=(0,n.useState)(!1),zn=!en||!Ht;return(0,n.useEffect)(()=>{let Fn;return(0,rt.kV)(ot.P)&&((0,rt.G5)(ot.P),Fn=setTimeout(()=>vo(!!(nn&&!en)))),()=>{Fn&&clearTimeout(Fn)}},[]),(0,t.jsx)(Be.A,{isDefaultOpen:Vn,isAnimation:!0,distance:0,offsetX:-15,ref:Kn,renderOpener:(0,t.jsx)(p.se,{className:"amimation-name-opener",title:zn?I18N.SettingPanel.please_select:I18N.dConst.ani[en],isPlaceholder:zn}),renderMenu:(0,t.jsx)(ft,{targetWKey:nn,animationName:en,dropdownRef:Kn,onChange:Un})})},ft=pt=>{let{targetWKey:Ht,animationName:nn,dropdownRef:en,onChange:Un}=pt;const Kn=(0,n.useRef)(null),Vn=(0,n.useMemo)(()=>{var zn;return(zn=sdkStore.getHotItem(Ht))==null?void 0:zn.hotAttr.type},[Ht]);(0,n.useEffect)(()=>{var zn;(zn=Kn.current)==null||(zn=zn.querySelector('li[role="option"][data-value="'+nn+'"]'))==null||zn.scrollIntoView(!1)},[nn]);const vo=zn=>{let{currentTarget:Fn}=zn;if(Fn.dataset.value){var Rn;Un(Fn.dataset.value,"animationName"),(Rn=en.current)!=null&&Rn.state.isMenuShow&&en.current.setState({isMenuShow:!1})}};return(0,t.jsx)(gt,{ref:Kn,className:"animation-name-dropmenu",onClick:De.dG,children:(0,Wn.po)(Vn).map((zn,Fn)=>$e()(zn)?(0,t.jsx)(ze.YJ,{menuTheme:"plain",optionList:zn,value:nn,onChange:vo},Fn):(0,t.jsx)(ze.c$,{menuTheme:"plain",isActive:(0,Oe.o3)(zn,nn),option:zn,isDisabled:zn.isDisabled,onChange:vo},Fn))})},gt=k.Ay.ul.withConfig({displayName:"AniNameDropdown__StyledAniNameMenu",componentId:"sc-3w4tjx-0"})(["min-width:100%;min-height:30px;max-height:300px;overflow:hidden auto;list-style:none;transition-property:transform,opacity;transform-origin:50% 0px;margin:0px;padding:8px;border-radius:8px;color:",";background:",";box-shadow:",";border:1px solid ",";border-radius:8px;width:176px;max-width:176px;padding:8px;background-color:",";box-shadow:",";> .divider{border-bottom:1px solid ",";margin:5px;}.SelectOption{display:flex;align-items:center;height:24px;line-height:24px;cursor:pointer;font-size:12px;font-weight:400;& > .Ellipsis{padding:0 16px 0 32px;min-width:160px;}&.is-disabled{cursor:not-allowed;opacity:0.5;}&.is-active{color:#fff;mix-blend-mode:normal;position:relative;}.shortcutkey{color:#999;float:right;}.svg-icon3 svg{color:#f2f4f5;width:12px;height:12px;position:relative;top:2px;}&.is-active .svg-icon2 svg{width:8px;height:6px;position:absolute;left:12px;top:9px;}&:not(.empty-msg):not(.is-disabled):not(.is-active):hover{background-color:#666;color:#fff;}border-radius:4px;height:28px;line-height:28px;&.is-active{color:",";}&:not(.empty-msg):not(.is-disabled):not(.is-active):hover{background-color:",";color:",";}&:not(.empty-msg):not(.is-disabled):hover{background:",";}}.SelectGroup{.divider{height:1px;margin:4px 16px;background:#7d8694;}& > .title{font-size:12px;padding:0 8px 0 16px;width:100%;height:30px;line-height:30px;color:rgba(255,255,255,0.7);span{display:block;}}& > ul{margin:0;padding:0;}> .title{color:",";}}"],pt=>pt.theme.color_text_L1,pt=>pt.theme.color_bg_white,pt=>pt.theme.shadow_m,pt=>pt.theme.color_bg_border_01,pt=>pt.theme.color_bg_white,pt=>pt.theme.shadow_m,pt=>pt.theme.color_bg_border_01,pt=>pt.theme.color_text_L1,pt=>pt.theme.color_btn_secondary_hover,pt=>pt.theme.color_text_L1,pt=>pt.theme.color_btn_secondary_hover,pt=>pt.theme.color_text_L3),_t=pt=>{let{duration:Ht,text:nn=I18N.SettingPanel.show_case}=pt;const[en,Un]=(0,n.useState)(""),Kn=(0,n.useRef)(),Vn=(0,n.useRef)(),vo=(0,n.useCallback)(()=>{const zn=performance.now(),Fn=nn.length,Rn=()=>{const Mo=(performance.now()-zn)/Ht;if(Mo<1){const wo=Math.floor(Mo*Fn);Un(nn.slice(0,wo)),Kn.current=requestAnimationFrame(Rn)}else Un(nn),Vn.current=setTimeout(vo,Ht/Fn)};Kn.current=requestAnimationFrame(Rn)},[Ht,nn]);return(0,n.useEffect)(()=>(vo(),()=>{Kn.current&&cancelAnimationFrame(Kn.current),Vn.current&&clearTimeout(Vn.current)}),[vo]),(0,t.jsx)(_o,{children:en})},Yt=pt=>{var Ht;let{link:nn,onChange:en,currentCanvas:Un,isEditingCombo:Kn,currentWidgetKey:Vn,adaptTopPosition:vo}=pt;const zn=(0,n.useRef)(null),Fn=(0,h.d4)(Gt.U2),Rn=(0,h.d4)(de.bt),{animationName:Mo="",animationDuration:wo=1e3,transitionDelay:dn,iterationCount:pn,expression:ho={}}=nn.data||{},{animationDuration:Oo}=ho,qn=(0,n.useRef)(new Map(Object.entries(ho))),So=((Ht=nn.data)==null?void 0:Ht.targetWidgetKey)===Lt.VZ&&!Rn?(0,je.JC)(sdkStore,nn.triggerItemKey):nn.targetWidgetKey,Ut=!nn.isTargetWidgetValid,an=(0,n.useMemo)(()=>({animationName:Mo,animationDelay:dn,animationDuration:wo+"ms"}),[Mo,wo,dn]),wn=Tn=>{var un,An;Tn&&(Mo===Wn.nn&&((un=sdkStore.getHotItem(Tn))==null?void 0:un.hotAttr.type)!==Po.x.WRichText&&en("","animationName"),(An=zn.current)==null||An.close(),en(Tn,"targetWidgetKey"))},fn=(Tn,un)=>{let An=Tn.trim()||"0";const oo=Number(An);return String(oo)===An?(An=(0,Te.d8)(oo,[0,d.sw]).toFixed(0),en(An,un),ho!=null&&ho[un]&&en({...ho,[un]:void 0},"expression"),qn.current.delete(un),!1):(An!==(ho==null?void 0:ho[un])&&(en({...ho,[un]:An},"expression"),qn.current.set(un,An)),!0)},mn=(Tn,un)=>{en(String(Tn),un)},Sn=Tn=>{var un;return(un=Tn.closest(".title-content"))==null?void 0:un.querySelector(".link-action-title")};return(0,t.jsxs)(yo,{children:[(0,t.jsx)(Q,{className:"link-item-group",children:(0,t.jsx)(V.A,{linkTitle:I18N.SettingPanel.design.link_target,children:(0,t.jsx)(p.Ay,{ref:zn,menux:"right",title:(0,oe.iI)(nn,Rn),isPlaceholder:!nn.isTargetWidgetValid,shouldPreventScrollingPropagation:!1,className:"link--drop-screen-list",forceDarkTheme:!0,icon:Ut?null:(0,t.jsx)(G.W,{renderItem:sdkStore.getHotItem(So),targetKey:So}),renderMenu:(0,t.jsx)(Yn,{keyTriggerItem:Fn,keyTargetItem:So,onSelectTargetItem:wn})})})}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsxs)(N,{className:"setanimation-link-offset",children:[(0,t.jsx)(V.A,{linkTitle:I18N.SettingPanel.animation,children:(0,t.jsx)(mt,{isTargetAniValid:nn.isTargetAniValid,targetWKey:So===Lt.rE?Fn:So,animationName:Mo,onChange:en})}),(0,t.jsx)(V.A,{linkTitle:I18N.SettingPanel.ani_duration,children:(0,t.jsx)(_e,{value:Oo||String(Number(wo).toFixed(0)),visible:!!Oo,valueType:"number",suffix:"ms",onSubmit:Tn=>fn(Tn,"animationDuration"),currentWidgetKey:Vn,getInvalidIconContainer:Tn=>Sn(Tn),children:(0,t.jsx)(U.A,{attr:"animationDuration",value:wo,suffix:"ms",min:0,max:d.sw,optionList:d.zI,unMountCallback:en,onConfirm:en})})}),(0,t.jsx)("div",{className:"animation-box",children:Mo===Wn.nn?(0,t.jsx)(_t,{duration:wo}):(0,t.jsx)(_o,{style:an,children:I18N.SettingPanel.show_case})}),(0,t.jsx)(Fe,{className:"no-padding",link:nn,onChange:en,currentWidgetKey:Vn,noTransition:!0})]}),(0,t.jsx)(Ln,{link:nn,currentWidgetKey:Vn,onChange:en,adaptTopPosition:vo}),(0,t.jsx)(Qn,{})]})},Ft=k.Ay.div.withConfig({displayName:"styles__StyledInteractionSetInputFocusEditor",componentId:"sc-1odn37c-0"})(["padding:0px 16px 0px 16px;"]),Zt=pt=>{let{isFocus:Ht,onChange:nn}=pt;return(0,t.jsxs)(Nt,{children:[(0,t.jsxs)("div",{className:"item "+(Ht?"active":""),onClick:()=>nn(!0),children:[(0,t.jsx)(a.C,{name:"interaction/action/15",size:16}),I18N.Interaction.setInputFocus.focus,(0,t.jsx)(fe.A,{content:I18N.Interaction.setInputFocus.ios_focus_fail,direction:"up",children:(0,t.jsx)(a.C,{className:"focus-tip",size:16,name:"interaction/trigger/listener/tip"})})]}),(0,t.jsxs)("div",{className:"item "+(Ht?"":"active"),onClick:()=>nn(!1),children:[(0,t.jsx)(a.C,{name:"interaction/input_blur",size:16}),I18N.Interaction.setInputFocus.blur]})]})},Nt=k.Ay.div.withConfig({displayName:"FocusSelector__StyledFocusSelector",componentId:"sc-1fnhy5k-0"})(["display:flex;margin:10px 0;.item{width:103px;height:26px;display:flex;column-gap:2px;align-items:center;justify-content:center;border:1px solid ",";border-right:none;overflow:hidden;cursor:pointer;color:",";&:first-child{border-radius:4px 0px 0px 4px;}&:last-child{border-radius:0px 4px 4px 0px;border-right:1px solid ","}&:hover{background-color:",";}&.active{background-color:",";}.focus-tip{&:hover{path{fill:",";}}path{fill:",";}}}"],pt=>pt.theme.color_bg_border_02,pt=>pt.theme.color_text_L1,pt=>pt.theme.color_bg_border_02,pt=>pt.theme.color_btn_secondary_active,pt=>pt.theme.color_btn_secondary_active,pt=>pt.theme.color_text_L1,pt=>pt.theme.color_text_L3),Qt=pt=>{let{link:Ht,onChange:nn,currentWidgetKey:en,adaptTopPosition:Un}=pt;const Kn=(0,n.useRef)(null),Vn=(0,h.d4)(Gt.U2),vo=(0,h.d4)(de.bt),{targetWidgetKey:zn,isTargetWidgetValid:Fn,data:Rn}=Ht,{isFocus:Mo,isSelectContent:wo}=Rn||{},dn=zn,pn=!Fn;(0,n.useEffect)(()=>{Mo&&(Un==null||Un())},[Un,Mo]);const ho=qn=>{var So;qn&&((So=Kn.current)==null||So.close(),nn(qn,"targetWidgetKey"))},Oo=qn=>!qn||qn.hotAttr.type!==Po.x.WMTextInput&&qn.hotAttr.type!==Po.x.WMTextArea;return(0,t.jsxs)(Ft,{children:[(0,t.jsx)(V.A,{linkTitle:I18N.Interaction.setInputFocus.input,children:(0,t.jsx)(p.Ay,{ref:Kn,menux:"right",title:(0,oe.iI)(Ht,vo),isPlaceholder:pn,shouldPreventScrollingPropagation:!1,className:"link--drop-screen-list",forceDarkTheme:!0,icon:pn?null:(0,t.jsx)(G.W,{renderItem:sdkStore.getHotItem(dn),targetKey:dn}),renderMenu:(0,t.jsx)(Yn,{keyTriggerItem:Vn,keyTargetItem:dn,onSelectTargetItem:ho,checkInvalidTargetItem:Oo,renderEmptyItaTargetItem:(0,t.jsxs)(M.wz,{children:[(0,t.jsx)(a.C,{className:"alert",name:"setting_panel/link/alert"}),(0,t.jsxs)("span",{children:["\xA0",I18N.Interaction.setInputFocus.no_input_widget]})]})})})}),(0,t.jsx)(Zt,{isFocus:Mo,onChange:qn=>nn(qn,"isFocus")}),Mo&&(0,t.jsx)(Ve.A,{attr:"isSelectContent",className:c()("height-32","margin-left-n6",Ve.p),label:I18N.Interaction.setInputFocus.selectContent,isChecked:wo,onChange:nn}),(0,t.jsx)(Fe,{className:"no-padding",noTransition:!0,link:Ht,onChange:nn,currentWidgetKey:en})]})},{LinkToCanvas:vt,LinkToSourceCanvas:yn,SetBasketCanvas:rn,OpenExternalUrl:Ot,ScrollTo:Nn,SetVisibility:To,OpenOverlay:fo,SwapOverlay:ro,CloseOverlay:Bn,SetVariableValue:Ao,ConditionalBranches:go,Transform:Jo,SetAnimation:$o,SetInputFocus:po}=o.O2,us=(0,i.Mz)([f.He,de.jI,de.bt,Rt.r,$n.Ur,cn.wN],(pt,Ht,nn,en,Un,Kn)=>{let{isEditingCombo:Vn,isEditingMuban:vo}=en;return{screenDataMap:pt,editingPanelCid:Ht,editingPanelRefPage:nn,isEditingCombo:Vn,currentScreen:Un,isEditingMuban:vo,isGlobalLink:Kn}}),hs=(0,n.memo)(pt=>{const{link:Ht,currentWidgetKey:nn,currentCanvas:en,hasTrash:Un,interactionTree:Kn,selectTreeNode:Vn,uiFrom:vo,interactionStore:zn,isNewTriggerPlaceHolder:Fn=!0,adaptTopPosition:Rn}=pt,Mo=(0,h.wA)(),{currentScreen:wo,editingPanelRefPage:dn,isEditingCombo:pn,screenDataMap:ho,editingPanelCid:Oo,isGlobalLink:qn}=(0,h.d4)(us),So=function(wn,fn,mn){mn===void 0&&(mn=""),Mo($t.R7.command.updateItaKV({link:Ht,attr:fn,value:wn,uiFrom:vo,interactionStore:zn,isNewTriggerPlaceHolder:Fn,nextTNodeTrigger:mn})),fn==="interactionTrigger"?Io.U4.updateInteractionTrack({type:"\u66F4\u65B0",interactionTrigger:wn,interactionType:Ht.interactionType}):fn==="interactionType"&&Io.U4.updateInteractionTrack({type:"\u66F4\u65B0",interactionTrigger:Ht.interactionTrigger,interactionType:wn})},Ut=wn=>{const fn=(0,Et.AE)(wn);zn.command.updateTriggerInfo(fn,wn),So(wn.interactionTrigger,"interactionTrigger",fn)},an=()=>{Mo($t.R7.command.deleteIta({deleteNode:Vn,uiFrom:vo,interactionStore:zn}))};return(0,n.useEffect)(()=>()=>{xt.Wv.clear()},[]),(0,t.jsxs)(mo.pn,{"data-cid":Ht.key,className:c()("link-editor",{disabled:!1}),id:qn?"twinkling-global-link-"+Ht.key:"",children:[(0,t.jsx)("div",{className:c()("link-content"),children:(0,t.jsxs)("div",{className:"link-main",children:[(0,t.jsx)(u.A,{tNodeTrigger:Ht.runtimeNodeTrigger,onChangeTrigger:Ut,hasTrash:Un,interactionTree:Kn,handleDelete:an}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(I.A,{supTreeNode:zn.query.getNode(Vn.sup),link:Ht,isEditingCombo:pn,onChange:So}),[vt,yn].includes(Ht.interactionType)&&(0,t.jsx)(tt,{link:Ht,editingPanelCid:Oo,targetScreen:ho[Ht.targetRBPageKey||(en==null?void 0:en.sup)]||wo,currentCanvas:en,isEditingCombo:pn,onChange:So,currentWidgetKey:nn,adaptTopPosition:Rn}),Ht.interactionType===rn&&(0,t.jsx)(Kt,{link:Ht,editingPanelRefPage:dn,currentWidgetKey:nn,onChange:So,adaptTopPosition:Rn}),Ht.interactionType===Ot&&(0,t.jsx)(ke,{link:Ht,onChange:So,currentWidgetKey:nn}),Ht.interactionType===Nn&&(0,t.jsx)(io,{link:Ht,currentCanvas:en,isEditingCombo:pn,onChange:So,currentWidgetKey:nn,adaptTopPosition:Rn}),Ht.interactionType===To&&(0,t.jsx)(ut,{link:Ht,onChange:So,currentWidgetKey:nn}),(Ht.interactionType===fo||Ht.interactionType===ro)&&(0,t.jsx)(Zn,{interaction:Ht,currRBPageKey:(ho[Ht.targetRBPageKey||(en==null?void 0:en.sup)]||wo).key,currSelectedCanvasKey:(en==null?void 0:en.key)||"",onChange:So,currentWidgetKey:nn,adaptTopPosition:Rn}),Ht.interactionType===Bn&&(0,t.jsx)(Pn,{interaction:Ht,onChange:So,currentWidgetKey:nn}),Ht.interactionType===Ao&&(0,t.jsx)(co,{interaction:Ht,onChange:So,currentWidgetKey:nn,adaptTopPosition:Rn}),Ht.interactionType===go&&(0,t.jsx)(Cn,{interaction:Ht,onChange:So,currentWidgetKey:nn}),Ht.interactionType===Jo&&(0,t.jsx)(hn,{link:Ht,currentCanvas:en,isEditingCombo:pn,onChange:So,currentWidgetKey:nn,adaptTopPosition:Rn}),Ht.interactionType===$o&&(0,t.jsx)(Yt,{link:Ht,currentCanvas:en,isEditingCombo:pn,onChange:So,currentWidgetKey:nn,adaptTopPosition:Rn}),Ht.interactionType===po&&(0,t.jsx)(Qt,{link:Ht,onChange:So,currentWidgetKey:nn,adaptTopPosition:Rn})]})}),(0,t.jsx)(mo.fl,{})]})})},55171:(He,ee,e)=>{"use strict";e.d(ee,{Z:()=>D});var n=e(38502),r=e(39e3),c=e(53732),o=e.n(c),I=e(6843),u=e(88463);const d=(B,j)=>{const[F,Y]=(0,n.useState)(j);return{activeIndex:F,tabList:B,goToTab:Y}};var C=e(89208),h=e(45709),i=e(9911),f=e(21066),p=e(17307),s=e(93257),l=e(83199),_=e(67787);const b=_.Ay.div.withConfig({displayName:"style__StyledCommercialLabel",componentId:"sc-16bepnv-0"})(["display:flex;&.cloud{color:",";border:1px solid ",";justify-content:center;width:30px;height:18px;border-radius:4px;margin-left:6px;font-size:11px;line-height:16px;}&.commercial{margin-left:6px;path{fill:"," !important;}}"],B=>B.theme.color_text_link_normal,B=>B.theme.color_text_link_normal,B=>B.theme.color_warning);var a=e(72214);const M=B=>{if(B==="normal")return null;const j=B==="commercial"?"\u82E5\u4F7F\u7528\u5546\u7528\u5B57\u4F53\uFF0C\n\u8BF7\u8054\u7CFB\u5B57\u5E93\u5382\u5546\u8D2D\u4E70\u6388\u6743":"\u4E0A\u4F20\u7684\u5B57\u4F53\u4EC5\u9650\u4E2A\u4EBA\u4F7F\u7528\uFF0C\n\u8BF7\u786E\u4FDD\u60A8\u62E5\u6709\u76F8\u5E94\u6388\u6743",F=B==="commercial"?"\u5546\u7528":"\u4E91\u7AEF";return(0,a.jsx)(l.A,{content:j,direction:"down",tipClassName:"fontPaidTipsContainer",distance2:4,children:(0,a.jsx)(b,{className:B,children:B==="cloud"?(0,a.jsx)("div",{className:"font-tip-label",children:F}):(0,a.jsx)(p.C,{size:16,isColorPure:!0,name:"font/commercial"})})})};var x=e(99203);const g=(0,a.jsx)(p.C,{name:"font/panel/select",className:"selected-icon"}),S=B=>{let{fontFamily:j,fontWeight:F,wbiVersion:Y,fontList:X,fontStyle:z,clickFF:Z,clickFW:J,hoverFF:te,hoverFW:ge,height:pe,isSearch:Ce,clearOverrideAttr:me}=B;const[be,ie]=(0,n.useState)(null),oe=(0,i.mz)(j);return(0,a.jsx)(I.NV,{height:pe,position:{top:0,left:0},className:"font-family-menu",isSearch:Ce,children:X.map((he,ce)=>{let re=!1;const fe=he.type==="cloud";oe?fe&&(re=!!Object.values(he.weightExtKeyKV).find(ve=>ve===j)):fe||(re=he.value===j);const Se=(0,h.KI)(he,he.typeList),Me=(0,x.Ls)(F,Se,z),Ie=he.type!=="cloud"?"regular":(0,x.dv)(he).fw,de=he.typeUrlKV[Ie]||he.typeUrlKV[Object.keys(he.typeUrlKV)[0]],xe={fontFamily:de?void 0:he.value},Le=ve=>{const je=(We,Ae)=>{try{const _e=Ae.getElementsByClassName("is-svg");if((_e==null?void 0:_e.length)>0){var we;if((((we=[..._e][0])==null||(we=we.childNodes[0])==null?void 0:we.getBoundingClientRect().width)||0)>164)return!0}return!1}catch(_e){return!1}};return(0,a.jsx)(s.A,{content:he.label,onChangeTooltipsHover:(We,Ae)=>Ae==null?void 0:Ae(),isShowTipsByTarget:je,children:ve},ce)};return(0,a.jsx)("div",{style:xe,className:o()("font-family-level",{"font-active":re}),children:(0,a.jsx)(f.aM,{text:he.label,dataIndex:ce,className:be===he&&he.type!=="normal"?"hovered":void 0,onClick:()=>{Z(he)},onMouseEnter:()=>{ie(he),te(he)},onMouseLeave:ve=>{ie(null),me()},subMenuDirection:"left",subMenuLeftOffset:700,subMenuTopOffset:-426,icon:re?g:null,isAiry:!0,fontUrl:de,tooltipComponent:M(be===he?he.type:"normal"),tooltipWrapper:Le,children:Se.length>1&&Se.map((ve,je)=>{let We=re&&ve.value===Me;return oe&&fe&&(he.isVF?We=ve.value===Me:Object.keys(he.strangeExtKeyWeightKV).length===Object.keys(he.weightExtKeyKV).length&&(We=ve.extKey===j)),(0,a.jsx)(f.aM,{usePlainText:!0,dataIndex:je,text:ve.label,className:"font-weight-item-wrapper",icon:We?g:null,onClick:()=>{J(he,ve)},onMouseEnter:()=>ge(he,ve),onMouseLeave:me,fontUrl:he.typeUrlKV[ve.value]},he.label+ve.label)})},he.label)},ce)})})},t=()=>(0,a.jsxs)(I.E4,{children:[(0,a.jsx)("img",{src:"/mb-proto2/images/font/font_empty.png"}),(0,a.jsx)("span",{children:"\u6CA1\u6709\u5339\u914D\u7684\u7ED3\u679C"})]});var v=e(25234),w=e(79150),k=e(73662),W=e(70933),K=e(18381),G=e(12246),$=e(91363),P=e(79209);const E=B=>{const j=(0,K.d4)(W.HW),F=(0,K.d4)(W.wA);return(0,P._S)(j,F)?(0,a.jsx)(O,{user:j,org:F,setIsOpenListPanel:B.setIsOpenListPanel}):(0,a.jsxs)(I.MB,{children:[B.fontList.length===0?(0,a.jsxs)("div",{className:"empty-font-container",children:[(0,a.jsx)("div",{className:"upload-image-container",children:(0,a.jsx)("img",{src:"/mb-proto2/images/font/font_upload.png"})}),(0,a.jsx)("div",{className:"sub-title tip1",children:"\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u4EE5\u4E0A\u4F20\u5B57\u4F53"}),(0,a.jsx)("div",{className:"sub-title",children:"\uFF08\u4E0A\u4F20\u7684\u5B57\u4F53\u4EC5\u9650\u4E2A\u4EBA\u4F7F\u7528\uFF0C\u8BF7\u786E\u4FDD\u60A8\u62E5\u6709\u76F8\u5E94\u6388\u6743\uFF09"})]}):(0,a.jsx)(S,{height:292,...B}),(0,a.jsx)(H,{setIsOpenListPanel:B.setIsOpenListPanel})]})},H=B=>{let{setIsOpenListPanel:j,noSetting:F=!1}=B;const Y=(0,K.d4)(W.HW),X=(0,K.d4)(W.wA),z=(0,P._S)(Y,X),Z=(0,K.wA)(),J=()=>{k.y.dispatchState({fontModalState:"cloud-manager",isShowFontModal:!0,isShowMissFontModal:!1},Z),Z({type:"preference:update:state",payload:{showPreference:!1}}),j(!1),(0,$.rr)({operation_type:"\u7BA1\u7406\u5B57\u4F53"})},te=()=>{Z({type:k.y.entryKey["font:manage:to:upload"]}),j(!1),(0,$.rr)({operation_type:F?"\u4E0A\u4F20\u5B57\u4F53-\u641C\u7D22\u5B57\u4F53":"\u4E0A\u4F20\u5B57\u4F53-\u5B57\u4F53\u9009\u62E9\u9762\u677F"})},ge=()=>{const pe=X?"\u7F16\u8F91\u533A-v8_\u56E2\u961F_\u4E0A\u4F20\u5B57\u4F53":"\u7F16\u8F91\u533A-V8_\u4E2A\u4EBA_\u4E0A\u4F20\u5B57\u4F53",Ce=X?"workspace-v8_org_font_upload":"workspace-v8_solo_font_upload",me=(0,G.l)(X,pe,Ce);MB.global.popupHelper.chargeAsync(me),j(!1)};return(0,a.jsxs)(I.Xh,{className:"cloud-font-footer",noSetting:F,children:[z?(0,a.jsx)(v.tA,{className:"payme-upload-btn",children:X?Q:V,onClick:ge}):(0,a.jsx)(v.tA,{className:"upload-btn",children:(0,a.jsx)("div",{className:"payme-font",children:"\u4E0A\u4F20\u5B57\u4F53"}),onClick:te}),F?null:(0,a.jsx)(l.A,{direction:"down",distance2:4,content:"\u7BA1\u7406\u5B57\u4F53",children:(0,a.jsx)(w.A,{onClick:J,name:"common/font/setting"})})]})},O=B=>{let{user:j,org:F,setIsOpenListPanel:Y}=B;const X=()=>{const z=F?"\u7F16\u8F91\u533A-v8_\u56E2\u961F_\u4E0A\u4F20\u5B57\u4F53":"\u7F16\u8F91\u533A-V8_\u4E2A\u4EBA_\u4E0A\u4F20\u5B57\u4F53",Z=F?"workspace-v8_org_font_upload":"workspace-v8_solo_font_upload",J=(0,G.l)(F,z,Z);MB.global.popupHelper.chargeAsync(J),Y(!1)};return(0,a.jsxs)(I.MB,{children:[(0,a.jsxs)("div",{className:"empty-font-container",children:[(0,a.jsx)("div",{className:"upload-image-container",children:(0,a.jsx)("img",{src:"/mb-proto2/images/font/font_upload.png"})}),(0,a.jsx)("div",{className:"sub-title tip1",children:"\u4E0A\u4F20\u5B57\u4F53\u4E3A\u4ED8\u8D39\u7A7A\u95F4\u4E13\u4EAB\u529F\u80FD"}),(0,a.jsx)("div",{onClick:X,className:"sub-title blue",children:"\u7ACB\u5373\u5347\u7EA7"})]}),(0,a.jsx)(I.Xh,{noSetting:!0,className:"cloud-font-footer",children:(0,a.jsx)(v.tA,{className:"payme-upload-btn",children:F?Q:V,onClick:X})})]})},V=(0,a.jsxs)("div",{className:"payme-font",children:[(0,a.jsxs)("svg",{width:"16",height:"17",fill:"none",viewBox:"0 0 16 17",children:[(0,a.jsx)("path",{fill:"#FEC345",d:"m14.62 5.83-2.16-2.9a1 1 0 0 0-.4-.32 1 1 0 0 0-.53-.12h-6.9a1.2 1.2 0 0 0-.93.45L1.54 5.83a1 1 0 0 0 .06 1.3l5.61 6.23a1.2 1.2 0 0 0 1.74 0l5.61-6.22q.25-.28.27-.65a1 1 0 0 0-.2-.66"}),(0,a.jsx)("path",{fill:"url(#paint0_linear_7048_158037)",fillRule:"evenodd",d:"m13.96 6.33-2.16-2.9-.1-.07a.4.4 0 0 0-.17-.04h-6.9l-.15.03h-.01l-.1.1L2.2 6.32a.2.2 0 0 0 .02.24l5.61 6.22q.05.05.1.08l.15.03q.08 0 .15-.03l.1-.08 5.61-6.2v-.01a.2.2 0 0 0 .06-.14zM3.7 2.93l-2.16 2.9Zm-2.16 2.9q-.22.3-.2.66Zm-.2.66q.01.37.26.65Z",clipRule:"evenodd"}),(0,a.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M11.93 6.38 8.7 9.64a.8.8 0 0 1-.57.24.8.8 0 0 1-.61-.24L4.27 6.38l.18-.13a1.7 1.7 0 0 1 2.14.19L8.1 7.95l1.5-1.51a1.7 1.7 0 0 1 2.15-.2z",clipRule:"evenodd"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"paint0_linear_7048_158037",x1:"8.08",x2:"8.08",y1:"2.49",y2:"13.74",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"#FEC345"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#F1A400"})]})})]}),(0,a.jsx)("span",{children:"\u4E0A\u4F20\u5B57\u4F53"})]}),Q=(0,a.jsxs)("div",{className:"payme-font",children:[(0,a.jsxs)("svg",{width:"16",height:"17",fill:"none",viewBox:"0 0 16 17",children:[(0,a.jsx)("path",{fill:"#E1B866",d:"m14.62 6.56-2.16-2.88a1 1 0 0 0-.4-.34 1 1 0 0 0-.53-.12h-6.9a1.2 1.2 0 0 0-.93.46L1.54 6.56a1 1 0 0 0 .06 1.31l5.61 6.22a1.2 1.2 0 0 0 1.74 0l5.61-6.22q.25-.27.27-.64a1 1 0 0 0-.2-.67"}),(0,a.jsx)("path",{fill:"url(#paint0_linear_7048_158042)",fillRule:"evenodd",d:"M13.96 7.06 11.8 4.18l-.1-.09a.4.4 0 0 0-.17-.03h-6.9q-.07 0-.15.03h-.01l-.1.09L2.2 7.07a.2.2 0 0 0 .02.24l5.61 6.22.1.08.15.03.15-.03.1-.08 5.61-6.21a.2.2 0 0 0 .06-.14l-.04-.1zM3.7 3.68 1.54 6.56ZM1.54 6.56q-.22.3-.2.67Zm-.2.67q.01.37.26.64Z",clipRule:"evenodd"}),(0,a.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M11.93 7.15 8.7 10.41a.8.8 0 0 1-.57.24.8.8 0 0 1-.61-.23L4.27 7.15l.18-.12a1.7 1.7 0 0 1 2.14.18L8.1 8.73 9.6 7.2a1.7 1.7 0 0 1 2.15-.19z",clipRule:"evenodd"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"paint0_linear_7048_158042",x1:"8.08",x2:"8.08",y1:"3.22",y2:"14.47",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"#E1B866"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#C49A47"})]})})]}),(0,a.jsx)("span",{children:"\u4E0A\u4F20\u5B57\u4F53"})]});var N=e(48028),L=e(15515);const U=[{key:"all",label:"\u5168\u90E8"},{key:"official",label:"\u5B98\u65B9"},{key:"cloud",label:"\u4E91\u7AEF"}];let A=0;const D=B=>{let{position:j,fontFamily:F,fontWeight:Y,fontStyle:X,wbiVersion:z,clickFF:Z,clickFW:J,hoverFF:te,hoverFW:ge,handleClickOutSideToClose:pe,fontListOriginal:Ce,clearOverrideAttr:me,setIsOpenListPanel:be}=B;const{activeIndex:ie,tabList:oe,goToTab:he}=d(U,A),[ce,re]=(0,n.useState)(Ce),[fe,Se]=(0,n.useState)(!1),[Me,Ie]=(0,n.useState)(""),de=Ye=>{he(Ye),A=Ye,Ye===2&&!je&&(We(!0),(0,L.a0)("is-show-CloudFont-signal",!0,N.qW.Boolean))},xe=(0,n.useCallback)(()=>{re(ie===0?Ce:ie===1?Ce.filter(Ye=>Ye.type!=="cloud"):Ce.filter(Ye=>Ye.type==="cloud"))},[ie]),Le=(0,n.useCallback)(Ye=>{const Fe=Ye.toUpperCase();re(Ce.filter(Ve=>Ve.label.toUpperCase().includes(Fe))),Se(!0)},[]),ve=(0,n.useCallback)(Ye=>{Ie(Ye)},[]),[je,We]=(0,n.useState)((0,N.Yt)("is-show-CloudFont-signal",!1,N.qW.Boolean)),Ae=(0,n.useCallback)(()=>{xe(),Se(!1),Ie("")},[xe,Ie]);(0,n.useEffect)(()=>{xe()},[xe]),(0,n.useEffect)(()=>{setTimeout(()=>{var Ye;const Fe=((Ye=document.querySelector("#font-list-panel .font-active"))==null?void 0:Ye.offsetTop)||0,Ve=document.querySelector("#font-list-panel .font-content ul");Ve&&(Ve.scrollTop=Fe)},4)},[ie]);const we=(0,n.useRef)(null);(0,n.useEffect)(()=>{const Ye=Ve=>{Ve.ctrlKey===!0&&Ve.preventDefault()},Fe=we.current;if(Fe)return Fe.addEventListener("wheel",Ye),()=>{Fe.removeEventListener("wheel",Ye)}},[]);const _e=()=>{(0,$.rr)({operation_type:"\u641C\u7D22\u5B57\u4F53"})},Te={fontFamily:F,fontWeight:Y,wbiVersion:z,fontList:ce,fontStyle:X,clickFF:Z,clickFW:J,hoverFF:te,hoverFW:ge,clearOverrideAttr:me};return(0,a.jsxs)(I.ut,{position:j,id:"font-list-panel",ref:we,children:[(0,a.jsx)("div",{className:"searchbar-container",children:(0,a.jsx)(u.A,{value:Me,className:"search-bar",placeholder:"\u641C\u7D22\u5B57\u4F53",onChange:ve,onSearch:Le,onClear:Ae,wait:200,canClear:!1,onFocus:_e,renderRightNode:()=>fe?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(p.C,{size:18,name:"common/font/exit",className:"font-search-exit",onClick:Ae})}):null})}),!fe&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(C.A,{className:"font-nav",onTabChange:de,activeIndex:ie,layoutV9:"recommend",children:oe.map(Ye=>{let{key:Fe,...Ve}=Ye;return(0,a.jsx)(C.n,{...Ve,className:o()({background_active:oe.length>1,"cloud-unread":Fe==="cloud"&&!je})},Fe)})}),(0,a.jsx)("div",{className:"placeholder"})]}),(0,a.jsx)("div",{className:"font-content",children:fe?ce.length===0?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t,{}),(0,a.jsx)(H,{setIsOpenListPanel:be,noSetting:!0})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(S,{...Te,isSearch:!0,height:329}),(0,a.jsx)(H,{setIsOpenListPanel:be,noSetting:!0})]}):ie===2?(0,a.jsx)(E,{...Te,setIsOpenListPanel:be}):(0,a.jsx)(S,{...Te})}),(0,a.jsx)(r.A,{target:document,onMouseDown:(0,r.t)(pe,{capture:!0})})]})}},55203:(He,ee,e)=>{"use strict";e.d(ee,{L:()=>$});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),I=e(4648),u=e(15186),d=e(94585),C=e.n(d),h=e(45709),i=e(34677),f=e(9911),p=e(85449),s=e(73662),l=e(99203),_=e(33421),b=e(31781),a=e(17307),M=e(79869),x=e(72214);const g=P=>[{label:(0,x.jsx)(a.C,{name:"setting_panel/font/font_bold"}),icon:"setting_panel/font/font_bold",value:"bold",title:P.TextToolbar.style1},{label:(0,x.jsx)(a.C,{name:"setting_panel/font/font_italic"}),icon:"setting_panel/font/font_italic",value:"italic",title:P.TextToolbar.style2},{label:(0,x.jsx)(a.C,{name:"setting_panel/font/font_underline"}),icon:"setting_panel/font/font_underline",value:"underline",title:P.TextToolbar.style3},{label:(0,x.jsx)(a.C,{name:"setting_panel/font/font_line_through"}),icon:"setting_panel/font/font_line_through",value:"line-through",title:P.TextToolbar.style4}],S=P=>g(P).map(E=>["underline","line-through"].includes(E.value)?{...E,disabled:!0}:E),t=(P,E,H)=>{const O=[];return P===1&&O.push("bold"),E==="italic"&&O.push("italic"),typeof H=="string"&&(H.includes("underline")&&O.push("underline"),H.includes("line-through")&&O.push("line-through")),O},v=(0,M.V)(t);var w=e(67787);const k=w.Ay.div.withConfig({displayName:"style__StyledTextFontContainer",componentId:"sc-1hu5dtb-0"})(["flex-direction:column;align-items:flex-start;.color-btn-has-hex-input{width:100%;.color-btn-wrap.is-used-style-ref{max-width:unset;}&:hover{.color-btn-wrap.is-used-style-ref{max-width:unset;}}}.font-size-type-wrap{display:flex;align-items:center;justify-content:space-between;width:100%;}.radio-line{color:",";&.disabled{background:transparent;}.check-line{&.disabled{background-color:transparent;cursor:not-allowed;&:hover{background:transparent !important;}.svg-icon{color:",";}}}}"],P=>P.theme.color_text_L2,P=>P.theme.color_text_disabled);var W=e(76199),K=e(61675);const{w4:G}=i;class $ extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleChange",(E,H,O,V)=>{const{onChange:Q,dispatch:N,supAttr:L="textV0",isRichText:U,isTableCell:A,selections:D}=this.props;let B=E;if(H==="fontSize"){B=parseInt(E),Q({value:B,attr:H,supAttr:L,refVar:O,dispatch:N,selections:D});return}(U&&H==="textColor"||A&&H==="color")&&(B=(0,u.t0)(E)),Q({value:B,attr:H,supAttr:L,refVar:O,dispatch:N,compressible:V,selections:D,fromUI:H==="fontWeight"?"bold":H})}),(0,n.A)(this,"handleBoldChange",async()=>{const{boldType:E,boldAttr:H,fontFamily:O,fontStyle:V}=this.props,Q=O?(0,f.mz)(O):!1;if(O!==void 0&&!G.includes(O)&&(0,h.Sq)().find(U=>U.family===O&&U.typeList.find(A=>A==="bold")))try{Q||await new(C())(O,{weight:700}).load()}catch(U){}const N=E===0?"bold":"regular",L=O?sdkStore.getHotItem(O):void 0;if(Q&&L){const A=s.y.query.getCloudFontLocalList((0,p.dP)()).find(j=>j.family===L.hotAttr.extKV.ff);if(!A)return;const D=V==="italic"?N+"Italic":N,B=A.typeList.find(j=>j===D);if(B)this.handleChange(A.weightExtKeyKV[B],"fontFamily"),this.handleChange(N,"fontWeight");else if(A.weightExtKeyKV[N])this.handleChange(A.weightExtKeyKV[N],"fontFamily"),this.handleChange(N,"fontWeight");else if(D.includes("bold"))this.handleChange(N,"fontWeight");else{const j=(0,l.dv)(A);this.handleChange(j.ff,"fontFamily"),this.handleChange(j.fw,"fontWeight")}}else H==="boldType"&&(E===0?this.handleChange("bold","fontWeight"):this.handleChange("regular","fontWeight"));this.handleChange(!!(1-E),"bold")}),(0,n.A)(this,"handleFontStyleChange",async E=>{const{fontStyleAttr:H="italic",fontFamily:O,fontWeight:V,fontStyle:Q}=this.props,N=O?(0,f.mz)(O):!1;if(O!==void 0&&!G.includes(O)&&(0,h.Sq)().find(A=>A.family===O&&A.typeList.find(D=>D===V+"Italic")))try{N||await new(C())(O,{weight:(0,h._y)(V,!1),style:"italic"}).load()}catch(A){}const L=Q!==E?"italic":"normal",U=O?sdkStore.getHotItem(O):void 0;if(N&&U){const D=s.y.query.getCloudFontLocalList((0,p.dP)()).find(F=>F.family===U.hotAttr.extKV.ff);if(!D)return;const B=L==="italic"?V+"Italic":V,j=D.typeList.find(F=>F===B);j&&this.handleChange(D.weightExtKeyKV[j],"fontFamily")}H==="fontStyle"?this.handleChange(L,H):this.handleChange(Q!==E,H)}),(0,n.A)(this,"handleDecorationChange",(E,H)=>{const{isRichText:O,textDecoration:V}=this.props;if(O){this.handleChange(!V.includes(E),H);return}const Q=this.props.textDecoration;this.handleChange(Q!==E?E:"normal","textDecoration")}),(0,n.A)(this,"handleFontDirectionChange",E=>{const{onFontDirectionChange:H,dispatch:O}=this.props;H==null||H({fontDirection:E,dispatch:O})}),(0,n.A)(this,"handleTextStyleChange",async E=>{const H=E.currentTarget.dataset.value;switch(H){case"bold":{this.handleBoldChange(),(0,b.yt)("\u52A0\u7C97");break}case"italic":{this.handleFontStyleChange(H),(0,b.yt)("\u503E\u659C");break}case"underline":{this.handleDecorationChange(H,"underline"),(0,b.yt)("\u4E0B\u5212\u7EBF");break}case"line-through":{this.handleDecorationChange(H,"line-through"),(0,b.yt)("\u5220\u9664\u7EBF");break}default:return null}})}render(){const{textColor:E,isTextEditing:H,fontSize:O,fontStyle:V,boldType:Q,textDecoration:N,newOverOld:L,isDisabledFontRadioLine:U,colorAttr:A="textColor",canShowBIUS:D=!0,hasMissFontHi:B,cloudFontLocalList:j,fontFamily:F,refVars:Y,canOpenLib:X,attrPanel:z,supAttr:Z,canAddVar:J,canCreateColorRef:te,refStyles:ge,isShowAddVarIcon:pe,dropdownProps:Ce,onPosition:me,dispatch:be}=this.props,ie=v(Q,V,N),oe=U?S(I18N):g(I18N);let he=!1,ce=!1;if(!B&&F&&!(0,_.ph)(F)&&F){let re;if((0,f.mz)(F)){const Me=sdkStore.getHotItem(F);if(Me){const Ie=Me.hotAttr.extKV.ff;re=j.find(de=>de.family===Ie)}}else re=j.find(Me=>Me.family===F);const{isAllWeightOverBold:fe,isAllWeightItalic:Se}=(0,l.rB)(re);he=fe,ce=Se}if(he){const re=oe.find(fe=>fe.value==="bold");re&&(re.disabled=!0)}if(ce){const re=oe.find(fe=>fe.value==="italic");re&&(re.disabled=!0)}return(0,x.jsxs)(k,{className:"font-group",children:[(0,x.jsx)(I.R_,{mode:"input",className:o()(I.EY,{disabled:B}),attr:A,supAttr:Z,attrPanel:z,color:E,onChange:this.handleChange,disabled:!!B,canOpenLib:H?!1:X,canCreateColorRef:H?!1:te,refStyles:ge,onPosition:me}),(0,x.jsxs)("div",{className:"font-size-type-wrap height-32",children:[(0,x.jsx)(W.A,{disabled:B||!L&&H,fontSize:O,refVar:Y==null?void 0:Y.fontSize,canAddVar:J,isShowAddVarIcon:pe,dropdownProps:Ce,handleChange:this.handleChange,dispatch:be}),D&&(0,x.jsx)(K.A,{disabled:B,isToolTip:!0,options:oe,className:"font-style-type",value:ie,handleChange:this.handleTextStyleChange})]})]})}}(0,n.A)($,"defaultProps",{canOpenLib:!0,canCreateColorRef:!0,canAddVar:!0,isShowAddVarIcon:!0})},55584:(He,ee,e)=>{"use strict";e.d(ee,{vd:()=>v,ag:()=>w,DL:()=>t,Ld:()=>k});var n=e(28068);if(e.j!=477)var r=e(70302);var c=e(86493),o=e(54216),I=e(69815),u=e(45709);const d=W=>{let{arrayLength:K,excludedIntervals:G,appendStyle:$}=W;const P=[];let E=0;G.sort((H,O)=>H.offset-O.offset);for(const H of G)H.offset>E&&P.push({offset:E,length:H.offset-E,style:$}),E=H.offset+H.length;return E<K&&P.push({offset:E,length:K-E,style:$}),P},C=W=>{let{arrayLength:K,originalISR:G,richTextV1:$}=W;const E="fontsize-"+$.fontSize;return d({arrayLength:K,excludedIntervals:G.filter(H=>H.style.includes("fontsize")),appendStyle:E})},h=W=>{let{arrayLength:K,originalISR:G,richTextV1:$}=W;const E="color-"+$.textColor;return d({arrayLength:K,excludedIntervals:G.filter(H=>H.style.includes("color")),appendStyle:E})},i=W=>{let{arrayLength:K,originalISR:G,richTextV1:$}=W;const E="fontfamily-"+$.fontFamily;return d({arrayLength:K,excludedIntervals:G.filter(H=>H.style.includes("fontfamily")),appendStyle:E})},f=W=>{let{arrayLength:K,originalISR:G,richTextV1:$}=W;const E="letterspacing-"+$.letterSpacing+"px";return d({arrayLength:K,excludedIntervals:G.filter(H=>H.style.includes("letterspacing")),appendStyle:E})},p=W=>{let{arrayLength:K,originalISR:G,richTextV1:$}=W;const E="lineheight-"+$.lineHeight+"px";return d({arrayLength:K,excludedIntervals:G.filter(H=>H.style.includes("lineheight")),appendStyle:E})},s=W=>{let{arrayLength:K,originalISR:G,richTextV1:$}=W;const E="fontweight-"+(0,u._y)($.fontWeight,$.bold);return d({arrayLength:K,excludedIntervals:G.filter(H=>H.style.includes("fontweight")),appendStyle:E})},l=W=>{let{arrayLength:K,originalISR:G,richTextV1:$}=W;const P="bold".toUpperCase();return $.bold?d({arrayLength:K,excludedIntervals:G.filter(E=>E.style.includes(P)),appendStyle:P}):[]},_=W=>{let{arrayLength:K,originalISR:G,richTextV1:$}=W;const P="italic".toUpperCase();return $.italic?d({arrayLength:K,excludedIntervals:G.filter(E=>E.style.includes(P)),appendStyle:P}):[]},b=W=>{let{arrayLength:K,originalISR:G,richTextV1:$}=W;const P="underline".toUpperCase();return $.underline?d({arrayLength:K,excludedIntervals:G.filter(E=>E.style.includes(P)),appendStyle:P}):[]},a=W=>{let{arrayLength:K,originalISR:G,richTextV1:$}=W;const P="strikethrough".toUpperCase();return $.strikethrough?d({arrayLength:K,excludedIntervals:G.filter(E=>E.style.includes(P)),appendStyle:P}):[]},M=W=>{let{richTextV1:K,textV1:G}=W;const $={};for(const[P,E]of Object.entries(G.blocks)){const H=E.text.length,V=E.inlineStyleRanges.map(Z=>Z.style==="BOLD"?{...Z,style:"fontweight-700"}:Z),Q=C({arrayLength:H,originalISR:V,richTextV1:K}),N=h({arrayLength:H,originalISR:V,richTextV1:K}),L=i({arrayLength:H,originalISR:V,richTextV1:K}),U=f({arrayLength:H,originalISR:V,richTextV1:K}),A=p({arrayLength:H,originalISR:V,richTextV1:K}),D=s({arrayLength:H,originalISR:V,richTextV1:K}),B=l({arrayLength:H,originalISR:V,richTextV1:K}),j=_({arrayLength:H,originalISR:V,richTextV1:K}),F=b({arrayLength:H,originalISR:V,richTextV1:K}),Y=a({arrayLength:H,originalISR:V,richTextV1:K}),X=[...V,...Q,...N,...L,...U,...A,...D,...B,...j,...F,...Y],z={...E,inlineStyleRanges:X};$[P]=z}return $};var x=e(41815),g=e(43838);const S={type:"html"},t=W=>{let{html:K,editorState:G,inlineProcessType:$,componentType:P}=W;if(!K)return G;const E=[...G.getCurrentInlineStyle()],H=(0,x.A)({html:K,componentType:P,inlineProcessType:$}),O=G.getSelection();let V=G.getCurrentContent();V=n.e6.replaceWithFragment(V,G.getSelection(),(0,r.B8)(H.contentBlocks));let Q=n.$t.push(G,V,"insert-characters");const N=Q.getSelection(),L=new n.wc({anchorKey:O.anchorKey,anchorOffset:O.anchorOffset,focusKey:N.focusKey,focusOffset:N.focusOffset,isBackward:!1,hasFocus:!1});$!=="total"&&E.forEach(A=>{A&&(V=n.e6.applyInlineStyle(V,L,A))});const U=new n.wc({anchorKey:N.anchorKey,anchorOffset:N.anchorOffset,focusKey:N.focusKey,focusOffset:N.focusOffset,isBackward:!1,hasFocus:!1});return Q=n.$t.push(Q,V,"insert-characters"),n.$t.forceSelection(Q,U)},v=W=>{var K,G;let{editorState:$,richTextV1:P,w:E,h:H,isRecordAttr:O,refStyleText:V}=W,Q=$.getCurrentContent(),N=[];if(P){N=[...Q.getBlockMap().keys()];const fe=(0,n.dM)($.getCurrentContent()),Se=(0,c.qn)(fe),Me=M({richTextV1:P,textV1:Se});Se.blocks=Me,Q=(0,n.Ot)((0,c.mx)(Se))}const L=$.getSelection(),U=Q.getBlockMap(),A=[...U.keys()],D=N.findIndex(fe=>fe===L.getStartKey()),B=D===-1?L.getStartKey():A[D],j=U.toJS()[B].type,F=L.getStartOffset(),Y=N.findIndex(fe=>fe===L.getEndKey()),X=Y===-1?L.getEndKey():A[Y],z=L.getEndOffset(),Z=A.findIndex(fe=>fe===B),J=A.findIndex(fe=>fe===X),te=new n.wc({anchorKey:U.first().key,anchorOffset:0,focusKey:B,focusOffset:F,isBackward:!1,hasFocus:!1}),ge=n.e6.removeRange(Q,te),pe=J-Z,Ce=ge.getBlockMap(),me=Ce.toArray(),be=B===X?z-F:z,ie=new n.wc({anchorKey:(K=(G=me[pe])==null?void 0:G.key)!=null?K:Ce.last().key,anchorOffset:be,focusKey:Ce.last().key,focusOffset:Ce.last().text.length,isBackward:!1,hasFocus:!1}),oe=n.e6.removeRange(ge,ie),he=(0,c.qn)((0,n.dM)(oe)),ce=(0,c.mx)(he);ce.blocks[0].type=j;let re=(0,o.A)({editorContent:ce,widgetKey:"",isForCopy:!0,isRecordAttr:O});return re+=g.ze,P&&E&&H&&(re+="<meta data-mb-richdata="+JSON.stringify({richData:{richTextV1:P,w:E,h:H}})+">"),V&&(re+="<meta data-ref-style-text="+V+">"),re},w=W=>{let{richTextV1:K,w:G,h:$}=W;const{_getEditorState:P,_setEditorState:E}=(0,I.DT)(),H=P(),O=v({editorState:H,richTextV1:K,w:G,h:$}),V=H.getSelection(),Q=H.getCurrentContent(),N=n.e6.removeRange(Q,V);return E(n.$t.push(H,N,"remove-range")),O},k=W=>{let{html:K,isClearStyle:G}=W;const $=(0,x.A)({html:K,componentType:1}),P=n.z6.createFromBlockArray($.contentBlocks,$.entityMap),E=n.$t.createWithContent(P),H=(0,n.dM)(E.getCurrentContent());return(0,c.qn)(H,G)}},55802:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>r});var n=e(67787);const r=n.Ay.aside.withConfig({displayName:"DraggablePanel",componentId:"sc-y06gsp-0"})(["position:absolute;width:210px;background:",";border-radius:2px;box-shadow:",";overflow:hidden;border:1px solid ",";& > header{height:36px;padding-left:15px;padding-right:5px;display:flex;justify-content:space-between;align-items:center;background:",';font-size:12px;&[type="draggable"]{cursor:move;}.title{color:',";pointer-events:none;}.header-buttons{display:flex;.icon{width:20px;height:24px;font-size:12px;display:flex;justify-content:center;align-items:center;color:",";cursor:pointer;.times-icon{width:10px;}&:hover{color:",";.times-icon{color:",";}}}}}"],c=>c.theme.color_bg_white,c=>c.theme.shadow_1,c=>c.theme.color_bg_canvas,c=>c.theme.color_btn_secondary_active,c=>c.theme.color_text_L2,c=>c.theme.color_text_L3,c=>c.theme.color_text_L2,c=>c.theme.color_text_L2)},55914:(He,ee,e)=>{"use strict";e.d(ee,{$:()=>n});function n(r){return r.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}},56056:(He,ee,e)=>{"use strict";e.d(ee,{p:()=>l,h:()=>b});var n=e(38502),r=e(5649),c=e(67787),o=e(35719);const I=c.Ay.section.withConfig({displayName:"style__StyledTableCellInfo",componentId:"sc-1k9n6fl-0"})([".general-line{border-top:1px solid ",";padding:0px 10px 0 16px;height:48px;align-items:center;&.tableCellWH{display:flex;padding:0 8px;border-top:none;label{&:first-child{margin-right:10px;}}}&.colorBtnWarp{display:flex;",";[type=color-btn]{margin-left:4px;}}}"],a=>a.theme.color_bg_border_01,o.B3);var u=e(4648),d=e(15186),C=e(89002),h=e(72214);const i=a=>{let{width:M,height:x,background:g,isShowMultipleWidth:S,isShowMultipleHeight:t,placeholder:v,cellKey:w,refStyles:k,dispatch:W}=a;const K=($,P)=>{$&&W({type:"entry:table:set:cell:width:height",payload:{value:$,attr:P}})};let G=g;return Number.isNaN(Number(g))?(!g||g.split(",").length===3)&&(G="rgba(255,255,255,1)"):G=(0,d.t0)(g),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"general-line tableCellWH",children:[(0,h.jsx)(r.A,{className:"general-input step-input-width-72",title:"W",attr:"columns",value:S?void 0:M,isNotVerify:S,placeholder:v,min:C.__,onConfirm:K}),(0,h.jsx)(r.A,{className:"general-input step-input-width-72",title:"H",attr:"rows",value:t?void 0:x,isNotVerify:t,placeholder:v,min:C.__,onConfirm:K})]}),(0,h.jsxs)("div",{className:"general-line colorBtnWarp",children:[(0,h.jsx)("div",{children:I18N.SettingPanel.cellfill}),(0,h.jsx)(u.R_,{mode:"input",className:u.EY,supAttr:"cells-"+w,attr:"background",color:G,refStyles:k,onChange:($,P)=>W({type:"entry:table:set:cell:attr:new",payload:{attr:"cellBackground",value:$}})})]})]})},f=(0,n.memo)(i),p=a=>{let{children:M}=a;return(0,h.jsx)(I,{children:M})};var s=e(31569);const l=a=>{let{selectedItems:M,selectionTableCell:x}=a;const{width:g,height:S,background:t,isShowMultipleWidth:v,isShowMultipleHeight:w,placeholder:k,cellKey:W}=(0,C.Kx)(x,M[0]);return{width:g,height:S,background:t,isShowMultipleWidth:v,isShowMultipleHeight:w,placeholder:k,cellKey:W,refStyles:(0,s.i)(M,"refStyles")}},_={component:f,params:{},getter:[l],setter:{}},b=()=>[p,[_]]},56472:(He,ee,e)=>{"use strict";e.d(ee,{Et:()=>I,Kg:()=>c,Tn:()=>n,XB:()=>r});const n=u=>typeof u=="function",r=u=>typeof u>"u",c=u=>typeof u=="string",o=u=>typeof u=="boolean",I=u=>typeof u=="number"},56696:(He,ee,e)=>{"use strict";e.d(ee,{X:()=>h});var n=e(27480),r=e(30728),c=e(8281),o=e(33848),I=e(5379),u=e(20089),d=function(i){return i.Update="Update",i.Delete="Delete",i.None="None",i}(d||{});const C=i=>{let{refFromKey:f,refToKey:p,isUseWorldBound:s,isRefFromExist:l,isRefToExist:_}=i,b,a;if(l&&_){var M,x;if(((M=sdkStore.getHotItem(f))==null?void 0:M.sup)!==((x=sdkStore.getHotItem(p))==null?void 0:x.sup)){var g;const S=sdkStore.findUpHotItemList(f).map(w=>w.key),t=sdkStore.findUpHotItemList(p).map(w=>w.key),v=S.find(w=>t.includes(w));if(v&&((g=sdkStore.getHotItem(v))==null?void 0:g.hotAttr.type)===u.x.WWrap)b=sdkStore.getRelocateLocalBound(f,v),a=sdkStore.getRelocateLocalBound(f,v);else{const{x:w,y:k,w:W,h:K}=sdkStore.getHotBound(p);a=(0,o.fL)(w,k,W,K);{const{x:G,y:$,w:P,h:E}=sdkStore.getHotBound(f);b=(0,o.fL)(G,$,P,E)}}}else if(s){const{x:S,y:t,w:v,h:w}=sdkStore.getHotBound(p);a=(0,o.fL)(S,t,v,w);{const{x:k,y:W,w:K,h:G}=sdkStore.getHotBound(f);b=(0,o.fL)(k,W,K,G)}}else{const{x:S,y:t,w:v,h:w}=sdkStore.getLocalBound(p);a=(0,o.fL)(S,t,v,w);{const{x:k,y:W,w:K,h:G}=sdkStore.getLocalBound(f);b=(0,o.fL)(k,W,K,G)}}}else if(l)if(s){const{x:S,y:t,w:v,h:w}=sdkStore.getHotBound(f);b=(0,o.fL)(S,t,v,w)}else{const{x:S,y:t,w:v,h:w}=sdkStore.getLocalBound(f);b=(0,o.fL)(S,t,v,w)}else if(_)if(s){const{x:S,y:t,w:v,h:w}=sdkStore.getHotBound(p);a=(0,o.fL)(S,t,v,w)}else{const{x:S,y:t,w:v,h:w}=sdkStore.getLocalBound(p);a=(0,o.fL)(S,t,v,w)}return{fromItemRect:b,toItemRect:a}},h=function(i,f){f===void 0&&(f=!1);const{currentElbowItem:p,startPickPoint:s,endPickPoint:l,isAdjust:_,moveAnchor:b,dragCid:a,elbowKey:M,isUpdateByRef:x}=i;if(!s||!l||!p)return;const g=!1,S=!1,{x:t,y:v,key:w,direction:k}=s,{x:W,y:K,key:G,direction:$}=l,P={x:t,y:v},E={x:W,y:K},{isRefFromExist:H,isRefToExist:O}=(0,I.v)(M,w,G),{fromItemRect:V,toItemRect:Q}=C({refFromKey:w,refToKey:G,isUseWorldBound:f,isRefFromExist:H,isRefToExist:O});let N=[];const{x:L,y:U,elbow:A,w:D,h:B}=p.hotAttr,j=L-D*.5,F=U-B*.5,Y=(0,o.Ui)(r.Z.xy(j,F),A.dPathList||[]),X=[],z=[];Y.forEach((ie,oe)=>{ie.isAdjusted&&(X.push(ie),z.push(oe))});const Z=Y.length;if(X.length<2||_){const ie=(0,c.Mj)(w,k,V,P,G,$,Q,E,a?!1:S,A.elbowType==="straight",g,b,H,O);N=(0,c.rD)(ie).map(oe=>({...oe,x:Math.round(oe.x),y:Math.round(oe.y)}))}else{let ie,oe;if(b){if(b==="start"){const[he,ce,re,fe]=Y;let Se="1",Me,Ie,de;if(!he.isAdjusted&&!ce.isAdjusted?(Me=re,de=3,Ie=fe,Se="2"):he.isAdjusted||(Me=ce,de=2,Ie=re,Se="1"),oe=Y.slice(de,Y.length),x&&Se==="2"){let xe,Le;he.y===ce.y?Le={x:ce.x,y:P.y,isAdjusted:!0}:he.x===ce.x&&(Le={x:P.x,y:ce.y,isAdjusted:!0}),ce.y===re.y?xe={x:re.x,y:Le.y,isAdjusted:!0}:ce.x===re.x&&(xe={x:Le.x,y:re.y,isAdjusted:!0}),ie=[P,Le,xe]}else{const xe=Y[de+1],Le=(0,c.Wz)({...P},Me,Ie,xe);ie=(0,c.rD)(Le).map(ve=>{const je=ve;return{...ve,x:Math.round(je.x),y:Math.round(je.y)}}),ie[ie.length-1].isAdjusted=!0}N=ie.concat(oe)}if(b==="end"){let he,ce,re;const[fe,Se,Me,Ie]=Y.slice(-4);let de="1";if(!Ie.isAdjusted&&!Me.isAdjusted?(re=Z-4,he=fe,ce=Se,de="2"):Ie.isAdjusted||(re=Z-3,he=Se,ce=Me,de="1"),ie=Y.slice(0,re+1),x&&de==="2"){let xe,Le;Ie.y===Me.y?Le={x:Me.x,y:E.y,isAdjusted:!0}:Ie.x===Me.x&&(Le={x:E.x,y:Me.y,isAdjusted:!0}),Me.y===Se.y?xe={x:Se.x,y:Le.y,isAdjusted:!0}:Me.x===Se.x&&(xe={x:Le.x,y:Se.y,isAdjusted:!0}),oe=[xe,Le,E]}else{const xe=Y[re-1],Le=(0,c.hC)({...E},{...xe},{...he},{...ce});oe=(0,c.rD)(Le).map(ve=>{const je=ve;return{...ve,x:Math.round(je.x),y:Math.round(je.y)}}),oe[0].isAdjusted=!0}N=ie.concat(oe)}}}if(N.length<2)return{type:d.None,data:null};const J=n.rw.enclosing(N),te=J.w,ge=J.h,pe=J.x+te*.5,Ce=J.y+ge*.5,me=(0,o.uK)(r.Z.xy(J.x,J.y),N),be={...p,hotAttr:{...p.hotAttr,elbow:{...p.hotAttr.elbow,fromDirection:k,toDirection:$,dPathList:me},refToKey:G,refFromKey:w,x:pe,y:Ce,w:te,h:ge}};return{type:d.Update,data:be}}},56849:(He,ee,e)=>{"use strict";e.d(ee,{Y:()=>c,v:()=>r});var n=e(67787);const r=(0,n.DU)([".border_style_select_menu{li span{display:flex !important;align-items:center;}&.is-open.WorkspaceSelectMenu{width:78px !important;.svg-icon2{svg.svg-icon{left:12px;}}.SelectOption > .Ellipsis{min-width:auto;}}}.border_width_select_menu{&.is-open.WorkspaceSelectMenu{width:66px;}}"]),c=(0,n.DU)([".arrow_type_select_menu{li span{display:flex!important;align-items:center;.svg-icon{width:24px;}}&.is-open.WorkspaceSelectMenu{width:78px;}}.arrow_type_select_menu_end{.reverse{width:24px;transform:rotate(180deg);}}"])},56907:He=>{"use strict";function ee(r,c,o,I,u,d,C){var h;u?(h=((d-r)*o+(C-c)*I)/u,h<0?h=0:h>1&&(h=1)):h=0;var i=r+h*o,f=c+h*I,p=d-i,s=C-f;return p*p+s*s}function e(r,c,o,I,u,d){var C=o-r,h=I-c,i=C*C+h*h;return ee(r,c,C,h,i,u,d)}function n(r,c,o,I,u,d){return Math.sqrt(e(r,c,o,I,u,d))}n.squared=e,n.squaredWithPrecalc=ee,He.exports=n},56938:(He,ee,e)=>{"use strict";e.d(ee,{s:()=>n});let n=function(r){return r.TextFontPanel="TextFontPanel",r.RichTextFontPanel="RichTextFontPanel",r.AlignPanel="AlignPanel",r.SpacingPanel="SpacingPanel",r.RichTextSpacingPanel="RichTextSpacingPanel",r.ContentBoxPanel="ContentBoxPanel",r.ChartTextFontPanel="ChartTextFontPanel",r.TableTextFontPanel="TableTextFontPanel",r.TableAlignPanel="TableAlignPanel",r.TableSpacingPanel="TableSpacingPanel",r.UsedRefTextPanel="UsedRefTextPanel",r.CanShowLibPlhPanel="CanShowLibPlhPanel",r}({})},57150:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>t});var n=e(38502),r=e(79150),c=e(87332),o=e(95549),I=e(25582),u=e.n(I),d=e(17307),C=e(66247),h=e(17573),i=e(67787);const f=i.Ay.a.withConfig({displayName:"styles__StyledOperateItem",componentId:"sc-bn5da4-0"})(["height:32px;padding:0 16px;font-size:12px;display:flex;align-items:center;color:",";position:relative;&.mac .for-others,&.windows .for-mac,&.other-os .for-mac{display:none;}.tip{margin:0 15px 0 9px;}.tip:first-child{margin-left:0;}&.var-number{.svg-icon rect{fill:",";stroke:currentColor;}}.svg-icon{width:14px;height:14px;&.common-z_forward,&.common-z_backward{color:#979797;}&.toolbar-z_front,&.common-z_forward{path{&:first-child{fill:rgba(255,255,255,0.35);}}}&.toolbar-z_back,&.common-z_backward{path{&:last-child{fill:rgba(255,255,255,0.35);}}}}.kbd-size{white-space:nowrap;margin-left:auto;kbd{color:",";display:inline-block;text-align:center;min-width:12px;}kbd:first-child{margin-left:0;}kbd:last-child{margin-right:0;}}&:not(.disabled):hover{background:",";}&.disabled{cursor:not-allowed;color:",";.icon{color:",";}}&.active{.dot{visibility:visible;}}.design-play_toolbar,.design-inspect_toolbar,.design-comment_toolbar{width:14px;height:14px;}border-radius:4px;"],v=>v.theme.color_text_L1,v=>v.theme.color_bg_white,v=>v.theme.color_text_L2,v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_text_disabled01,v=>v.theme.color_text_disabled01);var p=e(53732),s=e.n(p),l=e(62118),_=e(56202),b=e(15515),a=e(72214);class M extends n.PureComponent{constructor(w){super(w),(0,o.A)(this,"handleUnreadSignal",W=>{const{isShowUnreadSignal:K,unreadSignalName:G,onClick:$}=this.props,{isShowUnreadSignalState:P}=this.state;$(W),K&&P&&(this.setState({isShowUnreadSignalState:!1}),(0,b.a0)(G,!1,b.qW.Boolean))});const k=w.unreadSignalName&&w.isShowUnreadSignal;this.state={isShowUnreadSignalState:k&&(0,b.Yt)(w.unreadSignalName,(0,h.Ds)(),b.qW.Boolean)}}render(){const{name:w,svgIconName:k,active:W,disabled:K,keyName:G,isShowUnreadSignal:$,className:P}=this.props,{isShowUnreadSignalState:E}=this.state,H=(0,_.cX)()?"mac":(0,_.uF)()?"windows":"other-os",O=l.lk[G+"_mac"],V=l.lk[G+"_win"];return(0,a.jsxs)(f,{className:s()("group-icon",P,H,{disabled:K,active:W}),onClick:this.handleUnreadSignal,children:[k&&(0,a.jsx)(d.C,{className:k.replace("/","-"),name:k,size:8}),(0,a.jsx)("span",{className:"tip",children:w}),$&&(0,a.jsx)(C.A,{on:E,className:"toolbar-feature-notice"}),(0,a.jsx)("div",{className:"for-mac kbd-size",dangerouslySetInnerHTML:{__html:O}}),(0,a.jsx)("div",{className:"for-others kbd-size",dangerouslySetInnerHTML:{__html:V}})]})}}M.propTypes={name:u().string,svgIconName:u().string,keyName:u().string,active:u().bool,disabled:u().bool,onClick:u().func,unreadSignalName:u().string,isShowUnreadSignal:u().bool,className:u().string};var x=e(78301),g=e(46953);const t=v=>{let{offsetX:w,types:k,onAddVar:W,children:K}=v;const G=(0,n.useRef)(null),$=(0,n.useMemo)(()=>k!=null&&k.length?g.DE.filter(P=>k.includes(P.name)):g.DE,[k]);return(0,n.useEffect)(()=>{const P=E=>{var H;const O=(H=G.current)==null||(H=H.$dropdown)==null?void 0:H.el;!O||O.contains(E.target)||G.current.handleCloseMenu()};return document.addEventListener("mousedown",P),()=>{document.removeEventListener("mousedown",P)}},[]),(0,a.jsx)(c.A,{renderOpener:K||(0,a.jsx)(r.A,{name:"common/add@24"}),offsetX:w||0,ref:G,className:"add-var-opener",renderMenu:(0,a.jsx)(x.IG,{className:"var-add-menubox",children:$.map(P=>(0,a.jsx)(M,{name:I18N.Variable.type[P.name],svgIconName:P.svgIconName,className:P.className,onClick:()=>W(P.type)},P.type))})})}},57514:(He,ee,e)=>{"use strict";e.d(ee,{U:()=>a});var n=e(38502),r=e(18381),c=e(67787),o=e(53732),I=e.n(o),u=e(67588),d=e(15186),C=e(13235),h=e(19376),i=e(36052),f=e(62587),p=e(75810),s=e(72214);const l=x=>{const g=x.findIndex(S=>S!==1);return g===-1||g===3},_=x=>{const g=(0,f.$8)({fillIsVisible:!0,solidColor:x.shadowColor,fill:"solid"}),S=g.color,v=l(S)?[0,0,0,.3]:[S[0],S[1],S[2],.3],w={...g,color:v};return{...x,shadowColor:(0,f.F0)(w).solidColor,offsetX:x.offsetX<0?-2:x.offsetX>2?2:x.offsetX,offsetY:x.offsetY<0?-2:x.offsetY>2?2:x.offsetY,blurRadius:0,spreadRadius:0}},b=(x,g,S)=>{const t={...x,bdrWidth:x.bdrWidth>2?2:x.bdrWidth},v=x.bdrIsVisible===!1||x.bdrWidth===0,w=(0,C.L5)((0,C.NI)(g.solidColor)),k=(0,p.bJ)(w,S==="light"?"FFFFFF":"212121"),W=(0,d.V4)(S==="light"?"#DEE0E2":"#4F5052");if(v&&k<=1.2)return{bdrColor:W,bdrIsVisible:!0,bdrStyle:"solid",bdrWidth:1};if(!v){const K=(0,C.L5)((0,C.NI)(x.bdrColor));if((0,p.bJ)(w,K)<=1.2&&k<=1.2)return{...t,bdrColor:W}}return t},a=x=>{var g;let{className:S,appearStyle:t,mode:v="list",index:w=0,size:k}=x;const W=(0,r.d4)(u.O4),K=(0,n.useMemo)(()=>{if(!t)return{};const{border:$,borderVisibility:P,shadow:E,fill:H}=(t==null?void 0:t.hotAttr)||{},O=_(E),V=b($,H,W),{borderLeft:Q,borderTop:N,borderRight:L,borderBottom:U}=(0,i.NV)({border:V,borderVisibility:P});return{...(0,i.Um)({border:V,borderVisibility:P}),boxShadow:(0,i.Ps)(O),borderRow:Q+L,borderCol:N+U}},[t==null?void 0:t.hotAttr,W]),G=(0,n.useMemo)(()=>{var $,P;let E=t==null||($=t.hotAttr)==null?void 0:$.fill;return t!=null&&(P=t.hotAttr)!=null&&(P=P.fill)!=null&&P.fillIsVisible||(E={fill:"solid",fillIsVisible:!1,solidColor:4294967040}),(0,f.$8)(E,{w:200,h:100})},[t]);return t?(0,s.jsx)(M,{className:I()("appear-ref-view-item",v,S,{"in-visible":!(t!=null&&(g=t.hotAttr)!=null&&(g=g.fill)!=null&&g.fillIsVisible)}),color:G,solidRenderType:"rect",size:k||(v==="list"?16:40),style:K,index:w,hasBorder:!1}):null},M=(0,c.Ay)(h.I).withConfig({displayName:"Appear__StyledAppearViewItem",componentId:"sc-t16n6j-0"})(["&.appear-ref-view-item,&.appear-ref-view-item.has-opacity{border:",";border-color:",";border-width:",";border-style:",";box-shadow:",";overflow:hidden;&.thumbnail-wrapper{&:before{display:none;}.thumbnail{border-radius:0;border:none;}}&.thumbnail-wrapper.has-opacity{border-radius:2px;&.rect{border-radius:2px;&.grid{border-radius:4px;}}&.grid{border-radius:4px;}.thumbnail{border-radius:0;border:none;}}&.has-opacity.opacity-0.in-visible{background:transparent;}.clip{left:-","px;top:-","px;}}"],x=>x.style.border,x=>x.style.borderColor||"transparent",x=>x.style.borderWidth,x=>x.style.borderStyle,x=>x.style.boxShadow,x=>{var g;return((g=x.style)==null?void 0:g.borderRow)/2},x=>{var g;return((g=x.style)==null?void 0:g.borderCol)/2})},58093:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>f});var n=e(95549),r=e(38502),c=e(17307),o=e(57479),I=e(18654),u=e(86964),d=e(67787);const C=(p,s)=>{var l,_;if(p.forceDarkTheme)switch(s){case"workspace_dropdown_menu_shadow":return"0 2px 7px 0 rgba(0, 0, 0, 0.26), 0 12px 36px 0 rgba(0, 0, 0, 0.1)";case"color_proto":return"#1684fc";case"interation_active_box_shadow":return"0 0 4px 0 rgba(41,141,248,0.50)";default:return((l=u.fm[s])==null?void 0:l.value_dark)||((_=I.qY[s])==null?void 0:_.value)}return p.theme[s]},h=d.Ay.div.withConfig({displayName:"styles__StyledSearchBar",componentId:"sc-1nbdan2-0"})(["position:relative;height:32px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid ",";input{width:100%;height:100%;padding-right:22px;background:",";color:",";transition:all 0.2s ease-out;text-indent:24px;border-radius:0;border-top-left-radius:8px;border-top-right-radius:8px;&::placeholder{color:",";}}.clear-icon{position:absolute;right:0;width:24px;line-height:24px;text-align:center;color:",";transition:all 0.15s ease-in-out;cursor:pointer;&:hover{color:",";}g circle{fill:",";}}"],p=>p.theme.color_bg_border_01,p=>p.theme.color_bg_white,p=>p.theme.color_text_L0,p=>p.theme.color_text_L3,p=>C(p,"color_text_disabled01"),p=>C(p,"color_text_L3"),p=>p.theme.clear_icon_color);var i=e(72214);class f extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"setInputRef",s=>this.$input=s),(0,n.A)(this,"focus",()=>this.$input.focus()),(0,n.A)(this,"handleChange",s=>this.props.onChange(s.target.value)),(0,n.A)(this,"handleClear",()=>this.props.onChange("")),(0,n.A)(this,"handleMouseDown",s=>s.preventDefault()),(0,n.A)(this,"handleKeyDown",s=>{const{shouldSearchOnEnter:l,onConfirm:_}=this.props;s.key===o._.Enter&&l&&_&&_()})}componentDidMount(){this.props.forceFocus&&this.$input.focus()}render(){const{value:s,placeholder:l,className:_,inputStyle:b,forceDarkTheme:a}=this.props;return(0,i.jsxs)(h,{type:"search",className:_,forceDarkTheme:a,children:[(0,i.jsx)("input",{className:"WorkspaceInput",ref:this.setInputRef,style:b,type:"text",value:s,placeholder:l,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onFocus:()=>{MB.f.addActionInputFocus=!0},onBlur:()=>{MB.f.addActionInputFocus=!1}}),s.length>0&&(0,i.jsx)(c.C,{name:"new_replace/times_fc",className:"dropmenu-no-exit clear-icon",onMouseDown:this.handleMouseDown,onClick:this.handleClear})]})}}(0,n.A)(f,"defaultProps",{shouldSearchOnEnter:!1})},58320:(He,ee,e)=>{"use strict";e.d(ee,{H:()=>C});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),I=e(69623),u=e(48260),d=e(72214);class C extends r.PureComponent{constructor(i){super(i),(0,n.A)(this,"handleCancel",()=>{const{onCancel:f}=this.props;f&&f()}),(0,n.A)(this,"handleConfirm",()=>{const{onConfirm:f}=this.props;f&&f()}),this.el=document.createElement("div")}render(){const{className:i,canCloseOnClickMask:f,portalClassName:p,children:s,renderFooterContent:l,confirmText:_,onClose:b,canCancel:a,canConfirm:M,cancelBtnProps:x,confirmBtnProps:g={},isUsePortal:S,...t}=this.props;return(0,d.jsxs)(r.Fragment,{children:[(0,I.createPortal)((0,d.jsx)("div",{className:"workspace-modal-mask"}),this.el),(0,d.jsx)(u.O0,{portalClassName:o()("new-model-portal",p),className:o()("workspace-modal",i),onClose:b,onConfirm:this.handleConfirm,canCloseOnEsc:!1,cancelBtnProps:x,canCloseOnClickMask:f,canConfirmOnEnter:!1,confirmText:_||I18N.Common.confirm,isConfirmDisabled:!M,confirmBtnProps:g,renderFooterSide:l,cancelText:I18N.Common.cancel,onCancel:a?this.handleCancel:null,...t,children:(0,d.jsx)("div",{className:"modal-content",children:s})}),S&&(0,d.jsx)(u.CO,{})]})}}(0,n.A)(C,"defaultProps",{canCancel:!0,canConfirm:!0,cancelBtnProps:{type:"secondary"},isUsePortal:!0})},58603:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>G});var n=e(95549),r=e(18250),c=e.n(r),o=e(63986),I=e.n(o),u=e(38502),d=e(69623),C=e(25582),h=e.n(C),i=e(69368),f=e(39e3);const p=9;function s(P){let{$opener:E,$menuBase:H,menuX:O="left",menuY:V="bottom",menuBaseStyle:Q={},inflexible:N=!1,shouldSetMaxHeight:L=!1}=P;if(!E||!H)return;const U=H.querySelector("*"),A={styleFor$menuBase:{},styleFor$menu:{}},D=ce=>Object.assign(A.styleFor$menuBase,ce),B=ce=>Object.assign(A.styleFor$menu,ce),{offsetWidth:j,offsetHeight:F}=U,Y=Q.width||E.offsetWidth,X=Q.height||E.offsetHeight,z=E.getBoundingClientRect(),{top:Z,right:J,bottom:te,left:ge}=Object.assign({top:z.top,right:z.right,bottom:z.bottom,left:z.left},Q);D({top:Z+"px",left:ge+"px",width:Y+"px",height:X+"px"});const{innerHeight:pe}=window,Ce=10,me=pe-10,be=V==="top"?1/3:2/3,ie=pe*be,oe=Z+X/2,he=Z+X;return(N&&V==="bottom"||!N&&ie>=oe)&&he+F+p<pe?(A.isDownward=!0,L&&te+F>me&&B({maxHeight:me-te+"px"})):(A.isDownward=!1,L&&Z-F<Ce&&B({maxHeight:Z-Ce+"px"})),Object.assign(H.style,A.styleFor$menuBase),Object.assign(U.style,A.styleFor$menu),A}function l(P){!P||!(P instanceof Element)||P.addEventListener("wheel",E=>{const{scrollTop:H,scrollHeight:O}=P,{height:V}=P.getBoundingClientRect(),Q=E.deltaY*-1,N=Q>0,L=()=>(E.stopPropagation(),E.preventDefault(),!1);if(!N&&-Q>O-V-H)return P.scrollTop=O,L();if(N&&Q>H)return P.scrollTop=0,L()})}function _(P){let{$opener:E,$menuBase:H,menuBaseStyle:O={},$menuContainer:V}=P;if(!E||!H)return;const Q=H.querySelector("*"),L=((0,i.$)("li[role=option].is-active",Q)||(0,i.$)("li[role=option]",Q)||(0,i.$)("li[role=empty-msg]",Q)).getBoundingClientRect(),U=Q.getBoundingClientRect(),A={styleFor$menuBase:{},styleFor$menu:{},styleFor$menuContainer:{},styleFor$fontTip:{}},D=pe=>Object.assign(A.styleFor$menuBase,pe),B=pe=>Object.assign(A.styleFor$menuContainer,pe),j=O.width||E.offsetWidth,F=O.height||E.offsetHeight,Y=E.getBoundingClientRect(),{top:X,bottom:z,left:Z}=Object.assign({top:Y.top,right:Y.right,bottom:Y.bottom,left:Y.left},O);D({top:X+"px",left:Z+"px",width:j+"px",height:F+"px"});const{innerHeight:J}=window;let te=0;const ge=L.top-U.top;if(te=-Math.min(ge,X),X+te+U.height>J){const pe=X+te+U.height-J;B({top:te-pe+"px"})}else B({top:te+"px"});return Object.assign(H.style,A.styleFor$menuBase),Object.assign(Q.style,A.styleFor$menu),Object.assign(V.style,A.styleFor$menuContainer),A}function b(P){let{$opener:E,$menuBase:H,$menuContainer:O,menuY:V="bottom",menuBaseStyle:Q={}}=P;if(!E||!H)return;const N={styleFor$menuBase:{},styleFor$menuContainer:{}},L=te=>Object.assign(N.styleFor$menuBase,te),U=te=>Object.assign(N.styleFor$menuContainer,te),{offsetHeight:A}=O,D=Q.width||E.offsetWidth,B=Q.height||E.offsetHeight,j=E.getBoundingClientRect(),{top:F,bottom:Y,left:X}=Object.assign({top:j.top,right:j.right,bottom:j.bottom,left:j.left},Q);L({top:F+"px",left:X+"px",width:D+"px",height:B+"px"});const{innerHeight:z}=window,Z=Y+A<z,J=F>A;if(V==="bottom")if(Z)U({top:"100%"});else if(J)U({bottom:"100%"});else{const te=-(Y+A-z-B);U({top:te+"px"})}if(V==="top")if(J)U({bottom:"100%"});else if(Z)U({top:"100%"});else{const te=-(A-F-B);U({bottom:te+"px"})}return Object.assign(H.style,N.styleFor$menuBase),Object.assign(O.style,N.styleFor$menuContainer),N}var a=e(18654),M=e(86964),x=e(67787);const g=x.Ay.label.withConfig({displayName:"styles__StyledDropdown",componentId:"sc-1wdr1xt-0"})(["&.is-disabled{opacity:0.5;& > button{cursor:not-allowed;}}"]),S=(P,E)=>{var H,O;if(P.forceDarkTheme)switch(E){case"workspace_dropdown_menu_shadow":return"0 2px 7px 0 rgba(0, 0, 0, 0.26), 0 12px 36px 0 rgba(0, 0, 0, 0.1)";default:return((H=M.fm[E])==null?void 0:H.value_dark)||((O=a.qY[E])==null?void 0:O.value)}return P.theme[E]},t=x.Ay.div.withConfig({displayName:"styles__StyledDropdownMenu",componentId:"sc-1wdr1xt-1"})(["&.DesignDropdownMenuBase{position:fixed;z-index:1100;pointer-events:none;}.DesignDropdownMenu{position:absolute;margin:0.25em 0;width:fit-content;min-width:7em;font-size:12px;pointer-events:none;opacity:0;transition:.2s ease-in-out;transition-property:transform,opacity;transform-origin:50% 0;transform:scale(0.9);box-shadow:",";border:1px solid ",";border-radius:9px;&.is-open{pointer-events:initial;opacity:1;transform:scale(1);}&.x-left{left:0;}&.x-right{left:initial;right:0;}&.x-center{left:50%;transform:scale(0.9) translateX(-50%);&.is-open{transform:scale(1) translateX(-50%);}}&.is-downward{top:100%;bottom:initial;border-radius:8px;}&.is-upward{top:initial;bottom:100%;}&.arrowed{margin-top:0.75em;margin-bottom:0.75em;&.x-left.x-arrow-based{left:50%;margin-left:-14px;}&.x-right.x-arrow-based{left:initial;right:50%;margin-right:-14px;}}.arrow{position:absolute;top:calc(-0.375em + 1px);left:calc(50% - 0.5em);width:1em;height:0.375em;font-size:14px;line-height:0;fill:currentColor;fill-rule:evenodd;color:#fff;}&.dark .arrow{color:",";}&.x-left .arrow{left:0.5em;right:initial;}&.x-right .arrow{left:initial;right:0.5em;}&.is-upward .arrow{transform:rotate(180deg);top:initial;bottom:calc(-0.375em + 1px);}.content{padding:8px;min-height:32px;background-color:",";border-radius:9px;}&.dark .content{background-color:",";color:",";button:hover{color:",";}}ul.MenuList{margin:0;padding:0;list-style:none;text-align:center;color:",";li{line-height:32px;border-radius:2px;cursor:pointer;&.is-active{color:#1e98ea;}&.is-disabled{cursor:not-allowed;opacity:0.5;}}}}"],P=>P.theme.shadow_m,P=>P.theme.color_bg_border_01,P=>S(P,"color_text_L1"),P=>P.theme.color_bg_white,P=>S(P,"color_text_L1"),P=>S(P,"color_bg_white"),P=>S(P,"color_bg_white"),P=>S(P,"color_text_L2"));var v=e(72214);const w="IBOT_DROPDOWN_MENU_ROOT",k='<svg viewBox="0 0 8 3"><path d="M4.654.233L8 3H0L3.383.23c.37-.303.902-.302 1.27.003z" /></svg>',W=document.getElementById(w)||Object.assign(document.createElement("div"),{id:w}),K=document.body;K.contains(W)||K.appendChild(W);class G extends u.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"state",{prevProps:this.props,isOpen:this.props.isOpen,$opener:null,currentMenuListItemIdx:this.props.currentMenuListItemIdx}),(0,n.A)(this,"leaveTimeoutList",[]),(0,n.A)(this,"toggle",E=>{this.setState({isOpen:c()(E)?E:!this.state.isOpen})}),(0,n.A)(this,"open",()=>this.toggle(!0)),(0,n.A)(this,"close",()=>this.toggle(!1)),(0,n.A)(this,"onMouseEnter",()=>{const{shouldOpenOnHover:E}=this.props;E&&(clearTimeout(this.closeTimeout),Object.assign(this,{hoverTimeout:setTimeout(this.open,this.props.hoverDelay)}))}),(0,n.A)(this,"onMouseLeave",()=>{const{shouldOpenOnHover:E}=this.props;E&&clearTimeout(this.hoverTimeout)}),(0,n.A)(this,"onMouseMove",E=>{let{clientX:H,clientY:O}=E;const{shouldOpenOnHover:V,hoverDelay:Q,closeDelay:N}=this.props,{$opener:L}=this.state;if(!V)return;clearTimeout(this.hoverTimeout);const U=document.elementFromPoint(H,O),A=!L.contains(U),D=!U.closest(".DesignDropdownMenu");D?A&&D&&this.leaveTimeoutList.push(setTimeout(this.close,Math.max(Q,N))):(this.leaveTimeoutList.forEach(clearTimeout),Object.assign(this,{leaveTimeoutList:[]}))}),(0,n.A)(this,"set$opener",E=>this.setState({$opener:E})),(0,n.A)(this,"onSelect",E=>{let{currentTarget:H}=E;const{menuList:O,onSelect:V,shouldCloseOnSelect:Q}=this.props;if(typeof V!="function")return;const N=H.dataset.idx,L=O[N],U=typeof L=="string"?L:L&&L.value;V(N,U),this.setState({currentMenuListItemIdx:N}),Q&&this.close()}),(0,n.A)(this,"onClick",()=>{this.props.onlyOpenOnHover||this.toggle()})}static getDerivedStateFromProps(E,H){let{prevProps:O}=H;return I()(E,O)?null:c()(E.isOpen)?{prevProps:E,isOpen:E.isOpen}:{prevProps:E}}componentDidUpdate(E,H){let{isOpen:O}=H;const{onOpen:V,onClose:Q,onToggle:N}=this.props,{isOpen:L}=this.state;O!==L&&(L?(V(),N(!0)):(Q(),N(!1)))}render(){const{className:E,opener:H,openerType:O,shouldCloseOnClickOutside:V,onMouseEnter:Q,onMouseLeave:N,forceDarkTheme:L}=this.props,{isOpen:U,$opener:A,currentMenuListItemIdx:D}=this.state,B=this.props.isDisabled||this.props.disabled,j=(0,i.Hn)(["WorkspaceDropdown",U&&"is-open",B&&"is-disabled",E]),F={onClick:this.onClick,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,disabled:B};return(0,v.jsxs)(g,{ref:this.set$opener,className:j,onMouseEnter:Q,onMouseLeave:N,children:[O!=="button"&&(0,u.isValidElement)(H)?(0,u.cloneElement)(H,F):(0,v.jsx)("button",{type:"button",...F,children:H}),U&&(0,v.jsx)($,{...this.props,forceDarkTheme:L,isOpen:U,$opener:A,onSelect:this.onSelect,onClose:this.close,currentMenuListItemIdx:D}),U&&(0,v.jsx)(f.A,{target:document,onMouseMove:this.onMouseMove})]})}}(0,n.A)(G,"positionMenu",s),(0,n.A)(G,"propTypes",{isOpen:h().bool,mode:h().oneOf(["light","dark"]),forceDarkTheme:h().bool,opener:h().node,openerType:h().oneOf(["button","custom"]),className:h().string,portalClassName:h().string,menuBaseClassName:h().string,menuClassName:h().string,menuBaseStyle:h().shape({top:h().number,right:h().number,bottom:h().number,width:h().number,height:h().number}),menu:h().node,menuList:h().arrayOf(h().oneOfType([h().node,h().shape({label:h().node,value:h().any,isDisabled:h().bool})])),currentMenuListItemIdx:h().oneOfType([h().number,h().string]),shouldPreventScrollingPropagation:h().bool,shouldOpenOnHover:h().bool,shouldCloseOnClickOutside:h().bool,onClickOutside:h().func,hoverDelay:h().oneOfType([h().number,h().string]),closeDelay:h().number,arrowed:h().bool,inflexible:h().bool,menuX:h().oneOf(["left","center","right"]),menuY:h().oneOf(["top","bottom"]),menuBasedX:h().bool,isDisabled:h().bool,disabled:h().bool,onSelect:h().func,onMouseEnter:h().func,onMouseLeave:h().func,shouldCloseOnSelect:h().bool,onlyOpenOnHover:h().bool,onOpen:h().func.isRequired,onClose:h().func.isRequired,onToggle:h().func.isRequired}),(0,n.A)(G,"defaultProps",{arrowed:!1,openerType:"button",mode:"light",forceDarkTheme:!1,shouldPreventScrollingPropagation:!0,shouldCloseOnSelect:!0,shouldOpenOnHover:!1,shouldCloseOnClickOutside:!0,onlyOpenOnHover:!1,hoverDelay:200,closeDelay:300,menuX:"center",menuY:"bottom",inflexible:!1,menuBasedX:!1,onOpen:()=>null,onClose:()=>null,onToggle:()=>null,onMouseLeave:()=>null,onMouseEnter:()=>null});class $ extends u.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"state",{isTransform:!1,isDownward:this.props.position==="bottom"}),(0,n.A)(this,"portal",(0,i.ep)(W,(0,i.Hn)(["DropdownMenuPortal",this.props.portalClassName]))),(0,n.A)(this,"menuBaseRef",(0,u.createRef)()),(0,n.A)(this,"menuContainerRef",(0,u.createRef)()),(0,n.A)(this,"onResizeWindow",()=>this.props.isOpen&&this.position()),(0,n.A)(this,"onClickOutside",E=>{var H;const{target:O}=E,{$opener:V,onClose:Q,shouldCloseOnClickOutside:N,onClickOutside:L}=this.props;if(!N||(H=this.menuBaseRef.current)!=null&&H.contains(O)||L&&!L(E)||O.className==="icon dora clear-icon")return;if(O.closest(".dropmenu-exit")){Q();return}if(O.closest(".dropmenu-no-exit"))return;const U=!W.contains(O),A=O.closest("label"),D=A&&A.contains(V),B=!!document.querySelector(".SelectMenu.is-open");U&&!D&&!B&&Q()}),(0,n.A)(this,"position",()=>{const{$opener:E,menuX:H,menuY:O,menuBaseStyle:V,inflexible:Q,isPosition2:N,isPosition3:L}=this.props,{menuBaseRef:{current:U},menuContainerRef:{current:A}}=this;if(!U)return;let D;if(L){const{isDownward:B}=b({$menuBase:U,$opener:E,$menuContainer:A,menuX:H,menuY:O,menuBaseStyle:V});D=B}else if(N){const{isDownward:B}=_({$menuBase:U,$opener:E,$menuContainer:A,menuX:H,menuY:O,menuBaseStyle:V,inflexible:Q});D=B}else{const{isDownward:B}=s({$menuBase:U,$opener:E,menuX:H,menuY:O,menuBaseStyle:V,inflexible:Q});D=B}this.setState({isDownward:D,isTransform:!0})})}componentDidMount(){const{isOpen:E,shouldPreventScrollingPropagation:H}=this.props,{menuBaseRef:{current:O}}=this;E&&setTimeout(this.position),H&&l(O.querySelector(".content")),window.addEventListener("resize",this.onResizeWindow)}componentWillUnmount(){this.portal&&this.portal.remove(),window.removeEventListener("resize",this.onResizeWindow)}render(){const{portal:E,menu:H}=this;return(0,d.createPortal)(H,E)}get menu(){const{isOpen:E,mode:H,menuBaseClassName:O,menuClassName:V,menu:Q,menuList:N,arrowed:L,menuX:U,menuBasedX:A,currentMenuListItemIdx:D,onSelect:B,forceDarkTheme:j,isPosition2:F,isPosition3:Y}=this.props,{isDownward:X,isTransform:z}=this.state,Z=(0,i.Hn)(["DesignDropdownMenu",H,z&&"is-open",F||Y?"":X?"is-downward":"is-upward","x-"+U,L&&"arrowed "+(A?"x-menu-based":"x-arrow-based"),V]);return(0,v.jsx)(t,{forceDarkTheme:j,ref:this.menuBaseRef,className:(0,i.Hn)(["DesignDropdownMenuBase",O]),children:(0,v.jsxs)("div",{className:Z,ref:this.menuContainerRef,children:[L&&(0,v.jsx)("span",{className:"arrow",children:(0,v.jsx)("svg",{viewBox:"0 0 8 3",children:(0,v.jsx)("path",{d:"M4.654.233L8 3H0L3.383.23c.37-.303.902-.302 1.27.003z"})})}),(0,v.jsx)("div",{className:"content",children:N?(0,v.jsx)("ul",{className:"MenuList",children:N.map((J,te)=>(0,v.jsx)("li",{role:"option","data-idx":te,className:(0,i.Hn)([J.isDisabled&&"is-disabled",te===Number(D)&&"is-active"]),onClick:J.isDisabled?void 0:B,children:J.label||J},te))}):Q}),E&&(0,v.jsx)(f.A,{target:document,onClick:(0,f.t)(this.onClickOutside,{capture:!0})}),E&&(0,v.jsx)(f.A,{target:document,onScroll:(0,f.t)(this.position,{capture:!0})})]})})}}(0,n.A)($,"propTypes",{...G.propTypes,isOpen:h().bool,$opener:h().instanceOf(Element),onSelect:h().func,onClose:h().func})},58656:(He,ee,e)=>{"use strict";e.d(ee,{BH:()=>o,LC:()=>d,U9:()=>I,aB:()=>u});var n=e(67787),r=e(55802),c=e(75810);const o=n.Ay.div.withConfig({displayName:"styles__StyledVarList",componentId:"sc-936727-0"})(["height:calc(100% - 56px);margin:8px 0;padding:0 8px;overflow-y:auto;scrollbar-width:none;&::-webkit-scrollbar{display:none;}.bar-vertical{top:40px;height:calc(100% - 40px);}.var-sort-list{position:relative;min-height:100%;}.dnd{bottom:0;}.is-empty{height:100%;}.empty-box{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%;min-height:150px;padding:20px 0;img{margin-bottom:16px;}.empty-tip{color:",";line-height:17px;text-align:center;a{display:inline-block;margin-top:8px;color:",";&:hover{color:",";}}}}.empty-box-nomatched{height:100%;min-height:100px;img{width:50px;height:51px;}.tips{margin:16px 0 0;}}"],C=>C.theme.color_text_L3,C=>C.theme.color_text_link_normal,C=>C.theme.color_text_link_hover),I=n.Ay.div.withConfig({displayName:"styles__StyledVarItem",componentId:"sc-936727-1"})(["display:flex;align-items:center;flex-direction:row;justify-content:space-between;height:32px;font-size:12px;line-height:32px;cursor:pointer;padding:0 10px;border-radius:6px;&:hover,&.trigger{background-color:",";}&.active,&.highlight{background-color:",";}&.trigger,&.active,&.highlight,&:hover{+ .var-item{border-top-left-radius:0;border-top-right-radius:0;}}&:has(+ .var-item.trigger,+ .var-item.active,+ .var-item:hover,+ .var-item.highlight){border-bottom-left-radius:0;border-bottom-right-radius:0;}.left{flex:1;display:flex;align-items:center;width:calc(50% - 4px);.svg-icon{font-size:14px;margin-right:4px;flex-shrink:0;rect{fill:",";stroke:",";}}.var-name{max-width:calc(100% - 18px);overflow:hidden;text-overflow:ellipsis;white-space:pre;color:",";&.editor{pointer-events:all;.var-name-editable{border:1px solid ",";height:26px;padding:0 8px;border-radius:6px;}}}}.right{margin-left:8px;width:calc(50% - 4px);display:flex;justify-content:flex-end;color:",";.var-data{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:pre;}}&.var-string{.right{position:relative;.var-data{max-width:calc(100% - 8px);}}&:not(.is-dropmenu.active.binded){.right{&::before,&::after{content:'\"'; } } } } .unbind-button { color: ","; }"],C=>C.theme.color_btn_secondary_hover,C=>C.theme.color_bg_select02,C=>C.theme.color_bg_white,C=>(0,c.oU)(C,"color_text_L1"),C=>C.theme.color_text_L1,C=>C.theme.color_proto,C=>C.theme.color_text_L3,C=>C.theme.color_text_link_normal),u=(0,n.Ay)(r.A).withConfig({displayName:"styles__StyledVarEditor",componentId:"sc-936727-2"})(["border:1px solid ",";border-radius:8px;overflow:hidden;z-index:101;width:240px;font-family:'PingFangSC';color:",";background:",";.header{height:40px;display:flex;cursor:move;align-items:center;justify-content:space-between;padding:16px;background:",";border-bottom:1px solid ",";.left{font-weight:500;}.right{display:flex;.del-icon{margin-right:4px;}}}.content{padding:16px;display:flex;flex-direction:column;gap:8px;.var-item{display:flex;justify-content:space-between;align-items:center;height:32px;&.string{height:64px;.var-label{line-height:28px;padding-bottom:36px;}}.var-label{line-height:32px;color:",";}.name-input{height:28px;}.name-input input{font-size:12px;width:144px;border-radius:6px;background:",";color:",";border:1px solid ",";padding:5px 8px;height:28px;}.string-value{resize:none;height:64px;width:144px;color:",";background:",";border:1px solid ",";border-radius:6px;outline:none;cursor:text;overflow:auto;padding:5px 8px;position:relative;}.number-value,.name-input input,.string-value{width:144px;box-shadow:none !important;&:hover{border-color:"," !important;box-shadow:none !important;}&:focus,&.focus,&.is-active{outline:1px solid "," !important;border-color:"," !important;background:"," !important;color:"," !important;outline-offset:0 !important;}}.boolean-value{width:144px;height:32px;display:flex;align-items:center;span{margin-left:16px;}.Switch-IOS.is-checked.regular button{transform:translate(16px,0px);}}}}.footer{display:flex;justify-content:flex-end;padding:0 16px 16px;}"],C=>C.theme.color_bg_border_01,C=>C.theme.color_text_L1,C=>C.theme.color_bg_white,C=>C.theme.color_bg_white,C=>C.theme.color_bg_border_01,C=>C.theme.color_text_L3,C=>C.theme.color_bg_white,C=>C.theme.color_text_L1,C=>C.theme.color_bg_border_02,C=>C.theme.color_text_L1,C=>C.theme.color_bg_white,C=>C.theme.color_bg_border_02,C=>C.theme.color_btn_primary_normal,C=>C.theme.color_btn_primary_normal,C=>C.theme.color_btn_primary_normal,C=>C.theme.color_bg_white,C=>C.theme.color_text_L1),d=(0,n.DU)([".TipBase{.Tip.var-tooltip{transform:translate(-50%,0) !important;opacity:1 !important;.EllipsisTip{max-width:228px;max-height:300px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:12;line-clamp:12;text-overflow:ellipsis;word-break:break-all;white-space:pre-wrap;overflow:hidden;}&.var-string-tooltip .EllipsisTip{&::before{content:'\"'; } &::after { content: '\"';}}}}"])},59189:(He,ee,e)=>{"use strict";e.d(ee,{N:()=>r});var n=e(43722);const r=c=>function(o,I){const u=this;if(!(0,n.gq)(u.state,I))return!0;for(const d of c)if(typeof u.props[d]!="function"&&u.props[d]!==o[d])return!0;return!1}},59323:(He,ee,e)=>{"use strict";e.d(ee,{vR:()=>c,zB:()=>r});var n=e(20089);const r=I=>{const u=new Map;if(I!=null&&I.length)for(let d=0;d<I.length;d++){const C=I[d],h=sdkStore.locUpHotCanvasKey(C);if(h!==C&&h){const i=sdkStore.getHotItem(h);i&&!u.get(i.key)&&u.set(i.key,i)}}return u},c=I=>new Set(I.map(u=>sdkStore.locUpHotCanvasKey(u)||sdkStore.locUpRBPageKey(u))).size===1,o=function(I,u){var d;u===void 0&&(u=sdkStore);const C=[],h=u.getHotItem(I),{hotAttr:i,sub:f}=h,p=(d=i.bunch)!=null?d:i.type;return p!==WidgetType.RbPage&&C.push(h),[WidgetType.RbPage,WidgetType.WWrap].includes(p)&&f.forEach(s=>C.push(...o(s,u))),C}},59531:(He,ee,e)=>{"use strict";e.d(ee,{D:()=>I});var n=e(38502),r=e(46322),c=e(14285),o=e(72214);const I=u=>{const d=[],C=[];let h=0,i=0;return u.pictureList.forEach(f=>{const p=109*f.height/f.width;h<i?(d.push(f),h+=p):(C.push(f),i+=p)}),(0,o.jsxs)(c.Ws,{className:"picture-list",children:[(0,o.jsx)("div",{children:d.map(f=>(0,o.jsx)(r.I,{...u,asset:f,popupsName:u.popupsName},f.asset_cid))}),(0,o.jsx)("div",{children:C.map(f=>(0,o.jsx)(r.I,{...u,asset:f,popupsName:u.popupsName},f.asset_cid))})]})}},59736:(He,ee,e)=>{"use strict";e.d(ee,{Z:()=>s});var n=e(38502),r=e(53732),c=e.n(r),o=e(23744),I=e(67787),u=e(51090),d=e(21066);const C=I.Ay.div.withConfig({displayName:"styls__StyledDropMenuSelect",componentId:"sc-1gbqqv2-0"})(["position:relative;display:inline-flex;align-items:center;max-width:100%;min-width:3em;height:28px;font-size:12px;color:",";cursor:pointer;max-width:","px;border-radius:4px;border:1px solid transparent;justify-content:space-between;&.isSelecting,&:hover{width:218px;}span{color:",";margin-left:6px;width:24px;cursor:pointer;",";}.caret{color:",";flex:0 0 24px;}&.isSelecting,&:hover{border-color:",";.caret{margin-left:auto;visibility:visible;color:",";}}"],l=>l.theme.color_text_L2,l=>l.$width,l=>l.theme.color_text_L1,u.L9,l=>l.theme.color_text_L3,l=>l.theme.color_bg_border_02,l=>l.theme.color_text_L1),h=(0,I.Ay)(d.Ay).withConfig({displayName:"styls__StyledMenu",componentId:"sc-1gbqqv2-1"})(["",";& > ul:first-of-type{width:","px;min-width:","px;overflow-y:auto;> li{width:100%;> a{padding-right:0;.selected-icon{flex:0 0 8px;}> span{width:100%;}}&.hasIcon{> a{> span{width:calc(100% - 17px);}}}}}& > ul:nth-of-type(2){min-width:100px;max-width:100px;> li{max-width:100px;min-width:100px;}}.MenuItem{&:not(.hasIcon){a{padding-left:33px;}}}"],u.ZJ,l=>l.$width,l=>l.$width);var i=e(54449),f=e(72214);const p=(0,f.jsx)(o.C,{name:"toolbar/selected",className:"selected-icon"}),s=l=>{let{onChange:_,optionList:b,displayLabel:a,width:M,selectedOption:x,className:g,menuClassName:S,leftUse:t="right"}=l;const v=(0,n.useRef)(null),{menuStatus:w,handleClose:k,handleToggle:W}=(0,i.x)({ref:v,leftUse:t});return(0,f.jsxs)(C,{ref:v,className:c()(g,{isSelecting:w.isOpenContextMenu}),$width:M,onClick:W,children:[(0,f.jsx)("span",{children:a}),(0,f.jsx)(o.C,{name:"common/expand@26",className:"caret",size:24}),w.isOpenContextMenu&&(0,f.jsx)(h,{$width:M,position:w.position,onClose:k,className:S,children:b.map((K,G)=>(0,f.jsx)(d.Dr,{text:K.text,icon:x===K.value?p:null,onClick:()=>_(K.value)},G))})]})}},59844:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>i});function n(f,p,s){const l=p.getBoundingClientRect(),_=Math.min(l.left,document.documentElement.clientWidth-l.right);return f.offsetWidth+p.offsetWidth+s+_<document.documentElement.clientWidth}function r(f,p){const s=f.getBoundingClientRect(),l=s.bottom>window.innerHeight,_=s.top<0;if(_&&l)return!0;if(f.offsetHeight>p.offsetHeight){const b=f.offsetHeight/2,a=s.bottom-window.innerHeight,M=-s.top,x=b-a,g=b-M;return x>=0&&g>=0}return!l&&!_}function c(f,p,s,l,_){if(!s)return f;const b=s.getBoundingClientRect(),a=p.offsetHeight+l,M=window.innerHeight-b.bottom,x=b.top,g=M>=a,S=x>=a;switch(f){case"right":return!n(p,s,l)||!r(s,p)?c("up",p,s,l,!0):document.documentElement.clientWidth-b.right<p.offsetWidth+l?"left":"right";case"left":return!n(p,s,l)||!r(s,p)?c("up",p,s,l,!0):b.left<p.offsetWidth+l?"right":"left";case"up":if(!S){if(g)return"down";if(!_&&n(p,s,l))return c("right",p,s,l,!0)}return"up";case"down":default:if(!g){if(S)return"up";if(!_&&n(p,s,l))return c("right",p,s,l,!0)}return"down"}}function o(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function I(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0}function u(){return typeof document<"u"?document.documentElement.clientWidth:1e3}function d(f){const p=f.split("-");return p.length>1?p[1]:"middle"}function C(f,p,s,l,_){let b=-1e7,a;if(f){const M=I(),x=p.getBoundingClientRect(),g=x.left+M,S=Math.round(x.width/2),t=Math.min(u(),f.offsetWidth);if(l==="start")b=g;else if(l==="end"){const W=g+p.offsetWidth;b=Math.max(W-t,M)}else{const W=g+S-Math.round(t/2);b=Math.max(W,M)}const v=b+t,w=M+document.documentElement.clientWidth,k=v-w;k>0&&(b-=k),s==="up"?a=x.top+o()-(f.offsetHeight+_):a=x.bottom+o()+_}return{left:b,top:a}}function h(f,p,s,l,_){let b=-1e7,a=0;if(f){const M=o(),x=I(),g=p.getBoundingClientRect(),S=g.top+M,t=Math.round(p.offsetHeight/2),v=S+t,w=g.top+M+t;if(l==="start")a=S;else if(l==="end")a=g.bottom+M-f.offsetHeight;else{const W=Math.max(S+t-Math.round(f.offsetHeight/2),M);a=Math.min(W,v)}const k=a-M+f.offsetHeight-window.innerHeight;k>0&&(a=Math.max(a-k,w-f.offsetHeight)),s==="right"?b=g.right+_+x:b=g.left-_-f.offsetWidth+x}return{left:b,top:a}}function i(f,p,s){let{direction:l,distance:_,forceDirection:b}=s;const a=d(l),M=l.split("-")[0];let x=M;return!b&&p&&(x=c(M,p,f,_)),{sourceNodePosition:x==="up"||x==="down"?C(p,f,x,a,_):h(p,f,x,a,_),realDirection:x}}},59890:(He,ee,e)=>{"use strict";e.d(ee,{ZF:()=>a,FG:()=>C,VY:()=>p,bF:()=>h,iC:()=>b,F7:()=>_,e$:()=>x,U2:()=>S,s5:()=>l});var n=e(96635);const r=(t,v)=>{try{let w="/memo/"+encodeURI(t);v!==void 0&&(w+="?"+new URLSearchParams(v)),fetch(w).catch(k=>console.warn("memoG+f",k))}catch(w){console.warn("memoG",w)}},c=(t,v)=>{try{const w=typeof v=="string"?v:JSON.stringify(v);fetch("/memo/"+encodeURI(t),{method:"POST",body:w}).catch(k=>console.warn("memoP+f",k))}catch(w){console.warn("memoP",w)}};var o=e(81717),I=e(46905);const u=n.A.get.bind(n.A),d=n.A.set.bind(n.A),C=()=>{let t="",v="",w=!1;return{getChunkId:()=>v,setChunkId:H=>{v=H},saveChunk:H=>{H&&(t+=H)},parseChunk:()=>{let H="";const O=t.trim().split("\n");for(const V of O)if(V.trim())try{const{value:Q,done:N}=JSON.parse(V);if(N)return Q.answer;H+=Q.partialAnswer}catch(Q){break}return H},getChunk:()=>t,setChunkUpdatedFlag:H=>{w=H},getChunkUpdatedFlag:()=>w}},h=t=>{var v,w;return((v=t.match(/```txt([\s\S]*?)```/))==null?void 0:v[1])||((w=t.match(/```txt([\s\S]*)/))==null||(w=w[1])==null?void 0:w.replace(/(<\/|<)$/,""))},i=t=>{var v,w;return((v=t.match(/```html([\s\S]*?)```/))==null?void 0:v[1])||((w=t.match(/```html([\s\S]*)/))==null||(w=w[1])==null?void 0:w.replace(/(<\/|<)$/,""))},f=t=>{var v;return(v=t.match(/```json([\s\S]*?)```/))==null?void 0:v[1]},p=t=>{if(!t)return{htmlContent:"",jsonContent:""};const v=i(t),w=f(t);return{htmlContent:v,jsonContent:w}},s=(()=>{const t=v=>"ai-component-feedback-"+v;return{setCache:(v,w)=>{d(t(v),w)},getCache:v=>u(t(v))}})(),l=(()=>{const t="ai-component-user-input-key",v="user-input-generate-content-key",w=K=>"user-input-edit-content-key-"+K,k=(K,G)=>{const $=JSON.parse(u(t)||"{}");d(t,JSON.stringify({...$,[K]:G}))},W=K=>JSON.parse(u(t)||"{}")[K];return{setGenerateContentCache:K=>{k(v,K)},getGenerateContentCache:()=>W(v),setEditContentCache:(K,G)=>{k(w(K),G)},getEditContentCache:K=>W(w(K))}})(),_=(()=>{const t="ai-component-snapshot-base64-url-key";return{setCache:v=>{d(t,v)},getCache:()=>u(t),clearCache:()=>{d(t,"")}}})(),b=(()=>{const t=v=>"ai-component-sent-message-"+v;return{setCache:v=>{let{key:w,text:k,img:W,prevHtml:K,targetTags:G}=v;d(t(w),JSON.stringify({text:k,img:W,prevHtml:K,targetTags:G}))},getCache:v=>JSON.parse(u(t(v))||"{}")}})(),a=(()=>{const t="ai-component-source-cache-key";return{setCache:v=>{d(t,v)},getCache:()=>u(t)}})(),M=(t,v)=>t!==""&&v!==""?"img + "+t:t!==""?t:"img",x=t=>{let{code:v,userTextContent:w,snapshotBase64Url:k="",startTimestamp:W}=t;const K=a.getCache(),G=Date.now()-W,$=M(w,k),E={200:"\u6210\u529F",403:"\u8BF7\u6C42\u53C2\u6570\u9519\u8BEF",429:"\u8BF7\u6C42\u6B21\u6570\u9891\u7E41",451:"\u7528\u6237\u8F93\u5165\u5185\u5BB9\u89E6\u53D1\u654F\u611F\u8BCD",500:"\u670D\u52A1\u5668\u9519\u8BEF",999:"openai \u56DE\u590D\u5185\u5BB9\u4E0D\u7B26\u5408\u9884\u671F\u6216\u89E6\u53D1\u654F\u611F\u8BCD"}[v]||"\u5176\u4ED6\u9519\u8BEF\uFF0C\u9519\u8BEF\u7F16\u7801\uFF1A"+v;c("aiComponent/trackAIFunction",{uid:MB.user.id,source:K,duration:G,result:E,userInput:$,code:v}),(0,o.Im)({source:K,ai_type:"AI\u7EC4\u4EF6\u751F\u6210",ai_duration:G,result:E,ai_user_input:$,generate_success:v===200,is_pay:(0,I.vW)(MB.user,MB.currentOrg,MB.getRootProject())})},g=t=>{let{ai_component_feedback:v,generate_content:w,userTextContent:k,snapshotBase64Url:W=""}=t;const K=M(k,W);memoP("aiComponent/trackAIComponentFeedback",{uid:MB.user.id,ai_component_feedback:v,generate_content:w,user_input:K}),trackAIComponentFeedback({ai_component_feedback:v,generate_content:w,user_input:K})},S=t=>{let{source:v}=t;c("aiComponent/trackAIOpen",{uid:MB.user.id,source:v}),(0,o.Ue)({source:v})}},60007:(He,ee,e)=>{"use strict";e.d(ee,{M:()=>s});var n=e(53732),r=e.n(n),c=e(18381),o=e(23744),I=e(60589),u=e(81973),d=e(4235),C=e(10472),h=e(83672),i=e(67787);const f=i.Ay.div.withConfig({displayName:"styles__StyledUsedRefTextPanel",componentId:"sc-1pesait-0"})(["display:flex;align-items:center;height:32px;&:hover,&.is-active{.content{background-color:",";border-color:",";}.svg-icon{display:block;}}.content{display:flex;align-items:center;flex:1;height:28px;border-radius:6px;border:1px solid ",";background:",";color:",";cursor:pointer;overflow:hidden;padding-right:4px;.appear-ref-view-item{margin-right:10px;}.view-item{margin-right:4px;}span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}.svg-icon{display:none;cursor:pointer;border-radius:4px;margin-left:6px;color:",";flex:0 0 24px;&:hover{background-color:",";}}"],l=>l.theme.color_btn_secondary_hover,l=>l.theme.color_btn_secondary_hover,l=>l.theme.color_bg_border_02,l=>l.theme.color_bg_white,l=>l.theme.color_text_L1,l=>l.theme.color_text_L1,l=>l.theme.color_btn_secondary_hover);var p=e(72214);const s=l=>{const{canOpenModal:_=!0}=l,b=(0,c.d4)(u.jj),{isOpen:a,type:M}=(0,c.d4)(I.FK),x=(0,c.d4)(d.p$),{isEditingCombo:g}=(0,c.d4)(C.r),S=(0,c.wA)();if(!b)return null;const t=w=>{if(!(g||!_))if(w.stopPropagation(),a)S({type:"modal:reset:popup:state",payload:{modalName:"libPanelModal"}});else{const{left:k,top:W,height:K,right:G}=w.target.getBoundingClientRect(),$={left:k>=260?Math.max(k-260>>0,0):G+20,top:Math.max(W+K/2-340>>0,56)};S({type:"modal:update:state",payload:{libPanelModal:{isOpen:!0,type:"text",position:$}}})}},v=()=>{if(!(b!=null&&b.key))return;const w=sdkStore.getHotItem(b==null?void 0:b.key);S({type:"entry:libStyle:del:widget:refStyles",payload:{type:"text",selections:x,refStyle:w}}),S({type:"settings:update:currentTextRefStyle",payload:null})};return(0,p.jsxs)(f,{className:r()("open-lib-icon",{"is-active":a&&M==="text"}),children:[(0,p.jsxs)("div",{className:"content",onClick:t,children:[(0,p.jsx)(h.c,{textStyle:b}),(0,p.jsx)("span",{children:b==null?void 0:b.hotAttr.name})]}),(0,p.jsx)(o.C,{name:"setting_panel/general/clear_sl_ref",className:"clear_style_ref",size:24,onClick:v})]})}},60121:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>C});var n=e(38502),r=e(55914),c=e(87612),o=e(72214);function I(h){return class extends n.Component{constructor(f){super(f),this.state={hasError:!1}}static getDerivaedStateFromError(){return{hasError:!0}}componentDidCatch(f,p){console.error(f,p),(0,c.p)("[fatal]: ErrorBoundary",f,p,this.props)}render(){return this.state.hasError?null:(0,o.jsx)(h,{...this.props})}}}const u=I;function d(h){const{value:i,highlightKeyword:f}=h,p=(0,n.useMemo)(()=>{if(!i||!f||typeof i!="string"||typeof f!="string")return null;const s=new RegExp((0,r.$)(f),"ig");return s.test(i)?i.replaceAll(s,'<span class="highlight-keyword">'+f+"</span>"):null},[i,f]);return p?(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:p}}):(0,o.jsx)(n.Fragment,{children:i})}const C=u((0,n.memo)(d))},60407:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>u});var n=e(95549),r=e(38502),c=e(67787);const o=c.Ay.div.withConfig({displayName:"styles__StyledLoadingStyles",componentId:"sc-1pby6la-0"})(["display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(auto-fill,","px);padding-left:12px;.header-loading{height:8px;border-radius:8px;margin-bottom:16px;}.template-box{.template-cover{border-radius:8px;}.template-info{height:8px;border-radius:8px;width:60%;margin:8px auto 0;}}@keyframes skeleton-loading{0%{background-position:100% 50%;}to{background-position:0 50%;}}.skeleton-loading{background:",";background-size:400% 100%;animation:skeleton-loading 1.4s ease infinite;}"],d=>d.width,d=>d.theme.loading_styles_bg);var I=e(72214);class u extends r.PureComponent{constructor(C){super(C),(0,n.A)(this,"setComponentRef",h=>this.box=h),(0,n.A)(this,"arrayWithNumber",h=>[...Array(h).keys()]),this.state={count:20}}componentDidMount(){const{itemWidth:C,itemHeight:h}=this.props,i=this.box.getBoundingClientRect().height,f=this.box.getBoundingClientRect().width,p=i/(h+10+24)*(f/(C+8));this.setState({count:Math.ceil(p)})}render(){const{itemWidth:C,itemHeight:h}=this.props,{count:i}=this.state,f=this.arrayWithNumber(i);return(0,I.jsx)(o,{className:"template-list template-list-loading-container",ref:this.setComponentRef,width:C,children:f.map(p=>(0,I.jsxs)("div",{className:"template-box",children:[(0,I.jsx)("div",{className:"template-cover skeleton-loading",style:{width:C,height:h}}),(0,I.jsx)("div",{className:"template-info skeleton-loading"})]},p))})}}},61675:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>p});var n=e(95549),r=e(38502),c=e(46606),o=e(53732),I=e.n(o),u=e(50521),d=e(62118),C=e(83199),h=e(56202),i=e(17307),f=e(72214);class p extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleChange",l=>_=>{l||this.props.disabled||this.props.handleChange(_)}),(0,n.A)(this,"handleGetContent",(l,_)=>{const b=d.lk[_+"_mac"],a=d.lk[_+"_win"];return(0,C.u)({text:l,key:(0,h.cX)()?b:a})}),(0,n.A)(this,"handleRenderIcon",l=>(0,f.jsx)(i.C,{name:l})),(0,n.A)(this,"handleGetTipsClassName",l=>I()("arrangeTips",(0,h.cX)()?"mac":"windows",l))}render(){const{options:l,value:_,disabled:b,className:a,isToolTip:M}=this.props;return(0,f.jsx)(c.N,{className:I()("radio-line",a,{disabled:b}),children:M?l.map(x=>{let{title:g,keyName:S,icon:t,value:v,disabled:w}=x;return(0,f.jsx)(u.Q,{icon:this.handleRenderIcon(t),content:this.handleGetContent(g,S),tipsClassName:this.handleGetTipsClassName(S),dataValue:v,onClick:this.handleChange(w),disabled:w,className:I()("radio-option","check-line",{active:!w&&Array.isArray(_)?_.includes(v):_===v},{disabled:w})},v)}):l.map(x=>{let{label:g,value:S,disabled:t}=x;return(0,f.jsx)("li",{className:I()("radio-option","check-line",{active:!t&&Array.isArray(_)?_.includes(S):_===S},{disabled:t}),"data-value":S,onClick:this.handleChange(t),children:g},S)})})}}(0,n.A)(p,"defaultProps",{disabledRadioLine:[]})},61899:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>S});var n=e(38502),r=e(69623),c=e(4650),o=e(93446),I=e(5649),u=e(92114),d=e(25234),C=e(39117),h=e(28537),i=e(79150),f=e(58656),p=e(46953),s=e(9680),l=e(78401),_=e(72214);const b=t=>{const{name:v,varData:w,varDataType:k}=t.hotAttr;return{key:t.key,name:v,varData:w,varDataType:k}},a=1e4,M=200,x=[".var-list .var-item",".var-editor",".ModalPortal:has(>.TransitionModalMask)"],S=t=>{let{editorItem:v,position:w,needConfirm:k,onClose:W,onDelete:K,onChange:G,onConfirm:$,onClickOutside:P,autoFocus:E,style:H}=t;const O=(0,n.useRef)(null),[V,Q]=(0,n.useState)(b(v)),[N,L]=(0,n.useState)(w),[U,A]=(0,n.useState)(!1),D=(0,n.useRef)(!1),B=(0,n.useRef)(),j=(0,n.useRef)(!1),F=E==="varName",Y=E==="varData",X=!sdkStore.getHotItem(v.key),{name:z,varData:Z,varDataType:J}=V,te=ve=>{var je;return(je=O.current)==null||(je=je.$body)==null?void 0:je.querySelector(ve)},ge=(ve,je)=>{L({left:ve,top:je})},pe=function(ve){var je;return ve===void 0&&(ve=v.key),((je=sdkStore.getHotItem(ve))==null?void 0:je.hotAttr.name)||v.hotAttr.name},Ce=ve=>{ve.length>M&&(ve=ve.slice(0,M),MB.notice({text:I18N.Variable.editor.invalid_overflow.replace("{n}",M),type:"warning"})),Q({...V,name:ve}),k&&A(!ve||!(0,p.FF)(ve))},me=ve=>{ve.target.setSelectionRange(0,ve.target.value.length)},be=()=>{if(D.current=!1,j.current)return;let{name:ve}=V,je;if(ve?(0,p.FF)(ve)?(0,s.pU)().some(Ae=>Ae.key!==v.key&&Ae.hotAttr.name===ve)&&(je=I18N.Variable.editor.invalid_repeat):je=/\d/.test(ve[0])?I18N.Variable.editor.invalid_start:I18N.Variable.editor.invalid_content:je=I18N.Variable.editor.invalid_empty,je)return MB.notice({text:je,type:"warning"}),ve=pe(),Q({...V,name:ve}),k&&A(!1),!1;const We={...V,name:ve,varData:Z};return G==null||G(v.key,We),We},ie=ve=>{j.current||G==null||G(v.key,{name:z,varData:ve})},oe=ve=>{ve.key==="Enter"&&!D.current&&ve.target&&be()&&ve.target.blur()},he=ve=>{Q({...V,varData:ve})},ce=ve=>{var je;if(k){W();return}const We=be();if(!We){W(),ve.preventDefault();return}const Ae={name:We.name,varData:We.varData};J===C.I.number&&(je=B.current)!=null&&je.$input&&(Ae.varData=Se(Number(B.current.$input.value))),G==null||G(We.key,Ae),W()},re=ve=>{ve.preventDefault(),K==null||K()},fe=function(ve){if(ve===void 0){var je;ve=(je=B.current)==null||(je=je.$input)==null?void 0:je.value}let We=!0;J==="number"&&(We=String(ve).length>0&&!Number.isNaN(Number(ve))&&!(String(ve).length>12||Math.abs(ve)>=1e12)),k&&A(!We)},Se=ve=>{var je;if(String(ve).length>12||Math.abs(ve)>=1e12){var We,Ae;MB.notice({text:I18N.Variable.editor.invalid_number,type:"warning"}),ve=(We=(Ae=(0,s.hZ)(v.key))==null?void 0:Ae.varData)!=null?We:0}else if(Number.isNaN(Number(ve))){var we,_e;ve=(we=(_e=(0,s.hZ)(v.key))==null?void 0:_e.varData)!=null?we:0}return(je=B.current)==null||je.setState({value:ve}),he(ve),ve},Me=ve=>{const je=Se(Number(ve.target.value));ie(je),fe(je)},Ie=ve=>{let je=ve.target.value;return je.length>a&&(MB.notice({text:I18N.Variable.editor.invalid_length.replace("{n}",a),type:"warning"}),je=ve.target.value=je.slice(0,a)),he(je),je},de=ve=>{const je=Ie(ve);ie(je)},xe=ve=>{he(ve),ie(ve)},Le=ve=>{const je=be();je&&($==null||$(je.key,je),W())};return(0,n.useEffect)(()=>{L({left:w.left,top:w.top})},[w]),(0,n.useEffect)(()=>{const ve=b(v);Q(ve),Y&&setTimeout(()=>{const je=".var-data-item "+(ve.varDataType===C.I.string?"textarea":"input");(0,l.T5)(te(je))},10)},[v]),(0,n.useEffect)(()=>{const ve=je=>{var We;x.some(Ae=>je.target.closest(Ae))||P&&!P(je)||((We=je.target)!=null&&We.closest("#canvas .tree-node:not(.rResCanvas)")||je.stopPropagation(),ce(je))};return document.addEventListener("mousedown",ve,!0),()=>{document.removeEventListener("mousedown",ve,!0)}},[ce,P]),(0,h.wo)(O,"$body"),(0,r.createPortal)((0,_.jsx)(o.A,{position:N,onMove:ge,ref:O,children:(0,_.jsxs)(f.aB,{className:"var-editor",id:"var-editor",style:H,onMouseDown:ve=>ve.stopPropagation(),children:[(0,_.jsxs)("header",{type:"draggable",className:"header",children:[(0,_.jsx)("div",{className:"left",children:X?I18N.Variable.create:I18N.Variable.editor.edit}),(0,_.jsxs)("div",{className:"right",children:[!X&&(0,_.jsx)(i.A,{size:24,name:"interaction/trash",className:"del-icon",onClick:re,onMouseEnter:()=>{j.current=!0},onMouseLeave:()=>{j.current=!1}}),(0,_.jsx)(i.A,{name:"common/close",className:"close-icon",onClick:ce})]})]}),(0,_.jsxs)("div",{className:"content",children:[(0,_.jsxs)("div",{className:"var-item var-name-item",children:[(0,_.jsx)("div",{className:"var-label",children:I18N.Variable.editor.label}),(0,_.jsx)(c.A,{type:"text",className:"name-input",value:z,isAutoFocus:F,onChange:Ce,onKeyDown:oe,onCompositionStart:()=>D.current=!0,onCompositionEnd:()=>D.current=!1,onBlur:be,onFocus:me})]}),(0,_.jsxs)("div",{className:"var-item var-data-item "+J,children:[(0,_.jsx)("div",{className:"var-label",children:I18N.Variable.editor.value}),J===C.I.string&&(0,_.jsx)("textarea",{className:"string-value",value:Z,onChange:Ie,onFocus:me,onBlur:de}),J===C.I.number&&(0,_.jsx)(I.A,{ref:B,className:"number-value",value:Z,onConfirm:Se,onAfterChangeValue:fe,min:-1/0,max:1/0,precision:5,onBlur:Me}),J===C.I.boolean&&(0,_.jsxs)("div",{className:"boolean-value",children:[(0,_.jsx)(u.A,{isIOS:!0,isChecked:Z,onChange:xe}),(0,_.jsx)("span",{children:String(Z)})]})]})]}),k&&(0,_.jsx)("footer",{className:"footer",children:(0,_.jsx)(d.Oc,{type:"primary",size:"tiny",corner:"smooth",onClick:Le,disabled:U,children:I18N.Common.confirm2})})]})}),document.body)}},61924:(He,ee,e)=>{"use strict";e.d(ee,{Cl:()=>M,Em:()=>S,_C:()=>x,wM:()=>t,zi:()=>w});var n=e(38502),r=e(12211),c=e(37780),o=e(40486),I=e(10472),u=e(60651),d=e(4235),C=e(18381),h=e(67934),i=e(81973),f=e(70422),p=e(20089),s=e(12410),l=e(19969),_=e(13923),b=e(70248);const a=(0,r.Mz)([d.nE,I.r,h.vy,i.w_,i.Yg,f.zX,i._S,u.jI],(k,W,K,G,$,P,E,H)=>{let{isEditingCombo:O}=W;return{selectedItems:k,isEditingCombo:O,activeLinkCid:K,selectOptionNode:G,selectCarouselImage:$,selectTableCellInfo:P,currentPath:E,editingPanelCid:H}}),M=k=>{var W;let{from:K}=k;const{activeLinkCid:G,isEditingCombo:$,selectCarouselImage:P,selectedItems:E,selectOptionNode:H,selectTableCellInfo:O,currentPath:V,editingPanelCid:Q}=(0,C.d4)(a),N=(0,C.d4)(i.ue),{hasSubKey:L,selectSubItaType:U}=(0,n.useMemo)(()=>(0,o.LE)({activeLinkCid:G,selectOptionNode:H,selectCarouselImage:P,items:E,selectTableCellInfo:O,uiFrom:K}),[G,K,E,P,H,O]),A=$?"combo":"non-combo",D=(0,C.d4)(c.R7.query.getSelectInteractionKeyList),B=(0,C.d4)(c.R7.query.getSelectItaInfo),j=D[0],{editingInteraction2:F,interactionTree:Y,isTriggerItemInCanvs:X,itemKey:z,selectTreeNode:Z,interactionStore:J,selectTreeNode2:te}=(0,n.useMemo)(()=>{let pe,Ce,me="",be,ie,oe,he;const ce=E[0];if(E.length===1){const{key:re}=ce,fe=Q?(0,b.j_)([Q,re]):re;me=fe,be=sdkStore.locUpHotCanvasKey(re);const Se=(0,o.gB)(ce,{activeLinkCid:G,selectOptionNode:H,selectCarouselImage:P,selectSubItaType:U,currentPath:V,keyToAccessIntAct:fe});Se.length===0?B.type==="action"||B.type==="trigger"?(he=(0,_.E)({widget:ce,selectSubItaType:U,buildTreeRes:(0,o.D8)({actionDummyKey:j}),type:"noData"}),pe=he._interactionTree,oe=he.query.getNode(j)):(K==="treePanelFloat"?he=(0,_.E)({widget:ce,selectSubItaType:U,buildTreeRes:(0,o.D8)({actionDummyKey:(0,o.m1)("tap")}),type:"defaultData"}):he=(0,_.E)({widget:ce,selectSubItaType:U,buildTreeRes:(0,o.ky)(),type:"defaultData"}),pe=he._interactionTree,oe=he.query.getNode((0,o.m1)("tap"))):(he=(0,_.E)({widget:ce,selectSubItaType:U,buildTreeRes:(0,o.tu)({sdk:sdkStore,interactions:Se,itemKey:fe,vMode:A,selectInteractionKey:j}),type:"hasData"}),pe=he._interactionTree,B.type==="normal"&&(Ce=he.query.getInteractionByKey(j)),ie=(0,o.zS)(j,pe),oe=(0,o.zS)(j,pe))}return{interactionTree:pe,editingInteraction2:Ce,itemKey:me,isTriggerItemInCanvs:be,selectTreeNode:ie,interactionStore:he,selectTreeNode2:oe}},[G,P,j,H,U,E,A,V,B,K,Q,N]),ge=g((W=E[0])==null?void 0:W.key);return{editingInteraction2:F,itemKey:z,currentCanvas:ge,selectInteractionKey:j,interactionTree:Y,selectTreeNode:Z,isTriggerItemInCanvs:X,hasSubKey:L,selectSubItaType:U,currentPath:V,selectCarouselImage:P,selectItaInfo:B,interactionStore:J,selectTreeNode2:te}},x=k=>{let{from:W}=k;const K=(0,C.d4)(d.nE),G=(0,C.d4)(l.wN),{isEditingCombo:$}=(0,C.d4)(I.r),P=(0,C.d4)(u.bt),{editingInteraction2:E,itemKey:H,currentCanvas:O,selectInteractionKey:V,interactionTree:Q,isTriggerItemInCanvs:N,hasSubKey:L,selectItaInfo:U,selectSubItaType:A,selectTreeNode:D,currentPath:B,selectCarouselImage:j,interactionStore:F,selectTreeNode2:Y}=M({from:W}),X=(0,C.d4)(s.X.query.getIsShallowEditing);let z="none";if(!$){var Z;K.length>1?z="isMultiSelectItem":((Z=K[0])==null?void 0:Z.hotAttr.type)===p.x.WCode?z="isWCode":N||(z="notInCanvas"),X&&(z="isEditingSwimlane")}return{interactionTree:Q,editingInteraction2:E,itemKey:H,currentCanvas:O,selectedItems:K,isGlobalLink:G,isEditingCombo:$,editingPanelRefPage:P,selectInteractionKey:V,isTriggerItemInCanvs:N,hasSubKey:L,selectItaInfo:U,selectTreeNode:D,selectTreeNode2:Y,currentPath:B,selectCarouselImage:j,disableType:z,selectSubItaType:A,interactionStore:F}},g=k=>{const W=(0,C.d4)(u.jI);return(0,n.useMemo)(()=>{const G=sdkStore.locUpColdCanvasKey(W||k||"");return G?sdkStore.getHotItem(G):void 0},[W,k])},S=k=>{const[W,K]=(0,n.useState)(void 0),G=(0,n.useCallback)($=>{k.isOpenContextMenu||K($)},[k.isOpenContextMenu]);return{hovered:W,handleHover:G}},t=(0,n.createContext)(null),v=new Map,w=k=>{let{cacheKey:W,interactionTree:K}=k;const G=(0,n.useRef)(K?{...K}:void 0),[$,P]=(0,n.useState)([]),E=(0,n.useCallback)((H,O)=>{let V=[...$];O==="del"?V=V.filter(Q=>Q!==H):V.push(H),P(V),v.set(W,V)},[P,$,W]);return(0,n.useLayoutEffect)(()=>{const H=v.get(W);P(H||[])},[]),(0,n.useLayoutEffect)(()=>{var H;let O=[...v.get(W)||[]];const V=[...((H=G.current)==null?void 0:H.sub)||[]],Q=[...(K==null?void 0:K.sub)||[]];if(!Q.length||!O.length||!V.length){G.current=K;return}let N=!1;for(const L of Q){const U=V.find(A=>A.attr.trigger===L.attr.trigger);U&&$.includes(U.attr.key)&&L.sub.length!==U.sub.length&&(O=O.filter(A=>A!==L.attr.key),N=!0)}N&&(P(O),v.set(W,O)),G.current=K},[K,$,W]),{collapseList:$,handleCollapse:E}}},62118:(He,ee,e)=>{"use strict";e.d(ee,{Qc:()=>d,lk:()=>I});var n=e(27660),r=e(83199),c=e(78661),o=e(20089);const I={cut_mac:"<kbd>\u2318</kbd><kbd>X</kbd>",cut_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>X</kbd>",save_mac:"<kbd>\u2318</kbd><kbd>S</kbd>",save_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>S</kbd>",undo_mac:"<kbd>\u2318</kbd><kbd>Z</kbd>",undo_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>Z</kbd>",redo_mac:"<kbd>\u21E7</kbd><kbd>\u2318</kbd><kbd>Z</kbd>",redo_win:"<kbd>Shift</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>Z</kbd>",duplicate_mac:"<kbd>\u2318</kbd><kbd>C</kbd>",duplicate_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>C</kbd>",paste_mac:"<kbd>\u2318</kbd><kbd>V</kbd>",paste_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>V</kbd>",trash_mac:"<kbd>Del/Backspace</kbd>",trash_win:"<kbd>Del/Backspace</kbd>",play_toolbar_mac:"<kbd>\u2318</kbd><kbd>P</kbd>",play_toolbar_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>P</kbd>",align_left_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>L</kbd>",align_left_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>L</kbd>",align_center_v_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>C</kbd>",align_center_v_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>C</kbd>",align_right_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>R</kbd>",align_right_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>R</kbd>",align_top_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>T</kbd>",align_top_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>T</kbd>",align_center_h_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>M</kbd>",align_center_h_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>M</kbd>",align_bottom_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>B</kbd>",align_bottom_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>B</kbd>",dist_evenly_h_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>H</kbd>",dist_evenly_h_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>H</kbd>",dist_evenly_v_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>U</kbd>",dist_evenly_v_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>U</kbd>",z_front_mac:"<kbd>\u21E7</kbd><kbd>\u2318</kbd><kbd>\u2191</kbd>",z_front_win:"<kbd>Shift</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>\u2191</kbd>",z_back_mac:"<kbd>\u21E7</kbd><kbd>\u2318</kbd><kbd>\u2193</kbd>",z_back_win:"<kbd>Shift</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>\u2193</kbd>",z_forward_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>\u2191</kbd>",z_forward_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>\u2191</kbd>",z_backward_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>\u2193</kbd>",z_backward_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>\u2193</kbd>",group_mac:"<kbd>\u2318</kbd><kbd>G</kbd>",group_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>G</kbd>",ungroup_mac:"<kbd>\u21E7</kbd><kbd>\u2318</kbd><kbd>G</kbd>",ungroup_win:"<kbd>Shift</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>G</kbd>",text_bold_mac:"<kbd>\u2318</kbd><kbd>B</kbd>",text_bold_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>B</kbd>",text_italic_mac:"<kbd>\u2318</kbd><kbd>I</kbd>",text_italic_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>I</kbd>",text_underline_mac:"<kbd>\u2318</kbd><kbd>U</kbd>",text_underline_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>U</kbd>",text_lineThrough_mac:"<kbd>\u21E7</kbd><kbd>\u2318</kbd><kbd>S</kbd>",text_lineThrough_win:"<kbd>Shift</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>S</kbd>",catalogue_mac:"<kbd>\u2325</kbd><kbd>1</kbd>",catalogue_win:"<kbd>Alt</kbd><kbd>1</kbd>",layer_mac:"<kbd>\u2325</kbd><kbd>2</kbd>",layer_win:"<kbd>Alt</kbd><kbd>2</kbd>",basket_mac:"<kbd>\u2325</kbd><kbd>3</kbd>",basket_win:"<kbd>Alt</kbd><kbd>3</kbd>"},u=(0,n.R)(()=>({[o.x.Canvas]:{left:I18N.BasicWidgetsNav.add_artboard,right:["A"]},[o.x.WRichText]:{left:I18N.BasicWidgetsNav.text,right:["T"]},[o.x.WRect]:{left:I18N.BasicWidgetsNav.rounded_rect,right:["R"]},[o.x.WOval]:{left:I18N.BasicWidgetsNav.circle,right:["O"]},[o.x.WLine]:{left:I18N.w.wLine,right:["L"]},[o.x.WLR]:{left:I18N.BasicWidgetsNav.lr,right:["H"]},[o.x.WImage]:{left:I18N.BasicWidgetsNav.image_view,right:null},[o.x.WSticky]:{left:I18N.w.sticky,right:["N"]},[o.x.WElbow]:{left:I18N.BasicWidgetsNav.wired,right:["E"]},[o.x.WTear]:{left:I18N.w.annotate,right:["W"]},[o.x.WVector]:{left:I18N.BasicWidgetsNav.wVector,right:["P"]},preview:{left:I18N.ToolBar.preview,right:c.V.preview},comment:{left:I18N.pPreviewToolbar.comment,right:["C"]},handMode:{left:I18N.BasicWidgetsNav.hand_tool,right:null},AI:{left:I18N.ChatGPT.mockitt_ai,right:null},pencil:{left:I18N.BasicWidgetsNav.pencil,right:c.V.pencil}})),d=C=>{const h=u(),{left:i,right:f}=h[C]||{},p=f&&f.map(s=>"<kbd>"+s+"</kbd>").join("");return(0,r.u)({text:i,key:p})}},62150:(He,ee,e)=>{"use strict";e.d(ee,{W:()=>d});var n=e(67787),r=e(17307),c=e(46464),o=e(69246),I=e(76613),u=e(72214);const d=h=>{let{renderItem:i,targetKey:f}=h;return f===I.rE?(0,u.jsx)(C,{children:(0,u.jsx)(r.C,{size:20,name:"setting_panel/event/current_widget"})}):f===I.VZ?(0,u.jsx)(C,{children:(0,u.jsx)(r.C,{size:20,name:"left_panel/master/new"})}):i?(0,u.jsx)(C,{children:i.hotAttr.bunch==="rbPage"?(0,u.jsx)(o.k,{icon:i.hotAttr.icon,isExpand:!0,theme:"dark"}):(0,u.jsx)(c.A,{widget:i,isDynamic:(i==null?void 0:i.hotAttr.basket)==="bDanli"})}):null},C=n.Ay.div.withConfig({displayName:"RenderIcon__StyledRenderIcon",componentId:"sc-l7b8tv-0"})(["display:flex;svg{width:20px;height:20px;}.svg-icon-path-icon{transform:scale(0.7);}.group-icon path{fill:transparent;}path{fill:currentColor;}"])},62448:(He,ee,e)=>{"use strict";e.d(ee,{Z:()=>Me});var n=e(51326);const r=function(de,xe,Le){return xe===void 0&&(xe=null),Le===void 0&&(Le=null),{value:de,prev:xe,next:Le}},c=()=>{let de,xe,Le;const ve=()=>{de=r(null),xe=r(null,de),de.next=xe,Le=0};ve();const je=(we,_e)=>{const{next:Te}=_e;we.prev=_e,we.next=Te,_e.next=Te.prev=we,Le++},We=(we,_e)=>{const{prev:Te}=_e;we.prev=Te,we.next=_e,_e.prev=Te.next=we,Le++},Ae=we=>{const{prev:_e,next:Te}=we;_e.next=Te,Te.prev=_e,we.prev=we.next=null,Le--};return{clear:ve,getHead:()=>de,getTail:()=>xe,getLength:()=>Le,insertAfter:je,insertBefore:We,remove:Ae,removeBetween:(we,_e)=>{const{prev:Te}=we,{next:Ye}=_e;Te.next=Ye,Ye.prev=Te,we.prev=_e.next=null;let Fe=we;for(;Fe;)Le--,Fe=Fe.next},forEach:we=>{let _e=de.next,Te=0;for(;_e!==xe;)we(_e,Te),_e=_e.next,Te++},forEachReverse:we=>{let _e=xe.prev,Te=Le-1;for(;_e!==de;)we(_e,Te),_e=_e.prev,Te--},reverse:()=>{let we=de.next;for(;we!==xe;){const{prev:Ye,next:Fe}=we;we.prev=Fe,we.next=Ye,we=Fe}const{next:_e}=de,{prev:Te}=xe;de.next=Te,xe.prev=_e,Te.prev=de,_e.next=xe},moveToFirst:we=>{if(we===de.next)return;const{prev:_e,next:Te}=we;_e.next=Te,Te.prev=_e,we.prev=de,we.next=de.next,we.next.prev=de.next=we},moveToLast:we=>{if(we===xe.prev)return;const{prev:_e,next:Te}=we;_e.next=Te,Te.prev=_e,we.next=xe,we.prev=xe.prev,we.prev.next=xe.prev=we},push:we=>We(we,xe),pop:()=>Ae(xe.prev),unshift:we=>je(we,de),shift:()=>Ae(de.next)}},o=(de,xe,Le,ve)=>({...r(xe),key:de,size:Le,expireAt:ve}),I=de=>{let{valueSizeSumMax:xe,valueSizeSingleMax:Le=Math.max(.05*xe,1),expireAfter:ve=6e4,eventHub:je=(0,n.wz)()}=de;const We=!!je,{clear:Ae,subscribe:we,unsubscribe:_e,send:Te}=We?je:{},Ye=new Map,Fe=c();let Ve=0;const rt=et=>{Ye.set(et.key,et),Fe.unshift(et),Ve+=et.size,We&&Te({type:"add",key:et.key,payload:et.value})},Ue=et=>{Ye.delete(et.key),Fe.remove(et),Ve-=et.size,We&&Te({type:"delete",key:et.key,payload:et.value})};return{hasEventHub:We,clearEventHub:Ae,subscribe:we,unsubscribe:_e,clear:()=>Ye.forEach(Ue),getSize:Fe.getLength,getValueSizeSum:()=>Ve,set:function(et,lt,Je,Xe){Je===void 0&&(Je=1),Xe===void 0&&(Xe=Date.now()+ve);const st=Ye.get(et);if(st&&Ue(st),!(Je>Le)){for(;Je+Ve>xe;)Ue(Fe.getTail().prev);rt(o(et,lt,Je,Xe))}},get:function(et,lt){lt===void 0&&(lt=Date.now());const Je=Ye.get(et);if(Je)return Je.expireAt<=lt?Ue(Je):(Fe.moveToFirst(Je),Je.value)},touch:function(et,lt){lt===void 0&&(lt=Date.now()+ve);const Je=Ye.get(et);if(Je)return Je.expireAt=lt,Fe.moveToFirst(Je),Je.value},delete:et=>{const lt=Ye.get(et);return lt&&Ue(lt),lt&&lt.value},saveCacheList:()=>{const et=[];return Fe.forEachReverse(lt=>{const{key:Je,value:Xe,size:st,expireAt:nt}=lt;et.push({key:Je,value:Xe,size:st,expireAt:nt})}),et},loadCacheList:function(et,lt){return lt===void 0&&(lt=Date.now()),et.forEach(Je=>{let{key:Xe,value:st,size:nt,expireAt:tt}=Je;if(tt<=lt)return;const ct=Ye.get(Xe);ct&&ct.expireAt>=tt||(ct&&Ue(ct),rt(o(Xe,st,nt,tt)))})}}};var u=e(80730);const{fetch:d}=window,C=async de=>d(de,{method:"GET",cache:"force-cache",mode:"cors",credentials:"same-origin"}),h=I({valueSizeSumMax:512*1024*1024,valueSizeSingleMax:64*1024*1024,expireAfter:1/0,eventHub:null}),i=async de=>{let xe=h.get(de);return xe||(xe=await(await C(de)).text(),h.set(de,xe,xe.length)),xe},f=async de=>{let xe=h.get(de);return xe===void 0&&(xe=await(0,u.G6)(await(await C(de)).blob()),h.set(de,xe,xe.length)),xe},p=(de,xe)=>{if(s.exec(de))return de;const[Le]=s.exec(xe)||[""],ve=de[0]!=="/"?[...xe.split("/").slice(0,-1),...de.split("/")]:[Le.slice(0,-1),...de.split("/").slice(1)],je=[];return ve.forEach(We=>We===".."?je.pop():je.push(We)),je.join("/")},s=/((https?:)?\/\/)?[-\w@:%._+~#=]{2,256}\.[a-z]{2,63}(:\d{1,5})?\//,l=async(de,xe)=>{if(de.startsWith("data:"))return de;if(de.startsWith("blob:"))return f(de);xe&&(de=p(de,xe));const Le=_.exec(de);return Le&&b[Le[1].toLowerCase()]?f(de):""},_=/\.([0-9a-z]{3,5})(?:[?#]|$)/i,b={woff2:"font/woff2",woff:"font/woff",ttf:"font/ttf",otf:"font/otf",svg:"image/svg+xml",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",bmp:"image/bmp",ico:"image/x-icon"},a=async de=>{let{urlMap:xe={},fragList:Le=[]}=de;for(const ve of Object.values(xe)){const{urlString:je,originUrl:We,isIgnore:Ae}=ve;ve.dataUrl=Ae?je:await l(je,We)||""}for(let ve=0,je=Le.length;ve<je;ve++){const We=Le[ve];typeof We=="object"&&(Le[ve]=We.dataUrl)}return Le},M=de=>{let{extractorList:xe,initUrlMap:Le,trimComment:ve}=de;const je=[],We=Le||{},Ae={};let we=!1;return{getOutput:()=>(we=!0,{fragList:je,urlMap:We,fontFaceMap:Ae}),collect:function(Ye,Fe){if(Fe===void 0&&(Fe=""),we)throw new Error("doneOutput");if(Ye&&ve&&(Ye=ve(Ye)),!Ye)return;const Ve=Ue=>(We[Ue]===void 0&&(We[Ue]={urlString:Ue,originUrl:Fe,dataUrl:""}),We[Ue]);let rt=[Ye];for(const Ue of xe){const et=[];for(const lt of rt)Ue(et,lt,Ve);rt=et}if(je.push(...rt),P.test(Ye)){const Ue=lt=>{const[Je]=H(lt),Xe=[];if(Je&&F([],lt,nt=>{const tt=Ve(nt);return Xe.push(tt),tt}),!Xe.length)return;const st=Je+"|"+V(lt)+"|"+N(lt);Ae[st]===void 0?Ae[st]=new Set(Xe):x(Ae[st],Xe)};let et;for(;et=$.exec(Ye);){const[lt]=et;Ue(lt)}}}}},x=(de,xe)=>xe.forEach(de.add,de),g=(de,xe)=>{if(!de.global)throw new Error("[createUrlExtractor] global expected for regexpSearchBlock: "+de);if(xe.global)throw new Error("[createUrlExtractor] non-global expected for regexpExtractUrl: "+xe);return(Le,ve,je)=>{if(typeof ve=="object"){Le.push(ve);return}let We=0,Ae;for(;(Ae=de.exec(ve))!==null;){const we=Ae[0],_e=xe.exec(we),Te=_e&&_e[1];if(!Te||Te.startsWith("#"))continue;const Ye=Ae.index+_e.index+_e[0].indexOf(Te),Fe=ve.slice(We,Ye);Le.push(Fe),Le.push(je(Te)),We=Ye+Te.length}Le.push(ve.substr(We))}},S=/<!--([\s\S]*?)-->/g,t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,k=g(/<img [^>]*>/g,/src=['"]([^'"]*)['"]/),W=/style=['"].*url\([^)]*\).*['"]/g,K=/url\(['"]?([^)'"]*)['"]?\)/,G=g(W,K),$=/@font-face\s*{[^}]*font-family[^}]+}/g,P=/font(-family)?\s*:/,E=/font(-family)?\s*:\s*([^;}>]+)\s*[;}>]?/g,H=de=>{const xe=[];let Le;for(;Le=E.exec(de);){const[,ve,je]=Le;je&&je.split(",").forEach((We,Ae)=>{Ae===0&&!ve&&(We=We.trim(),We=We.split(/["']$/.test(We)?/["']/:" ").filter(Boolean).pop());const we=U(We);we&&xe.push(we)})}return xe},O=/font-style\s*:\s*(\w+)/,V=de=>(O.exec(de)||[])[1]||"normal",Q=/font-weight\s*:\s*(\w+)/,N=de=>{let xe=(Q.exec(de)||[])[1];return xe==="normal"?xe="400":xe==="bold"&&(xe="700"),xe||"400"},L=/^["'](.*)["']$/,U=function(de){return de===void 0&&(de=""),de.trim().replace(L,"$1")},A=()=>M({extractorList:[k,G],trimComment:de=>de.replace(S,"")}),D=/url\([^)]*\)/g,B=g(D,K),F=g(D,/(\/?(?:\.?\.\/)*\b[-\w@:%_+.~#?&/= ]+\.(?:woff2|woff|ttf|TTF|OTF|otf|WOFF2|WOFF|svg|eot)(?:[?#][-\w%._#=]{1,256})?)/),Y=()=>M({extractorList:[B,F],trimComment:de=>de.replace(t,"")});var X=e(1923),z=e(82305);const{document:Z}=window,J=de=>de.map(xe=>xe.replace(/<br>/g,"<br/>").replace(/&nbsp;/g," ").replace(oe,"")),te=de=>{const xe=new Set,Le=new Set,ve=We=>{for(const Ae of We)Ae.id&&xe.add(Ae.id),Ae.classList&&Ae.classList.length&&Ae.classList.forEach(we=>Le.add(we)),Ae.children.length&&ve(Ae.children)},je=Z.createElement("div");return je.innerHTML=de,ve(je.children),{isUseless:We=>{if(We.includes(":hover")||We.includes(":focus")||We.includes(":active")||We.includes(":selection"))return!0;const Ae=/^\w*\.([\w-_]+)(?:\.|\[|>|:| |$)/.exec(We);if(Ae&&!Le.has(Ae[1]))return!0;const we=/^\w*#([\w-_]+)(?:\.|\[|>|:| |$)/.exec(We);return!!(we&&!xe.has(we[1]))},isUselessCSSR:We=>{if(We==="DROP")return!0;if(We==="????")return!1;let Ae=We.length;for(const[we,_e]of We)!(we==="Class"?Le:xe).has(_e)&&Ae--;return Ae===0}}},ge=de=>{if(de instanceof CSSKeyframesRule)return"DROP";if(de instanceof CSSStyleRule){const xe=[],Le=(0,X.wE)(de.selectorText+"{}")[0];for(const ve of Le.props){if(ve.includes(":hover")||ve.includes(":focus")||ve.includes(":active")||ve.includes(":selection"))continue;const je=/^\w*\.([\w-_]+)(?:\.|\[|>|:| |$)/.exec(ve);if(je){xe.push(["Class",je[1]]);continue}const We=/^\w*#([\w-_]+)(?:\.|\[|>|:| |$)/.exec(ve);if(We){xe.push(["Id",We[1]]);continue}return"????"}return xe.length===0?"DROP":xe}return"????"},pe=de=>["<style>",he,...de,"</style>"],Ce=new WeakMap,me=(de,xe,Le)=>{let ve=Ce.get(xe);return ve===void 0&&(de=de.replace(/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,"").replace(/#iefix&/g,"").replace(oe,""),ve=(0,X.wE)(de),Ce.set(xe,ve)),(0,z.l)(ve,(je,We,Ae,we)=>{if(je.type==="@keyframes"||je.type==="@-webkit-keyframes")return"";if(je.type==="rule"){let _e=0;for(const Te of je.props)Le.isUseless(Te)&&_e++;if(_e===je.props.length)return""}return(0,z.A)(je,We,Ae,we)})},be=new WeakMap,ie=(de,xe)=>{let Le=be.get(de);return Le===void 0&&(Le=ge(de),be.set(de,Le)),xe.isUselessCSSR(Le)},oe=/[^\x09\x0A\x0D\x20-\xFF\x85\xA0-\uD7FF\uE000-\uFDCF\uFDE0-\uFFFD\u{10000}-\u{10FFFF}]/gmu,he="\ninput { -webkit-appearance: textfield; -moz-appearance: textfield; }\nselect { -webkit-appearance: menulist; -moz-appearance: menulist; }\n",ce=de=>{let{domStringList:xe,width:Le,height:ve}=de;return['<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="'+Le+'" height="'+ve+'"><switch>','<foreignObject width="'+Le+'" height="'+ve+'"><body xmlns="http://www.w3.org/1999/xhtml" style="font-size:16px">',...xe,"</body></foreignObject>",'<text font-size="24"><tspan x="'+Le/2+'" y="'+ve/2+'" text-anchor="middle">Feature not supported</tspan></text>',"</switch></svg>"]},re=de=>{let{imageSrc:xe,width:Le,height:ve}=de;return new Promise((je,We)=>{const Ae=Z.createElement("img");Ae.addEventListener("error",We),Ae.addEventListener("load",()=>je(Ae)),Ae.crossOrigin="anonymous",Ae.width=Le,Ae.height=ve,Ae.src=xe})},fe=de=>{let{imageElement:xe,width:Le,height:ve}=de;return new Promise(je=>{const We=Z.createElement("canvas");We.width=Le,We.height=ve,setTimeout(()=>{We.getContext("2d").drawImage(xe,0,0),je(We)},0)})},{document:Se}=window,Me=async de=>{let{element:xe,width:Le,height:ve,presetFontsSet:je}=de;if(!xe)throw new Error("invalid element: "+xe);if(Le=parseInt(Le||xe.style.width.endsWith("px")&&xe.style.width||xe.offsetWidth),ve=parseInt(ve||xe.style.height.endsWith("px")&&xe.style.height||xe.offsetHeight),!Le||!ve)throw new Error("can not get output size: width: "+Le+", height: "+ve);const We=[new window.XMLSerializer().serializeToString(xe)];return Ie({htmlSourceList:We,width:Le,height:ve,presetFontsSet:je})},Ie=async de=>{let{htmlSourceList:xe,width:Le,height:ve,presetFontsSet:je}=de;if(!Array.isArray(xe))throw new Error("invalid htmlSourceList: "+xe);if(!Le||!ve)throw new Error("invalid size: width: "+Le+", height: "+ve);const We=nt=>Object.entries(nt.fontFaceMap).forEach(tt=>{let[ct,ht]=tt;if(je&&!je.has(ct))return ht.forEach(Lt=>{Lt.isIgnore===void 0&&(Lt.isIgnore=!0)});let It=null,it=null;ht.forEach(Lt=>{It=It||(Lt.urlString.includes("woff2")?Lt:null),it=it||(Lt.urlString.includes("woff")?Lt:null)});let Tt=!1;ht.forEach(Lt=>{It&&Lt!==It||it&&Lt!==it?Lt.isIgnore=!0:(Lt.isIgnore=Tt,Tt=!0)})}),Ae="DOMS"+Date.now().toString(36).slice(-4);performance.mark(Ae+":start");const we=te(xe.join(""));performance.mark(Ae+":nameSetConf-done");const _e=[],Te=await Promise.all(Array.from(Se.getElementsByTagName("link")).filter(nt=>nt.rel==="stylesheet"&&nt.href).map(nt=>(async()=>[await i(nt.href),nt])()));performance.mark(Ae+":cssLinkPair-done");for(const[nt,tt]of Te){const ct=me(nt,tt,we);_e.push([ct,tt.href])}for(const nt of Array.from(Se.getElementsByTagName("style")))if(nt.innerHTML.length!==0){const tt=me(nt.innerHTML,nt,we);_e.push([tt,""])}else if(nt.sheet)for(let tt=0,ct=nt.sheet.cssRules.length;tt<ct;tt++){const ht=nt.sheet.cssRules[tt],It=ie(ht,we)?"":ht.cssText;_e.push([It,""])}performance.measure(Ae+":cssString-trim",Ae+":cssLinkPair-done");const Ye=Y();for(const[nt,tt]of _e)Ye.collect(nt,tt);const Fe=Ye.getOutput();We(Fe);const Ve=pe(await a(Fe));performance.measure(Ae+":cssString",Ae+":nameSetConf-done"),performance.mark(Ae+":cssString-done");const rt=A();xe.forEach(nt=>rt.collect(nt,""));const Ue=rt.getOutput();We(Ue);const et=J(await a(Ue));performance.measure(Ae+":htmlString",Ae+":cssString-done"),performance.mark(Ae+":htmlString-done");const Je=["data:image/svg+xml;charset=UTF-8,",...ce({domStringList:[...Ve,...et],width:Le,height:ve}).map(nt=>encodeURIComponent(nt))].join("");performance.measure(Ae+":imageSrc",Ae+":htmlString-done"),performance.mark(Ae+":imageSrc-done");const Xe=await re({imageSrc:Je,width:Le,height:ve});performance.measure(Ae+":imageElement",Ae+":imageSrc-done");const st=await fe({imageElement:Xe,width:Le,height:ve});return performance.measure(Ae,Ae+":start"),{fetchPngBlob:()=>new Promise((nt,tt)=>st.toBlob(ct=>ct?nt(ct):tt(new Error("missing pngBlob")))),cssStringList:Ve,htmlStringList:et,imageSrc:Je}}},62485:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>o});var n=e(78235);const r={linkToastShow:!1,activeEntityKey:"",alignmentToolbarShow:!1,isCreatingLink:!1,isStopAutoSave:!1},o=function(I,u){I===void 0&&(I=r);let{type:d,payload:C}=u;switch(d){case"draft:update:state":return(0,n.O1)(I,C);default:return I}}},62490:(He,ee,e)=>{"use strict";e.d(ee,{O:()=>r});var n=e(67787);const r=n.Ay.div.withConfig({displayName:"styles__StyledEditableSpan",componentId:"sc-1g9q1xw-0"})(["width:100%;height:24px;line-height:22px;overflow:hidden;border-top:1px solid transparent;border-bottom:1px solid transparent;white-space:nowrap;text-overflow:ellipsis;&.is-editing{width:100%;display:flex;align-items:stretch;border-bottom:1px solid ",";textarea{resize:none;border:none;outline:none;width:100%;height:100%;background:",";color:",";white-space:nowrap;overflow:hidden;overflow-x:auto;&::-webkit-scrollbar{display:none;}&::selection{background:color(#f55d54 a(0.2));}}}"],c=>c.theme.color_proto,c=>c.theme.color_bg_white,c=>c.theme.color_text_L1)},62537:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>o});var n=e(95549),r=e(38502),c=e(72214);class o extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"setInputRef",u=>this.$input=u),(0,n.A)(this,"click",()=>{this.$input.value="",this.$input.setAttribute("value",""),this.$input.click()}),(0,n.A)(this,"handleFileChange",u=>{this.props.onChange(u.target.files)})}render(){return(0,c.jsx)("input",{hidden:!0,multiple:!0,type:"file",accept:"image/gif, image/jpg, image/jpeg, image/png, image/svg+xml",ref:this.setInputRef,onChange:this.handleFileChange})}}},62987:(He,ee,e)=>{"use strict";e.d(ee,{X:()=>i});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),I=e(83199),u=e(67787),d=e(79150);const C=(0,u.Ay)(d.A).withConfig({displayName:"styles__StyledStarIcon",componentId:"sc-1f8wv2f-0"})(["&:not(.disabled):hover{background:",";}&:not(.isStarred){svg{path[fill]{fill:",";}}}"],f=>f.theme.color_navigation_active,f=>f.theme.color_text_L1);var h=e(72214);class i extends r.PureComponent{render(){const{onClick:p,className:s,isStar:l,isGrid:_}=this.props;return(0,h.jsx)(I.A,{content:l?I18N.Resources.stared:I18N.Resources.star,direction:"down",children:(0,h.jsx)(C,{name:_||l?"left_panel/category/starred":"left_panel/category/star",className:o()("star",{isStarred:l},s),onClick:p||(()=>{}),isColorPure:!0})})}}(0,n.A)(i,"defaultProps",{isStar:!1})},63072:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>s});var n=e(38502),r=Object.defineProperty,c=Object.defineProperties,o=Object.getOwnPropertyDescriptors,I=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,C=(l,_,b)=>_ in l?r(l,_,{enumerable:!0,configurable:!0,writable:!0,value:b}):l[_]=b,h=(l,_)=>{for(var b in _||(_={}))u.call(_,b)&&C(l,b,_[b]);if(I)for(var b of I(_))d.call(_,b)&&C(l,b,_[b]);return l},i=(l,_)=>c(l,o(_)),f=(l,_)=>{var b={};for(var a in l)u.call(l,a)&&_.indexOf(a)<0&&(b[a]=l[a]);if(l!=null&&I)for(var a of I(l))_.indexOf(a)<0&&d.call(l,a)&&(b[a]=l[a]);return b},s=(0,n.forwardRef)((l,_)=>{var b=l,{size:a,spin:M,style:x}=b,g=f(b,["size","spin","style"]);const S=h(h({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:M?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),x);return n.createElement("svg",i(h({ref:_,style:S},g),{width:"56",height:"56",viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),n.createElement("circle",{cx:"28",cy:"28",r:"28",fill:"#FF4040"}),n.createElement("path",{d:"M21.636 21.636L34.3639 34.364",stroke:"white",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M34.3639 21.636L21.636 34.364",stroke:"white",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"}))})},63126:(He,ee,e)=>{"use strict";e.d(ee,{AG:()=>c,dE:()=>r,mG:()=>o});var n=e(20089);const r=[n.x.WRichText,n.x.WRect,n.x.WOval,n.x.WPolygon,n.x.WStar,n.x.WTriangle,n.x.wFlowClosed,n.x.WFlowOpened,n.x.WVector,n.x.WMTextInput,n.x.WMSelect,n.x.WLine,n.x.WElbow,n.x.WArrow,n.x.WPlaceholder,n.x.WMTooltip,n.x.WButton],c=[n.x.WMTextInput,n.x.WDropMenu,n.x.WMSelect,n.x.WTabs,n.x.WMobileTabBars,n.x.WTree],o=["\u81EA\u52A8\u5BBD\u5EA6","\u56FA\u5B9A\u5C3A\u5BF8","\u81EA\u52A8\u9AD8\u5EA6"]},63143:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>l});var n=e(38502),r=e(67787),c=e(53732),o=e.n(c),I=e(87332),u=e(9680),d=e(92414),C=e(91137),h=e(72214);const i=[".var-selector.is-active",".var-dropmenu",".var-editor",".var-add-menubox"],f={distance:0,offsetX:-32},p=_=>{let{filterTypes:b,value:a,className:M,style:x,showName:g,menuWidth:S=220,menuProps:t=f,disabled:v,onChange:w,onClickoutside:k}=_;const W=(0,n.useRef)(null),K=(0,n.useRef)(null),G=a?(0,u.hZ)(a):null,$=G==null?void 0:G.isTrashed,P=(V,Q)=>{if(H(),!V)return w==null?void 0:w();sdkStore.getHotItem(V)&&(w==null||w(V,Q))},E=V=>{var Q;if((Q=V.target)!=null&&Q.closest(".var-context-menu")){var N;return(N=W.current)==null||N.setState({isMenuShow:!1}),!0}return V&&i.some(L=>{var U;return(U=V.target)==null?void 0:U.closest(L)})?!1:(k&&k(V)||V.stopPropagation(),!0)},H=()=>{var V;(V=W.current)!=null&&V.state.isMenuShow&&W.current.setState({isMenuShow:!1})},O=()=>{var V,Q;(V=W.current)==null||V.updateMenuPosition(),(Q=K.current)==null||Q.updateEditorPosition()};return(0,h.jsx)(s,{className:o()([M,"var-selector"]),style:x,ref:W,isDisabled:v,...t,onClickOutside:E,renderOpener:(0,h.jsx)(C.h,{varItem:G,isTrashed:$,showName:g}),renderMenu:(0,h.jsx)(d.A,{ref:K,style:{width:S},filterTypes:b,className:"var-dropmenu",value:a,needConfirm:!0,onChange:P,onSelect:H,onListChanged:O})})},s=(0,r.Ay)(I.A).withConfig({displayName:"VarSelector__StyledVarSelector",componentId:"sc-1kvlleq-0"})(["position:relative;height:28px;cursor:pointer;&.disabled{cursor:not-allowed;.var-selector-input{pointer-events:none;}}&.is-open .var-selector-input{border:1px solid ",";justify-content:space-between;.expand-icon{color:",";transform:rotate(180deg);}}"],_=>_.theme.color_bg_border_02,_=>_.theme.color_text_L1),l=p},63496:(He,ee,e)=>{"use strict";e.d(ee,{I_:()=>I,Sv:()=>C,YA:()=>u,qf:()=>d});var n=e(67787),r=e(86992),c=e(21066),o=e(51090);const I=(0,n.AH)(["display:flex;align-items:center;height:32px;padding:0 2px;border-radius:6px;color:",";cursor:pointer;position:relative;justify-content:space-between;.Tooltip{display:flex;align-items:center;justify-content:space-between;width:100%;height:100%;}&.folder-style{.content-wrap{flex:1;align-items:center;.folder-expand{flex:0 0 16px;height:16px;display:flex;align-items:center;justify-content:center;margin-left:6px;svg.expand{flex:0 0 8px;height:8px;color:",";}}.title,.editable-span{margin-left:12px;}}.create-icon{display:none;&:hover{background-color:",";}}}&.is-collapse{svg.expand{transform:rotate(-90deg);}}.appear-ref-view-item{margin:6px 12px 6px 6px;}.thumbnail-wrapper:not(.appear-ref-view-item):not(.has-opacity){width:16px;height:16px;border-radius:16px;margin:6px 11px 6px 5px;.thumbnail,&::before{border-radius:16px;}}.thumbnail-wrapper.has-opacity,.thumbnail-wrapper.appear-ref-view-item{margin:6px 11px 6px 5px;}.thumbnail-wrapper.appear-ref-view-item,.thumbnail-wrapper.appear-ref-view-item.has-opacity{border-radius:2px;}&:hover,&.is-active{background-color:",";.edit-icon,.create-icon{display:block;background-color:",";}}.content-wrap{display:flex;flex:1;",";.title{",";}.desc{color:",";margin-left:6px;}}.edit-icon{border-radius:4px;flex:0 0 24px;margin-left:6px;display:none;&:hover{background-color:",";}}.view-item{margin-right:6px;}"],h=>h.theme.color_text_L1,h=>h.theme.color_text_L3,h=>h.theme.color_bg_border_01,h=>h.theme.color_btn_secondary_hover,h=>h.theme.color_btn_secondary_hover,o.L9,o.L9,h=>h.theme.color_text_L3,h=>h.theme.color_bg_border_01),u=(0,n.Ay)(r.A).withConfig({displayName:"styles__StyledLocalStyleList",componentId:"sc-1maplao-0"})(["flex:1;ul.local-libs-content{margin:0 8px 8px;li{header{display:flex;align-items:center;height:32px;justify-content:space-between;padding:0 2px 0 8px;span{color:",";}.add-icon{display:none;}&:hover{.add-icon{display:block;}}}ul.lib-style-list{position:relative;li.style-list-item{.style-content{",";}}}}}.empty-content{background-color:",";width:216px;height:108px;padding:16px;border-radius:8px;display:flex;align-items:center;flex-direction:column;margin:8px 16px;.desc{color:",";text-align:center;}}"],h=>h.theme.color_text_L3,I,h=>h.theme.color_navigation_hover,h=>h.theme.color_text_L2),d=n.Ay.button.withConfig({displayName:"styles__StyledCreateButton",componentId:"sc-1maplao-1"})(["margin-top:12px;border-radius:6px;width:182px;height:28px;color:",";background-color:",";border:1px solid ",";font-weight:500;&:hover,&.active{background-color:",";border-color:",";}"],h=>h.theme.color_text_L1,h=>h.theme.color_bg_white,h=>h.theme.color_bg_border_02,h=>h.theme.color_bg_border_01,h=>h.theme.color_bg_border_02),C=(0,n.Ay)(c.Ay).withConfig({displayName:"styles__StyledMenuContent",componentId:"sc-1maplao-2"})(["z-index:201;ul{min-width:64px;}",";"],o.ZJ)},63619:(He,ee,e)=>{"use strict";e.d(ee,{x:()=>Ae});var n=e(38502),r=e(18381),c=e(12211),o=e(67052),I=e(78257),u=e(53732),d=e.n(u),C=e(74923),h=e(67773),i=e(30275),f=e(32847),p=e(79150),s=e(44817),l=e(72447),_=e(70933),b=e(54190),a=e(3862),M=e(93971),x=e(67787);const g=x.Ay.div.withConfig({displayName:"styles__StyledFilterGroupPanel",componentId:"sc-zr8rzd-0"})(["display:flex;flex:1 1 0;flex-direction:column;overflow:hidden;> header{display:flex;justify-content:space-between;padding:8px 12px 8px 4px;.back{display:flex;align-items:center;color:",";cursor:pointer;width:calc(100% - 76px);.arrow-left{margin-right:4px;flex:0 0 24px;.svg-icon{width:6px;height:10px;transform:rotate(-180deg);}}span{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.sign{margin-left:8px;}}.color-settings{width:68px;&.is-monochrome{width:90px;}}}.icon-list{display:grid;gap:7px 8px;padding:0px 12px;grid-template-columns:repeat(5,1fr);overflow-y:auto;& > li{border:none;border-radius:6px;transition:all 0.2s ease-out 0s;&:hover{background:",";}}}"],we=>we.theme.color_text_L1,we=>we.theme.color_btn_secondary_hover);var S=e(49903),t=e(18575),v=e(68789),w=e(28306),k=e(13642),W=e(88909),K=e(72214);const G=(0,c.Mz)([_.PL,o.QU,o.Ct,C.kU,C.xZ,C.O2,C.$d],(we,_e,Te,Ye,Fe,Ve,rt)=>({rootProject:we,iconDefaultColor:_e,iconDefaultSize:Te,hotIconList:Ye,hotColorIconList:Fe,findPanelTabIndex:Ve,iconSelectPopupTabIndex:rt}));function $(we){const{isFromIconSelectPopup:_e,currentIconGroup:Te,onBack:Ye,onSetCurrentNodeIcon:Fe}=we,{rootProject:Ve,iconDefaultColor:rt,iconDefaultSize:Ue,hotIconList:et,hotColorIconList:lt,findPanelTabIndex:Je,iconSelectPopupTabIndex:Xe}=(0,r.d4)(Rt=>G(Rt)),st=(0,r.wA)(),nt=_e?Xe===1:Je===1,ct=(_e?Xe===0?et:lt:Je===0?et:lt).find(Rt=>Rt.groupName===Te),{groupName:ht,label:It,icons:it}=ct;(0,n.useEffect)(()=>{if(ct){const Rt=(0,w.Oc)({source:"\u539F\u578B\u5185\u67E5\u770B\u5168\u90E8-\u56FE\u6807",list:it,igCid:ht,igName:It,policy:nt?v.W.MktMemberFree:v.W.Everyone});k.A.emit(W.jy,{observeMtItemObj:Rt}),k.A.emit(W.BD)}},[ht,it,nt,It,ct]),(0,n.useEffect)(()=>()=>{k.A.emit(W.P2,{shownMtItemCids:[]})},[]);const Tt=(Rt,Wt,Kt,Gt)=>{const St=Hn=>{let{itemCid:uo,groupCid:Po}=Hn;const Yn={projectUpperType:"icon_group",projectUpperCid:Po,itemCid:uo};(0,b.Cp)(Yn)};st({type:"entry:create:svg_icon_path:by:mousedown",payload:{event:Rt,icon:Wt,iconName:Kt,iconDisplayName:Gt,isMultiColorIcon:nt,callback:()=>{const Hn=Wt.id.split("-"),uo=Hn[0];St({itemCid:uo==="fa5"?Hn.slice(1,Hn.length-1).join("-"):uo===Wt.type&&uo!=="\u6570\u5B57"?Wt.id.slice(Wt.id.indexOf("-")+1):Wt.id,groupCid:Wt.groupCid}),Lt((Rt==null?void 0:Rt.type)==="mousedown"?M.k8.Drag:M.k8.DoubleClick,Kt,Wt.type,Wt.groupCid)}}})},Lt=(Rt,Wt,Kt,Gt)=>{const St=S.jS[Kt]||Kt,Hn=nt?I.lS.ColorIcon:I.lS.Icon,uo=nt?a.WY:a.C,Po=(nt?M.Jj[uo]+"-":"")+M.Ii.Find;(0,M.Mi)({popupsName:Hn,addType:Rt,source:Po,category:uo,templateGroupName:St,name:Wt,rootProject:Ve,templateGroupCid:Gt})};return(0,K.jsxs)(g,{children:[(0,K.jsxs)("header",{children:[(0,K.jsxs)("div",{className:"back",onClick:Ye,children:[(0,K.jsx)(p.A,{name:"design/arrow/right",className:"arrow-left"}),(0,K.jsx)("span",{children:It}),nt&&(0,K.jsx)(t.W,{resources:{policy:v.W.MktMemberFree}})]}),!_e&&(0,K.jsx)(l.N,{iconDefaultSize:Ue,iconDefaultColor:rt,isMultiColorIcon:nt})]}),(0,K.jsx)(s.l,{isMultiColorIcon:nt,onMouseDown:Tt,onDoubleClick:Tt,onSetCurrentNodeIcon:Fe,iconList:it})]})}var P=e(93413),E=e(11582),H=e(5288),O=e(60407),V=e(67588),Q=e(95549),N=e(17307),L=e(40410),U=e(53940);const A=x.Ay.div.withConfig({displayName:"styles__StyledNoAsset",componentId:"sc-1t4mf5s-0"})(["padding:6px 12px 8px;display:flex;align-items:center;justify-content:center;p{color:",";}"],we=>we.theme.color_text_L3),D=x.Ay.div.withConfig({displayName:"styles__StyledResourcesContainer",componentId:"sc-1t4mf5s-1"})(["overflow-x:hidden;overflow-y:auto;.template-list{display:flex;flex-flow:row wrap;padding:0 8px;width:inherit;.template-box{margin-bottom:10px;}}.load-more{text-align:center;}.scroll-to-top{display:flex;align-items:center;justify-content:center;position:absolute;right:12px;bottom:20px;width:28px;height:28px;border-radius:50%;background:#d8d8d8;box-shadow:0 4px 10px 0 rgba(65,80,88,0.11);cursor:pointer;svg{width:11px;height:12px;> *{fill:#fff;}}&:hover{background:#a4adb3;}}"]);class B extends n.PureComponent{constructor(_e){super(_e),(0,Q.A)(this,"handleCreateRed",Te=>this.templateContainer=Te),(0,Q.A)(this,"scrollToTop",()=>{this.templateContainer.current.scrollTo({top:0,behavior:"smooth"})}),(0,Q.A)(this,"handleScroll",()=>{const{scrollTop:Te,offsetHeight:Ye}=this.templateContainer.current;Te>Ye?this.setState({isShowScrollToTop:!0}):this.setState({isShowScrollToTop:!1})}),this.state={isShowScrollToTop:!1}}render(){const{marketTemplateList:_e,onStarTemplates:Te,onClickCard:Ye}=this.props,{isShowScrollToTop:Fe}=this.state;return(0,K.jsxs)(D,{style:{width:U.qv},ref:this.handleCreateRed,onScroll:this.handleScroll,children:[_e.length>0?(0,K.jsx)("div",{className:"template-list",children:_e.map(Ve=>(0,K.jsx)(L.A,{isStared:Ve.is_star,marketTemplate:Ve,onStarTemplates:Te,onClickCard:Ye},Ve.cid))}):(0,K.jsx)(j,{}),Fe&&(0,K.jsx)("div",{className:"scroll-to-top",onClick:this.scrollToTop,children:(0,K.jsx)(N.C,{name:"design/templates/to-top-btn"})})]})}}const j=()=>(0,K.jsx)(A,{children:(0,K.jsx)("p",{children:I18N.Resources.noIconResources})});var F=e(16335);const Y=(0,c.Mz)([V.rk,C.Bu,C.nn,_.W4],(we,_e,Te,Ye)=>{let{isExperience:Fe,isLoggedExperience:Ve}=Ye;const rt=Te.filter(Ue=>{let{cid:et}=Ue;return!we.has(et)});return{resources:_e,starMarketTemplates:rt,isExperience:Fe,isLoggedExperience:Ve}}),X=n.memo(function(_e){const{starMarketTemplates:Te,resources:Ye,isExperience:Fe,isLoggedExperience:Ve}=(0,r.d4)(Lt=>Y(Lt)),{onStarTemplates:rt,onClickCard:Ue}=_e,et=(0,r.wA)(),[lt,Je]=(0,n.useState)(!0),[Xe,st]=(0,n.useState)(new Set([H.q$,H.er])),[nt,tt]=(0,n.useState)(!1),ct=(0,n.useCallback)(async Lt=>{Je(!0);const{result:{market_templates:Rt}}=await(0,F.X)("&category="+a.C),Wt=Lt?await(0,F.Wu)(a.C):[],Kt=Rt.filter(Gt=>{let{is_star:St}=Gt;return!St});et({type:"icon-panel:update:state",payload:{resources:Rt,starResources:Wt,unStarResources:Kt}}),Je(!1)},[et]),ht=Lt=>{const{is_star:Rt}=Lt,Wt=Rt?H.er:H.q$,Kt=new Set(Xe);Kt.add(Wt),st(Kt),rt(Lt)},It=Lt=>{const Rt=new Set(Xe);Rt.has(Lt)?Rt.delete(Lt):Rt.add(Lt),st(Rt)};(0,n.useEffect)(()=>{let Lt=!1;Fe?Ve?Lt=!0:Lt=!1:Lt=!0,(async()=>(await ct(Lt),tt(!0)))()},[ct,Fe,Ve]);const it=Xe.has(H.q$),Tt=Xe.has(H.er);return(0,K.jsx)("div",{className:"allIcon",children:lt?(0,K.jsx)(O.A,{itemWidth:109,itemHeight:82}):(0,K.jsxs)(K.Fragment,{children:[nt&&(0,K.jsx)(E.A,{title:I18N.Resources.star,id:H.q$,className:"collapse-group-item",expanded:it,onToggle:It,children:(0,K.jsx)(B,{marketTemplateList:Te,onStarTemplates:ht,onClickCard:Ue})}),(0,K.jsx)(E.A,{title:I18N.Resources.square,id:H.er,className:"collapse-group-item",expanded:Tt,onToggle:It,children:(0,K.jsx)(B,{marketTemplateList:Ye,onStarTemplates:ht,onClickCard:Ue})})]})})});var z=e(39303),Z=e(94344);const J=x.Ay.div.withConfig({displayName:"StyledCustomizePanelBody",componentId:"sc-1ytl3bv-0"})(["flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative;.collapse-group-item > header{.arrow-icon{width:16px;}.title{font-size:14px;color:",";font-weight:500;}.panel-group-new .panel-floder{color:",";}}.panel-footer{margin-top:auto;}.nav-tooltip{position:absolute;right:-15px;top:2px;height:12px;display:flex;}.savePanelTabMenu{height:64px;min-height:64px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;background:",";.nav-item{width:70px;height:28px;border-radius:100px;border:1px solid ",";color:",";&:not(:last-child){margin-right:8px;}&.active{background:#298df8;color:#fff;border:1px solid transparent;}}}"],we=>we.theme.color_text_L1,we=>we.theme.color_text_L3,we=>we.theme.color_bg_white,we=>we.theme.color_btn_secondary_active,we=>we.theme.color_text_L1),te=(0,x.Ay)(J).withConfig({displayName:"styles__StyledIconGroupPanel",componentId:"sc-1mzcft9-0"})([".allIcon{margin-top:8px;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;flex:1;.collapse-group-item > header .title{font-size:12px;}.collapse-group-item > header .arrow-icon{width:12px;}.icon-list{display:flex;flex-flow:row wrap;padding:8px 4px 0 12px;.template-box{margin-right:8px;margin-bottom:10px;}}.template-list{padding-top:8px;}}.find-icon{height:100%;overflow-y:auto;overflow-x:hidden;&::-webkit-scrollbar{display:none;}&:hover::-webkit-scrollbar{display:block;}}.color-settings{width:100%;height:32px;margin:0;padding:0;background:",";}.header{.closeContainer{width:20px;height:20px;border-radius:4px;margin-left:14px;cursor:pointer;.closeIcon{width:20px;height:20px;g{path{fill:",";}}}&:hover{background:",";}&:active{background:",";}}}"],we=>we.theme.color_bg_white,we=>we.theme.color_text_L3,we=>we.theme.color_btn_secondary_active,we=>we.theme.color_btn_secondary_active),ge=x.Ay.div.withConfig({displayName:"styles__StyledLoading",componentId:"sc-1mzcft9-1"})(["width:100%;height:calc(100% - 40px);display:flex;align-items:center;justify-content:center;.loading{width:50px;height:50px;}"]);var pe=e(51007);const Ce=x.Ay.div.withConfig({displayName:"styles__StyledIconFindComponentPanel",componentId:"sc-wcuti9-0"})([""]),me=x.Ay.div.withConfig({displayName:"styles__StyledIconGroupList",componentId:"sc-wcuti9-1"})([".group-header{display:flex;align-items:center;justify-content:space-between;height:32px;padding:0 12px;margin:8px 0;.left{display:flex;align-items:center;justify-content:space-between;column-gap:4px;.title{color:",";font-weight:500;}.mat-member{width:12px;height:12px;}}.right{display:flex;align-items:center;height:100%;color:",";cursor:pointer;.arrow-right{width:6px;height:10px;margin-left:10px;}}}"],we=>we.theme.color_text_L1,we=>we.theme.color_text_L3);var be=e(83199);const ie=n.memo(function(_e){const{iconGroup:Te,isMultiColorIcon:Ye,onChangeIconGroup:Fe,onSetCurrentNodeIcon:Ve,onCreateIconItem:rt}=_e,Ue=(0,n.useCallback)(()=>{Fe(Te.groupName)},[Te,Fe]);if(!Te)return null;const{label:et,groupName:lt,icons:Je}=Te,Xe=Ye&&!ENV.IS_ON_PREMISES;return(0,K.jsxs)(me,{"data-group":lt,className:"group-list",children:[(0,K.jsxs)("div",{className:"group-header",children:[(0,K.jsxs)("div",{className:"left",children:[(0,K.jsx)("p",{className:"title",children:et}),Xe&&(0,K.jsx)(be.A,{content:I18N.Resources.resourcesFooter.free_for_member,direction:"down",distance:8,enterHoverTime:100,children:(0,K.jsx)(N.C,{name:"left_panel/icon_list/mat_member",className:"mat-member",isColorPure:!0})})]}),(0,K.jsxs)("div",{className:"right",onClick:Ue,children:[(0,K.jsx)("p",{children:I18N.Popups.iconCat.All}),(0,K.jsx)(N.C,{className:"arrow-right",name:"design/arrow/right"})]})]}),(0,K.jsx)("div",{className:"group-icon-list",children:(0,K.jsx)(s.l,{isMultiColorIcon:Ye,iconList:Je.slice(0,15),onMouseDown:rt,onDoubleClick:rt,onSetCurrentNodeIcon:Ve})})]})});var oe=e(90144);const he=n.memo(function(_e){const{tabIndex:Te,iconGroup:Ye,isFromIconSelectPopup:Fe,rootProject:Ve,groupByIconList:rt,onSetCurrentNodeIcon:Ue}=_e,et=(0,n.useMemo)(()=>Te===1,[Te]),lt=(0,r.wA)(),Je=(nt,tt,ct,ht)=>{const It=it=>{let{itemCid:Tt,groupCid:Lt}=it;const Rt={projectUpperType:"icon_group",projectUpperCid:Lt,itemCid:Tt};(0,b.Cp)(Rt)};lt({type:"entry:create:svg_icon_path:by:mousedown",payload:{event:nt,icon:tt,iconName:ct,iconDisplayName:ht,isMultiColorIcon:et,callback:()=>{const it=tt.id.split("-"),Tt=it[0];It({itemCid:Tt==="fa5"?it.slice(1,it.length-1).join("-"):Tt===tt.type&&Tt!=="\u6570\u5B57"?tt.id.slice(tt.id.indexOf("-")+1):tt.id,groupCid:tt.groupCid}),Xe((nt==null?void 0:nt.type)==="mousedown"?M.k8.Drag:M.k8.DoubleClick,ct,tt.type,tt.groupCid)}}})},Xe=(nt,tt,ct,ht)=>{const It=S.jS[ct]||ct,it=et?I.lS.ColorIcon:I.lS.Icon,Tt=et?a.WY:a.C,Lt=(et?M.Jj[Tt]+"-":"")+M.Ii.Find;(0,M.Mi)({popupsName:it,addType:nt,source:Lt,category:Tt,templateGroupName:It,name:tt,rootProject:Ve,templateGroupCid:ht})},st=function(nt){nt===void 0&&(nt=""),lt(Fe?{type:"icon-panel:update:state",payload:{iconSelectPopupCurrentIconGroup:nt}}:{type:"icon-panel:update:state",payload:{findPanelCurrentIconGroup:nt}}),(0,oe.gQ)({widget_file_name:nt,source:et?"\u5F69\u8272\u56FE\u6807-\u53D1\u73B0":"\u56FE\u6807-\u53D1\u73B0"})};return(0,K.jsx)(Ce,{id:"iconFindComponent",children:(0,K.jsx)("div",{className:"group-list",children:(0,K.jsx)("div",{className:"list",style:{width:U.qv},children:rt.map(nt=>(0,K.jsx)(ie,{isMultiColorIcon:et,iconGroup:nt,onChangeIconGroup:st,onCreateIconItem:Je,onSetCurrentNodeIcon:Ue},nt.groupName))})})})});var ce=e(34771);const re=x.Ay.div.withConfig({displayName:"styles__StyledIconGroupContainer",componentId:"sc-uaa4cb-0"})([".group-container-title{display:flex;justify-content:space-between;align-items:center;height:40px;padding:7px 6px;.switch-tab{position:relative;display:flex;width:100%;align-items:center;}.nav-item{margin-left:8px;&:first-child{margin-left:0;}}}.color-settings{flex:1;}.color-settings{height:32px;}"]),fe=(0,c.Mz)([_.PL,o.QU,o.Ct,C.O2,C.m3,C.$d,C.vs,V.MZ],(we,_e,Te,Ye,Fe,Ve,rt,Ue)=>({rootProject:we,iconDefaultColor:_e,iconDefaultSize:Te,findPanelTabIndex:Ye,findPanelCurrentIconGroup:Fe,iconSelectPopupTabIndex:Ve,iconSelectPopupCurrentIconGroup:rt,layoutV9:Ue})),Se=n.memo(function(_e){const{rootProject:Te,iconDefaultColor:Ye,iconDefaultSize:Fe,findPanelTabIndex:Ve,findPanelCurrentIconGroup:rt,iconSelectPopupTabIndex:Ue,iconSelectPopupCurrentIconGroup:et}=(0,r.d4)(Rt=>fe(Rt)),lt=(0,r.wA)(),{isFromIconSelectPopup:Je,groupByIconList:Xe,groupByColorIconList:st,onSetCurrentNodeIcon:nt}=_e,tt=Je?Ue:Ve,ct=Je?et:rt,ht=tt===1,It=ht?st:Xe,it=!Je,Tt=(0,n.useMemo)(()=>[{key:"0",label:I18N.Resources.icon_panel.monochrome},{key:"1",label:I18N.Resources.icon_panel.color}],[]);(0,n.useEffect)(()=>()=>{k.A.emit(W.P2,{shownMtItemCids:[]})},[tt]),(0,n.useEffect)(()=>{if(It&&It.length>0){const Rt=(0,w.le)(It,ht?v.W.MktMemberFree:v.W.Everyone);k.A.emit(W.jy,{observeMtItemObj:Rt}),k.A.emit(W.BD)}},[ht,It]);const Lt=Rt=>{lt(Je?{type:"icon-panel:update:state",payload:{iconSelectPopupTabIndex:Number(Rt)}}:{type:"icon-panel:update:state",payload:{findPanelTabIndex:Number(Rt)}}),(0,oe.Ac)({source:Rt===0?"\u5355\u8272\u56FE\u6807":"\u5F69\u8272\u56FE\u6807"})};return(0,K.jsxs)(re,{children:[!ct&&(0,K.jsxs)("div",{className:"group-container-title",children:[(0,K.jsx)(ce.Ay,{className:"switch-tab",activeIndex:tt,onTabChange:Lt,children:Tt.map(Rt=>{let{key:Wt,label:Kt}=Rt;return(0,K.jsx)(ce.nl,{label:Kt},Wt)})}),it&&(0,K.jsx)(l.N,{iconDefaultSize:Fe,iconDefaultColor:Ye,isMultiColorIcon:ht})]}),(0,K.jsx)(he,{tabIndex:tt,iconGroup:ct,rootProject:Te,groupByIconList:It,isFromIconSelectPopup:Je,onSetCurrentNodeIcon:nt})]})});var Me=e(40610),Ie=e(45765);const de=(0,c.Mz)([V.O4,C.uJ,C.TF,C.gC,C.kU,C.xZ,V.MZ],(we,_e,Te,Ye,Fe,Ve,rt)=>({theme:we,keyword:_e,iconKeyword:Te,isRequestHotIconList:Ye,hotIconList:Fe,hotColorIconList:Ve,layoutV9:rt})),xe=n.memo(function(_e){const{theme:Te,keyword:Ye,iconKeyword:Fe,isRequestHotIconList:Ve,hotIconList:rt,hotColorIconList:Ue}=(0,r.d4)(It=>de(It)),[et,lt]=(0,n.useState)(1),{isFromIconSelectPopup:Je,onSetCurrentNodeIcon:Xe}=_e,st=(0,r.wA)(),nt=(rt==null?void 0:rt.length)===0,tt=Je?Fe:Ye;(0,n.useEffect)(()=>{Ve||(async()=>{const[it,Tt]=await Promise.all([(0,F.$r)(),(0,F.Aq)()]),Lt=it==null?void 0:it.icon_groups,Rt=(0,Me.D2)(Lt),Wt=(0,Ie.S$)(Rt),Kt=(0,Ie.d$)(Tt==null?void 0:Tt.icon_groups);st({type:"icon-panel:update:state",payload:{hotIconList:Wt,hotColorIconList:Kt,isRequestHotIconList:!!(it&&Tt)}})})().catch(it=>{console.log("load hot icons failed",it)})},[]);const ct=(0,n.useMemo)(()=>Ue.slice(0,8*et),[et,Ue]),ht=(0,n.useCallback)(It=>{const it=It.target,Tt=it.scrollTop,Lt=it.scrollHeight,Rt=it.getBoundingClientRect().height;if(Tt+Rt+24>Lt){if(et*8>Ue.length)return;lt(Wt=>Wt+1)}},[et,Ue.length]);return(0,K.jsx)("div",{className:"find-icon",onScroll:ht,children:nt?(0,K.jsx)(ge,{children:(0,K.jsx)(z.A,{className:"loading"})}):(0,K.jsx)(pe.g,{className:d()("recent-panel-content find-icon-content"),children:()=>rt!=null&&rt.length?(0,K.jsx)(Se,{isFromIconSelectPopup:Je,groupByIconList:rt,groupByColorIconList:ct,onSetCurrentNodeIcon:Xe}):(0,K.jsx)(Z.A,{theme:Te,hasNoTips2:!0,keyword:tt,onHandleClickSquarePanel:()=>{}})})})}),Le=(0,c.Mz)([C.dZ,C.oD,C.yt,C.bw,C.yQ,C.m3,C.vs],(we,_e,Te,Ye,Fe,Ve,rt)=>({iconPanelNavIndex:we,iconSelectPopupNavIndex:_e,isShowAll:we===1,isShowHistory:we===0,currentIconResources:Te,iconSelectPopupCurrentIconResources:Ye,isShowHeader:Fe,findPanelCurrentIconGroup:Ve,iconSelectPopupCurrentIconGroup:rt}));function ve(we){const{from:_e,onSetCurrentNodeIcon:Te}=we,{iconPanelNavIndex:Ye,iconSelectPopupNavIndex:Fe,isShowAll:Ve,isShowHistory:rt,currentIconResources:Ue,iconSelectPopupCurrentIconResources:et,isShowHeader:lt,findPanelCurrentIconGroup:Je,iconSelectPopupCurrentIconGroup:Xe}=(0,r.d4)(Kt=>Le(Kt)),st=(0,r.wA)(),nt=_e===i.Z.iconSelectPopup,tt=[{key:"0",label:I18N.Resources.findTab},{key:"1",label:I18N.Popups.icon_library}];(0,n.useEffect)(()=>{nt&&!lt&&st({type:"icon-select-popup:update:state",payload:{isShowHeader:!0}})},[st,nt,lt]);const ct=Kt=>{st(nt?{type:"icon-panel:update:state",payload:{iconSelectPopupNavIndex:Kt}}:{type:"icon-panel:update:state",payload:{navIndex:Kt}})},ht=function(Kt){Kt===void 0&&(Kt=null),st(nt?{type:"icon-panel:update:state",payload:{iconSelectPopupCurrentIconResources:Kt}}:{type:"icon-panel:update:state",payload:{currentIconResources:Kt}})},It=function(Kt){Kt===void 0&&(Kt=""),st(nt?{type:"icon-panel:update:state",payload:{iconSelectPopupCurrentIconGroup:Kt}}:{type:"icon-panel:update:state",payload:{findPanelCurrentIconGroup:Kt}})},it=Kt=>{Ue&&Ue.cid===Kt.cid&&st({type:"icon-panel:update:state",payload:{currentIconResources:{...Kt,is_star:!Kt.is_star}}}),st({type:"entry:resources:starred:icon_groups",payload:{resources:Kt}})},Tt=nt?Fe===0:rt,Lt=nt?Fe===1:Ve,Rt=nt?et:Ue,Wt=nt?Xe:Je;return(0,K.jsx)(te,{className:d()({fromSettingPanel:nt},P.c.GUIDE_SEARCH_RESOURCES_DETAILS),children:Rt?(0,K.jsx)(f.a,{from:_e,popupsName:I.lS.Icon,currentResources:Rt,onSetCurrentNodeIcon:Te,onStarResources:it,onBack:()=>ht()}):Wt?(0,K.jsx)($,{isFromIconSelectPopup:nt,currentIconGroup:Wt,onBack:()=>It(),onSetCurrentNodeIcon:Te}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(h.d,{activeIndex:nt?Fe:Ye,onTabChange:ct,tabList:tt,isShowHistory:!nt}),Tt&&(0,K.jsx)(xe,{onSetCurrentNodeIcon:Te,isFromIconSelectPopup:nt}),Lt&&(0,K.jsx)(X,{onStarTemplates:it,onClickCard:ht})]})})}class je extends n.PureComponent{render(){const{show:_e,from:Te,onSetCurrentNodeIcon:Ye}=this.props,Fe=Te===i.Z.iconSelectPopup;return!_e&&!Fe?null:(0,K.jsx)(ve,{from:Te,onSetCurrentNodeIcon:Ye})}}const We=(0,c.Mz)([o.OW],we=>({show:we===I.lS.Icon})),Ae=(0,r.Ng)(we=>We(we))(je)},63768:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>u});var n=e(95549),r=e(38502),c=e(49989),o=e(17307),I=e(72214);class u extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"getSizeTypeOptionList",()=>{const{shouldReverseDesc:C}=this.props;return C?[{label:(0,I.jsx)(o.C,{name:"setting_panel/font/fixed_height"}),value:0,tip_title:I18N.SettingPanel.auto_height},{label:(0,I.jsx)(o.C,{name:"setting_panel/font/auto"}),value:2,tip_title:I18N.SettingPanel.auto_width},{label:(0,I.jsx)(o.C,{name:"setting_panel/font/fixed"}),value:1,tip_title:I18N.SettingPanel.fixed_size}]:[{label:(0,I.jsx)(o.C,{name:"setting_panel/font/auto"}),value:0,tip_title:I18N.SettingPanel.auto_width},{label:(0,I.jsx)(o.C,{name:"setting_panel/font/fixed_height"}),value:2,tip_title:I18N.SettingPanel.auto_height},{label:(0,I.jsx)(o.C,{name:"setting_panel/font/fixed"}),value:1,tip_title:I18N.SettingPanel.fixed_size}]})}render(){const{className:C,sizeType:h}=this.props,i=this.getSizeTypeOptionList();return(0,I.jsx)(c.A,{className:C,options:i,value:h,handleChange:this.props.handleSizeTypeChange,isLongTimeHover:!0})}}},63902:(He,ee,e)=>{"use strict";e.d(ee,{BB:()=>l,CU:()=>a,Dd:()=>_,Nt:()=>p,RQ:()=>b,Td:()=>s,Yx:()=>f});var n=e(21856),r=e(61790),c=e(20089),o=e(24229),I=e(65209),u=e(26034),d=e(73658),C=e(21191),h=e(9680);const i={isRename:!0,isRenameOnCreate:!1,isOptionDup:!1,isResetStickyPoint:!0},f=function(M,x,g){g===void 0&&(g=sdkStore),M.forEach(S=>{const t=g.getHotItem(S),v=t.hotAttr.name;if(v==="")return;const w=t.hotAttr.type,k=(0,r.dD)(v),K=g.getSubHotItemList(x).filter(G=>G.hotAttr.type===w).map(G=>{const{hotAttr:{name:$}}=G,P=(0,r.dD)($);if(P===k)return(0,r.AB)($,P)}).filter(G=>G).sort((G,$)=>$-G);(K==null?void 0:K.length)>1&&g.updateHotAttrKV(S,"name",K[0]?k+" "+(K[0]+1):k)})},p=M=>{var x;let{selections:g,currentPageKey:S=(x=MB.getCurrentScreen())==null?void 0:x.cid,keyRndSup:t,commonKeyRndSup:v,store:w=sdkStore,option:k=i,keepSup:W=!1}=M;W||(0,n.D7)(g.filter(E=>{const H=w.getHotItem(E).hotAttr.type;return H===c.x.WSticky||H===c.x.WTear}),S,w),(0,n.OV)(g,t,w),(0,n.gs)(S,g,w),(0,n.tu)(g.filter(E=>w.getHotItem(E).hotAttr.type===c.x.Canvas),t,w);const K={...i,...k},{isRename:G,isRenameOnCreate:$,isOptionDup:P}=K;G&&v===t&&($?f(g,t,w):(0,n.rq)(g,t,w,P))},s=M=>{let{data:x,worldPos:g,keyRndSup:S,commonKeyRndSup:t,currentPageKey:v,store:w=sdkStore,option:k=i,keepSup:W}=M;const K=w.loadSubtreeTL(x,S,g.x,g.y);return p({selections:K,currentPageKey:v,keyRndSup:S,commonKeyRndSup:t,store:w,option:k,keepSup:W}),K},l=M=>{let{data:x,worldPos:g,keyRndSup:S,currentPageKey:t,store:v=sdkStore,option:w={isRenameOnCreate:!0,isResetStickyPoint:!0},offset:k}=M;const W=s({data:x,worldPos:g,keyRndSup:S,commonKeyRndSup:S,currentPageKey:t,store:v,option:w});return(0,n.F6)(W,v,k,w==null?void 0:w.isResetStickyPoint),(0,n.gs)(t,[],v),W},_=(M,x,g,S,t)=>{const v=sdkStore.loadSubtreeTL(M,g,x.x,x.y),w=(0,n.dk)(S),k=w&&sdkStore.getHotItem(w)||null,W=(0,C.G9)(g,v),K=(0,C.Rl)(),G=(0,C.wr)(),$=[];for(const P of v){const E=sdkStore.getHotItem(P),H=sdkStore.getHotAABB(P),O=W(H),V=!C.Uj.has(E.hotAttr.type),Q=V&&(k==null?void 0:k.hotAttr.type)==="wWrap"?w:V&&O?O:g,N={key:P,sup:Q,hotAttr:{...sdkStore.getRelocateLocalXYR(P,Q),zIndex:G.getReStackZIndex(P,Q),...t===Q&&{name:K(Q,E.hotAttr.type,E.hotAttr.name)}}};$.push(N);const L=(0,h.qH)(P);L.length&&(L[0].key===P&&(N.hotAttr={...L[0].hotAttr,...N.hotAttr},L.shift()),$.push(...L))}return sdkStore.updateHotItemBatch($.map(P=>{const{key:E,sup:H,hotAttr:O}=P,V=sdkStore.getHotItem(E);return{key:E,sup:H||V.sup,hotAttr:{...V.hotAttr,...O},sub:V.sub}})),(0,n.gs)(g,v,sdkStore),(0,n.tu)(v.filter(P=>sdkStore.getHotItem(P).hotAttr.type===c.x.Canvas),g,sdkStore),v},b=(M,x,g,S,t)=>{const v=x.getHotItem(M),{sub:w}=v,k=w.filter(j=>{var F;return((F=x.getHotItem(j))==null||(F=F.hotAttr)==null?void 0:F.bunch)!==c.x.RbPage}),[W,K,G,$]=x.getHotKeyListAABB(k),P=G-W,E=$-K,H=[g.x,g.y,g.x+P,g.y+E],O=(0,n.dk)(t),V=O&&sdkStore.getHotItem(O)||null,Q=(0,C.G9)(S),N=(0,C.YQ)(),L=(0,C.Us)(),U=x.getSubHotItemList(M).filter(j=>!(0,d.yT)(j.hotAttr.type)),A=x.saveSubtree(k),D=sdkStore.loadSubtreeTL(A,S,g.x,g.y),B=[];if(U.length===1){const j=Q(H),F=(V==null?void 0:V.hotAttr.type)==="wWrap"?O:j||S,Y=D.filter(z=>{var Z;return!(0,d.yT)(((Z=sdkStore.getHotItem(z))==null||(Z=Z.hotAttr)==null?void 0:Z.type)||"")}),X=sdkStore.getHotItem(Y[0]);sdkStore.updateHotItem({...X,sup:F,hotAttr:{...X.hotAttr,...sdkStore.getRelocateLocalXYR(Y[0],F),name:N(F,X.hotAttr.type,v.hotAttr.name),zIndex:L(Y[0],F)}}),B.push(Y[0])}else if(U.length>1){const j=(0,o.cF)("ww"),F=Q(H),Y=(V==null?void 0:V.hotAttr.type)==="wWrap"?O:F||S,X=D.filter(z=>{var Z;return!(0,d.yT)(((Z=sdkStore.getHotItem(z))==null||(Z=Z.hotAttr)==null?void 0:Z.type)||"")});sdkStore.summonWWrap(X,Y,j,N(Y,"wWrap",v.hotAttr.name),L(X[0],Y),!0,!0),B.push(j)}return B},a=M=>{let{combo:x,worldPos:g,size:S,keyRndSup:t,currentPageKey:v,store:w=sdkStore}=M;const{sub:k,hotAttr:{name:W}}=x,K=k.filter(Q=>{var N;return![c.x.WSticky,c.x.WTear].includes((N=w.getHotItem(Q))==null||(N=N.hotAttr)==null?void 0:N.type)}),G=w.saveSubtree(k),[$,P]=w.getHotKeyListAABB(k),E={x:g.x-$,y:g.y-P},H=(0,I._)(t);let O=[];if((K==null?void 0:K.length)===1){var V;const Q=((V=w.getHotItem(K[0]))==null||(V=V.hotAttr)==null?void 0:V.type)===c.x.WWrap;O=l({data:G,worldPos:g,keyRndSup:t,currentPageKey:v,option:{isRename:!0,isRenameOnCreate:!1,isOptionDup:!1,isResetStickyPoint:!1},offset:E}),Q&&(sdkStore.updateHotAttrMerge(O[0],{name:W,zIndex:H}),f([O[0]],t))}else if((K==null?void 0:K.length)>1){const Q=g.x-S.width/2,N=g.y-S.height/2,U={key:(0,o.cF)("ww"),sub:[],sup:t,hotAttr:{...u.N[c.x.WWrap](!0,!0,W,H,Q,N,S.width,S.height)}};sdkStore.updateHotItem(U),f([U.key],t);const D=l({data:G,worldPos:g,keyRndSup:U.key,currentPageKey:v,option:{isRename:!1,isRenameOnCreate:!1,isOptionDup:!1,isResetStickyPoint:!1},offset:E}).filter(B=>(0,d.yT)(sdkStore.getHotItem(B).hotAttr.type));O=[U.key,...D]}else O=l({data:G,worldPos:g,keyRndSup:t,currentPageKey:v,option:{isRename:!0,isRenameOnCreate:!1,isOptionDup:!1,isResetStickyPoint:!1},offset:E});return O}},63917:(He,ee,e)=>{"use strict";e.d(ee,{G:()=>Z,X:()=>ie});var n=e(80730),r=e(41011),c=e(24229),o=e(29158),I=e(9233),u=e(14166),d=e(26812),C=e(38581),h=e(74222),i=e(16966),f=e(70248),p=e(77686),s=e(93093),l=e(5664),_=e(76805),b=e(95657),a=e(65057),M=e(70933),x=e(25997),g=e(77337),S=e(14002),t=e(59890);const v=async ce=>{let{uId:re,upperCid:fe,V8AHText:Se,V8AHImgUri:Me,handleGenerateStream:Ie,controller:de}=ce;const xe=new URLSearchParams({uId:re,upperCid:fe}),Le=await fetch("/js-hpr/v8aihtml/gen?"+xe.toString(),{method:"POST",headers:{"Content-Type":"application"},body:JSON.stringify({V8AHText:Se,V8AHImgUri:Me}),signal:de.signal});await W(Le,Ie)},w=async ce=>{let{uId:re,upperCid:fe,V8AHText:Se,V8AHPrevHtml:Me,V8AHTargetTag:Ie,handleGenerateStream:de,controller:xe}=ce;const Le=new URLSearchParams({uId:re,upperCid:fe}),ve=await fetch("/js-hpr/v8aihtml/regen?"+Le.toString(),{method:"POST",headers:{"Content-Type":"application"},body:JSON.stringify({V8AHText:Se,V8AHPrevHtml:Me,V8AHTargetTag:Ie}),signal:xe.signal});await W(ve,de)},k=async ce=>{let{uId:re,upperCid:fe,V8AHText:Se,V8AHImgUri:Me,handleGenerateStream:Ie,controller:de}=ce;const xe=new URLSearchParams({uId:re,upperCid:fe}),Le=await fetch("/js-hpr/v8aihtml/optimization-prompt?"+xe.toString(),{method:"POST",headers:{"Content-Type":"application"},body:JSON.stringify({V8AHText:Se}),signal:de.signal});await W(Le,Ie)},W=async(ce,re)=>{if(!ce.ok){const Me=ce.status,Ie={429:"\u5F53\u524D\u4F7F\u7528\u4EBA\u6570\u8FC7\u591A\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5",451:"\u8F93\u5165\u5185\u5BB9\u6D89\u5ACC\u8FDD\u89C4\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165",default:"\u8BF7\u6C42\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"};MB.notice({text:Ie[Me]||Ie.default,type:"error"});const de=new Error("HTTP error! status: "+Me);throw de.status=Me,de}if(!ce.body)throw new Error("Response body is missing");const fe=ce.body.getReader(),Se=new TextDecoder("utf-8");for(;;){const{done:Me,value:Ie}=await fe.read();if(Ie){const de=Se.decode(Ie,{stream:!0});re({status:"generating",chunk:de})}if(Me){re({status:"done"});break}}};var K=e(26274),G=e(15515),$=e(30728),P=e(78915),E=e(22835),H=e(7018),O=e(61790),V=e(65209),Q=e(79770),N=e(87612),L=e(79209),U=e(15086),A=e(4235),D=e(88132),B=e(69594);const j="\n <style>\n html, body {\n margin: 0;\n width: 100%;\n height: 100%;\n user-select: none;\n }\n ::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n \n ::-webkit-scrollbar-corner {\n background-color: transparent;\n }\n ::-webkit-scrollbar-thumb {\n background-color: rgb(219, 219, 219);\n border-radius: 4px;\n }\n ::-webkit-scrollbar-track {\n background-color: transparent;\n }\n </style>\n <script>\n // \u8BBE\u7F6Eiframe\u7684\u5BBD\u9AD8\u4E3A100%\n document.addEventListener('DOMContentLoaded', () => {\n document.documentElement.style.setProperty('--uiWidth', `100%`);\n document.documentElement.style.setProperty('--uiHeight', `100%`);\n }, true);\n <\/script>\n",F="\n <style>\n * {\n cursor: "+B.M.default+" !important;\n }\n </style>\n",Y="\n <script>\n // \u7981\u7528 event \u4E8B\u4EF6\n const events = ['contextmenu', 'mousedown', 'mouseup', 'mousemove', 'mouseenter', 'mouseleave', 'keydown', 'keyup', 'keypress' ]\n events.forEach(event => {\n document.addEventListener(event, (e) => {\n e.preventDefault();\n e.stopImmediatePropagation();\n }, true);\n })\n // \u7981\u7528\u5C4F\u5E55\u7F29\u653E\n document.addEventListener('wheel', function (e) {\n if (e.ctrlKey) {\n e.preventDefault();\n e.stopPropagation()\n }\n }, { passive: false })\n <\/script>\n",X="\n<script>\nconst selectedElementSet = new Set()\nconst elementOutlineMap = new WeakMap()\nconst HOVER_OUTLINE = '2px solid rgba(128, 188, 255, 1)'\nconst SELECT_OUTLINE = '2px solid rgba(22, 132, 252, 1)'\n\nfunction stopPropagation(e) {\n e.stopPropagation()\n e.preventDefault()\n e.stopImmediatePropagation()\n}\n\nfunction setOutline(targetElement, outline) {\n const originOutline = targetElement.style.outline\n const originOutlineOffset = targetElement.style.outlineOffset\n \n // \u53EA\u6709\u7B2C\u4E00\u6B21\u8BBE\u7F6Eoutline\u65F6\u624D\u8BB0\u5F55\u539F\u59CBoutline\n if(!elementOutlineMap.has(targetElement)) elementOutlineMap.set(targetElement, { originOutline, originOutlineOffset })\n\n targetElement.style.outline = outline\n targetElement.style.outlineOffset = '-2px'\n}\n\nfunction restoringOutline(targetElement) {\n const { originOutline, originOutlineOffset } = elementOutlineMap.get(targetElement) || { originOutline: '', originOutlineOffset: ''}\n targetElement.style.outline = originOutline\n targetElement.style.outlineOffset = originOutlineOffset\n}\n\nfunction mouseOverHandler(event) {\n stopPropagation(event)\n const targetElement = event.target\n if(selectedElementSet.has(targetElement)) return\n setOutline(targetElement, HOVER_OUTLINE)\n}\n\nfunction mouseOutHandler(event) {\n stopPropagation(event)\n const targetElement = event.target\n if(selectedElementSet.has(targetElement)) return\n restoringOutline(targetElement)\n}\n\nfunction clickHandler(event) {\n stopPropagation(event)\n if(event.shiftKey) {\n shiftKeySelectElement(event)\n } else {\n commonSelectElement(event)\n } \n const selectedElementList = Array.from(selectedElementSet).map(element => {\n const cloneElement = element.cloneNode(true)\n const { originOutline, originOutlineOffset } = elementOutlineMap.get(element) || { originOutline: '', originOutlineOffset: ''}\n cloneElement.style.outline = originOutline\n cloneElement.style.outlineOffset = originOutlineOffset\n return cloneElement.outerHTML\n })\n window.parent.postMessage({type: 'updateSelectedElement', selectedElementList}, '*')\n}\n\nfunction clearSelectedElement() {\n selectedElementSet.forEach(element => { restoringOutline(element) })\n selectedElementSet.clear()\n}\n\nfunction commonSelectElement(event) {\n clearSelectedElement()\n const targetElement = event.target\n if(selectedElementSet.has(targetElement)) return\n setOutline(targetElement, SELECT_OUTLINE)\n selectedElementSet.add(targetElement)\n}\n\nfunction shiftKeySelectElement(event) {\n const targetElement = event.target\n if(!selectedElementSet.has(targetElement)) {\n setOutline(targetElement, SELECT_OUTLINE)\n selectedElementSet.add(targetElement)\n } else {\n restoringOutline(targetElement)\n selectedElementSet.delete(targetElement)\n }\n}\n\n\ndocument.addEventListener('mouseover', mouseOverHandler, true);\ndocument.addEventListener('mouseout', mouseOutHandler, true);\ndocument.addEventListener('click', clickHandler, true);\n\nwindow.addEventListener('message', (e) => {\n if(e.data.type === 'clearSelectedElement') {\n clearSelectedElement();\n }\n});\n<\/script>\n",z="\n<script>\n window.addEventListener('message', function (e) {\n if (e.data.type === 'reloadWidget') {\n window.location.reload()\n }\n })\n<\/script>\n",Z={"entry:aiComponent:open:mode":(ce,re)=>{let{getState:fe,dispatch:Se}=ce,{payload:Me}=re;const Ie=fe(),{isLoading:de,key:xe}=(0,b.L4)(Ie),Le=sdkStore.getHotItem(xe),ve=xe?Le&&sdkStore.isTrashed(xe):!1;if(de&&!ve){MB.notice({text:"AI \u7EC4\u4EF6\u6B63\u5728\u751F\u6210\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5",type:"info"});return}if(Se(P.GO.select([])),Se({type:"ai-component:update:isInAIComponentCreateMode",payload:{isInAIComponentCreateMode:!0}}),Se({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!0}}),Me!=null&&Me.userTextContent){const{setGenerateContentCache:je}=t.s5;Se({type:"ai-component:update:inputContainerMode",payload:{inputContainerMode:"input"}}),je(Me.userTextContent)}},"entry:aiComponent:exit:mode":(ce,re)=>{let{getState:fe,dispatch:Se}=ce,{payload:{ignoreInputContainerChange:Me=!1}={}}=re;Se({type:"ai-component:update:isInAIComponentCreateMode",payload:{isInAIComponentCreateMode:!1}}),!Me&&Se({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!1}}),Se({type:"ai-component:update:createStartPoint",payload:{createStartPoint:null}}),Se({type:"ai-component:update:createEndPoint",payload:{createEndPoint:null}}),Se({type:"ai-component:update:isInAIComponentSnapshotMode",payload:{isInAIComponentSnapshotMode:!1}}),Se({type:"ai-component:update:isOptimumLoading",payload:{isOptimumLoading:!1}})},"entry:aiComponent:exit:mode:for-toolbar":ce=>{let{getState:re,dispatch:fe}=ce;const Se=re();(0,b.y1)(Se)&&fe({type:"entry:aiComponent:exit:mode"})},"entry:aiComponent:create:mousedown":(ce,re)=>{let{getState:fe,dispatch:Se}=ce,{payload:{event:Me}}=re;const Ie=fe();if(Se({type:"ai-component:update:createEndPoint",payload:{createEndPoint:null}}),Se({type:"ai-component:update:createStartPoint",payload:{createStartPoint:null}}),!(0,b.y1)(Ie))return;const xe=(0,M.X_)(Ie),Le=(0,M.ER)(Ie),ve=(0,M.$S)(Ie),je=(0,a.mG)(Me,{scale:xe,offset:Le,viewportRect:ve});Se({type:"ai-component:update:createStartPoint",payload:{createStartPoint:je}}),Se({type:"ai-component:update:isDraggingMouse",payload:{isDraggingMouse:!0}})},"entry:aiComponent:create:mousemove":(ce,re)=>{let{getState:fe,dispatch:Se}=ce,{payload:{event:Me}}=re;const Ie=fe(),de=(0,b.y1)(Ie),xe=(0,b.iM)(Ie);if(!de||!xe)return;const Le=(0,M.X_)(Ie),ve=(0,M.ER)(Ie),je=(0,M.$S)(Ie),We=(0,b.m7)(Ie),Ae=(0,a.mG)(Me,{scale:Le,offset:ve,viewportRect:je});Se({type:"ai-component:update:createEndPoint",payload:{createEndPoint:Ae}}),Se({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!1}}),!(0,b.m9)(Ie)||$.Z.distance(We,Ae)<5||((0,G.cH)("AI_COMPONENT_CURSOR_HAS_SHOWN",!0),Se({type:"ai-component:update:isShowAIComponentTextCursor",payload:{isShowAIComponentTextCursor:!1}}))},"entry:aiComponent:create:mouseup":ce=>{let{getState:re,dispatch:fe}=ce;const Se=re(),Me=(0,b.y1)(Se),Ie=(0,b.iM)(Se);if(!Me||!Ie)return;fe({type:"ai-component:update:isDraggingMouse",payload:{isDraggingMouse:!1}}),fe({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!0}});const de=(0,b.m7)(Se),xe=(0,b.F6)(Se);$.Z.distance(de,xe||de)>5?fe({type:"entry:aiComponent:set:snapshot:base64Url",payload:{startAnchorPoint:de,endAnchorPoint:xe}}):(fe({type:"ai-component:update:createStartPoint",payload:{createStartPoint:null}}),fe({type:"ai-component:update:createEndPoint",payload:{createEndPoint:null}}),t.F7.clearCache())},"entry:aiComponent:set:snapshot:base64Url":async(ce,re)=>{let{getState:fe,dispatch:Se}=ce,{payload:Me}=re;const Ie=fe(),de=(0,M.X_)(Ie),xe=(0,x.UV)(Ie),{startAnchorPoint:Le,endAnchorPoint:ve}=Me,je=ie(Le,ve),We=await be({createRect:je,scale:de,widgetStore:xe});if(We)try{const Ae=await(0,n.G6)(We);t.F7.setCache(Ae)}catch(Ae){console.error(Ae)}},"entry:aiComponent:switch-snapshot-mode:handler":(ce,re)=>{let{getState:fe,dispatch:Se}=ce,{payload:Me}=re;const{nextIsSnapshotMode:Ie}=Me;Se({type:"ai-component:update:isInAIComponentSnapshotMode",payload:{isInAIComponentSnapshotMode:Ie}}),Ie&&(Se({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),Se({type:"entry:toolbar:toggle:handTool"}),Se(P.GO.toggleInspectMode(!1)),Se(P.GO.toggleHandMode(!1)),Se({type:"elbow:update",payload:{isInElbowMode:!1}}),Se({type:"entry:ST:STMode:disable"}))},"entry:aiComponent:optimum:handler":async(ce,re)=>{let{getState:fe,dispatch:Se}=ce,{payload:Me}=re;const{userTextContent:Ie,updateUserTextContent:de,handleSelectEnd:xe}=Me;if((0,p.b)(Ie)){te("[FILTERED]","prompt");return}Se({type:"ai-component:update:isOptimumLoading",payload:{isOptimumLoading:!0}});const Le=(0,t.FG)(),ve=(we,_e,Te)=>{if(Te({type:"ai-component:update:isOptimumLoading",payload:{isOptimumLoading:!1}}),!we){je(_e);return}de(we),xe()},je=we=>{te(we,"prompt"),xe()},We=async we=>{let{status:_e,chunk:Te}=we;try{const Fe=fe(),Ve=(0,b.sA)(Fe),rt=(0,b.xn)(Fe);if(!Ve||!rt){Ae.abort();return}if(Le.saveChunk(Te),_e==="done"){var Ye;const Ue=Le.parseChunk(),et=((Ye=(0,t.bF)(Ue))==null?void 0:Ye.trim())||"";await ve(et,Ue,Se),Se({type:"ai-component:update:isOptimumLoading",payload:{isOptimumLoading:!1}})}}catch(Fe){console.error("\u89E3\u6790txt\u62A5\u9519",Fe)}},Ae=new AbortController;try{await k({uId:MB.user.id,upperCid:(0,M.YT)(fe()).upper_cid,V8AHText:Ie,handleGenerateStream:We,controller:Ae})}catch(we){if(we.name==="AbortError")return;console.error(we),xe(),Se({type:"ai-component:update:isOptimumLoading",payload:{isOptimumLoading:!1}})}},"entry:aiComponent:send:handler":async(ce,re)=>{let{getState:fe,dispatch:Se}=ce,{payload:Me}=re;const{editComponentKey:Ie,userTextContent:de,snapshotBase64Url:xe}=Me;if((0,p.b)(de)){te("[FILTERED]","component");return}const Le=()=>{Se({type:"ai-component:update:editingAIComponentKey",payload:{editingAIComponentKey:null}}),Se({type:"ai-component:clear:editingInfo",payload:{key:Ie}})},ve=()=>{Se({type:"ai-component:update:isInAIComponentCreateMode",payload:{isInAIComponentCreateMode:!0}}),Se({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!0}}),Le()},je=()=>{t.F7.clearCache(),Le(),(0,D.XM)("generate")};Ie||(Se({type:"entry:aiComponent:exit:mode",payload:{ignoreInputContainerChange:!0}}),Se({type:"ai-component:update:isShowThinkingMode",payload:{isShowThinkingMode:!0}}),Se({type:"entry:aiComponent:request:generate-component",payload:{userTextContent:de,snapshotBase64Url:xe,onError:ve,onDone:je}}))},"entry:aiComponent:request:generate-component":async(ce,re)=>{let{getState:fe,dispatch:Se}=ce,{payload:Me}=re;const Ie=fe(),{userTextContent:de,snapshotBase64Url:xe,onError:Le,onDone:ve}=Me,je=(0,t.FG)(),We=(0,c.cF)();je.setChunkId(We);const Ae=async(Ue,et,lt)=>{const{cid:Je}=(0,M.Ur)(Ie),Xe=MB.getScale(),{top:st,left:nt}=(0,E.u5)({width:et,height:lt,scale:Xe}),tt=nt+et/2,ct=st+lt/2;ge({key:We,injection:Ue,x:tt,y:ct,w:et,h:lt,sup:Je});const ht=(0,Q.Tg)({x:tt,y:ct},Je);ht&&sdkStore.changeRndSup(We,ht);const It=sdkStore.getHotItem(We);Se({type:"entry:widget:change",payload:{isCreateWidget:!0,sup:It.sup,isCombineChange:!1,flatChgList:[It]}})},we=async(Ue,et,lt)=>{if(!Ue){Te(et);return}Ye(lt),MB.notice({type:"success",text:"AI \u7EC4\u4EF6\u751F\u6210\u6210\u529F"}),ve&&ve(),(0,t.e$)({code:200,userTextContent:de,snapshotBase64Url:xe,startTimestamp:Ve})},_e=Ue=>{sdkStore.combineMerge("ai-component-generate"),sdkStore.deleteHotItem(We),Le&&Le(),Ue&&Ue()},Te=Ue=>{te(Ue,"component"),_e(()=>(0,t.e$)({code:999,userTextContent:de,snapshotBase64Url:xe,startTimestamp:Ve}))},Ye=Ue=>{Se({type:"entry:aiComponent:update:codeWidget",payload:{widgetKey:We,injection:Ue}}),sdkStore.combineMerge("ai-component-generate");const et=oe({widgetKey:We,injection:Ue});if(et){const lt=he(fe,{key:We,action:"add",payload:{item:et}});Se({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:We,type:"result",resultType:"generate",resultTmpListData:lt}})}else Se({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:We,type:"common"}})},Fe=async Ue=>{let{status:et,chunk:lt}=Ue;try{je.saveChunk(lt);const Je=je.parseChunk(),{htmlContent:Xe,defaultWidth:st,defaultHeight:nt}=await me(Je),tt=(0,H.o)(Xe);if(!sdkStore.getHotItem(We)){if(!st||!nt)return;await Ae(tt,st,nt),Se(P.GO.select([We])),Se({type:"ai-component:update:requestLoading",payload:{isLoading:!0,key:We}}),Se({type:"ai-component:update:isShowThinkingMode",payload:{isShowThinkingMode:!1}}),Se({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!1}});return}if(sdkStore.isTrashed(We)){rt.abort();return}await J({chunkId:We,injection:tt,dispatch:Se}),et==="done"&&await we(Xe,Je,tt)}catch(Je){console.error("\u4EE3\u7801\u89E3\u6790\u62A5\u9519",Je)}};if(!(0,L._c)({type:"widget",count:1}))return;sdkStore.combineMergeMark("ai-component-generate"),t.iC.setCache({key:je.getChunkId(),text:de,img:xe});const Ve=Date.now(),rt=new AbortController;try{await v({uId:MB.user.id,upperCid:(0,M.YT)(Ie).upper_cid,V8AHText:de,V8AHImgUri:xe,handleGenerateStream:Fe,controller:rt})}catch(Ue){if(Ue.name==="AbortError")return;_e(()=>(0,t.e$)({code:Ue.status,userTextContent:de,snapshotBase64Url:xe,startTimestamp:Ve})),(0,N.p)("aiComponent generate fail",Ue,{uId:MB.user.id,userTextContent:de})}finally{Se({type:"ai-component:clear:requestLoading"}),sdkStore.getHotItem(We)&&!sdkStore.isTrashed(We)&&Se(P.GO.select([We]))}},"entry:aiComponent:request:edit-component":async(ce,re)=>{var fe;let{getState:Se,dispatch:Me}=ce,{payload:Ie}=re;const de=Se(),{editComponentKey:xe,userTextContent:Le,selectedElementList:ve,onError:je,onDone:We}=Ie,Ae=(0,t.FG)(),we=xe;Ae.setChunkId(we);const _e=async(Xe,st,nt)=>{if(!Xe){Ye(st);return}Fe(nt),MB.notice({type:"success",text:"AI \u7EC4\u4EF6\u7F16\u8F91\u6210\u529F"}),We&&We(),(0,t.e$)({code:200,userTextContent:Le,startTimestamp:lt})},Te=Xe=>{sdkStore.combineMerge("ai-component-edit"),sdkStore.canUndo()&&sdkStore.undo(),je&&je(),Xe&&Xe()},Ye=Xe=>{te(Xe,"component"),Te(()=>(0,t.e$)({code:999,userTextContent:Le,startTimestamp:lt}))},Fe=Xe=>{Me({type:"entry:aiComponent:update:codeWidget",payload:{widgetKey:we,injection:Xe}}),sdkStore.combineMerge("ai-component-edit");const st=oe({widgetKey:we,injection:Xe});if(st){const nt=he(Se,{key:we,action:"add",payload:{item:st}});Me({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:we,type:"result",resultType:"edit",resultTmpListData:nt}})}else Me({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:we,type:"common"}})},Ve=async Xe=>{let{status:st,chunk:nt}=Xe;try{Ae.saveChunk(nt);const tt=Ae.parseChunk(),{htmlContent:ct}=await me(tt),ht=(0,H.o)(ct),It=Ae.getChunkId();if(sdkStore.isTrashed(It)){Je.abort();return}await J({dispatch:Me,injection:ht,chunkId:It}),st==="done"&&await _e(ct,tt,ht)}catch(tt){console.error("\u4EE3\u7801\u89E3\u6790\u62A5\u9519",tt)}},rt=MB.user.id,{upper_cid:Ue}=(0,M.YT)(de),et=(0,H.f)((fe=sdkStore.getHotItem(we))==null?void 0:fe.hotAttr.injection);sdkStore.combineMergeMark("ai-component-edit"),Me({type:"entry:aiComponent:update:codeWidget",payload:{widgetKey:we,injection:(0,H.o)("")}}),Me({type:"ai-component:update:requestLoading",payload:{isLoading:!0,key:we}}),t.iC.setCache({key:we,text:Le,prevHtml:et,targetTags:ve});const lt=Date.now(),Je=new AbortController;try{await w({uId:rt,upperCid:Ue,V8AHText:Le,V8AHPrevHtml:et,V8AHTargetTag:ve.join(""),handleGenerateStream:Ve,controller:Je})}catch(Xe){if(Xe.name==="AbortError")return;Te(()=>(0,t.e$)({code:Xe.status,userTextContent:Le,startTimestamp:lt})),(0,N.p)("aiComponent generate fail",Xe,{uId:MB.user.id,userTextContent:Le})}finally{Me({type:"ai-component:clear:requestLoading"}),sdkStore.getHotItem(we)&&!sdkStore.isTrashed(we)&&Me(P.GO.select([we]))}},"entry:aiComponent:update:codeWidget":async(ce,re)=>{var fe;let{getState:Se,dispatch:Me}=ce,{payload:Ie}=re;const{widgetKey:de,injection:xe,x:Le,y:ve,w:je,h:We}=Ie;if(sdkStore.isTrashed(de)||!((fe=sdkStore.getHotItem(de))==null?void 0:fe.hotAttr))return;const we={};xe!==void 0&&(we.injection=xe),Le&&(we.x=Le),ve&&(we.y=ve),je&&(we.w=je),We&&(we.h=We),Me({type:"entry:widget:change",payload:{isCombineChange:!1,flatChgList:[{key:de,hotAttr:we}]}})},"entry:aiComponent:in:edit":async(ce,re)=>{let{getState:fe,dispatch:Se}=ce,{payload:Me}=re;const Ie=fe(),de=(0,b.ul)(Ie),{cid:xe}=Me;xe!==de&&(Se({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!0}}),Se({type:"ai-component:update:editingAIComponentKey",payload:{editingAIComponentKey:xe}}),Se({type:"ai-component:clear:editingInfo",payload:{key:xe}}),t.ZF.setCache("\u7EC4\u4EF6\u4E8C\u6B21\u7F16\u8F91"))},"entry:aiComponent:quit:edit":async(ce,re)=>{let{getState:fe,dispatch:Se}=ce,{payload:Me}=re;const Ie=(0,b.Bq)(fe());Ie&&Ie===Me.widgetKey&&(Se({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!1}}),Se({type:"ai-component:update:editingAIComponentKey",payload:{editingAIComponentKey:null}}),Se({type:"ai-component:clear:editingInfo",payload:{key:Ie}}))},"entry:aiComponent:update:floatBarOperationMap":async(ce,re)=>{let{getState:fe,dispatch:Se}=ce,{payload:Me}=re;const{key:Ie,...de}=Me,xe=fe(),je={...(0,b.G1)(xe)[Ie]||{},...de};Se({type:"ai-component:update:floatBarOperationMap",payload:{key:Ie,floatBarOperation:je}})},"entry:aiComponent:float-bar:retry":async(ce,re)=>{var fe;let{getState:Se,dispatch:Me}=ce,{payload:Ie}=re;const de=Se(),{key:xe}=Ie,ve=(0,b.G1)(de)[xe]||{},{text:je,img:We,prevHtml:Ae,targetTags:we}=t.iC.getCache(xe),_e=(0,t.FG)();_e.setChunkId(xe),Me({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:xe,type:"loading"}});const Te=async(ct,ht,It,it,Tt)=>{if(!ct){Ye(ht,Tt,It);return}Fe(It,it,Tt),MB.notice({type:"success",text:"AI \u7EC4\u4EF6\u91CD\u65B0\u751F\u6210\u6210\u529F"}),(0,D.XM)(ve.resultType==="generate"?"generate":"edit")},Ye=(ct,ht,It)=>{te(ct,"component"),ht({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:It,type:"result",resultType:ve.resultType}}),sdkStore.combineMerge("ai-component-request-retry"),sdkStore.canUndo()&&sdkStore.undo()},Fe=(ct,ht,It)=>{It({type:"entry:aiComponent:update:codeWidget",payload:{widgetKey:ct,injection:ht}}),sdkStore.combineMerge("ai-component-request-retry");const it=oe({widgetKey:ct,injection:ht});if(it){const Tt=he(Se,{key:ct,action:"update",payload:{item:it}});It({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:ct,type:"result",resultType:ve.resultType,resultTmpListData:Tt}})}else It({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:ct,type:"common"}})},Ve=()=>{Me({type:"ai-component:update:requestLoading",payload:{isLoading:!0,key:xe}})},rt=async ct=>{let{status:ht,chunk:It}=ct;try{const Tt=_e.getChunkId();if(sdkStore.isTrashed(Tt)){Me({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:xe,type:"common"}}),Ue.abort();return}_e.saveChunk(It);const Lt=_e.parseChunk(),{htmlContent:Rt,defaultWidth:Wt,defaultHeight:Kt}=await me(Lt),Gt=(0,H.o)(Rt);if(ve.resultType==="generate"){if(Ve(),!Wt||!Kt)return;if(_e.getChunkUpdatedFlag())J({dispatch:Me,injection:Gt,chunkId:Tt});else{var it;const St=(it=sdkStore.getHotItem(Tt))==null?void 0:it.hotAttr,{x:Hn,y:uo}=Ce(pe(St),Wt,Kt);J({dispatch:Me,injection:Gt,chunkId:Tt,x:Hn,y:uo,w:Wt,h:Kt}),_e.setChunkUpdatedFlag(!0)}}else ve.resultType==="edit"&&(Ve(),J({dispatch:Me,injection:Gt,chunkId:Tt}));ht==="done"&&await Te(Rt,Lt,Tt,Gt,Me)}catch(Tt){console.error("\u4EE3\u7801\u89E3\u6790\u62A5\u9519",Tt)}};sdkStore.combineMergeMark("ai-component-request-retry");const Ue=new AbortController,{requestAIHtml:et,requestParams:lt}=await(async()=>ve.resultType==="generate"?{requestAIHtml:v,requestParams:{uId:MB.user.id,upperCid:(0,M.YT)(de).upper_cid,V8AHText:je,V8AHImgUri:We,handleGenerateStream:rt,controller:Ue}}:{requestAIHtml:w,requestParams:{uId:MB.user.id,upperCid:(0,M.YT)(de).upper_cid,V8AHText:je,V8AHPrevHtml:Ae,V8AHTargetTag:(we==null?void 0:we.join(""))||"",handleGenerateStream:rt,controller:Ue}})(),Je=_e.getChunkId(),{injection:Xe,w:st,h:nt}=((fe=sdkStore.getHotItem(Je))==null?void 0:fe.hotAttr)||{},tt=he(Se,{key:Je,action:"updateItem",payload:{item:{injection:Xe,w:st,h:nt}}});Me({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:Je,resultTmpListData:tt}});try{await et({...lt})}catch(ct){console.error(ct),Me({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:Je,type:"result",resultType:ve.resultType}})}finally{Me({type:"ai-component:clear:requestLoading"}),sdkStore.getHotItem(xe)&&!sdkStore.isTrashed(xe)&&Me(P.GO.select([xe]))}},"entry:aiComponent:float-bar:confirm":async(ce,re)=>{let{getState:fe,dispatch:Se}=ce,{payload:Me}=re;const{key:Ie}=Me;Se({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:Ie,type:"common"}}),Se({type:"ai-component:update:createStartPoint",payload:{createStartPoint:null}}),Se({type:"ai-component:update:createEndPoint",payload:{createEndPoint:null}}),t.F7.clearCache()},"entry:aiComponent:float-bar:handle-order":async(ce,re)=>{var fe;let{getState:Se,dispatch:Me}=ce,{payload:Ie}=re;const de=Se(),{type:xe,key:Le}=Ie,je=(0,b.G1)(de)[Le]||{},{resultTmpListData:We}=je;if(!We)return;const{activeIndex:Ae,list:we}=We,_e=xe==="prev"?Ae-1:Ae+1,Te=we[_e];if(!Te)return;const Ye=((fe=sdkStore.getHotItem(Le))==null?void 0:fe.hotAttr)||{},{w:Fe,h:Ve,injection:rt}=Ye,Ue=he(Se,{key:Le,action:"updateItem",payload:{item:{injection:rt,w:Fe,h:Ve}}});Me({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:Le,resultTmpListData:Ue}});const{w:et,h:lt,injection:Je}=Te,{x:Xe,y:st}=Ce(pe(Ye),et,lt),nt=he(Se,{key:Le,action:"update",payload:{activeIndex:_e}});Me({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:Le,resultTmpListData:nt}}),Me({type:"ai-component:add:withoutStreamingKey",payload:{key:Le}}),Me({type:"entry:aiComponent:update:codeWidget",payload:{widgetKey:Le,injection:Je,x:Xe,y:st,w:et,h:lt}})},"entry:aiComponent:float-bar:chat-ai-send":async(ce,re)=>{let{getState:fe,dispatch:Se}=ce,{payload:Me}=re;const{editComponentKey:Ie,userContent:de,type:xe,selectedElementList:Le,onError:ve}=Me;if((0,p.b)(de)){te("[FILTERED]","component");return}xe==="edit"&&Se({type:"entry:aiComponent:request:edit-component",payload:{editComponentKey:Ie,userTextContent:de,selectedElementList:[...Le],onError:()=>{Se({type:"ai-component:update:editingAIComponentKey",payload:{editingAIComponentKey:Ie}}),ve&&ve()},onDone:()=>{Se({type:"ai-component:update:editingAIComponentKey",payload:{editingAIComponentKey:null}}),Se({type:"ai-component:clear:editingInfo",payload:{key:Ie}}),Se({type:"ai-component:update:editInputAreaText",payload:{editInputAreaText:""}}),(0,D.XM)("edit")}}})},"entry:aiComponent:float-bar:convert-to-editable":async(ce,re)=>{let{getState:fe,dispatch:Se}=ce,{payload:Me}=re;const{widget:Ie}=Me,de=(0,H.f)(Ie.hotAttr.injection||"");if(!de)return;const xe=new U.M(Ie.key,we=>({x:we[2]+100,y:we[1]}));xe.setDispatch(Se),xe.subscribe(we=>{const{type:_e,reason:Te}=we;_e==="success"&&sdkStore.getHotItem(Ie.key)?MB.notice({text:"\u8F6C\u6362\u6210\u529F",type:"success"}):_e==="failed"&&MB.notice({text:Te,type:"error"}),Se({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:Ie.key,convertToEditableType:_e}})});const{name:Le,w:ve,h:je}=Ie.hotAttr,We="\n <style>\n html, body { \n width: "+ve+"px !important; \n height: "+je+"px !important;\n min-width: "+ve+"px !important;\n min-height: "+je+"px !important;\n max-width: "+ve+"px !important;\n max-height: "+je+"px !important;\n position: relative !important;\n overflow-x: hidden !important;\n overflow-y: hidden !important;\n }\n </style>\n";await xe.convert({fileName:Le,htmlString:de.replace("<head>",j+"<head>").replace("</head>",We+"</head>").replace("position: fixed","position: absolute !important"),autoPaste:!0,targetType:"wWrap"},{checkPasteBefore:async()=>sdkStore.isTrashed(Ie.key)?(MB.notice({text:"\u539F\u7EC4\u4EF6\u72B6\u6001\u5F02\u5E38\uFF0C\u8F6C\u6362\u7EC8\u6B62",type:"error"}),Se({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:Ie.key,convertToEditableType:"idle"}}),!1):!0})},"entry:aiComponent:undo":async ce=>{let{getState:re,dispatch:fe}=ce;fe({type:"entry:aiComponent:undo-redo"})},"entry:aiComponent:redo":async ce=>{let{getState:re,dispatch:fe}=ce;fe({type:"entry:aiComponent:undo-redo"})},"entry:aiComponent:undo-redo":async(ce,re)=>{let{getState:fe,dispatch:Se}=ce,{payload:Me}=re;const Ie=fe(),de=(0,A.p$)(Ie);if(de.length!==1)return null;const xe=de[0];if(sdkStore.isTrashed(xe))return;const ve=(0,b.G1)(Ie)[xe];if(!ve||sdkStore.isTrashed(xe))return;const{type:je,resultTmpListData:We}=ve;if(je!=="result"||!We)return;let Ae;try{var we;Ae=(we=sdkStore.getHotItem(xe))==null||(we=we.hotAttr)==null?void 0:we.injection}catch(Te){}const _e=Ae?We.list.findIndex(Te=>Te.injection===Ae):-1;if(_e!==-1){const Te=he(fe,{key:xe,action:"update",payload:{activeIndex:_e}});Se({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:xe,resultTmpListData:Te}});return}Se({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:xe,type:"common"}})}},J=(0,_.nF)(ce=>{let{dispatch:re,chunkId:fe,injection:Se,x:Me,y:Ie,w:de,h:xe}=ce;re({type:"entry:aiComponent:update:codeWidget",payload:{widgetKey:fe,injection:Se,x:Me,y:Ie,w:de,h:xe}})},1500,!0),te=(ce,re)=>{const fe=ce.includes("[FILTERED]"),Se={prompt:{filtered:"\u63D0\u793A\u8BCD\u4F18\u5316\u5931\u8D25\uFF0C\u751F\u6210\u5185\u5BB9\u5305\u542B\u654F\u611F\u8BCD\u6C47",default:"\u63D0\u793A\u8BCD\u4F18\u5316\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u68C0\u67E5\u53D1\u9001\u5185\u5BB9"},component:{filtered:"AI\u7EC4\u4EF6\u751F\u6210\u5931\u8D25\uFF0C\u751F\u6210\u5185\u5BB9\u5305\u542B\u654F\u611F\u8BCD\u6C47",default:"AI\u7EC4\u4EF6\u751F\u6210\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u68C0\u67E5\u53D1\u9001\u5185\u5BB9"}},Me=fe?Se[re].filtered:Se[re].default;MB.notice({text:Me,type:"error"})},ge=ce=>{let{key:re,injection:fe,x:Se,y:Me,w:Ie,h:de,sup:xe}=ce;const Le=(0,K.xz)("AI\u7EC4\u4EF6");Le.x=Se,Le.y=Me,Le.w=Ie,Le.h=de,Le.isLockAspect=!1,Le.injection=fe,Le.zIndex=(0,V._)(xe),Le.name=(0,O.aw)({type:"wCode",sup:xe});const ve={key:re,attr:(0,C.Xd)(Le),hotAttr:Le,sup:xe,sub:[]};return sdkStore.updateHotItem(ve),re},pe=ce=>({x:ce.x,y:ce.y-ce.h/2}),Ce=(ce,re,fe)=>{const Se=ce.x,Me=ce.y+fe/2;return{x:Se,y:Me}},me=async ce=>{const{htmlContent:re,jsonContent:fe}=(0,t.VY)(ce),{defaultWidth:Se,defaultHeight:Me}=JSON.parse(fe||"{}");return{htmlContent:re,defaultWidth:Se,defaultHeight:Me}},be=async ce=>{let{createRect:re,widgetStore:fe,scale:Se}=ce;const Me=!1,Ie=!0,de=(0,S.I)(fe,re,!0,Me,Se),xe={format:"png",scale:"1",affix:"suffix",isWithDeviceFrame:!1},{x:Le,y:ve,w:je,h:We}=re,Ae=[Le,ve,Le+je,ve+We];for(const Je of de)Ie||(0,u.il)(Ae,sdkStore.getHotAABB(Je));const we=(0,I.v)((0,o.Id)(),(0,r.aF)({}),(Je,Xe,st)=>console.log("flat|onPatch",{diffList:Je,clock:Xe,isLocal:st}),(Je,Xe)=>console.log("flat|requestResync",{error:Je,message:Xe})),_e=(0,d.uq)(we),Te=(0,l.jb)(sdkStore);we.applyDiff(Te);const Ye=(0,h.gO)("",9,10,10,"",0,0,""),Fe={key:(0,c.cF)("rbp"),hotAttr:Ye,sup:h.$k,sub:[]},Ve=(0,i.Nc)("asdf");Ve.w=Ae[2]-Ae[0],Ve.h=Ae[3]-Ae[1],Ve.x=Ae[0]+Ve.w/2,Ve.y=Ae[1]+Ve.h/2,Ve.fill.fillIsVisible=!1;const rt={key:(0,c.cF)("rc"),hotAttr:Ve,sup:Fe.key,sub:[]};_e.updateHotItem(Fe),_e.updateHotItem(rt);const Ue=Je=>{let{hi:Xe,supKey:st}=Je;const nt=sdkStore.saveSubtree([Xe.key]),{x:tt,y:ct}=sdkStore.getHotBound(Xe.key);let ht=tt-Ae[0],It=ct-Ae[1];st!==rt.key&&(ht=Xe.hotAttr.x,It=Xe.hotAttr.y);const it=_e.loadSubtree(nt,h.$k,ht,It);_e.moveHotItem(it[0],st)},et=Je=>{const Xe=sdkStore.getHotItem(Je);if(Xe){if(Xe.hotAttr.type==="wBasket"||Xe.hotAttr.type==="wMind")Ue({hi:Xe,supKey:Xe.sup});else{const st=sdkStore.getHotItem(Xe.sup);if(!st)return;let nt,tt;if(st.hotAttr.type==="wWrap"){const{x:ht,y:It}=sdkStore.getCCSBound2308(Xe.key),{w:it,h:Tt}=sdkStore.getCCSBound2308(Xe.sup);nt=ht-it/2,tt=It-Tt/2}else if(Xe.hotAttr.type==="wWrap"){const{x:ht,y:It}=sdkStore.getCCSBound2308(Xe.key);nt=ht,tt=It}else nt=Xe.hotAttr.x,tt=Xe.hotAttr.y;const ct={...Xe,hotAttr:{...Xe.hotAttr,x:nt,y:tt}};_e.updateHotItem(ct)}for(const st of Xe.sub)!(0,f.OO)(st)&&et(st)}};for(const Je of de){const Xe=sdkStore.getHotItem(Je);if(Xe)if((0,f.OO)(Xe.key)||Xe.hotAttr.type==="wBasket"||Xe.hotAttr.type==="wMind")Ue({hi:Xe,supKey:rt.key});else{const{x:st,y:nt}=sdkStore.getHotBound(Xe.key),tt=st-Ae[0],ct=nt-Ae[1],ht={...Xe,sup:rt.key,hotAttr:{...Xe.hotAttr,x:tt,y:ct}};_e.updateHotItem(ht);for(const It of Xe.sub)!(0,f.OO)(It)&&et(It)}}const lt=(0,g.gD)({itemKey:rt.key,pseudoSdkStore:_e,...xe,hasWatermark:!1,isExportSticky:!0});try{return lt.validateIE(xe.format),await lt.toIE(xe.format)}catch(Je){return Je instanceof g.ku?MB.notice({text:"\u622A\u56FE\u8D85\u8FC7\u5927\u5C0F\u9650\u5236",type:"error"}):Je.name!=="NotAllowedError"&&(MB.notice({text:"\u622A\u56FE\u64CD\u4F5C\u5F02\u5E38\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5",type:"error"}),(0,s.Cp)(Je)),null}},ie=(ce,re)=>{const{x:fe,y:Se}=ce,{x:Me,y:Ie}=re;return{x:fe<=Me?fe:Me,y:Se<=Ie?Se:Ie,w:Math.abs(Me-fe),h:Math.abs(Ie-Se),r:0}},oe=ce=>{let{widgetKey:re,injection:fe}=ce;const Se=sdkStore.getHotItem(re);if(sdkStore.isTrashed(re)||!Se)return;const{w:Me,h:Ie}=Se.hotAttr,de=Date.now();return{injection:fe,w:Me,h:Ie,timestamp:de}},he=(ce,re)=>{let{key:fe,action:Se,payload:Me}=re;const Ie=ce(),xe=(0,b.G1)(Ie)[fe],Le=(xe==null?void 0:xe.resultTmpListData)||{activeIndex:0,list:[]};return{add:()=>{const{item:je}=Me;return{activeIndex:0,list:[je]}},update:()=>{const{activeIndex:je,item:We}=Me;if(je!==void 0)return{...Le,activeIndex:je};const Ae=[...Le.list,We];return{activeIndex:Ae.length-1,list:Ae}},updateItem:()=>{const{item:je}=Me;return je?{...Le,list:(Ae=>Ae.map(we=>we.injection===je.injection?{...we,...je}:we))(Le.list)}:Le},clear:()=>{}}[Se]()}},63966:(He,ee,e)=>{"use strict";e.d(ee,{R:()=>l,Z1:()=>p,b:()=>s,eO:()=>x});var n=e(24229),r=e(35716),c=e(30728),o=e(65209),I=e(56696),u=e(33848),d=e(83744),C=e(18637),h=e(10390),i=e(21793),f=e(71247);const p=(S,t)=>{const v=(0,r.rZ)("\u8FDE\u63A5\u7EBF",(0,o._)(t));v.x=S.x,v.y=S.y,v.w=50,v.h=50;const w=(0,i.w)();v.elbow={...v.elbow,...w},v.elbow.elbowType==="curve"?v.elbow.dPathList=[...f.XS]:v.elbow.dPathList=[{x:0,y:0,isAdjusted:!1},{x:50,y:50,isAdjusted:!1}],(0,d.rp)(v);const k=(0,n.cF)(),W={key:k,sup:t,hotAttr:v};return sdkStore.updateHotItem(W),k},s=function(S,t){let{elbowKey:v,moveAnchor:w,worldPos:k,refKey:W,direction:K,isUseWroldBound:G=!1,isUpdateByRef:$=!1}=S;t===void 0&&(t=sdkStore.getHotItem(v));const P={...k,key:W,direction:K};if(t.hotAttr.elbow.elbowType==="curve")return g({currentElbowItem:t,cursorWorldPos:P,moveAnchor:w,nextPickPoint:P});const E=t.hotAttr,{x:H,y:O,elbow:V,w:Q,h:N,refFromKey:L,refToKey:U}=E,A=H-Q*.5,D=O-N*.5,{dPathList:B,fromDirection:j,toDirection:F}=V;let Y;if(w==="start"){const z=(0,u.Ui)(c.Z.xy(A,D),[B[B.length-1]])[0];Y={elbowKey:v,currentElbowItem:t,moveAnchor:w,startPickPoint:P,endPickPoint:{...z,key:U,direction:F},isUpdateByRef:$}}else{const z=(0,u.Ui)(c.Z.xy(A,D),[B[0]])[0];Y={elbowKey:v,currentElbowItem:t,moveAnchor:w,startPickPoint:{...z,key:L,direction:j},endPickPoint:P,isUpdateByRef:$}}const{data:X}=(0,I.X)(Y,G);return X},l=(S,t)=>{let v,w;return t==="curve"?(v=S[0],w=S.at(-1)):(v=S.at(-2),w=S.at(-1)),parseInt(v.x)===parseInt(w.x)?parseInt(v.y)<parseInt(w.y)?"down":"up":parseInt(v.x)<parseInt(w.x)?"right":"left"};function _(S,t,v){const w=v*Math.PI/180,k=S*Math.cos(w)-t*Math.sin(w),W=S*Math.sin(w)+t*Math.cos(w);return{x:k,y:W}}const b=S=>{const{prev:t,next:v}=(0,C.wX)(S,1);S[1].prev=t,S[1].next=v},a=Math.cos(10*Math.PI/180),M=Math.sin(10*Math.PI/180),x=S=>{const t=S[0],v=S[2],w={x:v.x-t.x,y:v.y-t.y};let k=Math.sqrt(w.x*w.x+w.y*w.y)/2/a*M;v.y<t.y&&(k=-k);const G={x:{x:Math.sqrt(w.x*w.x+w.y*w.y)/2,y:k}.x,y:k},$=Math.atan2(v.y-t.y,v.x-t.x)*(180/Math.PI),P=_(G.x,G.y,$),E={x:P.x+t.x,y:P.y+t.y};S[1].x=E.x,S[1].y=E.y;const{prev:H,next:O}=(0,C.wX)(S,1);S[1].prev=H,S[1].next=O,S[1].type="mirrored"},g=S=>{let{currentElbowItem:t,moveAnchor:v,cursorWorldPos:w,nextPickPoint:k}=S;const{dPathList:W,middleIsAdjusted:K}=t.hotAttr.elbow,G=(0,C.YW)(t.key,{closed:!1,points:W});let $;if(k.key){const L=k;$=G.inverted().apply({x:Math.round(L.x),y:Math.round(L.y)})}else $=G.inverted().apply({x:Math.round(w.x),y:Math.round(w.y)});const P=JSON.parse(JSON.stringify(W));v==="start"?(P[0].x=$.x,P[0].y=$.y,K?b(P):x(P)):v==="end"?(P[2].x=$.x,P[2].y=$.y,K?b(P):x(P)):(P[1].x=$.x,P[1].y=$.y);const E={closed:!1,points:P},{x:H,y:O,w:V,h:Q}=(0,h.zh)({key:t.key,vector:E}),N={x:H,y:O,w:V,h:Q,elbow:{...t.hotAttr.elbow,dPathList:P}};return v==="start"?(N.refFromKey=k.key,N.elbow.fromDirection=k.direction):v==="end"?(N.refToKey=k.key,N.elbow.toDirection=k.direction):N.elbow.middleIsAdjusted=!0,{...t,hotAttr:{...t.hotAttr,...N}}}},64012:(He,ee,e)=>{"use strict";e.d(ee,{X:()=>co,T:()=>Io});var n=e(95549),r=e(38502),c=e(15515),o=e(71190),I=e(32409),u=e(67787),d=e(17307),C=e(35719);const h=u.Ay.section.withConfig({displayName:"styles__StyledAppearance",componentId:"sc-1n1m5vv-0"})(["width:240px;padding:0 10px 0 16px;color:",";>:not(:first-child){margin-top:2px;}.keyboard-size{width:100px;margin-left:44px;> label{width:100px;}}.tab-item-side{white-space:nowrap;input{margin-left:5px;}}.appearance-line{display:flex;align-items:center;color:",";",";.left-label{height:14px;color:",";line-height:14px;white-space:nowrap;}&.keyboad-line{margin-top:16px;}&.qrcode-color{.left-label{margin-right:28px;}}&.enum-rect-line{margin-top:2px;}.enum-color-rect{width:16px;height:16px;border-radius:1px;margin-left:2px;margin-right:2px;cursor:pointer;box-sizing:border-box;&.border{border:1px solid #e5e5e5;}&.active{border:1px solid #e5e5e5;outline:2px solid #f2f2f2;}}}.divider{margin:7px 0;border-top:1px solid ",";}.slider_size,.slider_icon{height:36px;flex:1;justify-content:flex-start;.left-label{width:54px;}.var-input{margin-left:0 !important;}.slider-size-input{margin-left:16px;.WorkspaceInputNumber{width:64px;}}.colorButton{margin-left:16px;}.color-btn-has-hex-input{margin-left:7px;}}.font-setting{justify-content:flex-start;.left-label.text_kbd{&.color{margin-right:26px;}&.size{margin-right:17px;}}}&.isDigitalStepper{> div:last-child{margin-bottom:0;}}"],On=>On.theme.color_text_L2,On=>On.theme.color_text_L2,C.B3,On=>On.theme.color_text_L2,On=>On.theme.color_bg_border_01),i=(0,u.DU)([".DesignDropdownMenu{&.border-width-menu{transition:unset !important;border:none;box-shadow:none;.content{padding:0 !important;border-radius:8px !important;position:relative;}}}"]),f=(0,u.Ay)(d.C).withConfig({displayName:"styles__StyledLibOpenIcon",componentId:"sc-1n1m5vv-1"})(["border-radius:4px;cursor:pointer;margin-left:auto;margin-right:2px;&:hover{background-color:",";}&:active{background-color:",";}"],On=>On.theme.color_btn_secondary_hover,On=>On.theme.color_btn_secondary_hover);var p=e(59189),s=e(80666),l=e(72214);const _="position",b="mp_"+_,a=["children"];class M extends r.Component{constructor(){super(...arguments),(0,n.A)(this,"state",{show:(0,c.Yt)(b,!0,c.qW.Boolean)}),(0,n.A)(this,"handleChange",()=>{const{show:Cn}=this.state;(0,c.a0)(b,!Cn,c.qW.Boolean),this.setState({show:!Cn})})}shouldComponentUpdate(Cn,qe,vn){return this.props.isDraggingItem&&Cn.isDraggingItem?!1:(0,p.N)(a).call(this,Cn,qe)}render(){const{show:Cn}=this.state,qe=this.props.children.findIndex(vn=>vn.key===s.z.UsedRefAppearPanel)===-1&&this.props.children.findIndex(vn=>vn.key===s.z.CanShowLibPlhPanel)!==-1;return(0,l.jsxs)(o.A,{collapse:!Cn,title:I18N.SettingPanel.inspector[_],headerChildren:qe&&(0,l.jsx)(I.r,{type:"appear"}),onChange:this.handleChange,children:[(0,l.jsx)(h,{className:"appearance-body",children:this.props.children}),(0,l.jsx)(i,{})]})}}var x=e(5680),g=e(36620),S=e(44518),t=e(38571),v=e(4648),w=e(23089);const k=u.Ay.div.withConfig({displayName:"styles__StylesArrowSetting",componentId:"sc-8yzgk2-0"})([".appearance-line{.left-label{width:62px;display:flex;align-items:center;}&:not(:first-child){margin-top:2px;}}.border{.border-select-size{margin-right:6px;button{.border-line{color:",";}}}.WorkspaceSelect,.WorkspaceInputNumber{width:69px;}.strokeWidth + .toolbar-dropdown-opener .var-input{margin-left:0 !important;}}.point{.arrow-setting-item{&.firstSelect,&.endSelect{.WorkspaceSelect{width:69px;button{width:55px;justify-content:flex-start;.svg-icon{width:38px;height:10px;}}}}&.firstSelect{margin-right:6px;}&.endSelect{button{.svg-icon{transform:rotate(180deg);}}}}}.border,.point{display:flex;justify-content:space-between;.right-content{flex:1;display:flex;align-items:center;}}.arrowSettingLine{height:1px;width:calc(100% + 14px);background:",";margin-bottom:16px;}.elbow-type{ol{}.radio-option{border-radius:4px;color:",";.move-cube.active{background:",";}}.svg-icon{width:24px;height:24px;}}"],On=>On.theme.color_text_L1,On=>On.theme.color_bg_border_02,On=>On.theme.color_text_L1,On=>On.theme.color_btn_secondary_active);var W=e(53732),K=e.n(W),G=e(39306),$=e(54460),P=e(97453),E=e(21793),H=e(49989),O=e(56849),V=e(30523);const Q=["2","5","7","9"],N=[1,2,3,4,5,6,7,8,9],L=()=>[{label:(0,l.jsx)(d.C,{name:"setting_panel/elbow_type_rounded"}),value:"rounded",tip_title:I18N.SettingPanel.elbow_type_rounded},{label:(0,l.jsx)(d.C,{name:"setting_panel/elbow_type_sharp"}),value:"sharp",tip_title:I18N.SettingPanel.elbow_type_sharp},{label:(0,l.jsx)(d.C,{name:"setting_panel/elbow_type_straight"}),value:"straight",tip_title:I18N.SettingPanel.elbow_type_straight},{label:(0,l.jsx)(d.C,{name:"setting_panel/elbow_type_curve"}),value:"curve",tip_title:I18N.SettingPanel.elbow_type_curve}];class U extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"INPUT_TYPE_LIST",[{label:I18N.SettingPanel.none,value:"0"}].concat(G.Qb.map(Cn=>{let{settingIconName:qe,value:vn}=Cn;return{label:(0,l.jsx)(d.C,{className:"reverse",name:qe}),value:String(vn)}}))),(0,n.A)(this,"onChangeProxy",(Cn,qe,vn)=>{const{onChange:Jn,selections:ao,supAttr:no,dispatch:ke}=this.props;Jn({value:qe,attr:Cn,selections:ao,dispatch:ke,supAttr:no,refVar:vn}),(0,E.E)(Cn,qe)}),(0,n.A)(this,"handleChangeBc",(Cn,qe,vn)=>{const{arrowStroke:Jn,refVars:ao}=this.props,no=(ao==null?void 0:ao.elbow)||(ao==null?void 0:ao.arrow);this.onChangeProxy("arrowStroke",{...Jn,[qe]:Cn},{...no==null?void 0:no.arrowStroke,[qe]:vn})}),(0,n.A)(this,"handleChangeArrowType",(Cn,qe)=>{const{arrowTypes:vn,anchorFromType:Jn,anchorToType:ao}=this.props,no=[...vn];qe===Jn&&(no[0]=Number(Cn)),qe===ao&&(no[1]=Number(Cn));const ke=no;(qe==="startAnchor"||qe==="endAnchor")&&(ke[0]=P.pt[no[0]],ke[1]=P.qs[no[1]]),this.onChangeProxy(Jn,ke[0]),this.onChangeProxy(ao,ke[1])}),(0,n.A)(this,"handleChangeElbowType",Cn=>{const{dispatch:qe}=this.props;qe({type:"entry:elbow:type:transform",payload:{nextType:Cn}}),(0,E.E)("elbowType",Cn)})}render(){var Cn,qe;const{arrowTypes:vn,arrowStroke:Jn,reverseArrow:ao,anchorFromType:no,anchorToType:ke,supAttr:$n,elbow:$t,refVars:cn}=this.props,{INPUT_TYPE_LIST:xt}=this,Et=$n!=="elbow"?xt:xt.filter(hn=>!Q.includes(hn.value)),jt=(cn==null||(Cn=cn.elbow)==null?void 0:Cn.arrowStroke)||(cn==null||(qe=cn.arrow)==null?void 0:qe.arrowStroke),Jt=(0,l.jsx)("div",{className:"arrow-setting-item",children:(0,l.jsx)(V.Yw,{type:"number",attr:"bdrWidth",inputClassName:"strokeWidth",menuClassName:"arrow-setting-menu",value:Jn.bdrWidth,min:1,optionList:N,onConfirm:(hn,_o)=>this.handleChangeBc(hn,"bdrWidth",_o),showCaretIcon:!0,refVar:jt==null?void 0:jt.bdrWidth})}),In=(0,l.jsx)("div",{className:"arrow-setting-item "+(ao?"endSelect":"firstSelect"),children:(0,l.jsx)(w.mq,{className:"select",attr:no,optionList:Et,menuClassName:"arrow_type_select_menu",value:String(vn[0]),onChange:this.handleChangeArrowType})}),En=(0,l.jsx)("div",{className:"arrow-setting-item "+(ao?"firstSelect":"endSelect"),children:(0,l.jsx)(w.mq,{className:"select arrow_type_end",attr:ke,optionList:Et,menuClassName:"arrow_type_select_menu arrow_type_select_menu_end",value:String(vn[1]),onChange:this.handleChangeArrowType})});return(0,l.jsxs)(k,{children:[(0,l.jsxs)("div",{className:"appearance-line color height-32",children:[(0,l.jsx)("label",{className:"color-title left-label",children:I18N.SettingPanel.color}),(0,l.jsx)(v.R_,{mode:"input",className:v.EY,supAttr:$n+"-arrowStroke",attr:"bdrColor",color:Jn.bdrColor,onChange:this.handleChangeBc})]}),(0,l.jsxs)("div",{className:K()("appearance-line border height-32",{"margin-right-n6":ENV.IS_WONDER_SHARE}),children:[(0,l.jsx)("label",{className:"border-title left-label",children:I18N.SettingPanel.stroke2}),(0,l.jsxs)("div",{className:"right-content",children:[(0,l.jsx)(O.v,{}),(0,l.jsx)(w.mq,{className:K()("border-select-size arrow-setting-item"),attr:"bdrStyle",menuClassName:"border_style_select_menu",optionList:(0,$.se)(),value:Jn.bdrStyle,onChange:this.handleChangeBc}),Jt]})]}),(0,l.jsxs)("div",{className:K()("appearance-line point height-32",{"margin-right-n6":ENV.IS_WONDER_SHARE}),children:[(0,l.jsx)(O.Y,{}),(0,l.jsx)("label",{className:"point-title left-label",children:I18N.SettingPanel.point}),(0,l.jsx)("div",{className:"right-content",children:ao?(0,l.jsxs)(l.Fragment,{children:[En,In]}):(0,l.jsxs)(l.Fragment,{children:[In,En]})})]}),$n==="elbow"&&(0,l.jsxs)("div",{className:"appearance-line elbow-type height-32",children:[(0,l.jsx)("span",{className:"left-label",children:I18N.SettingPanel.type}),(0,l.jsx)(H.A,{options:L(),value:$t.elbowType,handleChange:this.handleChangeElbowType,isLongTimeHover:!0})]})]})}}var A=e(5649);const D=u.Ay.div.withConfig({displayName:"styles__StyledToolTipArrowSettingPanel",componentId:"sc-10egyst-0"})(["&.tooltip-settings{padding-top:10px;margin-top:10px;border-top:1px solid ",";.line{display:flex;align-items:center;.tooltip-size{&:lang(en){width:111px;}.WorkspaceSelect{width:100%;}}}}"],On=>On.theme.color_bg_border_01);class B extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"TOOTIP_DIRECTION_LIST",[{label:I18N.SettingPanel.top,value:"top"},{label:I18N.SettingPanel.left,value:"left"},{label:I18N.SettingPanel.right,value:"right"},{label:I18N.SettingPanel.down,value:"bottom"}]),(0,n.A)(this,"handleChange",(Cn,qe)=>{const{selections:vn,onChange:Jn,dispatch:ao}=this.props;Jn({value:Cn,attr:qe,dispatch:ao,supAttr:"tooltip",selections:vn})}),(0,n.A)(this,"handleIntChange",(Cn,qe)=>{const vn=parseInt(Cn)||0;this.handleChange(vn,qe)})}render(){const{TOOTIP_DIRECTION_LIST:Cn}=this,{tooltip:qe}=this.props,{placement:vn,offset:Jn,arrowSize:ao}=qe;return(0,l.jsxs)(D,{className:"tooltip-settings",children:[(0,l.jsxs)("div",{className:"line height-32",children:[(0,l.jsx)("label",{className:"left-label",children:I18N.SettingPanel._ttPlacement}),(0,l.jsx)("div",{className:"right-content tooltip-size",children:(0,l.jsx)(w.mq,{className:"select",attr:"placement",menuClassName:w.it,optionList:Cn,value:vn,onChange:this.handleChange})})]}),(0,l.jsxs)("div",{className:"line height-32",children:[(0,l.jsx)("label",{className:"left-label",children:I18N.SettingPanel._ttOffset}),(0,l.jsx)("div",{className:"right-content tooltip-size",children:(0,l.jsx)(A.A,{className:"width-66",attr:"offset",value:Jn,onConfirm:this.handleIntChange})})]}),(0,l.jsxs)("div",{className:"line height-32",children:[(0,l.jsx)("label",{className:"left-label",children:I18N.SettingPanel._ttArrowSize}),(0,l.jsx)("div",{className:"right-content tooltip-size",children:(0,l.jsx)(A.A,{className:"width-66",attr:"arrowSize",value:ao,onConfirm:this.handleIntChange})})]})]})}}const j=(0,r.memo)(On=>{let{textColor:Cn,supAttr:qe,selections:vn,dispatch:Jn,onChange:ao}=On;const no=(ke,$n)=>{ao({value:ke,attr:$n,selections:vn,dispatch:Jn,supAttr:qe})};return(0,l.jsxs)(F,{className:"line height-32",children:[(0,l.jsx)("label",{className:"left-label background-label",children:I18N.SettingPanel.text}),(0,l.jsx)("div",{className:"right-content",children:(0,l.jsx)("div",{className:"side",children:(0,l.jsx)(v.R_,{className:v.EY,mode:"input",supAttr:"textV0",attr:"textColor",color:Cn,onChange:no})})})]})}),F=u.Ay.div.withConfig({displayName:"indexui__StyledTextStatusBarPanel",componentId:"sc-1vwvhf9-0"})([".right-content{flex:1;}.left-label{margin-right:17px;margin-left:22px;}"]),Y=(0,r.memo)(On=>{let{foreground:Cn,background:qe,dispatch:vn,onChange:Jn,selections:ao}=On;const no=(ke,$n)=>{Jn({value:ke,attr:$n,dispatch:vn,supAttr:"qrCode",selections:ao})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"appearance-line qrcode-color height-32",children:[(0,l.jsx)("label",{className:"left-label background-label",children:I18N.SettingPanel.foreground_color}),(0,l.jsx)(v.R_,{mode:"input",className:v.EY,supAttr:"qrCode",attr:"foregroundColor",color:Cn.color,onChange:no})]}),(0,l.jsxs)("div",{className:"appearance-line qrcode-color height-32",children:[(0,l.jsx)("label",{className:"left-label background-label",children:I18N.SettingPanel.bg_color}),(0,l.jsx)(v.R_,{mode:"input",className:v.EY,supAttr:"qrCode",attr:"backgroundColor",color:qe.color,onChange:no})]})]})}),X=[16,20,24,32,40,48,60,72].map(On=>({label:On,value:On})),z=[8,12,16,24,32,40,52,64].map(On=>({label:On,value:On})),Z=On=>{var Cn,qe;let{sliderSize:vn,is:Jn,iconColor:ao,selections:no,onChange:ke,dispatch:$n,refVars:$t}=On;const cn=(xt,Et,jt)=>{let Jt=xt;(Et==="sliderSize"||Et==="iconSize")&&(Jt=parseInt(Jt)||0),ke({value:Jt,attr:Et,dispatch:$n,supAttr:"digitalStepper",selections:no,refVar:jt})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"line slider_size height-32",children:[(0,l.jsx)("label",{className:"left-label",children:I18N.SettingPanel.button_size}),(0,l.jsx)(V.Yw,{type:"number",attr:"sliderSize",min:0,max:72,refVar:$t==null||(Cn=$t.digitalStepper)==null?void 0:Cn.sliderSize,value:vn,optionList:X,onConfirm:(xt,Et)=>cn(xt,"sliderSize",Et),className:"slider-size-input"})]}),(0,l.jsxs)("div",{className:"line slider_icon height-32",children:[(0,l.jsx)("label",{className:"left-label",children:I18N.SettingPanel.icon_size}),(0,l.jsx)(V.Yw,{type:"number",attr:"iconSize",min:0,max:64,refVar:$t==null||(qe=$t.digitalStepper)==null?void 0:qe.iconSize,value:Jn,optionList:z,onConfirm:(xt,Et)=>cn(xt,"iconSize",Et),className:"slider-size-input"})]}),(0,l.jsx)("div",{className:"line slider_icon height-32",children:(0,l.jsxs)("div",{className:"line slider_icon height-32",children:[(0,l.jsx)("label",{className:"left-label",children:I18N.SettingPanel.icon_color}),(0,l.jsx)(v.R_,{mode:"input",className:v.EY,supAttr:"digitalStepper",attr:"iconColor",color:ao,onChange:cn})]})})]})},J=(0,r.memo)(On=>{let{canIconSize:Cn,canSetIconColor:qe,is:vn,fill:Jn,iconColor:ao,iconColorAttr:no,selections:ke,refStyles:$n,dispatch:$t,onChange:cn}=On;const xt=(jt,Jt)=>{const In=parseInt(jt)||0;cn({value:In,attr:Jt,dispatch:$t,selections:ke})},Et=jt=>{cn({value:jt,attr:"fill",dispatch:$t,selections:ke}),no==="solidColor"&&ao==="unset"&&cn({value:"rgba(16,16,16,1)",attr:"iconColor",dispatch:$t,supAttr:"iconData",selections:ke})};return(0,l.jsxs)(l.Fragment,{children:[Cn&&(0,l.jsx)("div",{className:"line height-32",children:(0,l.jsxs)("div",{className:K()("tab-item-side","side"),children:[(0,l.jsx)("label",{children:I18N.SettingPanel.is}),(0,l.jsx)(A.A,{attr:"is",min:0,value:vn,onConfirm:xt})]})}),qe&&(0,l.jsxs)("div",{className:"line height-32",children:[(0,l.jsx)("label",{className:"left-label",style:{marginRight:"25px"},children:I18N.SettingPanel.icon_color}),(0,l.jsx)("div",{className:"right-content flex-width",children:(0,l.jsx)(v.R_,{className:v.EY,mode:"input",supAttr:"fill",attr:no,color:Jn,refStyles:$n,onChange:Et})})]})]})});var te=e(76199);const ge=On=>{var Cn;let{iconSize:qe,iconColor:vn,selections:Jn,refVars:ao,onChange:no,dispatch:ke}=On;const $n=($t,cn,xt)=>{no({value:$t,attr:cn,dispatch:ke,supAttr:"mobileTabBars",selections:Jn,refVar:xt})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"line font-setting height-32",children:[(0,l.jsx)("label",{className:"left-label text_kbd color",children:I18N.SettingPanel.icon_color}),(0,l.jsx)(v.R_,{mode:"input",className:v.EY,supAttr:"mobileTabBars",attr:"iconColor",color:vn,onChange:$n})]}),(0,l.jsxs)("div",{className:"line font-setting height-32",children:[(0,l.jsx)("label",{className:"left-label text_kbd size",children:I18N.SettingPanel.icon_size}),(0,l.jsx)(te.A,{attr:"iconSize",fontSize:qe,refVar:ao==null||(Cn=ao.mobileTabBars)==null?void 0:Cn.iconSize,handleChange:$n})]})]})},pe=(0,r.memo)(On=>{let{kbdStyle:Cn,selections:qe,onChange:vn,dispatch:Jn}=On;const ao=[{label:I18N.SettingPanel.text_kbd,value:"text"},{label:I18N.SettingPanel.numeric_kbd,value:"numeric"}],no=(ke,$n)=>{vn({value:ke,attr:$n,selections:qe,dispatch:Jn}),Jn({type:"entry:auto:show:hide:item"})};return(0,l.jsxs)("div",{className:"appearance-line keyboad-line",children:[(0,l.jsx)("label",{className:"left-label",children:I18N.SettingPanel.kbd_style}),(0,l.jsx)("div",{className:"right-content keyboard-size",children:(0,l.jsx)(w.mq,{className:"select",attr:"numeric",optionList:ao,value:Cn,onChange:no})})]})});var Ce=e(61068);const me=(0,r.memo)(On=>{let{isChecked:Cn,selections:qe,onChange:vn,dispatch:Jn}=On;const ao=(no,ke)=>{vn({value:no,attr:ke,selections:qe,dispatch:Jn})};return(0,l.jsx)("div",{className:"line",style:{marginBottom:10},children:(0,l.jsx)(Ce.A,{attr:"isChecked",label:I18N.SettingPanel.checked,isChecked:Cn,onChange:ao})})});var be=e(80077),ie=e(20089),oe=e(37505),he=e(44805),ce=e(59025),re=e(19013);const fe=u.Ay.ol.withConfig({displayName:"style__StyledNodeStatus",componentId:"sc-1pyjt10-0"})(["div{display:flex;align-items:center;height:32px;.node-input-number{width:64px;margin-left:26px;}}"]);class Se extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleChangeNodeHeight",Cn=>{const{onChange:qe,selections:vn,dispatch:Jn}=this.props;qe({value:Cn,attr:"nodeHeight",supAttr:"tree",selections:vn,dispatch:Jn})}),(0,n.A)(this,"handleChangeNodeIndent",Cn=>{const{onChange:qe,selections:vn,dispatch:Jn}=this.props;qe({value:Cn,attr:"nodeIndent",supAttr:"tree",selections:vn,dispatch:Jn})})}render(){const{tree:Cn}=this.props;return(0,l.jsxs)(fe,{children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"leftLabel",children:I18N.SettingPanel.height}),(0,l.jsx)(A.A,{className:"node-input-number",attr:"nodeHeight",value:Cn.nodeHeight,min:1,max:9999,optionList:Me,onConfirm:this.handleChangeNodeHeight})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"leftLabel",children:"\u7F29\u8FDB"}),(0,l.jsx)(A.A,{className:"node-input-number",attr:"nodeIndent",value:Cn.nodeIndent,min:1,max:9999,optionList:Me,onConfirm:this.handleChangeNodeIndent})]})]})}}const Me=[32,36,40,44,48,56,64,72].map(On=>({label:On,value:On,shortcutKey:""}));var Ie=e(31569),de=e(98915),xe=e(2099),Le=e(64320);const ve=On=>{let{value:Cn,attr:qe,dispatch:vn,supAttr:Jn,selections:ao,refVar:no}=On;(0,he.c)({value:Cn,attr:qe,dispatch:vn,supAttr:Jn,selections:ao,refVar:no}),vn({type:"entry:auto:show:hide:item"})},je=On=>{let{value:Cn,attr:qe,refVar:vn,dispatch:Jn,selections:ao}=On;const no=ao.map(ke=>{var $n;if(sdkStore.isTrashed(ke))return null;const $t=sdkStore.getHotItem(ke);if(!$t)return null;let cn=$t==null||($n=$t.hotAttr)==null?void 0:$n.refStyles;return Le.vZ.includes(qe)&&(cn={...cn,appear:void 0}),{key:ke,hotAttr:{[qe]:Cn,...ie.Q.USE_CLIP_TEXT.includes($t.hotAttr.type)&&$t.hotAttr.richTextV1&&!$t.hotAttr.richTextV1.isClipText&&{richTextMetric:(0,de.Ro)({...$t.hotAttr,[qe]:Cn})},refVars:{...$t.hotAttr.refVars,[qe]:vn},refStyles:cn}}}).filter(ke=>!!ke);Jn({type:"entry:widget:change",payload:{flatChgList:no}}),Jn({type:"entry:auto:show:hide:item"})},We=On=>{let{attr:Cn,value:qe,refVar:vn,dispatch:Jn}=On;if(Cn==="borderRadiusIsVisible"){Jn({type:"entry:vector:update:borderRadiusIsVisible",payload:{borderRadiusIsVisible:qe}});return}Jn({type:"entry:vector:update:radius",payload:{radius:qe,refVar:vn}})},Ae={component:x.R2,params:{canSetSingleRadius:!0},getter:[oe.pQ[s.z.BorderRadiusPanel][re.m9]],setter:{onChange:On=>{let{value:Cn,attr:qe,dispatch:vn,supAttr:Jn,selections:ao,refVar:no}=On;if(qe==="borderRadiusIsVisible"){ve({value:Cn,attr:qe,dispatch:vn,supAttr:Jn,selections:ao,refVar:no});return}if(ao.length===1){ve({value:Cn,attr:qe,dispatch:vn,supAttr:Jn,selections:ao,refVar:no});return}const ke=[],$n=[],$t=[],cn=[];if(ao.forEach(Et=>{var jt;const{vector:Jt,star:In,polygon:En}=(jt=sdkStore.getHotItem(Et))==null?void 0:jt.hotAttr;Jt?ke.push(Et):In?$n.push(Et):En?$t.push(Et):cn.push(Et)}),cn.length&&ve({value:Cn,attr:qe,dispatch:vn,supAttr:Jn,selections:cn,refVar:no}),typeof Cn=="object"){var xt;Cn=Cn.radiusTL,no=(xt=no)==null?void 0:xt.radiusTL}ke.length&&We({value:Cn,refVar:no,dispatch:vn}),$n.length&&ve({value:Cn,refVar:no,attr:"cornerRadius",supAttr:"star",selections:$n,dispatch:vn}),$t.length&&ve({value:Cn,refVar:no,attr:"cornerRadius",supAttr:"polygon",selections:$t,dispatch:vn})}}},we={...Ae,getter:[oe.pQ[s.z.BorderRadiusPanel][re.m9],oe.pQ[s.z.BorderRadiusPanel][ie.x.WImage]]},_e={...Ae,getter:[oe.pQ[s.z.BorderRadiusPanel][ie.x.WPolygon]],params:{canSetSingleRadius:!1,supAttr:"polygon",attr:"cornerRadius"}},Te={...Ae,getter:[oe.pQ[s.z.BorderRadiusPanel][ie.x.WStar]],params:{canSetSingleRadius:!1,supAttr:"star",attr:"cornerRadius"}},Ye={...Ae,params:{canSetSingleRadius:!1}},Fe={...Ye,params:{canSetSingleRadius:!1,max:100},getter:[oe.pQ[s.z.BorderRadiusPanel][ie.x.WVector]],setter:{onChange:We}},Ve=function(On){return On===void 0&&(On="new"),{component:g.s,params:{bgColorText:"fill"},getter:[oe.pQ[s.z.FillPanel][On]],setter:{onChange:ve}}},rt={component:g.j,params:{bgColorText:"fill"},getter:[oe.pQ[s.z.FillPanel].segmentedControl],setter:{onChange:ve}},Ue={component:S.$,params:{canSetBorderVisibility:!0,canBorderWidth:!0,canBorderStyle:!0,colorButtonAttr:"bdrColor"},getter:[oe.pQ[s.z.BorderPanel][re.m9]],setter:{onChange:je}},et={...Ue,params:{canSetBorderVisibility:!1,canBorderWidth:!0,canBorderStyle:!0,colorButtonAttr:"bdrColor"}},lt={component:Se,params:{},getter:[On=>{let{selectedItems:Cn}=On;return{tree:(0,Ie.i)(Cn,"tree")}}],setter:{onChange:ve}},Je={...Ue,params:{canSetBorderVisibility:!1,canBorderWidth:!0,canBorderStyle:!0,colorButtonAttr:"bdrColor"}},Xe={...Ue,params:{canSetBorderVisibility:!1,canBorderWidth:!0,canBorderStyle:!1}},st={...Ue,params:{canSetBorderVisibility:!0,canBorderWidth:!1,canBorderStyle:!1}},nt={...Ue,params:{canSetBorderVisibility:!1,canBorderWidth:!1,canBorderStyle:!0}},tt={component:t.y,params:{type:"box",attr:"box_shadow"},getter:[oe.pQ[s.z.BoxShadowsPanel][re.m9]],setter:{onChange:ve}},ct={component:t.y,params:{type:"svg",attr:"box_shadow"},getter:[oe.pQ[s.z.BoxShadowsPanel][re.m9]],setter:{onChange:ve}},ht={component:t.y,params:{type:"text",attr:"text_shadow"},getter:[oe.pQ[s.z.TextShadowsPanel][re.m9]],setter:{onChange:ve}},It={component:U,params:{},getter:[oe.pQ[s.z.ArrowSettingPanel][re.m9]],setter:{onChange:ve}},it={component:U,params:{},getter:[oe.pQ[s.z.ArrowSettingPanel][ie.x.WElbow]],setter:{onChange:ve}},Tt={component:B,params:{},getter:[oe.pQ[s.z.ToolTipArrowSettingPanel][re.m9]],setter:{onChange:ve}},Lt={component:j,params:{},getter:[oe.pQ[s.z.TextStatusBarPanel][re.m9]],setter:{onChange:ve}},Rt={component:Y,params:{},getter:[oe.pQ[s.z.QRCodeSettingPanel][re.m9]],setter:{onChange:ve}},Wt={component:Z,params:{},getter:[oe.pQ[s.z.DigitalStepperPanel][re.m9]],setter:{onChange:ve}},Kt={component:J,params:{canSetIcon:!0,canIconSize:!1,canSetIconColor:!0,isSvgIconPath:!0,iconColorAttr:"solidColor"},getter:[oe.pQ[s.z.IconSettingsPanel][re.m9]],setter:{onChange:ve}},Gt={...Kt,getter:[oe.pQ[s.z.IconSettingsPanel].old],params:{canSetIcon:!0,canIconSize:!0,canSetIconColor:!0,isSvgIconPath:!1,iconColorAttr:"tc"}},St={component:ge,params:{},getter:[oe.pQ[s.z.MobileTabBarsIconPanel][re.m9]],setter:{onChange:ve}},Hn={component:pe,params:{},getter:[oe.pQ[s.z.UnifiedKeyboardPanel][re.m9]],setter:{onChange:ve}},uo={component:me,params:{},getter:[oe.pQ[s.z.CheckPanel][re.m9]],setter:{onChange:ve}},Yn=[{component:()=>null,params:{},getter:[()=>{}],setter:{}},s.z.CanShowLibPlhPanel],bo=[[Ae,s.z.BorderRadiusPanel],[Ve(),s.z.FillPanel],[Ue,s.z.BorderPanel],[tt,s.z.BoxShadowsPanel],Yn],Ke=[[Ye,s.z.BorderRadiusPanel],[Ve(),s.z.FillPanel],[et,s.z.BorderPanel],[tt,s.z.BoxShadowsPanel],Yn],ut=[[Ae,s.z.BorderRadiusPanel],[Ve(),s.z.FillPanel],[et,s.z.BorderPanel],[tt,s.z.BoxShadowsPanel]],zt=[[Ae,s.z.BorderRadiusPanel],[Ve(),s.z.FillPanel],[Je,s.z.BorderPanel],[tt,s.z.BoxShadowsPanel],Yn],bt=[[Ve(),s.z.FillPanel]],xn=[[Ae,s.z.BorderRadiusPanel],[tt,s.z.BoxShadowsPanel]],kn=[[Ae,s.z.BorderRadiusPanel],[Ve(),s.z.FillPanel],[Xe,s.z.BorderPanel],[tt,s.z.BoxShadowsPanel],[Tt,s.z.ToolTipArrowSettingPanel]],gn=[[uo,s.z.CheckPanel]],Zn=[[_e,s.z.BorderRadiusPanel],[Ve(),s.z.FillPanel],[Je,s.z.BorderPanel],[tt,s.z.BoxShadowsPanel],Yn],Pn=[[Te,s.z.BorderRadiusPanel],[Ve(),s.z.FillPanel],[Je,s.z.BorderPanel],[tt,s.z.BoxShadowsPanel],Yn],_n=[[Ae,s.z.BorderRadiusPanel],[Ve(),s.z.FillPanel],[Ue,s.z.BorderPanel],[tt,s.z.BoxShadowsPanel],Yn],Wn=[[we,s.z.BorderRadiusPanel],[Ve(),s.z.FillPanel],[Je,s.z.BorderPanel],[tt,s.z.BoxShadowsPanel],Yn],Ln=[[Ve(ie.x.WIphoneXSB),s.z.FillPanel],[Lt,s.z.TextStatusBarPanel]],to=[{component:be.O,params:{},getter:[()=>{}],setter:{}},s.z.UsedRefAppearPanel],mo={[ie.x.WImage]:Wn,[ie.x.WPlaceholder]:[[Ae,s.z.BorderRadiusPanel],[Ve(),s.z.FillPanel],[Je,s.z.BorderPanel],[tt,s.z.BoxShadowsPanel],Yn],[ie.x.WDropMenu]:zt,[ie.x.WTriangleTL]:bt,[ie.x.WTriangleB]:bt,[ie.x.WMSelect]:zt,[ie.x.WAudio]:xn,[ie.x.WVideo]:xn,[ie.x.WMTooltip]:kn,[ie.x.WOval]:[[Ve(),s.z.FillPanel],[Je,s.z.BorderPanel],[tt,s.z.BoxShadowsPanel],Yn],[ie.x.WRect]:[[Ae,s.z.BorderRadiusPanel],[Ve(),s.z.FillPanel],[Ue,s.z.BorderPanel],[tt,s.z.BoxShadowsPanel],Yn],[ie.x.Canvas]:[[Ve("solidFillOnly"),s.z.FillPanel]],[ie.x.CanvasAsOverlay]:[[Ae,s.z.BorderRadiusPanel],[Ve(),s.z.FillPanel],[Ue,s.z.BorderPanel],[tt,s.z.BoxShadowsPanel],Yn],[ie.x.WRichText]:[[ht,s.z.TextShadowsPanel]],[ie.x.WLine]:[[Je,s.z.BorderPanel],[ct,s.z.BoxShadowsPanel]],[ie.x.WVe]:[[nt,s.z.BorderPanel]],[ie.x.WArrow]:[[It,s.z.ArrowSettingPanel],[tt,s.z.BoxShadowsPanel]],[ie.x.WIphoneXSB]:Ln,[ie.x.WIphoneSB]:Ln,[ie.x.WAndroidSB]:Ln,[ie.x.WMTextInput]:bo,[ie.x.WMTextArea]:bo,[ie.x.WQRCode]:[[Rt,s.z.QRCodeSettingPanel]],[ie.x.WCollapse]:[[Ae,s.z.BorderRadiusPanel],[Je,s.z.BorderPanel]],[ie.x.WSegmentedControl]:[[Ae,s.z.BorderRadiusPanel],[rt,s.z.FillPanel],[Je,s.z.BorderPanel]],[ie.x.WPaginationMobile]:[[Ae,s.z.BorderRadiusPanel],[Ve(),s.z.FillPanel],[Je,s.z.BorderPanel]],[ie.x.WPaginationWeb]:[[Ae,s.z.BorderRadiusPanel],[Ve(),s.z.FillPanel],[Je,s.z.BorderPanel]],[ie.x.WDigitalStepper]:[[Wt,s.z.DigitalStepperPanel],[Ae,s.z.BorderRadiusPanel],[Ve(),s.z.FillPanel],[Je,s.z.BorderPanel]],[ie.x.WIcon]:[[Ae,s.z.BorderRadiusPanel],[Kt,s.z.SVGIconPathSettings],[Je,s.z.BorderPanel],[ht,s.z.TextShadowsPanel]],[ie.x.WTabItem]:[[Gt,s.z.IconPathSettings],[tt,s.z.BoxShadowsPanel]],[ie.x.WMobileTabBars]:[[Ve(),s.z.FillPanel],[st,s.z.BorderPanel],[St,s.z.MobileTabBarsIconPanel]],[ie.x.WUnifiedKeyboard]:[[Hn,s.z.UnifiedKeyboardPanel]],[ie.x.WSearchBar]:[[Ve(),s.z.FillPanel],[Je,s.z.BorderPanel],[tt,s.z.BoxShadowsPanel]],[ie.x.WIosCB]:gn,[ie.x.WAndroidRadio]:gn,[ie.x.WAndroidCB]:gn,[ie.x.WPolygon]:Zn,[ie.x.WStar]:Pn,[ie.x.WButton]:_n,[ie.x.WButtonSolid]:_n,[ie.x.WElbow]:[[it,s.z.ArrowSettingPanel]],[ie.x.WVector]:[[Fe,s.z.BorderRadiusPanel],[Ve(ie.x.WVector),s.z.FillPanel],[Je,s.z.BorderPanel],[tt,s.z.BoxShadowsPanel],Yn],[ie.x.WTriangle]:[[Ye,s.z.BorderRadiusPanel],[Ve(),s.z.FillPanel],[Je,s.z.BorderPanel],[tt,s.z.BoxShadowsPanel],Yn],[ie.x.WFlowOpened]:[[Je,s.z.BorderPanel]],[ie.x.wFlowClosed]:[[Ve(ie.x.wFlowClosed),s.z.FillPanel],[Je,s.z.BorderPanel]],[ie.x.WTree]:[[Ve(ie.x.WTree),s.z.FillPanel],[Ue,s.z.BorderPanel],[lt,s.z.TreeNodePanel]],[re.m9]:bo},Io=[ie.x.WButton,ie.x.WMTextInput,ie.x.WMTextArea,ie.x.WRect,ie.x.WMobileTabBars,ie.x.WTree,ie.x.WDropMenu,ie.x.Canvas,ie.x.WPlaceholder],co=On=>{const Cn=On[0],qe=(0,ce.o9)(Cn),vn=mo[qe]||mo[re.m9],Jn=(0,xe.OP)({selections:[Cn.key],styleType:"appear"});if(On.length===1){const ao=Jn?[to].concat(vn.filter(no=>no[1]!==s.z.BorderPanel&&no[1]!==s.z.BorderRadiusPanel&&no[1]!==s.z.FillPanel&&no[1]!==s.z.BoxShadowsPanel)):vn;return[M,...ao]}else{let ao=[];if(On.some($n=>mo[qe]!==mo[(0,ce.o9)($n)])){const $n=new Map;if(On.some(jt=>jt.hotAttr.type===ie.x.WArrow)){const jt=mo[ie.x.WArrow]||mo[re.m9],[Jt,In]=jt[0];$n.set(In,[Jt,In])}const $t=Array.from($n.values()),cn=On.some(jt=>jt.hotAttr.type===ie.x.WStar||jt.hotAttr.type===ie.x.WPolygon),xt=On.every(jt=>Io.includes((0,ce.o9)(jt)));ao=[...cn?Ke:xt?bo:ut,...$t],ao[1]=ao[1].slice(),On.every(jt=>oe.Ge.includes((0,ce.o9)(jt)))?ao[1].splice(0,1,Ve()):ao[1].splice(0,1,Ve("solidFillOnly"))}else ao=mo[qe]||mo[re.m9];const no=On.every($n=>(0,ce.o9)($n)===qe)&&vn.findIndex($n=>$n[1]===s.z.CanShowLibPlhPanel)!==-1,ke=no&&On.every($n=>Jn&&(0,xe.OP)({selections:[$n.key],styleType:"appear"})===Jn);return no||(ao=ao.filter($n=>$n[1]!==s.z.CanShowLibPlhPanel)),ke&&(ao=[to].concat(ao.filter($n=>$n[1]!==s.z.BorderPanel&&$n[1]!==s.z.BorderRadiusPanel&&$n[1]!==s.z.FillPanel&&$n[1]!==s.z.BoxShadowsPanel))),[M,...ao]}}},64165:(He,ee,e)=>{"use strict";e.d(ee,{CW:()=>$,dG:()=>g,mk:()=>P,q6:()=>E,qO:()=>b});var n=e(27480),r=e(75495),c=e(95657),o=e(65057),I=e(70933),u=e(38502),d=e(18381),C=e(46364),h=e(59890),i=e(70812),f=e(49612);if(e.j!=477)var p=e(18501);var s=e(88132);const l={adjustToLeft(H){return H+20},adjustToRight(H){return-(H+20)},adjustToTop(H){return H+20},adjustToBottom(H){return-(H+20)}},_=(H,O,V)=>{let{x:Q,y:N}=H;const L=O.x-H.x,U=H.x+H.w-(O.x+O.w),A=O.y-H.y,D=H.y+H.h-(O.y+O.h);return L>0?Q+=V.adjustToLeft(L):U>0&&(Q+=V.adjustToRight(U)),A>0?N+=V.adjustToTop(A):D>0&&(N+=V.adjustToBottom(D)),{x:Q,y:N}},b=()=>{const H=(0,d.d4)(c.F6),O=(0,d.d4)(I.X_),V=(0,d.d4)(I.ER),Q=(0,d.d4)(c.Bq),N=(0,d.d4)(c.qr)[Q]||{},{selectedElementList:L=[],selectedElementBounds:U=null}=N,A=(0,d.d4)(I.$S),D=(0,d.d4)(c.OX),{is:B}=(0,r.v)(),j=a(D,B),F=(0,d.d4)(c.Gb),Y=C.dx,X=(0,u.useMemo)(()=>Q?"edit":j?"snapshot":F?"thinking":"generate",[Q,j,F]),z=C.V5[X],Z=C.OW,J=(0,u.useCallback)(()=>{let pe=0,Ce=0;const me=(()=>{if(H)return{x:H.x+10,y:H.y+10};if(Q){const{x:he,y:ce,h:re,w:fe}=sdkStore.getHotBound(Q),Se={x:he-fe/2,y:ce-re/2+10};return L.length===0?Se:{x:Se.x+U.left,y:Se.y+(U.top+U.height)}}return null})(),be=(0,o.mY)(me,O,V);pe=be.x,Ce=be.y;const ie={x:pe,y:Ce,w:Y,h:z},oe={x:A.x,y:A.y,w:A.width,h:A.height};if(!n.rw.containsRect(oe,ie)){const he=_(ie,oe,l);pe=he.x,Ce=he.y}return{left:Math.round(pe),top:Math.round(Ce)}},[O,V,Y,z,A.x,A.y,A.width,A.height,H,Q,U,L.length]),te=(0,u.useMemo)(()=>({top:"calc(100vh - "+z+"px - "+Z+"px)",left:"50%",transform:"translateX(-50%)"}),[z,Z]);return(0,u.useMemo)(()=>{if(j||!H&&!Q)return te;const pe=J();return{top:pe.top,left:pe.left}},[j,te,H,Q,J])},a=(H,O)=>H&&!O,M=()=>{const H=(0,d.d4)(c.Bq),{getEditContentCache:O,setEditContentCache:V,getGenerateContentCache:Q,setGenerateContentCache:N}=h.s5,L=()=>H?O(H):Q(),U=(0,u.useCallback)(F=>H?V(H,F):N(F),[H,V,N]),A=L(),[D,B]=(0,u.useState)(A||"");(0,u.useEffect)(()=>{B(A||"")},[A]);const j=(0,u.useCallback)(F=>{B(F),U(F)},[U]);return[D,j]},x=(H,O)=>{const V=(0,u.useRef)([H]),Q=(0,u.useRef)(0);return[A=>{const D=V.current,B=Q.current;D.length=B+1,D.push(A),Q.current++,O(A)},A=>{const B=Q.current+1;if(B>=V.current.length)return;Q.current++;const j=V.current[B];O(j),A&&A(j)},A=>{const B=Q.current-1;if(B<0)return;Q.current--;const j=V.current[B];O(j),A&&A(j)}]},g=H=>H.stopPropagation(),S=2e3,t=function(H){let{isSnapshotGenerate:O=!1}=H===void 0?{}:H;const V=(0,u.useRef)(null),[Q,N]=(0,u.useState)(!1),[L,U]=M(),A=(0,d.d4)(c.OX),[D,B,j]=x(L,U),F=(0,u.useCallback)(te=>{g(te),N(!0)},[]),Y=(0,u.useCallback)(te=>{g(te),N(!1)},[]),X=(0,u.useCallback)(te=>{const{value:ge}=te.target,pe=ge.length>S?ge.slice(0,S):ge;D(pe)},[D]),z=()=>{const te=V.current;te&&setTimeout(()=>{te.focus(),setTimeout(()=>{const ge=te.value;te.setSelectionRange(ge.length,ge.length)})})},Z=(0,u.useCallback)(()=>{const te=window.getSelection();te.rangeCount&&te.removeAllRanges()},[]),J=(0,u.useMemo)(()=>L.length,[L]);return(0,u.useEffect)(()=>{J>0&&V.current&&V.current.setSelectionRange(0,L.length)},[A,O]),(0,u.useEffect)(()=>{J>=S&&MB.notice({text:I18N.ChatGPT.aicomponent.input_limit_reached,type:"error"})},[J]),{textareaRef:V,updateUserTextContent:D,userTextContent:L,handleChange:X,handleSelectEnd:z,handleClearSelection:Z,isInputComposition:Q,handleCompositionStart:F,handleCompositionEnd:Y,redo:B,undo:j}},v=H=>{let{undo:O,redo:V,isShowOptimumLoading:Q=!1}=H;const N=(0,u.useCallback)(L=>{if(!Q&&(L.stopPropagation(),(L.ctrlKey||L.metaKey)&&["z","Z"].includes(L.key))){if(L.preventDefault(),L.shiftKey){V();return}O()}},[Q,V,O]);(0,u.useEffect)(()=>(document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N)}),[N])},w=H=>{let{isInputComposition:O,userTextContent:V,snapshotBase64Url:Q="",handleSend:N}=H;const L=(0,d.d4)(c.Lu);return(0,u.useCallback)(A=>{L||O||!V&&!Q||N()},[O,L,Q,V,N])},k=H=>{let{handleEsc:O,handleEnter:V}=H;const Q=L=>{L.key==="Enter"&&!L.shiftKey&&(V(L),L.preventDefault())},N=(0,u.useCallback)(L=>{L.key==="Escape"&&O(L)},[O]);return(0,u.useEffect)(()=>(document.addEventListener("keydown",N),()=>document.removeEventListener("keydown",N)),[N]),Q},W=H=>{let{userTextContent:O,updateUserTextContent:V,isSnapshotGenerate:Q,handleSelectEnd:N,handleClearSelection:L}=H;const U=(0,d.wA)(),[A,D]=(0,u.useState)(0),[B,j]=(0,u.useState)(O.length===0),F=C.Ky.length,Y=(0,u.useMemo)(()=>B&&!Q,[B,Q]),X=(0,u.useCallback)(J=>{const te=Math.floor(Math.random()*F),ge=te===A?(A+1)%F:te;D(ge);const pe=C.Ky[ge];V(pe),j(!0),N()},[A,N,F,V]),z=(0,u.useMemo)(()=>!Y&&!Q,[Y,Q]),Z=(0,u.useCallback)(async J=>{L(),U({type:"entry:aiComponent:optimum:handler",payload:{updateUserTextContent:V,userTextContent:O,handleSelectEnd:N}})},[U,L,N,V,O]);return{isShowExamplePrompts:Y,handleExamplePrompts:X,isShowOptimumPrompts:z,handleOptimumPrompts:Z,setIsShowExamplePromptsBtn:j}},K=H=>{let{isSnapshotGenerate:O,isShowOptimumLoading:V}=H;const Q=(0,d.wA)(),N=(0,d.d4)(c.OX),L=(0,u.useCallback)(()=>{if(V)return;Q({type:"entry:aiComponent:switch-snapshot-mode:handler",payload:{nextIsSnapshotMode:!N}})},[Q,N,V]);return{isAIComponentSnapshotMode:N,isShowSnapshotSwitch:!O,handleSnapshotSwitch:L}},G=20,$=10,P=function(H){let{cost:O=G}=H===void 0?{}:H;const V=(0,d.d4)(p.$Z),Q=(0,d.wA)();(0,u.useEffect)(()=>{(async()=>{const A=await(0,s.p6)();Q({type:"ai:update:agentAiPoints",payload:A})})()},[]);const N=(0,u.useMemo)(()=>(V!=null?V:0)<O,[V,O]),L=(0,u.useCallback)(()=>{MB.global.popupHelper.chargeAsync({isBuyAgentPoint:!0,potatoSource:"proto_ai_component_generate_buy"})},[]);return{creditCount:V,isInsufficientCredit:N,costPerGeneration:O,openPurchaseModal:L}},E=()=>{const H=(0,d.wA)(),{is:O}=(0,r.v)(),V=(0,d.d4)(c.Lu),Q=(0,d.d4)(c.xn),{creditCount:N,isInsufficientCredit:L,costPerGeneration:U,openPurchaseModal:A}=P({cost:G}),D=(0,d.d4)(c.Gb),{textareaRef:B,userTextContent:j,handleChange:F,handleSelectEnd:Y,handleClearSelection:X,updateUserTextContent:z,isInputComposition:Z,handleCompositionEnd:J,handleCompositionStart:te,undo:ge,redo:pe}=t(),{isShowExamplePrompts:Ce,handleExamplePrompts:me,isShowOptimumPrompts:be,handleOptimumPrompts:ie,setIsShowExamplePromptsBtn:oe}=W({userTextContent:j,updateUserTextContent:z,isSnapshotGenerate:O,handleSelectEnd:Y,handleClearSelection:X}),{isAIComponentSnapshotMode:he,isShowSnapshotSwitch:ce,handleSnapshotSwitch:re}=K({isSnapshotGenerate:O,isShowOptimumLoading:Q}),fe=(0,u.useCallback)(Te=>{const Ye=Te.length===0,Fe=C.Ky.includes(Te);oe(Ye?!0:Ce&&Fe)},[oe,Ce]),Se=(0,u.useCallback)(Te=>{ge(Ye=>fe(Ye))},[fe,ge]),Me=(0,u.useCallback)(Te=>{pe(Ye=>fe(Ye))},[pe,fe]);v({undo:Se,redo:Me,isShowOptimumLoading:Q});const Ie=(0,u.useCallback)(Te=>{g(Te),H({type:"entry:aiComponent:exit:mode"})},[H]),de=(0,u.useCallback)(Te=>{F(Te),!O&&fe(Te.target.value)},[F,O,fe]),xe=(0,u.useCallback)(()=>{if(L){MB.notice({text:I18N.ChatGPT.aicomponent.insufficient_points,type:"error",duration:3e3}),A();return}const Te=h.F7.getCache();H({type:"entry:aiComponent:send:handler",payload:{userTextContent:j,snapshotBase64Url:Te}}),i.U4.AIUseTrack(f.SR.Component,j)},[H,j,L,A]),Le=w({isInputComposition:Z,userTextContent:j,snapshotBase64Url:h.F7.getCache(),handleSend:xe}),ve=k({handleEnter:Le,handleEsc:Ie}),je=(0,u.useMemo)(()=>O?!1:j.length===0||Q,[O,Q,j.length]),We=(0,u.useMemo)(()=>V,[V]),Ae=(0,u.useMemo)(()=>V||Q,[V,Q]),we=a(he,O),_e=(0,u.useCallback)(()=>{H({type:"ai-component:update:isShowThinkingMode",payload:{isShowThinkingMode:!1}}),H({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!1}})},[H]);return{inputPlaceholderText:"\u8BF7\u8F93\u5165\u7EC4\u4EF6\u63CF\u8FF0",textareaRef:B,userTextContent:j,handleChange:de,handleCompositionEnd:J,handleCompositionStart:te,handleKeyDown:ve,handleQuit:Ie,isShowSnapshotSwitch:ce,isShowSnapshotModeTips:we,handleSnapshotSwitch:re,isShowExamplePrompts:Ce,handleExamplePrompts:me,isShowOptimumLoading:Q,isShowOptimumPrompts:be,handleOptimumPrompts:ie,isSendLoading:We,isSendIconDisable:je,handleSend:xe,isInputDisabled:Ae,creditCount:N,isInsufficientCredit:L,costPerGeneration:U,openPurchaseModal:A,isShowThinkingMode:D,handleCloseThinkingMode:_e}}},64320:(He,ee,e)=>{"use strict";e.d(ee,{F$:()=>p,H$:()=>_,N2:()=>d,Nc:()=>h,OT:()=>i,R3:()=>f,Rf:()=>s,tA:()=>C,vZ:()=>l});var n=e(44940),r=e(18821),c=e.n(r),o=e(4820),I=e(83744),u=e(20089);const d=3,C=240,h=10,i={fill:"solid",fillIsVisible:!0,solidColor:3149642751},f={borderRadiusIsVisible:!0,borderRadius:n.A.border_radius,borderVisibility:n.A.border_visibility,border:n.A.border,fill:n.A.background,shadow:n.A.box_shadow},p=["fontFamily","fontWeight","textColor","fontDirection","fontSize","lineHeight","padding","paddingTuple","letterSpacing","paraSpacing","underline","strikethrough","italic","bold","isClipText","listValue"],s=e.j!=477?["fontFamily","fontWeight","textColor","fontSize","lineHeight","letterSpacing","paraSpacing","underline","strikethrough","italic","bold"]:null,l=["borderRadius","borderVisibility","borderRadiusIsVisible","border","fill","shadow"],_=()=>{const b=(0,I.rp)({type:u.x.WRichText,richTextV1:{...o.oS}});return c()({...b.richTextV1,listValue:"unstyled"},p)}},64335:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>a});var n=e(38502),r=e(18381),c=e(70933),o=e(11032),I=e(21770),u=e(19249);const d=async()=>{try{const{user_uses_vip_mt_cids_this_month:x=[],left_downloads:g}=await(0,u.DE)("/api/web/v3/market_template/mt_vip/mt_vip_downloads"),{orgs_vip_mt_uses:S=[]}=await(0,u.DE)("/api/web/v3/market_template/mt_vip/orgs_mt_vip_downloads"),t=S.filter(w=>{let{pt_mt_next_billing_on:k}=w;return+new Date(k)-+new Date>1e3*60*60*24});let v=g;if(MB.currentOrg){var M;v=t==null||(M=t.find(w=>{var k;return w.org_cid===((k=MB.currentOrg)==null?void 0:k.cid)}))==null?void 0:M.left_downloads}return{user_uses_vip_mt_cids_this_month:x,downloadeds:x.length,left_downloads:v,orgMtInfo:t}}catch(x){return{user_uses_vip_mt_cids_this_month:[],downloadeds:0,left_downloads:0,orgMtInfo:[]}}},C=M=>{try{return(0,u.DE)("/api/community/v1/market_template/"+M)}catch(x){console.log(x)}},h=async(M,x)=>{try{return x?await(0,u.zi)("/api/web/v3/market_template/mt_vip/org_mt_vip_use",{cid:M,org_cid:x}):await(0,u.zi)("/api/web/v3/market_template/mt_vip/mt_vip_use",{cid:M}),{success:!0}}catch(g){return console.error(g),{success:!1,errorType:g.error_type}}};var i=e(47946),f=e(4410),p=e(16335),s=e(70812),l=e(61541),_=e(22835);const a=()=>{const M=(0,n.useRef)(!1),x=(0,r.wA)(),g=(0,r.d4)(c.PL),S=(0,r.d4)(c.wA),t=(0,r.d4)(c.HW),v=async W=>{let K=!1;const{project_metas:G=[]}=await C(W==null?void 0:W.cid),$=G.find(P=>P.upper_cid===(W==null?void 0:W.cid));if($){const{sdkStore:P}=await(0,i.O3)({flpakKey:$==null?void 0:$.cid});(0,f.Ai)({template:W,mtSdkStore:P,callback:E=>{if(E){x({type:"entry:activate:screen",payload:{screenCid:E}});const H=document.querySelector("#screen-scroll-list");H&&(0,_.yA)(H,E),K=!0,(0,p.Cp)({projectUpperType:"file",projectUpperCid:W==null?void 0:W.cid})}MB.safeLoading(!1)}})}return K},w=W=>{var K;const{isMdVipTemplate:G,isVipTemplate:$}=(0,o.f9)(W);s.U4.protoPageAddTrack((K=MB)==null||(K=K.user)==null?void 0:K.id,"\u6A21\u677F\u5F39\u7A97","\u6587\u4EF6",G?"\u539F\u578B\u4F1A\u5458\u7D20\u6750":$?"\u7D20\u6750\u4F1A\u5458\u7D20\u6750":"\u514D\u8D39",W==null?void 0:W.title,W==null?void 0:W.cid)};return{handleUsedTemplate:(0,n.useCallback)(async(W,K)=>{if(M.current)return;M.current=!0;const{ownerCid:G,isOwner:$,isPurchased:P,isPaidProtoProjectTemplate:E}=(0,l.TX)(W);if(g.is_org_project){const{show:V}=(0,o.o3)(W,t);if(V){const{isMktMember:Q}=(0,I.s)(t,S);if(Q){x({type:"modal:update:state",payload:{resourcePurchaseModal:{isOpen:!0,resources:W,currentOrg:S,paidCallback:()=>{}}}});return}const{cid:N,title:L,category:U}=W,{checkoutPlace:A,payEntrance:D}=(0,o.FS)(U),{isMdVipTemplate:B}=(0,o.f9)(W),j={mode:B?"solo":"mat",payEntrance:D,checkoutArea:"proto",checkoutPlace:A,templateCid:N,templateName:L,templateCategory:U,templatePaySource:"\u7F16\u8F91\u533A\u6A21\u677F\u5F39\u7A97"};MB.global.popupHelper.chargeAsync(j);return}}const H=E&&!$&&G!==t.cid&&!P;let O=!1;if(H){const{success:V,errorType:Q}=await h(W==null?void 0:W.cid,(S==null?void 0:S.otype)!=="personal"&&H&&(S==null?void 0:S.cid));if(V&&(O=!0),["MT_VIP_USE_LIMIT","NOT_MT_VIP","INVALID_PARAMS","PT_MT_USE_LIMIT"].includes(Q)){x({type:"modal:update:state",payload:{resourcePurchaseModal:{isOpen:!0,resources:W,currentOrg:S,isFooter:!0}}});return}}if(MB.safeLoading(),O){const V=await d();await v(W)&&MB.global.popupHelper.confirmAsync({title:"\u5DF2\u6DFB\u52A0\u5230\u5DE6\u4FA7\u76EE\u5F55-\u753B\u5E03\u672B\u5C3E",confirmText:"\u7ACB\u5373\u67E5\u770B",cancelText:"\u6211\u77E5\u9053\u4E86",desc:"\u672C\u6B21\u6D88\u80171\u4E2A\u4ED8\u8D39\u539F\u578B\u6743\u76CA\uFF0C\u672C\u81EA\u7136\u6708\u5269\u4F59\u53EF\u7528\u4ED8\u8D39\u539F\u578B\u6743\u76CA"+V.left_downloads+"\u4E2A\uFF0810\u4E2A/\u81EA\u7136\u6708\uFF09",confirmBtnProps:{type:"type-danger-blue"}}).then(N=>{K&&K(N),M.current=!1,w(W)})}else await v(W)&&MB.global.popupHelper.confirmAsync({title:"\u6DFB\u52A0\u6210\u529F",confirmText:"\u7ACB\u5373\u67E5\u770B",cancelText:"\u6211\u77E5\u9053\u4E86",desc:"\u7D20\u6750\u6587\u4EF6\u5DF2\u6DFB\u52A0\u5230\u5DE6\u4FA7\u76EE\u5F55-\u753B\u5E03\u672B\u5C3E",confirmBtnProps:{type:"type-danger-blue"}}).then(Q=>{K&&K(Q),M.current=!1,w(W)})},[])}}},64580:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>c,D:()=>r});var n=e(5209);let r=function(o){return o.Logo="\u58A8\u5200logo",o.SearchCanvas="\u641C\u7D22\u753B\u5E03",o.CollapseCanvas="\u4E00\u952E\u6536\u8D77\u753B\u5E03",o.ExpandCanvas="\u4E00\u952E\u5C55\u5F00\u753B\u5E03",o.SearchPage="\u641C\u7D22\u9875\u9762",o.DoubleClickPageIcon="\u53CC\u51FB\u9875\u9762\u56FE\u6807",o.SearchLayers="\u641C\u7D22\u56FE\u5C42",o.Inspect="\u6807\u6CE8",o.TurnOnVersionControl="\u70B9\u51FB\u67E5\u770B\u7248\u672C\u8BB0\u5F55",o.TurnOffVersionControl="\u5173\u95ED\u67E5\u770B\u7248\u672C\u8BB0\u5F55",o.HandTool="\u624B\u578B\u5DE5\u5177",o.Edit="\u7F16\u8F91",o.Device="\u6F14\u793A",o.Zoom="\u7F29\u653E",o.FullScreen="\u5168\u5C4F",o.ShowLeftPanel="\u663E\u793A\u5DE6\u4FA7\u9762\u677F",o.ShowRightPanel="\u663E\u793A\u53F3\u4FA7\u9762\u677F",o.Sticky="\u6279\u6CE8",o.Comment="\u8BC4\u8BBA",o.CollaborationPointer="\u591A\u4EBA\u6307\u9488",o.BasketPreview="\u52A8\u6001\u7EC4\u4EF6\u6F14\u793A",o.MubanPreview="\u6BCD\u7248\u6F14\u793A",o.PagePreview="\u9875\u9762\u6F14\u793A",o.Login="\u767B\u5F55",o.FreeToUse="\u514D\u8D39\u4F7F\u7528",o.CloseRegisterTip="\u5173\u95ED\u6CE8\u518C\u63D0\u793A",o.ReadOnlyMubanPreview="\u603B\u89C8\u6A21\u5F0F-\u6BCD\u7248\u9884\u89C8",o.ReadOnlyBasketPreview="\u603B\u89C8\u6A21\u5F0F-\u52A8\u6001\u7EC4\u4EF6\u9884\u89C8",o.ReadOnlyAIComponentPreview="\u603B\u89C8\u6A21\u5F0F-AI\u7EC4\u4EF6\u9884\u89C8",o}({});const c=o=>{let{operation_type:I}=o;(0,n.kH)("read_click_V8",{operation_type:I})}},64719:(He,ee,e)=>{var n=e(1438),r=e(23233);function c(o,I){return n(o,I,function(u,d){return r(o,d)})}He.exports=c},64966:(He,ee,e)=>{"use strict";e.d(ee,{W:()=>i});var n=e(38502),r=e(18381),c=e(70933),o=e(11032),I=e(21770),u=e(67787);const d=u.Ay.div.withConfig({displayName:"styles__StyledModalResourceDetailFooter",componentId:"sc-50j1jv-0"})(["width:100%;height:68px;display:flex;align-items:center;justify-content:flex-end;background:",";padding:0 32px;flex:0 0 68px;position:absolute;bottom:0;button{display:flex;align-items:center;justify-content:center;font-size:14px;font-family:PingFang SC;border-radius:6px;height:36px;&.white{background:",";color:",";border:1px solid ",";&:hover{background:",";}&:active{background:",";}}&.blue{background:",";color:",";&:hover{background:",";}&:active{background:",";}}&.material{background:linear-gradient(135deg,#FFEFCD 0%,#FAD58C 100%);width:144px;font-weight:500;.text{background:var(--Linear,linear-gradient(123deg,#501E11 30.52%,#DA4E00 159.68%));background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;font-weight:500;}&:hover{background:linear-gradient(135deg,#FFEFCD 0%,#FAD58C 100%),linear-gradient(0deg,rgba(255,255,255,0.3),rgba(255,255,255,0.3));}&:active{background:linear-gradient(135deg,#FFEBBF 0%,#FAD07D 100%);}}&.select_all{width:90px;}&.clear_all{width:90px;}&.buy_separately{width:151px;color:",";font-size:14px;font-weight:500;span{color:#ffd8e1;}&.prev{font-size:11px;margin-left:4px;margin-top:3px;}&.amount{font-size:20px;}}&.add{min-width:110px;padding:0 16px;}&:not(:last-child){margin-right:16px;}}"],f=>f.theme.color_bg_white,f=>f.theme.color_bg_white,f=>f.theme.color_text_L1,f=>f.theme.color_bg_border_02,f=>f.theme.color_btn_secondary_hover,f=>f.theme.color_btn_secondary_active,f=>f.theme.color_btn_primary_normal,f=>f.theme.color_text_btn,f=>f.theme.color_btn_primary_hover,f=>f.theme.color_btn_primary_clicked,f=>f.theme.color_text_btn);var C=e(72214);const h=()=>{},i=(0,n.memo)(f=>{const{checkedSet:p,resource:s,type:l,isOnlyShowCreates:_,onSelectAll:b,onClearAll:a,onBuySeparately:M=h,onMemberClick:x=h,onAddItems:g=h,onAddItemsAll:S=h}=f,t=(0,r.d4)(c.HW),v=()=>(0,C.jsx)(C.Fragment,{children:l==="page"&&p.size===0?(0,C.jsx)("button",{className:"blue add",onClick:S,children:I18N.LeftSidePanel.modals.add_all_page_items}):(0,C.jsx)("button",{className:"blue add",onClick:g,children:I18N.LeftSidePanel.modals.add_items.num.replace(/%num%/,p.size)+I18N.LeftSidePanel.modals.add_items[l]})}),w=()=>{if(_)return v();const{isBeforeMdMember:k,isMktMember:W}=(0,I.s)(t,MB.currentOrg);if(s){const{show:K,hasDiscount:G,isMktMember:$}=(0,o.o3)(s,t);return(0,C.jsx)(C.Fragment,{children:K?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("button",{className:"material",onClick:x,children:(0,C.jsx)("div",{className:"text",children:I18N.LeftSidePanel.modals.material_free_for_member})}),(0,C.jsxs)("button",{className:"blue buy_separately",onClick:M,children:[I18N.LeftSidePanel.modals.buy_separately,(0,C.jsx)("span",{className:"prev",children:"\xA5"}),(0,C.jsx)("span",{className:"amount",children:Number(s==null?void 0:s.amount).toFixed(2)})]})]}):v()})}else return(0,C.jsx)(C.Fragment,{children:W?v():(0,C.jsx)("button",{className:"material",onClick:x,children:(0,C.jsx)("div",{className:"text",children:I18N.LeftSidePanel.modals.material_free_for_member})})})};return(0,C.jsxs)(d,{children:[p.size>0&&(0,C.jsxs)(C.Fragment,{children:[b&&(0,C.jsx)("button",{className:"white select_all",onClick:b,children:I18N.LeftSidePanel.modals.select_all}),a&&(0,C.jsx)("button",{className:"white clear_all",onClick:a,children:I18N.LeftSidePanel.modals.clear_all})]}),w()]})})},64972:(He,ee,e)=>{"use strict";e.d(ee,{HM:()=>n,UU:()=>c,mg:()=>r});const n={isHidden:!1,isActive:!1,isDraggingWidgetCid:null,newItems:[],isDragging:!1,isAdjustingRowGap:!1,isAdjustingColGap:!1,isResizingGap:!1,rowGap:null,colGap:null,selectedWidgetInfo:[],rowStates:[],changes:[],enableMarginChange:!1};function r(o,I){switch(o===void 0&&(o=n),I.type){case"smart-selection:update:state":return{...o,...I.payload};case"smart-selection:reset:state":return{...n};default:return o}}let c;(function(o){function I(d){return{type:"smart-selection:update:state",payload:{...d}}}o.update=I;function u(){return{type:"smart-selection:reset:state"}}o.reset=u})(c||(c={}))},65209:(He,ee,e)=>{"use strict";e.d(ee,{_:()=>r});var n=e(20089);const r=function(c,o){o===void 0&&(o=sdkStore);const I=o.getHotItem(c),u=o.getSubHotItemList(c).sort((d,C)=>C.hotAttr.zIndex-d.hotAttr.zIndex).filter(d=>d.hotAttr.type!==n.x.WSticky&&d.hotAttr.type!==n.x.WTear);return u!=null&&u.length?u[0].hotAttr.zIndex+1:c===MB.getCurrentScreen().cid?MB.getNextWidgetZ():I.hotAttr.zIndex+1}},65415:(He,ee,e)=>{"use strict";e.d(ee,{b:()=>f});var n=e(95549),r=e(38502),c=e(18381),o=e(12211),I=e(67588),u=e(53940),d=e(76527),C=e(72214);class h extends r.PureComponent{render(){const{theme:s,isNeedLink:l}=this.props;return(0,C.jsxs)(d.k,{className:"search-no-results",children:[(0,C.jsx)("img",{src:"/mb-proto2/images/workspace/design/"+(s===u.Sx.DARK?"no_search_result_dark":"no_search_result_light")+".png",alt:""}),(0,C.jsx)("div",{className:"action-container",children:(0,C.jsx)("p",{className:"tips",children:I18N.Popups.content_not_found})}),l&&(0,C.jsx)("p",{className:"tips-link",dangerouslySetInnerHTML:{__html:I18N.Resources.search_no_results.feedback.replace(/%href%/,I18N.link.link_feedback)}})]})}}(0,n.A)(h,"defaultProps",{isNeedLink:!0});const i=(0,o.Mz)([I.O4],p=>({theme:p})),f=(0,c.Ng)(p=>i(p))(h)},65541:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>s});var n=e(38502),r=Object.defineProperty,c=Object.defineProperties,o=Object.getOwnPropertyDescriptors,I=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,C=(l,_,b)=>_ in l?r(l,_,{enumerable:!0,configurable:!0,writable:!0,value:b}):l[_]=b,h=(l,_)=>{for(var b in _||(_={}))u.call(_,b)&&C(l,b,_[b]);if(I)for(var b of I(_))d.call(_,b)&&C(l,b,_[b]);return l},i=(l,_)=>c(l,o(_)),f=(l,_)=>{var b={};for(var a in l)u.call(l,a)&&_.indexOf(a)<0&&(b[a]=l[a]);if(l!=null&&I)for(var a of I(l))_.indexOf(a)<0&&d.call(l,a)&&(b[a]=l[a]);return b},s=(0,n.forwardRef)((l,_)=>{var b=l,{size:a,spin:M,style:x}=b,g=f(b,["size","spin","style"]);const S=h(h({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:M?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),x);return n.createElement("svg",i(h({ref:_,style:S},g),{width:"30",height:"14",viewBox:"0 0 30 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),n.createElement("rect",{width:"30",height:"14",rx:"4",fill:"url(#paint0_linear_3390_1247)"}),n.createElement("path",{d:"M8.90708 6.92016C9.29383 6.99321 9.5995 7.18913 9.8241 7.50791C10.0487 7.82669 10.1424 8.19196 10.1053 8.60372C10.0718 8.97563 9.94882 9.30437 9.73641 9.58995C9.53126 9.86888 9.24817 10.088 8.88714 10.2474C8.5261 10.4068 8.10892 10.4865 7.63558 10.4865H4.62558L5.25241 3.53311H8.13241C8.60575 3.53311 9.00553 3.60948 9.33176 3.76223C9.66465 3.91498 9.9055 4.1275 10.0543 4.39979C10.2097 4.67209 10.2719 4.9809 10.2408 5.32625C10.2042 5.73137 10.0637 6.07007 9.81917 6.34237C9.58129 6.61466 9.27726 6.80726 8.90708 6.92016ZM6.39378 6.40214H7.67378C8.00711 6.40214 8.27036 6.32908 8.46354 6.18298C8.6573 6.03023 8.76676 5.81439 8.79191 5.53545C8.81705 5.25652 8.74651 5.04068 8.58028 4.88793C8.41405 4.73518 8.16427 4.6588 7.83093 4.6588H6.55093L6.39378 6.40214ZM7.53796 9.35086C7.87796 9.35086 8.14848 9.27117 8.34951 9.11178C8.55721 8.95239 8.67424 8.72658 8.70058 8.43437C8.72752 8.13551 8.64847 7.90307 8.46344 7.73703C8.27901 7.56436 8.01679 7.47802 7.67679 7.47802H6.29679L6.12796 9.35086H7.53796ZM16.0609 7.60753C16.0429 7.80677 16.0134 7.98608 15.9724 8.14547H11.9224C11.9198 8.54395 12.0317 8.85609 12.258 9.08189C12.4843 9.3077 12.7775 9.4206 13.1375 9.4206C13.6575 9.4206 14.0475 9.19811 14.3076 8.75315H15.8176C15.6097 9.28445 15.2635 9.72278 14.7791 10.0681C14.2952 10.4068 13.7233 10.5762 13.0633 10.5762C12.5299 10.5762 12.0604 10.46 11.6547 10.2275C11.2563 9.98843 10.9565 9.65304 10.7554 9.22136C10.561 8.78968 10.4892 8.29158 10.5401 7.72707C10.5916 7.15592 10.7535 6.65451 11.0257 6.22282C11.298 5.79114 11.6546 5.45908 12.0955 5.22663C12.5365 4.99419 13.0303 4.87797 13.577 4.87797C14.1036 4.87797 14.5634 4.99087 14.9564 5.21667C15.3561 5.44247 15.6504 5.76458 15.8393 6.18298C16.0355 6.59473 16.1094 7.06959 16.0609 7.60753ZM14.6468 7.20905C14.6725 6.85042 14.5682 6.56485 14.334 6.35233C14.1005 6.13317 13.8004 6.02359 13.4337 6.02359C13.087 6.02359 12.7841 6.12985 12.5249 6.34237C12.2731 6.54825 12.1037 6.83714 12.0168 7.20905H14.6468ZM18.4475 6.11324L18.2068 8.78303C18.19 8.96899 18.2211 9.10514 18.3 9.19147C18.3861 9.27117 18.5359 9.31102 18.7492 9.31102H19.3992L19.2932 10.4865H18.4132C17.2332 10.4865 16.6947 9.91537 16.7977 8.77307L17.0375 6.11324H16.3775L16.4808 4.96762H17.1408L17.2638 3.60284H18.6738L18.5508 4.96762H19.7908L19.6875 6.11324H18.4475ZM19.7907 7.70715C19.841 7.14928 19.9956 6.65451 20.2546 6.22282C20.5201 5.79114 20.8534 5.45908 21.2544 5.22663C21.662 4.99419 22.1025 4.87797 22.5758 4.87797C22.9891 4.87797 23.3416 4.96098 23.6333 5.12701C23.9317 5.29304 24.1628 5.50225 24.3268 5.75461L24.3977 4.96762H25.8077L25.3102 10.4865H23.9002L23.9729 9.67961C23.7696 9.93862 23.5001 10.1545 23.1646 10.3271C22.8363 10.4932 22.4654 10.5762 22.0521 10.5762C21.5854 10.5762 21.1696 10.4566 20.8044 10.2175C20.446 9.97846 20.1729 9.64308 19.9851 9.2114C19.8047 8.77307 19.7399 8.27166 19.7907 7.70715ZM24.1489 7.72707C24.1795 7.38837 24.1389 7.09947 24.0271 6.86039C23.9159 6.61466 23.7527 6.4287 23.5374 6.30252C23.3227 6.16969 23.0853 6.10328 22.8253 6.10328C22.5653 6.10328 22.3196 6.16637 22.0883 6.29256C21.8569 6.41874 21.6601 6.6047 21.498 6.85042C21.3431 7.08951 21.2507 7.37508 21.2207 7.70715C21.1908 8.03921 21.2311 8.33143 21.3417 8.5838C21.4596 8.82952 21.6225 9.0188 21.8305 9.15163C22.0452 9.28445 22.2792 9.35086 22.5326 9.35086C22.7926 9.35086 23.0416 9.28777 23.2796 9.16159C23.5183 9.02876 23.715 8.84281 23.8699 8.60372C24.0254 8.35799 24.1184 8.06578 24.1489 7.72707Z",fill:"white"}),n.createElement("defs",null,n.createElement("linearGradient",{id:"paint0_linear_3390_1247",x1:"-2.28814",y1:"0.913043",x2:"41.9511",y2:"11.8227",gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:"#5B5CF9"}),n.createElement("stop",{offset:"0.707314",stopColor:"#FA78FF"}),n.createElement("stop",{offset:"1",stopColor:"#FFCF26"}))))})},66247:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>d});var n=e(38502),r=e(53732),c=e.n(r),o=e(67787);const I=o.Ay.span.withConfig({displayName:"styles__StyledSUnreadSignal",componentId:"sc-2pu3mc-0"})(["position:absolute;width:6px;height:6px;background-color:",";border-radius:50%;opacity:0;&.is-on{opacity:1;}"],C=>C.theme.color_proto);var u=e(72214);const d=(0,n.memo)(C=>{let{on:h,className:i}=C;return h?(0,u.jsx)(I,{className:c()(i,{"is-on":h})}):null})},66530:(He,ee,e)=>{"use strict";e.d(ee,{Ef:()=>c,Pg:()=>o,Yo:()=>I});var n=e(67787),r=e(82535);const c=(0,n.Ay)(r.FO).withConfig({displayName:"styles__StyledLoginModal",componentId:"sc-mnw7hl-0"})(["&.login-modal{width:100%;height:100%;background:transparent;transform:translateY(0px);iframe{width:100%;height:100%;border:1px solid rgba(6,8,10,0.56);background:transparent;}}"]),o=(0,n.DU)(["#IBOT_MODAL_ROOT{.ModalPortal,.ModalPortal.is-open{transition:none;transform:translateY(0px);}.ModalPortal.is-open .TransitionModal{transition:none;transform:translateY(0px);}}"]),I=(0,n.Ay)(r.FO).withConfig({displayName:"styles__StyledLoginModal4WS",componentId:"sc-mnw7hl-1"})(["&.login-modal{width:460px;overflow:hidden;height:633px;iframe{width:100%;height:100%;border:0;}.btn-close-modal{position:absolute;z-index:5;top:24px;right:24px;display:flex;justify-content:center;align-items:center;.svg-icon{width:24px;height:24px;&:hover{path{fill:#5B6B73;}}}}}"])},66553:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>r});var n=e(67787);const r=n.Ay.aside.withConfig({displayName:"PopupPanel",componentId:"sc-cvia0u-0"})(["width:250px;height:80vh;min-height:468px;box-sizing:content-box;background:",";border-radius:8px;border:1px solid ",";box-shadow:",";display:flex;flex-direction:column;& > header{height:36px;display:flex;justify-content:space-between;align-items:center;background:",";& > .title{margin-left:10px;pointer-events:none;color:",";&.customize-title{pointer-events:unset;display:flex;}&.template-title{display:flex;align-items:center;pointer-events:unset;.question-action{height:14px;margin-left:6px;color:",";.svg-icon{width:14px;height:14px;}&:hover{color:",";}}}}& > .icon{width:30px;height:32px;line-height:32px;color:",";text-align:center;cursor:pointer;&:hover{color:",";}.times-icon{width:8px;height:8px;}}}& > footer{height:40px;padding-right:10px;display:flex;justify-content:flex-end;align-items:center;background:",";.footer-button{padding:10px;&.is-active{color:",";}}}"],c=>c.theme.color_bg_white,c=>c.theme.color_bg_border_01,c=>c.theme.shadow_l,c=>c.theme.color_btn_secondary_active,c=>c.theme.color_text_L2,c=>c.theme.color_text_L3,c=>c.theme.color_text_L2,c=>c.theme.color_text_L3,c=>c.theme.color_text_L2,c=>c.theme.color_bg_white,c=>c.theme.color_primary_brand01)},66727:(He,ee,e)=>{"use strict";e.d(ee,{F:()=>n});const n=["leftmenu","rightmenu","leftdrawer","rightdrawer"]},67061:(He,ee,e)=>{"use strict";e.d(ee,{j:()=>h});var n=e(38502),r=e(53732),c=e.n(r),o=e(18381),I=e(67787),u=e(17307),d=e(67588),C=e(72214);const h=f=>{const{scrollContainerEl:p,topDiff:s=0,getNextScrollLeft:l,leftIcon:_,rightIcon:b}=f,[a,M]=(0,n.useState)(!1),[x,g]=(0,n.useState)(!0),S=(0,o.d4)(d.O4),t=v=>{if(!p||!l)return;const w=l(v);p.scroll({top:0,left:w,behavior:"smooth"}),M(w>0),g(w+p.clientWidth<p.scrollWidth)};return(0,C.jsxs)(i,{className:"x-scroll-bar-action",topDiff:s,children:[a&&(0,C.jsx)("div",{className:c()("scroll-bar left",S),onClick:()=>t("left"),children:_||(0,C.jsx)(u.C,{className:"scroll-arrow left",name:"design/arrow/right"})}),x&&(0,C.jsx)("div",{className:c()("scroll-bar right",S),onClick:()=>t("right"),children:b||(0,C.jsx)(u.C,{className:"scroll-arrow right",name:"design/arrow/right"})})]})},i=I.Ay.div.withConfig({displayName:"XScrollBar__StyledXScrollBar",componentId:"sc-j3j78m-0"})([".scroll-bar{z-index:1;transition:opacity 0.15s ease-in-out;opacity:0;display:flex;align-items:center;justify-content:center;width:20px;height:28px;position:absolute;top:calc((100% - 28px - ","px) / 2);border-radius:6px;backdrop-filter:blur(10px);background-color:#00000014;&:hover{background-color:#00000026;}&.dark{background-color:#FFFFFF14;&:hover{background-color:#FFFFFF26;}}&.left{left:6px;}&.right{right:7px;}.scroll-arrow{width:8px;height:12px;color:",";&.left{transform:rotate(180deg);}}}"],f=>f.topDiff,f=>f.theme.color_text_L1)},67167:(He,ee,e)=>{"use strict";e.d(ee,{MP:()=>A,hS:()=>D,vz:()=>j});var n=e(13235),r=e(20089),c=e(31569);const o={screen_meta:["artboard_id","artboard_image_url","bgcolor","bgimage","expanded","name","orientation","parent_cid","position","project_meta_cid","screen_glue_cid","width","height"],[r.x.WCarousel]:["isVisible","isLock","bitFlag","top","left","width","height","isLockAspect","z","ro","opacity","fixPosTo","fixed","fixed_type","horizontalAlign","verticalAlign","data","display_name","borderRadius"],[r.x.WTable]:["isVisible","isLock","bitFlag","fontSize","br","width","height","isLockAspect","top","left","z","textDecoration","bold","italic","textColor","opacity","fixPosTo","fixed","fixed_type","display_name","tableData","innerBorderV","innerBorderH","outerBorder","styleType"],group:["isVisible","isLock","bitFlag","top","left","width","height","isLockAspect","z","ro","fixPosTo","aniName","aniDelay","aniCount","aniDuration","opacity","expanded","display_name","animation"],[r.x.WRichText]:["isVisible","isLock","font_direction","bitFlag","text","fontSize","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","th","lineHeight","textDecoration","bold","italic","textColor","opacity","shadow","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","clip","sizeType","display_name","animation"],label:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","th","lineHeight","textDecoration","bold","italic","background","border","textColor","opacity","ts","shadow","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],text_view:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","th","lineHeight","textDecoration","bold","italic","background","border","textColor","opacity","ts","shadow","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","clip","display_name","borderVisibility","animation"],[r.x.WSticky]:["isVisible","isLock","bitFlag","text","fontSize","horizontalAlign","lineHeight","bold","italic","textDecoration","width","height","isLockAspect","top","left","background","textColor","th","slw","slt","padding","point","display_name","fill"],[r.x.WButton]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","icon","is","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","fill","animation"],icon_button:["isVisible","isLock","bitFlag","is","icon","br","borderRadius","top","left","width","height","isLockAspect","z","th","background","border","textColor","opacity","ds","shadow","sc","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],text_field:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","th","background","border","textColor","opacity","ds","shadow","sc","ro","textDecoration","bold","italic","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[r.x.WMTextInput]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","width","height","isLockAspect","top","left","z","th","background","border","textColor","opacity","ds","shadow","sc","bold","italic","fixPosTo","fixed","fixed_type","input_type","display_name","borderVisibility","fill"],[r.x.WMTextArea]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","width","height","isLockAspect","top","left","z","th","lineHeight","background","border","textColor","opacity","ds","shadow","sc","bold","italic","fixPosTo","fixed","fixed_type","padding","display_name","borderVisibility","fill"],[r.x.WMSelect]:["isVisible","isLock","bitFlag","text","fontSize","width","height","isLockAspect","top","left","z","th","background","border","textColor","opacity","ds","shadow","sc","fixPosTo","fixed","fixed_type","display_name","fill"],switch:["isVisible","isLock","bitFlag","top","left","z","checked","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[r.x.WIOSSwitch]:["isVisible","isLock","bitFlag","top","left","z","opacity","width","height","isLockAspect","checked","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","switch_disabled","thumb_checked_style","thumb_unchecked_style","track_checked_style","track_unchecked_style","animation"],[r.x.WAndroidSwitch]:["isVisible","isLock","bitFlag","top","left","z","opacity","width","height","isLockAspect","checked","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","switch_disabled","thumb_checked_style","thumb_unchecked_style","track_checked_style","track_unchecked_style","animation"],[r.x.WIosCB]:["isVisible","isLock","bitFlag","top","left","z","width","height","checked","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[r.x.WAndroidCB]:["isVisible","isLock","bitFlag","top","left","z","width","height","checked","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[r.x.WAndroidRadio]:["isVisible","isLock","bitFlag","top","left","z","width","height","checked","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],mcheckbox:["isVisible","isLock","bitFlag","top","left","width","height","z","opacity","checked","fixPosTo","fixed","fixed_type","display_name"],mradiobutton:["isVisible","isLock","bitFlag","top","left","width","height","isLockAspect","z","opacity","checked","fixPosTo","fixed","fixed_type","display_name"],[r.x.WMFileInput]:["isVisible","isLock","bitFlag","top","left","width","height","isLockAspect","z","opacity","fixPosTo","fixed","fixed_type","display_name"],image_view:["isVisible","isLock","bitFlag","br","borderRadius","width","height","isLockAspect","top","left","image","z","th","background","border","textColor","opacity","p","ds","shadow","sc","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[r.x.WImage]:["isVisible","isLock","bitFlag","br","borderRadius","width","height","isLockAspect","top","left","image","z","th","background","border","textColor","opacity","p","ds","shadow","sc","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","clip","filter","display_name","clip_type","image","animation"],[r.x.WMapView]:["isVisible","isLock","bitFlag","width","height","isLockAspect","top","left","z","fixPosTo","fixed","fixed_type","display_name"],navigation_bar:["isVisible","isLock","bitFlag","text","fontSize","top","left","z","width","height","isLockAspect","th","textDecoration","bold","italic","background","textColor","border","opacity","ts","tsc","ds","shadow","sc","fixPosTo","fixed","fixed_type","display_name"],nav_bar:["isVisible","isLock","bitFlag","text","fontSize","top","left","z","width","height","isLockAspect","th","textDecoration","bold","italic","background","textColor","border","opacity","ts","tsc","ds","shadow","sc","fixPosTo","fixed","fixed_type","display_name"],[r.x.WSearchBar]:["isVisible","isLock","bitFlag","fontSize","top","left","width","horizontalAlign","z","th","isLockAspect","background","textColor","border","opacity","ds","shadow","sc","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[r.x.WTabItem]:["isVisible","isLock","bitFlag","is","icon","width","left","top","fontSize","z","th","isLockAspect","background","textColor","opacity","ds","shadow","sc","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],tab_bar:["isVisible","isLock","bitFlag","height","isLockAspect","z","th","background","border","opacity","ds","shadow","sc","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],hr:["isVisible","isLock","bitFlag","width","height","isLockAspect","top","left","opacity","z","th","border","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],line:["isVisible","isLock","bitFlag","border","width","height","top","left","points","shadow","opacity","z","th","fixPosTo","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[r.x.WLine]:["isVisible","isLock","bitFlag","arrow_stroke","width","height","top","left","points","shadow","arrow_types","opacity","z","th","fixPosTo","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],ve:["isVisible","isLock","bitFlag","width","height","top","left","opacity","z","th","border","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[r.x.WUnifiedKeyboard]:["isVisible","isLock","bitFlag","width","height","top","left","z","numeric","fixPosTo","fixed","fixed_type","display_name"],legacy_iphone_status_bar:["isVisible","isLock","bitFlag","top","left","width","height","isLockAspect","text","th","background","textColor","opacity","z","fixPosTo","display_name"],legacy_iphone_x_status_bar:["isVisible","isLock","bitFlag","text","top","left","width","height","isLockAspect","th","background","textColor","opacity","z","fixPosTo","display_name"],legacy_android_status_bar:["isVisible","isLock","bitFlag","text","top","left","width","height","isLockAspect","th","background","textColor","opacity","z","fixPosTo","display_name"],legacy_ipad_status_bar:["isVisible","isLock","bitFlag","text","th","top","left","width","height","isLockAspect","background","textColor","opacity","z","fixPosTo","display_name"],[r.x.WAndroidSB]:["isVisible","isLock","bitFlag","th","background","textColor","border","opacity","width","height","isLockAspect","top","left","z","fixPosTo","fixed","fixed_type","display_name"],rectangle:["isVisible","isLock","bitFlag","height","isLockAspect","top","left","z","th","background","border","opacity","ds","shadow","sc","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[r.x.WWrap]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","animation"],[r.x.WOval]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","fill","animation"],[r.x.WRect]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","borderVisibility","fill","animation"],[r.x.WPolygon]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","sideNum","fill","animation","polygon"],[r.x.WStar]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","sideNum","radius","fill","animation","star"],circle_rect:["isVisible","isLock","bitFlag","text","fontSize","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","fill","animation"],[r.x.WTriangleB]:["isVisible","isLock","bitFlag","width","height","isLockAspect","top","left","z","th","background","opacity","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","fill","animation"],[r.x.WTriangleTL]:["isVisible","isLock","bitFlag","width","height","isLockAspect","top","left","z","th","background","opacity","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","fill","animation"],[r.x.WLR]:["isVisible","isLock","bitFlag","width","height","isLockAspect","top","left","z","fixPosTo","fixed","fixed_type","display_name"],[r.x.WWebpage]:["isVisible","isLock","bitFlag","width","height","isLockAspect","top","left","z","text","display_name"],pg:["left","top","display_name"],[r.x.WMTooltip]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","th","lineHeight","textDecoration","bold","italic","background","textColor","opacity","ts","tsc","ds","shadow","sc","border","ro","padding","_ttPlacement","_ttOffset","_ttArrowSize","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],svg_icon_button:["isVisible","isLock","bitFlag","is","icon","br","borderRadius","top","left","width","height","z","th","background","border","textColor","opacity","ds","shadow","sc","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","fill","animation"],svg_icon_path:["isVisible","isLock","bitFlag","is","icon","br","borderRadius","top","left","width","height","z","th","background","border","textColor","opacity","ds","shadow","sc","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","view_box","path","svgAttr","fill","animation"],wPanel:["states","left","top","width","height","isLockAspect","fixed","fixed_type","isVisible","screen_state_cid","screen_meta_cid","screen_glue_cid","isLock","fixPosTo","display_name","overflow_behavior","scroll"],[r.x.WBasket]:["states","left","top","width","height","isLockAspect","fixed","fixed_type","isVisible","screen_state_cid","screen_meta_cid","screen_glue_cid","isLock","fixPosTo","display_name","overflow_behavior","scroll"],[r.x.WChart]:["isVisible","z","opacity","left","top","width","height","isLockAspect","display_name","isLock","data","ro","fixPosTo","chartType","chartCategory","chartTheme","grid","unit","showAxis","textAngle","showToolTip","showHelpMark","smooth","legend","chartData","chartBorderRadius","chartInnerRadius","shLabel","progress","aniName","aniDelay","aniCount","aniDuration","animation"],[r.x.WAudio]:["v","locked","display_name","z","opacity","left","top","width","height","isLockAspect","ro","fixPosTo","text","borderRadius","shadow","aniName","aniDelay","aniCount","aniDuration","is_autoplay","is_keep_alive","is_loop","is_hidden","animation"],[r.x.WVideo]:["isVisible","isLock","display_name","z","opacity","left","top","width","height","isLockAspect","ro","fixPosTo","text","borderRadius","shadow","aniName","aniDelay","aniCount","aniDuration","is_autoplay","is_loop","is_muted","is_hide_controls","animation"],[r.x.WQRCode]:["isVisible","isLock","display_name","z","opacity","left","top","width","height","ro","fixPosTo","text","aniName","aniDelay","aniCount","aniDuration","background","foreground","animation"],[r.x.WSlider]:["isVisible","isLock","display_name","z","opacity","left","top","width","height","isLockAspect","ro","fixPosTo","aniName","aniDelay","aniCount","aniDuration","data","animation"],[r.x.WCollapse]:["isVisible","isLock","display_name","z","opacity","left","top","width","height","isLockAspect","ro","borderRadius","border","fixPosTo","aniName","aniDelay","aniCount","aniDuration","optionData","canExpandOneMenu","data","animation"],[r.x.WPlaceholder]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","fill","animation"],[r.x.WDigitalStepper]:["isVisible","isLock","bitFlag","number","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","min","max","sliderSize","is","ic","animation"],[r.x.WPaginationMobile]:["isVisible","isLock","bitFlag","number","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","pagesNumber","checkedTextSize","checkedTextColor","animation"],[r.x.WPaginationWeb]:["isVisible","isLock","bitFlag","number","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","pagesNumber","checkedTextSize","checkedTextColor","checkedBg","checkedBorder","animation"],[r.x.WDropMenu]:["isVisible","is_multiple","width","height","left","top","isLockAspect","isLock","bitFlag","gid","link_cids","opacity","z","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","background","border","shadow","borderRadius","textColor","fontSize","textDecoration","bold","italic","verticalAlign","horizontalAlign","th","text","mutualWay","optionData","dropMenuEcho","animation"],[r.x.WSegmentedControl]:["isVisible","width","height","left","top","isLockAspect","isLock","bitFlag","gid","link_cids","opacity","z","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","background","border","borderRadius","fontSize","textColor","checkedBg","checkedTextSize","checkedTextColor","optionData","animation"],[r.x.WSelectionControl]:["isVisible","width","height","left","top","isLockAspect","isLock","bitFlag","gid","link_cids","opacity","z","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderColor","border","borderRadius","disabled","fontSize","textColor","checkedBgColor","checkedTc","optionData","gap","layout","selectionControlType","animation"],[r.x.WNavigationMenu]:["isVisible","width","height","left","top","isLockAspect","isLock","opacity","ro","z","aniName","aniDelay","aniCount","aniDuration","fixPosTo","optionData","panelData","expandData","selectedData","isShowIcon","canExpandOneMenu","navigationMenuType","display_name","animation"],[r.x.WTabs]:["isVisible","isLock","bitFlag","fontSize","br","width","height","isLockAspect","top","left","z","th","background","border","textColor","opacity","ts","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","checkedTextSize","checkedTextColor","checkedBg","checkedBorder","checkedBoldType","checkedFontStyle","checkedTextDecoration","optionData","animation"],[r.x.WMobileTabBars]:["isVisible","isLock","bitFlag","fontSize","br","width","height","isLockAspect","top","left","z","th","background","border","borderVisibility","textColor","opacity","ts","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","optionData","isShowIcon","isShowText","iconSize","iconColor","selectedTextColor","selectedIconColor","isShowSelectedText","isShowSelectedIcon","animation"],[r.x.WButtonSolid]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","is","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","fill","animation"],[r.x.WTear]:["cid","mtime","name","left","top","width","height","isLockAspect","data","bind_widget_cid","ctime","order"],[r.x.Canvas]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","is","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","animation"],[r.x.WElbow]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","borderVisibility","fill","animation"],[r.x.WIcon]:["iconData","fill","opacity","animation","aniName","aniDelay","aniCount","aniDuration"],[r.x.WVector]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","borderVisibility","fill","animation","vector"],[r.x.WTriangle]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","borderVisibility","fill","animation"],[r.x.WSwimlane]:["text","isVisible","isLock","bitFlag","fontSize","br","width","height","isLockAspect","top","left","z","textDecoration","bold","italic","textColor","opacity","fixPosTo","fixed","fixed_type","display_name","tableData","innerBorderV","innerBorderH","outerBorder","styleType"],[r.x.wFlowClosed]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","fill","animation"],[r.x.WFlowOpened]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","fill","animation"],[r.x.WMind]:["isVisible","isLock","bitFlag","borderRadius","width","height","isLockAspect","top","left","z","background","border","opacity","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","borderVisibility","fill","animation"],[r.x.WMindNode]:["bitFlag","text","fontSize","br","width","height","isLockAspect","top","left","z","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","display_name","borderVisibility","fill"],[r.x.WIphoneXSB]:["isVisible","isLock","bitFlag","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","display_name","fill"],[r.x.WIconButton]:["isVisible","isLock","bitFlag","is","icon","br","borderRadius","top","left","width","height","z","th","background","border","textColor","opacity","ds","shadow","sc","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","fill","animation"],[r.x.WArrow]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","borderVisibility","fill","animation","arrow"]},I=F=>{let{type:Y}=F;return o[Y]},u=e.j!=477?["icon","is"]:null,d=(F,Y,X)=>{const z=new Set;return I(F).forEach(Z=>{F.type===r.x.WTable&&Y||F.type===r.x.WMind&&X!=null&&X.length||F.type==="button"&&!F.icon&&u.includes(Z)||z.add(Z)}),z};if(e.j!=477)var C=e(2371);var h=e(19013),i=e(76210),f=e(847),p=e(49021),s=e(37505),l=e(45392),_=e(56056);const b={[h.m9]:F=>{const Y=i.U[f.q.OpacityInfoPanel][h.m9];return{animation:[l.L],appearance:[Y,...(0,s.ae)(F)],text:(0,p.xR)(F)}},[r.x.WTable]:()=>({appearance:[_.p],text:(0,p.b5)()})},a=F=>(b[F]||b[h.m9])(F);var M=e(15186),x=e(40610),g=e(1002),S=e(69815),t=e(9521),v=e(86594),w=e(33421),k=e(59025),W=e(9680);const K=F=>F&&parseFloat(F),G=["aniCount","aniDelay","aniDuration","aniName"],$=["opacity","text_shadow","box_shadow","background","border","borderRadius","borderVisibility","fill"],P=["boldType","textColor","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paraSpacing","padding","sizeType","textDecoration","ha","va"],E=["fontSize","padding","lineHeight","paraSpacing","letterSpacing"],H=["arrowTypes","arrowStroke"],O=G.concat($).concat(P).concat(H),V={[r.x.WStar]:"star",[r.x.WPolygon]:"polygon"},Q=[r.x.WMTextInput,r.x.WMTextArea,r.x.WMindNode,r.x.Canvas],N=[r.x.WRect,r.x.WOval,r.x.CanvasAsOverlay,r.x.WImage,r.x.WPlaceholder,r.x.WMTextInput,r.x.WMTextArea,r.x.WDropMenu,r.x.WMSelect,r.x.WPolygon,r.x.WStar,r.x.WButton,r.x.WButtonSolid,r.x.WVector,r.x.WTriangle],L=[r.x.WRect,r.x.WOval,r.x.WRichText,r.x.WButtonSolid,r.x.WPlaceholder,r.x.WPolygon,r.x.WStar,r.x.wFlowClosed,r.x.WFlowOpened,r.x.WButton,r.x.WElbow,r.x.WVector,r.x.WTriangle,r.x.WLine,r.x.WArrow],U=e.j!=477?["elbow","arrow"]:null,A=function(F,Y,X,z){var Z,J;z===void 0&&(z=!1);const te=(0,k.o9)(Y),ge=x.VV.includes(te),pe=!X.has("sideNum"),{animation:Ce,appearance:me,text:be,refVars:ie}=F,oe=(0,v.Dy)(Ce,Y.animation),{borderRadius:he,fill:ce,background:re,tc:fe,arrowTypes:Se,arrowStroke:Me,shadow:Ie}=me,{boldType:de,fontFamily:xe,textColor:Le,fontSize:ve,fontStyle:je,fontWeight:We,padding:Ae,textDecoration:we,ha:_e,va:Te,lineHeight:Ye,paraSpacing:Fe,letterSpacing:Ve,sizeType:rt}=be;U.forEach(Yn=>{delete ie[Yn]});const Ue=Y.refVars,et=(0,W.m1)(F),lt={...Ue,...et},Je=V[te],Xe=(0,C.k4)(he||""),st=pe?null:(0,c.i)([{hotAttr:Y}],Je);let nt=Xe&&!pe?(Z=he==null?void 0:he.radiusTL)!=null?Z:0:he;const tt=!Xe&&!pe;if(Je){var ct;lt[Je]={...Ue==null?void 0:Ue[Je],cornerRadius:Xe?(ct=lt.borderRadius)==null?void 0:ct.radiusTL:lt.borderRadius}}if(te===r.x.WTriangle&&Xe){var ht,It;nt=(ht=he==null?void 0:he.radiusTL)!=null?ht:0,lt.borderRadius=(It=lt.borderRadius)==null?void 0:It.radiusTL}te===r.x.WOval&&(nt=0,delete lt.borderRadius);const it=tt?{...me,[Je]:{...st,cornerRadius:nt}}:{...me,borderRadius:nt},Tt=(0,C.Eg)(ce);if(it.fill=Tt&&Q.includes(te)?{...Y.fill,fillIsVisible:ce.fillIsVisible,solidColor:re?re[1]:fe}:ce,te===r.x.WRichText||te===r.x.WIcon){if((Ie==null?void 0:Ie.type)!=="text_shadow"&&it.shadow){var Lt;if(it.shadow.type="text_shadow",(Lt=lt.shadow)!=null&&Lt.spreadRadius){var Rt;(Rt=lt.shadow)==null||delete Rt.spreadRadius}}}else if(Ie&&Ie.type!=="box_shadow"&&it.shadow){var Wt;if(it.shadow.type="box_shadow",it.shadow.spreadRadius=0,(Wt=lt.shadow)!=null&&Wt.spreadRadius){var Kt;(Kt=lt.shadow)==null||delete Kt.spreadRadius}}te===r.x.Canvas&&(it.shadow=null,it.border=null,it.borderRadius=null,it.borderVisibility=null);const Gt=(0,w.QT)(xe,We);let St=(0,v.hT)({animation:oe,...it,ha:_e,va:Te},Y,lt);if(ge){const Yn=xe,bo=We,Ke=rt,ut=Ve,zt=Fe,bt=typeof Le=="number"?(0,M.t0)(Le):Le,xn=je==="italic",kn=de===1,gn=we&&we.includes("underline"),Zn=we&&we.includes("line-through"),Pn={...St.richTextV1},_n={...lt.richTextV1};if(bt!==void 0&&(Pn.textColor=bt),xn!==void 0&&(Pn.italic=xn),kn!==void 0&&(Pn.bold=kn),gn!==void 0&&(Pn.underline=gn),Zn!==void 0&&(Pn.strikethrough=Zn),ve!==void 0&&(Pn.fontSize=ve,_n.fontSize=ie.fontSize),Ye!==void 0&&(Pn.lineHeight=Ye,_n.lineHeight=ie.lineHeight),Ae!==void 0&&(Pn.padding=Ae,_n.padding=ie.padding),_e!==void 0&&(Pn.horizontalAlign=_e),Te!==void 0&&(Pn.verticalAlign=Te),Gt&&(delete Pn.fontFamily,delete Pn.fontWeight),te===r.x.WRichText)Yn!==void 0&&(Pn.fontFamily=Yn),bo!==void 0&&(Pn.fontWeight=bo),Ke!==void 0&&(Pn.sizeType=Ke),ut!==void 0&&(Pn.letterSpacing=ut,_n.letterSpacing=ie.letterSpacing),zt!==void 0&&(Pn.paraSpacing=zt,_n.paraSpacing=ie.paraSpacing),Gt&&(delete Pn.fontFamily,delete Pn.fontWeight),Pn.padding&&(delete Pn.padding,delete _n.padding),(!Gt||!z)&&(St={...St,richTextV1:{...St.richTextV1,...Pn}},(0,w.jv)(St,Pn),(0,t.PQ)(St));else if(te===r.x.WMindNode){const Wn={...St.richTextV1,...Pn,padding:St.richTextV1.padding,horizontalAlign:St.richTextV1.horizontalAlign,verticalAlign:St.richTextV1.verticalAlign,lineHeight:St.richTextV1.lineHeight},Ln=Wn.fontFamily;Wn.lineHeight=(0,S.qp)(Ln,Wn.fontSize),St={...St,richTextV1:Wn}}else St={...St,richTextV1:{...St.richTextV1,...Pn}},(0,w.jv)(St,Pn);lt.richTextV1=_n}else if(JSON.stringify(be)!=="{}"){const Yn=je?+(je==="italic"):void 0,bo=we&&we.includes("underline")?"underline":we&&we.includes("line-through")?"line-through":"normal";if(Y.textV0){const Ke={bold:de?!!de:void 0,fontSize:ve,horizontalAlign:_e,italic:Yn?!!Yn:void 0,lineHeight:Ye,padding:Ae,textColor:Le,textDecoration:bo,verticalAlign:Te};St.textV0=(0,v.Dy)(Ke,Y.textV0);const ut={...lt.textV0};ve!==void 0&&(ut.fontSize=ve),Ye!==void 0&&(ut.lineHeight=Ye),Ae!==void 0&&(ut.padding=Ae),lt.textV0=ut}}if(te===r.x.WElbow){if(Se&&Se.length===2){const[Yn,bo]=Se;St={...St,elbow:{...St.elbow,startAnchor:g.pt[Yn||0],endAnchor:g.qs[bo||1]}}}Me&&Me.bdrStyle&&(St={...St,elbow:{...St.elbow,arrowStroke:{...St.arrowStroke,...Me}}})}if(te!==r.x.WMindNode&&(St.refVars=lt),N.includes(te)){var Hn;St.refStyles={...St.refStyles,appear:(Hn=F.refStyles)==null?void 0:Hn.appear}}if(L.includes(te)){var uo;St.refStyles={...St.refStyles,text:(uo=F.refStyles)==null?void 0:uo.text}}if((J=F.refStyles)!=null&&J.color){var Po;St.refStyles={...St.refStyles,color:(Po=F.refStyles)==null?void 0:Po.color}}return St},D=async(F,Y,X,z)=>{const Z=await(0,v._d)({isShowPrompt:!0});return Z?F.map(J=>{var te;let{key:ge,hotAttr:pe}=J;const Ce=d(pe,Y,X);let me=A(Z,{...pe,cid:ge},Ce,z.has(ge));return me=((te=(0,W.U4)({key:ge,hotAttr:me}))==null?void 0:te.hotAttr)||me,{key:ge,hotAttr:me}}):null},B=F=>{var Y;let{selectedItems:X,otherProps:z}=F;const Z=X[0];if(!Z)return;const J=(0,k.o9)(Z),te=a(J),ge={},pe={};return Object.entries(te).forEach(Ce=>{let[me,be]=Ce;const ie=be.map(re=>re({selectedItems:X,...z})),oe={};ie.forEach(re=>{Object.assign(oe,re),re!=null&&re.refVars&&Object.keys(re.refVars).forEach(fe=>{re.refVars[fe]&&(pe[fe]=re.refVars[fe])})});const he=Object.entries(oe).filter(re=>{let[fe,Se]=re;return Se!==void 0}),ce={};he.forEach(re=>{let[fe,Se]=re;if(me==="text")O.includes(fe)&&(E.includes(fe)?ce[fe]=K(Se):fe==="va"?oe.canVa&&(ce[fe]=Se):fe==="ha"?oe.canHa&&(ce[fe]=Se):fe==="textColor"?ce[fe]=typeof Se=="number"?Se:(0,n.K8)(Se):fe==="textDecoration"?oe.noTd||(ce[fe]=Se):fe==="boldType"?oe.noBold||(ce[fe]=Se):fe==="fontStyle"?oe.noItalic||(ce[fe]=Se):fe==="sizeType"&&[r.x.WRect,r.x.WOval,r.x.WPolygon,r.x.WStar].includes(Z.type)||(ce[fe]=Se));else if(O.includes(fe))if(fe==="background"){if(Z.hotAttr.type!==r.x.WRichText){const Me=typeof Se=="string"?Number(Se):typeof Se=="object"?Se.solidColor:Se;ce[fe]=[1,Me],ce.fill=typeof Se=="string"?{fill:"solid",fillIsVisible:!0,solidColor:Me}:Se}}else if(fe==="fill"){ce[fe]=Se;const Ie=Se.fill==="solid"?Se.solidColor:Se.knobList[0].color;r.Q.BACKGROUND_TO_FILLS.includes(Z.hotAttr.type)&&(ce.background=[1,Ie])}else ce[fe]=fe==="opacity"&&typeof Se=="number"?Se/100:Se;else if(fe==="shadowValue"){const Me="shadow";ce[Me]=Se}}),ge[me]=ce}),Object.assign(ge,(0,W.YH)(pe)),ge.refStyles=Z==null||(Y=Z.hotAttr)==null?void 0:Y.refStyles,ge},j=async F=>{let{selectedItems:Y,...X}=F;const z=B({selectedItems:Y,otherProps:X});await(0,v.Sl)(z)}},67526:(He,ee,e)=>{"use strict";e.d(ee,{W:()=>r,i:()=>n});const n="AUTO_COMPLETE_POSITION_TOP",r="AUTO_COMPLETE_POSITION_LEFT"},67709:(He,ee,e)=>{(function(){var n=e(86401),r=e(16573).utf8,c=e(10308),o=e(16573).bin,I=function(u,d){u.constructor==String?d&&d.encoding==="binary"?u=o.stringToBytes(u):u=r.stringToBytes(u):c(u)?u=Array.prototype.slice.call(u,0):!Array.isArray(u)&&u.constructor!==Uint8Array&&(u=u.toString());for(var C=n.bytesToWords(u),h=u.length*8,i=1732584193,f=-271733879,p=-1732584194,s=271733878,l=0;l<C.length;l++)C[l]=(C[l]<<8|C[l]>>>24)&16711935|(C[l]<<24|C[l]>>>8)&4278255360;C[h>>>5]|=128<<h%32,C[(h+64>>>9<<4)+14]=h;for(var _=I._ff,b=I._gg,a=I._hh,M=I._ii,l=0;l<C.length;l+=16){var x=i,g=f,S=p,t=s;i=_(i,f,p,s,C[l+0],7,-680876936),s=_(s,i,f,p,C[l+1],12,-389564586),p=_(p,s,i,f,C[l+2],17,606105819),f=_(f,p,s,i,C[l+3],22,-1044525330),i=_(i,f,p,s,C[l+4],7,-176418897),s=_(s,i,f,p,C[l+5],12,1200080426),p=_(p,s,i,f,C[l+6],17,-1473231341),f=_(f,p,s,i,C[l+7],22,-45705983),i=_(i,f,p,s,C[l+8],7,1770035416),s=_(s,i,f,p,C[l+9],12,-1958414417),p=_(p,s,i,f,C[l+10],17,-42063),f=_(f,p,s,i,C[l+11],22,-1990404162),i=_(i,f,p,s,C[l+12],7,1804603682),s=_(s,i,f,p,C[l+13],12,-40341101),p=_(p,s,i,f,C[l+14],17,-1502002290),f=_(f,p,s,i,C[l+15],22,1236535329),i=b(i,f,p,s,C[l+1],5,-165796510),s=b(s,i,f,p,C[l+6],9,-1069501632),p=b(p,s,i,f,C[l+11],14,643717713),f=b(f,p,s,i,C[l+0],20,-373897302),i=b(i,f,p,s,C[l+5],5,-701558691),s=b(s,i,f,p,C[l+10],9,38016083),p=b(p,s,i,f,C[l+15],14,-660478335),f=b(f,p,s,i,C[l+4],20,-405537848),i=b(i,f,p,s,C[l+9],5,568446438),s=b(s,i,f,p,C[l+14],9,-1019803690),p=b(p,s,i,f,C[l+3],14,-187363961),f=b(f,p,s,i,C[l+8],20,1163531501),i=b(i,f,p,s,C[l+13],5,-1444681467),s=b(s,i,f,p,C[l+2],9,-51403784),p=b(p,s,i,f,C[l+7],14,1735328473),f=b(f,p,s,i,C[l+12],20,-1926607734),i=a(i,f,p,s,C[l+5],4,-378558),s=a(s,i,f,p,C[l+8],11,-2022574463),p=a(p,s,i,f,C[l+11],16,1839030562),f=a(f,p,s,i,C[l+14],23,-35309556),i=a(i,f,p,s,C[l+1],4,-1530992060),s=a(s,i,f,p,C[l+4],11,1272893353),p=a(p,s,i,f,C[l+7],16,-155497632),f=a(f,p,s,i,C[l+10],23,-1094730640),i=a(i,f,p,s,C[l+13],4,681279174),s=a(s,i,f,p,C[l+0],11,-358537222),p=a(p,s,i,f,C[l+3],16,-722521979),f=a(f,p,s,i,C[l+6],23,76029189),i=a(i,f,p,s,C[l+9],4,-640364487),s=a(s,i,f,p,C[l+12],11,-421815835),p=a(p,s,i,f,C[l+15],16,530742520),f=a(f,p,s,i,C[l+2],23,-995338651),i=M(i,f,p,s,C[l+0],6,-198630844),s=M(s,i,f,p,C[l+7],10,1126891415),p=M(p,s,i,f,C[l+14],15,-1416354905),f=M(f,p,s,i,C[l+5],21,-57434055),i=M(i,f,p,s,C[l+12],6,1700485571),s=M(s,i,f,p,C[l+3],10,-1894986606),p=M(p,s,i,f,C[l+10],15,-1051523),f=M(f,p,s,i,C[l+1],21,-2054922799),i=M(i,f,p,s,C[l+8],6,1873313359),s=M(s,i,f,p,C[l+15],10,-30611744),p=M(p,s,i,f,C[l+6],15,-1560198380),f=M(f,p,s,i,C[l+13],21,1309151649),i=M(i,f,p,s,C[l+4],6,-145523070),s=M(s,i,f,p,C[l+11],10,-1120210379),p=M(p,s,i,f,C[l+2],15,718787259),f=M(f,p,s,i,C[l+9],21,-343485551),i=i+x>>>0,f=f+g>>>0,p=p+S>>>0,s=s+t>>>0}return n.endian([i,f,p,s])};I._ff=function(u,d,C,h,i,f,p){var s=u+(d&C|~d&h)+(i>>>0)+p;return(s<<f|s>>>32-f)+d},I._gg=function(u,d,C,h,i,f,p){var s=u+(d&h|C&~h)+(i>>>0)+p;return(s<<f|s>>>32-f)+d},I._hh=function(u,d,C,h,i,f,p){var s=u+(d^C^h)+(i>>>0)+p;return(s<<f|s>>>32-f)+d},I._ii=function(u,d,C,h,i,f,p){var s=u+(C^(d|~h))+(i>>>0)+p;return(s<<f|s>>>32-f)+d},I._blocksize=16,I._digestsize=16,He.exports=function(u,d){if(u==null)throw new Error("Illegal argument "+u);var C=n.wordsToBytes(I(u,d));return d&&d.asBytes?C:d&&d.asString?o.bytesToString(C):n.bytesToHex(C)}})()},67773:(He,ee,e)=>{"use strict";e.d(ee,{d:()=>C});var n=e(67787),r=e(18381),c=e(34771),o=e(83199),I=e(79150),u=e(78257),d=e(72214);const C=i=>{let{activeIndex:f,tabList:p,onTabChange:s,isShowHistory:l=!0}=i;const _=(0,r.wA)(),b=()=>{MB.global.experienceLoginModalHelper("isSave")||(_({type:"exalt:panel:order",payload:{name:u.lS.History}}),_({type:"historyPanel:set:show",payload:{show:!0}}))};return(0,d.jsxs)(h,{className:"panel-header",children:[(0,d.jsx)(c.Ay,{activeIndex:f,onTabChange:s,children:p.map(a=>{let{key:M,label:x}=a;return(0,d.jsx)(c.nl,{label:x},M)})}),l&&(0,d.jsx)(o.A,{content:I18N.Resources.searchHeader.history,direction:"down",children:(0,d.jsx)("a",{className:"history-box-icon",onClick:b,children:(0,d.jsx)(I.A,{name:"art_board/widget/history",className:"history"})})})]})},h=n.Ay.div.withConfig({displayName:"CommonPanelHeader__StyledCommonPanelHeader",componentId:"sc-1g1nrp3-0"})(["width:100%;display:flex;height:40px;padding:7px 6px;justify-content:space-between;align-items:center;border-bottom:1px solid ",";.history-box-icon{position:relative;&::before{content:'';position:absolute;top:4px;left:-12px;display:block;width:1px;height:16px;background:",";}}.nav-item{margin-left:8px;&:first-child{margin-left:0;}}"],i=>i.theme.color_bg_border_01,i=>i.theme.color_bg_border_01)},68434:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>Ie});var n=e(38502),r=e(18381),c=e(79287),o=e.n(c),I=e(53732),u=e.n(I),d=e(20089),C=Object.defineProperty,h=Object.defineProperties,i=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,l=(de,xe,Le)=>xe in de?C(de,xe,{enumerable:!0,configurable:!0,writable:!0,value:Le}):de[xe]=Le,_=(de,xe)=>{for(var Le in xe||(xe={}))p.call(xe,Le)&&l(de,Le,xe[Le]);if(f)for(var Le of f(xe))s.call(xe,Le)&&l(de,Le,xe[Le]);return de},b=(de,xe)=>h(de,i(xe)),a=(de,xe)=>{var Le={};for(var ve in de)p.call(de,ve)&&xe.indexOf(ve)<0&&(Le[ve]=de[ve]);if(de!=null&&f)for(var ve of f(de))xe.indexOf(ve)<0&&s.call(de,ve)&&(Le[ve]=de[ve]);return Le},x=(0,n.forwardRef)((de,xe)=>{var Le=de,{size:ve,spin:je,style:We}=Le,Ae=a(Le,["size","spin","style"]);const we=_(_({width:ve||"var(--x-icon-size, 1em)",height:ve||"var(--x-icon-size, 1em)",animation:je?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),We);return n.createElement("svg",b(_({ref:xe,style:we},Ae),{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),n.createElement("path",{d:"M10.1416 5.27148C10.1797 5.49887 10.2002 5.73249 10.2002 5.9707L10.1943 6.1875C10.0816 8.40638 8.24687 10.1708 6 10.1709L5.7832 10.166C3.56438 10.0532 1.79986 8.21755 1.7998 5.9707C1.79996 3.88982 3.31361 2.16242 5.2998 1.8291L10.1416 5.27148ZM4.9541 2.63281C3.5326 3.07752 2.50014 4.40284 2.5 5.9707C2.50005 7.90359 4.06713 9.4706 6 9.4707C7.87262 9.4706 9.40252 7.99978 9.49609 6.15039L9.5 5.9707H8.45117C6.57244 5.9707 5.03869 4.49065 4.9541 2.63281ZM6.5459 8.7168C6.3694 8.75166 6.18673 8.77051 6 8.77051C5.81318 8.77048 5.63068 8.75172 5.4541 8.7168L5.58984 8.03125C5.72188 8.05735 5.85909 8.07126 6 8.07129C6.14112 8.07129 6.27892 8.0574 6.41113 8.03125L6.5459 8.7168ZM4.25391 7.13672C4.40742 7.36602 4.60468 7.56426 4.83398 7.71777L4.63965 8.00879L4.44434 8.29883C4.1391 8.09439 3.87622 7.83167 3.67188 7.52637L4.25391 7.13672ZM8.03711 7.33203L8.22266 7.45605L8.32812 7.52637C8.1237 7.83168 7.86099 8.09442 7.55566 8.29883L7.44434 8.13184L7.36133 8.00879L7.16699 7.71777C7.39624 7.56427 7.59359 7.36598 7.74707 7.13672L8.03711 7.33203ZM3.94043 5.56055C3.91433 5.6926 3.90041 5.82977 3.90039 5.9707C3.90039 6.11185 3.91427 6.2496 3.94043 6.38184L3.59668 6.44922L3.25391 6.5166C3.21906 6.34015 3.2002 6.15738 3.2002 5.9707C3.20021 5.82577 3.21118 5.68294 3.23242 5.54395L3.25391 5.4248L3.94043 5.56055ZM5.69629 2.96973C5.93185 4.27793 7.07515 5.27051 8.45117 5.27051H8.93359L5.69629 2.96973ZM4.58691 3.85547L4.83398 4.22461C4.60481 4.37809 4.40736 4.57549 4.25391 4.80469L3.81543 4.51172L3.67188 4.41504C3.87623 4.10983 4.13913 3.84695 4.44434 3.64258L4.58691 3.85547Z",fill:"#8B8C8F"}))}),g=Object.defineProperty,S=Object.defineProperties,t=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,W=(de,xe,Le)=>xe in de?g(de,xe,{enumerable:!0,configurable:!0,writable:!0,value:Le}):de[xe]=Le,K=(de,xe)=>{for(var Le in xe||(xe={}))w.call(xe,Le)&&W(de,Le,xe[Le]);if(v)for(var Le of v(xe))k.call(xe,Le)&&W(de,Le,xe[Le]);return de},G=(de,xe)=>S(de,t(xe)),$=(de,xe)=>{var Le={};for(var ve in de)w.call(de,ve)&&xe.indexOf(ve)<0&&(Le[ve]=de[ve]);if(de!=null&&v)for(var ve of v(de))xe.indexOf(ve)<0&&k.call(de,ve)&&(Le[ve]=de[ve]);return Le},E=(0,n.forwardRef)((de,xe)=>{var Le=de,{size:ve,spin:je,style:We}=Le,Ae=$(Le,["size","spin","style"]);const we=K(K({width:ve||"var(--x-icon-size, 1em)",height:ve||"var(--x-icon-size, 1em)",animation:je?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),We);return n.createElement("svg",G(K({ref:xe,style:we},Ae),{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),n.createElement("rect",{x:"2.6999",y:"2.6999",width:"6.6",height:"6.6",rx:"0.3",stroke:"#8B8C8F",strokeWidth:"0.6"}),n.createElement("path",{d:"M4.7996 5.4002C4.46818 5.4002 4.19946 5.13166 4.19946 4.8002C4.19946 4.46873 4.46845 4.2002 4.79988 4.2002C5.1313 4.2002 5.39946 4.46873 5.39946 4.8002C5.39946 5.13166 5.13102 5.4002 4.7996 5.4002Z",fill:"#B7B9BD"}),n.createElement("path",{d:"M4.88384 6.27645C4.81244 6.17465 4.69704 6.17465 4.62584 6.27645L3.63424 7.69085C3.56284 7.79245 3.60544 7.87485 3.72904 7.87485H8.27104C8.39484 7.87485 8.43624 7.79265 8.36444 7.69125L6.79364 5.47625C6.72124 5.37425 6.60504 5.37465 6.53304 5.47625L5.42144 7.04365L4.88384 6.27645Z",fill:"#B7B9BD"}))}),H=Object.defineProperty,O=Object.defineProperties,V=Object.getOwnPropertyDescriptors,Q=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,U=(de,xe,Le)=>xe in de?H(de,xe,{enumerable:!0,configurable:!0,writable:!0,value:Le}):de[xe]=Le,A=(de,xe)=>{for(var Le in xe||(xe={}))N.call(xe,Le)&&U(de,Le,xe[Le]);if(Q)for(var Le of Q(xe))L.call(xe,Le)&&U(de,Le,xe[Le]);return de},D=(de,xe)=>O(de,V(xe)),B=(de,xe)=>{var Le={};for(var ve in de)N.call(de,ve)&&xe.indexOf(ve)<0&&(Le[ve]=de[ve]);if(de!=null&&Q)for(var ve of Q(de))xe.indexOf(ve)<0&&L.call(de,ve)&&(Le[ve]=de[ve]);return Le},F=(0,n.forwardRef)((de,xe)=>{var Le=de,{size:ve,spin:je,style:We}=Le,Ae=B(Le,["size","spin","style"]);const we=A(A({width:ve||"var(--x-icon-size, 1em)",height:ve||"var(--x-icon-size, 1em)",animation:je?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),We);return n.createElement("svg",D(A({ref:xe,style:we},Ae),{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.3999 2.9999C2.3999 2.66853 2.66853 2.3999 2.9999 2.3999H8.9999C9.33127 2.3999 9.5999 2.66853 9.5999 2.9999V8.9999C9.5999 9.33127 9.33127 9.5999 8.9999 9.5999H2.9999C2.66853 9.5999 2.3999 9.33127 2.3999 8.9999V2.9999ZM8.57562 2.9999H3.42417L5.99989 5.57563L8.57562 2.9999ZM2.9999 3.42417L2.9999 8.57562L5.57563 5.99989L2.9999 3.42417ZM3.42415 8.9999H8.57564L5.99989 6.42416L3.42415 8.9999ZM8.9999 8.57564V3.42415L6.42416 5.99989L8.9999 8.57564Z",fill:"#8B8C8F"}))}),Y=e(89240),X=e(17307),z=e(21066),Z=e(39e3),J=e(8228),te=e(74923),ge=e(93413),pe=e(13846),Ce=e(88670),me=e(87945),be=e(18356),ie=e(29611),oe=e(4179),he=e(32879),ce=e(72214);const re=(0,n.memo)(de=>{const{className:xe,widgetInsertableData:Le,current:ve,onUpdateCurrent:je,dragAndInsertWidgetHandler:We,dblClickAndInsertWidgetHandler:Ae,quickCreateInsertWidgetHandler:we,dblClickImageStickerHandler:_e,dragAndInsertImageStickerHandler:Te}=de,[Ye,Fe]=(0,n.useState)(!1),{preview:Ve,meta:rt,data:Ue}=Le,{type:et,name:lt,key:Je,metaType:Xe}=rt,st=Xe||et,nt=(0,n.useRef)(null),[tt,ct]=(0,n.useState)({top:0,left:0}),ht=(0,r.wA)(),It=(0,n.useMemo)(()=>({[d.x.WRichText]:[{name:I18N.w.rich_text,key:"T",icon:"left_panel/text/new",value:d.x.WRichText,isCanSelect:!0,isDefaultSelected:!0},{value:"dirver",isHide:ENV.IS_ON_PREMISES},{name:I18N.LeftSidePanel.widgetPanel.text_auto_fill,icon:"chatGPT/left_panel_header"+(ENV.IS_MO?"":"_new"),isColorPure:!0,isHide:ENV.IS_ON_PREMISES,value:"auto-text"}],[d.x.WRect]:[{name:I18N.w.rounded_rect,key:"R",icon:"left_panel/rectangle/new",value:d.x.WRect,isCanSelect:!0,isDefaultSelected:!0},{value:"dirver"},{name:I18N.w.polygon,icon:"left_panel/polygon/new",value:d.x.WPolygon,sceData:(0,be._T)()},{name:I18N.w.triangleb,icon:"left_panel/eq_triangle/new",value:d.x.WTriangle,sceData:(0,be._i)()},{name:I18N.w.star,icon:"left_panel/star/new",value:d.x.WStar,sceData:(0,be.sb)()}],[d.x.WImage]:[{name:I18N.w.image_view,icon:"left_panel/image/new",value:"image-portal",isCanSelect:!0},...ENV.IS_ON_PREMISES?[]:[{name:I18N.LeftSidePanel.image_sticker,icon:"left_panel/image_sticker/new",corner:(0,ce.jsx)(x,{size:12}),value:"image_sticker_portal",isCanSelect:!0}],{name:I18N.LeftSidePanel.widgetPanel.image_placeholder,icon:"left_panel/image_placeholder/new",iconClassName:"icon-image-placeholder",corner:(0,ce.jsx)(E,{size:12}),value:d.x.WImage,isCanSelect:!0,isDefaultSelected:!0},{name:I18N.LeftSidePanel.widgetPanel.placeholder,icon:"left_panel/placeholder/new",corner:(0,ce.jsx)(F,{size:12}),value:d.x.WPlaceholder,isCanSelect:!0,sceData:(0,be.RU)()},{value:"dirver",isHide:ENV.IS_ON_PREMISES},{name:I18N.LeftSidePanel.widgetPanel.image_auto_fill,icon:"chatGPT/left_panel_header"+(ENV.IS_MO?"":"_new"),isColorPure:!0,isHide:ENV.IS_ON_PREMISES,value:"auto-image"}]}),[]),it=(0,n.useMemo)(()=>{const ut=It[et],zt=ut.find(bt=>bt.isDefaultSelected);return zt&&!ve&&je(zt==null?void 0:zt.value),ut},[It,et,je]),Tt=(0,n.useMemo)(()=>it.find(ut=>ut.value===ve),[ve,it]),Lt=(0,n.useCallback)(ut=>{if(ut.preventDefault(),ut.stopPropagation(),!Ye){const{top:zt,left:bt}=nt.current.getBoundingClientRect();ct({top:zt+14,left:bt})}Fe(!Ye)},[Ye]),Rt=(0,n.useCallback)(ut=>{const{target:zt}=ut,bt=zt.closest(".insertable-context-menu"),xn=zt.closest("widget-insertable");if(bt||xn||(ut.preventDefault(),ut.stopPropagation(),ht({type:"set:quick-create-widget",payload:{widget:null}})),!Ye)return;const kn=nt.current.contains(zt);bt||kn||Fe(!1)},[Ye,opener,ht]),Wt=ut=>{ut.preventDefault();const zt=(0,J.$I)().find(bt=>bt.type===J.SR.AutoFill);zt.source="\u53F3\u952E\u83DC\u5355\u667A\u80FD\u586B\u5145AI",ht({type:Ce.X.AIOpenModal,payload:zt})},Kt=(ut,zt)=>{if(ut.preventDefault(),ENV.IS_MO){Wt(ut);return}ht({type:"entry:autoFillPanel:toggle:show",payload:{canClose:!1,openFrom:me.G.WidgetPanel,defaultTab:zt}})},Gt=(0,n.useCallback)((ut,zt)=>{ut.preventDefault(),ut.stopPropagation();const{value:bt,isCanSelect:xn}=zt;switch(xn&&je(bt),bt){case"auto-text":case"auto-image":{Kt(ut,bt==="auto-image"?1:0);break}case d.x.WRichText:case d.x.WRect:case d.x.WImage:{we(ut,st,Ue);break}case d.x.WPolygon:case d.x.WTriangle:case d.x.WPlaceholder:case d.x.WStar:{if(!(zt!=null&&zt.sceData))return;const{sceData:{meta:kn,data:gn}}=zt;we(ut,kn.metaType||kn.type,gn);break}case"image-portal":{ht({type:"modal:update:state",payload:{imageModal:{isOpen:!0}}});break}case"image_sticker_portal":{ht({type:"modal:update:state",payload:{imageModal:{isOpen:!0,source:ie.S.Sticker}}});break}default:break}Fe(!1)},[ht,je]),St=(0,n.useCallback)(ut=>{if(Te){if((Tt==null?void 0:Tt.value)===d.x.WPlaceholder){We(ut,Tt==null?void 0:Tt.sceData);return}else if(["image-portal","image_sticker_portal"].includes(Tt==null?void 0:Tt.value)){Te(ut,Tt==null?void 0:Tt.value);return}}We(ut,Le)},[Tt,Le,We,Te]),Hn=(0,n.useCallback)(ut=>{!ut.target.closest(".widget-insertable")||Po.current||(Tt||we(ut,st,Ue),Gt(ut,Tt))},[Tt,Gt,we]),uo=(0,n.useCallback)(ut=>{if(_e){if((Tt==null?void 0:Tt.value)===d.x.WPlaceholder){Ae(ut,Tt==null?void 0:Tt.sceData);return}else if(["image-portal","image_sticker_portal"].includes(Tt==null?void 0:Tt.value)){_e(ut,Tt==null?void 0:Tt.value);return}}Ae(ut,Le)},[Tt,Le,_e,Ae]),{isMoveAfterClick:Po,handleMouseDown:Yn,handleClick:bo,handleDoubleClick:Ke}=(0,oe.A)({onMouseDown:St,onClick:Hn,onDoubleClick:uo});return it!=null&&it.length?(0,ce.jsxs)(he.xj,{className:u()("widget-insertable","is-dropdown",xe),"data-guide-id":Ve,onMouseDown:Yn,onClick:bo,onDoubleClick:Ke,children:[(0,ce.jsxs)("div",{className:u()("widget-icon-wrapper","w_"+Ve),children:[(0,ce.jsx)(X.C,{name:"art_board/widget/"+Ve}),(0,ce.jsx)(Y.A,{size:14,className:u()("arrow",et,{"is-expand":Ye}),ref:nt,onClick:Lt}),(Tt==null?void 0:Tt.corner)&&(0,ce.jsx)("div",{className:u()("corner-icon",et,Tt.iconClassName),children:Tt==null?void 0:Tt.corner})]}),(0,ce.jsx)("span",{className:"widget-name",children:lt}),Je&&(0,ce.jsx)(X.C,{className:"widget-key",name:"art_board/widget/"+Ve+"/"+Je,isColorPure:!0}),Ye&&(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsx)(he.d8,{className:"insertable-context-menu",position:tt,children:it.map(ut=>{const{name:zt,key:bt,icon:xn,value:kn,isHide:gn,isColorPure:Zn,iconClassName:Pn=""}=ut;return gn?null:kn==="dirver"?(0,ce.jsx)(he.TQ,{}):(0,ce.jsx)(z.Dr,{text:zt,onClick:_n=>Gt(_n,ut),hotKeyText:[bt],icon:(0,ce.jsxs)("div",{className:"option-icon-box",children:[(0,ce.jsx)(X.C,{name:"common/checked",className:u()("checked",{show:ve===kn})}),(0,ce.jsx)(X.C,{className:u()(Pn,"option-icon"),name:xn,isColorPure:Zn})]})})})}),(0,ce.jsx)(Z.A,{target:document,onClick:Rt})]})]}):null}),fe=de=>{if(ENV.IS_ON_PREMISES)return!1;try{const{meta:{type:ve}}=de;switch(ve){case d.x.CanvasAsOverlay:{var xe,Le;return MB.commonGuideHelper.checkGuideHasShown(ge.c.GUIDE_NEW_OVERLAY_ONCE)?!1:(xe=MB)!=null&&(xe=xe.user)!=null&&xe.created_at?o()((Le=MB)==null||(Le=Le.user)==null?void 0:Le.created_at).isBefore(o()("2024-07-02")):!1}default:return!1}}catch(ve){return!1}},Se=(0,n.memo)(de=>{const{className:xe,widgetInsertableData:Le,isHlAsRecentlyAdded:ve,dragAndInsertWidgetHandler:je,dblClickAndInsertWidgetHandler:We,quickCreateInsertWidgetHandler:Ae}=de,{preview:we,meta:_e,meta:{type:Te,metaType:Ye,key:Fe},data:Ve}=Le,rt=Ye||Te,Ue=(0,n.useCallback)(st=>{et!=null&&et.current||Ae(st,rt,Ve)},[Ae,Le]),{isMoveAfterClick:et,handleMouseDown:lt,handleClick:Je,handleDoubleClick:Xe}=(0,oe.A)({onMouseDown:st=>je(st,Le),onClick:Ue,onDoubleClick:st=>We(st,Le)});return(0,ce.jsxs)(he.xj,{className:u()("widget-insertable",xe),"data-guide-id":we,onMouseDown:lt,onClick:Je,onDoubleClick:Xe,children:[(0,ce.jsx)("div",{className:u()("widget-icon-wrapper","w_"+we),children:(0,ce.jsx)(X.C,{name:"art_board/widget/"+we})}),(0,ce.jsx)("span",{className:"widget-name",children:_e.name}),_e.key&&(0,ce.jsx)(X.C,{className:"widget-key",name:"art_board/widget/"+we+"/"+_e.key,isColorPure:!0}),ve&&(0,ce.jsx)("span",{className:"recently-added-highlight"})]})}),Ie=(0,n.memo)(de=>{const{className:xe,widgetInsertableData:Le,widgetInsertableData:{meta:{type:ve}}}=de,[je,We]=(0,n.useState)(fe(Le)),[Ae,we]=(0,n.useState)(!1),_e=()=>we(!0),Te=()=>{we(!1),We(!1)},Ye=(0,pe.aX)(_e,Te),Fe=(0,pe.af)(Te),Ve=(0,pe.e1)(Te),[rt,Ue]=(0,n.useState)(""),et=(0,r.d4)(te.pF),lt=(0,r.wA)(),Je=(0,n.useCallback)(Xe=>{lt({type:"widget-panel:update:state",payload:{imageWidgetDropdownCurrent:Xe}})},[lt]);if([d.x.WRichText,d.x.WRect,d.x.WImage].includes(ve)){const{handleDblClickImageSticker:Xe,handleDragAndInsertImageSticker:st}=(0,pe.Gw)(_e,Te);return(0,ce.jsx)(re,{className:u()(xe,{active:Ae}),widgetInsertableData:Le,current:ve===d.x.WImage?et:rt,onUpdateCurrent:ve===d.x.WImage?Je:Ue,dragAndInsertWidgetHandler:Ye,dblClickAndInsertWidgetHandler:Fe,quickCreateInsertWidgetHandler:Ve,dblClickImageStickerHandler:Xe,dragAndInsertImageStickerHandler:st})}return(0,ce.jsx)(Se,{className:u()(xe,""+((Le==null?void 0:Le.preview)==="mind"?ge.c.GUIDE_NOVICE_V9_2408_STEP_2:""),{active:Ae}),isHlAsRecentlyAdded:je,widgetInsertableData:Le,dragAndInsertWidgetHandler:Ye,dblClickAndInsertWidgetHandler:Fe,quickCreateInsertWidgetHandler:Ve})})},68455:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>p});var n=e(95549),r=e(38502),c=e(69623),o=e(17307),I=e(53732),u=e.n(I),d=e(59844),C=e(67787);const h=C.Ay.div.withConfig({displayName:"styles__StyledActionList",componentId:"sc-1ef2tfi-0"})(["position:absolute;z-index:1101;font-size:12px;.list-content{padding:8px;background:",";box-shadow:",";min-width:160px;cursor:pointer;border-radius:8px;border:1px solid ",";.action{display:flex;align-items:center;padding:0 16px;border-radius:4px;height:28px;color:",";white-space:nowrap;.new{margin-left:5px;}&.disabled{color:",";}.svg-icon{color:",";transition:flex 0.2s ease-in-out;.fore{fill:#c8cdd0;}}.item-icon{margin-right:6px;}a{width:100%;line-height:26px;height:100%;color:unset;}&:not(.disabled):hover{background:",";color:",";.svg-icon{color:",";.fore{fill:",";}}}.item-select{margin-left:10px;}}}"],s=>s.theme.color_bg_white,s=>s.theme.shadow_m,s=>s.theme.color_bg_border_01,s=>s.theme.color_text_L1,s=>s.theme.color_text_disabled01,s=>s.theme.color_text_L1,s=>s.theme.color_btn_secondary_hover,s=>s.theme.color_text_L1,s=>s.theme.color_proto,s=>s.theme.color_proto),i=C.Ay.div.withConfig({displayName:"styles__Divider",componentId:"sc-1ef2tfi-1"})(["margin:8px 0;border-top:1px solid ",";"],s=>s.theme.color_bg_border_01);var f=e(72214);class p extends r.PureComponent{constructor(l){super(l),(0,n.A)(this,"handStopPropagation",_=>{_.stopPropagation()}),(0,n.A)(this,"setMenuRef",_=>this.$menu=_),this.state={listMenuPosition:{}},this.el=document.createElement("div")}componentDidMount(){const{targetNode:l,direction:_,distance:b}=this.props;document.body.appendChild(this.el);const{sourceNodePosition:a}=(0,d.A)(l,this.$menu,{direction:_,distance:b,forceDirection:!1});this.setState({listMenuPosition:a})}componentWillUnmount(){document.body.removeChild(this.el)}render(){const{menuItems:l,className:_}=this.props,{listMenuPosition:b}=this.state,a=l.filter(x=>{let{isShow:g}=x;return g}),M={...b};return(0,c.createPortal)((0,f.jsx)(h,{ref:this.setMenuRef,style:M,children:(0,f.jsx)("div",{id:"list-menu",className:u()("list-content",_),onMouseDown:this.handStopPropagation,onDoubleClick:this.handStopPropagation,children:a.map(x=>{let{key:g,label:S,isActive:t,iconName:v,onClick:w,renderAction:k,isNew:W}=x;return typeof k=="function"?k():S==="divider"?(0,f.jsx)(r.Fragment,{children:(0,f.jsx)(i,{})},S):(0,f.jsxs)("div",{"data-item":g,className:"action",onClick:w,children:[v&&(0,f.jsx)(o.C,{className:"item-icon",name:v}),(0,f.jsx)("span",{children:S}),t&&(0,f.jsx)(o.C,{className:"item-select",name:"library/select/new"}),W&&(0,f.jsx)(o.C,{className:"new",name:"design/find_picture/new",isColorPure:!0,style:{width:27,height:12}})]},S)})})}),this.el)}}(0,n.A)(p,"defaultProps",{menuX:"",direction:"down",distance:0})},68789:(He,ee,e)=>{"use strict";e.d(ee,{V:()=>c,W:()=>r});var n=e(20892);let r=function(o){return o[o.Everyone=n.b2.Everyone]="Everyone",o[o.MdMemberFree=n.b2.MdMemberFree]="MdMemberFree",o[o.MdMemberDiscount=n.b2.MdMemberDiscount]="MdMemberDiscount",o[o.MdOriginPrice=n.b2.MdOriginPrice]="MdOriginPrice",o[o.MktMemberFree=n.b2.MktMemberFree]="MktMemberFree",o[o.MktMemberDiscount=n.b2.MktMemberDiscount]="MktMemberDiscount",o[o.MktOriginPrice=n.b2.MktOriginPrice]="MktOriginPrice",o}({}),c=function(o){return o.Builtin="\u5185\u7F6E",o.User="\u6211\u7684",o.Org="\u4F01\u4E1A",o.Find="\u53D1\u73B0",o.AIComponent="AI\u7EC4\u4EF6",o}({})},68863:(He,ee,e)=>{"use strict";e.d(ee,{F:()=>o,M:()=>c});var n=e(26034),r=e(20089);const c=I=>{const u=sdkStore.getHotItem(I.key).hotAttr,d=MB.getNextWidgetZ();return{...n.N[r.x.WBasket]("bMuban",I.key,u.defaultCanvasKey,u.name,d,u.w/2,u.h/2,u.w,u.h,u.scroll,u.layout,u.showScrollBar),left:0,top:0}},o=I=>{if(!(I!=null&&I.length))return null;const u=I[I.length-1];if(!u)return null;if([r.x.WIcon,r.x.WImage].includes(u.type))return u;if((u==null?void 0:u.length)===2||(u==null?void 0:u.length)===3){const[d,C]=u;if(!(d!=null&&d.length))return null;const h=d[d.length-1];if(!h)return null;const i=C.getHotItem(h.key);return i?{...i,...i.hotAttr}:null}return null}},69374:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>l});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),I=e(17307),u=e(6566),d=e(40486),C=e(93257),h=e(17573),i=e(99566),f=e(88981),p=e(72214);const s=["tap","dtap","pointerdown","pointerup","hold","shake-divider","mouseIn","mouseOut","rightClick","keydown","shake-divider","left","right","up","down","shake-divider","listener","shake","timer"];class l extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleSelect",b=>{if(b.currentTarget.classList.contains("disabled"))return;const{gesture:a}=b.currentTarget.dataset;this.props.onSelect(a)})}render(){var b;const{currentGesture:a}=this.props,x=MB.getSelectionItems().length===1&&(0,i.b7)((b=MB.getSelectionItems()[0])==null?void 0:b.hotAttr.type)&&(0,h.qK)()?[f.O.InputEvent,...s]:s;return(0,p.jsx)(u.A,{children:(0,p.jsx)("ul",{children:x.map((g,S)=>{const t=g===a,v=g==="shake-divider",w=o()({gesture:g!=="shake-divider",current:t,"shake-divider":v,"is-active":t});return(0,p.jsxs)("li",{role:g!=="shake-divider"?"option":"","data-gesture":g,className:w,"data-microtip-position":"left",onClick:this.handleSelect,children:[t&&(0,p.jsx)(I.C,{name:"common/checked",className:"checked display-gesture"}),!v&&(0,p.jsx)(I.C,{name:"interaction/trigger/"+g,className:"display-gesture"}),!v&&(0,p.jsxs)("p",{children:[(0,d.Oz)(g)," "]}),g==="listener"&&(0,p.jsx)(C.A,{content:I18N.Interaction.trigger.listener_tip,direction:"down",maxWidth:"180px",children:(0,p.jsx)(I.C,{className:"listener-tip",size:16,name:"interaction/trigger/listener/tip"})})]},S)})})})}}},69874:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>d});var n=e(95549),r=e(25582),c=e.n(r),o=e(38502),I=e(9248),u=e(72214);class d extends o.PureComponent{constructor(h){super(h),(0,n.A)(this,"handleChange",i=>{this.setState({value:i});const{onChange:f}=this.props;f&&f(i)}),(0,n.A)(this,"handleBlur",()=>{const{onConfirm:i}=this.props,{value:f}=this.state,p=f!==this.initialValue;i&&i(this.state.value,p)}),this.state={value:h.value,isPreviouslyEditing:h.isEditing},this.initialValue=h.value}static getDerivedStateFromProps(h,i){return h.isEditing!==i.isPreviouslyEditing?{value:h.value,isPreviouslyEditing:h.isEditing}:null}render(){const{isEditing:h,className:i,isShowToolTips:f,highlightKeyword:p}=this.props,{value:s}=this.state;return(0,u.jsx)(I.A,{value:s,className:i,editing:h,onBlur:this.handleBlur,onChange:this.handleChange,isShowToolTips:f,highlightKeyword:p})}}(0,n.A)(d,"propTypes",{value:c().string,className:c().string,isEditing:c().bool,onConfirm:c().func,onChange:c().func,isShowToolTips:c().bool}),(0,n.A)(d,"defaultProps",{isShowToolTips:!1})},71190:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>p});var n=e(95549),r=e(38502),c=e(17307),o=e(72140),I=e(3877),u=e(67787);const d=u.Ay.div.withConfig({displayName:"styles__StyledSubPanel",componentId:"sc-eofhna-0"})(["width:240px;border-top:1px solid ",";padding:8px 0;&.animation-sub-panel > header{height:64px;padding-bottom:32px;}& > header{height:32px;font-weight:600;padding-left:16px;padding-right:10px;display:flex;align-items:center;justify-content:space-between;transition:all 0.2s ease-in-out;cursor:pointer;.title{color:",";font-weight:600;}.customize-title{display:flex;flex:1;& > a{transform:scaleY(-1);}}.reset-btn{margin-left:auto;margin-right:10px;color:#8d9ea7;}.angle-icon-wrap{display:flex;width:24px;height:24px;align-items:center;justify-content:center;border-radius:4px;&:hover{background-color:",";}&:active{background-color:",";}.icon{width:24px;height:24px;text-align:center;color:",";transform:rotate(180deg);transition:transform 0.2s ease-in-out;}}}&.md-foldable > header .icon{transform:rotate(0);}"],s=>s.theme.color_bg_border_01,s=>s.theme.color_text_L1,s=>s.theme.color_btn_secondary_hover,s=>s.theme.color_btn_secondary_active,s=>s.theme.color_text_L1);var C=e(53732),h=e.n(C),i=e(79150),f=e(72214);class p extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleCollapse",()=>{const{onChange:l}=this.props;l&&l()}),(0,n.A)(this,"handleReset",l=>{l.stopPropagation(),this.props.onReset()})}render(){const{title:l,children:_,collapse:b,canReset:a,className:M,renderTips:x,headerChildren:g,rightHeader:S,style:t,onClickAdd:v}=this.props,w=typeof b=="boolean";return(0,f.jsxs)(d,{className:h()("sub-panel",M,{"md-foldable":b}),style:t,children:[(0,f.jsxs)("header",{onClick:w?this.handleCollapse:null,style:{cursor:"default"},children:[(0,f.jsx)("p",{className:"title",children:l}),g&&g,a&&(0,f.jsx)("span",{className:"reset-btn",onClick:this.handleReset,children:I18N.SettingPanel.inspector.reset}),w&&(0,f.jsx)("div",{className:"angle-icon-wrap",children:(0,f.jsx)(c.C,{name:"common/expand@20"})}),v&&(0,f.jsx)(i.A,{name:"common/add@24",onClick:v}),x&&(0,f.jsx)("div",{className:"title customize-title",children:(0,f.jsx)(I.A,{renderContent:x})}),S&&S]}),w?(0,f.jsx)(o.A,{collapse:b,children:_}):_]})}}},71577:(He,ee,e)=>{"use strict";e.d(ee,{CH:()=>b,G_:()=>p,JL:()=>s,LD:()=>l,QV:()=>_,c4:()=>f});var n=e(19249),r=e(18833),c=e(79287),o=e.n(c),I=e(10472),u=e(85449),d=e(81973),C=e(60651),h=e(78915),i=e(23767);const f=async(a,M)=>{const x=new URL("/api/upper/web_v1/version/"+a+"/all",window.location.origin);M&&x.searchParams.append("access_token",M);let g=[];try{g=await(0,n.DE)(x.href)}catch(S){S.status===403||/403/.test(S.message)?M?MB.global.popupHelper.alertAsync({title:I18N.dModule.project_share_p_changed,confirmText:I18N.dModule.confirm,desc:I18N.dModule.project_share_p_changed_desc}).then(()=>location.reload()):MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.cant_edit,confirmText:I18N.dModule.exit_editing,desc:I18N.dModule.cant_edit_desc,isHTML:!1}).then(()=>location.reload()):(S.status===401||/401/.test(S.message))&&MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.err_info_modal.INVALID_COOKIE.title,desc:I18N.dModule.err_info_modal.INVALID_COOKIE.desc,confirmText:I18N.dModule.confirm,isHTML:!1}).then(()=>(0,r.AG)())}return g},p=async()=>{const a=(0,u.dP)(),M=(0,C.jx)(a),{isEditingCombo:x}=(0,I.r)(a);if(x||M===h.qi.OnlyView||MB.versionNextCheckpoint&&o()(o()()).isBefore(MB.versionNextCheckpoint*1e3)||!MB.getRootProject())return;const g=MB.getRootProject(),{nextCheckpoint:S,clientData:t}=await s({projectCid:g.cid,title:o()().format("YYYY.MM.DD HH:mm"),desc:"",category:"auto"}),v=S!==MB.versionNextCheckpoint;if(MB.versionNextCheckpoint=S,t){const W=(0,u.dP)();(0,d.vr)(W)&&MB.action("versions:create",{newVersion:t})}if(v&&ENV.IS_ON_PREMISES&&MB.user){var w,k;(0,i.Bf)(i.Ff,{projectName:g.name,userName:MB.user.name,orgCid:((w=MB.currentOrg)==null?void 0:w.cid)||((k=MB.org)==null?void 0:k.cid)})}},s=a=>{let{projectCid:M,title:x,desc:g,category:S="auto"}=a;return(0,n.zi)("/flpak/w-pakv-new?upperCid="+M+"&category="+S,{title:x,description:g})},l=async a=>{let{projectCid:M,versionCid:x,newTitle:g,newDesc:S}=a;return(0,n.SN)("/api/upper/web_v1/version/"+M+"/"+x,{title:g,description:S})},_=async a=>{let{versionCid:M,title:x,description:g}=a;return(0,n.zi)("/flpak/w-pakv-reset?upperCid="+M+"&category=auto",{title:x,description:g})},b=async a=>{let{projectCid:M,versionCid:x}=a;try{return(0,n.OD)("/api/upper/web_v1/version/"+M+"/"+x)}catch(g){await(0,r.FY)(g)}}},71862:(He,ee,e)=>{"use strict";e.d(ee,{y:()=>n});const n=function(r,c,o){return o===void 0&&(o=!1),r.map(I=>{var u;const{key:d}=I,C=(u=sdkStore.getHotItem(d))==null?void 0:u.hotAttr;if(C){var h;const i=Math.floor(Date.now()/1e3),f=((h=C.deleteInfo)==null?void 0:h.deleteTime)||0,p=i-f,s=c*24*60*60;if(o?p>s:p<=s)return{...I}}return null}).filter(Boolean)}},71893:(He,ee,e)=>{var n=e(93973),r=e(24923),c=e(38195),o=e(32554),I=e(28207),u=e(71197),d=200;function C(h,i,f,p){var s=-1,l=r,_=!0,b=h.length,a=[],M=i.length;if(!b)return a;f&&(i=o(i,I(f))),p?(l=c,_=!1):i.length>=d&&(l=u,_=!1,i=new n(i));e:for(;++s<b;){var x=h[s],g=f==null?x:f(x);if(x=p||x!==0?x:0,_&&g===g){for(var S=M;S--;)if(i[S]===g)continue e;a.push(x)}else l(i,g,p)||a.push(x)}return a}He.exports=C},72140:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>u});var n=e(95549),r=e(25582),c=e.n(r),o=e(38502),I=e(72214);class u extends o.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"state",{transitionState:"end",overflow:"visible"}),(0,n.A)(this,"setElementRef",C=>this.$elem=C),(0,n.A)(this,"setHeight",C=>{this.$elem&&(this.$elem.style.height=C)}),(0,n.A)(this,"resetHeight",C=>{C.target===this.$elem&&(this.setHeight(this.props.collapse?0:""),this.setState({transitionState:"end",overflow:this.props.collapse?"hidden":"visible"}))}),(0,n.A)(this,"setTransitionStart",C=>{C.target===this.$elem&&this.setState({transitionState:"start",overflow:"hidden"})}),(0,n.A)(this,"getHeight",()=>{const{$elem:C}=this;return C?Math.min(this.props.maxTransitioningHeight,Array.prototype.reduce.call(C.children,(h,i)=>h+i.getBoundingClientRect().height,0)):0})}componentDidMount(){this.props.collapse&&this.setHeight(0),this.$elem.addEventListener("transitionend",this.resetHeight),this.$elem.addEventListener("transitionstart",this.setTransitionStart)}UNSAFE_componentWillReceiveProps(C){const{collapse:h}=this.props,{collapse:i}=C;h!==i&&i&&this.setHeight(this.getHeight()+"px")}componentDidUpdate(C){C.collapse!==this.props.collapse&&setTimeout(()=>{this.setHeight((this.props.collapse?0:this.getHeight())+"px")})}componentWillUnmount(){this.$elem.removeEventListener("transitionend",this.resetHeight),this.$elem.removeEventListener("transitionstart",this.setTransitionStart)}render(){const{className:C,duration:h,children:i,collapse:f}=this.props,p={overflow:this.state.overflow,transition:"height "+h+"ms ease-in-out"};return(0,I.jsx)("div",{ref:this.setElementRef,className:C,style:p,children:!f&&i})}}u.propTypes={duration:c().number,maxTransitioningHeight:c().number,className:c().string,collapse:c().bool.isRequired,children:c().oneOfType([c().element,c().array])},u.defaultProps={className:"",duration:200,maxTransitioningHeight:1/0}},72447:(He,ee,e)=>{"use strict";e.d(ee,{N:()=>_});var n=e(38502),r=e(18381),c=e(53732),o=e.n(c),I=e(5649),u=e(23089),d=e(17307),C=e(4648),h=e(15186),i=e(67787);const f=i.Ay.div.withConfig({displayName:"styles__StyledIconSettings",componentId:"sc-l3y2zr-0"})(["&.color-settings{height:24px;margin:12px 0;padding:0 6px;display:flex;align-items:center;flex-shrink:0;justify-content:space-between;.left-box{display:flex;justify-content:space-between;align-items:center;}.color-button{position:relative;width:20px;height:20px;border-radius:2px;border:1px solid ",";cursor:pointer;overflow:hidden;transition:border-color 0.2s ease-out;background-image:linear-gradient(45deg,#ccc 25%,transparent 0),linear-gradient(-45deg,#ccc 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ccc 0),linear-gradient(-45deg,transparent 75%,#ccc 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0;background-clip:padding-box;&:hover{border-color:",";}.inner{width:20px;height:20px;border-radius:1px;}}.color-text{color:",";line-height:21px;margin-left:5px;margin-right:5px;}.color-size{width:56px;margin-right:0;&.has-menu{&:hover:not(.is-active):not(.is-disabled),&:active:not(.is-active):not(.is-disabled){.action.caret{background:none;}}&.is-active .action.caret{&:hover{background:none;outline:none;border-radius:0;}}&.is-menu-open{border:1px solid ",";.action.caret{transform:rotate(-180deg);}}input{padding-left:4px;width:100%;}}.action{visibility:visible;top:1px;.caret{width:22px;}button{.svg-icon{width:22px;height:22px;color:",";}}}}.select-box{position:relative;.select-more-svg{position:absolute;top:8px;left:8px;}.select-icon-set{width:112px;height:28px;padding-left:24px;&:lang(en){width:120px}button{flex:1;}}}}&.is-monochrome{.color-size{margin-right:6px;}}.icon-seeting-library{position:relative;margin-left:auto;margin-right:4px;display:flex;color:",";.svg-icon{width:16px;height:16px;}.unread-icon{top:-5px;right:-5px;}&:hover{color:",";}}"],a=>a.theme.color_btn_secondary_active,a=>a.theme.color_text_L3,a=>a.theme.color_text_L2,a=>a.theme.color_bg_border_02,a=>a.theme.color_text_L1,a=>a.theme.color_text_L2,a=>a.theme.color_text_L2),p=(0,i.DU)(["#IBOT_SELECT_MENU_ROOT{.SelectMenuPortal .WorkspaceSelectMenu{max-height:","px;}}"],a=>a.height),s=(0,i.DU)(["#IBOT_SELECT_MENU_ROOT{.SelectMenuPortal .WorkspaceSelectMenu.icon-setting-menu{top:calc(100% + 4px) !important;&.is-open{width:120px;}.SelectOption.is-active{.svg-icon2{svg{top:11px;}}}}}"]);var l=e(72214);function _(a){const{iconType:M,iconDefaultColor:x,iconDefaultSize:g,iconTabs:S,isMultiColorIcon:t}=a,v=(0,r.wA)(),[w,k]=(0,n.useState)(240),W=P=>{v({type:"entry:update:iconinfo",payload:{iconDefaultSize:Number(P)}})},K=P=>{v({type:"icon-panel:set:iconType",payload:{iconType:P}})},G=(S==null?void 0:S.length)>1,$=G?a.iconTabs.map(P=>({label:I18N.Popups.iconCat[P]||P,value:P})):[];return(0,n.useEffect)(()=>{v({type:"icon-panel:set:iconType",payload:{iconType:"All"}})},[]),(0,n.useEffect)(()=>{const P=()=>{const O=document.querySelector(".select-icon-set");if(!O)return 240;const{top:V}=O.getBoundingClientRect();return document.body.clientHeight-62-V},E=P();k(E);const H=()=>{const O=P();k(O)};return window.addEventListener("resize",H),()=>{window.removeEventListener("resize",H)}},[]),(0,l.jsxs)(f,{className:o()("color-settings",!t&&"is-monochrome"),children:[(0,l.jsxs)("div",{className:"left-box",children:[(0,l.jsx)(I.A,{className:"color-size",precision:0,min:12,max:99999,suffix:"px",value:g,optionList:b,menuClassName:"icon-setting-menu",onConfirm:W}),!t&&(0,l.jsx)(C.R_,{attr:"iconDefaultColor",color:x,onChange:(P,E)=>{v({type:"entry:update:iconinfo",payload:{[E]:(0,h.t0)(P)}})},canOpenLib:!1})]}),!t&&G&&(0,l.jsxs)("div",{className:"select-box",children:[(0,l.jsx)(d.C,{name:"design/templates/select-more",className:"select-more-svg"}),(0,l.jsx)(u.mq,{value:M,optionList:$,onChange:K,className:"select-icon-set"}),(0,l.jsx)(p,{height:w})]}),(0,l.jsx)(s,{})]})}const b=[12,14,16,24,32,48,100].map(a=>({label:a+"px",value:a}))},72524:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>_});var n=e(95549),r=e(38502),c=e(69623),o=e(59844),I=e(67787);const u=I.Ay.div.withConfig({displayName:"styles__StyledFloatPreviewPanel",componentId:"sc-ffws6-0"})(["&.fixed-size{position:absolute;z-index:1051;width:320px;border:1px solid ",";border-radius:10px;overflow-x:hidden;overflow-y:auto;background-color:",";display:flex;justify-content:center;box-shadow:0 2px 10px rgba(39,54,78,0.08),0 12px 40px rgba(39,54,78,0.15);img{object-fit:contain;width:","px;max-width:100%;}}&.is-auto-size{position:absolute;z-index:1051;.content{width:auto;height:auto;padding:16px;border:1px solid ",";border-radius:10px;overflow-x:hidden;overflow-y:auto;background-color:",";display:flex;justify-content:center;box-shadow:0 2px 10px rgba(39,54,78,0.08),0 12px 40px rgba(39,54,78,0.15);}img{width:","px;}}"],b=>b.theme.color_btn_secondary_active,b=>b.theme.color_bg_canvas,b=>b.width/2,b=>b.theme.color_btn_secondary_active,b=>b.theme.color_bg_canvas,b=>b.width),d=(b,a)=>{let M=b,x=a;return M>=x&&M>512&&(M=512,x=512/b*a),x>M&&x>512&&(x=512,M=512/a*b),[M,x]};var C=e(85449),h=e(72214);const i=320,f=462,p=56,s=8,l=20;class _ extends r.PureComponent{constructor(a){super(a),(0,n.A)(this,"setRef",M=>this.$menu=M),(0,n.A)(this,"loadSuccess",M=>{const{isAutoSize:x}=this.props;if(x){const[g,S]=d(M.width,M.height);this.setState({imgWidth:g,imgHeight:S},()=>{const{sourceNodePosition:t}=this.getPosition();this.setState({position:t})})}else this.setState({imgWidth:M.width})}),(0,n.A)(this,"handleWheel",M=>{(M.ctrlKey||M.metaKey)&&M.preventDefault()}),(0,n.A)(this,"getTargetNode",()=>{const{targetNode:M,popupsPanelName:x,layout:g,isAutoSize:S,modalName:t}=this.props,v=g!=="old_right";let w=S&&v?26:8;const k=x?document.getElementById(x):t?document.querySelector("."+t):null;if(!k||!M)return{distance:w,direction:v?"right":"left"};const W=k.getBoundingClientRect(),K=W?W.left:0,G=W?W.width:0,{left:$,right:P}=M.getBoundingClientRect();return x?w=v?K+G+w-P:w+$-K:t&&(w=16),{distance:w,direction:x?v?"right":"left":"right"}}),(0,n.A)(this,"getPosition",()=>{const{targetNode:M}=this.props,{direction:x,distance:g}=this.getTargetNode(),{sourceNodePosition:S}=(0,o.A)(M,this.$menu,{direction:x,distance:g,forceDirection:!0});return{sourceNodePosition:S}}),(0,n.A)(this,"getResultStyle",()=>{const{isAutoSize:M,popupsPanelName:x,modalName:g,targetNode:S}=this.props,{position:t,imgWidth:v,imgHeight:w=0}=this.state,k=M?w+l*2:f,W=document.documentElement.clientHeight,K=document.documentElement.clientWidth,G={height:k,width:M?v+l*2:i};if(x){const $=t.top<=p?p:W-t.top-k<=s?W-k-s:t.top;return{...t,top:$,...G}}else if(g){if(!document.querySelector("."+g))return{...t,...G};const P=t.top<=8?8:W-t.top-k<=s?W-k-s:t.top,E=(S==null?void 0:S.closest(".template-item"))||(S==null?void 0:S.closest(".combo-item"));let H=t.left;if(G.width+t.left+8>K&&E){const O=E.getBoundingClientRect();H=Math.max(O.left-G.width-8,8)}return{...t,top:P,left:H,...G}}return{...t,...G}}),this.state={position:{},imgWidth:0,show:!1},this.el=document.createElement("div")}componentDidMount(){const{isAutoSize:a,getImgSrc:M}=this.props;if(document.body.appendChild(this.el),a)setTimeout(()=>{this.setState({show:!0})},500);else{const{sourceNodePosition:x}=this.getPosition();this.setState({position:x})}this.$menu&&this.$menu.addEventListener("wheel",this.handleWheel,{passive:!1}),(0,C.uc)(M(),this.loadSuccess)}componentWillUnmount(){document.body.removeChild(this.el)}render(){const{isAutoSize:a,getImgSrc:M}=this.props,{imgWidth:x,show:g}=this.state,S=this.getResultStyle();return(0,c.createPortal)((0,h.jsx)(u,{className:a?"is-auto-size":"fixed-size",ref:this.setRef,style:S,width:x,children:x?a?g&&(0,h.jsx)("div",{className:"content",children:(0,h.jsx)("img",{src:M(),alt:""})}):(0,h.jsx)("img",{src:M(),alt:""}):null}),this.el)}}},72606:(He,ee,e)=>{"use strict";e.d(ee,{O:()=>b});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),I=e(17307),u=e(27384),d=e(69874),C=e(39e3),h=e(68455),i=e(72214);class f extends r.PureComponent{constructor(x){super(x),(0,n.A)(this,"handleMove",S=>{S.stopPropagation();const{onMove:t,asset:v,onClose:w}=this.props;t(v),w()}),(0,n.A)(this,"handleRemove",S=>{S.stopPropagation();const{asset:t,onRemove:v,onClose:w}=this.props;v(t),w()}),(0,n.A)(this,"handleDownload",S=>{S.stopPropagation();const{asset:t,onDownload:v,onClose:w}=this.props;v(t),w()}),(0,n.A)(this,"handleTransferOrg",S=>{S.stopPropagation();const{asset:t,onAssetAdd:v,onClose:w}=this.props;v(t),w()});const g=x.canAccess;this.menuItems=[{isShow:x.canEditLibrary,label:I18N.LibraryContainer.move_to,onClick:this.handleMove},{isShow:x.canEditLibrary&&g,label:I18N.LibraryContainer.delete,onClick:this.handleRemove},{isShow:!0,label:I18N.LibraryContainer.download,onClick:this.handleDownload},{isShow:x.canAddToOrg&&x.onAssetAdd&&x.asset.image!=="/images/example.png",label:I18N.LibraryContainer.add_to_org,onClick:this.handleTransferOrg}]}render(){const{targetNode:x}=this.props;return(0,i.jsx)(h.A,{menuItems:this.menuItems,targetNode:x,direction:"down",distance:2})}}var p=e(71272),s=e(68863),l=e(19269),_=e(94875);class b extends r.PureComponent{constructor(x){var g;super(x),g=this,(0,n.A)(this,"setListElementRef",S=>this.$element=S),(0,n.A)(this,"setImageRef",S=>this.$image=S),(0,n.A)(this,"updateIsVisible",()=>{this.setState({isVisible:this.isInBoundingClientRect()})}),(0,n.A)(this,"handleMouseEnter",()=>{this.setState({isHover:!0})}),(0,n.A)(this,"handleMouseLeave",()=>{this.setState({isHover:!1})}),(0,n.A)(this,"handleEdit",()=>{const{isMoreSelect:S}=this.props;S||this.setState({isEditing:!0})}),(0,n.A)(this,"handleConfirm",S=>{const{asset:t,assetActions:{onAssetNameConfirm:v}}=this.props;v(t,S),this.setState({isEditing:!1})}),(0,n.A)(this,"handleAssetImport",S=>{S.stopPropagation();const{asset:t,assetActions:{onAssetImport:v}}=this.props;v&&v(t)}),(0,n.A)(this,"handleMouseDown",S=>{S.stopPropagation(),S.persist();const{asset:t,assetActions:{onMouseDown:v}}=this.props;let w=!0,k=!1;this.setState({isMoveAfterClick:!1});const W=G=>{w&&(k=Math.abs(G.clientX-S.clientX)>5||Math.abs(G.clientY-S.clientY)>5,k&&(this.setState({isDragging:!0}),v&&v(S,t),w=!1))},K=()=>{w=!1,this.setState({isMoveAfterClick:k,isDragging:!1}),k=!1,document.removeEventListener("mousemove",W),document.removeEventListener("mouseup",K)};document.addEventListener("mousemove",W),document.addEventListener("mouseup",K)}),(0,n.A)(this,"handleClick",S=>{S.stopPropagation();const{isMoveAfterClick:t}=this.state;if(t)return;const{asset:v,shouldAuth:w,dispatch:k}=this.props;k({type:"entry:image-panel:create:image:by:click",payload:{asset:v,isOrg:w}})}),(0,n.A)(this,"handleClickAction",S=>{S.stopPropagation(),this.handleToggleActionMenu()}),(0,n.A)(this,"handleToggleActionMenu",function(S){S===void 0&&(S=void 0);const{canListItemGroup:t}=g.props;if(!t)return;const{isListItemGroup:v}=g.state,w=S===void 0?!v:S;g.setState({isListItemGroup:w})}),(0,n.A)(this,"handleDocDown",S=>{var t;let{target:v}=S;const{isListItemGroup:w}=this.state;w&&((t=this.$element)!=null&&t.contains(v)||v.closest(".list-content")||this.handleToggleActionMenu(!1))}),(0,n.A)(this,"handleClickBox",async S=>{this.timer?(clearTimeout(this.timer),this.timer=null,this.handleAssetImport(S)):this.timer=setTimeout(async()=>{this.timer=null,await this.handleClick(S)},p.xG)}),(0,n.A)(this,"handleGetIsActive",()=>{var S;const{createTemplatesData:t,asset:v}=this.props,{isDragging:w}=this.state,k=(0,s.F)(t);if((k==null||(S=k.recent)==null?void 0:S.projectUpperType)==="user_asset"){var W,K;return(k==null||(W=k.recent)==null?void 0:W.itemCid)===((K=v.cid)!=null?K:v.asset_cid)}return w}),this.state={isVisible:!1,isHover:!1,isEditing:!1,isListItemGroup:!1,isMoveAfterClick:!1,isDragging:!1}}componentDidMount(){this.props.containerRect&&this.updateIsVisible()}componentDidUpdate(x,g){this.updateIsVisible()}isInBoundingClientRect(){const{containerRect:x}=this.props;if(!x||!this.$image)return!1;const g=this.$image.getBoundingClientRect();return g.bottom>x.top&&g.top<x.bottom}render(){const{asset:x,assetActions:g,canEditLibrary:S,canAddToOrg:t,canListItemGroup:v}=this.props,{isVisible:w,isHover:k,isEditing:W,isListItemGroup:K}=this.state,G=x.image,$=G&&G.slice(G.lastIndexOf(".")+1).toUpperCase(),P=!0,E=this.handleGetIsActive();return(0,i.jsxs)(_.G,{"data-cid":x.cid,className:o()({"is-hover":k},{active:E}),onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,children:[(0,i.jsxs)(l.e,{className:"library-asset-item",ref:this.setImageRef,onMouseDown:this.handleMouseDown,onClick:this.handleClickBox,children:[(0,i.jsx)(u.A,{isVisible:w,imageUrl:a(x)}),(0,i.jsx)("div",{className:o()("actions",{hover:K}),children:(0,i.jsxs)("div",{ref:this.setListElementRef,onClick:this.handleClickAction,children:[v&&(0,i.jsx)("div",{className:"btn-box",children:(0,i.jsx)(I.C,{name:"design/templates/temp-btn",className:"library-menu"})}),K&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f,{asset:x,canEditLibrary:S,canAddToOrg:t,targetNode:this.$element,canAccess:P,onRemove:g.onAssetRemove,onMove:g.onAssetMove,onDownload:g.onAssetDownload,onClose:()=>this.handleToggleActionMenu(!1),onAssetAdd:g.onAssetAdd}),(0,i.jsx)(C.A,{target:document,onMouseDown:(0,C.t)(this.handleDocDown,{capture:!0})})]})]})}),(0,i.jsx)("div",{className:"image-type",children:$})]}),v?(0,i.jsxs)("div",{className:o()("asset-name"),onClick:this.handleEdit,children:[(0,i.jsx)(d.A,{value:x.name,className:"editable-name",isEditing:S&&W,onConfirm:this.handleConfirm},x.name),S&&!W&&(0,i.jsx)("div",{className:"asset-action",children:(0,i.jsx)(I.C,{name:"general/pen"})})]}):(0,i.jsx)(_.f,{children:x.name})]})}}(0,n.A)(b,"defaultProps",{canListItemGroup:!0,canEditLibrary:!0});const a=M=>/svg$/.test(M.image)?M.image:M.thumb||M.raw||M.image},73352:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>a});var n=e(53732),r=e.n(n),c=e(38502),o=e(46953),I=e(58656),u=e(68677),d=e(30542),C=e(17307),h=e(77698),i=e(78401),f=e(9680),p=e(88255),s=e(72214);const l=(M,x,g,S,t)=>r()("var-item","var-"+M.hotAttr.varDataType,t,{active:x,trigger:g,"is-dropmenu":S}),_=(M,x)=>{const g=x.getBoundingClientRect(),S=[],t={},v={},w={},W=x.querySelector(".var-list").getBoundingClientRect();return x.querySelectorAll(".var-item").forEach(G=>{const $=G.dataset.cid,P=G.getBoundingClientRect();t[$]=v[$]=P;const E=(0,i.yB)(G),{left:H,top:O,width:V,height:Q}=P,N=H-W.left,L=O-W.top,U=N+V,A=L+Q,D={top:L,left:E.left-W.left,width:V,height:Q};if(w[$]={contentRect:D,rect:D,treeRect:D},M.includes($)){S.push({cid:$,type:"",min:{x:N,y:L},max:{x:U,y:A},isValid:!1,parentCid:""});return}S.push({cid:$,type:"prevSibling",min:{x:N,y:L},max:{x:U,y:L+Q/2},isValid:!0,parentCid:""}),S.push({cid:$,type:"nextSibling",min:{x:N,y:L+Q/2},max:{x:U,y:A},isValid:!0,parentCid:""})}),{matchDataList:S,containerRect:g,rectQueryMap:w}},a=M=>{let{list:x,selection:g,contextTrigger:S,isDropMenu:t,selectedStyle:v,className:w,style:k,showEmptyTtext:W=!0,onClick:K,onDoubleClick:G,onSorted:$,onContextMenu:P,onClickOutside:E}=M;const[H,O]=(0,c.useState)(null),V=(0,c.useRef)(null),Q=!x.length&&(0,f.pU)().length===0,N=!Q&&!x.length,L=g.length>0,U=Y=>{if(!P&&!$)return;const X=Y==null?void 0:Y.target;if(X.closest(".EllipsisTip"))return;const Z=X==null?void 0:X.closest(".var-item"),J=Z==null?void 0:Z.dataset.cid,te=J&&x.find(ie=>ie.key===J)||null;if(Y.button===2){P==null||P(te,Y);return}if(!te||!$)return;const{top:ge,left:pe}=Z.getBoundingClientRect(),Ce=Y.clientX-pe,me=Y.clientY-ge;g=g.includes(J)?g:[J];const be={$element:Z,offsetX:Ce,offsetY:me,selection:g,..._(g,V.current)};O(be)},A=()=>{E==null||E()},D=Y=>{let{cid:X,type:z,isValid:Z}=Y;if(!$||(O(null),!Z))return;const{selection:J=[]}=H,te=new Array(J.length),ge=[];let pe=-1;x.forEach(me=>{const be=J.indexOf(me.key);be===-1?(ge.push(me),me.key===X&&(pe=ge.length-1)):te[be]=me});const Ce=z==="prevSibling"?pe:z==="nextSibling"?pe+1:"error";if(Ce==="error")throw new Error("drag type error");ge.splice(Ce,0,...te),$(ge)},B=Y=>{if(!K)return;const X=Y.target,z=X==null?void 0:X.closest(".EllipsisTip");let Z;if(z){var J;Z=(J=z.firstElementChild)==null?void 0:J.getAttribute("data-area")}const te=X==null?void 0:X.closest(".var-item");if(!te)return;const ge=te.dataset.cid,pe=ge&&x.find(Ce=>Ce.key===ge);pe&&K(pe,Y,Z)},j=(Y,X)=>{G==null||G(Y,X)},F=Y=>{Y.stopPropagation(),K==null||K(null,Y)};return(0,c.useEffect)(()=>{if(E&&L){const Y=X=>{!X.target.closest(".var-editor")&&!X.target.closest(".var-list .var-item")&&E()};return document.addEventListener("mousedown",Y),()=>{document.removeEventListener("mousedown",Y)}}},[E,L]),(0,s.jsxs)(I.BH,{className:w,ref:V,style:k,children:[(0,s.jsx)(I.LC,{}),(0,s.jsxs)("div",{className:r()("var-sort-list",{"is-empty":Q||N}),onMouseDown:U,children:[(0,s.jsxs)("div",{className:r()("var-list",{"is-empty":Q||N}),onClick:B,children:[Q&&W&&(0,s.jsxs)("div",{className:"empty-box",children:[(0,s.jsx)("img",{src:"/mb-proto2/images/workspace/design/no_variables.svg",width:"110",height:"71"}),(0,s.jsxs)("div",{className:"empty-tip",children:[(0,s.jsx)("p",{dangerouslySetInnerHTML:{__html:I18N.Variable.editor.empty_tip}}),(0,s.jsx)("a",{href:"/hc/articles/464",target:"_blank",rel:"noreferrer",children:I18N.Common.learn_more})]})]}),N&&(0,s.jsx)(p.E,{noIconText:I18N.Expression.no_result,className:"empty-box-nomatched"}),x.map(Y=>{const X=g.includes(Y.key),z=Y.key===(S==null?void 0:S.key);return(0,s.jsxs)(I.U9,{"data-cid":Y.key,"data-order":Y.hotAttr.zIndex,className:l(Y,X,z,t,v),children:[(0,s.jsxs)("div",{className:"left",children:[(0,s.jsx)(C.C,{className:"var-icon",size:16,name:(0,o.Zg)(Y.hotAttr.varDataType,Y.hotAttr.varData,Y.hotAttr.isTrashed)}),(0,s.jsx)("div",{className:"var-name",onDoubleClickCapture:Z=>j(Y,"varName"),children:(0,s.jsx)(u.A,{tipClassName:"var-tooltip",position:"bottom",delay:500,max:"228px",children:(0,s.jsx)("span",{"data-area":"varName",children:Y.hotAttr.name})})})]}),(0,s.jsx)("div",{className:"right",children:v==="binded"&&X?(0,s.jsx)("button",{className:"unbind-button",onClick:F,children:I18N.Variable.unbind}):(0,s.jsx)("div",{className:"var-data",onDoubleClickCapture:Z=>j(Y,"varData"),children:(0,s.jsx)(u.A,{tipClassName:"var-tooltip var-"+Y.hotAttr.varDataType+"-tooltip",position:"bottom",delay:500,max:"228px",children:(0,s.jsx)("span",{"data-area":"varData",children:(0,o.LK)(Y.hotAttr.varDataType,Y.hotAttr.varData)})})})})]},Y.key)})]}),H&&(0,s.jsx)(d.A,{...H,protalClassName:"var-item-dnd",draggingElement:H.$element,getContainerElement:()=>V.current,onDragStartCallback:A,onDrop:D})]}),V&&(0,s.jsx)(h.yP,{type:"vertical",containerRef:V,isAutoHideBar:!0})]})}},73442:(He,ee,e)=>{"use strict";e.d(ee,{R_:()=>u,Tx:()=>d,mb:()=>h,w9:()=>C});var n=e(70248),r=e(20089),c=e(76613),o=e(61790);const I=[r.x.WSticky,r.x.WTear],u=(i,f)=>{const p=sdkStore.getHotItem(i);if(!p)return null;const s=p.sub;return{...p,subHotItemList:s.reduce((l,_)=>{const b=sdkStore.getHotItem(_);if(b.hotAttr.bunch==="rbPage"){const a=u(_,f);return a?(b.hotAttr.asFolder&&(a.forDisplayOnly=!0),a.subHotItemList.length>0||f((0,o.KD)(_))?[...l,a]:l):l}return l},[]).sort((l,_)=>l.hotAttr.zIndex-_.hotAttr.zIndex)}},d=(i,f,p)=>{const s=sdkStore.getHotItem(i);if(!s)return null;if(s.hotAttr.type==="wBasket"&&!sdkStore.getHotItem(s.hotAttr.refRBPageKey))return console.error("sdkStore.getHotItem(hi.hotAttr.refRBPageKey) is undefined",s.hotAttr.refRBPageKey),null;const _=(s.hotAttr.type==="wBasket"?sdkStore.getHotItem(s.hotAttr.refRBPageKey).sub.map(b=>(0,n.iK)((0,n.OO)(i)?(0,n.QL)(i):[i],b)):s.hotAttr.type==="wMind"?[]:s.sub).reduce((b,a)=>{const M=d(a,f,p);return!M||I.includes(M.hotAttr.type)?b:((M.hotAttr.type==="rResCanvas"||p!=null&&p(M))&&(M.forDisplayOnly=!0),M.subHotItemList.length>0||f((0,o.KD)(a))?[...b,M]:b)},[]);return p!=null&&p(s)&&_.length===0?null:{...s,key:s.sup==="B@ref-muban"?c.VZ:s.key,hotAttr:{...s.hotAttr,name:(0,o.KD)(i),...s.sup==="B@ref-muban"&&{type:"wBasket",basket:"bMuban",bunch:""}},subHotItemList:_}},C=(i,f,p)=>{const s=sdkStore.getHotItem(i);if(!s)return null;if(s.hotAttr.type==="wBasket"&&!sdkStore.getHotItem(s.hotAttr.refRBPageKey))return console.error("sdkStore.getHotItem(hi.hotAttr.refRBPageKey) is undefined",s.hotAttr.refRBPageKey),null;const l=s.hotAttr.type==="wBasket"?sdkStore.getHotItem(s.hotAttr.refRBPageKey).sub.map(_=>(0,n.iK)((0,n.OO)(i)?(0,n.QL)(i):[i],_)):s.sub;return{...s,key:!p&&s.sup==="B@ref-muban"?c.VZ:s.key,hotAttr:{...s.hotAttr,name:(0,o.KD)(i),...s.sup==="B@ref-muban"&&{type:"wBasket",basket:"bMuban",bunch:""}},subHotItemList:l.reduce((_,b)=>{const a=C(b,f);return a?[r.x.Canvas,r.x.WWrap].includes(a.hotAttr.type)&&(a.forDisplayOnly=!0,a.subHotItemList.length>0)?[..._,a]:a.hotAttr.type==="wBasket"&&(a.subHotItemList.length>0||f((0,o.KD)(b)))?[..._,a]:_:_},[])}},h=(i,f,p)=>sdkStore.getSubHotItemList(i).filter(s=>s.hotAttr.type==="rResCanvas"&&(p?s.hotAttr.asOverlay:!s.hotAttr.asOverlay)&&f(s.hotAttr.name)).sort((s,l)=>s.hotAttr.order-l.hotAttr.order)},74302:(He,ee,e)=>{"use strict";e.d(ee,{Gd:()=>I,XY:()=>n,g6:()=>o,xk:()=>r,y5:()=>c});let n=function(u){return u.SHELL="download_settings_show_shell",u.STATE="download_settings_state_type",u.SCALE="download_settings_scale",u.STICKY="download_settings_show_sticky",u.FULLSCREEN="download_settings_full_screen",u.DOWNLOADTYPE="download_settings_downloadTypePage",u.CANVASNAME="download_settings_canvasName",u}({}),r=function(u){return u.PNG="png",u.PDF="pdf",u.HTMLZIP="htmlzip",u.APK="apk",u.SVG="svg",u.SOURCE_FILE="source_file",u.GIF="gif",u.DESIGN2="design2",u}({}),c=function(u){return u.PAGE="page",u.CANVAS="canvas",u}({}),o=function(u){return u.CURRENT_PAGE="currentPage",u.ALL_PAGE="allPage",u}({}),I=function(u){return u.ALL="allState",u.SOME="someState",u}({})},74923:(He,ee,e)=>{"use strict";e.d(ee,{$L:()=>Lt,$d:()=>K,AC:()=>Je,AG:()=>f,At:()=>ve,Bu:()=>b,CL:()=>J,CQ:()=>E,CY:()=>c,Cd:()=>ie,E:()=>X,EV:()=>et,F8:()=>Le,FM:()=>Fe,G6:()=>Ke,GI:()=>Te,Hl:()=>Q,I$:()=>Me,IG:()=>k,IR:()=>a,I_:()=>I,L:()=>Yn,Le:()=>Y,Lq:()=>we,M5:()=>Kt,MV:()=>uo,NA:()=>fe,O2:()=>W,Ou:()=>P,Qz:()=>U,R4:()=>O,S2:()=>Wn,SG:()=>zt,SH:()=>ge,SQ:()=>oe,TD:()=>bo,TF:()=>Ae,TZ:()=>o,VG:()=>s,Vs:()=>Se,WF:()=>ut,WG:()=>z,XN:()=>It,Xt:()=>Ve,Xw:()=>d,Z1:()=>L,Z_:()=>Ue,_V:()=>Wt,_X:()=>w,aP:()=>je,bg:()=>Po,bw:()=>v,cb:()=>V,dR:()=>On,dZ:()=>l,eH:()=>xn,ey:()=>u,f3:()=>io,fK:()=>Xe,g6:()=>r,gC:()=>g,gt:()=>xe,hS:()=>de,i:()=>Rt,kU:()=>S,lW:()=>Ie,lb:()=>Hn,lj:()=>nt,m3:()=>$,mR:()=>mo,nF:()=>h,nn:()=>M,oD:()=>_,ok:()=>Io,p8:()=>H,pF:()=>co,pI:()=>D,pM:()=>_e,q3:()=>C,qY:()=>Tt,rx:()=>j,sF:()=>ht,tY:()=>st,tl:()=>lt,tt:()=>to,uJ:()=>We,uT:()=>A,up:()=>Ln,uq:()=>Ye,v3:()=>te,vB:()=>i,vl:()=>Gt,vs:()=>G,w2:()=>Cn,wS:()=>St,wY:()=>gn,x1:()=>B,xH:()=>kn,xQ:()=>pe,xZ:()=>t,y9:()=>rt,yQ:()=>p,yt:()=>x,zS:()=>he,zX:()=>it,zw:()=>ct});var n=e(12211);const r=qe=>qe.ui.leftLayout.leftPanel.maxWidth,c=qe=>qe.ui.leftLayout.directory.screen,o=qe=>qe.ui.leftLayout.directory.screen.screenCollapseKeySet,I=qe=>qe.ui.leftLayout.directory.screen.contextMenuState,u=qe=>qe.ui.leftLayout.directory.screen.selectNotMoveUpScreenSet,d=qe=>qe.ui.leftLayout.directory.screen.selectNotMoveDownScreenSet,C=qe=>qe.ui.leftLayout.directory.screen.selectScreenMetaParentSet,h=qe=>qe.ui.leftLayout.directory.screen.selectNotDownGradeScreenSet,i=qe=>qe.ui.leftLayout.directory.layer.layerRange,f=qe=>qe.ui.leftLayout.muban.mubanList,p=qe=>qe.ui.leftLayout.iconSelectPopup.isShowHeader,s=qe=>qe.ui.leftLayout.iconSelectPopup.isShowSearch,l=qe=>qe.ui.leftLayout.icon.navIndex,_=qe=>qe.ui.leftLayout.icon.iconSelectPopupNavIndex,b=qe=>qe.ui.leftLayout.icon.resources,a=qe=>qe.ui.leftLayout.icon.unStarResources,M=qe=>qe.ui.leftLayout.icon.starResources,x=qe=>qe.ui.leftLayout.icon.currentIconResources,g=qe=>qe.ui.leftLayout.icon.isRequestHotIconList,S=qe=>qe.ui.leftLayout.icon.hotIconList,t=qe=>qe.ui.leftLayout.icon.hotColorIconList,v=qe=>qe.ui.leftLayout.icon.iconSelectPopupCurrentIconResources,w=qe=>qe.ui.leftLayout.icon.libraryIconDataForTabs,k=qe=>qe.ui.leftLayout.icon.iconType,W=qe=>qe.ui.leftLayout.icon.findPanelTabIndex,K=qe=>qe.ui.leftLayout.icon.iconSelectPopupTabIndex,G=qe=>qe.ui.leftLayout.icon.iconSelectPopupCurrentIconGroup,$=qe=>qe.ui.leftLayout.icon.findPanelCurrentIconGroup,P=qe=>qe.ui.leftLayout.iconSelectPopup.navigationIconResources,E=qe=>qe.ui.leftLayout.iconSelectPopup.iconGroupData,H=qe=>qe.ui.leftLayout.iconSelectPopup.source,O=qe=>qe.ui.leftLayout.image.navIndex,V=qe=>qe.ui.leftLayout.image.isRequestUserAssetGroup,Q=qe=>qe.ui.leftLayout.image.isRequestOrgAssetGroup,N=qe=>qe.ui.leftLayout.image.findFilterWords,L=qe=>qe.ui.leftLayout.image.findActiveWord,U=qe=>qe.ui.leftLayout.image.userAssets,A=qe=>qe.ui.leftLayout.image.isRequestUserAssets,D=qe=>qe.ui.leftLayout.image.orgAssets,B=qe=>qe.ui.leftLayout.image.isRequestOrgAssets,j=qe=>qe.ui.leftLayout.page.navIndex,F=qe=>qe.ui.leftLayout.page.pageMode,Y=qe=>qe.ui.leftLayout.page.findLoading,X=qe=>qe.ui.leftLayout.page.findPlatformType,z=qe=>qe.ui.leftLayout.page.findPlatformSubType,Z=qe=>qe.ui.leftLayout.page.findPlatformSubTypeMap,J=qe=>qe.ui.leftLayout.page.findPlatformSubTypeListMap,te=qe=>qe.ui.leftLayout.page.findPlatformSubTypeMtDataMap,ge=qe=>qe.ui.leftLayout.page.findMtResourceMap,pe=qe=>qe.ui.leftLayout.page.findCurrentMtResourceCid,Ce=qe=>qe.ui.leftLayout.page.libraryNavIndex,me=qe=>qe.ui.leftLayout.page.libraryFilterWords,be=qe=>qe.ui.leftLayout.page.libraryActiveWord,ie=qe=>qe.ui.leftLayout.page.libraryTopicListMap,oe=qe=>qe.ui.leftLayout.page.libraryCurrentSquareTopic,he=qe=>qe.ui.leftLayout.page.libraryCurrentResources,ce=qe=>qe.ui.leftLayout.search.searchResultList,re=qe=>qe.ui.leftLayout.search.searchResultCategory,fe=qe=>qe.ui.leftLayout.search.iconSelectPopupSearchResultList,Se=qe=>qe.ui.leftLayout.search.searchResultSum,Me=qe=>qe.ui.leftLayout.search.iconSelectPopupSearchResultSum,Ie=qe=>qe.ui.leftLayout.search.currentComboGroup,de=qe=>qe.ui.leftLayout.search.isLoading,xe=qe=>qe.ui.leftLayout.search.isIconSelectPopupLoading,Le=qe=>qe.ui.leftLayout.search.isSearching,ve=qe=>qe.ui.leftLayout.search.iconSelectPopupIsSearching,je=qe=>qe.ui.leftLayout.search.searchCollapsePanelSet,We=qe=>qe.ui.leftLayout.search.keyword,Ae=qe=>qe.ui.leftLayout.search.iconKeyword,we=qe=>qe.ui.leftLayout.search.type,_e=qe=>qe.ui.leftLayout.search.historyKeyWords,Te=qe=>qe.ui.leftLayout.search.masterKeyword,Ye=qe=>qe.ui.leftLayout.search.searchResultListMap,Fe=qe=>qe.ui.leftLayout.search.searchMtMetaCidMap,Ve=qe=>qe.ui.leftLayout.search.unsplashLoading,rt=qe=>qe.ui.leftLayout.popups.hotKeyWords,Ue=qe=>qe.ui.leftLayout.popups.assetUploadState,et=qe=>qe.ui.leftLayout.popups.assetUpload,lt=qe=>qe.ui.leftLayout.popups.editingCid,Je=qe=>qe.ui.leftLayout.popups.mtResourcesMtItemListMap,Xe=qe=>qe.ui.leftLayout.popups.mtResourcesMap,st=qe=>qe.ui.leftLayout.popups.collapsePanelSet,nt=qe=>qe.ui.leftLayout.popups.showGlobalHeader,tt=qe=>qe.ui.leftLayout.popups.isVersionModalClosed,ct=qe=>qe.ui.leftLayout.popups.paramStarMtCid,ht=qe=>qe.ui.leftLayout.image.userAssetGroups,It=qe=>qe.ui.leftLayout.image.userAssetsMap,it=qe=>qe.ui.leftLayout.image.orgAssetGroups,Tt=qe=>qe.ui.leftLayout.image.orgAssetsMap,Lt=qe=>qe.ui.leftLayout.image.localUserAssetsOpenCids,Rt=qe=>qe.ui.leftLayout.image.localOrgAssetsOpenCids,Wt=qe=>qe.ui.leftLayout.image.assetNavIndex,Kt=(0,n.Mz)([It,ht],(qe,vn)=>({userAssetsMap:qe,userAssetGroupList:vn})),Gt=(0,n.Mz)([it,Tt],(qe,vn)=>({orgAssetsMap:vn,orgAssetGroupList:qe})),St=qe=>qe.ui.leftLayout.widget.userComboGroups,Hn=qe=>qe.ui.leftLayout.widget.orgComboGroups,uo=qe=>qe.ui.leftLayout.widget.localUserComboOpenCids,Po=qe=>qe.ui.leftLayout.widget.localOrgComboOpenCids,Yn=qe=>qe.ui.leftLayout.widget.upgradeUserComboGroupList,bo=qe=>qe.ui.leftLayout.widget.isRequestV7UserComboGroup,Ke=qe=>qe.ui.leftLayout.widget.upgradeOrgComboGroupList,ut=qe=>qe.ui.leftLayout.widget.isRequestV7OrgComboGroup,zt=qe=>qe.ui.leftLayout.widget.navIndex,bt=qe=>qe.ui.leftLayout.widget.sceToPLabelMap,xn=qe=>qe.ui.leftLayout.widget.scrollTop,kn=qe=>qe.ui.leftLayout.widget.sceneMktsMap,gn=qe=>qe.ui.leftLayout.widget.showComboUploadGuide,Zn=qe=>qe.ui.leftLayout.widget.showComboStar,Pn=qe=>qe.ui.leftLayout.widget.selectedSceTag,_n=qe=>qe.ui.leftLayout.widget.selectedPLabel,Wn=qe=>qe.ui.leftLayout.widget.sceCollapsedCategories,Ln=qe=>qe.ui.leftLayout.widget.platformMarketTemplatesMap,io=qe=>qe.ui.leftLayout.widget.platformType,to=qe=>qe.ui.leftLayout.widget.level1,mo=qe=>qe.ui.leftLayout.widget.level2,Io=qe=>qe.ui.leftLayout.widget.isScrollLevel1,co=qe=>qe.ui.leftLayout.widget.imageWidgetDropdownCurrent,On=qe=>qe.ui.leftLayout.widget.meNavIndex,Cn=qe=>qe.ui.leftLayout.widget.currentStarResourcesCid},75150:(He,ee,e)=>{"use strict";e.d(ee,{EQ:()=>s,Ub:()=>_,We:()=>l,X9:()=>p,gu:()=>b});var n=e(28068),r=e(9521),c=e(89054),o=e(22835),I=e(69815);if(e.j!=477)var u=e(85449);var d=e(70933),C=e(81973),h=e(10472),i=e(4235);if(e.j!=477)var f=e(70422);const p=a=>{if(!a||a.length===0)return;const M=[];a.forEach(x=>{const g=sdkStore.getHotItem(x);if(!g)return;const{hotAttr:S}=g;S.cid=g.key;try{if(S.richTextV1.sizeType!==2)(0,r.PQ)(S);else{const{y:t,h:v}=S,w=t-v/2,k=(0,c.x1)(S);S.y=w+k/2,S.h=k,S.height=k}M.push(g)}catch(t){console.error("setUpdateAutoSizeAttr error:",t)}}),M.length&&sdkStore.updateHotItemBatch(M)},s=a=>{const{hotAttr:{w:M,h:x}}=sdkStore.getHotItem(a),{top:g,left:S}=(0,o.u5)({width:M,height:x,scale:MB.getScale()});sdkStore.updateHotAttrMerge(a,{x:S+M/2,y:g+x/2})},l=a=>{if(!a)return;const x=a.getSelection().set("hasFocus",!0),{_setEditorState:g}=(0,I.DT)();g&&g(n.$t.set(a,{selection:x,forceSelection:!0,nativelyRenderedContent:null,inlineStyleOverride:null}))},_=()=>{const a=(0,u.dP)(),M=(0,d.Ur)(a),x=(0,i.nE)(a),g=(0,f.nh)(a),S=(0,f.zX)(a),t=(0,C.Yg)(a),v=(0,d.lh)(a),w=(0,d.Mj)(a),{isEditingCombo:k,isEditingMuban:W,isEditingBasket:K}=(0,h.r)(a);return{pageKey:M.cid,selectedItems:x,tableInfoData:{editingTableWidget:g,tableSelectionLeftTopInfo:S},selectedCarouseImage:t,editingCid:v,richTextEditorState:w,canNotCreateCanvas:k||W||K}},b=()=>!1},75258:(He,ee,e)=>{"use strict";e.d(ee,{Iw:()=>c,So:()=>r,Yw:()=>n,zk:()=>o});const n={Mobile:"mobile",PC:"pc",Pad:"pad",DisplayScreen:"display_screen",SmartTV:"smart_tv",SmartCar:"smart_car",Hmi:"hmi",Watch:"watch",Slide:"slide",Customize:"customize"},r={Mobile:"mobile",Web:"web",Other:"other",App:"app",Applet:"applet",Website:"website",WebBack:"web_back",Ipad:"ipad",SmartTV:"smart_tv",AppleWatch:"apple_watch",Slide:"slide",DisplayScreen:"display_screen",HMI:"HMI",Activity:"activity"},c={MP_App:"MP-app",MP_IOS:"MP-ios",MP_Android:"MP-android",MP_Applet:"MP-applet",MP_H5:"MP-h5",MP_Public:"MP-public",MP_ECommerce:"MP-e_commerce",MP_Poster:"MP-poster",PC_Website:"PC-web",PC_WebBack:"PC-web_back",PC_MacOS:"PC-mac",PC_Windows:"PC-win",PAD_IpadOs:"PAD-ipad",PAD_Android:"PAD-android",TV_AppleTVOS:"TV-apple",TV_AndroidTV:"TV-android",CAR_Car:"CAR-car",HMI_IndusHmi:"HMI-indus_hmi",HMI_Car:"HMI-car",WATCH_Apple:"WATCH-apple",WATCH_Android:"WATCH-android",SLIDE_Slide:"SLIDE-slide",DS_Screen:"DS-screen",Customize:"customize",DS_Customize:"DS-customize",HMI_Customize:"HMI-customize"},o={[n.Mobile]:[c.MP_App,c.MP_Applet,c.MP_H5,c.MP_Public,c.MP_IOS,c.MP_Android],[n.PC]:[c.PC_Website,c.PC_WebBack,c.PC_MacOS,c.PC_Windows],[n.Pad]:[c.PAD_IpadOs,c.PAD_Android],[n.DisplayScreen]:[c.DS_Screen],[n.SmartTV]:[c.TV_AppleTVOS,c.TV_AndroidTV],[n.Hmi]:[c.HMI_IndusHmi,c.HMI_Car],[n.Watch]:[c.WATCH_Apple,c.WATCH_Android],[n.Slide]:[c.SLIDE_Slide]}},75495:(He,ee,e)=>{"use strict";e.d(ee,{v:()=>o});var n=e(18381),r=e(95657),c=e(63917);const o=()=>{const I=(0,n.d4)(r.m7),u=(0,n.d4)(r.F6);return!I||!u?{rect:null,is:!1}:{is:!0,rect:(0,c.X)(I,u)}}},75627:(He,ee,e)=>{"use strict";e.d(ee,{Zz:()=>r,nW:()=>c,nb:()=>n});const n="FIND_REPLACE_POSITION_TOP",r="FIND_REPLACE_POSITION_LEFT";let c=function(o){return o[o.normal=0]="normal",o[o.searching=1]="searching",o[o.notFound=2]="notFound",o[o.hasResults=3]="hasResults",o}({})},75661:(He,ee,e)=>{"use strict";e.d(ee,{Z:()=>n});let n=function(r){return r.iconWidgetSettingPanel="icon-widget-setting-panel",r.navigationMenuSettingPanel="navigation-menu-setting-panel",r.buttonIconWidgetSettingPanel="button-icon-widget-setting-panel",r}({})},75862:(He,ee,e)=>{"use strict";e.d(ee,{OB:()=>o,bc:()=>c,d1:()=>n,x:()=>r});const n=I=>I.plugin.exportmanager,r=I=>I.plugin.exportmanager.isWidgetBeingExported,c=I=>I.plugin.exportmanager.isExportMenuShow,o=I=>I.plugin.exportmanager.currentExportTag},76199:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>M,X:()=>b});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),I=e(18381),u=e(12211),d=e(17307),C=e(5649),h=e(77099),i=e(30523),f=e(21259),p=e(70933),s=e(6843),l=e(72214);class _ extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleSetRef",g=>this.$fontSizeRef=g),(0,n.A)(this,"onToggle",g=>{const{dispatch:S}=this.props;if(g.stopPropagation(),!this.$fontSizeRef)return;const t=this.$fontSizeRef.getBoundingClientRect(),v={left:t.left-f.T.width,top:Math.min(t.top+14,window.innerHeight-f.T.height)};S({type:"modal:toggle:less12FontSizeTipsModal",payload:{position:v}})}),(0,n.A)(this,"handleConfirm",(g,S)=>{const{attr:t="fontSize",handleChange:v}=this.props;v(g,t,S)})}render(){const{fontSize:g,refVar:S,disabled:t,less12UseTooltip:v=!1,canAddVar:w=!0,isShowLess12:k=!0,isShowAddVarIcon:W=!0,isShowLess12Mark:K,dropdownProps:G={},onRenderArrow:$}=this.props,P=K&&g<12,E=!("refVar"in this.props);return(0,l.jsxs)(s.Sv,{className:"font-size-container",ref:this.handleSetRef,children:[E?(0,l.jsx)(C.A,{disabled:t,value:g,refVar:S,min:1,max:1e3,className:o()("font-size-input",{"less-than":P}),menuClassName:"font-size-input-menu",optionList:b,onConfirm:H=>this.handleConfirm(H),onRenderArrow:$}):(0,l.jsx)(i.Yw,{type:"number",disabled:t,value:g,refVar:S,min:1,max:1e3,style:{width:88},inputClassName:o()("font-size-input",{"less-than":P}),menuClassName:"font-size-input-menu",optionList:b,canAddVar:w,isShowAddVarIcon:W,dropdownProps:G,onConfirm:this.handleConfirm,onRenderArrow:$}),P&&k&&(0,l.jsx)(l.Fragment,{children:v?(0,l.jsx)(h.I,{isWrap:!0,content:(0,l.jsxs)("div",{style:{width:237,fontSize:"12px",lineHeight:"20px"},children:["\u56E0\u6D4F\u89C8\u5668\u6700\u5C0F\u5B57\u53F7\u9650\u5236\uFF0C\u5C0F\u4E8E 12 \u7684\u5B57\u4F53\u65E0\u6CD5\u6B63\u5E38\u663E\u793A\uFF0C\u8BF7\u524D\u5F80\u6D4F\u89C8\u5668\u8BBE\u7F6E\u3002",(0,l.jsx)("a",{className:"tutorials",href:"/hc/articles/191",target:"_blank",rel:"noopener noreferrer",children:"\u67E5\u770B\u6559\u7A0B"})]}),children:(0,l.jsx)(d.C,{isColorPure:!0,size:16,name:"design/notify/questionMark",className:"questionMark"})}):(0,l.jsx)(d.C,{isColorPure:!0,size:16,name:"design/notify/questionMark",className:"questionMark",onClick:this.onToggle})})]})}}const b=[12,13,14,16,18,20,28,36,48,72].map(x=>({label:x,value:x})),a=(0,u.Mz)([p.tW],x=>({isShowLess12Mark:x})),M=(0,I.Ng)(x=>a(x))(_)},76210:(He,ee,e)=>{"use strict";e.d(ee,{U:()=>I});var n=e(847),r=e(19013),c=e(37505),o=e(9680);const I={[n.q.OpacityInfoPanel]:{[r.m9]:u=>{let{selectedItems:d}=u;const{hotAttr:{type:C,opacity:h=1}}=d[0];if(!c.hp.includes(C))return{opacity:Math.round(h*100),refVars:{opacity:(0,o.xj)(d,"opacity")}}}},[n.q.FixedInfoPanel]:{[r.m9]:u=>{let{selectedItems:d}=u;const C=d[0].hotAttr,i=new Set(d.map(s=>{let{hotAttr:l}=s;return Number(l.stickyOffset)||0})).size>1,f=i?void 0:C.stickyOffset,p=i?I18N.SettingPanel.multiple_value:"";return{fixPosTo:C.fixPosTo,isShowMultipleOffset:i,stickyOffset:f,placeholderOffset:p}}}}},76431:(He,ee,e)=>{"use strict";e.d(ee,{K:()=>d});var n=e(93413),r=e(78257),c=e(47695),o=e(20089),I=e(81717),u=e(34);const d=function(C,h){return h===void 0&&(h=!1),{[n.c.GUIDE_ALL_REPLACE_PAGE]:{selector:n.c.GUIDE_ALL_REPLACE_PAGE,guide:{position:{top:20,left:-308},title:C.CommonGuides.v8guide35,content:"\n <p>"+C.CommonGuides.v8guide36+"</p>\n <p>"+C.CommonGuides.v8guide37+"</p>\n "+((0,c.Ge)()?"<span />":"<p>"+C.CommonGuides.v8guide38+"</p>")+"\n "},arrow:{position:{top:56,right:-19},direction:"right",color:"#6874FF"},icon:{name:"art_board/guide/"+n.c.GUIDE_ALL_REPLACE_PAGE,width:28,height:28},howToShow:i=>{const f=p=>p.type===o.x.Canvas&&!p.asOverlay;(0,u.YD)({selectedCids:i,guideType:n.c.GUIDE_ALL_REPLACE_PAGE,onCondition:f})}},[n.c.GUIDE_BASKET_QUICK_COPY_CANVAS]:{selector:n.c.GUIDE_BASKET_QUICK_COPY_CANVAS,guide:{position:{top:40,left:-140},title:C.CommonGuides.v8guide4,content:C.CommonGuides.v8guide5},arrow:{position:{top:-25,right:136},direction:"top",color:"#3E7CFE"},icon:{name:"art_board/guide/"+n.c.GUIDE_BASKET_QUICK_COPY_CANVAS,width:12,height:14}},[n.c.GUIDE_PAGE_CREAT_LINK]:{selector:n.c.GUIDE_PAGE_CREAT_LINK,guide:{position:{top:230,left:-305},title:C.CommonGuides.v8guide10,content:C.CommonGuides.v8guide11},arrow:{position:{top:33,right:-18},direction:"right",color:"#6874FF"},icon:{name:"art_board/guide/"+n.c.GUIDE_PAGE_CREAT_LINK,width:12,height:12}},[n.c.GUIDE_PAGE_CREAT_LINK2]:{selector:n.c.GUIDE_PAGE_CREAT_LINK2,guide:{position:{top:190,left:-298},title:C.CommonGuides.v8guide10,content:C.CommonGuides.v8guide11},arrow:{position:{top:33,right:-18},direction:"right",color:"#6874FF"},icon:{name:"art_board/guide/"+n.c.GUIDE_PAGE_CREAT_LINK,width:12,height:12}},[n.c.GUIDE_TO_PREVIEW_IN_SHARE]:{selector:n.c.GUIDE_TO_PREVIEW_IN_SHARE,guide:{position:{top:114,left:135},title:C.CommonGuides.v8guide6,content:C.CommonGuides.v8guide7},arrow:{position:{top:-23,right:76},direction:"top",color:"#3E7CFE"},icon:{name:"art_board/guide/"+n.c.GUIDE_TO_PREVIEW_IN_SHARE,width:12,height:14}},[n.c.GUIDE_MORE_PAGE]:{selector:n.c.GUIDE_MORE_PAGE,guide:{position:{top:-7,left:62},title:C.CommonGuides.v8guide12,content:C.CommonGuides.v8guide13},arrow:{position:{top:10,left:-19},direction:"left",color:"#1B84FD"},icon:{name:"art_board/guide/"+n.c.GUIDE_MORE_PAGE,width:12,height:14},howToShow:i=>{let{currentPopupPanel:f,sup:p}=i;const s=sdkStore.getSubHotItemList(p).filter(_=>_.hotAttr.type==="rResCanvas"),l=sdkStore.getHotItem("B@main");if(s.length>=4&&l.sub.length===1&&f!==r.lS.Directory){const _=(0,c.Ge)();!MB.commonGuideHelper.checkGuideHasShown(n.c.GUIDE_MORE_PAGE)&&_&&MB.commonGuideHelper.tryToShowGuide(n.c.GUIDE_MORE_PAGE)}}},[n.c.GUIDE_PREVIEW_VIEW_BTN]:{selector:n.c.GUIDE_PREVIEW_VIEW_BTN,guide:{position:{top:53,left:-211},title:C.CommonGuides.v8guide8,content:C.CommonGuides.v8guide9},arrow:{position:{top:-24,right:56},direction:"top",color:"#3E7CFE"},icon:{name:"art_board/guide/"+n.c.GUIDE_PREVIEW_VIEW_BTN,width:12,height:12},callback:()=>{MB.webpackInterface.store.dispatch({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0,isSetTimeout:!0}})}},[n.c.GUIDE_BASKET_MUBAN_USE]:{selector:n.c.GUIDE_BASKET_MUBAN_USE,guide:{position:{top:-71,left:-308},title:C.CommonGuides.v8guide39,content:"\n <p>"+C.CommonGuides.v8guide40+"</p>\n <p>"+C.CommonGuides.v8guide41+"</p>\n <br />\n <p>"+C.CommonGuides.v8guide42+"</p>\n "},arrow:{position:{top:93,right:-19},direction:"right",color:"#6874FF"},icon:{name:"art_board/guide/"+n.c.GUIDE_BASKET_MUBAN_USE,width:28,height:28},moreLink:C.link.link_article_master_intro,howToShow:i=>{const f=p=>p.type===o.x.WBasket&&p.basket==="bMuban";(0,u.YD)({selectedCids:i,guideType:n.c.GUIDE_BASKET_MUBAN_USE,onCondition:f})}},[n.c.GUIDE_SELECT_STICKY]:{selector:n.c.GUIDE_SELECT_STICKY,guide:{position:{top:0,left:18},title:C.CommonGuides.v8guide43,content:"\n <p>"+C.CommonGuides.v8guide44+"</p>\n <p>"+C.CommonGuides.v8guide45+"</p>\n <br/>\n "},arrow:{position:{top:14,right:295},direction:"left",color:"#1b83fc"},icon:{name:"art_board/guide/"+n.c.GUIDE_SELECT_STICKY,width:28,height:28},howToShow:i=>{const f=p=>p.type===o.x.WSticky;(0,u.YD)({selectedCids:i,guideType:n.c.GUIDE_SELECT_STICKY,onCondition:f})}},[n.c.GUIDE_PUBLISH_COMBO_TO_MKT]:{selector:n.c.GUIDE_PUBLISH_COMBO_TO_MKT,guide:{position:{top:0,right:-313},title:C.CommonGuides.publish_combo_title,content:C.CommonGuides.publish_combo_desc},icon:{name:"art_board/guide/"+n.c.GUIDE_PUBLISH_COMBO_TO_MKT,width:20,height:20},callback:()=>{MB.action("widget-panel:update:showComboUploadGuide",{showComboUploadGuide:!1})},howToShow:i=>{var f,p;let{sceneTag:s,hasComboFolder:l}=i;ENV.IS_MO||l&&(!((f=MB)!=null&&(f=f.user)!=null&&f.id)||(p=MB)!=null&&(p=p.commonGuideHelper)!=null&&p.checkGuideHasShown(n.c.GUIDE_PUBLISH_COMBO_TO_MKT)||(MB.action("widget-panel:update:showComboUploadGuide",{showComboUploadGuide:!0}),MB.commonGuideHelper.tryToShowGuide(n.c.GUIDE_PUBLISH_COMBO_TO_MKT),(0,I.YB)(s)))}},[n.c.GUIDE_COPY_AS_PNG]:{selector:n.c.GUIDE_COPY_AS_PNG,guide:{position:{top:0,left:-313},title:C.CommonGuides.copy_as_png_title,content:C.CommonGuides.copy_as_png_desc},icon:{name:"art_board/guide/"+n.c.GUIDE_COPY_AS_PNG,width:20,height:20},getPositionOffset:(i,f,p,s,l)=>i<l+290+20?{top:0-f+48+30,left:0-i+l+30+313}:{top:s/2-136/2,left:0}}}}},76527:(He,ee,e)=>{"use strict";e.d(ee,{k:()=>r});var n=e(67787);const r=n.Ay.div.withConfig({displayName:"StyledNoItem",componentId:"sc-v7wsa-0"})(["display:flex;flex-direction:column;align-items:center;img{margin-top:160px;width:88px;height:88px;}.tips{margin:24px 0 4px;color:",";text-align:center;}.tips-link{margin:auto 8px;text-align:center;a{color:",";text-decoration:underline;&:hover{color:",";}}}&.search-no-results{img{margin-top:0;}.action-container{display:flex;align-items:center;justify-content:center;height:26px;margin-top:25px;margin-bottom:8px;.tips{margin:0;}.action{cursor:pointer;margin-left:6px;padding-left:3px;padding-right:5px;display:flex;align-items:center;justify-content:center;border-radius:4px;border:1px solid ",";svg.svg-icon{width:24px;height:24px;}span{color:",";}}}}"],c=>c.theme.color_text_L3,c=>c.theme.color_text_link_normal,c=>c.theme.color_text_link_hover,c=>c.theme.color_btn_secondary_active,c=>c.theme.color_text_L1)},76863:(He,ee,e)=>{"use strict";e.d(ee,{KP:()=>I,me:()=>o,xK:()=>d});var n=e(53940),r=e(15515),c=e(34860);const o="rightnav_collapse",I="ro_rightnav_collapse",u={show:(0,r.Yt)((0,c.OB)()?o:I,!0,r.qW.Boolean),resizedWidth:n.xM,resizeMaxWidth:1/0};function d(C,h){C===void 0&&(C=u);const{type:i,payload:f}=h;switch(i){case"right-side-panel:collapse:panel":{var p;const s=(f==null?void 0:f.show)!==void 0?f==null?void 0:f.show:!C.show;return((p=f==null?void 0:f.isMemorize)!=null?p:!0)&&(0,r.a0)((0,c.OB)()?o:I,s,r.qW.Boolean),{...C,show:s}}case"right-side-panel:show:panel":return(0,r.a0)((0,c.OB)()?o:I,!0,r.qW.Boolean),{...C,show:!0};case"right-side-panel:update:resize:width":return(0,r.a0)("ST_panel_width_"+f.projectCid,f.width,r.qW.Number),{...C,resizedWidth:f.width};case"right-side-panel:update:resize:maxWidth":return{...C,resizeMaxWidth:f.width}}return C}},76967:(He,ee,e)=>{var n=e(71893),r=e(71602),c=e(48236),o=e(52255),I=c(function(u,d){return o(u)?n(u,r(d,1,o,!0)):[]});He.exports=I},77036:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>a,L:()=>b});var n=e(38502),r=e(53732),c=e.n(r),o=e(53940),I=e(29294),u=e(77698),d=e(48790),C=e(90592),h=e(3862),i=e(46442),f=e(18381),p=e(91474),s=e(72214);function l(M){const{marketTemplateItemList:x,category:g="",platform:S,currentResources:t,containerRect:v,isShowSign:w,isShowFolderIcon:k,masonryColumn:W,onTrack:K,onPaidTemplates:G,onPaidResources:$,onOpenFolder:P,canChecked:E,checkedSet:H,onCheckedResource:O,from:V,onOpenPreviewModal:Q,isFloatPreviewMkt:N,isRequsetMktStore:L}=M,U=x==null?void 0:x.length,A=(0,n.useMemo)(()=>["project_basic","screen_list"].includes(g),[g]),[D,B]=(0,n.useState)(2),j=(0,n.useRef)(null),F=(0,n.useRef)(0),Y=(0,f.wA)(),X=(0,n.useCallback)(()=>{F.current>=U||(B(Z=>Z+1),F.current+=1,j.current=requestAnimationFrame(X))},[U]);(0,n.useEffect)(()=>(j.current=requestAnimationFrame(X),()=>{cancelAnimationFrame(j.current),B(1),F.current=0}),[X]);let z=(0,n.useMemo)(()=>U&&D<U-1?U*200+"px":"fit-content",[U,D]);return g===h.t_&&(z="fit-content"),(0,s.jsx)(C.t_,{className:c()("market-template-masonry-column",g&&g,p.Il.includes(S)?"mobile":S,V),style:{minHeight:z},children:x==null?void 0:x.slice(0,D).map((Z,J)=>{const te=t||(Z==null?void 0:Z.marketTemplateSource),ge=J===U-1,pe=()=>{G&&G(),$&&$(Z.marketTemplateSource)};return"hotAttr"in Z&&"marketTemplateSource"in Z?(0,s.jsx)(I.A,{className:c()(ge&&"last-mt-item"),marketTemplate:Z,currentResources:te,containerRect:v,isShowSign:w,isShowFolderIcon:k,onTrack:K,onPaidTemplates:pe,onOpenFolder:P,canChecked:E,onCheckedResource:O,checkedSet:H,from:V,isFloatPreviewMkt:N,onOpenPreviewModal:Q,isRequsetMktStore:L},Z.key):(0,s.jsx)(i.a,{item:{key:Z.key,mtCid:Z.mtCid||(te==null?void 0:te.cid)}},Z.key)})})}function _(M){const{marketTemplateItemList:x,platform:g,category:S,currentResources:t,masonryColumnMoblie:v=2,masonryColumnWeb:w=1,...k}=M,W=g||(t==null?void 0:t.platform),K=S||(t==null?void 0:t.category),$=["project_basic","screen_list"].includes(K)&&p.Il.includes(W)?v>2?v:2:w>1?w:1,P=(0,n.useMemo)(()=>(0,d.He)(x,$),[x,$,v]);return P.length<1?null:(0,s.jsx)(C.JB,{className:c()("market-template-masonry-list-container",K&&K,p.Il.includes(W)?"mobile":W),children:P.map((E,H)=>(0,s.jsx)(l,{marketTemplateItemList:E,category:K,platform:W,currentResources:t,masonryColumn:$,...k},"masonry-column-"+(H+1)))})}function b(M){const x=(0,n.useRef)(null);return(0,s.jsx)(C.i4,{ref:x,className:"scrollable-marketTemplate-masonry",style:{width:o.qv},children:g=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_,{...M,containerRect:g}),(0,s.jsx)(u.yP,{type:"vertical",containerRef:x,isAutoHideBar:!0})]})})}const a=(0,n.memo)(_)},77099:(He,ee,e)=>{"use strict";e.d(ee,{I:()=>d});var n=e(38502),r=e(69623),c=e(17307),o=e(67787);const I=o.Ay.div.withConfig({displayName:"style__StyledTip",componentId:"sc-gehcds-0"})(["position:absolute;left:0;top:0;z-index:1;width:auto;height:auto;padding:",";background-color:#454647;border-radius:6px;color:#fff;a{color:#70BCF6;&:hover,&:focus{color:#95D1F8;}}.arrow{position:absolute;width:12px;height:6px;svg{width:100%;height:100%;}&.bottom{transform:rotate(180deg);}}"],p=>p.isWrap?"12px 16px":"6px");var u=e(72214);const d=n.memo(p=>{let{className:s,children:l,content:_,onMoundedCallback:b,onToggleHover:a,isWrap:M=!1}=p;const[x,g]=(0,n.useState)(!1),S=(0,n.useRef)(null),t=(0,n.useRef)(null),v=K=>{g(K),a&&a(K)},w=K=>{K.buttons===0&&(clearTimeout(S.current),v(!0))},k=()=>{S.current=setTimeout(()=>{v(!1)},200)};n.Children.count(l)!==1&&console.error("TooltipWithHover\u7EC4\u4EF6\u53EA\u80FD\u6709\u4E00\u4E2A\u5B50\u5143\u7D20");const W=n.Children.map(l,K=>n.isValidElement(K)?n.cloneElement(K,{onMouseEnter:w,onMouseLeave:k,ref:t}):K);return(0,u.jsxs)(u.Fragment,{children:[W,x&&(0,u.jsx)(f,{isWrap:M,className:s,onMoundedCallback:b,content:_,targetNode:t.current,handMouseEnter:w,handMouseLeave:k})]})}),C=12,h=6,i=10,f=p=>{let{onMoundedCallback:s,content:l,className:_,targetNode:b,handMouseEnter:a,handMouseLeave:M,isWrap:x}=p;const g=(0,n.useRef)(null),[S,t]=(0,n.useState)({});(0,n.useEffect)(()=>{g.current&&s&&s(g)},[s,g]),(0,n.useEffect)(()=>{t((()=>{if(!b||!g.current)return{};const{left:G,top:$,width:P,height:E}=b.getBoundingClientRect(),{offsetWidth:H,offsetHeight:O}=g.current,V=G+P/2,Q=$+E,N=()=>{let j=V-H/2;j<4&&(j=4),j+H>window.innerWidth-4&&(j=window.innerWidth-H-4);let F=Q+i;return F+O>window.innerHeight&&(F=$-O-i),{tooltipLeft:j,tooltipTop:F}},L=(j,F)=>{const Y=G-j+P/2-C/2;return F<$?{position:{left:Y+"px",top:"100%"},className:"bottom"}:{position:{left:Y+"px",top:-h+"px"},className:"top"}},{tooltipLeft:U,tooltipTop:A}=N(),{position:D,className:B}=L(U,A);return{tooltipPosition:{left:U+"px",top:A+"px"},arrowPosition:D,arrowClassName:B}})())},[b,g]);const v=K=>{K.stopPropagation()};if(b===null)return null;const{tooltipPosition:w,arrowPosition:k,arrowClassName:W}=S;return(0,r.createPortal)((0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(I,{isWrap:x,className:_,ref:g,style:w,onMouseEnter:a,onMouseLeave:M,onMouseDown:v,children:[l,(0,u.jsx)(c.C,{className:"arrow "+W,style:k,name:"design/view/prompt/arrow",isColorPure:!0})]})}),document.body)}},77337:(He,ee,e)=>{"use strict";e.d(ee,{QV:()=>Y,WE:()=>X,cU:()=>E,gD:()=>F,hk:()=>U,ku:()=>V,ll:()=>A,oB:()=>B});var n=e(49899),r=e.n(n),c=e(28894);if(e.j!=477)var o=e(76805);var I=e(80730),u=e(41818),d=e(52049),C=e(62448),h=e(62587),i=e(54801),f=e(18488),p=e(15186),s=e(20089),l=e(44854),_=e(74302),b=e(42715),a=e(36397),M=e(78998),x=e(75006),g=e(40610);const S=(z,Z,J)=>{if(z&&(Z!=="unset"||J)){const te=J?"url(#"+J+")":Z,ge=z.children;if(ge&&ge.length>0)for(const pe of ge){const Ce=pe.getAttribute("fill"),me=pe.getAttribute("stroke");me&&me!=="none"?(pe.setAttribute("stroke",te),(!Ce||Ce==="none")&&pe.setAttribute("fill","none")):Ce&&Ce!=="none"?(pe.setAttribute("fill",te),(!me||me==="none")&&pe.setAttribute("stroke","none")):!Ce&&!me&&pe.setAttribute("fill",te),S(pe,te,void 0)}}},t=function(z,Z,J,te){te===void 0&&(te=!1);const ge='<svg xmlns="http://www.w3.org/2000/svg">'+z+"</svg>",Ce=new DOMParser().parseFromString(ge,"text/html"),me=Ce.querySelector("svg");return Ce.querySelector("parsererror")?z:(te||S(me,Z,J),me.innerHTML)},v=268435456,w=65535,k=65535,W=14400,K=async(z,Z)=>{window.alert=void 0;const J=z.output("blob");if(J===void 0)throw new N;return new File([J],Z+".pdf",{type:"application/pdf"})},G=z=>{const{iconData:{iconColor:Z,viewBox:J,path:te},name:ge,shadow:pe,w:Ce,h:me,border:be,fill:ie}=z.hotAttr,oe="drop-shadow("+pe.offsetX+"px "+pe.offsetY+"px "+pe.blurRadius+"px "+(0,p.t0)(pe.shadowColor)+")",he=pe.shadowIsVisible?oe:"none";let ce="";be.bdrIsVisible&&(ce+="border-color: "+(0,p.t0)(be.bdrColor)+";border-width: "+be.bdrWidth+";border-style: "+be.bdrStyle);const re=(0,h.$8)(ie,{w:Ce,h:me});let fe=null,Se=Z==="unset"?"unset":null;const Me=re.type===i.LA.RadialGradient||re.type===i.LA.LinearGradient;Me?fe=""+z.key+re.type:re.type===i.LA.Solid&&(Se=u.Q.toRGBAStr(re.color));const Ie=t(te,Se,fe,Z==="unset"),de=J.split(" ").map(ve=>Number(ve)),xe='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="'+J+'" width="'+Ce+'" height="'+me+'" style="'+ce+'" filter="'+he+'">\n '+(Me?(0,f.vS)(re,fe,{minX:de[0],minY:de[1],width:de[2],height:de[3]}):"")+"\n <g>\n "+Ie+"\n </g>\n </svg>",Le=new Blob([xe],{type:"image/svg"});return new File([Le],ge+".svg",{type:"image/svg"})},$=z=>{var Z,J;if(!(z!=null&&(Z=z.hotAttr)!=null&&Z.richTextV1)||!(z!=null&&(J=z.hotAttr)!=null&&J.textV1))return new Set;const{richTextV1:{fontFamily:te,fontWeight:ge,italic:pe,bold:Ce},textV1:{blocks:me}}=z.hotAttr;return new Set(Object.values(me).reduce((ie,oe)=>{const{inlineStyleRanges:he,text:ce}=oe,re={FONTFAMILY:new Array(ce.length),FONTWEIGHT:new Array(ce.length),BOLD:new Array(ce.length),ITALIC:new Array(ce.length)};return he.forEach(fe=>{const Se=fe.offset,Me=Se+fe.length;for(let Ie=Se;Ie<Me;Ie+=1)fe.style.startsWith("fontfamily-")?re.FONTFAMILY[Ie]=fe.style.substring(11):fe.style.startsWith("fontweight-")?re.FONTWEIGHT[Ie]=fe.style.substring(11):fe.style==="BOLD"?re.BOLD[Ie]=!0:fe.style==="ITALIC"&&(re.ITALIC[Ie]=!0)}),[...ie,...Array.from(ce).flatMap((fe,Se)=>{const Me=re.FONTFAMILY[Se]||te,Ie=re.FONTWEIGHT[Se]||(Ce?700:l.dV[ge]),de=re.BOLD[Se]||Ce,xe=re.ITALIC[Se]||pe;return[...Me==="PingFangSC"?["PingFangSC|normal|400","PingFangSC|normal|600"]:[Me+"|normal|400"],Me+"|"+(xe?"italic":"normal")+"|"+(de?700:Ie)]})]},[]))},P=z=>{const{icon:Z}=z.hotAttr;if(/^(fa|md|mb|ci|fa5|antOutline|antFill)-/.test(Z))switch(Z.split("-")[0]){case"ci":return new Set(["CustomIcon|normal|400"]);case"fa5":case"fa":return new Set(["FontAwesome|normal|400"]);case"md":return new Set(["Material Icons|normal|400"]);case"mb":return new Set(["mb-icons|normal|400"]);default:return new Set}return new Set},E=(z,Z)=>{const J=Z.getHotItem(z);if(!J)return new Set;const{sub:te,hotAttr:ge}=J;return d.X4.has(ge.type)?new Set(te.reduce((pe,Ce)=>[...pe,...Array.from(E(Ce,Z))],[])):g.VV.includes(ge.type)?$(J):ge.type==="wIconButton"?P(J):ge.type==="wBasket"?E(ge.refContentKey,Z):new Set},H=z=>{let{itemNode:Z,isWithDeviceFrame:J,scale:te,isExportSticky:ge,isIncludeCanvasName:pe,sdk:Ce=sdkStore}=z;if(J&&Z.hotAttr.type==="rResCanvas"&&!Z.hotAttr.asOverlay){var me;const re=Ce.getHotItem(Ce.locUpRBPageKey(Z.key)),fe=(0,b.MR)(re==null||(me=re.hotAttr)==null?void 0:me.device);if(fe)return{width:fe.width*te,height:fe.height*te}}if(Z.hotAttr.type==="rbPage"&&Z.sub.length===0)return{width:Z.hotAttr.deviceW*te,height:Z.hotAttr.deviceH*te};const ie=(0,a.Gq)(Ce,Z.key,ge,"local"),oe=ie[2]-ie[0],he=pe?(0,a.Yp)(Z,ie,Ce):0,ce=ie[3]-ie[1]+he;return{width:Math.round(oe*te),height:Math.round(ce*te)}};class O extends Error{constructor(Z){super(Z),this.name=Z}}class V extends O{constructor(){super("CanvasDimensionExceededWarning")}}class Q extends O{constructor(){super("InvalidDimensionsWarning")}}class N extends O{constructor(){super("PdfDimensionExceededError")}}class L extends O{constructor(){super("EmptyPageWarning")}}class U extends O{constructor(){super("EmptyPageError")}}class A extends O{constructor(){super("CanvaslessPageError")}}const D=(z,Z)=>z instanceof V?"continue":z instanceof Q?Z.exportLen<=1?Z.downloadType==="page"?"skip":"stop":"skip":z instanceof L?"skip":(z instanceof U||z instanceof A||z instanceof N,"stop"),B=(z,Z,J)=>{const te=D(z,J);return z instanceof V?Z({type:"export:update:state",payload:{canvasDimensionExceeded:!0}}):z instanceof Q?te==="stop"&&MB.notice({text:"\u65E0\u6CD5\u5BFC\u51FA\u5C3A\u5BF8\u4E3A 0 \u7684\u5143\u7D20\uFF0C\u8BF7\u8C03\u6574\u5C3A\u5BF8\u540E\u91CD\u8BD5",type:"warning"}):z instanceof L?MB.notice({text:"\u68C0\u6D4B\u5230\u7A7A\u753B\u5E03\uFF0C\u5DF2\u81EA\u52A8\u8DF3\u8FC7\u5E76\u5BFC\u51FA\u5176\u4F59\u5185\u5BB9",type:"warning"}):z instanceof U?MB.notice({text:"\u6240\u9009\u753B\u5E03\u4E3A\u7A7A",type:"warning"}):z instanceof A?MB.notice({text:"\u6240\u9009\u753B\u5E03\u4E0D\u5305\u542B\u9875\u9762",type:"warning"}):z instanceof N&&(Z({type:"export:update:state",payload:{loading:!1,progress:0}}),MB.notice({text:I18N.ExportManager.large_pdf_can_not_export,duration:0,showClose:!0})),te},j=(z,Z)=>{const J=.265*Math.min(1,19169/z,19169/Z);return[z*J,Z*J]},F=z=>{let{itemKey:Z,pseudoSdkStore:J,attrsOverride:te,affix:ge=void 0,scale:pe,hasWatermark:Ce=!0,isWithDeviceFrame:me=!1,isExportSticky:be=!1,isIncludeCanvasName:ie}=z;const oe=J||sdkStore,he={...oe,getInteractionsOf:()=>[],getHotItem:rt=>{let Ue=oe.getHotItem(rt);if(Ue)return rt===Z&&te&&(Ue={...Ue,hotAttr:{...Ue.hotAttr,...te}}),(0,a.tG)({hotItem:Ue,isExportSticky:be})}},ce=new x.A(he,Z,x.A.MODE.snapshot),re=ce.getRootSnapshot(),{hotAttr:{type:fe,name:Se,order:Me,refContentKey:Ie,asOverlay:de},sup:xe}=re,Le=()=>{const rt="@"+pe+"x";let Ue;return fe==="wBasket"?Ue=Se+"-"+oe.getHotItem(Ie).hotAttr.name:fe==="wTear"||fe==="wSticky"?Ue="\u6279\u6CE8"+Me:Ue=Se,""+(ge==="prefix"?rt:"")+Ue+(ge==="suffix"?rt:"")},ve=()=>H({itemNode:re,isWithDeviceFrame:me,scale:pe,isExportSticky:be,isIncludeCanvasName:ie,sdk:oe}),je=rt=>{const{width:Ue,height:et}=ve();try{We(rt)}catch(lt){if(rt&&rt.includes("png")&&lt instanceof V){const Je=Ue>w?w:Ue,Xe=et*Je>w?Math.min(k,Math.floor(v/Je)):et;return{width:Je,height:Xe}}else if(rt==="pdf"&&lt instanceof N)return{width:Ue>W?W:Ue,height:et>W?W:et}}return{width:Ue,height:et}},We=rt=>{const{width:Ue,height:et}=ve();if(!Number.isFinite(Ue)||!Number.isFinite(et)||Ue<=0||et<=0)throw new Q;if(rt.includes("png")&&(Ue*et>v||Ue>w||et>k))throw new V;if(rt==="pdf"&&(Ue>W||et>W))throw new N},Ae=async rt=>{const Ue="PNGB"+Date.now().toString(36).slice(-4);performance.mark(Ue+":start");let{width:et,height:lt}=je(rt);if(me&&fe==="rResCanvas"&&!de){var Je;const tt=oe.getHotItem(oe.locUpRBPageKey(re.key));(tt==null||(Je=tt.hotAttr)==null?void 0:Je.deviceOrientation)==="landscape"&&([et,lt]=[lt,et])}const Xe=document.createElement("div");Xe.innerHTML=(0,a.Pf)({item:re,scale:pe,isWithDeviceFrame:me,hasWatermark:Ce,isExportSticky:be,isIncludeCanvasName:ie,sdk:ce}),performance.measure(Ue+":innerHTML",Ue+":start");const{fetchPngBlob:st}=await(0,C.Z)({element:Xe,width:et,height:lt,presetFontsSet:E(Z,oe)});performance.mark(Ue+":domss-done");const nt=await st();return performance.measure(Ue+":fetchPngBlob",Ue+":domss-done"),performance.measure(Ue,Ue+":start"),nt},we=async rt=>{const Ue=await Ae(rt);return new Uint8Array(await(0,I.WL)(Ue))},_e=async rt=>{const Ue=await Ae(rt);return new File([Ue],Le()+".png",{type:Ue.type})},Te=async rt=>{const{JsPdf:Ue}=await c.QN.loadLLG(),{width:et,height:lt}=je(rt),[Je,Xe]=j(et,lt),st=new Ue({orientation:et>lt?"l":"p",unit:"mm",format:[Je,Xe]});return st.addImage(await we(rt),"png",0,0,Je,Xe,"","SLOW"),K(st,Le())},Ye=async rt=>{var Ue;const{name:et,image:lt,type:Je}=rt.hotAttr;if(Je!==s.x.WImage)return null;const Xe=lt.imageRef,st=((Ue=oe.getHotItem(Xe))==null||(Ue=Ue.hotAttr)==null?void 0:Ue.extData)||"";if(!st)return null;const tt=await(await fetch(st,{method:"GET",cache:"force-cache",mode:"cors",credentials:"same-origin"})).blob();return new File([tt],et+".gif",{type:tt.type})},Fe=async rt=>{switch(rt){case"png":case"png-unzip":return _e(rt);case"pdf":return Te(rt);case"svg":return fe===s.x.WIcon&&G(re);case"gif":return fe===s.x.WImage&&Ye(re)}},Ve=()=>{ce.destory()};return{validateIE:We,getDimensionsIE:ve,getCutDimensionsIE:je,name:fe==="rResCanvas"?oe.getHotItem(xe).hotAttr.name+"-"+Se:Se,toPngU8ArrayIE:we,toPngFileIE:_e,toIE:Fe,destory:Ve}},Y=z=>{let{pageKey:Z,downloadPageType:J,scale:te,hasWatermark:ge,isWithDeviceFrame:pe,isExportSticky:Ce,isIncludeCanvasName:me}=z;const be=sdkStore.getHotItem(Z),oe=(J===_.y5.PAGE?sdkStore.getSubHotItemList(Z).filter(Me=>Me.hotAttr.type==="rResCanvas"&&!Me.hotAttr.asOverlay).sort((Me,Ie)=>Me.hotAttr.order-Ie.hotAttr.order):[be]).map(Me=>F({itemKey:Me.key,scale:te,hasWatermark:ge,isWithDeviceFrame:pe,isExportSticky:Ce,isIncludeCanvasName:me}));let he=oe;const ce=Me=>{let Ie=null;const de=[];for(const xe of oe)try{xe.validateIE(Me),de.push(xe)}catch(Le){if(Le instanceof O){const ve=D(Le,oe,"page");if(ve==="stop")throw Le;if(ve==="skip")continue;Ie||(Ie=Le),de.push(xe);continue}throw Le}if(he=de,he.length===0)throw new L;if(Ie)throw Ie},re=async function(Me,Ie){Ie===void 0&&(Ie=(0,M.K4)());const de=[];let xe=1;if(location.hash.includes("EM_PARALLEL"))try{xe=Math.min(Math.round(navigator.hardwareConcurrency*.6),navigator.deviceMemory>=8?8:4)||2}catch(We){}await(0,o.t_)(xe,he.map((We,Ae)=>async()=>{de[Ae]=await We.toPngFileIE(Me),Ie.advanceRR(1/he.length)}));const Le=[],ve=new Map,je=he.map((We,Ae)=>async()=>{var we;const _e=de[Ae],Te=(we=ve.get(We.name))!=null?we:0,Ye=Ae+" "+(Te>0?_e.name.replace(/\.[^/.]+$/,"")+" ("+(Te+1)+").png":_e.name);ve.set(We.name,Te+1),Le.push(new File([_e],Ye,{type:_e.type}))});for(const We of je)await We();return Le},fe=async function(Me,Ie){Ie===void 0&&(Ie=(0,M.K4)());const de=await re(Me,Ie),xe={};for(const je of de){const We=await je.arrayBuffer();xe[je.name]=new Uint8Array(We)}(0,M.vb)(xe);const{zip:Le}=await c.QN.loadLLG(),ve=await new Promise((je,We)=>{Le(xe,(Ae,we)=>{Ae?We(Ae):we?je(we):We(new Error("Failed to create zip"))})});return new File([ve],be.hotAttr.name+".zip",{type:"application/zip"})},Se=async function(Me,Ie){Ie===void 0&&(Ie=(0,M.K4)());const de=Ae=>{let{width:we,height:_e}=Ae;return pe&&be.hotAttr.deviceOrientation==="landscape"&&([we,_e]=[_e,we]),j(we,_e)},[xe,Le]=de(he[0].getCutDimensionsIE(Me)),{JsPdf:ve}=await c.QN.loadLLG(),je=new ve({orientation:xe>Le?"l":"p",unit:"mm",format:[xe,Le]}),We=he.map((Ae,we)=>async()=>{const[_e,Te]=de(Ae.getDimensionsIE());we!==0&&je.addPage([_e,Te],_e>Te?"l":"p"),je.addImage(await Ae.toPngU8ArrayIE(Me),"png",0,0,_e,Te,"","SLOW"),Ie.advanceRR(1/he.length)});for(const Ae of We)await Ae();return K(je,be.hotAttr.name)};return{validatePE:ce,name:be.hotAttr.name,toPngZipFilePE:fe,toPngFilesPE:re,toPdfFilePE:Se}},X=async(z,Z,J,te)=>{const ge=[];for(const Ce of z){const me=F(Ce);try{me.validateIE(Ce.format)}catch(be){const ie=J(be,{exportLen:z.length,downloadType:"item"});if(ie==="stop"){te&&te(!1),me.destory();return}else if(ie==="skip"){me.destory();continue}}ge.push(await me.toIE(Ce.format)),me.destory()}const pe=(0,M.aT)(ge);if(pe.length===1){const Ce=pe[0];(0,n.saveAs)(Ce,Ce.name)}else{const Ce={};for(const ie of pe){const oe=await ie.arrayBuffer();Ce[ie.name]=new Uint8Array(oe)}const{zip:me}=await c.QN.loadLLG(),be=await new Promise((ie,oe)=>{me(Ce,(he,ce)=>{he?oe(he):ce?ie(ce):oe(new Error("Failed to create zip"))})});(0,n.saveAs)(new Blob([be],{type:"application/zip"}),Z+".zip")}MB.notice({text:"\u5BFC\u51FA\u6210\u529F",type:"success"}),te&&te(!0)}},77494:(He,ee,e)=>{"use strict";e.d(ee,{H:()=>c});var n=e(67787),r=e(71190);const c=(0,n.Ay)(r.A).withConfig({displayName:"styles__StyledLayoutGridSettingsPanel",componentId:"sc-keiz04-0"})(['[type="screen-body"]{padding:0 16px;.screen-line{height:32px;display:flex;justify-content:space-between;align-items:center;margin-left:-6px;.dir-icon{width:24px;height:24px;margin:0 6px;display:flex;justify-content:center;align-items:center;.icon{width:24px;height:24px;color:',";}}.input{height:28px;flex:1;max-width:48.66px;&.middle-input{margin:0 4px;}input{padding-right:6px;}}&.grid-line{justify-content:flex-start;}}}"],o=>o.theme.color_text_L1)},77643:(He,ee,e)=>{"use strict";e.d(ee,{O:()=>V});var n=e(95549),r=e(38502),c=e(30523),o=e(20089),I=e(17307),u=e(58603),d=e(63768),C=e(49989),h=e(69815),i=e(89054),f=e(31781),p=e(67280),s=e(85449),l=e(60589),_=e(4235),b=e(72214);class a extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"getOptionList",()=>{const{directionType:N}=this.props;return N==="vertical-lr"?[{label:(0,b.jsx)(I.C,{name:"setting_panel/font/unorder_list_re"}),value:"unordered",tip_title:I18N.TextToolbar.syntax5},{label:(0,b.jsx)(I.C,{name:"setting_panel/font/order_list_re"}),value:"ordered",tip_title:I18N.TextToolbar.syntax6}]:[{label:(0,b.jsx)(I.C,{name:"setting_panel/font/unorder_list"}),value:"unordered",tip_title:I18N.TextToolbar.syntax5},{label:(0,b.jsx)(I.C,{name:"setting_panel/font/order_list"}),value:"ordered",tip_title:I18N.TextToolbar.syntax6}]}),(0,n.A)(this,"handleListValueChange",N=>{const{handleChange:L,listValue:U}=this.props,{_getEditorState:A}=(0,h.DT)();A||M(U,N),L(N,"listType"),(0,f.yt)(N==="unordered"?"\u65E0\u5E8F\u5217\u8868":"\u6709\u5E8F\u5217\u8868")})}render(){const{className:N,listValue:L,newOverOld:U}=this.props,A=this.getOptionList();let D=L;return L==="ordered-list-item"?D="ordered":L==="unordered-list-item"?D="unordered":D="none",(0,b.jsx)(C.A,{disabled:!U,className:N,options:A,value:D,handleChange:this.handleListValueChange,isLongTimeHover:!0})}}const M=(Q,N)=>{const L=(0,s.dP)();if((0,l.md)(L).isOpen)return;const A=(j,F,Y)=>{const X={};for(const[z,Z]of Object.entries(j))X[z]={...Z,type:F,depth:Y?Z.depth:0};return X},B=(0,_.nE)(L).map(j=>{let{key:F,hotAttr:Y}=j;if(!o.Q.USE_TEXT_LIST.includes(Y.type))return null;let X;if(Q==="ordered-list-item"||Q==="unordered-list-item")Q==="ordered-list-item"&&N==="unordered"?X=A(Y.textV1.blocks,"unordered-list-item",!0):Q==="unordered-list-item"&&N==="ordered"?X=A(Y.textV1.blocks,"ordered-list-item",!0):X=A(Y.textV1.blocks,"unstyled",!1);else{const Z=N==="unordered"?"unordered-list-item":"ordered-list-item";X=A(Y.textV1.blocks,Z,!1)}const z={...Y,textV1:{...Y.textV1,blocks:X}};if(z.richTextV1.sizeType===0){const{width:Z,height:J}=(0,i.Dp)(z),{x:te,y:ge}=(0,p.p)({key:F,width:Z,height:J});z.w=Z,z.h=J,z.x=te,z.y=ge}else if(z.richTextV1.sizeType===2){const Z=(0,i.x1)(z),{x:J,y:te}=(0,p.p)({key:F,width:Y.w,height:Z});z.h=Z,z.x=J,z.y=te}return{key:F,hotAttr:{textV1:z.textV1,w:z.w,h:z.h,x:z.x,y:z.y}}}).filter(j=>j);MB.action("entry:widget:change",{flatChgList:B})};var x=e(92001),g=e(79150),S=e(92114),t=e(50521);class v extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"SIZE_TYPE_OPTION_LIST",[{label:(0,b.jsx)(I.C,{name:"setting_panel/font/horizontal"}),value:"horizontal-tb",tip_title:I18N.builtin.horizontal},{label:(0,b.jsx)(I.C,{name:"setting_panel/font/vertical"}),value:"vertical-lr",tip_title:I18N.builtin.vertical}])}render(){const{className:N,directionType:L,newOverOld:U,handleDirectionTypeChange:A}=this.props,{SIZE_TYPE_OPTION_LIST:D}=this;return(0,b.jsx)(C.A,{disabled:!U,className:N,options:D,value:L,handleChange:A,isLongTimeHover:!0})}}var w=e(6843);const k=99999,W=0,K=[{label:()=>"\u4E0A",name:"pT",value:0},{label:()=>"\u4E0B",name:"pB",value:0},{label:()=>"\u5DE6",name:"pL",value:0},{label:()=>"\u53F3",name:"pR",value:0}],$=(0,r.memo)(Q=>{let{refVars:N,paddingTuple:L,disabled:U,onChange:A,canAddVar:D}=Q;const B=(j,F,Y)=>{const X={...L,[F]:j};A(X,{...N,[F]:Y})};return(0,b.jsx)(w.mO,{children:K.map(j=>(0,b.jsxs)("div",{className:"padding-item",children:[(0,b.jsx)(c.Yw,{type:"number",max:k,min:W,disabled:U,inputClassName:"padding-number",refVar:N==null?void 0:N[j.name],value:(L==null?void 0:L[j.name])||W,canAddVar:D,onConfirm:(F,Y)=>{B(F,j.name,Y)}}),(0,b.jsx)("div",{className:"label",children:j.label()})]},j.name))})}),P=[".var-editor",".var-dropmenu"];class E extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"OPTIONS_MENU_OPENER",(0,b.jsx)(t.Q,{className:"menu-opener fontSettings",content:I18N.SettingPanel.text_settings,icon:(0,b.jsx)(I.C,{name:"common/more",className:"options-icon"}),direction:"down"})),(0,n.A)(this,"setComponentRef",N=>this.workspaceDropdown=N),(0,n.A)(this,"handleCloseOptionsMenu",()=>{this.workspaceDropdown.close()}),(0,n.A)(this,"handleClickoutSide",N=>!P.some(L=>{var U;return(U=N.target)==null?void 0:U.closest(L)}))}render(){const{isDisabled:N,...L}=this.props,{OPTIONS_MENU_OPENER:U}=this;return(0,b.jsx)(w.L4,{children:(0,b.jsx)(u.A,{menuX:"right",menuY:"bottom",ref:this.setComponentRef,isDisabled:N,className:"options-menu-opener font-menu-opener",opener:U,menuClassName:"font-options-menu",onClickOutside:this.handleClickoutSide,menu:(0,b.jsx)(H,{onClose:this.handleCloseOptionsMenu,...L})})})}}(0,n.A)(E,"defaultProps",{isShowLink:!0,isShowSizeType:!0});const H=(0,r.memo)(Q=>{let{directionType:N,newOverOld:L,listValue:U,isHavingLink:A,isWRichText:D,handleFontDirectionChange:B,handleChange:j,onClose:F,shouldReverseDesc:Y,sizeType:X,paraSpacing:z,paddingTuple:Z,name:J,disabled:te,isClipText:ge,refVars:pe,isShowLink:Ce,isShowSizeType:me,canAddVar:be,handleSizeTypeChange:ie}=Q;const oe=Me=>{B(Me),Me==="vertical-lr"?(0,f.yt)("\u7EB5\u5411\u6392\u5217"):(0,f.yt)("\u6A2A\u6392")},he=o.Q.USE_SIZE_TYPE.includes(J),ce=o.Q.USE_TEXT_FONT_DIRECTION.includes(J),re=o.Q.USE_PARA_SPACING.includes(J),fe=!o.Q.HIDE_PADDING.includes(J),Se=o.Q.USE_CLIP_TEXT.includes(J);return(0,b.jsxs)(w.jl,{children:[(0,b.jsxs)("header",{children:[(0,b.jsx)("span",{className:"title",children:I18N.SettingPanel.text_settings}),(0,b.jsx)(g.A,{name:"common/close_sm",onClick:F})]}),(0,b.jsxs)("div",{id:"text-settings-font-menu",className:"menu-container",children:[me&&he&&(0,b.jsx)("div",{className:"menu-wrapper",children:(0,b.jsxs)("div",{className:"font-style svg-size",children:[(0,b.jsx)("p",{children:I18N.SettingPanel.text_fix_type}),(0,b.jsx)(d.A,{newOverOld:!0,isDisabledSizeType:!1,shouldReverseDesc:Y,sizeType:X,handleSizeTypeChange:ie})]})}),ce&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"menu-wrapper",children:(0,b.jsxs)("div",{className:"font-style svg-size",children:[(0,b.jsx)("p",{children:I18N.TextToolbar.textDirection}),(0,b.jsx)(v,{className:"font-size-type",newOverOld:L,directionType:N,handleDirectionTypeChange:oe})]})}),(0,b.jsx)("div",{className:"menu-wrapper",children:(0,b.jsxs)("div",{className:"font-style font-list-style svg-size",children:[(0,b.jsx)("p",{children:I18N.ScreenPanel.list_style}),(0,b.jsx)(a,{className:"font-size-type font-list",newOverOld:L,listValue:U,directionType:N,handleChange:j})]})}),Ce&&(0,b.jsx)("div",{className:"menu-wrapper",children:(0,b.jsxs)("div",{className:"font-style svg-size",children:[(0,b.jsx)("p",{children:I18N.SettingPanel.design.link}),(0,b.jsx)(x.p,{className:"font-size-type",isHavingLink:A})]})})]}),re&&(0,b.jsx)("div",{className:"menu-wrapper",children:(0,b.jsxs)("div",{className:"font-style",children:[(0,b.jsx)("p",{children:I18N.SettingPanel.para_spacing}),(0,b.jsx)(c.Yw,{inputClassName:"paragraph-input",type:"number",refVar:pe==null?void 0:pe.paraSpacing,disabled:!D,value:z,step:.1,precision:2,min:0,max:9999,withToolTip:!0,toolTipContent:I18N.SettingPanel.para_spacing,direction:"down",normalRight:!0,isLongTimeHoverForInput:!0,canAddVar:be,onConfirm:(Me,Ie)=>{(Me!==z||Ie!==(pe==null?void 0:pe.paraSpacing))&&j(Me,"paraSpacing",Ie)}})]})}),Se&&(0,b.jsx)("div",{className:"menu-wrapper",children:(0,b.jsxs)("div",{className:"is-clip-text",children:[(0,b.jsx)("p",{children:I18N.SettingPanel.is_clip_text}),(0,b.jsx)(S.A,{size:"small",isIOS:!0,isChecked:ge,onChange:Me=>j(Me,"isClipText")})]})}),fe&&(0,b.jsx)("div",{className:"menu-wrapper",children:(0,b.jsxs)("div",{className:"font-padding",children:[(0,b.jsx)("p",{children:"\u8FB9\u8DDD"}),(0,b.jsx)($,{paddingTuple:Z,disabled:te,onChange:(Me,Ie)=>j(Me,"paddingTuple",Ie),refVars:pe==null?void 0:pe.paddingTuple,canAddVar:be})]})})]})]})});var O=e(63126);class V extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleChange",(N,L,U)=>{const{onChange:A,dispatch:D}=this.props;A({value:N,attr:L,refVar:U,dispatch:D})}),(0,n.A)(this,"handleSizeTypeChange",N=>{const{onSizeTypeChange:L,dispatch:U}=this.props;L==null||L({sizeType:N,dispatch:U})}),(0,n.A)(this,"handleFontDirectionChange",N=>{const{onChange:L,dispatch:U}=this.props;L({value:N,attr:"fontDirection",dispatch:U})}),(0,n.A)(this,"getSpacingList",()=>{const{shouldReverseDesc:N}=this.props;return N?[{title:(0,b.jsx)(I.C,{className:"design-padding",name:"setting_panel/font/letter_spacing_re"}),toolTipContent:I18N.SettingPanel.letter_spacing},{title:(0,b.jsx)(I.C,{className:"design-text_line_height",name:"setting_panel/font/text_line_height_re"}),toolTipContent:I18N.SettingPanel.text_line_height},{title:(0,b.jsx)(I.C,{className:"design-para_spacing",name:"setting_panel/font/para_spacing_re"}),toolTipContent:I18N.SettingPanel.para_spacing}]:[{title:(0,b.jsx)(I.C,{className:"design-padding",name:"setting_panel/font/letter_spacing"}),toolTipContent:I18N.SettingPanel.letter_spacing},{title:(0,b.jsx)(I.C,{className:"design-text_line_height",name:"setting_panel/font/text_line_height"}),toolTipContent:I18N.SettingPanel.text_line_height},{title:(0,b.jsx)(I.C,{className:"design-para_spacing",name:"setting_panel/font/para_spacing"}),toolTipContent:I18N.SettingPanel.para_spacing}]}),(0,n.A)(this,"isHideLineHeight",()=>{const{hideLineHeight:N,name:L,baseItem:U}=this.props;return N||O.AG.includes(L)||(U==null?void 0:U.every(A=>{let{hotAttr:D}=A;return O.AG.includes(D.type)}))}),(0,n.A)(this,"isOldPadding",()=>{const{name:N}=this.props;return[o.x.WMTextArea,o.x.WTable].includes(N)})}render(){const{disabled:N,lineHeight:L,paddingTuple:U,padding:A,canPadding:D=!0,sizeType:B,isWRichText:j,shouldReverseDesc:F,letterSpacing:Y,fontSize:X,fontFamily:z,paraSpacing:Z,isClipText:J,fontDirection:te,curBlockKey:ge,isHavingLink:pe,listValue:Ce,isDisalbeLineHeight:me,name:be,baseItem:ie,isMissFont:oe,refVars:he,isShowLink:ce,isShowSizeType:re,canAddVar:fe,showOptionsMenu:Se,isShowAddVarIcon:Me,dropdownProps:Ie}=this.props,de=this.getSpacingList(),xe=Se&&(O.dE.includes(be)||(ie==null?void 0:ie.every(We=>O.dE.includes(We.hotAttr.type)))),Le=this.isHideLineHeight(),ve=me||L===1/0||N,je=this.isOldPadding();return(0,b.jsx)(b.Fragment,{children:(0,b.jsxs)("div",{className:"font-group spacing-line height-32",children:[(0,b.jsx)(c.Yw,{type:"number",className:"paragraph-input step-input-width-72",title:je?(0,b.jsx)(I.C,{className:"design-padding",name:"setting_panel/font/margin"}):de[0].title,disabled:oe||!D||N,value:je?A:Y,min:0,max:9999,step:je?1:.1,precision:2,withToolTip:!0,toolTipContent:je?I18N.SettingPanel.padding:de[0].toolTipContent,direction:"down",isLongTimeHoverForInput:!0,refVar:he==null?void 0:he[je?"padding":"letterSpacing"],canAddVar:fe,isShowAddVarIcon:Me,dropdownProps:Ie,onConfirm:(We,Ae)=>this.handleChange(We,je?"padding":"letterSpacing",Ae)}),!Le&&(0,b.jsx)(c.Yw,{type:"number",className:"paragraph-input step-input-width-72",tooltipTitle:I18N.SettingPanel.text_line_height,title:de[1].title,disabled:oe||ve,value:L,isNotVerify:L===1/0,min:0,max:9999,withToolTip:!0,toolTipContent:de[1].toolTipContent,direction:"down",fontFamily:z,fontSize:X,isWRichText:j,isLineHeight:!0,isLongTimeHoverForInput:!0,refVar:he==null?void 0:he.lineHeight,canAddVar:fe,isShowAddVarIcon:Me,dropdownProps:Ie,onConfirm:(We,Ae)=>this.handleChange(We,"lineHeight",Ae)}),xe&&(0,b.jsx)(E,{isDisabled:oe||!1,newOverOld:!0,listValue:Ce,isHavingLink:pe,curBlockKey:ge,isWRichText:!0,name:be,disabled:oe||N,handleChange:this.handleChange,handleFontDirectionChange:this.handleFontDirectionChange,directionType:te,handleSizeTypeChange:this.handleSizeTypeChange,sizeType:B,paddingTuple:U,paraSpacing:Z,isClipText:J,shouldReverseDesc:F,refVars:he,isShowLink:ce,isShowSizeType:re,canAddVar:fe})]})})}}(0,n.A)(V,"defaultProps",{canAddVar:!0,showOptionsMenu:!0,isShowAddVarIcon:!0})},77686:(He,ee,e)=>{"use strict";e.d(ee,{b:()=>r});const n=c=>["\u5171\u4EA7\u515A","\u515A\u5FBD","\u56FD\u65D7","\u56FD\u6B4C","\u515A\u7AE0","\u56FD\u5FBD","\u56FD\u6B4C","\u515A\u7EC4\u7EC7","\u5927\u9009","\u7F8E\u56FD","\u4E2D\u56FD","\u4EE5\u8272\u5217","\u4E4C\u514B\u5170","\u5DF4\u52D2\u65AF\u5766","\u65E5\u672C","\u8272\u60C5","\u4E09\u7EA7","\u6210\u4EBA","\u4E73","\u5904\u5973","\u4EBA\u4F53","\u5171\u548C","\u4E73","\u9634\u5507","\u4E73","\u6027\u7231","\u4E2D\u5171","\u7834\u5904","1989","\u5929\u5B89\u95E8","\u6CD5\u8F6E","\u53F0\u6E7E","\u53F0\u6D77","\u592B\u59BB","\u591C\u60C5","\u98CE\u6D41","\u9A9A","av","\u65E0\u7801","\u540C\u5E8A","\u6BD2","\u7EA6\u70AE","\u5F3A\u8FEB","\u6DEB","\u88F8","\u5927\u9EBB","\u7A74","\u8D4C\u535A","\u535A\u5F69","\u4E09\u4EBA\u884C","\u4E8B\u4EF6","\u5C38","\u6B7B","\u5973\u4F18","\u897F\u85CF","\u65B0\u7586","\u6B7C","\u8B66\u5BDF","sex","\u5C3F","\u5C4E","\u5993","\u6309\u6469","\u966A\u7761","\u7845\u80F6","\u6DEB","\u53EF\u5361\u56E0","\u8B66\u5FBD","\u8B66\u68CD","\u8B66\u7528","\u4E1C\u4EAC","\u4E1D\u889C","\u4E24\u4F1A","\u515A","\u4E3B\u5E2D","\u4E2D\u5357\u6D77","\u8FB9\u754C","\u771F\u76F8","\u5206\u88C2","\u50A8\u541B","\u9886\u5BFC\u4EBA","\u592A\u5B50","\u653F\u6CBB","\u519B\u59D4","\u5C04","\u4EBA\u517D","\u9E21","\u59B9","\u5730\u56FE","\u56FD\u754C","\u4EE5\u8272\u5217","\u653F\u5E9C","\u66B4","\u8840","\u5B89\u5168\u5957","\u6B27\u7F8E","\u9E26\u7247","\u6C11\u4E3B","\u81EA\u7531","\u6C13","\u5211","\u6FC0\u60C5","\u75F4","\u5974","gay","\u7537\u7537","\u5199\u771F","\u79CD\u65CF","\u7CBE\u6DB2","\u7D20\u4EBA","\u8F6E\u76D8","\u8089\u68D2","\u809B","\u8131","\u8499\u53E4","\u8D8A\u5357","\u83F2\u5F8B\u5BBE","\u5370\u5EA6","\u5B55"].some(I=>c.includes(I)),r=c=>["\u5171\u4EA7\u515A","\u515A\u5FBD","\u56FD\u65D7","\u56FD\u6B4C","\u515A\u7AE0","\u56FD\u5FBD","\u56FD\u6B4C","\u515A\u7EC4\u7EC7","\u5927\u9009","\u7F8E\u56FD","\u4E2D\u56FD","\u4EE5\u8272\u5217","\u4E4C\u514B\u5170","\u5DF4\u52D2\u65AF\u5766","\u65E5\u672C"].some(I=>c.includes(I))},77698:(He,ee,e)=>{"use strict";e.d(ee,{$T:()=>C,yP:()=>h});var n=e(38502),r=e(53732),c=e.n(r),o=e(67787),I=e(56202),u=e(72214);const d={vertical:{offsetSize:"offsetHeight",scrollPosition:"scrollTop",scrollSize:"scrollHeight",clientSize:"clientHeight",scrollDirection:"scrollY",size:"height",client:"clientY",direction:"top",page:"pageY",barClassName:"bar-vertical",thumbClassName:"thumb-vertical"},horizontal:{offsetSize:"offsetWidth",scrollPosition:"scrollLeft",scrollSize:"scrollWidth",clientSize:"clientWidth",scrollDirection:"scrollX",size:"width",client:"clientX",direction:"left",page:"pageX",barClassName:"bar-horizontal",thumbClassName:"thumb-horizontal"}},C=n.memo(function(s){const{isAutoHideBar:l,containerRef:_,minSize:b,verticalDragCallback:a=()=>null,horizontalCallback:M=()=>null}=s;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(h,{type:"vertical",containerRef:_,isAutoHideBar:l,minSize:b,dragCallback:a}),(0,u.jsx)(h,{type:"horizontal",containerRef:_,isAutoHideBar:l,minSize:b,dragCallback:M})]})}),h=n.memo(function(s){const{type:l,containerRef:_,isAutoHideBar:b,minSize:a,dragCallback:M=()=>null}=s,x=n.useRef(null),g=n.useRef(null),S=n.useRef(0),[t,v]=(0,n.useState)(0),[w,k]=(0,n.useState)(2),W=n.useRef(1),[K,G]=(0,n.useState)(!1),[$,P]=(0,n.useState)(b?0:1),[E,H]=(0,n.useState)(!1),O=(0,n.useCallback)(()=>{const F=_.current,Y=x.current;if(!F||!Y)return;const X=F[d[l].clientSize],z=F[d[l].scrollSize],Z=z>X;let J,te,ge;if(Z){const pe=Y[d[l].clientSize];J=X/z*pe,a&&J<a&&(J=a),te=(pe-J)/(z-X),ge=F[d[l].scrollPosition]*te,ge=Math.max(ge,0),ge=Math.min(ge,pe-J)}else J=0,te=1,ge=0;S.current=J,W.current=te,v(J),k(ge),H(Z)},[_,l]),V=(0,n.useCallback)(()=>{const F=_.current,Y=x.current,X=S.current;if(!F||!Y)return;const z=Y[d[l].clientSize];let Z=F[d[l].scrollPosition]*W.current;Z=Math.max(Z,0),Z=Math.min(Z,z-X),k(Z)},[_,l]),Q=(F,Y)=>{const{left:X,right:z,top:Z,bottom:J}=Y.getBoundingClientRect();return F.clientX>=X&&F.clientX<=z&&F.clientY>=Z&&F.clientY<=J},N=(0,n.useCallback)(F=>{const Y=_.current;if(!Y)return;if(Q(F,Y)){P(1);const z=()=>{P(0),document.removeEventListener("mouseleave",z)};document.addEventListener("mouseleave",z)}else{if(K)return;P(0)}},[_,K]);(0,n.useEffect)(()=>{const F=_.current,Y=F==null?void 0:F.children,X=x.current;O();let z,Z;if(F&&X)if(b&&document.addEventListener("mousemove",N),F.addEventListener("scroll",V),window.ResizeObserver){if(z=new ResizeObserver(O),z.observe(F),Y){var J;z.observe(Y[0]),(J=Y[0].children)!=null&&J[0]&&z.observe(Y[0].children[0]);const te=F.querySelector(".variable-height");te&&z.observe(te)}}else Z=new MutationObserver(()=>setTimeout(O,200)),window.addEventListener("resize",O),Y&&Z.observe(Y[0],{subtree:!0,attributeFilter:["style"]});return()=>{z&&z.disconnect(),Z&&Z.disconnect(),window.removeEventListener("resize",O),F&&F.removeEventListener("scroll",V),b&&document.removeEventListener("mousemove",N)}},[_,x,b,l,N,V,O]);const L=(0,n.useCallback)(F=>{if(F.preventDefault(),!g.current||!_.current)return;const Y=F[d[l].page],X=_.current[d[l].scrollPosition]*W.current;let z;const Z=te=>{G(!0),M(!0);const ge=te[d[l].page]-Y;z=(X+ge)/W.current,_.current[d[l].scrollPosition]=z,V()},J=()=>{document.removeEventListener("mousemove",Z),document.removeEventListener("mouseup",J),G(!1),M(!1)};document.addEventListener("mousemove",Z),document.addEventListener("mouseup",J)},[_,l,V,M]),U=(0,n.useCallback)(F=>{if(F.preventDefault(),!(!x.current||!g.current||!_.current)&&F.target!==g.current){const X=(F[d[l].page]-x.current.getBoundingClientRect()[d[l].direction]-window[d[l].scrollDirection]-g.current[d[l].clientSize]/2)/W.current;_.current[d[l].scrollPosition]=X,V()}},[_,l,V]);if((0,I.nr)())return null;const A={opacity:E?$:0},D={[d[l].direction]:w,[d[l].size]:t},B=d[l].barClassName,j=c()(d[l].thumbClassName,{"is-dragging":K});return(0,u.jsx)(i,{className:B,ref:x,style:A,onMouseDown:U,children:(0,u.jsx)(f,{className:j,ref:g,style:D,onMouseDown:L})})}),i=o.Ay.div.withConfig({displayName:"ScrollBar2__StyledScrollBar",componentId:"sc-18qqocw-0"})(["position:absolute;&.bar-vertical{right:0;top:0;width:8px;height:100%;}&.bar-horizontal{bottom:0;left:0;width:100%;height:8px;}"]),f=o.Ay.div.withConfig({displayName:"ScrollBar2__StyledThumb",componentId:"sc-18qqocw-1"})(["position:absolute;padding:2px;&::after{transition:0.3s background-color;background-color:",";border-radius:6px;content:'';display:block;}&.thumb-vertical{top:0;right:0;width:8px;min-height:20px;&::after{content:'';display:block;width:4px;height:100%;}}&.thumb-horizontal{bottom:0;left:0;height:8x;min-width:20px;&::after{height:4px;width:100%;}}&:hover,&.is-dragging{&::after{background-color:",";}}"],p=>p.theme.color_slider_normal,p=>p.theme.color_slider_hover)},77709:(He,ee,e)=>{"use strict";e.d(ee,{$7:()=>u,BM:()=>h,Er:()=>d,H5:()=>c,I9:()=>I,iJ:()=>o,wT:()=>i});var n=e(12211),r=e(60651);const c=f=>f.ui.toolbar.isShowSharingManager,o=f=>f.ui.toolbar.projShareToEdit,I=f=>f.ui.toolbar.canToggleSticky,u=f=>f.ui.toolbar.isShowSticky,d=f=>f.ui.toolbar.saving,C=f=>f.ui.toolbar.canPaste,h=f=>f.ui.toolbar.refresh,i=(0,n.Mz)([r.pH,r.YL],(f,p)=>f||p?0:48)},77814:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>u});var n=e(95549),r=e(38502),c=e(17307),o=e(66530),I=e(72214);class u extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"setComponentRef",C=>this.modal=C)}componentDidMount(){const C=this;window.onmessage=async function(h){if(h.data==="loginSuccess"||h.data==="registerSuccess"){const i=btoa("client=web&type=to_url&url="+location.href);location.href="https://accounts.wondershare.com/v3/user/oauth-client/authorize?response_type=code&redirect_uri="+location.origin+"/wondershare/callback&scope=user%20normal&state="+i+"&source=37&app_key=689b3b14b4e225a9ddadd80a5ef81ca3&product_id=8038"}else h.data==="close"&&C.modal.close()}}render(){const{isOpen:C,onClose:h,type:i}=this.props,f="https://accounts.wondershare.com/web/"+(i==="signin"?"login":"register")+"?redirect_uri="+location.origin+"&source=37&site=mockitt.wondershare.com&mode=1&product_id=8038";return(0,I.jsx)(o.Yo,{isOpen:C,onClose:h,ref:this.setComponentRef,className:"login-modal",isUsePortal:!1,modalRender:()=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("iframe",{src:f}),(0,I.jsx)("button",{className:"btn-close-modal",onClick:h,children:(0,I.jsx)(c.C,{name:"common/close"})})]})})}}(0,n.A)(u,"defaultProps",{type:"signin"})},77872:(He,ee,e)=>{"use strict";e.d(ee,{l:()=>c,n:()=>u});var n=e(15515),r=e(34860);const c=d=>"design_screen_collapse_keys_"+d,o={show:!1,position:{top:0,left:0},contextScreenSelection:[]},I={editingScreenMetaCid:"",screenTreeMap:{},screenDataMap:{},screenSelection:[],currentPage:{},isMultiplePage:!1,screenTreeData:{cid:"root",data:null,children:[]},contextMenuState:o,screenRange:{start:0,end:void 0},screenCollapseKeySet:new Set,selectNotMoveUpScreenSet:new Set,selectNotMoveDownScreenSet:new Set,selectScreenMetaParentSet:new Set,selectNotDownGradeScreenSet:new Set,screenInfoMap:new Map};function u(d,C){d===void 0&&(d=I);const{type:h,payload:i}=C;switch(h){case"screen:update:state":return{...d,...i};case"screen:set:all:screen-data":{const{screenTreeData:f,screenTreeMap:p,screenDataMap:s}=i;return{...d,screenTreeData:f,screenTreeMap:p,screenDataMap:s}}case"screen:update:editing-screen-cid":return{...d,editingScreenMetaCid:i.cid};case"screen:open:contextmenu":return{...d,contextMenuState:i.contextMenuState};case"screen:update:contextmenu:contextScreenSelection":return{...d,contextMenuState:{...d.contextMenuState,contextScreenSelection:i}};case"screen:close:contextmenu":return{...d,contextMenuState:o};case"screen:update:select:range":return{...d,screenRange:i.screenRange};case"screen:update:screen-selection":{const{screenSelection:f}=i;return{...d,screenSelection:f}}case"screen:update:collapseKeySet":{const{screenExpandedKeySetRef:f,projectCid:p}=i,s=new Set(d.screenCollapseKeySet);return d.screenCollapseKeySet.has(f)?s.delete(f):s.add(f),(0,r.OB)()&&(0,n.a0)(c(p),[...Array.from(s)],n.qW.Array),{...d,screenCollapseKeySet:s}}case"screen:del:collapseKeySet":{const{refs:f,projectCid:p}=i,s=new Set(d.screenCollapseKeySet);return f!=null&&f.length&&f.forEach(l=>s.has(l)&&s.delete(l)),(0,r.OB)()&&(0,n.a0)(c(p),[...Array.from(s)],n.qW.Array),{...d,screenCollapseKeySet:s}}case"screen:add:collapseKeySet":{const{refs:f,projectCid:p}=i,s=new Set([...Array.from(new Set(d.screenCollapseKeySet)),...f]);return p&&(0,r.OB)()&&(0,n.a0)(c(p),[...Array.from(s)],n.qW.Array),{...d,screenCollapseKeySet:s}}case"screen:reset:collapseKeySet":{const{projectCid:f,collapseKeyList:p=[]}=i,s=new Set(p);return(0,r.OB)()&&(0,n.a0)(c(f),[...Array.from(s)],n.qW.Array),{...d,screenCollapseKeySet:s}}case"screen:update:screenInfoMap":{const{screenInfoMap:f}=d,p=new Map(f),{key:s,value:l}=i;return p.set(s,l),{...d,screenInfoMap:p}}default:return d}}},78161:(He,ee,e)=>{"use strict";e.d(ee,{Y:()=>f});var n=e(38502),r=e(18381),c=e(67588),o=e(67052),I=e(83199),u=e(17307),d=e(72524),C=e(67787);const h=C.Ay.div.withConfig({displayName:"style__StyledFloatPreviewIcon",componentId:"sc-xvp2aq-0"})(["display:flex;justify-content:center;align-items:center;.svgContainer{width:16px;height:16px;}svg{width:100%;height:100%;border-radius:4px;background-color:rgba(51,51,51,0.5);&:hover{background-color:rgba(51,51,51,0.7);}}"]);var i=e(72214);const f=p=>{const{className:s="",getImgSrc:l,onToggleHover:_,children:b,onClick:a,modalName:M,delay:x=500}=p,[g,S]=(0,n.useState)(!1),t=(0,r.d4)(c.bP),v=(0,r.d4)(o.B8),w=(0,n.useRef)(null),k=(0,n.useRef)(null),W=P=>{S(P),_&&_(P)},K=P=>{P.buttons===0&&(clearTimeout(w.current),W(!0))},G=()=>{x?w.current=setTimeout(()=>{W(!1)},500):W(!1)},$=P=>{a&&(W(!1),a(P))};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h,{className:s,children:(0,i.jsx)(I.A,{content:I18N.Resources.preview,direction:"down",children:(0,i.jsx)("div",{className:"svgContainer",onMouseEnter:K,onMouseLeave:G,onClick:$,ref:k,children:b||(0,i.jsx)(u.C,{name:"design/templates/preview"})})})}),g&&(0,i.jsx)("div",{style:{display:"none"},onMouseEnter:K,onMouseLeave:G,children:(0,i.jsx)(d.A,{layout:t,targetNode:k.current,getImgSrc:l,popupsPanelName:M?"":v,modalName:M,isAutoSize:!!M})})]})}},78301:(He,ee,e)=>{"use strict";e.d(ee,{IG:()=>o,Sv:()=>I,kb:()=>u});var n=e(67787),r=e(21066),c=e(51090);const o=n.Ay.div.withConfig({displayName:"StyledMenuBox",componentId:"sc-17rvgl7-0"})(["padding:8px;min-width:160px;background:",";box-shadow:",";border-radius:8px;color:",";border:1px solid ",";margin-top:-4px;a{height:28px;}li{list-style:none;}.menu-item{position:relative;height:32px;padding:0 20px;display:flex;align-items:center;cursor:pointer;&:hover{background:",";}}.menu-divider{height:1px;margin:8px 0;background-color:",";}&.group-content{min-width:200px;.group-icon .svg-icon{width:16px;height:16px;&.toolbar-z_front,&.toolbar-z_back,&.common-z_forward,&.common-z_backward{width:24px;height:24px;}}}.group-icon{&.version-history{.toolbar-feature-notice{left:95px;}}}"],d=>d.theme.color_bg_white,d=>d.theme.shadow_m,d=>d.theme.color_text_L1,d=>d.theme.color_bg_border_01,d=>d.theme.color_btn_secondary_hover,d=>d.theme.color_bg_border_01),I=(0,n.Ay)(r.Ay).withConfig({displayName:"StyledMenuBox__StyledMenuContent",componentId:"sc-17rvgl7-1"})(["ul{min-width:160px;}&.isCommunity{top:53px !important;&.fullScreen{top:48px !important;}&.onlyRead{&.project_basic{right:267px !important;&.fullScreen{right:233px !important;}}&.combo_group{right:226px !important;}}&.onlyPreview{&.combo_group{right:189px !important;}right:196px !important;}ul{width:160px;min-width:0;}}&.isEmbedV2Preview{top:32px !important;&.fullScreen{top:48px !important;}&.onlyRead{&.fullScreen{right:233px !important;}}&.onlyPreview{right:196px !important;}ul{width:160px;min-width:0;}}&.onlyPreview{> ul{left:initial;right:100%;}}li{list-style:none;}a{color:",";}.MenuItem{& > a{padding-left:32px;}&.hasIcon{> a{padding-left:15px;}}}.menu-divider{height:1px;margin:8px 0;background-color:",";}",";"],d=>d.theme.color_text_L1,d=>d.theme.color_bg_border_01,c.ZJ),u=(0,n.DU)([".context-menu-mask{z-index:1200 !important;}"])},78571:(He,ee,e)=>{"use strict";He.exports=e.p+"worker-3c447446de69e2fd77d8.js"},78661:(He,ee,e)=>{"use strict";e.d(ee,{V:()=>o});var n=e(56202);const r={copy:["Ctrl + C","\u2318 C"],cut:["Ctrl + X","\u2318 X"],group:["Ctrl + G","\u2318 G"],past:["Ctrl + V","\u2318 V"],ungroup:["Shift + Ctrl + G","\u21E7 \u2318 G"],lock:["Shift + Ctrl + L","\u21E7 \u2318 L"],hide:["Shift + Ctrl + H","\u21E7 \u2318 H"],pastToPoint:["Shift + Ctrl + V","\u21E7 \u2318 V"],sendFront:["Shift + Ctrl + \u2191","\u21E7 \u2318 \u2191"],sendBack:["Shift + Ctrl + \u2193","\u21E7 \u2318 \u2193"],zForward:["Alt + Ctrl + \u2191","\u2325 \u2318 \u2191"],zBackward:["Alt + Ctrl + \u2193","\u2325 \u2318 \u2193"],undo:["Ctrl + Z","\u2318 Z"],redo:["Shift + Ctrl + Z"," \u21E7 \u2318 Z"],selectAll:["Ctrl + A","\u2318 A"],zoomIn:["Ctrl + +","\u2318 +"],zoomOut:["Ctrl + -","\u2318 -"],zoomToHundred:["Ctrl + 0","\u2318 0"],fitCanvas:["Ctrl + 1","\u2318 1"],zoomSelection:["Ctrl + 2","\u2318 2"],showLeftPanel:["Ctrl + [","\u2318 ["],showRightPanel:["Ctrl + ]","\u2318 ]"],sticky:["Alt + Ctrl + A","\u2325 \u2318 A"],findReplace:["Ctrl + F","\u2318 F"],pasteProperties:["Alt + Ctrl + V","\u2325 \u2318 V"],preview:["Ctrl + P","\u2318 P"],addSameLevelPage:["Ctrl + Enter","\u2318 \u21B5"],moveUpPage:["Ctrl + \u2191","\u2318 \u2191"],moveDownPage:["Ctrl + \u2193","\u2318 \u2193"],upgradePage:["Ctrl + \u2190","\u2318 \u2190"],downGradePage:["Ctrl + \u2192","\u2318 \u2192"],insertSubTheme:["Tab/Insert","Tab/Insert"],insertPeerTheme:["Enter","Enter"],save:["Ctrl + S","\u2318 S"],pencil:["Shift + P","\u21E7 P"]},c=(0,n.cX)()?1:0,o=Object.entries(r).reduce((I,u)=>{let[d,C]=u;return I[d]=C[c].split(" "),I},{})},78998:(He,ee,e)=>{"use strict";e.d(ee,{C8:()=>h,K4:()=>C,Q:()=>u,XB:()=>I,aT:()=>o,vb:()=>d});var n=e(49899),r=e.n(n),c=e(53559);const o=i=>{const f={};return i.map(p=>{const s=f[p.name]=(f[p.name]||0)+1;if(s===1)return p;const l=p.name.split("."),_=l.pop();return new File([p],l.join(".")+" ("+s+")."+_,{type:p.type})})},I=(i,f,p)=>{const{isExportWatermark:s}=(0,c.xR)(i,f);return s},u=(i,f)=>{(0,n.saveAs)(i,f)},d=i=>{const f={};for(const[p,s]of Object.entries(i)){const b=p.split("/").map(a=>{const M=a.match(/^\d+\s+(.+)$/);return M?M[1]:a}).join("/");f[b]=s}Object.keys(i).forEach(p=>delete i[p]),Object.assign(i,f)},C=function(i,f,p,s){i===void 0&&(i=M=>{}),f===void 0&&(f=0),p===void 0&&(p=99),s===void 0&&(s=f);const l=(M,x,g)=>Math.max(Math.min(M,g),x);return{advanceRR:M=>{s=l(s+(p-f)*M,f,p),i(Math.round(s))},splitTo:M=>{const x=[];let g=s;for(let S=0;S<M;S++){const t=l(g+(p-s)/M,g,p);x.push(C(i,g,t)),g=t}return x},divideAt:M=>{const x=l(s+(p-s)*M,s,p);return[C(i,s,x),C(i,x,p)]}}},h=i=>{try{var f,p;const{currentOrg:s,userId:l}=i;if(!s||!l||!(s!=null&&s.permissions)||(s==null||(f=s.permissions)==null?void 0:f.length)===0)return!1;const _=(p=s.permissions)==null||(p=p.find(a=>Number(a.user_id)===Number(l)))==null?void 0:p.role;return(s.settings.mdrp_export||[]).includes(_)}catch(s){return!1}}},79388:(He,ee,e)=>{"use strict";e.d(ee,{Ck:()=>X,F2:()=>J,LK:()=>A,Ok:()=>ge,il:()=>Ce,sH:()=>L,yk:()=>Y,z0:()=>N});var n=e(93093),r=e(37304),c=e(63986),o=e.n(c),I=e(70093),u=e.n(I),d=e(76967),C=e.n(d),h=e(76805);if(/^4[67]7$/.test(e.j))var i=e(60892);var f=e(18833);if(/^4[67]7$/.test(e.j))var p=e(19249);var s=e(47946),l=e(31561),_=e(87612),b=e(83557),a=e(89989),M=e(2399),x=e(34860),g=e(85449),S=e(55244),t=e(49425),v=e(71577),w=e(50060),k=e(74222),W=e(58156),K=e(53940),G=e(15515),$=e(52563),P=e(9446),E=e(68587),H=e(39695),O=e(20089),V=e(18816),Q=e(76613);ENV.IS_SKT_HTTP&&(0,s.pX)(!0),(0,_.Z)(n.wd,r.Z);const N=async(me,be)=>{if(console.warn("[onTransferError]",me,be),me==="Tot"||me==="5XX")MB.notice&&MB.notice({text:I18N.Common.offline_alert,duration:32*1e3,showClose:!0,priority:1,type:"super"});else if(me==="4XX"&&be&&/403/.test(be.message)){if(MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.cant_edit,confirmText:I18N.dModule.exit_editing,desc:I18N.dModule.cant_edit_desc}).then(()=>MB.global.onBackButtonClick()),/Error: bad flpak-save/.test(be.message)){var ie,oe,he;(0,_.p)("saveFlpakError",be,{uId:(ie=MB)==null||(ie=ie.user)==null?void 0:ie.id,orgCid:(oe=MB)==null||(oe=oe.currentOrg)==null?void 0:oe.cid,projectCid:(he=MB)==null||(he=he.getRootProject())==null?void 0:he.cid})}}else me==="4XX"&&be&&/401/.test(be.message)?(window.onbeforeunload=void 0,MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.err_info_modal.INVALID_COOKIE.title,desc:I18N.dModule.err_info_modal.INVALID_COOKIE.desc,confirmText:I18N.dModule.confirm}).then(()=>(0,f.AG)())):me==="4XX"?(window.onbeforeunload=void 0,MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.err_info_modal.INVALID_COOKIE.title,desc:I18N.dModule.err_info_modal.INVALID_COOKIE.desc,confirmText:I18N.dModule.confirm}).then(()=>(0,f.AG)())):await MB.global.popupHelper.alertAsyncBlocked({desc:window.I18N.dModule.unknown_error.replace(/%s/i,status),isHTML:!0})},L=async(me,be)=>{console.warn("[onReadOnlyError]",me,be),me!=="Cur"&&MB.notice&&MB.notice({text:I18N.Common.offline_alert,duration:5*1e3,showClose:!0,priority:1})},U=me=>{let{sendCur:be,cssCur:ie}=me;const oe=()=>{try{if((0,x.oK)()){const ce=(0,g.ll)();if(!ce)return;const{container:{runner:{activePageKey:re}}}=ce;if(!re)return;be(re,void 0,void 0)}else{const ce=(0,g.dP)();if(!ce)return;const{current:{currentScreen:re},screencontainer:{cursorPos:fe}}=ce,Se=re&&(re.cid||re.key);if(!Se)return;const{x:Me,y:Ie}=fe||{};be(Se,Me,Ie)}}catch(he){console.error("cssCur push error",he)}};setInterval(()=>{ie.pollRoomChg()&&oe()},3*1e3),document.addEventListener("pointermove",oe,{passive:!0})},A=function(me,be){var ie;be===void 0&&(be=rootSdk);const oe=(0,g.dP)();if(!oe||!MB.action)return;try{(0,v.G_)()}catch(Ae){console.error(Ae)}if(((ie=rootSdk)==null||(ie=ie.cssCur)==null?void 0:ie.getRoomStat().length)<=1)return;const he=oe.ui.leftLayout.directory.screen.contextMenuState;if(he!=null&&he.show&&u()(he.contextScreenSelection,me).length>0){const Ae=C()(he.contextScreenSelection,me);Ae.length===0&&MB.action("screen:close:contextmenu"),MB.action("screen:update:contextmenu:contextScreenSelection",Ae)}const ce=oe.ui.leftLayout.directory.screen.currentPage,re=oe.ui.leftLayout.directory.screen.screenDataMap;ce&&me.includes(ce.key)&&be.sdkStore.isTrashed(ce.key)&&(oe.editor.state.mode.basketEditor.refPage?MB.action("entry:update:screen:list"):MB.action("entry:activate:root-project:home-screen"),MB.notice({text:"\u5F53\u524D\u9009\u4E2D\u753B\u5E03\u5DF2\u88AB\u6B63\u5728\u534F\u540C\u7684\u6210\u5458\u5220\u9664",type:"warning"}));const fe=be.sdkStore.getHotItem(me[0]);if((fe==null?void 0:fe.hotAttr.type)==="rResBunch"&&(fe==null?void 0:fe.hotAttr.bunch)==="rbPage")if(!re[me[0]]||be.sdkStore.isTrashed(me[0]))MB.action("entry:update:screen:list");else{const Ae=re[me[0]];if(!o()(fe==null?void 0:fe.hotAttr,Ae==null?void 0:Ae.hotAttr)){var Se,Me,Ie,de,xe,Le;((Ae==null||(Se=Ae.hotAttr)==null?void 0:Se.name)!==(fe==null||(Me=fe.hotAttr)==null?void 0:Me.name)||(Ae==null||(Ie=Ae.hotAttr)==null?void 0:Ie.icon)!==(fe==null||(de=fe.hotAttr)==null?void 0:de.icon)||(Ae==null||(xe=Ae.hotAttr)==null?void 0:xe.zIndex)!==(fe==null||(Le=fe.hotAttr)==null?void 0:Le.zIndex))&&MB.action("entry:update:screen:list"),(ce==null?void 0:ce.key)===(fe==null?void 0:fe.key)&&MB.action("entry:update:current:screen-mata",{screenMeta:{cid:fe==null?void 0:fe.key,sup:fe==null?void 0:fe.sup,sub:fe==null?void 0:fe.sub,...fe==null?void 0:fe.hotAttr},updateWidgetTreeData:!1})}}const ve=oe.editor.state.mode.selections,je=ve.filter(Ae=>!be.sdkStore.isTrashed(Ae));je.length!==ve.length&&MB.action("entry:update:selection:select:items",{cids:je});const We=oe.editor.state.mode.hover.item;We&&be.sdkStore.isTrashed(We)&&MB.action("mode:update:hover:item","")},D=me=>{A(me),te(me.map(be=>sdkStore.getHotItem(be)).filter(be=>{var ie;return(be==null||(ie=be.hotAttr)==null?void 0:ie.type)==="wChart"}))},B={repaint:me=>{let{type:be,payload:ie}=me;be===l.a&&D(ie.changedKeyList)}},j=(0,h.nF)(()=>{!(0,g.dP)()||!MB.action||MB.action("entry:comment:rebuild:commentList")},.5*1e3),F={repaint:me=>{let{type:be,payload:ie}=me;be===a.a&&j()}},Y=async me=>{let{projectBasicCid:be}=me;try{const{userId:ie,flatKey:oe,sclibKey:he}=await(0,p.DE)("/api/flat/web_v1/proj2-edit-info?prj2Cid="+be);return{userId:ie,flatKey:oe,sclibKey:he}}catch(ie){await(0,f.FY)(ie)}},X=me=>{var be,ie;return{...(0,H.nF)(),interactionTrigger:"timer",timerDuration:me.aniDelay||"0",targetWidgetKey:Q.rE,animationName:me.aniName,animationDuration:Number(((be=me.aniDuration)!=null?be:"1").replace("s",""))*1e3,transitionDelay:me.aniDelay||"0",iterationCount:(ie=me.aniCount)!=null?ie:"1"}},z=(me,be,ie)=>{try{if(Object.hasOwn(be,"animation")&&Object.hasOwn(be,"interactions")){const oe=be.animation;oe.aniName&&oe.aniName!=="none"&&ie.push([me,{animation:{...oe,aniName:"none"},interactions:[...be.interactions||[],X(oe)]}])}}catch(oe){console.error(oe)}},Z=me=>{let{sdk:be=sdkStore,rootKey:ie=k.$k,initWM:oe,convertItaAniPairList:he}=me;const ce=[],re=Date.now();return new Promise(fe=>{const Se=new Set,Me=[],Ie=(0,$.Pj)(),de=Le=>{te(ce),oe==null||oe(Array.from(Ie._map.keys()),Ie._map),Se.clear(),fe(Le)},xe=Le=>{if(Se.has(Le))return;Se.add(Le);const ve=be.getHotItem(Le);if(!ve)return;(0,w.pE)(ve.key,void 0,!0);const{hotAttr:je,sub:We}=ve;je.type===O.x.WChart&&ce.push(ve),(0,W.Z)(ve);let Ae=We;if(je.type==="rResBunch"&&je.bunch==="rbPage"&&(Ae=[],We.forEach(_e=>{var Te;((Te=be.getHotItem(_e))==null?void 0:Te.hotAttr.bunch)==="rbPage"?Me.push(_e):Ae.push(_e)})),je.type==="wBasket"&&["bDanli","bMuban"].includes(je.basket)){var we;Ae=((we=sdkStore.getHotItem(je.refRBPageKey))==null?void 0:we.sub)||[]}if(oe){const{mktCid:_e,mktUnlock:Te}=je;_e&&!Te&&Ie.addRef(_e,Le)}for(const _e of Ae)xe(_e);he&&z(Le,je,he)};for(ie!==k.$k&&Me.push(ie),Me.push(...be.getHotItem(k.$k).sub);Me.length;){const Le=Me.shift();if(!(!Le||Se.has(Le))){if(Date.now()-re>3e3){de(!1);return}xe(Le)}}de(!0)})},J=async(me,be,ie)=>{try{var oe,he;const re=Date.now();performance.mark("setupSDK:start"),ENV.IS_ON_PREMISES&&(0,M.F)();const fe=await(0,s.ur)(me),Se=fe.sdkStore.createRoSdkStore();Object.assign(globalThis,{...fe,rootSdk:fe,roSdkStore:Se}),U(fe),fe.sdkStore.subscribe(B.repaint),fe.cmtStore.subscribe(F.repaint);const Me=be&&(0,x.OB)();Me&&((0,t.nU)(fe.flatStore,be),(0,t.lb)(fe.flatStore),(0,t.th)(fe.flatStore),(0,t.Uh)(fe.flatStore),(0,t.TK)(fe.flatStore),(0,t.a3)(fe.flatStore,be)),performance.measure("setupSDK","setupSDK:start");let Ie=(oe=(0,G.Yt)(K.NF+"-"+(be==null?void 0:be.cid),"",G.qW.String).split(","))==null?void 0:oe[0];const de=((he=fe.sdkStore.getHotItem(k.$k))==null?void 0:he.sub)||[];(!Ie||!de.includes(Ie))&&(Ie=de[0]||k.$k),performance.mark("walkInitTree:start");const xe=[],Le=await Z({sdk:fe.sdkStore,rootKey:Ie,initWM:ie,convertItaAniPairList:Me?xe:void 0});(0,w.sk)(),Me&&Le&&Date.now()-re<1e4&&((0,w.Uk)(),xe.length>0&&fe.sdkStore.updateHotAttrMergeBatch(xe)),performance.measure("walkInitTree","walkInitTree:start")}catch(re){var ce;const fe=re?Number(re.status)||Number((ce=re.toString().split("status")[1])==null||(ce=ce.split(":")[1])==null?void 0:ce.split(",")[0]):void 0;console.warn("[initRootSdk]",re,fe),(0,_.p)("initRootSdk",re,{status:fe,sdkOption:me,projectBasic:be}),await(0,f.FY)({status:fe}),await new Promise(()=>{})}},te=me=>{const be=[V.h.Map100000.loadMLG()];for(const ie of me){const{chartType:oe,mapAdCode:he}=ie.hotAttr.chartConfig;if(oe==="map_chart"){const ce=V.h["Map"+he];ce.hasMLG()||be.push(ce.loadMLG())}}return Promise.all(be)},ge=me=>async be=>{let{fssDat:ie}=be;try{const oe=await ie.loadSOS();if(!oe)return;if(console.warn("[afterStoreCreate] found unsaved proj tree",oe),await MB.global.popupHelper.confirmAsync({isClose:!0,isHTML:!0,title:"\u6062\u590D\u6570\u636E",desc:["<p>\u68C0\u6D4B\u5230\u672A\u6210\u529F\u4FDD\u5B58\u5230\u4E91\u7AEF\u7684\u6587\u4EF6\u6570\u636E\uFF0C\u6700\u540E\u8BB0\u5F55\u65F6\u95F4\u4E3A\uFF1A"+(0,S.JQ)(new Date(oe.time).getTime(),"","-")+"\u3002</p>","<p>\u662F\u5426\u6062\u590D\u6570\u636E\u5230\u65B0\u6587\u4EF6\uFF1F</p>"].join(""),confirmText:"\u6062\u590D"})){const{clientData:{upperCid:ce}}=await(0,b.Nc)(oe.tree,me.team_cid,{...me,name:me.name+"-\u6062\u590D\u6570\u636E"}).catch(async re=>{await MB.global.popupHelper.alertAsync({title:"\u6062\u590D\u5931\u8D25",desc:"\u672A\u6210\u529F\u6062\u590D\u6570\u636E\u5230\u65B0\u6587\u4EF6\uFF0C\u8BF7\u91CD\u65B0\u52A0\u8F7D\u9875\u9762\u5E76\u91CD\u8BD5\u3002\u62A5\u9519\u4FE1\u606F\uFF1A"+(re.message||String(re))}),location.reload(),await(0,i.Y_)(1e9)});await ie.freeSOS(),location.href="/proto/design/"+ce}else await ie.freeSOS()}catch(oe){(0,_.p)("loadSOS err",oe)}},pe=window.Worker&&window.DecompressionStream&&window.ReadableStream&&window.location.protocol.startsWith("http"),Ce=me=>{if(!pe)return;let be,ie;return{onStatFlpak:(oe,he)=>{if(oe!==me)return;P.A.init(he);const{currentSize:ce,isFlpakSizeWarn:re}=P.A.getFlpakSizeInfo();ie=re,re&&(be="\u9879\u76EE\u4F53\u79EF\u8F83\u5927(\u7EA6"+ce+"M)\uFF0C\u8BF7\u7A0D\u7B49..."),(0,E.xd)({value:10,nextVlue:20,text:be,message:"fetched"})},onParseFlpak:oe=>{let{part:he,rate:ce}=oe;const re=ie?50:70;(0,E.xd)({value:10+Math.floor(ce*re/100),nextVlue:re+10,text:be,message:"parse-"+he})},onTransferItems:(oe,he)=>{const ce=ie?30:10;(0,E.xd)({value:90-ce+Math.floor(oe/he*ce),nextVlue:95,text:be,message:"transfer"})}}}},79581:(He,ee,e)=>{"use strict";e.d(ee,{I1:()=>r,Ij:()=>c,k0:()=>o});var n=e(67787);const r=n.Ay.div.withConfig({displayName:"styles__StyledNoMasters",componentId:"sc-1kylv5z-0"})(["margin-top:-4px;padding:0 18px;.title{color:",";font-weight:600;margin:20px 0 8px 0;}.content{display:flex;flex-direction:column;.svg-icon{color:",";width:16px;height:16px;flex-shrink:0;margin:3px 8px 0 0;}p{color:",";line-height:20px;&:nth-child(2){a{display:block;}}a{color:",";&:hover{color:",";}}}}"],I=>I.theme.color_text_L1,I=>I.theme.color_text_L3,I=>I.theme.color_text_L2,I=>I.theme.color_text_link_normal,I=>I.theme.color_text_link_hover),c=n.Ay.div.withConfig({displayName:"styles__StyledTemplateHeaderV9",componentId:"sc-1kylv5z-1"})(["position:relative;width:100%;height:40px;min-height:40px;display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;border-bottom:1px solid ",";&.isSearching{justify-content:left;padding:0 12px;}.title{max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;color:",";font-weight:500;&:lang(en){font-weight:600;}}.old_right-title{margin:auto 0 auto 12px;font-size:16px;font-weight:500;display:flex;&:after{width:1px;height:18px;content:'';display:block;background:",";margin-left:10px;}}.nav-back-icon{flex-shrink:0;margin-right:4px;svg.svg-icon{width:9px;height:14px;path{stroke:",";fill:none;}}}.search-bar{width:100%;height:100%;border:none;background:",";color:",";flex:1;margin-right:6px;.search-icon{margin-left:10px;margin-right:2px;path{fill:",";}input{margin-left:2px;}}&:hover,&.isFocus{background:",";border-color:",";}}"],I=>I.theme.color_bg_border_01,I=>I.theme.color_text_L1,I=>I.theme.color_bg_border_01,I=>I.theme.color_text_L1,I=>I.theme.color_bg_white,I=>I.theme.color_text_L3,I=>I.theme.color_text_L2,I=>I.theme.color_bg_white,I=>I.theme.color_text_link_normal),o=n.Ay.div.withConfig({displayName:"styles__StyledTemplatePanel",componentId:"sc-1kylv5z-2"})(["overflow:auto;scrollbar-width:none;width:100%;height:100%;&::-webkit-scrollbar{display:none;}.bar-vertical{top:40px;height:calc(100% - 40px);}"])},79743:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>f});var n=e(38502),r=e(53732),c=e.n(r),o=e(17307),I=e(72140),u=e(89240),d=e(67787);const C=d.Ay.div.withConfig({displayName:"styles__StyledFindResourcesCollapsePanel",componentId:"sc-1ouj5xp-0"})(["&.resources-list{&.expanded{.card-header{margin-bottom:6px;}}&:not(.expanded){.card-header{.left .arrow-16{transform:rotate(-90deg);}}}&.screen_list,&.combo-group,&.combo_group{&.noCollapse{margin-bottom:8px;.card-header{padding-left:","px;}}&.expanded .card-header{margin-bottom:8px;}.card-header{padding-left:","px;padding-right:4px;.left .arrow-16{margin-left:0;margin-top:0;}}}.card-header{height:32px;display:flex;align-items:center;justify-content:space-between;width:calc(100% - 6px);.left{max-width:77%;display:flex;align-items:center;font-size:12px;font-weight:500;color:",";cursor:pointer;.arrow-16{margin-right:6px;transition:transform 0.2s ease-in-out;path{stroke:",";}}.title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}.right{display:flex;align-items:center;height:100%;color:",";cursor:pointer;.arrow-right{width:6px;height:10px;margin-left:10px;}}&.float{position:absolute;top:119px;z-index:2;width:226px;background-color:#fff;margin-bottom:0;}}.resources-card-list{display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(auto-fill,109px);}}"],p=>p.level*12,p=>p.level*12,p=>p.theme.color_text_L1,p=>p.theme.color_text_L3,p=>p.theme.color_text_L3);var h=e(72214);const f=p=>{const{index:s=0,title:l,onClickResources:_,children:b,className:a,canCollapse:M=!0,dataCid:x="",level:g=1}=p,[S,t]=(0,n.useState)([]),v=k=>{if(!M)return;const W=JSON.parse(JSON.stringify(S));W[k]=!W[k],t(W)},w=()=>_&&_();return(0,h.jsxs)(C,{"data-cid":x,"data-key":l,className:c()("resources-list",a,{expanded:!S[s]},{noCollapse:!M}),level:g,children:[(0,h.jsxs)("div",{className:"card-header header","data-key":x,children:[(0,h.jsxs)("div",{className:"left",onClick:()=>v(s),children:[M&&(0,h.jsx)(u.A,{className:"arrow-16",size:16}),(0,h.jsx)("span",{className:"title",children:l})]}),!!_&&(0,h.jsxs)("div",{className:"right",onClick:w,children:[(0,h.jsx)("p",{children:I18N.Popups.iconCat.All}),(0,h.jsx)(o.C,{className:"arrow-right",name:"design/arrow/right"})]})]}),(0,h.jsx)(I.A,{className:"collapse-box",collapse:!!S[s],children:b})]})}},80077:(He,ee,e)=>{"use strict";e.d(ee,{O:()=>s});var n=e(53732),r=e.n(n),c=e(18381),o=e(23744),I=e(60589),u=e(81973),d=e(4235),C=e(10472),h=e(57514),i=e(67787);const f=i.Ay.div.withConfig({displayName:"styles__StyledUsedRefAppearPanel",componentId:"sc-1o788e0-0"})(["display:flex;align-items:center;margin-left:-6px;&:hover,&.is-active{.content{background-color:",";border-color:",";}.svg-icon{display:block;}}.content{padding-left:6px;display:flex;align-items:center;flex:1;height:28px;border-radius:6px;border:1px solid ",";background:",";color:",";cursor:pointer;overflow:hidden;padding-right:4px;.appear-ref-view-item{margin-right:10px;&:not(.has-opacity){flex:0 0 16px;}}span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}.svg-icon{display:none;cursor:pointer;border-radius:4px;margin-left:6px;color:",";flex:0 0 24px;&:hover{background-color:",";}}"],l=>l.theme.color_btn_secondary_hover,l=>l.theme.color_btn_secondary_hover,l=>l.theme.color_bg_border_02,l=>l.theme.color_bg_white,l=>l.theme.color_text_L1,l=>l.theme.color_text_L1,l=>l.theme.color_btn_secondary_hover);var p=e(72214);const s=l=>{var _;const{canOpenModal:b=!0}=l,a=(0,c.d4)(u.Dw),{isOpen:M,type:x}=(0,c.d4)(I.FK),g=(0,c.d4)(d.p$),{isEditingCombo:S}=(0,c.d4)(C.r),t=(0,c.wA)(),v=k=>{if(!(S||!b))if(k.stopPropagation(),M)t({type:"modal:reset:popup:state",payload:{modalName:"libPanelModal"}});else{const{left:W,top:K,height:G,right:$}=k.target.getBoundingClientRect(),P={left:W>=260?Math.max(W-240>>0,0):$+20,top:Math.max(K+G/2-340>>0,56)};t({type:"modal:update:state",payload:{libPanelModal:{isOpen:!0,type:"appear",position:P}}})}},w=()=>{if(!(a!=null&&a.key))return;const k=sdkStore.getHotItem(a==null?void 0:a.key);t({type:"entry:libStyle:del:widget:refStyles",payload:{type:"appear",selections:g,refStyle:k}}),t({type:"settings:update:currentAppearRefStyle",payload:null})};return(0,p.jsxs)(f,{className:r()("open-lib-icon",{"is-active":M&&x==="appear"}),children:[(0,p.jsxs)("div",{className:"content",onClick:v,children:[(0,p.jsx)(h.U,{appearStyle:a,index:99999}),(0,p.jsx)("span",{children:a==null||(_=a.hotAttr)==null?void 0:_.name})]}),(0,p.jsx)(o.C,{name:"setting_panel/general/clear_sl_ref",className:"clear_style_ref",size:24,onClick:w})]})}},80138:(He,ee,e)=>{"use strict";e.d(ee,{K:()=>r});var n=e(1738);const r={["v8Cmd/"+n.c.Save]:[18,18,'<path fill="#000" d="m15.33 6.57-3.91-3.92c-.2-.18-.45-.29-.72-.3H3.46a1.11 1.11 0 0 0-1.11 1.11v11.09a1.1 1.1 0 0 0 .33.78c.21.2.5.32.78.32h11.09c.29 0 .57-.12.78-.32.2-.21.32-.5.32-.79v-7.2c0-.29-.12-.57-.32-.77Zm-5.87-.94h.03-.03ZM8.34 3.6V5H5.81V3.61h2.53Zm4.88 6.28a.41.41 0 0 0-.28-.12c.1.01.19.05.26.12v.05c0 .05.02-.03 0-.05h.02Zm.13.26v.08l-.03-.08h.03Zm-1.1 2.47v1.78H5.82v-3.54h6.45v1.76Zm2.18 1.8h-.91v-4.19a.63.63 0 0 0-.22-.46.62.62 0 0 0-.45-.18h-7.7a.63.63 0 0 0-.44.18.63.63 0 0 0-.19.44v4.17h-.9V3.6h.9v2.02c0 .16.07.33.19.45.11.11.27.18.44.18H9c.17 0 .33-.07.45-.18a.65.65 0 0 0 .19-.45V3.6h.97l3.8 3.8.02 7.02Zm.83.83a.98.98 0 0 1-.53.25c.2-.03.38-.12.52-.25l.14-.2-.16.17.03.03Zm.27-.68v.14-.14Z"/>'],["v8Cmd/"+n.c.CreateNewVersion]:[18,18,'<path fill="#000" d="m15.33 6.57-3.91-3.92c-.2-.18-.45-.29-.72-.3H3.46a1.11 1.11 0 0 0-1.11 1.11v11.09a1.1 1.1 0 0 0 .33.78c.21.2.5.32.78.32h11.09c.29 0 .57-.12.78-.32.2-.21.32-.5.32-.79v-7.2c0-.29-.12-.57-.32-.77Zm-5.87-.94h.03-.03ZM8.34 3.6V5H5.81V3.61h2.53Zm4.88 6.28a.41.41 0 0 0-.28-.12c.1.01.19.05.26.12v.05c0 .05.02-.03 0-.05h.02Zm.13.26v.08l-.03-.08h.03Zm-1.1 2.47v1.78H5.82v-3.54h6.45v1.76Zm2.18 1.8h-.91v-4.19a.63.63 0 0 0-.22-.46.62.62 0 0 0-.45-.18h-7.7a.63.63 0 0 0-.44.18.63.63 0 0 0-.19.44v4.17h-.9V3.6h.9v2.02c0 .16.07.33.19.45.11.11.27.18.44.18H9c.17 0 .33-.07.45-.18a.65.65 0 0 0 .19-.45V3.6h.97l3.8 3.8.02 7.02Zm.83.83a.98.98 0 0 1-.53.25c.2-.03.38-.12.52-.25l.14-.2-.16.17.03.03Zm.27-.68v.14-.14Z"/>'],["v8Cmd/"+n.c.ViewFileInfo]:[18,18,'<g clip-path="url(#a)" fill="#000" ><path d="M9 1.85a7.15 7.15 0 1 0 0 14.3 7.15 7.15 0 0 0 0-14.3Zm0 13a5.83 5.83 0 1 1 5.83-5.83A5.83 5.83 0 0 1 9 14.83v.02Z"/><path d="M9 8.1a.86.86 0 0 0-.86.86v3.07a.86.86 0 0 0 .86.86.85.85 0 0 0 .86-.86V8.96A.85.85 0 0 0 9 8.1ZM9 6.82A.86.86 0 1 0 9 5.1a.86.86 0 0 0 0 1.72Z"/></g><defs><clipPath id="a"><path fill="#fff" transform="translate(1.85 1.85)" d="M0 0h14.3v14.3H0z"/></clipPath></defs>'],["v8Cmd/"+n.c.ProjectRename]:[18,18,'<g fill="#000" clip-path="url(#clip0_3164_596)"><path d="M3.63 3.63v10.74h10.74V9.6c0-.26.1-.46.33-.58.41-.24.95.06.95.54v4.95c0 .57-.46 1.08-1.03 1.13-.2.02-.41 0-.62 0H3.52a1.16 1.16 0 0 1-1.17-1.18V3.5c0-.58.45-1.07 1.03-1.13.2-.02.42 0 .62 0h4.47a.64.64 0 0 1 .57.92.61.61 0 0 1-.58.35H3.63Z"/><path d="m9.52 5.41-.15-.14a.59.59 0 0 1 .02-.84c.22-.22.6-.21.82.01l.13.15.05-.04 1.6-1.6a1.16 1.16 0 0 1 1.63 0l1.44 1.44a1.14 1.14 0 0 1 0 1.6l-1.6 1.6a.35.35 0 0 1-.05.04l.16.17a.59.59 0 0 1-.83.83l-.16-.17a15492.69 15492.69 0 0 1-4.03 4.05.6.6 0 0 1-.45.19H5.9a.59.59 0 0 1-.6-.6V9.9a.6.6 0 0 1 .18-.45L7.3 7.63 9.5 5.45a.3.3 0 0 1 .03-.04Zm-3.05 6.1.05.01h1.31c.03 0 .06-.02.08-.04l3.8-3.8.03-.03h-.01l-1.39-1.4-.36.37a9194.77 9194.77 0 0 1-3.5 3.51V11.52Zm7.72-6.3L12.8 3.8l-1.6 1.6 1.39 1.4 1.6-1.6Z"/></g><defs><clipPath id="clip0_3164_596"><path fill="#fff" d="M2.35 2.35h13.3v13.3H2.35z"/></clipPath></defs>'],["v8Cmd/"+n.c.ViewVersionRecord]:[18,18,'<g fill="#000" clip-path="url(#clip0_3164_636)"><path d="m4.17 5.36.08.06.68.53.05.04c.06.05.1.1.07.19-.02.07-.07.1-.14.12l-.31.08-2.23.54-.04.01c-.14.04-.23-.06-.23-.18v-.78l-.01-1.84c0-.09.01-.16.1-.2.08-.05.15 0 .21.05l.64.5.08.05.06-.08a7.13 7.13 0 0 1 6.27-2.64A7.2 7.2 0 1 1 2 11.46c-.03-.1.02-.17.11-.2l.72-.25.18-.06c.14-.05.21-.01.26.12a5.84 5.84 0 0 0 5.64 3.8 5.82 5.82 0 0 0 3.88-1.59 5.76 5.76 0 0 0 1.84-4.75 5.77 5.77 0 0 0-1.53-3.5 5.79 5.79 0 0 0-4.69-1.9c-1.7.13-3.1.84-4.19 2.15l-.06.08Z"/><path d="M9.7 7.45V9.73c0 .12-.04.2-.14.28a263.87 263.87 0 0 0-2.7 1.97.38.38 0 0 1-.21.09.3.3 0 0 1-.26-.12l-.49-.67c-.1-.14-.06-.32.09-.43l1.11-.8c.37-.28.74-.54 1.11-.8.06-.05.07-.09.07-.15V5.12a.3.3 0 0 1 .3-.28h.83a.3.3 0 0 1 .3.28v2.33Z"/></g><defs><clipPath id="clip0_3164_636"><path fill="#fff" d="M2 1.78h14v14.44H2z"/></clipPath></defs>'],["v8Cmd/"+n.c.ToggleViewShare]:[18,18,'<path fill="#000" d="m8.5 12.87-2.1-1.34c-.64.58-1.38.83-2.23.72a2.65 2.65 0 0 1-1.48-4.57 2.62 2.62 0 0 1 1.98-.73c.76.04 1.38.36 1.9.93l3.1-1.6c-.21-1.03 0-1.97.67-2.8a3.27 3.27 0 0 1 5.61 3.2 3.26 3.26 0 0 1-3.8 2.06 3.25 3.25 0 0 1-1.99-1.33L7.13 8.97c.13.5.1 1.03-.07 1.53L9.1 11.8a2.27 2.27 0 0 1 1.97-.61 2.26 2.26 0 0 1 1.5 3.53 2.29 2.29 0 0 1-4.08-1.86Zm4.37-5.27a2.04 2.04 0 1 0 0-4.08 2.05 2.05 0 1 0 0 4.08Zm-8.34 3.45a1.45 1.45 0 0 0 1.45-1.43 1.45 1.45 0 0 0-2.9-.01c0 .79.65 1.44 1.45 1.44Zm6.18 3.42c.57 0 1.04-.46 1.04-1.03a1.05 1.05 0 1 0-1.79.73 1.05 1.05 0 0 0 .74.3Z"/>'],["v8Cmd/"+n.c.CategoryCommonOperation]:[18,18,'<g fill="#000" clip-path="url(#clip0_3164_753)"><path d="m15.69 10.1-4.3-7.81a.83.83 0 0 0-1.15-.32.83.83 0 0 0-.3.32L5.62 10.1a.82.82 0 0 0 .73 1.23h8.6a.83.83 0 0 0 .73-1.23Zm-8.45-.12 3.42-6.22 3.42 6.22H7.24Z"/><path d="M11.45 12.28a.67.67 0 0 0-.9.34A3.65 3.65 0 1 1 5.77 7.8a.66.66 0 0 0 .37-.88.67.67 0 0 0-.84-.32 4.99 4.99 0 1 0 6.5 6.6.65.65 0 0 0-.34-.92Z"/></g><defs><clipPath id="clip0_3164_753"><path fill="#fff" d="M2.2 1.85H15.8v14.3H2.2z"/></clipPath></defs>'],["v8Cmd/"+n.c.Undo]:[18,18,'<g clip-path="url(#clip0_3158_857)"><path fill="#000" d="M13.88 6.63a4.52 4.52 0 0 0-3.34-1.48H5.1L6.18 4a.79.79 0 0 0 0-1 .65.65 0 0 0-1 0L2.93 5.39a1 1 0 0 0-.15.24.87.87 0 0 0 0 .57 1 1 0 0 0 .15.24l2.29 2.44a.68.68 0 0 0 .49.23c.1 0 .2-.02.29-.06a.57.57 0 0 0 .22-.16.61.61 0 0 0 .15-.24c.02-.1.02-.2 0-.29a.92.92 0 0 0 0-.28.78.78 0 0 0-.16-.24L5 6.62h5.5a3.22 3.22 0 0 1 2.38 1 3.75 3.75 0 0 1-1.05 5.87c-.4.2-.85.3-1.29.31H4.05a.64.64 0 0 0-.47.21.73.73 0 0 0-.21.52c0 .2.08.39.21.53a.66.66 0 0 0 .47.21h6.49a4.56 4.56 0 0 0 3.34-1.48 5.27 5.27 0 0 0 0-7.16Z"/></g><defs><clipPath id="clip0_3158_857"><path fill="#fff" d="M2.73 2.73h12.54v12.54H2.73z"/></clipPath></defs>'],["v8Cmd/"+n.c.Redo]:[18,18,'<g clip-path="url(#clip0_3164_711)"><path fill="#000" d="M4.12 6.63a4.52 4.52 0 0 1 3.34-1.48h5.44L11.82 4a.79.79 0 0 1 0-1 .65.65 0 0 1 1 0l2.25 2.39a1 1 0 0 1 .15.24.87.87 0 0 1 0 .57 1 1 0 0 1-.15.24l-2.29 2.44a.68.68 0 0 1-.49.23c-.1 0-.2-.02-.29-.06a.57.57 0 0 1-.22-.16.61.61 0 0 1-.15-.24.71.71 0 0 1 0-.29.92.92 0 0 1 0-.28c.04-.09.1-.17.16-.24L13 6.62H7.5a3.22 3.22 0 0 0-2.38 1 3.75 3.75 0 0 0 1.05 5.87c.4.2.85.3 1.29.31h6.49a.64.64 0 0 1 .47.21.73.73 0 0 1 .21.52c0 .2-.08.39-.21.53a.66.66 0 0 1-.47.21H7.46a4.56 4.56 0 0 1-3.34-1.48 5.27 5.27 0 0 1 0-7.16Z"/></g><defs><clipPath id="clip0_3164_711"><path fill="#fff" d="M2.73 2.73h12.54v12.54H2.73z"/></clipPath></defs>'],["v8Cmd/"+n.c.Cut]:[18,18,'<path fill="#000" d="m9.77 7.58.59.85a.16.16 0 0 0 .27 0l3.5-5.04a.61.61 0 0 0 .12-.5.67.67 0 0 0-.27-.42.62.62 0 0 0-.5-.12.68.68 0 0 0-.43.28L9.73 7.35a.16.16 0 0 0 .04.23Z"/><path fill="#000" d="M15.7 11.83a2.7 2.7 0 0 0-4.63-.47L4.95 2.62a.68.68 0 0 0-.69-.27.62.62 0 0 0-.24.11.68.68 0 0 0-.28.43.62.62 0 0 0 .12.5l4.33 6.18-1.26 1.78a2.71 2.71 0 1 0 .53 1.57L9 10.72l1.54 2.2a2.7 2.7 0 1 0 5.17-1.1Zm-9.57 1.25a1.37 1.37 0 0 1-2.16 1 1.37 1.37 0 0 1-.5-1.4c.03-.17.11-.34.22-.48a1.31 1.31 0 0 1 1.85-.35c.2.14.36.32.47.54.1.22.14.46.12.7Zm7.91.99a1.37 1.37 0 0 1-2.1-.83 1.35 1.35 0 0 1 .53-1.4c.19-.14.41-.23.65-.26h.13c.2 0 .4.04.58.13a1.3 1.3 0 0 1 .79 1.12 1.35 1.35 0 0 1-.58 1.24Z"/>'],["v8Cmd/"+n.c.Copy]:[18,18,'<g fill="#000" clip-path="url(#clip0_3164_510)"><path d="M7.73 10.63h1.69v1.69a.6.6 0 0 0 .62.62c.16 0 .32-.07.44-.18a.65.65 0 0 0 .18-.44v-1.7h1.69a.61.61 0 0 0 .44-.18.58.58 0 0 0 .18-.43.62.62 0 0 0-.62-.56h-1.7V7.73a.6.6 0 0 0-.18-.44.58.58 0 0 0-.43-.18.62.62 0 0 0-.58.38.6.6 0 0 0-.04.24v1.69h-1.7a.61.61 0 0 0-.61.62.58.58 0 0 0 .62.59Z"/><path d="M15.47 4.75c-.4-.4-.94-.64-1.5-.66a2.42 2.42 0 0 0-2.4-2.26H4.22a2.39 2.39 0 0 0-2.39 2.39v7.3c0 .61.24 1.2.65 1.64.4.43.94.7 1.51.75a2.25 2.25 0 0 0 2.25 2.25h7.6a2.25 2.25 0 0 0 2.24-2.25V6.34c.01-.6-.2-1.17-.62-1.6ZM5.23 6.34A1.06 1.06 0 0 1 6.3 5.28h7.6a1.06 1.06 0 0 1 1.04 1.06v7.59a1.06 1.06 0 0 1-1.05 1.06h-7.6a1.06 1.06 0 0 1-1.05-1.06v-7.6ZM3.06 4.23c0-.33.13-.63.35-.86.22-.22.52-.34.82-.35h7.31a1.21 1.21 0 0 1 1.2 1.07H6.27a2.25 2.25 0 0 0-2.25 2.25v6.37c-.25-.06-.49-.2-.67-.38-.19-.23-.3-.51-.3-.8v-7.3Z"/></g><defs><clipPath id="clip0_3164_510"><path fill="#fff" d="M1.88 1.83h14.25v14.35H1.88z"/></clipPath></defs>'],["v8Cmd/"+n.c.Past]:[18,18,'<mask id="path-1-outside-1_3164_553" width="15" height="15" x="1.07" y="1.07" fill="#000" maskUnits="userSpaceOnUse"><path fill="#fff" d="M1.07 1.07h15v15h-15z"/><path d="M13.74 14.94a.5.5 0 1 1 0 1h-1.98a.5.5 0 0 1 0-1h1.98Zm-3.96 0a.5.5 0 0 1 0 1H7.8a.5.5 0 0 1 0-1h1.98Zm2.29-12.87a1.98 1.98 0 0 1 1.98 1.98v.86h.32a1.55 1.55 0 0 1 1.55 1.4V6.6a.5.5 0 0 1-.98 0v-.15a.56.56 0 0 0-.57-.55h-.32v6.17a1.98 1.98 0 0 1-1.98 1.98h-6.3v.41a.55.55 0 0 0 .23.37l.07.05.08.05a.5.5 0 1 1-.55.82 1.56 1.56 0 0 1-.8-1.23l-.01-.48h-.74a1.98 1.98 0 0 1-1.98-1.98v-8a1.98 1.98 0 0 1 1.98-1.99h8.02Zm3.36 9.98a.5.5 0 0 1 .5.5v1.84c0 .07 0 .13-.02.2a.5.5 0 0 1-.98-.13.5.5 0 0 0 0-.07v-1.85a.5.5 0 0 1 .5-.5Zm-3.36-9H4.05a.99.99 0 0 0-.98.88v8.12a.99.99 0 0 0 .87 1H12.07a.99.99 0 0 0 .98-.88l.01-.11V4.05a.99.99 0 0 0-.88-.98l-.11-.01Zm3.36 5.03a.5.5 0 0 1 .5.5v1.98a.5.5 0 0 1-1 0V8.58a.5.5 0 0 1 .5-.5Zm-4.2-2.16a.6.6 0 0 1 .08.76l-.07.08-3.46 3.49a.6.6 0 0 1-.75.07l-.08-.07L4.97 8.3a.6.6 0 0 1 .75-.92l.08.07 1.56 1.54 3.04-3.07a.6.6 0 0 1 .84 0Z"/></mask><path fill="#000" d="M13.74 14.94a.5.5 0 1 1 0 1h-1.98a.5.5 0 0 1 0-1h1.98Zm-3.96 0a.5.5 0 0 1 0 1H7.8a.5.5 0 0 1 0-1h1.98Zm2.29-12.87a1.98 1.98 0 0 1 1.98 1.98v.86h.32a1.55 1.55 0 0 1 1.55 1.4V6.6a.5.5 0 0 1-.98 0v-.15a.56.56 0 0 0-.57-.55h-.32v6.17a1.98 1.98 0 0 1-1.98 1.98h-6.3v.41a.55.55 0 0 0 .23.37l.07.05.08.05a.5.5 0 1 1-.55.82 1.56 1.56 0 0 1-.8-1.23l-.01-.48h-.74a1.98 1.98 0 0 1-1.98-1.98v-8a1.98 1.98 0 0 1 1.98-1.99h8.02Zm3.36 9.98a.5.5 0 0 1 .5.5v1.84c0 .07 0 .13-.02.2a.5.5 0 0 1-.98-.13.5.5 0 0 0 0-.07v-1.85a.5.5 0 0 1 .5-.5Zm-3.36-9H4.05a.99.99 0 0 0-.98.88v8.12a.99.99 0 0 0 .87 1H12.07a.99.99 0 0 0 .98-.88l.01-.11V4.05a.99.99 0 0 0-.88-.98l-.11-.01Zm3.36 5.03a.5.5 0 0 1 .5.5v1.98a.5.5 0 0 1-1 0V8.58a.5.5 0 0 1 .5-.5Zm-4.2-2.16a.6.6 0 0 1 .08.76l-.07.08-3.46 3.49a.6.6 0 0 1-.75.07l-.08-.07L4.97 8.3a.6.6 0 0 1 .75-.92l.08.07 1.56 1.54 3.04-3.07a.6.6 0 0 1 .84 0Z"/><path stroke="#000" stroke-opacity=".4" stroke-width=".16" d="M13.74 14.94a.5.5 0 1 1 0 1h-1.98a.5.5 0 0 1 0-1h1.98Zm-3.96 0a.5.5 0 0 1 0 1H7.8a.5.5 0 0 1 0-1h1.98Zm2.29-12.87a1.98 1.98 0 0 1 1.98 1.98v.86h.32a1.55 1.55 0 0 1 1.55 1.4V6.6a.5.5 0 0 1-.98 0v-.15a.56.56 0 0 0-.57-.55h-.32v6.17a1.98 1.98 0 0 1-1.98 1.98h-6.3v.41a.55.55 0 0 0 .23.37l.07.05.08.05a.5.5 0 1 1-.55.82 1.56 1.56 0 0 1-.8-1.23l-.01-.48h-.74a1.98 1.98 0 0 1-1.98-1.98v-8a1.98 1.98 0 0 1 1.98-1.99h8.02Zm3.36 9.98a.5.5 0 0 1 .5.5v1.84c0 .07 0 .13-.02.2a.5.5 0 0 1-.98-.13.5.5 0 0 0 0-.07v-1.85a.5.5 0 0 1 .5-.5Zm-3.36-9H4.05a.99.99 0 0 0-.98.88v8.12a.99.99 0 0 0 .87 1H12.07a.99.99 0 0 0 .98-.88l.01-.11V4.05a.99.99 0 0 0-.88-.98l-.11-.01Zm3.36 5.03a.5.5 0 0 1 .5.5v1.98a.5.5 0 0 1-1 0V8.58a.5.5 0 0 1 .5-.5Zm-4.2-2.16a.6.6 0 0 1 .08.76l-.07.08-3.46 3.49a.6.6 0 0 1-.75.07l-.08-.07L4.97 8.3a.6.6 0 0 1 .75-.92l.08.07 1.56 1.54 3.04-3.07a.6.6 0 0 1 .84 0Z" mask="url(#path-1-outside-1_3164_553)"/>'],["v8Cmd/"+n.c.PastProperties]:[18,18,'<mask id="path-1-outside-1_3164_553" width="15" height="15" x="1.07" y="1.07" fill="#000" maskUnits="userSpaceOnUse"><path fill="#fff" d="M1.07 1.07h15v15h-15z"/><path d="M13.74 14.94a.5.5 0 1 1 0 1h-1.98a.5.5 0 0 1 0-1h1.98Zm-3.96 0a.5.5 0 0 1 0 1H7.8a.5.5 0 0 1 0-1h1.98Zm2.29-12.87a1.98 1.98 0 0 1 1.98 1.98v.86h.32a1.55 1.55 0 0 1 1.55 1.4V6.6a.5.5 0 0 1-.98 0v-.15a.56.56 0 0 0-.57-.55h-.32v6.17a1.98 1.98 0 0 1-1.98 1.98h-6.3v.41a.55.55 0 0 0 .23.37l.07.05.08.05a.5.5 0 1 1-.55.82 1.56 1.56 0 0 1-.8-1.23l-.01-.48h-.74a1.98 1.98 0 0 1-1.98-1.98v-8a1.98 1.98 0 0 1 1.98-1.99h8.02Zm3.36 9.98a.5.5 0 0 1 .5.5v1.84c0 .07 0 .13-.02.2a.5.5 0 0 1-.98-.13.5.5 0 0 0 0-.07v-1.85a.5.5 0 0 1 .5-.5Zm-3.36-9H4.05a.99.99 0 0 0-.98.88v8.12a.99.99 0 0 0 .87 1H12.07a.99.99 0 0 0 .98-.88l.01-.11V4.05a.99.99 0 0 0-.88-.98l-.11-.01Zm3.36 5.03a.5.5 0 0 1 .5.5v1.98a.5.5 0 0 1-1 0V8.58a.5.5 0 0 1 .5-.5Zm-4.2-2.16a.6.6 0 0 1 .08.76l-.07.08-3.46 3.49a.6.6 0 0 1-.75.07l-.08-.07L4.97 8.3a.6.6 0 0 1 .75-.92l.08.07 1.56 1.54 3.04-3.07a.6.6 0 0 1 .84 0Z"/></mask><path fill="#000" d="M13.74 14.94a.5.5 0 1 1 0 1h-1.98a.5.5 0 0 1 0-1h1.98Zm-3.96 0a.5.5 0 0 1 0 1H7.8a.5.5 0 0 1 0-1h1.98Zm2.29-12.87a1.98 1.98 0 0 1 1.98 1.98v.86h.32a1.55 1.55 0 0 1 1.55 1.4V6.6a.5.5 0 0 1-.98 0v-.15a.56.56 0 0 0-.57-.55h-.32v6.17a1.98 1.98 0 0 1-1.98 1.98h-6.3v.41a.55.55 0 0 0 .23.37l.07.05.08.05a.5.5 0 1 1-.55.82 1.56 1.56 0 0 1-.8-1.23l-.01-.48h-.74a1.98 1.98 0 0 1-1.98-1.98v-8a1.98 1.98 0 0 1 1.98-1.99h8.02Zm3.36 9.98a.5.5 0 0 1 .5.5v1.84c0 .07 0 .13-.02.2a.5.5 0 0 1-.98-.13.5.5 0 0 0 0-.07v-1.85a.5.5 0 0 1 .5-.5Zm-3.36-9H4.05a.99.99 0 0 0-.98.88v8.12a.99.99 0 0 0 .87 1H12.07a.99.99 0 0 0 .98-.88l.01-.11V4.05a.99.99 0 0 0-.88-.98l-.11-.01Zm3.36 5.03a.5.5 0 0 1 .5.5v1.98a.5.5 0 0 1-1 0V8.58a.5.5 0 0 1 .5-.5Zm-4.2-2.16a.6.6 0 0 1 .08.76l-.07.08-3.46 3.49a.6.6 0 0 1-.75.07l-.08-.07L4.97 8.3a.6.6 0 0 1 .75-.92l.08.07 1.56 1.54 3.04-3.07a.6.6 0 0 1 .84 0Z"/><path stroke="#000" stroke-opacity=".4" stroke-width=".16" d="M13.74 14.94a.5.5 0 1 1 0 1h-1.98a.5.5 0 0 1 0-1h1.98Zm-3.96 0a.5.5 0 0 1 0 1H7.8a.5.5 0 0 1 0-1h1.98Zm2.29-12.87a1.98 1.98 0 0 1 1.98 1.98v.86h.32a1.55 1.55 0 0 1 1.55 1.4V6.6a.5.5 0 0 1-.98 0v-.15a.56.56 0 0 0-.57-.55h-.32v6.17a1.98 1.98 0 0 1-1.98 1.98h-6.3v.41a.55.55 0 0 0 .23.37l.07.05.08.05a.5.5 0 1 1-.55.82 1.56 1.56 0 0 1-.8-1.23l-.01-.48h-.74a1.98 1.98 0 0 1-1.98-1.98v-8a1.98 1.98 0 0 1 1.98-1.99h8.02Zm3.36 9.98a.5.5 0 0 1 .5.5v1.84c0 .07 0 .13-.02.2a.5.5 0 0 1-.98-.13.5.5 0 0 0 0-.07v-1.85a.5.5 0 0 1 .5-.5Zm-3.36-9H4.05a.99.99 0 0 0-.98.88v8.12a.99.99 0 0 0 .87 1H12.07a.99.99 0 0 0 .98-.88l.01-.11V4.05a.99.99 0 0 0-.88-.98l-.11-.01Zm3.36 5.03a.5.5 0 0 1 .5.5v1.98a.5.5 0 0 1-1 0V8.58a.5.5 0 0 1 .5-.5Zm-4.2-2.16a.6.6 0 0 1 .08.76l-.07.08-3.46 3.49a.6.6 0 0 1-.75.07l-.08-.07L4.97 8.3a.6.6 0 0 1 .75-.92l.08.07 1.56 1.54 3.04-3.07a.6.6 0 0 1 .84 0Z" mask="url(#path-1-outside-1_3164_553)"/>'],["v8Cmd/"+n.c.ComSelectAll]:[18,18,'<path fill="#000" fill-rule="evenodd" d="M3.2 3.15v-.03h7.13c.08 0 .15 0 .23-.03a.6.6 0 0 0 .26-.98.61.61 0 0 0-.47-.2H8.98a6259 6259 0 0 0-6 0c-.63.12-1.06.65-1.04 1.25v6.87a.63.63 0 1 0 1.25 0V3.14Zm3.6 3.47h8.01V9.9a.62.62 0 0 0 .7.63c.33-.04.55-.29.55-.6V6.62A1.23 1.23 0 0 0 14.8 5.4H6.83c-.1 0-.2 0-.3.03-.6.13-.98.65-.97 1.22v6.87c0 .43.17.76.51 1 .23.18.5.25.79.25H9.4c.24-.03.46-.21.52-.46a.6.6 0 0 0-.23-.64.66.66 0 0 0-.4-.12H6.9a.9.9 0 0 1-.06 0H6.8V6.61ZM5 4.87v.1a28385.6 28385.6 0 0 1-.03 6.97.62.62 0 0 1-.6.47.62.62 0 0 1-.63-.65 7538.9 7538.9 0 0 1 0-6.06v-.79A1.24 1.24 0 0 1 5 3.65h7.16a.62.62 0 0 1 .58.4.6.6 0 0 1-.44.8 3451.98 3451.98 0 0 1-4.26.02H5Zm7.4 8.24v-.07l.02.01.03.04 1.06 1.83.16.27.35.58c.24.42.83.44 1.1.05a.64.64 0 0 0 .04-.72l-.19-.32-.09-.15-1.31-2.25a1.11 1.11 0 0 1-.04-.07l.06.02.28.17.37.22c.16.1.34.13.52.08a.63.63 0 0 0 .48-.54.63.63 0 0 0-.31-.67l-1.57-.95a618.13 618.13 0 0 1-1.27-.76.66.66 0 0 0-.56-.07.66.66 0 0 0-.46.63v3.58a.66.66 0 0 0 1.2.39.66.66 0 0 0 .12-.4 81.05 81.05 0 0 0 0-.9Z" clip-rule="evenodd"/>'],["v8Cmd/"+n.c.GlobalFind]:[18,18,'<path fill="#000" d="m14.92 14.47-1.88-2.15.1-.1a5.9 5.9 0 0 0 1.07-1.65 6.02 6.02 0 0 0 0-4.58 5.91 5.91 0 0 0-9.58-1.87 5.91 5.91 0 0 0-1.27 6.45A6 6 0 0 0 6.5 13.7a5.92 5.92 0 0 0 5.36-.42l.12-.08 1.9 2.18a.72.72 0 0 0 .98.06.68.68 0 0 0 .06-.97Zm-1.99-4.43a4.52 4.52 0 0 1-7.33 1.43 4.48 4.48 0 0 1 3.2-7.68 4.57 4.57 0 0 1 3.17 1.3 4.46 4.46 0 0 1 .96 4.94Z"/>'],["v8Cmd/"+n.c.GlobalReplace]:[18,18,'<path fill="#000" d="m14.92 14.47-1.88-2.15.1-.1a5.9 5.9 0 0 0 1.07-1.65 6.02 6.02 0 0 0 0-4.58 5.91 5.91 0 0 0-9.58-1.87 5.91 5.91 0 0 0-1.27 6.45A6 6 0 0 0 6.5 13.7a5.92 5.92 0 0 0 5.36-.42l.12-.08 1.9 2.18a.72.72 0 0 0 .98.06.68.68 0 0 0 .06-.97Zm-1.99-4.43a4.52 4.52 0 0 1-7.33 1.43 4.48 4.48 0 0 1 3.2-7.68 4.57 4.57 0 0 1 3.17 1.3 4.46 4.46 0 0 1 .96 4.94Z"/>'],["v8Cmd/"+n.c.ToggleHandTool]:[18,18,'<g clip-path="url(#clip0_3158_967)"><path fill="#000" d="M10.54 15.83a4.68 4.68 0 0 0 4.36-4.73V6.69a1.59 1.59 0 0 0-1.56-1.61h-.3v-.31a1.63 1.63 0 0 0-2.08-1.58h-.1.08A1.78 1.78 0 0 0 9.3 2.12a1.67 1.67 0 0 0-1.56 1.09l-.09.24.07-.22a1.63 1.63 0 0 0-2.16 1.54v3.21a2 2 0 0 0-.6-.09h-.05a1.8 1.8 0 0 0-.97.32 1.93 1.93 0 0 0-.5 2.63l1.28 2 .58.79a5.39 5.39 0 0 0 3.66 2.21H9.88l.65-.01Zm-.92-1.25a4.12 4.12 0 0 1-3.33-1.71l-.56-.77-1.28-2a.6.6 0 0 1 .16-.83.57.57 0 0 1 .8.14l.26.36.08.15a.63.63 0 0 0 .86.24.67.67 0 0 0 .23-.89v-4.5a.36.36 0 0 1 .35-.36.44.44 0 0 1 .44.4v4.28a.63.63 0 1 0 1.25 0V3.86a.44.44 0 0 1 .43-.45.52.52 0 0 1 .52.53V9.1a.63.63 0 1 0 1.26 0V4.77a.36.36 0 0 1 .35-.36.35.35 0 0 1 .35.36V9.1a.64.64 0 0 0 .63.65.64.64 0 0 0 .63-.65V6.69a.31.31 0 1 1 .61 0v4.41a3.41 3.41 0 0 1-3.19 3.44h-.63l-.22.04Z"/></g><defs><clipPath id="clip0_3158_967"><path fill="#fff" d="M3.1 2.12h11.8v13.76H3.1z"/></clipPath></defs>'],["v8Cmd/"+n.c.ToggleExport]:[18,18,'<g fill="#000" clip-path="url(#clip0_3164_743)"><path d="m6.15 8.94 2.23 2.57c.07.08.13.16.21.22.3.22.7.16.95-.12a302.2 302.2 0 0 1 2.9-3.35l.4-.47a.69.69 0 0 0-.14-.96.7.7 0 0 0-.97.11L9.81 9.16l-.11.13V3.01c0-.05 0-.1-.02-.15a.7.7 0 0 0-1.38.16V9.28l-.08-.09-1.96-2.26a.7.7 0 0 0-1.2.68.7.7 0 0 0 .14.24l.95 1.09Z"/><path d="M15.7 11.72a.7.7 0 1 0-1.4 0v1.05c0 .1 0 .21-.02.31-.13.7-.75 1.22-1.46 1.22H5.21c-.1 0-.2 0-.31-.03a1.48 1.48 0 0 1-1.2-1.47v-1.06a.7.7 0 0 0-.56-.71.7.7 0 0 0-.84.67v1.11a2.85 2.85 0 0 0 1.07 2.24c.52.43 1.1.64 1.77.65h7.66a2.8 2.8 0 0 0 2.17-.96c.47-.54.71-1.16.73-1.87v-1.15Z"/></g><defs><clipPath id="clip0_3164_743"><path fill="#fff" d="M2.3 2.3h13.4v13.4H2.3z"/></clipPath></defs>'],["v8Cmd/"+n.c.Preview]:[18,18,'<path fill="#000" d="M13.27 8.02 6.8 2.87a1.6 1.6 0 0 0-1.74-.2 1.64 1.64 0 0 0-.94 1.48v9.7a1.66 1.66 0 0 0 2.6 1.36l6.46-4.58a1.66 1.66 0 0 0 .1-2.64v.03Zm-.97 1.37-6.66 4.65V3.9l.26.22 6.52 5.18-.12.1Z"/>'],["v8Cmd/"+n.c.AddComponent]:[18,18,'<path fill="#000" fill-rule="evenodd" d="M9.43 1.53a.87.87 0 0 0-.86 0L2.58 4.95a.65.65 0 0 0-.33.57v6.84c0 .31.17.6.44.76l5.87 3.35c.28.16.63.15.9-.02l5.89-3.79c.25-.16.4-.43.4-.73V5.64c0-.3-.17-.6-.44-.75L9.43 1.53ZM3.56 6.4c0-.31.16-.6.44-.75l4.57-2.62c.27-.15.6-.15.86 0L14 5.65c.28.15.44.44.44.75v4.82c0 .3-.15.57-.4.73l-4.62 2.97a.87.87 0 0 1-.9.02L4 12.36a.87.87 0 0 1-.44-.76V6.4Zm1.96 1.23L8.23 9.4v3.08h1.53V9.4l2.72-1.77-.85-1.24L9 8.1 6.36 6.4l-.84 1.24Z" clip-rule="evenodd"/>'],["v8Cmd/"+n.c.CreateMaster]:[18,18,'<path fill="#000" fill-rule="evenodd" d="M7.25 4.67 9 2.92l1.75 1.75L9 6.4 7.25 4.67Zm2.5-2.86a1.07 1.07 0 0 0-1.5 0l-2.1 2.1c-.42.42-.42 1.1 0 1.51l2.1 2.1c.41.42 1.09.42 1.5 0l2.1-2.1c.42-.41.42-1.1 0-1.51l-2.1-2.1Zm1.84 7.52 1.74-1.74 1.75 1.74-1.75 1.75-1.74-1.75Zm2.5-2.85a1.07 1.07 0 0 0-1.51 0l-2.1 2.1c-.42.41-.42 1.1 0 1.51l2.1 2.1c.41.41 1.1.41 1.51 0l2.1-2.1c.41-.42.41-1.1 0-1.51l-2.1-2.1ZM9 11.58l-1.75 1.75L9 15.08l1.75-1.75L9 11.6Zm-.76-1.1c.42-.42 1.1-.42 1.52 0l2.1 2.1c.41.41.41 1.1 0 1.51l-2.1 2.1c-.42.41-1.1.41-1.52 0l-2.1-2.1a1.07 1.07 0 0 1 0-1.51l2.1-2.1ZM2.92 9l1.75-1.75L6.4 9l-1.74 1.75L2.92 9Zm2.5-2.85a1.07 1.07 0 0 0-1.51 0l-2.1 2.1c-.41.41-.41 1.09 0 1.5l2.1 2.1c.42.42 1.1.42 1.51 0l2.1-2.1c.42-.41.42-1.09 0-1.5l-2.1-2.1Z" clip-rule="evenodd"/>'],["v8Cmd/"+n.c.CreatePanel]:[18,18,'<g fill="#000" clip-path="url(#clip0_3158_1024)"><path d="M9.36 10.38h-.24c-.15 0-.3-.03-.44-.08l-.37-.12-5.74 5.09h5.84a2 2 0 0 0 1.29-.47l1.81-2.5.05-.08-2.17-1.82-.03-.02Zm.43 2.06-1 1.39c-.1.1-.24.16-.38.17H6.06l2.58-2.34h.23l.92.78ZM3.3 9.59l2.52 1.8.07.06 1.82-2.19V9c0-.15.02-.3.07-.44l.12-.37-4.91-5.51-.17-.19v5.8a2 2 0 0 0 .47 1.28l.01.02ZM7.64 9c0-.16.02-.32.07-.48l.11-.31-.11.3c-.05.16-.07.32-.07.49Zm-1.12-.22v-.25.29-.04Zm-.1 0-.76.88-1.4-1a.63.63 0 0 1-.08-.37V6l2.27 2.52-.03.26Zm-3.06.72v.06l.24.14-.19-.14V9.5a1.88 1.88 0 0 1-.23-.23c.05.08.11.16.18.23ZM8.48 7.72l.37-.07c.24-.06.48-.06.72 0l.39.14L14.9 2.9l.17-.17H9.83a2 2 0 0 0-1.28.47L6.71 5.72l1.73 2h.04Zm1.13-1.38h-.62l-.58-.66 1-1.46a.64.64 0 0 1 .38-.12h2L9.61 6.34Zm-.6.07L8.59 6l.36.41h.06Zm-.5 1.2.32-.06h.29-.29l-.32.06ZM14.93 8.39l-2.1-2-.07-.06-2.31 2 .08.38a2.13 2.13 0 0 1-.07.7l-.12.37 4.94 5.51.17.19V9.71a2 2 0 0 0-.52-1.32Zm-3.09.49.88-.77 1.23 1.18c.1.12.15.27.15.42v2.34l-2.3-2.57a2.6 2.6 0 0 0 0-.48l.04-.12Zm-.1.19a3.41 3.41 0 0 1 0-.07v.07Zm-1.31.72.1-.31-.1.3 2.62 2.92-2.62-2.91Zm3.75-.08a.74.74 0 0 0-.18-.49L12.75 8l1.27 1.22c.11.14.17.31.16.49Z"/></g><defs><clipPath id="clip0_3158_1024"><path fill="#fff" d="M2.57 2.49h12.86v13.02H2.57z"/></clipPath></defs>'],["v8Cmd/"+n.c.TogglePageTransState]:[18,18,'<g fill="#000" clip-path="url(#clip0_3158_1027)"><path d="M14.86 7.5a2.1 2.1 0 0 0-2-.54c-.74.17-1.26.63-1.53 1.35l-.03.05H3.18l-.12.01a.64.64 0 0 0-.26 1.17c.11.07.24.1.37.1h8.11a.03.03 0 0 1 .04.02v.04c.13.32.3.6.56.82.59.53 1.27.7 2.04.5a2.09 2.09 0 0 0 .94-3.52Zm-.92 2.1c-.34.32-.9.3-1.22-.05a.82.82 0 0 1 .15-1.24.9.9 0 0 1 .52-.14c.27 0 .52.13.69.39a.8.8 0 0 1-.14 1.04ZM15.3 12.93a.62.62 0 0 0-.46-.17H10.6l-.02-.05c-.27-.77-1-1.36-1.9-1.41a2.14 2.14 0 0 0-2.25 2.4c.07.49.29.9.65 1.23.55.49 1.19.67 1.9.52a2.07 2.07 0 0 0 1.62-1.42h4.37c.25-.06.42-.2.5-.45a.6.6 0 0 0-.18-.65Zm-6.15 1.05a.87.87 0 0 1-1.4-.3.83.83 0 0 1 .6-1.1c.33-.06.62.02.85.27a.8.8 0 0 1-.05 1.13ZM8.25 6.1c.54.5 1.2.7 1.92.56a2.08 2.08 0 0 0 1.56-1.25l.07-.17h3.15a.64.64 0 0 0 .54-.56.64.64 0 0 0-.67-.71h-2.95c-.09 0-.07 0-.1-.07a2.12 2.12 0 0 0-1.86-1.4 2.1 2.1 0 0 0-1.2.26 2.08 2.08 0 0 0-.46 3.34ZM9.16 4c.34-.32.9-.3 1.22.04a.82.82 0 0 1-.33 1.34c-.1.03-.2.05-.3.05a.84.84 0 0 1-.68-.33.8.8 0 0 1 .1-1.1ZM3.16 5.24H7.1V3.97H3.11a.6.6 0 0 0-.55.38.6.6 0 0 0 .1.67c.13.15.3.22.5.22ZM3.14 12.76a.64.64 0 0 0-.64.62c0 .35.28.65.63.65H5.89v-1.27H3.14Z"/></g><defs><clipPath id="clip0_3158_1027"><path fill="#fff" d="M2.5 2.5h13v13h-13z"/></clipPath></defs>'],["v8Cmd/"+n.c.TogglePanelTransState]:[18,18,'<g fill="#000" clip-path="url(#clip0_3158_1027)"><path d="M14.86 7.5a2.1 2.1 0 0 0-2-.54c-.74.17-1.26.63-1.53 1.35l-.03.05H3.18l-.12.01a.64.64 0 0 0-.26 1.17c.11.07.24.1.37.1h8.11a.03.03 0 0 1 .04.02v.04c.13.32.3.6.56.82.59.53 1.27.7 2.04.5a2.09 2.09 0 0 0 .94-3.52Zm-.92 2.1c-.34.32-.9.3-1.22-.05a.82.82 0 0 1 .15-1.24.9.9 0 0 1 .52-.14c.27 0 .52.13.69.39a.8.8 0 0 1-.14 1.04ZM15.3 12.93a.62.62 0 0 0-.46-.17H10.6l-.02-.05c-.27-.77-1-1.36-1.9-1.41a2.14 2.14 0 0 0-2.25 2.4c.07.49.29.9.65 1.23.55.49 1.19.67 1.9.52a2.07 2.07 0 0 0 1.62-1.42h4.37c.25-.06.42-.2.5-.45a.6.6 0 0 0-.18-.65Zm-6.15 1.05a.87.87 0 0 1-1.4-.3.83.83 0 0 1 .6-1.1c.33-.06.62.02.85.27a.8.8 0 0 1-.05 1.13ZM8.25 6.1c.54.5 1.2.7 1.92.56a2.08 2.08 0 0 0 1.56-1.25l.07-.17h3.15a.64.64 0 0 0 .54-.56.64.64 0 0 0-.67-.71h-2.95c-.09 0-.07 0-.1-.07a2.12 2.12 0 0 0-1.86-1.4 2.1 2.1 0 0 0-1.2.26 2.08 2.08 0 0 0-.46 3.34ZM9.16 4c.34-.32.9-.3 1.22.04a.82.82 0 0 1-.33 1.34c-.1.03-.2.05-.3.05a.84.84 0 0 1-.68-.33.8.8 0 0 1 .1-1.1ZM3.16 5.24H7.1V3.97H3.11a.6.6 0 0 0-.55.38.6.6 0 0 0 .1.67c.13.15.3.22.5.22ZM3.14 12.76a.64.64 0 0 0-.64.62c0 .35.28.65.63.65H5.89v-1.27H3.14Z"/></g><defs><clipPath id="clip0_3158_1027"><path fill="#fff" d="M2.5 2.5h13v13h-13z"/></clipPath></defs>'],["v8Cmd/"+n.c.Delete]:[18,18,'<g fill="#000" clip-path="url(#clip0_3158_1042)"><path d="M15.5 4.26a.71.71 0 0 0-.43-.14H3.04a.75.75 0 0 0-.48.18.61.61 0 0 0 0 .92c.13.11.3.18.48.18h.58v8.46a2 2 0 0 0 2.13 1.94h6.5a2 2 0 0 0 2.14-1.94v-7.3a.64.64 0 0 0-.21-.46.77.77 0 0 0-1 0 .63.63 0 0 0-.2.46v7.15a.65.65 0 0 1-.22.46 1 1 0 0 1-.24.15 1 1 0 0 1-.3.05h-6.5c-.1 0-.2-.02-.29-.05a1 1 0 0 1-.25-.15.83.83 0 0 1-.16-.21.74.74 0 0 1-.05-.25V5.26h10c.18 0 .35-.07.48-.18a.6.6 0 0 0 .21-.46.59.59 0 0 0-.16-.36Z"/><path d="M7.07 7.4a.63.63 0 0 0-.2.46v3.9a.65.65 0 0 0 .2.46c.14.11.31.18.49.18s.35-.07.48-.18a.62.62 0 0 0 .21-.46v-3.9a.64.64 0 0 0-.21-.46.77.77 0 0 0-.97 0ZM9.96 7.4a.63.63 0 0 0-.2.46v3.9a.65.65 0 0 0 .2.46.74.74 0 0 0 1 0 .62.62 0 0 0 .21-.46v-3.9a.64.64 0 0 0-.21-.46.77.77 0 0 0-1 0ZM7.56 3.62h2.89a.7.7 0 0 0 .59-.37.6.6 0 0 0-.1-.67l-.05-.05h-.05a.7.7 0 0 0-.42-.13H7.56a.68.68 0 0 0-.48.18.58.58 0 0 0-.21.45.61.61 0 0 0 .2.46c.14.1.32.15.49.13Z"/></g><defs><clipPath id="clip0_3158_1042"><path fill="#fff" d="M2.35 2.35h13.3v13.3H2.35z"/></clipPath></defs>'],["v8Cmd/"+n.c.SearchMktSource]:[18,18,'<path fill="#000" d="m14.92 14.47-1.88-2.15.1-.1a5.9 5.9 0 0 0 1.07-1.65 6.02 6.02 0 0 0 0-4.58 5.91 5.91 0 0 0-9.58-1.87 5.91 5.91 0 0 0-1.27 6.45A6 6 0 0 0 6.5 13.7a5.92 5.92 0 0 0 5.36-.42l.12-.08 1.9 2.18a.72.72 0 0 0 .98.06.68.68 0 0 0 .06-.97Zm-1.99-4.43a4.52 4.52 0 0 1-7.33 1.43 4.48 4.48 0 0 1 3.2-7.68 4.57 4.57 0 0 1 3.17 1.3 4.46 4.46 0 0 1 .96 4.94Z"/>'],["v8Cmd/"+n.c.CategoryPreference]:[18,18,'<g fill="#000" clip-path="url(#clip0_3158_1027)"><path d="M14.86 7.5a2.1 2.1 0 0 0-2-.54c-.74.17-1.26.63-1.53 1.35l-.03.05H3.18l-.12.01a.64.64 0 0 0-.26 1.17c.11.07.24.1.37.1h8.11a.03.03 0 0 1 .04.02v.04c.13.32.3.6.56.82.59.53 1.27.7 2.04.5a2.09 2.09 0 0 0 .94-3.52Zm-.92 2.1c-.34.32-.9.3-1.22-.05a.82.82 0 0 1 .15-1.24.9.9 0 0 1 .52-.14c.27 0 .52.13.69.39a.8.8 0 0 1-.14 1.04ZM15.3 12.93a.62.62 0 0 0-.46-.17H10.6l-.02-.05c-.27-.77-1-1.36-1.9-1.41a2.14 2.14 0 0 0-2.25 2.4c.07.49.29.9.65 1.23.55.49 1.19.67 1.9.52a2.07 2.07 0 0 0 1.62-1.42h4.37c.25-.06.42-.2.5-.45a.6.6 0 0 0-.18-.65Zm-6.15 1.05a.87.87 0 0 1-1.4-.3.83.83 0 0 1 .6-1.1c.33-.06.62.02.85.27a.8.8 0 0 1-.05 1.13ZM8.25 6.1c.54.5 1.2.7 1.92.56a2.08 2.08 0 0 0 1.56-1.25l.07-.17h3.15a.64.64 0 0 0 .54-.56.64.64 0 0 0-.67-.71h-2.95c-.09 0-.07 0-.1-.07a2.12 2.12 0 0 0-1.86-1.4 2.1 2.1 0 0 0-1.2.26 2.08 2.08 0 0 0-.46 3.34ZM9.16 4c.34-.32.9-.3 1.22.04a.82.82 0 0 1-.33 1.34c-.1.03-.2.05-.3.05a.84.84 0 0 1-.68-.33.8.8 0 0 1 .1-1.1ZM3.16 5.24H7.1V3.97H3.11a.6.6 0 0 0-.55.38.6.6 0 0 0 .1.67c.13.15.3.22.5.22ZM3.14 12.76a.64.64 0 0 0-.64.62c0 .35.28.65.63.65H5.89v-1.27H3.14Z"/></g><defs><clipPath id="clip0_3158_1027"><path fill="#fff" d="M2.5 2.5h13v13h-13z"/></clipPath></defs>'],["v8Cmd/"+n.c.CategoryLayoutView]:[18,18,'<g clip-path="url(#clip0_3154_473)"><path fill="#000" d="M14.15 2.83H3.85a1.6 1.6 0 0 0-1.6 1.6v9.18a1.6 1.6 0 0 0 1.6 1.6h10.3a1.6 1.6 0 0 0 1.6-1.6V4.4a1.6 1.6 0 0 0-1.6-1.58Zm-8 11.07h-2.3a.29.29 0 0 1-.3-.3V4.42a.29.29 0 0 1 .3-.3H6.1l.05 9.8Zm8.35-.3a.29.29 0 0 1-.3.3H7.4V9.46h7l.1 4.14Zm0-5.42h-7V4.11h6.75a.29.29 0 0 1 .3.3l-.05 3.77Z"/></g><defs><clipPath id="clip0_3154_473"><path fill="#fff" d="M2.25 2.81h13.5v12.37H2.25z"/></clipPath></defs>'],["v8Cmd/"+n.c.LinkDisplayChange]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1042)"><path d="M14.86 7.5a2.1 2.1 0 0 0-2-.54c-.74.17-1.26.63-1.53 1.35l-.03.05H3.18l-.12.01a.64.64 0 0 0-.26 1.17c.11.07.24.1.37.1h8.11a.03.03 0 0 1 .04.02v.04c.13.32.3.6.56.82.59.53 1.27.7 2.04.5a2.09 2.09 0 0 0 .94-3.52Zm-.92 2.1c-.34.32-.9.3-1.22-.05a.82.82 0 0 1 .15-1.24.9.9 0 0 1 .52-.14c.27 0 .52.13.69.39a.8.8 0 0 1-.14 1.04ZM15.3 12.93a.62.62 0 0 0-.46-.17H10.6l-.02-.05c-.27-.77-1-1.36-1.9-1.41a2.14 2.14 0 0 0-2.25 2.4c.07.49.29.9.65 1.23.55.49 1.19.67 1.9.52.78-.16 1.3-.62 1.6-1.36l.02-.06h4.37c.25-.06.42-.2.5-.45a.6.6 0 0 0-.18-.65Zm-6.14 1.05a.87.87 0 0 1-1.41-.3.83.83 0 0 1 .6-1.1c.33-.06.62.02.85.27a.8.8 0 0 1-.04 1.13ZM8.25 6.1c.54.5 1.2.7 1.92.56a2.08 2.08 0 0 0 1.56-1.25l.07-.17h3.15a.64.64 0 0 0 .54-.56.64.64 0 0 0-.67-.71h-2.95c-.09 0-.07 0-.1-.07a2.12 2.12 0 0 0-1.86-1.4 2.1 2.1 0 0 0-1.2.26 2.08 2.08 0 0 0-.46 3.34ZM9.16 4c.34-.32.9-.3 1.22.04a.82.82 0 0 1-.33 1.34c-.1.03-.2.05-.3.05a.84.84 0 0 1-.68-.33.8.8 0 0 1 .1-1.1ZM3.16 5.24H7.1V3.97H3.11a.6.6 0 0 0-.55.38.6.6 0 0 0 .1.67c.13.15.3.22.5.22ZM3.14 12.76a.64.64 0 0 0-.64.62c0 .35.28.65.63.65H5.89v-1.27H3.14Z"/></g><defs><clipPath id="clip0_3168_1042"><path fill="#fff" d="M2.5 2.5h13v13h-13z"/></clipPath></defs>'],["v8Cmd/"+n.c.ToggleEyedropper]:[18,18,'<path fill="#000" d="M15.27 2.74a1.96 1.96 0 0 0-2.75.16l-2 2.01-.05.05-1.35-1.3a1.43 1.43 0 0 0-1.99 0 1.4 1.4 0 0 0 0 1.98l.9.87-4.8 4.8-.13.14c-1.04 1.17-1.14 2.75-.22 3.67a2.2 2.2 0 0 0 1.58.62h.3a3.26 3.26 0 0 0 1.93-.96l4.8-4.8.9.91a1.41 1.41 0 0 0 2-2l-1.34-1.36.04-.05 2-2.01.1-.1a1.94 1.94 0 0 0 .08-2.63ZM4.5 14.59a1.06 1.06 0 0 1-.77-.3A1.55 1.55 0 0 1 4 12.24l5.2-5.2 1.76 1.83-5.08 5.09a2.1 2.1 0 0 1-1.4.64h.03Z"/>'],["v8Cmd/"+n.c.ToggleSelectMode]:[18,18,'<path fill="#000" fill-rule="evenodd" d="M3.2 3.15v-.03h7.13c.08 0 .15 0 .23-.03a.6.6 0 0 0 .26-.98.61.61 0 0 0-.47-.2H8.98a6258.98 6258.98 0 0 0-6 0c-.63.12-1.06.65-1.04 1.25v6.87a.63.63 0 1 0 1.25 0V3.2a1 1 0 0 1 0-.06Zm3.6 3.47h8.01V9.9a.62.62 0 0 0 .7.63c.33-.04.55-.29.55-.6V6.62A1.23 1.23 0 0 0 14.8 5.4H6.83c-.1 0-.2 0-.3.03-.59.13-.98.65-.97 1.22v6.87c0 .43.18.76.51 1 .23.18.5.25.79.25H9.4c.24-.03.46-.21.52-.46a.6.6 0 0 0-.23-.64.66.66 0 0 0-.4-.12H6.9a.9.9 0 0 1-.06 0H6.8V6.61ZM5 4.87v.1a28385.6 28385.6 0 0 1-.03 6.97.62.62 0 0 1-.6.47.62.62 0 0 1-.63-.65 7538.9 7538.9 0 0 1 0-6.06v-.79A1.24 1.24 0 0 1 5 3.65h7.16a.62.62 0 0 1 .58.4.6.6 0 0 1-.44.8 3451.95 3451.95 0 0 1-4.26.02H5Zm7.4 8.24v-.07l.02.01.03.04 1.06 1.83.16.27.35.58c.24.42.83.44 1.1.05a.64.64 0 0 0 .04-.72l-.19-.32-.09-.15-1.31-2.25-.03-.05v-.02l.06.02.27.17.38.22c.16.1.33.13.5.08a.63.63 0 0 0 .49-.54.63.63 0 0 0-.31-.67l-1.57-.95a803.81 803.81 0 0 1-1.27-.76.66.66 0 0 0-.56-.07.66.66 0 0 0-.46.63 424.71 424.71 0 0 0 0 3.58.66.66 0 0 0 1.2.39.66.66 0 0 0 .12-.4 86.84 86.84 0 0 0 0-.9Z" clip-rule="evenodd"/>'],["v8Cmd/"+n.c.CategoryCanvas]:[18,18,'<path fill="#000" fill-rule="evenodd" d="M3.85 2.81c-.88 0-1.6.72-1.6 1.6v9.17c0 .89.72 1.6 1.6 1.6h10.3c.88 0 1.6-.71 1.6-1.6V4.41c0-.88-.72-1.6-1.6-1.6H3.85Zm.12 2.5a.6.6 0 0 0-.6.6v7.47c0 .33.27.6.6.6h10.05a.6.6 0 0 0 .6-.6V5.9a.6.6 0 0 0-.6-.6H3.97Z" clip-rule="evenodd"/>'],["v8Cmd/"+n.c.CategoryPage]:[18,18,'<g clip-path="url(#clip0_3154_505)"><path fill="#000" d="m13.83 4.87-1.91-2.12a2 2 0 0 0-1.45-.65H5.61a2.08 2.08 0 0 0-2 2.15v9.5a2.08 2.08 0 0 0 2 2.15h6.78a2.08 2.08 0 0 0 2-2.15V6.37c0-.55-.2-1.09-.56-1.5Zm-.73 8.88a.79.79 0 0 1-.71.85H5.61a.79.79 0 0 1-.71-.85v-9.5a.79.79 0 0 1 .71-.85h3.6v2.85a1.61 1.61 0 0 0 1.55 1.65h2.34v5.85Zm0-7.15h-2.34c-.13 0-.25-.16-.25-.35V3.4a.64.64 0 0 1 .44.23l1.92 2.12c.15.17.23.4.23.62v.23Z"/></g><defs><clipPath id="clip0_3154_505"><path fill="#fff" d="M3.6 2.1h10.8v13.8H3.6z"/></clipPath></defs>'],["v8Cmd/"+n.c.CategoryLayer]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1154)"><path d="M9 2.17c.11 0 .22.04.32.1a581.6 581.6 0 0 0 4.52 2.45c.38.2.77.4 1.14.62.23.12.33.33.33.58 0 .26-.11.46-.33.58l-1.47.8-1.5.8-1.6.88-1.12.6a.6.6 0 0 1-.6-.01l-1-.54a947.61 947.61 0 0 0-3.68-2L3 6.5a.63.63 0 0 1-.33-.62c.02-.28.17-.46.41-.6.59-.3 1.16-.62 1.75-.94l1.73-.94a1872.05 1872.05 0 0 0 2.15-1.16.57.57 0 0 1 .28-.07Zm4.33 3.75-.04-.02-.7-.38-1.85-1A5416.11 5416.11 0 0 1 9 3.58l-.04.01A363.83 363.83 0 0 1 4.9 5.8l-.25.12.04.02.62.34A1436.03 1436.03 0 0 0 9 8.25l.04-.01a491.7 491.7 0 0 1 3-1.63l1.06-.57.23-.12Z"/><path d="M9 12.74a.6.6 0 0 1-.3-.08l-.89-.48a4740.74 4740.74 0 0 0-4.42-2.4l-.36-.19a.64.64 0 0 1-.35-.6c0-.25.11-.45.34-.58.18-.1.37-.1.55 0l1.5.8a1087 1087 0 0 0 3.86 2.1c.05.02.08.03.13 0a363.55 363.55 0 0 1 3.62-1.96l1.74-.94a.6.6 0 0 1 .81.25.7.7 0 0 1-.09.8c-.07.08-.16.12-.26.17l-2.44 1.33a6377.76 6377.76 0 0 1-3.18 1.72.53.53 0 0 1-.26.06Z"/><path d="M3.3 11.42c.11 0 .21.04.31.1.4.2.79.42 1.19.63l1.46.8 1.03.56 1.42.76.26.14a.05.05 0 0 0 .05 0l1.34-.72 1.38-.75 1.82-.98.83-.45c.28-.15.6-.08.78.17.24.33.14.8-.22 1l-.56.3-1.75.95-1.84 1-1.52.82c-.19.1-.38.1-.57 0a557.19 557.19 0 0 1-2.63-1.43l-1.64-.88-1.33-.72a.84.84 0 0 1-.3-.23.68.68 0 0 1 .21-1 .56.56 0 0 1 .28-.07Z"/></g><defs><clipPath id="clip0_3168_1154"><path fill="#fff" d="M2.68 2.17h12.64v13.65H2.68z"/></clipPath></defs>'],"v8Cmd/create":[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1164)"><path d="M15.7 6.16A7.28 7.28 0 0 0 2.3 11.82a7.42 7.42 0 0 0 3.87 3.86 7.23 7.23 0 0 0 7.96-1.55 7.28 7.28 0 0 0 1.55-8v.03ZM14.96 9a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"/><path d="M9.65 8.35v-3.1a.65.65 0 1 0-1.3 0v3.1h-3.1a.65.65 0 1 0 0 1.3h3.1v3.12a.65.65 0 1 0 1.3 0V9.64h3.1a.65.65 0 1 0 0-1.3h-3.1Z"/></g><defs><clipPath id="clip0_3168_1164"><path fill="#fff" d="M1.73 1.73h14.53v14.53H1.73z"/></clipPath></defs>'],["v8Cmd/"+n.c.CVector]:[18,18,'<g clip-path="url(#clip0_3154_546)"><path fill="#000" d="m15.44 10.88-1.87-1.87v-.06l-.21-3.71a1.53 1.53 0 0 0-1.25-1.43L4.16 2.39c-.1-.01-.19-.01-.28 0a1.51 1.51 0 0 0-1.07.45 1.51 1.51 0 0 0-.45 1.32l1.43 8a1.52 1.52 0 0 0 1.43 1.26l3.77.2 1.87 1.87a.68.68 0 0 0 1 0l3.59-3.59a.7.7 0 0 0-.01-1.02Zm-4.08 3.11L9.6 12.23l-3.63-.19a1 1 0 0 1-.94-.83l-1.2-6.68 3.74 3.74v.08a.93.93 0 0 0 .26.81.92.92 0 0 0 1.02.2.94.94 0 0 0 .3-1.54 1 1 0 0 0-.74-.26h-.05l-.05-.06-3.67-3.64 6.57 1.18a1 1 0 0 1 .82.94l.2 3.63 1.75 1.76-2.62 2.62Z"/></g><defs><clipPath id="clip0_3154_546"><path fill="#fff" d="M2.36 2.36h13.28v13.28H2.36z"/></clipPath></defs>'],["v8Cmd/"+n.c.OpenColorPicker]:[18,18,'<path fill="#000" d="M15.27 2.74a1.96 1.96 0 0 0-2.75.16l-2 2.01-.05.05-1.35-1.3a1.43 1.43 0 0 0-1.99 0 1.4 1.4 0 0 0 0 1.98l.9.87-4.8 4.8-.13.14c-1.04 1.17-1.14 2.75-.22 3.67a2.2 2.2 0 0 0 1.58.62h.3a3.26 3.26 0 0 0 1.93-.96l4.8-4.8.9.91a1.41 1.41 0 0 0 2-2l-1.34-1.36.04-.05 2-2.01.1-.1a1.94 1.94 0 0 0 .08-2.63ZM4.5 14.59a1.06 1.06 0 0 1-.77-.3A1.55 1.55 0 0 1 4 12.24l5.2-5.2 1.76 1.83-5.08 5.09a2.1 2.1 0 0 1-1.4.64h.03Z"/>'],["v8Cmd/"+n.c.CategoryEdit]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1231)"><path d="M3.63 3.63v10.74h10.74V9.6c0-.26.1-.46.33-.58.41-.24.95.06.95.54v4.95c0 .57-.46 1.08-1.03 1.13-.2.02-.41 0-.62 0H3.52a1.16 1.16 0 0 1-1.17-1.18V3.5c0-.58.45-1.07 1.03-1.13.2-.02.41 0 .62 0h4.47a.64.64 0 0 1 .57.92.61.61 0 0 1-.58.35H3.63Z"/><path d="m9.52 5.41-.15-.14a.59.59 0 0 1 .02-.84c.22-.22.6-.21.82.01l.13.15.05-.04 1.6-1.6a1.16 1.16 0 0 1 1.63 0l1.44 1.44a1.14 1.14 0 0 1 0 1.6l-1.6 1.6a.35.35 0 0 1-.05.04l.16.17a.59.59 0 0 1-.83.83l-.16-.17a16543.94 16543.94 0 0 1-4.03 4.05.6.6 0 0 1-.45.19H5.9a.59.59 0 0 1-.6-.6V9.9a.6.6 0 0 1 .18-.45L7.3 7.63l2.18-2.18a.3.3 0 0 1 .04-.04Zm-3.05 6.1.05.01h1.31c.03 0 .06-.02.08-.04l3.8-3.8.03-.03h-.01l-1.39-1.4-.36.37a9194.77 9194.77 0 0 1-3.5 3.51V11.52Zm7.72-6.3L12.8 3.8l-1.6 1.6 1.39 1.4 1.6-1.6Z"/></g><defs><clipPath id="clip0_3168_1231"><path fill="#fff" d="M2.35 2.35h13.3v13.3H2.35z"/></clipPath></defs>'],["v8Cmd/"+n.c.CategoryDelete]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1242)"><path d="M15.5 4.26a.71.71 0 0 0-.43-.14H3.04a.75.75 0 0 0-.48.18.61.61 0 0 0 0 .92c.13.11.3.18.48.18h.58v8.46a2 2 0 0 0 2.13 1.94h6.5a2 2 0 0 0 2.14-1.94v-7.3a.64.64 0 0 0-.21-.46.77.77 0 0 0-1 0 .63.63 0 0 0-.2.46v7.15a.65.65 0 0 1-.22.46 1 1 0 0 1-.24.15 1 1 0 0 1-.3.05h-6.5c-.1 0-.2-.02-.29-.05a1 1 0 0 1-.25-.15.83.83 0 0 1-.16-.21.74.74 0 0 1-.05-.25V5.26h10c.18 0 .35-.07.48-.18a.6.6 0 0 0 .21-.46.59.59 0 0 0-.16-.36Z"/><path d="M7.07 7.4a.63.63 0 0 0-.2.46v3.9a.65.65 0 0 0 .2.46c.14.11.31.18.49.18s.35-.07.48-.18a.62.62 0 0 0 .21-.46v-3.9a.64.64 0 0 0-.21-.46.77.77 0 0 0-.97 0ZM9.96 7.4a.63.63 0 0 0-.2.46v3.9a.65.65 0 0 0 .2.46.74.74 0 0 0 1 0 .62.62 0 0 0 .21-.46v-3.9a.64.64 0 0 0-.21-.46.77.77 0 0 0-1 0ZM7.56 3.62h2.89a.7.7 0 0 0 .59-.37.6.6 0 0 0-.1-.67l-.05-.05h-.05a.7.7 0 0 0-.42-.13H7.56a.68.68 0 0 0-.48.18.58.58 0 0 0-.21.45.61.61 0 0 0 .2.46c.14.1.32.15.49.13Z"/></g><defs><clipPath id="clip0_3168_1242"><path fill="#fff" d="M2.35 2.35h13.3v13.3H2.35z"/></clipPath></defs>'],["v8Cmd/"+n.c.CategoryIntEvents]:[18,18,'<path fill="#000" fill-rule="evenodd" d="M4.39 7A1.27 1.27 0 0 1 3.1 5.7V3.3a1.25 1.25 0 0 1 1.25-1.26h2.46a1.25 1.25 0 0 1 1.25 1.28 366.8 366.8 0 0 0 0 2.4c0 .33-.1.61-.31.85a1.2 1.2 0 0 1-.93.43H4.39Zm2.38-3.76H4.39c-.07 0-.08.01-.08.08V5.7c0 .08.02.1.1.1h2.36c.07 0 .09-.01.09-.09V3.33c0-.08-.02-.09-.1-.09Zm4.87 8.7h2.34a.84.84 0 0 1 .84.84v2.34a.84.84 0 0 1-.85.85h-2.32a.83.83 0 0 1-.85-.83V12.8c0-.33.15-.59.43-.75.13-.07.26-.1.4-.1Zm-.01-5.86c.89.7 1.44 1.61 1.68 2.72h-.7v.02l.02.02.78 1.36.16.27a9.44 9.44 0 0 1 .47.88l.01.02.59-1c.3-.52.61-1.05.94-1.57H14.72c-.03 0-.05 0-.05-.04a5.81 5.81 0 0 0-3.58-4.55 5.92 5.92 0 0 0-2.47-.44h-.03v1.35a4.55 4.55 0 0 1 3.04.96Zm-6.94 4.05a4.52 4.52 0 0 0 4.72 3.68v1.35h-.03a5.93 5.93 0 0 1-6.1-5.03H2.41c.52-.83 1-1.67 1.49-2.53l.05.08.07.12a1129.98 1129.98 0 0 1 1.24 2.07l.14.23.02.03H4.7Z" clip-rule="evenodd"/>'],["v8Cmd/"+n.c.AI3Help]:[18,18,'<g fill="#000" clip-path="url(#clip0_3154_584)"><path d="M9.7 13.63a.68.68 0 0 0-.18-.28.99.99 0 0 0-.28-.14H8.16a.9.9 0 0 0-.29.14.7.7 0 0 0-.2.26c-.03.1-.03.2 0 .29v.29a.52.52 0 0 0 0 .31c.05.11.13.2.22.28.1.06.2.11.3.14h1.07a.84.84 0 0 0 .41-.43.8.8 0 0 0 0-.31v-.3a.62.62 0 0 0 0-.3l.03.05ZM12.44 4.6c-.35-.45-.8-.82-1.32-1.07A4.9 4.9 0 0 0 9.31 3a4.42 4.42 0 0 0-2.16.38A6.1 6.1 0 0 0 5.3 4.72a.7.7 0 0 0-.2.27v.3c.04.08.1.15.15.22.07.08.17.15.28.19l.4.2a1 1 0 0 0 .66.14c.22-.06.43-.18.6-.34.25-.28.55-.5.89-.68.33-.16.7-.23 1.08-.18.3 0 .59.07.86.2.21.08.4.23.53.41.1.18.16.39.15.6 0 .21-.05.42-.15.61-.08.17-.2.32-.34.44-.15.13-.35.29-.6.47-.35.24-.68.51-1 .8-.26.3-.47.63-.62 1-.15.23-.26.49-.32.76-.04.28-.04.56 0 .84v.17c-.04.1-.04.2 0 .3.03.1.08.2.15.28a.98.98 0 0 0 .68.12h.42c.22 0 .44-.05.63-.17a.8.8 0 0 0 .3-.56v-.18a2.16 2.16 0 0 1 0-.53 1.29 1.29 0 0 1 .45-.82l.67-.48c.4-.29.7-.54.97-.78.28-.27.5-.58.68-.92.19-.43.28-.88.29-1.34a2.4 2.4 0 0 0-.48-1.45Z"/></g><defs><clipPath id="clip0_3154_584"><path fill="#fff" d="M5.1 3h7.8v12H5.1z"/></clipPath></defs>'],["v8Cmd/"+n.c.AIQ]:[18,18,'<g fill="#000" clip-path="url(#clip0_3154_590)"><path d="M14.44 3.35H3.56a1.75 1.75 0 0 0-1.71 1.79v5.47a1.75 1.75 0 0 0 1.71 1.79H6.8a.38.38 0 0 1 .32.18L8 14.06a1.16 1.16 0 0 0 2 0l.87-1.48a.38.38 0 0 1 .32-.18h3.24a1.75 1.75 0 0 0 1.71-1.79V5.14a1.75 1.75 0 0 0-1.7-1.79Zm.37 7.26a.38.38 0 0 1-.37.4H11.2a1.66 1.66 0 0 0-1.45.84L9 13.11l-.75-1.26A1.66 1.66 0 0 0 6.8 11H3.56a.38.38 0 0 1-.37-.4V5.14a.38.38 0 0 1 .37-.4h10.88a.38.38 0 0 1 .37.4v5.47Z"/><path d="M12.11 6.63a1 1 0 1 0-.14 2 1 1 0 0 0 .14-2ZM9 6.63a1 1 0 1 0-.14 2 1 1 0 0 0 .14-2ZM5.89 6.63a1 1 0 1 0-.14 2 1 1 0 0 0 .14-2Z"/></g><defs><clipPath id="clip0_3154_590"><path fill="#fff" d="M1.85 3.35h14.3v11.3H1.85z"/></clipPath></defs>'],["v8Cmd/"+n.c.AIGC]:[18,18,'<path fill="#000" d="M8.7 12.63v2.78a.7.7 0 0 1-1.39-.07v-2.78a.69.69 0 0 1 .96-.58.7.7 0 0 1 .43.65ZM5 11.02a.7.7 0 0 1 .93 1.04L4 13.98l-.05.05A.7.7 0 0 1 3.02 13l1.93-1.93.05-.05ZM4.38 8.3h.06a.7.7 0 0 1-.06 1.39H1.6a.7.7 0 0 1 .07-1.39h2.72ZM14.34 8.3h.07a.7.7 0 0 1-.07 1.39h-2.79a.69.69 0 0 1-.62-.69.7.7 0 0 1 .7-.7h2.7ZM3.03 4A.68.68 0 0 1 4 4l1.93 1.92.06.06a.7.7 0 1 1-1.05.92L3.02 5.01l-.04-.06a.69.69 0 0 1 .04-.92l.01-.02ZM12.05 4a.7.7 0 0 1 .91 1.01l-1.91 1.92-.06.05a.7.7 0 0 1-.93-1.04L11.99 4l.06-.05V4ZM8.7 2.66v2.79a.7.7 0 0 1-1.39-.07V2.6a.7.7 0 0 1 1.39.07Z"/><path fill="#000" fill-rule="evenodd" d="m14.7 14.26-3.73-3.76-.53-.53-1.42-1.42-.11-.12a1.02 1.02 0 0 0-.94-.19.95.95 0 0 0-.7.63 1 1 0 0 0 .25 1.05l.67.68.54.53 4.5 4.53.12.12a1.02 1.02 0 0 0 1.35-1.53v.01Zm-5.17-3.1L7.97 9.59a.46.46 0 0 1 0-.63.48.48 0 0 1 .66 0l.75.76.84.84-.7.6Z" clip-rule="evenodd"/>'],["v8Cmd/"+n.c.CCustomComponent]:[18,18,'<path fill="#000" d="M8.7 12.63v2.78a.7.7 0 0 1-1.39-.07v-2.78a.69.69 0 0 1 .96-.58.7.7 0 0 1 .43.65ZM5 11.02a.7.7 0 0 1 .93 1.04L4 13.98l-.05.05A.7.7 0 0 1 3.02 13l1.93-1.93.05-.05ZM4.38 8.3h.06a.7.7 0 0 1-.06 1.39H1.6a.7.7 0 0 1 .07-1.39h2.72ZM14.34 8.3h.07a.7.7 0 0 1-.07 1.39h-2.79a.69.69 0 0 1-.62-.69.7.7 0 0 1 .7-.7h2.7ZM3.03 4A.68.68 0 0 1 4 4l1.93 1.92.06.06a.7.7 0 1 1-1.05.92L3.02 5.01l-.04-.06a.69.69 0 0 1 .04-.92l.01-.02ZM12.05 4a.7.7 0 0 1 .91 1.01l-1.91 1.92-.06.05a.7.7 0 0 1-.93-1.04L11.99 4l.06-.05V4ZM8.7 2.66v2.79a.7.7 0 0 1-1.39-.07V2.6a.7.7 0 0 1 1.39.07Z"/><path fill="#000" fill-rule="evenodd" d="m14.7 14.26-3.73-3.76-.53-.53-1.42-1.42-.11-.12a1.02 1.02 0 0 0-.94-.19.95.95 0 0 0-.7.63 1 1 0 0 0 .25 1.05l.67.68.54.53 4.5 4.53.12.12a1.02 1.02 0 0 0 1.35-1.53v.01Zm-5.17-3.1L7.97 9.59a.46.46 0 0 1 0-.63.48.48 0 0 1 .66 0l.75.76.84.84-.7.6Z" clip-rule="evenodd"/>'],["v8Cmd/"+n.c.CategoryHelpCenter]:[18,18,'<g fill="#000" clip-path="url(#clip0_3154_584)"><path d="M9.7 13.63a.68.68 0 0 0-.18-.28.99.99 0 0 0-.28-.14H8.16a.9.9 0 0 0-.29.14.7.7 0 0 0-.2.26c-.03.1-.03.2 0 .29v.29a.52.52 0 0 0 0 .31c.05.11.13.2.22.28.1.06.2.11.3.14h1.07a.84.84 0 0 0 .41-.43.8.8 0 0 0 0-.31v-.3a.62.62 0 0 0 0-.3l.03.05ZM12.44 4.6c-.35-.45-.8-.82-1.32-1.07A4.9 4.9 0 0 0 9.31 3a4.42 4.42 0 0 0-2.16.38A6.1 6.1 0 0 0 5.3 4.72a.7.7 0 0 0-.2.27v.3c.04.08.1.15.15.22.07.08.17.15.28.19l.4.2a1 1 0 0 0 .66.14c.22-.06.43-.18.6-.34.25-.28.55-.5.89-.68.33-.16.7-.23 1.08-.18.3 0 .59.07.86.2.21.08.4.23.53.41.1.18.16.39.15.6 0 .21-.05.42-.15.61-.08.17-.2.32-.34.44-.15.13-.35.29-.6.47-.35.24-.68.51-1 .8-.26.3-.47.63-.62 1-.15.23-.26.49-.32.76-.04.28-.04.56 0 .84v.17c-.04.1-.04.2 0 .3.03.1.08.2.15.28a.98.98 0 0 0 .68.12h.42c.22 0 .44-.05.63-.17a.8.8 0 0 0 .3-.56v-.18a2.16 2.16 0 0 1 0-.53 1.29 1.29 0 0 1 .45-.82l.67-.48c.4-.29.7-.54.97-.78.28-.27.5-.58.68-.92.19-.43.28-.88.29-1.34a2.4 2.4 0 0 0-.48-1.45Z"/></g><defs><clipPath id="clip0_3154_584"><path fill="#fff" d="M5.1 3h7.8v12H5.1z"/></clipPath></defs>'],["v8Cmd/"+n.c.CategoryBW]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1164)"><path d="M15.7 6.16A7.28 7.28 0 0 0 2.3 11.82a7.42 7.42 0 0 0 3.87 3.86 7.23 7.23 0 0 0 7.96-1.55 7.28 7.28 0 0 0 1.55-8v.03ZM14.96 9a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"/><path d="M9.65 8.35v-3.1a.65.65 0 1 0-1.3 0v3.1h-3.1a.65.65 0 1 0 0 1.3h3.1v3.12a.65.65 0 1 0 1.3 0V9.64h3.1a.65.65 0 1 0 0-1.3h-3.1Z"/></g><defs><clipPath id="clip0_3168_1164"><path fill="#fff" d="M1.73 1.73h14.53v14.53H1.73z"/></clipPath></defs>'],["v8Cmd/"+n.c.CategoryForm]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1164)"><path d="M15.7 6.16A7.28 7.28 0 0 0 2.3 11.82a7.42 7.42 0 0 0 3.87 3.86 7.23 7.23 0 0 0 7.96-1.55 7.28 7.28 0 0 0 1.55-8v.03ZM14.96 9a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"/><path d="M9.65 8.35v-3.1a.65.65 0 1 0-1.3 0v3.1h-3.1a.65.65 0 1 0 0 1.3h3.1v3.12a.65.65 0 1 0 1.3 0V9.64h3.1a.65.65 0 1 0 0-1.3h-3.1Z"/></g><defs><clipPath id="clip0_3168_1164"><path fill="#fff" d="M1.73 1.73h14.53v14.53H1.73z"/></clipPath></defs>'],["v8Cmd/"+n.c.CategoryMultimedia]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1164)"><path d="M15.7 6.16A7.28 7.28 0 0 0 2.3 11.82a7.42 7.42 0 0 0 3.87 3.86 7.23 7.23 0 0 0 7.96-1.55 7.28 7.28 0 0 0 1.55-8v.03ZM14.96 9a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"/><path d="M9.65 8.35v-3.1a.65.65 0 1 0-1.3 0v3.1h-3.1a.65.65 0 1 0 0 1.3h3.1v3.12a.65.65 0 1 0 1.3 0V9.64h3.1a.65.65 0 1 0 0-1.3h-3.1Z"/></g><defs><clipPath id="clip0_3168_1164"><path fill="#fff" d="M1.73 1.73h14.53v14.53H1.73z"/></clipPath></defs>'],["v8Cmd/"+n.c.CategoryNavigation]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1164)"><path d="M15.7 6.16A7.28 7.28 0 0 0 2.3 11.82a7.42 7.42 0 0 0 3.87 3.86 7.23 7.23 0 0 0 7.96-1.55 7.28 7.28 0 0 0 1.55-8v.03ZM14.96 9a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"/><path d="M9.65 8.35v-3.1a.65.65 0 1 0-1.3 0v3.1h-3.1a.65.65 0 1 0 0 1.3h3.1v3.12a.65.65 0 1 0 1.3 0V9.64h3.1a.65.65 0 1 0 0-1.3h-3.1Z"/></g><defs><clipPath id="clip0_3168_1164"><path fill="#fff" d="M1.73 1.73h14.53v14.53H1.73z"/></clipPath></defs>'],["v8Cmd/"+n.c.CategoryShape]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1164)"><path d="M15.7 6.16A7.28 7.28 0 0 0 2.3 11.82a7.42 7.42 0 0 0 3.87 3.86 7.23 7.23 0 0 0 7.96-1.55 7.28 7.28 0 0 0 1.55-8v.03ZM14.96 9a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"/><path d="M9.65 8.35v-3.1a.65.65 0 1 0-1.3 0v3.1h-3.1a.65.65 0 1 0 0 1.3h3.1v3.12a.65.65 0 1 0 1.3 0V9.64h3.1a.65.65 0 1 0 0-1.3h-3.1Z"/></g><defs><clipPath id="clip0_3168_1164"><path fill="#fff" d="M1.73 1.73h14.53v14.53H1.73z"/></clipPath></defs>'],["v8Cmd/"+n.c.CategorySelected]:[18,18,'<path fill="#000" fill-rule="evenodd" d="M3.2 3.15v-.03h7.13c.08 0 .15 0 .23-.03a.6.6 0 0 0 .26-.98.61.61 0 0 0-.47-.2H8.98a6259 6259 0 0 0-6 0c-.63.12-1.06.65-1.04 1.25v6.87a.63.63 0 1 0 1.25 0V3.14Zm3.6 3.47h8.01V9.9a.62.62 0 0 0 .7.63c.33-.04.55-.29.55-.6V6.62A1.23 1.23 0 0 0 14.8 5.4H6.83c-.1 0-.2 0-.3.03-.6.13-.98.65-.97 1.22v6.87c0 .43.17.76.51 1 .23.18.5.25.79.25H9.4c.24-.03.46-.21.52-.46a.6.6 0 0 0-.23-.64.66.66 0 0 0-.4-.12H6.9a.9.9 0 0 1-.06 0H6.8V6.61ZM5 4.87v.1a28385.6 28385.6 0 0 1-.03 6.97.62.62 0 0 1-.6.47.62.62 0 0 1-.63-.65 7538.9 7538.9 0 0 1 0-6.06v-.79A1.24 1.24 0 0 1 5 3.65h7.16a.62.62 0 0 1 .58.4.6.6 0 0 1-.44.8 3451.98 3451.98 0 0 1-4.26.02H5Zm7.4 8.24v-.07l.02.01.03.04 1.06 1.83.16.27.35.58c.24.42.83.44 1.1.05a.64.64 0 0 0 .04-.72l-.19-.32-.09-.15-1.31-2.25a1.11 1.11 0 0 1-.04-.07l.06.02.28.17.37.22c.16.1.34.13.52.08a.63.63 0 0 0 .48-.54.63.63 0 0 0-.31-.67l-1.57-.95a618.13 618.13 0 0 1-1.27-.76.66.66 0 0 0-.56-.07.66.66 0 0 0-.46.63v3.58a.66.66 0 0 0 1.2.39.66.66 0 0 0 .12-.4 81.05 81.05 0 0 0 0-.9Z" clip-rule="evenodd"/>']}},80313:(He,ee,e)=>{"use strict";e.d(ee,{m:()=>r});const{XMLHttpRequest:n}=window,r=function(I,u){let{method:d="GET",headers:C,body:h,timeout:i=0,credentials:f,onUploadProgress:p,onDownloadProgress:s}=u===void 0?{}:u;return new Promise((l,_)=>{const b=(M,x)=>Object.assign(new Error(M),{status:x,url:I,method:d}),a=new n;a.onerror=()=>_(b("NETWORK_ERROR",-1)),a.ontimeout=()=>_(b("NETWORK_TIMEOUT",-1)),a.onreadystatechange=()=>{const{readyState:M,status:x}=a;M!==2||x===0||l({status:x,ok:x>=200&&x<300,...c(a,b)})},p&&a.upload&&(a.upload.onprogress=p),s&&(a.onprogress=s),a.open(d,I),C&&Object.entries(C).forEach(M=>{let[x,g]=M;return a.setRequestHeader(x,g)}),a.responseType="text",a.timeout=i||0,a.withCredentials=f==="include",a.send(h||null)})},c=(I,u)=>{let d;setTimeout(()=>{d||(d="DROP",I.abort())});const C=()=>new Promise((i,f)=>{if(d)return f(u(d==="KEEP"?"PAYLOAD_ALREADY_USED":"PAYLOAD_ALREADY_DROPPED",-1));d="KEEP",I.onload=()=>i(I.response),I.onerror=()=>f(u("PAYLOAD_ERROR",-1)),I.ontimeout=()=>f(u("PAYLOAD_TIMEOUT",-1))});return{text:C,json:()=>C().then(o)}},o=I=>JSON.parse(I)},80666:(He,ee,e)=>{"use strict";e.d(ee,{z:()=>n});let n=function(r){return r.BorderRadiusPanel="BorderRadiusPanel",r.FillPanel="FillPanel",r.BorderPanel="BorderPanel",r.BoxShadowsPanel="BoxShadowsPanel",r.TextShadowsPanel="TextShadowsPanel",r.ToolTipArrowSettingPanel="ToolTipArrowSettingPanel",r.TextStatusBarPanel="TextStatusBarPanel",r.InputTypeKeyboardPanel="InputTypeKeyboardPanel",r.ArrowSettingPanel="ArrowSettingPanel",r.QRCodeSettingPanel="QRCodeSettingPanel",r.TextPanel="TextPanel",r.DigitalStepperPanel="DigitalStepperPanel",r.IconSettingsPanel="IconSettingsPanel",r.MobileTabBarsIconPanel="MobileTabBarsIconPanel",r.SVGIconPathSettings="SVGIconPathSettings",r.IconPathSettings="IconPathSettings",r.UnifiedKeyboardPanel="UnifiedKeyboardPanel",r.CheckPanel="CheckPanel",r.TreeNodePanel="TreeNodePanel",r.UsedRefAppearPanel="UsedRefAppearPanel",r.CanShowLibPlhPanel="CanShowLibPlhPanel",r}({})},80730:(He,ee,e)=>{"use strict";e.d(ee,{G6:()=>I,Gg:()=>o,WL:()=>u});const{Blob:n,FileReader:r}=window,c=d=>C=>new Promise((h,i)=>{const f=new r;f.addEventListener("error",i),f.addEventListener("load",()=>h(f.result)),f[d](C)}),o=c("readAsText"),I=c("readAsDataURL"),u=c("readAsArrayBuffer")},80771:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>H});var n=e(18381),r=e(12211),c=e(95549),o=e(38502),I=e(53732),u=e.n(I),d=e(60407),C=e(25409),h=e(17307),i=e(16013),f=e(72214);class p extends o.PureComponent{render(){const{resources:{amount:V,discount_amount:Q},isMktMember:N,hasDiscount:L,onMemberClick:U,onBuySeparately:A}=this.props,D=L?I18N.Resources.resourcesFooter.member_discount_purchase.replace(/%price%/,Number(Q).toFixed(2)):I18N.Resources.resourcesFooter.buy_separately.replace(/%price%/,Number(V).toFixed(2));return(0,f.jsxs)(i.xk,{children:[(0,f.jsx)("div",{className:"footer-btn alone",onClick:()=>A(),children:D}),!N&&(0,f.jsxs)("div",{className:"footer-btn vip",onClick:U,children:[(0,f.jsx)(h.C,{name:"art_board/resources/mkt_vip"}),(0,f.jsx)("span",{children:I18N.Resources.resourcesFooter.free_for_member_1})]})]})}}var s=e(64966),l=e(19062),_=e(65415),b=e(77036),a=e(93413),M=e(55914),x=e(78257),g=e(11032),S=e(16335),t=e(28306),v=e(13642),w=e(88909);class k extends o.PureComponent{constructor(){var V;super(...arguments),V=this,(0,c.A)(this,"state",{searchLoading:!1,searchList:null,checkedResourceSet:new Set}),(0,c.A)(this,"handleStartTemplates",async Q=>{const{onStarTemplates:N,from:L}=this.props;N(Q)}),(0,c.A)(this,"handleTrack",(Q,N,L,U)=>{const{rootProject:A,onTrack:D}=this.props;D&&D(Q,N,L,U,A)}),(0,c.A)(this,"handleSearch",function(Q,N){N===void 0&&(N=x.lS.Detail);const{currentResources:L,mtResourcesMtItemListMap:U}=V.props,{cid:A}=L,D=U.get(A);if(V.setState({searchList:null,checkedResourceSet:new Set}),Q){const B=new RegExp((0,M.$)(Q),"i");if(D&&D.length>0){V.setState({searchLoading:!0});const j=D.filter(F=>{var Y;return B.test((Y=F.hotAttr)==null?void 0:Y.name)});setTimeout(()=>{V.setState({searchLoading:!1,searchList:j})},1e3)}}}),(0,c.A)(this,"handleBySeparately",()=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{currentResources:Q,currentOrg:N,onPaidTemplates:L,dispatch:U}=this.props;U({type:"modal:update:state",payload:{resourcePurchaseModal:{isOpen:!0,resources:Q,currentOrg:N,paidCallback:L,isFooter:!0}}})}),(0,c.A)(this,"handleMemberClick",()=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{currentResources:Q}=this.props,{category:N}=Q||{};let L="",U="";N==="combo_group"?(L="\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u7EC4\u4EF6_\u8D2D\u4E70VIP",U="workspace-v8_components_buy_vip"):N==="screen_list"?(L="\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u9875\u9762_\u8D2D\u4E70VIP",U="workspace-v8_pages_buy_vip"):(L="\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u4F1A\u5458\u7D20\u6750_\u8D2D\u4E70VIP",U="workspace-v8_template_buy_vip");const A={mode:"mat",payEntrance:L,checkoutArea:"proto",checkoutPlace:U};MB.global.popupHelper.chargeAsync(A)}),(0,c.A)(this,"handleChangeCheckedResource",Q=>{const N=new Set(this.state.checkedResourceSet);N.has(Q)?N.delete(Q):N.add(Q),this.setState({checkedResourceSet:N})}),(0,c.A)(this,"handleGetRecentData",Q=>{const{type:N,key:L}=Q,{currentResources:U,from:A}=this.props;return{isRequestRecent:!0,projectUpperType:N,projectUpperCid:U==null?void 0:U.cid,itemCid:L,from:A,isTrack:!0}}),(0,c.A)(this,"handleAddItems",()=>{var Q;const{checkedResourceSet:N}=this.state,{currentResources:L,mtResourcesMtItemListMap:U,mtResourceSdkStoreMap:A,dispatch:D,from:B}=this.props,j=U.get(L.cid),F=j==null||(Q=j.filter(X=>N.has(X.key)))==null?void 0:Q.map(X=>({...X,recent:this.handleGetRecentData(X)})),Y=A.get(L.cid);D({type:"entry:resources:quick:create:template",payload:{data:[[F,Y]]}}),D({type:"modal:update:state",payload:{templateModal:{isOpen:!1}}})}),(0,c.A)(this,"handleAddItemsAll",()=>{var Q;const{currentResources:N,mtResourcesMtItemListMap:L,mtResourceSdkStoreMap:U,dispatch:A,from:D}=this.props,B=(Q=L.get(N.cid))==null?void 0:Q.map(F=>({...F,recent:this.handleGetRecentData(F)})),j=U.get(N.cid);A({type:"entry:resources:quick:create:template",payload:{data:[[B,j]]}}),A({type:"modal:update:state",payload:{templateModal:{isOpen:!1}}})}),(0,c.A)(this,"handleSelectAll",()=>{const{currentResources:Q,mtResourcesMtItemListMap:N}=this.props,L=N.get(Q.cid),U=L==null?void 0:L.map(A=>A.key);this.setState({checkedResourceSet:new Set(U)})}),(0,c.A)(this,"handleClearAll",()=>{this.setState({checkedResourceSet:new Set})}),(0,c.A)(this,"handleOpenPreviewModal",Q=>{const{currentResources:N,mtResourcesMtItemListMap:L,dispatch:U,from:A}=this.props,D=L.get(N.cid),B=D==null?void 0:D.find(F=>F.key===Q);U({type:"modal:update:state",payload:{resourcesSnapshotPreviewModal:{isOpen:!0,type:A==="template-modal"?"page":"widget",list:D,currentTemplate:B}}})})}async componentDidMount(){const{currentResources:V,mtResourcesMtItemListMap:Q,onBack:N,dispatch:L,pagePanelFindMtResourceMap:U}=this.props,{cid:A}=V;if(!((Q==null?void 0:Q.get(A))||await(0,S.Yk)(A))){N&&N();return}L({type:"entry:resources:init:marketTemplateItemList:map",payload:{resourcesCids:[A]}});const B=U.get(V.cid);if(B){const j=new Map;j.set(B==null?void 0:B.cid,B==null?void 0:B.project_meta_cid),L({type:"entry:resources:set:mtSdkStore:map",payload:{mtResourceCidList:[B==null?void 0:B.cid],mtProjectMetaCidMap:j}})}}componentWillUnmount(){MB.commonGuideHelper.closeGuide(a.c.GUIDE_RESOURCES_SHOW),v.A.emit(w.P2,{shownMtItemCids:[]})}render(){const{currentResources:V,mtResourcesMtItemListMap:Q,className:N,onBack:L,currentUser:U,onPaidTemplates:A,onFavoriteTemplates:D,masonryColumnMoblie:B,masonryColumnWeb:j,from:F,layoutV9:Y,isFloatPreviewMkt:X}=this.props,{searchLoading:z,searchList:Z,checkedResourceSet:J}=this.state,{cid:te}=V,ge=Q.get(te),pe=!ge,Ce=Z||ge,me=Ce&&Ce.length===0,{show:be,hasDiscount:ie,isMktMember:oe}=(0,g.o3)(V,U),he=be&&!ENV.IS_MO;return(0,f.jsxs)(i.em,{className:N,children:[(0,f.jsx)(C.l,{resources:V,onBack:L,onStartTemplates:this.handleStartTemplates,onFavoriteTemplates:D,onSearch:this.handleSearch,from:F}),pe?(0,f.jsx)(d.A,{itemWidth:109,itemHeight:109}):z?(0,f.jsx)(l.S,{className:"margin-top-120",children:(0,f.jsx)("span",{children:I18N.Resources.searching.load})}):me?(0,f.jsx)(_.b,{isNeedLink:!Z}):(0,f.jsxs)(W,{list:Ce,children:[(0,f.jsx)("div",{className:u()(a.c.GUIDE_RESOURCES_SHOW+" marketTemplate-list",{showSign:he}),children:(0,f.jsx)(b.L,{isFloatPreviewMkt:X,currentResources:V,marketTemplateItemList:Ce,isShowSign:!1,onTrack:this.handleTrack,onPaidTemplates:A,masonryColumnMoblie:B,masonryColumnWeb:j,onCheckedResource:this.handleChangeCheckedResource,onOpenPreviewModal:this.handleOpenPreviewModal,canChecked:["template-modal","widget-modal"].includes(F),checkedSet:J,from:F})}),["template-modal","widget-modal"].includes(F)?(0,f.jsx)(s.W,{type:F==="template-modal"?"page":"widget",resource:V,checkedSet:J,onBuySeparately:this.handleBySeparately,onMemberClick:this.handleMemberClick,onSelectAll:this.handleSelectAll,onClearAll:this.handleClearAll,onAddItems:this.handleAddItems,onAddItemsAll:this.handleAddItemsAll}):(0,f.jsx)(f.Fragment,{children:he&&(0,f.jsx)(p,{isMktMember:oe,hasDiscount:ie,resources:V,onBuySeparately:this.handleBySeparately,onMemberClick:this.handleMemberClick,from:F})})]})]})}}(0,c.A)(k,"defaultProps",{isFloatPreviewMkt:!0});const W=O=>{let{list:V,children:Q}=O;return(0,o.useEffect)(()=>{const N=(0,t.R9)({source:"detail",list:V});v.A.emit(w.jy,{observeMtItemObj:N}),v.A.emit(w.BD)},[V]),Q};var K=e(67052),G=e(74923),$=e(70933),P=e(67588);const E=(0,r.Mz)([G.AC,$.PL,$.HW,$.wA,P.MZ,K.fm,G.SH],(O,V,Q,N,L,U,A)=>({mtResourcesMtItemListMap:O,rootProject:V,currentUser:Q,currentOrg:N,layoutV9:L,mtResourceSdkStoreMap:U,pagePanelFindMtResourceMap:A})),H=(0,n.Ng)(O=>E(O),null,null,{forwardRef:!0})(k)},80985:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>h,o:()=>C});var n=e(95549),r=e(19396),c=e.n(r),o=e(25582),I=e.n(o),u=e(38502),d=e(72214);const C=(0,u.forwardRef)((i,f)=>{let{show:p=!0,isUpdate:s=!1,children:l,onScrollChange:_,...b}=i;const[a,M]=(0,u.useState)(null),x=(0,u.useCallback)(()=>{var S;M(f==null||(S=f.current)==null?void 0:S.getBoundingClientRect())},[f==null?void 0:f.current]);(0,u.useEffect)(()=>{(p||s)&&x()},[p,s,x]);const g=c()(S=>{x(),_&&_(S)},100,{trailing:!1});return(0,d.jsx)("div",{ref:f,onScroll:g,...b,children:l(a,p)})});class h extends u.PureComponent{constructor(f){super(f),(0,n.A)(this,"setContainerRef",p=>this.$container=p),(0,n.A)(this,"updateContainerRect",()=>this.setState({containerRect:this.$container.getBoundingClientRect()})),(0,n.A)(this,"handleScroll",c()(p=>{const{onScrollChange:s}=this.props;this.updateContainerRect(),s&&s(p)},100,{trailing:!1})),this.state={containerRect:null}}componentDidMount(){this.props.show&&this.updateContainerRect()}componentDidUpdate(f){!f.show&&this.props.show&&this.updateContainerRect()}render(){const{children:f,show:p,onScrollChange:s,...l}=this.props,{containerRect:_}=this.state;return(0,d.jsx)("div",{ref:this.setContainerRef,onScroll:this.handleScroll,...l,children:f(_,p)})}}(0,n.A)(h,"propTypes",{show:I().bool,children:I().func,onScrollChange:I().func}),(0,n.A)(h,"defaultProps",{show:!0})},81122:(He,ee,e)=>{"use strict";e.d(ee,{$E:()=>d,BG:()=>u,KA:()=>C,M2:()=>I,S1:()=>h,Tk:()=>f,ZW:()=>c,Zt:()=>p,cS:()=>l,et:()=>i,sg:()=>s});var n=e(54190);if(e.j!=477)var r=e(78042);const c={projectExit:"projectExit",enterPreview:"enterPreview",enterEdit:"enterEdit",projectNameChange:"projectNameChange",loadSuccess:"loadSuccess",abarSubProjectRefresh:"abarSubProjectRefresh"},o=_=>new URLSearchParams(location.search.slice(1)).get(_),I=()=>{var _;return(_=MB.abarSubProject)==null?void 0:_.is_sub_project},u=()=>o("from")==="zboard",d=()=>o("isPreview")==="1",C=()=>{try{u()&&MB.abarIframePostMessage&&MB.abarIframePostMessage(JSON.stringify({type:c.loadSuccess,payload:{from:"prototype"}}))}catch(_){console.log("### error:",_)}},h=()=>o("tabCid"),i=_=>{MB.abarSubProject=_,MB.abarIframePostMessage=b=>{(0,r.A)(b,"*")}},f=()=>o("abarReadOnly")==="1",p=()=>o("importZbar")==="1",s=function(_,b){b===void 0&&(b={}),u()&&MB.abarIframePostMessage&&MB.abarIframePostMessage(JSON.stringify({type:_,payload:b}))},l=function(_,b,a){a===void 0&&(a=!1);try{const{type:M,payload:x}=JSON.parse(_.data);switch(M){case c.projectNameChange:if(x&&x.name&&a){const g=MB.abarSubProject;(0,n.Yu)(g.cid,{name:x.name})}break;case c.abarSubProjectRefresh:{if(a)return;try{roSdkStore.syncUpdate(),b&&b({type:"entry:preview:reload"})}catch(g){console.log("##### abar refresh error:",g)}}break}}catch(M){console.log("##### error",M)}}},82535:(He,ee,e)=>{"use strict";e.d(ee,{FO:()=>M});var n=e(38502),r=e(69623),c=e(25582),o=e.n(c),I=e(69368),u=e(39e3),d=e(39138),C=e(47617),h=e(72214);function i(S,t,v){return(t=f(t))in S?Object.defineProperty(S,t,{value:v,enumerable:!0,configurable:!0,writable:!0}):S[t]=v,S}function f(S){var t=p(S,"string");return typeof t=="symbol"?t:t+""}function p(S,t){if(typeof S!="object"||!S)return S;var v=S[Symbol.toPrimitive];if(v!==void 0){var w=v.call(S,t||"default");if(typeof w!="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(S)}const s="ModalPortal",l="IBOT_MODAL_ROOT",_=document.body,b=document.getElementById(l)||Object.assign(document.createElement("div"),{id:l});_.contains(b)||_.appendChild(b);const a=S=>S.stopPropagation();class M extends n.PureComponent{constructor(){var t;super(...arguments),t=this,i(this,"state",{isLoad:this.props.isOpen}),i(this,"portal",(0,I.ep)(b,(0,I.Hn)([s,this.props.portalClassName]))),i(this,"toggle",v=>{v?(this.props.isAnimation?setTimeout(()=>this.portal.classList.add("is-open")):this.portal.classList.add("is-open"),this.bodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden"):(this.portal.classList.remove("is-open"),document.body.style.overflow=this.bodyOverflow)}),i(this,"close",function(v){var w,k;v===void 0&&(v=!0),t.toggle(!1),(0,I.NY)(t),v&&((w=(k=t.props).onClose)==null||w.call(k))}),i(this,"open",()=>{var v,w;this.toggle(!0),(0,I.Er)(this),this.positionY(),this.focusOnInput(),(v=(w=this.props).onOpen)==null||v.call(w)}),i(this,"positionY",()=>setTimeout(()=>{const{centered:v}=this.props;if(v===!0||v===!1)return;const w=(0,I.$)(".TransitionModal",this.portal);if(!w)return;const{innerHeight:k}=window,{offsetHeight:W}=w,K=k<=W||(k-W)/2<k*.2?"add":"remove";w.classList[K]("is-v-centered")})),i(this,"focusOnInput",()=>{const{isAutoFocus:v}=this.props;if(!v)return;const w=(0,I.$)(".content input",this.portal);w&&w.focus()}),i(this,"onKeyDown",v=>{let{key:w,target:k}=v;const{canClose:W,canCloseOnEsc:K,canConfirmOnEnter:G,onConfirm:$,onCancel:P,isOpen:E}=this.props,H=!!(0,I.$)("#IBOT_SELECT_MENU_ROOT .SelectMenu.is-open");if(w==="Escape"&&!k.matches("input, textarea, select")&&!H&&E&&W&&K&&!H&&(0,I.dI)(this)===0&&(P&&this.handleCancel(),this.close(!0)),w==="Enter"&&!k.matches("textarea, button")&&!H&&E&&G&&(0,I.dI)(this)===0&&$)return this.handleConfirm()}),i(this,"onClickMask",v=>{a(v);const{canClose:w,canCloseOnClickMask:k}=this.props,W=!!(0,I.$)("#IBOT_SELECT_MENU_ROOT .SelectMenu.is-open");w&&k&&!W&&this.close(!0)}),i(this,"handleConfirm",()=>{var v;const{confirmBtnProps:w,onConfirm:k,isConfirmDisabled:W}=this.props,{onClick:K,disabled:G}=w;if(typeof k=="function"&&!W?k():typeof K=="function"&&!G&&K(),(v=w.shouldCloseOnAction)!=null?v:!0){var P;const E=(P=w.callOnClose)!=null?P:!0;this.close(E)}}),i(this,"handleCancel",()=>{var v;const{cancelBtnProps:w,onCancel:k,isCancelDisabled:W}=this.props,{onClick:K,disabled:G}=w;if(typeof k=="function"&&!W&&k(),typeof K=="function"&&!G&&K(),(v=w.shouldCloseOnAction)!=null?v:!0){var P;const E=(P=w.callOnClose)!=null?P:!0;this.close(E)}}),i(this,"handleCloseIcon",()=>{const{onClickCloseIcon:v}=this.props;typeof v=="function"&&v(),this.close(!0)}),i(this,"mergeCancelBtnProps",()=>{const{cancelBtnProps:v,isCancelDisabled:w,cancelText:k}=this.props,{handleCancel:W}=this;return{type:v.type||C.vU.type,className:(0,I.Hn)([v.className,C.vU.className]),disabled:w||v.disabled||C.vU.disabled,children:k||v.children||C.vU.children,onClick:W}}),i(this,"mergeConfirmBtnProps",()=>{const{confirmBtnProps:v,isConfirmDisabled:w,confirmText:k}=this.props,{handleConfirm:W}=this;return{type:v.type||C.tb.type,className:(0,I.Hn)([v.className,C.tb.className]),disabled:w||v.disabled||C.tb.disabled,children:k||v.children||C.tb.children,onClick:W}}),i(this,"getDefaultLayoutChildren",()=>{const v=this.getHeader(),w=this.getFooter(),k=this.getCloseIcon(),{children:W}=this.props;return(0,h.jsxs)(h.Fragment,{children:[v,(0,h.jsx)(d.xv,{className:"content",children:W}),w,k]})}),i(this,"mergeModalStyle",()=>{const{modalStyle:v,top:w,width:k,borderRadius:W}=this.props,K={};return w!==void 0&&(K.top=w),k!==void 0&&(K.width=k),W!==void 0&&(K.borderRadius=W),Object.assign({},K,v)})}componentDidMount(){this.props.isOpen&&this.open(),window.addEventListener("resize",this.positionY)}componentWillUnmount(){this.portal&&this.portal.remove(),this.close(!1),window.removeEventListener("resize",this.positionY)}componentDidUpdate(t){const{isOpen:v}=this.props;v!==t.isOpen&&(v?this.open():this.close(!0))}static getDerivedStateFromProps(t,v){const{isOpen:w}=t;return w&&!v.isLoad?{isLoad:!0}:null}getFooter(){const{footer:t,onCancel:v,onConfirm:w,renderFooterSide:k}=this.props;return(0,h.jsx)(C.jl,{footer:t,renderFooterSide:k,onConfirm:w,onCancel:v,cancelBtnProps:this.mergeCancelBtnProps(),confirmBtnProps:this.mergeConfirmBtnProps()})}getHeader(){const{title:t}=this.props;return(0,h.jsx)(C.rQ,{title:t})}getCloseIcon(){const{canClose:t,closeIcon:v}=this.props;return(0,h.jsx)(C.v,{canClose:t,closeIcon:v,onClick:this.handleCloseIcon})}renderModalDOM(){const{canClose:t,modalRender:v,mask:w,centered:k,maskChildren:W,className:K,maskClassName:G,canCloseOnClickMask:$}=this.props,{isLoad:P}=this.state;return P&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(d.En,{}),w&&(0,h.jsx)(d.aJ,{className:(0,I.Hn)(["TransitionModalMask",t&&$&&"can-close",G]),onClick:this.onClickMask,children:W}),(0,h.jsx)(d.vq,{style:this.mergeModalStyle(),className:(0,I.Hn)(["TransitionModal",k&&"is-v-centered",K]),onClick:a,children:v?v():this.getDefaultLayoutChildren()}),(0,h.jsx)(u.A,{target:document,onKeyDown:this.onKeyDown})]})}render(){const{isOpen:t,savedDomOnClose:v}=this.props;return v||t?(0,r.createPortal)(this.renderModalDOM(),this.portal):null}}i(M,"propTypes",{children:o().node,title:o().node,footer:o().node,renderFooterSide:o().func,canClose:o().bool,closeIcon:o().node,shouldCloseOnAction:o().bool,confirmText:o().string,onConfirm:o().func,isConfirmDisabled:o().bool,cancelText:o().string,onCancel:o().func,isCancelDisabled:o().bool,cancelBtnProps:o().object,confirmBtnProps:o().object,modalRender:o().func,isOpen:o().bool,centered:o().bool,mask:o().bool,savedDomOnClose:o().bool,maskChildren:o().node,isAutoFocus:o().bool,isAnimation:o().bool,canCloseOnClickMask:o().bool,canCloseOnEsc:o().bool,canConfirmOnEnter:o().bool,className:o().string,maskClassName:o().string,portalClassName:o().string,onOpen:o().func,onClose:o().func,onClickCloseIcon:o().func,modalStyle:o().object,top:o().oneOfType([o().string,o().number]),width:o().number,borderRadius:o().number}),i(M,"defaultProps",{isOpen:!1,mask:!0,isAutoFocus:!0,isAnimation:!0,className:"",maskClassName:"",portalClassName:"",canCloseOnClickMask:!0,canCloseOnEsc:!0,canConfirmOnEnter:!0,savedDomOnClose:!1,onOpen:()=>null,onClose:()=>null,canClose:!0,closeIcon:void 0,shouldCloseOnAction:!0,footer:void 0,cancelText:"\u53D6\u6D88",confirmText:"\u786E\u8BA4",cancelBtnProps:{callOnClose:!0,shouldCloseOnAction:!0},confirmBtnProps:{callOnClose:!0,shouldCloseOnAction:!0}});const x=S=>{let{isOpen:t,title:v,children:w,confirmText:k,cancelText:W,onCancel:K,onConfirm:G,confirmBtnProps:$,cancelBtnProps:P,onOpen:E,onClose:H,className:O}=S;return _jsx(ModalPro,{isOpen:t,title:v,children:w,confirmText:k,cancelText:W,onCancel:K,onConfirm:G,confirmBtnProps:$,cancelBtnProps:P,onOpen:E,onClose:H,className:O})},g=S=>{let{isOpen:t,modalRender:v,onOpen:w,onClose:k,className:W,mask:K=!0}=S;return _jsx(ModalPro,{isOpen:t,modalRender:v,onOpen:w,onClose:k,className:W,mask:K})}},82671:(He,ee,e)=>{"use strict";e.d(ee,{G3:()=>r});const n=(i,f)=>(i.message&&i.stack&&(i.stack=i.stack.replace(i.message,f)),i.message=f,i),r=i=>{throw console.warn(i),i},c=function(i,f){try{for(var p=arguments.length,s=new Array(p>2?p-2:0),l=2;l<p;l++)s[l-2]=arguments[l];return f(...s)}catch(_){return i}},o=async function(i,f){try{for(var p=arguments.length,s=new Array(p>2?p-2:0),l=2;l<p;l++)s[l-2]=arguments[l];return await f(...s)}catch(_){return i}},I=function(i){let f,p;try{for(var s=arguments.length,l=new Array(s>1?s-1:0),_=1;_<s;_++)l[_-1]=arguments[_];f=i(...l)}catch(b){p=b||new Error}return{result:f,error:p}},u=async function(i){let f,p;try{for(var s=arguments.length,l=new Array(s>1?s-1:0),_=1;_<s;_++)l[_-1]=arguments[_];f=await i(...l)}catch(b){p=b||new Error}return{result:f,error:p}},d=i=>i.then(C,h),C=i=>({result:i,error:void 0}),h=i=>({result:void 0,error:i||new Error})},82694:(He,ee,e)=>{"use strict";e.d(ee,{HA:()=>r,jb:()=>o,xV:()=>c});var n=e(27660);const r=u=>[{key:"setting",title:I18N.SettingPanel.panel,label:I18N.SettingPanel.style},{key:"main",title:I18N.Interaction.new_name,label:I18N.Interaction.new_name,disabled:!!u}],c=u=>[{key:"setting",title:I18N.SettingPanel.panel,label:I18N.SettingPanel.style},{key:"main",title:I18N.Interaction.new_name,label:I18N.Interaction.new_name,disabled:!!u}],o=(0,n.R)((u,d,C,h)=>{let{isGlobalSetting:i,isQuickCreateCanvasSetting:f,isWidgetSetting:p,isCanvasSetting:s,isBasketSetting:l,isEditingComboSetting:_,isPencilSetting:b}=u;const a=[{key:"main",title:I18N.ScreenPanel.page_setting,label:I18N.ScreenPanel.page_setting}],M=[{key:"setting",title:I18N.ScreenPanel.artboard_size,label:I18N.ScreenPanel.artboard_size}],x=r(h),g=c(h);let S=I18N.builtin.dynamic_widget_setting;if(l&&d){const k=sdkStore.getHotItem(d);if(k){const{hotAttr:{basket:W}}=k;W==="bMuban"&&(S=I18N.SettingPanel.master_settings)}}l&&C&&(S=I18N.SettingPanel.master_settings);const t=[{key:"setting",title:S,label:S}],v=[{key:"setting",title:I18N.SettingPanel.panel,label:I18N.SettingPanel.style}],w=[{key:"setting",title:I18N.SettingPanel.panel,label:I18N.SettingPanel.style},{key:"main",title:I18N.SettingPanel.design.link_event,label:I18N.SettingPanel.tab_event,disabled:!0}];return f?M:b?w:i?a:p?x:s?g:l?t:_?v:[]});function I(u){let{direction:d,distance:C=3,toolTippedWillBe:h}=u;const i={whiteSpace:"nowrap"},f=h&&h.getBoundingClientRect();if(!f)return i;const{x:p,y:s,width:l,height:_}=f;switch(d){case"left":{Object.assign(i,{top:s+_/2,left:p-C,transform:"translateX(-100%) translateY(-50%)"});break}case"right":{Object.assign(i,{top:s+_/2,left:p+l+C,transform:"translateY(-50%)"});break}case"up":{Object.assign(i,{left:p+l/2,top:s-C,transform:"translateX(-50%) translateY(-100%)"});break}case"down":Object.assign(i,{left:p+l/2,top:s+_+C,transform:"translateX(-50%)"})}return i}},82959:(He,ee,e)=>{"use strict";e.d(ee,{HA:()=>C,I8:()=>h,Iw:()=>r,JS:()=>n,O3:()=>o,Ow:()=>f,YN:()=>I,ni:()=>u});var n=function(p){return p.menu="menu",p.tile="tile",p}(n||{}),r=function(p){return p.MP_App="MP-app",p.MP_Applet="MP-applet",p.MP_H5="MP-h5",p.PC_Website="PC-web",p.PC_WebBack="PC-web_back",p.Pad="Pad",p.DS_Screen="DS-screen",p.SmartTV="smart_tv",p.HMI_IndusHmi="HMI-indus_hmi",p.HMI_Car="HMI-car",p.Watch="watch",p.Common="common",p}(r||{}),c=function(p){return p.Default="default",p.Common="common",p.Nav="nav",p.DataEntry="data-entry",p.DataShow="data-show",p.FeedBack="feed-back",p.Other="other",p}(c||{}),o=function(p){return p.Builtin="builtin",p.Resources="resources",p}(o||{});const I=()=>{const p=I18N.Resources.basic_widget,s=I18N.Resources.form_widget,l=I18N.Resources.nav_widget,_=I18N.Resources.chart_widget,b=I18N.Resources.advanced_chart_widget,a=I18N.Resources.multimedia_widget,M=I18N.Resources.shape_widget,x=I18N.Resources.flow_widget;return{basic:p,form:s,navigation:l,chart:_,advancedChart:b,multimedia:a,shape:M,flow:x}},u="\u5185\u7F6E\u7EC4\u4EF6",d=()=>{const{basic:p}=I();return{level1:u,level2:p}},C=()=>{const{basic:p,form:s,navigation:l,chart:_,advancedChart:b,multimedia:a,shape:M,flow:x}=I();return{[r.MP_App]:[p,s,l,a,_,M,x],[r.MP_Applet]:[p,s,l,a,_,M,x],[r.MP_H5]:[p,s,l,a,_,M,x],[r.PC_Website]:[p,s,l,a,_,M,x],[r.PC_WebBack]:[p,s,l,_,b,a,x],[r.Pad]:[p,_,b,a,s,l,M,x],[r.DS_Screen]:[p,_,b,a,s,l,M,x],[r.SmartTV]:[p,_,b,a,s,l,M,x],[r.HMI_IndusHmi]:[p,_,b,a,s,l,M,x],[r.HMI_Car]:[p,_,b,a,s,l,M,x],[r.Watch]:[p,_,b,a,s,l,M,x],[r.Common]:[p,_,b,a,s,l,M,x],all:[p,s,l,_,b,a,M,x]}},h="local-widget-panel-official-ui-mode",i={...r,Common:"common",WATCH_Apple:"WATCH-apple",WATCH_Android:"WATCH-android",MP_ECommerce:"MP-e_commerce",MP_Poster:"MP-poster",CAR_Car:"CAR-car",Customize:"customize",DS_Customize:"DS-customize",HMI_Customize:"HMI-customize"},f=p=>Object.values(i).includes(p)?p===i.Customize?i.Common:p===i.DS_Customize?i.DS_Screen:p===i.HMI_Customize?i.HMI_IndusHmi:p===i.CAR_Car?i.HMI_Car:[i.MP_ECommerce,i.MP_Poster].includes(p)?i.MP_App:[i.WATCH_Android,i.WATCH_Apple].includes(p)?i.Watch:p:i.Common},83485:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>P,X:()=>$});var n=e(95549),r=e(38502),c=e(74222),o=e(3877),I=e(67787);const u=I.Ay.div.withConfig({displayName:"styles__StyledLinkTypeSelect",componentId:"sc-lmbucw-0"})(['display:flex;align-items:center;justify-content:space-between;padding:0 16px;.placeholder-style{[type="button"]{span{color:',";}}}.link-opener-wrapper{flex:1;& > button{width:100%;}}.link-type-select{width:100%;}.link-title{display:flex;color:",";}"],E=>E.theme.color_proto,E=>E.theme.color_text_L3),d=I.Ay.div.withConfig({displayName:"styles__StyledScrollToTip",componentId:"sc-lmbucw-1"})(['position:absolute;top:-122px;left:-35px;width:196px;background:#454647;color:#fff;flex-direction:column;justify-content:space-around;padding:12px 16px;border-radius:6px;z-index:1;&.no-scroll{top:-102px;}&::before{content:"";position:absolute;top:100%;left:19%;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #454647;}p{font-weight:400;line-height:20px;}']);var C=e(95106),h=e(39695),i=e(76613),f=e(40486),p=e(33515),s=e(53732),l=e.n(s),_=e(17307),b=e(6566),a=e(79209),M=e(13172),x=e(88959),g=e(72214);const{LinkToCanvas:S,OpenOverlay:t,SwapOverlay:v,SetVariableValue:w,ConditionalBranches:k,OpenExternalUrl:W}=h.O2;class K extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"LINK_TYPE_OPTIONS",(0,f.gu)()),(0,n.A)(this,"isFree",(0,a._S)()),(0,n.A)(this,"handleGetLinkTypeOptions",()=>{const{isEditingCombo:H,supTreeNode:O}=this.props;return this.LINK_TYPE_OPTIONS.map(V=>H&&[S,t,v,w,k].some(Q=>Q===V.value)||this.isFree&&V.value===W?{...V,isDisabled:!0}:V).filter(V=>!((O==null?void 0:O.type)==="branch"&&V.value===h.O2.ConditionalBranches))}),(0,n.A)(this,"handleSelect",H=>{if(H.currentTarget.classList.contains("disabled"))return;const{action:O}=H.currentTarget.dataset;this.props.onSelect(O)})}render(){const{currentInteractionType:H}=this.props,O=this.handleGetLinkTypeOptions();return(0,g.jsx)(b.A,{children:(0,g.jsx)("ul",{children:O.map((V,Q)=>{const N=V.value===H,L=V.type==="divider",U=l()({gesture:V.type!=="divider",current:N,disabled:V.isDisabled,"shake-divider":L,"is-active":N}),A=(0,g.jsxs)("li",{role:V.type!=="divider"?"option":"","data-action":V.value,className:U,"data-microtip-position":"left",onClick:this.handleSelect,children:[N&&(0,g.jsx)(_.C,{name:"common/checked",className:"checked display-gesture"}),!L&&(0,g.jsx)(_.C,{name:"interaction/action/"+V.value,className:"display-gesture"}),!L&&(0,g.jsx)("p",{children:V.label})]},Q);return this.isFree&&V.value===W?(0,g.jsx)(M.A,{title:(0,g.jsx)(x.A,{desc:"\u7F16\u8F91\u533A-v8_\u8DF3\u8F6C\u94FE\u63A5\u4EA4\u4E92"}),zIndex:1200,children:A}):A})})})}}let G=null;const $=()=>{setTimeout(()=>{var E;(E=G)==null||E.open()},100)};class P extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"setDropdownRef",H=>{G=H}),(0,n.A)(this,"LINK_TYPE_OPTIONS",(0,f.gu)()),(0,n.A)(this,"handleLinkType",H=>{const O=Number(H);this.props.onChange(O,"interactionType")}),(0,n.A)(this,"showScrollToInteractionTip",()=>{const{isDummy:H,link:O}=this.props;if(H||O.data.interactionType!==h.O2.ScrollTo)return null;try{const V=O.targetWidgetKey===i.rE?O.triggerItemKey:O.targetWidgetKey===i.VZ?(0,C.JC)(sdkStore,O.triggerItemKey):O.targetWidgetKey,Q=(0,C.Ik)(sdkStore,V||"")||sdkStore.locUpColdCanvasKey(V||""),N=sdkStore.getHotItem(Q||"");if(!N)return null;let L=!0,U=!0;if(N.hotAttr.type==="wBasket")L=N.hotAttr.scroll===2||N.hotAttr.scroll===3,U=N.hotAttr.scroll===2||N.hotAttr.scroll===4;else if(N.hotAttr.type==="rResCanvas"&&!N.hotAttr.asOverlay){const B=sdkStore.getHotItem(N.sup);if(!B)return null;B.sup===c.fW?(L=B.hotAttr.scroll===2||B.hotAttr.scroll===3,U=B.hotAttr.scroll===2||B.hotAttr.scroll===4):(L=B.hotAttr.deviceScroll==="vertical"||B.hotAttr.deviceScroll==="auto",U=B.hotAttr.deviceScroll==="horizontal"||B.hotAttr.deviceScroll==="auto")}let A=null,D="";return!L&&!U?(A=I18N.SettingPanel.no_scroll_tip,D="no-scroll"):!L&&O.data.scrollToDir!=="horizontal"?A=I18N.SettingPanel.no_vertical_scroll_tip:!U&&O.data.scrollToDir!=="vertical"&&(A=I18N.SettingPanel.no_horizontal_scroll_tip),A?(0,g.jsx)(o.A,{className:"fixed-reminder-tips",renderContent:()=>(0,g.jsx)(d,{className:D,children:(0,g.jsx)("p",{children:A})})}):null}catch(V){return null}})}componentWillUnmount(){G=null}render(){const{link:H,isDummy:O,isEditingCombo:V,supTreeNode:Q}=this.props;return(0,g.jsxs)(u,{className:"link-type height-32 title-content",children:[(0,g.jsxs)("p",{className:"link-title",children:[(0,g.jsx)("span",{children:I18N.SettingPanel.link_action}),this.showScrollToInteractionTip()]}),(0,g.jsx)(p.Ay,{isPosition2:!0,ref:this.setDropdownRef,menux:"left",isPlaceholder:O,title:O?I18N.Interaction.ita_please:(0,f.Qe)(H.data.interactionType),icon:O?null:(0,g.jsx)(_.C,{size:16,name:"interaction/action/"+H.data.interactionType}),className:"link-type-select link-drop-action-list",renderMenu:(0,g.jsx)(K,{currentInteractionType:O?-1:H.data.interactionType,onSelect:this.handleLinkType,isEditingCombo:V,supTreeNode:Q})})]})}}},83565:(He,ee,e)=>{"use strict";e.d(ee,{s:()=>ss});var n=e(72274),r=e(25942);const c={viewportRect:null,screenListRect:null};function o(le,At){le===void 0&&(le=c);let{type:Pt,payload:Re}=At;switch(Pt){case"dom:update:state":return{...le,...Re};default:return le}}var I=e(78235),u=e(15515),d=e(28681);const C={isSpaceDown:!1,isKeySDown:!1,isCtrlDown:!1,isAltDown:!1,isShiftDown:!1,isShowLess12Mark:!1},h={keyFlags:C,isDraggingItem:!1,isResizingItem:!1,isDraggingCanvas:!1,isShowRadiusResizer:!1,isResizingRadius:!1,isHideSelectionBorder_Resizer:!1,isInPreview:!1,isHideResizer:!1,isDeleteRulerLine:!1,isInChatModal:!1,isStartCreatingCanvas:!1,isShowLess12Mark:!(0,u.Yt)(d.MQ,null,u.qW.Boolean)};function i(le,At){le===void 0&&(le=h);let{type:Pt,payload:Re}=At;switch(Pt){case"reducer:flag:update-state":return(0,I.O1)(le,Re);case"set:key:flags":return{...le,keyFlags:{...C,...Re}};case"set:key:keyFlags":return{...le,keyFlags:{...le.keyFlags,...Re}};case"reset:key:flags":return{...le,keyFlags:{...C}};case"reducer:flag:set:is-dragging-item":return{...le,isDraggingItem:Re.isDraggingItem};case"reducer:flag:set:is-resizing-item":return{...le,isResizingItem:Re.isResizingItem};case"reducer:flag:set:is-dragging-canvas":return{...le,isDraggingCanvas:Re.isDraggingCanvas};case"reducer:flag:set:is-selection-border-resizer":return{...le,isHideSelectionBorder_Resizer:Re.isHideSelectionBorder_Resizer};case"reducer:flag:set:is-show-resizer":return{...le,isHideResizer:Re.isHideResizer};case"reducer:flag:set-isResizingRadius":return{...le,isResizingRadius:Re.isResizingRadius};case"reducer:flag:set-isShowRadiusResizer":return{...le,isShowRadiusResizer:Re.isShowRadiusResizer};case"reducer:flag:is-in-chatGPT":return{...le,isInChatModal:Re.isInChatModal};default:return le}}var f=e(81122);const p={rootProject:null,currentProject:null,currentProjectMeta:null,currentUser:null,designOptions:{},currentScreenOriginOffset:null,currentProjectShare:null,currentOrg:{},personalOrg:null,currentTeam:null,orgList:[],sharings:[],sharingInReadOnly:null,currentScreen:null,currentDrawioEditorItem:null,editingComboPageKey:"",user_fcg:null,org_fcg:null,comboCurrentProject:null,comboCurrentProjectMeta:null,currentSpace:{},importAbarOptions:{isFromAbar:(0,f.BG)(),fromAbarIsReadOnly:(0,f.Tk)(),isImportAbar:(0,f.Zt)(),fromAbarIsPreview:(0,f.$E)(),tabCid:(0,f.S1)()}};function s(le,At){le===void 0&&(le=p);const{type:Pt,payload:Re}=At;switch(Pt){case"current:update:state":return{...le,...Re};case"set:current:project":return{...le,currentProject:Re.project};case"update:design:options":return{...le,designOptions:Re.designOptions};case"update:org:member:list":{const{orgMembers:yt}=Re;return{...le,currentOrg:{...le.currentOrg,members:yt}}}case"set:current:user":return{...le,currentUser:{...le.currentUser,...Re.user}};case"set:current:org":return{...le,currentOrg:{...le.currentOrg,...Re.org}};case"set:current:personal:org":return{...le,personalOrg:{...le.personalOrg,...Re.org}};case"set:current:drawio:editor:item":return{...le,currentDrawioEditorItem:Re.hotItem};default:return le}}var l=e(6861);const _={saving:!1,isShowSharingManager:!1,projShareToEdit:"",canToggleSticky:!0,isShowSticky:!0,canPaste:!1,refresh:null};function b(le,At){var Pt;le===void 0&&(le=_);const{type:Re,payload:yt}=At;switch(Re){case"toolbar:update:state":return{...le,...yt};case"set:saving":return le.saving===yt.saving?le:{...le,saving:yt.saving};case"toolbar:sharingManager:open":return{...le,isShowSharingManager:!0};case"toolbar:sharingManager:toggle":return{...le,isShowSharingManager:!le.isShowSharingManager};case"toolbar:isShowSticky:toggle":return{...le,isShowSticky:(Pt=yt==null?void 0:yt.isShowSticky)!=null?Pt:!le.isShowSticky};default:return le}}var a=e(31222),M=e(78257);const x="resources_collapse_panel_set",g=(0,u.Yt)(x,[],u.qW.Array),S=[M.lS.Template,M.lS.Icon,M.lS.Builtin,M.lS.State,M.lS.Asset,M.lS.Page,M.lS.History,M.lS.Search],t={currentPopupPanel:M.lS.Directory,panelOrder:S,hotKeyWords:[],mtResourcesMtItemListMap:new Map,mtResourceSdkStoreMap:new Map,mtResourcesMap:new Map,editingCid:"",assetUploadState:"close",assetUpload:{index:0,indexMax:0,assetUploaderFailure:[]},collapsePanelSet:new Set(g),showGlobalHeader:!0,isVersionModalClosed:!1,popupLoaded:{isHotKeyWordsLoaded:!1,isFilterWordsLoaded:!1},paramStarMtCid:""};function v(le,At){le===void 0&&(le=t);const{type:Pt,payload:Re}=At;switch(Pt){case"update:popups:state":return{...le,...Re};case"set:current:popup:panel":{const{name:yt}=Re;return(0,u.a0)("popups_show",!!yt,u.qW.Boolean),{...le,currentPopupPanel:yt}}case"close:popup:panel":return{...le,currentPopupPanel:null};case"exalt:panel:order":{const yt=le.panelOrder,{name:Dt}=Re,Xt=yt.indexOf(Dt),Xn=[...yt];return Xn.splice(Xt,1),Xn.push(Dt),{...le,panelOrder:Xn}}case"resources:set:resources_marketTemplateItem_list_map":{const yt=le.mtResourcesMtItemListMap,Dt=Re.mtResourcesMtItemListMap,Xt=new Map([...yt,...Dt]);return{...le,mtResourcesMtItemListMap:Xt}}case"resources:set:resources_mtSdkStore_list_map":{const yt=le.mtResourceSdkStoreMap,Dt=Re.mtResourceSdkStoreMap,Xt=new Map([...yt,...Dt]);return{...le,mtResourceSdkStoreMap:Xt}}case"resources:set:resources_map":{const yt=le.mtResourcesMap,Dt=Re.mtResourcesMap,Xt=new Map([...yt,...Dt]);return{...le,mtResourcesMap:Xt}}case"resources:update:collapsePanelSet":{const{collapsePanelSet:yt}=Re;return(0,u.a0)(x,Array.from(yt),u.qW.Array),{...le,collapsePanelSet:Re.collapsePanelSet}}case"resources:update:popupLoaded":return{...le,popupLoaded:{...le.popupLoaded,...Re}};default:return le}}var w=e(77872);const k={layerExpandedKeySet:new Set,layerRange:{start:0,end:void 0}};function W(le,At){le===void 0&&(le=k);const{type:Pt,payload:Re}=At;switch(Pt){case"update:layer:select:range":return{...le,layerRange:Re.layerRange};case"layerExpandedKeySet:toggle:ref":{const{layerExpandedKeySetRef:yt}=Re,Dt=new Set(le.layerExpandedKeySet);return le.layerExpandedKeySet.has(yt)?Dt.delete(yt):Dt.add(yt),{...le,layerExpandedKeySet:Dt}}case"layerExpandedKeySet:delAllSet:ref":{const{refs:yt}=Re,Dt=new Set([...Array.from(new Set(le.layerExpandedKeySet)),...yt]);return{...le,layerExpandedKeySet:Dt}}case"layerExpandedKeySet:close:ref":return{...le,layerExpandedKeySet:new Set};default:return le}}const K="design_layer_panel_height",G={height:(0,u.Yt)(K,window.innerHeight*.6,u.qW.Number),nav:0,canvasListCacheTag:0};function $(le,At){le===void 0&&(le=G);const{type:Pt,payload:Re}=At;switch(Pt){case"directory-panel:bottom:update":return{...le,...Re};case"directory-panel:bottom:set:height":{const{height:yt}=Re;return(0,u.a0)(K,yt,u.qW.Number),{...le,height:yt}}case"directory-panel:bottom:set:nav":return{...le,nav:Re.nav};default:return le}}const P={mubanList:null};function E(le,At){le===void 0&&(le=P);const{type:Pt,payload:Re}=At;switch(Pt){case"muban-panel:update:mubanList":return{...le,mubanList:Re.mubanList};default:return le}}const H={show:!1};function O(le,At){le===void 0&&(le=H);const{type:Pt,payload:Re}=At;switch(Pt){case"historyPanel:set:show":return{...le,show:Re.show};default:return le}}const V={isShowHeader:!0,isShowSearch:!1,source:null,iconGroupData:null,navigationIconResources:null};function Q(le,At){le===void 0&&(le=V);const{type:Pt,payload:Re}=At;switch(Pt){case"icon-select-popup:update:state":return{...le,...Re};default:return le}}const N={navIndex:0,findPanelTabIndex:0,iconSelectPopupNavIndex:0,iconSelectPopupTabIndex:0,iconType:"All",iconDefaultColor:"rgba(16,16,16,1)",iconDefaultSize:24,libraryIconDataForTabs:new Map,findPanelCurrentIconGroup:"",iconSelectPopupCurrentIconGroup:"",resources:[],unStarResources:[],starResources:[],currentIconResources:null,iconSelectPopupCurrentIconResources:null,isRequestHotIconList:!1,hotIconList:[],hotColorIconList:[]};function L(le,At){le===void 0&&(le=N);const{type:Pt,payload:Re}=At;switch(Pt){case"icon-panel:update:state":return{...le,...Re};case"icon-panel:set:default:color":{const{iconDefaultColor:yt}=Re;return{...le,iconDefaultColor:yt}}case"icon-panel:set:default:size":{const{iconDefaultSize:yt}=Re;return{...le,iconDefaultSize:yt}}case"icon-panel:set:iconType":return{...le,iconType:Re.iconType};case"icon-panel:update:icon_library_data_map:for:data":{const{cid:yt,iconGroupData:Dt}=Re,Xt=new Map(le.libraryIconDataForTabs);return Xt.set(yt,Dt),{...le,libraryIconDataForTabs:Xt}}default:return le}}const U="local-user-assets-expand-cids",A="local-org-assets-expand-cids",D=()=>{let le=[],At=[];try{const Pt=(0,u.kV)(U);Pt&&(le=JSON.parse(Pt));const Re=(0,u.kV)(A);Re&&(At=JSON.parse(Re))}catch(Pt){}return Object.prototype.toString.call(le)!=="[object Array]"&&(le=[]),Object.prototype.toString.call(At)!=="[object Array]"&&(At=[]),{localUserAssetsOpenCids:le,localOrgAssetsOpenCids:At}},{localUserAssetsOpenCids:B,localOrgAssetsOpenCids:j}=D(),F={isRequestUserAssetGroup:!1,isRequestOrgAssetGroup:!1,navIndex:-1,metadata:[],stickerData:[],isRequestFindAssets:!1,isRequestFindStickers:!1,isSaveAllAssetsMap:!1,findFilterWords:[],findActiveWord:"",assetNavIndex:0,userAssetGroups:[],userAssetsMap:new Map,userAssets:[],isRequestUserAssets:!1,orgAssetGroups:[],orgAssetsMap:new Map,orgAssets:[],isRequestOrgAssets:!1,localUserAssetsOpenCids:B,localOrgAssetsOpenCids:j};function Y(le,At){le===void 0&&(le=F);const{type:Pt,payload:Re}=At;switch(Pt){case"image-panel:update:state":return{...le,...Re};case"image-panel:set:stickerData":return{...le,stickerData:Re,isRequestFindStickers:!0};case"image-panel:set:metadata":return{...le,metadata:Re,isRequestFindAssets:!0};case"image-panel:set:user-assets-map":{const{groupCid:yt,userAssets:Dt}=Re,Xt=new Map(le.userAssetsMap);return Xt.set(yt,Dt),{...le,userAssetsMap:Xt}}case"image-panel:set:org-assets-map":{const{groupCid:yt,orgAssets:Dt}=Re,Xt=new Map(le.orgAssetsMap);return Xt.set(yt,Dt),{...le,orgAssetsMap:Xt}}case"image-panel:set:user-assets-groups":{const{nextGroups:yt}=Re;return{...le,userAssetGroups:yt}}case"image-panel:set:org-assets-groups":{const{nextGroups:yt}=Re;return{...le,orgAssetGroups:yt}}case"image-panel:set:local-user-assets-expand-cids":{const{oper:yt,cid:Dt}=Re;let Xt=[...le.localUserAssetsOpenCids];return yt==="plus"?Xt=Xt.concat(Dt):Xt=Xt.filter(Xn=>Xn!==Dt),(0,u.cH)(U,JSON.stringify(Xt)),{...le,localUserAssetsOpenCids:Xt}}case"image-panel:set:local-org-assets-expand-cids":{const{oper:yt,cid:Dt}=Re;let Xt=[...le.localOrgAssetsOpenCids];return yt==="plus"?Xt=Xt.concat(Dt):Xt=Xt.filter(Xn=>Xn!==Dt),(0,u.cH)(A,JSON.stringify(Xt)),{...le,localOrgAssetsOpenCids:Xt}}default:return le}}const X={navIndex:0,findLoading:!1,findPlatformType:"",findPlatformSubType:"",findPlatformSubTypeListMap:new Map,findPlatformSubTypeMap:new Map,findPlatformSubTypeMtDataMap:new Map,findMtResourceMap:new Map,findCurrentMtResourceCid:"",isLoadedPageSingleData:!1,isLoadedPageLibraryData:!1,templateLibraryPlatformType:"",templateLibraryPlatformSubType:"",templateLibraryPlatformSubTypeListMap:new Map,templatePageLibraryList:[],pageMode:"single",filePlatformType:"recommend",fileTemplateList:[],isLoadedfileData:!1,isLoadedTemplateMeData:!1,meNavIndex:0,meFilter:"all",meTemplateList:[],libraryNavIndex:0,libraryFilterWords:[],libraryActiveWord:"",libraryTopicListMap:new Map,libraryCurrentSquareTopic:[],libraryCurrentResources:null,currentStarResourcesCid:""};function z(le,At){le===void 0&&(le=X);const{type:Pt,payload:Re}=At;switch(Pt){case"page-panel:update:state":return{...le,...Re};case"page-panel:update:map:state":{const{key:yt,value:Dt}=Re,Xt=le[yt]||new Map,Xn=new Map([...Xt,...Dt]);return{...le,[yt]:Xn}}default:return le}}var Z=e(3862);const J={show:!1,keyword:"",iconKeyword:"",masterKeyword:"",isLoading:!0,isIconSelectPopupLoading:!0,unsplashLoading:!1,searchResultList:[],searchResultSum:0,searchResultCategory:"",searchMtMetaCidMap:new Map,iconSelectPopupSearchResultList:[],iconSelectPopupSearchResultSum:0,isSearching:!1,iconSelectPopupIsSearching:!1,type:Z.t_,historyKeyWords:[],currentComboGroup:null,searchCollapsePanelSet:new Set,searchResultListMap:{combo_group:[],screen_list:[],icon_group:[],asset:[]}};function te(le,At){le===void 0&&(le=J);const{type:Pt,payload:Re}=At;switch(Pt){case"searchPanel:update:state":return{...le,...Re};case"searchPanel:set:show":return{...le,show:Re.show};case"searchPanel:clear:search:state":return{...le,show:!1,searchResultList:[],searchResultSum:0,searchResultCategory:"",keyword:"",currentComboGroup:null,isSearching:!1,searchCollapsePanelSet:new Set};case"searchPanel:clear:search:state:from:icon-select-popup":return{...le,iconSelectPopupSearchResultList:[],iconSelectPopupSearchResultSum:0,iconKeyword:"",currentComboGroup:null,iconSelectPopupIsSearching:!1,...Re};case"searchPanel:toggle:collapsePanelSet":{const yt=new Set(le.searchCollapsePanelSet),{id:Dt}=Re;return yt.has(Dt)?yt.delete(Dt):yt.add(Dt),{...le,searchCollapsePanelSet:yt}}case"searchPanel:add:collapsePanelSet":{const yt=new Set(le.searchCollapsePanelSet),{id:Dt}=Re;return yt.add(Dt),{...le,searchCollapsePanelSet:yt}}case"searchPanel:async:update:unsplash:searchResult":{const{asyncKeyword:yt,searchResultListMap:Dt,searchResultSum:Xt,searchCollapseId:Xn}=Re;if(le.keyword!==yt)return le;const Do=new Set(le.searchCollapsePanelSet);return Do.add(Xn),{...le,searchResultListMap:Dt,searchResultSum:Xt,searchCollapsePanelSet:Do,unsplashLoading:!1}}default:return le}}var ge=e(37860),pe=e(82959);const Ce="local-user-combo-expand-cids",me="local-org-combo-expand-cids",be="local-widget-plat-form-type",ie=()=>{let le=[],At=[];try{const Pt=(0,u.kV)(Ce);Pt&&(le=JSON.parse(Pt));const Re=(0,u.kV)(me);Re&&(At=JSON.parse(Re))}catch(Pt){}return Object.prototype.toString.call(le)!=="[object Array]"&&(le=[]),Object.prototype.toString.call(At)!=="[object Array]"&&(At=[]),{localUserComboOpenCids:le,localOrgComboOpenCids:At}},{localUserComboOpenCids:oe,localOrgComboOpenCids:he}=ie(),ce={navIndex:0,userComboGroups:[],orgComboGroups:[],localUserComboOpenCids:oe,localOrgComboOpenCids:he,upgradeUserComboGroupList:[],upgradeOrgComboGroupList:[],isRequestV7UserComboGroup:!1,isRequestV7OrgComboGroup:!1,selectedSceTag:"",selectedPLabel:ge.P8,sceneMktsMap:{},sceToPLabelMap:null,scrollTop:0,sceCollapsedCategories:[],showComboUploadGuide:!1,showComboStar:!1,platformMarketTemplatesMap:new Map,platformType:"",level1:pe.ni,level2:"\u57FA\u7840",isScrollLevel1:!1,imageWidgetDropdownCurrent:"",meNavIndex:0,currentStarResourcesCid:""};function re(le,At){le===void 0&&(le=ce);const{type:Pt,payload:Re}=At;switch(Pt){case"widget-panel:update:state":return{...le,...Re};case"widget-panel:set:user-combo-groups":{const{nextComboGroups:yt}=Re;return{...le,userComboGroups:yt}}case"widget-panel:set:org-combo-groups":{const{nextComboGroups:yt}=Re;return{...le,orgComboGroups:yt}}case"widget-panel:set:local-user-combo-expand-cids":{const{oper:yt,cid:Dt}=Re;let Xt=[...le.localUserComboOpenCids];return yt==="plus"?Xt=Xt.concat(Dt):Xt=Xt.filter(Xn=>Xn!==Dt),(0,u.cH)(Ce,JSON.stringify(Xt)),{...le,localUserComboOpenCids:Xt}}case"widget-panel:set:local-org-combo-expand-cids":{const{oper:yt,cid:Dt}=Re;let Xt=[...le.localOrgComboOpenCids];return yt==="plus"?Xt=Xt.concat(Dt):Xt=Xt.filter(Xn=>Xn!==Dt),(0,u.cH)(me,JSON.stringify(Xt)),{...le,localOrgComboOpenCids:Xt}}case"widget-panel:set:scene_combo_mkts_map":{const{sceneMktsMap:yt}=Re;return{...le,sceneMktsMap:yt}}case"widget-panel:update:showComboUploadGuide":{const{showComboUploadGuide:yt}=Re;return{...le,showComboUploadGuide:yt}}case"widget-panel:update:selectedPLabel:by:name":{const{name:yt}=Re;if(yt==="all")return{...le,selectedPLabel:ge.P8};const{sceToPLabelMap:Dt}=le,Xt=Dt[le.selectedSceTag].find(Xn=>Xn.name===yt);return{...le,selectedPLabel:Xt}}case"widget-panel:update:sceCollapsedCategories":{const{sceCollapsedCategories:yt=[]}=Re;return{...le,sceCollapsedCategories:yt}}case"widget-panel:update:platformMarketTemplatesMap":return{...le,platformMarketTemplatesMap:Re};case"widget-panel:update:platFormType":{const{platformType:yt,projectCid:Dt=""}=Re;return(0,u.a0)(be+"-"+Dt,yt,u.qW.String),{...le,platformType:yt}}case"widget-panel:update:level1":{const{level1:yt,isScrollLevel1:Dt=!1}=Re;return{...le,level1:yt,isScrollLevel1:Dt}}case"widget-panel:update:level2":{const{level2:yt}=Re;return{...le,level2:yt}}default:return le}}var fe=e(15722);const Se={keyword:"",image:{tab:0}};function Me(le,At){le===void 0&&(le=Se);const{type:Pt,payload:Re}=At;switch(Pt){case"image-modal:update:keyword":return{...le,keyword:Re};case"image-modal:update:image":return{...le,image:{...le.image,...Re}};case"image-modal:reset:state":return Se;default:return le}}const Ie={keyword:"",all:{tab:0},me:{tab:0}};function de(le,At){le===void 0&&(le=Ie);const{type:Pt,payload:Re}=At;switch(Pt){case"icon-modal:update:keyword":return{...le,keyword:Re};case"icon-modal:update:all":return{...le,all:{...le.all,...Re}};case"icon-modal:update:me":return{...le,me:{...le.me,...Re}};case"icon-modal:reset:state":return Ie;default:return le}}const xe=(0,n.HY)({screen:w.n,layer:W,bottom:$}),Le=(0,n.HY)({leftPanel:a._H,popups:v,directory:xe,muban:E,history:O,iconSelectPopup:Q,icon:L,image:Y,page:z,search:te,widget:re,widgetModal:fe.E,imageModal:Me,iconModal:de});var ve=e(76863),je=e(53940);const We={autoTabIndex:null,activeIndex:0,panelUI:{position:(0,u.Yt)("mp_position",!0,u.qW.Boolean),shadows:(0,u.Yt)("mp_shadows",!0,u.qW.Boolean),text:(0,u.Yt)("mp_text",!0,u.qW.Boolean),image:(0,u.Yt)("mp_image",!0,u.qW.Boolean),state:(0,u.Yt)("mp_state",!0,u.qW.Boolean),clip:(0,u.Yt)("mp_clip",!1,u.qW.Boolean),filter:(0,u.Yt)("mp_filter",!1,u.qW.Boolean),chart_settings_type:(0,u.Yt)("mp_chart_settings_type",!0,u.qW.Boolean),chart_settings_theme:(0,u.Yt)("mp_chart_settings_theme",!0,u.qW.Boolean),chart_settings_option:(0,u.Yt)("mp_chart_settings_option",!0,u.qW.Boolean),collapse_title_settings:(0,u.Yt)("mp_collapse_title_settings",!0,u.qW.Boolean),collapse_content_settings:(0,u.Yt)("mp_collapse_content_settings",!0,u.qW.Boolean),collapse_switches_checked_panel:(0,u.Yt)("mp_collapse_switches_checked_panel",!0,u.qW.Boolean),collapse_switches_unchecked_panel:(0,u.Yt)("mp_collapse_switches_unchecked_panel",!0,u.qW.Boolean),segmented_control_checked_item:(0,u.Yt)("mp_segmented_control_checked_item",!0,u.qW.Boolean),slider_track_settings:(0,u.Yt)("mp_slider_track_settings",!0,u.qW.Boolean),slider_thumb_settings:(0,u.Yt)("mp_slider_thumb_settings",!0,u.qW.Boolean),collapse_panel:(0,u.Yt)("mp_collapse_panel",!0,u.qW.Boolean),segmented_control:(0,u.Yt)("mp_segmented_control",!0,u.qW.Boolean),options:(0,u.Yt)("mp_options",!0,u.qW.Boolean),nav_menu_panel:(0,u.Yt)("mp_nav_menu_panel",!0,u.qW.Boolean),nav_expand_panel:(0,u.Yt)("mp_nav_expand_panel",!0,u.qW.Boolean),nav_selected_panel:(0,u.Yt)("mp_nav_selected_panel",!0,u.qW.Boolean),nav_menu_type:(0,u.Yt)("mp_nav_menu_type",!0,u.qW.Boolean),digital_stepper_button:(0,u.Yt)("mp_digital_stepper_button",!0,u.qW.Boolean),digital_stepper_number:(0,u.Yt)("mp_digital_stepper_number",!0,u.qW.Boolean),pagination:(0,u.Yt)("mp_pagination",!0,u.qW.Boolean),pagination_checked:(0,u.Yt)("mp_pagination_checked",!0,u.qW.Boolean),tabs:(0,u.Yt)("mp_tabs",!0,u.qW.Boolean),tabs_checked:(0,u.Yt)("mp_tabs_checked",!0,u.qW.Boolean),tab_bars_panel:(0,u.Yt)("mp_tab_bars_panel",!0,u.qW.Boolean),tab_bars_selected:(0,u.Yt)("mp_tab_bars_selected",!0,u.qW.Boolean),selection_control_type_panel:(0,u.Yt)("mp_selection_control_type_panel",!0,u.qW.Boolean),selection_control_checked_style_panel:(0,u.Yt)("mp_selection_control_checked_style_panel",!0,u.qW.Boolean),selection_control_unchecked_style_panel:(0,u.Yt)("mp_selection_control_unchecked_style_panel",!0,u.qW.Boolean)},layout:{row:{enabled:!1,...je.rs.row},col:{enabled:!1,...je.rs.col}},bgcolor:"rgba(245, 245, 245, 1)",collapseKeySet:new Set,selectCarouselImageIndex:null,selectTableCellInfo:null,selectOptionCid:null,isShowLinkPanel:!1,varList:[],currentAppearRefStyle:null,currentTextRefStyle:null};function Ae(le,At){le===void 0&&(le=We);const{type:Pt,payload:Re}=At;switch(Pt){case"settings:update:state":return{...le,...Re};case"settings:set:autoTabIndex":return{...le,autoTabIndex:Re.autoTabIndex};case"settings:set:activeIndex":return{...le,activeIndex:Re.activeIndex};case"settings:set:panel:expanded":{const{title:yt,expanded:Dt}=Re;return(0,u.a0)("mp_"+yt,Dt,u.qW.Boolean),{...le,panelUI:{...le.panelUI,[yt]:Dt}}}case"settings:set:layout":{const{dir:yt,type:Dt,val:Xt}=Re,Xn={...le.layout,[yt]:{...le.layout[yt],[Dt]:Xt}};return{...le,layout:Xn}}case"settings:update:layout:preference":{const{layout_information:yt}=Re;return{...le,layout:{...yt}}}case"linkSettings:update:collapseKeySet":return{...le,collapseKeySet:Re.collapseKeySet};case"setting:select:carousel:image":return{...le,selectCarouselImageIndex:Re.selectCarouselImageIndex};case"settings:set:select:option":return{...le,option:Re.option};case"settings:set:select:option:node":return{...le,option:{...le.option,node:Re.node}};case"settings:update:varList":return{...le,varList:Re.varList};case"settings:update:currentAppearRefStyle":return{...le,currentAppearRefStyle:Re};case"settings:update:currentTextRefStyle":return{...le,currentTextRefStyle:Re};default:return le}}const we={collaborators:[],checked:!1},_e={isVersionManagementPaneShow:!1,allVersions:[],fetched:!1,fetching:!1,isCreating:!1,currentEditing:void 0,currentViewing:void 0,currentDeleting:void 0,currentResetting:void 0,currentCollaborators:we,isMemberManager:!1,versionResetNoticeInfo:void 0,filter:"all"},Te=function(le,At){le===void 0&&(le=_e);let{type:Pt,payload:Re}=At;switch(Pt){case"versions:set:versions":return{...le,allVersions:Re.versions};case"versions:update":return{...le,...Re};case"versions:create":return{...le,allVersions:[Re.newVersion,...le.allVersions]};case"versions:model:deleting:open":return{...le,currentDeleting:Re.currentDeleting};case"versions:model:deleting:close":return{...le,currentDeleting:void 0};case"versions:model:resetting:open":return{...le,currentResetting:Re.currentResetting,currentCollaborators:Re.currentCollaborators};case"versions:model:resetting:close":return{...le,currentResetting:void 0,currentCollaborators:we};case"versions:model:resetting:cllaborators:confirm":return{...le,currentCollaborators:{...le.currentCollaborators,checked:!0}}}return le},Ye={alreadyExpandKeySet:new Set,expandKeySet:new Set,STPanelWidth:je.xM,STPanelMaxWidth:1/0};function Fe(le,At){le===void 0&&(le=Ye);const{type:Pt,payload:Re}=At;switch(Pt){case"STPanel:clear":return Ye;case"STPanel:update":return Object.assign({},le,Re);case"STPanel:add:alreadyExpandKeySet":{const yt=new Set(le.alreadyExpandKeySet);return yt.add(Re.key),Object.assign({},le,{alreadyExpandKeySet:yt})}case"STPanel:delete:alreadyExpandKeySet":{const yt=new Set(le.alreadyExpandKeySet);return yt.delete(Re.key),Object.assign({},le,{alreadyExpandKeySet:yt})}case"STPanel:toggle:expandKeySet":{const{expandKeySet:yt}=Re;return{...le,expandKeySet:yt}}default:return le}}const Ve={show:!1};function rt(le,At){le===void 0&&(le=Ve);const{type:Pt,payload:Re}=At;switch(Pt){case"newbieVideoPanelState:toggle":{const yt=(Re==null?void 0:Re.show)!==void 0?Re==null?void 0:Re.show:!le.show;return{...le,show:yt}}default:return le}}const Ue=(0,n.HY)({rightPanel:ve.xK,settingPanel:Ae,versions:Te,STPanel:Fe,newbieVideoPanel:rt}),et={showAIModal:!1,currentAiComponent:null,showAIGuide:!1,agentAiPoints:void 0,aiGenerating:!1,userInputObj:{userInput:""},aiTaskID:"",switchIsChat:!1,showAISemantic:!1,historySemanticValue:"",showAISemanticTip:!0,showAIChatPanel:!1};function lt(le,At){le===void 0&&(le=et);let{type:Pt,payload:Re}=At;switch(Pt){case"ai:update:state":return{...le,...Re};case"ai:update:showAIGuide":return{...le,showAIGuide:Re};case"ai:update:agentAiPoints":return{...le,agentAiPoints:Re};case"ai:update:aiGenerating":return{...le,aiGenerating:Re};case"ai:update:aiTaskID":return{...le,aiTaskID:Re};case"ai:update:switchIsChat":return{...le,switchIsChat:Re};case"ai:update:showAISemanticTip":return{...le,showAISemanticTip:Re};case"ai:update:showAIChatPanel":return{...le,showAIChatPanel:Re};default:return le}}var Je=e(67526);const Xe={show:!1,position:{top:52,left:215},openFrom:null,defaultTab:void 0,isShowClose:!0,canShowAllTab:!0,aiTextAutoSearch:!1};function st(le,At){le===void 0&&(le=Xe);const{type:Pt,payload:Re}=At;switch(Pt){case"autoFillPanel:update":return{...le,...Re};case"autoFillPanel:set:show":return{...le,show:Re.show};case"autoFillPanel:reset:state":{const yt=(0,u.Yt)(Je.i,52,u.qW.Number),Dt=(0,u.Yt)(Je.W,215,u.qW.Number);return{...le,show:!1,openFrom:null,position:{top:yt,left:Dt}}}case"autoFillPanel:set:position":{const{position:yt}=Re;return(0,u.a0)(Je.i,yt.top,u.qW.Number),(0,u.a0)(Je.W,yt.left,u.qW.Number),{...le,position:yt}}default:return le}}const nt={show:!1,position:{top:0,left:0},byCanvasLayers:!1,byComponentList:!1,canPaste:!1,canPasteProperties:!1};function tt(le,At){le===void 0&&(le=nt);const{type:Pt,payload:Re}=At;switch(Pt){case"open:contextmenu":return{...le,show:!0,position:Re.position,byComponentList:Re.byComponentList||!1,byCanvasLayers:Re.byCanvasLayers||!1,canPaste:Re.canPaste||!1,canPasteProperties:Re.canPasteProperties||!1};case"close:contextmenu":return{...le,show:!1};default:return le}}var ct=e(75627);const ht={show:!1,position:{top:56,left:je.CN+98+8},findWidgetList:[],findWidgetPanelList:[],findSelectWidgetCid:"",searchValue:"",status:ct.nW.normal,selectScreenValue:"current",selectIndex:1,replaceValue:"",isFocusPanel:!1,isFold:!0};function It(le,At){le===void 0&&(le=ht);const{type:Pt,payload:Re}=At;switch(Pt){case"findReplacePanel:update":return{...le,...Re};case"findReplacePanel:set:position":{const{position:yt}=Re;return(0,u.a0)(ct.nb,yt.top,u.qW.Number),(0,u.a0)(ct.Zz,yt.left,u.qW.Number),{...le,position:yt}}case"findReplacePanel:reset:state":{const yt=(0,u.Yt)(ct.nb,56,u.qW.Number),Dt=(0,u.Yt)(ct.Zz,217,u.qW.Number);return{...ht,position:{top:yt,left:Dt}}}case"findReplacePanel:clear:result":return{...le,findWidgetList:[],findWidgetPanelList:[],findSelectWidgetCid:"",status:ct.nW.normal,selectIndex:1};default:return le}}const it={activeLinkCid:[],linkMap:{},selectLinkItem:null,linkNodeList:[],allLinkNodeList:[],hasLinkNodeList:[],selectOptionLinkItem:null,clickedLink:void 0};function Tt(le,At){le===void 0&&(le=it);const{type:Pt,payload:Re}=At;switch(Pt){case"links:update:has-link-node-list":return(0,I.MK)(le,"hasLinkNodeList",Re.hasLinkNodeList);case"links:update:link-node-list":return(0,I.MK)(le,"linkNodeList",Re.linkNodeList);case"links:update:all-link-node-list":return(0,I.MK)(le,"allLinkNodeList",Re.allLinkNodeList);case"links:active:link":return(0,I.MK)(le,"activeLinkCid",Re.cid);case"update:link:selectLinkItem":return(0,I.MK)(le,"selectLinkItem",Re);case"update:link:selectOptionLinkItem":return(0,I.MK)(le,"selectOptionLinkItem",Re.selectOptionLinkItem);case"links:clickedLink:update":return(0,I.MK)(le,"clickedLink",Re.clickedLink);case"links:singleSelectLink:update":return(0,I.MK)(le,"singleSelectLink",Re.singleSelectLink);default:return le}}const Lt={comboGroupRemoveModal:{isOpen:!1},masterCreateModal:{isOpen:!1,template:null,isCreateByPanel:!1},masterDeleteModal:{isOpen:!1},linkBackModal:{open:!1},screenDupModal:{isOpen:!1,screenTreeNodeList:null},screenTransferModal:{isOpen:!1,screenMetaList:[]},screenRemovalModal:{isOpen:!1,screenTreeNode:null},screenTrashModal:{isOpen:!1,screens:[]},previewModal:{isOpen:!1,template:null},workspaceConfirmAsyncModal:{isOpen:!1},designTransferModal:{isOpen:!1},assetGroupRemoveModal:{isOpen:!1},loginModal:{isOpen:!1},teamSelectModal:{isOpen:!1},designCreateWithGroupModal:{isOpen:!1},assetCreateWithGroupModal:{isOpen:!1},noticeModal:{isOpen:!1},optionRemoveModal:{isOpen:!1},doNotLeaveProjectModal:{isOpen:!1},nestedDynamicModal:{isOpen:!1},secondaryConfirmModal:{isOpen:!1},preOpenHyperlinkModal:{isOpen:!1},helpCenterModal:{isOpen:!1},couponReceivedModal:{isOpen:!1},mockittGuideModal:{isOpen:!1},rightsAndInterestsModal:{isOpen:!1},orgFullBeyondNotice:{isOpen:!1},resourcePurchaseModal:{isOpen:!1},resourcesPaidSuccessModal:{isOpen:!1},managePageModal:{isOpen:!1},imagePreviewModal:{isOpen:!1},previewComboModal:{isOpen:!1},upgradeComboModal:{isOpen:!1},chargeModal:{isOpen:!1},projectSummaryModal:{isOpen:!1},flpakSizeWarnModal:{isOpen:!1},newbieVideoModal:{isOpen:!1,index:0},comboUploadModal:{isOpen:!1,cgCid:"",projectUpperCid:"",teamCid:"",comboName:""},chartTableSettingModal:{isOpen:!1},previewCanvasModal:{isOpen:!1,projectAlike:null,activePageKey:"",activeCanvasKey:"",width:0,height:0},isDragOrResizeModal:!1,widgetOperationLayoutModal:{isOpen:!1},colorPickerDownloadModal:{isOpen:!1},mcpTokenModal:{isOpen:!1},mktWMExportModal:{isOpen:!1},mktWMUngroupModal:{isOpen:!1},libPanelModal:{isOpen:!1,type:"color"},libEditColorModal:{isOpen:!1},libEditAppearModal:{isOpen:!1},libEditTextModal:{isOpen:!1},manageStyleLibModal:{isOpen:!1},templateModal:{isOpen:!1,keyword:""},templateFileDetialModal:{isOpen:!1},resourcesSnapshotPreviewModal:{isOpen:!1},widgetModal:{isOpen:!1},widgetComboPreviewModal:{isOpen:!1},imageModal:{isOpen:!1},iconModal:{isOpen:!1},less12FontSizeTipsModal:{isOpen:!1,position:null},canvasConvertedToPixsoModal:{isOpen:!1}};function Rt(le,At){le===void 0&&(le=Lt);const{type:Pt,payload:Re}=At;switch(Pt){case"modal:update:state":return{...le,...Re};case"modal:update:libPanelModal:position":return{...le,libPanelModal:{...le.libPanelModal,position:Re}};case"modal:update:libEditAppearModal:attrs":return{...le,libEditAppearModal:{...le.libEditAppearModal,attrs:Re}};case"modal:update:libEditTextModal:attrs":return{...le,libEditTextModal:{...le.libEditTextModal,attrs:Re}};case"modal:update:confirm:state":return{...le,workspaceConfirmAsyncModal:Re};case"modal:reset:state":return Lt;case"modal:reset:popup:state":{const{modalName:yt}=Re;return{...le,[yt]:Lt[yt]}}case"modal:reset:preview:modal:state":return{...le,previewCanvasModal:Lt.previewCanvasModal,previewModal:Lt.previewModal,previewComboModal:Lt.previewComboModal};case"modal:open:templateModal":return{...le,templateModal:{...Lt.templateModal,isOpen:!0,...Re}};case"modal:toggle:less12FontSizeTipsModal":{const{less12FontSizeTipsModal:yt}=le;return{...le,less12FontSizeTipsModal:{...yt,isOpen:!yt.isOpen,...Re}}}default:return le}}const Wt={theme:je.Sx.LIGHT,ruler:!0,showRulerReferLine:!0,showAlignLine:!0,linkDisplay:1,showToolTip:!0,showDragMode:!0,showPreference:!1,preferenceNav:"common",flags:0,flags2025:0,isContainSelect:!0,guideState:!1,isShowUserGuideModel:!1,builtinListInvisible:new Set,showFsWarning:!0,stateLinkDefaultTransition:0,panelLinkDefaultTransition:1,openOverlayDefaultTransition:0,swapOverlayDefaultTransition:0,recentlyUsedScreenMetaIcons:new Set,useNativeEyedropper:!1,autoFillHistory:{},colorPanelMode:null,isShowMultiCursor:!0,layout:"recommend",layoutV8:"recommend",layoutV9:"recommend"};function Kt(le,At){le===void 0&&(le=Wt);const{type:Pt,payload:Re}=At;switch(Pt){case"preference:update:state":return{...le,...Re};case"preference:open:appearance":return{...le,showPreference:!le.showPreference};default:return le}}var Gt=e(97267);const St=(0,n.HY)({ai:lt,autoFillPanel:st,contextmenu:tt,findReplacePanel:It,linklist:Tt,modals:Rt,preference:Kt,htmlImportReducer:Gt.b}),Hn={showShortCutArtBoard:!1,isShowNps:!1,isDragLink:!1,isDragAnnotationBindingPoint:!1,draggingStickyKey:"",basketPathCacheTag:0,isAdjustOverlayRelPos:!1};function uo(le,At){le===void 0&&(le=Hn);const{type:Pt,payload:Re}=At;switch(Pt){case"artboard:update:state":return{...le,...Re};case"toggle:showShortCutArtBoard":return{...le,showShortCutArtBoard:!le.showShortCutArtBoard};case"hide:showShortCutArtBoard":return{...le,showShortCutArtBoard:!1};case"update:isShowNps":return{...le,isShowNps:Re.isShowNps};default:return le}}const Po=(0,n.HY)({toolbar:b,leftLayout:Le,rightLayout:Ue,fixedLayout:St,artboard:uo}),Yn="AI_COMPONENT_CURSOR_HAS_SHOWN",bo=16,Ke={isInAIComponentCreateMode:!1,isInAIComponentSnapshotMode:!1,createStartPoint:null,createEndPoint:null,isDraggingMouse:!1,editingInfoMap:{},floatBarOperationMap:{},requestLoading:{isLoading:!1,key:""},editInputAreaText:"",editingAIComponentKey:null,isOptimumLoading:!1,isShowAIComponentTextCursor:!(0,u.kV)(Yn),isShowInputContainer:!1,isShowThinkingMode:!1,withoutStreamingKeyList:[]};function ut(le,At){le===void 0&&(le=Ke);const{type:Pt,payload:Re}=At;switch(Pt){case"ai-component:update:isInAIComponentCreateMode":return Object.assign({},le,{isInAIComponentCreateMode:Re.isInAIComponentCreateMode});case"ai-component:update:isInAIComponentSnapshotMode":return Object.assign({},le,{isInAIComponentSnapshotMode:Re.isInAIComponentSnapshotMode});case"ai-component:update:createStartPoint":return Object.assign({},le,{createStartPoint:Re.createStartPoint});case"ai-component:update:createEndPoint":return Object.assign({},le,{createEndPoint:Re.createEndPoint});case"ai-component:update:isDraggingMouse":return Object.assign({},le,{isDraggingMouse:Re.isDraggingMouse});case"ai-component:update:editingInfoMap":return Object.assign({},le,{editingInfoMap:{...le.editingInfoMap,[Re.key]:Re.editingInfo}});case"ai-component:clear:editingInfo":return Object.assign({},le,{editingInfoMap:{...le.editingInfoMap,[Re.key]:void 0}});case"ai-component:update:floatBarOperationMap":return Object.assign({},le,{floatBarOperationMap:{...le.floatBarOperationMap,[Re.key]:Re.floatBarOperation}});case"ai-component:clear:floatBarOperation":return Object.assign({},le,{floatBarOperationMap:{...le.floatBarOperationMap,[Re.key]:void 0}});case"ai-component:update:requestLoading":return Object.assign({},le,{requestLoading:{...Re}});case"ai-component:clear:requestLoading":return Object.assign({},le,{requestLoading:{isLoading:!1,key:""}});case"ai-component:update:editInputAreaText":return Object.assign({},le,{editInputAreaText:Re.editInputAreaText});case"ai-component:update:editingAIComponentKey":return Object.assign({},le,{editingAIComponentKey:Re.editingAIComponentKey});case"ai-component:update:isOptimumLoading":return Object.assign({},le,{isOptimumLoading:Re.isOptimumLoading});case"ai-component:update:isShowAIComponentTextCursor":return Object.assign({},le,{isShowAIComponentTextCursor:Re.isShowAIComponentTextCursor});case"ai-component:update:isShowInputContainer":return Object.assign({},le,{isShowInputContainer:Re.isShowInputContainer});case"ai-component:update:isShowThinkingMode":return Object.assign({},le,{isShowThinkingMode:Re.isShowThinkingMode});case"ai-component:add:withoutStreamingKey":return Object.assign({},le,{withoutStreamingKeyList:Array.from(new Set([...le.withoutStreamingKeyList,Re.key]))});case"ai-component:remove:withoutStreamingKey":return Object.assign({},le,{withoutStreamingKeyList:le.withoutStreamingKeyList.filter(yt=>yt!==Re.key)});default:return le}}const zt={isExportMenuShow:!1,type:"",progress:0,loading:!1,downloadFileName:"",downloadable:null,pdfDimensionExceeded:!1,canvasDimensionExceeded:!1,isWidgetBeingExported:!1,currentExportTag:"png"};function bt(le,At){le===void 0&&(le=zt);const{type:Pt,payload:Re}=At;switch(Pt){case"export:update:state":return{...le,...Re};case"export:reset:state":return zt;case"export:reset:loading":return{...zt,isExportMenuShow:!0}}return le}const xn=(0,n.HY)({exportmanager:bt}),kn={newSelection:[],selectionUndone:!1,hoverItem:"",echoItem:"",hoverPanel:"",itemQueryMap:{},ghostItemCids:[],linkListBeingCreated:[],layerListCacheTag:0};function gn(le,At){le===void 0&&(le=kn);const{type:Pt,payload:Re}=At;switch(Pt){case"selection:clear:state":return{...le,...kn};case"selection:update:state":return{...le,...Re};case"selection:update:widgetStore":return{...le,...Re};case"set:hover:panel":return{...le,hoverPanel:Re.cid};case"set:echo:item":return{...le,echoItem:Re.cid};case"clear:echo:item":return{...le,echoItem:""};case"selection:select:items":{const{cids:yt}=Re;return{...le,newSelection:yt}}case"selection:reverse:select:items":{const{cids:yt,originalSelection:Dt}=Re,Xt=[...Dt];return yt.forEach(Xn=>{const Do=Xt.indexOf(Xn);Do===-1?Xt.push(Xn):Xt.length!==1&&Xt.splice(Do,1)}),{...le,newSelection:Xt}}case"selection:unselect:items":{const yt=le.newSelection.filter(Dt=>!Re.cids.includes(Dt));return{...le,newSelection:yt}}case"selection:clear":return{...le,newSelection:[],hoverItem:"",editingCid:""};case"linklist_beingcreated:update:state":return{...le,linkListBeingCreated:Re.linkListBeingCreated};default:return le}}const Zn=(0,n.HY)({widgetTree:gn});var Pn=e(99917);const _n={isEditingImageWrapperCid:"",currentImageOperateType:"",currentImageClipSelected:Pn.Q7.cutFrame};function Wn(le,At){le===void 0&&(le=_n);const{type:Pt,payload:Re}=At;switch(Pt){case"image:update:state":return{...le,...Re};default:return le}}const Ln={editMindKey:"",selectedMindNodeKeys:[],selectedMindNodeFlagIconKey:"",selectedMindNodeImageKey:"",isShowMindNodeMenu:!1,draggingState:{isDragging:!1,position:{x:0,y:0},mousePosition:{x:0,y:0}},isShallowEditText:!1,isEditingSelectAll:!1,isEditingMoveToEnd:!1};function io(le,At){le===void 0&&(le=Ln);let{type:Pt,payload:Re}=At;switch(Pt){case"mind:update:state":return{...le,...Re};case"mind:update:state:selectedMindNodeKeys":{const yt=Re.selectedMindNodeKeys,Dt=!!yt.length;return{...le,selectedMindNodeKeys:yt,selectedMindNodeFlagIconKey:"",selectedMindNodeImageKey:"",isShallowEditText:Dt}}case"mind:update:draggingState":return{...le,draggingState:{...le.draggingState,...Re}};case"mind:clear:edit:state":return{...le,selectedMindNodeKeys:[],selectedMindNodeFlagIconKey:"",selectedMindNodeImageKey:"",isShallowEditText:!1,isEditingSelectAll:!1,isEditingMoveToEnd:!1};case"mind:exit:edit:state":return{...le,editMindKey:"",selectedMindNodeKeys:[],selectedMindNodeFlagIconKey:"",selectedMindNodeImageKey:"",isShallowEditText:!1,isEditingSelectAll:!1,isEditingMoveToEnd:!1};case"mind:update:isShallowEditText":return{...le,isShallowEditText:Re};case"mind:update:isEditingSelectAll":return{...le,isEditingSelectAll:Re};case"mind:update:isEditingMoveToEnd":return{...le,isEditingMoveToEnd:Re};default:return le}}const to={selectTableCellInfo:null,selectCopyCell:null,isShowTableMenu:!1,tableCopyInfo:null,widget:null,isResizeCell:!1,isMouseDownInTable:!1,isEditTable:!1,inspectTableInfo:{selectCellInfo:null,hoverCellInfo:null},isMovingInDrag:!1,isDragging:!1,isShowTableDragMenu:!1,tableRightClickDragInfo:{isHorizontal:!1,index:0}};function mo(le,At){le===void 0&&(le=to);let{type:Pt,payload:Re}=At;switch(Pt){case"table:update:info":return{...le,...Re};case"table:update:inspect:info":return{...le,inspectTableInfo:{...le.inspectTableInfo,...Re}};default:return le}}var Io=e(64972),co=e(78915);const On={activeTearKey:"",STMode:!1,isDraggingWTear:!1,tearOffset:{left:0,top:0},isShowTearSticky:!1,isLeftDown:!1,fakeBindingInfo:{stickyKey:"",bindingKey:"",isBinded:!1},fakePointToDir:"l",prevBindingCanvasKey:""};function Cn(le,At){le===void 0&&(le=On);const{type:Pt,payload:Re}=At;switch(Pt){case"ST:clear":return On;case"ST:update":return Object.assign({},le,Re);case"ST:toggle:wTearLeftDown":{const{isLeftDown:yt,activeTearKey:Dt}=Re,{activeTearKey:Xt,isLeftDown:Xn}=le;return Object.assign({},le,{...Re,isLeftDown:Xt!==Dt?yt:!Xn,activeTearKey:Dt,tearOffset:On.tearOffset})}case"ST:clear:fake-related":return{...le,fakeBindingInfo:On.fakeBindingInfo,fakePointToDir:On.fakePointToDir,prevBindingCanvasKey:On.prevBindingCanvasKey};default:return le}}const qe={activeElbowKey:"",startPickPoint:null,highlightAnchor:"",isDraggingElbow:!1,isDraggingElbowText:!1,isInElbowMode:!1,isShowWidgetPopup:!1,popupWorldPos:!1};function vn(le,At){le===void 0&&(le=qe);const{type:Pt,payload:Re}=At;switch(Pt){case"elbow:clear":return qe;case"elbow:update":return Object.assign({},le,Re);default:return le}}var Jn=e(50036),ao=e(62485),no=e(73662),ke=e(37780);const $n={bdrStyle:"solid",bdrColor:3149642751,bdrWidth:1,lastCreateKey:""};function $t(le,At){le===void 0&&(le=$n);const{type:Pt,payload:Re}=At;switch(Pt){case"pencil:update":return Object.assign({},le,Re);case"pencil:reset":return $n;case"pencil:update:lastCreateKey":return Object.assign({},le,{lastCreateKey:Re.lastCreateKey});case"pencil:clear:lastCreateKey":return Object.assign({},le,{lastCreateKey:""});default:return le}}const cn=(0,n.HY)({image:Wn,mind:io,table:mo,smartSelection:Io.mg,mode:co.yl,ST:Cn,elbow:vn,swimlane:Jn.F,draft:ao.A,font:no.y.__reducer,interaction:ke.R7.__reducer,pencil:$t}),xt=(0,n.HY)({data:Zn,state:cn});var Et=e(40625),jt=e(50353);const Jt={richTextEditorState:null,editingCid:"",alignment:{},sameSize:{},distributed:{},isDragClickWidget:!1,createTemplatesData:null,quickCreateWidget:null,quickCreateWidgetFrom:null,quickCreateBuiltinSceneData:"",rangeSelect:{isActive:!1,startX:0,startY:0},isDraggingCanvas:!1,showNumberLineType:"",resizingRadiusNum:0,defaultImageSlicingOffset:{x:0,y:0},cursorPos:null,addVectorSource:null,dragEventState:{isActive:!1,isToLockDragAxis:!1,worldPosPreDrag:null,worldPosOnDrag:null,eventOnDrag:null,keyRndSupAtWorldPosPreDrag:null,keyCanvasAtWorldPosPreDrag:null,boundTearKeyList:[],preDragSnapshot:{}},resizeEventState:{isActive:!1,preResizeSnapshot:{}},domVisibilityState:!0};function In(le,At){le===void 0&&(le=Jt);const{type:Pt,payload:Re}=At;switch(Pt){case"update:screenContainer:state":return{...le,...Re};case"start:range:select":return{...le,rangeSelect:{isActive:!0,...Re}};case"clear:range:select":return{...le,rangeSelect:{isActive:!1,startX:0,startY:0}};case"end:range:select":return{...le,rangeSelect:Jt.rangeSelect};case"set:rich:text:editor:state":return{...le,richTextEditorState:Re.richTextEditorState};case"clear:rich:text:editor:state":return{...le,richTextEditorState:null};case"set:editing:cid":return{...le,editingCid:Re.cid};case"set:quick-create-widget":return{...le,quickCreateWidget:Re.widget,quickCreateWidgetFrom:Re.quickCreateWidgetFrom||jt.Hq.shortCut,quickCreateBuiltinSceneData:Re.quickCreateBuiltinSceneData||""};case"set:alignment":return{...le,alignment:Re.alignment};case"set:sameSize":return{...le,sameSize:Re.sameSize};case"set:distributed":return{...le,distributed:Re.distributed};case"selection:toggle:canvas:dragging":return{...le,isDraggingCanvas:Re.isDraggingCanvas};case"set:numberLineType:show":return{...le,showNumberLineType:Re.type};case"set:resizing:radius:num":return{...le,resizingRadiusNum:Re.resizingRadiusNum};case"update:drag-event:state":return{...le,dragEventState:{...le.dragEventState,...Re}};case"reset:drag-event:state":return{...le,dragEventState:Jt.dragEventState};case"update:resize-event:state":return{...le,resizeEventState:{...le.resizeEventState,...Re}};case"reset:resize-event:state":return{...le,resizeEventState:Jt.resizeEventState};default:return le}}var En=e(1076);const hn={attr:"",attrPanel:"",supAttr:"",reGetRefColorStyleCacheTag:0,position:{top:0,left:0},color:{fill:"solid",fillIsVisible:!0,solidColor:3149642751},colorInputOption:"HEX",currentSelect:"favorite",historyColors:[],favoriteColors:[],isEyedroppedOpen:!1,colorPickerListener:()=>null,isShowColorList:!0};function _o(le,At){le===void 0&&(le=hn);const{type:Pt,payload:Re}=At;switch(Pt){case"colorpanel:set:state":return{...le,...Re};case"colorpanel:set:attr":{const Dt=Re.attr&&Re.attr===le.attr?"":Re.attr;return{...le,attr:Dt}}case"colorpanel:set:supAttr":return{...le,supAttr:Re.supAttr};case"colorpanel:set:reGetRefColorStyleCacheTag":return{...le,reGetRefColorStyleCacheTag:Re};case"colorpanel:set:attrPanel":return{...le,attrPanel:Re.attrPanel};case"colorpanel:set:position":return{...le,position:Re.position};case"colorpanel:set:color":return{...le,color:Re.color};case"colorpanel:set:historyColors":return{...le,historyColors:Re.historyColors};case"colorpanel:set:favoriteColors":return{...le,favoriteColors:Re.favoriteColors};case"colorpanel:set:currentSelect":return{...le,currentSelect:Re.currentSelect};case"colorpanel:set:isShowColorList":return{...le,isShowColorList:Re.isShowColorList};case"colorpanel:set:colorInputOption":return{...le,colorInputOption:Re.colorInputOption};case"colorpanel:set:colorPickerListener":return{...le,colorPickerListener:Re.colorPickerListener};case"colorpanel:set:eyedropperStatus":return{...le,isEyedroppedOpen:Re.isEyedroppedOpen};default:return le}}var yo=e(36666),Qn=e(99306);const ze={isCurrentProjectSclib:!1,currentManagePanel:"home",detailLib:{key:"local"},teamLibList:[],recommendLibList:[],addedLibList:[],usedLibList:[],localStyleUpdateDiff:{chg:[],add:[],del:[],noChg:[]},isLoadedNeedUpdateLibs:!1,needUpdateLibs:[]},Oe={isLoadedInitialData:!1,cacheLocalLibTag:0,collapseGroupKeySet:new Set,localStyleStore:Qn.o,textStyleTree:null,colorStyleTree:null,appearStyleTree:null,libSdkStoreMap:new Map,...ze,isFetchMubanData:!1,libMubanTreeMap:new Map,mubanDetailLib:null,currentMubanFolderData:null,collapseMubanFolderKeySet:new Set};function De(le,At){le===void 0&&(le=Oe);const{type:Pt,payload:Re}=At;switch(Pt){case"style-lib:set:attr":return{...le,...Re};case"style-lib:reset:manage:attr":return{...le,currentManagePanel:"home"};case"style-lib:set:needUpdateLibs":return{...le,needUpdateLibs:Re!=null?Re:[]};case"style-lib:set:currentMubanFolderData":return{...le,currentMubanFolderData:Re};case"style-lib:set:localStyleStore":return{...le,localStyleStore:Re};case"style-lib:update:collapseGroupKeySet":{const{key:Dt}=Re,Xt=new Set(le.collapseGroupKeySet);return le.collapseGroupKeySet.has(Dt)?Xt.delete(Dt):Xt.add(Dt),{...le,collapseGroupKeySet:Xt}}case"style-lib:update:collapseMubanFolderKeySet":{const{key:Dt}=Re,Xt=new Set(le.collapseMubanFolderKeySet);return le.collapseMubanFolderKeySet.has(Dt)?Xt.delete(Dt):Xt.add(Dt),{...le,collapseMubanFolderKeySet:Xt}}case"style-lib:set:currentManagePanel":return{...le,currentManagePanel:Re};case"style-lib:add:addedLibList":{const Dt=le.addedLibList.concat(Re);return{...le,addedLibList:Dt}}case"style-lib:remove:addedLibList":{const Dt=le.addedLibList.filter(Xt=>Xt.key!==Re.key);return{...le,addedLibList:Dt}}case"style-lib:remove:usedLibList":{const Dt=le.usedLibList.filter(Xt=>Xt.key!==Re.key);return{...le,usedLibList:Dt}}case"style-lib:add:usedLibList":{const Dt=le.usedLibList.concat(Re);return{...le,usedLibList:Dt}}case"style-lib:set:libSdkStoreMap":{const{key:Dt,value:Xt,type:Xn="new"}=Re,Do=new Map(le.libSdkStoreMap);return Xn==="new"&&!Do.has(Dt)?(Do.set(Dt,Xt),{...le,libSdkStoreMap:Do}):Xn==="update"?(Do.set(Dt,Xt),{...le,libSdkStoreMap:Do}):le}case"style-lib:del:needUpdateLibs":{var yt;const{key:Dt}=Re;return{...le,needUpdateLibs:(yt=le.needUpdateLibs)==null?void 0:yt.filter(Xt=>(Xt==null?void 0:Xt.key)!==Dt)}}case"style-lib:update:libMubanTreeMap":{const{key:Dt,val:Xt}=Re,Xn=new Map(le.libMubanTreeMap);return Xn.set(Dt,Xt),{...le,libMubanTreeMap:Xn}}case"style-lib:update:mubanDetailLib":return{...le,mubanDetailLib:Re};default:return le}}const Be={rulerConfig:null,rulerLineCanvas:null,selectedLine:[],draggingLine:null,isDeleteLine:!1,isDraggingLine:!1,rulerRect:{startX:0,startY:0}};function Qe(le,At){le===void 0&&(le=Be);const{type:Pt,payload:Re}=At;switch(Pt){case"ruler:update:state":return{...le,...Re}}return le}const $e=(0,n.HY)({ruler:Qe}),ot={offset:{x:0,y:0},scale:100,selectionAttrs:{}};function mt(le,At){switch(le===void 0&&(le=ot),At.type){case"design:set:canvas:offset":return{...le,offset:At.payload.offset};case"design:set:scale":return{...le,scale:At.payload.scale};case"design:set:scale-and-offset":return{...le,scale:At.payload.scale,offset:At.payload.offset};case"set:selection:attrs":return{...le,selectionAttrs:At.payload.attrs};default:return le}}const ft=(0,n.HY)({dom:o,flag:i,common:mt,current:s,taskList:Et.A,comment:l.A,aiComponent:ut,colorpanel:_o,screencontainer:In,projectAccess:En.Ay,ui:Po,plugin:xn,editor:xt,watermark:yo.A,editorPlugin:$e,lib:De});var gt=e(12211),_t=e(79287),Yt=e.n(_t),Ft=e(70933),Zt=e(67052),Nt=e(81973),Qt=e(67588),vt=e(60651),yn=e(20315);const rn=le=>le.comment.isInCommentMode;var Ot=e(83414),Nn=e(47695),To=e(83744),fo=e(47163);const ro=14637,Bn=()=>{if(window.WUES)return;const le=document.createElement("script");le.type="text/javascript",le.src="https://msg.wondershare.cc/NPS/sdk/user_evaluation_system_sdk.js?t="+new Date().getTime(),document.head.appendChild(le)},Ao=le=>{let{theme:At,scene:Pt="MD_NPS3.0",sp:Re="bottom_right",pos:yt,width:Dt=328}=le;if(window.WUES){const Xt=(0,fo.w)()==="en"?"en":"zh-cn",{paid:Xn,expired:Do,wsid:Uo}=MB.user||{},jo=Xn&&!Do?2:1;window.WUES.popup({lang:Xt,theme:At,w:Dt,sp:Re,pos:yt,source:{uid:Uo||"",ut:jo,pid:ro,pv:"1.0.0",ps:"web",scene:Pt}})}};var go=e(7865);const Jo=(0,gt.Mz)([yn.Lc,rn,Nt.TW,vt.jx],(le,At,Pt,Re)=>Re===co.qi.OnlyView||le||At?Pt:je.xM),$o=le=>Yt()(le.created_at).isAfter(Yt()("2024-04-10"))?!0:Yt()(le.created_at).isBefore(Yt()("2024-04-10"))&&Math.abs(Yt()(le.created_at).diff(Yt()(),"day"))>=180,po={"entry:init:design:degreeOfSatisfaction":le=>{let{getState:At,dispatch:Pt}=le;const Re=At(),yt=(0,Ft.HW)(Re),Dt=(0,Ft.PL)(Re),{isDesign:Xt}=(0,Ft.W4)(Re);if(/^.*modao.cc/.test(location.hostname)&&Xt&&!ENV.IS_ON_PREMISES&&!ENV.IS_MO&&yt){var Do;const Uo=(0,Nn.yX)(),jo=(0,Qt.O4)(Re),as=!!(0,u.kV)(Ot.nM),gs=$o(yt);as&&gs&&Uo!=null&&Uo.isCompleted&&Ao({theme:jo,pos:{bottom:20,right:335}}),Uo!=null&&Uo.isCompleted&&(Dt==null?void 0:Dt.scene_tag)==="axure_import"&&(Dt==null||(Do=Dt.attr)==null?void 0:Do.from)!=="mdrp"&&(Dt==null?void 0:Dt.owner_id)===(yt==null?void 0:yt.id)&&Math.abs(Yt()(Dt==null?void 0:Dt.created_at).diff(Yt()(),"day"))<=3&&Ao({theme:jo,scene:"MD_Axure_import",width:337,pos:{bottom:20,right:335}})}},"entry:observe:dom:left-panel-width":le=>{let{getState:At,dispatch:Pt}=le;const Re=At(),yt=(0,Zt.uE)(Re),Xt=(0,Qt.bP)(Re)==="old_right"?0:je.fn,Xn=window.innerWidth-(je.K_+yt+Xt);Pt({type:"right-side-panel:update:resize:maxWidth",payload:{width:Xn}})},"entry:observe:dom:right-panel-width":le=>{let{getState:At,dispatch:Pt}=le;const Re=At(),yt=Jo(Re),Xt=(0,Qt.bP)(Re)==="old_right"?0:je.fn,Xn=window.innerWidth-(je.K_+yt+Xt);Pt({type:"left-panel:update:max-width",payload:{screenListMaxWidth:Xn}})},"entry:init:preference":(le,At)=>{var Pt,Re,yt,Dt,Xt,Xn,Do;let{dispatch:Uo}=le,{payload:{preference:jo}}=At;const as=new Set(JSON.parse(jo.builtin_list_invisible)),gs=new Set(JSON.parse(jo.recently_used_screen_meta_icons||"[]")),Eo=!jo.theme||jo.theme==="grey"?je.Ke.theme:jo.theme,ws={grid:jo.grid,gridSize:jo.grid_Size||je.Ke.grid_size,ruler:jo.ruler,flags:jo.flags,showRulerLine:jo.show_ruler_line,showAlignLine:jo.show_align_line,showDragMode:jo.show_drag_mode,inheritTextStyle:jo.inherit_text_style,containSelect:jo.contain_select,theme:Eo,showToolTip:jo.show_tooltip,layoutInformation:jo.layout_information,showFsWarning:jo.show_fs_warning,iconColor:jo.icon_color,iconSize:jo.icon_size,linkDisplay:jo.link_display,historyColors:jo.history_colors,favoriteColors:jo.favorite_colors,historyColorsV2:jo.history_colors_v2,favoriteColorsV2:jo.favorite_colors_v2,builtinListInvisible:as,useNativeEyedropper:jo.use_native_eyedropper,stateLinkDefaultTransition:jo.state_link_default_transition,panelLinkDefaultTransition:jo.panel_link_default_transition,openOverlayDefaultTransition:jo.open_overlay_default_transition,swapOverlayDefaultTransition:jo.swap_overlay_default_transition,recentlyUsedScreenMetaIcons:gs,autoFillHistory:JSON.parse((Pt=jo.auto_fill_history)!=null?Pt:"{}"),colorPanelMode:jo.color_panel_mode,isShowMultiCursor:(Re=jo.is_show_multi_cursor)!=null?Re:!0,layout:(yt=jo.layout)!=null?yt:"recommend",layoutV8:(Dt=jo.layout_v8)!=null?Dt:"recommend",layoutV9:(Xt=jo.layout_v9)!=null?Xt:"recommend",defaultFontFamily:JSON.parse((Xn=jo.default_font_family)!=null?Xn:"{}"),defaultFontSize:JSON.parse((Do=jo.default_font_size)!=null?Do:"{}")};(0,To.SO)(ws.inheritTextStyle),Object.keys(ws.defaultFontFamily).length>0&&(0,go.$R)(go.RF,ws.defaultFontFamily),Object.keys(ws.defaultFontSize).length>0&&(0,go.$R)(go.Q6,ws.defaultFontSize),Uo({type:"preference:update:state",payload:ws})},"entry:update:ui:by:preference":le=>{var At;let{getState:Pt,dispatch:Re}=le;const yt=Pt(),{ui:{fixedLayout:{preference:Dt}}}=yt,Xt=JSON.parse(Dt.historyColorsV2||"[]"),Xn=JSON.parse(Dt.favoriteColorsV2||"[]");if(Dt.layoutInformation){const Uo=JSON.parse(Dt.layoutInformation);Uo&&Re({type:"settings:update:layout:preference",payload:{layout_information:Uo}})}const Do=(0,Ft.PL)(yt);Re({type:"settings:update:state",payload:{exportSettings:(At=Do.attr)==null?void 0:At.export_settings}}),Re({type:"colorpanel:set:historyColors",payload:{historyColors:Xt}}),Re({type:"colorpanel:set:favoriteColors",payload:{favoriteColors:Xn}})},"entry:update:ui:by:iconinfo":le=>{let{getState:At,dispatch:Pt}=le;const Re=At(),{ui:{fixedLayout:{preference:yt}}}=Re;yt.iconColor&&Pt({type:"icon-panel:set:default:color",payload:{iconDefaultColor:yt.iconColor}}),yt.iconSize&&Pt({type:"icon-panel:set:default:size",payload:{iconDefaultSize:yt.iconSize}})}};var us=e(78571),hs=e(10472),pt=e(67934),Ht=e(99587),nn=e(4235),en=e(20089),Un=e(18183),Kn=e(76431),Vn=e(93413),vo=e(70248),zn=e(20119),Fn=e(85584),Rn=e(53559),Mo=e(71862),wo=e(20640),dn=e(78401),pn=e(21489),ho=e(95106),Oo=e(89054),qn=e(9680),So=e(75006),Ut=e(25997),an=e(2099),wn=e(37253),fn=e(21856),mn=e(24437);const Sn={"entry:init:community:params":le=>{let{dispatch:At}=le;const Pt=new URLSearchParams(location.search),Re=Pt.get("type"),yt=Pt.get("mt");Re&&yt&&(At({type:"entry:resources:paid:success:goto:starred",payload:{cid:yt,category:Re}}),Re===Z.Gd&&At({type:"update:popups:state",payload:{paramStarMtCid:yt}}))},"entry:comment:rebuild:commentList":le=>{let{dispatch:At}=le;const Pt=rootSdk.cmtStore.getSubHotItemList("C@main").filter(yt=>yt.hotAttr.type==="cCmtPack"),Re=[];Pt.forEach(yt=>{yt.sub.forEach(Dt=>{const Xt=rootSdk.cmtStore.getHotItem(Dt),Xn=(0,pn.Bt)(Xt);Xt.sub.forEach(Do=>{const Uo=rootSdk.cmtStore.getHotItem(Do);Xn.comments.push((0,pn.gR)(Uo))}),Re.push(Xn)})}),At({type:"comment:update:allCommentList",payload:{allCommentList:Re}})},"entry:design:update:current:sharing":(le,At)=>{let{dispatch:Pt}=le,{payload:{sharing:Re}}=At;const yt=(Re==null?void 0:Re.type)==="default"?(Re==null?void 0:Re.view_sticky)==="view_sticky":Re==null?void 0:Re.view_sticky;if(Pt({type:"current:update:state",payload:{sharingInReadOnly:{...Re,view_sticky:yt}}}),Re.type==="default"){const{screen_visible_switch:Dt,screen_visible_list:Xt}=Re;if(Dt){const Xn=(0,wo.UG)(Xt[0]),Do=(Re==null?void 0:Re.view_sticky)==="view_sticky";Pt({type:"current:update:state",payload:{sharingInReadOnly:{...Re,screen_visible_list:Xn,view_sticky:Do}}})}}else Pt({type:"preview:set:current-projectShare",payload:{projectShare:Re}})},"entry:activate:root-project":(le,At)=>{let{dispatch:Pt,getState:Re}=le,{payload:{projectBasic:yt,projectMeta:Dt,screenCid:Xt}}=At;const Xn=Re(),{sub:Do}=sdkStore.getHotItem("B@main"),Uo=(0,Qt.bP)(Xn),{screenTreeData:jo,screenTreeMap:as,screenDataMap:gs}=(0,wo.tb)("B@main");Pt({type:"screen:set:all:screen-data",payload:{screenTreeData:jo,screenTreeMap:as,screenDataMap:gs}}),document.title=""+((0,dn.qk)(yt.name)||yt.title);let Eo,ws,Rs;try{var As,js;const[Ds,Xs]=(0,u.Yt)(je.NF+"-"+yt.cid,"",u.qW.String).split(",");if(Eo=Xt||Ds,Rs=Xs,!Eo||Ds&&(((As=sdkStore.getHotItem(Ds))==null?void 0:As.sup)==="B@ref-danli"||((js=sdkStore.getHotItem(Ds))==null?void 0:js.sup)==="B@ref-muban")){var Ls;Eo=Do[0]&&(((Ls=sdkStore.findAllTypeUnder(Do[0],"rResBunch").find(Ks=>!Ks.hotAttr.asFolder))==null?void 0:Ls.key)||Do[0])}if(sdkStore.isTrashed(Eo))throw new Error("");const{hotAttr:ri,key:ui}=sdkStore.getHotItem(Eo);ws={...ri,cid:ui}}catch(Ds){var wi;console.warn("reset screenMetaCid to first page",Ds),Eo=(wi=(0,Fn.YU)(jo).filter(ui=>ui.bunch===en.x.RbPage&&!(0,Fn.Mo)(ui))[0])==null?void 0:wi.cid;const{hotAttr:Ti,key:ri}=sdkStore.getHotItem(Eo);ws={...Ti,cid:ri}}const Fs=yt.attr instanceof Object?yt:Object.assign(yt,{attr:{}});Pt({type:"current:update:state",payload:{currentScreen:ws,currentProject:Fs,currentProjectMeta:Dt}});const Ii=sdkStore.getHotItem(ws.cid);Pt({type:"entry:activate:screen",payload:{screenCid:Eo}}),Pt({type:"screen:update:state",payload:{currentPage:Ii}}),Rs&&!sdkStore.isTrashed(Rs)&&(Pt(co.GO.select([Rs])),setTimeout(()=>{Pt({type:"entry:design:zoom:selection"})},100)),Pt({type:"entry:init:design:scale"});const Bs=Fs==null?void 0:Fs.cid,hi=Yt()(Fs==null?void 0:Fs.created_at).isAfter(Yt()("2023-09-25T23:59:59+08:00")),Li=hi&&!!(Fs!=null&&Fs.source_upper_cid||Fs!=null&&Fs.parent_cid),qs=(0,u.Yt)("current_popup_panel_name_"+Bs,null,u.qW.String);let Ws=null;if(Uo==="old_right"){const Ds=(0,u.Yt)("popups_show",!0,u.qW.Boolean),Xs=M.qB;Ws=Ds?Xs.includes(qs)?qs:M.lS.Builtin:null}else Ws=qs||(Li?M.lS.Directory:M.lS.Builtin);if(Bs&&Ws&&(0,u.cH)("current_popup_panel_name_"+Bs,Ws),[M.lS.Flow,M.lS.Mind,M.lS.AI].includes(Ws)&&(Ws=M.lS.Builtin),Pt({type:"set:current:popup:panel",payload:{name:Ws}}),M.Mf[Ws]&&Pt({type:"searchPanel:update:state",payload:{type:M.Mf[Ws]}}),M.P4.includes(Ws)||Uo==="old_right"){const Ds=Uo==="old_right"?je.sR:je.Cj;Pt({type:"left-panel:set:width",payload:{width:(0,u.Yt)("layer_left_panel_width_"+Bs,Ds,u.qW.Number),projectCid:Bs}})}if(Bs){const Ds=(0,u.Yt)("local-widget-plat-form-type-"+Bs,"",u.qW.String);Pt({type:"widget-panel:update:platFormType",payload:{platformType:Ds,projectCid:Bs}})}Pt({type:"right-side-panel:update:resize:width",payload:{width:(0,u.Yt)("ST_panel_width_"+Bs,je.xM,u.qW.Number),projectCid:Bs}}),Pt({type:"entry:observe:dom:left-panel-width"}),Pt({type:"entry:observe:dom:right-panel-width"}),Pt({type:"entry:update:mode:viewType"}),Pt({type:"entry:update:trash:page"})},"entry:root-project:readOnly:activate":(le,At)=>{var Pt,Re;let{dispatch:yt,getState:Dt}=le,{payload:{projectBasic:Xt,projectMeta:Xn,screenCid:Do,canvasCid:Uo,isHtmlZip:jo}}=At;const as=Dt(),gs=(0,Ft.HW)(as);let Eo,ws,Rs;const As=(0,Ft.z$)(as),js=(0,Qt.bP)(as);if(As!=null&&As.screen_visible_switch){const{screenTreeData:Ks,screenTreeMap:li,screenDataMap:gi}=(0,wo.wb)(As.screen_visible_list);Eo=Ks,ws=li,Rs=gi}else{const{screenTreeData:Ks,screenTreeMap:li,screenDataMap:gi}=(0,wo.tb)("B@main");Eo=Ks,ws=li,Rs=gi}yt({type:"screen:set:all:screen-data",payload:{screenTreeData:Eo,screenTreeMap:ws,screenDataMap:Rs}}),document.title=""+((0,dn.qk)(Xt.name)||Xt.title);let Ls;if(Do&&sdkStore.getHotItem(Do).hotAttr.asFolder?Ls=(0,Fn.uS)(Eo)||Do:Ls=Do||(0,Fn.uS)(Eo),As){const{screen_visible_switch:Ks,screen_visible_list:li}=As;if(Ks&&(0,Fn.Rm)(li).length===0)throw new Error("visibleIsEmpty")}if(sdkStore.isTrashed(Ls)){if(Eo.children.length===0)throw new Error("visibleIsEmpty");Ls=Eo.children[0].cid}const{hotAttr:Fs,key:Ii}=sdkStore.getHotItem(Ls),Bs={...Fs,cid:Ii},hi=Xt.attr instanceof Object?Xt:Object.assign(Xt,{attr:{}});yt({type:"current:update:state",payload:{currentScreen:Bs,currentProject:hi,currentProjectMeta:Xn}});const Li=js==="old_right"?je.sR:je.Cj,qs=hi.cid;yt({type:"left-panel:set:width",payload:{width:(0,u.Yt)("layer_left_panel_width_"+qs,Li,u.qW.Number),projectCid:qs}}),yt({type:"right-side-panel:update:resize:width",payload:{width:(0,u.Yt)("ST_panel_width_"+qs,je.xM,u.qW.Number),projectCid:qs}});const Ws=location.pathname.includes(Un.QQ),Wi=location.pathname.includes("/embed/v2"),Ds=new URLSearchParams(location.search).has("version");yt(co.GO.setCommunityPreview(Ws)),yt(co.GO.setEmbedV2Preview(Wi)),yt(co.GO.setIsVersionPreview(Ds)),yt({type:"elbow:clear"}),yt({type:"set:quick-create-widget",payload:{widget:null}}),yt({type:"entry:activate:screen",payload:{screenCid:Ls}}),Uo&&((Pt=sdkStore.getHotItem((Re=sdkStore.getHotItem(Uo))==null?void 0:Re.sup))==null||(Pt=Pt.hotAttr)==null?void 0:Pt.bunch)===en.x.RbPage&&(yt(co.GO.select([Uo])),setTimeout(()=>{yt({type:"entry:design:zoom:selection"})},100)),yt({type:"entry:init:design:scale"});const Xs=jo||(As==null?void 0:As.view_sticky),Ti=jo||(As==null?void 0:As.view_sticky);yt({type:"toolbar:update:state",payload:{canToggleSticky:Xs,isShowSticky:Ti}}),yt(co.GO.setOnlyViewMode()),yt(co.GO.setHtmlZipPreview(jo));const ri=!(gs!=null&&gs.id)||(As==null?void 0:As.comment_permission)==="off";!Xs&&ri&&yt({type:"entry:toggle:right-panel"}),ri&&yt({type:"comment:update:isShowCommentInCanvas",payload:{isShowCommentInCanvas:!1}}),(0,Zt.OW)(as)!==M.lS.Directory&&yt({type:"entry:resources:update:current:popup:panel",payload:{name:M.lS.Directory}})},"entry:activate:screen":(le,At)=>{let{dispatch:Pt}=le,{payload:{screenCid:Re}}=At;const{hotAttr:yt,key:Dt}=sdkStore.getHotItem(Re),Xt={...yt,cid:Dt};Pt({type:"current:update:state",payload:{currentScreen:Xt}}),Pt({type:"screen:update:state",payload:{currentPage:sdkStore.getHotItem(Re)}}),Pt({type:"selection:clear:state"}),Pt({type:"entry:reset:screen:selection",payload:{resetScreenCid:Re}}),Pt({type:"entry:rebuild:screen-widget-tree"}),Pt({type:"entry:refresh:link-list",payload:{updateAllLink:!0}}),Pt({type:"entry:reset:canvas:offset"})},"entry:update:mode:viewType":le=>{let{dispatch:At,getState:Pt}=le;const Re=Pt(),yt=(0,vt.uu)(Re),Dt=(0,vt.pH)(Re),Xt=(0,vt.rg)(Re),Xn=new URLSearchParams(location.search).get("view_mode");if(location.pathname.includes("/ro")||yt||["read_only","device","inspect"].includes(Xn)||Dt||Xt||yt){At(co.GO.setOnlyViewMode());return}At(co.GO.setEditMode())},"entry:update:trash:page":le=>{let{getState:At}=le;const Pt=At(),Re=(0,Ft.HW)(Pt),yt=(0,Ft.wA)(Pt),Dt=(0,Rn.ln)(Re,yt),Xt=sdkStore.getSubHotItemList("B@trash"),Xn=(0,Mo.y)(Xt,Dt+2,!0);if(Xn!=null&&Xn.length){const Do=Xn.map(Uo=>{let{key:jo}=Uo;return jo});sdkStore.deleteHotItemBatch(Do)}},"entry:reset:screen:selection":(le,At)=>{let{getState:Pt,dispatch:Re}=le,{payload:{resetScreenCid:yt}}=At;const Dt=Pt(),Xt=(0,Zt.HA)(Dt),Xn=(0,Fn.kz)(Xt).slice(1);Re({type:"screen:update:screen-selection",payload:{screenSelection:[yt]}}),Re({type:"screen:update:select:range",payload:{screenRange:{start:Xn.indexOf(yt),end:void 0}}})},"entry:rebuild:screen-widget-tree":(le,At)=>{let{getState:Pt,dispatch:Re}=le,{payload:{pageKey:yt=void 0}={}}=At;const Dt=Pt(),Xt=(0,Ft.Ur)(Dt),Xn=yt!=null?yt:Xt==null?void 0:Xt.cid;if(!Xn)return;const Do=(0,Ut.UV)(Dt);Do&&Do.destory();const Uo=new So.A(sdkStore,Xn);Uo.externalSubscribe(()=>{Re({type:"selection:update:state",payload:{rootItem:Uo.getRootSnapshot()}})}),Re({type:"selection:update:widgetStore",payload:{widgetStore:Uo,rootItem:Uo.getRootSnapshot()}}),Re({type:"settings:update:varList",payload:{varList:(0,qn.pU)()}})},"entry:refresh:link-list":(le,At)=>{var Pt;let{getState:Re,dispatch:yt}=le,{payload:{updateAllLink:Dt=!1}={}}=At;const Xt=Re(),Xn=(Pt=(0,Ft.Ur)(Xt))==null?void 0:Pt.cid;if(!Xn)return;const{isEditingCombo:Do}=(0,hs.r)(Xt),Uo=(0,vt.jI)(Xt),jo=(0,Qt.Jv)(Xt);let as=[];if([je.J_.none,je.J_.marker].includes(jo)){const Eo=(0,nn.p$)(Xt);Eo.length===1&&Eo[0]&&(sdkStore.locUpHotCanvasKey(Eo[0])?as=(0,ho.Xr)(sdkStore,Eo[0],Do,Uo):as=[])}if(je.J_.markerAndLine===jo||Dt){const Eo=(0,ho.WY)(sdkStore,Xn,Do,Uo);yt({type:"links:update:all-link-node-list",payload:{allLinkNodeList:Eo}}),as=je.J_.markerAndLine===jo?Eo:as}(0,pt.$_)(Xt).length===0&&as.length===0||yt({type:"links:update:link-node-list",payload:{linkNodeList:as}})},"entry:edit:basket:directly":(le,At)=>{let{dispatch:Pt}=le,{payload:{basketKey:Re}}=At;const yt=sdkStore.getHotItem(Re);if(!yt){MB.global.popupHelper.confirmAsync({title:"\u6BCD\u7248\u5220\u9664",confirmText:"\u6211\u77E5\u9053\u4E86",canCancel:!1,desc:"\u8BE5\u6BCD\u7248\u5DF2\u88AB\u5220\u9664\u3002",confirmBtnProps:{type:"danger-blue"}});return}if((yt==null?void 0:yt.hotAttr.type)==="rResBunch"){yt.sup==="@@T"?MB.global.popupHelper.confirmAsync({title:"\u6062\u590D\u6BCD\u7248",confirmText:"\u6062\u590D",desc:"\u6B64\u6BCD\u7248\u5DF2\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u6062\u590D\u6BCD\u7248\u540E\u518D\u5BF9\u6BCD\u7248\u8FDB\u884C\u7F16\u8F91\u3002",confirmBtnProps:{type:"danger-blue"}}).then(async as=>{as&&(sdkStore.moveHotItem(Re,"B@ref-muban"),Pt({type:"entry:edit:basket:source:muban",payload:{item:{...yt,...yt==null?void 0:yt.hotAttr}}}))}):Pt({type:"entry:edit:basket:source:muban",payload:{item:{...yt,...yt==null?void 0:yt.hotAttr}}});return}const Dt=sdkStore._calcIntActConnMapCached(),Xt=[Re],Xn=[Re];for(;Xn.length;){var Do;const as=Xn.pop(),gs=Dt.subBasketToPage[as];if(!gs){console.error("basket ref not valid");return}const Eo=(Do=sdkStore.getHotItem(gs))==null?void 0:Do.sup;if(Dt.mainPage.has(gs)||Eo==="B@ref-muban"){Xt.unshift(gs);break}else if(Eo==="B@ref-danli"){const ws=Array.from(Dt.refPageToBasket[gs])[0];Xn.push(ws),Xt.unshift(ws)}else{console.error("basket ref not valid");return}}const Uo=Xt[0],jo=sdkStore.locTopRBActiveKey(Uo);if(jo==="B@main"){Pt({type:"entry:goto:project-alike",payload:{screenMetaCid:Uo}});const as=Xt.slice(1,Xt.length).length>0?(0,vo.j_)(Xt.slice(1,Xt.length)):"";as&&sdkStore.isActiveKey(as)&&Pt({type:"entry:edit:bDanli",payload:{bDanliKey:as}})}else if(jo==="B@ref-muban"){const as=sdkStore.getHotItem(Uo);Pt({type:"entry:edit:basket:source:muban",payload:{item:{...as,...as.hotAttr}}});const gs=Xt.slice(1,Xt.length).length>0?(0,vo.j_)(Xt.slice(1,Xt.length)):"";gs&&sdkStore.isActiveKey(gs)&&Pt({type:"entry:edit:bDanli",payload:{bDanliKey:gs}})}},"entry:goto:project-alike":(le,At)=>{let{getState:Pt,dispatch:Re}=le,{payload:{screenMetaCid:yt,isResetScale:Dt=!1}}=At;const Xt=Pt(),Xn=(0,Zt.Jx)(Xt),Do=Xn==null?void 0:Xn.get(yt),{hotAttr:Uo,key:jo}=sdkStore.getHotItem(yt),as={...Uo,cid:jo};if(Re({type:"current:update:state",payload:{isEditingCid:"",currentScreen:as}}),Re({type:"entry:clear:selection"}),Re({type:"selection:clear:state"}),Re({type:"entry:rebuild:screen-widget-tree"}),Re({type:"entry:refresh:link-list"}),Re({type:"layerExpandedKeySet:close:ref"}),Do){const{offset:gs,scale:Eo}=Do;Re({type:"current:update:state",payload:{currentScreenOriginOffset:gs}}),Re({type:"design:set:canvas:offset",payload:{offset:gs}}),Re({type:"design:set:scale",payload:{scale:Eo}}),Re({type:"entry:update:ruler"})}else Dt&&Re({type:"entry:reset:design:scale"}),Re({type:"entry:reset:canvas:offset"})},"entry:edit:basket:source:muban":(le,At)=>{let{getState:Pt,dispatch:Re}=le,{payload:{item:yt}}=At;const Dt=Pt(),Xt=(0,Zt.OW)(Dt),Xn=(0,Zt.p$)(Dt).key;Re(co.GO.updateBasketPrevPopupPanel(Xt)),Re(co.GO.editBasketItemKey("")),Re(co.GO.editBasketRefPage(yt.key)),Re(co.GO.editBasketHotItem(sdkStore.getHotItem(yt.key))),Re({type:"entry:layout:basket-canvas",payload:{canUpdateTear:!1}}),Re({type:"entry:memory:current:screen:offset:scale"}),Re({type:"entry:goto:project-alike",payload:{screenMetaCid:yt.key,breadCrumbKey:yt.key}}),Re({type:"entry:update:selection:select:items",payload:{type:"selection:clear"}}),Re(co.GO.updateBasketPrevSelection([Xn])),[M.lS.AI,M.lS.Page].includes(Xt)&&Re({type:"set:current:popup:panel",payload:{name:M.lS.Builtin}}),Re({type:"modal:reset:preview:modal:state"}),Re({type:"update:screenContainer:state",payload:{createTemplatesData:null}})},"entry:edit:bDanli":(le,At)=>{var Pt;let{getState:Re,dispatch:yt}=le,{payload:{bDanliKey:Dt}}=At;const Xt=Re(),Xn=(0,Zt.OW)(Xt),Do=(0,Zt.p$)(Xt).key,Uo=(0,vt.jI)(Xt),jo=(0,vo.OO)(Dt)?(0,vo.QL)(Dt).pop():Dt,as=sdkStore.getHotItem(jo);!as||Uo===Dt||(yt(co.GO.editBasketItemKey(Dt)),yt(co.GO.editBasketHotItem(as)),yt({type:"entry:layout:basket-canvas",payload:{canUpdateTear:!1}}),yt({type:"entry:memory:current:screen:offset:scale"}),yt({type:"entry:goto:project-alike",payload:{screenMetaCid:as.hotAttr.refRBPageKey,breadCrumbKey:Dt,isResetScale:!0}}),yt({type:"entry:update:selection:select:items",payload:{type:"selection:clear"}}),yt(co.GO.updateBasketPrevPopupPanel(Xn)),yt(co.GO.updateBasketPrevSelection([Do])),(Pt=MB.commonGuideHelper)!=null&&Pt.checkGuideHasShown&&!MB.commonGuideHelper.checkGuideHasShown(Vn.c.GUIDE_BASKET_QUICK_COPY_CANVAS)&&MB.commonGuideHelper.tryToShowGuide(Vn.c.GUIDE_BASKET_QUICK_COPY_CANVAS),[M.lS.AI,M.lS.Page].includes(Xn)&&yt({type:"set:current:popup:panel",payload:{name:M.lS.Builtin}}),yt({type:"modal:reset:preview:modal:state"}))},"entry:clear:selection":le=>{let{getState:At,dispatch:Pt}=le;const Re=At(),yt=(0,Ft.PL)(Re);Pt({type:"entry:update:selection:select:items",payload:{type:"selection:clear"}}),Pt({type:"entry:clear:select"});const[Dt,Xt]=(0,u.Yt)(je.NF+"-"+yt.cid,"",u.qW.String).split(",");Xt&&(0,u.a0)(je.NF+"-"+yt.cid,Dt+",",u.qW.String)},"entry:update:selection:select:items":(le,At)=>{let{getState:Pt,dispatch:Re}=le,{payload:yt}=At;const{type:Dt="selection:select:items",...Xt}=yt;switch(Re({type:Dt,payload:{...Xt}}),Dt){case"selection:select:items":{const{cids:Uo}=yt;if(Re(co.GO.select(Uo)),Uo.length>0){const jo=sdkStore.getHotItem(Uo[0]),as=Uo.map(ws=>sdkStore.getHotItem(ws)),gs=(0,an.OP)({selections:[Uo[0]],styleType:"appear"}),Eo=(0,an.OP)({selections:[Uo[0]],styleType:"text"});if(Uo.length===1)Re({type:"settings:update:currentAppearRefStyle",payload:gs}),Re({type:"settings:update:currentTextRefStyle",payload:Eo});else if(as.every(Rs=>{var As,js;return(Rs==null||(As=Rs.hotAttr)==null?void 0:As.type)===(jo==null||(js=jo.hotAttr)==null?void 0:js.type)})){const Rs=gs&&Uo.every(js=>{var Ls;return((Ls=(0,an.OP)({selections:[js],styleType:"appear"}))==null?void 0:Ls.key)===(gs==null?void 0:gs.key)}),As=Eo&&Uo.every(js=>{var Ls;return((Ls=(0,an.OP)({selections:[js],styleType:"text"}))==null?void 0:Ls.key)===(Eo==null?void 0:Eo.key)});Re({type:"settings:update:currentAppearRefStyle",payload:Rs?gs:null}),Re({type:"settings:update:currentTextRefStyle",payload:As?Eo:null})}else Re({type:"settings:update:currentAppearRefStyle",payload:null}),Re({type:"settings:update:currentTextRefStyle",payload:null})}break}case"selection:unselect:items":{const{cids:Uo}=yt;Re(co.GO.unSelect(Uo));break}case"selection:clear":{Re(co.GO.select([])),Re(co.GO.hoverItem("")),Re({type:"settings:update:currentAppearRefStyle",payload:null}),Re({type:"settings:update:currentTextRefStyle",payload:null});break}}setTimeout(()=>{Re({type:"entry:update:ruler"}),(0,Kn.K)(I18N)[Vn.c.GUIDE_SELECT_STICKY].howToShow(yt.cids)});const Xn=Pt(),Do=(0,Qt.Jv)(Xn);(Do===0||Do===1)&&Re({type:"entry:refresh:link-list"})},"entry:clear:select":le=>{let{getState:At,dispatch:Pt}=le;const Re=At(),yt=(0,Ht.P2)(Re),{isEditingCombo:Dt}=(0,hs.r)(Re);if(yt)return;Pt({type:"reducer:flag:set-isShowRadiusResizer",payload:{isShowRadiusResizer:!1}}),Pt({type:"reducer:flag:set-isResizingRadius",payload:{isResizingRadius:!1}}),Pt({type:"settings:set:autoTabIndex",payload:{autoTabIndex:null}}),Dt&&Pt({type:"settings:set:activeIndex",payload:{activeIndex:0}}),Pt({type:"links:active:link",payload:{cid:[]}}),Pt({type:"links:singleSelectLink:update",payload:{singleSelectLink:void 0}}),Pt({type:"update:link:selectLinkItem",payload:null});const Xt=(0,zn.c)(Re);Xt&&(0,Oo.ay)(Xt,"remove"),Pt({type:"set:editing:cid",payload:{cid:""}}),Pt({type:"colorpanel:set:attr",payload:{attr:void 0}}),Pt({type:"colorpanel:set:attrPanel",payload:{attrPanel:void 0}}),Pt({type:"mode:update:state",payload:{isEditingEditableWidgetCid:""}}),Pt({type:"entry:reset:smart-selection"})},"entry:reset:smart-selection":le=>{let{dispatch:At}=le;At(Io.UU.update(Io.HM))},"entry:import:html:from:code":async(le,At)=>{let{dispatch:Pt}=le,{payload:{code:Re}}=At;if(!Re)return;MB.safeLoading("\u6B63\u5728\u751F\u6210\u539F\u578B...");let yt="";try{yt=(await(0,wn.zi)("/go/ai/bm_exchange/html",{code:Re,project_cid:MB.getRootProject().cid})).html}catch(Xt){MB.safeLoading(!1),MB.notice({type:"error",text:"\u751F\u6210\u539F\u578B\u5931\u8D25"}),(0,mn.jc)("code");return}const Dt=new Worker(us);Dt.onmessage=async Xt=>{if(Xt.data.type==="result"){const Xn=Xt.data.data,Uo=new DOMParser().parseFromString(Xn,"text/html"),jo=Uo==null?void 0:Uo.querySelector("[data-mb-type=widget]"),{data:as,imageUploadTasks:gs}=JSON.parse(JSON.parse((jo==null?void 0:jo.getAttribute("data-mb-type-data"))||"")),Eo=await(0,fn.rB)(as,gs);Pt({type:"entry:paste:items",payload:{data:Eo,worldPos:{x:0,y:0}}}),Pt({type:"entry:design:zoom:selection"}),(0,mn.jc)("code"),Dt.terminate()}else if(Xt.data.type==="error")MB.safeLoading(!1),(0,mn.jc)("code"),Dt.terminate();else if(Xt.data.type==="request-measure-rtas"){const{richTextAttr:Xn,measurementRequestID:Do}=Xt.data;(0,Oo.N7)(Xn,!1).then(Uo=>Dt.postMessage({type:"rtas-measurement-result",richTextAutoSize:Uo,measurementRequestID:Do}))}},Dt.postMessage({type:"start",htmlString:yt,uId:MB.user.id,upperCid:MB.getRootProject().cid})}};var Tn=e(13217),un=e(86594);const An={"entry:update:viewport:rect":le=>{let{dispatch:At}=le;const Pt=document.querySelector(".mb-viewport");if(!Pt)return;const Re=Pt.getBoundingClientRect();At({type:"dom:update:state",payload:{viewportRect:Re}}),At({type:"entry:update:ruler",payload:{isUpdateContext:!0}})},"entry:update:toolbar":async le=>{let{dispatch:At}=le;const Pt=await(0,un.LD)({isShowPrompt:!1});At({type:"toolbar:update:state",payload:{canPaste:Pt}})},"entry:update:screen_list_rect":le=>{let{dispatch:At}=le;const Pt=document.querySelector("#screen_list");let Re=null;Pt&&(Re=Pt.getBoundingClientRect()),At({type:"dom:update:state",payload:{screenListRect:Re}})}};var oo=e(64580);const No={"entry:hand-tool:toggle":le=>{let{getState:At,dispatch:Pt}=le;const Re=At(),yt=(0,vt.Ro)(Re);Pt(yt?{type:"entry:hand-tool:disable",payload:{triggerMethod:"click"}}:{type:"entry:hand-tool:enable",payload:{triggerMethod:"click"}})},"entry:hand-tool:enable":(le,At)=>{let{getState:Pt,dispatch:Re}=le,{payload:yt}=At;const Dt=Pt(),{isSpaceDown:Xt}=(0,Ft.ZS)(Dt),Xn=(0,vt.Ro)(Dt),{triggerMethod:Do}=yt;Do==="click"&&(Xt||(Re(co.GO.toggleHandMode(!0)),Re({type:"set:quick-create-widget",payload:{widget:null}}))),Do==="pressDown"&&(Xn||(Re(co.GO.toggleHandMode(!0)),Re({type:"set:quick-create-widget",payload:{widget:null}})))},"entry:hand-tool:disable":(le,At)=>{let{getState:Pt,dispatch:Re}=le,{payload:yt}=At;const Dt=Pt(),{isSpaceDown:Xt}=(0,Ft.ZS)(Dt),Xn=(0,vt.Ro)(Dt),{triggerMethod:Do}=yt;Do==="click"&&(Xt||(Re(co.GO.toggleHandMode(!1)),Re({type:"set:quick-create-widget",payload:{widget:null}}))),Do==="pressUp"&&(Xn||Xt)&&(Re(co.GO.toggleHandMode(!1)),Re({type:"set:quick-create-widget",payload:{widget:null}}))},"entry:handle-tool:toggle:inspect-mode":(le,At)=>{let{getState:Pt,dispatch:Re}=le,{payload:{mode:yt,isCommentDisabled:Dt=!0}}=At;const Xt=Pt();(0,vt._b)(Xt)!==yt&&(Re(co.GO.toggleHandMode(!1)),Dt&&Re({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),Re({type:"entry:ST:STMode:disable"}),Re({type:"versions:update",payload:{isVersionManagementPaneShow:!1}}),Re(co.GO.toggleInspectMode(yt)),Re(co.GO.select([])),Re({type:"elbow:update",payload:{isDraggingElbow:!1}}),(0,oo.A)({operation_type:oo.D.Inspect}))},"entry:handle-tool:preview:view_mode":(le,At)=>{let{dispatch:Pt}=le,{payload:{previewViewMode:Re}}=At;MB.__store__.dispatch(co.GO.updatePreviewViewMode(Re)),MB.webpackInterface.store.dispatch({type:"current:update:previewViewMode",payload:{previewViewMode:Re}})}},Vo={...po,...Sn,...Tn.O,...An,...No};var Ko=e(40033),zo=e(24496),xs=e(77709),ys=e(17533);const ss=le=>{const At=(0,r.RZ)(),Pt=(0,n.Yl)(ft,(0,n.Tw)(At.middleware,ys.v));return At.setEntryMap(Vo),le.reduxEntry=At,le.__store__=Pt,le.getSelectedMindNodeTrees=()=>(0,zo.fo)(Pt.getState()),le.action=(Re,yt)=>Pt.dispatch({type:Re,payload:yt}),le.getScale=()=>(0,Ft.X_)(Pt.getState()),le.getCanvasRect=()=>(0,Ft.Pz)(Pt.getState()),le.getCurrentToolBarHeight=()=>(0,xs.wT)(Pt.getState()),le.getCanvasOffset=()=>(0,Ft.ER)(Pt.getState()),le.getNextWidgetZ=()=>(0,Ko.G)(Pt.getState()),le.getCurrentProjectMeta=()=>(0,Ft.YT)(Pt.getState()),le.getCurrentScreen=()=>(0,Ft.Ur)(Pt.getState()),le.getWidgetStore=()=>(0,Ut.UV)(Pt.getState()),le.getRootProject=()=>(0,Ft.PL)(Pt.getState()),le.getSelectionItems=()=>(0,nn.nE)(Pt.getState()),Pt}},83672:(He,ee,e)=>{"use strict";e.d(ee,{c:()=>u});var n=e(38502),r=e(67787),c=e(53732),o=e.n(c),I=e(72214);const u=C=>{let{className:h,textStyle:i}=C;const f=(0,n.useMemo)(()=>{const{fontFamily:p,fontSize:s}=(i==null?void 0:i.hotAttr)||{};return{fontFamily:p,fontSize:s>=16?14:s<=9?7:s-2}},[i==null?void 0:i.hotAttr]);if(i)return(0,I.jsx)(d,{className:o()("view-item",h),style:f,children:"Ag"})},d=r.Ay.div.withConfig({displayName:"Text__StyledTextViewItem",componentId:"sc-1ovuvkc-0"})(["width:28px;height:28px;display:flex;align-items:center;justify-content:center;margin-right:10px;flex:0 0 28px;"])},86200:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>d});var n=e(95549),r=e(38502);const c={read_only:"v8_read_only",device:"v8_device"};var o=e(91110),I=e(66530),u=e(72214);class d extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"setComponentRef",h=>this.modal=h),(0,n.A)(this,"getEntry",()=>{const h=new URLSearchParams(location.search),i=h&&h.get("view_mode");return i?c[i]:""})}componentDidMount(){const{dispatch:h,onConfirm:i}=this.props,f=this;window.onmessage=async function(p){if(p.data==="loginSuccess")typeof h=="function"&&h({type:"modal:update:state",payload:{loginModal:{isOpen:!1}}}),i();else if(p.data==="close"){var s;typeof h=="function"?h({type:"modal:update:state",payload:{loginModal:{isOpen:!1}}}):f==null||(s=f.modal)==null||s.close()}},o.Y.userSourceTrack(this.getEntry())}render(){const{isOpen:h,type:i,source:f}=this.props,p=this.getEntry(),s=p?"&entry="+p:"",l=location.origin+"/embed/auth_box?type="+i+(f?"&source="+f:"")+s;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(I.Ef,{isOpen:h,ref:this.setComponentRef,className:"login-modal",mask:!1,modalRender:()=>(0,u.jsx)(u.Fragment,{children:(0,u.jsx)("iframe",{src:l})})}),(0,u.jsx)(I.Pg,{})]})}}(0,n.A)(d,"defaultProps",{type:"signin"})},86401:He=>{(function(){var ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={rotl:function(n,r){return n<<r|n>>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return e.rotl(n,8)&16711935|e.rotl(n,24)&4278255360;for(var r=0;r<n.length;r++)n[r]=e.endian(n[r]);return n},randomBytes:function(n){for(var r=[];n>0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],c=0,o=0;c<n.length;c++,o+=8)r[o>>>5]|=n[c]<<24-o%32;return r},wordsToBytes:function(n){for(var r=[],c=0;c<n.length*32;c+=8)r.push(n[c>>>5]>>>24-c%32&255);return r},bytesToHex:function(n){for(var r=[],c=0;c<n.length;c++)r.push((n[c]>>>4).toString(16)),r.push((n[c]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],c=0;c<n.length;c+=2)r.push(parseInt(n.substr(c,2),16));return r},bytesToBase64:function(n){for(var r=[],c=0;c<n.length;c+=3)for(var o=n[c]<<16|n[c+1]<<8|n[c+2],I=0;I<4;I++)c*8+I*6<=n.length*8?r.push(ee.charAt(o>>>6*(3-I)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],c=0,o=0;c<n.length;o=++c%4)o!=0&&r.push((ee.indexOf(n.charAt(c-1))&Math.pow(2,-2*o+8)-1)<<o*2|ee.indexOf(n.charAt(c))>>>6-o*2);return r}};He.exports=e})()},86750:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>b});var n=e(38502),r=e(53732),c=e.n(r),o=e(17307),I=e(58603),u=e(14861),d=e(67787);const C=d.Ay.div.withConfig({displayName:"style__StyledSelectNewSize",componentId:"sc-rj3lnm-0"})(["label{width:100%;.changeNewDeviceSize{max-width:114px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;text-align:left;color:",";padding:5px 0;line-height:16px;}&.multiple{.changeNewDeviceSize,.arrow-icon{color:",";}}button{display:flex;align-items:center;border:1px solid transparent;border-radius:4px;padding-left:6px;&:hover{border:1px solid ",";.arrow-icon{color:",";}}.arrow-icon{width:24px;height:24px;color:",";&.is-expand{transform:rotateX(180deg);}}}}"],a=>a.theme.color_text_L1,a=>a.theme.color_text_L2,a=>a.theme.color_bg_border_02,a=>a.theme.color_text_L1,a=>a.theme.color_text_L3),h=(0,d.DU)(["#IBOT_DROPDOWN_MENU_ROOT{.screen-info-menu{border-radius:8px;overflow:hidden;&.x-center.is-open{transition:unset;}.content{padding:0;background:",";color:",";overflow:hidden;}}}"],a=>a.theme.color_bg_white,a=>a.theme.color_text_L1),i=d.Ay.ul.withConfig({displayName:"style__StyledSizeSelectMenu",componentId:"sc-rj3lnm-1"})(["list-style:none;font-size:12px;padding:8px;width:296px;overflow-y:overlay;border-radius:8px;&::-webkit-scrollbar{display:block;width:6px;height:6px;}&::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,0.25);border-radius:4px;&:hover{background-color:rgba(255,255,255,0.30);}}&::-webkit-scrollbar-track{background-color:transparent;}li{height:28px;padding:0 16px 0 32px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;position:relative;span{color:",";}.checked{width:16px;height:16px;position:absolute;left:8px;}&:hover{background:",";}}.line{background:",";width:100%;height:1px;margin:8px 0;}li{border-radius:4px;}"],a=>a.theme.color_text_L3,a=>a.theme.color_btn_secondary_hover,a=>a.theme.color_bg_border_01);var f=e(72214);function p(a){const{model:M,renderList:x,isPageSize:g,onSelect:S,onToggle:t,contentHeight:v}=a,w=n.useRef(null),k=n.useRef(null),W=(0,n.useCallback)(K=>{const{key:G}=K.target.dataset,$={...u.v2[G],key:G};S&&S($),t&&t(!1)},[S,t]);return(0,n.useLayoutEffect)(()=>{function K(){if(!(w!=null&&w.current)||!(k!=null&&k.current))return;const{top:G,height:$}=w.current.getBoundingClientRect(),{top:P}=k.current.getBoundingClientRect(),E=G+$/2;P>E&&(w.current.scrollTop=P-E)}requestAnimationFrame(K)},[]),(0,f.jsx)(i,{ref:w,style:{maxHeight:v},children:x.map((K,G)=>{let{device:$,modelList:P}=K;return(0,f.jsxs)(n.Fragment,{children:[P.map(E=>{let{width:H,height:O,key:V}=E;const Q=M===(V==="google_nexus"?"Android":V);return(0,f.jsxs)("li",{ref:Q?k:null,className:c()({active:Q}),"data-key":V,onClick:W,children:[Q&&(0,f.jsx)(o.C,{name:"common/checked",className:"checked"}),V==="google_nexus"?"Android":(0,u.d0)({model:V,device:$,isPageSize:g}),!(V==="customize"||V==="none")&&(0,f.jsxs)("span",{className:"sizeInfo","data-key":V,children:[H," \xD7 ",O]})]},V)}),G!==x.length-1&&(0,f.jsx)("div",{className:"line"})]},$)})})}const s=(0,n.memo)(p),l=()=>{const a=document.querySelector(".changeNewDeviceSize");if(!a)return{};const{top:M}=a.getBoundingClientRect(),g=document.body.clientHeight-62-M;return{menuBaseStyle:{width:152},contentHeight:g}};function _(a){const{model:M,isPageSize:x}=a,[g,S]=(0,n.useState)(!1),{menuBaseStyle:t,contentHeight:v}=l(),w=(0,u.d0)({model:M,isPageSize:x}),k=w===I18N.SettingPanel.multiple_value,W=(0,n.useCallback)(K=>S(K),[]);return(0,f.jsxs)(C,{className:"device-size-select",children:[(0,f.jsx)(h,{}),(0,f.jsx)(I.A,{menuY:"bottom",isOpen:g,className:c()("screen-info-menu-opener",{multiple:k}),onToggle:W,shouldPreventScrollingPropagation:!1,menuBaseStyle:t,opener:(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("span",{className:"changeNewDeviceSize",children:w}),(0,f.jsx)(o.C,{className:c()("arrow-icon",{"is-expand":g}),name:"common/expand@26"})]}),menuClassName:"screen-info-menu",menu:(0,f.jsx)(s,{...a,contentHeight:v,onToggle:W})})]})}const b=(0,n.memo)(_)},86992:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>f});var n=e(95549),r=e(38502),c=e(17307),o=e(72140),I=e(3877),u=e(67787);const d=u.Ay.div.withConfig({displayName:"styles__StyledSubPanel",componentId:"sc-1srbvqh-0"})(["width:240px;border-top:1px solid ",";padding:8px 0;& > header{height:32px;font-weight:600;padding-left:16px;padding-right:10px;display:flex;align-items:center;justify-content:space-between;transition:all 0.2s ease-in-out;cursor:pointer;.title{color:",";font-weight:600;}.customize-title{display:flex;flex:1;& > a{transform:scaleY(-1);}}.reset-btn{margin-left:auto;margin-right:10px;color:#8d9ea7;}.angle-icon-wrap{display:flex;width:24px;height:24px;align-items:center;justify-content:center;border-radius:4px;&:hover{background-color:",";}&:active{background-color:",";}.icon{width:24px;height:24px;text-align:center;color:",";transform:rotate(180deg);transition:transform 0.2s ease-in-out;}}}&.md-foldable > header .icon{transform:rotate(0);}"],p=>p.theme.color_bg_border_01,p=>p.theme.color_text_L1,p=>p.theme.color_btn_secondary_hover,p=>p.theme.color_btn_secondary_active,p=>p.theme.color_text_L1);var C=e(53732),h=e.n(C),i=e(72214);class f extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleCollapse",()=>{const{onChange:s}=this.props;s&&s()}),(0,n.A)(this,"handleReset",s=>{s.stopPropagation(),this.props.onReset()})}render(){const{title:s,children:l,collapse:_,canReset:b,className:a,renderTips:M,headerChildren:x,rightHeader:g,style:S}=this.props,t=typeof _=="boolean";return(0,i.jsxs)(d,{className:h()("sub-panel",a,{"md-foldable":_}),style:S,children:[(0,i.jsxs)("header",{onClick:t?this.handleCollapse:null,style:{cursor:"default"},children:[(0,i.jsx)("p",{className:"title",children:s}),x&&x,b&&(0,i.jsx)("span",{className:"reset-btn",onClick:this.handleReset,children:I18N.SettingPanel.inspector.reset}),t&&(0,i.jsx)("div",{className:"angle-icon-wrap",children:(0,i.jsx)(c.C,{name:"common/expand@20"})}),M&&(0,i.jsx)("div",{className:"title customize-title",children:(0,i.jsx)(I.A,{renderContent:M})}),g&&g]}),t?(0,i.jsx)(o.A,{collapse:_,children:l}):l]})}}},87332:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>l});var n=e(95549),r=e(25582),c=e.n(r),o=e(38502),I=e(69623),u=e(59844),d=e(39e3),C=e(53732),h=e.n(C),i=e(67787);const f=i.Ay.div.withConfig({displayName:"styles__CSSToolBarDropdown",componentId:"sc-98fdjx-0"})(["position:relative;.hover-box{position:absolute;height:20px;top:99%;width:100%;}&.is-open > a{background-color:",";}&.disabled{opacity:0.4;}"],b=>b.theme.color_btn_secondary_active),p=i.Ay.div.withConfig({displayName:"styles__CSSToolBarMenuBox",componentId:"sc-98fdjx-1"})(["position:absolute;z-index:1101;&.is-animation{opacity:0;transition:.2s ease-in-out;transition-property:transform,opacity;transform-origin:50% 0;transform:scale(0.9);&.is-transform{opacity:1;transform:scale(1);}}"]);var s=e(72214);class l extends o.PureComponent{constructor(a){super(a),(0,n.A)(this,"setElementRef",M=>this.$element=M),(0,n.A)(this,"setDropdownRef",M=>this.$dropdown=M),(0,n.A)(this,"handleToggleMenuShow",M=>{const{onClick:x,onClickIcon:g,isDisabled:S}=this.props;M.stopPropagation(),!S&&(this.setState({isMenuShow:!this.state.isMenuShow}),x&&x(!this.state.isMenuShow),g&&g())}),(0,n.A)(this,"handMouseEnter",M=>{M.stopPropagation();const{isDisabled:x}=this.props;x||this.setState({isMenuShow:!0})}),(0,n.A)(this,"handMouseLeave",M=>{M.stopPropagation();const{isDisabled:x}=this.props;x||this.setState({isMenuShow:!1})}),(0,n.A)(this,"handleCloseMenu",()=>{const{onClick:M}=this.props;this.setState({isMenuShow:!1}),M&&M(!1)}),(0,n.A)(this,"updateMenuPosition",()=>{var M;(M=this.$dropdown)==null||M.updateMenuPosition()}),this.state={isMenuShow:a.isDefaultOpen}}componentDidUpdate(a,M){const{isDefaultOpen:x,onOpenChange:g}=this.props;x&&x!==a.isDefaultOpen&&this.setState({isMenuShow:!0}),M.isMenuShow!==this.state.isMenuShow&&(g==null||g(this.state.isMenuShow))}render(){const{renderOpener:a,renderMenu:M,isHoverDropdown:x,className:g,menuClassName:S,direction:t,isDefaultOpen:v,isDisabled:w,menuPosTop:k,menuPosLeft:W,menuPosRight:K,offsetX:G,distance:$,onClickOutside:P,isAnimation:E,targetNode:H}=this.props,{isMenuShow:O}=this.state;return(0,s.jsxs)(f,{ref:this.setElementRef,className:h()("toolbar-dropdown-opener",g,{"is-open":O,disabled:w}),onClick:x?null:this.handleToggleMenuShow,onMouseEnter:x?this.handMouseEnter:null,onMouseLeave:x?this.handMouseLeave:null,children:[a,x&&(0,s.jsx)("div",{className:"hover-box"}),O&&(0,s.jsx)(_,{ref:this.setDropdownRef,isDefaultOpen:v,targetNode:H||this.$element,renderMenu:M,direction:t,menuClassName:S,menuPosTop:k,menuPosLeft:W,menuPosRight:K,offsetX:G,distance:$,onClickOutside:P,isAnimation:E,onClose:this.handleCloseMenu})]})}}(0,n.A)(l,"propTypes",{isDefaultOpen:c().bool,isHoverDropdown:c().bool,renderMenu:c().node,renderOpener:c().node,className:c().string,menuClassName:c().string,direction:c().string,onClick:c().func,onClickIcon:c().func,onClickOutside:c().func,isDisabled:c().bool,menuPosTop:c().number,menuPosLeft:c().number,menuPosRight:c().number,offsetX:c().number,distance:c().number,isAnimation:c().bool,onOpenChange:c().func,targetNode:c().element}),(0,n.A)(l,"defaultProps",{isCloseMenuItem:!0,direction:"down",isDefaultOpen:!1,isAnimation:!1});class _ extends o.PureComponent{constructor(){super(),(0,n.A)(this,"setMenuRef",a=>this.$menu=a),(0,n.A)(this,"updateMenuPosition",()=>{const{targetNode:a,direction:M,distance:x}=this.props,{sourceNodePosition:g}=a?(0,u.A)(a,this.$menu,{direction:M,distance:x!=null?x:8,forceDirection:!1}):{};this.setState({menuPosition:g,isTransform:!0})}),(0,n.A)(this,"handleWheel",a=>{(a.ctrlKey||a.metaKey)&&a.preventDefault()}),(0,n.A)(this,"handleClickOutside",a=>{const{onClose:M,onClickOutside:x}=this.props,g=!this.$menu.contains(a.target),S=a.target.closest(".SelectOption"),t=a.target.closest(".MenuItem"),v=this.props.targetNode.contains(a.target);x&&!x(a)||v||S||t||g&&M()}),this.state={isTransform:!1,menuPosition:{}},this.el=document.createElement("div"),this.el.className="design-toolbar-menu"}componentDidMount(){document.body.appendChild(this.el),this.props.isAnimation?Object.assign(this,{animationTimeout:setTimeout(()=>this.updateMenuPosition())}):this.updateMenuPosition(),window.addEventListener("resize",this.updateMenuPosition),this.el.addEventListener("wheel",this.handleWheel,{passive:!1})}componentWillUnmount(){document.body.removeChild(this.el),window.removeEventListener("resize",this.updateMenuPosition),this.el.removeEventListener("wheel",this.handleWheel,{passive:!1}),clearTimeout(this.animationTimeout)}render(){const{renderMenu:a,menuClassName:M,isDefaultOpen:x,menuPosTop:g,menuPosLeft:S,menuPosRight:t,offsetX:v,isAnimation:w}=this.props,{menuPosition:k,isTransform:W}=this.state,K={...k};return g&&Object.assign(K,{top:g}),S&&Object.assign(K,{left:S}),(typeof t=="number"||typeof t=="string")&&Object.assign(K,{right:t,left:void 0}),v&&(K.left&&(K.left+=v),K.right&&(K.right-=v)),(0,I.createPortal)((0,s.jsxs)(p,{ref:this.setMenuRef,style:K,className:h()(M,{isDefaultOpen:x},{"is-animation":w},{"is-transform":W}),children:[a,(0,s.jsx)(d.A,{target:document,onClick:(0,d.t)(this.handleClickOutside,{capture:!0})})]}),this.el)}}(0,n.A)(_,"propTypes",{direction:c().string,menuClassName:c().string,isDefaultOpen:c().bool,renderMenu:c().node,targetNode:c().object,menuPosTop:c().number,menuPosLeft:c().number,menuPosRight:c().number,offsetX:c().number,distance:c().number,onClose:c().func,onClickOutside:c().func,isAnimation:c().bool})},87606:(He,ee,e)=>{"use strict";e.d(ee,{C:()=>s});var n=e(38502),r=e(24094),c=e(18381),o=e(37780),I=e(79150),u=e(33515),d=e(69374),C=e(83485),h=e(83199),i=e(88981),f=e(99566),p=e(72214);const s=(0,n.memo)(l=>{let{hasTrash:_=!1,onClose:b,uiFrom:a,selectTreeNode:M,interactionStore:x,hasAddTrigger:g,treePanelFloatContentType:S,isClearAll:t}=l;const v=(0,c.wA)(),w=()=>{!_||!x||!M||(v(o.R7.command.deleteIta({interactionStore:x,deleteNode:M,uiFrom:a,treePanelFloatContentType:S})),t&&b())},k=(0,n.useCallback)(K=>{if(!g||!x||!M)return;const G=(0,f.AE)({interactionTrigger:K});v(o.R7.command.treePanelSingleCreateCommand({triggerList:[G],interactionStore:x})),_&&![i.O.Keydown,i.O.Listener].includes(K)&&(0,C.X)()},[v,x,M,g]),W=()=>{b==null||b(),v(o.R7.command.clearAllCommand({})),v({type:"links:singleSelectLink:update",payload:{singleSelectLink:void 0}})};return(0,p.jsxs)(r.it,{type:"draggable",children:[(0,p.jsxs)("div",{className:"container",type:"draggable",children:[I18N.Interaction.editor_header,(0,p.jsxs)("div",{className:"icon-container",children:[g&&(0,p.jsx)(u.Ay,{isPosition3:!0,menux:"center",className:"link--drop-gesture-list",customOpener:(0,p.jsx)(h.A,{content:I18N.Interaction.header_title1,children:(0,p.jsx)(I.A,{name:"interaction/tree_panel_float_new",size:24})}),renderMenu:(0,p.jsx)(d.A,{isGlobalLink:!1,currentGesture:"dap",onSelect:k,interactionTree:void 0,isLimitTrigger:!1})}),_&&(0,p.jsx)(I.A,{name:"interaction/trash",onClick:w}),(0,p.jsx)(I.A,{className:"close",name:"interaction/close",onClick:W})]})]}),(0,p.jsx)("div",{className:"divider"})]})})},87765:(He,ee,e)=>{"use strict";e.d(ee,{$:()=>n});const n=r=>r.editor.state.smartSelection},87945:(He,ee,e)=>{"use strict";e.d(ee,{G:()=>n});let n=function(r){return r.RightClick="\u53F3\u952E\u83DC\u5355",r.TopBar="\u9876\u90E8\u680F",r.ImageMenu="\u56FE\u7247\u83DC\u5355",r.EmptyRightClick="\u7A7A\u767D\u5904\u53F3\u952E\u667A\u80FD\u586B\u5145",r.WidgetPanel="\u7EC4\u4EF6\u9762\u677F\u4E0B\u62C9\u83DC\u5355",r.ImageModal="\u56FE\u7247\u5F39\u7A97\u667A\u80FD\u586B\u5145",r.QuickMenuText="\u5FEB\u6377\u83DC\u5355\u6587\u672C\u667A\u80FD\u586B\u5145",r.QuickMenuImage="\u5FEB\u6377\u83DC\u5355\u56FE\u7247\u667A\u80FD\u586B\u5145",r}({})},88132:(He,ee,e)=>{"use strict";e.d(ee,{Rn:()=>u,XM:()=>C,p6:()=>d});var n=e(19249);if(e.j!=477)var r=e(85449);var c=e(70933);if(e.j!=477)var o=e(98033);const I=h=>{let{user:i,org:f}=h,p;return(0,o.Z)(i),p=f?f.cid:"me",p},u=async()=>{if(!ENV.IS_MO)try{const h=(0,r.dP)(),i=(0,c.HW)(h),f=(0,c.wA)(h),p=(0,c.PL)(h),s=I({user:i,org:f}),{points:l}=await(0,n.DE)("/go/v1/chatbot/chat/points?workspace="+s);p.is_org_project&&f?MB.action("set:current:org",{org:Object.assign(f,{ai_points:l})}):MB.action("set:current:user",{user:Object.assign(i,{ai_points:l})}),MB.action("ai:update:aiPoints",l)}catch(h){}},d=async()=>{try{const{ai_points:h}=await(0,n.DE)("/agent-py/me/points");return h}catch(h){return 0}},C=async h=>{const i={generate:"generation",edit:"editing"};try{await(0,n.zi)("/agent-py/points/deduct",{type:i[h]})}catch(f){}}},88225:(He,ee,e)=>{"use strict";e.d(ee,{Z:()=>W,_:()=>K});var n=e(38502),r=e(18381),c=e(37253),o=e(67052);if(e.j!=477)var I=e(47163);var u=e(19396),d=e.n(u),C=e(53732),h=e.n(C),i=e(78257),f=e(79743),p=e(46322),s=e(33680),l=e(28306),_=e(13642),b=e(90144),a=e(67061);if(e.j!=477)var M=e(88909);var x=e(35298),g=e(72214);const S=G=>{const{metadata:$=[],nameIndex:P,dispatch:E}=G,H=(0,n.useMemo)(()=>$.map(V=>{let{imgs:Q,tab:N,name:L}=V;const U=Q.map(F=>(0,s.Kb)(N,F)),[A,D]=(0,s.SU)(U),B=(0,s.kN)(A,D),j=(0,s.Pb)(B);return{imgs:B,tabHeight:j,tab:N,name:L[P]}}),[$,P]);(0,n.useEffect)(()=>()=>{_.A.emit(M.P2,{shownMtItemCids:[]})},[]),(0,n.useEffect)(()=>{if(H&&H.length>0){const V=(0,l._Z)(H);_.A.emit(M.jy,{observeMtItemObj:V}),_.A.emit(M.BD)}},[H]);const O=V=>{E({type:"image-panel:update:state",payload:{findActiveWord:V}}),(0,b.gQ)({widget_file_name:V,source:b.Dn.PIC_FIND})};return(0,g.jsx)(x.ks,{children:H.map(V=>{let{imgs:Q,tab:N,name:L,tabHeight:U}=V;return(0,g.jsx)(f.A,{className:h()("picture-panel",N),title:L,canCollapse:!1,onClickResources:()=>O(L),children:(0,g.jsx)(t,{imgs:Q,tabHeight:U})},N)})})},t=G=>{const{imgs:$,tabHeight:P}=G,[E,H]=(0,n.useState)(),O=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(!O||!O.current)return;const N=O.current;H(N.getBoundingClientRect())},[]);const V=d()(N=>{const{target:L}=N,U=L.getBoundingClientRect();H(U)},200),Q=N=>{if(!O||!O.current)return 0;const L=O.current;if(!L)return 0;const{left:U,right:A}=L.getBoundingClientRect(),D=Array.from(L.children).filter(F=>F.className.includes("pic-item"));if(D.length<1)return 0;const B=D.map(F=>F.getBoundingClientRect()),j=L.scrollLeft;if(N==="right"){const{left:F}=B.find(X=>{let{right:z}=X;return z>A})||{},Y=F?F-U-2:0;return j+Y}if(N==="left"){const{right:F}=B.reverse().find(X=>{let{left:z}=X;return z<U})||{},Y=F?F-A-2:0;return j+Y}return j};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("ul",{className:"picture-item-container",ref:O,style:{height:P+4},onScroll:V,children:$.map(N=>(N.tabHeight=P,(0,g.jsx)(p.I,{lazyLoad:!0,containerRect:E,scrollDirection:"x",preloadDistance:200,asset:N,popupsName:i.lS.Asset},N.asset_cid)))}),(0,g.jsx)(a.j,{scrollContainerEl:O.current,getNextScrollLeft:Q})]})};var v=e(59531),w=e(25409);const k=G=>{const{nameIndex:$,metadata:P,activeWord:E,dispatch:H}=G,O=(0,n.useMemo)(()=>{if(!E)return[];const Q=P.find(N=>N.name[$]===E);return!Q||!(Q!=null&&Q.imgs)?[]:Q.imgs.map(N=>({tab:Q.tab,...(0,s.Kb)(Q.tab,N)}))},[P,E,$]),V=(0,n.useCallback)(()=>H({type:"image-panel:update:state",payload:{findActiveWord:""}}),[H]);return(0,n.useEffect)(()=>()=>{V(),_.A.emit(M.P2,{shownMtItemCids:[]})},[]),(0,n.useEffect)(()=>{if(O&&O.length>0){const Q=(0,l.pq)(O,E);_.A.emit(M.jy,{observeMtItemObj:Q}),_.A.emit(M.BD)}},[E,O]),!O||O.length<1?null:(0,g.jsxs)(x.SC,{children:[(0,g.jsx)(w.l,{resources:{title:E},showSearch:!1,showStar:!1,onBack:V}),(0,g.jsx)(v.D,{pictureList:O,popupsName:i.lS.Asset})]})},W=G=>{const{activeWord:$,renderLoading:P}=G,[E,H]=(0,n.useState)(!1),O=(0,I.k)()?0:1,V=(0,r.d4)(o.ld),Q=(0,r.d4)(o.oE),N=(0,r.wA)();return(0,n.useEffect)(()=>{Q||(H(!0),K().then(L=>H(!1)).catch(L=>{console.error("download meta.json failed",L),H(!1)}))},[Q]),E?P():!V||V.length<1?null:$?(0,g.jsx)(k,{nameIndex:O,metadata:V,activeWord:$,dispatch:N}):(0,g.jsx)(S,{metadata:V,nameIndex:O,dispatch:N})},K=async()=>{const G=ENV.IS_MO?"/res-img/meta-en.json":"/res-img/meta.json",$=await(0,c.DE)(G);MB.action("image-panel:set:metadata",Array.isArray($)?$:[])}},88255:(He,ee,e)=>{"use strict";e.d(ee,{E:()=>u});var n=e(38502),r=e(53940),c=e(67787);const o=c.Ay.div.withConfig({displayName:"styles__StyledNoIcons",componentId:"sc-fzxg6q-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;img{width:67px;height:69px;}.tips{margin:27px 0;color:#7d8694;text-align:center;}.tips-link{margin:8px;text-align:center;a{color:",";text-decoration:underline;}}"],d=>d.theme.color_text_link_normal);var I=e(72214);function u(d){let{noIconText:C,iconLink:h,theme:i,className:f}=d;return(0,I.jsxs)(o,{className:f,children:[(0,I.jsx)("img",{src:"/mb-workspace/images/workspace/design/"+(i===r.Sx.DARK?"no_icons_dark":"no_icons_light")+".png",alt:""}),(0,I.jsx)("p",{className:"tips",dangerouslySetInnerHTML:{__html:C}}),h&&(0,I.jsx)("p",{className:"tips-link",dangerouslySetInnerHTML:{__html:h}})]})}},88463:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>p});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),I=e(17307),u=e(79371),d=e.n(u),C=e(57479),h=e(67787);const i=h.Ay.div.withConfig({displayName:"styles__StyledSearchBar",componentId:"sc-eqavh3-0"})(["position:relative;height:26px;display:flex;align-items:center;width:100%;border-radius:6px;background:",";border-width:1px;border-style:solid;border-color:",";transition:all 0.2s ease-out;overflow:hidden;color:",";&:hover,&.isFocus{background:",";border-color:",";}&.tempDisabled{opacity:0.4;}.search-icon{flex:0 0 14px;margin-left:10px;width:13px;height:14px;path{fill:",";}}.autoCompleteInput{position:absolute;width:1px;height:1px;top:-2000px;}input{width:100%;height:100%;margin-left:5px;flex:1;color:",";&::placeholder{color:",";}&:focus{border-color:",";}}.clear-icon-box{width:16px;height:16px;border-radius:50%;background:",";margin-right:6px;margin-left:5px;display:flex;align-items:center;justify-content:center;&:hover{background:",";}}.clear-icon{flex:0 0 8px;width:8px;height:8px;transition:all 0.15s ease-in-out;cursor:pointer;path{fill:",";}}.search-bar-right-devider{width:1px;height:16px;background:rgb(222,224,226);}.search-bar-exit-word{width:40px;flex:0 0 40px;padding:0 8px;font-size:12px;font-weight:400;color:",";&:hover{color:",";}}"],s=>s.theme.color_bg_white,s=>s.theme.color_bg_border_02,s=>s.theme.color_text_L3,s=>s.theme.color_bg_white,s=>s.theme.color_text_link_normal,s=>s.theme.color_text_L3,s=>s.theme.color_text_L1,s=>s.theme.color_text_L3,s=>s.theme.color_proto,s=>s.theme.color_bg_border_01,s=>s.theme.color_bg_border_02,s=>s.theme.color_text_L1,s=>s.theme.color_text_L2,s=>s.theme.color_text_L1);var f=e(72214);class p extends r.PureComponent{constructor(l){super(l),(0,n.A)(this,"setInputRef",_=>this.$input=_),(0,n.A)(this,"focus",()=>this.$input.focus()),(0,n.A)(this,"handleUpdateValue",_=>{const{onChange:b}=this.props;b?b(_):this.setState({value:_})}),(0,n.A)(this,"handleChange",_=>{const b=_.target.value;this.handleUpdateValue(b),!(this.state.isInputComposition||!this.props.isInstantSearch)&&this.handleSearch(b)}),(0,n.A)(this,"handleSearch",d()(_=>{const{onSearch:b}=this.props;b&&b(_.trim())},this.props.wait)),(0,n.A)(this,"handleClear",_=>{const{onClear:b,onSearch:a,value:M,onFocus:x}=this.props;this.handleUpdateValue(""),b?b():a&&a(""),M?x&&x():this.$input.blur()}),(0,n.A)(this,"handleMouseDown",_=>_.preventDefault()),(0,n.A)(this,"handleKeyDown",_=>{if(_.key===C._.Enter){const{value:b,onChange:a}=this.props,{value:M}=this.state,x=a?b:M;this.handleSearch(x)}}),(0,n.A)(this,"handleFocus",()=>{const{onFocus:_}=this.props;this.setState({isFocus:!0}),_&&_()}),(0,n.A)(this,"handleBlur",()=>{const{onBlur:_}=this.props;this.setState({isFocus:!1})}),(0,n.A)(this,"handleClick",_=>{_&&MB.notice({text:I18N.Common.feature_is_not_available,type:"warning"})}),(0,n.A)(this,"handleCompositionEnd",_=>{this.setState({isInputComposition:!1},()=>this.handleChange(_))}),this.state={value:l.value,isFocus:l.isFocus,isInputComposition:!1}}render(){const{placeholder:l,className:_,inputStyle:b,value:a,tempDisabled:M,canClear:x=!0,onChange:g,renderRightNode:S=null}=this.props,{isFocus:t,value:v}=this.state,w=g?a:v,k=t?x:x&&w.length>0;return(0,f.jsxs)(i,{type:"search",className:o()(_,t?"isFocus":"",M&&"tempDisabled"),onClick:()=>this.handleClick(M),children:[(0,f.jsx)(I.C,{name:"design/scale_search",className:"search-icon"}),(0,f.jsx)("input",{ref:this.setInputRef,style:b,type:"text",value:w,placeholder:l,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,onCompositionStart:()=>this.setState({isInputComposition:!0}),onCompositionEnd:this.handleCompositionEnd,disabled:M}),k&&(0,f.jsx)("div",{className:"clear-icon-box",children:(0,f.jsx)(I.C,{name:"design/scale_clear",className:"clear-icon",onMouseDown:this.handleMouseDown,onClick:this.handleClear})}),S&&S()]})}}(0,n.A)(p,"defaultProps",{wait:1e3,isInstantSearch:!0})},88670:(He,ee,e)=>{"use strict";e.d(ee,{Q:()=>G,X:()=>W});var n=e(14166),r=e(70933),c=e(22835),o=e(23314),I=e(75150),u=e(92272),d=e(20089),C=e(65209),h=e(61790),i=e(85131),f=e(18501),p=e(67588),s=e(78257),l=e(53940),_=e(87945),b=e(8228),a=e(10472),M=e(93413),x=e(59890),g=e(83744),S=e(21677),t=e(79209),v=e(73662),w=e(33421);const k=["textfill","genprd","text"],W={AIOpenModal:"entry:ai:update:openAIModal",AIOpenLeftNav:"entry:ai:update:OpenLeftAINav",AIOpenSemantic:"entry:ai:update:openAISemantic",AIToggleOpenSemantic:"entry:ai:update:toggleOpenAISemantic",AIComponentCreateMode:"entry:ai:open:aiComponentCreateMode",AIToggleOpenChatPanel:"entry:ai:update:toggleOpenAIChatPanel"},G={...{[W.AIOpenModal]:($,P)=>{let{getState:E,dispatch:H}=$,{payload:O}=P;if(!O)return;const V=E(),Q=(0,f.fh)(V),N=(0,I.gu)(),L=O.type,U=O==null?void 0:O.userInput,A=O==null?void 0:O.openTrackSource;if(!(!U&&L!==b.SR.AIAssistant&&(Q==null?void 0:Q.type)===L)){if(L===b.SR.AutoFill){H({type:"entry:autoFillPanel:toggle:show",payload:{canClose:!1,openFrom:_.G.RightClick}});return}H({type:"ai:update:state",payload:{showAIModal:!0,currentAiComponent:O,showAIGuide:N,userInputObj:{userInput:O.userInput||""}}}),A&&(0,S.Z)(L,A)}},[W.AIOpenLeftNav]:$=>{let{getState:P,dispatch:E}=$;const H=P(),O=(0,p.bP)(H);if(E({type:"entry:active:popup:panel",payload:{name:s.lS.AI}}),O==="old_right")E({type:"entry:search-panel:clear:state"});else{E({type:"entry:toggle:left-nav-panel",payload:{isAlwaysShow:!0}});const V=O==="old_right"?l.sR:l.Cj;E({type:"left-panel:set:width",payload:{width:V,isNotSaveLocal:!0}})}},[W.AIOpenSemantic]:$=>{let{dispatch:P}=$;const E=(0,I.gu)();let H={};E&&(H={showAIModal:!0}),P({type:"ai:update:state",payload:{showAISemantic:!0,showAIGuide:E,...H}})},[W.AIToggleOpenSemantic]:$=>{let{getState:P,dispatch:E}=$;const H=P(),{isEditingProjectMain:O}=(0,a.r)(H);if(!O)return;const V=(0,f.Ky)(H),Q=(0,I.gu)();let N={};Q&&(N={showAIModal:!0}),!V&&E({type:"entry:aiComponent:exit:mode"}),E({type:"ai:update:state",payload:{showAISemantic:!V,showAIGuide:Q,...N}}),!Q&&(E({type:"ai:update:showAISemanticTip",payload:!1}),MB.commonGuideHelper.checkGuideHasShown(M.c.GUIDE_SEMANTIC_PANEL)||MB.commonGuideHelper.markGuideAsRead(M.c.GUIDE_SEMANTIC_PANEL))},[W.AIComponentCreateMode]:async $=>{let{getState:P,dispatch:E}=$;await E({type:"ai:update:state",payload:{showAIModal:!1,showAISemantic:!1,currentAiComponent:null}}),x.ZF.setCache("\u5DE6\u4FA7AI\u5165\u53E3"),(0,x.U2)({source:"AI\u9762\u677F\u751F\u6210AI\u7EC4\u4EF6"}),E({type:"entry:aiComponent:open:mode"})},[W.AIToggleOpenChatPanel]:$=>{let{getState:P,dispatch:E}=$;const H=P(),O=(0,f.Uz)(H);E({type:"ai:update:state",payload:{showAIChatPanel:!O}})}},"ai:generate:hotItems":($,P)=>{let{dispatch:E}=$,{payload:H}=P;const{hotItems:O,autoSizeKeys:V=[],moveToCenterKey:Q="",updateMindSizeKey:N="",isFitCanvas:L=!0,isGroup:U=!1}=H;if(!O||!(O!=null&&O.length))return;sdkStore.combineMergeMark("ai-semantic-function"),sdkStore.updateHotItemBatch(O),Q&&(0,I.EQ)(Q),N&&E({type:"entry:mind:update:mind-size",payload:{keyMindToUpdateSize:N}}),(0,I.X9)(V);const A=O.filter(j=>{var F;return((F=j.hotAttr)==null?void 0:F.type)!=="rResExt"}),D=A.filter(j=>{var F;return((F=j.hotAttr)==null?void 0:F.type)===d.x.Canvas}).map(j=>j.key),B=(D==null?void 0:D.length)>0?D:A.map(j=>j.key);E({type:"entry:select:items",payload:{cids:Q?[Q]:B}}),U&&E({type:"entry:group:items"}),L&&E({type:"entry:design:zoom:selection"}),sdkStore.combineMerge("ai-semantic-function")},"ai:generate:flow":($,P)=>{let{getState:E,dispatch:H}=$,{payload:O}=P;const V=E(),Q=(0,r.X_)(V),{hotItems:N}=O;sdkStore.updateHotItemBatch(N);const L=[],U=[];N.forEach(Z=>{Z.hotAttr.type===d.x.WElbow?U.push(Z):L.push(Z)});let A=n.QG;for(const{key:Z}of L){const J=sdkStore.getHotAABB(Z);A=(0,n.il)(A,J)}const D=A[2]-A[0],B=A[3]-A[1],{top:j,left:F}=(0,c.u5)({width:D,height:B,scale:Q}),Y=L.map(Z=>(Z.hotAttr.x=F+Z.hotAttr.x,Z.hotAttr.y=j+Z.hotAttr.y,Z));sdkStore.updateHotItemBatch(Y);const X=U.map(Z=>{const J=Z.key,{refFromKey:te,refToKey:ge,elbow:{fromDirection:pe,toDirection:Ce}}=Z.hotAttr,me=sdkStore.getLocalBound(te),be=sdkStore.getLocalBound(ge),ie=(0,o.Jv)({elbowKey:J,bound:me,direction:pe,refKey:te,moveAnchor:"start"});return(0,o.Jv)({elbowKey:J,bound:be,direction:Ce,refKey:ge,moveAnchor:"end",elbow:ie})});sdkStore.updateHotItemBatch(X);const z=[...L.map(Z=>Z.key),...U.map(Z=>Z.key)];H({type:"entry:select:items",payload:{cids:z}})},"ai:generate":async($,P)=>{let{getState:E,dispatch:H}=$,{payload:O}=P;const{type:V,hotItems:Q}=O,N=V==="mind"?1:Q.length;if(!(0,t._c)({type:"widget",count:N})){setTimeout(()=>{MB.notice({isShow:!1})},4);return}const L=E(),U=(0,r.Ur)(L),A=(0,r.lh)(L),D=(0,r.Mj)(L),B=U==null?void 0:U.cid;let j=(0,C._)(B),F=(0,i.QN)(B);const Y=v.y.query.getMissFontHiKeySet(L),X=pe=>{const Ce=[];return pe.forEach(me=>{if(me.hotAttr.type!=="rResExt"){if(me.hotAttr.zIndex=j,j+=1,me.hotAttr.name=(0,h.Fg)(me.hotAttr),me.hotAttr.type===d.x.Canvas)me.hotAttr.order=F,F=F+1;else if(me.hotAttr.type===d.x.WImage){const{name:be,url:ie}=me.hotAttr.ext,oe=(0,u.q4)(be,ie);Ce.push(oe),me.hotAttr.image.imageRef=oe.key}else if(me.hotAttr.type===d.x.WCarousel){const ie=me.hotAttr.exts.map((oe,he)=>{const{name:ce,url:re}=oe,fe=(0,u.q4)(ce,re);return me.hotAttr.carousel.slides[he].asset=fe.key,fe});Ce.push(...ie)}}}),[...pe,...Ce]};switch(V){case"Page":{var z,Z;if(!Q||!(Q!=null&&Q.length))return;const pe=X(Q),Ce=((z=pe[0])==null||(z=z.hotAttr)==null?void 0:z.type)===d.x.Canvas?(Z=pe[0])==null?void 0:Z.key:"";await H({type:"ai:generate:hotItems",payload:{hotItems:pe,moveToCenterKey:Ce,isFitCanvas:!1}});break}case"PageV9":{const pe=(0,g.wt)();pe&&(0,g.H2)(!1),await H({type:"ai:generate:hotItems",payload:{hotItems:Q,moveToCenterKey:Q[0].key,isFitCanvas:!1}}),pe&&(0,g.H2)(!0);break}case"flow":{if(!Q||!(Q!=null&&Q.length))return;const pe=Q.map(Ce=>({...Ce,hotAttr:{...Ce.hotAttr,name:(0,h.Fg)(Ce.hotAttr),zIndex:j}}));H({type:"ai:generate:flow",payload:{hotItems:pe}});break}case"mind":{var J,te;if(!Q||!(Q!=null&&Q.length))return;let pe=null;const Ce=Q.map(me=>(me.hotAttr.type===d.x.WMind&&(pe=me),{...me,hotAttr:{...me.hotAttr,name:(0,h.Fg)(me.hotAttr),zIndex:me.hotAttr.type===d.x.WMind?j:me.hotAttr.zIndex}}));H({type:"ai:generate:hotItems",payload:{hotItems:Ce,moveToCenterKey:(J=pe)==null?void 0:J.key,updateMindSizeKey:(te=pe)==null?void 0:te.key,isFitCanvas:!1}});break}case"chart":case"table":{var ge;if(!Q||!(Q!=null&&Q.length))return;const pe=Q.map(Ce=>({...Ce,hotAttr:{...Ce.hotAttr,name:(0,h.Fg)(Ce.hotAttr),zIndex:j}}));H({type:"ai:generate:hotItems",payload:{hotItems:pe,moveToCenterKey:(ge=pe[0])==null?void 0:ge.key,isFitCanvas:!1}});break}case"semantic":{const{semanticType:pe,status:Ce}=O,me=Q.filter(be=>!Y.has(be.key));if(me.length!==Q.length){setTimeout(()=>{MB.notice({isShow:!1}),(0,w.Kv)()},4);const be=Q.filter(ie=>Y.has(ie.key)).map(ie=>({key:ie.key,hotAttr:{isLock:!1}}));if(H({type:"entry:widget:change",payload:{flatChgList:be,shouldReBuildTree:!0}}),me.length===0)break}switch(pe){case"edittext":case"texttranslate":case"textpolish":case"textstyle":case"textexpand":case"textshort":{const be=me[0];if(Ce===200){if(!be)break;sdkStore.combineMergeMark("ai-semantic-function"),H({type:"entry:widget:change",payload:{flatChgList:me,shouldReBuildTree:!0}}),be.hotAttr.type===d.x.WRichText?(0,I.X9)([be.key]):(H({type:"entry:set:editing:cid",payload:{item:{key:be.key}}}),H({type:"entry:set:editing:cid",payload:{item:{key:""}}}),A&&H({type:"entry:set:editing:cid",payload:{item:{key:A}}})),sdkStore.combineMerge("ai-semantic-function")}else(0,I.We)(D),H({type:"entry:widget:change",payload:{flatChgList:me}});break}case"editstyle":{if(!Q||!(Q!=null&&Q.length))return;sdkStore.combineMergeMark("ai-semantic-function"),H({type:"entry:widget:change",payload:{flatChgList:Q,shouldReBuildTree:!0}});const be=Q.filter(ie=>ie.hotAttr.type===d.x.WRichText).map(ie=>ie.key);(0,I.X9)(be),sdkStore.combineMerge("ai-semantic-function");break}case"gencomponent":{if(!Q||!(Q!=null&&Q.length))return;const be=X(Q);H({type:"ai:generate:hotItems",payload:{hotItems:be,isGroup:!0}});break}default:{if(!Q||!(Q!=null&&Q.length))return;const be=X(Q),ie=k.includes(pe)?Q.map(oe=>oe.key):[];H({type:"ai:generate:hotItems",payload:{hotItems:be,autoSizeKeys:ie}});break}}break}default:break}}}},88909:(He,ee,e)=>{"use strict";e.d(ee,{A6:()=>c,BD:()=>o,P2:()=>n,aI:()=>i,dK:()=>h,jy:()=>r,kE:()=>u,l7:()=>d,rg:()=>I,wO:()=>C});const n="left-layout:mt-inter-observer:exposure-track:set:shown-cids",r="left-layout:mt-inter-observer:exposure-track:set:observer-items-obj",c="left-layout:mt-inter-observer:exposure-track:add:observer-items-obj",o="left-layout:mt-inter-observer:exposure-track:exec-observe",I="search-panel:mt-inter-observer:load-mt-data:init-observer",u="search-panel:mt-inter-observer:load-mt-data:exec-observe",d="combo-panel:mt-inter-observer:load-mt-data:init-observer",C="combo-panel:mt-inter-observer:load-mt-data:exec-observe",h="widget-modal:mt-inter-observer:load-mt-data:init-observer",i="widget-modal:mt-inter-observer:load-mt-data:exec-observe"},88944:(He,ee,e)=>{"use strict";e.d(ee,{$n:()=>p,MO:()=>d,O3:()=>h,VW:()=>I,Vi:()=>u,W0:()=>f,Ww:()=>C,Zf:()=>l,_Y:()=>o,m8:()=>i});var n=e(5209),r=e(20089),c=e(81717);let o=function(_){return _.CanvasRight="\u753B\u5E03\u53F3\u952E",_.SettingPanel="\u5C5E\u6027\u9762\u677F",_.PageList="\u76EE\u5F55\u5217\u8868",_.LayersList="\u56FE\u5C42\u5217\u8868",_.Toolbar="\u9876\u90E8\u680F",_.Other="\u5176\u4ED6",_}({}),I=function(_){return _.LeftAlign="\u5DE6\u5BF9\u9F50",_.HorizontalAlign="\u6C34\u5E73\u5C45\u4E2D",_.RightAlign="\u53F3\u5BF9\u9F50",_.JustifyAlign="\u4E24\u7AEF\u5BF9\u9F50",_.TopAlign="\u9876\u5BF9\u9F50",_.VerticalAlign="\u5782\u76F4\u5C45\u4E2D",_.BottomAlign="\u5E95\u5BF9\u9F50",_.HorizontalEquidistant="\u6C34\u5E73\u7B49\u95F4\u8DDD",_.VerticalEquidistant="\u5782\u76F4\u7B49\u95F4\u8DDD",_.SelectLayers="\u9009\u62E9\u56FE\u5C42",_.Combination="\u7EC4\u5408",_.BreakUp="\u6253\u6563",_.Locked="\u9501\u5B9A",_.UnLocked="\u89E3\u9501",_.MoveUp="\u4E0A\u79FB(\u4E0A\u79FB\u4E00\u5C42)",_.MoveDown="\u4E0B\u79FB(\u4E0B\u79FB\u4E00\u5C42)",_.Top="\u7F6E\u9876",_.Bottom="\u7F6E\u5E95",_.Copy="\u590D\u5236",_.Cut="\u526A\u5207",_.Paste="\u7C98\u8D34",_.PropertyPaste="\u5C5E\u6027\u7C98\u8D34",_.Delete="\u5220\u9664",_.Hide="\u9690\u85CF",_.Show="\u663E\u793A",_.SwitchMuban="\u8F6C\u6362\u4E3A\u6BCD\u7248",_.SwitchBasket="\u8F6C\u6362\u4E3A\u52A8\u6001\u7EC4\u4EF6",_.AddToMyCombo="\u6DFB\u52A0\u5230\u6211\u7684\u7EC4\u4EF6(\u6DFB\u52A0\u7EC4\u4EF6\u7D20\u6750\u5230\u6211\u7684\u7EC4\u4EF6)",_.AddToOrgCombo="\u6DFB\u52A0\u5230\u4F01\u4E1A\u7EC4\u4EF6(\u6DFB\u52A0\u7EC4\u4EF6\u7D20\u6750\u5230\u4F01\u4E1A\u7EC4\u4EF6)",_.AutoFill="\u667A\u80FD\u586B\u5145",_.CopySharingLink="\u590D\u5236\u5206\u4EAB\u94FE\u63A5",_.CopyAsPng="\u590D\u5236\u4E3A PNG",_.CopyIta="\u590D\u5236\u4E8B\u4EF6",_.SettingPanelExportToPNG="\u53F3\u4FA7\u9762\u677F\u5E95\u90E8\u5BFC\u51FA",_}({});const u={[r.Q.FIXED_TYPE.not_fixed]:"\u4E0D\u56FA\u5B9A",[r.Q.FIXED_TYPE.top]:"\u76F8\u5BF9\u9876\u90E8\u56FA\u5B9A",[r.Q.FIXED_TYPE.bottom]:"\u76F8\u5BF9\u5E95\u90E8\u56FA\u5B9A",[r.Q.FIXED_TYPE.sticky]:"\u5438\u9876\u56FA\u5B9A"},d={left:I.LeftAlign,right:I.RightAlign,center:I.HorizontalAlign,top:I.TopAlign,middle:I.VerticalAlign,bottom:I.BottomAlign},C={"flex-start":I.TopAlign,"flex-end":I.BottomAlign,center:I.VerticalAlign},h=_=>{let{operation_from:b,operation_type:a}=_;(0,n.kH)("common_operation_V8",{operation_from:b,operation_type:a}),c.Y4.editProjectNew("\u901A\u7528\u64CD\u4F5C")},i=_=>{let{operationType:b}=_;h({operation_from:o.CanvasRight,operation_type:b})},f=_=>{let{operationType:b}=_;h({operation_from:o.SettingPanel,operation_type:b})},p=_=>{let{operationType:b}=_;h({operation_from:o.Toolbar,operation_type:b})},s={rounded:"\u5706\u89D2\u6298\u7EBF",sharp:"\u76F4\u89D2\u6298\u7EBF",straight:"\u76F4\u7EBF",curve:"\u66F2\u7EBF"},l=_=>{(0,n.kH)("connectionline_type_click",{line_type:s[_]})}},88987:(He,ee,e)=>{"use strict";e.d(ee,{F3:()=>o,Go:()=>c,Iw:()=>r,VX:()=>d,jm:()=>I,zb:()=>u});var n=e(19249);const r=C=>(0,n.SN)("/api/dashboard/v4/orgs/"+C+"/enable_trial"),c=async C=>{try{const h=await(0,n.zi)("/api/payment/v4/coupon/double_coupon",{type:C});if(h.msg){if(h.msg==="already redeemed")return MB.notice({text:"\u{1F389} \u4F18\u60E0\u5238\u9886\u53D6\u6210\u529F\uFF0C\u8BF7\u524D\u5F80\u5347\u7EA7"}),!0;if(h.msg==="coupon not found")return MB.notice({text:"\u4F18\u60E0\u5238\u4E0D\u5B58\u5728"}),!1}return MB.notice({text:"\u{1F389} \u4F18\u60E0\u5238\u9886\u53D6\u6210\u529F\uFF0C\u8BF7\u524D\u5F80\u5347\u7EA7"}),!0}catch(h){return MB.notice({text:"\u4F18\u60E0\u5238\u9886\u53D6\u5931\u8D25"}),!1}},o=()=>(0,n.DE)("/api/dashboard/v4/orgs/list"),I=async C=>{const{members:h}=await(0,n.DE)("/api/dashboard/v5/orgs/"+C+"/members");return h},u=async C=>{const{library_accesses:h}=await(0,n.DE)("/api/library/v3/orgs/"+C+"/library_accesses");return{library_accesses:h}},d=async C=>{let{actionType:h,action:i,orgCid:f,teamCid:p,projectCid:s,extra:l}=C;const _={action_type:h,action:i,org_cid:f,team_cid:p,project_cid:s,extra:l};try{await(0,n.Ds)("/go/v1/org-operation-logs/new-log",_)}catch(b){console.error("TrackOrgOperation Error:",b,"LogData:",_)}}},89080:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>f});var n=e(79371),r=e.n(n),c=e(38502),o=e(67787),I=e(77698),u=e(53732),d=e.n(u),C=e(72214);const h=p=>{let{className:s,style:l,dataList:_=[],batchCount:b=10,limitations:a=100,itemHeight:M,activeKey:x,propsMap:g={},preItemHeight:S=0,preItemRender:t,isCollapsed:v,itemRender:w}=p;const{children:k="children",collapsed:W="collapsed",key:K="key"}=g,G=(0,c.useRef)(null),$=(0,c.useRef)(new Map),P=(0,c.useMemo)(()=>{$.current.clear();const A=v||(B=>B[W]),D=function(B,j){var F;return j===void 0&&(j=0),$.current.set(B[K],j),!A(B)&&(F=B[k])!=null&&F.length?B[k].reduce((Y,X)=>(Y.push(...D(X,j+1)),Y),[B]):[B]};return _.reduce((B,j)=>(B.push(...D(j,0)),B),[])},[_,v]),E=P.length,H=E>a,O=S+E*M,V=(0,c.useRef)(x?P.findIndex(A=>A[K]===x):0),[Q,N]=(0,c.useState)(H&&V.current>=0?Math.floor(V.current/10):0),L=H?P.slice(Q*b,(Q+2)*b).map(A=>A[K]):null,U=r()(A=>{if(!H)return;const D=A.target;let B=Math.floor(D.scrollTop/(M*b));B=Math.min(Math.max(0,B),E-b*2),N(B)},10);return(0,c.useEffect)(()=>{H||N(0)},[H,Q]),(0,c.useEffect)(()=>{x&&G.current&&V.current>0&&(G.current.scrollTop=(V.current-1)*M)},[]),(0,C.jsxs)(i,{className:d()("lazy-list",s),style:l,ref:G,onScroll:U,children:[(0,C.jsxs)("div",{className:"lazy-list-content",style:{height:O},children:[t,(0,C.jsx)("div",{className:"content-area",style:{transform:"translateY("+Math.max(0,Q*b*M)+"px)"},children:P.map((A,D)=>{const B=A[K];return L&&!L.includes(B)?null:w({item:A,index:D,depth:$.current.get(B)||0})})})]}),(0,C.jsx)(I.$T,{containerRef:G,minSize:20,isAutoHideBar:!1})]})},i=o.Ay.div.withConfig({displayName:"LazyList__StyledLazyList",componentId:"sc-89eelj-0"})(["height:100%;overflow:auto;.thumb-vertical::after{margin-left:2px;}::-webkit-scrollbar-corner,::-webkit-scrollbar-thumb,::-webkit-scrollbar-track{background-color:transparent;}"]),f=h},89240:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>s});var n=e(38502),r=Object.defineProperty,c=Object.defineProperties,o=Object.getOwnPropertyDescriptors,I=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,C=(l,_,b)=>_ in l?r(l,_,{enumerable:!0,configurable:!0,writable:!0,value:b}):l[_]=b,h=(l,_)=>{for(var b in _||(_={}))u.call(_,b)&&C(l,b,_[b]);if(I)for(var b of I(_))d.call(_,b)&&C(l,b,_[b]);return l},i=(l,_)=>c(l,o(_)),f=(l,_)=>{var b={};for(var a in l)u.call(l,a)&&_.indexOf(a)<0&&(b[a]=l[a]);if(l!=null&&I)for(var a of I(l))_.indexOf(a)<0&&d.call(l,a)&&(b[a]=l[a]);return b},s=(0,n.forwardRef)((l,_)=>{var b=l,{size:a,spin:M,style:x}=b,g=f(b,["size","spin","style"]);const S=h(h({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:M?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),x);return n.createElement("svg",i(h({ref:_,style:S},g),{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),n.createElement("path",{d:"M4.87866 6.12109L6.99998 8.24241L9.1213 6.12109",stroke:"#8B8C8F",strokeLinecap:"round",strokeLinejoin:"round"}))})},89505:(He,ee,e)=>{"use strict";e.d(ee,{c:()=>d});var n=e(78401),r=e(93971),c=e(92272),o=e(4410),I=e(3862),u=e(16335);const d=C=>{const h=(M,x)=>{const{isOrg:g,type:S="user_asset"}=C;if(g)return;let t={};S==="user_asset"?t={projectUpperType:S,projectUpperCid:x,itemCid:M}:(S==="picture"||S==="sticker")&&(t={projectUpperType:"picture",projectUpperCid:M}),(0,u.Cp)(t)},i=(M,x,g,S)=>{const{isOrg:t,rootProject:v,currentOrg:w,currentUser:k,popupsName:W,isFind:K,type:G}=C,$=G==="sticker"?I.R5:I.b4;(0,r.BZ)({tab:K?r.Ii.Find:t?r.Ii.Org:r.Ii.User,popupsName:W,addType:x,category:$,name:g,rootProject:v,currentOrg:w,currentUser:k,esSearchKey:M,resId:S})},f=M=>{const{isOrg:x}=C;(0,n.z3)(M.name,M.image,x)},p=M=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{isOrg:x,dispatch:g}=C;g(x?{type:"entry:batch:transfer:org-asset",payload:{orgAsset:M}}:{type:"entry:batch:transfer:user-asset",payload:{userAsset:M}})},s=M=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{isOrg:x,dispatch:g}=C;g(x?{type:"entry:batch:remove:org-asset",payload:{orgAsset:M}}:{type:"entry:batch:remove:user-asset",payload:{userAsset:M}})},l=M=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{dispatch:x}=C;x({type:"entry:batch:transfer:user:asset:to:org",payload:{userAsset:M}})},_=(M,x)=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{isOrg:g,dispatch:S}=C,t={...M,name:x};S(g?{type:"entry:refresh:org-asset:update",payload:{orgAssetUpdateList:[t]}}:{type:"entry:refresh:user-asset:update",payload:{userAssetUpdateList:[t]}}),S({type:"entry:search-panel:update:asset:name",payload:{cid:M.cid,name:x,isOrg:g}})},b=M=>{var x,g;if(MB.global.experienceLoginModalHelper("isSave"))return;const{dispatch:S}=C;h((x=M.cid)!=null?x:M.asset_cid,M.group_cid),S({type:"entry:create:widget:by:asset",payload:{asset:M}}),i((g=M.asset_cid)!=null?g:M.cid,r.k8.DoubleClick,M.name,M.id)},a=async(M,x)=>{const{canvasRect:g,rootProject:S,showDragMode:t,isAdsorbentReferenceLine:v,popupsName:w}=C,k=(0,c.BL)(x),W=(0,o.g)(w);(0,o.dD)({e:M,items:[k],width:k.w,height:k.h,doNotCreateRect:W,canvasRect:g,rootProject:S,showDragMode:t,isAdsorbentReferenceLine:v,callback:()=>{var K,G;h((K=x.cid)!=null?K:x.asset_cid,x.group_cid),i((G=x.asset_cid)!=null?G:x.cid,r.k8.Drag,x.name,x.id)}})};return{onAssetDownload:f,onAssetMove:p,onAssetRemove:s,onAssetAdd:!C.isOrg&&C.currentOrg?l:null,onAssetNameConfirm:_,onAssetImport:b,onMouseDown:a}}},89671:(He,ee,e)=>{"use strict";e.d(ee,{d:()=>r});var n=e(67787);const r=n.Ay.div.withConfig({displayName:"styles__StyledSinglePanelState",componentId:"sc-1g89c81-0"})(["display:flex;justify-content:space-between;align-items:center;width:100%;padding:0 14px;color:",";.left-label{height:14px;line-height:14px;white-space:nowrap;}.right-content{width:140px;display:flex;flex-wrap:wrap;justify-content:space-between;}.panelstate-select{width:140px;margin-left:auto;&:lang(ja){width:110px;}}.panelstate-selectmenu{width:140px;}"],c=>c.theme.color_text_L2)},89853:(He,ee,e)=>{"use strict";e.d(ee,{FP:()=>o,Io:()=>u,Xb:()=>I,d8:()=>d});const n=C=>Math.cos(C*Math.PI/180),r=C=>Math.sin(C*Math.PI/180),c=(C,h,i)=>{const f=h*Math.PI/180,p={x:i.x-C.x,y:i.y-C.y},{x:s,y:l}=p,_=s*Math.cos(f)-l*Math.sin(f),b=l*Math.cos(f)+s*Math.sin(f);return{x:_+C.x,y:b+C.y}},o=(C,h)=>Math.atan2(h,C)/Math.PI*180,I=(C,h)=>Math.sqrt(Math.pow(C,2)+Math.pow(h,2)),u=(C,h,i,f)=>Math.sqrt(Math.pow(i-C,2)+Math.pow(f-h,2)),d=(C,h)=>{const[i,f]=h;return typeof i=="number"&&C<i?i:typeof f=="number"&&C>f?f:C}},89886:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>d});var n=e(38502),r=e(17307),c=e(61068),o=e(5649),I=e(20166),u=e(72214);const d=(0,n.memo)(C=>{let{layoutGrid:h,rowCount:i,colWidth:f,onChange:p,dispatch:s,selections:l}=C;const{isGridLayout:_,gridSize:b,isRowLayout:a,rowHeight:M,rowGutter:x,isColLayout:g,colCount:S,colGutter:t}=h,v=(w,k)=>{const W={...h,[k]:w};p({value:W,attr:"layoutGrid",dispatch:s,selections:l})};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:"screen-line grid-line",children:[(0,u.jsx)(c.A,{className:"check "+c.p,attr:"isGridLayout",isChecked:_,onChange:(w,k)=>{v(w,k),(0,I.A9)({attr:"isGridLayout",isOpen:!_})}}),(0,u.jsx)("div",{className:"dir-icon",children:(0,u.jsx)(r.C,{name:"setting_panel/layout/grid"})}),(0,u.jsx)(o.A,{className:"input",attr:"gridSize",value:b,min:1,max:99999,onConfirm:v})]}),(0,u.jsxs)("div",{className:"screen-line",children:[(0,u.jsx)(c.A,{className:"check "+c.p,attr:"isColLayout",isChecked:g,onChange:(w,k)=>{v(w,k),(0,I.A9)({attr:"isColLayout",isOpen:!g})}}),(0,u.jsx)("div",{className:"dir-icon",children:(0,u.jsx)(r.C,{name:"setting_panel/layout/grid_column"})}),(0,u.jsx)(o.s,{className:"input",attr:"colCount",value:S,toolTipContent:I18N.SettingPanel.count,disabled:!g,min:1,onConfirm:v,direction:"down"}),(0,u.jsx)(o.s,{className:"input middle-input",attr:"colGutter",value:t,toolTipContent:I18N.SettingPanel.gutter,disabled:!g,min:0,onConfirm:v,direction:"down"}),(0,u.jsx)(o.s,{className:"input",value:f,toolTipContent:I18N.SettingPanel.size,disabled:!0,min:0,direction:"down"})]}),(0,u.jsxs)("div",{className:"screen-line",children:[(0,u.jsx)(c.A,{className:"check "+c.p,attr:"isRowLayout",isChecked:a,onChange:(w,k)=>{v(w,k),(0,I.A9)({attr:"isRowLayout",isOpen:!a})}}),(0,u.jsx)("div",{className:"dir-icon",children:(0,u.jsx)(r.C,{name:"setting_panel/layout/grid_row"})}),(0,u.jsx)(o.s,{className:"input",attr:"rowCount",value:i,toolTipContent:I18N.SettingPanel.rows,disabled:!a,min:0,onConfirm:v,direction:"down"}),(0,u.jsx)(o.s,{className:"input middle-input",attr:"rowGutter",value:x,toolTipContent:I18N.SettingPanel.gutter,disabled:!a,min:0,onConfirm:v,direction:"down"}),(0,u.jsx)(o.s,{className:"input",value:M,toolTipContent:I18N.SettingPanel.size,disabled:!a,min:0,direction:"down",onConfirm:v})]})]})})},89989:(He,ee,e)=>{"use strict";e.d(ee,{a:()=>n});const n="CMT:CHG"},90144:(He,ee,e)=>{"use strict";e.d(ee,{Ac:()=>o,Dn:()=>r,d0:()=>I,gQ:()=>c});var n=e(5209);const r={WIDGET_FIND:"\u7EC4\u4EF6-\u53D1\u73B0",WIDGET_SEARCH:"\u7EC4\u4EF6-\u641C\u7D22",PAGE_LIB:"\u9875\u9762-\u9875\u9762\u5E93",ICON_SEARCH:"\u56FE\u6807-\u641C\u7D22",PIC_FIND:"\u56FE\u7247-\u53D1\u73B0",STICKER_FIND:"\u8D34\u7EB8-\u53D1\u73B0",COLOR_ICON_SEARCH:"\u5F69\u8272\u56FE\u6807-\u641C\u7D22"},c=u=>{let{widget_file_name:d,keyword:C="",source:h,filter:i=""}=u;(0,n.kH)("template_viewall_click",{widget_file_name:d,keyword:C,source:h,filter:i})},o=u=>{let{source:d}=u;(0,n.kH)("tab_click",{source:d})},I=u=>{(0,n.kH)("template_exposure",u)}},90592:(He,ee,e)=>{"use strict";e.d(ee,{JB:()=>o,i4:()=>c,t_:()=>I});var n=e(67787),r=e(80985);const c=(0,n.Ay)(r.o).withConfig({displayName:"styles__StyledScrollableMarketTemplateMasonryList",componentId:"sc-15mlyhq-0"})(["height:100%;overflow:hidden auto;margin-bottom:8px;scrollbar-width:none;&::-webkit-scrollbar{display:none;}&:hover::-webkit-scrollbar{display:block;}.market-template-masonry-list-container{width:250px;}"]),o=n.Ay.div.withConfig({displayName:"styles__StyledMarketTemplateMasonryList",componentId:"sc-15mlyhq-1"})(["width:100%;height:fit-content;&.combo_group{padding:0 12px;}&.screen_list,&.project_basic{padding:1px 8px 0 8px;display:flex;justify-content:space-between;}"]),I=n.Ay.ul.withConfig({displayName:"styles__StyledMarketTemplateMasonryColumn",componentId:"sc-15mlyhq-2"})(["&.combo_group{display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(auto-fill,109px);.template-item{width:109px;flex:0 0 109px;position:relative;width:100%;justify-content:start;margin-bottom:0;.img-wrapper{width:100%;height:109px;}}}&.screen_list,&.project_basic{width:100%;&.mobile{width:calc(50% - 4px);.template-item{.img-wrapper{min-height:109px;max-height:265px;border-radius:6px;}}}&:not(.template-modal){&.mobile{width:116px;.template-item{border-radius:8px;padding:4px 0 8px 0;.img-wrapper{width:109px;min-height:109px;max-height:265px;border-radius:6px;}.template-name{width:100%;margin-top:8px;text-align:left;padding-left:6px;}&:hover{background:",";}}}&.web{.template-item{border-radius:10px;padding:6px 6px 8px 6px;margin-bottom:4px;.template-name{width:100%;margin-top:8px;text-align:left;padding-left:4px;}&:hover{background:",";}}}}&.visual{.template-item .img-wrapper{min-height:110px;}}.template-item{position:relative;width:100%;&.last-mt-item{margin-bottom:0;}.img-wrapper{width:100%;min-height:126px;max-height:510px;border:1px solid ",";padding:0px;}}}"],u=>u.theme.color_btn_secondary_hover,u=>u.theme.color_btn_secondary_hover,u=>u.theme.color_bg_border_01)},91063:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>d});var n=e(38502),r=e(67787),c=e(46953),o=e(72214);const I=C=>{const h=(0,n.useRef)(null),[i,f]=(0,n.useState)(!1),{name:p,varData:s,varDataType:l}=C.varAttr;(0,n.useEffect)(()=>{var a,M;const x=(a=h.current)==null||(M=a.closest)==null?void 0:M.call(a,".TipBase");if(!x)return;const{x:g,y:S}=x.getBoundingClientRect(),t=document.elementFromPoint(g,S),v=t!=null&&t.classList.contains("var-tag")?t:t==null?void 0:t.querySelector(".var-tag");if(!v)return;if(C.overflowWidth){v.lastElementChild.scrollWidth>=C.overflowWidth&&f(!0);return}const{width:w}=v.getBoundingClientRect(),k=w-4;let W=0;for(let K=0;K<v.children.length;K++)if(W+=v.children[K].scrollWidth+K*4,W>k)return f(!0)},[]),(0,n.useEffect)(()=>{if(i){const{right:a}=h.current.getBoundingClientRect(),M=a+8-window.innerWidth;M>0&&(h.current.parentElement.style.marginRight=M*2+8+"px")}},[i]);const _=!C.showName||i,b=C.showName||i;return(0,o.jsxs)(u,{ref:h,children:[_&&(0,o.jsxs)("p",{className:"var-name",children:[I18N.Variable.name,":\xA0",p||I18N.Variable.trashed]}),b&&(0,o.jsxs)("p",{className:"var-data var-"+l+"-data",children:[I18N.Variable.init_value,":\xA0",(0,c.LK)(l,s,!0)]}),C.isTrashed?I18N.Variable.replace_trashed:C.isInvaild?I18N.Variable.invaild.replace("{v}",C.value):""]})},u=r.Ay.div.withConfig({displayName:"VarTagTip__StyledVarTagTip",componentId:"sc-1g51174-0"})(["max-width:240px;.var-name{word-break:break-all;}.var-data{max-height:300px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:12;line-clamp:12;text-overflow:ellipsis;word-break:break-all;white-space:pre-wrap;overflow:hidden;}"]),d=I},91110:(He,ee,e)=>{"use strict";e.d(ee,{Y:()=>c});var n=e(79209),r=e(5209);let c;(function(o){function I(l){r.kH&&(0,r.kH)("user_source",{page_address:l,btn_name:"\u539F\u578Bv8\u9884\u89C8\u672A\u767B\u5F55"})}o.userSourceTrack=I;function u(){r.kH&&(0,r.kH)("enter_proto")}o.enterProtoTrack=u;function d(){r.kH&&(0,r.kH)("show_v8newguide")}o.showNewGuideTrack=d;function C(l){let{step_num:_}=l;r.kH&&(0,r.kH)("click_v8newguide",{step_num:_})}o.clickNewGuideTrack=C;function h(l){let{step_num:_}=l;r.kH&&(0,r.kH)("close_newguide",{step_num:_})}o.closeNewGuideTrack=h;function i(l,_){const b=_.split("-")[0];r.kH&&(0,r.kH)("need_guide_click",{operation_type:l,guide_type:b==="MP"?"\u79FB\u52A8\u7AEF":b==="PC"?"PC\u7AEF":"\u5176\u4ED6"})}o.noviceGuide2309StartClick=i;function f(l,_){const b=_.split("-")[0];r.kH&&(0,r.kH)("guide_step_click",{operation_type:l,guide_type:b==="MP"?"\u79FB\u52A8\u7AEF":b==="PC"?"PC\u7AEF":"\u5176\u4ED6"})}o.noviceGuide2309StepClick=f;function p(l){r.kH&&(0,r.kH)("after_guide_click",{operation_type:l})}o.noviceGuide2309CouponClick=p;function s(){try{r.kH&&(0,r.kH)("canvas_page_count_V8",{page_number:(0,n.Uu)(),canvas_number:(0,n.$Q)()})}catch(l){}}o.designScreenCanvasCountTrack=s})(c||(c={}))},91137:(He,ee,e)=>{"use strict";e.d(ee,{h:()=>f});var n=e(38502),r=e(53732),c=e.n(r),o=e(17307),I=e(83199),u=e(91063),d=e(46953),C=e(67787),h=e(75810),i=e(72214);const f=s=>{const{className:l="",varItem:_,isTrashed:b,showName:a}=s;return(0,i.jsxs)(p,{className:c()("var-selector-input",l),children:[_?(0,i.jsx)(I.A,{direction:"down",enterHoverTime:200,isSkipShortTimerHover:!0,tipClassName:"fixed-transform-y10 is-open",content:(0,i.jsx)(u.A,{showName:!0,isTrashed:b,varAttr:_}),children:(0,i.jsxs)("div",{className:c()(["var-tag",{"is-name":a,"is-trashed":b}]),children:[b?(0,i.jsx)(o.C,{size:16,name:"design/preferencePanel/nav/tips",className:"var-icon tip-icon"}):a?(0,i.jsx)(o.C,{size:16,name:(0,d.Zg)(_.varDataType,_.varData),className:"var-icon"}):null,(0,i.jsx)("span",{children:a?_.name:String(_.varData)})]})}):(0,i.jsx)("span",{className:"placeholder",children:I18N.SettingPanel.please_select}),(0,i.jsx)(o.C,{className:"expand-icon",name:"common/expand@26"})]})},p=C.Ay.div.withConfig({displayName:"VarOpener__StyledVarOpener",componentId:"sc-17vx43w-0"})(["width:100%;height:28px;border-radius:6px;padding-left:4px;color:",";border:1px solid transparent;resize:none;display:flex;align-items:center;&:hover{border:1px solid ",";justify-content:space-between;.expand-icon{color:",";}}.placeholder{color:",";}.expand-icon{width:26px;height:26px;flex-shrink:0;color:",";margin-left:4px;}.var-tag{position:relative;height:20px;color:",";display:inline-flex;align-items:center;max-width:calc(100% - 28px);padding-left:2px;margin-right:2px;+ .expand-icon{margin-left:0;}span{max-width:100%;overflow:hidden;white-space:pre;text-overflow:ellipsis;}.var-icon{margin-right:6px;flex-shrink:0;font-size:14px;rect{fill:",";stroke:",";}}svg + span{max-width:calc(100% - 16px);}&.is-trashed{color:",";.var-icon{color:",";}}}"],s=>s.theme.color_text_L1,s=>s.theme.color_bg_border_02,s=>s.theme.color_text_L1,s=>s.theme.color_text_link_normal,s=>s.theme.color_text_L3,s=>s.theme.color_text_L1,s=>s.theme.color_bg_white,s=>(0,h.oU)(s,"color_bg_black"),s=>s.theme.color_warning,s=>s.theme.color_warning)},91210:(He,ee,e)=>{"use strict";e.d(ee,{B:()=>n});const n=r=>{const{dispatch:c,isOrg:o,localOrgAssetsOpenCids:I,localUserAssetsOpenCids:u}=r,d=b=>{c(o?{type:"entry:refresh:org-asset:from:cid",payload:{groupCid:b}}:{type:"entry:refresh:user-asset:from:cid",payload:{groupCid:b}})},C=b=>{const{cid:a}=b;if(o){if(Object.prototype.toString.call(I)==="[object Array]"){const M=I.includes(a)?"minus":"plus";c({type:"image-panel:set:local-org-assets-expand-cids",payload:{oper:M,cid:a}}),M==="plus"&&d(b.cid)}}else if(Object.prototype.toString.call(u)==="[object Array]"){const M=u.includes(a)?"minus":"plus";c({type:"image-panel:set:local-user-assets-expand-cids",payload:{oper:M,cid:a}}),M==="plus"&&d(b.cid)}},h=(b,a,M,x)=>{if(MB.global.experienceLoginModalHelper("isSave"))return;c({type:"entry:auto:change:confirm:asset_group:name",payload:{assetGroup:a,assetGroupName:b,callback:M,isOrg:x!==void 0?x:o}})},i=b=>{MB.global.experienceLoginModalHelper("isSave")||c({type:"update:popups:state",payload:{editingCid:b}})},f=(b,a)=>{if(MB.global.experienceLoginModalHelper("isSave"))return;c((a!==void 0?a:o)?{type:"entry:remove:org-asset-group",payload:{assetGroup:b}}:{type:"entry:remove:user-asset-group",payload:{assetGroup:b}})},p=b=>{MB.global.experienceLoginModalHelper("isSave")||c({type:"entry:transfer:to:org:asset-groups",payload:{assetGroup:b}})},s=b=>{c(o?{type:"entry:refresh:org-asset:from:cid",payload:{groupCid:b}}:{type:"entry:refresh:user-asset:from:cid",payload:{groupCid:b}})},l=b=>{c({type:"entry:auto:create:sub-asset-group",payload:{assetGroup:b,isOrg:o}})},_=(b,a)=>{c({type:"entry:auto:create:asset-group-insertion",payload:{assetGroup:b,isOrg:o,insertionType:a}})};return{onToggle:C,onConfirm:h,onEdit:i,onRemove:f,onTransfer:!r.isOrg&&r.currentOrg?p:null,onLoadData:s,onAddSub:l,onAdd:_}}},91224:(He,ee,e)=>{var n=e(29921),r=e(68151),c=e(36859),o=e(41391),I=e(3071);function u(d,C,h,i){if(!o(d))return d;C=r(C,d);for(var f=-1,p=C.length,s=p-1,l=d;l!=null&&++f<p;){var _=I(C[f]),b=h;if(_==="__proto__"||_==="constructor"||_==="prototype")return d;if(f!=s){var a=l[_];b=i?i(a,_,l):void 0,b===void 0&&(b=o(a)?a:c(C[f+1])?[]:{})}n(l,_,b),l=l[_]}return d}He.exports=u},91474:(He,ee,e)=>{"use strict";e.d(ee,{Il:()=>r,Ny:()=>I,RY:()=>h,Uf:()=>u,_n:()=>d,eD:()=>c,i1:()=>o,rW:()=>i,yB:()=>C});let n=function(f){return f.MOBILE="mobile",f.WEB="web",f.OTHER="other",f.APP="app",f.APPLET="applet",f.WEB_BACK="web_back",f.WEBSITE="website",f.IPAD="ipad",f.SMART_TV="smart_tv",f.SMART_CAR="smart_car",f.APPLE_WATCH="apple_watch",f.SLIDE="slide",f.DISPLAY_SCREEN="display_screen",f.HMI="HMI",f.HMI2="visual",f.ACTIVITY="activity",f}({});const r=[n.MOBILE,n.APP,n.APPLET],c=[n.WEB,n.WEB_BACK,n.WEBSITE],o=[n.OTHER,n.IPAD,n.SMART_TV,n.SMART_CAR,n.APPLE_WATCH,n.SLIDE,n.DISPLAY_SCREEN,n.HMI,n.ACTIVITY],I=[n.MOBILE,n.WEB,n.HMI2],u=[n.MOBILE,n.WEB,n.OTHER],d={Everyone:"everyone",MdMemberFree:"member_free",MdMemberDiscount:"member_discount",MdOriginPrice:"origin_price",MktMemberFree:"mt_member_free",MktMemberDiscount:"mt_member_discount",MktOriginPrice:"mt_origin_price"},C="default",h=[d.Everyone,d.MktMemberFree,d.MktMemberDiscount,d.MdMemberFree],i={everyone_mt_member_free_mt_member_discount_member_free:"every_md_mt_free",everyone:"everyone",mt_member_free_mt_member_discount:"mt_free_discount",member_free:"member_free",everyone_mt_member_free_mt_member_discount:"every_mt_free",everyone_member_free:"every_md_free",mt_member_free_mt_member_discount_member_free:"md_mt_free"}},92001:(He,ee,e)=>{"use strict";e.d(ee,{p:()=>a});var n=e(95549),r=e(38502),c=e(13642),o=e(49989),I=e(17307),u=e(39094),d=e(788),C=e(28068),h=e(56074),i=e(69815),f=e(36449),p=e(31781),s=e(18488),l=e(79209),_=e(88959),b=e(72214);class a extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"store",(0,h.A)({isVisible:!1})),(0,n.A)(this,"isFree",(0,l._S)()),(0,n.A)(this,"handleHyperLink",async()=>{const{isHavingLink:g}=this.props,{_getEditorState:S}=(0,i.DT)(),t=MB.getSelectionItems()[0];if(t){if(S){const w=(0,C.Jy)(window),{left:k,top:W,bottom:K,width:G}=w,$={top:K,left:k+G/2-24},P=S(),E=(0,d.Kt)(P),{link:H,selectionText:O,blockKey:V,start:Q,end:N}=(0,u.Q)(P,E);H&&H.target?c.A.emit("draft:link-toast:edit",{widget:t,linkTitle:H.title||O||"",linkTarget:H.target||"",style:$,blockKey:V,start:Q,end:N,fromType:"settingPanel",settingLevel:"editing"}):c.A.emit("draft:link-toast:add",{widget:t,linkTitle:O||"",linkTarget:"",style:$,blockKey:V,start:Q,end:N,fromType:"settingPanel",settingLevel:"editing"})}else{const w=document.querySelector("#text-dom-"+t.key).getBoundingClientRect(),{left:k,top:W,bottom:K,width:G}=w,$={top:K,left:k+G/2-24};if(g==="exist"){var v;const P=((v=Object.values(t.hotAttr.textV1.entityMap).find(E=>E.type==="LINK"))==null?void 0:v.data.url)||"";c.A.emit("draft:link-toast:edit",{widget:t,linkTitle:"",linkTarget:P,style:$,blockKey:"",start:"",end:"",fromType:"settingPanel",settingLevel:"widget"})}else c.A.emit("draft:link-toast:add",{widget:t,linkTitle:"",linkTarget:"",style:$,blockKey:"",start:"",end:"",fromType:"settingPanel",settingLevel:"widget"})}MB.__store__.dispatch({type:f.k.EntryKey["entry:draft:isCreatingLink:update"],payload:{isCreatingLink:!0}}),(0,p.yt)("\u63D2\u5165\u94FE\u63A5")}})}render(){const{className:g,isHavingLink:S}=this.props,t=MB.getSelectionItems()[0],v=!(0,s.xc)(t==null?void 0:t.hotAttr);return(0,b.jsx)(o.A,{disabled:v||this.isFree,className:g+(!v&&this.isFree?" is-free-disabled":""),options:M(this.isFree),value:S,handleChange:this.handleHyperLink,isLongTimeHover:!0})}}const M=x=>[{label:(0,b.jsx)(I.C,{name:"setting_panel/font/hyper_link"}),value:"exist",tip_title:x?(0,b.jsx)(_.A,{desc:"\u7F16\u8F91\u533A-v8_\u6587\u672C\u94FE\u63A5\u8BBE\u7F6E"}):"\u8D85\u94FE\u63A5",isFree:x}]},92414:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>S});var n=e(38502),r=e(18381),c=e(53732),o=e.n(c),I=e(73352),u=e(61899),d=e(88463),C=e(67787),h=e(79150),i=e(81973),f=e(10472),p=e(46953),s=e(4649),l=e(74222),_=e(9680),b=e(57150),a=e(72214);const M={number:["number"],string:["string","number"],boolean:["boolean"]},x=(0,n.forwardRef)((t,v)=>{var w;let{type:k,filterTypes:W,value:K,defaultVarData:G,needConfirm:$,selectedStyle:P,readOnly:E,onChange:H,onSelect:O,onListChanged:V,...Q}=t;const N=(0,r.d4)(i.ue),L=!((w=(0,r.d4)(f.r))!=null&&w.isEditingCombo),U=(0,r.wA)(),A=(0,n.useRef)(null),[D,B]=(0,n.useState)(""),[j,F]=(0,n.useState)(null),[Y,X]=(0,n.useState)(K?[K]:[]),z=(0,n.useRef)(null),Z=K&&sdkStore.isTrashed(K)&&(0,_.hZ)(K),J=(0,n.useRef)(),te=(W!=null?W:k)?M[k]:[],ge=(0,n.useMemo)(()=>{let re=N.slice();if(te!=null&&te.length&&(re=N.filter(Se=>te.includes(Se.hotAttr.varDataType))),re.sort((Se,Me)=>Se.hotAttr.zIndex-Me.hotAttr.zIndex),Z&&Z.isTrashed&&re.unshift({key:Z.key,hotAttr:Z}),E)return re.filter(Se=>Se.key===K);if(!D)return re;const fe=D.toLowerCase();return re.filter(Se=>Se.hotAttr.name.toLowerCase().includes(fe)||String(Se.hotAttr.varData).includes(fe))},[k,te,N,D,Z,E]);(0,n.useImperativeHandle)(v,()=>({updateEditorPosition:()=>{F(re=>{if(re){const fe=$?(0,p._G)(A.current,re.item.hotAttr.varDataType):(0,p.iL)(re.item,A.current);return{...re,position:fe}}return null})}}),[$]),(0,n.useEffect)(()=>{var re;(re=z.current)==null||re.call(z,N)},[N]),(0,n.useEffect)(()=>{X(K?[K]:[])},[K]),(0,n.useEffect)(()=>{K&&(0,p.tG)(K,A.current)},[]);const pe=()=>{U({type:"settings:update:varList",payload:{varList:(0,_.pU)()}})},Ce=re=>{B(re)},me=re=>{const fe=(0,p.hX)(N.map(Ie=>Ie.hotAttr.name)),Se={key:(0,s.dU)(),hotAttr:(0,s.mn)({name:fe,zIndex:0,varDataType:re,varData:(0,p.D5)(re,G),description:"",varType:"variable"}),sub:[],sup:l.fu};if($){const Ie=(0,p._G)(A.current,Se.hotAttr.varDataType);F({item:Se,autoFocusArea:"varName",position:Ie});return}sdkStore.combineMergeMark("add-items"),J.current="add-items";const Me=(0,_.pU)();(0,_.E4)("",[Se,...Me]),pe(),z.current=Ie=>{z.current=null;const de=Ie.find(xe=>xe.key===Se.key);de&&(X([de.key]),H(de.key,!0),O==null||O(de.key),F({item:de,autoFocusArea:"varName",position:(0,p.iL)(de,A.current)})),V==null||V()}},be=()=>{j&&(K===j.item.key&&H(""),J.current&&(sdkStore.combineMerge(J.current),J.current=""),sdkStore.combineMergeMark("delete-items"),sdkStore.deleteHotItem(j.item.key),(0,_.E4)("delete-items"),pe(),oe(),z.current=()=>{z.current=null,V==null||V()})},ie=re=>{re?(X([re.key]),H(re.key),O==null||O(re.key)):(X([]),H(""),O==null||O(""),F(null))},oe=()=>{F(null),!$&&(J.current&&(sdkStore.combineMerge(J.current),J.current=""),Y.length&&(O==null||O(Y[0])))},he=(re,fe)=>{if($&&j&&!sdkStore.getHotItem(re)){const Se=j.item;Object.assign(Se.hotAttr,fe),J.current||(J.current="update-item",sdkStore.combineMergeMark(J.current)),sdkStore.updateHotItem(Se),(0,_.E4)(),pe(),X([re]),H(re),z.current=()=>{z.current=null,(0,p.tG)(re,A.current),V==null||V()};return}sdkStore.updateHotAttrMerge(re,fe),pe(),H(re)},ce=re=>{re.stopPropagation()};return(0,a.jsxs)(g,{ref:A,...Q,onClick:ce,children:[!E&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.A,{placeholder:I18N.Variable.search.placeholder,value:D,className:"var-search",onChange:Ce}),(0,a.jsx)("div",{className:"menu-divider"}),L&&(te.length===1?(0,a.jsx)(h.A,{name:"common/add_plus",className:o()(["add-button",{"is-active":j}]),onClick:()=>me(te[0]),children:I18N.Variable.create}):(0,a.jsx)(b.A,{offsetX:-30,types:te,onAddVar:me,children:(0,a.jsx)(h.A,{name:"common/add_plus",className:o()(["add-button",{"is-active":j}]),children:I18N.Variable.create})}))]}),(0,a.jsx)(I.A,{className:"var-dropmenu-list",list:ge,selection:Y,onClick:ie,isDropMenu:!0,selectedStyle:P}),j&&(0,a.jsx)(u.A,{editorItem:j.item,position:j.position,autoFocus:j.autoFocusArea,style:{zIndex:1102},needConfirm:$,onClose:oe,onChange:$?null:he,onConfirm:$?he:null,onDelete:be})]})}),g=C.Ay.div.withConfig({displayName:"VarDropmenu__StyledVarDropmenu",componentId:"sc-1ccllw8-0"})(["width:176px;padding:8px;background:",";box-shadow:",";border-radius:8px;color:",";border:1px solid ",";.var-dropmenu-list{padding:0;margin:4px 0 0;&:first-child{margin:0;}}.toolbar-dropdown-opener + .var-dropmenu-list,.add-button + .var-dropmenu-list{.bar-vertical{top:84px;height:calc(100% - 90px);}}.var-search{height:28px;border-radius:6px;background:",";}.menu-item{&:hover{background:",";}}.menu-divider{height:1px;margin:8px 0;background-color:",";}.add-button{width:100%;height:32px;justify-content:flex-start;border-radius:6px;padding:0 6px;font-weight:500;.svg-icon{width:20px;height:20px;}}.add-button.is-active{background:",";}.var-list{padding:0;height:256px;}"],t=>t.theme.color_bg_white,t=>t.theme.shadow_m,t=>t.theme.color_text_L0,t=>t.theme.color_bg_border_01,t=>t.theme.color_bg_white,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_bg_border_01,t=>t.theme.color_btn_secondary_hover),S=x},93413:(He,ee,e)=>{"use strict";e.d(ee,{c:()=>n});let n=function(r){return r.GUIDE_TOOLBAR_TRASH="GUIDE_TOOLBAR_TRASH_6",r.GUIDE_TOOLBAR_EXPORT_TO_ABOARD="guide_toolbar_export_to_aboard",r.GUIDE_RESOURCES_SHOW="GUIDE_RESOURCES_SHOW",r.GUIDE_SHORT_CUT_PANEL="GUIDE_SHORT_CUT_PANEL",r.GUIDE_PREVIEW_ADD_COMMENT="guide_preview_add_comment",r.GUIDE_POPUP_PANEL="guide_popup_panel",r.WIDGET_BUILTIN_PANEL="widget_builtin_panel",r.PAGE_PANEL="page_panel",r.GUIDE_SEARCH_RESOURCES_DETAILS="guide_search_resources_details",r.GUIDE_IMAGE_SLICING="guide_image_slicing",r.GUIDE_IMAGE_RESOURCE="guide_image_resource",r.GUIDE_GRADIENT_FILL="guide_gradient_fill",r.GUIDE_RULER_V1="guide_ruler_v1",r.GUIDE_TOOLBAR_COMMON="GUIDE_TOOLBAR_COMMON",r.GUIDE_NOVICE_V9_2408="GUIDE_NOVICE_V9_2408",r.GUIDE_NOVICE_V9_2408_STEP_1="GUIDE_NOVICE_V9_2408_STEP_1",r.GUIDE_NOVICE_V9_2408_STEP_2="GUIDE_NOVICE_V9_2408_STEP_2",r.GUIDE_NOVICE_V9_2408_STEP_3="GUIDE_NOVICE_V9_2408_STEP_3",r.GUIDE_COMMON_V9_OPERATIONS_GUIDE="GUIDE_COMMON_V9_OPERATIONS_GUIDE",r.GUIDE_NOVICE_2309="GUIDE_NOVICE_2309",r.GUIDE_NOVICE_2309_START="GUIDE_NOVICE_2309_START",r.GUIDE_NOVICE_2309_STEP_1="GUIDE_NOVICE_2309_STEP_1",r.GUIDE_NOVICE_2309_STEP_2="GUIDE_NOVICE_2309_STEP_2",r.GUIDE_NOVICE_2309_STEP_3="GUIDE_NOVICE_2309_STEP_3",r.GUIDE_NOVICE_2309_STEP_4="GUIDE_NOVICE_2309_STEP_4",r.GUIDE_NOVICE_2309_STEP_5="GUIDE_NOVICE_2309_STEP_5",r.GUIDE_NOVICE_2309_TIP_1="GUIDE_NOVICE_2309_TIP_1",r.GUIDE_NOVICE_2408_CREATE_PAGE="GUIDE_NOVICE_2408_CREATE_PAGE",r.GUIDE_NOVICE_2309_TASK_1="GUIDE_NOVICE_2309_TASK_1",r.GUIDE_NOVICE_2309_TASK_2="GUIDE_NOVICE_2309_TASK_2",r.GUIDE_NOVICE_2309_TASK_3="GUIDE_NOVICE_2309_TASK_3",r.GUIDE_NOVICE_2309_TASK_4="GUIDE_NOVICE_2309_TASK_4",r.GUIDE_NOVICE_2309_TASK_5="GUIDE_NOVICE_2309_TASK_5",r.GUIDE_NOVICE_2309_TASK_5_DEVICE_MODE="GUIDE_NOVICE_2309_TASK_5_DEVICE_MODE",r.GUIDE_DS_SCREEN_STEP_1="GUIDE_DS_SCREEN_STEP_1",r.GUIDE_AWARDED="GUIDE_AWARDED",r.GUIDE_NEW_CREATE_PAGE="GUIDE_NEW_CREATE_PAGE",r.GUIDE_NEW_SHOW_WIDGET_LIBRARY="GUIDE_NEW_SHOW_WIDGET_LIBRARY",r.GUIDE_NEW_FLOW_AND_MIND="GUIDE_NEW_FLOW_AND_MIND",r.GUIDE_NEW_CREATE_LINK="GUIDE_NEW_CREATE_LINK",r.GUIDE_NEW_USE_PREVIEW="GUIDE_NEW_USE_PREVIEW",r.GUIDE_NEW_USE_SHARE="GUIDE_NEW_USE_SHARE",r.GUIDE_NEW_USE_COMMENT="GUIDE_NEW_USE_COMMENT",r.GUIDE_2309_CLICK_SHARE="GUIDE_2309_CLICK_SHARE",r.GUIDE_2407_PREVIEW="GUIDE_2407_PREVIEW",r.GUIDE_2407_PREVIEW_CLOSE="GUIDE_2407_PREVIEW_CLOSE",r.GUIDE_OLD_NEW_CREATE_PAGE="GUIDE_OLD_NEW_CREATE_PAGE",r.GUIDE_OLD_ADD_LINE_FEATURE="GUIDE_OLD_ADD_LINE_FEATURE",r.GUIDE_OLD_UPGRADE_ANNOTATE="GUIDE_OLD_UPGRADE_ANNOTATE",r.GUIDE_OLD_USE_COMMENT="GUIDE_OLD_USE_COMMENT",r.GUIDE_BASKET_QUICK_COPY_CANVAS="GUIDE_BASKET_QUICK_COPY_CANVAS",r.GUIDE_PAGE_CREAT_LINK="GUIDE_PAGE_CREAT_LINK",r.GUIDE_PAGE_CREAT_LINK2="GUIDE_PAGE_CREAT_LINK2",r.GUIDE_TO_PREVIEW_IN_SHARE="GUIDE_TO_PREVIEW_IN_SHARE",r.GUIDE_MORE_PAGE="GUIDE_MORE_PAGE",r.GUIDE_PREVIEW_VIEW_BTN="GUIDE_PREVIEW_VIEW_BTN",r.GUIDE_ALL_REPLACE_PAGE="GUID_ALL_REPLACE_PAGE",r.GUIDE_BASKET_MUBAN_USE="GUIDE_BASKET_MUBAN_USE",r.GUIDE_FIND_MORE_SCENE_COMBO="GUIDE_FIND_MORE_SCENE_COMBO",r.GUIDE_PUBLISH_COMBO_TO_MKT="GUIDE_PUBLISH_COMBO_TO_MKT",r.GUIDE_COPY_AS_PNG="GUIDE_COPY_AS_PNG",r.GUIDE_VECTOR_TASK_QUICK_CREATE="GUIDE_VECTOR_TASK_QUICK_CREATE",r.GUIDE_VECTOR_TASK_ENDING_EDITING="GUIDE_VECTOR_TASK_ENDING_EDITING",r.GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR="GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR",r.GUIDE_POSITION_STICKY_FEATURES="GUIDE_POSITION_STICKY_FEATURES",r.GUIDE_SELECT_STICKY="GUIDE_SELECT_STICKY",r.TASK_GUIDE_NEW_CREATE_PAGE="TASK_GUIDE_NEW_CREATE_PAGE",r.TASK_GUIDE_NEW_SHOW_WIDGET_LIBRARY="TASK_GUIDE_NEW_SHOW_WIDGET_LIBRARY",r.TASK_GUIDE_NEW_CREATE_LINK="TASK_GUIDE_NEW_CREATE_LINK",r.TASK_GUIDE_NEW_USE_PREVIEW="TASK_GUIDE_NEW_USE_PREVIEW",r.TASK_GUIDE_NEW_USE_SHARE="TASK_GUIDE_NEW_USE_SHARE",r.TASK_GUIDE_NEW_USE_COMMENT="TASK_GUIDE_NEW_USE_COMMENT",r.TASK_GUIDE_NEW_CREATE_ANNOTATE="TASK_GUIDE_NEW_CREATE_ANNOTATE",r.TASK_GUIDE_NEW_CREATE_FLOW="TASK_GUIDE_NEW_CREATE_FLOW",r.TASK_GUIDE_NEW_CREATE_MIND="TASK_GUIDE_NEW_CREATE_MIND",r.GUIDE_SEMANTIC_PANEL="GUIDE_SEMANTIC_PANEL",r.ENTER_DESIGN_PROTO_IN_SPACE_CREATED_DAY="ENTER_DESIGN_PROTO_IN_SPACE_CREATED_DAY",r.UPGRADE_V8_COMMUNITY_GROUP="UPGRADE_V8_COMMUNITY_GROUP",r.GUIDE_NEWBIE_VIDEO="GUIDE_NEWBIE_VIDEO",r.DS_SCREEN_SCENE_BANNER="DS_SCREEN_SCENE_BANNER",r.DS_CUSTOMIZE_SCENE_BANNER="DS_CUSTOMIZE_SCENE_BANNER",r.HMI_INDUS_SCENE_BANNER="HMI_INDUS_SCENE_BANNER",r.HMI_CUSTOMIZE_SCENE_BANNER="HMI_CUSTOMIZE_SCENE_BANNER",r.INTER_SWITCHABLE_VIEW_MODE_RELOCATED_INSPECT_TOGGLE="INTER_SWITCHABLE_VIEW_MODE_RELOCATED_INSPECT_TOGGLE",r.INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN="INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN",r.INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN="INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN",r.GUIDE_NEW_OVERLAY_ONCE="GUIDE_NEW_OVERLAY_ONCE",r.UNGROUP_WITH_WM="UNGROUP_WITH_WM",r.GUIDE_2503_AI_CHAT_DS="GUIDE_2503_AI_CHAT_DS",r.GUIDE_2506_LIB_INTERGRATED="GUIDE_2506_LIB_INTERGRATED",r.GUIDE_2506_LIB_INTERGRATED_RIGHT_LAYOUT="GUIDE_2506_LIB_INTERGRATED_RIGHT_LAYOUT",r.GUIDE_2506_AIHTML="GUIDE_2506_AIHTML",r}({})},93446:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>d});var n=e(25582),r=e.n(n),c=e(38502);function o(C,h,i){return(h=I(h))in C?Object.defineProperty(C,h,{value:i,enumerable:!0,configurable:!0,writable:!0}):C[h]=i,C}function I(C){var h=u(C,"string");return typeof h=="symbol"?h:h+""}function u(C,h){if(typeof C!="object"||!C)return C;var i=C[Symbol.toPrimitive];if(i!==void 0){var f=i.call(C,h||"default");if(typeof f!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(C)}class d extends c.PureComponent{constructor(){super(...arguments),o(this,"setBodyRef",h=>this.$body=h),o(this,"handleMouseDown",h=>{const{onMouseDown:i}=c.Children.only(this.props.children).props;this.handleDown(h),i&&i(h)}),o(this,"handleDown",h=>{const{dragContainer:i="",onMoveStart:f,onMoveEnd:p}=this.props;if(h.target.getAttribute("type")!=="draggable")return;this.getLimitValue();const{pageX:s,pageY:l}=h.nativeEvent,{top:_,left:b}=(document.getElementById(i)||h.target).getBoundingClientRect(),a=s-b,M=l-_;f&&f();const x=S=>{const{left:t,top:v}=this.validatePosition(S.pageX-a,S.pageY-M);this.props.onMove(t,v)},g=()=>{p&&p(),document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",x)};document.addEventListener("mousemove",x),document.addEventListener("mouseup",g)})}componentDidMount(){if(!this.$body.offsetParent)return;this.getLimitValue();const{left:h,top:i}=this.props.position,{left:f,top:p}=this.validatePosition(h,i);this.props.onMove(f,p,!0)}getLimitValue(){const{container:h}=this.props,{width:i,height:f}=this.$body.getBoundingClientRect();if(h==="window")this.minLeft=0,this.minTop=56,this.maxLeft=window.innerWidth-i,this.maxTop=window.innerHeight-25-f;else if(typeof h=="string"){const p=document.querySelector(h).getBoundingClientRect(),{left:s,top:l,right:_,bottom:b}=p;this.minLeft=s,this.minTop=l,this.maxLeft=_-i,this.maxTop=b-f-10}else this.minLeft=-1/0,this.minTop=-1/0,this.maxLeft=1/0,this.maxTop=1/0}validatePosition(h,i){return h>this.maxLeft&&(h=this.maxLeft),h<this.minLeft&&(h=this.minLeft),i>this.maxTop&&(i=this.maxTop),i<this.minTop&&(i=this.minTop),i=i>>0,h=h>>0,{left:h,top:i}}render(){const{position:h,children:i}=this.props,f=c.Children.only(i);return c.cloneElement(f,{ref:this.setBodyRef,onMouseDown:this.handleMouseDown,style:{...h,...f.props.style}})}}o(d,"propTypes",{children:r().element,container:r().string,dragContainer:r().string,position:r().object,onMove:r().func.isRequired,onMoveStart:r().func,onMoveEnd:r().func}),o(d,"defaultProps",{container:"#screens"})},93716:(He,ee,e)=>{"use strict";e.d(ee,{O9:()=>a,Y_:()=>s,Yj:()=>I,at:()=>G,it:()=>b,nd:()=>h});var n=e(97529),r=e(75838);const c=(H,O,V)=>{throw new Error("[verify|"+H+"]"+(O?" "+O+";":"")+" "+(V||""))},o=(H,O)=>(V,Q)=>{O(V)||c(H,Q,"get: "+(0,r.q0)(V))},I=o("String",n.Kg),u=o("Boolean",n.Lm),d=o("Truthy",n.zz),C=o("Number",n.Et),h=o("Integer",n.Fq),i=o("RegExp",n.gd),f=o("ArrayBuffer",n.mw),p=o("ObjectAlike",n.sw),s=o("BasicObject",n.wG),l=(H,O,V)=>{isObjectKey(H,O)||c("ObjectKey",V,"expect to have key: "+O)},_=(H,O,V)=>{isObjectContain(H,O)||c("ObjectContain",V,"expect to contain: "+describe(O))},b=o("Array",n.oI),a=(H,O,V)=>{(0,n.ut)(H,O)||c("ArrayLength",V,"expect length: "+O+", get: "+((0,n.oI)(H)?H.length:(0,r.q0)(H)))},M=o("Function",n.TP),x=o("PromiseAlike",n.qT),g=(H,O,V)=>{isOneOf(H,O)||c("OneOf",V,"expect one of: ["+O+"], get: "+describe(H))},S=(H,O)=>{isFunctionThrow(H)||c("DoThrow",O)},t=(H,O)=>{isFunctionThrow(H)&&c("DoNotThrow",O)},v=async(H,O)=>{await isFunctionThrowAsync(H)||c("DoThrowAsync",O)},w=async(H,O)=>{await isFunctionThrowAsync(H)&&c("DoNotThrowAsync",O)},k=(H,O)=>"\nactual: "+(0,r.q0)(H)+"\nexpect: "+(0,r.q0)(O),W=(H,O,V)=>{isStrictEqual(H,O)||c("StrictEqual",V,k(H,O))},K=(H,O,V)=>{isStrictEqual(H,O)&&c("NotStrictEqual",V,k(H,O))},G=function(H,O,V){V===void 0&&(V="should stringify equal"),(0,n.gI)(H,O)||c("StringifyEqual",V,k(H,O))},$=function(H,O,V){V===void 0&&(V="should not stringify equal"),isStringifyEqual(H,O)&&c("NotStringifyEqual",V,k(H,O))},P=(H,O,V)=>{H&&H.includes&&H.includes(O)||c("Includes",V,"expect "+describe(H)+" to include "+O)},E=(H,O,V)=>{H&&H.includes&&!H.includes(O)||c("NotIncludes",V,"expect "+describe(H)+" to not include "+O)}},93872:(He,ee,e)=>{"use strict";e.d(ee,{Ag:()=>u,Av:()=>r,RL:()=>o,V5:()=>d,tb:()=>I,vw:()=>c,wz:()=>h});var n=e(67787);const r=n.Ay.div.withConfig({displayName:"styles__StyledInteractionTargetCollapsibleSelectOption",componentId:"sc-7qoyp3-0"})(["display:flex;align-items:center;cursor:pointer;font-size:12px;font-weight:400;min-width:fit-content;color:#fff;padding-left:","px;padding-top:2px;padding-bottom:2px;position:relative;svg.svg-icon,svg.svg-icon-path-icon{width:20px;height:20px;margin-right:6px;fill:currentColor;&.checked{position:absolute;left:0;}&.expander{color:#999;width:16px;margin-left:-16px;margin-right:0;&:not(.is-collapsed){transform:rotate(90deg);}}}.screen-icon{height:20px;svg.svg-icon{margin-right:0px;}}svg.svg-icon-path-icon{transform:scale(0.7);}& > .Ellipsis{flex:1;}&.is-disabled{cursor:not-allowed;opacity:0.5;}&.is-active{color:#fff;background:rgba(22,132,252,0.25);mix-blend-mode:normal;position:relative;}&:not(.is-disabled):hover{background:rgb(102,102,102);}&.isV9Layout{color:",";border-radius:4px;svg.group-icon path{fill:transparent;}&.is-active{color:",";background:",";}&:not(.is-disabled):hover{background:",";}}&:not(.isV9Layout){svg.svg-icon-path-icon{color:#F2F4F5;}}"],i=>22+i.depth*22,i=>i.theme.color_text_L0,i=>i.theme.color_text_L0,i=>i.theme.color_btn_secondary_hover,i=>i.theme.color_btn_secondary_hover),c=n.Ay.div.withConfig({displayName:"styles__StyledSelectWithSearchBar",componentId:"sc-7qoyp3-1"})(["display:flex;flex-direction:column;width:100%;height:100%;position:relative;.option-container{padding:8px 8px 6px 8px;height:calc(100% - 32px);overflow:auto;}.lazy-list{padding:8px 8px 6px;height:calc(100% - 32px);.bar-vertical{top:32px;height:calc(100% - 32px);}}"]),o=n.Ay.div.withConfig({displayName:"styles__StyledTargetCanvasSelect",componentId:"sc-7qoyp3-2"})(['display:flex;flex-direction:column;width:100%;height:100%;&.isV9Layout{[type="search"]{input{border-radius:4px;border-color:',";color:",";background:",";}}}"],i=>i.theme.color_bg_border_01,i=>i.theme.color_text_L0,i=>i.theme.color_bg_white),I=n.Ay.div.withConfig({displayName:"styles__StyledTargetWattrSelect",componentId:"sc-7qoyp3-3"})(["display:flex;flex-direction:column;width:100%;height:100%;color:",";.dropmenu-no-exit0{padding:0;height:28px;span{margin-left:6px;}}.dropmenu-no-exit{height:28px;}.divider{margin:8px;}"],i=>i.theme.color_text_L1),u=n.Ay.div.withConfig({displayName:"styles__StyledBackToPageSelectOption",componentId:"sc-7qoyp3-4"})(["display:flex;align-items:center;cursor:pointer;&.isV9Layout{.back{svg.svg-icon{path{fill:",";}}}path{fill:",";}& > .Ellipsis{color:",";}}"],i=>i.theme.color_text_L1,i=>i.theme.color_text_L1,i=>i.theme.color_text_L0),d=n.Ay.div.withConfig({displayName:"styles__StyledTargetSelect",componentId:"sc-7qoyp3-5"})(["width:100%;flex:1;overflow-x:auto;overflow-y:auto;list-style:none;color:#fff;pointer-events:all;.scroll-able-container{min-width:100%;width:max-content;display:flex;flex-direction:column;}::-webkit-scrollbar-thumb{background-color:",";border-radius:4px;&:hover{background-color:",";}}"],i=>i.theme.color_bg_border_02,i=>i.theme.color_background_split_hover),C=n.Ay.span.withConfig({displayName:"styles__StyledDividerOption",componentId:"sc-7qoyp3-6"})(["display:inline-block;width:calc(100% - 20px);flex:0 0 1px;background:",";margin:5px 0 5px 10px;"],i=>i.theme.color_bg_border_01),h=n.Ay.div.withConfig({displayName:"styles__StyledEmptyOptionOverlayPrompt",componentId:"sc-7qoyp3-7"})(["position:relative;display:flex;width:100%;height:190px;align-items:center;justify-content:center;flex-direction:column;.alert{width:40px;height:40px;path:nth-child(1){fill:",";fill-opacity:1;}path:nth-child(2),path:nth-child(3){fill:",";fill-opacity:1;}}span{padding:16px 22px 0;text-wrap:wrap;text-align:center;color:",";}a{color:",";:hover,:active{color:",";}}"],i=>i.theme.color_btn_secondary_active,i=>i.theme.color_text_L3,i=>i.theme.color_text_L1,i=>i.theme.color_text_link_normal,i=>i.theme.color_text_link_hover)},93971:(He,ee,e)=>{"use strict";e.d(ee,{BZ:()=>W,Hq:()=>p,Ii:()=>t,Jj:()=>g,KR:()=>b,Mi:()=>k,RX:()=>a,SJ:()=>P,XG:()=>$,Yp:()=>M,gJ:()=>E,k8:()=>_,lF:()=>K,ol:()=>l,un:()=>w});var n=e(61541),r=e(5209),c=e(3862),o=e(20089),I=e(40610),u=e(5288),d=e(78257),C=e(11135),h=e(8293),i=e(37860),f=e(81717);let p=function(O){return O.ToolBar="toolbar",O.shortCut="shortcut",O}({});const s={[u.et]:"\u5E38\u7528",[u.l3]:"\u8868\u5355",[u.eC]:"\u5BFC\u822A",[u.Bz]:"\u56FE\u8868",[u.w5]:"\u591A\u5A92\u4F53",group:"\u7EC4\u5408",builtin:"\u5185\u7F6E"};let l=function(O){return O.Copy="\u590D\u5236\u521B\u5EFA",O.ToolBar="\u9876\u90E8\u680F",O.ShortCut="\u5FEB\u6377\u952E",O.BuiltPanel="\u7EC4\u4EF6\u9762\u677F",O.SearchPanel="\u641C\u7D22\u9762\u677F",O}({}),_=function(O){return O.Drag="\u62D6\u62FD",O.DoubleClick="\u53CC\u51FB",O.Click="\u5355\u51FB",O.Import="\u7F6E\u5165",O}({});const b=O=>{var V;return(V=I18N.w[O])==null?void 0:V.replace("Chart","")};function a(){var O,V;return typeof((O=MB)==null?void 0:O.getRootProject)!="function"?"":(0,h.Ow)((V=MB.getRootProject())==null?void 0:V.scene_tag)||""}const M=O=>{let{source:V,widgetName:Q,groupCid:N=u.et,type:L,popupsPanelName:U,templateWidgetType:A,widgetTypeNew:D,isTotalWidget:B,keyword:j=""}=O;if(U!=null&&U.includes(d.lS.Flow))(0,C.W)({widget_source:V,widget_type:L});else if(s[N]){const F=s[N],Y=a();(0,r.kH)("add_widget_V8",{source:V,widget_name:Q,widget_type:A||F,widget_type_new:D,is_total_widget:B,scene_tag:Y,keyword:j}),f.Y4.editProjectNew("\u65B0\u5EFA\u7EC4\u4EF6")}},x={[c.C]:"\u4E0D\u533A\u5206",[c.WY]:"\u4E0D\u533A\u5206",[c.b4]:"\u4E0D\u533A\u5206",[c.R5]:"\u4E0D\u533A\u5206",[c.t_]:"\u672A\u8BC6\u522B",[c.Gd]:"\u672A\u8BC6\u522B",[c.RD]:"\u672A\u8BC6\u522B",mobile:"\u79FB\u52A8\u7AEF",web:"\u7F51\u9875\u7AEF",other:"\u5176\u4ED6",...i.GT},g={[c.C]:"\u56FE\u6807",[c.t_]:"\u7EC4\u4EF6",[c.Gd]:"\u9875\u9762",[c.b4]:"\u56FE\u7247",[c.RD]:"\u6587\u4EF6\u9875\u9762",[c.WY]:"\u5F69\u8272\u56FE\u6807",[c.R5]:"\u8D34\u7EB8"},S={user_made:"\u7528\u6237\u4E0A\u4F20",official_sort:"\u5B98\u65B9\u6574\u7406",official_made:"\u5B98\u65B9\u81EA\u5236"};let t=function(O){return O.User="\u6211\u7684",O.Star="\u6536\u85CF",O.Org="\u4F01\u4E1A",O.Find="\u53D1\u73B0",O.Square="\u7D20\u6750\u5E7F\u573A",O.PageFind="\u53D1\u73B0\uFF08\u65B0\uFF09",O.PageLibraryCommunity="\u9875\u9762\u5E93-\u7D20\u6750\u5E7F\u573A",O.PageLibraryStar="\u9875\u9762\u5E93-\u6536\u85CF",O.OtherSearchResults="\u5176\u4ED6\u641C\u7D22\u7ED3\u679C",O}({});const v={[d.lS.Builtin]:"\u7EC4\u4EF6\u9762\u677F",[d.lS.Icon]:"\u56FE\u6807\u9762\u677F",[d.lS.ColorIcon]:"\u56FE\u6807\u9762\u677F",[d.lS.Asset]:"\u56FE\u7247\u9762\u677F",[d.lS.Page]:"\u9875\u9762\u9762\u677F",[d.lS.Search]:"\u641C\u7D22\u9762\u677F",[d.lS.History]:"\u5386\u53F2\u9762\u677F",[d.lS.Template]:"\u6BCD\u7248\u9762\u677F",[d.lS.Library]:"\u7D20\u6750\u5E93\u9762\u677F",[d.lS.Dashboard]:"\u9879\u76EE\u7BA1\u7406\u9875",[d.lS.Detail]:"\u8BE6\u60C5",[d.lS.SearchDetail]:"\u641C\u7D22\u8BE6\u60C5"},w="\u5168\u90E8",k=O=>{let{popupsName:V,addType:Q,source:N,category:L,policy:U="",templateGroupName:A="",copyright:D="",name:B="",classify:j="",platform:F="",rootProject:Y,widgetType:X="",isTotalWidget:z=null,keyword:Z="",esSearchKey:J="",templateGroupCid:te=""}=O;const{isMdVipTemplate:ge,isMktVipTemplate:pe}=(0,n.wY)(U),{isMdMember:Ce,isMktMember:me}=(0,n.sT)(MB.user),be=v[V];if(be){const ie=be+"-"+N;if(g[L]){const{cid:oe}=Y,he=a();(0,r.kH)("add_template_V8",{source:ie,add_type:Q,template_type:g[L],vip_template:Number(ge),is_scvip_template:pe,template_group_name:A,template_group_cid:te,template_source_type:S[D]||"",project_id:oe,template_name:B,classify:j,platform:x[F]||x[L],widget_type:X,is_total_widget:z,scene_tag:he,keyword:Z,es_search_key:J,is_scvip_user:me,is_VIP_user:Ce}),f.Y4.editProjectNew("\u65B0\u5EFA\u7D20\u6750")}}},W=O=>{let{tab:V=t.User,popupsName:Q,addType:N,category:L,name:U,rootProject:A,currentOrg:D=null,currentUser:B,platform:j="",esSearchKey:F="",resId:Y=-1}=O;const{cid:X}=A,z=v[Q];if(z){let Z=z+"-"+V;const J=V===t.Org?D==null?void 0:D.cid:B==null?void 0:B.cid,te=g[L];if(te){Q===d.lS.Search?Z=z+"-"+te+"-"+V:Q===d.lS.History&&(Z=z+"-"+te);const ge=a();(0,r.kH)("add_template_V8",{source:Z,add_type:N,template_type:te,project_id:X,template_name:U,template_group_name:J,platform:x[j]||x[L],scene_tag:ge,es_search_key:F,stickerResId:Y}),f.Y4.editProjectNew("\u65B0\u5EFA\u7D20\u6750")}}},K=(O,V)=>{var Q;const{type:N,chartConfig:L}=O;let U="",D=(Q=(0,I.eS)(!1).find(B=>{let{items:j}=B;return j.find(F=>F.type===N)}))==null?void 0:Q.cid;if(N===o.x.WChart){const{chartType:B}=L;D=u.Bz,U=I18N.w[B]}else[...I.PL,...I.d6,...I.ZC].includes(N)&&(U=I18N.w[N]);U&&D&&M({source:l.Copy,widgetName:U,groupCid:D,rootProject:V})},G=O=>{const{contentFlatTree:V}=sdkStore.parseSubtree(sdkStore.saveSubtree(O));return V.get("B@ref-danli").sub.length>0||V.get("B@ref-muban").sub.length>0},$=function(O,V,Q){Q===void 0&&(Q=[]);const N=!!(V||Q.length>0&&G(Q));(0,r.kH)("add_component_v8",{add_v8_source:O,nest_v8_type:N?1:0})},P=function(O,V,Q){Q===void 0&&(Q=[]);const N=!!(V||Q.length>0&&G(Q));(0,r.kH)("add_master_v8",{add_v8_source:O,nest_v8_type:N?1:0}),f.Y4.editProjectNew("\u65B0\u5EFA\u6BCD\u7248")},E=O=>{(0,r.kH)("mind_V8",{create_type:O})},H=O=>{saTrack("scene_switch",{scene_type:O})}},94344:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>C});var n=e(38502),r=e(65415),c=e(20862),o=e(67787);const I=o.Ay.div.withConfig({displayName:"styles__StyledNoBuiltinWidgets",componentId:"sc-exacig-0"})(["display:flex;flex-direction:column;align-items:center;margin-top:120px;width:100%;img{width:88px;height:88px;margin-bottom:24px;}.tips{margin:27px 0;color:#7d8694;text-align:center;}.tips-link{margin:auto 8px;text-align:center;a{color:",";text-decoration:underline;}}.no-link{display:inline-flex;color:#1684fc;text-decoration:underline;cursor:pointer;}"],h=>h.theme.color_text_link_normal),u=o.Ay.div.withConfig({displayName:"styles__StyledNoSearchItemInHistory",componentId:"sc-exacig-1"})(["display:flex;flex-direction:column;align-items:center;margin-top:120px;img{margin-top:160px;width:88px;}"]);var d=e(72214);function C(h){const{keyword:i,theme:f,hasNoTips2:p,onHandleClickSquarePanel:s,isShowAiButton:l=!1}=h,_=f==="dark"?"/mb-workspace/images/workspace/design/no_starred_panel_dark.png":"/mb-workspace/images/workspace/design/no_starred_panel.png";return(0,d.jsx)(d.Fragment,{children:i?(0,d.jsxs)(u,{children:[(0,d.jsx)(r.b,{isNeedLink:!1}),l&&(0,d.jsx)(c.l,{})]}):(0,d.jsxs)(I,{children:[(0,d.jsx)("img",{src:_,alt:""}),(0,d.jsx)("p",{className:"no-tips1",children:I18N.Resources.Nothing}),!p&&(0,d.jsxs)("p",{className:"no-tips2",children:[I18N.Resources.go," ",(0,d.jsx)("span",{className:"no-link",onClick:s,children:I18N.Resources.square})," ",I18N.Resources.look]})]})})}},94585:He=>{(function(){function ee(s,l){document.addEventListener?s.addEventListener("scroll",l,!1):s.attachEvent("scroll",l)}function e(s){document.body?s():document.addEventListener?document.addEventListener("DOMContentLoaded",function l(){document.removeEventListener("DOMContentLoaded",l),s()}):document.attachEvent("onreadystatechange",function l(){(document.readyState=="interactive"||document.readyState=="complete")&&(document.detachEvent("onreadystatechange",l),s())})}function n(s){this.g=document.createElement("div"),this.g.setAttribute("aria-hidden","true"),this.g.appendChild(document.createTextNode(s)),this.h=document.createElement("span"),this.i=document.createElement("span"),this.m=document.createElement("span"),this.j=document.createElement("span"),this.l=-1,this.h.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.i.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.j.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.m.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.h.appendChild(this.m),this.i.appendChild(this.j),this.g.appendChild(this.h),this.g.appendChild(this.i)}function r(s,l){s.g.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+l+";"}function c(s){var l=s.g.offsetWidth,_=l+100;return s.j.style.width=_+"px",s.i.scrollLeft=_,s.h.scrollLeft=s.h.scrollWidth+100,s.l!==l?(s.l=l,!0):!1}function o(s,l){function _(){var a=b;c(a)&&a.g.parentNode!==null&&l(a.l)}var b=s;ee(s.h,_),ee(s.i,_),c(s)}function I(s,l,_){l=l||{},_=_||window,this.family=s,this.style=l.style||"normal",this.weight=l.weight||"normal",this.stretch=l.stretch||"normal",this.context=_}var u=null,d=null,C=null,h=null;function i(s){return d===null&&(f(s)&&/Apple/.test(window.navigator.vendor)?(s=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent),d=!!s&&603>parseInt(s[1],10)):d=!1),d}function f(s){return h===null&&(h=!!s.document.fonts),h}function p(s,l){var _=s.style,b=s.weight;if(C===null){var a=document.createElement("div");try{a.style.font="condensed 100px sans-serif"}catch(M){}C=a.style.font!==""}return[_,b,C?s.stretch:"","100px",l].join(" ")}I.prototype.load=function(s,l){var _=this,b=s||"BESbswy",a=0,M=l||3e3,x=new Date().getTime();return new Promise(function(g,S){if(f(_.context)&&!i(_.context)){var t=new Promise(function(w,k){function W(){new Date().getTime()-x>=M?k(Error(""+M+"ms timeout exceeded")):_.context.document.fonts.load(p(_,'"'+_.family+'"'),b).then(function(K){1<=K.length?w():setTimeout(W,25)},k)}W()}),v=new Promise(function(w,k){a=setTimeout(function(){k(Error(""+M+"ms timeout exceeded"))},M)});Promise.race([v,t]).then(function(){clearTimeout(a),g(_)},S)}else e(function(){function w(){var N;(N=$!=-1&&P!=-1||$!=-1&&E!=-1||P!=-1&&E!=-1)&&((N=$!=P&&$!=E&&P!=E)||(u===null&&(N=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),u=!!N&&(536>parseInt(N[1],10)||parseInt(N[1],10)===536&&11>=parseInt(N[2],10))),N=u&&($==H&&P==H&&E==H||$==O&&P==O&&E==O||$==V&&P==V&&E==V)),N=!N),N&&(Q.parentNode!==null&&Q.parentNode.removeChild(Q),clearTimeout(a),g(_))}function k(){if(new Date().getTime()-x>=M)Q.parentNode!==null&&Q.parentNode.removeChild(Q),S(Error(""+M+"ms timeout exceeded"));else{var N=_.context.document.hidden;(N===!0||N===void 0)&&($=W.g.offsetWidth,P=K.g.offsetWidth,E=G.g.offsetWidth,w()),a=setTimeout(k,50)}}var W=new n(b),K=new n(b),G=new n(b),$=-1,P=-1,E=-1,H=-1,O=-1,V=-1,Q=document.createElement("div");Q.dir="ltr",r(W,p(_,"sans-serif")),r(K,p(_,"serif")),r(G,p(_,"monospace")),Q.appendChild(W.g),Q.appendChild(K.g),Q.appendChild(G.g),_.context.document.body.appendChild(Q),H=W.g.offsetWidth,O=K.g.offsetWidth,V=G.g.offsetWidth,k(),o(W,function(N){$=N,w()}),r(W,p(_,'"'+_.family+'",sans-serif')),o(K,function(N){P=N,w()}),r(K,p(_,'"'+_.family+'",serif')),o(G,function(N){E=N,w()}),r(G,p(_,'"'+_.family+'",monospace'))})})},He.exports=I})()},94754:(He,ee,e)=>{"use strict";e.d(ee,{_E:()=>d,i3:()=>u,lO:()=>p,pD:()=>C});var n=e(80313),r=e(32424),c=e(20089),o=e(95956),I=e(79209);const u=async(s,l,_)=>{let{files:b,callback:a,isFilterSvg:M=!0,rootProject:x,isCreate:g=!1}=s;if(g&&!(0,I._c)({type:c.x.WImage}))return;const S=Array.from(b),t=M?S.filter(w=>/\.svg$/.test(w.name)):[],v=M?S.filter(w=>!/\.svg$/.test(w.name)):S;if(S.length){if(MB.safeLoading&&MB.safeLoading(I18N.dUtils.image_progress_in),await C({svgFiles:t,allCount:S.length,callback:a,rootProject:x},l,_),!v.length){MB.safeLoading&&MB.safeLoading(!1);return}await d({imageFiles:v,allCount:S.length,svgFilesCount:t.length,rootProject:x,callback:a},!1,l,_)}},d=function(s,l,_,b){let{imageFiles:a,allCount:M,svgFilesCount:x,rootProject:g,callback:S}=s;l===void 0&&(l=!1);const t="project_image",v="",w="",k=MB.user.id,W=(g==null?void 0:g.cid)||"";h(a,{assetType:t,orgCid:w,groupCid:v,userId:k,projectCid:W,svgFilesCount:x},S,_,b,"fileList").then(K=>{const G=K.length;MB.safeLoading&&MB.safeLoading(!1),G===a.length?l?MB.notice({text:I18N.dUtils.svg_style_upload_success}):MB.notice({text:I18N.dUtils.image_upload_success}):G>0&&G<M&&(l?MB.notice({text:I18N.dUtils.some_svg_style_upload_success}):MB.notice({text:I18N.dUtils.someimage_upload_success}))}).catch(K=>console.warn("[Asset]",K))},C=(s,l,_)=>{let{svgFiles:b,allCount:a,rootProject:M,callback:x}=s;if(!b.length)return;let g=0;const S=function(t,v,w){v===void 0&&(v=0),w===void 0&&(w=0),g=g+1,t&&x&&x(t,g===b.length,v,w)};for(let t=0,v=b.length;t<v;t++)try{const w=b[t],k=new DOMParser,W=new FileReader;W.readAsText(w),W.onload=async K=>{const G=K.target.result,$=k.parseFromString(G,"text/html");let P=$.querySelector("svg");const E=!!P.querySelector("style"),H=parseInt(P.getAttribute("width")||24),O=parseInt(P.getAttribute("height")||24),V=P.getAttribute("viewBox"),Q=w.name.replace(".svg",""),N=P.childNodes;let L="unset";try{(0,o.rD)(P,(0,r.xc)())}catch(A){P=$.querySelector("svg"),console.error("errror:",A)}if(/<image/.test(G)||/<script/.test(G)||E){await d({imageFiles:[w],svgFilesCount:0,allCount:a,callback:A=>{S(A,t,v)},rootProject:M},E,l,_);return}N.length===1&&(L=N[0].getAttribute("fill")||N[0].getAttribute("stroke"));const U={name:Q,type:c.x.WIcon,iconData:{viewBox:V||"0 0 "+H+" "+O,path:""+P.innerHTML,iconName:Q,iconSize:Math.min(H,O),iconColor:L||"",svgAttr:{fill:P.getAttribute("fill"),stroke:P.getAttribute("stroke")}},width:H,height:O,w:H,h:O};S(U,t,v)}}catch(w){console.error(w),S(null)}},h=async(s,l,_,b,a,M)=>{let{assetType:x,orgCid:g,groupCid:S,userId:t,projectCid:v,svgFilesCount:w}=l;const k=[],W=w+s.length;for(let K=0,G=s.length;K<G;K++)try{const $=s[K],P=K===s.length-1;(0,o.XI)($,"workspace",b,a,M);const E=await p($,{assetType:x,orgCid:g,groupCid:S,userId:t,projectCid:v},H=>{let{loaded:O,total:V}=H;const Q=w+K;MB.safeLoading&&MB.safeLoading([I18N.dUtils.image_progress_in,O!==V&&"("+i(O)+"/"+i(V)+"KB)",W!==1&&"["+(Q+1)+"/"+W+"]"].filter(Boolean).join(" "))});E.group_cid=S,E.name=$.name,_&&_(E,P,K,G),k.push(E)}catch($){!MB.currentOrg&&($==null?void 0:$.message)!=="NoErrorTips"&&(0,o.lK)($)}return k},i=s=>(s/1024).toFixed(2),f="/nodekiq/process-asset-image",p=async(s,l,_)=>{let{assetType:b,orgCid:a,groupCid:M,userId:x,projectCid:g}=l;const S=(0,r.xc)(),t=await(0,o.M2)(s);if(!t)return;const{width:v,height:w}=t,k=await(0,n.m)(f,{credentials:"same-origin",method:"POST",headers:{"mb-asset-name":encodeURIComponent(s.name),"mb-asset-cid":S,"mb-asset-type":b,"mb-asset-group-cid":M,"mb-project-cid":g,"mb-asset-width":v,"mb-asset-height":w,"mb-user-id":x,"mb-org-cid":a},body:s,timeout:10*60*1e3,onUploadProgress:_});if(!k.ok)throw Object.assign(new Error(I18N.dUtils.damaged_file),{desc:I18N.dUtils.support_file_type,asset:s});return await k.json()}},94875:(He,ee,e)=>{"use strict";e.d(ee,{G:()=>o,f:()=>I});var n=e(67787),r=e(51090),c=e(19269);const o=n.Ay.li.withConfig({displayName:"styles__StyledLibraryThumbnailListItem",componentId:"sc-1cdrlom-0"})(["position:relative;width:109px;height:132px;margin-right:8px;margin-bottom:4px;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;cursor:pointer;color:",";","{width:109px;height:109px;border-radius:6px;&::after{border-radius:6px;}}&.is-hover .asset-name .editable-name{width:calc(100% - 14px);}.asset-name{display:flex;height:26px;line-height:26px;text-align:center;cursor:text;justify-content:center;.editable-name{width:100%;height:23px;line-height:22px;",";&.is-editing{border-bottom:1px solid #196ad4;}textarea{text-align:center;}}& > span{&.editable-name:hover{border-bottom:1px solid #ff6161;}}.asset-action{display:none;position:absolute;width:14px;height:14px;bottom:8px;right:0;}&:hover{","{background:#fff;&::after{border:2px solid #79baff;}}.asset-action{display:flex;}}}&.active{opacity:0.5;}"],u=>u.theme.color_text_L3,c.e,r.L9,c.e),I=n.Ay.span.withConfig({displayName:"styles__StyledUneditableSpan",componentId:"sc-1cdrlom-1"})(["display:flex;justify-content:center;width:100%;height:24px;line-height:22px;overflow:hidden;border-top:1px solid transparent;border-bottom:1px solid transparent;"])},95545:(He,ee,e)=>{"use strict";e.d(ee,{W:()=>C});var n=e(38502),r=e(70812),c=e(23089),o=e(68033),I=e(89671),u=e(72214);const d={1:"\u9690\u85CF",2:"\u663E\u793A",3:"\u81EA\u52A8\u9690\u85CF"},C=(0,n.memo)(h=>{let{showScrollBar:i=o.zJ.auto,handleChange:f}=h;const p=s=>{var l;f(parseInt(s),"showScrollBar"),r.U4.protoScrollbarSetTrack((l=MB)==null||(l=l.user)==null?void 0:l.id,d[s])};return(0,u.jsxs)(I.d,{className:"height-32",children:[(0,u.jsx)("label",{className:"left-label",children:"\u6EDA\u52A8\u6761"}),(0,u.jsx)("div",{className:"right-content",children:(0,u.jsx)(c.mq,{className:"panelstate-select",menuClassName:"panelstate-selectmenu",optionList:o.Ej.map(s=>({...s,label:I18N.SettingPanel.scrollBarState[s.label]})),value:i,onChange:p})})]})})},97267:(He,ee,e)=>{"use strict";e.d(ee,{C:()=>c,b:()=>r});const n={show:!1};function r(o,I){o===void 0&&(o=n);const{type:u,payload:d}=I;switch(u){case"htmlImportPanel:set:show":return{...o,show:d.show};default:return o}}const c=o=>o.ui.fixedLayout.htmlImportReducer.show},97433:(He,ee,e)=>{"use strict";e.d(ee,{Y:()=>r});var n=e(67787);const r=n.Ay.div.withConfig({displayName:"styles__StylesBorderOpener",componentId:"sc-z044ne-0"})(["display:flex;flex-direction:column;transition:height 200ms ease-in-out 0s;&.is-open{height:auto;}.appearance-line{display:flex;align-items:center;margin-left:-6px;}.border-open{min-height:16px;}.legendPos{margin:0;}.border-collapse-body{display:flex;align-items:center;color:#415058;transition:height 200ms ease-in-out 0s;overflow:hidden;margin-left:auto;&.is-open{overflow:visible;}> label{width:50px;height:22px;}.border-select-size-warp{margin-right:15px;}.border-select-size{width:59px;height:28px;&:hover{border:1px solid ",";}.border-style{width:12px;height:12px;}.radio-option{&.active{.border-style{border-color:",";}}}button{.border-line{color:",";}}}.WorkspaceInputNumber,.CoreInput{width:48px;height:28px;}.border-width-input{width:52px;height:28px;}.border-width-menu-opener{width:24px;height:24px;margin-left:6px;&.is-open{.widthSettings{background-color:",";color:",";.svg-icon{color:",";path{stroke:currentColor;}}}}}.font-size-container{.WorkspaceInputNumber{width:64px;}}}&.label-option{.border-collapse-body{&:not(.can-change-color){.font-size-container{margin-right:43px;}}}}&.is-only-stroke-width{.border-collapse-body.is-open{margin-left:22px;.left-label{height:14px;color:",";line-height:14px;white-space:nowrap;width:42px;}}}&.has-style-width-no-visibility{.border-collapse-body.is-open{margin-left:62px;}}"],c=>c.theme.color_bg_border_02,c=>c.theme.color_proto,c=>c.theme.color_text_L1,c=>c.theme.color_btn_primary_normal,c=>c.theme.color_text_btn,c=>c.theme.color_text_btn,c=>c.theme.color_text_L2)},97919:(He,ee,e)=>{"use strict";e.d(ee,{S:()=>l});var n=e(38502),r=e(37780),c=e(40486),o=e(99566),I=e(10472),u=e(18381),d=e(53732),C=e.n(d),h=e(83485),i=e(35770),f=e(52275),p=e(70812),s=e(72214);const l=(0,n.memo)(_=>{let{interactionDummyKey:b,interactionTree:a,selectItaInfo:M,uiFrom:x,interactionStore:g,selectNode2:S}=_;const t=(0,u.wA)(),{isEditingCombo:v}=(0,u.d4)(I.r),w=M.type==="action",k=w?(0,c.I9)(b):(0,c.KN)(b),W=G=>{t(r.R7.command.editingInteractionCreateCommand({interactionType:G,tNodeTrigger:k,uiFrom:x,interactionStore:g,selectNode2:S})),p.U4.updateInteractionTrack({type:"\u65B0\u589E",interactionTrigger:k,interactionType:G})},K=G=>{const{interactionTrigger:$}=G,P=(0,o.AE)(G),E=w?(0,c.m1)(P):(0,c.iY)(P);g.command.updateTriggerInfo(P,G);const H=()=>{t(r.R7.command.interactionSelectCommand({selectInteractionKeyList:[E]})),setTimeout(()=>(0,c._6)({itaKey:E}),4)};if(w){const O=g.query.getTriggerNode(k);O&&(0,c.xx)(O.sub).length===0?(t(r.R7.command.updateItaBatch({attr:"interactionTrigger",value:$,trigger:k,interactionStore:g,selectNode:O,nextTNodeTrigger:P,uiFrom:x})),H()):(t(r.R7.command.addIta({interactionTree:a,tNodeTrigger:P,uiFrom:x,interactionStore:g})),setTimeout(()=>(0,c._6)({itaKey:E}),4))}else t(r.R7.command.updateItaBatch({attr:"interactionTrigger",value:$,trigger:k,interactionStore:g,nextTNodeTrigger:P,uiFrom:x})),H()};return(0,s.jsxs)(i.pn,{className:C()("link-editor duumy-editor"),children:[(0,s.jsx)(f.A,{tNodeTrigger:k,onChangeTrigger:K,interactionTree:a}),w&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"divider"}),(0,s.jsx)(h.A,{supTreeNode:g.query.getNode(S==null?void 0:S.sup),isDummy:!0,link:void 0,isEditingCombo:v,onChange:W})]}),(0,s.jsx)(i.fl,{})]})})},98407:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>S,e:()=>g});var n=e(38502),r=e(18381),c=e(69623),o=e(67787),I=e(53732),u=e.n(I),d=e(81973),C=e(74923),h=e(66553),i=e(63619),f=e(15572),p=e(42402),s=e(78257),l=e(30275),_=e(53940),b=e(72214);const a=432,M=250,x="ICON_SELECT_POPUP",g=(0,n.memo)(v=>{const{style:w={},onSetCurrentNodeIcon:k,onClose:W,isDraggable:K=!0}=v,G=(0,r.d4)(C.VG),$=(0,r.d4)(C.yQ),[P,E]=(0,n.useState)({x:0,y:0}),[H,O]=(0,n.useState)({x:0,y:0}),V=G?s.lS.Search:s.lS.Icon,Q=L=>{if(["div.search-bar","div.close","div.nav-back-icon","div.history-panel"].find(F=>L.target.closest("#"+x+" .resourcesPanel-header "+F)))return;const{pageX:A,pageY:D}=L.nativeEvent,B=F=>E({x:F.pageX-A,y:F.pageY-D}),j=F=>{O({x:H.x+F.pageX-A,y:H.y+F.pageY-D}),E({x:0,y:0}),document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",j)};document.addEventListener("mousemove",B),document.addEventListener("mouseup",j)},N=(0,n.useMemo)(()=>K?{...w,transform:((w==null?void 0:w.transform)||"")+" translate("+(H.x+P.x)+"px, "+(H.y+P.y)+"px)"}:w,[K,w,H,P]);return(0,b.jsxs)(h.A,{id:"popups-"+V+"-panel",style:{...N},children:[(0,b.jsx)(t,{className:u()(K&&"isDraggable"),onMouseDown:K?Q:void 0,children:(0,b.jsx)(p.F,{show:$,from:l.Z.iconSelectPopup,onClose:W})}),G?(0,b.jsx)(f.P,{from:l.Z.iconSelectPopup,onSetCurrentNodeIcon:k}):(0,b.jsx)(i.x,{from:l.Z.iconSelectPopup,onSetCurrentNodeIcon:k})]})});function S(v){const{emitBaseRect:w,...k}=v,W=(0,r.d4)(d.UI),K=(0,n.useMemo)(()=>{const{top:G=0,left:$,right:P}=w||{},E=G-a/2-8,H=document.documentElement.clientHeight-(E+a),O=E<0?8:H<0?document.documentElement.clientHeight-a-8:E;let V=_.xM;if($&&P){const Q=$-M-8,N=document.documentElement.clientWidth-(P+M+8),L=Q<0?N<0?$-8:P+M+8:$-8;V=document.documentElement.clientWidth-L||0}return{position:"absolute",height:a+"px",minHeight:"auto",borderRadius:"4px",right:(W?_.xM:0)+Math.max(0,V-_.xM)+"px",top:O+"px",zIndex:106}},[w,W]);if(!document.getElementById(x)){const G=document.createElement("div");G.id=x,document.body.appendChild(G)}return typeof(w==null?void 0:w.top)!="number"?null:(0,c.createPortal)((0,b.jsx)(g,{style:K,...k}),document.getElementById(x))}const t=o.Ay.div.withConfig({displayName:"IconSelectPopup__StyledDraggableHeader",componentId:"sc-107ngcs-0"})(["&.isDraggable{.resourcesPanel-header{cursor:move;.search-bar,.history-panel{cursor:initial;}}}"])},98886:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>f});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),I=e(17307),u=e(58603),d=e(67787);const C=d.Ay.div.withConfig({displayName:"styles__StyledMenu",componentId:"sc-xagx11-0"})(["width:108px;height:108px;display:flex;align-items:center;justify-content:center;background:",";border-radius:8px;box-shadow:",";border:1px solid ",";.wrapper{display:flex;align-items:center;flex-direction:column;width:76px;height:76px;.border-set-width-item{width:24px;height:24px;cursor:pointer;border-radius:4px;color:",";&.border-line{background-color:",";.svg-icon{path{fill:",";}}}&.border-left-width{transform:rotate(-90deg);}&.border-right-width{transform:rotate(90deg);}&.border-bottom-width{transform:rotate(180deg);}.svg-icon{path{fill:",";}}&:not(.border-line):hover{background-color:",";}}.row{display:flex;align-items:center;justify-content:center;.border-center{width:12px;height:12px;margin:8px;}}}"],s=>s.theme.color_bg_white,s=>s.theme.shadow_m,s=>s.theme.color_bg_border_01,s=>s.theme.color_text_L3,s=>s.theme.color_bg_tab,s=>s.theme.color_btn_primary_normal,s=>s.theme.color_text_L3,s=>s.theme.color_btn_secondary_hover);var h=e(50521),i=e(72214);class f extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"OPTIONS_MENU_OPENER",(0,i.jsx)(h.Q,{className:"menu-opener widthSettings",icon:(0,i.jsx)(I.C,{name:"setting_panel/general/border_width",className:"options-icon"}),content:I18N.SettingPanel.single_side_border,direction:"down"})),(0,n.A)(this,"setComponentRef",l=>this.workspaceDropdown=l)}render(){const{borderVisibility:l,handleChange:_}=this.props,{OPTIONS_MENU_OPENER:b}=this;return(0,i.jsx)(u.A,{menuX:"right",menuY:"bottom",ref:this.setComponentRef,className:"border-width-menu-opener",opener:b,menuClassName:"border-width-menu",menu:(0,i.jsx)(p,{handleChange:_,borderVisibility:l})})}}const p=(0,r.memo)(s=>{let{handleChange:l,borderVisibility:_}=s;const{bdrIsVisibleT:b,bdrIsVisibleR:a,bdrIsVisibleB:M,bdrIsVisibleL:x}=_;return(0,i.jsx)(C,{children:(0,i.jsxs)("div",{className:"wrapper",children:[(0,i.jsx)("div",{"data-border-side":"T",className:o()("border-set-width-item border-top-width",{"border-line":b}),onClick:l,children:(0,i.jsx)(I.C,{name:"setting_panel/general/border_width_menu_item",size:24})}),(0,i.jsxs)("div",{className:"row",children:[(0,i.jsx)("div",{"data-border-side":"L",className:o()("border-set-width-item border-left-width",{"border-line":x}),onClick:l,children:(0,i.jsx)(I.C,{name:"setting_panel/general/border_width_menu_item",size:24})}),(0,i.jsx)("div",{className:"border-center"}),(0,i.jsx)("div",{"data-border-side":"R",className:o()("border-set-width-item border-right-width",{"border-line":a}),onClick:l,children:(0,i.jsx)(I.C,{name:"setting_panel/general/border_width_menu_item",size:24})})]}),(0,i.jsx)("div",{"data-border-side":"B",className:o()("border-set-width-item border-bottom-width",{"border-line":M}),onClick:l,children:(0,i.jsx)(I.C,{name:"setting_panel/general/border_width_menu_item",size:24})})]})})})},99306:(He,ee,e)=>{"use strict";e.d(ee,{o:()=>I});var n=e(2099);const r=u=>!(u.hotAttr.type==="rResStyleGroup"&&u.children.length===0),c=4,o=u=>{if(!u)return-1;let d=-1;for(const C of u.children){const h=o(C);d=Math.max(d,h)}return d+1};class I{constructor(){this.styleMap=new Map}build(d,C){const h=sdkStore.getHotItem(d);if(!h)return null;const{sub:i,sup:f,hotAttr:p}=h;if(p.libKey||p.styleType&&p.styleType!==C)return null;const s={...h},l=[],_=[];return i.length&&(i.forEach(b=>{const a=this.build(b,C);a&&r(a)&&(a.hotAttr.type==="rResStyle"&&_.push(a),a.hotAttr.type==="rResStyleGroup"&&l.push(a))}),_.sort(n.cM),l.sort(n.cM)),s.children=[..._,...l],this.styleMap.set(d,s),s}buildStyleTree(d){d==="color"&&(this.colorStyleTree=this.build("B@style","color")),d==="appear"&&(this.appearStyleTree=this.build("B@style","appear")),d==="text"&&(this.textStyleTree=this.build("B@style","text"))}getTreeNodeLevel(d){let C=0,h=d;for(;C<c&&h!=="B@style";){var i;h=(i=this.styleMap.get(h))==null?void 0:i.sup,C++}return C}getTreeNodeHeight(d){return o(this.styleMap.get(d))}getNode(d){return this.styleMap.get(d)}}},99340:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>o});var n=e(95549),r=e(38502),c=e(72214);class o extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"_invalid",!1),(0,n.A)(this,"_originalValueOfInput",""),(0,n.A)(this,"_changedMannually",!1),(0,n.A)(this,"$input",null),(0,n.A)(this,"state",{hexValue:"",prevHexValueFromProps:""}),(0,n.A)(this,"setInputRef",u=>{this.$input=u}),(0,n.A)(this,"selectWhenClick",u=>{const d=u.target;d.select(),this._originalValueOfInput=d.value}),(0,n.A)(this,"_correctInput",u=>this.props.isShowLowerCase?u.toLowerCase().replace(/[^0-9a-f]/g,"").slice(0,6):u.toUpperCase().replace(/[^0-9A-F]/g,"").slice(0,6)),(0,n.A)(this,"handleChange",u=>{this._changedMannually=!0;const d=this._correctInput(u.target.value);d.length===3||d.length===6?this._invalid=!1:this._invalid=!0,this.setState({hexValue:d})}),(0,n.A)(this,"_format3DigitValue",u=>""+u[0]+u[0]+u[1]+u[1]+u[2]+u[2]),(0,n.A)(this,"formatAndHandleChange",()=>{if(!this._changedMannually)return;const{hexValue:u}=this.state;let d=u;return u.length===3&&(d=this._format3DigitValue(d),this.setState({hexValue:d})),d.toLowerCase(),this.props.handleChange("#"+d),d}),(0,n.A)(this,"handleBlur",u=>{this._invalid?this.setState({hexValue:this._originalValueOfInput}):this.formatAndHandleChange(),this._invalid=!1,this._originalValueOfInput="",this.props.onBlur&&this.props.onBlur(u)}),(0,n.A)(this,"handleEnter",u=>{if(u.key==="Enter"){if(this._invalid)this.setState({hexValue:this._originalValueOfInput});else{const d=this.formatAndHandleChange();this._originalValueOfInput=d}this._invalid=!1,u.target.select()}})}static getDerivedStateFromProps(u,d){const C=u.isShowLowerCase?u.hexValue.toLowerCase():u.hexValue.toUpperCase();return C!==d.prevHexValueFromProps?{prevHexValueFromProps:C,hexValue:C}:null}render(){const{className:u,onFocus:d}=this.props,{hexValue:C}=this.state;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("a",{className:"hex-suffix",children:"#"}),(0,c.jsx)("input",{className:u,ref:this.setInputRef,value:C,onFocus:d,onClick:this.selectWhenClick,onKeyUp:this.handleEnter,onChange:this.handleChange,onBlur:this.handleBlur})]})}}},99378:(He,ee,e)=>{"use strict";e.d(ee,{L:()=>Q});var n=e(38502),r=e(18381),c=e(21066),o=e(37780),I=e(40486),u=e(99566),d=e(53732),C=e.n(d),h=e(24094),i=e(54449),f=e(17307),p=e(30542),s=e(78401),l=e(39695);const _=(B,j)=>{const F=[...j.sub];for(;F.length;){const Y=F.pop();if(Y.attr.key===B)return Y;F.push(...Y.sub)}},b=(B,j)=>{var F;const Y=[],X=j(B);return X&&Y.push(X),B==null||(F=B.sub)==null||F.forEach(z=>{Y.push(...b(z,j))}),Y},a=B=>{let j=1;if(B.sub.length){const F=B.sub.map(Y=>a(Y));j+=Math.max.apply(null,F)}return j},M=B=>B.isLast,x=(B,j,F)=>{let{interactionTree:Y,collapseList:X}=F;const z=B.type,Z=document.querySelector("#interaction-tree-container"),J=Z.firstChild,te=Array.from(Z.querySelectorAll(".rn-content-item"+(z==="trigger"?".interaction-trigger-node":""))),ge=Z.getBoundingClientRect(),pe=J.getBoundingClientRect(),Ce=[],me={};let be=new Set,ie=1;if(B){const he=new Set(j),ce=new Set;for(const fe of j){const Se=_(fe,Y);Se&&he.has(Se.sup)&&ce.add(Se.attr.key)}for(const fe of ce)he.delete(fe);be=he;const re=[];z!=="trigger"&&b(Y,fe=>{var Se;if(fe.type==="root"||(fe==null||(Se=fe.attr)==null?void 0:Se.interactionType)===l.O2.TriggerPlaceHolder)return;const{attr:{key:Me},sub:Ie}=fe;if(be.has(Me)&&Ie.length>0)for(const de of fe.sub)be.add(de.attr.key);j.includes(Me)&&re.push(fe)});for(const fe of re){const Se=a(fe);ie=Math.max(Se,ie)}}const oe=te.length;return te.forEach((he,ce)=>{const{dkey:re}=he.dataset,fe=_(re,Y),Se=fe,Me=fe.level,Ie=z==="trigger"?he:he.querySelector(":scope > .rn-list-item"),de=Ie.getBoundingClientRect(),xe=(0,s.yB)(Ie),Le=he.getBoundingClientRect(),ve=(0,I.Es)(re)?"action":(0,I.sJ)(re)?"trigger":"none",je={top:de.top-pe.top,left:de.left-pe.left,width:Le.width,height:de.height};ve==="trigger"&&(je.left+=8);const We={top:xe.top-pe.top,left:xe.left-pe.left,width:xe.width,height:xe.height},Ae={top:Le.top-pe.top,left:We.left,width:We.width,height:Le.height};me[re]={rect:je,contentRect:We,treeRect:Ae};const{left:we,top:_e,width:Te,height:Ye}=je,Fe=we+Te,Ve=_e+Ye/2,rt=_e+Ye/3*2,Ue=_e+Ye;if(z!=="trigger"&&be.has(re)){if(B.type==="branchRoot")return;Ce.push({cid:re,type:"self-next",parentCid:Se.sup,min:{x:we,y:_e},max:{x:Fe,y:Ue},isValid:!0});return}(0,I.Es)(re);const et=7,lt=Me+ie<=et,Je=Me-1+ie<=et,Xe=()=>{if(X.includes(fe.attr.key)){const{attr:{key:ct}}=fe.sub.at(-1);Ce.push({cid:ct,type:"prevSibling",type2:"lastChild",parentCid:re,min:{x:we,y:_e},max:{x:Fe,y:Ue},isValid:lt&&ct!==j[0]})}else{const ht=(0,I.aW)(fe.sub)[0],{attr:{key:It}}=ht;let it;It===j[0]?it={cid:It,type:"self-prev",parentCid:Se.sup,min:{x:we,y:_e},max:{x:Fe,y:Ue},isValid:!0}:it={cid:It,type:"prevSibling",parentCid:re,min:{x:we,y:_e},max:{x:Fe,y:Ue},isValid:!0},ht.type==="branchRoot"&&(it.uiCid=ht.sub[0].attr.key),Ce.push(it)}},st=()=>{if(fe.type==="trigger")Xe();else if(fe.type==="branch")if(fe.branchIndex===0){const ct=(0,I.aW)(fe.sub),{attr:{key:ht}}=ct[0],It=_(fe.sup,Y);if(ht===j[0])Ce.push({cid:fe.sup,type:"prevSibling",parentCid:It.attr.key,min:{x:we,y:_e},max:{x:Fe,y:Ve},isValid:!0,uiCid:fe.attr.key}),Ce.push({cid:ht,type:"self-prev",parentCid:Se.sup,min:{x:we,y:Ve},max:{x:Fe,y:Ue},isValid:!0});else{if(Ce.push({cid:fe.sup,type:"prevSibling",parentCid:It.attr.key,min:{x:we,y:_e},max:{x:Fe,y:Ve},isValid:!0,uiCid:fe.attr.key}),B.type==="branchRoot")return;Ce.push({cid:ht,type:"prevSibling",parentCid:re,min:{x:we,y:Ve},max:{x:Fe,y:Ue},isValid:!0})}}else{if(B.type==="branchRoot")return;Xe()}},nt=()=>{const ct=_(Se.sup,Y);if((ct==null?void 0:ct.type)==="branch"&&B.type==="branchRoot")return;M(re)&&ct?Ce.push({cid:re,type:"nextSibling",parentCid:Se.sup,min:{x:me[re].contentRect.left,y:rt},max:{x:Fe,y:Ue},isValid:Je}):ve==="action"?Ce.push({cid:re,type:"prevSibling",parentCid:Se.sup,min:{x:we,y:_e},max:{x:Fe,y:Ue},isValid:Je}):(Ce.push({cid:re,type:"prevSibling",parentCid:Se.sup,min:{x:we,y:_e},max:{x:Fe,y:Ve},isValid:Je}),Ce.push({cid:re,type:"nextSibling",parentCid:Se.sup,min:{x:we,y:Ve},max:{x:Fe,y:Ue},isValid:Je}))};z==="trigger"?(()=>{const{attr:{key:ct}}=fe,ht=ce===oe-1?Math.max(ge.bottom,Ue):Ue;ct===j[0]?(Ce.push({cid:ct,type:"self-prev",min:{x:we,y:_e},max:{x:Fe,y:Ve},isValid:!0}),Ce.push({cid:ct,type:"self-next",min:{x:we,y:Ve},max:{x:Fe,y:ht},isValid:!0})):(Ce.push({cid:ct,type:"prevSibling",min:{x:we,y:_e},max:{x:Fe,y:Ve},isValid:!0}),Ce.push({cid:ct,type:"nextSibling",min:{x:we,y:Ve},max:{x:Fe,y:ht},isValid:!0}))})():fe.sub.length>0?st():nt()}),{matchDataList:Ce,containerRect:ge,rectQueryMap:me}};var g=e(61924),S=e(83199),t=e(93257),v=e(95106),w=e(26067),k=e(29360),W=e(81973),K=e(9680),G=e(86594),$=e(88981),P=e(61790),E=e(20089),H=e(79209),O=e(50320),V=e(72214);const Q=(0,n.memo)(B=>{let{interactionTree:j,selectInteractionKey:F,editingPanelRefPage:Y,extraClick:X,uiFrom:z,collapseList:Z,handleCollapse:J,interactionStore:te,extraClick2:ge,onCloseCallback:pe,currentWidgetKey:Ce,isEditingCombo:me}=B;const{handleClick:be,handleClose:ie,menuStatus:oe,clickedItem:he}=(0,i.z)(),{menuStatus:ce,handleToggle2:re,handleClose:fe}=(0,i.z)(),Se=(0,r.d4)(o.R7.query.getNewTriggerNodeEditingKey),Me=(0,r.d4)(o.R7.query.getNewInteractionTypeEditingKey),{handleHover:Ie,hovered:de}=(0,g.Em)(oe),xe=(0,r.wA)(),[Le,ve]=(0,n.useState)(!1),je=(0,n.useCallback)(function(tt,ct){if(ct===void 0&&(ct=he),!ct){ie();return}xe(o.R7.command.deleteIta({deleteNode:ct,uiFrom:z,interactionStore:te,deleteUiFrom:z,onCloseCallback:pe})),ie(),ge==null||ge(ct)},[he,xe,ie,z,te,ge,pe]);(0,n.useEffect)(()=>{Object.assign(MB,{shortKeyCallbackBucket:{...MB.shortKeyCallbackBucket,deleteItaNodeCallback:()=>te.type==="defaultData"||!F||(0,I.Es)(F)?!1:(je(void 0,te.query.getNode(F)),!0)}})},[je,F,te.type,te.query]),(0,n.useEffect)(()=>()=>{Object.assign(MB,{shortKeyCallbackBucket:{...MB.shortKeyCallbackBucket,deleteItaNodeCallback:void 0}})},[]);const We=(0,n.useCallback)(tt=>{if(!he){ie();return}xe(o.R7.command.selectCopyCommand({selectNode:he,copyType:he.type==="trigger"?"trigger":"action",interactionStore:te})),ie()},[he,xe,ie,te]),Ae=tt=>(de==null?void 0:de.attr.key)===tt.attr.key,we=(0,n.useCallback)(tt=>{if(!he){ie();return}if(he.type==="trigger"){var ct;const ht=te==null||(ct=te.query.getTriggerNode(he.attr.trigger))==null?void 0:ct.sub.findLast(It=>It.attr.interactionTrigger);J(he.attr.key,"del"),ht&&xe(o.R7.command.pasteIta({targetInteractionKey:ht.attr.key,uiFrom:z}))}else te.query.getNode(he.sup).type==="branch"?xe(o.R7.command.pasteIta({targetInteractionKey:he.attr.key,uiFrom:z,option:{type:"pasteToBranch",selectNode:he,interactionStore:te}})):xe(o.R7.command.pasteIta({targetInteractionKey:he.attr.key,uiFrom:z}));ie()},[he,xe,ie,z,J,te]),_e=(0,n.useCallback)(()=>{if(!he){ie();return}if(he.type==="trigger"){const tt=(0,I.Mc)({interactionTree:j,trigger:he.attr.trigger}).sub.map(ct=>ct.attr);xe(o.R7.command.updateItaBatch({attr:"triggerDisable",value:!tt[0].triggerDisable,interactionStore:te,trigger:he.attr.trigger,selectNode:he,uiFrom:z}))}else if(he.type==="branchRoot"){const tt=he.attr.runtimeNodeTrigger||(0,I.KN)(he.sup);xe(o.R7.command.updateItaBatch({attr:"actionDisable",value:!he.attr.actionDisable,interactionStore:te,trigger:tt,selectNode:he,uiFrom:z}))}else xe(o.R7.command.updateItaKV({link:he.attr,attr:"actionDisable",value:!he.attr.actionDisable,uiFrom:z,interactionStore:te}));ie()},[he,xe,ie,j,z,te]),[Te,Ye]=(0,n.useState)(null),Fe=(0,n.useCallback)((tt,ct)=>{const ht=ct.type==="trigger"?document.querySelector('#interaction-tree-list [data-key="'+ct.attr.key+'"] .trigger-node.rn-list-item'):document.querySelector('#interaction-tree-list [data-key="'+ct.attr.key+'"]'),{top:It,left:it}=ht.getBoundingClientRect(),Tt=tt.clientX-it;let Lt=tt.clientY-It;if(Lt>40)try{const{top:Gt}=document.querySelector('#interaction-tree-list [data-key="'+ct.attr.key+'_branch_1"]').getBoundingClientRect();Lt=tt.clientY-Gt}catch(Gt){}const Rt=[ct.attr.key],Wt=x(ct,Rt,{interactionTree:j,collapseList:Z}),Kt={screen:ct,$element:ht,offsetX:Tt,offsetY:Lt,...Wt};Ye(Kt)},[j,Z]),Ve=(0,n.useCallback)(tt=>{let{cid:ct,type:ht,isValid:It}=tt;if(Te&&(Ye(null),ve(!1),!!It&&(ht==="prevSibling"||ht==="nextSibling"))){var it;!(0,I.sJ)(ct)&&J(((it=te.query.findUpTriggerNode(ct))==null?void 0:it.attr.key)||"","del"),xe(o.R7.command.interactionInsertCommand({sourceInteractionKey:Te.screen.attr.key,targetInteractionKey:ct,insertType:ht,interactionTree:j,selectTreeNode:Te.screen,uiFrom:z,interactionStore:te})),z==="treePanelFloat"&&xe(o.R7.command.interactionSelectCommand({selectInteractionKeyList:[Te.screen.attr.key]}))}},[xe,Te,j,z,te,J]),rt=(0,n.useRef)(),Ue=(0,n.useCallback)(()=>rt.current,[]),et=()=>{ie()},lt=()=>{xe(o.R7.command.pasteIta({targetInteractionKey:void 0,uiFrom:z}))};(0,n.useEffect)(()=>{oe.isOpenContextMenu||Ie(void 0)},[oe.isOpenContextMenu,Ie]);const Je=tt=>{tt.button===2&&re(tt)},Xe=(0,n.useCallback)(()=>{z==="treePanelRight"&&xe(o.R7.command.interactionSelectCommand({selectInteractionKeyList:[]})),ve(!0)},[xe,z]),[st,nt]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{(0,G.YF)().then(tt=>{nt(tt)})},[oe.isOpenContextMenu,ce.isOpenContextMenu]),(0,V.jsxs)(h.UD,{id:"interaction-tree-container",className:C()({treePanelFloat:z==="treePanelFloat",treePanelRight:z==="treePanelRight","is-dragging":Le}),ref:rt,onMouseDown:Je,children:[(0,V.jsxs)("div",{className:"container2",children:[(0,V.jsx)(g.wM.Provider,{value:{hovered:de,handleHover:Ie,handleScreenMetaDropDown:Fe,editingPanelRefPage:Y,selectInteractionKey:F,handleContextMenuClick:be,extraClick:X,newTriggerNodeEditingKey:Se,newInteractionTypeEditingKey:Me,currentWidgetKey:Ce,getIsNodeHovered:Ae,isEditingCombo:me},children:(0,V.jsx)("div",{id:"interaction-tree-list",children:j&&j.sub.map((tt,ct)=>(0,V.jsx)(N,{interactionTriggerNode:tt,interactionStore:te,collapseList:Z,handleCollapse:J},ct))})}),Te&&(0,V.jsx)(p.A,{draggingElement:Te.$element,getContainerElement:Ue,matchDataList:Te.matchDataList,containerRect:Te.containerRect,rectQueryMap:Te.rectQueryMap,offsetX:Te.offsetX,offsetY:Te.offsetY,onDrop:Ve,noGroupIndicator:!0,onDragStartCallback:Xe})]}),oe.isOpenContextMenu&&he&&(0,V.jsxs)(h.Sv,{position:oe.position,onClose:et,children:[(0,V.jsx)(c.Dr,{text:I18N.ToolBarNext.delete,onClick:je}),(0,V.jsx)(c.Dr,{text:I18N.ToolBarNext.copy,onClick:We}),(0,V.jsx)(c.Dr,{text:I18N.ToolBarNext.paste,onClick:we,disabled:!st}),(0,V.jsx)(c.Dr,{text:(0,I.Pk)(he)?I18N.Interaction.enable_action:I18N.Interaction.disable_action,onClick:_e})]}),ce.isOpenContextMenu&&(0,V.jsx)(h.Sv,{position:ce.position,onClose:fe,children:(0,V.jsx)(c.Dr,{text:I18N.Interaction.paste,onClick:lt,disabled:!st})}),(0,V.jsx)(h.RN,{}),(0,V.jsx)(h.GO,{})]})}),N=(0,n.memo)(B=>{var j;let{interactionTriggerNode:F,interactionStore:Y,collapseList:X,handleCollapse:z}=B;const{handleHover:Z,selectInteractionKey:J,handleContextMenuClick:te,extraClick:ge,getIsNodeHovered:pe,newTriggerNodeEditingKey:Ce,handleScreenMetaDropDown:me,currentWidgetKey:be,editingPanelRefPage:ie,isEditingCombo:oe}=(0,n.useContext)(g.wM),he=J===F.attr.key,ce=((j=Y.query.findUpTriggerNode(J))==null?void 0:j.attr.key)===F.attr.key,re=pe(F),fe=X.includes(F.attr.key),Se=(0,n.useMemo)(()=>!(0,u.Yy)(F.attr.trigger)||F.attr.isListenerTarInvalid,[F]),Me=(0,n.useMemo)(()=>{const je=(0,u.Jh)(F.attr.trigger),We=(0,I.Oz)(je,F.attr.triggerInfo),Ae=()=>{if(!Se)return;let _e=I18N.Interaction.unset,Te=!Ce||!ce;if(je===$.O.Listener){var Ye;const{listenTarKey:Fe}=F.attr.triggerInfo;((Ye=sdkStore.getHotItem(Fe))==null?void 0:Ye.hotAttr.type)===E.x.Var&&(_e=I18N.Variable.trashed,Te=!0)}return Te&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)("span",{className:"no-target-span",children:["\xA0",_e]}),(0,V.jsx)(f.C,{size:16,isColorPure:!0,name:"interaction/invalid"})]})},we=function(_e){if(_e===void 0&&(_e=!1),!Se)switch(je){case $.O.Keydown:{const{keyseq:Ye}=F.attr.triggerInfo,Fe=(0,I.Pn)(Ye),Ve=Fe?Fe.split(/(⌘)/).filter(Boolean):[];return Ve&&Ve.length>0&&(0,V.jsxs)(h.gB,{className:C()("suffix-name",je),children:[(0,V.jsx)("span",{children:"\xA0("}),Ve.map((rt,Ue)=>rt==="\u2318"?(0,V.jsx)("span",{className:"fw-normal",children:"\u2318"},Ue):(0,V.jsx)("span",{children:rt},Ue)),(0,V.jsx)("span",{children:")"})]})}case $.O.Listener:{var Te;const{listenTarKey:Ye,listenTarAttr:Fe}=F.attr.triggerInfo,Ve=((Te=sdkStore.getHotItem(Ye))==null?void 0:Te.hotAttr.type)===E.x.Var,rt=(0,P.KD)(Ye),Ue=Fe?I18N.Expression.exprWattr[Fe]:"";return _e?(0,V.jsxs)(V.Fragment,{children:[rt&&(0,V.jsx)("div",{className:C()("listener-trigger-tag tarName",{"is-var":Ve}),children:rt}),Ue&&(0,V.jsxs)(V.Fragment,{children:[I18N.Interaction.of,"\xA0",(0,V.jsx)("div",{className:"listener-trigger-tag tarAttrName",children:Ue})]})]}):(0,V.jsxs)(h.gB,{className:C()("suffix-name",je),children:[rt&&(0,V.jsx)("div",{className:C()("listener-trigger-tag tarName",{"is-var":Ve}),children:rt}),Ue&&(0,V.jsxs)(V.Fragment,{children:[I18N.Interaction.of,"\xA0",(0,V.jsx)("div",{className:"listener-trigger-tag tarAttrName",children:Ue})]})]})}case $.O.InputEvent:{const{event:Ye}=F.attr.triggerInfo;return(0,V.jsx)("span",{children:""+(0,O.O)(Ye)})}}};return(0,V.jsx)(S.A,{direction:"down",content:(0,V.jsxs)(h.Ny,{children:[(0,V.jsx)("span",{className:C()("ita-trigger-name",{"margin-right-4":je!==$.O.InputEvent}),children:We}),we(!0)]}),maxWidth:"200px",style:{padding:8,wordWrap:"break-word"},tipClassName:"long-name-trigger fixed-transform-y10",isShowTipsByTarget:(_e,Te)=>{var Ye;return((Ye=Te.querySelector(".listener-trigger-tag.tarName"))==null?void 0:Ye.scrollWidth)>60},enterHoverTime:200,isSkipShortTimerHover:!0,children:(0,V.jsxs)(h.Ny,{children:[(0,V.jsx)("span",{className:C()("ita-trigger-name",{"margin-right-4":je!==$.O.InputEvent}),children:We}),we(),Ae()]})})},[F.attr.trigger,F.attr.triggerInfo,Se,Ce,ce]),Ie=(0,r.wA)(),de=(0,n.useCallback)(je=>{je.button===2?(je.stopPropagation(),te(F,{top:je.clientY,left:je.clientX})):me(je,F)},[te,me,F]),xe=(0,n.useCallback)(je=>{Ie(o.R7.command.interactionSelectCommand({selectInteractionKeyList:[(0,I.iY)(F.attr.trigger)]})),ge==null||ge(je,void 0)},[Ie,ge,F.attr.trigger]),Le=(0,n.useCallback)(je=>{je.stopPropagation(),te(F,{top:je.clientY,left:je.clientX})},[te,F]),ve=(0,n.useCallback)(je=>{je.stopPropagation(),z(F.attr.key,fe?"del":"add")},[z,F.attr.key,fe]);return(0,V.jsxs)(h.H0,{isTrigger:!0,className:C()("interaction-trigger-node","rn-content-item",{active:he,hovered:!he&&re,disabled:F.attr.disabled,collapsed:fe}),"data-key":F.attr.key,"data-dkey":F.attr.key,children:[(0,V.jsxs)(h.Wu,{className:C()("trigger-node rn-list-item",{disabled:F.attr.disabled,hovered:!he&&re}),onClick:xe,onMouseDown:de,onMouseEnter:()=>Z(F),onMouseOver:()=>Z(F),onMouseLeave:()=>Z(void 0),children:[(0,V.jsx)(f.C,{size:8,onClick:ve,className:"trigger-collapse",name:"interaction/down_arrow"}),(0,V.jsx)(f.C,{size:16,name:"interaction/trigger/"+(0,u.Jh)(F.attr.trigger),className:"interaction-icon"}),Me,re&&(0,V.jsx)(f.C,{size:24,onClick:Le,className:"hover-more",name:"interaction/more"})]}),!fe&&F.sub.map((je,We)=>je.attr.interactionType===l.O2.TriggerPlaceHolder?null:je.attr.interactionType===l.O2.ConditionalBranches?(0,V.jsx)(U,{interactionTreeBranchRootNode:je,isSupSelect:he,isSupHovered:re},We):(0,V.jsx)(L,{interactionTreeActionNode:je,isSupSelect:he},We))]})}),L=(0,n.memo)(B=>{let{interactionTreeActionNode:j,isSupSelect:F,prefixIcon:Y,isSupDisabled:X}=B;const{handleHover:z,handleScreenMetaDropDown:Z,editingPanelRefPage:J,selectInteractionKey:te,handleContextMenuClick:ge,extraClick:pe,newInteractionTypeEditingKey:Ce,getIsNodeHovered:me,currentWidgetKey:be}=(0,n.useContext)(g.wM),ie=(0,r.d4)(W.ue),oe=(0,n.useMemo)(()=>({variables:(0,K.qL)(ie),p2sdkStore:sdkStore}),[ie]),he=(0,r.wA)(),ce=Fe=>{ve||(he(o.R7.command.interactionSelectCommand({selectInteractionKeyList:[j.attr.key]})),pe==null||pe(Fe,j))},re=Fe=>{fe||(Fe.button===2?(Fe.stopPropagation(),ge(j,{top:Fe.clientY,left:Fe.clientX})):Z(Fe,j))},fe=(0,I.Es)(j.attr.key),Se=te===j.attr.key,Me=fe?"dummy":j.attr.interactionType,{isUiValid:Ie,isTargetValid:de,isTargetVarValid:xe,isTargetExprWattrValid:Le}=j.attr,ve=Me===l.O2.OpenExternalUrl&&(0,H._S)(),je=(0,n.useMemo)(()=>{let Fe=" "+(0,I.iA)(j.attr);if(Ie)switch(j.attr.interactionType){case l.O2.SetBasketCanvas:{var Ve;const{basketKey:et,refRBPageKey:lt,canvasKey:Je}=(0,v.XR)({link:j.attr,editingPanelRefPage:J})||{},Xe=(0,w.Xg)({refRBPageKey:lt,targetResCanvasKey:Je});Fe=I18N.Interaction.name.from_to.replace(/{from}/,et&&((Ve=sdkStore.getHotItem(et))==null?void 0:Ve.hotAttr.name)||"").replace(/{to}/,Xe);break}case l.O2.OpenExternalUrl:{var rt;const et=(rt=j.attr.expression)==null?void 0:rt.interactionExternalUrl;et?Fe=(0,V.jsxs)(h.j$,{className:"var-display-name",children:[I18N.Interaction.name.jump_to,ve?"\u4EC5\u9650\u4F1A\u5458\u4F7F\u7528":(0,V.jsx)(k.A,{readOnly:!0,simple:!0,value:et,valueType:"string",scope:oe,multiline:!1,currentWidgetKey:be})]}):Fe=I18N.Interaction.name.jump_to+" "+(ve?"\u4EC5\u9650\u4F1A\u5458\u4F7F\u7528":(0,I.j$)(j,{editingPanelRefPage:J}));break}case l.O2.LinkToCanvas:{Fe=I18N.Interaction.name.jump_to+" "+(0,I.j$)(j,{editingPanelRefPage:J});break}case l.O2.OpenOverlay:{Fe=I18N.Interaction.name.open+" "+(0,I.j$)(j,{editingPanelRefPage:J});break}case l.O2.SwapOverlay:{Fe=I18N.Interaction.name.change_to+" "+(0,I.j$)(j,{editingPanelRefPage:J});break}case l.O2.SetVariableValue:{Fe=(0,V.jsx)(A,{...j.attr,currentWidgetKey:be});break}case l.O2.SetAnimation:{const et=(0,w.iI)(j.attr,J);if(j.attr.isTargetWidgetValid){var Ue;const lt=I18N.dConst.ani[(Ue=j.attr.data)==null?void 0:Ue.animationName];if(lt){Fe=et+" "+lt;break}}Fe+=et;break}case l.O2.SetInputFocus:{Fe=j.attr.isFocus?I18N.Interaction.setInputFocus.focus:I18N.Interaction.setInputFocus.blur;const et=(0,w.iI)(j.attr,J);j.attr.isTargetWidgetValid&&(Fe+=" "+et);break}default:{Fe+=" "+(0,I.j$)(j,{editingPanelRefPage:J});break}}return Fe},[J,j,Me,Ie,de,oe,ve]),We=me(j),Ae=Fe=>{fe||(Fe.stopPropagation(),ge(j,{top:Fe.clientY,left:Fe.clientX}))},we=(0,n.useCallback)((Fe,Ve)=>{if(typeof je=="string")return(0,I.JT)(je)>142;if(typeof je=="object"){var rt;return((rt=Ve.querySelector(".var-display-name"))==null?void 0:rt.scrollWidth)>164}},[je,ve]),_e=Ce===j.attr.key||de,Te=!fe&&We,Ye=j.attr.triggerDisable||X||j.attr.actionDisable||ve;return(0,V.jsx)(S.A,{content:je,maxWidth:"200px",style:{padding:8,wordWrap:"break-word"},tipClassName:"long-name-trigger fixed-transform-y10",isShowTipsByTarget:we,enterHoverTime:200,isSkipShortTimerHover:!0,children:(0,V.jsxs)(h.yF,{"data-key":j.attr.key,"data-dkey":j.attr.key,className:C()("interaction-action-node","rn-content-item",{active:Se,hovered:!Se&&!F&&We,disabled:Ye}),onMouseDown:re,onClick:ce,onMouseEnter:()=>z(j),onMouseOver:()=>z(j),onMouseLeave:()=>z(void 0),children:[Y,(0,V.jsxs)("div",{className:"rn-list-item",children:[(0,V.jsx)(f.C,{size:16,className:"interaction-icon",name:"interaction/action/"+Me}),(0,V.jsx)("span",{className:C()("strange-name",{valid:_e,inValid:!_e,"is-ui-invalid":!Ie,isShowMore:Te}),children:je}),(0,V.jsx)(D,{newInteractionTypeEditingKey:Ce,interactionTreeActionNode:j,isTargetValid:de,isUiValid:Ie,isTargetVarValid:xe,isTargetVarValid:xe,isTargetExprWattrValid:Le}),Te&&(0,V.jsx)(f.C,{size:24,onClick:Ae,className:"hover-more",name:"interaction/more"})]})]})})}),U=B=>{let{interactionTreeBranchRootNode:j,isSupSelect:F}=B;const{sub:Y,attr:X}=j,z=(0,r.d4)(W.ue),Z=(0,n.useMemo)(()=>({variables:(0,K.qL)(z),p2sdkStore:sdkStore}),[z]),J=Y.length,{handleHover:te,handleScreenMetaDropDown:ge,hovered:pe,selectInteractionKey:Ce,handleContextMenuClick:me,extraClick:be,newInteractionTypeEditingKey:ie,getIsNodeHovered:oe,currentWidgetKey:he}=(0,n.useContext)(g.wM),ce=(0,r.wA)(),re=je=>{ce(o.R7.command.interactionSelectCommand({selectInteractionKeyList:[j.attr.key]})),be==null||be(je,j)},fe=je=>{Me||(je.button===2?(je.stopPropagation(),me(j,{top:je.clientY,left:je.clientX})):ge(je,j))},Se=je=>{je.stopPropagation(),me(j,{top:je.clientY,left:je.clientX})},Me=(0,I.Es)(j.attr.key),Ie=Ce===j.attr.key;let de=!1;if(!F){de=pe===j;for(const je of Y)for(const We of je.sub)if(We===pe){de=!0;break}}const xe=oe(j),Le=F||Ie,ve=X.triggerDisable||X.actionDisable;return(0,V.jsx)(h.H0,{isTrigger:!1,"data-hkey":j.attr.key,className:C()("interaction-branch-root-node",{active:Ie,hovered:de}),children:Y.map((je,We)=>{const{attr:{key:Ae,condition:we},sub:_e}=je,Te=We===0;if(!Te&&!j.attr.branchSwitch)return null;const Ye=We===J-1,Fe=I18N.Interaction.branch[Te?"if":Ye?"else":"elseif"],Ve=!Ye&&X.isTargetValid,rt=(Ue,et)=>{var lt;return Ye?!1:((lt=et.querySelector(".var-display-name"))==null?void 0:lt.scrollWidth)>164};return(0,V.jsxs)("div",{children:[(0,V.jsx)(h.yF,{"data-key":Te?j.attr.key:Ae,"data-dkey":Ae,className:C()("interaction-action-node","rn-content-item",{active:Ie&&Te,hovered:de&&Te,disabled:ve}),onMouseDown:fe,onClick:re,onMouseEnter:()=>te(j),onMouseOver:()=>te(j),onMouseLeave:()=>te(void 0),children:(0,V.jsx)(S.A,{content:Ye||!Ve?null:(0,V.jsxs)(V.Fragment,{children:[Fe,(0,V.jsx)(h.j$,{className:"var-display-name",children:(0,V.jsx)(k.A,{readOnly:!0,simple:!0,value:we,valueType:"boolean",scope:Z,multiline:!1,currentWidgetKey:he})})]}),maxWidth:"200px",style:{padding:8,wordWrap:"break-word"},tipClassName:"long-name-trigger fixed-transform-y10",isShowTipsByTarget:rt,enterHoverTime:200,isSkipShortTimerHover:!0,children:(0,V.jsxs)("div",{className:"rn-list-item",children:[(0,V.jsx)(f.C,{size:16,className:"interaction-icon",name:"interaction/action/"+(Ye?"12_else":l.O2.ConditionalBranches)}),(0,V.jsxs)("div",{className:C()("strange-name var-display-name",{valid:Ve,inValid:!Ve}),children:[Fe,Ye?null:(0,V.jsxs)(V.Fragment,{children:[Ve&&(0,V.jsx)(h.j$,{className:"var-display-name",children:(0,V.jsx)(k.A,{readOnly:!0,simple:!0,value:we,valueType:"boolean",scope:Z,multiline:!1,currentWidgetKey:he})}),(0,V.jsx)(D,{newInteractionTypeEditingKey:ie,interactionTreeActionNode:j,isTargetValid:Ve,isTargetVarValid:we&&j.attr.isTargetVarValid,isTargetExprWattrValid:j.attr.isTargetExprWattrValid,isUiValid:!0}),xe&&(0,V.jsx)(f.C,{size:24,onClick:Se,className:"hover-more",name:"interaction/more"})]})]})]})})}),_e.map(Ue=>Ue.attr.interactionType===l.O2.TriggerPlaceHolder?null:(0,V.jsx)(L,{interactionTreeActionNode:Ue,isSupSelect:Le,isSupDisabled:ve,prefixIcon:(0,V.jsx)(f.C,{className:"branch-icon",name:"interaction/branch_ui"})},Ue.attr.key))]},Ae)})})},A=B=>{const j=(0,r.d4)(W.ue),F=(0,n.useMemo)(()=>({variables:(0,K.qL)(j),p2sdkStore:sdkStore}),[j]),Y=B.targetVarKey?(0,K.hZ)(B.targetVarKey):null;return(0,V.jsx)(h.j$,{className:"var-display-name",children:B.isTargetVarValid&&B.isTargetValid&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)("span",{className:"var-tag",children:Y.name}),I18N.Interaction.variable.set_value,(0,V.jsx)(k.A,{readOnly:!0,simple:!0,valueType:(Y==null?void 0:Y.varDataType)||"string",value:B.targetVarValue,scope:F,multiline:!1,currentWidgetKey:B.currentWidgetKey})]})})},D=B=>{let{newInteractionTypeEditingKey:j,interactionTreeActionNode:F,isTargetValid:Y,isTargetVarValid:X,isUiValid:z,children:Z,isTargetExprWattrValid:J}=B;const te=ge=>{const pe=document.getElementsByClassName("long-name-trigger"),Ce=me=>{me.style.display=ge?"unset":"none"};for(let me=0;me<pe.length;me++)Ce(pe.item(me))};return j===F.attr.key?Z:!Y||X===!1||J===!1?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)("span",{className:"no-target-span",children:["\xA0",X===!1?I18N.Variable.trashed:I18N.Interaction.unset]}),(0,V.jsx)(f.C,{size:16,isColorPure:!0,name:"interaction/invalid"})]}):z?Z?(0,V.jsx)(S.A,{direction:"down",content:Z,maxWidth:"200px",enterHoverTime:200,isSkipShortTimerHover:!0,style:{padding:8,wordWrap:"break-word"},onChangeTooltipsHover:(ge,pe)=>pe==null?void 0:pe(),isShowTipsByTarget:(ge,pe)=>pe.clientWidth>144,tipClassName:"fixed-transform-y20x6",children:Z}):null:(0,V.jsx)(t.A,{direction:"down",content:I18N.Interaction.invalid_redit,maxWidth:"80px",enterCallback:()=>te(!1),leaveCallback:()=>te(!0),children:(0,V.jsx)(f.C,{size:16,isColorPure:!0,name:"interaction/invalid"})})}},99402:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>B});var n=e(38502),r=e(53732),c=e.n(r),o=e(94586),I=e(76241),u=e(95549),d=e(53034),C=e(59895),h=e(94815),i=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],f=(0,n.forwardRef)(function(j,F){var Y=j.prefixCls,X=Y===void 0?"rc-checkbox":Y,z=j.className,Z=j.style,J=j.checked,te=j.disabled,ge=j.defaultChecked,pe=ge===void 0?!1:ge,Ce=j.type,me=Ce===void 0?"checkbox":Ce,be=j.title,ie=j.onChange,oe=(0,C.A)(j,i),he=(0,n.useRef)(null),ce=(0,n.useRef)(null),re=(0,h.A)(pe,{value:J}),fe=(0,d.A)(re,2),Se=fe[0],Me=fe[1];(0,n.useImperativeHandle)(F,function(){return{focus:function(Le){var ve;(ve=he.current)===null||ve===void 0||ve.focus(Le)},blur:function(){var Le;(Le=he.current)===null||Le===void 0||Le.blur()},input:he.current,nativeElement:ce.current}});var Ie=c()(X,z,(0,u.A)((0,u.A)({},"".concat(X,"-checked"),Se),"".concat(X,"-disabled"),te)),de=function(Le){te||("checked"in j||Me(Le.target.checked),ie==null||ie({target:(0,I.A)((0,I.A)({},j),{},{type:me,checked:Le.target.checked}),stopPropagation:function(){Le.stopPropagation()},preventDefault:function(){Le.preventDefault()},nativeEvent:Le.nativeEvent}))};return n.createElement("span",{className:Ie,title:be,style:Z,ref:ce},n.createElement("input",(0,o.A)({},oe,{className:"".concat(X,"-input"),ref:he,onChange:de,disabled:te,checked:!!Se,type:me})),n.createElement("span",{className:"".concat(X,"-inner")}))});const p=f;var s=e(21425),l=e(82745),_=e(63418),b=e(46757),a=e(16981),M=e(46656),x=e(90852);const S=n.createContext(null);var t=e(61972),v=e(55095),w=e(48150),k=e(58196);const W=j=>{const{checkboxCls:F}=j,Y=F+"-wrapper";return[{[F+"-group"]:Object.assign(Object.assign({},(0,v.dF)(j)),{display:"inline-flex",flexWrap:"wrap",columnGap:j.marginXS,["> "+j.antCls+"-row"]:{flex:1}}),[Y]:Object.assign(Object.assign({},(0,v.dF)(j)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},["& + "+Y]:{marginInlineStart:0},["&"+Y+"-in-form-item"]:{'input[type="checkbox"]':{width:14,height:14}}}),[F]:Object.assign(Object.assign({},(0,v.dF)(j)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:j.borderRadiusSM,alignSelf:"center",[F+"-input"]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,["&:focus-visible + "+F+"-inner"]:Object.assign({},(0,v.jk)(j))},[F+"-inner"]:{boxSizing:"border-box",display:"block",width:j.checkboxSize,height:j.checkboxSize,direction:"ltr",backgroundColor:j.colorBgContainer,border:(0,t.zA)(j.lineWidth)+" "+j.lineType+" "+j.colorBorder,borderRadius:j.borderRadiusSM,borderCollapse:"separate",transition:"all "+j.motionDurationSlow,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:j.calc(j.checkboxSize).div(14).mul(5).equal(),height:j.calc(j.checkboxSize).div(14).mul(8).equal(),border:(0,t.zA)(j.lineWidthBold)+" solid "+j.colorWhite,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:"all "+j.motionDurationFast+" "+j.motionEaseInBack+", opacity "+j.motionDurationFast}},"& + span":{paddingInlineStart:j.paddingXS,paddingInlineEnd:j.paddingXS}})},{["\n "+Y+":not("+Y+"-disabled),\n "+F+":not("+F+"-disabled)\n "]:{["&:hover "+F+"-inner"]:{borderColor:j.colorPrimary}},[Y+":not("+Y+"-disabled)"]:{["&:hover "+F+"-checked:not("+F+"-disabled) "+F+"-inner"]:{backgroundColor:j.colorPrimaryHover,borderColor:"transparent"},["&:hover "+F+"-checked:not("+F+"-disabled):after"]:{borderColor:j.colorPrimaryHover}}},{[F+"-checked"]:{[F+"-inner"]:{backgroundColor:j.colorPrimary,borderColor:j.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:"all "+j.motionDurationMid+" "+j.motionEaseOutBack+" "+j.motionDurationFast}}},["\n "+Y+"-checked:not("+Y+"-disabled),\n "+F+"-checked:not("+F+"-disabled)\n "]:{["&:hover "+F+"-inner"]:{backgroundColor:j.colorPrimaryHover,borderColor:"transparent"}}},{[F]:{"&-indeterminate":{"&":{[F+"-inner"]:{backgroundColor:""+j.colorBgContainer,borderColor:""+j.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:j.calc(j.fontSizeLG).div(2).equal(),height:j.calc(j.fontSizeLG).div(2).equal(),backgroundColor:j.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},["&:hover "+F+"-inner"]:{backgroundColor:""+j.colorBgContainer,borderColor:""+j.colorPrimary}}}}},{[Y+"-disabled"]:{cursor:"not-allowed"},[F+"-disabled"]:{["&, "+F+"-input"]:{cursor:"not-allowed",pointerEvents:"none"},[F+"-inner"]:{background:j.colorBgContainerDisabled,borderColor:j.colorBorder,"&:after":{borderColor:j.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:j.colorTextDisabled},["&"+F+"-indeterminate "+F+"-inner::after"]:{background:j.colorTextDisabled}}}]};function K(j,F){const Y=(0,w.oX)(F,{checkboxCls:"."+j,checkboxSize:F.controlInteractiveSize});return[W(Y)]}const G=(0,k.OF)("Checkbox",(j,F)=>{let{prefixCls:Y}=F;return[K(Y,j)]});var $=e(23653);function P(j){const F=n.useRef(null),Y=()=>{$.A.cancel(F.current),F.current=null};return[()=>{Y(),F.current=(0,$.A)(()=>{F.current=null})},Z=>{F.current&&(Z.stopPropagation(),Y()),j==null||j(Z)}]}var E=function(j,F){var Y={};for(var X in j)Object.prototype.hasOwnProperty.call(j,X)&&F.indexOf(X)<0&&(Y[X]=j[X]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,X=Object.getOwnPropertySymbols(j);z<X.length;z++)F.indexOf(X[z])<0&&Object.prototype.propertyIsEnumerable.call(j,X[z])&&(Y[X[z]]=j[X[z]]);return Y};const H=(j,F)=>{var Y;const{prefixCls:X,className:z,rootClassName:Z,children:J,indeterminate:te=!1,style:ge,onMouseEnter:pe,onMouseLeave:Ce,skipGroup:me=!1,disabled:be}=j,ie=E(j,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:oe,direction:he,checkbox:ce}=n.useContext(b.QO),re=n.useContext(S),{isFormItemInput:fe}=n.useContext(x.$W),Se=n.useContext(a.A),Me=(Y=(re==null?void 0:re.disabled)||be)!==null&&Y!==void 0?Y:Se,Ie=n.useRef(ie.value),de=n.useRef(null),xe=(0,s.K4)(F,de);n.useEffect(()=>{re==null||re.registerValue(ie.value)},[]),n.useEffect(()=>{if(!me)return ie.value!==Ie.current&&(re==null||re.cancelValue(Ie.current),re==null||re.registerValue(ie.value),Ie.current=ie.value),()=>re==null?void 0:re.cancelValue(ie.value)},[ie.value]),n.useEffect(()=>{var Ve;!((Ve=de.current)===null||Ve===void 0)&&Ve.input&&(de.current.input.indeterminate=te)},[te]);const Le=oe("checkbox",X),ve=(0,M.A)(Le),[je,We,Ae]=G(Le,ve),we=Object.assign({},ie);re&&!me&&(we.onChange=function(){if(ie.onChange){for(var Ve=arguments.length,rt=new Array(Ve),Ue=0;Ue<Ve;Ue++)rt[Ue]=arguments[Ue];ie.onChange.apply(ie,rt)}re.toggleOption&&re.toggleOption({label:J,value:ie.value})},we.name=re.name,we.checked=re.value.includes(ie.value));const _e=c()(Le+"-wrapper",{[Le+"-rtl"]:he==="rtl",[Le+"-wrapper-checked"]:we.checked,[Le+"-wrapper-disabled"]:Me,[Le+"-wrapper-in-form-item"]:fe},ce==null?void 0:ce.className,z,Z,Ae,ve,We),Te=c()({[Le+"-indeterminate"]:te},_.D,We),[Ye,Fe]=P(we.onClick);return je(n.createElement(l.A,{component:"Checkbox",disabled:Me},n.createElement("label",{className:_e,style:Object.assign(Object.assign({},ce==null?void 0:ce.style),ge),onMouseEnter:pe,onMouseLeave:Ce,onClick:Ye},n.createElement(p,Object.assign({},we,{onClick:Fe,prefixCls:Le,className:Te,disabled:Me,ref:xe})),J!=null&&n.createElement("span",{className:Le+"-label"},J))))},V=n.forwardRef(H);var Q=e(63296),N=e(13199),L=function(j,F){var Y={};for(var X in j)Object.prototype.hasOwnProperty.call(j,X)&&F.indexOf(X)<0&&(Y[X]=j[X]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,X=Object.getOwnPropertySymbols(j);z<X.length;z++)F.indexOf(X[z])<0&&Object.prototype.propertyIsEnumerable.call(j,X[z])&&(Y[X[z]]=j[X[z]]);return Y};const A=n.forwardRef((j,F)=>{const{defaultValue:Y,children:X,options:z=[],prefixCls:Z,className:J,rootClassName:te,style:ge,onChange:pe}=j,Ce=L(j,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:me,direction:be}=n.useContext(b.QO),[ie,oe]=n.useState(Ce.value||Y||[]),[he,ce]=n.useState([]);n.useEffect(()=>{"value"in Ce&&oe(Ce.value||[])},[Ce.value]);const re=n.useMemo(()=>z.map(Te=>typeof Te=="string"||typeof Te=="number"?{label:Te,value:Te}:Te),[z]),fe=Te=>{ce(Ye=>Ye.filter(Fe=>Fe!==Te))},Se=Te=>{ce(Ye=>[].concat((0,Q.A)(Ye),[Te]))},Me=Te=>{const Ye=ie.indexOf(Te.value),Fe=(0,Q.A)(ie);Ye===-1?Fe.push(Te.value):Fe.splice(Ye,1),"value"in Ce||oe(Fe),pe==null||pe(Fe.filter(Ve=>he.includes(Ve)).sort((Ve,rt)=>{const Ue=re.findIndex(lt=>lt.value===Ve),et=re.findIndex(lt=>lt.value===rt);return Ue-et}))},Ie=me("checkbox",Z),de=Ie+"-group",xe=(0,M.A)(Ie),[Le,ve,je]=G(Ie,xe),We=(0,N.A)(Ce,["value","disabled"]),Ae=z.length?re.map(Te=>n.createElement(V,{prefixCls:Ie,key:Te.value.toString(),disabled:"disabled"in Te?Te.disabled:Ce.disabled,value:Te.value,checked:ie.includes(Te.value),onChange:Te.onChange,className:c()(de+"-item",Te.className),style:Te.style,title:Te.title,id:Te.id,required:Te.required},Te.label)):X,we=n.useMemo(()=>({toggleOption:Me,value:ie,disabled:Ce.disabled,name:Ce.name,registerValue:Se,cancelValue:fe}),[Me,ie,Ce.disabled,Ce.name,Se,fe]),_e=c()(de,{[de+"-rtl"]:be==="rtl"},J,te,je,xe,ve);return Le(n.createElement("div",Object.assign({className:_e,style:ge},We,{ref:F}),n.createElement(S.Provider,{value:we},Ae)))}),D=V;D.Group=A,D.__ANT_CHECKBOX=!0;const B=D},99587:(He,ee,e)=>{"use strict";e.d(ee,{KF:()=>o,P2:()=>c,tR:()=>I,tl:()=>u});var n=e(12211),r=e(25997);const c=d=>d.editor.state.image.isEditingImageWrapperCid,o=d=>d.editor.state.image.currentImageClipSelected,I=d=>d.editor.state.image.currentImageOperateType,u=(0,n.Mz)([r.UV,c,r.RX],(d,C)=>C?C.split(",").map(i=>d.getHotItem(i)).filter(i=>!!i):null)},99917:(He,ee,e)=>{"use strict";e.d(ee,{Mg:()=>r,Pv:()=>c,Q7:()=>o,bl:()=>n});let n=function(I){return I.slicing="slicing",I.cutting="cutting",I.flipH="flipH",I.flipV="flipV",I}({}),r=function(I){return I.square="square",I.circular="circular",I}({}),c=function(I){return I.cross="cross",I.horizontal="horizontal",I.vertical="vertical",I}({}),o=function(I){return I.cutFrame="cutFrame",I.img="img",I}({})},99963:(He,ee,e)=>{"use strict";e.d(ee,{o:()=>C});var n=e(44115),r=e(30728),c=e(27480),o=e(61627),I=e(56907),u=e.n(I);let d;(function(h){function i(f,p){return u()(f.from.x,f.from.y,f.to.x,f.to.y,p.x,p.y)}h.distance=i})(d||(d={}));let C;(function(h){const i=h.identity={transform:n.s.identity,rect:c.rw.empty};function f(W,K){return{transform:K.transform.clone().prepend(W),rect:K.rect}}h.prepend=f;function p(W,K){return{transform:W.transform.clone().append(K),rect:W.rect}}h.concat=p;function s(W,K){const G=W.transform.applyInverse(K);return c.rw.contains(W.rect,G)}h.contains=s;function l(W,K){return _(K).every($=>s(W,$))}h.containTransformAndRect=l;function _(W){const{transform:K,rect:G}=W;return o.a.points(K.applyRect(G))}h.points=_;function b(W){const{transform:K,rect:G}=W;return K.applyRect(G)}h.toBoundingPoints=b;function a(W){return c.rw.enclosing(_(W))}h.axisAligned=a;function M(W,K,G){const $=C.toBoundingPoints(K);let P;switch(G){case"t":P=[$.tl,$.tr];break;case"r":P=[$.br,$.tr];break;case"l":P=[$.tl,$.bl];break;case"b":P=[$.bl,$.br];break}return x(W,P)}h.project2oneSide=M;function x(W,K){const G=r.Z.subtract(W,K[1]),$=r.Z.subtract(K[0],K[1]),P=$.x*$.x+$.y*$.y,E=new n.h($.x*$.x/P,$.x*$.y/P,$.x*$.y/P,$.y*$.y/P,0,0);return r.Z.add(E.applyWithoutXY(G),K[1])}h.projectOnePoint2Line=x;function g(W,K,G){const $=C.toBoundingPoints(K);switch(G){case"r":return $.br;case"l":return $.tl;case"b":return $.bl;case"t":return $.tl}}h.project2Line=g;function S(W,K,G,$){const P=o.a.sides(W.transform.applyRect(W.rect));let E=null,H=G;for(const[O,V]of Object.entries(P)){const Q=d.distance(V,K);Q<H&&(E=O,H=Q)}return $&&E!=="l"&&E!=="r"?null:E}h.nearSide=S;function t(W,K,G,$){if($)return null;let P=G,E=null;const H=W.transform.applyRect(W.rect);for(const[O,V]of Object.entries(H)){const Q=r.Z.distance(K,V);Q<P&&(E=O,P=Q)}return E}h.nearCorner=t;function v(W,K,G,$,P){const E=W.transform.applyInverse(K),H=c.rw.inCorner(G>=0?W.rect:c.rw.enlarge(W.rect,G),E);if(H!==null)if(P){if(H!=="l"&&H!=="r")return null;const O={};O.l=W.transform.apply(r.Z.average({x:W.rect.x,y:W.rect.y},{x:W.rect.x,y:W.rect.y+W.rect.h})),O.r=W.transform.apply(r.Z.average({x:W.rect.x+W.rect.w,y:W.rect.y},{x:W.rect.x+W.rect.w,y:W.rect.y+W.rect.h}));const V=r.Z.distance(K,O[H]);return V>G&&V<$?H:null}else{if(H==="l"||H==="r")return null;const O=W.transform.applyRect(W.rect),V=r.Z.distance(K,O[H]);return V>G&&V<$?H:null}else return null}h.nearRotateControlCorner=v;function w(W,K,G,$){let P=null;const E=[];for(const[H,O]of W)r.Z.distance(K,O)<=G&&(P=H,E.push({key:H}));if(E.length>1){let H=1/0;E.forEach(O=>{let{key:V}=O;const Q=r.Z.distance(K,$[V]);Q<H&&(P=V,H=Q)})}return P}h.nearPoints=w;function k(W,K,G){return r.Z.distance(W,K)<=G}h.nearPoint=k})(C||(C={}))}}]);
//# sourceMappingURL=4.ekpaa-vendor-4a8c0d8af0989de4a89f.js.map