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{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&&ff>p.top&&f{"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{"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{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(;Cefe.hotAttr.type==="rResStyleGroup"&&fe.hotAttr.styleType===F).map(fe=>fe.key);break}}if(!he)break}sdkStore.combineMergeMark("create-style-group");const ie=[];for(;CesdkStore.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;ieie.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+1oe.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;hehe.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;JF.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{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{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{"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;kr(w=>w+t,v-t+1),o=t=>r(v=>v/t,1+t),I=(t,v)=>({[Symbol.iterator]:()=>{let w=0;return{next:()=>wI(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.x&&A.x=L.x&&U.x=L.y){const B=(A.y+(L.y+N.h))/2;A.x>=N.x&&A.x=N.x+N.w/2&&A.x=L.y&&U.y<=N.y+N.h)if(U.x+U.w=N.x&&A.x=L.x&&U.x<=N.x+N.w){const B=N.yU.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&&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.yL.x&&D.push({x:L.x,y:A.y}),A.x<=L.x)){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.xL.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.yN.y+N.h){const B=A.x>L.x?A.x+20:L.x+20;if(U.x>L.x&&U.yL.y){if(A.xL.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.xL.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&&A.y=N.x&&A.xL.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&&A.yN.x+N.w?U.x+U.w+20:N.x+N.w+20,j=U.y=N.y&&A.y=N.y+N.h&&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&&U.x=N.x&&A.x=N.x+N.w/2&&A.x=L.x)){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&&A.x=L.x){const B=N.xU.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.y&&A.y=L.y&&U.y=L.x){const B=(A.x+(N.x+N.w))/2;A.y>=N.y&&A.y=N.y+N.h/2&&A.y5?(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=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.x5?(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=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=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&&(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=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.x5?((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-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{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)&&vtMath.min(Zt,Qt)&&ynMath.min(Zt,Qt)&&yn=-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({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)((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&>("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&>("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&>("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(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{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{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{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;ot1&&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{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&>.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 * @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=''+W+"",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=""+(re==null?void 0:re.innerHTML)+""}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{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;F128?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(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({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{"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({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":"","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":"","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":"","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":"","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":"","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+'","","-",["","64 64 896 896"]],[[["'+I18N.Widget.navItem1+'","","/",""],[]],[["'+I18N.Widget.navItem2+'","","-",""],[]],[["'+I18N.Widget.navItem3+'","","-",""],[]]]],[["'+I18N.Widget.nav2+'","","-",["","64 64 896 896"]],[]],[["'+I18N.Widget.nav3+'","","-",["","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+'","","-",["","64 64 896 896"]],[[["'+I18N.Widget.navItem1+'","","/",""],[]],[["'+I18N.Widget.navItem2+'","","-",""],[]],[["'+I18N.Widget.navItem3+'","","-",""],[]]]],[["'+I18N.Widget.nav2+'","","-",["","64 64 896 896"]],[]],[["'+I18N.Widget.nav3+'","","-",["","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+'","","-",["","64 64 896 896"]],[[["'+I18N.Widget.navItem1+'","","/",""],[]],[["'+I18N.Widget.navItem2+'","","-",""],[]],[["'+I18N.Widget.navItem3+'","","-",""],[]]]],[["'+I18N.Widget.nav2+'","","-",["","64 64 896 896"]],[]],[["'+I18N.Widget.nav3+'","","-",["","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+'","","*",["","64 64 896 896"]],[]],[["'+I18N.Widget.tab2+'","","(",["","64 64 896 896"]],[]],[["'+I18N.Widget.tab3+'","","(",["","64 64 896 896"]],[]],[["'+I18N.Widget.tab4+'","","(",["","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!(!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{"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)sMath.max(b,M)?g=bMath.max(a,x)?g=aMath.max(a,x)?g=a{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+fQ+N+s{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{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{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{let ae=null,ye=null;return function(){for(var Ee=arguments.length,Pe=new Array(Ee),Ze=0;Ze',O='',V='',Q='',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);ye1&&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"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;Ct0&&!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;Ctko?Ee.setState({position:"top"}):Vt==="left"&&Lo-QoCo&&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=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=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"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;Ct0&&arguments[0]!==void 0?arguments[0]:Ee.$ellipsis;return wt.offsetWidthObject.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+wteo,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+Pewindow.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.right1?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{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,''],zo=[32,32,''],xs=[18,18,''],ys=[16,16,''],ss=[24,24,''],le=[12,12,''],At=[12,12,''],Pt=[14,14,''],Re=[14,14,''],yt=[20,20,''],Dt=[20,20,''],Xt=[20,20,''],Xn=[20,20,''],Do=[20,20,''],Uo=[16,16,''],jo=[9,10,''],as=[12,9,''],gs=[16,16,''],Eo=[16,16,''],ws=[12,12,''],Rs=[12,12,''],As=[32,32,''],js=[32,32,''],Ls=[32,32,''],wi=[32,32,''],Fs=[32,32,''],Ii=[10,7,''],Bs=[10,7,''],hi=[8,12,''],Li=[8,12,''],qs=[6,4,''],Ws=[6,4,''],Wi=[24,24,''],Ds=[24,24,''],Xs=[24,24,''],Ti=[24,24,''],ri=[10,10,''],ui=[14,14,''],Ks=[14,14,''],li=[14,14,''],gi=[14,14,''],wa=[14,14,''],ta=[14,14,''],pr=[14,14,''],hr=[14,14,''],ac=[12,12,''],Ia=[12,12,''],ur=[12,12,''],gr=[12,12,''],mr=[14,14,''],Fi=[14,14,''],Ta=[14,14,''],Aa=[34,24,''],Pa=[34,24,''],na=[34,24,''],fr=[34,24,''],xr=[34,24,''],rc=[34,24,''],Ma=[34,24,''],yr=[34,24,''],vr=[34,24,''],br=[34,24,''],Cr=[34,24,''],lc=[34,24,''],Sr=[34,24,''],_r=[34,24,''],Ea=[34,24,''],oa=[34,24,''],La=[14,14,''],mi=[14,14,''],sa=[14,14,''],Na=[14,14,''],wr=[14,14,''],cc=[14,14,''],dc=[14,14,''],ia=[14,14,''],Da=[14,14,''],Ir=[14,14,''],Tr=[12,12,''],aa=[12,12,''],Ar=[12,12,''],Pr=[18,18,''],ka=[18,18,''],Mr=[18,18,''],Ns=[18,18,''],Er=[18,18,''],oi=[12,12,''],Lr=[12,12,''],Nr=[12,12,''],Dr=[12,12,''],kr=[14,14,''],Oa=[14,14,''],Ra=[14,14,''],Or=[14,14,''],Ba=[12,12,''],ra=[12,12,''],Rr=[12,12,''],Br=[18,18,''],jr=[18,18,''],Vi=[14,14,''],Wr=[14,14,''],Hi=[14,14,''],Fr=[14,14,''],Vr=[16,15,''],Hr=[16,16,''],Ur=[18,18,''],ja=[16,16,''],Kr=[16,16,''],zr=[14,12,''],Gr=[18,18,''],Zr=[23,20,''],Yr=[24,17,''],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=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=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"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=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=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"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,''],"design/autoFillPanel/more":[12,3,''],"design/autoFillPanel/phone":[21,21,''],"design/autoFillPanel/city":[21,21,''],"design/autoFillPanel/country":[21,21,''],"design/autoFillPanel/content":[21,21,''],"design/autoFillPanel/dateTime":[21,21,''],"design/autoFillPanel/email":[21,21,''],"design/autoFillPanel/number":[21,21,''],"design/autoFillPanel/animal":[21,21,''],"design/autoFillPanel/tech":[21,21,''],"design/autoFillPanel/nature":[21,21,''],"design/autoFillPanel/business":[21,21,''],"design/autoFillPanel/food":[21,21,''],"design/autoFillPanel/close":[24,24,''],"design/br_single":[9,10,''],"chatGPT/ai-help":[16,16,''],"embed/question/circle":[12,12,''],"preview/inspect/color_absorber":[24,24,''],"chatGPT/ai-switch-left":[14,14,''],"chatGPT/ai-switch-right":[15,14,''],"chatGPT/tip-loading":[20,20,''],"chatGPT/create-comment-send":[20,20,''],"chatGPT/ai-point-icon":[16,16,''],"chatGPT/ai-point-icon-red":[16,16,''],"chatGPT/ai-cmd-help":[24,24,''],"chatGPT/ai-cmd-send":[24,24,''],"chatGPT/ai-chat-send":[28,28,''],"chatGPT/ai-chat-stop":[28,28,''],"chatGPT/ai-chat-avatar":[32,32,''],"chatGPT/ai-chat-expand-arrow":[24,24,''],"chatGPT/ai-chat-copy":[24,24,''],"chatGPT/ai-panel-head-close":[24,24,''],"common/expand":[8,8,'']},...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=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(;P1){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(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{"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{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-VO.left&&N.left(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{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{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{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),JtEt(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{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]&&wnSn.range[0]&&fn0&&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("{_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(AnVo)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(unle&&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.clientHeight0){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{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&&t0&&vw.bottom-20&&v{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(WS.right||KS.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&&$=V&&P{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>

/gm,"\n").replace(/<(?:.)*?>/gm,""))}},u=i=>{let f,p;for(let s=0;s{let f=i;return C.forEach(p=>{let[s,l]=p;return f=f.replace(new RegExp(l,"g"),s)}),f},C=[[""," "],[">",">"],["<","<"],["&","&"]],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''+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''}).join("")+''}function w(A){const{colors:D,stops:B}=A,j=Transform.parse(A);return''+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''}).join("")+''}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?''+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''}).join("")+"":A.type===PaintType.RadialGradient?''+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''}).join("")+"":""}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{const ce=ge[he];!(ce.rightJ.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.rightJ.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.bottomJ.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{const ce=ge[he];!(ce.bottomJ.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?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=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{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{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>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>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&<({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&<.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{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{"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{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{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-wN?E(!0):E(!1)}else if(v==="x"){const{left:V,right:Q}=O.getBoundingClientRect(),{left:N,right:L}=t;V-wN?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;Mx.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{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="r-skt",v=">cur",w="save",W="{"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{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{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?"":"

"+I18N.SettingPanel.tip_help+"

",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&&dtkt,{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("\n "+nt.join("")+"\n \n \n "+tt.join("")+"\n \n ",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&<.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.topthis.$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{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+=""),V&&(re+=""),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+pme&&B({maxHeight:me-te+"px"})):(A.isDownward=!1,L&&Z-F{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+AA;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='',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;dnew 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(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+_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.right1?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,''+f+""):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:"\u2318X",cut_win:"Ctrl+X",save_mac:"\u2318S",save_win:"Ctrl+S",undo_mac:"\u2318Z",undo_win:"Ctrl+Z",redo_mac:"\u21E7\u2318Z",redo_win:"Shift+Ctrl+Z",duplicate_mac:"\u2318C",duplicate_win:"Ctrl+C",paste_mac:"\u2318V",paste_win:"Ctrl+V",trash_mac:"Del/Backspace",trash_win:"Del/Backspace",play_toolbar_mac:"\u2318P",play_toolbar_win:"Ctrl+P",align_left_mac:"\u2325\u2318L",align_left_win:"Alt+Ctrl+L",align_center_v_mac:"\u2325\u2318C",align_center_v_win:"Alt+Ctrl+C",align_right_mac:"\u2325\u2318R",align_right_win:"Alt+Ctrl+R",align_top_mac:"\u2325\u2318T",align_top_win:"Alt+Ctrl+T",align_center_h_mac:"\u2325\u2318M",align_center_h_win:"Alt+Ctrl+M",align_bottom_mac:"\u2325\u2318B",align_bottom_win:"Alt+Ctrl+B",dist_evenly_h_mac:"\u2325\u2318H",dist_evenly_h_win:"Alt+Ctrl+H",dist_evenly_v_mac:"\u2325\u2318U",dist_evenly_v_win:"Alt+Ctrl+U",z_front_mac:"\u21E7\u2318\u2191",z_front_win:"Shift+Ctrl+\u2191",z_back_mac:"\u21E7\u2318\u2193",z_back_win:"Shift+Ctrl+\u2193",z_forward_mac:"\u2325\u2318\u2191",z_forward_win:"Alt+Ctrl+\u2191",z_backward_mac:"\u2325\u2318\u2193",z_backward_win:"Alt+Ctrl+\u2193",group_mac:"\u2318G",group_win:"Ctrl+G",ungroup_mac:"\u21E7\u2318G",ungroup_win:"Shift+Ctrl+G",text_bold_mac:"\u2318B",text_bold_win:"Ctrl+B",text_italic_mac:"\u2318I",text_italic_win:"Ctrl+I",text_underline_mac:"\u2318U",text_underline_win:"Ctrl+U",text_lineThrough_mac:"\u21E7\u2318S",text_lineThrough_win:"Shift+Ctrl+S",catalogue_mac:"\u23251",catalogue_win:"Alt1",layer_mac:"\u23252",layer_win:"Alt2",basket_mac:"\u23253",basket_win:"Alt3"},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=>""+s+"").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&<.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{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=//g,t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,k=g(/]*>/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(/
/g,"
").replace(/ /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=>[""],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['','',...xe,"",'Feature not supported',""]},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;ttrt.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 \n