try{let Fe=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},ee=new Fe.Error().stack;ee&&(Fe._sentryDebugIds=Fe._sentryDebugIds||{},Fe._sentryDebugIds[ee]="3dd1bc53-6098-44fe-b77d-e3173c01ae3c",Fe._sentryDebugIdIdentifier="sentry-dbid-3dd1bc53-6098-44fe-b77d-e3173c01ae3c")}catch(Fe){}{let Fe=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};Fe.SENTRY_RELEASE={id:"22.14.12"}}(self.webpackChunk_mb2024_mb_proto=self.webpackChunk_mb2024_mb_proto||[]).push([[652],{34:(Fe,ee,e)=>{"use strict";e.d(ee,{BT:()=>c,YD:()=>o,gd:()=>r});var n=e(47695);function r(w){const u=document.querySelector(w);if(!u)return null;const{top:d,left:y,width:h,height:i}=u.getBoundingClientRect();return{x:y,y:d,width:h,height:i}}function c(w){return!w||(w==null?void 0:w.length)<1?[]:w.filter(u=>!!u).map(u=>new Promise((d,y)=>{const h=new Image;h.src=u,h.onload=()=>d(!0),h.onerror=()=>y(new Error("[NO SENTRY] failed with loading image "+u))}))}const o=w=>{var u,d;let{selectedCids:y,guideType:h,onCondition:i}=w;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&&(y==null?void 0:y.length)===1){const s=sdkStore.getHotItem(y[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(C=>{l.classList.add(h),C()}).then(()=>{MB.commonGuideHelper.checkGuideHasShown(h)||MB.commonGuideHelper.tryToShowGuide(h)})}}}},175:(Fe,ee,e)=>{"use strict";e.d(ee,{On:()=>_,wm:()=>S,Z8:()=>t});var n=e(70422),r=e(4235),c=e(89002),o=e(39563),w=e(86594),u=e(51320),d=e(20089),y=e(43838),h=e(13235);const i={fontSize:"font-size",lineHeight:"line-height",textDecoration:"text-decoration",fontStyle:"font-style"},f=(I,k)=>{const j={};if(I){const{appearance:K,text:$}=I;if(K){const A=(0,w.Dy)(K,k.appearance),{background:E}=A;E&&(j.background=E[1])}if($){const A=(0,w.Dy)($,k.text);Object.entries(A).forEach(E=>{let[U,O]=E;["fontSize","lineHeight","padding"].includes(U)?j[i[U]||U]=O+"px":U==="boldType"?j["font-weight"]=O?"bold":"normal":U==="ha"?j["text-align"]=O:U==="va"?j["align-items"]=O:U==="textColor"?j.color=(0,h._o)(O):j[i[U]||U]=O})}}let z="";return Object.entries(j).forEach(K=>{let[$,A]=K;z+=$+":"+A+";"}),z};var p=e(40860),s=e(15776),l=e(33379),C=e(81717),v=e(67167),a=e(9680),P=e(66156),b=e(70248);const g=(I,k)=>I?k.find(j=>j.key===I.key):k.find(j=>{var z;return((z=j.hotAttr)==null?void 0:z.type)===d.x.WTable}),S=I=>{const k=I(),j=g((0,n.nh)(k),(0,r.nE)(k)),z=(0,n.zX)(k),K=(0,n.Eb)(k);return{widget:j,selectTableCellInfo:z,selectCopyInfo:K}},t={"entry:insert:top:row":(I,k)=>{let{getState:j}=I,{payload:{rowNumber:z}}=k;const{widget:K,selectTableCellInfo:$}=S(j);if(!K)return;const{selectionLeftTopInfo:{x:A,y:E},selectionRightBottomInfo:{x:U,y:O}}=$,H=(0,c.BG)(K,z,Number(E),!0);_(H),(0,s.Z)({widget:H,x1:A,y1:Number(E)+z,x2:U,y2:Number(O)+z}),(0,C.Wv)(z)},"entry:insert:bottom:row":(I,k)=>{let{getState:j}=I,{payload:{rowNumber:z}}=k;const{widget:K,selectTableCellInfo:$}=S(j);if(!K)return;const{selectionLeftTopInfo:{x:A,y:E},selectionRightBottomInfo:{x:U,y:O}}=$,H=(0,c.BG)(K,z,Number(O));_(H),(0,s.Z)({widget:H,x1:A,y1:E,x2:U,y2:O}),(0,C.Wv)(z)},"entry:table:delete:row":I=>{let{getState:k}=I;const{widget:j,selectTableCellInfo:z}=S(k);if(!j)return;const{selectionLeftTopInfo:{y:K,x:$},selectionRightBottomInfo:{y:A,x:E}}=z,U=A-K+1,{newWidget:O}=(0,c.CF)(j,K,U);if(!O)return;O.hotAttr.refVars=(0,a.F4)(O.hotAttr),_(O);const{maxY:H}=(0,p.II)(O.hotAttr);let Q=A;A>H&&(Q=H),(0,s.Z)({widget:O,x1:$,y1:Q,x2:E,y2:Q})},"entry:table:insert:left:column":(I,k)=>{let{getState:j}=I,{payload:{columnNumber:z}}=k;const{widget:K,selectTableCellInfo:$}=S(j);if(!K)return;const{selectionLeftTopInfo:{x:A,y:E},selectionRightBottomInfo:{x:U,y:O}}=$,H=(0,c.GF)(K,z,A,!0);_(H),(0,s.Z)({widget:H,x1:A+z,y1:E,x2:U+z,y2:O}),(0,C.qt)(z)},"entry:table:insert:right:column":(I,k)=>{let{getState:j}=I,{payload:{columnNumber:z}}=k;const{widget:K,selectTableCellInfo:$}=S(j);if(!K)return;const{selectionLeftTopInfo:{x:A,y:E},selectionRightBottomInfo:{x:U,y:O}}=$,H=(0,c.GF)(K,z,U);_(H),(0,s.Z)({widget:H,x1:A,y1:E,x2:U,y2:O}),(0,C.qt)(z)},"entry:table:delete:column":I=>{let{getState:k}=I;const{widget:j,selectTableCellInfo:z}=S(k);if(!j)return;const{selectionLeftTopInfo:{y:K,x:$},selectionRightBottomInfo:{y:A,x:E}}=z,U=E-$+1,{newWidget:O}=(0,c.AR)(j,$,U);if(!O)return;O.hotAttr.refVars=(0,a.F4)(O.hotAttr),_(O);const{maxX:H}=(0,p.II)(O.hotAttr);let Q=E;E>H&&(Q=H),(0,s.Z)({widget:O,x1:Q,y1:K,x2:Q,y2:A})},"entry:table:merge:cell":async I=>{let{getState:k}=I;const{widget:j,selectTableCellInfo:z}=S(k);if(j)if((0,l.NJ)(z,j.hotAttr)){if(await(0,p.aT)()){const K=(0,l.Ry)(j.hotAttr,z);_({key:j.key,hotAttr:K})}}else{const K=(0,l.Ry)(j.hotAttr,z);_({key:j.key,hotAttr:K})}},"entry:table:remove:merge:cell":I=>{let{getState:k}=I;const{widget:j,selectTableCellInfo:z}=S(k);if(!j)return;const K=(0,l.zO)(j.hotAttr,z);_({key:j.key,hotAttr:K})},"entry:table:copy:selection":async I=>{let{getState:k,dispatch:j}=I;const{widget:z,selectTableCellInfo:K}=S(k);if(!z)return;const{str:$}=await(0,c.Bm)(z.hotAttr,K);(0,p.t0)({tableCopyInfo:$}),j({type:"entry:table:copy:cell:properties"})},"entry:table:cut:selection":async I=>{let{getState:k}=I;const{widget:j,selectTableCellInfo:z}=S(k);if(!j)return;const{widget:K,str:$}=await(0,c.Bm)(j.hotAttr,z);_({key:j.key,hotAttr:K}),(0,p.t0)({tableCopyInfo:$})},"entry:table:key:down":async(I,k)=>{let{getState:j}=I,{payload:z}=k;const{widget:K,eventType:$,options:A,selectTableCellInfo:E}=z;if(!E)return;const{hotAttr:U}=K,{selectionLeftTopInfo:{x:O,y:H},selectionRightBottomInfo:{x:Q,y:N}}=E,{maxX:L,maxY:V}=(0,p.II)(U);let M=!1,D=U,W={isNeedUpdate:!1,x1:O,y1:H,x2:Q,y2:N};if($==="up"){if(H-1<0)return;W={isNeedUpdate:!0,x1:O,x2:O,y1:H-1,y2:H-1},W=(0,c.n7)(U,W,"up")}else if($==="left"){if(O-1<0)return;W={isNeedUpdate:!0,x1:O-1,x2:O-1,y1:H,y2:H},W=(0,c.n7)(U,W,"left")}else if($==="right"){if(O+1>L)return;W={isNeedUpdate:!0,x1:O+1,x2:O+1,y1:H,y2:H},W=(0,c.n7)(U,W,"right")}else if($==="down"){if(H+1>V)return;W={isNeedUpdate:!0,x1:O,x2:O,y1:H+1,y2:H+1},W=(0,c.n7)(U,W,"down")}else if($==="delete"){M=!0;const B=(0,c.WJ)(O,H,Q,N,"");D=(0,c.HW)(U,B),D.refVars=(0,a.RG)(U,E,"data")}else if($==="selectAll")W={isNeedUpdate:!0,x1:0,x2:L,y1:0,y2:V};else if($==="copy"){const{str:B}=await(0,c.Bm)(U,E);(0,p.t0)({tableCopyInfo:B}),MB.action("entry:table:copy:cell:properties")}else if($==="cut"){const{widget:B,str:Y}=await(0,c.Bm)(U,E);(0,p.t0)({tableCopyInfo:Y}),M=!0,D=B}else if($==="paste"){const{text:B}=A;M=!0;const{map:Y,endX:X,endY:G,willCopyStyles:Z,willCopyRefVars:J,copyVarItems:te}=await(0,c.zi)(U,B,O,H);if(D=(0,c.HW)(U,Y),Z&&(D=(0,c.hB)(D,O,H,Q,N,Z)),W={isNeedUpdate:!0,x1:O,x2:X,y1:H,y2:G},te!=null&&te.length){var F;const he=(0,a.jq)(te),de=xe=>he[xe],Se=(0,P.xL)(J,de);D.refVars={...D.refVars,cells:{...(F=D.refVars)==null?void 0:F.cells,...Se}}}}else $==="undo"?MB.action("entry:undo-stack:undo"):$==="redo"?MB.action("entry:undo-stack:redo"):$==="pasteProperties"&&MB.action("entry:table:paste:cell:properties");W&&(W.isNeedUpdate&&D&&(0,s.Z)({widget:{key:K.key,hotAttr:D},x1:W.x1,y1:W.y1,x2:W.x2,y2:W.y2}),M&&D&&_({key:K.key,hotAttr:D}))},"entry:table:paste:selection":async I=>{let{getState:k,dispatch:j}=I;if(await(0,y.$H)({hasNotice:!1})){const{widget:z,selectTableCellInfo:K,selectCopyInfo:$}=S(k);if(!z||$===void 0||$===null)return;j({type:"entry:table:key:down",payload:{widget:z,eventType:"paste",options:{text:$},selectTableCellInfo:K}})}else{const{widget:z,selectTableCellInfo:K,selectCopyInfo:$}=S(k);let A=$;if(A===null&&(A=await(0,y.oV)({itemType:"text/plain"})),!z||!A)return;j({type:"entry:table:key:down",payload:{widget:z,eventType:"paste",options:{text:A},selectTableCellInfo:K}})}},"entry:table:set:cell:attr:new":(I,k)=>{let{getState:j,dispatch:z}=I,{payload:K}=k;const{attr:$,value:A,refVar:E}=K,{widget:U,selectTableCellInfo:O}=S(j);if(!U)return;const{key:H,hotAttr:Q}=U,N=(0,c.Kr)(Q,O,A,$);N.refVars=(0,a.RG)(Q,O,$,E),z({type:"entry:widget:change",payload:{flatChgList:[{key:H,hotAttr:N}]}})},"entry:table:set:cell:width:height":(I,k)=>{let{getState:j}=I,{payload:z}=k;const{attr:K,value:$}=z,{widget:A,selectTableCellInfo:E}=S(j);if(!A)return;const U=(0,c.rq)(A,E,$,K);_(U)},"entry:set:table:style:type":(I,k)=>{var j;let{getState:z}=I,{payload:K}=k;const{type:$}=K,{widget:A}=S(z);if(!A)return;const{key:E,hotAttr:U}=A,O=(0,c.zc)(U,$);let H={...O==null?void 0:O.refStyles};if(O!=null&&(j=O.refStyles)!=null&&j.color){var Q;H={...O==null?void 0:O.refStyles,color:{...O==null||(Q=O.refStyles)==null?void 0:Q.color,tableConfig:{}}}}_({key:E,hotAttr:{...O,refStyles:H}})},"entry:table:change:rows":(I,k)=>{let{getState:j,dispatch:z}=I,{payload:K}=k;const $=j(),E=(0,r.nE)($).filter(O=>O.hotAttr.type===d.x.WTable),U=[];for(const O of E){const{hotAttr:H}=O,Q=(0,o.SS)(H)?H.heightList.length:H.tableData.data.length,N=K-Q;if(N===0)return;let L;N>0?L=(0,c.BG)(O,N,Q-1):L=((0,o.SS)(H)?(0,c.HS)(O,Q+N,Math.abs(N)):(0,c.CF)(O,Q+N,Math.abs(N))).newWidget,L&&U.push(L)}z({type:"entry:widget:change",payload:{flatChgList:U}})},"entry:table:change:columns":(I,k)=>{let{getState:j,dispatch:z}=I,{payload:K}=k;const $=j(),E=(0,r.p$)($).map(sdkStore.getHotItem).filter(O=>(O==null?void 0:O.hotAttr.type)===d.x.WTable),U=[];for(const O of E){const{hotAttr:H}=O,Q=(0,o.SS)(H)?H.widthList.length:H.tableData.columns.length,N=K-Q;if(N===0)return;let L;if(N>0)L=(0,c.GF)(O,N,Q-1);else{const V=(0,c.AR)(O,Q+N,Math.abs(N));if(!V)return;L=V.newWidget}L&&U.push(L)}z({type:"entry:widget:change",payload:{flatChgList:U}})},"entry:table:copy:cell:properties":I=>{let{getState:k}=I;const j=k(),{selectTableCellInfo:z}=S(k),{selectionLeftTopInfo:{x:K,y:$},selectionRightBottomInfo:{x:A,y:E},isCanRemoveMerge:U}=z;if(K===A&&$===E||U){const H=(0,u.g)(j);(0,v.vz)(H)}},"entry:table:paste:cell:properties":async(I,k)=>{let{getState:j,dispatch:z}=I,{payload:K}=k;const{widget:$,selectTableCellInfo:A}=S(j);if(!$)return;const{hotAttr:E}=$,{tableData:{cellStyles:U}}=E,{selectionLeftTopInfo:{x:O,y:H},selectionRightBottomInfo:{x:Q,y:N}}=A,L=await(0,w._d)({isShowPrompt:!1});if(L&&U){if(sdkStore.combineMergeMark("paste-propertities"),(0,o.SS)(E)){const{table:V,cells:M,refVars:D}=E,W=JSON.parse(JSON.stringify(M)),F={...D==null?void 0:D.cells},B=(0,a.m1)(L);for(let Y=O;Y<=Q;Y++)for(let X=H;X<=N;X++){const G=(0,o.j)(W,V,X,Y);if(!G)continue;const Z=V[X][Y],J=(0,p.Gj)(G.style);G.style=f(L,J),B&&(F[Z]={...F[Z],style:{...B}})}z({type:"entry:widget:change",payload:{flatChgList:[{key:$.key,hotAttr:{cells:W,refVars:{...D,cells:F}}}]}})}else{const V=JSON.parse(JSON.stringify(U));for(let M=O;M<=Q;M++)for(let D=H;D<=N;D++){const W=(0,p.Gj)(U[D][M]);V[D][M]=f(L,W)}z({type:"entry:widget:change",payload:{flatChgList:[{key:$.key,hotAttr:{tableData:{...E.tableData,cellStyles:V}}}]}})}sdkStore.combineMerge("paste-propertities")}},"entry:table:widget:change":(I,k)=>{let{getState:j,dispatch:z}=I,{payload:K}=k;const{data:$}=K;z({type:"entry:widget:change",payload:{flatChgList:[$]}})},"entry:table:save:widget":(I,k)=>{let{getState:j,dispatch:z}=I,{payload:K}=k;const{newWidget:$}=K;z({type:"entry:table:widget:change",payload:{data:$}})},"entry:table:limitOneRowOrColumnAlert":I=>{let{getState:k,dispatch:j}=I;j({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":(I,k)=>{let{getState:j,dispatch:z}=I,{payload:K}=k;const{widget:$,position:{x:A,y:E},text:U}=K,{key:O,hotAttr:H}=$;let Q;if((0,o.SS)(H)){var N;const{cells:V,table:M,refVars:D}=H,W=JSON.parse(JSON.stringify(V)),F=(0,o.j)(W,M,E,A);if(!F)return;const B=M[E][A];W[B]={...F,data:U},F.data=U,Q={...H,cells:W};const Y=D==null||(N=D.cells)==null||(N=N[B])==null?void 0:N.data;if(Y&&(0,a.U_)(Y)!==U){var L;Q.refVars={...D,cells:{...D.cells,[B]:{...D==null||(L=D.cells)==null?void 0:L[B],data:void 0}}}}}else{const{data:V}=H.tableData,M=V.map((D,W)=>D.map((F,B)=>Number(A)===B&&Number(E)===W?U:F));Q={...H,tableData:{...$.tableData,data:M}}}_({key:O,hotAttr:Q})},"entry:table:batch:set:value":(I,k)=>{let{getState:j,dispatch:z}=I,{payload:K}=k;const{text:$,refVar:A}=K,{widget:E,selectTableCellInfo:U}=S(j);if(!E)return;const{hotAttr:{cells:O,table:H,refVars:Q},key:N}=E,L={...Q==null?void 0:Q.cells},V={...O},{selectionLeftTopInfo:{x:M,y:D},selectionRightBottomInfo:{x:W,y:F}}=U;for(let Y=D;Y<=F;Y++){const X=H[Y];for(let G=M;G<=W;G++){const Z=X[G];V[Z]={...V[Z],data:$},L[Z]={...L[Z],data:A}}}const B={cells:V,refVars:{...Q,cells:L}};z({type:"entry:widget:change",payload:{flatChgList:[{key:N,hotAttr:B}]}})},"entry:table:paste:copyselection":(I,k)=>{let{getState:j,dispatch:z}=I,{payload:K}=k;const{widget:$,selectCopyCell:A,selectionTableCellInfo:E}=K,{key:U,hotAttr:O}=$;let H;if((0,o.SS)(O)){const Q=(0,c.R3)(O,E),N=(0,c.Oc)(Q,E,A);H=(0,c.XU)(O,N)}else{const Q=(0,c.qR)(O,E),N=(0,c.Oc)(Q,E,A);H=(0,c.cG)(O,N)}H&&(_({key:U,hotAttr:H}),(0,p.t0)({selectCopyCell:null}))},"entry:table:migrate":(I,k)=>{let{getState:j,dispatch:z}=I,{payload:K}=k;const{key:$}=K;if((0,b.OO)($)&&!(0,c.K)($))return;const A=sdkStore.getHotItem($);if(!A)return;const E=(0,o.U1)(A.hotAttr.tableData),U=[{key:$,hotAttr:{"!version":3,...E}}];z({type:"entry:widget:change",payload:{flatChgList:U}})},"entry:table:rollback":(I,k)=>{let{getState:j,dispatch:z}=I,{payload:K}=k;const{key:$}=K;if((0,b.OO)($)&&!(0,c.K)($))return;const A=sdkStore.getHotItem($);if(!A)return;const E=(0,o.F7)(A.hotAttr);z({type:"entry:widget:change",payload:{flatChgList:[{key:$,hotAttr:{"!version":1,tableData:E}}]}})}},_=I=>{MB.action("entry:table:widget:change",{data:I})}},547:(Fe,ee,e)=>{"use strict";e.d(ee,{CU:()=>u,El:()=>y,H4:()=>d,Jz:()=>w,T7:()=>r,rn:()=>c,vI:()=>n});function n(f,p){var s,l,C;let v=(s=MB)==null?void 0:s.getCanvasRect();if(v)v={left:v.canvasLeft,top:v.canvasTop};else{var a;v=(a=document.querySelector("#canvas"))==null?void 0:a.getBoundingClientRect()}const P=((l=MB)==null?void 0:l.getCurrentToolBarHeight())||((C=document.querySelector("#screens"))==null||(C=C.getBoundingClientRect())==null?void 0:C.top);if(!v)return;const b=v.left,g=v.top-P,S=100/p;return o(f,{offsetX:b,offsetY:g,ratio:S})}function r(f,p,s){let{startX:l,startY:C,endX:v,endY:a}=f;p===void 0&&(p=90),s===void 0&&(s=0);const P=Math.atan2(a-C,v-l)/Math.PI*180,b=Math.hypot(v-l,a-C),g=s+p*Math.round((P-s)/p),S=b*Math.cos((P-g)/180*Math.PI);return{startX:l,startY:C,endX:l+Math.round(S*Math.cos(g/180*Math.PI).toFixed(2)),endY:C+Math.round(S*Math.sin(g/180*Math.PI).toFixed(2))}}function c(f){let{startX:p,startY:s,endX:l,endY:C}=f;const v=Math.min(s,C),a=Math.min(p,l),P=Math.abs(l-p),b=Math.abs(C-s);return{top:Math.round(v),left:Math.round(a),width:Math.round(P),height:Math.round(b)}}function o(f,p){let{startX:s,startY:l,endX:C,endY:v}=f,{offsetX:a,offsetY:P,ratio:b}=p;return{startX:Math.round((s-a)*b),startY:Math.round((l-P)*b),endX:Math.round((C-a)*b),endY:Math.round((v-P)*b)}}const w=(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),C=Math.min(f.left||0,p.left||0),v=Math.max((f.left||0)+f.width,(p.left||0)+p.width);return{top:s,left:C,width:v-C,height:l-s}},y=(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:(Fe,ee,e)=>{var n=e(33020),r=e(91224),c=e(68151);function o(w,u,d){for(var y=-1,h=u.length,i={};++y{"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:(Fe,ee,e)=>{"use strict";e.d(ee,{OI:()=>y,WB:()=>o,rT:()=>u,sw:()=>w,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]}))),w=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}],y=[{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:(Fe,ee,e)=>{"use strict";e.d(ee,{$6:()=>I,$b:()=>V,F5:()=>j,G8:()=>N,Ny:()=>A,OP:()=>t,QH:()=>k,cM:()=>M,f9:()=>L,l$:()=>H,qP:()=>W,r:()=>U,rf:()=>D,t_:()=>E,ws:()=>_,xT:()=>K,xe:()=>O});var n=e(18821),r=e.n(n),c=e(36198),o=e.n(c),w=e(19327),u=e.n(w),d=e(63986),y=e.n(d),h=e(4820),i=e(74160),f=e(8095),p=e(24229),s=e(34748),l=e(31569),C=e(21856);if(e.j!=477)var v=e(85449);if(e.j!=477)var a=e(8614);var P=e(64320),b=e(79287),g=e.n(b);const S=F=>{let{supAttrArr:B,attr:Y,colorRefStyles:X}=F;if(B.length===1){var G;return(G=X[B[0]])==null?void 0:G[Y]}for(let Z=0;Z{let{selections:B,attr:Y="solidColor",supAttr:X="fill",styleType:G="color",refStyles:Z}=F,J;if(Z)J=Z;else{if(B.length===0)return;const Se=B.map(xe=>sdkStore.getHotItem(xe));J=(0,l.i)(Se,"refStyles")}if(!J||!J[G])return;let te="";if(G==="color"){var he;const Se=(he=X==null?void 0:X.split("-"))!=null?he:[];te=S({supAttrArr:Se,attr:Y,colorRefStyles:J.color})}else{var de;te=(de=J)==null?void 0:de[G]}return te?sdkStore.isActiveKey(te)&&sdkStore.getHotItem(te):void 0},_=function(F,B,Y,X){var G;Y===void 0&&(Y="B@style"),X===void 0&&(X=!0);const Z=(0,v.dP)(),te=(0,a.Ip)(Z).getTreeNodeLevel(Y);let he=0,de=F.split("/").filter(ue=>ue);if(Y!=="B@style"&&de.length>1&&de[0]===((G=sdkStore.getHotItem(Y))==null||(G=G.hotAttr)==null?void 0:G.name)&&(de=de.slice(1,de.length)),P.N2>te+de.length-1)he=de.length-1;else{if(!X){MB.notice({text:"\u6587\u4EF6\u5939\u5C42\u7EA7\u6700\u591A\u4E0D\u8D85\u8FC73\u7EA7"});return}he=P.N2-te}let Se=0,xe=Y,be=sdkStore.getSubHotItemList(Y).filter(ue=>ue.hotAttr.type==="rResStyleGroup"&&ue.hotAttr.styleType===B).map(ue=>ue.key);for(;Sefe.hotAttr.type==="rResStyleGroup"&&fe.hotAttr.styleType===B).map(fe=>fe.key);break}}if(!ue)break}sdkStore.combineMergeMark("create-style-group");const ie=[];for(;SesdkStore.combineMerge("create-style-group")}},I=function(F,B){B===void 0&&(B="\u672A\u547D\u540D");const Y=sdkStore.getHotItem(F);if(!Y||!sdkStore.isActiveKey(F))return;const X=(0,v.dP)(),G=(0,a.Ip)(X),Z=G.getTreeNodeHeight(F),J=G.getTreeNodeLevel(F);if(Z+J>P.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,C.Z_)(Y.sup),he=(0,i.pc)({name:B,zIndex:te+1,styleType:Y.hotAttr.styleType}),de=(0,p.cF)("stlg"),Se={key:de,sup:Y.sup,sub:[],hotAttr:he};sdkStore.updateHotItem(Se),sdkStore.moveHotItem(F,de);const xe=sdkStore.getSubHotItemList(Y.sup).filter(be=>be.hotAttr.name===B&&be.hotAttr.type==="rResStyleGroup"&&be.key!==de&&be.hotAttr.styleType===Y.hotAttr.styleType);if(xe.length>0){const be=xe.map(ie=>ie.sub.map(oe=>[oe,de]));for(let ie=0;ieie.key))}sdkStore.combineMerge("create-style-sup-group")},k=function(F,B){B===void 0&&(B="B@style");let Y;switch(F.styleType){case"color":Y=(0,f.pA)(F);break;case"text":Y=(0,f.Rw)(F);break;case"appear":Y=(0,f.PC)(F);break;default:break}const X=(0,p.cF)("stl"),G={key:X,sup:B,sub:[],hotAttr:{...Y}};return sdkStore.updateHotItem(G),MB.action("style-lib:update:localReleaseNotes:add",[{key:X,type:F.styleType}]),G},j=(F,B,Y)=>{const X=B.split("/").filter(oe=>oe),G=sdkStore.getHotItem(F);if(!G||!sdkStore.isActiveKey(F))return;const Z=(0,v.dP)(),J=(0,a.Ip)(Z),te=J.getTreeNodeHeight(F),he=J.getTreeNodeLevel(F);if(te+he-1+X.length-1>P.N2){MB.notice({text:"\u6587\u4EF6\u5939\u5C42\u7EA7\u6700\u591A\u4E0D\u8D85\u8FC73\u7EA7"});return}let de=G.sup,Se=0;const xe=(0,C.Z_)(de);for(sdkStore.combineMergeMark("rename-style-group");Se+1oe.hotAttr.name===be&&oe.hotAttr.type==="rResStyleGroup"&&oe.key!==G.key&&oe.hotAttr.styleType===G.hotAttr.styleType);if(ie.length>0){const oe=ie.map(ue=>ue.sub.map(ve=>[ve,G.key]));for(let ue=0;ueue.key)),sdkStore.updateHotAttrKV(F,"name",be)}else sdkStore.updateHotAttrKV(F,"name",be),sdkStore.moveHotItem(F,de);sdkStore.combineMerge("rename-style-group")},z=(F,B,Y,X)=>{F.forEach(G=>{B(G),G.hotAttr.type==="rResStyleGroup"&&G.hotAttr.styleType===X&&z(Y.getSubHotItemList(G.key).filter(Z=>Z.hotAttr.styleType===X).sort(M),B,Y,X)})},K=F=>{let{type:B,sdk:Y=sdkStore,libKey:X="",isHasGroupPathName:G=!1}=F;if(G){const Z=new Map;return Z.set("B@style",[]),z(Y.getSubHotItemList("B@style").filter(J=>{var te;return J.hotAttr.styleType===B&&$((te=J.hotAttr)==null?void 0:te.libKey,X)}).sort(M),J=>{var te;if(J.hotAttr.type==="rResStyle"&&J.hotAttr.styleType===B&&$((te=J.hotAttr)==null?void 0:te.libKey,X)){var he;const de=(he=Z.get(J.sup))!=null?he:[];if(de.length===0){const Se=Y.findUpHotItemList(J.key).filter(xe=>xe.hotAttr.type==="rResStyleGroup").reverse().map(xe=>xe.hotAttr.name).join("/");de.push({groupPathName:Se,...J})}else de.push(J);Z.set(J.sup,de)}},Y,B),Array.from(Z.values())}else return Y.findAllTypeUnder("B@style","rResStyle").filter(Z=>{var J,te;return B==="all"?$((J=Z.hotAttr)==null?void 0:J.libKey,X):Z.hotAttr.styleType===B&&$((te=Z.hotAttr)==null?void 0:te.libKey,X)}).sort(M)},$=(F,B)=>B?B===F:F===""||F===void 0,A=function(F,B){return F===void 0&&(F=sdkStore),B===void 0&&(B=""),F.findAllTypeUnder("B@ref-muban","rResBunch").filter(Y=>{var X,G;return((X=Y.hotAttr)==null?void 0:X.bunch)==="rbPage"&&$((G=Y.hotAttr)==null?void 0:G.libKey,B)&&F.isActiveKey(Y.key)&&!Y.hotAttr.asFolder})},E=function(F){var B;return F===void 0&&(F=sdkStore),(B=F.getSubHotItemList("B@ref-muban"))==null?void 0:B.map(Y=>{var X;if(!(Y!=null&&(X=Y.hotAttr)!=null&&X.libKey)&&F.isActiveKey(Y.key)){var G;return{...Y,children:(G=Y.sub)==null?void 0:G.map(Z=>{var J;if(F.isActiveKey(Z)&&((J=F.getHotItem(Z))==null?void 0:J.hotAttr.bunch)==="rbPage")return{...F.getHotItem(Z),children:[]}}).sort(M).filter(Z=>Z)}}}).sort(M).filter(Y=>Y)},U=function(F,B){return F===void 0&&(F=sdkStore),B===void 0&&(B=""),F.getSubHotItemList("B@var").filter(Y=>{var X;return $((X=Y.hotAttr)==null?void 0:X.libKey,B)})},O=F=>{var B,Y;if(!F||F.length===0)return P.R3;const X=(B=F==null?void 0:F.map(be=>sdkStore.getHotItem(be)))!=null?B:[],G=(0,l.i)(X,"borderRadius"),Z=(0,l.i)(X,"borderRadiusIsVisible"),J=(0,l.i)(X,"borderVisibility"),te=(0,l.i)(X,"border"),he=(0,l.i)(X,"fill"),de=(0,l.i)(X,"shadow");let Se=(0,l.i)(X,"refStyles");if((Y=Se)!=null&&Y.appear){var xe;Se=(xe=sdkStore.getHotItem(Se.appear))==null||(xe=xe.hotAttr)==null?void 0:xe.refStyles}return{attrs:{borderRadius:G,borderRadiusIsVisible:Z,borderVisibility:J,border:te,fill:he,shadow:de},refStyles:Se}},H=F=>{var B,Y,X;if(!F||F.length===0)return h.oS;const G=(B=F==null?void 0:F.map(he=>sdkStore.getHotItem(he)))!=null?B:[],Z=(0,s.mj)({baseItem:(Y=G[0])==null?void 0:Y.hotAttr,isEditing:!1,richTextEditorState:null});let J=(0,l.i)(G,"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,P.F$)},refStyles:J}},Q=F=>F.map(B=>({...B,hotAttr:{...B.hotAttr,zIndex:0}})),N=async function(F){F===void 0&&(F=sdkStore);const B=A(F).map(ve=>({...ve,...ve.hotAttr})),Y=A().map(ve=>({...ve,...ve.hotAttr})),X=Q(U(F)),G=Q(U()),Z=[...Q(K({type:"all",sdk:F}))],J=[...Q(K({type:"all"}))],te=[...Z,...B,...X],he=[...J,...Y,...G],de=o()(he,te,"key"),Se=o()(te,he,"key"),xe=o()(Y,B,"mtime").filter(ve=>de.findIndex(re=>re.key===ve.key)===-1),be=u()(Z,J,y()).filter(ve=>Se.findIndex(re=>re.key===ve.key)===-1).map(ve=>J.find(re=>re.key===ve.key)),ie=u()(X,G,y()).filter(ve=>Se.findIndex(re=>re.key===ve.key)===-1).map(ve=>G.find(re=>re.key===ve.key)),oe=[...xe,...be,...ie],ue=te.filter(ve=>de.findIndex(re=>re.key===ve.key)===-1&&Se.findIndex(re=>re.key===ve.key)===-1&&oe.findIndex(re=>re.key===ve.key)===-1);return{add:de,del:Se,chg:oe,noChg:ue}},L=async F=>{let{libKey:B,oldStyleList:Y,oldMubanList:X,sclibSdkStore:G=sdkStore}=F;const Z=Q(Y),J=Q(K({type:"all",sdk:G})),te=A(G).map(Se=>({...Se,...Se.hotAttr})),he=[];return te.forEach(Se=>{const xe=X.find(be=>be.key===Se.key);xe&&(xe.hotAttr.mtime===0&&Se.hotAttr.mtime!==0||g()(xe.hotAttr.mtime).isBefore(Se.hotAttr.mtime))&&he.push({...Se,hotAttr:{...Se==null?void 0:Se.hotAttr,libKey:B}})}),[...u()(Z,J,y()).map(Se=>{const xe=J.find(be=>be.key===Se.key);if(xe)return{...xe,hotAttr:{...xe==null?void 0:xe.hotAttr,libKey:B}}}).filter(Se=>Se),...he]},V=F=>{let{supAttrArr:B,color:Y,key:X,val:G="",actionType:Z="update"}=F;if(B.length===1){Y[B[0]]?(Z==="update"&&(Y[B[0]][X]=G),Z==="del"&&delete Y[B[0]][X]):(Z==="update"&&(Y[B[0]]={[X]:G}),Z==="del"&&delete Y[B[0]]);return}for(let J=0;JB.hotAttr.zIndex-F.hotAttr.zIndex;function D(F,B){const Y=[];function X(G,Z){for(const J in G)if(Object.prototype.hasOwnProperty.call(G,J)){const te=G[J],he=Z?Z+"-"+J:J;te===B?Y.push(he):typeof te=="object"&&te!==null&&X(te,he)}}return X(F,""),Y}const W=F=>{const B=document.querySelector('.lib-panel-content .lib-style-item[data-key="'+F+'"]'),Y=B==null?void 0:B.closest("section");if(B&&Y){const X=document.querySelector(".lib-panel-content");X&&(X.scrollTop=(B==null?void 0:B.offsetTop)+(Y==null?void 0:Y.offsetTop)-122||0)}}},2371:(Fe,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:w,radiusTR:u,radiusBL:d,radiusBR:y}=o;return{tl:w,tr:u,bl:d,br:y}}},r=o=>o&&!!o.knobList,c=o=>typeof o!="number"},2827:(Fe,ee,e)=>{"use strict";e.d(ee,{z:()=>y});var n=e(79287),r=e.n(n),c=e(15515),o=e(17573),w=e(70812);const u="last_use_mkt_with_wm_date",d="2000-01-01",y=()=>{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),w.U4.watermarkExposureTrack("corner"))}},3356:(Fe,ee,e)=>{"use strict";e.d(ee,{k:()=>l,A:()=>s});var n=e(95549),r=e(38502),c=e(39e3),o=e(78401),w=e(57479),u=e(79150),d=e(86594),y=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;}"],C=>C.theme.color_text_L1,C=>C.theme.color_bg_white,C=>C.theme.color_bg_border_02,C=>C.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:",";}"],C=>C.theme.color_text_L1);var p=e(72214);class s extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"setRef",v=>{this.$contentBox=v}),(0,n.A)(this,"handleFocus",()=>{const{disableModifyContentBox:v,onFocus:a}=this.props;a==null||a(),MB.f.editing=!0,v&&(this.$contentBox.blur(),MB.action("font:miss:modal:open"))}),(0,n.A)(this,"formatValue",v=>(this.props.canMultiline||(v=v.replace(/\n|\r|\r\n/gm," ")),v.split(/\n/))),(0,n.A)(this,"handleBlur",v=>{const{onBlur:a}=this.props,P=this.formatValue(v.target.value);typeof a=="function"&&P&&a(P),MB.f.editing=!1}),(0,n.A)(this,"handleKeyDown",v=>{v.key===w._.Enter&&!this.props.canMultiline&&v.preventDefault()}),(0,n.A)(this,"handleChange",v=>{const a=this.formatValue(v.target.value);this.props.onChange(a)}),(0,n.A)(this,"handlePaste",v=>{(0,o.kI)(v)})}componentWillUnmount(){MB.f.editing=!1}render(){const{content:v,placeholder:a}=this.props;return(0,p.jsx)(i,{ref:this.setRef,placeholder:a,className:"batch-set-content-area",value:v,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",v=>{this.$contentBox=v}),(0,n.A)(this,"state",{isShowPasteIcon:this.props.content.length===0}),(0,n.A)(this,"handleFocus",v=>{v.target.select(),MB.f.editing=!0}),(0,n.A)(this,"washText",v=>v.replace(/\n|\r|\r\n/gm," ")),(0,n.A)(this,"handleBlur",v=>{let{target:{value:a}}=v;const{onBlur:P,onChange:b}=this.props;this.props.canMultiline||(a=this.washText(a));const g=a.split(/\n/);typeof P=="function"&&P(g),b(g),MB.f.editing=!1}),(0,n.A)(this,"handleKeyDown",v=>{setTimeout(()=>{this.$contentBox.value.length===0?this.state.isShowPasteIcon||this.setState({isShowPasteIcon:!0}):this.state.isShowPasteIcon&&this.setState({isShowPasteIcon:!1})},4),v.key===w._.Enter&&!this.props.canMultiline&&v.preventDefault()}),(0,n.A)(this,"handlePaste",v=>{(0,o.kI)(v)}),(0,n.A)(this,"handleClickOutSide",v=>{this.$contentBox&&this.$contentBox.contains(v.target)||this.$contentBox.blur()}),(0,n.A)(this,"handleIconPaste",async()=>{const{onChange:v,onBlur:a}=this.props,P=await(0,d.Oi)({isShowPrompt:!0}),b=this.washText(P||"");if(!this.$contentBox)return;this.$contentBox.value=b;const g=b.split(/\n/);v(g),this.setState({isShowPasteIcon:b.length===0}),a(g)})}componentDidUpdate(v){var a,P;((a=v.ita)==null?void 0:a.key)!==((P=this.props.ita)==null?void 0:P.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:v,placeholder:a,ita:P,className:b}=this.props;return(0,p.jsxs)(f,{className:b,children:[(0,p.jsx)(i,{ref:this.setRef,placeholder:a,className:"batch-set-content-area",defaultValue:v,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,onPaste:this.handlePaste,maxLength:"1000"},P==null?void 0:P.key),this.state.isShowPasteIcon&&(0,p.jsx)(y.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:(Fe,ee,e)=>{"use strict";e.d(ee,{X:()=>w});var n=e(95549),r=e(38502),c=e(33568),o=e(72214);class w extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleChange",(d,y)=>{const{onChange:h,dispatch:i}=this.props;h&&h({value:d,attr:y,dispatch:i})}),(0,n.A)(this,"handleFakeOverrideChange",d=>{const{supAttr:y,dispatch:h,onFakeOverrideChange:i}=this.props;if(typeof i=="function"){i(d);return}h({type:"entry:set:text:attr:fakeOverride",payload:{attrValueList:d,supAttr:y,isTreeSelectNode:y==="wTree-selectNode"}})})}render(){const{fontFamily:d,fontWeight:y,fontStyle:h,wbiVersion:i,subMenuDirection:f,subMenuLeftOffset:p,isShowFontWeightLabel:s,isTextEditing:l,positionRelative:C={xOffset:0,yOffset:0},hasMissFontHi:v,isMissFont:a,fontSize:P,lineHeight:b,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:y,fontStyle:h,handleChange:this.handleChange,wbiVersion:i,dispatch:S,subMenuDirection:f,subMenuLeftOffset:p,isShowFontWeightLabel:s,handleChangeBatch:g,handleFakeOverrideChange:this.handleFakeOverrideChange,positionRelative:C,hasMissFontHi:v,isMissFont:a,fontSize:P,lineHeight:b})})}}},3877:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>h});var n=e(38502),r=e(25582),c=e.n(r),o=e(17307),w=e(67787),u=e(72214);const d=i=>{let{className:f="",renderContent:p,customIconName:s}=i;return(0,u.jsxs)(y,{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 y=w.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:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>o});var n=e(38502),r=e(71272);const o=w=>{let{onMouseDown:u,onClick:d,onDoubleClick:y}=w;const h=(0,n.useRef)(!1),[i,f]=(0,n.useState)(!1),p=(0,n.useRef)(null),s=function(a){for(var P=arguments.length,b=new Array(P>1?P-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,...b),S=!1))},I=()=>{S=!1,h.current=t,t=!1,f(!1),document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",I)};document.addEventListener("mousemove",_),document.addEventListener("mouseup",I)},l=(0,n.useCallback)(()=>{p.current&&(clearTimeout(p.current),p.current=null)},[p]),C=(0,n.useCallback)(function(a){for(var P=arguments.length,b=new Array(P>1?P-1:0),g=1;g{p.current=null,d&&d(a,...b)},r.xG)},[p,l,d]),v=(0,n.useCallback)(function(a){l();for(var P=arguments.length,b=new Array(P>1?P-1:0),g=1;g{"use strict";e.d(ee,{pv:()=>Pe,lc:()=>Te,ow:()=>Ie,QI:()=>me,WP:()=>le,Ai:()=>Se,ob:()=>be,Su:()=>xe,aJ:()=>ve,UL:()=>de,PK:()=>he,Q7:()=>fe,dD:()=>we,en:()=>re,lY:()=>Y,g:()=>F,xy:()=>ke,F6:()=>pe,ZZ:()=>L,WQ:()=>M});var n=e(70768),r=e(69623),c=e(74222),o=e(32424);let w=function(We){return We.landscape="landscape",We.portrait="portrait",We}({});const u="dummy-screen-meta-cid";var d=e(37320),y=e(50001),h=e(68863),i=e(547),f=e(20089),p=e(70933),s=e(25997),l=e(4235),C=e(65057),v=e(63902),a=e(62280),P=e(22835),b=e(93e3),g=e(30728),S=e(79770),t=e(14166),_=e(3862),I=e(85449),k=e(79209),j=e(8580),z=e(89054),K=e(34121),$=e(96788),A=e(73662),E=e(75006),U=e(92598),O=e(24229),H=e(85584);const Q={dragging:"RrZKprPGiEqkxEELaP57","dragging-template":"WVRqDWvrnmzMpK3ZflPA"};var N=e(72214);const L=We=>{var Ee;if(!(We!=null&&We.length))return"";const Ae=We.sort((_e,Ge)=>sdkStore.findUpHotItemList(_e).length-sdkStore.findUpHotItemList(Ge).length)[0],Ce=sdkStore.getHotItem(Ae);return Ce!=null&&Ce.sup&&((Ee=sdkStore.getHotItem(Ce==null?void 0:Ce.sup))==null||(Ee=Ee.hotAttr)==null?void 0:Ee.type)===f.x.WWrap?Ce.sup:""},V=(We,Ee,Ae)=>[f.x.WCarousel,f.x.WMapView].includes(We)?{width:200,height:100}:We===f.x.WImage&&(Ee>109||Ae>109)?{width:109,height:109}:{width:Ee,height:Ae},M=function(We,Ee){Ee===void 0&&(Ee=u);const Ae=new Map,Ce=[];We.forEach(Xe=>{const Ue=(0,o.kt)(),pt={hotAttr:{...Xe},key:Ue,sup:Ee};return Xe.type===f.x.WTear&&(pt.hotAttr.tearMode=!0),Ce.push(Ue),Ae.set(Ue,pt),pt});const _e={key:Ee,hotAttr:{type:"rResBunch",bunch:"rbPage"},sub:Ce};Ae.set(_e.key,_e);const Ge={};return Ge.getHotItem=Xe=>Ae.get(Xe),Ge.getHotItemTL=Xe=>{const Ue=Ae.get(Xe);return{...Ue,hotAttr:{...Ue.hotAttr,xTL:Ue.hotAttr.x-Ue.hotAttr.w/2,yTL:Ue.hotAttr.y-Ue.hotAttr.h/2}}},Ge.getHotAABB=Xe=>{const{w:Ue,h:pt}=Ae.get(Xe).hotAttr;return(0,t.CD)((0,t.F1)(),Ue,pt)},Ge.getInteractionsOf=()=>[],Ge.getCCSBound2308=Xe=>{const{x:Ue=0,y:pt=0,r:Ye=0,w:Qe=0,h:lt=0}=Ae.get(Xe).hotAttr;return{x:Ue,y:pt,r:Ye,w:Qe,h:lt}},Ge.getHotKeyAABB=Xe=>{const{x:Ue=0,y:pt=0,r:Ye=0,w:Qe=0,h:lt=0}=Ae.get(Xe).hotAttr;return[Ue-Qe/2,pt-lt/2,Qe,lt]},new E.A(Ge,Ee,E.A.MODE.snapshot)},D=(We,Ee,Ae,Ce,_e)=>{const{device:Ge,model:Xe}=Ce,Ue=document.createElement("div");Ue.className=Q.dragging+" "+Ge+" "+Xe,Ue.style.width=Ee+"px",Ue.style.height=Ae+"px",Ue.style.transformOrigin="top left",Ue.style.transition="all 0.2s ease-in-out;",Ue.style.transform="translateZ(0)",Ue.style.willChange="transform",Ue.style.display="none";const pt=We.getRootSnapshot(),Ye={sdkStore:We,..._e},Qe=(0,n.createRoot)(Ue);(0,r.flushSync)(()=>{Qe.render((0,N.jsx)(U.o,{mode:"snapshot",hotItem:pt,treeData:Ye}))});const lt=Ue.innerHTML;return Qe.unmount(),We.destory(),Ue.innerHTML=lt,Ue},W=We=>{let{width:Ee,height:Ae}=We;const Ce=document.createElement("div");return Ce.className=Q["dragging-template"],Ce.style.width=Ee+"px",Ce.style.height=Ae+"px",Ce.style.transition="all 0.2s ease-in-out;",Ce},F=We=>{var Ee;const Ae=(0,I.PV)(We);return(Ee=document.getElementById(Ae))==null?void 0:Ee.getBoundingClientRect()},B=(We,Ee,Ae,Ce)=>{const _e=document.createElement("div");_e.className=""+Q.dragging,_e.style.width=Ae+"px",_e.style.height=Ce+"px",_e.style.transformOrigin="top left",_e.style.transition="all 0.2s ease-in-out;",_e.style.transform="translateZ(0)",_e.style.willChange="transform";const Ge={...Ee};Ge.getHotItem=Qe=>{const lt=Ee.getHotItem(Qe);return lt.hotAttr.type===f.x.WTear&&(lt.hotAttr.tearMode=!0),lt};const Xe=new E.A(Ge,We.key,E.A.MODE.snapshot),Ue=Xe.getRootSnapshot(),pt={sdkStore:Xe};return(0,n.createRoot)(_e).render((0,N.jsx)(U.o,{mode:"snapshot",hotItem:Ue,treeData:pt})),_e},Y=function(We,Ee,Ae){Ae===void 0&&(Ae=!1);const{sub:Ce}=We,_e=Ce.filter(lt=>{var tt;return((tt=Ee.getHotItem(lt))==null||(tt=tt.hotAttr)==null?void 0:tt.bunch)!==f.x.RbPage}),Ge=Ae?_e.filter(lt=>{var tt;return![f.x.WSticky,f.x.WTear].includes((tt=Ee.getHotItem(lt))==null||(tt=tt.hotAttr)==null?void 0:tt.type)}):_e;if(!(Ge!=null&&Ge.length))return{x:0,y:0,w:0,h:0};const Xe=Ee.getHotKeyListAABB(Ge),[Ue,pt]=Xe,{w:Ye,h:Qe}=(0,a.T3)(Xe);return{x:Ue,y:pt,w:Ye,h:Qe}},X=We=>{if(!We.length)return!0;const Ee=Ae=>{var Ce;return Ae.name||((Ce=Ae.hotAttr)==null?void 0:Ce.type)};return We.length===1?Ee(We[0])!==f.x.WSticky:!We.every(Ae=>[f.x.WSticky,f.x.WTear].includes(Ee(Ae)))},G=We=>{let{scale:Ee,start:Ae,drag:Ce,end:_e,canvasRect:Ge,showDragMode:Xe,isAdsorbentReferenceLine:Ue,onMouseMove:pt}=We;const Ye=Z({...Ae,scale:Ee,showDragMode:Xe,isAdsorbentReferenceLine:Ue});if(!Ye)return;const{alignUtil:Qe}=Ye,{onMoveHandler:lt,alignedPosition:tt}=J({alignUtil:Qe,...Ae,...Ce,scale:Ee,canvasRect:Ge,showDragMode:Xe,isAdsorbentReferenceLine:Ue,onMouseMove:pt}),qe=te({scale:Ee,onMoveHandler:lt,alignedPosition:tt,...Ae,..._e});document.addEventListener("mousemove",lt),document.addEventListener("mouseup",qe)},Z=We=>{let{scale:Ee,e:Ae,$draggingPuppet:Ce,showDragMode:_e,isAdsorbentReferenceLine:Ge}=We;if(Ae.button!==0)return null;Ae.preventDefault(),MB.action("reducer:flag:set:is-dragging-item",{isDraggingItem:!0}),document.body.appendChild(Ce);let Ue=null;return(_e||Ge)&&(Ue=(0,d.ay)({movableItems:[],createSnapper:_e?y.WY:d.xb,viewport:{scale:Ee/100}})),{alignUtil:Ue}},J=We=>{let{e:Ee,scale:Ae,$draggingPuppet:Ce,alignUtil:_e,hideChecker:Ge,itemSize:Xe,isTemplate:Ue=!0,isTear:pt=!1,canHover:Ye=!1,moveCallback:Qe,isToolbarCreate:lt=!1,showDragMode:tt,isAdsorbentReferenceLine:qe,comboPos:et={x:0,y:0},onMouseMove:st}=We;const at={},ct=Ae/100;let rt=!1;const At=Ee.clientX,ot=Ee.clientY;let Tt=Xe.width,ft=Xe.height;const Nt=zt=>{if(zt.preventDefault(),rt=rt||Math.abs(zt.clientX-At)>1||Math.abs(zt.clientY-ot)>1,!rt)return;st&&st(),MB.action("entry:resources:escape:template");const Xt=!!(Ge&&Ge(zt));if(lt&&Xt)return;lt&&!Xt&&MB.action("set:quick-create-widget",{widget:null});let bt={width:Xe.width,height:Xe.height};const jn=MB.__store__.getState(),xo=(0,p.ER)(jn),Po=(0,p.$S)(jn),Gn=(0,p.Ur)(jn),yo=(0,l.p$)(jn),Ve=(0,C.mG)(zt,{scale:Ae,offset:xo,viewportRect:Po});if(Xt){const En=Xe.width/Xe.height;Tt=Math.min(Xe.width,224),ft=Tt/En}else Tt=Xe.width,ft=Xe.height;const ut=g.Z.xy(Ve.x-Tt/2,Ve.y-ft/2);bt={...bt,left:Math.round(ut.x),top:Math.round(ut.y)};let{top:Kt,left:St}=bt;if(!Xt&&(tt||qe)){const gn=(0,s.UV)(jn).getRootSnapshot().key,Yn=(0,S.Tg)(Ve,gn),Pn=_e({_rect:bt,sup:Yn||gn});({top:Kt,left:St}=Pn),MB.action("set:alignment",{alignment:Pn.alignment}),MB.action("set:sameSize",{alignment:Pn.sameSize}),MB.action("set:distributed",{distributed:Pn.distributed})}if(Bt({e:zt,dataDoNotCreateValue:Xt,viewport:{scale:ct,size:Po,offset:xo},left:St,top:Kt,comboPos:et}),at.top=Kt,at.left=St,!Xt){const En=zt.ctrlKey||zt.metaKey;let gn="";Ye&&(gn=(0,C.nS)({isTear:pt,world:Ve,scale:Ae,newSelection:yo,currentPageKey:Gn.cid,isCtrlDown:En,event:zt}),MB.action("mode:update:hover:item",gn)),Qe&&Qe({left:St,top:Kt,hoverItem:gn})}},Bt=zt=>{let{e:Xt,dataDoNotCreateValue:bt,viewport:jn,left:xo,top:Po,comboPos:Gn}=zt;Ce.setAttribute("data-do-not-create",bt);const yo=b.L.apply(jn,g.Z.xy(xo,Po)),{top:Ve,height:ut}=jn.size,{x:Kt,y:St}=g.Z.add(yo,g.Z.xy(window.innerWidth/2,Ve+ut/2));Ce.style.display="block",Ce.style.top=St-Gn.y*jn.scale+"px",Ce.style.left=Kt-Gn.x*jn.scale+"px";const fn=bt;Ce.style.width=Tt*(fn?1:ct)+"px",Ce.style.height=ft*(fn?1:ct)+"px",Ue||(Ce.style.transform="scale("+(fn?1:ct)+")")};return{onMoveHandler:Nt,alignedPosition:at}},te=We=>{let{scale:Ee,onMoveHandler:Ae,alignedPosition:Ce,$draggingPuppet:_e,fetchData:Ge,createItemDispatcher:Xe,handleCancel:Ue,callback:pt,successTip:Ye}=We;const Qe=MB.__store__.getState(),lt=(0,s.UV)(Qe),tt=(0,p.ER)(Qe),qe=(0,p.$S)(Qe),et=(0,l.p$)(Qe),st=L(et),at=lt.getRootSnapshot().key,ct=async rt=>{document.removeEventListener("mousemove",Ae),document.removeEventListener("mouseup",ct);const At=_e.getAttribute("data-do-not-create"),ot=_e.style.display==="block"&&!JSON.parse(At);if(MB.action("reducer:flag:set:is-dragging-item",{isDraggingItem:!1}),MB.action("ST:update",{isLeftDown:!0}),_e.remove(),MB.action("set:alignment",{alignment:{}}),MB.action("set:sameSize",{sameSize:{}}),MB.action("set:distributed",{distributed:{}}),MB.action("elbow:update",{isDraggingElbow:!1}),!ot){Ue&&Ue();return}if(!(0,i.El)(rt.pageX,rt.pageY,qe)){Ue&&Ue();return}const ft={...Ce};if(st)ft.sup=st;else{const Nt=(0,C.mG)(rt,{scale:Ee,offset:tt,viewportRect:qe}),Bt=(0,S.Tg)(Nt,at);Bt&&(0,j.Op)(Bt)&&(ft.sup=Bt)}Ge&&await Ge(),Xe(ft),pt&&pt(),Ye&&MB.notice({text:Ye})};return ct},he=We=>{let{e:Ee,template:Ae,thumbnailRect:Ce,canvasRect:_e,scale:Ge,showDragMode:Xe,isAdsorbentReferenceLine:Ue,createLocalRefPageFromLib:pt,callback:Ye}=We;const Qe=Ae.hotAttr,lt=W({width:Qe.w,height:Qe.h});G({scale:Ge,canvasRect:_e,showDragMode:Xe,isAdsorbentReferenceLine:Ue,start:{e:Ee,$draggingPuppet:lt},drag:{itemSize:{width:Qe.w,height:Qe.h},hideChecker:tt=>(0,i.El)(tt.clientX,tt.clientY,Ce)},end:{fetchData:null,createItemDispatcher:async tt=>{let{top:qe,left:et,sup:st}=tt;if(!(0,k._c)({type:"basket",count:1}))return;await pt();const at=(0,h.M)(Ae);MB.action("entry:batch:create:items",{data:[{items:[at]}],offset:{top:qe,left:et},sup:st})},callback:Ye}})},de=async(We,Ee)=>{if(!(0,k._c)({type:"basket",count:1}))return;MB.action("entry:resources:escape:template"),await Ee();const Ae=(0,h.M)(We),Ce=[{items:[Ae],width:Ae.w,height:Ae.h}];MB.action("entry:batch:create:items",{data:Ce});const _e=We.isTemplate?I18N.dUtils.master_create_success:I18N.dUtils.widget_create_success;MB.notice({text:_e})},Se=async We=>{let{template:Ee,mtSdkStore:Ae,callback:Ce}=We;const _e=(0,k.UU)({sdk:Ae}),Ge=(0,k.Uu)(Ae);if((0,k._c)({type:f.x.RbPage,count:Ge})&&(0,k._c)({type:"widget",count:_e})){var Ue;sdkStore.combineMergeMark("used-template-file-in-proto");const pt=((Ue=sdkStore.getHotItem("B@main"))==null||(Ue=Ue.sub)==null?void 0:Ue.length)+1,Ye=(0,K.Hz)({name:Ee.title,zIndex:pt,sup:"B@main",asFolder:!0});let Qe="";const lt=new Map,tt=Ae.findAllTypeUnder(c.$k,"rResBunch").filter(qe=>qe.hotAttr.bunch==="rbPage").map(qe=>{const et=(0,O.cF)("rbp");return lt.set(qe.key,et),{...qe,sup:qe.sup==="B@main"?Ye.key:qe.sup}});for(const qe of tt){const et={...qe,key:lt.get(qe.key)||qe.key,sup:lt.get(qe.sup)||qe.sup};if(et.hotAttr.asFolder)sdkStore.updateHotItem(et);else{sdkStore.updateHotItem(et);const st=Ae.findAllTypeUnder(qe.key,"rResCanvas").map(ct=>ct.key),at=Ae.saveSubtree(st);rootSdk.sdkStore.loadSubtree(at,et==null?void 0:et.key,0,0)}}Qe=(0,H.pH)(sdkStore.getHotItem(Ye.key)),sdkStore.combineMerge("used-template-file-in-proto"),MB.action("entry:update:screen:list"),Ce(Qe)}else Ce()},xe=We=>{let{e:Ee,marketTemplate:Ae,mtSdkStore:Ce,doNotCreateRect:_e,callback:Ge,scale:Xe,canvasRect:Ue,currentEditorMode:pt,ghostItemCids:Ye,showDragMode:Qe,isAdsorbentReferenceLine:lt}=We;Ae.type===_.t_?ie({e:Ee,marketTemplate:Ae,mtSdkStore:Ce,doNotCreateRect:_e,callback:Ge,scale:Xe,canvasRect:Ue,showDragMode:Qe,isAdsorbentReferenceLine:lt}):oe({e:Ee,marketTemplate:Ae,mtSdkStore:Ce,doNotCreateRect:_e,callback:Ge,scale:Xe,canvasRect:Ue,currentEditorMode:pt,ghostItemCids:Ye,showDragMode:Qe,isAdsorbentReferenceLine:lt})},be=We=>{let{e:Ee,marketTemplate:Ae,store:Ce,scale:_e}=We;Ae.type===_.t_?me({e:Ee,combo:Ae,store:Ce,scale:_e}):ue({e:Ee,combo:Ae,store:Ce,scale:_e})},ie=We=>{let{e:Ee,marketTemplate:Ae,mtSdkStore:Ce,doNotCreateRect:_e,callback:Ge,scale:Xe,canvasRect:Ue,showDragMode:pt,isAdsorbentReferenceLine:Ye}=We;const Qe=Ce.getHotItem(Ae.key),{w:lt,h:tt}=Y(Qe,Ce),qe={width:lt,height:tt},et=W(qe),st=Ce.getSubHotItemList(Ae.key),at=st.length===1&&st[0].hotAttr.type===f.x.WTear,ct=(0,k.UU)({initKeyList:[Ae.key],sdk:Ce}),rt=(0,k._c)({type:"widget",count:ct},!1),At=X(st);let ot="";G({scale:Xe,canvasRect:Ue,showDragMode:pt,isAdsorbentReferenceLine:Ye,start:{e:Ee,$draggingPuppet:et},drag:{itemSize:qe,hideChecker:Tt=>(0,i.El)(Tt.clientX,Tt.clientY,_e),isTear:at,canHover:At,moveCallback:Tt=>{let{hoverItem:ft}=Tt;at&&(ot=ft)}},end:{createItemDispatcher:async Tt=>{let{top:ft,left:Nt,sup:Bt}=Tt;if(!(0,k._c)({type:"widget",count:ct}))return;sdkStore.combineMergeMark("create-market-template");const zt=Ce.getSubHotItemList(Qe.key).filter(ut=>{let{key:Kt,hotAttr:{type:St}}=ut;return St===f.x.Canvas}),Xt=MB.getCurrentScreen().cid;let bt=Xt;!(zt!=null&&zt.length)&&Bt&&(bt=Bt);const jn=g.Z.xy(Nt,ft),xo=MB.__store__.getState(),Po=(0,l.p$)(xo),Gn=(0,v.RQ)(Ae.key,Ce,jn,Xt,Po);if((Gn==null?void 0:Gn.length)===1){var yo;const ut=sdkStore.getHotItem(Gn[0]);(ut==null||(yo=ut.hotAttr)==null?void 0:yo.type)===f.x.WTear&&ot&&sdkStore.updateHotAttrKV(Gn[0],"refWCKey",ot)}Gn.some(ut=>{const Kt=sdkStore.getHotItem(ut);return[f.x.WTear,f.x.WSticky].includes(Kt.hotAttr.type)})&&MB.action("toolbar:update:state",{isShowSticky:!0}),MB.action("entry:select:items",{cids:Gn}),MB.action("entry:refresh:link-list"),MB.action(A.y.entryKey["font:cloudFontExtList:refresh"]),MB.action("entry:publish:create:items:success",{newKeys:Gn}),sdkStore.combineMerge("create-market-template")},callback:rt?Ge:null}})},oe=We=>{let{e:Ee,marketTemplate:Ae,mtSdkStore:Ce,doNotCreateRect:_e,callback:Ge,scale:Xe,canvasRect:Ue,currentEditorMode:pt,ghostItemCids:Ye,showDragMode:Qe,isAdsorbentReferenceLine:lt}=We;const{w:tt,h:qe}=Y({sub:[Ae.key]},Ce),et={width:tt,height:qe},st=W(et),at=(0,k.UU)({initKeyList:[Ae.key],sdk:Ce}),ct=(0,k._c)({type:f.x.Canvas,count:1},!1)||(0,k._c)({type:"widget",count:at},!1);G({scale:Xe,canvasRect:Ue,showDragMode:Qe,isAdsorbentReferenceLine:lt,start:{e:Ee,$draggingPuppet:st},drag:{itemSize:et,hideChecker:rt=>(0,i.El)(rt.clientX,rt.clientY,_e)},end:{createItemDispatcher:async rt=>{let{top:At,left:ot}=rt;if(!(0,k._c)({type:f.x.Canvas,count:1})||!(0,k._c)({type:"widget",count:at}))return;const Tt=[Ae.key],ft=MB.getCurrentScreen().cid,Nt=Ce.saveSubtree(Tt),Bt=g.Z.xy(ot,At),zt=(0,v.BB)({data:Nt,worldPos:Bt,keyRndSup:ft,currentPageKey:ft});MB.action("entry:select:items",{cids:zt}),MB.action("entry:refresh:link-list"),MB.action(A.y.entryKey["font:cloudFontExtList:refresh"]),MB.action("entry:publish:create:items:success",{newKeys:zt})},callback:ct?Ge:null}})},ue=We=>{let{e:Ee,combo:Ae,store:Ce,scale:_e}=We;if(Ee.button!==0)return;const Ge=(0,k.UU)({initKeyList:[Ae.key],sdk:Ce});if(!(0,k._c)({type:f.x.Canvas,count:1})||!(0,k._c)({type:"widget",count:Ge}))return;MB.action("entry:resources:escape:template");const{w:Xe,h:Ue}=Y({sub:[Ae.key]},Ce),{left:pt,top:Ye}=(0,P.u5)({width:Xe,height:Ue,scale:_e}),Qe=g.Z.xy(pt,Ye),lt=MB.getCurrentScreen().cid,tt=[Ae.key],qe=Ce.saveSubtree(tt),et=(0,v.BB)({data:qe,worldPos:Qe,keyRndSup:lt,currentPageKey:lt});MB.action("entry:select:items",{cids:et}),MB.action("entry:refresh:link-list"),MB.action(A.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})},ve=(We,Ee,Ae)=>{const Ce=MB.getScale(),_e=MB.__store__.getState(),Ge=(0,p.ER)(_e),Xe=(0,p.$S)(_e),Ue=MB.getCurrentScreen().cid,pt=(0,C.mG)(We,{scale:Ce,offset:Ge,viewportRect:Xe}),Ye=g.Z.xy(pt.x+We.clientX/Ce,pt.y+We.clientY/Ce);let Qe=[],lt=Ye;Ee.forEach((tt,qe)=>{let[et,st]=tt;const at=et.map(rt=>rt.key),ct=(0,k.UU)({initKeyList:at,sdk:st});!(0,k._c)({type:f.x.Canvas,count:at.length})||!(0,k._c)({type:"widget",count:ct})||et.forEach((rt,At)=>{const{key:ot,hotAttr:{w:Tt}}=rt,ft=[ot],Nt=st.saveSubtree(ft),Bt=(0,v.BB)({data:Nt,worldPos:lt,keyRndSup:Ue,currentPageKey:Ue});Qe=[...Qe,...Bt],lt=g.Z.add(lt,g.Z.xy(Tt+20,0)),Ae(rt)})}),MB.action("entry:select:items",{cids:Qe}),MB.action(A.y.entryKey["font:cloudFontExtList:refresh"]),MB.action("entry:publish:create:items:success",{newKeys:Qe}),MB.notice({text:I18N.Resources.user_resource_panel.success_create_page})},re=async(We,Ee,Ae)=>{const Ce=MB.getScale(),_e=MB.__store__.getState(),Ge=(0,s.UV)(_e),Xe=MB.getCurrentScreen().cid,Ue=(0,p.ER)(_e),pt=(0,p.$S)(_e);let Ye=Xe;const Qe=(0,C.mG)(We,{scale:Ce,offset:Ue,viewportRect:pt}),lt=(0,S.Tg)(Qe,Ge.getRootSnapshot().key),tt=g.Z.xy(Qe.x+We.clientX/Ce,Qe.y+We.clientY/Ce);let qe=[];const et=Ee.map(ot=>{if((ot==null?void 0:ot.length)===2){const[Tt,ft]=ot;return Tt.map(Bt=>ft.getSubHotItemList(Bt.key).filter(zt=>{let{key:Xt,hotAttr:{type:bt}}=zt;return bt===f.x.Canvas}))}return[]}).flat(1/0);et!=null&&et.length||(Ye=lt!=null?lt:Ye);let st=!1;if(Ee!=null&&Ee.length){var at;if((at=Ee[0])!=null&&at.length){var ct;st=(ct=Ee[0])==null||(ct=ct[2])==null?void 0:ct.isTemplate}}const rt=Ee.reduce((ot,Tt)=>{if([f.x.WIcon,f.x.WImage].includes(Tt==null?void 0:Tt.type))ot+=1;else if(st){const[ft]=Tt;ot+=ft==null?void 0:ft.length}else if((Tt==null?void 0:Tt.length)===2){const[ft,Nt]=Tt,Bt=ft.map(Xt=>Xt.key),zt=(0,k.UU)({initKeyList:Bt,sdk:Nt});ot+=zt}return ot},0);if(!(0,k._c)({type:st?"basket":"widget",count:rt})){MB.action("update:screenContainer:state",{createTemplatesData:null});return}sdkStore.combineMergeMark("create-widgets-by-templates");let At=tt;for(const ot of Ee)if([f.x.WIcon,f.x.WImage].includes(ot==null?void 0:ot.type)){MB.action("entry:batch:create:items",{data:[{items:[ot]}],offset:{top:At.y,left:At.x},sup:Ye});const Tt=(0,l.p$)(MB.__store__.getState());qe=[...qe,...Tt],At=g.Z.add(At,g.Z.xy(10,10)),Ae(ot)}else if(st){const[Tt,ft,{createLocalRefPageFromLib:Nt}]=ot;Nt&&(await Nt(),Tt.forEach(Bt=>{const zt=(0,h.M)(Bt);zt&&(MB.action("entry:batch:create:items",{data:[{items:[zt]}],offset:{top:At.y,left:At.x},sup:Ye}),At=g.Z.add(At,g.Z.xy((zt==null?void 0:zt.w)+10,0)))}))}else if((ot==null?void 0:ot.length)===2){const[Tt,ft]=ot;Tt.forEach((Nt,Bt)=>{const zt=ft.getHotItem(Nt==null?void 0:Nt.key);if(zt){const{w:Xt,h:bt}=Y(zt,ft),jn=(0,v.CU)({combo:zt,worldPos:At,size:{width:Xt,height:bt},keyRndSup:Ye,currentPageKey:Xe,store:ft});qe=[...qe,...jn],At=g.Z.add(At,g.Z.xy(Xt+10,0)),Ae(Nt)}})}st||(MB.action("entry:select:items",{cids:qe}),MB.action(A.y.entryKey["font:cloudFontExtList:refresh"]),MB.action("entry:publish:create:items:success",{newKeys:qe}),MB.notice({text:I18N.dUtils.widget_create_success})),MB.action("update:screenContainer:state",{createTemplatesData:null}),sdkStore.combineMerge("create-widgets-by-templates")},fe=(We,Ee,Ae)=>{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:Ee,height:Ae}],source:"click"});const Ce=We.every(_e=>_e.type===f.x.Canvas);MB.notice({text:Ce?I18N.dModals.artboard_create_success:I18N.dUtils.widget_create_success})},we=We=>{var Ee;let{e:Ae,items:Ce,width:_e,height:Ge,doNotCreateRect:Xe,callback:Ue,isToolbarCreate:pt=!1,scale:Ye=MB.getScale(),canvasRect:Qe=MB.getCanvasRect(),rootProject:lt,showDragMode:tt,isAdsorbentReferenceLine:qe,onMouseMove:et=null}=We;const st=M(Ce),at=D(st,_e,Ge,lt),ct={width:_e,height:Ge},rt=Ce.length===1&&Ce[0].name===f.x.WTear,At=Ce.length===1&&Ce[0].name===f.x.WSticky,ot=rt,Tt=Ce.length>0?(0,k._c)({type:Ce[0].type,count:Ce.count},!1):!0;let ft=Ce;G({canvasRect:Qe,scale:Ye,showDragMode:tt,isAdsorbentReferenceLine:qe,start:{e:Ae,$draggingPuppet:at},drag:{itemSize:ct,isToolbarCreate:pt,dragSize:V((Ee=Ce[0])==null?void 0:Ee.name,_e,Ge),hideChecker:Nt=>(0,i.El)(Nt.clientX,Nt.clientY,Xe),isTemplate:!1,isTear:rt,canHover:ot,moveCallback:Nt=>{let{left:Bt,top:zt,hoverItem:Xt}=Nt;if(rt){ft=Ce.map(jn=>({...jn,refWCKey:Xt}));const bt=M(ft);at.innerHTML=D(bt,100,100,lt).innerHTML}else if(At){const bt=Ce[0],jn=[Bt-80,zt,Bt-80+bt.w,zt+bt.h];ft=Ce.map(Gn=>({...Gn}));const xo=M(ft),Po=Gn=>{let{fakeBindingInfo:yo,fakePointToDir:Ve}=Gn;at.innerHTML=D(xo,100,100,lt,{fakeBindingInfo:yo,fakePointToDir:Ve,fakeAABB:jn}).innerHTML};MB.action("entry:ST:drag:sticky:point:fake:bind",{stickyKey:"fake",stickyAABBP:jn,callback:Po})}}},end:{createItemDispatcher:Nt=>{let{top:Bt,left:zt,sup:Xt}=Nt;(0,k._c)({type:Ce[0].type,count:Ce.count})&&(ft=ft.map(bt=>{if(bt.type===f.x.WRichText){const jn=(0,z.gg)(bt);return{...bt,...jn}}if(bt.type===f.x.WTear||bt.type===f.x.WSticky){const{tearFlag:jn,name:xo,userCid:Po}=(0,$.wl)();return{...bt,info:(0,$.wh)(jn,xo,Po)}}return bt}),MB.action("entry:batch:create:items",{data:[{items:ft}],offset:{top:Bt,left:zt},sup:Xt}))},handleCancel:()=>{},callback:Tt?Ue:null},onMouseMove:et})},Te=async(We,Ee)=>{if(We.button!==0||!(0,k._c)({type:"widget",count:1}))return;const Ae=MB.__store__.getState(),_e=(0,s.UV)(Ae).getRootSnapshot().key,Ge=(0,p.X_)(Ae),Xe=(0,p.Ur)(Ae),{width:Ue,height:pt}=Ee,{left:Ye,top:Qe}=(0,P.u5)({width:Ue,height:pt,scale:Ge}),lt=g.Z.xy(Ye,Qe);let tt=Xe==null?void 0:Xe.cid;const qe=(0,S.Tg)(lt,_e);qe&&(0,j.Op)(qe)&&(tt=qe),MB.action("entry:paste:items",{data:Ee.data,worldPos:lt,keyRndSup:tt,commonKeyRndSup:tt,isPaste:!1}),MB.notice({text:I18N.dUtils.widget_create_success})},Ie=We=>{let{e:Ee,template:Ae,doNotCreateRect:Ce,callback:_e,scale:Ge=Math.round(MB.getScale()),canvasRect:Xe=MB.getCanvasRect(),showDragMode:Ue,isAdsorbentReferenceLine:pt,onMouseMove:Ye=null}=We;const Qe=W(Ae),lt=(0,k._c)({type:"widget",count:1},!1);G({scale:Ge,canvasRect:Xe,showDragMode:Ue,isAdsorbentReferenceLine:pt,start:{e:Ee,$draggingPuppet:Qe},drag:{itemSize:{width:Ae.width,height:Ae.height},hideChecker:tt=>(0,i.El)(tt.clientX,tt.clientY,Ce)},end:{fetchData:null,createItemDispatcher:tt=>{let{top:qe,left:et,sup:st}=tt;if(!(0,k._c)({type:"widget",count:1}))return;const at=g.Z.xy(et,qe),ct=MB.getCurrentScreen().cid,rt=st||ct;MB.action("entry:paste:items",{data:Ae.data,worldPos:at,keyRndSup:rt,commonKeyRndSup:rt,isPaste:!1})},callback:lt?_e:null},onMouseMove:Ye})},le=We=>{let{e:Ee,combo:Ae,store:Ce,doNotCreateRect:_e,callback:Ge,isToolbarCreate:Xe=!1,scale:Ue=1,canvasRect:pt,showDragMode:Ye,isAdsorbentReferenceLine:Qe,onMouseMove:lt=null}=We;const tt=Ce.getHotItem(Ae.key),{x:qe,y:et,w:st,h:at}=Y(tt,Ce),ct=B(tt,Ce,st,at),rt={width:st,height:at},At=Ce.getSubHotItemList(Ae.key),ot=At.length===1&&At[0].hotAttr.type===f.x.WTear,Tt=ot;let ft="";const Nt=(0,k.UU)({initKeyList:[Ae.key],sdk:Ce}),Bt=(0,k._c)({type:"widget",count:Nt},!1);G({canvasRect:pt,scale:Ue,showDragMode:Ye,isAdsorbentReferenceLine:Qe,start:{e:Ee,$draggingPuppet:ct},drag:{itemSize:rt,isToolbarCreate:Xe,hideChecker:zt=>(0,i.El)(zt.clientX,zt.clientY,_e),isTemplate:!1,comboPos:{x:qe,y:et},isTear:ot,canHover:Tt,moveCallback:zt=>{let{hoverItem:Xt}=zt;ot&&(ft=Xt)}},end:{createItemDispatcher:zt=>{let{top:Xt,left:bt,sup:jn}=zt;if(!(0,k._c)({type:"widget",count:Nt}))return;sdkStore.combineMergeMark("create-combo-widget-mousedown");const xo=g.Z.xy(bt,Xt),Po=MB.getCurrentScreen().cid,Gn=MB.__store__.getState(),yo=(0,l.p$)(Gn),Ve=(0,v.RQ)(Ae.key,Ce,xo,Po,yo);if((Ve==null?void 0:Ve.length)===1){var ut;const St=sdkStore.getHotItem(Ve[0]);(St==null||(ut=St.hotAttr)==null?void 0:ut.type)===f.x.WTear&&ft&&sdkStore.updateHotAttrKV(Ve[0],"refWCKey",ft)}Ve.some(St=>{const fn=sdkStore.getHotItem(St),En=[f.x.WTear,f.x.WSticky].includes(fn.hotAttr.type);if(En){const{tearFlag:gn,name:Yn,userCid:Pn}=(0,$.wl)();sdkStore.updateHotAttrKV(St,"info",(0,$.wh)(gn,Yn,Pn))}return En})&&MB.action("toolbar:update:state",{isShowSticky:!0}),MB.action("entry:select:items",{cids:Ve}),MB.action("entry:refresh:link-list"),MB.action(A.y.entryKey["font:cloudFontExtList:refresh"]),MB.action("entry:publish:create:items:success",{newKeys:Ve}),sdkStore.combineMerge("create-combo-widget-mousedown")},handleCancel:()=>{},callback:Bt?Ge:null},onMouseMove:lt})},me=We=>{var Ee;let{e:Ae,combo:Ce,store:_e,scale:Ge}=We;if(Ae.button!==0)return;const Xe=_e.getHotItem(Ce.key),Ue=(0,k.UU)({initKeyList:[Ce.key],sdk:_e});if(!(0,k._c)({type:"widget",count:Ue}))return;if((Xe==null||(Ee=Xe.sub)==null?void 0:Ee.length)===0){MB.notice({text:I18N.dUtils.widget_create_success});return}MB.action("entry:resources:escape:template"),sdkStore.combineMergeMark("create-combo-widget-dblclick");const Ye=MB.__store__.getState(),lt=(0,s.UV)(Ye).getRootSnapshot().key,tt=(0,l.p$)(Ye),qe=L(tt),{w:et,h:st}=Y(Xe,_e),{left:at,top:ct}=(0,P.u5)({width:et,height:st,scale:Ge}),rt=g.Z.xy(at,ct),At=MB.getCurrentScreen().cid;let ot=At;const Tt=_e.getSubHotItemList(Ce.key).filter(Bt=>{let{key:zt,hotAttr:{type:Xt}}=Bt;return Xt===f.x.Canvas});if(!(Tt!=null&&Tt.length))if(qe)ot=qe;else{const Bt=(0,S.Tg)(rt,lt);Bt&&(0,j.Op)(Bt)&&(ot=Bt)}const ft=(0,v.CU)({combo:Xe,worldPos:rt,size:{width:et,height:st},keyRndSup:ot,currentPageKey:At,store:_e});ft.some(Bt=>{const zt=sdkStore.getHotItem(Bt);return[f.x.WTear,f.x.WSticky].includes(zt.hotAttr.type)})&&MB.action("toolbar:update:state",{isShowSticky:!0}),MB.action("entry:select:items",{cids:ft}),MB.action("entry:refresh:link-list"),MB.action(A.y.entryKey["font:cloudFontExtList:refresh"]),MB.action("entry:publish:create:items:success",{newKeys:ft}),MB.notice({text:I18N.dUtils.widget_create_success}),sdkStore.combineMerge("create-combo-widget-dblclick")};let Pe=function(We){return We.PEN="pen",We.PENCIL="pencil",We}({});const pe=We=>{if(!We)return;const{name:Ee}=We;return Ee!==f.x.WVector?Ee:We.vector.toolType||Ee},ke=We=>{var Ee;if(We)return(We==null||(Ee=We.attrs)==null?void 0:Ee.toolType)||We.name}},4461:(Fe,ee,e)=>{"use strict";e.d(ee,{F:()=>o});var n=e(38502),r=e(95956),c=e(72214);const o=(0,n.memo)(w=>{const{cid:u,path:d,viewBox:y,className:h}=w,[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:y})})},4648:(Fe,ee,e)=>{"use strict";e.d(ee,{Fw:()=>s.Fw,EY:()=>s.EY,R_:()=>z});var n=e(38502),r=e(18381),c=e(53732),o=e.n(c),w=e(4235),u=e(70422),d=e(60589),y=e(81973),h=e(10472),i=e(83199),f=e(62587),p=e(19376),s=e(35719),l=e(15542),C=e(28537),v=e(17307),a=e(2099),P=e(99340),b=e(5649),g=e(15186),S=e(41818),t=e(72214);const _=(0,n.memo)((0,n.forwardRef)((K,$)=>{const{sigmaPaint:A,color:E,refStyle:U,canOpenLib:O,isInputActive:H,onColorChange:Q,onSetIsInputActive:N,onOpenLibPanelTab:L}=K,V=(0,f.TQ)(A),[M,D]=(0,n.useState)(!1),[W,F]=(0,n.useState)("%"),B=()=>{N(!0)},Y=()=>{N(!1),F("%")},X=()=>{N(!0),D(!0),F("")},G=()=>{N(!1),D(!1)},Z=de=>{const Se=S.Q.hex(de),xe=(0,g.BN)(E.solidColor),be=(0,g.u_)({R:Se[0]*255,G:Se[1]*255,B:Se[2]*255,A:xe.A});Q({...E,solidColor:be})},J=de=>{const Se=(0,g.BN)(E.solidColor),xe=(0,g.u_)({...Se,A:de});Q({...E,solidColor:xe})},te=de=>{L(de,0),B()},he=de=>(de.target.closest(".hex-a-input")||F("%"),!0);return(0,t.jsx)(t.Fragment,{children:U&&O?(0,t.jsx)("div",{className:"used-ref-style",ref:$,onClick:te,children:U.hotAttr.name}):V!=null&&V.text?(0,t.jsx)("span",{children:V==null?void 0:V.text}):(0,t.jsxs)("div",{className:"hex-a-input-wrap",children:[(0,t.jsx)("div",{className:"hex-input",children:(0,t.jsx)(P.A,{hexValue:V==null?void 0:V.hex.substring(1).toLowerCase(),className:"hex-color-input",onFocus:B,onBlur:Y,handleChange:Z})}),(0,t.jsx)(b.A,{className:"input-with-no-title hex-a-input "+(W===""?"no-suffix":""),min:0,max:100,suffix:W,isSelect:M,value:V==null?void 0:V.alpha,onMouseEnter:()=>F(""),onMouseLeave:()=>!H&&F("%"),onFocus:X,onBlur:G,onConfirm:J,onClickOutside:he})]})})})),I=K=>{let{isActive:$,refStyle:A,isEditingCombo:E,onOpenLibPanelTab:U,onClearRefStyle:O}=K;const H=Q=>U(Q,124);return(0,t.jsxs)(t.Fragment,{children:[A?(0,t.jsx)(i.A,{content:I18N.SettingPanel.clear_style_ref,direction:"down",tipClassName:"clear-style-ref-tooltips",distance:8,children:(0,t.jsx)(v.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)(v.C,{name:"setting_panel/general/open-lib",size:24,className:o()("open-lib-icon",{"is-active":$}),onClick:H})}),(0,t.jsx)(s.vH,{})]})};var k=e(17573);const j=(0,n.memo)(K=>{var $;let{className:A,supAttr:E,refStyles:U,attrPanel:O,color:H,colorPanelPosOffset:Q={offsetLeft:318,offsetTop:340},attr:N,enable:L=!0,iconImg:V,index:M,onColorChange:D,length:W,isShowMultipleColor:F=!1,isDefaultColor:B,onResetColor:Y,pIsSolidColorOnly:X=!1,mode:G,canOpenLib:Z,canCreateColorRef:J,isLibText:te=!1,canStopPropagation:he=!0,toolTips:de="",direction:Se="down",distance2:xe,solidRenderType:be="rect",size:ie,customBtn:oe,onMouseEnter:ue,onMouseLeave:ve,onOpenColorPanel:re,onCloseColorPanel:fe,onPosition:we,onApplyDidMountSideEffect:Te,registerToggleColorPanel:Ie}=K;const[le,me]=(0,n.useState)(!1),[Pe,pe]=(0,n.useState)({left:0,top:0}),ke=(0,r.d4)(w.p$),We=(0,r.d4)(u.zX),[Ee,Ae]=(0,n.useState)(!1),[Ce,_e]=(0,n.useState)("color"),[Ge,Xe]=(0,n.useState)(),Ue=(0,r.d4)(d.I5),pt=(0,r.d4)(d.md),Ye=(0,r.d4)(y.Dw),Qe=(0,r.d4)(y.jj),{isEditingCombo:lt}=(0,r.d4)(h.r),tt=(0,n.useMemo)(()=>Ue.isOpen?Ue.type==="create"&&Ye!=null&&Ye.key?[Ye.key]:Ue.type==="edit"?[Ue==null?void 0:Ue.currentKey]:ke:pt.isOpen?pt.type==="create"&&Qe!=null&&Qe.key?[Qe.key]:pt.type==="edit"?[pt.currentKey]:ke:ke,[Ye,Qe,Ue.currentKey,Ue.isOpen,Ue.type,pt.currentKey,pt.isOpen,pt.type,ke]);(0,n.useEffect)(()=>{if(Z)if(pt.isOpen&&pt.refStyles)Xe((0,a.OP)({selections:tt,attr:N,supAttr:E,styleType:"color",refStyles:pt.refStyles}));else if(Ue.isOpen&&Ue.refStyles)Xe((0,a.OP)({selections:tt,attr:N,supAttr:E,styleType:"color",refStyles:Ue.refStyles}));else if(te)Xe((0,a.OP)({selections:tt,attr:N,supAttr:E,styleType:"color",refStyles:U}));else{const bt=(0,a.OP)({selections:tt,attr:N,supAttr:E,styleType:"color"});Xe(bt)}},[ke,U,We,te]);const qe=(0,n.useRef)(null),et=(0,n.useRef)(null),st=(0,n.useRef)(""),at=(0,r.wA)(),ct=(0,n.useCallback)(()=>{me(!1),at({type:"colorpanel:set:attr",payload:{attr:void 0}}),at({type:"colorpanel:set:attrPanel",payload:{attrPanel:void 0}}),fe&&fe(),Ae(!1),Z&&at({type:"modal:reset:popup:state",payload:{modalName:"libEditColorModal"}})},[]);(0,n.useEffect)(()=>{Ie==null||Ie(le,ct)},[le,ct]);const rt=bt=>{at({type:"colorpanel:set:position",payload:{position:bt}}),pe(bt)},At=function(bt,jn){if(jn===void 0&&(jn=0),!L)return;if(le)return ct();const{offsetLeft:xo,offsetTop:Po}=Q,{left:Gn,top:yo,height:Ve,right:ut,width:Kt}=bt.target.getBoundingClientRect(),St=document.querySelector(".mb-icon-modals");let fn={left:Gn>=276?Math.max(Gn-xo-jn>>0,0):ut+20,top:Math.max(yo+Ve/2-Po>>0,56)};if(St)St.contains(bt.target)&&(fn={left:Gn-240/2+Kt/2,top:yo+Ve+10});else if(we){const En=we(qe);En&&(fn=En)}at({type:"colorpanel:set:color",payload:{color:H}}),at({type:"colorpanel:set:attr",payload:{attr:N}}),at({type:"colorpanel:set:attrPanel",payload:{attrPanel:O}}),at({type:"colorpanel:set:supAttr",payload:{supAttr:E}}),rt(fn),me(!0),st.current=H,re&&re()},ot=bt=>{At(bt),_e(Ge&&Z?"lib":"color")},Tt=function(bt,jn){jn===void 0&&(jn=0),!lt&&(At(bt,jn),_e("lib"))},ft=()=>{Xe(void 0),at({type:"entry:libStyle:del:widget:refStyles",payload:{selections:tt,key:N,supAttr:E,type:"color",refKey:Ge==null?void 0:Ge.key,isLibText:te,updateType:pt!=null&&pt.isOpen?"textRef":Ue!=null&&Ue.isOpen?"appearRef":"widget"}})},Nt=bt=>{let{value:jn,attr:xo,compressible:Po,needClearRef:Gn=!0}=bt;D(jn,Po),Ge&&Gn&&ft()},Bt=ke.length>0?(($=sdkStore.getHotItem(ke[0]))==null?void 0:$.hotAttr)||{}:{},zt=(0,f.$8)(H,{w:(Bt==null?void 0:Bt.w)||200,h:(Bt==null?void 0:Bt.h)||100}),Xt=le&&Ce==="color";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.A,{content:de,direction:Se,distance2:xe,children:(0,t.jsxs)(s.TN,{className:o()(A,{"is-open":le}),type:V&&V.src?"":"color-btn",onMouseEnter:ue,onMouseLeave:ve,children:[(0,t.jsxs)("div",{className:o()("color-btn-wrap",{"is-active":Ee||Xt},{"is-used-style-ref":Ge&&Z}),children:[oe?(0,t.jsx)("div",{ref:qe,onMouseDown:ot,children:oe}):V&&V.src?(0,t.jsx)("div",{ref:qe,style:{display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",width:V.width||16,height:V.height||16,marginLeft:V.marginLeft||0,marginRight:V.marginRight||0,marginTop:V.marginTop||0,marginBottom:V.marginBottom||0,borderRadius:V.borderRadius||void 0},onMouseDown:ot,children:(0,t.jsx)("img",{src:V.src,style:{width:"100%",height:"100%"}})}):F?(0,t.jsx)("div",{className:"thumbnail-wrapper-multiple",children:(0,t.jsx)("span",{children:"..."})}):(0,t.jsx)(p.I,{className:"color-button-thumbnail",ref:qe,color:zt,attr:N,index:M,size:ie||16,solidRenderType:be,handleColorThumbnailMouseDown:ot}),G==="input"&&(0,t.jsx)(_,{ref:et,sigmaPaint:zt,color:H,refStyle:Ge,canOpenLib:Z,isInputActive:Ee,onSetIsInputActive:Ae,onColorChange:D,onOpenLibPanelTab:Tt})]}),!oe&&Z&&(0,k.bJ)()&&(0,t.jsx)(I,{isActive:le&&Ce==="lib",refStyle:Ge,isEditingCombo:lt,onOpenLibPanelTab:Tt,onClearRefStyle:ft})]})}),le&&(0,t.jsx)(l.Fo,{onSetIsColorPanelOpened:me,position:Pe,onSetPosition:rt,color:H,attr:N,supAttr:E,index:M,onColorChange:Nt,length:W,isDefaultColor:B,onResetColor:Y,onSetRefStyle:Xe,pIsSolidColorOnly:X,isShowLibPanel:Z&&!lt&&(0,k.bJ)(),canCreateColorRef:J&&(0,k.bJ)(),colorThumbnailEle:qe,colorUsedRefStyleEle:et,onCloseColorPanel:ct,activeColorPanelTab:Ce,canStopPropagation:he,onApplyDidMountSideEffect:Te})]})}),z=(0,n.memo)(K=>{let{attr:$,supAttr:A,attrPanel:E,onChange:U,color:O,pIsSolidColorOnly:H=!1,iconImg:Q,disabled:N,canOpenLib:L=!0,canCreateColorRef:V=!0,refStyles:M,mode:D="button",index:W=0,...F}=K;const B=(0,n.useMemo)(()=>A!=="fill"?Array.isArray(O)?(0,f.dT)(O[0]):O===void 0?void 0:(0,f.dT)(O):O,[A,O]),Y=(0,C.qK)((G,Z)=>{if(A!=="fill")if(Array.isArray(O)){const J=O.slice();J.splice(1,1,(0,f.wT)(G)),U(J,$,void 0,Z)}else U(G.solidColor,$,void 0,Z);else U(G,$,void 0,Z)});if(O===void 0||B===void 0)return null;let X=!0;return N!==void 0&&(X=!N),N?(0,t.jsx)(v.C,{size:24,name:"font/disabled_color_button"}):(0,t.jsx)(j,{attr:$,supAttr:A,attrPanel:E,color:B,canOpenLib:L,canCreateColorRef:V,refStyles:M,mode:D,index:W,length:1,onColorChange:Y,enable:!0,pIsSolidColorOnly:H,iconImg:Q,...F})})},4650:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>y});var n=e(25582),r=e.n(n),c=e(69368),o=e(67787);const w=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 y(i){let{size:f="regular",theme:p="plain",isInvalid:s,unstyled:l,className:C,value:v,type:a="text",onChange:P=()=>null,isAutoFocus:b=!1,...g}=i;const S=(0,c.Hn)([p==="core"?"CoreInput":"Input",f,l&&"unstyled",s&&"is-invalid",C]);return(0,u.jsx)(w,{className:S,children:(0,u.jsx)("input",{type:a,value:v,onChange:d(P),autoFocus:b,...g})})}y.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:C,onChange:v=()=>null,...a}=i;const P=(0,c.Hn)([p==="core"?"CoreTextarea":"Textarea",f,s&&"unstyled",l]);return(0,u.jsx)(w,{className:P,children:(0,u.jsx)("textarea",{value:C,onChange:d(v),...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:(Fe,ee,e)=>{"use strict";e.d(ee,{v:()=>n});const n=(r,c,o)=>{let w=!!c,u=!!o;const d=sdkStore.locUpRBPageKey(r);return w&&(w=sdkStore.locUpRBPageKey(c)===d),u&&(u=sdkStore.locUpRBPageKey(o)===d),{isRefFromExist:w,isRefToExist:u}}},5388:(Fe,ee,e)=>{"use strict";e.d(ee,{Rj:()=>t,VN:()=>_,Vz:()=>I});var n=e(38502),r=e(53732),c=e.n(r),o=e(18381),w=e(76613),u=e(68677),d=e(28068),y=e(37841),h=e(93872),i=e(61790),f=e(62150),p=e(29329),s=e(55584),l=e(4820),C=e(17307),v=e(89080),a=e(34999),P=e(43478),b=e(28652),g=e(72214);const S=null,t=["wLr","wWebpage","wMapView"],_=["wVector","wText","wRichText","wElbow","wRect","wOval","wLine","wButton","wPlaceholder","wArrow","wMTextInput","wMTextarea","wMSelect","wDigitalStepper","wPaginationWeb","wPaginationMobile","wMTooltip","wStar","wPolygon","wTriangle","wTriangleTL","wTriangleB","wFlowClosed","wFlowOpened"],I=(0,n.memo)(k=>{let{keyTriggerItem:j,keyTargetItem:z,onSelectTargetAttr:K,attrKey:$,handleChange:A,editorState:E,wAttrEditingMisc:U,handleCloseWattrSelect:O,removeRange:H}=k;const Q=(0,n.useRef)(null),N=(0,o.wA)(),[L,V]=(0,n.useState)(""),{targetItemOptionList:M}=(0,b.G)({query:L,keyTriggerItem:j}),D=M.length>0,[W,F]=(0,n.useState)(z||""),B=(0,n.useMemo)(()=>z===W?$:"",[z,W,$]),[Y,X]=(0,n.useState)(""),G=oe=>{N({type:"set:echo:item",payload:{cid:oe===w.rE?j:oe}})},Z=oe=>{N({type:"set:echo:item",payload:{cid:void 0}})},J=(0,n.useRef)(null);(0,n.useEffect)(()=>{var oe;const ue=W?$:z;return(oe=J.current)==null||(oe=oe.querySelector('div[role="option"][data-value="'+ue+'"]'))==null||oe.scrollIntoView(),()=>N({type:"set:echo:item",payload:{cid:void 0}})},[W,$,z]);const te=oe=>{F(oe)},he=W?sdkStore.getHotItem(W):null,de=W?(0,i.KD)(W):"",Se=(0,n.useMemo)(()=>(0,P.Y)({keyWidgetSelected:W,attrQuery:Y}),[W,Y]),xe=W&&Se.length>0,be=oe=>{if((oe.metaKey||oe.ctrlKey)&&oe.key==="c")return;oe.preventDefault();const ue=(0,p.Q8)(E,U.entityKey),ve=E.getSelection();if(oe.key==="Backspace"||oe.key==="Delete"){H(E,ve.merge({anchorOffset:ue[0]-1,focusOffset:ue[1]+1}));return}if(oe.key==="Escape"){O(),A((0,p.Qg)(E,ue[1]+1,ue[1]+1));return}if(oe.key==="ArrowLeft"){O(),A((0,p.Qg)(E,ue[0]-1,ue[0]-1));return}oe.key==="ArrowRight"&&(O(),A((0,p.Qg)(E,ue[1]+1,ue[1]+1)))},ie=oe=>{oe.preventDefault();const ue=E.getSelection(),ve=(0,p.Q8)(E,U.entityKey),re=(0,p.$w)(E,ve),fe=(0,s.vd)({editorState:d.$t.forceSelection(E,ue.merge({anchorOffset:ve[0]-1,focusOffset:ve[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}}),W?(0,g.jsx)(h.tb,{className:c()("isV9Layout"),children:(0,g.jsx)(y.N,{ref:J,query:Y,setQuery:X,children:()=>xe?(0,g.jsxs)("div",{className:"option-container",children:[(0,g.jsxs)(h.Ag,{className:c()("dropmenu-no-exit0","isV9Layout"),onClick:()=>F(""),children:[(0,g.jsx)(C.C,{size:22,name:"sharing/back_to_page_16",className:"back"}),(0,g.jsx)(f.W,{renderItem:he}),(0,g.jsx)(u.A,{children:(0,i.KD)(W)})]}),(0,g.jsx)(h.V5,{className:c()("isV9Layout"),children:(0,g.jsx)("div",{className:"scroll-able-container",children:Se.map(oe=>(0,g.jsx)(y.D,{depth:0,withSubOptions:!1,optionItem:oe,isOptionActive:ue=>{let{key:ve}=ue;return B===ve},onSelect:()=>K(W,oe.key,de),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)(y.N,{ref:J,query:L,setQuery:V,className:"wattr-widget-menu",children:oe=>{let{toToggleCollapsed:ue,keyItemCollapsed:ve}=oe;const re=Te=>{let{key:Ie}=Te;return ve.includes(Ie)},fe=Te=>{let{key:Ie}=Te;return z===Ie},we=Te=>{let{forDisplayOnly:Ie}=Te;return Ie};return D?(0,g.jsx)(v.A,{dataList:M,propsMap:{children:"subHotItemList"},isCollapsed:re,itemHeight:24,activeKey:z,itemRender:Te=>{let{item:Ie,depth:le}=Te;return(0,g.jsx)(y.D,{depth:le,withSubOptions:!0,shouldRenderChildren:!1,optionItem:Ie,isOptionActive:fe,onSelect:te,isOptionCollapsed:re,isOptionDisabled:we,onToggleCollapsed:ue,onMouseEnterOption:G,onMouseLeaveOption:Z},Ie.key)}}):(0,g.jsx)(a.Q,{query:L})}})})]})})},5438:(Fe,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:(Fe,ee,e)=>{"use strict";e.d(ee,{GA:()=>d,e_:()=>u,jb:()=>f,kh:()=>y});var n=e(29158),r=e(25037),c=e(74222),o=e(16966),w=e(91190);const u=(l,C)=>{let{key:v,sup:a,attr:P}=C;return l.push({type:r.UF,key:v,keySup:a}),l.push({type:r.qC,key:v,attrDiff:P}),l},d=l=>(0,c.xH)({type:"rResBunch",bunch:l}),y=function(l,C,v,a,P,b,g){return C===void 0&&(C=0),v===void 0&&(v="customize"),a===void 0&&(a=375),P===void 0&&(P=812),b===void 0&&(b="portrait"),g===void 0&&(g="vertical"),(0,c.KQ)({type:"rResBunch",bunch:"rbPage",name:l,zIndex:C,icon:""+w.KL+w.wv+"0",asFolder:!1,device:v,deviceW:a,deviceH:P,deviceOrientation:b,deviceScroll:g,alignH:[],alignV:[],scroll:1,scrollWay:"none",layout:"row",w:a,h:P,defaultCanvasKey:"",deleteInfo:{deleteTime:0,deleteUserName:""},fill:{fillIsVisible:!1,fill:"solid",solidColor:4126537215},"!liVersion":1})},h=function(l,C,v,a){C===void 0&&(C=0);let{x:P,y:b,w:g,h:S}=v;return a===void 0&&(a=1),packResCanvasAttr({type:"rResCanvas",name:l,zIndex:C,x:P,y:b,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 C=[];return u(C,{key:c.$k,sup:n.gT,attr:d("rbMain")}),u(C,{key:c.Ex,sup:n.gT,attr:d("rbTrash")}),u(C,{key:c.JC,sup:n.gT,attr:d("rbExt")}),u(C,{key:c.fW,sup:n.gT,attr:d("rbRefMuban")}),u(C,{key:c.W4,sup:n.gT,attr:d("rbRefDanli")}),u(C,{key:c.YZ,sup:n.gT,attr:d("rbRefMind")}),u(C,{key:c.fu,sup:n.gT,attr:d("rbVar")}),u(C,{key:c.EM,sup:n.gT,attr:d("rbDict")}),l.updateHotItem(i),C},p=l=>function(C){return C===void 0&&(C=KEY_MAIN),console.log(__devAttrFlatTree(l.getFlatTree(),C))},s=l=>function(C){return C===void 0&&(C=KEY_MAIN),console.log(l.__devHotTree(C))}},5680:(Fe,ee,e)=>{"use strict";e.d(ee,{R2:()=>C,BK:()=>s,k4:()=>l});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),w=e(39e3),u=e(17307),d=e(61068),y=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;}}}"],v=>v.theme.color_text_L1,v=>v.theme.color_proto,v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_btn_secondary_active,v=>v.theme.color_btn_secondary_active,v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_btn_secondary_active,v=>v.theme.color_bg_border_02);var p=e(72214);const s=["radiusTL","radiusTR","radiusBL","radiusBR"],l=v=>typeof v!="number";class C 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,P,b)=>{const{onChange:g,selections:S,dispatch:t}=this.props;this.props.attr&&this.props.supAttr&&P!=="borderRadiusIsVisible"?g({value:a,attr:this.props.attr,refVar:b,dispatch:t,supAttr:this.props.supAttr,selections:S}):g({value:a,attr:P,refVar:b,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:P,refVars:b}=this.props,{radiusTL:g}=P;this.setState({activeRadius:""}),this.handleSetAll(g,b==null||(a=b.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,P)=>{const b=parseInt(a)||0;if(!l(this.props.borderRadius)){const{radiusTL:g}=this.props.borderRadius;if(b===g)return}this.handleChange(b,"borderRadius",P)}),(0,n.A)(this,"handleSetSeparately",(a,P,b)=>{var g;const S=parseInt(a)||0,{borderRadius:t,refVars:_}=this.props;if(S===t[P]&&(_==null||(g=_.borderRadius)==null?void 0:g[P])===b)return;const{radiusTL:I,radiusTR:k,radiusBR:j,radiusBL:z}=t,K={radiusTL:I,radiusTR:k,radiusBR:j,radiusBL:z,[P]:S};let $;typeof(_==null?void 0:_.borderRadius)!="object"?$={}:$={..._.borderRadius},$[P]=b,this.handleChange(K,"borderRadius",$)}),(0,n.A)(this,"handleFocusSeparately",(a,P)=>{this.setState({activeRadius:P})}),(0,n.A)(this,"handleSetSeparatelyForOnce",a=>{var P;const b={radiusTL:a,radiusTR:a,radiusBR:a,radiusBL:a},g=(P=this.props.refVars)==null?void 0:P.borderRadius,S=typeof g=="string"?{radiusTL:g,radiusTR:g,radiusBR:g,radiusBL:g}:void 0;this.handleChange(b,"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:P,canSetSingleRadius:b,show:g,max:S,placeholder:t,className:_,refVars:I,canAddVar:k}=this.props,{activeRadius:j,setAll:z}=this.state;let K;if(typeof a!="number"?K=a:K={radiusTL:a,radiusTR:a,radiusBR:a,radiusBL:a},!g)return null;const $=I==null?void 0:I.borderRadius,A=z?typeof $=="string"?$:void 0:typeof $=="object"?$:void 0;return(0,p.jsxs)(f,{className:_,activeRadius:j,children:[(0,p.jsxs)("div",{className:"common-check-label-box",children:[(0,p.jsx)(d.A,{className:d.p,attr:"bdrIsVisible",isChecked:P,onChange:this.handleChangeborderRadiusIsVisible}),(0,p.jsx)("label",{className:"left-label",children:"\u5706\u89D2"})]}),(0,p.jsx)("div",{className:"separate-radius-input",children:z?(0,p.jsx)(y.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:A,disabled:!z,isNotVerify:!!t,placeholder:t,canAddVar:k,onConfirm:this.handleSetAll}):(0,p.jsxs)("div",{className:"separate-wrap",ref:this.setElementRef,children:[s.map(E=>{var U;return(0,p.jsx)(y.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:K[E],refVar:A==null?void 0:A[E],canAddVar:k,tooltipsContentText:(U=I18N.SettingPanel.border_radius)==null?void 0:U[E],onFocus:this.handleFocusSeparately,onConfirm:(O,H)=>this.handleSetSeparately(O,E,H)},E)}),j&&(0,p.jsx)(w.A,{target:document,onClick:this.handleCancelActiveRadius})]})}),b&&(0,p.jsx)("div",{className:"radius-set-controller",children:(0,p.jsx)(h.P,{iconClassName:o()("set-separately",{active:!z}),onClick:z?this.enableSetSeparately:this.enableSetAll,name:"design/br_set_separately",content:I18N.SettingPanel.uni_radius,direction:"down",tagName:"SVGIcon"})})]})}}(0,n.A)(C,"defaultProps",{canAddVar:!0})},6469:(Fe,ee,e)=>{"use strict";e.d(ee,{P:()=>p,V:()=>i});var n=e(53940),r=e(44805),c=e(38502),o=e(77494),w=e(59189),u=e(72214);const d=["children"];class y extends c.Component{shouldComponentUpdate(l,C,v){return this.props.isDraggingItem?!1:(0,w.N)(d).call(this,l,C)}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 C=l[0].hotAttr,{rowGutter:v,rowHeight:a,colCount:P,colGutter:b}=C.layoutGrid,g=Math.floor((C.h-n.nt.v)/(v+a)),S=Math.round((C.w-2*n.nt.h-(P-1)*b)/P);return{layoutGrid:C.layoutGrid,rowCount:g,colWidth:S}},f={component:h.A,params:{},getter:[i],setter:{onChange:r.c}},p=()=>[y,[f,"LayoutGridInfo"]]},6566:(Fe,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:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>y});var n=e(38502),r=e(28792),c=e(14269),o=e(56472);function w(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 C=S=>p.serializer?p.serializer(S):JSON.stringify(S),v=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 v(t)}catch(t){l(t)}return(0,o.Tn)(p.defaultValue)?p.defaultValue():p.defaultValue}const[P,b]=(0,n.useState)(a);(0,c.A)(()=>{b(a())},[f]);const g=S=>{const t=(0,o.Tn)(S)?S(P):S;if(b(t),(0,o.XB)(t)){var _;(_=s)==null||_.removeItem(f)}else try{var I;(I=s)==null||I.setItem(f,C(t))}catch(k){console.error(k)}};return[P,(0,r.A)(g)]}return i}var u=e(56202);const y=w(()=>u.Bd?window.localStorage:void 0)},6843:(Fe,ee,e)=>{"use strict";e.d(ee,{E4:()=>C,L4:()=>o,MB:()=>s,NV:()=>p,Sv:()=>d,Xh:()=>l,dA:()=>h,e:()=>u,jl:()=>w,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;}"]),w=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;}}"],v=>v.theme.color_bg_border_02,v=>v.theme.color_text_L1,v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_btn_secondary_active,v=>v.theme.color_text_L3,v=>v.theme.color_text_L1,v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_text_L1,v=>v.theme.color_btn_secondary_active,v=>v.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;}"]),y=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:",";}}}}"],v=>v.height+"px",v=>v.theme.color_bg_white,v=>v.y+"px",v=>v.theme.color_text_L1,v=>v.theme.color_btn_secondary_active,v=>v.theme.color_btn_secondary_active,v=>v.theme.color_btn_secondary_active,v=>v.theme.color_text_L2,v=>v.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;}}"],v=>v.theme.color_text_L2,v=>v.theme.color_text_L1,r.L9,v=>v.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;}}"],v=>v.theme.color_bg_border_02,v=>v.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;}"],v=>v.position.top,v=>v.position.right,v=>v.position.left,v=>v.theme.color_bg_white,v=>v.theme.color_bg_border_01,v=>v.theme.color_proto,v=>v.theme.color_bg_border_02,v=>v.theme.color_bg_white,v=>v.theme.color_text_L3,v=>v.theme.color_bg_white,v=>v.theme.color_text_link_normal,v=>v.theme.color_slider_normal,v=>v.theme.color_slider_normal,v=>v.theme.color_slider_hover,v=>v.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;}}}"],v=>v.isSearch?365:328,v=>v.theme.color_text_L1,v=>v.theme.color_bg_white,v=>v.theme.shadow_m,v=>v.theme.color_bg_border_01,v=>v.theme.color_slider_normal,v=>v.theme.color_slider_hover,v=>v.height+"px"||0,v=>v.theme.color_text_L1,v=>v.theme.color_text_L1,v=>v.theme.color_text_L2,v=>v.theme.color_text_L1,v=>v.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:",";}}}"],v=>v.theme.color_text_L2,v=>v.theme.color_text_link_normal,v=>v.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;}}"],v=>v.noSetting?224:196),C=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:",";}"],v=>v.theme.color_text_L2)},6861:(Fe,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",w="COMMENT_FILTER_SELECTED",u=r.eT?!1:(0,n.Yt)((0,r.OB)()?c:o,!0,n.qW.Boolean),d=(0,n.Yt)(w,"",n.qW.String),y={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=y);const{type:p,payload:s}=f;switch(p){case"comment:clear:state":return y;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)(w,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:(Fe,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),w=e(35298),u=e(25409),d=e(37944),y=e(78257),h=e(72214);const i=t=>{const{activeWord:_,list:I,dispatch:k}=t,j=(0,c.useCallback)(()=>{k({type:"image-panel:update:state",payload:{findActiveWord:""}})},[k]);return(0,c.useEffect)(()=>()=>{j()},[]),(0,h.jsxs)(w.zw,{children:[(0,h.jsx)(u.l,{resources:{title:_},showSearch:!1,showStar:!1,onBack:j}),(0,h.jsx)(d.u,{stickerList:I,popupsName:y.lS.Asset})]})};var f=e(17307),p=e(9501),s=e(33680),l=e(83199),C=e(37253),v=e(67052),a=e(90144);const P=["\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"],b=t=>t.sort((_,I)=>P.findIndex(k=>k===_.category)-P.findIndex(k=>k===I.category)),g=e.j!=477?(0,c.memo)(t=>{var _;const{activeWord:I}=t,[k,j]=(0,c.useState)(1),z=(0,c.useRef)(null),K=(0,o.wA)(),$=(0,o.d4)(v.p),A=(0,c.useMemo)(()=>$.slice(0,k*8).map(O=>({...O,list:O.list.map(H=>(0,s.nA)(O.category,H))})),[k,$]),E=O=>{K({type:"image-panel:update:state",payload:{findActiveWord:O}}),(0,a.gQ)({widget_file_name:O,source:a.Dn.STICKER_FIND})},U=r()(O=>{const H=O.target,Q=H.scrollTop,N=H.scrollHeight,L=H.getBoundingClientRect().height;if(Q+L+24>N){if(k*8>A.length)return;j(V=>V+1)}},200);return!A||A.length<1?null:I?(0,h.jsx)(i,{list:(_=A.find(O=>O.category===I))==null?void 0:_.list,activeWord:I,dispatch:K}):(0,h.jsx)(w.VA,{ref:z,onScroll:U,children:A.map((O,H)=>(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:y.lS.Asset,from:"findPanel"},N))})]},H))})}):null,S=async()=>{const t=await(0,C.DE)("/api/community/v1/recommend_sticker");t!=null&&t.length&&b(t),MB.action("image-panel:set:stickerData",Array.isArray(t)?t:[])}},8113:(Fe,ee,e)=>{"use strict";e.d(ee,{EP:()=>S,Ey:()=>g,hp:()=>b});var n=e(60892);const r=(t,_)=>{const I=[];for(let k=0;k<_;k++)I.push(t(k));return I},c=(t,_)=>r(I=>I+t,_-t+1),o=t=>r(_=>_/t,1+t),w=(t,_)=>({[Symbol.iterator]:()=>{let I=0;return{next:()=>I<_?{value:t(I++),done:!1}:{value:t(I),done:!0}}}}),u=(t,_)=>w(I=>I+t,_-t+1),d=t=>w(_=>_/t,1+t);var y=e(94299),h=e(44691);const i="\u{1F631}\u{1F47E}",f=4,p=256,s=32*1024*1024,l=1024*1024*1024,C=t=>(0,h.l)(new TextEncoder().encode(JSON.stringify(t)).buffer),v=t=>JSON.parse(new TextDecoder().decode((0,h.D)(t))),a=async()=>{try{const{quota:t=0,usage:_=0}=await navigator.storage.estimate(),I=(0,y.qE)(t*.5,s,l);return{quota:t,usage:_,maxDataSize:I}}catch(t){console.warn("#FS|estimate",t)}return{maxDataSize:s}},P=async()=>{const{maxDataSize:t}=await a(),_=new Set(c(-4,2).map(j=>{const z=new Date;return z.setUTCDate(z.getUTCDate()+j),""+i+(0,n.J8)(z)}));let I=0;const k=[];if(typeof caches<"u"){for(const j of await caches.keys()){if(!j.startsWith(i))continue;if(!_.has(j)){console.log("#FS|trim outdated",j),await caches.delete(j);continue}const z=await caches.open(j);for(const K of await z.keys())try{const $=await z.match(K),{time:A=0,size:E=0}=v($.statusText);k.push({key:j,keyC:K,time:A,size:E})}catch($){console.warn("#FS|trim",K,$)}}for(k.sort((j,z)=>z.time-j.time),I=k.reduce((j,z)=>{let{size:K}=z;return j+K},0);(I>=t||k.length>=p)&&k.length>=f;){const{key:j,keyC:z,time:K,size:$}=k.pop();console.log("#FS|trim size",j,z,$,new Date(K).toISOString()),await(await caches.open(j)).delete(z),I-=$}}return{maxDataSize:t,sizeSum:I,ciList:k}},b=async(t,_,I)=>{const k={...I,time:Date.now(),size:_.size};if(typeof caches<"u"){const j=await caches.open(""+i+(0,n.J8)());await P(),await j.put(t,new Response(_,{statusText:C(k),headers:{"content-length":String(_.size)}}))}return k},g=async t=>{const _=[];if(typeof caches<"u"){for(const I of await caches.keys()){const j=await(await caches.open(I)).match(t);if(j!==void 0)try{const z=await j.blob(),K=v(j.statusText);_.push({data:z,extra:K})}catch(z){console.warn("#FS|load",t,z)}}_.sort((I,k)=>k.extra.time-I.extra.time)}return _},S=async function(t,_){_===void 0&&(_=Date.now());let I=0;if(typeof caches<"u")for(const k of await caches.keys()){const j=await caches.open(k),z=await j.match(t);if(z!==void 0)try{if(v(z.statusText).time>_)continue;await j.delete(t),I++}catch(K){console.warn("#FS|free",t,k,K)}}return I}},8228:(Fe,ee,e)=>{"use strict";e.d(ee,{$I:()=>w,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 w=(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:w().filter(y=>y.menu===o.page)},{title:I18N.ChatGPT.ai_advanced_components,items:w().filter(y=>y.menu===o.component)},{title:I18N.ChatGPT.ai_magic_fill,items:w().filter(y=>y.menu===o.other)}])},8281:(Fe,ee,e)=>{"use strict";e.d(ee,{hC:()=>H,Mj:()=>U,Wz:()=>O,eQ:()=>Q,rD:()=>E});function n(N,L,V,M){const D=[L];if(M.y=L.x&&M.x=L.x&&V.x=L.y){const W=(M.y+(L.y+N.h))/2;M.x>=N.x&&M.x=N.x+N.w/2&&M.x=L.y&&V.y<=N.y+N.h)if(V.x+V.w=N.x&&M.x=L.x&&V.x<=N.x+N.w){const W=N.yV.x+V.w?N.x+N.w+20:V.x+V.w+20;D.push({x:L.x,y:W}),D.push({x:F,y:W}),D.push({x:F,y:M.y+20}),D.push({x:M.x,y:M.y+20})}else{const W=(N.x+N.w+V.x)/2;D.push({x:L.x,y:L.y-20}),D.push({x:W,y:L.y-20}),D.push({x:W,y:M.y+20}),D.push({x:M.x,y:M.y+20})}if(V.y>N.y+N.h)if(V.x+V.w=N.x&&M.x=L.x&&V.x<=N.x+N.w){const W=(N.y+N.h+V.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:W}),D.push({x:V.x-20,y:W}),D.push({x:V.x-20,y:M.y+20}),D.push({x:M.x,y:M.y+20})}else{const W=(N.x+N.w+V.x)/2;D.push({x:L.x,y:L.y-20}),D.push({x:W,y:L.y-20}),D.push({x:W,y:M.y+20}),D.push({x:M.x,y:M.y+20})}return D.push(M),D}function o(N,L,V,M){const D=[L];if(M.yL.x&&D.push({x:L.x,y:M.y}),M.x<=L.x)){if(V.y+V.h=L.y)if(V.x+V.w>=N.x)D.push({x:L.x,y:V.y-20}),D.push({x:M.x-20,y:V.y-20}),D.push({x:M.x-20,y:M.y});else{const W=(V.x+V.w+N.x)/2;D.push({x:L.x,y:L.y-20}),D.push({x:W,y:L.y-20}),D.push({x:W,y:V.y+V.h+20}),D.push({x:M.x-20,y:V.y+V.h+20}),D.push({x:M.x-20,y:M.y})}}if(M.y>=L.y)if(M.x<=L.x){const W=N.xL.x&&M.x<=N.x+N.w)if(V.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:M.y});else{const W=(N.y+N.h+V.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:W}),D.push({x:M.x-20,y:W}),D.push({x:M.x-20,y:M.y})}else{const W=(N.x+N.w+M.x)/2;D.push({x:L.x,y:L.y-20}),D.push({x:W,y:L.y-20}),D.push({x:W,y:M.y})}return D.push(M),D}function w(N,L,V,M){const D=[L];if(V.x>L.x){const W=(L.x+V.x)/2;M.y<=L.y?(D.push({x:W,y:L.y}),D.push({x:W,y:M.y-20}),D.push({x:M.x,y:M.y-20})):D.push({x:M.x,y:L.y})}if(V.x<=L.x&&V.x+V.w>L.x&&(V.y+V.h<=L.y&&(D.push({x:V.x+V.w+20,y:L.y}),D.push({x:V.x+V.w+20,y:M.y-20}),D.push({x:M.x,y:M.y-20})),V.y>=L.y&&V.y<=N.y+N.h&&D.push({x:M.x,y:L.y}),V.y>N.y+N.h))if(M.x>L.x)D.push({x:M.x,y:L.y});else{const W=(M.y+(N.y+N.h))/2;D.push({x:L.x+20,y:L.y}),D.push({x:L.x+20,y:W}),D.push({x:M.x,y:W})}if(V.x+V.w<=L.x)if(M.y>N.y+N.h){const W=(M.y+(N.y+N.h))/2;D.push({x:L.x+20,y:L.y}),D.push({x:L.x+20,y:W}),D.push({x:M.x,y:W})}else if(M.y>L.y&&M.y<=N.y+N.h)if(V.x+V.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:M.x,y:N.y-20});else{const W=(V.x+V.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:W,y:N.y+N.h+20}),D.push({x:W,y:M.y-20}),D.push({x:M.x,y:M.y-20})}else{const W=V.yN.y+N.h){const W=M.x>L.x?M.x+20:L.x+20;if(V.x>L.x&&V.yL.y){if(M.xL.x){const W=(V.x+L.x)/2;D.push({x:W,y:L.y}),D.push({x:W,y:V.y-20}),D.push({x:M.x+20,y:V.y-20}),D.push({x:M.x+20,y:M.y})}}if(M.y<=L.y&&M.y>N.y){if(M.xL.x){const W=(V.x+L.x)/2;D.push({x:W,y:L.y}),D.push({x:W,y:V.y+V.h+20}),D.push({x:M.x+20,y:V.y+V.h+20}),D.push({x:M.x+20,y:M.y})}}if(M.y<=N.y){const W=M.x>L.x?M.x+20:L.x+20;if(V.x>L.x&&V.y+V.h>L.y){const F=(V.x+L.x)/2;D.push({x:F,y:L.y}),D.push({x:F,y:V.y+V.h+20}),D.push({x:M.x+20,y:V.y+V.h+20}),D.push({x:M.x+20,y:M.y})}else D.push({x:W,y:L.y}),D.push({x:W,y:M.y})}return D.push(M),D}function d(N,L,V,M){const D=[L];if(M.y=N.y&&M.y=N.x&&M.xL.x&&D.push({x:M.x,y:L.y})}if(M.y>=L.y){if(M.x<=L.x){const W=L.x>V.x+V.w?L.x+20:V.x+V.w+20,F=M.y>N.y+N.h?M.y+20:N.y+N.h+20;D.push({x:W,y:L.y}),D.push({x:W,y:F}),D.push({x:M.x,y:F})}if(M.x>L.x&&V.x<=L.x)if(V.y<=N.y+N.h)D.push({x:V.x+V.w+20,y:L.y}),D.push({x:V.x+V.w+20,y:M.y+20}),D.push({x:M.x,y:M.y+20});else{const W=(V.y+(N.y+N.h))/2;D.push({x:L.x+20,y:L.y}),D.push({x:L.x+20,y:W}),D.push({x:V.x-20,y:W}),D.push({x:V.x-20,y:M.y+20}),D.push({x:M.x,y:M.y+20})}if(V.x>L.x){const W=(L.x+V.x)/2;D.push({x:W,y:L.y}),D.push({x:W,y:M.y+20}),D.push({x:M.x,y:M.y+20})}}return D.push(M),D}function y(N,L,V,M){const D=[L];if(M.x>L.x){const W=(L.x+M.x)/2;D.push({x:W,y:L.y}),D.push({x:W,y:M.y})}if(M.x<=L.x){if(V.y+V.h=N.y&&M.yN.x+N.w?V.x+V.w+20:N.x+N.w+20,F=V.y=N.y&&M.y=N.y+N.h&&V.y=N.y+N.h){const W=(V.y+(N.y+N.h))/2;D.push({x:L.x+20,y:L.y}),D.push({x:L.x+20,y:W}),D.push({x:M.x-20,y:W}),D.push({x:M.x-20,y:M.y})}}return D.push(M),D}function h(N,L,V,M){return c(V,M,N,L).reverse()}function i(N,L,V,M){return d(V,M,N,L).reverse()}function f(N,L,V,M){const D=[L];if(M.y>L.y){const W=(L.y+V.y)/2;V.x+V.w>=L.x&&M.x=L.x&&V.x=N.x&&M.x=N.x+N.w/2&&M.x=L.x)){if(M.y=N.y&&(V.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:M.x,y:N.y+N.h+20})),V.x>N.x+N.w)){const W=(V.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:W,y:N.y-20}),D.push({x:W,y:M.y+20}),D.push({x:M.x,y:M.y+20})}}if(M.y>=L.y){if(V.x+V.w=L.x&&M.x=L.x){const W=N.xV.y+V.h?N.y+N.h+20:V.y+V.h+20;D.push({x:W,y:L.y}),D.push({x:W,y:F}),D.push({x:M.x,y:F})}}return D.push(M),D}function v(N,L,V,M){const D=[L];if(M.x=L.y&&M.y=L.y&&V.y=L.x){const W=(M.x+(N.x+N.w))/2;M.y>=N.y&&M.y=N.y+N.h/2&&M.y5?(M>=-135&&M<=-45?(F.push({x:L.x,y:W}),F.push({x:V.x,y:W})):F.push({x:L.x,y:V.y}),F.push(V)):F.push({x:L.x,y:V.y});break;case"right":Math.abs(V.y-L.y)>5?(M>=-45&&M<=45?(F.push({x:D,y:L.y}),F.push({x:D,y:V.y})):F.push({x:V.x,y:L.y}),F.push(V)):F.push({x:V.x,y:L.y});break;case"bottom":Math.abs(V.x-L.x)>5?(M>=45&&M<=135?(F.push({x:L.x,y:W}),F.push({x:V.x,y:W})):F.push({x:L.x,y:V.y}),F.push(V)):F.push({x:L.x,y:V.y});break;case"left":Math.abs(V.y-L.y)>5?(M>=135&&M<=180||M>=-180&&M<=-135?(F.push({x:D,y:L.y}),F.push({x:D,y:V.y})):F.push({x:V.x,y:L.y}),F.push(V)):F.push({x:V.x,y:L.y});break;default:F.push(V);break}return F}function _(N,L,V,M){const D=Math.atan2(V.y-M.y,M.x-V.x)*(180/Math.PI),W=(V.x+M.x)/2,F=(V.y+M.y)/2,B=[V];switch(N){case"top":M.y<=V.y-10&&(Math.abs(M.x-V.x)>5?((D<45||D>135)&&B.push({x:V.x,y:M.y}),D>=45&&D<=135&&(B.push({x:V.x,y:F}),B.push({x:M.x,y:F})),B.push(M)):B.push({x:V.x,y:M.y})),M.y>V.y-10&&M.y<=V.y&&(Math.abs(M.x-V.x)>5?(B.push({x:V.x,y:V.y-10}),B.push({x:M.x,y:V.y-10})):B.push({x:V.x,y:V.y-10})),M.y>V.y&&(B.push({x:V.x,y:V.y-20}),(M.x<=L.x-20||M.x>=L.x+L.w+20)&&B.push({x:M.x,y:V.y-20}),M.x>L.x-20&&M.x<=L.x+L.w/2&&(B.push({x:L.x-20,y:V.y-20}),B.push({x:L.x-20,y:M.y})),M.x>L.x+L.w/2&&M.x=V.x+10&&(Math.abs(M.y-V.y)>5?((D>45||D<-45)&&B.push({x:M.x,y:V.y}),D>=-45&&D<=45&&(B.push({x:W,y:V.y}),B.push({x:W,y:M.y})),B.push(M)):B.push({x:M.x,y:V.y})),M.x>=V.x&&M.x5?(B.push({x:V.x+10,y:V.y}),B.push({x:V.x+10,y:M.y})):B.push({x:V.x+10,y:V.y})),M.x=L.y+L.h+20)&&B.push({x:V.x+20,y:M.y}),M.y>L.y-20&&M.y<=L.y+L.h/2&&(B.push({x:V.x+20,y:L.y-20}),B.push({x:M.x,y:L.y-20})),M.y>L.y+L.h/2&&M.y=V.y+10&&(Math.abs(M.x-V.x)>5?((D<-135||D>-45)&&B.push({x:V.x,y:M.y}),D>=-135&&D<=-45&&(B.push({x:V.x,y:F}),B.push({x:M.x,y:F})),B.push(M)):B.push({x:V.x,y:M.y})),M.y=V.y&&(Math.abs(M.x-V.x)>5?(B.push({x:V.x,y:V.y+10}),B.push({x:M.x,y:V.y+10})):B.push({x:V.x,y:V.y+10})),M.y=L.x+L.w+20)&&B.push({x:M.x,y:V.y+20}),M.x>L.x-20&&M.x<=L.x+L.w/2&&(B.push({x:L.x-20,y:V.y+20}),B.push({x:L.x-20,y:M.y})),M.x>L.x+L.w/2&&M.x5?((D<135||D>-135)&&B.push({x:M.x,y:V.y}),(D>=135&&D<=180||D>=-180&&D<=-135)&&(B.push({x:W,y:V.y}),B.push({x:W,y:M.y})),B.push(M)):B.push({x:M.x,y:V.y})),M.x>V.x-10&&M.x<=V.x&&(Math.abs(M.y-V.y)>5?(B.push({x:V.x-10,y:V.y}),B.push({x:V.x-10,y:M.y})):B.push({x:V.x-10,y:V.y})),M.x>V.x&&(B.push({x:V.x-20,y:V.y}),(M.y<=L.y-20||M.y>=L.y+L.h+20)&&B.push({x:V.x-20,y:M.y}),M.y>L.y-20&&M.y<=L.y+L.h/2&&(B.push({x:V.x-20,y:L.y-20}),B.push({x:M.x,y:L.y-20})),M.y>L.y+L.h/2&&M.y-45&&F<=45||F>135&&F<=180||F>-180&&F<=-135)&&(B.push({x:(N.x+L.x)/2,y:N.y}),B.push({x:(N.x+L.x)/2,y:L.y})),(F>45&&F<=135||F>-135&&F<=-45)&&(B.push({x:N.x,y:(N.y+L.y)/2}),B.push({x:L.x,y:(N.y+L.y)/2})),B.push(L),B}function K(N,L,V,M,D,W,F,B){return D?F?(0,b.RR)(N,L,!0,!1):(0,b.RR)(N,L,!0,B!=="end"):W?[N,L]:j.rw.contains(M,L)?t(V,N,L):_(V,M,N,L)}function $(N,L,V,M,D,W,F,B){return D?F?(0,b.RR)(N,L,!0,!0):(0,b.RR)(N,L,B!=="start",!0):W?[N,L]:K(L,N,V,M,!1,!1,!1,B).reverse()}function A(N,L,V,M,D,W,F,B,Y){if(B||Y)return[N,L];if(F)return k(D,V,M);if(j.rw.contains(D,L))return I(V,N,M,L);if(j.rw.contains(W,N))return I(M,L,V,N).reverse();const Z=""+V+M;return P[Z]?P[Z](D,N,W,L):[N,L]}function E(N){return(0,b.ZT)(N)}function U(N,L,V,M,D,W,F,B,Y,X,G,Z,J,te){if(J&&te)return A(M,B,L,W,V,F,N===D,Y,X);if(J&&!te)return K(M,B,L,V,Y,X,G,Z);if(!J&&te)return $(M,B,W,F,Y,X,G,Z);if(!te&&!te)return z(M,B,Y,X,G,Z)}function O(N,L,V,M){const D=[],W=N;D.push(W);const F=Math.atan2(V.y-M.y,M.x-V.x)*(180/Math.PI),Y=(0,b.b4)(F)==="horizontal"?"vertical":"horizontal",X=L;return Y==="horizontal"?(X.x=L.x,X.y=W.y):(X.y=L.y,X.x=W.x),D.push(X),D}function H(N,L,V,M){const D=[],W=N;D.push(W);const F=Math.atan2(L.y-V.y,V.x-L.x)*(180/Math.PI),Y=(0,b.b4)(F)==="horizontal"?"vertical":"horizontal",X=M;return Y==="horizontal"?(X.x=M.x,X.y=W.y):(X.y=M.y,X.x=W.x),D.push(X),D.reverse()}function Q(N,L,V,M,D,W){const F=[],B=JSON.parse(JSON.stringify(N)),Y=B.length;for(let Z=0;Z{if(Z.fromIndex===V&&Z.toIndex===M){const te=Z;let he=null,de=null;if(J-2>=0&&(he=F[J-2]),J+2<=F.length-1&&(de=F[J+2]),he&&de){if(D==="vertical")if(he.to.y===de.to.y)Math.abs(L.y-he.to.y)<=W?(te.from.y=he.to.y,te.to.y=he.to.y):(te.from.y=G,te.to.y=G);else{const Se=Math.abs(he.to.y-L.y),xe=Math.abs(de.to.y-L.y);Se<=xe?Math.abs(L.y-he.to.y)<=W?(te.from.y=he.to.y,te.to.y=he.to.y):(te.from.y=G,te.to.y=G):Math.abs(L.y-de.to.y)<=W?(te.from.y=de.to.y,te.to.y=de.to.y):(te.from.y=G,te.to.y=G)}if(D==="horizontal")if(he.to.x===de.to.x)Math.abs(L.x-he.to.x)<=W?(te.from.x=he.to.x,te.to.x=he.to.x):(te.from.x=X,te.to.x=X);else{const Se=Math.abs(he.to.x-L.x),xe=Math.abs(de.to.x-L.x);Se<=xe?Math.abs(L.x-he.to.x)<=W?(te.from.x=he.to.x,te.to.x=he.to.x):(te.from.x=X,te.to.x=X):Math.abs(L.x-de.to.x)<=W?(te.from.x=de.to.x,te.to.x=de.to.x):(te.from.x=X,te.to.x=X)}}he&&!de&&(D==="vertical"&&(Math.abs(L.y-he.to.y)<=W?(te.from.y=he.to.y,te.to.y=he.to.y):(te.from.y=G,te.to.y=G)),D==="horizontal"&&(Math.abs(L.x-he.to.x)<=W?(te.from.x=he.to.x,te.to.x=he.to.x):(te.from.x=X,te.to.x=X))),!he&&de&&(D==="vertical"&&(Math.abs(L.y-de.to.y)<=W?(te.from.y=de.to.y,te.to.y=de.to.y):(te.from.y=G,te.to.y=G)),D==="horizontal"&&(Math.abs(L.x-de.to.x)<=W?(te.from.x=de.to.x,te.to.x=de.to.x):(te.from.x=X,te.to.x=X))),!he&&!de&&(D==="vertical"&&(te.from.y=G,te.to.y=G),D==="horizontal"&&(te.from.x=X,te.to.x=X))}}),[F[0].from].concat(F.map(Z=>Z.to))}},8293:(Fe,ee,e)=>{"use strict";e.d(ee,{C1:()=>v,IP:()=>P,Ly:()=>C,Ow:()=>g});var n=e(70768),r=e(9233),c=e(29158),o=e(41011),w=e(26812),u=e(5664),d=e(74222),y=e(73658),h=e(83744),i=e(37860),f=e(75006),p=e(92598),s=e(72214);const l=()=>{const _=(0,r.v)((0,c.Id)(),(0,o.aF)({})),I=(0,w.uq)(_),k=(0,u.jb)(I);return _.applyDiff(k),I},C=(_,I)=>{const k=l(),j=k.loadSubtreeTL(_,d.$k,0,0),z=k.getHotKeyListAABB(j),K=z[2]-z[0],$=z[3]-z[1],A=k.getHotItem(j[0]);switch(A.hotAttr.type){case"wSticky":{const Q=(0,y.Be)(I)+1;k.updateHotAttrMerge(j[0],{order:Q});break}case"wTear":{const Q=(0,y.Be)(I)+1;k.updateHotAttrMerge(j[0],{order:Q});break}}(0,h.xB)(A.hotAttr.type,j[0],k);const E=new f.A(k,j[0],f.A.MODE.snapshot),U={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:U}),puppetWidth:K,puppetHeight:$,widgetTreeStore:E,hotItem:O}},v=(_,I)=>{const{widgetWrapper:k,puppetWidth:j,puppetHeight:z,widgetTreeStore:K,hotItem:$}=C(_,I),A=document.createElement("div");A.id="create-click-widget-puppet",A.style.position="absolute",A.style.display="none",A.style.zIndex="11",A.style.width=j+"px",A.style.height=z+"px",A.style.transformOrigin="top left",A.style.transition="all 0.2s ease-in-out;",A.style.transform="translateZ(0)",A.style.willChange="transform",A.style.pointerEvents="none";const E=(0,n.createRoot)(A);return E.render(k),document.body.appendChild(A),{getWidgetInsertablePuppet:()=>A,moveAndScaleWidgetInsertablePuppet:U=>{let{top:O,left:H,scale:Q}=U;const N=j*Q/100,L=z*Q/100;A.style.display="block",A.style.top=O+"px",A.style.left=H+"px",A.style.width=N+"px",A.style.height=L+"px",A.style.transform="scale("+Q/100+")"},updateWidgetInsertablePuppetRenderProps:U=>{Object.assign($.hotAttr,U),E.render(k)},destroyWidgetInsertablePuppet:()=>{K.destory(),E==null||E.unmount(),A==null||A.remove()}}},a=(_,I)=>{if(!_||!I)return[];I.sort((k,j)=>{var z,K;return(((z=KNOWN_ORDER_MKTS_MAP[_])==null?void 0:z[k.cid])||1e4)-(((K=KNOWN_ORDER_MKTS_MAP[_])==null?void 0:K[j.cid])||1e4)})},P=_=>{if(!_)return[];const I=(0,i.HI)();Object.entries(_).forEach(k=>{let[j,z]=k;z.sort((K,$)=>{var A,E;return(((A=I[j])==null?void 0:A[K.name])||1e4)-(((E=I[j])==null?void 0:E[$.name])||1e4)})},{})},b=(_,I,k)=>{var j;const K=(j=getSceTagAndPlableToInsertWidgetMap()[_])==null?void 0:j[I];return K?k.filter($=>Object.keys(K).includes($.split("/")[0])).sort(($,A)=>K[$.split("/")[0]]-K[A.split("/")[0]]):[]},g=_=>Object.values(i.c3).includes(_)?_===i.c3.Customize?i.c3.Common:_===i.c3.DS_Customize?i.c3.DS_Screen:_===i.c3.HMI_Customize?i.c3.HMI_IndusHmi:_===i.c3.CAR_Car?i.c3.HMI_Car:[i.c3.MP_ECommerce,i.c3.MP_Poster].includes(_)?i.c3.MP_App:_:i.c3.Common,S=(_,I)=>_.length===0?[]:_.map(k=>(I.get(k.mtCid)||[]).find(K=>K.key===k.key)||k),t=(_,I)=>arrDedup(_,"clabel").map(k=>{const j=S(arrDedup(k.list,"key"),I);return{...k,list:j}})},8452:(Fe,ee,e)=>{"use strict";e.d(ee,{dZ:()=>c,z9:()=>w});var n=e(81717),r=e(5209),c=function(y){return y[y.Toolbar=1]="Toolbar",y[y.ShortCut=2]="ShortCut",y[y.TransformDoubleClick=3]="TransformDoubleClick",y[y.TransformSettingPanel=4]="TransformSettingPanel",y}(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 w=function(y){return y[y.Enter=1]="Enter",y[y.Esc=2]="Esc",y[y.ClickBlank=3]="ClickBlank",y[y.Exit=4]="Exit",y[y.Other=5]="Other",y}(w||{});const u={[w.Enter]:"Enter",[w.Esc]:"Esc",[w.ClickBlank]:"\u70B9\u51FB\u7A7A\u767D",[w.Exit]:"\u70B9\u51FB\u5B8C\u6210\u7F16\u8F91",[w.Other]:"\u5176\u4ED6"},d=(y,h,i)=>{saTrack("add_vector_V8",{source:o[y],vector_type:h?"\u95ED\u5408":"\u975E\u95ED\u5408",vector_finish:u[i]}),TrackTool.editProjectNew("\u65B0\u5EFA\u77E2\u91CF")}},8614:(Fe,ee,e)=>{"use strict";e.d(ee,{$Y:()=>S,HL:()=>o,Ip:()=>d,JY:()=>f,Qe:()=>l,R0:()=>v,Rd:()=>r,SP:()=>n,TP:()=>s,V5:()=>i,_h:()=>_,aD:()=>p,ap:()=>C,bC:()=>u,dN:()=>a,eP:()=>t,fn:()=>b,kR:()=>P,nC:()=>g,oo:()=>y,qF:()=>c,rw:()=>w,xg:()=>h});const n=I=>I.lib.isLoadedInitialData,r=I=>I.lib.cacheLocalLibTag,c=I=>I.lib.collapseGroupKeySet,o=I=>I.lib.textStyleTree,w=I=>I.lib.colorStyleTree,u=I=>I.lib.appearStyleTree,d=I=>I.lib.localStyleStore,y=I=>I.lib.addedLibList,h=I=>I.lib.usedLibList,i=I=>I.lib.currentManagePanel,f=I=>I.lib.detailLib,p=I=>I.lib.mubanDetailLib,s=I=>I.lib.teamLibList,l=I=>I.lib.recommendLibList,C=I=>I.lib.isCurrentProjectSclib,v=I=>I.lib.localStyleUpdateDiff,a=I=>I.lib.currentMubanFolderData,P=I=>I.lib.isFetchMubanData,b=I=>I.lib.libMubanTreeMap,g=I=>I.lib.libSdkStoreMap,S=I=>I.lib.isLoadedNeedUpdateLibs,t=I=>I.lib.needUpdateLibs,_=I=>I.lib.collapseMubanFolderKeySet},8926:(Fe,ee,e)=>{"use strict";e.d(ee,{iJ:()=>ao,ER:()=>Je,sw:()=>On,Gh:()=>Jn,Cj:()=>Qn,fZ:()=>no,Pn:()=>Jt,d0:()=>In,St:()=>vo,i:()=>$n,$t:()=>Ln,PL:()=>$t,dB:()=>Oe});var n=e(18821),r=e.n(n),c=e(63986),o=e.n(c),w=e(41589),u=e.n(w);if(e.j!=477)var d=e(10549);var y=e(9911),h=e(24229),i=e(74222),f=e(29158),p=e(52049),s=e(70248),l=e(21856),C=e(64320),v=e(34121),a=e(9521),P=e(20089),b=e(15186),g=e(64012),S=e(95549),t=e(38502),_=e(72214);class I extends t.PureComponent{render(){const{pointsData:Re,selectedIndex:De,vx:Be,vy:$e,showVirtualLine:Ze,px:nt,py:mt,showVirtualPoint:xt}=this.props,gt=xt&&nt!==null&&mt!==null;let wt,Zt,Ft;if(Ze){const Gt=Re[De[0]];Zt=Be||Gt.x,Ft=$e||Gt.y,De[0]===Re.length-1?wt="M"+Gt.x+" "+Gt.y+" C"+Gt.next.x+" "+Gt.next.y+" "+Zt+" "+Ft+" "+Zt+" "+Ft:wt="M "+Zt+" "+Ft+" C"+Zt+" "+Ft+" "+Gt.prev.x+" "+Gt.prev.y+" "+Gt.x+" "+Gt.y}return(0,_.jsxs)(_.Fragment,{children:[Ze&&(0,_.jsx)("path",{className:"virtual-line",d:wt}),Ze&&(0,_.jsx)("circle",{className:"virtual-point-outside",cx:Zt,cy:Ft,r:4}),gt&&(0,_.jsx)("circle",{className:"virtual-point-online",cx:nt,cy:mt,r:3})]})}}var k=e(93e3);class j extends t.PureComponent{render(){const{pointsData:Re,selectedIndex:De,selectedAssistIndex:Be,closed:$e,vx:Ze,vy:nt,mapX:mt,mapY:xt,viewport:gt,transform:wt,boundingBoxTransform:Zt}=this.props;let Ft,Gt;if(!$e&&(De[0]===0||De[0]===Re.length-1)){const Rt=Re[De[0]];Ft=Ze||Rt.x,Gt=nt||Rt.y}else if(Re[De[0]]){const Rt=Be?Re[De[0]][Be]:Re[De[0]];Ft=Rt==null?void 0:Rt.x,Gt=Rt==null?void 0:Rt.y}const{x:Dt,y:Qt}=k.L.applyInverse(gt,{x:Ft,y:Gt}),Ct=Math.round(Dt),yn=Math.round(Qt),rn=[];if(mt.has(Ct)){const[Rt,Dn]=mt.get(Ct),To=wt.inverted().apply({x:Ct,y:Rt}),mo=Zt.apply(To),ro=wt.inverted().apply({x:Ct,y:Dn}),Bn=Zt.apply(ro);rn.push("M"+Ft+" "+Bn.y+" L"+Ft+" "+Gt+" L"+Ft+" "+mo.y+" Z")}if(xt.has(yn)){const[Rt,Dn]=xt.get(yn),To=wt.inverted().apply({x:Rt,y:yn}),mo=Zt.apply(To),ro=wt.inverted().apply({x:Dn,y:yn}),Bn=Zt.apply(ro);rn.push("M"+mo.x+" "+Gt+" L"+Ft+" "+Gt+" L"+Bn.x+" "+Gt+" Z")}return rn.map((Rt,Dn)=>(0,_.jsx)("path",{className:"align-line",d:Rt,strokeWidth:1,stroke:"red"},"alignment-"+Dn))}}var z=e(53732),K=e.n(z),$=e(30728);let A=function(He){return He.Straight="straight",He.Mirrored="mirrored",He.Asymmetric="asymmetric",He.Disconnected="disconnected",He}({}),E;(function(He){const Re={x:0,y:0,type:A.Disconnected,radius:0,prev:$.Z.zero,next:$.Z.zero};function De(Ze){return{x:Ze,y:0,type:A.Straight,radius:0,prev:$.Z.zero,next:$.Z.zero}}He.x=De;function Be(Ze){return{x:0,y:Ze,type:A.Straight,radius:0,prev:$.Z.zero,next:$.Z.zero}}He.y=Be;function $e(Ze,nt,mt){return mt===void 0&&(mt=0),{x:Ze,y:nt,type:A.Straight,radius:mt,prev:$.Z.zero,next:$.Z.zero}}He.xyr=$e})(E||(E={}));let U;(function(He){function Re(Be){if(Be.points.length>1){if(Be.points.every($e=>$e.type===A.Straight&&Math.abs($e.y)<1e-10))return"h";if(Be.points.every($e=>$e.type===A.Straight&&Math.abs($e.x)<1e-10))return"v"}return null}He.isLine=Re;function De(Be,$e,Ze){Ze===void 0&&(Ze=$.Z.zero);const{x:nt,y:mt}=$e;return{points:Be.points.map(gt=>({type:gt.type,x:gt.x*nt+Ze.x,y:gt.y*mt+Ze.y,next:{x:gt.next.x*nt,y:gt.next.y*mt},prev:{x:gt.prev.x*nt,y:gt.prev.y*mt},radius:gt.radius})),closed:Be.closed}}He.scale=De})(U||(U={}));class O extends t.PureComponent{render(){const{hoverIndex:Re,pointsData:De,showVirtualPoint:Be,closed:$e}=this.props,Ze=De.map((nt,mt)=>{const xt=De[mt+1]||De[0],{x:gt,y:wt,next:Zt}=nt,{x:Ft,y:Gt,prev:Dt}=xt,Qt=mt+1===De.length?0:mt+1;return nt.type!==A.Straight&&De[Qt].type===A.Straight?"M"+gt+" "+wt+" Q"+Zt.x+" "+Zt.y+" "+Ft+" "+Gt:nt.type===A.Straight&&De[Qt].type!==A.Straight?"M"+gt+" "+wt+" Q"+Dt.x+" "+Dt.y+" "+Ft+" "+Gt:"M"+gt+" "+wt+" C"+Zt.x+" "+Zt.y+" "+Dt.x+" "+Dt.y+" "+Ft+" "+Gt});return $e||Ze.pop(),(0,_.jsx)(_.Fragment,{children:Ze.map((nt,mt)=>{const xt=Re===mt&&Be;return(0,_.jsx)("path",{className:K()("vector-line",{"is-hover-line":xt}),d:nt},mt)})})}}var H=e(69248),Q=e.n(H);const N=(He,Re)=>{const De=Re.findIndex(Be=>Be===He);De!==-1?Re.splice(De,1):Re.push(He)},L=(He,Re,De)=>{const Be=[He,...Re].sort((nt,mt)=>nt-mt),$e=Be.indexOf(He);let Ze;if($e===0)Be[1]-He<=De&&(Ze=Be[1]);else if($e===Be.length-1)He-Be[Be.length-2]<=De&&(Ze=Be[Be.length-2]);else{const nt=Be[$e-1],mt=Be[$e+1];He-nt<=De?mt-He<=De?Ze=He-nt>mt-He?mt:nt:Ze=nt:mt-He<=De&&(Ze=mt)}return Ze},V=(He,Re)=>He.map(Be=>{const{x:$e,y:Ze,next:nt,prev:mt}=Be,{x:xt,y:gt}=Re.apply({x:$e,y:Ze}),{x:wt,y:Zt}=Re.apply({x:$e+nt.x,y:Ze+nt.y}),{x:Ft,y:Gt}=Re.apply({x:$e+mt.x,y:Ze+mt.y});return{...Be,x:xt,y:gt,next:{x:wt,y:Zt},prev:{x:Ft,y:Gt}}}),M=(He,Re,De)=>{const{x:Be,y:$e}=He,{x:Ze,y:nt}=Re,mt="M"+Ze+" "+nt+" l"+De+" "+De+" l"+De+" "+-De+" l"+-De+" "+-De+" l"+-De+" "+De+" Z",gt="rotate("+Math.atan2($e-nt,Be-Ze)*180/Math.PI+" "+Ze+" "+nt+")";return{path:mt,rotate:gt}},D={prev:{x:-12,y:0},next:{x:12,y:0}},W=(He,Re)=>{if(He.length<3)return D;const De=He[Re],Be=Re===0?He[He.length-1]:He[Re-1],$e=Re===He.length-1?He[0]:He[Re+1];if(typeof $e.y!="number"||typeof Be.y!="number")return D;const Ze=Math.pow(($e.y-Be.y)**2+($e.x-Be.x)**2,.5),nt=Math.pow(($e.y-De.y)**2+($e.x-De.x)**2,.5),mt=Math.pow((De.y-Be.y)**2+(De.x-Be.x)**2,.5),xt=Ze*(nt/(nt+mt)),gt=($e.x-Be.x)/Ze,wt=($e.y-Be.y)/Ze,Zt=gt*(xt/2),Ft=wt*(xt/2);return{prev:{x:-Zt,y:-Ft},next:{x:Zt,y:Ft}}},F=(He,Re)=>{let De;if(He.x===0&&He.y===0&&Re.x===0&&Re.y===0)De=A.Straight;else if(He.x===-Re.x&&He.y===-Re.y)De=A.Mirrored;else{const Be=Math.atan2(He.y,He.x),$e=Math.pow(Re.y**2+Re.x**2,.5);Re.x===-Math.cos(Be)*$e&&Re.y===-Math.sin(Be)*$e?De=A.Asymmetric:De=A.Disconnected}return De},B=(He,Re,De)=>{let{x:Be,y:$e}=De;switch(He.type){case A.Mirrored:return Re==="prev"?{...He,prev:{x:Be,y:$e},next:{x:-Be,y:-$e}}:{...He,prev:{x:-Be,y:-$e},next:{x:Be,y:$e}};case A.Asymmetric:{const Ze=Math.atan2($e,Be);if(Re==="prev"){const nt=Math.pow(He.next.y**2+He.next.x**2,.5);return{...He,prev:{x:Be,y:$e},next:{x:-Math.cos(Ze)*nt,y:-Math.sin(Ze)*nt}}}else{const nt=Math.pow(He.prev.y**2+He.prev.x**2,.5);return{...He,prev:{x:-Math.cos(Ze)*nt,y:-Math.sin(Ze)*nt},next:{x:Be,y:$e}}}}case A.Disconnected:return{...He,[Re]:{x:Be,y:$e}}}},Y=(He,Re,De,Be,$e)=>{let{x:Ze,y:nt}=Re,{x:mt,y:xt}=De,{x:gt,y:wt}=Be,{x:Zt,y:Ft}=$e;const Gt=Ze*(1-He)*(1-He)*(1-He)+3*mt*He*(1-He)*(1-He)+3*gt*He*He*(1-He)+Zt*He*He*He,Dt=nt*(1-He)*(1-He)*(1-He)+3*xt*He*(1-He)*(1-He)+3*wt*He*He*(1-He)+Ft*He*He*He;return{x:Gt,y:Dt}},X=(He,Re)=>{let De;return He.type!==A.Straight&&Re.type===A.Straight?De=new(Q())(Re.x,Re.y,He.prev.x,He.prev.y,He.x,He.y):He.type===A.Straight&&Re.type!==A.Straight?De=new(Q())(Re.x,Re.y,Re.next.x,Re.next.y,He.x,He.y):De=new(Q())(Re.x,Re.y,Re.next.x,Re.next.y,He.prev.x,He.prev.y,He.x,He.y),De},G=(He,Re,De)=>{let Ze=!1;const nt={index:-1,splitPoint:null},{x:mt,y:xt}=He,gt=(Ft,Gt,Dt,Qt,Ct,yn,rn,Rt)=>{if(Qt-Gt===0&&Ct>Math.min(Ft,Dt)&&CtMath.min(Gt,Qt)&&ynMath.min(Gt,Qt)&&yn=-1){const To=Qt+(Ct-Dt)*(Gt-Qt)/(Ft-Dt);wt(To,Rt)}else{const To=Dt+(yn-Qt)*(Ft-Dt)/(Gt-Qt);Zt(To,Rt)}}},wt=(Ft,Gt)=>{Ft>=xt-8&&Ft<=xt+8&&(Ze=!0,nt.index=Gt,nt.splitPoint={x:mt,y:Ft,type:A.Straight,e1:{x:mt,y:Ft},e2:{x:mt,y:Ft}})},Zt=(Ft,Gt)=>{Ft>=mt-8&&Ft<=mt+8&&(Ze=!0,nt.index=Gt,nt.splitPoint={x:Ft,y:xt,type:A.Straight,e1:{x:Ft,y:xt},e2:{x:Ft,y:xt}})};for(let Ft=0;Ft({x:Ao.y,y:Ao.y-xt})));let ro=Dn[0],Bn=Rt.get(ro);if(Bn.x>=mt-8&&Bn.x<=mt+8){const{left:Ao,right:uo}=Rt.split(ro),[,Jo,$o]=Ao.points,[,po,us]=uo.points,hs={x:$o.x-Bn.x,y:$o.y-Bn.y},ht={x:po.x-Bn.x,y:po.y-Bn.y},Ht=F(hs,ht);To={x:Bn.x,y:Bn.y,e1:$o,e2:po,type:Ht,prevPointNextAssist:us,nextPointPrevAssist:Jo}}if(Dn=Rt.getUtils().roots(Rt.points.map(Ao=>({x:Ao.x,y:Ao.x-mt}))),ro=Dn[0],Bn=Rt.get(ro),Bn.y>=xt-8&&Bn.y<=xt+8){const{left:Ao,right:uo}=Rt.split(ro),[,Jo,$o]=Ao.points,[,po,us]=uo.points,hs={x:$o.x-Bn.x,y:$o.y-Bn.y},ht={x:po.x-Bn.x,y:po.y-Bn.y},Ht=F(hs,ht);mo={x:Bn.x,y:Bn.y,e1:$o,e2:po,type:Ht,prevPointNextAssist:us,nextPointPrevAssist:Jo}}To&&mo?(Ze=!0,nt.index=Ft,Z(To.x,To.y,mt,xt)((He-De)**2+(Re-Be)**2)**.5,J=(He,Re,De)=>{let{x:Be,y:$e}=De;const Ze=X(Re,He),nt=Ze.points[0],mt=Ze.points[Ze.order],xt=he(nt,{x:Be,y:$e},mt),gt=new(Q())(xt.S,xt.C1,xt.C2,xt.E),[,wt,Zt]=gt.points;return{next:wt,prev:Zt}},te=function(He,Re,De,Be,$e,Ze){He===void 0&&(He=2),$e===void 0&&($e=.5);const nt=Ze.projectionratio($e,He),mt=1-nt,xt={x:nt*Re.x+mt*Be.x,y:nt*Re.y+mt*Be.y},gt=Ze.abcratio($e,He);return{A:{x:De.x+(De.x-xt.x)/gt,y:De.y+(De.y-xt.y)/gt},B:De,C:xt,S:Re,E:Be}},he=(He,Re,De)=>{const Be=Q().getUtils(),$e=Be.getccenter(He,Re,De),Ze=Z(He.x,He.y,Re.x,Re.y),nt=Z(De.x,De.y,Re.x,Re.y),mt=Ze/(Ze+nt),{A:xt,B:gt,C:wt,S:Zt,E:Ft}=te(3,He,Re,De,mt,Be),Gt=(Math.atan2(Ft.y-Zt.y,Ft.x-Zt.x)-Math.atan2(gt.y-Zt.y,gt.x-Zt.x)+Math.PI*2)%(Math.PI*2),Dt=(Gt<0||Gt>Math.PI?-1:1)*Z(Zt.x,Zt.y,Ft.x,Ft.y)/3,Qt=mt*Dt,Ct=(1-mt)*Dt,yn=[{x:gt.x-10*(gt.y-$e.y),y:gt.y+10*(gt.x-$e.x)},{x:gt.x+10*(gt.y-$e.y),y:gt.y-10*(gt.x-$e.x)}],rn=Z(yn[0].x,yn[0].y,yn[1].x,yn[1].y),Rt=(yn[1].x-yn[0].x)/rn,Dn=(yn[1].y-yn[0].y)/rn,To={x:gt.x+Qt*Rt,y:gt.y+Qt*Dn},mo={x:gt.x-Ct*Rt,y:gt.y-Ct*Dn},{C1:ro,C2:Bn}=de(Zt,xt,Ft,To,mo,mt);return{S:Zt,E:Ft,C1:ro,C2:Bn}},de=(He,Re,De,Be,$e,Ze)=>{const nt={x:Re.x-(Re.x-Be.x)/(1-Ze),y:Re.y-(Re.y-Be.y)/(1-Ze)},mt={x:Re.x-(Re.x-$e.x)/Ze,y:Re.y-(Re.y-$e.y)/Ze},xt={x:He.x+(nt.x-He.x)/Ze,y:He.y+(nt.y-He.y)/Ze},gt={x:De.x+(mt.x-De.x)/(1-Ze),y:De.y+(mt.y-De.y)/(1-Ze)};return{C1:xt,C2:gt}};class Se extends t.PureComponent{render(){const{pointsData:Re,isHoverPointIndex:De="no no",selectedIndexList:Be,selectedAssistIndex:$e,onPointDoubleClick:Ze,onPointMouseEnter:nt,onPointMouseDown:mt,onMouseLeave:xt,onAssistMouseEnter:gt,onAssistMouseDown:wt}=this.props,Zt=[],Ft=[];Re.forEach((Dt,Qt)=>{Be.includes(Qt)||(Dt.type===A.Straight&&Zt.push(Qt),Dt.type!==A.Straight&&Ft.push(Qt))});const Gt=Zt.concat(Ft).concat(Be);return(0,_.jsx)(_.Fragment,{children:Gt.map(Dt=>{const Qt=Re[Dt];if(!Qt)return null;const{x:Ct,y:yn,next:rn,prev:Rt,type:Dn}=Qt,To=Be.includes(Dt),mo=(To||Be.includes(Dt-1))&&Dn!==A.Straight,ro=(To||Be.includes(Dt+1))&&Dn!==A.Straight,Bn=To&&$e===void 0,Ao=+De===Dt,[uo,Jo]=De.split(" "),$o=uo==="prev"&&+Jo===Dt,po=uo==="next"&&+Jo===Dt,us=To&&$e==="prev",hs=To&&$e==="next",ht="M"+Ct+" "+yn+" L"+Rt.x+" "+Rt.y+" Z",Ht="M"+Ct+" "+yn+" L"+rn.x+" "+rn.y+" Z",{path:nn,rotate:en}=M(Qt,rn,3),{path:Un,rotate:Kn}=M(Qt,Rt,3);return(0,_.jsxs)(t.Fragment,{children:[mo&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("path",{className:K()("assist-line",{"is-assist-line-selected":us||$o}),d:ht}),(0,_.jsx)("path",{className:K()("assist-point",{"is-assist-point-selected":us},{"is-assist-point-hover":$o}),d:Un,transform:Kn}),(0,_.jsx)("circle",{className:"assist-point-hotzone",cx:Rt.x,cy:Rt.y,r:6,"data-number":"prev "+Dt,onMouseEnter:gt,onMouseDown:Hn=>wt(Hn,Dt,"prev"),onMouseLeave:xt})]}),ro&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("path",{className:K()("assist-line",{"is-assist-line-selected":hs||po}),d:Ht}),(0,_.jsx)("path",{className:K()("assist-point",{"is-assist-point-selected":hs},{"is-assist-point-hover":po}),d:nn,transform:en}),(0,_.jsx)("circle",{className:"assist-point-hotzone",cx:rn.x,cy:rn.y,r:8,"data-number":"next "+Dt,onMouseEnter:gt,onMouseDown:Hn=>wt(Hn,Dt,"next"),onMouseLeave:xt})]}),(0,_.jsx)("circle",{className:K()("vector-point",{"is-selected":Bn},{"is-hover":Ao}),cx:Ct,cy:yn,r:Bn?5:4}),(0,_.jsx)("circle",{className:"vector-point-hotzone",cx:Ct,cy:yn,r:8,"data-number":Dt,onDoubleClick:Ze,onMouseEnter:Hn=>nt(Dt,Hn),onMouseLeave:()=>xt(Dt),onMouseDown:Hn=>mt(Hn,Dt)})]},Dt)})})}}class xe extends t.PureComponent{render(){const{adjacentPoints:Re}=this.props;return(0,_.jsx)(_.Fragment,{children:Re.map((De,Be)=>{const{x:$e,y:Ze,next:nt,prev:mt,type:xt}=De;if(xt===A.Straight)return null;const gt="M"+$e+" "+Ze+" L"+mt.x+" "+mt.y+" Z",wt="M"+$e+" "+Ze+" L"+nt.x+" "+nt.y+" Z",{path:Zt,rotate:Ft}=M(De,nt,3),{path:Gt,rotate:Dt}=M(De,mt,3);return(0,_.jsxs)(t.Fragment,{children:[(0,_.jsx)("path",{className:"assist-line",d:gt}),(0,_.jsx)("path",{className:"assist-point",d:Gt,transform:Dt}),(0,_.jsx)("path",{className:"assist-line",d:wt}),(0,_.jsx)("path",{className:"assist-point",d:Zt,transform:Ft}),(0,_.jsx)("circle",{className:"vector-point",cx:$e,cy:Ze,r:4})]},Be+"-"+$e+"-"+Ze)})})}}var be=e(12583),ie=e(27480),oe=e(67787),ue=e(69594);const ve=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;}"],ue.M.vectorCreate,ue.M.vectorAdd,ue.M.vectorConnect,ue.M.vectorAssistPointMove,ue.M.vectorEdgeDrag,ue.M.vectorAnchorPointSwitch,ue.M.default,ue.M.vectorAssistPointMove,ue.M.vectorAssistPointAsymmetricHover,ue.M.vectorAssistPointAsymmetricMove,ue.M.vectorEdgeDrag),re="Vector";class fe extends t.PureComponent{constructor(){var Re;super(...arguments),Re=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,$e=this.$svgRef.contains(De.target);return!Be&&$e}),(0,S.A)(this,"onSaveVector",function(De,Be){Be===void 0&&(Be=!1);const Ze={vector:{...Re.props.widget.vector,points:[...De]}};Re.props.widget.type!==re&&(Ze.type=re),Re.props.onChangeProps(Ze,Be)}),(0,S.A)(this,"onSaveSelectedIndex",function(De,Be){Be===void 0&&(Be=void 0),Re.props.onChangeState(De,Be)}),(0,S.A)(this,"setCursor",function(De,Be){Be===void 0&&(Be=De),Re.state.cursorStyle!==Be&&Re.setState({cursorStyle:De})}),(0,S.A)(this,"setAssistPointCursor",function(De,Be){Be===void 0&&(Be="move"),De.metaKey||De.ctrlKey?Re.setCursor(Be+"-assist-asymmetric-cursor"):Re.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:$e},widget:{vector:Ze,worldBoundingBox:{transform:nt}},handleAdsorption:mt,handleCombineMarkChange:xt,handleCombineChange:gt}=this.props,{points:wt,closed:Zt}=Ze,{showVirtualPoint:Ft}=this.state;if(xt&&xt("vector-editor-drag-point"),(Be===0||Be===wt.length-1)&&this.setState({vx:De.offsetX,vy:De.offsetY}),De.shiftKey){N(Be,$e),this.onSaveSelectedIndex($e);return}if($e.length<2&&$e[0]!==Be&&this.onSaveSelectedIndex([Be]),!Zt&&(Be===0||Be===wt.length-1)&&$e[0]+Be===wt.length-1&&wt.length>1&&!Ft){const Rt={...Ze,closed:!0};this.props.onChangeProps({vector:Rt})}const Gt=[...wt];let Dt=!1;const Qt=$e.length===1?[Be]:$e;let Ct=0;const yn=Rt=>{if(Ct<5)return Ct++;if(this.isDragging=!0,this.checkIsContains(Rt)){Dt=!0,this.setCursor("move-cursor");const To=mt($.Z.xy(Rt.offsetX,Rt.offsetY),nt),{x:mo,y:ro}=$.Z.subtract(To,wt[Be]);Qt.forEach(Bn=>{const{x:Ao,y:uo}=wt[Bn];Gt[Bn]={...Gt[Bn],x:Ao+mo,y:uo+ro}}),this.onSaveVector(Gt,!0)}},rn=()=>{const{isOutside:Rt}=this.state;this.isDragging=!1,this.setCursor(""),!Rt&&Dt&&this.onSaveVector(Gt,!1),!Rt&&!Dt&&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,$e)=>{if(De.button===1)return;De.stopPropagation();const{widget:{vector:{points:Ze},worldBoundingBox:{transform:nt}},handleAdsorption:mt,handleCombineMarkChange:xt,handleCombineChange:gt}=this.props;xt&&xt("vector-editor-drag-assist-point"),!this.isCreatBezierCurve&&this.setAssistPointCursor(De,"move"),this.onSaveSelectedIndex([Be],$e),(Be===0||Be===Ze.length-1)&&this.setState({vx:De.offsetX,vy:De.offsetY});const{x:wt,y:Zt}=Ze[Be],Ft=[...Ze];let Gt=0;const Dt=Ct=>{if(Gt<5)return Gt++;if(this.isCreatBezierCurve=!0,this.checkIsContains(Ct)){const rn=mt($.Z.xy(Ct.offsetX,Ct.offsetY),nt),Rt=B(Ft[Be],$e,{x:rn.x-wt,y:rn.y-Zt});this.setAssistPointCursor(Ct,"move"),Ft[Be]=Rt,this.onSaveVector(Ft,!0)}},Qt=()=>{const{isOutside:Ct}=this.state;this.isCreatBezierCurve=!1,this.setCursor(""),!Ct&&this.onSaveVector(Ft,!1),document.removeEventListener("mousemove",Dt),document.removeEventListener("mouseup",Qt),gt&>("vector-editor-drag-assist-point")};document.addEventListener("mousemove",Dt),document.addEventListener("mouseup",Qt)}),(0,S.A)(this,"changeType",()=>{const{widget:{vector:De},vectorEditor:{selectedIndex:Be}}=this.props,{points:$e}=De;if(Be.length!==1)return;let Ze=$e[Be[0]];if(Ze.type===A.Straight){const{prev:mt,next:xt}=W($e,Be[0]);Ze={...Ze,type:A.Mirrored,prev:mt,next:xt}}else Ze={...Ze,type:A.Straight,prev:$.Z.zero,next:$.Z.zero};const nt=[...$e];nt[Be[0]]=Ze,this.props.onChangeProps({vector:{...De,points:[...nt]}})}),(0,S.A)(this,"handleMouseDown",De=>{const{widget:{vector:Be,worldBoundingBox:{transform:$e}},vectorEditor:{selectedIndex:Ze},rect:nt,boundingBoxTransform:mt,handleClientPosition:xt,handleCombineMarkChange:gt,handleCombineChange:wt}=this.props,{points:Zt,closed:Ft}=Be,{showVirtualPoint:Gt,hoverIndex:Dt,vx:Qt,vy:Ct,px:yn,py:rn,splitPoint:Rt}=this.state,Dn=xt(De),{x:To,y:mo}=mt.inverted().apply(Dn);if(Qt===null&&Ct===null)return;const{x:ro,y:Bn}=mt.inverted().apply({x:Qt,y:Ct});if(De.metaKey||De.ctrlKey){this.dragLine();return}const Ao=!Ft&&Ze[0]!==0&&Ze[0]!==Zt.length-1;if(ie.rw.contains(nt,$.Z.xy(To,mo))&&(Ft||Ao)&&!Gt){this.props.onClearSelection();return}if(!Gt&&(Ft||Ao)||Ze.length===0){this.props.onExit();return}let uo,Jo=[...Zt];const $o={type:A.Straight,x:ro,y:Bn,next:$.Z.zero,prev:$.Z.zero,radius:0};if(Gt&&Dt!==void 0){const ht=this.changeAdjacentPointsWhenCreate(yn,rn,Dt,Rt);this.changePointPositionAfterCreate(Dt+1,ht);return}if(gt&>("vector-editor-drag"),Ze[0]===0&&Zt.length>1?(Jo=[$o,...Zt],uo=0):(Jo=[...Zt,$o],uo=Zt.length),Zt.find(ht=>ht.x===ro&&ht.y===Bn))return;this.onSaveVector(Jo,!0),this.onSaveSelectedIndex([uo]),this.setState({hoverPoint:uo});let po=0;const us=ht=>{if(ht.stopPropagation(),ht.stopImmediatePropagation(),ht.preventDefault(),po<5)return po++;const Ht={x:ht.offsetX,y:ht.offsetY},nn=mt.inverted().apply({x:Ht.x,y:Ht.y}),{x:en,y:Un}=$e.apply(nn),{x:Kn,y:Hn}=$e.inverted().apply({x:Math.round(en),y:Math.round(Un)});this.isCreatBezierCurve=!0;const bo="next";this.onSaveSelectedIndex([uo],bo);const zn={x:Kn-ro,y:Hn-Bn};let Vn;zn.x===0&&zn.y===0||Math.abs(Dn.x-ht.clientX)<6&&Math.abs(Dn.y-ht.clientY)<6?Vn={...$o,type:A.Straight}:(Vn={...$o,type:A.Mirrored},Vn=B(Vn,bo,zn)),Jo[uo]=Vn,this.onSaveVector(Jo,!0)},hs=()=>{this.isCreatBezierCurve=!1,this.onSaveSelectedIndex([uo]),this.props.onMouseUp(),document.removeEventListener("mousemove",us),document.removeEventListener("mouseup",hs),wt&&wt("vector-editor-drag")};document.addEventListener("mousemove",us),document.addEventListener("mouseup",hs)}),(0,S.A)(this,"dragLine",()=>{const{widget:{vector:{points:De}},boundingBoxTransform:Be,viewport:$e,handleCombineMarkChange:Ze,handleCombineChange:nt}=this.props,{hoverIndex:mt}=this.state;if(mt===void 0)return;Ze&&Ze("vector-editor-drag-line");const xt=[...De],gt=mt===De.length-1?0:mt+1,wt=xt[mt],Zt=xt[gt],Ft=V([wt],Be)[0],Gt=V([Zt],Be)[0],Dt=[Ft,Gt];this.setState({cursorStyle:"drag-cursor",showVirtualPoint:!1,adjacentPoints:Dt});const Qt=yn=>{const{showVirtualPoint:rn,isDragLineByCmd:Rt}=this.state;!Rt&&this.setState({isDragLineByCmd:!0}),rn&&this.setState({showVirtualPoint:!1}),this.setCursor("drag-cursor");const Dn=yn.clientX-$e.size.x,To=yn.clientY-$e.size.y,{next:mo,prev:ro}=J(Ft,Gt,{x:Dn,y:To}),{x:Bn,y:Ao}=Be.inverted().apply(mo),{x:uo,y:Jo}=Be.inverted().apply(ro),$o={x:Bn-wt.x,y:Ao-wt.y},po={x:uo-Zt.x,y:Jo-Zt.y},us=F(wt.prev,$o),hs=F(po,Zt.next);xt[mt]={...wt,type:us,next:$o},xt[gt]={...Zt,type:hs,prev:po},this.onSaveVector(xt,!0)},Ct=()=>{this.setState({isDragLineByCmd:!1,cursorStyle:"",adjacentPoints:[]}),this.props.onMouseUp(),document.removeEventListener("mousemove",Qt),document.removeEventListener("mouseup",Ct),nt&&nt("vector-editor-drag-line")};document.addEventListener("mousemove",Qt),document.addEventListener("mouseup",Ct)}),(0,S.A)(this,"changeAdjacentPointsWhenCreate",(De,Be,$e,Ze)=>{const{widget:{vector:nt},boundingBoxTransform:mt}=this.props,{points:xt}=nt,{e1:gt,e2:wt,prevPointNextAssist:Zt,nextPointPrevAssist:Ft,type:Gt}=Ze,{x:Dt,y:Qt}=mt.inverted().apply({x:De,y:Be});let Ct;const yn=[...xt];if(Gt===A.Straight)Ct={type:A.Straight,x:Dt,y:Qt,prev:$.Z.zero,next:$.Z.zero,radius:0};else{const{x:rn,y:Rt}=mt.inverted().apply(gt),{x:Dn,y:To}=mt.inverted().apply(wt),mo=mt.inverted().apply(Zt),ro=mt.inverted().apply(Ft);Ct={x:Dt,y:Qt,type:Gt,radius:0,prev:{x:rn-Dt,y:Rt-Qt},next:{x:Dn-Dt,y:To-Qt}};const Bn=$e===xt.length-1?0:$e+1,Ao=yn[$e],uo=yn[Bn],Jo={x:ro.x-Ao.x,y:ro.y-Ao.y},$o={x:mo.x-uo.x,y:mo.y-uo.y},po=F(Ao.prev,Jo),us=F($o,uo.next);yn[$e]={...Ao,type:po,next:Jo},yn[Bn]={...uo,type:us,prev:$o}}return yn.splice($e+1,0,Ct),this.onSaveVector(yn),this.onSaveSelectedIndex([$e+1]),yn}),(0,S.A)(this,"changePointPositionAfterCreate",(De,Be)=>{this.setCursor("");const{widget:{worldBoundingBox:{transform:$e}},handleAdsorption:Ze,handleCombineMarkChange:nt,handleCombineChange:mt}=this.props;nt&&nt("vector-editor-drag-create-point");let xt=!1;const gt=Zt=>{if(this.isDragging=!0,this.checkIsContains(Zt)){xt=!0;const Gt=Ze($.Z.xy(Zt.offsetX,Zt.offsetY),$e);Be[De]={...Be[De],...Gt},this.onSaveVector(Be,!0)}},wt=()=>{const{isOutside:Zt}=this.state;this.isDragging=!1,!Zt&&xt&&this.onSaveVector(Be,!1),!Zt&&!xt&&this.onSaveSelectedIndex([De]),document.removeEventListener("mousemove",gt),document.removeEventListener("mouseup",wt),mt&&mt("vector-editor-drag-create-point")};document.addEventListener("mousemove",gt),document.addEventListener("mouseup",wt)}),(0,S.A)(this,"handleVirtualPointUpdate",(De,Be)=>{const{widget:{vector:{points:$e,closed:Ze},worldBoundingBox:{transform:nt}},vectorEditor:{selectedIndex:mt,selectedAssistIndex:xt},boundingBoxTransform:gt,handleAdsorption:wt,handleClientPosition:Zt}=this.props,{cursorStyle:Ft,showVirtualPoint:Gt,isHoverPointIndex:Dt,isOutside:Qt,isDragLineByCmd:Ct}=this.state,yn=Zt(De);if(this.isCreatBezierCurve&&xt!==void 0){this.setState({showVirtualPoint:!1});return}this.setState({isDragLineByCmd:!1}),Gt&&this.setCursor("add-cursor"),Qt&&this.setState({isOutside:!1});let rn,Rt;const Dn=G(yn,Be,Ze);if(Dn){const To=Be[Dn.index-1]?Dn.index-1:Be.length-1;if(De.shiftKey){const mo=Be[Dn.index],ro=Be[To],Bn=Y(.5,ro,ro.next,mo.prev,mo);rn=Bn.x,Rt=Bn.y;const Ao=G({x:rn,y:Rt},Be,Ze);this.setState({splitPoint:Ao==null?void 0:Ao.splitPoint})}else rn=Dn.splitPoint.x,Rt=Dn.splitPoint.y,this.setState({splitPoint:Dn.splitPoint});if(this.setState({showVirtualPoint:!0,px:rn,py:Rt,hoverIndex:To}),De.metaKey||De.ctrlKey){this.setState({showVirtualPoint:!1,isDragLineByCmd:!0}),this.setCursor("hover-cursor","drag-cursor");return}}else Ft!==""&&(Gt||Ct)&&this.setState({showVirtualPoint:!1,cursorStyle:""});if(!(mt.length!==1||Ze||this.isCreatBezierCurve)&&(mt[0]===0||mt[0]===$e.length-1)&&!Ze&&!Gt){if(Ft==="line-cursor")return;Dt===void 0&&!this.isDragging&&this.setCursor("init-cursor");const To=yn.x,mo=yn.y;if(De.shiftKey){const{x:ro,y:Bn}=gt.apply({x:$e[mt[0]].x,y:$e[mt[0]].y}),Ao=(mo-Bn)/(To-ro);Math.abs(Ao)Math.tan(67.5*Math.PI/180)?this.setState({vx:ro,vy:mo}):Ao<0?this.setState({vx:(To-mo+ro+Bn)*.5,vy:(mo-To+ro+Bn)*.5}):this.setState({vx:(To+mo+ro-Bn)*.5,vy:(To+mo-ro+Bn)*.5})}else{const ro=wt(yn,nt),Bn=gt.apply(ro);this.setState({vx:Bn.x,vy:Bn.y})}}}),(0,S.A)(this,"handleMouseOverPoint",(De,Be)=>{const{widget:{vector:{closed:$e,points:Ze}},vectorEditor:{selectedIndex:nt},boundingBoxTransform:mt}=this.props,{isHoverPointIndex:xt}=this.state,{number:gt}=Be.target.dataset,wt=(De===0||De===Ze.length-1)&&nt[0]+De===Ze.length-1;if(Be.metaKey||Be.ctrlKey)this.setState({cursorStyle:"trans-cursor"});else if(!$e&&wt&&Ze.length>1){const{x:Zt,y:Ft}=mt.apply({x:Ze[De].x,y:Ze[De].y});this.setState({vx:Zt,vy:Ft,cursorStyle:"line-cursor"})}xt!==gt&&this.setState({isHoverPointIndex:gt})}),(0,S.A)(this,"handleMouseOverAssist",De=>{const{isHoverPointIndex:Be}=this.state,{number:$e}=De.target.dataset;Be!==$e&&this.setState({isHoverPointIndex:$e}),!this.isDragging&&!this.isCreatBezierCurve&&this.setAssistPointCursor(De,"hover")}),(0,S.A)(this,"handleMouseLeave",function(De){De===void 0&&(De=-1);const{vectorEditor:{selectedIndex:Be}}=Re.props;Re.isDragging||Re.isCreatBezierCurve?Re.setState({cursorStyle:"move-cursor",isHoverPointIndex:void 0}):(!Re.isDragging&&!Re.isCreatBezierCurve||Be[0]!==De)&&Re.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(Re,De){if(!Re.widget)return null;if(!o()(Re.boundingBoxTransform,De.boundingBoxTransform)&&De.cursorStyle!=="init-cursor"){const{widget:{vector:{points:Be,closed:$e}},boundingBoxTransform:Ze}=Re,{px:nt,py:mt,hoverIndex:xt,showVirtualPoint:gt}=De;if(xt===void 0||xt<0||xt>Be.length-1)return null;const wt=xt===Be.length-1?0:xt+1,Zt=[Be[xt],Be[wt]],Ft=V(Zt,Ze);if(!G({x:nt,y:mt},Ft,$e))return!$e&&!gt?{...De,boundingBoxTransform:Ze,showVirtualPoint:!1,cursorStyle:"init-cursor"}:{...De,boundingBoxTransform:Ze,showVirtualPoint:!1,cursorStyle:""}}return null}render(){if(!this.props.widget)return null;const{shortcutsSheet:Re,svgStyle:De,wrapperStyle:Be,widget:{vector:{points:$e,closed:Ze},worldBoundingBox:{transform:nt}},vectorEditor:{selectedIndex:mt,selectedAssistIndex:xt},boundingBoxTransform:gt,mapX:wt,mapY:Zt,viewport:Ft}=this.props,{px:Gt,py:Dt,vx:Qt,vy:Ct,hoverIndex:yn,showVirtualPoint:rn,cursorStyle:Rt,isOutside:Dn,hoverPoint:To,isHoverPointIndex:mo,isDragLineByCmd:ro,adjacentPoints:Bn}=this.state,Ao=To!==mt[0]&&To!==void 0,uo=mt.length===1&&(mt[0]===0||mt[0]===$e.length-1),Jo=$e.length===1&&xt,$o=uo&&!Ze&&!this.isCreatBezierCurve&&!Dn&&!rn&&(mo===void 0||Rt==="line-cursor"||Ao)&&!Jo,po=mt.length===1&&(this.isDragging||this.isCreatBezierCurve||Rt==="init-cursor")&&!Jo,us=V($e,gt);return(0,_.jsxs)(ve,{className:Rt+" vector-editor-container",style:Be,children:[(0,_.jsx)(be.Cd,{sheet:Re}),(0,_.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,_.jsx)(O,{showVirtualPoint:ro||rn,pointsData:us,hoverIndex:yn,closed:Ze}),po&&(0,_.jsx)(j,{closed:this.isCreatBezierCurve||Ze,vx:Qt,vy:Ct,transform:nt,boundingBoxTransform:gt,selectedIndex:mt,selectedAssistIndex:xt,pointsData:us,mapX:wt,mapY:Zt,viewport:Ft}),(0,_.jsx)(I,{showVirtualPoint:rn,showVirtualLine:$o,px:Gt,py:Dt,vx:Qt,vy:Ct,pointsData:us,selectedIndex:mt}),(0,_.jsx)(Se,{selectedIndexList:mt,onMouseLeave:this.handleMouseLeave,onPointDoubleClick:this.changeType,onPointMouseEnter:this.handleMouseOverPoint,onPointMouseDown:this.changePointPosition,onAssistMouseEnter:this.handleMouseOverAssist,onAssistMouseDown:this.changeAssistPointPosition,pointsData:us,isHoverPointIndex:mo,selectedAssistIndex:xt}),(0,_.jsx)(xe,{adjacentPoints:Bn})]})]})}}(0,S.A)(fe,"defaultProps",{viewport:k.L.identity(),svgStyle:{left:0,top:0},wrapperStyle:{left:0,top:0},onMouseUp:()=>null,handleClientPosition:He=>$.Z.xy(He.clientX,He.clientY)});var we=e(23536),Te=e(8580);const Ie=(He,Re,De)=>{const Be=new Map,$e=new Map,Ze=[];De.map(xt=>{const gt=xt.props.complex||{a:1,b:0,c:0,d:1},{transform:wt,rect:Zt}=getWorldBoundingBox(xt.key),{x:Ft,y:Gt,w:Dt,h:Qt}=Zt;let Ct=[],yn=[];if(He&&Re===xt.ref){if(He.selectedIndex&&He.selectedIndex.length>0){const{points:Dn,closed:To}=xt.props.vector,{selectedIndex:mo}=He;Dn.forEach((ro,Bn)=>{const Ao=mo.includes(Bn);if(He.selectedIndex.length===1){const uo=Ao&&(Bn===0||Bn===Dn.length-1)&&!To;(!Ao||uo)&&Ze.push(ro)}else Ao||Ze.push(ro)})}}else Ct=[Ft,Ft+Dt/2,Ft+Dt],yn=[Gt,Gt+Qt/2,Gt+Qt];Ct=Ct.map(Dn=>Math.round(wt.apply(Transform.parse({complex:gt,x:Dn,y:0})).x)),yn=yn.map(Dn=>Math.round(wt.apply(Transform.parse({complex:gt,x:0,y:Dn})).y)),Ct.forEach(Dn=>Be.has(Dn)?Be.set(Dn,[Math.max(...yn,...Be.get(Dn)),Math.min(...yn,...Be.get(Dn))]):Be.set(Dn,[Math.max(...yn),Math.min(...yn)])),yn.forEach(Dn=>$e.has(Dn)?$e.set(Dn,[Math.max(...Ct,...$e.get(Dn)),Math.min(...Ct,...$e.get(Dn))]):$e.set(Dn,[Math.max(...Ct),Math.min(...Ct)]));const rn={},Rt={};Ze.forEach(Dn=>{let{x:To,y:mo}=Dn;const{x:ro,y:Bn}=wt.apply(Transform.parse({complex:gt,x:To,y:mo}));if(rn[ro]){const[Ao,uo]=rn[ro];rn[ro]=[Math.max(Ao,Bn),Math.min(uo,Bn)]}else rn[ro]=[Bn,Bn];if(Rt[Bn]){const[Ao,uo]=Rt[Bn];Rt[Bn]=[Math.max(Ao,ro),Math.min(uo,ro)]}else Rt[Bn]=[ro,ro]}),Object.keys(rn).forEach(Dn=>Be.set(+Dn,rn[+Dn])),Object.keys(Rt).forEach(Dn=>$e.set(+Dn,Rt[+Dn]))});const nt=[...Be.keys()],mt=[...$e.keys()];return{mapX:Be,mapY:$e,listX:nt,listY:mt}},le="Vector",me=(He,Re)=>{const{selectedIndex:De,selectedAssistIndex:Be}=He;if(De.length!==1||Be===void 0)return{};const $e=Re.points[De[0]].type;if([PointType.Mirrored,PointType.Asymmetric].includes($e)){const Ze=[...Re.points];return Ze[De[0]].type=PointType.Disconnected,{vector:{...Re,points:[...Ze]}}}return{}},Pe=He=>({vectorEditor:{selectedIndex:new Array(He.points.length).fill(null).map((De,Be)=>Be),selectedAssistIndex:void 0}}),pe=He=>({vector:{...He,closed:!He.closed}}),ke=(He,Re)=>{const De=Re.points;if(De.length===1)return{};const{selectedIndex:Be}=He;return{vectorEditor:{selectedIndex:[Be[0]===De.length-1?0:Be[0]+1],selectedAssistIndex:void 0}}},We=(He,Re,De,Be)=>{let $e={};const Ze=[...De.points];if(He!==le&&($e={type:le}),Ze.length===1)return Be(),!1;{const nt={vectorEditor:{selectedIndex:[0],selectedAssistIndex:void 0}};return Ze.splice(Re.selectedIndex[0],1),$e={...$e,vector:{...De,points:Ze}},{props:$e,mode:nt}}},Ee=(He,Re,De)=>{const{selectedIndex:Be}=Re,$e=[...De.points];if(He===PointType.Straight)$e[Be[0]]={...$e[Be[0]],type:He,prev:Vec2.zero,next:Vec2.zero};else{const{prev:Ze,next:nt}=getInitAssistPoint($e,Be[0]);$e[Be[0]]={...$e[Be[0]],type:He,prev:Ze,next:nt}}return{vector:{...De,points:[...$e]}}},Ae=(He,Re,De,Be)=>(He!==le?De():Re.points.length===1?Be():De(),!1),Ce=(He,Re,De,Be,$e)=>{const{key:Ze,selectedIndex:nt}=He;return nt.length>0?{vectorEditor:{key:Ze,selectedIndex:[],selectedAssistIndex:void 0}}:Ae(Re,De,Be,$e)},_e=(He,Re,De,Be,$e)=>{const{selectedIndex:Ze,selectedAssistIndex:nt}=De,{points:mt}=Be;if(Ze.length<1)return{};const xt=[...mt];if(Ze.length===1&&nt){const{x:gt,y:wt}=xt[Ze[0]],Zt=xt[Ze[0]][nt],{x:Ft,y:Gt}=$e.clone().apply({x:gt+Zt.x,y:wt+Zt.y});let Dt;He==="x"&&(Dt={x:Ft+Re,y:Gt}),He==="y"&&(Dt={x:Ft,y:Gt+Re});const Qt=$e.inverted().apply(Dt);xt[Ze[0]]=getPointDataByAssistPosition(xt[Ze[0]],nt,{x:Qt.x-gt,y:Qt.y-wt})}else He==="x"&&Ze.map(gt=>{const wt=xt[gt],{x:Zt,y:Ft}=$e.apply(wt),{x:Gt,y:Dt}=$e.inverted().apply({x:Zt+Re,y:Ft});xt[gt]={...wt,x:Gt,y:Dt}}),He==="y"&&Ze.map(gt=>{const wt=xt[gt],{x:Zt,y:Ft}=$e.apply(wt),{x:Gt,y:Dt}=$e.inverted().apply({x:Zt,y:Ft+Re});xt[gt]={...wt,x:Gt,y:Dt}});return{vector:{...Be,points:[...xt]}}};var Ge=e(44115),Xe=e(38047);const Ue=(He,Re)=>!Re||Re===0?0:Re/Math.tan(He/2);function pt(He,Re){return(He%Re+Re)%Re}const Ye=(He,Re)=>Re*4/3*Math.tan((Math.PI-He)/4),Qe=(He,Re,De)=>{const $e=He.getLUT(100);let Ze=0,nt=1;for(;Ze{const nt=[],mt=[];if(He.forEach((Jo,$o)=>{if($o===He.length-1&&!Ze){nt.push([]),mt.push([]);return}const po=pt($o-1,He.length);if(Jo.radius>0&&$o!==0){const hs=nt[po],ht=Re[$o],Ht=He[$o].radius*$e,nn=De[$o]*$e,en=Be[$o],Un=Ye(en,Ht),Kn=Qe(hs,hs.length()-nn,!1),Hn=Qe(ht,nn,!0),bo=hs.split(Kn),zn=ht.split(Hn);nt[po]=bo.left,nt.push(zn.right);const Vn=nt[po].points,Rn=Vn[Vn.length-1],wo=nt[$o].points[0],dn=$.Z.unitization(nt[po].derivative(1)),pn=$.Z.add(Rn,$.Z.mul(dn,Un)),ho=$.Z.unitization(nt[$o].derivative(0)),Oo=$.Z.add(wo,$.Z.mul(ho,-Un));mt.push([Rn,pn,Oo,wo])}else{const hs=[],ht=Re[$o];mt.push(hs),nt.push(ht)}}),!Ze||!He[0].radius)return{radiusC:mt,splitC:nt};const xt=He.length-1,gt=nt[xt],wt=nt[0],Zt=He[0].radius*$e,Ft=De[0]*$e,Gt=Be[0],Dt=Ye(Gt,Zt),Qt=Qe(gt,gt.length()-Ft,!1),Ct=Qe(wt,Ft,!0),yn=gt.split(Qt),rn=wt.split(Ct);nt[xt]=yn.left,nt[0]=rn.right;const Rt=nt[xt].points,Dn=Rt[Rt.length-1],mo=nt[0].points[0],ro=$.Z.unitization(nt[xt].derivative(1)),Bn=$.Z.add(Dn,$.Z.mul(ro,Dt)),Ao=$.Z.unitization(nt[0].derivative(0)),uo=$.Z.add(mo,$.Z.mul(Ao,-Dt));return mt[0]=[Dn,Bn,uo,mo],{radiusC:mt,splitC:nt}},tt=He=>{const{points:Re,closed:De}=He,Be=[],$e=[],Ze=[],nt=[],mt=1e-5;for(let gt=0;gt{const Zt=pt(wt+1,Re.length),Ft=Math.min(Math.abs(gt/(Ze[wt]+Ze[Zt])),1);return isNaN(Ft)?1:Ft}));return lt(Re,Be,Ze,nt,xt,De)},qe=He=>He.every(De=>De.type===PointType.Straight)&&(new Set(He.map(De=>De.x)).size===1||new Set(He.map(De=>De.y)).size===1),et=He=>{let Re="";return He.forEach((De,Be)=>{Be===0?Re+="M "+De.x+" "+De.y+" ":Re+="L "+De.x+" "+De.y+" "}),Re},st=He=>{let Re="";if(!He)return Re;const{points:De,closed:Be}=He,$e=tt(He),{radiusC:Ze,splitC:nt}=$e;if(nt[0].length===0)return Re;if(De[0].radius&&Be){const mt=Ze[0][0];Re+="M "+mt.x+" "+mt.y+" "}else Re+="M "+De[0].x+" "+De[0].y+" ";for(let mt=0;mt{const{hotAttr:{vector:De}}=sdkStore.getHotItem(He),Be=De||Re,$e=sdkStore.getHotInnerMatrix(He),Ze=new MutableTransform($e.a,$e.b,$e.c,$e.d,$e.tx,$e.ty);if(!Be)return Ze;const{x:nt,y:mt}=ot(Be),xt=Ze.clone().applyWithoutXY({x:-nt,y:-mt});return Ze.clone().translate(xt)},ct="position: fixed; top: -9999px; left: -9999px",rt="vector-sample";let At;const ot=He=>{if(!At||!document.getElementById(rt)){const Be="http://www.w3.org/2000/svg",$e=document.createElementNS(Be,"svg"),Ze=document.createElementNS(Be,"path");$e.appendChild(Ze),$e.setAttribute("style",ct),$e.setAttribute("id",rt),document.body.appendChild($e),At=Ze}const Re=st(He);At.setAttributeNS(null,"d",Re);const De=At.getBBox();return{x:De.x,y:De.y,w:Math.max(De.width,1),h:Math.max(De.height,1)}},Tt=He=>{const{x:Re,y:De}=ot(He),Be=new MutableTransform(1,0,0,1,-Re,-De);return He.points.map($e=>{const{x:Ze,y:nt,next:mt,prev:xt}=$e,{x:gt,y:wt}=Be.apply({x:Ze,y:nt});return{...$e,x:gt,y:wt,next:mt,prev:xt}})},ft=He=>{var Re;let{key:De,vector:Be}=He;const $e=sdkStore.getHotInnerMatrix(De),{r:Ze}=sdkStore.getHotBound(De),{hotAttr:{vector:nt,borderRadiusIsVisible:mt}}=sdkStore.getHotItem(De),xt=ot({...nt,points:nt==null||(Re=nt.points)==null?void 0:Re.map(Bn=>({...Bn,radius:mt?Bn.radius:0}))}),gt=ot(Be),wt=new Ge.h($e.a,$e.b,$e.c,$e.d,$e.tx,$e.ty),Zt=wt.clone().applyWithoutXY({x:-xt.x,y:-xt.y}),Ft=wt.clone().applyWithoutXY({x:-gt.x,y:-gt.y}),Gt=$e.tx+Zt.x-Ft.x,Dt=$e.ty+Zt.y-Ft.y,{w:Qt,h:Ct}=gt,yn=(0,Xe.EQ)(Ze),rn=Math.sin(yn)*.5,Rt=Math.cos(yn)*.5,Dn=Gt-Ct*rn+Qt*Rt,To=Dt+Ct*Rt+Qt*rn,{x:mo,y:ro}=sdkStore.toAttrXY({x:Dn,y:To},De);return{w:Qt,h:Ct,x:mo,y:ro}},Nt=He=>{let{key:Re,vector:De}=He;const Be=sdkStore.getHotInnerMatrix(Re),{r:$e}=sdkStore.getHotBound(Re),{hotAttr:{elbow:{dPathList:Ze}}}=sdkStore.getHotItem(Re),mt=ot({closed:!1,points:Ze}),xt=ot(De),gt=new MutableTransform(Be.a,Be.b,Be.c,Be.d,Be.tx,Be.ty),wt=gt.clone().applyWithoutXY({x:-mt.x,y:-mt.y}),Zt=gt.clone().applyWithoutXY({x:-xt.x,y:-xt.y}),Ft=Be.tx+wt.x-Zt.x,Gt=Be.ty+wt.y-Zt.y,{w:Dt,h:Qt}=xt,Ct=calcRadianFromD1($e),yn=Math.sin(Ct)*.5,rn=Math.cos(Ct)*.5,Rt=Ft-Qt*yn+Dt*rn,Dn=Gt+Qt*rn+Dt*yn,{x:To,y:mo}=sdkStore.toAttrXY({x:Rt,y:Dn},Re);return{w:Dt,h:Qt,x:To,y:mo}},Bt=(He,Re,De,Be)=>{let $e="";return $e+="M "+(He-De)+" "+Re+" ",$e+="C "+(He-De)+" "+(Re-.552*Be)+" "+(He-.552*De)+" "+(Re-Be)+" "+He+" "+(Re-Be)+" ",$e},zt=(He,Re,De)=>{const Be=Bt(He,Re,-De,De),$e=Bt(He,Re,De,De),Ze=Bt(He,Re,De,-De),nt=Bt(He,Re,-De,-De);return Be+$e+Ze+nt},Xt=(He,Re)=>{const De="http://www.w3.org/2000/svg",Be=document.createElementNS(De,"svg"),$e=document.createElementNS(De,"path");return $e.setAttributeNS(null,"d",Re),$e.style.fill="none",$e.style.stroke="red",Be.appendChild($e),Be.style.overflow="inherit",Be.style.position="absolute",Be.style.top="0",Be.style.left="0",Be.style.zIndex="9999",He.appendChild(Be),Be},bt=(He,Re)=>{const De=Vec2.xy(He.x-Re,He.y-Re),Be=Vec2.xy(He.x-Re,He.y+Re),$e=Vec2.xy(He.x+Re,He.y-Re),Ze=Vec2.xy(He.x+Re,He.y+Re);return[{p1:De,p2:Be},{p1:Be,p2:Ze},{p1:$e,p2:Ze},{p1:De,p2:$e}]},jn=(He,Re)=>{const De=He.curves;if(!(De!=null&&De.length))return!1;for(let Be=0;Be<=De.length-1;Be++)if(Re.some((Ze,nt)=>{var mt;return((mt=De[Be].intersects(Ze))==null?void 0:mt.length)>0}))return!0;return!1},xo=(He,Re,De,Be)=>{const $e=Re.points.map(xt=>{const{x:gt,y:wt,next:Zt,prev:Ft}=xt,{x:Gt,y:Dt}=Be.apply({x:gt,y:wt});return{...xt,x:Gt,y:Dt,next:Zt,prev:Ft}}),Ze=st({points:$e,closed:Re.closed}),nt=Bezier.SVGtoBeziers(Ze),mt=bt(He,De);return jn(nt,mt)},Po=(He,Re,De,Be)=>{const{vector:$e,w:Ze,h:nt}=Re;let mt=at(Be,$e);if(Ze&&nt){const{hotAttr:{w:xt,h:gt}}=sdkStore.getHotItem(Be),wt=(xt-Ze)/2,Zt=(gt-nt)/2,{x:Ft,y:Gt}=ot($e),Dt=sdkStore.getHotInnerMatrix(Be),Qt=new MutableTransform(Dt.a,Dt.b,Dt.c,Dt.d,Dt.tx,Dt.ty),Ct=Qt.clone().applyWithoutXY({x:-Ft+wt,y:-Gt+Zt});mt=Qt.clone().translate(Ct)}return xo(He,$e,De,mt)},Gn=(He,Re)=>{if(He==="solid")return"";if(He==="dotted")return Re+" "+Re;if(He==="dashed"){if(Re===1)return"3 2";if(Re===2)return"6 4";if(Re>2)return Re*2+" "+Re}};var yo=e(83084),Ve=e(64273);const ut=He=>{let{width:Re,height:De,borderRadius:Be}=He;return[Point.xyr(Re/2,0,Be),Point.xyr(Re,De,Be),Point.xyr(0,De,Be)]},Kt=(He,Re)=>{const De=[[0,He,Re/2],[3,He,Re,He/2,Re,.7071067690849304],[3,0,Re,0,Re/2,.7071067690849304],[3,0,0,He/2,0,.7071067690849304],[3,He,0,He,Re/2,.7071067690849304],[5]];function Be(nt,mt,xt){const gt=Ze[Ze.length-1];xt===2?gt.next={x:2*(nt-gt.x)/3,y:2*(mt-gt.y)/3}:gt.next={x:nt-gt.x,y:mt-gt.y},gt.type===PointType.Straight&&(gt.type=PointType.Disconnected)}const $e=[];let Ze=[{x:0,y:0,type:PointType.Disconnected,radius:0,prev:Vec2.zero,next:Vec2.zero}];for(let nt=0;nt1&&$e.push({points:Ze,closed:!1}),Ze=[],Ze.push({x:gt,y:wt,type:PointType.Disconnected,radius:0,prev:Vec2.zero,next:Vec2.zero});break}case 1:{const[,gt,wt]=mt,Zt=Ze[Ze.length-1],Ft=Vec2.average(Vec2.xy(Zt.x,Zt.y),Vec2.xy(gt,wt));Be(Ft.x,Ft.y,xt),Ze.push({x:gt,y:wt,type:PointType.Straight,radius:0,prev:Vec2.subtract(Ft,Vec2.xy(gt,wt)),next:Vec2.zero});break}case 2:{const[,gt,wt,Zt,Ft]=mt;Be(gt,wt,xt),Ze.push({x:Zt,y:Ft,type:PointType.Disconnected,radius:0,prev:Vec2.xy(2*(gt-Zt)/3,2*(wt-Ft)/3),next:Vec2.zero});break}case 3:{const[,gt,wt,Zt,Ft,Gt]=mt,Dt=Ze.length===0?Vec2.zero:Ze[Ze.length-1],Qt={x:gt,y:wt},Ct={x:Zt,y:Ft},{c1:yn,c2:rn}=conicToCubic(Dt,Qt,Ct,Gt);Be(yn.x,yn.y,xt);const Rt=Vec2.subtract(rn,Ct);Ze.push({x:Zt,y:Ft,type:PointType.Disconnected,radius:0,prev:Rt,next:Vec2.zero});break}case 4:{const[,gt,wt,Zt,Ft,Gt,Dt]=mt;Be(gt,wt,xt);const Qt={x:Zt-Gt,y:Ft-Dt};Ze.push({x:Gt,y:Dt,type:PointType.Disconnected,radius:0,prev:Qt,next:Vec2.zero});break}case 5:{Ze.length>1&&(Vec2.isEqual(Ze[0],Ze[Ze.length-1])&&(Ze[0].prev=Ze[Ze.length-1].prev,Ze.splice(Ze.length-1,1)),$e.push({points:Ze,closed:!0}),Ze=[last(Ze)]);break}}}return Ze.length>1&&$e.push({points:Ze,closed:!1}),$e},St=He=>{const{type:Re,w:De,h:Be,borderRadius:$e,polygon:Ze,star:nt,line:mt,border:xt,elbow:gt,refVars:wt}=sdkStore.getHotItem(He).hotAttr;let Zt;switch(xt&&(Zt=xt.bdrWidth),Re){case WidgetType.WRect:{let Qt,Ct,yn,rn,Rt;const Dn=wt==null?void 0:wt.borderRadius;if(typeof $e!="number"?{radiusTL:Qt,radiusTR:Ct,radiusBR:yn,radiusBL:rn}=$e:(Qt=$e,Ct=$e,yn=$e,rn=$e),typeof Dn=="object"){const{radiusTL:mo,radiusTR:ro,radiusBR:Bn,radiusBL:Ao}=Dn;Rt=[mo,ro,Bn,Ao]}else typeof Dn=="string"&&(Rt=new Array(4).fill(Dn));return{vector:{points:[Point.xyr(0,0,Qt),Point.xyr(De,0,Ct),Point.xyr(De,Be,yn),Point.xyr(0,Be,rn)],closed:!0},refVars:{...wt,borderRadius:void 0,vector:Rt?{points:Rt.map(mo=>({radius:mo}))}:void 0}}}case WidgetType.WOval:return{vector:Kt(De,Be)[0]};case WidgetType.WPolygon:{var Ft;const Qt=Ze.sideNum,Ct=Ze.cornerRadius,rn=getPolygonPointsArr({width:De,height:Be,sides:Qt,borderWidth:Zt}).map(Bn=>Point.xyr(Bn.x,Bn.y,Ct)),Rt={points:rn,closed:!0},{w:Dn,h:To}=getVectorPointsRect(Rt);let mo;const ro=wt==null||(Ft=wt.polygon)==null?void 0:Ft.cornerRadius;return ro&&(mo={points:rn.map(()=>({radius:ro}))}),{vector:Rt,w:Dn,h:To,refVars:{...wt,polygon:void 0,vector:mo}}}case WidgetType.WStar:{var Gt,Dt;const Qt=nt.sideNum,Ct=nt.cornerRadius,yn=(Gt=nt==null?void 0:nt.radius)!=null?Gt:0,Rt=getStarPointsArr({width:De,height:Be,sides:Qt,radius:yn/100,borderWidth:Zt}).map(Ao=>Point.xyr(Ao.x,Ao.y,Ct)),Dn={points:Rt,closed:!0},{w:To,h:mo}=getVectorPointsRect(Dn);let ro;const Bn=wt==null||(Dt=wt.star)==null?void 0:Dt.cornerRadius;return Bn&&(ro={points:Rt.map(()=>({radius:Bn}))}),{vector:Dn,w:To,h:mo,refVars:{...wt,star:void 0,vector:ro}}}case WidgetType.WLine:{const{linePointFrom:{x:Qt,y:Ct},linePointTo:{x:yn,y:rn}}=mt,Rt=[De*(yn-Qt),Be*(rn-Ct)];return{vector:{points:[Point.xyr(0,0,0),Point.xyr(Rt[0],Rt[1],0)],closed:!1}}}case WidgetType.WTriangle:{const Qt=getTrianglePoints({width:De,height:Be,borderRadius:$e}),Ct={points:Qt,closed:!0},{w:yn,h:rn}=getVectorPointsRect(Ct);let Rt;const Dn=wt==null?void 0:wt.borderRadius;return Dn&&(Rt={points:Qt.map(()=>({radius:Dn}))}),{vector:Ct,w:yn,h:rn,refVars:{...wt,borderRadius:void 0,vector:Rt}}}case WidgetType.WElbow:return{vector:{points:gt.dPathList,closed:!0}}}};var fn=e(62587),En=e(36052),gn=e(54801),Yn=e(41818);const Pn=null;class _n extends null{shouldComponentUpdate(Re,De,Be){return createShouldUpdate(Pn).call(this,Re,De)}render(){const{vector:Re,widget:{key:De,vector:Be,borderRadiusIsVisible:$e,w:Ze,h:nt,fill:mt,border:{bdrColor:xt,bdrWidth:gt,bdrStyle:wt,bdrIsVisible:Zt}}}=this.props,Ft=Re||Be;if(!Ft)return null;const{closed:Gt}=Ft,Dt={...Ft,points:Ft.points.map(uo=>({...uo,radius:$e?uo.radius:0}))},Qt=getTransformPoints(Dt),Ct=protoFillData2SigmaPaint(mt,{w:Ze,h:nt}),yn=getSvgMatrixFromFill(Ct),rn=getGradientColorsFromFill(Ct),Rt=Math.floor(Math.random()*1e5),Dn=toRGBACSS(xt),To=getStrokeDashArray(wt,Number.parseInt(gt)),mo=getRadiusPointsPath({points:Qt,closed:Gt}),ro=getIsVectorLine(Dt.points),Bn=De+Date.now();if(Gt&&!ro)return _jsxs(_Fragment,{children:[_jsxs("defs",{children:[Ct.type===PaintType.LinearGradient?_jsx("linearGradient",{id:Rt,x1:0,x2:1,y1:0,y2:0,gradientTransform:yn,children:rn.sort((uo,Jo)=>uo.point-Jo.point).map((uo,Jo)=>_jsx("stop",{stopColor:uo.hex,stopOpacity:uo.alpha,offset:uo.point},Jo))}):Ct.type===PaintType.RadialGradient?_jsx("radialGradient",{id:Rt,cx:0,cy:0,r:1,gradientTransform:yn,children:rn.map((uo,Jo)=>_jsx("stop",{stopColor:uo.hex,stopOpacity:uo.alpha,offset:uo.point},Jo))}):null,_jsx("path",{id:Bn,d:mo}),_jsx("clipPath",{id:"clip-"+Bn,children:_jsx("use",{xlinkHref:"#"+Bn})})]}),_jsx("g",{children:_jsx("use",{xlinkHref:"#"+Bn,clipPath:"url(#clip-"+Bn+")",fill:Ct.v?Ct.type!==PaintType.Solid?"url(#"+Rt+")":Color.toRGBAStr(Ct.color):"rgba(255, 255, 255, 0)",stroke:Zt?Dn:"none",strokeWidth:gt*2,strokeDasharray:To})})]});if(!Zt)return null;const Ao=ro?getVectorLinePath(Qt):mo;return _jsx("path",{id:Bn,d:Ao,stroke:Dn,strokeWidth:gt,strokeDasharray:To,fill:"none"})}}var Fn=e(89002),Nn=e(83744);const io=He=>{const Re=[];function De(Be){if(typeof Be=="string"){Re.push(Be);return}for(const $e in Be)Object.prototype.hasOwnProperty.call(Be,$e)&&De(Be[$e])}return De(He),Re};function to(He,Re,De,Be){const $e=[];function Ze(nt,mt){if(mt===void 0&&(mt=[]),typeof nt!="object"||nt===null){nt===De&&$e.push([...mt]);return}for(const xt in nt)Object.prototype.hasOwnProperty.call(nt,xt)&&Ze(nt[xt],[...mt,xt])}return Ze(He),$e.forEach(nt=>{let mt=Re,xt=!0;for(let gt=0;gt{if((0,s.OO)(He.key)){const Ze=sdkStore.locUpBasketKey(He.key),nt=Ze&&sdkStore.getHotItem(Ze);if(nt){const mt=(0,s.QL)(He.key);if(mt.length>0){var $e;const xt=mt[mt.length-1],gt=sdkStore.getHotItem(xt),wt=gt==null||($e=gt.hotAttr)==null?void 0:$e.refStyles;return[...io(wt==null?void 0:wt.color),wt==null?void 0:wt.text,wt==null?void 0:wt.appear].includes(Be)&&(De.findIndex(Ft=>Ft.key===xt)===-1&&De.push({key:xt,hotAttr:Re}),De.findIndex(Ft=>{var Gt;return Ft.key===((Gt=nt.hotAttr)==null?void 0:Gt.refRBPageKey)})===-1&&De.push({key:nt.hotAttr.refRBPageKey,hotAttr:{mtime:rootSdk.fssCmt.getClockStore().getMtime()}})),!0}return!1}}return!1},Io=He=>{var Re,De,Be,$e,Ze;let{hotItem:nt,currentKey:mt,widgetRefStyleKeyList:xt,color:gt,flatChgList:wt,otherPageFlatChgList:Zt,updateBasketItemList:Ft,refStyleFlatChgList:Gt,currentPageKey:Dt}=He;const Qt=u()(nt==null?void 0:nt.hotAttr);let Ct={...Qt};if(xt.findIndex(mo=>mo===mt)!==-1){var yn;const mo=nt==null||(yn=nt.hotAttr)==null||(yn=yn.refStyles)==null?void 0:yn.color;let ro={};for(const[Bn,Ao]of Object.entries(mo))if(Ao)switch(Bn){case"richTextV1":if(Ao.textColor===mt){var rn,Rt;const $o={...Qt==null?void 0:Qt.richTextV1,textColor:(0,b.t0)(gt)};ro=In({selections:[nt==null?void 0:nt.key],attrs:$o,isAutoSize:!1,isOnlyUpdateTextColor:!0})[0].hotAttr,Ct={...Qt,...ro};const po=(0,Nn.bC)(nt==null||(rn=nt.hotAttr)==null?void 0:rn.type);po&&(po==null||(Rt=po.refStyles)==null||(Rt=Rt.color)==null||(Rt=Rt.richTextV1)==null?void 0:Rt.textColor)===mt&&(0,Nn.Xq)([(0,Te.Op)(nt==null?void 0:nt.key,Ct)])}break;case"cells":const uo=wt.find($o=>$o.key===(nt==null?void 0:nt.key)),Jo=uo?u()(uo==null||(Re=uo.hotAttr)==null?void 0:Re.cells):u()((De=(Be=ro)==null?void 0:Be.cells)!=null?De:Ct.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,ht=Jo[$o];us&&(ht.style=(0,Fn.qI)("background",gt,ht.style,"change")),hs&&(ht.style=(0,Fn.qI)("color",(0,b.t0)(gt),ht.style,"change"))}ro.cells=Jo,Ct={...Qt,...ro};break;default:ro=to(Ao,Ct[Bn],mt,gt),Ct={...Qt,[Bn]:ro};break}if(go(nt,Ct,Ft,mt))return;if(sdkStore.locUpRBPageKey(nt.key)===Dt){const Bn=wt.findIndex(uo=>uo.key===nt.key),Ao={key:nt.key,hotAttr:Ct};Bn!==-1?wt[Bn]=Ao:wt.push(Ao)}else{const Bn={...nt,hotAttr:{...nt.hotAttr,...Ct}},Ao=Zt.findIndex(uo=>uo.key===nt.key);Ao!==-1?Zt[Ao]=Bn:Zt.push(Bn)}}if(nt!=null&&($e=nt.hotAttr)!=null&&($e=$e.refStyles)!=null&&$e.appear){const mo=Gt.find(ro=>{var Bn;return ro.key===(nt==null||(Bn=nt.hotAttr)==null||(Bn=Bn.refStyles)==null?void 0:Bn.appear)});if(mo){const ro=r()(mo.hotAttr,C.vZ);if(go(nt,ro,Ft,mo==null?void 0:mo.key))return;sdkStore.locUpRBPageKey(nt.key)===Dt?wt.push({key:nt.key,hotAttr:ro}):Zt.push({...nt,hotAttr:{...nt.hotAttr,...ro}})}}if(nt!=null&&(Ze=nt.hotAttr)!=null&&(Ze=Ze.refStyles)!=null&&Ze.text){const mo=Gt.find(ro=>{var Bn;return ro.key===(nt==null||(Bn=nt.hotAttr)==null||(Bn=Bn.refStyles)==null?void 0:Bn.text)});if(mo){var Dn,To;const ro=r()(mo.hotAttr,C.F$),Bn=In({selections:[nt==null?void 0:nt.key],attrs:ro,isOnlyUpdateTextColor:!0})[0].hotAttr,Ao=(0,Nn.bC)(nt==null||(Dn=nt.hotAttr)==null?void 0:Dn.type);if(Ao&&(Ao==null||(To=Ao.refStyles)==null?void 0:To.text)===(mo==null?void 0:mo.key)&&(0,Nn.Xq)([(0,Te.Op)(nt==null?void 0:nt.key,Bn)]),go(nt,Bn,Ft,mo==null?void 0:mo.key))return;sdkStore.locUpRBPageKey(nt.key)===Dt?wt.push({key:nt.key,hotAttr:Bn}):Zt.push({...nt,hotAttr:{...nt.hotAttr,newHotAttr:Bn}})}}},co=He=>{let{currentKey:Re,refStyleFlatChgList:De,color:Be}=He;sdkStore.findAllTypeUnder("B@style","rResStyle").filter(Ze=>Ze.hotAttr.styleType!=="color").forEach(Ze=>{var nt;if(Ze!=null&&(nt=Ze.hotAttr)!=null&&nt.refStyles&&sdkStore.isActiveKey(Ze.key)){var mt;const xt=Ze==null||(mt=Ze.hotAttr)==null||(mt=mt.refStyles)==null?void 0:mt.color;if(io(xt).findIndex(wt=>wt===Re)!==-1){const wt=Ze.hotAttr.styleType==="text",Zt=wt?{richTextV1:{...Ze.hotAttr}}:u()(Ze==null?void 0:Ze.hotAttr);for(const[Ft,Gt]of Object.entries(xt))if(Gt){const Dt=Zt[Ft];if(Dt){const Qt=Object.keys(Gt)[0];if(Object.values(Gt)[0]===Re){const yn=wt?(0,b.t0)(Be):Be,rn={...Dt,[Qt]:yn};De.push({key:Ze.key,hotAttr:wt?{...Zt==null?void 0:Zt.richTextV1,...rn}:{...Zt,[Ft]:rn}})}}}}}})},On=(He,Re,De)=>{const Be=[],$e=[],Ze=[],nt=[];co({refStyleFlatChgList:Ze,color:Re.solidColor,currentKey:De});const mt=xt=>{var gt;const wt=xt==null||(gt=xt.hotAttr)==null||(gt=gt.refStyles)==null?void 0:gt.color;if(wt&&Object.keys(wt).length&&sdkStore.isActiveKey(xt.key)){const Ft=io(wt);Io({hotItem:xt,currentKey:De,widgetRefStyleKeyList:Ft,color:Re.solidColor,flatChgList:Be,otherPageFlatChgList:$e,updateBasketItemList:nt,refStyleFlatChgList:Ze,currentPageKey:He})}};return sdkStore.walkHotItemSubtree2("B@ref-danli",mt),sdkStore.walkHotItemSubtree2("B@ref-muban",mt),sdkStore.walkHotItemSubtree2("B@main",mt),{flatChgList:[...Be,...Ze,...nt],otherPageFlatChgList:$e,isUpdateBasket:nt.length>0}},Cn=He=>{var Re,De;let{hotItem:Be,currentRefKey:$e,attrs:Ze,flatChgList:nt,otherPageFlatChgList:mt,currentPageKey:xt,updateBasketItemList:gt=[]}=He;if(Be!=null&&(Re=Be.hotAttr)!=null&&Re.refStyles&&(Be==null||(De=Be.hotAttr)==null?void 0:De.refStyles.appear)===$e){const wt={...Ze,...vo({...Be.hotAttr,key:Be.key},Ze.borderRadius)};if(go(Be,wt,gt,$e))return;sdkStore.locUpRBPageKey(Be.key)===xt?nt.push({key:Be.key,hotAttr:wt}):mt.push({...Be,hotAttr:{...Be.hotAttr,...wt}})}},Je=He=>{let{currentPageKey:Re,currentKey:De,attrs:Be}=He;const $e=[],Ze=[],nt=[];return sdkStore.walkHotItemSubtree2("B@main",mt=>{Cn({hotItem:mt,currentRefKey:De,attrs:Be,flatChgList:$e,otherPageFlatChgList:Ze,currentPageKey:Re,updateBasketItemList:nt})}),{flatChgList:[...$e,...nt],otherPageFlatChgList:Ze,isUpdateBasket:nt.length>0}},vn=He=>{var Re,De;let{hotItem:Be,currentRefKey:$e,attrs:Ze,flatChgList:nt,otherPageFlatChgList:mt,currentPageKey:xt,updateBasketItemList:gt=[]}=He;if(Be!=null&&(Re=Be.hotAttr)!=null&&Re.refStyles&&(Be==null||(De=Be.hotAttr)==null?void 0:De.refStyles.text)===$e){const wt=In({selections:[Be==null?void 0:Be.key],attrs:Ze})[0].hotAttr;if(go(Be,wt,gt,$e))return;sdkStore.locUpRBPageKey(Be.key)===xt?nt.push({key:Be.key,hotAttr:wt}):mt.push({...Be,hotAttr:{...Be.hotAttr,...wt}})}},Jn=He=>{let{currentPageKey:Re,currentKey:De,attrs:Be}=He;const $e=[],Ze=[],nt=[];return sdkStore.walkHotItemSubtree2("B@main",mt=>{vn({hotItem:mt,currentRefKey:De,attrs:Be,flatChgList:$e,otherPageFlatChgList:Ze,currentPageKey:Re,updateBasketItemList:nt})}),{flatChgList:[...$e,...nt],otherPageFlatChgList:Ze,isUpdateBasket:nt.length>0}},ao=He=>{let{currentPageKey:Re,updateList:De}=He;const Be=[],$e=[],Ze=[],nt=[];De.forEach(xt=>{var gt;if(((gt=xt.hotAttr)==null?void 0:gt.styleType)==="color"){var wt;co({refStyleFlatChgList:Ze,color:(wt=xt.hotAttr)==null?void 0:wt.fill,currentKey:xt.key})}});const mt=De.map(xt=>({...xt,sup:"B@style"}));return sdkStore.updateHotItemBatch(mt),sdkStore.walkHotItemSubtree2("B@main",xt=>{var gt,wt,Zt;if(xt!=null&&(gt=xt.hotAttr)!=null&&(gt=gt.refStyles)!=null&>.appear){const Ct=De.find(yn=>{var rn;return yn.key===(xt==null||(rn=xt.hotAttr)==null||(rn=rn.refStyles)==null?void 0:rn.appear)})||Ze.find(yn=>{var rn;return yn.key===(xt==null||(rn=xt.hotAttr)==null||(rn=rn.refStyles)==null?void 0:rn.appear)});Ct&&Cn({hotItem:xt,currentRefKey:Ct==null?void 0:Ct.key,attrs:r()(Ct==null?void 0:Ct.hotAttr,C.vZ),flatChgList:Be,otherPageFlatChgList:$e,updateBasketItemList:nt,currentPageKey:Re})}if(xt!=null&&(wt=xt.hotAttr)!=null&&(wt=wt.refStyles)!=null&&wt.text){const Ct=De.find(yn=>{var rn;return yn.key===(xt==null||(rn=xt.hotAttr)==null||(rn=rn.refStyles)==null?void 0:rn.text)})||Ze.find(yn=>{var rn;return yn.key===(xt==null||(rn=xt.hotAttr)==null||(rn=rn.refStyles)==null?void 0:rn.text)});if(Ct){var Ft;vn({hotItem:xt,currentRefKey:Ct==null?void 0:Ct.key,attrs:{...xt==null||(Ft=xt.hotAttr)==null?void 0:Ft.richTextV1,...r()(Ct.hotAttr,C.F$)},flatChgList:Be,otherPageFlatChgList:$e,updateBasketItemList:nt,currentPageKey:Re})}}if(xt==null||(Zt=xt.hotAttr)==null||(Zt=Zt.refStyles)==null?void 0:Zt.color){var Dt;const Ct=io(xt==null||(Dt=xt.hotAttr)==null?void 0:Dt.refStyles.color).filter(rn=>rn),yn=De.map(rn=>{if(Ct.includes(rn.key))return rn==null?void 0:rn.key}).filter(rn=>rn);for(const rn of yn){var Qt;const Rt=(Qt=sdkStore.getHotItem(rn))==null||(Qt=Qt.hotAttr)==null?void 0:Qt.fill;Io({hotItem:xt,currentKey:rn,widgetRefStyleKeyList:Ct,color:Rt,flatChgList:Be,otherPageFlatChgList:$e,currentPageKey:Re,refStyleFlatChgList:Ze,updateBasketItemList:nt})}}}),{flatChgList:[...Be,...Ze,...nt],otherPageFlatChgList:$e,isUpdateBasket:nt.length>0}},no=async He=>{let{libSdkStore:Re,data:De,projectMetaCid:Be}=He;const $e=Re.getHotItem(De.key),Ze=await(0,v.Hz)({key:De.key,...De.hotAttr,sup:"B@ref-muban",sub:$e.sub,libKey:Be});return Ze.sub.forEach(nt=>{var mt;const xt=Re.getHotItem(nt);sdkStore.updateHotItem(xt);const gt=Re.saveSubtree(xt==null?void 0:xt.sub);sdkStore.deleteHotItemBatch((mt=sdkStore.getHotItem(nt))==null?void 0:mt.sub),sdkStore.loadSubtreeTL(gt,nt,0,0)}),Ze},Oe=(He,Re)=>{!He||!(Re!=null&&Re.length)||(Re.forEach(De=>{const Be=sdkStore.getHotItem(De.key),$e=(Be==null?void 0:Be.hotAttr.defaultCanvasKey)!==De.hotAttr.defaultCanvasKey,Ze=r()(Be==null?void 0:Be.hotAttr,["w","h","scroll","name"]),nt=r()(De==null?void 0:De.hotAttr,["w","h","scroll","name"]);!o()(Ze,nt)&&sdkStore.updateHotAttrMerge(De.key,nt),$e&&sdkStore.updateHotAttrKV(De.key,"defaultCanvasKey",De.hotAttr.defaultCanvasKey),De==null||De.sub.forEach(xt=>{var gt;const wt=He.getHotItem(xt);(Be==null?void 0:Be.sub.findIndex(Gt=>Gt===xt))===-1&&sdkStore.updateHotItem(wt),sdkStore.deleteHotItemBatch((gt=sdkStore.getHotItem(xt))==null?void 0:gt.sub);const Ft=He.saveSubtree(wt.sub);sdkStore.loadSubtreeTL(Ft,xt,0,0)}),sdkStore.updateHotAttrKV(De.key,"mtime",rootSdk.fssCmt.getClockStore().getMtime())}),MB.action("entry:rebuild:screen-widget-tree"))},$n=function(He,Re){Re===void 0&&(Re=0);const De=sdkStore.findAllTypeUnder("B@ref-muban","rResBunch").filter($e=>$e.hotAttr.asFolder===!0).find($e=>$e.hotAttr.name===He);let Be="B@ref-muban";if(De)Be=De==null?void 0:De.key;else{const $e=(0,l.Z_)("B@ref-muban");Be=(0,v.Hz)({name:He,asFolder:!0,sup:"B@ref-muban",zIndex:Re||$e}).key}return Be},$t=(He,Re)=>{let De=He;const Be=sdkStore.getHotItem(Re);if(!Be||!sdkStore.isActiveKey(Re))return;const $e=Be.sup!=="B@ref-muban"?{...sdkStore.getHotItem(Be.sup)}:void 0,Ze=He.split("/");if(Ze.length===1)$e&&(sdkStore.updateHotItem({...Be,sup:"B@ref-muban"}),$e.sub.length===1&&$e.sub[0]===Be.key&&sdkStore.deleteHotItem($e.key));else{var nt;const mt=Ze[0];if(De=Ze.slice(1,Ze.length).join(""),$e&&($e==null||(nt=$e.hotAttr)==null?void 0:nt.name)!==mt||!$e){const xt=$n(mt);sdkStore.updateHotItem({...Be,sup:xt}),$e&&$e.key!==xt&&$e.sub.length===1&&$e.sub[0]===Be.key&&sdkStore.deleteHotItem($e.key)}}return De},cn=e.j!=477?["bold","italic","underline","strikethrough"]:null,yt=e.j!=477?["letterSpacing","fontWeight","fontFamily","lineHeight","fontSize"]:null,Lt=e.j!=477?["paraSpacing"]:null,Wt=He=>{let{oldRichTextV1:Re,richTextV1:De,textV1:Be}=He;const{blocks:$e}=Be;if((0,d.SD)($e))return;let Ze=(0,d.yU)({blocks:$e,fn:mt=>({...mt})});return Object.keys(De).forEach(mt=>{Re[mt]!==De[mt]&&Re[mt]!==void 0&&De[mt]!==void 0&&(cn.includes(mt)&&(Ze=(0,d.RG)({blocks:{...Ze},attr:mt.toUpperCase(),value:De[mt]})),yt.includes(mt)&&(Ze=(0,d.RG)({blocks:{...Ze},attr:mt.toLowerCase(),value:De[mt]})),Lt.includes(mt)&&(Ze=(0,d.RG)({blocks:{...Ze},attr:mt,value:De[mt]})),mt==="textColor"&&(Ze=(0,d.RG)({blocks:{...Ze},attr:"color",value:De[mt]})))}),Ze},Jt=He=>{var Re,De;const Be=u()(He==null||(Re=He.refStyles)==null?void 0:Re.color),$e=u()(He==null||(De=He.refStyles)==null?void 0:De.refVars);if(Be){var Ze,nt;Be!=null&&(Ze=Be.richTextV1)!=null&&Ze.textColor&&(Be==null||(nt=Be.richTextV1)==null||delete nt.textColor)}return $e&&Be!=null&&Be.richTextV1&&(Be==null||delete Be.richTextV1),{color:Be,refVars:$e}},In=He=>{let{selections:Re,attrs:De,currentRefStyle:Be,isAutoSize:$e=!0,isDelRef:Ze=!1,isOnlyUpdateTextColor:nt=!1}=He,mt={};return Re.map(gt=>{var wt,Zt,Ft,Gt,Dt;const Qt=sdkStore.getHotItem(gt),Ct=(Qt==null?void 0:Qt.hotAttr.type)==="wElbow"?r()(De,C.Rf):r()(De,C.F$);let yn={...Qt==null||(wt=Qt.hotAttr)==null||(wt=wt.refStyles)==null?void 0:wt.color},rn={...Qt==null||(Zt=Qt.hotAttr)==null?void 0:Zt.refVars};if(Ze){const{color:To,refVars:mo}=Jt(Qt==null?void 0:Qt.hotAttr);yn=To,rn=mo}const Rt={textV1:{...Qt==null?void 0:Qt.hotAttr.textV1},richTextV1:{...Qt==null||(Ft=Qt.hotAttr)==null?void 0:Ft.richTextV1,...Ct},refStyles:{color:yn,appear:Qt==null||(Gt=Qt.hotAttr)==null||(Gt=Gt.refStyles)==null?void 0:Gt.appear,text:(Be==null?void 0:Be.key)||(Qt==null||(Dt=Qt.hotAttr)==null||(Dt=Dt.refStyles)==null?void 0:Dt.text)},refVars:rn};if(Qt!=null&&Qt.hotAttr.textV1&&Object.keys(Qt==null?void 0:Qt.hotAttr.textV1.blocks).length!==0){const To=Wt({richTextV1:Rt.richTextV1,oldRichTextV1:Qt==null?void 0:Qt.hotAttr.richTextV1,textV1:Qt==null?void 0:Qt.hotAttr.textV1});To&&(Rt.textV1.blocks=To)}if(P.Q.USE_TEXT_LIST.includes(Qt==null?void 0:Qt.hotAttr.type)&&De!=null&&De.listValue&&!nt){const{listValue:To="unstyled"}=De,mo=hn(Rt.textV1.blocks,To,!1);mt={...Rt.textV1,blocks:mo},Rt.textV1=mt}const Dn={...Qt==null?void 0:Qt.hotAttr,...Rt};return $e&&((0,a.PQ)(Dn),(Dn.w!==(Qt==null?void 0:Qt.hotAttr.w)||Dn.h!==(Qt==null?void 0:Qt.hotAttr.h)||Dn.x!==(Qt==null?void 0:Qt.hotAttr.x)||Dn.y!==(Qt==null?void 0:Qt.hotAttr.y))&&(Rt.w=Dn.w,Rt.h=Dn.h,Rt.x=Dn.x,Rt.y=Dn.y)),{key:gt,hotAttr:Rt}})},Ln=(He,Re)=>{var De,Be;const $e=(He==null?void 0:He.sclib_cid)||(He==null||(De=He.hotAttr)==null||(De=De.extInfo)==null?void 0:De.flatKey),Ze=sdkStore.getSubHotItemList("B@ext").find(gt=>{var wt,Zt;return((wt=gt.hotAttr)==null?void 0:wt.extType)==="extProtoLib"&&((Zt=gt.hotAttr)==null||(Zt=Zt.extInfo)==null?void 0:Zt.flatKey)===$e});if(Ze){const gt={...Ze,hotAttr:{...Ze.hotAttr,extInfo:{...Ze.hotAttr.extInfo,updateTime:rootSdk.fssCmt.getClockStore().getMtime(),isRemove:!1}}};return sdkStore.updateHotItem(gt),gt}const nt={flatKey:He.sclib_cid,projectCid:He.cid,name:He.name,addUser:Re.name,updateTime:rootSdk.fssCmt.getClockStore().getMtime(),version:1},mt=He!=null&&He.is_custom_cover?He==null?void 0:He.custom_cover:(Be=He==null?void 0:He.cover)!=null?Be:"",xt={key:(0,h.cF)("el"),hotAttr:(0,y.Rq)({name:He.name,extInfo:nt,extData:mt}),sup:i.JC};return sdkStore.updateHotItem(xt),xt},hn=(He,Re,De)=>{const Be={};for(const[$e,Ze]of Object.entries(He))Be[$e]={...Ze,type:Re,depth:De?Ze.depth:0};return Be},_o=He=>typeof He=="object"?He==null?void 0:He.radiusTL:He,vo=(He,Re)=>{let De;if(g.T.includes(He.type))De={borderRadius:Re};else switch(He.type){case"wPolygon":De={polygon:{...He.polygon,cornerRadius:_o(Re)}};break;case"wStar":De={star:{...He.star,cornerRadius:_o(Re)}};break;case"wVector":const Be={...He.vector,points:He.vector.points.map(xt=>({...xt,radius:_o(Re)}))},{x:$e,y:Ze,w:nt,h:mt}=ft({key:He.key,vector:Be});De={vector:Be,x:$e,y:Ze,w:nt,h:mt};break;default:De={borderRadius:_o(Re)}}return De},Qn=()=>{var He;const Re=((He=sdkStore.getHotItem(i.fW))==null?void 0:He.sub)||[],De=new Set(Re.filter(Be=>{var $e;return!!(($e=sdkStore.getHotItem(Be))!=null&&($e=$e.hotAttr)!=null&&$e.libKey)}));(0,f.of)(rootSdk.fssDat.getFlatStore().getFlatTree(),f.gT,Be=>{const{T:$e,rRBPK:Ze}=Be.attr;if($e===p.FQ&&(De.has(Ze)&&De.delete(Ze),!De.size))return!0}),De.size>0&&sdkStore.deleteHotItemBatch([...De])}},9248:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>p});var n=e(95549),r=e(25582),c=e.n(r),o=e(38502),w=e(53732),u=e.n(w),d=e(68677),y=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:C}=this.props,{value:v}=l.target;C(v)}),(0,n.A)(this,"handleBlur",()=>{this.props.onBlur()}),(0,n.A)(this,"handleKeyDown",l=>{l.key===y._.Enter?(l.preventDefault(),this.handleBlur()):l.key===y._.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:C,className:v,isShowToolTips:a,highlightKeyword:P}=this.props;return l?(0,f.jsx)(i.O,{className:u()("is-editing",v),onClick:this.handleStopPropagation,children:(0,f.jsx)("textarea",{ref:this.setElementRef,value:C,onFocus:this.handleFocus,onChange:this.handleChange,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown})}):(0,f.jsx)(i.O,{className:v,children:a?(0,f.jsx)(d.A,{arrowed:!1,children:C}):(0,f.jsx)(h.A,{value:C,highlightKeyword:P})})}}(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:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>w});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 y=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:y,warnSize:(0,r.Ku)(ENV.IS_FEAT_FLPAK4GB)}}getFlpakSizeInfo(){return this.FlpakSzieInfo}}const w=new c},9501:(Fe,ee,e)=>{"use strict";e.d(ee,{B:()=>P});var n=e(38502),r=e(18381),c=e(53732),o=e.n(c),w=e(21770),u=e(70933),d=e(67588),y=e(4235),h=e(12211),i=e(89505),f=e(11032),p=e(3862),s=e(68863),l=e(4179),C=e(14285),v=e(72214);const a=(0,h.Mz)([u.wA,u.HW,u.X_,u.Pz,u.PL,d.PI,d.k3,u.Ur,y.nE,u.YY],(b,g,S,t,_,I,k,j,z,K)=>({currentOrg:b,currentUser:g,scale:S,canvasRect:t,rootProject:_,showDragMode:I,isAdsorbentReferenceLine:k,currentScreen:j,selectedItems:z,createTemplatesData:K})),P=(0,n.memo)(b=>{const{asset:g,popupsName:S,from:t}=b,_=(0,r.wA)(),I=(0,r.d4)(a),{currentOrg:k,currentUser:j,createTemplatesData:z}=I||{},K=(0,i.c)({dispatch:_,...I,popupsName:S,type:"sticker",isFind:!0,isOrg:!1}),$=(0,n.useMemo)(()=>{const{isMktMember:D}=(0,w.s)(j,k);return D},[j,k]),A=()=>{if(ENV.IS_MO)MB.notice({text:(0,v.jsxs)("p",{children:["You can ",(0,v.jsx)("a",{style:{color:"#fff"},onClick:()=>A(),children:"upgrade"})," to use premium templates."]}),showClose:!0,duration:0,isReactDom:!0});else{const{checkoutPlace:D,payEntrance:W}=(0,f.FS)(p.b4),F={mode:"mat",payEntrance:W,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(F)}},E=(0,n.useCallback)(D=>{if(D.stopPropagation(),!$){A();return}const{onMouseDown:W}=K;W&&W(D,g)},[$,g,K==null?void 0:K.onAssetImport]),U=(0,n.useCallback)(()=>{if(!(H!=null&&H.current)){if(!$){A();return}_({type:"entry:image-panel:create:image:by:click",payload:{asset:g,type:"sticker"}})}},[g,_]),O=(0,n.useCallback)(D=>{if(D.stopPropagation(),!$){A();return}const{onAssetImport:W}=K;W&&W(g)},[g,K==null?void 0:K.onAssetImport]),{isMoveAfterClick:H,isDragging:Q,handleMouseDown:N,handleClick:L,handleDoubleClick:V}=(0,l.A)({onMouseDown:E,onClick:U,onDoubleClick:O}),M=(0,n.useMemo)(()=>{var D;const W=(0,s.F)(z);if((W==null||(D=W.recent)==null?void 0:D.projectUpperType)==="picture"){var F;return(W==null||(F=W.recent)==null?void 0:F.projectUpperCid)===(g==null?void 0:g.asset_cid)}return Q},[z,g,Q]);if(g)return(0,v.jsx)(C.mh,{className:o()("sticker-item "+(t==="findPanel"?"builtin":"card"),{active:M}),onDoubleClick:V,onClick:L,onMouseDown:N,children:(0,v.jsx)("img",{src:g.thumb||g.image,alt:g.name,draggable:"false"})})})},10308:Fe=>{/*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT */Fe.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:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>b});var n=e(38502),r=e(53732),c=e.n(r),o=e(99402),w=e(32424),u=e(11032),d=e(95956),y=e(3862),h=e(2827),i=e(36050),f=e(85449),p=e(68863),s=e(4179),l=e(67787),C=e(41240);const v=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,C.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 b=(0,n.memo)(g=>{const{index:S,icon:{id:t,cid:_,groupCid:I,view_box:k,path:j},icon:z,isMultiColorIcon:K,from:$,canChecked:A,checkedSet:E,createTemplatesData:U,style:O,onUpdateChecked:H,onSetCurrentNodeIcon:Q,setIcon:N,onMouseDown:L,onAddItem:V,onDoubleClick:M}=g,D=()=>{MB.notice({text:(0,a.jsxs)("p",{children:["You can ",(0,a.jsx)("a",{style:{color:"#fff"},onClick:()=>W(MB.currentOrg),children:"upgrade"})," to use premium templates."]}),showClose:!0,duration:0,isReactDom:!0})},W=()=>{if(ENV.IS_MO)D();else{const{checkoutPlace:ie,payEntrance:oe}=(0,u.FS)(y.C),ue={mode:"mat",payEntrance:oe,checkoutArea:"proto",checkoutPlace:ie,templateCid:_||I,templateName:t,templateCategory:y.C};MB.global.popupHelper.chargeAsync(ue)}},F=()=>{const{iconName:ie,iconDisplayName:oe}=(0,i.RU)(z);H&&H(z==null?void 0:z.id,{...z,isMultiColorIcon:K,iconName:ie,iconDisplayName:oe})},B=ie=>{if($==="icon-modal"||MB.global.experienceLoginModalHelper("isSave"))return;const{show:oe}=(0,u.K1)(K,MB.user);if(oe&&!ENV.IS_ON_PREMISES){if((0,f.jI)()){W();return}(0,h.z)()}if(Q){Q(z,K);return}const{iconName:ue,iconDisplayName:ve}=(0,i.RU)(z);L&&L(ie,z,ue,ve)},Y=ie=>{if(Z!=null&&Z.current)return;if($=="icon-modal"){var oe;if(ie.stopPropagation(),ie.preventDefault(),A&&((oe=E==null?void 0:E.size)!=null?oe:0)>0){F();return}}if(MB.global.experienceLoginModalHelper("isSave"))return;const{show:ue}=(0,u.K1)(K,MB.user);if(ue){if((0,f.jI)()){W();return}(0,h.z)()}if(Q){Q(z,K);return}const{iconName:ve,iconDisplayName:re}=(0,i.RU)(z);if(L){L({type:"click"},z,ve,re);return}V&&V(ie,z,ve,re,K)},X=ie=>{if($==="icon-modal"||MB.global.experienceLoginModalHelper("isSave"))return;const{show:oe}=(0,u.K1)(K,MB.user);if(oe){if((0,f.jI)()){W();return}(0,h.z)()}if(Q){Q(z,K);return}const{iconName:ue,iconDisplayName:ve}=(0,i.RU)(z);M&&M({type:"dblclick"},z,ue,ve)},G=ie=>{if(ie.stopPropagation(),!A)return;const oe=E==null?void 0:E.has(z==null?void 0:z.id);F(),!oe&&N&&N(z)},{isMoveAfterClick:Z,isDragging:J,handleMouseDown:te,handleClick:he,handleDoubleClick:de}=(0,s.A)({onMouseDown:B,onClick:Y,onDoubleClick:X}),Se=(0,n.useMemo)(()=>{const ie=(0,p.F)(U);return J||(ie==null?void 0:ie._icon_id)===(z==null?void 0:z.id)},[U,z,J]),xe=(0,n.useMemo)(()=>z.fill?{fill:z.fill}:z.stroke?{stroke:z.stroke}:{},[z]),be=(0,n.useMemo)(()=>{let ie=j;if(K){const oe=new DOMParser,ue=''+j+"",re=oe.parseFromString(ue,"text/html").querySelector("svg"),fe={id:[],class:[]},we=((z==null?void 0:z.cid)||(z==null?void 0:z.groupCid)||(0,w.xc)())+S;(0,d.rD)(re,we,fe),(0,d.kP)(re,we,fe),ie=""+(re==null?void 0:re.innerHTML)+""}return ie},[K,z,S,j]);return(0,a.jsxs)(v,{className:c()("mt-exposure-observer","icon-item",{checked:E&&E.has(t)},{"is-click-active":Se}),style:O,onMouseDown:te,onClick:he,onDoubleClick:de,"data-cid":t,"data-resources-cid":I,children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:c()("library-icon-item svg-icon",{fill:!K},{is_multi_color:K}),viewBox:k,dangerouslySetInnerHTML:{__html:be},...xe}),A&&(0,a.jsx)(o.A,{className:"check "+((E==null?void 0:E.has(t))&&"is-show"),checked:E&&E.has(t),onChange:G,onClick:ie=>ie.stopPropagation()})]})})},10999:(Fe,ee,e)=>{"use strict";e.d(ee,{J:()=>r});var n=e(38502);const r=c=>{const[o,w]=(0,n.useState)(c);return(0,n.useLayoutEffect)(()=>{w(c)},[c,w]),{position:o,setPosition:w}}},11032:(Fe,ee,e)=>{"use strict";e.d(ee,{AG:()=>k,Cs:()=>v,FS:()=>C,K1:()=>g,Z1:()=>t,ZU:()=>I,Z_:()=>S,_4:()=>j,f9:()=>p,jA:()=>z,kn:()=>a,lU:()=>s,o3:()=>b,qT:()=>_});var n=e(79287),r=e.n(n),c=e(20089),o=e(48790),w=e(16335),u=e(61541),d=e(21770),y=e(18833);const h=K=>{const{next_billing_on:$}=K;return!dayjs().startOf("day").isBefore(dayjs($).subtract(1,"day"))},i=K=>{if(!K)return!1;const $=h(K),{paid:A}=K;return!A&&!$},f=K=>K&&["paid_org","solo"].indexOf(K==null?void 0:K.login_plan)!==-1,p=K=>{const{is_star:$}=K,{isPurchased:A,isVipTemplate:E,isMdVipTemplate:U,isMktVipTemplate:O}=(0,u.TX)(K);return{isStar:$,isPurchased:A,isVipTemplate:E,isMdVipTemplate:U,isMktVipTemplate:O}},s=async function(K,$,A){A===void 0&&(A=!0);try{K?await(0,w.$z)($):await(0,w.a3)($),A&&MB.notice({text:K?I18N.Resources.user_resource_panel.success_unstore:I18N.Resources.user_resource_panel.success_store})}catch(E){(0,y.$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"}},C=K=>["combo_group","screen_list","icon_group","asset"].includes(K)?l[K]:{payEntrance:"\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u4F7F\u7528\u7D20\u6750_\u5347\u7EA7VIP",checkoutPlace:"workspace-v8_template_use_vip"},v=(K,$)=>{var A,E;if(!$||!K)return;const U=(A=K.getBoundingClientRect())==null?void 0:A.top,O=(E=$.getBoundingClientRect())==null?void 0:E.top;K.scrollTo({top:O-U,left:0,behavior:"smooth"})},a=K=>r()(K).isBefore(r()("2022-03-22 23:59:59")),P=K=>dayjs(K).isBefore(dayjs("2022-06-14 00:00:00")),b=(K,$)=>{const{isMdVipDiscountTemplate:A,isMktVipFreeTemplate:E,isMktVipDiscountTemplate:U}=(0,u.TX)(K),{isBeforeMdMember:O,isMktMember:H}=(0,d.s)($,MB.currentOrg),{canDirectUse:Q}=(0,d.F)(K,$,MB.currentOrg);return{show:!Q,isMktMember:H,hasDiscount:O&&(A||E||U)}},g=(K,$)=>{const{isMktMember:A}=(0,d.s)($,MB.currentOrg);return{show:K&&!A}},S=(K,$,A)=>K.map(E=>{const U=E.market_templates.map(O=>O.cid===$?A(O):O);return{...E,market_templates:U}}),t=(K,$,A)=>{const E=new Map;for(const[U,O]of K){const H=S(O,$,A);E.set(U,H)}return E},_=K=>{let{url:$,tab:A,width:E,height:U,tags:O}=K;return{asset_cid:"findPicture_"+$,created_at:new Date().getTime(),group_cid:"findPicture_"+A,height:U,width:E,name:I18N.Resources.image_example,size:999,image:"/res-img/org/"+$,thumb:"/res-img/thmb/"+$,timestamp:0,tags:"",img_tag:O}},I=K=>{let{url:$,tab:A,name:E,thumb_url:U,res_id:O}=K;return{id:O||-1,asset_cid:"findSticker_"+$,created_at:new Date().getTime(),group_cid:"findSticker_"+A,height:180,width:320,name:E,size:999,image:$,thumb:U||$,timestamp:0,tags:"",img_tag:[]}},k=()=>{const K=MB.getCurrentProjectMeta().cid;return sdkStore.findAllTypeUnder("B@ref-muban","rResBunch").map($=>({...$,flpakKey:K})).filter($=>{let{hotAttr:{bunch:A}}=$;return A===c.x.RbPage}).map($=>{let{hotAttr:A,...E}=$;return{...E,...A,cid:E.key,width:A.w,height:A.y,hotAttr:A}}).reverse()},j=async K=>{const $=await Promise.all(K.map(async U=>{const O=await(0,w.Yk)(U),{marketTemplateItemListMap:H,marketTemplateListDataMap:Q}=await(0,o.Ci)(O);return{itemListMap:H,dataMap:Q}}));let A=new Map,E=new Map;return $.forEach(U=>{let{itemListMap:O,dataMap:H}=U;A=new Map([...A,...O]),E=new Map([...E,...H])}),{marketTemplateItemListMap:A,marketTemplateListDataMap:E}},z=async(K,$,A)=>{const E=$.map(async U=>{const O=A.get(U),H=await(0,w.rd)(O);return K.set(U,H),H});return await Promise.all(E),{mtSdkStoreListMap:K}}},11135:(Fe,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=w=>{let{widget_source:u,widget_type:d}=w;(0,r.kH)("flowchart_V8",{widget_type:c[d],widget_source:u})}},11311:(Fe,ee,e)=>{"use strict";e.d(ee,{B:()=>n});const n=(r,c)=>{let o=0;const w="md-flpak-worker",u=()=>Date.now()+"-"+o++,d=new Map,y=async h=>{const{data:i}=h;if(r instanceof Worker&&(i==null?void 0:i.source)!==w)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 v=null;try{var C;v=await(c==null||(C=c[p])==null?void 0:C.call(c,...s))}catch(a){console.error("worker remote "+p+" error"),console.error(a)}postMessage({source:w,msgId:f,payload:v})}};return r.addEventListener("message",y),{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",y),r instanceof Worker&&r.terminate()}}}},11582:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>f});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),w=e(72140),u=e(69874),d=e(89240),y=e(67787);const h=y.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:C,expanded:v,isEditing:a,children:P,onConfirm:b,renderHeader:g,renderContent:S,renderIcon:t,width:_,isSearch:I,secondary:k,level:j,onSetItemRef:z,...K}=this.props;return(0,i.jsxs)(h,{"data-cid":s,"data-key":l,type:"collapse-panel",className:o()("collapse-panel",C,{expanded:v},{secondary:k}),isSearch:I,level:j!=null?j:1,...K,ref:z,children:[g?g():(0,i.jsxs)("header",{className:"header",onClick:this.handleClick,style:{width:_},"data-key":s,children:[(0,i.jsx)(d.A,{className:"arrow-16",size:16}),t&&t(v),(0,i.jsx)(u.A,{value:l,className:"title",isEditing:a,onConfirm:b},a+l),!a&&S&&S(s)]}),(0,i.jsx)(w.A,{collapse:!v,children:P})]})}}(0,n.A)(f,"defaultProps",{isEditing:!1,level:1})},11891:(Fe,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:",";}"],w=>w.theme.color_text_L2)},12411:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>z});var n=e(38502),r=e(53732),c=e.n(r),o=e(29798),w=e(40042),u=e(63072),d=e(92312),y=e(63239),h=e(75006),i=e(36397),f=e(62448),p=e(20089),s=e(70248),l=e(19249);const C=async(K,$)=>{let{folderCid:A,spaceCid:E}=$;const U={name:K};let O="/api/design/web_v1/create_design_project";E?O+="?spaceCid="+E:O+="?teamCid="+A;const{upperCid:H}=await(0,l.zi)(O,{newOpt:U}),{project_basic:Q}=await(0,l.DE)("/api/upper/web_v1/basics/"+H);return Q},v=async K=>(0,l.uz)("/api/dashboard/v5/projects",{cid:K}),a=async K=>{await(0,l.zi)("/api/design/web_v1/sync",{org_cid:K})};var P=e(77337),b=e(70812);const g=K=>{let{pageType:$,canvasKey:A,currentPageKey:E,currentProject:U,trackParam:O,$projectSelectIframeRef:H,$designIframeRef:Q,onClose:N}=K;const[L,V]=(0,n.useState)(y.l2.uninitialized),[M,D]=(0,n.useState)(0),[W,F]=(0,n.useState)(null),[B,Y]=(0,n.useState)(""),[X,G]=(0,n.useState)(navigator.onLine),[Z,J]=(0,n.useState)(!1),{screenTreeData:te}=(0,y.tb)("B@main"),he=(0,n.useRef)(!1),de=(0,n.useRef)(null);(0,n.useEffect)(()=>{const le=()=>{G(!0)},me=()=>{G(!1)};return window.addEventListener("online",le),window.addEventListener("offline",me),()=>{window.removeEventListener("online",le),window.removeEventListener("offline",me)}},[]),(0,n.useEffect)(()=>{if(L===y.l2.pending)if(X){D(0);const le=Date.now(),me=()=>{const Pe=Date.now()-le;let pe=0;if(Pe<5e3)pe=Pe/5e3*60;else if(Pe<1e4)pe=60+(Pe-5e3)/5e3*25;else{const ke=(Pe-1e4)/1e3;pe=85+10*(1-Math.exp(-ke/10))}D(Math.min(pe,95)),de.current=window.requestAnimationFrame(me)};de.current=window.requestAnimationFrame(me)}else V(y.l2.failed);else L===y.l2.succeeded?(D(100),de.current!==null&&(cancelAnimationFrame(de.current),de.current=null)):(L===y.l2.failed||L===y.l2.uninitialized)&&(de.current!==null&&(cancelAnimationFrame(de.current),de.current=null),L===y.l2.uninitialized&&D(0));return()=>{de.current!==null&&(cancelAnimationFrame(de.current),de.current=null)}},[L,X]);const Se=async le=>{const me=new h.A(sdkStore,le,h.A.MODE.snapshot),Pe=me.getRootSnapshot(),{hotAttr:{name:pe}}=Pe,ke=(0,i.QP)({item:Pe,sdk:me}),We=(0,i.Gq)(me,le,!1,"local"),Ee=Math.round(We[2]-We[0]),Ae=Math.round(We[3]-We[1]),Ce=document.createElement("div");Ce.innerHTML=ke;const{cssStringList:_e,htmlStringList:Ge}=await(0,f.Z)({element:Ce,width:Ee,height:Ae,presetFontsSet:(0,P.cU)(le,sdkStore)}),Xe='\n \n \n \n \n '+pe+"\n \n "+_e.join("")+"\n \n \n "+Ge.join("")+"\n \n ",Ue=new Blob([Xe],{type:"text/html;charset=utf-8"}),pt=pe+".html",Qe=await new File([Ue],pt,{type:"text/html"}).arrayBuffer();return{blob:Ue,arrayBuffer:new Uint8Array(Qe)}},xe=async le=>{const me=(0,y.fY)(le),Pe=[];for(const pe of me){const{arrayBuffer:ke}=await Se(pe.key);Pe.push(ke)}return Pe},be=async()=>{switch($){case y.g6.SINGLE_CANVAS:if(A){var le;const Pe=sdkStore.getHotItem(A);if((Pe==null||(le=Pe.hotAttr)==null?void 0:le.type)===p.x.Canvas&&!(0,s.OO)(A)){const{arrayBuffer:pe}=await Se(A);return pe}}case y.g6.CURRENT_PAGE:if(E){const Pe=sdkStore.getHotItem(E);if(Pe){var me;const pe=await xe(E);return[{key:E,pageName:Pe==null||(me=Pe.hotAttr)==null?void 0:me.name,zip:pe}]}}case y.g6.ALL_PAGE:return await(0,y.w7)(te.children,xe)}},ie=async(le,me,Pe)=>{Y(le),he.current=Pe;try{await a(me)}catch(pe){console.error("syncInfoToPx error",pe)}},oe=le=>{V(y.l2.pending);const{isChecked:me,selectedProjectCid:Pe,selectedOrgCid:pe}=le;ie(Pe,pe,me)},ue=async le=>{V(y.l2.pending);const{selectedFolderCid:me,isChecked:Pe,selectedOrgCid:pe}=le,ke=(U==null?void 0:U.name)||I18N.dModals.canvas_converted_to_pixso.create,We=await C(ke,{folderCid:me});We!=null&&We.cid&&(J(!0),ie(We==null?void 0:We.cid,pe,Pe))},ve=()=>{const le="/design/editor/"+B;L===y.l2.succeeded&&B?window.open(le,"_blank"):L===y.l2.failed&&(V(y.l2.pending),Te())},re=async()=>{V(y.l2.uninitialized),Z&&B&&await v(B),Y(""),J(!1)},fe=()=>{L==y.l2.pending?re():N()},we=()=>{if(L===y.l2.pending)re();else{var le;H==null||(le=H.current)==null||(le=le.contentWindow)==null||le.postMessage({msg:"updateFolderList"},"*"),V(y.l2.uninitialized),Y("")}},Te=async()=>{const le=await be();if(!(!le||!(Q!=null&&Q.current)))switch($){case y.g6.SINGLE_CANVAS:{var me;(me=Q.current)==null||(me=me.contentWindow)==null||me.postMessage({type:"proto2-export-single-canvas",param:{htmlUint8Array:le}},"*");break}}};return{exportStatus:L,exportProgress:M,exportFailReason:W,designProjectCid:B,handleConvertedToFile:oe,handleConvertedAsNewFile:ue,handleConfirmed:ve,handleCanceled:we,handleClose:fe,handleLoadedDesignIframe:Te,handleUpdaterResult:(le,me)=>{if(J(!1),$===y.g6.SINGLE_CANVAS&&(0,b.Kr)({...O,isSuccess:le}),le){if(V(y.l2.succeeded),me&&he.current){const Pe="/design/editor/"+me;window.open(Pe,"_blank")}}else V(y.l2.failed),F(y.rU.GENERIC)}}};var S=e(25306),t=e(27845),_=e(67787);const I=_.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:",";}}}}"],K=>K.theme.color_bg_border_01,K=>K.theme.color_text_L1,K=>K.theme.color_bg_white,K=>K.theme.color_text_L1,K=>K.theme.color_text_L3,K=>K.theme.color_text_L2,K=>K.theme.color_text_L1,K=>K.theme.color_btn_secondary_hover,K=>K.theme.color_btn_primary_normal,K=>K.theme.color_text_L1,K=>K.theme.color_text_L1,K=>K.theme.color_text_L3,K=>K.theme.color_bg_border_02,K=>K.theme.color_text_L1,K=>K.theme.color_bg_white);var k=e(72214);const z=(0,n.memo)(K=>{var $;const{currentUser:A,currentOrg:E,theme:U,pageType:O,canvasKey:H,currentPageKey:Q,currentProject:N,from:L,onClose:V}=K,M=($=new URLSearchParams(location.search))==null?void 0:$.get("pageType"),D=O||([y.g6.SINGLE_CANVAS,y.g6.CURRENT_PAGE,y.g6.ALL_PAGE].includes(M)?M:y.g6.ALL_PAGE),W=(0,n.useRef)(null),F=(0,n.useRef)(null),B={spaceSelectDisabled:!1,title:I18N.dModals.canvas_converted_to_pixso.title,projectType:"design2",currentOrgCid:(E==null?void 0:E.cid)||"",isShowCheck:!0,checkboxText:I18N.dModals.canvas_converted_to_pixso.checkBoxText,from:"design2",theme:U,folderSubmissionEnabled:!0,showCancel:!1,submitBtnText:I18N.dModals.canvas_converted_to_pixso.submitBtnText,isFromProto:!0},Y=(0,n.useMemo)(()=>{const ue=L==="contextMenu"?"\u53F3\u952E\u83DC\u5355":L==="rightPanel"?"\u53F3\u4FA7\u9762\u677F":"";if(N==null?void 0:N.is_org_project){if(E){const re=S.tz.InitialOrg(E),fe=re.planSdk.designPlan.status===t._E.Paid,we=re.planSdk.prototypePlan.status===t._E.Paid;return{type:ue,isDesignVipUser:fe,isProtoVipUser:we}}}else if(A){const re=S.tz.InitialUser(A),fe=re.planSdk.designPlan.status===t.pZ.Paid,we=re.planSdk.prototypePlan.status===t.pZ.Paid;return{type:ue,isDesignVipUser:fe,isProtoVipUser:we}}return{type:ue,isDesignVipUser:!1,isProtoVipUser:!1}},[L,E,A,N]),{exportStatus:X,exportProgress:G,exportFailReason:Z,designProjectCid:J,handleConvertedToFile:te,handleConvertedAsNewFile:he,handleConfirmed:de,handleClose:Se,handleCanceled:xe,handleLoadedDesignIframe:be,handleUpdaterResult:ie}=g({pageType:D,canvasKey:H,currentPageKey:Q,currentProject:N,trackParam:Y,$projectSelectIframeRef:W,$designIframeRef:F,onClose:V});(0,n.useEffect)(()=>{const ue=async ve=>{const{msg:re,param:fe,type:we,data:Te}=ve.data;if(ve.data==="close"){V();return}switch(re){case"submit":{te(fe);break}case"submit-folder":{he(fe);break}default:break}switch(we){case"design2-load-complete":{be();break}case"design2-proto2-converted-pixso-result":{const{success:Ie,projectCid:le}=Te;ie(Ie,le);break}default:break}};return window.addEventListener("message",ue),()=>{window.removeEventListener("message",ue)}},[]);const oe=()=>(0,k.jsxs)("div",{className:"export-status-container",children:[(0,k.jsxs)("div",{className:"header",children:[(0,k.jsx)("div",{className:"title",children:I18N.dModals.canvas_converted_to_pixso.title}),(0,k.jsx)(o.A,{size:24,onClick:Se})]}),(0,k.jsxs)("div",{className:"content-box",children:[X===y.l2.pending?(0,k.jsxs)("svg",{className:"export-status-pending",children:[(0,k.jsx)("circle",{className:"track"}),(0,k.jsx)("circle",{strokeDasharray:50*2*Math.PI,strokeDashoffset:50*2*Math.PI*(1-G/100),className:"fill"}),(0,k.jsx)("foreignObject",{children:(0,k.jsx)("div",{className:"export-progress-container",children:(0,k.jsx)("span",{children:Math.round(G)+"%"})})})]}):X===y.l2.succeeded?(0,k.jsx)(w.A,{size:120}):X===y.l2.failed?(0,k.jsx)("div",{className:"failed-icon-box",children:(0,k.jsx)(u.A,{size:56})}):null,(0,k.jsx)("span",{children:X===y.l2.pending?I18N.dModals.canvas_converted_to_pixso.export_status.pending:X===y.l2.succeeded?I18N.dModals.canvas_converted_to_pixso.export_status.success:y.zK[Z||y.rU.GENERIC]}),X===y.l2.pending&&(0,k.jsx)("span",{className:"beta-desc",children:I18N.dModals.canvas_converted_to_pixso.beta_desc})]}),(0,k.jsxs)("div",{className:"footer",children:[(0,k.jsx)(d.Ay,{onClick:xe,children:X===y.l2.pending?I18N.dModule.cancel:I18N.dModals.canvas_converted_to_pixso.export_button.back}),X===y.l2.succeeded&&(0,k.jsx)(d.Ay,{type:"primary",onClick:de,children:I18N.dModals.canvas_converted_to_pixso.export_button.check})]})]});return(0,k.jsxs)(I,{children:[(0,k.jsx)("iframe",{className:c()("project-select-iframe",X),src:"/embed/project_select?param="+JSON.stringify(B),ref:W}),X!==y.l2.uninitialized&&oe(),J&&(0,k.jsx)("iframe",{className:"design2-iframe",src:"/design/editor/"+J,ref:F})]})})},12566:(Fe,ee,e)=>{"use strict";e.d(ee,{k:()=>Ae});var n=e(43678),r=e(38502),c=e(18381),o=e(15207),w=e(88463),u=e(17307),d=e(50521),y=e(59736),h=e(15515),i=e(67588),f=e(60589),p=e(4235),s=e(8614),l=e(70933),C=e(77698),v=e(2099),a=e(53732),P=e.n(a),b=e(18821),g=e.n(b),S=e(41589),t=e.n(S),_=e(67709),I=e.n(_),k=e(81973),j=e(21066),z=e(19376),K=e(62587),$=e(31569),A=e(93257),E=e(46720),U=e(57514),O=e(83672),H=e(64320),Q=e(70812),N=e(67787),L=e(51090);const V=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;}}}"],Ce=>Ce.theme.color_text_L1,Ce=>Ce.theme.color_text_L1,Ce=>Ce.theme.color_btn_secondary_hover,Ce=>Ce.theme.color_text_L3,Ce=>Ce.theme.color_text_L1,Ce=>Ce.theme.color_bg_border_01,Ce=>Ce.theme.color_btn_primary_normal),M=(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;}"],Ce=>Ce.theme.color_text_L1,Ce=>Ce.theme.color_btn_secondary_hover,Ce=>Ce.theme.color_bg_border_01,Ce=>Ce.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;}}}"],M,L.L9),W=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);}}}}}"],M,L.L9),F=(0,N.Ay)(j.Ay).withConfig({displayName:"styled__StyledMenuContent",componentId:"sc-11m2nhp-3"})(["z-index:201;ul{min-width:64px;}",";"],L.ZJ),B=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:",";}}"],Ce=>Ce.theme.color_text_L1,Ce=>Ce.spanMaxWidth);var Y=e(72214);const X={isOpen:!1,position:{top:0,left:0}},G={fill:{},title:"",desc:"",key:""},Z=Ce=>{let{type:_e,libKey:Ge,libData:Xe,mode:Ue,onSetRefStyle:pt,onColorChange:Ye,onClose:Qe,onGetNewEditModalPostion:lt=()=>({left:0,top:0})}=Ce;const[tt,qe]=(0,r.useState)(X),[et,st]=(0,r.useState)(G),at=(0,r.useRef)(null),ct=(0,c.d4)(l.th),rt=(0,c.d4)(l.Hi),At=(0,c.d4)(l.Xw),ot=(0,c.d4)(p.p$),{position:Tt}=(0,c.d4)(f.FK),ft=(0,c.d4)(f.I5),Nt=(0,c.d4)(f.md),Bt=(0,c.d4)(k.Dw),zt=(0,c.d4)(k.jj),Xt=(0,c.wA)(),bt=(0,r.useMemo)(()=>{if(_e==="color"){const St=(0,v.OP)({selections:ot,attr:ct,supAttr:rt,styleType:"color"});return St==null?void 0:St.key}if(_e==="appear")return Bt==null?void 0:Bt.key;if(_e==="text")return zt==null?void 0:zt.key},[Bt==null?void 0:Bt.key,zt==null?void 0:zt.key,ot,rt,_e,Xe]);(0,r.useEffect)(()=>{bt&&(0,v.qP)(bt)},[bt]);const jn=St=>{var fn;return(St==null||(fn=St.hotAttr)==null?void 0:fn.styleType)==="color"||(St==null?void 0:St.styleType)==="color"?!(ft.isOpen||Nt.isOpen):Ge==="local"},xo=St=>{if(st(St),_e==="color"&&Xt({type:"modal:update:state",payload:{libEditColorModal:{isOpen:!0,position:At?{...At,left:At.left-240}:lt(),type:"edit",attr:ct,supAttr:rt,color:St==null?void 0:St.fill,currentKey:St==null?void 0:St.key,title:St==null?void 0:St.title,desc:St==null?void 0:St.desc,onSetRefStyle:pt,onColorChange:Ye}}}),_e==="appear"){const fn={borderRadius:St==null?void 0:St.borderRadius,borderRadiusIsVisible:St==null?void 0:St.borderRadiusIsVisible,borderVisibility:St==null?void 0:St.borderVisibility,border:St==null?void 0:St.border,fill:St==null?void 0:St.fill,shadow:St==null?void 0:St.shadow,refStyles:St==null?void 0:St.refStyles};Xt({type:"modal:update:state",payload:{libEditAppearModal:{isOpen:!0,position:Tt?{...Tt,left:Tt.left-240}:lt(),type:"edit",refStyles:St==null?void 0:St.refStyles,currentKey:St==null?void 0:St.key,title:St==null?void 0:St.title,desc:St==null?void 0:St.desc,attrs:fn}}})}if(_e==="text"){const fn=g()(St,H.F$);Xt({type:"modal:update:state",payload:{libEditTextModal:{isOpen:!0,position:Tt?{...Tt,left:Tt.left-240}:lt(),type:"edit",currentKey:St==null?void 0:St.key,refStyles:St==null?void 0:St.refStyles,title:St==null?void 0:St.title,desc:St==null?void 0:St.desc,attrs:fn}}})}},Po=(St,fn)=>{St.stopPropagation(),st(fn),xo(fn),yo(St)},Gn=(St,fn)=>{!jn(fn)||Ge!=="local"||(qe({isOpen:!0,position:{top:St.clientY,left:St.clientX}}),st(fn))},yo=St=>{St.preventDefault(),St.stopPropagation(),qe(X)},Ve=()=>{var St;if((et==null?void 0:et.styleType)==="color"){const fn=(0,v.OP)({selections:ot,attr:ct,supAttr:rt,styleType:"color"});(fn==null?void 0:fn.key)===et.key?Xt({type:"entry:libStyle:del:widget:refStyles",payload:{selections:ot,key:ct,supAttr:rt,type:"color",refKey:et.key}}):Xt({type:"entry:libStyle:del:widget:colorRefStyles:by:refKey",payload:{refKey:et.key,selections:ot}})}(et==null?void 0:et.styleType)==="appear"&&(Bt==null?void 0:Bt.key)===et.key&&Xt({type:"settings:update:currentAppearRefStyle",payload:null}),(et==null?void 0:et.styleType)==="text"&&(zt==null?void 0:zt.key)===et.key&&Xt({type:"settings:update:currentTextRefStyle",payload:null}),et.key&&sdkStore.deleteHotItem(et.key),Xt({type:"style-lib:set:attr",payload:{cacheLocalLibTag:Math.random()}}),Q.U4.protoStyleTrack((St=MB)==null||(St=St.user)==null?void 0:St.id,"\u5220\u9664",et.styleType)},ut=()=>Xt({type:"modal:reset:popup:state",payload:{modalName:"libPanelModal"}}),Kt=(St,fn)=>{var En;Ge!=="local"&&sdkStore.updateHotItem({...St,hotAttr:{...St==null?void 0:St.hotAttr,libKey:Ge},sup:"B@style"});const gn=St.hotAttr.styleType;if(gn==="color"){var Yn,Pn;const io=(Yn=ot==null?void 0:ot.map(go=>sdkStore.getHotItem(go)))!=null?Yn:[],to=(0,$.i)(io,"fill");if(Ye&&Ye({value:{...fn,fillIsVisible:(Pn=to==null?void 0:to.fillIsVisible)!=null?Pn:!0},needClearRef:!1}),ft.isOpen){var _n;const Io={...(_n=ft==null?void 0:ft.refStyles)!=null?_n:{color:{}}},co=rt==null?void 0:rt.split("-");(0,v.$b)({supAttrArr:co,color:Io.color,key:ct,val:St.key}),Xt({type:"modal:update:state",payload:{libEditAppearModal:{...ft,refStyles:Io}}})}else if(Nt.isOpen){var Fn,Nn;const go=(Fn=Nt==null?void 0:Nt.refStyles)!=null?Fn:{color:{}},Io={...go},co=rt==null?void 0:rt.split("-"),On=(Nn=t()(go==null?void 0:go.color))!=null?Nn:{};Io.color=On,(0,v.$b)({supAttrArr:co,color:On,key:ct,val:St.key}),Xt({type:"modal:update:state",payload:{libEditTextModal:{...Nt,refStyles:Io}}})}else Xt({type:"entry:libStyle:update:widget:refStyles",payload:{supAttr:rt,selections:ot,type:"color",key:ct,refKey:St==null?void 0:St.key}});pt&&pt(St)}gn==="appear"&&(Xt({type:"entry:libStyle:use:appearRef",payload:{currentRefStyle:St,onSetRefStyle:pt}}),ut()),gn==="text"&&(Xt({type:"entry:libStyle:use:textRef",payload:{currentRefStyle:St,onSetRefStyle:pt}}),ut()),Qe&&Qe(),Q.U4.protoStyleTrack((En=MB)==null||(En=En.user)==null?void 0:En.id,"\u7ED1\u5B9A",gn)};return(0,Y.jsxs)(V,{className:"styles-content "+Ue,children:[Xe.map(St=>{var fn;if(!(St!=null&&St.length))return null;const En=(fn=St[0])==null?void 0:fn.groupPathName;return(0,Y.jsxs)("div",{className:"group-list",children:[En&&(0,Y.jsx)(J,{pathName:En}),(0,Y.jsx)("div",{className:"group-list-content",children:St==null?void 0:St.map((gn,Yn)=>{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,Fn=_n&&(0,K.$8)(_n,{w:200,h:100}),Nn=Fn&&(0,K.TQ)(Fn),io={...gn.hotAttr,title:gn.hotAttr.name,desc:gn.hotAttr.desc,key:gn.key,fill:_n};return(0,Y.jsx)(A.A,{content:(0,E.M)(gn.hotAttr,Nn),direction:"down",delay:500,children:(0,Y.jsxs)("div",{"data-key":gn.key,className:P()("lib-style-item",gn.hotAttr.styleType,{"is-active":bt===gn.key}),onContextMenu:to=>Gn(to,io),onClick:()=>Kt(gn,_n),children:[gn.hotAttr.styleType==="color"&&(0,Y.jsx)(z.I,{ref:at,color:Fn,attr:"local-color",index:Yn,solidRenderType:"circle",size:Ue==="grid"?28:16}),gn.hotAttr.styleType==="appear"&&(0,Y.jsx)(U.U,{appearStyle:gn,mode:Ue,index:I()(gn.key)}),gn.hotAttr.styleType==="text"&&(0,Y.jsx)(O.c,{textStyle:gn}),Ue==="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]})]}),Ge==="local"&&jn(gn)&&(0,Y.jsx)(A.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)})})]},St[0].sup)}),tt.isOpen&&(0,Y.jsxs)(F,{position:tt.position,onClose:yo,className:"lib-panel-actions-menu",children:[(0,Y.jsx)(j.Dr,{text:"\u7F16\u8F91",onClick:()=>xo(et)}),(0,Y.jsx)(j.Dr,{text:"\u5220\u9664",onClick:Ve})]})]})},J=(0,r.memo)(Ce=>{let{pathName:_e}=Ce;const Ge=(0,r.useMemo)(()=>_e.split("/"),[_e]),Xe=(0,r.useMemo)(()=>{const Ue=Ge==null?void 0:Ge.length;return Ue===2?"82px":Ue===3?"36px":"unset"},[Ge]);return(0,Y.jsx)(B,{className:"group-path-name-content",spanMaxWidth:Xe,children:Ge.map((Ue,pt)=>(0,Y.jsx)("span",{className:P()("path-name","order-"+(pt+1)),children:pt!==0?"/"+Ue:Ue},pt))})});var te=e(33573),he=e(88194),de=e(15400),Se=e(60651),xe=e(8926);const be=Ce=>{let{lib:_e,libData:Ge,mode:Xe}=Ce;const Ue=(0,c.d4)(l.YT),pt=(0,c.wA)(),Ye=(0,r.useMemo)(()=>_e.value==="local"?Ue.cid:_e.value,[Ue.cid,_e.value]),Qe=lt=>pt({type:"style-lib:set:currentMubanFolderData",payload:{...lt,projectMetaCid:Ye}});return(0,Y.jsxs)("div",{className:Xe,children:[(0,Y.jsx)(ie,{mubanList:Ge.filter(lt=>!lt.hotAttr.asFolder),projectMetaCid:Ye,mode:Xe}),(0,Y.jsx)(oe,{folderList:Ge.filter(lt=>lt.hotAttr.asFolder),projectMetaCid:Ye,mode:Xe,onGotoFolderDetail:Qe})]})},ie=Ce=>{let{projectMetaCid:_e,mubanList:Ge,mode:Xe}=Ce;const[Ue,pt]=(0,r.useState)(""),Ye=(0,c.d4)(p.p$),Qe=(0,c.d4)(s.nC),lt=(0,c.d4)(Se.bt),{onSuccessCallBack:tt}=(0,c.d4)(f.FK),qe=(0,c.d4)(f.Yo),et=(0,c.wA)();(0,r.useEffect)(()=>{if(Ye.length>0){var at;const ct=sdkStore.getHotItem(Ye[0]),rt=ct==null||(at=ct.hotAttr)==null?void 0:at.refRBPageKey;if(pt(rt),rt){const At=document.querySelector('#lib-panel-modal .muban-list .muban-item[data-key="'+rt+'"]');if(At){const ot=document.querySelector("#lib-panel-modal .lib-panel-content");ot&&(ot.scrollTop=At==null?void 0:At.offsetTop)}}}},[]);const st=async at=>{let ct=sdkStore,rt=at;if(sdkStore.isActiveKey(at.key)){const ft=sdkStore.getHotItem(at.key);if(lt===at.key||sdkStore.parseSubtree(sdkStore.saveSubtree(ft.sub)).contentFlatTree.get("B@ref-muban").sub.includes(lt))return MB.notice({text:I18N.SettingPanel.design.master_cannot_nesting,type:"error"}),!0;rt=sdkStore.getHotItem(at.key)}else{var At;ct=(At=Qe.get(_e))!=null?At:sdkStore,rt=await(0,xe.fZ)({libSdkStore:ct,data:at,projectMetaCid:_e})}const ot=Ye.map(ft=>{var Nt,Bt,zt;const Xt=sdkStore.getHotItem(ft);if(Xt)return{...Xt,hotAttr:{...Xt==null?void 0:Xt.hotAttr,refRBPageKey:rt.key,refContentKey:(Nt=rt)==null||(Nt=Nt.hotAttr)==null?void 0:Nt.defaultCanvasKey,w:at.hotAttr.w,h:at.hotAttr.h,x:(Xt==null?void 0:Xt.hotAttr.x)-(Xt==null?void 0:Xt.hotAttr.w)/2+at.hotAttr.w/2,y:(Xt==null?void 0:Xt.hotAttr.y)-(Xt==null?void 0:Xt.hotAttr.h)/2+at.hotAttr.h/2,name:(Bt=rt)==null||(Bt=Bt.hotAttr)==null?void 0:Bt.name,scroll:(zt=rt)==null||(zt=zt.hotAttr)==null?void 0:zt.scroll}}}).filter(ft=>ft);if(et({type:"entry:widget:change",payload:{flatChgList:ot,shouldReBuildTree:!0}}),tt(rt),pt(rt.key),qe.isOpen&&Ye.length===1){var Tt;et({type:"modal:update:state",payload:{previewModal:{...qe,activePageKey:rt.key,activeCanvasKey:"/"+Ye[0]+"/"+((Tt=rt)==null||(Tt=Tt.hotAttr)==null?void 0:Tt.defaultCanvasKey),basketKey:Ye[0],width:rt.hotAttr.w,height:rt.hotAttr.h}}})}};return(0,Y.jsx)(D,{className:"muban-list "+Xe,children:Ge==null?void 0:Ge.map(at=>(0,Y.jsxs)("li",{"data-key":at.key,className:P()("muban-item",{"is-active":Ue===at.key}),onClick:()=>st(at),children:[(0,Y.jsx)("div",{className:"muban-img-box",children:(0,Y.jsx)(te.Ay,{projectMetaCid:_e,snapshotKey:at.hotAttr.defaultCanvasKey,isVisible:!0,mode:he.rY.PNG_CANVAS})}),Xe==="list"&&(0,Y.jsx)("span",{className:"name",children:at.hotAttr.name})]},at.key))})},oe=Ce=>{let{folderList:_e,projectMetaCid:Ge,mode:Xe,onGotoFolderDetail:Ue}=Ce;return(0,Y.jsxs)(W,{className:P()("folder-list",Xe),children:[_e.length>0&&(0,Y.jsx)(de.cG,{className:"divider"}),_e==null?void 0:_e.map(pt=>{const Ye=pt==null?void 0:pt.children[0];return(0,Y.jsxs)("li",{className:"folder",onClick:()=>Ue(pt),children:[(0,Y.jsxs)("div",{className:"left-content",children:[Xe==="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:Ge,snapshotKey:Ye==null?void 0:Ye.hotAttr.defaultCanvasKey,isVisible:!0,mode:he.rY.PNG_CANVAS})}),(0,Y.jsx)("span",{className:"name",children:pt.hotAttr.name})]}),(0,Y.jsx)(u.C,{name:"common/expand/plus",className:"expand-icon",size:24})]},pt.key)})]})};var ue=e(79150);const ve=Ce=>{let{mode:_e}=Ce;const Ge=(0,c.d4)(s.dN),Xe=(0,c.d4)(p.p$),Ue=(0,c.wA)(),pt=()=>{Ue({type:"style-lib:set:currentMubanFolderData",payload:null})},Ye=(0,r.useMemo)(()=>{if(Xe.length>0){var Qe;const lt=sdkStore.getHotItem(Xe[0]);return lt==null||(Qe=lt.hotAttr)==null?void 0:Qe.refRBPageKey}},[Xe]);if(Ge)return(0,Y.jsxs)(re,{children:[(0,Y.jsxs)("div",{className:"header-nav",children:[(0,Y.jsx)(ue.A,{name:"design/arrow/right",className:"back-icon",onClick:pt}),(0,Y.jsx)("span",{className:"folder-name",children:Ge.hotAttr.name})]}),(0,Y.jsx)(ie,{mode:_e,mubanList:Ge.children,projectMetaCid:Ge==null?void 0:Ge.projectMetaCid,activeMubanRefKey:Ye})]})},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;}}}"],Ce=>Ce.theme.color_text_L1);var fe=e(11891);const we=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;",";}}"],Ce=>Ce.theme.color_text_L1,L.L9),Te=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:",";}}"],Ce=>Ce.theme.color_text_L2,Ce=>Ce.theme.color_text_L1,Ce=>Ce.theme.color_bg_border_02,Ce=>Ce.theme.color_bg_white,Ce=>Ce.theme.color_btn_secondary_hover,Ce=>Ce.theme.color_btn_secondary_active),Ie=Ce=>{let{type:_e,lib:Ge,libData:Xe,mode:Ue,onSetRefStyle:pt,onColorChange:Ye,onClose:Qe,onGetNewEditModalPostion:lt}=Ce;return(0,Y.jsxs)("section",{children:[(0,Y.jsx)("span",{className:"title",children:Ge.text}),_e==="muban"?(0,Y.jsx)(be,{lib:Ge,libData:Xe,mode:Ue}):(0,Y.jsx)(Z,{type:_e,libKey:Ge.value,libData:Xe,mode:Ue,onSetRefStyle:pt,onColorChange:Ye,onClose:Qe,onGetNewEditModalPostion:lt})]},Ge.value)},le=Ce=>{let{type:_e,onGetNewEditModalPostion:Ge=()=>({left:0,top:0})}=Ce;const Xe=(0,c.d4)(i.O4),Ue=(0,c.d4)(f.FK),pt=(0,c.d4)(p.p$),Ye=(0,c.d4)(l.th),Qe=(0,c.d4)(l.Hg),lt=(0,c.d4)(l.Xw),tt=(0,c.d4)(l.Zn),qe=(0,c.d4)(f.I5),et=(0,c.d4)(f.md),st=(0,c.wA)(),at=(0,r.useMemo)(()=>_e==="color"?!(qe.isOpen||et.isOpen):_e!=="muban",[qe.isOpen,et.isOpen,_e]),ct=()=>{if(_e==="color"){const rt={...lt,left:lt.left-240};st({type:"entry:libStyle:open:color:modal",payload:{color:tt,position:rt,attr:Ye,attrPanel:Qe}});return}_e==="appear"&&st({type:"modal:update:state",payload:{libEditAppearModal:{isOpen:!0,position:Ue!=null&&Ue.position?{...Ue.position,left:Ue.position.left-240}:Ge(),type:"create",...(0,v.xe)(pt)}}}),_e==="text"&&st({type:"modal:update:state",payload:{libEditTextModal:{isOpen:!0,position:Ue!=null&&Ue.position?{...Ue.position,left:Ue.position.left-240}:Ge(),type:"create",...(0,v.l$)(pt)}}})};return(0,Y.jsxs)(Te,{className:"empty-content",children:[(0,Y.jsx)("img",{src:"/mb-proto2/images/lib/"+(_e==="text"?"font-empty":"color-empty")+"-"+Xe+".svg"}),(0,Y.jsx)("span",{className:"empty-name",children:_e==="muban"?"\u6682\u65E0"+I18N.libPanel.common[_e]:"\u6682\u65E0"+I18N.libPanel.common[_e]+"\u6837\u5F0F"}),at&&(0,Y.jsx)("button",{className:"create-btn",onClick:ct,children:"\u521B\u5EFA"+I18N.libPanel.common[_e]+"\u6837\u5F0F"})]})},me=Ce=>{let{type:_e,isSearch:Ge,libsDataMap:Xe,currentLib:Ue,libsOptionList:pt,currentLibOption:Ye,mode:Qe,onSetRefStyle:lt,onColorChange:tt,onClose:qe,onGetNewEditModalPostion:et}=Ce;const st=(0,c.d4)(s.dN),at=(0,c.d4)(p.p$),ct=(0,c.d4)(l.YT),rt=(0,r.useRef)(null),At=(0,c.wA)(),ot=(0,r.useMemo)(()=>{let Tt=!0;if(Ue==="all")Xe.forEach((ft,Nt)=>{(_e==="muban"?(ft==null?void 0:ft.length)!==0:ft.some(Bt=>Bt.length!==0))&&(Tt=!1)});else{const ft=Xe.get(Ue);(_e==="muban"?(ft==null?void 0:ft.length)!==0:ft!=null&&ft.some(Nt=>(Nt==null?void 0:Nt.length)!==0))&&(Tt=!1)}return Tt},[Ue,Xe,_e]);return(0,r.useEffect)(()=>{if(at.length>0&&_e==="muban"){var Tt;const ft=sdkStore.getHotItem(at[0]),Nt=ft&&(ft==null||(Tt=ft.hotAttr)==null?void 0:Tt.refRBPageKey),Bt=Nt&&sdkStore.getHotItem(Nt);if(Bt){const Xt=(Xe.get(Bt.hotAttr.libKey||"local")||[]).find(bt=>{var jn,xo;return(bt==null||(jn=bt.children)==null?void 0:jn.length)>0&&(bt==null||(xo=bt.children)==null?void 0:xo.findIndex(Po=>Po.key===Nt))!==-1});if(Xt){const bt=Bt.hotAttr.libKey?Bt.hotAttr.libKey:ct.cid;At({type:"style-lib:set:currentMubanFolderData",payload:{...Xt,projectMetaCid:bt}})}}}},[_e]),(0,Y.jsxs)(we,{className:"lib-panel-content "+Qe,ref:rt,children:[ot?Ge?(0,Y.jsx)(fe.Z,{}):(0,Y.jsx)(le,{type:_e,onGetNewEditModalPostion:et}):st?(0,Y.jsx)(ve,{mode:Qe}):Ue==="all"?pt.slice(1).map(Tt=>{const ft=Xe.get(Tt.value)||[];return ft.every(Nt=>(Nt==null?void 0:Nt.length)===0)?null:(0,Y.jsx)(Ie,{lib:Tt,libData:ft,mode:Qe,onSetRefStyle:lt,onColorChange:tt,type:_e,onClose:qe,onGetNewEditModalPostion:et},Tt.value)}):(0,Y.jsx)(Ie,{lib:Ye,libData:Xe.get(Ue)||[],mode:Qe,onSetRefStyle:lt,onColorChange:tt,type:_e,onClose:qe,onGetNewEditModalPostion:et}),rt&&(0,Y.jsx)(C.yP,{type:"vertical",containerRef:rt,isAutoHideBar:!0})]})},Pe=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;}"],Ce=>Ce.theme.color_bg_border_01,Ce=>Ce.theme.color_bg_border_01),pe=(0,N.DU)([".context-menu-mask{z-index:200;}"]),ke=[{text:"\u5168\u90E8\u8D44\u6E90\u5E93",value:"all"},{text:"\u672C\u5730\u8D44\u6E90\u5E93",value:"local"}],We="style_lib_color_modal_mode",Ee="style_lib_muban_modal_mode",Ae=Ce=>{let{type:_e="color",onSetRefStyle:Ge,onColorChange:Xe,onClose:Ue,onGetNewEditModalPostion:pt}=Ce;const[Ye,Qe]=(0,r.useState)(!1),[lt,tt]=(0,r.useState)(""),[qe,et]=(0,r.useState)("all"),[st,at]=(0,r.useState)(ke),[ct,rt]=(0,r.useState)(_e==="appear"||_e==="text"?"list":(0,h.Yt)(_e==="color"?We:Ee,"list",h.qW.String)),[At,ot]=(0,r.useState)(new Map),[Tt,ft]=(0,r.useState)(),Nt=(0,c.d4)(s.Rd),Bt=(0,c.d4)(s.fn),zt=(0,c.d4)(s.nC),Xt=(0,c.wA)();(0,r.useEffect)(()=>{(async()=>{const Kt=sdkStore.getSubHotItemList("B@ext").filter(Fn=>Fn.hotAttr.extType==="extProtoLib"&&!Fn.hotAttr.extInfo.isRemove),St=Kt==null?void 0:Kt.map(Fn=>{var Nn,io;return{text:(Nn=Fn.hotAttr)==null?void 0:Nn.name,value:(io=Fn.hotAttr)==null||(io=io.extInfo)==null?void 0:io.flatKey}}),fn=[...ke,...St];if(at(fn),_e==="muban")Xt({type:"entry:libStyle:mubanPanel:init:libMubanTreeMap"});else{const Fn=new Map;var En=!1,gn=!1,Yn;try{for(var Pn=(0,n.A)(fn),_n;En=!(_n=await Pn.next()).done;En=!1){const Nn=_n.value;if(Nn&&Nn.value!=="all")if(Nn.value==="local"){const io=(0,v.xT)({type:_e,isHasGroupPathName:!0});Fn.set(Nn.value,io)}else{const io=zt.get(Nn.value),to=(0,v.xT)({type:_e,isHasGroupPathName:!0,sdk:io});Fn.set(Nn.value,to)}}}catch(Nn){gn=!0,Yn=Nn}finally{try{En&&Pn.return!=null&&await Pn.return()}finally{if(gn)throw Yn}}ot(Fn)}Qe(!0)})()},[Nt,Xt,zt,_e]),(0,r.useEffect)(()=>{_e==="muban"&&ot(Bt)},[Bt,_e]);const bt=(0,r.useMemo)(()=>st.find(ut=>(ut==null?void 0:ut.value)===qe)||ke[0],[qe,st]),jn=(0,r.useMemo)(()=>st.filter(ut=>{var Kt,St;const fn=_e==="muban"?At==null||(Kt=At.get(ut.value))==null?void 0:Kt.length:At==null||(St=At.get(ut.value))==null||(St=St[0])==null?void 0:St.length;return ut.value!=="all"&&fn>0||ut.value==="all"}),[At,st,_e]),xo=ut=>{tt(ut)},Po=ut=>{if(!ut){ft(void 0);return}const Kt=ut.toUpperCase(),St=new Map;At==null||At.forEach((fn,En)=>{if(_e==="muban"){var gn;const Pn=((gn=fn.filter(_n=>{var Fn;return(_n==null||(Fn=_n.children)==null?void 0:Fn.length)>0}))!=null?gn:[]).map(_n=>{var Fn;return _n==null||(Fn=_n.children)==null?void 0:Fn.filter(Nn=>Nn.hotAttr.name.toUpperCase().includes(Kt))}).flat();St.set(En,[...fn.filter(_n=>_n.hotAttr.name.toUpperCase().includes(Kt)),...Pn])}else St.set(En,fn.map(Yn=>Yn.filter(Pn=>Pn.hotAttr.name.toUpperCase().includes(Kt))))}),ft(St)},Gn=()=>{tt(""),ft(void 0)},yo=(0,r.useCallback)(()=>{const ut=ct==="list"?"grid":"list";rt(ut),(0,h.a0)(_e==="color"?We:Ee,ut,h.qW.String)},[ct,_e]),Ve=ut=>{et(ut),Xt({type:"style-lib:set:currentMubanFolderData",payload:null})};return(0,Y.jsx)(Pe,{children:Ye?(0,Y.jsx)(Y.Fragment,{children:(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)("div",{className:"libPanel-header",children:[(0,Y.jsx)(w.A,{value:lt,className:"sear-bar",placeholder:"\u641C\u7D22"+I18N.libPanel.common[_e],onChange:xo,onSearch:Po,onClear:Gn,wait:200,canClear:!0}),(0,Y.jsxs)("div",{className:"select-actions",children:[(0,Y.jsx)(y.Z,{optionList:jn,displayLabel:bt==null?void 0:bt.text,selectedOption:bt==null?void 0:bt.value,width:160,onChange:Ve,className:"lib-menu-opener",menuClassName:"lib-select-menu",leftUse:"left"}),(_e==="color"||_e==="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:yo})]})]}),(0,Y.jsx)(me,{type:_e,libsDataMap:Tt||At,isSearch:!!lt,currentLib:qe,libsOptionList:st,currentLibOption:bt,mode:ct,onSetRefStyle:Ge,onColorChange:Xe,onClose:Ue,onGetNewEditModalPostion:pt}),(0,Y.jsx)(pe,{})]})}):(0,Y.jsx)(o.f,{className:"loading"})})}},12991:(Fe,ee,e)=>{"use strict";if(e.d(ee,{$Y:()=>M,JR:()=>b,Vt:()=>Q,WA:()=>g,dU:()=>L,nS:()=>K,o0:()=>V,qO:()=>j,rf:()=>P,wt:()=>a}),e.j!=477)var n=e(37754);var r=e(38155),c=e(54190),o=e(11032),w=e(85584),u=e(48790),d=e(77277);if(e.j!=477)var y=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},C={star:h.s$,find:h.F2,"page-screen":h.eg,"page-library":h.vL},v={user:h.wU,org:h.n,find:h.ez,"asset-pic":h.dn,"asset-sticker":h.SM},a=(D,W)=>{switch(D){case y.t_:return l[W];case y.Gd:return C[W];case y.b4:return v[W];case y.C:return"";case y.RD:return""}};let P=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 b=async D=>{var W,F;let{category:B,keyword:Y,size:X}=D;const G=()=>{B===y.b4&&MB.notice({text:I18N.Resources.searching.sensitive_keyword_search,type:"error"})};return await(0,n.P)({keyword:Y,size:X,triggerSensitiveWord:G,uId:(W=MB.user)==null?void 0:W.id,projectCid:(F=MB.getRootProject())==null?void 0:F.cid})},g=async D=>{let{dispatch:W,category:F,isSearchAll:B,keyword:Y,orgCid:X,builtWidgets:G,assetGroupCidSet:Z,userResourcesComboGroup:J,orgResourcesComboGroup:te,sceneTag:he,from:de,userAssetsMap:Se,orgAssetsMap:xe,isSaveAllAssetsMap:be}=D,ie,oe,ue,ve,re,fe=Se||new Map,we=xe||new Map,Te=Z;const Ie={category:B?"all":F,q:Y,limit:36};X&&(Ie.org_cid=X),(F===y.t_||B)&&he&&(Ie.scene_tag=he);const le=B?z:j;if(F===y.b4||B){if([ie,oe,ue,ve,re]=await Promise.all([(0,c.F7)(new URLSearchParams(Ie),de),(0,c.PK)(Y),b({category:F,keyword:Y,size:20}),!be&&(0,c.OJ)(),!be&&X&&(0,c.l9)(X)]),!be){const{userAssetGroupList:ke,userAssets:We}=ve,Ee=We.reduce((Ce,_e)=>Ce.set(_e.group_cid,(Ce.get(_e.group_cid)||[]).concat(_e)),new Map);fe=Ee,Te=new Set(ke.map(Ce=>Ce.cid));const Ae={userAssetGroups:ke,userAssetsMap:Ee,isRequestUserAssetGroup:!0,isSaveAllAssetsMap:!0};if(X){const{orgAssetGroupList:Ce,orgAssets:_e}=re,Ge=_e.reduce((Xe,Ue)=>Xe.set(Ue.group_cid,(Xe.get(Ue.group_cid)||[]).concat(Ue)),new Map);we=Ge,Te=new Set([...Te,...Ce.map(Xe=>Xe.cid)]),Ae.orgAssetGroups=Ce,Ae.orgAssetsMap=Ge,Ae.isRequestOrgAssetGroup=!0}W({type:"image-panel:update:state",payload:Ae})}const Pe=await le({category:F,searchResults:ie,builtWidgets:G,assetGroupCidSet:Te,userResourcesComboGroup:J,orgResourcesComboGroup:te,userAssetsMap:fe,orgAssetsMap:we,keyword:Y}),pe=B?Pe.result.asset:Pe;return t({data:Pe,assetData:pe,unsplashList:ue,isSearchAll:B}),S({data:Pe,assetData:pe,stickers:oe,isSearchAll:B}),Pe}return ie=await(0,c.F7)(new URLSearchParams(Ie),de),le({category:F,searchResults:ie,builtWidgets:G,assetGroupCidSet:Te,userResourcesComboGroup:J,orgResourcesComboGroup:te,userAssetsMap:fe,orgAssetsMap:we,keyword:Y})},S=D=>{let{data:W,assetData:F,stickers:B,isSearchAll:Y}=D;const X=B!=null&&B.length?B.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})}):[],G=X.length;G>0&&(F.list.push({cid:a(y.b4,P.AssetSticker),name:P.AssetSticker,list:[{type:d.I.FindSticker,items:X}]}),F.total+=G,Y&&(W.total+=G))},t=async D=>{let{data:W,assetData:F,unsplashList:B,isSearchAll:Y}=D;const X=B==null?void 0:B.length;X>0&&(F.list.push({cid:h.dn,list:[{type:d.I.FindPicture,items:B}],name:P.AssetPic}),F.total+=X,Y&&(W.total+=X))},_=(D,W)=>{const F=new Map;let B=[];const Y=[];if(W){const X=W.filter(G=>G.tab!=="hot");X.filter(G=>G.name[0].includes(D)).forEach(G=>{B=B.concat(G.imgs.map(Z=>{let[J,[te,he],[de,Se],xe]=Z;return F.set("findPicture_"+J,1),getFindPictureAsset({url:J,tab:G.tab,height:Se,width:de,tags:xe})}))}),X.forEach(G=>{G.imgs.filter(Z=>{let[,,,J]=Z;for(const te of J)if(te.includes(D))return!0;return!1}).forEach(Z=>{let[J,te,[he,de],Se]=Z;F.has("findPicture_"+J)||(F.set("findPicture_"+J,1),Y.push(getFindPictureAsset({url:J,tab:G.tab,height:de,width:he,tags:Se})))})})}return{cid:a(ASSET,P.Find),name:P.Find,list:[{type:SearchResultType.FindPicture,items:[...Y,...B]}]}},I=function(D,W,F){if(F===void 0&&(F=null),D!=null&&D.length&&W){const B=D.map(G=>(0,u.gT)(G,W).map(J=>({mt:J,currentResources:G,currentSearchCategory:F}))).flat(),Y=B.filter(G=>{let{currentResources:Z}=G;return Z.is_star}),X=B.filter(G=>{let{currentResources:Z}=G;return!Z.is_star});return{staredMarketTemplates:Y,unStaredMarketTemplates:X,marketTemplateItemList:B}}return{}},k=D=>{if(D!=null&&D.length){const W=D.filter(B=>{let{is_star:Y}=B;return Y}),F=D.filter(B=>{let{is_star:Y}=B;return!Y});return{staredMarketTemplateGroups:W,unStaredMarketTemplateGroups:F}}return{}},j=D=>{let{category:W,searchResults:F,builtWidgets:B,assetGroupCidSet:Y,userResourcesComboGroup:X,orgResourcesComboGroup:G,userAssetsMap:Z,orgAssetsMap:J}=D;const te=W===y.t_,he=W===y.C,de=W===y.Gd,Se=W===y.b4;let xe=0,be=[],ie=[];if(F){const{data:oe,p2mMMap:ue}=F,{market_template_groups:ve,market_templates:re,user_combo_group:fe,org_combo_group:we,icons:Te,user_asset_groups:Ie,user_assets:le,org_asset_groups:me,org_assets:Pe}=oe,pe=re&&re.filter(Ge=>(Ge==null?void 0:Ge.version)!=="v1"),ke=ve&&ve.filter(Ge=>(Ge==null?void 0:Ge.version)!=="v1"),{staredMarketTemplates:We,unStaredMarketTemplates:Ee,marketTemplateItemList:Ae}=I(pe,ue,W),{staredMarketTemplateGroups:Ce,unStaredMarketTemplateGroups:_e}=k(ke);if(he){const{data:Ge,sum:Xe}=H({icons:Te,marketTemplateGroups:ve});be=Ge,xe=Xe}else if(Se){const Ge=Ie.filter(lt=>{var tt;return((tt=Z.get(lt.cid))==null?void 0:tt.length)>0}),Xe=me.filter(lt=>{var tt;return((tt=J.get(lt.cid))==null?void 0:tt.length)>0}),{data:Ue,sum:pt}=O({assets:le,assetGroups:Ge,assetGroupCidSet:Y}),{data:Ye,sum:Qe}=O({assets:Pe,assetGroups:Xe,assetGroupCidSet:Y});pt&&be.push({cid:a(W,P.User),name:P.User,list:Ue}),Qe&&be.push({cid:a(W,P.Org),name:P.Org,list:Ye}),xe=pt+Qe}else if(de){const{pageList:Ge,pageGroupList:Xe,sum:Ue}=U({category:W,staredMarketTemplates:We,unStaredMarketTemplates:Ee,staredMarketTemplateGroups:Ce,unStaredMarketTemplateGroups:_e});Ge&&be.push(Ge),Xe&&be.push(Xe),xe=Ue}else if(te){const{data:Ge,sum:Xe}=$({category:W,staredMarketTemplates:[],userComboGroup:fe,staredMarketTemplateGroups:Ce,p2mMMap:ue,userResourcesComboGroup:X}),{data:Ue,sum:pt}=A({category:W,orgComboGroup:we,p2mMMap:ue,orgResourcesComboGroup:G}),{data:Ye,sum:Qe}=E({category:W,marketTemplates:Ae,unStaredMarketTemplateGroups:_e,builtWidgets:B});Qe&&be.push(Ye),Xe&&be.push(Ge),pt&&be.push(Ue),xe=xe+Xe+pt+Qe}ie=pe}return{list:be,total:xe,resources:ie}},z=async D=>{let{searchResults:W,builtWidgets:F,assetGroupCidSet:B,userResourcesComboGroup:Y,orgResourcesComboGroup:X,userAssetsMap:G,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 he=0,de=[];if(W){const{data:xe,p2mMMap:be}=W;Object.entries(xe).forEach(ie=>{let[oe,ue]=ie,ve=0,re=[];const{market_template_groups:fe,market_templates:we,user_combo_group:Te,org_combo_group:Ie,icons:le,user_asset_groups:me,user_assets:Pe,org_asset_groups:pe,org_assets:ke}=ue,We=we&&we.filter(Ue=>(Ue==null?void 0:Ue.version)!=="v1"),Ee=fe&&fe.filter(Ue=>(Ue==null?void 0:Ue.version)!=="v1"),{staredMarketTemplates:Ae,unStaredMarketTemplates:Ce,marketTemplateItemList:_e}=I(We,be,oe),{staredMarketTemplateGroups:Ge,unStaredMarketTemplateGroups:Xe}=k(Ee);switch(oe){case y.C:{const{data:Ue,sum:pt}=H({icons:le,marketTemplateGroups:fe});re=Ue,ve=pt;break}case y.b4:{const Ue=me.filter(qe=>{var et;return((et=G.get(qe.cid))==null?void 0:et.length)>0}),pt=pe.filter(qe=>{var et;return((et=Z.get(qe.cid))==null?void 0:et.length)>0}),{data:Ye,sum:Qe}=O({assets:Pe,assetGroups:Ue,assetGroupCidSet:B}),{data:lt,sum:tt}=O({assets:ke,assetGroups:pt,assetGroupCidSet:B});tt&&re.push({cid:a(oe,P.Org),name:P.Org,list:lt}),Qe&&re.push({cid:a(oe,P.User),name:P.User,list:Ye}),ve=Qe+tt;break}case y.Gd:{const{pageList:Ue,pageGroupList:pt,sum:Ye}=U({category:oe,staredMarketTemplates:Ae,unStaredMarketTemplates:Ce,staredMarketTemplateGroups:Ge,unStaredMarketTemplateGroups:Xe});Ue&&re.push(Ue),pt&&re.push(pt),ve=Ye;break}case y.t_:{const{data:Ue,sum:pt}=$({category:oe,staredMarketTemplates:[],userComboGroup:Te,staredMarketTemplateGroups:Ge,p2mMMap:be,userResourcesComboGroup:Y}),{data:Ye,sum:Qe}=A({category:oe,orgComboGroup:Ie,p2mMMap:be,orgResourcesComboGroup:X}),{data:lt,sum:tt}=E({category:oe,marketTemplates:_e,unStaredMarketTemplateGroups:Xe,builtWidgets:F});Qe&&re.push(Ye),pt&&re.push(Ue),tt&&re.push(lt),ve=ve+pt+Qe+tt;break}}te[oe]={list:re,total:ve},he=he+ve,de=We?de.concat(We):de})}const Se=await(0,r.n5)({q:J,page_size:30});return te[y.RD]={list:[{type:"search_resources",items:Se.market_templates}],total:Se.market_templates.length},{result:te,total:he,resources:de}},K=(D,W,F,B)=>{const Y=[];let X=0;if(D&&W){const{project_meta_cid:G}=D,Z=W[G]||{},J=[],te=[];Object.entries(Z).forEach(he=>{let[de,Se]=he;const[xe,be,ie]=Se;(0,w.Mo)(ie)?!((B==null?void 0:B.getSubHotItemList(xe).length)===0)&&te.push({cid:xe,name:ie==null?void 0:ie.name,data:ie}):J.push({key:xe,flpakKey:G,sup:be,hotAttr:ie,group:F.find(ue=>ue.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:W,staredMarketTemplates:F,userComboGroup:B,staredMarketTemplateGroups:Y,p2mMMap:X,userResourcesComboGroup:G}=D;const Z=[];let J=0;const{combos:te,sum:he}=K(B,X,G,window.userSdkStore);return Z.push(...te),J+=he,F!=null&&F.length&&(Z.push({type:d.I.MarketTemplate,items:F}),J+=F.length),Y!=null&&Y.length&&(Z.push({type:d.I.Resources,items:Y}),J+=Y.length),J?{data:{cid:a(W,P.User),name:P.User,list:Z},sum:J}:{sum:J}},A=D=>{let{category:W,orgComboGroup:F,p2mMMap:B,orgResourcesComboGroup:Y}=D;const X=[];let G=0;const{combos:Z,sum:J}=K(F,B,Y,window.orgSdkStore);return X.push(...Z),G+=J,G?{data:{cid:a(W,P.Org),name:P.Org,list:X},sum:G}:{sum:G}},E=D=>{let{category:W,marketTemplates:F,unStaredMarketTemplateGroups:B,builtWidgets:Y}=D;const X=[];let G=0;return Y&&(X.push({type:d.I.Widget}),G+=Y.items.length),F!=null&&F.length&&(X.push({type:d.I.MarketTemplate,items:F}),G+=F.length),B!=null&&B.length&&(X.push({type:d.I.Resources,items:B}),G+=B.length),G?{data:{cid:a(W,P.Find),name:P.Find,list:X},sum:G}:{sum:G}},U=D=>{let{category:W,staredMarketTemplates:F,unStaredMarketTemplates:B,staredMarketTemplateGroups:Y,unStaredMarketTemplateGroups:X}=D;const G=[],Z=[],J=[],te=[];F!=null&&F.length&&J.push(...F),B!=null&&B.length&&J.push(...B),Y!=null&&Y.length&&te.push(...Y),X!=null&&X.length&&te.push(...X);let he=0;J!=null&&J.length&&(G.push({type:d.I.MarketTemplate,items:J}),he+=J.length),te!=null&&te.length&&(Z.push({type:d.I.Resources,items:te}),he+=te.length);const de={sum:he,pageList:null,pageGroupList:null};return G.length>0&&(de.pageList={cid:a(W,P.PageScreen),name:P.PageScreen,list:G}),Z.length>0&&(de.pageGroupList={cid:a(W,P.PageLibrary),name:P.PageLibrary,list:Z}),de},O=D=>{let{assets:W,assetGroups:F,assetGroupCidSet:B}=D;const Y=[];let X=0;if(W!=null&&W.length){const G=W.map(Z=>({...Z,cid:Z.cid})).filter(Z=>{let{group_cid:J}=Z;return B.has(J)});Y.push({type:d.I.Asset,items:G}),X+=G.length}return F!=null&&F.length&&(Y.push({type:d.I.Group,items:F}),X+=F.length),X?{data:Y,sum:X}:{sum:X}},H=D=>{let{icons:W,marketTemplateGroups:F}=D,B=0;const Y=[];if(W!=null&&W.length){const X=W.map(J=>{const{data:te,title:he}=J;B+=te.length;const de=te.map(Se=>({...Se,type:i.I1[he]||he||"svg",id:Se.name,groupCid:Se.cid}));return{...J,data:de,category:y.C}}),G=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:G.concat(Z)})}return F!=null&&F.length&&(Y.push({type:d.I.Resources,items:F}),B+=F.length),{data:Y,sum:B}},Q=D=>{const W=D.length;let F=0;for(let B=0;B128?F+=2:F+=1,F>s)return D.slice(0,B)+"...";return D},N=D=>{if(!(D!=null&&D.length))return p;const W=[];return D.forEach(F=>{var B;(B=F.list)!=null&&B.length&&F.list.reduce((X,G)=>{let{items:Z}=G;return X+((Z==null?void 0:Z.length)||0)},0)&&W.push(F)}),W},L=D=>{let{list:W,keys:F,type:B,mapFunc:Y,category:X,addList:G,spliceFunc:Z,otherKeys:J=[],filterFunc:te}=D;if(!(W!=null&&W.length))return;const he=W.find(be=>{let{name:ie}=be;return F.includes(ie)}),de=W.find(be=>{let{name:ie}=be;return J==null?void 0:J.includes(ie)}),Se=(be,ie)=>be.map(oe=>{if(oe.type===B){const ue=ie(oe.items);return{...oe,items:ue}}return oe});let xe=W;if(he)xe=W.map(be=>{if(F.includes(be.name)){if(be.list.find(oe=>oe.type===B)){const oe=Se(be.list,Y);return{...be,list:oe}}else if(G){const oe=be.list.concat({type:B,items:G});return{...be,list:oe}}}else if(J!=null&&J.includes(be.name)&&te){const ie=Se(be.list,te);return{...be,list:ie}}return be});else if(G){const be={cid:a(X,F[0]),name:F[0],list:[{type:B,items:G}]};xe=W,Z&&Z(xe,be),de&&(xe=W.map(ie=>{if(J!=null&&J.includes(ie.name)&&te){const oe=Se(ie.list,te);return{...ie,list:oe}}return ie}))}return N(xe)},V=(D,W)=>{try{return D.map(F=>{let{cid:B,name:Y,list:X}=F;const G=X.map(Z=>{let{type:J,items:te}=Z,he=[];return J===d.I.MarketTemplate&&(he=te==null?void 0:te.map(de=>{const{mt:Se,currentResources:xe,currentSearchCategory:be}=de;return(xe==null?void 0:xe.cid)===W.cid?{mt:{...Se,marketTemplateSource:W},currentResources:W,currentSearchCategory:be}:de})),J===d.I.Resources&&(he=te==null?void 0:te.map(de=>{const{cid:Se}=de;return Se===W.cid?W:de})),{type:J,items:he}});return{cid:B,name:Y,list:G}})}catch(F){return console.log(F.message),[]}},M=function(D,W){W===void 0&&(W="title");const F={};return!D||D.length<1||D.forEach(function(B){const Y=B.currentResources[W],X=F[Y]||[];X.push(B),F[Y]=X}),F}},13217:(Fe,ee,e)=>{"use strict";e.d(ee,{O:()=>f,_:()=>i});var n=e(12211),r=e(70933),c=e(25997),o=e(60651),w=e(4235),u=e(53940),d=e(65057),y=e(45611);const h=(0,n.Mz)([w.nE],p=>{const s=[];return p.forEach(l=>s.push(...(0,y.Dx)(l))),s}),i=p=>{var s,l,C,v;const a=(s=(l=document.querySelector("#left-slide-panel"))==null?void 0:l.getBoundingClientRect().width)!=null?s:p?184:294,P=(C=(v=document.querySelector("#right-slide-panel"))==null?void 0:v.getBoundingClientRect().width)!=null?C:p?0:240;return{leftSidePanelWidth:a,rightSidePanelWidth:P}},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:C}=p;const v=l(),a=(0,c.UV)(v),P=a.getRootSnapshot(),b=a.getRenderableSubHotItems(P).map(H=>H.key),g=(0,o.pH)(v);if(!(P!=null&&(s=P.sub)!=null&&s.length)){C({type:"entry:set:scale",payload:{scale:100}});return}const[S,t,_,I]=sdkStore.getHotKeyListAABB(b),k=_-S,j=I-t,z=56,{leftSidePanelWidth:K,rightSidePanelWidth:$}=i(g),A=window.innerHeight-z,E=window.innerWidth-K-$,U=Math.min((A-150)/j,(E-150)/k)*100,O=Math.min(Math.max(U,u.sI),100);C({type:"entry:set:scale",payload:{scale:O}})},"entry:reset:canvas:offset":p=>{let{getState:s,dispatch:l}=p;const C=s(),v=(0,c.UV)(C),a=v.getRootSnapshot(),P=v.getRenderableSubHotItems(a).map(H=>H.key),b=(0,o.pH)(C);if(!(P!=null&&P.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,_]=sdkStore.getHotKeyListAABB(P),{leftSidePanelWidth:I,rightSidePanelWidth:k}=i(b),j=g,z=S,K=t-g,$=_-S,E=(0,r.X_)(C)/100,U=(-K/2-j+(I-k)/2)*E,O=(-$/2-z)*E;l({type:"current:update:state",payload:{currentScreenOriginOffset:{x:U,y:O}}}),l({type:"design:set:canvas:offset",payload:{offset:{x:U,y:O}}}),l({type:"entry:update:ruler"})},"entry:set:scale":(p,s)=>{let{getState:l,dispatch:C}=p,{payload:v}=s;const a=l(),{scale:P}=v,b=(0,r.X_)(a);C({type:"design:set:scale",payload:{scale:P}}),C({type:"entry:design:update:canvas:offset",payload:{scaleD:P/b}}),C({type:"entry:update:ruler"})},"entry:design:zoom:selection":(p,s)=>{let{getState:l,dispatch:C}=p,{payload:v}=s;const a=l(),P=h(a),b=(0,o.pH)(a),g=(v==null?void 0:v.initScale)||!1;if(!(P!=null&&P.length)){C({type:"entry:zoom:fit:scale:offset"});return}const[S,t,_,I]=sdkStore.getHotKeyListAABB(P.map(V=>V.key)),k=S,j=t,z=_-S,K=I-t,{leftSidePanelWidth:$,rightSidePanelWidth:A}=i(b),E=window.innerHeight-56,U=window.innerWidth-$-A,O=Math.min((E-150)/K,(U-150)/z)*100,H=Math.min(Math.max(O,u.sI),400),Q=g?(0,r.X_)(a):H,N=(-z/2-k+($-A)/2)*Q/100,L=(-K/2-j)*Q/100;C({type:"design:set:scale",payload:{scale:Q}}),C({type:"current:update:state",payload:{currentScreenOriginOffset:{x:N,y:L}}}),C({type:"design:set:canvas:offset",payload:{offset:{x:N,y:L}}}),C({type:"entry:update:ruler"})},"entry:design:update:canvas:offset":(p,s)=>{let{getState:l,dispatch:C}=p,{payload:{scaleD:v}}=s;const{view_mode:a}=Object.fromEntries(new URLSearchParams(location.search));if(a!=="device"){const P=l(),{x:b,y:g}=(0,r.ER)(P),S={x:v*b,y:v*g};C({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:C}=p,{payload:{offset:{x:v,y:a}}}=s;C({type:"design:set:canvas:offset",payload:{offset:{x:v,y:a}}}),C({type:"entry:update:ruler"});const P=l(),b=(0,r.pO)(P),{eventOnDrag:g}=P.screencontainer.dragEventState,S=(0,r.X_)(P),t=(0,r.$S)(P);if(b&&g){const _=(0,d.mG)(g,{scale:S,offset:{x:v,y:a},viewportRect:t});C({type:"update:drag-event:state",payload:{worldPosOnDrag:_}})}}}},13537:(Fe,ee,e)=>{"use strict";e.d(ee,{Nj:()=>c,av:()=>u});function n(d){return d*Math.PI/180}function r(d,y,h){const i=n(h),f=Math.cos(i),p=Math.sin(i),[s,l]=y,C=d.x-s,v=d.y-l;return{x:C*f-v*p+s,y:C*p+v*f+l}}const c=(d,y)=>{const{x:h,y:i,w:f,h:p,r:s}=d;let l;switch(y){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 w(d){return Math.abs(Math.cos(n(d)))}function u(d,y){y===void 0&&(y="deg");let h;if(y==="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:(Fe,ee,e)=>{"use strict";e.d(ee,{Gw:()=>V,aX:()=>N,af:()=>Q,e1:()=>L});var n=e(18381),r=e(37320),c=e(50001),o=e(65057),w=e(547),u=e(79209),d=e(21856),y=e(63902),h=e(70933),i=e(67588),f=e(4235),p=e(21191),s=e(67052),l=e(60651),C=e(8293),v=e(83744),a=e(73658),P=e(96788),b=e(20089),g=e(63763),S=e(50353),t=e(88225),_=e(21770),I=e(11032),k=e(3862),j=e(7279),z=e(33680),K=e(92272),$=e(16335),A=e(4410),E=e(78915),U=e(93413),O=e(70812);const H=M=>{let{widgetInsertable:D,insertWidgetAtWorld:W,e:F,viewportRect:B,currPageKey:Y,selectedItemsKeyList:X,dispatch:G}=M;const{data:Z,meta:{name:J,width:te,height:he,type:de}}=D;sdkStore.combineMergeMark("quick-create-no-rect");const Se=Array.from(document.querySelectorAll('[data-is-widget-insertable="false"]')).map(oe=>oe.getBoundingClientRect());let xe=[],be;if(pointInRect(F.clientX,F.clientY,B)&&Se.every(oe=>!pointInRect(F.clientX,F.clientY,oe)))switch(de){case WidgetType.CanvasAsOverlay:{be=Y,xe=sdkStore.loadSubtree(Z,Y,W.x,W.y),moveItemsToTopUnder(xe,be,sdkStore),orderCanvasesToTopUnder(xe,be,sdkStore),renameItemsOnCreate(xe,be,sdkStore);break}case"wSticky":case"wTear":{be=Y,xe=sdkStore.loadSubtree(Z,Y,W.x,W.y),orderStickyToTopUnder(Y,xe,sdkStore),renameItemsOnCreate(xe,Y,sdkStore);break}default:{const oe=findFirstCommonRndSup(X,sdkStore);if(oe&&sdkStore.getHotItem(oe).hotAttr.type==="wWrap")be=oe,xe=sdkStore.loadSubtree(Z,be,W.x,W.y);else{xe=sdkStore.loadSubtree(Z,Y,W.x,W.y);const ue=createIntersectCanvasSearch(Y,xe),ve=createMemoRenameOnNew(),re=createReStackKit(),fe=xe.map(we=>{const Te=sdkStore.getHotItem(we),Ie=sdkStore.getHotAABB(we),le=ue(Ie)||Y;return{...Te,sup:le,hotAttr:{...Te.hotAttr,...sdkStore.getRelocateLocalXYR(we,le),zIndex:re.getReStackZIndex(we,le),name:ve(le,Te.hotAttr.type,Te.hotAttr.name)}}});sdkStore.updateHotItemBatch(fe)}}}if(applyAvailableTextAttrsToSdkStoreWidget(de,xe[0]),sdkStore.combineMerge("quick-create-no-rect"),G({type:"ST:update",payload:{isLeftDown:!0}}),G({type:"set:alignment",payload:{alignment:{}}}),G({type:"set:sameSize",payload:{sameSize:{}}}),G({type:"set:distributed",payload:{distributed:{}}}),G({type:"elbow:update",payload:{isDraggingElbow:!1}}),xe.length===1){const oe=sdkStore.getHotItem(xe[0]);switch(oe.hotAttr.type){case"wSticky":{const{info:ue}=resetHotInfo();G({type:"entry:ST:drag:sticky:point:real:bind",payload:{stickyKey:oe.key}}),G({type:"entry:set:editing:cid",payload:{item:oe}}),G({type:"toolbar:update:state",payload:{isShowSticky:!0}}),sdkStore.updateHotAttrMerge(oe.key,{info:ue});break}case"wTear":{const{info:ue}=resetHotInfo();G({type:"entry:ST:tear:bind",payload:{tearKey:oe.key,afterCreate:!0}}),G({type:"entry:set:editing:cid",payload:{item:oe}}),G({type:"toolbar:update:state",payload:{isShowSticky:!0}}),sdkStore.updateHotAttrMerge(oe.key,{info:ue});break}case"wRichText":{G({type:"entry:set:editing:cid",payload:{item:oe}});break}case"wSwimlane":{G({type:"flow:update:clear"});break}}}const ie=xe.map(oe=>sdkStore.getHotItem(oe));G({type:"entry:widget:change",payload:{flatChgList:ie,isCreateWidget:!0,shouldBreakLayerUICache:!0}}),G({type:"entry:select:items",payload:{cids:xe}}),G({type:"entry:expend:groupOrCanvasOrBasket",payload:{cids:xe}}),G({type:"entry:publish:create:items:success",payload:{newKeys:xe}})},Q=function(M){M===void 0&&(M=()=>{});const D=(0,n.Pj)();return(W,F)=>{const{data:B,meta:{name:Y,type:X}}=F;if((0,u.z5)(B))try{var G;D.dispatch({type:"update:screenContainer:state",payload:{createTemplatesData:null}}),D.dispatch({type:"entry:resources:escape:quickCreateWidget"}),sdkStore.combineMergeMark("dblclick-to-insert-widget");const Z=((G=(0,h.Ur)(D.getState()))==null?void 0:G.cid)||"",J=(0,h.X_)(D.getState()),te=(0,h.$S)(D.getState()),he=(0,h.ER)(D.getState()),de=(0,f.p$)(D.getState()),Se={scale:J/100,size:{w:te.width,h:te.height},offset:he},xe=(0,d.Dl)(Se,te.left);let be=[],ie;switch(X){case b.x.CanvasAsOverlay:{ie=Z,be=sdkStore.loadSubtree(B,Z,xe.x,xe.y),(0,d.OV)(be,ie,sdkStore),(0,d.tu)(be,ie,sdkStore),(0,y.Yx)(be,ie,sdkStore);break}case"wSticky":case"wTear":{ie=Z,be=sdkStore.loadSubtree(B,Z,xe.x,xe.y),(0,d.gs)(Z,be,sdkStore),(0,y.Yx)(be,Z,sdkStore);break}default:{const ue=(0,d.dk)(de,sdkStore);if(ue&&sdkStore.getHotItem(ue).hotAttr.type==="wWrap")ie=ue,be=sdkStore.loadSubtree(B,ie,xe.x,xe.y);else{be=sdkStore.loadSubtree(B,Z,xe.x,xe.y);const ve=(0,p.G9)(Z,be),re=(0,p.YQ)(),fe=(0,p.wr)(),we=be.map(Te=>{const Ie=sdkStore.getHotItem(Te),le=sdkStore.getHotAABB(Te),me=ve(le)||Z;return{...Ie,sup:me,hotAttr:{...Ie.hotAttr,...sdkStore.getRelocateLocalXYR(Te,me),zIndex:fe.getReStackZIndex(Te,me),name:re(me,Ie.hotAttr.type,Ie.hotAttr.name)}}});sdkStore.updateHotItemBatch(we)}}}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 ue=sdkStore.getHotItem(be[0]);if(!ue)return;switch(ue.hotAttr.type){case"wSticky":{const{info:ve}=(0,P.lp)();D.dispatch({type:"entry:ST:drag:sticky:point:real:bind",payload:{stickyKey:ue.key,createSource:"click"}}),D.dispatch({type:"entry:set:editing:cid",payload:{item:ue}}),D.dispatch({type:"toolbar:update:state",payload:{isShowSticky:!0}}),sdkStore.updateHotAttrMerge(ue.key,{info:ve});break}case"wTear":{const{info:ve}=(0,P.lp)();D.dispatch({type:"entry:ST:tear:bind",payload:{tearKey:ue.key,afterCreate:!0}}),D.dispatch({type:"entry:set:editing:cid",payload:{item:ue}}),D.dispatch({type:"toolbar:update:state",payload:{isShowSticky:!0}}),sdkStore.updateHotAttrMerge(ue.key,{info:ve});break}case"wRichText":{D.dispatch({type:"entry:set:editing:cid",payload:{item:ue}});break}case"wSwimlane":{D.dispatch({type:"flow:update:clear"});break}}(0,v.xB)(X,be[0])}const oe=be.map(ue=>sdkStore.getHotItem(ue));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 M=="function"&&M()}catch(Z){}finally{sdkStore.combineMerge("dblclick-to-insert-widget")}}},N=(M,D)=>{const W=(0,n.Pj)();return(F,B)=>{var Y;const{data:X,meta:{name:G,width:Z,height:J,type:te}}=B;if(F.button!==0)return;const he=((Y=(0,h.Ur)(W.getState()))==null?void 0:Y.cid)||"";let de=!1;const Se=F.clientX,xe=F.clientY,be=Array.from(document.querySelectorAll('[data-is-widget-insertable="false"]')).map(We=>We.getBoundingClientRect());W.dispatch({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!0}});const{moveAndScaleWidgetInsertablePuppet:ie,destroyWidgetInsertablePuppet:oe,updateWidgetInsertablePuppetRenderProps:ue}=(0,C.C1)(X,he);sdkStore.combineMergeMark("drag-and-insert-widget");let ve;const re=(0,i.k3)(W.getState()),fe=(0,i.PI)(W.getState()),we=(0,h.X_)(W.getState()),Te=(0,h.ER)(W.getState()),Ie=(0,h.$S)(W.getState()),le=(0,f.p$)(W.getState());(re||fe)&&(ve=(0,r.ay)({movableItems:[],createSnapper:fe?c.WY:r.xb,viewport:{scale:we/100}}));let me=(0,o.mG)(F,{scale:we,offset:Te,viewportRect:Ie}),Pe;const pe=We=>{if(de=de||Math.abs(We.clientX-Se)>1||Math.abs(We.clientY-xe)>1,!de)return;M(),W.dispatch({type:"update:screenContainer:state",payload:{createTemplatesData:null}}),W.dispatch({type:"entry:resources:escape:quickCreateWidget"}),Pe=(0,o.nS)({isTear:te==="wTear",world:me,scale:we,newSelection:le,currentPageKey:he,isCtrlDown:We.ctrlKey||We.metaKey,event:We})||"",me=(0,o.mG)(We,{scale:(0,h.X_)(W.getState()),offset:Te,viewportRect:Ie});let Ee={},Ae={},Ce={};if(typeof ve=="function"){var _e;const{top:Xe,left:Ue,alignment:pt,sameSize:Ye,distributed:Qe}=ve({_rect:{left:Math.round(me.x-Z/2),top:Math.round(me.y-J/2),right:Math.round(me.x+Z/2),bottom:Math.round(me.y+J/2),width:Math.round(Z),height:Math.round(J)},sup:((_e=sdkStore.getHotItem(Pe))==null?void 0:_e.hotAttr.type)==="rResCanvas"?Pe:he});me={x:Ue+Z/2,y:Xe+J/2},Ee=pt,Ae=Ye,Ce=Qe}const Ge=(0,o.mY)({x:me.x-Z/2,y:me.y-J/2});switch(ie({top:Ge.y,left:Ge.x,scale:be.some(Xe=>(0,w.El)(We.clientX,We.clientY,Xe))?100:we}),te){case"wSticky":{const Xe=[me.x-Z/2,me.y-J/2,me.x+Z/2,me.y+J/2];W.dispatch({type:"entry:ST:drag:sticky:point:fake:bind",payload:{stickyKey:"fake",stickyAABBP:Xe,callback:ue}});break}case"wTear":{ue({refWCKey:Pe,tearMode:!0});break}default:break}W.dispatch({type:"set:alignment",payload:{alignment:Ee}}),W.dispatch({type:"set:sameSize",payload:{sameSize:Ae}}),W.dispatch({type:"set:distributed",payload:{distributed:Ce}}),(0,a.yT)(te)&&W.dispatch({type:"mode:update:hover:item",payload:Pe})},ke=We=>{if(document.removeEventListener("mousemove",pe),document.removeEventListener("mouseup",ke),oe(),W.dispatch({type:"reducer:flag:set:is-dragging-item",payload:{isDraggingItem:!1}}),!de||!(0,u.z5)(X))return;let Ee=[],Ae;if((0,w.El)(We.clientX,We.clientY,Ie)&&be.every(_e=>!(0,w.El)(We.clientX,We.clientY,_e)))switch(te){case b.x.CanvasAsOverlay:{Ae=he,Ee=sdkStore.loadSubtree(X,he,me.x,me.y),(0,d.OV)(Ee,Ae,sdkStore),(0,d.tu)(Ee,Ae,sdkStore),(0,y.Yx)(Ee,Ae,sdkStore);break}case"wSticky":case"wTear":{Ae=he,Ee=sdkStore.loadSubtree(X,he,me.x,me.y),(0,d.gs)(he,Ee,sdkStore),(0,y.Yx)(Ee,he,sdkStore);break}default:{const _e=(0,d.dk)(le,sdkStore);if(_e&&sdkStore.getHotItem(_e).hotAttr.type==="wWrap")Ae=_e,Ee=sdkStore.loadSubtree(X,Ae,me.x,me.y);else{Ee=sdkStore.loadSubtree(X,he,me.x,me.y);const Ge=(0,p.G9)(he,Ee),Xe=(0,p.YQ)(),Ue=(0,p.wr)(),pt=Ee.map(Ye=>{const Qe=sdkStore.getHotItem(Ye),lt=sdkStore.getHotAABB(Ye),tt=Ge(lt)||he;return{...Qe,sup:tt,hotAttr:{...Qe.hotAttr,...sdkStore.getRelocateLocalXYR(Ye,tt),zIndex:Ue.getReStackZIndex(Ye,tt),name:Xe(tt,Qe.hotAttr.type,Qe.hotAttr.name)}}});sdkStore.updateHotItemBatch(pt)}}}if((0,v.xB)(te,Ee[0]),sdkStore.combineMerge("drag-and-insert-widget"),W.dispatch({type:"ST:update",payload:{isLeftDown:!0}}),W.dispatch({type:"set:alignment",payload:{alignment:{}}}),W.dispatch({type:"set:sameSize",payload:{sameSize:{}}}),W.dispatch({type:"set:distributed",payload:{distributed:{}}}),W.dispatch({type:"elbow:update",payload:{isDraggingElbow:!1}}),Ee.length===1){const _e=sdkStore.getHotItem(Ee[0]);switch(_e.hotAttr.type){case"wSticky":{const{info:Ge}=(0,P.lp)();W.dispatch({type:"entry:ST:drag:sticky:point:real:bind",payload:{stickyKey:_e.key}}),W.dispatch({type:"entry:set:editing:cid",payload:{item:_e}}),W.dispatch({type:"toolbar:update:state",payload:{isShowSticky:!0}}),sdkStore.updateHotAttrMerge(_e.key,{info:Ge});break}case"wTear":{const{info:Ge}=(0,P.lp)();W.dispatch({type:"entry:ST:tear:bind",payload:{tearKey:_e.key,afterCreate:!0}}),W.dispatch({type:"entry:set:editing:cid",payload:{item:_e}}),W.dispatch({type:"toolbar:update:state",payload:{isShowSticky:!0}}),sdkStore.updateHotAttrMerge(_e.key,{info:Ge});break}case"wRichText":{W.dispatch({type:"entry:set:editing:cid",payload:{item:_e}});break}case"wSwimlane":{W.dispatch({type:"flow:update:clear"});break}}}const Ce=Ee.map(_e=>sdkStore.getHotItem(_e));W.dispatch({type:"entry:widget:change",payload:{flatChgList:Ce,isCreateWidget:!0,shouldBreakLayerUICache:!0}}),W.dispatch({type:"entry:select:items",payload:{cids:Ee}}),W.dispatch({type:"entry:expend:groupOrCanvasOrBasket",payload:{cids:Ee}}),W.dispatch({type:"entry:publish:create:items:success",payload:{newKeys:Ee}}),typeof D=="function"&&D()};document.addEventListener("mousemove",pe),document.addEventListener("mouseup",ke)}},L=function(M){M===void 0&&(M=()=>{});const D=(0,n.Pj)();return(W,F,B)=>{if(W.button!==0)return;const Y=D.getState(),X=(0,h.Ur)(Y),G=(0,h.wq)(Y),Z=(0,h.L8)(Y),J=(0,l.lY)(Y),te=(G==null?void 0:G.metaType)||(G==null?void 0:G.type);if(D.dispatch({type:"update:screenContainer:state",payload:{createTemplatesData:null}}),te===F&&(!Z||Z===B))F===b.x.WElbow?D.dispatch({type:"elbow:update",payload:{highlightAnchor:""}}):b.Q.ST_MODE_WIDGET_NAMES.includes(F)?D.dispatch({type:"entry:ST:STMode:disable"}):F===b.x.WVector&&J?D.dispatch({type:"entry:vector:exit:edit"}):F===A.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"}),b.Q.ST_MODE_WIDGET_NAMES.includes(F)?(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 he=(0,g.gu)({type:F,screen:X});D.dispatch({type:"set:quick-create-widget",payload:{widget:{...he,metaType:F},quickCreateWidgetFrom:S.Hq.widgetModal,quickCreateBuiltinSceneData:B||""}}),D.dispatch(E.GO.toggleHandMode(!1)),F===b.x.WVector&&(MB.commonGuideHelper.checkGuideToBeShown(U.c.GUIDE_VECTOR_TASK_ENDING_EDITING)&&(MB.commonGuideHelper.markGuideAsRead(U.c.GUIDE_VECTOR_TASK_ENDING_EDITING),MB.commonGuideHelper.closeGuide(U.c.GUIDE_VECTOR_TASK_ENDING_EDITING)),MB.commonGuideHelper.tryToShowGuide(U.c.GUIDE_VECTOR_TASK_QUICK_CREATE)),F===A.pv.PENCIL&&D.dispatch({type:"entry:pencil:vector:enter:edit",payload:{source:O.U4.addShapeToCanvasTrackSourceMap.quickCreate}}),typeof M=="function"&&M()}D.dispatch({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),D.dispatch({type:"elbow:update",payload:{isInElbowMode:!1}}),F!==b.x.WTear&&F!==b.x.WSticky&&D.dispatch({type:"entry:ST:STMode:disable"})}},V=(M,D)=>{const W=(0,n.Pj)(),F=G=>{const{checkoutPlace:Z,payEntrance:J}=(0,I.FS)(k.b4),te={mode:"mat",payEntrance:J,checkoutArea:"proto",checkoutPlace:Z,templateCid:G==null?void 0:G.id,templateName:G==null?void 0:G.name,templateCategory:k.b4,templateGroupName:G==null?void 0:G.group_cid};MB.global.popupHelper.chargeAsync(te)},B=async G=>{var Z;const J=W.getState(),te=(0,s.oE)(J),he=(0,s.DU)(J),de=(0,h.HW)(J),Se=(0,h.wA)(J),xe=((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),ue=(0,f.p$)(J),ve={scale:be/100,size:{w:ie.width,h:ie.height},offset:oe},re=(0,d.Dl)(ve,ie.left),fe=(0,d.dk)(ue,sdkStore),we=fe&&sdkStore.getHotItem(fe).hotAttr.type==="wWrap"?fe:xe;G==="image-portal"?te||await(0,t._)():G==="image_sticker_portal"&&(he||await(0,j.e)());const Te=W.getState(),Ie=(0,s.ld)(Te),le=(0,s.p)(Te);let me;if(G==="image-portal"){if(Ie.length){var Pe;const{tab:We,imgs:Ee}=Ie[0];Ee.length&&(Pe=Ee[0])!=null&&Pe.length&&(me=(0,z.Kb)(We,Ee[0]))}}else if(G==="image_sticker_portal"&&le.length){var pe;const{category:We,list:Ee}=le[0];Ee.length&&(pe=Ee[0])!=null&&(pe=pe.url)!=null&&pe.length&&(me=(0,z.nA)(We,Ee[0]))}if(!me)return;if(G==="image_sticker_portal"){const{isMktMember:We}=(0,_.s)(de,Se);if(!We){F(me);return}}return{w:(0,K.BL)(me),asset:me}};return{handleDblClickImageSticker:async(G,Z)=>{var J,te;if(!(0,u._c)({type:b.x.WImage,count:1}))return;W.dispatch({type:"set:quick-create-widget",payload:{widget:null}}),W.dispatch({type:"entry:ST:STMode:disable"});const he=await B(Z);if(!he)return;const{w:de,asset:Se}=he;(0,A.Q7)([de],(J=de.width)!=null?J:de.w,(te=de.height)!=null?te:de.h);const{asset_cid:xe}=Se;(0,$.Cp)({projectUpperType:"picture",projectUpperCid:xe,itemCid:""})},handleDragAndInsertImageSticker:async(G,Z)=>{var J,te,he;if(!(0,u._c)({type:b.x.WImage,count:1}))return;W.dispatch({type:"set:quick-create-widget",payload:{widget:null}}),W.dispatch({type:"entry:ST:STMode:disable"});const de=await B(Z);if(!de)return;const{w:Se,asset:xe}=de,be=W.getState(),ie=(0,s.B8)(be),oe=(0,h.PL)(be),ue=(0,i.PI)(be),ve=(0,i.k3)(be),re=(J=document.getElementById(ie))==null?void 0:J.getBoundingClientRect();(0,A.dD)({e:G,items:[Se],width:(te=Se.width)!=null?te:Se.w,height:(he=Se.height)!=null?he:Se.h,doNotCreateRect:re,rootProject:oe,showDragMode:ue,isAdsorbentReferenceLine:ve,onMouseMove:M,callback:D});const{asset_cid:fe}=xe;(0,$.Cp)({projectUpperType:"picture",projectUpperCid:fe,itemCid:""})}}}},13923:(Fe,ee,e)=>{"use strict";e.d(ee,{E:()=>u});var n=e(39695),r=e(95106),c=e(40486),o=e(99566),w=e(42459);const u=d=>{let{buildTreeRes:y,selectSubItaType:h,widget:i,type:f}=d;const{itaTree:p,runTimeInteraction:s}=y,{hotAttr:{interactions:l}}=i,C=new Map,v=new Map(JSON.parse(JSON.stringify(s)).map(ie=>[ie.key,ie])),a=p.sub.map(ie=>ie.attr.trigger),P=new Map(a.map(ie=>[ie,(0,o.X5)(ie)]));C.set(p.attr.key,p),(0,c._k)(p,ie=>{C.set(ie.attr.key,ie)});const b=p,g=[...l],S=[],t=ie=>v.get(ie),_=ie=>P.get(ie)||(0,o.X5)(ie),I=(ie,oe)=>P.set(ie,oe),k=ie=>{const oe=C.get(ie);if(!oe)return;const ue=v.get(ie);return ue&&(oe.attr=ue),oe},j=ie=>{const oe=[],ue=ve=>{ve.type==="action"?ve.attr.interactionType!=="dummy"&&oe.push(ve.attr):ve.type==="branchRoot"&&oe.push(ve.attr)};return ue(ie),(0,c._k)(ie,ve=>{ue(ve)}),oe},z=(ie,oe,ue)=>{const ve=v.get(ie);ve&&(ve[oe]=ue,ve.data&&(ve.data[oe]=ue))},K=ie=>{const oe=Z(ie);if(!oe)return;const ue=_(oe.attr.trigger);Object.entries(ue).map(ve=>{let[re,fe]=ve;return z(ie,re,fe)}),z(ie,"triggerDisable",oe.attr.disabled)},$=ie=>{v.get(ie.attr.key)||(v.set(ie.attr.key,ie.attr),C.set(ie.attr.key,ie))},A=ie=>{const oe=[...ie.sub];for(;oe.length!==0;){const ue=oe.shift();ue&&(S.push(ue.attr.key),oe.push(...ue.sub))}},E=ie=>{(0,c.Z_)(b,ie,S),b.sub=b.sub.filter(oe=>oe.attr.key!==ie.attr.key)},U=ie=>{H(ie.sup,ie.attr.key),A(ie)},O=()=>{const ie=b.sub;ie.length===1&&(0,c.xx)(ie[0].sub).length===0&&E(ie[0])},H=(ie,oe)=>{const ue=k(ie);ue.sub=ue.sub.filter(ve=>ve.attr.key!==oe)},Q=ie=>{let{treeNode:oe,uiFrom:ue}=ie;const ve=fe=>{const{branchIndex:we}=fe,Te=k(fe.sup);if(!Te)return;const Ie=F({oldBranches:Te.attr.branches,branchIndex:we,type:"del",itaKeyList:[oe.attr.key]});z(Te.attr.key,"branches",Ie),U(oe)},re=fe=>{if(fe.sub.length===2){const we=fe.sub[0];if(we.attr.interactionType===n.O2.ConditionalBranches)for(const Te of we.sub)U(Te);z(we.attr.key,"interactionType",n.O2.TriggerPlaceHolder)}else U(oe)};if(ue==="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 we=b.sub,Te=Z(oe.attr.key);we.length===1?(0,c.xx)(Te.sub).length===1?(E(Te),O()):U(oe):re(Te)}else fe.type==="branch"&&ve(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"&&ve(fe)}},N=()=>{const ie=[],oe=b.sub;for(const re of oe){const fe=_(re.attr.trigger);for(const we of re.sub){if(we.attr.interactionType==="dummy")continue;if(we.type==="branchRoot")for(const Ie of we.sub)for(const le of Ie.sub){if(le.type==="action"&&le.attr.interactionType==="dummy")continue;Object.entries(fe).map(Pe=>{let[pe,ke]=Pe;return z(we.attr.key,pe,ke)});const me=t(we.attr.key);me&&ie.push(me.data)}Object.entries(fe).map(Ie=>{let[le,me]=Ie;return z(we.attr.key,le,me)});const Te=t(we.attr.key);Te&&ie.push(Te.data)}}const ue=(0,c.RO)(ie);return(0,c.RO)(g.filter(re=>!S.includes(re.key)&&!ue.find(fe=>fe.key===re.key))).concat(ue)},L=ie=>{const oe=[],ue=b.sub;for(const re of ue){const fe=_(re.attr.trigger);for(const we of re.sub){if(we.attr.interactionType==="dummy")continue;if(we.type==="branchRoot")for(const Ie of we.sub)for(const le of Ie.sub){if(le.type==="action"&&le.attr.interactionType==="dummy")continue;Object.entries(fe).map(Pe=>{let[pe,ke]=Pe;return z(we.attr.key,pe,ke)});const me=t(le.attr.key);me&&oe.push(me.data)}Object.entries(fe).map(Ie=>{let[le,me]=Ie;return z(we.attr.key,le,me)});const Te=t(we.attr.key);Te&&(ie.includes(Te.data.interactionTrigger)&&z(we.attr.key,"!validVersion",2),oe.push(Te.data))}}const ve=(0,c.RO)(oe);return g.filter(re=>!S.includes(re.key)&&!ve.find(fe=>fe.key===re.key)).concat(ve).filter((re,fe,we)=>re.interactionType!==n.O2.TriggerPlaceHolder||fe===we.findIndex(Te=>Te.interactionType===n.O2.TriggerPlaceHolder&&(0,o.AE)(Te)===(0,o.AE)(re)&&Te.subKey===re.subKey))},V=ie=>b.sub.find(oe=>oe.attr.trigger===(0,r.oS)(ie)),M=(ie,oe,ue)=>{if(ie.interactionType===n.O2.ConditionalBranches){const ve=(0,c.jB)({attr:{...ie,data:{...ie}},supKey:oe,level:2});return D(ve),ie.branches.forEach((re,fe)=>{let{condition:we}=re;const Te=ie.key+"_branch_"+fe,Ie={type:"branch",attr:{key:Te,condition:we},level:ve.level+1,branchIndex:fe,sub:[],sup:ve.attr.key};D(Ie);const le=(0,c.vh)({branchKey:Te,level:Ie.level+1,trigger:ie.key});le.sup=ve.attr.key,D(le)}),ve}else D((0,c.db)({attr:{...ie,data:{...ie}},supKey:oe}),ue)},D=(ie,oe)=>{const ue=ie.sup,ve=k(ie.sup);if(!ve){const re=(0,c.TK)({key:ue,trigger:(0,c.KN)(ue),sub:[],triggerDisable:!1});W(re,re.sup),W(ie,re.attr.key),z(ie.attr.key,"triggerDisable",!1);return}if(ve.type==="trigger"){const re=b.sub.find(fe=>fe.attr.key===ue);W(ie,ue),z(ie.attr.key,"triggerDisable",re.attr.disabled),K(ie.attr.key)}else if(ve.type==="branch"){const re=ve.branchIndex,fe=k(ve.sup);if(W(ie,ie.sup),K(ie.attr.key),!(oe!=null&&oe.skipUpdateBranches)){const we=JSON.parse(JSON.stringify(fe.attr.branches));we[re].subItaRefList=[...we[re].subItaRefList,ie.attr.key],z(fe.attr.key,"branches",we)}}},W=(ie,oe)=>{var ue;$(ie),(ue=k(oe))==null||ue.sub.push(ie)},F=ie=>{let{oldBranches:oe,branchIndex:ue,type:ve,itaKeyList:re,option:fe}=ie;const we=[...oe];we[ue]={condition:oe[ue].condition,subItaRefList:oe[ue].subItaRefList};const Te=we[ue].subItaRefList;if(ve==="add")if(fe){const Ie=Te.findIndex(Pe=>Pe===fe.targetKey),le=Ie===-1?Te.length:Ie,me=fe.insertType==="prevSibling"?le:le+1;we[ue].subItaRefList=(0,w.nK)(Te,me,...re)}else we[ue].subItaRefList=Te.concat(re);else we[ue].subItaRefList=Te.filter(Ie=>!re.includes(Ie));return we},B=(ie,oe)=>{const ue=(0,c.KN)(oe),ve=(0,c.zS)(ie,b);if(!ve)return;const re=k(ve.sup);if(!re)return;const fe=_(ue);if((0,c.sJ)(oe)&&(0,c.sJ)(ve.sup)){const we=b.sub.find(Ie=>Ie.attr.key===ve.sup),Te=(0,c.xx)(we.sub);if(Te.length===0||Te.length===1){he({preTriggerNode:we,nextTNodeTrigger:ue});const Ie=b.sub.find(me=>me.attr.key===oe);let le;Ie&&(le=Ie.attr.disabled);for(const me of we.sub)Object.entries(fe).map(Pe=>{let[pe,ke]=Pe;return te({selectNode:me,attr:pe,value:ke})}),le!==void 0&&te({selectNode:me,attr:"triggerDisable",value:le})}else{we.sub=we.sub.filter(me=>me.attr.key!==ve.attr.key);const Ie=b.sub.find(me=>me.attr.key===oe);let le=!1;Ie?(W(ve,oe),le=Ie.attr.disabled):W((0,c.TK)({key:oe,trigger:ue,sub:[ve],triggerDisable:!1}),"root"),te({selectNode:ve,attr:"triggerDisable",value:le}),Object.entries(fe).map(me=>{let[Pe,pe]=me;return te({selectNode:ve,attr:Pe,value:pe})})}}else if((0,c.sJ)(oe)&&re.type==="branch"){const we=(0,c.KN)(oe),Te=k(re.sup);if(!Te)return;H(ve.sup,ve.attr.key);const Ie=F({oldBranches:Te.attr.branches,branchIndex:re.branchIndex,type:"del",itaKeyList:[ve.attr.key]});z(Te.attr.key,"branches",Ie);const le=k(oe);let me=!1;le?(W(ve,le.attr.key),me=le.attr.disabled):b.sub.push((0,c.TK)({key:oe,trigger:we,sub:[ve],triggerDisable:!1})),Object.entries(fe).map(Pe=>{let[pe,ke]=Pe;return te({selectNode:ve,attr:pe,value:ke})}),te({selectNode:ve,attr:"triggerDisable",value:me})}},Y=(ie,oe,ue)=>{if(ie===oe)return;const ve=k(ie),re=k(oe);if(!ve||!re)return;if((0,c.sJ)(ie)&&(0,c.sJ)(oe)){const Te=b.sub.findIndex(le=>le.attr.key===ie),Ie=b.sub.findIndex(le=>le.attr.key===oe);if(ue==="prevSibling"){const le=Te>Ie?0:-1;b.sub=(0,w.be)(b.sub,Ie+le,Te)}else{const le=Te>Ie?1:0;b.sub=(0,w.be)(b.sub,Ie+le,Te)}return}if((0,c.sJ)(ve.sup)&&(0,c.sJ)(re.sup)){const Te=k(ve.sup),Ie=k(re.sup);if(!Te||!Ie)return;Te.sub=Te.sub.filter(Pe=>Pe.attr.key!==ve.attr.key);const le=Ie.sub.findIndex(Pe=>Pe.attr.key===re.attr.key);ue==="prevSibling"?Ie.sub=(0,w.nK)(Ie.sub,le,ve):Ie.sub=(0,w.nK)(Ie.sub,le+1,ve);const me=_(Ie.attr.trigger);Object.entries(me).map(Pe=>{let[pe,ke]=Pe;return te({selectNode:k(ie),attr:pe,value:ke})}),te({selectNode:k(ie),attr:"triggerDisable",value:Ie.attr.disabled});return}const fe=k(ve.sup),we=k(re.sup);if(!(!fe||!we)&&(fe.type==="branch"||we.type==="branch")){if(fe.type==="branch"){const Ie=k(fe.sup),le=F({oldBranches:Ie.attr.branches,branchIndex:fe.branchIndex,type:"del",itaKeyList:[ve.attr.key]});z(Ie.attr.key,"branches",le)}if(H(ve.sup,ve.attr.key),we.type==="branch"){const Ie=k(we.sup),le=F({oldBranches:Ie.attr.branches,branchIndex:we.branchIndex,type:"add",itaKeyList:[ve.attr.key],option:{type:"add",insertType:ue,targetKey:re.attr.key}});z(Ie.attr.key,"branches",le),z(ve.attr.key,"actionDisable",Ie.attr.actionDisable)}const Te=we.sub.findIndex(Ie=>Ie.attr.key===re.attr.key);ue==="prevSibling"?we.sub=(0,w.nK)(we.sub,Te,ve):we.sub=(0,w.nK)(we.sub,Te+1,ve),ve.sup=we.attr.key,K(ie)}},X=()=>h,G=ie=>{if(!ie)return[];const oe=[ie];let ue=ie.sup;for(;ue!=="root";){const ve=k(ue);if(!ve)break;oe.push(ve),ue=ve.sup}return oe},Z=ie=>{let oe=k(ie);if(oe){for(;oe.type!=="trigger"&&(oe=C.get(oe.sup),!!oe););return oe}},J=ie=>{let{trigger:oe,attr:ue,value:ve}=ie;const re=(0,c.Mc)({interactionTree:b,trigger:oe});(0,c._k)(re,fe=>{z(fe.attr.key,ue,ve)})},te=ie=>{let{selectNode:oe,attr:ue,value:ve}=ie;z(oe.attr.key,ue,ve),(0,c._k)(oe,re=>{z(re.attr.key,ue,ve)})},he=ie=>{let{preTriggerNode:oe,nextTNodeTrigger:ue}=ie;if(!oe)return;const ve=oe,re=_(ue);ve.attr.key=(0,c.iY)(ue),ve.attr.trigger=ue,ve.attr.triggerInfo=re};return{_interactionTree:b,type:f,query:{getNode:k,getInteractionByKey:t,getInteractions:N,getNodeInteractionWithSub:j,getTriggerNode:V,getSelectSubItaType:X,findUpNodeList:G,findUpTriggerNode:Z,getCurrentWidget:()=>i,getTriggerInfoByNTrigger:_},command:{deleteByTreeNode:Q,insertNode:D,insertNodeDirectly:W,insertNodeIta:M,moveNodeToNewSup:B,moveNodeToSibiling:Y,updateTriggerSubNode:J,updateNodeWalk:te,updateTriggerNodeWalk:ie=>{let{trigger:oe,attr:ue,value:ve,nextTNodeTrigger:re}=ie;Y((0,c.iY)(re),(0,c.iY)(oe),"prevSibling");const fe=(0,c.Mc)({interactionTree:b,trigger:oe});if(he({preTriggerNode:fe,nextTNodeTrigger:re}),ue==="interactionTrigger"){const we=_(re);Object.entries(we).map(Te=>{let[Ie,le]=Te;(0,c._k)(fe,me=>{z(me.attr.key,Ie,le)})})}else(0,c._k)(fe,we=>{z(we.attr.key,ue,ve)})},replaceIta:ie=>{const oe=v.get(ie.key);oe&&(oe.data=ie)},getInteractionsWithUV:L,toBranchRootNode:ie=>{let{newIta:oe}=ie;const ue=k(oe.key),ve=v.get(oe.key);if(!(!ve||!ue)){ue.type="branchRoot",ve.data=oe;for(const[fe,we]of Object.entries(oe.branches)){const Te=oe.key+"_branch_"+fe,Ie=(0,c.dq)({branchKey:Te,supNode:ue,condition:we.condition,branchIndex:fe});W(Ie,ue.attr.key);for(const le of we.subItaRefList){var re;const me=(re=oe.tempItaList)==null?void 0:re.find(Pe=>Pe.key===le);me&&M(me,Ie.attr.key,{skipUpdateBranches:!0})}}}},updateTriggerNodeAttr:he,updateTriggerInfo:I}}}},14002:(Fe,ee,e)=>{"use strict";e.d(ee,{I:()=>u});var n=e(14166),r=e(79770),c=e(98915),o=e(20089),w=e(62280);const u=(d,y,h,i,f)=>{const p=[],s=d.getRootSnapshot(),l=a=>{d.getSnapshotItem(a)&&p.push(a)},C=a=>{const P=sdkStore.getHotItem(a).hotAttr;if(P.isVisible===!0&&P.isLock===!1){if((P.type===o.x.WTear||P.type===o.x.WSticky)&&!i)return;if(h)switch(P.type){case"wElbow":{const b=P.elbow.elbowType;if(b==="straight")(0,r.s6)((0,r.pe)(sdkStore,a,P),v)&&l(a);else if(b==="curve")(0,n.cj)(v,(0,r.C0)(sdkStore,a,P))&&l(a);else for(const g of(0,r.wF)(sdkStore,a,f/100))if((0,n.cj)(v,g)){l(a);break}break}case"wArrow":case"wLine":{(0,r.s6)((0,r.pe)(sdkStore,a,P),v)&&l(a);break}case"wBasket":{sdkStore.isActiveKey(a)&&sdkStore.isActiveKey(P.refRBPageKey)&&sdkStore.isActiveKey(P.refContentKey)&&sdkStore.getHotItem(P.refContentKey).sup===P.refRBPageKey&&(0,n.cj)(v,(0,r.C0)(sdkStore,a,P))&&l(a);break}case"wWrap":{const b=(0,c.py)(a);if(b!==null){const g=(0,w.Pb)(b);(0,n.cj)(v,g)&&l(a)}break}default:{const b=o.Q.USE_CLIP_TEXT.includes(P.type)?(0,c.dU)(a):(0,r.C0)(sdkStore,a,P);(0,n.cj)(v,b)&&l(a);break}}else{const b=o.Q.USE_CLIP_TEXT.includes(P.type)?(0,c.dU)(a):(0,r.C0)(sdkStore,a,P);(0,n.Pn)(v,b)&&l(a)}}},v=[y.x,y.y,y.x+y.w,y.y+y.h];for(const a of sdkStore.getHotItem(s.key).sub){const P=sdkStore.getHotItem(a);if(!(P.hotAttr.isVisible===!1||P.hotAttr.isLock===!0))if(P.hotAttr.type==="rResCanvas"){const{hotAttr:{isClipContent:b}}=P,g=sdkStore.getHotAABB(a);if((0,n.Pn)(v,g))l(a);else if((0,n.cj)(v,g)||!b)for(const S of P.sub)C(S)}else C(a)}return p}},14073:(Fe,ee,e)=>{"use strict";e.d(ee,{LA:()=>n.LA,Nx:()=>c.N,Pi:()=>n.Pi,Q1:()=>h.Q,ZY:()=>w.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),w=e(30728),u=e(99963),d=e(61627),y=e(93e3),h=e(41818)},14269:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>o});var n=e(38502);const r=w=>(u,d)=>{const y=(0,n.useRef)(!1);w(()=>()=>{y.current=!1},[]),w(()=>{if(!y.current)y.current=!0;else return u()},d)},c=null,o=r(n.useEffect)},14285:(Fe,ee,e)=>{"use strict";e.d(ee,{Ws:()=>c,bu:()=>o,mh:()=>w});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),w=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:(Fe,ee,e)=>{"use strict";e.d(ee,{M:()=>u});var n=e(95549);class r{constructor(y){(0,n.A)(this,"worker",null),this.workerURL=y}spawn(y){if(this.worker){console.warn("Worker is already running");return}this.worker=new Worker(this.workerURL),this.worker.onmessage=y}postMessage(y){if(!this.worker){console.warn("Worker is not running, cannot post message");return}this.worker.postMessage(y)}terminate(){this.worker&&(this.worker.onmessage=null,this.worker.terminate(),this.worker=null)}restart(y){this.terminate(),this.spawn(y)}}var c=e(43838),o=e(89054),w=e(78571);class u{constructor(y,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=y,this.getWorldPos=h,this.originWidgetKey=y,this.getWorldPos=h}setDispatch(y){this.dispatchFn=y}setState(y){this.state=y,this.emitChange()}emitChange(){this.listeners.forEach(y=>y(this.state))}getPrevHtml(){return this.prevHtml}getIsCanceled(){return this.isCanceled}ensureWorker(){return this.worker||(this.worker=new r(w)),this.worker}async convert(y,h){const{htmlString:i,fileName:f,autoPaste:p=!0,targetType:s="rResBunch"}=y,l=h||{};if(this.isCanceled=!1,this.setState({type:"converting"}),i===""){var C;await((C=l.onError)==null?void 0:C.call(l));const a=I18N.Html2WidgetConverter.invalid_html_format;this.setState({type:"failed",reason:a});return}const v=this.ensureWorker();v.restart(async a=>{if(a.data.type==="result"){var P;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((P=l.onSuccess)==null?void 0:P.call(l)),this.setState({type:"success"})}else if(a.data.type==="error"){var b;await((b=l.onError)==null?void 0:b.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.postMessage({type:"rtas-measurement-result",richTextAutoSize:_,measurementRequestID:t}))}else if(a.data.type==="convert"){var g;(g=l.onProgress)==null||g.call(l,a.data.stage)}}),v.postMessage({type:"start",htmlString:i,fileName:f,targetType:s,uId:MB.user.id,upperCid:MB.getRootProject().cid})}cancel(){var y,h;(y=this.worker)==null||y.postMessage({type:"abort"}),(h=this.worker)==null||h.terminate(),this.setState({type:"idle"}),this.isCanceled=!0}reset(){this.setState({type:"idle"})}destroy(){var y;this.prevHtml="",(y=this.worker)==null||y.terminate(),this.worker=null,this.listeners=[]}}},15400:(Fe,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 ",";"],w=>w.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%;"],w=>w.theme.color_btn_danger_normal,w=>w.theme.color_bg_white)},15542:(Fe,ee,e)=>{"use strict";e.d(ee,{Fo:()=>N,JL:()=>H,um:()=>O});var n=e(38502),r=e(12211),c=e(18381),o=e(70768),w=e(30728),u=e(44115),d=e(39e3),y=e(69368),h=e(23422),i=e(54801),f=e(41818),p=e(46082),s=e(70933),l=e(67588),C=e(4235),v=e(62587),a=e(36518),P=e(93413),b=e(47163),g=e(8580),S=e(56202),t=e(12566),_=e(72214);const I=L=>L.colorpanel.currentSelect,k=L=>L.colorpanel.isShowColorList,j=L=>L.colorpanel.colorInputOption,z=L=>L.colorpanel.historyColors,K=L=>L.colorpanel.favoriteColors,$=L=>L.colorpanel.colorPickerListener,A=()=>{},E=()=>{let L=!1,V=null;return M=>{try{if(L){var D;L=!1,(D=V)==null||D.abort("abort EyeDropper already opened")}else L=!0,V=new AbortController,MB.action("colorpanel:set:eyedropperStatus",{isEyedroppedOpen:!0}),new window.EyeDropper().open({signal:V.signal}).then(W=>{M(W),MB.action("colorpanel:set:eyedropperStatus",{isEyedroppedOpen:!1})}).catch(W=>!1).finally(()=>{L=!1,MB.action("colorpanel:set:eyedropperStatus",{isEyedroppedOpen:!1})})}catch(W){const{name:F,version:B}=(0,S.VK)();MB.action("colorpanel:set:eyedropperStatus",{isEyedroppedOpen:!1}),["Chrome","Edge"].includes(F)&&B<=95||F==="Opera"&&B<=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"})}}},U=()=>{let L=!1,V=null;const M=n.memo(B=>{let{colorPickedCallback:Y,setIsNativeEyedropperComponentClosed:X,openDownloadPluginModal:G,event:Z}=B;const[J,te]=(0,n.useState)(!0);(0,n.useEffect)(()=>(V=te,()=>{V=null}),[]),(0,n.useEffect)(()=>{J&&(MB.action("colorpanel:set:eyedropperStatus",{isEyedroppedOpen:!0}),X==null||X(!1))},[J]);const he=Se=>{Y({sRGBHex:Se})},de=(0,n.useCallback)(()=>{L=!1,te(!1),X==null||X(!0),MB.action("colorpanel:set:eyedropperStatus",{isEyedroppedOpen:!1})},[te]);return(0,n.useEffect)(()=>{const Se=xe=>{xe&&xe.key!=="Escape"||de()};return document.addEventListener("keydown",Se),()=>{document.removeEventListener("keydown",Se)}},[de]),(0,_.jsx)(p.A,{open:J,event:Z,onClose:de,onChange:he,handleOpenDownloadPluginModal:G})});let D=null;const W=document.createElement("div");document.body.appendChild(W),D=o.createRoot(W);const F=()=>MB.action("modal:update:state",{colorPickerDownloadModal:{isOpen:!0}});return(B,Y,X)=>{try{if(L)L=!1,V&&V(!1);else{var G;if(!window.mbRequestMessage){F();return}L=!0,V&&V(!0),(G=D)==null||G.render((0,_.jsx)(M,{colorPickedCallback:B,setIsNativeEyedropperComponentClosed:X,openDownloadPluginModal:F,event:Y}))}}catch(Z){MB.notice({text:"\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u53D6\u8272\u5668"}),console.log(Z)}}},O=E(),H=U(),Q=(0,r.Mz)([C.nE,s.$S,I,j,z,K,$,s.an,l.O4,l.AM,l.nu,k,s.X_,s.ER],(L,V,M,D,W,F,B,Y,X,G,Z,J,te,he)=>{const de={scale:te/100,size:V,offset:he};let Se,xe;if(L.length>0){const{key:oe,hotAttr:ue={}}=L[0];xe=(0,g.Oj)(oe),Se={cid:oe,name:ue.type,w:ue.w,h:ue.h,x:ue.x,y:ue.y}}const be=W.map(oe=>(0,v.jA)(oe,{w:1,h:1})),ie=F.map(oe=>(0,v.jA)(oe,{w:1,h:1}));return{widgetProps:Se,boundingBox:xe,currentSelect:M==="history"?"favorite":M,colorInputOption:D,isEyedroppedOpen:Y,historyColors:be,favoriteColors:ie,colorPickerListener:B,theme:X,useNativeEyedropper:G,colorPanelMode:Z,isShowColorList:J,viewport:de}}),N=L=>{const{color:V,attr:M,supAttr:D,index:W,onSetRefStyle:F,onColorChange:B,activeColorPanelTab:Y,length:X,isDefaultColor:G,onResetColor:Z,pIsSolidColorOnly:J=!1,position:te,isShowLibPanel:he,canCreateColorRef:de,onSetPosition:Se,colorThumbnailEle:xe,colorUsedRefStyleEle:be,canStopPropagation:ie=!0,onCloseColorPanel:oe,onApplyDidMountSideEffect:ue}=L,{isShowColorList:ve,isEyedroppedOpen:re,widgetProps:fe,viewport:we,boundingBox:Te,colorInputOption:Ie,currentSelect:le,historyColors:me,favoriteColors:Pe,colorPickerListener:pe,theme:ke,useNativeEyedropper:We,colorPanelMode:Ee}=(0,c.d4)(Nt=>Q(Nt)),Ae=D!=="fill"||J,Ce=(0,n.useRef)(null);(0,n.useEffect)(()=>()=>{Ce.current&&clearTimeout(Ce.current)},[]);const _e=()=>!Ee||Ee==="panel"?1:0,Ge=Nt=>{var Bt;const zt=Nt.target;if(zt.closest("#lib-panel-color-edit-modal"))return;const Xt=document.querySelector(".color-input-wp")||null;if(!zt.closest(".--mb--color-picker")&&!zt.closest(".gradient-control-bar")&&Xt!=null&&Xt.classList.contains("is-active")){Nt.stopPropagation(),Xt.classList.remove("is-active"),Xt.blur&&(Xt.blur(),Ce.current&&clearTimeout(Ce.current),Ce.current=setTimeout(()=>{oe()}));return}if(xe!=null&&xe.current.contains(zt)||be!=null&&(Bt=be.current)!=null&&Bt.contains(zt))return Nt.preventDefault();zt.closest(".header-btn")&&Nt.preventDefault();const bt=zt.closest(".hover-add")||zt.closest("#circle1")||zt.closest("#circle2")||zt.closest("#circle3")||zt.closest(".color-stop");if(zt.closest("#mb-toolbar")||zt.closest("#left-slide-panel")||zt.closest("#right-slide-panel")||zt.closest("[type=color-btn]")||zt.closest("#screens")&&!bt||zt.closest(".draft-inline-toolbar .quick-menu-option")||zt.closest(".draft-inline-toolbar .typeface2-btn"))return ie&&Nt.stopPropagation(),oe()},Xe=()=>{var Nt;const Bt=((Nt=document.getElementById("screens"))==null?void 0:Nt.getBoundingClientRect())||{width:0,height:0};return new u.h().scale(we.scale,we.scale).translate(w.Z.xy(Bt.width/2,Bt.height/2)).translate(w.Z.xy(we.offset.x,we.offset.y))},Ue=(0,c.wA)(),pt=Nt=>{Nt.colorDropdownOption?Ue({type:"colorpanel:set:currentSelect",payload:{currentSelect:Nt.colorDropdownOption}}):Nt.colorInputOption?Ue({type:"colorpanel:set:colorInputOption",payload:{colorInputOption:Nt.colorInputOption}}):Nt.favoriteColors?Ue({type:"entry:update:favorite-colors",payload:{favoriteColors:JSON.stringify(Nt.favoriteColors.map(Bt=>(0,v.sD)(Bt)))}}):Nt.historyColors&&Ue({type:"entry:update:history-colors",payload:{historyColors:JSON.stringify(Nt.historyColors.map(Bt=>(0,v.sD)(Bt)))}})},Ye=Nt=>{Nt.colorPickerListener&&Ue({type:"colorpanel:set:colorPickerListener",payload:{colorPickerListener:Nt.colorPickerListener}})};let Qe=!1;const[lt,tt]=(0,n.useState)(!0),qe=async Nt=>{if((0,S.b8)()){let Bt=null;try{Bt=window.MB_DESKTOP_GET_COLOR_HEX_RGB||window.parent.MB_DESKTOP_GET_COLOR_HEX_RGB}catch(zt){console.warn(zt)}if((0,S.uF)()&&We)new window.EyeDropper().open().then(zt=>{let{sRGBHex:Xt}=zt;return pe(f.Q.hex(Xt))});else{if(!Bt||Qe)return;Qe=!0;try{Bt().then(zt=>{if(!zt)return;const{hex:Xt}=(0,y.H0)(zt);pe(f.Q.hex(Xt))},zt=>console.warn(zt)).then(()=>Qe=!1)}catch(zt){console.warn(zt),Qe=!1}}}else{if(ENV.IS_MO){window.EyeDropper&&O(Bt=>{let{sRGBHex:zt}=Bt;return pe(f.Q.hex(zt))});return}if((0,S.cX)()){window.EyeDropper&&O(Bt=>{let{sRGBHex:zt}=Bt;return pe(f.Q.hex(zt))});return}if(!window.chrome){Ue({type:"modal:update:state",payload:{colorPickerDownloadModal:{isOpen:!0}}});return}if(window.mbSendMessage){H(Bt=>{let{sRGBHex:zt}=Bt;return pe(f.Q.hex(zt))},Nt,tt);return}Ue({type:"modal:update:state",payload:{colorPickerDownloadModal:{isOpen:!0}}})}},et=(Nt,Bt,zt)=>{Nt&&(B({value:(0,v.F0)(Nt),compressible:Bt}),Nt.type!==i.LA.Solid&&MB.commonGuideHelper.checkGuideToBeShown(P.c.GUIDE_GRADIENT_FILL)&&!MB.commonGuideHelper.checkGuideHasShown(P.c.GUIDE_GRADIENT_FILL)&&(MB.commonGuideHelper.closeGuide(P.c.GUIDE_GRADIENT_FILL),MB.commonGuideHelper.markGuideAsRead(P.c.GUIDE_GRADIENT_FILL)))},st=(0,v.$8)(V,{w:(fe==null?void 0:fe.w)||200,h:(fe==null?void 0:fe.h)||100}),at=Nt=>{Ue({type:"entry:update:color_panel_mode",payload:{mode:Nt===1?"panel":"space"}})},ct=Nt=>{Ue({type:"colorpanel:set:isShowColorList",payload:{isShowColorList:Nt}})},rt=()=>{sdkStore.combineMergeMark("color-panel-change")},At=()=>{sdkStore.combineMerge("color-panel-change")};(0,n.useEffect)(()=>(MB.f.isInSetting=!0,()=>{MB.f.isInSetting=!1}),[]);const ot=Nt=>{if(Nt){let Bt;V.fill!=="solid"?Bt={fill:"solid",fillIsVisible:V.fillIsVisible,solidColor:V.knobList[0].color}:Bt={...V},Ue({type:"modal:update:state",payload:{libEditColorModal:{isOpen:!0,position:{...te,left:te.left-240},type:"create",supAttr:D,attr:M,color:Bt,onSetRefStyle:F,onColorChange:B}}})}else Ue({type:"modal:reset:popup:state",payload:{modalName:"libEditColorModal"}})},Tt=Nt=>{F(Nt),oe()},ft=Nt=>{if(!Nt||!ue)return;const Bt=ue(xe,Nt);Bt&&Se(Bt)};return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(h.SP,{locale:(0,b.w)(),theme:ke,themeColor:a.fm.color_proto.value_light,widgetProps:fe,historyColors:me,favoriteColors:Pe,currentSelect:le,colorInputOption:Ie,colorPickerEnabled:!1,isEyedropperOpen:re,nativeEyedropperIsOpen:lt,toggleColorPicker:qe,saveColorPreference:pt,containerEle:document.querySelector("#screens"),viewport:we,screenOffset:w.Z.xy(0,48),contextTransform:Xe(),boundingBox:Te,controlBarInteract:A,setInteraction:Ye,isDefaultColor:G,onResetColor:Z,colorObj:st,attr:M,position:te,isSolidColorOnly:Ae,isHideBlendMode:!0,index:X-W,activeTab:Y,isShowLibPanel:he,canCreateColorRef:de,onClose:oe,onPositionChanged:Se,onColorSave:et,defaultTab:_e(),onChangeTab:at,onChangeShowColorList:ct,isShowColorList:ve,onMouseDownCallback:rt,onMouseUpCallback:At,onMouseDownToggleCreateModal:ot,onApplyDidMountSideEffect:ft,children:(0,_.jsx)(t.k,{type:"color",onSetRefStyle:Tt,onColorChange:B,onClose:oe})}),(0,_.jsx)(d.A,{target:document,onMouseDown:(0,d.t)(Ge,{capture:!0})})]})}},15572:(Fe,ee,e)=>{"use strict";e.d(ee,{P:()=>$n});var n=e(38502),r=e(18381),c=e(12211),o=e(67052),w=e(95549),u=e(70933),d=e(74923),y=e(11032),h=e(79371),i=e.n(h),f=e(17307),p=e(67588),s=e(53732),l=e.n(s),C=e(93093),v=e(11582),a=e(65415),P=e(68434),b=e(24374),g=e(93971),S=e(18356),t=e(20089),_=e(72214);class I extends n.PureComponent{render(){const{className:cn,level:yt,builtWidgets:Lt,collapsePanelSet:Wt,onRenderIcon:Jt,onTogglePanel:In,screenMeta:Ln,rootProject:hn,showDragMode:_o,isAdsorbentReferenceLine:vo,popupsPanelName:Qn,keyword:He="",quickCreateBuiltinSceneData:Re,dispatch:De}=this.props;if(!Lt)return null;const{cid:Be,type:$e,groupName:Ze,items:nt}=Lt,mt=Wt.has(Be);return(0,_.jsx)(v.A,{className:l()("search-result-item-collapse",cn),id:Be,title:Ze,expanded:mt,renderIcon:()=>Jt(mt),onToggle:()=>In(Be),isSearch:!0,secondary:!0,level:yt,children:(0,_.jsx)("ul",{className:l()("search-result-item-container","search_built_widgets",$e),children:nt.map(xt=>{const{cid:gt,name:wt,svg_icon:Zt,isMockingBotWidget:Ft,template:Gt,type:Dt,key:Qt}=xt;if([t.x.WRichText,t.x.WRect,t.x.WImage].includes(Dt)){const yn=(0,S.OZ)(Dt);if(yn)return(0,_.jsx)(P.A,{widgetInsertableData:yn,className:l()({active:Re===yn.data})},yn.key)}return Ft?(0,_.jsx)(b.Y,{screenMeta:Ln,rootProject:hn,groupCid:"builtin",name:wt,type:Dt,icon:Zt,showDragMode:_o,isAdsorbentReferenceLine:vo,popupsPanelName:Qn,source:g.ol.SearchPanel,keyword:He,keyIcon:Qt,dispatch:De},wt):Gt?(0,_.jsx)(b.C,{template:xt,showDragMode:_o,isAdsorbentReferenceLine:vo,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,yt,Lt,Wt,Jt,In)=>({screenMeta:$t,rootProject:cn,showDragMode:yt,isAdsorbentReferenceLine:Lt,popupsPanelName:Wt,keyword:Jt,quickCreateBuiltinSceneData:In})),j=(0,r.Ng)($t=>k($t))(I);var z=e(29294),K=e(18575),$=e(40410),A=e(10472),E=e(54450),U=e(78257),O=e(43371);class H extends n.PureComponent{constructor(){super(...arguments),(0,w.A)(this,"onAddToOrg",cn=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{dispatch:yt,onSearch:Lt}=this.props;yt({type:"entry:batch:transfer:user:combo:to:org",payload:{combo:cn,callback:()=>{Lt&&Lt()}}})}),(0,w.A)(this,"handleGetComboActions",()=>{const{currentOrg:cn,isOrg:yt,group:Lt}=this.props;return{...(0,O.s)({...this.props,group:Lt,popupsName:U.lS.Search}),onOrg:cn&&!yt?this.onAddToOrg:null}})}render(){const{item:cn,group:yt,isOrg:Lt,currentUser:Wt,containerRect:Jt,canEditLibrary:In,createTemplatesData:Ln}=this.props;return(0,_.jsx)(E.A,{groupCid:yt==null?void 0:yt.cid,item:cn,currentUserId:Wt==null?void 0:Wt.id,canEditLibrary:Lt?In:!0,containerRect:Jt,comboActions:this.handleGetComboActions(),createTemplatesData:Ln},cn.key)}}const Q=(0,c.Mz)([u.wA,u.HW,u.X_,u.Pz,u.PL,p.PI,p.k3,u.F2,A.r,u.YY],($t,cn,yt,Lt,Wt,Jt,In,Ln,hn,_o)=>({currentOrg:$t,currentUser:cn,scale:yt,canvasRect:Lt,rootProject:Wt,showDragMode:Jt,isAdsorbentReferenceLine:In,projectUpperCid:Ln==null?void 0:Ln.cid,currentEditMode:hn,createTemplatesData:_o})),N=(0,r.Ng)($t=>Q($t))(H);var L=e(69874),V=e(68455),M=e(67787),D=e(80985),W=e(51090);const F=M.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),B=M.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=M.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=M.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,W.L9),G=M.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=M.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=M.Ay.div.withConfig({displayName:"styles__StyledResourcesGroupActionsMenu",componentId:"sc-78rp0k-6"})(["",""],W.n9),te=M.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),he=(0,M.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 de extends n.PureComponent{constructor(cn){var yt;super(cn),(0,w.A)(this,"handleEdit",Wt=>{Wt.stopPropagation(),this.setState({isEditing:!0}),this.handMouseLeave()}),(0,w.A)(this,"handleTransfer",Wt=>{Wt.stopPropagation();const{item:Jt,groupAction:{onTransfer:In}}=this.props;In(Jt)}),(0,w.A)(this,"handleConfirm",Wt=>{const{isOrg:Jt,groupAction:{onConfirm:In},item:Ln}=this.props;In(Wt,Ln,()=>{MB.notice({text:I18N.Popups.folder_save_success})},Jt),this.setState({isEditing:!1})}),(0,w.A)(this,"handleRemove",Wt=>{Wt.stopPropagation();const{isOrg:Jt,item:In,groupAction:{onRemove:Ln}}=this.props;Ln(In,Jt)}),(0,w.A)(this,"setListElementRef",Wt=>this.$element=Wt),(0,w.A)(this,"handleEditName",Wt=>{Wt.stopPropagation(),this.setState({isEditing:!0})}),(0,w.A)(this,"handMouseEnter",Wt=>{Wt.buttons===0&&this.setState({isListItemGroup:!0})}),(0,w.A)(this,"handMouseLeave",()=>{this.setState({isListItemGroup:!1})}),this.state={isEditing:!1,isListItemGroup:!1};const Lt=cn.isOrg?cn.item.user_id&&cn.item.user_id===((yt=cn.currentUser)==null?void 0:yt.id):!0;this.menuItems=[{isShow:!0,label:I18N.ToolBar.rename,onClick:this.handleEdit},{isShow:Lt,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:yt,canEditLibrary:Lt,onClickGroup:Wt}=this.props,{cid:Jt,name:In}=cn,{isEditing:Ln,isListItemGroup:hn}=this.state,_o=yt?Lt:!0;return(0,_.jsxs)(X,{className:"folder-group","data-cid":Jt,children:[(0,_.jsxs)("div",{className:"container",onClick:()=>Wt(yt,cn),children:[(0,_.jsx)(f.C,{name:"art_board/folder",className:"folder"}),_o&&(0,_.jsxs)("div",{ref:this.setListElementRef,className:l()("actions",{hover:hn}),onMouseDown:this.handStopPropagation,onClick:this.handStopPropagation,onMouseEnter:this.handMouseEnter,onMouseLeave:this.handMouseLeave,children:[(0,_.jsx)(f.C,{name:"design/templates/temp-btn",className:"library-menu"}),hn&&(0,_.jsx)(V.A,{targetNode:this.$element,menuItems:this.menuItems,direction:"down",distance:2})]})]}),(0,_.jsxs)("div",{className:l()("item-name",{isLayerHover:!Ln}),onClick:this.handleEditName,children:[(0,_.jsx)(L.A,{value:In,className:"editable-name",isEditing:_o&&Ln,onConfirm:this.handleConfirm},In),_o&&!Ln&&(0,_.jsx)("div",{className:"item-action",children:(0,_.jsx)(f.C,{name:"general/pen"})})]})]})}}const Se=(0,c.Mz)([u.HW,u.wA],($t,cn)=>({currentUser:$t,currentOrg:cn})),xe=(0,r.Ng)($t=>Se($t))(de);var be=e(72606),ie=e(89505);class oe extends n.PureComponent{render(){const{item:cn,isOrg:yt,canEditLibrary:Lt,containerRect:Wt,currentUser:Jt,createTemplatesData:In,dispatch:Ln}=this.props;return(0,_.jsx)(be.O,{asset:cn,shouldAuth:yt,canEditLibrary:yt?Lt:!0,assetActions:(0,ie.c)({...this.props,popupsName:U.lS.Search}),containerRect:Wt,currentUserId:Jt==null?void 0:Jt.id,createTemplatesData:In,dispatch:Ln})}}const ue=(0,c.Mz)([u.wA,u.HW,u.X_,u.Pz,u.PL,p.PI,p.k3,u.Ur,u.YY],($t,cn,yt,Lt,Wt,Jt,In,Ln,hn)=>({currentOrg:$t,currentUser:cn,scale:yt,canvasRect:Lt,rootProject:Wt,showDragMode:Jt,isAdsorbentReferenceLine:In,currentScreen:Ln,createTemplatesData:hn})),ve=(0,r.Ng)($t=>ue($t))(oe);var re=e(83199),fe=e(46322),we=e(10429),Te=e(54190),Ie=e(3862),le=e(77277),me=e(90144);class Pe extends n.PureComponent{constructor(){super(...arguments),(0,w.A)(this,"handleRenderSearchResultItem",(cn,yt)=>{const{isOrg:Lt,containerRect:Wt,rootProject:Jt,keyword:In,currentCategoryTab:Ln,canEditLibrary:hn,dispatch:_o,onSetCurrentNodeIcon:vo,onStarResources:Qn,onClickResources:He,onPaidResources:Re,onClickGroup:De,groupAction:Be,onSearch:$e,onTrackTemplate:Ze}=this.props;switch(cn){case le.I.SelfMakeCombo:return(0,_.jsx)(N,{item:yt,group:yt==null?void 0:yt.group,isOrg:Lt,canEditLibrary:hn,containerRect:Wt,onSearch:$e});case le.I.MarketTemplate:{const{mt:nt,currentResources:mt,currentSearchCategory:xt}=yt;return(0,_.jsx)(z.A,{marketTemplate:nt,currentResources:mt,containerRect:Wt,onPaidTemplates:()=>Re(mt),onTrack:Ze,isShowFolderIcon:xt===Ie.Gd,onOpenFolder:He})}case le.I.Group:return(0,_.jsx)(xe,{item:yt,isOrg:Lt,canEditLibrary:hn,onClickGroup:De,groupAction:Be});case le.I.Resources:return(0,_.jsx)($.A,{isStared:yt.is_star,marketTemplate:yt,onStarTemplates:()=>Qn(yt),onClickCard:()=>He(yt)});case le.I.IconList:return(0,_.jsx)(pe,{rootProject:Jt,group:yt,keyword:In,currentCategoryTab:Ln,onSetCurrentNodeIcon:vo,onClickCard:()=>{He({cid:yt.cid,title:yt.title,is_star:yt.is_star,category:yt.category,is_color_icon:yt.is_color_icon,policy:yt.policy,groupCid:yt.groupCid}),(0,me.gQ)({widget_file_name:yt.title,keyword:In,source:yt.is_color_icon?me.Dn.COLOR_ICON_SEARCH:me.Dn.ICON_SEARCH})},dispatch:_o});case le.I.Asset:return(0,_.jsx)(ve,{item:yt,isOrg:Lt,canEditLibrary:hn,containerRect:Wt});case le.I.FindPicture:return(0,_.jsx)(fe.I,{asset:yt,popupsName:U.lS.Search})}})}render(){const{type:cn,item:yt}=this.props;return(0,_.jsx)(_.Fragment,{children:this.handleRenderSearchResultItem(cn,yt)})}}const pe=(0,n.memo)($t=>{const cn=(0,r.d4)(u.YY),{group:yt,rootProject:Lt,keyword:Wt,currentCategoryTab:Jt,group:{title:In,data:Ln,is_color_icon:hn,policy:_o},onSetCurrentNodeIcon:vo,onClickCard:Qn,dispatch:He}=$t,Re=Ze=>{let{itemCid:nt,groupCid:mt}=Ze;const xt={projectUpperType:"icon_group",projectUpperCid:mt,itemCid:nt};(0,Te.Cp)(xt)},De=(Ze,nt,mt)=>{const xt=Jt!==Ie.C,gt=Jt===Ie.C&&hn?Ie.WY:Jt,wt=xt?g.Jj[gt]+"-"+g.Ii.OtherSearchResults:g.Jj[gt];(0,g.Mi)({popupsName:U.lS.Search,addType:Ze,source:wt,category:gt,templateGroupName:In,name:nt,rootProject:Lt,keyword:Wt,templateGroupCid:mt})},Be=(Ze,nt,mt,xt)=>{He({type:"entry:create:svg_icon_path:by:mousedown",payload:{event:Ze,icon:nt,iconName:mt,iconDisplayName:xt,isMultiColorIcon:hn,callback:()=>{Re({itemCid:nt.id,groupCid:nt.groupCid}),De((Ze==null?void 0:Ze.type)==="mousedown"?g.k8.Drag:g.k8.DoubleClick,mt,nt.groupCid)}}})},$e=(Ze,nt)=>nt.offsetWidth(0,_.jsx)(we.A,{index:nt,icon:Ze,isMultiColorIcon:hn,onDoubleClick:Be,onMouseDown:Be,onSetCurrentNodeIcon:vo,createTemplatesData:cn},Ze.id))})]})});var ke=e(79743),We=e(77036),Ee=e(59531),Ae=e(37944),Ce=e(12991),_e=e(8228),Ge=e(88670),Xe=e(73298);const Ue=$t=>{let{popupsPanelName:cn,children:yt,userInput:Lt="",source:Wt}=$t;const Jt=(0,r.wA)();return yt(async()=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const Ln=pt(Wt,cn),hn=Ye(Wt,cn);if(cn===_e.SR.Combo){await Jt({type:"ai:update:state",payload:{showAIModal:!1,currentAiComponent:null}}),Xe.ZF.setCache(Ln),(0,Xe.U2)({source:hn}),Jt({type:"entry:aiComponent:open:mode",payload:{userTextContent:Lt}});return}const _o=(0,_e.$I)().find(vo=>vo.type===cn);_o&&Jt({type:Ge.X.AIOpenModal,payload:{..._o,userInput:Lt,source:Ln,openTrackSource:hn}})})},pt=($t,cn)=>{if(cn===_e.SR.PageV9)switch($t){case _e.IA.SearchPanel:return"\u641C\u7D22\u9762\u677F-\u9875\u9762AI";default:return"\u9875\u9762AI"}if(cn===_e.SR.Combo)switch($t){case _e.IA.SearchPanel:return"\u641C\u7D22\u9762\u677F-\u7EC4\u4EF6AI";default:return""}},Ye=($t,cn)=>{if(cn===_e.SR.PageV9)switch($t){case _e.IA.SearchPanel:return"\u641C\u7D22\u9762\u677F-\u9875\u9762AI";default:return""}if(cn===_e.SR.Combo)switch($t){case _e.IA.SearchPanel:return"\u641C\u7D22\u9762\u677F-\u7EC4\u4EF6AI";default:return""}},Qe=$t=>{let{className:cn,iconName:yt,text:Lt,onClick:Wt}=$t;return(0,_.jsxs)(lt,{className:cn,onClick:Wt,children:[(0,_.jsxs)("div",{className:"left",children:[(0,_.jsx)(f.C,{name:yt,isColorPure:!0}),(0,_.jsx)("span",{children:Lt})]}),(0,_.jsx)(f.C,{name:"art_board/mkt/search/right_arrow",className:"arrow",isColorPure:!0})]})},lt=M.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 tt=e(91474),qe=e(5288),et=e(19062);class st extends n.PureComponent{constructor(){super(...arguments),(0,w.A)(this,"collapse_title_i18n_map",{[Ce.rf.User]:I18N.LeftSidePanel.user_resources,[Ce.rf.Org]:I18N.LeftSidePanel.org_resources,[Ce.rf.Find]:I18N.Resources.findTab,[Ce.rf.Star]:I18N.Resources.user_resource_panel.store,[Ce.rf.PageScreen]:I18N.Resources.page_panel.page,[Ce.rf.PageLibrary]:I18N.Resources.page_panel.page_library,[Ce.rf.AssetPic]:"\u56FE\u7247",[Ce.rf.AssetSticker]:"\u8D34\u7EB8"}),(0,w.A)(this,"renderIcon",cn=>{const yt=cn?"design/group_open":"design/group_close";return(0,_.jsx)(f.C,{className:"expanded-icon",name:yt})}),(0,w.A)(this,"renderStickerHeader",()=>(0,_.jsxs)("header",{className:"sticker-header",onClick:()=>this.handleTogglePanel(qe.SM),children:[(0,_.jsx)(f.C,{className:"arrow-icon",name:"new/arrow_1/mini"}),(0,_.jsx)("span",{children:this.collapse_title_i18n_map[Ce.rf.AssetSticker]}),(0,_.jsx)(re.A,{content:I18N.Resources.resourcesFooter.free_for_member,direction:"down",distance:8,enterHoverTime:100,children:(0,_.jsx)(f.C,{name:"left_panel/icon_list/mat_member",className:"mat-member",isColorPure:!0})})]})),(0,w.A)(this,"handleTogglePanel",cn=>{this.props.dispatch({type:"searchPanel:toggle:collapsePanelSet",payload:{id:cn}})}),(0,w.A)(this,"handleClickResources",cn=>{const{onClickResources:yt,keyword:Lt}=this.props;yt&&yt(cn),(0,me.gQ)({widget_file_name:cn.title,keyword:Lt,source:me.Dn.WIDGET_SEARCH,filter:""})}),(0,w.A)(this,"handleRenderSearchResults",cn=>{let{resultList:yt,isOrg:Lt,containerRect:Wt,isVisible:Jt}=cn;if(!yt)return null;const{type:In,items:Ln}=yt;return In===le.I.FindPicture?(0,_.jsx)("div",{className:l()("search-result-find-picture-container"),children:(0,_.jsx)(Ee.D,{pictureList:Ln,popupsName:U.lS.Search})},In):In===le.I.FindSticker?(0,_.jsx)("div",{className:l()("search-result-find-sticker-container"),children:(0,_.jsx)(Ae.u,{stickerList:Ln,popupsName:U.lS.Search})},In):In===le.I.IconList?this.handleRenderItems({type:In,items:Ln,isOrg:Lt,containerRect:Wt,isVisible:Jt}):(0,_.jsx)("ul",{className:l()("search-result-item-container",In&&In),children:this.handleRenderItems({type:In,items:Ln,isOrg:Lt,containerRect:Wt,isVisible:Jt})},In)}),(0,w.A)(this,"handleRenderComboMtSearchResults",cn=>{let{resultList:yt,isOrg:Lt,containerRect:Wt,isVisible:Jt}=cn;if(!yt)return null;const{resultCategory:In,level:Ln,keyword:hn}=this.props,{type:_o,items:vo}=yt,Qn=(0,Ce.$Y)(vo,"cid");return(0,_.jsx)("ul",{className:l()("search-result-item-container isCombo observe-target-list"),children:Object.entries(Qn).map((He,Re)=>{var De,Be;let[$e,Ze]=He;return(0,_.jsx)(ke.A,{dataCid:(De=Ze[0])==null||(De=De.currentResources)==null?void 0:De.cid,className:In,index:Re,title:((Be=Ze[0])==null||(Be=Be.currentResources)==null?void 0:Be.title)||"DefaultMtName",onClickResources:()=>{var nt;return this.handleClickResources((nt=Ze[0])==null?void 0:nt.currentResources)},trackSource:me.Dn.WIDGET_SEARCH,keyword:hn,level:Ln,children:(0,_.jsx)("div",{className:"resources-card-list",children:this.handleRenderItems({type:_o,items:Ze.slice(0,6),isOrg:Lt,containerRect:Wt,isVisible:Jt})})},$e)})},_o)}),(0,w.A)(this,"handleRenderPageMtSearchResults",cn=>{let{resultList:yt,containerRect:Lt,isVisible:Wt}=cn;if(!yt)return null;const{type:Jt,items:In}=yt,{level:Ln,resultCategory:hn,onPaidResources:_o,onTrackTemplate:vo,onClickResources:Qn}=this.props,He=(0,Ce.$Y)(In,"platform"),Re=[["mobile",tt.Il,I18N.Resources.page_panel.mobile],["web",tt.eD,I18N.Resources.page_panel.web],["other",tt.i1,I18N.Resources.page_panel.other]];return(0,_.jsx)("ul",{className:"search-page-result-container observe-target-list",children:Re.map((De,Be)=>{let[$e,Ze,nt]=De;const mt=Ze.reduce((gt,wt)=>gt.concat(He[wt]||[]),[]);if(!mt||mt.length===0)return null;const xt=mt==null?void 0:mt.map(gt=>{let{mt:wt}=gt;return wt});return(0,_.jsx)(ke.A,{dataCid:$e,className:hn,index:Be,title:nt,level:Ln,children:(0,_.jsx)(We.A,{category:Ie.Gd,platform:$e,marketTemplateItemList:xt,containerRect:Wt?Lt:null,onPaidResources:_o,onTrack:vo,isShowSign:!0,isShowFolderIcon:!0,onOpenFolder:Qn})},$e)})},Jt)}),(0,w.A)(this,"handleRenderItems",cn=>{let{type:yt,items:Lt,isOrg:Wt,containerRect:Jt,isVisible:In}=cn;if(!Array.isArray(Lt)){const{resultCategory:xt,resultGroupList:gt}=this.props;(0,C.Cp)(new Error("DEBUG search result is undefined"),{level:"debug",fingerprint:["debug-search-result-is-undefined"],extra:{resultCategory:xt,resultGroupList:gt}})}if(!(Lt!=null&&Lt.length))return null;const{rootProject:Ln,keyword:hn,currentCategoryTab:_o,canEditLibrary:vo,onSetCurrentNodeIcon:Qn,onStarResources:He,onClickResources:Re,onPaidResources:De,onClickGroup:Be,groupAction:$e,onSearch:Ze,onTrackTemplate:nt,dispatch:mt}=this.props;return Lt.map(xt=>{var gt,wt;const Zt=yt===le.I.MarketTemplate?((gt=xt.mt)==null?void 0:gt.id)||((wt=xt.mt)==null?void 0:wt.cid):yt===le.I.Asset||yt===le.I.FindPicture?xt.asset_cid:yt===le.I.SelfMakeCombo?xt.key:xt.cid;return(0,_.jsx)(Pe,{isOrg:Wt,type:yt,item:xt,canEditLibrary:vo,rootProject:Ln,containerRect:In?Jt:null,keyword:hn,currentCategoryTab:_o,onSetCurrentNodeIcon:Qn,onStarResources:He,onClickResources:Re,onPaidResources:De,onClickGroup:Be,groupAction:$e,onSearch:Ze,onTrackTemplate:nt,dispatch:mt},Zt)})}),(0,w.A)(this,"handleRenderCollapseItems",cn=>{var yt;let{containerRect:Lt,isVisible:Wt}=cn;const{resultCategory:Jt,resultGroupList:In=[],searchCollapsePanelSet:Ln,builtWidgets:hn,level:_o}=this.props,vo=(hn==null||(yt=hn.items)==null?void 0:yt.length)>0;return(0,_.jsxs)(_.Fragment,{children:[vo&&(0,_.jsx)(j,{className:"search-widgets-render",builtWidgets:hn,collapsePanelSet:Ln,level:_o,onRenderIcon:this.renderIcon,onTogglePanel:this.handleTogglePanel}),In.map(Qn=>{const{cid:He,name:Re,list:De}=Qn,Be=Ln.has(He),$e=this.collapse_title_i18n_map[Re];if(!(De!=null&&De.length))return null;const Ze=De.filter(gt=>{let{type:wt}=gt;return![le.I.Group,le.I.Resources,le.I.Widget].includes(wt)}),nt=De.filter(gt=>{let{type:wt}=gt;return[le.I.Group,le.I.Resources].includes(wt)}),mt=Re===Ce.rf.Org,xt=Re===Ce.rf.AssetSticker;return(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(v.A,{className:l()("search-result-item-collapse",Jt),id:He,title:$e,expanded:Be,renderIcon:this.renderIcon,onToggle:this.handleTogglePanel,renderHeader:xt?this.renderStickerHeader:void 0,isSearch:!0,level:_o,children:[...Ze,...nt].map(gt=>{if(!gt)return null;const{type:wt}=gt;return Jt===Ie.t_&&wt===le.I.MarketTemplate?this.handleRenderComboMtSearchResults({resultList:gt,isOrg:mt,containerRect:Lt,isVisible:Wt}):Jt===Ie.Gd&&wt===le.I.MarketTemplate?this.handleRenderPageMtSearchResults({resultList:gt,containerRect:Lt,isVisible:Wt}):this.handleRenderSearchResults({resultList:gt,isOrg:mt,containerRect:Lt,isVisible:Wt})})},He)})})]})}),(0,w.A)(this,"handleRenderContent",()=>{const{resultCategory:cn,resultGroupList:yt,containerRect:Lt,isVisible:Wt,templateCategoryNavIndex:Jt}=this.props;switch(cn){case Ie.t_:case Ie.b4:return this.handleRenderCollapseItems({containerRect:Lt,isVisible:Wt});case Ie.Gd:{if(Jt===0)return this.handleRenderCollapseItems({containerRect:Lt,isVisible:Wt});if(Jt===1)return this.handleRenderSearchResults({resultList:yt[yt.length-1],isOrg:!1,containerRect:Lt,isVisible:Wt})}case Ie.C:case Ie.RD:return yt.map(In=>this.handleRenderSearchResults({resultList:In,isOrg:!1,containerRect:Lt,isVisible:Wt}));default:return null}}),(0,w.A)(this,"renderAI",()=>{const{isEditingCombo:cn,resultCategory:yt,keyword:Lt}=this.props;if(![Ie.t_,Ie.Gd].includes(yt)||yt===Ie.t_&&cn)return;const Wt=yt===Ie.Gd?_e.SR.PageV9:_e.SR.Combo,Jt=yt===Ie.Gd?I18N.ChatGPT.ai_prototype_component_title:I18N.ChatGPT.ai_component_title,In=yt===Ie.Gd?"chatGPT/ai-component-page":"chatGPT/ai-component-component";return(0,_.jsx)(Ue,{popupsPanelName:Wt,userInput:Lt,source:_e.IA.SearchPanel,children:Ln=>(0,_.jsx)(Qe,{className:"ai-entry-icon-button "+yt,iconName:In,text:"AI "+Jt,onClick:Ln})})})}render(){const{sum:cn,onRenderIconSetting:yt,isCurrentSearchCategory:Lt,isFromIconSelectPopup:Wt}=this.props;return cn===0?(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(et.q,{className:l()("searchPanel",{isFromIconSelectPopup:Wt}),children:(0,_.jsx)(a.b,{})})}):(0,_.jsxs)(_.Fragment,{children:[!Wt&&Lt&&yt(),(0,_.jsx)(Y,{className:"search-result-container",children:(0,_.jsx)("div",{className:"resultList",children:this.handleRenderContent()})})]})}}var at=e(34771),ct=e(72447);const rt=$t=>{const{resultCategory:cn,searchResultListMap:yt,searchCollapsePanelSet:Lt,categoryList:Wt,categoryI18nMap:Jt,isDirectlyEditingProjectMain:In,handleTogglePanel:Ln,renderSearchResultsContent:hn}=$t,_o=Lt.has(qe.Jf),vo=()=>(0,_.jsxs)("header",{onClick:()=>Ln(qe.Jf),children:[(0,_.jsx)("span",{children:I18N.Resources.searchPanel.otherResults}),(0,_.jsx)(f.C,{name:"common/expand"})]});return(0,_.jsx)(At,{children:(0,_.jsx)(v.A,{className:l()("other-search-results-collapse"),id:qe.Jf,title:I18N.Resources.searchPanel.otherResults,expanded:_o,onToggle:Ln,renderHeader:vo,children:Object.entries(yt).map(Qn=>{let[He,Re]=Qn;if(cn===Ie.Gd&&He===Ie.RD||He===cn&&Wt.includes(He)||!Re||Re.total===0||!In&&He===Ie.Gd)return null;const De=Lt.has(He),Be=He;return(0,_.jsx)(v.A,{className:l()("category-search-results-collapse",He),id:He,title:I18N.Resources.searchPanel.searchCategory.replace(/%category%/,Jt[He])+"\uFF08"+Re.total+"\uFF09",expanded:De,onToggle:Ln,isSearch:!0,level:1,children:hn(He)},He)})},qe.Jf)})},At=M.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 ot=e(37342),Tt=e(81717);class ft extends n.PureComponent{constructor(){super(...arguments),(0,w.A)(this,"handleGotoCommunity",()=>{const{keyword:cn,currentCategoryTab:yt}=this.props,[Lt,Wt]=(()=>{switch(yt){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:Wt}),(0,ot.JW)("/com24/home?source="+Lt+"&category="+yt+"&keyword="+cn+"&t=20250122","_blank","noreferrer")})}render(){const{currentCategoryTab:cn}=this.props;return cn!==Ie.b4&&(0,_.jsx)(Qe,{className:"goto-community-button",iconName:"art_board/mkt/search/community_icon",text:I18N.SettingPanel.sucai,onClick:this.handleGotoCommunity})}}(0,w.A)(ft,"defaultProps",{isFromIconSelectPopup:!1,isEmpty:!1});var Nt=e(40610),Bt=e(28306),zt=e(13642),Xt=e(88909),bt=e(78915),jn=e(70812);const xo=$t=>{var cn;const{loading:yt,unsplashLoading:Lt,word:Wt,type:Jt,searchResultSum:In,searchResultListMap:Ln,rootProject:hn,isDirectlyEditingProjectMain:_o,isFromIconSelectPopup:vo,iconSelectPopupSearchResultList:Qn,iconSelectPopupSearchResultSum:He,searchCollapsePanelSet:Re,isExperience:De,theme:Be,layoutV9:$e,searchMtMetaCidMap:Ze,isEditingCombo:nt,withOverlay:mt,canEditLibrary:xt,onSetCurrentNodeIcon:gt,onStarResources:wt,onPaidResources:Zt,onToggleCurrentResources:Ft,onToggleCurrentComboGroup:Gt,onToggleCurrentAssetGroup:Dt,onGetComboGroupActions:Qt,onGetAssetGroupAction:Ct,onTrack:yn,onGetIsCategory:rn,renderLoading:Rt,dispatch:Dn}=$t,To=(0,r.d4)(d.rx),mo=(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)(()=>mo.map(dn=>{let{type:pn}=dn;return pn}),[mo]),Bn=(0,n.useMemo)(()=>[...mo.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},{}),[mo]),[Ao,uo]=(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=Ln[po])==null?void 0:cn.total)||0),hs=(0,n.useMemo)(()=>(0,Nt.D1)(_o,mt,Wt),[_o,mt,Wt]);(0,n.useEffect)(()=>(zt.A.emit(Xt.rg),()=>{zt.A.emit(Xt.P2,{shownMtItemCids:[]})}),[]),(0,n.useEffect)(()=>{const dn=document.querySelector("#mb-search-results-panel");dn&&dn.scrollTo(0,0),Dn({type:"searchPanel:update:state",payload:{searchCollapsePanelSet:new Set(qe.CR)}})},[po,Dn]),(0,n.useEffect)(()=>{Dn({type:"searchPanel:update:state",payload:{type:po}})},[po,Dn]);const ht=(0,n.useCallback)(dn=>{uo(dn),Dn({type:"searchPanel:update:state",payload:{searchResultCategory:ro[dn]}})},[ro,Dn]);(0,n.useEffect)(()=>{if(_o)return;Ao===(De?2:3)&&ht(0)},[ht,_o,De,Ao]);const Ht=function(dn){var pn,ho,Oo,qn,So;dn===void 0&&(dn=po);const Ut=vo?He:dn===Ie.Gd?(pn=Ln[Jo===0?dn:Ie.RD])==null?void 0:pn.total:(ho=Ln[dn])==null?void 0:ho.total;return{list:vo?Qn:dn===Ie.Gd?[...(Oo=Ln[dn])==null?void 0:Oo.list,...(qn=Ln[Ie.RD])==null?void 0:qn.list]:(So=Ln[dn])==null?void 0:So.list,sum:Ut,resultCategory:vo?Ie.C:dn,collapsePanelSet:vo?new Set:Re}},nn=()=>{const{iconDefaultColor:dn,iconDefaultSize:pn}=$t,{isIcon:ho}=rn(po),{sum:Oo}=Ht();return!ho||Oo===0?null:(0,_.jsx)("footer",{children:(0,_.jsx)(ct.N,{iconDefaultColor:dn,iconDefaultSize:pn})})},en=dn=>{Dn({type:"searchPanel:toggle:collapsePanelSet",payload:{id:dn}})},Un=()=>{Dn(bt.GO.updateAIHTMLAgentType("prototyping")),Dn(bt.GO.enableAIHTML()),Dn(bt.GO.expandAIHTML()),Dn(bt.GO.updateAIHTMLSource("designMubanPanel")),MB.commonGuideHelper.hideAllGuides(),jn.U4.AIOpenSourceTrack(_e.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?_e.SR.PageV9:_e.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,_.jsx)(Ue,{popupsPanelName:Oo,userInput:pn,source:_e.IA.SearchPanel,children:Ut=>(0,_.jsx)(Qe,{className:"ai-entry-icon-button "+po,iconName:So,text:(0,_.jsxs)(_.Fragment,{children:["AI ",qn,ho&&(0,_.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})})},Hn=dn=>{const{sum:pn}=Ht(dn),ho=(0,Ce.Vt)(Wt),Oo=dn===Ie.Gd?Bn[Jo===0?dn:Ie.RD]:Bn[dn];return(0,_.jsx)("div",{className:"result",children:(0,_.jsx)("span",{dangerouslySetInnerHTML:{__html:I18N.Resources.searchPanel.resultDesc_1.replace(/%num%/,pn).replace(/%keyword%/,ho).replace(/%category%/,Oo)}})})},bo=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,_.jsx)("div",{className:"template-category-header-nav",children:(0,_.jsx)(at.Ay,{activeIndex:Jo,onTabChange:bo,children:dn.map(pn=>{let{key:ho,...Oo}=pn;return(0,_.jsx)(at.nl,{...Oo},ho)})})})},Vn=()=>{Dn({type:"modal:update:state",payload:{templateModal:{isOpen:!0,keyword:Wt,source:"file",page:2}}})},Rn=()=>{var dn;return Jo===0||((dn=Ln[Ie.RD])==null?void 0:dn.total)<30?null:(0,_.jsxs)("div",{className:"template-file-more-btn",onClick:Vn,children:[(0,_.jsx)("span",{children:"\u67E5\u770B\u5168\u90E8"}),(0,_.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,_.jsx)(st,{sum:Ut,isFromIconSelectPopup:vo,keyword:Wt,builtWidgets:qn?hs:null,resultCategory:dn,resultGroupList:So||[],searchCollapsePanelSet:an,rootProject:hn,currentCategoryTab:po,isCurrentSearchCategory:Oo,isEditingCombo:nt,canEditLibrary:xt,containerRect:pn,isVisible:ho,onSetCurrentNodeIcon:gt,onStarResources:wt,onClickResources:Ft,onPaidResources:Zt,onClickGroup:qn?Gt:Dt,groupAction:qn?Qt():Ct(),onTrackTemplate:yn,onRenderIconSetting:nn,dispatch:Dn,level:Oo?1:2,templateCategoryNavIndex:Jo},dn)};if(!Ln||!po)return null;if(yt)return Rt();if(vo)return(0,_.jsx)(Po,{keyword:Wt,isFromIconSelectPopup:vo,iconList:Qn,children:(0,_.jsx)(he,{children:(dn,pn)=>Mo(po,dn,pn)})});const wo=i()(()=>zt.A.emit(Xt.kE,{delay:0}),500);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("header",{children:(0,_.jsx)(at.Ay,{activeIndex:Ao,onTabChange:ht,children:mo.map(dn=>{let{key:pn,...ho}=dn;return(0,_.jsx)(at.nl,{...ho},pn)})})}),po===Ie.b4&&Lt?Rt():(0,_.jsxs)(Po,{keyword:Wt,currentCategory:po,searchResultListMap:Ln,children:[po===Ie.Gd&&zn(),Hn(po),(0,_.jsx)(he,{id:"mb-search-results-panel",onScrollChange:wo,children:(dn,pn)=>(0,_.jsxs)(_.Fragment,{children:[Mo(po,dn,pn),po===Ie.Gd&&Rn(),Kn(),us!==0&&(0,_.jsx)(rt,{resultCategory:po,searchResultListMap:Ln,searchCollapsePanelSet:Re,categoryList:ro,categoryI18nMap:Bn,isDirectlyEditingProjectMain:_o,handleTogglePanel:en,renderSearchResultsContent:ho=>Mo(ho,dn,pn)}),!ENV.IS_ON_PREMISES&&(0,_.jsx)(ft,{currentCategoryTab:po,keyword:Wt})]})})]})]})},Po=$t=>{let{keyword:cn,currentCategory:yt,searchResultListMap:Lt,isFromIconSelectPopup:Wt,iconList:Jt,children:In}=$t;return(0,n.useEffect)(()=>{const Ln=Wt?(0,Bt.K2)(cn,Jt):(0,Bt.wP)(cn,Lt);zt.A.emit(Xt.jy,{observeMtItemObj:Ln}),zt.A.emit(Xt.BD)},[Jt,Wt,cn,Lt,yt]),(0,n.useEffect)(()=>{!Wt&&zt.A.emit(Xt.kE)},[yt,Wt]),In},Gn=(0,c.Mz)([A.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,yt,Lt,Wt,Jt,In,Ln,hn,_o,vo,Qn,He,Re)=>{let{isExperience:De}=Lt;const{isEditingProjectMain:Be,isEditingCombo:$e,isEditingBasket:Ze,isEditingMuban:nt}=$t;return{iconDefaultColor:cn,iconDefaultSize:yt,isExperience:De,iconSelectPopupSearchResultList:Wt,searchResultSum:Jt,iconSelectPopupSearchResultSum:In,searchCollapsePanelSet:Ln,isDirectlyEditingProjectMain:Be,searchResultListMap:hn,theme:_o,searchMtMetaCidMap:vo,isEditingCombo:$e,withOverlay:!($e||Ze||nt),unsplashLoading:Qn,layoutV9:He,canEditLibrary:Re}}),yo=(0,r.Ng)($t=>Gn($t))(xo);var Ve=e(80771),ut=e(32847);const Kt=M.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 St extends n.PureComponent{constructor(){super(...arguments),(0,w.A)(this,"handleLoadGroupData",cn=>{const{isOrg:yt,dispatch:Lt}=this.props;Lt(yt?{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:yt,orgAssetsMap:Lt,userAssetsMap:Wt}=this.props,{cid:Jt}=yt,In=cn?Lt.get(Jt):Wt.get(Jt),Ln=!In,hn=!Ln&&In.sort((vo,Qn)=>Qn.ctime-vo.ctime),_o=!Ln&&hn.length;return(0,_.jsx)(Kt,{children:_o?(0,_.jsx)("div",{className:"asset-group-items-list",children:(0,_.jsx)(D.A,{className:"scroll-container",children:(vo,Qn)=>hn.map(He=>(0,_.jsx)(ve,{isOrg:cn,item:He,containerRect:Qn&&vo},He.cid))})}):(0,_.jsx)(et.q,{children:(0,_.jsx)("span",{children:I18N.Resources.empty_folder})})})}}const fn=(0,c.Mz)([d.vl,d.M5],($t,cn)=>{const{orgAssetsMap:yt}=$t,{userAssetsMap:Lt}=cn;return{orgAssetsMap:yt,userAssetsMap:Lt}}),En=(0,r.Ng)($t=>fn($t))(St);class gn extends n.PureComponent{constructor(){super(...arguments),(0,w.A)(this,"handleMouseDown",cn=>cn.preventDefault())}render(){var cn;const{isOrg:yt,comboGroup:Lt,userComboGroup:Wt,orgComboGroup:Jt}=this.props,{cid:In}=Lt,hn=((cn=(yt?Jt:Wt).find(vo=>vo.cid===In))==null?void 0:cn.children)||[],_o=hn==null?void 0:hn.length;return(0,_.jsx)(G,{children:_o?(0,_.jsx)("div",{className:"combo-group-items-list",children:(0,_.jsx)(D.A,{className:"scroll-container",children:(vo,Qn)=>hn.map(He=>(0,_.jsx)(N,{isOrg:yt,item:He,group:Lt,containerRect:Qn&&vo},He.key))})}):(0,_.jsx)(et.q,{children:(0,_.jsx)("span",{children:I18N.Resources.empty_folder})})})}}const Yn=(0,c.Mz)([d.wS,d.lb],($t,cn)=>({userComboGroup:$t,orgComboGroup:cn})),Pn=(0,r.Ng)($t=>Yn($t))(gn);var _n=e(79150),Fn=e(88463),Nn=e(62987);class io extends n.PureComponent{constructor(cn){super(cn),(0,w.A)(this,"handleCreateRef",yt=>this.$ref=yt),(0,w.A)(this,"setElementRef",yt=>this.$element=yt),(0,w.A)(this,"handMouseEnter",yt=>{yt.buttons===0&&this.setState({isOpenMenu:!0})}),(0,w.A)(this,"handMouseLeave",()=>{this.setState({isOpenMenu:!1})}),(0,w.A)(this,"handleGetItemLists",()=>{const{group:yt,isOrg:Lt,currentUser:Wt,currentOrg:Jt}=this.props,In=Lt?yt.user_id&&yt.user_id===(Wt==null?void 0:Wt.id):!0;return[{isShow:!0,label:I18N.ToolBar.rename,onClick:this.handleEdit},{isShow:In,label:I18N.LibraryContainer.delete,onClick:this.handleRemove},{isShow:!Lt&&Jt,label:I18N.Popups.add_to_org,onClick:this.handleTransfer}]}),(0,w.A)(this,"handleTransfer",()=>{const{group:yt,groupAction:Lt}=this.props;if(!yt)return;const{onTransfer:Wt}=Lt;Wt(yt),this.handMouseLeave()}),(0,w.A)(this,"handleConfirm",yt=>{const{group:Lt}=this.props;if(!Lt)return;const{isOrg:Wt,groupAction:{onConfirm:Jt}}=this.props;Jt(yt,Lt,()=>{MB.notice({text:I18N.Popups.folder_save_success})},Wt),this.setState({isEditing:!1})}),(0,w.A)(this,"handleEdit",yt=>{const{group:Lt}=this.props;Lt&&(yt.stopPropagation(),this.setState({isEditing:!0}),this.handMouseLeave())}),(0,w.A)(this,"handleRemove",yt=>{const{group:Lt}=this.props;if(!Lt)return;yt.stopPropagation();const{isOrg:Wt,groupAction:{onRemove:Jt},onBack:In}=this.props;this.handMouseLeave(),Jt(Lt,Wt,()=>{In()})}),(0,w.A)(this,"handleToggle",yt=>{const Lt=yt!==void 0?yt:!this.state.isSearching;this.setState({isSearching:Lt}),Lt&&setTimeout(()=>{this.$ref&&this.$ref.focus()})}),(0,w.A)(this,"handleBack",()=>{const{isSearching:yt}=this.state,{onBack:Lt,onSearch:Wt}=this.props;yt?(Wt(""),this.handleToggle(!1)):Lt()}),(0,w.A)(this,"onShowTipsByTarget",(yt,Lt)=>Lt.offsetWidth({currentUser:$t})),go=(0,r.Ng)($t=>to($t))(io),Io=$t=>{const{loading:cn,currentOrg:yt,currentResources:Lt,currentComboGroup:Wt,currentAssetGroup:Jt,from:In,word:Ln,onSetCurrentResources:hn,onSetCurrentNodeIcon:_o,onStarResources:vo,onPaidResources:Qn,onToggleCurrentResources:He,onToggleCurrentComboGroup:Re,onToggleCurrentAssetGroup:De,onGetComboGroupActions:Be,onGetAssetGroupAction:$e,onGetIsCategory:Ze,renderLoading:nt,onTrack:mt,dispatch:xt}=$t,{category:gt}=Lt||{},{isCombo:wt,isIcon:Zt}=Ze(gt),Ft=!!Wt,Gt=Wt||Jt,Dt=(0,n.useRef)(null),Qt=async()=>{if(!Lt||MB.global.experienceLoginModalHelper("isSave"))return;const{is_star:Dn,cid:To}=Lt;hn({...Lt,is_star:!Dn}),await(0,y.lU)(Dn,To),await vo(Lt,!1)},Ct=()=>{hn({...Lt,is_purchased:!0}),Qn(Lt)},yn=Dn=>{Dt&&Dt.current.handleSearch(Dn,U.lS.SearchDetail)},rn=()=>{Lt&&xt({type:"entry:search-panel:remove:resources",payload:{resources:Lt}}),He()},Rt=()=>{if(Lt)return Zt?(0,_.jsx)(ut.a,{ref:Dt,className:"search-icon-detail-panel",from:In,popupsName:U.lS.Search,keyword:Ln,onSetCurrentNodeIcon:_o,currentResources:Lt,onStarResources:Qt}):(0,_.jsx)(Ve.A,{ref:Dt,className:"search-resources-detail-panel",currentResources:Lt,onStarTemplates:Qt,onPaidTemplates:Ct,onBack:rn,onTrack:mt});if(Wt)return(0,_.jsx)(Pn,{isOrg:Wt.isOrg,comboGroup:Wt.comboGroup});if(Jt)return(0,_.jsx)(En,{isOrg:Jt.isOrg,assetGroup:Jt.assetGroup})};return cn?nt():(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(go,{onBack:Lt?()=>He():()=>Ft?Re():De(),currentOrg:yt,currentResources:Lt,isOrg:Gt==null?void 0:Gt.isOrg,group:(Wt==null?void 0:Wt.comboGroup)||(Jt==null?void 0:Jt.assetGroup),onStarResources:Lt?Qt:null,groupAction:Gt&&(Ft?Be():$e()),onSearch:Lt?yn:null}),Rt()]})};var co=e(68789),On=e(27508),Cn=e(91210),Je=e(30275);class vn extends n.PureComponent{constructor(cn){var yt;super(cn),yt=this,(0,w.A)(this,"handleGetComboGroupActions",()=>(0,On.H)({...this.props,popupsName:U.lS.Search})),(0,w.A)(this,"handleGetAssetGroupAction",()=>(0,Cn.B)({...this.props,popupsName:U.lS.Search})),(0,w.A)(this,"handleGetIsFromIconSelectPopup",()=>{const{from:Lt}=this.props;return Lt===Je.Z.iconSelectPopup}),(0,w.A)(this,"handleGetIsLoading",()=>{const{isLoading:Lt,isIconSelectPopupLoading:Wt}=this.props;return this.handleGetIsFromIconSelectPopup()?Wt:Lt}),(0,w.A)(this,"handleToggleShowHeader",Lt=>{const{dispatch:Wt}=this.props,Jt=this.handleGetIsFromIconSelectPopup();Wt(Jt?{type:"icon-select-popup:update:state",payload:{isShowHeader:!Lt}}:{type:"update:popups:state",payload:{showGlobalHeader:!Lt}})}),(0,w.A)(this,"handleToggleCurrentResources",function(Lt){var Wt;if(Lt===void 0&&(Lt=null),Lt&&((Wt=Lt)==null?void 0:Wt.category)===Ie.RD){yt.props.dispatch({type:"modal:update:state",payload:{templateFileDetialModal:{isOpen:!0,template:Lt}}});return}yt.handleToggleShowHeader(Lt);const{currentResources:Jt}=yt.state;yt.setState({currentResources:Lt}),Jt&&yt.handleResourcesDetailsBackScrollToView(Jt.cid)}),(0,w.A)(this,"handleResourcesDetailsBackScrollToView",Lt=>{const Wt=document.querySelector("#searchPanel .search-result-container"),Jt=document.querySelector('#searchPanel .template-box[data-cid="'+Lt+'"]');(0,y.Cs)(Wt,Jt)}),(0,w.A)(this,"handleStarResources",async function(Lt,Wt){Wt===void 0&&(Wt=!0);const{dispatch:Jt}=yt.props,In=Lt==null?void 0:Lt.category,Ln=yt.handleGetIsFromIconSelectPopup(),hn=Lt.is_star;Jt({type:"entry:search-panel:refresh:star:resources",payload:{category:In,resources:Lt,isFromIconSelectPopup:Ln,updateResources:_o=>({..._o,is_star:!_o.is_star})}}),Jt({type:"entry:resources:update:find:data",payload:{cid:Lt.cid,category:In,updateData:_o=>({..._o,is_star:!_o.is_star})}}),Wt&&await(0,y.lU)(hn,Lt.cid)}),(0,w.A)(this,"handlePaidResources",Lt=>{const{dispatch:Wt}=this.props,Jt=Lt==null?void 0:Lt.category,In=this.handleGetIsFromIconSelectPopup();Wt({type:"entry:search-panel:refresh:star:resources",payload:{category:Jt,resources:Lt,isFromIconSelectPopup:In,updateResources:Ln=>({...Ln,is_purchased:!0,is_star:!0})}}),Wt({type:"entry:resources:update:find:data",payload:{cid:Lt.cid,category:Jt}})}),(0,w.A)(this,"handleToggleCurrentComboGroup",async function(Lt,Wt){Lt===void 0&&(Lt=!1),Wt===void 0&&(Wt=null);const{currentComboGroup:Jt,dispatch:In}=yt.props;if(yt.handleToggleShowHeader(Wt),await In({type:"searchPanel:update:state",payload:{currentComboGroup:Wt?{isOrg:Lt,comboGroup:Wt}:null}}),Jt){var Ln;yt.handleComboGroupBackScrollToView((Ln=Jt.comboGroup)==null?void 0:Ln.cid)}}),(0,w.A)(this,"handleToggleCurrentAssetGroup",async function(Lt,Wt){Lt===void 0&&(Lt=!1),Wt===void 0&&(Wt=null);const{currentAssetGroup:Jt}=yt.state;if(yt.handleToggleShowHeader(Wt),yt.setState({currentAssetGroup:Wt?{isOrg:Lt,assetGroup:Wt}:null}),Jt){var In;yt.handleComboGroupBackScrollToView((In=Jt.assetGroup)==null?void 0:In.cid)}}),(0,w.A)(this,"handleComboGroupBackScrollToView",Lt=>{const Wt=document.querySelector("#searchPanel .search-result-container"),Jt=document.querySelector('#searchPanel .folder-group[data-cid="'+Lt+'"]');(0,y.Cs)(Wt,Jt)}),(0,w.A)(this,"handleTrack",(Lt,Wt,Jt,In)=>{const{rootProject:Ln,keyword:hn,type:_o}=this.props,{policy:vo,category:Qn,title:He,copyright:Re,is_star:De,platform:Be}=Jt,$e=_o!==Qn,Ze=vo!==co.W.Everyone,nt=g.Jj[$e?_o:Qn]+"-"+($e?g.Ii.OtherSearchResults:De?Qn===Ie.t_?g.Ii.User:g.Ii.Star:g.Ii.Find);(0,g.Mi)({popupsName:U.lS.Search,addType:Wt,source:nt,category:Qn,platform:Be,vipTemplate:Number(Ze),templateGroupName:He,copyright:Re,name:In,rootProject:Ln,keyword:hn,esSearchKey:Lt})}),(0,w.A)(this,"renderLoading",()=>(0,_.jsx)(et.S,{className:"margin-top-120",children:(0,_.jsx)("span",{children:I18N.Resources.searching.load})})),(0,w.A)(this,"handleGetIsCategory",Lt=>{if(!Lt)return{isCombo:!1,isIcon:!1,isAsset:!1};const Wt=Lt===Ie.t_,Jt=Lt===Ie.C,In=Lt===Ie.b4;return{isCombo:Wt,isIcon:Jt,isAsset:In}}),(0,w.A)(this,"handleSetCurrentResources",Lt=>this.setState({currentResources:Lt})),this.state={currentResources:null}}componentWillUnmount(){const{dispatch:cn,from:yt}=this.props;cn({type:"entry:search-panel:clear:state",payload:{from:yt}})}render(){const{type:cn,from:yt,currentOrg:Lt,currentComboGroup:Wt,iconKeyword:Jt,keyword:In,rootProject:Ln,onSetCurrentNodeIcon:hn,dispatch:_o}=this.props,{currentResources:vo,currentAssetGroup:Qn}=this.state,He=this.handleGetIsLoading(),Re=this.handleGetIsFromIconSelectPopup(),De=Re?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,_.jsx)(F,{id:"searchPanel",children:vo||Wt||Qn?(0,_.jsx)(Io,{loading:He,from:yt,word:De,currentOrg:Lt,currentResources:vo,currentComboGroup:Wt,currentAssetGroup:Qn,onSetCurrentResources:this.handleSetCurrentResources,...Be}):(0,_.jsx)(yo,{loading:He,type:cn,rootProject:Ln,word:De,isFromIconSelectPopup:Re,...Be})})}}(0,w.A)(vn,"defaultProps",{from:Je.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,yt,Lt,Wt,Jt,In,Ln)=>({keyword:$t,iconKeyword:cn,type:yt,currentOrg:Lt,currentComboGroup:Wt,isLoading:Jt,isIconSelectPopupLoading:In,rootProject:Ln})),ao=(0,r.Ng)($t=>Jn($t))(vn);class no extends n.PureComponent{render(){const{show:cn,from:yt,onSetCurrentNodeIcon:Lt,onClose:Wt}=this.props,Jt=yt===Je.Z.iconSelectPopup;return!cn&&!Jt?null:(0,_.jsx)(ao,{from:yt,onSetCurrentNodeIcon:Lt,onClose:Wt})}}const Oe=(0,c.Mz)([o.ut],$t=>({show:$t})),$n=(0,r.Ng)($t=>Oe($t))(no)},15722:(Fe,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,w){o===void 0&&(o=r);const{type:u,payload:d}=w;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:(Fe,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;}"],w=>w.theme.color_bg_border_02,w=>w.theme.color_text_L3,w=>w.theme.color_text_L2,w=>w.theme.color_text_L2,w=>w.theme.color_text_L2,w=>w.theme.color_text_L2,w=>w.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;}}}"],w=>w.theme.color_bg_white)},16249:(Fe,ee,e)=>{"use strict";e.d(ee,{j:()=>r});var n=e(70248);const r=(w,u)=>{const d=[];return w.forEach(y=>{const{cids:h,siblings:i}=y,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(y=>!(0,n.OO)(y.key))},c=(w,u)=>{let d=-1/0;const y=[];if(u.forEach(f=>{w.includes(f.key)?y.push(f):d=Math.max(f.hotAttr.zIndex,d)}),d===-1/0)return[];const h=[],i=d+1;return y.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=(w,u)=>{let d=1/0;const y=[];if(u.forEach(i=>{w.includes(i.key)?y.unshift(i):d=Math.min(i.hotAttr.zIndex,d)}),d===1/0)return[];const h=[];if(d===0||d-y.length<=0){u.sort((f,p)=>p.hotAttr.zIndex-f.hotAttr.zIndex);const i=u.filter(f=>!w.includes(f.key)).concat(y);i.forEach((f,p)=>{h.push({...f,hotAttr:{...f.hotAttr,zIndex:i.length-p}})})}else{const i=d-1;y.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:Fe=>{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 w=d=>{let{className:y="",linkTitle:h,children:i}=d;return(0,o.jsxs)(c,{className:y+" height-32 title-content",children:[(0,o.jsx)("p",{className:"link-action-title",children:h}),i]})},u=(0,n.memo)(w)},17533:(Fe,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=w=>n.has(w);window.reduxLogList=[];const c=(w,u)=>{w.unshift(...u),w.length=100},o=w=>{let{getState:u}=w;return d=>y=>(r(y.type)||c(window.reduxLogList,[y]),d(y))}},17654:(Fe,ee,e)=>{"use strict";e.d(ee,{I:()=>y,q:()=>d});var n=e(18381),r=e(24094),c=e(67588),o=e(40486),w=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})]})},y=h=>{let{disableType:i,onClose:f}=h;return(0,u.jsxs)(r.Ps,{children:[(0,u.jsx)(w.C,{uiFrom:"treePanelFloat",onClose:f}),(0,u.jsx)(d,{disableType:i})]})}},18356:(Fe,ee,e)=>{"use strict";e.d(ee,{OZ:()=>P,RU:()=>l,_T:()=>f,_i:()=>p,sb:()=>s,yj:()=>a});var n=e(20089),r=e(37860);const c={},o=()=>"\u5185\u7F6E",w=()=>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 {"!LIV":3,"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 {}',y=()=>{const{basic:b,form:g,navigation:S,chart:t,advancedChart:_,multimedia:I,shape:k,flow:j}=(0,r.YN)(),z=[b+"/TtTTv1aKsE0cet",b+"/TtTTvIjJW6lSl8",b+"/TtTTvYwezJIByu",b+"/TtTUK6pc0nOlls",b+"/TtTUKRrrZeva6I",b+"/TtTUKk15K2VtVV",b+"/TtTUL5lIeY7QJC",b+"/TtTULQotepGKet",b+"/TtTULmLslJeJF3",b+"/TtTUM7TNsC6x26",b+"/TtTUMlqh5E4toI",b+"/TtUY5QWzcPDsM6",b+"/TtTUZws6BjIWp8",b+"/wbTOkTYpTtTUeNK4eU3iYQ",b+"/wbTOkWBWTtTUelSImKcV05",b+"/wbTZ7lTOUL2uLnzrbpq7Cv",b+"/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",_+"/U112FanAvTVF9D",_+"/U113fyFbNJRWiK",_+"/U113uufKHEoqFT",_+"/U1148gCZR4ygZq",_+"/U114OrAt1MlRVf",_+"/U4sweo7BYbHNop",_+"/U507Ub07zHbTJ",_+"/U509Kv0xZkvFgv",_+"/U50AIEeIuu8IWE",_+"/U50AqngLUEseDG",_+"/U50AwlCkzU0gYu",_+"/U50B5Zm1LHtlga",_+"/U2NQ5ozyHumOF",I+"/TtTWqGpGF2j58X",I+"/TtTWqmEKaaiarz",I+"/TtTWrJ6YLVnfQT",I+"/TtTWrmruU1KJsD",I+"/TtTWsKDImZMznw",I+"/TtTWsl4NuKb29L",I+"/TtTWtRSAWjtpHu",I+"/TtTWtx6mtGSTqv",k+"/TtTTvIjJW6lSl8",k+"/TtTTvYwezJIByu",k+"/TtTUd5TXzQiUZ8",k+"/TtTUdXcfZUPIbh",k+"/TtTUdvDe5xyvMg",j+"/ULDYqDqAdDqgrj",j+"/ULDYqXn9Q7t5eX",j+"/ULDYquH4iIv29k",j+"/ULDYrE8F27zeaQ",j+"/ULDYrWZgO0LsX1",j+"/ULDYrmAmMyPxFm",j+"/ULDYs5JTSKf4Ww",j+"/ULDYsPv4WDOzVz",j+"/ULDYsbgRo08xib",j+"/ULDYstMIb8crJV",j+"/ULDYt71zJtCSyS",j+"/ULDYtPft4pJ2Lr",j+"/ULDYtnbvaiddhp",j+"/ULDYtyZc9NCDC9",j+"/ULDYu8Io3j4nq",j+"/ULDYuK7KP2OrEq",j+"/ULDYuTuekx7DDu",j+"/ULDYue9RMtuBeb",j+"/ULDYutd6twPNm8",j+"/ULDYv4PTGfGty4",j+"/ULDYvFGNKc8O9t",j+"/ULDYvVI3GXbeO5",j+"/ULDYvfkSfGrbK6",j+"/ULDYvqC2QIyP8L",j+"/ULDYw2n7qdB8kr",j+"/ULDYwEvu5dBJ1q",j+"/ULDYwT06ufHaJH",j+"/ULDYwoyv4NEzbh",j+"/ULDYx1e6MFZTcA",j+"/ULDYxJHTvgSer6",j+"/ULDYxc8hZvULQr"];return ENV.IS_MO&&h(z,[_+"/U2NQ5ozyHumOF"]),z},h=(b,g)=>{g.forEach(S=>{const t=b.indexOf(S);t>-1&&b.splice(t,1)})},i=(b,g)=>{const S=b.filter(t=>t.startsWith(g));h(b,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 {}'}),C=()=>({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 {}'}),v=()=>({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:w()},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:C()}),a=()=>{const b={sceName:o(),sceListing:y(),sceData:v()};return c.BUILTIN_SCENE=b,b},P=b=>{const g=v();let S=null;const t=[...Object.entries(g)];if(b===n.x.WSwimlane)return C();for(let _=0;_{"use strict";e.d(ee,{$Z:()=>f,Bg:()=>d,Ky:()=>w,Ny:()=>h,Pp:()=>n,Qj:()=>c,Sd:()=>u,Uz:()=>i,fh:()=>r,fz:()=>o,tK:()=>y});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,w=p=>p.ui.fixedLayout.ai.showAISemantic,u=p=>p.ui.fixedLayout.ai.historySemanticValue,d=p=>p.ui.fixedLayout.ai.switchIsChat,y=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:(Fe,ee,e)=>{"use strict";e.d(ee,{D:()=>$,W:()=>A});var n=e(38502),r=e(53732),c=e.n(r),o=e(88194),w=e(83199),u=e(17307),d=e(33573),y=e(99402),h=Object.defineProperty,i=Object.defineProperties,f=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,C=(U,O,H)=>O in U?h(U,O,{enumerable:!0,configurable:!0,writable:!0,value:H}):U[O]=H,v=(U,O)=>{for(var H in O||(O={}))s.call(O,H)&&C(U,H,O[H]);if(p)for(var H of p(O))l.call(O,H)&&C(U,H,O[H]);return U},a=(U,O)=>i(U,f(O)),P=(U,O)=>{var H={};for(var Q in U)s.call(U,Q)&&O.indexOf(Q)<0&&(H[Q]=U[Q]);if(U!=null&&p)for(var Q of p(U))O.indexOf(Q)<0&&l.call(U,Q)&&(H[Q]=U[Q]);return H},g=(0,n.forwardRef)((U,O)=>{var H=U,{size:Q,spin:N,style:L}=H,V=P(H,["size","spin","style"]);const M=v(v({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(v({ref:O,style:M},V),{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),_=e(78161),I=e(46442),k=e(4179),j=e(41240),z=e(3862),K=e(72214);const $=(0,n.memo)(U=>{const{className:O,itemKey:H,cid:Q,isBasicOrScreen:N,projectMetaCid:L,platform:V,flatItemType:M,ssZoomMode:D,policy:W,is_purchased:F,name:B,isShowSign:Y,isShowFolderIcon:X,isVisible:G,isShowFloatPreviewPanel:Z,isShowFloatPreviewIcon:J,onMouseDown:te,onClick:he,onCreate:de,onToggleHoverPreviewIcon:Se,onShowTipsByTarget:xe,onOpenFolder:be,onSetElementRef:ie,onGetImgSrc:oe,handMouseEnter:ue,handMouseLeave:ve,canChecked:re,onCheckedResource:fe,checkedSet:we,isCanPreviewInModal:Te,modalName:Ie,onOpenPreviewModal:le,currentResourcesTitle:me,category:Pe}=U,pe=!!(Te&&(Ie!=null&&Ie.length)),ke=Ce=>{Ce.stopPropagation(),fe==null||fe(H)},We=Ce=>{Ce.stopPropagation(),Ce.preventDefault(),le==null||le(H)},{handleClick:Ee,handleDoubleClick:Ae}=(0,k.A)({onClick:Ce=>he(Ce,H),onDoubleClick:Ce=>de(Ce,H)});return G?(0,K.jsxs)(j.nK,{className:c()("template-item mt-exposure-observer",O,V,{"is-basic-or-screen":N,"is-can-check":re,"is-checked":re&&(we==null?void 0:we.has(H))}),ref:ie,onMouseDown:te,onClick:Ee,onDoubleClick:Ae,"data-cid":H,"data-resources-cid":Q,"data-project-cid":L,onMouseEnter:Ce=>ue&&ue(Ce),onMouseLeave:Ce=>ve&&ve(Ce),children:[(0,K.jsxs)("div",{className:c()("img-wrapper",{"is-hover":Z}),children:[Te&&Pe===z.t_?(0,K.jsx)(E,{projectMetaCid:L,snapshotKey:H,isVisible:G,mode:M==="rResCanvas"?o.rY.PNG_CANVAS:o.rY.PNG_PAGE,ssZoomMode:D,name:B}):(0,K.jsx)(d.Ay,{projectMetaCid:L,snapshotKey:H,isVisible:G,mode:M==="rResCanvas"?o.rY.PNG_CANVAS:o.rY.PNG_PAGE,ssZoomMode:D}),(0,K.jsxs)("div",{className:"operation-box",children:[X&&(0,K.jsx)("div",{className:"operation folder",onClick:be,children:(0,K.jsx)(w.A,{content:me||I18N.Resources.folder,direction:"down",children:(0,K.jsx)(g,{size:Te?24:16,className:c()("open-folder",{"size-24":Te})})})}),J&&(0,K.jsx)(_.Y,{className:"operation preview",getImgSrc:oe,onToggleHover:Se})]}),Y&&(0,K.jsx)(A,{resources:{policy:W,is_purchased:F},isCard:!0,isShowModalFloatPreviewIcon:pe}),re&&(0,K.jsx)(y.A,{className:"check "+((we==null?void 0:we.has(H))&&"is-show"),checked:we==null?void 0:we.has(H),onChange:ke,onClick:Ce=>Ce.stopPropagation()}),pe&&(0,K.jsx)(_.Y,{className:"preview-in-modal",getImgSrc:oe,onToggleHover:Se,onClick:We,modalName:Ie,delay:0,children:(0,K.jsx)(S.A,{size:12})}),(0,K.jsx)("div",{className:"cover-fade"})]}),(0,K.jsx)(w.A,{content:B,direction:"down",isShowTipsByTarget:xe,children:(0,K.jsx)("span",{className:"template-name",children:B})})]}):(0,K.jsx)(I.a,{item:{key:H,mtCid:Q},onSetTemplateRef:ie},H)}),A=U=>{let{resources:O,isSmall:H=!1,isCard:Q=!1,isShowModalFloatPreviewIcon:N=!1}=U;const{isPurchased:L,isVipTemplate:V,isMdVipTemplate:M}=(0,t.f9)(O);if(L)return(0,K.jsx)(j.yD,{className:c()("sign purchased",{small:H}),src:"/mb-workspace/images/nav/mt_purchased@"+(Q?"card":H?"21":"28")+".png"});if(V){const D=M?"art_board/community_resources/md_vip":"art_board/community_resources/mkt_vip",W=M?"/mb-proto2/images/nav/md_vip.png":"/mb-proto2/images/nav/mt_vip.png",F=M?"art_board/community_resources/md_vip_s":"art_board/community_resources/mt_vip_s";return(0,K.jsx)(j.ch,{children:ENV.IS_MO?(0,K.jsx)(u.C,{className:c()("sign",{small:H}),name:D,isColorPure:!0}):(0,K.jsxs)(K.Fragment,{children:[Q&&(0,K.jsx)(u.C,{className:c()("sign short",N?"has-preview-icon large":"small"),name:F,isColorPure:!0}),(0,K.jsx)("img",{className:c()("sign long",{"has-preview-icon large":N}),src:W})]})})}return null},E=(0,n.memo)(U=>{const{projectMetaCid:O,snapshotKey:H,isVisible:Q,mode:N,ssZoomMode:L,name:V}=U,[M,D]=(0,n.useState)({}),W=async()=>{const F=await(0,d.pG)({projectMetaCid:O,snapshotKey:H,mode:N,ssZoomMode:L});if(!F)return;const{width:B,height:Y}=F,X=B/Y;B>=155||Y>=155?B>=155?D({width:155,height:155/X}):D({width:155*X,height:155}):B<100&&D({width:100,height:100/X})};return(0,n.useEffect)(()=>{(async()=>{await W()})()},[]),(0,K.jsx)(d.Ay,{projectMetaCid:O,snapshotKey:H,isVisible:Q,mode:N,ssZoomMode:L,style:M})})},18805:(Fe,ee,e)=>{"use strict";e.d(ee,{Ez:()=>c,NT:()=>f,fC:()=>r,l$:()=>h,rk:()=>o,rp:()=>i,zS:()=>w});var n=e(14073);function r(p,s,l,C){const{top:v,left:a}=l.current.getBoundingClientRect(),{top:P,left:b}=C.current.getBoundingClientRect();let g;if(a===b)sMath.max(v,P)?g=vMath.max(a,b)?g=aMath.max(a,b)?g=a{const l=[];return p.map((C,v)=>{const a=C[3],b={hex:n.Q1.toHexAndAlpha(C)[0],alpha:a,point:s[v]};l.push(b)}),l},o=(p,s,l)=>{const C=[...p,l].sort((P,b)=>P-b),v=C.findIndex(P=>P===l);let a=[...s];if(v===0)a=[a[0],...s];else if(v===a.length)a=[...s,a[a.length-1]];else{a.splice(v,0,null);const P=Math.min(Math.max(v,C.length-1),0),b=Math.max(Math.min(v,0),C.length-1),g=a[P],S=a[b],t=C[P],_=C[b],I=(l-t)/(_-t||1);a[v]=[g[0]+(S[0]-g[0])*I,g[1]+(S[1]-g[1])*I,g[2]+(S[2]-g[2])*I,g[3]+(S[3]-g[3])*I]}return{nextColors:a,nextStops:C,index:v}},w=p=>{const s={...p,colors:[...p.colors],stops:[...p.stops]},l=s.stops.map((C,v)=>[C,s.colors[v]]);return l.sort((C,v)=>C[0]-v[0]),s.colors=l.map(C=>C[1]),s.stops=l.map(C=>C[0]),s},u=(p,s)=>Math.round(Number(p)*Math.pow(10,s))/Math.pow(10,s),d=function(p,s,l,C){s===void 0&&(s=2),l===void 0&&(l=-1/0),C===void 0&&(C=1/0);const v=u(Math.min(Math.max(p,l),C),s);return isNaN(v)?0:v},y=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:C,x:v,y:a}=p,P=n.dL.parse({x:v,y:a,complex:C}),b=P.decompose().ro,g=b*180/Math.PI,S=P.apply(n.ZY.xy(0,0)),t=P.apply(n.ZY.xy(1,0)),_=n.ZY.xy(.5,.5),I=Math.abs(Math.sin(b))+Math.abs(Math.cos(b)),k=n.ZY.rotate(_,b,n.ZY.xy((1-I)/2,.5)),j=n.ZY.rotate(_,b,n.ZY.xy((1+I)/2,.5)),z=n.oi.projectOnePoint2Line(S,[k,j]),K=n.ZY.dot(n.ZY.subtract(z,k),n.ZY.subtract(j,k))>0?n.ZY.distance(z,k)/I:-n.ZY.distance(z,k)/I,$=n.oi.projectOnePoint2Line(t,[k,j]),A=n.ZY.dot(n.ZY.subtract($,k),n.ZY.subtract(j,k))>0?n.ZY.distance($,k)/I:-n.ZY.distance($,k)/I,E=l.map((U,O)=>{const H=(A-K)*U+K;return y(s[O])+" "+d(H*100)+"%"});return"linear-gradient("+d(g+90)+"deg, "+E.toString()+")"},i=p=>{const{colors:s,stops:l,complex:C,x:v,y:a}=p,{a:P,b,c:g,d:S}=C,t=new n.hP(P,b,g,S,0,0),{x:_,y:I}=t.apply(n.ZY.xy(1,1)),k=l.map((j,z)=>y(s[z])+" "+d(j*100)+"%");return"radial-gradient("+Math.abs(_)+"% "+Math.abs(I)+"% at "+v*100+"% "+a*100+"%, "+k.toString()+")"},f=p=>p===n.LA.LinearGradient||p===n.LA.RadialGradient||p===n.LA.AngularGradient},18821:(Fe,ee,e)=>{var n=e(64719),r=e(85378),c=r(function(o,w){return o==null?{}:n(o,w)});Fe.exports=c},19013:(Fe,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:(Fe,ee,e)=>{"use strict";e.d(ee,{S:()=>o,q:()=>w});var n=e(67787),r=e(15207),c=e(72214);const o=u=>{const{className:d,children:y}=u;return(0,c.jsx)(w,{className:d,children:(0,c.jsxs)("div",{className:"loading-container",children:[(0,c.jsx)(r.f,{className:"loading"}),y]})})},w=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:(Fe,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:(Fe,ee,e)=>{var n=e(71893),r=e(71602),c=e(48236),o=e(52255),w=e(83084),u=c(function(d,y){var h=w(y);return o(h)&&(h=void 0),o(d)?n(d,r(y,1,o,!0),void 0,h):[]});Fe.exports=u},19376:(Fe,ee,e)=>{"use strict";e.d(ee,{I:()=>s});var n=e(38502),r=e(18381),c=e(53732),o=e.n(c),w=e(54801),u=e(41818),d=e(75810),y=e(67588),h=e(35719),i=e(72214);const f=(l,C,v)=>{const a=l.startsWith("#")?l.slice(1):"";if(!a)return"transparent";const P=(0,d.bJ)(a,v==="light"?"FFFFFF":"212121"),b=v==="light"?"#DEE0E2":"#4F5052";return P<=1.2?b:C<100?"transparent":l},p=(0,n.memo)((0,n.forwardRef)((l,C)=>{let{className:v,color:a,index:P,attr:b,size:g=18,solidRenderType:S="rect",brColor:t,hasBorder:_,handleColorThumbnailMouseDown:I}=l;const k=a.color[3],j=u.Q.toHexAndAlpha(a.color)[0],K=Math.floor(k*100)/100,$=(0,n.useMemo)(()=>{const O=Math.random().toString(36).slice(2);return"colorButton-"+S+"-opacity-"+O},[S]),A={clipPath:"url('#"+$+"')"},E=O=>I&&I(O,{color:a,attr:b,index:P}),U=t==="transparent"&&_?K===0?g:g+2:g;return K===0?(0,i.jsx)(h.tI,{className:o()("thumbnail-wrapper","has-opacity","opacity-0",v,S,{"has-border":_&&t!=="transparent"},{"has-border-transparent":_&&t==="transparent"}),ref:C,size:U,opacity:1-K,brColor:t,onMouseDown:E}):S==="circle"?(0,i.jsxs)(h.tI,{className:o()("thumbnail-wrapper","has-opacity",v,S,{"has-border":_},{"has-border-transparent":_&&t==="transparent"}),ref:C,size:U,opacity:1-K,brColor:t,onMouseDown:E,children:[(0,i.jsx)("svg",{viewBox:"0 0 "+U*2+" "+U*2,children:(0,i.jsx)("circle",{cx:U,cy:U,r:U,fill:j,opacity:K})}),(0,i.jsx)("div",{className:"clip",width:U,height:U,style:A}),(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",v,S,{"has-border":_},{"has-border-transparent":_&&t==="transparent"}),ref:C,size:U,opacity:1-K,brColor:t,onMouseDown:E,children:[(0,i.jsx)("svg",{viewBox:"0 0 "+U+" "+U,children:(0,i.jsx)("rect",{width:U,height:U,fill:j,opacity:K})}),(0,i.jsx)("div",{className:"clip",width:U,height:U,style:A}),(0,i.jsx)("svg",{width:U,height:U,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,C)=>{const v=(0,r.d4)(y.O4),{color:a,hasBorder:P=!0}=l,b=a.type===w.LA.Solid;let g=0,S="";if(b){const t=a.color[3];g=Math.floor(t*100);const _=u.Q.toHexAndAlpha(a.color)[0];S=f(_,g,v)}return b&&g===100||!b?(0,i.jsx)(h.pt,{...l,ref:C,brColor:S}):(0,i.jsx)(p,{...l,ref:C,brColor:S,hasBorder:P})}))},20119:(Fe,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],(w,u,d)=>{if(w)return u.getHotItem(w)})},20166:(Fe,ee,e)=>{"use strict";e.d(ee,{A9:()=>P,Se:()=>f,Yq:()=>a,ln:()=>o,mB:()=>i,s9:()=>s,wH:()=>C,wS:()=>v,yU:()=>b});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}({}),w=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 y=g=>{let{source:S,page_type:t}=g;const _=(0,n.RX)();(0,r.kH)("add_page_V8",{source:S,page_type:t,scene_tag:_}),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;y({source:o.Copy,page_type:S})},f=g=>{let{page:{device:S}}=g;y({source:""+o.ToolBar+w.Drag,page_type:S})},p=g=>{let{page:{device:S}}=g;y({source:""+o.ToolBar+w.Click_1,page_type:S})},s=g=>{let{page:{device:S}}=g;y({source:""+o.ToolBar+w.Click_2,page_type:S})},l=g=>{let{page:{device:S}}=g;y({source:""+o.ShortCut+w.Click_1,page_type:S})},C=g=>{let{page:{device:S}}=g;y({source:""+o.PageList,page_type:S})},v=(g,S)=>{y({source:g,page_type:S})},a=()=>{h({operation_type:u.ChangeShell+"-"+d.Shell})},P=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})},b=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:(Fe,ee,e)=>{"use strict";e.d(ee,{_:()=>y});var n=e(38502),r=e(23089),c=e(89671),o=e(20089),w=e(8580),u=e(87612),d=e(72214);const y=(0,n.memo)(h=>{let{panel:i,dispatch:f,editingBasketRefPage:p,className:s="height-32"}=h;const{key:l,hotAttr:{type:C,basket:v,refRBPageKey:a,bunch:P,refContentKey:b,defaultCanvasKey:g}}=i,S=k=>{if(C===o.x.WBasket){try{sdkStore.updateHotAttrKV(l,"refContentKey",k)}catch(j){(0,u.p)("[fatal]: no owa update under",j,JSON.stringify(i)),f({type:"entry:update:selection:select:items",payload:{type:"selection:clear"}});return}v==="bDanli"&&sdkStore.updateHotAttrKV(a,"defaultCanvasKey",k)}else P===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 I=(0,w.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:b||g,optionList:I,isRightAlign:!0,onChange:S})})]})})},20862:(Fe,ee,e)=>{"use strict";e.d(ee,{l:()=>b});var n=e(67787),r=e(38502),c=Object.defineProperty,o=Object.defineProperties,w=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,h=(S,t,_)=>t in S?c(S,t,{enumerable:!0,configurable:!0,writable:!0,value:_}):S[t]=_,i=(S,t)=>{for(var _ in t||(t={}))d.call(t,_)&&h(S,_,t[_]);if(u)for(var _ of u(t))y.call(t,_)&&h(S,_,t[_]);return S},f=(S,t)=>o(S,w(t)),p=(S,t)=>{var _={};for(var I in S)d.call(S,I)&&t.indexOf(I)<0&&(_[I]=S[I]);if(S!=null&&u)for(var I of u(S))t.indexOf(I)<0&&y.call(S,I)&&(_[I]=S[I]);return _},l=(0,r.forwardRef)((S,t)=>{var _=S,{size:I,spin:k,style:j}=_,z=p(_,["size","spin","style"]);const K=i(i({width:I||"var(--x-icon-size, 1em)",height:I||"var(--x-icon-size, 1em)",animation:k?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),j);return r.createElement("svg",f(i({ref:t,style:K},z),{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)"}))))}),C=e(32330),v=e(18381),a=e(78915),P=e(72214);const b=()=>{const S=(0,v.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,P.jsxs)(g,{onClick:t,children:[(0,P.jsx)(l,{size:32}),(0,P.jsxs)("div",{className:"desc",children:[(0,P.jsx)("span",{children:"\u627E\u4E0D\u5230\u4F60\u60F3\u8981\u7684\u7D20\u6750\uFF1F\u8BD5\u8BD5"}),(0,P.jsx)("span",{className:"ai-text",children:"\u58A8\u5200AI\u751F\u6210"})]}),(0,P.jsx)(C.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:(Fe,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:(Fe,ee,e)=>{"use strict";e.d(ee,{$S:()=>k,Bh:()=>z,Bt:()=>K,Ch:()=>j,GY:()=>A,IP:()=>_,KA:()=>v,RR:()=>U,V3:()=>i,_p:()=>t,bL:()=>I,gR:()=>$,kJ:()=>H,m0:()=>P,ug:()=>a,v0:()=>S,vl:()=>b,xJ:()=>O,xb:()=>h,yG:()=>y});var n=e(32424),r=e(66360),c=e(30728),o=e(93e3),w=e(788);if(e.j!=477)var u=e(25337);var d=e(79770);const y=32,h=32,i=Q=>{let{comment:N,mode:L,viewport:V}=Q,M;const D=V.scale/100;if(L==="design"){const{x:W,y:F,w:B,h:Y,threadType:X,status:G}=N;X==="point"&&(M={width:y,height:h,left:W*D,top:F*D-(G==="creating"?36:h)}),X==="frame"&&(M={width:B*D,height:Y*D,left:W*D,top:F*D})}else if(L==="preview"){const{w:W,h:F,canvasCid:B,canvasVec2:Y,threadType:X,status:G}=N;if(B&&Y){const{x:Z,y:J}=Y;X==="point"&&(M={width:y,height:h,left:Z*D,top:J*D-(G==="creating"?36:h)}),X==="frame"&&(M={width:W*D,height:F*D,left:Z*D,top:J*D})}}return M},f=240,p=340,s=358,l=(Q,N)=>Q+N+p+fQ+N+s{var N;let{comment:L,mode:V,viewport:M,recordList:D}=Q,W={width:p};const F=M.scale/100;let{x:B,y:Y}=L||{};const{w:X,threadType:G,canvasCid:Z,canvasVec2:J}=L||{},{left:te=0,top:he=0}=((N=document.querySelector("#"+V+"-comment-view-container"))==null?void 0:N.getBoundingClientRect())||{};if(V==="preview"&&Z&&J){const{x:Se,y:xe}=J||{};B=Se,Y=xe}const de=Se=>{let{left:xe,top:be,panelLeft:ie,panelTop:oe,getPanelRight:ue,getPanelBottom:ve}=Se;const re={};return l(xe,ie)?re.left=ie:re.right=ue(),C(be,oe)?re.top=oe:re.bottom=ve(),re};return G==="point"&&(W={...W,...de({left:te,top:he,panelLeft:B*F+38+10,panelTop:Y*F-10,getPanelRight:()=>-(B*F)+10,getPanelBottom:()=>-(Y*F)})}),G==="frame"&&(W={...W,...de({left:te,top:he,panelLeft:(B+X)*F+38+10,panelTop:Y*F-10,getPanelRight:()=>-(B+X)*F+10,getPanelBottom:()=>-(Y*F)})}),W},a=Q=>{var N,L;const V=(N=MB.currentOrg)==null?void 0:N.members;let M;return V?M=V.find(D=>D.user_cid===Q.cid)||{}:Q&&Q.cid===((L=MB.user)==null?void 0:L.cid)&&MB.user.name&&(M={name:MB.user.name}),{...Q,...M}};function P(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 b(Q,N){if(!N)return;const{x:L,y:V,w:M,h:D}=rootSdk.sdkStore.getHotItem(N).hotAttr,W={x:L-M/2,y:V-D/2};return c.Z.subtract(Q,W)}function g(Q,N,L){if(!N)return;const V=document.querySelector('div[data-cid="'+N+'"]').getBoundingClientRect(),M=Vec2.xy(V.x,V.y);return Viewport.applyInverse(L,Vec2.subtract(Q,M))}function S(Q,N,L,V,M){const{scale:D}=L,W=document.querySelector('#preview-content-container div[data-cid="'+N+'"]').getBoundingClientRect();return{x:(Q.x-W.x)/D-V,y:(Q.y-W.y)/D-M}}function t(Q,N,L){const{x:V,y:M,w:D,h:W}=rootSdk.sdkStore.getHotItem(N).hotAttr,F={x:V-D/2,y:M-W/2};return c.Z.add(F,o.L.applyInverse(L,Q))}const _=(Q,N)=>{if(!N)return!1;const{user:L}=window.MB,V=[Q,...Q.comments];let M="";try{const{blocks:W}=N;W&&W.length>0&&(M=W.map(F=>F.text.trim()).join(""))}catch(W){M=""}let D=!0;if(V.length>0){const W=Q.userInfo;if(L.cid!==W.cid){const F=a(W),Y=("\u56DE\u590D@"+((F==null?void 0:F.name)||"\u533F\u540D")+": ").trim();M&&M===Y&&(D=!1)}else!M.trim()&&(D=!1)}else!M.trim()&&(D=!1);return D},I=Q=>{const N=(0,r.HL)(Q);let L="";const V=[];if(!Q)return{content:N,replyUserCid:L,userCids:V};const M=(0,w.Ew)(Q),D=Object.keys(M);return D.length?(D.map(W=>M[W].url).forEach(W=>{W.includes("replyUserCid:")&&(L=W.split("replyUserCid:")[1]),W.includes("userCid:")&&V.push(W.split("userCid:")[1])}),{content:N,replyUserCid:L,userCids:V}):{content:N,userCids:V}},k=Q=>({key:Q,sub:[],sup:"C@main",hotAttr:{type:"cCmtPack",refKey:Q}}),j=(Q,N,L)=>{let{x:V,y:M,w:D,h:W,z:F,userInfo:B,message:Y,canvasCid:X,canvasVec2:G,threadType:Z}=L;return{key:N,sub:[],sup:Q,hotAttr:{type:"cCmtThread",threadType:Z,isCompleted:!1,mtime:null,canvasCid:X,canvasVec2:G,message:Y,x:V,y:M,w:D,h:W,z:F,userInfo:B,userId:B.id,ctime:rootSdk.fssCmt.getClockStore().getMtime()}}},z=(Q,N)=>{let{userInfo:L,message:V}=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:V}}},K=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 A(Q,N){let L=Q.offsetLeft,V=Q.offsetTop;const M=Q.offsetWidth,D=Q.offsetHeight;let W=Q.offsetParent;for(;W&&W!==N;)L+=W.offsetLeft,V+=W.offsetTop,W=W.offsetParent;return{top:V,left:L,width:M,height:D}}function E(Q,N){const L=Math.atan2(Q.y-N.y,N.x-Q.x),V=(0,u.av)(L,"radian"),M=c.Z.distance(N,Q),D={x:Q.x+M,y:Q.y},W=c.Z.rotate(Q,-V,D);return[Q,W]}function U(Q,N,L,V){return L&&V?[Q,N]:V?E(N,Q).reverse():E(Q,N)}const O=(Q,N)=>{var L;let V=(0,d.Tg)(Q,N)||"";return(L=sdkStore.getHotItem(V))!=null&&L.hotAttr.asOverlay&&(V=""),V},H=(Q,N)=>{var L;let V=(0,d.TW)(Q,N)||"";return(L=sdkStore.getHotItem(V))!=null&&L.hotAttr.asOverlay&&(V=""),V}},21677:(Fe,ee,e)=>{"use strict";e.d(ee,{Z:()=>c});var n=e(32709),r=e(5209);const c=function(o,w){w===void 0&&(w=""),!(!n.Hy[o]||!r.kH)&&(0,r.kH)("ai_open",{source:w||n.Hy[o]})}},21856:(Fe,ee,e)=>{"use strict";e.d(ee,{Ar:()=>W,CB:()=>z,D7:()=>k,Dl:()=>t,F6:()=>H,OV:()=>$,Q5:()=>_,WO:()=>b,Z_:()=>j,Zb:()=>S,_W:()=>g,dk:()=>I,gs:()=>N,hf:()=>Q,rB:()=>F,rq:()=>O,tu:()=>A});var n=e(70093),r=e.n(n),c=e(33254),o=e.n(c),w=e(80313),u=e(76805),d=e(42459),y=e(32424),h=e(29158),i=e(74222),f=e(57170),p=e(14166),s=e(70248),l=e(76613),C=e(20089),v=e(93e3),a=e(63763),P=e(73658);const b=(B,Y)=>{const X=v.L.applyInverse(B,{x:Y-window.innerWidth/2,y:-B.size.h/2}),G=v.L.applyInverse(B,{x:Y-window.innerWidth/2+B.size.w,y:B.size.h/2});return[X.x,X.y,G.x,G.y]},g=(B,Y,X)=>{const G=b(B,Y);return(0,p.Pn)(G,X)},S=(B,Y,X)=>{const G=b(B,Y);return(0,p.cj)(G,X)},t=(B,Y)=>v.L.applyInverse(B,{x:Y-window.innerWidth/2+B.size.w/2,y:0}),_=(B,Y)=>sdkStore.getHotItem(Y).sub.reduce((X,G)=>{if(sdkStore.getHotItem(G).hotAttr.type!=="rResBunch"){const J=sdkStore.getHotAABB(G);if(J[0]>B)return X.concat([J])}return X},[]).sort((X,G)=>X[0]-G[0]).shift(),I=function(B,Y){return Y===void 0&&(Y=sdkStore),B.reduce((G,Z,J)=>Y.isTrashed(Z)?G:J!==0?r()(G,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(B,Y,X){X===void 0&&(X=sdkStore),B.forEach(G=>{X.changeRndSup(G,Y)})},j=function(B,Y){return Y===void 0&&(Y=sdkStore),Y.getSubHotItemList(B).reduce((X,G)=>{let{hotAttr:{type:Z,zIndex:J}}=G;return C.Q.ALWAYS_ON_TOP_NAMES.includes(Z)?X:Math.max(X,J)},0)},z=function(B,Y,X){X===void 0&&(X=sdkStore);const G=[],Z=[];return B.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):G.push(J)}),{lowZIndexItemsKeyList:G,highZIndexItemsKeyList:Z}},K=function(B,Y,X){X===void 0&&(X=sdkStore);const G=[],Z=[];return B.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):G.push(J)}),{lowZIndexItemsKeyList:G,highZIndexItemsKeyList:Z}},$=function(B,Y,X){X===void 0&&(X=sdkStore);let G=j(Y,X);B.sort((Z,J)=>X.getHotItem(Z).hotAttr.zIndex-X.getHotItem(J).hotAttr.zIndex).forEach(Z=>{C.Q.ALWAYS_ON_TOP_NAMES.includes(X.getHotItem(Z).hotAttr.type)||X.updateHotAttrKV(Z,"zIndex",++G)})},A=function(B,Y,X){X===void 0&&(X=sdkStore);let G=X.getSubHotItemList(Y).filter(Z=>{const J=Z.hotAttr.type;return J!==C.x.WSticky&&J!==C.x.WTear&&!B.includes(Z.key)}).reduce((Z,J)=>J.hotAttr.order>Z?J.hotAttr.order:Z,0);B.sort((Z,J)=>X.getHotItem(Z).hotAttr.order-X.getHotItem(J).hotAttr.order).forEach(Z=>{X.updateHotAttrKV(Z,"order",++G)})},E=/(\s\d+)?$/,U=/(\sCopy(\s\d+)?)?$/,O=function(B,Y,X,G){X===void 0&&(X=sdkStore),G===void 0&&(G=!1),B.forEach(Z=>{const J=X.getHotItem(Z),te=J.hotAttr.name;if(te==="")return;const he=J.hotAttr.type,de=X.getSubHotItemList(Y).filter(Se=>Se.hotAttr.type===he);if(he===C.x.Canvas&&!G){const Se=te.replace(E,""),xe=de.reduce((be,ie)=>{const oe=new RegExp("^"+o()(ie.hotAttr.name).replace(E,"")+"(\\s\\d+)?$").exec(ie.hotAttr.name);if(oe){const ue=Number(oe[1]||0);return ue>be?ue:be}return be},0);X.updateHotAttrKV(Z,"name",Se+" "+(xe+1))}else{const Se=te.replace(U," Copy"),xe=de.reduce((be,ie)=>{const oe=new RegExp("^"+o()(Se)+"(\\s\\d+)?$").exec(ie.hotAttr.name);if(oe){var ue;const ve=Number(oe[1]);return(ue=ve>be)!=null&&ue?ve:be}return be},0);X.updateHotAttrKV(Z,"name",Se+" "+(xe+1))}})},H=function(B,Y,X,G){Y===void 0&&(Y=sdkStore),X===void 0&&(X={x:0,y:0}),G===void 0&&(G=!0);const Z=M(B,Y);for(const te of B){const he=Y.getHotItem(te);switch(he.hotAttr.type){case C.x.WElbow:{const de=Z.has(he.hotAttr.refFromKey)?he.hotAttr.refFromKey:"",Se=Z.has(he.hotAttr.refToKey)?he.hotAttr.refToKey:"",xe={...he,hotAttr:{...he.hotAttr,refFromKey:de,refToKey:Se}};Y.updateHotItem(xe);break}case C.x.WSticky:{const de=Z.has(he.hotAttr.refWCKey)?he.hotAttr.refWCKey:"";let Se=he.hotAttr.sticky.point;if(de===""){var J;if(G)Se=[];else if(Se&&(J=Se)!=null&&J.length)if(he.hotAttr.refWCKey)Se=[];else{const[be,ie]=Se;Se=[be+X.x,ie+X.y]}}const xe={...he,hotAttr:{...he.hotAttr,sticky:{...he.hotAttr.sticky,point:Se},refWCKey:de}};Y.updateHotItem(xe);break}case C.x.WTear:{const de=Z.has(he.hotAttr.refWCKey)?he.hotAttr.refWCKey:"",Se={...he,hotAttr:{...he.hotAttr,refWCKey:de}};Y.updateHotItem(Se);break}default:break}}},Q=(B,Y,X)=>{const G=sdkStore.findAllTypeUnderNoSubPage(Y,C.x.WSticky),Z=sdkStore.findAllTypeUnderNoSubPage(Y,C.x.WTear),J=[],te=he=>{G.filter(xe=>xe.hotAttr.refWCKey===he).forEach(xe=>{const be={key:xe.key,hotAttr:{sticky:{point:[]},refWCKey:""}};J.push(be)}),Z.filter(xe=>xe.hotAttr.refWCKey===he).forEach(xe=>{const be={key:xe.key,hotAttr:{refWCKey:""}};J.push(be)})};for(const he of B)te(he),sdkStore.walkHotItemSubtree(he,de=>{te(de.key)});X({type:"entry:widget:change",payload:{flatChgList:J}})},N=function(B,Y,X){X===void 0&&(X=sdkStore);const G=new Set(Y),Z=X.getSubHotItemList(B).filter(de=>{var Se;return!G.has(de.key)&&(((Se=de.hotAttr)==null?void 0:Se.type)===C.x.WTear||de.hotAttr.type===C.x.WSticky)}).sort((de,Se)=>de.hotAttr.order-Se.hotAttr.order),J=[];let te=Z.length;Z.forEach((de,Se)=>{J.push({...de,hotAttr:{...de.hotAttr,order:Se+1,zIndex:a.Mh+Se+1}})});const he=[];Y.forEach(de=>{const Se=X.getHotItem(de);(0,P.yT)(Se.hotAttr.type)&&(te+=1,he.push({...Se,hotAttr:{...Se.hotAttr,order:te,zIndex:a.Mh+te}}))}),X.updateHotItemBatch([...J,...he])},L=(B,Y)=>{const X=[];return V(Y.getHotItem(B),Y,G=>{if(!G)return[];X.push(G.sub)}),X.flat()},V=(B,Y,X)=>{var G;const Z=[],J=X(B);return J&&Z.push(J),B==null||(G=B.sub)==null||G.forEach(te=>{Z.push(...V(Y.getHotItem(te),Y,X))}),Z},M=(B,Y)=>{const X=B.map(G=>{const Z=L(G,Y);return[G,...Z]}).flat(1/0);return new Set(X)},D=(B,Y,X,G)=>{if(Y){if(B.name==="link"&&(B.link_type===Link.TYPE.screen_link&&!X.has(B.target_cid)||B.link_type===Link.TYPE.state_link&&STATE_LINK_VALID_VALUE.find(Z=>Z===B.targetstate_cid)===void 0&&!G.has(B.targetstate_cid)))return!1}else if(B.name==="link"&&B.link_type===Link.TYPE.screen_link&&B.target_cid===MB.getCurrentScreen().cid)return!1;return!0},W=B=>{let Y=[...B];const X=new Map;for(const G of Y){const Z=sdkStore.getHotItem(G);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,[G]):te.push(G)}for(const[G,Z]of X)sdkStore.getHotItem(G).sub.length===Z.length&&(Y=Y.filter(J=>!Z.includes(J)),Y.push(G));return Y},F=async(B,Y)=>{var X,G,Z;if(!Y)return B;MB.safeLoading&&MB.safeLoading(I18N.dUtils.image_progress_in);const J=JSON.parse(Y);if(J.length===0)return MB.safeLoading&&MB.safeLoading(!1),B;const{contentFlatTree:te}=sdkStore.parseSubtree(B),he="project_image",de="",Se=((X=MB)==null||(X=X.currentOrg)==null?void 0:X.cid)||"",xe=(G=MB)==null?void 0:G.user.id,be=((Z=MB)==null||(Z=Z.getRootProject())==null?void 0:Z.cid)||"",ie=(oe,ue)=>{te.delete(ue);const ve=te.get(i.JC);if(ve){te.set(i.JC,{...ve,sub:(0,d.Uj)(ve.sub,ue)});for(const re of oe){const fe=te.get(re);if(!fe)continue;const we=(0,f.Op)(fe.attr),Te={...we,image:{...we.image,imageRef:""},fill:{fill:"solid",fillIsVisible:!0,solidColor:3857048832}};te.set(re,{...fe,attr:(0,f.II)(Te)})}}};return await(0,u.t_)(6,J.map(oe=>async()=>{try{const{keyList:ue,extImageKey:ve,image:re,name:fe}=oe;if(!re)return ie(ue,ve);const we=(0,y.xc)(),Te=te.get(ve);if(!Te)return;const Ie=await new Promise((ke,We)=>{const Ee=new Image;Ee.onerror=()=>We(new Error(I18N.dUtils.unsupported)),Ee.onload=()=>ke(Ee),Ee.src=re});if(!Ie)return;const le=Ie.width,me=Ie.height;let Pe="/mb-sigma/static/images/broken.png";const pe=await fetch(re).then(ke=>ke.blob());try{Pe=(await(await(0,w.m)("/nodekiq/process-asset-image",{credentials:"same-origin",method:"POST",headers:{"mb-asset-name":fe,"mb-asset-cid":we,"mb-asset-type":he,"mb-asset-group-cid":de,"mb-project-cid":be,"mb-asset-width":le,"mb-asset-height":me,"mb-user-id":xe,"mb-org-cid":Se},body:pe,timeout:6e5})).json()).image,Te.attr.eD=Pe;for(const Ee of ue){const Ae=te.get(Ee);if(!Ae)return;const Ce=(0,f.Op)(Ae.attr),_e={...Ce,image:{...Ce.image,imageRectOriginalWidth:le,imageRectOriginalHeight:me,...Ce.image.imageFillType==="fill"?{imageRectHeight:Ce.image.imageRectWidth*(me/le)}:{imageRectWidth:Ce.image.imageRectHeight*(le/me)},imageRectAspect:le/me}};te.set(Ee,{...Ae,attr:(0,f.II)(_e)})}}catch(ke){console.error(ke)}}catch(ue){console.error(ue)}})),MB.safeLoading&&MB.safeLoading(!1),(0,h.zW)(te)}},22835:(Fe,ee,e)=>{"use strict";e.d(ee,{Fw:()=>u,H1:()=>y,RF:()=>f,cL:()=>h,fl:()=>i,hw:()=>d,u5:()=>c,yA:()=>w});var n=e(21856),r=e(44229);const c=p=>{let{width:s,height:l,scale:C}=p;const v=C/100,a=document.querySelector("#canvas").getBoundingClientRect(),P=document.querySelector(".mb-viewport").getBoundingClientRect(),b={x:(P.left+P.right)/2,y:(P.top+P.bottom)/2},g={x:(b.x-a.left)/v,y:(b.y-a.top)/v};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 C=l.querySelector('[data-cid="'+s+'"]')||l.querySelector('[data-interactive-target-key="'+s+'"]');if(!C)return;const{height:v,top:a}=l.getBoundingClientRect(),P=C.getBoundingClientRect(),b=P.top-a>=v,g=P.top{if(!s||!p)return;const l=p.querySelector('.rn-content-item[data-cid="'+s+'"]');if(!l)return;const{height:C,top:v}=p.getBoundingClientRect(),a=l.getBoundingClientRect(),P=a.top-v>=C,b=a.top{let{width:C,height:v,scale:a}=s,{top:P}=c({width:C,height:v,scale:a});l.length!==0&&(P=sdkStore.getHotKeyListAABB(l.map(t=>t.key))[1]);const b=p.sort((t,_)=>_.hotAttr.x+_.hotAttr.w/2-(t.hotAttr.x+t.hotAttr.w/2)),{hotAttr:{x:g=0,w:S=0}={}}=b[0]||{};return{left:g+S/2+50,top:P}},d=(p,s,l)=>{const C=sdkStore.getHotKeyListAABB(l.map(b=>b.key));let v=C[2],a=(0,n.Q5)(v,p),P;for(;;){if(!a||a[0]>v+s+50){P={x:v+50,y:C[1]};break}v=a[2],a=(0,n.Q5)(v,p)}return{left:P.x,top:P.y}},y=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:(Fe,ee,e)=>{"use strict";e.d(ee,{f5:()=>l,os:()=>C,qM:()=>v,rj:()=>s});var n=e(56193),r=e(67787),c=e(38502),o=e(70768),w=e(86200),u=e(77814);if(e.j==907)var d=e(19249);if(e.j==907)var y=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,P,b)=>{(0,o.createRoot)(f).render((0,i.jsx)(p,{locale:(0,y.w)(),errorType:a.status||401,customTitle:P,customDes:b}))},l=async a=>{var P;let b,g,S,t,_;try{({user:_}=await(0,d.DE)("/api/web/v3/initial"))}catch(k){console.warn("[crashedPageWithUser]",k);const j=ENV.IS_MO?u.A:w.A,z=document.getElementById("IBOT_MODAL_ROOT"),K=(0,o.createRoot)(z);K.render((0,i.jsx)(j,{isOpen:!1,source:"proto-org-preview",onConfirm:()=>location.reload()},Math.random())),b=()=>{K.render((0,i.jsx)(j,{isOpen:!0,type:"signin",source:"proto-org-preview",onConfirm:()=>location.reload()},Math.random()))},g=I18N.Common.signin,t=()=>{K.render((0,i.jsx)(j,{isOpen:!0,type:"signup",source:"proto-org-preview",onConfirm:()=>location.reload()},Math.random()))},S=I18N.Common.signup,_={}}(0,o.createRoot)(f).render((0,i.jsx)(i.Fragment,{children:(0,i.jsx)(p,{locale:(0,y.w)(),errorType:a.status||401,identity:1,account:(P=_)==null?void 0:P.email,primaryBtnText:g,primaryBtnClick:b,secondaryBtnText:S,secondaryBtnClick:t})}))},C=(a,P)=>{if((0,h.Gq)()){(0,h.Z0)({event:h.Q8.goBack});return}let b="";a==="zh-CN"?b="/":a==="jp"?b="https://mockitt.wondershare.jp":b="https://mockitt.wondershare.com",location.replace(b)},v=()=>{const a=new URL(location.href);a.searchParams.set("screen",""),a.searchParams.set("canvasId",""),location.href=""+a}},23108:(Fe,ee,e)=>{"use strict";e.d(ee,{P:()=>h});var n=e(38502),r=e(83199),c=e(17307),o=e(56202),w=e(67787);const u=w.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 y=i=>{const{iconClassName:f,name:p,onClick:s,content:l,direction:C="down",hotKeyText:v,iconProps:a}=i,P=(0,n.useRef)(null),b=I=>{s&&s(I)},S={down:"bottom",up:"top",left:"left",right:"right"}[C]||C,t=v&&v.length>0&&((0,o.cX)()?v.filter(I=>I!=="+"):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((I,k)=>(0,d.jsx)("kbd",{children:I},k))})]})});return(0,d.jsx)(r.A,{content:_(),direction:S,children:(0,d.jsx)("a",{className:f,ref:P,onClick:b,children:(0,d.jsx)(c.C,{...a,name:p})})})},h=i=>(0,d.jsx)(r.A,{component:(0,d.jsx)(y,{...i})})},23314:(Fe,ee,e)=>{"use strict";e.d(ee,{F2:()=>a,GN:()=>b,Jv:()=>P,b2:()=>p,f7:()=>f});var n=e(14166),r=e(20089),c=e(13537),o=e(63966);if(e.j!=477)var w=e(5379);var u=e(33848),d=e(21191),y=e(79770),h=e(50060),i=e(59025);const f=function(g,S,t){t===void 0&&(t=sdkStore);const{hotAttr:{refFromKey:_,refToKey:I}}=t.getHotItem(g),{isRefFromExist:k,isRefToExist:j}=(0,w.v)(g,_,I);k&&j&&S.push(C(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:I,y:k,w:j,h:z,r:K},notTriggerAttachedUpdate:$}=t;if($)return[];if(!(I!==void 0||k!==void 0||j!==void 0||z!==void 0||K!==void 0))return[];const A=new Set(g.map(N=>N.key)),E=new Set,U=new Set,O=[];for(const{key:N}of g){const L=sdkStore.getHotItem(N);if(!L)continue;const{hotAttr:{type:V}}=L;V===r.x.WElbow?U.add(N):V===r.x.WWrap&&sdkStore.walkHotItemSubtree2(N,M=>{M.hotAttr.type===r.x.WElbow&&E.add(M.key)})}(0,h.vC)(Array.from(A),N=>{var L;const V=((L=sdkStore.getHotItem(N))==null?void 0:L.hotAttr.type)===r.x.WElbow;return V&&E.add(N),V});for(const N of E)v(N,O);for(const N of U)s(N,A,O);const H=new Map;for(const N of O){const L=N.key,V=H.get(L);V?V.push(N):H.set(L,[N])}const Q=[];for(const N of H.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:_,refToKey:I}}=sdkStore.getHotItem(g);if(S.has(_)||S.has(I))return;const{isRefFromExist:k,isRefToExist:j}=(0,w.v)(g,_,I);k?t.push(l(g,"start")):j&&t.push(l(g,"end"))},l=(g,S)=>{const{hotAttr:t,sup:_}=sdkStore.getHotItem(g);if(S==="start"){const I=sdkStore.getRelocateLocalBound(t.refFromKey,_);return P({elbowKey:g,bound:I,direction:t.elbow.fromDirection,refKey:t.refFromKey,moveAnchor:"start"})}else{const I=sdkStore.getRelocateLocalBound(t.refToKey,_);return P({elbowKey:g,bound:I,direction:t.elbow.toDirection,refKey:t.refToKey,moveAnchor:"end"})}},C=function(g,S){S===void 0&&(S=sdkStore);const{hotAttr:{refFromKey:t,refToKey:_,elbow:{fromDirection:I,toDirection:k,elbowType:j,middleIsAdjusted:z,dPathList:K}},sup:$}=S.getHotItem(g),{sup:A}=S.getHotItem(t),{sup:E}=S.getHotItem(_);let U,O,H=$;if(A===E)H=A,U=S.getLocalBound(t),O=S.getLocalBound(_);else{const L=MB.getCurrentScreen().cid;if(A===L||E===L)H=L,U=S.getHotBound(t),O=S.getHotBound(_);else{const V=S.locUpHotCanvasKey(t),M=S.locUpHotCanvasKey(_);if(V!==void 0&&V===M){const D=(0,i.t$)(t,r.x.WWrap).map(Y=>Y.key),W=(0,i.t$)(_,r.x.WWrap).map(Y=>Y.key);H=(0,i.t$)(g,r.x.WWrap).map(Y=>Y.key).find(Y=>W.includes(Y)&&D.includes(Y))||V,U=S.getRelocateLocalBound(t,H),O=S.getRelocateLocalBound(_,H)}else H=L,U=S.getHotBound(t),O=S.getHotBound(_)}}const Q=P({elbowKey:g,bound:U,direction:I,refKey:t,moveAnchor:"start"},S),N=(0,d.Us)();if(j==="curve"){S.updateHotItem(Q);const L=P({elbowKey:g,bound:O,direction:k,refKey:_,moveAnchor:"end",elbow:Q},S);if(H!==$)if(z){const V={x:K[1].x-K[2].x,y:K[1].y-K[2].y},M=L.hotAttr.elbow.dPathList[2],D={x:V.x+M.x,y:V.y+M.y},W=JSON.parse(JSON.stringify(L.hotAttr.elbow.dPathList));W[1].x=D.x,W[1].y=D.y;const{x:F,y:B,r:Y}=S.getRelocateLocalXYR(g,H);return{...L,sup:H,hotAttr:{...L.hotAttr,x:F,y:B,r:Y,zIndex:N(g,H),elbow:{...L.hotAttr.elbow,dPathList:W}}}}else{const{x:V,y:M,r:D}=S.getRelocateLocalXYR(g,H);return{...L,sup:H,hotAttr:{...L.hotAttr,x:V,y:M,r:D,zIndex:N(g,H)}}}else return L.sup=H,L}else{const L=P({elbowKey:g,bound:O,direction:k,refKey:_,moveAnchor:"end",elbow:Q},S);return L.sup=H,H!==$&&(L.hotAttr.zIndex=N(g,H)),L}},v=function(g,S,t){t===void 0&&(t=sdkStore);const{hotAttr:{refFromKey:_,refToKey:I,elbow:{fromDirection:k,toDirection:j,dPathList:z}},sup:K}=t.getHotItem(g),{isRefFromExist:$,isRefToExist:A}=(0,w.v)(g,_,I),E=MB.getCurrentScreen().cid,U=t.getHotAABB(g),O={x:.5*(U[0]+U[2]),y:.5*(U[1]+U[3])},H={x:U[0],y:U[1]},Q=(0,u.Ui)(H,[z[0]])[0],N=(0,u.Ui)(H,[z[z.length-1]])[0],L=(0,y.Tg)(Q,E),V=(0,y.Tg)(N,E),M=(0,d.Us)(t);if($&&A){const W=C(g,t),F=(0,d.G9)(E,[],t),B={x:W.hotAttr.x,y:W.hotAttr.y},Y=(0,d.fW)(g,E,F,t);let X=W;if(W.sup!==Y){var D;const G=t.getHotAABB(_),Z=t.getHotAABB(I),J=((D=t.getHotItem(I))==null?void 0:D.hotAttr.type)===r.x.Canvas;(0,n.Pn)(J?Z:G,J?G:Z)&&(X={...W,sup:Y,hotAttr:{...W.hotAttr,...t.toAttrXY(B,g,Y),zIndex:M(g,Y)}})}S.push(X)}else if($){const W=t.getRelocateLocalBound(_,K);let F=P({elbowKey:g,bound:W,direction:k,refKey:_,moveAnchor:"start"},t);const B=t.locUpHotCanvasKey(_)||E,Y=t.locUpHotCanvasKey(K)||E,X=(0,i.t$)(_,r.x.WWrap).map(he=>he.key),Z=(0,i.t$)(g,r.x.WWrap).map(he=>he.key).find(he=>X.includes(he)),te=Z&&Y===B?Z:B===V?B:E;K!==te&&(F={...F,sup:te,hotAttr:{...F.hotAttr,...t.toAttrXY(O,g,te),zIndex:M(g,te)}}),S.push(F)}else if(A){const W=t.getRelocateLocalBound(I,K);let F=P({elbowKey:g,bound:W,direction:j,refKey:I,moveAnchor:"end"},t);const B=t.locUpHotCanvasKey(I)||E,Y=t.locUpHotCanvasKey(K)||E,X=(0,i.t$)(I,r.x.WWrap).map(he=>he.key),Z=(0,i.t$)(g,r.x.WWrap).map(he=>he.key).find(he=>X.includes(he)),te=Z&&Y===B?Z:B===L?B:E;K!==te&&(F={...F,sup:te,hotAttr:{...F.hotAttr,...t.toAttrXY(O,g,te),zIndex:M(g,te)}}),S.push(F)}},a=(g,S)=>{const t=[],{sup:_,hotAttr:{refFromKey:I,refToKey:k,elbow:{fromDirection:j,toDirection:z}}}=sdkStore.getHotItem(g);if(_!==S){const{isRefFromExist:K,isRefToExist:$}=(0,w.v)(g,I,k);if(K&&$)t.push(C(g)),sdkStore.updateHotItemBatch(t);else if(K){const{sup:A}=sdkStore.getHotItem(I);if(A!==_){if(A===S){const E=sdkStore.getLocalBound(I);sdkStore.changeRndSup(g,S);const U=P({elbowKey:g,bound:E,direction:j,refKey:I,moveAnchor:"start"});sdkStore.updateHotItem(U)}}}else if($){const{sup:A}=sdkStore.getHotItem(k);if(A!==_){if(A===S){const E=sdkStore.getLocalBound(k);sdkStore.changeRndSup(g,S);const U=P({elbowKey:g,bound:E,direction:z,refKey:k,moveAnchor:"end"});sdkStore.updateHotItem(U)}}}else{const A=sdkStore.getHotAABB(g),E=sdkStore.getHotAABB(S);(0,n.Pn)(E,A)&&sdkStore.changeRndSup(g,S)}}},P=function(g,S){let{elbowKey:t,bound:_,moveAnchor:I,direction:k,refKey:j,elbow:z}=g;S===void 0&&(S=sdkStore);const $=S.getHotItem(t).hotAttr.elbow.elbowType==="curve"?S.getHotBound(j):_,A=(0,c.Nj)($,k);if(A===void 0)return z;const E={elbowKey:t,moveAnchor:I,worldPos:A,refKey:j,direction:k,isUpdateByRef:!0};return(0,o.b)(E,z)},b=(g,S)=>{const{sup:t,hotAttr:{elbow:_}}=sdkStore.getHotItem(g),{hotAttr:{type:I}}=sdkStore.getHotItem(t),{x:k,y:j}=S;let z={x:k,y:j},K=!1,$;return[r.x.Canvas,r.x.WWrap,r.x.WBasket].includes(I)&&_.elbowType!=="curve"&&(z=sdkStore.toAttrXY(S,"",t),K=!0,$=t),{realPos:z,updated:K,offsetSup:$}}},23422:(Fe,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 w=(ne,ae)=>{if(ne===ae)return!0;if(ne.length!==ae.length)return!1;for(let ye=0,Le=ne.length;ye{let ae=null,ye=null;return function(){for(var Le=arguments.length,Me=new Array(Le),ze=0;ze',O='',H='',Q='',N=Object.freeze({__proto__:null,INPUT_ARROW:U,DROPDOWN_ARROW:O,GUIDE_ARROW:H,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 V(ne,ae){return W(ne)||D(ne,ae)||Y(ne,ae)||M()}function M(){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=[],Le=!0,Me=!1,ze=void 0;try{for(var _t=ne[Symbol.iterator](),It;!(Le=(It=_t.next()).done)&&(ye.push(It.value),!(ae&&ye.length===ae));Le=!0);}catch(Et){Me=!0,ze=Et}finally{try{!Le&&_t.return!=null&&_t.return()}finally{if(Me)throw ze}}return ye}}function W(ne){if(Array.isArray(ne))return ne}function F(ne){return G(ne)||X(ne)||Y(ne)||B()}function B(){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 G(ne){if(Array.isArray(ne))return Z(ne)}function Z(ne,ae){(ae==null||ae>ne.length)&&(ae=ne.length);for(var ye=0,Le=new Array(ae);ye1&&arguments[1]!==void 0?arguments[1]:document;return ae.querySelector(ne)}function ue(ne){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;return Array.from(ae.querySelectorAll(ne))}function ve(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,Le=ne.scrollHeight,Me=ne.getBoundingClientRect(),ze=Me.height,_t=ae.deltaY*-1,It=_t>0,Et=function(){return ae.stopPropagation(),ae.preventDefault(),!1};if(!It&&-_t>Le-ze-ye)return ne.scrollTop=Le,Et();if(It&&_t>ye)return ne.scrollTop=0,Et()})}function fe(ne){var ae=document.documentElement,ye=document.body,Le=oe(".ContentRoot"),Me=window,ze=Me.innerWidth,_t=Me.scrollX,It=Me.scrollY,Et=isBoolean(ne)?ne:ye.classList.toggle("is-content-fixed");return isBoolean(ne)&&ye.classList[ne?"add":"remove"]("is-content-fixed"),Le&&(Et?(Le.style.left="-".concat(_t,"px"),Le.style.top="-".concat(It,"px"),window.scrollTo(Math.max((ae.scrollWidth-ze)/2,0),0)):window.scrollTo(Math.abs(parseInt(Le.style.left,10)),Math.abs(parseInt(Le.style.top,10)))),Et}function we(ne,ae){return isString(ne)||isNumber(ne)||isValidElement(ne)?ne:ne[ae||"label"]?ne[ae||"label"]:void 0}function Te(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 le(ne,ae){return!!ae&&Te(ne)===String(ae)}function me(ne,ae){return Ie(ae).has(Te(ne))}function Pe(ne){return ne!==""&&isNumber(Number(ne))?Number(ne):""}function pe(){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 pe=function(){return ne},ne}function ke(){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 ke=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 Ee=c.Ay.span.withConfig({displayName:"tooltip__StyledToolTipSpan",componentId:"sc-k1px3u-0"})(ke()),Ae=c.Ay.div.withConfig({displayName:"tooltip__StyledToolTip",componentId:"sc-k1px3u-1"})(pe());function Ce(ne){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ce=function(ye){return typeof ye}:Ce=function(ye){return ye&&typeof Symbol=="function"&&ye.constructor===Symbol&&ye!==Symbol.prototype?"symbol":typeof ye},Ce(ne)}function _e(){return _e=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 et(ne){return et=Object.setPrototypeOf?Object.getPrototypeOf:function(ye){return ye.__proto__||Object.getPrototypeOf(ye)},et(ne)}function st(ne,ae,ye){return ae in ne?Object.defineProperty(ne,ae,{value:ye,enumerable:!0,configurable:!0,writable:!0}):ne[ae]=ye,ne}var at=["hover","click"],ct="IBOT_TOOLTIP_ROOT",rt=document.getElementById(ct)||Object.assign(document.createElement("div"),{id:ct}),At=document.body;At.contains(rt)||At.appendChild(rt);function ot(ne){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"hover";return I()(ne)||P()(ne)||(0,r.isValidElement)(ne)?ne:at.includes(ae)&&j()(ne)?ne[ae]||ne.hover:null}var Tt=function(ne){pt(ye,ne);var ae=Qe(ye);function ye(){var Le;Ge(this,ye);for(var Me=arguments.length,ze=new Array(Me),_t=0;_t0&&!It&&Vt&&(this.timeout=setTimeout(function(){return _t.setState({isOpen:!1})},Et))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),clearTimeout(this.hoverTimeout)}},{key:"render",value:function(){var Me=this.props,ze=Me.theme,_t=Me.position,It=Me.inflexible,Et=Me.arrowed,Vt=Me.className,on=Me.tipClassName,tn=Me.content,ln=Me.children,bn=this.state,Zn=bn.isOpen,so=bn.isClicked,eo=be(["Tooltip",Vt,Zn?"is-open":"",so?"is-clicked":""]),Co=so?"click":"hover";return r.createElement(Ee,_e({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(ft,{$text:this.ref.current,isOpen:Zn,className:on,eventName:Co,theme:ze,position:_t,inflexible:It,arrowed:Et},ot(tn,Co))))}}]),ye}(r.PureComponent);st(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(at.reduce(function(ne,ae){return Object.assign(ne,st({},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}),st(Tt,"defaultProps",{theme:"plain",position:"right",arrowed:!0,inflexible:!1,delay:200,className:"",tipClassName:"",setRef:function(){return null},onClick:function(){return null}});var ft=function(ne){pt(ye,ne);var ae=Qe(ye);function ye(){var Le;Ge(this,ye);for(var Me=arguments.length,ze=new Array(Me),_t=0;_tko?Le.setState({position:"top"}):Vt==="left"&&Lo-QoCo&&Le.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")}}),st(tt(Le),"onTransitionEnd",function(){var It=Le.props.isOpen;It?Le.$tip.classList.add("is-open"):Le.setState({isOpen:!1})}),Le}return Ue(ye,[{key:"componentDidUpdate",value:function(Me){var ze=Me.isOpen,_t=this.props.isOpen;!ze&&_t?this.position():ze&&!_t&&this.$tip&&this.$tip.classList.remove("is-open")}},{key:"render",value:function(){return(0,o.createPortal)(this.tip,rt)}},{key:"$tipBase",get:function(){return this.ref.current}},{key:"$tip",get:function(){return this.$tipBase&&oe(".Tip",this.$tipBase)}},{key:"tip",get:function(){var Me=this.props,ze=Me.className,_t=Me.theme,It=Me.inflexible,Et=Me.arrowed,Vt=Me.children,on=this.state,tn=on.isOpen,ln=on.position,bn=be([_t==="core"?"Tip CoreTip":"Tip",ze,"on-".concat(ln),It&&"inflexible",Et&&"arrowed"]);return tn&&r.createElement(Ae,{className:"TipBase",ref:this.ref},r.createElement("div",{className:bn,onTransitionEnd:this.onTransitionEnd},Et&&r.createElement("div",{className:"arrow",dangerouslySetInnerHTML:{__html:N.DROPDOWN_ARROW}}),r.createElement("div",{className:"content"},Vt)))}}],[{key:"getDerivedStateFromProps",value:function(Me,ze){var _t=ze.prevProps;return g()(_t,Me)?null:{prevProps:Me,isOpen:Me.isOpen,position:Me.position}}}]),ye}(r.PureComponent);st(ft,"propTypes",{isOpen:s().bool,className:s().string,eventName:s().oneOf(at),$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 Nt=Tt;function Bt(){var ne=zt([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 Bt=function(){return ne},ne}function zt(ne,ae){return ae||(ae=ne.slice(0)),Object.freeze(Object.defineProperties(ne,{raw:{value:Object.freeze(ae)}}))}var Xt=c.Ay.span.withConfig({displayName:"ellipsis__StyledEllipsis",componentId:"sc-15mnwib-0"})(Bt());function bt(ne){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bt=function(ye){return typeof ye}:bt=function(ye){return ye&&typeof Symbol=="function"&&ye.constructor===Symbol&&ye!==Symbol.prototype?"symbol":typeof ye},bt(ne)}function jn(){return jn=Object.assign||function(ne){for(var ae=1;ae=0)&&Object.prototype.propertyIsEnumerable.call(ne,Le)&&(ye[Le]=ne[Le])}return ye}function yo(ne,ae){if(ne==null)return{};var ye={},Le=Object.keys(ne),Me,ze;for(ze=0;ze=0)&&(ye[Me]=ne[Me]);return ye}function Ve(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 Fn(ne,ae,ye){return ae in ne?Object.defineProperty(ne,ae,{value:ye,enumerable:!0,configurable:!0,writable:!0}):ne[ae]=ye,ne}var Nn=function(ne){St(ye,ne);var ae=En(ye);function ye(){var Le;Ve(this,ye);for(var Me=arguments.length,ze=new Array(Me),_t=0;_t0&&arguments[0]!==void 0?arguments[0]:Le.$ellipsis;return It.offsetWidthObject.assign(bn.styleFor$menuBase,_s),so=_s=>Object.assign(bn.styleFor$menuContainer,_s),{top:eo}=ae.getBoundingClientRect(),Co=Et.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":Zn({top:ko+Fo+Ho+It+"px",left:Ro-(_t/2-Bo/2)+"px"});break;case"rightBottom":Zn({top:ko+Fo+Ho+It+"px",left:Ro+"px"});break;case"leftBottom":Zn({top:ko+Fo+Ho+It+"px",left:Ro-(_t-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+It,Cs=eo+Qo+Iteo,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+It+"px",maxHeight:Cs+"px"}),Zn({top:ms+"px",left:(_t+Ro>_s?_s-_t-16:Ro)+"px"})}}return Object.assign(ye.style,bn.styleFor$menuBase),Object.assign(Le.style,bn.styleFor$menuContainer),ts&&(Le.scrollTop=Xo+ts+It+Ho),bn}function go(ne){return I()(ne)||E()(ne)||(0,r.isValidElement)(ne)?ne:ne.label||ne.value?ne.label||ne.value:void 0}function Io(ne){return I()(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 Je=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),Oe=e(72214);const $n="IBOT_SELECT_MENU_ROOT",$t=(0,Oe.jsx)("svg",{width:"8",height:"6",xmlns:"http://www.w3.org/2000/svg",children:(0,Oe.jsxs)("g",{transform:"translate(-2 -3)",fill:"none",fillRule:"evenodd",children:[(0,Oe.jsx)("rect",{width:"12",height:"12",rx:"1.867"}),(0,Oe.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,Oe.jsx)("svg",{width:"7",height:"4",xmlns:"http://www.w3.org/2000/svg",children:(0,Oe.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"})}),yt=(0,Oe.jsx)("svg",{width:"16",height:"14",xmlns:"http://www.w3.org/2000/svg",children:(0,Oe.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,Oe.jsx)("rect",{fill:"#FFFA00",width:"16",height:"14",rx:"2.667"}),(0,Oe.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"})]})}),Lt=document.getElementById($n)||Object.assign(document.createElement("div"),{id:$n}),Wt=document.body;Wt.contains(Lt)||Wt.appendChild(Lt);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:Le}=this.props;this.setState({value:ye},()=>{Le||this.close(),this.props.onChange(ye,this.props.attr)})}),(0,n.A)(this,"onSelect",ye=>{const{value:Le}=this.props,Me=ye.currentTarget;if(Me.tagName==="INPUT")return this.onChange(Me.value);{const{canSelect:ze}=this,_t=Me.dataset.value;return this.onChange(ze?typeof Le=="number"?+_t:_t:Le)}}),this.state={isOpen:!1,prevProps:this.props,value:this.props.value},this.Select=(0,r.createRef)()}static getDerivedStateFromProps(ae,ye){let{prevProps:Le,value:Me,isOpen:ze}=ye;return ae.onClose(ze),g()(Le,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:Le,showQuestionMark:Me}=this.props,{value:ze}=this.state;if(Me)return ze;const It=(ae.find(Et=>P()(Et)&&Et.slice(0).some(Vt=>co(Vt,ze)))||ae).find(Et=>!P()(Et)&&Object.keys(Et).length>0&&Et.value===ze);return typeof It=="number"||It?go(It):Le?ze:ye}render(){var ae;const{optionList:ye,children:Le,menuClassName:Me,size:ze,unstyled:_t,className:It,textAlign:Et,onMouseEnter:Vt,onMouseLeave:on,isShowButton:tn,placement:ln,selectWidth:bn,width:Zn,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,_t&&"unstyled",It,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,Oe.jsxs)(Je,{className:vs,role:"listbox",isShowButton:tn,ref:Xo,width:bn==="auto"?void 0:bn||Zn,children:[tn&&(0,Oe.jsxs)("div",{className:ms,style:Et==="right"?{justifyContent:"flex-end"}:{},children:[Le,(0,Oe.jsxs)("button",{disabled:rs,onClick:this.toggle,children:[Fo,Ro&&(0,Oe.jsx)("span",{className:"question-icon",children:yt}),this.displayText,Ho]}),ye.length!==1&&(0,Oe.jsx)("span",{className:f()("caret",{"is-disabled":rs}),children:Lo})]}),Go&&(0,Oe.jsx)(In,{menuClassName:Me,isOpen:Go,...this.props,value:Qo,$select:Xo.current,isShowButton:tn,placement:ln,width:Zn,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",ve(Lt,"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:Le,placement:Me,width:ze,optionList:_t,value:It}=this.props,{menuBaseRef:{current:Et},menuContainerRef:{current:Vt}}=this,on=ae?ae.deltaY:0;if(ae){const ln=v()(ae,"target");if(ln&&t()(ln)&&ln.matches(".WorkspaceSelectMenu"))return}let tn=_t.findIndex(ln=>ln.value===It);tn=tn>-1?tn:0,to({$menuBase:Et,$opener:ye,$menuContainer:Vt,isShowButton:Le,placement:Me,width:ze,activeIndex:tn,deltaY:on}),this.setState({isTransform:!0})}),(0,n.A)(this,"onChange",ae=>{const{onChange:ye}=this.props,Le=ae.currentTarget,Me=Le.closest(".WorkspaceSelectMenu");if(!Le||!Me)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:Le,isShowButton:Me}=this.props,ze=!Lt.contains(ye),_t=ye.closest("label");let It;if(Me)It=_t&&_t.contains(Le);else{const Et=ye.closest("div");It=Et&&Le.parentElement.parentNode===Et}ze&&!It&&(ae.stopPropagation(),this.onClose())})}componentDidMount(){const{menuBaseRef:{current:ae}}=this,{$select:ye,isShowButton:Le,withInput:Me}=this.props;re(oe(".WorkspaceSelectMenu",ae)),this.position(),Le||ye.parentElement.classList.add("is-active"),Me&&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:Le,menuClassName:Me,optionList:ze,emptyMsg:_t,value:It,canSelect:Et,onMouseEnter:Vt,onMouseLeave:on,width:tn,withInput:ln,zIndex:bn,range:Zn,noCheck:so,missingFont:eo}=this.props,{isTransform:Co}=this.state,ko=ze.length===0,Ro=be(["WorkspaceSelectMenu",Me,Co&&"is-open",ye&&"is-disabled",ko&&"is-empty",Et?"can-select":"cant-select"]);return(0,Oe.jsxs)(ao,{ref:this.menuBaseRef,width:tn,zIndex:bn,children:[(0,Oe.jsx)(no.lZ,{dismiss:this.onClose}),(0,Oe.jsx)("ul",{className:Ro,ref:this.menuContainerRef,style:{overflow:"auto"},children:ko?(0,Oe.jsx)("li",{className:"SelectOption empty-msg",role:"empty-msg",children:_t}):(0,Oe.jsxs)(Oe.Fragment,{children:[ln&&(0,Oe.jsx)(_o,{value:It,range:Zn,onChange:this.onChange}),eo!==""&&(0,Oe.jsxs)("div",{className:"missingFont",children:[(0,Oe.jsx)("span",{children:$t}),eo]}),ze.map((Bo,Fo)=>P()(Bo)?(0,Oe.jsx)(Ln,{menuTheme:Le,optionList:Bo,value:It,onChange:this.onChange,onClose:this.onClose,onMouseEnter:Vt,onMouseLeave:on},Fo):(0,Oe.jsx)(hn,{menuTheme:Le,isActive:It===Bo.value,option:Bo,isDisabled:Bo.isDisabled,onChange:this.onChange,onClose:this.onClose,onMouseEnter:Vt,onMouseLeave:on,noCheck:so},Fo))]})}),ae&&(0,Oe.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 Ln(ne){let{value:ae,optionList:[ye,...Le],menuTheme:Me,onChange:ze,onClose:_t,onMouseEnter:It,onMouseLeave:Et}=ne;return(0,Oe.jsxs)("li",{className:"SelectGroup",children:[ye==="HIDDELINE"?null:ye==="DIVIDER"?(0,Oe.jsx)("div",{className:"divider"}):(0,Oe.jsx)(io,{className:"title",onClick:ze,children:ye}),(0,Oe.jsx)("ul",{children:Le.map((Vt,on)=>(0,Oe.jsx)(hn,{menuTheme:Me,option:Vt,isActive:co(Vt,ae),isDisabled:Vt.isDisabled,onChange:ze,onClose:_t,onMouseEnter:It,onMouseLeave:Et},on))})]})}Ln.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:Le,menuTheme:Me,onChange:ze,onClose:_t,onMouseEnter:It,onMouseLeave:Et,noCheck:Vt}=ne;const on=Object.keys(ae).length===0,tn=be(["SelectOption",Vt&&"noCheck",ye&&"is-active",Le&&"is-disabled",on&&"is-empty"]),{icon:ln,label:bn,value:Zn,shortcut:so,onClick:eo}=ae,Co=()=>{eo()};return(0,Oe.jsx)("li",{role:"option","data-value":Zn,className:tn,onClick:Le||on?void 0:eo?Co:ze,onMouseEnter:It,onMouseLeave:Et,children:on?(0,Oe.jsx)(Oe.Fragment,{}):(0,Oe.jsxs)(Oe.Fragment,{children:[!Vt&&ye&&(0,Oe.jsx)("span",{className:"checked",children:$t}),(0,Oe.jsxs)("div",{className:"value-wp",children:[ln&&(0,Oe.jsx)("div",{className:"icon",children:ln}),(0,Oe.jsx)("span",{className:"value",children:bn||Zn})]}),(0,Oe.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:Le}=ne;const[Me,ze]=(0,r.useState)(ae);(0,r.useEffect)(()=>{ze(ae)},[ae]);const _t=(0,r.useRef)(),It=on=>{if(on.key==="Enter")if(ye){const[tn,ln]=ye;Me>=tn&&Me<=ln?Le(on):ze(ae)}else Le(on)},Et=on=>{on.target.select()},Vt=on=>{const tn=on.target.value.replace(/\D/g,"");ze(tn),on.target.focus()};return(0,Oe.jsx)("li",{className:"SelectOption with-input",children:(0,Oe.jsx)("input",{type:"text",value:Me,ref:_t,onFocus:Et,onKeyDown:It,onChange:Vt})})}_o.propTypes={value:s().any,range:s().array,onChange:s().func};function vo(ne){if(ne.isIdentity())return null;if(ne.isTranslate())return"translate("+Number(ne.x)+", "+Number(ne.y)+")";{const{a:ae,b:ye,c:Le,d:Me,x:ze,y:_t}=ne;return"matrix("+Number(ae)+", "+Number(ye)+", "+Number(Le)+", "+Number(Me)+", "+Number(ze)+", "+Number(_t)+")"}}var Qn=e(18805);const He=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%);}"]),Re=ne=>{let{color:ae,attr:ye,index:Le,alpha:Me}=ne;const{colors:ze,stops:_t,type:It}=ae,Et=[];ze.map((ln,bn)=>{const Zn=ln[3],eo={hex:d.Q1.toHexAndAlpha(ln)[0],alpha:Zn,point:_t[bn]};Et.push(eo)});const Vt="colorButton-"+ye+"-"+It+"-"+Le,on=d.dL.parse(ae),tn=vo(on);return(0,Oe.jsxs)("svg",{className:"thumbnail gradient-btn",children:[(0,Oe.jsx)("defs",{children:It===d.LA.LinearGradient?(0,Oe.jsx)("linearGradient",{id:Vt,x1:0,x2:1,y1:0,y2:0,gradientTransform:tn,children:Et.sort((ln,bn)=>ln.point-bn.point).map((ln,bn)=>{let{alpha:Zn,hex:so,point:eo}=ln;return(0,Oe.jsx)("stop",{stopColor:so,stopOpacity:Zn,offset:eo},bn)})}):(0,Oe.jsx)("radialGradient",{id:Vt,cx:0,cy:0,r:1,gradientTransform:tn,children:Et.map((ln,bn)=>{let{alpha:Zn,hex:so,point:eo}=ln;return(0,Oe.jsx)("stop",{stopColor:so,stopOpacity:Zn,offset:eo},bn)})})}),(0,Oe.jsx)("rect",{width:"100%",height:"100%",fill:"url(#"+Vt+")",style:{opacity:Me/100}})]})},De=(0,r.forwardRef)((ne,ae)=>{let{className:ye,color:Le,attr:Me,index:ze,handleColorThumbnailMouseDown:_t}=ne,It=0,Et="";if(Le.type===d.LA.Solid){const on=Le.color[3];Et=d.Q1.toHexAndAlpha(Le.color)[0],It=Math.floor(on*100)}else It=Le.o*100;const Vt=on=>_t&&_t(on,{color:Le,attr:Me,index:ze});return(0,Oe.jsxs)(He,{ref:ae,className:f()("thumbnail-wrapper",ye),onMouseDown:Vt,children:[Le.type===d.LA.Solid&&(0,Oe.jsx)("div",{className:"thumbnail",style:{backgroundColor:Et,opacity:It/100}}),(0,Qn.NT)(Le.type)&&(0,Oe.jsx)(Re,{color:Le,attr:Me,index:ze,alpha:It}),Le.type===d.LA.Image&&(0,Oe.jsx)("img",{className:"thumbnail img-type",src:Le.src,style:{opacity:It/100}})]})});De.displayName="ColorThumbnail";const Be=ne=>{let{color:ae,attr:ye,index:Le}=ne,Me=0,ze="";if(ae.type===d.LA.Solid){const _t=ae.color[3];ze=d.Q1.toHexAndAlpha(ae.color)[0],Me=Math.floor(_t*100)}else Me=ae.o*100;return(0,Oe.jsxs)(r.Fragment,{children:[ae.type===d.LA.Solid&&(0,Oe.jsx)("div",{className:"thumbnail",style:{backgroundColor:ze,opacity:Me/100}}),(0,Qn.NT)(ae.type)&&(0,Oe.jsx)(Re,{color:ae,attr:ye,index:Le,alpha:Me}),ae.type===d.LA.Image&&(0,Oe.jsx)("img",{className:"thumbnail img-type",src:ae.src,style:{opacity:Me/100}})]})};Be.displayName="ColorRender";const $e=ne=>{let{color:ae,attr:ye,colorPanelPosOffset:Le={offsetLeft:266,offsetTop:140},enable:Me,index:ze,onChange:_t,onChangeState:It,length:Et}=ne;const[Vt,on]=(0,r.useState)(!1),[tn,ln]=(0,r.useState)({left:0,top:0}),[bn,Zn]=(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(!Me)return;if(Vt)return Ro();const{offsetLeft:Lo,offsetTop:Go}=Le,{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),It&&It(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=>{Zn(Ho)};return(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)(De,{ref:so,color:ae,attr:ye,index:ze,handleColorThumbnailMouseDown:ko}),Vt&&(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)(xa,{colorObj:ae,attr:ye,position:tn,isSolidColorOnly:eo,isHideBlendMode:Co,index:Et-ze,onClose:Ro,onPositionChanged:ln,onColorSave:_t,onChangeShowColorList:Fo,isShowColorList:bn}),(0,Oe.jsx)(l.A,{target:document,onMouseDown:(0,l.t)(Bo,{capture:!0})})]})]})};var Ze=e(21066);const nt=(0,Oe.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Oe.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,Oe.jsx)("svg",{width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,Oe.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"})}),xt=(ne,ae)=>(0,Oe.jsxs)("svg",{width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,Oe.jsx)("defs",{children:(0,Oe.jsxs)("linearGradient",{x1:"50%",y1:"39.897%",x2:"50%",y2:"81.179%",id:"LINEAR_ICON",children:[(0,Oe.jsx)("stop",{stopColor:ne?"#ffffff":"#f9f9f9",offset:"0%"}),(0,Oe.jsx)("stop",{stopColor:ne?ae:"#939393",offset:"100%"})]})}),(0,Oe.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,Oe.jsxs)("svg",{width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,Oe.jsx)("defs",{children:(0,Oe.jsxs)("radialGradient",{cx:"50%",cy:"50%",fx:"50%",fy:"50%",r:"50%",id:"RADIAL_ICON",children:[(0,Oe.jsx)("stop",{stopColor:"#ffffff",offset:"0%"}),(0,Oe.jsx)("stop",{stopColor:"#ffffff",offset:"37.844%"}),(0,Oe.jsx)("stop",{stopColor:ne?ae:"#a0a0a0",offset:"100%"})]})}),(0,Oe.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"})]}),wt=ne=>(0,Oe.jsxs)("svg",{width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink",children:[(0,Oe.jsxs)("defs",{children:[(0,Oe.jsx)("circle",{id:"IMAGE_ICONa",cx:"8",cy:"8",r:"8"}),(0,Oe.jsx)("circle",{id:"IMAGE_ICONc",cx:"8",cy:"8",r:"8"})]}),(0,Oe.jsxs)("g",{fill:"none",fillRule:"evenodd",children:[(0,Oe.jsx)("mask",{id:"IMAGE_ICONb",fill:"#fff",children:(0,Oe.jsx)("use",{href:"#IMAGE_ICONa"})}),(0,Oe.jsx)("circle",{stroke:"#1169C9",strokeWidth:".5",cx:"8",cy:"8",r:"7.75"}),(0,Oe.jsx)("circle",{fill:ne?"#9881e1":"#9f9f9f",mask:"url(#IMAGE_ICONb)",cx:"10",cy:"5",r:"2"}),(0,Oe.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,Oe.jsx)("circle",{stroke:ne?"#6c4bd5":"#6c6c6c",cx:"8",cy:"8",r:"7.5"})]})]}),Zt=(0,Oe.jsx)("svg",{width:"8",height:"12",xmlns:"http://www.w3.org/2000/svg",children:(0,Oe.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,Oe.jsx)("svg",{width:"8px",height:"13px",viewBox:"0 0 8 13",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,Oe.jsx)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,Oe.jsx)("g",{transform:"translate(-46.000000, -161.000000)",children:(0,Oe.jsxs)("g",{transform:"translate(46.000000, 161.049808)",children:[(0,Oe.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,Oe.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"})]})})})}),Gt=(0,Oe.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Oe.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"})}),Dt=(0,Oe.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",fill:"none",children:(0,Oe.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,Oe.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",fill:"none",children:(0,Oe.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"})}),Ct=(0,Oe.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"10",fill:"none",children:(0,Oe.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,Oe.jsx)("svg",{width:"9",height:"12",xmlns:"http://www.w3.org/2000/svg",children:(0,Oe.jsxs)("g",{stroke:"#666",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,Oe.jsx)("path",{d:"M1 10.5v-4a3 3 0 013-3h4"}),(0,Oe.jsx)("path",{d:"M6.333 1.5l2 2.003-2 1.997"})]})}),rn=(0,Oe.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"none",children:(0,Oe.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"})}),Rt=(0,Oe.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"none",children:(0,Oe.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"})}),Dn=(0,Oe.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"none",children:[(0,Oe.jsx)("rect",{width:"3.55",height:"3.55",x:"4.583",y:"4.583",fill:"#B7B9BD",rx:".5"}),(0,Oe.jsx)("rect",{width:"3.55",height:"3.55",x:"4.583",y:"9.133",fill:"#555557",rx:".5"}),(0,Oe.jsx)("rect",{width:"3.55",height:"3.55",x:"4.583",y:"13.683",fill:"#8B8C8F",rx:".5"}),(0,Oe.jsx)("rect",{width:"3.55",height:"3.55",x:"9.225",y:"4.583",fill:"#8B8C8F",rx:".5"}),(0,Oe.jsx)("rect",{width:"3.55",height:"3.55",x:"9.225",y:"9.133",fill:"#B7B9BD",rx:".5"}),(0,Oe.jsx)("rect",{width:"3.55",height:"3.55",x:"9.225",y:"13.683",fill:"#555557",rx:".5"}),(0,Oe.jsx)("rect",{width:"3.55",height:"3.55",x:"13.867",y:"4.583",fill:"#555557",rx:".5"}),(0,Oe.jsx)("rect",{width:"3.55",height:"3.55",x:"13.867",y:"9.133",fill:"#8B8C8F",rx:".5"}),(0,Oe.jsx)("rect",{width:"3.55",height:"3.55",x:"13.867",y:"13.683",fill:"#B7B9BD",rx:".5"})]}),To=(0,Oe.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:[(0,Oe.jsx)("mask",{id:"eyedroppera",fill:"#fff",children:(0,Oe.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,Oe.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,Oe.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)"})]}),mo=(0,Oe.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:(0,Oe.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,Oe.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",children:(0,Oe.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",uo={"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=>uo[ne]&&uo[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 ht(ne,ae,ye){const Le=ae.getBoundingClientRect(),Me=Math.min(Le.left,document.documentElement.clientWidth-Le.right);return ne.offsetWidth+ae.offsetWidth+ye+Mewindow.innerHeight,Me=ye.top<0;if(Me&&Le)return!0;if(ne.offsetHeight>ae.offsetHeight){const ze=ne.offsetHeight/2,_t=ye.bottom-window.innerHeight,It=-ye.top,Et=ze-_t,Vt=ze-It;return Et>=0&&Vt>=0}return!Le&&!Me}function nn(ne,ae,ye,Le,Me){if(!ye)return ne;const ze=ye.getBoundingClientRect(),_t=ae.offsetHeight+Le,It=window.innerHeight-ze.bottom,Et=ze.top,Vt=It>=_t,on=Et>=_t;switch(ne){case"right":return!ht(ae,ye,Le)||!Ht(ye,ae)?nn("up",ae,ye,Le,!0):document.documentElement.clientWidth-ze.right1?ae[1]:"middle"}function bo(ne,ae,ye,Le,Me){let ze=-1e7,_t;if(ne){const It=Un(),Et=ae.getBoundingClientRect(),Vt=Et.left+It,on=Math.round(ae.offsetWidth/2),tn=Math.min(Kn(),ne.offsetWidth);if(Le==="start")ze=Vt;else if(Le==="end"){const so=Vt+ae.offsetWidth;ze=Math.max(so-tn,It)}else{const so=Vt+on-Math.round(tn/2);ze=Math.max(so,It)}const ln=ze+tn,bn=It+document.documentElement.clientWidth,Zn=ln-bn;Zn>0&&(ze-=Zn),ye==="up"?_t=Et.top+en()-(ne.offsetHeight+Me):_t=Et.bottom+en()+Me}return{left:ze,top:_t}}function zn(ne,ae,ye,Le,Me){let ze=-1e7,_t=0;if(ne){const It=en(),Et=Un(),Vt=ae.getBoundingClientRect(),on=Vt.top+It,tn=Math.round(ae.offsetHeight/2),ln=on+tn,bn=Vt.top+It+tn;if(Le==="start")_t=on;else if(Le==="end")_t=Vt.bottom+It-ne.offsetHeight;else{const so=Math.max(on+tn-Math.round(ne.offsetHeight/2),It);_t=Math.min(so,ln)}const Zn=_t-It+ne.offsetHeight-window.innerHeight;Zn>0&&(_t=Math.max(_t-Zn,bn-ne.offsetHeight)),ye==="right"?ze=Vt.right+Me+Et:ze=Vt.left-Me-ne.offsetWidth+Et}return{left:ze,top:_t}}function Vn(ne,ae,ye){let{direction:Le,distance:Me,forceDirection:ze}=ye;const _t=Hn(Le),It=Le.split("-")[0];let Et=It;return!ze&&ae&&(Et=nn(It,ae,ne,Me)),{sourceNodePosition:Et==="up"||Et==="down"?bo(ae,ne,Et,_t,Me):zn(ae,ne,Et,_t,Me),realDirection:Et}}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 Le=ye.call(ne,ae||"default");if(typeof Le!="object")return Le;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:Le,paddingRight:Me,paddingBottom:ze}=getComputedStyle(ne),_t=parseInt(ye),It=parseInt(Le),Et=parseInt(Me),Vt=parseInt(ze);return{top:ae.top+_t,left:ae.left+It,width:ae.width-(It+Et),height:ae.height-(_t+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 Le=this.props.children.props;Le.onMouseLeave&&Le.onMouseLeave(ye),this.state.showTip&&this.setState({showTip:!1})}),wo(this,"startHover",ye=>{const{isTruncated:Le,hangingTime:Me}=this.props,ze=this.props.children.props;ze.onMouseEnter&&ze.onMouseEnter(ye);const{isShowTipsByTarget:_t}=this.props;_t(this.tip,(0,o.findDOMNode)(this),ye)&&(!Le||this.detectTruncation(this.tip))&&(Me?this.timer=setTimeout(()=>{this.setState(It=>{if(!It.showTip)return{showTip:!0}})},Me):this.setState({showTip:!0}))}),wo(this,"onHiddenTips",ye=>{const{onMouseEvent:Le}=this.props,Me=this.props.children.props;Me[Le]&&Me[Le](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:Le,forceDirection:Me,content:ze,maxWidth:_t}=this.props,It={direction:ye,distance:Le,forceDirection:Me},{sourceNodePosition:Et}=Vn((0,o.findDOMNode)(this),this.tip,It),Vt=document.body.clientWidth,on=Math.min(_t,So(ze).width),tn=ze&&typeof ze=="string"?on+16:0;for(;Et.left+tn>Vt;)Et.left-=5;this.setState({tipPosition:Et})}),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:Le,isShowTips:Me,onMouseEvent:ze,maxWidth:_t,autoHeight:It,isHideMouseDown:Et,hotKey:Vt}=this.props,{showTip:on,tipPosition:tn}=this.state,ln={key:"trigger"};Le&&Me&&(ln.onMouseEnter=this.startHover,ln.onMouseLeave=this.hideTip,Et&&(ln.onMouseDown=this.hideTip),ze&&(ln[ze]=this.onHiddenTips));const bn=r.Children.only(ae),Zn=(0,r.cloneElement)(bn,ln);let so=null;if(on&&Le&&Me){const eo={maxWidth:_t,...tn,whiteSpace:It?"wrap":"nowrap"};so=ye&&(0,Oe.jsx)(Rn,{children:(0,Oe.jsx)(Mo,{style:eo,ref:this.setTipsRef,children:(0,Oe.jsxs)("span",{children:[ye,Vt&&(0,Oe.jsx)("span",{className:"shortcut-key",children:Vt})]})})},"portal")}return[Zn,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"],xn=["\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(","),Le=ye.length;return Le>3&&+ye[Le-1].replace(")","")!=1}),(0,n.A)(this,"handleSelect",(ae,ye,Le)=>{const{currentSelect:Me}=this.props;this.setState({index:Le}),ae.button===2&&Me==="favorite"?this.setState({showDeleteMenu:{left:ae.clientX,top:ae.clientY-18}}):(this.props.handleSelect(ye,mn[Me],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:Le}=this.state,[Me,ze=1]=ae.split("&"),_t=f()("current-palette-color-li gradient-bg",{transparent:ae==="transparent"},{"is-active":Le===ye&&this.props.isFocus});return(0,Oe.jsx)("li",{className:_t,onMouseDown:It=>this.handleSelect(It,ae,ye),children:(0,Oe.jsx)("div",{className:"color-box",style:{backgroundColor:Me,opacity:Number(ze)}})})}),(0,n.A)(this,"getGradientColor",(ae,ye)=>{const{index:Le}=this.state,Me=f()("current-palette-color-li gradient-bg",{"is-active":Le===ye&&this.props.isFocus});return(0,Oe.jsx)("li",{className:Me,onMouseDown:ze=>this.handleSelect(ze,ae,ye),children:(0,Oe.jsx)(Re,{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:Le}=this.props,{showDeleteMenu:Me}=this.state,{isShowColorList:ze}=this.props,_t=ae.filter(on=>{let{key:tn}=on;return tn!=="history"}).map(on=>{let{key:tn,name:ln}=on;return{value:tn,label:ln}}),{colors:It}=ae.find(on=>on.key===ye)||{},Et=document.documentElement.lang,Vt=ye==="lg"?wn:ye==="rg"?xn:null;return(0,Oe.jsxs)("div",{className:"panel-color-list",style:{paddingTop:0},children:[(0,Oe.jsxs)("header",{className:f()({"is-alone":!ze}),children:[(0,Oe.jsx)(Jt,{width:140,value:ye,optionList:_t,selectWidth:Et==="en"?120:118,onChange:this.handleChangeSelect}),(0,Oe.jsxs)("div",{className:"btns-wp",children:[ye==="favorite"&&(0,Oe.jsx)("div",{className:"icon add-to-favorite",onClick:Le,children:Dt}),(0,Oe.jsx)("div",{className:f()("icon","down-arrow",{"is-rotate":!ze}),onClick:this.toggleShowColorList,children:Qt})]})]}),ze&&(0,Oe.jsx)("ul",{className:f()("current-palette","drop-down-color-list",{"color-palette-list":It&&It.length>0}),style:{marginTop:-5},children:It&&It.length>0?It.map((on,tn)=>Vt?(0,Oe.jsx)(Ut,{content:Vt[tn],direction:"down",children:(0,Oe.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,Oe.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,Oe.jsxs)("div",{className:"block",children:[(0,Oe.jsx)("div",{className:"placeholder-icon"}),ye==="favorite"&&(0,Oe.jsx)("span",{children:po("components.addToCollection")})]})}),ye==="favorite"&&Me&&(0,Oe.jsx)(Ze.Ay,{position:Me,style:{minWidth:55,height:30,padding:"4px 0"},onClose:this.handleClose,children:(0,Oe.jsx)(Ze.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",Et=>{this.$SVPlane=Et}),(0,n.A)(this,"setHBandRef",Et=>{this.$HBand=Et}),(0,n.A)(this,"setABandRef",Et=>{this.$ABand=Et}),(0,n.A)(this,"_getBaseHue",Et=>d.Q1.rgb2hex(d.Q1.hsv2rgb({h:Et,s:1,v:1}))),(0,n.A)(this,"_getSVPointerStyle",(Et,Vt)=>{const{h:on}=this.state,{r:tn,g:ln,b:bn}=d.Q1.hsv2rgb({h:on,s:Et,v:Vt}),{color:Zn}=this.props,[,,,so]=Zn;return{top:100-Vt*100+"%",left:Et*100+"%",background:"rgba("+tn+", "+ln+", "+bn+", "+so+")"}}),(0,n.A)(this,"_getSVValue",(Et,Vt)=>{const on=this.$SVPlane.getBoundingClientRect();return{s:Math.min(1,Math.max(0,Et-on.left)/on.width),v:1-Math.min(1,Math.max(0,Vt-on.top)/on.height)}}),(0,n.A)(this,"_getHPointerStyle",()=>{const{h:Et}=this.state,Vt=this._getBaseHue(Et);return{left:Et*100+"%",backgroundColor:Vt}}),(0,n.A)(this,"_getAPointerStyle",Et=>{const{h:Vt,s:on,v:tn}=this.state,{r:ln,g:bn,b:Zn}=d.Q1.hsv2rgb({h:Vt,s:on,v:tn});return{left:Et*100+"%",backgroundColor:"rgba("+ln+", "+bn+", "+Zn+", "+Et+")"}}),(0,n.A)(this,"_getHValue",Et=>{const Vt=this.$HBand.getBoundingClientRect(),on=Math.min(1,Math.max(0,Et-Vt.left)/Vt.width);return{h:Math.round(on*100)/100}}),(0,n.A)(this,"_getAValue",Et=>{const Vt=this.$ABand.getBoundingClientRect(),on=Math.min(1,Math.max(0,Et-Vt.left)/Vt.width);return{a:Math.round(on*100)/100}}),(0,n.A)(this,"handleDragSVPlane",Et=>{Tn(Et),Et.preventDefault();const{color:Vt,onChange:on,onMouseDownCallback:tn,onMouseUpCallback:ln}=this.props,{h:bn}=this.state,[,,,Zn]=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,Zn];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,Zn];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",Et=>{Tn(Et),Et.preventDefault();const{color:Vt,onChange:on,onMouseDownCallback:tn,onMouseUpCallback:ln}=this.props,{s:bn,v:Zn}=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:Zn}),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:Zn}),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",Et=>{Tn(Et),Et.preventDefault();const{a:Vt}=this._getAValue(Et.clientX),{color:on,onChange:tn,onMouseDownCallback:ln,onMouseUpCallback:bn}=this.props;on[3]=Vt,this.setState({changeInside:!0}),ln();const Zn=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",Zn),document.removeEventListener("mouseup",so),this.setState({changeInside:!1}),bn()};document.addEventListener("mousemove",Zn),document.addEventListener("mouseup",so)}),(0,n.A)(this,"handleChangeShowGradientBar",()=>{const{isShowGradientBar:Et,onChangeIsShowGradientBar:Vt}=this.props;Vt(!Et)});const[ye,Le,Me]=ae.color,{s:ze,v:_t,h:It}=d.Q1.rgb2hsv({r:ye,g:Le,b:Me});this.state={s:ze,v:_t,h:It,changeInside:!1,currentTab:0}}static getDerivedStateFromProps(ae,ye){const[Le,Me,ze]=ae.color,{r:_t,g:It,b:Et}=d.Q1.hsv2rgb({h:ye.h,s:ye.s,v:ye.v});if([Le,Me,ze].toString()!==[_t,It,Et].toString()&&!ye.changeInside){const{s:Vt,v:on,h:tn}=d.Q1.rgb2hsv({r:Le,g:Me,b:ze});return{s:Vt,v:on,h:tn}}return null}render(){const{color:ae,isEyedropperOpen:ye,toggleColorPicker:Le,colorPickerEnabled:Me}=this.props,[,,,ze]=ae,{h:_t,s:It,v:Et}=this.state,Vt=this._getBaseHue(_t),on=this._getSVPointerStyle(It,Et),tn=this._getHPointerStyle(),ln=this._getAPointerStyle(ze);return(0,Oe.jsxs)(un,{className:"hsv-picker padding-15",children:[(0,Oe.jsx)("div",{className:"inline",children:(0,Oe.jsxs)("section",{className:"s-v-plane",ref:this.setSVPlaneRef,onMouseDown:this.handleDragSVPlane,children:[(0,Oe.jsxs)(An,{bg:Vt,children:[(0,Oe.jsx)("div",{className:"base-hue-layer"}),(0,Oe.jsx)("div",{className:"s-layer"}),(0,Oe.jsx)("div",{className:"v-layer"})]}),(0,Oe.jsx)("i",{className:"pointer",style:on,onMouseDown:this.handleDragSVPlane})]})}),(0,Oe.jsxs)("div",{className:"row",children:[(0,Oe.jsx)(Ut,{content:"\u53D6\u8272\u5668",hotKey:"I",direction:"down",hangingTime:"1000",children:(0,Oe.jsx)("div",{className:f()("outside-color-picker-btn",{"color-picker-enabled":Me},{"is-close":!ye}),onClick:Le,children:ye?(0,Oe.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",children:[(0,Oe.jsx)("rect",{width:"24",height:"24",rx:"4",fill:"#0077FF","fill-opacity":"0.15"}),(0,Oe.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,Oe.jsxs)("div",{className:"hand-wrap",children:[(0,Oe.jsx)("div",{className:"h-band",onMouseDown:this.handleDragHBand,children:(0,Oe.jsx)("div",{className:"rail",ref:this.setHBandRef,children:(0,Oe.jsx)("span",{className:"slider",style:tn})})}),(0,Oe.jsx)("div",{className:"h-a-bands",children:(0,Oe.jsxs)("div",{className:"a-band",onMouseDown:this.handleDragABand,children:[(0,Oe.jsx)("div",{style:{width:"100%",height:"100%",borderRadius:8,background:"linear-gradient(to right, transparent 0%, "+d.Q1.rgb2rgbaStr({...d.Q1.hsv2rgb({h:_t,s:It,v:Et}),a:1})+" 100%)"}}),(0,Oe.jsx)("div",{className:"rail",ref:this.setABandRef,children:(0,Oe.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,''],ce=[12,12,''],Pt=[12,12,''],Mt=[14,14,''],je=[14,14,''],vt=[20,20,''],kt=[20,20,''],Yt=[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":ce,"general/warning_filled":Pt,"general/close_new":Mt,"general/pin":je,"general/duplicate":vt,"general/move":kt,"general/trash":Yt,"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,Le)&&(ye[Le]=ne[Le])}return ye}function Qr(ne,ae){if(ne==null)return{};var ye={},Le=Object.keys(ne),Me,ze;for(ze=0;ze=0)&&(ye[Me]=ne[Me]);return ye}function Jr(ne,ae){return el(ne)||fo(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,Le=new Array(ae);ye"u"||!(Symbol.iterator in Object(ne)))){var ye=[],Le=!0,Me=!1,ze=void 0;try{for(var _t=ne[Symbol.iterator](),It;!(Le=(It=_t.next()).done)&&(ye.push(It.value),!(ae&&ye.length===ae));Le=!0);}catch(Et){Me=!0,ze=Et}finally{try{!Le&&_t.return!=null&&_t.return()}finally{if(Me)throw ze}}return ye}}function el(ne){if(Array.isArray(ne))return ne}function Ki(ne){var ae=ne.name,ye=ne.className,Le=ne.label,Me=$r(ne,["name","className","label"]),ze=Wa[ae&&ae.includes("/")?ae:"general/"+ae];if(!ze)return null;var _t=Jr(ze,3),It=_t[0],Et=_t[1],Vt=Le?{"aria-label":Le}:{"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(It," ").concat(Et)},ca(ca({},Vt),Me),{dangerouslySetInnerHTML:{__html:_t[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,Le)&&(ye[Le]=ne[Le])}return ye}function sl(ne,ae){if(ne==null)return{};var ye={},Le=Object.keys(ne),Me,ze;for(ze=0;ze=0)&&(ye[Me]=ne[Me]);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 Me=this.className,ze=this.isLoading,_t=this.isDisabled,It=this.props,Et=It.iconType,Vt=It.icon,on=It.children,tn=ol(It,["iconType","icon","children"]);return r.createElement(nl,Ai({className:Me,disabled:_t,onClick:function(bn){return _t&&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&&Et==="svg"&&r.createElement(pa,{name:Vt}),on))}},{key:"className",get:function(){var Me=this.props,ze=Me.type,_t=Me.theme,It=Me.size,Et=Me.className,Vt=this.isDisabled,on=this.isLoading;return be(["Button","".concat(hl[ze]).concat(_t==="core"?"CoreButton":"Button"),It!=="regular"&&It,on&&"is-loading",Vt&&"is-disabled",Et])}},{key:"isDisabled",get:function(){var Me=this.props,ze=Me.isDisabled,_t=Me.disabled;return ze||_t}},{key:"isLoading",get:function(){var Me=this.props,ze=Me.isLoading,_t=Me.loading;return ze||_t}}]),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,Le;(Le=ye.exec(ne))!==null;)ae.push(Le[1]);return ae}function yl(ne){return ne!==void 0&&ne.match(/^[0-9\.]+$/)!==null}function vl(ne,ae){var ye=xl(ae),Le=0;function Me(){return ye[Le]}function ze(ln){Le++}function _t(){var ln=Me();if(ln==="-"){ze(ln);const Zn=Me();return ze(Zn),{type:"number",value:ln+Zn}}else if(ln==="+"){ze(ln);const Zn=Me();return ze(Zn),{type:"number",value:Zn}}else{if(yl(ln))return ze(ln),{type:"number",value:ln};if(ln==="("){ze(ln);var bn=Vt();if(Me()!==")")throw new SyntaxError("expected )");return ze(")"),bn}else throw new SyntaxError("expected a number, a variable, or parentheses")}}function It(ln){return Me()==="%"?(ze("%"),It({type:"%",expr:ln})):ln}function Et(){for(var ln=It(_t()),bn=Me();bn==="*"||bn==="/";){ze(bn);var Zn=It(_t());ln={type:bn,left:ln,right:Zn},bn=Me()}return ln}function Vt(){for(var ln=Et(),bn=Me();bn==="+"||bn==="-";){ze(bn);var Zn=Et();ln={type:bn,left:ln,right:Zn},bn=Me()}return ln}var on=Vt();if(Le!==ye.length)throw new SyntaxError("unexpected '"+Me()+"'");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,Oe.jsx)("svg",{width:"6",height:"4",xmlns:"http://www.w3.org/2000/svg",children:(0,Oe.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,Oe.jsx)("svg",{width:"6",height:"4",xmlns:"http://www.w3.org/2000/svg",children:(0,Oe.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",Me=>this.$title=Me),(0,n.A)(this,"setLabelRef",Me=>this.$label=Me),(0,n.A)(this,"setInputRef",Me=>this.$input=Me),(0,n.A)(this,"onChange",Me=>{const{target:{value:ze}}=Me;this.setValue(ze.trim(),Me)}),(0,n.A)(this,"correctNumber",Me=>{typeof Me=="string"&&(Me=Number.parseFloat(Me));const{value:ze,min:_t,max:It,precision:Et}=this.props,Vt=Zi(Math.min(Math.max(Me,_t),It),Et);if(isNaN(Vt)){if(isNaN(ze))return 0}else return Vt}),(0,n.A)(this,"checkValidity",Me=>/^\+$/.test(Me)?this.canBePositive:/^\-$/.test(Me)?this.canBeNegative:Me===""||isFinite(Me)&&this.correctNumber(Me)===Number(Me)||Me===po("common.multipleValues")),(0,n.A)(this,"setValue",(Me,ze,_t)=>{if(ze.persist&&ze.persist(),Me===this.state.value){_t();return}this.setState({value:Me},_t)}),(0,n.A)(this,"setConfirmedValue",(Me,ze,_t)=>this.setValue(Me,ze,()=>this.onConfirm(ze,_t))),(0,n.A)(this,"setConfirmedValueWhenResize",(Me,ze,_t)=>this.setValue(Me,ze,()=>this.onConfirm(ze,_t))),(0,n.A)(this,"onConfirm",function(Me,ze){ze===void 0&&(ze=!1);const{attr:_t,value:It,precision:Et,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;Me.persist&&Me.persist();const so=ye.correctNumber(ln),eo=isNaN(so)?It:so,Co=ln===""?tn?void 0:It:bn?/^[\+\-]$/.test(ln)?0:so:so===Zi(ln,Et)?so:It||eo,ko=Co||eo;if(!(!E()(Co)&&!tn))return ye.setState({value:ko},()=>Vt(Co,_t,Me,ze))}),(0,n.A)(this,"focusOnInput",Me=>{try{const ze=Me.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",Me=>{Me.persist(),Me.nativeEvent.stopPropagation();const{action:ze}=Me.currentTarget.dataset,_t=Ga(Me,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()+_t),Me,!0),Object.assign(this,{longPressedTimeout:setTimeout(()=>Object.assign(this,{steppingInterval:setInterval(()=>this.setConfirmedValue(this.correctNumber(this.materializeToNumber()+_t),Me,!0),Cl)}),bl)})}),(0,n.A)(this,"onRelease",()=>{clearTimeout(this.longPressedTimeout),clearInterval(this.steppingInterval)}),(0,n.A)(this,"onFocus",Me=>{const{attr:ze,onFocus:_t=hc}=this.props;_t(Me,ze)}),(0,n.A)(this,"onKeyDown",Me=>{const{key:ze,currentTarget:_t}=Me,It=ze==="ArrowUp"?"up":ze==="ArrowDown"?"down":ze==="Enter"?"enter":ze==="Tab"?"tab":null,Et=_t instanceof Element&&_t.matches("input");if(It){if(Me.persist&&Me.persist(),It!=="tab"&&Me.preventDefault(),Et&&It==="tab")return this.setInactive(),this.onConfirm(Me);if(Et&&It==="enter"){this.onConfirm(Me),this.setInactive(),this.$label.querySelector("input").select();return}if(Et){if(!this.shouldEnableByValue(this.state.value))return;const Vt=Ga(Me,this.props.step)*(It==="up"?1:-1);this.setConfirmedValue(this.correctNumber(this.materializeToNumber()+Vt),Me,!0)}}}),(0,n.A)(this,"setActive",Me=>{Me.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",Me=>{Me.persist();const{currentTarget:ze}=Me;this.setConfirmedValue(ze.dataset.value,Me),this.setInactive(),this.closeMenu()}),(0,n.A)(this,"onClickOutside",Me=>{const{target:ze}=Me,{onBlur:_t}=this.props;ze.closest("label")&&this.$label.contains(ze)||(this.onConfirm(Me),this.setInactive(),_t&&_t())}),(0,n.A)(this,"handleRectResize",Me=>{Me.stopPropagation();const{isDisabled:ze,disabled:_t,cursorSize:It,cursorDirection:Et}=this.props;if(ze||_t||!this.shouldEnableByValue(this.state.value))return;const{left:Vt,right:on,top:tn,bottom:ln}=this.$title.getBoundingClientRect();this.lastRecordedClientX=It==="col-resize"?(Vt+on)/2:(tn+ln)/2,this.lastRecordedValue=this.materializeToNumber(),this.setState({isTitleActive:!0}),document.body.classList.add("no-pointer-events",It),this.props.onRectResize&&this.props.onRectResize(!0);const bn=so=>{const eo=(It==="col-resize"?so.pageX:so.pageY)-this.lastRecordedClientX;this.setConfirmedValueWhenResize(this.correctNumber(this.lastRecordedValue+(Et?Number(eo):-Number(eo))),so,!0)},Zn=so=>{this.setState({isTitleActive:!1}),document.body.classList.remove("no-pointer-events",It),this.props.onRectResize&&this.props.onRectResize(!1),document.removeEventListener("mousemove",bn),document.removeEventListener("mouseup",Zn)};document.addEventListener("mousemove",bn),document.addEventListener("mouseup",Zn)}),(0,n.A)(this,"handleChangeCursor",Me=>{const{isDisabled:ze,disabled:_t}=this.props;ze||_t||this.shouldEnableByValue(this.state.value)&&this.setState({isCursor:!this.state.isCursor})});const Le=Yi(this.props.value,this.props.isNotVerify,this.props.precision);this.state={prevProps:this.props,value:Le,isActive:!1,isMenuOpen:!1,isTitleActive:!1,isCursor:!1,suffixStyle:null},this.lastRecordedClientX=null,this.lastRecordedValue=Le}static getDerivedStateFromProps(ae,ye){let{prevProps:Le,value:Me}=ye;return(0,fl.bN)(Le,ae)?null:{prevProps:ae,value:Yi(ae.value,ae.isNotVerify,ae.precision)}}componentDidMount(){this.positionEverything()}positionEverything(){const{value:ae,suffix:ye,suffixOffsetLeft:Le}=this.props;if(ye){const Me={left:this.$input.offsetLeft+Le};this.setState({suffixStyle:Me})}}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:Le,cursorSize:Me,suffix:ze,formatter:_t,optionList:It,canSlidingAdjustment:Et,readOnly:Vt,onMouseEnter:on,onMouseLeave:tn,withBtns:ln,showCursorResize:bn}=this.props,{value:Zn,isActive:so,isMenuOpen:eo,isTitleActive:Co,isCursor:ko,suffixStyle:Ro}=this.state,Bo=this.props.isDisabled||this.props.disabled,Fo=Bo||!this.shouldEnableByValue(Zn),Ho=It&&It.length>0,Lo=f()(ae,"WorkspaceInputNumber",{"is-disabled":Bo,"is-active":so&&!Bo,"is-menu-open":eo,"is-active-title":Co,"can-sliding-adjustment":Et,"has-menu":Ho,"is-readOnly":Vt});return(0,Oe.jsxs)(ml,{className:Lo,ref:this.setLabelRef,onMouseDown:this.setActive,onMouseEnter:on,onMouseLeave:tn,children:[Le&&(0,Oe.jsx)("div",{className:f()("title",{"title-cursor":ko},Me),ref:this.setElemRef,onMouseDown:this.handleRectResize,onMouseEnter:this.handleChangeCursor,onMouseLeave:this.handleChangeCursor,children:Le}),!Le&&bn&&(0,Oe.jsx)("div",{className:f()("title no-title",{"title-cursor":ko},Me),ref:this.setElemRef,onMouseDown:this.handleRectResize,onMouseEnter:this.handleChangeCursor,onMouseLeave:this.handleChangeCursor}),(0,Oe.jsx)("input",{type:"text",value:_t(Zn),placeholder:ye,ref:this.setInputRef,disabled:Bo,onChange:this.onChange,onKeyDown:this.onKeyDown,onKeyUp:this.handleAfterChangeValue,onFocus:this.onFocus}),ze&&(0,Oe.jsx)("span",{className:"suffix",style:Ro,"data-value":_t(Zn),"data-suffix":ze,children:(0,Oe.jsx)("span",{children:ze})}),ln&&(0,Oe.jsx)(Za,{hasMenu:Ho,isDisabled:Fo,onToggleMenu:this.toggleMenu,onStep:this.onStep,onRelease:this.onRelease}),Ho&&eo&&(0,Oe.jsx)(In,{isOpen:eo,menuClassName:"SelectNumberMenu",$select:this.$label,optionList:It,value:Zn,onChange:this.onSelect,onClose:this.closeMenu}),so&&(0,Oe.jsx)(l.A,{target:document,onMouseDown:(0,l.t)(this.onClickOutside,{capture:!0})}),(0,Oe.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:Le,isDisabled:Me,onRelease:ze}=ne;return(0,Oe.jsx)(Oe.Fragment,{children:ae?(0,Oe.jsx)("div",{className:"action caret",children:(0,Oe.jsx)(ua,{type:"text",tabIndex:"-1",onClick:ye})}):(0,Oe.jsxs)("div",{className:"action",children:[(0,Oe.jsx)(ua,{type:"text",tabIndex:"-1","data-action":"up",isDisabled:Me,onMouseDown:Le,onMouseLeave:ze,onMouseUp:ze,children:pc}),(0,Oe.jsx)(ua,{type:"text",tabIndex:"-1","data-action":"down",isDisabled:Me,onMouseDown:Le,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,Le=ye.dataset.face,Me=Number(this._correctInput(ye.value));this.setState({[Le]:Me})}),(0,n.A)(this,"validate",(ae,ye)=>{const Le=this.props.colorInputOption==="HSB"?uc[ae]:255;return ye===""||Number(ye)>Le?(this._invalidFace=ae,!1):(this._invalidFace="",!0)}),(0,n.A)(this,"emitChange",()=>{if(!this._changedMannually)return;const{r:ae,g:ye,b:Le,h:Me,s:ze,v:_t}=this.state;if(this.props.colorInputOption==="HSB"){const It=d.Q1.hsv2rgb({h:Me/360,s:ze/100,v:_t/100});this.props.onRgbaChange(It)}else this.props.onRgbaChange({r:ae,g:ye,b:Le})}),(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,Le=ye.dataset.face;Le===this._invalidFace?this.setState({[Le]:this._originalValueOfInput}):(this._originalValueOfInput=this.state[Le],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:Le,b:Me}=d.Q1.hex2rgb(ae),{onHexChange:ze}=this.props,{a:_t}=this.state;ze({color:[ye/255,Le/255,Me/255,_t]}),this.rgbaInputCancel()}),(0,n.A)(this,"handleCssSubmit",ae=>{ae.preventDefault();const{onRgbaChange:ye}=this.props,{cssStr:Le}=this.state,Me=Le.match(/rgba?\(\s*([\w.+]+)\s*,\s*([\w.+]+)\s*,\s*([\w.+]+)\s*(?:,\s*([\w%.+]+)\s*)?\)/);if(Me){const ze=Math.min(Math.max(+Me[1],0),255),_t=Math.min(Math.max(+Me[2],0),255),It=Math.min(Math.max(+Me[3],0),255);let Et=Number(Me[4]);Et=isNaN(Et)?1:Math.max(Math.min(Et,1),0),ye({r:ze,g:_t,b:It,a:Et})}else{const[ze,_t,It,Et]=this.props.color;this.setState({cssStr:"rgba("+Math.round(ze)+", "+Math.round(_t)+", "+Math.round(It)+", "+Et+")"})}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[Le,Me,ze,_t]=ae.color;let It={r:Le,g:Me,b:ze,a:_t,cssStr:"rgba("+Math.round(Le)+", "+Math.round(Me)+", "+Math.round(ze)+", "+_t+")",prevHexFromProps:ae.color};if(ae.colorInputOption==="HSB"){const{h:Et,s:Vt,v:on}=d.Q1.rgb2hsv({r:Le,g:Me,b:ze});It={...It,h:Et*360,s:Vt*100,v:on*100}}return It}else return null}render(){const{colorInputOption:ae,onHexChange:ye,onChangeInputType:Le,onAlphaChange:Me}=this.props,{r:ze,g:_t,b:It,a:Et,cssStr:Vt,h:on,s:tn,v:ln,isRgbaInputActive:bn,isRectResize:Zn}=this.state;return(0,Oe.jsxs)(_l,{children:[(0,Oe.jsx)(Jt,{width:80,selectWidth:60,optionList:wl,value:ae,onChange:Le}),ae==="HEX"&&(0,Oe.jsxs)("div",{className:"hex-input-wp "+(bn?"is-active":"")+" "+(Zn?"is-rect-resize":"")+" color-input-wp",children:[(0,Oe.jsx)(Sl.A,{hexValue:d.Q1.toHexAndAlpha([ze/255,_t/255,It/255,Et])[0].substring(1),className:"bgColorText",handleChange:this.handleHexChange,onFocus:this.rgbaInputActive,onBlur:this.handleBlur}),(0,Oe.jsx)(ci,{className:"input-with-no-title hex-a-input",min:0,max:100,suffix:"%",showCursorResize:!0,value:Et*100,onChange:Me,onConfirm:Me,onFocus:this.rgbaInputActive,onRectResize:this.handleRectResize,onBlur:this.rgbaInputCancel})]}),ae==="RGB"&&(0,Oe.jsxs)("div",{className:"rgba-input-wp "+(bn?"is-active":"")+" "+(Zn?"is-rect-resize":"")+" color-input-wp",children:[(0,Oe.jsx)("input",{type:"text",value:Math.round(ze),"data-face":"r",onChange:this.handleChange,onKeyUp:this.handleEnter,onFocus:this.rgbaInputActive,onBlur:this.handleBlur}),(0,Oe.jsx)("input",{type:"text",value:Math.round(_t),"data-face":"g",onChange:this.handleChange,onKeyUp:this.handleEnter,onFocus:this.rgbaInputActive,onBlur:this.handleBlur}),(0,Oe.jsx)("input",{type:"text",value:Math.round(It),"data-face":"b",onChange:this.handleChange,onKeyUp:this.handleEnter,onFocus:this.rgbaInputActive,onBlur:this.handleBlur}),(0,Oe.jsx)(ci,{className:"input-with-no-title rgba-a-input",min:0,max:100,suffix:"%",showCursorResize:!0,value:Et*100,onChange:Me,onConfirm:Me,onFocus:this.rgbaInputActive,onRectResize:this.handleRectResize,onBlur:this.rgbaInputCancel})]}),ae==="CSS"&&(0,Oe.jsx)("div",{className:(bn?"is-active":"")+" color-input-wp",children:(0,Oe.jsx)("input",{type:"text",value:Vt,onChange:this.handleCssInput,onKeyUp:this.handleCssEnter,onFocus:this.rgbaInputActive,onBlur:this.handleCssSubmit,className:"css-input"})}),ae==="HSB"&&(0,Oe.jsxs)("div",{className:"rgba-input-wp "+(bn?"is-active":"")+" "+(Zn?"is-rect-resize":"")+" color-input-wp",children:[(0,Oe.jsx)("input",{type:"text",value:Math.round(on),"data-face":"h",onChange:this.handleChange,onKeyUp:this.handleEnter,onFocus:this.rgbaInputActive,onBlur:this.handleBlur}),(0,Oe.jsx)("input",{type:"text",value:Math.round(tn),"data-face":"s",onChange:this.handleChange,onKeyUp:this.handleEnter,onFocus:this.rgbaInputActive,onBlur:this.handleBlur}),(0,Oe.jsx)("input",{type:"text",value:Math.round(ln),"data-face":"v",onChange:this.handleChange,onKeyUp:this.handleEnter,onFocus:this.rgbaInputActive,onBlur:this.handleBlur}),(0,Oe.jsx)(ci,{className:"input-with-no-title rgba-a-input",min:0,max:100,suffix:"%",showCursorResize:!0,value:Et*100,onChange:Me,onConfirm:Me,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,Le,Me){Me===void 0&&(Me=!1);const{color:ze,onChangeColor:_t}=ae.props,It={...ze,colors:ye,stops:Le};_t(It,Me)}),(0,n.A)(this,"addPoint",ye=>{const{color:Le,onActivePointChange:Me,onMouseDownCallback:ze,onMouseUpCallback:_t}=this.props,{colors:It,stops:Et}=Le;if(Et.length>=128){alert(po("helper.color_breakpoint_tips"));return}const{left:Vt,width:on}=this.operateBar.current.getBoundingClientRect(),tn=ye.clientX,bn=[...Et.map(Ro=>Vt+on*Ro),tn].sort((Ro,Bo)=>Ro-Bo),Zn=bn.map(Ro=>(Ro-Vt)/on),so=bn.findIndex(Ro=>Ro===tn);let eo=[...It];if(so===0)eo=[eo[0],...It];else if(so===eo.length)eo=[...It,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,Zn),Me(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),_t()};document.addEventListener("mousemove",Co),document.addEventListener("mouseup",ko)}),(0,n.A)(this,"handleMouseDown",ye=>{Tn(ye);const{onActivePointChange:Le,activeIndex:Me,onMouseDownCallback:ze,onMouseUpCallback:_t}=this.props,{index:It}=ye.target.dataset;if(Le(+It),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],Zn=[...ln];bn.splice(Me,0,tn[Me]),Zn.splice(Me,0,ln[Me]),this.onColorListChange(bn,Zn),Le(Me+1)}ze();const Et=on=>{const{activeIndex:tn}=this.props,{prevPoint:ln,prevIndex:bn}=this.state,Zn=on.pageX,so=this.operateBar.current,eo=so.getBoundingClientRect().left,Co=so.clientWidth;let ko;if(Zn-eo<0?ko=0:Zn-eo>Co?ko=1:ko=+((Zn-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",Et),document.removeEventListener("mouseup",Vt),_t()};document.addEventListener("mousemove",Et),document.addEventListener("mouseup",Vt)}),(0,n.A)(this,"reverseGradient",()=>{const{color:ye}=this.props,{colors:Le,stops:Me}=ye,ze=[...Le].reverse();this.onColorListChange(ze,Me)}),(0,n.A)(this,"rotate90Gradient",()=>{const{color:ye,onChangeColor:Le,widgetProps:Me}=this.props,{w:ze,h:_t}=Me;let It=ye;if(ye.type===d.LA.LinearGradient){const Et=d.dL.parse(ye),Vt={x:ze*Et.x,y:_t*Et.y},on=Et.translate({x:-Et.x,y:-Et.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:Zn,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,_t)));It={...ye,x:ko,y:Ro,complex:{a:Zn,b:so,c:eo,d:Co}}}else if(ye.type===d.LA.RadialGradient){const Et=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:Zn,y:so,complex:eo}=ye,Co=d.dL.parse({x:Zn,y:so,complex:eo}).scale(ze,_t);tn=Co.apply(Et);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/_t));It={...ye,...rs}}Le(It)})}render(){const{color:ae,activeIndex:ye,widgetProps:Le}=this.props,{colors:Me,stops:ze}=ae,_t=(0,Qn.Ez)(Me,ze),It=(0,Qn.zS)(ae),Et=(0,Qn.Ez)(It.colors,It.stops);return(0,Oe.jsxs)(Il,{children:[(0,Oe.jsxs)("div",{className:"operate-bar",ref:this.operateBar,onMouseDown:this.addPoint,children:[(0,Oe.jsxs)("svg",{height:"100%",className:"backSvg",children:[(0,Oe.jsx)("defs",{children:(0,Oe.jsx)("linearGradient",{id:"Gradient",x1:"0",x2:"1",y1:"1",y2:"1",children:Et.map((Vt,on)=>(0,Oe.jsx)("stop",{stopColor:Vt.hex,stopOpacity:Vt.alpha,offset:Vt.point},on))})}),(0,Oe.jsx)("rect",{width:"100%",height:12,fill:"url(#Gradient)"})]}),(0,Oe.jsx)("div",{className:"rail",children:_t.map((Vt,on)=>(0,Oe.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,Oe.jsx)("div",{className:"gradient-btns",children:(0,Oe.jsx)(Ut,{content:po("components.reverse_gradient"),direction:"down",children:(0,Oe.jsx)("div",{className:"icon",onClick:this.reverseGradient,children:Ct})})})]})}}class Xa extends r.PureComponent{render(){const{point:ae,zIndex:ye,index:Le,className:Me,handleMouseDown:ze,handleKeyDown:_t,activeIndex:It,hex:Et}=this.props;return(0,Oe.jsx)("div",{"data-index":Le,tabIndex:It===Le?0:Le+1,className:Me,style:{left:"calc("+ae+"%)",backgroundColor:Et,zIndex:ye},onKeyDown:_t,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:Le}=this.props;Le({...ye,src:ae})}),(0,n.A)(this,"changeObjectFit",ae=>{const{color:ye,onChange:Le}=this.props;Le({...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,Le=(((ae=this.$upload.current)==null?void 0:ae.files)||[])[0];if(!(!Le||!window.FileReader)&&/^image/.test(Le.type)){const Me=await ye([Le])||[];Me[0]&&this.onChangePicture(Me[0].image)}})}render(){const{color:{src:ae,scale:ye}}=this.props,Le={transform:"scale("+d.wp[ye]+")"};return(0,Oe.jsxs)(Al,{children:[(0,Oe.jsx)("div",{className:"toolbar",children:(0,Oe.jsx)(Jt,{optionList:gc.map(Me=>({...Me,label:po("components."+Me.label)})),value:ye,width:90,onChange:this.changeObjectFit})}),(0,Oe.jsxs)("div",{className:"image-wp",children:[(0,Oe.jsx)("img",{src:ae,alt:po("shortcuts.image"),style:Le}),(0,Oe.jsxs)("div",{className:"mask",onClick:this.addPicture,children:[(0,Oe.jsx)("span",{children:po("components.chooseImage")}),(0,Oe.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 Le=Me=>{ae(Me)};return(0,Oe.jsxs)(Ll,{children:[(0,Oe.jsx)("div",{style:{marginRight:0},className:f()("draw-tab",{selected:ye===0}),onClick:()=>Le(0),children:rn}),(0,Oe.jsx)("div",{className:f()("color-tab",{selected:ye===1}),onClick:()=>Le(1),children:Dn})]})},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:Le,isEyedropperOpen:Me,onChange:ze,toggleColorPicker:_t,isFocus:It}=ne;const[Et,Vt]=(0,r.useState)(-1),[on,tn,ln]=Le,{s:bn,v:Zn,h:so}=d.Q1.rgb2hsv({r:on,g:tn,b:ln}),eo=(0,r.useRef)(null),Co=Lo=>{const[Go,ts,Qo]=Le;return{left:Lo*100+"%",backgroundColor:"rgba("+Go+", "+ts+", "+Qo+", "+Lo+")"}},[,,,ko]=Le,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);Le[3]=Go;const ts=Xo=>{if(Xo.stopPropagation(),Xo.stopImmediatePropagation(),Xo.preventDefault(),!eo.current)return;const{a:rs}=Fo(Xo.clientX);Le[3]=rs,ze({color:Le},!0)},Qo=Xo=>{if(!eo.current)return;const{a:rs}=Fo(Xo.clientX);Le[3]=rs,ze({color:Le},!1),document.removeEventListener("mousemove",ts),document.removeEventListener("mouseup",Qo)};document.addEventListener("mousemove",ts),document.addEventListener("mouseup",Qo)};return(0,Oe.jsxs)(fc,{children:[(0,Oe.jsx)("div",{className:"divider"}),(0,Oe.jsx)("div",{className:"colors-container padding-15",children:Nl.map((Lo,Go)=>(0,Oe.jsx)($a,{className:Et===Go&&It?"is-active":"",color:Lo,onClick:()=>Bo(Go,Lo)},Lo))}),(0,Oe.jsx)("div",{className:"divider"}),(0,Oe.jsx)("div",{className:"row padding-15",children:(0,Oe.jsxs)("div",{className:"h-a-bands",children:[(0,Oe.jsx)(Ut,{content:"\u53D6\u8272\u5668",hotKey:"I",direction:"down",hangingTime:"1000",children:(0,Oe.jsx)("div",{className:f()("outside-color-picker-btn",{"color-picker-enabled":ye},{"is-close":!Me}),onClick:_t,children:Me?(0,Oe.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",children:[(0,Oe.jsx)("rect",{width:"24",height:"24",rx:"4",fill:"#0077FF","fill-opacity":"0.15"}),(0,Oe.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,Oe.jsxs)("div",{className:"a-band",onMouseDown:Ho,children:[(0,Oe.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:Zn}),a:1})+" 100%)"}}),(0,Oe.jsx)("div",{className:"rail",ref:eo,children:(0,Oe.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(","),Le=ye.length;return Le>3&&+ye[Le-1].replace(")","")!=1}),(0,n.A)(this,"handleSelect",(ae,ye,Le)=>{const{currentSelect:Me}=this.props;this.setState({index:Le}),ae.button===2&&Me==="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:Le}=this.state,[Me,ze=1]=ae.split("&"),_t=f()("current-palette-color-li gradient-bg",{transparent:ae==="transparent"},{"is-active":Le===ye&&this.props.isFocus});return(0,Oe.jsx)("li",{className:_t,onMouseDown:It=>this.handleSelect(It,ae,ye),children:(0,Oe.jsx)("div",{className:"color-box",style:{backgroundColor:Me,opacity:Number(ze)}})})}),(0,n.A)(this,"getGradientColor",(ae,ye)=>{const{index:Le}=this.state,Me=f()("current-palette-color-li gradient-bg",{"is-active":Le===ye&&this.props.isFocus});return(0,Oe.jsx)("li",{className:Me,onMouseDown:ze=>this.handleSelect(ze,ae,ye),children:(0,Oe.jsx)(Re,{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:Le}=this.state,{colors:Me}=ae.find(ze=>ze.key==="history")||{};return(0,Oe.jsxs)("div",{className:"panel-color-list",style:{paddingBottom:0},children:[(0,Oe.jsx)("header",{className:f()({"is-alone":!Le}),children:(0,Oe.jsx)("span",{children:po("popup.colorPanel.history")})}),Le&&(0,Oe.jsx)("ul",{className:f()("current-palette",{"color-palette-list":Me&&Me.length>0}),children:Me&&Me.length>0?Me.map((ze,_t)=>(0,Oe.jsx)("div",{className:"current-palette-color "+(this.getOpacityPerc(ze)?"current-palette-color-imagback":""),children:typeof ze=="string"?this.getSolidColor(ze,_t):this.getGradientColor(ze,_t)},_t)):(0,Oe.jsxs)("div",{className:"block",children:[(0,Oe.jsx)("div",{className:"placeholder-icon"}),ye==="favorite"&&(0,Oe.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,Le;super(ae),(0,n.A)(this,"outsideListener",Me=>(this.handleHexChange({color:Me}),[])),(0,n.A)(this,"handleToggleExpand",()=>{this.setState({isClickExpand:!this.state.isClickExpand},()=>{this.props.applyDidMountSideEffect(this.$container.current)})}),(0,n.A)(this,"handleColorChangeFromExternal",(Me,ze,_t)=>{const{color:It,isSolidColorOnly:Et,colorType:Vt,activeIndex:on,onChangeColor:tn,onChangeGradientMode:ln}=this.props;if(this.setState({focusingTab:_t}),typeof Me=="string"){const[bn,Zn=this.currentColor[3]]=Me.split("&"),so=Number(Zn),{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=[...It.colors];Fo[on]=d.Q1.rgb255a(eo,Co,ko,Ro),Bo={...It,colors:Fo}}else Bo={type:d.LA.Solid,v:!0,blend:It.blend,color:d.Q1.rgb255a(eo,Co,ko,Ro)};tn(Bo,!1,ze)}else{let bn=Me;Vt!==Me.type&&(Et?bn={type:d.LA.Solid,v:Me.v,blend:Me.blend,color:Me.colors[0]}:ln(Me.type)),tn(bn,!1,ze)}}),(0,n.A)(this,"handleRgbChange",Me=>{let{r:ze,g:_t,b:It,a:Et}=Me;this.hsvChange({color:[ze,_t,It,Et!=null?Et:this.currentColor[3]]})}),(0,n.A)(this,"handleHexChange",(Me,ze)=>{let{color:_t}=Me;const{color:It,onChangeColor:Et,colorType:Vt,activeIndex:on}=this.props;let tn;if(Vt===d.LA.Solid)tn={...It,color:_t};else{const ln=[...It.colors];ln[on]=_t,tn={...It,colors:ln}}Et(tn,ze,this.state.currentTab===1?po("popup.colorPanel.colorChart"):po("popup.colorPanel.colorSpace"))}),(0,n.A)(this,"hsvChange",(Me,ze)=>{let{color:_t}=Me;const{color:It,activeIndex:Et,colorType:Vt,onChangeColor:on}=this.props,[tn,ln,bn,Zn]=_t,so=Zn>1?Zn/100:Zn,eo=d.Q1.rgb255a(tn,ln,bn,so);if(Vt===d.LA.Solid){const Co={...It,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=[...It.colors];Co[Et]=eo;const ko={...It,colors:Co};on(ko,ze,this.state.currentTab===1?po("popup.colorPanel.colorChart"):po("popup.colorPanel.colorSpace"))}}),(0,n.A)(this,"isShowGradientBarChange",Me=>{const{onChangeGradientMode:ze}=this.props,{cachedMode:_t}=this.state;this.setState({isShowGradientBar:Me}),ze(Me?_t||d.LA.LinearGradient:d.LA.Solid)}),(0,n.A)(this,"gradientModeChange",Me=>{const{onChangeGradientMode:ze,onChangeActiveIndex:_t}=this.props,It=Number(Me.currentTarget.dataset.value);this.setState({cachedMode:It}),_t(0),ze(It)}),(0,n.A)(this,"handleAlphaChange",(Me,ze,_t,It)=>{const Et=[...this.currentColor];Et[3]=Me*.01,this.hsvChange({color:Et},It)}),(0,n.A)(this,"handleBlendModeChange",Me=>{this.props.onChangeColor({...this.props.color,blend:Number(Me)},!1,"blendMode")}),(0,n.A)(this,"handleAddToFavorite",()=>{const{colorType:Me,onAddToFavorite:ze,color:_t}=this.props;if(Me===d.LA.Solid){const[It,Et,Vt,on]=this.currentColor;let tn=d.Q1.rgb2hex({r:It,g:Et,b:Vt});tn=tn.length>7?tn.slice(0,7):tn,ze(tn+"&"+on)}else(Me===d.LA.LinearGradient||Me===d.LA.RadialGradient)&&ze(_t)}),(0,n.A)(this,"handleChangeTab",Me=>{this.setState({currentTab:Me}),this.props.onChangeTab&&this.props.onChangeTab(Me)}),(0,n.A)(this,"handleChangeActiveTab",Me=>{this.setState({activeTab:Me})}),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:(Le=ae.defaultTab)!=null?Le: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:Le,onChangeActiveIndex:Me}=this.props;if((0,Qn.NT)(Le)){const ze=ae.colors.length,_t=ye===ze?ze-1:ye;ye===ze&&Me(_t)}}componentWillUnmount(){if(this.props.colorType!==d.LA.Image){const ae=[...this.currentColor],[ye,Le,Me,ze]=ae;this.props.applyWillUnmountSideEffect(d.Q1.rgb2hex({r:ye,g:Le,b:Me})+"&"+ze)}this.props.setInteraction({colorPickerListener:null})}get currentColor(){const{color:ae,activeIndex:ye,colorType:Le}=this.props;if(Le===d.LA.Image)return ae;let Me=Le===d.LA.Solid?ae.color:ae.colors[ye]||ae.colors.at(-1);const[ze,_t,It,Et]=Me;return Me=[Math.round(ze*255),Math.round(_t*255),Math.round(It*255),Et],Me}render(){const{themeColor:ae,color:ye,onClose:Le,colorPanelList:Me,colorType:ze,onDragStart:_t,onChangeSelect:It,currentSelect:Et,onChangeColor:Vt,onChangeActiveIndex:on,activeIndex:tn,colorInputOption:ln,onChangeInputType:bn,onDeleteFavorite:Zn,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?Me.filter(ts):Me;return(0,Oe.jsxs)(Ol,{className:f()("--mb--color-picker",{"color-current-tab":vs===1}),ref:this.$container,onMouseDown:Tn,onClick:Tn,children:[(0,Oe.jsx)("header",{className:"color-picker-header",onMouseDown:_t,children:(0,Oe.jsxs)("div",{className:"header",children:[(0,Oe.jsxs)("div",{className:"header-left",children:[(0,Oe.jsx)("span",{className:cs==="color"?"active tab-name":"tab-name",onClick:()=>this.handleChangeActiveTab("color"),children:"\u989C\u8272"}),Lo&&(0,Oe.jsx)("span",{className:cs==="lib"?"active tab-name":"tab-name",onClick:()=>this.handleChangeActiveTab("lib"),children:"\u8D44\u6E90\u5E93"})]}),(0,Oe.jsx)("div",{className:f()("header-right",cs),children:(0,Oe.jsxs)("div",{className:"header-btn",children:[cs==="lib"&&Go&&(0,Oe.jsx)(Pi.A,{content:po("settingPanel.createColorRef"),position:"bottom",children:(0,Oe.jsx)("div",{className:"icon createColorRef",onMouseDown:()=>rs(!0),children:mo})}),!Fo&&(0,Oe.jsxs)("div",{className:"icon",children:[ye.blend===d.Nx.Normal?Zt:Ft,(0,Oe.jsx)(Jt,{optionList:El(Ml),value:ye.blend,isShowButton:!1,width:160,onChange:this.handleBlendModeChange})]}),Ro&&!ko&&(0,Oe.jsx)(Pi.A,{content:po("common.resetColor"),position:"bottom",children:(0,Oe.jsx)("div",{className:"icon",onClick:Ro,children:Gt})}),Le&&(0,Oe.jsx)(Pi.A,{content:po("common.close"),position:"bottom",children:(0,Oe.jsx)("div",{className:"icon close-icon",onClick:Le,children:ro})})]})})]})}),(0,Oe.jsxs)("div",{className:"color-picker-body",children:[cs==="color"&&(0,Oe.jsxs)(Oe.Fragment,{children:[ze===d.LA.Image&&(0,Oe.jsx)(Pl,{color:ye,createAssetFromFiles:Ho,onChange:Vt}),ze!==d.LA.Image&&(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsxs)("div",{className:"tab-line padding-15",children:[(0,Oe.jsxs)("div",{className:"header-text",children:[(0,Oe.jsx)("div",{className:"header-icon","data-value":d.LA.Solid,onClick:this.gradientModeChange,children:(0,Oe.jsx)(Pi.A,{content:po("components.solidFill"),position:"bottom",children:mt(ze===d.LA.Solid,ae)})}),!Bo&&(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)("div",{className:"header-icon","data-value":d.LA.LinearGradient,onClick:this.gradientModeChange,children:(0,Oe.jsx)(Pi.A,{content:po("settingPanel.linearGradient"),position:"bottom",children:xt(ze===d.LA.LinearGradient,ae)})}),(0,Oe.jsx)("div",{className:"header-icon","data-value":d.LA.RadialGradient,onClick:this.gradientModeChange,children:(0,Oe.jsx)(Pi.A,{content:po("settingPanel.radialGradient"),position:"bottom",children:gt(ze===d.LA.RadialGradient,ae)})}),Ho&&(0,Oe.jsx)("div",{className:"header-icon","data-value":d.LA.Image,onClick:this.gradientModeChange,children:(0,Oe.jsx)(Pi.A,{content:po("settingPanel.imageFill"),position:"bottom",children:wt(ze===d.LA.Image)})})]})]}),(0,Oe.jsx)(mc,{currentTab:vs,onChangeTab:this.handleChangeTab})]}),(0,Oe.jsx)("div",{className:"divider"})]}),(0,Qn.NT)(ze)&&(0,Oe.jsx)(Oe.Fragment,{children:(0,Oe.jsx)(Tl,{color:ye,widgetProps:eo,activeIndex:tn,onActivePointChange:on,onChangeColor:Vt,onMouseDownCallback:Qo,onMouseUpCallback:Xo})}),(0,Oe.jsxs)(Oe.Fragment,{children:[ze!==d.LA.Image&&(0,Oe.jsxs)(Oe.Fragment,{children:[vs===0&&(0,Oe.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,Oe.jsx)(Dl,{color:ms,onChange:this.hsvChange,colorPickerEnabled:so,isEyedropperOpen:Co,toggleColorPicker:this.props.toggleColorPicker,onChangeSelect:this.handleColorChangeFromExternal,isFocus:this.state.focusingTab===2}),(0,Oe.jsx)("div",{className:"input-section padding-15",children:(0,Oe.jsx)(Ya,{color:ms,colorInputOption:ln,onHexChange:this.handleHexChange,onRgbaChange:this.handleRgbChange,onChangeInputType:bn,onAlphaChange:this.handleAlphaChange})})]}),ze!==d.LA.Image&&(0,Oe.jsxs)("div",{className:"padding-15",children:[(0,Oe.jsx)("div",{className:"divider"}),(0,Oe.jsx)(kl,{colorPanelList:Me,currentSelect:Et,onChangeSelect:It,onToggleExpand:this.handleToggleExpand,onAddToFavorite:this.handleAddToFavorite,onDeleteFavorite:Zn,handleSelect:this.handleColorChangeFromExternal,isFocus:this.state.focusingTab===0}),(0,Oe.jsx)(Sn,{colorPanelList:Cs,currentSelect:Et,onChangeSelect:It,onToggleExpand:this.handleToggleExpand,onAddToFavorite:this.handleAddToFavorite,onDeleteFavorite:Zn,handleSelect:this.handleColorChangeFromExternal,isFocus:this.state.focusingTab===1,isShowColorList:this.props.isShowColorList,onChangeShowColorList:this.props.onChangeShowColorList})]})]})]}),cs==="lib"&&this.props.children]}),(0,Oe.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:Le}=ae;return(0,Oe.jsx)("div",{style:{position:"absolute",top:ye,left:Le},children:(0,Oe.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:Le,screenOffset:Me,onChangePosition:ze,contextTransform:_t=new d.hP,onMouseDownCallback:It,onMouseUpCallback:Et}=this.props,{transform:Vt,rect:{w:on,h:tn}}=Le,{complex:ln,x:bn,y:Zn,type:so}=ye,eo=Vt.clone().prepend(_t),Co=eo.clone().append(d.dL.parse({x:bn,y:Zn,complex:ln}).scale(on,tn)),{tl:ko,tr:Ro,bl:Bo,br:Fo}=d.a$.fromRect(d.oi.axisAligned(d.oi.prepend(_t,Le))),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;It();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+Me.x,Xo.clientY),Lo)),bs.y===Os.y&&(rs=d.ZY.subtract(d.ZY.xy(Xo.clientX,bs.y+Me.y),Lo))}else if(cs.length>1){const bs=d.ZY.getIntersect(cs[0],cs[1]);rs=d.ZY.subtract(d.ZY.add(bs,Me),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),Et()};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:Le,onChangeActiveIndex:Me,onMouseDownCallback:ze,onMouseUpCallback:_t}=this.props,{colors:It,stops:Et}=ye;if(Et.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:Zn}=(0,Qn.rk)(Et,It,tn),so={...ye,colors:ln,stops:bn};Le(so),Me(Zn);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},Le(eo,!0)},Ro=()=>{var Bo;Co&&Le(eo,!1),(Bo=this.removeEventListeners)==null||Bo.call(this),_t()};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:Le,stops:Me}=ye,ze=(0,Qn.fC)(ae.pageX,ae.pageY,this.$circle1,this.$circle2)/100,{nextColors:_t,nextStops:It,index:Et}=(0,Qn.rk)(Me,Le,ze);this.setState({hoverColor:_t[Et],hoverStop:It[Et]})}),(0,n.A)(this,"addPointLeave",()=>{this.setState({hoverColor:null,hoverStop:null})}),(0,n.A)(this,"handleMouseDown",ae=>{Tn(ae);const{color:ye,onChangeGradient:Le,onChangeActiveIndex:Me,onMouseDownCallback:ze,onMouseUpCallback:_t}=this.props,{stops:It}=ye,{number:Et}=ae.target.dataset;Me(+Et);let Vt,on=!1;ze();const tn=bn=>{on=!0;const Zn=bn.pageX,so=bn.pageY,eo=(0,Qn.fC)(Zn,so,this.$circle1,this.$circle2),Co=[...It];Co[Et]=eo/100,Vt={...ye,stops:Co},Le(Vt,!0)},ln=()=>{var bn;on&&Le(Vt,!1),(bn=this.removeEventListeners)==null||bn.call(this),_t()};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:Le},boundingBox:Me,onClose:ze,containerEle:_t,contextTransform:It=new d.hP}=this.props,{hoverColor:Et,hoverStop:Vt,alignmentLines:on}=this.state,{colors:tn,stops:ln,complex:bn,x:Zn,y:so,type:eo}=ye,{w:Co,h:ko,x:Ro,y:Bo}=Me.rect,Fo=Me.transform.clone().prepend(It).translate(d.ZY.xy(Ro*Le,Bo*Le)),Ho=d.dL.parse({x:Zn,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,Oe.jsx)(Bl,{onDoubleClick:ze,children:(0,Oe.jsx)("div",{className:"gradient-control-bar",children:(0,Oe.jsxs)("svg",{className:"backSvg",children:[(0,Oe.jsxs)("g",{className:"hover-add",onPointerDown:this.addPoint,onPointerMove:this.addPointHover,onPointerLeave:this.addPointLeave,children:[(0,Oe.jsx)("line",{x1:Lo,x2:ts,y1:Go,y2:Qo,stroke:"#fff",strokeWidth:1}),(0,Oe.jsx)("line",{x1:Lo,x2:ts,y1:Go,y2:Qo,stroke:"transparent",strokeWidth:8}),(0,Oe.jsx)(qa,{color:Et,stop:Vt,angle:cs,boundingBoxTransform:Fo,colorTransform:Ho})]}),(0,Oe.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,Oe.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,Oe.jsx)(Ja,{x:ms,y:Cs,color:Is,angle:cs,index:ls,active:ae===ls,onActivePoint:this.handleMouseDown},ls)}),eo!==d.LA.LinearGradient&&(0,Oe.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,Oe.jsx)("line",{x1:Cs.x,x2:ls.x,y1:Cs.y,y2:ls.y,stroke:"#ff0000",strokeWidth:1},ms)})]})})}),_t)}}const Wl=(ne,ae,ye,Le)=>180-Math.atan2(ne-ye,ae-Le)*180/Math.PI,ma=(0,Oe.jsxs)("g",{fill:"#d7d7d7",transform:"translate(10, 2)",children:[(0,Oe.jsx)("rect",{x:"0",y:"4",width:"4",height:"4"}),(0,Oe.jsx)("rect",{x:"8",y:"4",width:"4",height:"4"}),(0,Oe.jsx)("rect",{x:"4",y:"8",width:"4",height:"4"}),(0,Oe.jsx)("rect",{x:"0",y:"12",width:"4",height:"4"}),(0,Oe.jsx)("rect",{x:"8",y:"12",width:"4",height:"4"})]}),Ja=(0,r.memo)(ne=>{let{x:ae,y:ye,color:Le,index:Me,angle:ze,active:_t,onActivePoint:It}=ne;const[Et,Vt,on,tn]=Le,ln="rgba("+Et*255+", "+Vt*255+", "+on*255+", "+tn+")";return(0,Oe.jsxs)("g",{className:"color-stop",transform:"translate("+(ae+ks)+", "+(ye-ks*2)+") rotate("+ze+" -6 "+ks*2+")",children:[(0,Oe.jsx)("path",{fill:_t?"#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,Oe.jsx)("circle",{cx:16,cy:12,r:9,fill:"#fff",strokeWidth:1,stroke:"#fff"}),ma,(0,Oe.jsx)("circle",{cx:16,cy:12,r:8,fill:ln,strokeWidth:2,stroke:"rgba(0, 0, 0, 0.16)","data-number":Me,onPointerDown:It})]})});Ja.displayName="ControlBarOptimize";const qa=(0,r.memo)(ne=>{let{color:ae,stop:ye,angle:Le,boundingBoxTransform:Me,colorTransform:ze}=ne;if(!ae||!ye)return null;const[_t,It,Et,Vt]=ae,on="rgba("+_t*255+", "+It*255+", "+Et*255+", "+Vt+")",{x:tn,y:ln}=Me.apply(ze.apply({x:ye,y:0}));return(0,Oe.jsxs)("g",{className:"color-stop",transform:"translate("+(tn+ks)+", "+(ln-ks*2)+") rotate("+Le+" -6 "+ks*2+")",children:[(0,Oe.jsx)("circle",{cx:16,cy:12,r:12,fill:"#fff"}),ma,(0,Oe.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(36518);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(Le=>{let[Me,ze]=Le;Array.isArray(ze)?ye[Me]=ze[ae]:typeof ze=="object"?ye[Me]=$i(ze,ae):ye[Me]=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",Me=>{const{historyColors:ze}=this.props;if(!ze)return;const _t=[...ze];ze.includes(Me)?_t.splice(ze.indexOf(Me),1):_t.splice(17),_t.unshift(Me),this.props.saveColorPreference({historyColors:_t})}),(0,n.A)(this,"keepColorPickerInViewport",Me=>{const{position:ze,onPositionChanged:_t,onApplyDidMountSideEffect:It}=this.props;if(!Me)return;if(It){It(Me);return}const Et=Me.getBoundingClientRect(),{top:Vt,left:on,right:tn,bottom:ln}=Et;let bn=0,Zn=0;if(on<0&&(bn=0-on),tn>window.innerWidth&&(bn=window.innerWidth-tn),Vt<56&&(Zn=56-Vt),ln>window.innerHeight-18&&(Zn=window.innerHeight-ln-18),bn||Zn){const so={left:ze.left+bn,top:ze.top+Zn};_t(so)}}),(0,n.A)(this,"handlePanelDown",Me=>{const ze=Me.clientX,_t=Me.clientY,{position:It,onPositionChanged:Et}=this.props,{top:Vt,left:on}=It,tn=bn=>{const Zn=bn.clientX-ze,so=bn.clientY-_t,eo={left:on+Zn,top:Vt+so};Et(eo)},ln=()=>{document.removeEventListener("mousemove",tn),document.removeEventListener("mouseup",ln)};document.addEventListener("mousemove",tn),document.addEventListener("mouseup",ln)}),(0,n.A)(this,"changePosition",function(Me,ze){ze===void 0&&(ze=!1);const{colorObj:_t}=ye.props,{a:It,b:Et,c:Vt,d:on,x:tn,y:ln}=Me;ye.onChangeColor({..._t,complex:{a:It,b:Et,c:Vt,d:on},x:tn,y:ln},ze)}),(0,n.A)(this,"handleChangeSelect",Me=>{const ze=document.querySelector(".--mb--color-picker");this.props.saveColorPreference({colorDropdownOption:Me}),this.keepColorPickerInViewport(ze)}),(0,n.A)(this,"handleActiveIndex",Me=>this.setState({activeIndex:Me})),(0,n.A)(this,"handleGradientMode",async Me=>{const{colorObj:ze,attr:_t,index:It,widgetProps:Et,onColorSave:Vt}=this.props,on=(Et==null?void 0:Et.cid)||"";fa.set(on+_t+It+ze.type,ze);let tn;if(Me===d.LA.Solid?this.setInteractions(!1,2e3):this.setInteractions(!0),fa.get(on+_t+It+Me))tn=fa.get(on+_t+It+Me);else switch(Me){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",Me=>{const{favoriteColors:ze}=this.props;this.props.saveColorPreference({favoriteColors:[...ze,Me]})}),(0,n.A)(this,"deleteFavorite",Me=>{const{favoriteColors:ze}=this.props,_t=[...ze];_t.splice(Me,1),this.props.saveColorPreference({favoriteColors:_t})}),(0,n.A)(this,"handleChangeInputType",Me=>{this.props.saveColorPreference({colorInputOption:Me})}),(0,n.A)(this,"deleteStop",()=>{const{colorObj:Me,attr:ze}=this.props;if(!((0,Qn.NT)(this.colorType)&&ze))return;const{activeIndex:It}=this.state,{colors:Et,stops:Vt}=Me;if(Vt.length>2){const on=[...Vt],tn=[...Et];on.splice(It,1),tn.splice(It,1);let ln;It===0?ln=0:It===Vt.length-1?ln=It-1:ln=It;const bn={...Me,colors:tn,stops:on};this.handleActiveIndex(ln),this.onChangeColor(bn)}}),(0,n.A)(this,"moveStop",Me=>{const{colorObj:ze,attr:_t}=this.props;if(!((0,Qn.NT)(this.colorType)&&_t))return;const{activeIndex:Et}=this.state,{colors:Vt,stops:on}=ze;let tn=on[Et],ln=tn;if(Me==="ArrowUp"||Me==="ArrowLeft"?ln=tn===0?tn:tn-=.01:(Me==="ArrowDown"||Me==="ArrowRight")&&(ln=tn===1?tn:tn+=.01),ln=Number(ln.toFixed(2)),ln){const bn=[...on];bn[Et]=ln;const Zn={...ze,colors:Vt,stops:bn};this.onChangeColor(Zn)}}),(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(Me,ze,_t){ze===void 0&&(ze=!1),_t===void 0&&(_t=""),ye.props.onColorSave(Me,ze,_t),ye.setInteractions(!0),ye.colorType===d.LA.Solid&&ye.setInteractions(!1,2e3)}),this.el=document.createElement("div"),this.el.style.position="relative";const{locale:Le}=ae;us(Le)}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:Le,isDefaultColor:Me,onResetColor:ze,historyColors:_t,colorPickerEnabled:It,isEyedropperOpen:Et,favoriteColors:Vt,widgetProps:on,colorInputOption:tn,position:{top:ln,left:bn},colorObj:Zn,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(),_t,Vt),bs=(0,Qn.NT)(Ms)&&ye&&on;return(0,o.createPortal)((0,Oe.jsxs)(c.NP,{theme:{...er[Le],themeColor:ae},children:[(0,Oe.jsxs)(di,{className:"--mb--color-panel",style:{top:ln,left:bn},children:[(0,Oe.jsx)(Oi,{theme:Le,themeColor:ae,color:Zn,isDefaultColor:Me,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:It,isEyedropperOpen:Et,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,Oe.jsx)(no.NH,{sheet:this.shortcuts})]}),bs&&(0,Oe.jsx)(Mi,{containerEle:rs,color:Zn,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 Le=ae.hexValue.toUpperCase();return Le!==ye.prevHexValueFromProps?{prevHexValueFromProps:Le,hexValue:Le}:null}render(){const{className:ae,onFocus:ye}=this.props,{hexValue:Le}=this.state;return(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)("a",{className:"hex-suffix",children:"#"}),(0,Oe.jsx)("input",{className:ae,ref:this.setInputRef,value:Le,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:Le,onChange:Me}=this.props;if(ye!==d.LA.Solid)return;const{r:ze,g:_t,b:It}=d.Q1.hex2rgb(ae),Et=Le.color[3];Me({...Le,color:d.Q1.rgb255a(ze,_t,It,Et)}),this.handleInputCancel()}),(0,n.A)(this,"handleGradientOrImageAlphaChange",(ae,ye,Le,Me)=>{const{value:ze,onChange:_t}=this.props;_t({...ze,o:ae/100},Me),this.handleInputCancel()}),(0,n.A)(this,"handleSolidAlphaChange",(ae,ye,Le,Me)=>{const{type:ze,value:_t,onChange:It}=this.props;if(ze!==d.LA.Solid)return;const[Et,Vt,on]=_t.color;It({..._t,color:[Et,Vt,on,ae/100]},Me),this.handleInputCancel()}),(0,n.A)(this,"handleClick",()=>{const{attr:ae,onChangeState:ye,onSelected:Le}=this.props;Le&&Le(["",-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:Le,index:Me,className:ze,colorPanelPosOffset:_t,onChange:It,onChangeState:Et,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,Oe.jsx)(Ri,{className:ze,children:(0,Oe.jsxs)("div",{className:bn,onClick:this.handleClick,children:[(0,Oe.jsx)($e,{color:ye,attr:ae,enable:on,index:Me,onChangeState:Et,onChange:It,length:Vt,colorPanelPosOffset:_t}),Le===d.LA.Solid&&(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)(Ei,{hexValue:d.Q1.toHexAndAlpha(ye.color)[0].substring(1),className:"bgColorText",handleChange:this.handleColorChange,onFocus:this.handleInputActive,onBlur:this.handleInputCancel}),(0,Oe.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})]}),(Le===d.LA.LinearGradient||Le===d.LA.RadialGradient||Le===d.LA.AngularGradient)&&(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)("span",{className:"bgColorText gradient-text",children:po("settingPanel."+ya[Le])}),(0,Oe.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})]}),Le===d.LA.Image&&(0,Oe.jsxs)(Oe.Fragment,{children:[(0,Oe.jsx)("span",{className:"bgColorText",children:po("settingPanel.imageFill")}),(0,Oe.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:(Fe,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),w=e(72214);o.C.ICON_MAP={...o.C.ICON_MAP,...c};function u(d){return(0,w.jsx)(o.C,{...d})}},24094:(Fe,ee,e)=>{"use strict";e.d(ee,{$s:()=>u,GO:()=>_,H0:()=>i,Jr:()=>v,LY:()=>p,Ny:()=>g,Ps:()=>P,RN:()=>t,Sv:()=>l,UD:()=>s,Wu:()=>h,gB:()=>S,i7:()=>f,it:()=>C,iv:()=>w,j$:()=>b,kS:()=>a,yF:()=>y});var n=e(67787),r=e(21066),c=e(51090),o=e(75810);const w=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;}}"],I=>I.panelWidth,I=>I.panelHeight?I.panelHeight+"px":"unset",I=>I.theme.color_bg_white,I=>I.theme.color_text_L1,I=>I.theme.color_bg_border_01,I=>I.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;"],I=>I.theme.color_bg_white,I=>I.theme.color_text_L1,I=>I.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;}"],I=>I.theme.color_text_L1,I=>I.theme.color_btn_secondary_hover,I=>I.theme.color_btn_secondary_hover,I=>I.theme.color_bg_select02,I=>I.theme.color_bg_select02,I=>I.theme.color_text_disabled01,I=>I.theme.color_text_L1,I=>I.theme.color_text_disabled01,I=>I.theme.color_text_disabled01,I=>I.theme.color_text_disabled01,I=>I.theme.color_text_disabled01,I=>I.theme.color_text_disabled01),y=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,I=>I.theme.color_text_L2,I=>I.theme.color_text_disabled01,I=>I.theme.color_text_disabled01,I=>I.theme.color_bg_white,I=>I.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:",";}}"],I=>I.isTrigger?"8px":void 0,I=>I.theme.color_bg_card,I=>I.theme.color_btn_secondary_hover,I=>I.theme.color_bg_select03,I=>I.theme.color_bg_select02,I=>I.theme.color_text_L2,I=>I.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;}"],I=>I.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;}"],I=>I.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:",";}}}}}"],I=>I.theme.color_bg_border_01,I=>I.theme.color_text_L0,I=>I.theme.color_bg_white,I=>I.theme.shadow_m,I=>I.theme.color_bg_white,I=>I.theme.color_text_L0,I=>I.theme.color_text_L0,I=>I.theme.color_text_L2,I=>I.theme.color_text_L2,I=>I.theme.color_btn_secondary_hover,I=>I.theme.color_text_disabled01,I=>I.theme.color_text_disabled01,I=>I.theme.color_text_disabled01),C=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 ",";}"],I=>I.theme.color_text_L1,I=>I.theme.color_bg_border_01),v=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;}}"],I=>I.theme.color_text_L3,I=>I.theme.color_text_L2,I=>I.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;}"]),P=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;}}"]),b=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;}"],I=>(0,o.oU)(I,"color_bg_border_02"),I=>(0,o.oU)(I,"color_text_L1"),I=>(0,o.oU)(I,"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;}}}"],I=>I.theme.color_text_L2,I=>I.theme.color_bg_border_02,I=>I.theme.color_text_L1,I=>I.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;}}"]),_=(0,n.DU)(["#DRAG_SORT_EVENT_ROOT{.dragging-item{width:232px;}}"])},24374:(Fe,ee,e)=>{"use strict";e.d(ee,{C:()=>P,Y:()=>a});var n=e(38502),r=e(18381),c=e(53732),o=e.n(c),w=e(17307),u=e(63763),d=e(4410),y=e(50353),h=e(93971),i=e(70933),f=e(13846),p=e(4179),s=e(5438),l=e(72214);const C=b=>{let{type:g,rootProject:S,screenMeta:t,showDragMode:_,isAdsorbentReferenceLine:I,popupsPanelName:k,callback:j}=b;return z=>{var K,$,A;const E=(0,u.gu)({type:g,screen:t}),U=(K=document.getElementById(k))==null?void 0:K.getBoundingClientRect();(0,d.dD)({e:z,items:[E],width:($=E.width)!=null?$:E.w,height:(A=E.height)!=null?A:E.h,doNotCreateRect:U,rootProject:S,showDragMode:_,isAdsorbentReferenceLine:I,callback:j})}},v=function(b,g,S,t,_,I,k,j,z){return z===void 0&&(z=""),()=>{const K=(0,u.gu)({type:b,screen:I});(0,d.Q7)([K],K.width||K.h,K.height|K.h),(0,h.Yp)({source:""+k+h.k8.DoubleClick,widgetName:(0,h.KR)(g),groupCid:t,type:b,popupsPanelName:j,keyword:z})}},a=(0,n.memo)(b=>{var g;const{name:S,type:t,icon:_,keyIcon:I,groupCid:k,rootProject:j,screenMeta:z,showDragMode:K,isAdsorbentReferenceLine:$,popupsPanelName:A,source:E,keyword:U="",dispatch:O}=b,H=(0,r.d4)(i.wq),Q=(0,f.e1)(),N=Y=>C({type:t,rootProject:j,screenMeta:z,showDragMode:K,isAdsorbentReferenceLine:$,popupsPanelName:A,callback:()=>{(0,h.Yp)({source:""+E+h.k8.Drag,widgetName:(0,h.KR)(S),groupCid:k,type:t,popupsPanelName:A,keyword:U})}})(Y),L=Y=>{M!=null&&M.current||Q(Y,t)},V=Y=>v(t,S,O,k!=null?k:"",j,z,E,A,U)(),{isMoveAfterClick:M,isDragging:D,handleMouseDown:W,handleClick:F,handleDoubleClick:B}=(0,p.A)({onMouseDown:N,onClick:L,onDoubleClick:V});return(0,l.jsxs)(s.X,{"data-guide-id":S,className:o()("widget-item",{"deluxe-widget":(0,y.X3)(t)},{active:D||t===((H==null?void 0:H.metaType)||(H==null?void 0:H.type))}),onMouseDown:W,onClick:F,onDoubleClick:B,children:[(0,l.jsx)("div",{className:o()("widget-icon-wrapper","w_"+_),children:(0,l.jsx)(w.C,{name:"art_board/widget/"+_})}),(0,l.jsx)("span",{children:((g=I18N.w[S])==null?void 0:g.replace("Chart",""))||S}),I&&(0,l.jsx)(w.C,{className:"widget-key",name:"art_board/widget/"+_+"/"+I,isColorPure:!0})]})}),P=(0,n.memo)(b=>{const g=(0,r.d4)(i.L8),S=(0,f.e1)(),{template:t,showDragMode:_,isAdsorbentReferenceLine:I,popupsPanelName:k,dispatch:j}=b,z=Q=>{var N;const L=(N=document.getElementById(k))==null?void 0:N.getBoundingClientRect();(0,d.ow)({e:Q,template:t,doNotCreateRect:L,callback:()=>{j({type:"state-panel:set:show",payload:{key:"panelStateShow",show:!0}}),(0,h.XG)("\u5DE6\u4FA7\u5E38\u7528\u9762\u677F")},showDragMode:_,isAdsorbentReferenceLine:I})},K=Q=>{A!=null&&A.current||S(Q,t.type,t.data)},$=async Q=>{await(0,d.lc)(Q,t),j({type:"state-panel:set:show",payload:{key:"panelStateShow",show:!0}})},{isMoveAfterClick:A,isDragging:E,handleMouseDown:U,handleClick:O,handleDoubleClick:H}=(0,p.A)({onMouseDown:z,onClick:K,onDoubleClick:$});return(0,l.jsxs)(s.X,{className:o()("widget-item",{active:g===(t==null?void 0:t.data)||E}),onMouseDown:U,onClick:O,onDoubleClick:H,"data-guide-id":t.name,children:[(0,l.jsx)("div",{className:o()("widget-icon-wrapper","w_"+t.svg_icon),children:(0,l.jsx)(w.C,{name:t.icon})}),(0,l.jsx)("span",{children:t.name})]})})},24640:(Fe,ee,e)=>{"use strict";e.d(ee,{CF:()=>y,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(C=>{const v=sdkStore.getHotItem(C),a=v.sup;s[a]?s[a].cids.push(C):s[a]={gid:a,cids:[C],siblings:sdkStore.getSubHotItemList(v.sup).filter(b=>!(0,c.yT)(b.hotAttr.type))}});const l=[];return Object.entries(s).forEach(C=>{let[,v]=C;return l.push(v)}),l},w=p=>p.sort((s,l)=>s.data.zIndex-l.data.zIndex),u=p=>{const s=sdkStore.locUpRBPageKey(p[0]),l={};let C=0;sdkStore.getHotItem(p[0]).hotAttr.type!==n.x.Canvas&&(C=(0,r.ZS)(p[0])),C===0?p.forEach(a=>{const P=sdkStore.getHotItem(a),b=P.sup;l[b]?l[b].cids.push(a):l[b]={gid:b,cids:[a],siblings:sdkStore.getSubHotItemList(P.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 P=(0,r.kP)(a),b=l[P],g=(0,r.iq)(s,P);if(b)l[P].cids.push(a);else{const S=[];for(const t of g)S.push(sdkStore.getSubHotItemList(a).find(_=>_.key===t.key));l[P]={gid:P,cids:[a],siblings:S}}});const v=[];return Object.entries(l).forEach(a=>{let[,P]=a;return v.push(P)}),v},d=(p,s,l)=>{const C=JSON.parse(JSON.stringify(s)),v=(P,b)=>{for(const g of P){if(g.cid===b.sup)return g.subFolder=g.subFolder||[],g.subFolder.unshift(b),!0;if(g.subFolder&&g.subFolder.length>0&&v(g.subFolder,b))return!0}return!1};v(C,p)||C.unshift(p);const a=function(P,b){return b===void 0&&(b=0),w(P).map((S,t)=>{const _=b+t;return S.data.zIndex!==_&&(l(S.cid,{zIndex:_}),S={...S,data:{...S.data,zIndex:_}}),S.subFolder&&S.subFolder.length>0&&(S.subFolder=a(S.subFolder,_+1)),S})};return a(C)},y=(p,s,l)=>{const C=[...p,...s];return w(C.map((v,a)=>v.data.zIndex!==a?(l(v.cid,{zIndex:a}),{...v,data:{...v.data,zIndex:a}}):v))},h=p=>p.every(l=>{let{position:C}=l;return!isNaN(C)})?p.sort((l,C)=>l.position-C.position):p.sort((l,C)=>C.created_at-l.created_at),i=(p,s,l)=>{const C=[p,...s];return h(C.map((v,a)=>v.position!==a?(l(v.cid,{position:a}),{...v,position:a}):v))},f=(p,s,l)=>{const C=[p,...s];return h(C).map((a,P)=>a.position!==P?(l(a.cid,{position:P}),{...a,position:P}):a)}},25067:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>s});var n=e(95549),r=e(25582),c=e.n(r),o=e(38502),w=e(53732),u=e.n(w),d=e(17307),y=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",C=>{const{name:v,disabled:a,tempDisabled:P,onClick:b}=this.props;if(a){P&&MB.notice({text:I18N.Common.feature_is_not_available,type:"warning"});return}b&&b(v)}),(0,n.A)(this,"handleMouseDown",C=>{const{name:v,disabled:a,onMouseDown:P}=this.props;a||P&&P(C,v)}),(0,n.A)(this,"handleDoubleClick",()=>{const{name:C,disabled:v,onDoubleClick:a}=this.props;v||a&&a(C)})}render(){const{svgIconName:C,disabled:v,active:a,isShowDropDown:P,className:b,toolTipName:g,dropDownIconName:S,toolTipDistance:t,size:_,direction:I,enterHoverTime:k,isColorPure:j}=this.props;return(0,p.jsx)(y.A,{content:g,direction:I||"down",distance:t,enterHoverTime:k,children:(0,p.jsxs)(f,{className:u()(b,"toolbar-icon-item",{disabled:v,active:a,"is-dropdown":P}),onClick:this.handleClick,onMouseDown:this.handleMouseDown,onDoubleClick:this.handleDoubleClick,children:[(0,p.jsx)(d.C,{className:C.replace("/","-"),name:C,size:_,isColorPure:j}),P&&(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:(Fe,ee,e)=>{"use strict";e.d(ee,{l:()=>s});var n=e(38502),r=e(53732),c=e.n(r),o=e(62987),w=e(44421),u=e(88463),d=e(11032),y=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:C,onStartTemplates:v,onFavoriteTemplates:a,from:P,onSearch:b}=this.props,g=new y.H(C.liked_count).getDisplayStr(),S=new y.H(C.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 "+(C.is_liked?"is-actived":""),onClick:()=>a==null?void 0:a(C),children:[C.is_liked?p:f,(0,i.jsx)("span",{className:"nums",children:g})]}),(0,i.jsxs)("div",{className:"stared "+(C.is_star?"is-actived":""),onClick:()=>v==null?void 0:v(C),children:[(0,i.jsx)(o.X,{isStar:C.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:P==="template-modal"?I18N.templateModal.search_bar_placeholder:I18N.widgetModal.search_bar_placeholder,onSearch:b})]})}render(){const{showSearch:C,from:v,showStar:a=!0,resources:P,onStartTemplates:b,onBack:g,onSearch:S}=this.props,{title:t}=P,{isStar:_}=(0,d.f9)(P),I=["template-modal","icon-modal"].includes(v!=null?v:"");return(0,i.jsxs)(h.Wp,{className:c()("resources-header",v),children:[(0,i.jsx)(w.H,{title:t,resources:P,showSearch:C,onBack:g,onSearch:S,from:v}),I&&P!=null&&P.cid?this.renderModalStar():(0,i.jsx)(i.Fragment,{children:a&&(0,i.jsx)(o.X,{isStar:_,onClick:()=>b==null?void 0:b(P)})})]})}}},26842:(Fe,ee,e)=>{"use strict";e.d(ee,{FC:()=>u,WT:()=>r,Xh:()=>o,_j:()=>w,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:",";}}"],y=>y.theme.color_text_L3,y=>y.theme.color_bg_border_02,y=>y.theme.color_bg_white,y=>y.theme.color_text_L1,y=>y.theme.color_btn_primary_normal,y=>y.theme.color_btn_primary_normal,y=>y.theme.color_btn_primary_normal,y=>y.theme.color_bg_white,y=>y.theme.color_text_L1,y=>y.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:",";}"],y=>y.theme.color_btn_primary_normal,y=>y.theme.color_text_btn,y=>y.theme.color_btn_primary_disabled,y=>y.theme.color_btn_primary_hover,y=>y.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:",";}"],y=>y.theme.color_text_L3,y=>y.theme.color_text_btn),w=(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:",";}"],y=>y.theme.color_btn_primary_normal,y=>y.theme.color_text_btn,y=>y.theme.color_btn_primary_hover,y=>y.theme.color_btn_primary_clicked,y=>y.theme.color_btn_primary_disabled,y=>y.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:",";}"],y=>y.theme.color_bg_white,y=>y.theme.color_bg_border_02,y=>y.theme.color_text_L1,y=>y.theme.color_btn_secondary_hover,y=>y.theme.color_btn_secondary_active,y=>y.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:",";}"],y=>y.theme.color_btn_secondary_hover,y=>y.theme.color_btn_secondary_active,y=>y.theme.color_btn_secondary_active)},27086:(Fe,ee,e)=>{"use strict";e.d(ee,{E:()=>d});var n=e(38502),r=e(23089),c=e(68033),o=e(67787);const w=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;}"],y=>y.theme.color_text_L2,y=>y.theme.color_text_L2);var u=e(72214);const d=(0,n.memo)(y=>{let{scroll:h,handleChange:i}=y;const f=p=>{i(parseInt(p),"scroll")};return(0,u.jsxs)(w,{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:(Fe,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:(Fe,ee,e)=>{"use strict";e.d(ee,{U:()=>a});var n=e(38502),r=e(18381),c=e(53732),o=e.n(c),w=e(39695),u=e(54449),d=e(37780),y=e(24094),h=e(21066),i=e(97974),f=e(40486),p=e(17307),s=e(67588),l=e(86594),C=e(72214);const v=(P,b)=>(0,C.jsxs)(y.kS,{children:[(0,C.jsx)("span",{children:(0,f.Oz)(P)}),(0,C.jsx)(p.C,{className:"arrow",size:12,name:"interaction/empty_new_arrow"}),(0,C.jsx)("span",{children:(0,f.Qe)(b)})]}),a=P=>{let{isEditingCombo:b,showImg:g=!0,openEditorFloat:S,uiFrom:t,interactionStore:_}=P;const I=(0,r.wA)(),k=(0,r.d4)(s.O4),{menuStatus:j,handleToggle2:z,handleClose:K}=(0,u.z)(),$=Q=>N=>{I(d.R7.command.editingInteractionCreateCommand({interactionType:Q,tNodeTrigger:"tap",openEditorFloat:S,uiFrom:t,interactionStore:_}))},A=()=>{I(d.R7.command.pasteIta({targetInteractionKey:void 0,uiFrom:t}))},E=Q=>{Q.button===2&&z(Q)},U=b?[{text:v("tap",w.O2.SetBasketCanvas),interactionType:w.O2.SetBasketCanvas},{text:v("tap",w.O2.SetVisibility),interactionType:w.O2.SetVisibility},{text:v("tap",w.O2.ScrollTo),interactionType:w.O2.ScrollTo}]:[{text:v("tap",w.O2.LinkToCanvas),interactionType:w.O2.LinkToCanvas},{text:v("tap",w.O2.OpenOverlay),interactionType:w.O2.OpenOverlay},{text:v("tap",w.O2.SetBasketCanvas),interactionType:w.O2.SetBasketCanvas}],[O,H]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{(0,l.YF)().then(Q=>{H(Q)})},[j.isOpenContextMenu]),(0,C.jsxs)(y.Jr,{onMouseDown:E,className:o()(t),children:[g&&(0,C.jsx)("img",{src:f.AQ["empty_panel_"+k],height:90}),t==="treePanelRight"&&(0,C.jsx)("p",{className:"tip0",children:I18N.SettingPanel.create_links_desc}),(0,C.jsx)("p",{className:"tip1",children:I18N.Interaction.create_tip1}),U.map((Q,N)=>(0,C.jsx)(i.Yr,{onClick:$(Q.interactionType),type:"secondary",size:"tiny",className:"secBtn quickCreateItaBtn",children:Q.text},N)),j.isOpenContextMenu&&(0,C.jsx)(y.Sv,{position:j.position,onClose:K,children:(0,C.jsx)(h.Dr,{text:I18N.Interaction.paste,onClick:A,disabled:!O})})]})}},27384:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>i});var n=e(95549),r=e(25582),c=e.n(r),o=e(38502),w=e(69405),u=e(72214);const{push:d}=(0,w.O)(),y=(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:C}=this.props;C&&(this.isUnmounted||y(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:(Fe,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 C=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:C,cid:l}})}},o=(i,f,p,s)=>{const{isOrg:l,dispatch:C}=r,v=s!==void 0?s:l;MB.global.experienceLoginModalHelper("isSave")||C({type:"entry:auto:change:confirm:combo_group:name",payload:{comboGroup:f,comboGroupName:i,isOrg:v,callback:p}})},w=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}})},y=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:w,onRemove:u,onTransfer:!r.isOrg&&r.currentOrg?d:null,onAddSub:y,onAdd:h}}},27814:(Fe,ee,e)=>{"use strict";e.d(ee,{r:()=>r});var n="@mb2024/mb-flat-json",r="0.29.0"},27879:(Fe,ee,e)=>{"use strict";if(e.d(ee,{$3:()=>b,Im:()=>s,KC:()=>l,N8:()=>f,cb:()=>i,jH:()=>h,kW:()=>P,no:()=>v,v_:()=>y}),e.j!=477)var n=e(87612);var r=e(70248),c=e(20089),o=e(18630),w=e(30728),u=e(9634),d=e(50060);const y=3,h=8,i=g=>g.map(S=>{const[t,_,I,k]=sdkStore.getHotAABB(S.key),{x:j,y:z,w:K,h:$}=sdkStore.getHotBound(S.key),A={tl:{x:t,y:_},tr:{x:I,y:_},bl:{x:t,y:k},br:{x:I,y:k}};return{key:S.key,center:{x:j,y:z},boundingPoints:A,height:k-_,width:I-t,w:S,wW:K,wH:$}}),f=function(g,S,t){t===void 0&&(t=!1);const _=g.sort((z,K)=>z.boundingPoints.tl.y-K.boundingPoints.tl.y)[0],I=g.sort((z,K)=>z.center.y-K.center.y).filter(z=>z.key!==_.key),k=[{rowH:_.height,centerY:_.center.y,items:[_]}];let j=S;for(const z of I){const{height:K,center:{y:$}}=z;let A=0,E=!1;for(;A=0?Q:h:j=Q}k[A]={rowH:K,centerY:z.center.y,items:[z]}}}return k.forEach(z=>{z.items.sort((K,$)=>K.boundingPoints.tl.x-$.boundingPoints.tl.x)}),{result:k,lineSpace:j}},p=function(g,S,t,_,I){_===void 0&&(_=!1),I===void 0&&(I=!1);const k=S;let j=g;if(typeof g!="number"){let A=0;const E=[];for(;A1){const U=t[A].items.map((O,H)=>{const Q=t[A].items[H+1];return Q?Math.round(Q.boundingPoints.tl.x-O.boundingPoints.tr.x):null}).filter(O=>O!==null);E.push(...U)}A++}j=C(E)}const z=[];let K=null,$=null;return t.forEach(A=>{const{rowH:E,centerY:U,items:O}=A,H=$===null?0:$+k+E*.5-U;let Q=null;O.forEach(N=>{const{key:L,center:V,boundingPoints:M,width:D,wW:W,wH:F}=N;let B=0;I||(K===null?K=M.tl.x:B=K-M.tl.x);const Y=Q===null?B:Q+(j!=null?j:h)-M.tl.x,X=I&&j!==null?0:U-V.y+H,G=w.Z.xy(Y,X),Z=w.Z.add(M.tl,G);if(Math.round(Y)!==0||Math.round(X)!==0){const J={};(0,o.Ie)(L,J);const te=[],he={x:V.x+G.x,y:V.y+G.y,w:W,h:F};(0,o.$O)(te,L,he,J);const de=(0,d.vC)([L],Se=>{var xe;const be=((xe=sdkStore.getHotItem(Se))==null?void 0:xe.hotAttr.type)===c.x.WTear;return be&&(0,o.Ie)(Se,J),be});(0,u.PB)(te,L,he,de,J),z.push(...te)}Q=Z.x+D}),$=U+H+E*.5}),{result:t,changes:z,lineSpace:k,itemMargin:j}},s=function(g,S,t,_){_===void 0&&(_=!1);const{result:I,lineSpace:k}=f(g,t,_),{result:j,changes:z,lineSpace:K,itemMargin:$}=l(g,S,k,I,_);return{result:j,changes:z,lineSpace:K,itemMargin:$}},l=function(g,S,t,_,I){I===void 0&&(I=!1);const k=g.length===2,{result:j,changes:z,lineSpace:K,itemMargin:$}=p(S,t,_,I,k);return{result:j,changes:z,lineSpace:K,itemMargin:$}},C=function(g){if(g.length===0)return null;if(g.length===1)return g[0];let S,t=1;const _=g.reduce((I,k)=>(I[k]?I[k]++:I[k]=1,I[k]>t&&(S=k,t++),I),{});return S===void 0?g[0]>0?g[0]:h:S},v=function(g){const S=[];g.forEach(j=>j.items.length>1&&S.push(...j.items));const t=Math.min(...S.map(j=>j.width)),_=Math.round(1-t),I=Math.min(...g.map(j=>j.rowH)),k=Math.round(1-I);return{minItemMargin:_,minLineSpace:k}},a=function(g){if(g.length===2){const S=g[0].boundingPoints,t=g[1].boundingPoints,_=w.Z.average(S.tl,S.br),I=w.Z.average(t.tl,t.br);return!(_.x===I.x&&_.y===I.y)}return!1},P=(g,S)=>{const t=S.length>2,_=S.length===2&&a(g);return t||_},b=g=>g.filter(S=>{const{hotAttr:t,key:_,type:I,isLock:k}=S||{},j=(t==null?void 0:t.type)||I,z=(t==null?void 0:t.isLock)||k;return t||(0,n.p)("[fatal]: widget hotAttr is undefined",void 0,JSON.stringify(S)),j!==c.x.WSticky&&j!==c.x.WTear&&!z&&!(0,r.OO)(_)})},28306:(Fe,ee,e)=>{"use strict";e.d(ee,{K2:()=>i,Oc:()=>u,R9:()=>w,X_:()=>o,_Z:()=>y,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:C}=p;return s.reduce((v,a,P)=>{if(a.hotAttr){const{marketTemplateSource:b={}}=a,g=a.key+"-"+(b.cid||"");v[g]={source:"\u539F\u578B\u5185\u53D1\u73B0-\u7EC4\u4EF6",template_cid:a.key,template_name:a.hotAttr.name,template_group_cid:b.cid,template_group_name:b.title,template_category:b.category,sence_tag:l,widget_categories:C.name==="all"?"\u63A8\u8350":C.name,sort:P,policy:b.policy}}return v},{})},w=p=>{let{source:s,list:l}=p;return l.reduce((C,v,a)=>{var P;const{cid:b="",title:g="",category:S="",policy:t=""}=v.marketTemplateSource||{},_=v.key+"-"+b;return C[_]={source:s==="detail"?"\u539F\u578B\u5185\u67E5\u770B\u5168\u90E8-"+r.Jj[S]:s,template_cid:v.key,template_name:(P=v.hotAttr)==null?void 0:P.name,template_group_cid:b,template_group_name:g,template_category:S,sort:a,policy:t},C},{})},u=p=>{let{source:s,list:l,igCid:C="",igName:v,policy:a}=p;return l.reduce((P,b,g)=>{const S=b.id+"-"+(b.groupCid||"");return P[S]={source:s,template_cid:b.id,template_name:b.id,template_group_cid:C||b.groupCid,template_group_name:v,template_category:n.C,sort:g,policy:a},P},{})},d=(p,s)=>p.reduce((l,C)=>{const{icons:v}=C;return v.forEach((a,P)=>{const b=a.id+"-"+(a.groupCid||"");l[b]={source:"\u539F\u578B\u5185\u53D1\u73B0-\u56FE\u6807",template_cid:a.id,template_name:a.id,template_group_cid:C.groupName,template_group_name:C.label,template_category:n.C,sort:P,policy:s}}),l},{}),y=p=>p.reduce((s,l,C)=>{const{imgs:v,tab:a,name:P}=l;return v.forEach(b=>{const g=b.asset_cid+"-"+(b.group_cid||"");s[g]={source:"\u539F\u578B\u5185\u53D1\u73B0-\u56FE\u7247",template_cid:b.asset_cid,template_name:b.name,template_group_cid:a,template_group_name:P,template_category:n.b4,sort:C,policy:c.W.Everyone}}),s},{}),h=(p,s)=>p.reduce((l,C,v)=>{const{tab:a,asset_cid:P,group_cid:b,name:g}=C,S=P+"-"+(b||"");return l[S]={source:"\u539F\u578B\u5185\u67E5\u770B\u5168\u90E8-\u56FE\u7247",template_cid:P,template_name:g,template_group_cid:a,template_group_name:s,template_category:n.b4,sort:v,policy:c.W.Everyone},l},{}),i=(p,s)=>{var l;let C={};const v=s==null||(l=s.find(a=>a.type==="search_icon_list"))==null?void 0:l.items;return v&&v.length>0&&(C=v.reduce((a,P)=>{const{data:b}=P;return b.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:P.category,sort:S,policy:P.policy,keyword:p}}),a},{})),C},f=(p,s)=>{var l,C,v,a;let P={};const b=s==null||(l=s.combo_group)==null||(l=l.list)==null||(l=l.find(_=>_.cid==="search_combo_find_collapse"))==null||(l=l.list)==null||(l=l.find(_=>_.type==="search_template"))==null?void 0:l.items,g=s==null||(C=s.screen_list)==null||(C=C.list)==null||(C=C.find(_=>_.cid==="search_page_screen_collapse"))==null||(C=C.list)==null||(C=C.find(_=>_.type==="search_template"))==null?void 0:C.items,S=s==null||(v=s.icon_group)==null||(v=v.list)==null||(v=v.find(_=>_.type==="search_icon_list"))==null?void 0:v.items,t=s==null||(a=s.asset)==null||(a=a.list)==null||(a=a.find(_=>_.cid==="search_asset_find_collapse"))==null||(a=a.list)==null||(a=a.find(_=>_.type==="search_find_picture"))==null?void 0:a.items;if(b&&b.length>0){const _=b.reduce((I,k,j)=>{const z=k.mt.key+"-"+(k.currentResources.cid||"");return I[z]={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:j,policy:k.currentResources.policy,keyword:p},I},{});P={...P,..._}}if(g&&g.length>0){const _=g.reduce((I,k,j)=>{const z=k.mt.key+"-"+(k.currentResources.cid||"");return I[z]={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:j,policy:k.currentResources.policy,keyword:p},I},{});P={...P,..._}}if(S&&S.length>0){const _=S.reduce((I,k)=>{const{data:j}=k;return j.forEach((z,K)=>{const $=z.id+"-"+(z.groupCid||"");I[$]={source:"\u539F\u578B\u5185\u641C\u7D22-\u56FE\u6807",template_cid:z.id,template_name:z.name,template_group_cid:z.groupCid,template_group_name:z.group,template_category:k.category,sort:K,policy:k.policy,keyword:p}}),I},{});P={...P,..._}}if(t&&t.length>0){const _=t.reduce((I,k,j)=>{const z=k.asset_cid+"-"+(k.groupCid||"");return I[z]={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:j,policy:c.W.Everyone,keyword:p},I},{});P={...P,..._}}return P}},28537:(Fe,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 w(G){const Z=(0,o.useRef)(G);return Z.current=G,Z}const u=w,y=G=>{const Z=u(G);(0,o.useEffect)(()=>()=>{Z.current()},[])};function h(G){const Z=useRef(0),[J,te]=useState(G),he=useCallback(de=>{cancelAnimationFrame(Z.current),Z.current=requestAnimationFrame(()=>{te(de)})},[]);return useUnmount(()=>{cancelAnimationFrame(Z.current)}),[J,he]}const i=null;var f=e(56472),p=e(56202);const s=(G,Z)=>{if(!p.Bd)return;if(typeof G=="string")return document.querySelector(G);if(!G)return Z;let J;return(0,f.Tn)(G)?J=G():"current"in G?J=G.current:J=G,J},l=G=>G.every(Z=>{const J=s(Z);return J?J.getRootNode()instanceof ShadowRoot:!1}),C=G=>G?G.getRootNode():document,v=G=>{if(!G||!document.getRootNode)return document;const Z=Array.isArray(G)?G:[G];return l(Z)?C(s(Z[0])):document};function a(G,Z){if(G===Z)return!0;for(let J=0;J(J,te,he)=>{const de=(0,o.useRef)(!1),Se=(0,o.useRef)([]),xe=(0,o.useRef)([]),be=(0,o.useRef)();G(()=>{const oe=(Array.isArray(he)?he:[he]).map(ve=>s(ve));if(!de.current){de.current=!0,Se.current=oe,xe.current=te,be.current=J();return}if(oe.length!==Se.current.length||!a(Se.current,oe)||!a(xe.current,te)){var ue;(ue=be.current)==null||ue.call(be),Se.current=oe,xe.current=te,be.current=J()}}),y(()=>{var ie;(ie=be.current)==null||ie.call(be),de.current=!1})})(o.useLayoutEffect),S=e.j!=477?g:null;function t(G){const[Z,J]=useRafState(()=>{const te=getTargetElement(G);return te?{width:te.clientWidth,height:te.clientHeight}:void 0});return useEffectWithTarget(()=>{const te=getTargetElement(G);if(!te)return;const he=new ResizeObserver(de=>{de.forEach(Se=>{const{clientWidth:xe,clientHeight:be}=Se.target;J({width:xe,height:be})})});return he.observe(te),()=>{he.disconnect()}},[],G),Z}const _=null,I={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),j=e.n(k);const z=(G,Z,J)=>{const te=(0,o.useRef)(),he=(0,o.useRef)(0);j()(Z,te.current)||(te.current=Z,he.current+=1),S(G,[he.current],J)},K=e.j!=477?z:null,$={ctrl:G=>G.ctrlKey,shift:G=>G.shiftKey,alt:G=>G.altKey,meta:G=>G.type==="keyup"?I.meta.includes(G.keyCode):G.metaKey};function A(G){return(0,f.Kg)(G)||(0,f.Et)(G)}function E(G){const Z=Object.keys($).reduce((J,te)=>$[te](G)?J+1:J,0);return[16,17,18,91,92].includes(G.keyCode)?Z:Z+1}function U(G,Z,J){if(!G.key)return!1;if((0,f.Et)(Z))return G.keyCode===Z?Z:!1;const te=Z.split(".");let he=0;for(const de of te){const Se=$[de],xe=I[de.toLowerCase()];(Se&&Se(G)||xe&&xe===G.keyCode)&&he++}return J?he===te.length&&E(G)===te.length?Z:!1:he===te.length?Z:!1}function O(G,Z){return(0,f.Tn)(G)?G:A(G)?J=>U(J,G,Z):Array.isArray(G)?J=>G.find(te=>U(J,te,Z)):()=>!!G}const H=e.j!=477?["keydown"]:null;function Q(G,Z,J){const{events:te=H,target:he,exactMatch:de=!1,useCapture:Se=!1}=J||{},xe=u(Z),be=u(G);K(()=>{const ie=s(he,window);if(!ie)return;const oe=ve=>{const fe=O(be.current,de)(ve),we=A(fe)?fe:ve.key;if(fe){var Te;return(Te=xe.current)==null?void 0:Te.call(xe,ve,we)}};for(const ve of te){var ue;ie==null||(ue=ie.addEventListener)==null||ue.call(ie,ve,oe,Se)}return()=>{for(const re of te){var ve;ie==null||(ve=ie.removeEventListener)==null||ve.call(ie,re,oe,Se)}}},[te],he)}const N=e.j!=477?Q:null;function L(G,Z,J){J===void 0&&(J="click");const te=useLatest(G);useEffectWithTarget(()=>{const he=xe=>{(Array.isArray(Z)?Z:[Z]).some(ie=>{if(typeof ie=="string")return xe.target.classList.contains(ie);const oe=getTargetElement(ie);return!oe||oe.contains(xe.target)})||te.current(xe)},de=getDocumentOrShadow(Z),Se=Array.isArray(J)?J:[J];return Se.forEach(xe=>de.addEventListener(xe,he)),()=>{Se.forEach(xe=>de.removeEventListener(xe,he))}},Array.isArray(J)?J:[J],Z)}var V=e(55244);const M=null,D=()=>{const G=useRef(M);return{appendPendingPromises:he=>G.current=[...G.current,he],removePendingPromise:he=>G.current=G.current.filter(de=>de!==he),clearPendingPromises:()=>G.current.map(he=>he.cancel())}},W=null;function F(G,Z){const J=useCancellablePromises();return[(de,Se)=>{J.clearPendingPromises();const xe=cancellablePromise(delay(50));return J.appendPendingPromises(xe),xe.promise.then(()=>{J.removePendingPromise(xe),G(de,Se)}).catch(be=>{if(J.removePendingPromise(xe),!be.isCanceled)throw be.error})},(de,Se)=>{J.clearPendingPromises(),Z(de,Se)}]}const B=null,X=(G,Z)=>{(0,o.useEffect)(()=>{if(!G.current)return;const J=Z?G.current[Z]:G.current;if(!J)return;const te=he=>{(he.ctrlKey||he.metaKey)&&he.preventDefault()};return J.addEventListener("wheel",te,{passive:!1}),()=>{J.removeEventListener("wheel",te,{passive:!1})}},[])}},28652:(Fe,ee,e)=>{"use strict";e.d(ee,{G:()=>h});var n=e(38502),r=e(18381),c=e(55914),o=e(73442),w=e(60651),u=e(10472),d=e(95106);const y=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)(w.bt),{isEditingCombo:l}=(0,r.d4)(u.r),C=y({editingPanelRefPage:s,isEditingCombo:l,keyTriggerItem:p}),v=(0,n.useCallback)(b=>new RegExp((0,c.$)(f),"i").test(b),[f]),a=(0,n.useMemo)(()=>(0,o.Tx)(C,v),[C,v]);return{targetItemOptionList:a.hotAttr.type==="wBasket"?[a]:a.subHotItemList}}},28681:(Fe,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:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>c});var n=e(38502);function r(o){const w=(0,n.useRef)(o);w.current=(0,n.useMemo)(()=>o,[o]);const u=(0,n.useRef)();return u.current||(u.current=function(){for(var d=arguments.length,y=new Array(d),h=0;h{"use strict";e.d(ee,{EG:()=>f,Gq:()=>h,Hl:()=>i,Po:()=>y,jN:()=>u,p7:()=>w,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],w=function(l){var C;l===void 0&&(l=null);const v=(0,r.cz)(),a=l||((C=MB)==null?void 0:C.getRootProject()),{source_upper_cid:P,parent_cid:b,scene_tag:g}=a||{},S=g==null?void 0:g.includes("axure_import"),t=["MP","PC","DS","axure_import"],_=g?g.split("-")[0]:"",k=!!ENV.IS_MO||g&&t.includes(_),j=(0,c.OB)();return(P||b||S)&&j||a&&!k&&!v},u=function(l){var C,v,a;if(l===void 0&&(l=null),!(0,r.Ge)())return{};if(!((C=MB)!=null&&(C=C.commonGuideHelper)!=null&&(C=C.getState())!=null&&C.commonGuidesHasShown))return{};const b=((v=MB)==null||(v=v.commonGuideHelper)==null||(v=v.getState())==null?void 0:v.commonGuidesHasShown)||[],g=[n.c.GUIDE_NOVICE_2309,...o].find(S=>S&&b.includes(S));return g?(g!==n.c.GUIDE_NOVICE_2309&&MB.commonGuideHelper.markGuideAsRead(n.c.GUIDE_NOVICE_2309),{isCompleted:!0}):b!=null&&b.includes(n.c.GUIDE_NOVICE_2309_START)?{isInProgress:!0}:typeof((a=MB)==null?void 0:a.getRootProject)!="function"?{}:w(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],y=()=>{var l;const C=((l=MB)==null||(l=l.commonGuideHelper)==null||(l=l.getState())==null?void 0:l.commonGuidesHasShown)||[];return d.every(v=>C.includes(v))?{isAllGuidesCompleted:!0}:{isAllGuidesCompleted:!1}},h=()=>{var l;const C=u();!C||!C.isToShow||(l=MB)==null||(l=l.commonGuideHelper)==null||l.tryToShowGuide(n.c.GUIDE_NOVICE_2309)},i=l=>{var C,v;const a=u();if(a!=null&&a.isCompleted||Object.keys(a).length===0)return!0;const P=((C=MB)==null||(C=C.commonGuideHelper)==null||(C=C.getState())==null?void 0:C.commonGuidesHasShown)||[],b=((v=MB)==null||(v=v.commonGuideHelper)==null||(v=v.getState())==null?void 0:v.commonGuidesToBeShown)||[];return!P.includes("GUIDE_NOVICE_2309")&&!b.includes("GUIDE_NOVICE_2309")?!0:P.includes(l)},f=l=>{var C,v,a;const P=((C=MB)==null||(C=C.commonGuideHelper)==null||(C=C.getState())==null?void 0:C.commonGuidesHasShown)||[],b=((v=MB)==null||(v=v.commonGuideHelper)==null||(v=v.getState())==null?void 0:v.mountGuidesMap)||new Map;P.includes(l)||b.get(n.c.GUIDE_NOVICE_2309)&&((a=MB)==null||(a=a.commonGuideHelper)==null||a.tryToContinueMountGuide(n.c.GUIDE_NOVICE_2309,l))},p=()=>{var l,C;const v=u();!(v!=null&&v.isInProgress)||!(((l=MB)==null||(l=l.commonGuideHelper)==null||(l=l.getState())==null?void 0:l.mountGuidesMap)||new Map).get(n.c.GUIDE_NOVICE_2309)||(C=MB)==null||(C=C.commonGuideHelper)==null||C.tryToCloseMountGuide(n.c.GUIDE_NOVICE_2309)},s=()=>{var l,C,v;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 P=((C=MB)==null||(C=C.commonGuideHelper)==null||(C=C.getState())==null?void 0:C.commonGuidesHasShown)||[];return P.includes(n.c.GUIDE_NOVICE_2309_TIP_1)?!P.includes(n.c.GUIDE_NOVICE_2309):(!P.includes(n.c.GUIDE_NOVICE_2309)&&!P.includes(n.c.GUIDE_NOVICE_2309_START)||(v=MB)==null||(v=v.commonGuideHelper)==null||v.tryToShowGuide(n.c.GUIDE_NOVICE_2309_TIP_1),!0)}},29294:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>A});var n=e(95549),r=e(18381),c=e(38502),o=e(53732),w=e.n(o),u=e(21770),d=e(33573),y=e(3862),h=e(4410),i=e(11032),f=e(12246),p=e(93413),s=e(70933),l=e(25997),C=e(10472),v=e(67052),a=e(67588),P=e(93971),b=e(88194),g=e(16335),S=e(68863),t=e(72524),_=e(72214);const I=E=>{let{targetElement:U,getImgSrc:O,onToggleHover:H,children:Q}=E;const[N,L]=(0,c.useState)(!1),V=(0,r.d4)(a.bP),M=(0,r.d4)(v.B8),D=(0,c.useRef)(null),W=X=>{L(X),H&&H(X)},F=X=>{X.buttons===0&&W(!0)},B=()=>{clearTimeout(D.current),W(!1)},Y=X=>{X.buttons===0&&W(!0)};return(0,_.jsxs)(_.Fragment,{children:[Q(F,B),N&&(0,_.jsx)("div",{style:{display:"none"},onMouseEnter:Y,onMouseLeave:B,children:(0,_.jsx)(t.A,{layout:V,targetNode:U,getImgSrc:O,popupsPanelName:M,isAutoSize:!0})})]})};var k=e(2827),j=e(18575),z=e(85449),K=e(70812);class $ extends c.PureComponent{constructor(U){super(U),(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:H,marketTemplate:Q,mtResourceSdkStoreMap:N,dispatch:L}=this.props;if(!N.get(H.cid)){const M=new Map;M.set(H.cid,Q.projectMetaCid),await L({type:"entry:resources:set:mtSdkStore:map",payload:{mtResourceCidList:[H.cid],mtProjectMetaCidMap:M}})}}}),(0,n.A)(this,"handleOpenPaymentPage",O=>{const H=(0,f.l)(O,"","");MB.global.popupHelper.chargeAsync(H)}),(0,n.A)(this,"handleNoticeUpgrade",O=>{MB.notice({text:(0,_.jsxs)("p",{children:["You can ",(0,_.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:H}=this.props;if(["widget-modal","template-modal"].includes(H!=null?H:""))return;let Q=!0,N=!1;this.setState({isMoveAfterClick:!1});const L=async M=>{Q&&(N=Math.abs(M.clientX-O.clientX)>5||Math.abs(M.clientY-O.clientY)>5,N&&(this.setState({isDragging:!0}),await this.handleDown(O),Q=!1))},V=()=>{Q=!1,this.setState({isMoveAfterClick:N,isDragging:!1}),N=!1,document.removeEventListener("mousemove",L),document.removeEventListener("mouseup",V)};document.addEventListener("mousemove",L),document.addEventListener("mouseup",V)}),(0,n.A)(this,"handleDown",async O=>{var H;const{currentResources:Q,marketTemplate:N,currentEditorMode:L,ghostItemCids:V,showDragMode:M,isAdsorbentReferenceLine:D,popupsPanelName:W,currentUser:F,currentOrg:B,mtResourceSdkStoreMap:Y,dispatch:X,onPaidTemplates:G}=this.props;if(MB.global.experienceLoginModalHelper("isSave"))return;const{show:Z}=(0,i.o3)(Q,F);if(Z){if((0,z.jI)()){if(ENV.IS_MO)this.handleNoticeUpgrade(B);else{const{isMktMember:Se}=(0,u.s)(F,MB.currentOrg);if(Se){X({type:"modal:update:state",payload:{resourcePurchaseModal:{isOpen:!0,resources:Q,currentOrg:B,paidCallback:G}}});return}const{cid:xe,title:be,category:ie}=Q,{checkoutPlace:oe,payEntrance:ue}=(0,i.FS)(ie),{isMdVipTemplate:ve}=(0,i.f9)(Q),re={mode:ve?"solo":"mat",payEntrance:ue,checkoutArea:"proto",checkoutPlace:oe,templateCid:xe,templateName:be,templateCategory:ie};MB.global.popupHelper.chargeAsync(re);return}return}(0,k.z)()}const J=(H=document.getElementById(W))==null?void 0:H.getBoundingClientRect(),te=Y.get(Q.cid);if(!te)return;const he=MB.getCanvasRect(),de=MB.getScale();X({type:"modal:update:state",payload:{templateModal:{isOpen:!1}}}),(0,h.Su)({e:O,marketTemplate:N,mtSdkStore:te,doNotCreateRect:J,canvasRect:he,scale:de,currentEditorMode:L,ghostItemCids:V,callback:()=>{this.onRequestUpdateRecentImportResources(),this.addTrack(P.k8.Drag)},showDragMode:M,isAdsorbentReferenceLine:D})}),(0,n.A)(this,"handleGetRecentData",()=>{const{marketTemplate:{key:O,type:H},currentResources:Q,from:N}=this.props;return{isRequestRecent:!0,projectUpperType:H,projectUpperCid:Q==null?void 0:Q.cid,itemCid:O,from:N,isTrack:!0}}),(0,n.A)(this,"handleClick",async(O,H)=>{const{marketTemplate:Q,dispatch:N,from:L,currentResources:V,currentUser:M,currentOrg:D,onPaidTemplates:W,checkedSet:F,onCheckedResource:B,mtResourceSdkStoreMap:Y}=this.props,{isMoveAfterClick:X}=this.state;if(X)return;if(F&&F.size>=1){O.stopPropagation(),O.preventDefault(),B&&B(H);return}if(MB.global.experienceLoginModalHelper("isSave"))return;const{show:G}=(0,i.o3)(V,M);if(G){if((0,z.jI)()){if(ENV.IS_MO)this.handleNoticeUpgrade(D);else{const{isMktMember:he}=(0,u.s)(M,D);if(he){N({type:"modal:update:state",payload:{resourcePurchaseModal:{isOpen:!0,resources:V,currentOrg:D,paidCallback:W}}});return}const{cid:de,title:Se,category:xe}=V,{checkoutPlace:be,payEntrance:ie}=(0,i.FS)(xe),{isMdVipTemplate:oe}=(0,i.f9)(V),ue={mode:oe?"solo":"mat",payEntrance:ie,checkoutArea:"proto",checkoutPlace:be,templateCid:de,templateName:Se,templateCategory:xe};MB.global.popupHelper.chargeAsync(ue);return}return}(0,k.z)()}const Z=Y.get(V.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,H)=>{const{currentResources:Q,marketTemplate:N,currentUser:L,currentOrg:V,mtResourceSdkStoreMap:M,dispatch:D,onPaidTemplates:W,from:F,checkedSet:B,onCheckedResource:Y}=this.props;if(O.persist(),O.stopPropagation(),["widget-modal","template-modal"].includes(F!=null?F:"")){if(B&&(B==null?void 0:B.size)>=1){Y&&Y(H);return}return}if(MB.global.experienceLoginModalHelper("isSave"))return;const{show:X}=(0,i.o3)(Q,L);if(X){if((0,z.jI)()){if(ENV.IS_MO)this.handleNoticeUpgrade(V);else{const{isMktMember:J}=(0,u.s)(L);if(J){D({type:"modal:update:state",payload:{resourcePurchaseModal:{isOpen:!0,resources:Q,currentOrg:V,paidCallback:W}}});return}const{cid:te,title:he,category:de}=Q,{checkoutPlace:Se,payEntrance:xe}=(0,i.FS)(de),{isMdVipTemplate:be}=(0,i.f9)(Q),ie={mode:be?"solo":"mat",payEntrance:xe,checkoutArea:"proto",checkoutPlace:Se,templateCid:te,templateName:he,templateCategory:de};MB.global.popupHelper.chargeAsync(ie)}return}(0,k.z)()}const G=MB.getScale(),Z=M.get(Q.cid);Z&&((0,h.ob)({e:O,marketTemplate:N,store:Z,scale:G}),this.onRequestUpdateRecentImportResources(),this.addTrack(P.k8.DoubleClick))}),(0,n.A)(this,"addTrack",O=>{const{onTrack:H,currentResources:Q,marketTemplate:{key:N,hotAttr:{name:L}}}=this.props;MB.commonGuideHelper.closeGuide(p.c.GUIDE_RESOURCES_SHOW),H&&H(N,O,Q,L)}),(0,n.A)(this,"onRequestUpdateRecentImportResources",()=>{const{marketTemplate:O,marketTemplate:{key:H,type:Q},currentResources:N,from:L}=this.props,V=this.handleGetRecentData();if((0,g.Cp)(V),(O==null?void 0:O.category)==="screen_list"){var M,D;const{isVipTemplate:W,isMdVipTemplate:F}=(0,i.f9)(N);K.U4.protoPageAddTrack((M=MB)==null||(M=M.user)==null?void 0:M.id,L==="template-modal"?"\u6A21\u677F\u5F39\u7A97":"\u6A21\u677F\u5DE6\u4FA7\u680F","\u9875\u9762",F?"\u539F\u578B\u4F1A\u5458\u7D20\u6750":W?"\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,H)=>H.offsetWidth{O.stopPropagation();const{onOpenFolder:H,currentResources:Q}=this.props;H&&H(Q)}),(0,n.A)(this,"getImgSrc",()=>{const{marketTemplate:O,isFloatPreviewMkt:H,from:Q}=this.props,{projectMetaCid:N,key:L,hotAttr:{type:V},category:M}=O,D=["widget-modal","template-modal"].includes(Q!=null?Q:""),W=(H||D)&&M===y.t_?b.BU.ZOOM_200:b.BU.ZOOM_100;return(0,d.NI)({flpakKey:N,ssKey:L,ssTaskMode:V==="rResCanvas"?b.rY.PNG_CANVAS:b.rY.PNG_PAGE,ssZoomMode:W})}),this.state={isVisible:!1,isShowFloatPreviewPanel:!1,isMoveAfterClick:!1,isDragging:!1}}componentDidMount(){const{containerRect:U}=this.props,{isVisible:O}=this.state;U&&(O||this.updateIsVisible())}componentDidUpdate(U){const{isVisible:O}=this.state;O||this.updateIsVisible()}isInBoundingClientRect(){const{containerRect:U,xContainerRect:O,preloadDistance:H=150,marketTemplate:Q}=this.props;if(!U||!this.$elem)return!1;const N=this.$elem.getBoundingClientRect(),L=N.bottom-50>U.top&&N.top-HO.left&&N.left(0,_.jsx)(j.D,{className:ue,itemKey:J,cid:Q.cid,isBasicOrScreen:xe,projectMetaCid:Se,platform:Q.platform,flatItemType:de,ssZoomMode:be,policy:Q.policy,is_purchased:Q.is_purchased,currentResourcesTitle:Q.title,name:he,isShowSign:N,isShowFolderIcon:!!L,isVisible:G,isShowFloatPreviewPanel:Z,isShowFloatPreviewIcon:!V,onMouseDown:this.handleMouseDown,onClick:this.handleClick,canChecked:M,checkedSet:W,onCheckedResource:D,onCreate:this.handleCreate,onToggleHoverPreviewIcon:this.onToggleHoverPreviewIcon,onShowTipsByTarget:this.onShowTipsByTarget,onOpenFolder:this.handleOpenFolder,onSetElementRef:this.setElementRef,onGetImgSrc:this.getImgSrc,handMouseEnter:ve,handMouseLeave:re,isCanPreviewInModal:ie,onOpenPreviewModal:F,category:te})}):(0,_.jsx)(j.D,{className:ue,itemKey:J,cid:Q.cid,isBasicOrScreen:xe,projectMetaCid:Se,platform:Q.platform,flatItemType:de,ssZoomMode:be,policy:Q.policy,is_purchased:Q.is_purchased,name:he,isShowSign:N,isShowFolderIcon:!!L,isVisible:G,isShowFloatPreviewPanel:Z,isShowFloatPreviewIcon:!V&&!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:M,checkedSet:W,onCheckedResource:D,isCanPreviewInModal:ie,onOpenPreviewModal:F,currentResourcesTitle:Q.title,modalName:oe,category:te})}}(0,n.A)($,"defaultProps",{isShowSign:!0,isFloatPreviewMkt:!0,isRequsetMktStore:!1});const A=(0,r.Ng)(E=>{const U=(0,C.r)(E),O=(0,l.GO)(E),H=(0,a.PI)(E),Q=(0,a.k3)(E),N=(0,v.B8)(E),L=(0,s.HW)(E),V=(0,s.wA)(E),M=(0,v.fm)(E),D=(0,a.bP)(E),W=(0,s.YY)(E);return{currentEditorMode:U,ghostItemCids:O,showDragMode:H,isAdsorbentReferenceLine:Q,popupsPanelName:N,currentUser:L,currentOrg:V,mtResourceSdkStoreMap:M,layout:D,createTemplatesData:W}})($)},29360:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>yo});var n=e(38502),r=e(53732),c=e.n(r),o=e(28068),w=e(39e3),u=e(67787),d=e(58603),y=e(75810),h=e(51090);const i=(0,u.Ay)(d.A).withConfig({displayName:"style__StyledDropdownList",componentId:"sc-1ujczzp-0"})(["width:",";max-height:",";"],Ve=>Ve.width,Ve=>Ve.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:",";}}"],Ve=>Ve.theme.color_bg_border_01,Ve=>Ve.theme.color_text_disabled01,Ve=>Ve.theme.color_text_L3,Ve=>Ve.theme.color_textarea,Ve=>Ve.theme.color_btn_secondary_hover,Ve=>Ve.theme.color_info_bg,Ve=>Ve.theme.color_text_link_normal,Ve=>Ve.theme.color_text_L1,Ve=>Ve.theme.color_text_L1,Ve=>Ve.theme.color_text_disabled01,Ve=>Ve.theme.color_polyline_normal,Ve=>Ve.theme.color_polyline_normal,Ve=>Ve.theme.color_text_disabled01,Ve=>Ve.theme.color_text_L1||"rgba(0, 0, 0, 0.85)",Ve=>Ve.theme.color_text_L1||"rgba(0, 0, 0, 0.85)",Ve=>Ve.theme.color_bg_border_02,Ve=>Ve.theme.color_text_L1,Ve=>Ve.theme.color_text_L2,Ve=>Ve.theme.color_bg_white,Ve=>(0,y.oU)(Ve,"color_bg_black"),Ve=>Ve.theme.color_text_L3,Ve=>Ve.theme.color_text_L3,Ve=>Ve.theme.color_warning,Ve=>Ve.theme.color_warning,Ve=>Ve.theme.color_text_disabled01,Ve=>Ve.theme.color_text_disabled01,Ve=>Ve.theme.color_btn_secondary_hover,Ve=>Ve.theme.color_btn_secondary_hover,Ve=>Ve.theme.color_btn_primary_normal,Ve=>Ve.theme.color_info_bg,Ve=>Ve.theme.color_btn_primary_normal,Ve=>Ve.theme.color_info_bg,Ve=>Ve.theme.color_text_link_normal,Ve=>Ve.theme.color_bg_white,Ve=>Ve.theme.color_warning,Ve=>Ve.theme.color_warning,Ve=>Ve.theme.color_text_disabled01,Ve=>Ve.theme.color_btn_secondary_active,Ve=>Ve.theme.color_textarea,Ve=>Ve.theme.color_text_L3,Ve=>Ve.theme.color_text_L1,h.L9,h.L9,Ve=>Ve.theme.color_literal_number,Ve=>Ve.theme.color_literal_string,Ve=>Ve.theme.color_literal_boolean,Ve=>Ve.theme.color_literal_boolean,Ve=>Ve.theme.color_literal_operator,Ve=>Ve.theme.color_text_L1,Ve=>Ve.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);}}"],Ve=>Ve.$top||-5,Ve=>{var ut;return((ut=Ve.$left)!=null?ut:0)-9||-9},Ve=>Ve.theme.color_bg_white,Ve=>Ve.theme.shadow_m,Ve=>Ve.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:",";}}}"],Ve=>Ve.theme.color_bg_border_01,Ve=>Ve.theme.color_bg_border_01,Ve=>Ve.theme.color_text_L2,Ve=>Ve.theme.color_text_L3,Ve=>Ve.theme.color_text_L3,Ve=>Ve.theme.color_text_L2,Ve=>Ve.theme.color_text_L2,Ve=>Ve.theme.color_bg_border_01,Ve=>Ve.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:",";}"],Ve=>Ve.theme.color_btn_secondary_hover,Ve=>Ve.theme.color_text_L1,Ve=>Ve.theme.color_text_L3,Ve=>Ve.theme.color_bg_white,Ve=>(0,y.oU)(Ve,"color_bg_black"),Ve=>Ve.theme.color_text_L3),C=(0,u.DU)([".TipBase{.Tip.var-tooltip{transform:translate(-50%,0) !important;opacity:1 !important;}}"]),v=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;}"],Ve=>Ve.position.top,Ve=>Ve.position.left,Ve=>Ve.theme.color_bg_white,Ve=>Ve.theme.shadow_m,Ve=>Ve.theme.color_bg_border_01,Ve=>Ve.theme.color_bg_border_01,Ve=>Ve.theme.color_bg_white);var a=e(29329),P=e(17307),b=e(68677),g=e(88255),S=e(46953),t=e(38167),_=e(7091),I=e(27660);const k=[{name:"true",text:"true",type:"boolean",description:"\u5E03\u5C14\u503C"},{name:"false",text:"false",type:"boolean",description:"\u5E03\u5C14\u503C"}],j=(Ve,ut)=>{let{text:Kt,name:St,desc:fn}=Ve;return(Kt==null?void 0:Kt.toLowerCase().includes(ut))||(St==null?void 0:St.toLowerCase().includes(ut))||(fn==null?void 0:fn.toLowerCase().includes(ut))},z=(Ve,ut)=>Ve.zIndex-ut.zIndex,K=(Ve,ut)=>{const Kt=[];return Ve.forEach(St=>{St.varDataType===ut&&Kt.push(St)}),Kt.sort(z).concat(O({type:ut}))},$=(0,I.R)(()=>{let Ve=[];for(const ut of Object.keys(t.PZ))Ve=Ve.concat(A({type:ut}));return Ve}),A=Ve=>{let{type:ut,sliceNum:Kt=0}=Ve;return Object.keys(t.PZ[ut]||{}).map(St=>{const fn=t.PZ[ut][St],En=(0,t.eB)(St),gn=fn.argsType,Yn=fn.returnType,Pn={type:ut,funcName:En,argsType:gn,returnType:Yn,suggestType:fn.type};let _n,Fn;if((0,t.ud)(ut)?(Fn=ut+"."+En+"()",_n={text:ut,type:a.wv.globalVar}):(Fn=(0,t.IV)(ut)+"."+En+(fn.type==="func"?"()":""),_n={text:(0,t.IV)(ut),realText:"",type:a.wv.vacant,valueType:ut,vacantFrom:"func",funcInfo:Pn}),fn.type==="property")return{name:"\u5C5E\u6027",text:Fn,type:a.wv.func,desc:(0,t.mQ)(ut,En),insertList:[_n,{text:".",type:a.wv.dot},{text:En,type:a.wv.func,funcInfo:Pn}].slice(Kt),returnType:Yn,funcInfo:Pn};const Nn=gn.filter(to=>!to.optional),io=[];for(let to=0;to{let{typeList:ut,sliceNum:Kt=0}=Ve;return $().filter(St=>ut.includes(St.returnType)).map(St=>({...St,insertList:St.insertList.slice(Kt)}))},U=()=>Object.keys(_.om).map(Ve=>({name:(0,t.kz)(Ve),text:Ve,type:a.wv.builtinVar,desc:(0,t.K1)(Ve),valueType:_.om[Ve].valueType,info:{builtinVarName:Ve}})),O=Ve=>{let{type:ut}=Ve;return U().filter(Kt=>Kt.valueType===ut)},H=Ve=>{let{exprEntityListUseful:ut}=Ve;const Kt=Pn=>{let{editorState:_n,focusOffset:Fn,blockText:Nn}=Pn;const[io,to]=(0,a.Lc)(_n,Fn,!0),go=(io==null?void 0:io.entity.type)===a.wv.unknown?io:to;if(!go||go.entity.type!==a.wv.unknown)return;const[co]=(0,a.Lc)(_n,go.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 Je=Cn.entity;let vn=[];switch(Je.type){case a.wv.number:{if(D(On.data.text))return;vn=A({type:Je.type,sliceNum:2});break}case a.wv.string:{vn=A({type:Je.type,sliceNum:2});break}case a.wv.globalVar:{vn=A({type:Je.data.text,sliceNum:2});break}case a.wv.operator:{const ao=gn({editorState:_n,focusOffset:co.range[0]});vn=A({type:ao,sliceNum:2})||[];break}case a.wv.vacant:case a.wv.wattr:case a.wv.builtinVar:case a.wv.name:{vn=A({type:Je.data.varDataType||Je.data.valueType,sliceNum:2});break}case a.wv.unknown:{const ao=Nn.slice(...Cn.range),no=(0,t.uc)(ao),Oe=Nn.slice(...go.range).toLowerCase();if(no)return A({type:no}).map($n=>({...$n,replaceRange:[Cn.range[0],go.range[1]]})).filter($n=>j($n,Oe))}}const Jn=Nn.slice(...go.range).toLowerCase();return vn.map(ao=>({...ao,replaceRange:go.range})).filter(ao=>j(ao,Jn))},St=Pn=>{let{editorState:_n,focusOffset:Fn,blockText:Nn}=Pn;try{const[io,to,go]=(0,a.Lc)(_n,Fn,!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:Oe,replaceRange:$n}=Jn;return A({type:ao,sliceNum:no}).filter($t=>j($t,Oe)).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],Oe=On.data.funcInfo.funcName.toLowerCase();return W(Jn)?go?F(go.entity)?Cn({funcType:On.data.funcInfo.type,sliceNum:ao,funcNameKeyword:Oe,replaceRange:[no,go.range[1]]}):void 0:Cn({funcType:On.data.funcInfo.type,sliceNum:ao,funcNameKeyword:Oe,replaceRange:[no,to.range[1]]}):Cn({funcType:On.data.funcInfo.type,sliceNum:ao,funcNameKeyword:Oe,replaceRange:[no,io.range[1]]})}if(!W(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,Oe=no===0?Jn.range[0]:co.range[0];return Cn({funcType:vn.data.funcInfo.type,sliceNum:no,funcNameKeyword:ao,replaceRange:[Oe,io.range[1]]})}}}catch(io){return}},fn=Pn=>{let{editorState:_n,focusOffset:Fn,blockText:Nn}=Pn;try{const io=(0,a.Lc)(_n,Fn,!0)[1];return St({editorState:_n,focusOffset:io==null?void 0:io.range[1],blockText:Nn})}catch(io){return}},En=Pn=>{let{editorState:_n,focusOffset:Fn,blockText:Nn}=Pn;try{const[io]=(0,a.Lc)(_n,Fn,!0);if(W(io==null?void 0:io.entity)){const[to]=(0,a.Lc)(_n,io.range[0],!0),go=Kt({editorState:_n,focusOffset:to==null?void 0:to.range[0],blockText:Nn});return go==null?void 0:go.map(Io=>({...Io,replaceRange:[Io.replaceRange[0],io.range[1]]}))}}catch(io){return}},gn=Pn=>{let{editorState:_n,focusOffset:Fn,propPrev0:Nn=void 0}=Pn;const[io]=(0,a.Lc)(_n,Fn,!0),to=Nn||(io==null?void 0:io.entity);switch(to==null?void 0:to.type){case a.wv.operator:{if(to.data.text===")"){const go=ut.findLastIndex(Cn=>Cn.type==="operator"&&Cn.text==="("),Io=ut.findLastIndex(Cn=>Cn.type==="func");if(go===-1||Io===-1||Io!==go-1)return;const co=ut[Io],On=(0,t.cV)(co.text);if(On)return On;for(const[Cn,Je]of Object.entries(t.PZ)){const vn=Je[co.text];if(vn)return vn.returnType}}break}}};return{typeDotUnknown2:Kt,dot2:Pn=>{let{editorState:_n,focusOffset:Fn,blockText:Nn}=Pn;const[io]=(0,a.Lc)(_n,Fn,!0);if(!io)return;const[to]=(0,a.Lc)(_n,io.range[0],!0);if(!to)return;const go=io.entity,Io=to.entity;if(go.type!==a.wv.dot)return;let co=[];switch(Io==null?void 0:Io.type){case a.wv.name:{co=A({type:Io.data.varDataType,sliceNum:2});break}case a.wv.number:{if(D(Io.data.text))return;co=A({type:Io.type,sliceNum:2});break}case a.wv.string:{co=A({type:Io.type,sliceNum:2});break}case a.wv.globalVar:{co=A({type:Io.data.text,sliceNum:2});break}case a.wv.builtinVar:{co=A({type:Io.data.valueType,sliceNum:2});break}case a.wv.func:{Io.data.text==="length"&&(co=A({type:"number",sliceNum:2}));break}case a.wv.operator:{if(Io.data.text===")"){const On=ut.findLastIndex(Je=>Je.type==="operator"&&Je.text==="("),Cn=ut.findLastIndex(Je=>Je.type==="func");if(On!==-1&&Cn!==-1&&Cn===On-1){const Je=ut[Cn],vn=(0,t.cV)(Je.text);let Jn="";if(vn)Jn=vn;else for(const[ao,no]of Object.entries(t.PZ)){const Oe=no[Je.text];if(no[Je.text]){Jn=Oe.returnType;break}}if(!Jn)break;co=A({type:Jn,sliceNum:2});break}}break}case a.wv.wattr:{co=A({type:Io.data.valueType,sliceNum:2});break}case a.wv.unknown:{const On=Nn.slice(...to.range),Cn=(0,t.uc)(On);Cn&&(co=A({type:Cn}).map(Je=>({...Je,replaceRange:[to.range[0],io.range[1]]})))}}return co},funcMore:St,funcInner:fn,afterLB:En,getBracketRFuncReturnType:gn}},Q=Ve=>{let{typeList:ut}=Ve;return ut.map((Kt,St)=>({name:"\u641C\u7D22"+(0,t.IV)(Kt)+"\u53D8\u91CF\u3001\u51FD\u6570...",text:"",text2:(0,t.IV)(Kt),type:a.wv.vacant,defaultSelected:St===0,valueType:Kt,vacantFrom:"search"}))},N=Ve=>[{name:"\u9009\u53D6\u7EC4\u4EF6\u5C5E\u6027",text:"\u7EC4\u4EF6\u5C5E\u6027",text2:"\u8BF7\u9009\u62E9",type:a.wv.wattrDummy,...Ve}],L=Ve=>{let{editorState:ut,focusOffset:Kt,exprEntityListUseful:St,searchEntity:fn,range:En,keyword:gn}=Ve;const Yn=gn;let _n=[].concat(U());const Fn=St[St.findIndex(to=>to.key===fn.key)-1],Nn=Fn?Fn.type===a.wv.unknown?0:(0,a.M4)(Fn,a.wv.string,a.wv.boolean,a.wv.number,a.wv.wattr,a.wv.vacant,a.wv.name)||H({exprEntityListUseful:St}).getBracketRFuncReturnType({editorState:ut,focusOffset:Kt,propPrev0:Fn})!==void 0?1:0:0;return _n=_n.concat(A({type:"Math"})).concat(A({type:"number",sliceNum:Nn})).concat(A({type:"string",sliceNum:Nn})).concat(A({type:"$date"})),_n=_n.filter(to=>j(to,Yn)),_n.map(to=>({...to,replaceRange:En}))},V=Ve=>{let{type:ut,keyword:Kt,variables:St,isVacantFullSelected:fn}=Ve;const En=Kt.toLowerCase(),gn=[];if(ut==="string")Kt!==""&&gn.push({...(0,a.gn)(Kt,!1),defaultSelected:!fn});else if(ut==="number"){const Yn=(0,a.QD)(Kt);Yn&&gn.push({...Yn,defaultSelected:!fn})}else ut==="boolean"&&(gn.push({...k[0],defaultSelected:!fn}),gn.push(k[1]));if(gn.push(...N({vacantFrom:"func"})),Kt==="")gn.push(...K(St,ut));else{const Yn=Kt.replace(/^["']/,"").replace(/["']$/,"");for(const Pn of K(St,ut))M({item:Pn,keyword:En,content:Yn})&&gn.push(Pn)}return gn.push(...E({typeList:[ut]})),gn.filter(Yn=>Yn.varDataType?Yn:j(Yn,En))},M=Ve=>{var ut;let{item:Kt,keyword:St,content:fn}=Ve;return!!(fn&&(Kt.name.toLowerCase().includes(St)||(ut=Kt.varData)!=null&&ut.toString().toLowerCase().includes(fn)))},D=Ve=>Number.parseInt(Ve)===Number.parseFloat(Ve),W=Ve=>Ve?Ve.type===a.wv.operator&&Ve.data.text==="(":!1,F=Ve=>Ve?Ve.type===a.wv.operator&&Ve.data.text===")":!1;var B=e(36518);const Y=Ve=>{var ut;return(ut=B.fm[Ve])==null?void 0:ut.value_dark};var X=e(72214);const G=Ve=>{let{valueType:ut}=Ve;const[Kt,St]=(0,n.useState)(!1);return(0,X.jsxs)("div",{className:"bottom-tip",children:[(0,X.jsxs)("div",{className:"help-link",onMouseEnter:()=>{St(!0)},onMouseLeave:()=>{St(!1)},children:[(0,X.jsx)("span",{children:I18N.Expression.help_guid}),(0,X.jsx)(P.C,{className:"sign",name:"interaction/expression/sign",size:16}),(0,X.jsx)(J,{valueType:ut,isHandleHoverd:Kt,type:"normal"})]}),(0,X.jsxs)("div",{className:"help-keys",children:[(0,X.jsx)("span",{className:"key-button",children:(0,X.jsx)(P.C,{name:"interaction/expression/key_up",size:10})}),(0,X.jsx)("span",{className:"key-button",children:(0,X.jsx)(P.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)(P.C,{size:11,name:"interaction/expr/enter"})}),I18N.Expression.confirm]})]})},Z=Ve=>{let{valueType:ut,pauseError:Kt,resumeError:St}=Ve;const[fn,En]=(0,n.useState)(!1);return(0,X.jsx)("div",{className:"bottom-tip bottom-error",children:(0,X.jsxs)("div",{className:"help-error",onMouseEnter:()=>{En(!0),Kt()},onMouseLeave:()=>{En(!1),St()},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)(P.C,{className:"sign",name:"interaction/expression/sign",size:16}),(0,X.jsx)(J,{valueType:ut,isHandleHoverd:fn,type:"error"})]})})},J=Ve=>{var ut;let{valueType:Kt,isHandleHoverd:St,type:fn}=Ve;const En=()=>Kt==="boolean"?I18N.Expression.bottom.tip_boolean:Kt==="number"?I18N.Expression.bottom.tip_number:Kt==="string"?I18N.Expression.bottom.tip_string:"",gn=(0,n.useRef)();return(0,X.jsxs)(te,{ref:gn,className:c()("upload-law-tip",Kt,fn,{show:St}),children:[(0,X.jsxs)("div",{className:"content-container",children:[(0,X.jsx)("p",{className:"content",dangerouslySetInnerHTML:{__html:En()}}),(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)(P.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;}"],Ve=>Ve.theme.color_bg_tips,Ve=>Ve.theme.color_text_btn,Ve=>Ve.theme.color_bg_tips,Ve=>Y("color_text_link_normal"),Ve=>Y("color_text_link_hover")),he=Ve=>{let{info:ut}=Ve;return(0,X.jsxs)(xe,{children:[(0,X.jsx)("div",{className:"p1 builtinVar",children:ut.builtinVarName}),(0,X.jsx)("div",{className:"desc",children:(0,t.K1)(ut.builtinVarName)})]})},de=Ve=>{let{info:ut}=Ve;const Kt=()=>ut.argsType.map((fn,En)=>(0,X.jsxs)("span",{children:[(0,X.jsx)("span",{className:fn.type,children:(0,t.A_)(fn.name)}),fn.optional&&fn.type!=="spread"&&(0,X.jsx)("span",{className:"optional",children:"\u53EF\u9009"}),En!==ut.argsType.length-1&&(0,X.jsx)("span",{children:","})]},En)),St=ut.suggestType==="func";return(0,X.jsxs)(xe,{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}),St&&(0,X.jsx)("span",{children:"("}),Kt(),St&&(0,X.jsx)("span",{children:")"}),(0,X.jsx)(P.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)})]})},Se=Ve=>{var ut;let{info:Kt}=Ve;const St=Kt.varDataType||Kt.valueType,fn=(ut=I18N.Expression.bottom.tip_vacant)==null?void 0:ut.replace("{type}",(0,t.IV)(St,!0));return(0,X.jsx)("div",{className:"bottom-tip search-info",children:(0,X.jsx)("div",{className:"p1",children:fn})})},xe=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:",";}"],Ve=>Ve.theme.color_bg_border_01,Ve=>Ve.theme.color_text_L3,Ve=>Ve.theme.expr_editor_string,Ve=>Ve.theme.expr_editor_number,Ve=>Ve.theme.expr_editor_boolean,Ve=>Ve.theme.expr_editor_func,Ve=>Ve.theme.expr_editor_builtinVar,Ve=>Ve.theme.color_text_L3,Ve=>Ve.theme.expr_editor_boolean,Ve=>Ve.theme.color_bg_border_02,Ve=>Ve.theme.color_bg_white,Ve=>Ve.theme.color_text_L3);var be=e(788),ie=e(92837),oe=e(83199),ue=e(91063),ve=e(93257);const re=(0,n.createContext)({});var fe=e(95106),we=e(39695),Te=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"},le=Ve=>new o.t8([{strategy:(ut,Kt)=>{ut.findEntityRanges(St=>!!St.getEntity(),Kt)},component:ut=>(0,X.jsx)(me,{...ut,isSimple:Ve})}]),me=Ve=>{var ut;const{contentState:Kt,entityKey:St,isSimple:fn}=Ve,{handleClickWAttrEntity:En,setEditingVacant:gn}=(0,n.useContext)(re),Yn=St&&Kt.getEntity(St);if(!Yn)return null;const{type:Pn,data:_n}=Yn,Fn=_n.varDataType,Nn=(_n==null?void 0:_n.isTrashed)||Pn==="name"&&!Fn,io=Pn==="name",to=Pn,go=co=>{Yn.type!==a.wv.wattr&&Yn.type!==a.wv.wattrDummy||En==null||En({entityKey:St,entity:Yn},co)},Io=co=>{co.preventDefault(),co.stopPropagation(),!(Yn.type!==a.wv.name&&Yn.type!==a.wv.vacant)&&gn({key:St,data:Yn.type===a.wv.name?{...Yn.data,vacantFrom:"var"}:Yn.data})};return Yn.type===a.wv.wattrDummy?(0,X.jsx)(ke,{handleClick:go,entityKey:St,children:Ve.children}):Yn.type===a.wv.wattr?(0,X.jsx)(pe,{handleClick:go,entity:Yn,entityKey:St,isSimple:fn,children:Ve.children}):(0,X.jsx)("span",{className:c()("cell-wrapper",to+"-cell-wrapper",{"cw-simple":fn}),children:(0,X.jsxs)("span",{"data-cid":St,className:c()(["expression-cell",to+"-cell",{"is-trashed":Nn,"is-bracket":["(",")"].includes(Yn==null||(ut=Yn.data)==null?void 0:ut.text),"is-simple":fn}]),onClick:Io,children:[Yn.type===a.wv.vacant&&(0,ie.iZ)(Yn.data.vacantFrom)&&(0,X.jsx)(P.C,{size:16,name:"interaction/expression/vacant_eye"}),io?(0,X.jsx)(Pe,{entity:Yn,isTrashed:Nn,isSimple:fn,handleVarMouseDown:Io,children:Ve.children}):Yn.type===a.wv.builtinVar?(0,X.jsx)(We,{entity:Yn,isSimple:fn,children:Ve.children}):Yn.type===a.wv.vacant?(0,X.jsx)(Ee,{entity:Yn,children:Ve.children}):(0,X.jsx)("span",{className:"expression-text",children:Ve.children})]})})},Pe=Ve=>{let{entity:ut,children:Kt,isSimple:St,isTrashed:fn}=Ve;const{data:En}=ut,gn=En.varDataType,Yn=(0,S.Zg)(gn,En.varData,fn),Pn=(0,n.useRef)(!1),_n=(0,n.useRef)(),Fn=(0,n.useCallback)(()=>{Pn.current=!0},[]),Nn=(0,n.useCallback)(()=>{clearTimeout(_n.current),Pn.current=!1},[]),io=(0,n.useCallback)((to,go)=>{_n.current&&clearTimeout(_n.current),to?_n.current=setTimeout(()=>{Pn.current&&(go==null||go())},200):go==null||go()},[]);return(0,n.useEffect)(()=>()=>{Pn.current=!1,clearTimeout(_n.current)},[]),St?(0,X.jsx)("span",{className:"var-tag var-name",children:Kt}):(0,X.jsx)(ve.A,{direction:"down",tipClassName:"fixed-transform-y10",onChangeTooltipsHover:io,content:(0,X.jsx)(ue.A,{showName:!0,isTrashed:fn,varAttr:ut.data,overflowWidth:132}),children:(0,X.jsx)("span",{className:"expression-text",onMouseMoveCapture:Fn,onMouseLeave:Nn,children:(0,X.jsxs)("span",{className:"var-tag var-name",children:[(0,X.jsx)(P.C,{name:Yn}),Kt]})})})},pe=Ve=>{let{handleClick:ut,entity:Kt,entityKey:St,isSimple:fn,children:En}=Ve;const{currentWidgetKey:gn,wAttrEditingMisc:Yn,vMode:Pn,editorWattrValidMap:_n}=(0,n.useContext)(re),[Fn]=(0,we._S)(Kt.data.key),Nn=gn?(0,fe.ck)(sdkStore,gn,Fn,Pn):!1,io=sdkStore.getHotItem(Fn);(0,n.useEffect)(()=>{_n==null||_n.set(Kt.data.key,Nn)},[Kt.data.key,Nn]);let to="";const go=(0,n.useRef)();if(Nn)to=Kt.data.nameKV.finalName;else{var Io;((Io=go.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:Kt.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:go,children:(0,X.jsx)(oe.A,{content:to,enterHoverTime:200,isShowTipsByTarget:(co,On)=>{var Cn;return Yn?!1:!Nn||((Cn=On.querySelector(".widget-name"))==null?void 0:Cn.scrollWidth)>70},children:(0,X.jsxs)("span",{"data-cid":St,className:c()(["expression-cell","wattr-cell",{isActive:(Yn==null?void 0:Yn.entityKey)===St,"is-trashed":!Nn,"is-simple":fn}]),onClick:ut,children:[fn?null:Nn?(0,X.jsx)(Te.W,{renderItem:io}):(0,X.jsx)(P.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:Kt.data.nameKV.name1}),(0,X.jsx)("span",{children:"\xA0/\xA0"}),En]}),!fn&&(0,X.jsx)(P.C,{className:"down-arrow",size:12,name:"interaction/expression/wattr_arrow_tiny"})]})})})},ke=Ve=>{let{handleClick:ut,entityKey:Kt,children:St}=Ve;const{wAttrEditingMisc:fn}=(0,n.useContext)(re);return(0,X.jsx)("span",{className:c()("cell-wrapper","wattr-cell-wrapper"),children:(0,X.jsxs)("span",{"data-cid":Kt,className:c()(["expression-cell","wattrDummy-cell",{isActive:(fn==null?void 0:fn.entityKey)===Kt}]),onClick:ut,children:[(0,X.jsx)(P.C,{name:"interaction/expression/wattrDummy"}),(0,X.jsx)("span",{className:"var-name",children:St}),(0,X.jsx)(P.C,{className:"down-arrow",size:12,name:"interaction/expression/wattr_arrow_tiny"})]})})},We=Ve=>{let{entity:ut,isSimple:Kt,children:St}=Ve;return(0,X.jsxs)("span",{className:"expression-text",children:[!Kt&&(0,X.jsx)(P.C,{name:"interaction/builtinVar/"+Ie[ut.data.text],className:c()({rotate90:ut.data.text.includes("ScrollY")})}),St]})},Ee=Ve=>{let{entity:ut,children:Kt}=Ve;return(0,X.jsx)("span",{className:c()("expression-text ",ut.data.vacantFrom,{"has-text":!!ut.data.realText}),children:Kt})},Ae={number:[],string:["number"],boolean:["string","number"],unknown:["string","number","boolean"]},Ce="BOOLEAN_KEYWORDS",_e={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",Ce],prevTypes:["boolean","string","number",Ce]},{name:"\u6216\u8005",text:"||",type:"operator",nextTypes:["boolean","string","number",Ce],prevTypes:["boolean","string","number",Ce]},{name:"\u975E",text:"!",prefix:!0,type:"operator",nextTypes:["boolean","string","number",Ce]},{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"]}]},Ge=(Ve,ut,Kt)=>{var St;ut||(ut=a.wv.unknown);const fn=[ut,...Ae[ut]],En=[];return(ut===a.wv.boolean||fn.includes(a.wv.boolean))&&k.forEach(gn=>{En.push(gn)}),(St=_e[ut])==null||St.forEach(gn=>{gn.prefix&&En.push(gn)}),Ve.forEach(gn=>{(Kt||fn.includes(gn.varDataType))&&En.push(gn)}),En.concat(U().filter(gn=>fn.includes(gn.valueType)))},Xe=(Ve,ut,Kt)=>{var St;ut||(ut=a.wv.unknown);const fn=[ut,...Ae[ut]],En=[];return(St=_e[ut])==null||St.forEach(gn=>{Kt!=null&&Kt.includes(gn.text)||gn.prefix&&En.push(gn)}),En.push(...N()),Ve.forEach(gn=>{if(fn.includes(gn.varDataType)){if(Kt!=null&&Kt.includes(gn.name))return;En.push(gn)}}),En.concat(U().filter(gn=>fn.includes(gn.valueType)))},Ue=(Ve,ut,Kt,St)=>{var fn;let{getSelectionSuggestList:En}=St;const{focusOffset:gn}=Ve.getSelection(),_n=Ve.getCurrentContent().getFirstBlock().getText(),[Fn,Nn,io]=(0,a.Lc)(Ve,gn,!0),to=Nn==null?void 0:Nn.entity,go=Nn==null?void 0:Nn.range,Io=(0,a.b5)(Ve);if((0,a.M4)(to,a.wv.name,a.wv.builtinVar,a.wv.wattr,a.wv.wattrDummy))return En();if((0,a.M4)(Fn==null?void 0:Fn.entity,a.wv.name)&&Fn.range[1]===gn){const Gt=document.querySelector("#expression-editor .expression-cell[data-cid='"+Fn.key+"'] .expression-text");if(Gt&&(0,a.gf)(Gt))return Ge(Kt,ut,!1).filter(Dt=>Dt.type!=="operator").map(Dt=>({...Dt,replaceRange:Fn.range}))}if(go&&gn>go[0]&&gn{var Ct;return!Qt.prefix&&Qt.text!==((Ct=to.data)==null?void 0:Ct.text)}).map(Qt=>({...Qt,replaceRange:Nn.range}))}if((0,a.M4)(to,a.wv.func)){const Dt=H({exprEntityListUseful:Io}).funcInner({editorState:Ve,focusOffset:gn,blockText:_n});if(Dt)return Dt}const Gt=[];if((0,a.M4)(to,a.wv.boolean,a.wv.number)&&[a.wv.boolean,a.wv.string].includes(ut)&&Gt.push({...(0,a.gn)(_n.slice(...go)),replaceRange:go}),(0,a.M4)(to,a.wv.string,a.wv.number,a.wv.globalVar)){const Dt=_n.slice(...go);a.wv.number&&D(Dt)||Gt.push(...A({type:(0,t.ud)(Dt)?Dt:to.type,sliceNum:1}).map(Qt=>({...Qt,replaceRange:[go[1],go[1]]})))}return Gt}const Jn=H({exprEntityListUseful:Io}).afterLB({editorState:Ve,focusOffset:gn,blockText:_n});if(Jn)return Jn;const ao=H({exprEntityListUseful:Io}).typeDotUnknown2({editorState:Ve,focusOffset:gn,blockText:_n});if(ao)return ao;const no=H({exprEntityListUseful:Io}).dot2({editorState:Ve,focusOffset:gn,blockText:_n});if(no)return no;const Oe=H({exprEntityListUseful:Io}).funcMore({editorState:Ve,focusOffset:gn,blockText:_n});if(Oe)return Oe;const $n=[];let $t,cn=!1;if(to&&(0,a.M4)(to,a.wv.unknown)?$t=Nn:Fn&&($t=Fn,cn=!0),!$t)return[];const{entity:yt,range:Lt}=$t;let Wt=_n.slice(...Lt);const Jt=(0,a.M4)(yt,a.wv.unknown),In=(0,a.M4)(yt,a.wv.globalVar),Ln=(0,a.M4)(yt,a.wv.number),hn=(0,a.M4)(yt,a.wv.func)&&Wt==="length",_o=(0,a.M4)(yt,a.wv.string),vo=(0,a.M4)(yt,a.wv.boolean),Qn=(0,a.M4)(yt,a.wv.name),He=(0,a.M4)(yt,a.wv.wattr),Re=cn&&(0,a.M4)(yt,a.wv.operator),De=cn&&(0,a.M4)(yt,a.wv.builtinVar),Be=cn&&(0,a.M4)(yt,a.wv.vacant),$e=[ut,...Ae[ut]],Ze=((fn=$t.entity.data)==null?void 0:fn.varDataType)||$t.entity.type||ut,nt=ut===a.wv.boolean,mt=ut===a.wv.string,xt=Wt.toLowerCase();if(!xt.length)return[];let gt=!1;nt&&_e.boolean.forEach(Gt=>{Gt.text!==xt&&Gt.text.includes(xt)&&($n.push({...Gt,replaceRange:Lt}),gt=!0)});let wt;if(Jt&&!gt&&$e.includes(a.wv.string)||(vo||Ln)&&(nt||mt)){if(Jt&&!['"',"'"].includes(Wt[0])&&Lt[0]>0){let Gt=Lt[0],Dt=(0,a.Lc)(Ve,Lt[0]-1)[1];for(;Gt>0&&Dt&&(0,a.M4)(Dt.entity,a.wv.number,a.wv.boolean);)Gt=Dt.range[0],Dt=(0,a.Lc)(Ve,Gt-1)[1];Gt{if(!$e.includes(Gt))return;const Dt=_e[Gt].find(Qt=>Qt.name.includes(Wt));Dt&&$n.push({...Dt,replaceRange:Lt})}),Re){const Gt=[Ze];Object.keys(_e).forEach(yn=>{var rn;if(!$e.includes(yn))return;const Rt=_e[yn].find(Dn=>Dn.text===Wt);Rt&&Gt.push(...(rn=Rt.nextTypes)!=null?rn:[yn])});const Dt=new Set(Gt);Dt.has(Ce)&&($n.push(...k),Dt.forEach(yn=>{var rn;(rn=_e[yn])==null||rn.forEach(Rt=>{Rt.prefix&&Wt!==Rt.text&&$n.push(Rt)})}));const Qt=Wt!=="("&&Wt!==")";let Ct=!1;if(Wt==="("){const[yn,rn]=(0,a.Lc)(Ve,Lt[0]-1);Ct=!rn||(0,a.M4)(rn==null?void 0:rn.entity,a.wv.space,a.wv.operator),Ct&&Dt.size===1&&Dt.add(ut)}if(Ct)return En();if(Qt){switch(ut){case"string":{$n.push(...Q({typeList:["string","number"]}));break}case"number":{$n.push(...Q({typeList:["number"]}));break}case"boolean":{["-","*","/"].includes(Wt)?$n.push(...Q({typeList:["number"]})):[">","<",">=","<="].includes(Wt)?$n.push(...Q({typeList:["number"]})):["+"].includes(Wt)&&$n.push(...Q({typeList:["number","string"]}));break}}$n.push(...N())}if(Kt.forEach(yn=>{Dt.has(yn.varDataType)&&$n.push(yn)}),Qt){$n.push(...U().filter(rn=>Dt.has(rn.valueType)));let yn=[];switch(ut){case"string":{yn=["string"],["+"].includes(Wt)&&yn.push("number");break}case"number":{yn=["number"];break}case"boolean":{["-","*","/"].includes(Wt)?yn=["number"]:["+"].includes(Wt)?yn=["string","number"]:[">","<",">=","<="].includes(Wt)?yn=["number"]:["==","!=","&&","||","!"].includes(Wt)&&(yn=["string","number","boolean"]);break}}$n.push(...E({typeList:yn}))}}let Zt;if(Qn||Ln||hn||vo||_o||He||Re||De||Be){var Ft;const Gt=new Set;if((Ft=_e[ut])==null||Ft.forEach(Dt=>{var Qt;const Ct=(Qt=Dt.prevTypes)!=null?Qt:[ut];let yn="";He||De||Be?yn=yt.data.valueType:Re?(yn=Zt!=null?Zt:H({exprEntityListUseful:Io}).getBracketRFuncReturnType({editorState:Ve,focusOffset:gn})||"",Zt=yn):hn?yn="number":yn=Ze,Ct.includes(yn)&&!Gt.has(Dt.text)&&!Dt.prefix&&(Gt.add(Dt.text),yn==="string"&&Dt.text==="+"?$n.push({...Dt,name:I18N.Expression.operator.plus_string}):$n.push(Dt))}),Re&&Wt===")"){const Dt=Zt!=null?Zt:H({exprEntityListUseful:Io}).getBracketRFuncReturnType({editorState:Ve,focusOffset:gn});$n.push(...A({type:Dt,sliceNum:1})),$n.length||$n.push(..._e[ut].filter(Qt=>Qt.text!=="!"))}}if(Jt||Ln||_o||vo){let Gt=!1;const Dt=xt.replace(/^["']/,"").replace(/["']$/,"");Jt&&$n.push(...N().filter(Qt=>j(Qt,xt)).map(Qt=>({...Qt,replaceRange:Lt}))),Ge(Kt,ut,!0).forEach(Qt=>{Qt.text!==Wt&&M({item:Qt,keyword:xt,content:Dt})&&Qt.type!==a.wv.builtinVar&&($n.push({...Qt,defaultSelected:Gt,replaceRange:Lt}),wt&&Gt&&(wt.defaultSelected=!1),Gt=!1)})}if(Qn||Ln||hn||vo||_o||He||De||Be){let Gt="";He||De||Be?Gt=yt.data.valueType:hn?Gt="number":Gt=Ze,Ln&&D(Wt)||$n.push(...A({type:Gt,sliceNum:1}))}return(Jt||In)&&$n.push(...L({editorState:Ve,focusOffset:gn,exprEntityListUseful:Io,searchEntity:$t,isGlobalVar:In,range:Lt,keyword:xt})),$n},pt=(0,n.forwardRef)((Ve,ut)=>{let{valueType:Kt,editorState:St,scope:fn,width:En,updateEditorState:gn,isShowError:Yn,pauseError:Pn,resumeError:_n,vacantEditorState:Fn,editingVacant:Nn,wAttrEditingMisc:io,setEditingVacant:to,handleClickWAttrEntity:go,handleSuggestSelectUpdate:Io,handleChange:co}=Ve;const{variables:On}=fn,Cn=(0,n.useRef)(null),Je=(0,n.useRef)(null),[vn,Jn]=(0,n.useState)(null),[ao,no]=(0,n.useState)(Date.now()),Oe=(0,n.useMemo)(()=>{const Jt=On.filter(De=>!De.isTrashed),In=Fn||St,Ln=In.getCurrentContent(),hn=In.getSelection(),_o=Ln.getPlainText(),vo=hn.isCollapsed(),Qn=!_o.trim().length||Math.abs(hn.focusOffset-hn.anchorOffset)===_o.length,[He]=(0,a.c0)(In);if(Fn){const De=In.getCurrentContent(),Be=In.getSelection(),Ze=De.getFirstBlock().getText(),nt=Be.getEndOffset()-Be.getStartOffset()===Ze.length;return V({type:(Nn==null?void 0:Nn.data.varDataType)||(Nn==null?void 0:Nn.data.valueType)||"string",keyword:Qn?"":Ze||"",variables:Jt,isVacantFullSelected:nt})}if(io)return[];const Re=()=>{const De=[];Kt==="string"?De.push(...Q({typeList:["string","number"]})):Kt==="number"&&De.push(...Q({typeList:["number"]})),Kt==="boolean"&&k.forEach($e=>{De.push($e)}),De.push(...Xe(Jt,Kt,void 0));let Be=[Kt];return Kt==="string"?Be.push("number"):Kt==="boolean"&&(Be=["string","number","boolean"]),De.push(...E({typeList:Be})),De};return Qn||!vo?Re():Ue(In,Kt,Jt,{getSelectionSuggestList:Re})},[Kt,On,St,ao,Fn,io,Nn]),$n=(0,n.useRef)(Oe);if($n.current!==Oe){const Jt=Oe.find(In=>In.defaultSelected)||null;Jn(Jt),$n.current=Oe}const $t=(Jt,In)=>{if(!vn)return;let Ln=St;const hn={...vn};if(Fn){const Qn=(0,be.Cs)(St,Nn.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 vo="";if(_o)for(const[Qn,He]of Object.entries(hn.insertList)){let Re=He;parseInt(Qn)===0&&(Re={...He,replaceRange:hn.replaceRange});let De;!vo&&(0,ie.am)(He.vacantFrom)&&(De={ref:null}),Ln=(0,a.FN)(Ln,Re,{createKeyRef:De,insertSpaceV:(0,a.pg)({type:Re.type,text:Re.text}),insertSpaceBefore:parseInt(Qn)===0,insertSpaceAfter:He.type===a.wv.unknown&&He.text===","}),De&&(vo=De.ref)}else{const Qn={ref:null};Ln=(0,a.FN)(Ln,hn,{insertSpaceV:(0,a.pg)({type:hn.type,text:hn.text}),insertSpaceBefore:!0,createKeyRef:Qn}),vo=Qn.ref}if(Ln=Io(Ln,hn),Jn(null),yt(),_o&&vo)if(Fn){setTimeout(()=>{to({key:vo,data:Ln.getCurrentContent().getEntity(vo).data})},24);return}else to({key:vo,data:Ln.getCurrentContent().getEntity(vo).data});if(hn.type===a.wv.wattrDummy){setTimeout(()=>{go({entityKey:vo,entity:Ln.getCurrentContent().getEntity(vo)})},40),to(void 0);return}if(hn.type===a.wv.vacant){setTimeout(()=>{to({key:vo,data:Ln.getCurrentContent().getEntity(vo).data})},40);return}if(Fn){const Qn=(0,be.Cs)(St,Nn.key),De=(0,a.b5)(St).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:Nn,handleChange:co,newEditorState:Ln,oldEditorState:St,oldRange:Qn}),to(void 0))}},cn=Jt=>{Jt.preventDefault()},yt=()=>{const Jt=Cn.current.querySelector(".suggestion-list");Jt&&(Jt.scrollTop=0)},Lt=(Jt,In)=>{var Ln;Je.current=null;const hn=(Ln=Cn.current)==null?void 0:Ln.querySelector(".is-selected"),_o=Cn.current.querySelector(".suggestion-list");if(In||!hn){Jt<0&&(_o.scrollTop=0);return}const{top:vo,bottom:Qn}=hn.getBoundingClientRect(),He=_o.getBoundingClientRect(),Re=He.bottom-Qn,De=vo-He.top;Re>=0&&De>=0||(_o.scrollTop+=Jt>0?-(Re-10):De-10)};(0,n.useImperativeHandle)(ut,()=>({handleSelectPrev:()=>{if(!Oe.length||!vn)return;let Jt=0;vn&&(Jt=Oe.indexOf(vn),Jt>0?Jt--:Jt=-1),Jn(Jt>=0?Oe[Jt]:null),Je.current=()=>Lt(-1,Jt===0)},handleSelectNext:()=>{if(!Oe.length)return;let Jt=0;vn&&(Jt=Oe.indexOf(vn),JtLt(1)},getSelectedItem:()=>vn,forceRefreshList:()=>{no(Date.now())},handleInsertItem:$t})),(0,n.useEffect)(()=>{var Jt;(Jt=Je.current)==null||Jt.call(Je)},[vn]);const[Wt]=(0,a.c0)(St);return(0,X.jsxs)(s,{style:{width:En},ref:Cn,onPointerDown:cn,children:[(0,X.jsx)(C,{}),(0,X.jsx)("div",{className:c()("suggestion-list"),children:Oe.length?Oe.map((Jt,In)=>{const Ln=vn===Jt;return(0,X.jsx)(Ye,{...Jt,isSelected:Ln,onClick:$t,onMouseEnter:Ln?null:()=>{Jn(Jt)},onMouseLeave:Ln?()=>Jn(null):null},In)}):(0,X.jsx)(g.E,{noIconText:I18N.Expression.no_result,className:"no-icon-placeholder"})}),Yn?(0,X.jsx)(Z,{valueType:Kt,pauseError:Pn,resumeError:_n}):(vn==null?void 0:vn.type)===a.wv.func&&vn.funcInfo?(0,X.jsx)(de,{info:vn.funcInfo}):(Wt==null?void 0:Wt.type)===a.wv.func&&Wt.data.funcInfo?(0,X.jsx)(de,{info:Wt.data.funcInfo}):(Wt==null?void 0:Wt.type)===a.wv.builtinVar?(0,X.jsx)(he,{info:Wt.data.info}):Nn&&!vn&&Nn.data.funcInfo?(0,X.jsx)(de,{info:Nn.data.funcInfo}):Nn&&!vn&&((0,ie.hp)(Nn.data.vacantFrom)||(0,ie.iZ)(Nn.data.vacantFrom))?(0,X.jsx)(Se,{info:Nn.data}):(vn==null?void 0:vn.type)===a.wv.builtinVar?(0,X.jsx)(he,{info:vn.info}):(0,X.jsx)(G,{valueType:Kt})]})}),Ye=Ve=>{var ut;let{varDataType:Kt,name:St,varData:fn,text:En,type:gn,description:Yn,isSelected:Pn,onClick:_n,onMouseEnter:Fn,onMouseLeave:Nn}=Ve;const io=gn==="operator",[to,go]=(0,n.useState)(!0),Io=()=>{Fn==null||Fn(),go(!1)},co=()=>{Nn==null||Nn(),go(!0)};(0,n.useEffect)(()=>{Pn||go(!0)},[Pn]);const On=Pn&&!to,Cn=Kt?(0,S.Zg)(Kt,fn):gn===a.wv.func?"interaction/expression/fx":gn===a.wv.builtinVar?"interaction/builtinVar/"+Ie[En]:gn===a.wv.wattrDummy?"interaction/expression/wattrDummy":gn===a.wv.vacant?"interaction/expression/search":null,Je=gn===a.wv.builtinVar&&En!=null&&En.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)(P.C,{name:Cn,className:Je}),On?(0,X.jsx)(b.A,{delay:500,position:"bottom",max:"240px",tipClassName:"var-tooltip",children:(0,X.jsx)("span",{className:"text",children:vn?En:St})}):(0,X.jsx)("span",{className:"text",children:vn?En:St})]}),(0,X.jsx)("span",{className:c()("description",Kt),children:(0,X.jsxs)("span",{className:"content",children:[vn?St:(ut=Yn!=null?Yn:En)!=null?ut:String(fn).replace(/\n/g,"\\n"),Kt==="string"&&On&&(0,X.jsx)(b.A,{delay:500,position:"bottom",tipClassName:"var-tooltip",style:{maxWidth:240,wordBreak:"break-all",maxHeight:600,overflow:"auto",whiteSpace:"pre-wrap",userSelect:"text"},children:fn})]})})]})},Qe=pt;var lt=e(54449),tt=e(5388),qe=e(69623),et=e(55584),st=e(4820);const at=()=>{const[Ve,ut]=(0,n.useState)(!1),[Kt,St]=(0,n.useState)(""),[fn,En]=(0,n.useState)(""),[gn,Yn]=(0,n.useState)(!1),[Pn,_n]=(0,n.useState)(0),Fn=(0,n.useRef)(null),Nn=(0,n.useRef)(null),io=(0,n.useRef)(null),to=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(Ve&&!gn){const Je=Math.max(0,3e3-Pn);clearTimeout(Fn.current),Fn.current=setTimeout(()=>{Nn.current=setTimeout(()=>{ut(!1),_n(0)},100)},Je);const vn=Date.now();clearInterval(io.current),io.current=setInterval(()=>{gn||_n(Jn=>Math.min(Jn+(Date.now()-vn),3e3))},100)}return()=>{clearTimeout(Fn.current),clearInterval(io.current),clearInterval(Nn.current)}},[Ve,gn,Pn,fn]),{isShow:Ve,show:()=>{to.current&&(to.current.style.opacity=1),ut(!0),St(""),_n(0),Yn(!1),En("")},elementRef:to,displayText:Kt,pause:()=>{Yn(!0),clearTimeout(Fn.current),clearInterval(Nn.current),clearInterval(io.current)},resume:()=>{Yn(!1)},clear:()=>{clearTimeout(Fn.current),clearInterval(Nn.current),clearInterval(io.current),_n(0),ut(!1)}}};var ct=e(66633);const rt=12,At=120,ot=140,Tt=Ve=>{let{defaultText:ut,handleVacantCommand:Kt,vacantEditorState:St,setVacantEditorState:fn,editingVacant:En}=Ve;const gn=(0,t.IV)(En.data.type===a.wv.vacant?En.data.valueType:En.data.varDataType)||"",Yn=En.data.vacantFrom,Pn=(0,ie.Zv)(Yn)?ot:At,[_n,Fn]=(0,n.useState)(ut),[Nn,io]=(0,n.useState)({top:-9999,left:-9999}),[to,go]=(0,n.useState)(rt),Io=_n===""?gn.length*rt:0,[co,On]=(0,n.useState)(0),Cn=(0,n.useRef)(null),Je=(0,n.useRef)(null),vn=(0,n.useRef)(!1),[Jn,ao]=(0,n.useState)([""]),[no,Oe]=(0,n.useState)(0),[$n,$t]=(0,n.useState)(0),[cn,yt]=(0,n.useState)(1),[Lt,Wt]=(0,n.useState)(0),Jt=Re=>{const De=[...Jn.slice(0,no+1),Re];De.length>100&&De.shift(),ao(De),Oe(De.length-1)},In=Re=>{Fn(Re.target.value),vn.current||Jt(Re.target.value)},Ln=()=>{if(no>0){Oe(no-1);const Re=Jn[no-1];Fn(Re),Cn.current.value=Re}},hn=()=>{if(no{const De=Cn.current;if(!De)return;if((Re.ctrlKey||Re.metaKey)&&(Re.key==="Z"||Re.shiftKey&&Re.key==="z")){Re.preventDefault(),hn();return}if((Re.ctrlKey||Re.metaKey)&&Re.key==="z"){Re.preventDefault(),Ln();return}const Be=_n!==ut;Re.stopPropagation(),(Re.key==="ArrowUp"||Re.key==="ArrowDown")&&(Re.preventDefault(),Kt({type:"SuggestMove",isValueChanged:Be,option:{dir:Re.key==="ArrowUp"?"up":"down"}}));const $e=De.selectionStart,Ze=De.selectionEnd;if($e===0&&Ze===0&&(Re.key==="ArrowLeft"&&(Re.preventDefault(),Kt({type:"Move",isValueChanged:Be,option:{dir:"left",value:_n,placeholder:gn}})),Re.key==="Backspace"&&(Re.preventDefault(),Kt({type:"ExitFromDelete",isValueChanged:Be,option:{value:_n,from:"backspace"}}))),$e===_n.length&&Ze===_n.length&&(Re.key==="ArrowRight"&&(Re.preventDefault(),Kt({type:"Move",isValueChanged:Be,option:{dir:"right",value:_n,placeholder:gn}})),Re.key==="Delete"&&(Re.preventDefault(),Kt({type:"ExitFromDelete",isValueChanged:Be,option:{value:_n,from:"delete"}}))),Re.key==="Tab"&&(Re.preventDefault(),Kt({type:"Tab",isValueChanged:Be,option:{value:_n}})),Re.key==="Enter"){if((0,ct.cX)()&&vn.current){let nt=St;nt=o.$t.createWithContent(o.z6.createFromText(_n),le()),nt=(0,a.Qg)(nt,Cn.current.selectionStart,Cn.current.selectionEnd),fn(nt)}Re.preventDefault(),Re.stopPropagation(),Kt({type:"Enter",isValueChanged:Be,option:{value:_n}})}};(0,n.useEffect)(()=>{var Re;Cn.current.value=ut,(Re=Cn.current)==null||Re.select(),Fn(ut),Jt(ut);let De=St;return De=o.$t.createWithContent(o.z6.createFromText(ut),le()),De=(0,a.Qg)(De,0,ut.length-1),fn(De),()=>{fn(null)}},[ut,En]);const vo=Re=>{if(vn.current)return;let De=St;De=o.$t.createWithContent(o.z6.createFromText(_n),le()),De=(0,a.Qg)(De,Cn.current.selectionStart,Cn.current.selectionEnd),fn(De)},Qn=Re=>{$t($n+1)},He=Re=>{$t($n+1)};return(0,n.useEffect)(()=>(setTimeout(()=>{let Re=o.$t.createWithContent(o.z6.createFromText(_n),le());Re=(0,a.Qg)(Re,Cn.current.selectionStart,Cn.current.selectionEnd),fn(Re)},24),()=>{}),[$n]),(0,n.useLayoutEffect)(()=>{let Re;if(En&&(Re=document.querySelector('#expression-editor .expression-cell[data-cid="'+En.key+'"]'),Re)){const{top:De,left:Be,width:$e,height:Ze}=Re.getBoundingClientRect();io({top:De,left:Be});const nt=$e>Pn?Pn:$e;go(nt),On(Ze)}return()=>{Re&&(Re.style.removeProperty("width"),Re.style.removeProperty("overflow"),Re.style.removeProperty("white-space"),Re.classList.remove("no-is-focus"))}},[En,no]),(0,n.useLayoutEffect)(()=>{const Re=document.getElementById("expression-editor"),De=Be=>{const $e=Be.target.scrollTop,Ze=document.querySelector('#expression-editor .expression-cell[data-cid="'+En.key+'"]');if(Ze){const{top:nt,left:mt}=Ze.getBoundingClientRect();io({top:nt,left:mt}),Ze.offsetTop-$e>158?yt(0):yt(1)}};return Re==null||Re.addEventListener("scroll",De),()=>{Re==null||Re.removeEventListener("scroll",De)}},[]),(0,n.useLayoutEffect)(()=>{const Re=Je.current.getBoundingClientRect().width,De=Re,Be=(De>Pn?Pn:De)+((0,ie.Zv)(Yn)?(0,ie.hp)(Yn)?22:20:0);let $e=Re>Pn?Pn:Re;Yn==="search"||Yn==="func"?$e-=4:$e-=2,go($e);const Ze=document.querySelector('#expression-editor .expression-cell[data-cid="'+En.key+'"]');if(Ze){Ze.style.setProperty("width",Be+"px"),Ze.style.setProperty("overflow","hidden"),Ze.style.setProperty("white-space","nowrap");const{top:nt,left:mt}=Ze.getBoundingClientRect();io({top:nt,left:mt})}return()=>{}},[_n,to]),(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(ft,{className:c()("vacant-input"),style:{top:Nn.top,left:Nn.left,height:co,opacity:cn},onClick:Qn,onDoubleClick:He,children:[(0,ie.Zv)(Yn)&&(0,X.jsx)("div",{className:"icon-container",children:(0,X.jsx)(P.C,{className:c()(En.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:vo,onBlur:Re=>{Kt({type:"Enter",isValueChanged:_n!==ut,option:{placeholder:gn,value:_n,fromBlur:!0}})},onCompositionStart:Re=>{console.log("start"),Re.preventDefault()},onCompositionStartCapture:Re=>{vn.current=!0,Re.preventDefault()},onCompositionEnd:Re=>{vn.current=!1,Re.preventDefault(),vo(void 0),Jt(Re.target.value)}},En.data.key)]}),(0,X.jsx)(Nt,{style:{top:Nn.top,left:Nn.left,height:co,minWidth:Io},className:"vacant-input",defaultValue:ut,ref:Je,contenteditable:!0,children:_n||gn},En.data.key)]})},ft=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:",";}"],Ve=>Ve.theme.color_btn_secondary_active,Ve=>Ve.theme.color_text_L1,Ve=>Ve.theme.color_text_L3),Nt=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;"],Ve=>Ve.theme.color_bg_card);var Bt=e(20389),zt=e(41815),Xt=e(44916);const bt="is-focus",jn={type:"space",text:" "},xo=Ve=>Ve.reduce((ut,Kt)=>(ut.set(Kt.key,Kt.name),ut),new Map),Po=(Ve,ut)=>ut.size!==Ve.length?!0:Ve.some(Kt=>Kt.name!==ut.get(Kt.key)),yo=(0,n.memo)(Ve=>{var ut,Kt;let{readOnly:St=!0,value:fn="",valueType:En,scope:gn={variables:[]},width:Yn,height:Pn=28,maxHeight:_n,placeholder:Fn,multiline:Nn,disabled:io,simple:to,onSubmit:go,onClick:Io,onCancel:co,currentWidgetKey:On,className:Cn,initPosition:Je}=Ve;Yn=Yn!=null?Yn:"100%";const{variables:vn,p2sdkStore:Jn=sdkStore}=gn,ao=(0,n.useRef)(null),no=(0,n.useRef)(null),Oe=(0,n.useRef)(null),$n=(0,n.useRef)(null),$t=(0,n.useRef)(vn),cn=(0,n.useRef)(xo(vn)),[yt,Lt]=(0,n.useState)(o.$t.createEmpty()),[Wt,Jt]=(0,n.useState)(!1),[In,Ln]=(0,n.useState)(!1),hn=(0,n.useRef)(),vo=yt.getCurrentContent().getPlainText(),Qn=yt.getSelection(),He=Qn.getHasFocus(),Re=(0,n.useRef)(void 0),De=(0,n.useRef)(new Map),Be=(0,n.useRef)(!1),[$e,Ze]=(0,n.useState)((Je==null?void 0:Je.top)||0),[nt,mt]=(0,n.useState)((Je==null?void 0:Je.left)||0),[xt,gt]=(0,n.useState)(void 0),[wt,Zt]=(0,n.useState)(void 0),[Ft,Gt]=(0,n.useState)(null),Qt=!1?"combo":"non-combo",{menuStatus:Ct,handleToggle2ByDom:yn,handleClose:rn}=(0,lt.z)(),{isShow:Rt,show:Dn,pause:To,resume:mo,clear:ro}=at(),Bn=Ut=>{const an=document.querySelector('#expression-editor .expression-cell[data-cid="'+Ut.entityKey+'"]');if(!an)return;let wn=!0;xt&&Ut.entityKey===xt.entityKey?(gt(void 0),wn=!1):gt(Ut),yn(an,xn=>{let{left:mn,top:Sn}=xn;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)};He&&Wt!==He&&Jt(!0);const uo=(Ut,an)=>{let wn=Ut;const xn=Ut.getCurrentContent(),mn=Ut.getLastChangeType();let Sn=xn.getPlainText();if(Sn!==vo||an){if(wn=(0,a.bd)({editorState:Ut,variables:vn,p2sdkStore:Jn}),Sn=Ut.getCurrentContent().getPlainText(),!vo&&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:le(to)}))}return["undo","redo"].includes(mn)||(wn=o.$t.push(wn,wn.getCurrentContent(),mn)),Lt(wn),wn},Jo=(Ut,an)=>{if(an.type===a.wv.operator)return Lt(Ut),Ut;let wn=Ut,xn=Ut.getCurrentContent(),Sn=Ut.getSelection().getEndOffset();const Tn=(0,a.ZY)(Ut,0)[0];(Tn==null?void 0:Tn.type)!==a.wv.space&&(xn=(0,a.ki)(xn,0),Sn+=1);const An=xn.getFirstBlock().getEntityAt(xn.getPlainText().length-1),oo=An&&xn.getEntity(An);let No=!1;(oo==null?void 0:oo.type)!==a.wv.space&&(xn=(0,a.ki)(xn,xn.getPlainText().length),No=!0),wn=o.$t.set(wn,{currentContent:xn});let Vo=xn.getSelectionAfter();return No&&(Vo=Qn.merge({anchorOffset:Sn,focusOffset:Sn})),wn=o.$t.forceSelection(wn,Vo),Lt(wn),wn};$t.current!==vn&&(Po(vn,cn.current)&&(uo(yt,!0),cn.current=xo(vn)),$t.current=vn);const $o=(Ut,an)=>{let wn=an;const xn=Qn.getStartOffset(),mn=Qn.getEndOffset();if(Ut==='"'||Ut==="'")if(Qn.isCollapsed()){const Sn=(0,a.kj)(Ut,an);if(Sn)return Lt(Sn),"handled"}else{const Sn=(0,a.aO)(an,xn),{entity:Tn,range:un}=Sn.current||{};if(((0,a.M4)(Tn,a.wv.number)||(0,a.M4)(Tn,a.wv.unknown))&&un[0]===xn&&un[1]===mn)return wn=(0,a.FN)(wn,{text:""+Ut+vo.slice(...un)+Ut,type:a.wv.string,replaceRange:un},{}),Lt(wn),"handled"}if(["&","|","="].includes(Ut)){const Sn=(0,a.kj)(Ut,an,a.wv.operator);if(Sn)return Lt(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}),Lt(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),Lt(An),"handled"}}if((0,a.Zo)(Ut)&&!a.yk.includes(Ut)){const Sn=(0,a.aO)(an,xn),{entity:Tn,range:un}=Sn.current||{};if((Tn==null?void 0:Tn.type)===a.wv.string&&Qn.isCollapsed()&&xn>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}),Lt(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),Lt((0,a.bd)({editorState:un,p2sdkStore:Jn,variables:vn})),"handled"}}},po=()=>{var Ut;return Wt&&((Ut=$n.current)==null?void 0:Ut.getSelectedItem())},us=Ut=>{if(xt){if(Ut.code==="Backspace"||Ut.code==="Delete"){const wn=(0,a.Q8)(yt,xt.entityKey);en(yt,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)&&Wt)return Ut.key;if(Ut.code==="Space"){const{focusOffset:wn}=Qn,[xn,,mn]=(0,a.c0)(yt);return(0,a.M4)(xn,a.wv.string)&&wn>mn[0]&&wnSn.range[0]&&xn0&&zo.trim().length===0)return en(yt,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 xn=yt.getSelection().getStartOffset(),mn=(0,a.aO)(yt,xn);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=yt;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)(yt,An,0,!an,Zt))return"handled";let Vo=(0,a.bP)(yt,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)(yt,xs);if(ys)return uo(ys),"handled"}}Tn=(0,a.Qg)(Tn,an?Ko:Vo,Vo)}return Tn=o.$t.push(Tn,Tn.getCurrentContent(),"move-focusoffset"),uo(Tn),"handled"}if(Ut.includes("Home")){var wn;const Tn=yt.getSelection(),un=Tn.getStartOffset(),An=(0,a.aO)(yt,un);if(((wn=An.current)==null?void 0:wn.entity.type)===a.wv.vacant){const oo=(0,be.Cs)(yt,An.current.key);return uo((0,a.Qg)(yt,oo.start+1,oo.start+1)),"handled"}if(!an){const oo=(0,a.rR)(yt,!0);if(oo)return uo(oo),"handled"}return uo((0,a.Qg)(yt,an?Tn.anchorOffset:0,0)),"handled"}if(Ut.includes("End")){var xn;const Tn=yt.getSelection(),un=Tn.getStartOffset(),An=(0,a.aO)(yt,un);if(((xn=An.current)==null?void 0:xn.entity.type)===a.wv.vacant){const No=(0,be.Cs)(yt,An.current.key);return uo((0,a.Qg)(yt,No.end-1,No.end-1)),"handled"}const oo=vo.length;if(!an){const No=(0,a.rR)(yt);if(No)return uo(No),"handled"}return uo((0,a.Qg)(yt,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 uo((0,a.FN)(yt,jn,{})),"handled";if(Ut.includes("RemoveRange"))return en(),"handled";if(Ut==="Submit")return Un(),"handled";if(Ut==="Cancel")return Vn(),"handled";if(Ut==="backspace"&&Qn.isCollapsed()){const{focusOffset:Tn}=Qn,[un,,An]=(0,a.ZY)(yt,Tn);if((0,a.OO)(un)&&An[0]===Tn)return en(yt,Qn.merge({anchorOffset:An[0],focusOffset:An[1]})),"handled"}if(Ut==="PreventKey")return"handled";if(Ut==="ToggleWAttr"){const[Tn,un]=(0,a.c0)(yt);Bn({entityKey:un,entity:Tn})}return"not-handled"},ht=Ut=>{let{value:an,isValueChanged:wn}=Ut;if(!wt)return;const xn=(0,be.Cs)(yt,wt.key);if((0,ie.am)(wt.data.vacantFrom)){const mn=yt,Sn=(0,a.b5)(mn),Tn=Sn.filter(An=>An.start>xn.end&&An.type===a.wv.vacant&&(0,ie.am)(An.data.vacantFrom)),un=Sn.findLast(An=>An.end<=xn.start&&An.text==="(");if(Tn.length>0){const An=Tn[0];wn&&uo((0,a.FN)(yt,{text:an,realText:an,replaceRange:[xn.start,xn.end],...(0,ie.xR)(wt)},{insertSpaceV:!1})),setTimeout(()=>{Zt({key:An.key,data:An.data})},4)}else{let An=yt;wn&&(An=(0,a.FN)(yt,{text:an,realText:an,replaceRange:[xn.start,xn.end],...(0,ie.xR)(wt)},{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;Zt(void 0),Lt((0,a.Qg)(An,Vo,Vo))}return"handled"}else(0,ie.hp)(wt.data.vacantFrom)||uo((0,a.FN)(yt,{text:an,realText:an,replaceRange:[xn.start,xn.end],...(0,ie.xR)(wt)},{insertSpaceV:!1})),Zt(void 0)},Ht=Ut=>{let{type:an,isValueChanged:wn,option:xn}=Ut;if(!wt)return;const mn=(0,be.Cs)(yt,wt.key);if(an==="Tab")ht({value:xn.value,isValueChanged:wn});else if(an==="Enter"){if(xn.fromBlur){Be.current=!0,wn&&!(0,ie.hp)(wt.data.vacantFrom)&&uo((0,a.FN)(yt,{text:xn.value||xn.placeholder,realText:xn.value,replaceRange:[mn.start,mn.end],...(0,ie.xR)(wt)},{insertSpaceV:!1,noFocus:!0})),Zt(void 0);return}po()&&$n.current.handleInsertItem(void 0,{})}else if(an==="ExitFromDelete"){if((0,ie.hp)(wt.data.vacantFrom)){const Vo=xn.from==="backspace"?mn.start:mn.end;uo((0,a.Qg)(yt,Vo,Vo)),Zt(void 0);return}const un={ref:""};let An=(0,a.FN)(yt,{text:xn.value,type:a.wv.unknown,replaceRange:[mn.start,mn.end]},{insertSpaceV:!1,createKeyRef:un});const oo=(0,be.Cs)(An,un.ref);if(An=uo(An),!oo){Zt(void 0);return}const No=xn.from==="backspace"?oo.start:oo.end;uo((0,a.Qg)(An,No,No)),Zt(void 0)}else if(an==="Move"){let un;const An={ref:""};wn&&!(0,ie.hp)(wt.data.vacantFrom)?un=(0,a.FN)(yt,{text:xn.value||xn.placeholder,realText:xn.value,replaceRange:[mn.start,mn.end],...(0,ie.xR)(wt)},{insertSpaceV:!1,createKeyRef:An}):(An.ref=wt.key,un=yt);const oo=(0,be.Cs)(un,An.ref);xn.dir==="left"?uo((0,a.Qg)(un,oo.start-1,oo.start-1)):uo((0,a.Qg)(un,oo.end,oo.end)),Zt(void 0)}else if(an==="SuggestMove")if(xn.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,xn=(0,a.JX)(wn);return(0,a.LB)(xn,En,{...gn,editorWattrValidMap:De.current,p2sdkWkeyOnEval:"dummy"}),Ln(!1),xn}catch(wn){if(Ln(!0),Ut){var an;(an=Oe.current)==null||an.classList.add("error-swing"),setTimeout(()=>{var xn;(xn=Oe.current)==null||xn.classList.remove("error-swing")},1e3)}console.warn("[EvalError]",wn)}},[In,gn,En]),en=function(Ut,an){if(Ut===void 0&&(Ut=yt),an||(an=(0,a.q9)(Ut)),an.isCollapsed())return Ut;const wn=Ut.getCurrentContent(),xn=o.e6.removeRange(wn,an);let mn=o.$t.push(Ut,xn,"remove-range");const Sn=xn.getSelectionAfter();return mn=o.$t.forceSelection(mn,Sn),uo(mn),mn},Un=()=>{let Ut;vo.trim()?Ut=nn(!0):Ut="",typeof Ut=="string"?go==null||go(Ut,(0,a.nw)(yt),yt):Dn()},Kn=(Ut,an)=>{an.preventDefault(),an.stopPropagation();const wn=Ut.props.editorState,xn=(0,a.q9)(wn);if(xn.isCollapsed())return an.clipboardData.setData("text/plain","");const mn=(0,a.$w)(wn,[xn.getStartOffset(),xn.getEndOffset()]),Sn=(0,et.vd)({editorState:wn,richTextV1:(0,st.$$)(),w:void 0,h:void 0,isRecordAttr:!0});an.clipboardData.setData("text/html",Sn),an.clipboardData.setData("text/plain",mn)},Hn=(Ut,an)=>{an.preventDefault(),an.stopPropagation();const wn=Ut.props.editorState,xn=(0,a.q9)(wn);if(xn.isCollapsed())return an.clipboardData.setData("text/plain","");const mn=(0,a.$w)(wn,[xn.getStartOffset(),xn.getEndOffset()]),Sn=(0,et.vd)({editorState:wn,richTextV1:(0,st.$$)(),w:void 0,h:void 0,isRecordAttr:!0});an.clipboardData.setData("text/html",Sn),an.clipboardData.setData("text/plain",mn),en(wn)},bo=(Ut,an)=>{let wn;if(an!=null&&an.includes("{wt||Ct.isOpenContextMenu||(Ut.preventDefault(),hn.current!==vo||!vo?(hn.current=vo,Un()):Vn())},Vn=()=>{hn.current="",co==null||co()},Rn=Ut=>{var an,wn,xn,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=(xn=Ut.target)==null?void 0:xn.closest(".expression-cell");if(!Ut.target.closest(".vacant-input")){if((mn=Ut.target)!=null&&mn.closest(".expression-cell")){const un=Tn.dataset.cid;if(wt&&wt!==un){Zt(void 0);return}}else if(wt){Zt(void 0);return}if((Sn=Oe.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(unce&&An>=Pt&&hs((oo?"Shift":"")+"End")}}},Mo=Ut=>{Ct.isOpenContextMenu||Oe.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;Ct.isOpenContextMenu||Ut.target&&Oe.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(St)Ze(0),mt(0);else{var Ut;const{top:an,height:wn,right:xn}=(Ut=Oe.current)==null?void 0:Ut.getBoundingClientRect(),mn=an+wn+8-window.innerHeight;mn>0&&Ze(-mn-5),xn>window.innerWidth?mt(window.innerWidth-8-xn):mt((Je==null?void 0:Je.left)||0)}return()=>{}},[St]),(0,n.useEffect)(()=>{if(In&&!He&&!St&&!wt&&!Be.current){var Ut;(Ut=ao.current)==null||Ut.focus()}else Be.current=!1},[In,He,St,wt]),(0,n.useEffect)(()=>{!St&&In&&nn()},[vo,St,In,nn]),(0,n.useEffect)(()=>{ro()},[St]),(0,n.useEffect)(()=>{var Ut;let an;const wn=(Ut=ao.current)==null?void 0:Ut.editor,xn=Sn=>{const Tn=ao.current.props.editorState,un=(0,a.q9)(Tn);un.isCollapsed()||en(Tn,un)},mn=fn.trim();return mn?an=(0,a.bd)({editorState:o.$t.createWithContent(o.z6.createFromText(mn),le(to)),variables:vn,p2sdkStore:Jn,isInit:!0}):an=o.$t.createWithContent(o.z6.createFromText(mn),le(to)),St?Lt(an):(Lt((0,a.Qg)(an,0,an.getCurrentContent().getPlainText().length)),wn&&wn.addEventListener("compositionstart",xn)),Ln(!1),()=>{a.RQ.clearMemo(),wn.removeEventListener("compositionstart",xn)}},[fn,St]),(0,n.useEffect)(()=>(Gt(wt?o.$t.createWithContent(o.z6.createFromText(""),le()):void 0),()=>{}),[wt]),(0,n.useEffect)(()=>{if(!no.current)return;let Ut=null,an=new Set;const wn=mn=>{if(!no.current)return;Ut=null;const Sn=yt.getSelection(),Tn=Sn.isCollapsed(),An=yt.getCurrentContent().getAllEntities()||[],oo=(0,a.Uo)(),No=no.current,Vo=new Set;if(He){const ss=(0,a.cj)(yt);if(No.querySelectorAll(".expression-cell").forEach(ce=>{var Pt;const Mt=ce.dataset.cid,je=ss.has(Mt),vt=(Pt=ce.querySelector(".expression-text"))==null?void 0:Pt.getBoundingClientRect();if((0,a.gf)(ce))Tn&&ce.classList.contains("vacant-cell")||(ce.classList.add(bt),Vo.add(Mt));else if(ce.classList.remove(bt),je){var kt;const Yt=An.get(Mt);(0,a.OO)(Yt)&&((kt=(0,a.Q8)(yt,Mt))==null?void 0:kt[0])===Sn.anchorOffset&&(Ut=Mt)}}),No.clientHeight0){No.scrollBy(0,kt+vt);return}kt=ce-Mt,kt<0&&No.scrollBy(0,kt-vt)}}else No.querySelectorAll(".expression-cell."+bt).forEach(ss=>{ss.classList.remove(bt)});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()}},xn=()=>{setTimeout(()=>{if(Ut){const mn=yt.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(yt,{selection:No}))}},50)};return wn(),document.addEventListener("selectionchange",wn),window.addEventListener("mouseup",xn),()=>{document.removeEventListener("selectionchange",wn),window.removeEventListener("mouseup",xn)}},[yt,He]);const dn=()=>{gt(void 0),rn()};(0,n.useEffect)(()=>{xt&&((0,a.Q8)(yt,xt.entityKey)||dn())},[yt,xt]);const pn=Ut=>{if(!Ut.target.closest(".wAttr-select-panel")){Ut.stopPropagation();const an=(0,be.Cs)(yt,xt.entityKey);if(dn(),Ut.target.closest(".expression-cell[data-cid="+CSS.escape(xt.entityKey)+"]")){uo((0,a.Qg)(yt,an.end+1,an.end+1));return}if(Ut.target.closest(".DraftEditor-root"))return;uo((0,a.Qg)(yt,an.end+1,an.end+1))}},ho=(Ut,an,wn)=>{const xn=(0,we.$8)(Ut,an),mn=(0,be.Cs)(yt,xt.entityKey),Sn=(0,Bt.MO)({exprWattr:xn,p2sdkStore:Jn}),Tn=uo((0,a.bd)({editorState:(0,a.FN)(yt,{type:a.wv.wattr,text:Sn.name2,nameKV:Sn,key:xn,replaceRange:[mn.start,mn.end],valueType:(0,Bt.Cz)(an).type},{}),variables:vn,p2sdkStore:Jn}));if(gt(void 0),rn(),xt.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(()=>{Zt({key:oo.key,data:oo.data})},4):(0,a.g_)({editingVacant:{key:xt.entityKey,data:xt.entity.data},handleChange:uo,newEditorState:Tn,oldEditorState:yt,oldRange:mn})}};if(St)return(0,X.jsx)(f,{onClick:Io,className:c()(Cn,"is-readonly",{"is-disabled":io}),style:{width:Yn,height:Pn},children:(0,X.jsx)(re.Provider,{value:{currentWidgetKey:On,vMode:Qt},children:(0,X.jsx)(o.KE,{disabled:io,editorState:yt,ref:ao,readOnly:St,placeholder:Fn,ariaMultiline:Nn})})});let Oo;wt&&(Oo=yt.getCurrentContent().getEntity(wt.key));let qn="",So="";if(Ct.isOpenContextMenu&&(xt==null||(ut=xt.entity)==null?void 0:ut.type)===a.wv.wattr&&De.current.get(xt.entity.data.key)===!0){const[Ut,an]=(0,we._S)(xt.entity.data.key);qn=Ut,So=an}return(0,X.jsxs)(p,{style:{width:Yn,maxHeight:_n},$top:$e,$left:nt,ref:Oe,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:xt,handleClickWAttrEntity:Ao,editorState:yt,updateEditorState:Lt,vacantRef:Re,setEditingVacant:Zt,vMode:Qt,editorWattrValidMap:De.current},children:(0,X.jsx)(o.KE,{disabled:io,editorState:yt,ref:ao,onBlur:zn,onChange:uo,handleBeforeInput:$o,handleKeyCommand:hs,keyBindingFn:us,handlePastedText:bo,onCopy:Kn,onCut:Hn,preserveSelectionOnBlur:!0,placeholder:Fn,ariaMultiline:Nn})})}),Ct.isOpenContextMenu&&xt&&(0,qe.createPortal)((0,X.jsxs)(v,{className:"wAttr-select-panel",position:Ct.position,children:[(0,X.jsx)(tt.Vz,{keyTriggerItem:On,keyTargetItem:qn,attrKey:So,onSelectTargetAttr:ho,editorWattrValidMap:De.current,wAttrEditingMisc:xt,handleChange:uo,editorState:yt,handleCloseWattrSelect:dn,removeRange:en}),(0,X.jsx)(w.A,{target:document.body,onClick:(0,w.t)(pn,{capture:!0})})]}),document.body),(0,X.jsx)(Qe,{ref:$n,editorState:yt,vacantEditorState:Ft,editingVacant:wt,scope:gn,valueType:En,updateEditorState:Lt,focusEditor:()=>ao.current.focus(),isShowError:Rt,pauseError:To,resumeError:mo,clearError:ro,wAttrEditingMisc:xt,setEditingVacant:Zt,handleClickWAttrEntity:Ao,handleSuggestSelectUpdate:Jo,handleChange:uo}),wt&&(0,X.jsx)(Tt,{editingVacant:wt,defaultText:wt.data.type===a.wv.vacant?((Kt=Oo)==null?void 0:Kt.data.realText)||"":Oo.data.text,handleVacantCommand:Ht,vacantEditorState:Ft,setVacantEditorState:Gt}),(0,X.jsx)(w.A,{target:window,onClick:(0,w.t)(Mo,{capture:!0})}),(0,X.jsx)(w.A,{target:window,onMouseDown:(0,w.t)(wo,{capture:!0})})]})})},29611:(Fe,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||{})},29798:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>s});var n=e(38502),r=Object.defineProperty,c=Object.defineProperties,o=Object.getOwnPropertyDescriptors,w=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,y=(l,C,v)=>C in l?r(l,C,{enumerable:!0,configurable:!0,writable:!0,value:v}):l[C]=v,h=(l,C)=>{for(var v in C||(C={}))u.call(C,v)&&y(l,v,C[v]);if(w)for(var v of w(C))d.call(C,v)&&y(l,v,C[v]);return l},i=(l,C)=>c(l,o(C)),f=(l,C)=>{var v={};for(var a in l)u.call(l,a)&&C.indexOf(a)<0&&(v[a]=l[a]);if(l!=null&&w)for(var a of w(l))C.indexOf(a)<0&&d.call(l,a)&&(v[a]=l[a]);return v},s=(0,n.forwardRef)((l,C)=>{var v=l,{size:a,spin:P,style:b}=v,g=f(v,["size","spin","style"]);const S=h(h({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:P?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),b);return n.createElement("svg",i(h({ref:C,style:S},g),{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),n.createElement("path",{d:"M8.03033 6.96967C7.73744 6.67678 7.26256 6.67678 6.96967 6.96967C6.67678 7.26256 6.67678 7.73744 6.96967 8.03033L10.9393 12L6.96967 15.9697C6.67678 16.2626 6.67678 16.7374 6.96967 17.0303C7.26256 17.3232 7.73744 17.3232 8.03033 17.0303L12 13.0607L15.9697 17.0303C16.2626 17.3232 16.7374 17.3232 17.0303 17.0303C17.3232 16.7374 17.3232 16.2626 17.0303 15.9697L13.0607 12L17.0303 8.03033C17.3232 7.73744 17.3232 7.26256 17.0303 6.96967C16.7374 6.67678 16.2626 6.67678 15.9697 6.96967L12 10.9393L8.03033 6.96967Z",fill:"#19191A"}))})},30275:(Fe,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:(Fe,ee,e)=>{"use strict";e.d(ee,{Tl:()=>n.A,Hk:()=>c.A,Yw:()=>K,CB:()=>r.A});var n=e(57150),r=e(73352),c=e(61899),o=e(38502),w=e(18381),u=e(67787),d=e(53732),y=e.n(d),h=e(5649),i=e(83199),f=e(17307),p=e(87332),s=e(9680),l=e(75810),C=e(92414),v=e(91063),a=e(46953),P=e(57479),b=e(81973),g=e(60651),S=e(72214);const t=[".var-input-container.is-active",".var-dropmenu",".var-editor",".var-add-menubox"],_=(A,E,U)=>A==="string"?String(E)===String(U):E===U,I={number:["number"],string:["string","number"],boolean:["boolean"]},k=A=>{var E;let{type:U,refVar:O,isIconButton:H,hoverTrigger:Q,className:N,style:L,menuWidth:V=220,showName:M,onlyTag:D,iconTooltip:W,onToggleActive:F,dropdownProps:B,inputClassName:Y,canAddVar:X=!0,isShowAddVarIcon:G=!0,tooltipsContentText:Z,onRenderArrow:J,...te}=A;const he=(0,w.wA)(),de=(0,w.d4)(g.oO),Se=I[U]||[],be=!(0,w.d4)(b.ue).some(qe=>Se.includes(qe.hotAttr.varDataType))&&(0,s.P1)().length===0,ie=(0,o.useRef)(null),oe=(0,o.useRef)(null),ue=(0,o.useRef)(null),ve=(0,o.useRef)(null),re=(0,o.useRef)(H),[fe,we]=(0,o.useState)(!1),[Te,Ie]=(0,o.useState)(null),le=O?(0,s.hZ)(O):null,me=!!le,Pe=le==null?void 0:le.isTrashed,pe=me&&!_(U,le.varData,te.value),ke=(E=te.onChange)!=null?E:te.onConfirm,We=te.disabled||be,Ee=de;W=W!=null?W:U==="string"?I18N.Variable.bind.text:I18N.Variable.bind.var;const Ae=(0,o.useCallback)(qe=>{if(qe){var et,st;(et=oe.current)==null||(st=et.setActive)==null||st.call(et)}else{var at,ct;(at=oe.current)==null||(ct=at.setInactive)==null||ct.call(at)}we(qe),F==null||F(qe)},[F]),Ce=qe=>{var et;We||((et=ie.current)==null||et.click(),Ae(qe))},_e=()=>{We||Ee||Ae(!0)},Ge=()=>{We||Ae(!0)},Xe=(qe,et)=>{if(We)return;if(Ae(!1),!qe){var st;return(st=oe.current)==null||(st=st.$input)==null||st.focus(),ke==null?void 0:ke(te.value,qe)}if(Ee)return;const at=sdkStore.getHotItem(qe);if(!at)return;const{varData:ct}=at.hotAttr;let rt=ct;if(U==="number"){const{min:At,max:ot,precision:Tt=0}=te;typeof At=="number"&&(rt=Math.max(rt,At)),typeof ot=="number"&&(rt=Math.min(rt,ot)),rt=Number(Number(rt).toFixed(Tt))}else U==="string"&&(rt=String(rt));ke==null||ke(rt,qe,et)},Ue=function(){if(U==="number"){for(var qe=arguments.length,et=new Array(qe),st=0;st{var et;return qe&&t.some(st=>{var at;return(at=qe.target)==null?void 0:at.closest(st)})&&!((et=qe.target)!=null&&et.closest(".var-input-container .input"))?(Ae(!0),!1):!0},Ye=qe=>{var et;return qe&&t.some(st=>{var at;return(at=qe.target)==null?void 0:at.closest(st)})&&fe?(Ae(!0),!1):(et=ue.current)!=null&&et.state.isMenuShow?(Ae(!1),!1):!0},Qe=()=>{var qe;(qe=ue.current)!=null&&qe.state.isMenuShow&&(Ae(!1),ue.current.setState({isMenuShow:!1}))},lt=()=>{var qe,et;(qe=ue.current)==null||qe.updateMenuPosition(),(et=ve.current)==null||et.updateEditorPosition()};(0,o.useEffect)(()=>{if(X&&(ue.current.state.isMenuShow!==fe&&ue.current.setState({isMenuShow:fe}),re.current!==H&&(re.current=H,!H&&fe))){var qe,et;(qe=ie.current)==null||qe.scrollIntoView(!1),(et=ue.current)==null||et.updateMenuPosition(),setTimeout(()=>{var st;(st=ve.current)==null||st.updateEditorPosition()},10)}},[fe,X,H]),(0,o.useEffect)(()=>{let qe;const et=st=>{var at;const ct=(at=ie.current)==null?void 0:at.querySelector(".icon-bind");ct&&(ct.style.display=st.type==="mouseenter"?"block":"none")};return Q&&!We&&!Ee&&(qe=document.querySelector(Q),qe&&(qe.addEventListener("mouseenter",et),qe.addEventListener("mouseleave",et))),()=>{var st,at;(st=qe)==null||st.removeEventListener("mouseenter",et),(at=qe)==null||at.removeEventListener("mouseleave",et)}},[Q,We,Ee]),(0,o.useEffect)(()=>{var qe;if(!me)return Ie(null);const et=(qe=oe.current)==null?void 0:qe.$input;if(et){var st,at,ct,rt;const At=window.getComputedStyle(et),ot=et.offsetLeft-4,Tt=Number(At.getPropertyValue("margin-right").replace("px","")),ft=Number(At.getPropertyValue("padding-left").replace("px",""))||0,Nt=At.getPropertyValue("font-family")||void 0;Ie({marginLeft:ot,paddingLeft:ft,fontFamily:Nt,maxWidth:"calc(100% - "+(ot+ft+1)+"px)","--hover-width":(((st=(at=et.offsetParent)==null?void 0:at.clientWidth)!=null?st:0)-((ct=(rt=et.nextElementSibling)==null?void 0:rt.clientWidth)!=null?ct:0)-ot-Tt||et.clientWidth||0)+"px"})}},[me,O]),(0,o.useEffect)(()=>{if(me&&fe){const qe=et=>{var st,at;(st=et.target)!=null&&st.closest("#var-editor")||((at=et.target)==null||(at=at.nodeName)==null?void 0:at.toUpperCase())==="INPUT"||(et.key===P._.Escape&&(Ae(!1),et.stopPropagation()),(et.key===P._.Backspace||et.key===P._.Delete)&&(MB.f.editingRichText&&he({type:"quit:rich:text:editing"}),Xe(""),Ae(!1),et.preventDefault(),et.stopPropagation()))};return document.addEventListener("keydown",qe,!0),()=>{document.removeEventListener("keydown",qe,!0)}}},[me,fe]);const tt=(qe,et)=>Z==null?void 0:Z.length;return(0,S.jsx)(i.A,{content:Z||"",direction:"down",distance:8,isShowTipsByTarget:tt,children:(0,S.jsxs)(j,{className:y()([N,"var-input-container",{"var-binded":me,"is-icon-button":H,"is-active":fe,"is-disabled":We||be,"is-readonly":Ee,"is-boolean":U==="boolean","is-vartag-visible":!!Te}]),style:L,ref:ie,children:[!H&&!D&&U==="number"&&(0,S.jsx)(h.A,{...te,className:"input input-number "+Y,value:M?void 0:te.value,readOnly:!!M,onConfirm:Ue,onClickOutside:Ye,ref:oe,onRenderArrow:J}),!H&&!D&&U==="string"&&(0,S.jsx)(z,{...te,readOnly:!!M,value:M?void 0:te.value,className:y()(["input input-string",{"is-active":fe},Y]),onChange:Ue}),X&&(0,S.jsx)(p.A,{ref:ue,distance:4,menuPosRight:10,...B,isDisabled:We,onClick:Ce,onClickOutside:pt,renderOpener:(0,S.jsxs)(S.Fragment,{children:[!We&&!Ee&&(H||!le)&&G&&(0,S.jsx)(i.A,{content:W,direction:"down",enterHoverTime:200,isSkipShortTimerHover:!0,children:(0,S.jsx)("button",{className:"icon-bind",onClick:_e,children:(0,S.jsx)(f.C,{name:"flow/create/add"})})}),le&&!H&&(0,S.jsx)("div",{className:"var-input "+U,style:Te||U!=="number"?Te:{opacity:0},onClick:Ge,children:(0,S.jsx)(i.A,{position:"down",tipClassName:"fixed-transform-y10 is-open",isShowTipsByTarget:()=>!0,content:(0,S.jsx)(v.A,{isTrashed:Pe,showName:M,isInvaild:pe,varAttr:le,value:te.value}),enterHoverTime:200,isSkipShortTimerHover:!0,children:(0,S.jsxs)("div",{className:y()(["var-tag",{"is-invaild":pe,"is-name":M,"is-trashed":Pe}]),children:[Pe?(0,S.jsx)(f.C,{name:"design/preferencePanel/nav/tips",className:"tip-icon var-icon"}):M?(0,S.jsx)(f.C,{size:16,name:(0,a.Zg)(le.varDataType,le.varData),className:"var-icon"}):null,(0,S.jsx)("span",{children:M?le.name:String(le.varData)+(te.suffix||"")})]})})})]}),renderMenu:(0,S.jsx)(C.A,{style:{width:V},ref:ve,type:U,className:"var-dropmenu",value:O,defaultVarData:te.value,selectedStyle:"binded",readOnly:Ee,needConfirm:!0,onChange:Xe,onSelect:Qe,onListChanged:lt})})]})})},j=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;}}"],A=>A.theme.color_bg_white,A=>A.theme.color_bg_white,A=>A.theme.color_var_bind_point,A=>A.theme.color_bg_white,A=>A.theme.color_text_disabled01,A=>A.theme.color_btn_primary_normal,A=>A.theme.color_bg_border_02,A=>A.theme.color_btn_secondary_active,A=>A.theme.color_text_L1,A=>A.theme.color_proto,A=>A.theme.color_btn_primary_normal,A=>A.theme.color_info_bg,A=>A.theme.color_text_L1,A=>A.theme.color_bg_border_02,A=>A.theme.color_bg_white,A=>A.theme.color_text_L1,A=>A.theme.color_text_L3,A=>A.theme.color_btn_secondary_active,A=>A.theme.color_text_L1,A=>A.theme.color_bg_white,A=>(0,l.oU)(A,"color_bg_black"),A=>A.theme.color_warning,A=>A.theme.color_warning,A=>A.theme.color_text_disabled01),z=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;}"],A=>A.theme.color_text_L1,A=>A.theme.color_bg_border_02,A=>A.theme.color_proto,A=>A.theme.color_proto),K=k;var $=e(63143)},30542:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>C});var n=e(95549),r=e(38502),c=e(69623),o=e(53732),w=e.n(o),u=e(78401),d=e(547),y=e(67787),h=e(37361),i=e(63496);const f=y.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;}"],b=>b.theme.color_bg_canvas,b=>b.theme.drag_sort_box_shadow,b=>b.theme.color_bg_canvas,h.u6,b=>b.theme.color_text_disabled01,i.I_),p=y.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 C extends r.PureComponent{constructor(g){super(g),(0,n.A)(this,"checkAutoScroll",(t,_)=>{const{containerRect:I}=this.props;let k=!1,j=0;t>I.left&&t0&&_I.bottom-20&&_{if(this.timer)return;const{getContainerElement:_}=this.props,I=_();this.timer=setInterval(()=>{I.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:_,rectQueryMap:I,onDragStartCallback:k}=this.props;(0,u.FJ)({onDragStart:()=>{this.setState({isDragStart:!0}),k==null||k()},onDrag:(j,z)=>{const K=t();if(!K)return;const $=j-S.left+K.scrollLeft,A=z-S.top+K.scrollTop;if(jS.right||zS.bottom+20)this.setState({x:j,y:z,matchData:l});else{const E=g.find(U=>{const{min:{x:O,y:H},max:{x:Q,y:N}}=U;return $>=O&&$=H&&A{const{matchData:j}=this.state;this.destroyAutoScrollTask(),_(j)}})}render(){const{offsetX:g,offsetY:S,containerRect:t,rectQueryMap:_,protalClassName:I,noGroupIndicator:k}=this.props,{isDragStart:j,$element:z,x:K,y:$,matchData:A}=this.state;if(!j)return null;const E=!(0,d.El)(K,$,t);return(0,s.jsx)(v,{element:z,x:K,y:$,offsetX:g,offsetY:S,matchData:A,rectQueryMap:_,isOutSideContainer:E,protalClassName:I,noGroupIndicator:k})}}class v 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:_,offsetY:I,matchData:k,rectQueryMap:j,isOutSideContainer:z,protalClassName:K,noGroupIndicator:$}=this.props,{cid:A,parentCid:E,type:U,isValid:O,type2:H,uiCid:Q}=k,N=Q?j[Q]:j[A];return(0,s.jsxs)(p,{className:w()("dnd",{"is-invalid":!O}),children:[!$&&O&&E&&j[E]&&(0,s.jsx)(a,{rect:j[E].rect}),H==="lastChild"&&O&&(0,s.jsx)(a,{rect:j[E].rect}),O&&A&&N&&(0,s.jsx)(P,{type:U,rect:U==="nextSibling"?N.treeRect:N.contentRect}),(0,c.createPortal)((0,s.jsx)(f,{className:w()("dragging-item",{"is-outside-container":z},K),style:{marginTop:-I,marginLeft:-_,left:S,top:t},dangerouslySetInnerHTML:{__html:g.outerHTML}}),this.$portalElem)]})}}const a=b=>{let{rect:g}=b;const S={top:g.top,left:g.left,width:g.width,height:g.height};return(0,s.jsx)("div",{className:"group-indicator",style:S})},P=b=>{let{type:g,rect:S}=b;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:w()("indicator",g),style:t,children:[(0,s.jsx)("span",{className:"indicator-line"}),(0,s.jsx)("span",{className:"indicator-circle"})]})}},31222:(Fe,ee,e)=>{"use strict";e.d(ee,{_H:()=>d,jm:()=>w,lS:()=>o});var n=e(15515),r=e(53940),c=e(34860);const o="leftnav_collapse",w="ro_leftnav_collapse",u={show:(0,n.Yt)((0,c.OB)()?o:w,!0,n.qW.Boolean),width:r.Cj,maxWidth:1/0};function d(y,h){y===void 0&&(y=u);const{type:i,payload:f}=h;switch(i){case"left-panel:update:state":return{...y,...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:w,!y.show,n.qW.Boolean),{...y,show:!y.show}}case"left-panel:collapse:panel:show":{var s,l,C;return((s=f==null?void 0:f.isMemorize)!=null?s:!0)&&(0,n.a0)((0,c.OB)()?o:w,(l=f==null?void 0:f.show)!=null?l:!0,n.qW.Boolean),{...y,show:(C=f==null?void 0:f.show)!=null?C:!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),{...y,width:f.width};case"left-panel:update:max-width":return{...y,maxWidth:f.screenListMaxWidth}}return y}},31569:(Fe,ee,e)=>{"use strict";e.d(ee,{i:()=>o});var n=e(59025),r=e(40610);const c=["background","border"],o=(w,u)=>{if(w.length===0)return"";const[d,...y]=u.split(":"),h=w.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(y.length>0){const f=o([h],d);i=y.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:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>s});var n=e(38502),r=Object.defineProperty,c=Object.defineProperties,o=Object.getOwnPropertyDescriptors,w=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,y=(l,C,v)=>C in l?r(l,C,{enumerable:!0,configurable:!0,writable:!0,value:v}):l[C]=v,h=(l,C)=>{for(var v in C||(C={}))u.call(C,v)&&y(l,v,C[v]);if(w)for(var v of w(C))d.call(C,v)&&y(l,v,C[v]);return l},i=(l,C)=>c(l,o(C)),f=(l,C)=>{var v={};for(var a in l)u.call(l,a)&&C.indexOf(a)<0&&(v[a]=l[a]);if(l!=null&&w)for(var a of w(l))C.indexOf(a)<0&&d.call(l,a)&&(v[a]=l[a]);return v},s=(0,n.forwardRef)((l,C)=>{var v=l,{size:a,spin:P,style:b}=v,g=f(v,["size","spin","style"]);const S=h(h({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:P?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),b);return n.createElement("svg",i(h({ref:C,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:(Fe,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 w=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 y.forEach(p=>{let[s,l]=p;return f=f.replace(new RegExp(l,"g"),s)}),f},y=[[""," "],[">",">"],["<","<"],["&","&"]],h=i=>{(0,c.kH)("add_text_v8",{operation_type:i})}},32330:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>s});var n=e(38502),r=Object.defineProperty,c=Object.defineProperties,o=Object.getOwnPropertyDescriptors,w=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,y=(l,C,v)=>C in l?r(l,C,{enumerable:!0,configurable:!0,writable:!0,value:v}):l[C]=v,h=(l,C)=>{for(var v in C||(C={}))u.call(C,v)&&y(l,v,C[v]);if(w)for(var v of w(C))d.call(C,v)&&y(l,v,C[v]);return l},i=(l,C)=>c(l,o(C)),f=(l,C)=>{var v={};for(var a in l)u.call(l,a)&&C.indexOf(a)<0&&(v[a]=l[a]);if(l!=null&&w)for(var a of w(l))C.indexOf(a)<0&&d.call(l,a)&&(v[a]=l[a]);return v},s=(0,n.forwardRef)((l,C)=>{var v=l,{size:a,spin:P,style:b}=v,g=f(v,["size","spin","style"]);const S=h(h({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:P?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),b);return n.createElement("svg",i(h({ref:C,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:(Fe,ee,e)=>{"use strict";e.d(ee,{r:()=>s});var n=e(38502),r=e(18381),c=e(53732),o=e.n(c),w=e(60589),u=e(10472),d=e(67787),y=e(17307),h=e(26842);const i=(0,d.Ay)(y.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:C,onGetNewEditModalPostion:v}=l;const{isOpen:a,type:P}=(0,r.d4)(w.FK),{isEditingCombo:b}=(0,r.d4)(u.r),g=(0,r.wA)();if(b||!(0,f.bJ)())return null;const S=t=>{if(t.stopPropagation(),a)g({type:"modal:reset:popup:state",payload:{modalName:"libPanelModal"}});else{const{left:_,top:I,height:k,right:j}=t.target.getBoundingClientRect(),z=v?v():{left:_>=260?Math.max(_-240-176>>0,0):j+20,top:Math.max(I+k/2-340>>0,56)};g({type:"modal:update:state",payload:{libPanelModal:{isOpen:!0,type:C,position:z}}})}};return(0,p.jsx)(i,{name:"setting_panel/general/open-lib",size:24,className:o()("open-lib-icon",{"is-active":a&&P===C}),onClick:S})}},32709:(Fe,ee,e)=>{"use strict";e.d(ee,{Hy:()=>w,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"}]),w={[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:(Fe,ee,e)=>{"use strict";e.d(ee,{a:()=>H});var n=e(95549),r=e(38502),c=e(12211),o=e(53732),w=e.n(o),u=e(18381),d=e(67787);const y=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",V=>this.box=V),(0,n.A)(this,"arrayWithNumber",V=>[...Array(V).keys()]),this.state={count:20}}componentDidMount(){const L=this.box.getBoundingClientRect().height,V=this.box.getBoundingClientRect().width,M=L/40*(V/39);this.setState({count:Math.ceil(M)})}render(){const{count:L}=this.state,V=this.arrayWithNumber(L);return(0,h.jsx)(y,{className:"template-list",ref:this.setComponentRef,children:V.map(M=>(0,h.jsx)("div",{className:"template-box skeleton-loading"},M))})}}var f=e(44817),p=e(88255),s=e(72447),l=e(78257),C=e(25409),v=e(19062),a=e(30275),P=e(93971),b=e(67052),g=e(74923),S=e(70933),t=e(67588),_=e(36050),I=e(93413),k=e(54190);const j=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),z=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 K=e(3862),$=e(28306),A=e(13642),E=e(88909);const U=(0,c.Mz)([g._X,g.IG,b.QU,b.Ct,S.PL,t.O4,t.MZ],(N,L,V,M,D,W,F)=>({libraryIconDataForTabs:N,iconType:L,iconDefaultColor:V,iconDefaultSize:M,rootProject:D,theme:W,layoutV9:F}));class O extends r.PureComponent{constructor(L){var V;super(L),V=this,(0,n.A)(this,"handleInitMarketTemplate",async()=>{const{currentResources:M}=this.props,{libraryIconDataForTabs:D,dispatch:W}=this.props,{cid:F}=M;if(D.get(F))this.setState({marketTemplate:M});else{const{iconGroupData:Y,marketTemplate:X}=await(0,k.yr)(M);W({type:"icon-panel:update:icon_library_data_map:for:data",payload:{cid:F,iconGroupData:Y}}),X&&this.setState({marketTemplate:X})}}),(0,n.A)(this,"handleSearch",function(M,D){D===void 0&&(D=l.lS.Detail),V.setState({searchIconList:null});const{marketTemplate:W}=V.state,{libraryIconDataForTabs:F}=V.props,{cid:B}=W,Y=F.get(B);if(Y&&M){V.setState({searchLoading:!0});const X=(0,_.s4)(Y.All,M);setTimeout(()=>{V.setState({searchIconList:X,searchLoading:!1})},1e3)}MB.commonGuideHelper.closeGuide(I.c.GUIDE_SEARCH_RESOURCES_DETAILS),MB.commonGuideHelper.markGuideAsRead(I.c.GUIDE_SEARCH_RESOURCES_DETAILS)}),(0,n.A)(this,"handleMouseDown",(M,D,W,F)=>{const{marketTemplate:{is_color_icon:B}}=this.state,{id:Y,groupCid:X}=D;this.props.dispatch({type:"entry:create:svg_icon_path:by:mousedown",payload:{event:M,icon:D,iconName:W,iconDisplayName:F,isMultiColorIcon:B,callback:()=>{this.onRequestUpdateRecentImportesources({itemCid:Y}),this.addTrack(P.k8.Drag,W,X)}}})}),(0,n.A)(this,"handleIconItemCreate",(M,D,W,F)=>{const{marketTemplate:{is_color_icon:B}}=this.state,{id:Y,groupCid:X}=D;this.props.dispatch({type:"entry:create:svg_icon_path:by:mousedown",payload:{event:M,icon:D,iconName:W,iconDisplayName:F,isMultiColorIcon:B,callback:()=>{this.onRequestUpdateRecentImportesources({itemCid:Y}),this.addTrack(P.k8.DoubleClick,W,X)}}})}),(0,n.A)(this,"addTrack",(M,D,W)=>{const{marketTemplate:F}=this.state,{popupsName:B,rootProject:Y,keyword:X=""}=this.props,{policy:G,category:Z,title:J,copyright:te,is_color_icon:he}=F,de=Z===K.C&&he?K.WY:Z,Se=P.Jj[de]+"-"+P.un;(0,P.Mi)({popupsName:B,addType:M,source:Se,category:de,policy:G,templateGroupName:J,copyright:te,name:D,rootProject:Y,keyword:X,templateGroupCid:W})}),(0,n.A)(this,"onRequestUpdateRecentImportesources",M=>{var D;let{itemCid:W}=M;const{marketTemplate:F}=this.state,Y={projectUpperType:"icon_group",projectUpperCid:F.source_upper_cid||((D=F.icon_group)==null?void 0:D.cid),itemCid:W};(0,k.Cp)(Y)}),(0,n.A)(this,"handleStarResources",M=>{const{marketTemplate:D}=this.state,{onStarResources:W}=this.props;W(M),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,V,M){L.currentResources&&this.props.currentResources&&L.currentResources.cid!==this.props.currentResources.cid&&await this.handleInitMarketTemplate()}componentWillUnmount(){A.A.emit(E.P2,{shownMtItemCids:[]})}render(){const{libraryIconDataForTabs:L,className:V,onSetCurrentNodeIcon:M,onBack:D,iconType:W,iconDefaultColor:F,iconDefaultSize:B,theme:Y,from:X,layoutV9:G}=this.props,{marketTemplate:Z,searchIconList:J,searchLoading:te}=this.state,{cid:he,title:de,source_upper_cid:Se}=Z,xe=L.get(he),be=xe?Object.keys(xe):[],ie=xe?xe[W]||[]:[],oe=(ie==null?void 0:ie.length)===0,ue=J||ie;ue.forEach(re=>re.groupCid=Se);const ve=X===a.Z.iconSelectPopup;return(0,h.jsxs)(j,{className:V,children:[(0,h.jsx)(C.l,{resources:Z,layoutV9:G,onBack:D,onStartTemplates:this.handleStarResources,onSearch:this.handleSearch}),oe?(0,h.jsx)(i,{}):te?(0,h.jsx)(v.S,{children:(0,h.jsx)("span",{children:I18N.Resources.searching.load})}):(0,h.jsx)(h.Fragment,{children:(ue==null?void 0:ue.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:[!ve&&(0,h.jsx)("footer",{children:(0,h.jsx)(s.N,{iconDefaultColor:F,iconDefaultSize:B,iconTabs:J?[]:be,iconType:W,isMultiColorIcon:Z.is_color_icon})}),(0,h.jsx)(Q,{list:ue,title:de,policy:Z.policy,children:(0,h.jsx)("div",{className:w()("icons-container"),children:(0,h.jsx)(f.l,{onMouseDown:this.handleMouseDown,onDoubleClick:this.handleIconItemCreate,onSetCurrentNodeIcon:M,iconList:ue,isMultiColorIcon:Z.is_color_icon})})})]})})]})}}const H=(0,u.Ng)(N=>U(N),null,null,{forwardRef:!0})(O),Q=N=>{let{list:L,title:V,policy:M,children:D}=N;return(0,r.useEffect)(()=>{const W=(0,$.Oc)({source:"\u539F\u578B\u5185\u67E5\u770B\u5168\u90E8-\u56FE\u6807",list:L,igName:V,policy:M});A.A.emit(E.jy,{observeMtItemObj:W}),A.A.emit(E.BD)},[L,M,V]),D}},32879:(Fe,ee,e)=>{"use strict";e.d(ee,{TQ:()=>y,cF:()=>w,d8:()=>d,xj:()=>u});var n=e(67787),r=e(5438),c=e(21066),o=e(51090);const w=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),y=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:(Fe,ee,e)=>{"use strict";e.d(ee,{se:()=>v,VA:()=>a,Ay:()=>P});var n=e(95549),r=e(25582),c=e.n(r),o=e(38502),w=e(17307),u=e(83199),d=e(53732),y=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;}}}"],b=>b.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;}}}"],b=>b.theme.color_text_L1,b=>b.theme.color_text_link_normal,b=>b.theme.color_text_L3,b=>b.theme.color_bg_border_02,b=>b.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;}"],b=>b.theme.color_text_L1,b=>b.theme.color_text_link_normal,b=>b.theme.color_text_L3,b=>b.theme.color_bg_border_02,b=>b.theme.color_text_L1);var l=e(72214);class C 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:_,title:I,icon:k,menux:j,isPlaceholder:z,renderTitle:K,isOpenerAttrDisabled:$,shouldPreventScrollingPropagation:A,shouldCloseOnSelect:E=!0,isPosition2:U=!1,customOpener:O,...H}=this.props;return(0,l.jsx)(f,{isOpen:S,ref:this.setComponentRef,shouldPreventScrollingPropagation:A,isDisabled:$,menuX:j,isPlaceholder:!0,className:"link-opener-wrapper",opener:O||(0,l.jsx)(v,{className:_,icon:k,title:I,isPlaceholder:z,renderTitle:K}),menuClassName:y()("link-wrapper",_),menu:t,forceDarkTheme:g,shouldCloseOnSelect:E,isPosition2:U,...H})}}C.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 v=b=>{let{className:g,title:S,icon:t,isPlaceholder:_,renderTitle:I}=b;return(0,l.jsxs)(p,{className:y()("options-opener",g),children:[t&&(0,l.jsx)("div",{className:"opener-icon-container",children:t}),I&&I(),S&&(0,l.jsx)("p",{className:y()("select-title",{"is-placeholder":_,"has-icon":t}),children:S}),(0,l.jsx)(w.C,{className:"expand-icon",name:"common/expand@26"})]})};v.propTypes={title:c().string,className:c().string,icon:c().object,isPlaceholder:c().bool,renderTitle:c().func};const a=b=>{let{className:g,title:S,icon:t,isPlaceholder:_,renderTitle:I,onShowTipsByTarget:k}=b;return(0,l.jsx)(u.A,{direction:"down",enterHoverTime:200,isSkipShortTimerHover:!0,isShowTipsByTarget:k&&k,tipClassName:"fixed-transform-y10",content:I&&I()||S,children:(0,l.jsxs)(s,{className:y()("options-opener",g),children:[t&&(0,l.jsx)("div",{className:"opener-icon-container",children:t}),I&&I(),S&&(0,l.jsx)("p",{className:y()("select-title",{"is-placeholder":_,"has-icon":t}),children:S}),(0,l.jsx)(w.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 P=C},33568:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>$});var n=e(38502),r=e(69623),c=e(18381),o=e(53732),w=e.n(o),u=e(94585),d=e.n(u),y=e(45709),h=e(25582),i=e.n(h),f=e(67787),p=e(58320),s=e(72214);const l=A=>{let{isOpen:E,onConfirm:U,onClose:O,className:H}=A;return(0,s.jsxs)(C,{isOpen:E,className:w()("fz-auth-modal",H),title:"\u5B57\u4F53\u4F7F\u7528\u987B\u77E5",confirmText:"\u540C\u610F",cancelText:"\u4E0D\u540C\u610F",onConfirm:U,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 C=(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:",";}}}"],A=>A.theme.color_bg_white,A=>A.theme.color_bg_border_02,A=>A.theme.color_text_L1,A=>A.theme.color_text_link_normal),v=l;var a=e(15515),P=e(83199),b=e(34677),g=e(6843),S=e(17307),t=e(99203),_=e(73662),I=e(4235),k=e(69815),j=e(91363),z=e(55171);const{w4:K}=b;function $(A){let{fontFamily:E,fontWeight:U,fontStyle:O,wbiVersion:H,isShowFontWeightLabel:Q,dispatch:N,handleChange:L,handleFakeOverrideChange:V,isTextEditing:M,handleChangeBatch:D,subMenuDirection:W,positionRelative:F,isMissFont:B,fontSize:Y,lineHeight:X,dropdownPosition:G,renderTitle:Z,renderArrow:J,onLoadAllFontList:te,registerToggleFontPanel:he}=A;const de=(0,c.d4)(_.y.query.getFontLocalList),Se=(0,c.d4)(I.p$),[xe,be]=(0,n.useState)({top:300,left:0}),[ie,oe]=(0,n.useState)(!1),[ue,ve]=(0,n.useState)(!1),[re,fe]=(0,n.useState)(E),[we,Te]=(0,n.useState)(U),[Ie,le]=(0,n.useState)(O),me=(0,n.useRef)(!1),Pe=(0,n.useRef)(!1),pe=(0,n.useRef)(null),ke=(0,n.useRef)(()=>null),We=(0,n.useRef)(()=>null),Ee=(0,n.useRef)(),Ae=(0,n.useRef)();(0,n.useEffect)(()=>{te&&te(de)},[de]),(0,n.useLayoutEffect)(()=>{ie||(fe(E),Te(U),me.current=!1,Pe.current=!1)},[ie,E,U]),(0,n.useEffect)(()=>{fe(E),Te(U),le(O)},[ie,Se]);const Ce=ct=>{const rt=(0,t.dv)(ct),At=rt.ff,ot=(0,y._K)(rt.fw),Tt=(0,y.LR)(rt.fw)?"italic":"normal";return[At,ot,Tt,rt.defaultFw]},_e=()=>{me.current||Pe.current&&(clearTimeout(Ee.current),Ae.current=setTimeout(()=>{M?(L(re,"fontFamily"),L(we,"fontWeight"),L(Ie,"fontStyle")):N({type:"entry:set:text:attr:fakeOverride:restore"})},200))};(0,n.useEffect)(()=>()=>{_e()},[]),(0,n.useEffect)(()=>{ie?M&&N({type:"draft:update:state",payload:{isStopAutoSave:!0}}):M&&N({type:"draft:update:state",payload:{isStopAutoSave:!1}})},[ie,N]);const Ge=async ct=>{const rt=ct.value,At=ct.type==="cloud",ot=()=>{sdkStore.combineMergeMark("font-style-family-change");const Tt=(0,k.qp)(re,Y);if(At){const ft=Ce(ct);if(L(ft[0],"fontFamily"),we!=="bold"&&Ie!=="italic")L(ft[1],"fontWeight"),L(ft[1]==="bold","bold"),Ie!==ft[2]&&L(ft[2],"fontStyle");else{const{isAllWeightItalic:Nt,isAllWeightOverBold:Bt}=(0,t.rB)(ct);Nt||Bt?(we!=="bold"&&L(ft[1],"fontWeight"),Ie!==ft[2]&&L(ft[2],"fontStyle"),L(ft[1]==="bold","bold")):we!=="bold"&&L(ft[1],"fontWeight")}X===Tt&&L((0,k.qp)(ft[0],Y),"lineHeight")}else L(rt,"fontFamily"),we!=="bold"&&L("regular","fontWeight"),L(we==="bold","bold"),X===Tt&&L((0,k.qp)(rt,Y),"lineHeight");if(sdkStore.combineMerge("font-style-family-change"),(0,j.rr)({operation_type:"\u5E94\u7528\u5B57\u4F53",font_type:At?"\u4E91\u7AEF":"\u5B98\u65B9"}),!!D)if(At){const ft=Ce(ct);D({fontFamily:ct.value,fontWeight:ft[3]||ft[1],fontStyle:ft[2],cloudFontKey:ft[0]})}else D({fontFamily:rt,fontWeight:we!=="bold"?"regular":void 0})};if((0,t.x7)(rt))ve(!0),new Promise((ft,Nt)=>{ke.current=ft,We.current=Nt}).then(()=>{ot(),(0,a.cH)("FZFontAuthInformed",!0),ve(!1)},()=>{ve(!1)});else if(K.includes(rt))ot();else try{At||(await new(d())(rt).load(),await new(d())(rt,{waight:(0,y._y)(we,!1)}).load())}catch(Tt){}finally{ot()}lt()},Xe=async ct=>{const rt=[];if(ct.type==="cloud"){const At=Ce(ct);if(rt.push(["fontFamily",At[0]]),we!=="bold"&&Ie!=="italic")rt.push(["fontWeight",At[1]],["fontStyle",At[2]]);else{const{isAllWeightItalic:ot,isAllWeightOverBold:Tt}=(0,t.rB)(ct);ot||Tt?(we!=="bold"&&rt.push(["fontWeight",At[1]]),rt.push(["fontStyle",At[2]])):we!=="bold"&&rt.push(["fontWeight",At[1]])}}else rt.push(["fontFamily",ct.value]);clearTimeout(Ae.current),Ee.current=setTimeout(()=>{V(rt)},200)},Ue=(ct,rt)=>{let At=ct.value;ct.type==="cloud"&&(At=ct.weightExtKeyKV[rt.value]);const ot=rt.value,Tt=(0,y._K)(ot),ft=y.S0[Tt]!==void 0,Nt=(0,y.LR)(ot)?"italic":"normal";return{nextFontFamily:At,nextFontWeight:ft?Tt:"regular",nextFontStyle:Nt,nextBold:Tt==="bold",fontWeightNoItalic:Tt}},pt=async(ct,rt)=>{const At=ct.type==="cloud",{nextFontFamily:ot,nextFontWeight:Tt,nextFontStyle:ft,fontWeightNoItalic:Nt}=Ue(ct,rt);try{K.includes(ot)||(At?await new(d())(ot).load():await new(d())(ot,{weight:(0,y._y)(Nt,!1),style:ft}).load())}catch(Bt){}finally{sdkStore.combineMergeMark("font-style-weight-change"),Pe.current&&L(we,"fontWeight"),L(ot,"fontFamily"),L(Tt,"fontWeight"),L(Tt==="bold","bold"),ft!==Ie&&L(ft,"fontStyle");const Bt=(0,k.qp)(re,Y);X===Bt&&L((0,k.qp)(ot,Y),"lineHeight"),sdkStore.combineMerge("font-style-weight-change"),(0,j.rr)({operation_type:"\u5E94\u7528\u5B57\u4F53",font_type:At?"\u4E91\u7AEF":"\u5B98\u65B9"}),D&&D(At?{fontFamily:ct.value,fontWeight:Nt,fontStyle:ft}:{fontFamily:ot,fontWeight:Nt,fontStyle:ft}),lt()}},Ye=async(ct,rt)=>{const{nextFontFamily:At,nextFontStyle:ot,nextFontWeight:Tt}=Ue(ct,rt);clearTimeout(Ae.current),Ee.current=setTimeout(()=>{const ft=[];ft.push(["fontFamily",At]),ft.push(["fontStyle",ot]),Tt!==U&&ft.push(["fontWeight",Tt]),V(ft)},200)},Qe=()=>{var ct;const rt=(ct=pe.current)==null?void 0:ct.getBoundingClientRect();if(rt)if(G==="top"){const At=rt.top-432+((F==null?void 0:F.yOffset)||0),ot=rt.left-240/2+((F==null?void 0:F.xOffset)||0);be({top:At,left:ot})}else if(G==="bottom"){const At=rt.bottom+((F==null?void 0:F.yOffset)||0),ot=rt.left-rt.width/2+((F==null?void 0:F.xOffset)||0);be({top:At,left:ot})}else{let At=rt.top-82+((F==null?void 0:F.yOffset)||0);const ot=rt.left-250+((F==null?void 0:F.xOffset)||0);At+432-window.innerHeight>0&&(At=window.innerHeight-432-18),be({top:At,left:ot})}oe(!ie)},lt=()=>{oe(!1),_e()};(0,n.useEffect)(()=>{he==null||he(ie,lt)},[ie,lt]);const tt=()=>{const{chooseFont:ct,fontWeightList:rt}=(0,t.Y_)(de,re,we);if(!Q||rt.length===0)return"";const At=rt.length;if(At===0||At===1||!ct)return"";const ot=(0,y.KI)(ct,rt),Tt=(0,t.Ls)(we,ot,Ie);return(0,y.cB)(Tt)||Tt},qe=ct=>{var rt,At,ot,Tt;let ft=ct.target;for(!((rt=(At=ft).closest)!=null&&rt.call(At,"#font-list-panel"))&&!((ot=(Tt=ft).closest)!=null&&ot.call(Tt,".font-family-label"))&<();ft.nodeName!=="BODY";){var Nt;if(ft=ft.parentElement,!ft)return;if((Nt=ft.classList)!=null&&Nt.contains("typeface2-btn")){ft!==pe.current&<();return}}},et=(0,t.c9)(re,de),st=tt(),at=Q&&st.length>0?et+","+st:et;return(0,s.jsxs)("div",{className:"typeface2-btn",ref:pe,children:[(0,s.jsxs)(g.dA,{className:w()("font-family-label",{"is-open":ie}),onClick:Qe,children:[(0,s.jsxs)("button",{children:[(B||D&&(0,t.Zf)(de,re,we))&&(0,s.jsx)(P.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(at):(0,s.jsx)("span",{children:at})]}),J?J():(0,s.jsx)(S.C,{name:"arrow/down",className:"caret",size:24})]}),ie&&(0,r.createPortal)((0,s.jsx)(z.Z,{fontFamily:re,fontWeight:we,fontStyle:Ie,position:xe,subMenuDirection:W,clickFF:ct=>{me.current=!0,Ge(ct)},clickFW:(ct,rt)=>{me.current=!0,pt(ct,rt)},hoverFF:ct=>{Pe.current=!0,Xe(ct)},hoverFW:(ct,rt)=>{Pe.current=!0,Ye(ct,rt)},clearOverrideAttr:_e,handleClickOutSideToClose:qe,fontListOriginal:de,setIsOpenListPanel:oe}),document.body),ue&&(0,s.jsx)(v,{isOpen:!0,onConfirm:ke.current,onClose:We.current}),(0,s.jsx)(g.e,{})]})}},33573:(Fe,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),w=e(69405),u=e(88194),d=e(72214);const{push:y}=(0,w.O)(),h="/mb-proto2/images/preview/image-load.png",i=s=>{let{flpakKey:l,ssKey:C,ssTaskMode:v,ssZoomMode:a}=s;return l&&C&&v&&a?"/flatshot/sync.png?tMod="+v+"&zMod="+a+"&k="+l+"&ssK="+C:h},f=async s=>{let{projectMetaCid:l,snapshotKey:C,mode:v,ssZoomMode:a}=s;const P=await new Promise((S,t)=>{const _=i({flpakKey:l,ssKey:C,ssTaskMode:v||u.rY.PNG_PAGE,ssZoomMode:a||u.BU.LETTERBOX_256}),I=new Image;I.onerror=()=>t(new Error(I18N.dUtils.unsupported)),I.onload=()=>S(I),I.src=_});if(!P)return;const b=P.width,g=P.height;return{width:b,height:g}};class p extends o.PureComponent{constructor(l){super(l),(0,n.A)(this,"setElementRef",C=>this.$elem=C),(0,n.A)(this,"loadSnapshot",async()=>{const{projectMetaCid:C,snapshotKey:v,isVisible:a,mode:P,ssZoomMode:b}=this.props;if(a&&!this.isUnmounted){{const g=this.$elem;await new Promise((S,t)=>{const _=i({flpakKey:C,ssKey:v,ssTaskMode:P||u.rY.PNG_PAGE,ssZoomMode:b||u.BU.LETTERBOX_256});g.onerror=()=>{g.src=h,t(new Error("failed to load "+_))},g.onload=()=>S(g),g.src=_})}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:C}=this.props;C&&this.props.snapshotKey!==l.snapshotKey&&(clearTimeout(this.retryTimer),this.generateSnapshotTask()),C&&!this.imageDidLoad&&(clearTimeout(this.retryTimer),this.generateSnapshotTask())}componentWillUnmount(){this.isUnmounted=!0,clearTimeout(this.retryTimer)}generateSnapshotTask(l){l===void 0&&(l=5),y(this.loadSnapshot).catch(v=>{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:(Fe,ee,e)=>{"use strict";e.d(ee,{Kb:()=>r,Pb:()=>d,SU:()=>w,kN:()=>u,nA:()=>c});var n=e(11032);const r=(y,h)=>{let[i,[f,p],[s,l],C]=h;return(0,n.qT)({url:i,tab:y,height:l,width:s,tags:C})},c=(y,h)=>{let{url:i,name:f,thumb_url:p,res_id:s}=h;return(0,n.ZU)({url:i,tab:y,name:f,thumb_url:p,res_id:s})},o=y=>y.sort(()=>Math.random()-.5),w=y=>{const h=[],i=[];return y.forEach(f=>f.width/f.height>1?h.push(f):i.push(f)),[h,i]},u=(y,h)=>{const i=[];if(y.length===0||h.length===0)return o([...y,...h]);const f=o(y),p=o(h);return i.push(...o([f.pop(),p.pop()])),i.push(...o([...f,...p])),i},d=y=>{const h=y[0],i=y[1];return 218/(h.width/h.height+i.width/i.height)}},34121:(Fe,ee,e)=>{"use strict";e.d(ee,{Ed:()=>i,Hz:()=>v,NA:()=>l,Pv:()=>h,X3:()=>P,gu:()=>b,iZ:()=>p,o:()=>s,pV:()=>C});var n=e(85584),r=e(20640),c=e(24229),o=e(26034),w=e(53940),u=e(85449),d=e(93413),y=e(20089);const h=(g,S)=>{const _=(0,n.Bq)(g.sup||"root",S).children.map(j=>j.data),k=_.findIndex(j=>j.cid===g.key)+1;_.splice(k,0,null),_.forEach((j,z)=>{if(j&&(j.sup!==g.sup||j.zIndex!==z+1)){const K=sdkStore.getHotItem(j.cid),$={...K,hotAttr:{...K.hotAttr,zIndex:z+1}};sdkStore.updateHotItem($)}})},i=(g,S)=>{const t={};g.forEach(I=>t[I.key]={cid:I.key,...I.hotAttr,sup:I.sup,sub:I.sub});const{treeData:_}=f(t,S);return _},f=(g,S)=>{const{cid:t,data:_,children:I}=S,k=!!g[t];let j=!1;const z=g[t],K=I.map($=>{const{isChanged:A,treeData:E}=f(g,$);return A&&(j=!0),E});return k||j?{isChanged:!0,treeData:{...S,data:k?z:_,children:j?K:I}}:{isChanged:!1,treeData:S}},p=(g,S)=>{const t={...S};return g.forEach(_=>t[_.key]=_),t},s=g=>{const{hotAttr:{asFolder:S,zIndex:t,name:_,...I},sup:k}=g,j={name:_+" Copy",zIndex:t+1,sup:k,asFolder:S,...I},z=v(j);return sdkStore.dupRBPageSub(g.key,z.key),z},l=(g,S)=>{var t;g!=null&&(t=g.sub)!=null&&t.length&&g.sub.forEach(_=>{const I=sdkStore.getHotItem(_);if(I.hotAttr.bunch===y.x.RbPage){const k={...I.hotAttr,sup:S},j=v(k);sdkStore.dupRBPageSub(I.key,j.key),l(I,j.key)}})},C=function(g,S,t){return S===void 0&&(S=!1),t===void 0&&(t=!1),S?I18N.LeftSidePanel.page_folder+" "+(g.filter(_=>_&&(0,n.Mo)(_)).length+1):(t?I18N.LeftSidePanel.widget:I18N.LeftSidePanel.page)+" "+(g.filter(_=>_&&!(0,n.Mo)(_)).length+1)},v=g=>{var S;let{name:t,sup:_,sub:I=[],zIndex:k=1,asFolder:j=!1,device:z="customize",deviceH:K=0,deviceW:$=0,deviceOrientation:A="portrait",defaultCanvasKey:E="",w:U=0,h:O=0,alignH:H=[],alignV:Q=[],icon:N,fill:L,deviceScroll:V="vertical",isShowDeviceGuide:M=!0,store:D=sdkStore,key:W=(0,c.cF)("rbp"),libKey:F=""}=g;const B=o.N[y.x.RbPage](t,k,$,K,N||(0,r.eO)({asFolder:j}),U,O,""),Y=(S=(0,u.dP)())==null?void 0:S.ui.fixedLayout.preference.theme,X={sup:_,sub:I,key:W,hotAttr:{...B,asFolder:j,device:z,deviceScroll:V,deviceOrientation:A,alignH:H,alignV:Q,fill:L||{fillIsVisible:!1,fill:"solid",solidColor:w.kV[Y||w.Sx.LIGHT]},isShowDeviceGuide:M,libKey:F,defaultCanvasKey:E}};return D.updateHotItem(X),X},a=(g,S,t)=>{const _={deleteTime:Math.floor(Date.now()/1e3),deleteUserName:S==null?void 0:S.name};t.updateHotAttrMerge(g,{deleteInfo:_});const I=sdkStore.getSubHotItemList(g).filter(k=>k.hotAttr.bunch===y.x.RbPage);I!=null&&I.length&&I.forEach(k=>a(k.key,S,t))},P=function(g,S,t){t===void 0&&(t=sdkStore),a(g,S,t),t.moveHotItem(g,"B@trash")},b=(g,S)=>{g.forEach(t=>{P(t.key||t.cid,S)}),MB.commonGuideHelper.tryToShowGuide(d.c.GUIDE_TOOLBAR_TRASH)}},34771:(Fe,ee,e)=>{"use strict";e.d(ee,{Ay:()=>u,eD:()=>w,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),w=(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:(Fe,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)(w,{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"})]})},w=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:(Fe,ee,e)=>{"use strict";e.d(ee,{CN:()=>r,SC:()=>o,VA:()=>w,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);}"]),w=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:(Fe,ee,e)=>{"use strict";e.d(ee,{B3:()=>o,EY:()=>d,Fw:()=>u,TN:()=>y,pt:()=>w,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;}}}"]),w=(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",y=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:(Fe,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),w=(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:(Fe,ee,e)=>{"use strict";e.d(ee,{If:()=>h,RU:()=>i,s4:()=>w});var n=e(55914),r=e(27660),c=e(20089),o=e(47163);const w=(f,p)=>{const l=p.trim().split(/\s+/).map(C=>({literal:C,regular:new RegExp("\\b"+(0,n.$)(C),"i"),chinese:new RegExp(""+(0,n.$)(C))}));return f.filter(C=>y(l,C))},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})),y=(f,p)=>{const s=d((0,o.w)()),l=[p.id,p.keywords,p.aliases,p.cat,s[p.cat]].join();return f.some(C=>{let{literal:v,regular:a,chinese:P}=C;return a.test(l)||u.test(v)&&P.test(l)})},h=f=>[c.x.WIcon].includes(f),i=f=>{const{type:p,id:s,lib:l=""}=f,C=s.split("-")[0]===p?s.slice(s.indexOf("-")+1):s,v=p==="fa5"&&l?p+"-"+C+"-"+l:p+"-"+C,a=p==="fa5"?(l+" fa-"+C).trim():p+"-"+C;return{iconName:v,iconDisplayName:a}}},36052:(Fe,ee,e)=>{"use strict";e.d(ee,{NV:()=>b,Ps:()=>s,Um:()=>d});var n=e(41818),r=e(54801),c=e(23536),o=e(15186),w=e(45709),u=e(59025);const d=M=>{var D;return(D=M.border)!=null&&D.bdrIsVisible?{borderColor:(0,o.t0)(M.border.bdrColor),borderWidth:M.borderVisibility?(M.borderVisibility.bdrIsVisibleT?M.border.bdrWidth:0)+"px "+(M.borderVisibility.bdrIsVisibleR?M.border.bdrWidth:0)+"px "+(M.borderVisibility.bdrIsVisibleB?M.border.bdrWidth:0)+"px "+(M.borderVisibility.bdrIsVisibleL?M.border.bdrWidth:0)+"px":M.border.bdrWidth+"px",borderStyle:M.border.bdrStyle}:{border:"none"}},y=M=>({borderRadius:M.borderRadiusIsVisible===!1?void 0:M.borderRadius?typeof M.borderRadius=="number"?M.borderRadius+"px":M.borderRadius.radiusTL+"px "+M.borderRadius.radiusTR+"px "+M.borderRadius.radiusBR+"px "+M.borderRadius.radiusBL+"px":void 0}),h=M=>({borderRadius:M?typeof M=="number"?M+"px":M.radiusTL+"px "+M.radiusTR+"px "+M.radiusBR+"px "+M.radiusBL+"px":void 0}),i=M=>M.bdrIsVisible?{borderColor:toRGBACSS(M.bdrColor),borderWidth:M.bdrWidth+"px",borderStyle:M.bdrStyle}:{border:"none"},f=M=>M.bdrIsVisible?M.bdrWidth+"px "+M.bdrStyle+" "+toRGBACSS(M.bdrColor):"",p=M=>M.bdrIsVisible?{borderColor:toRGBACSS(M.bdrColor),borderWidth:M.bdrWidth+"px",bdrIsVisible:M.bdrIsVisible}:{border:"none",bdrIsVisible:M.bdrIsVisible},s=M=>M&&M.shadowIsVisible?M.offsetX+"px "+M.offsetY+"px "+M.blurRadius+"px "+M.spreadRadius+"px "+(0,o.t0)(M.shadowColor):"none",l=M=>{let D="none";return M.textV0&&M.textV0.textDecoration&&M.textV0.textDecoration!=="normal"&&(D=M.textV0.textDecoration),{textDecoration:D}},C=M=>{const D=formatPaddingTuple(M.richTextV1.paddingTuple);return{width:"100%",height:"100%",display:"flex",zIndex:M.zIndex,...d(M),...y(M),...D,boxShadow:s(M.shadow)}};function v(M){var D,W;return{zIndex:M.zIndex,...y(M),boxShadow:s(M.shadow),alignItems:(D=M.textV0)==null?void 0:D.verticalAlign,textAlign:(W=M.textV0)==null?void 0:W.horizontalAlign,...L(M.textV0)}}const a=M=>{if(!M||!M.flip)return"";const{flip:{flipH:D,flipV:W}}=M;return(D?"scaleX(-1)":"")+" "+(W?"scaleY(-1)":"")};function P(M){const{border:{bdrWidth:D}}=M,{bdrIsVisibleT:W,bdrIsVisibleR:F,bdrIsVisibleB:B,bdrIsVisibleL:Y}=M.borderVisibility;return(W?D:"0")+"px "+(F?D:"0")+"px "+(B?D:"0")+"px "+(Y?D:"0")+"px"}const b=M=>{let D=0,W=0,F=0,B=0;if(M){const{border:Y,borderVisibility:X}=M;if(Y){const{bdrIsVisible:G,bdrWidth:Z}=Y,J=Z||0;if(G)if(X){const{bdrIsVisibleT:te,bdrIsVisibleR:he,bdrIsVisibleB:de,bdrIsVisibleL:Se}=X;D=Se?J:0,W=te?J:0,F=he?J:0,B=de?J:0}else D=W=F=B=J}}return{borderLeft:D,borderTop:W,borderRight:F,borderBottom:B}};function g(M,D){D===void 0&&(D={minX:0,minY:0,width:1,height:1});const W=M.clone().translate({x:-M.x,y:-M.y}).translate({x:M.x*D.width,y:M.y*D.height});if(M.isIdentity())return null;if(W.isTranslate())return"translate("+Number(M.x)+", "+Number(M.y)+")";{const{a:F,b:B,c:Y,d:X,x:G,y:Z}=W;return"matrix("+Number(F)+", "+Number(B)+", "+Number(Y)+", "+Number(X)+", "+Number(G)+", "+Number(Z)+")"}}function S(M,D){return D===void 0&&(D={minX:0,minY:0,width:1,height:1}),M.type!==PaintType.Solid?g(Transform.parse(M),D):null}function t(M){if(M.type!==PaintType.Solid){const{colors:D,stops:W}=M;return D.map((F,B)=>({hex:Color.toHexAndAlpha(F)[0],alpha:F[3],point:W[B]}))}return[]}function _(M){const{colors:D,stops:W}=M,F=Transform.parse(M);return''+D.map((Y,X)=>({hex:Color.toHexAndAlpha(Y)[0],alpha:Y[3],point:W[X]})).sort((Y,X)=>Y.point-X.point).map(Y=>{let{alpha:X,hex:G,point:Z}=Y;return''}).join("")+''}function I(M){const{colors:D,stops:W}=M,F=Transform.parse(M);return''+D.map((Y,X)=>({hex:Color.toHexAndAlpha(Y)[0],alpha:Y[3],point:W[X]})).sort((Y,X)=>Y.point-X.point).map(Y=>{let{alpha:X,hex:G,point:Z}=Y;return''}).join("")+''}function k(M,D,W){W===void 0&&(W={minX:0,minY:0,width:1,height:1});const{colors:F,stops:B}=M,Y=Transform.parse(M),X=g(Y,W);return M.type===PaintType.LinearGradient?''+F.map((G,Z)=>({hex:Color.toHexAndAlpha(G)[0],alpha:G[3],point:B[Z]})).sort((G,Z)=>G.point-Z.point).map(G=>{let{alpha:Z,hex:J,point:te}=G;return''}).join("")+"":M.type===PaintType.RadialGradient?''+F.map((G,Z)=>({hex:Color.toHexAndAlpha(G)[0],alpha:G[3],point:B[Z]})).sort((G,Z)=>G.point-Z.point).map(G=>{let{alpha:Z,hex:J,point:te}=G;return''}).join("")+"":""}function j(M){return{fontSize:M.textV0.fontSize,justifyContent:M.textV0.horizontalAlign,alignItems:M.textV0.verticalAlign,color:toRGBACSS(M.textV0.textColor),fontFamily:"PingFangSC"}}function z(M){return{textAlign:M.textV0.horizontalAlign}}const K=(M,D)=>M?toRGBACSS(D):"",$=M=>{var D,W;return{alignItems:(D=M.textV0)==null?void 0:D.verticalAlign,justifyContent:(W=M.textV0)==null?void 0:W.horizontalAlign}},A=M=>M.textDecoration==="normal"?void 0:M.textDecoration,E=M=>M.italic?"italic":"normal",U=M=>M.bold?"bold":"normal",O=M=>({letterSpacing:M.textV0.letterSpacing}),H=M=>({...formatPaddingTuple(M.textV0.paddingTuple)}),Q=M=>({lineHeight:M.textV0.lineHeight+"px"}),N=(M,D)=>M?toRGBACSS(D):"",L=M=>{const{fontFamily:D,fontWeight:W,italic:F,bold:B,textColor:Y,fontSize:X,lineHeight:G,letterSpacing:Z,textDecoration:J="normal",horizontalAlign:te,verticalAlign:he,color:de}=M||{},Se=J==="normal"?"none":J;return{fontFamily:D,fontSize:X,fontWeight:computedFontWeightValue(W,B),lineHeight:G+"px",fontStyle:F?"italic":"normal",color:de||toRGBACSS(Y),letterSpacing:Z,textDecoration:Se,alignItems:he,justifyContent:te}},V=M=>{var D,W;if(!(M!=null&&M.textV1)||Object.keys(M.textV1).length===0||Object.keys((D=M.textV1)==null?void 0:D.blocks).length===0)return!1;if(Object.keys((W=M.textV1)==null?void 0:W.blocks).length===1){const F=M.textV1.blocks,B=Object.values(F)[0];if((B==null?void 0:B.text)==="")return!1}return!0}},36198:(Fe,ee,e)=>{var n=e(71893),r=e(71602),c=e(57327),o=e(48236),w=e(52255),u=e(83084),d=o(function(y,h){var i=u(h);return w(i)&&(i=void 0),w(y)?n(y,r(h,1,w,!0),c(i,2)):[]});Fe.exports=d},36620:(Fe,ee,e)=>{"use strict";e.d(ee,{j:()=>d,s:()=>u});var n=e(95549),r=e(38502),c=e(61068),o=e(4648),w=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:C,onPosition:v}=this.props;return h?(0,w.jsxs)("div",{className:"appearance-line color-line height-32 margin-left-n6",children:[(0,w.jsxs)("div",{className:"common-check-label-box",children:[(0,w.jsx)(c.A,{attr:"isVisible",className:c.p,isChecked:i==null?void 0:i.fillIsVisible,onChange:a=>this.handleVisibleChanged(a)}),(0,w.jsx)("label",{className:"left-label background-label",children:I18N.SettingPanel.fill})]}),(0,w.jsx)(o.R_,{mode:"input",className:o.EY,attr:"solidColor",supAttr:"fill",color:i,refStyles:l,pIsSolidColorOnly:!!f,canOpenLib:p,canCreateColorRef:s,index:C,onPosition:v,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,w.jsxs)("div",{className:"appearance-line color-line height-32 margin-left-n6",children:[(0,w.jsxs)("div",{className:"common-check-label-box",children:[(0,w.jsx)(c.A,{className:c.p,attr:p,isChecked:h,onChange:this.handleChange}),(0,w.jsx)("label",{className:"left-label background-label",children:s.solid})]}),(0,w.jsx)(o.R_,{mode:"input",className:o.EY,supAttr:"segmentedControl",attr:f,color:i,onChange:this.handleChange})]})}}},36666:(Fe,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:w,payload:u}=o;switch(w){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:(Fe,ee,e)=>{"use strict";e.d(ee,{DE:()=>r,uz:()=>P,zi:()=>f});const n=(b,g)=>{const S=new Error("[NO SENTRY] "+b);return Object.assign(S,g),S},r=async b=>{const g=await fetch(b,{credentials:"same-origin"});let S;try{S=await g.json()}catch(t){S={}}if(!g.ok)throw n("[fetchGetJSON] failed with "+g.status+": "+b,{...S,status:g.status});return S},c=async(b,g)=>{const S=await fetch(b,{credentials:"same-origin",body:JSON.stringify(g)});let t;try{t=await S.json()}catch(_){t={}}if(!S.ok)throw n("[fetchGetJSON] failed with "+S.status+": "+b,{...t,status:S.status});return t},o=async b=>{const g=await fetch(b,{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+": "+b,{...S,status:g.status});return S},w=async b=>{let g=await fetch(b,{credentials:"same-origin"});const S=g.headers;if(!g.ok)throw n("[fetchGetJSON] failed with "+g.status+": "+b,{...await g.json(),status:g.status});return g=await g.json(),{result:g,headers:S}},u=async b=>{const g=await fetch(b,{method:"DELETE",credentials:"same-origin"});if(!g.ok)throw n("[fetchDeleteHead] failed with "+g.status+": "+b,{status:g.status})},d=async b=>{const g=await fetch(b,{method:"DELETE",credentials:"same-origin",headers:{"content-type":"application/json",accept:"application/json"}});if(!g.ok)throw n("[fetchDeleteHead] failed with "+g.status+": "+b,{status:g.status})},y=async b=>{const g=await fetch(b,{method:"DELETE",credentials:"same-origin"});if(!g.ok)throw n("[fetchDeleteJSON] failed with "+g.status+": "+b,{...await g.json(),status:g.status});return g.json()},h=async(b,g)=>fetch(b,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(g)}),i=async(b,g)=>{const S=await h(b,g);if(!S.ok)throw n("[fetchPostHead] failed with "+S.status+": "+b,{status:S.status})},f=async(b,g)=>{const S=await fetch(b,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify(g)});if(!S.ok)throw n("[fetchPostJSON] failed with "+S.status+": "+b,{...await S.json(),status:S.status});return S.json()},p=async(b,g)=>{const S=await fetch(b,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify(g)});if(!S.ok)throw n("[fetchPostText] failed with "+S.status+": "+b,{status:S.status});return S.json()},s=async(b,g)=>{const S=await fetch(b,{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+": "+b,{...await S.json(),status:S.status});return S.json()},l=async(b,g)=>{const S=await fetch(b,{method:"POST",headers:{"content-type":"application/json"},credentials:"same-origin",body:g});if(!S.ok)throw n("[fetchDeleteJSON] failed with "+S.status+": "+b,{url:b,status:S.status});return S.json()},C=async(b,g)=>{const S=await fetch(b,{method:"PUT",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify(g)});if(!S.ok)throw n("[fetchPutHead] failed with "+S.status+": "+b,{status:S.status})},v=async(b,g)=>{const S=await fetch(b,{method:"PUT",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify(g)});if(!S.ok)throw n("[fetchPutJSON] failed with "+S.status+": "+b,{...await S.json(),status:S.status});return S.json()},a=async(b,g)=>{const S=await fetch(b,{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+": "+b,{...await S.json(),status:S.status});return S.json()},P=async(b,g)=>{const S=await fetch(b,{method:"DELETE",headers:{"content-type":"application/json"},body:JSON.stringify(g)});if(!S.ok)throw n("[fetchDeleteBodyHead] failed with "+S.status+": "+b)}},37320:(Fe,ee,e)=>{"use strict";e.d(ee,{xb:()=>N,p$:()=>Q,ay:()=>M});var n=e(99963),r=e(70933),c=e(67588);const o=["top","bottom","left","right"],w={onV:["top","bottom"],onH:["left","right"]},u=(G,Z,J)=>{const te={top:new Map,bottom:new Map,left:new Map,right:new Map};return te.bottom=h({dirPositionObj:Z,target:G,currentRectGap:te,rects:J}),te.top=f({dirPositionObj:Z,target:G,currentRectGap:te,rects:J}),te.left=p({dirPositionObj:Z,target:G,currentRectGap:te,rects:J}),te.right=s({dirPositionObj:Z,target:G,currentRectGap:te,rects:J}),te},d=(G,Z,J)=>{const te=G.get(Z)||[];te.push(J),G.set(Z,te)},y=G=>{const Z={top:{map:new Map,positionArr:[]},bottom:{map:new Map,positionArr:[]},left:{map:new Map,positionArr:[]},right:{map:new Map,positionArr:[]}};G.forEach((te,he)=>{o.forEach(de=>{d(Z[de].map,te[de],he)})}),o.forEach(te=>{Z[te].positionArr=[...Z[te].map.keys()].sort((he,de)=>he-de)});const J=[];return G.forEach(te=>{const he=u(te,Z,G);J.push(he)}),{systemGapArr:J,dirPositionObj:Z}},h=G=>{let{dirPositionObj:Z,target:J,currentRectGap:te,rects:he}=G;const de=l(Z.top.positionArr,J.bottom);if(de!==-1){const Se=Z.top.positionArr.length;let xe=!1;for(let be=de;be{const ve=he[ue];!(ve.rightJ.right)&&!i(ve,J)&&(xe=!0,te.bottom.set(ie-J.bottom,[ue]))})}}return te.bottom},i=(G,Z)=>G.top===Z.top&&G.left===Z.left&&G.right===Z.right&&G.bottom===Z.bottom,f=G=>{let{dirPositionObj:Z,target:J,currentRectGap:te,rects:he}=G;const de=C(Z.bottom.positionArr,J.top);if(de!==-1){let Se=!1;for(let xe=de;xe>=0&&!Se;xe--){const be=Z.bottom.positionArr[xe];Z.bottom.map.get(be).forEach(oe=>{const ue=he[oe];!(ue.rightJ.right)&&!i(ue,J)&&(Se=!0,te.top.set(J.top-be,[oe]))})}}return te.top},p=G=>{let{dirPositionObj:Z,target:J,currentRectGap:te,rects:he}=G;const de=C(Z.right.positionArr,J.left);if(de!==-1){let Se=!1;for(let xe=de;xe>=0&&!Se;xe--){const be=Z.right.positionArr[xe];Z.right.map.get(be).forEach(oe=>{const ue=he[oe];!(ue.bottomJ.bottom)&&!i(ue,J)&&(Se=!0,te.left.set(J.left-be,[oe]))})}}return te.left},s=G=>{let{dirPositionObj:Z,target:J,currentRectGap:te,rects:he}=G;const de=l(Z.left.positionArr,J.right);if(de!==-1){const Se=Z.left.positionArr.length;let xe=!1;for(let be=de;be{const ve=he[ue];!(ve.bottomJ.bottom)&&!i(ve,J)&&(xe=!0,te.right.set(ie-J.right,[ue]))})}}return te.right},l=(G,Z)=>{const J=G.length;if(J<=0||G[J-1]=Z?Se=be:Se=xe}G[Se]>=Z?(he=Se-1,de=Se):te=Se+1}return de>0&&G[de-1]>=Z&&(de=de-1),de},C=(G,Z)=>{const J=G.length;if(J<=0||G[0]>Z)return-1;let te=0,he=J-1,de=0;for(;te=Z?Se=be:Se=xe}G[Se]<=Z?(te=Se+1,de=Se):he=Se-1}return de!==J&&G[de+1]<=Z&&(de=de+1),de},v=G=>{const Z={onV:new Map,onH:new Map},J=new Map;return G.forEach((te,he)=>{const{top:de,bottom:Se,left:xe,right:be}=te;J.set(he,te),d(Z.onH,de,he),d(Z.onH,Math.floor((de+Se)/2),he),d(Z.onH,Se,he),d(Z.onV,xe,he),d(Z.onV,Math.floor((xe+be)/2),he),d(Z.onV,be,he)}),{systemRefMap:Z,systemRectSizeMap:J}},a=function(G,Z,J,te,he){J===void 0&&(J=[]),he===void 0&&(he=15);const de=P(G,J),Se={onV:{offset:0,lines:new Map},onH:{offset:0,lines:new Map}};let xe=!1,be=!1;for(let ie=0;ie{if(typeof oe!="number"||!Number.isInteger(oe))return;const ve=Math.pow(-1,ie)*ie/2>>0,re=oe+ve;if(Z.onV.has(re)){const fe=J.includes("left")||J.includes("right"),Te=ue===2&&fe?ve*2:ve;Se.onV.offset=Te,Se.onV.lines.set(re,Z.onV.get(re)),xe=!0}});for(let ie=0;ie{if(typeof oe!="number"||!Number.isInteger(oe))return;const ve=Math.pow(-1,ie)*ie/2>>0,re=oe+ve;if(Z.onH.has(re)){const fe=J.includes("top")||J.includes("bottom"),Te=ue===2&&fe?ve*2:ve;Se.onH.offset=Te,Se.onH.lines.set(re,Z.onH.get(re)),be=!0}});return Se},P=function(G,Z){Z===void 0&&(Z=[]);const J=Z.length>0,{left:te,right:he,top:de,bottom:Se,width:xe,height:be}=G;return{onV:[J&&!Z.includes("right")?null:xe===1?te:he,J&&!Z.includes("left")?null:te,J?null:Math.floor((te+he)/2)],onH:[J&&!Z.includes("bottom")?null:be===1?de:Se,J&&!Z.includes("top")?null:de,J?null:Math.floor((de+Se)/2)]}},b=function(G,Z,J,te,he,de,Se){te===void 0&&(te=[]),Se===void 0&&(Se=5);const xe=u(G,he,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},ue=Math.round(Se/de)+1;return be?((K(te,"bottom")||K(te,"top"))&&(oe.v=I(ue,xe,J,te)),(K(te,"left")||K(te,"right"))&&(oe.h=k(ue,xe,J,te))):(oe.v=I(ue,xe,J,te),oe.h=k(ue,xe,J,te)),oe.v&&oe.v.gap<1e3/3&&(oe.v.rects=oe.v&&Array.from(new Set(oe.v.rects.map(ve=>String(ve)))).map(ve=>ve.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(ve=>String(ve)))).map(ve=>ve.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=(G,Z,J)=>G.filter(te=>te.startRect!=="target"&&te.endRect!=="target"?!0:S(te,Z,J)).map(te=>[te.endRect,te.startRect].sort()),S=(G,Z,J)=>{let{startRect:te,endRect:he,dir:de}=G,Se=te;he!=="target"&&(Se=he);const xe=_(J[Number(Se)][t(de)]);return!xe||xe>Z},t=G=>{let Z=G;switch(G){case"top":Z="bottom";break;case"bottom":Z="top";break;case"left":Z="right";break;case"right":Z="left";break;default:}return Z},_=G=>G.size?[...G.keys()][0]:!1,I=(G,Z,J,te)=>{const he={offset:null,gap:null,top:[],bottom:[]},de=w.onV,Se=te.length>0;let xe=null,be=null;return Se?(K(te,"top")&&(xe=j({range:G,targetGapMap:Z,systemGapArr:J,dir:"top",directions:de})),K(te,"bottom")&&(xe&&xe.offset!==null?be=z({offset:xe.offset,existLength:xe.gap,targetGapMap:Z,systemGapArr:J,dir:"bottom",directions:de}):be=j({range:G,targetGapMap:Z,systemGapArr:J,dir:"bottom",directions:de}))):(xe=j({range:G,targetGapMap:Z,systemGapArr:J,dir:"top",directions:de}),xe&&xe.offset!==null?be=z({offset:xe.offset,existLength:xe.gap,targetGapMap:Z,systemGapArr:J,dir:"bottom",directions:de}):be=j({range:G,targetGapMap:Z,systemGapArr:J,dir:"bottom",directions:de})),xe&&xe.offset!==null&&(he.offset=xe.offset,he.gap=xe.gap),be&&be.offset!==null&&(he.offset=be.offset,he.gap=be.gap),he.rects=[],xe&&xe.rects&&xe.rects.length&&(he.rects=he.rects.concat(g(xe.rects,he.gap,J))),be&&be.rects&&be.rects.length&&(he.rects=he.rects.concat(g(be.rects,he.gap,J))),he},k=(G,Z,J,te)=>{const he={offset:null,gap:null,rects:[]},de=w.onH,Se=te.length>0;let xe=null,be=null;return Se?(K(te,"left")&&(be=j({range:G,targetGapMap:Z,systemGapArr:J,dir:"left",directions:de})),K(te,"right")&&(be&&be.offset!==null?xe=z({offset:be.offset,existLength:be.gap,targetGapMap:Z,systemGapArr:J,dir:"right",directions:de}):xe=j({range:G,targetGapMap:Z,systemGapArr:J,dir:"right",directions:de}))):(be=j({range:G,targetGapMap:Z,systemGapArr:J,dir:"left",directions:de}),be&&be.offset!==null?xe=z({offset:be.offset,existLength:be.gap,targetGapMap:Z,systemGapArr:J,dir:"right",directions:de}):xe=j({range:G,targetGapMap:Z,systemGapArr:J,dir:"right",directions:de})),be&&be.offset!==null&&(he.offset=be.offset,he.gap=be.gap),xe&&xe.offset!==null&&(he.offset=xe.offset,he.gap=xe.gap),he.rects=[],be&&be.rects&&(he.rects=he.rects.concat(g(be.rects,he.gap,J))),xe&&xe.rects&&(he.rects=he.rects.concat(g(xe.rects,he.gap,J))),he},j=G=>{let{range:Z,targetGapMap:J,systemGapArr:te,dir:he,directions:de}=G;const Se={offset:null,gap:null,rects:[]},xe=J[he];if(!xe.size)return Se;const be=_(xe);let ie=!1;for(let oe=0;oe>0,ve=be+ue;te.forEach((re,fe)=>{de.forEach(we=>{const Te=re[we];if(!Te.size)return;const Ie=[...Te.keys()][0];Ie===ve&&(ie=!0,he==="right"||he==="bottom"?Se.offset=-ue:Se.offset=ue,Se.gap=ve,Se.rects.push({startRect:fe,endRect:Te.get(Ie)[0],dir:we}),Se.rects.push({endRect:xe.get(be)[0],startRect:"target",dir:he}))})}),de.forEach(re=>{if(re===he)return;const fe=J[re];if(!fe.size)return;const we=_(fe);we===ve&&(ie=!0,he==="right"||he==="bottom"?Se.offset=-ue:Se.offset=ue,Se.gap=ve,Se.rects.push({startRect:"target",endRect:fe.get(we)[0],dir:re}),Se.rects.push({endRect:xe.get(be)[0],startRect:"target",dir:he}))})}return Se},z=G=>{let{offset:Z,existLength:J,targetGapMap:te,systemGapArr:he,dir:de,directions:Se}=G;const xe={offset:null,gap:null,rects:[]},be=te[de];if(!be.size)return xe;const ie=_(be),oe=-Z;return he.forEach((ue,ve)=>{Se.forEach(re=>{const fe=ue[re];if(!fe.size)return;const we=[...fe.keys()][0];we===J&&(de==="right"||de==="bottom"?xe.offset=-oe:xe.offset=oe,xe.gap=J,xe.rects.push({startRect:ve,endRect:fe.get(we)[0],dir:re}),ie===J&&xe.rects.push({endRect:be.get(ie)[0],startRect:"target",dir:de}))})}),Se.forEach(ue=>{if(ue===de)return;const ve=te[ue];if(!ve.size)return;const re=_(ve);re-oe===J&&(de==="right"||de==="bottom"?xe.offset=-oe:xe.offset=oe,xe.gap=J,xe.rects.push({startRect:"target",endRect:ve.get(re)[0],dir:ue}),ie===J&&xe.rects.push({endRect:be.get(ie)[0],startRect:"target",dir:de}))}),xe},K=(G,Z)=>G.includes(Z),$=function(G,Z,J,te,he){J===void 0&&(J=[]),he===void 0&&(he=3);const{width:de,height:Se}=G,xe={onV:{offset:0,sameLengthMap:new Map},onH:{offset:0,sameLengthMap:new Map}};let be=!1,ie=!1;for(let oe=0;oe>0;let ve,re;J.includes("left")&&(ve=de-ue),J.includes("right")&&(ve=de+ue),J.includes("bottom")&&(re=Se+ue),J.includes("top")&&(re=Se-ue),Z.forEach(fe=>{const{top:we,left:Te,width:Ie,height:le}=fe;!be&&(J.includes("left")||J.includes("right"))&&Ie&&Ie===ve&&d(xe.onH.sameLengthMap,ve,[Te,we]),!ie&&(J.includes("bottom")||J.includes("top"))&&le&&le===re&&d(xe.onV.sameLengthMap,re,[Te,we])}),xe.onH.sameLengthMap.size>0&&!be&&(xe.onH.offset=ue,be=!0),xe.onV.sameLengthMap.size>0&&!ie&&(xe.onV.offset=ue,ie=!0)}return xe},A=(G,Z,J)=>{const te={onV:new Map,onH:new Map},he=G.h,de=G.v;he.forEach(oe=>{d(te.onH,oe,"ruler")}),de.forEach(oe=>{d(te.onV,oe,"ruler")});const{h:Se,v:xe}=J;Se.forEach(oe=>{d(te.onH,oe,"ruler")}),xe.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(G,Z,J,te){te===void 0&&(te=10);const he=P(G,J),de={onV:{offset:0,isHave:!1},onH:{offset:0,isHave:!1}};let Se=!1,xe=!1;for(let be=0;be<2*te+1&&!Se;be++)he.onV.forEach((ie,oe)=>{if(typeof ie!="number")return;const ue=Math.pow(-1,be)*be/2>>0,ve=ie+ue;if(Z.onV.has(ve)){const re=J.includes("left")||J.includes("right"),we=oe===2&&re?ue*2:ue;de.onV={offset:we,isHave:!0},Se=!0}});for(let be=0;be<2*te+1&&!xe;be++)he.onH.forEach((ie,oe)=>{if(typeof ie!="number")return;const ue=Math.pow(-1,be)*be/2>>0,ve=ie+ue;if(Z.onH.has(ve)){const re=J.includes("top")||J.includes("bottom"),we=oe===2&&re?ue*2:ue;de.onH={offset:we,isHave:!0},xe=!0}});return de};var U=e(50001),O=e(20089),H=e(8580);const Q={v:[],h:[]},N=()=>[],L=()=>{var G,Z;const J=MB.__store__.getState(),te=(0,c.k3)(J),he=(0,r.eo)(J);if(!te||!he)return Q;const de=sdkStore.getHotItem(he);return{v:(de==null||(G=de.hotAttr)==null?void 0:G.alignV)||[],h:(de==null||(Z=de.hotAttr)==null?void 0:Z.alignH)||[]}},V=(G,Z)=>{var J;const te=MB.__store__.getState();if(!(0,c.k3)(te))return Q;const de=(Z==null?void 0:Z.length)===1&&((J=Z[0])==null?void 0:J.hotAttr.type)===O.x.Canvas;let Se=null;if(de){var xe;Se=sdkStore.getHotItem((xe=Z[0])==null?void 0:xe.key)}if(!G&&!Se)return Q;const be=[],ie=[],oe=ue=>{if(!ue)return;const{hotAttr:{alignH:ve,alignV:re}}=ue,{x:fe,y:we}=n.o.axisAligned((0,H.Oj)(ue.key));be.push(...re.map(Te=>Te+fe)||[]),ie.push(...ve.map(Te=>Te+we)||[])};return oe(G),oe(Se),{v:be,h:ie}},M=G=>{let{viewport:Z={scale:1},movableItems:J=[],isRuleLine:te=!1,refTolerance:he=15,referenceTolerance:de=10,sameSizeTolerance:Se=3,distributedTolerance:xe=5,createSnapper:be=(Pe,pe,ke)=>[],getCurrentLayout:ie=Pe=>Q,getCurrentScreenAlign:oe=Pe=>L(),getCommonParentAlign:ue=(Pe,pe)=>V(Pe,pe)}=G,ve=(0,U.ZZ)(J);const re=Pe=>{const pe=oe(J),ke=ie(J),We=be(te,J,Pe),Ee=ue(ve,J),Ae=A(pe,ke,Ee),Ce=y(We),_e=v(We);return{rectList:We,refMap:_e,systemRulerAndLayoutMap:Ae,systemGap:Ce}};let{rectList:fe,refMap:we,systemRulerAndLayoutMap:Te,systemGap:Ie}=re();const le=Pe=>{({rectList:fe,refMap:we,systemRulerAndLayoutMap:Te,systemGap:Ie}=re(Pe))};let me;return function(Pe){let{_rect:pe,resizing:ke=[],altKey:We=!1,originAspectRatio:Ee=void 0,sup:Ae}=Pe;if(me!==Ae&&Ae){var Ce;const Bt=(0,U.ZZ)(J,Ae);((Ce=ve)==null?void 0:Ce.key)!==(Bt==null?void 0:Bt.key)&&(ve=Bt,le(Ae))}me=Ae;const{systemRefMap:_e,systemRectSizeMap:Ge}=we,{systemGapArr:Xe,dirPositionObj:Ue}=Ie,pt={...pe,bottom:pe.top+pe.height,right:pe.left+pe.width},Ye=ke.length!==0,{onV:Qe,onH:lt}=a(pt,_e,ke,Z.scale,he),{onV:tt,onH:qe}=b(pt,fe,Xe,ke,Ue,Z.scale,xe),{onV:et,onH:st}=E(pt,Te,ke,de);let at;Ye&&(at=$(pt,fe,ke,Z.scale,Se));const ct=W({refOnV:Qe,refOnH:lt,distributedOnV:tt,distributedOnH:qe,sameSizeOri:at,referenceLineV:et,referenceLineH:st}),[rt,At,ot]=Y(pt,ct,ke,We,Ee);Ge.set("target",rt);let Tt={},ft={},Nt={};if(At&&At.refOnVLines){const Bt=[];Qe.lines.forEach((zt,Xt)=>{const bt=zt.map(jn=>fe[jn]);bt&&Bt.push({x:Xt,refRects:bt,refTotalRect:X(bt)})}),Tt.onV=Bt,Tt.showNumber=!Ye}if(At&&At.sameSizeOnH&&(Nt.onH=At.sameSizeOnH.sameLengthMap),ot&&ot.refOnHLines){const Bt=[];lt.lines.forEach((zt,Xt)=>{const bt=zt.map(jn=>fe[jn]);bt&&Bt.push({y:Xt,refRects:bt,refTotalRect:X(bt)})}),Tt.onH=Bt,Tt.showNumber=!Ye}if(ot&&ot.sameSizeOnV&&(Nt.onV=ot.sameSizeOnV.sameLengthMap),B(Nt)?Nt=null:Nt.target=rt,B(Tt)?Tt=null:Tt.target=rt,ot&&ot.distributedOnV){const zt=Array.from(new Set(Array.prototype.concat.apply([],ot.distributedOnV.rects))).filter(bt=>bt==="target"?!1:!D(rt,Ge.get(Number(bt)),"onV")),Xt=ot.distributedOnV.rects.filter(bt=>!bt.some(jn=>zt.includes(jn))).map(bt=>bt.map(jn=>Ge.get(jn==="target"?"target":Number(jn))));Xt.length>1&&(ft.onV={gap:ot.distributedOnV.adjustedGap,offset:ot.distributedOnV.offset,rects:Xt})}if(!ft.onV&&At&&At.distributedOnH){const zt=Array.from(new Set(Array.prototype.concat.apply([],At.distributedOnH.rects))).filter(bt=>bt==="target"?!1:!D(rt,Ge.get(Number(bt)),"onH")),Xt=At.distributedOnH.rects.filter(bt=>!bt.some(jn=>zt.includes(jn))).map(bt=>bt.map(jn=>Ge.get(jn==="target"?"target":Number(jn))));Xt.length>1&&(ft.onH={gap:At.distributedOnH.adjustedGap,offset:At.distributedOnH.offset,rects:Xt})}return B(ft)?ft=null:ft.target=rt,{...rt,alignment:Tt,distributed:ft,sameSize:Nt}}},D=(G,Z,J)=>J==="onV"?!(G.right<=Z.left||G.left>=Z.right):J==="onH"?!(G.bottom<=Z.top||G.top>=Z.bottom):!1,W=G=>{let{refOnV:Z,refOnH:J,distributedOnV:te,distributedOnH:he,sameSizeOri:de,referenceLineV:Se,referenceLineH:xe}=G;const be=new Map,ie=new Map;return he.adjustedGap!==1/0&&he.adjustedGap!==null&&F(be,he.offset,{distributedOnH:he}),Z.lines.size>0&&F(be,Z.offset,{refOnVLines:Z.lines}),de&&de.onH.sameLengthMap.size>0&&F(be,de.onH.offset,{sameSizeOnH:de.onH}),te.adjustedGap!==1/0&&te.adjustedGap!==null&&F(ie,te.offset,{distributedOnV:te}),J.lines.size>0&&F(ie,J.offset,{refOnHLines:J.lines}),de&&de.onV.sameLengthMap.size>0&&F(ie,de.onV.offset,{sameSizeOnV:de.onV}),Se.isHave&&F(be,Se.offset,{referenceLineV:Se}),xe.isHave&&F(ie,xe.offset,{referenceLineH:xe}),{offsetXMap:be,offsetYMap:ie}},F=(G,Z,J)=>{const te=G.get(Z)||{};G.set(Z,{...te,...J})},B=G=>Object.keys(G).length===0,Y=(G,Z,J,te,he)=>{let de=null,Se=null;const{offsetXMap:xe,offsetYMap:be}=Z,ie={x:0,y:0};if(xe.size!==0){const me=Math.min(...Array.from(xe.keys()));ie.x=me,de=xe.get(me)}if(be.size!==0){const me=Math.min(...Array.from(be.keys()));ie.y=me,Se=be.get(me)}const{left:oe,width:ue,right:ve,top:re,height:fe,bottom:we}=G,{x:Te,y:Ie}=ie,le=J.length!==0;if(te)if(he!==void 0&&le){const me=!!de,Pe=!!Se,pe={...G},ke={x:(G.left+G.right)/2,y:(G.top+G.bottom)/2};return me&&Pe||me&&!Pe?(J.includes("left")?(pe.left=oe+Te,pe.right=ve-Te,pe.width=ue-2*Te,pe.height=Math.floor(pe.width/he),pe.top=Math.floor(ke.y-pe.width/he/2),pe.bottom=Math.floor(ke.y+pe.width/he/2)):J.includes("right")&&(pe.right=ve+Te,pe.left=oe-Te,pe.width=ue+2*Te,pe.height=Math.floor(pe.width/he),pe.top=Math.floor(ke.y-pe.width/he/2),pe.bottom=Math.floor(ke.y+pe.width/he/2)),Se=null):Pe&&!me&&(J.includes("top")?(pe.top=re+Ie,pe.bottom=we-Ie,pe.height=fe-2*Ie,pe.width=Math.floor(pe.height*he),pe.left=Math.floor(ke.x-pe.height*he/2),pe.right=Math.floor(ke.x+pe.height*he/2)):J.includes("bottom")&&(pe.bottom=we+Ie,pe.top=re-Ie,pe.height=fe+2*Ie,pe.width=Math.floor(pe.height*he),pe.left=Math.floor(ke.x-pe.height*he/2),pe.right=Math.floor(ke.x+pe.height*he/2))),[pe,de,Se]}else{const me={...G};return J.includes("left")?(me.left=oe+Te,me.right=ve-Te,me.width=ue-2*Te):J.includes("right")?(me.right=ve+Te,me.left=oe-Te,me.width=ue+2*Te):le||(me.left=oe+Te,me.right=ve+Te),J.includes("top")?(me.top=re+Ie,me.bottom=we-Ie,me.height=fe-2*Ie):J.includes("bottom")?(me.bottom=we+Ie,me.top=re-Ie,me.height=fe+2*Ie):le||(me.top=re+Ie,me.bottom=we+Ie),[me,de,Se]}else if(he!==void 0&&le){const me=!!de,Pe=!!Se,pe={...G};if(me&&Pe||me&&!Pe){if(J.includes("left"))if(pe.left=oe+Te,pe.width=ue-Te,pe.height=Math.floor(pe.width/he),J.includes("top"))pe.top=pe.bottom-pe.height;else if(J.includes("bottom"))pe.bottom=pe.top+pe.height;else{const ke=pe.height-G.height;pe.bottom=Math.floor(pe.bottom+ke/2),pe.top=Math.floor(pe.top-ke/2)}else if(J.includes("right"))if(pe.right=ve+Te,pe.width=ue+Te,pe.height=Math.floor(pe.width/he),J.includes("top"))pe.top=pe.bottom-pe.height;else if(J.includes("bottom"))pe.bottom=pe.top+pe.height;else{const ke=pe.height-G.height;pe.bottom=Math.floor(pe.bottom+ke/2),pe.top=Math.floor(pe.top-ke/2)}Se=null}else if(Pe&&!me){if(J.includes("top"))if(pe.top=re+Ie,pe.height=fe-Ie,pe.width=Math.floor(pe.height*he),J.includes("left"))pe.left=pe.right-pe.width;else if(J.includes("right"))pe.right=pe.left+pe.width;else{const ke=pe.width-G.width;pe.right=Math.floor(pe.right+ke/2),pe.left=Math.floor(pe.left-ke/2)}else if(J.includes("bottom"))if(pe.bottom=we+Ie,pe.height=fe+Ie,pe.width=Math.floor(pe.height*he),J.includes("left"))pe.left=pe.right-pe.width;else if(J.includes("right"))pe.right=pe.left+pe.width;else{const ke=pe.width-G.width;pe.right=Math.floor(pe.right+ke/2),pe.left=Math.floor(pe.left-ke/2)}}return[pe,de,Se]}else{const me={...G};return J.includes("left")?(me.left=oe+Te,me.width=ue-Te):J.includes("right")?(me.right=ve+Te,me.width=ue+Te):le||(me.left=oe+Te,me.right=ve+Te),J.includes("top")?(me.top=re+Ie,me.height=fe-Ie):J.includes("bottom")?(me.bottom=we+Ie,me.height=fe+Ie):le||(me.top=re+Ie,me.bottom=we+Ie),[me,de,Se]}};function X(G){let Z=1/0,J=1/0,te=-1/0,he=-1/0;return G.forEach(de=>{Z=Math.min(de==null?void 0:de.top,Z),J=Math.min(de==null?void 0:de.left,J),te=Math.max((de==null?void 0:de.left)+(de==null?void 0:de.width),te),he=Math.max((de==null?void 0:de.top)+(de==null?void 0:de.height),he)}),{top:Z,left:J,right:te,bottom:he,width:te-J,height:he-Z}}},37361:(Fe,ee,e)=>{"use strict";e.d(ee,{MI:()=>u,PN:()=>w,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),w=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:(Fe,ee,e)=>{"use strict";e.d(ee,{H3:()=>f,hp:()=>l,Ge:()=>p,pQ:()=>v,ae:()=>P});var n=e(80666),r=e(19013),c=e(31569);const o=b=>{if(!b)return!1;const[g,S]=b,[t,_]=g,[I,k]=S;return t===1&&_===0&&I===0&&k===1||t===1&&_===.5&&I===0&&k===.5||t===1&&_===1&&I===0&&k===0};var w=e(20089),u=e(49021),d=e(44940),y=e(99917),h=e(97453),i=e(9680);const f=[...u.cX,w.x.CanvasAsOverlay,w.x.WLine,w.x.WArrow,w.x.WImage,w.x.WAudio,w.x.WVideo,w.x.WTriangleB,w.x.WTriangleTL,w.x.WIcon,w.x.WDropMenu,w.x.WDigitalStepper,w.x.WMobileTabBars,w.x.WSegmentedControl,w.x.WPaginationWeb,w.x.WPaginationMobile,w.x.WElbow,w.x.WMind],p=[w.x.CanvasAsOverlay,w.x.WRect,w.x.WOval,w.x.WButton,w.x.WButtonSolid,w.x.WSticky,w.x.WPlaceholder,w.x.WPolygon,w.x.WStar,w.x.WTriangleTL,w.x.WTriangleB,w.x.WIcon,w.x.WMSelect,w.x.WTriangle],s=[w.x.CanvasAsOverlay,w.x.WRect,w.x.WOval,w.x.WButton,w.x.WButtonSolid,w.x.WSticky,w.x.WPlaceholder,w.x.WPolygon,w.x.WStar,w.x.WTriangleTL,w.x.WTriangleB,w.x.WIcon,w.x.WMSelect,w.x.WMTextInput,w.x.WMTextArea,w.x.WVector,w.x.WTriangle,w.x.WFlowOpened,w.x.wFlowClosed,w.x.WMind,w.x.WMindNode,w.x.WImage],l=[w.x.WMapView,w.x.WWebpage],C=b=>{const{key:g}=b[0],{w:S,h:t}=sdkStore.getLocalBound(g);return Math.min(S,t)/2},v={[n.z.BorderRadiusPanel]:{[r.m9]:b=>{var g,S;let{selectedItems:t}=b;const _=(0,c.i)(t,"borderRadius")||d.A.border_radius,I=(g=(0,c.i)(t,"borderRadiusIsVisible"))!=null?g:!0,k=C(t);return{borderRadius:((S=(0,c.i)(t,"borderRadiusIsRound"))!=null?S:!1)?k:_,borderRadiusIsVisible:I,show:!0,refVars:{borderRadius:(0,i.QC)(t)}}},[w.x.WImage]:b=>{var g,S;let{selectedItems:t}=b;const _=t.find($=>$.hotAttr.type===w.x.WImage),{image:{imageClipType:I}}=_==null?void 0:_.hotAttr,k=(0,c.i)(t,"borderRadius")||d.A.border_radius,j=C(t),z=(g=(0,c.i)(t,"borderRadiusIsRound"))!=null?g:!1,K=(S=(0,c.i)(t,"borderRadiusIsVisible"))!=null?S:!0;return{borderRadius:z?j:k,show:I!==y.Mg.circular,borderRadiusIsVisible:K,refVars:{borderRadius:(0,i.QC)(t)}}},[w.x.WPolygon]:b=>{var g,S;let{selectedItems:t}=b;const I=(0,c.i)(t,"polygon").cornerRadius||d.A.border_radius,k=(g=(0,c.i)(t,"borderRadiusIsVisible"))!=null?g:!0,j=C(t);return{borderRadius:((S=(0,c.i)(t,"borderRadiusIsRound"))!=null?S:!1)?j:I,borderRadiusIsVisible:k,show:!0,refVars:{borderRadius:(0,i.QC)(t)}}},[w.x.WStar]:b=>{var g,S;let{selectedItems:t}=b;const _=(0,c.i)(t,"star"),I=(_==null?void 0:_.cornerRadius)||d.A.border_radius,k=(g=(0,c.i)(t,"borderRadiusIsVisible"))!=null?g:!0,j=C(t);return{borderRadius:((S=(0,c.i)(t,"borderRadiusIsRound"))!=null?S:!1)?j:I,show:!0,borderRadiusIsVisible:k,refVars:{borderRadius:(0,i.QC)(t)}}},[w.x.WVector]:b=>{var g,S;let{selectedItems:t}=b;const _=(0,c.i)(t,"vector"),{points:I}=_,k=I.map(E=>{let{radius:U}=E;return U}),j=new Set(k),z=j.size===1,K=(g=(0,c.i)(t,"borderRadiusIsVisible"))!=null?g:!0,$=C(t),A=(S=(0,c.i)(t,"borderRadiusIsRound"))!=null?S:!1;return{borderRadius:z?k[0]:A?$:0,borderRadiusIsVisible:K,show:!0,placeholder:j.size===1?"":I18N.SettingPanel.multiple_value,refVars:{borderRadius:(0,i.QC)(t)}}}},[n.z.FillPanel]:{[r.m9]:b=>{let{selectedItems:g,isTextEditing:S,selectionAttrs:t}=b;const _=(0,c.i)(g,"background")||d.A.background;return{background:S&&t.background||_}},new:b=>{let{selectedItems:g}=b;const S=(0,c.i)(g,"fill"),t=(0,c.i)(g,"refStyles");return{fill:S,refStyles:t}},properties:b=>{let{selectedItems:g}=b;return{attr:"fill",fill:(0,c.i)(g,"fill")||{fillIsVisible:!0,fill:"solid",solidColor:4294967295}}},solidFillOnly:b=>{let{selectedItems:g}=b;return{attr:"fill",fill:(0,c.i)(g,"fill")||{fillIsVisible:!0,fill:"solid",solidColor:4294967295},pIsSolidColorOnly:!0}},segmentedControl:b=>{let{selectedItems:g}=b;const{backgroundColor:S,isBackgroundVisible:t}=(0,c.i)(g,"segmentedControl");return{backgroundColorAttr:"backgroundColor",isVisibleAttr:"isBackgroundVisible",isBackgroundVisible:t,backgroundColor:S,supAttr:"segmentedControl"}},[w.x.WTree]:b=>{let{selectedItems:g}=b;return{attr:"fill",fill:(0,c.i)(g,"fill"),pIsSolidColorOnly:!0}},[w.x.WIphoneXSB]:b=>{let{selectedItems:g}=b;return{attr:"fill",fill:(0,c.i)(g,"fill"),pIsSolidColorOnly:!0}},[w.x.WVector]:b=>{let{selectedItems:g}=b;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}},[w.x.wFlowClosed]:b=>{let{selectedItems:g}=b;return{attr:"fill",fill:(0,c.i)(g,"fill"),pIsSolidColorOnly:!0}}},[n.z.BorderPanel]:{[r.m9]:b=>{let{selectedItems:g}=b;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:b=>{let{selectedItems:g}=b;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]:b=>{let{selectedItems:g}=b;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:b=>{let{selectedItems:g}=b;return{shadowValue:(0,c.i)(g,"shadow")||d.A.box_shadow,refVars:{shadow:(0,i.xj)(g,"shadow")}}}},[n.z.TextShadowsPanel]:{[r.m9]:b=>{let{selectedItems:g}=b;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:b=>{let{selectedItems:g}=b;return{shadowValue:(0,c.i)(g,"shadow")||d.A.text_shadow,refVars:{shadow:(0,i.xj)(g,"shadow")}}}},[n.z.ArrowSettingPanel]:{[w.x.WElbow]:b=>{let{selectedItems:g}=b;const S=(0,c.i)(g,"elbow"),{arrowStroke:t,startAnchor:_,endAnchor:I}=S,k=h.nF[_],j=h.EL[I];return{arrowTypes:[k,j],arrowStroke:t,anchorFromType:"startAnchor",anchorToType:"endAnchor",supAttr:"elbow",reverseArrow:!1,elbow:S,refVars:{elbow:(0,i.xj)(g,"elbow")}}},[r.m9]:b=>{var g,S,t,_;let{selectedItems:I}=b;const k=(0,c.i)(I,"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||(_=k.arrowPointTo)==null?void 0:_.y]]),refVars:{arrow:(0,i.xj)(I,"arrow")}}}},[n.z.ToolTipArrowSettingPanel]:{[r.m9]:b=>{let{selectedItems:g}=b;return{tooltip:(0,c.i)(g,"tooltip")}}},[n.z.TextStatusBarPanel]:{[r.m9]:b=>{let{selectedItems:g}=b;const{textColor:S}=(0,c.i)(g,"textV0");return{textColor:S,supAttr:"textV0"}}},[n.z.InputTypeKeyboardPanel]:{[r.m9]:b=>{let{selectedItems:g}=b;const{inputTypes:S}=(0,c.i)(g,"textInput");return{inputType:S,supAttr:"textInput"}}},[n.z.QRCodeSettingPanel]:{[r.m9]:b=>{let{selectedItems:g}=b;const{foregroundColor:S,isForegroundVisible:t,backgroundColor:_,isBackgroundVisible:I}=(0,c.i)(g,"qrCode");return{foreground:{color:S,isVisible:t},background:{color:_,isVisible:I}}}},[n.z.TextPanel]:{[r.m9]:b=>{let{selectedItems:g}=b;const{fontSize:S,textColor:t}=(0,c.i)(g,"textV0");return{fs:S,textColor:t,supAttr:"textV0"}},[w.x.WPaginationWeb]:b=>{let{selectedItems:g}=b;const{textSize:S,textColor:t}=(0,c.i)(g,"paginationWeb");return{fs:S,textColor:t,supAttr:"paginationWeb",fsAttr:"textSize"}},[w.x.WPaginationMobile]:b=>{let{selectedItems:g}=b;const{textSize:S,textColor:t}=(0,c.i)(g,"paginationMobile");return{fs:S,textColor:t,supAttr:"paginationMobile",fsAttr:"textSize"}},[w.x.WTabs]:b=>{let{selectedItems:g}=b;const{fontSize:S,textColor:t}=(0,c.i)(g,"tabs");return{fs:S,textColor:t,supAttr:"tabs"}},[w.x.WMobileTabBars]:b=>{let{selectedItems:g}=b;const{fontSize:S,textColor:t}=(0,c.i)(g,"mobileTabBars");return{fs:S,textColor:t,supAttr:"mobileTabBars"}},[w.x.WSegmentedControl]:b=>{let{selectedItems:g}=b;const{fontSize:S,textColor:t}=(0,c.i)(g,"segmentedControl");return{fs:S,textColor:t,supAttr:"segmentedControl"}}},[n.z.DigitalStepperPanel]:{[r.m9]:b=>{let{selectedItems:g}=b;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]:b=>{let{selectedItems:g}=b;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:b=>{let{selectedItems:g}=b;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]:b=>{let{selectedItems:g}=b;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]:b=>{let{selectedItems:g}=b;return{kbdStyle:(0,c.i)(g,"numeric")?"numeric":"text"}}},[n.z.CheckPanel]:{[r.m9]:b=>{let{selectedItems:g}=b;return{isChecked:!!(0,c.i)(g,"isChecked")}}}},a=[w.x.WRichText,w.x.WIcon],P=b=>{if(!f.includes(b))return[];const S=a.includes(b)?v[n.z.TextShadowsPanel].properties:v[n.z.BoxShadowsPanel].properties,t=[w.x.WRichText].includes(b)?()=>({}):v[n.z.BorderPanel].properties;return[v[n.z.BorderRadiusPanel][b]||v[n.z.BorderRadiusPanel][r.m9],v[n.z.FillPanel][s.includes(b)?"properties":r.m9],v[n.z.ArrowSettingPanel][b]||v[n.z.ArrowSettingPanel][r.m9],S,t]}},37780:(Fe,ee,e)=>{"use strict";e.d(ee,{R7:()=>z,iA:()=>I,mJ:()=>k});var n=e(24229),r=e(39695),c=e(39563),o=e(40860),w=e(95106),u=e(93413),d=e(83485),y=e(13923),h=e(19969),i=e(40486),f=e(9680),p=e(99566),s=e(70933),l=e(10472),C=e(25997),v=e(175),a=e(60651),P=e(4235),b=e(70422),g=e(87229),S=e(86594),t=e(83535),_=e(70812);const I=-999,k=250,z=(()=>{const K={isEditorFloatOpen:!1,editorFloatPosition:{top:I,left:I},editorFloatOpenFrom:"treePanelRightNormal",selectInteractionKeyList:[],selectItaInfo:{type:"empty",keyList:[]},newTriggerNodeShowKey:"",newTriggerNodeEditingKey:"",newInteractionTypeEditingKey:"",stateStack:[]},$=function(Ye,Qe){Ye===void 0&&(Ye=K);let{type:lt="interaction:state:update",payload:tt=K}=Qe,qe=[];if(tt)if(tt.stateStack)qe=[];else{qe=[...Ye.stateStack];const et={};tt.selectInteractionKeyList?et.selectInteractionKeyList=tt.selectInteractionKeyList:et.selectInteractionKeyList=Ye.selectInteractionKeyList,tt.selectItaInfo?et.selectItaInfo=tt.selectItaInfo:et.selectItaInfo=Ye.selectItaInfo,qe.push(et)}switch(lt){case"interaction:state:update":return{...Ye,...tt,stateStack:qe};default:return Ye}},A=(Ye,Qe)=>{Qe({type:"interaction:state:update",payload:{...Ye}})},[E,U]=g.B.genCommand({name:"interaction:interactionKeyList:select",impl:(Ye,Qe)=>{let{dispatch:lt,getState:tt}=Ye,{payload:{selectInteractionKeyList:qe,isScroll:et}}=Qe;const st=tt(),at=Ue.getNewInteractionTypeEditingKey(st),ct=Ue.getNewTriggerNodeShowKey(st);let rt="",At="";qe.forEach(ot=>{at===ot&&(rt=at),ct===ot&&(At=ct)}),A({...(0,i.qL)(qe),newInteractionTypeEditingKey:rt,newTriggerNodeShowKey:At},lt),et&&qe.length>0&&setTimeout(()=>{(0,i._6)({itaKey:qe[0]})},4)}}),[O,H]=g.B.genCommand({name:"interaction:clear:all",impl:(Ye,Qe)=>{let{dispatch:lt}=Ye,{payload:tt}=Qe;A({...(0,i.qL)([]),isEditorFloatOpen:!1,newInteractionTypeEditingKey:"",editorFloatOpenFrom:"treePanelRightNormal",stateStack:[],newTriggerNodeEditingKey:"",newTriggerNodeShowKey:""},lt),tt.withClearCellLinks&<({type:"links:active:link",payload:{cid:[]}})}}),[Q,N]=g.B.genCommand({name:"interaction:interactionEditorFloat:open",impl:(Ye,Qe)=>{let{dispatch:lt,getState:tt}=Ye,{payload:qe}=Qe;const et=tt(),at=Ue.getSelectInteractionKeyList(et)[0],ct=document.querySelector('#interaction-tree-list [data-key="'+at+'"]');if(!ct)return;const{top:rt,left:At}=ct.getBoundingClientRect(),ot=document.getElementById("tree-editor-float");let Tt;ot?Tt=ot.getBoundingClientRect().height:Tt=i.CS[qe==null?void 0:qe.interactionType]||107;const{finalTop:ft,finalLeft:Nt}=(0,i.X2)({top:rt,left:At,height:Tt}),Bt=()=>{qe!=null&&qe.alignTop?A({isEditorFloatOpen:!0,editorFloatOpenFrom:"alignTop",editorFloatPosition:{top:102,left:Nt-k}},lt):A({isEditorFloatOpen:!0,editorFloatOpenFrom:"treePanelRightNormal",editorFloatPosition:{top:ft,left:Nt-k}},lt),lt({type:"settings:update:state",payload:{selectCarouselImageIndex:null}})};qe!=null&&qe.directlySelect?Bt():(0,i._6)({itaKey:at,callback:Bt})}}),[L,V]=g.B.genCommand({name:"interaction:intActConnector:select",impl:(Ye,Qe)=>{var lt;let{dispatch:tt}=Ye,{payload:{interaction:qe,e:et}}=Qe;(lt=qe.data)!=null&<.triggerItemKey&&tt({type:"entry:select:items",payload:{cids:[qe.data.triggerItemKey]}}),tt({type:"right-side-panel:show:panel"}),tt({type:"settings:set:autoTabIndex",payload:{autoTabIndex:1}});let st=i.CS[qe.interactionType];qe.interactionType===r.O2.SetVisibility&&(st=i.CS[qe.actionType]);const{finalTop:at,finalLeft:ct}=(0,i.X2)({top:et.clientY+20,left:et.clientX-120,height:st});A({isEditorFloatOpen:!0,editorFloatOpenFrom:"itaConnector",...(0,i.qL)([qe.key]),editorFloatPosition:{top:at,left:ct}},tt),setTimeout(()=>{(0,i._6)({itaKey:qe.key})},4)}}),[M,D]=g.B.genCommand({name:"interaction:intActConnector:duumy:select",impl:(Ye,Qe)=>{let{dispatch:lt}=Ye,{payload:{e:tt}}=Qe;lt({type:"right-side-panel:show:panel"}),lt({type:"settings:set:autoTabIndex",payload:{autoTabIndex:1}});const qe=107,et=(0,i.m1)("tap"),{finalTop:st,finalLeft:at}=(0,i.X2)({top:tt.clientY+16,left:tt.clientX-120,height:qe});A({isEditorFloatOpen:!0,editorFloatOpenFrom:"itaConnector",...(0,i.qL)([et]),editorFloatPosition:{top:st,left:at}},lt),setTimeout(()=>{(0,i._6)({itaKey:et})},4)}}),[W,F]=g.B.genCommand({name:"interaction:editingInteraction:create",impl:(Ye,Qe)=>{let{getState:lt,dispatch:tt}=Ye,{payload:{interactionType:qe,tNodeTrigger:et,openEditorFloat:st,uiFrom:at,isActionDummy:ct,interactionStore:rt,selectNode2:At}}=Qe;const ot=lt(),Tt=(0,b.zX)(ot),ft=(0,P.p$)(ot)[0],Nt=sdkStore.getHotItem(ft),Bt=(0,i.P8)(qe);if(!Bt)return;const zt=rt.query.getTriggerInfoByNTrigger(et),Xt={...Bt,...zt};(0,h.cM)({ita:Xt,state:ot});const{selectSubItaType:bt}=(0,h.ju)(ot,at);if(bt!=="empty"&&(Xt.subKey=(0,n.cF)("sub")),Nt.hotAttr.type==="wTable"&&Tt&&(0,i.PP)(Tt)>1){if((0,c.SS)(Nt.hotAttr)){const{newHi:jn,selectKeyList:xo,activeLinkList:Po}=(0,i.OT)({item:Nt,selectTableCellInfo:Tt,newInteraction:Xt});if(tt({type:"entry:widget:change",payload:{flatChgList:[jn]}}),ct)return;tt({type:"links:active:link",payload:{cid:Po}}),tt(U({selectInteractionKeyList:xo})),setTimeout(()=>{(0,i._6)({itaKey:Xt.key}),st&&tt(N({}))},4),tt(G({newIta:Xt}))}}else{const jn=(At==null?void 0:At.sup)||(0,i.iY)(et),xo=[];if(rt.command.insertNodeIta(Xt,jn),xo.push(Xt),at==="treePanelFloat"&&qe===r.O2.ConditionalBranches){const yo=rt.query.findUpTriggerNode(Xt.key);if(!yo.sub.find(Ve=>Ve.attr.interactionType===r.O2.TriggerPlaceHolder)){const Ve={...(0,r.SL)(),subKey:(0,n.cF)("sub")};rt.command.insertNodeIta(Ve,yo.attr.key),xo.push(Ve)}}const{mergePair:Po,tableMisc:Gn}=(0,i.Bj)({hi:Nt,selectSubItaType:bt,state:ot,newItaList:xo});if(bt==="optionData"){const{updateNode:yo}=(0,i.DL)({type:"create",interactionList:xo,optionData:Nt.hotAttr.optionData,state:ot,mergePair:Po});tt({type:pt["interaction:sub:optionData:craete"],payload:{updateNode:yo}})}if(Po.hotAttr.interactions=rt.command.getInteractionsWithUV([Xt.interactionTrigger]),tt({type:"entry:widget:change",payload:{flatChgList:[Po]}}),Gn&&tt({type:"links:active:link",payload:{cid:Gn.activeCidList}}),ct)return;A({...(0,i.qL)([Xt.key]),newInteractionTypeEditingKey:Xt.key},tt),setTimeout(()=>{(0,i._6)({itaKey:Xt.key}),st&&tt(N({interactionType:Xt.interactionType})),tt(G({newIta:Xt}))},4)}tt({type:"entry:refresh:link-list"})}}),[B,Y]=g.B.genCommand({name:"interaction:linkDesignCreateIta",impl:(Ye,Qe)=>{let{getState:lt,dispatch:tt}=Ye,{payload:{interactionTrigger:qe,newInteraction:et,e:st}}=Qe;const at=lt(),ct=(0,P.nE)(at)[0],{key:rt,hotAttr:At}=ct,ot={...et};(0,h.cM)({ita:ot,state:at});const Tt=(0,t.G$)(At.interactions.filter(Bt=>!Bt.subKey)),ft=(0,y.E)({buildTreeRes:{itaTree:(0,i.Yj)({interactions:Tt}).itaTree,runTimeInteraction:Tt.map(Bt=>({...Bt,data:{...Bt}}))},selectSubItaType:"empty",type:"hasData",widget:ct});ft.command.insertNode((0,i.db)({attr:{...ot,data:{...ot}},supKey:(0,i.iY)(qe)}));const Nt={key:rt,hotAttr:{interactions:ft.command.getInteractionsWithUV([qe])}};tt({type:"entry:widget:change",payload:{flatChgList:[Nt]}}),tt({type:"entry:refresh:link-list"}),tt(z.command.intActConnectorSelectCommand({interaction:ot,e:st})),setTimeout(()=>{tt(G({newIta:ot}))},4)}}),[X,G]=g.B.genCommand({name:"interaction:interaction:guide",impl:(Ye,Qe)=>{let{getState:lt,dispatch:tt}=Ye,{payload:{newIta:qe}}=Qe;const et=lt(),{scene_tag:st}=(0,s.PL)(et);qe.transition==="auto"&&qe.interactionType===r.O2.LinkToCanvas&&setTimeout(()=>{MB.commonGuideHelper.tryToShowGuide(u.c.GUIDE_PAGE_CREAT_LINK2)},30),st&&(st.split("-")[0]==="DS"?tt({type:"entry:update:novice:guide:and:task",payload:{taskType:u.c.GUIDE_NOVICE_2309_TASK_3}}):tt({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:(Ye,Qe)=>{let{getState:lt,dispatch:tt}=Ye,{payload:{triggerList:qe,interactionStore:et}}=Qe;const st=lt(),at=(0,P.p$)(st)[0],ct=sdkStore.getHotItem(at),rt=et.query.getSelectSubItaType(),At=qe.map(ft=>({...(0,r.SL)(),...(0,p.X5)(ft),subKey:(0,n.cF)("sub")}));for(const ft of At)et.command.insertNode((0,i.db)({attr:{...ft,data:ft},supKey:(0,i.iY)((0,p.AE)(ft))}));const ot={key:at,hotAttr:{interactions:et.query.getInteractions()}};if(rt==="optionData"){const{updateNode:ft}=(0,i.DL)({type:"create",interactionList:At,optionData:ct.hotAttr.optionData,state:st,mergePair:ot});tt({type:pt["interaction:sub:optionData:craete"],payload:{updateNode:ft}})}else rt==="carouselImage"&&(0,i.e7)({type:"create",interactionList:At,carousel:ct.hotAttr.carousel,state:st,mergePair:ot});tt({type:"entry:widget:change",payload:{flatChgList:[ot]}}),tt({type:"entry:refresh:link-list"}),tt(U({selectInteractionKeyList:[(0,i.m1)(qe[0])]}));const Tt=(0,i.iY)(qe[0]);A({newTriggerNodeEditingKey:Tt,newTriggerNodeShowKey:Tt},tt)}}),[te,he]=g.B.genCommand({name:"interaction:instant:create",impl:(Ye,Qe)=>{let{getState:lt,dispatch:tt}=Ye,{payload:{tNodeTrigger:qe,uiFrom:et,interactionTree:st,interactionStore:at}}=Qe;const ct=st==null?void 0:st.sub.find(ot=>ot.attr.trigger===qe),rt=(0,i.iY)(qe);let At="";st&&ct||(tt(F({interactionType:r.O2.TriggerPlaceHolder,tNodeTrigger:qe,uiFrom:et,isActionDummy:!0,interactionStore:at})),At=rt),A({...(0,i.qL)([(0,i.m1)(qe)]),newTriggerNodeEditingKey:At,newTriggerNodeShowKey:At},tt)}}),[de,Se]=g.B.genCommand({name:"interaction:editingInteraction:edit",impl:(Ye,Qe)=>{let{getState:lt,dispatch:tt}=Ye,{payload:{link:qe,attr:et,value:st,uiFrom:at,interactionStore:ct,isNewTriggerPlaceHolder:rt=!0,nextTNodeTrigger:At}}=Qe;const ot=lt(),Tt=(0,P.p$)(ot)[0],ft=Ue.getSelectInteractionKeyList(ot);if(ft.length>1){var Nt;const Ve=(Nt=sdkStore.getHotItem(qe.triggerItemKey))==null?void 0:Nt.hotAttr.interactions;if(!Ve)return;let ut=[...Ve];for(const St of Ve)if(ft.includes(St.key)){const fn=(0,i.GE)({link:qe,attr:et,v:st,state:ot,attrInteraction:St}),{newInteractions:En}=(0,i.bH)({interactions:ut},fn);ut=En}tt({type:"entry:widget:change",payload:{flatChgList:[{key:Tt,hotAttr:{interactions:ut}}]}});return}const Bt=Tt&&sdkStore.getHotItem(Tt);if(!Bt)return;let zt=[...Bt.hotAttr.interactions];const Xt=zt.find(Ve=>{let{key:ut,interactionType:Kt}=Ve;return ut===qe.key&&Kt===qe.interactionType})||qe,bt=(0,p.AE)(Xt);let jn={};if(et==="interactionTrigger"){var xo;const Ve=Xt.interactionTrigger;if(ct.command.moveNodeToNewSup(Xt.key,(0,i.iY)(At)),zt=ct.command.getInteractionsWithUV([Ve,st]),rt&&ct._interactionTree.sub.length>1&&((xo=ct.query.getTriggerNode(bt))==null?void 0:xo.sub.length)===1){const Kt=(0,p.FK)(Xt),St=ct.query.getSelectSubItaType(),fn={...(0,i.P8)(r.O2.TriggerPlaceHolder),...Kt,"!validVersion":2};jn=(0,i.gk)({hi:{...Bt,hotAttr:{...Bt==null?void 0:Bt.hotAttr,interactions:zt}},selectSubItaType:St,newIta:fn,state:ot,...Kt,preserveOrder:Xt.order}).newFlatChg,jn&&(zt=jn.hotAttr.interactions)}const ut=[{key:Bt.key,hotAttr:{...jn.hotAttr,interactions:zt}}];tt({type:"entry:widget:change",payload:{flatChgList:ut}}),tt({type:"entry:refresh:link-list"}),setTimeout(()=>{(0,i._6)({itaKey:qe.key})},4);return}const Po=(0,i.GE)({link:qe,attr:et,v:st,state:ot,attrInteraction:Xt,itaStore:ct});if(ct.command.replaceIta(Po),et==="interactionType"&&(qe.interactionType===r.O2.ConditionalBranches&&(0,i._k)(ct.query.getNode(qe.key),Ve=>{ct.command.deleteByTreeNode({treeNode:Ve,uiFrom:at})}),Po.interactionType===r.O2.ConditionalBranches&&ct.command.toBranchRootNode({newIta:Po}),at==="treePanelFloat"&&Po.interactionType===r.O2.ConditionalBranches)){const Ve=ct.query.findUpTriggerNode(Po.key);if(!Ve.sub.find(ut=>ut.attr.interactionType===r.O2.TriggerPlaceHolder)){const ut={...(0,r.SL)(),subKey:(0,n.cF)("sub")};ct.command.insertNodeIta(ut,Ve.attr.key);const{selectSubItaType:Kt}=(0,h.ju)(ot,at),{mergePair:St,tableMisc:fn}=(0,i.Bj)({hi:Bt,selectSubItaType:Kt,state:ot,newItaList:[ut]});jn.hotAttr=St.hotAttr}}const Gn=ct.command.getInteractionsWithUV([Po.interactionTrigger]),yo=[{key:Tt,hotAttr:{...jn.hotAttr,interactions:Gn}}];tt({type:"entry:widget:change",payload:{flatChgList:yo}}),tt({type:"entry:refresh:link-list"}),et==="interactionType"&&(at==="treePanelRight"&&tt(z.command.interactionEditorFloatOpenCommand({directlySelect:!0,interactionType:st})),A({newInteractionTypeEditingKey:qe.key},tt))}}),[xe,be]=g.B.genCommand({name:"interaction:editingInteraction:edit:direct",impl:(Ye,Qe)=>{var lt;let{getState:tt,dispatch:qe}=Ye,{payload:{runtimeIta:et,attrValueList:st}}=Qe;const at=tt(),rt=(lt=(0,P.nE)(at)[0])==null?void 0:lt.key,At=rt&&sdkStore.getHotItem(rt);if(!At)return;let ot=[...At.hotAttr.interactions];const Tt={...et.data};for(const[Nt,Bt]of st)Tt[Nt]=Bt,Tt.expression&&(Tt.expression={...Tt.expression,[Nt]:void 0});ot=ot.map(Nt=>Nt.key===et.key?{...Tt,"!validVersion":2}:{...Nt,"!validVersion":2}),qe({type:"entry:widget:change",payload:{flatChgList:[{key:rt,hotAttr:{interactions:ot}}]}}),qe({type:"entry:refresh:link-list"})}}),[ie,oe]=g.B.genCommand({name:"interaction:editingInteraction:edit:batch",impl:(Ye,Qe)=>{let{getState:lt,dispatch:tt}=Ye,{payload:{attr:qe,value:et,trigger:st,interactionStore:at,selectNode:ct,nextTNodeTrigger:rt,uiFrom:At}}=Qe,ot=(0,p.Jh)(st);if(qe==="interactionTrigger"){var Tt,ft;if(((Tt=at.query.getTriggerNode(st))==null?void 0:Tt.attr.disabled)!==((ft=at.query.getTriggerNode(rt))==null?void 0:ft.attr.disabled)){var Nt;at.command.updateTriggerSubNode({trigger:st,attr:"triggerDisable",value:!!((Nt=at.query.getTriggerNode(rt))!=null&&Nt.attr.disabled)})}if(ot=et,A({newTriggerNodeEditingKey:(0,i.iY)(rt)},tt),ct){ct.type==="trigger"&&at.command.updateTriggerNodeAttr({preTriggerNode:ct,nextTNodeTrigger:rt});const Xt=at.query.getTriggerInfoByNTrigger(rt);Object.entries(Xt).map(bt=>{let[jn,xo]=bt;return at.command.updateNodeWalk({selectNode:ct,key:jn,value:xo})})}else at.command.updateTriggerNodeWalk({trigger:st,attr:qe,value:et,nextTNodeTrigger:rt})}else ct?at.command.updateNodeWalk({selectNode:ct,attr:qe,value:et}):at.command.updateTriggerSubNode({trigger:st,attr:qe,value:et});const Bt=at.command.getInteractionsWithUV([ot]);At==="treePanelFloat"&&rt&&Bt.length===1&&Bt[0].interactionType===r.O2.TriggerPlaceHolder&&(Bt.pop(),U({selectInteractionKeyList:[(0,i.m1)(rt)]}));const zt=[{key:at.query.getCurrentWidget().key,hotAttr:{interactions:Bt}}];tt({type:"entry:widget:change",payload:{flatChgList:zt}}),tt({type:"entry:refresh:link-list"})}}),[ue,ve]=g.B.genCommand({name:"interaction:interaction:delete2",impl:(Ye,Qe)=>{let{getState:lt,dispatch:tt}=Ye,{payload:{uiFrom:qe,interactionStore:et,deleteNode:st,deleteUiFrom:at,onCloseCallback:ct}}=Qe;const rt=lt(),At=(0,P.p$)(rt)[0],ot=(0,b.zX)(rt),Tt=sdkStore.getHotItem(At),{selectSubItaType:ft}=(0,h.ju)(rt,qe);let Nt;if(qe==="treePanelFloat"){const yo=Ue.getSelectInteractionKeyList(rt)[0],{renderContentType:Ve,nextKey:ut}=(0,i.H4)(et._interactionTree);if(Ve==="multiple"){const Kt=et.query.findUpNodeList(et.query.getNode(yo));yo===st.attr.key||Kt.map(St=>St.attr.key).includes(st.attr.key)?Nt=(0,i.he)({selectNode:st,interactionStore:et}):Nt=[yo]}else Ve==="single"||(Nt=[ut])}et.command.deleteByTreeNode({treeNode:st,uiFrom:qe});const Bt=[];if(at==="treePanelFloat"&&ft!=="empty"&&ft!=="tableCell"&&et._interactionTree.sub.length===1){const yo=et._interactionTree.sub[0];if((0,i.xx)(yo.sub).length===1&&!yo.sub.find(Ve=>Ve.interactionType===r.O2.TriggerPlaceHolder)){const Ve=yo.attr.trigger,ut=et.query.getTriggerInfoByNTrigger(Ve),Kt={...(0,r.SL)(),subKey:(0,n.cF)("sub"),...ut};et.command.insertNodeIta(Kt,yo.attr.key),Bt.push(Kt)}}const zt=et.command.getInteractionsWithUV([st.type==="trigger"?(0,p.Jh)(st.attr.trigger):st.attr.interactionTrigger]),Xt={key:At,hotAttr:{interactions:zt}};if(ft==="optionData"){var bt;let yo;const{updateNode:Ve}=(0,i.DL)({type:"delete",interactionList:zt,optionData:Tt.hotAttr.optionData,state:rt,mergePair:Xt});if(yo=Ve,Bt.length>0){const{updateNode:ut}=(0,i.DL)({type:"create",interactionList:Bt,optionData:Xt.hotAttr.optionData,state:rt,mergePair:Xt});yo=ut}((bt=Nt)==null?void 0:bt.length)===0&&(ct==null||ct()),tt({type:pt["interaction:sub:optionData:delete"],payload:{updateNode:yo}})}else if(ft==="carouselImage"){var jn;(0,i.e7)({type:"delete",interactionList:zt,carousel:Tt.hotAttr.carousel,state:rt,mergePair:Xt}),Bt.length>0&&(0,i.e7)({type:"create",interactionList:Bt,carousel:Xt.hotAttr.carousel,state:rt,mergePair:Xt}),((jn=Nt)==null?void 0:jn.length)===0&&(ct==null||ct())}else if(ft==="tableCell"){const{activeLinkList:yo}=(0,i.g)({type:"delete",oldHi:Tt,selectTableCellInfo:ot,interactionList:zt,mergePair:Xt});tt({type:"links:active:link",payload:{cid:yo}})}if(tt(U(Nt?{selectInteractionKeyList:Nt}:{selectInteractionKeyList:[]})),tt({type:"entry:widget:change",payload:{flatChgList:[Xt]}}),tt({type:"entry:refresh:link-list"}),st)if(st.type==="trigger"){var xo;(xo=st.sub)!=null&&xo.length&&st.sub.forEach(yo=>{var Ve,ut;_.U4.updateInteractionTrack({type:"\u5220\u9664",interactionTrigger:yo==null||(Ve=yo.attr)==null?void 0:Ve.interactionTrigger,interactionType:yo==null||(ut=yo.attr)==null?void 0:ut.interactionType})})}else{var Po,Gn;_.U4.updateInteractionTrack({type:"\u5220\u9664",interactionTrigger:(Po=st.attr)==null?void 0:Po.interactionTrigger,interactionType:(Gn=st.attr)==null?void 0:Gn.interactionType})}}}),[re,fe]=g.B.genCommand({name:"interaction:intActConnector:delete2",impl:(Ye,Qe)=>{let{getState:lt,dispatch:tt}=Ye,{payload:{interactionKeyList:qe}}=Qe;const et=lt(),st=(0,P.p$)(et)[0],at=sdkStore.getHotItem(st),ct=at.hotAttr.interactions,{nextItaList:rt}=(0,i.BX)({prevInteractionList:ct,deleteKeyList:qe,hasSubKey:!1}),At={key:at.key,hotAttr:{interactions:rt}};tt({type:"entry:widget:change",payload:{flatChgList:[At]}}),tt({type:"entry:refresh:link-list"}),tt(U({selectInteractionKeyList:[]}))}}),[we,Te]=g.B.genCommand({name:"interaction:insert",impl:(Ye,Qe)=>{let{getState:lt,dispatch:tt}=Ye,{payload:{sourceInteractionKey:qe,targetInteractionKey:et,insertType:st,selectTreeNode:at,interactionStore:ct}}=Qe;const rt=lt(),At=(0,P.p$)(rt)[0],ot=sdkStore.getHotItem(At);let Tt=[],ft={hotAttr:{}},Nt;ct.command.moveNodeToSibiling(qe,et,st);const Bt=ct.query.findUpTriggerNode(qe),zt=ct.query.findUpTriggerNode(et);if(!(0,i.sJ)(qe)&&Bt.sub.length===1){const bt=ct.query.getSelectSubItaType(),jn=(0,p.FK)(at.attr),xo={...(0,i.P8)(r.O2.TriggerPlaceHolder),...jn};if(bt!=="empty"&&(xo.subKey=(0,n.cF)("sub")),ct.command.insertNode((0,i.db)({attr:{...xo,data:xo},supKey:Bt.attr.key})),bt!=="empty"){const{tableMisc:Po,mergePair:Gn}=(0,i.Bj)({hi:ot,selectSubItaType:bt,newItaList:[xo],state:rt});ft=Gn,Nt=Po}}Tt=ct.command.getInteractionsWithUV([(0,p.Jh)(Bt.attr.trigger),(0,p.Jh)(zt.attr.trigger)]);const Xt=[{key:At,hotAttr:{...ft.hotAttr,interactions:Tt}}];tt({type:"entry:widget:change",payload:{flatChgList:Xt}}),Nt&&tt({type:"links:active:link",payload:{cid:Nt.activeCidList}})}}),[Ie,le]=g.B.genCommand({name:"interaction:copy",impl:(Ye,Qe)=>{let{getState:lt,dispatch:tt}=Ye,{payload:{isCanvasLayerItemContext:qe}}=Qe;const et=lt(),st=(0,P.p$)(et),at=(0,C.UV)(et),ct=(0,a.jI)(et),{isEditingCombo:rt}=(0,l.r)(et);if(st.length!==1)return;const At=sdkStore.getHotItem(st[0]);if(At.hotAttr.interactions.length===0)return;let ot=(0,w.Xr)(at.sdkStore,st[0],rt,ct);if(qe){const Bt=(0,t.G$)(sdkStore.getInteractionsOf(At.key)).reduce((zt,Xt)=>{if(Xt.subKey)return zt;const bt=At.hotAttr.interactions.find(jn=>jn.key===Xt.key);return bt?zt.concat([{...Xt,data:{...bt,triggerItemKey:At.key}}]):zt},[]);ot=(0,w.I3)(sdkStore,Bt,At.key,"non-combo")}const Tt=(0,t.mV)(At.hotAttr.type,ot),ft=(0,t.QP)({oldInteractions:Tt}),Nt=(0,f.IN)(ft);(0,S.b1)({beCopiedInteractions:ft,varItems:Nt,copyType:"trigger"})}}),[me,Pe]=g.B.genCommand({name:"interaction:tableCell:copy",impl:(Ye,Qe)=>{let{getState:lt,dispatch:tt}=Ye,{payload:qe}=Qe;const{widget:et,selectTableCellInfo:st}=(0,v.wm)(lt),{selectionLeftTopInfo:{x:at,y:ct},selectionRightBottomInfo:{x:rt,y:At},isCanRemoveMerge:ot}=st;if(at===rt&&ct===At||ot){let Nt;if((0,c.SS)(et)){var ft;const{table:Xt,cells:bt}=et;Nt=(((ft=(0,c.j)(bt,Xt,ct,at))==null?void 0:ft.link)||"").split(",")}else Nt=et.tableData.links[ct][at].split(",");const Bt=et.interactions.filter(Xt=>Nt.find(bt=>bt===Xt.subKey)).map(Xt=>({...Xt,subKey:null})),zt=(0,f.IN)(beCopiedInteractions);(0,S.b1)({beCopiedInteractions:Bt,varItems:zt,copyType:"trigger"})}}}),[pe,ke]=g.B.genCommand({name:"interaction:select:copy",impl:(Ye,Qe)=>{let{getState:lt,dispatch:tt}=Ye,{payload:{selectNode:qe,copyType:et,interactionStore:st}}=Qe;const at=st.query.getNodeInteractionWithSub(qe),ct=(0,t.QP)({oldInteractions:at}),rt=(0,f.IN)(ct);(0,S.b1)({beCopiedInteractions:ct,varItems:rt,copyType:et})}}),[We,Ee]=g.B.genCommand({name:"interaction:paste",impl:async(Ye,Qe)=>{let{getState:lt,dispatch:tt}=Ye,{payload:{targetInteractionKey:qe,uiFrom:et,option:st={type:"normal"}}}=Qe;const at=lt(),{isEditingBasket:ct}=(0,l.r)(at),rt=(0,a.jI)(at),{beCopiedInteractions:At,varItems:ot,copyType:Tt}=await(0,S.V5)({isShowPrompt:!0});sdkStore.combineMergeMark("paste-interactions");const ft=(0,f.E3)(At,ot),{selectSubItaType:Nt}=(0,h.ju)(at,et),Bt=Xt=>{let{hasSubKey:bt,hi:jn}=Xt,xo,Po;if(st.type!=="pasteToBranch")return{bePastedItas:[],nextItas:[]};const Gn=st.interactionStore;if(Tt==="action"){const Ve=(0,i.zC)({clipboardItas:ft,editingBasketKey:rt,isEditingBasket:ct,hasSubKey:bt,hi:jn}),ut=Gn.query.getNode(st.selectNode.sup),Kt=new Set;for(const St of Ve)if(!Kt.has(St.key))if(St.interactionType===r.O2.ConditionalBranches){var yo;Gn.command.insertNodeIta(St,(yo=Gn.query.findUpTriggerNode(ut.attr.key))==null?void 0:yo.attr.key),Gn.command.moveNodeToSibiling(St.key,Gn.query.getNode(ut.sup).attr.key,"nextSibling"),Kt.add(St.key);const fn=Gn.query.getNode(St.key);for(const[En,gn]of Object.entries(St.branches)){const Yn=St.key+"_branch_"+En,Pn=(0,i.dq)({branchKey:Yn,supNode:fn,condition:gn.condition,branchIndex:En});Gn.command.insertNodeDirectly(Pn,fn.attr.key);for(const _n of gn.subItaRefList){const Fn=Ve.find(Nn=>Nn.key===_n);Fn&&(Gn.command.insertNodeIta(Fn,Pn.attr.key,{skipUpdateBranches:!0}),Kt.add(_n))}}}else Gn.command.insertNodeIta(St,ut.attr.key),Gn.command.moveNodeToSibiling(St.key,st.selectNode.attr.key,"nextSibling"),Kt.add(St.key);xo=Ve,Po=Gn.command.getInteractionsWithUV([st.selectNode.attr.interactionTrigger])}else{const Ve=jn.hotAttr.interactions,ut=(0,i.ZE)([...Ve]);xo=(0,i.Ge)({clipboardItas:ft,editingBasketKey:rt,isEditingBasket:ct,hasSubKey:bt,targetInteraction:void 0,prevItas:ut,hi:jn}),Po=(0,i.ow)({nextItas0:ut,bePastedItas:xo,insertPos:ut.length+1})}return{bePastedItas:xo,nextItas:Po}},zt=Xt=>{let{oldItas:bt,hasSubKey:jn,option:xo,hi:Po}=Xt;const Gn=(0,i.ZE)([...bt]);let yo,Ve;Tt==="action"?(yo=qe?Gn.findIndex(St=>St.key===qe):Gn.length,Ve=qe?Gn[yo]:void 0):(yo=Gn.length,Ve=void 0);const ut=(0,i.Ge)({clipboardItas:ft,editingBasketKey:rt,isEditingBasket:ct,hasSubKey:jn,targetInteraction:Ve,prevItas:Gn,hi:Po});let Kt;return xo.type==="tableCell"?Kt=(0,i.ow)({nextItas0:bt,bePastedItas:ut,insertPos:xo.isSingleCellSelect?yo+1:bt.length}):Kt=(0,i.ow)({nextItas0:Gn,bePastedItas:ut,insertPos:yo+1}),{bePastedItas:ut,nextItas:Kt}};if(Nt==="tableCell"){const Xt=(0,b.zX)(at),bt=(0,P.p$)(at)[0],jn=sdkStore.getHotItem(bt);let xo=[...jn.hotAttr.interactions];const{cells:Po,table:Gn}=jn.hotAttr,yo=JSON.parse(JSON.stringify(Po)),Ve=[],{selectionLeftTopInfo:{x:ut,y:Kt},selectionRightBottomInfo:{x:St,y:fn}}=Xt,En=ut===St&&Kt===fn;let gn=[];(0,i.In)({x1:ut,x2:St,y1:Kt,y2:fn},(Pn,_n)=>{const{oldCellItas:Fn,oldCellItaKeys:Nn}=(0,t.iL)({cells:Po,table:Gn,interactions:xo,j:_n,i:Pn});let io,to;if(st.type==="pasteToBranch"){const{bePastedItas:Io,nextItas:co}=Bt({hasSubKey:!0,hi:jn});io=Io,to=co}else{const{bePastedItas:Io,nextItas:co}=zt({oldItas:Fn,hasSubKey:!0,option:{type:"tableCell",isSingleCellSelect:En},hi:jn});io=Io,to=co}if(io.length===0)return;gn=io;const go=(0,c.j)(yo,Gn,_n,Pn);if(!go)return"CONTINUE";go.link?go.link=go.link+","+io.map(Io=>Io.subKey).join(","):go.link=io.map(Io=>Io.subKey).join(",");for(const Io of Nn)xo=xo.filter(co=>co.subKey!==Io);Ve.push(...to)});const Yn={...jn,hotAttr:{...jn.hotAttr,cells:yo,interactions:[...xo,...Ve]}};tt({type:"entry:widget:change",payload:{flatChgList:[Yn],shouldReBuildTree:!0}}),tt({type:"links:active:link",payload:{cid:En?(0,o.J5)(Yn.hotAttr,Xt):[]}}),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 Fn of Pn)(0,i.cF)({itaKey:Fn.key,type:Fn.interactionType===r.O2.ConditionalBranches?"branch":"normal"})},4)}else{const Xt=(0,P.p$)(at),bt=[];let jn;const xo=Nt!=="empty";for(const Po of Xt){const Gn=sdkStore.getHotItem(Po);if(t.eX.includes(Gn.hotAttr.type))continue;let yo,Ve;if(st.type==="pasteToBranch"){const{bePastedItas:Kt,nextItas:St}=Bt({hasSubKey:xo,hi:Gn});yo=Kt,Ve=St}else{const Kt=Gn.hotAttr.interactions,{bePastedItas:St,nextItas:fn}=zt({oldItas:Kt,hasSubKey:xo,option:{type:"widget"},hi:Gn});yo=St,Ve=fn}if(yo.length===0)return;const ut={key:Gn.key,hotAttr:{interactions:Ve}};if(Nt==="optionData"){const{updateNode:Kt}=(0,i.DL)({type:"create",interactionList:yo,optionData:Gn.hotAttr.optionData,state:at,mergePair:ut});tt({type:pt["interaction:sub:optionData:craete"],payload:{updateNode:Kt}})}else Nt==="carouselImage"&&(0,i.e7)({type:"create",interactionList:yo,carousel:Gn.hotAttr.carousel,state:at,mergePair:ut});Xt.length===1&&(jn=yo),bt.push(ut)}if(tt({type:"entry:widget:change",payload:{flatChgList:bt}}),tt({type:"entry:refresh:link-list"}),!et)return;if(Xt.length===1){const Po=jn[0].key;!qe&&et==="treePanelFloat"&&tt(z.command.interactionSelectCommand({selectInteractionKeyList:[Po]})),setTimeout(()=>{const Gn=(0,i.Yw)(jn);if(Tt==="action")(0,i._6)({itaKey:Gn[0].key});else{var yo;(0,i._6)({itaKey:(yo=Gn.at(-1))==null?void 0:yo.key})}for(const Ve of Gn)(0,i.cF)({itaKey:Ve.key,type:Ve.interactionType===r.O2.ConditionalBranches?"branch":"normal"})},4)}}sdkStore.combineMerge("paste-interactions")}}),[Ae,Ce]=g.B.genCommand({name:"interaction:subIta:select",impl:async(Ye,Qe)=>{let{getState:lt,dispatch:tt}=Ye,{payload:qe}=Qe;const et=lt(),st=(0,P.nE)(et)[0],{key:at,hotAttr:ct}=st;let rt="";if(qe.type==="optionData"?rt=qe.node.data.linkCids:rt=ct.carousel.slides[qe.imageIndex].linkCids,!rt)tt(U({selectInteractionKeyList:[(0,i.m1)("tap")]})),(0,d.X)();else if(ct.interactions.length===0)tt(U({selectInteractionKeyList:[(0,i.m1)("tap")]})),(0,d.X)();else{var At;const{itaTree:ot}=(0,i.Yj)({interactions:ct.interactions.filter(ft=>rt.includes(ft.subKey))});let Tt;if(qe.type==="carouselImage"?Tt=i.e4.getSelection(at+"-"+qe.imageIndex):qe.type==="optionData"&&(Tt=i.e4.getSelection(at+"-"+qe.path)),Tt&&(0,i.zS)(Tt,ot)){tt(U({selectInteractionKeyList:[Tt],isScroll:!0}));return}for(const ft of ot.sub){const Nt=(0,i.aW)(ft.sub);if(Nt.length>0){tt(U({selectInteractionKeyList:[Nt[0].attr.key],isScroll:!0}));return}}tt(U({selectInteractionKeyList:[(0,i.m1)(((At=ot.sub[0])==null?void 0:At.attr.trigger)||"tap")],isScroll:!0}))}}}),[_e,Ge]=g.B.genCommand({name:"interaction:edit:undo",impl:async(Ye,Qe)=>{let{getState:lt,dispatch:tt}=Ye,{payload:qe}=Qe;const et=lt(),st=Ue.getStateStack(et),at=st.pop(),ct=st.pop();ct&&A(ct,tt)}}),Xe={...E,...O,...Q,...L,...W,...te,...de,...ie,...ue,...we,...Ie,...pe,...We,...me,...Ae,...Z,...re,...B,...X,..._e,...M,...xe,"interaction:sub:optionData:craete":(Ye,Qe)=>{let{getState:lt,dispatch:tt}=Ye,{payload:qe}=Qe;const{updateNode:et}=qe;tt({type:"settings:set:select:option:node",payload:{node:et}})},"interaction:sub:optionData:delete":(Ye,Qe)=>{let{getState:lt,dispatch:tt}=Ye,{payload:qe}=Qe;const{updateNode:et}=qe;tt({type:"settings:set:select:option:node",payload:{node:et}})}},Ue=g.B.genQuery(K,{getStateFn:Ye=>Ye.editor.state.interaction}),pt=g.B.genEntryKey(Xe);return{__initialState:K,__reducer:$,__entry:Xe,entryKey:pt,query:Ue,dispatchState:A,command:{interactionSelectCommand:U,subItaSelectCommand:Ce,undoCommand:Ge,clearAllCommand:H,interactionEditorFloatOpenCommand:N,intActConnectorSelectCommand:V,intActConnectorDummySelectCommand:D,editingInteractionCreateCommand:F,linkDesignCreateIta:Y,treePanelSingleCreateCommand:J,addIta:he,updateItaKV:Se,updateItaKVDirect:be,updateItaBatch:oe,deleteIta:ve,interactionInsertCommand:Te,intActConnectorDeleteCommand:fe,interactionCopyCommand:le,interactionCopyTableCellCommand:Pe,selectCopyCommand:ke,pasteIta:Ee}}})()},37841:(Fe,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),w=e(76613),u=e(46464),d=e(58093),y=e(17307),h=e(69246),i=e(93872),f=e(72214);const p=l=>{let{depth:C,withSubOptions:v=!0,optionItem:a,isOptionActive:P,isOptionDisabled:b=()=>!1,isOptionCollapsed:g=()=>!1,onSelect:S,onToggleCollapsed:t,onMouseEnterOption:_,onMouseLeaveOption:I,noIcon:k=!1,shouldRenderChildren:j=!0}=l;const{key:z,hotAttr:{name:K}}=a,$=v&&a.subHotItemList||[],A=b(a),E=P(a),U=g(a),O=(0,n.useCallback)(L=>{L.stopPropagation(),!A&&S(a.key,a)},[A,S,a]),H=(0,n.useCallback)(L=>{L.stopPropagation(),t(z)},[t,z]),Q=(0,n.useCallback)(L=>{L.stopPropagation(),_&&_(z)},[_,z]),N=(0,n.useCallback)(L=>{L.stopPropagation(),I&&I(z)},[I,z]);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(i.Av,{role:"option",depth:C,"data-value":z,onClick:O,onMouseEnter:Q,onMouseLeave:N,className:c()("dropmenu-no-exit","isV9Layout",{" is-disabled":A,"is-active":E}),children:[$.length>0&&(0,f.jsx)(y.C,{className:c()("expander",{"is-collapsed":U}),name:"common/solid-arrow",onClick:H}),k?null:a.hotAttr.bunch==="rbPage"?(0,f.jsx)(h.k,{icon:a.hotAttr.icon,isExpand:!U,theme:"dark"}):z===w.rE?(0,f.jsx)(y.C,{name:"setting_panel/event/current_widget"}):(0,f.jsx)(u.A,{widget:a,isDynamic:a.hotAttr.basket==="bDanli"}),a.iconName&&(0,f.jsx)(y.C,{name:a.iconName}),(0,f.jsx)(o.A,{children:z===w.rE?I18N.SettingPanel.current_widget:K})]}),!U&&j&&$.map(L=>(0,f.jsx)(p,{depth:C+1,withSubOptions:v,optionItem:L,isOptionActive:P,isOptionDisabled:b,isOptionCollapsed:g,onToggleCollapsed:t,onMouseEnterOption:_,onMouseLeaveOption:I,onSelect:S},L.key))]})},s=(0,n.memo)((0,n.forwardRef)((l,C)=>{let{children:v,query:a,setQuery:P,className:b,forceFocus:g}=l;const[S,t]=(0,n.useState)([]),_=(0,n.useCallback)(I=>S.includes(I)?t(S.filter(k=>k!==I)):t([...S,I]),[S]);return(0,f.jsxs)(i.vw,{ref:C,className:c()("isV9Layout",b),children:[(0,f.jsx)(d.A,{placeholder:I18N.w.search,value:a,onChange:I=>P(I),forceDarkTheme:!0,forceFocus:g}),v({toToggleCollapsed:_,keyItemCollapsed:S})]})}))},37860:(Fe,ee,e)=>{"use strict";e.d(ee,{GT:()=>b,HI:()=>C,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,_=I18N.Resources.chart_widget,I=I18N.Resources.advanced_chart_widget,k=I18N.Resources.multimedia_widget,j=I18N.Resources.shape_widget,z=I18N.Resources.flow_widget;return{basic:g,form:S,navigation:t,chart:_,advancedChart:I,multimedia:k,shape:j,flow:z}},w={...n.Yw,Common:"common"},u={...n.Iw,Common:"common"},d={...n.zk,[w.Common]:[u.Common]},y={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:y.More,id:null},f={name:y.All,id:null},p=()=>{const{basic:g,form:S,navigation:t,chart:_,multimedia:I,shape:k,flow:j}=o();return{[u.Common]:[{name:g},{name:S},{name:t},{name:_},{name:I},{name:k},{name:j}]}},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}},C=()=>{if(!ENV.IS_MO)return l;const{basic:g,form:S,navigation:t,chart:_,multimedia:I,shape:k}=o();return{[u.Common]:{[g]:1,[S]:2,[t]:3,[_]:4,[I]:5,[k]:6}}},v={[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 v;const{basic:g,form:S,navigation:t,chart:_,advancedChart:I,multimedia:k,shape:j}=o();return{[u.Common]:{all:{[g]:1,[S]:2,[t]:3,[_]:4,[I]:5,[k]:6,[j]:7},[g]:{[g]:1},[S]:{[S]:1},[t]:{[t]:1},[_]:{[_]:1,[I]:2},[k]:{[k]:1},[j]:{[j]:1}}}},P={[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"},b={[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:(Fe,ee,e)=>{"use strict";e.d(ee,{u:()=>w});var n=e(38502),r=e(67787),c=e(9501),o=e(72214);const w=(0,n.memo)(d=>{const{stickerList:y,popupsName:h}=d;return y?(0,o.jsx)(u,{className:"sticker-item-list",children:y.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:(Fe,ee,e)=>{"use strict";if(e.d(ee,{EG:()=>o,bq:()=>w,n5:()=>c}),e.j!=477)var n=e(19249);var r=e(18833);const c=async function(u,d){var y,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}),((y=p)==null?void 0:y.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 C=!p.q&&p.order==="recommend"&&!p.policy,v=!p.q&&p.order==="recommend",a=C&&!ENV.IS_ON_PREMISES?"/api/community/v1/community_search_balanced":"/api/community/v1/community_search",P=v&&!ENV.IS_ON_PREMISES?{...p,balanced_type:"market_template"}:p,{market_templates:b,total_count:g}=await(0,n.zi)(a,P);s=b,l=g}catch(C){(0,r.FY)(C)}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,y={};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:C}=s;p.clabels[l]=C}),y[i.name]=p}),y},w=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_v2?platform="+u;return(await(0,n.DE)(d)).types}},38462:(Fe,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(w,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:w.CommonGuides.v8guide28,content:w.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:(Fe,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),w=e(61068),u=e(4648),d=e(67787);const y=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;}}"],C=>C.theme.color_bg_border_02,C=>C.theme.color_proto,C=>C.theme.color_text_L3);var h=e(20089),i=e(30523),f=e(72214);const p=()=>null,s=(C,v)=>{const a=C==null?void 0:C.type;if(a==="box_shadow"){var P;if(((P=v.hotAttr)==null?void 0:P.type)===h.x.WRichText)return{...C,spreadRadius:0,type:"text_shadow"};if(!C.spreadRadius)return{...C,spreadRadius:0}}else if(a==="text_shadow"){var b;if(((b=v.hotAttr)==null?void 0:b.type)!==h.x.WRichText)return{...C,spreadRadius:C.spreadRadius||0,type:"box_shadow"}}return C};class l extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleShadowChanged",(v,a,P)=>{const{attr:b,onChange:g,selections:S,dispatch:t,shadow:_,refVars:I}=this.props,k={..._,type:b};k[a]=v;const j={...I,[a]:P};S.length>1?S.forEach(z=>{const K=sdkStore.getHotItem(z),$=s({...k},K);g({value:$,attr:"shadow",refVar:j,selections:[z],dispatch:t})}):g({value:k,attr:"shadow",refVar:j,selections:S,dispatch:t}),this.setState({shadowValue:k,refVar:j})})}render(){const{attr:v,shadow:a,refVars:P,refStyles:b,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)(w.A,{attr:"shadowIsVisible",className:"style-check "+w.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:b,onChange:this.handleShadowChanged,onPosition:t})]}),(0,f.jsx)(y,{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:P==null?void 0:P.offsetX,onConfirm:(_,I)=>this.handleShadowChanged(_,"offsetX",I),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:P==null?void 0:P.offsetY,onConfirm:(_,I)=>this.handleShadowChanged(_,"offsetY",I),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:P==null?void 0:P.blurRadius,onConfirm:(_,I)=>this.handleShadowChanged(_,"blurRadius",I),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:v==="text_shadow",attr:"spreadRadius",value:a.spreadRadius,refVar:P==null?void 0:P.spreadRadius,onConfirm:v==="text_shadow"?p:(_,I)=>this.handleShadowChanged(_,"spreadRadius",I),title:I18N.SettingPanel.spread,tooltipsContentText:I18N.SettingPanel.spread})]})})]})}}},39117:(Fe,ee,e)=>{"use strict";e.d(ee,{I:()=>n.I8});var n=e(4649)},39138:(Fe,ee,e)=>{"use strict";e.d(ee,{En:()=>c,Tb:()=>h,aJ:()=>o,h9:()=>u,vq:()=>w,xP:()=>d,xv:()=>y});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;}"]),w=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),y=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:(Fe,ee,e)=>{"use strict";e.d(ee,{G:()=>d});var n=e(12211),r=e(20089),c=e(16249),o=e(24640),w=e(60651),u=e(4235);const d=(0,n.Mz)([w.Bk,u.p$],(y,h)=>{let i=y;if(h&&h.length>0){const s=(0,o.GF)(h);i=(0,c.j)(s,1)}const p=(i.length>0?i:y).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:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>s});var n=e(38502),r=Object.defineProperty,c=Object.defineProperties,o=Object.getOwnPropertyDescriptors,w=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,y=(l,C,v)=>C in l?r(l,C,{enumerable:!0,configurable:!0,writable:!0,value:v}):l[C]=v,h=(l,C)=>{for(var v in C||(C={}))u.call(C,v)&&y(l,v,C[v]);if(w)for(var v of w(C))d.call(C,v)&&y(l,v,C[v]);return l},i=(l,C)=>c(l,o(C)),f=(l,C)=>{var v={};for(var a in l)u.call(l,a)&&C.indexOf(a)<0&&(v[a]=l[a]);if(l!=null&&w)for(var a of w(l))C.indexOf(a)<0&&d.call(l,a)&&(v[a]=l[a]);return v},s=(0,n.forwardRef)((l,C)=>{var v=l,{size:a,spin:P,style:b}=v,g=f(v,["size","spin","style"]);const S=h(h({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:P?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),b);return n.createElement("svg",i(h({ref:C,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:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>P});var n=e(38502),r=e(53732),c=e.n(r),o=e(18381),w=e(17307),u=e(83199),d=e(18575),y=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;}}}"],b=>b.theme.color_btn_secondary_hover,b=>b.cover?"none":"url(/images/square/template_default_cover.svg) no-repeat center #f7f7f7",b=>b.theme.color_bg_border_01,b=>b.theme.color_proto,b=>b.theme.color_text_L3,b=>b.theme.color_text_L2,b=>b.theme.color_text_L3,b=>b.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"})}),C=(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"})}),v=(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"})})})]}),P=(0,n.memo)(b=>{const{marketTemplate:g,isShowStar:S=!0,isShowTag:t=!1,marketTemplate:{cid:_,cover:I,title:k,is_liked:j,liked_count:z,used_count:K},isStared:$,className:A,onClickCard:E,onStarTemplates:U,onFavorite:O,onUsedCallback:H}=b,Q=new y.H(z).getDisplayStr(),N=new y.H(K).getDisplayStr(),{handleUsedTemplate:L}=(0,h.A)(),V=(0,o.wA)(),M=async()=>{E(g)},D=async Y=>{Y.stopPropagation(),Y.preventDefault(),U==null||U(g)},W=(Y,X)=>X.offsetWidth{Y.stopPropagation(),O==null||O(g)},B=Y=>{Y.stopPropagation(),L(g,X=>{H==null||H(g),X&&(V({type:"modal:update:state",payload:{templateModal:{isOpen:!1}}}),V({type:"entry:active:popup:panel",payload:{name:i.lS.Directory}}))})};return(0,s.jsxs)(p,{"data-cid":_,cover:I,className:c()("template-box",A),onClick:M,children:[(0,s.jsxs)("div",{className:"template-cover",children:[(0,s.jsxs)("div",{className:"img-box",children:[I&&(0,s.jsx)("img",{className:"template-cover-image",src:I}),(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)(w.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:W,children:(0,s.jsx)("div",{className:"template-title",children:k})}),(0,s.jsx)(w.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:F,children:[j?C:l,(0,s.jsx)("span",{className:"nums",children:Q})]}),(0,s.jsxs)("div",{className:"used",onClick:B,children:[v,!ENV.IS_ON_PREMISES&&(0,s.jsx)("span",{className:"nums",children:N})]})]})]})]})})},40497:(Fe,ee,e)=>{"use strict";e.d(ee,{m:()=>P});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:",";}}"],b=>b.theme.color_bg_border_02,b=>b.uiFrom==="treePanelFloat"?204:182,b=>b.theme.color_text_L1,b=>b.uiFrom==="treePanelFloat"?174:150,b=>b.theme.color_bg_border_02,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_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:",";"],b=>b.theme.color_bg_border_01,b=>b.theme.color_text_L0,b=>b.theme.color_bg_white,b=>b.theme.shadow_m);var w=e(18381),u=e(53732),d=e.n(u),y=e(37780),h=e(79150),i=e(40486),f=e(99566),p=e(69374),s=e(87332),l=e(83485),C=e(88981),v=e(17573),a=e(72214);const P=(0,n.memo)(b=>{let{disabled:g,showPreference:S,buttonType:t,uiFrom:_,handleCollapse:I,interactionTree:k,interactionStore:j,itemKey:z}=b;const K=(0,w.wA)(),$=(0,n.useCallback)(H=>{const Q=(0,f.AE)({interactionTrigger:H});K(y.R7.command.addIta({tNodeTrigger:Q,uiFrom:_,interactionTree:k,interactionStore:j})),I((0,i.iY)(Q),"del"),setTimeout(_==="treePanelRight"?()=>{K(y.R7.command.interactionEditorFloatOpenCommand({alignTop:!0}))}:()=>{(0,i._6)({itaKey:(0,i.m1)(Q)})},4),![C.O.Keydown,C.O.Listener].includes(H)&&(0,l.X)()},[K,I,_,k,j]),A=(0,n.useCallback)(H=>{var Q;H.stopPropagation(),$((0,f.b7)((Q=sdkStore.getHotItem(z))==null?void 0:Q.hotAttr.type)&&(0,v.qK)()?C.O.InputEvent:C.O.Tap)},[z,$]),E=(0,n.useCallback)(H=>{H.stopPropagation(),$("timer")},[$]),U=H=>{H.stopPropagation(),K({type:"preference:update:state",payload:{preferenceNav:"actions"}}),K({type:"preference:open:appearance"})},O=H=>{$(H)};return(0,a.jsxs)(c,{uiFrom:_,className:d()({disabled:g}),children:[(0,a.jsxs)("div",{className:"btn-group",children:[(0,a.jsx)("div",{className:"btn btn1",onClick:A,children:(0,a.jsx)("span",{children:I18N.Interaction.header_title1})}),(0,a.jsx)(s.A,{isOpenerAttrDisabled:!1,ref:null,distance:4,offsetX:_==="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:U}),t==="global"&&(0,a.jsx)(h.A,{size:16,name:"interaction/trigger/timer",onClick:E})]})]})})},40625:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>w,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 w(u,d){u===void 0&&(u=o);const{type:y,payload:h}=d;switch(y){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:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>s});var n=e(18381),r=e(12211),c=e(70933),o=e(4235),w=e(60651),u=e(20315),d=e(78915),y=e(47892),h=e(75862),i=e(20089);const f=(0,r.Mz)([o.nE,o.p$,h.x,c.PL,w.uu,c.wA,c.HW,c.Ur,u.Lc,w.jx,w._b],(l,C,v,a,P,b,g,S,t,_,I)=>{const k=_===d.qi.OnlyView&&!I||_===d.qi.Edit&&t;return{isExportAllAIComponent:l.every(z=>{var K;return((K=z.hotAttr)==null?void 0:K.type)===i.x.WCode}),isST:k,currentScreen:S,isWidgetBeingExported:v,isHtmlZipPreview:P,newSelection:C,currentUser:g,currentOrg:b,currentProject:a}}),p=l=>({updateExportSettings:(C,v)=>l({type:"entry:update:root-project:exportSettings",payload:{exportSettings:C,exportWithDeviceFrame:v}}),exportItem:C=>l({type:"entry:export:item",payload:{exportConfigList:C}})}),s=(0,n.Ng)(l=>f(l),p)(y.A)},41240:(Fe,ee,e)=>{"use strict";e.d(ee,{GR:()=>r,ch:()=>w,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;}"]),w=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:(Fe,ee,e)=>{"use strict";e.d(ee,{F:()=>K});var n=e(95549),r=e(38502),c=e(18381),o=e(12211),w=e(53732),u=e.n(w),d=e(39e3),y=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),A=(0,c.d4)(f.bP),[E,U]=(0,r.useState)(!1),O=(0,c.wA)(),H=(0,r.useCallback)(L=>O({type:"searchPanel:update:state",payload:{masterKeyword:L}}),[O]),Q=(0,r.useCallback)(()=>{U(!0)},[]),N=(0,r.useCallback)(L=>{L.stopPropagation(),U(!1),O({type:"searchPanel:update:state",payload:{masterKeyword:""}})},[O]);return(0,s.jsxs)(p.Ij,{className:u()({"is-search-mode":E}),children:[A==="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:H,onFocus:Q,canClear:!0})]})}const C=(0,r.memo)(l);var v=e(67052),a=e(70933),P=e(3862),b=e(78257),g=e(30275),S=e(54190),t=e(67787);const _=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 I=e(10472);const k=5;class j extends r.PureComponent{constructor(A){var E;super(A),E=this,(0,n.A)(this,"titleFromPopupsName",{[b.lS.Builtin]:I18N.LeftSidePanel.widget,[b.lS.Icon]:I18N.LeftSidePanel.icon,[b.lS.Asset]:I18N.LeftSidePanel.image,[b.lS.Page]:I18N.LeftSidePanel.screens,[b.lS.Template]:I18N.LeftSidePanel.master,[b.lS.Flow]:I18N.LeftSidePanel.flow,[b.lS.Mind]:I18N.LeftSidePanel.mind}),(0,n.A)(this,"handleCreateRef",U=>{this.$ref=U}),(0,n.A)(this,"handleGetIsFromIconSelectPopup",()=>{const{from:U}=this.props;return U===g.Z.iconSelectPopup}),(0,n.A)(this,"handleGetConfig",()=>{const{currentPopupPanel:U,type:O}=this.props,H=this.handleGetIsFromIconSelectPopup(),Q=H?P.C:O,N=H?I18N.ArtBoard.icon:this.titleFromPopupsName[U],L=!(U===b.lS.Template&&!H),V=H?!1:U!==b.lS.Template;return{type:Q,title:N,isGlobalSearch:L,isShowManage:V}}),(0,n.A)(this,"handleHistoryKeyWords",async()=>{const{historyKeyWords:U,dispatch:O}=this.props,{isGlobalSearch:H}=this.handleGetConfig();if(!H||U.length)return;const Q=await(0,S.Tf)();O({type:"searchPanel:update:state",payload:{historyKeyWords:Q.splice(0,k)}})}),(0,n.A)(this,"handleChange",U=>{const{dispatch:O}=this.props;this.setState({curHotKey:U});const H=this.handleGetIsFromIconSelectPopup();O(H?{type:"searchPanel:update:state",payload:{iconKeyword:U}}:{type:"searchPanel:update:state",payload:{keyword:U}})}),(0,n.A)(this,"handleSearch",async function(U,O,H){O===void 0&&(O=!1),H===void 0&&(H=!1),await E.handleUpdateHistory(U,O,H)}),(0,n.A)(this,"handleClearHistory",()=>{this.props.dispatch({type:"searchPanel:update:state",payload:{historyKeyWords:[]}}),(0,S.s_)()}),(0,n.A)(this,"handleUpdateHistory",async(U,O,H)=>{const{currentPopupPanel:Q,historyKeyWords:N,type:L,dispatch:V}=this.props,M=this.handleGetIsFromIconSelectPopup();if(!(Q===b.lS.Template&&!M))if(U){const W=[U].concat(N.filter(F=>F!==U)).splice(0,k);V({type:"searchPanel:update:state",payload:{historyKeyWords:W}}),this.handleGlobalSearch(U,O,H)}else{var D;this.handleNavBack(),await this.handleFocus(),(D=this.$ref)==null||D.focus()}}),(0,n.A)(this,"handleGlobalSearch",(U,O,H)=>{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:H}}),this.handleToggleIsHideHistory(!!U)}),(0,n.A)(this,"handleToggleIsHideHistory",U=>this.setState({isHideHistory:U})),(0,n.A)(this,"handleOpenHistory",()=>{MB.global.experienceLoginModalHelper("isSave")||(this.props.dispatch({type:"exalt:panel:order",payload:{name:b.lS.History}}),this.props.dispatch({type:"historyPanel:set:show",payload:{show:!0}}))}),(0,n.A)(this,"handleFocus",async()=>{const{isSearching:U,iconSelectPopupIsSearching:O,isExperience:H}=this.props,N=this.handleGetIsFromIconSelectPopup()?O:U;this.handleToggleIsSearching(!0),this.handleToggleIsHideHistory(!1),await this.props.dispatch({type:"entry:init:hotKeyWords"}),!N&&!H&&await this.handleHistoryKeyWords()}),(0,n.A)(this,"handleToggleIsSearching",U=>{const H=this.handleGetIsFromIconSelectPopup()?"iconSelectPopupIsSearching":"isSearching";this.props.dispatch({type:"searchPanel:update:state",payload:{[H]:U}})}),(0,n.A)(this,"handleNavBack",()=>{this.handleToggleIsSearching(!1);const{dispatch:U,from:O}=this.props;U({type:"entry:search-panel:clear:state",payload:{from:O}})}),(0,n.A)(this,"handleBlur",U=>{let{target:O}=U;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(U,O,H){O===void 0&&(O=!1),H===void 0&&(H=!1),E.handleChange(U),await E.handleSearch(U,O,H)}),(0,n.A)(this,"handleFocusSearch",()=>{this.handleFocus()}),(0,n.A)(this,"handleClear",async()=>{const{iconKeyword:U,keyword:O}=this.props;(this.handleGetIsFromIconSelectPopup()?U:O)?(this.handleToggleIsHideHistory(!1),await this.handleSearch(""),this.handleToggleIsSearching(!0)):this.handleToggleIsHideHistory(!0)}),this.state={isHideHistory:!1,curHotKey:""}}render(){const{keyword:A,iconKeyword:E,className:U,hotKeyWords:O,historyKeyWords:H,onClose:Q,show:N,isSearching:L,iconSelectPopupIsSearching:V,currentPopupPanel:M,currentEditMode:D,layoutV8:W}=this.props,{isHideHistory:F}=this.state,{title:B,isGlobalSearch:Y,isShowManage:X}=this.handleGetConfig(),G=this.handleGetIsFromIconSelectPopup(),Z=G?E:A,J=G?V:L,{isEditingProjectMain:te}=D||{},he=!ENV.IS_ON_PREMISES&&[b.lS.Flow,b.lS.Mind].includes(M)&&!G&&te;return M===b.lS.Template&&!G?(0,s.jsx)(C,{}):(0,s.jsxs)(_,{className:u()("resourcesPanel-header",{show:N},U,he&&M!==b.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}),G&&Q&&(0,s.jsx)(y.A,{name:"design/scale_clear",className:"close",onClick:Q}),J&&Y&&!F?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:u()("history-panel",{"has-history":H==null?void 0:H.length}),children:[H!=null&&H.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:H.map(de=>(0,s.jsx)("span",{className:"words",onClick:()=>this.handleSelectWord(de,!0),children:de},de))})]}),(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(de=>(0,s.jsx)("span",{className:"words",onClick:()=>this.handleSelectWord(de,!1,!0),children:de},de))})]})}):null]}),(0,s.jsx)(d.A,{target:document,onMouseDown:(0,d.t)(this.handleBlur,{capture:!0})})]}):null]})}}const z=(0,o.Mz)([v.OW,i.y9,i.pM,i.uJ,i.TF,i.F8,i.At,i.Lq,a.W4,a.HW,a.wA,I.r,f.bP,f.MZ],($,A,E,U,O,H,Q,N,L,V,M,D,W,F)=>{let{isExperience:B}=L;return{currentPopupPanel:$,hotKeyWords:A,historyKeyWords:E,keyword:U,iconKeyword:O,isSearching:H,iconSelectPopupIsSearching:Q,type:N,isExperience:B,user:V,org:M,currentEditMode:D,layoutV8:W,layoutV9:F}}),K=(0,c.Ng)($=>z($))(j)},43371:(Fe,ee,e)=>{"use strict";e.d(ee,{s:()=>w});var n=e(4410),r=e(93971),c=e(3862),o=e(16335);const w=u=>{const d=b=>{const{projectUpperCid:g,isOrg:S}=u;return{isRequestRecent:!S,projectUpperType:"user_combo",projectUpperCid:g,itemCid:b.key}},y=b=>{const{isOrg:g}=u;if(g)return;const S=d(b);(0,o.Cp)(S)},h=(b,g,S)=>{const{isOrg:t,rootProject:_,currentOrg:I,currentUser:k,popupsName:j}=u;(0,r.BZ)({tab:t?r.Ii.Org:r.Ii.User,popupsName:j,addType:g,category:c.t_,name:S,rootProject:_,currentOrg:I,currentUser:k,esSearchKey:b})},i=async(b,g)=>{const{isOrg:S,scale:t,canvasRect:_,showDragMode:I,isAdsorbentReferenceLine:k,popupsName:j}=u,z=S?orgSdkStore:userSdkStore,K=(0,n.g)(j);(0,n.WP)({e:b,combo:g,store:z,doNotCreateRect:K,scale:t,canvasRect:_,showDragMode:I,isAdsorbentReferenceLine:k,callback:()=>{var $,A;y(g),h(($=g.flpakKey)!=null?$:"",r.k8.Drag,(A=g.hotAttr)==null?void 0:A.name)}})},f=b=>{const{isOrg:g,dispatch:S}=u;MB.global.experienceLoginModalHelper("isSave")||S({type:"entry:edit:combo",payload:{isOrg:g,combo:b}})},p=(b,g,S)=>{var t;const{isOrg:_,dispatch:I}=u;MB.global.experienceLoginModalHelper("isSave")||((t=b.hotAttr)==null?void 0:t.name)!==g&&(I({type:"entry:auto:update:combo:name",payload:{isOrg:_,groupCid:S,itemCid:b.key,name:g}}),I({type:"entry:search-panel:update:combo:name",payload:{cid:b.key,name:g,isOrg:_}}))},s=b=>{const{isOrg:g,group:S,dispatch:t}=u;MB.global.experienceLoginModalHelper("isSave")||t({type:"entry:auto:duplicate:combo",payload:{group:S,combo:b,isOrg:g}})},l=b=>{const{isOrg:g,group:S,dispatch:t}=u;MB.global.experienceLoginModalHelper("isSave")||t({type:"entry:auto:batch:remove:combo",payload:{group:S,combo:b,isOrg:g}})},C=(b,g)=>{var S,t;const{isOrg:_,scale:I}=u,k=_?orgSdkStore:userSdkStore;(0,n.QI)({e:b,combo:g,store:k,scale:I}),y(g),h((S=g.flpakKey)!=null?S:"",r.k8.DoubleClick,(t=g.hotAttr)==null?void 0:t.name)},v=b=>{const{group:g,isOrg:S,dispatch:t}=u;MB.global.experienceLoginModalHelper("isSave")||t({type:"entry:auto:transfer:combo",payload:{group:g,excludedCombo:b,isOrg:S}})},a=b=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{dispatch:g}=u;g({type:"entry:batch:transfer:user:combo:to:org",payload:{combo:b}})},P=b=>{if(!b)return;const{isOrg:g,dispatch:S}=u,t=d(b),_=g?orgSdkStore:userSdkStore,I=[[[{...b,recent:t}],_]];S({type:"entry:resources:quick:create:template",payload:{data:I}})};return{onMouseDown:i,onEdit:f,onRename:p,onDup:s,onRemove:l,onImport:C,onMove:v,onOrg:u.currentOrg&&!u.isOrg?a:null,onQuickCreate:P}}},43478:(Fe,ee,e)=>{"use strict";e.d(ee,{Y:()=>c});var n=e(20389),r=e(5388);const c=o=>{let{keyWidgetSelected:w,attrQuery:u,numberArreList:d=null}=o;const y=[],h=sdkStore.getHotItem(w);if(!h)return[];const i=h.hotAttr.type;for(const p of n.Lu)p==="TC"&&!r.VN.includes(i)||y.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 y.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:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>n});function n(c){var o,w,u,d=2;for(typeof Symbol<"u"&&(w=Symbol.asyncIterator,u=Symbol.iterator);d--;){if(w&&(o=c[w])!=null)return o.call(c);if(u&&(o=c[u])!=null)return new r(o.call(c));w="@@asyncIterator",u="@@iterator"}throw new TypeError("Object is not async iterable")}function r(c){function o(w){if(Object(w)!==w)return Promise.reject(new TypeError(w+" is not an object."));var u=w.done;return Promise.resolve(w.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:(Fe,ee,e)=>{"use strict";e.d(ee,{Bk:()=>Q,i_:()=>N,wV:()=>V,aQ:()=>U,zR:()=>E,mK:()=>L});var n=e(79388),r=e(47946),c=e(8445),o=e(19249),w=e(16335),u=e(31561),d=e(85449),y=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 C=e(88334),v=e(79287),a=e.n(v),P=e(29158),b=e(74222),g=e(52049);const S=M=>{const D=new Set;(0,P.iX)(P.gT,B=>{if(B===b.Ex)return P.NU;const Y=M.get(B).attr;!g.Gw.has(Y.T)||!Y.mc||D.add(Y.mc)},M);const W=[],F=[];for(const B of D)B.startsWith("ig")?F.push(B):W.push(B);return{mtCids:W,igCids:F}},t=function(M,D,W){if(W===void 0&&(W=[]),!D)throw new Error("[cTMCFD] bad mktCid: "+D);return flatTreeKeyDFS2(KEY_MAIN,F=>{if(F===KEY_RB_TRASH)return SEARCH_SKIP;const B=M.get(F).attr;!SetEVRender.has(B.T)||B.mc===D||W.push({type:"A",key:F,attrDiff:{mc:D}})},M),W};var _=e(25037),I=e(67771),k=e(54190),j=e(16615);const z=async(M,D,W)=>{try{var F,B,Y,X,G,Z,J;const Se=M.getFlatTree(),xe=W?Array.from(W.keys()):Object.values(S(Se)).flat(),{mdWMMktList:be,mtWMMktList:ie,noWMMktList:oe}=await(0,I.Iz)(xe),ue=new Set(be),ve=new Set(ie),re=new Set(oe),fe=D.is_org_project&&a()(D.created_at).isBefore(a()("2025-04-10"))&&!((F=D.attr)!=null&&F.mkt_unlocked_250410),we=((B=D.attr)==null?void 0:B.from)==="mdrp"&&!!((Y=D.attr)!=null&&Y.src_org_cid)&&((X=D.attr)==null?void 0:X.src_org_cid)!==(D.is_org_project?(G=MB.currentOrg)==null?void 0:G.cid:(Z=MB.user)==null||(Z=Z.solo_org)==null?void 0:Z.cid),Te=(le,me)=>{const Pe=le.attr.mc;if(!Pe)return;const pe=oe.includes(Pe)||!be.includes(Pe)&&!ie.includes(Pe),ke=fe||pe?1:we?null:le.attr.mul;ke!==le.attr.mul&&me.push({type:_.qC,key:le.key,attrDiff:{mul:ke}}),ke&&(re.add(Pe),ue.delete(Pe),ve.delete(Pe))},Ie=[];if(W?W.forEach(le=>{Array.from(le).forEach(me=>{Se.has(me)&&Te(Se.get(me),Ie)})}):((0,P.yc)(Se,b.$k,le=>Te(le,Ie)),(0,P.yc)(Se,b.W4,le=>Te(le,Ie)),(0,P.yc)(Se,b.fW,le=>Te(le,Ie))),M.applyDiff(Ie),M.resetUndo(),(J=D.attr)!=null&&J.src_org_cid||fe){var te;const le=Object.assign({},D.attr);if(fe&&(le.mkt_unlocked_250410=!0),(te=D.attr)!=null&&te.src_org_cid&&(le.src_org_cid=""),(0,k.Yu)(D.cid,{attr:le}),we&&(ue.size>0||ve.size>0)){var he,de;(0,j.ZI)("proto_import_watermark",{template_cid:[...ue,...ve].join(","),user_cid:(he=MB.user)==null?void 0:he.cid,export_org_cid:(de=D.attr)==null?void 0:de.src_org_cid})}}MB.action("reducer:watermark:update-state",{mdWMMktList:ue,mtWMMktList:ve,noWMMktList:re})}catch(Se){console.error(Se)}};var K=e(9446),$=e(68587),A=e(69190);const E=async M=>{const[{project_basic:D,project_metas:[W]},{userId:F,flatKey:B,sclibKey:Y}]=await Promise.all([(0,o.DE)("/api/upper/web_v1/basics/"+M),(0,n.yk)({projectBasicCid:M})]);MB.sclibKey=Y,console.log("[p2edit] uId="+F+" key="+B+" pbCid="+M);const G=location.hash.includes("CHOP-PROTO"),Z=!G&&(0,n.il)(B);Z&&(0,$.xd)({value:5,message:"start"});let J;return await(0,n.F2)({userId:F,flpakKey:B,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,he)=>{const de=await(0,c.TP)(te,he);if(G){const Se=new Date(/CHOP-PROTO-([\w:-]+)/.exec(location.hash)[1]);if(Se&&await MB.global.popupHelper.confirmAsync({title:"\u6570\u636E\u56DE\u9000?",desc:"\u6570\u636E\u56DE\u9000\u5230: "+Se.toISOString()})){const xe=[Se.getTime(),0,0,0],be=await(0,p.w0)(f.r,de,xe),{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===B&&K.A.init((0,A.tv)(de)),de}},D),z(rootSdk.flatStore,D,J),{projectBasic:D,projectMeta:W}},U=async M=>{const{market_template:D,project_metas:[W]}=await(0,w.Yk)(M);return await(0,n.F2)({userId:void 0,flpakKey:W.cid,isAllowDat:!1,isAllowCmt:!1,isAllowCur:!1,onTransferError:n.z0,onReadOnlyError:n.sH},D,C.B9),{projectBasic:D,projectMeta:W}},O={repaint:M=>{let{type:D,payload:W}=M;D===u.a&&H(W.changedKeyList)}},H=(0,y.nF)(M=>{const D=(0,d.dP)();if(!D||!MB.action)return;const W=D.ui.leftLayout.popups.currentPopupPanel,F=D.current.currentOrg,B=D.current.currentUser,Y=D.editor.state.mode.editingOrgComboMode,X=D.editor.state.mode.editingUserComboMode;if(W!=="builtin"&&!(B&&X)&&!(F&&Y))return;const G=D.ui.leftLayout.widget.navIndex;if(X||Y){const Z=X?userSdk:orgSdk;if(!Z)return;(0,n.LK)(M,Z)}else if(B&&G===1&&userSdk){const Z=userSdk.sdkStore.getHotItem(M[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(F&&G===2&&orgSdk){const Z=orgSdk.sdkStore.getHotItem(M[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 M,D;const W=(M=MB)==null?void 0:M.user,F=(D=MB)==null?void 0:D.currentOrg,B=F==null?void 0:F.library_accesses;return(0,l.RD)(W,F,B)?!0:"RO"},N=async M=>{let{project_meta_cid:D,userId:W,repaint:F,isAllowDat:B=!0}=M;try{const Y=await(0,r.ur)({userId:W,flpakKey:D,isDummyCmt:!0,isAllowDat:B,onTransferError:n.z0,onReadOnlyError:n.sH,useWorker:!0});return F&&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"),V=M=>(0,o.DE)("/api/upper/web_v1/design/init2403?project_cid="+M)},44421:(Fe,ee,e)=>{"use strict";e.d(ee,{H:()=>s});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),w=e(79150),u=e(83199),d=e(88463),y=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",C=>this.$ref=C),(0,n.A)(this,"handleToggle",C=>{const v=C!==void 0?C:!this.state.isSearching;this.setState({isSearching:v}),v&&setTimeout(()=>{this.$ref&&this.$ref.focus()})}),(0,n.A)(this,"handleBack",()=>{const{isSearching:C}=this.state,{onSearch:v,onBack:a}=this.props;C?(v==null||v(""),this.handleToggle(!1)):a()}),(0,n.A)(this,"onShowTipsByTarget",(C,v)=>v.offsetWidth{"use strict";e.d(ee,{$:()=>C});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),w=e(61068),u=e(4648),d=e(23089),y=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;}}"],v=>v.theme.color_bg_border_02,v=>v.theme.color_proto,v=>v.theme.color_text_L1,v=>v.theme.color_btn_primary_normal,v=>v.theme.color_text_btn,v=>v.theme.color_text_btn,v=>v.theme.color_text_L2);var s=e(30523),l=e(72214);class C extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleBorderVisibilityChanged",a=>{const{onChange:P,selections:b,borderVisibility:g,dispatch:S}=this.props,{borderSide:t}=a.currentTarget.dataset,_={...g,["bdrIsVisible"+t]:!g["bdrIsVisible"+t]};P({value:_,attr:"borderVisibility",selections:b,dispatch:S})}),(0,n.A)(this,"handleBorderChanged",(a,P,b)=>{const{onChange:g,selections:S,dispatch:t,refVars:_,border:I}=this.props,k={...I,[P]:P==="bdrWidth"?parseInt(a):a},j={..._==null?void 0:_.border,[P]:b};g({value:k,attr:"border",refVar:j,selections:S,dispatch:t})})}render(){var a;const{canBorderWidth:P,canBorderStyle:b,canSetBorderVisibility:g,border:S,borderVisibility:t,refVars:_,canOpenLib:I,canAddVar:k,canCreateColorRef:j,refStyles:z,onPosition:K}=this.props,$=!b&&!P,A=!b&&!g&&P,E=b&&P&&!g;return(0,l.jsxs)(p,{className:o()({"is-open":S.bdrIsVisible&&!$},{"is-only-stroke-width":A},{"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)(w.A,{className:w.p,attr:"bdrIsVisible",isChecked:S.bdrIsVisible,onChange:U=>this.handleBorderChanged(U,"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:I,canCreateColorRef:j,refStyles:z,onChange:this.handleBorderChanged,onPosition:K})]}),(0,l.jsxs)("div",{className:o()("border-collapse-body",{"is-open":S.bdrIsVisible&&!$},{"height-32":b||P||g}),children:[A&&(0,l.jsx)("label",{className:"left-label",children:I18N.SettingPanel.thickness}),(0,l.jsx)(i.v,{}),b&&(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,y.se)(),value:S.bdrStyle,onChange:this.handleBorderChanged})}),P&&(0,l.jsx)(s.Yw,{type:"number",attr:"bdrWidth",value:S.bdrWidth,refVar:_==null||(a=_.border)==null?void 0:a.bdrWidth,inputClassName:o()("border-width-input"),menuClassName:"border_width_select_menu",optionList:y.xq,canAddVar:k,showCaretIcon:!0,onConfirm:(U,O)=>this.handleBorderChanged(U,"bdrWidth",O)}),g&&(0,l.jsx)(h.A,{handleChange:this.handleBorderVisibilityChanged,borderVisibility:t})]})]})}}(0,n.A)(C,"defaultProps",{colorButtonAttr:"bdrColor",canAddVar:!0,canCreateColorRef:!0})},44805:(Fe,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 w=(y,h,i)=>{switch(y){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=y=>{let{value:h,attr:i,refVar:f,dispatch:p,supAttr:s,selections:l=[]}=y;const C=l.map(v=>{if(sdkStore.isTrashed(v))return null;const a=sdkStore.getHotItem(v),P=(0,c.o9)(a);if(!w(P,i,h)||!w(P,s,h))return null;const{refVars:b,refStyles:g}=a.hotAttr;let S,t,_=!1;if(s&&a.hotAttr[s]){var I;_=(b==null||(I=b[s])==null?void 0:I[i])!==f,_&&(S={...b,[s]:{...b==null?void 0:b[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 _=(b==null?void 0:b[i])!==f,_&&(S={...b,[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}),_&&(t.refVars=S),{key:v,hotAttr:t}}).filter(v=>!!v);p({type:"entry:widget:change",payload:{flatChgList:C}})},d=y=>{let{selectedItems:h,settingPanelMap:i,otherProps:f}=y;const p={},s=[],l=C=>(i[(0,c.o9)(C)]||i[r.m9])(h,{...f}).flat().filter(v=>typeof v=="number");h.forEach(C=>{l(C).forEach(a=>{p[a]=p[a]?p[a]+1:1})});for(const[C,v]of Object.entries(p))v===h.length&&s.push(Number(C));return s}},44817:(Fe,ee,e)=>{"use strict";e.d(ee,{l:()=>d,q:()=>y});var n=e(38502),r=e(18381),c=e(10429),o=e(70933),w=e(53940),u=e(72214);const d=n.memo(function(i){const{onMouseDown:f,onDoubleClick:p,onSetCurrentNodeIcon:s,iconList:l,isMultiColorIcon:C}=i,v=(0,r.d4)(o.YY);return(0,u.jsx)("ul",{className:"icon-list",style:{width:w.qv},children:l.map((a,P)=>(0,u.jsx)(c.A,{index:P,icon:a,isMultiColorIcon:C,onDoubleClick:p,onMouseDown:f,onSetCurrentNodeIcon:s,createTemplatesData:v},P))})}),y=e.j!=477?n.memo(function(i){const{onMouseDown:f,onDoubleClick:p,onSetCurrentNodeIcon:s,iconList:l,multiColorIconObj:C}=i,v=(0,r.d4)(o.YY);return(0,u.jsx)("ul",{className:"icon-list",style:{width:w.qv},children:l.map((a,P)=>(0,u.jsx)(c.A,{index:P,icon:a,isMultiColorIcon:!!C[a.groupCid],onDoubleClick:p,onMouseDown:f,onSetCurrentNodeIcon:s,createTemplatesData:v},P))})}):null},45246:(Fe,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)},w="_cur",u=h=>h.endsWith(w),d=h=>{if(u(h))throw new Error("bad datKey: "+h);return""+h+w},y=h=>{if(!u(h))throw new Error("bad curKey: "+h);return h.slice(0,-w.length)}},45392:(Fe,ee,e)=>{"use strict";e.d(ee,{L:()=>_,X:()=>k});var n=e(51306),r=e(95549),c=e(38502),o=e(67787),w=e(23089),u=e(5649);function d(j){return j&&(j==="0"||j.endsWith("s"))?parseFloat(j)*1e3:j}var y=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=j=>j===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,y.R)(()=>Array.from({length:10},(z,K)=>{const $=(K+1).toString();return{label:$,value:$}}).concat({label:I18N.dConst.infinite,value:"infinite"})),C=(0,y.R)(()=>h.map(j=>typeof j=="string"?{label:I18N.dConst.ani[j],value:j}:[I18N.dConst.ani[j.groupName],...j.itemList.map(z=>({label:I18N.dConst.ani[z],value:z}))])),v=(0,y.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),P=e(72214);class b extends c.PureComponent{constructor(){super(...arguments),(0,r.A)(this,"handleChange",(z,K)=>{const{onChange:$,dispatch:A,aniName:E,aniDelay:U,aniDuration:O,aniCount:H,selections:Q}=this.props,N={aniName:E,aniDelay:U,aniDuration:O,aniCount:H,[K]:z};$({value:N,attr:"animation",dispatch:A,selections:Q}),K==="aniName"&&E==="none"&&a.U4.addAnimationTrack(z)}),(0,r.A)(this,"handleAniSChange",(z,K)=>{this.handleChange(parseFloat(z)/1e3+"s",K)}),(0,r.A)(this,"handleAniCountChange",(z,K)=>{this.handleChange(z,K)})}render(){const{aniName:z,aniDelay:K,aniDuration:$,aniCount:A}=this.props,E={aniDelay:K,aniDuration:$},U={animationName:z,animationDelay:K,animationDuration:p($)?S:$};return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("div",{className:"line animation-line height-32",children:[(0,P.jsx)("label",{className:"left-label",children:I18N.SettingPanel.animation}),(0,P.jsx)("div",{className:"right-content",children:(0,P.jsx)(w.mq,{className:"select animation-select",attr:"aniName",optionList:C(),value:z,onChange:this.handleChange,menuClassName:"menu-animation-select"})})]}),v().map(O=>{let{label:H,attrName:Q,valueName:N,optionList:L}=O;return(0,P.jsxs)("div",{className:"line animation-line height-32",children:[(0,P.jsx)("label",{className:"left-label",children:H}),(0,P.jsx)("div",{className:"right-content",children:(0,P.jsx)(u.A,{className:"select",attr:Q,value:d(E[N]),min:0,suffix:"ms",max:1e4,optionList:L,onConfirm:this.handleAniSChange})})]},H)}),(0,P.jsxs)("div",{className:"line animation-line height-32",children:[(0,P.jsx)("label",{className:"left-label",children:I18N.SettingPanel.ani_count}),(0,P.jsx)("div",{className:"right-content",children:(0,P.jsx)(u.A,{className:"select",attr:"aniCount",min:1,max:100,optionList:l(),isNotVerify:A==="infinite",formatter:O=>O==="infinite"?I18N.SettingPanel.infinite:O,value:A,onConfirm:this.handleAniCountChange})})]}),(0,P.jsx)("div",{className:"animation-box",children:(0,P.jsx)(g,{style:U,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;"],j=>j.theme.color_text_L1),S="2s";var t=e(44805);const _=j=>{let{selectedItems:z}=j;const{animation:K}=z[0].hotAttr;if(K)return{aniName:K.aniName,aniDelay:K.aniDelay||"0",aniCount:K.aniCount||"1",aniDuration:K.aniDuration||"1s"}},I={component:b,params:{},getter:[_],setter:{onChange:t.c}},k=()=>[n.m,[I,"AnimationInfo"]]},45765:(Fe,ee,e)=>{"use strict";e.d(ee,{d$:()=>u,S$:()=>w});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],w=d=>d?o.map(y=>{var h,i;const f=r[y];return{label:(h=I18N)==null||(h=h.Resources)==null?void 0:h.icon_panel[y],groupName:y,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 y=[],h={};for(const f of d){if(!f)continue;const[p,s,l,C,v,a,P]=f,b={cid:(0,n.xc)(),id:p,cat:s,view_box:l,keywords:v,lib:a,path:C,type:s||"svg",groupCid:P};h[s]||(h[s]=s),y.push(b)}return Object.values(h).map(f=>({groupName:f,label:f,icons:y.filter(p=>p.cat===f)}))}},46082:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>b});var n=e(38502),r=e(69623);const c=g=>("0"+g.toString(16)).slice(-2),o=g=>{let{r:S,g:t,b:_}=g;const{a:I}=g;return S=Math.floor(S*I),t=Math.floor(t*I),_=Math.floor(_*I),"#"+c(S)+c(t)+c(_)},w=()=>{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"}},y=11,i=y*10/2,f=Math.floor(y/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 C=e(72214);const v=g=>{let{elementId:S,style:t,color:_,onMouseDown:I}=g;const k=(0,n.useRef)(null),j=p.CENTER_INDEX,z=Array.from({length:p.COLOR_ITEM_SIZE*p.COLOR_ITEM_SIZE},(K,$)=>{const A=Math.floor($/p.COLOR_ITEM_SIZE),E=$%p.COLOR_ITEM_SIZE,U=A===j&&E===j;return(0,C.jsx)("div",{id:S+"-"+($+1),className:"md-magnifier-color-item",style:{borderColor:U?"#000000":d.colorItem.borderColor}},$)});return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(l,{children:(0,C.jsxs)("div",{ref:k,className:"float-container",style:{...t,gridTemplateColumns:"repeat("+p.COLOR_ITEM_SIZE+", 1fr)"},children:[z,(0,C.jsx)("div",{id:S+"-text",className:"text",style:{color:"#fff"},children:_})]})}),(0,C.jsx)(u.A,{target:document,onMouseDown:(0,u.t)(I,{capture:!0})})]})},b=g=>{let{open:S,event:t,onChange:_,onClose:I,handleOpenDownloadPluginModal:k}=g,j="";const z=(0,n.useRef)(null),K=(0,n.useRef)(null),$=(0,n.useRef)(""),[A,E]=(0,n.useState)({visibility:"hidden"}),[U,O]=(0,n.useState)(null),H=(0,n.useRef)(!1),Q=(Y,X)=>{if(K.current){const{data:G}=K.current.getImageData(Y-f,X-f,y,y),Z=[];for(let J=0;J{if(Y&&K.current){const G=Y.pageX*window.devicePixelRatio,Z=Y.pageY*window.devicePixelRatio,J=Q(G,Z);if(J){E({visibility:X,transform:"translate("+(Y.pageX-i)+"px, "+(Y.pageY-i)+"px)"});const te=Math.ceil(y/2),he=Math.ceil(y/2),de=document.getElementById($.current+"-text");for(let Se=0,xe=y*y;Se{Y.ctrlKey&&Y.preventDefault()},[]),V=(0,n.useCallback)(Y=>{N(Y,"visible")},[N]),M=(0,n.useCallback)(()=>{if(H.current)return;const Y=document.getElementById("md-color-picker-container");Y&&document.body.removeChild(Y),window.removeEventListener("mousemove",V),O(null),E({visibility:"hidden"}),H.current=!0,I()},[V,I]),D=(0,n.useCallback)(Y=>{Y.stopPropagation(),Y.buttons===1&&_&&_(j),M()},[_]),W=Y=>{const X=new Image;X.onload=()=>{const G=document.createElement("canvas");G.width=X.width,G.height=X.height;const Z=G.getContext("2d");Z&&(Z.drawImage(X,0,0),z.current=G,K.current=Z,window.addEventListener("mousemove",V))},X.src=Y.payload},F=Y=>{if(Y.type==="mb-extend-send"){const X=Y.data;W(X)}},B=()=>{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"},G=>{if((G==null?void 0:G.message)==="ok"){W(G);return}G||(k==null||k(),M())}):window.mbRequestMessage({msg:"captured"})}else window.mbRequestMessage&&window.mbRequestMessage({msg:"captured"})};return(0,n.useEffect)(()=>{if(S){H.current=!1,$.current=w();const Y=document.createElement("div");Y.id="color-picker-container",document.body.appendChild(Y),O(Y),window.addEventListener("mb-extend-send",F),window.addEventListener("wheel",L,{passive:!1});try{B()}catch(X){console.error("[plugin error]",X)}N(t,"hidden")}return()=>{M(),window.removeEventListener("mb-extend-send",F),window.removeEventListener("wheel",L,{passive:!1})}},[S]),U?(0,r.createPortal)((0,C.jsx)(v,{elementId:$.current,style:A,color:j,onMouseDown:D,onMouseMove:V}),U):null}},46322:(Fe,ee,e)=>{"use strict";e.d(ee,{I:()=>P});var n=e(38502),r=e(18381),c=e(53732),o=e.n(c),w=e(12211),u=e(89505),d=e(14285),y=e(70933),h=e(67588),i=e(4235),f=e(17307),p=e(37342),s=e(27384),l=e(68863),C=e(4179),v=e(72214);const a=(0,w.Mz)([y.wA,y.HW,y.X_,y.Pz,y.PL,h.PI,h.k3,y.Ur,i.nE,y.YY],(g,S,t,_,I,k,j,z,K,$)=>({currentOrg:g,currentUser:S,scale:t,canvasRect:_,rootProject:I,showDragMode:k,isAdsorbentReferenceLine:j,currentScreen:z,selectedItems:K,createTemplatesData:$})),P=g=>{const S=(0,r.wA)(),t=(0,r.d4)(a),{createTemplatesData:_}=t,{asset:I,lazyLoad:k,containerRect:j,scrollDirection:z,preloadDistance:K}=g,$=(0,u.c)({dispatch:S,...t,popupsName:g.popupsName,type:"picture",isFind:!0,isOrg:!1}),A=(0,n.useCallback)((xe,be)=>{xe.stopPropagation();const{onMouseDown:ie}=$;ie&&ie(xe,be)},[$==null?void 0:$.onMouseDown]),E=(0,n.useCallback)(()=>{O!=null&&O.current||S({type:"entry:image-panel:create:image:by:click",payload:{asset:I,type:"picture"}})},[I,S]),U=(0,n.useCallback)(xe=>{xe.stopPropagation();const{onAssetImport:be}=$;be&&be(I)},[I,$==null?void 0:$.onAssetImport]),{isMoveAfterClick:O,isDragging:H,handleMouseDown:Q,handleClick:N,handleDoubleClick:L}=(0,C.A)({onMouseDown:A,onClick:E,onDoubleClick:U}),V=(0,n.useMemo)(()=>{var xe;const be=(0,l.F)(_);if((be==null||(xe=be.recent)==null?void 0:xe.projectUpperType)==="picture"){var ie;return(be==null||(ie=be.recent)==null?void 0:ie.projectUpperCid)===(I==null?void 0:I.asset_cid)}return H},[_,I,H]),M=xe=>xe.tabHeight?xe.tabHeight:g.isHistoryItem?109:109*xe.height/xe.width,D=xe=>xe.tabHeight?xe.width*xe.tabHeight/xe.height:109,W=xe=>{xe.stopPropagation();const{copyright:be}=I,{user_html:ie}=be||{};(0,p.JW)(ie,"_blank","noreferrer")},F=xe=>{xe.stopPropagation();const{copyright:be}=I,{img_html:ie}=be||{};(0,p.JW)(ie,"_blank","noreferrer")};if(!I)return;const{image:B,thumb:Y,from:X,copyright:G,asset_cid:Z,group_cid:J}=I,{user_name:te,img_html:he,user_html:de}=G||{},Se={key:B,height:M(I),width:D(I),onDoubleClick:L,onClick:N,onMouseDown:xe=>Q(xe,I),isHistoryItem:g.isHistoryItem};return k?!j||!z||!K?null:(0,v.jsx)(b,{className:o()({active:V}),asset:I,containerRect:j,scrollDirection:z,preloadDistance:K,commonProps:Se}):(0,v.jsx)(d.bu,{className:o()("pic-item mt-exposure-observer normal",{active:V}),url:Y,"data-cid":Z,"data-resources-cid":J,...Se,children:X==="unsplash"&&(0,v.jsxs)("div",{className:"copy-right",children:[de&&(0,v.jsx)("div",{className:"user-name",onClick:W,children:te}),he&&(0,v.jsx)(f.C,{name:"chatGPT/auth_image_html",isColorPure:!0,size:10,onClick:F})]})})},b=g=>{const{className:S,containerRect:t,scrollDirection:_,preloadDistance:I,commonProps:k,asset:j}=g,{thumb:z,asset_cid:K,group_cid:$}=j,[A,E]=(0,n.useState)(!1),U=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(!U||!U.current)return;const O=U.current;if(_==="y"){const{top:H,bottom:Q}=O.getBoundingClientRect(),{top:N,bottom:L}=t;H-IN?E(!0):E(!1)}else if(_==="x"){const{left:H,right:Q}=O.getBoundingClientRect(),{left:N,right:L}=t;H-IN?E(!0):E(!1)}},[t,I,_]),(0,v.jsx)(d.bu,{className:o()("pic-item mt-exposure-observer lazy",S),ref:U,"data-cid":K,"data-resources-cid":$,...k,children:(0,v.jsx)(s.A,{isVisible:A,imageUrl:z})})}},46364:(Fe,ee,e)=>{"use strict";e.d(ee,{Ky:()=>w,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",w=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:(Fe,ee,e)=>{"use strict";e.d(ee,{a:()=>w});var n=e(38502),r=e(67787),c=e(33573),o=e(72214);const w=d=>{const{item:y,onSetTemplateRef:h}=d;return(0,o.jsx)(u,{ref:h,className:"sample mt-exposure-observer","data-cid":y.key,"data-resources-cid":y.mtCid,children:(0,o.jsx)("img",{src:c.V})},y.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:(Fe,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),w=e(4461),u=e(82629),d=e(20089),y=e(50353),h=e(72214);const i=(0,n.memo)(s=>{let{widget:l,className:C,isDynamic:v,isExpanded:a}=s;const{key:P,hotAttr:b,hotAttr:{type:g}}=l;switch(g){case d.x.WBasket:return v?(0,h.jsx)(o.C,{className:c()(C,"design-dynamic-new"),name:"left_panel/dynamic/new"}):(0,h.jsx)(o.C,{className:c()(C,"design-master-new"),name:"left_panel/master/new"});case d.x.WIcon:{const{iconData:{viewBox:S,path:t,svgAttr:_,isMultiColorIcon:I}}=b;return(0,h.jsx)(f,{cid:P,isMultiColorIcon:I,view_box:S,path:t,svgAttr:_})}case d.x.WWrap:{const S=a?"group_open":"group_close";return(0,h.jsx)(o.C,{className:c()("icon","group-icon",C),name:"left_panel/"+S})}case d.x.WChart:{const{chartType:S}=b.chartConfig;return(0,h.jsx)(o.C,{className:c()(C,"design-"+S+"-new"),name:"left_panel/"+S+"/new"})}case d.x.WSelectionControl:return(0,h.jsx)(o.C,{className:c()(C,"highWidget"),name:"left_panel/deluxe_widget/new"});case d.x.WSticky:return(0,h.jsx)(o.C,{className:c()(C,"highWidget"),name:"left_panel/canvas_list_/sticky/sticky_20"});case d.x.WTear:return(0,h.jsx)(o.C,{className:c()(C,"highWidget"),name:"left_panel/canvas_list_/sticky/tear_20"});case d.x.WElbow:return(0,h.jsx)(o.C,{className:c()(C,"highWidget"),name:"left_panel/canvas_list_/sticky/elbow_24"});case d.x.WSwimlane:{const{swimlaneType:S}=b;return(0,h.jsx)(o.C,{className:c()(C,"design-"+S+"-new"),name:"left_panel/"+S+"/new"})}case d.x.wFlowClosed:case d.x.WFlowOpened:{const{subType:S}=b;return(0,h.jsx)(o.C,{className:c()(C,"highWidget"),name:"left_panel/flow_"+S})}case d.x.WTree:return(0,h.jsx)(o.C,{className:c()(C,"highWidget"),name:"left_panel/tree"});case d.x.WCode:return(0,h.jsx)(o.C,{className:c()(C,"highWidget"),name:"left_panel/code"});case d.x.Canvas:{const S=b.asOverlay?"overlay":"rResCanvas";return(0,h.jsx)(o.C,{className:c()(C,"design-"+S+"-new"),name:"left_panel/"+S+"/new"})}default:{const S=u.G[g];return S?(0,y.X3)(g)?(0,h.jsx)(o.C,{className:c()(C,"design-"+S.svg_icon+"-new","highWidget"),name:"left_panel/deluxe_widget/new"}):S.svg_icon?(0,h.jsx)(o.C,{className:c()(C,"design-"+S.svg_icon+"-new"),name:"left_panel/"+S.svg_icon+"/new"}):S.icon_name==="text"?(0,h.jsx)(o.C,{className:c()(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()(C,'design-checkbox-new"'),name:"left_panel/checkbox/new"}):S.name==="android_radio"?(0,h.jsx)(o.C,{className:c()(C,"design-android_radio-new"),name:"left_panel/radio/new"}):S.icon_name==="battery"?(0,h.jsx)(o.C,{className:c()(C,"design-"+S.icon_name+"-new"),name:"left_panel/"+S.icon_name+"/new"}):S.name.includes("keyboard")?(0,h.jsx)(o.C,{className:c()(C,"design-keyboard-new"),name:"left_panel/keyboard/new"}):S.name.includes("switch")?(0,h.jsx)(o.C,{className:c()(C,"design-switch-new"),name:"left_panel/toggle/new"}):S.name==="nav_bar"?(0,h.jsx)(o.C,{className:c()(C,"design-nav-bar-new"),name:"left_panel/topbar/new"}):(0,h.jsx)("i",{className:c()("icon","icon-widget-"+(S.icon_name||""),C)}):null}}}),f=(0,n.memo)(s=>{let{cid:l,isMultiColorIcon:C,view_box:v,path:a,svgAttr:P}=s;const b=P&&P.fill?{fill:P.fill}:P&&P.stroke?{stroke:P.stroke}:{};return C&&l?(0,h.jsx)(w.F,{className:c()({"is-multi-color-icon":C}),cid:l,path:a,viewBox:v}):(0,h.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:c()("icon","svg-icon-path-icon","fill"),viewBox:v,dangerouslySetInnerHTML:{__html:a},...b})}),p=i},46606:(Fe,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:(Fe,ee,e)=>{"use strict";e.d(ee,{M:()=>o,w:()=>c});var n=e(26842),r=e(72214);const c=()=>{const w=document.getElementById("IBOT_MODAL_ROOT");if(w)return w;const u=document.createElement("div");return u.id="IBOT_MODAL_ROOT",u},o=(w,u)=>{switch(w.styleType){case"color":return(0,r.jsxs)(n.Xh,{children:[(0,r.jsx)("span",{className:"text",children:w.name}),(0,r.jsx)("span",{className:"text",children:u.hex.toLocaleUpperCase()+"\xA0\xA0"+u.alpha+"%"}),w.desc]});case"text":return(0,r.jsxs)(n.Xh,{children:[(0,r.jsxs)("div",{className:"wrap",children:[(0,r.jsx)("span",{className:"text",children:w.name}),(0,r.jsx)("span",{children:"\xA0\xA0"+w.fontSize+"/"+w.lineHeight})]}),w.desc]});case"muban":return(0,r.jsx)(n.Xh,{children:(0,r.jsx)("span",{className:"text",children:w.name})});default:return(0,r.jsxs)(n.Xh,{children:[(0,r.jsx)("span",{className:"text",children:w.name}),w.desc]})}}},46953:(Fe,ee,e)=>{"use strict";e.d(ee,{D5:()=>h,DE:()=>o,FF:()=>d,LK:()=>v,Zg:()=>w,_G:()=>C,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}],w=(a,P,b)=>b||!a?c.unknown:a===r.I.boolean?c["boolean_"+P]:c[a],u=(a,P)=>{let b=1;if(!P)P=I18N.Variable.default.name||"var";else{const S=P.match(/(\d+)$/);S&&(b=Number(S[0])+1,P=P.replace(S[0],""))}const g=new RegExp("^"+P+"(\\d+)$");return a.forEach(S=>{const t=S.match(g),_=t?parseInt(t[1]):0;_>=b&&(b=_+1)}),""+P+b},d=a=>{for(let P=0;Pb.hotAttr.name===a)},h=(a,P)=>{if(a===r.I.boolean)return P!=null?P:!1;if(a===r.I.number){let b=Number(P!=null?P:0);return Number.isNaN(b)&&(b=0),b}return a===r.I.string?P||I18N.Variable.default.string:""},i=(a,P)=>{if(!a)return;const b=P.querySelector("[data-cid="+a+"]");b&&b.scrollIntoView(!1)},f=240,p={left:-999,top:-999},s=a=>a==="string"?176:144,l=(a,P)=>{if(!a)return p;const b=P.querySelector("[data-cid="+a.key+"]");if(b){let g=b.getBoundingClientRect();const S=P.getBoundingClientRect();g.top{const{top:b,left:g}=a.getBoundingClientRect(),S=b+50,t=s(P)+44,_=S+t,I=g-f;return _>window.innerHeight?{left:I,top:b+42-t}:{left:I,top:S}},v=(a,P,b)=>{let g=""+P;return a===r.I.string&&(g=g.replace(/\n/g,"\\n"),b&&(g='"'+g+'"')),g}},47266:(Fe,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),w=e(85449),u=e(17573);const d="last_open_export_menu_with_wm_date",y="2000-01-01",h=()=>{if(!(0,u._5)())return!0;const f=(0,w.fV)();if(!f)return!1;const{mdWMMktList:p,mtWMMktList:s}=f;if(p.size||s.size){const l=(0,c.Yt)(d,y,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,w.fV)();if(!p)return!1;const{noWMMktList:s}=p;if(f.every(C=>(0,o.bB)(C.hotAttr.mktCid,{noWMMktList:s})))return!0;const l=(0,c.Yt)(d,y,c.qW.String);return r()().isSame(l,"day")?!0:((0,c.a0)(d,r()().format("YYYY-MM-DD"),c.qW.String),!1)}},47437:(Fe,ee,e)=>{"use strict";e.d(ee,{$7:()=>S,$r:()=>h,Am:()=>t,CH:()=>c,Ei:()=>l,I4:()=>i,Ip:()=>v,LZ:()=>n,NX:()=>I,VU:()=>s,pL:()=>_,s5:()=>k,sP:()=>j,uB:()=>p,zS:()=>C});const n=z=>{let{flpakKey:K,needDat:$,needCmt:A,needCur:E}=z;const U=($?4:0)+(A?2:0)+(E?1:0);return!K||!U?"":K+"!"+U.toString(8)},r=z=>{const[K,$]=(z||"").split("!"),A=parseInt($,8)||0;return!K||!A?void 0:{flpakKey:K,needDat:!!(A&4),needCmt:!!(A&2),needCur:!!(A&1)}},c="-",o="P2e",w="P2eu",u="P2eo",d="P2v",y="P2vd",h="/flat-ws",i="/",f="[DROP|client]",p="[DROP|client|no-retry]",s="@drop-client",l="@error",C="@ready",v=">time",a=">close",P=">DBG-long",b=">DBG-error",g="r-skt",_=">cur",I="save",j="{"use strict";e.d(ee,{jl:()=>y,rQ:()=>w,tb:()=>d,v:()=>h,vU:()=>u});var n=e(39138),r=e(65609),c=e(51582),o=e(72214);const w=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"},y=i=>{let{footer:f,onCancel:p,onConfirm:s,renderFooterSide:l,cancelBtnProps:C,confirmBtnProps:v}=i;if(f===null)return null;const a={...u,...C},P={...d,...v};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,{...P})]})})},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:(Fe,ee,e)=>{"use strict";e.d(ee,{rB:()=>l,jo:()=>C,cz:()=>v,Ge:()=>f,XM:()=>p,yX:()=>s});var n=e(79287),r=e.n(n),c=e(91110),o=e(38462);const w=()=>{var a,P;if(f())return{};if(!((a=MB)!=null&&(a=a.commonGuideHelper)!=null&&(a=a.getState())!=null&&a.commonGuidesHasShown))return{};const g=((P=MB)==null||(P=P.commonGuideHelper)==null||(P=P.getState())==null?void 0:P.commonGuidesHasShown)||[],S=o.E.every(j=>j&&g.includes(j));if(S)return{isCompleted:S};const t=o.E.slice().reverse().findIndex(j=>g.includes(j)),_=t===-1?-1:o.E.length-1-t,I=o.E[_],k=o.E[_+1];return{isToShow:!0,lastShownGuideIndex:_,lastShownGuideType:I,nextShownGuideType:k}},u=()=>{const a=w();!a||!a.isToShow||(a!=null&&a.nextShownGuideType&&MB.commonGuideHelper.tryToShowGuide(a.nextShownGuideType),c.Y.showNewGuideTrack())};var d=e(29187);const y="2023-01-04",h="2024-08-22",i=()=>{var a;return dayjs((a=MB.user)==null?void 0:a.created_at).isAfter(dayjs(y))},f=()=>{var a;return r()((a=MB.user)==null?void 0:a.created_at).isAfter(r()(y))},p=()=>{var a;return r()((a=MB.user)==null?void 0:a.created_at).isAfter(r()(h))},s=()=>f()?(0,d.jN)():w(),l=a=>{f()?(0,d.Gq)():u()},C=()=>{var a;return(0,d.rw)()?!0:(typeof((a=MB)==null||(a=a.commonGuideHelper)==null?void 0:a.checkGuideHasShown)!="function",!1)},v=()=>!1},47892:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>F});var n=e(38502),r=e(53732),c=e.n(r),o=e(95549),w=e(69368),u=e(25234),d=e(17307),y=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;}}}}}"],B=>B.theme.export_bar_box_shadow,B=>B.theme.color_bg_white,B=>B.theme.color_btn_secondary_active,B=>B.theme.color_text_L1,B=>B.theme.color_text_L1,B=>B.theme.color_text_disabled01,B=>B.theme.color_btn_secondary_hover,B=>B.theme.color_btn_secondary_active,B=>B.theme.color_proto,B=>B.theme.color_text_L3,B=>B.theme.color_text_disabled01,B=>B.theme.color_bg_white,B=>B.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,B=>B.theme.color_bg_white,B=>B.isOpen?"none":"1px solid "+B.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 C=e(83199),v=e(23089);const a=[{label:"1x",value:"1"},{label:"2x",value:"2"},{label:"3x",value:"3"}],P=[{label:"1x",value:"1"},{label:"2x",value:"2"}],b=["prefix","suffix"],g=a.map(B=>B.value),S=P.map(B=>B.value),t=(B,Y,X,G)=>B.reduce((Z,J)=>!Y&&J.format===h.xk.GIF?(G||Z.push({...J,format:h.xk.PNG}),Z):!X&&J.format===h.xk.SVG?(G||Z.push({...J,format:h.xk.PNG}),Z):(Z.push(J),Z),[]),_=(B,Y)=>B.filter(X=>X.format===Y).map(X=>X.scale);var I=e(72214);const k=B=>{let{id:Y,config:X,isSelectSvgIconsOnly:G,isSelectGifOnly:Z,isRemoveButtonDisabled:J,availablePNGScale:te,availablePDFScale:he,isFreePlan:de,handleRemoveConfig:Se,onChange:xe}=B;const{format:be,scale:ie,affix:oe}=X,ue=(0,n.useCallback)(()=>{Se==null||Se(Y)},[Se,Y]),ve=(0,n.useCallback)((Te,Ie)=>{xe==null||xe({...X,[Ie]:Te},Y)},[X,Y,xe]),re=(0,n.useMemo)(()=>b.map(Te=>({label:I18N.WidgetExport[Te],value:Te})),[]),fe=(0,n.useMemo)(()=>{const Te=be===h.xk.PDF?P:a,Ie=be===h.xk.PDF?he:te;return Te.map(le=>{if(!Ie.includes(le.value)){const me=le.value!==ie;return{...le,isDisabled:me,tooltipWrapper:de?j:void 0}}return{...le,isDisabled:!1}})},[be,ie,te,he,de]),we=(0,n.useMemo)(()=>[{label:"PNG",value:h.xk.PNG,isDisabled:be===h.xk.PNG?!1:te.length<=0||!te.includes(ie)},...G?[{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:he.length<=0||!he.includes(ie)}],[be,ie,G,Z,te,he]);return(0,I.jsxs)("div",{className:"select",children:[(0,I.jsx)("div",{className:"ratio",children:(0,I.jsx)(v.mq,{isDisabled:be===h.xk.SVG||be===h.xk.GIF,className:"select export-select",menuClassName:"export-select-menu",value:ie,optionList:fe,onChange:Te=>ve(Te,"scale")})}),(0,I.jsx)("div",{className:"affix",children:(0,I.jsx)(v.mq,{isDisabled:be===h.xk.SVG||be===h.xk.GIF,className:"affix-select export-select",menuClassName:"export-select-menu",value:oe,optionList:re,onChange:Te=>ve(Te,"affix")})}),(0,I.jsx)("div",{className:"format",children:(0,I.jsx)(v.mq,{isDisabled:!1,className:"select export-select",menuClassName:"export-select-menu select-format-menu",value:be,optionList:we,onChange:Te=>ve(Te,"format")})}),(0,I.jsx)("div",{className:(0,w.Hn)(["svg-icon-wrapper","remove",J&&"is-disabled"]),children:(0,I.jsx)(d.C,{className:"remove",name:"common/subtract",isDisabled:J,onClick:ue})}),(0,I.jsx)(l,{})]})},j=B=>(0,I.jsx)(C.A,{content:I18N.ExportManager.export_watermark_tip,maxWidth:100,direction:"right",children:B}),z=n.memo(k);var K=e(70812);class $ extends n.PureComponent{constructor(Y){super(Y),(0,o.A)(this,"handleClick",()=>{var re,fe;const{onCheck:we,isWidgetBeingExported:Te,exportItem:Ie}=this.props;if(we&&we()||Te)return;const{configs:le,isWithDeviceFrame:me}=this.state;Ie(le.map(Pe=>({...Pe,isWithDeviceFrame:me}))),le!=null&&le.length&&K.U4.protoDownloadTrack((re=MB)==null||(re=re.user)==null?void 0:re.id,(fe=le[0])==null?void 0:fe.format,"\u53F3\u4E0B\u89D2\u5C5E\u6027\u9762\u677F")}),(0,o.A)(this,"handleChangeConfig",(re,fe)=>{const{updateExportSettings:we,isFreePlan:Te}=this.props;this.setState(Ie=>{const le=Array.from(Ie.configs),me=le[fe].format===h.xk.SVG&&le[fe].format!==re.format,Pe=le[fe].format===h.xk.GIF&&le[fe].format!==re.format;le.splice(fe,1,re);const pe=_(le,h.xk.PNG),ke=_(le,h.xk.PDF),We=re.format===h.xk.PNG&&le[fe].format!==re.format?[...Ie.availablePNGScale,re.scale]:g.filter(Ae=>!pe.includes(Ae)).filter(Ae=>Te?Ae==="1":!0),Ee=re.format===h.xk.PDF&&le[fe].format!==re.format?[...Ie.availablePDFScale,re.scale]:S.filter(Ae=>!ke.includes(Ae)).filter(Ae=>Te?Ae==="1":!0);return we(le,Ie.isWithDeviceFrame),{configs:le,availablePNGScale:We,availablePDFScale:Ee,isSvgOptionAvailable:me,isGifOptionAvailable:Pe}})}),(0,o.A)(this,"handleInsertConfig",()=>{const{isSelectSvgIconsOnly:re,isSelectGifOnly:fe,updateExportSettings:we}=this.props,{availablePNGScale:Te,availablePDFScale:Ie,isSvgOptionAvailable:le,isGifOptionAvailable:me}=this.state;Te.length<=0&&Ie.length<=0&&(re&&!le||fe&&!me)||this.setState(Pe=>{const pe=Array.from(Pe.configs),ke=_(pe,h.xk.PNG),We=_(pe,h.xk.PDF),Ee=g.filter(Xe=>!ke.includes(Xe)),Ae=S.filter(Xe=>!We.includes(Xe)),Ce=Ee.length,_e=Ae.length,Ge=Pe.configs.concat(Ce?[{scale:Ee.shift(),affix:"suffix",format:h.xk.PNG}]:_e?[{scale:Ae.shift(),affix:"suffix",format:h.xk.PDF}]:le||me?[{scale:"1",affix:"suffix",format:le?h.xk.SVG:h.xk.GIF}]:[]);return we(Ge,Pe.isWithDeviceFrame),{configs:Ge,availablePNGScale:Ee,availablePDFScale:Ae,isSvgOptionAvailable:re&&Ge.filter(Xe=>Xe.format===h.xk.SVG).length<1,isGifOptionAvailable:fe&&Ge.filter(Xe=>Xe.format===h.xk.GIF).length<1}})}),(0,o.A)(this,"handleRemoveConfig",re=>{const{isSelectSvgIconsOnly:fe,isSelectGifOnly:we,updateExportSettings:Te}=this.props,{configs:Ie}=this.state;Ie.length<=1||this.setState(le=>{const me=Array.from(le.configs);me.splice(re,1);const Pe=_(me,h.xk.PNG),pe=_(me,h.xk.PDF),ke=g.filter(Ce=>!Pe.includes(Ce)),We=S.filter(Ce=>!pe.includes(Ce)),Ee=fe&&!me.find(Ce=>Ce.format===h.xk.SVG),Ae=we&&!me.find(Ce=>Ce.format===h.xk.GIF);return Te(me,le.isWithDeviceFrame),{configs:me,availablePNGScale:ke,availablePDFScale:We,isSvgOptionAvailable:Ee,isGifOptionAvailable:Ae}})}),(0,o.A)(this,"onShowTipsByTarget",(re,fe)=>{const we=fe.querySelector(".is-multi-select-includes-panel-tip");return we.offsetWidth{const{setIsOpen:re,setIsExportOpenFromContainer:fe,updateExportSettings:we}=this.props,{configs:Te,isWithDeviceFrame:Ie}=this.state;re(!1),fe&&fe(!1),we(Te,Ie)}),(0,o.A)(this,"handleIsWithDeviceFrameChecked",re=>{const{updateExportSettings:fe}=this.props,{configs:we}=this.state;this.setState({isWithDeviceFrame:re}),fe(we,re)});const{isSelectSvgIconsOnly:X,isSelectGifOnly:G,exportSettings:Z,isFreePlan:J,exportWithDeviceFrame:te}=Y,he=[X?{format:h.xk.SVG,scale:"1",affix:"suffix"}:G?{format:h.xk.GIF,scale:"1",affix:"suffix"}:{format:h.xk.PNG,scale:"1",affix:"suffix"}],de=Z!=null&&Z.length?Z.some(re=>re.format===h.xk.PNG&&re.scale==="1"):!0,Se=Z!=null&&Z.length?t(Z,G,X,de):he,xe=_(Se,h.xk.PNG),be=_(Se,h.xk.PDF),ie=g.filter(re=>!xe.includes(re)).filter(re=>J?re==="1":!0),oe=S.filter(re=>!be.includes(re)).filter(re=>J?re==="1":!0),ue=X&&!Se.some(re=>re.format===h.xk.SVG),ve=G&&!Se.some(re=>re.format===h.xk.GIF);this.state={isMiscOpened:!1,isWithDeviceFrame:te!=null?te:!1,configs:Se,availablePNGScale:ie,availablePDFScale:oe,isSvgOptionAvailable:ue,isGifOptionAvailable:ve}}componentDidUpdate(Y,X){const{exportSettings:G,isSelectGifOnly:Z,isSelectSvgIconsOnly:J,updateExportSettings:te}=this.props;let he=this.state.configs,de=!1,Se=this.state.isSvgOptionAvailable,xe=this.state.isGifOptionAvailable;const be=G!=null&&G.length?G.some(ie=>ie.format===h.xk.PNG&&ie.scale==="1"):!0;(Y.isSelectGifOnly!==Z||Y.isSelectSvgIconsOnly!==J)&&((!Z||!J)&&(he=t(he,Z,J,be),de=!0),Z&&(xe=!he.some(ie=>ie.format===h.xk.GIF),de=!0),J&&(Se=!he.some(ie=>ie.format===h.xk.SVG),de=!0)),de&&(he.length||he.push({format:h.xk.PNG,scale:"1",affix:"suffix"}),this.setState({configs:he,isGifOptionAvailable:xe,isSvgOptionAvailable:Se}),te(he,this.state.isWithDeviceFrame))}render(){const{isWidgetBeingExported:Y,selectedWidgetsCount:X,isSelectSvgIconsOnly:G,isSelectGifOnly:Z,widgetDisplayName:J,isFreePlan:te}=this.props;if(!X)return null;const{configs:he,isMiscOpened:de,isWithDeviceFrame:Se,availablePNGScale:xe,availablePDFScale:be,isSvgOptionAvailable:ie,isGifOptionAvailable:oe}=this.state,re=xe.length>0||be.length>0||(Z||G?ie||oe:!1);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(p,{className:c()({"is-open":!0}),children:(0,I.jsxs)("div",{className:c()("export-panel",{"is-open":!0}),children:[(0,I.jsx)("div",{className:c()("export-header",{"is-misc-opened":de}),children:de?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(y.A,{className:"check",label:I18N.WidgetExport.show_device_frame_when_exporting_pages,isChecked:Se,onChange:this.handleIsWithDeviceFrameChecked}),(0,I.jsx)("div",{className:"svg-icon-wrapper close",children:(0,I.jsx)(d.C,{name:"common/close",onClick:()=>this.setState({isMiscOpened:!1})})})]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("label",{className:"label",children:I18N.WidgetExport.export}),(0,I.jsx)("div",{className:"svg-icon-wrapper",children:(0,I.jsx)(d.C,{name:"common/misc",onClick:()=>this.setState({isMiscOpened:!0})})}),(0,I.jsx)("div",{className:"svg-icon-wrapper caret",children:(0,I.jsx)(d.C,{name:"common/expand/plus",onClick:this.handleClose})}),(0,I.jsx)("div",{className:(0,w.Hn)(["svg-icon-wrapper","add",!re&&"is-disabled"]),children:(0,I.jsx)(d.C,{name:"common/add",onClick:this.handleInsertConfig})})]})}),(0,I.jsx)("div",{className:"export-settings",children:(0,I.jsxs)("div",{className:"export-second",children:[he.map((fe,we)=>(0,I.jsx)(z,{id:we,config:fe,availablePNGScale:xe,availablePDFScale:be,isSelectSvgIconsOnly:G,isSelectGifOnly:Z,isRemoveButtonDisabled:he.length<=1,handleRemoveConfig:this.handleRemoveConfig,onChange:this.handleChangeConfig,isFreePlan:te},we)),(0,I.jsxs)("div",{className:"select-label",children:[(0,I.jsx)("span",{className:"ratio",children:I18N.WidgetExport.times}),(0,I.jsx)("span",{className:"affix",children:I18N.WidgetExport.prefix_suffix}),(0,I.jsx)("span",{className:"format",children:I18N.WidgetExport.format})]})]})})]})}),(0,I.jsx)(s,{isOpen:!0,children:(0,I.jsx)(u.lV,{isLoading:Y,onClick:this.handleClick,corner:"smooth",children:X>1?G?""+I18N.WidgetExport.export_selected_icons.replace("%selectedIconCount%",X):J+"\uFF08"+X+"\uFF09":""+I18N.WidgetExport.export+J})})]})}}var A=e(65541),E=e(73658),U=e(20089),O=e(61790),H=e(47266),Q=e(25306),N=e(27845),L=e(53559),V=e(70248),M=e(34860);const D=()=>MB.global.experienceLoginModalHelper("isSave"),F=B=>{var Y,X;let{isExportAllAIComponent:G,isWidgetBeingExported:Z,isHtmlZipPreview:J,isExportOpenFromContainer:te,setIsExportOpenFromContainer:he,updateExportSettings:de,isST:Se,currentScreen:xe,exportItem:be,newSelection:ie,currentUser:oe,currentOrg:ue,currentProject:ve}=B;const[re,fe]=(0,n.useState)(!1),we=(0,n.useMemo)(()=>ie.length>0?ie.map(Ge=>sdkStore.getHotItem(Ge)):[],[ie]),Te=xe==null?void 0:xe.cid,Ie=(0,n.useMemo)(()=>Se&&we.length===0,[Se,we.length]),le=(0,n.useMemo)(()=>Ie&&Te?(0,E.UR)(Te).map(Ge=>({...Ge,cid:Ge.key})):we,[Te,Ie,we]),me=(0,n.useMemo)(()=>le.every(Ge=>{let{hotAttr:Xe}=Ge;return Xe.type===U.x.WIcon}),[le]),pe=(0,n.useMemo)(()=>{const Ge=le[0];return le.length===1&&(Ge==null?void 0:Ge.hotAttr.type)===U.x.Canvas&&!(0,V.OO)(Ge==null?void 0:Ge.key)},[le])&&!re&&!ENV.IS_ON_PREMISES&&((0,M.OB)()||MB.canEditByCurrentUser),ke=(0,n.useMemo)(()=>{const Ge=[];return!le.some(Ue=>{if((Ue==null?void 0:Ue.hotAttr.type)!==U.x.WImage)return!0;{var pt;const Ye=Ue.hotAttr.image;if(!Ye)return!0;const Qe=(pt=sdkStore.getHotItem(Ye.imageRef))==null?void 0:pt.hotAttr.extData;return Qe&&Qe.toLowerCase().endsWith(".gif")?(Ge.push(Qe),!1):!0}})},[le]),We=re||te&&(oe==null?void 0:oe.id),Ee=(0,n.useMemo)(()=>{var Ge,Xe,Ue,pt;if(!We)return"";let Ye=I18N.Note.selected_notes;if(le.length>1&&!Ie){let Qe=0,lt=0;le.forEach(tt=>{var qe;((qe=tt.hotAttr)==null?void 0:qe.type)===U.x.Canvas?Qe+=1:lt+=1}),Qe===le.length?Ye=I18N.SettingPanel.multi_select_artboards:lt===le.length?Ye=I18N.SettingPanel.multi_select:Ye=I18N.SettingPanel.multi_select_artboards_widgets}return we.length>0?le.length>1?Ye:((Ge=le[0].hotAttr)==null?void 0:Ge.type)===U.x.WRichText?(0,O.rs)(le[0]):U.Q.ST_MODE_WIDGET_NAMES.includes((Xe=le[0].hotAttr)==null?void 0:Xe.type)?I18N.Note.note+((Ue=le[0])==null||(Ue=Ue.hotAttr)==null?void 0:Ue.order):(pt=le[0])==null||(pt=pt.hotAttr)==null?void 0:pt.name:Ie?Ye:""},[le,Ie,we.length,We]),{isFree:Ae}=(0,n.useMemo)(()=>{if(!oe)return{isFree:!0};if(ve!=null&&ve.is_org_project&&ue){const{plan:Ge}=(0,L.rM)(ue);return{isFree:[N.Sj.OrgExpired,N.Sj.OrgFree].includes(Ge)}}else return{isFree:Q.tz.InitialUser(oe).planSdk.prototypePlan.getUserPlan()===N.L1.Free}},[ue,ve==null?void 0:ve.is_org_project,oe]);if(le.length===0||J||G)return null;const Ce=()=>{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,H.s)(le)){MB.action("modal:update:state",{mktWMExportModal:{isOpen:!0,onExport:()=>{fe(!0)}}}),K.U4.watermarkExposureTrack("export");return}fe(!0)},_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}MB.action("modal:update:state",{canvasConvertedToPixsoModal:{isOpen:!0,from:"rightPanel"}})};return re||te&&oe!=null&&oe.id?(0,I.jsx)($,{isSelectSvgIconsOnly:me,isWidgetBeingExported:Z,onCheck:D,setIsOpen:fe,widgetDisplayName:Ee,selectedWidgetsCount:le.length,exportSettings:ve==null||(Y=ve.attr)==null?void 0:Y.export_settings,exportWithDeviceFrame:ve==null||(X=ve.attr)==null?void 0:X.export_with_device_frame,isSelectGifOnly:ke,setIsExportOpenFromContainer:he,isFreePlan:Ae,updateExportSettings:de,exportItem:be}):(0,I.jsxs)(s,{className:c()({"has-converted-pixso":pe}),isOpen:re,children:[pe&&(0,I.jsxs)(u.lV,{corner:"smooth",className:"converted-pixso",onClick:_e,children:[I18N.ContextMenu.converted_pixso,(0,I.jsx)(A.A,{className:"beta"})]}),(0,I.jsx)(u.lV,{isLoading:Z,onClick:Ce,corner:"smooth",children:oe!=null&&oe.id?I18N.WidgetExport.export:I18N.WidgetExport.export_after_login})]})}},48028:(Fe,ee,e)=>{"use strict";e.d(ee,{Yt:()=>d,a0:()=>y,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),w=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)}},y=(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:(Fe,ee,e)=>{"use strict";e.d(ee,{C0:()=>d,CO:()=>w,O0:()=>y,wy:()=>u});var n=e(67787),r=e(97974),c=e(82535),o=e(36518);const w=(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),y=(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:(Fe,ee,e)=>{"use strict";if(e.d(ee,{Ci:()=>o,He:()=>h,QD:()=>u,gT:()=>w}),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:C}=i,v=l.category===n.C,a=l.category===n.t_;if(!v){var s;const P=(s=C[0])==null?void 0:s.cid,b=await(0,c.vs)(P),g=y(b,a),S=d(l,P,g);f.set(l.cid,S),p.set(l.cid,{projectMetaList:C})}}return{marketTemplateItemListMap:f,marketTemplateListDataMap:p}},w=(i,f)=>{const{project_metas:p,keys:s}=i;let l=[];if(s!=null&&s.length&&p!=null&&p.length&&f){const{cid:C}=p[0],v=Object.values(f[C]);l=d(i,C,v)}return l},u=function(i,f,p){p===void 0&&(p=[]);const s=y(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:C}=i,v=[];return p.forEach(a=>{if(a){const[P,b,g]=a;((g==null?void 0:g.bunch)===r.x.RbPage?!(g!=null&&g.asFolder):!0)&&v.push({key:P,sup:b,hotAttr:g,category:l,policy:C,type:l,projectMetaCid:f,marketTemplateSource:i})}}),v},y=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,C)=>[C,[]])]),s=new Map([...Array.from(new Array(f)).map((l,C)=>[C,0])]);try{for(let l of i){if(!l||!l.hotAttr||!l.hotAttr.h)continue;const{hotAttr:{h:C,w:v}}=l,a=Math.min(v/320*C,800),P=[...s.values()],b=Math.min(...P),g=P.indexOf(b);p.get(g).push(l),s.set(g,a+b)}}catch(l){console.log(l.message)}return[...p.values()]}},49021:(Fe,ee,e)=>{"use strict";e.d(ee,{b5:()=>g,cX:()=>s,sE:()=>P,xR:()=>b});var n=e(20089),r=e(89002),c=e(44940),o=e(56938),w=e(19013),u=e(31781),d=e(31569),y=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=>_=>{let{selectedItems:I,rootProject:{device:k,model:j},hasMissFontHi:z,cloudFontLocalList:K}=_;const{fontSize:$,bold:A,textDecoration:E,italic:U,letterSpacing:O,fontFamily:H,fontWeight:Q,textColor:N}=(0,d.i)(I,"textV0");let L=N,V="textV0";if([n.x.WMTextInput,n.x.WMTextArea].includes(t)){const{prefillTextColorV0:M}=(0,d.i)(I,"textInput");L=M,V="textInput"}return{device:k,model:j,fontSize:$,boldType:A?1:0,textDecoration:E,fontStyle:U?"italic":"normal",boldAttr:"boldType",letterSpacing:O,fontFamily:H,wbiVersion:3,fontWeight:Q,textColor:L,name:t,colorAttr:"prefillTextColorV0",hasMissFontHi:z,isMissFont:(0,p.QT)(H,Q),cloudFontLocalList:K,refVars:(0,f.xu)(I),supAttr:V}},C=t=>{let{defaultCanHa:_,defaultCanVa:I}=t;return k=>{let{selectedItems:j,hasMissFontHi:z}=k;const K=(0,d.i)(j,"richTextV1");return{ha:K.horizontalAlign,va:K.verticalAlign,canHa:_,canVa:I==="dependSizetype"?K.sizeType!==0:I,shouldReverseDesc:(K==null?void 0:K.fontDirection)==="vertical-lr",sizeType:K==null?void 0:K.sizeType,hasMissFontHi:z}}},v=t=>_=>{let{selectedItems:I,isTextEditing:k,richTextEditorState:j,hasMissFontHi:z}=_;const{hotAttr:K}=I.find(W=>W.hotAttr.type===t),{lineHeight:$,paddingTuple:A,letterSpacing:E,listValue:U,paraSpacing:O,fontDirection:H,isHavingLink:Q,isClipText:N,fontFamily:L,sizeType:V,fontSize:M}=(0,h.mj)({baseItem:K,isEditing:k,richTextEditorState:j}),D=(0,f.xu)(I);if(k&&D!=null&&D.paddingTuple){const W=D==null?void 0:D.paddingTuple;Object.keys(W).forEach(F=>{if(typeof W[F]=="string"){var B;A[F]!==((B=K.richTextV1)==null||(B=B.paddingTuple)==null?void 0:B[F])&&delete W[F]}})}return{fontSize:M,lineHeight:$,paddingTuple:A,letterSpacing:E,name:K.type,disabled:k&&t!==n.x.WRichText,shouldReverseDesc:H==="vertical-lr",listValue:U,paraSpacing:O,isClipText:N,fontDirection:H,isHavingLink:Q,isWRichText:!0,fontFamily:L,hasMissFontHi:z,isMissFont:z,sizeType:V,refVars:D}},a=t=>_=>{let{selectedItems:I,rootProject:{device:k,model:j},isTextEditing:z,richTextEditorState:K,hasMissFontHi:$,cloudFontLocalList:A}=_;const{hotAttr:E}=I.find(B=>B.hotAttr.type===t),{letterSpacing:U,fontFamily:O,color:H,fontSize:Q,fontStyle:N,sizeType:L,textDecoration:V,boldType:M,fontWeight:D,lineHeight:W}=(0,h.mj)({baseItem:E,isEditing:z,richTextEditorState:K}),F=(0,f.xu)(I);return{device:k,model:j,fontFamily:O,lineHeight:W,letterSpacing:U,fontSize:Q,fontWeight:D,fontStyle:N,fontStyleAttr:"fontStyle",textColor:H||c.A.tc,colorAttr:"textColor",sizeType:L,textDecoration:V,boldType:M,boldAttr:"boldType",isTextEditing:z,isRichText:!0,hasMissFontHi:$,isMissFont:$,cloudFontLocalList:A,refVars:F,supAttr:"richTextV1",refStyles:(0,d.i)(I,"refStyles")}},P={[o.s.TextFontPanel]:{[w.m9]:t=>{let{selectedItems:_,rootProject:{device:I,model:k},hasMissFontHi:j,cloudFontLocalList:z}=t;const{fontFamily:K,fontWeight:$,fontSize:A,bold:E,italic:U,textColor:O,textDecoration:H}=(0,d.i)(_,"textV0")||{},Q=(0,d.i)(_,"refStyles");return{device:I,model:k,fontFamily:K,fontSize:A,textColor:O,fontWeight:$,boldAttr:"boldType",boldType:E?1:0,textDecoration:H,wbiVersion:3,fontStyle:U?"italic":"normal",hasMissFontHi:j,isMissFont:(0,p.QT)(K,$),cloudFontLocalList:z,refVars:(0,f.xu)(_),refStyles:Q,supAttr:"textV0"}},[n.x.WTree]:t=>{let{selectedItems:_,hasMissFontHi:I,cloudFontLocalList:k}=t;const j=(0,d.i)(_,"textV0");return{fontSize:j.fontSize,textColor:j.textColor,boldType:j.bold?1:0,boldAttr:"boldType",textDecoration:j.textDecoration,fontStyle:j.italic?"italic":"normal",fontFamily:j.fontFamily,fontWeight:j.fontWeight,isMissFont:(0,p.QT)(j.fontFamily,j.fontWeight),hasMissFontHi:I,cloudFontLocalList:k,refVars:(0,f.xu)(_),supAttr:"textV0"}},[n.x.WTabs]:t=>{let{selectedItems:_}=t;const{textColor:I,fontSize:k}=(0,d.i)(_,"tabs");return{fontSize:k,textColor:I,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:_,rootProject:{device:I,model:k},isTextEditing:j,richTextEditorState:z,hasMissFontHi:K,cloudFontLocalList:$}=t;const A=_.find(he=>he.hotAttr.type===n.x.WRichText).hotAttr,E=(0,h.mj)({baseItem:A,isEditing:j,richTextEditorState:z}),{fontFamily:U,color:O,fontSize:H,letterSpacing:Q,fontStyle:N,sizeType:L,textDecoration:V,boldType:M,fontWeight:D,fontDirection:W,listValue:F,isHavingLink:B,curBlockKey:Y,wbiVersion:X,paraSpacing:G,isClipText:Z,lineHeight:J}=E,te=(0,f.xu)(_);return j&&te&&Object.keys(te).forEach(he=>{typeof te[he]=="string"&&E[he]!==A.richTextV1[he]&&delete te[he]}),{device:I,model:k,fontFamily:U,fontSize:H,lineHeight:J,letterSpacing:Q,fontWeight:D,fontStyle:N,fontStyleAttr:"fontStyle",textColor:O||c.A.tc,colorAttr:"textColor",sizeType:L,textDecoration:V,isClipText:Z,boldType:M,boldAttr:"boldType",isTextEditing:j,fontDirection:W,isRichText:!0,listValue:F,isHavingLink:B,curBlockKey:Y,isWRichText:!0,wbiVersion:X,shouldReverseDesc:W==="vertical-lr",paraSpacing:G,isMissFont:K,hasMissFontHi:K,cloudFontLocalList:$,refVars:te,supAttr:"richTextV1",refStyles:(0,d.i)(_,"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]:{[w.m9]:t=>{var _,I;let{selectedItems:k,selectionTableCell:j}=t;const z=k[0],{color:K,fontSize:$,fontStyle:A,boldType:E,textDecoration:U}=(0,r.kO)(j,z.hotAttr),{selectionLeftTopInfo:{x:O,y:H}}=j,Q=z==null||(_=z.hotAttr.table)==null||(_=_[H])==null?void 0:_[O];return{textColor:K,isTableCell:!0,fontSize:$,fontStyle:A,fontStyleAttr:"fontStyle",boldType:E,boldAttr:"boldType",supAttr:"cells-"+Q,colorAttr:"color",textDecoration:U,refVars:(I=(0,f.p0)(z,j))==null?void 0:I.style}}},[o.s.ChartTextFontPanel]:{[w.m9]:t=>{let{selectedItems:_}=t;const I=(0,d.i)(_,"textV0");return{fontSize:I.fontSize,textColor:I.textColor}}},[o.s.AlignPanel]:{[w.m9]:t=>{let{selectedItems:_,hasMissFontHi:I}=t;const k=(0,d.i)(_,"textV0");return{ha:k.horizontalAlign,va:k.verticalAlign,canVa:!0,canHa:!0,hasMissFontHi:I}},[n.x.WRichText]:C({defaultCanHa:!0,defaultCanVa:"dependSizetype"}),[n.x.WRect]:C({defaultCanHa:!0,defaultCanVa:"dependSizetype"}),[n.x.WOval]:C({defaultCanHa:!0,defaultCanVa:"dependSizetype"}),[n.x.WLine]:C({defaultCanHa:!1,defaultCanVa:!1}),[n.x.WElbow]:C({defaultCanHa:!1,defaultCanVa:!1}),[n.x.WArrow]:C({defaultCanHa:!1,defaultCanVa:!1}),[n.x.WPlaceholder]:C({defaultCanHa:!0,defaultCanVa:"dependSizetype"}),[n.x.WButton]:C({defaultCanHa:!0,defaultCanVa:"dependSizetype"}),[n.x.WMTooltip]:C({defaultCanHa:!0,defaultCanVa:"dependSizetype"}),[n.x.WPolygon]:C({defaultCanHa:!0,defaultCanVa:!0}),[n.x.WStar]:C({defaultCanHa:!0,defaultCanVa:!0}),[n.x.WVector]:C({defaultCanHa:!0,defaultCanVa:!0}),[n.x.WTriangle]:C({defaultCanHa:!0,defaultCanVa:!0}),[n.x.wFlowClosed]:C({defaultCanHa:!0,defaultCanVa:!0}),[n.x.WFlowOpened]:C({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:_,selectionTableCell:I}=t;const{ha:k,va:j}=(0,r.kO)(I,_[0].hotAttr);return{ha:k,va:j,canVa:!0,canHa:!0}}},[o.s.SpacingPanel]:{[w.m9]:t=>{let{selectedItems:_,isTextEditing:I,hasMissFontHi:k}=t;const j=_.filter(N=>N.hotAttr.type!==n.x.WRichText),z=(0,d.i)(j,"textV0"),{lineHeight:K=c.A.lineHeight,paddingTuple:$=c.A.paddingTuple,letterSpacing:A,paraSpacing:E,padding:U,fontFamily:O,fontWeight:H}=z||{},Q=j.length===1?j[0].hotAttr.type:void 0;return{lineHeight:K,paddingTuple:$,padding:U,disabled:I,letterSpacing:A,baseItem:j,name:Q,paraSpacing:E,isMissFont:(0,p.QT)(O,H),hasMissFontHi:k,refVars:(0,f.xu)(_)}},[n.x.WRichText]:v(n.x.WRichText),[n.x.WPlaceholder]:v(n.x.WPlaceholder),[n.x.WButton]:v(n.x.WButton),[n.x.WMTooltip]:v(n.x.WMTooltip),[n.x.WTree]:l(n.x.WTree),[n.x.WRect]:v(n.x.WRect),[n.x.WOval]:v(n.x.WOval),[n.x.WPolygon]:v(n.x.WPolygon),[n.x.WStar]:v(n.x.WStar),[n.x.WVector]:v(n.x.WVector),[n.x.WLine]:v(n.x.WLine),[n.x.WElbow]:v(n.x.WElbow),[n.x.WArrow]:v(n.x.WArrow),[n.x.WTriangle]:v(n.x.WTriangle),[n.x.WFlowOpened]:v(n.x.WFlowOpened),[n.x.wFlowClosed]:v(n.x.wFlowClosed),[n.x.WTable]:t=>{var _;let{selectedItems:I,selectionTableCell:k}=t;const j=I[0].hotAttr,{lineHeight:z,padding:K}=(0,r.kO)(k,j);return{lineHeight:z,padding:K,name:j==null?void 0:j.type,refVars:(_=(0,f.p0)(I[0],k))==null?void 0:_.style}}},[o.s.ContentBoxPanel]:{[w.m9]:t=>{let{selectedItems:_,hasMissFontHi:I}=t;const k=_.length&&(_.every(K=>{let{hotAttr:$}=K;return $.type===n.x.WMSelect})||_.every(K=>{let{hotAttr:$}=K;return s.includes($.type)&&$.type!==n.x.WMSelect})),j=_.some(K=>{let{hotAttr:$}=K;return i.VV.includes($.type)||[n.x.WMTextArea,n.x.WMSelect].includes($.type)});let z;if(k){const K=(0,f.GN)(_);K.size===1&&(z=K.values().next().value)}return{canShowContentBox:k,disableModifyContentBox:!!I,canMultiline:j,content:k&&(0,u.MZ)(_),isBatch:_.length>1,refVar:z}},[n.x.WTable]:t=>{var _;let{selectedItems:I,selectionTableCell:k,hasMissFontHi:j}=t;const z=!!k,K=I[0],$=(_=(0,f.p0)(K,k))==null?void 0:_.data,{selectionLeftTopInfo:{x:A,y:E}}=k,U=(0,y.j)(K.hotAttr.cells,K.hotAttr.table,E,A),O=(U==null?void 0:U.data)||"";return{canShowContentBox:z,disableModifyContentBox:!!j,canMultiline:!0,content:O,refVar:$}}},disableSetting:{[w.m9]:()=>({}),[n.x.WMTextInput]:()=>({noTd:!0}),[n.x.WMTextArea]:()=>({noTd:!0}),[n.x.WMSelect]:()=>({noTd:!0,noBold:!0,noItalic:!0})}},b=t=>s.includes(t)?[P[o.s.TextFontPanel][t]||P[o.s.TextFontPanel][w.m9],P[o.s.AlignPanel][w.m9],P[o.s.AlignPanel][t]||P[o.s.AlignPanel][w.m9],P[o.s.AlignPanel][t]||P[o.s.SpacingPanel][w.m9],P[o.s.SpacingPanel][t]||P[o.s.SpacingPanel][w.m9],P.disableSetting[t]||P.disableSetting[w.m9]]:[],g=()=>[P[o.s.TableTextFontPanel][w.m9],P[o.s.AlignPanel][w.m9],P[o.s.AlignPanel][n.x.WTable],P[o.s.SpacingPanel][n.x.WTable]],S=t=>{let{selectedItems:_}=t;const I=itemsGetAttr(_,"selectNode");return{fontSize:I.fontSize,textColor:I.textColor,boldType:I.bold?1:0,textDecoration:I.textDecoration,fontStyle:I.italic?"italic":"normal",fontFamily:I.fontFamily}}},49425:(Fe,ee,e)=>{"use strict";e.d(ee,{y2:()=>g,a3:()=>z,Uh:()=>k,nU:()=>t,lb:()=>_,TK:()=>j,th:()=>I});var n=e(74222),r=e(25037),c=e(24229),o=e(16966),w=e(29158),u=e(38581),d=e(69415),y=e(70756),h=e(52049);const i=K=>{let $=0;return(0,w.yc)(K,n.$k,A=>{const E=A.attr;if(E.T!==h._b)return y.NU;const U=(0,n.mq)(E);U.bunch==="rbPage"&&!U.asFolder&&$++}),$},f=new Set([h._b,h.e]),p=K=>{const $=[];let A=0,E=0;return walkFlatTreeItem2(K,KEY_RB_MAIN,U=>{const O=U.attr;if(!f.has(O.T))return;const H=toProto2HotAttr(O);$.push([U.key,U.sup,H]),H.type==="rResBunch"&&H.bunch==="rbPage"&&!H.asFolder?A++:H.type==="rResCanvas"&&E++}),{p2mList:$,p2mStat:{countPG:A,countCV:E}}};var s=e(20089),l=e(5664),C=e(26034),v=e(14861),a=e(29187);const P={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},b={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=K=>{var $;let A=!1,E=!1,U="",O=K.hotAttr.device;if(O==="customize")for(const N of["android","iphone","ipad"]){const L=v.Am[N]||[];for(const V of L){const M=v.v2[V];if(M&&M.height===K.hotAttr.h&&M.width===K.hotAttr.w){O=V;break}}}const H=($=v.v2[O])==null?void 0:$.device;["android","iphone","ipad"].includes(H)&&(A=!0,E=!0,U=H,H==="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)&&(A=!1));let Q;if(A){Q=[];let N;N=C.N.wIphoneXSB(I18N.w.wIphoneXSB),N.h=P[K.hotAttr.device]||44,N.w=K.hotAttr.w,N.x=K.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:K.key,sub:[]};Q.push(L)}if(E){let N=C.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=b[K.hotAttr.device]||21,N.w=K.hotAttr.w,N.x=K.hotAttr.w/2,N.y=K.hotAttr.h-N.h/2;const L={key:(0,c.cF)(),attr:(0,u.Xd)(N),hotAttr:N,sup:K.key,sub:[]};Q.push(L);let V=C.N.wRect(I18N.w.wRect);V={...V,zIndex:8,fixPosTo:"none",fill:{fillIsVisible:!0,fill:"solid",solidColor:255},borderRadius:3,border:{bdrIsVisible:!1,bdrColor:3149642751,bdrWidth:1,bdrStyle:"solid"}},V.h=5,V.w=134,V.x=K.hotAttr.w/2,V.y=N.y;const M={key:(0,c.cF)(),attr:(0,u.Xd)(V),hotAttr:V,sup:K.key,sub:[]};Q.push(M)}return Q},S=(K,$)=>{var A,E;const{model:U,height:O,width:H,attr:Q}=$,N=(0,c.cF)("rbp");(0,l.e_)(K,{key:N,sup:n.$k,attr:(0,l.kh)(I18N.LeftSidePanel.page,1,U,H,O,(A=Q==null?void 0:Q.orientation)!=null?A:"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 K;const V=C.N[s.x.Canvas](I18N.LeftSidePanel.artboard+" 1",5,H/2,O/2,H,O,U),M=(0,o.XR)(V),D=(0,c.cF)("rc");K.push({type:r.UF,key:D,keySup:N}),K.push({type:r.qC,key:D,attrDiff:M});const W=g({hotAttr:V,key:D});if(W!==void 0){for(const F of W)K.push({type:r.UF,key:F.key,keySup:F.sup}),K.push({type:r.qC,key:F.key,attrDiff:F.attr});W.length===1?K.push({type:r.qC,key:D,attrDiff:{shh:(0,d.c5)(W[0].hotAttr.h)}}):K.push({type:r.qC,key:D,attrDiff:{shh:(0,d.c5)(W[0].hotAttr.h),sfh:(0,d.c5)(W[1].hotAttr.h)}})}return K},t=(K,$)=>{if(K.getFlatTree().get("B@main").sub.length===0){const A=S([],$);K.applyDiff(A),K.resetUndo()}},_=K=>{(!K.getFlatTree().get("B@ref-mind")||K.getFlatTree().get("B@ref-mind").sup!==w.gT)&&(K.applyDiff([{type:r.UF,key:n.YZ,keySup:w.gT},{type:r.qC,key:n.YZ,attrDiff:(0,l.GA)("rbRefMind")}]),K.resetUndo())},I=K=>{var $;(!K.getFlatTree().get("B@var")||(($=K.getFlatTree().get("B@var"))==null?void 0:$.sup)!==w.gT)&&(K.applyDiff([{type:r.UF,key:n.fu,keySup:w.gT},{type:r.qC,key:n.fu,attrDiff:(0,l.GA)("rbVar")}]),K.resetUndo())},k=K=>{var $;(!K.getFlatTree().get("B@dict")||(($=K.getFlatTree().get("B@dict"))==null?void 0:$.sup)!==w.gT)&&(K.applyDiff([{type:r.UF,key:n.EM,keySup:w.gT},{type:r.qC,key:n.EM,attrDiff:(0,l.GA)("rbDict")}]),K.resetUndo())},j=K=>{(!K.getFlatTree().get("B@style")||K.getFlatTree().get("B@style").sup!==w.gT)&&(K.applyDiff([{type:r.UF,key:n.nK,keySup:w.gT},{type:r.qC,key:n.nK,attrDiff:(0,l.GA)("rbStyle")}]),K.resetUndo())},z=(K,$)=>{let{cid:A,screens_count:E}=$,U=E;const O=()=>{const H=i(K.getFlatTree());U!==H&&(U=H,fetch("/api/flat/web_v1/proj2-stat-sync?"+new URLSearchParams({prj2Cid:A,countPG:String(H)}),{method:"PUT"}).catch(console.error))};setInterval(O,15*1e3),O()}},49899:function(Fe,ee,e){var n,r,c;(function(o,w){r=[],n=w,c=typeof n=="function"?n.apply(ee,r):n,c!==void 0&&(Fe.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 w(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 y=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=y.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),i=y.saveAs||(typeof window!="object"||window!==y?function(){}:"download"in HTMLAnchorElement.prototype&&!h?function(f,p,s){var l=y.URL||y.webkitURL,C=document.createElement("a");p=p||f.name||"download",C.download=p,C.rel="noopener",typeof f=="string"?(C.href=f,C.origin===location.origin?d(C):u(C.href)?w(f,p,s):d(C,C.target="_blank")):(C.href=l.createObjectURL(f),setTimeout(function(){l.revokeObjectURL(C.href)},4e4),setTimeout(function(){d(C)},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))w(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 w(f,p,s);var C=f.type==="application/octet-stream",v=/constructor/i.test(y.HTMLElement)||y.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||C&&v||h)&&typeof FileReader<"u"){var P=new FileReader;P.onloadend=function(){var S=P.result;S=a?S:S.replace(/^data:[^;]*;/,"data:attachment/file;"),l?l.location.href=S:location=S,l=null},P.readAsDataURL(f)}else{var b=y.URL||y.webkitURL,g=b.createObjectURL(f);l?l.location=g:location.href=g,l=null,setTimeout(function(){b.revokeObjectURL(g)},4e4)}});y.saveAs=i.saveAs=i,Fe.exports=i})},49989:(Fe,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),w=e(83199),u=e(46606),d=e(13172),y=e(72214);class h extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleChange",C=>{if(this.props.disabled||C.currentTarget.classList.contains("disabled"))return;const v=C.currentTarget.dataset.value;this.props.handleChange(v)})}render(){const{options:C,value:v,disabled:a,className:P,isLongTimeHover:b}=this.props;return(0,y.jsx)(u.N,{className:o()("radio-line",P,{disabled:a}),children:C.map((g,S)=>{const{label:t,value:_,compatibleValues:I,disabled:k,tip_title:j,isFree:z}=g;return z?(0,y.jsx)(f,{label:t,value:v,optionValue:_,compatibleValues:I,disabled:k,tip_title:j,handleChange:this.handleChange},_):b?(0,y.jsx)(p,{label:t,value:v,optionValue:_,compatibleValues:I,disabled:k,tip_title:j,handleChange:this.handleChange},_):(0,y.jsx)(i,{label:t,value:v,optionValue:_,compatibleValues:I,disabled:k,tip_title:j,handleChange:this.handleChange},_)})})}}(0,n.A)(h,"defaultProps",{isLongTimeHover:!1});const i=l=>{const{label:C,value:v,optionValue:a,compatibleValues:P,disabled:b,tip_title:g,handleChange:S}=l,t=(0,r.useRef)(null),_=!b&&(P?P.includes(v):v===a),I=k=>{S&&S(k)};return(0,y.jsx)(w.A,{content:g,direction:"down",children:(0,y.jsx)("li",{className:o()("radio-option",{active:_,disabled:b}),"data-value":a,onClick:I,ref:t,children:(0,y.jsx)("div",{className:"radio-content",children:C})},a)})},f=l=>{const{label:C,value:v,optionValue:a,compatibleValues:P,disabled:b,tip_title:g,handleChange:S}=l,t=(0,r.useRef)(null),_=!b&&(P?P.includes(v):v===a),I=k=>{S&&S(k)};return(0,y.jsx)(d.A,{title:g,placement:"bottom",zIndex:1200,children:(0,y.jsx)("li",{className:o()("radio-option",{active:_,disabled:b}),"data-value":a,onClick:I,ref:t,children:(0,y.jsx)("div",{className:"radio-content",children:C})},a)})},p=l=>(0,y.jsx)(w.A,{component:(0,y.jsx)(i,{...l})}),s=l=>(0,y.jsx)(w.A,{component:(0,y.jsx)(h,{...l})})},50001:(Fe,ee,e)=>{"use strict";e.d(ee,{WY:()=>v,ZZ:()=>s});var n=e(99963),r=e(70933),c=e(25997),o=e(60651),w=e(20089),u=e(59323),d=e(45611),y=e(15653),h=e(21856),i=e(14166),f=e(8580);const p=a=>{const{x:P,y:b,h:g,w:S}=n.o.axisAligned((0,f.Oj)(a.key));return{left:Math.round(P),top:Math.round(b),right:Math.round(P+S),bottom:Math.round(b+g),width:Math.round(S),height:Math.round(g)}},s=(a,P)=>{if(P)return P=sdkStore.locUpColdCanvasKey(P),P&&sdkStore.getHotItem(P);{const b=a.map(t=>{let{key:_}=t;return _}),g=(0,u.vR)(b),S=(0,u.zB)(b);if(g&&S.size===1)return[...S.values()][0]}return null},l=a=>{var P;const b=s(a),g=(P=MB.getCurrentScreen())==null?void 0:P.cid;return(b==null?void 0:b.key)||g},C=(a,P,b)=>{var g,S;const t=MB.__store__.getState(),_=(0,c.UV)(t),I=(0,r.$S)(t),k=(0,r.ER)(t),j=(0,r.X_)(t),z={scale:j/100,size:{w:I.width,h:I.height},offset:k},K=b||l(P),$=K===((g=MB.getCurrentScreen())==null?void 0:g.cid),A=a&&$,E=new Set(P.map(W=>W.key)),U=_.getHotItem(K),O=[];if(!U)return[];const H=[];P.forEach(W=>{W.hotAttr.type===w.x.WWrap&&H.push(W.key)});const Q=_.getRenderableSubHotItems(U),N=W=>W.hotAttr.isVisible&&W.hotAttr.opacity!==0;Q.forEach(W=>{if(H.includes(W.key))return;const F=(0,d.l8)(W,A,N);O.push(...F)}),P.length===1&&((S=P[0])==null?void 0:S.hotAttr.type)===w.x.Canvas&&_.getHotItem(P[0].key)&&_.getRenderableSubHotItems(U).forEach(B=>{const Y=(0,d.l8)(B);O.push(...Y)}),U.hotAttr.bunch!==w.x.RbPage&&O.push(U);const V=(0,h.WO)(z,I.left),M=[];O.forEach(W=>{const{key:F,hotAttr:{type:B}}=W;if(B!==w.x.WWrap&&!E.has(F)&&N(W)){const Y=sdkStore.getHotAABB(F);if(!(0,i.cj)(V,Y))return;const G=p(W);M.push(G)}});const D=(0,o.jI)(t)||(0,o.bt)(t);if(D){const W=[];let F=[];$?F=Q.filter(B=>B.hotAttr.type===w.x.Canvas):F=[U],F.forEach(B=>{const Y=sdkStore.getHotAABB(B.key);if(!(0,i.cj)(V,Y))return;const G=(0,y.lG)({node:B,basketKey:D,scale:j});W.push(G)}),M.push(...W)}return M},v=(a,P,b)=>C(a,P,b)},50320:(Fe,ee,e)=>{"use strict";e.d(ee,{B:()=>C,O:()=>l});var n=e(38502),r=e(53732),c=e.n(r),o=e(99566),w=e(16913),u=e(88981),d=e(17307),y=e(67787);const h=y.Ay.div.withConfig({displayName:"styles__StyledInputEventCategory",componentId:"sc-5tkqb7-0"})(["padding:0px 16px;"]),i=y.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:",";}}"],v=>v.theme.color_text_L0,v=>v.theme.color_btn_secondary_hover,v=>v.theme.color_text_L1);var f=e(33515),p=e(72214);const s=["focus","blur","focusEnter"],l=v=>{switch(v){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""}},C=v=>{let{tNodeTrigger:a,onChangeTrigger:P}=v;const b=n.useRef(null),g=(0,o.lF)(a,!0)[1],S=l(g)||I18N.SettingPanel.please_select,t=_=>{var I;P({interactionTrigger:u.O.InputEvent,event:_}),(I=b.current)!=null&&I.state.isMenuShow&&b.current.setState({isMenuShow:!1})};return(0,p.jsx)(h,{children:(0,p.jsx)(w.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:(_,I)=>{var k;return((k=I.querySelector(".select-title"))==null?void 0:k.scrollWidth)>80}}),renderMenu:(0,p.jsx)(i,{children:s.map(_=>{const I=_===g;return(0,p.jsxs)("li",{role:"option",className:c()("input-event-menu-item",{"is-active":I}),onClick:()=>t(_),children:[I&&(0,p.jsx)(d.C,{name:"common/checked",className:"input-event-checked-icon"}),(0,p.jsx)("span",{children:l(_)})]},_)})})})})})}},50521:(Fe,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),w=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),y=e(72214);const h=f=>{let{pointerEvents:p,icon:s,content:l,className:C="",tipsClassName:v="",disabled:a,onClick:P,dataValue:b,direction:g="down"}=f;const S=j=>{P&&P(j)},t=()=>null,_=d()(C,{disabled:a}),k={down:"bottom",up:"top",left:"left",right:"right"}[g];return(0,y.jsx)(r.A,{pointerEvents:p,tipClassName:v,content:l,direction:k,children:(0,y.jsx)(o,{"data-value":b,className:_,disabled:a,onClick:a?t:S,children:s})})},i=f=>(0,y.jsx)(r.A,{component:(0,y.jsx)(h,{...f})})},51007:(Fe,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;}}}'],w=>w.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;}}}"],w=>w.theme.color_btn_secondary_hover,w=>w.theme.color_text_L2)},51306:(Fe,ee,e)=>{"use strict";e.d(ee,{P:()=>v,m:()=>P});var n=e(95549),r=e(38502),c=e(15515),o=e(71190),w=e(59189),u=e(39695),d=e(20089),y=e(60651),h=e(82694),i=e(76613),f=e(70812),p=e(79388),s=e(72214);const l="state",C="mp_"+l,v="ANI_ITA_CREATED_BY_ANI_PANEL",a=["children"];class P extends r.Component{constructor(){super(...arguments),(0,n.A)(this,"state",{show:(0,c.Yt)(C,!0,c.qW.Boolean)}),(0,n.A)(this,"handleChange",()=>{const{show:g}=this.state;(0,c.a0)(C,!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:_}=g,I=_.animation;if(!I)return;let k,j;I.aniName&&I.aniName!=="none"?(k=(0,p.Ck)(I),j=[{key:t,hotAttr:{animation:{...I,aniName:"none"},interactions:[..._.interactions||[],k]}}]):(k={...(0,u.nF)(),interactionTrigger:"timer",timerDuration:"",targetWidgetKey:i.rE},j=[{key:t,hotAttr:{interactions:[..._.interactions||[],k]}}]),S({type:"entry:widget:change",payload:{flatChgList:j}}),f.U4.updateInteractionTrack({type:"\u65B0\u589E",interactionTrigger:"timer",interactionType:u.O2.SetAnimation});const z=(0,y.lY)(MB.__store__.getState()),$=(_.type===d.x.Canvas?(0,h.xV)(z):(0,h.HA)(z)).findIndex(A=>A.label===I18N.Interaction.new_name&&!A.disabled);if($!==-1){S({type:"settings:set:autoTabIndex",payload:{autoTabIndex:null}}),S({type:"settings:set:activeIndex",payload:{activeIndex:$}}),(0,c.cH)(v,k.key);const A=setTimeout(()=>{var E;(E=document.querySelector("#interaction-tree-list .interaction-trigger-node div[data-key="+k.key+"]"))==null||E.click(),clearTimeout(A)},200)}})}shouldComponentUpdate(g,S,t){return this.props.isDraggingItem?!g.isDraggingItem:(0,w.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:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>j0,g:()=>Id});var n=e(18381),r=e(12211),c=e(70933),o=e(99587),w=e(60651),u=e(81973),d=e(4235),y=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 C=e(50521),v=e(62118),a=e(83199),P=e(56202),b=e(17307),g=e(59025),S=e(88944),t=e(72214);class _ extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"_handleAlign",x=>{this.props.dispatch({type:"entry:align:items",payload:{direction:x}}),(0,S.W0)({operationType:S.MO[x]})}),(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",x=>{this.props.dispatch({type:"entry:distribute:items",payload:{direction:x}})}),(0,i.A)(this,"handleHorizontalDistribute",()=>{this._handleDistribute("horizontal")}),(0,i.A)(this,"handleVerticalDistribute",()=>{this._handleDistribute("vertical")}),(0,i.A)(this,"handleGetContent",(x,T)=>{const R=v.lk[T+"_mac"],q=v.lk[T+"_win"];return(0,a.u)({text:x,key:(0,P.cX)()?R:q})}),(0,i.A)(this,"handleRenderIcon",x=>(0,t.jsx)(b.C,{name:x})),(0,i.A)(this,"handleGetTipsClassName",x=>p()("arrangeTips",(0,P.cX)()?"mac":"windows",x))}render(){const{canAlign:x,canDistribute:T}=this.props;return(0,t.jsxs)(l,{children:[(0,t.jsx)(C.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)(C.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)(C.Q,{icon:this.handleRenderIcon("setting_panel/arrange/align_left"),content:this.handleGetContent(I18N.SettingPanel.hleft,"align_left"),tipsClassName:this.handleGetTipsClassName("align_left"),disabled:!x,onClick:this.handleAlignLeft}),(0,t.jsx)(C.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:!x,onClick:this.handleAlignCenter}),(0,t.jsx)(C.Q,{icon:this.handleRenderIcon("setting_panel/arrange/align_right"),content:this.handleGetContent(I18N.SettingPanel.hright,"align_right"),tipsClassName:this.handleGetTipsClassName("align_right"),disabled:!x,onClick:this.handleAlignRight}),(0,t.jsx)(C.Q,{icon:this.handleRenderIcon("setting_panel/arrange/align_top"),content:this.handleGetContent(I18N.SettingPanel.vtop,"align_top"),tipsClassName:this.handleGetTipsClassName("align_top"),disabled:!x,onClick:this.handleAlignTop}),(0,t.jsx)(C.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:!x,onClick:this.handleAlignMiddle}),(0,t.jsx)(C.Q,{icon:this.handleRenderIcon("setting_panel/arrange/align_bottom"),content:this.handleGetContent(I18N.SettingPanel.vbottom,"align_bottom"),tipsClassName:this.handleGetTipsClassName("align_bottom"),disabled:!x,onClick:this.handleAlignBottom})]})}}const I=(0,r.Mz)([d.p$,w.lY],(m,x)=>{var T;const R=m.length>0&&((T=sdkStore.getHotItem(m[0]))==null?void 0:T.hotAttr.isLocked),q=!R&&!x&&(0,g.GS)(m),se=!R&&!x&&(0,g.oR)(m);return{canAlign:q,canDistribute:se}}),k=(0,n.Ng)(m=>I(m))(_),j=240,z=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;}"],j,j,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 K=e(77698),$=e(40988),A=e(20089),E=e(19013),U=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 H=e(69874),Q=e(23108),N=e(78661),L=e(21066),V=e(18250),M=e.n(V),D=e(5209),W=e(8452),F=e(73658),B=e(59189);const Y=["dispatch","isLocked","canVisible","canLocked","isVisible","layerName","canShowOverridesMenu","keySelection","canEditVector","vectorEditor","targetKey","type"];var X=e(51090),G=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(x=>!(0,F.yT)(sdkStore.getHotItem(x).hotAttr.type));class te extends h.Component{constructor(x){super(x),(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(Ke=>({key:Ke,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:M()(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,ge=sdkStore.getHotItem(q).hotAttr,Ne=(T=sdkStore.getHotItem(ge==null?void 0:ge.refRBPageKey))==null?void 0:T.hotAttr.w,Ke=(R=sdkStore.getHotItem(ge==null?void 0:ge.refRBPageKey))==null?void 0:R.hotAttr.h;se({type:"entry:items:set:width",payload:{width:Ne}}),se({type:"entry:items:set:height",payload:{height:Ke}})}),(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,ge;const Ne=sdkStore.getHotItem(T).hotAttr,Ke=((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,it=((se=sdkStore.getHotItem(Ne==null?void 0:Ne.refRBPageKey))==null||(se=se.hotAttr)==null?void 0:se.defaultCanvasKey)===Ne.refContentKey,dt=((ge=sdkStore.getHotItem(Ne==null?void 0:Ne.refRBPageKey))==null||(ge=ge.hotAttr)==null?void 0:ge.scroll)===Ne.scroll,jt=(0,g.K4)([T]),Ot=(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:!jt}),(0,t.jsx)(L.Dr,{text:I18N.ContextMenu.sync_to_muban,onClick:this.handleSyncMuban,disabled:!Ot||!sdkStore.hasOwa(T)}),(0,t.jsx)(L.Dr,{text:I18N.ContextMenu.edit_muban,onClick:this.handleEditMuban,disbaled:!Ot}),(0,t.jsx)(G.cG,{}),(0,t.jsx)(L.Dr,{text:I18N.ContextMenu.reset_to_muban,onClick:this.handleResetToMuban,disabled:!sdkStore.hasOwa(T)}),!Ke&&(0,t.jsx)(L.Dr,{text:I18N.ContextMenu.reset_to_muban_size,onClick:this.handleResetSize,disabled:Ke}),!it&&(0,t.jsx)(L.Dr,{text:I18N.ContextMenu.reset_to_muban_state,onClick:this.handleResetState,disabled:it}),!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===A.x.WVector?null:W.dZ.TransformSettingPanel}})}),this.state={isEditing:!1,isOpenMenu:!1,position:{left:0,top:0}}}shouldComponentUpdate(x,T,R){return(0,B.N)(Y).call(this,x,T)}render(){const{isEditing:x,isOpenMenu:T,position:R}=this.state,{type:q,targetKey:se,layerName:ge,isVisible:Ne,isLocked:Ke,canLocked:it,canVisible:dt,canShowOverridesMenu:jt,canEditVector:Ot,vectorEditor:qt,keySelection:sn}=this.props,Wn=J(sn);return(0,t.jsxs)(Z,{className:"layer-info",children:[(0,t.jsx)("div",{className:p()("layer-size",{isLayerHover:!x,layerState:x}),onClick:this.handleEdit,children:(0,t.jsx)(H.A,{value:ge,className:"layer-name",isEditing:x,onConfirm:this.handleLayerName},ge)}),!x&&(0,t.jsxs)("div",{className:"actions",children:[jt&&(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)(he,{position:R,onClose:()=>this.handleToggleIsOpenMenu(!1),children:this.getWidgetMenuList(se)})]}),Ot&&(Wn==null?void 0:Wn.length)===1&&!jt&&(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:Ke},{"icon-disabled":!it}),onClick:it?this.handleToggleLocked:null,name:"common/"+(Ke?"lock":"unlock"),content:Ke?I18N.ContextMenu.unlock:I18N.SettingPanel.lock_widget_tip,hotKeyText:N.V.lock,direction:"down",tagName:"SVGIcon"})]})]})}}const he=(0,s.Ay)(L.Ay).withConfig({displayName:"indexui__StyledMenuContent",componentId:"sc-63g9re-0"})(["",";"],X.ZJ);var de=e(79150),Se=e(25234),xe=e(70248),be=e(60589),ie=e(8614),oe=e(20459),ue=e(93971);const ve=m=>{let{selections:x}=m;const T=(0,n.wA)(),R=(0,h.useMemo)(()=>{const ge=x.map(Ne=>sdkStore.getHotItem(Ne));return(0,g.mO)(ge)},[x]),q=async()=>{var ge,Ne;const Ke=((ge=MB)==null||(ge=ge.__store__)==null||(ge=ge.getState())==null?void 0:ge.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,ue.XG)("\u53F3\u4FA7\u6DFB\u52A0\u7EC4\u4EF6\u72B6\u6001",Ke,x||[])},se=async()=>{var ge,Ne;x.length===1&&((ge=sdkStore.getHotItem(x[0]))==null?void 0:ge.hotAttr.type)==="wBasket"&&((Ne=sdkStore.getHotItem(x[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)(Se.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 we=e(37342);class Te extends h.PureComponent{constructor(x){super(x),(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,ge=(T=sdkStore.getHotItem(se))==null?void 0:T.hotAttr,Ne=sdkStore.getHotItem(ge==null?void 0:ge.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:ge}=this.state,Ne=ge[0].key,Ke=(T=sdkStore.getHotItem(Ne))==null?void 0:T.hotAttr,it=(R=sdkStore.getHotItem(Ke==null?void 0:Ke.refRBPageKey))==null||(R=R.hotAttr)==null?void 0:R.w,dt=(q=sdkStore.getHotItem(Ke==null?void 0:Ke.refRBPageKey))==null||(q=q.hotAttr)==null?void 0:q.h;se({type:"entry:items:set:width",payload:{width:it}}),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,ge=se[0].key,Ne=(T=sdkStore.getHotItem(ge))==null?void 0:T.hotAttr,Ke=(R=sdkStore.getHotItem(Ne.refRBPageKey))==null||(R=R.hotAttr)==null?void 0:R.defaultCanvasKey;q({type:"entry:widget:change",payload:{flatChgList:[{key:ge,hotAttr:{refContentKey:Ke}}]}})}),(0,i.A)(this,"handleResetScroll",()=>{var T,R;const{dispatch:q}=this.props,{selectedItems:se}=this.state,ge=se[0].key,Ne=(T=sdkStore.getHotItem(ge))==null?void 0:T.hotAttr,Ke=(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:ge,hotAttr:{scroll:Ke}}]}})}),(0,i.A)(this,"handleCreateWidget",async()=>{var T,R;const{dispatch:q,selections:se}=this.props,ge=((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,ue.XG)("\u53F3\u4FA7\u6DFB\u52A0\u7EC4\u4EF6\u72B6\u6001",ge,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(it=>{var dt;return!((dt=sdkStore.getHotItem(it.hotAttr.refRBPageKey))!=null&&(dt=dt.hotAttr)!=null&&dt.libKey)}),q=T[0].key;if(R){var se,ge,Ne,Ke;const it=sdkStore.getHotItem(q).hotAttr,dt=((se=sdkStore.getHotItem(it==null?void 0:it.refRBPageKey))==null||(se=se.hotAttr)==null?void 0:se.w)===it.w&&((ge=sdkStore.getHotItem(it==null?void 0:it.refRBPageKey))==null?void 0:ge.hotAttr.h)===it.h,jt=((Ne=sdkStore.getHotItem(it==null?void 0:it.refRBPageKey))==null||(Ne=Ne.hotAttr)==null?void 0:Ne.defaultCanvasKey)===it.refContentKey,Ot=((Ke=sdkStore.getHotItem(it==null?void 0:it.refRBPageKey))==null||(Ke=Ke.hotAttr)==null?void 0:Ke.scroll)===it.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)(b.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)(b.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)(b.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)(b.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)(b.C,{name:"setting_panel/muban/reset_to_muban_size",size:16}),onClick:this.handleResetSize,disabled:dt}),!jt&&(0,t.jsx)(L.Dr,{text:I18N.ContextMenu.reset_to_muban_state,icon:(0,t.jsx)(b.C,{name:"setting_panel/muban/reset_to_muban_state",size:16}),onClick:this.handleResetState,disabled:jt}),!Ot&&(0,t.jsx)(L.Dr,{text:I18N.ContextMenu.reset_to_muban_scroll,icon:(0,t.jsx)(b.C,{name:"setting_panel/muban/reset_to_muban_scroll",size:16}),onClick:this.handleResetScroll,disabled:Ot}),(0,t.jsx)(G.cG,{})]})}else return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(L.Dr,{text:I18N.ContextMenu.reset_to_muban,icon:(0,t.jsx)(b.C,{name:"setting_panel/muban/reset_to_muban",className:"reset_to_muban",size:16}),onClick:this.handleResetToMuban,disabled:!sdkStore.hasOwa(q)}),(0,t.jsx)(G.cG,{})]})}),(0,i.A)(this,"handleGoToProjectDesign",T=>{var R,q;if(!T)return;const{selectedItems:se,currentRefPage:ge}=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,we.JW)("/com24/details/"+Ne);return}const Ke=se[0];Ne&&(0,we.JW)("/proto/design/"+Ne+"?basket_cid="+((ge==null?void 0:ge.key)||(Ke==null||(q=Ke.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:ge,height:Ne,right:Ke}=T.target.getBoundingClientRect(),it={left:se>=260?Math.max(se-260>>0,0):Ke+20,top:Math.max(ge+Ne/2-340>>0,56)};R({type:"modal:update:state",payload:{libPanelModal:{isOpen:!0,type:"muban",position:it,onSuccessCallBack:this.handleChangeSuccess}}})}}),this.state={selectedItems:x.selections.map(T=>sdkStore.getHotItem(T)),isMultiple:x.selections.length>1,isOpenMenu:!1,currentRefPage:null,currentLibKey:"",position:{left:0,top:0}}}componentDidUpdate(x,T,R){x.selections!==this.props.selections&&this.setState({selectedItems:this.props.selections.map(q=>sdkStore.getHotItem(q)),isMultiple:this.props.selections.length>1})}render(){var x,T,R,q;const{editingBasketRefPage:se,selections:ge,dispatch:Ne,teamLibList:Ke}=this.props,{selectedItems:it,isMultiple:dt,isOpenMenu:jt,position:Ot,currentRefPage:qt,currentLibKey:sn}=this.state,Wn=it[0],kn=qt||sdkStore.getHotItem(Wn==null||(x=Wn.hotAttr)==null?void 0:x.refRBPageKey),lo=sn||(kn==null||(T=kn.hotAttr)==null?void 0:T.libKey),Wo=ge.every(ns=>{var qo;return((qo=sdkStore.getHotItem(ns))==null?void 0:qo.hotAttr.refRBPageKey)===(kn==null?void 0:kn.key)}),Zo=it.every(ns=>!(0,xe.OO)(ns.key)),Yo=Wn.hotAttr.isLock,is=Wn.hotAttr.isVisible,os=(0,g.K4)([Wn==null?void 0:Wn.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})||Ke.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?kn==null||(R=kn.hotAttr)==null?void 0:R.name:"\u591A\u9009\u7EC4\u4EF6"}),(0,t.jsx)(b.C,{name:"common/expand@26",size:26,className:"expand-icon"})]}),(0,t.jsx)(de.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)(b.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)(Se.jf,{type:"secondary",size:"tiny",corner:"smooth",disabled:!os,onClick:this.handleDetachMuban,children:"\u8131\u79BB\u6BCD\u7248"}),(0,t.jsx)(ve,{selections:ge})]}),!dt&&(0,t.jsx)(oe._,{panel:it[0],editingBasketRefPage:se,className:"height-40",dispatch:Ne}),jt&&(0,t.jsxs)(fe,{position:Ot,onClose:this.handleCloseMenu,children:[this.getMubanMenuList(),(0,t.jsx)(L.Dr,{text:Yo?I18N.ContextMenu.unlock:I18N.ContextMenu.lock_widget,icon:(0,t.jsx)(b.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)(b.C,{name:"setting_panel/muban/"+(is?"visible":"invisible"),size:16}),onClick:this.handleToggleVisible})]})]})}}const Ie=(0,r.Mz)([w.bt,be.FK,ie.TP],(m,x,T)=>({editingBasketRefPage:m,isOpenLibPanelModal:x.isOpen,teamLibList:T})),le=(0,n.Ng)(m=>Ie(m))(Te);var me=e(61790);class Pe extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleCreateWidget",async()=>{var x,T;const{dispatch:R,selections:q}=this.props,se=((x=MB)==null||(x=x.__store__)==null||(x=x.getState())==null?void 0:x.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,ue.XG)("\u53F3\u4FA7\u6DFB\u52A0\u7EC4\u4EF6\u72B6\u6001",se,q||[])}),(0,i.A)(this,"onCreateWidgetState",async()=>{var x,T;const{dispatch:R,selections:q}=this.props;q.length===1&&((x=sdkStore.getHotItem(q[0]))==null?void 0:x.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 x=>{var T;if(x.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,ge=(se==null?void 0:se.name)||(0,me.KD)(q[0]);R({type:"modal:update:state",payload:{masterCreateModal:{isOpen:!0,name:ge,onConfirm:async Ne=>{let{name:Ke,onSuccess:it}=Ne;R({type:"entry:create:basket",payload:{basketType:"bMuban",attr:{name:Ke},onSuccess:it,isCreateFolder:!0}})}}}})}),(0,i.A)(this,"handleDetachBasket",()=>{MB.global.experienceLoginModalHelper("isSave")||this.props.dispatch({type:"entry:detach:basket"})})}render(){const{canCreateWidgetState:x,selections:T,editingBasketRefPage:R,isEditingCombo:q,dispatch:se}=this.props,ge=T.every(Ke=>{var it;const dt=(it=sdkStore.getHotItem(Ke))==null?void 0:it.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:[x&&(0,t.jsxs)("div",{className:"actions-button",children:[(0,t.jsx)(Se.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)(Se.jf,{type:"secondary",size:"tiny",corner:"smooth",className:"state-button",onClick:ge?this.handleDetachBasket:this.onCreateWidgetState,children:(0,t.jsx)("p",{children:ge?"\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 pe=(0,r.Mz)([w.bt,w.oO],(m,x)=>({editingBasketRefPage:m,isEditingCombo:x})),ke=(0,n.Ng)(m=>pe(m))(Pe),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 Ee=e(5649),Ae=e(30523),Ce=e(20166);const _e=(0,t.jsx)(b.C,{className:"design-rotate",name:"setting_panel/general/rotate"}),Ge=[A.x.WArrow,A.x.WLine];class Xe extends h.PureComponent{constructor(x){super(x),(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===A.x.Canvas&&(0,Ce.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===A.x.Canvas&&(0,Ce.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(x,T){if(x.selections!==T.prevSelections){const q={canRotate:(0,g.QH)(x.selections),isSelectItemsInMuban:(0,g.td)(x.selections),prevSelections:x.selections};if(x.selections.length>1){let se=!1,ge=!1;for(const Ne of x.selections.slice(1)){var R;const it=sdkStore.getHotItem(Ne).hotAttr.type===A.x.Canvas?null:sdkStore.locUpColdCanvasKey(Ne),dt=(R=MB.getCurrentScreen())==null?void 0:R.cid,{x:jt,y:Ot,w:qt,h:sn}=sdkStore.getRelocateLocalBound(Ne,it||dt);!se&&x.left!==jt-qt/2&&(se=!0),!ge&&x.top!==Ot-sn/2&&(ge=!0)}return{...q,isShowMultipleLeft:se,isShowMultipleTop:ge}}return{...q,isShowMultipleLeft:!1,isShowMultipleTop:!1}}return null}render(){const{top:x,left:T,canX:R,canY:q,hasRotate:se=!0,ro:ge,selections:Ne,type:Ke,refVars:it}=this.props,{canRotate:dt,isSelectItemsInMuban:jt,isShowMultipleLeft:Ot,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)(Ee.A,{className:"general-input step-input-width-72",title:"X",attr:"left",value:Ot?void 0:T,disabled:!R||jt,min:-99999,max:99999,placeholder:sn,isNotVerify:Ot,onConfirm:this.handleLeft}),(0,t.jsx)(Ee.A,{className:"general-input step-input-width-72",title:"Y",attr:"top",value:qt?void 0:x,disabled:!q||jt,min:-99999,max:99999,isNotVerify:qt,placeholder:sn,onConfirm:this.handleTop}),se&&(!0?(0,t.jsx)(Ee.s,{className:"general-input screen-rotate-input-number step-input-width-72",disabled:!dt||jt,title:_e,attr:"ro",suffix:"\xB0",min:-360,max:360,value:ge,withToolTip:!0,toolTipContent:I18N.SettingPanel.rotate,direction:"down",onConfirm:kn=>this.handleRotate(kn)}):(0,t.jsx)(Ae.Yw,{type:"number",inputClassName:"general-input screen-rotate-input-number step-input-width-72",isLongTimeHoverForInput:!0,disabled:!dt||jt,title:_e,attr:"ro",suffix:"\xB0",min:-360,max:360,value:ge,refVar:it==null?void 0:it.r,withToolTip:!0,toolTipContent:I18N.SettingPanel.rotate,direction:"down",onConfirm:this.handleRotate}))]})})}}const Ue=["dispatch","isShowMultipleWidth","isShowMultipleHeight","placeholder","canW","width","minWidth","canH","height","minHeight","canAspectRatio","isLockAspect","type","isSelectItemsInMuban","isSelectItemsAllMind","selections","isLine","disableAspectRatio","disableRefVar","refVars"];class pt extends h.Component{constructor(){super(...arguments),(0,i.A)(this,"handleWidth",(x,T)=>{const{minWidth:R,type:q,isLine:se,dispatch:ge}=this.props;if(typeof x!="number")return;const Ne=x>R?x:R;if(se){const Ke=parseInt(String(Ne))||0;ge({type:"entry:set:line:length",payload:{value:Ke,refVar:T}})}else ge({type:"entry:items:set:width",payload:{width:Ne,refVar:T}});ge({type:"entry:auto:show:hide:item"}),q===A.x.Canvas&&(0,Ce.A9)({attr:"w"})}),(0,i.A)(this,"handleHeight",(x,T)=>{const{minHeight:R,type:q,dispatch:se}=this.props;if(typeof x!="number")return;const ge=x>R?x:R;se({type:"entry:items:set:height",payload:{height:ge,refVar:T}}),se({type:"entry:auto:show:hide:item"}),q===A.x.Canvas&&(0,Ce.A9)({attr:"h"})}),(0,i.A)(this,"handleChangeAspectRatio",()=>{const{canAspectRatio:x,isLockAspect:T,dispatch:R,selections:q}=this.props;if(!x)return;const se=q.map(ge=>({key:ge,hotAttr:{isLockAspect:!T}}));R({type:"entry:widget:change",payload:{flatChgList:se}})})}shouldComponentUpdate(x,T){return(0,B.N)(Ue).call(this,x,T)}render(){const{isShowMultipleWidth:x,isShowMultipleHeight:T,placeholder:R,disableRefVar:q,canW:se,width:ge,minWidth:Ne,canH:Ke,height:it,minHeight:dt,disableAspectRatio:jt,canAspectRatio:Ot,isLockAspect:qt,isSelectItemsInMuban:sn,isSelectItemsAllMind:Wn,refVars:kn}=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)(Ee.A,{className:"general-input step-input-width-72",title:"W",attr:"width",value:x?void 0:ge,isNotVerify:x,disabled:!se||sn||Wn,min:Ne,max:99999,placeholder:R,onConfirm:lo=>this.handleWidth(lo)}),(0,t.jsx)(Ee.A,{className:"general-input step-input-width-72",title:"H",attr:"height",value:T?void 0:it,isNotVerify:T,disabled:!Ke||sn||Wn,min:dt,max:99999,placeholder:R,onConfirm:lo=>this.handleHeight(lo)})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Ae.Yw,{type:"number",className:"step-input-width-72",inputClassName:"general-input",title:"W",value:x?void 0:qt&&kn!=null&&kn.h?ge:Math.round(ge),refVar:kn==null?void 0:kn.w,isNotVerify:x,disabled:!se||sn||Wn,min:Ne,max:99999,placeholder:R,onConfirm:this.handleWidth}),(0,t.jsx)(Ae.Yw,{type:"number",className:"step-input-width-72",inputClassName:"general-input",title:"H",value:T?void 0:qt&&kn!=null&&kn.w?it:Math.round(it),refVar:kn==null?void 0:kn.h,isNotVerify:T,disabled:!Ke||sn||Wn,min:dt,max:99999,placeholder:R,onConfirm:this.handleHeight})]}),(0,t.jsx)(C.Q,{className:p()("aspectRatioButton",{disabled:!Ot,locked:qt,unLocked:!qt}),icon:(0,t.jsx)(b.C,{name:qt?"setting_panel/aspectRatio/lock":"setting_panel/aspectRatio/unlock"}),onClick:this.handleChangeAspectRatio,content:I18N.SettingPanel.lock_ratio,direction:"down",disabled:sn||Wn||jt||(kn==null?void 0:kn.w)&&(kn==null?void 0:kn.h)})]})}}(0,i.A)(pt,"defaultProps",{minWidth:1,minHeight:1});var Ye=e(40860);class Qe extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleChangeTableType",x=>{const{dispatch:T}=this.props,{index:R}=x.currentTarget.dataset;T({type:"entry:set:table:style:type",payload:{type:Number(R)}})})}render(){const{styleType:x}=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:Ye.hG.map((T,R)=>(0,t.jsx)("div",{"data-index":R,className:p()({tableStyleItem:"tableStyleItem",active:(x||0)===R}),onClick:this.handleChangeTableType,children:(0,t.jsx)(b.C,{className:"tableStyleItem-"+T,name:"setting_panel/table/"+T})},T))})]})}}var lt=e(87765),tt=e(27879),qe=e(64972);class et extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleSmartSelectionGapChange",(x,T)=>{const{dispatch:R}=this.props;R({type:"entry:smart-selection:updating:gap",payload:{[T]:x,shouldItemsUpdate:!0}}),R({type:"entry:select:smartly"})}),(0,i.A)(this,"handleSmartSelectionGapResizeMove",()=>{const{dispatch:x}=this.props;x(qe.UU.update({isResizingGap:!0}))}),(0,i.A)(this,"handleSmartSelectionGapResizeEnd",()=>{const{dispatch:x}=this.props;x(qe.UU.update({isResizingGap:!1}))})}render(){const{isSmartSelectionActive:x,colGap:T,minColGap:R,rowGap:q,minRowGap:se}=this.props;return x?(0,t.jsxs)("div",{className:"general-line height-32",children:[(0,t.jsx)(Ee.s,{className:"general-input col-gap step-input-width-72",title:(0,t.jsx)(b.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)(Ee.s,{className:"general-input row-gap step-input-width-72",title:(0,t.jsx)(b.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 st=(0,r.Mz)([lt.$],m=>{const{minItemMargin:x,minLineSpace:T}=(0,tt.no)(m.rowStates);return{rowGap:m.rowGap,minRowGap:T,colGap:m.colGap,minColGap:x,isSmartSelectionActive:m.isActive}}),at=(0,n.Ng)(m=>st(m))(et),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 rt extends h.PureComponent{render(){return(0,t.jsx)(ct,{className:"general-panel",children:this.props.children})}}var At=e(43605),ot=e(31569),Tt=e(5379),ft=e(33421),Nt=e(99917),Bt=e(9680),zt=e(90317);const Xt={[O.LayerInfoPanel]:{[E.m9]:m=>{var x;let{selectedItems:T,selections:R}=m;const q=T.length>1?T.find(it=>it.hotAttr.type===A.x.Canvas)?T.every(it=>it.hotAttr.type===A.x.Canvas)?I18N.SettingPanel.multi_select_artboards:I18N.SettingPanel.multi_select_artboards_widgets:I18N.SettingPanel.multi_select:(0,me.KD)(R[0]),se=!!(0,ot.i)(T,"isVisible"),ge=!!(0,ot.i)(T,"isLock"),Ne=(0,g.td)(R)||(0,g.bp)(T),Ke=sdkStore.getHotItem(R[0]);return{layerName:q,isLocked:ge,isVisible:se,canShowOverridesMenu:Ne,keySelection:R,targetKey:Ke==null?void 0:Ke.key,type:Ke==null||(x=Ke.hotAttr)==null?void 0:x.type}}},[O.WidgetStatePanel]:{[E.m9]:m=>{let{selectedItems:x}=m;return{canCreateWidgetState:(0,g.mO)(x),selectedItems:x}}},[O.PositionInfoPanel]:{[E.m9]:m=>{var x;let{selectedItems:T}=m;const{key:R,hotAttr:{type:q}}=T[0];if(sdkStore.isTrashed(R))return{};const se=q===A.x.Canvas?null:sdkStore.locUpColdCanvasKey(R),ge=(x=MB.getCurrentScreen())==null?void 0:x.cid,{x:Ne,y:Ke,r:it,w:dt,h:jt}=sdkStore.getRelocateLocalBound(R,se||ge);return{top:Ke-jt/2,left:Ne-dt/2,ro:it}},[A.x.WLine]:m=>{let{selectedItems:x}=m;const{w:T,h:R}=x[0].hotAttr,{linePointFrom:q,linePointTo:se}=(0,ot.i)(x,"line"),ge=[[q.x,q.y],[se.x,se.y]];return{ro:Math.round((0,At.W8)(T,R,ge))%360||0}},[A.x.WArrow]:m=>{let{selectedItems:x}=m;const{w:T,h:R}=x[0].hotAttr,{arrowPointFrom:q,arrowPointTo:se}=(0,ot.i)(x,"arrow"),ge=[[q.x,q.y],[se.x,se.y]];return{ro:Math.round((0,At.W8)(T,R,ge))%360||0}},[A.x.WWrap]:m=>{let{selectedItems:x}=m;const{key:T}=x[0],R=sdkStore.locUpColdCanvasKey(T)||sdkStore.locUpRBPageKey(T);if(!R)return{top:0,left:0};const{x:q,y:se,w:ge,h:Ne}=sdkStore.getRelocateLocalBound(T,R);return{top:se-Ne/2,left:q-ge/2}},[A.x.WElbow]:m=>{let{selectedItems:x}=m;const R=x.find(q=>{const{hotAttr:{refFromKey:se,refToKey:ge}}=q,{isRefFromExist:Ne,isRefToExist:Ke}=(0,Tt.v)(q.key,se,ge);return!(Ne||Ke)})!==void 0;return{canX:R,canY:R,hasRotate:!0,canRotate:!1}}},[O.SizeInfoPanel]:{[E.m9]:m=>{let{selectedItems:x,selections:T,hasMissFontHi:R,imageProps:{currentImageOperateType:q}}=m,se=!1,ge=!1;const Ne=x.length>1,Ke=(0,ot.i)(x,"isLockAspect"),{key:it,hotAttr:dt}=x[0],jt=dt.type,{w:Ot,h:qt}=sdkStore.getLocalBound(it),sn=A.x.WElbow===jt?!1:ft.u3.includes(jt)?!0:!R,Wn=[A.x.WElbow,A.x.WQRCode].includes(jt)||q===Nt.bl.cutting?!1:!R;Ne&&x.forEach(Wo=>{let{hotAttr:{w:Zo,h:Yo}}=Wo;Ot!==Zo&&(se=!0),qt!==Yo&&(ge=!0)});let kn=1,lo=1;if(jt===A.x.WButton){const{w:Wo,h:Zo}=(0,zt.mu)(x[0]);kn=Wo,lo=Zo}return{isLockAspect:Ke,isShowMultipleWidth:se,isShowMultipleHeight:ge,placeholder:Ne?I18N.SettingPanel.multiple_value:"",width:Ot,height:qt,isSelectItemsInMuban:(0,g.td)(T),disableAspectRatio:x.every(Wo=>Wo.hotAttr.type===A.x.WGraph),isSelectItemsAllMind:x.every(Wo=>Wo.hotAttr.type===A.x.WMind),selections:T,canW:sn,canH:sn,canAspectRatio:Wn,disableRefVar:x.some(Wo=>[A.x.Canvas,A.x.WWrap].includes(Wo.hotAttr.type)),refVars:{w:(0,Bt.xj)(x,"w"),h:(0,Bt.xj)(x,"h")},minWidth:kn,minHeight:lo}},[A.x.WLine]:m=>{let{selectedItems:x}=m;const{w:T,h:R,border:q}=x[0].hotAttr;return{width:Math.round(Math.sqrt(T*T+R*R)),height:q.bdrWidth,canW:!0,canH:!1,canAspectRatio:!1}},[A.x.WArrow]:m=>{let{selectedItems:x}=m;const{w:T,h:R,arrow:q}=x[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 x;let{selectedItems:T}=m;return{styleType:((x=(0,ot.i)(T,"tableConfig"))==null?void 0:x.styleType)||0}}},[O.SmartGapPanel]:{[E.m9]:()=>({})}};var bt=e(61068);class jn extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleCanvasAttrsChanged",(x,T)=>{const{canvasAttrs:R,type:q,selections:se,dispatch:ge}=this.props,{isClipContent:Ne}=R,Ke=se.map(it=>({key:it,hotAttr:{[T]:x}}));ge({type:"entry:widget:change",payload:{flatChgList:Ke}}),q===A.x.Canvas&&(0,Ce.A9)({attr:"isClipContent",isOpen:!Ne})}),(0,i.A)(this,"handleIsClipContentChanged",x=>{this.handleCanvasAttrsChanged(x,"isClipContent")})}render(){const{canvasAttrs:x}=this.props,{isClipContent:T}=x;return(0,t.jsx)("div",{className:"general-line is-clip-content-line height-32",children:(0,t.jsx)(bt.A,{className:p()("check",bt.p),attr:"isClipContent",isChecked:T,label:I18N.builtin.is_crop,onChange:this.handleIsClipContentChanged})})}}var xo=e(86750),Po=e(14861),Gn=e(93257),yo=e(70812);class Ve extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"selectNewModel",x=>{const{type:T,canvasAttrs:{orientation:R},selections:q,dispatch:se}=this.props,ge=(0,Po.$n)(x.key),Ne=ge?R==="landscape":!1,Ke=q.map(it=>{let dt={device:x.key};if(!ge&&R==="landscape"&&(dt={...dt,orientation:"portrait"}),x.key!=="customize"){const{hotAttr:{x:jt,y:Ot,w:qt,h:sn}}=sdkStore.getHotItem(it),Wn=Ne?x.height:x.width,kn=Ne?x.width:x.height,lo={x:jt-qt/2,y:Ot-sn/2};dt={...dt,x:lo.x+Wn/2,y:lo.y+kn/2,w:Wn,h:kn}}return{key:it,hotAttr:dt}});se({type:"entry:widget:change",payload:{flatChgList:Ke}}),T===A.x.Canvas&&((0,Ce.A9)({attr:"device"}),x.key&&yo.U4.protoDeviceCreate("\u53F3\u4FA7\u9875\u9762\u8BBE\u5907\u5207\u6362",x.key,!0))}),(0,i.A)(this,"handleOrientationChanged",x=>{const{canvasAttrs:{orientation:T,w:R,h:q},selections:se,dispatch:ge}=this.props;if(x===T)return;const Ne=se.map(Ke=>{const{hotAttr:{x:it,y:dt,w:jt,h:Ot}}=sdkStore.getHotItem(Ke),qt={x:it-jt/2,y:dt-Ot/2};return{key:Ke,hotAttr:{x:qt.x+q/2,y:qt.y+R/2,w:q,h:R,orientation:x}}});ge({type:"entry:widget:change",payload:{flatChgList:Ne}})})}render(){const{canvasAttrs:x,editingPanelCid:T}=this.props,{orientation:R,device:q}=x,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)(xo.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)(Gn.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)(b.C,{className:"icon",name:"setting_panel/screen/screen_portrait"})})}),(0,t.jsx)(Gn.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)(b.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),Kt=m=>{let x,T;return m&&m===A.x.WSticky&&(x=(0,U.He)({type:A.x.WSticky}),T=(0,U.m1)({type:A.x.WSticky})),m&&m===A.x.WMTooltip&&(x=(0,U.He)({type:A.x.WMTooltip}),T=(0,U.m1)({type:A.x.WMTooltip})),{minWidth:x,minHeight:T}},St={component:te,params:{canLocked:!0,canVisible:!0},getter:[Xt[O.LayerInfoPanel][E.m9]]},fn=function(m){return m===void 0&&(m=!0),{component:te,params:{canLocked:m,canVisible:m,canEditVector:m},getter:[Xt[O.LayerInfoPanel][E.m9]]}},En={component:te,params:{canLocked:!0,canVisible:!0},getter:[Xt[O.LayerInfoPanel][E.m9]]},gn={component:le,params:{},getter:[()=>{}]},Yn={component:ke,params:{},getter:[Xt[O.WidgetStatePanel][E.m9]]},Pn=m=>({component:Xe,params:{canX:!0,canY:!0,canRotate:!0,type:m},getter:m?[Xt[O.PositionInfoPanel][E.m9],Xt[O.PositionInfoPanel][m]]:[Xt[O.PositionInfoPanel][E.m9]],setter:{}}),_n={...Pn(),params:{...Pn().params,hasRotate:!1,canRotate:!1}},Fn=m=>({...Pn(m),params:{...Pn().params,hasRotate:!1,canRotate:!1}}),Nn={component:pt,params:{canW:!0,canH:!0,canAspectRatio:!0},getter:[Xt[O.SizeInfoPanel][E.m9]],setter:{}},io=m=>({component:pt,params:{canW:!0,canH:!0,canAspectRatio:!0,...Kt(m)},getter:[Xt[O.SizeInfoPanel][E.m9]],setter:{}}),to=m=>({component:pt,params:{canW:!0,canH:!0,canAspectRatio:!0,type:m},getter:[Xt[O.SizeInfoPanel][E.m9]],setter:{}}),go={...Nn,params:{canW:!0,canH:!1,canAspectRatio:!0}},Io={...Nn,params:{canW:!0,canH:!0,canAspectRatio:!1}},co={...Nn,params:{canW:!1,canH:!1,canAspectRatio:!1}},On={...Nn,params:{...Nn.params,canH:!1,canAspectRatio:!1,isLine:!0},getter:[...Nn.getter,Xt[O.SizeInfoPanel][A.x.WLine]],setter:{}},Cn={...Nn,params:{...Nn.params,canH:!1,canAspectRatio:!1,isLine:!0},getter:[...Nn.getter,Xt[O.SizeInfoPanel][A.x.WArrow]],setter:{}},Je={component:Qe,params:{},getter:[Xt[O.TableTypePanel][E.m9]],setter:{}},vn={component:at,params:{},getter:[Xt[O.SmartGapPanel][E.m9]],setter:{}},Jn=m=>({component:jn,params:{type:m},getter:[x=>{var T;let{selectedItems:R}=x;return{canvasAttrs:(T=R[0])==null?void 0:T.hotAttr,selections:R.filter(se=>se.hotAttr.type===A.x.Canvas).map(se=>{let{key:ge}=se;return ge})}}],setter:{}}),ao=m=>({component:Ve,params:{type:m},getter:[x=>{let{selectedItems:T,editingPanelCid:R}=x;const q=T.filter(ge=>ge.hotAttr.type===A.x.Canvas);return{canvasAttrs:q[0].hotAttr,editingPanelCid:R,selections:q.map(ge=>{let{key:Ne}=ge;return Ne})}}],setter:{}}),no=m=>[[St,O.LayerInfoPanel],[Yn,O.WidgetStatePanel],[Pn(m),O.PositionInfoPanel],[Nn,O.SizeInfoPanel],[vn,O.SmartGapPanel]],Oe=[[fn(),O.LayerInfoPanel],[Yn,O.WidgetStatePanel],[Pn(A.x.WLine),O.PositionInfoPanel],[On,O.SizeInfoPanel],[vn,O.SmartGapPanel]],$n=[[St,O.LayerInfoPanel],[Yn,O.WidgetStatePanel],[_n,O.PositionInfoPanel],[Nn,O.SizeInfoPanel],[vn,O.SmartGapPanel]],$t=[[St,O.LayerInfoPanel],[Yn,O.WidgetStatePanel],[Pn(E.m9),O.PositionInfoPanel],[Io,O.SizeInfoPanel],[vn,O.SmartGapPanel]],cn=m=>[[En,O.LayerInfoPanel],[_n,O.PositionInfoPanel],[io(m),O.SizeInfoPanel]],yt=[[St,O.LayerInfoPanel],[Yn,O.WidgetStatePanel],[Pn(E.m9),O.PositionInfoPanel],[go,O.SizeInfoPanel],[vn,O.SmartGapPanel]],Lt=[[St,O.LayerInfoPanel],[Pn(A.x.WElbow),O.PositionInfoPanel],[Nn,O.SizeInfoPanel],[vn,O.SmartGapPanel]],Wt=[[fn(),O.LayerInfoPanel],[Yn,O.WidgetStatePanel],[Pn(E.m9),O.PositionInfoPanel],[Nn,O.SizeInfoPanel],[vn,O.SmartGapPanel]],Jt=m=>[[St,O.LayerInfoPanel],[Yn,O.WidgetStatePanel],[Pn(E.m9),O.PositionInfoPanel],[io(m),O.SizeInfoPanel],[vn,O.SmartGapPanel]],In=[[gn,O.LayerInfoPanel],[_n,O.PositionInfoPanel],[Nn,O.SizeInfoPanel],[vn,O.SmartGapPanel]],Ln={[E.m9]:no(E.m9),[E.n1]:yt,[A.x.WRect]:Wt,[A.x.WOval]:Wt,[A.x.WPolygon]:Wt,[A.x.WStar]:Wt,[A.x.WVector]:Wt,[A.x.WLine]:Oe,[A.x.WArrow]:[[St,O.LayerInfoPanel],[Yn,O.WidgetStatePanel],[Pn(A.x.WArrow),O.PositionInfoPanel],[Cn,O.SizeInfoPanel],[vn,O.SmartGapPanel]],[A.x.WWrap]:no(A.x.WWrap),[A.x.WSticky]:cn(A.x.WSticky),[A.x.WWebpage]:$n,[A.x.WMSelect]:$n,[A.x.WMTextInput]:$n,[A.x.WMTextArea]:$n,[A.x.WMFileInput]:$n,[A.x.WMapView]:$n,[A.x.WBasket]:$n,wBasketMuban:In,[A.x.WLR]:$n,[A.x.WCode]:$n,[A.x.WGraph]:$t,[A.x.WIcon]:$t,[A.x.WIconButton]:$t,[A.x.WQRCode]:$t,[A.x.WTable]:[[St,O.LayerInfoPanel],[Je,O.TableTypePanel],[Yn,O.WidgetStatePanel],[_n,O.PositionInfoPanel],[Nn,O.SizeInfoPanel],[vn,O.SmartGapPanel]],[A.x.Canvas]:[[En,O.LayerInfoPanel],[ao(A.x.Canvas),O.DevicePanel],[Fn(A.x.Canvas),O.PositionInfoPanel],[to(A.x.Canvas),O.SizeInfoPanel],[Jn(A.x.Canvas),O.ClipContentPanel]],[A.x.CanvasAsOverlay]:[[En,O.LayerInfoPanel],[Fn(A.x.Canvas),O.PositionInfoPanel],[to(A.x.Canvas),O.SizeInfoPanel],[Jn(A.x.Canvas),O.ClipContentPanel]],[A.x.WElbow]:[[St,O.LayerInfoPanel],[Pn(A.x.WElbow),O.PositionInfoPanel],[co,O.SizeInfoPanel]],[A.x.WTear]:cn(A.x.WTear),[A.x.WIosCB]:Lt,[A.x.WAndroidCB]:Lt,[A.x.WTabItem]:Lt,[A.x.WSearchBar]:Lt,[A.x.WUnifiedKeyboard]:Lt,[A.x.WTriangle]:Wt,[A.x.WSwimlane]:$n,[A.x.WMTooltip]:Jt(A.x.WMTooltip)},hn=m=>{const x=m[0],T=m.findIndex(ge=>ge.hotAttr.type===A.x.WLine)!==-1,R=m.every(ge=>{var Ne;return ge.hotAttr.type===A.x.WBasket&&(ge==null||(Ne=ge.hotAttr)==null?void 0:Ne.basket)==="bMuban"}),q=m.length>1&&m.some(ge=>(0,g.o9)(ge)===A.x.Canvas)&&m.some(ge=>(0,g.o9)(ge)===A.x.CanvasAsOverlay),se=T&&m.length>1?Ln[E.n1]:q?Ln[A.x.CanvasAsOverlay]:R?Ln.wBasketMuban:Ln[(0,g.o9)(x)]||Ln[E.m9];return[rt,...se]},_o=()=>[rt,[fn(!1),O.LayerInfoPanel]],vo=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 He extends h.Component{shouldComponentUpdate(x,T,R){return this.props.isDraggingItem||MB.f.isResizing?!1:(0,B.N)(Qn).call(this,x,T)}render(){return(0,t.jsx)(vo,{className:"widgetSetting-common-panel",children:this.props.children})}}var Re=e(51743);class De extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleOpacityChange",(x,T,R)=>{const{onChange:q,dispatch:se,selections:ge}=this.props;q({value:parseInt(x)/100,attr:T,refVar:R,dispatch:se,selections:ge}),se({type:"entry:auto:show:hide:item"})}),(0,i.A)(this,"handleOpacityConfirm",(x,T)=>{this.handleOpacityChange(x,T),sdkStore.combineMerge("opacity-update")}),(0,i.A)(this,"handleOpacityMouseDown",()=>sdkStore.combineMergeMark("opacity-update")),(0,i.A)(this,"createOnChangeHandler",x=>(T,R)=>{this.handleOpacityChange(T,x,R)})}render(){const{opacity:x,refVars:T}=this.props,R=parseInt(String(x));return(0,t.jsxs)("div",{className:"common-line opacity-line height-32",children:[(0,t.jsx)("span",{children:I18N.SettingPanel.o}),(0,t.jsx)(Re.A,{attr:"opacity",value:R,max:100,min:0,onChange:this.handleOpacityChange,onConfirm:this.handleOpacityConfirm,onMouseDown:this.handleOpacityMouseDown}),(0,t.jsx)(Ae.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),$e=e(93413),Ze=e(39e3);class nt 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",x=>{(0,w.HD)(MB.__store__.getState())!==x&&this.props.dispatch({type:"mode:update:state",payload:{isFocusStickyOffset:x}})}),(0,i.A)(this,"handleCancelTimer",()=>{clearTimeout(this.timer),this.updateModeState(!1)}),(0,i.A)(this,"handleFixTypeChange",x=>{const{onChange:T,dispatch:R,selections:q,stickyOffset:se}=this.props;if(this.closeGuide(),T({value:x,attr:"fixPosTo",dispatch:R,selections:q}),se===null&&x==="sticky"){var ge;const Ne=sdkStore.locUpHotCanvasKey(q[0]),Ke=(q==null?void 0:q.length)>1?0:Ne&&((ge=sdkStore.getHotItem(Ne))==null||(ge=ge.hotAttr)==null?void 0:ge.stickyHeaderHeight)||0;T({value:Ke,attr:"stickyOffset",dispatch:R,selections:q})}(0,S.W0)({operationType:S.Vi[x]})}),(0,i.A)(this,"handleStickyOffsetChange",x=>{const{onChange:T,dispatch:R,selections:q}=this.props;T({value:x,attr:"stickyOffset",dispatch:R,selections:q})}),(0,i.A)(this,"handleBeforeChangeValue",()=>{const{stickyOffset:x}=this.props;this.setState({prevStickyOffset:x})}),(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($e.c.GUIDE_POSITION_STICKY_FEATURES),this.dropDownMenu=document.querySelector("."+$e.c.GUIDE_POSITION_STICKY_FEATURES)},200)}),(0,i.A)(this,"handleClickOutside",x=>{this.dropDownMenu&&!this.dropDownMenu.contains(x.target)&&this.closeGuide()}),(0,i.A)(this,"closeGuide",()=>{MB.commonGuideHelper.closeGuide($e.c.GUIDE_POSITION_STICKY_FEATURES),MB.commonGuideHelper.markGuideAsRead($e.c.GUIDE_POSITION_STICKY_FEATURES)})}componentDidUpdate(x,T,R){x.selections!==this.props.selections&&this.handleCancelTimer()}componentWillUnmount(){this.handleCancelTimer()}render(){const{fixPosTo:x,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:x,onChange:this.handleFixTypeChange,menuClassName:$e.c.GUIDE_POSITION_STICKY_FEATURES,onOpen:this.handleOpen})})]}),x==="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)(Ee.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)(Ze.A,{target:document,onMouseDown:(0,Ze.t)(this.handleClickOutside,{capture:!0})})]})}}var mt=e(76210),xt=e(847),gt=e(44805);const wt={component:De,params:{},getter:[mt.U[xt.q.OpacityInfoPanel][E.m9]],setter:{onChange:gt.c}},Zt={component:nt,params:{},getter:[mt.U[xt.q.FixedInfoPanel][E.m9]],setter:{onChange:gt.c}},Ft=[[Zt,xt.q.FixedInfoPanel]],Gt={[A.x.WMapView]:Ft,[A.x.WLR]:Ft,[E.m9]:[[wt,xt.q.OpacityInfoPanel],[Zt,xt.q.FixedInfoPanel]]},Dt=m=>{const x=m[0],T=Gt[(0,g.o9)(x)]||Gt[E.m9];return[He,...T]};var Qt=e(78401),Ct=e(15515),yn=e(32409),rn=e(71190),Rt=e(56938),Dn=e(54852);const To="mp_text",mo=["children"];class ro extends h.Component{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,Ct.Yt)(To,!0,Ct.qW.Boolean)}),(0,i.A)(this,"handleChange",()=>{const{show:x}=this.state;(0,Ct.a0)(To,!x,Ct.qW.Boolean),this.setState({show:!x})})}shouldComponentUpdate(x,T,R){return x.isDraggingItem?!1:(0,B.N)(mo).call(this,x,T)}render(){const{show:x}=this.state,T=this.props.children.findIndex(R=>(R==null?void 0:R.key)===Rt.s.UsedRefTextPanel)===-1&&this.props.children.findIndex(R=>(R==null?void 0:R.key)===Rt.s.CanShowLibPlhPanel)!==-1;return(0,t.jsx)(rn.A,{className:"text-setting-panel",collapse:!x,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)(Dn.M,{id:"text-settings",className:p()({"is-show-lib-opener":T}),onMouseDown:Qt.kI,children:this.props.children}),(0,t.jsx)(Dn.F,{})]})})}}var Bn=e(3507),Ao=e(55203),uo=e(49989),Jo=e(58603),$o=e(63768),po=e(92001),us=e(31781),hs=e(63126),ht=e(6843);class Ht extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"setComponentRef",x=>this.workspaceDropdown=x),(0,i.A)(this,"getHVList",()=>{const{shouldReverseDesc:x}=this.props,T=x?[{label:(0,t.jsx)(b.C,{name:"setting_panel/font/text_align_left_re"}),value:"left",tip_title:I18N.SettingPanel.vtop_2},{label:(0,t.jsx)(b.C,{name:"setting_panel/font/text_align_center_re"}),value:"center",tip_title:I18N.SettingPanel.vcenter_2},{label:(0,t.jsx)(b.C,{name:"setting_panel/font/text_align_right_re"}),value:"right",tip_title:I18N.SettingPanel.vbottom_2},{label:(0,t.jsx)(b.C,{name:"setting_panel/font/text_align_justify_re"}),value:"justify",tip_title:I18N.SettingPanel.text_Justify}]:[{label:(0,t.jsx)(b.C,{name:"setting_panel/font/text_align_left"}),value:"left",tip_title:I18N.SettingPanel.hleft_2},{label:(0,t.jsx)(b.C,{name:"setting_panel/font/text_align_center"}),value:"center",tip_title:I18N.SettingPanel.align_text_center},{label:(0,t.jsx)(b.C,{name:"setting_panel/font/text_align_right"}),value:"right",tip_title:I18N.SettingPanel.hright_2},{label:(0,t.jsx)(b.C,{name:"setting_panel/font/text_align_justify"}),value:"justify",tip_title:I18N.SettingPanel.text_Justify}],R=x?[{label:(0,t.jsx)(b.C,{name:"setting_panel/font/text_align_v_top_re"}),value:"flex-start",tip_title:I18N.SettingPanel.hleft_2},{label:(0,t.jsx)(b.C,{name:"setting_panel/font/text_align_v_center_re"}),value:"center",tip_title:I18N.SettingPanel.align_text_center},{label:(0,t.jsx)(b.C,{name:"setting_panel/font/text_align_v_bottom_re"}),value:"flex-end",tip_title:I18N.SettingPanel.hright_2}]:[{label:(0,t.jsx)(b.C,{name:"setting_panel/font/text_align_v_top"}),value:"flex-start",tip_title:I18N.SettingPanel.vtop_2},{label:(0,t.jsx)(b.C,{name:"setting_panel/font/text_align_v_center"}),value:"center",tip_title:I18N.SettingPanel.vcenter_2},{label:(0,t.jsx)(b.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",(x,T)=>{const{onChange:R,dispatch:q}=this.props;R({value:x,attr:T,dispatch:q})}),(0,i.A)(this,"handleHAChange",x=>{this.handleChange(x,"horizontalAlign"),S.MO[x]&&(0,S.W0)({operationType:S.MO[x]})}),(0,i.A)(this,"handleVAChange",x=>{this.handleChange(x,"verticalAlign"),S.Ww[x]&&(0,S.W0)({operationType:S.Ww[x]})}),(0,i.A)(this,"handleCloseOptionsMenu",()=>{this.workspaceDropdown.close()}),(0,i.A)(this,"handleSizeTypeChange",x=>{const{dispatch:T}=this.props,R=parseInt(x);T({type:"entry:set:text:attr",payload:{value:R,attr:"sizeType"}}),(0,us.yt)(hs.mG[R])})}render(){var x;const{ha:T,va:R,canHa:q,canVa:se,hasMissFontHi:ge,currentTextRefStyle:Ne,selections:Ke,sizeType:it,shouldReverseDesc:dt}=this.props,{H_ALIGNMENT_OPTION_LIST:jt,V_ALIGNMENT_OPTION_LIST:Ot}=this.getHVList(),qt=Ke.length>0&&((x=sdkStore.getHotItem(Ke[0]))==null?void 0:x.hotAttr.type),sn=A.Q.USE_SIZE_TYPE.includes(qt),Wn=A.Q.USE_TEXT_FONT_DIRECTION.includes(qt);return!q&&!se&&Ne&&!sn&&Wn?(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)(uo.z,{className:"h-alignment",options:jt,value:T,isLongTimeHover:!0,disabled:ge,handleChange:this.handleHAChange}),se&&(0,t.jsx)(uo.z,{className:"v-alignment",options:Ot,value:R,isLongTimeHover:!0,disabled:ge,handleChange:this.handleVAChange}),Ne&&(sn||Wn)&&(0,t.jsx)(ht.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)(C.Q,{className:"menu-opener fontSettings",content:I18N.SettingPanel.text_settings,icon:(0,t.jsx)(b.C,{name:"common/more",className:"options-icon"}),direction:"down"}),menuClassName:"font-options-menu",menu:(0,t.jsxs)(ht.jl,{children:[(0,t.jsxs)("header",{children:[(0,t.jsx)("span",{className:"title",children:I18N.SettingPanel.text_settings}),(0,t.jsx)(de.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:it,handleSizeTypeChange:this.handleSizeTypeChange})]})}),Wn&&(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 Hn=m=>{let{canShowContentBox:x,isBatch:T,content:R,canMultiline:q,disableModifyContentBox:se,refVar:ge,onChange:Ne,dispatch:Ke}=m;const[it,dt]=(0,h.useState)(!1),jt=(0,h.useRef)(null),Ot=(kn,lo)=>{Ne({contentArray:kn,refVar:lo,dispatch:Ke})},qt=(kn,lo)=>{const Wo=(""+kn).split(/\n/);Ot(Wo,lo)},sn=()=>dt(!0),Wn=()=>dt(!1);return x?(0,t.jsxs)(bo,{className:p()(["item-with-name",{"context-box-single":!T&&!ge}]),children:[!it&&(0,t.jsx)(Ae.Yw,{type:"string",className:p()([{"is-single-button":!ge}]),refVar:ge,value:R,isIconButton:!ge,showName:!0,iconTooltip:I18N.Variable.bind.text,hoverTrigger:".text-setting-panel",disabled:se,onChange:qt}),(0,t.jsxs)("div",{className:"item-value",ref:jt,children:[!it&&(0,t.jsx)(Ae.Yw,{type:"string",className:p()([{"is-single-button":!ge}]),refVar:ge,value:R,isIconButton:!ge,showName:!0,iconTooltip:I18N.Variable.bind.text,hoverTrigger:".text-setting-panel>.item-value",disabled:se,onChange:qt}),!ge&&T&&(0,t.jsx)(Kn.A,{canMultiline:q,content:R,onChange:Ot,placeholder:I18N.SettingPanel.content_box_placeholder,disableModifyContentBox:se,onFocus:sn,onBlur:Wn})]})]}):null},bo=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),Vn=e(49021),Rn=e(40610),Mo=e(2099);const wo=m=>{let{attr:x,value:T,refVar:R,dispatch:q,supAttr:se,selections:ge}=m;(0,gt.c)({attr:x,value:T,refVar:R,dispatch:q,supAttr:se,selections:ge})},dn=function(m){return m===void 0&&(m=E.m9),{component:Bn.X,params:{},getter:[Vn.sE[Rt.s.TextFontPanel][m]],setter:{onChange:x=>{let{value:T,attr:R,refVar:q,dispatch:se,isFakeOverride:ge}=x;se({type:"entry:set:text:attr",payload:{value:T,attr:R,refVar:q,isFakeOverride:ge}})},onSetWeightValue:async x=>{let{fontFamily:T,fontWeight:R,boldType:q,dispatch:se}=x;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!==A.x.WRichText,isDisabledFontRadioLine:!1},getter:[Vn.sE[Rt.s.TextFontPanel][m]||Vn.sE[Rt.s.TextFontPanel][E.m9]],setter:{onChange:x=>{let{value:T,attr:R,refVar:q,selections:se,dispatch:ge,compressible:Ne,fromUI:Ke}=x;if(ge({type:"entry:set:text:attr",payload:{value:T,attr:R,refVar:q,compressible:Ne,fromUI:Ke}}),R==="fontSize"&&(se==null?void 0:se.length)>1){const it=se.filter(dt=>{var jt;return((jt=sdkStore.getHotItem(dt))==null?void 0:jt.hotAttr.type)===A.x.WSelectionControl});it.length&&wo({attr:R,value:T,refVar:q,supAttr:"selectionControl",selections:it,dispatch:ge})}}}}),ho={...pn(A.x.WRichText),params:{canShowMenu:!0,newOverOld:!0}},Oo={component:Ao.L,params:{canShowBIUS:!1},getter:[Vn.sE[Rt.s.ChartTextFontPanel][E.m9]],setter:{onChange:wo}},qn={component:Ao.L,params:{canShowMenu:!0},getter:[Vn.sE[Rt.s.TableTextFontPanel][E.m9]],setter:{onChange:m=>{let{value:x,attr:T,refVar:R,dispatch:q}=m;q({type:"entry:table:set:cell:attr:new",payload:{attr:T,value:x,refVar:R}})}}},So=m=>({component:en,params:{canHa:!0,canVa:!0},getter:m?[Vn.sE[Rt.s.AlignPanel][E.m9],Vn.sE[Rt.s.AlignPanel][m]||Vn.sE[Rt.s.AlignPanel][E.m9]]:[Vn.sE[Rt.s.AlignPanel][E.m9]],setter:{onChange:x=>{let{value:T,attr:R,dispatch:q}=x;q({type:"entry:set:text:align",payload:{attr:R,value:T}})}}}),Ut=m=>({...So(m),setter:{onChange:x=>{let{value:T,attr:R,dispatch:q}=x;q({type:"entry:table:set:cell:attr:new",payload:{attr:R,value:T}})}}}),an=m=>{const x=m&&m in Vn.sE[Rt.s.SpacingPanel]?m:E.m9;return{component:Un.O,params:{},getter:[Vn.sE[Rt.s.SpacingPanel][x]],setter:{onChange:T=>{let{value:R,attr:q,refVar:se,dispatch:ge}=T;ge({type:"entry:set:text:attr",payload:{value:R,attr:q,refVar:se}})}}}},wn={...an(),getter:[Vn.sE[Rt.s.SpacingPanel][A.x.WTable]],setter:{onChange:m=>{let{value:x,attr:T,refVar:R,dispatch:q}=m;q({type:"entry:table:set:cell:attr:new",payload:{attr:T,value:x,refVar:R}})}}},xn={component:Un.O,params:{},getter:[Vn.sE[Rt.s.SpacingPanel][A.x.WRichText]],setter:{onSizeTypeChange:m=>{let{sizeType:x,dispatch:T}=m;const R=parseInt(x);T({type:"entry:set:text:attr",payload:{value:R,attr:"sizeType"}}),(0,us.yt)(hs.mG[R])},onChange:m=>{let{value:x,attr:T,refVar:R,dispatch:q}=m;q({type:"entry:set:text:attr",payload:{value:x,attr:T,refVar:R}})}}},mn={component:Hn,params:{},getter:[Vn.sE[Rt.s.ContentBoxPanel][E.m9]],setter:{onChange:m=>{let{contentArray:x,refVar:T,dispatch:R}=m;R({type:"entry:batch:edit:text:content",payload:{contentArray:x,refVar:T}})}}},Sn={component:Hn,params:{},getter:[Vn.sE[Rt.s.ContentBoxPanel][A.x.WTable]],setter:{onChange:m=>{let{contentArray:x,refVar:T,dispatch:R}=m;R({type:"entry:table:batch:set:value",payload:{text:x.join("\n"),refVar:T}})}}},un=[{component:()=>null,params:{},getter:[()=>{}],setter:{}},Rt.s.CanShowLibPlhPanel],An=function(m){let{textFontInfoType:x,alignInfoType:T,spacingInfoType:R}=m===void 0?{textFontInfoType:"",alignInfoType:"",spacingInfoType:""}:m;return[[pn(x),Rt.s.TextFontPanel],[So(T),Rt.s.AlignPanel],[an(R),Rt.s.SpacingPanel],[mn,Rt.s.ContentBoxPanel]]},oo=function(m){let{textFontInfoType:x,alignInfoType:T}=m===void 0?{textFontInfoType:"",alignInfoType:""}:m;return[[pn(x),Rt.s.TextFontPanel],[So(T),Rt.s.AlignPanel],[mn,Rt.s.ContentBoxPanel],un]},No=[[dn(A.x.WRichText),Rt.s.RichTextFontPanel],[ho,Rt.s.TextFontPanel],[So(A.x.WRichText),Rt.s.AlignPanel],[xn,Rt.s.RichTextSpacingPanel],[mn,Rt.s.ContentBoxPanel],un],Vo=[[dn(A.x.WDropMenu),Rt.s.RichTextFontPanel],[pn(),Rt.s.TextFontPanel],[So(),Rt.s.AlignPanel],[an(),Rt.s.SpacingPanel]],Ko=m=>[[dn(A.x.WMTextInput),Rt.s.RichTextFontPanel],[pn(m),Rt.s.TextFontPanel],[So(A.x.WMTextArea),Rt.s.AlignPanel],[mn,Rt.s.ContentBoxPanel]],zo=m=>[[dn(m),Rt.s.RichTextFontPanel],[pn(m),Rt.s.TextFontPanel],[So(m),Rt.s.AlignPanel],[an(m),Rt.s.SpacingPanel],[mn,Rt.s.ContentBoxPanel],un],ys=[{component:zn.M,params:{},getter:[()=>{}],setter:{}},Rt.s.UsedRefTextPanel],ss={[A.x.WRichText]:No,[A.x.WPlaceholder]:zo(A.x.WPlaceholder),[A.x.WRect]:zo(A.x.WRect),[A.x.WOval]:zo(A.x.WOval),[A.x.WLine]:[[dn(A.x.WLine),Rt.s.RichTextFontPanel],[pn(A.x.WLine),Rt.s.TextFontPanel],[So(A.x.WLine),Rt.s.AlignPanel],[an(A.x.WLine),Rt.s.SpacingPanel],[mn,Rt.s.ContentBoxPanel],un],[A.x.WArrow]:[[dn(A.x.WArrow),Rt.s.RichTextFontPanel],[pn(A.x.WArrow),Rt.s.TextFontPanel],[So(A.x.WArrow),Rt.s.AlignPanel],[an(A.x.WArrow),Rt.s.SpacingPanel],[mn,Rt.s.ContentBoxPanel],un],[A.x.WPolygon]:zo(A.x.WPolygon),[A.x.WStar]:zo(A.x.WStar),[A.x.wFlowClosed]:zo(A.x.wFlowClosed),[A.x.WFlowOpened]:zo(A.x.WFlowOpened),[A.x.WButton]:zo(A.x.WButton),[A.x.WButtonSolid]:oo(),[A.x.WDropMenu]:Vo,[A.x.WMTextInput]:Ko(A.x.WMTextInput),[A.x.WMTextArea]:[[dn(A.x.WMTextArea),Rt.s.RichTextFontPanel],[pn(A.x.WMTextArea),Rt.s.TextFontPanel],[So(A.x.WMTextArea),Rt.s.AlignPanel],[an(),Rt.s.SpacingPanel],[mn,Rt.s.ContentBoxPanel]],[A.x.WMobileTabBars]:[[dn(),Rt.s.RichTextFontPanel],[pn(),Rt.s.TextFontPanel],[an(),Rt.s.SpacingPanel]],[A.x.WMSelect]:[[dn(),Rt.s.RichTextFontPanel],[pn(),Rt.s.TextFontPanel],[an(),Rt.s.SpacingPanel],[mn,Rt.s.ContentBoxPanel]],[A.x.WTabs]:[[dn(),Rt.s.RichTextFontPanel],[pn(),Rt.s.TextFontPanel],[an(),Rt.s.SpacingPanel]],[A.x.WSegmentedControl]:[[dn(),Rt.s.RichTextFontPanel],[pn(),Rt.s.TextFontPanel],[an(),Rt.s.SpacingPanel]],[A.x.WChart]:[[Oo,Rt.s.ChartTextFontPanel]],[A.x.WTable]:[[qn,Rt.s.TableTextFontPanel],[Ut(A.x.WTable),Rt.s.TableAlignPanel],[wn,Rt.s.TableSpacingPanel],[Sn,Rt.s.ContentBoxPanel]],[A.x.WElbow]:zo(A.x.WElbow),[A.x.WVector]:zo(A.x.WVector),[A.x.WTriangle]:zo(A.x.WTriangle),[A.x.WTree]:[[dn(A.x.WTree),Rt.s.RichTextFontPanel],[pn(A.x.WTree),Rt.s.TextFontPanel],[an(A.x.WTree),Rt.s.SpacingPanel],[mn,Rt.s.ContentBoxPanel]],[A.x.WMTooltip]:[[dn(A.x.WMTooltip),Rt.s.RichTextFontPanel],[pn(A.x.WMTooltip),Rt.s.TextFontPanel],[So(A.x.WMTooltip),Rt.s.AlignPanel],[an(A.x.WMTooltip),Rt.s.SpacingPanel],[mn,Rt.s.ContentBoxPanel]],[E.m9]:An()},ce=m=>{const x=m[0],T=x==null?void 0:x.hotAttr.type,R=ss[T]||ss[E.m9],q=(0,Mo.OP)({selections:[x==null?void 0:x.key],styleType:"text"});if(m.length===1){const se=q?[ys].concat(R.filter(ge=>ge[1]!==Rt.s.RichTextFontPanel&&ge[1]!==Rt.s.SpacingPanel&&ge[1]!==Rt.s.TextFontPanel&&ge[1]!==Rt.s.RichTextSpacingPanel)):R;return[ro,...se]}else{let se=[];const ge=m.map(dt=>dt.hotAttr.type);let Ne=ge.every(dt=>dt===T);if(Ne)se=ss[T]||ss[E.m9];else{const dt=new Map;if(ge.includes(A.x.WRichText)){const sn=ss[A.x.WRichText]||ss[E.m9],[Wn,kn]=sn[0];dt.set(kn,[Wn,kn])}const jt=ge.findIndex(sn=>Vn.cX.includes(sn)),Ot=ge[jt]||T;se=[...Array.from(dt.values()),...An({textFontInfoType:Ot,alignInfoType:Ot,spacingInfoType:Ot})]}const Ke=Ne&&R.findIndex(dt=>dt[1]===Rt.s.CanShowLibPlhPanel)!==-1,it=Ke&&m.every(dt=>q&&(0,Mo.OP)({selections:[dt.key],styleType:"text"})===q);return Ke||(se=se.filter(dt=>dt[1]!==Rt.s.CanShowLibPlhPanel)),it&&(se=[ys].concat(R.filter(dt=>dt[1]!==Rt.s.RichTextFontPanel&&dt[1]!==Rt.s.SpacingPanel&&dt[1]!==Rt.s.TextFontPanel&&dt[1]!==Rt.s.RichTextSpacingPanel))),[ro,...se]}};var Pt=e(64012);const Mt=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 je extends h.PureComponent{render(){return(0,t.jsx)(Mt,{children:this.props.children})}}class vt extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"createOnChangeHandler",x=>(T,R)=>{const{dispatch:q,onChange:se,widgetType:ge,selections:Ne}=this.props;T=Math.max(0,Math.min(T,100)),se({value:T,attr:x,refVar:R,dispatch:q,supAttr:ge===A.x.WPolygon?"polygon":"star",selections:Ne}),q({type:"entry:auto:show:hide:item"})}),(0,i.A)(this,"handleRadiusChange",(x,T)=>{const{dispatch:R,onChange:q,widgetType:se,selections:ge}=this.props;q({value:parseInt(x),attr:T,dispatch:R,supAttr:se===A.x.WPolygon?"polygon":"star",selections:ge}),R({type:"entry:auto:show:hide:item"})}),(0,i.A)(this,"handleRadiusConfirm",(x,T)=>{this.handleRadiusChange(x,T),sdkStore.combineMerge(T+"-update")}),(0,i.A)(this,"handleMouseDown",x=>sdkStore.combineMergeMark(x+"-update"))}render(){const{radius:x,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)(Re.A,{attr:"radius",value:x,min:0,max:100,onChange:this.handleRadiusChange,onConfirm:this.handleRadiusConfirm,onMouseDown:this.handleMouseDown}),(0,t.jsx)(Ae.Yw,{type:"number",inputClassName:"input-number",attr:"radius",value:x,min:0,max:100,suffix:"%",refVar:T,onConfirm:this.createOnChangeHandler("radius")})]})})}}class kt extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"createOnChangeHandler",x=>(T,R)=>{const{dispatch:q,onChange:se,widgetType:ge,selections:Ne}=this.props;T=Math.max(3,Math.min(T,20)),se({value:T,attr:x,refVar:R,dispatch:q,supAttr:ge===A.x.WPolygon?"polygon":"star",selections:Ne}),q({type:"entry:auto:show:hide:item"})}),(0,i.A)(this,"handleSideNumChange",(x,T)=>{const{dispatch:R,onChange:q,widgetType:se,selections:ge}=this.props;q({value:parseInt(x),attr:T,dispatch:R,supAttr:se===A.x.WPolygon?"polygon":"star",selections:ge}),R({type:"entry:auto:show:hide:item"})}),(0,i.A)(this,"handleSideNumConfirm",(x,T)=>{this.handleSideNumChange(x,T),sdkStore.combineMerge(T+"-update")}),(0,i.A)(this,"handleSideNumMouseDown",x=>sdkStore.combineMergeMark(x+"-update"))}render(){const{sideNum:x,widgetType:T,refVar:R}=this.props;return(0,t.jsx)("div",{className:p()("sideNum",T===A.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===A.x.WPolygon?I18N.SettingPanel.side_num.polygon:I18N.SettingPanel.side_num.star}),(0,t.jsx)(Re.A,{attr:"sideNum",value:x,min:3,max:20,onChange:this.handleSideNumChange,onConfirm:this.handleSideNumConfirm,onMouseDown:this.handleSideNumMouseDown}),(0,t.jsx)(Ae.Yw,{type:"number",inputClassName:"input-number",attr:"sideNum",value:x,min:3,max:20,refVar:R,onConfirm:this.createOnChangeHandler("sideNum")})]})})}}let Yt=function(m){return m[m.SideNumPanel=0]="SideNumPanel",m[m.RadiusPanel=1]="RadiusPanel",m}({});const Xn={[Yt.RadiusPanel]:{[A.x.WStar]:m=>{var x;let{selectedItems:T}=m;const R=T[0].hotAttr;return{radius:R.star.radius,widgetType:R.type,refVar:(x=(0,Bt.xj)(T,"star",["radius"]))==null?void 0:x.radius}}},[Yt.SideNumPanel]:{[A.x.WPolygon]:m=>{var x;let{selectedItems:T}=m;const R=T[0].hotAttr;return{sideNum:R.polygon.sideNum,widgetType:R.type,refVar:(x=(0,Bt.xj)(T,"polygon",["sideNum"]))==null?void 0:x.sideNum}},[A.x.WStar]:m=>{var x;let{selectedItems:T}=m;const R=T[0].hotAttr;return{sideNum:R.star.sideNum,widgetType:R.type,refVar:(x=(0,Bt.xj)(T,"star",["sideNum"]))==null?void 0:x.sideNum}}}},Do={component:kt,params:{},getter:[Xn[Yt.SideNumPanel][A.x.WPolygon]],setter:{onChange:gt.c}},Uo={component:kt,params:{},getter:[Xn[Yt.SideNumPanel][A.x.WStar]],setter:{onChange:gt.c}},jo={component:vt,params:{},getter:[Xn[Yt.RadiusPanel][A.x.WStar]],setter:{onChange:gt.c}},as={[E.m9]:[[]],[A.x.WPolygon]:[[Do,Yt.SideNumPanel]],[A.x.WStar]:[[Uo,Yt.SideNumPanel],[jo,Yt.RadiusPanel]]},gs=m=>{const x=m[0],T=as[x.hotAttr.type]||as[E.m9];return[je,...T]};var Eo=e(45392);const ws="mp_image";class Rs extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,Ct.Yt)(ws,!0,Ct.qW.Boolean)}),(0,i.A)(this,"handleChange",()=>{const{show:x}=this.state;(0,Ct.a0)(ws,!x,Ct.qW.Boolean),this.setState({show:!x})})}render(){const{show:x}=this.state;return(0,t.jsx)(rn.A,{collapse:!x,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 x={};return m&&m.split(" ").forEach(R=>{if(R.trim()){const q=R.trim().split("("),se=q[0],ge=q[1].replace(/[a-zA-Z]*\)$/,"");x[se]=ge}}),x}function hi(m){const x=[];return Object.keys(m).forEach(T=>{const R=m[T];if(R&&R!=="none"){const{postfix:q}=Ii().find(se=>se.attr===T);x.push(T+"("+R+q+")")}}),x.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(x){var T;super(x),(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:ge,selectedImageItems:Ne}=this.props,Ke=Bs(se);Ke[q]=R;const it=hi(Ke),dt=Ne.map(jt=>({key:jt.key,hotAttr:{image:{...jt.hotAttr.image,imageFilter:it}}}));ge({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(ge=>({key:ge.key,hotAttr:{image:{...ge.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:x,filter:T,canResetFilter:R,onClose:q}=this.props,{isExceedScreen:se}=this.state,ge=Bs(T),Ne={top:se?"auto":x+"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)(b.C,{name:"design/autoFillPanel/close",className:"close",isColorPure:!0,onClick:q})]})]}),(0,t.jsx)("div",{className:"content",children:Ii().map(Ke=>{const{attr:it}=Ke,dt=ge[it];return(0,t.jsx)(Wi,{filter:Ke,value:dt,onChange:this.handleChange,onConfirm:this.handleConfirm,onMouseDown:this.handleMouseDown},it)})}),(0,t.jsx)(Ze.A,{target:document,onClick:(0,Ze.t)(this.handleClickOutside,{capture:!0})})]}),this.el)}}class Wi extends h.PureComponent{render(){const{filter:x,value:T,onChange:R,onConfirm:q,onMouseDown:se}=this.props,{attr:ge,label:Ne,max:Ke,defaultValue:it}=x,dt=T||it||0;return(0,t.jsxs)(qs,{className:"line slider-line",children:[(0,t.jsx)("span",{children:Ne}),(0,t.jsx)(Re.A,{attr:ge,value:dt,max:Ke,onChange:R,onConfirm:q,onMouseDown:se}),(0,t.jsx)(Ee.A,{attr:ge,min:0,max:Ke,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,x,T)=>x in m?Ti(m,x,{enumerable:!0,configurable:!0,writable:!0,value:T}):m[x]=T,ta=(m,x)=>{for(var T in x||(x={}))li.call(x,T)&&wa(m,T,x[T]);if(Ks)for(var T of Ks(x))gi.call(x,T)&&wa(m,T,x[T]);return m},pr=(m,x)=>ri(m,ui(x)),hr=(m,x)=>{var T={};for(var R in m)li.call(m,R)&&x.indexOf(R)<0&&(T[R]=m[R]);if(m!=null&&Ks)for(var R of Ks(m))x.indexOf(R)<0&&gi.call(m,R)&&(T[R]=m[R]);return T},Ia=(0,h.forwardRef)((m,x)=>{var T=m,{size:R,spin:q,style:se}=T,ge=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:x,style:Ne},ge),{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,x,T)=>x in m?ur(m,x,{enumerable:!0,configurable:!0,writable:!0,value:T}):m[x]=T,na=(m,x)=>{for(var T in x||(x={}))Ta.call(x,T)&&Pa(m,T,x[T]);if(Fi)for(var T of Fi(x))Aa.call(x,T)&&Pa(m,T,x[T]);return m},fr=(m,x)=>gr(m,mr(x)),xr=(m,x)=>{var T={};for(var R in m)Ta.call(m,R)&&x.indexOf(R)<0&&(T[R]=m[R]);if(m!=null&&Fi)for(var R of Fi(m))x.indexOf(R)<0&&Aa.call(m,R)&&(T[R]=m[R]);return T},Ma=(0,h.forwardRef)((m,x)=>{var T=m,{size:R,spin:q,style:se}=T,ge=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:x,style:Ne},ge),{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:x,panelName:T}=m;try{x?saTrack("widget_icon_search_start",{source:sa}):saTrack("panel_search_start",{source:Na[T]})}catch(R){console.log(R.message)}},dc=m=>{let{isFromIconSelectPopup:x,panelName:T,keyword:R,sort:q,count:se,responseTime:ge=null}=m;try{if(!R.trim())return;x?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:ge})}catch(Ne){console.log(Ne.message)}},ia=m=>{let{source:x}=m;try{(0,D.kH)("setting_panel_image_click",{source:x})}catch(T){console.log(T.message)}},Da=m=>{let{source:x}=m;try{sa=x,(0,D.kH)("setting_panel_widget_icon_click",{source:x})}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:Nt.bl.slicing},{label:(0,t.jsx)(Q.P,{name:"setting_panel/image_view/cutting",tagName:"SVGIcon",content:I18N.SettingPanel.cutting,direction:"down"}),value:Nt.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:Nt.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:Nt.bl.flipV}]),(0,i.A)(this,"toggleDropdown",x=>this.setState({isOpen:x})),(0,i.A)(this,"setFileRef",x=>this.file=x),(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",x=>{const T=x.target.files[0];this.file.value="",this.file.setAttribute("value",""),this.handleUpload(T)}),(0,i.A)(this,"handleDragLeave",x=>{x.stopPropagation(),x.preventDefault(),this.setState({isActive:!1})}),(0,i.A)(this,"handleDragOver",x=>{x.stopPropagation(),x.preventDefault(),x.nativeEvent.dataTransfer.dropEffect="copy",this.setState({isActive:!0})}),(0,i.A)(this,"handleDrop",x=>{x.stopPropagation(),x.preventDefault(),this.setState({isActive:!1});const T=x.nativeEvent.dataTransfer.files[0];this.handleUpload(T)}),(0,i.A)(this,"handleChangeOperationType",x=>{const{currentImageOperateType:T}=this.props,{dispatch:R}=this.props,q=x.currentTarget.dataset.value;if(!(T&&T===q))switch(q){case Nt.bl.flipH:R({type:"entry:image-view:horizontal-flip",payload:{isImage:!0}});break;case Nt.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===Nt.bl.cutting;R(se?{type:"entry:image-view:cutting"}:{type:"update:screenContainer:state",payload:{defaultImageSlicingOffset:{x:x.clientX-90,y:x.clientY}}})}break}}),(0,i.A)(this,"handleToggleFilterPanelOpen",(x,T)=>{const R=T!==void 0?T:!this.state.filterPanelOpen;this.setState({filterPanelOpen:R,filterPositionY:x.clientY}),R&&MB.commonGuideHelper.checkGuideToBeShown($e.c.GUIDE_IMAGE_SLICING)&&!MB.commonGuideHelper.checkGuideHasShown($e.c.GUIDE_IMAGE_SLICING)&&(MB.commonGuideHelper.closeGuide($e.c.GUIDE_IMAGE_SLICING),MB.commonGuideHelper.markGuideAsRead($e.c.GUIDE_IMAGE_SLICING))}),(0,i.A)(this,"handleChangeFillType",x=>{const{dispatch:T,fillType:R}=this.props;R!==x&&T({type:"entry:image-view:fill-type",payload:{imageFillType:x}})})}componentDidMount(){const{isDesign:x,currentUser:T,canClipImage:R}=this.props;x&&T&&R&&Ir(T==null?void 0:T.created_at)&&MB.commonGuideHelper.tryToShowGuide($e.c.GUIDE_IMAGE_SLICING)}componentWillUnmount(){MB.commonGuideHelper.closeGuide($e.c.GUIDE_IMAGE_SLICING)}handleUpload(x){const{isExperience:T,isLoggedExperience:R,rootProject:q,currentUser:se,currentOrg:ge}=this.props;if(T||R){MB.notice({text:I18N.LibraryContainer.un_save_tips});return}(0,Xs.i3)({files:[x],rootProject:q,callback:Ne=>{this.props.dispatch({type:"entry:items:set:asset",payload:{asset:Ne}})},isFilterSvg:!1},se,ge)}render(){const{showImageDropPanel:x,image:T,filter:R,canClipImage:q,canSliceImage:se,canResetFilter:ge,currentImageOperateType:Ne,background:Ke,dispatch:it,fillType:dt,canSetFillType:jt,selectedImageItems:Ot}=this.props,{isActive:qt,isOpen:sn,filterPanelOpen:Wn,filterPositionY:kn}=this.state;if(!x)return null;const lo=Ke&&(0,Ls.bH)(Ke)?(0,Ls.bH)(Ke):"rgb(229, 229, 229)",Wo=q?this.IMAGE_SETTING_OPTIONS:this.IMAGE_SETTING_OPTIONS.filter(is=>is.value!==Nt.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()($e.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)(b.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)(b.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)(b.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}),jt&&(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:Wn}),name:"setting_panel/image_view/filter",tagName:"SVGIcon",content:I18N.SettingPanel.inspector.filter,onClick:this.handleToggleFilterPanelOpen}),Wn&&(0,t.jsx)(Ws,{y:kn,filter:R,canResetFilter:ge,selectedImageItems:Ot,onClose:is=>this.handleToggleFilterPanelOpen(is,!1),dispatch:it}),(0,t.jsx)(_r,{})]})]})}}var aa=e(55052),Ar=e(55514);const Pr={component:Tr,params:{},getter:[m=>{let{selectedItems:x,isLoggedExperience:T,isExperience:R,rootProject:q,currentUser:se,currentOrg:ge,isDesign:Ne,imageProps:{currentImageOperateType:Ke}}=m;const it=x.filter(Wn=>Wn.hotAttr.type===A.x.WImage),dt=(0,ot.i)(x,"image");if(!dt)return{showImageDropPanel:!1};const{imageClipType:jt,imageRef:Ot,imageFilter:qt}=dt,sn=(0,Ar.v)(dt);return{showImageDropPanel:!0,isLoggedExperience:T,isExperience:R,canShowResetImage:jt!=="none",clipType:jt,image:Ot,rootProject:q,background:(0,ot.i)(x,"background"),canClipImage:(0,aa.Dt)(x),canSliceImage:(0,aa.yS)(x),canResetFilter:qt,filter:qt,currentUser:se,currentOrg:ge,isDesign:Ne,currentImageOperateType:Ke,fillType:sn,canSetFillType:(0,aa.Ef)(x),selectedImageItems:it}}],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:x,onClose:T,fromType:R}=m;const q="treePanelFloat",se=(0,n.wA)(),{interactionTree:ge,editingInteraction2:Ne,itemKey:Ke,currentCanvas:it,isEditingCombo:dt,selectItaInfo:jt,editingPanelRefPage:Ot,selectInteractionKey:qt,selectTreeNode:sn,currentPath:Wn,selectCarouselImage:kn,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=x.type==="carousel"?"carousel":""+x.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)((ge==null||(ti=ge.sub[0])==null?void 0:ti.attr.trigger)||"tap")}else if((ge==null?void 0:ge.sub.length)===1){const Ts=(0,oi.zd)(ge.sub[0].sub);Ts.length<=1?Ts.length===1?(ai=(0,oi.zS)(Ts[0].attr.key,ge),ii=ai.attr,Ss="single"):(Ys=(0,oi.m1)(ge.sub[0].attr.trigger),Ss="empty"):Ss="multiple"}else Ss="multiple";const $s=Ss==="multiple"?480:240;(0,h.useLayoutEffect)(()=>{if(x){var Ts;if(((Ts=fs.current)==null?void 0:Ts.type)==="carousel"&&x.type==="carousel"&&fs.current.imageIndex===x.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="'+x.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=x,ps.current=Ss}},[x,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(Ke+"-"+kn,qt):lo==="optionData"&&oi.e4.setSelection(Ke+"-"+Wn,qt)},[Ke,se,Wn,kn,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 ge?(0,t.jsxs)(Hi.Provider,{value:{uiFrom:q,handleMove:Ca,position:Hs,interactionTree:ge,onClose:T,editingInteraction2:Ne,selectTreeNode:sn,interactionStore:Zo,itemKey:Ke,selectInteractionKey:qt,handleClickClose:qi,panelWidth:$s,currentCanvas:it,hadnleResize:bi,editingPanelRefPage:Ot,selectItaInfo:jt,isEditingCombo:dt,selectSubItaType:lo,selectCarouselImage:kn,currentPath:Wn,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)(Ze.A,{onMouseDown:qi,target:document})]}):null}),Vr=(0,h.memo)(()=>{const{uiFrom:m,interactionTree:x,onClose:T,itemKey:R,treePanelFloatRenderContentType:q,emptySelectInderactionKey:se,interactionStore:ge,selectTreeNode2:Ne}=(0,h.useContext)(Hi);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(ra.C,{uiFrom:m,onClose:T,interactionTree:x,interactionStore:ge,treePanelFloatContentType:q}),(0,t.jsx)(Ra.S,{itemKey:R,selectNode2:Ne,selectItaInfo:{type:"action",keyList:[]},interactionDummyKey:se,interactionTree:x,interactionStore:ge,uiFrom:m})]})}),Hr=(0,h.memo)(()=>{const{uiFrom:m,interactionTree:x,onClose:T,interactionStore:R,itemKey:q,currentCanvas:se,treePanelFloatRenderContentType:ge,singleEditingInteraction2:Ne,singleSelectTreeNode:Ke,adaptTopPosition:it}=(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:x,interactionStore:R,selectTreeNode:Ke,treePanelFloatContentType:ge}),(0,t.jsx)(Oa.A,{link:Ne,currentCanvas:se,currentWidgetKey:q,hasTrash:!0,interactionTree:x,interactionStore:R,selectTreeNode:Ke,uiFrom:m,isNewTriggerPlaceHolder:!1,adaptTopPosition:it})]})}),Ur=(0,h.memo)(()=>{const{uiFrom:m,interactionTree:x,editingInteraction2:T,interactionStore:R,selectTreeNode:q,onClose:se,itemKey:ge,selectInteractionKey:Ne,editingPanelRefPage:Ke,selectItaInfo:it,currentCanvas:dt,isEditingCombo:jt,selectSubItaType:Ot,selectCarouselImage:qt,currentPath:sn,hadnleResize:Wn,treePanelFloatRenderContentType:kn,selectTreeNode2:lo}=(0,h.useContext)(Hi),Wo=(0,h.useMemo)(()=>Ot==="carouselImage"?ge+"-"+qt:Ot==="optionData"?ge+"-"+sn:ge,[Ot,qt,sn,ge]),{collapseList:Zo,handleCollapse:Yo}=(0,Ba.zi)({cacheKey:Wo,interactionTree:x}),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=>Wn(os,"top")}),(0,t.jsx)(ra.C,{uiFrom:m,onClose:se,interactionTree:x,interactionStore:R,selectTreeNode:q,treePanelFloatContentType:kn}),(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:x,interactionStore:R,itemKey:ge}),x?(0,t.jsx)(Dr.L,{currentWidgetKey:ge,interactionTree:x,selectInteractionKey:Ne,editingPanelRefPage:Ke,uiFrom:m,collapseList:Zo,handleCollapse:Yo,interactionStore:R,extraClick:is,onCloseCallback:se,isEditingCombo:jt}):(0,t.jsx)(Or.U,{isEditingCombo:jt,showImg:!1,openEditorFloat:!1,uiFrom:m,interactionStore:R})]}),(0,t.jsx)("div",{className:"editor-container",children:it.type==="trigger"||it.type==="action"?(0,t.jsx)(Ra.S,{selectNode2:lo,selectItaInfo:it,interactionDummyKey:Ne,interactionTree:x,interactionStore:R,uiFrom:m}):T?(0,t.jsx)(Oa.A,{link:T,currentCanvas:dt,currentWidgetKey:ge,hasTrash:!0,interactionTree:x,interactionStore:R,selectTreeNode:q,uiFrom:m}):null})]}),(0,t.jsx)("div",{className:"tree-float-resizer bottom",onMouseDown:os=>Wn(os,"bottom")})]})}),ja=m=>{let{onClose:x,anchorMeta:T,fromType:R}=m;const q=(0,n.wA)(),se=()=>{x(),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(x){var T;super(x),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:ge,rootProject:Ne,currentUser:Ke,currentOrg:it}=this.props;if(se||ge){MB.notice({text:I18N.LibraryContainer.un_save_tips});return}(0,Xs.i3)({files:R,rootProject:Ne,callback:dt=>q(dt.image)},Ke,it)}),(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:ge}=this.state;ge&&((q=this.$element)!=null&&q.contains(se)||se.closest(".list-content")||this.handleToggle(!1))}),this.state={isListItemGroup:!1}}handStopPropagation(x){x.stopPropagation()}render(){const{assetIndex:x,isHasAsset:T,onUploadByLibrary:R,onRemove:q,onOpenAutoFillPanel:se}=this.props,{isListItemGroup:ge}=this.state;return(0,t.jsxs)("div",{ref:this.setListElementRef,className:p()("asset-menu-btn",{hover:ge}),onMouseDown:this.handStopPropagation,onClick:this.handleClickAction,children:[(0,t.jsx)(b.C,{name:"design/templates/temp-btn",className:"library-menu"}),ge&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Zr,{isHasAsset:T,assetIndex:x,targetNode:this.$element,onUpload:this.handleAssetUpload,onUploadByLibrary:R,onRemove:q,onClose:()=>this.handleToggle(!1),onOpenAutoFillPanel:se}),(0,t.jsx)(Ze.A,{target:document,onMouseDown:(0,Ze.t)(this.handleDocDown,{capture:!0})})]}),(0,t.jsx)(zr.A,{ref:this.setInputRef,onChange:this.handleDropUpload})]})}}class Zr extends h.PureComponent{constructor(x){super(x),(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:x}=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:x,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",x=>this.mask=x),(0,i.A)(this,"calDragDelta",(x,T,R,q)=>[x-R,T-q]),(0,i.A)(this,"handleDragAssetStart",x=>{const T=Number(x.currentTarget.dataset.index);this.setState({dragIndex:T});const{pageX:R,pageY:q}=x,se=Ne=>{const Ke=this.calDragDelta(Ne.pageX,Ne.pageY,R,q),{assets:it}=this.state,{newOrder:dt}=ca(Ke,T,it.length);this.setState({orderThroughDrag:dt,dragDelta:Ke})},ge=Ne=>{window.removeEventListener("mousemove",se),window.removeEventListener("mouseup",ge);const Ke=this.calDragDelta(Ne.pageX,Ne.pageY,R,q),{assets:it}=this.state,{newOrder:dt}=ca(Ke,T,it.length);this.popChangeOfReorder(dt)};window.addEventListener("mousemove",se),window.addEventListener("mouseup",ge)}),(0,i.A)(this,"popChangeOfReorder",x=>{const{assets:T}=this.state,R=Xr(T,x);JSON.stringify(R)===JSON.stringify(T)?this.setState({needForceUpdate:!0}):this.props.handleChange(R)}),(0,i.A)(this,"handleManageAsset",(x,T)=>{x.stopPropagation();const R=x.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",(x,T)=>{x.stopPropagation();const R=x.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",x=>{this.props.dispatch({type:"entry:replace:carousel:image",payload:{image:x}})}),(0,i.A)(this,"handleAssetUploadStart",x=>{this.props.dispatch({type:"setting:select:carousel:image",payload:{selectCarouselImageIndex:x}})}),(0,i.A)(this,"handleOpenEditLink",x=>{x.stopPropagation();const T=Number(x.currentTarget.dataset.index),{dispatch:R}=this.props;R({type:"setting:select:carousel:image",payload:{selectCarouselImageIndex:T}}),this.setState({showLinkEditor:!0,linkPositionY:x.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",x=>{this.setState({showLinkEditor:!1,imageIndex:-1}),this.props.dispatch({type:"settings:update:state",payload:{isShowLinkPanel:!1}})}),(0,i.A)(this,"handleClick",x=>{x.stopPropagation(),this.setState({selectedIndex:parseInt(x.currentTarget.dataset.index)}),this.props.dispatch({type:"entry:carousel:image:displayIndex:update",payload:Number(x.currentTarget.dataset.index)}),this.props.dispatch({type:"setting:select:carousel:image",payload:{selectCarouselImageIndex:Number(x.currentTarget.dataset.index)}})}),(0,i.A)(this,"genAssetsViewer",(x,T)=>{let{asset:R,linkCids:q,fillType:se}=x;const{dragIndex:ge,orderThroughDrag:Ne,dragDelta:Ke,showLinkEditor:it}=this.state,{carouselImageIndex:dt,theme:jt,isExperience:Ot,isLoggedExperience:qt,rootProject:sn,currentUser:Wn,currentOrg:kn,innerLinks:lo}=this.props,Wo=ge===T,Zo=it&&dt===T,{hasUiInteractiveIta:Yo}=(0,oi.HW)(lo,q),is=Yo;let os,es;if(Wo){const ns=Di(ge);os=ns[0]+Ke[0],es=ns[1]+Ke[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[jt],fillType:se}),(0,t.jsx)(Gr,{isLoggedExperience:qt,isExperience:Ot,isHasAsset:!!R,assetIndex:T,rootProject:sn,onUploadStart:this.handleAssetUploadStart,onUploadEnd:this.handleAssetUploadEnd,onRemove:this.handleDeleteAsset,onUploadByLibrary:this.handleManageAsset,currentUser:Wn,currentOrg:kn,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",x=>{const{assets:T}=this.state,R=[...T,{asset:(0,oa.q4)("Carousel",x).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",x=>x.stopPropagation()),(0,i.A)(this,"handleDeleteAsset",x=>{const{assets:T}=this.state,R=[...T.slice(0,x),...T.slice(x+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",x=>{x.stopPropagation(),x.preventDefault(),this.mask.classList.add("active"),x.nativeEvent.dataTransfer.dropEffect="copy"}),(0,i.A)(this,"handleDropUpload",x=>{x.stopPropagation(),x.preventDefault();const{rootProject:T,currentUser:R,currentOrg:q}=this.props;this.mask.classList.remove("active"),(0,Xs.i3)({files:x.nativeEvent.dataTransfer.files,rootProject:T,callback:se=>this.handleAddSlides(se.image)},R,q)})}static getDerivedStateFromProps(x,T){return T.needForceUpdate||x.assets!==T.assets?{assets:x.assets,dragIndex:null,dragDelta:[0,0],orderThroughDrag:Ui(x.assets.length),needForceUpdate:!1}:T}componentWillUnmount(){this.props.dispatch({type:"setting:select:carousel:image",payload:{selectCarouselImageIndex:null}})}render(){const{assets:x,dragIndex:T,orderThroughDrag:R,showLinkEditor:q,imageIndex:se}=this.state,{height:ge,verticalMargin:Ne,countInRow:Ke}=Ni,it=Math.ceil((x.length+1)/Ke)*(ge+Ne)-Ne,dt=Di(x.length),jt={transform:"translate("+dt[0]+"px, "+dt[1]+"px)"},Ot=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:it+"px"},onDragOver:this.handleDragUploadOver,children:[x.map(this.genAssetsViewer),(0,t.jsx)("div",{className:"add-asset asset-box",style:jt,onClick:this.handleAddAsset,children:Qr}),Ot&&(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:x,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:x,height:T,horizontalMargin:R,verticalMargin:q,countInRow:se}=Ni,ge=Math.floor(m/se),Ne=m%se;return[(x+R)*Ne,(T+q)*ge]},Ui=m=>{const x=[];for(let T=0;T{const R=m.slice(x,x+1)[0],q=[...m.slice(0,x),...m.slice(x+1)];return[...q.slice(0,T),R,...q.slice(T)]},ca=(m,x,T)=>{let[R,q]=m;const[se,ge]=Di(x),Ne=[se+R,ge+q],{width:Ke,height:it,horizontalMargin:dt,verticalMargin:jt,countInRow:Ot}=Ni,qt=Math.min(Math.ceil(T/Ot)-1,Math.max(0,Math.floor(Ne[1]/(it+jt)))),sn=Math.min(2,Math.max(0,Math.floor(Ne[0]/(Ke+dt)))),Wn=qt*Ot+sn,kn=Ui(T),lo=Fa(kn,x,Wn);return{newDragIndex:Wn,newOrder:lo}},Xr=(m,x)=>x.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),fo=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",(x,T)=>{const{onChange:R,dispatch:q,selections:se}=this.props;R({value:x,attr:T,dispatch:q,selections:se})}),(0,i.A)(this,"handleChangeCarousel",(x,T,R)=>{const{onChange:q,dispatch:se,selections:ge}=this.props;q({value:x,attr:T,dispatch:se,supAttr:"carousel",selections:ge,refVar:R})}),(0,i.A)(this,"handleAssetsChange",x=>this.handleChangeCarousel(x,"slides")),(0,i.A)(this,"handleDirectionChange",x=>this.handleChangeCarousel(x==="vertical","vertical")),(0,i.A)(this,"handleIntervalChange",x=>this.handleChangeCarousel(Number(x),"interval")),(0,i.A)(this,"handleAutoShiftChange",(x,T)=>this.handleChangeCarousel(x,"autoShift",T)),(0,i.A)(this,"handlePointersVisibilityChange",x=>this.handleChangeCarousel(x,"showPointers"))}render(){var x;const{carousel:T,carouselImageIndex:R,dispatch:q,theme:se,borderRadius:ge,borderRadiusIsVisible:Ne,isLoggedExperience:Ke,isExperience:it,rootProject:dt,currentUser:jt,currentOrg:Ot,onChange:qt,node:sn,selections:Wn,isEditingCombo:kn,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,kn,lo),ps=Zo==null||(x=Zo.carousel)==null?void 0:x.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:Ke,isExperience:it,rootProject:dt,currentUser:jt,currentOrg:Ot,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)(Ae.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:ge,borderRadiusIsVisible:Ne,onChange:qt,dispatch:q,selections:Wn,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)(fo.R_,{mode:"input",className:fo.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)(fo.R_,{mode:"input",className:fo.EY+" point-bg",supAttr:"carousel",attr:"pointerFg",color:Es,onChange:this.handleChangeCarousel})})]})]})]})]})}}const tl=(0,n.Ng)(m=>{const x=(0,c.PL)(m),T=(0,c.HW)(m),R=(0,c.wA)(m),q=(0,w.oO)(m),se=(0,w.jI)(m),ge=(0,pa.UV)(m),Ne=(0,u.Yg)(m),Ke=(0,da.O4)(m);return{rootProject:x,currentUser:T,currentOrg:R,carouselImageIndex:Ne,theme:Ke,isEditingCombo:q,editingPanelCid:se,widgetStore:ge}})(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:x,isLoggedExperience:T,isExperience:R}=m;const q=x[0],{borderRadius:se,carousel:ge,borderRadiusIsVisible:Ne}=q.hotAttr;return{isExperience:R,isLoggedExperience:T,carousel:ge,borderRadius:se,borderRadiusIsVisible:Ne,node:q,refVars:{carousel:(0,Bt.xj)(x,"carousel",["autoShift"]),borderRadius:(0,Bt.xj)(x,"borderRadius")}}}],setter:{onChange:gt.c}},il=()=>[qr,[sl,"CarouselInfo"]],Ha=m=>{let{children:x}=m;return(0,t.jsx)("div",{children:x})},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)(b.C,{className:"slider-icon",name:"setting_panel/fixedSlider/slider_hh"}),ha=(0,t.jsx)(b.C,{className:"slider-icon",name:"setting_panel/fixedSlider/slider_fh"});class ll extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleHeaderHeight",x=>{const{fh:T,canvasHeight:R,onChange:q,dispatch:se,selections:ge}=this.props;x+T>R-14&&(x=R-T-14),q({value:x,attr:"stickyHeaderHeight",dispatch:se,selections:ge}),(0,Ce.A9)({attr:"stickyHeaderHeight"})}),(0,i.A)(this,"handleHiddenNumberLineType",()=>{const{dispatch:x}=this.props;x({type:"set:numberLineType:show",payload:{type:""}})}),(0,i.A)(this,"handleBeforeNumberLineTypeForHh",()=>{const{dispatch:x}=this.props;x({type:"set:numberLineType:show",payload:{type:"hh"}})}),(0,i.A)(this,"handleBeforeNumberLineTypeForFh",()=>{const{dispatch:x}=this.props;x({type:"set:numberLineType:show",payload:{type:"fh"}})}),(0,i.A)(this,"handleFooterHeight",x=>{const{hh:T,canvasHeight:R,onChange:q,dispatch:se,selections:ge}=this.props;x+T>R-14&&(x=R-T-14),q({value:x,attr:"stickyFooterHeight",dispatch:se,selections:ge}),(0,Ce.A9)({attr:"stickyFooterHeight"})})}render(){const{show:x,hh:T,fh:R,isShowMultipleFh:q,isShowMultipleHh:se,placeholderHh:ge,placeholderFh:Ne}=this.props;return x?(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)(Ee.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:ge,onConfirm:this.handleHeaderHeight,onAfterChangeValue:this.handleHiddenNumberLineType,onBeforeChangeValue:this.handleBeforeNumberLineTypeForHh}),(0,t.jsx)(Ee.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:x,editingPanelCid:T,editingPanelRefPage:R}=m;const q=x[0].hotAttr,se=new Set(x.map(dt=>dt.hotAttr.stickyHeaderHeight)).size!==1,ge=new Set(x.map(dt=>dt.hotAttr.stickyFooterHeight)).size!==1,Ne=!T&&!R,Ke=se?I18N.SettingPanel.multiple_value:"",it=ge?I18N.SettingPanel.multiple_value:"";return{show:Ne,hh:q.stickyHeaderHeight,fh:q.stickyFooterHeight,canvasHeight:q.h,isShowMultipleHh:se,isShowMultipleFh:ge,placeholderHh:Ke,placeholderFh:it}}],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:x,placeholder:T,handleURLChange:R,handleContentBoxBlur:q}=m;return(0,t.jsx)(hl,{children:(0,t.jsx)(Kn.A,{placeholder:T,content:x,onChange:R,onBlur:q})})},Ka=m=>{const x=(R,q)=>{const{onChange:se,dispatch:ge,selections:Ne}=m;se({value:R,attr:q,dispatch:ge,supAttr:"webpage",selections:Ne})},T=R=>{x(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,Ct.Yt)(ul,!0,Ct.qW.Boolean)}),(0,i.A)(this,"handleChange",()=>{const{show:x}=this.state;(0,Ct.a0)(ul,!x,Ct.qW.Boolean),this.setState({show:!x})})}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:x}=m;const{url:T}=(0,ot.i)(x,"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+"

",x=I18N.SettingPanel.tip_on_online_video_platform+m;return(0,t.jsxs)(vl,{children:[(0,t.jsx)("p",{dangerouslySetInnerHTML:{__html:x}}),(0,t.jsxs)("div",{className:"icon-wrapper",children:[(0,t.jsx)(b.C,{name:"setting_panel/video/link",className:"colorful-svg"}),(0,t.jsx)(b.C,{name:"setting_panel/video/youku",className:"colorful-svg"}),(0,t.jsx)(b.C,{name:"setting_panel/video/bilibili",className:"colorful-svg"}),(0,t.jsx)(b.C,{name:"setting_panel/video/tencent",className:"colorful-svg"})]})]})};class Cl extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,Ct.Yt)(za,!0,Ct.qW.Boolean)}),(0,i.A)(this,"handleChange",()=>{const{show:x}=this.state;(0,Ct.a0)(za,!x,Ct.qW.Boolean),this.setState({show:!x})})}render(){const x=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:x,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:x,placeholder:T,handleURLChange:R,handleContentBoxBlur:q}=m;return(0,t.jsx)(Zi,{children:(0,t.jsx)(Kn.A,{placeholder:T,content:x,onChange:R,onBlur:q})})};var Ga=e(55135);const ci={component:m=>{const{videoSrc:x,isAutoplay:T,isLoop:R,isMuted:q,isHideControls:se,onChange:ge,dispatch:Ne,selections:Ke}=m,it=Ot=>{m.onChange({value:Ot[0],attr:"videoSrc",dispatch:m.dispatch,supAttr:"video",selections:Ke})},dt=(Ot,qt)=>{ge({value:Ot,attr:qt,supAttr:"video",dispatch:Ne,selections:Ke})},jt=Ot=>{const qt=I18N.SettingPanel.video_insert_succeed,sn=I18N.SettingPanel.video_insert_fail;(0,Ga.dB)(Ot[0])?MB.notice({text:qt}):MB.notice({text:sn})};return(0,t.jsxs)(yl,{children:[(0,t.jsx)(Yi,{url:x,placeholder:I18N.SettingPanel.video_url_setting_placeholder,handleURLChange:it,handleContentBoxBlur:jt}),(0,t.jsxs)("div",{className:"video-settings-checkboxes",children:[(0,t.jsx)(bt.A,{label:I18N.SettingPanel.autoplay,className:bt.p,attr:"isAutoplay",name:"autoplay",isChecked:T,onChange:dt}),(0,t.jsx)(bt.A,{label:I18N.SettingPanel.loop,className:bt.p,attr:"isLoop",name:"loop",isChecked:R,onChange:dt}),(0,t.jsx)(bt.A,{label:I18N.SettingPanel.muted,className:bt.p,attr:"isMuted",name:"muted",isChecked:q,onChange:dt}),(0,t.jsx)(bt.A,{label:I18N.SettingPanel.hide_controls,className:bt.p,attr:"isHideControls",name:"hide-controls",isChecked:se,onChange:dt})]})]})},params:{},getter:[m=>{let{selectedItems:x}=m;const{video:T}=x[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,Ct.Yt)(Ya,!0,Ct.qW.Boolean)}),(0,i.A)(this,"handleChange",()=>{const{show:x}=this.state;(0,Ct.a0)(Ya,!x,Ct.qW.Boolean),this.setState({show:!x})})}render(){const{show:x}=this.state;return(0,t.jsx)(Sl,{className:"audio-panel-container",title:I18N.SettingPanel.inspector.audio,collapse:!x,renderTips:Il,onChange:this.handleChange,children:this.props.children})}}var Xa=e(90141);const Al=m=>{try{const x=new URL(m);if(!Xa.YV.includes(x.href.split(".").slice(-1).join())||!Xa.BF.includes(x.protocol))return!1}catch(x){return!1}return!0},Pl={component:m=>{const{isHidden:x,audioSrc:T,isAutoplay:R,isLoop:q,isKeepAlive:se,onChange:ge,dispatch:Ne,selections:Ke}=m,it=Ot=>{m.onChange({value:Ot[0],attr:"audioSrc",dispatch:m.dispatch,supAttr:"audio",selections:Ke})},dt=(Ot,qt)=>{ge({value:Ot,attr:qt,supAttr:"audio",dispatch:Ne,selections:Ke})},jt=Ot=>{const qt=I18N.SettingPanel.audio_insert_succeed,sn=I18N.SettingPanel.audio_insert_fail;Al(Ot[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:it,handleContentBoxBlur:jt}),(0,t.jsxs)("div",{className:"audio-settings-checkboxes",children:[(0,t.jsx)(bt.A,{label:I18N.SettingPanel.autoplay,className:bt.p,attr:"isAutoplay",name:"autoplay",isChecked:R,onChange:dt}),(0,t.jsx)(bt.A,{label:I18N.SettingPanel.loop,className:bt.p,attr:"isLoop",name:"loop",isChecked:q,onChange:dt}),(0,t.jsx)(bt.A,{label:I18N.SettingPanel.keep_alive,className:bt.p,attr:"isKeepAlive",name:"keep-alive",isChecked:se,onChange:dt}),(0,t.jsx)(bt.A,{label:I18N.SettingPanel.hide_player,className:bt.p,attr:"isHidden",name:"hidden",isChecked:x,onChange:dt})]})]})},params:{},getter:[m=>{let{selectedItems:x}=m;const T=x[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,Ct.Yt)($a,!0,Ct.qW.Boolean)}),(0,i.A)(this,"handleChange",()=>{const{show:x}=this.state;(0,Ct.a0)($a,!x,Ct.qW.Boolean),this.setState({show:!x})})}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 x=(R,q)=>{const{onChange:se,dispatch:ge,selections:Ne}=m;se({value:R,attr:q,dispatch:ge,supAttr:"qrCode",selections:Ne})},T=R=>{x(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:x}=m;const{content:T}=(0,ot.i)(x,"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:x,borderName:T,handleChange:R,supAttr:q,refStyles:se}=this.props,{bdrColor:ge,bdrWidth:Ne,bdrIsVisible:Ke}=x,it=(0,t.jsx)(Ee.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)(bt.A,{attr:"bdrIsVisible",className:bt.p,isChecked:Ke,onChange:R}),(0,t.jsx)("label",{className:"left-label",children:T})]}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,attr:"bdrColor",supAttr:q,color:ge,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}),it]})]})}}(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",(x,T)=>{const{dispatch:R}=this.props;T==="rowCount"&&R({type:"entry:table:change:rows",payload:x}),T==="colCount"&&R({type:"entry:table:change:columns",payload:x}),this.handleChange(x,T)}),(0,i.A)(this,"handleChange",(x,T)=>{const{onChange:R,dispatch:q,selections:se}=this.props;R({value:x,attr:T,dispatch:q,supAttr:"tableConfig",selections:se})}),(0,i.A)(this,"handleOuterBorderChange",(x,T)=>{const{tableConfig:R}=this.props,se={...R.outerBorder,[T]:x};this.handleChange(se,"outerBorder")}),(0,i.A)(this,"handleInnerBorderHChange",(x,T)=>{const{tableConfig:R}=this.props,se={...R.innerBorderH,[T]:x};this.handleChange(se,"innerBorderH")}),(0,i.A)(this,"handleInnerBorderVChange",(x,T)=>{const{tableConfig:R}=this.props,se={...R.innerBorderV,[T]:x};this.handleChange(se,"innerBorderV")})}render(){const{refStyles:x,tableConfig:T}=this.props,{innerBorderV:R,innerBorderH:q,outerBorder:se,rowCount:ge,colCount:Ne}=T;return(0,t.jsxs)(ga,{children:[(0,t.jsxs)("div",{className:"general-line tableDimension",children:[(0,t.jsx)(Ee.A,{className:"general-input",title:I18N.SettingPanel.row,attr:"rowCount",value:ge,min:1,max:99999,onConfirm:this.handleDimensions}),(0,t.jsx)(Ee.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:x,handleChange:this.handleOuterBorderChange}),(0,t.jsx)(Mi,{canBorderWidth:!0,borderName:I18N.SettingPanel.table_horizontal,border:q,width:0,height:0,supAttr:"tableConfig-innerBorderH",refStyles:x,handleChange:this.handleInnerBorderHChange}),(0,t.jsx)(Mi,{canBorderWidth:!0,borderName:I18N.SettingPanel.table_vertical,border:R,width:0,height:0,supAttr:"tableConfig-innerBorderV",refStyles:x,handleChange:this.handleInnerBorderVChange})]})})]})}}const Wl={component:jl,params:{},getter:[m=>{let{selectedItems:x}=m;const T=(0,ot.i)(x,"tableConfig"),R=(0,ot.i)(x,"!version"),q=(0,ot.i)(x,"refStyles");return R===3&&(T.rowCount=(0,ot.i)(x,"heightList").length,T.colCount=(0,ot.i)(x,"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,Ct.Yt)(zs,!0,Ct.qW.Boolean)})}shouldComponentUpdate(x,T,R){return this.props.isDraggingItem?!1:(0,B.N)(Fl).call(this,x,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",x=>this.$item=x),(0,i.A)(this,"setInputElementRef",x=>this.$input=x),(0,i.A)(this,"handleToggleFocus",()=>{this.setState({isFocus:!this.state.isFocus})}),(0,i.A)(this,"handleFocus",x=>{const{hasMissFontHi:T}=this.props;if(x.preventDefault(),x.stopPropagation(),T){x.target.blur(),MB.action(Ri.y.entryKey["font:miss:modal:open"]);return}x.target.select(),this.handleToggleFocus()}),(0,i.A)(this,"handleBlur",()=>{this.handleToggleFocus()}),(0,i.A)(this,"handleContentEditableDivFocus",x=>{const{hasMissFontHi:T}=this.props;if(T){x.target.blur(),MB.action(Ri.y.entryKey["font:miss:modal:open"]);return}window.getSelection().selectAllChildren(x.target),this.handleToggleFocus()}),(0,i.A)(this,"handleContentEditableDivBlur",x=>{window.getSelection().empty(),this.handleContentEditableDivChange(x),this.handleToggleFocus()}),(0,i.A)(this,"handleChangeName",x=>{const{node:T,parent:R,path:q,onUpdate:se}=this.props,ge={...T.data,name:x.target.value};se({data:ge,parent:R,path:q})}),(0,i.A)(this,"handleContentEditableDivChange",x=>{const{node:T,parent:R,path:q,onUpdate:se}=this.props,ge={...T.data,name:x.target.textContent};se({data:ge,parent:R,path:q})}),(0,i.A)(this,"handleMouseDown",x=>{const{onMouseDown:T,node:R,parent:q,level:se,path:ge}=this.props;T(x,R,q,this.$item,se,ge)}),(0,i.A)(this,"handleExpand",x=>{x.stopPropagation();const{node:T,onUpdate:R,parent:q,path:se}=this.props,ge={...T.data,expanded:!T.data.expanded};R({data:ge,parent:q,path:se})}),(0,i.A)(this,"handleOpenLinkPanel",x=>{const{onOpenLinkPanel:T,node:R,path:q}=this.props;T({y:x.clientY,node:R,path:q,e:x})}),(0,i.A)(this,"handleSetSelectedValue",()=>{const{onSetSelectedValue:x,node:T,path:R}=this.props;x({node:T,path:R})}),(0,i.A)(this,"handleExpandIconPanel",x=>{const{onClickableIconPanel:T,node:R,path:q}=this.props;T({y:x.clientY,node:R,path:q})}),(0,i.A)(this,"handleBlurInput",x=>{const{key:T,shiftKey:R}=x,q=T===" ";T===Qi._.Enter&&!R&&x.target.blur(),q&&(0,Qt.kI)(x)}),(0,i.A)(this,"handlePaste",x=>{x.stopPropagation(),x.preventDefault();let T="";const R=x.originalEvent||x;R.clipboardData&&R.clipboardData.getData&&(T=R.clipboardData.getData("text/plain")),document.execCommand("insertText",!1,T)}),(0,i.A)(this,"handleRemove",x=>{const{path:T,parent:R,dispatch:q,onRemoveChildItems:se}=this.props;x.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:x,path:T,parent:R,node:q,node:{children:se,data:{linkCids:ge,expanded:Ne,name:Ke,icon:it}},level:dt,maxLevel:jt,minDepth:Ot,innerLinks:qt,type:sn,onAddChildItems:Wn,onRemoveChildItems:kn,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===A.x.WTree?Hs=!0:Hs=it&&dt===1;const ji=Ot>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&&dtOt,{firstUiInteractiveIta:_a}=(0,oi.HW)(qt,ge),Us=it!=null&&it.path?it:sn===A.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>=jt}),onMouseDown:this.handleMouseDown,style:Sa,children:[(0,t.jsx)("span",{className:p()("dragHandArea",{hasExpand:ni}),children:(0,t.jsx)(b.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)(b.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(""],Se=new WeakMap,xe=(le,me,Pe)=>{let pe=Se.get(me);return pe===void 0&&(le=le.replace(/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,"").replace(/#iefix&/g,"").replace(oe,""),pe=(0,X.wE)(le),Se.set(me,pe)),(0,G.l)(pe,(ke,We,Ee,Ae)=>{if(ke.type==="@keyframes"||ke.type==="@-webkit-keyframes")return"";if(ke.type==="rule"){let Ce=0;for(const _e of ke.props)Pe.isUseless(_e)&&Ce++;if(Ce===ke.props.length)return""}return(0,G.A)(ke,We,Ee,Ae)})},be=new WeakMap,ie=(le,me)=>{let Pe=be.get(le);return Pe===void 0&&(Pe=he(le),be.set(le,Pe)),me.isUselessCSSR(Pe)},oe=/[^\x09\x0A\x0D\x20-\xFF\x85\xA0-\uD7FF\uE000-\uFDCF\uFDE0-\uFFFD\u{10000}-\u{10FFFF}]/gmu,ue="\ninput { -webkit-appearance: textfield; -moz-appearance: textfield; }\nselect { -webkit-appearance: menulist; -moz-appearance: menulist; }\n",ve=le=>{let{domStringList:me,width:Pe,height:pe}=le;return['','',...me,"",'Feature not supported',""]},re=le=>{let{imageSrc:me,width:Pe,height:pe}=le;return new Promise((ke,We)=>{const Ee=Z.createElement("img");Ee.addEventListener("error",We),Ee.addEventListener("load",()=>ke(Ee)),Ee.crossOrigin="anonymous",Ee.width=Pe,Ee.height=pe,Ee.src=me})},fe=le=>{let{imageElement:me,width:Pe,height:pe}=le;return new Promise(ke=>{const We=Z.createElement("canvas");We.width=Pe,We.height=pe,setTimeout(()=>{We.getContext("2d").drawImage(me,0,0),ke(We)},0)})},{document:we}=window,Te=async le=>{let{element:me,width:Pe,height:pe,presetFontsSet:ke}=le;if(!me)throw new Error("invalid element: "+me);if(Pe=parseInt(Pe||me.style.width.endsWith("px")&&me.style.width||me.offsetWidth),pe=parseInt(pe||me.style.height.endsWith("px")&&me.style.height||me.offsetHeight),!Pe||!pe)throw new Error("can not get output size: width: "+Pe+", height: "+pe);const We=[new window.XMLSerializer().serializeToString(me)];return Ie({htmlSourceList:We,width:Pe,height:pe,presetFontsSet:ke})},Ie=async le=>{let{htmlSourceList:me,width:Pe,height:pe,presetFontsSet:ke}=le;if(!Array.isArray(me))throw new Error("invalid htmlSourceList: "+me);if(!Pe||!pe)throw new Error("invalid size: width: "+Pe+", height: "+pe);const We=st=>Object.entries(st.fontFaceMap).forEach(at=>{let[ct,rt]=at;if(ke&&!ke.has(ct))return rt.forEach(ft=>{ft.isIgnore===void 0&&(ft.isIgnore=!0)});let At=null,ot=null;rt.forEach(ft=>{At=At||(ft.urlString.includes("woff2")?ft:null),ot=ot||(ft.urlString.includes("woff")?ft:null)});let Tt=!1;rt.forEach(ft=>{At&&ft!==At||ot&&ft!==ot?ft.isIgnore=!0:(ft.isIgnore=Tt,Tt=!0)})}),Ee="DOMS"+Date.now().toString(36).slice(-4);performance.mark(Ee+":start");const Ae=te(me.join(""));performance.mark(Ee+":nameSetConf-done");const Ce=[],_e=await Promise.all(Array.from(we.getElementsByTagName("link")).filter(st=>st.rel==="stylesheet"&&st.href).map(st=>(async()=>[await i(st.href),st])()));performance.mark(Ee+":cssLinkPair-done");for(const[st,at]of _e){const ct=xe(st,at,Ae);Ce.push([ct,at.href])}for(const st of Array.from(we.getElementsByTagName("style")))if(st.innerHTML.length!==0){const at=xe(st.innerHTML,st,Ae);Ce.push([at,""])}else if(st.sheet)for(let at=0,ct=st.sheet.cssRules.length;atpt.collect(st,""));const Ye=pt.getOutput();We(Ye);const Qe=J(await a(Ye));performance.measure(Ee+":htmlString",Ee+":cssString-done"),performance.mark(Ee+":htmlString-done");const tt=["data:image/svg+xml;charset=UTF-8,",...ve({domStringList:[...Ue,...Qe],width:Pe,height:pe}).map(st=>encodeURIComponent(st))].join("");performance.measure(Ee+":imageSrc",Ee+":htmlString-done"),performance.mark(Ee+":imageSrc-done");const qe=await re({imageSrc:tt,width:Pe,height:pe});performance.measure(Ee+":imageElement",Ee+":imageSrc-done");const et=await fe({imageElement:qe,width:Pe,height:pe});return performance.measure(Ee,Ee+":start"),{fetchPngBlob:()=>new Promise((st,at)=>et.toBlob(ct=>ct?st(ct):at(new Error("missing pngBlob")))),cssStringList:Ue,htmlStringList:Qe,imageSrc:tt}}},62485:(Fe,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(w,u){w===void 0&&(w=r);let{type:d,payload:y}=u;switch(d){case"draft:update:state":return(0,n.O1)(w,y);default:return w}}},62490:(Fe,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:(Fe,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:(Fe,ee,e)=>{"use strict";e.d(ee,{X:()=>i});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),w=e(83199),u=e(67787),d=e(79150);const y=(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:C}=this.props;return(0,h.jsx)(w.A,{content:l?I18N.Resources.stared:I18N.Resources.star,direction:"down",children:(0,h.jsx)(y,{name:C||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:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>s});var n=e(38502),r=Object.defineProperty,c=Object.defineProperties,o=Object.getOwnPropertyDescriptors,w=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,y=(l,C,v)=>C in l?r(l,C,{enumerable:!0,configurable:!0,writable:!0,value:v}):l[C]=v,h=(l,C)=>{for(var v in C||(C={}))u.call(C,v)&&y(l,v,C[v]);if(w)for(var v of w(C))d.call(C,v)&&y(l,v,C[v]);return l},i=(l,C)=>c(l,o(C)),f=(l,C)=>{var v={};for(var a in l)u.call(l,a)&&C.indexOf(a)<0&&(v[a]=l[a]);if(l!=null&&w)for(var a of w(l))C.indexOf(a)<0&&d.call(l,a)&&(v[a]=l[a]);return v},s=(0,n.forwardRef)((l,C)=>{var v=l,{size:a,spin:P,style:b}=v,g=f(v,["size","spin","style"]);const S=h(h({width:a||"var(--x-icon-size, 1em)",height:a||"var(--x-icon-size, 1em)",animation:P?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),b);return n.createElement("svg",i(h({ref:C,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:(Fe,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:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>l});var n=e(38502),r=e(67787),c=e(53732),o=e.n(c),w=e(87332),u=e(9680),d=e(92414),y=e(91137),h=e(72214);const i=[".var-selector.is-active",".var-dropmenu",".var-editor",".var-add-menubox"],f={distance:0,offsetX:-32},p=C=>{let{filterTypes:v,value:a,className:P,style:b,showName:g,menuWidth:S=220,menuProps:t=f,disabled:_,onChange:I,onClickoutside:k}=C;const j=(0,n.useRef)(null),z=(0,n.useRef)(null),K=a?(0,u.hZ)(a):null,$=K==null?void 0:K.isTrashed,A=(H,Q)=>{if(U(),!H)return I==null?void 0:I();sdkStore.getHotItem(H)&&(I==null||I(H,Q))},E=H=>{var Q;if((Q=H.target)!=null&&Q.closest(".var-context-menu")){var N;return(N=j.current)==null||N.setState({isMenuShow:!1}),!0}return H&&i.some(L=>{var V;return(V=H.target)==null?void 0:V.closest(L)})?!1:(k&&k(H)||H.stopPropagation(),!0)},U=()=>{var H;(H=j.current)!=null&&H.state.isMenuShow&&j.current.setState({isMenuShow:!1})},O=()=>{var H,Q;(H=j.current)==null||H.updateMenuPosition(),(Q=z.current)==null||Q.updateEditorPosition()};return(0,h.jsx)(s,{className:o()([P,"var-selector"]),style:b,ref:j,isDisabled:_,...t,onClickOutside:E,renderOpener:(0,h.jsx)(y.h,{varItem:K,isTrashed:$,showName:g}),renderMenu:(0,h.jsx)(d.A,{ref:z,style:{width:S},filterTypes:v,className:"var-dropmenu",value:a,needConfirm:!0,onChange:A,onSelect:U,onListChanged:O})})},s=(0,r.Ay)(w.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);}}"],C=>C.theme.color_bg_border_02,C=>C.theme.color_text_L1),l=p},63496:(Fe,ee,e)=>{"use strict";e.d(ee,{I_:()=>w,Sv:()=>y,YA:()=>u,qf:()=>d});var n=e(67787),r=e(86992),c=e(21066),o=e(51090);const w=(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,w,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),y=(0,n.Ay)(c.Ay).withConfig({displayName:"styles__StyledMenuContent",componentId:"sc-1maplao-2"})(["z-index:201;ul{min-width:64px;}",";"],o.ZJ)},63619:(Fe,ee,e)=>{"use strict";e.d(ee,{x:()=>Ee});var n=e(38502),r=e(18381),c=e(12211),o=e(67052),w=e(78257),u=e(53732),d=e.n(u),y=e(74923),h=e(67773),i=e(30275),f=e(32847),p=e(79150),s=e(44817),l=e(72447),C=e(70933),v=e(54190),a=e(3862),P=e(93971),b=e(67787);const g=b.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:",";}}}"],Ae=>Ae.theme.color_text_L1,Ae=>Ae.theme.color_btn_secondary_hover);var S=e(49903),t=e(18575),_=e(68789),I=e(28306),k=e(13642),j=e(88909),z=e(72214);const K=(0,c.Mz)([C.PL,o.QU,o.Ct,y.kU,y.xZ,y.O2,y.$d],(Ae,Ce,_e,Ge,Xe,Ue,pt)=>({rootProject:Ae,iconDefaultColor:Ce,iconDefaultSize:_e,hotIconList:Ge,hotColorIconList:Xe,findPanelTabIndex:Ue,iconSelectPopupTabIndex:pt}));function $(Ae){const{isFromIconSelectPopup:Ce,currentIconGroup:_e,onBack:Ge,onSetCurrentNodeIcon:Xe}=Ae,{rootProject:Ue,iconDefaultColor:pt,iconDefaultSize:Ye,hotIconList:Qe,hotColorIconList:lt,findPanelTabIndex:tt,iconSelectPopupTabIndex:qe}=(0,r.d4)(Nt=>K(Nt)),et=(0,r.wA)(),st=Ce?qe===1:tt===1,ct=(Ce?qe===0?Qe:lt:tt===0?Qe:lt).find(Nt=>Nt.groupName===_e),{groupName:rt,label:At,icons:ot}=ct;(0,n.useEffect)(()=>{if(ct){const Nt=(0,I.Oc)({source:"\u539F\u578B\u5185\u67E5\u770B\u5168\u90E8-\u56FE\u6807",list:ot,igCid:rt,igName:At,policy:st?_.W.MktMemberFree:_.W.Everyone});k.A.emit(j.jy,{observeMtItemObj:Nt}),k.A.emit(j.BD)}},[rt,ot,st,At,ct]),(0,n.useEffect)(()=>()=>{k.A.emit(j.P2,{shownMtItemCids:[]})},[]);const Tt=(Nt,Bt,zt,Xt)=>{const bt=jn=>{let{itemCid:xo,groupCid:Po}=jn;const Gn={projectUpperType:"icon_group",projectUpperCid:Po,itemCid:xo};(0,v.Cp)(Gn)};et({type:"entry:create:svg_icon_path:by:mousedown",payload:{event:Nt,icon:Bt,iconName:zt,iconDisplayName:Xt,isMultiColorIcon:st,callback:()=>{const jn=Bt.id.split("-"),xo=jn[0];bt({itemCid:xo==="fa5"?jn.slice(1,jn.length-1).join("-"):xo===Bt.type&&xo!=="\u6570\u5B57"?Bt.id.slice(Bt.id.indexOf("-")+1):Bt.id,groupCid:Bt.groupCid}),ft((Nt==null?void 0:Nt.type)==="mousedown"?P.k8.Drag:P.k8.DoubleClick,zt,Bt.type,Bt.groupCid)}}})},ft=(Nt,Bt,zt,Xt)=>{const bt=S.jS[zt]||zt,jn=st?w.lS.ColorIcon:w.lS.Icon,xo=st?a.WY:a.C,Po=(st?P.Jj[xo]+"-":"")+P.Ii.Find;(0,P.Mi)({popupsName:jn,addType:Nt,source:Po,category:xo,templateGroupName:bt,name:Bt,rootProject:Ue,templateGroupCid:Xt})};return(0,z.jsxs)(g,{children:[(0,z.jsxs)("header",{children:[(0,z.jsxs)("div",{className:"back",onClick:Ge,children:[(0,z.jsx)(p.A,{name:"design/arrow/right",className:"arrow-left"}),(0,z.jsx)("span",{children:At}),st&&(0,z.jsx)(t.W,{resources:{policy:_.W.MktMemberFree}})]}),!Ce&&(0,z.jsx)(l.N,{iconDefaultSize:Ye,iconDefaultColor:pt,isMultiColorIcon:st})]}),(0,z.jsx)(s.l,{isMultiColorIcon:st,onMouseDown:Tt,onDoubleClick:Tt,onSetCurrentNodeIcon:Xe,iconList:ot})]})}var A=e(93413),E=e(11582),U=e(5288),O=e(60407),H=e(67588),Q=e(95549),N=e(17307),L=e(40410),V=e(53940);const M=b.Ay.div.withConfig({displayName:"styles__StyledNoAsset",componentId:"sc-1t4mf5s-0"})(["padding:6px 12px 8px;display:flex;align-items:center;justify-content:center;p{color:",";}"],Ae=>Ae.theme.color_text_L3),D=b.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 W extends n.PureComponent{constructor(Ce){super(Ce),(0,Q.A)(this,"handleCreateRed",_e=>this.templateContainer=_e),(0,Q.A)(this,"scrollToTop",()=>{this.templateContainer.current.scrollTo({top:0,behavior:"smooth"})}),(0,Q.A)(this,"handleScroll",()=>{const{scrollTop:_e,offsetHeight:Ge}=this.templateContainer.current;_e>Ge?this.setState({isShowScrollToTop:!0}):this.setState({isShowScrollToTop:!1})}),this.state={isShowScrollToTop:!1}}render(){const{marketTemplateList:Ce,onStarTemplates:_e,onClickCard:Ge}=this.props,{isShowScrollToTop:Xe}=this.state;return(0,z.jsxs)(D,{style:{width:V.qv},ref:this.handleCreateRed,onScroll:this.handleScroll,children:[Ce.length>0?(0,z.jsx)("div",{className:"template-list",children:Ce.map(Ue=>(0,z.jsx)(L.A,{isStared:Ue.is_star,marketTemplate:Ue,onStarTemplates:_e,onClickCard:Ge},Ue.cid))}):(0,z.jsx)(F,{}),Xe&&(0,z.jsx)("div",{className:"scroll-to-top",onClick:this.scrollToTop,children:(0,z.jsx)(N.C,{name:"design/templates/to-top-btn"})})]})}}const F=()=>(0,z.jsx)(M,{children:(0,z.jsx)("p",{children:I18N.Resources.noIconResources})});var B=e(16335);const Y=(0,c.Mz)([H.rk,y.Bu,y.nn,C.W4],(Ae,Ce,_e,Ge)=>{let{isExperience:Xe,isLoggedExperience:Ue}=Ge;const pt=_e.filter(Ye=>{let{cid:Qe}=Ye;return!Ae.has(Qe)});return{resources:Ce,starMarketTemplates:pt,isExperience:Xe,isLoggedExperience:Ue}}),X=n.memo(function(Ce){const{starMarketTemplates:_e,resources:Ge,isExperience:Xe,isLoggedExperience:Ue}=(0,r.d4)(ft=>Y(ft)),{onStarTemplates:pt,onClickCard:Ye}=Ce,Qe=(0,r.wA)(),[lt,tt]=(0,n.useState)(!0),[qe,et]=(0,n.useState)(new Set([U.q$,U.er])),[st,at]=(0,n.useState)(!1),ct=(0,n.useCallback)(async ft=>{tt(!0);const{result:{market_templates:Nt}}=await(0,B.X)("&category="+a.C),Bt=ft?await(0,B.Wu)(a.C):[],zt=Nt.filter(Xt=>{let{is_star:bt}=Xt;return!bt});Qe({type:"icon-panel:update:state",payload:{resources:Nt,starResources:Bt,unStarResources:zt}}),tt(!1)},[Qe]),rt=ft=>{const{is_star:Nt}=ft,Bt=Nt?U.er:U.q$,zt=new Set(qe);zt.add(Bt),et(zt),pt(ft)},At=ft=>{const Nt=new Set(qe);Nt.has(ft)?Nt.delete(ft):Nt.add(ft),et(Nt)};(0,n.useEffect)(()=>{let ft=!1;Xe?Ue?ft=!0:ft=!1:ft=!0,(async()=>(await ct(ft),at(!0)))()},[ct,Xe,Ue]);const ot=qe.has(U.q$),Tt=qe.has(U.er);return(0,z.jsx)("div",{className:"allIcon",children:lt?(0,z.jsx)(O.A,{itemWidth:109,itemHeight:82}):(0,z.jsxs)(z.Fragment,{children:[st&&(0,z.jsx)(E.A,{title:I18N.Resources.star,id:U.q$,className:"collapse-group-item",expanded:ot,onToggle:At,children:(0,z.jsx)(W,{marketTemplateList:_e,onStarTemplates:rt,onClickCard:Ye})}),(0,z.jsx)(E.A,{title:I18N.Resources.square,id:U.er,className:"collapse-group-item",expanded:Tt,onToggle:At,children:(0,z.jsx)(W,{marketTemplateList:Ge,onStarTemplates:rt,onClickCard:Ye})})]})})});var G=e(39303),Z=e(94344);const J=b.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;}}}"],Ae=>Ae.theme.color_text_L1,Ae=>Ae.theme.color_text_L3,Ae=>Ae.theme.color_bg_white,Ae=>Ae.theme.color_btn_secondary_active,Ae=>Ae.theme.color_text_L1),te=(0,b.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:",";}}}"],Ae=>Ae.theme.color_bg_white,Ae=>Ae.theme.color_text_L3,Ae=>Ae.theme.color_btn_secondary_active,Ae=>Ae.theme.color_btn_secondary_active),he=b.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 de=e(51007);const Se=b.Ay.div.withConfig({displayName:"styles__StyledIconFindComponentPanel",componentId:"sc-wcuti9-0"})([""]),xe=b.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;}}}"],Ae=>Ae.theme.color_text_L1,Ae=>Ae.theme.color_text_L3);var be=e(83199);const ie=n.memo(function(Ce){const{iconGroup:_e,isMultiColorIcon:Ge,onChangeIconGroup:Xe,onSetCurrentNodeIcon:Ue,onCreateIconItem:pt}=Ce,Ye=(0,n.useCallback)(()=>{Xe(_e.groupName)},[_e,Xe]);if(!_e)return null;const{label:Qe,groupName:lt,icons:tt}=_e,qe=Ge&&!ENV.IS_ON_PREMISES;return(0,z.jsxs)(xe,{"data-group":lt,className:"group-list",children:[(0,z.jsxs)("div",{className:"group-header",children:[(0,z.jsxs)("div",{className:"left",children:[(0,z.jsx)("p",{className:"title",children:Qe}),qe&&(0,z.jsx)(be.A,{content:I18N.Resources.resourcesFooter.free_for_member,direction:"down",distance:8,enterHoverTime:100,children:(0,z.jsx)(N.C,{name:"left_panel/icon_list/mat_member",className:"mat-member",isColorPure:!0})})]}),(0,z.jsxs)("div",{className:"right",onClick:Ye,children:[(0,z.jsx)("p",{children:I18N.Popups.iconCat.All}),(0,z.jsx)(N.C,{className:"arrow-right",name:"design/arrow/right"})]})]}),(0,z.jsx)("div",{className:"group-icon-list",children:(0,z.jsx)(s.l,{isMultiColorIcon:Ge,iconList:tt.slice(0,15),onMouseDown:pt,onDoubleClick:pt,onSetCurrentNodeIcon:Ue})})]})});var oe=e(90144);const ue=n.memo(function(Ce){const{tabIndex:_e,iconGroup:Ge,isFromIconSelectPopup:Xe,rootProject:Ue,groupByIconList:pt,onSetCurrentNodeIcon:Ye}=Ce,Qe=(0,n.useMemo)(()=>_e===1,[_e]),lt=(0,r.wA)(),tt=(st,at,ct,rt)=>{const At=ot=>{let{itemCid:Tt,groupCid:ft}=ot;const Nt={projectUpperType:"icon_group",projectUpperCid:ft,itemCid:Tt};(0,v.Cp)(Nt)};lt({type:"entry:create:svg_icon_path:by:mousedown",payload:{event:st,icon:at,iconName:ct,iconDisplayName:rt,isMultiColorIcon:Qe,callback:()=>{const ot=at.id.split("-"),Tt=ot[0];At({itemCid:Tt==="fa5"?ot.slice(1,ot.length-1).join("-"):Tt===at.type&&Tt!=="\u6570\u5B57"?at.id.slice(at.id.indexOf("-")+1):at.id,groupCid:at.groupCid}),qe((st==null?void 0:st.type)==="mousedown"?P.k8.Drag:P.k8.DoubleClick,ct,at.type,at.groupCid)}}})},qe=(st,at,ct,rt)=>{const At=S.jS[ct]||ct,ot=Qe?w.lS.ColorIcon:w.lS.Icon,Tt=Qe?a.WY:a.C,ft=(Qe?P.Jj[Tt]+"-":"")+P.Ii.Find;(0,P.Mi)({popupsName:ot,addType:st,source:ft,category:Tt,templateGroupName:At,name:at,rootProject:Ue,templateGroupCid:rt})},et=function(st){st===void 0&&(st=""),lt(Xe?{type:"icon-panel:update:state",payload:{iconSelectPopupCurrentIconGroup:st}}:{type:"icon-panel:update:state",payload:{findPanelCurrentIconGroup:st}}),(0,oe.gQ)({widget_file_name:st,source:Qe?"\u5F69\u8272\u56FE\u6807-\u53D1\u73B0":"\u56FE\u6807-\u53D1\u73B0"})};return(0,z.jsx)(Se,{id:"iconFindComponent",children:(0,z.jsx)("div",{className:"group-list",children:(0,z.jsx)("div",{className:"list",style:{width:V.qv},children:pt.map(st=>(0,z.jsx)(ie,{isMultiColorIcon:Qe,iconGroup:st,onChangeIconGroup:et,onCreateIconItem:tt,onSetCurrentNodeIcon:Ye},st.groupName))})})})});var ve=e(34771);const re=b.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)([C.PL,o.QU,o.Ct,y.O2,y.m3,y.$d,y.vs,H.MZ],(Ae,Ce,_e,Ge,Xe,Ue,pt,Ye)=>({rootProject:Ae,iconDefaultColor:Ce,iconDefaultSize:_e,findPanelTabIndex:Ge,findPanelCurrentIconGroup:Xe,iconSelectPopupTabIndex:Ue,iconSelectPopupCurrentIconGroup:pt,layoutV9:Ye})),we=n.memo(function(Ce){const{rootProject:_e,iconDefaultColor:Ge,iconDefaultSize:Xe,findPanelTabIndex:Ue,findPanelCurrentIconGroup:pt,iconSelectPopupTabIndex:Ye,iconSelectPopupCurrentIconGroup:Qe}=(0,r.d4)(Nt=>fe(Nt)),lt=(0,r.wA)(),{isFromIconSelectPopup:tt,groupByIconList:qe,groupByColorIconList:et,onSetCurrentNodeIcon:st}=Ce,at=tt?Ye:Ue,ct=tt?Qe:pt,rt=at===1,At=rt?et:qe,ot=!tt,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(j.P2,{shownMtItemCids:[]})},[at]),(0,n.useEffect)(()=>{if(At&&At.length>0){const Nt=(0,I.le)(At,rt?_.W.MktMemberFree:_.W.Everyone);k.A.emit(j.jy,{observeMtItemObj:Nt}),k.A.emit(j.BD)}},[rt,At]);const ft=Nt=>{lt(tt?{type:"icon-panel:update:state",payload:{iconSelectPopupTabIndex:Number(Nt)}}:{type:"icon-panel:update:state",payload:{findPanelTabIndex:Number(Nt)}}),(0,oe.Ac)({source:Nt===0?"\u5355\u8272\u56FE\u6807":"\u5F69\u8272\u56FE\u6807"})};return(0,z.jsxs)(re,{children:[!ct&&(0,z.jsxs)("div",{className:"group-container-title",children:[(0,z.jsx)(ve.Ay,{className:"switch-tab",activeIndex:at,onTabChange:ft,children:Tt.map(Nt=>{let{key:Bt,label:zt}=Nt;return(0,z.jsx)(ve.nl,{label:zt},Bt)})}),ot&&(0,z.jsx)(l.N,{iconDefaultSize:Xe,iconDefaultColor:Ge,isMultiColorIcon:rt})]}),(0,z.jsx)(ue,{tabIndex:at,iconGroup:ct,rootProject:_e,groupByIconList:At,isFromIconSelectPopup:tt,onSetCurrentNodeIcon:st})]})});var Te=e(40610),Ie=e(45765);const le=(0,c.Mz)([H.O4,y.uJ,y.TF,y.gC,y.kU,y.xZ,H.MZ],(Ae,Ce,_e,Ge,Xe,Ue,pt)=>({theme:Ae,keyword:Ce,iconKeyword:_e,isRequestHotIconList:Ge,hotIconList:Xe,hotColorIconList:Ue,layoutV9:pt})),me=n.memo(function(Ce){const{theme:_e,keyword:Ge,iconKeyword:Xe,isRequestHotIconList:Ue,hotIconList:pt,hotColorIconList:Ye}=(0,r.d4)(At=>le(At)),[Qe,lt]=(0,n.useState)(1),{isFromIconSelectPopup:tt,onSetCurrentNodeIcon:qe}=Ce,et=(0,r.wA)(),st=(pt==null?void 0:pt.length)===0,at=tt?Xe:Ge;(0,n.useEffect)(()=>{Ue||(async()=>{const[ot,Tt]=await Promise.all([(0,B.$r)(),(0,B.Aq)()]),ft=ot==null?void 0:ot.icon_groups,Nt=(0,Te.D2)(ft),Bt=(0,Ie.S$)(Nt),zt=(0,Ie.d$)(Tt==null?void 0:Tt.icon_groups);et({type:"icon-panel:update:state",payload:{hotIconList:Bt,hotColorIconList:zt,isRequestHotIconList:!!(ot&&Tt)}})})().catch(ot=>{console.log("load hot icons failed",ot)})},[]);const ct=(0,n.useMemo)(()=>Ye.slice(0,8*Qe),[Qe,Ye]),rt=(0,n.useCallback)(At=>{const ot=At.target,Tt=ot.scrollTop,ft=ot.scrollHeight,Nt=ot.getBoundingClientRect().height;if(Tt+Nt+24>ft){if(Qe*8>Ye.length)return;lt(Bt=>Bt+1)}},[Qe,Ye.length]);return(0,z.jsx)("div",{className:"find-icon",onScroll:rt,children:st?(0,z.jsx)(he,{children:(0,z.jsx)(G.A,{className:"loading"})}):(0,z.jsx)(de.g,{className:d()("recent-panel-content find-icon-content"),children:()=>pt!=null&&pt.length?(0,z.jsx)(we,{isFromIconSelectPopup:tt,groupByIconList:pt,groupByColorIconList:ct,onSetCurrentNodeIcon:qe}):(0,z.jsx)(Z.A,{theme:_e,hasNoTips2:!0,keyword:at,onHandleClickSquarePanel:()=>{}})})})}),Pe=(0,c.Mz)([y.dZ,y.oD,y.yt,y.bw,y.yQ,y.m3,y.vs],(Ae,Ce,_e,Ge,Xe,Ue,pt)=>({iconPanelNavIndex:Ae,iconSelectPopupNavIndex:Ce,isShowAll:Ae===1,isShowHistory:Ae===0,currentIconResources:_e,iconSelectPopupCurrentIconResources:Ge,isShowHeader:Xe,findPanelCurrentIconGroup:Ue,iconSelectPopupCurrentIconGroup:pt}));function pe(Ae){const{from:Ce,onSetCurrentNodeIcon:_e}=Ae,{iconPanelNavIndex:Ge,iconSelectPopupNavIndex:Xe,isShowAll:Ue,isShowHistory:pt,currentIconResources:Ye,iconSelectPopupCurrentIconResources:Qe,isShowHeader:lt,findPanelCurrentIconGroup:tt,iconSelectPopupCurrentIconGroup:qe}=(0,r.d4)(zt=>Pe(zt)),et=(0,r.wA)(),st=Ce===i.Z.iconSelectPopup,at=[{key:"0",label:I18N.Resources.findTab},{key:"1",label:I18N.Popups.icon_library}];(0,n.useEffect)(()=>{st&&!lt&&et({type:"icon-select-popup:update:state",payload:{isShowHeader:!0}})},[et,st,lt]);const ct=zt=>{et(st?{type:"icon-panel:update:state",payload:{iconSelectPopupNavIndex:zt}}:{type:"icon-panel:update:state",payload:{navIndex:zt}})},rt=function(zt){zt===void 0&&(zt=null),et(st?{type:"icon-panel:update:state",payload:{iconSelectPopupCurrentIconResources:zt}}:{type:"icon-panel:update:state",payload:{currentIconResources:zt}})},At=function(zt){zt===void 0&&(zt=""),et(st?{type:"icon-panel:update:state",payload:{iconSelectPopupCurrentIconGroup:zt}}:{type:"icon-panel:update:state",payload:{findPanelCurrentIconGroup:zt}})},ot=zt=>{Ye&&Ye.cid===zt.cid&&et({type:"icon-panel:update:state",payload:{currentIconResources:{...zt,is_star:!zt.is_star}}}),et({type:"entry:resources:starred:icon_groups",payload:{resources:zt}})},Tt=st?Xe===0:pt,ft=st?Xe===1:Ue,Nt=st?Qe:Ye,Bt=st?qe:tt;return(0,z.jsx)(te,{className:d()({fromSettingPanel:st},A.c.GUIDE_SEARCH_RESOURCES_DETAILS),children:Nt?(0,z.jsx)(f.a,{from:Ce,popupsName:w.lS.Icon,currentResources:Nt,onSetCurrentNodeIcon:_e,onStarResources:ot,onBack:()=>rt()}):Bt?(0,z.jsx)($,{isFromIconSelectPopup:st,currentIconGroup:Bt,onBack:()=>At(),onSetCurrentNodeIcon:_e}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(h.d,{activeIndex:st?Xe:Ge,onTabChange:ct,tabList:at,isShowHistory:!st}),Tt&&(0,z.jsx)(me,{onSetCurrentNodeIcon:_e,isFromIconSelectPopup:st}),ft&&(0,z.jsx)(X,{onStarTemplates:ot,onClickCard:rt})]})})}class ke extends n.PureComponent{render(){const{show:Ce,from:_e,onSetCurrentNodeIcon:Ge}=this.props,Xe=_e===i.Z.iconSelectPopup;return!Ce&&!Xe?null:(0,z.jsx)(pe,{from:_e,onSetCurrentNodeIcon:Ge})}}const We=(0,c.Mz)([o.OW],Ae=>({show:Ae===w.lS.Icon})),Ee=(0,r.Ng)(Ae=>We(Ae))(ke)},63768:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>u});var n=e(95549),r=e(38502),c=e(49989),o=e(17307),w=e(72214);class u extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"getSizeTypeOptionList",()=>{const{shouldReverseDesc:y}=this.props;return y?[{label:(0,w.jsx)(o.C,{name:"setting_panel/font/fixed_height"}),value:0,tip_title:I18N.SettingPanel.auto_height},{label:(0,w.jsx)(o.C,{name:"setting_panel/font/auto"}),value:2,tip_title:I18N.SettingPanel.auto_width},{label:(0,w.jsx)(o.C,{name:"setting_panel/font/fixed"}),value:1,tip_title:I18N.SettingPanel.fixed_size}]:[{label:(0,w.jsx)(o.C,{name:"setting_panel/font/auto"}),value:0,tip_title:I18N.SettingPanel.auto_width},{label:(0,w.jsx)(o.C,{name:"setting_panel/font/fixed_height"}),value:2,tip_title:I18N.SettingPanel.auto_height},{label:(0,w.jsx)(o.C,{name:"setting_panel/font/fixed"}),value:1,tip_title:I18N.SettingPanel.fixed_size}]})}render(){const{className:y,sizeType:h}=this.props,i=this.getSizeTypeOptionList();return(0,w.jsx)(c.A,{className:y,options:i,value:h,handleChange:this.props.handleSizeTypeChange,isLongTimeHover:!0})}}},63902:(Fe,ee,e)=>{"use strict";e.d(ee,{BB:()=>l,CU:()=>a,Dd:()=>C,Nt:()=>p,RQ:()=>v,Td:()=>s,Yx:()=>f});var n=e(21856),r=e(61790),c=e(20089),o=e(24229),w=e(65209),u=e(26034),d=e(73658),y=e(21191),h=e(9680);const i={isRename:!0,isRenameOnCreate:!1,isOptionDup:!1,isResetStickyPoint:!0},f=function(P,b,g){g===void 0&&(g=sdkStore),P.forEach(S=>{const t=g.getHotItem(S),_=t.hotAttr.name;if(_==="")return;const I=t.hotAttr.type,k=(0,r.dD)(_),z=g.getSubHotItemList(b).filter(K=>K.hotAttr.type===I).map(K=>{const{hotAttr:{name:$}}=K,A=(0,r.dD)($);if(A===k)return(0,r.AB)($,A)}).filter(K=>K).sort((K,$)=>$-K);(z==null?void 0:z.length)>1&&g.updateHotAttrKV(S,"name",z[0]?k+" "+(z[0]+1):k)})},p=P=>{var b;let{selections:g,currentPageKey:S=(b=MB.getCurrentScreen())==null?void 0:b.cid,keyRndSup:t,commonKeyRndSup:_,store:I=sdkStore,option:k=i,keepSup:j=!1}=P;j||(0,n.D7)(g.filter(E=>{const U=I.getHotItem(E).hotAttr.type;return U===c.x.WSticky||U===c.x.WTear}),S,I),(0,n.OV)(g,t,I),(0,n.gs)(S,g,I),(0,n.tu)(g.filter(E=>I.getHotItem(E).hotAttr.type===c.x.Canvas),t,I);const z={...i,...k},{isRename:K,isRenameOnCreate:$,isOptionDup:A}=z;K&&_===t&&($?f(g,t,I):(0,n.rq)(g,t,I,A))},s=P=>{let{data:b,worldPos:g,keyRndSup:S,commonKeyRndSup:t,currentPageKey:_,store:I=sdkStore,option:k=i,keepSup:j}=P;const z=I.loadSubtreeTL(b,S,g.x,g.y);return p({selections:z,currentPageKey:_,keyRndSup:S,commonKeyRndSup:t,store:I,option:k,keepSup:j}),z},l=P=>{let{data:b,worldPos:g,keyRndSup:S,currentPageKey:t,store:_=sdkStore,option:I={isRenameOnCreate:!0,isResetStickyPoint:!0},offset:k}=P;const j=s({data:b,worldPos:g,keyRndSup:S,commonKeyRndSup:S,currentPageKey:t,store:_,option:I});return(0,n.F6)(j,_,k,I==null?void 0:I.isResetStickyPoint),(0,n.gs)(t,[],_),j},C=(P,b,g,S,t)=>{const _=sdkStore.loadSubtreeTL(P,g,b.x,b.y),I=(0,n.dk)(S),k=I&&sdkStore.getHotItem(I)||null,j=(0,y.G9)(g,_),z=(0,y.Rl)(),K=(0,y.wr)(),$=[];for(const A of _){const E=sdkStore.getHotItem(A),U=sdkStore.getHotAABB(A),O=j(U),H=!y.Uj.has(E.hotAttr.type),Q=H&&(k==null?void 0:k.hotAttr.type)==="wWrap"?I:H&&O?O:g,N={key:A,sup:Q,hotAttr:{...sdkStore.getRelocateLocalXYR(A,Q),zIndex:K.getReStackZIndex(A,Q),...t===Q&&{name:z(Q,E.hotAttr.type,E.hotAttr.name)}}};$.push(N);const L=(0,h.qH)(A);L.length&&(L[0].key===A&&(N.hotAttr={...L[0].hotAttr,...N.hotAttr},L.shift()),$.push(...L))}return sdkStore.updateHotItemBatch($.map(A=>{const{key:E,sup:U,hotAttr:O}=A,H=sdkStore.getHotItem(E);return{key:E,sup:U||H.sup,hotAttr:{...H.hotAttr,...O},sub:H.sub}})),(0,n.gs)(g,_,sdkStore),(0,n.tu)(_.filter(A=>sdkStore.getHotItem(A).hotAttr.type===c.x.Canvas),g,sdkStore),_},v=(P,b,g,S,t)=>{const _=b.getHotItem(P),{sub:I}=_,k=I.filter(F=>{var B;return((B=b.getHotItem(F))==null||(B=B.hotAttr)==null?void 0:B.bunch)!==c.x.RbPage}),[j,z,K,$]=b.getHotKeyListAABB(k),A=K-j,E=$-z,U=[g.x,g.y,g.x+A,g.y+E],O=(0,n.dk)(t),H=O&&sdkStore.getHotItem(O)||null,Q=(0,y.G9)(S),N=(0,y.YQ)(),L=(0,y.Us)(),V=b.getSubHotItemList(P).filter(F=>!(0,d.yT)(F.hotAttr.type)),M=b.saveSubtree(k),D=sdkStore.loadSubtreeTL(M,S,g.x,g.y),W=[];if(V.length===1){const F=Q(U),B=(H==null?void 0:H.hotAttr.type)==="wWrap"?O:F||S,Y=D.filter(G=>{var Z;return!(0,d.yT)(((Z=sdkStore.getHotItem(G))==null||(Z=Z.hotAttr)==null?void 0:Z.type)||"")}),X=sdkStore.getHotItem(Y[0]);sdkStore.updateHotItem({...X,sup:B,hotAttr:{...X.hotAttr,...sdkStore.getRelocateLocalXYR(Y[0],B),name:N(B,X.hotAttr.type,_.hotAttr.name),zIndex:L(Y[0],B)}}),W.push(Y[0])}else if(V.length>1){const F=(0,o.cF)("ww"),B=Q(U),Y=(H==null?void 0:H.hotAttr.type)==="wWrap"?O:B||S,X=D.filter(G=>{var Z;return!(0,d.yT)(((Z=sdkStore.getHotItem(G))==null||(Z=Z.hotAttr)==null?void 0:Z.type)||"")});sdkStore.summonWWrap(X,Y,F,N(Y,"wWrap",_.hotAttr.name),L(X[0],Y),!0,!0),W.push(F)}return W},a=P=>{let{combo:b,worldPos:g,size:S,keyRndSup:t,currentPageKey:_,store:I=sdkStore}=P;const{sub:k,hotAttr:{name:j}}=b,z=k.filter(Q=>{var N;return![c.x.WSticky,c.x.WTear].includes((N=I.getHotItem(Q))==null||(N=N.hotAttr)==null?void 0:N.type)}),K=I.saveSubtree(k),[$,A]=I.getHotKeyListAABB(k),E={x:g.x-$,y:g.y-A},U=(0,w._)(t);let O=[];if((z==null?void 0:z.length)===1){var H;const Q=((H=I.getHotItem(z[0]))==null||(H=H.hotAttr)==null?void 0:H.type)===c.x.WWrap;O=l({data:K,worldPos:g,keyRndSup:t,currentPageKey:_,option:{isRename:!0,isRenameOnCreate:!1,isOptionDup:!1,isResetStickyPoint:!1},offset:E}),Q&&(sdkStore.updateHotAttrMerge(O[0],{name:j,zIndex:U}),f([O[0]],t))}else if((z==null?void 0:z.length)>1){const Q=g.x-S.width/2,N=g.y-S.height/2,V={key:(0,o.cF)("ww"),sub:[],sup:t,hotAttr:{...u.N[c.x.WWrap](!0,!0,j,U,Q,N,S.width,S.height)}};sdkStore.updateHotItem(V),f([V.key],t);const D=l({data:K,worldPos:g,keyRndSup:V.key,currentPageKey:_,option:{isRename:!1,isRenameOnCreate:!1,isOptionDup:!1,isResetStickyPoint:!1},offset:E}).filter(W=>(0,d.yT)(sdkStore.getHotItem(W).hotAttr.type));O=[V.key,...D]}else O=l({data:K,worldPos:g,keyRndSup:t,currentPageKey:_,option:{isRename:!0,isRenameOnCreate:!1,isOptionDup:!1,isResetStickyPoint:!1},offset:E});return O}},63917:(Fe,ee,e)=>{"use strict";e.d(ee,{G:()=>J,X:()=>oe});var n=e(80730),r=e(41011),c=e(24229),o=e(29158),w=e(9233),u=e(14166),d=e(26812),y=e(38581),h=e(74222),i=e(16966),f=e(70248),p=e(77686),s=e(93093),l=e(5664),C=e(76805),v=e(95657),a=e(65057),P=e(70933),b=e(25997),g=e(77337),S=e(14002),t=e(73298);const _=re=>{let fe=0;const we=async()=>{const Te=await re();return!Te.ok&&Te.status===429&&(fe++,fe<3)?we():Te};return we},I=async re=>{let{uId:fe,upperCid:we,V8AHText:Te,V8AHImgUri:Ie,handleGenerateStream:le,controller:me}=re;const pe=await _(async()=>{const ke=new URLSearchParams({uId:fe,upperCid:we});return await fetch("/js-hpr/v8aihtml/gen?"+ke.toString(),{method:"POST",headers:{"Content-Type":"application"},body:JSON.stringify({V8AHText:Te,V8AHImgUri:Ie}),signal:me.signal})})();await z(pe,le)},k=async re=>{let{uId:fe,upperCid:we,V8AHText:Te,V8AHPrevHtml:Ie,V8AHTargetTag:le,handleGenerateStream:me,controller:Pe}=re;const ke=await _(async()=>{const We=new URLSearchParams({uId:fe,upperCid:we});return await fetch("/js-hpr/v8aihtml/regen?"+We.toString(),{method:"POST",headers:{"Content-Type":"application"},body:JSON.stringify({V8AHText:Te,V8AHPrevHtml:Ie,V8AHTargetTag:le}),signal:Pe.signal})})();await z(ke,me)},j=async re=>{let{uId:fe,upperCid:we,V8AHText:Te,V8AHImgUri:Ie,handleGenerateStream:le,controller:me}=re;const pe=await _(async()=>{const ke=new URLSearchParams({uId:fe,upperCid:we});return await fetch("/js-hpr/v8aihtml/optimization-prompt?"+ke.toString(),{method:"POST",headers:{"Content-Type":"application"},body:JSON.stringify({V8AHText:Te}),signal:me.signal})})();await z(pe,le)},z=async(re,fe)=>{if(!re.ok){const Ie=re.status,le={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:le[Ie]||le.default,type:"error"});const me=new Error("HTTP error! status: "+Ie);throw me.status=Ie,me}if(!re.body)throw new Error("Response body is missing");const we=re.body.getReader(),Te=new TextDecoder("utf-8");for(;;){const{done:Ie,value:le}=await we.read();if(le){const me=Te.decode(le,{stream:!0});fe({status:"generating",chunk:me})}if(Ie){fe({status:"done"});break}}};var K=e(26274),$=e(15515),A=e(30728),E=e(78915),U=e(22835),O=e(7018),H=e(61790),Q=e(65209),N=e(79770),L=e(87612),V=e(79209),M=e(15086),D=e(4235),W=e(88132),F=e(69594);const B="\n \n