Files
smartmate/docs/design/HTML/mb-proto2/4.ekpaa-vendor-bc4d0b88b3ac63067933.js
2026-02-01 22:09:59 +08:00

8 lines
2.4 MiB

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<f.width+p.width&&s.height<f.height+p.height},d=(f,p)=>{const s=Math.min(f.top||0,p.top||0),l=Math.max((f.top||0)+f.height,(p.top||0)+p.height),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&&f<p.left+p.width,i=(f,p)=>f>p.top&&f<p.top+p.height},847:(Fe,ee,e)=>{"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<h;){var f=u[y],p=n(w,f);d(p,f)&&r(i,c(f,w),p)}return i}Fe.exports=o},1738:(Fe,ee,e)=>{"use strict";e.d(ee,{c:()=>c,l:()=>r});var n=e(34394),r=function(o){return o.MD="MD",o.NLP="NLP",o.AI="AI",o}(r||{}),c=function(o){return o.CategoryNLP="CategoryNLP",o.CategoryFile="CategoryFile",o.CategoryLayoutView="CategoryLayoutView",o.CategoryPreference="CategoryPreference",o.CategoryQuickCreate="CategoryQuickCreate",o.CategoryCommonOperation="CategoryCommonOperation",o.CategoryHelpCenter="CategoryHelpCenter",o.CategoryBW="CategoryBW",o.CategoryForm="CategoryForm",o.CategoryNavigation="CategoryNavigation",o.CategoryChart="CategoryChart",o.CategoryMultimedia="CategoryMultimedia",o.CategoryShape="CategoryShape",o.CategoryDelete="CategoryDelete",o.CategorySelected="CategorySelected",o.CategoryEdit="CategoryEdit",o.CategoryPage="CategoryPage",o.CategoryCanvas="CategoryCanvas",o.CategoryIntEvents="CategoryIntEvents",o.CategoryLayer="CategoryLayer",o.CategoryAI="CategoryAI",o.AIGC="AIGC",o.AIQ="AIQ",o.AI3Help="AI3Help",o.AIInDev="AIInDev",o.Save="Save",o.ViewFileInfo="ViewFileInfo",o.ViewVersionRecord="ViewVersionRecord",o.ToggleViewShare="ToggleViewShare",o.ProjectRename="ProjectRename",o.CreateNewVersion="CreateNewVersion",o.OpenColorPicker="OpenColorPicker",o.ZoomIn="ZoomIn",o.ZoomOut="ZoomOut",o.ZoomToHundred="ZoomToHundred",o.ZoomSelection="ZoomSelection",o.FitCanvas="FitCanvas",o.FullScreenMode="FullScreenMode",o.QuickCreateCanvas="QuickCreateCanvas",o.QuickCreateRect="QuickCreateRect",o.QuickCreateOval="QuickCreateOval",o.QuickCreateLine="QuickCreateLine",o.QuickCreateLr="QuickCreateLr",o.QuickCreateImage="QuickCreateImage",o.QuickCreateVector="QuickCreateVector",o.QuickCreateRichText="QuickCreateRichText",o.QuickCreateElbow="QuickCreateElbow",o.QuickCreateSticky="QuickCreateSticky",o.QuickCreateTear="QuickCreateTear",o.QuickCreateComment="QuickCreateComment",o.Undo="Undo",o.Redo="Redo",o.ToggleExport="ToggleExport",o.ComSelectAll="ComSelectAll",o.ComSelectPart="ComSelectPart",o.GlobalFindAndReplace="GlobalFindAndReplace",o.GlobalFind="GlobalFind",o.GlobalReplace="GlobalReplace",o.Preview="Preview",o.Group="Group",o.UnGroup="UnGroup",o.AddComponent="AddComponent",o.Delete="Delete",o.Cut="Cut",o.Copy="Copy",o.Past="Past",o.PastProperties="PastProperties",o.CreateMaster="CreateMaster",o.CreatePanel="CreatePanel",o.TogglePanelTransState="TogglePanelTransState",o.TogglePageTransState="TogglePageTransState",o.LinkDisplayChange="LinkDisplayChange",o.ToggleSelectMode="ToggleSelectMode",o.ToggleEyedropper="ToggleEyedropper",o.ToggleDynamicSpacing="ToggleDynamicSpacing",o.ToggleHandTool="ToggleHandTool",o.Alignment="Alignment",o.AlignmentTop="AlignmentTop",o.AlignmentMiddle="AlignmentMiddle",o.AlignmentBottom="AlignmentBottom",o.AlignmentLeft="AlignmentLeft",o.AlignmentCenter="AlignmentCenter",o.AlignmentRight="AlignmentRight",o.AlignmentHorizontal="AlignmentHorizontal",o.AlignmentVertical="AlignmentVertical",o.SearchMktSource="SearchMktSource",o.ToggleTheme="ToggleTheme",o.ToggleRuler="ToggleRuler",o.ToggleReferenceLine="ToggleReferenceLine",o.ToggleSticky="ToggleSticky",o.ToggleComment="ToggleComment",o.ToggleMultiplayerMouse="ToggleMultiplayerMouse",o.ToggleLeftSide="ToggleLeftSide",o.ToggleRightSide="ToggleRightSide",o.ToggleAlignLine="ToggleAlignLine",o.NewFeature="NewFeature",o.ToggleShortcutKey="ToggleShortcutKey",o.OpenHelperCenter="OpenHelperCenter",o.Feedback="Feedback",o.OnlineSupport="OnlineSupport",o.CRichText="C-"+n.x.WRichText,o.CWRect="C-"+n.x.WRect,o.CWOval="C-"+n.x.WOval,o.CWImage="C-"+n.x.WImage,o.CWButton="C-"+n.x.WButton,o.CWPolygon="C-"+n.x.WPolygon,o.CWStar="C-"+n.x.WStar,o.CWTriangle="C-"+n.x.WTriangle,o.CWArrow="C-"+n.x.WArrow,o.CWLine="C-"+n.x.WLine,o.CWPlaceholder="C-"+n.x.WPlaceholder,o.CWTable="C-"+n.x.WTable,o.CWSticky="C-"+n.x.WSticky,o.CWTear="C-"+n.x.WTear,o.CWIphoneXSB="C-"+n.x.WIphoneXSB,o.CDynCpts="CDynCpts",o.CScrollPanel="CScrollPanel",o.CWLr="C-"+n.x.WLR,o.CComment="CComment",o.CElbow="CElbow",o.CVector="CVector",o.CCustomComponent="CCustomComponent",o.CWebPage="CWebPage",o.CWPicture="C-Picture",o.CWIcon="C-"+n.x.WIcon,o.CLargeScreenPage="CLargeScreenPage",o.CWMTextInput="C-"+n.x.WMTextInput,o.CWMTextArea="C-"+n.x.WMTextArea,o.CWMSelect="C-"+n.x.WMSelect,o.CWMFileInput="C-"+n.x.WMFileInput,o.CWSelectionControlRadio="C-"+n.x.WSelectionControlRadio,o.CWSelectionControlCheckbox="C-"+n.x.WSelectionControlCheckbox,o.CWAndroidSwitch="C-"+n.x.WAndroidSwitch,o.CWIosSwitch="C-"+n.x.WIOSSwitch,o.CWSlider="C-"+n.x.WSlider,o.CWDigitalStepper="C-"+n.x.WDigitalStepper,o.CWDropMenu="C-"+n.x.WDropMenu,o.CDynamicDropMenu="CDynamicDropMenu",o.CWNavigationMenu="C-"+n.x.WNavigationMenu,o.CWNavigationMenuV="C-"+n.x.WNavigationMenuV,o.CWNavigationMenuH="C-"+n.x.WNavigationMenuH,o.CWMobileTabBars="C-"+n.x.WMobileTabBars,o.CWSegmentedControl="C-"+n.x.WSegmentedControl,o.CWCollapse="C-"+n.x.WCollapse,o.CWTabs="C-"+n.x.WTabs,o.CWPaginationMobile="C-"+n.x.WPaginationMobile,o.CWPaginationWeb="C-"+n.x.WPaginationWeb,o.CreateChart="CreateChart",o.CWCarousel="C-"+n.x.WCarousel,o.CWWebpage="C-"+n.x.WWebpage,o.CWVideo="C-"+n.x.WVideo,o.CWAudio="C-"+n.x.WAudio,o.CWQRCode="C-"+n.x.WQRCode,o.CWMapView="C-"+n.x.WMapView,o.CWMTooltip="C-"+n.x.WMTooltip,o.DWRichText="D-"+n.x.WRichText,o.DWRect="D-"+n.x.WRect,o.DWOval="D-"+n.x.WOval,o.DWLine="D-"+n.x.WLine,o.DWButton="D-"+n.x.WButton,o.DWArrow="D-"+n.x.WArrow,o.DWPolygon="D-"+n.x.WPolygon,o.DWStar="D-"+n.x.WStar,o.DWTriangle="D-"+n.x.WTriangle,o.DWCarousel="D-"+n.x.WCarousel,o.DWWebpage="D-"+n.x.WWebpage,o.DWVideo="D-"+n.x.WVideo,o.DWAudio="D-"+n.x.WAudio,o.DWQRCode="D-"+n.x.WQRCode,o.DWMapView="D-"+n.x.WMapView,o.DWMTooltip="D-"+n.x.WMTooltip,o.DWImage="D-"+n.x.WImage,o.DWLr="D-"+n.x.WLR,o.DWPlaceholder="D-"+n.x.WPlaceholder,o.DWTable="D-"+n.x.WTable,o.DWSticker="D-"+n.x.WSticky,o.DWTear="D-"+n.x.WTear,o.DWIphoneSB="D-"+n.x.WIphoneXSB,o.DWMTextInput="D-"+n.x.WMTextInput,o.DWMTextArea="D-"+n.x.WMTextArea,o.DWMSelect="D-"+n.x.WMSelect,o.DWMFileInput="D-"+n.x.WMFileInput,o.DWSelectionControlRadio="D-"+n.x.WSelectionControlRadio,o.DWSelectionControlCheckbox="D-"+n.x.WSelectionControlCheckbox,o.DWAndroidSwitch="D-"+n.x.WAndroidSwitch,o.DWIosSwitch="D-"+n.x.WIOSSwitch,o.DWSlider="D-"+n.x.WSlider,o.DWDigitalStepper="D-"+n.x.WDigitalStepper,o.DWDropMenu="D-"+n.x.WDropMenu,o.DWBasket="DWBasket",o.DWNavigationMenu="D-"+n.x.WNavigationMenu,o.DWNavigationMenuV="D-"+n.x.WNavigationMenuV,o.DWNavigationMenuH="D-"+n.x.WNavigationMenuH,o.DWMobileTabBars="D-"+n.x.WMobileTabBars,o.DWSegmentedControl="D-"+n.x.WSegmentedControl,o.DWCollapse="D-"+n.x.WCollapse,o.DWTabs="D-"+n.x.WTabs,o.DWPaginationMobile="D-"+n.x.WPaginationMobile,o.DWPaginationWeb="D-"+n.x.WPaginationWeb,o.DWChart="DWChart",o.DWidgets="DWidgets",o.SWRichText="S-"+n.x.WRichText,o.SWRect="S-"+n.x.WRect,o.SWOval="S-"+n.x.WOval,o.SWLine="S-"+n.x.WLine,o.SWButton="S-"+n.x.WButton,o.SWArrow="S-"+n.x.WArrow,o.SWPolygon="S-"+n.x.WPolygon,o.SWStar="S-"+n.x.WStar,o.SWTriangle="S-"+n.x.WTriangle,o.SWCarousel="S-"+n.x.WCarousel,o.SWWebpage="S-"+n.x.WWebpage,o.SWVideo="S-"+n.x.WVideo,o.SWAudio="S-"+n.x.WAudio,o.SWQRCode="S-"+n.x.WQRCode,o.SWMapView="S-"+n.x.WMapView,o.SWMTooltip="S-"+n.x.WMTooltip,o.SWImage="S-"+n.x.WImage,o.SWLr="S-"+n.x.WLR,o.SWPlaceholder="S-"+n.x.WPlaceholder,o.SWTable="S-"+n.x.WTable,o.SWSticker="S-"+n.x.WSticky,o.SWTear="S-"+n.x.WTear,o.SWIphoneSB="S-"+n.x.WIphoneXSB,o.SWMTextInput="S-"+n.x.WMTextInput,o.SWMTextArea="S-"+n.x.WMTextArea,o.SWMSelect="S-"+n.x.WMSelect,o.SWMFileInput="S-"+n.x.WMFileInput,o.SWSelectionControlRadio="S-"+n.x.WSelectionControlRadio,o.SWSelectionControlCheckbox="S-"+n.x.WSelectionControlCheckbox,o.SWAndroidSwitch="S-"+n.x.WAndroidSwitch,o.SWIosSwitch="S-"+n.x.WIOSSwitch,o.SWSlider="S-"+n.x.WSlider,o.SWDigitalStepper="S-"+n.x.WDigitalStepper,o.SWDropMenu="S-"+n.x.WDropMenu,o.SWBasket="SWBasket",o.SWNavigationMenu="S-"+n.x.WNavigationMenu,o.SWNavigationMenuV="S-"+n.x.WNavigationMenuV,o.SWNavigationMenuH="S-"+n.x.WNavigationMenuH,o.SWMobileTabBars="S-"+n.x.WMobileTabBars,o.SWSegmentedControl="S-"+n.x.WSegmentedControl,o.SWCollapse="S-"+n.x.WCollapse,o.SWTabs="S-"+n.x.WTabs,o.SWPaginationMobile="S-"+n.x.WPaginationMobile,o.SWPaginationWeb="S-"+n.x.WPaginationWeb,o.SWChart="SWChart",o.SWidgets="SWidgets",o.EWRichText="E-"+n.x.WRichText,o.EWRect="E-"+n.x.WRect,o.EWOval="E-"+n.x.WOval,o.EWLine="E-"+n.x.WLine,o.EWButton="E-"+n.x.WButton,o.EWArrow="E-"+n.x.WArrow,o.EWPolygon="E-"+n.x.WPolygon,o.EWStar="E-"+n.x.WStar,o.EWTriangle="E-"+n.x.WTriangle,o.EWCarousel="E-"+n.x.WCarousel,o.EWWebpage="E-"+n.x.WWebpage,o.EWVideo="E-"+n.x.WVideo,o.EWAudio="E-"+n.x.WAudio,o.EWQRCode="E-"+n.x.WQRCode,o.EWMapView="E-"+n.x.WMapView,o.EWMTooltip="E-"+n.x.WMTooltip,o.EWImage="E-"+n.x.WImage,o.EWLr="E-"+n.x.WLR,o.EWPlaceholder="E-"+n.x.WPlaceholder,o.EWTable="E-"+n.x.WTable,o.EWSticker="E-"+n.x.WSticky,o.EWTear="E-"+n.x.WTear,o.EWIphoneSB="E-"+n.x.WIphoneXSB,o.EWMTextInput="E-"+n.x.WMTextInput,o.EWMTextArea="E-"+n.x.WMTextArea,o.EWMSelect="E-"+n.x.WMSelect,o.EWMFileInput="E-"+n.x.WMFileInput,o.EWSelectionControlRadio="E-"+n.x.WSelectionControlRadio,o.EWSelectionControlCheckbox="E-"+n.x.WSelectionControlCheckbox,o.EWAndroidSWitch="E-"+n.x.WAndroidSwitch,o.EWIosSWitch="E-"+n.x.WIOSSwitch,o.EWSlider="E-"+n.x.WSlider,o.EWDigitalStepper="E-"+n.x.WDigitalStepper,o.EWDropMenu="E-"+n.x.WDropMenu,o.EWBasket="EWBasket",o.EWNavigationMenu="E-"+n.x.WNavigationMenu,o.EWNavigationMenuV="E-"+n.x.WNavigationMenuV,o.EWNavigationMenuH="E-"+n.x.WNavigationMenuH,o.EWMobileTabBars="E-"+n.x.WMobileTabBars,o.EWSegmentedControl="E-"+n.x.WSegmentedControl,o.EWCollapse="E-"+n.x.WCollapse,o.EWTabs="E-"+n.x.WTabs,o.EWPaginationMobile="E-"+n.x.WPaginationMobile,o.EWPaginationWeb="E-"+n.x.WPaginationWeb,o.EWElbow="E-"+n.x.WElbow,o.EWChart="E-"+n.x.WChart,o.EWidgets="EWidgets",o.CPage="CPage",o.EPage="EPage",o.EPageLayout="EPageLayout",o.CPageCopy="CPageCopy",o.CopyPage="CopyPage",o.CutPage="CutPage",o.PastePage="PastePage",o.ToggleClipContent="ToggleClipContent",o.CCanvas="CCanvas",o.CSubCanvas="CSubCanvas",o.CDirectory="CDirectory",o.ECanvas="ECanvas",o.DCanvas="DCanvas",o.CCanvasCopy="CCanvasCopy",o.MoveCanvas="MoveCanvas",o.CanvasViewRecycle="CanvasViewRecycle",o.CollapseCanvas="CollapseCanvas",o.ExpandCanvas="ExpandCanvas",o.Other="Other",o.ToggleLayerLock="ToggleLayerLock",o.ToggleLayerVisible="ToggleLayerVisible",o.ToggleLayerExpand="ToggleLayerExpand",o.OpenEventsPanel="OpenEventsPanel",o.OUnableRecognize="OUnableRecognize",o.OFreeChat="OFreeChat",o.OFreeChatQuestion="OFreeChatQuestion",o}(c||{})},1984:(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<B.length-1;Z++)if(typeof X[B[Z]]=="object")return S({supAttrArr:B.slice(1),colorRefStyles:X[B[Z]],attr:Y})},t=F=>{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(;Se<he;){let ue=!1;for(let ve=0;ve<be.length;ve++){const re=sdkStore.getHotItem(be[ve]);if(re.hotAttr.name===de[Se]){ue=!0,Se++,xe=be[ve],be=sdkStore.getSubHotItemList(re.key).filter(fe=>fe.hotAttr.type==="rResStyleGroup"&&fe.hotAttr.styleType===B).map(fe=>fe.key);break}}if(!ue)break}sdkStore.combineMergeMark("create-style-group");const ie=[];for(;Se<he;){const ue=(0,C.Z_)(xe),ve=(0,i.pc)({name:de[Se],zIndex:ue+1,styleType:B}),re=(0,p.cF)("stlg"),fe={key:re,sup:xe,sub:[],hotAttr:ve};ie.push(fe),xe=re,Se++}sdkStore.updateHotItemBatch(ie);const oe=de.slice(he,de.length).join("");return{hotItems:ie.length===0?[sdkStore.getHotItem(xe)]:ie,name:oe,callback:()=>sdkStore.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;ie<be.length;ie++)sdkStore.moveHotItemBatch(be[ie]);sdkStore.deleteHotItemBatch(xe.map(ie=>ie.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+1<X.length;){const oe=(0,i.pc)({name:X[Se],zIndex:xe+Se+1,styleType:Y}),ue=(0,p.cF)("stlg"),ve={key:ue,sup:de,sub:[],hotAttr:oe};sdkStore.updateHotItem(ve),de=ue,Se++}const be=X[X.length-1],ie=sdkStore.getSubHotItemList(G.sup).filter(oe=>oe.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;ue<oe.length;ue++)sdkStore.moveHotItemBatch(oe[ue]);sdkStore.deleteHotItemBatch(ie.map(ue=>ue.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;J<B.length-1;J++)typeof Y[B[J]]=="object"?V({supAttrArr:B.slice(1),color:Y[B[J]],key:X,val:G,actionType:Z}):Y[B[J]]===void 0&&(Y[B[J]]={[B[J+1]]:{}},V({supAttrArr:B.slice(1),color:Y[B[J]],key:X,val:G,actionType:Z}))},M=(F,B)=>B.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<P;g++)b[g-1]=arguments[g];a.persist(),a.preventDefault(),a.stopPropagation();let S=!0,t=!1;h.current=!1;const _=k=>{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;g++)b[g-1]=arguments[g];l(),p.current=setTimeout(()=>{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<P;g++)b[g-1]=arguments[g];y&&y(a,...b)},[l,y]);return{isMoveAfterClick:h,isDragging:i,handleMouseDown:s,handleClick:C,handleDoubleClick:v}}},4410:(Fe,ee,e)=>{"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.y){const W=(L.y+(M.y+V.h))/2;V.x+V.w>=L.x&&M.x<L.x?(D.push({x:L.x,y:W}),D.push({x:V.x+V.w+20,y:W}),D.push({x:V.x+V.w+20,y:M.y-20}),D.push({x:M.x,y:M.y-20})):M.x>=L.x&&V.x<L.x?(D.push({x:L.x,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})):(D.push({x:L.x,y:M.y-20}),D.push({x:M.x,y:M.y-20}))}if(M.y>=L.y){const W=(M.y+(L.y+N.h))/2;M.x>=N.x&&M.x<N.x+N.w/2?(D.push({x:L.x,y:L.y-20}),D.push({x:N.x-20,y:L.y-20}),D.push({x:N.x-20,y:W}),D.push({x:M.x,y:W})):M.x>=N.x+N.w/2&&M.x<N.x+N.w?(D.push({x:L.x,y:L.y-20}),D.push({x:N.x+N.w+20,y:L.y-20}),D.push({x:N.x+N.w+20,y:W}),D.push({x:M.x,y:W})):(D.push({x:L.x,y:L.y-20}),D.push({x:M.x,y:L.y-20}))}return D.push(M),D}function r(N,L,V,M){return w(V,M,N,L).reverse()}function c(N,L,V,M){const D=[L];if(M.y<L.y){const W=(L.y+M.y)/2;D.push({x:L.x,y:W}),D.push({x:M.x,y:W})}if(M.y>=L.y&&V.y<=N.y+N.h)if(V.x+V.w<N.x){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:M.y+20}),D.push({x:M.x,y:M.y+20})}else if(V.x+V.w>=N.x&&M.x<L.x){const W=N.y<V.y?N.y-20:V.y-20,F=N.x<V.x?N.x-20:V.x-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 if(M.x>=L.x&&V.x<=N.x+N.w){const W=N.y<V.y?N.y-20:V.y-20,F=N.x+N.w>V.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){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:M.y+20}),D.push({x:M.x,y:M.y+20})}else if(V.x+V.w>=N.x&&M.x<L.x){const W=(N.y+N.h+V.y)/2;D.push({x:L.x,y:L.y-20}),D.push({x:N.x-20,y:L.y-20}),D.push({x:N.x-20,y:W}),D.push({x:V.x+V.w+20,y:W}),D.push({x:V.x+V.w+20,y:M.y+20}),D.push({x:M.x,y:M.y+20})}else if(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.y<L.y&&(M.x>L.x&&D.push({x:L.x,y:M.y}),M.x<=L.x)){if(V.y+V.h<L.y){const W=(V.y+V.h+L.y)/2;D.push({x:L.x,y:W}),D.push({x:V.x-20,y:W}),D.push({x:V.x-20,y:M.y})}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.x<V.x?N.x-20:V.x-20,F=N.y<V.y?N.y-20:V.y-20;D.push({x:L.x,y:F}),D.push({x:W,y:F}),D.push({x:W,y:M.y})}else if(M.x>L.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.y<N.y?V.y-20:N.y-20;D.push({x:L.x+20,y:L.y}),D.push({x:L.x+20,y:W}),D.push({x:M.x,y:W})}return D.push(M),D}function u(N,L,V,M){const D=[L];if(M.y>N.y+N.h){const W=M.x>L.x?M.x+20:L.x+20;if(V.x>L.x&&V.y<L.y){const F=(V.x+L.x)/2;D.push({x:F,y:L.y}),D.push({x:F,y:V.y-20}),D.push({x:M.x+20,y:V.y-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})}if(M.y<=N.y+N.h&&M.y>L.y){if(M.x<N.x){const W=(M.x+N.x)/2;D.push({x:L.x+20,y:L.y}),D.push({x:L.x+20,y:N.y+N.h+20}),D.push({x:W,y:N.y+N.h+20}),D.push({x:W,y:M.y})}if(V.x>L.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.x<N.x){const W=(M.x+N.x)/2;D.push({x:L.x+20,y:L.y}),D.push({x:L.x+20,y:N.y-20}),D.push({x:W,y:N.y-20}),D.push({x:W,y:M.y})}if(V.x>L.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)if(M.x<L.x){const W=(M.y+N.y)/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 D.push({x:M.x,y:L.y});if(M.y>=N.y&&M.y<L.y){if(V.x+V.w<N.x){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-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})}V.x+V.w>=N.x&&M.x<N.x&&(D.push({x:L.x+20,y:L.y}),D.push({x:L.x+20,y:N.y+N.h+20}),D.push({x:M.x,y:N.y+N.h+20})),M.x>L.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){const W=(V.y+V.h+N.y)/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})}if(V.y+V.h>=N.y&&M.y<N.y)if(V.x+V.w<N.x){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-20}),D.push({x:W,y:N.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})}else{const W=V.x+V.w>N.x+N.w?V.x+V.w+20:N.x+N.w+20,F=V.y<N.y?V.y-20:N.y-20;D.push({x:W,y:L.y}),D.push({x:W,y:F}),D.push({x:M.x-20,y:F}),D.push({x:M.x-20,y:M.y})}if(M.y>=N.y&&M.y<N.y+N.h){const W=V.y<N.y?V.y-20:N.y-20;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})}if(M.y>=N.y+N.h&&V.y<N.y+N.h)if(V.x+V.w<N.x){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: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.y<N.y?V.y-20:N.y-20,F=V.x<N.x?V.x-20:N.x-20;D.push({x:L.x+20,y:L.y}),D.push({x:L.x+20,y:W}),D.push({x:F,y:W}),D.push({x:F,y:M.y})}if(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?(D.push({x:L.x,y:W}),D.push({x:V.x+V.w+20,y:W}),D.push({x:V.x+V.w+20,y:M.y+20}),D.push({x:M.x,y:M.y+20})):M.x>=L.x&&V.x<L.x?(D.push({x:L.x,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})):(D.push({x:L.x,y:M.y+20}),D.push({x:M.x,y:M.y+20}))}if(M.y<=L.y){const W=(M.y+N.y)/2;M.x>=N.x&&M.x<N.x+N.w/2?(D.push({x:L.x,y:L.y+20}),D.push({x:N.x-20,y:L.y+20}),D.push({x:N.x-20,y:W}),D.push({x:M.x,y:W})):M.x>=N.x+N.w/2&&M.x<N.x+N.w?(D.push({x:L.x,y:L.y+20}),D.push({x:N.x+N.w+20,y:L.y+20}),D.push({x:N.x+N.w+20,y:W}),D.push({x:M.x,y:W})):(D.push({x:L.x,y:L.y+20}),D.push({x:M.x,y:L.y+20}))}return D.push(M),D}function p(N,L,V,M){return C(V,M,N,L).reverse()}function s(N,L,V,M){return o(V,M,N,L).reverse()}function l(N,L,V,M){return y(V,M,N,L).reverse()}function C(N,L,V,M){const D=[L];if(M.y<L.y&&(M.x<L.x&&D.push({x:M.x,y:L.y}),M.x>=L.x)){if(M.y<N.y){const W=(M.y+N.y)/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(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){const W=(V.x+V.w+L.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})}if(V.x+V.w>=L.x&&M.x<L.x)if(V.y<=N.y+N.h)D.push({x:V.x-20,y:L.y}),D.push({x:V.x-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+V.w+20,y:W}),D.push({x:V.x+V.w+20,y:M.y+20}),D.push({x:M.x,y:M.y+20})}if(M.x>=L.x){const W=N.x<V.x?N.x-20:V.x-20,F=N.y+N.h>V.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.x){const W=(L.x+(V.x+V.w))/2;V.y+V.h>=L.y&&M.y<L.y?(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})):M.y>=L.y&&V.y<L.y?(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})):(D.push({x:M.x-20,y:L.y}),D.push({x:M.x-20,y:M.y}))}if(M.x>=L.x){const W=(M.x+(N.x+N.w))/2;M.y>=N.y&&M.y<N.y+N.h/2?(D.push({x:L.x-20,y:L.y}),D.push({x:L.x-20,y:N.y-20}),D.push({x:W,y:N.y-20}),D.push({x:W,y:M.y})):M.y>=N.y+N.h/2&&M.y<N.y+N.h?(D.push({x:L.x-20,y:L.y}),D.push({x:L.x-20,y:N.y+N.h+20}),D.push({x:W,y:N.y+N.h+20}),D.push({x:W,y:M.y})):(D.push({x:L.x-20,y:L.y}),D.push({x:L.x-20,y:M.y}))}return D.push(M),D}const P={toptop:n,topright:r,topbottom:c,topleft:o,righttop:w,rightright:u,rightbottom:d,rightleft:y,bottomtop:h,bottomright:i,bottombottom:f,bottomleft:p,lefttop:s,leftright:l,leftbottom:C,leftleft:v};var b=e(33848);function g(N,L){const V={};switch(L){case"top":V.x=N.x+N.w/2,V.y=N.y;break;case"right":V.x=N.x+N.w,V.y=N.y+N.h/2;break;case"bottom":V.x=N.x+N.w/2,V.y=N.y+N.h;break;case"left":V.x=N.x,V.y=N.y+N.h/2;break;default:break}return V}function S(N,L){const V={};switch(L){case"top":V.x=N.x+N.w/2,V.y=N.y-20;break;case"right":V.x=N.x+N.w+20,V.y=N.y+N.h/2;break;case"bottom":V.x=N.x+N.w/2,V.y=N.y+N.h+20;break;case"left":V.x=N.x-20,V.y=N.y+N.h/2;break;default:break}return V}function t(N,L,V){const M=Math.atan2(L.y-V.y,V.x-L.x)*(180/Math.PI),D=(L.x+V.x)/2,W=(L.y+V.y)/2,F=[L];switch(N){case"top":Math.abs(V.x-L.x)>5?(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<L.x+L.w+20&&(B.push({x:L.x+L.w+20,y:V.y-20}),B.push({x:L.x+L.w+20,y:M.y})),B.push(M));break;case"right":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.x<V.x+10&&(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<L.y+L.h+20&&(B.push({x:V.x+20,y:L.y+L.h+20}),B.push({x:M.x,y:L.y+L.h+20})),B.push(M));break;case"bottom":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+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<L.x+L.w+20&&(B.push({x:L.x+L.w+20,y:V.y+20}),B.push({x:L.x+L.w+20,y:M.y})),B.push(M));break;case"left":M.x<=V.x-10&&(Math.abs(M.y-V.y)>5?((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<L.y+L.h+20&&(B.push({x:V.x-20,y:L.y+L.h+20}),B.push({x:M.x,y:L.y+L.h+20})),B.push(M));break;default:B.push(M);break}return B}function I(N,L,V,M){const D=[L],W=(L.x+M.x)/2,F=(L.y+M.y)/2;switch(N+"&"+V){case"top&top":D.push({x:L.x,y:F}),D.push({x:M.x,y:F});break;case"top&right":D.push({x:L.x,y:M.y});break;case"top&bottom":D.push({x:L.x,y:F}),D.push({x:M.x,y:F});break;case"top&left":D.push({x:L.x,y:M.y});break;case"right&top":D.push({x:M.x,y:L.y});break;case"right&right":D.push({x:W,y:L.y}),D.push({x:W,y:M.y});break;case"right&bottom":D.push({x:M.x,y:L.y});break;case"right&left":D.push({x:W,y:L.y}),D.push({x:W,y:M.y});break;case"bottom&top":D.push({x:L.x,y:F}),D.push({x:M.x,y:F});break;case"bottom&right":D.push({x:L.x,y:M.y});break;case"bottom&bottom":D.push({x:L.x,y:F}),D.push({x:M.x,y:F});break;case"bottom&left":D.push({x:L.x,y:M.y});break;case"left&top":D.push({x:M.x,y:L.y});break;case"left&right":D.push({x:W,y:L.y}),D.push({x:W,y:M.y});break;case"left&bottom":D.push({x:M.x,y:L.y});break;case"left&left":D.push({x:W,y:L.y}),D.push({x:W,y:M.y});break;default:break}return D.push(M),D}function k(N,L,V){const M=g(N,L),D=g(N,V),W=S(N,"top"),F=S(N,"right"),B=S(N,"bottom"),Y=S(N,"left"),X=[M];switch(L+"&"+V){case"top&right":X.push(W),X.push({x:F.x,y:W.y}),X.push(F);break;case"top&bottom":X.push(W),X.push({x:F.x,y:W.y}),X.push({x:F.x,y:B.y}),X.push(B);break;case"top&left":X.push(W),X.push({x:Y.x,y:W.y}),X.push(Y);break;case"right&top":X.push(F),X.push({x:F.x,y:W.y}),X.push(W);break;case"right&bottom":X.push(F),X.push({x:F.x,y:B.y}),X.push(B);break;case"right&left":X.push(F),X.push({x:F.x,y:B.y}),X.push({x:Y.x,y:B.y}),X.push(Y);break;case"bottom&top":X.push(B),X.push({x:F.x,y:B.y}),X.push({x:F.x,y:W.y}),X.push(W);break;case"bottom&right":X.push(B),X.push({x:F.x,y:B.y}),X.push(F);break;case"bottom&left":X.push(B),X.push({x:Y.x,y:B.y}),X.push(Y);break;case"left&top":X.push(Y),X.push({x:Y.x,y:W.y}),X.push(W);break;case"left&right":X.push(Y),X.push({x:Y.x,y:B.y}),X.push({x:F.x,y:B.y}),X.push(F);break;case"left&bottom":X.push(Y),X.push({x:Y.x,y:B.y}),X.push(B);break;default:break}return X.push(D),X}var j=e(27480);function z(N,L,V,M,D,W){if(V)return D?(0,b.RR)(N,L,!0,!1):(0,b.RR)(N,L,W==="end",W==="start");if(M)return[N,L];const F=Math.atan2(N.y-L.y,L.x-N.x)*(180/Math.PI),B=[];return B.push(N),(F>-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<Y-1;Z+=1){const J=B[Z],te=B[Z+1],he=Math.atan2(J.y-te.y,te.x-J.x)*(180/Math.PI);F.push({from:J,to:te,fromIndex:Z,toIndex:Z+1,direction:(0,b.b4)(he)})}const X=Math.round(L.x),G=Math.round(L.y);return F.forEach((Z,J)=>{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)&&Ct<Math.max(Ft,Dt)&&wt(Qt,Rt),Dt-Ft===0&&yn>Math.min(Gt,Qt)&&yn<Math.max(Gt,Qt)&&Zt(Dt,Rt),yn>Math.min(Gt,Qt)&&yn<Math.max(Gt,Qt)){const Dn=(Qt-Gt)/(Dt-Ft);if(Dn<=1&&Dn>=-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<Re.length;Ft++){if(!De&&Ft===0)continue;const Gt=Re[Ft],Dt=Ft===0?Re[Re.length-1]:Re[Ft-1],Qt=Gt.x,Ct=Gt.y,yn=Dt.x,rn=Dt.y;if(Qt-12<=mt&&mt<=Qt+12&&Ct-12<=xt&&xt<=Ct+12||yn-12<=mt&&mt<=yn+12&&rn-12<=xt&&xt<=rn+12)Ze=!1;else if(Gt.type===A.Straight&&Dt.type===A.Straight)gt(yn,rn,Qt,Ct,mt,xt,8,Ft);else{const Rt=X(Gt,Dt);if(Rt!==null){let Dn=[],To,mo;Dn=Rt.getUtils().roots(Rt.points.map(Ao=>({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)<Z(mo.x,mo.y,mt,xt)?nt.splitPoint=To:nt.splitPoint=mo):To?(Ze=!0,nt.index=Ft,nt.splitPoint=To):mo&&(Ze=!0,nt.index=Ft,nt.splitPoint=mo)}}}return Ze?nt:null},Z=(He,Re,De,Be)=>((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&&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&&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&&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(22.5*Math.PI/180)?this.setState({vx:To,vy:Bn}):Math.abs(Ao)>Math.tan(67.5*Math.PI/180)?this.setState({vx:ro,vy: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<Re&&nt<=99;)Ze+=$.Z.distance($e[nt-1],$e[nt]),nt+=1;return De?(nt-1)/100:nt/100},lt=(He,Re,De,Be,$e,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<Re.length;gt++){const wt={...Re[gt],x:Re[gt].x||0,y:Re[gt].y||0},Zt=gt===Re.length-1?Re[0]:Re[gt+1],Ft={...Zt,x:(Zt==null?void 0:Zt.x)||0,y:(Zt==null?void 0:Zt.y)||0};if(wt.type===A.Straight&&Ft.type===A.Straight){const Gt=new(Q())(wt.x,wt.y,(Ft.x+wt.x)/2,(Ft.y+wt.y)/2,Ft.x,Ft.y);Be.push(Gt),$e.push(Gt.length())}else if(wt.type===A.Straight&&Ft.type!==A.Straight){const Gt=new(Q())(wt.x,wt.y,Ft.x+(Ft.prev.x||mt),Ft.y+(Ft.prev.y||mt),Ft.x,Ft.y);Be.push(Gt),$e.push(Gt.length())}else if(wt.type!==A.Straight&&Ft.type===A.Straight){const Gt=new(Q())(wt.x,wt.y,wt.x+(wt.next.x||mt),wt.y+(wt.next.y||mt),Ft.x,Ft.y);Be.push(Gt),$e.push(Gt.length())}else{const Gt=new(Q())(wt.x,wt.y,wt.x+(wt.next.x||mt),wt.y+(wt.next.y||mt),Ft.x+(Ft.prev.x||mt),Ft.y+(Ft.prev.y||mt),Ft.x,Ft.y);Be.push(Gt),$e.push(Gt.length())}}for(let gt=0;gt<Re.length;gt++){const wt=(gt-1+Re.length)%Re.length,Zt=Be[wt],Ft=Be[gt],Gt=$.Z.neg(Zt.derivative(1)),Dt=Ft.derivative(0),Qt=Math.min(Math.abs($.Z.radianClockWise(Gt,Dt)),Math.abs($.Z.radianClockWise(Gt,Dt)));nt[gt]=Qt,Ze[gt]=Ue(Qt,Re[gt].radius)}const xt=Math.min(...$e.map((gt,wt)=>{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<De.length&&!(!Be&&mt===De.length-1);mt++){const xt=Ze[mt],gt=nt[mt].points;De[mt].radius&&xt.length!==0&&(Re+="C "+xt[1].x+" "+xt[1].y+" "+xt[2].x+" "+xt[2].y+" "+xt[3].x+" "+xt[3].y+" "),gt.length===3?Re+="Q "+gt[1].x+" "+gt[1].y+" "+gt[2].x+" "+gt[2].y+" ":Re+="C "+gt[1].x+" "+gt[1].y+" "+gt[2].x+" "+gt[2].y+" "+gt[3].x+" "+gt[3].y+" "}return Be&&(Re+="Z"),Re},at=(He,Re)=>{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;nt<De.length;nt++){const mt=De[nt],xt=mt[0];switch(xt){case 0:{const[,gt,wt]=mt;Ze.length>1&&$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<nt.length-1;gt++){const wt=nt[gt];if(!Object.prototype.hasOwnProperty.call(mt,wt)||typeof mt[wt]!="object"){xt=!1;break}mt=mt[wt]}xt&&Object.prototype.hasOwnProperty.call(mt,nt[nt.length-1])&&(mt[nt[nt.length-1]]=Be)}),Re}const go=(He,Re,De,Be)=>{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&&gt.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 <https://feross.org>
* @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='<svg xmlns="http://www.w3.org/2000/svg">'+j+"</svg>",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="<g>"+(re==null?void 0:re.innerHTML)+"</g>"}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<f;s++)p[s-1]=arguments[s];return r.postMessage({source:w,msgId:i,name:h,payload:p}),new Promise(l=>{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='<!DOCTYPE html>\n <html>\n <head>\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <title>'+pe+"</title>\n <style>\n body {\n margin: 0;\n padding: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;\n }\n body > div > .tree-node.rResCanvas {\n transform: none !important;\n }\n </style>\n "+_e.join("")+"\n </head>\n <body>\n "+Ge.join("")+"\n </body>\n </html>",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;B<W;B++)if(D.charCodeAt(B)>128?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<nt.scrollWidth;return(0,_.jsxs)(te,{className:"search-result-icon-group-list",children:[(0,_.jsxs)("header",{children:[(0,_.jsxs)("div",{className:"left",children:[(0,_.jsx)(re.A,{content:In,direction:"down",isShowTipsByTarget:$e,children:(0,_.jsx)("div",{className:"template-title",children:In})}),hn&&(0,_.jsx)(K.W,{resources:{policy:_o}})]}),(0,_.jsxs)("div",{className:"right",onClick:Qn,children:[(0,_.jsx)("span",{children:I18N.Resources.all}),(0,_.jsx)(f.C,{className:"arrow-right",name:"design/arrow/right"})]})]}),(0,_.jsx)("div",{className:l()("search-result-item-container",le.I.Icon),children:Ln.map((Ze,nt)=>(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<Lt.scrollWidth),this.state={isOpenMenu:!1,isEditing:!1,isSearching:!1}}render(){const{group:cn,currentResources:yt,onStarResources:Lt,onSearch:Wt}=this.props,{isOpenMenu:Jt,isEditing:In,isSearching:Ln}=this.state,hn=yt?yt.title:cn?cn.name:"",_o=this.handleGetItemLists(),vo=!!yt;return(0,_.jsxs)(Z,{children:[(0,_.jsx)(_n.A,{className:"nav-back-icon",name:"left_panel/back/arrow",onClick:this.handleBack}),(0,_.jsxs)("div",{className:"center",children:[vo?Ln?null:(0,_.jsxs)("div",{className:"title-box",children:[(0,_.jsx)(re.A,{content:hn,direction:"down",isShowTipsByTarget:this.onShowTipsByTarget,children:(0,_.jsx)("div",{className:"template-title",children:hn})}),(0,_.jsx)(K.W,{resources:yt})]}):(0,_.jsx)(L.A,{value:hn,className:"title",isEditing:In,onConfirm:this.handleConfirm},In+hn),vo?Ln?(0,_.jsx)(Fn.A,{ref:this.handleCreateRef,className:"search-bar is-searching",value:"",placeholder:I18N.ScreenPanel.keyword_search,onSearch:Wt}):(0,_.jsx)(_n.A,{className:"search-icon",name:"design/scale_search",onClick:this.handleToggle}):null]}),(0,_.jsx)("div",{className:"right",children:yt?(0,_.jsx)(Nn.X,{isStar:yt.is_star,onClick:Lt}):(0,_.jsxs)(J,{className:l()({"is-open":Jt}),ref:this.setElementRef,onMouseEnter:this.handMouseEnter,onMouseLeave:this.handMouseLeave,children:[(0,_.jsx)(_n.A,{className:"action-menu-opener",name:"left_panel/screen_action_menu"}),Jt&&(0,_.jsx)(V.A,{targetNode:this.$element,menuItems:_o})]})})]})}}const to=(0,c.Mz)([u.HW],$t=>({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<e.length;r++)n.push(e.charCodeAt(r)&255);return n},bytesToString:function(e){for(var n=[],r=0;r<e.length;r++)n.push(String.fromCharCode(e[r]));return n.join("")}}};Fe.exports=ee},16913:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>u});var n=e(38502),r=e(67787);const c=r.Ay.div.withConfig({displayName:"styles__StyledLinkAction",componentId:"sc-1tyil2l-0"})(["display:flex;justify-content:space-between;align-items:center;.link-action-title{display:flex;align-items:center;color:",";flex-shrink:0;&:lang(ja){font-size:10px;}}"],d=>d.theme.color_text_L3);var o=e(72214);const 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<L7^=8","r":"((","wh":"7he]7hMF","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","fill":"h ( wTRu7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","dtV":1,"rtB":"("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\nB@var {"T":")","B":"2"}\nB@dict {"T":")","B":"3"}\nB@style {"T":")","B":"5"}\n@page-content-tag-proto2-2208 {"time":"2025-11-26T06:35:57.608Z","hotAABB":[-1010,-703.5,-890,-603.5],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'}),s=()=>({preview:"star",meta:{name:I18N.w.wStar,type:"wStar",width:100,height:100},data:'@@R * {}\n@@M 2 {}\nB@main ) {"T":")","B":"*"}\nTtTUdXcfV3dTniFLuIJrIG {"rs":{"c":{}},"rtS":["PingFangSC","regular","rgba(16,16,16,1)"],"styT":"*","N":"'+I18N.w.wStar+' 1","Z":"?","so":"","rtN":"( ) ) 6 ) < ( 7g/. 7g/. (!(!(!(","iCT":"h","!LHV":1,"!WBIV":1,"rtm":"7g/.7g/.7g/.7g/.","brdRV":"h","!FFV":1,"T":"X","xy":"7V]q7^oC","r":"((","wh":"7hMF7hMF","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","fill":"h ( wTRu7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","dtV":1,"rtB":"(","plgS":"7g4u7g/.7gj:","brd":"h bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\nB@var {"T":")","B":"2"}\nB@dict {"T":")","B":"3"}\nB@style {"T":")","B":"5"}\n@page-content-tag-proto2-2208 {"time":"2025-11-26T06:38:08.830Z","hotAABB":[-1194,-661.25,-1094,-561.25],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'}),l=()=>({preview:"placeholder",meta:{name:I18N.w.placeholder,type:"wPlaceholder",width:200,height:100},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTULmLslJeJF3 {"xy":"7e+R7sRT","T":"f","N":"'+I18N.w.placeholder+' 1","Z":"5","r":"((","wh":"7il_7hMF","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","fill":"h ( wTRu7","brdR":"h bYpZx ) (!(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","ttv0P":",xd+r ( ( ) ) 6 < (","ttv0S":""}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T02:59:38.440Z","hotAABB":[-251,868,-51,968],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'}),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":"<path d=\\"M15.111 15.118v-6.222c0-0.491 0.398-0.889 0.889-0.889h0.005c0.488 0.003 0.882 0.4 0.88 0.889l-0.032 6.222h6.259c0.491 0 0.889 0.398 0.889 0.889s-0.398 0.889-0.889 0.889h-6.268l-0.033 6.264c-0.002 0.469-0.383 0.847-0.852 0.847s-0.847-0.379-0.847-0.847v-6.264h-6.222c-0.491 0-0.889-0.398-0.889-0.889s0.398-0.889 0.889-0.889h6.222z\\"></path><path d=\\"M16 28.444c6.873 0 12.444-5.572 12.444-12.444s-5.572-12.444-12.444-12.444c-6.873 0-12.444 5.572-12.444 12.444s5.572 12.444 12.444 12.444zM16 30.222c-7.855 0-14.222-6.367-14.222-14.222s6.367-14.222 14.222-14.222 14.222 6.367 14.222 14.222-6.367 14.222-14.222 14.222z\\"></path>","icSA":[0,0]}\nrcTOksOVTtTVK7dlo1EKl6 - {"N":"'+I18N.Basket.state2+'","Z":".","od":"*","xy":"7h(47hFH","fill":"h ( wTRr:","T":"*","wh":"7hx:7i^c","iLVA":"*","ort":")","icc":"h","shh":"(","sfh":"(","dvc":")","alH":"","alV":"","I":"","lg":"( 2 2 2 2 <"}\nlb4vfhn3TtTVK7do46cJSv {"N":"'+I18N.w.add+'","I":[[3,"itaTOkwaTtTVK7dJaNntsW","","(",["9 0.2s 0 ","wbTOksOVTtTVK7dHXfAC4d","rcTOksOVTtTVK7d10RPe7d"]]],"xy":"7h]P7g?F","wh":"7gO_7gO_","icNCS":["ze-add-o","rgba(16,16,16,1)","D"],"T":"y","Z":"1","r":"((","o":"3_","iLVA":".","fPt":"(","ani":"( 0 0.1s 1","brdR":"h bYpZx ( (!(","fill":"h ( ,xd+r","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","icVB":"0 0 32 32","icP":"<path d=\\"M15.111 15.118v-6.222c0-0.491 0.398-0.889 0.889-0.889h0.005c0.488 0.003 0.882 0.4 0.88 0.889l-0.032 6.222h6.259c0.491 0 0.889 0.398 0.889 0.889s-0.398 0.889-0.889 0.889h-6.268l-0.033 6.264c-0.002 0.469-0.383 0.847-0.852 0.847s-0.847-0.379-0.847-0.847v-6.264h-6.222c-0.491 0-0.889-0.398-0.889-0.889s0.398-0.889 0.889-0.889h6.222z\\"></path><path d=\\"M16 28.444c6.873 0 12.444-5.572 12.444-12.444s-5.572-12.444-12.444-12.444c-6.873 0-12.444 5.572-12.444 12.444s5.572 12.444 12.444 12.444zM16 30.222c-7.855 0-14.222-6.367-14.222-14.222s6.367-14.222 14.222-14.222 14.222 6.367 14.222 14.222-6.367 14.222-14.222 14.222z\\"></path>","icSA":[0,0]}\nwwTOkvlETtTVK7d3IrkxZ4 + {"N":"'+I18N.w.file_transfer+'","T":"P","Z":"6","xy":"7h(47i8P","r":"((","wh":"7g/.7g/.","o":"3_","iLVA":"*","fPt":"(","I":"","iASC":"+"}\nlb4vko3aTtTVK7dLyxzf94 {"fill":"( ( ?e~4[","Z":")","N":"'+I18N.w.rounded_rect+'","T":"M","xy":"7g/.7g/.","r":"((","wh":"7hx:7gc<","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 0.1s 1","brdRV":"( bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nlb4vl9gfTtTVK7dqDek3aV {"Z":"+","T":"x","N":"'+I18N.w.wRichText+'","xy":"7g7:7g.R","r":"((","wh":"7ggu7gIo","o":"3_","iLVA":"*","fPt":"(","I":"","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","ani":"( 0 0.1s 1","b/#000000":["( ( ","'+I18N.w.file_transfer+'",[],[]],"rtS":["SourceHanSansSC","regular","rgba(255,255,255,1)"],"rtN":"( ( ( 8 ( ? ( 7g/. 7g4u","rtB":"("}\nlb4vn4vyTtTVK7dzniLRLp {"Z":"*","N":"'+I18N.w.file_transfer+'","T":"y","xy":"7fXu7g/.","r":"((","wh":"7gJ}7gJ}","o":"3_","iLVA":".","fPt":"(","I":"","ani":"( 0 0.1s 1","brdR":"h bYpZx ( (!(","fill":"h ( wTRu7","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","icVB":"0 0 32 32","icP":"<path d=\\"M3.556 9.778v-4.444c0-0.982 0.796-1.778 1.778-1.778h4.444c0.491 0 0.889 0.398 0.889 0.889s-0.398 0.889-0.889 0.889h-4.444v4.444c0 0.491-0.398 0.889-0.889 0.889s-0.889-0.398-0.889-0.889zM5.333 22.222v4.444h4.444c0.491 0 0.889 0.398 0.889 0.889s-0.398 0.889-0.889 0.889h-4.444c-0.982 0-1.778-0.796-1.778-1.778v-4.444c0-0.491 0.398-0.889 0.889-0.889s0.889 0.398 0.889 0.889zM26.667 9.778v-4.444h-4.444c-0.491 0-0.889-0.398-0.889-0.889s0.398-0.889 0.889-0.889h4.444c0.982 0 1.778 0.796 1.778 1.778v4.444c0 0.491-0.398 0.889-0.889 0.889s-0.889-0.398-0.889-0.889zM28.444 22.222v4.444c0 0.982-0.796 1.778-1.778 1.778h-4.444c-0.491 0-0.889-0.398-0.889-0.889s0.398-0.889 0.889-0.889h4.444v-4.444c0-0.491 0.398-0.889 0.889-0.889s0.889 0.398 0.889 0.889zM4.444 15.111h23.111c0.491 0 0.889 0.398 0.889 0.889s-0.398 0.889-0.889 0.889h-23.111c-0.491 0-0.889-0.398-0.889-0.889s0.398-0.889 0.889-0.889z\\"></path>","icNCS":["ze-scan","rgba(16,16,16,1)","@"],"icSA":[0,0]}\nwwTOkvmlTtTVK7dPvwSWYn + {"N":"'+I18N.w.add_friend+'","T":"P","Z":";","xy":"7h(47h[B","r":"((","wh":"7g/.7g/.","o":"3_","iLVA":"*","fPt":"(","I":"","iASC":"+"}\nlb4vl9gfTtTVK7d7iWeBtp {"Z":",","T":"x","N":"'+I18N.w.wRichText+' 1","xy":"7g@T7g.R","r":"((","wh":"7gzR7gIo","o":"3_","iLVA":"*","fPt":"(","I":"","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","ani":"( 0 0.1s 1","b/#000000":["( ( ","'+I18N.w.add_friend+'",[],[]],"rtS":["SourceHanSansSC","regular","rgba(255,255,255,1)"],"rtN":"( ( ( 8 ( ? ( 7g/. 7g4u","rtB":"("}\nlb4vko3aTtTVK7d4uykMHK {"fill":"( ( ?e~4[","iLVA":"*","N":"'+I18N.w.rounded_rect+'","Z":")","T":"M","xy":"7g/.7g/.","r":"((","wh":"7hx:7gc<","o":"3_","fPt":"(","I":"","ani":"( 0 0.1s 1","brdRV":"( bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nlb4vzdfhTtTVK7d2EwEzsY {"N":"'+I18N.w.add_friend+'","fill":"h ( wTRu7","xy":"7fXu7g-w","Z":"+","T":"y","r":"((","wh":"7gJ}7gJ}","o":"3_","iLVA":".","fPt":"(","I":"","ani":"( 0 0.1s 1","brdR":"h bYpZx ( (!(","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","icVB":"0 0 32 32","icP":"<path d=\\"M10.102 13.369v1.791c-3.696 0.493-6.546 3.658-6.546 7.489l0-0.032c0.001 0.018 0.002 0.037 0.002 0.056 0 0.491-0.398 0.889-0.889 0.889s-0.889-0.398-0.889-0.889c0-0.008 0-0.016 0-0.024h-0.002c0-4.814 3.644-8.776 8.324-9.279zM10.036 6.262l0.015 0c0.484 0.008 0.874 0.403 0.874 0.889 0 0.491-0.398 0.889-0.889 0.889-1.473 0-2.667 1.194-2.667 2.667s1.194 2.667 2.667 2.667v1.778c-2.455 0-4.444-1.99-4.444-4.444s1.99-4.444 4.444-4.444zM17.703 15.076c5.891 0 10.667 4.776 10.667 10.667h-1.778c0-4.909-3.98-8.889-8.889-8.889l-0.147 0.001c-4.841 0.078-8.742 4.028-8.742 8.888h-1.778c0-5.891 4.776-10.667 10.667-10.667zM10.036 13.373c0.491 0 0.889 0.398 0.889 0.889s-0.398 0.889-0.889 0.889-0.889-0.398-0.889-0.889c0-0.491 0.398-0.889 0.889-0.889zM7.926 24.854c0.491 0 0.889 0.398 0.889 0.889s-0.398 0.889-0.889 0.889c-0.491 0-0.889-0.398-0.889-0.889s0.398-0.889 0.889-0.889zM27.481 24.854c0.491 0 0.889 0.398 0.889 0.889s-0.398 0.889-0.889 0.889c-0.491 0-0.889-0.398-0.889-0.889s0.398-0.889 0.889-0.889zM17.751 14.222c2.455 0 4.444-1.99 4.444-4.444s-1.99-4.444-4.444-4.444-4.444 1.99-4.444 4.444c0 2.455 1.99 4.444 4.444 4.444zM17.751 16c-3.436 0-6.222-2.786-6.222-6.222s2.786-6.222 6.222-6.222 6.222 2.786 6.222 6.222c0 3.436-2.786 6.222-6.222 6.222z\\"></path>","icNCS":["ze-friends-o","rgba(16,16,16,1)","@"],"icSA":[0,0]}\nwwTOkvo5TtTVK7deIPHH38 + {"N":"'+I18N.w.message+'","T":"P","Z":">","xy":"7h(47h(4","r":"((","wh":"7g/.7g/.","o":"3_","iLVA":"*","fPt":"(","I":"","iASC":"+"}\nlb4vl9gfTtTVK7djUT69GJ {"Z":",","b/#000000":["( ( ","'+I18N.w.message+'",[],[]],"T":"x","N":"'+I18N.w.wRichText+' 2","xy":"7g@T7g.R","r":"((","wh":"7gzR7gIo","o":"3_","iLVA":"*","fPt":"(","I":"","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","ani":"( 0 0.1s 1","rtS":["SourceHanSansSC","regular","rgba(255,255,255,1)"],"rtN":"( ( ( 8 ( ? ( 7g/. 7g4u","rtB":"("}\nlb4vko3aTtTVK7dsz8rQ9q {"fill":"( ( ?e~4[","iLVA":"*","N":"'+I18N.w.wRichText+'","Z":")","T":"M","xy":"7g/.7g/.","r":"((","wh":"7hx:7gc<","o":"3_","fPt":"(","I":"","ani":"( 0 0.1s 1","brdRV":"( bYpZx ) (!(!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nlb4vxrwaTtTVK7d2XimUnq {"N":"'+I18N.w.message+'","fill":"h ( wTRu7","xy":"7fXu7g-w","Z":"+","T":"y","r":"((","wh":"7gJ}7gJ}","o":"3_","iLVA":".","fPt":"(","I":"","ani":"( 0 0.1s 1","brdR":"h bYpZx ( (!(","shd":"+ ( ((()8 ((((( ;_2g, ;rw*}","icVB":"0 0 32 32","icP":"<path d=\\"M4.874 25.576l3.491-1.127 0.685 0.397c2.036 1.18 4.434 1.821 6.95 1.821 6.922 0 12.444-4.832 12.444-10.667s-5.523-10.667-12.444-10.667-12.444 4.832-12.444 10.667c0 2.059 0.683 4.033 1.958 5.739l0.603 0.807-1.242 3.031zM16 28.444c-2.898 0-5.593-0.758-7.841-2.061l-4.559 1.472c-0.082 0.027-0.176 0.043-0.273 0.043-0.122 0-0.237-0.024-0.343-0.069l0.006 0.002c-0.454-0.186-0.672-0.705-0.486-1.16l1.586-3.87c-1.462-1.955-2.311-4.292-2.311-6.803 0-6.873 6.367-12.444 14.222-12.444s14.222 5.572 14.222 12.444c0 6.873-6.367 12.444-14.222 12.444z\\"></path><path d=\\"M17.778 16c0 0.982-0.796 1.778-1.778 1.778s-1.778-0.796-1.778-1.778c0-0.982 0.796-1.778 1.778-1.778s1.778 0.796 1.778 1.778z\\"></path><path d=\\"M10.667 16c0 0.982-0.796 1.778-1.778 1.778s-1.778-0.796-1.778-1.778c0-0.982 0.796-1.778 1.778-1.778s1.778 0.796 1.778 1.778z\\"></path><path d=\\"M24.889 16c0 0.982-0.796 1.778-1.778 1.778s-1.778-0.796-1.778-1.778c0-0.982 0.796-1.778 1.778-1.778s1.778 0.796 1.778 1.778z\\"></path>","icNCS":["ze-chat-o","rgba(16,16,16,1)","@"],"icSA":[0,0]}\nwwTOkvpiTtTVK7dic22ooG * {"N":"'+I18N.w.bubble+'","T":"P","Z":"3","xy":"7h(47hYX","r":"((","wh":"7g/.7g/.","o":"3_","iLVA":"*","fPt":"(","I":"","iASC":"+"}\nlb4vimfnTtTVK7dlJwzTev {"fill":"h ( ?e~4[","T":"M","N":"'+I18N.w.wRichText+'","Z":"2","xy":"7g/.7g1}","r":"((","wh":"7hx:7i1R","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 0.1s 1","brdRV":"( bYpZx ) (!2!7","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g/.","rtB":"("}\nlb4vjlm6TtTVK7dGOai1fU {"N":"'+I18N.w.triangleb+'","T":"h","Z":"3","xy":"7gd}7f.N","r":"((","wh":"7g9V7g6,","o":"3_","iLVA":"*","fPt":"(","I":"","fill":"h ( ?e~4[","ani":"( 0 0.1s 1"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.166Z","hotAABB":[833,1700,969,1888],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVKdZUNWYGJl:{preview:"navigation_menu",meta:{name:I18N.w.navigation_menu,type:"wNavigationMenu",width:256,height:560},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVKdZUNWYGJl {"!FFV":1,"T":"n","N":"'+I18N.w.navigation_menu+' 1","Z":"N","xy":"7sMs8._}","r":"((","wh":"7jVi7na<","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","brdRV":"h bYpZx ) (!(!7","odNM":"U ( wTRu7 6 <*l0[ P u,aHh 6 <*l0[ P oq=X3 6 .v~[9 )","odNMb":"h bYpZx ) (","odNMs":") ( ((()8 ((((( ;_2g, ;rw*} (((((","od":[[["'+I18N.Widget.nav1+'","","-",["<path d=\\"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z\\"></path>","64 64 896 896"]],[[["'+I18N.Widget.navItem1+'","","/",""],[]],[["'+I18N.Widget.navItem2+'","","-",""],[]],[["'+I18N.Widget.navItem3+'","","-",""],[]]]],[["'+I18N.Widget.nav2+'","","-",["<path d=\\"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0 0 68.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z\\"></path>","64 64 896 896"]],[]],[["'+I18N.Widget.nav3+'","","-",["<path d=\\"M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z\\"></path>","64 64 896 896"]],[]]],"rm":"*"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.167Z","hotAABB":[786,1980,1042,2540],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVL8ogc4IFRO:{preview:"navigation_menu_v",meta:{name:I18N.w.navigation_menu_v,type:"wNavigationMenu",width:256,height:560,metaType:n.x.WNavigationMenuV},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVL8ogc4IFRO {"!FFV":1,"T":"n","N":"'+I18N.w.navigation_menu_v+' 1","Z":"O","xy":"7sn>87BD","r":"((","wh":"7jVi7na<","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","brdRV":"h bYpZx ) (!(!7","odNM":"U ) wTRu7 6 <*l0[ P u,aHh 6 <*l0[ P oq=X3 6 .v~[9 )","odNMb":"h bYpZx ) (","odNMs":") ( ((()8 ((((( ;_2g, ;rw*} (((((","od":[[["'+I18N.Widget.nav1+'","","-",["<path d=\\"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z\\"></path>","64 64 896 896"]],[[["'+I18N.Widget.navItem1+'","","/",""],[]],[["'+I18N.Widget.navItem2+'","","-",""],[]],[["'+I18N.Widget.navItem3+'","","-",""],[]]]],[["'+I18N.Widget.nav2+'","","-",["<path d=\\"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0 0 68.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z\\"></path>","64 64 896 896"]],[]],[["'+I18N.Widget.nav3+'","","-",["<path d=\\"M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z\\"></path>","64 64 896 896"]],[]]],"rm":"*"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.168Z","hotAABB":[813,2621,1069,3181],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVLvB2MuPXDp:{preview:"navigation_menu_h",meta:{name:I18N.w.navigation_menu_h,type:"wNavigationMenu",width:446,height:48,metaType:n.x.WNavigationMenuH},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVLvB2MuPXDp {"!FFV":1,"N":"'+I18N.w.navigation_menu_h+' 1","Z":"`","T":"n","xy":"7s=Z7li@","r":"((","wh":"7m1c7ggu","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","brdRV":"h bYpZx ) (!(!7","odNM":"U * wTRu7 6 <*l0[ P u,aHh 6 <*l0[ P oq=X3 6 .v~[9 )","odNMb":"h bYpZx ) (","odNMs":") ( ((()8 ((((( ;_2g, ;rw*} (((((","od":[[["'+I18N.Widget.nav1+'","","-",["<path d=\\"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z\\"></path>","64 64 896 896"]],[[["'+I18N.Widget.navItem1+'","","/",""],[]],[["'+I18N.Widget.navItem2+'","","-",""],[]],[["'+I18N.Widget.navItem3+'","","-",""],[]]]],[["'+I18N.Widget.nav2+'","","-",["<path d=\\"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0 0 68.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z\\"></path>","64 64 896 896"]],[]],[["'+I18N.Widget.nav3+'","","-",["<path d=\\"M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z\\"></path>","64 64 896 896"]],[]]],"rm":"*"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-02-05T03:39:34.619Z","hotAABB":[677,395,1123,443],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVMLlFqQpSXt:{preview:"mobile_tab_bars",meta:{name:I18N.w.wMobileTabBars,type:"wMobileTabBars",width:375,height:50},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVMLlFqQpSXt {"!FFV":1,"T":"r","N":"'+I18N.w.wMobileTabBars+' 1","Z":"Q","xy":"7sNN8?Y{","r":"((","wh":"7l527gj:","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","fill":"h ( wTRu7","brdRV":"h bYpZx ) (!(!7","odMTB":"7 6 6 GJ~|r .v~[9 .v~[9 GJ~|r","od":[[["'+I18N.Widget.tab1+'","","*",["<path d=\\"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z\\"></path>","64 64 896 896"]],[]],[["'+I18N.Widget.tab2+'","","(",["<path d=\\"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0 0 68.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z\\"></path>","64 64 896 896"]],[]],[["'+I18N.Widget.tab3+'","","(",["<path d=\\"M854.6 289.1a362.49 362.49 0 0 0-79.9-115.7 370.83 370.83 0 0 0-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 0 0 169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0 0 22.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1zm0-617.2c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 0 1 512 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8C612.4 381 624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z\\"></path>","64 64 896 896"]],[]],[["'+I18N.Widget.tab4+'","","(",["<path d=\\"M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z\\"></path>","64 64 896 896"]],[]]]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.171Z","hotAABB":[727,3488,1102,3538],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVMqx9iR0R5D:{preview:"segmented_control",meta:{name:I18N.w.wSegmentedControl,type:"wSegmentedControl",width:280,height:32},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVMqx9iR0R5D {"!FFV":1,"T":"o","N":"'+I18N.w.wSegmentedControl+' 1","Z":"R","xy":"7t/c8BE6","r":"((","wh":"7jsa7gT@","o":"3_","iLVA":"*","fPt":"(","I":"","fill":"h ( wTRu7","ani":"( 0 1s 1","brdRV":"h .v~[9 ) (!,!7","odSGC":"+ wTRu7 .v~[9 .v~[9 6 wTRu7 6","od":[[["'+I18N.Widget.option1+'","","+",""],[]],[["'+I18N.Widget.option2+'","",")",""],[]],[["'+I18N.Widget.option3+'","",")",""],[]]]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.171Z","hotAABB":[822,3701,1102,3733],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVNBcbIennx:{preview:"collapse",meta:{name:I18N.w.wCollapse,type:"wCollapse",width:320,height:212},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVNBcbIennx {"!FFV":1,"xy":"7ru88E<(","T":"m","N":"'+I18N.w.wCollapse+' 1","Z":"S","r":"((","wh":"7kK67izZ","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","brdRV":"h bYpZx ) (!*!7","ttv0P":"wTRu7 ( ( ) ) 6 < (","ttv0S":"","odCL":". ( wTRu7 <*l0[ 6 wTRu7 <*l0[ ((((6","od":[[["'+I18N.Widget.title1+'","","-",""],[[["'+I18N.Widget.content1+'","","(",""],[]]]],[["'+I18N.Widget.title2+'","",")",""],[[["'+I18N.Widget.content1+'","","(",""],[]]]],[["'+I18N.Widget.title3+'","",")",""],[[["'+I18N.Widget.content1+'","","(",""],[]]]]]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.173Z","hotAABB":[713,3825,1033,4037],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVO2WuWGtO7a:{preview:"tabs",meta:{name:I18N.w.wTabs,type:"wTabs",width:240,height:32},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVO2WuWGtO7a {"!FFV":1,"T":"p","N":"'+I18N.w.wTabs+' 1","Z":"T","xy":"7s>i8GrZ","r":"((","wh":"7jD47gT@","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":"wTRu7 ( ( ) ) 6 < (","ttv0S":"","ani":"( 0 1s 1","brdRV":"h bYpZx ) (!(!7","odT":"6 <*l0[ 6 .v~[9 ( ( (","odTb":"h .v~[9 * (","od":[[["'+I18N.Widget.tab1+'","","*",""],[]],[["'+I18N.Widget.tab2+'","","(",""],[]],[["'+I18N.Widget.tab3+'","","(",""],[]]]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.174Z","hotAABB":[781,4109,1021,4141],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVOdXCG999rR:{preview:"pagination_mobile",meta:{name:I18N.w.wPaginationMobile,type:"wPaginationMobile",width:232,height:32},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVOdXCG999rR {"!FFV":1,"T":"k","N":"'+I18N.w.wPaginationMobile+' 1","Z":"U","xy":"7ru88IKB","r":"((","wh":"7j:q7gT@","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":"wTRu7 ( ( ) ) 6 < (","ttv0S":"","fill":"h ( wTRu7","ani":"( 0 1s 1","brdRV":"h bYpZx ) (!*!7","pagM":"- 6 .v~[9 <*l0[ ((((6 *"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.174Z","hotAABB":[757,4224,989,4256],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTVP4fRDRkZug:{preview:"pagination_web",meta:{name:I18N.w.wPaginationWeb,type:"wPaginationWeb",width:232,height:32},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTVP4fRDRkZug {"!FFV":1,"T":"j","N":"'+I18N.w.wPaginationWeb+' 1","Z":"V","xy":"7rTm8K/R","r":"((","wh":"7j:q7gT@","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":"wTRu7 ( ( ) ) 6 < (","ttv0S":"","fill":"h ( wTRu7","ani":"( 0 1s 1","brdRV":"h bYpZx ) (!*!7","pagW":"- wTRu7 h 6 .v~[9 <*l0[ ((((6 *","pagWb":"h .v~[9 ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:02:32.174Z","hotAABB":[730,4348,962,4380],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWeOPmqcisnP:{preview:"bar_chart",meta:{name:I18N.w.bar_chart,type:"wChart",width:360,height:300,metaType:n.x.WBarChart},data:'\'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWeOPmUJuPgqQ4v2yvqT {"chtP":"( ( ) , o ( ( e ), pMNcl .v~[9 ( + 5Tm 1]wvb 4 ,xd+r Z","N":"'+I18N.w.bar_chart+'","Z":"X","so":"","ttv0P":",xd+r ( ( ) ) 4 < ( ( + (!(!(!(","ttv0F":"PingFangSC","chtAX":"h 4 ,xd+r (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],"","","",""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],"","","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"( 4 ,xd+r","chtLT":"","chtLN":"","T":"t","xy":"7i[F7Vca","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0S":"","ani":"( 0 1s 1","chtSF":"","chtPF":"","chtB":"h bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-07-29T09:59:56.426Z","hotAABB":[6,-1289,366,-989],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWel7wW2HUxE:{preview:"horizontal_bar_chart",meta:{name:I18N.w.horizontal_bar_chart2,type:"wChart",width:360,height:300,metaType:n.x.WHorizontalBarChart},data:'\'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWel7wUJuQJyN2PMk8ux {"chtP":") ( ) , o ( ( e ), pMNcl .v~[9 ( + 5Tm 1]wvb 4 ,xd+r Z","N":"'+I18N.w.horizontal_bar_chart2+'","Z":"[","so":"","ttv0P":",xd+r ( ( ) ) 4 < ( ( + (!(!(!(","ttv0F":"PingFangSC","chtAX":"h 4 ,xd+r (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],"","","",""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],"","","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"( 4 ,xd+r","chtLT":"","chtLN":"","T":"t","xy":"7n(L7Ym0","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0S":"","ani":"( 0 1s 1","chtSF":"","chtPF":"","chtB":"h bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-07-29T10:02:27.796Z","hotAABB":[332,-1059,692,-759],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWfCFq1eoQ9w:{preview:"line_chart",meta:{name:I18N.w.line_chart,type:"wChart",width:360,height:300,metaType:n.x.WLineChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWfCFq1eoQ9w {"T":"t","N":"'+I18N.w.line_chart+'","Z":"Y","xy":"7h+_8[Ha","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"* ( ) , o ( ( e ), pMNcl .v~[9 ( + ","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],""]],"6 wTRu7"]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:07:40.968Z","hotAABB":[-109,5419,251,5719],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWfWul8AGMEc:{preview:"line_area_chart",meta:{name:I18N.w.line_area_chart,type:"wChart",width:360,height:300,metaType:n.x.WLineAreaChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWfWul8AGMEc {"T":"t","N":"'+I18N.w.line_area_chart+'","Z":"Z","xy":"7gV]8acP","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"+ ( ) , o ( ( e ), pMNcl .v~[9 ( + ","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],""]],"6 wTRu7"]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:07:40.968Z","hotAABB":[-146,5811,214,6111],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWfrVJJuk07W:{preview:"mixed_bar_line_chart",meta:{name:I18N.w.mixed_bar_line_chart,type:"wChart",width:360,height:300,metaType:n.x.WMixedBarLineChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWfrVJUJuQUGbyBKlYWV {"chtP":"0 ( ) , o ( ( e ), pMNcl .v~[9 ( + 5Tm 1]wvb 4 ,xd+r Z","N":"\u7EC4\u5408\u56FE 2","Z":"]","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],"","","","("],["'+I18N.Widget.data2+'",["150","100","200","140","100"],"","","",")"]],"6 wTRu7"],"so":"","ttv0P":",xd+r ( ( ) ) 4 < ( ( + (!(!(!(","ttv0F":"PingFangSC","chtAX":"h 4 ,xd+r (","chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"( 4 ,xd+r","chtLT":"","chtLN":"","T":"t","xy":"7rt*7l.4","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0S":"","ani":"( 0 1s 1","chtSF":"","chtPF":"","chtB":"h bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-07-29T10:03:10.506Z","hotAABB":[692,219,1052,519],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWgHsD6EmAYA:{preview:"pie_chart",meta:{name:I18N.w.pie_chart,type:"wChart",width:360,height:300,metaType:n.x.WPieChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWgHsD6EmAYA {"T":"t","N":"'+I18N.w.pie_chart+'","Z":"]","xy":"7e]D8l(q","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":", ( ) , o ( ( e ), pMNcl .v~[9 ( + ","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],""]],"6 wTRu7"]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:07:40.969Z","hotAABB":[-289,6575,71,6875],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWgk9hDScIoD:{preview:"ring_chart",meta:{name:I18N.w.ring_chart,type:"wChart",width:360,height:300,metaType:n.x.WRingChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWgk9hDScIoD {"T":"t","N":"'+I18N.w.ring_chart+'","Z":"^","xy":"7fy@8r2L","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"- ( ) , o ( ( e ), pMNcl .v~[9 ( + ","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],""]],"6 wTRu7"]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:07:40.969Z","hotAABB":[-191,7027,169,7327],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWhAVnCqoxVg:{preview:"progress_chart",meta:{name:I18N.w.progress_chart,type:"wChart",width:360,height:300,metaType:n.x.WProgressChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWhAVnCqoxVg {"T":"t","N":"'+I18N.w.progress_chart+'","Z":"_","xy":"7gV]8wL<","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":". ( ) , o ( ( e ), pMNcl .v~[9 ( + ","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],""]],"6 wTRu7"]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:07:40.969Z","hotAABB":[-146,7419,214,7719],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWhURSssw9ki:{preview:"radar_chart",meta:{name:I18N.w.radar_chart,type:"wChart",width:360,height:300,metaType:n.x.WRadarChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWhURSssw9ki {"T":"t","N":"'+I18N.w.radar_chart+'","Z":"`","xy":"7fy@8}Uo","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"/ ( ) , o ( ( e ), pMNcl .v~[9 ( + ","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],""]],"6 wTRu7"]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:07:40.969Z","hotAABB":[-191,7871,169,8171],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U112FanAvTVF9D:{preview:"waterfall_chart",meta:{name:I18N.w.waterfall_chart,type:"wChart",width:360,height:300,metaType:n.x.WWaterfallChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU112FanAUJuXtqJgWJ17H7 {"chtP":"1 ( ) , o ( ( e ), pMNcl .v~[9 ( / 5Tm 1]wvb 4 ,xd+r Z","N":"\u7011\u5E03\u56FE 4","Z":"i","so":"","ttv0P":",xd+r ( ( ) ) 4 < ( ( + (!(!(!(","ttv0F":"PingFangSC","chtAX":"h 4 ,xd+r (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.added_value+'",["600","300","-500","200","-100"],"@e5qC","","",""],["'+I18N.Widget.decreased_add+'",[],"H2W=M","","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"( 4 ,xd+r","chtLT":"","chtLN":"","xy":"7qx_7F^>","T":"t","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0S":"","ani":"( 0 1s 1","chtSF":"","chtPF":"","chtB":"h bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-07-29T10:32:30.768Z","hotAABB":[622,-2477,982,-2177],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U4sweo7BYbHNop:{preview:"scatter_chart",meta:{name:"\u6563\u70B9\u56FE",type:"wChart",width:360,height:300,metaType:n.x.WScatterChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU4sweo7BYbHNop {"T":"t","N":"\u6563\u70B9\u56FE","Z":"1","xy":"7iTH7i_q","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"2 ( ) , o ( ( e ), pMNcl .v~[9 ( / 5Tm 1]wvb 4 ,xd+r 7 ( H 4 e Z","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtAX":"h 4 ,xd+r (","chtD":[["X","Y"],[],[["\u7C7B\u522B1",[1,3],"","",""],["\u7C7B\u522B1",[3,4],"","",""],["\u7C7B\u522B1",[5,7],"","",""],["\u7C7B\u522B2",[2,4],"","",""],["\u7C7B\u522B2",[4,5],"","",""],["\u7C7B\u522B2",[6,3],"","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"h 4 ,xd+r","chtLT":"h 4 ,xd+r","chtLN":"h 4 ,xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-18T01:23:06.149Z","hotAABB":[0,39,360,339],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U113fyFbNJRWiK:{preview:"nightingale_chart",meta:{name:I18N.w.nightingale_chart,type:"wChart",width:360,height:300,metaType:n.x.WNightingaleChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU113fyFbNJRWiK {"chtP":"3 ( ) , < ( ( e ), pMNcl .v~[9 0 / ","Z":"l","N":"'+I18N.w.nightingale_chart+' 2","chtD":[["'+I18N.Widget.jan+'"],[],[["'+I18N.Widget.data1+'",["40"],""],["'+I18N.Widget.data2+'",["32"],""],["'+I18N.Widget.data3+'",["28"],""],["'+I18N.Widget.data4+'",["25"],""],["'+I18N.Widget.data5+'",["18"],""]],"6 wTRu7"],"xy":"7f767ex.","T":"t","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtSF":"","chtPF":"","chtB":"h bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-01-17T01:39:32.385Z","hotAABB":[-247,-236,113,64],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U113uufKHEoqFT:{preview:"funnel_chart",meta:{name:I18N.w.funnel_chart,type:"wChart",width:360,height:300,metaType:n.x.WFunnelChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU113uufKHEoqFT {"chtP":"4 ( ) , o ( ( e ), pMNcl .v~[9 ( / ","Z":"k","chtD":[["'+I18N.Widget.jan+'"],[],[["'+I18N.Widget.data1+'",["100"],""],["'+I18N.Widget.data2+'",["80"],""],["'+I18N.Widget.data3+'",["60"],""],["'+I18N.Widget.data4+'",["40"],""],["'+I18N.Widget.data5+'",["20"],""]],"6 wTRu7"],"xy":"7dBe7esL","T":"t","N":"'+I18N.w.funnel_chart+'","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtSF":"","chtPF":"","chtB":"h bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-01-17T01:41:07.311Z","hotAABB":[-385,-240,-25,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U1148gCZR4ygZq:{preview:"gauge_chart",meta:{name:I18N.w.gauge_chart,type:"wChart",width:360,height:300,metaType:n.x.WGaugeChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU1148gCZR4ygZq {"chtP":"5 ( ) , o ( ( e ), pMNcl .v~[9 ( / ( )6 ","chtSF":"","Z":"m","xy":"7opJ7kVm","T":"t","N":"'+I18N.w.gauge_chart+'","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtPF":"","chtB":"h bYpZx ) (","chtD":[["'+I18N.Widget.jan+'","'+I18N.Widget.feb+'","'+I18N.Widget.mar+'","'+I18N.Widget.apr+'","'+I18N.Widget.may+'"],[],[["'+I18N.Widget.data1+'",["100","140","230","100","130"],""],["'+I18N.Widget.data2+'",["150","100","200","140","100"],""]],"6 wTRu7"]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-01-16T09:21:09.437Z","hotAABB":[467,180,827,480],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U114OrAt1MlRVf:{preview:"liquid_fill_gauge_chart",meta:{name:I18N.w.liquid_fill_gauge_chart,type:"wChart",width:360,height:300,metaType:n.x.WLiquidFillGaugeChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU114OrAt1MlRVf {"chtP":"6 ( ) , o ( ( e ), pMNcl .v~[9 ( . ","N":"'+I18N.w.liquid_fill_gauge_chart+' 1","Z":"r","ttv0P":",xd+r ( ( ) ) D < (","chtD":[["'+I18N.Widget.jan+'"],[],[["'+I18N.Widget.data1+'",["0.6"],""],["'+I18N.Widget.data2+'",["0.4"],""],["'+I18N.Widget.data3+'",["0.2"],""]],"6 wTRu7"],"xy":"7jOk7gme","T":"t","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0S":"","ani":"( 0 1s 1","chtSF":"","chtPF":"","chtB":"h bYpZx ) ("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-01-25T02:27:03.644Z","hotAABB":[70,-97,430,203],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U2NQ5ozyHumOF:{preview:"map_chart",meta:{name:I18N.w.map_chart,type:"wChart",width:800,height:616,metaType:n.x.WMapChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU2NQ5ozyHumOF {"xy":"7lR87k=:","wh":"7qvB7oKF","Z":"5","chtT":"wTRu7 wTRu7 ) GJ~|r 6","Z":"6","chtH":"=F@k| ,xd+r ) ,xd+r 2","chtP":"7 ( ) , o ( ( e ), pMNcl .v~[9 ( + 5Tm 1]wvb","N":"'+I18N.w.map_chart+'","ttv0P":",xd+r ( ( ) ) 2 < (","T":"t","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0S":"","ani":"( 0 1s 1","chtSF":"","chtPF":"","chtB":"h ;ei.S ) (","Z":"7","chtD":[["'+I18N.Widget.data1+'","'+I18N.Widget.data2+'"],[],[["d1",["130","150"],"u|sdf"],["d2",["100","170"],"wQB/n"],["d3",["130","110"],"kpR_S"],["d4",["150","160"],"ks5e["],["d5",["180","100"],"wQv[9"],["d6",["140","190"],"wO;9~"],["d7",["100","180"],"m{.Dx"],["d8",["150","110"],"agIL["],["d9",["110","100"],"m~E/A"],["d10",["110","170"],"iJ*9z"],["d11",["190","170"],"u|sdf"],["d12",["150","170"],"wQB/n"],["d13",["150","180"],"kpR_S"],["d14",["140","120"],"ks5e["],["d15",["160","170"],"wQv[9"],["d16",["180","160"],"wO;9~"],["d17",["180","140"],"m{.Dx"],["d18",["170","140"],"agIL["],["d19",["190","100"],"m~E/A"],["d20",["160","190"],"iJ*9z"],["d21",["150","120"],"u|sdf"],["d22",["160","100"],"wQB/n"],["d23",["150","130"],"kpR_S"],["d24",["140","190"],"ks5e["],["d25",["160","140"],"wQv[9"],["d26",["170","150"],"wO;9~"],["d27",["180","150"],"m{.Dx"],["d28",["190","150"],"agIL["],["d29",["110","140"],"m~E/A"],["d30",["170","160"],"iJ*9z"],["d31",["160","130"],"u|sdf"],["d32",["180","120"],"wQB/n"],["d33",["150","110"],"kpR_S"],["d34",["190","170"],"ks5e["],["d35",["100","100"],"wQv[9"],["d36",["140","140"],"wO;9~"],["d37",["150","130"],"m{.Dx"],["d38",["100","150"],"agIL["]],"6 wTRu7"]}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-01-30T05:41:56.231Z","hotAABB":[0,0,800,616],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U507Ub07zHbTJ:{preview:"bubble_chart",meta:{name:"\u6C14\u6CE1\u56FE",type:"wChart",width:360,height:300,metaType:n.x.WBubbleChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU507Ub07zHbTJ {"T":"t","N":"\u6C14\u6CE1\u56FE","Z":"1","xy":"7ig}7j.,","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"8 ( ) , o ( ( e ), pMNcl .v~[9 ( / 5Tm 1]wvb 4 ,xd+r < 2 L 4 e Z","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtAX":"h 4 ,xd+r (","chtD":[["X","Y","\u6570\u503C"],[],[["\u7C7B\u522B1",[1,3,4],"","",""],["\u7C7B\u522B1",[3,4,2],"","",""],["\u7C7B\u522B1",[5,7,5],"","",""],["\u7C7B\u522B2",[2,4,3],"","",""],["\u7C7B\u522B2",[4,5,6],"","",""],["\u7C7B\u522B2",[6,3,4],"","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"h 4 ,xd+r","chtLT":"h 4 ,xd+r","chtLN":"h 4 ,xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-18T01:24:41.390Z","hotAABB":[16,71,376,371],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U509Kv0xZkvFgv:{preview:"radial_polar_chart",meta:{name:"\u7389\u73A6\u56FE",type:"wChart",width:360,height:300,metaType:n.x.WRadialPolarChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU509Kv0xZkvFgv {"T":"t","N":"\u7389\u73A6\u56FE","Z":"1","xy":"7i{i7iq@","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"9 ( ) , o ( ( e ), pMNcl .v~[9 ( / 5Tm 1]wvb 4 ,xd+r < ( H 4 e Z","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtAX":"h 4 ,xd+r (","chtD":[["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708"],[],[["\u6570\u636E1",[100,140,100,222,160],"","",""],["\u6570\u636E2",[140,100,140,190,140],"","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"( 4 ,xd+r","chtLT":"h 4 ,xd+r","chtLN":"h 4 ,xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-18T01:25:58.910Z","hotAABB":[33,54,393,354],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U50AIEeIuu8IWE:{preview:"sunburst_chart",meta:{name:"\u65ED\u65E5\u56FE",type:"wChart",width:360,height:300,metaType:n.x.WSunburstChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU50AIEeIuu8IWE {"T":"t","N":"\u65ED\u65E5\u56FE","Z":"-","xy":"7i7B7ijB","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":": ( ) ( o ( ( e ), pMNcl .v~[9 ( / 5Tm 1]wvb 4 ,xd+r < ( H 4 e Z","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtAX":"h 4 ,xd+r (","chtD":[["\u5B63\u5EA6","\u6708\u4EFD","\u5468","\u6570\u503C"],[],[["1",["1","1\u6708","\u7B2C1\u5468",3],"","",""],["1",["1","1\u6708","\u7B2C2\u5468",2],"","",""],["1",["1","2\u6708","",1],"","",""],["1",["1","2\u6708","",4],"","",""],["1",["1","3\u6708","\u7B2C\u4E00\u5468",6],"","",""],["2",["2","4\u6708","\u7B2C1\u5468",4],"","",""],["2",["2","4\u6708","\u7B2C2\u5468",2],"","",""],["2",["2","5\u6708","",4],"","",""],["2",["2","6\u6708","\u7B2C1\u5468",2],"","",""],["2",["2","6\u6708","",2],"","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"h 4 ,xd+r","chtLT":"h 4 ,xd+r","chtLN":"( 4 ,xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-18T01:27:19.654Z","hotAABB":[-25,48,335,348],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U50AqngLUEseDG:{preview:"boxplot_chart",meta:{name:"\u7BB1\u578B\u56FE",type:"wChart",width:360,height:300,metaType:n.x.WBoxplotChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU50AqngLUEseDG {"T":"t","N":"\u7BB1\u578B\u56FE","Z":"/","xy":"7e,a7itk","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"= ( ) , o ( ( e ), pMNcl .v~[9 ( / 5Tm 1]wvb 4 ,xd+r < ( H 4 e <","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtAX":"h 4 ,xd+r (","chtD":[["\u4E0B\u8FB9\u7F18","\u4E0A\u56DB\u5206\u4F4D\u6570","\u4E2D\u4F4D\u6570","\u4E0B\u56DB\u5206\u4F4D\u6570","\u4E0A\u8FB9\u7F18"],[],[["\u6570\u636E1",[100,140,180,80,130],"g;hSr","",""],["\u6570\u636E2",[240,160,180,140,60],"g;hSr","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"h 4 ,xd+r","chtLT":"h 4 ,xd+r","chtLN":"h 4 ,xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-18T01:29:55.364Z","hotAABB":[-330,57,30,357],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U50AwlCkzU0gYu:{preview:"sankey_chart",meta:{name:"\u6851\u57FA\u56FE",type:"wChart",width:360,height:300,metaType:n.x.WSankeyChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU50AwlCkzU0gYu {"T":"t","N":"\u6851\u57FA\u56FE","Z":"-","xy":"7fNL7dsH","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"< ( ) , o ( ( e ), pMNcl .v~[9 ( / 5Tm 1]wvb 4 ,xd+r < ( H 4 e Z","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtAX":"h 4 ,xd+r (","chtD":[["\u6765\u6E90","\u76EE\u6807","\u6570\u503C"],[],[["",["a","a1",2],"","",""],["",["a","a2",2],"","",""],["",["b","b1",3],"","",""],["",["a","b1",3],"","",""],["",["b1","a1",2],"","",""],["",["b1","c",2],"","",""]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"h 4 ,xd+r","chtLT":"h 4 ,xd+r","chtLN":"( 4 ,xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-18T01:32:24.682Z","hotAABB":[-227,-314,133,-14],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U50B5Zm1LHtlga:{preview:"word_cloud_chart",meta:{name:"\u8BCD\u4E91",type:"wChart",width:360,height:300,metaType:n.x.WWordCloudChart},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU50B5Zm1LHtlga {"T":"t","N":"\u8BCD\u4E91","Z":"-","xy":"7f6(7f4q","r":"((","wh":"7kzc7k3w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ) ) 4 < (","ttv0S":"","ani":"( 0 1s 1","chtP":"; ( ) , o ( ( e ), pMNcl .v~[9 ( + 5Tm 1]wvb 4 ,xd+r < ( H 4 e Z","chtSF":"","chtPF":"","chtB":"h bYpZx ) (","chtAX":"h 4 ,xd+r (","chtD":[["\u8BCD","\u6570\u503C"],[],[["Welcome",[30],"","","("],["Word",[20],"","","("],["Cloud",[15],"","","("],["Happy",[10],"","","),"],["Lucky",[10],"","","),"],["Smile",[5],"","","),"]],"6 wTRu7"],"chtH":"pMNcl wTRu7 ) ,xd+r 4","chtT":"pMNcl wTRu7 ) ,xd+r 4","chtL":"h 4 ,xd+r","chtLT":"h 4 ,xd+r","chtLN":"h 4 ,xd+r"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-18T01:34:56.447Z","hotAABB":[-248,-219,112,81],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWqGpGF2j58X:{preview:"image",meta:{name:I18N.w.wImage,type:"wImage",width:200,height:100},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWqGpGF2j58X {"T":"S","N":"'+I18N.w.wImage+' 2","Z":"a","xy":"7v<X8pk4","r":"((","wh":"7il_7hMF","o":"3_","iLVA":".","fPt":"(","I":"","ani":"( 0 1s 1","fill":"( ( oT(h~","brdR":"( bYpZx ) (!(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","imgP":"( (( (((((((((((((((((((((((((((( *","imgF":"","imgR":""}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:09:10.700Z","hotAABB":[1021,7027,1221,7127],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWqmEKaaiarz:{preview:"carousel",meta:{name:I18N.w.wCarousel,type:"wCarousel",width:375,height:200},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWqmEKaaiarz {"T":"l","N":"'+I18N.w.wCarousel+' 1","Z":"b","xy":"7v^e8sPe","r":"((","wh":"7l527il_","o":"3_","iLVA":"*","fPt":"(","I":"","crsS":[["","",")"],["","",")"]],"crsP":"-!?>!(!bYpZx!7eS(K!(","brdRo":"("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:09:10.700Z","hotAABB":[962,7177,1337,7377],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWrJ6YLVnfQT:{preview:"webpage",meta:{name:I18N.w.wWebpage,type:"wWebpage",width:320,height:210},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWrJ6YLVnfQT {"T":"u","N":"'+I18N.w.wWebpage+' 1","Z":"c","xy":"7v=g8wGZ","r":"((","wh":"7kK67ix>","o":"3_","iLVA":"*","fPt":"(","I":"","wbp":""}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:09:10.700Z","hotAABB":[962,7460,1282,7670],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWrmruU1KJsD:{preview:"video",meta:{name:I18N.w.wVideo,type:"wVideo",width:320,height:180},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWrmruU1KJsD {"T":"U","N":"'+I18N.w.wVideo+' 1","Z":"d","xy":"7v=g8zbB","r":"((","wh":"7kK67iTH","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","brdRo":"(","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","vidP":"(","vidS":"https://cdn.modao.cc/Default_video.mp4"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:09:10.700Z","hotAABB":[962,7719,1282,7899],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWsKDImZMznw:{preview:"audio",meta:{name:I18N.w.wAudio,type:"wAudio",width:330,height:60},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWsKDImZMznw {"T":"T","N":"'+I18N.w.wAudio+' 1","Z":"e","xy":"7vCV8}Uo","r":"((","wh":"7kVm7guq","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","brdRo":")6","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","audP":"(","audS":"https://cdn.modao.cc/Default_audio.mp3"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:09:10.700Z","hotAABB":[962,7991,1292,8051],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWsl4NuKb29L:{preview:"qrcode",meta:{name:I18N.w.wQRCode,type:"wQRCode",width:120,height:120},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWsl4NuKb29L {"T":"V","N":"'+I18N.w.wQRCode+' 1","Z":"f","xy":"7unF9)H(","r":"((","wh":"7he]7he]","o":"3_","iLVA":".","fPt":"(","I":"","ani":"( 0 1s 1","qrcC":"'+(ENV.IS_MO?"https://mockitt.wondershare.com":"https://modao.cc")+'","qrcP":"+ wTRu7 (((*|"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:09:10.700Z","hotAABB":[1029,8171,1149,8291],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWtRSAWjtpHu:{preview:"map",meta:{name:I18N.w.wMapView,type:"wMapView",width:375,height:230},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWtRSAWjtpHu {"T":"d","N":"'+I18N.w.wMapView+' 1","Z":"g","xy":"7v)H9,W>","r":"((","wh":"7l527j8T","o":"3_","iLVA":"*","fPt":"(","I":"","mapS":"eTtTWt0WJPbDVIs"}\nB@trash {"T":")","B":"+"}\nB@ext ) {"T":")","B":"-"}\neTtTWt0WJPbDVIs {"T":"+","N":"Map","Z":"(","eD":"/mb-workspace/images/widget/staticmap_zh-CN.png","eT":")"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:09:10.700Z","hotAABB":[917,8351,1292,8581],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},TtTWtx6mtGSTqv:{preview:"dialog",meta:{name:I18N.w.wMTooltip,type:"wMTooltip",width:220,height:42},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nTtTWtx6mtGSTqv {"!FFV":1,"T":"e","N":"'+I18N.w.wMTooltip+' 1","Z":"h","xy":"7unF9/l6","r":"((","wh":"7j,u7g`w","o":"3_","iLVA":"*","fPt":"(","I":"","ttv0P":",xd+r ( ( ( ( 6 < 2","ttv0S":"'+I18N.w.wMTooltip+'","fill":"h ( SVzm+","brdRV":"h bYpZx ) (!-!7","ani":"( 0 1s 1","shd":") ( ((()8 ((((( ;_2g, ;rw*} (((((","tt":"2 2 )"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2023-10-23T03:09:10.700Z","hotAABB":[979,8684,1199,8726],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},U5lkS3FEPNd1at:{preview:"tree",meta:{name:"\u6811\u5F62\u7EC4\u4EF6",type:"wTree",width:256,height:210},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nU612mEnkU7LrBvOzK6pSx2 {"!FFV":1,"od":[[["\u4E00\u7EA7\u9009\u98791","","/","",""],[[["\u4E8C\u7EA7\u9009\u98791","","-","",""],[]],[["\u4E8C\u7EA7\u9009\u98792","","-","",""],[]]]],[["\u4E00\u7EA7\u9009\u98792","","-","",""],[]],[["\u4E00\u7EA7\u9009\u98793","","-","",""],[]]],"Z":"c","tt":"h!(!gn~wh!.v~[9!h!(!P!@","N":"\u6811\u5F62\u7EC4\u4EF6 1","xy":"7ix>7ld_","wh":"7jVi7ix>","ttv0P":"<*l0[ ( ( ) ) 6 < (","tsn":"h!oq=X3!(!PingFangSC!6!(!(!.v~[9!(","T":")7","r":"((","o":"3_","iLVA":"*","fPt":"(","I":"","ani":"( 0 1s 1","brdV":"( bYpZx ) (!7","ttv0S":"","fi":"( ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-03-18T06:23:11.059Z","hotAABB":[82,310,338,520],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYqDqAdDqgrj:{preview:"flow_process",meta:{name:"\u6D41\u7A0B",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowProcess},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYqDqAdDqgrj {"xy":"7gj:7gQ{","T":")3","N":"\u6D41\u7A0B 1","Z":"-","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":")","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.204Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYqXn9Q7t5eX:{preview:"flow_decision",meta:{name:"\u5224\u5B9A",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowDecision},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYqXn9Q7t5eX {"xy":"7gj:7gQ{","T":")3","N":"\u5224\u5B9A 1","Z":".","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"*","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYquH4iIv29k:{preview:"flow_startEnd",meta:{name:"\u5F00\u59CB/\u7ED3\u675F",width:100,height:40,type:"wFlowClosed",metaType:n.x.WFlowStartEnd},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYquH4iIv29k {"xy":"7gj:7gFD","T":")3","N":"\u5F00\u59CB/\u7ED3\u675F 1","Z":"/","r":"((","wh":"7hMF7g^Z","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"+","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,40],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYrE8F27zeaQ:{preview:"flow_doc",meta:{name:"\u6587\u6863",width:100,height:74,type:"wFlowClosed",metaType:n.x.WFlowDoc},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYrE8F27zeaQ {"xy":"7gj:7gZ0","T":")3","N":"\u6587\u6863 1","Z":"0","r":"((","wh":"7hMF7h/2","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":",","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,74],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYrWZgO0LsX1:{preview:"flow_data",meta:{name:"\u6570\u636E",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowData},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYrWZgO0LsX1 {"xy":"7gj:7gQ{","T":")3","N":"\u6570\u636E 1","Z":"1","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"-","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYrmAmMyPxFm:{preview:"flow_subProcess",meta:{name:"\u5B50\u6D41\u7A0B",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowSubProcess},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYrmAmMyPxFm {"xy":"7gj:7gQ{","T":")3","N":"\u5B50\u6D41\u7A0B 1","Z":"2","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":".","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYs5JTSKf4Ww:{preview:"flow_outerData",meta:{name:"\u5916\u90E8\u6570\u636E",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowOuterData},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYs5JTSKf4Ww {"xy":"7gj:7gQ{","T":")3","N":"\u5916\u90E8\u6570\u636E 1","Z":"3","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"/","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYsPv4WDOzVz:{preview:"flow_innerData",meta:{name:"\u5185\u90E8\u5B58\u50A8",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowInnerData},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYsPv4WDOzVz {"xy":"7gj:7gQ{","T":")3","N":"\u5185\u90E8\u5B58\u50A8 1","Z":"4","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"0","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYsbgRo08xib:{preview:"flow_queueData",meta:{name:"\u961F\u5217\u6570\u636E",width:60,height:60,type:"wFlowClosed",metaType:n.x.WFlowQueueData},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYsbgRo08xib {"xy":"7gQ{7gQ{","T":")3","N":"\u961F\u5217\u6570\u636E 1","Z":"5","r":"((","wh":"7guq7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"1","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,60,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYstMIb8crJV:{preview:"flow_database1",meta:{name:"\u6570\u636E\u5E93",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowDatabase1},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYstMIb8crJV {"xy":"7gj:7gQ{","T":")3","N":"\u6570\u636E\u5E93 1","Z":"6","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"2","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYt71zJtCSyS:{preview:"flow_database2",meta:{name:"\u6570\u636E\u5E93",width:62,height:62,type:"wFlowClosed",metaType:n.x.WFlowDatabase2},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYt71zJtCSyS {"xy":"7gS27gS2","T":")3","N":"\u6570\u636E\u5E93 2","Z":"7","r":"((","wh":"7gx67gx6","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"3","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,62,62],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYtPft4pJ2Lr:{preview:"flow_humanInput",meta:{name:"\u4EBA\u5DE5\u8F93\u5165",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowHumanInput},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYtPft4pJ2Lr {"xy":"7gj:7gQ{","T":")3","N":"\u4EBA\u5DE5\u8F93\u5165 1","Z":"8","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"4","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYtnbvaiddhp:{preview:"flow_card",meta:{name:"\u5361\u7247",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowCard},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYtnbvaiddhp {"xy":"7gj:7gQ{","T":")3","N":"\u5361\u7247 1","Z":"9","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"5","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYtyZc9NCDC9:{preview:"flow_strip",meta:{name:"\u6761\u5E26",width:100,height:74,type:"wFlowClosed",metaType:n.x.WFlowStrip},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYtyZc9NCDC9 {"xy":"7gj:7gZ0","T":")3","N":"\u6761\u5E26 1","Z":":","r":"((","wh":"7hMF7h/2","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"6","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,74],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYu8Io3j4nq:{preview:"flow_show",meta:{name:"\u5C55\u793A",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowShow},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYu8Io3j4nq {"xy":"7gj:7gQ{","T":")3","N":"\u5C55\u793A 1","Z":";","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"7","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYuK7KP2OrEq:{preview:"flow_humanOp",meta:{name:"\u4EBA\u5DE5\u64CD\u4F5C",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowHumanOp},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYuK7KP2OrEq {"xy":"7gj:7gQ{","T":")3","N":"\u4EBA\u5DE5\u64CD\u4F5C 1","Z":"<","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"8","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYuTuekx7DDu:{preview:"flow_prepare",meta:{name:"\u9884\u5907",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowPrepare},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYuTuekx7DDu {"xy":"7gj:7gQ{","T":")3","N":"\u9884\u5907 1","Z":"=","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"9","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.205Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYue9RMtuBeb:{preview:"flow_loop",meta:{name:"\u5FAA\u73AF\u9650\u503C",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowLoop},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYue9RMtuBeb {"xy":"7gj:7gQ{","T":")3","N":"\u5FAA\u73AF\u9650\u503C 1","Z":">","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":":","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYutd6twPNm8:{preview:"flow_refInPage",meta:{name:"\u9875\u9762\u5185\u5F15\u7528",width:60,height:60,type:"wFlowClosed",metaType:n.x.WFlowRefInPage},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYutd6twPNm8 {"xy":"7gQ{7gQ{","T":")3","N":"\u9875\u9762\u5185\u5F15\u7528 1","Z":"?","r":"((","wh":"7guq7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":";","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,60,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYv4PTGfGty4:{preview:"flow_or",meta:{name:"\u6216\u8005",width:60,height:60,type:"wFlowClosed",metaType:n.x.WFlowOr},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYv4PTGfGty4 {"xy":"7gQ{7gQ{","T":")3","N":"\u6216\u8005 1","Z":"@","r":"((","wh":"7guq7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"<","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,60,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYvFGNKc8O9t:{preview:"flow_sum",meta:{name:"\u6C42\u548C",width:60,height:60,type:"wFlowClosed",metaType:n.x.WFlowSum},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYvFGNKc8O9t {"xy":"7gQ{7gQ{","T":")3","N":"\u6C42\u548C 1","Z":"A","r":"((","wh":"7guq7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"=","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,60,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYvVI3GXbeO5:{preview:"flow_refCrossPage",meta:{name:"\u8DE8\u9875\u5F15\u7528",width:100,height:60,type:"wFlowClosed",metaType:n.x.WFlowRefCrossPage},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYvVI3GXbeO5 {"xy":"7gj:7gQ{","T":")3","N":"\u8DE8\u9875\u5F15\u7528 1","Z":"B","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":">","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYvfkSfGrbK6:{preview:"flow_sort",meta:{name:"\u6392\u5E8F",width:60,height:60,type:"wFlowClosed",metaType:n.x.WFlowSort},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYvfkSfGrbK6 {"xy":"7gQ{7gQ{","T":")3","N":"\u6392\u5E8F 1","Z":"C","r":"((","wh":"7guq7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"?","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,60,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYvqC2QIyP8L:{preview:"flow_union",meta:{name:"\u5408\u5E76",width:60,height:40,type:"wFlowClosed",metaType:n.x.WFlowUnion},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYvqC2QIyP8L {"xy":"7gQ{7gFD","T":")3","N":"\u5408\u5E76 1","Z":"D","r":"((","wh":"7guq7g^Z","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"sT":"@","!FFV":1,"fill":"h ( wTRu7"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,60,40],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYw2n7qdB8kr:{preview:"flow_concurrent",meta:{name:"\u5E76\u884C\u6A21\u5F0F",width:100,height:60,type:"wFlowOpened",metaType:n.x.WFlowConcurrent},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYw2n7qdB8kr {"xy":"7gj:7gQ{","T":")4","N":"\u5E76\u884C\u6A21\u5F0F 1","Z":"E","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"!FFV":1,"sT":")"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYwEvu5dBJ1q:{preview:"flow_commentRight",meta:{name:"\u6CE8\u91CA",width:100,height:60,type:"wFlowOpened",metaType:n.x.WFlowCommentLeft},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYwEvu5dBJ1q {"xy":"7gj:7gQ{","T":")4","N":"\u6CE8\u91CA 1","Z":"F","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"!FFV":1,"sT":"*"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYwT06ufHaJH:{preview:"flow_commentLeft",meta:{name:"\u6CE8\u91CA",width:100,height:60,type:"wFlowOpened",metaType:n.x.WFlowCommentLeft},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYwT06ufHaJH {"xy":"7gj:7gQ{","T":")4","N":"\u6CE8\u91CA 2","Z":"G","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"!FFV":1,"sT":"+"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYwoyv4NEzbh:{preview:"flow_noteRight",meta:{name:"\u5907\u6CE8",width:100,height:60,type:"wFlowOpened",metaType:n.x.WFlowCommentRight},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYwoyv4NEzbh {"xy":"7gj:7gQ{","T":")4","N":"\u5907\u6CE8 1","Z":"H","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"!FFV":1,"sT":","}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.206Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYx1e6MFZTcA:{preview:"flow_noteLeft",meta:{name:"\u5907\u6CE8",width:100,height:60,type:"wFlowOpened",metaType:n.x.WFlowNoteLeft},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYx1e6MFZTcA {"xy":"7gj:7gQ{","T":")4","N":"\u5907\u6CE8 2","Z":"I","r":"((","wh":"7hMF7guq","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","ani":"( 0 1s 1","brd":"h bYpZx ) (","dtV":1,"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3,"!FFV":1,"sT":"-"}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.207Z","hotAABB":[0,0,100,60],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYxc8hZvULQr:{preview:"horizontal_swimlane",meta:{name:"\u6C34\u5E73\u6CF3\u9053",width:480,height:320,type:"wSwimlane",metaType:n.x.WSwimlaneV},data:'@@R * {}\n@@M / {}\nB@main ) {"T":")","B":"*"}\nULDYxc8hZvULQr {"xy":"7jD47i=2","T":")2","N":"\u6C34\u5E73\u6CF3\u9053 1","Z":"K","r":"((","wh":"7mY:7kK6","o":"3_","iLVA":"*","fPt":"(","so":"","I":"","brdR":"h bYpZx ) (!(","wl":["7gQ{","7gQ{","7m6D"],"hl":["7i=2","7i=2"],"tb":[["cell0"],["cell1","cell3"],["cell2","cell4"]],"cls":{"cell0":{"rt1":{"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3},"t1":{"dtV":1,"b/#000000":["( ( ","\u6CF3\u9053\u56FE\u6807\u9898",[],[]]},"fl":"h ( oT(h~"},"cell1":{"rt1":{"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3},"t1":{"dtV":1,"b/#000000":["( ( ","\u6CF3\u9053\u540D\u79F0",[],[]]},"fl":"h ( oT(h~"},"cell2":{"rt1":{"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3},"t1":{"dtV":1,"b/#000000":["( ( ","\u6CF3\u9053\u540D\u79F0",[],[]]},"fl":"h ( oT(h~"},"cell3":{"rt1":{"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3},"t1":{"dtV":1,"b/#000000":["( ( ","",[],[]]},"fl":"( ( oT(h~"},"cell4":{"rt1":{"rtS":["PingFangSC","regular","#101010"],"rtN":"( ) ) 6 ) < ( 7g/. 7g4u (!(!(!(","rtB":"(","iCT":"h","!LHV":3,"!WBIV":3},"t1":{"dtV":1,"b/#000000":["( ( ","",[],[]]},"fl":"( ( oT(h~"}},"ihbt":"(","smt":"("}\nB@trash {"T":")","B":"+"}\nB@ext {"T":")","B":"-"}\nB@ref-muban {"T":")","B":"/"}\nB@ref-danli {"T":")","B":"0"}\nB@ref-mind {"T":")","B":"1"}\n@page-content-tag-proto2-2208 {"time":"2024-08-12T08:12:28.207Z","hotAABB":[0,0,480,320],"hotXY":0,"foreignRefKeyList":[],"maybeForeignRbPageRefKeyList":[]}\n@@T {}'},ULDYxJHTvgSer6: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;_<t.length;_++){const[I,k]=t[_];if(k){const{meta:{type:j,metaType:z}}=k;if(b===z||b===j){S=k;break}}}return S}},18501:(Fe,ee,e)=>{"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)s<Math.min(v,P)?g=v<P?0:100:s>Math.max(v,P)?g=v<P?100:0:g=Math.abs((s-v)/Math.abs(P-v)*100).toFixed(0);else if(v===P)p<Math.min(a,b)?g=a<b?0:100:p>Math.max(a,b)?g=a<b?100:0:g=Math.abs((p-a)/Math.abs(b-a)*100).toFixed(0);else{const S=(v-P)/(a-b),t=v-S*a,_=-1/S,k=(s-_*p-t)/(S-_),j=Math.abs(a-b);k<Math.min(a,b)?g=a<b?0:100:k>Math.max(a,b)?g=a<b?100:0:g=Math.round(Math.abs(a-k)/j*100)}return g}const c=(p,s)=>{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+f<window.innerWidth,C=(Q,N)=>Q+N+s<window.innerHeight,v=Q=>{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<a;(b||g)&&(l.scrollTop+=P.top-a)},w=(0,r.hb)((p,s)=>{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<v;(P||b)&&(p.scrollTop+=a.top-v)},{timeout:500}),u=(p,s,l)=>{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<Le;ye++)if(ne[ye]!==ae[ye])return!1;return!0},u=ne=>{let ae=null,ye=null;return function(){for(var Le=arguments.length,Me=new Array(Le),ze=0;ze<Le;ze++)Me[ze]=arguments[ze];return(!ye||!w(ye,Me))&&(ae=ne.apply(null,Me),ye=Me),ae}};var d=e(14073),y=e(41589),h=e.n(y),i=e(53732),f=e.n(i),p=e(25582),s=e.n(p),l=e(39e3),C=e(28322),v=e.n(C),a=e(89775),P=e.n(a),b=e(63986),g=e.n(b),S=e(37862),t=e.n(S),_=e(74937),I=e.n(_),k=e(41391),j=e.n(k),z=e(18250),K=e(3367),$=e.n(K),A=e(69173),E=e.n(A),U='<svg width="6" height="4" viewBox="0 0 6 4"><path d="M3 0l3 4H0"></path></svg>',O='<svg viewBox="0 0 8 3"><path d="M4.654.233L8 3H0L3.383.23c.37-.303.902-.302 1.27.003z" /></svg>',H='<svg width="27" height="8"><path d="M15.069 6.66a3.27 3.27 0 0 1-3.13 0L0 0h27.008l-11.94 6.66z" /></svg>',Q='<svg width="16" height="16"><path d="M8 6.945L6.218 5.163a.688.688 0 0 0-.973.972l1.783 1.782L5.245 9.7a.688.688 0 0 0 .973.972L8 8.89l1.782 1.782a.688.688 0 0 0 .973-.972L8.972 7.917l1.783-1.782a.688.688 0 0 0-.973-.972L8 6.945zm-5.185 6.24a7.333 7.333 0 1 1 10.37-10.37 7.333 7.333 0 0 1-10.37 10.37z"/></svg>',N=Object.freeze({__proto__:null,INPUT_ARROW: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);ye<ae;ye++)Le[ye]=ne[ye];return Le}var J=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z0-9-]{2,63}$/i,te={OPEN_MODAL_STACK:[]};function he(ne){return te.OPEN_MODAL_STACK.indexOf(ne)}function de(){var ne=te.OPEN_MODAL_STACK;return ne.length===0||ne.every(function(ae){return!ae.state.isOpen})}function Se(ne){return Object.assign(te,{OPEN_MODAL_STACK:[ne].concat(F(te.OPEN_MODAL_STACK))})}function xe(ne){return Object.assign(te,{OPEN_MODAL_STACK:te.OPEN_MODAL_STACK.filter(function(ae){return ae!==ne})})}function be(ne){return $()(ne).join(" ")}function ie(ne,ae){var ye=ne.propTypes,Le=ye===void 0?{}:ye,Me=Object.keys(Le);return Object.entries(ae).reduce(function(ze,_t){var It=V(_t,2),Et=It[0],Vt=It[1];return Me.includes(Et)?ze:Object.assign(ze,L({},Et,Vt))},{})}function oe(ne){var ae=arguments.length>1&&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<arguments.length;ae++){var ye=arguments[ae];for(var Le in ye)Object.prototype.hasOwnProperty.call(ye,Le)&&(ne[Le]=ye[Le])}return ne},_e.apply(this,arguments)}function Ge(ne,ae){if(!(ne instanceof ae))throw new TypeError("Cannot call a class as a function")}function Xe(ne,ae){for(var ye=0;ye<ae.length;ye++){var Le=ae[ye];Le.enumerable=Le.enumerable||!1,Le.configurable=!0,"value"in Le&&(Le.writable=!0),Object.defineProperty(ne,Le.key,Le)}}function Ue(ne,ae,ye){return ae&&Xe(ne.prototype,ae),ye&&Xe(ne,ye),ne}function pt(ne,ae){if(typeof ae!="function"&&ae!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(ae&&ae.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),ae&&Ye(ne,ae)}function Ye(ne,ae){return Ye=Object.setPrototypeOf||function(Le,Me){return Le.__proto__=Me,Le},Ye(ne,ae)}function Qe(ne){var ae=qe();return function(){var Le=et(ne),Me;if(ae){var ze=et(this).constructor;Me=Reflect.construct(Le,arguments,ze)}else Me=Le.apply(this,arguments);return lt(this,Me)}}function lt(ne,ae){return ae&&(Ce(ae)==="object"||typeof ae=="function")?ae:tt(ne)}function tt(ne){if(ne===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ne}function qe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(ne){return!1}}function 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;_t<Me;_t++)ze[_t]=arguments[_t];return Le=ae.call.apply(ae,[this].concat(ze)),st(tt(Le),"state",{isOpen:!1,isClicked:!1,$text:null}),st(tt(Le),"ref",r.createRef()),st(tt(Le),"onClick",function(It){Le.setState({isOpen:!!ot(Le.props.content,"click"),isClicked:!0}),It.persist(),Le.props.onClick(It)}),st(tt(Le),"onMouseEnter",function(){return Object.assign(tt(Le),{hoverTimeout:setTimeout(function(){return Le.setState({isOpen:!!ot(Le.props.content,"hover")},Le.props.onMouseEnter)},Le.props.delay)})}),st(tt(Le),"onMouseLeave",function(){clearTimeout(Le.hoverTimeout),Le.setState({isOpen:!1,isClicked:!1},Le.props.onMouseLeave)}),Le}return Ue(ye,[{key:"componentDidMount",value:function(){this.props.setRef(this.ref.current)}},{key:"componentDidUpdate",value:function(Me,ze){var _t=this,It=ze.isOpen,Et=this.props.duration,Vt=this.state.isOpen;Et>0&&!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;_t<Me;_t++)ze[_t]=arguments[_t];return Le=ae.call.apply(ae,[this].concat(ze)),st(tt(Le),"state",{prevProps:Le.props,isOpen:Le.props.isOpen,position:Le.props.position}),st(tt(Le),"ref",r.createRef()),st(tt(Le),"position",function(){var It=Le.props,Et=It.$text,Vt=It.position,on=It.inflexible,tn=tt(Le),ln=tn.$tipBase,bn=tn.$tip;if(!(!Et||!ln||!bn)){var Zn=!on,so=10,eo=10,Co=window.innerWidth-10,ko=window.innerHeight-10,Ro=Et.getBoundingClientRect(),Bo=Ro.top,Fo=Ro.right,Ho=Ro.bottom,Lo=Ro.left,Go=Et.offsetWidth,ts=Et.offsetHeight,Qo=bn.offsetWidth,Xo=bn.offsetHeight,rs=Lo+Go/2,_s=Bo+ts/2,cs={},vs={},ms=function(Os){return Object.assign(cs,Os)},Cs=function(Os){return Object.assign(vs,Os)};switch(ms({top:"".concat(Bo,"px"),left:"".concat(Lo,"px"),width:"".concat(Go,"px"),height:"".concat(ts,"px")}),Zn&&(Vt==="top"&&Bo-Xo<eo?Le.setState({position:"bottom"}):Vt==="bottom"&&Ho+Xo>ko?Le.setState({position:"top"}):Vt==="left"&&Lo-Qo<so?Le.setState({position:"right"}):Vt==="right"&&Fo+Qo>Co&&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<arguments.length;ae++){var ye=arguments[ae];for(var Le in ye)Object.prototype.hasOwnProperty.call(ye,Le)&&(ne[Le]=ye[Le])}return ne},jn.apply(this,arguments)}function xo(ne,ae){var ye=Object.keys(ne);if(Object.getOwnPropertySymbols){var Le=Object.getOwnPropertySymbols(ne);ae&&(Le=Le.filter(function(Me){return Object.getOwnPropertyDescriptor(ne,Me).enumerable})),ye.push.apply(ye,Le)}return ye}function Po(ne){for(var ae=1;ae<arguments.length;ae++){var ye=arguments[ae]!=null?arguments[ae]:{};ae%2?xo(Object(ye),!0).forEach(function(Le){Fn(ne,Le,ye[Le])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(ye)):xo(Object(ye)).forEach(function(Le){Object.defineProperty(ne,Le,Object.getOwnPropertyDescriptor(ye,Le))})}return ne}function Gn(ne,ae){if(ne==null)return{};var ye=yo(ne,ae),Le,Me;if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);for(Me=0;Me<ze.length;Me++)Le=ze[Me],!(ae.indexOf(Le)>=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<Le.length;ze++)Me=Le[ze],!(ae.indexOf(Me)>=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<ae.length;ye++){var Le=ae[ye];Le.enumerable=Le.enumerable||!1,Le.configurable=!0,"value"in Le&&(Le.writable=!0),Object.defineProperty(ne,Le.key,Le)}}function Kt(ne,ae,ye){return ae&&ut(ne.prototype,ae),ye&&ut(ne,ye),ne}function St(ne,ae){if(typeof ae!="function"&&ae!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(ae&&ae.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),ae&&fn(ne,ae)}function fn(ne,ae){return fn=Object.setPrototypeOf||function(Le,Me){return Le.__proto__=Me,Le},fn(ne,ae)}function En(ne){var ae=Pn();return function(){var Le=_n(ne),Me;if(ae){var ze=_n(this).constructor;Me=Reflect.construct(Le,arguments,ze)}else Me=Le.apply(this,arguments);return gn(this,Me)}}function gn(ne,ae){return ae&&(bt(ae)==="object"||typeof ae=="function")?ae:Yn(ne)}function Yn(ne){if(ne===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ne}function Pn(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(ne){return!1}}function _n(ne){return _n=Object.setPrototypeOf?Object.getPrototypeOf:function(ye){return ye.__proto__||Object.getPrototypeOf(ye)},_n(ne)}function 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;_t<Me;_t++)ze[_t]=arguments[_t];return Le=ae.call.apply(ae,[this].concat(ze)),Fn(Yn(Le),"state",{isTruncated:!1,isDetected:!1}),Fn(Yn(Le),"set$ellipsis",function(It){return Object.assign(Yn(Le),{$ellipsis:It})}),Fn(Yn(Le),"detectTruncation",function(){var It=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Le.$ellipsis;return It.offsetWidth<It.scrollWidth}),Le}return Kt(ye,[{key:"componentDidMount",value:function(){return this.setState({isDetected:!0,isTruncated:this.detectTruncation()})}},{key:"componentDidUpdate",value:function(Me){var ze=Me.children,_t=this.props,It=_t.children,Et=this.state.isDetected;if(ze!==It)return this.setState({isDetected:!1});if(!Et)return this.setState({isDetected:!0,isTruncated:this.detectTruncation()})}},{key:"render",value:function(){var Me=this.props,ze=Me.className,_t=Me.to,It=Me.type,Et=Me.max,Vt=Me.display,on=Me.lang,tn=Me.theme,ln=Me.noTooltip,bn=Me.withTooltip,Zn=Me.withQuote,so=Me.withPeriod,eo=Me.withComma,Co=Me.withQuestionMark,ko=Me.children,Ro=Gn(Me,["className","to","type","max","display","lang","theme","noTooltip","withTooltip","withQuote","withPeriod","withComma","withQuestionMark","children"]),Bo=this.state,Fo=Bo.isTruncated,Ho=Bo.isDetected,Lo={children:ko},Go=Ho&&(Fo?"is-truncated":"isnt-truncated"),ts=Po({type:_t?"link":"inline",theme:tn,className:be(["Ellipsis",Go,ze,(Zn||so||eo||Co)&&"Punctuation",Zn&&"with-quote",so&&"with-period",eo&&"with-comma",Co&&"with-question-mark"]),href:_t,"data-type":It,"data-max":Et,style:{display:Vt,maxWidth:isFinite(Et)?"".concat(Et,"em"):Et},content:(bn||Fo&&!ln)&&r.createElement("div",jn({lang:on,className:"EllipsisTip"},Lo)),children:ko,setRef:this.set$ellipsis},Ro),Qo=r.createElement(Nt,ts);return Zn||so||eo||Co?r.createElement(Xt,{className:be(["Punctuation",Zn&&"with-quote",so&&"with-period",eo&&"with-comma",Co&&"with-question-mark",Go])},Qo):Qo}}]),ye}(r.PureComponent);Fn(Nn,"propTypes",{className:s().string,theme:s().oneOf(["core","plain"]),type:s().oneOf(["user","id","email","org","team","app","widget"]),max:s().oneOfType([s().string,s().number]),display:s().oneOf(["inline-block","block"]),lang:s().string,to:s().string,children:s().node,noTooltip:s().bool,withTooltip:s().bool,withQuote:s().bool,withComma:s().bool,withPeriod:s().bool,withQuestionMark:s().bool}),Fn(Nn,"defaultProps",{lang:"en",theme:"core"});const io=Nn;function to(ne){let{$opener:ae,$menuBase:ye,$menuContainer:Le,isShowButton:Me,placement:ze,width:_t,deltaY:It}=ne;if(!ae||!ye)return;const Et=Me?ae.closest("label"):ae.closest("div"),Vt=ye.querySelector("*"),tn=(oe("li[role=option].is-active",Vt)||oe("li[role=option]",Vt)||oe("li[role=empty-msg]",Vt)).getBoundingClientRect(),ln=Vt.getBoundingClientRect(),bn={styleFor$menuBase:{},styleFor$menu:{},styleFor$menuContainer:{},styleFor$fontTip:{}},Zn=_s=>Object.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+It<Lo?eo+vs+Qo+It:cs-eo-Qo+It,ms=eo+Qo<Lo?ms+ts:ms;const ls=Math.abs(Qo),Is=ls+Lo>eo,Ms=vs-ls+Go>cs-eo;Is&&Ms?(Cs=cs-Lo-Go,ms=ms+Lo-Go):Is?(Cs=Cs-Lo+Go,ms=ms+Lo-Go):Ms&&(Cs=Cs-Go*2),so({top:Qo+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+Me<document.documentElement.clientWidth}function Ht(ne,ae){const ye=ne.getBoundingClientRect(),Le=ye.bottom>window.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.right<ae.offsetWidth+Le?"left":"right";case"left":return!ht(ae,ye,Le)||!Ht(ye,ae)?nn("up",ae,ye,Le,!0):ze.left<ae.offsetWidth+Le?"right":"left";case"up":if(!on){if(Vt)return"down";if(!Me&&ht(ae,ye,Le))return nn("right",ae,ye,Le,!0)}return"up";case"down":default:if(!Vt){if(on)return"up";if(!Me&&ht(ae,ye,Le))return nn("right",ae,ye,Le,!0)}return"down"}}function en(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function Un(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0}function Kn(){return typeof document<"u"?document.documentElement.clientWidth:1e3}function Hn(ne){const ae=ne.split("-");return ae.length>1?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<ye.scrollWidth}),wo(this,"adjustPositionForToolTips",()=>{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,'<path d="M9.32 16.345H5.68c.062.422.248.798.518 1.085.331.351.793.57 1.302.57s.97-.219 1.302-.57c.27-.287.456-.663.517-1.085zM8.528 1.901a1.275 1.275 0 0 0-.233-.36 1.09 1.09 0 0 0-.796-.348c-.31 0-.593.132-.796.348a1.275 1.275 0 0 0-.233.36 4.945 4.945 0 0 1 2.058 0zm-3.278.42A2.444 2.444 0 0 1 5.908.7c.41-.432.97-.7 1.592-.7.622 0 1.183.268 1.59.7.395.416.642.989.66 1.62a5.52 5.52 0 0 1 1.548 1.15 5.87 5.87 0 0 1 1.578 4.028c0 .878.096 2.046.276 3.214.157 1.026.38 2.055.665 2.89.041.12.149.198.262.198.253 0 .482.11.65.286l.012.013a1.01 1.01 0 0 1-.011 1.365.902.902 0 0 1-.651.286H.918a.89.89 0 0 1-.648-.286l-.01-.014a1.015 1.015 0 0 1 .012-1.365.89.89 0 0 1 .647-.286.287.287 0 0 0 .273-.225c.28-.83.5-1.846.657-2.863.18-1.168.273-2.336.273-3.214 0-1.569.608-2.993 1.581-4.028a5.52 5.52 0 0 1 1.549-1.15z"/>'],zo=[32,32,'<circle cx="16" cy="16" r="16"/><path class="fore" d="M16 14.336l4.992-4.991a1.177 1.177 0 0 1 1.663 1.663L17.664 16l4.991 4.992a1.177 1.177 0 1 1-1.663 1.663L16 17.664l-4.992 4.991a1.177 1.177 0 1 1-1.663-1.663L14.336 16l-4.991-4.992a1.177 1.177 0 0 1 1.663-1.663L16 14.336z"/>'],xs=[18,18,'<path d="M16 11a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm-7 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm-7 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4z"/>'],ys=[16,16,'<path d="M8.825 8.05a3.366 3.366 0 0 0 1.316-2.662C10.141 3.52 8.604 2 6.713 2c-1.89 0-3.428 1.52-3.428 3.388a3.37 3.37 0 0 0 1.316 2.663C2.495 8.883 1 10.917 1 13.292v1.13c0 .311.256.564.571.564h10.284a.568.568 0 0 0 .571-.565v-1.129c0-2.376-1.494-4.41-3.601-5.241zM6.713 3.13C7.973 3.13 9 4.141 9 5.387c0 1.245-1.025 2.258-2.286 2.258-1.26 0-2.285-1.013-2.285-2.258 0-1.246 1.025-2.259 2.285-2.259zm4.57 10.727h-9.14v-.565c0-2.49 2.05-4.517 4.57-4.517 2.52 0 4.57 2.026 4.57 4.517v.565zm.97-6.01a4.492 4.492 0 0 1 2.456 4.007v.873a.568.568 0 0 1-.57.565.568.568 0 0 1-.572-.565v-.873a3.378 3.378 0 0 0-2.587-3.28.565.565 0 0 1-.444-.327c-.016-.034-.016-.07-.024-.106-.005-.021-.011-.042-.014-.064a.542.542 0 0 1 .004-.131c.002-.023-.003-.045.002-.068.004-.014.013-.024.017-.036.009-.025.021-.047.033-.07a.556.556 0 0 1 .085-.134l.015-.014a.558.558 0 0 1 .182-.125 1.695 1.695 0 0 0 1.017-1.546 1.7 1.7 0 0 0-1.268-1.637.564.564 0 1 1 .297-1.09 2.833 2.833 0 0 1 2.113 2.727 2.8 2.8 0 0 1-.742 1.894z"/>'],ss=[24,24,'<path d="M12 24C5.373 24 0 18.627 0 12S5.373 0 12 0s12 5.373 12 12-5.373 12-12 12zm0-2.25c5.385 0 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25 2.25 6.615 2.25 12s4.365 9.75 9.75 9.75zm1.926-5.643c-.942 1.396-1.902 2.475-3.516 2.475-1.101-.177-1.554-.957-1.314-1.75l2.076-6.79c.05-.165-.035-.345-.188-.397-.154-.053-.454.144-.713.425l-1.255 1.49c-.034-.25-.004-.664-.004-.83.944-1.399 2.492-2.501 3.543-2.501.999.1 1.47.89 1.296 1.755l-2.09 6.822a.318.318 0 0 0 .196.36c.154.052.476-.144.737-.425l1.254-1.49c.035.25-.022.69-.022.854v.002zm-.363-8.784c-.795 0-1.439-.57-1.439-1.41 0-.843.646-1.413 1.439-1.413S15 5.07 15 5.912c0 .841-.645 1.411-1.437 1.411z"/>'],ce=[12,12,'<path d="M6 0a6 6 0 1 0 0 12A6 6 0 1 0 6 0zm3.646 9.646A5.13 5.13 0 0 1 6 11.156a5.127 5.127 0 0 1-3.646-1.51A5.13 5.13 0 0 1 .844 6a5.127 5.127 0 0 1 1.51-3.646A5.13 5.13 0 0 1 6 .844a5.127 5.127 0 0 1 3.646 1.51A5.13 5.13 0 0 1 11.156 6a5.127 5.127 0 0 1-1.51 3.646zM5.939 7.78a.422.422 0 0 1-.42-.464c.057-.585.486-1.057.958-1.53.756-.755.769-.995.782-1.25a1.085 1.085 0 0 0-.31-.81 1.317 1.317 0 0 0-.951-.405h-.003a1.262 1.262 0 0 0-1.257 1.26.422.422 0 1 1-.844 0c0-.561.218-1.089.614-1.486a2.089 2.089 0 0 1 1.485-.618 2.165 2.165 0 0 1 1.568.668c.376.396.568.906.54 1.436-.03.542-.196.97-1.028 1.802-.421.422-.687.738-.714 1.016a.422.422 0 0 1-.42.381zm-.523 1.234a.507.507 0 1 0 1.015 0 .507.507 0 0 0-1.015 0z"/>'],Pt=[12,12,'<path d="M6 0a6 6 0 1 0 0 12A6 6 0 1 0 6 0zm0 8a.667.667 0 0 1-.667-.667v-4a.667.667 0 0 1 1.334 0v4A.667.667 0 0 1 6 8zm.667 1.333a.666.666 0 1 1-1.332.002.666.666 0 0 1 1.332-.002z"/>'],Mt=[14,14,'<path d="M12 9.576l6.06-6.061a1.714 1.714 0 1 1 2.425 2.424L14.425 12l6.06 6.06a1.714 1.714 0 1 1-2.424 2.425L12 14.425l-6.06 6.06a1.714 1.714 0 1 1-2.425-2.424L9.575 12l-6.06-6.06a1.714 1.714 0 1 1 2.424-2.425L12 9.575z"></path>'],je=[14,14,'<path d="M8.253 10.253l3.89-4.596.706.707.707-.707-4.95-4.95-.707.707.708.707-4.597 3.89-1.767-.354-.707.707L4.01 8.839.828 12.728l.708.707 3.889-3.182 2.474 2.475.708-.707z"/>'],vt=[20,20,'<path d="M5.5 3.833h11.667c.92 0 1.666.747 1.666 1.667v11.667c0 .92-.746 1.666-1.666 1.666H5.5c-.92 0-1.667-.746-1.667-1.666V5.5c0-.92.747-1.667 1.667-1.667zm1.667 3.334V15.5H15.5V7.167H7.167z"/><path d="M15.5 2.167H3.833c-.92 0-1.666.746-1.666 1.666V15.5C1.247 15.5.5 14.754.5 13.833V2.167C.5 1.247 1.246.5 2.167.5h11.666c.92 0 1.667.746 1.667 1.667z"/>'],kt=[20,20,'<path d="M18.546 11.32c0 .405.322.734.718.734a.726.726 0 0 0 .718-.734.726.726 0 0 0-.718-.734.726.726 0 0 0-.718.734z" /><path d="M19.978 6.567l.002 9.49c0 1.617-1.278 2.927-2.854 2.927H2.856c-1.576 0-2.854-1.31-2.854-2.927V3.931c0-1.616 1.278-2.926 2.854-2.926l5.396.002c.207-.005.444.07.609.366L10.7 3.64h6.423c1.576 0 2.854 1.31 2.854 2.927zm-7.404 9.214l3.172-3.22a.768.768 0 0 0 .04-1.1L12.6 8.227a.735.735 0 0 0-1.05-.002.768.768 0 0 0-.016 1.08l1.921 1.951H4.74a.747.747 0 0 0-.738.75c0 .412.333.75.738.75h8.687L11.513 14.7a.772.772 0 0 0-.002 1.08.745.745 0 0 0 1.063 0z"/>'],Yt=[20,20,'<path d="M2.8 5.455h14.4V18a2 2 0 0 1-2 2H4.8a2 2 0 0 1-2-2V5.455zM7.3 9.09a.9.9 0 0 0-.9.9v5.473a.9.9 0 0 0 1.8 0V9.99a.9.9 0 0 0-.9-.9zm5.4 0a.9.9 0 0 0-.9.9v5.473a.9.9 0 0 0 1.8 0V9.99a.9.9 0 0 0-.9-.9zM8.2.909C8.2.407 8.603 0 9.1 0h1.8c.497 0 .9.407.9.91 0 .501.403.908.9.908h5.39a.91.91 0 0 1 0 1.818H1.91a.91.91 0 0 1 0-1.818H7.3c.497 0 .9-.407.9-.909z"/>'],Xn=[20,20,'<path d="M8.258 8.69L16.446.617c.8-.824 2.111-.824 2.935 0 .824.797.824 2.11 0 2.935l-8.215 8.071a2.38 2.38 0 0 1-.621.424l-3.356 1.49c-.596.267-1.109-.246-.865-.87l1.512-3.356a1.92 1.92 0 0 1 .421-.623zm9.193 2.534h-.001c.69 0 1.245.556 1.245 1.242v3.822A3.715 3.715 0 0 1 14.987 20H3.707A3.712 3.712 0 0 1 0 16.288V4.99c0-2.045 1.662-3.714 3.707-3.737h3.66a1.245 1.245 0 0 1 0 2.492h-3.66A1.24 1.24 0 0 0 2.463 4.99v11.298c0 .688.554 1.245 1.244 1.245h11.257c.69 0 1.243-.558 1.243-1.245v-3.822c0-.687.557-1.242 1.244-1.242z"/>'],Do=[20,20,'<path d="M5 6v10a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V6h2v10.846c0 1.19-.895 2.154-2 2.154H5c-1.105 0-2-.964-2-2.154V6h2zm3-5V.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5V1a1 1 0 0 0 1 1h4.5a1 1 0 0 1 0 2h-15a1 1 0 1 1 0-2H7a1 1 0 0 0 1-1zm5.741 10.864c.305.479.344 1.011.1 1.447-.249.437-.735.689-1.338.689h-1.67l-.695-.707.696-.707H12.5l-.58-.962.877.06.364-.782.58.962zM10.007 8.51l-.682 1.126-.384-.739-.856.016.69-1.14C9.09 7.279 9.544 7 10.028 7s.94.278 1.245.76l1.1 1.83-.253.965-.989-.246-1.089-1.815-.013-.02c-.007.012-.016.022-.023.036zm-2.508 4.075h1.775l-.514.707.513.708H7.496c-.6 0-1.086-.243-1.333-.667-.246-.423-.212-.958.093-1.468l.977-1.667.995-.22.256.926-.985 1.68z"/>'],Uo=[16,16,'<path d="M7.992 0a7.993 7.993 0 0 0 0 15.985.783.783 0 0 0 0-1.565 6.427 6.427 0 1 1 6.428-6.428.783.783 0 1 0 1.565 0A7.993 7.993 0 0 0 7.992 0z" fill-rule="nonzero"/>'],jo=[9,10,'<path d="M2.425 3.762h4.15V3.12c0-.506-.45-1.906-2.075-1.906-1.625 0-2.075 1.4-2.075 1.906v.643zm-1.3 0V3.12C1.125 1.324 2.55 0 4.5 0s3.375 1.324 3.375 3.119v.643h.345c.43 0 .78.35.78.78V9.22c0 .43-.35.78-.78.78H.78A.78.78 0 0 1 0 9.22V4.542c0-.43.35-.78.78-.78h.345z"/>'],as=[12,9,'<path d="M8.575 1.553L6.928 2.786a2.4 2.4 0 0 0-3.314 2.482L1.26 7.032C.456 6.256.004 5.446 0 5c-.01-1.029 2.49-4 6-4 .941 0 1.81.217 2.575.553zm1.798 1.124C11.4 3.542 12 4.515 12 5c0 .988-2.403 4-6 4a6.606 6.606 0 0 1-3.057-.758l1.692-1.268A2.4 2.4 0 0 0 8.28 4.245l2.094-1.568z"/><path d="M11.898.192a.476.476 0 0 1-.094.677L.801 8.905a.508.508 0 0 1-.7-.097.476.476 0 0 1 .095-.677L11.199.095a.508.508 0 0 1 .7.097z" fill-rule="nonzero"/>'],gs=[16,16,'<path d="M10 6V4.889A.889.889 0 0 0 9.111 4H8.89A.889.889 0 0 0 8 4.889V6H6.889A.889.889 0 0 0 6 6.889v.222c0 .491.398.889.889.889H8v1.111c0 .491.398.889.889.889h.222c.491 0 .889-.398.889-.889V8h1.111c.491 0 .889-.398.889-.889V6.89A.889.889 0 0 0 11.111 6H10zm-7.436 9.56l2.653-2.652a6.97 6.97 0 0 0 3.77 1.115 7.012 7.012 0 1 0-7.01-7.011c0 1.39.416 2.68 1.115 3.77L.44 13.435a1.502 1.502 0 1 0 2.124 2.126zM9.017 1.924a5.057 5.057 0 1 1 0 10.116 5.057 5.057 0 1 1 0-10.116z" fill-rule="nonzero"/>'],Eo=[16,16,'<path d="M2.564 15.56l2.653-2.652a6.97 6.97 0 0 0 3.77 1.115 7.012 7.012 0 1 0-7.01-7.011c0 1.39.416 2.68 1.115 3.77L.44 13.435a1.502 1.502 0 1 0 2.124 2.126zM9.017 1.924a5.057 5.057 0 1 1 0 10.116 5.057 5.057 0 1 1 0-10.116zM11.11 8c.491 0 .889-.398.889-.889V6.89A.889.889 0 0 0 11.111 6H6.89A.889.889 0 0 0 6 6.889v.222c0 .491.398.889.889.889h4.222z" fill-rule="nonzero"/>'],ws=[12,12,'<path d="M8.224 2.142L9.859 3.78l-7.026 7.014L1.175 11a.156.156 0 0 1-.174-.174l.206-1.66 7.017-7.023zm1.27-1.108a.117.117 0 0 0-.164 0l-.788.79 1.635 1.636.789-.79a.117.117 0 0 0-.006-.17L9.495 1.034z"/>'],Rs=[12,12,'<path d="M10.077 11.67l-1.99-1.99a5.227 5.227 0 0 1-2.828.837 5.259 5.259 0 1 1 5.259-5.258c0 1.043-.313 2.01-.837 2.828l1.989 1.988a1.128 1.128 0 0 1-1.593 1.595zM5.237 1.443a3.795 3.795 0 1 0 .002 7.59 3.795 3.795 0 0 0-.002-7.59z"/>'],As=[32,32,'<path d="M8.97 8.558a1.849 1.849 0 0 0-2.664 0L.552 14.457a1.963 1.963 0 0 0 0 2.73l5.754 5.9c.368.376.85.565 1.332.565.482 0 .964-.189 1.332-.565a1.966 1.966 0 0 0 0-2.73l-4.423-4.535 4.423-4.534a1.965 1.965 0 0 0 0-2.73zm21.686 5.912l-5.754-5.898a1.848 1.848 0 0 0-2.663 0 1.965 1.965 0 0 0 0 2.73l4.422 4.534-4.422 4.534a1.966 1.966 0 0 0 0 2.73c.367.377.85.566 1.331.566s.964-.19 1.332-.565l5.754-5.9a1.964 1.964 0 0 0 0-2.73z" fill-rule="nonzero"/><rect class="fore" transform="rotate(18 15.014 15.696)" x="13.585" y="2.125" width="2.857" height="27.143" rx="1.429"/>'],js=[32,32,'<path d="M15.786 29.786c-7.732 0-14-6.268-14-14s6.268-14 14-14 14 6.268 14 14-6.268 14-14 14zm0-3c6.075 0 11-4.925 11-11s-4.925-11-11-11-11 4.925-11 11 4.925 11 11 11z"/><path class="fore" d="M13.643 21.5c-.38 0-.707-.157-.945-.454-.237-.297-.369-.722-.369-1.194V11.72c0-.472.132-.897.37-1.193.237-.297.564-.455.944-.455.285 0 .58.094.87.274l6.175 4.078c.517.326.812.821.812 1.363 0 .547-.295 1.036-.828 1.374L14.54 21.21c-.317.198-.607.291-.897.291z" fill-rule="nonzero"/>'],Ls=[32,32,'<path class="fore" d="M20.567 7.637V4.575a.98.98 0 0 1 1.689-.676l5.238 5.498a1.96 1.96 0 0 1 0 2.703l-5.238 5.498a.98.98 0 0 1-1.69-.676v-3.248c-2.393-.281-5.635 1.815-9.726 6.288a.659.659 0 0 1-1.132-.578c1.565-7.6 5.184-11.516 10.859-11.747z"/><path d="M28.786 21.214v4.204a2.939 2.939 0 0 1-2.94 2.94H5.93A2.857 2.857 0 0 1 3.07 25.5V6.929A2.857 2.857 0 0 1 5.93 4.07h5.714a1.429 1.429 0 1 1 0 2.858h-4c-.947 0-1.714.767-1.714 1.714v15.143c0 .946.767 1.714 1.714 1.714h16.571c.947 0 1.715-.768 1.715-1.714v-2.572a1.429 1.429 0 0 1 2.857 0z"/>'],wi=[32,32,'<path d="M25.929 14.429v-6c0-.947-.768-1.715-1.715-1.715h-14v2.857h12.857v4.858c0 .473.384.857.858.857h1.142a.857.857 0 0 0 .858-.857z"/><path class="fore" d="M5.929 12.429h2.857a2.857 2.857 0 0 0 2.857-2.858V6.714a2.857 2.857 0 0 0-2.857-2.857H5.929A2.857 2.857 0 0 0 3.07 6.714v2.857a2.857 2.857 0 0 0 2.86 2.859z"/><path d="M5.929 17.571v6c0 .947.767 1.715 1.714 1.715h14v-2.857H8.786V17.57a.857.857 0 0 0-.857-.857H6.786a.857.857 0 0 0-.857.857z"/><path class="fore" d="M23.071 28.143h2.858a2.857 2.857 0 0 0 2.857-2.857v-2.857a2.857 2.857 0 0 0-2.857-2.858H23.07a2.857 2.857 0 0 0-2.857 2.858v2.857a2.857 2.857 0 0 0 2.857 2.857z"/>'],Fs=[32,32,'<g transform="translate(3 3)"><path d="M3.774 21.1c-.723.373-1.642.126-2.051-.55l-1.52-2.507c-.41-.676-.178-1.554.527-1.965l1.07-.624c.407-.237.737-.797.737-1.252l-.002-2.676c0-.454-.33-1.015-.737-1.252L.728 9.65C.025 9.24-.209 8.36.201 7.685l1.52-2.506c.411-.676 1.326-.924 2.052-.549l1.103.57c.42.217 1.095.208 1.51-.019l2.436-1.337c.414-.227.76-.778.772-1.232l.033-1.194C9.65.636 10.334.002 11.154.002L14.196 0c.821 0 1.504.629 1.526 1.415l.033 1.194c.012.454.358 1.006.772 1.234l2.436 1.338c.414.227 1.09.236 1.51.02l1.103-.571c.723-.373 1.642-.126 2.051.55l1.52 2.506c.41.677.178 1.554-.527 1.965l-1.07.624c-.407.237-.737.798-.737 1.253l.002 2.675c0 .455.33 1.015.737 1.253l1.07.624c.702.408.936 1.289.526 1.964l-1.52 2.506c-.411.676-1.326.925-2.052.55l-1.103-.57c-.42-.217-1.095-.209-1.51.018l-2.436 1.337c-.414.227-.76.778-.772 1.233l-.033 1.194c-.022.781-.706 1.415-1.526 1.416l-3.042.001c-.821 0-1.504-.628-1.526-1.414l-.033-1.195c-.012-.454-.358-1.006-.772-1.233l-2.436-1.338c-.414-.228-1.09-.237-1.51-.02l-1.103.57zm8.901-.85c4.173 0 7.556-3.307 7.556-7.385 0-4.08-3.383-7.386-7.556-7.386s-7.556 3.307-7.556 7.386c0 4.078 3.383 7.385 7.556 7.385z" fill-rule="nonzero"/><ellipse class="fore" cx="12.675" cy="12.865" rx="2.681" ry="2.621"/></g>'],Ii=[10,7,'<path d="M4.95 2.828l2.828 2.829a1 1 0 1 0 1.414-1.414L5.657.707a.997.997 0 0 0-1.414 0L.707 4.243a1 1 0 1 0 1.414 1.414L4.95 2.828z"/>'],Bs=[10,7,'<path d="M4.95 4.071l2.828-2.828a1 1 0 1 1 1.414 1.414L5.657 6.192a.997.997 0 0 1-1.414 0L.707 2.657a1 1 0 0 1 1.414-1.414L4.95 4.07z"/>'],hi=[8,12,'<path d="M7.137 10.872a1.04 1.04 0 0 0 0-1.578L2.994 5.6l4.143-3.694a1.04 1.04 0 0 0 0-1.578 1.343 1.343 0 0 0-1.759 0L.363 4.81a1.042 1.042 0 0 0 0 1.58l5.015 4.482a1.343 1.343 0 0 0 1.76 0z"/>'],Li=[8,12,'<path d="M.363 10.872a1.04 1.04 0 0 1 0-1.578L4.506 5.6.363 1.906a1.04 1.04 0 0 1 0-1.578 1.343 1.343 0 0 1 1.759 0L7.137 4.81a1.042 1.042 0 0 1 0 1.58l-5.015 4.482a1.343 1.343 0 0 1-1.76 0z"/>'],qs=[6,4,'<path d="M3 0l3 4H0z"/>'],Ws=[6,4,'<path d="M3 4l3-4H0z"/>'],Wi=[24,24,'<path d="M10.286 10.286V1.714a1.714 1.714 0 1 1 3.428 0v8.572h8.572a1.714 1.714 0 1 1 0 3.428h-8.572v8.572a1.714 1.714 0 1 1-3.428 0v-8.572H1.714a1.714 1.714 0 1 1 0-3.428h8.572z"/>'],Ds=[24,24,'<rect y="10.286" width="24" height="3.429" rx="1.714"/>'],Xs=[24,24,'<path d="M12 9.576l6.06-6.061a1.714 1.714 0 1 1 2.425 2.424L14.425 12l6.06 6.06a1.714 1.714 0 1 1-2.424 2.425L12 14.425l-6.06 6.06a1.714 1.714 0 1 1-2.425-2.424L9.575 12l-6.06-6.06a1.714 1.714 0 1 1 2.424-2.425L12 9.575z"/>'],Ti=[24,24,'<path d="M12 24C5.373 24 0 18.627 0 12S5.373 0 12 0s12 5.373 12 12-5.373 12-12 12zM6 12.106c0 .338.117.625.35.861l3.52 3.479c.234.236.523.354.868.354.336 0 .62-.118.854-.354l7.244-7.184c.243-.236.364-.522.364-.858a1.13 1.13 0 0 0-.364-.85 1.197 1.197 0 0 0-.864-.354c-.334 0-.622.118-.865.354l-6.369 6.327-2.66-2.636a1.197 1.197 0 0 0-.864-.354c-.333 0-.621.118-.864.354a1.18 1.18 0 0 0-.35.861z"/>'],ri=[10,10,'<path d="M.8 4.864c0 .215.075.398.226.55L3.3 7.632c.15.15.337.226.56.226a.75.75 0 0 0 .552-.226l4.679-4.584a.73.73 0 0 0 .235-.547.717.717 0 0 0-.235-.543.778.778 0 0 0-.558-.226.778.778 0 0 0-.559.226L3.861 5.996 2.143 4.315a.778.778 0 0 0-.559-.226.778.778 0 0 0-.558.226.748.748 0 0 0-.226.549z" fill="#FFF" fill-rule="evenodd"/>'],ui=[14,14,'<rect x="3" y="2" width="10" height="4" rx="1" class="secondary"/><rect x="3" y="8" width="5" height="4" rx="1" class="tertiary"/><path d="M1 1h1v12H1z" class="main"/>'],Ks=[14,14,'<path d="M0 7h14v1H0z" class="main"/><rect x="2" width="4" height="13" rx="1" class="secondary"/><rect x="8" y="4" width="4" height="7" rx="1" class="tertiary"/>'],li=[14,14,'<path class="main" d="M12 1h1v12h-1z"/><rect class="secondary" y="2" width="10" height="4" rx="1"/><rect class="tertiary" x="5" y="8" width="6" height="4" rx="1"/>'],gi=[14,14,'<rect class="secondary" x="2" y="3" width="4" height="10" rx="1"/><rect class="tertiary" x="8" y="3" width="4" height="5" rx="1"/><path class="main" d="M1 1h12v1H1z"/>'],wa=[14,14,'<path class="main" d="M7 0h1v14H7z"/><rect class="secondary" y="2" width="13" height="4" rx="1"/><rect class="tertiary" x="4" y="8" width="7" height="4" rx="1"/>'],ta=[14,14,'<rect class="secondary" x="2" width="4" height="10" rx="1"/><rect class="tertiary" x="8" y="6" width="4" height="5" rx="1"/><path class="main" d="M1 12h12v1H1z"/>'],pr=[14,14,'<rect class="secondary" x="5" y="3" width="4" height="8" rx="1"/><path class="main" d="M1 1h1v12H1zM12 1h1v12h-1z"/>'],hr=[14,14,'<rect class="secondary" x="3" y="5" width="8" height="4" rx="1"/><path class="main" d="M1 1h12v1H1zM1 12h12v1H1z"/>'],ac=[12,12,'<path class="main" d="M0 1h5v2H0zm0 8h12v2H0z"/><path class="secondary" d="M0 5h8v2H0z"/>'],Ia=[12,12,'<path class="main" d="M3 1h6v2H3zm0 8h6v2H3z"/><path class="secondary" d="M0 5h12v2H0z"/>'],ur=[12,12,'<path class="main" d="M7 1h5v2H7zM0 9h12v2H0z"/><path class="secondary" d="M4 5h8v2H4z"/>'],gr=[12,12,'<path class="main" d="M1 1h10v2H1zm0 8h10v2H1z"/><path class="secondary" d="M1 5h10v2H1z"/>'],mr=[14,14,'<path d="M8 6h2l-3 4-3-4h2V2h2v4zm-7 5h12v1H1v-1z"/>'],Fi=[14,14,'<path d="M6 12H4l3-3 3 3H8v2H6v-2zm2-9h2L7 6 4 3h2V1h2v2zM1 7h12v1H1V7z"/>'],Ta=[14,14,'<path d="M8 8h2L7 4 4 8h2v4h2V8zM1 3h12V2H1v1z"/>'],Aa=[34,24,'<path d="M10.72 16.588l.564 1.966a.782.782 0 0 0 .075.178l-6.537-1.153a1 1 0 0 1-.807-1.16L6.588 1.83a1.001 1.001 0 0 1 1.16-.814l11.837 2.088-.191.387-3.476.997L8.385 3.16 6.158 15.785l4.562.804zm-.463-8.227a.998.998 0 0 1 .707-1.22L24.64 3.478a1.001 1.001 0 0 1 1.222.703L29.565 18a.998.998 0 0 1-.707 1.22l-13.676 3.664a1.001 1.001 0 0 1-1.222-.703L10.257 8.36zm2.192.453l3.183 11.877 11.74-3.145L24.19 5.668 12.45 8.814zm2.712 5.735l-.259-.966 9.548-2.559.26.966-9.55 2.559zm-.844-3.149l-.258-.966 9.548-2.558.259.966-9.549 2.558zm1.687 6.297l-.258-.966 7.207-1.932.26.966-7.209 1.932z"/>'],Pa=[34,24,'<path d="M0 7.006C0 4.793 1.82 3 4.061 3H29.94C32.18 3 34 4.792 34 7.006v9.988C34 19.207 32.18 21 29.939 21H4.06C1.82 21 0 19.208 0 16.994V7.006zm2 0v9.988C2 18.103 2.913 19 4.038 19h25.924C31.086 19 32 18.102 32 16.994V7.006C32 5.897 31.087 5 29.962 5H4.038C2.914 5 2 5.898 2 7.006zm4.729 7.9H4V9h2.682c1.157 0 1.883.569 1.883 1.473 0 .647-.504 1.187-1.158 1.281v.033c.837.062 1.452.647 1.452 1.429 0 1.04-.815 1.69-2.13 1.69zM5.289 9.92v1.535h.927c.688 0 1.08-.29 1.08-.79 0-.475-.345-.745-.948-.745H5.29zm0 4.064H6.4c.744 0 1.145-.303 1.145-.868 0-.552-.414-.847-1.174-.847H5.29v1.715zm8.425-3.467v4.388H12.51v-.79h-.026c-.226.552-.678.872-1.37.872-.99 0-1.648-.618-1.648-1.641v-2.829h1.246v2.579c0 .585.304.896.854.896.556 0 .901-.38.901-.962v-2.513h1.247zm1.145-1.01h1.246v1.01h.846v.9h-.846v2.1c0 .336.171.496.538.496.111 0 .227-.009.304-.02v.88a3.058 3.058 0 0 1-.594.048c-1.076 0-1.494-.344-1.494-1.199V11.42h-.645v-.9h.645V9.507zm3.108 0h1.247v1.01h.845v.9h-.845v2.1c0 .336.17.496.538.496.111 0 .226-.009.303-.02v.88a3.047 3.047 0 0 1-.593.048c-1.076 0-1.495-.344-1.495-1.199V11.42h-.645v-.9h.645V9.507zM22.843 15c-1.383 0-2.267-.851-2.267-2.292 0-1.42.897-2.284 2.267-2.284 1.371 0 2.268.86 2.268 2.284 0 1.445-.884 2.292-2.268 2.292zm0-.913c.611 0 1-.495 1-1.375 0-.872-.393-1.375-1-1.375-.606 0-1.003.503-1.003 1.375 0 .88.389 1.375 1.003 1.375zm2.908.819v-4.388h1.204v.782h.026c.244-.544.726-.863 1.43-.863 1.017 0 1.589.613 1.589 1.64v2.829h-1.247v-2.579c0-.573-.282-.9-.841-.9-.56 0-.914.393-.914.962v2.517h-1.247z"/>'],na=[34,24,'<path d="M15.764 8.697a.835.835 0 0 0-.081.303v9a1 1 0 0 1-1.625.78l-2.543-2.035a.886.886 0 0 0-.1-.063c-.152-.083-.244-.091-.328-.037-.044.03-.059.049-.07.086a.598.598 0 0 0-.005.25L14.23 22h7.585l.76-5.356-5.2-1.693a1 1 0 0 1-.691-.951V9a.799.799 0 0 0-.083-.293c-.071-.14-.163-.2-.426-.207-.257.001-.34.058-.41.197zm-2.081 7.222V9c0-.329.07-.752.293-1.197.398-.797 1.157-1.303 2.207-1.303 1.049.019 1.797.516 2.196 1.293.23.448.304.875.304 1.207v4.274l5.309 1.728a1 1 0 0 1 .68 1.091l-1 7.047a1 1 0 0 1-.99.86h-9a1 1 0 0 1-.841-.46l-3.6-5.617a1 1 0 0 1-.102-.208 2.28 2.28 0 0 1-.075-.275 2.55 2.55 0 0 1 .04-1.293 2.13 2.13 0 0 1 .893-1.179c.798-.518 1.642-.443 2.378-.04.208.113.367.23.432.291l.876.7zm6.415-3.42l-1.193-1.606a4.35 4.35 0 0 0 1.778-3.499c0-2.422-2.01-4.394-4.5-4.394s-4.5 1.972-4.5 4.394c0 1.4.674 2.69 1.8 3.517l-1.182 1.613a6.351 6.351 0 0 1-2.618-5.13c0-3.536 2.914-6.394 6.5-6.394 3.585 0 6.5 2.858 6.5 6.394a6.35 6.35 0 0 1-2.585 5.104z"/>'],fr=[34,24,'<path d="M27 8.667V4H7v4.667h20zm0 1H7V20h20V9.667zM5 2.992A.996.996 0 0 1 6 2h22c.552 0 1 .455 1 .992v18.016A.996.996 0 0 1 28 22H6c-.552 0-1-.455-1-.992V2.992zm4.645 4.473a1.062 1.062 0 1 1 0-2.124 1.062 1.062 0 0 1 0 2.124zm4.332 0a1.062 1.062 0 1 1 0-2.124 1.062 1.062 0 0 1 0 2.124zm4.33 0a1.062 1.062 0 1 1 0-2.124 1.062 1.062 0 0 1 0 2.124z"/>'],xr=[34,24,'<path d="M18 22l-3.828-3.862H6.998C5.34 18.138 4 16.774 4 15.11V5.028A3.01 3.01 0 0 1 7.003 2h20.994C29.655 2 31 3.362 31 5.028V15.11c0 1.67-1.346 3.028-2.997 3.028h-6.175L18 22zM6 5.002v9.996c0 .546.447 1.002.998 1.002H15l3 3 3-3h7.003c.544 0 .997-.449.997-1.002V5.002C29 4.456 28.55 4 27.997 4H7.003A.996.996 0 0 0 6 5.002zM11.5 11a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm6 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm6 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"/>'],rc=[34,24,'<path d="M6 2.993C6 2.445 6.44 2 7.002 2h19.996A.998.998 0 0 1 28 2.993v18.014c0 .548-.44.993-1.002.993H7.002A.998.998 0 0 1 6 21.007V2.993zM8 4v16h18V4H8zm6.335 12.976a.448.448 0 0 1-.196-.132c-.156-.18-.186-.473-.063-.712l1.695-3.317-1.345-1.198a.618.618 0 0 1-.193-.492.596.596 0 0 1 .246-.476l4.71-3.55a.444.444 0 0 1 .602.04c.16.167.202.464.09.707l-1.594 3.51 1.468.959c.153.1.24.289.245.494 0 .22-.095.405-.26.52l-4.99 3.575a.437.437 0 0 1-.415.072z"/>'],Ma=[34,24,'<path d="M21.61 19.632l2.08 3.604-.866.5-2.08-3.604-2.64 1.524-.35-7.75 6.538 4.177-2.682 1.55zM19 4.5h8a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-2v-2h.5a.5.5 0 0 0 .5-.5V7a.5.5 0 0 0-.5-.5h-17A.5.5 0 0 0 8 7v10a.5.5 0 0 0 .5.5H16v2H7a1 1 0 0 1-1-1v-17a1 1 0 0 1 1-1h8l4 4zm0 0h-2.828L14 2.5H8.5A.5.5 0 0 0 8 3v1.5H6h13z"/>'],yr=[34,24,'<path d="M3 7c0-.553.44-1 1-1h26c.554 0 1 .447 1 1v11c0 .553-.44 1-1 1H4c-.554 0-1-.447-1-1V7zm2 1v9h24V8H5zm2 1h1v7H7V9z"/>'],vr=[34,24,'<path d="M28 13.586V5H6v15h15.586L28 13.586zm0 2.828L24.414 20H28v-3.586zM4 3.992A.999.999 0 0 1 5.003 3h23.994C29.55 3 30 3.455 30 3.992v17.016a.999.999 0 0 1-1.003.992H5.003A1.005 1.005 0 0 1 4 21.008V3.992zM8 6h1v6H8V6z"/>'],br=[34,24,'<path d="M19.749 18.974v-8.682a.5.5 0 1 1 1 0v8.631l5.817 1.293V6.859l-4.817-1.093V3.715l6.038 1.37a1 1 0 0 1 .779.975v15.402a1 1 0 0 1-1.217.977l-6.768-1.504a1 1 0 0 0-.437 0l-6.72 1.52a1 1 0 0 1-.438.001l-7.204-1.607A1 1 0 0 1 5 19.871l.04-15.44a1 1 0 0 1 1.224-.972l5.734 1.317v2.052l-4.961-1.14-.035 13.384 5.747 1.282V10.292a.5.5 0 1 1 1 0v10.04l6-1.358zm-3-6.736s-3.959-4.12-3.959-7.28a3.958 3.958 0 1 1 7.917 0c0 3.173-3.958 7.28-3.958 7.28zm0-5.3a1.98 1.98 0 1 0 0-3.959 1.98 1.98 0 0 0 0 3.958z"/>'],Cr=[34,24,'<path d="M2 6.007C2 5.451 2.447 5 2.998 5h28.004c.551 0 .998.449.998 1.007v12.986c0 .556-.447 1.007-.998 1.007H2.998C2.447 20 2 19.551 2 18.993V6.007zM4 7v11h26V7H4zm21 8l-3-4h6l-3 4z"/>'],lc=[34,24,'<path d="M6 2.002A.997.997 0 0 1 7.002 1h19.996A.997.997 0 0 1 28 2.002v19.996A.997.997 0 0 1 26.998 23H7.002A.997.997 0 0 1 6 21.998V2.002zM8 3v18h18V3H8zm2 5V5h14v3H10z"/>'],Sr=[34,24,'<path d="M17.128 4.613L8.025 21.025h18.207L17.128 4.613zm-.482-3.253c.266-.48.7-.479.965 0l11.535 20.795c.266.48.027.87-.513.87H5.623c-.55 0-.778-.391-.512-.87L16.646 1.36z"/>'],_r=[34,24,'<path d="M8 4.38v16.717h16.718L8 4.38zM6 1.559C6 .45 6.63.18 7.42.97l20.706 20.706c.785.785.526 1.42-.587 1.42H6.997A.999.999 0 0 1 6 22.101V1.559z"/>'],Ea=[34,24,'<path d="M28.5 6.5v1.007l2-.01v10.035h-2v.968H31a.5.5 0 0 0 .5-.5V7a.5.5 0 0 0-.5-.5h-2.5zm-23 0H3a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h2.5v-.968h-2V7.498l2 .009V6.5z" stroke-width="1" /><path d="M9 5v15h16V5H9zM8 3h18a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"/><path d="M14 11a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm-2.253 7.664l-1.494-1.328 4.787-5.386L17 14.4l3.917-4.897 3.79 3.79-1.414 1.414-2.21-2.21L17 17.601l-2.04-2.55z"/>'],oa=[34,24,'<path d="M19 14H8v8h18v-8h-2l-2.5-2-2.5 2zM7 12h12l2.5-2 2.5 2h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V13a1 1 0 0 1 1-1zm14.5-3a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9zm0-1.5a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/><path d="M21 4V3h1v1h1.001v1H22v1h-1V5h-.999V4H21zM10 19v-2h14v2z"/>'],La=[14,14,'<path d="M7.762.18l4.445 2.5c.49.275.793.794.793 1.356v4.928c0 .562-.303 1.08-.793 1.356l-4.445 2.5a1.556 1.556 0 0 1-1.524 0l-4.445-2.5A1.556 1.556 0 0 1 1 8.964V4.036c0-.562.303-1.08.793-1.356L6.238.18a1.556 1.556 0 0 1 1.524 0z"/><path d="M7.727 7.013v3.25A.732.732 0 0 1 7 11a.732.732 0 0 1-.727-.737v-3.25L3.374 5.38a.742.742 0 0 1-.282-1.002.722.722 0 0 1 .989-.286L7 5.736l2.92-1.643a.722.722 0 0 1 .988.286.742.742 0 0 1-.282 1.002L7.727 7.013z" class="fore"/>'],mi=[14,14,'<path d="M12.59 4.712c-1.16.66-1.684 1.64-1.57 2.937.114 1.297.774 2.174 1.98 2.629-.273.57-.58 1.127-.922 1.673C11.191 13.317 10.383 14 9.655 14c-.273 0-.637-.102-1.092-.307a3.23 3.23 0 0 0-1.332-.308c-.432 0-.87.103-1.314.308-.443.205-.802.307-1.075.307-.774 0-1.581-.637-2.423-1.912-.797-1.23-1.258-2.521-1.383-3.876-.125-1.354.074-2.407.598-3.158.75-1.184 1.729-1.776 2.935-1.776.387 0 .86.102 1.417.307.557.205.972.308 1.245.308.274 0 .672-.103 1.195-.308.524-.205 1.013-.307 1.468-.307 1.024 0 1.923.478 2.696 1.434z"/><path d="M8.938 2.288c-.592.774-1.308 1.138-2.15 1.092-.114-.75.125-1.49.717-2.219C8.096.455 8.802.068 9.62 0c.114.774-.114 1.537-.683 2.288z" class="fore"/>'],sa=[14,14,'<path d="M7 14A7 7 0 1 1 7 0a7 7 0 0 1 0 14zM4.324 7a1.03 1.03 0 1 0 0-2.059 1.03 1.03 0 0 0 0 2.059zm5.352-.03a1 1 0 1 0 0-2 1 1 0 0 0 0 2zM4 9a3.046 3.046 0 0 0 6 0H4z"/>'],Na=[14,14,'<g transform="translate(1)"><path d="M6.875 0v2.625c0 .966.784 1.75 1.75 1.75h2.625v7.875A1.75 1.75 0 0 1 9.5 14h-7a1.75 1.75 0 0 1-1.75-1.75V1.75C.75.784 1.534 0 2.5 0h4.375zm.875 0l3.5 3.5H8.625a.875.875 0 0 1-.875-.875V0z"/><rect class="fore" x="2.5" y="6.125" width="7" height="1.75" rx=".875"/><rect class="fore" x="2.5" y="9.625" width="7" height="1.75" rx=".875"/></g>'],wr=[14,14,'<path d="M2.01 7.37l3.78 2.511a2.188 2.188 0 0 0 2.42 0l3.78-2.51 1.73 1.155c.14.14.28.351.28.562 0 .21-.07.42-.28.561l-5.769 3.735a1.75 1.75 0 0 1-1.902 0L.28 9.65C.14 9.51 0 9.3 0 9.088c0-.21.14-.421.28-.562L2.01 7.37z" class="fore"/><path d="M.28 5.439C.14 5.299 0 5.088 0 4.877c0-.21.14-.42.35-.561l5.702-3.7A1.75 1.75 0 0 1 7.951.61l5.769 3.705c.14.14.28.35.28.561 0 .21-.14.421-.28.562L7.972 9.28a1.75 1.75 0 0 1-1.944 0L2.59 6.982.28 5.44z"/>'],cc=[14,14,'<path d="M6 5h7v6.267c0 .957-.776 1.733-1.733 1.733H6V5z" class="fore"/><path d="M2.733 13A1.733 1.733 0 0 1 1 11.267V5h4v8H2.733zM13 4H1V2.733C1 1.776 1.776 1 2.733 1h8.534C12.224 1 13 1.776 13 2.733V4z"/>'],dc=[14,14,'<path d="M12.82 1.016l-5.397-.008c-.2-.01-.355-.027-.458.065l-2.613 2.34a.243.243 0 0 0-.008.351L6.85 6.36c.099.103.238.132.341.04l5.686-5.081c.186-.167.157-.308-.057-.303zM6.807 7.602l-5.686 5.08c-.184.166-.157.307.059.302l5.396.008c.201.01.355.027.458-.065l2.613-2.337a.243.243 0 0 0 .008-.352L7.151 7.642c-.1-.102-.24-.132-.343-.04z"/><path d="M1.075 7.037c-.094-.103-.076-.257-.065-.46l.008-5.396c-.005-.216.136-.243.302-.059L6.4 6.811c.091.103.063.242-.04.34L3.764 9.658a.243.243 0 0 1-.352-.008L1.075 7.037zm9.513-2.684l2.34 2.61c.091.103.074.257.064.458l-.008 5.397c.005.215-.136.242-.303.058l-5.08-5.685c-.092-.103-.063-.242.04-.34l2.595-2.506a.243.243 0 0 1 .352.008z" class="fore"/>'],ia=[14,14,'<path d="M13 7h-2V4.2A1.2 1.2 0 0 0 9.8 3H7V1h2.8A3.2 3.2 0 0 1 13 4.2V7zm-6 6H4.2A3.2 3.2 0 0 1 1 9.8V7h2v2.8A1.2 1.2 0 0 0 4.2 11H7v2z"/><path d="M3 5a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm8 8a2 2 0 1 1 0-4 2 2 0 0 1 0 4z" class="fore"/>'],Da=[14,14,'<path d="M7.512.295l5.039 2.91c.316.182.511.52.511.886v5.818c0 .366-.195.704-.511.886l-5.04 2.91a1.023 1.023 0 0 1-1.023 0l-5.039-2.91a1.023 1.023 0 0 1-.511-.886V4.091c0-.366.195-.704.511-.886L6.49.295a1.023 1.023 0 0 1 1.023 0zM7 9a2 2 0 1 0 0-4 2 2 0 0 0 0 4z" class="fore"/>'],Ir=[14,14,'<path d="M5.66 14a.735.735 0 0 1-.727-.89l1.006-4.64-2.422-.854a.767.767 0 0 1-.485-.501.675.675 0 0 1 .15-.668L8.378.267a.754.754 0 0 1 .876-.204c.298.13.484.464.428.798l-.782 4.825 2.496.52c.26.055.466.24.559.482.093.26.037.52-.15.724L6.219 13.74a.727.727 0 0 1-.559.26z" class="fore"/>'],Tr=[12,12,'<path d="M4.81 12h6.38c.447 0 .81-.448.81-1s-.363-1-.81-1H4.81c-.447 0-.81.448-.81 1s.363 1 .81 1zm0-10h6.38c.447 0 .81-.448.81-1s-.363-1-.81-1H4.81C4.363 0 4 .448 4 1s.363 1 .81 1zm0 5h6.38c.447 0 .81-.448.81-1s-.363-1-.81-1H4.81C4.363 5 4 5.448 4 6s.363 1 .81 1zM0 0h2v2H0V0zm0 5h2v2H0V5zm0 5h2v2H0v-2z" class="fore"/>'],aa=[12,12,'<path d="M1 7h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm7-7h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1z"/><path d="M8 7h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1z" fill-opacity=".4"/><path d="M1 0h3a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1z"/>'],Ar=[12,12,'<path d="M8.322 2.743A4 4 0 1 0 9.714 7.49a1 1 0 1 1 1.856.745 6 6 0 1 1-1.855-6.947l1.053-1.1a.5.5 0 0 1 .862.345v3.69a.5.5 0 0 1-.503.498l-3.512-.018a.5.5 0 0 1-.36-.845l1.067-1.115z" class="fore"/>'],Pr=[18,18,'<path d="M8 14V4.332H5V6H3V2.332h12V6h-2V4.332h-3V14h2v2H6v-2h2z"/>'],ka=[18,18,'<path d="M4 4v10h10V4H4zM2 2h14v14H2V2z"/>'],Mr=[18,18,'<path d="M9 15A6 6 0 1 0 9 3a6 6 0 0 0 0 12zm0 2A8 8 0 1 1 9 1a8 8 0 0 1 0 16z"/>'],Ns=[18,18,'<path d="M12.642 6.419L5.42 13.642c.116.261.181.552.181.858 0 1.16-.932 2.1-2.1 2.1-1.16 0-2.1-.932-2.1-2.1 0-1.16.932-2.1 2.1-2.1.306 0 .596.065.858.181l7.223-7.223A2.103 2.103 0 0 1 11.4 4.5c0-1.16.932-2.1 2.1-2.1 1.16 0 2.1.932 2.1 2.1 0 1.16-.932 2.1-2.1 2.1-.306 0-.596-.065-.858-.181z"/>'],Er=[18,18,'<path d="M15 13.108V5H3v7.992l1.776-1.48 1.954 1.466 4.07-4.07 4.2 4.2zM1 3h16v13H1V3zm5.5 7a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"/>'],oi=[12,12,'<path d="M2.138 9.84a.658.658 0 0 1-.89-.256l-.66-1.169A.689.689 0 0 1 .817 7.5l.464-.291a.764.764 0 0 0 .32-.584L1.6 5.376a.764.764 0 0 0-.32-.585l-.464-.29a.69.69 0 0 1-.228-.917l.66-1.168a.657.657 0 0 1 .89-.257l.478.266a.73.73 0 0 0 .655-.009l1.058-.623a.762.762 0 0 0 .335-.575l.014-.557a.674.674 0 0 1 .662-.66L6.66 0c.356 0 .653.293.662.66l.014.557c.006.212.156.47.335.575l1.058.624c.18.106.472.11.655.01l.478-.267a.658.658 0 0 1 .89.257l.66 1.169a.689.689 0 0 1-.229.916l-.464.291a.764.764 0 0 0-.32.584l.001 1.248c0 .212.143.474.32.585l.464.29a.69.69 0 0 1 .228.917l-.66 1.168a.657.657 0 0 1-.89.257l-.478-.266a.73.73 0 0 0-.655.009l-1.058.623a.762.762 0 0 0-.335.575l-.014.557a.674.674 0 0 1-.662.66L5.34 12a.672.672 0 0 1-.662-.66l-.014-.557a.763.763 0 0 0-.335-.575L3.27 9.584a.729.729 0 0 0-.655-.01l-.478.267zM6 8.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z"/>'],Lr=[12,12,'<path d="M2 3.5h8v7a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-7zm2.5 2A.5.5 0 0 0 4 6v3a.5.5 0 0 0 1 0V6a.5.5 0 0 0-.5-.5zm3 0A.5.5 0 0 0 7 6v3a.5.5 0 0 0 1 0V6a.5.5 0 0 0-.5-.5zM5 1a.5.5 0 0 1 .5-.5h1A.5.5 0 0 1 7 1a.5.5 0 0 0 .5.5h3a.5.5 0 1 1 0 1h-9a.5.5 0 0 1 0-1h3A.5.5 0 0 0 5 1z"/>'],Nr=[12,12,'<path d="M3.5 2.5h7a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1h-7a1 1 0 0 1-1-1v-7a1 1 0 0 1 1-1zm1 2h5v5h-5v-5zm5-3h-7a1 1 0 0 0-1 1v7a1 1 0 0 1-1-1v-7a1 1 0 0 1 1-1h7a1 1 0 0 1 1 1z" fill-rule="evenodd"/>'],Dr=[12,12,'<path d="M3.5 9.5H9a.5.5 0 0 0 .5-.5V3.5l-1-1h-5v-1a1 1 0 0 1 1-1h4.586a1 1 0 0 1 .707.293l1.414 1.414a1 1 0 0 1 .293.707V10.5a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-1z"/><path d="M5.526 5.5H1.833a.5.5 0 0 0 0 1h3.693v1.57a.2.2 0 0 0 .329.154l2.19-1.841a.5.5 0 0 0 0-.766l-2.19-1.84a.2.2 0 0 0-.329.152V5.5z"/>'],kr=[14,14,'<path d="M3 12V1h3.842c.606 0 1.15.06 1.632.178.483.118.891.298 1.225.54.333.241.589.55.766.925.177.375.266.82.266 1.334 0 .503-.14.957-.416 1.36-.277.402-.683.715-1.217.936.324.086.605.21.843.374a2.33 2.33 0 0 1 .944 1.311c.077.267.115.544.115.831 0 .529-.089.994-.266 1.394-.177.4-.433.735-.77 1.005-.336.27-.744.472-1.224.608A5.977 5.977 0 0 1 7.112 12H3zm1.948-4.964v3.438h2.164c.318 0 .599-.04.843-.121.244-.08.448-.195.612-.344.164-.148.287-.326.37-.532.082-.207.123-.436.123-.688 0-.544-.147-.972-.44-1.284-.292-.312-.767-.469-1.424-.469H4.948zm0-1.405h1.91c.605 0 1.079-.135 1.42-.404.342-.27.512-.651.512-1.145 0-.544-.158-.936-.473-1.178C8 2.662 7.509 2.54 6.842 2.54H4.948v3.09z"/>'],Oa=[14,14,'<path d="M5 11l2-9H5V1h6v1H9l-2 9h2v1H3v-1h2z"/>'],Ra=[14,14,'<path d="M2 12h10v1H2v-1zm9-5.753c0 1.25-.333 2.045-1 2.67C9.333 9.544 8.247 10 7.014 10 5.754 10 4.708 9.598 4 9c-.708-.598-1-1.447-1-2.753V1h2v5.247C5 7.123 5.5 8 7 8s2-.877 2-1.753V1h2v5.247z"/>'],Or=[14,14,'<path d="M6.092 7H1V6h3.244a2.775 2.775 0 0 1-.66-.84 2.522 2.522 0 0 1-.255-1.15c0-.429.09-.828.272-1.196a2.87 2.87 0 0 1 .771-.958 3.65 3.65 0 0 1 1.187-.631C6.02 1.075 6.527 1 7.086 1c.615 0 1.166.092 1.651.278.484.185.893.431 1.226.739a3.119 3.119 0 0 1 1.016 2.305v.193H9.166v-.193c0-.268-.043-.515-.128-.74a1.495 1.495 0 0 0-.378-.568 1.748 1.748 0 0 0-.637-.371 2.87 2.87 0 0 0-.937-.136c-.344 0-.64.04-.887.117-.244.076-.442.18-.595.31-.153.128-.266.28-.34.455-.076.182-.115.38-.115.6 0 .19.04.36.12.514.08.154.205.298.378.432.179.139.414.27.704.39a9.27 9.27 0 0 0 1.079.36c.352.098.677.203.975.315H13v1h-2.853c.282.266.494.564.635.893.146.34.218.722.218 1.147 0 .447-.092.855-.277 1.221a2.7 2.7 0 0 1-.79.94c-.339.259-.745.457-1.217.594A5.555 5.555 0 0 1 7.157 12c-.334 0-.668-.03-1.002-.093a5.01 5.01 0 0 1-.964-.279 4.304 4.304 0 0 1-.86-.464 3.345 3.345 0 0 1-.697-.65 2.91 2.91 0 0 1-.466-.833A2.937 2.937 0 0 1 3 8.671v-.193h1.813v.193c0 .327.063.601.188.826.127.228.295.414.505.562.214.15.46.26.741.331.288.074.592.11.91.11.678 0 1.184-.134 1.527-.394.336-.255.503-.6.503-1.052 0-.22-.033-.411-.098-.573a1.083 1.083 0 0 0-.336-.43 2.93 2.93 0 0 0-.708-.401 10.97 10.97 0 0 0-1.19-.406A11.9 11.9 0 0 1 6.093 7z"/>'],Ba=[12,12,'<path class="main" d="M11 1v2H9V1z"/><path class="secondary" d="M7 1v2H5V1z"/><path class="main" d="M3 1v2H1V1z"/><path class="secondary" d="M11 5v2H9V5z"/><path class="main" d="M7 5v2H5V5z"/><path class="secondary" d="M3 5v2H1V5z"/><path class="main" d="M11 9v2H9V9z"/><path class="secondary" d="M7 9v2H5V9z"/><path class="main" d="M3 9v2H1V9z"/>'],ra=[12,12,'<path class="main" d="M1 1h2v10H1z"/><path class="secondary" d="M5 1h2v10H5z"/><path class="main" d="M9 1h2v10H9z"/>'],Rr=[12,12,'<path class="main" d="M11 1v2H1V1z"/><path class="secondary" d="M11 5v2H1V5z"/><path class="main" d="M11 9v2H1V9z"/>'],Br=[18,18,'<path d="M15.893 13.45c0-.041 0-.084-.004-.127a1.258 1.258 0 0 0-.883-1.121L10 10.49V4h5a1 1 0 0 1 1 1v8a.996.996 0 0 1-.107.45zM6 4v10a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z" class="fore"/><path d="M3 3v12h4V3H3zm6 7.15a1.236 1.236 0 0 0-.989.068c-.157.08-.288.189-.396.319a1.27 1.27 0 0 0-.157 1.406L9 14.97V17H1V1h8v9.15z" class="main"/><path d="M14.892 13.4c.01.128-.039.219-.147.274l-1.473.75 2.31 1.93c.06.052.093.117.1.195a.286.286 0 0 1-.06.205l-.531.646a.262.262 0 0 1-.19.097.285.285 0 0 1-.203-.067l-2.224-1.854-.57 1.854a.26.26 0 0 1-.238.19.266.266 0 0 1-.272-.156L8.349 11.49a.267.267 0 0 1 .034-.313.26.26 0 0 1 .294-.08l6.02 2.057a.26.26 0 0 1 .195.247z" class="main"/>'],jr=[18,18,'<path d="M13 10.635l-1.716-.587a1.236 1.236 0 0 0-.989.068c-.157.08-.289.19-.397.32a1.27 1.27 0 0 0-.156 1.406l.59 1.158H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4.635z" class="fore"/><path d="M17 12.002l-2-.684V3H3v12h8.351l1.02 2H1V1h16v11.002z" class="main"/><path d="M17.175 13.298c.01.129-.038.22-.147.275l-1.473.75 2.311 1.93c.06.052.093.117.1.194a.286.286 0 0 1-.06.206l-.532.646a.262.262 0 0 1-.189.097.285.285 0 0 1-.204-.067l-2.223-1.854-.57 1.854a.26.26 0 0 1-.238.19.266.266 0 0 1-.273-.156l-3.044-5.975a.267.267 0 0 1 .034-.313.26.26 0 0 1 .294-.08l6.02 2.057a.26.26 0 0 1 .194.246z"/>'],Vi=[14,14,'<path d="M11 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1zM5 3.5v7a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5z"/>'],Wr=[14,14,'<path d="M13 11H1a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1zm-2.5-6h-7a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5z"/>'],Hi=[14,14,'<path d="M3 7.83a2.995 2.995 0 0 1-2 0v5.198c0 .537.435.972.972.972h.056A.972.972 0 0 0 3 13.028V7.829zm0-5.66V.973A.972.972 0 0 0 2.028 0h-.056A.972.972 0 0 0 1 .972v1.199a2.995 2.995 0 0 1 2 0zm5 10.66a2.995 2.995 0 0 1-2 0v.198c0 .537.435.972.972.972h.056A.972.972 0 0 0 8 13.028v-.199zm0-5.66V.973A.972.972 0 0 0 7.028 0h-.056A.972.972 0 0 0 6 .972v6.199a2.995 2.995 0 0 1 2 0zm5-2.34a2.995 2.995 0 0 1-2 0V13a1 1 0 1 0 2 0V4.83zM10 2a2 2 0 1 0 4 0 2 2 0 0 0-4 0zm1 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0zm-6 8a2 2 0 1 0 4 0 2 2 0 0 0-4 0zm1 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM0 5a2 2 0 1 0 4 0 2 2 0 0 0-4 0zm1 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0z"/>'],Fr=[14,14,'<path d="M0 4h12.364c.351 0 .636.285.636.636v7.728a.636.636 0 0 1-.636.636H.636A.636.636 0 0 1 0 12.364V4zm6 4H4.5a.5.5 0 0 0 0 1H6v1.5a.5.5 0 1 0 1 0V9h1.5a.5.5 0 0 0 0-1H7V6.5a.5.5 0 0 0-1 0V8z" class="main"/><path d="M8 4L6 2H.636A.636.636 0 0 0 0 2.636V4h8z" class="secondary"/>'],Vr=[16,15,'<path class="fore" d="M6.757 3.454l3.528 2.117a.5.5 0 0 1 0 .858L6.757 8.546A.5.5 0 0 1 6 8.116V3.884a.5.5 0 0 1 .757-.429z"/><path d="M7 14v-2H.875A.875.875 0 0 1 0 11.125V.875C0 .392.392 0 .875 0h14.25c.483 0 .875.392.875.875v10.25a.875.875 0 0 1-.875.875H9v2h3v1H4v-1h3zm2-4h5V2H2v8h7z" fill-rule="nonzero"/>'],Hr=[16,16,'<path d="M11.781 9H6.625a1 1 0 1 1 0-2h5.156V3.5L16 8l-4.219 4.5V9zm-1.937 6a1 1 0 0 1-1 1H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-3h5.844a1 1 0 1 1 0 2H2.875a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h5.969a1 1 0 0 1 1 1z"/>'],Ur=[18,18,'<path d="M9 18A9 9 0 1 1 9 0a9 9 0 0 1 0 18zM9 2v14A7 7 0 0 0 9 2z" fill-rule="evenodd"/>'],ja=[16,16,'<path d="M12.38 10.514l-.002-.001-.044.017-.074.074c.135.547.138 1.123.01 1.683a3.691 3.691 0 0 1-1.003 1.808l-.028.028a3.86 3.86 0 0 1-1.954 1.006 3.596 3.596 0 0 1-2.175-.294.545.545 0 0 1-.221-.728c.03-.03.06-.09.09-.12.196-.223.36-.475.484-.741l.06-.119c-.147.003-.293.036-.441.068-.44.067-.88.104-1.305.098a.51.51 0 0 1-.363-.153l-2.37-2.37a.506.506 0 0 1-.153-.422A7.002 7.002 0 0 1 2.99 9.1c.018-.161.05-.308.083-.456l-.134.047c-.251.108-.517.26-.74.484-.21.21-.562.186-.762-.015a.382.382 0 0 1-.1-.13 3.627 3.627 0 0 1-.28-2.161A3.633 3.633 0 0 1 2.09 4.887c.523-.523 1.146-.857 1.776-.973a3.383 3.383 0 0 1 1.67-.003l.12-.12A9.443 9.443 0 0 1 9.79 1.353a9.1 9.1 0 0 1 4.733-.077c.19.04.318.198.373.373l.014.015a9.204 9.204 0 0 1-.093 4.716 9.666 9.666 0 0 1-2.438 4.134zm-8.202 2.973h-.001a.33.33 0 0 1 .47-.01c.114.145.125.335-.01.47l-.821.82a.328.328 0 0 1-.47.01.33.33 0 0 1 .01-.469l.822-.821zm6.053-5.45c1.172-.022 2.158-1.008 2.195-2.166a2.057 2.057 0 0 0-2.112-2.111c-1.185.008-2.158 1.009-2.18 2.18a2.05 2.05 0 0 0 2.097 2.098zm-8.384 4.764V12.8c-.133.134-.338.138-.453-.006a.323.323 0 0 1-.006-.454l.82-.82a.34.34 0 0 1 .47-.01.325.325 0 0 1-.009.468l-.822.823zm1.808-.284c.13.1.126.304.006.453l-1.866 1.866a.328.328 0 0 1-.47.01.323.323 0 0 1-.006-.453l1.867-1.867a.328.328 0 0 1 .469-.01z"/>'],Kr=[16,16,'<path d="M8.623 6.691v-3.48a8.548 8.548 0 0 1-.511-.06v-.007h-.033.032v.007h-.025c-.001 0-.007.006-.013.006-.195.024-.435.054-.706.079v3.456H0V3.918c0-.437.359-.786.808-.786h3.357c-.901-.184-1.578-.56-1.602-1.252-.026-.817.921-2.137 2.304-1.835C6.294.357 7.29 1.43 8.054 2.352c.77-.939 1.863-2.148 3.352-2.339 1.244-.153 2.273 1.056 2.14 1.854-.113.7-.802 1.08-1.68 1.264h3.315c.448 0 .808.35.808.786v2.774H8.623zM5.019.768c-.69-.264-1.093.02-1.383.486-.158.263-.328.614-.076.871.663.663 2.48.614 3.7.491-.575-.699-1.282-1.479-2.241-1.848zm7.53 1.352c.473-.59-.455-1.818-1.452-1.364-.953.436-1.641 1.148-2.234 1.848.51.043 1.028.055 1.54.03.625-.024 1.78-.067 2.146-.514zM7.417 14.99H1.414a.724.724 0 0 1-.733-.718V7.25h6.736v7.738zm7.89-.718a.723.723 0 0 1-.732.717H8.572V7.251h6.735v7.02z"/>'],zr=[14,12,'<path d="M10.915 4.5H14L7.115 12 0 4.5h3.027L7.115 12l3.8-7.5zm-.74 0l-3.06 6.185L3.773 4.5h6.402zm-9.96-.657L2.5.886l.334 2.957H.215zm13.565 0h-2.675V.384l2.675 3.459zm-3.196 0H3.382L6.88.384l3.704 3.459zM3.225.347L6.388 0 3.594 2.795 3.225.347zM7.408.001l2.993.31v2.484L7.408.001z"/>'],Gr=[18,18,'<path d="M13.096 4.922a.853.853 0 0 0 0-1.187L9.63.25a.841.841 0 0 0-1.18 0L.342 8.408a.853.853 0 0 0 0 1.186l8.11 8.158a.841.841 0 0 0 1.18 0l3.465-3.487a.853.853 0 0 0 0-1.187.841.841 0 0 0-1.18 0l-2.285 2.3a.841.841 0 0 1-1.18 0L2.7 9.591a.853.853 0 0 1 0-1.186L8.452 2.62a.841.841 0 0 1 1.18 0l2.286 2.3a.84.84 0 0 0 1.178 0zm4.646 3.486l-2.287-2.301a.841.841 0 0 0-1.18 0 .834.834 0 0 0 0 1.186l1.108 1.113c.32.332.32.863 0 1.186l-1.108 1.113a.853.853 0 0 0 0 1.187.841.841 0 0 0 1.18 0l2.287-2.3a.851.851 0 0 0 0-1.184zM6.404 9a2.643 2.643 0 0 0 2.638 2.653A2.641 2.641 0 0 0 11.68 9 2.643 2.643 0 0 0 9.04 6.347 2.641 2.641 0 0 0 6.404 9zm4.013-.01c-.01.77-.62 1.383-1.377 1.383a1.379 1.379 0 0 1-1.376-1.384c0-.759.61-1.383 1.376-1.383.767 0 1.377.614 1.377 1.383z"/>'],Zr=[23,20,'<path d="M15.96 6.627c-2.126.111-3.974.761-5.475 2.229-1.516 1.482-2.208 3.299-2.019 5.551-.83-.103-1.587-.218-2.348-.282-.263-.023-.575.01-.798.136-.739.42-1.447.895-2.287 1.424.154-.703.254-1.318.43-1.91.13-.434.07-.676-.327-.96C.584 11-.491 8.282.314 5.484 1.058 2.895 2.887 1.325 5.372.507c3.392-1.117 7.203.022 9.265 2.737a6.427 6.427 0 0 1 1.323 3.383zm-9.783-.872c.02-.512-.42-.973-.943-.989a.955.955 0 0 0-.99.928.945.945 0 0 0 .931.984.97.97 0 0 0 1.002-.923zm5.104-.989c-.524.01-.967.46-.958.974a.96.96 0 0 0 .983.943.944.944 0 0 0 .946-.972.949.949 0 0 0-.97-.945zm9.454 15.219c-.673-.302-1.29-.755-1.948-.825-.654-.069-1.343.312-2.028.383-2.087.215-3.956-.371-5.498-1.808C8.33 15 8.75 10.81 12.141 8.569c3.014-1.99 7.435-1.327 9.56 1.436 1.856 2.41 1.638 5.61-.627 7.635-.655.587-.89 1.069-.47 1.842.077.142.086.323.131.503zm-7.661-7.478a.796.796 0 0 0 .797-.764.8.8 0 0 0-.792-.832.81.81 0 0 0-.8.827c.014.425.37.769.795.77zm4.939-1.595a.795.795 0 0 0-.786.764.783.783 0 0 0 .775.826c.43.001.77-.327.786-.758a.79.79 0 0 0-.775-.832z"/>'],Yr=[24,17,'<path d="M12.005 4.702L13.94.649C14.128.253 14.53 0 14.973 0h7.882c.17 0 .338.037.491.11.571.268.814.944.543 1.51l-7.066 14.733c-.19.395-.592.647-1.033.647h-.142c-.44 0-.841-.25-1.032-.644L12.5 11.982l1.532-3.13 1.588 3.095a.23.23 0 0 0 .412-.008l4.03-8.646a.452.452 0 0 0-.415-.644h-3.295a.458.458 0 0 0-.415.262l-2.274 4.837a.45.45 0 0 0-.024.064l-1.623 3.104-2.632 5.44c-.19.394-.592.644-1.032.644H8.21c-.441 0-.844-.252-1.033-.647L.11 1.62A1.129 1.129 0 0 1 .654.11C.807.037.974 0 1.144 0h7.883c.442 0 .845.253 1.034.65l1.491 3.125L9.944 6.91l-1.88-4a.458.458 0 0 0-.416-.262H4.353a.452.452 0 0 0-.416.643l4.031 8.647a.23.23 0 0 0 .412.008l1.926-3.807c.026-.051.05-.11.072-.156l1.627-3.282z"/>'],Wa={"general/alarm":Ko,"general/close":zo,"general/ellipsis":xs,"general/group":ys,"general/info":ss,"general/question":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<arguments.length;ae++){var ye=arguments[ae];for(var Le in ye)Object.prototype.hasOwnProperty.call(ye,Le)&&(ne[Le]=ye[Le])}return ne},Ui.apply(this,arguments)}function Fa(ne,ae){var ye=Object.keys(ne);if(Object.getOwnPropertySymbols){var Le=Object.getOwnPropertySymbols(ne);ae&&(Le=Le.filter(function(Me){return Object.getOwnPropertyDescriptor(ne,Me).enumerable})),ye.push.apply(ye,Le)}return ye}function ca(ne){for(var ae=1;ae<arguments.length;ae++){var ye=arguments[ae]!=null?arguments[ae]:{};ae%2?Fa(Object(ye),!0).forEach(function(Le){Xr(ne,Le,ye[Le])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ne,Object.getOwnPropertyDescriptors(ye)):Fa(Object(ye)).forEach(function(Le){Object.defineProperty(ne,Le,Object.getOwnPropertyDescriptor(ye,Le))})}return ne}function Xr(ne,ae,ye){return ae in ne?Object.defineProperty(ne,ae,{value:ye,enumerable:!0,configurable:!0,writable:!0}):ne[ae]=ye,ne}function $r(ne,ae){if(ne==null)return{};var ye=Qr(ne,ae),Le,Me;if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);for(Me=0;Me<ze.length;Me++)Le=ze[Me],!(ae.indexOf(Le)>=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<Le.length;ze++)Me=Le[ze],!(ae.indexOf(Me)>=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<ae;ye++)Le[ye]=ne[ye];return Le}function fo(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 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<arguments.length;ae++){var ye=arguments[ae];for(var Le in ye)Object.prototype.hasOwnProperty.call(ye,Le)&&(ne[Le]=ye[Le])}return ne},Ai.apply(this,arguments)}function ol(ne,ae){if(ne==null)return{};var ye=sl(ne,ae),Le,Me;if(Object.getOwnPropertySymbols){var ze=Object.getOwnPropertySymbols(ne);for(Me=0;Me<ze.length;Me++)Le=ze[Me],!(ae.indexOf(Le)>=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<Le.length;ze++)Me=Le[ze],!(ae.indexOf(Me)>=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<ae.length;ye++){var Le=ae[ye];Le.enumerable=Le.enumerable||!1,Le.configurable=!0,"value"in Le&&(Le.writable=!0),Object.defineProperty(ne,Le.key,Le)}}function al(ne,ae,ye){return ae&&Ha(ne.prototype,ae),ye&&Ha(ne,ye),ne}function rl(ne,ae){if(typeof ae!="function"&&ae!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(ae&&ae.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),ae&&ha(ne,ae)}function ha(ne,ae){return ha=Object.setPrototypeOf||function(Le,Me){return Le.__proto__=Me,Le},ha(ne,ae)}function ll(ne){var ae=pl();return function(){var Le=zi(ne),Me;if(ae){var ze=zi(this).constructor;Me=Reflect.construct(Le,arguments,ze)}else Me=Le.apply(this,arguments);return cl(this,Me)}}function cl(ne,ae){return ae&&(ki(ae)==="object"||typeof ae=="function")?ae:dl(ne)}function dl(ne){if(ne===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ne}function pl(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(ne){return!1}}function zi(ne){return zi=Object.setPrototypeOf?Object.getPrototypeOf:function(ye){return ye.__proto__||Object.getPrototypeOf(ye)},zi(ne)}function Ua(ne,ae,ye){return ae in ne?Object.defineProperty(ne,ae,{value:ye,enumerable:!0,configurable:!0,writable:!0}):ne[ae]=ye,ne}var hl={primary:"Primary",regular:"Regular",secondary:"Regular",tertiary:"Tertiary",text:"Text"},Gi=function(ne){rl(ye,ne);var ae=ll(ye);function ye(){return il(this,ye),ae.apply(this,arguments)}return al(ye,[{key:"render",value:function(){var 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,'<path d="m15.34 16.916.008-.002c.194-.031.584-.095.928-.268.35-.176.662-.47.662-.966v-.266c0-2.52-2.082-4.569-4.638-4.569H9.588c-2.556 0-4.638 2.049-4.638 4.57v.265c0 .506.311.805.662.982.349.176.745.237.938.266.794.122 1.885.122 3.033.122H12.298c1.196 0 2.253-.009 3.042-.134zm-.142-.863c-.72.116-1.738.125-2.902.125H9.585c-1.122 0-2.176 0-2.904-.112a2.865 2.865 0 0 1-.595-.147.683.683 0 0 1-.199-.114c-.046-.041-.066-.083-.066-.125v-.266c0-2.037 1.689-3.696 3.765-3.696h2.708c2.077 0 3.766 1.659 3.766 3.696v.266c0 .04-.025.082-.083.126a.903.903 0 0 1-.234.117 3.2 3.2 0 0 1-.545.13zM7.242 6.586c0 2.004 1.656 3.635 3.69 3.635 2.033 0 3.689-1.63 3.689-3.635S12.965 2.95 10.93 2.95c-2.033 0-3.689 1.63-3.689 3.636zm.873 0c0-1.524 1.263-2.764 2.816-2.764 1.554 0 2.817 1.24 2.817 2.764 0 1.523-1.263 2.763-2.816 2.763-1.554 0-2.817-1.24-2.817-2.763z" fill="#333" stroke="#333" stroke-width=".1"/>'],"design/autoFillPanel/more":[12,3,'<circle cx="1.2" cy="1.2" r="1.2" fill="#999"/><circle cx="6" cy="1.2" r="1.2" fill="#999"/><circle cx="10.8" cy="1.2" r="1.2" fill="#999"/>'],"design/autoFillPanel/phone":[21,21,'<path d="M6.888 3.873c-2.269 1.693-2.55 5.408-.532 9.152 1.972 3.658 5.098 5.602 8.33 4.604.84-.26 1.646-.977 1.646-1.786 0-1.405-1.608-4.204-2.813-4.422-.338-.06-.747.061-1.354.324l-.194.086-.152.07c-.148.068-.272.129-.483.233l-.091.045-.004-.004a2.006 2.006 0 0 1-.11-.116 6.013 6.013 0 0 1-.587-.826l-.06-.1a9.607 9.607 0 0 1-.686-1.399l-.015-.04.383-.165.235-.103.224-.1.172-.081c.436-.207.695-.356.84-.515.833-.905-.817-5.28-2.17-5.532-.805-.15-1.778.112-2.5.618l-.08.057h.001zm2.371.44c.173.032.677.81 1.055 1.813.189.5.332 1.006.399 1.404l.011.07c.018.112.028.225.03.34l-.002.051-.071.042-.04.021c-.125.068-.29.15-.49.241l-.329.148c-.116.051-.233.102-.377.163l-.521.222-.078.036-.026.014-.015-.015c-.03-.021-.058.055-.265.644.344 1.475 1.798 3.867 2.692 3.869l.11-.012a.323.323 0 0 0 .049-.01l.075-.026.065-.028.234-.114.397-.194c.061-.03.12-.057.184-.087l.181-.082.087-.038c.173-.077.35-.144.53-.2l.063-.018c.077-.02.122-.028.111-.03.567.102 1.88 2.388 1.88 3.306 0 .193-.427.574-.847.703-2.623.81-5.254-.825-6.997-4.06-1.778-3.296-1.543-6.395.212-7.704.488-.365 1.19-.563 1.693-.47zM13.29 3c1.544 1.258 1.995 3.176 1.327 5.07l-.037.101-1.062-.397c.545-1.457.247-2.875-.872-3.835l-.072-.06L13.29 3z" fill="#333"/>'],"design/autoFillPanel/city":[21,21,'<path d="M3.136 17.203v.344H16.789V6.907a.7.7 0 0 0-.412-.637l-3.784-1.712-.003-.001-.006-.003a.997.997 0 0 0-.392-.079H7.775a.702.702 0 0 0-.702.702v4.825H3.802a.702.702 0 0 0-.702.701v6.5h.036zm5.083-7.201H7.86v-4.74h4.15v6.356l-3.392-1.534h-.002l-.007-.004a.997.997 0 0 0-.391-.078zm3.792 2.483v4.274H8.825v-5.714l3.186 1.44zm-3.974-1.694v5.968h-4.15v-5.968h4.15zm7.965 5.968h-3.204V5.517l3.204 1.45v9.792z" fill="#333" stroke="#333" stroke-width=".1"/><path d="M9.003 7.056h1.842a.344.344 0 1 0 0-.687H9.003a.343.343 0 0 0-.344.344c0 .19.153.343.344.343zm0 1.842h1.842a.344.344 0 1 0 0-.687H9.003a.343.343 0 0 0-.344.344c0 .19.153.343.344.343zm-3.992 4.299h1.842c.19 0 .344-.153.344-.344a.343.343 0 0 0-.344-.344H5.011a.343.343 0 0 0-.344.344c0 .19.153.344.344.344zm0 1.842h1.842c.19 0 .344-.153.344-.344a.343.343 0 0 0-.344-.343H5.011a.343.343 0 0 0-.344.343c0 .19.153.344.344.344z" fill="#333"/>'],"design/autoFillPanel/country":[21,21,'<path d="M10.848 8.351c.41 0 .796.16 1.086.45.29.29.45.676.45 1.086 0 .41-.16.796-.45 1.086-.29.29-.676.45-1.086.45a1.537 1.537 0 0 1 0-3.071zm0-1.024a2.56 2.56 0 1 0 0 5.119 2.56 2.56 0 0 0 0-5.119z" fill="#333"/><path d="M10.848 5.024c1.407 0 2.748.612 3.677 1.68 1.665 1.913 1.504 4.878-.367 6.75l-3.31 3.31-3.311-3.31c-1.871-1.872-2.032-4.837-.366-6.75a4.875 4.875 0 0 1 3.677-1.68zm0-1.024c-1.636 0-3.27.677-4.45 2.031-2.048 2.355-1.792 5.94.415 8.146l3.673 3.673a.51.51 0 0 0 .724 0l3.672-3.673c2.207-2.207 2.464-5.791.415-8.146A5.874 5.874 0 0 0 10.847 4z" fill="#333"/>'],"design/autoFillPanel/content":[21,21,'<path d="M10.381 6.99H6.836v.98h3.545v-.98zm-3.545 3.92h7.09v-.98h-7.09v.98zm0 2.94h7.09v-.98h-7.09v.98zm9.785-7.63-3.404-3.08a.54.54 0 0 0-.283-.14H4.496A.482.482 0 0 0 4 3.49v13.02c0 .28.213.49.496.49h11.841c.284 0 .496-.21.496-.49V6.57c-.07-.07-.141-.21-.212-.35zm-3.475-1.89L15.7 6.71h-2.553V4.33zm2.624 11.69H4.993V3.98h7.16V7.2c0 .28.213.49.497.49h3.19v8.33h-.07z" fill="#333"/>'],"design/autoFillPanel/dateTime":[21,21,'<path d="M16 10a6 6 0 1 0-12 0 6 6 0 0 0 12 0zm1 0a7 7 0 1 1-14 0 7 7 0 0 1 14 0z" fill="#333"/><path d="m10.5 10.522 1.855 1.85a.502.502 0 1 1-.71.71l-2-2a.5.5 0 0 1-.145-.355v-4.5a.5.5 0 0 1 1 0v4.295z" fill="#333"/>'],"design/autoFillPanel/email":[21,21,'<path d="M5.313 15.55h11.375c.75 0 1.362-.611 1.362-1.363V6.314c0-.752-.611-1.363-1.363-1.363H5.313c-.752 0-1.363.611-1.363 1.362v7.875c0 .752.611 1.363 1.363 1.363zm-.274-9.512a.387.387 0 0 1 .274-.113h11.375a.387.387 0 0 1 .387.388v7.875a.389.389 0 0 1-.387.387H5.313a.387.387 0 0 1-.388-.387V6.311c0-.102.04-.2.114-.274z" fill="#333" stroke="#333" stroke-width=".1"/><path d="M15.106 7.11a.487.487 0 0 1 .54.81v.001l-4.376 2.917a.478.478 0 0 1-.27.082m4.106-3.81-4.376 3.728c.08.053.174.082.27.082m4.106-3.81h-.001L11 9.846 6.896 7.11a.487.487 0 1 0-.54.812l4.374 2.916 4.376-3.729zM11 10.92v-.05.05z" fill="#333" stroke="#333" stroke-width=".1"/>'],"design/autoFillPanel/number":[21,21,'<path d="M15.505 4h-9.69c-1.071 0-1.939.896-1.939 2v6.981c0 1.105.868 2.003 1.94 2.003h2.018c.17 0 .335.045.482.132a.983.983 0 0 1 .354.361l1.152 2.029a.954.954 0 0 0 1.672 0l1.154-2.03a.984.984 0 0 1 .355-.36.946.946 0 0 1 .481-.132h2.022c1.069 0 1.934-.895 1.934-1.997V5.996C17.44 4.894 16.574 4 15.505 4zm.967 8.987c0 .264-.102.518-.283.705a.952.952 0 0 1-.683.293h-2.022c-.338 0-.67.09-.963.263a1.966 1.966 0 0 0-.708.723L10.66 17v-.001l-1.153-2.028c-.171-.3-.416-.55-.709-.723a1.888 1.888 0 0 0-.963-.263H5.815a.958.958 0 0 1-.687-.294 1.02 1.02 0 0 1-.284-.71v-6.98a1.03 1.03 0 0 1 .285-.709A.969.969 0 0 1 5.815 5h9.69a.94.94 0 0 1 .684.292 1 1 0 0 1 .283.705v6.991z" fill="#333"/><path d="M12.116 7.491a.47.47 0 0 0-.343.146.501.501 0 0 0-.141.353v2.502L9.591 7.69a.47.47 0 0 0-.54-.174.485.485 0 0 0-.239.183.51.51 0 0 0-.091.291v3.997c0 .132.05.26.142.353a.477.477 0 0 0 .684 0 .508.508 0 0 0 .142-.353v-2.5l2.039 2.801a.47.47 0 0 0 .78-.008.51.51 0 0 0 .09-.291V7.99a.514.514 0 0 0-.141-.353.483.483 0 0 0-.342-.146z" fill="#333"/>'],"design/autoFillPanel/animal":[21,21,'<mask id="a" maskUnits="userSpaceOnUse" x="2" y="2" width="18" height="16" fill="#000"><path fill="#fff" d="M2 2h18v16H2z"/><path d="M5.263 10.934c-.1 0-.202-.01-.303-.027-.606-.105-1.164-.513-1.534-1.117a2.884 2.884 0 0 1-.415-1.748c.055-.623.32-1.156.747-1.5a1.684 1.684 0 0 1 1.366-.35c.606.105 1.165.512 1.535 1.117.322.526.468 1.147.415 1.747-.055.624-.32 1.157-.747 1.5a1.683 1.683 0 0 1-1.064.378zm-.446-4.007a.91.91 0 0 0-.58.208c-.264.214-.43.559-.468.976-.04.438.07.894.307 1.283.256.417.625.695 1.014.764a.928.928 0 0 0 .757-.193c.263-.213.428-.558.467-.975a2.12 2.12 0 0 0-.307-1.283c-.256-.417-.625-.696-1.014-.764a1.108 1.108 0 0 0-.176-.016zM9.01 7.934c-.364 0-.726-.126-1.042-.366-.522-.397-.871-1.06-.96-1.816-.075-.633.043-1.262.333-1.77.309-.539.772-.882 1.307-.964.442-.068.898.056 1.281.347.522.397.871 1.06.96 1.817.075.632-.043 1.261-.333 1.768-.309.54-.772.883-1.307.965-.078.013-.159.019-.239.019zm-.118-4.172a.98.98 0 0 0-.126.01c-.3.045-.57.255-.76.588-.21.366-.293.83-.238 1.302.063.543.312 1.03.665 1.298a.92.92 0 0 0 .703.2c.301-.046.57-.255.76-.589.21-.366.294-.829.239-1.302-.063-.543-.313-1.029-.665-1.298a.974.974 0 0 0-.578-.21zm8.48 7.172c-.387 0-.755-.13-1.062-.378-.425-.343-.69-.876-.747-1.5-.054-.6.093-1.221.415-1.747.37-.606.929-1.012 1.535-1.117.493-.086.98.038 1.366.35.425.344.69.877.747 1.5.053.6-.093 1.222-.415 1.748-.37.606-.928 1.012-1.534 1.117a1.66 1.66 0 0 1-.305.027zm.445-4.007c-.057 0-.116.006-.175.016-.389.066-.758.345-1.014.764a2.128 2.128 0 0 0-.307 1.283c.037.415.202.762.467.975a.914.914 0 0 0 .757.193c.389-.067.758-.345 1.014-.764.236-.387.345-.843.307-1.283-.037-.415-.202-.762-.467-.976a.91.91 0 0 0-.582-.208zM13.7 7.934c-.08 0-.16-.006-.24-.02-.534-.081-.999-.424-1.308-.964-.29-.507-.408-1.136-.333-1.768.088-.757.438-1.418.96-1.817a1.683 1.683 0 0 1 1.281-.347c.534.082.999.425 1.308.965.29.507.407 1.136.333 1.769-.088.756-.438 1.417-.96 1.816-.313.24-.675.366-1.041.366zm.12-4.172a.98.98 0 0 0-.578.21c-.352.268-.6.752-.665 1.297-.055.473.03.936.239 1.302.19.334.46.543.76.589.301.046.549-.084.703-.2.353-.269.6-.753.665-1.298.056-.473-.03-.936-.238-1.302-.19-.333-.461-.543-.76-.589a.978.978 0 0 0-.126-.01zM14.286 17c-.038 0-.076-.002-.114-.004-.4-.023-.79-.16-1.123-.4-.536-.385-1.113-.58-1.713-.58-.6 0-1.176.195-1.714.58-.333.24-.722.377-1.122.4a2.168 2.168 0 0 1-1.925-.982 2.123 2.123 0 0 1-.336-1.143v-.044c0-1.677.52-3.257 1.464-4.45a5.16 5.16 0 0 1 1.618-1.376 4.226 4.226 0 0 1 2.015-.513c.7 0 1.378.174 2.014.513a5.16 5.16 0 0 1 1.618 1.376c.944 1.193 1.464 2.773 1.464 4.45v.044a2.123 2.123 0 0 1-.335 1.144 2.153 2.153 0 0 1-.832.747 2.135 2.135 0 0 1-.98.238zm-2.95-1.744c.752 0 1.498.25 2.157.722.427.305.959.345 1.428.107.466-.238.747-.694.75-1.216v-.04c0-3.074-1.944-5.576-4.333-5.576-2.39 0-4.334 2.502-4.334 5.576v.04c.003.524.284.978.75 1.216.467.238 1.001.198 1.428-.107.656-.472 1.4-.722 2.154-.722z"/></mask><path d="M5.263 10.934c-.1 0-.202-.01-.303-.027-.606-.105-1.164-.513-1.534-1.117a2.884 2.884 0 0 1-.415-1.748c.055-.623.32-1.156.747-1.5a1.684 1.684 0 0 1 1.366-.35c.606.105 1.165.512 1.535 1.117.322.526.468 1.147.415 1.747-.055.624-.32 1.157-.747 1.5a1.683 1.683 0 0 1-1.064.378zm-.446-4.007a.91.91 0 0 0-.58.208c-.264.214-.43.559-.468.976-.04.438.07.894.307 1.283.256.417.625.695 1.014.764a.928.928 0 0 0 .757-.193c.263-.213.428-.558.467-.975a2.12 2.12 0 0 0-.307-1.283c-.256-.417-.625-.696-1.014-.764a1.108 1.108 0 0 0-.176-.016zM9.01 7.934c-.364 0-.726-.126-1.042-.366-.522-.397-.871-1.06-.96-1.816-.075-.633.043-1.262.333-1.77.309-.539.772-.882 1.307-.964.442-.068.898.056 1.281.347.522.397.871 1.06.96 1.817.075.632-.043 1.261-.333 1.768-.309.54-.772.883-1.307.965-.078.013-.159.019-.239.019zm-.118-4.172a.98.98 0 0 0-.126.01c-.3.045-.57.255-.76.588-.21.366-.293.83-.238 1.302.063.543.312 1.03.665 1.298a.92.92 0 0 0 .703.2c.301-.046.57-.255.76-.589.21-.366.294-.829.239-1.302-.063-.543-.313-1.029-.665-1.298a.974.974 0 0 0-.578-.21zm8.48 7.172c-.387 0-.755-.13-1.062-.378-.425-.343-.69-.876-.747-1.5-.054-.6.093-1.221.415-1.747.37-.606.929-1.012 1.535-1.117.493-.086.98.038 1.366.35.425.344.69.877.747 1.5.053.6-.093 1.222-.415 1.748-.37.606-.928 1.012-1.534 1.117a1.66 1.66 0 0 1-.305.027zm.445-4.007c-.057 0-.116.006-.175.016-.389.066-.758.345-1.014.764a2.128 2.128 0 0 0-.307 1.283c.037.415.202.762.467.975a.914.914 0 0 0 .757.193c.389-.067.758-.345 1.014-.764.236-.387.345-.843.307-1.283-.037-.415-.202-.762-.467-.976a.91.91 0 0 0-.582-.208zM13.7 7.934c-.08 0-.16-.006-.24-.02-.534-.081-.999-.424-1.308-.964-.29-.507-.408-1.136-.333-1.768.088-.757.438-1.418.96-1.817a1.683 1.683 0 0 1 1.281-.347c.534.082.999.425 1.308.965.29.507.407 1.136.333 1.769-.088.756-.438 1.417-.96 1.816-.313.24-.675.366-1.041.366zm.12-4.172a.98.98 0 0 0-.578.21c-.352.268-.6.752-.665 1.297-.055.473.03.936.239 1.302.19.334.46.543.76.589.301.046.549-.084.703-.2.353-.269.6-.753.665-1.298.056-.473-.03-.936-.238-1.302-.19-.333-.461-.543-.76-.589a.978.978 0 0 0-.126-.01zM14.286 17c-.038 0-.076-.002-.114-.004-.4-.023-.79-.16-1.123-.4-.536-.385-1.113-.58-1.713-.58-.6 0-1.176.195-1.714.58-.333.24-.722.377-1.122.4a2.168 2.168 0 0 1-1.925-.982 2.123 2.123 0 0 1-.336-1.143v-.044c0-1.677.52-3.257 1.464-4.45a5.16 5.16 0 0 1 1.618-1.376 4.226 4.226 0 0 1 2.015-.513c.7 0 1.378.174 2.014.513a5.16 5.16 0 0 1 1.618 1.376c.944 1.193 1.464 2.773 1.464 4.45v.044a2.123 2.123 0 0 1-.335 1.144 2.153 2.153 0 0 1-.832.747 2.135 2.135 0 0 1-.98.238zm-2.95-1.744c.752 0 1.498.25 2.157.722.427.305.959.345 1.428.107.466-.238.747-.694.75-1.216v-.04c0-3.074-1.944-5.576-4.333-5.576-2.39 0-4.334 2.502-4.334 5.576v.04c.003.524.284.978.75 1.216.467.238 1.001.198 1.428-.107.656-.472 1.4-.722 2.154-.722z" fill="#333"/><path d="M5.263 10.934c-.1 0-.202-.01-.303-.027-.606-.105-1.164-.513-1.534-1.117a2.884 2.884 0 0 1-.415-1.748c.055-.623.32-1.156.747-1.5a1.684 1.684 0 0 1 1.366-.35c.606.105 1.165.512 1.535 1.117.322.526.468 1.147.415 1.747-.055.624-.32 1.157-.747 1.5a1.683 1.683 0 0 1-1.064.378zm-.446-4.007a.91.91 0 0 0-.58.208c-.264.214-.43.559-.468.976-.04.438.07.894.307 1.283.256.417.625.695 1.014.764a.928.928 0 0 0 .757-.193c.263-.213.428-.558.467-.975a2.12 2.12 0 0 0-.307-1.283c-.256-.417-.625-.696-1.014-.764a1.108 1.108 0 0 0-.176-.016zM9.01 7.934c-.364 0-.726-.126-1.042-.366-.522-.397-.871-1.06-.96-1.816-.075-.633.043-1.262.333-1.77.309-.539.772-.882 1.307-.964.442-.068.898.056 1.281.347.522.397.871 1.06.96 1.817.075.632-.043 1.261-.333 1.768-.309.54-.772.883-1.307.965-.078.013-.159.019-.239.019zm-.118-4.172a.98.98 0 0 0-.126.01c-.3.045-.57.255-.76.588-.21.366-.293.83-.238 1.302.063.543.312 1.03.665 1.298a.92.92 0 0 0 .703.2c.301-.046.57-.255.76-.589.21-.366.294-.829.239-1.302-.063-.543-.313-1.029-.665-1.298a.974.974 0 0 0-.578-.21zm8.48 7.172c-.387 0-.755-.13-1.062-.378-.425-.343-.69-.876-.747-1.5-.054-.6.093-1.221.415-1.747.37-.606.929-1.012 1.535-1.117.493-.086.98.038 1.366.35.425.344.69.877.747 1.5.053.6-.093 1.222-.415 1.748-.37.606-.928 1.012-1.534 1.117a1.66 1.66 0 0 1-.305.027zm.445-4.007c-.057 0-.116.006-.175.016-.389.066-.758.345-1.014.764a2.128 2.128 0 0 0-.307 1.283c.037.415.202.762.467.975a.914.914 0 0 0 .757.193c.389-.067.758-.345 1.014-.764.236-.387.345-.843.307-1.283-.037-.415-.202-.762-.467-.976a.91.91 0 0 0-.582-.208zM13.7 7.934c-.08 0-.16-.006-.24-.02-.534-.081-.999-.424-1.308-.964-.29-.507-.408-1.136-.333-1.768.088-.757.438-1.418.96-1.817a1.683 1.683 0 0 1 1.281-.347c.534.082.999.425 1.308.965.29.507.407 1.136.333 1.769-.088.756-.438 1.417-.96 1.816-.313.24-.675.366-1.041.366zm.12-4.172a.98.98 0 0 0-.578.21c-.352.268-.6.752-.665 1.297-.055.473.03.936.239 1.302.19.334.46.543.76.589.301.046.549-.084.703-.2.353-.269.6-.753.665-1.298.056-.473-.03-.936-.238-1.302-.19-.333-.461-.543-.76-.589a.978.978 0 0 0-.126-.01zM14.286 17c-.038 0-.076-.002-.114-.004-.4-.023-.79-.16-1.123-.4-.536-.385-1.113-.58-1.713-.58-.6 0-1.176.195-1.714.58-.333.24-.722.377-1.122.4a2.168 2.168 0 0 1-1.925-.982 2.123 2.123 0 0 1-.336-1.143v-.044c0-1.677.52-3.257 1.464-4.45a5.16 5.16 0 0 1 1.618-1.376 4.226 4.226 0 0 1 2.015-.513c.7 0 1.378.174 2.014.513a5.16 5.16 0 0 1 1.618 1.376c.944 1.193 1.464 2.773 1.464 4.45v.044a2.123 2.123 0 0 1-.335 1.144 2.153 2.153 0 0 1-.832.747 2.135 2.135 0 0 1-.98.238zm-2.95-1.744c.752 0 1.498.25 2.157.722.427.305.959.345 1.428.107.466-.238.747-.694.75-1.216v-.04c0-3.074-1.944-5.576-4.333-5.576-2.39 0-4.334 2.502-4.334 5.576v.04c.003.524.284.978.75 1.216.467.238 1.001.198 1.428-.107.656-.472 1.4-.722 2.154-.722z" stroke="#333" stroke-width=".2" mask="url(#a)"/>'],"design/autoFillPanel/tech":[21,21,'<path d="M9.089 12.568a3.131 3.131 0 0 0-2.044-.758A3.15 3.15 0 0 0 3.9 14.955 3.148 3.148 0 0 0 7.045 18.1a3.148 3.148 0 0 0 3.145-3.145c0-.702-.232-1.351-.623-1.875l.7-.7c.353.217.768.343 1.211.343a2.3 2.3 0 0 0 1.453-.515l.718.719a2.266 2.266 0 0 0 1.91 3.476 2.266 2.266 0 0 0 2.264-2.263 2.266 2.266 0 0 0-2.264-2.264c-.55 0-1.053.197-1.446.524l-.71-.71c.244-.366.386-.806.386-1.278 0-.442-.125-.856-.341-1.208l.682-.682a1.922 1.922 0 0 0 2.918-1.638 1.92 1.92 0 1 0-3.44 1.17l-.615.614a2.301 2.301 0 0 0-1.515-.566c-.472 0-.911.142-1.277.386l-.695-.695A2.443 2.443 0 0 0 7.546 3.9a2.442 2.442 0 0 0-2.44 2.44 2.443 2.443 0 0 0 2.44 2.44c.55 0 1.058-.182 1.467-.49l.67.67a2.3 2.3 0 0 0-.515 1.452 2.3 2.3 0 0 0 .565 1.512l-.644.644zm4-2.154c0 .386-.136.74-.363 1.018a.355.355 0 0 0-.097.109c-.292.298-.7.484-1.15.484a1.613 1.613 0 0 1-1.612-1.611c0-.889.724-1.611 1.611-1.611.889 0 1.611.722 1.611 1.61zM4.6 14.955a2.448 2.448 0 0 1 2.446-2.445 2.448 2.448 0 0 1 2.445 2.445 2.447 2.447 0 0 1-2.445 2.446 2.447 2.447 0 0 1-2.446-2.446zM5.806 6.34c0-.959.78-1.739 1.74-1.739.959 0 1.74.78 1.74 1.74 0 .959-.781 1.739-1.74 1.739-.96 0-1.74-.78-1.74-1.74zm8.19 7.8c0-.863.701-1.565 1.563-1.565.863 0 1.565.702 1.565 1.565 0 .862-.702 1.564-1.565 1.564a1.566 1.566 0 0 1-1.564-1.564zm-.085-7.256a1.22 1.22 0 1 1 1.218 1.218 1.22 1.22 0 0 1-1.218-1.218z" fill="#333" stroke="#333" stroke-width=".2"/>'],"design/autoFillPanel/nature":[21,21,'<path d="M18.03 14.774h-.768c-.007-.01-.007-.021-.015-.032l-6.015-7.516a.386.386 0 0 0-.306-.143.382.382 0 0 0-.3.162l-2.642 3.763-.422-.56a.37.37 0 0 0-.296-.152c-.113-.016-.229.05-.302.143l-3.421 4.3c-.008.01-.011.024-.019.035H2.318c-.21 0-.38.173-.38.385 0 .213.17.385.38.385h15.713c.21 0 .38-.172.38-.385a.383.383 0 0 0-.38-.385zm-7.073-6.668 5.335 6.668h-5.487c-.005-.008-.005-.016-.013-.024L8.464 11.65l2.493-3.545zm-3.705 3.197 2.606 3.468H4.494l2.758-3.468zm-2.194-4.06c.88 0 1.6-.729 1.6-1.622 0-.895-.72-1.621-1.6-1.621-.881 0-1.6.728-1.6 1.621 0 .896.719 1.621 1.6 1.621zm0-2.472c.464 0 .839.382.839.85 0 .47-.378.85-.84.85a.846.846 0 0 1-.838-.85c0-.468.378-.85.839-.85zm9.551 12.458H5.865c-.21 0-.38.173-.38.386 0 .212.17.385.38.385h8.744c.21 0 .38-.173.38-.385a.383.383 0 0 0-.38-.386z" fill="#333"/><path fill-rule="evenodd" clip-rule="evenodd" d="M17.247 14.742c.004.005.006.01.008.016l.008.016h.768c.21 0 .38.173.38.385 0 .213-.17.385-.38.385H2.318a.383.383 0 0 1-.38-.385c0-.213.17-.385.38-.385h1.206l.01-.017.009-.018 3.421-4.3c.073-.093.189-.16.301-.143a.37.37 0 0 1 .297.151l.422.561 2.643-3.763c.07-.098.18-.16.298-.162.124 0 .231.05.307.143l6.015 7.516zm-9.266-3.9 2.568-3.657a.477.477 0 0 1 .374-.202h.002c.151 0 .286.062.381.179h.001l6.01 7.512h.714c.261 0 .477.216.477.485 0 .27-.216.485-.477.485H2.318a.481.481 0 0 1-.477-.485c0-.27.216-.485.477-.485H3.47l3.42-4.298c.086-.108.229-.199.383-.18a.466.466 0 0 1 .367.19l.342.455zm2.976-2.736L8.464 11.65l2.328 3.099c.005.005.006.01.008.014l.005.01h5.487l-5.335-6.668zm.005.163-2.377 3.38 2.272 3.025h5.23l-5.125-6.405zm-3.71 3.034-2.758 3.468h5.364l-2.606-3.468zm-.002.16L4.7 14.671h4.96l-2.41-3.208zm-.496-5.842c0 .95-.763 1.721-1.696 1.721a1.71 1.71 0 0 1-1.696-1.72c0-.95.763-1.722 1.696-1.722a1.71 1.71 0 0 1 1.696 1.721zm-.954 0c0-.41-.33-.75-.742-.75-.41 0-.742.34-.742.75 0 .411.33.75.742.75.41 0 .742-.337.742-.75zm.065 11.508h8.744c.262 0 .477.216.477.486s-.215.485-.477.485H5.865a.481.481 0 0 1-.477-.485c0-.27.216-.486.477-.486zm.792-11.508c0 .893-.718 1.621-1.6 1.621-.88 0-1.598-.725-1.598-1.62C3.459 4.727 4.177 4 5.058 4c.88 0 1.6.726 1.6 1.621zm-.76 0a.846.846 0 0 0-.84-.85.847.847 0 0 0-.838.85c0 .468.375.85.839.85.461 0 .839-.38.839-.85zM5.865 17.23h8.744c.21 0 .38.173.38.386 0 .212-.17.385-.38.385H5.865a.383.383 0 0 1-.38-.385c0-.213.17-.386.38-.386z" fill="#333"/>'],"design/autoFillPanel/business":[21,21,'<path d="M16.473 5.867c0-.562-.475-1.06-1.342-1.4-.76-.3-1.77-.467-2.833-.467-1.063 0-2.073.166-2.834.467-.874.34-1.35.838-1.35 1.4v2.681a10.867 10.867 0 0 0-1.032-.055c-1.062 0-2.072.166-2.833.466-.867.348-1.342.847-1.342 1.408v5.766c0 .562.475 1.06 1.341 1.4.762.3 1.772.467 2.834.467 1.063 0 2.073-.166 2.834-.467.754-.3 1.213-.712 1.319-1.186.347.04.7.055 1.055.055 1.063 0 2.073-.166 2.834-.466.867-.34 1.341-.839 1.341-1.4v-.048l.008-8.621zm-.67 6.525c0 .483-1.373 1.17-3.513 1.17-.354 0-.7-.015-1.032-.055v-1.44c.339.04.678.056 1.032.056 1.063 0 2.073-.166 2.834-.466a3.49 3.49 0 0 0 .678-.348v1.083zm-5.209-.016c0 .483-1.371 1.17-3.512 1.17-2.14 0-3.512-.695-3.512-1.17v-.957c.189.127.415.245.679.348.76.3 1.77.467 2.833.467 1.063 0 2.073-.166 2.834-.467.264-.103.49-.221.678-.348v.957zM3.57 13.428c.189.127.415.245.679.348.76.3 1.77.467 2.833.467 1.063 0 2.073-.166 2.834-.467a3.49 3.49 0 0 0 .678-.348v.83c0 .483-1.371 1.171-3.512 1.171-2.14 0-3.512-.696-3.512-1.17v-.83zm12.232-3.171c0 .482-1.371 1.17-3.512 1.17-.354 0-.7-.016-1.032-.055v-1.005c0-.15-.038-.3-.106-.443.37.04.746.064 1.138.064 1.063 0 2.073-.167 2.834-.467.264-.103.49-.222.678-.348v1.084zm0-2.144c0 .482-1.371 1.17-3.512 1.17-2.14 0-3.512-.695-3.512-1.17V6.919c.188.126.415.245.678.348.761.3 1.771.466 2.834.466 1.063 0 2.073-.166 2.834-.466.264-.103.49-.222.678-.348v1.194zM12.29 4.688c2.14 0 3.512.696 3.512 1.17 0 .475-1.364 1.18-3.512 1.18-2.14 0-3.512-.697-3.512-1.171 0-.475 1.372-1.179 3.512-1.179zm-5.208 4.5c.475 0 .905.032 1.297.096.015 0 .022.008.037.008 1.357.205 2.178.703 2.178 1.075 0 .483-1.371 1.17-3.512 1.17-2.14 0-3.512-.695-3.512-1.17 0-.474 1.364-1.178 3.512-1.178zm0 8.124c-2.14 0-3.512-.696-3.512-1.17V15.31c.189.126.415.245.679.348.76.3 1.77.466 2.833.466 1.063 0 2.073-.166 2.834-.466a3.49 3.49 0 0 0 .678-.348v.83c0 .475-1.371 1.17-3.512 1.17zm5.208-1.606c-.354 0-.7-.016-1.032-.055v-1.44c.339.04.678.056 1.032.056 1.063 0 2.073-.166 2.834-.467a3.49 3.49 0 0 0 .678-.348v1.091c0 .467-1.364 1.163-3.512 1.163z" fill="#262435"/>'],"design/autoFillPanel/food":[21,21,'<path d="M17 15.5v-1a.5.5 0 0 0-.5-.5h-13a.5.5 0 0 0-.5.5v1c0 1.103.897 2 2 2h10c1.103 0 2-.897 2-2zm-13 0V15h12v.5c0 .552-.448 1-1 1H5c-.551 0-1-.448-1-1zm12.5-5h-13c-.827 0-1.5.673-1.5 1.5s.673 1.5 1.5 1.5h13c.827 0 1.5-.673 1.5-1.5s-.673-1.5-1.5-1.5zm0 2h-13a.5.5 0 0 1 0-1h13a.501.501 0 0 1 0 1zM3.5 10h13.01a.5.5 0 0 0 .488-.609C16.907 6.817 13.613 4.5 10 4.5c-3.663 0-7 2.383-7 5a.5.5 0 0 0 .5.5zM10 5.5c3.078 0 5.527 1.784 5.939 3.5H4.061C4.473 7.284 6.922 5.5 10 5.5z" fill="#333"/><path d="M7 7.5a.5.5 0 1 0 1 0 .5.5 0 0 0-1 0zM10 6.5a.5.5 0 1 0 1 0 .5.5 0 0 0-1 0zM12.5 8a.5.5 0 1 0 1 0 .5.5 0 0 0-1 0z" fill="#333"/>'],"design/autoFillPanel/close":[24,24,'<path fill-rule="evenodd" clip-rule="evenodd" d="M15.854 8.146a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708-.708l7-7a.5.5 0 0 1 .708 0z" fill="#333"/><path fill-rule="evenodd" clip-rule="evenodd" d="M15.854 15.854a.5.5 0 0 1-.708 0l-7-7a.5.5 0 1 1 .708-.708l7 7a.5.5 0 0 1 0 .708z" fill="#333"/>'],"design/br_single":[9,10,'<path stroke="#8B8C8F" stroke-linecap="round" stroke-width="1.2" d="M8 1.5H4a3 3 0 0 0-3 3v4"/>'],"chatGPT/ai-help":[16,16,'<path fill="#999" fill-rule="evenodd" d="M2.67 8a5.33 5.33 0 1 1 10.66 0A5.33 5.33 0 0 1 2.67 8ZM8 1.33a6.67 6.67 0 1 0 0 13.34A6.67 6.67 0 0 0 8 1.33ZM6.87 6.66v-.15c0-.19.06-.39.2-.54.14-.14.4-.3.93-.3.48 0 .82.23 1 .5.18.28.15.51.06.63a2.98 2.98 0 0 1-.59.6l-.36.3c-.37.37-.78.86-.78 1.63v.34h1.34v-.34c0-.23.1-.4.36-.66l.27-.24.24-.2c.19-.18.4-.38.59-.63.5-.69.39-1.55-.02-2.17A2.5 2.5 0 0 0 8 4.33c-.82 0-1.46.27-1.88.72-.42.43-.59.98-.59 1.45v.16h1.34Zm.47 3.67v1.34h1.33v-1.34H7.34Z" clip-rule="evenodd"/>'],"embed/question/circle":[12,12,'<path fill-rule="evenodd" clip-rule="evenodd" d="M6.199 9.156a.618.618 0 0 1-.404.162c-.162 0-.324-.08-.486-.162-.08-.161-.161-.323-.161-.485 0-.161.08-.323.161-.485.162-.08.324-.161.486-.161.161 0 .323.08.485.161.08.162.161.324.161.485 0 .162-.08.324-.242.485Zm1.617-4.042c-.08.242-.162.404-.324.485l-.727.728-.243.242c-.05 0-.069.031-.095.074a.451.451 0 0 1-.066.088v.162c-.081.08-.081.161-.081.323-.081.243-.243.404-.566.404-.081 0-.243-.08-.324-.161-.161-.081-.161-.243-.161-.405 0-.242 0-.485.08-.647.081-.161.162-.323.324-.485.08-.08.242-.242.485-.404l.404-.404c.081-.081.162-.162.162-.243.03-.062.062-.112.088-.154.043-.07.074-.12.074-.17 0-.242-.162-.484-.324-.646-.161-.08-.323-.162-.647-.162-.323 0-.566.081-.646.162a1.563 1.563 0 0 0-.405.728c-.08.323-.323.485-.566.485a.618.618 0 0 1-.404-.162c-.08-.08-.162-.242-.162-.323 0-.324.081-.566.243-.89.162-.242.485-.485.808-.647.324-.242.728-.323 1.132-.323.405 0 .809.08 1.132.243.324.161.566.404.728.646.162.243.243.566.243.89 0 .242 0 .404-.162.566Z" fill="#333"/><circle cx="6" cy="6" r="5.5" stroke="#333"/>'],"preview/inspect/color_absorber":[24,24,'<path fill-rule="evenodd" clip-rule="evenodd" d="M18.181 5.937c.671.667.627 1.802-.077 2.598L18 8.647l-2.182 2.167a2.347 2.347 0 01-.19.17l1.6 1.591a1.335 1.335 0 010 1.897 1.356 1.356 0 01-1.91 0l-1.113-1.106-5.346 5.311c-.553.55-1.243.894-1.932.983-.691.09-1.42-.077-1.95-.604-1.025-1.018-.701-2.66.236-3.702l.006-.007.133-.14 5.353-5.318L9.59 8.782a1.335 1.335 0 010-1.897 1.356 1.356 0 011.91 0l1.6 1.59.067-.078.105-.112 2.182-2.167c.803-.798 2.024-.88 2.727-.181zm-6.522 4.9l-5.34 5.305-.106.111c-.672.753-.598 1.542-.282 1.855.173.172.451.27.82.222.37-.048.792-.243 1.153-.601l5.345-5.311-1.59-1.581z" fill="#000" />'],"chatGPT/ai-switch-left":[14,14,'<path fill="url(#paint_linear_0)" fill-rule="evenodd" d="M3.16.36c.08-.22.4-.22.49 0l.62 1.58c.03.07.08.12.15.15L6 2.7c.22.1.22.4 0 .5l-1.58.62a.26.26 0 0 0-.15.15l-.62 1.58a.26.26 0 0 1-.5 0l-.62-1.58a.26.26 0 0 0-.15-.15L.8 3.2a.26.26 0 0 1 0-.49l1.58-.62a.26.26 0 0 0 .15-.15L3.16.36Zm6.8.96c.24-.03.47.16.49.41l.05.57a.46.46 0 0 1-.92.08l-.05-.57a.46.46 0 0 1 .42-.5Zm2.27 1.76a.46.46 0 0 0-.65-.65l-.4.4a.46.46 0 1 0 .65.65l.4-.4ZM2.3 12.8l5.45-5.46-.43-.43-5.46 5.45a.3.3 0 1 0 .44.44Zm5.67-6.54.43.43 1.7-1.7a.3.3 0 0 0-.43-.43l-1.7 1.7ZM9.02 3.9l-1.7 1.7-.65.65L1.2 11.7a1.23 1.23 0 0 0 1.74 1.74L8.4 7.99l.65-.65 1.7-1.7a1.23 1.23 0 1 0-1.73-1.73Zm3.92.32a.46.46 0 0 1-.08.91l-.57-.05a.46.46 0 0 1 .08-.91l.57.05ZM7.9 2.08c.2-.14.5-.1.64.12l.33.47a.46.46 0 0 1-.76.52l-.33-.46c-.14-.21-.1-.5.12-.65Zm4.4 3.87a.46.46 0 1 1-.54.76l-.46-.33a.46.46 0 0 1 .52-.76l.47.33Zm-1.83 2.92a.17.17 0 0 0-.32 0l-.33.86a.17.17 0 0 1-.1.1l-.86.33a.17.17 0 0 0 0 .31l.86.34c.05.02.08.05.1.1l.33.85c.06.14.26.14.31 0l.34-.86a.17.17 0 0 1 .1-.09l.86-.34a.17.17 0 0 0 0-.3l-.86-.35a.17.17 0 0 1-.1-.09l-.33-.86Z" clip-rule="evenodd"/><defs><linearGradient id="paint_linear_0" x1="-.02" x2="12.17" y1="1.49" y2="11.91" gradientUnits="userSpaceOnUse"><stop stop-color="#4AD2FF"/><stop offset=".47" stop-color="#1684FC"/><stop offset="1" stop-color="#6559FF"/></linearGradient><linearGradient id="paint_linear_1" x1="15.7" x2="-1.61" y1="-7.29" y2="-5.94" gradientUnits="userSpaceOnUse"><stop stop-color="#BA52FA"/><stop offset="1" stop-color="#7EBCFF"/></linearGradient></defs>'],"chatGPT/ai-switch-right":[15,14,'<path fill="url(#paint_linear_0)" fill-rule="evenodd" d="M1.17 4.3a2.5 2.5 0 0 1 2.5-2.5h7.66a2.5 2.5 0 0 1 2.5 2.5v4.74a2.5 2.5 0 0 1-2.5 2.5H6.74l-2.8 1.4a.5.5 0 0 1-.73-.44v-1a2.5 2.5 0 0 1-2.04-2.46V4.3Zm2.5-1.5c-.83 0-1.5.66-1.5 1.5v4.74c0 .83.67 1.5 1.5 1.5h.04c.27 0 .5.23.5.5v.65l2.2-1.1a.5.5 0 0 1 .22-.05h4.7c.83 0 1.5-.67 1.5-1.5V4.3c0-.83-.67-1.5-1.5-1.5H3.67ZM9.5 5.24c.28 0 .5.22.5.5v1.5a.5.5 0 0 1-1 0v-1.5c0-.28.22-.5.5-.5Zm-3.5.5a.5.5 0 0 0-1 0v1.5a.5.5 0 0 0 1 0v-1.5Z" clip-rule="evenodd"/><defs><linearGradient id="paint_linear_0" x1="16.16" x2="-1.02" y1="-4.37" y2="-2.74" gradientUnits="userSpaceOnUse"><stop stop-color="#642EFF"/><stop offset="1" stop-color="#1684FC"/><linearGradient id="paint_linear_1" x1="16.16" x2="-1.02" y1="-4.37" y2="-2.74" gradientUnits="userSpaceOnUse"><stop stop-color="#BA52FA"/><stop offset="1" stop-color="#7EBCFF"/></linearGradient></defs>'],"chatGPT/tip-loading":[20,20,'<path fill="url(#paint0_linear_758_23907)" fill-rule="evenodd" d="M10.73 2.73a.73.73 0 1 0-1.46 0v1.45a.73.73 0 0 0 1.46 0V2.73Zm3.54 1.34A.73.73 0 0 0 13 3.34l-.73 1.26a.73.73 0 0 0 1.26.73l.73-1.26ZM16.93 6c.2.35.08.8-.27 1l-1.26.72a.73.73 0 0 1-.72-1.26l1.25-.73c.35-.2.8-.08 1 .27Zm-1.11 3.27a.73.73 0 1 0 0 1.46h1.45a.73.73 0 1 0 0-1.46h-1.45Zm-1.36 3.28a.73.73 0 0 1 1-.27l1.25.73a.73.73 0 1 1-.72 1.26l-1.26-.73a.73.73 0 0 1-.27-1Zm-.92 2.13a.73.73 0 1 0-1.26.72l.73 1.26a.73.73 0 1 0 1.26-.73l-.73-1.25Zm-3.54.41c.4 0 .73.33.73.73v1.45a.73.73 0 1 1-1.46 0v-1.45c0-.4.33-.73.73-.73Zm-2.28.31a.73.73 0 0 0-1.26-.72l-.73 1.25a.73.73 0 1 0 1.26.73l.73-1.26ZM5.6 12.55c.2.34.08.79-.26.99l-1.26.73A.73.73 0 0 1 3.34 13l1.26-.73c.35-.2.79-.08 1 .27ZM2.73 9.27a.73.73 0 0 0 0 1.46h1.45a.73.73 0 1 0 0-1.46H2.73ZM3.07 6a.73.73 0 0 1 1-.27l1.26.73a.73.73 0 1 1-.73 1.26L3.34 7A.73.73 0 0 1 3.07 6ZM7 3.34a.73.73 0 1 0-1.26.73l.73 1.26a.73.73 0 1 0 1.26-.73L7 3.34Z" clip-rule="evenodd"/><defs><linearGradient id="paint0_linear_758_23907" x1="1.18" x2="15.63" y1="3.52" y2="16.73" gradientUnits="userSpaceOnUse"><stop stop-color="#4AD2FF"/><stop offset=".47" stop-color="#1684FC"/><stop offset="1" stop-color="#6559FF"/></linearGradient></defs>'],"chatGPT/create-comment-send":[20,20,'<path fill-rule="evenodd" clip-rule="evenodd" d="M18.2131 11.035C18.5022 10.8933 18.6838 10.5976 18.6795 10.2757C18.6752 9.95372 18.4858 9.66304 18.193 9.52905L2.83162 2.49873C2.492 2.3433 2.09044 2.43282 1.849 2.7178C1.60757 3.00277 1.58524 3.41359 1.79436 3.72305L6.2495 10.316L2.10701 17.2255C1.91714 17.5422 1.95832 17.9461 2.2082 18.218C2.45809 18.4898 2.85708 18.5648 3.18862 18.4022L18.2131 11.035ZM7.68133 9.45816L4.83745 5.24964L15.9005 10.3128L4.98608 15.6646L7.70784 11.1248H10.5729C11.0331 11.1248 11.4062 10.7517 11.4062 10.2915C11.4062 9.83126 11.0331 9.45816 10.5729 9.45816H7.68133Z" fill="#1685FC"/>'],"chatGPT/ai-point-icon":[16,16,'<circle cx="8" cy="8" r="7.31" fill="#1684FC" stroke="url(#paint0_linear_1039_38488)" stroke-width=".62"/><path fill="#fff" fill-rule="evenodd" d="M9.28 3.53a.2.2 0 0 0-.3-.17l-3.1 1.8a.2.2 0 0 0-.08.07l-1.05-.6a.2.2 0 0 0-.3.16v3.6l.03.1-1.05.6a.2.2 0 0 0 0 .34l3.1 1.8a.2.2 0 0 0 .1.03v1.21c0 .15.17.25.3.17l3.1-1.79a.2.2 0 0 0 .08-.07l1.05.6a.2.2 0 0 0 .3-.17V7.6a.2.2 0 0 0-.03-.1l1.06-.6a.2.2 0 0 0 0-.35l-3.1-1.8a.2.2 0 0 0-.1-.02l-.01-1.2ZM6.83 8.68a.2.2 0 0 1 .1.03l1.05.6a.2.2 0 0 1 .07-.06l1.06-.62a.2.2 0 0 1-.02-.1V7.32a.2.2 0 0 1-.1-.03l-1.05-.6a.2.2 0 0 1-.08.07l-1.05.6a.2.2 0 0 1 .02.1v1.22Z" clip-rule="evenodd"/><defs><linearGradient id="paint0_linear_1039_38488" x1="8" x2="8" y1="1" y2="15" gradientUnits="userSpaceOnUse"><stop stop-color="#8FC5FF"/><stop offset="1" stop-color="#0076F8"/></linearGradient></defs>'],"chatGPT/ai-point-icon-red":[16,16,'<circle cx="8" cy="8" r="7" fill="url(#paint0_linear_1370_37031)" stroke="url(#paint1_linear_1370_37031)" stroke-width=".5"/><path fill="#fff" fill-rule="evenodd" d="M9.28 3.53a.2.2 0 0 0-.3-.17l-3.1 1.8a.2.2 0 0 0-.08.07l-1.05-.6a.2.2 0 0 0-.3.16v3.6l.03.1-1.05.6a.2.2 0 0 0 0 .34l3.1 1.8a.2.2 0 0 0 .1.03v1.21c0 .15.17.25.3.17l3.1-1.79a.2.2 0 0 0 .08-.07l1.05.6a.2.2 0 0 0 .3-.17V7.6a.2.2 0 0 0-.03-.1l1.06-.6a.2.2 0 0 0 0-.35l-3.1-1.8a.2.2 0 0 0-.1-.02l-.01-1.2ZM6.83 8.68a.2.2 0 0 1 .1.03l1.05.6a.2.2 0 0 1 .07-.06l1.06-.62a.2.2 0 0 1-.02-.1V7.32a.2.2 0 0 1-.1-.03l-1.05-.6a.2.2 0 0 1-.08.07l-1.05.6a.2.2 0 0 1 .02.1v1.22Z" clip-rule="evenodd"/><defs><linearGradient id="paint0_linear_1370_37031" x1="17.57" x2="-1.46" y1="-6.7" y2="-5.1" gradientUnits="userSpaceOnUse"><stop stop-color="#EC4954"/><stop offset="1" stop-color="#FA52D6"/></linearGradient><linearGradient id="paint1_linear_1370_37031" x1="8" x2="8" y1="1" y2="15" gradientUnits="userSpaceOnUse"><stop stop-color="#FFBBCE"/><stop offset="1" stop-color="#F750B1"/></linearGradient></defs>'],"chatGPT/ai-cmd-help":[24,24,'<path fill="#000" fill-rule="evenodd" d="M11.56 5.4a6.6 6.6 0 1 0 .08 13.2 6.6 6.6 0 0 0-.08-13.2Zm.04 12.1a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11Zm.84-8.53a2.63 2.63 0 0 0-1.4-.05 1.9 1.9 0 0 0-1.3.96 2.13 2.13 0 0 0-.26 1.15v.1h1.11l.01-.04V11c.01-.23.03-.45.13-.66.1-.23.28-.38.52-.44.2-.05.4-.06.6-.02.25.04.46.17.56.42.16.37.12.73-.15 1.04-.08.1-.17.18-.26.27-.25.23-.5.47-.72.74-.1.13-.19.28-.24.45a2.59 2.59 0 0 0-.09.92H12.1v-.28c0-.18.04-.36.13-.51.08-.17.2-.3.34-.43l.6-.53c.12-.1.2-.22.28-.35.22-.42.26-.86.18-1.31a1.64 1.64 0 0 0-1.18-1.34ZM11.45 14c.21 0 .4.04.56.18.23.2.3.46.22.74a.67.67 0 0 1-.53.52c-.3.07-.57-.01-.77-.26a.67.67 0 0 1-.16-.45.72.72 0 0 1 .68-.73Z" clip-rule="evenodd"/>'],"chatGPT/ai-cmd-send":[24,24,'<path fill="#000" fill-rule="evenodd" d="M7.77 14.94h6.43a3.5 3.5 0 0 0 2.48-1.03 3.49 3.49 0 0 0 1.04-2.49V7.18a.43.43 0 0 0-.87 0v4.24a2.66 2.66 0 0 1-2.65 2.65H7.77l1.57-1.57a.43.43 0 1 0-.61-.61l-2.28 2.28a.43.43 0 0 0 0 .68l2.28 2.28a.43.43 0 0 0 .61 0 .43.43 0 0 0 0-.61l-1.57-1.58Z" clip-rule="evenodd"/>'],"chatGPT/ai-chat-send":[28,28,'<rect width="28" height="28" fill="#266FFF" rx="14"/><path fill="#fff" d="M14.53 7.47a.75.75 0 0 0-1.06 0L8.7 12.24a.75.75 0 0 0 1.06 1.06L14 9.06l4.24 4.24a.75.75 0 0 0 1.06-1.06zM13.25 20a.75.75 0 0 0 1.5 0zm0-12v12h1.5V8z"/>'],"chatGPT/ai-chat-stop":[28,28,'<rect width="28" height="28" fill="#266FFF" rx="14"/><rect width="10" height="10" x="9" y="9" fill="#fff" rx="2" class="center-rect"/>'],"chatGPT/ai-chat-avatar":[32,32,'<path fill="url(#paint0_linear_40002274_4788)" fill-rule="evenodd" d="M19.52 11.92 25.2 9v12.93c0 .59-.48 1.07-1.08 1.07z" clip-rule="evenodd"/><path fill="url(#paint1_linear_40002274_4788)" d="M10.73 9h7l-5 12.22A2.9 2.9 0 0 1 10.08 23H5z"/><path fill="url(#paint2_linear_40002274_4788)" d="M17.73 9h-7l5 12.22A2.9 2.9 0 0 0 18.37 23h5.08z"/><mask id="mask0_40002274_4788" width="14" height="14" x="10" y="9" maskUnits="userSpaceOnUse" style="mask-type:alpha"><path fill="url(#paint3_linear_40002274_4788)" d="M17.73 9h-7l5 12.22A2.9 2.9 0 0 0 18.37 23h5.09z"/></mask><g mask="url(#mask0_40002274_4788)"><path fill="url(#paint4_linear_40002274_4788)" d="M10.73 9h7L12 23H5z"/></g><defs><linearGradient id="paint0_linear_40002274_4788" x1="20.25" x2="22.08" y1="11.25" y2="22.5" gradientUnits="userSpaceOnUse"><stop stop-color="#42E9FF"/><stop offset="1" stop-color="#5AB2F7"/></linearGradient><linearGradient id="paint1_linear_40002274_4788" x1="13.48" x2="7.64" y1="8.58" y2="22.64" gradientUnits="userSpaceOnUse"><stop stop-color="#BBD3FF"/><stop offset="1" stop-color="#60EFFF"/></linearGradient><linearGradient id="paint2_linear_40002274_4788" x1="14.97" x2="21.6" y1="8.58" y2="23.23" gradientUnits="userSpaceOnUse"><stop stop-color="#7C3FFF"/><stop offset="1" stop-color="#C191FF"/></linearGradient><linearGradient id="paint3_linear_40002274_4788" x1="14.97" x2="21.6" y1="8.58" y2="23.23" gradientUnits="userSpaceOnUse"><stop stop-color="#7C3FFF"/><stop offset="1" stop-color="#C191FF"/></linearGradient><linearGradient id="paint4_linear_40002274_4788" x1="14.81" x2="12.17" y1="8.63" y2="18.19" gradientUnits="userSpaceOnUse"><stop stop-color="#5FA9FF"/><stop offset="1" stop-color="#38CFFF"/></linearGradient></defs>'],"chatGPT/ai-chat-expand-arrow":[24,24,'<path stroke="#555557" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m8 10 4 4 4-4" fill="rgba(0,0,0,0)"/>'],"chatGPT/ai-chat-copy":[24,24,'<path fill="#555557" d="M10.26 6h6.63A1.1 1.1 0 0 1 18 7.1v6.64a1.1 1.1 0 0 1-1.1 1.1h-6.64a1.1 1.1 0 0 1-1.1-1.1V7.1A1.1 1.1 0 0 1 10.26 6m0 .95a.16.16 0 0 0-.15.16v6.63a.2.2 0 0 0 .15.15h6.63a.16.16 0 0 0 .16-.15V7.1a.16.16 0 0 0-.16-.16zm3.63 8.84a.47.47 0 1 1 .95 0v1.1a1.1 1.1 0 0 1-1.1 1.11H7.1A1.1 1.1 0 0 1 6 16.9v-6.64a1.1 1.1 0 0 1 1.1-1.1h1.11a.47.47 0 0 1 0 .95h-1.1a.16.16 0 0 0-.16.15v6.63a.16.16 0 0 0 .16.16h6.63a.16.16 0 0 0 .15-.16z"/>'],"chatGPT/ai-panel-head-close":[24,24,'<path fill="#19191A" fill-rule="evenodd" d="M6.85 6.15a.5.5 0 1 0-.7.7L11.29 12l-5.14 5.15a.5.5 0 0 0 .7.7L12 12.71l5.15 5.14a.5.5 0 0 0 .7-.7L12.71 12l5.14-5.15a.5.5 0 0 0-.7-.7L12 11.29z" clip-rule="evenodd"/>'],"common/expand":[8,8,'<path fill-rule="evenodd" clip-rule="evenodd" d="M7.18198 2.64658C7.37724 2.84184 7.37724 3.15842 7.18198 3.35369L4.35355 6.18211C4.15829 6.37738 3.84171 6.37738 3.64645 6.18211L0.81802 3.35369C0.622757 3.15842 0.622757 2.84184 0.81802 2.64658C1.01328 2.45132 1.32986 2.45132 1.52513 2.64658L4 5.12145L6.47487 2.64658C6.67014 2.45132 6.98672 2.45132 7.18198 2.64658Z" fill="#333"/>']},...n.K};var o=e(51582),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<k.length&&!E;){const{centerY:U,rowH:O}=k[A],H=U+O*.5;$<H?(k[A].items.push(z),k[A].rowH=Math.max(K,O),E=!0):A++}if(!E){const{centerY:U,rowH:O}=k[A-1],H=U+O*.5;if(j===null){const Q=Math.round(z.boundingPoints.tl.y-H);t?j=Q>=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(;A<t.length;){if(t[A].items.length>1){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<G.length;J++)if(!Object.is(G[J],Z[J]))return!1;return!0}const g=(G=>(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<d;h++)y[h]=arguments[h];return w.current.apply(this,y)}),u.current}const c=r},29187:(Fe,ee,e)=>{"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<H.scrollWidth),(0,n.A)(this,"handleOpenFolder",O=>{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-H<U.bottom;return O?L&&N.right>O.left&&N.left<O.right:L}render(){const{className:U,from:O,marketTemplate:H,currentResources:Q,isShowSign:N,isShowFolderIcon:L,isFloatPreviewMkt:V,canChecked:M,onCheckedResource:D,checkedSet:W,onOpenPreviewModal:F,createTemplatesData:B}=this.props,{isDragging:Y}=this.state,X=(0,S.F)(B),{isVisible:G,isShowFloatPreviewPanel:Z}=this.state,{key:J,category:te,hotAttr:{name:he,type:de},projectMetaCid:Se}=H,xe=["project_basic","screen_list"].includes(te),be=xe?"wf320":void 0,ie=["widget-modal","template-modal"].includes(O!=null?O:""),oe=O==="widget-modal"?"mb-widget-modals":O==="template-modal"?"mb-template-modals":"",ue=w()(U,O,{active:(X==null?void 0:X.key)===J||Y});return V?(0,_.jsx)(I,{getImgSrc:this.getImgSrc,targetElement:this.$elem,children:(ve,re)=>(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<Nn.length;to++)io.push({text:""+(0,t.IV)(Nn[to].type),type:a.wv.vacant,vacantFrom:"func",valueType:Nn[to].type,funcInfo:Pn}),to!==Nn.length-1&&io.push({text:",",type:a.wv.unknown});return{name:"\u51FD\u6570",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},{text:"(",type:a.wv.operator},...io,{text:")",type:a.wv.operator}].slice(Kt),returnType:Yn,funcInfo:Pn}})},E=Ve=>{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<go[1]&&(0,a.M4)(to,a.wv.operator,a.wv.func,a.wv.boolean,a.wv.number,a.wv.string,a.wv.number,a.wv.globalVar)){if((0,a.M4)(to,a.wv.operator)){var On,Cn,Je,vn;const Dt=(On=(Cn=Fn==null||(Je=Fn.entity.data)==null?void 0:Je.varDataType)!=null?Cn:Fn==null?void 0:Fn.entity.type)!=null?On:ut;return(vn=_e[Dt]||_e[ut])==null?void 0:vn.filter(Qt=>{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<Lt[0]&&(Lt[0]=Gt),Wt=_n.slice(...Lt)}wt={...(0,a.gn)(Wt),replaceRange:Lt,defaultSelected:nt?Jt:!Ln},$n.push(wt)}if(Jt&&!gt&&Object.keys(_e).forEach(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),Jt<Oe.length-1?Jt++:Jt=0),Jn(Oe[Jt]),Je.current=()=>Lt(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<Jn.length-1){Oe(no+1);const Re=Jn[no+1];Fn(Jn[no+1]),Cn.current.value=Re}},_o=Re=>{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]&&wn<mn[1]?(0,o.K6)(Ut):Qn.isCollapsed()?"SpaceInsert":"RemoveRange"+Ut.code}if(Ut.code==="Backspace"||Ut.code==="Delete"){var an;if(!Qn.isCollapsed())return"RemoveRange"+Ut.code;const wn=Ut.code==="Backspace",{focusOffset:xn}=Qn,[mn,Sn,Tn]=(0,a.Lc)(yt,xn),un=(Sn==null?void 0:Sn.range)&&xn>Sn.range[0]&&xn<Sn.range[1],An=!un&&(0,a.OO)(Sn==null?void 0:Sn.entity)&&((an=no.current)==null?void 0:an.querySelector(".expression-cell."+bt+"[data-cid='"+Sn.key+"'")),oo=wn?mn:Sn;if(xn===yt.getCurrentContent().getPlainText().length&&wn&&(mn==null?void 0:mn.entity.type)===a.wv.space)return"ArrowLeft";if(xn===yt.getCurrentContent().getPlainText().length-1&&!wn&&(Sn==null?void 0:Sn.entity.type)===a.wv.space)return"PreventKey";if(!un&&!An&&(0,a.M4)(oo==null?void 0:oo.entity,a.wv.space)){const{range:No}=oo,[Vo,,Ko]=(0,a.Lc)(yt,No[0]);if(wn&&((0,a.OO)(Vo==null?void 0:Vo.entity)&&!(0,a.M4)(Ko==null?void 0:Ko.entity,a.wv.space)||(0,a.M4)(Vo==null?void 0:Vo.entity,a.wv.operator)&&!(0,a.M4)(Ko==null?void 0:Ko.entity,a.wv.space,a.wv.operator)||(0,a.M4)(Ko==null?void 0:Ko.entity,a.wv.operator)&&!(0,a.M4)(Vo==null?void 0:Vo.entity,a.wv.space,a.wv.operator)))return Ut.code==="Backspace"?"ArrowLeft":"ArrowRight"}if(!wn&&(0,a.M4)(oo==null?void 0:oo.entity,a.wv.space)&&(0,a.OO)(Tn==null?void 0:Tn.entity)){const No=yt.getCurrentContent().getPlainText();return en(yt,Qn.merge({anchorOffset:Math.max(Tn.range[0]-1,0),focusOffset:Math.min(Tn.range[1]+1,No.length)})),"PreventKey"}if(oo){const No=yt.getCurrentContent().getPlainText(),Vo=(0,a._M)(oo.entity)?oo.range:wn?[xn-1,xn]:[xn,xn+1],Ko=No.slice(...Vo),zo=No.replace(Ko,"");if(zo.length>0&&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("<meta data-mb-text-flag")){const ys=(0,zt.A)({html:an,componentType:Xt.a.TEXT,isExpr:!0});wn=o.z6.createFromText(o.z6.createFromBlockArray(ys.contentBlocks,ys.entityMap).getPlainText())}else{const ys=Ut.replace(/\n/g," ");wn=o.z6.createFromText(ys)}const xn=(0,a.q9)(yt),{focusOffset:mn,anchorOffset:Sn}=xn,Tn=yt.getCurrentContent(),un=Tn.getPlainText(),[An,oo]=mn<Sn?[mn,Sn]:[Sn,mn],Vo=(0,a.bd)({editorState:o.$t.createWithContent(wn,le(to)),p2sdkStore:Jn,isInit:!0,noStartSpace:un[An-1]===" ",noEndSpace:un[oo]===" ",variables:vn}).getCurrentContent().getBlockMap(),Ko=o.e6.replaceWithFragment(Tn,xn,Vo),zo=Ko.getSelectionAfter();let xs=o.$t.push(yt,Ko,"insert-fragment");return xs=(0,a.bd)({editorState:o.$t.forceSelection(xs,zo),variables:vn,p2sdkStore:Jn}),Lt(xs),"handled"},zn=Ut=>{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(An<No||An>Vo)return;const Ko=no.current.querySelectorAll(".expression-cell");if(!Ko.length)return;const zo=Ko[0],xs=Ko[Ko.length-1],{left:ys,bottom:ss}=zo.getBoundingClientRect();if(un<ys&&An<=ss){hs((oo?"Shift":"")+"Home");return}const{right:ce,top:Pt}=xs.getBoundingClientRect();un>ce&&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.clientHeight<No.scrollHeight){if(!oo)return;const{top:ce,bottom:Pt}=oo,{top:Mt,bottom:je}=No.getBoundingClientRect(),vt=26;let kt=Pt-je;if(kt>0){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<qe;st++)et[st]=arguments[st];const at=et[0];O&&at!==(le==null?void 0:le.varData)?ke==null||ke(at,""):ke==null||ke(at,O),Ae(!1)}},pt=qe=>{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&&t<I.right&&(_>0&&_<I.top+20?(k=!0,j=-10):_>I.bottom-20&&_<window.innerHeight&&(k=!0,j=10)),k?this.createAutoScrollTask(j):this.destroyAutoScrollTask()}),(0,n.A)(this,"createAutoScrollTask",t=>{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(j<S.left||j>S.right||z<S.top-20||z>S.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&&$<Q&&A>=H&&A<N})||l;this.setState({x:j,y:z,matchData:E})}this.checkAutoScroll(j,z)},onDrop:()=>{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><p>/gm,"\n").replace(/<(?:.)*?>/gm,""))}},u=i=>{let f,p;for(let s=0;s<i.length;s++){const l=i[s];if(s===0)f=w(l.hotAttr),p=f;else{const C=w(l.hotAttr);if(f!==C){p="";break}}}return p},d=i=>{let f=i;return y.forEach(p=>{let[s,l]=p;return f=f.replace(new RegExp(l,"g"),s)}),f},y=[["","&nbsp;"],[">","&gt;"],["<","&lt;"],["&","&amp;"]],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"))&&lt();ft.nodeName!=="BODY";){var Nt;if(ft=ft.parentElement,!ft)return;if((Nt=ft.classList)!=null&&Nt.contains("typeface2-btn")){ft!==pe.current&&lt();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'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"><defs><linearGradient id="1" x1="0" x2="1" y1="0" y2="0" gradientTransform="'+g(F)+'">'+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'<stop stop-color="'+G+'" stop-opacity="'+X+'" offset="'+Z+'"></stop>'}).join("")+'</linearGradient></defs><rect width="100%" height="100%" fill="url(#1)"></rect></svg>'}function I(M){const{colors:D,stops:W}=M,F=Transform.parse(M);return'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"><defs><radialGradient id="1" cx="0" cy="0" r="1" gradientTransform="'+g(F)+'">'+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'<stop stop-color="'+G+'" stop-opacity="'+X+'" offset="'+Z+'"></stop>'}).join("")+'</radialGradient></defs><rect width="100%" height="100%" fill="url(#1)"></rect></svg>'}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?'<defs><linearGradient id="'+D+'" x1="0" x2="100%" y1="0" y2="0" gradientTransform="'+X+'" gradientUnits="userSpaceOnUse">'+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'<stop stop-color="'+J+'" stop-opacity="'+Z+'" offset="'+te+'"></stop>'}).join("")+"</linearGradient></defs>":M.type===PaintType.RadialGradient?'<defs><radialGradient id="'+D+'" cx="0" cy="0" r="100%" gradientTransform="'+X+'" gradientUnits="userSpaceOnUse">'+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'<stop stop-color="'+J+'" stop-opacity="'+Z+'" offset="'+te+'"></stop>'}).join("")+"</radialGradient></defs>":""}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<Se&&!xe;be++){const ie=Z.top.positionArr[be];Z.top.map.get(ie).forEach(ue=>{const ve=he[ue];!(ve.right<J.left||ve.left>J.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.right<J.left||ue.left>J.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.bottom<J.top||ue.top>J.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<Se&&!xe;be++){const ie=Z.left.positionArr[be];Z.left.map.get(ie).forEach(ue=>{const ve=he[ue];!(ve.bottom<J.top||ve.top>J.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)return-1;let te=0,he=J-1,de=J-1;for(;te<he;){let Se=(te+he)/2;if(!Number.isInteger(Se)){const xe=Math.ceil(Se),be=Math.floor(Se);G[be]>=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<he;){let Se=(te+he)/2;if(!Number.isInteger(Se)){const xe=Math.ceil(Se),be=Math.floor(Se);G[be]>=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<Math.round(he/te)+1&&!xe;ie++)de.onV.forEach((oe,ue)=>{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<Math.round(he/te)+1&&!be;ie++)de.onH.forEach((oe,ue)=>{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<Z&&!ie;oe++){const ue=Math.pow(-1,oe)*oe/2>>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<Math.round(he/te)+1&&!(be&&ie);oe++){const ue=Math.pow(-1,oe)*oe/2>>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&&lt({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&&lt.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<X.scrollWidth,F=Y=>{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<v.scrollWidth)}render(){const{showSearch:C,title:v,iconName:a,resources:P,onSearch:b,from:g}=this.props,{isSearching:S}=this.state;return g==="template-modal"?(0,p.jsx)(i,{className:g,children:(0,p.jsxs)("div",{className:"back",onClick:this.handleBack,children:[(0,p.jsx)(w.A,{name:a||"design/arrow/right",className:"arrow-left"}),S?null:(0,p.jsx)(u.A,{content:v,direction:"down",isShowTipsByTarget:this.onShowTipsByTarget,children:(0,p.jsx)("div",{className:"template-title",children:v})}),P&&(0,p.jsx)(y.W,{resources:P})]})}):(0,p.jsxs)(i,{className:o()("resources-details-search",{isSearching:S}),children:[(0,p.jsxs)("div",{className:"back",onClick:this.handleBack,children:[(0,p.jsx)(w.A,{name:a||"design/arrow/right",className:"arrow-left"}),S?null:(0,p.jsx)(u.A,{content:v,direction:"down",isShowTipsByTarget:this.onShowTipsByTarget,children:(0,p.jsx)("div",{className:"template-title",children:v})}),P&&(0,p.jsx)(y.W,{resources:P})]}),C&&(0,p.jsx)("div",{className:"right",children:S?(0,p.jsx)(d.A,{ref:this.handleCreateRef,className:"search-bar is-searching",value:"",placeholder:I18N.ScreenPanel.keyword_search,onSearch:b}):(0,p.jsx)(w.A,{className:"search-icon",name:"design/scale_search",onClick:this.handleToggle})})]})}}(0,n.A)(s,"defaultProps",{showSearch:!0})},44518:(Fe,ee,e)=>{"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<G.length;J+=4)Z.push([G[J],G[J+1],G[J+2],G[J+3]]);return Z}},N=(Y,X)=>{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<xe;Se++){const be=document.getElementById($.current+"-"+(Se+1));if(be){const[ie,oe,ue,ve]=J[Se],re=o({r:ie,g:oe,b:ue,a:ve/255}),fe=Math.ceil((Se+1)/y),we=(Se+1)%y;fe===te&&we===he&&de&&(de.textContent=re,j=re),be.style.backgroundColor=re}}}}},L=(0,n.useCallback)(Y=>{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-I<L&&Q>N?E(!0):E(!1)}else if(_==="x"){const{left:H,right:Q}=O.getBoundingClientRect(),{left:N,right:L}=t;H-I<L&&Q>N?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;P<a.length;P++){let b=!1;const g=a.charCodeAt(P);if(P===0?b=g!==36&&(0,n.o6)(g):b=(0,n.WP)(g),!b)return!1}return!0},y=function(a,P){return P===void 0&&(P=sdkStore.findAllTypeUnder("B@var","rResVar")),P.some(b=>b.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<S.top&&(b.scrollIntoView(!1),g=b.getBoundingClientRect());const _=s(a.hotAttr.varDataType);let I=g.top;const k=window.innerHeight-I-_-8;return k<0&&(I=I+k),{top:I,left:S.left-f}}return p},C=(a,P)=>{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="<DBG",S="<r-cur",t=">r-skt",_=">cur",I="<cur",k=">save",j="<save"},47617:(Fe,ee,e)=>{"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<we.scrollWidth}),(0,o.A)(this,"handleClose",()=>{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<m;T++)x.push(T);return x},Fa=(m,x,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?"":"<p><a href=/hc/articles/28#%E8%A7%86%E9%A2%91%E7%BB%84%E4%BB%B6 target=_blank>"+I18N.SettingPanel.tip_help+"</a></p>",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&&dt<jt&&!Es;let Si;sn===A.x.WTree?Si=es:Si=es&&!bi;const ea=!!ge||vi||T===qo.path;let _i=!bi;sn===A.x.WTree||sn===A.x.WDropMenu?_i=!0:_i=!bi;const Qs=dt===1?!ds:R.children.length>Ot,{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("<style>")}),cid:x,path:Us.path,viewBox:Us.viewBox}):null})}),$s?$s(q,dt,T,ii,this.state.isFocus):null,ps&&dt===2?(0,t.jsx)("div",{ref:this.setInputElementRef,className:"itemInput",onFocus:this.handleContentEditableDivFocus,onBlur:this.handleContentEditableDivBlur,onKeyDown:this.handleBlurInput,contentEditable:!0,onPaste:this.handlePaste,suppressContentEditableWarning:!0,children:Ke}):(0,t.jsx)("input",{ref:this.setInputElementRef,value:Ke,type:"text",className:p()("itemInput",{hasPadding:Hs}),onFocus:this.handleFocus,onChange:this.handleChangeName,onKeyDown:this.handleBlurInput,onBlur:this.handleBlur}),(0,t.jsxs)("div",{className:"actions",children:[os&&(0,t.jsx)(a.A,{isShowTips:os&&dt<jt&&Es,content:dt<jt?I18N.SettingPanel.max_n_of_options_supported.replace("{n}",fs):I18N.SettingPanel.max_n_of_options_level_supported.replace("{n}",jt),direction:"down",style:{width:"max-content"},children:(0,t.jsx)("span",{className:p()("add",{disabled:!Ci,hide:Ot>=1&&dt!==1}),onClick:Ci?()=>Wn(q,dt,T):void 0,children:(0,t.jsx)(b.C,{name:"common/add@10"})})}),(0,t.jsx)(a.A,{isShowTips:!Qs,content:I18N.SettingPanel.minimum_n_of_options_required.replace("{n}",dt===1&&Ps||1),direction:"down",children:(0,t.jsx)("span",{className:p()("remove",{disabled:!Qs}),onClick:Qs?()=>this.handleRemove(q):void 0,children:(0,t.jsx)(b.C,{name:"common/subtract@10"})})})]}),!qi&&(0,t.jsxs)("div",{className:p()("operations",{show:ea,noIncreaseAction:!os}),children:[_i&&(0,t.jsx)("span",{className:p()("link",{show:_a,only:!es,active:T===qo.path}),onClick:Js=>this.handleOpenLinkPanel(Js),children:(0,t.jsx)(b.C,{name:"design/dragMenu/link"})}),Si&&(0,t.jsx)(a.A,{content:I18N.SettingPanel.defaultValue,direction:"down",distance:10,children:(0,t.jsx)("span",{className:p()("selected",{show:!!vi}),onClick:this.handleSetSelectedValue})})]})]})]}),Ts&&(0,t.jsx)(er,{children:se.map((Js,Td)=>{var Ad;return(0,t.jsx)(ya,{cid:Js==null||(Ad=Js.data)==null?void 0:Ad.cid,path:T+"-"+Td,parent:q,node:Js,level:dt+1,maxLevel:jt,minDepth:Ot,isShowIncreaseAction:os,isDisabledIncrease:Es,isDisabledDecrease:ds,maxOptionLength:fs,isExpandEditableContentOnEditing:ps,isShowExpander:is,isShowSelectedOperation:es,clickableIconNode:ns,clickableLinkNode:qo,innerLinks:qt,type:sn,onAddChildItems:Wn,onRemoveChildItems:kn,onUpdate:lo,onMouseDown:Wo,onOpenLinkPanel:Zo,onSetSelectedValue:Yo,onClickableIconPanel:Ss,hasMissFontHi:ii,optionDataSelected:ai,widgetVersion:Ys,dispatch:ti,itemContentInseter:$s},""+Td)})})]})}}var Ul=e(30542),ei=e(69986),ne=e(98407),ae=e(75661),ye=e(58320);const Le=(0,s.Ay)(ye.H).withConfig({displayName:"styles__StyledOptionRemoveModal",componentId:"sc-dlt1ke-0"})([".mainContent{display:flex;flex-direction:column;.restore-tip{font-size:14px;color:",";margin-top:5px;}}"],m=>m.theme.color_text_L2);class Me extends h.PureComponent{render(){const{isOpen:x,onClose:T,onConfirm:R}=this.props;return x&&(0,t.jsx)(Le,{isOpen:x,onClose:T,type:"alert",className:"option-action-modal top-modal",onCancel:T,canConfirm:!0,onConfirm:R,title:"\u9009\u9879\u4E2D\u5B58\u5728\u5B50\u9009\u9879",mask:!1,canClose:!1,confirmBtnProps:{type:"danger"},children:(0,t.jsxs)("div",{className:"mainContent",children:[(0,t.jsx)("span",{children:"\u5220\u9664\u540E\u5C06\u8FDE\u5E26\u5B50\u9009\u9879\u4E00\u8D77\u5220\u9664"}),(0,t.jsx)("span",{className:"restore-tip",children:"\u53EF\u901A\u8FC7\u64A4\u9500\u64CD\u4F5C\u6062\u590D"})]})})}}var ze=e(4914),_t=e(24229);const It={1:"\u4E00",2:"\u4E8C",3:"\u4E09",4:"\u56DB",5:"\u4E94"};class Et extends h.PureComponent{constructor(x){super(x),(0,i.A)(this,"setElementRef",T=>this.input=T),(0,i.A)(this,"handleUpdate",T=>{let{data:R,path:q,parent:se}=T;const{handleChange:ge,optionData:Ne}=this.props,Ke=di()(Ne),it=q.split("-"),dt=it[it.length-1];if(!se)Ke[dt].data=R;else{const jt=Ot=>{Ot.data=R};(0,ei.PM)({newOptionData:Ke,pathArr:it,onUpdate:jt})}ge(Ke,"optionData",q)}),(0,i.A)(this,"clearSelect",()=>{this.setState({isShowLinkPanel:!1,clickableLinkNode:{}}),this.props.dispatch({type:"settings:update:state",payload:{isShowLinkPanel:!1}}),this.props.dispatch(Vi.R7.command.clearAllCommand({}))}),(0,i.A)(this,"handleAddChildItems",async(T,R,q)=>{const{handleChange:se,optionData:ge,navigationMenuType:Ne,widgetVersion:Ke,optionDataDesignUnExpanded:it,optionDataSelected:dt}=this.props,jt=T.children.length,Ot=!jt&&T.data.selected;let qt=T.data.selected;const sn=di()(ge),Wn=Ne!==void 0?Ne===ze.ue.navigationMenu:!0;Ot&&(qt=!1);const kn={...T.data,selected:qt,expanded:!0,designExpanded:Wn},lo={data:{name:this.props.getDefaultDescentContent(It[R+1],jt+1),selected:Ot,designExpanded:Wn,expanded:!0,linkCids:""},children:[]};if(Ke===2){const Zo=(0,_t.cF)("wod");if(lo.data.cid=Zo,dt.includes(T.data.cid)){const Yo=[...dt.filter(is=>is!==T.data.cid),Zo];se(Yo,"optionDataSelected")}}const Wo=q.split("-");if(Wo.length===1)sn[Wo[0]]={data:kn,children:[...T.children,lo]};else{const Zo=Yo=>{Yo.children.push(lo),Yo.data=kn};(0,ei.PM)({newOptionData:sn,pathArr:Wo,onUpdate:Zo})}se(sn,"optionData"),this.clearSelect()}),(0,i.A)(this,"handleRemoveChildItems",T=>{let{parent:R,path:q}=T;const{optionData:se,handleChange:ge,widgetVersion:Ne,optionDataSelected:Ke,optionDataDesignUnExpanded:it}=this.props,dt=q.split("-"),jt=dt[dt.length-1],Ot=di()(se),qt=R||se[jt];if(!R)Ot.splice(jt,1);else{const sn=Wn=>{Wn.children.splice(jt,1)};(0,ei.u2)({newOptionData:Ot,pathArr:dt,onUpdate:sn})}if(Ne===2){let sn=Ke,Wn=it;qt&&(Wn.includes(qt.data.cid)&&(Wn=Wn.filter(kn=>kn!==qt.data.cid)),(0,ei.sV)(qt.children,kn=>{Ke.includes(kn.data.cid)&&(sn=sn.filter(lo=>lo!==kn.data.cid)),it.includes(kn.data.cid)&&(Wn=Wn.filter(lo=>lo!==kn.data.cid))}),Ke!==sn&&ge(sn,"optionDataSelected"),it!==Wn&&ge(Wn,"optionDataDesignUnExpanded"))}ge(Ot,"optionData"),this.clearSelect()}),(0,i.A)(this,"handleMouseDown",(T,R,q,se,ge,Ne)=>{if(T.stopPropagation(),se.querySelector(".actions").contains(T.target)){this.setState({dragAndDropState:null});return}const{optionData:Ke}=this.props,{top:it,left:dt}=se.getBoundingClientRect(),jt=T.clientX-dt,Ot=T.clientY-it,qt={node:{...R,path:Ne},$element:se,offsetX:jt,offsetY:Ot,...(0,ei.qL)({...R,path:Ne},Ke,q,ge)};this.setState({dragAndDropState:qt})}),(0,i.A)(this,"handleDropState",T=>{let{cid:R,type:q,parent:se,isValid:ge}=T;const{dragAndDropState:{node:Ne}}=this.state;if(this.setState({dragAndDropState:null}),!R||!ge)return;const{optionData:Ke,handleChange:it}=this.props,dt=di()(Ke),jt=R.split("-"),Ot=Number(jt[jt.length-1]),qt=Ne.path.split("-"),sn=Number(qt[qt.length-1]),Wn=se?se.children[sn]:Ke[sn],kn=q==="prevSibling"?Ot:q==="nextSibling"?Ot+1:"error";if(kn==="error")throw new Error("drag type error");if(!se)dt.splice(kn,0,Wn);else{const Wo=Zo=>{Zo.children.splice(kn,0,Wn)};(0,ei.u2)({newOptionData:dt,pathArr:R.split("-"),onUpdate:Wo})}const lo=kn>sn?sn:sn+1;if(!se)dt.splice(lo,1);else{const Wo=Zo=>{Zo.children.splice(lo,1)};(0,ei.u2)({newOptionData:dt,pathArr:R.split("-"),onUpdate:Wo})}it(dt,"optionData")}),(0,i.A)(this,"getContainerElement",()=>document.querySelector(".widget-settings")),(0,i.A)(this,"handleClickableIconPanel",async T=>{let{y:R,node:q,path:se}=T;const{clickableIconNode:ge}=this.state,Ne=ge.path!==se;await this.handleToggleOpenIconPanel(Ne,{y:R,node:q,path:se})}),(0,i.A)(this,"handleToggleOpenIconPanel",(T,R)=>{let{y:q,node:se,path:ge}=R;const{widgetName:Ne}=this.props,Ke=(0,Xi.Lm)(T)?T:!this.state.isShowIconPanel;this.setState({isShowIconPanel:Ke,clickableIconNode:T?{...se,path:ge,y:q}:{}}),Ke&&this.props.dispatch({type:"entry:toggle:icon-select-popup",payload:{source:ae.Z.navigationMenuSettingPanel}}),this.props.dispatch({type:"entry:search-panel:clear:state",payload:{from:$i.Z.iconSelectPopup}}),Ke&&Da({source:Ne})}),(0,i.A)(this,"handleSetCurrentNodeIcon",T=>{const{path:R,view_box:q}=T,{optionData:se,handleChange:ge}=this.props,{clickableIconNode:Ne}=this.state,Ke=di()(se),it=Ne.path.split("-"),dt=jt=>{jt.data={...jt.data,icon:{path:R,viewBox:q}}};it.length===1?dt(Ke[it[0]]):(0,ei.PM)({newOptionData:Ke,pathArr:it,onUpdate:dt}),ge(Ke,"optionData")}),(0,i.A)(this,"handleSetSelectedValue",T=>{let{node:R,path:q}=T;const{optionData:se,handleChange:ge,optionMultiSelectable:Ne,widgetVersion:Ke,optionDataSelected:it}=this.props;if(Ke===2){(0,Ei.hZ)({node:R,optionDataSelected:it,onUpdate:qt=>ge(qt.optionDataSelected,"optionDataSelected")});return}const dt=di()(se);Ne||(0,ei.sV)(dt,qt=>{qt.data.selected&&(qt.data={...qt.data,selected:!1})});const jt={...R.data,selected:!R.data.selected},Ot=q.split("-");if(Ot.length===1)dt[q].data=jt;else{const qt=sn=>{sn.data=jt};(0,ei.PM)({newOptionData:dt,pathArr:Ot,onUpdate:qt})}ge(dt,"optionData")}),(0,i.A)(this,"handleToggleOpenLinkPanel",(T,R)=>{let{node:q,path:se,y:ge,e:Ne}=R;const Ke=(0,Xi.Lm)(T)?T:!this.state.isShowLinkPanel;this.setState({isShowLinkPanel:Ke,clickableLinkNode:T?{...q,path:se,y:ge}:{}}),this.props.dispatch({type:"settings:update:state",payload:{isShowLinkPanel:Ke}}),Ke&&(this.props.dispatch({type:"settings:set:select:option",payload:{option:{node:q,path:se}}}),this.props.dispatch({type:"entry:set:option:item"}),this.props.dispatch(Vi.R7.command.subItaSelectCommand({type:"optionData",node:q,path:se})))}),(0,i.A)(this,"handleOpenLinkPanel",async T=>{const{y:R,path:q,node:se,e:ge}=T,{clickableLinkNode:Ne}=this.state,Ke=Ne.path!==q;this.handleToggleOpenLinkPanel(Ke,{node:se,path:q,y:R,e:ge})}),(0,i.A)(this,"handleUpdateLinkSuccess",()=>this.setState({isUpdateLinkSuccess:!0})),(0,i.A)(this,"handleCloseRemoveModal",()=>this.props.dispatch({type:"modal:update:state",payload:{optionRemoveModal:{isOpen:!1}}})),this.state={dragAndDropState:null,isShowIconPanel:!1,isShowLinkPanel:!1,clickableIconNode:{y:0},clickableLinkNode:{y:0}}}render(){const{cid:x,optionData:T,minOptionLength:R,maxOptionLength:q,totalOptionLength:se,isShowIncreaseAction:ge,isShowExpander:Ne,isShowSelectedOperation:Ke,isExpandEditableContentOnEditing:it,maxLevel:dt,optionRemoveModal:jt,minDepth:Ot,innerLinks:qt,widgetName:sn,optionMultiSelectable:Wn,dispatch:kn,hasMissFontHi:lo,optionDataSelected:Wo,widgetVersion:Zo,itemContentInseter:Yo}=this.props,{dragAndDropState:is,isShowIconPanel:os,clickableIconNode:es,isShowLinkPanel:ns,clickableLinkNode:qo}=this.state,{$element:ds,matchDataList:Es,containerRect:Ps,rectQueryMap:fs,offsetX:ps,offsetY:Ss}=is||{},ii=T.length<=R,ai=se>=q;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(er,{className:"setting-drag-menu-container",children:[T.map((Ys,ti)=>{var $s;return(0,t.jsx)(ya,{cid:(Ys==null||($s=Ys.data)==null?void 0:$s.cid)||x+"-"+ti,path:""+ti,parent:null,node:Ys,level:1,maxLevel:dt,minDepth:Ot,isShowIncreaseAction:ge,isShowExpander:Ne,isShowSelectedOperation:Ke,isDisabledDecrease:ii,minTopLevelOptionLength:R,isDisabledIncrease:ai,maxOptionLength:q,isExpandEditableContentOnEditing:it,clickableIconNode:os?es:{},clickableLinkNode:ns?qo:{},innerLinks:qt,onAddChildItems:this.handleAddChildItems,onRemoveChildItems:this.handleRemoveChildItems,onUpdate:this.handleUpdate,onMouseDown:this.handleMouseDown,onOpenLinkPanel:this.handleOpenLinkPanel,onSetSelectedValue:this.handleSetSelectedValue,onClickableIconPanel:this.handleClickableIconPanel,optionMultiSelectable:Wn,type:sn,hasMissFontHi:lo,optionDataSelected:Wo,widgetVersion:Zo,dispatch:kn,itemContentInseter:Yo},""+ti)}),is&&(0,t.jsx)(Ul.A,{draggingElement:ds,getContainerElement:this.getContainerElement,matchDataList:Es,containerRect:Ps,rectQueryMap:fs,offsetX:ps,offsetY:Ss,onDrop:this.handleDropState})]}),ns&&(0,t.jsx)(ja,{onClose:()=>this.handleToggleOpenLinkPanel(!1,{}),anchorMeta:qo,fromType:"optionData"}),os&&(0,t.jsx)(ne.A,{emitBaseRect:{top:es.y},onClose:()=>this.handleToggleOpenIconPanel(!1,{}),onSetCurrentNodeIcon:this.handleSetCurrentNodeIcon}),jt.isOpen&&(0,t.jsx)(Me,{...jt,onClose:this.handleCloseRemoveModal,onConfirm:()=>this.handleRemoveChildItems(jt.data)})]})}}(0,i.A)(Et,"defaultProps",{maxLevel:5,isShowIncreaseAction:!0,isShowExpander:!0,isShowSelectedOperation:!0,isShowLinkOperation:!0,isDisabledDecrease:!1});var Vt=e(50353);function on(m){switch(m){case Vt.Z6.segmentedControl:case Vt.Z6.tabs:case Vt.Z6.mobileTabBars:case Vt.Z6.selectionControl:return!1;default:return!0}}function tn(m){switch(m){case Vt.Z6.segmentedControl:case Vt.Z6.tabs:case Vt.Z6.selectionControl:case Vt.Z6.mobileTabBars:return!1;default:return!0}}function ln(m){switch(m){case Vt.Z6.collapse:return!1;default:return!0}}function bn(m){switch(m){case Vt.Z6.dropMenu:return!0;case Vt.Z6.collapse:return!1;default:return!0}}function Zn(m){switch(m){case Vt.Z6.collapse:return 2;case Vt.Z6.segmentedControl:case Vt.Z6.selectionControl:return 1;default:return 5}}function so(m){switch(m){case Vt.Z6.navigationMenu:case Vt.Z6.mobileTabBars:return!0;default:return!1}}function eo(m){switch(m){case Vt.Z6.selectionControl:case Vt.Z6.dropMenu:case A.x.WNavigationMenu:case A.x.WCollapse:case A.x.WTree:return 1;default:return 2}}function Co(m){switch(m){case A.x.WTree:case Vt.Z6.navigationMenu:return 500;case Vt.Z6.mobileTabBars:return 20;default:return 50}}function ko(m){switch(m){case Vt.Z6.collapse:return 1;default:return-1/0}}function Ro(m){switch(m){case A.x.WDropMenu:case A.x.WTree:case Vt.Z6.navigationMenu:return I18N.SettingPanel.new_option_first_prev_name.nav;case Vt.Z6.tabs:case Vt.Z6.mobileTabBars:return I18N.SettingPanel.new_option_first_prev_name.tab;case Vt.Z6.collapse:return I18N.SettingPanel.new_option_first_prev_name.collapse;default:return I18N.SettingPanel.new_option_first_prev_name.default}}function Bo(m){switch(m){case A.x.WTree:case A.x.WDropMenu:case A.x.WNavigationMenu:return(x,T)=>I18N.SettingPanel.option_descent_default_content.nav.replace(/%level/,x).replace(/%childCount/,T);case Vt.Z6.collapse:return()=>I18N.SettingPanel.option_descent_default_content.collapse;default:return()=>""}}function Fo(m){switch(m){case Vt.Z6.collapse:return!0;default:return!1}}const Ho=s.Ay.section.withConfig({displayName:"styles__StyledOptionSettings",componentId:"sc-1btj6qh-0"})(["width:240px;padding:0 10px 8px 0;position:relative;.itemContent{.is-icon-button{position:absolute;left:-9px;top:-9px;.toolbar-dropdown-opener.is-open{height:34px;}&.is-active + .itemInput{border-color:",";}}&:hover .icon-bind{display:block;}.var-binded{position:absolute;top:0;left:4px;width:calc(100% - 54px);padding-right:34px;.toolbar-dropdown-opener{position:unset;z-index:0;}& + .itemInput{color:transparent !important;}.var-input{padding-left:1px;}}.iconWrap + .var-binded{width:calc(100% - 84px);left:30px;}}.setting-drag-menu-item .setting-drag-menu-item{.itemContent .var-binded{width:calc(100% - 58px);}}&.optionSetting_wMobileTabBars{.iconWrap + .var-binded{width:calc(100% - 60px);}}.setting-drag-menu-item .dragItemWrap .itemContent input.itemInput{border-radius:6px;}"],m=>m.theme.color_proto),Lo=s.Ay.div.withConfig({displayName:"styles__StyledOptionHeaderAction",componentId:"sc-1btj6qh-1"})(["width:24px;height:24px;border-radius:4px;display:flex;align-items:center;justify-content:center;position:absolute;top:-33px;right:10px;cursor:pointer;&.disabled{cursor:not-allowed;.icon{color:",";}}.icon{width:10px;height:10px;color:",";}&:not(.disabled):hover{background-color:",";}&:not(.disabled):active{background-color:",";}"],m=>m.theme.color_text_disabled01,m=>m.theme.color_text_L1,m=>m.theme.color_btn_secondary_hover,m=>m.theme.color_btn_secondary_active);class Go extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleClick",x=>{const{type:T,optionData:R,canExpandOneMenu:q,handleChange:se}=this.props;x.stopPropagation();const ge=R.filter(Ot=>!Ot.parent_cid),Ne=q?!R.some(Ot=>Ot.data.designExpanded):!0,Ke=ge.length+1,it=""+Ro(T)+Ke,dt={path:'<path d="M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z" />',viewBox:"64 64 896 896"},jt=[...R];if(T.startsWith("collapse")){const Ot=Bo(T)();jt.push({data:{name:it,link_cids:"",expanded:!0,designExpanded:Ne,selected:!1},children:[{data:{name:Ot,link_cids:"",expanded:!0,designExpanded:!0,selected:!1},children:[]}]})}else jt.push({data:{name:it,link_cids:"",expanded:!0,designExpanded:Ne,selected:!1,icon:so(T)?dt:null},children:[]});se(jt,"optionData")}),(0,i.A)(this,"handleStopPropagation",x=>x.stopPropagation())}render(){const{maxOptionLength:x,totalOptionLength:T}=this.props,R=T>=x;return(0,t.jsx)(Lo,{className:R?"disabled":"",onClick:R?this.handleStopPropagation:this.handleClick,children:(0,t.jsx)(a.A,{isShowTips:R,content:I18N.SettingPanel.max_n_of_options_supported.replace("{n}",x),direction:"down",style:{width:"max-content"},children:(0,t.jsx)(b.C,{name:"common/add@10"})})})}}class ts extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleChange",(x,T)=>{const{onChange:R,dispatch:q,selections:se}=this.props;let ge;T==="optionData"&&(ge=rs(x)),R({value:x,attr:T,dispatch:q,selections:se,refVar:ge})}),(0,i.A)(this,"itemContentInseter",(x,T,R,q,se)=>{var ge;if(se)return null;const Ne=(ge=x.data.refVars)==null?void 0:ge.name,Ke=(it,dt)=>{x.data.name=it,dt?x.data.refVars={name:dt}:delete x.data.refVars,this.handleChange(this.props.optionData,"optionData")};return(0,t.jsx)(Ae.Yw,{type:"string",isIconButton:!Ne,showName:!0,onlyTag:!0,refVar:Ne,value:x.data.name,onChange:Ke,disabled:q})})}render(){const{optionData:x,type:T,widget:R,canExpandOneMenu:q,optionRemoveModal:se,widgetStore:ge,isEditingCombo:Ne,editingPanelCid:Ke,hasMissFontHi:it,dispatch:dt}=this.props,{key:jt,hotAttr:Ot,hotAttr:{dropMenu:qt,selectionControl:sn,navigationMenu:Wn,optionDataDesignUnExpanded:kn,optionDataSelected:lo}}=R;let Wo,Zo,Yo;T===A.x.WDropMenu?Wo=qt.isMultiple:T===A.x.WSelectionControl?Zo=sn.type:T===A.x.WNavigationMenu&&(Yo=Wn.navigationMenuType);const is=(0,Ki.DS)(ge.sdkStore,jt,Ne,Ke),os=eo(T),es=Co(T),ns=(0,ei.vA)(x);return(0,t.jsxs)(Ho,{className:"optionSetting_"+T,children:[(0,t.jsx)(Go,{canExpandOneMenu:q,type:T,maxOptionLength:es,totalOptionLength:ns,optionData:x,handleChange:this.handleChange}),(0,t.jsx)(Et,{cid:jt,isShowIncreaseAction:on(T),isShowExpander:tn(T),isShowSelectedOperation:ln(T),isShowLinkOperation:bn(T),isExpandEditableContentOnEditing:Fo(T),minOptionLength:os,maxOptionLength:es,optionData:x,totalOptionLength:ns,getDefaultDescentContent:Bo(T),optionMultiSelectable:T===A.x.WSelectionControl&&Zo==="checkbox"||T===A.x.WDropMenu&&Wo,minDepth:ko(T),maxLevel:Zn(T),canExpandOneMenu:q,optionRemoveModal:se,innerLinks:is,widgetName:T,navigationMenuType:Yo,handleChange:this.handleChange,dispatch:dt,hasMissFontHi:it,optionDataDesignUnExpanded:kn,optionDataSelected:lo,widgetVersion:Ot["!version"],itemContentInseter:this.itemContentInseter})]})}}const Qo=(0,n.Ng)(m=>{const x=(0,pa.UV)(m),T=(0,be.rE)(m),R=(0,w.pj)(m)||(0,w.gm)(m),q=(0,w.jI)(m);return{widgetStore:x,optionRemoveModal:T,isEditingCombo:R,editingPanelCid:q}})(ts),Xo=(m,x)=>(m.forEach((T,R)=>{var q,se;let{data:ge,children:Ne}=T;const Ke=x==null||(q=x[R])==null?void 0:q.data;Ke&&(ge.refVars=Ke),Xo(Ne,x==null||(se=x[R])==null?void 0:se.children)}),m),rs=m=>{const x=[];return m.forEach((T,R)=>{var q;let{data:se,children:ge}=T;const Ne=(q=se.refVars)==null?void 0:q.name;delete se.refVars;let Ke;Ne&&(Ke={data:{name:Ne}}),ge.length&&(Ke=Object.assign(Ke||{},{children:rs(ge)})),x.push(Ke)}),x},_s={component:Qo,params:{},getter:[m=>{let{selectedItems:x,hasMissFontHi:T}=m;const{hotAttr:R}=x[0]||{},q=(0,Bt.xj)(x,"optionData"),se=di()((0,ot.i)(x,"optionData")),ge=Xo(se,q);return{type:R==null?void 0:R.type,widget:x[0],optionData:ge,canExpandOneMenu:(0,ot.i)(x,"canExpandOneMenu"),hasMissFontHi:T,refVars:(0,Bt.xj)(x,"optionData")}}],setter:{onChange:gt.c}},cs=()=>[Vl,[_s,"OptionInfo"]];var vs=e(38358),ms=e(5621);const Cs={0:"navigation_menu",1:"navigation_menu_v",2:"navigation_menu_h"},ls=[{icon:{width:27,height:24}},{icon:{width:41,height:24}},{icon:{width:39,height:27}}];class Is extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleChange",(x,T)=>{const{onChange:R,dispatch:q,selections:se}=this.props;R({value:x,attr:T,dispatch:q,selections:se})}),(0,i.A)(this,"handleChangeNavigationMenuType",x=>{const{navigationMenuType:T,selections:R,dispatch:q}=this.props,se=T===ze.ue.navigationMenuH&&x!==ze.ue.navigationMenuH,ge=T!==ze.ue.navigationMenuH&&x===ze.ue.navigationMenuH,Ne=R.map(Ke=>{const it=sdkStore.getHotItem(Ke);let dt={navigationMenu:{...it.hotAttr.navigationMenu,navigationMenuType:x,align:"space-between"}};if((se||ge)&&!(0,xe.OO)(Ke)){const jt=se?256:375,Ot=se?560:48,{hotAttr:{isLockAspect:qt}}=it,sn=sdkStore.getHotBound(Ke),Wn=qt?(0,ms.K)(sn.w,sn.h):!1,kn=(0,vs.AL)(sn,jt-sn.w,Ot-sn.h,"br",Wn),{x:lo,y:Wo}=sdkStore.toAttrXY(kn,Ke);dt={...dt,x:lo,y:Wo,w:jt,h:Ot}}return{key:Ke,hotAttr:dt}});q({type:"entry:widget:change",payload:{flatChgList:Ne}})})}render(){const{navigationMenuType:x}=this.props;return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("ul",{className:"navTypeList",children:ls.map((T,R)=>{let{icon:q}=T;return(0,t.jsxs)("li",{className:p()("typeItem",{active:R===x}),onClick:()=>this.handleChangeNavigationMenuType(R),children:[(0,t.jsx)("div",{className:"iconTypeWrap",children:(0,t.jsx)(b.C,{style:{width:q.width+"px",height:q.height+"px"},name:"setting_panel/"+Cs[R]})}),(0,t.jsx)("span",{className:"name",children:I18N.SettingPanel.nav_menu.type[Cs[R]]})]},R)})})})}}const Ms=s.Ay.section.withConfig({displayName:"styles__StyledNavigationMenuTypeSettings",componentId:"sc-ivj39e-0"})(["&.navPanelSetting{padding:0 16px;}ul.navTypeList{display:flex;justify-content:space-between;padding:8px 0;li.typeItem{display:flex;flex-direction:column;align-items:center;.name{color:",";&:lang(en){text-align:center;}}.iconTypeWrap{width:56px;height:40px;border-radius:4px;display:flex;align-items:center;justify-content:center;cursor:pointer;margin-bottom:4px;&:hover{background-color:",";}.svg-icon{rect{stroke:",";fill:",";}path{stroke:",";fill:none;}}}&.active{.iconTypeWrap{background-color:",";}}}}"],m=>m.theme.color_text_L2,m=>m.theme.color_btn_secondary_hover,m=>m.theme.color_text_L2,m=>m.theme.color_bg_border_02,m=>m.theme.color_text_L2,m=>m.theme.color_btn_secondary_active),xi="nav_menu_type",bs="mp_"+xi;class Os extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,Ct.Yt)(bs,!0,Ct.qW.Boolean)}),(0,i.A)(this,"handleChange",()=>{const{show:x}=this.state;(0,Ct.a0)(bs,!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[xi],onChange:this.handleChange,children:(0,t.jsx)(Ms,{type:"panel-body",className:"navPanelSetting",children:this.props.children})})}}const Gs={component:Is,params:{},getter:[m=>{let{selectedItems:x}=m;const{navigationMenuType:T}=(0,ot.i)(x,"navigationMenu");return{navigationMenuType:T}}],setter:{onChange:gt.c}},Vs=()=>[Os,[Gs,"NavigationMenuTypeInfo"]],yi=s.Ay.section.withConfig({displayName:"styles__StyledNavigationMenuSettings",componentId:"sc-1ms4miy-0"})(['.sub-panel{[type="panel-body"]{padding:0 10px 0 16px;.panelItem{align-items:center;display:flex;.navHasInputSetting{display:flex;flex:1;align-items:center;label.leftLabel{margin-right:40px;}.WorkspaceInputNumber{width:66px;margin-right:6px;}.var-binded .var-input{margin-left:0 !important;}}}}}']),Ji=["children"];class tr extends h.Component{shouldComponentUpdate(x,T,R){return this.props.isDraggingItem?!1:(0,B.N)(Ji).call(this,x,T)}render(){return(0,t.jsx)(yi,{children:this.props.children})}}const nr=s.Ay.div.withConfig({displayName:"styles__StyledShadows",componentId:"sc-yqpes7-0"})(["display:flex;align-items:center;color:",";.left-label{height:14px;color:",";line-height:14px;white-space:nowrap;}"],m=>m.theme.color_text_L2,m=>m.theme.color_text_L2),or=s.Ay.div.withConfig({displayName:"styles__StylesShadowCollapseBody",componentId:"sc-yqpes7-1"})(["height:0;transition:height 200ms ease-in-out 0s;overflow:hidden;&.is-open{height:auto;overflow:visible;}.shadow-line{margin-left:28px;width:180px;height:32px;display:flex;align-items:center;.var-input-container:not(:first-child){.shadow-item{border-radius:0;border-left:1px solid transparent;margin-left:-1px;&:hover{border-color:",";border-left:1px solid ",";}}}.shadow-item{height:28px;border-radius:6px;&:not(.is-active){border-color:",";}&.is-active{border-left:1px solid ",";&:not(:first-child){border-left:1px solid ",";}}}}.shadow-title{width:180px;height:24px;display:flex;margin-left:28px;span{flex:1;padding-left:6px;color:",";font-size:12px;}}"],m=>m.theme.color_proto,m=>m.theme.color_proto,m=>m.theme.color_bg_border_02,m=>m.theme.color_proto,m=>m.theme.color_proto,m=>m.theme.color_text_L3),xc=()=>null,Kl=m=>{let{shadow:x,handleChange:T,apattr:R,supAttr:q,className:se="",refVars:ge}=m;const{type:Ne,shadowIsVisible:Ke,shadowColor:it,offsetX:dt,offsetY:jt,blurRadius:Ot,spreadRadius:qt}=x,sn=(Wn,kn,lo)=>{const Wo={...x,[kn]:Wn};T(Wo,R,{...ge,[kn]:lo})};return(0,t.jsxs)(h.Fragment,{children:[(0,t.jsxs)(nr,{className:se+" height-32",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(bt.A,{attr:"shadowIsVisible",className:"style-check "+bt.p,isChecked:Ke,onChange:sn}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.shadows})]}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,attr:"shadowColor",supAttr:q,attrPanel:R,color:it,onChange:sn})]}),(0,t.jsxs)(or,{className:p()({"is-open":Ke}),children:[(0,t.jsxs)("section",{className:"shadow-line",children:[(0,t.jsx)(Ae.Yw,{type:"number",inputClassName:"shadow-item",min:-99,max:99,attr:"offsetX",value:dt,refVar:ge==null?void 0:ge.offsetX,onConfirm:(Wn,kn)=>sn(Wn,"offsetX",kn)}),(0,t.jsx)(Ae.Yw,{type:"number",inputClassName:"shadow-item",min:-99,max:99,attr:"offsetY",value:jt,refVar:ge==null?void 0:ge.offsetY,onConfirm:(Wn,kn)=>sn(Wn,"offsetY",kn)}),(0,t.jsx)(Ae.Yw,{type:"number",inputClassName:"shadow-item",min:0,max:99,attr:"blurRadius",value:Ot,refVar:ge==null?void 0:ge.blurRadius,onConfirm:(Wn,kn)=>sn(Wn,"blurRadius",kn)}),(0,t.jsx)(Ae.Yw,{type:"number",inputClassName:"shadow-item",min:-99,max:99,disabled:Ne==="text_shadow",attr:"spreadRadius",value:qt,refVar:ge==null?void 0:ge.spreadRadius,onConfirm:Ne==="text_shadow"?xc:(Wn,kn)=>sn(Wn,"spreadRadius",kn)})]}),(0,t.jsxs)("div",{className:"shadow-title",children:[(0,t.jsx)("span",{children:"X"}),(0,t.jsx)("span",{children:"Y"}),(0,t.jsx)("span",{children:I18N.SettingPanel.blur}),(0,t.jsx)("span",{children:I18N.SettingPanel.spread})]})]})]})};class yc extends h.PureComponent{render(){const{height:x,handleChangeHeight:T,refVar:R}=this.props;return(0,t.jsxs)("div",{className:"navHasInputSetting",children:[(0,t.jsx)("label",{className:"leftLabel",children:I18N.SettingPanel.height}),(0,t.jsx)(Ae.Yw,{type:"number",inputClassName:"nav_menu_panel_height",attr:"panelDataHeight",value:x,refVar:R,min:1,max:9999,optionList:Md,onConfirm:T})]})}}const Md=[32,36,40,44,48,56,64,72].map(m=>({label:m,value:m})),vc="nav_menu_panel",bc="mp_"+vc;class Ed extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,Ct.Yt)(bc,!0,Ct.qW.Boolean)}),(0,i.A)(this,"handleSubChange",()=>{const{show:x}=this.state;(0,Ct.a0)(bc,!x,Ct.qW.Boolean),this.setState({show:!x})}),(0,i.A)(this,"handleChangeHeight",(x,T)=>{const{handleChange:R}=this.props;R(x,"menuHeight",T)}),(0,i.A)(this,"handleChangeMenuBorder",(x,T)=>{const{handleChange:R,widgetHotAttr:q}=this.props,ge={...q.navigationMenu.menuBorder,[T]:x};R(ge,"menuBorder")})}render(){const{panelData:x,navigationMenuType:T,handleChange:R,refVars:q}=this.props,{background:se,isBackgroundVisible:ge,border:Ne,fs:Ke,tc:it,shadow:dt,height:jt}=x,{show:Ot}=this.state;return(0,t.jsx)(rn.A,{collapse:!Ot,title:I18N.SettingPanel.inspector[vc],onChange:this.handleSubChange,children:(0,t.jsxs)("section",{type:"panel-body",className:"navPanelSetting",children:[(0,t.jsxs)("div",{className:"panelItem height-32 margin-left-n6",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:"isMenuBackgroundVisible",isChecked:ge,onChange:R}),(0,t.jsx)("label",{className:"rightLabel",children:I18N.SettingPanel.menu_setting.bg_color})]}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:"navigationMenu",attr:"menuBackground",attrPanel:"panelData",color:se,onChange:(qt,sn)=>R(qt,sn)})]}),T!==ze.ue.navigationMenuH&&(0,t.jsxs)("div",{className:"panelItem height-32 margin-left-n6",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:"bdrIsVisible",isChecked:Ne.bdrIsVisible,onChange:this.handleChangeMenuBorder}),(0,t.jsx)("label",{className:"rightLabel",children:I18N.SettingPanel.menu_setting.dividing})]}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:"navigationMenu-menuBorder",attr:"bdrColor",attrPanel:"panelData",color:Ne.bdrColor,onChange:this.handleChangeMenuBorder})]}),(0,t.jsx)("div",{children:(0,t.jsx)(Kl,{className:"margin-left-n6",shadow:dt,handleChange:R,supAttr:"navigationMenu-menuShadow",apattr:"menuShadow",refVars:q==null?void 0:q.menuShadow})}),T!==ze.ue.navigationMenuH&&(0,t.jsx)("div",{className:"panelItem height-32",children:(0,t.jsx)(yc,{height:jt,handleChangeHeight:this.handleChangeHeight,refVar:q==null?void 0:q.menuHeight})})]})})}}const Cc="nav_expand_panel",Sc="mp_"+Cc;class Ld extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,Ct.Yt)(Sc,!0,Ct.qW.Boolean)}),(0,i.A)(this,"handleSubChange",()=>{const{show:x}=this.state;(0,Ct.a0)(Sc,!x,Ct.qW.Boolean),this.setState({show:!x})}),(0,i.A)(this,"handleChangeHeight",(x,T)=>{const{handleChange:R}=this.props;R(x,"subMenuHeight",T)})}render(){const{expandData:x,refVars:T,handleChange:R}=this.props,{background:q,isBackgroundVisible:se,height:ge}=x,{show:Ne}=this.state;return(0,t.jsx)(rn.A,{collapse:!Ne,title:I18N.SettingPanel.inspector[Cc],onChange:this.handleSubChange,children:(0,t.jsxs)("section",{type:"panel-body",className:"navExpandSetting",children:[(0,t.jsxs)("div",{className:"panelItem height-32 margin-left-n6",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:"isSubMenuBackground",isChecked:se,onChange:R}),(0,t.jsx)("label",{className:"rightLabel",children:I18N.SettingPanel.menu_setting.bg_color})]}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:"navigationMenu",attr:"subMenuBackground",attrPanel:"expandData",color:q,onChange:(Ke,it)=>R(Ke,it)})]}),(0,t.jsx)("div",{className:"panelItem height-32",children:(0,t.jsx)(yc,{height:ge,handleChangeHeight:this.handleChangeHeight,refVar:T==null?void 0:T.subMenuHeight})})]})})}}const _c="nav_selected_panel",wc="mp_"+_c;class Nd extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,Ct.Yt)(wc,!0,Ct.qW.Boolean)}),(0,i.A)(this,"handleSubChange",()=>{const{show:x}=this.state;(0,Ct.a0)(wc,!x,Ct.qW.Boolean),this.setState({show:!x})})}render(){const{selectedData:x,handleChange:T}=this.props,{background:R,isBackgroundVisible:q}=x,{show:se}=this.state;return(0,t.jsx)(rn.A,{collapse:!se,title:I18N.SettingPanel.inspector[_c],onChange:this.handleSubChange,children:(0,t.jsx)("section",{type:"panel-body",className:"navSelectPanelSetting",children:(0,t.jsxs)("div",{className:"panelItem height-32 margin-left-n6",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:"isActiveMenuItemBackgroundVisible",isChecked:q,onChange:T}),(0,t.jsx)("label",{className:"rightLabel",children:I18N.SettingPanel.menu_setting.bg_color})]}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:"navigationMenu",attr:"activeMenuItemBackground",attrPanel:"selectedData",color:R,onChange:(ge,Ne)=>T(ge,Ne)})]})})})}}const si=m=>{let{title:x,data:T,onChange:R,updateFamilyVersion:q,hideFontFamily:se,supAttr:ge,attrPanel:Ne,refVars:Ke,refStyles:it}=m;const dt=(0,n.wA)(),jt=(0,h.useRef)(T.textV0),[Ot,qt]=(0,h.useState)(!1),{lineHeight:sn,letterSpacing:Wn,fontFamily:kn,fontWeight:lo,fontSize:Wo,textDecoration:Zo,italic:Yo,textColor:is,bold:os}=T.textV0,es=Yo?"italic":"normal",ns=os?1:0,qo=(0,n.d4)(Ri.y.query.getCloudFontLocalList),ds=(0,ft.QT)(kn,lo);(0,h.useEffect)(()=>{jt.current=T.textV0},[T]);const Es=()=>{qt(!Ot)},Ps=fs=>{let{value:ps,attr:Ss,refVar:ii,dispatch:ai}=fs;const Ys={textV0:{...Ke==null?void 0:Ke.textV0,[Ss]:ii}};Ss==="fontStyle"?jt.current={...jt.current,italic:ps==="italic"}:jt.current={...jt.current,[Ss]:ps},R(jt.current,Ys),Ss==="fontFamily"&&(q==null||q())};return(0,t.jsx)(rn.A,{collapse:Ot,title:x,onChange:Es,children:(0,t.jsxs)(Dn.M,{children:[!se&&(0,t.jsx)(Bn.X,{dispatch:dt,wbiVersion:3,fontFamily:kn,fontWeight:lo,fontStyle:es,supAttr:ge,isMissFont:ds,onChange:Ps}),(0,t.jsx)(Ao.L,{textColor:is,isTextEditing:!1,fontSize:Wo,fontStyle:es,fontFamily:kn,textDecoration:Zo,fontWeight:lo,boldType:ns,boldAttr:"boldType",newOverOld:!0,dispatch:dt,isDisabledFontRadioLine:!1,colorAttr:"textColor",isRichText:!1,onChange:Ps,hasMissFontHi:ds,cloudFontLocalList:qo,supAttr:ge,refVars:Ke==null?void 0:Ke.textV0,refStyles:it,attrPanel:Ne}),(0,t.jsx)(Un.O,{lineHeight:sn,letterSpacing:Wn,onChange:Ps,dispatch:dt,fontFamily:kn,fontSize:Wo,isWRichText:!1,hideLineHeight:!0,isMissFont:ds,refVars:Ke==null?void 0:Ke.textV0})]})})};class Dd extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleChange",(x,T,R)=>{const{onChange:q,dispatch:se,selections:ge}=this.props;q({value:x,attr:T,dispatch:se,supAttr:"navigationMenu",selections:ge,refVar:R})}),(0,i.A)(this,"onChangeText",x=>(T,R)=>{this.handleChange({textV0:T},x,R)}),(0,i.A)(this,"updateFamilyVersion",()=>{const{onChange:x,dispatch:T,selections:R}=this.props;x({value:1,attr:"!ffVersion",dispatch:T,selections:R})})}render(){const{panelData:x,expandData:T,selectedData:R,navigationMenuType:q,widgetHotAttr:se,dispatch:ge,refVars:Ne}=this.props,{menuText:Ke,subMenuText:it,activeMenuText:dt}=se.navigationMenu;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Ed,{panelData:x,navigationMenuType:q,widgetHotAttr:se,dispatch:ge,handleChange:this.handleChange,refVars:Ne}),(0,t.jsx)(si,{title:"\u4E00\u7EA7\u83DC\u5355\u6587\u672C",data:Ke,supAttr:"navigationMenu-menuText-textV0",attrPanel:"menuText",onChange:this.onChangeText("menuText"),updateFamilyVersion:this.updateFamilyVersion,refVars:Ne==null?void 0:Ne.menuText}),(0,t.jsx)(Ld,{expandData:T,widgetHotAttr:se,handleChange:this.handleChange,refVars:Ne}),(0,t.jsx)(si,{title:"\u5B50\u83DC\u5355\u6587\u672C",data:it,supAttr:"navigationMenu-subMenuText-textV0",attrPanel:"subMenuText",onChange:this.onChangeText("subMenuText"),updateFamilyVersion:this.updateFamilyVersion,refVars:Ne==null?void 0:Ne.subMenuText}),(0,t.jsx)(Nd,{selectedData:R,handleChange:this.handleChange}),(0,t.jsx)(si,{title:"\u9009\u4E2D\u9879\u6587\u672C",data:dt,supAttr:"navigationMenu-activeMenuText-textV0",attrPanel:"activeMenuText",onChange:this.onChangeText("activeMenuText"),updateFamilyVersion:this.updateFamilyVersion,refVars:Ne==null?void 0:Ne.activeMenuText})]})}}const kd={component:Dd,params:{},getter:[m=>{let{selectedItems:x,rootProject:T,hasMissFontHi:R,cloudFontLocalList:q}=m;const se=(0,ot.i)(x,"navigationMenu"),{navigationMenuType:ge}=se,Ne=x[0].hotAttr;return{navigationMenuType:ge,panelData:(0,Ei.qS)(se),expandData:(0,Ei.Sr)(se),selectedData:(0,Ei.H8)(se),widgetHotAttr:Ne,rootProject:T,hasMissFontHi:R,cloudFontLocalList:q,refVars:(0,Bt.xj)(x,"navigationMenu",["menuHeight","subMenuHeight","menuShadow","menuText","subMenuText","activeMenuText"])}}],setter:{onChange:gt.c}},zl=()=>[tr,[kd,"NavigationMenuSettingsInfo"]];class Od extends h.PureComponent{render(){return(0,t.jsx)(t.Fragment,{children:this.props.children})}}const Rd=s.Ay.div.withConfig({displayName:"style__StyledCollapseStyleSettings",componentId:"sc-1e5xeog-0"})(["width:240px;padding:0 10px 0px 16px;color:",";.bg-color-line{display:flex;align-items:center;color:",";}.font-setting{justify-content:flex-start;.left-label.text_kbd{margin-right:24px;}.WorkspaceInputNumber{width:66px;}.font-color{margin-left:6px;}}.marker-position-setting{height:36px;justify-content:flex-start;.left-label{margin-right:38px;}}"],m=>m.theme.color_text_L2,m=>m.theme.color_text_L2),Bd=s.Ay.div.withConfig({displayName:"style__StyledMarkerPositionRatio",componentId:"sc-1e5xeog-1"})(["display:flex;box-sizing:border-box;border-radius:2px;"]);class Gl extends h.PureComponent{render(){const{background:x,isBackgroundVisible:T,markerPosition:R,handleChange:q,attrPanel:se,backgroundAttr:ge,isBackgroundVisibleAttr:Ne,supAttr:Ke}=this.props;return(0,t.jsxs)(Rd,{children:[(0,t.jsxs)("div",{className:"bg-color-line height-32 margin-left-n6",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:Ne,isChecked:T,onChange:q}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.bg_color})]}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:Ke,attr:ge,attrPanel:se,color:x,onChange:q})]}),R&&(0,t.jsxs)("div",{className:"line marker-position-setting height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.marker_position}),(0,t.jsx)(jd,{markerPosition:R,handleChange:q})]})]})}}const jd=m=>{const{markerPosition:x,handleChange:T}=m,R=se=>{T(se,"markerPosition")},q=[{label:I18N.SettingPanel.menu_setting.left,value:"left"},{label:I18N.SettingPanel.menu_setting.right,value:"right"}];return(0,t.jsx)(Bd,{children:(0,t.jsx)(Be.mq,{value:x,className:Be.it,onChange:R,optionList:q})})},Ic="collapse_title_settings",Tc="mp_"+Ic;class Wd extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,Ct.Yt)(Tc,!0,Ct.qW.Boolean)}),(0,i.A)(this,"handleChange",(x,T)=>{const{onChange:R,dispatch:q,selections:se}=this.props;R({value:x,attr:T,dispatch:q,supAttr:"collapse",selections:se})}),(0,i.A)(this,"handleSubChange",()=>{const{show:x}=this.state;(0,Ct.a0)(Tc,!x,Ct.qW.Boolean),this.setState({show:!x})})}render(){const{show:x}=this.state,{titleData:{background:T,isBackgroundVisible:R},markerPosition:q}=this.props;return(0,t.jsx)(rn.A,{collapse:!x,title:I18N.SettingPanel.inspector[Ic],onChange:this.handleSubChange,children:(0,t.jsx)(Gl,{backgroundAttr:"titleBackground",isBackgroundVisibleAttr:"isTitleBackgroundVisible",attrPanel:"title",supAttr:"collapse",background:T,isBackgroundVisible:R,markerPosition:q,handleChange:this.handleChange})})}}const Ac="collapse_content_settings",Pc="mp_"+Ac;class Fd extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,Ct.Yt)(Pc,!0,Ct.qW.Boolean)}),(0,i.A)(this,"handleSubChange",()=>{const{show:x}=this.state;(0,Ct.a0)(Pc,!x,Ct.qW.Boolean),this.setState({show:!x})}),(0,i.A)(this,"handleChange",(x,T)=>{const{onChange:R,dispatch:q,selections:se}=this.props;R({value:x,attr:T,dispatch:q,supAttr:"collapse",selections:se})})}render(){const{show:x}=this.state,{contentData:{background:T,isBackgroundVisible:R}}=this.props;return(0,t.jsx)(rn.A,{collapse:!x,title:I18N.SettingPanel.inspector[Ac],onChange:this.handleSubChange,children:(0,t.jsx)(Gl,{backgroundAttr:"isContentBackground",isBackgroundVisibleAttr:"isContentBackgroundVisible",attrPanel:"content",supAttr:"collapse",background:T,isBackgroundVisible:R,handleChange:this.handleChange})})}}class Vd extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"onChangeText",x=>(T,R)=>{const{onChange:q,dispatch:se,selections:ge}=this.props;q({value:{textV0:T},attr:x,refVar:R,dispatch:se,supAttr:"collapse",selections:ge})}),(0,i.A)(this,"updateFamilyVersion",()=>{const{onChange:x,dispatch:T,selections:R}=this.props;x({value:1,attr:"!ffVersion",dispatch:T,selections:R})})}render(){var x,T;const{dispatch:R,contentData:q,markerPosition:se,titleData:ge,selections:Ne,onChange:Ke,collapse:it,refVars:dt}=this.props,{titleText:jt,contentText:Ot}=it||{};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Wd,{selections:Ne,dispatch:R,titleData:ge,markerPosition:se,onChange:Ke}),(0,t.jsx)(si,{title:"\u6807\u9898\u6587\u672C",data:jt,onChange:this.onChangeText("titleText"),supAttr:"collapse-titleText-textV0",attrPanel:"titleText",updateFamilyVersion:this.updateFamilyVersion,refVars:dt==null||(x=dt.collapse)==null?void 0:x.titleText}),(0,t.jsx)(Fd,{selections:Ne,dispatch:R,contentData:q,onChange:Ke}),(0,t.jsx)(si,{title:"\u5185\u5BB9\u6587\u672C",data:Ot,onChange:this.onChangeText("contentText"),supAttr:"collapse-contentText-textV0",attrPanel:"contentText",updateFamilyVersion:this.updateFamilyVersion,refVars:dt==null||(T=dt.collapse)==null?void 0:T.contentText})]})}}const Hd={component:Vd,params:{},getter:[m=>{let{selectedItems:x,rootProject:T,hasMissFontHi:R,cloudFontLocalList:q}=m;const se=x[0],{collapse:ge}=se.hotAttr,{titleTextColor:Ne,titleTextSize:Ke,titleBackground:it,isTitleBackgroundVisible:dt,markerPosition:jt,contentTextSize:Ot,contentTextColor:qt,isContentBackground:sn,isContentBackgroundVisible:Wn}=ge;return{markerPosition:jt,titleData:{textColor:Ne,textSize:Ke,background:it,isBackgroundVisible:dt},contentData:{textColor:qt,textSize:Ot,background:sn,isBackgroundVisible:Wn},rootProject:T,collapse:ge,hasMissFontHi:R,cloudFontLocalList:q,refVars:{collapse:{titleText:{textV0:(0,Bt.xu)(x,["collapse","titleText","textV0"])},contentText:{textV0:(0,Bt.xu)(x,["collapse","contentText","textV0"])}}}}}],setter:{onChange:gt.c}},Ud=()=>[Od,[Hd,"CollapseSettingsInfo"]],Mc="segmented_control_checked_item",Ec="mp_"+Mc;class Kd extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,Ct.Yt)(Ec,!0,Ct.qW.Boolean)}),(0,i.A)(this,"handleChange",(x,T,R)=>{const{onChange:q,dispatch:se,selections:ge}=this.props;let Ne=x;(T.includes("Size")||T.includes("size"))&&(Ne=parseInt(x)),q({value:Ne,attr:T,dispatch:se,supAttr:"segmentedControl",selections:ge,refVar:R})}),(0,i.A)(this,"handleSubChange",()=>{const{show:x}=this.state;(0,Ct.a0)(Ec,!x,Ct.qW.Boolean),this.setState({show:!x})}),(0,i.A)(this,"onChangeText",x=>(T,R)=>{this.handleChange({textV0:T},x,R)}),(0,i.A)(this,"updateFamilyVersion",()=>{const{onChange:x,dispatch:T,selections:R}=this.props;x({value:1,attr:"!ffVersion",dispatch:T,selections:R})})}render(){const{show:x}=this.state,{dispatch:T,segmentedControl:R,refVars:q}=this.props,{text:se,checkedText:ge,checkedTextColor:Ne,checkedBackgroundColor:Ke,isCheckedBackgroundVisible:it}=R,dt=q==null?void 0:q.segmentedControl;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(si,{title:"\u6587\u672C",data:se,supAttr:"segmentedControl-text-textV0",onChange:this.onChangeText("text"),updateFamilyVersion:this.updateFamilyVersion,refVars:dt==null?void 0:dt.text}),(0,t.jsx)(rn.A,{collapse:!x,title:I18N.SettingPanel.inspector[Mc],onChange:this.handleSubChange,children:(0,t.jsx)(Gl,{background:Ke,supAttr:"segmentedControl",backgroundAttr:"checkedBackgroundColor",isBackgroundVisible:it,isBackgroundVisibleAttr:"isCheckedBackgroundVisible",handleChange:this.handleChange})}),(0,t.jsx)(si,{title:"\u9009\u4E2D\u9879\u6587\u672C",data:ge,onChange:this.onChangeText("checkedText"),supAttr:"segmentedControl-checkedText-textV0",updateFamilyVersion:this.updateFamilyVersion,refVars:dt==null?void 0:dt.checkedText,attrPanel:"checkedText"})]})}}const zd=m=>{let{children:x}=m;return(0,t.jsx)(t.Fragment,{children:x})},Gd={component:Kd,params:{},getter:[m=>{let{selectedItems:x,rootProject:T,hasMissFontHi:R,cloudFontLocalList:q}=m;const se=x[0],{segmentedControl:ge}=se.hotAttr;return{segmentedControl:ge,rootProject:T,hasMissFontHi:R,cloudFontLocalList:q,refVars:{segmentedControl:(0,Bt.xj)(x,"segmentedControl",["text","checkedText"])}}}],setter:{onChange:gt.c}},Zd=()=>[zd,[Gd,"SegmentedControlInfo"]],Zl=s.Ay.div.withConfig({displayName:"styles__StyledCommon",componentId:"sc-b7m095-0"})(["border-top:1px solid ",";padding:8px 0 8px 14px;.itemPanel{display:flex;align-items:center;.right-label{margin-left:4px;}}"],m=>m.theme.color_bg_border_01);class Yd extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleChange",(x,T)=>{const{onChange:R,dispatch:q,selections:se}=this.props;R({value:x,attr:T,dispatch:q,supAttr:"collapse",selections:se})}),(0,i.A)(this,"handleSetCanExpandOneMenu",x=>{const{dispatch:T}=this.props;this.handleChange(x,"canExpandOneMenu"),x&&T({type:"entry:set:navigationMenu:canExpandOneMenu"})})}render(){const{canExpandOneMenu:x}=this.props;return(0,t.jsxs)("div",{className:"itemPanel margin-left-n6 height-32",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:"canExpandOneMenu",isChecked:x,onChange:this.handleSetCanExpandOneMenu}),(0,t.jsx)("label",{className:"right-label",children:I18N.SettingPanel.navigation_menu.accordion_mode})]})}}const Xd=m=>{let{children:x}=m;return(0,t.jsx)(Zl,{className:"navigationOtherSettingPanel",children:x})},$d={component:Yd,params:{},getter:[m=>{let{selectedItems:x}=m;const{canExpandOneMenu:T}=(0,ot.i)(x,"collapse");return{canExpandOneMenu:T}}],setter:{onChange:gt.c}},Qd=()=>[Xd,[$d,"CollapseSwitchOptionsInfo"]],Jd=s.Ay.ul.withConfig({displayName:"styles__StyledDropMenuSettings",componentId:"sc-16ydav1-0"})(["padding:8px 16px 8px 16px;border-top:1px solid ",";color:",";.common-line{display:flex;align-items:center;justify-content:space-between;.right-input-container{position:relative;margin-left:-6px;.is-icon-button{position:absolute;top:-9px;left:-9px;.toolbar-dropdown-opener.is-open{height:36px;}&.is-active + input{border:1px solid ",";outline:"," solid 1px;outline-offset:-2px;}}.var-binded{width:144px;.var-input{padding-right:0px;}}}&:hover .icon-bind{display:block;}.right-input-container{width:140px;}.right-input{width:140px;height:28px;border-radius:4px;padding-left:6px;white-space:nowrap;text-overflow:ellipsis;color:",";border:1px solid ",";&.has-value:not(:focus){border:1px solid transparent;&:hover{border:1px solid ",";}}&:hover{border:1px solid ",";}&:focus{border:1px solid ",";outline:"," solid 1px;outline-offset:-2px;}}.WorkspaceSelect{width:140px;}.right-switch-container{width:140px;padding-left:6px;display:flex;align-items:center;&:lang(en){width:112px;}}}"],m=>m.theme.color_bg_border_01,m=>m.theme.color_text_L2,m=>m.theme.color_proto,m=>m.theme.color_proto,m=>m.theme.color_text_L1,m=>m.theme.color_bg_border_02,m=>m.theme.color_bg_border_02,m=>m.theme.color_bg_border_02,m=>m.theme.color_proto,m=>m.theme.color_proto),qd=s.Ay.section.withConfig({displayName:"styles__StyledOptionColorSettings",componentId:"sc-16ydav1-1"})(["padding:0 16px;.drop-menu-option-color{height:32px;display:flex;justify-content:space-between;align-items:center;.right-area{width:150px;&:lang(en){width:80px;}}}"]);class ep extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{textFocused:!1}),(0,i.A)(this,"MUTUAL_WAY_OPTION_LIST",[{label:I18N.SettingPanel.drop_menu_option.click,value:"click"},{label:I18N.SettingPanel.drop_menu_option.hover,value:"hover"}]),(0,i.A)(this,"handleChange",(x,T,R)=>{const{onChange:q,dispatch:se,selections:ge}=this.props;q({value:x,attr:T,dispatch:se,supAttr:R,selections:ge})}),(0,i.A)(this,"handleChangeText",x=>{const T=x.target.value;this.handleChange(T,"text","textV0")}),(0,i.A)(this,"handleChangeTextVar",(x,T)=>{const{onChange:R,dispatch:q,selections:se}=this.props;R({value:x,attr:"text",supAttr:"textV0",refVar:T,dispatch:q,selections:se})}),(0,i.A)(this,"handleSelect",(x,T)=>{this.handleChange(x,T,"dropMenu")}),(0,i.A)(this,"handleFocus",x=>{const{selections:T}=this.props;if(this.setState({textFocused:!0}),x.preventDefault(),x.stopPropagation(),!(0,ft.RC)(T[0])){x.target.blur();return}x.target.select()}),(0,i.A)(this,"hanldeBlur",()=>{this.setState({textFocused:!1})}),(0,i.A)(this,"handleBlurInput",x=>{const{key:T}=x;T===Qi._.Enter&&x.target.blur()}),(0,i.A)(this,"handleSetIsMultiple",x=>{this.handleChange(x,"isMultiple","dropMenu"),x===!0&&this.handleChange(!0,"dropMenuEcho","dropMenu")}),(0,i.A)(this,"handleSetEcho",x=>{this.handleChange(x,"dropMenuEcho","dropMenu")})}render(){var x;const{text:T,mutualWay:R,dropMenuEcho:q,isMultiple:se,refVars:ge,selections:Ne}=this.props,Ke=ge==null||(x=ge.textV0)==null?void 0:x.text,it=(0,ft.fP)(Ne[0]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("li",{className:"common-line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.btn_content}),(0,t.jsxs)("div",{className:"right-input-container",children:[!this.state.textFocused&&(0,t.jsx)(Ae.Yw,{type:"string",refVar:Ke,showName:!0,isIconButton:!Ke,value:T,onChange:this.handleChangeTextVar,disabled:it!==void 0}),!Ke&&(0,t.jsx)("input",{value:T,className:p()("right-input",{"has-value":T.length>0}),onFocus:this.handleFocus,onChange:this.handleChangeText,onKeyDown:this.handleBlurInput,onBlur:this.hanldeBlur})]})]}),(0,t.jsxs)("li",{className:"common-line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.multiSelection}),(0,t.jsx)("div",{className:"right-switch-container",children:(0,t.jsx)(fi.A,{size:"small",isIOS:!0,isChecked:se,onChange:this.handleSetIsMultiple})})]}),(0,t.jsxs)("li",{className:"common-line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.switch_echo}),(0,t.jsx)("div",{className:"right-switch-container",children:(0,t.jsx)(fi.A,{size:"small",isIOS:!0,isChecked:q,onChange:this.handleSetEcho,isDisabled:se})})]}),(0,t.jsxs)("li",{className:"common-line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.interaction_mode}),(0,t.jsx)(Be.mq,{attr:"mutualWay",optionList:this.MUTUAL_WAY_OPTION_LIST,value:R,onChange:this.handleSelect})]})]})}}const tp=m=>{let{children:x}=m;return(0,t.jsx)(Jd,{children:x})};class np extends h.PureComponent{constructor(){var x;super(...arguments),x=this,(0,i.A)(this,"handleChange",function(T,R,q){q===void 0&&(q="optionColor");const{onChange:se,dispatch:ge,selections:Ne}=x.props;se({value:T,attr:R,dispatch:ge,supAttr:q,selections:Ne})})}render(){const{optionBgColor:x,optionHoverBgColor:T,optionSelectTextColor:R,optionSelectedColor:q}=this.props;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"drop-menu-option-color",children:[(0,t.jsx)("div",{className:"title",children:I18N.SettingPanel.listBackground}),(0,t.jsx)("div",{className:"right-area",children:(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:"optionColor",attr:"optionBgColor",color:x,onChange:(se,ge)=>this.handleChange(se,ge)})})]}),(0,t.jsxs)("div",{className:"drop-menu-option-color",children:[(0,t.jsx)("div",{className:"title",children:I18N.SettingPanel.hoverBackground}),(0,t.jsx)("div",{className:"right-area",children:(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:"optionColor",attr:"optionHoverBgColor",color:T,onChange:(se,ge)=>this.handleChange(se,ge)})})]}),(0,t.jsxs)("div",{className:"drop-menu-option-color",children:[(0,t.jsx)("div",{className:"title",children:I18N.SettingPanel.listTextColor}),(0,t.jsx)("div",{className:"right-area",children:(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:"optionColor",attr:"optionSelectTextColor",color:R,onChange:(se,ge)=>this.handleChange(se,ge)})})]}),(0,t.jsxs)("div",{className:"drop-menu-option-color",children:[(0,t.jsx)("div",{className:"title",children:I18N.SettingPanel.listSelectedTextColor}),(0,t.jsx)("div",{className:"right-area",children:(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:"optionColor",attr:"optionSelectedColor",color:q,onChange:(se,ge)=>this.handleChange(se,ge)})})]})]})}}const Lc="drop_menu_option_color",Nc="mp_"+Lc,op=["children"];class sp extends h.Component{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,Ct.Yt)(Nc,!0,Ct.qW.Boolean)}),(0,i.A)(this,"handleChange",()=>{const{show:x}=this.state;(0,Ct.a0)(Nc,!x,Ct.qW.Boolean),this.setState({show:!x})})}shouldComponentUpdate(x,T,R){return this.props.isDraggingItem?!1:(0,B.N)(op).call(this,x,T)}render(){const{show:x}=this.state,{children:T}=this.props;return(0,t.jsx)(rn.A,{collapse:!x,title:I18N.SettingPanel.inspector[Lc],onChange:this.handleChange,children:(0,t.jsx)(qd,{className:"option-color-panel",children:T})})}}const ip={component:ep,params:{},getter:[m=>{let{selectedItems:x}=m;const T=(0,ot.i)(x,"dropMenu");return{dropMenuEcho:T.dropMenuEcho,mutualWay:T.mutualWay,text:(0,ot.i)(x,"textV0").text,isMultiple:T.isMultiple,refVars:{textV0:(0,Bt.xj)(x,"textV0",["text"])}}}],setter:{onChange:gt.c}},ap=()=>[tp,[ip,"DropMenuInfo"]],rp={component:np,params:{},getter:[m=>{let{selectedItems:x}=m;const T=(0,ot.i)(x,"optionColor"),{optionBgColor:R,optionHoverBgColor:q,optionSelectTextColor:se,optionSelectedColor:ge}=T;return{optionBgColor:R,optionHoverBgColor:q,optionSelectTextColor:se,optionSelectedColor:ge}}],setter:{onChange:gt.c}},lp=()=>[sp,[rp,"OptionColorInfo"]];class cp extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleChange",(x,T)=>{const{onChange:R,dispatch:q,selections:se}=this.props;R({value:x,attr:T,dispatch:q,supAttr:"navigationMenu",selections:se})}),(0,i.A)(this,"handleSetIsShowIcon",x=>{this.handleChange(x,"isShowIcon")}),(0,i.A)(this,"handleSetCanExpandOneMenu",x=>{const{dispatch:T}=this.props;this.handleChange(x,"canExpandOneMenu"),x&&T({type:"entry:set:navigationMenu:canExpandOneMenu"})})}render(){const{isShowIcon:x,canExpandOneMenu:T,isShowAccordionMode:R}=this.props;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"itemPanel margin-left-n6 height-32",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:"isShowIcon",isChecked:x,onChange:this.handleSetIsShowIcon}),(0,t.jsx)("label",{className:"right-label",children:I18N.SettingPanel.display_icon})]}),R&&(0,t.jsxs)("div",{className:"itemPanel margin-left-n6 height-32",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:"canExpandOneMenu",isChecked:T,onChange:this.handleSetCanExpandOneMenu}),(0,t.jsx)("label",{className:"right-label",children:I18N.SettingPanel.navigation_menu.accordion_mode})]})]})}}const dp=m=>{let{children:x}=m;return(0,t.jsx)(Zl,{className:"navigationOtherSettingPanel",children:x})},pp={component:cp,params:{isShowAccordionMode:!0},getter:[m=>{let{selectedItems:x}=m;const{isShowIcon:T,canExpandOneMenu:R}=(0,ot.i)(x,"navigationMenu");return{isShowIcon:T,canExpandOneMenu:R}}],setter:{onChange:gt.c}},hp=()=>[dp,[pp,"NavigationMenuSwitchOptionsInfo"]],up=s.Ay.section.withConfig({displayName:"styles__StyledSwitchesState",componentId:"sc-1fat5zb-0"})(["padding:8px 16px;border-top:1px solid ",";color:",";display:flex;align-items:start;position:relative;flex-direction:column;box-sizing:content-box;.line{width:100%;display:flex;align-items:center;justify-content:space-between;&:hover .icon-bind{display:block;}.right-content{width:140px;padding-left:7px;align-items:center;position:relative;.is-icon-button{position:absolute;left:-14px;top:-4px;}.direction-radio-line{margin-bottom:0;width:100%;border:none;.radio-option{border-radius:2px;color:",";&.active{background:",";}}}.interval-value{width:100%;}}}"],m=>m.theme.color_bg_border_01,m=>m.theme.color_text_L2,m=>m.theme.color_text_L1,m=>m.theme.color_btn_secondary_active),gp=(0,h.memo)(m=>{var x,T;let{checked:R,isDisabled:q,refVars:se,onChange:ge,dispatch:Ne,selections:Ke}=m;const it=(sn,Wn,kn)=>{ge({value:sn,attr:Wn,supAttr:"switch",refVar:kn,dispatch:Ne,selections:Ke})},dt=sn=>{it(sn,"checked")},jt=sn=>{it(sn,"isDisabled")},Ot=se==null||(x=se.switch)==null?void 0:x.checked,qt=se==null||(T=se.switch)==null?void 0:T.isDisabled;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.switch_state}),(0,t.jsxs)("div",{className:"right-content",children:[(0,t.jsx)(Ae.Yw,{type:"boolean",refVar:Ot,value:R,isIconButton:!Ot,showName:!0,onChange:(sn,Wn)=>it(sn,"checked",Wn)}),!Ot&&(0,t.jsx)(fi.A,{size:"small",isIOS:!0,isChecked:R,onChange:dt})]})]}),(0,t.jsxs)("div",{className:"line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.switch_disabled}),(0,t.jsxs)("div",{className:"right-content",children:[(0,t.jsx)(Ae.Yw,{type:"boolean",refVar:qt,value:q,isIconButton:!qt,showName:!0,onChange:(sn,Wn)=>it(sn,"isDisabled",Wn)}),!qt&&(0,t.jsx)(fi.A,{size:"small",isIOS:!0,isChecked:q,onChange:jt})]})]})]})}),mp=m=>{let{children:x}=m;return(0,t.jsx)(up,{children:x})},fp={component:gp,params:{},getter:[m=>{let{selectedItems:x}=m;const{isDisabled:T,checked:R}=(0,ot.i)(x,"switch");return{checked:R,isDisabled:T,refVars:{switch:(0,Bt.xj)(x,"switch",["isDisabled","checked"])}}}],setter:{onChange:gt.c}},Dc=()=>[mp,[fp,"SwitchInfo"]];class xp extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleChange",(x,T)=>{const{onChange:R,dispatch:q,selections:se}=this.props;R({value:x,attr:T,dispatch:q,supAttr:"mobileTabBars",selections:se})}),(0,i.A)(this,"handleSetIsShowIcon",x=>{this.handleChange(x,"isShowIcon")}),(0,i.A)(this,"handleSetIsShowText",x=>{this.handleChange(x,"isShowText")})}render(){const{isShowIcon:x,isShowText:T}=this.props;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"itemPanel margin-left-n6 height-32",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:"isShowSelectedIcon",isChecked:x,onChange:this.handleSetIsShowIcon}),(0,t.jsx)("label",{className:"right-label",children:I18N.SettingPanel.display_icon})]}),(0,t.jsxs)("div",{className:"itemPanel margin-left-n6 height-32",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:"isShowSelectedText",isChecked:T,onChange:this.handleSetIsShowText}),(0,t.jsx)("label",{className:"right-label",children:I18N.SettingPanel.display_text})]})]})}}const yp=m=>{let{children:x}=m;return(0,t.jsx)(Zl,{className:"navigationOtherSettingPanel",children:x})},vp={component:xp,params:{},getter:[m=>{let{selectedItems:x}=m;const{isShowIcon:T,isShowText:R}=(0,ot.i)(x,"mobileTabBars");return{isShowIcon:T,isShowText:R}}],setter:{onChange:gt.c}},bp=()=>[yp,[vp,"MobileTabBarsInfo"]],Cp=s.Ay.section.withConfig({displayName:"styles__StyledSwitchesAppearance",componentId:"sc-etjwqo-0"})(["width:240px;padding:0 10px 0 16px;color:",";.slider-setting-line{display:flex;align-items:center;",";}"],m=>m.theme.color_text_L2,Oi.B3);class kc extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,Ct.Yt)("mp_"+this.props.collapseName,!0,Ct.qW.Boolean)}),(0,i.A)(this,"handleSwitchesTrackAttrChange",(x,T)=>{const{dispatch:R,handleChange:q}=this.props;q(x,T),R({type:"entry:auto:show:hide:item"})}),(0,i.A)(this,"handleSubChange",()=>{const{show:x}=this.state;(0,Ct.a0)("mp_"+this.props.collapseName,!x,Ct.qW.Boolean),this.setState({show:!x})})}render(){const{thumbAttr:x,trackAttr:T,isThumbVisible:R,isTrackVisible:q,collapseName:se,trackColor:ge,thumbColor:Ne,isThumbVisibleAttr:Ke,isTrackVisibleAttr:it}=this.props,{show:dt}=this.state;return(0,t.jsx)(rn.A,{collapse:!dt,title:I18N.SettingPanel.inspector[se],onChange:this.handleSubChange,children:(0,t.jsxs)(Cp,{children:[(0,t.jsxs)("div",{className:"slider-setting-line margin-left-n6 height-32",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:Ke,isChecked:R,onChange:this.handleSwitchesTrackAttrChange}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.thumb_bg_switches})]}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:"switch",attr:x,color:Ne,onChange:this.handleSwitchesTrackAttrChange})]}),(0,t.jsxs)("div",{className:"slider-setting-line margin-left-n6 height-32",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:it,isChecked:q,onChange:this.handleSwitchesTrackAttrChange}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.track_bg_switches})]}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:"switch",attr:T,color:ge,onChange:this.handleSwitchesTrackAttrChange})]})]})})}}const Sp=(0,h.memo)(m=>{let{dispatch:x,onChange:T,isThumbVisible:R,isCheckedThumbVisible:q,isTrackVisible:se,isCheckedTrackVisible:ge,thumbColor:Ne,trackColor:Ke,checkedThumbColor:it,checkedTrackColor:dt,selections:jt}=m;const Ot=(qt,sn)=>{T({value:qt,attr:sn,dispatch:x,supAttr:"switch",selections:jt})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(kc,{dispatch:x,handleChange:Ot,isThumbVisible:q,thumbColor:it,thumbAttr:"checkedThumbColor",isTrackVisible:ge,trackColor:dt,trackAttr:"checkedTrackColor",isTrackVisibleAttr:"isCheckedTrackVisible",isThumbVisibleAttr:"isCheckedThumbVisible",collapseName:"collapse_switches_checked_panel"}),(0,t.jsx)(kc,{dispatch:x,handleChange:Ot,isThumbVisible:R,isTrackVisible:se,thumbAttr:"thumbColor",trackAttr:"trackColor",thumbColor:Ne,trackColor:Ke,isTrackVisibleAttr:"isTrackVisible",isThumbVisibleAttr:"isThumbVisible",collapseName:"collapse_switches_unchecked_panel"})]})}),_p=m=>{let{children:x}=m;return(0,t.jsx)(t.Fragment,{children:x})},wp={component:Sp,params:{},getter:[m=>{let{selectedItems:x}=m;const{isThumbVisible:T,isCheckedThumbVisible:R,isTrackVisible:q,isCheckedTrackVisible:se,thumbColor:ge,trackColor:Ne,checkedThumbColor:Ke,checkedTrackColor:it}=(0,ot.i)(x,"switch");return{isThumbVisible:T,isCheckedThumbVisible:R,isTrackVisible:q,isCheckedTrackVisible:se,thumbColor:ge,trackColor:Ne,checkedThumbColor:Ke,checkedTrackColor:it}}],setter:{onChange:gt.c}},Oc=()=>[_p,[wp]];var Rc=e(97433),Bc=e(56849),Ip=e(98886);class sr extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleLineSizeChange",(x,T)=>{const{borderAttr:R,border:q}=this.props,se=(parseInt(x)||0)+10,ge={...q,[T]:se};this.props.handleChange(ge,R)}),(0,i.A)(this,"handleChangeBorder",(x,T,R)=>{const{borderAttr:q,border:se,refVars:ge}=this.props,Ne={...se,[T]:x};this.props.handleChange(Ne,q,{...ge,[T]:R})}),(0,i.A)(this,"handleChangeSingleBorder",x=>{x.stopPropagation();const{borderVisibility:T}=this.props,{borderSide:R}=x.currentTarget.dataset,q=[...T],se=Number(R);q[se]=!T[se],this.props.handleChange(q,"border_visibility")})}render(){const{attrPanel:x,supAttr:T,colorButtonAttr:R,canBorderWidth:q,canBorderStyle:se,border:ge,isHLine:Ne,isVLine:Ke,width:it,height:dt,borderVisibility:jt,canSetBorderVisibility:Ot,title:qt,refVars:sn,refStyles:Wn}=this.props,{bdrIsVisible:kn,bdrColor:lo,bdrStyle:Wo,bdrWidth:Zo}=ge;let Yo;if(Ne){const ns=dt-10>0?dt-10:1;Yo=(0,t.jsx)(Ee.A,{attr:"height",className:"border-width-input",value:ns,optionList:ks.K3,onConfirm:this.handleLineSizeChange})}else if(Ke){const ns=it-10>0?it-10:1;Yo=(0,t.jsx)(Ee.A,{attr:"width",className:"border-width-input",value:ns,optionList:ks.K3,onConfirm:this.handleLineSizeChange})}else q?Yo=(0,t.jsx)(Ae.Yw,{type:"number",inputClassName:"border-width-input",attr:"bdrWidth",value:Zo,refVar:sn==null?void 0:sn.bdrWidth,optionList:ks.xq,onConfirm:(ns,qo)=>this.handleChangeBorder(ns,"bdrWidth",qo)}):Yo=null;const is=!se&&!Yo,os=!se&&!Ot&&Yo,es=se&&Yo&&!Ot;return(0,t.jsxs)(Rc.Y,{className:p()({"is-open":kn&&!is},{"is-only-stroke-width":os},{"has-style-width-no-visibility":es}),children:[(0,t.jsxs)("div",{className:"appearance-line border-open height-32",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:"bdrIsVisible",isChecked:kn,onChange:this.handleChangeBorder}),(0,t.jsx)("label",{className:"left-label",children:qt||I18N.SettingPanel.stroke})]}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:T,attr:R,attrPanel:x,color:lo,refStyles:Wn,onChange:this.handleChangeBorder})]}),(0,t.jsxs)("div",{className:p()("border-collapse-body height-36 margin-right-n6",{"is-open":kn&&!is}),children:[os&&(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.thickness}),se&&(0,t.jsxs)("div",{className:"border-select-size-warp",children:[(0,t.jsx)(Bc.v,{}),(0,t.jsx)(Be.mq,{className:p()("border-select-size"),attr:"bdrStyle",menuClassName:"border_style_select_menu",optionList:(0,ks.se)(),value:Wo,onChange:this.handleChangeBorder})]}),Yo,Ot&&(0,t.jsx)(Ip.A,{handleChange:this.handleChangeSingleBorder,borderVisibility:jt})]})]})}}(0,i.A)(sr,"defaultProps",{colorButtonAttr:"bdrColor"});const Tp=s.Ay.section.withConfig({displayName:"styles__StyledTabsInfo",componentId:"sc-1ft6y5n-0"})(["width:240px;padding:0 10px 0 16px;color:",";.appearance-line{display:flex;align-items:center;color:",";",";.left-label{height:14px;color:",";line-height:14px;white-space:nowrap;}}.info{justify-content:flex-start;.left-label.text_kbd{margin-right:24px;}.WorkspaceInputNumber{width:66px;}[type=color-btn]{margin-left:6px;}.options-menu-opener{&.is-open{.menu-opener{background-color:",";}}&.font-menu-opener{flex:1;display:flex;justify-content:flex-end;align-items:center;}}}"],m=>m.theme.color_text_L2,m=>m.theme.color_text_L2,Oi.B3,m=>m.theme.color_text_L2,m=>m.color_background_split),F0=s.Ay.div.withConfig({displayName:"styles__StyledCheckedMenu",componentId:"sc-1ft6y5n-1"})(["width:204px;height:126px;header{height:40px;border-bottom:1px solid ",";display:flex;align-items:center;justify-content:space-between;padding:0 12px;color:",";.title{font-weight:500;}div{&:not(.disabled):hover{background:",";}&:not(.disabled):active{background:",";}}}.menu-wrapper{display:flex;flex-direction:row;justify-content:space-between;padding:8px 10px 16px 10px;color:",";&:not(:first-child){padding-top:0;}.font-style{p{margin-bottom:14px;}.icon{width:24px;height:24px;}.radio-line{background:transparent;color:",";&:lang(en){justify-content:flex-start;}}.radio-option{border-radius:4px;overflow:hidden;}.radio-line{&:not(.disabled){.radio-option{&:not(.active):hover{background:",";color:",";}&.active{background:",";color:",";}}}}}}"],m=>m.theme.color_bg_border_02,m=>m.theme.color_text_L1,m=>m.theme.color_btn_secondary_hover,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_text_L3,m=>m.theme.color_text_L1,m=>m.theme.color_btn_secondary_hover,m=>m.theme.color_text_L1,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_text_L1),V0=(0,s.Ay)(ht.L4).withConfig({displayName:"styles__StyledDropDown",componentId:"sc-1ft6y5n-2"})(["flex:1;display:flex;justify-content:flex-end;"]),jc="tabs_checked",Wc="mp_"+jc;class Ap extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,Ct.Yt)(Wc,!0,Ct.qW.Boolean)}),(0,i.A)(this,"handleChange",(x,T,R)=>{const{onChange:q,dispatch:se,selections:ge}=this.props;q({value:x,attr:T,dispatch:se,supAttr:"tabs",selections:ge,refVar:R})}),(0,i.A)(this,"handleSubChange",()=>{const{show:x}=this.state;(0,Ct.a0)(Wc,!x,Ct.qW.Boolean),this.setState({show:!x})}),(0,i.A)(this,"onChangeText",x=>(T,R)=>{this.handleChange({textV0:T},x,R)}),(0,i.A)(this,"updateFamilyVersion",()=>{const{onChange:x,dispatch:T,selections:R}=this.props;x({value:1,attr:"!ffVersion",dispatch:T,selections:R})})}render(){var x,T,R;const{tabs:{checkedBorder:q,text:se,checkedText:ge},refVars:Ne,refStyles:Ke}=this.props,{show:it}=this.state;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(si,{title:"\u6587\u672C",data:se,supAttr:"tabs-text-textV0",onChange:this.onChangeText("text"),updateFamilyVersion:this.updateFamilyVersion,refVars:Ne==null?void 0:Ne.text,refStyles:Ke==null||(x=Ke.color)==null?void 0:x.tabs}),(0,t.jsx)(rn.A,{collapse:!it,title:I18N.SettingPanel.inspector[jc],onChange:this.handleSubChange,children:(0,t.jsx)(Tp,{children:(0,t.jsx)(sr,{canBorderWidth:!0,canBorderStyle:!0,border:q,isHLine:!1,isVLine:!1,borderAttr:"checkedBorder",supAttr:"tabs-checkedBorder",refVars:Ne==null?void 0:Ne.checkedBorder,refStyles:Ke==null||(T=Ke.color)==null?void 0:T.tabs,title:I18N.SettingPanel.tabs_checked_stroke,handleChange:this.handleChange})})}),(0,t.jsx)(si,{title:"\u9009\u4E2D\u9879\u6587\u672C",data:ge,supAttr:"tabs-checkedText-textV0",onChange:this.onChangeText("checkedText"),updateFamilyVersion:this.updateFamilyVersion,refVars:Ne==null?void 0:Ne.checkedText,refStyles:Ke==null||(R=Ke.color)==null?void 0:R.tabs})]})}}const Pp=m=>{let{children:x}=m;return(0,t.jsx)(t.Fragment,{children:x})},Mp={component:Ap,params:{},getter:[m=>{let{selectedItems:x,rootProject:T,hasMissFontHi:R,cloudFontLocalList:q}=m;const se=(0,ot.i)(x,"tabs"),ge=(0,ot.i)(x,"refStyles");return{tabs:se,rootProject:T,hasMissFontHi:R,cloudFontLocalList:q,refVars:(0,Bt.xj)(x,"tabs"),refStyles:ge}}],setter:{onChange:gt.c}},Ep=()=>[Pp,[Mp,"TabsInfo"]],Fc=s.Ay.section.withConfig({displayName:"styles__StyledInfoSetting",componentId:"sc-17wnp6b-0"})(["width:240px;padding:0 10px 0 16px;color:",";.appearance-line{display:flex;align-items:center;color:",";.left-label{height:14px;color:",";line-height:14px;white-space:nowrap;}}.info{justify-content:flex-start;.left-label{&.text_kbd{margin-right:24px;}&.page-number{margin-right:20px;&:lang(en){margin-right:8px;}}}.WorkspaceInputNumber{width:66px;}[type=color-btn]{margin-left:6px;}}"],m=>m.theme.color_text_L2,m=>m.theme.color_text_L2,m=>m.theme.color_text_L2),H0=s.Ay.div.withConfig({displayName:"styles__StyledSub",componentId:"sc-17wnp6b-1"})(["width:240px;& > header{font-weight:600;padding:14px 14px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid ",";transition:all 0.2s ease-in-out;cursor:pointer;}"],m=>m.theme.color_bg_border_02),Vc="pagination_checked",Hc="mp_"+Vc;class Lp extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,Ct.Yt)(Hc,!0,Ct.qW.Boolean)}),(0,i.A)(this,"handleChange",(x,T,R)=>{const{onChange:q,dispatch:se,paginationType:ge,selections:Ne}=this.props;let Ke;ge==="web"?Ke="paginationWeb":Ke="paginationMobile",q({value:x,attr:T,dispatch:se,supAttr:Ke,selections:Ne,refVar:R})}),(0,i.A)(this,"onAppearanceChange",(x,T)=>{const{dispatch:R}=this.props;this.handleChange(x,T),R({type:"entry:auto:show:hide:item"})}),(0,i.A)(this,"handleChangeFontSize",x=>{this.handleChange(x,"checkedTextSize")}),(0,i.A)(this,"handleSubChange",()=>{const{show:x}=this.state;(0,Ct.a0)(Hc,!x,Ct.qW.Boolean),this.setState({show:!x})}),(0,i.A)(this,"onChangeText",x=>(T,R)=>{const{onChange:q,dispatch:se,selections:ge,paginationType:Ne}=this.props;q({value:T,attr:x,dispatch:se,supAttr:Ne==="web"?"paginationWeb":"paginationMobile",selections:ge,refVar:R==null?void 0:R.textV0})}),(0,i.A)(this,"updateFamilyVersion",()=>{const{onChange:x,dispatch:T,selections:R}=this.props;x({value:1,attr:"!ffVersion",dispatch:T,selections:R})})}render(){var x,T,R;const{paginationType:q,hotAttr:se}=this.props,{show:ge}=this.state,Ne=q==="web"?"paginationWeb":"paginationMobile",{isCheckedBackgroundVisible:Ke,checkedBackgroundColor:it,checkedBorder:dt,textV0:jt,checkedTextV0:Ot}=se[Ne],qt=q==="web";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(si,{title:"\u6587\u672C",data:{textV0:jt},hideFontFamily:!0,onChange:this.onChangeText("textV0"),supAttr:Ne+"-textV0",updateFamilyVersion:this.updateFamilyVersion,refVars:(x=se.refVars)==null?void 0:x[Ne]}),qt&&(0,t.jsx)(rn.A,{collapse:!ge,title:I18N.SettingPanel.inspector[Vc],onChange:this.handleSubChange,children:(0,t.jsx)(Fc,{children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"appearance-line color-line height-32 margin-left-n6",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:"isCheckedBackgroundVisible",isChecked:Ke,onChange:this.handleChange}),(0,t.jsx)("label",{className:"left-label background-label",children:I18N.SettingPanel.fill})]}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:Ne,attr:"checkedBackgroundColor",color:it,onChange:this.handleChange})]}),(0,t.jsx)(sr,{canBorderWidth:!0,canBorderStyle:!0,border:dt,isHLine:!1,isVLine:!1,borderAttr:"checkedBorder",supAttr:Ne+"-checkedBorder",refVars:(T=se.refVars)==null||(T=T[Ne])==null?void 0:T.checkedBorder,handleChange:this.handleChange})]})})}),(0,t.jsx)(si,{title:"\u9009\u4E2D\u9879\u6587\u672C",data:{textV0:Ot},hideFontFamily:!0,onChange:this.onChangeText("checkedTextV0"),supAttr:Ne+"-checkedTextV0",attrPanel:"checkedText",updateFamilyVersion:this.updateFamilyVersion,refVars:{textV0:(R=se.refVars)==null||(R=R[Ne])==null?void 0:R.checkedTextV0}})]})}}const Yl=m=>{let{children:x}=m;return(0,t.jsx)(t.Fragment,{children:x})};var Np=e(28681),Xl=e(28537);const Dp=m=>{let{maxNum:x,curPage:T,onChange:R,dispatch:q,selections:se,supAttr:ge,refVars:Ne}=m;const[Ke,it]=(0,Xl.Vc)(Np.Td,{defaultValue:!0}),dt=(0,Xl.qK)((qt,sn)=>{qt=parseInt(qt),qt<1&&(qt=1),R({value:qt,attr:"pagesNumber",dispatch:q,supAttr:ge,refVar:sn,selections:se}),qt<T&&R({value:qt,attr:"curPage",dispatch:q,supAttr:ge,refVar:Ne==null?void 0:Ne.curPage,selections:se})}),jt=(0,Xl.qK)((qt,sn)=>{qt=parseInt(qt),qt<1&&(qt=1),qt>x&&(qt=x),R({value:qt,attr:"curPage",dispatch:q,supAttr:ge,refVar:sn,selections:se})}),Ot=()=>{it(!Ke)};return(0,t.jsx)(rn.A,{collapse:!Ke,title:I18N.SettingPanel.numerValue,onChange:Ot,children:(0,t.jsxs)(Fc,{children:[(0,t.jsxs)("div",{className:"line info height-32",children:[(0,t.jsx)("label",{className:"left-label page-number",children:I18N.SettingPanel.maxPageNum}),(0,t.jsx)(Ae.Yw,{type:"number",inputClassName:"page-input-number",refVar:Ne==null?void 0:Ne.pagesNumber,value:x,min:1,onConfirm:dt})]}),(0,t.jsxs)("div",{className:"line info height-32",children:[(0,t.jsx)("label",{className:"left-label page-number",children:I18N.SettingPanel.curPageNum}),(0,t.jsx)(Ae.Yw,{type:"number",inputClassName:"page-input-number",refVar:Ne==null?void 0:Ne.curPage,value:T,min:1,max:x,onConfirm:jt})]})]})})},kp=(0,h.memo)(Dp),Uc={component:Lp,params:{paginationType:"default"},getter:[m=>{let{selectedItems:x,rootProject:T,hasMissFontHi:R,cloudFontLocalList:q}=m;return{hotAttr:x[0].hotAttr,rootProject:T,hasMissFontHi:R,cloudFontLocalList:q}}],setter:{onChange:gt.c}},Op={component:kp,params:{paginationType:"default"},getter:[m=>{let{selectedItems:x}=m;const T=x[0].hotAttr,R="paginationWeb"in T?T.paginationWeb:T.paginationMobile;return{maxNum:R.pagesNumber,curPage:R.curPage,refVars:(0,Bt.xj)(x,"paginationWeb"in T?"paginationWeb":"paginationMobile",["pagesNumber","curPage"])}}],setter:{onChange:gt.c}},Rp=()=>[Yl,[{...Uc,params:{paginationType:"mobile"}}]],Bp=()=>[Yl,[{...Uc,params:{paginationType:"web"}}]],Kc=m=>[Yl,[{...Op,params:{supAttr:m}}]];var pi=e(76199);const jp=s.Ay.section.withConfig({displayName:"styles__StyledDigitalStepperInfo",componentId:"sc-1v7m2wd-0"})(["width:240px;padding:0 16px;color:",";.stepperInfo{justify-content:flex-start;.left-label{flex:1;}.right-content{width:140px;display:flex;align-items:center;justify-content:flex-start;}.WorkspaceInputNumber{width:44px;&.font-size-input{width:66px;}&.stepperInfoText{width:66px;}}.dividing-line{margin:0 14px 0 2px;display:inline-block;width:10px;height:1px;background:",";}}"],m=>m.theme.color_text_L2,m=>m.theme.color_bg_border_01),zc="digital_stepper_number",Gc="mp_"+zc;class Wp extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,Ct.Yt)(Gc,!0,Ct.qW.Boolean)}),(0,i.A)(this,"handleChange",(x,T,R)=>{const{onChange:q,dispatch:se,selections:ge}=this.props;q({value:x,attr:T,dispatch:se,supAttr:"digitalStepper",selections:ge,refVar:R})}),(0,i.A)(this,"handleIntChange",(x,T,R)=>{let q=parseInt(x)||0;if(["min","max"].includes(T)){const{number:se}=this.props,ge=parseInt(se)||0;(T==="min"&&q>ge||T==="max"&&q<ge)&&this.onDigitalStepperChange(q,"value")}else if(T==="value"){const{min:se,max:ge}=this.props;q<se&&(q=se),q>ge&&(q=ge)}this.onDigitalStepperChange(q,T,R)}),(0,i.A)(this,"onDigitalStepperChange",(x,T,R)=>{this.handleChange(x,T,R)}),(0,i.A)(this,"handleChangeFontSize",(x,T,R)=>{this.handleChange(parseInt(x),T,R)}),(0,i.A)(this,"handleSubChange",()=>{const{show:x}=this.state;(0,Ct.a0)(Gc,!x,Ct.qW.Boolean),this.setState({show:!x})})}render(){var x,T,R,q;const{min:se,max:ge,number:Ne,fontSize:Ke,color:it,dispatch:dt,refVars:jt}=this.props,{show:Ot}=this.state;return(0,t.jsx)(rn.A,{collapse:!Ot,title:I18N.SettingPanel.inspector[zc],onChange:this.handleSubChange,children:(0,t.jsxs)(jp,{children:[(0,t.jsxs)("div",{className:"line stepperInfo height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.numericalRange}),(0,t.jsxs)("div",{className:"right-content",children:[(0,t.jsx)(Ae.Yw,{type:"number",refVar:jt==null||(x=jt.digitalStepper)==null?void 0:x.min,value:se,max:ge,min:-99999,onConfirm:(qt,sn)=>this.handleIntChange(qt,"min",sn)}),(0,t.jsx)("span",{className:"dividing-line"}),(0,t.jsx)(Ae.Yw,{type:"number",refVar:jt==null||(T=jt.digitalStepper)==null?void 0:T.max,value:ge,min:se,max:99999,onConfirm:(qt,sn)=>this.handleIntChange(qt,"max",sn)})]})]}),(0,t.jsxs)("div",{className:"line stepperInfo height-32",children:[(0,t.jsx)("label",{className:"left-label defaultValue",children:I18N.SettingPanel.defaultValue}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(Ae.Yw,{type:"number",inputClassName:"stepperInfoText",refVar:jt==null||(R=jt.digitalStepper)==null?void 0:R.value,value:Ne,max:ge,min:se,onConfirm:(qt,sn)=>this.handleIntChange(qt,"value",sn)})})]}),(0,t.jsxs)("div",{className:"line stepperInfo height-32",children:[(0,t.jsx)("label",{className:"left-label text_kbd",children:I18N.SettingPanel.font_size}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(pi.A,{disabled:!1,fontSize:Ke,checkMinFontSize:!0,refVar:jt==null||(q=jt.digitalStepper)==null?void 0:q.fontSize,handleChange:this.handleChangeFontSize,dispatch:dt})})]}),(0,t.jsxs)("div",{className:"line stepperInfo height-32",children:[(0,t.jsx)("label",{className:"left-label text_kbd",children:I18N.SettingPanel.font_color}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:"digitalStepper",attr:"textColor",color:it,onChange:this.handleChange})})]})]})})}}const Fp=m=>{let{children:x}=m;return(0,t.jsx)(t.Fragment,{children:x})},Vp={component:Wp,params:{},getter:[m=>{let{selectedItems:x}=m;const T=(0,ot.i)(x,"digitalStepper"),{min:R,max:q,value:se,fontSize:ge,textColor:Ne}=T;return{min:R,max:q,number:se,fontSize:ge,color:Ne,refVars:{digitalStepper:(0,Bt.xj)(x,"digitalStepper",["min","max","value","fontSize"])}}}],setter:{onChange:gt.c}},Hp=()=>[Fp,[Vp,"DigitalStepperInfo"]],Up=m=>{const{thumbSize:x,thumbPosition:T,thumbShadow:R,thumbBorderRadius:q,thumbBorder:se,thumbBackgroundColor:ge,isThumbBackgroundVisible:Ne}=m;return{position:T,size:x,borderRadius:q,border:se,background:ge,isBackgroundVisible:Ne,shadow:R}},Kp=m=>{const{trackSize:x,trackBorderRadius:T,trackForegroundColor:R,isTrackForegroundVisible:q,trackBackgroundColor:se,isTrackBackgroundVisible:ge,trackShadow:Ne}=m;return{size:x,borderRadius:T,foreground:R,isForegroundVisible:q,background:se,isBackgroundVisible:ge,shadow:Ne}};var Zc=e(2371);const zp=(0,s.i7)(["from{opacity:1;}to{opacity:0.3;}"]),Gp=s.Ay.div.withConfig({displayName:"styles__StyledBorderRadius",componentId:"sc-ptmxyw-0"})(["display:flex;align-items:center;.radius-set-controller{display:flex;height:24px;margin-right:8px;position:relative;&.can-not-set-single{width:auto;}svg{color:",";}.set-seperately{display:inline-flex;width:24px;vertical-align:middle;justify-content:center;align-items:center;transition:all 0.2s ease-in-out;cursor:pointer;border-radius:4px;&.active{background-color:",";svg{path:first-child{fill:",";}path:nth-child(2){fill:",";}path:nth-child(3){fill:",";}path:nth-child(4){fill:",";}}}&:not(.active):hover{background-color:",";}&:active{background-color:",";}}.set-all{display:flex;width:24px;justify-content:space-around;align-items:center;cursor:pointer;transition:all 0.2s ease-in-out;border-radius:4px;&.active{background-color:",";}&:not(.active):hover{background-color:",";}&:active{background-color:",";}}.seperate-dropdown{position:relative;.expand-icon{position:absolute;right:6px;line-height:18px;color:#c8cdd0;svg{transform:rotate(180deg);transition:all 0.2s ease-out;}}&.is-open{.expand-icon{svg{transform:rotate(0);}}}}.radiusActiveIcon{position:absolute;width:5px;height:5px;display:none;path{fill:",";}&.tl{top:6px;left:30px;}&.tr{top:6px;right:5px;transform:rotate(90deg);}&.bl{left:30px;bottom:6px;transform:rotate(-90deg);}&.br{right:5px;bottom:6px;transform:rotate(180deg);}&.animated{display:inline-block;animation:"," 0.4s ease-in-out 0.2s 4 alternate;}}}.seperate-radius-input{.set-all-input{height:28px;}.seperate-set-area{display:flex;width:154px;.separate-input{height:28px;.title{padding-left:11px;}&:not(.is-active){border-color:",";}&.is-active{border-left:1px solid",";&:not(:first-child){border-left:1px solid ",";}}&:first-child{border-radius:4px 0 0 4px;&:hover{border-color:",";}}&:not(:first-child){border-radius:0;border-left:1px solid transparent;margin-left:-1px;&:hover{border-color:",";border-left:1px solid ",";}}&:last-child{border-radius:0 4px 4px 0;}}}}"],m=>m.theme.color_text_L1,m=>m.theme.color_btn_secondary_active,m=>m.activeRadius==="tl"?"transparent":m.theme.color_text_L1,m=>m.activeRadius==="tr"?"transparent":m.theme.color_text_L1,m=>m.activeRadius==="bl"?"transparent":m.theme.color_text_L1,m=>m.activeRadius==="br"?"transparent":m.theme.color_text_L1,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_btn_secondary_hover,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_proto,zp,m=>m.theme.color_bg_border_02,m=>m.theme.color_proto,m=>m.theme.color_proto,m=>m.theme.color_proto,m=>m.theme.color_proto,m=>m.theme.color_proto),Zp=["radiusTL","radiusTR","radiusBL","radiusBR"];class Yc extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{setAll:!0,activeRadius:""}),(0,i.A)(this,"setElementRef",x=>this.$element=x),(0,i.A)(this,"setRadiusActive",x=>this.$radiusActiveRef=x),(0,i.A)(this,"setSetAllFromProps",()=>{const{borderRadius:x}=this.props;this.setState({setAll:!(0,Zc.k4)(x)})}),(0,i.A)(this,"enableSetAll",()=>{var x;if(this.state.setAll)return;const{borderRadius:T,refVars:R}=this.props,{radiusTL:q}=T;this.setState({activeRadius:""}),this.handleSetAll(q,R==null||(x=R.borderRadius)==null?void 0:x.radiusTL)}),(0,i.A)(this,"enableSetSeparately",()=>{this.state.setAll&&this.handleSetSeparatelyForOnce(this.props.borderRadius)}),(0,i.A)(this,"handleSetAll",(x,T)=>{const{handleChange:R,attr:q}=this.props,se=parseInt(x)||0;if(!(0,Zc.k4)(this.props.borderRadius)){const{radiusTL:ge}=this.props.borderRadius;if(se===ge)return}R(se,q,T)}),(0,i.A)(this,"handleSetSeparately",(x,T,R)=>{const{handleChange:q,attr:se}=this.props,ge=parseInt(x)||0,{borderRadius:Ne,refVars:Ke}=this.props;if(ge===Ne[T])return;const{radiusTL:it,radiusTR:dt,radiusBR:jt,radiusBL:Ot}=Ne,qt={radiusTL:it,radiusTR:dt,radiusBR:jt,radiusBL:Ot,[T]:ge};let sn;typeof(Ke==null?void 0:Ke.borderRadius)!="object"?sn={}:sn={...Ke.borderRadius},q(qt,se,sn)}),(0,i.A)(this,"handleFocusSeparately",(x,T)=>{if(this.setState({activeRadius:T}),this.$radiusActiveRef){const R=this.$radiusActiveRef.querySelector(".radiusActiveIcon");R&&(R.classList.remove("animated"),window.requestAnimationFrame(()=>{R.classList.add("animated")}))}}),(0,i.A)(this,"handleSetSeparatelyForOnce",x=>{var T;const{handleChange:R,attr:q}=this.props,se={radiusTL:x,radiusTR:x,radiusBR:x,radiusBL:x},ge=(T=this.props.refVars)==null?void 0:T.borderRadius;R(se,q,typeof ge=="string"?{radiusTL:ge,radiusTR:ge,radiusBR:ge,radiusBL:ge}:void 0)}),(0,i.A)(this,"handleCancelActiveRadius",x=>{this.$element&&this.$element.contains(x.target)||this.setState({activeRadius:""})})}componentDidMount(){this.setSetAllFromProps()}componentDidUpdate(x){x.borderRadius!==this.props.borderRadius&&this.setSetAllFromProps()}render(){var x;const{canSetSingleRadius:T,borderRadius:R,className:q="",refVars:se}=this.props,{activeRadius:ge,setAll:Ne}=this.state;let Ke;typeof R!="number"?Ke=R:Ke={radiusTL:R,radiusTR:R,radiusBR:R,radiusBL:R};const it=(x=this.props.refVars)==null?void 0:x.borderRadius,dt=Ne?typeof it=="string"?it:void 0:typeof it=="object"?it:void 0;return(0,t.jsxs)(Gp,{className:q,activeRadius:ge,children:[(0,t.jsxs)("div",{className:p()("radius-set-controller",!T&&"can-not-set-single"),children:[(0,t.jsx)(Q.P,{iconClassName:p()("set-all",{active:Ne}),onClick:this.enableSetAll,name:"design/br_set_all",content:I18N.SettingPanel.radius,direction:"down",tagName:"SVGIcon"}),T&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Q.P,{iconClassName:p()("set-seperately",{active:!Ne}),onClick:this.enableSetSeparately,name:"design/br_set_separately",content:I18N.SettingPanel.uni_radius,direction:"down",tagName:"SVGIcon"}),(0,t.jsx)("div",{ref:this.setRadiusActive,children:(0,t.jsx)(b.C,{name:"design/settingPanel/radius/active",className:p()("radiusActiveIcon",ge)})})]})]}),(0,t.jsx)("div",{className:"seperate-radius-input",children:Ne?(0,t.jsx)(Ae.Yw,{type:"number",inputClassName:"set-all-input width-66",min:0,max:9999,value:typeof R=="object"?R.radiusTL:R,refVar:dt,disabled:!Ne,onConfirm:this.handleSetAll}):(0,t.jsxs)("div",{className:"seperate-set-area",ref:this.setElementRef,children:[Zp.map(jt=>(0,t.jsx)(Ae.Yw,{attr:jt,type:"number",className:"seperate-input",min:0,max:9999,refVar:dt==null?void 0:dt[jt],value:Ke[jt],onFocus:this.handleFocusSeparately,onConfirm:this.handleSetSeparately},jt)),ge&&(0,t.jsx)(Ze.A,{target:document,onClick:this.handleCancelActiveRadius})]})})]})}}const U0=s.Ay.section.withConfig({displayName:"style__StyledSliderTrackSettings",componentId:"sc-mx1b6z-0"})(["width:240px;padding:0 14px;color:",";.line{display:flex;}"],m=>m.theme.color_text_L2),Xc=s.Ay.section.withConfig({displayName:"style__StyledSliderSettings",componentId:"sc-mx1b6z-1"})(["width:240px;padding:0 14px;color:",";.appearance-line{display:flex;align-items:center;color:",";.left-label{height:14px;color:",";line-height:14px;white-space:nowrap;}}.slider-setting-line{display:flex;align-items:center;.label-with-margin{flex-shrink:0;margin-right:14px;&:lang(en){width:68px;margin-right:0;}}&.slider-position{[type=slider]{width:92px;margin:0 8px;.rail{.fill{background-color:#1684fc;}}}.input-number{width:52px;}}&.size-setting{.input-number{width:64px;}}}"],m=>m.theme.color_text_L2,m=>m.theme.color_text_L2,m=>m.theme.color_text_L2),Yp=[8,16,24,32,40,48,56,64,72,80].map(m=>({label:m,value:m})),$c="slider_thumb_settings",Qc="mp_"+$c;class Xp extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,Ct.Yt)(Qc,!0,Ct.qW.Boolean)}),(0,i.A)(this,"handleSliderThumbAttrChange",(x,T,R)=>{const{onChange:q}=this.props;q({value:x,attr:T,refVar:R})}),(0,i.A)(this,"handleSliderThumbAttrConfirm",(x,T)=>{this.handleSliderThumbAttrChange(x,T),sdkStore.combineMerge(T+"-update")}),(0,i.A)(this,"handleThumbPositionChange",(x,T)=>{x=parseInt(x),x>100&&(x=100),x<0&&(x=0);const{onChange:R}=this.props;R({value:x,attr:"thumbPosition",refVar:T})}),(0,i.A)(this,"handleThumbSizeChange",(x,T)=>{x=parseInt(x),x>80&&(x=80),x<2&&(x=2);const{onChange:R}=this.props;R({value:x,attr:"thumbSize",refVar:T})}),(0,i.A)(this,"handleSliderThumbAttrMouseDown",x=>sdkStore.combineMergeMark(x+"-update")),(0,i.A)(this,"handleSubChange",()=>{const{show:x}=this.state;(0,Ct.a0)(Qc,!x,Ct.qW.Boolean),this.setState({show:!x})})}render(){const{position:x,size:T,borderRadius:R,background:q,isBackgroundVisible:se,border:ge,shadow:Ne,refVars:Ke}=this.props,{show:it}=this.state;return(0,t.jsx)(rn.A,{collapse:!it,title:I18N.SettingPanel.inspector[$c],onChange:this.handleSubChange,children:(0,t.jsxs)(Xc,{children:[(0,t.jsxs)("div",{className:"slider-setting-line slider-position height-32",children:[(0,t.jsx)("label",{style:{flexShrink:0},children:I18N.SettingPanel.thumb_position}),(0,t.jsx)(Re.A,{attr:"thumbPosition",className:"slider-thumb-position-setting",value:x,max:100,min:0,onChange:this.handleSliderThumbAttrChange,onConfirm:this.handleSliderThumbAttrConfirm,onMouseDown:this.handleSliderThumbAttrMouseDown}),(0,t.jsx)(Ae.Yw,{type:"number",inputClassName:"input-number",attr:"thumbPosition",refVar:Ke==null?void 0:Ke.thumbPosition,value:x,min:0,max:100,suffix:"%",onConfirm:this.handleThumbPositionChange})]}),(0,t.jsxs)("div",{className:"slider-setting-line size-setting height-32",children:[(0,t.jsx)("label",{className:"label-with-margin",children:I18N.SettingPanel.thumb_size}),(0,t.jsx)(Ae.Yw,{type:"number",value:T,attr:"thumbSize",refVar:Ke==null?void 0:Ke.thumbSize,min:2,max:80,optionList:Yp,onConfirm:this.handleThumbSizeChange})]}),(0,t.jsx)("div",{className:"slider-setting-line height-32",children:(0,t.jsx)(Yc,{attr:"thumbBorderRadius",canSetSingleRadius:!1,borderRadius:R,refVars:{borderRadius:Ke==null?void 0:Ke.thumbBorderRadius},handleChange:this.handleSliderThumbAttrChange})}),(0,t.jsxs)("div",{className:"slider-setting-line margin-left-n6 height-32",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(bt.A,{mode:"input",className:bt.p,attr:"isThumbBackgroundVisible",isChecked:se,onChange:this.handleSliderThumbAttrChange}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.fill})]}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:"slider",attr:"thumbBackgroundColor",attrPanel:"thumb",color:q,onChange:this.handleSliderThumbAttrChange})]}),(0,t.jsx)(sr,{className:"slider-setting-line height-32",attrPanel:"thumb",border:ge,canBorderWidth:!0,canBorderStyle:!0,handleChange:this.handleSliderThumbAttrChange,supAttr:"slider-thumbBorder",colorButtonAttr:"bdrColor",borderAttr:"thumbBorder",refVars:Ke==null?void 0:Ke.thumbBorder}),(0,t.jsx)(Kl,{className:"margin-left-n6",shadow:Ne,handleChange:this.handleSliderThumbAttrChange,apattr:"thumbShadow",supAttr:"slider-thumbShadow",refVars:Ke==null?void 0:Ke.thumbShadow})]})})}}const $p=[2,4,6,8,10,12,14,16,18,20].map(m=>({label:m,value:m})),Jc="slider_track_settings",qc="mp_"+Jc;class Qp extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,Ct.Yt)(qc,!0,Ct.qW.Boolean)}),(0,i.A)(this,"handleSliderTrackAttrChange",(x,T,R)=>{const{onChange:q}=this.props;q({value:x,attr:T,refVar:R})}),(0,i.A)(this,"handleTrackSizeChange",(x,T)=>{const{onChange:R}=this.props;x=parseInt(x),x<2&&(x=2),x>20&&(x=20),R({value:x,attr:"trackSize",refVar:T})}),(0,i.A)(this,"handleSubChange",()=>{const{show:x}=this.state;(0,Ct.a0)(qc,!x,Ct.qW.Boolean),this.setState({show:!x})})}render(){const{size:x,borderRadius:T,background:R,isBackgroundVisible:q,isForegroundVisible:se,foreground:ge,shadow:Ne,refVars:Ke}=this.props,{show:it}=this.state;return(0,t.jsx)(rn.A,{collapse:!it,title:I18N.SettingPanel.inspector[Jc],onChange:this.handleSubChange,children:(0,t.jsxs)(Xc,{children:[(0,t.jsx)("div",{className:"slider-setting-line height-32",children:(0,t.jsx)(Yc,{attr:"trackBorderRadius",canSetSingleRadius:!1,borderRadius:T,handleChange:this.handleSliderTrackAttrChange,refVars:{borderRadius:Ke==null?void 0:Ke.trackBorderRadius}})}),(0,t.jsxs)("div",{className:"slider-setting-line size-setting height-32",children:[(0,t.jsx)("label",{className:"label-with-margin",children:I18N.SettingPanel.track_size}),(0,t.jsx)(Ae.Yw,{type:"number",value:x,attr:"trackSize",refVar:Ke==null?void 0:Ke.trackSize,onConfirm:this.handleTrackSizeChange,min:2,max:20,optionList:$p})]}),(0,t.jsxs)("div",{className:"slider-setting-line margin-left-n6 height-32",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:"isTrackBackgroundVisible",isChecked:q,onChange:this.handleSliderTrackAttrChange}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.track_background_color})]}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:"slider",attr:"trackBackgroundColor",attrPanel:"track",color:R,onChange:this.handleSliderTrackAttrChange})]}),(0,t.jsxs)("div",{className:"slider-setting-line margin-left-n6 height-32",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:"isTrackForegroundVisible",isChecked:se,onChange:this.handleSliderTrackAttrChange}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.track_foreground_color})]}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,attr:"trackForegroundColor",supAttr:"slider",attrPanel:"track",color:ge,onChange:this.handleSliderTrackAttrChange})]}),(0,t.jsx)(Kl,{className:"slider-setting-line shadow-line margin-left-n6",shadow:Ne,apattr:"trackShadow",supAttr:"slider-trackShadow",refVars:Ke==null?void 0:Ke.trackShadow,handleChange:this.handleSliderTrackAttrChange})]})})}}const Jp=m=>{let{track:x,thumb:T,selections:R,refVars:q,dispatch:se,onChange:ge}=m;const Ne=Ke=>{let{value:it,attr:dt,refVar:jt}=Ke;ge({value:it,attr:dt,selections:R,refVar:jt,dispatch:se})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Qp,{...x,refVars:q,onChange:Ne}),(0,t.jsx)(Xp,{...T,refVars:q,onChange:Ne})]})},qp=m=>{let{children:x}=m;return(0,t.jsx)(t.Fragment,{children:x})},eh={component:Jp,params:{},getter:[m=>{let{selectedItems:x}=m;const T=x[0].hotAttr;return{thumb:Up(T.slider),track:Kp(T.slider),refVars:(0,Bt.xj)(x,"slider",["thumbBorderRadius","thumbSize","trackBorderRadius","trackSize","thumbPosition","thumbBorder","thumbShadow","trackShadow"])}}],setter:{onChange:m=>(0,gt.c)({...m,supAttr:"slider"})}},th=()=>[qp,[eh]],nh=s.Ay.section.withConfig({displayName:"styles__StyledTabBarSelected",componentId:"sc-osxqby-0"})(["padding:0 10px 0 16px;color:",";.slider-setting-line{display:flex;align-items:center;}"],m=>m.theme.color_text_L2),ed="tab_bars_selected",td="mp_"+ed;class oh extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,Ct.Yt)(td,!0,Ct.qW.Boolean)}),(0,i.A)(this,"handleChange",(x,T)=>{const{onChange:R,dispatch:q,selections:se}=this.props;R({value:x,attr:T,dispatch:q,supAttr:"mobileTabBars",selections:se})}),(0,i.A)(this,"handleCheckOnchange",(x,T)=>{this.handleChange(x,T)}),(0,i.A)(this,"handleSubChange",()=>{const{show:x}=this.state;(0,Ct.a0)(td,!x,Ct.qW.Boolean),this.setState({show:!x})})}render(){const{show:x}=this.state,{selectedTextColor:T,selectedIconColor:R,isShowSelectedText:q,isShowSelectedIcon:se}=this.props;return(0,t.jsx)(rn.A,{collapse:!x,title:I18N.SettingPanel.inspector[ed],onChange:this.handleSubChange,children:(0,t.jsxs)(nh,{children:[(0,t.jsxs)("div",{className:"slider-setting-line margin-left-n6 height-32",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:"isShowSelectedText",isChecked:q,onChange:this.handleCheckOnchange}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.mobile_tabs_text_color})]}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:"mobileTabBars",attr:"checkedTextColor",color:T,onChange:this.handleChange})]}),(0,t.jsxs)("div",{className:"slider-setting-line margin-left-n6 height-32",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:"isShowSelectedIcon",isChecked:se,onChange:this.handleCheckOnchange}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.mobile_tabs_icon_color})]}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:"mobileTabBars",attr:"checkedIconColor",color:R,onChange:this.handleChange})]})]})})}}const sh=m=>{let{children:x}=m;return(0,t.jsx)(t.Fragment,{children:x})},ih={component:oh,params:{isShowAccordionMode:!0},getter:[m=>{let{selectedItems:x}=m;const{checkedTextColor:T,checkedIconColor:R,isShowSelectedText:q,isShowSelectedIcon:se}=(0,ot.i)(x,"mobileTabBars");return{selectedTextColor:T,selectedIconColor:R,isShowSelectedText:q,isShowSelectedIcon:se}}],setter:{onChange:gt.c}},ah=()=>[sh,[ih,"MobileTabBarsInfo"]];var $l=e(25067);const rh=s.Ay.section.withConfig({displayName:"styles__StyledSelectionControlTypeSetting",componentId:"sc-lft5f0-0"})(["padding:0 14px;display:flex;align-items:center;ul{display:flex;align-items:center;li{display:inline-block;width:24px;height:24px;border-radius:4px;&:first-child{margin-right:4px;}a{width:24px;height:24px;svg{width:24px;height:24px;color:",";}&.active{background-color:",";}&:not(.active):hover{background-color:"," !important;}}}}"],m=>m.theme.color_text_L1,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_btn_secondary_hover);var ir=function(m){return m.Radio="radio",m.Checkbox="checkbox",m}(ir||{});const lh=m=>{let{typeSelected:x,optionData:T,onChange:R,dispatch:q,selections:se}=m;const ge=function(Ke,it,dt){dt===void 0&&(dt="selectionControl"),R({value:Ke,attr:it,dispatch:q,supAttr:dt,selections:se})},Ne=Ke=>{if(Ke!==x&&(ge(Ke,"type"),Ke===ir.Radio)){let it=!1;const dt=di()(T).map(jt=>it?{...jt,data:{...jt.data,selected:!1}}:(jt.data.selected&&(it=!0),jt));ge(dt,"optionData",null)}};return(0,t.jsx)(rh,{className:"height-32",children:(0,t.jsx)("ul",{children:Object.keys(ir).map(Ke=>{const it=ir[Ke],dt=it===x;return(0,t.jsx)("li",{children:(0,t.jsx)($l.A,{active:dt,svgIconName:"setting_panel/selection_control/"+it,onClick:()=>Ne(it)})},it)})})})},nd="selection_control_type_panel",od="mp_"+nd,ch=m=>{let{children:x}=m;const[T,R]=(0,h.useState)((0,Ct.Yt)(od,!0,Ct.qW.Boolean)),q=()=>{(0,Ct.a0)(od,!T,Ct.qW.Boolean),R(!T)};return(0,t.jsx)(rn.A,{collapse:!T,title:I18N.SettingPanel.inspector[nd],onChange:q,children:x})},dh={component:lh,params:{},getter:[m=>{let{selectedItems:x}=m;return{typeSelected:(0,ot.i)(x,"selectionControl").type,optionData:(0,ot.i)(x,"optionData")}}],setter:{onChange:gt.c}},ph=()=>[ch,[dh]],hh=s.Ay.section.withConfig({displayName:"styles__StyledSelectionControlAttrSettings",componentId:"sc-e7k6mf-0"})(["border-top:1px solid ",";padding:8px 16px 8px 16px;.line{display:flex;align-items:center;.left-label{white-space:nowrap;}.right-content{width:140px;}&.selection-control-disabled-setting{.right-content{padding-left:7px;position:relative;.is-icon-button{position:absolute;left:-14px;top:-4px;}}&:hover .icon-bind{display:block;}}}.selection-control-style{justify-content:flex-start;ul{display:inline-flex;transform:translateX(-3px);flex:1;li{display:inline-flex;width:24px;height:24px;border-radius:4px;&:first-child{margin-right:4px;}a{width:24px;height:24px;svg{width:24px;height:24px;color:",";}&.active{background-color:",";}&:not(.active):hover{background-color:"," !important;}}}}.gap-input{width:66px;span.title{padding-left:0;}svg.gap-icon{width:24px;height:24px;}}}"],m=>m.theme.color_bg_border_01,m=>m.theme.color_text_L2,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_btn_secondary_hover);var Ql=function(m){return m.Row="row",m.Column="column",m}(Ql||{});const uh=m=>{let{disabled:x,fontSize:T,layoutSelected:R,gap:q,w:se,h:ge,selections:Ne,refVars:Ke,onChange:it,dispatch:dt}=m;const jt=(Ot,qt,sn)=>{if(qt==="fontSize"){const Wn=Ot/T,kn=Math.round(q*Wn),lo=Math.round(se*Wn),Wo=Math.round(ge*Wn);it({value:kn,attr:"gap",dispatch:dt,supAttr:"selectionControl",selections:Ne}),it({value:lo,attr:"w",dispatch:dt,selections:Ne}),it({value:Wo,attr:"h",dispatch:dt,selections:Ne})}it({value:Ot,attr:qt,dispatch:dt,supAttr:"selectionControl",selections:Ne,refVar:sn})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"selection-control-disabled-setting line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.switch_disabled}),(0,t.jsxs)("div",{className:"right-content",children:[(0,t.jsx)(Ae.Yw,{type:"boolean",refVar:Ke==null?void 0:Ke.isDisabled,value:x,isIconButton:!(Ke!=null&&Ke.isDisabled),showName:!0,onChange:(Ot,qt)=>jt(Ot,"isDisabled",qt)}),!(Ke!=null&&Ke.isDisabled)&&(0,t.jsx)(fi.A,{size:"small",isIOS:!0,isChecked:x,onChange:Ot=>jt(Ot,"isDisabled")})]})]}),(0,t.jsxs)("div",{className:"selection-control-size-setting line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.design.size}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(pi.A,{attr:"fontSize",fontSize:T,handleChange:jt,refVar:Ke==null?void 0:Ke.fontSize,dispatch:dt})})]}),(0,t.jsxs)("div",{className:"selection-control-style line height-32",children:[(0,t.jsx)("ul",{children:Object.keys(Ql).map(Ot=>{const qt=Ql[Ot],sn=qt===R;return(0,t.jsx)("li",{children:(0,t.jsx)(C.Q,{icon:(0,t.jsx)($l.A,{active:sn,svgIconName:"setting_panel/selection_control/"+qt}),content:I18N.SettingPanel.inspector["selection_control_"+qt],onClick:()=>jt(qt,"layout"),direction:"down"})},qt)})}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(Ae.Yw,{type:"number",refVar:Ke==null?void 0:Ke.gap,value:q,inputClassName:"gap-input step-input-width-72",title:(0,t.jsx)(b.C,{name:"setting_panel/smart_selection/col_gap",className:"gap-icon"}),min:2,max:9999,onConfirm:(Ot,qt)=>jt(Ot,"gap",qt)})})]})]})},gh=m=>{let{children:x}=m;return(0,t.jsx)(hh,{children:x})},mh={component:uh,params:{},getter:[m=>{let{selectedItems:x}=m;const T=(0,ot.i)(x,"selectionControl"),R=(0,ot.i)(x,"w"),q=(0,ot.i)(x,"h");return{fontSize:T.fontSize,layoutSelected:T.layout,gap:T.gap,disabled:T.isDisabled,w:R,h:q,refVars:(0,Bt.xj)(x,"selectionControl",["isDisabled","fontSize","gap"])}}],setter:{onChange:gt.c}},fh=()=>[gh,[mh]],xh=s.Ay.section.withConfig({displayName:"styles__StyledSelectionControlColorSettings",componentId:"sc-m436s5-0"})(["padding:0 16px;.line{justify-content:flex-start;}label.right-content{color:",";}"],m=>m.theme.color_text_L2),sd=m=>{let{collapseName:x,buttonColorAttr:T,buttonColor:R,fontColorAttr:q,fontColor:se,handleChange:ge,isBorderVisible:Ne,isTextVisible:Ke,buttonIsVisibleAttr:it,fontIsVisibleAttr:dt,dispatch:jt}=m;const[Ot,qt]=(0,h.useState)((0,Ct.Yt)("mp_"+x,!0,Ct.qW.Boolean)),sn=()=>{(0,Ct.a0)("mp_"+x,!Ot,Ct.qW.Boolean),qt(!Ot)};return(0,t.jsx)(rn.A,{collapse:!Ot,title:I18N.SettingPanel.inspector[x],onChange:sn,children:(0,t.jsxs)(xh,{children:[(0,t.jsxs)("div",{className:"line height-32 margin-left-n6",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:it,isChecked:Ne,onChange:ge}),(0,t.jsx)("label",{className:"right-content",children:I18N.SettingPanel.inspector.digital_stepper_button})]}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,attr:T,supAttr:"selectionControl",color:R,onChange:ge})]}),(0,t.jsxs)("div",{className:"line height-32 margin-left-n6",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:dt,isChecked:Ke,onChange:ge}),(0,t.jsx)("label",{className:"right-content",children:I18N.SettingPanel.inspector.text_color})]}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,attr:q,supAttr:"selectionControl",color:se,onChange:ge})]})]})})},yh=m=>{let{borderColor:x,textColor:T,checkedBorderColor:R,checkedTextColor:q,isCheckedTextVisible:se,isCheckedBorderVisible:ge,isBorderVisible:Ne,isTextVisible:Ke,selections:it,dispatch:dt,onChange:jt}=m;const Ot=(qt,sn)=>{jt({value:qt,attr:sn,dispatch:dt,supAttr:"selectionControl",selections:it})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(sd,{buttonColorAttr:"borderColor",buttonColor:x,isBorderVisible:Ne,fontColorAttr:"textColor",fontColor:T,buttonIsVisibleAttr:"isBorderVisible",fontIsVisibleAttr:"isTextVisible",isTextVisible:Ke,collapseName:"selection_control_unchecked_style_panel",dispatch:dt,handleChange:Ot}),(0,t.jsx)(sd,{dispatch:dt,handleChange:Ot,buttonColorAttr:"checkedBorderColor",buttonColor:R,isBorderVisible:ge,fontColorAttr:"checkedTextColor",fontColor:q,buttonIsVisibleAttr:"isCheckedBorderVisible",fontIsVisibleAttr:"isCheckedTextVisible",isTextVisible:se,collapseName:"selection_control_checked_style_panel"})]})},vh=m=>{let{children:x}=m;return(0,t.jsx)(t.Fragment,{children:x})},bh={component:yh,params:{},getter:[m=>{let{selectedItems:x}=m;const{checkedTextColor:T,checkedBorderColor:R,borderColor:q,textColor:se,isCheckedTextVisible:ge,isCheckedBorderVisible:Ne,isBorderVisible:Ke,isTextVisible:it}=(0,ot.i)(x,"selectionControl");return{checkedTextColor:T,checkedBorderColor:R,borderColor:q,textColor:se,isCheckedTextVisible:ge,isCheckedBorderVisible:Ne,isBorderVisible:Ke,isTextVisible:it}}],setter:{onChange:gt.c}},Ch=()=>[vh,[bh,"SelectionControlColorSettingsInfo"]];var Mn=e(18390);const Bi=[{name:"bar_chart",type:"bar_chart"},{name:"horizontal_bar_chart",type:"horizontal_bar_chart"},{name:"line_chart",type:"line_chart"},{name:"line_area_chart",type:"line_area_chart"},{name:"mixed_bar_line_chart",type:"mixed_bar_line_chart"},{name:"radar_chart",type:"radar_chart"},{name:"radial_polar_chart",type:"radial_polar_chart"}],Jl=[{name:"pie_chart",type:"pie_chart"},{name:"ring_chart",type:"ring_chart"},{name:"nightingale_chart",type:"nightingale_chart"}],Sh={bar_chart:Bi,horizontal_bar_chart:Bi,line_chart:Bi,line_area_chart:Bi,pie_chart:Jl,ring_chart:Jl,radar_chart:Bi,mixed_bar_line_chart:Bi,radial_polar_chart:Bi,nightingale_chart:Jl},va=[{name:"normal",type:"normal"},{name:"group",type:"group"},{name:"acc",type:"acc"},{name:"accPer",type:"accPer"}],_h={bar_chart:va,horizontal_bar_chart:va,line_chart:va,line_area_chart:va,pie_chart:[],ring_chart:[],radar_chart:[],mixed_bar_line_chart:[],radial_polar_chart:va,nightingale_chart:[]},wh=["progress_chart","waterfall_chart","scatter_chart","funnel_chart","gauge_chart","liquid_fill_gauge_chart","map_chart","bubble_chart","sunburst_chart","word_cloud_chart","sankey_chart","boxplot_chart"],Ih=[Mn.N.pie_chart,Mn.N.ring_chart,Mn.N.progress_chart,Mn.N.nightingale_chart,Mn.N.gauge_chart,Mn.N.scatter_chart,Mn.N.bubble_chart,Mn.N.sunburst_chart,Mn.N.boxplot_chart,Mn.N.mixed_bar_line_chart,Mn.N.waterfall_chart,Mn.N.bar_chart,Mn.N.horizontal_bar_chart],Th=[Mn.N.progress_chart,Mn.N.waterfall_chart,Mn.N.gauge_chart,Mn.N.map_chart,Mn.N.boxplot_chart],Ah=[Mn.N.scatter_chart,Mn.N.bubble_chart,Mn.N.sunburst_chart,Mn.N.boxplot_chart,Mn.N.sankey_chart],Ph=s.Ay.section.withConfig({displayName:"styles__StyledTypeSetting",componentId:"sc-c9lkva-0"})(["&.chartTypeSettings{padding:0 !important;ul.typeList{display:flex;align-items:center;height:32px;&.subTypeList{height:72px;}.chartTypeItem{width:24px;height:24px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:4px;margin-right:6px;color:",";svg{width:14px;height:14px;}&.nightingale_chart{svg{width:24px;height:24px;}}&:hover{background-color:",";}&.chartType{&.active{background-color:",";}}&.disabled{cursor:not-allowed;.svg-icon{color:",";}}}li.chartCategory{display:flex;flex-direction:column;align-items:center;margin-right:10px;span{color:",";&:lang(en){font-size:11px;}}.chartCategoryItem{width:44px;height:36px;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:4px;margin-bottom:4px;svg{width:28px;height:28px;path,rect{fill:#1684fc;}.axis{fill:#5b6b73;}.category{fill:#84bfff;}}&.lineItem{svg{path,rect{fill:none;stroke:#1684fc;}.axis{fill:#5b6b73;stroke:none;}.category{fill:none;stroke:#84bfff;}}}&:hover{background-color:",";}&.active{background-color:",";}}}}.dividing-line{margin:8px 0;border-top:1px solid ",";}}"],m=>m.theme.color_text_L1,m=>m.theme.color_btn_secondary_hover,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_text_L3,m=>m.theme.color_text_L2,m=>m.theme.color_btn_secondary_hover,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_bg_border_01),id="chart_settings_type",ad="mp_"+id;class Mh extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,Ct.Yt)(ad,!0,Ct.qW.Boolean)}),(0,i.A)(this,"handleChangeType",x=>{const{handleChange:T,chartData:R,handleChangeHasSupAttr:q}=this.props;if(!(x===Mn.N.mixed_bar_line_chart&&R.series.length<2)&&(T(x,"chartType"),x===Mn.N.mixed_bar_line_chart)){T("group","chartCategory");const ge=R.series.map((Ne,Ke)=>Ne.type?Ne:{...Ne,type:Ke===R.series.length-1?"line":"bar"});q(ge,"series","chartData")}}),(0,i.A)(this,"handleChangeCategory",x=>{const{handleChange:T}=this.props;T(x,"chartCategory")}),(0,i.A)(this,"handleSubChange",()=>{const{show:x}=this.state;(0,Ct.a0)(ad,!x,Ct.qW.Boolean),this.setState({show:!x})})}render(){const{type:x,category:T,chartData:R}=this.props,{show:q}=this.state,se=Sh[x],ge=_h[x];return(0,t.jsx)(rn.A,{collapse:!q,title:I18N.SettingPanel.inspector[id],onChange:this.handleSubChange,children:(0,t.jsxs)(Ph,{type:"panel-body",className:"chartTypeSettings",children:[se.length>0&&(0,t.jsx)("ul",{className:"typeList",children:se.map((Ne,Ke)=>{const it=Ne.type==="mixed_bar_line_chart"&&R.series.length<2;return(0,t.jsx)(C.Q,{icon:(0,t.jsx)(b.C,{name:"design/settingPanel/chart/type/"+Ne.name}),onClick:()=>!it&&this.handleChangeType(Ne.type),content:it?Eh():I18N.w[Ne.name],direction:"down",className:p()("chartType chartTypeItem",Ne.name,Ne.type===x&&"active",{disabled:it})},Ke)})}),ge.length>0&&(0,t.jsxs)(t.Fragment,{children:[(se==null?void 0:se.length)>0&&(0,t.jsx)("div",{className:"dividing-line"}),(0,t.jsx)("ul",{className:p()("typeList","subTypeList"),children:ge.map((Ne,Ke)=>(0,t.jsxs)("li",{className:"chartCategory",children:[(0,t.jsx)("div",{className:p()("chartCategoryItem",Ne.type===T&&"active",x===Mn.N.line_chart&&"lineItem"),onClick:()=>this.handleChangeCategory(Ne.type),children:(0,t.jsx)(b.C,{name:"design/settingPanel/chart/type/"+x+"/subType/"+Ke})}),(0,t.jsx)("span",{children:I18N.SettingPanel.chartInfo.type[Ne.name]})]},Ke))})]})]})})}}const Eh=()=>(0,t.jsx)("span",{children:"\u7EC4\u5408\u56FE\u8868\u81F3\u5C11\u9700\u8981\u4E24\u4E2A\u6570\u636E\u7CFB\u5217"});var Lh=e(79186),ar=e(68033);const Nh=s.Ay.section.withConfig({displayName:"styles__StyledThemeSetting",componentId:"sc-1iy2i8y-0"})(["height:44px;display:flex;align-items:center;label.chartSelect{width:100%;height:28px;background-color:",";border:1px solid ",";border-radius:4px;&.is-open:not(.unstyled){background-color:",";border-color:",";box-shadow:none;}&:not(.unstyled):hover{border-color:"," !important;}button span.Ellipsis{display:flex;align-items:center;justify-content:center;width:100%;height:100%;ul.chartThemeWrap{width:100%;height:100%;display:flex;align-items:center;li{width:16px;height:16px;margin-right:4px;border-radius:1px;}}}.caret{margin:0;flex-shrink:0;width:26px;display:flex;justify-content:center;align-items:center;padding:0;color:",";svg{width:26px;height:26px;transform:rotate(0deg);}}&:not(.is-disabled):not(.readonly):hover{border-color:",";button{width:calc(100% - 26px);}.caret{padding:0;color:",";}}&.is-open{border-color:transparent;}}"],m=>m.theme.color_bg_white,m=>m.theme.color_bg_border_02,m=>m.theme.color_bg_white,m=>m.theme.color_bg_border_02,m=>m.theme.color_bg_border_02,m=>m.theme.color_text_L3,m=>m.theme.color_bg_border_02,m=>m.theme.color_text_L1),Dh=(0,s.DU)([".chartSelectMenu{display:grid;grid-template-columns:repeat(auto-fill,36px);;grid-row-gap:8px;grid-column-gap:15px;border-radius:4px;padding:8px;margin:0;overflow:hidden;background-color:",";width:150px;grid-template-columns:repeat(auto-fill,40px);grid-gap:6px 10px;li.SelectOption{width:40px;height:28px;border-radius:4px;border:1px solid transparent;overflow:hidden;padding:1px;background-color:",";&:not(.is-active):hover{background-color:"," !important;border-color:rgba(22,132,252,0.5);}&.is-active{background-color:"," !important;border-color:#1684FC;}span,ul.chartThemeWrap{overflow:hidden;display:flex;flex-wrap:wrap;width:36px;height:24px;padding:0 !important;align-items:center;justify-content:center;border-radius:2px;li{width:12px;height:12px;list-style:none;}}}}"],m=>m.theme.color_background_white_modal,m=>m.theme.color_bg_white,m=>m.theme.color_bg_white,m=>m.theme.color_bg_white),rd="chart_settings_theme",ld="mp_"+rd;class kh extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,Ct.Yt)(ld,!0,Ct.qW.Boolean)}),(0,i.A)(this,"handleChangeTheme",x=>{const{handleChange:T}=this.props;T(+x,"chartTheme")}),(0,i.A)(this,"handleSubChange",()=>{const{show:x}=this.state;(0,Ct.a0)(ld,!x,Ct.qW.Boolean),this.setState({show:!x})})}render(){const{theme:x}=this.props,{show:T}=this.state;return(0,t.jsx)(rn.A,{collapse:!T,title:I18N.SettingPanel.inspector[rd],onChange:this.handleSubChange,children:(0,t.jsxs)(Nh,{className:"themeTypeSettings",children:[(0,t.jsx)(Dh,{}),(0,t.jsx)(Lh.Ay,{className:"chartSelect",menuClassName:"chartSelectMenu",value:""+x,arrowSvg:(0,t.jsx)(b.C,{className:"triangle-icon",name:"common/expand@26"}),optionList:ar.B5.map((R,q)=>({label:(0,t.jsx)("ul",{className:"chartThemeWrap",children:R.map(se=>(0,t.jsx)("li",{style:{backgroundColor:se}},se))},q),value:""+q})),onChange:this.handleChangeTheme,onMouseEnter:this.handleChangeTheme})]})})}}var Oh=e(63986),Rh=e.n(Oh);const Bh=s.Ay.section.withConfig({displayName:"styles__StyledOptionSetting",componentId:"sc-1dgtit4-0"})([".gridOption{.border-collapse-body{margin-left:60px;.WorkspaceInputNumber{flex:0 0 66px;}.border-select-size-warp{.border-select-size{width:70px;}}.color-btn-has-box{margin-left:auto;justify-content:flex-end;}}}.appearance-line{display:flex;align-items:center;&.border-open{min-height:auto;}.left-label{margin-left:4px;color:",";flex:1;}&.chartOption{align-items:center;.chartInput{width:111px;min-width:74px;border-radius:4px;height:28px;padding-left:6px;color:",";border:1px solid ",";text-overflow:ellipsis;opacity:0;pointer-events:none;&.has-value:not(:focus){border:1px solid transparent;&:hover{border:1px solid ",";}}&.show{opacity:1;pointer-events:auto;}&.hasPadding{padding-left:32px;}&:focus{border:1px solid ",";outline:1px solid ",";outline-offset:-2px;}}}}.legendOption,.AxisOption,.label-option{.border-collapse-body{.color-btn-has-hex-input{margin-left:20px;}label.name{line-height:22px;width:auto;color:",";white-space:nowrap;}}}.legendOption{.border-collapse-body{.legendPos.radio-line{height:24px;flex:1;display:flex;justify-content:flex-end;padding-right:16px;.radio-option{width:24px;height:24px;border-radius:4px;max-width:24px;&:not(.active){color:",";}}}}}.AxisOption{.border-collapse-body{.right-content{width:111px;}label.WorkspaceInputNumber{&.width-66{width:66px;}&.font-size-input{width:66px;}}}}"],m=>m.theme.color_text_L2,m=>m.theme.color_text_L1,m=>m.theme.color_bg_border_02,m=>m.theme.color_bg_border_02,m=>m.theme.color_proto,m=>m.theme.color_proto,m=>m.theme.color_text_L2,m=>m.theme.color_text_L1),rr=(0,s.Ay)(Rc.Y).withConfig({displayName:"styles__StylesBorderOpener",componentId:"sc-1dgtit4-1"})([".border-collapse-body{justify-content:space-between;margin-left:22px;height:0;}&.gridOption{width:calc(100% + 6px);.appearance-line{",";}}"],Oi.B3);class cd extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleChangeGrid",(x,T)=>{const{grid:R,handleChange:q}=this.props,se={...R,[T]:x};q(se,"grid")})}render(){const{grid:x}=this.props,{bdrIsVisible:T,bdrColor:R,bdrStyle:q,bdrWidth:se}=x;return(0,t.jsxs)(rr,{className:p()("gridOption",{"is-open":T}),children:[(0,t.jsxs)("div",{className:"appearance-line border-open margin-left-n6 height-32",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:"bdrIsVisible",isChecked:T,onChange:this.handleChangeGrid}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.grid})]}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:"chartConfig-grid",attr:"bdrColor",color:R,onChange:this.handleChangeGrid})]}),(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":T}),children:[(0,t.jsxs)("div",{className:"border-select-size-warp",children:[(0,t.jsx)(Bc.v,{}),(0,t.jsx)(Be.mq,{className:p()("border-select-size"),attr:"bdrStyle",menuClassName:"border_style_select_menu",optionList:(0,ks.se)(),value:q,onChange:this.handleChangeGrid})]}),(0,t.jsx)(Ee.A,{className:"grid-border-width",attr:"bdrWidth",value:se,optionList:ks.xq,onConfirm:this.handleChangeGrid})]})]})}}(0,i.A)(cd,"propTypes",{grid:Ns().array,handleChange:Ns().func});class jh extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"FIX_OPTION_LIST",[{label:(0,t.jsx)(b.C,{size:24,name:"setting_panel/chart/legend/top"}),value:"top",tip_title:I18N.SettingPanel.chartInfo.legend.top},{label:(0,t.jsx)(b.C,{size:24,name:"setting_panel/chart/legend/bottom"}),value:"bottom",tip_title:I18N.SettingPanel.chartInfo.legend.bottom},{label:(0,t.jsx)(b.C,{size:24,name:"setting_panel/chart/legend/left"}),value:"left",tip_title:I18N.SettingPanel.chartInfo.legend.left},{label:(0,t.jsx)(b.C,{size:24,name:"setting_panel/chart/legend/right"}),value:"right",tip_title:I18N.SettingPanel.chartInfo.legend.right}]),(0,i.A)(this,"handleChangeLegend",(x,T)=>{const{legend:R,handleChange:q}=this.props,se={...R,[T]:x};q(se,"legend")}),(0,i.A)(this,"handleChangeLegendPos",x=>{this.handleChangeLegend(x,"legendPos")}),(0,i.A)(this,"handleChangeTextStyle",(x,T)=>{const{legend:{textStyle:R}}=this.props;this.handleChangeLegend({...R,[T]:x},"textStyle")})}render(){const{legend:x}=this.props,{isVisible:T,legendPos:R,textStyle:q}=x;return(0,t.jsxs)(rr,{className:p()("legendOption",{"is-open":T}),children:[(0,t.jsxs)("div",{className:"appearance-line border-open legend-show height-32 margin-left-n6",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:"isVisible",isChecked:T,onChange:this.handleChangeLegend}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.legend.title})]}),(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":T}),children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.chartInfo.legend.position}),(0,t.jsx)(uo.z,{className:"legendPos",options:this.FIX_OPTION_LIST,value:R,isLongTimeHover:!0,handleChange:this.handleChangeLegendPos})]}),q&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":T}),children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.font_size}),(0,t.jsx)(pi.A,{attr:"fontSize",fontSize:q.fontSize,handleChange:this.handleChangeTextStyle})]}),(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":T}),children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.font_color}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:"chartConfig-legend-textStyle",attr:"color",attrPanel:"legendText",color:q.color,onChange:this.handleChangeTextStyle})]})]})]})}}const Wh=[Mn.N.bar_chart,Mn.N.horizontal_bar_chart,Mn.N.line_chart,Mn.N.line_area_chart,Mn.N.mixed_bar_line_chart,Mn.N.waterfall_chart,Mn.N.scatter_chart,Mn.N.bubble_chart,Mn.N.radial_polar_chart,Mn.N.boxplot_chart,Mn.N.radar_chart],Fh=[Mn.N.scatter_chart,Mn.N.bubble_chart],Vh=[Mn.N.line_chart,Mn.N.line_area_chart,Mn.N.mixed_bar_line_chart],Hh=[Mn.N.bar_chart,Mn.N.horizontal_bar_chart,Mn.N.line_chart,Mn.N.line_area_chart,Mn.N.mixed_bar_line_chart,Mn.N.waterfall_chart,Mn.N.scatter_chart,Mn.N.bubble_chart,Mn.N.radial_polar_chart,Mn.N.boxplot_chart],K0=[Mn.N.pie_chart,Mn.N.ring_chart,Mn.N.nightingale_chart],z0=[Mn.N.bar_chart,Mn.N.horizontal_bar_chart,Mn.N.line_chart,Mn.N.line_area_chart,Mn.N.radar_chart,Mn.N.mixed_bar_line_chart,Mn.N.waterfall_chart,Mn.N.funnel_chart,Mn.N.liquid_fill_gauge_chart],Uh=[Mn.N.word_cloud_chart,Mn.N.map_chart],Kh=[Mn.N.progress_chart,Mn.N.funnel_chart,Mn.N.liquid_fill_gauge_chart,Mn.N.scatter_chart],zh=[Mn.N.progress_chart,Mn.N.gauge_chart,Mn.N.liquid_fill_gauge_chart,Mn.N.sunburst_chart,Mn.N.word_cloud_chart,Mn.N.boxplot_chart,Mn.N.sankey_chart],Gh=[Mn.N.progress_chart,Mn.N.radial_polar_chart,Mn.N.pie_chart,Mn.N.ring_chart,Mn.N.nightingale_chart,Mn.N.bar_chart,Mn.N.horizontal_bar_chart,Mn.N.line_chart,Mn.N.line_area_chart,Mn.N.radar_chart,Mn.N.mixed_bar_line_chart,Mn.N.waterfall_chart,Mn.N.funnel_chart,Mn.N.liquid_fill_gauge_chart,Mn.N.gauge_chart],Zh=[Mn.N.bar_chart,Mn.N.horizontal_bar_chart,Mn.N.line_chart,Mn.N.line_area_chart,Mn.N.radar_chart,Mn.N.mixed_bar_line_chart,Mn.N.waterfall_chart],Yh=[Mn.N.sunburst_chart,Mn.N.sankey_chart,Mn.N.gauge_chart],Xh=[Mn.N.sunburst_chart,Mn.N.sankey_chart],ba=2352135087,lr=-2352135088;class $h extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleChangeShowAxis",x=>{const{handleChange:T,axis:R}=this.props;sdkStore.combineMergeMark("update-chart-axis-visible"),T(x,"isShowAxis"),T({...R,isVisible:x},"axis"),sdkStore.combineMerge("update-chart-axis-visible")}),(0,i.A)(this,"handleChangeAxisNumber",(x,T,R,q)=>{const{axis:se,handleChange:ge}=this.props,Ke=q===""?void 0:x;if(typeof Number(x)!="number"||isNaN(x))return;const[it,dt]=T.split("_"),jt={...se,[dt]:{...se[dt],[it]:Ke}};sdkStore.combineMergeMark("update-chart-axis-"+T),dt==="yAxis"&&ge(Ke,it),ge(jt,"axis"),sdkStore.combineMerge("update-chart-axis-"+T)}),(0,i.A)(this,"handleChangeTextStyle",(x,T)=>{const{axis:R,handleChange:q}=this.props;q({...R,textStyle:{...R.textStyle,[T]:x}},"axis")}),(0,i.A)(this,"handleChangeAxisAttr",(x,T,R,q)=>{const{axis:se,handleChange:ge}=this.props,Ke=q===""?void 0:x;typeof Number(x)!="number"||isNaN(x)||(sdkStore.combineMergeMark("update-chart-axis-"+T),ge(Ke,T),ge({...se,[T]:Ke},"axis"),sdkStore.combineMerge("update-chart-axis-"+T))})}render(){const{type:x,axis:T}=this.props,{isVisible:R,xAxis:{minNum:q,maxNum:se},yAxis:{minNum:ge,maxNum:Ne},textAngle:Ke,interval:it,textStyle:{fontSize:dt,color:jt}}=T,Ot=Fh.includes(x),qt=x!==Mn.N.radar_chart,sn=!Ot&&x!==Mn.N.radar_chart;return(0,t.jsxs)(rr,{className:p()("AxisOption",{"is-open":R}),children:[(0,t.jsxs)("div",{className:p()("appearance-line","height-32","margin-left-n6","border-open","axis-show"),children:[(0,t.jsx)(bt.A,{className:bt.p,attr:"isShowAxis",isChecked:R,onChange:this.handleChangeShowAxis}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.axis.title})]}),Ot&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":R}),children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.chartInfo.axis.maxNumX}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(Ee.A,{className:"general-input axis-input-num axis-option-input width-66",attr:"maxNum_xAxis",max:ba,min:q||lr,value:se===void 0?I18N.SettingPanel.chartInfo.axis.auto:se,isNotVerify:se===void 0,onConfirm:this.handleChangeAxisNumber})})]}),(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":R}),children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.chartInfo.axis.minNumX}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(Ee.A,{className:"general-input axis-input-num axis-option-input width-66",attr:"minNum_xAxis",max:se||ba,min:lr,value:q===void 0?I18N.SettingPanel.chartInfo.axis.auto:q,isNotVerify:q===void 0,onConfirm:this.handleChangeAxisNumber})})]})]}),qt&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":R}),children:[(0,t.jsx)("label",{className:"name",children:Ot?I18N.SettingPanel.chartInfo.axis.maxNumY:I18N.SettingPanel.chartInfo.axis.maxNum}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(Ee.A,{className:"general-input axis-input-num axis-option-input width-66",attr:"maxNum_yAxis",max:ba,min:ge||lr,value:Ne===void 0?I18N.SettingPanel.chartInfo.axis.auto:Ne,isNotVerify:Ne===void 0,onConfirm:this.handleChangeAxisNumber})})]}),(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":R}),children:[(0,t.jsx)("label",{className:"name",children:Ot?I18N.SettingPanel.chartInfo.axis.minNumY:I18N.SettingPanel.chartInfo.axis.minNum}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(Ee.A,{className:"general-input axis-input-num axis-option-input width-66",attr:"minNum_yAxis",max:Ne||ba,min:lr,value:ge===void 0?I18N.SettingPanel.chartInfo.axis.auto:ge,isNotVerify:ge===void 0,onConfirm:this.handleChangeAxisNumber})})]})]}),sn&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":R}),children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.chartInfo.axis.interval}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(Ee.A,{className:"general-input axis-input-num axis-option-input width-66",attr:"interval",value:it===void 0?I18N.SettingPanel.chartInfo.axis.auto:it,max:ba,min:0,isNotVerify:it===void 0,onConfirm:this.handleChangeAxisAttr})})]}),(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":R}),children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.chartInfo.axis.textAngle}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(Ee.A,{className:"axis-option-input",attr:"textAngle",value:Ke,optionList:ks.Jh,suffix:"\xB0",max:360,min:0,onConfirm:this.handleChangeAxisAttr})})]})]}),(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":R}),children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.font_size}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(pi.A,{attr:"fontSize",fontSize:dt,handleChange:this.handleChangeTextStyle})})]}),(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":R}),children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.font_color}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:"chartConfig-axis-textStyle",attr:"color",attrPanel:"axisText",color:jt,onChange:this.handleChangeTextStyle})]})]})}}class cr extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleChangeIsVisible",x=>{const{supAttr:T,label:R,handleChange:q,type:se}=this.props,ge={...R,isVisible:x};if(sdkStore.combineMergeMark("update-chart-label-visible"),T==="label"){const Ne=["pie_chart","ring_chart","nightingale_chart"].includes(se)?"showHelpMark":"shLabel";q(x,Ne)}q(ge,T),sdkStore.combineMerge("update-chart-label-visible")}),(0,i.A)(this,"handleChangeTextStyle",(x,T)=>{const{label:R,supAttr:q,handleChange:se}=this.props;se({...R,textStyle:{...R.textStyle,[T]:x}},q)})}render(){const{label:x,title:T,canChangeColor:R,supAttr:q}=this.props,{isVisible:se,textStyle:{fontSize:ge,color:Ne}}=x;return(0,t.jsxs)(rr,{className:p()("label-option",{"is-open":se}),children:[(0,t.jsxs)("div",{className:p()("appearance-line","border-open","label-show","height-32","margin-left-n6"),children:[(0,t.jsx)(bt.A,{className:bt.p,attr:"isVisible",isChecked:se,onChange:this.handleChangeIsVisible}),(0,t.jsx)("label",{className:"left-label",children:T})]}),(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":se,"can-change-color":R}),children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.font_size}),(0,t.jsx)(pi.A,{attr:"fontSize",fontSize:ge,handleChange:this.handleChangeTextStyle})]}),R&&(0,t.jsxs)("div",{className:p()("border-collapse-body",{"is-open height-32":se,"can-change-color":R}),children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.font_color}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:"chartConfig-"+q+"-textStyle",attr:"color",color:Ne,attrPanel:"labelText",onChange:this.handleChangeTextStyle})]})]})}}(0,i.A)(cr,"defaultProps",{canChangeColor:!0});const dd="chart_settings_option",pd="mp_"+dd,ql="prefix",Qh="suffix";class Jh extends h.PureComponent{constructor(x){super(x),(0,i.A)(this,"createPrefixInputRef",T=>this.$prefixInputRef=T),(0,i.A)(this,"createSuffixInputRef",T=>this.$suffixInputRef=T),(0,i.A)(this,"handleSubChange",()=>{const{show:T}=this.state;(0,Ct.a0)(pd,!T,Ct.qW.Boolean),this.setState({show:!T})}),(0,i.A)(this,"handleChangeXFix",T=>(R,q)=>{const{unit:se,handleChange:ge}=this.props,Ne={...se[T],[q]:R};if(ge(Ne,T),R){var Ke,it;T===ql?(Ke=this.$prefixInputRef)==null||Ke.setSelectionRange(-1,-1):(it=this.$suffixInputRef)==null||it.setSelectionRange(-1,-1)}}),(0,i.A)(this,"handleInputChange",(T,R)=>{const q=T.target.value,se=q&&q.trim().replace(/[0-9]/,"");this.setState({[R]:se})}),(0,i.A)(this,"handleInputBlur",T=>(R,q)=>{const se=this.state[q];se.length>5&&MB.notice({text:"\u5355\u4F4D\u540D\u79F0\u75315\u5B57\u4EE5\u5185\u7684\u7B26\u53F7/\u6C49\u5B57\u7EC4\u6210",type:"warning"}),this.handleChangeXFix(T)(se,q)}),(0,i.A)(this,"handleKeyDown",(T,R)=>{const{key:q}=T;q===Qi._.Enter&&this.handleInputBlur(R)(T,R===ql?"prefixString":"suffixString")}),this.state={show:(0,Ct.Yt)(pd,!0,Ct.qW.Boolean),prefixString:x.unit.prefix.prefixString,suffixString:x.unit.suffix.suffixString}}componentDidUpdate(x){const{unit:T}=this.props,{unit:R}=x;T&&R&&(Rh()(T,R)||this.setState({prefixString:T.prefix.prefixString,suffixString:T.suffix.suffixString}))}render(){const{show:x,prefixString:T,suffixString:R}=this.state,{type:q,grid:se,legend:ge,showToolTip:Ne,smooth:Ke,unit:it,category:dt,chartAnimation:jt,axis:Ot,label:qt,labelText:sn,labelNumber:Wn,dispatch:kn,handleChange:lo}=this.props,Wo=Wh.includes(q),Zo=Vh.includes(q),Yo=Hh.includes(q),is=!Uh.includes(q),os=!Kh.includes(q),es=!zh.includes(q),ns=dt!=="accPer",qo=Gh.includes(q),ds=Yh.includes(q),Es=Xh.includes(q),Ps=q===Mn.N.sankey_chart,fs=q===Mn.N.gauge_chart;return(0,t.jsx)(rn.A,{collapse:!x,title:I18N.SettingPanel.inspector[dd],onChange:this.handleSubChange,children:(0,t.jsxs)(Bh,{type:"panel-body",className:"optionSettings",children:[Zo&&(0,t.jsxs)("div",{className:"appearance-line chartOption height-32 margin-left-n6",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:"smooth",isChecked:Ke,onChange:lo}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.smooth})]}),ge&&es&&(0,t.jsx)(jh,{legend:ge,handleChange:lo}),qo&&(0,t.jsx)(cr,{supAttr:"label",title:I18N.SettingPanel.chartInfo.dataTag,label:qt,canChangeColor:!Zh.includes(q),type:q,handleChange:lo}),ds&&(0,t.jsx)(cr,{supAttr:"labelText",title:Ps?I18N.SettingPanel.chartInfo.nodeTag:fs?I18N.SettingPanel.chartInfo.gauge.degree:I18N.SettingPanel.chartInfo.textTag,label:sn,handleChange:lo}),Es&&(0,t.jsx)(cr,{supAttr:"labelNumber",title:Ps?I18N.SettingPanel.chartInfo.flowsDataTag:I18N.SettingPanel.chartInfo.numberTag,label:Wn,handleChange:lo}),(0,t.jsxs)("div",{className:"appearance-line chartOption height-32 margin-left-n6",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:"isShowToolTip",isChecked:Ne,onChange:lo}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.showToolTip})]}),os&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"appearance-line chartOption height-32 margin-left-n6 unit",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:"isEnable",isChecked:it.prefix.isEnable,onChange:this.handleChangeXFix("prefix")}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.prefix}),(0,t.jsx)("input",{ref:this.createPrefixInputRef,type:"text",className:p()("chartInput",{show:it.prefix.isEnable,"has-value":T.length>0}),value:T,onChange:ps=>this.handleInputChange(ps,"prefixString"),onBlur:ps=>this.handleInputBlur("prefix")(ps,"prefixString"),onKeyDown:ps=>this.handleKeyDown(ps,ql)})]}),ns&&(0,t.jsxs)("div",{className:p()("appearance-line","height-32","margin-left-n6","chartOption","unit",{"gauge-chart":q==="gauge_chart"}),children:[(0,t.jsx)(bt.A,{className:bt.p,attr:"isEnable",isChecked:it.suffix.isEnable,onChange:this.handleChangeXFix("suffix")}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.suffix}),(0,t.jsx)("input",{ref:this.createSuffixInputRef,type:"text",className:p()("chartInput",{show:it.suffix.isEnable,"has-value":R.length>0}),value:R,onChange:ps=>this.handleInputChange(ps,"suffixString"),onBlur:ps=>this.handleInputBlur("suffix")(ps,"suffixString"),onKeyDown:ps=>this.handleKeyDown(ps,Qh)})]})]}),Wo&&(0,t.jsx)($h,{type:q,axis:Ot,handleChange:lo}),se&&Yo&&(0,t.jsx)(cd,{grid:se,dispatch:kn,handleChange:lo}),is&&(0,t.jsxs)("div",{className:"appearance-line chartOption height-32 margin-left-n6",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:"chartAnimation",isChecked:jt,onChange:lo}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.chartAnimation})]})]})})}}const ec=2352135087,tc=-2352135088;class qh extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleValueChange",(x,T)=>{const{handleChange:R}=this.props;R(parseInt(x),T)}),(0,i.A)(this,"handleConfirm",(x,T)=>{this.handleValueChange(x,T),sdkStore.combineMerge(T+"-update")}),(0,i.A)(this,"handleMouseDown",x=>sdkStore.combineMergeMark(x+"-update")),(0,i.A)(this,"handleChangeNumber",(x,T)=>{const{handleChange:R}=this.props;typeof Number(x)!="number"||isNaN(x)||R(x,T)})}render(){const{type:x,progress:T,innerRadius:R,foregroundColor:q,backgroundColor:se,maxNum:ge,minNum:Ne,handleChange:Ke}=this.props,it=x===Mn.N.gauge_chart;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"progressAttr",children:[(0,t.jsxs)("div",{className:"appearance-line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.chartInfo.progress.background}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,color:se,supAttr:"chartConfig",attr:"backgroundColor",onChange:Ke})]}),(0,t.jsxs)("div",{className:"appearance-line height-32",children:[(0,t.jsx)("label",{className:"left-label foreground-color",children:I18N.SettingPanel.chartInfo.progress.color}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,color:q,supAttr:"chartConfig",attr:"foregroundColor",onChange:Ke})]})]}),it?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"common-line opacity-line gauge-chart height-32",children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.chartInfo.axis.maxNum}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(Ee.A,{className:"general-input axis-input-num axis-option-input width-66",attr:"maxNum",max:ec,min:tc,value:ge===void 0?I18N.SettingPanel.chartInfo.axis.auto:ge,isNotVerify:ge===void 0,onConfirm:this.handleChangeNumber})})]}),(0,t.jsxs)("div",{className:"common-line opacity-line gauge-chart height-32",children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.chartInfo.axis.minNum}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(Ee.A,{className:"general-input axis-input-num axis-option-input width-66",attr:"minNum",max:ec,min:tc,value:Ne===void 0?I18N.SettingPanel.chartInfo.axis.auto:Ne,isNotVerify:Ne===void 0,onConfirm:this.handleChangeNumber})})]}),(0,t.jsxs)("div",{className:"common-line opacity-line gauge-chart height-32",children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.chartInfo.gauge.currentValue}),(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(Ee.A,{className:"general-input axis-input-num axis-option-input width-66",attr:"progress",max:ec,min:tc,value:T,isNotVerify:T===void 0,onConfirm:this.handleChangeNumber})})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"common-line opacity-line height-32",children:[(0,t.jsx)("span",{className:"label-name",children:I18N.SettingPanel.innerRadius}),(0,t.jsx)(Re.A,{attr:"chartInnerRadius",value:R,max:100,onChange:this.handleValueChange,onConfirm:this.handleConfirm,onMouseDown:this.handleMouseDown}),(0,t.jsx)(Ee.A,{className:"input-number",attr:"chartInnerRadius",value:R,min:0,max:100,onConfirm:this.handleValueChange,suffix:"%"})]}),(0,t.jsxs)("div",{className:"common-line opacity-line height-32",children:[(0,t.jsx)("span",{className:"label-name",children:I18N.SettingPanel.progress}),(0,t.jsx)(Re.A,{attr:"progress",value:T,max:100,onChange:this.handleValueChange,onConfirm:this.handleConfirm,onMouseDown:this.handleMouseDown}),(0,t.jsx)(Ee.A,{className:"input-number",attr:"progress",value:T,min:0,max:100,onConfirm:this.handleValueChange,suffix:"%"})]})]})]})}}const eu=[Mn.N.pie_chart,Mn.N.ring_chart,Mn.N.nightingale_chart,Mn.N.sunburst_chart],tu=[Mn.N.ring_chart,Mn.N.nightingale_chart],nu=[Mn.N.progress_chart,Mn.N.gauge_chart],ou=[Mn.N.scatter_chart],su=[Mn.N.bubble_chart],iu=[Mn.N.boxplot_chart],au=[Mn.N.mixed_bar_line_chart,Mn.N.waterfall_chart,Mn.N.bar_chart,Mn.N.horizontal_bar_chart];class ru extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleBorderRadiusConfirm",(x,T)=>{const{handleChange:R}=this.props;R(x,T),sdkStore.combineMerge(T+"-update")}),(0,i.A)(this,"handleBorderRadiusMouseDown",x=>sdkStore.combineMergeMark(x+"-update"))}render(){const{borderRadius:x,innerRadius:T,type:R,progress:q,foregroundColor:se,backgroundColor:ge,minNum:Ne,maxNum:Ke,bubbleRadius:it,minBubbleRadius:dt,maxBubbleRadius:jt,boxWidth:Ot,barCategoryGap:qt,handleChange:sn,dispatch:Wn}=this.props,kn=tu.includes(R),lo=eu.includes(R),Wo=nu.includes(R),Zo=ou.includes(R),Yo=su.includes(R),is=iu.includes(R),os=au.includes(R);return(0,t.jsxs)(vo,{className:p()("chart-preference-common",(Wo||os)&&"noBorder",os&&"bottomBorder"),children:[Wo&&(0,t.jsx)(qh,{type:R,progress:q,foregroundColor:se,backgroundColor:ge,innerRadius:T,minNum:Ne,maxNum:Ke,handleChange:sn}),lo&&(0,t.jsxs)("div",{className:"common-line opacity-line height-32",children:[(0,t.jsx)("span",{className:"label-name",children:I18N.SettingPanel.radius}),(0,t.jsx)(Re.A,{attr:"chartBorderRadius",value:x,max:100,onChange:sn,onConfirm:this.handleBorderRadiusConfirm,onMouseDown:this.handleBorderRadiusMouseDown}),(0,t.jsx)(Ee.A,{className:"input-number",attr:"chartBorderRadius",value:x,min:0,max:100,onConfirm:sn})]}),kn&&(0,t.jsxs)("div",{className:"common-line opacity-line height-32",children:[(0,t.jsx)("span",{className:"label-name",children:I18N.SettingPanel.innerRadius}),(0,t.jsx)(Re.A,{attr:"chartInnerRadius",value:T,max:100,onChange:sn,onConfirm:sn}),(0,t.jsx)(Ee.A,{className:"input-number",attr:"chartInnerRadius",value:T,min:0,max:100,onConfirm:sn,suffix:"%"})]}),Zo&&(0,t.jsxs)("div",{className:"common-line opacity-line",children:[(0,t.jsx)("span",{className:"label-name",children:I18N.SettingPanel.bubbleRadius}),(0,t.jsx)(Ee.A,{className:"input-number bubble-radius",attr:"bubbleRadius",value:it,min:1,onConfirm:sn})]}),Yo&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"common-line opacity-line",children:[(0,t.jsx)("span",{className:"label-name",children:I18N.SettingPanel.minBubbleRadius}),(0,t.jsx)(Ee.A,{className:"input-number bubble-radius min",attr:"minBubbleRadius",value:dt,min:1,max:jt,onConfirm:sn})]}),(0,t.jsxs)("div",{className:"common-line opacity-line",children:[(0,t.jsx)("span",{className:"label-name bubble-radius",children:I18N.SettingPanel.maxBubbleRadius}),(0,t.jsx)(Ee.A,{className:"input-number bubble-radius max",attr:"maxBubbleRadius",value:jt,min:dt||1,onConfirm:sn})]})]}),is&&(0,t.jsxs)("div",{className:"common-line opacity-line",children:[(0,t.jsx)("span",{className:"label-name",children:I18N.SettingPanel.boxWidth}),(0,t.jsx)(Re.A,{attr:"boxWidth",value:Ot,max:100,onChange:sn,onConfirm:sn}),(0,t.jsx)(Ee.A,{className:"input-number",attr:"boxWidth",value:Ot,min:0,max:100,onConfirm:sn,suffix:"%"})]}),os&&(0,t.jsxs)("div",{className:"common-line opacity-line",children:[(0,t.jsx)("span",{className:"label-name",children:I18N.SettingPanel.boxWidth}),(0,t.jsx)(Re.A,{attr:"barCategoryGap",value:qt,max:100,onChange:sn,onConfirm:sn}),(0,t.jsx)(Ee.A,{className:"input-number",attr:"barCategoryGap",value:qt,min:0,max:100,onConfirm:sn,suffix:"%"})]})]})}}const lu=s.Ay.div.withConfig({displayName:"styles__StyledWaterFallSetting",componentId:"sc-drrsng-0"})(["padding:8px 10px 8px 8px;.waterfall-line{display:flex;align-items:center;height:32px;input.series-name-input{color:",";width:60px;height:28px;border:1px solid transparent;text-overflow:ellipsis;padding-left:8px;border-radius:4px;&:hover{border:1px solid ",";}&:focus{border:1px solid ",";outline:1px solid ",";}&:lang(en){width:118px;}}}"],m=>m.theme.color_text_L2,m=>m.theme.color_btn_secondary_active,m=>m.theme.color_proto,m=>m.theme.color_proto);class cu extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{seriesNameIn:this.props.chartData.series[0].name,seriesNameOut:this.props.chartData.series[1].name}),(0,i.A)(this,"handleChangeColor",(x,T)=>{const{dispatch:R}=this.props;R({type:"entry:set:chart:series:color:attr",payload:{attr:T,color:x}})}),(0,i.A)(this,"handleChangeSeriesName",(x,T,R)=>{const q=x.target.value.trim();if(q===T)return;const se=R?"seriesNameOut":"seriesNameIn";this.setState({[se]:q})}),(0,i.A)(this,"handleBlurSeriesName",(x,T)=>{const R=x.target.value.trim(),{chartData:{series:q},dispatch:se}=this.props,ge=q.map((Ne,Ke)=>Ke===T?{...Ne,name:R}:Ne);se({type:"entry:set:chart:chartData:attr",payload:{attr:"series",value:ge}})})}render(){const{chartData:{series:x}}=this.props,{seriesNameIn:T,seriesNameOut:R}=this.state,q=x[0].color,se=x[1].color;return(0,t.jsxs)(lu,{children:[(0,t.jsxs)("div",{className:"waterfall-line",children:[(0,t.jsx)("input",{type:"text",className:"series-name-input",value:T,onChange:ge=>this.handleChangeSeriesName(ge,T,0),onBlur:ge=>this.handleBlurSeriesName(ge,0)}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,attr:"chart_series_0",color:q,onChange:this.handleChangeColor,toolTips:I18N.SettingPanel.chartInfo.changeColor,direction:"left",canOpenLib:!1})]}),(0,t.jsxs)("div",{className:"waterfall-line",children:[(0,t.jsx)("input",{type:"text",className:"series-name-input",value:R,onChange:ge=>this.handleChangeSeriesName(ge,R,1),onBlur:ge=>this.handleBlurSeriesName(ge,1)}),(0,t.jsx)(fo.R_,{className:fo.EY,mode:"input",attr:"chart_series_1",color:se,onChange:this.handleChangeColor,toolTips:I18N.SettingPanel.chartInfo.changeColor,direction:"left",canOpenLib:!1})]})]})}}var du=e(31838);const pu=s.Ay.div.withConfig({displayName:"styles__StyledMapSetting",componentId:"sc-6ygupo-0"})([".collapse-block-title,.collapse-block-content{height:32px;display:flex;align-items:center;color:","}.collapse-block-title .checkable-title{margin-left:6px;}.collapse-block-content{margin-left:22px;.name{min-width:42px;}.general-input{width:66px;}&.hide{display:none;}}.theme-setting,.area-setting{.setting-line{height:32px;display:flex;align-items:center;}}.theme-select,.area-select{width:208px;}"],m=>m.theme.color_text_L2),dr=m=>"mp_"+m,hu=new Map([["chart_settings_map_theme","mapThemeShow"],["chart_settings_map_area","mapAreaShow"],["chart_settings_map_appearance","mapAppearanceShow"]]);class uu extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{mapThemeShow:(0,Ct.Yt)(dr("chart_settings_map_theme"),!0,Ct.qW.Boolean),mapAreaShow:(0,Ct.Yt)(dr("chart_settings_map_area"),!0,Ct.qW.Boolean),mapAppearanceShow:(0,Ct.Yt)(dr("chart_settings_map_appearance"),!0,Ct.qW.Boolean)}),(0,i.A)(this,"handleSubChange",x=>{const T=hu.get(x),R=this.state[T];(0,Ct.a0)(dr(x),!R,Ct.qW.Boolean),this.setState({[T]:!R})}),(0,i.A)(this,"handleChangeMapSetting",(x,T,R)=>{const{handleChange:q}=this.props;q(x,T,R)})}render(){const{mapAdCode:x,theme:T,hoverStyle:R,toolTipStyle:q,textV0:se,grid:ge,showToolTip:Ne,isShowAxis:Ke}=this.props,{mapThemeShow:it,mapAreaShow:dt,mapAppearanceShow:jt}=this.state;return(0,t.jsxs)(pu,{children:[(0,t.jsx)(rn.A,{collapse:!it,title:"\u4E3B\u9898",onChange:()=>this.handleSubChange("chart_settings_map_theme"),className:"theme-setting",children:(0,t.jsx)("div",{className:"setting-line",children:(0,t.jsx)(Be.mq,{className:"theme-select",optionList:[{label:"\u5F69\u8272",value:"0"},{label:"\u5355\u8272",value:"1"}],value:String(T),onChange:Ot=>this.handleChangeMapSetting(Number(Ot),"chartTheme","chartConfig")})})}),(0,t.jsx)(rn.A,{collapse:!dt,title:"\u533A\u57DF",onChange:()=>this.handleSubChange("chart_settings_map_area"),className:"area-setting",children:(0,t.jsx)("div",{className:"setting-line",children:(0,t.jsx)(Be.mq,{className:"area-select",optionList:[{value:"100000",label:"\u4E2D\u56FD"}].concat([...du.AG].map(Ot=>{let[qt,sn]=Ot;return{value:qt,label:sn}})),value:String(x),onChange:Ot=>this.handleChangeMapSetting(Number(Ot),"mapAdCode","chartConfig")})})}),(0,t.jsxs)(rn.A,{collapse:!jt,title:"\u5916\u89C2",onChange:()=>this.handleSubChange("chart_settings_map_appearance"),className:"appearance-setting",children:[(0,t.jsx)("div",{className:"collapse-block-title",children:(0,t.jsx)("span",{children:"\u9ED8\u8BA4\u5916\u89C2"})}),(0,t.jsxs)("div",{className:"collapse-block-content",children:[(0,t.jsx)("label",{className:"name",children:"\u63CF\u8FB9"}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,color:ge.bdrColor,supAttr:"chartConfig-grid",attr:"bdrColor",onChange:Ot=>this.handleChangeMapSetting({...ge,bdrColor:Ot},"grid","chartConfig")})]}),(0,t.jsxs)("div",{className:"collapse-block-content",children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.font_color}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,color:se.textColor,supAttr:"textV0",attr:"textColor",onChange:Ot=>this.handleChangeMapSetting(Ot,"textColor","textV0")})]}),(0,t.jsxs)("div",{className:"collapse-block-content",children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.font_size}),(0,t.jsx)(Ee.A,{className:"general-input",value:se.fontSize,min:1,max:1e3,optionList:pi.X,onConfirm:Ot=>this.handleChangeMapSetting(Ot,"fontSize","textV0")})]}),(0,t.jsx)("div",{className:"collapse-block-title",children:(0,t.jsx)("span",{children:"\u60AC\u505C\u5916\u89C2"})}),(0,t.jsxs)("div",{className:"collapse-block-content",children:[(0,t.jsx)("label",{className:"name",children:"\u586B\u5145"}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,color:R.bgColor,supAttr:"chartConfig-hoverStyle",attr:"bgColor",onChange:Ot=>this.handleChangeMapSetting({...R,bgColor:Ot},"hoverStyle","chartConfig")})]}),(0,t.jsxs)("div",{className:"collapse-block-content",children:[(0,t.jsx)("label",{className:"name",children:"\u63CF\u8FB9"}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,color:R.bdrColor,supAttr:"chartConfig-hoverStyle",attr:"bdrColor",onChange:Ot=>this.handleChangeMapSetting({...R,bdrColor:Ot},"hoverStyle","chartConfig")})]}),(0,t.jsxs)("div",{className:"collapse-block-content",children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.font_color}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,color:R.textColor,supAttr:"chartConfig-hoverStyle",attr:"textColor",onChange:Ot=>this.handleChangeMapSetting({...R,textColor:Ot},"hoverStyle","chartConfig")})]}),(0,t.jsxs)("div",{className:"collapse-block-content",children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.font_size}),(0,t.jsx)(Ee.A,{className:"general-input",value:R.fontSize,min:1,max:1e3,optionList:pi.X,onConfirm:Ot=>this.handleChangeMapSetting({...R,fontSize:Ot},"hoverStyle","chartConfig")})]}),(0,t.jsxs)("div",{className:"collapse-block-title",children:[(0,t.jsx)(bt.A,{className:"general-check",isChecked:Ne,onChange:Ot=>this.handleChangeMapSetting(Ot,"isShowToolTip","chartConfig")}),(0,t.jsx)("span",{className:"checkable-title",children:"\u6570\u636E\u63D0\u793A"})]}),(0,t.jsxs)("div",{className:p()("collapse-block-content",{hide:!Ne}),children:[(0,t.jsx)("label",{className:"name",children:"\u586B\u5145"}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,color:q.bgColor,supAttr:"chartConfig-toolTipStyle",attr:"bgColor",onChange:Ot=>this.handleChangeMapSetting({...q,bgColor:Ot},"toolTipStyle","chartConfig")})]}),(0,t.jsxs)("div",{className:p()("collapse-block-content",{hide:!Ne}),children:[(0,t.jsx)("label",{className:"name",children:"\u63CF\u8FB9"}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,color:q.bdrColor,supAttr:"chartConfig-toolTipStyle",attr:"bdrColor",onChange:Ot=>this.handleChangeMapSetting({...q,bdrColor:Ot},"toolTipStyle","chartConfig")})]}),(0,t.jsxs)("div",{className:p()("collapse-block-content",{hide:!Ne}),children:[(0,t.jsx)("label",{className:"name",children:"\u7C97\u7EC6"}),(0,t.jsx)(Ee.A,{className:"general-input",value:q.bdrWidth,min:1,max:1e3,onConfirm:Ot=>this.handleChangeMapSetting({...q,bdrWidth:Ot},"toolTipStyle","chartConfig")})]}),(0,t.jsxs)("div",{className:p()("collapse-block-content",{hide:!Ne}),children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.font_color}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,color:q.textColor,supAttr:"chartConfig-toolTipStyle",attr:"textColor",onChange:Ot=>this.handleChangeMapSetting({...q,textColor:Ot},"toolTipStyle","chartConfig")})]}),(0,t.jsxs)("div",{className:p()("collapse-block-content",{hide:!Ne}),children:[(0,t.jsx)("label",{className:"name",children:I18N.SettingPanel.font_size}),(0,t.jsx)(Ee.A,{className:"general-input",value:q.fontSize,min:1,max:1e3,optionList:pi.X,onConfirm:Ot=>this.handleChangeMapSetting({...q,fontSize:Ot},"toolTipStyle","chartConfig")})]}),(0,t.jsxs)("div",{className:"collapse-block-title",children:[(0,t.jsx)(bt.A,{className:"general-check",isChecked:Ke,onChange:Ot=>this.handleChangeMapSetting(Ot,"isShowAxis","chartConfig")}),(0,t.jsx)("span",{className:"checkable-title",children:"\u533A\u57DF\u540D\u79F0"})]})]})]})}}var gu=e(13235),mu=e(33843);const hd=(m,x)=>{const T=[Mn.N.scatter_chart,Mn.N.bubble_chart].includes(x),R=x===Mn.N.sunburst_chart,q=new Map;for(let se=0;se<m.length;se++){const ge=m[se],Ne=T?ge.name:ge.data[0];if(R&&!Ne)continue;const Ke=q.get(Ne);Ke?q.set(Ne,{...Ke,numbers:Ke.numbers.concat(se)}):q.set(Ne,{numbers:[se],color:ge.color})}return Array.from(q.keys()).map(se=>({name:se,numbers:q.get(se).numbers,color:q.get(se).color}))},fu=m=>{const x=new Map;return m.forEach((T,R)=>{const q=String(T.data[0]),se=String(T.data[1]),ge=x.get(q),Ne=x.get(se);!ge||!Ne?(ge?x.set(q,{...ge,numbers:ge.numbers.concat(R)}):q&&x.set(q,{numbers:[R],color:T.color}),Ne?x.set(se,{...Ne,numbers:Ne.numbers.concat(R)}):se&&x.set(se,{numbers:[R],color:T.targetColor})):(ge&&x.set(q,{...ge,numbers:ge.numbers.concat(R)}),Ne&&x.set(se,{...Ne,numbers:Ne.numbers.concat(R)}))}),Array.from(x.keys()).map(T=>({name:T,numbers:x.get(T).numbers,color:x.get(T).color}))},xu=m=>{var x;const T=(0,mu.o)(m);return((x=T[0])==null||(x=x.data)==null?void 0:x.length)<2?[]:hd(T,Mn.N.sunburst_chart)},yu=(m,x)=>{const T=x===Mn.N.sankey_chart,R=x===Mn.N.sunburst_chart;return x===Mn.N.boxplot_chart?[]:T?fu(m):R?xu(m):hd(m,x)},vu=s.Ay.section.withConfig({displayName:"styles__StyledSeriesColorSetting",componentId:"sc-91gnmj-0"})([".color-section{height:32px;display:flex;align-items:center;span{display:block;width:88px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-right:8px;}}.color-container{max-height:104px;overflow:hidden;transition:all 0.2s ease-in-out;&.is-expand{height:auto;max-height:fit-content;.color-section{&:last-child{margin-bottom:0;}}}}.expand{cursor:pointer;display:flex;align-items:center;height:32px;font-size:12px;color:",";&:hover,&:active{color:",";}}"],m=>m.theme.color_text_link_normal,m=>m.theme.color_text_link_hover),ud="chart_settings_color",gd="mp_"+ud;class bu extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,Ct.Yt)(gd,!0,Ct.qW.Boolean),isExpand:!1}),(0,i.A)(this,"handleSubChange",()=>{const{show:x}=this.state;(0,Ct.a0)(gd,!x,Ct.qW.Boolean),this.setState({show:!x})}),(0,i.A)(this,"handleChangeColor",(x,T,R)=>{const{handleChangeHasSupAttr:q,series:se,type:ge}=this.props,Ne=ge===Mn.N.sankey_chart,Ke=se.map((it,dt)=>{if(T.includes(dt)){if(Ne){const Ot=it.data[0]===x?{color:R}:{targetColor:R};return{...it,...Ot}}return{...it,color:R}}return it});q(Ke,"series","chartData")}),(0,i.A)(this,"handleToggleExpand",()=>{const{isExpand:x}=this.state;this.setState({isExpand:!x})}),(0,i.A)(this,"handleChangeBoxplotColor",x=>{const{handleChangeHasSupAttr:T,series:R}=this.props,q=R.map(se=>({...se,color:x}));T(q,"series","chartData")})}render(){const{show:x,isExpand:T}=this.state,{type:R,series:q,theme:se}=this.props,ge=R===Mn.N.boxplot_chart,Ne=yu(q,R),Ke=Ne.length;return(0,t.jsx)(rn.A,{collapse:!x,title:I18N.SettingPanel.inspector[ud],onChange:this.handleSubChange,children:(0,t.jsx)(vu,{type:"panel-body",className:"series-color-settings",children:ge?(0,t.jsx)("div",{className:"boxplot-color-container",children:(0,t.jsxs)("div",{className:"color-section",children:[(0,t.jsx)("span",{children:I18N.SettingPanel.boxplotColor}),(0,t.jsx)(fo.R_,{attr:"chart_series_color",color:q[0].color,onChange:this.handleChangeBoxplotColor,toolTips:I18N.SettingPanel.chartInfo.changeColor,direction:"left",canOpenLib:!1})]})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:p()("color-container",{"is-expand":T}),children:Ne.map((it,dt)=>{let{color:jt,numbers:Ot,name:qt}=it;const sn=jt||(0,gu.zw)(ar.B5[se][dt%ar.B5.length]);return(0,t.jsxs)("div",{className:"color-section",children:[(0,t.jsx)("span",{children:qt}),(0,t.jsx)(fo.R_,{attr:"chart_series_color",color:sn,onChange:(Wn,kn)=>this.handleChangeColor(qt,Ot,Wn),toolTips:I18N.SettingPanel.chartInfo.changeColor,direction:"left",canOpenLib:!1})]},qt)})}),Ke>3&&(0,t.jsx)("span",{className:"expand",onClick:this.handleToggleExpand,children:T?I18N.ScreenList.collapse_screens:I18N.ScreenList.expand_screens})]})})})}}var Cu=e(87440);class Su extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleChangeFontSize",(x,T)=>{const{minFontSize:R,maxFontSize:q,handleChange:se}=this.props;if(sdkStore.combineMergeMark("echart-world-cloud-"+T),T==="minFontSize"&&Number(x)>q){se(q,T),this.handleRandomRotation(),sdkStore.combineMerge("echart-world-cloud-"+T);return}else if(T==="maxFontSize"&&Number(x)<R){se(R,T),this.handleRandomRotation(),sdkStore.combineMerge("echart-world-cloud-"+T);return}se(x,T),this.handleRandomRotation(),sdkStore.combineMerge("echart-world-cloud-"+T)}),(0,i.A)(this,"handleRandomRotation",()=>{const{series:x,handleChangeHasSupAttr:T}=this.props,R=x.map(q=>({...q,rotation:(0,Cu.s)()}));T(R,"series","chartData")})}render(){const{minFontSize:x,maxFontSize:T}=this.props;return(0,t.jsx)(vo,{className:p()("chart-preference-common"),children:(0,t.jsxs)("div",{className:"word_cloud_font_size",children:[(0,t.jsxs)("div",{className:"common-line opacity-line",children:[(0,t.jsx)("span",{className:"label-name min-font-size",children:I18N.SettingPanel.chartInfo.minFontSize}),(0,t.jsx)(pi.A,{attr:"minFontSize",fontSize:x,handleChange:this.handleChangeFontSize})]}),(0,t.jsxs)("div",{className:"common-line opacity-line",children:[(0,t.jsx)("span",{className:"label-name max-font-size",children:I18N.SettingPanel.chartInfo.maxFontSize}),(0,t.jsx)(pi.A,{attr:"maxFontSize",fontSize:T,handleChange:this.handleChangeFontSize})]})]})})}}const _u=s.Ay.section.withConfig({displayName:"styles__StyledChartInfo",componentId:"sc-1bqwdcr-0"})(["width:100%;color:#415058;border-top:1px solid ",';.sub-panel{margin:0 16px;}.sub-panel,.sub-panel.collapse{width:auto;&:first-child{border-top:none;header{border-top:none;}}header{padding:0;.angle-icon-wrap{transform:translateX(6px);}}[type="panel-body"]{padding:0;width:auto;}}.chart-preference-common{border-top:1px solid ',";width:auto;margin:0 16px;padding:8px 0;&.noBorder{border-top:none;}.progressAttr{border-bottom:1px solid ",";margin-bottom:8px;padding-bottom:8px;.appearance-line{display:flex;align-items:center;justify-content:space-between;.colorBtn{width:16px;border:1px solid rgba(0,0,0,0.12);}.left-label{color:",";margin-right:8px;&.foreground-color{margin-right:20px;}}.right-content{width:118px;padding-left:3px;}}}.common-line{.label-name{min-width:48px;&:lang(en){width:83px;}&.bubble-radius{word-break:keep-all;}}.input-number.bubble-radius{width:66px;margin-left:49px;&.min,&.max{margin-left:25px;}}&.gauge-chart{justify-content:space-between;label.name{line-height:22px;width:auto;color:",";}.right-content{width:111px;}}}.word_cloud_shape{justify-content:space-between;margin-bottom:8px;.word_cloud_shape_select{width:111px;border-radius:4px;justify-content:space-between;}}.word_cloud_font_size{.common-line{justify-content:space-between;.font-size-container{width:111px;}}}.mix-chart-type{max-height:96px;overflow:hidden;transition:all 0.2s ease-in-out;&.is-expand{height:auto;max-height:fit-content;}.Ellipsis{width:40%;}.common-line{justify-content:space-between;.border-select-size{width:110px;}}}}"],m=>m.theme.color_bg_border_01,m=>m.theme.color_bg_border_02,m=>m.theme.color_bg_border_02,m=>m.theme.color_text_L2,m=>m.theme.color_text_L2);var wu=e(68677);class Iu extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{isExpand:!1,modifiedSeries:[]}),(0,i.A)(this,"handleChangeMixedType",(x,T)=>{const{series:R,handleChangeHasSupAttr:q}=this.props,se=R.map((ge,Ne)=>Ne===x?{...ge,type:T}:ge);q(se,"series","chartData")}),(0,i.A)(this,"handleToggleExpand",()=>{const{isExpand:x}=this.state;this.setState({isExpand:!x})})}componentDidMount(){const{series:x,type:T,handleChangeHasSupAttr:R}=this.props;if(T===Mn.N.mixed_bar_line_chart){const se=x.map((ge,Ne)=>ge.type?ge:{...ge,type:Ne===x.length-1?"line":"bar"});R(se,"series","chartData"),this.setState({modifiedSeries:se})}}componentDidUpdate(x){const{series:T}=this.props;if(T!==x.series){const R=T.map((q,se)=>q.type?q:{...q,type:se===T.length-1?"line":"bar"});this.setState({modifiedSeries:R})}}render(){const{isExpand:x,modifiedSeries:T}=this.state,R=T.length;return(0,t.jsxs)(vo,{className:p()("chart-preference-common"),children:[(0,t.jsx)("div",{className:p()("mix-chart-type",{"is-expand":x}),children:T.map((q,se)=>(0,t.jsxs)("div",{className:"common-line opacity-line height-32",children:[(0,t.jsx)(wu.A,{children:q.name}),(0,t.jsx)(Be.mq,{className:p()("border-select-size"),menuClassName:"border_style_select_menu",optionList:[{label:"\u67F1\u72B6",value:"bar"},{label:"\u6298\u7EBF",value:"line"}],value:q.type,onChange:ge=>this.handleChangeMixedType(se,ge)})]},se))}),R>3&&(0,t.jsx)("span",{className:"expand",onClick:this.handleToggleExpand,children:x?I18N.ScreenList.collapse_screens:I18N.ScreenList.expand_screens})]})}}class Tu extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleChange",(x,T)=>{const{onChange:R,dispatch:q,selections:se}=this.props;R({value:x,attr:T,dispatch:q,supAttr:"chartConfig",selections:se})}),(0,i.A)(this,"handleChangeHasSupAttr",(x,T,R)=>{const{onChange:q,dispatch:se,selections:ge}=this.props;q({value:x,attr:T,dispatch:se,supAttr:R,selections:ge})})}render(){const{chartData:x,smooth:T,legend:R,grid:q,borderRadius:se,innerRadius:ge,progress:Ne,unit:Ke,backgroundColor:it,foregroundColor:dt,theme:jt,type:Ot,category:qt,showToolTip:sn,isShowAxis:Wn,minNum:kn,maxNum:lo,chartAnimation:Wo,axis:Zo,bubbleRadius:Yo,minBubbleRadius:is,maxBubbleRadius:os,label:es,labelText:ns,labelNumber:qo,minFontSize:ds,maxFontSize:Es,boxWidth:Ps,barCategoryGap:fs,mapAdCode:ps,hoverStyle:Ss,toolTipStyle:ii,textV0:ai,showTypeSettingPanel:Ys,dispatch:ti}=this.props,$s=Ih.includes(Ot),qi=!Th.includes(Ot),vi=Ot===Mn.N.waterfall_chart,Hs=Ot===Mn.N.map_chart,ji=![Mn.N.map_chart].includes(Ot),Ca=Ah.includes(Ot),Sa=Ot===Mn.N.word_cloud_chart,bi=Ot===Mn.N.mixed_bar_line_chart;return(0,t.jsxs)(t.Fragment,{children:[Ys&&(0,t.jsx)(Mh,{chartData:x,type:Ot,category:qt,handleChange:this.handleChange,handleChangeHasSupAttr:this.handleChangeHasSupAttr}),qi&&(0,t.jsx)(kh,{theme:jt,handleChange:this.handleChange}),Ca&&(0,t.jsx)(bu,{type:Ot,series:x.series,theme:jt,handleChangeHasSupAttr:this.handleChangeHasSupAttr}),Sa&&(0,t.jsx)(Su,{series:x.series,minFontSize:ds,maxFontSize:Es,handleChange:this.handleChange,handleChangeHasSupAttr:this.handleChangeHasSupAttr}),bi&&(0,t.jsx)(Iu,{series:x.series,type:Ot,handleChange:this.handleChange,handleChangeHasSupAttr:this.handleChangeHasSupAttr}),$s&&(0,t.jsx)(ru,{borderRadius:se,innerRadius:ge,progress:Ne,foregroundColor:dt,backgroundColor:it,minNum:kn,maxNum:lo,type:Ot,bubbleRadius:Yo,minBubbleRadius:is,maxBubbleRadius:os,boxWidth:Ps,barCategoryGap:fs,handleChange:this.handleChange,dispatch:ti}),vi&&(0,t.jsx)(cu,{chartData:x,dispatch:ti}),Hs&&(0,t.jsx)(uu,{theme:jt,mapAdCode:ps,hoverStyle:Ss,toolTipStyle:ii,textV0:ai,grid:q,showToolTip:sn,isShowAxis:Wn,handleChange:this.handleChangeHasSupAttr}),ji&&(0,t.jsx)(Jh,{type:Ot,grid:q,showToolTip:sn,legend:R,smooth:T,category:qt,unit:Ke,chartAnimation:Wo,axis:Zo,label:es,labelText:ns,labelNumber:qo,handleChange:this.handleChange,dispatch:ti})]})}}const Au=m=>{let{children:x}=m;return(0,t.jsx)(_u,{children:x})},Pu={component:Tu,params:{},getter:[m=>{let{selectedItems:x}=m;const T=(0,ot.i)(x,"chartConfig"),R=(0,ot.i)(x,"textV0"),se=x[0].hotAttr.chartConfig.chartType;return{showTypeSettingPanel:x.every(ge=>ge.hotAttr.chartConfig.chartType===se)&&!wh.includes(se),type:T.chartType,category:T.chartCategory,theme:T.chartTheme,chartData:(0,ot.i)(x,"chartData"),grid:T.grid,legend:T.legend,borderRadius:T.chartBorderRadius,innerRadius:T.chartInnerRadius,progress:T.progress,minNum:T.minNum,maxNum:T.maxNum,showToolTip:T.isShowToolTip,isShowAxis:T.isShowAxis,smooth:T.smooth,unit:{prefix:T.prefix,suffix:T.suffix},foregroundColor:T.foregroundColor,backgroundColor:T.backgroundColor,chartAnimation:T.chartAnimation,mapAdCode:T.mapAdCode,hoverStyle:T.hoverStyle,textV0:R,toolTipStyle:T.toolTipStyle,axis:T.axis,bubbleRadius:T.bubbleRadius,minBubbleRadius:T.minBubbleRadius,maxBubbleRadius:T.maxBubbleRadius,label:T.label,labelText:T.labelText,labelNumber:T.labelNumber,minFontSize:T.minFontSize,maxFontSize:T.maxFontSize,boxWidth:T.boxWidth,barCategoryGap:T.barCategoryGap}}],setter:{onChange:gt.c}},Mu=()=>[Au,[Pu,"ChartSettingsInfo"]];var Eu=e(27086),Lu=e(95545);const Nu=(0,h.memo)(m=>{let{showSinglePanelState:x,panel:T,onChange:R,dispatch:q,selections:se}=m;const ge=(Ne,Ke)=>{R({value:Ne,attr:Ke,dispatch:q,selections:se})};return(0,t.jsxs)(Du,{className:"state-scroll-container",children:[(0,t.jsx)(Eu.E,{scroll:T==null?void 0:T.hotAttr.scroll,handleChange:ge}),(T==null?void 0:T.hotAttr.scroll)!==ar.Ci.hide&&(0,t.jsx)(Lu.W,{showScrollBar:T==null?void 0:T.hotAttr.showScrollBar,handleChange:ge})]})}),Du=s.Ay.div.withConfig({displayName:"indexui__StyledTemplatePanel",componentId:"sc-1jglpx4-0"})(["&.state-scroll-container{padding-top:8px;border-top:1px solid ",";}"],m=>m.theme.color_bg_border_01),ku=m=>{let{children:x}=m;return(0,t.jsx)(t.Fragment,{children:x})},Ou={component:Nu,params:{showSinglePanelState:!0},getter:[m=>{let{selectedItems:x}=m;const T=x[0];return{showSinglePanelState:x.length===1,panel:T}}],setter:{onChange:gt.c}},Ru=()=>[ku,[Ou,"TemplateInfo"]];var Bu=e(37505);const ju=["children"];class Wu extends h.Component{shouldComponentUpdate(x,T,R){return this.props.isDraggingItem?!1:(0,B.N)(ju).call(this,x,T)}render(){return(0,t.jsx)("div",{children:this.props.children})}}class Fu extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"handleCanvasAttrsChanged",(x,T)=>{const{onChange:R,dispatch:q,selections:se}=this.props;R({value:x,attr:"fill",dispatch:q,selections:se}),(0,Ce.A9)({attr:"fill"})}),(0,i.A)(this,"handleVisibleChanged",x=>{const{canvasAttrs:{fill:T}}=this.props,R={...T,fillIsVisible:x};this.handleCanvasAttrsChanged(R,"fill")})}render(){const{canvasAttrs:x,refStyles:T}=this.props,{fill:R}=x;return(0,t.jsx)(Vu,{title:I18N.SettingPanel.inspector.artboard_bgcolor,className:"bgcolor-body",children:(0,t.jsx)("section",{type:"screen-body",children:(0,t.jsxs)("div",{className:"screen-bg-line height-32 margin-left-n6",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:"isVisible",isChecked:R==null?void 0:R.fillIsVisible,onChange:q=>this.handleVisibleChanged(q)}),(0,t.jsx)("label",{className:"left-label background-label",children:I18N.SettingPanel.fill})]}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:"fill",attr:"solidColor",color:R,pIsSolidColorOnly:!0,refStyles:T,onChange:this.handleCanvasAttrsChanged})]})})})}}const Vu=(0,s.Ay)(rn.A).withConfig({displayName:"CanvasColorPanelui__StyledCanvasColorPanel",componentId:"sc-rue2dl-0"})(['&.bgcolor-body{[type="screen-body"]{padding:0 10px 0 16px;}.screen-bg-line{display:flex;align-items:center;',";.left-label{height:14px;color:",";line-height:14px;white-space:nowrap;}}}"],Oi.B3,m=>m.theme.color_text_L2),Hu={component:Fu,params:{},getter:[m=>{let{selectedItems:x}=m;const T=x[0],R=(0,ot.i)(x,"refStyles");return{canvasAttrs:T.hotAttr,refStyles:R}}],setter:{onChange:gt.c}},Uu=()=>[Wu,[Hu,"CanvasColorInfo"]],md=s.Ay.div.withConfig({displayName:"styles__StyledVectorEditingPanel",componentId:"sc-1ytj3wh-0"})(["width:240px;color:",";.layer-info{margin:0;}.general-line{display:flex;align-items:center;padding-left:10px;.general-input{flex:0 0 66px;display:flex;justify-content:space-between;align-items:center;&:not(:last-child){margin-right:8px;}}.active{background:#1A70D8;}}.rows{display:flex;padding-left:15px;align-items:center;&.with-line{border-top:1px solid ",";height:48px;padding-top:8px;}&.is-disabled-setting{opacity:0.4;cursor:not-allowed;}.rows-title{color:",";margin-right:12px;&:lang(en){margin-right:8px;}}.rows-content{flex:1;height:24px;&.point{&:lang(en){margin-left:8px;}}}.flex{padding-right:10px;height:28px;display:flex;flex-direction:row;justify-content:space-between;color:",";align-items:center;.slider .rail{width:116px;&:lang(en){width:104px;}}&.hide-radius{color:#eee;}.input-with-no-title{position:relative;flex:0 0 49px;font-size:12px;}}&.with-line{position:relative;align-items:center;width:100%;label{padding:8px 0;margin-right:14px;.col-resize{margin-left:6px;&.no-title{width:5px;margin:0;}}}}&.first-line{&::after{content:'';position:absolute;left:-16px;right:-16px;bottom:-10px;height:1px;background-color:#ededed;}}&.second-line{&::after{content:'';position:absolute;left:0;right:0;bottom:-16px;height:1px;background-color:#ededed;}}}.point-type{display:inline-flex;justify-content:center;align-items:center;border-radius:4px;cursor:pointer;width:40px;height:24px;margin-right:6px;&.active{background-color:",";color:#fff;path,circle{fill:#fff;}}&.disabled{cursor:not-allowed;}svg.svg-icon{width:40px;height:24px;}&:lang(en){width:36px;}&:nth-last-of-type(1){margin-right:0;}&:not(.active):not(.disabled):hover{background-color:",";}}.setting-btn{width:96px;&:not(:nth-last-of-type(1)){margin-right:16px;}}.seperate-set-area{display:flex;.seperate-input{border:solid 1px rgba(204,204,204,0.3);border-radius:0;font-size:12px;&:nth-of-type(1){border-radius:2px 0 0 2px;}&:nth-last-of-type(1){border-radius:0 2px 2px 0;}&:not(:nth-of-type(1)){margin-left:-1px;}input{width:32px;}}}.normal-h{height:40px;}"],m=>m.theme.color_text_L2,m=>m.theme.color_bg_border_02,m=>m.theme.color_text_L1,m=>m.theme.color_text_L1,m=>m.theme.color_proto,m=>m.theme.color_btn_secondary_active),Ku=m=>{let{children:x}=m;return(0,t.jsx)(md,{children:x})};var Zs=e(18637),fd=e(30728);function zu(m,x){if(m.length===0)return;const T=x(m[0]);if(m.every(R=>x(R)===T))return T}function nc(m,x){if(m.length===0)return null;const T=x(m[0]);return m.every(R=>Math.abs(x(R)-T)<1e-5)?T:null}class Gu extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"pointTypeList",[{type:Zs.pQ.Straight,icon:"setting_panel/vector/pointType/straight",title:I18N.SettingPanel.vectorSetting.pointType.straight},{type:Zs.pQ.Mirrored,icon:"setting_panel/vector/pointType/mirrored",title:I18N.SettingPanel.vectorSetting.pointType.mirrored},{type:Zs.pQ.Asymmetric,icon:"setting_panel/vector/pointType/asymmetric",title:I18N.SettingPanel.vectorSetting.pointType.asymmetric},{type:Zs.pQ.Disconnected,icon:"setting_panel/vector/pointType/disconnected",title:I18N.SettingPanel.vectorSetting.pointType.disconnected}]),(0,i.A)(this,"changeToVector",()=>{const{vectorWidget:{key:x,hotAttr:{type:T}},dispatch:R}=this.props;if(T!==A.x.WVector){const q=[{key:x,hotAttr:{type:A.x.WVector}}];R({type:"entry:widget:change",payload:{flatChgList:q}})}}),(0,i.A)(this,"handleChangePosition",(x,T,R,q)=>{this.changeToVector();const{vectorEditor:{selectedIndex:se,selectedAssistIndex:ge},vectorWidget:{key:Ne,hotAttr:{vector:Ke}},vectorTransform:it,dispatch:dt}=this.props;if(se.length<1)return;const jt=[...Ke.points];if(se.length===1&&ge){const{x:Ot,y:qt}=jt[se[0]],sn=jt[se[0]][ge],{x:Wn,y:kn}=it.clone().apply({x:Ot+sn.x,y:qt+sn.y});let lo;T==="X"&&(lo={x,y:kn}),T==="Y"&&(lo={x:Wn,y:x});const Wo=it.inverted().apply(lo);jt[se[0]]=(0,Zs.Yw)(jt[se[0]],ge,{x:Wo.x-Ot,y:Wo.y-qt})}else T==="X"&&se.map(Ot=>{const qt=jt[Ot],{x:sn,y:Wn}=it.clone().apply({x:qt.x,y:qt.y}),{x:kn,y:lo}=it.inverted().apply({x,y:Wn});jt[Ot]={...qt,x:kn,y:lo}}),T==="Y"&&se.map(Ot=>{const qt=jt[Ot],{x:sn,y:Wn}=it.clone().apply({x:qt.x,y:qt.y}),{x:kn,y:lo}=it.inverted().apply({x:sn,y:x});jt[Ot]={...qt,x:kn,y:lo}});dt({type:"entry:vector:update:vector",payload:{vector:{...Ke,points:jt}}})}),(0,i.A)(this,"handlePointType",x=>{this.changeToVector();const{vectorEditor:{selectedIndex:T,selectedAssistIndex:R},vectorWidget:{key:q,hotAttr:{vector:se}},dispatch:ge}=this.props;if(T.length>0){const Ne=x.currentTarget.dataset.pointType,Ke=[...se.points];T.map(it=>{const dt=Ke[it].type;if(Ne===Zs.pQ.Straight)Ke[it]={...Ke[it],type:Ne,next:fd.Z.zero,prev:fd.Z.zero};else if(dt===Zs.pQ.Straight){const{prev:jt,next:Ot}=(0,Zs.wX)(Ke,it);Ke[it]={...Ke[it],type:Ne,prev:jt,next:Ot}}else if(dt===Zs.pQ.Mirrored||dt===Zs.pQ.Asymmetric&&Ne===Zs.pQ.Disconnected)Ke[it].type=Ne;else{const jt=R||"next";Ke[it].type=Ne,Ke[it]=(0,Zs.Yw)(Ke[it],jt,Ke[it][jt])}}),ge({type:"entry:vector:update:vector",payload:{vector:{...se,points:Ke}}})}}),(0,i.A)(this,"handleSlider",x=>{const T=Math.round(x);this.changeRadiusValue(T)}),(0,i.A)(this,"changeRadiusValue",(x,T)=>{var R;this.changeToVector();const{vectorEditor:{selectedIndex:q},vectorWidget:{hotAttr:{vector:se,refVars:ge}},dispatch:Ne}=this.props,Ke=[...se.points],it=(ge==null||(R=ge.vector)==null?void 0:R.points)||new Array(Ke.length);q.map(dt=>{const jt=Ke[dt];Ke[dt]={...jt,radius:x},it[dt]={...it[dt],radius:T}}),Ne({type:"entry:vector:update:vector",payload:{vector:{...se,points:Ke},refVars:{...ge,vector:{...ge==null?void 0:ge.vector,points:it}}}})}),(0,i.A)(this,"handleExitVectorEditor",()=>{this.props.dispatch({type:"entry:vector:exit:edit",payload:{end:W.z9.Exit}})}),(0,i.A)(this,"handleToggleClosed",()=>{const{vectorWidget:{hotAttr:{vector:x,vector:{points:T,closed:R}}},dispatch:q}=this.props;if(!(T.length<3))if(this.changeToVector(),R===!1){const se={...x,closed:!R};q({type:"entry:vector:update:vector",payload:{vector:se}})}else R===!0&&q({type:"entry:vector:open:path"})})}render(){const{vectorWidget:x,vectorEditor:T,vectorTransform:R}=this.props;if(!x||!T)return null;const{selectedIndex:q,selectedAssistIndex:se}=T,{vector:{points:ge,closed:Ne},refVars:Ke}=x.hotAttr,it=q.length<1;let dt="",jt="",Ot="",qt="",sn="",Wn=-1,kn,lo=0,Wo=!0,Zo;if(q.length===1&&ge[q[0]]){var Yo;kn=ge[q[0]];const{x:qo,y:ds}=kn;Wn=kn.type,dt=se?qo+kn[se].x:qo,jt=se?ds+kn[se].y:ds;const{x:Es,y:Ps}=R.apply({x:dt,y:jt});dt=Es.toFixed(2),jt=Ps.toFixed(2),kn.type!==Zs.pQ.Straight&&(Wo=!1),lo=kn.radius,Zo=Ke==null||(Yo=Ke.vector)==null||(Yo=Yo.points)==null||(Yo=Yo[q[0]])==null?void 0:Yo.radius}else if(q.length>1){var is,os,es,ns;const qo=q.map(fs=>ge[fs]),ds=(is=nc(qo,fs=>fs==null?void 0:fs.x))!=null?is:void 0,Es=(os=nc(qo,fs=>fs==null?void 0:fs.y))!=null?os:void 0;dt=ds?R.apply({x:ds,y:0}).x:void 0,jt=Es?R.apply({x:0,y:Es}).y:void 0,Wn=(es=zu(qo,fs=>fs==null?void 0:fs.type))!=null?es:-1,lo=(ns=nc(qo,fs=>fs==null?void 0:fs.radius))!=null?ns:void 0,Ot=dt?"":I18N.SettingPanel.multiple_value,qt=jt?"":I18N.SettingPanel.multiple_value,sn=lo?"":I18N.SettingPanel.multiple_value;const Ps=new Set(q.map(fs=>{var ps;return Ke==null||(ps=Ke.vector)==null||(ps=ps.points)==null||(ps=ps[fs])==null?void 0:ps.radius}));Ps.size===1&&(Zo=Ps.values().next().value)}return(0,t.jsxs)(md,{children:[(0,t.jsxs)("div",{className:p()("general-line","height-32"),style:{marginBottom:8},children:[(0,t.jsx)(Ee.A,{className:"general-input",title:"X",attr:"X",value:dt,disabled:it,min:-99999,max:99999,isNotVerify:!!Ot,placeholder:Ot,onConfirm:this.handleChangePosition}),(0,t.jsx)(Ee.A,{className:"general-input",title:"Y",attr:"Y",value:jt,disabled:it,min:-99999,max:99999,isNotVerify:!!qt,placeholder:qt,onConfirm:this.handleChangePosition})]}),(0,t.jsxs)("div",{className:p()({"is-disabled-setting":it},"rows with-line"),children:[(0,t.jsx)("span",{className:"rows-title",children:I18N.SettingPanel.vectorSetting.type}),(0,t.jsx)("div",{className:"rows-content point",children:this.pointTypeList.map((qo,ds)=>(0,t.jsx)(a.A,{content:qo.title,direction:"down",children:(0,t.jsx)("div",{"data-point-type":qo.type,className:p()({active:Wn===qo.type,disabled:it},"point-type"),onClick:this.handlePointType,children:(0,t.jsx)(b.C,{name:qo.icon,isDisabled:it})})},ds))})]}),(0,t.jsxs)("div",{className:p()({"is-disabled-setting":it},"rows","normal-h"),children:[(0,t.jsx)("span",{className:"rows-title",children:I18N.SettingPanel.inspector.radius}),(0,t.jsx)("div",{className:p()("rows-content flex",{"hide-radius":!Wo}),children:(0,t.jsx)(Ae.Yw,{type:"number",inputClassName:"input-with-no-title",refVar:Zo,value:lo,showCursorResize:!0,disabled:!Wo,min:0,max:9999,isNotVerify:!!sn,placeholder:sn,onChange:this.changeRadiusValue,onConfirm:this.changeRadiusValue})})]}),(0,t.jsxs)("div",{className:"rows normal-h",style:{marginTop:8},children:[(0,t.jsx)(Se.Oc,{type:"secondary",size:"tiny",corner:"soft",className:"setting-btn",disabled:ge.length<3||q.length===0,onClick:this.handleToggleClosed,children:Ne?I18N.SettingPanel.vectorSetting.openPath:I18N.SettingPanel.vectorSetting.closePath}),(0,t.jsx)(Se.Oc,{type:"primary",size:"tiny",corner:"soft",className:"setting-btn active",onClick:this.handleExitVectorEditor,children:I18N.SettingPanel.vectorSetting.closeEdit})]})]})}}const Zu={component:Gu,params:{},getter:[m=>{let{selectedItems:x,vectorEditor:T}=m;const R=x[0];let q=(0,Zs.YW)(R.key);const se=sdkStore.locUpColdCanvasKey(R.key);if(se){const ge=sdkStore.getHotItem(se),{x:Ne,y:Ke,w:it,h:dt}=ge.hotAttr,jt=Ne-it/2,Ot=Ke-dt/2;q=q.clone().translate({x:-jt,y:-Ot})}return{vectorEditor:T,vectorWidget:R,vectorTransform:q}}]},Yu=()=>[Ku,[Zu,"VectorEditingInfo"]];var xd=e(50365);const Xu=s.Ay.section.withConfig({displayName:"style__StyledTableCellInfo",componentId:"sc-1hybu77-0"})([".general-line{border-top:1px solid ",";height:48px;align-items:center;&.tableCellWH{display:flex;border-top:none;padding:0 8px;label{&:first-child{margin-right:10px;}}}&.colorBtnWarp{display:flex;[type=color-btn]{margin-left:20px;}.thumbnail{width:14px;}}}"],m=>m.theme.color_bg_border_01),$u=m=>{let{width:x,height:T,dispatch:R}=m;const q=(se,ge)=>{se&&R({type:"entry:flow:change:width-height",payload:{value:se,attr:ge}})};return(0,t.jsxs)("div",{className:"general-line tableCellWH",children:[(0,t.jsx)(Ee.A,{className:"general-input step-input-width-72",title:"W",attr:"width",value:x,min:16,max:999,onConfirm:q}),(0,t.jsx)(Ee.A,{className:"general-input step-input-width-72",title:"H",attr:"height",value:T,min:16,max:999,onConfirm:q})]})},Qu=(0,h.memo)($u),Ju=m=>{let{children:x}=m;return(0,t.jsx)(Xu,{children:x})},qu={component:Qu,params:{},getter:[m=>{let{selectedItems:x,swimlaneSelectedCellsInfo:T}=m;const R=x[0],{tl:q}=T,{database:se,swimlaneType:ge}=R.hotAttr,{heightList:Ne,widthList:Ke}=se;let it=Ke[q.x],dt=Ne[q.y];return q.x===0&&q.y===0?ge==="topBottom"?(it=Ke[0],dt=(0,xd.PM)(Ne)):(it=(0,xd.PM)(Ke),dt=Ne[0]):ge==="topBottom"&&(dt=Ne[q.y-1],it=Ke[q.x+1]),{width:it,height:dt}}],setter:{}},e0=()=>[Ju,[qu]],yd=s.Ay.div.withConfig({displayName:"style__StyledInputContainer",componentId:"sc-1xym3na-0"})(["border-top:1px solid ",";display:flex;padding:8px 16px;flex-direction:column;.appearance-line{display:flex;align-items:center;justify-content:space-between;color:",";.left-label{height:14px;color:",";line-height:14px;white-space:nowrap;}.right-content{width:140px;}.placeholder-color,.placeholder-text{width:150px;}.input-type-select{width:140px;}}.placeholder-text{position:relative;&:hover{.is-icon-button .icon-bind{display:block;}}}.is-icon-button{position:absolute;left:-9px;top:-9px;.toolbar-dropdown-opener.is-open{height:36px;}&:hover + input{border-color:",";}&.is-active + input{border-color:",";}}"],m=>m.theme.color_bg_border_01,m=>m.theme.color_text_L2,m=>m.theme.color_text_L2,m=>m.theme.color_bg_border_02,m=>m.theme.color_proto),t0=(0,h.memo)(m=>{let{inputType:x,onChange:T,dispatch:R,supAttr:q,selections:se}=m;const ge=(Ke,it)=>{T({value:Ke,attr:it,dispatch:R,supAttr:q,selections:se})},Ne=[{label:I18N.SettingPanel.text,value:"text"},{label:I18N.SettingPanel.password,value:"password"},{label:I18N.SettingPanel.number,value:"tel"},{label:"Email",value:"email"},{label:I18N.SettingPanel.date,value:"date"},{label:I18N.SettingPanel.time,value:"time"},{label:I18N.SettingPanel.datetime,value:"datetime-local"}];return(0,t.jsx)(yd,{children:(0,t.jsxs)("div",{className:"appearance-line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.input_type}),(0,t.jsx)("div",{className:"right-content input-type",children:(0,t.jsx)(Be.mq,{className:"select input-type-select",attr:"inputTypes",optionList:Ne,value:x,onChange:ge})})]})})});class vd extends h.PureComponent{render(){return(0,t.jsx)("div",{children:this.props.children})}}const n0={component:t0,params:{},getter:[m=>{let{selectedItems:x}=m;const{inputTypes:T}=(0,ot.i)(x,"textInput");return{inputType:T,supAttr:"textInput"}}],setter:{onChange:gt.c}},o0=()=>[vd,[n0,"InputTypeKeyboardInfo"]];var s0=e(60312);const i0=s.Ay.input.withConfig({displayName:"style__StyledPlacerholderInput",componentId:"sc-1g9zj7t-0"})(["width:140px;height:28px;border-radius:4px;padding:0 6px;color:",";border:1px solid transparent;&:hover{border:1px solid ",";}&:focus{border:1px solid ",";outline:1px solid ",";outline-offset:-2px;}"],m=>m.theme.color_text_L1,m=>m.theme.color_bg_border_02,m=>m.theme.color_proto,m=>m.theme.color_proto),a0={component:(0,h.memo)(m=>{let{text:x,textColor:T,refVar:R,onChange:q,dispatch:se,inputTypes:ge,selections:Ne}=m;const[Ke,it]=(0,h.useState)(!1),dt=(kn,lo)=>{q({value:kn,attr:lo,dispatch:se,supAttr:"textV0",selections:Ne})},jt=kn=>{q({value:kn.target.value,attr:"text",dispatch:se,supAttr:"textV0",selections:Ne})},Ot=(kn,lo)=>{q({value:kn,refVar:lo,attr:"text",dispatch:se,supAttr:"textV0",selections:Ne})},qt=(0,ft.fP)(Ne[0]),sn=kn=>{if(it(!0),typeof qt=="function"){var lo;qt(),(lo=kn.target)==null||lo.blur()}},Wn=()=>{it(!1)};return(0,t.jsxs)(yd,{children:[!(0,s0.PD)({textInput:{inputTypes:ge}})&&(0,t.jsxs)("div",{className:"appearance-line first-row height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.textInput.defaultPrompt}),(0,t.jsxs)("div",{className:"right-content placeholder-text",children:[!Ke&&(0,t.jsx)(Ae.Yw,{type:"string",value:x,refVar:R,isIconButton:!R,showName:!0,onChange:Ot,disabled:qt!==void 0}),!R&&(0,t.jsx)(i0,{onFocus:sn,onBlur:Wn,type:"text",value:x,onChange:jt})]})]}),(0,t.jsxs)("div",{className:"appearance-line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.textInput.promptColor}),(0,t.jsx)("div",{className:"right-content placeholder-color",children:(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:"textV0",attr:"textColor",color:T,pIsSolidColorOnly:!0,onChange:dt})})]})]})}),params:{},getter:[m=>{let{selectedItems:x}=m;const{inputTypes:T}=(0,ot.i)(x,"textInput"),{text:R,textColor:q}=(0,ot.i)(x,"textV0"),se=(0,Bt.xj)(x,"textV0",["text"]);return{text:R,textColor:q,inputTypes:T,refVar:se==null?void 0:se.text}}],setter:{onChange:gt.c}},bd=()=>[vd,[a0,"InputPlaceholderInfo"]],Cd="icon_flip",r0=(0,h.memo)(m=>{const[x,T]=(0,h.useState)((0,Ct.Yt)(Cd,!0,Ct.qW.Boolean)),R=(0,h.useCallback)(()=>{(0,Ct.a0)(Cd,!x,Ct.qW.Boolean),T(!x)},[x,T]);return(0,t.jsx)(rn.A,{collapse:!x,title:I18N.SettingPanel.icon,onChange:R,children:m.children})});var l0=e(46464),c0=e(36050),d0=e(15305);const p0=s.Ay.div.withConfig({displayName:"styles__StyledIconFlipSettingsPanel",componentId:"sc-sx8pjy-0"})(["display:flex;flex-direction:column;transition:height 200ms ease-in-out 0s;padding:0 16px;&.isMuban{padding-bottom:14px;}.line{display:flex;justify-content:space-between;align-items:center;min-height:",";.left-label{height:14px;color:",";line-height:14px;}.panel-icon-info{display:flex;align-items:center;width:140px;color:",";border:1px solid ",";padding-right:6px;border-radius:4px;height:28px;cursor:pointer;&:hover{background-color:",";}&:active{background-color:",";}.icon{width:16px;height:16px;margin:0 6px;&.svg-icon-path-icon{",";}}.ant-icon{width:16px;height:16px;margin:0 6px;}.panel-icon-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}}.icon-flip-buttons{display:flex;align-items:center;.image-mirror-h-s,.image-mirror-v-s{border-radius:4px;cursor:pointer;&:hover{background-color:",";}&:active{background-color:",";}path{&:nth-child(1){fill:",";}&:nth-child(2){fill:",";}}}.image-mirror-h-s{margin-right:6px;}}"],"22px",m=>m.theme.color_text_L2,m=>m.theme.color_text_L2,m=>m.theme.color_background_icon_active,m=>m.theme.color_background_icon_hover,m=>m.theme.color_background_icon_active,d0.T,m=>m.theme.color_background_icon_hover,m=>m.theme.color_background_icon_active,m=>m.theme.color_text_L1,m=>m.theme.color_text_disabled01),h0={component:(0,h.memo)(m=>{let{view_box:x,path:T,svgAttr:R,iconName:q,isMuBan:se,dispatch:ge}=m;const[Ne,Ke]=(0,h.useState)(!1),[it,dt]=(0,h.useState)({top:null});(0,h.useEffect)(()=>{Ne&&ge({type:"entry:toggle:icon-select-popup",payload:{iconName:q,source:ae.Z.iconWidgetSettingPanel}})},[Ne,ge]);const jt=(0,h.useCallback)((Wn,kn)=>{const{iconName:lo,iconDisplayName:Wo}=(0,c0.RU)(Wn);ge({type:"entry:items:set:icon",payload:{icon:Wn,iconName:lo,iconDisplayName:Wo,isMultiColorIcon:kn}})},[ge]),Ot=(0,h.useCallback)(Wn=>{Wn.nativeEvent.stopImmediatePropagation();const kn=Wn.currentTarget.getBoundingClientRect();dt({top:kn==null?void 0:kn.top}),Ke(!0),ge({type:"entry:toggle:icon-select-popup",payload:{iconName:q,source:ae.Z.iconWidgetSettingPanel}}),Da({source:"icon"})},[ge,q]),qt=(0,h.useCallback)(()=>{ge({type:"entry:image-view:horizontal-flip",payload:{isImage:!1}})},[ge]),sn=(0,h.useCallback)(()=>{ge({type:"entry:image-view:vertically-flip",payload:{isImage:!1}})},[ge]);return(0,t.jsxs)(p0,{className:se&&"isMuban",children:[(0,t.jsxs)("div",{className:"line height-32",children:[(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.replace_icon}),(0,t.jsxs)("div",{className:"panel-icon-info",onClick:Ot,children:[(0,t.jsx)(l0.D,{view_box:x,path:T,svgAttr:R}),(0,t.jsx)("span",{className:"panel-icon-content",children:q})]})]}),!se&&(0,t.jsxs)("div",{className:"icon-flip-buttons height-32",children:[(0,t.jsx)(a.A,{content:I18N.SettingPanel.horizontal_flip,direction:"down",children:(0,t.jsx)(Ia,{className:"image-mirror-h-s",size:24,onClick:qt})}),(0,t.jsx)(a.A,{content:I18N.SettingPanel.vertical_flip,direction:"down",children:(0,t.jsx)(Ma,{className:"image-mirror-v-s",size:24,onClick:sn})})]}),Ne&&(0,t.jsx)(ne.A,{emitBaseRect:it,onSetCurrentNodeIcon:jt,onClose:()=>Ke(!1)})]})}),params:{},getter:[m=>{let{selectedItems:x}=m;const T=(0,ot.i)(x,"iconData"),R=x.map(se=>se.key),q=(0,g.td)(R)||(0,g.bp)(x);return{view_box:T==null?void 0:T.viewBox,path:T==null?void 0:T.path,svgAttr:T==null?void 0:T.svgAttr,iconName:(T==null?void 0:T.iconName)||"",isMuBan:q}}],setter:{}},u0=()=>[r0,[h0,"IconFlipPanel"]],g0=s.Ay.section.withConfig({displayName:"styles__StyledTreeSettingPanel",componentId:"sc-1690x29-0"})(['.sub-panel{[type="panel-body"]{.panelItem{display:flex;margin-bottom:16px;&.boxShowPanelItem{flex-direction:column;}&.otherMargin{margin-bottom:12px;}&:last-child{margin-bottom:0;}}}}.divider{height:1px;border-top:1px solid ',";}.select-node-setting{border-top:none;}"],m=>m.theme.color_bg_border_01),m0=["children"];class f0 extends h.Component{shouldComponentUpdate(x,T,R){return this.props.isDraggingItem?!1:(0,B.N)(m0).call(this,x,T)}render(){return(0,t.jsx)(g0,{children:this.props.children})}}const Sd="mp_"+"nav_selected_panel";class x0 extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,Ct.Yt)(Sd,!0,Ct.qW.Boolean)}),(0,i.A)(this,"handleSubChange",()=>{const{show:x}=this.state;(0,Ct.a0)(Sd,!x,Ct.qW.Boolean),this.setState({show:!x})}),(0,i.A)(this,"updateFamilyVersion",()=>{const{onChange:x,dispatch:T,selections:R}=this.props;x({value:1,attr:"!ffVersion",dispatch:T,selections:R})}),(0,i.A)(this,"handleChange",x=>{let{value:T,attr:R,refVar:q}=x;if(R==="fontFamily"&&this.updateFamilyVersion(),R==="fontStyle"){const se=T==="italic";this.props.handleChange(se,"italic");return}this.props.handleChange(T,R,q)})}render(){const{selectNode:x,selections:T,dispatch:R,onChange:q,isMissFont:se,cloudFontLocalList:ge,refVars:Ne}=this.props,{show:Ke}=this.state,it=x.bold?"bold":"regular",dt=Number(x.bold),jt=x.italic?"italic":"normal";return(0,t.jsx)(rn.A,{collapse:!Ke,title:"\u9009\u4E2D\u9879\u6587\u672C",onChange:this.handleSubChange,className:"select-node-setting",children:(0,t.jsxs)(Dn.M,{children:[(0,t.jsx)(Bn.X,{fontWeight:x.fontWeight,fontFamily:x.fontFamily,onChange:this.handleChange,wbiVersion:3,fontStyle:jt,isMissFont:se,supAttr:"wTree-selectNode",dispatch:R}),(0,t.jsx)(Ao.L,{textColor:x.textColor,boldType:dt,colorAttr:"textColor",fontSize:x.fontSize,fontStyle:jt,fontWeight:it,isDisabledFontRadioLine:!1,isRichText:!1,isTextEditing:!1,newOverOld:!0,onChange:q,onFontDirectionChange:()=>{},supAttr:"selectNode",textDecoration:x.textDecoration,boldAttr:"boldType",canShowBIUS:!0,fontFamily:x.fontFamily,fontStyleAttr:"italic",isTableCell:!1,selections:T,hasMissFontHi:se,cloudFontLocalList:ge,dispatch:R,refVars:Ne,attrPanel:"selectNodeText"}),(0,t.jsx)(Un.O,{isWRichText:!1,isDisalbeLineHeight:!0,lineHeight:20,hideLineHeight:!0,dispatch:R,onChange:this.handleChange,fontSize:x.fontSize,fontFamily:x.fontFamily,letterSpacing:x.letterSpacing,isMissFont:se,refVars:Ne})]})})}}const _d="nav_selected_panel",wd="mp_"+_d;class y0 extends h.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{show:(0,Ct.Yt)(wd,!0,Ct.qW.Boolean)}),(0,i.A)(this,"handleSubChange",()=>{const{show:x}=this.state;(0,Ct.a0)(wd,!x,Ct.qW.Boolean),this.setState({show:!x})})}render(){const{selectNode:x,handleChange:T}=this.props,{selectNodeBackground:R,isSelectNodeBackgroundVisible:q}=x,{show:se}=this.state;return(0,t.jsx)(rn.A,{collapse:!se,title:I18N.SettingPanel.inspector[_d],onChange:this.handleSubChange,children:(0,t.jsx)("section",{type:"panel-body",className:"navSelectPanelSetting",children:(0,t.jsxs)("div",{className:"panelItem otherMargin margin-left-n6",children:[(0,t.jsxs)("div",{className:"common-check-label-box",children:[(0,t.jsx)(bt.A,{className:bt.p,attr:"isSelectNodeBackgroundVisible",isChecked:q,onChange:T}),(0,t.jsx)("label",{className:"rightLabel",children:I18N.SettingPanel.menu_setting.bg_color})]}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:"selectNode",attr:"selectNodeBackground",attrPanel:"selectNode",color:R,onChange:T})]})})})}}const v0={component:m=>{let{selectNode:x,onChange:T,selections:R,dispatch:q,isMissFont:se,cloudFontLocalList:ge,refVars:Ne}=m;const Ke=(it,dt,jt)=>{T({value:it,attr:dt,dispatch:q,supAttr:"selectNode",selections:R,refVar:jt})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(y0,{selectNode:x,handleChange:Ke}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(x0,{selectNode:x,dispatch:q,onChange:T,selections:R,handleChange:Ke,isMissFont:se,cloudFontLocalList:ge,refVars:Ne})]})},params:{},getter:[m=>{let{selectedItems:x,rootProject:T,hasMissFontHi:R,cloudFontLocalList:q}=m;const se=x[0].hotAttr,{selectNode:ge}=se,Ne=(0,ft.QT)(ge.fontFamily,ge.fontWeight);return{selectNode:ge,rootProject:T,widgetHotAttr:se,isMissFont:Ne,hasMissFontHi:R,cloudFontLocalList:q,refVars:(0,Bt.xj)(x,"selectNode")}}],setter:{onChange:gt.c}},b0=()=>[f0,[v0,"TreeSettingsPanel"]],C0=s.Ay.section.withConfig({displayName:"styles__StyledTreeSwitche",componentId:"sc-11g0tqv-0"})(["padding:8px 14px 8px 14px;border-top:1px solid ",";color:",";display:flex;align-items:start;position:relative;flex-direction:column;box-sizing:content-box;.line{height:32px;.left-label{width:70px;}.right-content{width:90px;align-items:center;}.Check-label{margin-left:10px;}}.checkbox-color-container{display:flex;flex-direction:column;width:100%;> div{display:flex;justify-content:space-between;align-items:center;margin-left:22px;height:28px;label{margin-right:7px;}}}"],m=>m.theme.color_bg_border_01,m=>m.theme.color_text_L2);var S0=e(59736);const _0=()=>[{text:I18N.SettingPanel.tree_fold_symbol.arrow,value:"arrow"},{text:I18N.SettingPanel.tree_fold_symbol.triangle,value:"triangle"},{text:I18N.SettingPanel.tree_fold_symbol.plus,value:"plus"}],w0=(0,h.memo)(m=>{let{tree:x,onChange:T,dispatch:R,selections:q}=m;const se=(dt,jt)=>{T({value:dt,attr:jt,supAttr:"tree",dispatch:R,selections:q})},ge=dt=>{se(dt,"isShowNodeIcon")},Ne=dt=>{se(dt,"isShowCheckbox")},Ke=dt=>{se(dt,"isShowFoldSymbol")},it=dt=>{se(dt,"foldSymbol")};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"line",children:(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(bt.A,{label:I18N.SettingPanel.display_icon,isChecked:x.isShowNodeIcon,onChange:ge})})}),(0,t.jsx)("div",{className:"line",children:(0,t.jsx)("div",{className:"right-content checkbox-content",children:(0,t.jsx)(bt.A,{label:I18N.SettingPanel.tree.show_checkbox,isChecked:x.isShowCheckbox,onChange:Ne})})}),x.isShowCheckbox&&(0,t.jsxs)("div",{className:"checkbox-color-container",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{children:I18N.SettingPanel.pointerBg}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:"tree",attr:"checkboxNoColor",attrPanel:"selectNode",color:x.checkboxNoColor,onChange:se})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{children:I18N.SettingPanel.pointerFg}),(0,t.jsx)(fo.R_,{mode:"input",className:fo.EY,supAttr:"tree",attr:"checkboxSelectColor",attrPanel:"selectNode",color:x.checkboxSelectColor,onChange:se})]})]}),(0,t.jsxs)("div",{className:"line",children:[(0,t.jsx)("div",{className:"right-content",children:(0,t.jsx)(bt.A,{label:I18N.SettingPanel.tree.fold_symbol,isChecked:x.isShowFoldSymbol,onChange:Ke})}),x.isShowFoldSymbol&&(0,t.jsx)(S0.Z,{optionList:_0(),displayLabel:I18N.SettingPanel.tree_fold_symbol[x.foldSymbol],onChange:it,selectedOption:x.foldSymbol,width:126})]})]})}),I0=m=>{let{children:x}=m;return(0,t.jsx)(C0,{children:x})},T0={component:w0,params:{},getter:[m=>{let{selectedItems:x}=m;return{tree:(0,ot.i)(x,"tree")}}],setter:{onChange:gt.c}},A0=()=>[I0,[T0,"TreeSwitchPanel"]],oc={[A.x.WRichText]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[ce(m),E.Hy.Text],[(0,Pt.X)(m),E.Hy.Appearance],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WRect]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[(0,Pt.X)(m),E.Hy.Appearance],[ce(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WOval]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[(0,Pt.X)(m),E.Hy.Appearance],[ce(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WWrap]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WGraph]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common]],[A.x.WStar]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[gs(m),E.Hy.PolygonInfo],[(0,Pt.X)(m),E.Hy.Appearance],[ce(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WPolygon]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[gs(m),E.Hy.PolygonInfo],[(0,Pt.X)(m),E.Hy.Appearance],[ce(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WPlaceholder]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[(0,Pt.X)(m),E.Hy.Appearance],[ce(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WMTooltip]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[(0,Pt.X)(m),E.Hy.Appearance],[ce(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WButton]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[(0,Pt.X)(m),E.Hy.Appearance],[ce(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WButtonSolid]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[(0,Pt.X)(m),E.Hy.Appearance],[ce(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WMTextInput]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[o0(),E.Hy.InputTypePanel],[bd(),E.Hy.InputPlaceholderPanel],[(0,Pt.X)(m),E.Hy.Appearance],[ce(m),E.Hy.Text]],[A.x.WMTextArea]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[bd(),E.Hy.InputPlaceholderPanel],[(0,Pt.X)(m),E.Hy.Appearance],[ce(m),E.Hy.Text]],[A.x.WMSelect]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[(0,Pt.X)(m),E.Hy.Appearance],[ce(m),E.Hy.Text]],[A.x.WIosCB]:m=>[[hn(m),E.Hy.General],[(0,Pt.X)(m),E.Hy.Appearance]],[A.x.WAndroidRadio]:m=>[[hn(m),E.Hy.General],[(0,Pt.X)(m),E.Hy.Appearance]],[A.x.WAndroidCB]:m=>[[hn(m),E.Hy.General],[(0,Pt.X)(m),E.Hy.Appearance]],[A.x.WLine]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[(0,Pt.X)(m),E.Hy.Appearance],[ce(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WArrow]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[(0,Pt.X)(m),E.Hy.Appearance],[ce(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WImage]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[ka(),E.Hy.ImageDrop],[(0,Pt.X)(m),E.Hy.Appearance],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WTable]:(m,x)=>{const{isSelectTableCell:T}=x;return T?[[(0,Ja.h)(),E.Hy.TableCellPanel],[ce(m),E.Hy.Text]]:[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[ma(),E.Hy.TablePanel]]},[A.x.WQRCode]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[Rl(),E.Hy.QRCodePanel],[(0,Pt.X)(m),E.Hy.Appearance],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WWebpage]:m=>[[hn(m),E.Hy.General],[fl(),E.Hy.WebPagePanel]],[A.x.WAudio]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[Ml(),E.Hy.AudioPanel],[(0,Pt.X)(m),E.Hy.Appearance],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WVideo]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[Za(),E.Hy.VideoPanel],[(0,Pt.X)(m),E.Hy.Appearance],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WMFileInput]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common]],[A.x.WCarousel]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[il(),E.Hy.Carousel]],[A.x.WTriangleB]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[(0,Pt.X)(m),E.Hy.Appearance],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WTriangleTL]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[(0,Pt.X)(m),E.Hy.Appearance],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WMapView]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common]],[A.x.WLR]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common]],[A.x.WBasket]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[Ru(),E.Hy.TemplatePanel]],[A.x.WIcon]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[u0(),E.Hy.IconFlipPanel],[(0,Pt.X)(m),E.Hy.Appearance],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WIconButton]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[(0,Pt.X)(m),E.Hy.Appearance],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WDropMenu]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[ap(),E.Hy.DropMenuPanel],[cs(),E.Hy.OptionDropMenuPanel],[lp(),E.Hy.DropMenuOptionColor],[(0,Pt.X)(m),E.Hy.Appearance],[ce(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WNavigationMenu]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[Vs(),E.Hy.NavigationMenuTypePanel],[hp(),E.Hy.NavigationMenuOtherOptionsPanel],[cs(),E.Hy.OptionNavigationMenuPanel],[zl(),E.Hy.NavigationMenuSettingsPanel],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WNavigationMenuH]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[Vs(),E.Hy.NavigationMenuTypePanel],[cs(),E.Hy.OptionNavigationMenuHPanel],[zl(),E.Hy.NavigationMenuSettingsPanel],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WNavigationMenuV]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[Vs(),E.Hy.NavigationMenuTypePanel],[cs(),E.Hy.OptionNavigationMenuVPanel],[zl(),E.Hy.NavigationMenuSettingsPanel],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WCollapse]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[Qd(),E.Hy.CollapseSwitchOptionsPanel],[cs(),E.Hy.OptionCollapsePanel],[(0,Pt.X)(m),E.Hy.Appearance],[Ud(),E.Hy.CollapseSettingsPanel],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WSegmentedControl]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[cs(),E.Hy.OptionSegmentedControlPanel],[(0,Pt.X)(m),E.Hy.Appearance],[Zd(),E.Hy.SegmentedControlPanel],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WTabs]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[cs(),E.Hy.OptionTabsPanel],[Ep(),E.Hy.TabsPanel],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WPaginationMobile]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[(0,Pt.X)(m),E.Hy.Appearance],[Kc("paginationMobile"),E.Hy.MaxPageNumber],[Rp(),E.Hy.PaginationMobilePanel],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WPaginationWeb]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[(0,Pt.X)(m),E.Hy.Appearance],[Kc("paginationWeb"),E.Hy.MaxPageNumber],[Bp(),E.Hy.PaginationWebPanel],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WDigitalStepper]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[Hp(),E.Hy.DigitalStepperPanel],[(0,Pt.X)(m),E.Hy.Appearance],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WSlider]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[th(),E.Hy.SliderPanel],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WMobileTabBars]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[bp(),E.Hy.MobileTabBarsSwitchOptionsPanel],[cs(),E.Hy.OptionTabsPanel],[(0,Pt.X)(m),E.Hy.Appearance],[ce(m),E.Hy.Text],[ah(),E.Hy.MobileTabBarsPanel],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WAndroidSwitch]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[Dc(),E.Hy.SwitchOptionsPanel],[Oc(),E.Hy.SwitchPanel],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WIOSSwitch]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[Dc(),E.Hy.SwitchOptionsPanel],[Oc(),E.Hy.SwitchPanel],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WSelectionControl]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[ph(),E.Hy.SelectionControlTypeSettingsPanel],[fh(),E.Hy.SelectionControlAttrSettingsPanel],[cs(),E.Hy.OptionTabsPanel],[Ch(),E.Hy.SelectionControlColorSettingsPanel],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WChart]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[Mu(),E.Hy.ChartSettingsPanel],[(0,Eo.X)(),E.Hy.Animation]],[A.x.Canvas]:m=>[[hn(m),E.Hy.General],[Uu(),E.Hy.CanvasColorPanel],[(0,pl.P)(),E.Hy.LayoutGrid],[dl(),E.Hy.StickyArea]],[A.x.CanvasAsOverlay]:m=>[[hn(m),E.Hy.General],[(0,Pt.X)(m),E.Hy.Appearance]],[A.x.WElbow]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[ce(m),E.Hy.Text],[(0,Pt.X)(m),E.Hy.Appearance]],[A.x.WUnifiedKeyboard]:m=>[[hn(m),E.Hy.General]],[A.x.WIphoneSB]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[(0,Pt.X)(m),E.Hy.Appearance]],[A.x.WIphoneXSB]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[(0,Pt.X)(m),E.Hy.Appearance]],[A.x.WAndroidSB]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[(0,Pt.X)(m),E.Hy.Appearance]],[A.x.WTabItem]:m=>[[hn(m),E.Hy.General]],[A.x.WSearchBar]:m=>[[hn(m),E.Hy.General]],[A.x.WVector]:(m,x)=>{let{vectorEditor:T}=x;return T?[[_o(),E.Hy.General],[Yu(),E.Hy.Common]]:[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[(0,Pt.X)(m),E.Hy.Appearance],[ce(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]]},[A.x.WTriangle]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[(0,Pt.X)(m),E.Hy.Appearance],[ce(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WSwimlane]:(m,x)=>{const{swimlaneIsShallowEditing:T}=x;return T?[[e0(),E.Hy.Common]]:[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common]]},[A.x.wFlowClosed]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[(0,Pt.X)(m),E.Hy.Appearance],[ce(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WFlowOpened]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[(0,Pt.X)(m),E.Hy.Appearance],[ce(m),E.Hy.Text],[(0,Eo.X)(),E.Hy.Animation]],[A.x.WTree]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common],[A0(),E.Hy.TreeSwitchPanel],[cs(),E.Hy.OptionNavigationMenuVPanel],[(0,Pt.X)(m),E.Hy.Appearance],[ce(m),E.Hy.Text],[b0(),E.Hy.NavigationMenuSettingsPanel],[(0,Eo.X)(),E.Hy.Animation]],[E.m9]:m=>[[hn(m),E.Hy.General],[Dt(m),E.Hy.Common]]},P0=m=>{let{selectedItems:x,...T}=m;const R=x[0],q=(oc[(0,g.o9)(R)]||oc[E.m9])(x,{...T});if(x.length===1)return q;{const se=(0,gt.k)({selectedItems:x,settingPanelMap:oc,otherProps:T});return M0({selectedItems:x,baseSettingPanel:q,intersection:se})}},M0=m=>{let{selectedItems:x,baseSettingPanel:T,intersection:R}=m;const q=T.filter(se=>{let[ge,Ne]=se;return R.includes(Ne)});if(x.findIndex(se=>se.hotAttr.type===A.x.WImage)!==-1&&!R.includes(E.Hy.ImageDrop)){const se=q.findIndex(Ne=>{let[Ke,it]=Ne;return it===E.Hy.Animation}),ge=[ka(),E.Hy.ImageDrop];q.splice(se!==-1?se:q.length,0,ge)}if(x.findIndex(se=>Vn.cX.includes(se.hotAttr.type))!==-1&&!R.includes(E.Hy.Text)){const se=q.findIndex(it=>{let[dt,jt]=it;return jt===E.Hy.Common}),ge=q.findIndex(it=>{let[dt,jt]=it;return jt===E.Hy.General}),Ne=se!==-1?se:ge!==-1?ge:0,Ke=[ce(x),E.Hy.Text];q.splice(Ne+1,0,Ke)}if(x.findIndex(se=>Bu.H3.includes((0,g.o9)(se)))!==-1&&!R.includes(E.Hy.Appearance)){const se=q.findIndex(dt=>{let[jt,Ot]=dt;return Ot===E.Hy.Common}),ge=q.findIndex(dt=>{let[jt,Ot]=dt;return Ot===E.Hy.General}),Ne=q.findIndex(dt=>{let[jt,Ot]=dt;return Ot===E.Hy.Text}),Ke=Ne!==-1?Ne:se!==-1?se:ge!==-1?ge:0,it=[(0,Pt.X)(x),E.Hy.Appearance];q.splice(Ke+1,0,it)}if(x.findIndex(se=>se.hotAttr.type===A.x.WTable)!==-1&&!R.includes(E.Hy.TablePanel)){const se=[ma(),E.Hy.TablePanel];q.splice(q.length,0,se)}return q};var E0=e(87612),sc=e(12410);const L0=s.Ay.div.withConfig({displayName:"styles__StyledWidgetOperationBox",componentId:"sc-1xp98a3-0"})([".widget-operation-icon-box{width:60px;height:28px;border:1px solid ",";&.disabled .svg-icon{color:",";}.svg-icon{width:24px;height:24px;color:",";}}.widget-operation-text{text-align:center;font-size:12px;line-height:16px;margin-top:6px;color:",";}"],m=>m.theme.color_bg_border_02,m=>m.theme.color_text_disabled01,m=>m.theme.color_text_L1,m=>m.theme.color_text_L1),N0=s.Ay.div.withConfig({displayName:"styles__StyledWidgetOperation",componentId:"sc-1xp98a3-1"})(["height:82px;display:flex;align-items:center;border-bottom:1px solid ",";padding:0 16px;justify-content:space-between;"],m=>m.theme.color_bg_border_01),D0=m=>{const{canMove:x,canGroup:T,canUngroup:R,isWidgetOperationLayoutModalIsOpen:q,dispatch:se}=m;(0,h.useEffect)(()=>()=>{var it;(it=MB)==null||(it=it.commonGuideHelper)==null||it.closeAndMarkGuideAsRead($e.c.GUIDE_COMMON_V9_OPERATIONS_GUIDE)},[]);const ge=()=>{se({type:"modal:update:state",payload:{widgetOperationLayoutModal:{isOpen:!q}}})},Ne=()=>{se({type:"entry:group:items"}),(0,S.$n)({operationType:S.VW.Combination})},Ke=()=>{se({type:"entry:ungroup:items"}),(0,S.$n)({operationType:S.VW.BreakUp})};return(0,t.jsxs)(N0,{className:""+$e.c.GUIDE_COMMON_V9_OPERATIONS_GUIDE,children:[(0,t.jsx)(ic,{name:I18N.ToolBar.layout,svgIconName:"setting_panel/widget_operation/layer",disabled:!x,active:q,toolTipDistance:8,onClick:ge}),(0,t.jsx)(ic,{name:I18N.ToolBar.group,svgIconName:"setting_panel/widget_operation/group",disabled:!T,toolTipDistance:8,onClick:Ne}),(0,t.jsx)(ic,{name:I18N.ToolBar.ungroup,svgIconName:"setting_panel/widget_operation/ungroup",disabled:!R,toolTipDistance:8,onClick:Ke})]})},ic=m=>{const{name:x,...T}=m;return(0,t.jsxs)(L0,{children:[(0,t.jsx)($l.A,{className:"widget-operation-icon-box",...T}),(0,t.jsx)("div",{className:"widget-operation-text",children:x})]})},k0=D0,O0=(0,r.Mz)([sc.X.query.getIsShallowEditing,d.p$,be.tP],(m,x,T)=>{let R=!1,q=!1,se=!1;return x.length>0&&(R=(0,g.sQ)(x)&&!m,q=(0,g.kE)(x)&&!m,se=(0,g.P6)(x)&&!m),{canMove:R,canGroup:q,canUngroup:se,isWidgetOperationLayoutModalIsOpen:T}}),R0=(0,n.Ng)(m=>O0(m))(k0),B0=(0,h.memo)(m=>{var x,T;const{selectedItems:R,selections:q,isSelectTableCell:se,swimlaneIsShallowEditing:ge,isDraggingItem:Ne,dispatch:Ke,...it}=m,dt=h.useRef(null),jt=(0,h.useMemo)(()=>P0({selections:q,selectedItems:R,isSelectTableCell:se,vectorEditor:it.vectorEditor,swimlaneIsShallowEditing:ge}),[se,it.vectorEditor,it.currentAppearRefStyle,it.currentTextRefStyle,q,ge,(x=R[0])==null?void 0:x.hotAttr.type,(T=R[0])==null?void 0:T.hotAttr.basket]);return R.length?(0,t.jsxs)(t.Fragment,{children:[!(se||ge)&&(0,t.jsx)(k,{}),!(se||ge)&&(0,t.jsx)(R0,{}),(0,t.jsxs)(z,{className:"widget-settings",children:[(0,t.jsx)("div",{className:"scroll-container",ref:dt,children:(0,t.jsx)("div",{className:"scroll-content",children:jt.map(Ot=>{let[[qt,...sn],Wn]=Ot;return(0,t.jsx)(qt,{type:Wn,isDraggingItem:Ne,dispatch:Ke,children:sn.map((kn,lo)=>{const[{component:Wo,params:Zo,getter:Yo,setter:is},os]=kn,[es,ns]=Yo;try{const qo=es({selections:q,selectedItems:R,...it});let ds={};return ns&&(ds=ns({selections:q,selectedItems:R,...it})),(0,t.jsx)(Wo,{dispatch:Ke,selections:q,...is,...Object.assign({},Zo,qo,ds)},os)}catch(qo){return Ke({type:"entry:update:selection:select:items",payload:{type:"selection:clear"}}),console.log("[fatal]: widget settings error",qo,"type:",os,"data:",kn,"selections:",q,"otherProps:",it),(0,E0.p)("[fatal]: widget settings",qo),null}})},Wn)})})}),(0,t.jsx)(K.yP,{type:"vertical",containerRef:dt,isAutoHideBar:!0})]}),(0,t.jsx)($.A,{})]}):null}),Id=(0,r.Mz)([d.nE,d.p$,c.PL,c.Mj,c.W4,y.zX,o.tR,w.nx,c.lh,c.HW,c.wA,w.jI,w.bt,w.lY,sc.X.query.getIsShallowEditing,sc.X.query.getSelectedCellsInfo,da.MZ,Ri.y.query.getMissFontHiKeySet,Ri.y.query.getCloudFontLocalList,c.pO,u.Dw,u.jj],(m,x,T,R,q,se,ge,Ne,Ke,it,dt,jt,Ot,qt,sn,Wn,kn,lo,Wo,Zo,Yo,is)=>{let{isExperience:os,isLoggedExperience:es,isDesign:ns}=q;const qo=x.length>0,ds=qo?sdkStore.getHotItem(x[0]):null,Es=se&&(ds==null?void 0:ds.hotAttr.type)===A.x.WTable,Ps=qo&&Ke&&Ke===(ds==null?void 0:ds.key),fs=x.some(ps=>lo.has(ps));return{selectedItems:m,selections:x,isSelectTableCell:Es,rootProject:T,isDesign:ns,isExperience:os,isLoggedExperience:es,selectionTableCell:se,isTextEditing:Ps,selectionAttrs:Ne,richTextEditorState:R,currentUser:it,currentOrg:dt,imageProps:{currentImageOperateType:ge},editingPanelCid:jt,editingPanelRefPage:Ot,vectorEditor:qt,swimlaneIsShallowEditing:sn,swimlaneSelectedCellsInfo:Wn,layoutV9:kn,hasMissFontHi:fs,cloudFontLocalList:Wo,isDraggingItem:Zo,currentAppearRefStyle:Yo,currentTextRefStyle:is}}),j0=(0,n.Ng)(m=>Id(m))(B0)},51743:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>h});var n=e(95549),r=e(25582),c=e.n(r),o=e(38502),w=e(67787);const u=9,d=w.Ay.div.withConfig({displayName:"styles__StyledSlider",componentId:"sc-1hg1r6p-0"})(["&.slider{position:relative;width:100%;height:12px;display:flex;align-items:center;cursor:pointer;.rail{position:absolute;top:4px;left:0;width:calc(100% - ","px);height:4px;&::before{content:'';position:absolute;left:0;right:-","px;height:100%;background:",";border-radius:4px;}.fill{position:absolute;left:0;height:100%;background:",";border-radius:3px 0 0 3px;}.slider-btn{position:absolute;width:12px;height:12px;top:-4px;border-radius:50%;background:white;border:1px solid ",";&:hover{background:#ccc;border-color:#ccc;}}}}"],u,u,i=>i.theme.color_btn_secondary_active,i=>i.theme.color_proto,i=>i.theme.color_proto);var y=e(72214);class h extends o.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"setRef",f=>this.wrapper=f),(0,n.A)(this,"_calValue",f=>{const{min:p,max:s}=this.props,{left:l,width:C}=this.wrapper.getBoundingClientRect();let a=(Math.min(1,Math.max(0,(f-l)/C))*s).toFixed(1);return a<p?p:a}),(0,n.A)(this,"handleDown",f=>{const{attr:p,onChange:s,onConfirm:l,onMouseDown:C}=this.props,v=this._calValue(f.clientX);if(C&&C(p),s(v,p),!this.wrapper)return;this.wrapper.querySelector(".slider-btn").classList.add("slider-move");const a=b=>{if(!this.wrapper)return;const g=this._calValue(b.clientX);s(g,p)},P=b=>{if(document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",P),!this.wrapper)return;this.wrapper.querySelector(".slider-btn").classList.remove("slider-move");const g=this._calValue(b.clientX);l(g,p)};a(f.nativeEvent),document.addEventListener("mousemove",a),document.addEventListener("mouseup",P)})}render(){const{value:f,max:p,min:s,width:l}=this.props,C=(f-s)/(p-s),v=C*100+"%";return(0,y.jsx)(d,{type:"slider",ref:this.setRef,style:{width:l},className:"slider",onMouseDown:this.handleDown,children:(0,y.jsxs)("div",{className:"rail",children:[(0,y.jsx)("div",{className:"fill",style:{width:C>0?"calc("+v+" + 1px)":v}}),(0,y.jsx)("div",{className:"slider-btn",style:{left:v}})]})})}}(0,n.A)(h,"propTypes",{attr:c().string,value:c().oneOfType([c().number,c().string]).isRequired,max:c().number.isRequired,min:c().number,width:c().number,onChange:c().func,onConfirm:c().func,onMouseDown:c().func}),(0,n.A)(h,"defaultProps",{value:50,max:100,min:0})},52275:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>ie});var n=e(95549),r=e(38502),c=e(33515),o=e(69374),w=e(17307),u=e(67787);const d=u.Ay.div.withConfig({displayName:"style__StyledLinkHeader",componentId:"sc-5r07sc-0"})(["display:flex;flex-direction:column;padding-top:16px;.link-header{display:flex;align-items:center;justify-content:space-between;padding:0 10px 0 16px;.link-title{color:",";font-weight:500;flex:1;}.action{display:flex;.svg-icon{color:",";}.trash-icon{display:flex;align-items:center;color:",";width:10px;height:12px;&:hover{.svg-icon{color:#298df8;}}}}}.link-info{display:flex;align-items:center;padding:0 16px;&.keydown .title-content .input-key{width:144px;height:28px;display:flex;align-items:center;padding:0 6px;caret-color:transparent;cursor:pointer;border-radius:6px;border:1px solid transparent;outline:none;color:",";&.is-tips{color:",";}&.is-blur-tips{border:1px solid ",";}&:hover{border:1px solid ",";}&:focus{border:2px solid ",";}}.options-opener{width:137px;}.link-name{margin:0 4px;}.arrow-icon{font-size:12px;color:",";transform:rotate(90deg);}}"],oe=>oe.theme.color_text_L1,oe=>oe.theme.color_text_L2,oe=>oe.theme.color_text_L2,oe=>oe.theme.color_text_L1,oe=>oe.theme.color_text_L3,oe=>oe.theme.color_bg_border_02,oe=>oe.theme.color_bg_border_02,oe=>oe.theme.color_btn_primary_normal,oe=>oe.theme.color_text_L3);var y=e(40486),h=e(99566),i=e(16913),f=e(53732),p=e.n(f),s=e(82846),l=e(72214);const C="\u8BF7\u6309\u4E0B\u6309\u952E",v="\u70B9\u51FB\u4EE5\u6309\u4E0B\u6309\u952E",a=oe=>{const{tNodeTrigger:ue,onChangeTrigger:ve}=oe,[re,fe]=(0,r.useState)((0,h.qS)(ue,!0)[1]),[we,Te]=(0,r.useState)((0,y.Pn)(re)||C),Ie=(0,r.useRef)(),le=(0,r.useRef)(),me=(0,r.useMemo)(()=>[C,v].includes(we),[we]),Pe=(0,r.useMemo)(()=>we===v,[we]);return(0,r.useEffect)(()=>{fe((0,h.qS)(ue,!0)[1])},[ue]),(0,r.useEffect)(()=>{const pe=new s.Ay({targetElement:Ie.current,containerEle:Ie.current,onCompleteCallback:ke=>{var We;fe(ke),ve((0,h.FK)({interactionTrigger:"keydown",keyseq:ke})),(We=Ie.current)==null||We.blur()}});return le.current=pe,()=>{pe.destroyRecording()}},[ve]),(0,r.useEffect)(()=>{var pe;Te((0,y.Pn)(re));const ke=()=>Te(C),We=()=>{var Ae;Te(re?(0,y.Pn)(re):v),(Ae=le.current)==null||Ae.clearKeysPressed()},Ee=Ie.current;return Ee&&Ee.addEventListener("focus",ke),Ee&&Ee.addEventListener("blur",We),re||(pe=Ie.current)==null||pe.focus(),()=>{Ee&&Ee.removeEventListener("focus",ke),Ee&&Ee.removeEventListener("blur",We)}},[re]),(0,l.jsx)("div",{className:"link-info keydown height-32",children:(0,l.jsx)(i.A,{linkTitle:I18N.Interaction.trigger.keydown_key,className:"state-action",children:(0,l.jsx)("div",{ref:Ie,className:p()("input-key",{"is-tips":me},{"is-blur-tips":Pe}),tabIndex:0,children:we})})})},P=u.Ay.div.withConfig({displayName:"styles__StyledListenerTarget",componentId:"sc-1265d5b-0"})(["display:flex;flex-direction:column;align-items:center;padding:0px 16px;.listener-trigger-target-list{cursor:pointer;&.is-open .options-opener{border:1px solid ",";.expand-icon{color:",";margin-left:auto;}}}"],oe=>oe.theme.color_bg_border_02,oe=>oe.theme.color_text_L1),b=u.Ay.div.withConfig({displayName:"styles__StyledListenerOpener",componentId:"sc-1265d5b-1"})(["width:142px;height:28px;padding-left:4px;border:1px solid transparent;display:flex;align-items:center;border-radius:6px;.placeholder{color:",";}&:hover{border:1px solid ",";justify-content:space-between;.expand-icon{color:",";}}.expand-icon{width:26px;height:26px;flex-shrink:0;color:",";margin-left:4px;}"],oe=>oe.theme.color_text_link_normal,oe=>oe.theme.color_bg_border_02,oe=>oe.theme.color_text_L1,oe=>oe.theme.color_text_L3),g=(0,u.DU)([".DesignDropdownMenu.listener-trigger-target-list .content{padding:0px;width:190px;height:275px;}.design-toolbar-menu .listener-trigger-menu.is-animation{transition:unset;transform:unset;transition-delay:0.1s;}"]);var S=e(87332);const t=u.Ay.div.withConfig({displayName:"styles__StyledListenerDropMenu",componentId:"sc-u45kaq-0"})(["width:220px;height:300px;background:",";box-shadow:",";border-radius:8px;color:",";border:1px solid ",";.var-dropmenu-list{flex:1;.var-item{padding-left:24px;.left .var-icon{margin-right:8px;}}}"],oe=>oe.theme.color_bg_white,oe=>oe.theme.shadow_m,oe=>oe.theme.color_text_L0,oe=>oe.theme.color_bg_border_01),_=u.Ay.div.withConfig({displayName:"styles__StyledListenerTargetSelect",componentId:"sc-u45kaq-1"})(["width:100%;flex:1;overflow-x:auto;overflow-y:auto;list-style:none;color:#fff;pointer-events:all;padding:8px;color:",";.scroll-able-container{min-width:100%;width:max-content;display:flex;flex-direction:column;.dropmenu-no-exit{padding-top:4px;padding-bottom:4px;}}::-webkit-scrollbar-thumb{background-color:",";border-radius:4px;&:hover{background-color:",";}}"],oe=>oe.theme.color_text_L0,oe=>oe.theme.color_bg_border_02,oe=>oe.theme.color_background_split_hover),I=u.Ay.div.withConfig({displayName:"styles__StyledListenerMainMenu",componentId:"sc-u45kaq-2"})(["height:calc(100% - 32px);.lazy-list{height:100%;}.var-menu-open{display:flex;align-items:center;height:28px;padding-left:22px;border-radius:4px;cursor:pointer;&.is-disabled{cursor:not-allowed;opacity:0.5;}&:not(.is-disabled):hover{background:",";}.option-icon{width:20px;height:20px;display:flex;align-items:center;justify-content:center;}span{margin-left:6px;font-size:12px;font-weight:600;}.arrow-right{transform:rotate(180deg);}}.dropmenu-no-exit{padding-top:4px;padding-bottom:4px;}"],oe=>oe.theme.color_btn_secondary_hover),k=u.Ay.div.withConfig({displayName:"styles__StyledBackSelectOption",componentId:"sc-u45kaq-3"})(["display:flex;align-items:center;cursor:pointer;margin:8px 8px 0;height:28px;svg.back{flex-shrink:0;margin:0 2px 0 4px;path{fill:",";}}path{fill:",";}& > .Ellipsis{color:",";}.option-icon{width:20px;height:20px;display:flex;align-items:center;justify-content:center;}span{margin-left:6px;font-size:12px;font-weight:600;}"],oe=>oe.theme.color_text_L1,oe=>oe.theme.color_text_L1,oe=>oe.theme.color_text_L0);var j=e(37841),z=e(28652),K=e(18381),$=e(76613),A=e(89080);const E=oe=>{const{showVarMenu:ue,targetWidgetKey:ve,triggerKey:re,wQuery:fe,onWQuery:we,onSelectWidgetKey:Te,onOpenDropMode:Ie}=oe,le=(0,K.wA)(),me=(0,r.useRef)(null),{targetItemOptionList:Pe}=(0,z.G)({query:fe,keyTriggerItem:re}),pe=I18N.Variable.title.includes(fe);(0,r.useEffect)(()=>{var Ce;const _e=ve;return(Ce=me.current)==null||(Ce=Ce.querySelector('div[role="option"][data-value="'+_e+'"]'))==null||Ce.scrollIntoView(!1),()=>{le({type:"set:echo:item",payload:{cid:void 0}})}},[ve,le]);const ke=Ce=>{le({type:"set:echo:item",payload:{cid:Ce===$.rE?re:Ce}})},We=Ce=>{le({type:"set:echo:item",payload:{cid:void 0}})},Ee=Ce=>{Te(Ce),Ie(de.Attr)},Ae=()=>ue&&Ie(de.Var);return(0,l.jsx)(j.N,{ref:me,query:fe,setQuery:we,children:Ce=>{let{toToggleCollapsed:_e,keyItemCollapsed:Ge}=Ce;return(0,l.jsx)(I,{children:(0,l.jsx)(A.A,{dataList:Pe,propsMap:{children:"subHotItemList"},itemHeight:28,activeKey:ve,isCollapsed:Xe=>{let{key:Ue}=Xe;return Ge.includes(Ue)},preItemHeight:pe?28:0,preItemRender:pe&&(0,l.jsxs)("div",{className:p()("var-menu-open",{"is-disabled":!ue}),onClick:Ae,children:[(0,l.jsx)("div",{className:"option-icon",children:(0,l.jsx)(w.C,{size:16,name:"interaction/action/11"})}),(0,l.jsx)("span",{children:I18N.Variable.title}),(0,l.jsx)(w.C,{size:16,name:"sharing/back_to_page_16",className:"arrow-right"})]}),itemRender:Xe=>{let{item:Ue,depth:pt}=Xe;return(0,l.jsx)(j.D,{depth:pt,withSubOptions:!0,optionItem:Ue,shouldRenderChildren:!1,isOptionActive:Ye=>{let{key:Qe}=Ye;return ve===Qe},onSelect:Ee,isOptionCollapsed:Ye=>{let{key:Qe}=Ye;return Ge.includes(Qe)},isOptionDisabled:Ye=>{let{forDisplayOnly:Qe}=Ye;return Qe},onToggleCollapsed:_e,onMouseEnterOption:ke,onMouseLeaveOption:We},Ue.key)}})})}})};var U=e(73352),O=e(81973),H=e(9680);const Q=oe=>{const{dropdownRef:ue,targetVarKey:ve,varQuery:re,onVarQuery:fe,onSelectVarKey:we,onOpenDropMode:Te}=oe,Ie=(0,K.d4)(O.ue),[le,me]=(0,r.useState)(ve?[ve]:[]),Pe=(0,r.useRef)(null),pe=ve&&sdkStore.isTrashed(ve)&&(0,H.hZ)(ve),ke=(0,r.useMemo)(()=>{const _e=Ie.slice();if(_e.sort((Xe,Ue)=>Xe.hotAttr.zIndex-Ue.hotAttr.zIndex),pe&&pe.isTrashed&&_e.unshift({key:pe.key,hotAttr:pe}),!re)return _e;const Ge=re.toLowerCase();return _e.filter(Xe=>Xe.hotAttr.name.toLowerCase().includes(Ge)||String(Xe.hotAttr.varData).includes(Ge))},[Ie,re,pe]);(0,r.useEffect)(()=>{var _e;const Ge=ve;(_e=Pe.current)==null||(_e=_e.querySelector('div.var-item.is-dropmenu[data-cid="'+Ge+'"]'))==null||_e.scrollIntoView(!1)},[ve]);const We=_e=>{if(Ee(),!_e)return we("");sdkStore.getHotItem(_e)&&we(_e)},Ee=()=>{var _e;(_e=ue.current)!=null&&_e.state.isMenuShow&&ue.current.setState({isMenuShow:!1})},Ae=_e=>{_e?(me([_e.key]),We(_e.key),Ee()):(me([]),We(""),Ee())},Ce=()=>{Te(de.Widget)};return(0,l.jsx)(j.N,{ref:Pe,query:re,setQuery:fe,children:()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(k,{onClick:Ce,children:[(0,l.jsx)(w.C,{size:16,name:"sharing/back_to_page_16",className:"back"}),(0,l.jsx)("div",{className:"option-icon",children:(0,l.jsx)(w.C,{size:16,name:"interaction/action/11"})}),(0,l.jsx)("span",{children:I18N.Variable.title})]}),(0,l.jsx)(U.A,{className:"var-dropmenu-list",list:ke,selection:le,onClick:Ae,isDropMenu:!0})]})})};var N=e(10472),L=e(68677),V=e(62150),M=e(61790),D=e(34999),W=e(43478);const F=oe=>{const{dropdownRef:ue,tempWTarKey:ve,targetWidgetKey:re,targetAttrKey:fe,attrQuery:we,onAttrQuery:Te,onSelectTargetAttr:Ie,onOpenDropMode:le,onTempWTarKey:me}=oe,Pe=(0,K.wA)(),pe=(0,r.useRef)(null),ke=sdkStore.getHotItem(ve),We=(0,r.useMemo)(()=>ve===re?fe:"",[ve,re,fe]),Ee=(0,r.useMemo)(()=>(0,W.Y)({keyWidgetSelected:ve,attrQuery:we,numberArreList:["TL","W","H","TRLX","TRLY","SCLX","SCLY","R","RX","RY","O"]}),[ve,we]),Ae=ve&&Ee.length>0;(0,r.useEffect)(()=>{var Ge;const Xe=fe;return(Ge=pe.current)==null||(Ge=Ge.querySelector('div[role="option"][data-value="'+Xe+'"]'))==null||Ge.scrollIntoView(!1),()=>{Pe({type:"set:echo:item",payload:{cid:void 0}})}},[fe,Pe]);const Ce=Ge=>{var Xe;Ie(Ge),(Xe=ue.current)!=null&&Xe.state.isMenuShow&&ue.current.setState({isMenuShow:!1})},_e=()=>{me(""),le(de.Widget)};return(0,l.jsx)(j.N,{ref:pe,query:we,setQuery:Te,children:()=>Ae?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(k,{onClick:_e,children:[(0,l.jsx)(w.C,{size:16,name:"sharing/back_to_page_16",className:"back"}),(0,l.jsx)(V.W,{renderItem:ke}),(0,l.jsx)(L.A,{children:(0,M.KD)(ve)})]}),(0,l.jsx)(_,{children:(0,l.jsx)("div",{className:"scroll-able-container",children:Ee.map(Ge=>(0,l.jsx)(j.D,{depth:0,withSubOptions:!1,optionItem:Ge,isOptionActive:Xe=>{let{key:Ue}=Xe;return We===Ue},onSelect:()=>Ce(Ge.key),isOptionCollapsed:()=>!1,isOptionDisabled:()=>!1,onToggleCollapsed:()=>{},noIcon:!0},Ge.key))})})]}):(0,l.jsx)(D.Q,{query:we})})},B=oe=>{var ue;const{targetAttrKey:ve,dropdownRef:re,targetWKey:fe,targetVarKey:we="",triggerKey:Te,initDropMode:Ie,onChangeVarTarKey:le=()=>{},onChangeTargetAttr:me}=oe,[Pe,pe]=(0,r.useState)(Ie),[ke,We]=(0,r.useState)(fe),[Ee,Ae]=(0,r.useState)(""),[Ce,_e]=(0,r.useState)(""),[Ge,Xe]=(0,r.useState)(""),Ue=!((ue=(0,K.d4)(N.r))!=null&&ue.isEditingCombo),pt=qe=>pe(qe),Ye=qe=>qe.stopPropagation(),Qe=qe=>We(qe),lt=qe=>{me(qe,ke)},tt=()=>{switch(!0){case(Pe===de.Var&&Ue):return(0,l.jsx)(Q,{dropdownRef:re,targetVarKey:we,varQuery:Ee,onVarQuery:Ae,onSelectVarKey:le,onOpenDropMode:pt});case Pe===de.Attr:return(0,l.jsx)(F,{dropdownRef:re,targetAttrKey:ve,tempWTarKey:ke,targetWidgetKey:fe,attrQuery:Ge,onAttrQuery:Xe,onSelectTargetAttr:lt,onOpenDropMode:pt,onTempWTarKey:We});default:return(0,l.jsx)(E,{showVarMenu:Ue,targetWidgetKey:fe,triggerKey:Te,wQuery:Ce,onWQuery:_e,onSelectWidgetKey:Qe,onOpenDropMode:pt})}};return(0,l.jsx)(t,{className:"listener-trigger-dropmenu",onClick:Ye,children:tt()})};var Y=e(20089),X=e(91137);const G=oe=>{const{openerMode:ue,targetWKey:ve,targetVarKey:re="",targetAttrKey:fe=""}=oe;return(()=>{switch(ue){case de.Widget:{const Te=sdkStore.isTrashed(ve),Ie=Te?I18N.SettingPanel.please_select:(0,M.KD)(ve);return(0,l.jsx)(c.VA,{title:Ie,icon:Te?null:(0,l.jsx)(V.W,{renderItem:sdkStore.getHotItem(ve),targetKey:ve}),isPlaceholder:Te,onShowTipsByTarget:(le,me)=>{var Pe;return((Pe=me.querySelector(".select-title "))==null?void 0:Pe.scrollWidth)>80}})}case de.Attr:return(0,l.jsx)(c.VA,{title:I18N.Expression.exprWattr[fe],icon:fe?(0,l.jsx)(w.C,{size:20,name:"interaction/expression/wattr/"+fe}):null,isPlaceholder:!fe,onShowTipsByTarget:(Te,Ie)=>{var le;return((le=Ie.querySelector(".select-title "))==null?void 0:le.scrollWidth)>80}});case de.Var:{const Te=sdkStore.isTrashed(re),Ie=(0,H.hZ)(re);return(0,l.jsx)(X.h,{varItem:Ie,isTrashed:Te,showName:!0})}default:return(0,l.jsxs)(b,{className:"empty-opener options-opener",children:[(0,l.jsx)("span",{className:"placeholder",children:I18N.SettingPanel.please_select}),(0,l.jsx)(w.C,{className:"expand-icon",name:"common/expand@26"})]})}})()};var Z=e(88981),J=e(4235),te=e(37780);const he={distance:0,offsetX:-32},de={Var:"var",Widget:"widget",Attr:"attr"},Se=oe=>{let{targetKeyList:ue,isListenerTarInvalid:ve}=oe;const[,re,fe=""]=ue;if(!re)return{};const we=sdkStore.getHotItem(re);return we?we.hotAttr.type===Y.x.Var?{varKey:re}:ve?{}:{wKey:re,attrKey:fe}:{}},xe=oe=>{const{tNodeTrigger:ue,isListenerTarInvalid:ve,onChangeTrigger:re}=oe,fe=(0,K.d4)(J.U2),we=(0,K.d4)(te.R7.query.getSelectItaInfo),Te=(0,K.d4)(te.R7.query.getNewTriggerNodeShowKey),{wKey:Ie="",varKey:le="",attrKey:me=""}=Se({targetKeyList:(0,h.Tq)(ue,!0),isListenerTarInvalid:ve}),[Pe,pe]=(0,r.useState)(Ie),[ke,We]=(0,r.useState)(le),[Ee,Ae]=(0,r.useState)(me),[Ce,_e]=(0,r.useState)(!1),Ge=(0,r.useRef)(null),Xe=(0,r.useRef)(null);(0,r.useEffect)(()=>{pe(Ie),We(le),Ae(me);let Ye;return(we.type==="trigger"||Te)&&(Ye=setTimeout(()=>_e(!Ie&&!le))),()=>{_e(!1),Ye&&clearTimeout(Ye)}},[me,le,Ie,we.type,Te]);const Ue=Ye=>{We(Ye),pe(""),re({interactionTrigger:Z.O.Listener,listenTarKey:Ye,listenTarAttr:""})},pt=function(Ye,Qe){Qe===void 0&&(Qe=""),Qe&&(pe(Qe),We("")),Ae(Ye),re({interactionTrigger:Z.O.Listener,listenTarKey:Qe||Pe,listenTarAttr:Ye})};return(0,l.jsxs)(P,{children:[(0,l.jsx)(i.A,{linkTitle:I18N.SettingPanel.design.link_target,className:"listener-trigger",children:(0,l.jsx)(S.A,{className:"listener-trigger-target-list",menuClassName:"listener-trigger-menu",isAnimation:!0,ref:Ge,...he,isDefaultOpen:Ce,renderOpener:(0,l.jsx)(G,{openerMode:ke?de.Var:de.Widget,triggerKey:fe,targetVarKey:ke,targetWKey:Pe}),renderMenu:(0,l.jsx)(B,{initDropMode:ke?de.Var:de.Widget,dropdownRef:Ge,triggerKey:fe,targetVarKey:ke,targetWKey:Pe,targetAttrKey:Ee,onChangeVarTarKey:Ue,onChangeTargetAttr:pt})})}),Pe&&(0,l.jsx)(i.A,{linkTitle:I18N.Interaction.trigger.listener_attr,className:"state-action",children:(0,l.jsx)(S.A,{className:"listener-trigger-target-list",menuClassName:"listener-trigger-menu",isAnimation:!0,ref:Xe,...he,renderOpener:(0,l.jsx)(G,{openerMode:de.Attr,triggerKey:fe,targetWKey:Pe,targetAttrKey:Ee}),renderMenu:(0,l.jsx)(B,{initDropMode:de.Attr,dropdownRef:Xe,triggerKey:fe,targetWKey:Pe,targetAttrKey:Ee,onChangeVarTarKey:Ue,onChangeTargetAttr:pt})})}),(0,l.jsx)(g,{})]})};var be=e(50320);class ie extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleGesture",ue=>{this.props.onChangeTrigger((0,h.FK)({interactionTrigger:ue}))}),(0,n.A)(this,"handleTrashClick",()=>{const{handleDelete:ue,hasTrash:ve}=this.props;!ve||!ue||ue()})}render(){var ue;const{tNodeTrigger:ve,hasTrash:re,interactionTree:fe,onChangeTrigger:we}=this.props,Te=(0,h.Jh)(ve);return(0,l.jsxs)(d,{children:[(0,l.jsx)("div",{className:"link-info height-32",children:(0,l.jsx)(i.A,{linkTitle:I18N.Interaction.trigger_desc,className:"state-action",children:(0,l.jsx)(c.Ay,{isPosition2:!0,isOpenerAttrDisabled:!1,menux:"left",title:(0,y.Oz)(Te),icon:(0,l.jsx)(w.C,{size:16,name:"interaction/trigger/"+Te}),className:"link--drop-gesture-list",renderMenu:(0,l.jsx)(o.A,{currentGesture:Te,onSelect:this.handleGesture,interactionTree:fe})})})}),(0,h.Id)(ve)&&(0,l.jsx)(a,{tNodeTrigger:ve,onChangeTrigger:we}),(0,h.RR)(ve)&&(0,l.jsx)(xe,{isListenerTarInvalid:fe==null||(ue=fe.sub.find(Ie=>Ie.attr.trigger===ve))==null?void 0:ue.attr.isListenerTarInvalid,tNodeTrigger:ve,onChangeTrigger:we}),(0,h.hn)(ve)&&(0,l.jsx)(be.B,{tNodeTrigger:ve,onChangeTrigger:we})]})}}},52690:(Fe,ee,e)=>{"use strict";e.d(ee,{V:()=>r});const n=(c,o)=>{try{let w="/memo/"+encodeURI(c);o!==void 0&&(w+="?"+new URLSearchParams(o)),fetch(w).catch(u=>console.warn("memoG+f",u))}catch(w){console.warn("memoG",w)}},r=(c,o)=>{try{const w=typeof o=="string"?o:JSON.stringify(o);fetch("/memo/"+encodeURI(c),{method:"POST",body:w}).catch(u=>console.warn("memoP+f",u))}catch(w){console.warn("memoP",w)}}},54449:(Fe,ee,e)=>{"use strict";e.d(ee,{x:()=>r,z:()=>c});var n=e(38502);const r=o=>{let{ref:w,leftUse:u="right",xOffset:d=0}=o;const[y,h]=(0,n.useState)({isOpenContextMenu:!1,position:{top:0,left:0}}),i=()=>{const l=w.current.getBoundingClientRect();return{top:l.bottom,left:u==="right"?l.right-1:l.left+d}};return{menuStatus:y,handleClick:()=>{h({isOpenContextMenu:!y.isOpenContextMenu,position:i()})},handleClose:l=>{l.target.tagName!=="UL"&&h({...y,isOpenContextMenu:!1})},handleToggle:()=>{h({isOpenContextMenu:!y.isOpenContextMenu,position:i()})}}},c=()=>{const[o,w]=(0,n.useState)(void 0),[u,d]=(0,n.useState)({isOpenContextMenu:!1,position:{top:0,left:0}}),y=(0,n.useCallback)((p,s)=>{w(p),d({isOpenContextMenu:!u.isOpenContextMenu,position:s})},[u.isOpenContextMenu]),h=(0,n.useCallback)(()=>{d({position:{top:0,left:0},isOpenContextMenu:!1})},[]),i=(0,n.useCallback)(p=>{d({isOpenContextMenu:!u.isOpenContextMenu,position:{top:p.clientY,left:p.clientX}})},[u.isOpenContextMenu]),f=(0,n.useCallback)((p,s,l)=>{const{top:C,left:v}=p.getBoundingClientRect(),{top:a,left:P}=s({top:C,left:v});d({isOpenContextMenu:l.forceState,position:{top:a,left:P}})},[u.isOpenContextMenu]);return{menuStatus:u,clickedItem:o,handleClick:y,handleClose:h,handleToggle2:i,handleToggle2ByDom:f}}},54450:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>P});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),w=e(39e3),u=e(88194),d=e(17307),y=e(33573),h=e(69874),i=e(68455),f=e(71272),p=e(68863),s=e(19269),l=e(67787),C=e(51090);const v=l.Ay.li.withConfig({displayName:"styles__StyledLibraryThumbnailListItem",componentId:"sc-wtox56-0"})(["position:relative;width:109px;height:132px;margin-right:8px;margin-bottom:4px;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;cursor:pointer;color:",";","{width:109px;height:109px;border-radius:6px;background:",";&::after{border-radius:6px;border:1px solid ",";}}.item-name{display:flex;width:109px;height:26px;line-height:26px;text-align:center;cursor:text;justify-content:center;.editable-name{width:100%;height:23px;line-height:22px;",";&.is-editing{border-bottom:1px solid #196AD4;}textarea{text-align:center;}}&:not(.is-more-select) > span{&.editable-name:hover{border-bottom:1px solid ",";}}.item-action{display:none;position:absolute;width:14px;height:14px;bottom:8px;right:0;}&.is-more-select{.editable-name{cursor:pointer;}}}&:hover:not(.is-more-select){.item-name{width:94px;width:","}.cannot-edit-library{width:109px;}.item-action{display:flex;}}&.active{opacity:0.5;}"],S=>S.theme.color_text_L3,s.e,S=>S.theme.color_bg_card,S=>S.theme.color_bg_border_01,C.L9,S=>S.theme.color_primary_brand01,S=>S.isEditing?"109px":"94px");var a=e(72214);class P extends r.PureComponent{constructor(t){super(t),(0,n.A)(this,"setElementRef",_=>this.$elem=_),(0,n.A)(this,"updateIsVisible",()=>{this.setState({isVisible:this.isInBoundingClientRect()})}),(0,n.A)(this,"handleConfirm",_=>{const{groupCid:I,item:k,comboActions:{onRename:j}}=this.props;j(k,_,I),this.setState({isEditing:!1})}),(0,n.A)(this,"handleEditName",_=>{_.stopPropagation(),this.setState({isEditing:!0})}),(0,n.A)(this,"handleImport",_=>{_.stopPropagation();const{item:I,comboActions:{onImport:k},isMoreSelect:j}=this.props;!j&&k&&k(_,I)}),(0,n.A)(this,"handleSelect",_=>{_.stopPropagation();const{isMoveAfterClick:I}=this.state;if(I)return;const{item:k,index:j,isSelect:z,comboActions:{onSelect:K,onQuickCreate:$}}=this.props;K&&K(k,!z,_,j),$&&$(k)}),(0,n.A)(this,"handleMouseDown",_=>{_.preventDefault();const{item:I,comboActions:{onMouseDown:k}}=this.props;let j=!0,z=!1;this.setState({isMoveAfterClick:!1});const K=A=>{j&&(z=Math.abs(A.clientX-_.clientX)>5||Math.abs(A.clientY-_.clientY)>5,z&&(this.setState({isDragging:!0}),k&&k(_,I),j=!1))},$=()=>{j=!1,this.setState({isMoveAfterClick:z,isDragging:!1}),z=!1,document.removeEventListener("mousemove",K),document.removeEventListener("mouseup",$)};document.addEventListener("mousemove",K),document.addEventListener("mouseup",$)}),(0,n.A)(this,"handleClick",async _=>{this.timer?(clearTimeout(this.timer),this.timer=null,await this.handleImport(_)):this.timer=setTimeout(async()=>{this.timer=null,await this.handleSelect(_)},f.xG)}),this.state={isVisible:!1,isEditing:!1,isMoveAfterClick:!1,isDragging:!1}}componentDidMount(){this.props.containerRect&&this.updateIsVisible()}componentDidUpdate(t,_){this.updateIsVisible()}isInBoundingClientRect(){const{containerRect:t}=this.props;if(!t||!this.$elem)return!1;const _=this.$elem.getBoundingClientRect();return _.bottom>t.top&&_.top<t.bottom}render(){const{canEditLibrary:t,canAddToOrg:_,currentUserId:I,item:k,isSelect:j,comboActions:z,isMoreSelect:K,createTemplatesData:$}=this.props,{isEditing:A,isVisible:E,isDragging:U}=this.state,{key:O,flpakKey:H,hotAttr:{name:Q}}=k,N=k.sup==="B@ref-muban"?k.hotAttr.defaultCanvasKey:O,L=k.sup==="B@ref-muban"?u.rY.PNG_CANVAS:u.rY.PNG_PAGE,V=(0,p.F)($);return(0,a.jsxs)(v,{className:o()("thumbnail-list-item",{active:(V==null?void 0:V.key)===O||U}),isEditing:A,children:[(0,a.jsxs)(s.e,{ref:this.setElementRef,className:o()("thumbnail-list-item-img combo",{"is-select":j},{"is-more-select":K}),onClick:this.handleClick,onMouseDown:this.handleMouseDown,children:[(0,a.jsx)(y.Ay,{projectMetaCid:H,snapshotKey:N,isVisible:E,mode:L}),t&&!K&&(0,a.jsx)(b,{item:k,isSelect:j,comboActions:z,canAddToOrg:_,canEditLibrary:t,currentUserId:I})]}),(0,a.jsxs)("div",{className:o()("item-name",{"is-more-select":K},{isLayerHover:!A},{"cannot-edit-library":!t}),onClick:this.handleEditName,children:[(0,a.jsx)(h.A,{value:Q,className:"editable-name",isEditing:t&&A,onConfirm:this.handleConfirm},Q),t&&!A&&(0,a.jsx)("div",{className:"item-action",children:(0,a.jsx)(d.C,{name:"general/pen"})})]})]})}}(0,n.A)(P,"defaultProps",{canEditLibrary:!0});class b extends r.PureComponent{constructor(t){var _;super(t),_=this,(0,n.A)(this,"setListElementRef",I=>this.$element=I),(0,n.A)(this,"handleClick",I=>{I.stopPropagation(),this.handleToggle()}),(0,n.A)(this,"handleToggle",function(I){I===void 0&&(I=void 0);const{isListItemGroup:k}=_.state,j=I===void 0?!k:I;_.setState({isListItemGroup:j})}),(0,n.A)(this,"handleDocDown",I=>{var k;let{target:j}=I;const{isListItemGroup:z}=this.state;z&&((k=this.$element)!=null&&k.contains(j)||j.closest(".list-content")||this.handleToggle(!1))}),(0,n.A)(this,"handStopPropagation",I=>{I.stopPropagation()}),this.state={isListItemGroup:!1}}render(){const{currentUserId:t,item:_,isSelect:I,comboActions:k,canAddToOrg:j,canEditLibrary:z}=this.props,{isListItemGroup:K}=this.state,{onEdit:$,onDup:A,onRemove:E,onMove:U,onOrg:O}=k;return(0,a.jsxs)("div",{ref:this.setListElementRef,className:o()("actions",{hover:K}),onMouseDown:this.handStopPropagation,onDoubleClick:this.handStopPropagation,onClick:this.handleClick,children:[(0,a.jsx)("div",{className:"btn-box",children:(0,a.jsx)(d.C,{name:"design/templates/temp-btn",className:"library-menu"})}),K&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g,{isSelect:I,item:_,targetNode:this.$element,onClose:()=>this.handleToggle(!1),currentUserId:t,onRemove:!0?E:null,canAddToOrg:j,canEditLibrary:z,onEdit:$,onDup:A,onMove:U,onOrg:O}),(0,a.jsx)(w.A,{target:document,onMouseDown:(0,w.t)(this.handleDocDown,{capture:!0})})]})]})}}class g extends r.PureComponent{constructor(t){super(t),(0,n.A)(this,"handleMenuItemsEdit",_=>{_.stopPropagation();const{item:I,onEdit:k,onClose:j}=this.props;k(I),j()}),(0,n.A)(this,"handleDup",_=>{_.stopPropagation();const{item:I,onDup:k,onClose:j}=this.props;k(I),j()}),(0,n.A)(this,"handleMove",_=>{_.stopPropagation();const{onMove:I,isSelect:k,item:j,onClose:z}=this.props;I(j,!k),z()}),(0,n.A)(this,"handleRemove",_=>{_.stopPropagation();const{item:I,onRemove:k,onClose:j}=this.props;k(I),j()}),(0,n.A)(this,"handleAddToOrg",_=>{_.stopPropagation();const{item:I,onOrg:k,onClose:j}=this.props;k(I),j()}),this.menuItems=[{isShow:!!t.onEdit,label:I18N.LibraryContainer.edit,onClick:this.handleMenuItemsEdit},{isShow:!!t.onDup,label:I18N.LibraryContainer.make_a_copy,onClick:this.handleDup},{isShow:!!t.onMove,label:I18N.LibraryContainer.move_to,onClick:this.handleMove},{isShow:!!t.onRemove,label:I18N.LibraryContainer.delete,onClick:this.handleRemove},{isShow:!!t.onOrg&&this.props.canAddToOrg,label:I18N.LibraryContainer.add_to_org,onClick:this.handleAddToOrg}]}render(){const{targetNode:t}=this.props;return(0,a.jsx)(i.A,{menuItems:this.menuItems,targetNode:t,direction:"down",distance:2})}}},54460:(Fe,ee,e)=>{"use strict";e.d(ee,{Jh:()=>s,K3:()=>p,se:()=>y,xq:()=>i});var n=e(67787),r=e(27660),c=e(72214);const o=n.Ay.div.withConfig({displayName:"common__StyledLine",componentId:"sc-18x08ao-0"})(["width:43px;height:2px;color:",";background-repeat:repeat-x;background-position:left center;&.solid{background-image:linear-gradient(to right,currentColor 0%,currentColor 100%,transparent 0%);background-size:43px 1px;}&.dotted{background-image:linear-gradient(to right,currentColor 0%,currentColor 25%,transparent 25%);background-size:4px 1px;}&.dashed{background-image:linear-gradient(to right,currentColor 0%,currentColor 55%,transparent 55%);background-size:22% 1px;}"],l=>l.theme.color_text_L1),w=()=>(0,c.jsx)(o,{className:"border-line solid"}),u=()=>(0,c.jsx)(o,{className:"border-line dotted"}),d=()=>(0,c.jsx)(o,{className:"border-line dashed"}),y=(0,r.R)(()=>[{label:(0,c.jsx)(w,{}),value:"solid",tip_title:I18N.SettingPanel.solid_line},{label:(0,c.jsx)(u,{}),value:"dotted",tip_title:I18N.SettingPanel.dot_line},{label:(0,c.jsx)(d,{}),value:"dashed",tip_title:I18N.SettingPanel.break_line}]),h=l=>l.map(C=>({label:C.toString(),value:C})),i=h([0,1,2,3,4,5,6,7,8,9]),f=h([1,2,3,4,5,6,7,8,9]),p=h([1,2,3,4,5,6,7,8,9,10]),s=h([0,30,45,60,90])},54852:(Fe,ee,e)=>{"use strict";e.d(ee,{F:()=>r,M:()=>c});var n=e(67787);const r=(0,n.DU)([".DesignDropdownMenu{&.font-options-menu{transition:unset !important;background:",";border:1px solid ",";box-shadow:0 3px 6px -4px rgba(0,0,0,0.12),0 6px 16px rgba(0,0,0,0.08),0 9px 28px 8px rgba(0,0,0,0.05);border-radius:8px;overflow:hidden;.content{padding:0 !important;position:relative;background:",";}.radio-line{color:",";&.disabled{background:transparent;}.check-line{&.disabled{background-color:transparent;cursor:not-allowed;&:hover{background:transparent !important;}.svg-icon{color:",";}}}}}&.border-width-menu{transition:unset !important;.content{padding:0 !important;border-radius:8px !important;position:relative;}}}"],o=>o.theme.color_bg_white,o=>o.theme.color_bg_border_02,o=>o.theme.color_bg_white,o=>o.theme.color_text_L2,o=>o.theme.color_text_disabled01),c=n.Ay.section.withConfig({displayName:"styles__StyledTextSettings",componentId:"sc-v76r7a-0"})(["position:relative;width:240px;padding:0 10px;color:",";>:not(:first-child){margin-top:2px;}.font-group{display:flex;align-items:center;position:relative;&.font-line{justify-content:space-between;.font-family-selector{flex:0 0 100px;margin-right:23px;&:not(.is-disabled):not(.readonly):hover{.caret{padding:0 11px;}}}.font-menu-opener{display:flex;}}&.style-line{>:nth-child(1){margin-right:6px;}>:nth-child(3){width:96px;right:0px;position:absolute;}.font-size-input{width:66px;}.font-weight-selector{width:60px;}.options-menu-opener{&.is-open{.menu-opener{background-color:",";&.fontSettings{background-color:",";}}}&.font-menu-opener{margin-left:auto;display:flex;align-items:center;}}}&.ali-line{.has-ref-style-font-menus{position:absolute;right:0;}}&.ali-line >:nth-child(2){width:96px;position:absolute;right:0;justify-content:flex-start;*{flex-grow:0;}}&.spacing-line{justify-content:space-between;& >:nth-child(2){margin-left:37px;.radio-option svg{width:24px;height:24px;}}}&.flex-between{.has-ref-style-font-menus{display:flex;justify-content:flex-end;}}}.size-type-item{width:60px;}.sizetype,.h-alignment,.v-alignment{&.radio-line{margin-bottom:0;height:24px;border:none;.radio-option{width:24px;height:24px;transition:background-color 0.2s ease-in-out;border-radius:4px;.svg-icon{width:24px;height:24px;color:",";}&.active{background:",";}&:not(.active):hover{background:",";}}}.icon{width:24px;height:24px;}}.item-with-name{display:flex;justify-content:space-between;.item-name{height:22px;line-height:22px;color:#5b6b73;}.item-value{width:100%;}}.text-setting-tips{background:#f8efa7;width:202px;height:auto;line-height:24px;text-align:center;color:#415058;margin-bottom:8px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all;padding:0 10px;}.is-signle-show-direction-link{&.menu-wrapper{display:flex;justify-content:space-between;align-items:center;padding:4px 0 4px 6px;color:",";.font-style{display:flex;justify-content:space-between;align-items:center;width:100%;&.svg-size{.icon{width:24px;height:24px;}}.radio-line{background:transparent;color:",";&:lang(en){justify-content:flex-start;}&:not(.disabled){.radio-option{&:not(.active):hover{background:",";color:",";}&.active{background:",";color:",";}}}.radio-option{border-radius:4px;overflow:hidden;}}}}}&.is-show-lib-opener{.is-single-button{right:60px;}}"],o=>o.theme.color_text_L2,o=>o.theme.color_bg_border_02,o=>o.theme.color_btn_secondary_active,o=>o.theme.color_text_L1,o=>o.theme.color_btn_secondary_active,o=>o.theme.color_btn_secondary_hover,o=>o.theme.color_text_L2,o=>o.theme.color_text_L1,o=>o.theme.color_btn_secondary_hover,o=>o.theme.color_text_L1,o=>o.theme.color_btn_secondary_active,o=>o.theme.color_text_L1)},54894:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>hs});var n=e(38502),r=e(53732),c=e.n(r),o=e(39695),w=e(83485),u=e(52275),d=e(1984),y=e(95549),h=e(18381),i=e(12211),f=e(67052),p=e(33515),s=e(68677),l=e(79150),C=e(55914),v=e(69246),a=e(17307),P=e(93872),b=e(73442),g=e(37841),S=e(89080),t=e(72214);const _=()=>(0,t.jsxs)(P.wz,{children:[(0,t.jsx)(a.C,{className:"alert",name:"setting_panel/link/alert"}),(0,t.jsxs)("span",{children:["\xA0\xA0",I18N.SettingPanel.no_overlay_in_page]}),(0,t.jsx)("a",{href:"/hc/articles/441",target:"_blank",children:I18N.CommonGuides.version_guide_learn_more})]}),I=(0,n.memo)(ht=>{let{keyCanvasSrc:Ht,keyPage:nn,keyCanvasSelected:en,onSelectTargetCanvas:Un,isSelectOverlay:Kn=!1}=ht;const[Hn,bo]=(0,n.useState)(nn),[zn,Vn]=(0,n.useState)(""),[Rn,Mo]=(0,n.useState)(""),wo=(0,n.useCallback)(xn=>new RegExp((0,C.$)(zn),"i").test(xn),[zn]),dn=(0,n.useCallback)(xn=>new RegExp((0,C.$)(Rn),"i").test(xn),[Rn]),pn=(0,b.R_)("B@main",wo).subHotItemList,ho=sdkStore.findAllTypeUnder("B@main","rResBunch").filter(xn=>!xn.hotAttr.asFolder).length,Oo=(0,n.useRef)(null),qn=(0,n.useRef)(null),So=(0,h.wA)(),Ut=xn=>{So({type:"set:echo:item",payload:{cid:xn}})},an=xn=>{So({type:"set:echo:item",payload:{cid:void 0}})};(0,n.useEffect)(()=>()=>{So({type:"set:echo:item",payload:{cid:void 0}})},[]),(0,n.useEffect)(()=>()=>{So({type:"set:echo:item",payload:{cid:void 0}})},[]),(0,n.useEffect)(()=>{var xn,mn;(xn=Oo.current)==null||(xn=xn.querySelector('div[role="option"][data-value="'+en+'"]'))==null||xn.scrollIntoView(),(mn=qn.current)==null||(mn=mn.querySelector('div[role="option"][data-value="'+(nn||"")+'"]'))==null||mn.scrollIntoView()},[en,Ht,nn]);const wn=(0,n.useMemo)(()=>Hn?(0,b.mb)(Hn,dn,Kn):[],[Hn,Rn,Kn]);return Hn?(0,t.jsx)(P.RL,{className:c()("isV9Layout"),children:(0,t.jsx)(g.N,{query:Rn,setQuery:Mo,ref:Oo,children:()=>(0,t.jsxs)("div",{className:"option-container",children:[ho>1&&(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(P.Ag,{className:c()("dropmenu-no-exit","isV9Layout"),onClick:()=>bo(""),children:[(0,t.jsx)(l.A,{iconBoxSize:22,size:16,name:"sharing/back_to_page_16",className:"back"}),(0,t.jsx)(v.k,{icon:sdkStore.getHotItem(Hn).hotAttr.icon,isExpand:!1,theme:"dark"}),(0,t.jsx)(s.A,{children:sdkStore.getHotItem(Hn).hotAttr.name})]})}),wn.length>0?(0,t.jsx)(S.A,{dataList:wn,itemHeight:24,activeKey:Hn,itemRender:xn=>{let{item:mn,depth:Sn}=xn;return(0,t.jsx)(g.D,{depth:Sn,withSubOptions:!1,shouldRenderChildren:!1,optionItem:mn,isOptionActive:Tn=>{let{key:un}=Tn;return un===en},isOptionDisabled:Tn=>{let{key:un,forDisplayOnly:An}=Tn;return!!(un===Ht||An)},onSelect:Tn=>Un(Hn,Tn),onMouseEnterOption:Ut,onMouseLeaveOption:an},mn.key)}}):Kn?(0,t.jsx)(_,{}):null]})})}):(0,t.jsx)(g.N,{ref:qn,query:zn,setQuery:Vn,children:xn=>{let{toToggleCollapsed:mn,keyItemCollapsed:Sn}=xn;const Tn=oo=>{let{key:No}=oo;return Sn.includes(No)},un=()=>!1,An=oo=>{let{forDisplayOnly:No}=oo;return No};return(0,t.jsx)(S.A,{dataList:pn,propsMap:{children:"subHotItemList"},isCollapsed:Tn,itemHeight:24,activeKey:Hn,itemRender:oo=>{let{item:No,depth:Vo}=oo;return(0,t.jsx)(g.D,{depth:Vo,withSubOptions:!0,shouldRenderChildren:!1,optionItem:No,isOptionActive:un,onSelect:bo,isOptionCollapsed:Tn,isOptionDisabled:An,onToggleCollapsed:mn},No.key)}})}})});I.displayName="InteractionTargetCanvasSelect";var k=e(67787);const j=(0,k.DU)([".DropdownMenuPortal{.DesignDropdownMenu.dropScreenMenu{width:190px;height:274px;.content{width:100%;height:100%;padding:0;}}}"]),z=(0,k.DU)([".DropdownMenuPortal{.DesignDropdownMenu.dropScreenMenu{width:190px;height:274px;.content{width:100%;height:100%;padding:0px;}}}"]);var K=e(62150);const $=ht=>{switch(ht.data.interactionType){case o.O2.LinkToCanvas:return ht.isTargetValid?sdkStore.getHotItem(ht.data.targetResCanvasKey).hotAttr.name:I18N.Interaction.ita_please;case o.O2.OpenOverlay:case o.O2.SwapOverlay:return ht.isTargetValid?sdkStore.getHotItem(ht.data.targetOverlayKey).hotAttr.name:I18N.Interaction.ita_please;default:return I18N.Interaction.ita_please}};class A extends n.PureComponent{constructor(){super(...arguments),(0,y.A)(this,"setTargetDropdownRef",Ht=>this.targetDropdown=Ht),(0,y.A)(this,"handleTargetCanvasChanged",(Ht,nn)=>{const{isSelectOverlay:en,onChange:Un}=this.props;Un(Ht,"targetRBPageKey"),setTimeout(()=>Un(nn,en?"targetOverlayKey":"targetResCanvasKey")),this.targetDropdown.close()})}render(){const{interaction:Ht,isSelectOverlay:nn,currSelectedCanvasKey:en,targetRBPageKey:Un,isEditingCombo:Kn}=this.props,Hn=$(Ht),bo=Hn===I18N.SettingPanel.select_artboard||Hn===I18N.SettingPanel.select_overlay,zn=Ht.data.interactionType===o.O2.LinkToCanvas?Ht.data.targetResCanvasKey:Ht.data.targetOverlayKey;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p.Ay,{isOpen:!1,ref:this.setTargetDropdownRef,menux:"right",title:Hn,isPlaceholder:bo,shouldPreventScrollingPropagation:!1,className:"dropScreenMenu",forceDarkTheme:!0,isOpenerAttrDisabled:Kn,icon:bo?null:(0,t.jsx)(K.W,{renderItem:sdkStore.getHotItem(zn),targetKey:zn}),renderMenu:(0,t.jsx)(I,{keyPage:Un,keyCanvasSelected:zn,keyCanvasSrc:en,onSelectTargetCanvas:this.handleTargetCanvasChanged,isSelectOverlay:nn})}),(0,t.jsx)(z,{})]})}}const E=(0,i.Mz)([f.He],ht=>{var Ht;return{isShowCanvasBack:((Ht=Object.keys(ht))==null?void 0:Ht.length)>1}}),U=(0,h.Ng)(ht=>E(ht))(A),O=k.Ay.div.withConfig({displayName:"styles__StyledScreenLinkActions",componentId:"sc-1ksrbtu-0"})([".is-placeholder{button{color:",";}}.transition-view{width:24px;height:24px;margin-bottom:unset;margin-right:0px;.pages{width:24px;height:24px;border:none;line-height:24px;border-radius:4px;background-color:",';[class*=" icon-"]{margin-left:unset;width:100%;height:100%;}.page2{color:#fff;background:',";border-radius:4px;}}}.link--drop-screen-list{width:108px;}.state-action{.state-link-select{&.isPlaceholder{button{color:",";}}}}.screen-action{.link-opener-wrapper{.dropScreenMenu{width:108px;}&.is-disabled{.dropScreenMenu:hover{border-color:transparent;}}}}.screen-reset{display:flex;align-items:center;margin-left:-6px;.Check-label{color:",";}}.link--drop-transition-list{width:108px;}.screen-link-fragment{.select-number{width:108px;display:flex;align-items:center;}}&.hasPaddingTop{padding-top:4px;}"],ht=>ht.theme.color_text_disabled01,ht=>ht.theme.color_btn_secondary_active,ht=>ht.theme.color_proto,ht=>ht.theme.color_proto,ht=>ht.theme.color_text_L2);var H=e(16913);const Q=k.Ay.div.withConfig({displayName:"linkStyles__StyledLinkItemGroup",componentId:"sc-1nyf930-0"})(["padding:0px 16px 0px 16px;"]),N=k.Ay.div.withConfig({displayName:"linkStyles__StyledLinkTransitionGroup",componentId:"sc-1nyf930-1"})(["padding:0px 16px 0 16px;.group-name{font-weight:500;display:flex;align-items:center;color:",";}"],ht=>ht.theme.color_text_L1);var L=e(66727),V=e(5649);const M=k.Ay.div.withConfig({displayName:"styles__StyledStateTransitionMenu",componentId:"sc-91lwjs-0"})([".top{display:flex;align-items:center;padding:16px 16px 9px;gap:16px;}&:lang(en){padding:0 10px;}.transition-view{position:relative;height:53px;display:flex;flex-direction:column;align-items:center;cursor:pointer;&:lang(en){width:70px;}.view-icon{position:relative;height:34px;width:34px;display:flex;align-items:center;justify-content:center;background:#ebebeb;border:1px solid #ebebeb;transition:all 0.15s ease-in-out;border-radius:2px;&.active{background:white;border:1px solid ",";box-shadow:0 0 4px 0 rgba(41,141,248,0.74);}svg{width:18px;height:18px;}.transition-none{width:20px;height:20px;}}.view-title{position:absolute;white-space:nowrap;bottom:0;left:50%;transform:translateX(-50%);color:",";}}.containerBottom{display:flex;align-items:center;justify-content:center;height:100%;}"],ht=>ht.theme.color_proto,ht=>ht.theme.color_text_L1),D=k.Ay.div.withConfig({displayName:"styles__StyledTransitionList",componentId:"sc-91lwjs-1"})(["width:218px;padding:0 16px 7px;display:flex;flex-wrap:wrap;.pages{background-color:#f2f2f2;.page1{display:flex;align-items:center;justify-content:center;}.page2{&.icon-arrow-bottom,&.icon-arrow-top,&.icon-arrow-left,&.icon-arrow-right{display:flex;align-items:center;justify-content:center;}}.page1,.page2{&.icon-arrow-top{.icon{transform:rotate(-90deg);}}&.icon-arrow-left{.icon{transform:rotate(-180deg);}}&.icon-arrow-bottom{.icon{transform:rotate(90deg);}}&::before{display:none;}.icon{width:12px;height:7px;}}}.name{color:",";}.transitionView{.pages{border:none;}}.transitionView:hover{.pages{border:none;}}.transitionView.current .pages{border:1px solid "," !important;box-shadow:0 0 4px 0 rgba(41,141,248,0.74);.page1{background:white !important;}}"],ht=>ht.theme.color_text_L1,ht=>ht.theme.color_proto);var W=e(67588);const F=k.Ay.div.withConfig({displayName:"NoneOrAutoIcon__StyledNoneIcon",componentId:"sc-t0c4br-0"})(["width:24px;height:24px;color:"," !important;.transition-none{path{stroke:",";}}font-size:14px;display:flex;justify-content:center;align-content:center;border-radius:4px;&.is-dark{.transition-move{rect{stroke:#fff;}path{&:nth-child(2){fill:rgb(255,255,255,0.64);}&:last-child{fill:rgb(255,255,255,0.45);}}}}"],ht=>ht.theme.color_text_L1,ht=>ht.theme.color_text_L1),B=ht=>{let{transition:Ht}=ht;const en=(0,h.d4)(W.O4)==="dark";return(0,t.jsx)(F,{className:c()({"is-dark":en}),children:Ht==="auto"?(0,t.jsx)(a.C,{isColorPure:!0,className:"transition-move",name:"setting_panel/link/transition/move"}):(0,t.jsx)(a.C,{className:"transition-none",name:"setting_panel/link/transition/none"})})},Y={transition:"li7V5EPbUFjQxQ3UBo2z"},X="icon-arrow-top",G="icon-arrow-left",Z="icon-arrow-right",J="icon-arrow-bottom",te={none:"",leftmenu:Z,rightmenu:G,leftdrawer:Z,rightdrawer:G,slideright:Z,slideleft:G,slidetop:J,slidebottom:X,slideleft2:Z,slideright2:G,topin:J,popin:X,leftout:G,rightout:Z,topout:X,popout:J},de=ht=>{let{id:Ht,name:nn,viewClassName:en,isActive:Un,onChange:Kn}=ht;const Hn=Un?"current":"",bo=Y.transition+" "+Ht+" "+Hn+" transitionView",zn=te[Ht],Vn=Kn?()=>Kn(Ht,"transition"):void 0;return(0,t.jsxs)("div",{className:c()(bo,en),onClick:Vn,children:[(0,t.jsxs)("div",{className:"pages",children:[(0,t.jsx)("div",{className:"page1 "+zn,children:(0,t.jsx)(a.C,{name:"setting_panel/link/transition/arrow"})}),(0,t.jsx)("div",{className:"page2 "+zn,children:(0,t.jsx)(a.C,{name:"setting_panel/link/transition/arrow"})},zn)]}),(0,t.jsx)("span",{className:"name",children:nn})]})},xe=ht=>{let{transition:Ht,options:nn,onChange:en}=ht;return nn.length?(0,t.jsx)(D,{className:"transition-list",children:nn.map(Un=>{let{value:Kn,label:Hn}=Un;return(0,t.jsx)(de,{id:Kn,name:Hn,isActive:Kn===Ht,onChange:en},Kn)})}):null},ie=ht=>{let{transition:Ht,transitionOptions:nn,onChange:en}=ht;const Un=(0,n.useRef)(null),Kn=zn=>{var Vn;(Vn=Un.current)==null||Vn.close(),en(zn)},{title:Hn,icon:bo}=(0,n.useMemo)(()=>{let zn="",Vn=(0,t.jsx)(B,{transition:Ht});if(Ht==="auto")zn=I18N.SettingPanel.link_move;else if(Ht==="none")zn=I18N.SettingPanel.link_none_ani;else if(nn){const Rn=nn.find(Mo=>Mo.value===Ht);Rn&&(zn=Rn.label,Vn=(0,t.jsx)(de,{id:Rn.value,viewClassName:"transition-view transition-view-icon"}))}return{title:zn,icon:Vn}},[nn,Ht]);return(0,t.jsx)(p.Ay,{ref:Un,title:Hn,menux:"right",icon:bo,className:"link--drop-transition-state-list",renderMenu:(0,t.jsxs)(M,{children:[(0,t.jsxs)("div",{className:"top",children:[(0,t.jsxs)("div",{className:"transition-view",children:[(0,t.jsx)("div",{className:c()("view-icon",{active:Ht==="none"}),onClick:()=>Kn("none"),children:(0,t.jsx)(a.C,{className:"transition-none",name:"setting_panel/link/transition/none"})}),(0,t.jsx)("span",{className:"view-title",children:I18N.SettingPanel.link_none_ani})]}),(0,t.jsxs)("div",{className:"transition-view",children:[(0,t.jsx)("div",{className:c()("view-icon",{active:Ht==="auto"}),onClick:()=>Kn("auto"),children:(0,t.jsx)(a.C,{isColorPure:!0,className:"transition-move",name:"setting_panel/link/transition/move"})}),(0,t.jsx)("span",{className:"view-title",children:I18N.SettingPanel.link_move})]})]}),nn&&(0,t.jsx)(xe,{transition:Ht,options:nn,onChange:Kn})]})})};var oe=e(26067);const ue=k.Ay.div.withConfig({displayName:"style__StyledLinkTransitionGroup",componentId:"sc-2uc2er-0"})(["padding:0px 16px 0 16px;&.no-padding{padding:0;}.group-name{font-weight:500;display:flex;align-items:center;color:",";}"],ht=>ht.theme.color_text_L1);var ve=e(69623),re=e(83199),fe=e(93257),we=e(81973),Te=e(9680),Ie=e(29360),le=e(60651),me=e(24094),Pe=e(38167),pe=e(78401),ke=e(95106);const We=ht=>{let{children:Ht,visible:nn,prefix:en,prefixIcon:Un,suffix:Kn,style:Hn,className:bo,panelWidth:zn=400,iconTooltip:Vn="\u4F7F\u7528\u8868\u8FBE\u5F0F",getInvalidIconContainer:Rn,initPosition:Mo,invalidContent:wo,onInvalidIconVisible:dn,...pn}=ht;const[ho,Oo]=(0,n.useState)(nn),[qn,So]=(0,n.useState)(!0),[Ut,an]=(0,n.useState)(!1),wn=(0,h.d4)(we.ue),xn=(0,h.d4)(le.oO),mn=(0,n.useRef)(null),Sn=(0,n.useRef)(null),Tn=I18N.Variable.editor[qn?"readonly_placeholder":"placeholder"].replace("{type}",(0,Pe.IV)(pn.valueType,!0)),un=(0,n.useMemo)(()=>({variables:(0,Te.qL)(wn),p2sdkStore:sdkStore}),[wn]);(0,n.useEffect)(()=>{Oo(nn)},[nn]),(0,n.useEffect)(()=>{let ss=!1,ce=!1;if(ho&&qn&&pn.value&&mn.current&&Rn!=null&&Rn(mn.current)){const{isTargetValid:Pt}=(0,ke.P1)(pn.value,pn.currentWidgetKey,xn?"combo":"non-combo");Pt||(ss=!0)}an(ss),dn==null||dn(ss),setTimeout(()=>{var Pt,Mt;const je=ho&&qn&&((Pt=mn.current)==null?void 0:Pt.querySelector(".public-DraftStyleDefault-block"))||null;ce=je&&je.scrollWidth>je.clientWidth||!1;const vt=(Mt=mn.current)==null?void 0:Mt.querySelector(".linear-cell");ce?vt==null||vt.classList.add("visible",je.clientWidth>160?"long":"short"):vt==null||vt.classList.remove("visible","long","short")},0)},[ho,qn,pn.value,pn.currentWidgetKey,wn,xn]);const An=mn.current&&(Rn==null?void 0:Rn(mn.current)),oo=()=>{var ss;(ss=pn.onSubmit)==null||ss.call(pn,""),Oo(!1),setTimeout(()=>{var ce,Pt;const Mt=((ce=mn.current)==null?void 0:ce.querySelector("input"))||((Pt=mn.current)==null?void 0:Pt.querySelector("textarea"));Mt&&(0,pe.T5)(Mt)},10)},No=()=>{Oo(!0),So(!1)},Vo=()=>{xn||So(!1)},Ko=()=>{var ss;(ss=pn.onCancel)==null||ss.call(pn),So(!0),nn||Oo(nn)},zo=(ss,ce,Pt)=>{var Mt;So(!0);const je=(Mt=pn.onSubmit)==null?void 0:Mt.call(pn,ss,ce,Pt);Oo(!!je)},xs=ss=>{ss.stopPropagation()};let ys=zn;if(qn){const ss=(en?16:0)+(Kn?20:0);ys=ss>0?"calc(100% - "+ss+"px)":"100%"}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(Ee,{onPaste:xs,ref:mn,className:c()(bo,{"is-active":ho&&!qn,"is-readonly":ho&&qn,"has-prefix":!!en,"has-suffix":!!Kn}),style:{...Hn,"--link-exp-width":ys,"--link-exp-prefix":en?'"'+en+'"':null},children:[ho?(0,t.jsxs)("div",{className:"link-exp-area",onClick:Vo,children:[en&&(0,t.jsx)("span",{className:"prefix",children:en}),Un,(0,t.jsx)(re.A,{maxWidth:"200px",style:{padding:8,wordWrap:"break-word"},tipClassName:"long-name-trigger fixed-transform-y10",enterHoverTime:200,isSkipShortTimerHover:!0,isShowTipsByTarget:()=>{var ss,ce;return qn&&((ss=Sn.current)==null||(ss=ss.querySelector(".DraftEditor-root"))==null?void 0:ss.scrollWidth)>((ce=Sn.current)==null?void 0:ce.clientWidth)},content:qn?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(me.RN,{}),(0,t.jsx)(me.j$,{className:"var-display-name",children:(0,t.jsx)(Ie.A,{readOnly:!0,simple:!0,value:pn.value,valueType:pn.valueType,scope:un,multiline:!1,currentWidgetKey:pn.currentWidgetKey})})]}):null,children:(0,t.jsx)("div",{className:"link-exp-wrapper",ref:Sn,children:(0,t.jsx)(Ie.A,{className:"link-exp",initPosition:Mo,width:qn?"100%":ys,height:26,placeholder:Tn,...pn,scope:un,readOnly:qn,disabled:xn,onCancel:Ko,onSubmit:zo})})}),qn&&(0,t.jsx)("span",{className:"linear-cell"}),qn&&Kn&&(0,t.jsx)("span",{className:"suffix",children:Kn})]}):Ht,qn&&ho&&(0,t.jsx)(re.A,{content:I18N.SettingPanel.reset,direction:"down",enterHoverTime:200,isSkipShortTimerHover:!0,children:(0,t.jsx)("button",{className:c()("icon-bind","icon-reset"),onClick:oo,children:(0,t.jsx)(a.C,{name:"setting_panel/image_view/reset"})})}),qn&&!ho&&!xn&&(0,t.jsx)(re.A,{content:Vn,direction:"down",enterHoverTime:200,isSkipShortTimerHover:!0,children:(0,t.jsx)("button",{className:c()("icon-bind","icon-add"),onClick:No,children:(0,t.jsx)(a.C,{name:"flow/create/add"})})})]}),Ut&&An&&(0,ve.createPortal)((0,t.jsx)(fe.A,{content:wo||I18N.Expression.invalid_value,direction:"down",delay:200,children:(0,t.jsx)(Ae,{className:"expression-invalid",children:(0,t.jsx)(a.C,{name:"interaction/invalid",size:16,className:"expression-invalid-icon"})})}),An)]})},Ee=k.Ay.div.withConfig({displayName:"LinkExpression__StyledContainer",componentId:"sc-1x03sd7-0"})(["height:28px;width:142px;.link-exp-area{display:flex;align-items:center;height:100%;cursor:pointer;}&:hover,&.is-active{position:relative;z-index:9;}&.is-readonly{border:1px solid transparent;border-radius:6px;padding:0 !important;.is-readonly{margin-top:1px;border:none;&:not(.is-disabled){cursor:pointer;}}.public-DraftStyleDefault-block{white-space:nowrap;}.link-exp-wrapper{max-width:var(--link-exp-width);}.linear-cell{display:none;height:calc(100% - 2px);position:relative;width:0;z-index:1;pointer-events:none;&.visible{display:inline;}&::after{content:'';position:absolute;top:0;left:-20px;width:20px;height:100%;border-radius:0 6px 6px 0;background:linear-gradient(to right,transparent,"," 100%);}&.long::after{width:30px;left:-30px;}&.short::after{width:20px;left:-20px;}}&:hover{border-color:",";.suffix{color:",";}}}&.has-prefix{.link-exp{width:calc(100% - 16px);&.is-readonly{padding-left:3px !important;}}&.is-active{.prefix,.suffix{display:none;}.link-exp{padding-left:20px;width:calc(100% - 8px);&::before{content:var(--link-exp-prefix);z-index:2;position:absolute;left:9px;top:6px;display:flex;align-items:center;justify-content:center;height:28px;padding-bottom:2px;color:",";pointer-events:none;width:16px;}}}}&:hover{.icon-bind{display:block;}.inner-input:not(.is-disabled),.WorkspaceInputNumber:not(.is-disabled){border:1px solid ",';}}.is-active + .icon-bind{display:none;}.icon-bind{width:20px;height:20px;border-radius:10px;position:absolute;left:-10px;top:-10px;display:none;&::before{content:"";position:absolute;background-color:',";border:1px solid ",";outline:2px solid ",";outline-offset:-3px;width:10px;height:10px;left:5px;top:5px;border-radius:50%;transition:all .3s;}svg{width:100%;height:100%;color:transparent;transform:scale(0.5);transition:transform .3s;border-radius:20px;opacity:0;circle{stroke:",";}path{fill:#fff;}}&:hover{&::before{opacity:0;}svg{color:",";box-shadow:none;transform:scale(1);opacity:1;}}&.icon-reset{transform:rotateY(180deg);&:hover{svg{background-color:",";border-radius:50%;padding:3px;border:2px solid ",";}}}}.prefix,.suffix{display:flex;align-items:center;justify-content:center;height:100%;color:",";}.prefix{pointer-events:none;width:16px;}.suffix{width:20px;}"],ht=>ht.theme.color_bg_white,ht=>ht.theme.color_bg_border_02,ht=>ht.theme.color_text_L2,ht=>ht.theme.color_text_L3,ht=>ht.theme.color_bg_border_02,ht=>ht.theme.color_bg_white,ht=>ht.theme.color_bg_white,ht=>ht.theme.color_var_bind_point,ht=>ht.theme.color_bg_white,ht=>ht.theme.color_text_disabled01,ht=>ht.theme.color_text_disabled01,ht=>ht.theme.color_bg_white,ht=>ht.theme.color_text_L3),Ae=k.Ay.span.withConfig({displayName:"LinkExpression__StyledInvalidIconContainer",componentId:"sc-1x03sd7-1"})(["display:inline-flex;align-items:center;svg.expression-invalid-icon{margin-left:0;path{translate:1px;}}& + .expression-invalid{display:none;}"]),Ce=We;var _e=e(89853);const Xe=ht=>{var Ht;let{header:nn,link:en,noDelay:Un,noTransition:Kn,attrMap:Hn,transitionOptions:bo,currentWidgetKey:zn,className:Vn,onChange:Rn}=ht;const{interactionTrigger:Mo,menuOrDrawerOffset:wo,expression:dn}=en.data,pn=Mo==="timer",ho=pn?"timerDuration":"transitionDelay",Oo=(0,oe.W7)(en.data[ho]),qn=pn?d.OI:d.zI,So=dn==null?void 0:dn[ho],Ut=dn==null?void 0:dn.menuOrDrawerOffset,an=(Hn==null?void 0:Hn.transitionDuration)||"transitionDuration",wn=(Hn==null?void 0:Hn.transition)||"transition",xn=en.data[wn],mn=en.data[an],Sn=dn==null?void 0:dn[an],Tn=xn!=="none",un=(0,oe.W7)(mn),An=L.F.includes(xn),oo=(0,n.useRef)(an),No=Ko=>{Rn(Ko,(Hn==null?void 0:Hn.transition)||"transition")},Vo=(Ko,zo)=>{let xs=Ko.trim();xs||(zo==="menuOrDrawerOffset"&&(xs="75"),zo===an&&(xs="200"),zo===ho&&(xs="0"));const ys=Number(xs);return String(ys)===xs?(zo==="menuOrDrawerOffset"?xs=(0,_e.d8)(ys,[1,99]).toFixed(0):xs=(0,_e.d8)(ys,[0,d.sw]).toFixed(0),Rn(xs,zo),dn!=null&&dn[zo]&&Rn({...dn,[zo]:void 0},"expression"),!1):(xs!==(dn==null?void 0:dn[zo])&&Rn({...dn,[zo]:xs},"expression"),!0)};return(0,n.useEffect)(()=>{pn?dn!=null&&dn.transitionDelay&&Rn({...dn,timerDuration:dn.transitionDelay,transitionDelay:void 0},"expression"):dn!=null&&dn.timerDuration&&Rn({...dn,transitionDelay:dn.timerDuration,timerDuration:void 0},"expression")},[pn,dn,Rn]),(0,n.useEffect)(()=>{!An&&dn!=null&&dn.menuOrDrawerOffset&&Rn({...dn,menuOrDrawerOffset:void 0},"expression")},[An,dn,Rn]),(0,n.useEffect)(()=>{let Ko={...dn},zo=!1;!Tn&&dn!=null&&dn[an]&&(Ko={...dn,[an]:void 0},zo=!0),oo.current&&oo.current!==an&&dn!=null&&dn[oo.current]&&(Ko={...Ko,[oo.current]:void 0},zo=!0),zo&&Rn(Ko,"expression"),oo.current=an},[Tn,an,dn,Rn]),(0,n.useEffect)(()=>{!Tn&&dn!=null&&dn[an]&&Rn({...dn,[an]:void 0},"expression")},[an,dn,Rn]),(0,t.jsxs)(ue,{className:c()("link-transition-group",Vn),children:[nn,!Kn&&(0,t.jsx)(H.A,{linkTitle:I18N.SettingPanel.ani_name,children:(0,t.jsx)(ie,{transition:xn,transitionOptions:bo,onChange:No})}),An&&(0,t.jsx)(H.A,{linkTitle:I18N.SettingPanel.menu_offset,className:"screen-link-fragment",children:(0,t.jsx)("div",{className:"select-number",children:(0,t.jsx)(Ce,{value:Ut||String((Ht=parseInt(wo))!=null?Ht:200),visible:!!Ut,valueType:"number",onSubmit:Ko=>Vo(Ko,"menuOrDrawerOffset"),suffix:"%",currentWidgetKey:zn,getInvalidIconContainer:Ko=>{var zo;return(zo=Ko.closest(".screen-link-fragment"))==null?void 0:zo.querySelector(".link-action-title")},children:(0,t.jsx)(V.A,{className:"link-number-select",unstyled:!0,attr:"menuOrDrawerOffset",min:1,max:99,value:parseInt(wo),onConfirm:Rn,suffix:"%",unMountCallback:Rn})})})}),!Kn&&Tn&&(0,t.jsx)(H.A,{linkTitle:I18N.SettingPanel.ani_duration,className:"state-action",children:(0,t.jsx)("div",{className:"state-link-select",children:(0,t.jsx)(Ce,{value:Sn||String(un!=null?un:200),visible:!!Sn,valueType:"number",onSubmit:Ko=>Vo(Ko,an),suffix:"ms",currentWidgetKey:zn,getInvalidIconContainer:Ko=>{var zo;return(zo=Ko.closest(".state-action"))==null?void 0:zo.querySelector(".link-action-title")},children:(0,t.jsx)(V.A,{attr:an,value:un,suffix:"ms",min:0,max:d.sw,optionList:d.zI,onConfirm:Rn,className:"inner-input",unMountCallback:Rn})})})}),!Un&&(0,t.jsx)(H.A,{linkTitle:I18N.SettingPanel.ani_delay,className:"state-action",children:(0,t.jsx)("div",{className:"state-link-select",children:(0,t.jsx)(Ce,{value:So||String(Oo!=null?Oo:0),visible:!!So,valueType:"number",onSubmit:Ko=>Vo(Ko,ho),suffix:"ms",currentWidgetKey:zn,getInvalidIconContainer:Ko=>{var zo;return(zo=Ko.closest(".state-action"))==null?void 0:zo.querySelector(".link-action-title")},children:(0,t.jsx)(V.A,{attr:ho,value:Oo,suffix:"ms",min:0,max:d.sw,optionList:qn,onConfirm:Rn,className:"inner-input"})})})})]})};var Ue=e(61068),pt=e(15515);const Ye="interaction_link_reset_more",Qe="interaction_link_expand_more",lt=(0,n.memo)(ht=>{const{linkKey:Ht,adaptTopPosition:nn,children:en}=ht,Un=Ye+Ht,Kn=Qe+Ht,Hn=(0,pt.Yt)(Un,!1,pt.qW.Boolean),bo=(0,pt.Yt)(Kn,!1,pt.qW.Boolean),[zn,Vn]=(0,n.useState)(Hn||bo),Rn=()=>{Vn(!zn),(0,pt.a0)(Kn,!zn,pt.qW.Boolean)};return(0,n.useEffect)(()=>{Hn&&((0,pt.a0)(Kn,!0,pt.qW.Boolean),(0,pt.G5)(Un))},[Un,Kn,Hn]),(0,n.useEffect)(()=>{zn&&nn&&nn()},[zn,nn]),(0,t.jsxs)(tt,{className:c()({"open-more":zn}),children:[(0,t.jsxs)("div",{className:"more",onClick:Rn,children:[(0,t.jsx)("span",{children:I18N.ToolBar.more}),(0,t.jsx)(a.C,{className:"expand-icon",name:"common/expand@26"})]}),zn&&en]})}),tt=k.Ay.div.withConfig({displayName:"ExpandMore__StyledExpandMore",componentId:"sc-1ki889s-0"})(["padding:0 16px;.more{width:fit-content;height:32px;display:flex;align-items:center;color:",";cursor:pointer;}.expand-icon.svg-icon{width:26px;height:26px;transform:rotate(-90deg);path{fill:rgb(139,140,143);}}&.open-more{.expand-icon.svg-icon{color:",";transform:rotate(0);}}"],ht=>ht.theme.color_text_L3,ht=>ht.theme.color_text_L1),qe=ht=>{const{link:Ht,onChange:nn,canResetScroll:en=!0,adaptTopPosition:Un}=ht,Kn=()=>{switch(Ht.interactionType){case o.O2.SetBasketCanvas:return I18N.Interaction.reset.basket_widget_state_tip;case o.O2.OpenOverlay:case o.O2.SwapOverlay:return I18N.Interaction.reset.overlay_widget_state_tip;default:return I18N.Interaction.reset.canvas_widget_state_tip}};return(0,t.jsx)(lt,{linkKey:Ht.key,adaptTopPosition:Un,children:(0,t.jsxs)(et,{children:[en&&(0,t.jsx)(Ue.A,{attr:"resetTargetCanvasScrollOffset",className:c()("screen-reset","height-32",Ue.p),label:I18N.ScreenPanel.reset,isChecked:!!Ht.data.resetTargetCanvasScrollOffset,onChange:nn}),(0,t.jsxs)("div",{className:"reset-widget-state",children:[(0,t.jsx)(Ue.A,{attr:"resetTargetSubWidgetsState",className:c()("screen-reset","height-32",Ue.p),label:I18N.Interaction.reset.widget_state,isChecked:!!Ht.data.resetTargetSubWidgetsState,onChange:nn}),(0,t.jsx)(fe.A,{content:Kn(),direction:"down",maxWidth:"220px",children:(0,t.jsx)(a.C,{className:"reset-tip",size:16,name:"interaction/trigger/listener/tip"})})]})]})})},et=k.Ay.div.withConfig({displayName:"LinkReset__StyledLinkReset",componentId:"sc-5zoh17-0"})([".screen-reset{display:flex;align-items:center;margin-left:-6px;.Check-label{color:",";}}.reset-widget-state{display:flex;align-items:center;column-gap:4px;svg.reset-tip{&:hover{path{fill:",";}}path{fill:",";}}}"],ht=>ht.theme.color_text_L1,ht=>ht.theme.color_text_L1,ht=>ht.theme.color_text_L3),at=ht=>{let{link:Ht,targetScreen:nn,currentCanvas:en,editingPanelCid:Un,isEditingCombo:Kn,currentWidgetKey:Hn,onChange:bo,adaptTopPosition:zn}=ht;const Vn=(0,d.wx)(!!Un),Rn=Ht.data.interactionType===o.O2.LinkToCanvas;return(0,t.jsxs)(O,{children:[Rn&&(0,t.jsx)(Q,{className:"link-item-group",children:(0,t.jsx)(H.A,{linkTitle:I18N.SettingPanel.artboard,className:"screen-action",children:(0,t.jsx)(U,{interaction:Ht,isSelectOverlay:!1,targetRBPageKey:nn.key,currSelectedCanvasKey:en==null?void 0:en.key,isEditingCombo:Kn,onChange:bo})})}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(Xe,{link:Ht,transitionOptions:Vn,onChange:bo,currentWidgetKey:Hn}),(0,t.jsx)(qe,{link:Ht,onChange:bo,adaptTopPosition:zn})]})};var ct=e(23089);const rt=k.Ay.div.withConfig({displayName:"styles__StyledPanelLinkActions",componentId:"sc-1pwfofu-0"})([".link--drop-screen-list{width:108px;}.link--drop-transition-state-list{width:108px;}.panel-state-link-select{width:130px;padding-right:7px;}.is-placeholder{button{color:",";}&.value-erased{button{color:",";}}}.panel-link-item{&:not(:last-child){margin-bottom:4px;}}.panel-link-select{width:130px;padding-right:7px;&:lang(ja){width:120px;}}.is-readonly{padding:0 6px;}"],ht=>ht.theme.color_text_disabled01,ht=>ht.theme.color_proto),At=k.Ay.div.withConfig({displayName:"styles__StyledSelectOptionItem",componentId:"sc-1ulpt1h-0"})(["display:flex;justify-content:flex-start;align-items:center;.svg-icon{min-width:16px;min-height:16px;margin-right:4px;}.number-index{display:flex;align-items:center;justify-content:center;min-width:16px;min-height:16px;margin-right:4px;}"]),ot=ht=>{let{icon:Ht,name:nn,number:en}=ht;return(0,t.jsxs)(At,{children:[Ht?(0,t.jsx)(a.C,{name:Ht}):(0,t.jsx)("p",{className:"number-index",children:en}),(0,t.jsx)(s.A,{children:nn})]})},Tt=(0,n.memo)(ot);var ft=e(76613),Nt=e(10472);const Bt=(0,n.memo)(ht=>{var Ht;let{keyTriggerItem:nn,keyTargetItem:en,onSelectTargetItem:Un}=ht;const Kn=(0,h.d4)(le.bt),Hn=(0,h.wA)(),{isEditingCombo:bo}=(0,h.d4)(Nt.r);let zn="";Kn?zn=Kn:zn=(bo?(0,ke.n$)(sdkStore,nn):(0,ke.ao)(sdkStore,nn))||(0,ke.OV)(sdkStore,nn);const Vn=(Ht=sdkStore.getHotItem(zn))==null?void 0:Ht.hotAttr.asOverlay,[Rn,Mo]=(0,n.useState)(""),wo=(0,n.useCallback)(qn=>new RegExp((0,C.$)(Rn),"i").test(qn),[Rn]),dn=(0,n.useMemo)(()=>{const qn=(0,b.w9)(zn,wo);return(qn==null?void 0:qn.hotAttr.type)==="wBasket"?[qn]:(qn==null?void 0:qn.subHotItemList)||[]},[zn,wo]),pn=qn=>{Hn({type:"set:echo:item",payload:{cid:qn}})},ho=qn=>{Hn({type:"set:echo:item",payload:{cid:void 0}})},Oo=(0,n.useRef)(null);return(0,n.useEffect)(()=>{var qn;return(qn=Oo.current)==null||(qn=qn.querySelector('div[role="option"][data-value="'+en+'"]'))==null||qn.scrollIntoView(),()=>Hn({type:"set:echo:item",payload:{cid:void 0}})},[Hn,en,nn]),(0,t.jsx)(t.Fragment,{children:dn.length===0&&!Rn?(0,t.jsx)("div",{className:"empty-target-option",children:Vn?I18N.SettingPanel.no_dynamic_in_overlay:I18N.SettingPanel.no_dynamic_in_screen}):(0,t.jsx)(g.N,{ref:Oo,query:Rn,setQuery:Mo,children:qn=>{let{toToggleCollapsed:So,keyItemCollapsed:Ut}=qn;const an=xn=>{let{key:mn}=xn;return Ut.includes(mn)},wn=xn=>{let{key:mn}=xn;return en===mn};return(0,t.jsx)(S.A,{dataList:dn,propsMap:{children:"subHotItemList"},isCollapsed:an,itemHeight:24,activeKey:en,itemRender:xn=>{let{item:mn,depth:Sn}=xn;return(0,t.jsx)(g.D,{depth:Sn,withSubOptions:!0,optionItem:mn,isOptionActive:wn,onSelect:Un,isOptionCollapsed:an,isOptionDisabled:Tn=>{let{forDisplayOnly:un}=Tn;return un},shouldRenderChildren:!1,onToggleCollapsed:So,onMouseEnterOption:pn,onMouseLeaveOption:ho},mn.key)}})}})})});Bt.displayName="InteractionTargetBasketSelect";class zt extends n.PureComponent{constructor(Ht){super(Ht),(0,y.A)(this,"state",{linkTarget:(0,ke.XR)({link:this.props.link,editingPanelRefPage:this.props.editingPanelRefPage})}),(0,y.A)(this,"handleTransitionChange",nn=>{const en=nn?"auto":"none";this.props.onChange(en,"transition")}),(0,y.A)(this,"handleTargetChange",(nn,en)=>{const{onChange:Un}=this.props;Un(nn,en),this.handleClearEchoItem()}),(0,y.A)(this,"handleClearEchoItem",()=>MB.action("clear:echo:item")),(0,y.A)(this,"getStateOptionList",()=>{var nn;const en=(nn=this.state.linkTarget)==null?void 0:nn.refRBPageKey;return en?[{label:(0,t.jsx)(Tt,{name:I18N.SettingPanel.first_state,icon:"link/state/first"}),value:ft.L8},{label:(0,t.jsx)(Tt,{name:I18N.SettingPanel.pre_state,icon:"link/state/prev"}),value:ft.Gp},{label:(0,t.jsx)(Tt,{name:I18N.SettingPanel.next_state,icon:"link/state/next"}),value:ft.Oh},{label:(0,t.jsx)(Tt,{name:I18N.SettingPanel.last_state,icon:"link/state/last"}),value:ft.Hg},["DIVIDER",...sdkStore.findAllTypeUnder(en,"rResCanvas").sort((Un,Kn)=>Un.hotAttr.order-Kn.hotAttr.order).map((Un,Kn)=>{let{key:Hn,hotAttr:bo}=Un;return{label:(0,t.jsx)(Tt,{name:bo.name,number:Kn+1}),value:Hn}})]]:[]}),this.targetDropdownRef=n.createRef()}static getDerivedStateFromProps(Ht,nn){return Ht.link?{linkTarget:(0,ke.XR)({link:Ht.link,editingPanelRefPage:Ht.editingPanelRefPage})}:{linkTarget:void 0}}render(){var Ht,nn;const{currentWidgetKey:en,link:Un,onChange:Kn,editingPanelRefPage:Hn,adaptTopPosition:bo}=this.props,{basketKey:zn,canvasKey:Vn,refCanvasKey:Rn}=this.state.linkTarget||{},Mo=Un.isTargetCanvasSupValid||!Un.dataIntegrity&&zn,wo=Hn&&zn===Hn?Un.data.targetBasketKey:zn,dn=!(zn&&(Un.isTargetCanvasSupValid||!Un.dataIntegrity)),pn=Mo?this.getStateOptionList():[],ho=!pn.flat(1).find(Oo=>Oo.value===(Rn||Un.data.targetResCanvasKey));return(0,t.jsxs)(rt,{children:[(0,t.jsx)(Q,{className:"link-item-group",children:(0,t.jsx)(H.A,{linkTitle:I18N.SettingPanel.dynamic_widget,className:"panel-link-item",children:(0,t.jsx)(p.Ay,{ref:this.targetDropdownRef,menux:"right",title:zn&&(Un.isTargetCanvasSupValid||!Un.dataIntegrity)?(Ht=sdkStore.getHotItem(zn))==null?void 0:Ht.hotAttr.name:I18N.Interaction.ita_please,isPlaceholder:dn,shouldPreventScrollingPropagation:!1,className:"link--drop-screen-list",forceDarkTheme:!0,icon:dn?null:(0,t.jsx)(K.W,{renderItem:wo?sdkStore.getHotItem(wo):void 0,targetKey:wo}),renderMenu:(0,t.jsx)(Bt,{keyTriggerItem:en,keyTargetItem:wo,onSelectTargetItem:(Oo,qn)=>this.handleTargetChange(Oo,"targetBasketKey")})})})}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(N,{className:"link-transition-group",children:(0,t.jsx)(H.A,{linkTitle:I18N.SettingPanel.link_target,children:(0,t.jsx)(ct.mq,{isDisabled:!Un.data.targetBasketKey||!Mo,className:c()("panel-state-link-select",{"is-placeholder":!Un.data.targetBasketKey||ho,"value-erased":Un.data.targetBasketKey&&Mo&&ho}),menuClassName:"link-state-select",attr:"targetResCanvasKey",value:((nn=this.state.linkTarget)==null?void 0:nn.refCanvasKey)||Vn,optionList:pn,placeholder:I18N.SettingPanel.link_select_state,onChange:Kn})})}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(Xe,{link:Un,onChange:Kn,currentWidgetKey:en}),(0,t.jsx)(qe,{link:Un,onChange:Kn,adaptTopPosition:bo})]})}}var Xt=e(4235);const bt=k.Ay.div.withConfig({displayName:"styles__StyledVisibilitySelector",componentId:"sc-17brab8-0"})(["display:flex;margin:10px 16px;.item{width:68px;height:26px;display:flex;align-items:center;justify-content:center;border:1px solid ",";border-right:none;overflow:hidden;cursor:pointer;color:",";&:first-child{border-radius:4px 0px 0px 4px;}&:last-child{border-radius:0px 4px 4px 0px;border-right:1px solid ","}&:hover{background-color:",";}&.active{background-color:",";}}"],ht=>ht.theme.color_bg_border_02,ht=>ht.theme.color_text_L1,ht=>ht.theme.color_bg_border_02,ht=>ht.theme.color_btn_secondary_active,ht=>ht.theme.color_btn_secondary_active),jn=ht=>{let{value:Ht,onChange:nn}=ht;return(0,t.jsxs)(bt,{children:[(0,t.jsxs)("div",{className:"item "+(Ht==="setVisible"?"active":""),onClick:()=>nn("setVisible"),children:[(0,t.jsx)(a.C,{name:"setting_panel/event/show",size:20}),I18N.SettingPanel.show]}),(0,t.jsxs)("div",{className:"item "+(Ht==="setHidden"?"active":""),onClick:()=>nn("setHidden"),children:[(0,t.jsx)(a.C,{name:"setting_panel/event/hide",size:20}),I18N.SettingPanel.hide]}),(0,t.jsxs)("div",{className:"item "+(Ht==="toggleVisibility"?"active":""),onClick:()=>nn("toggleVisibility"),children:[(0,t.jsx)(a.C,{name:"setting_panel/event/change",size:20}),I18N.SettingPanel.switch]})]})},xo=ht=>{let{value:Ht,onChange:nn}=ht;return(0,t.jsxs)(bt,{children:[(0,t.jsxs)("div",{className:"item "+(Ht==="vertical"?"active":""),onClick:()=>nn("vertical"),children:[(0,t.jsx)(a.C,{name:"setting_panel/link/scroll_to_vertical",size:20}),I18N.SettingPanel.scroll_to_vertical]}),(0,t.jsxs)("div",{className:"item "+(Ht==="horizontal"?"active":""),onClick:()=>nn("horizontal"),children:[(0,t.jsx)(a.C,{name:"setting_panel/link/scroll_to_horizontal",size:20}),I18N.SettingPanel.scroll_to_horizontal]}),(0,t.jsxs)("div",{className:"item "+(Ht==="both"?"active":""),onClick:()=>nn("both"),children:[(0,t.jsx)(a.C,{name:"setting_panel/link/scroll_to_both",size:20}),I18N.SettingPanel.scroll_to_both]})]})};var Po=e(20089);const Gn=(0,n.memo)(ht=>{let{keyTriggerItem:Ht,keyTargetItem:nn,onSelectTargetItem:en,checkInvalidTargetItem:Un,renderEmptyItaTargetItem:Kn}=ht;const Hn=(0,h.d4)(le.bt),bo=(0,h.wA)(),{isEditingCombo:zn}=(0,h.d4)(Nt.r);let Vn="";Hn?Vn=Hn:Vn=(zn?(0,ke.n$)(sdkStore,Ht):(0,ke.ao)(sdkStore,Ht))||(0,ke.OV)(sdkStore,Ht);const[Rn,Mo]=(0,n.useState)(""),wo=(0,n.useCallback)(qn=>new RegExp((0,C.$)(Rn),"i").test(qn),[Rn]),dn=(0,n.useMemo)(()=>{const qn=(0,b.Tx)(Vn,wo,Un),So=(qn==null?void 0:qn.hotAttr.type)===Po.x.WBasket?[qn]:(qn==null?void 0:qn.subHotItemList)||[],Ut=sdkStore.getHotItem(Ht);return Ut&&Un!=null&&Un(Ut)?So:[{...Ut,key:ft.rE},...So]},[Ht,Vn,wo,Un]),pn=qn=>{bo({type:"set:echo:item",payload:{cid:qn===ft.rE?Ht:qn}})},ho=qn=>{bo({type:"set:echo:item",payload:{cid:void 0}})},Oo=(0,n.useRef)(null);return(0,n.useEffect)(()=>{var qn;return(qn=Oo.current)==null||(qn=qn.querySelector('div[role="option"][data-value="'+nn+'"]'))==null||qn.scrollIntoView(),()=>bo({type:"set:echo:item",payload:{cid:void 0}})}),(0,t.jsx)(g.N,{ref:Oo,query:Rn,setQuery:Mo,children:qn=>{let{toToggleCollapsed:So,keyItemCollapsed:Ut}=qn;const an=mn=>{let{key:Sn}=mn;return Ut.includes(Sn)},wn=mn=>{let{key:Sn}=mn;return nn===Sn},xn=mn=>{let{key:Sn,hotAttr:Tn,forDisplayOnly:un}=mn;return Sn===ft.rE?Tn.type==="rResCanvas":un};return dn.length>0?(0,t.jsx)(S.A,{dataList:dn,propsMap:{children:"subHotItemList"},isCollapsed:an,itemHeight:24,activeKey:nn,itemRender:mn=>{let{item:Sn,depth:Tn}=mn;return(0,t.jsx)(g.D,{depth:Tn,withSubOptions:!0,shouldRenderChildren:!1,optionItem:Sn,isOptionActive:wn,onSelect:en,isOptionCollapsed:an,isOptionDisabled:xn,onToggleCollapsed:So,onMouseEnterOption:pn,onMouseLeaveOption:ho},Sn.key)}}):Kn}})});Gn.displayName="InteractionTargetItemSelect";const yo=k.Ay.div.withConfig({displayName:"styles__StyledVisibilityActions",componentId:"sc-99fmsd-0"})([".is-placeholder{button{color:",';}}.transition-view{width:20px;height:20px;margin-bottom:unset;margin-right:8px;.pages{width:20px;height:20px;border:1px solid transparent;line-height:20px;[class*=" icon-"]{margin-left:unset;width:100%;height:100%;}.page2{color:#fff;background:',";}}}.link--drop-screen-list{width:108px;}.link--drop-transition-state-list{width:108px;&:lang(ja){width:120px;}}.link--drop-transition-list{width:108px;}.screen-link-fragment{padding:4px 7px 0 0;.select-number{width:60px;display:flex;align-items:center;.time-unit{margin-left:2px;}}}.panel-link-item{&:not(:last-child){margin-bottom:4px;}}.panel-link-screen-select{width:130px;padding-right:7px;button{justify-content:flex-end;}}"],ht=>ht.theme.color_text_disabled01,ht=>ht.theme.color_proto),Ve={setVisible:{transition:"setVisibleTransition",transitionDuration:"setVisibleTransitionDuration"},setHidden:{transition:"setHiddenTransition",transitionDuration:"setHiddenTransitionDuration"}},ut=ht=>{let{link:Ht,currentWidgetKey:nn,onChange:en}=ht;const Un=(0,n.useRef)(null),Kn=(0,h.d4)(Xt.U2),Hn=(0,h.d4)(le.bt),bo=wo=>{Un.current.close(),en(wo,"targetWidgetKey")},zn=wo=>{en(wo,"actionType")},Vn=Ht.data.targetWidgetKey===ft.VZ&&!Hn?(0,ke.JC)(sdkStore,Ht.triggerItemKey):Ht.targetWidgetKey,Rn=Ht.data.actionType==="toggleVisibility",Mo=!Ht.isTargetWidgetValid;return(0,t.jsxs)(yo,{children:[(0,t.jsx)(Q,{className:"link-item-group",children:(0,t.jsx)(H.A,{linkTitle:I18N.SettingPanel.target_widget,children:(0,t.jsx)(p.Ay,{ref:Un,menux:"right",icon:Mo?null:(0,t.jsx)(K.W,{renderItem:sdkStore.getHotItem(Vn),targetKey:Vn}),title:(0,oe.iI)(Ht,Hn),isPlaceholder:Mo,shouldPreventScrollingPropagation:!1,className:"link--drop-screen-list",forceDarkTheme:!0,renderMenu:(0,t.jsx)(Gn,{keyTriggerItem:Kn,keyTargetItem:Vn,onSelectTargetItem:bo})})})}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(jn,{value:Ht.data.actionType,onChange:zn}),Ht.data.actionType!=="setHidden"&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(Xe,{link:Ht,header:Rn?(0,t.jsx)("div",{className:"group-name height-32",children:I18N.ToolBar.text_show}):void 0,attrMap:Ve.setVisible,noDelay:Rn,onChange:en,currentWidgetKey:nn})]}),Ht.data.actionType!=="setVisible"&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(Xe,{link:Ht,header:Rn?(0,t.jsx)("div",{className:"group-name height-32",children:I18N.ToolBar.text_hidden}):void 0,attrMap:Ve.setHidden,noDelay:Rn,currentWidgetKey:nn,onChange:en})]}),Rn&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(Xe,{noTransition:!0,link:Ht,currentWidgetKey:nn,onChange:en})]})]})};var Kt=e(27660),St=e(4648);const fn=k.Ay.div.withConfig({displayName:"styles__StyledOverlayActions",componentId:"sc-1omos11-0"})([".is-placeholder{button{color:",";}}.transition-view{width:24px;height:24px;margin-bottom:unset;margin-right:0px;.pages{width:24px;height:24px;border:none;line-height:24px;border-radius:4px;background-color:",';[class*=" icon-"]{margin-left:unset;width:100%;height:100%;}.page2{color:#fff;background:',";border-radius:4px;}}}.transition-action{.link--drop-transition-list,.transition-param-input{width:108px;&.isPlaceholder{button{color:",";}}}}.overlay-action{.link-opener-wrapper{.dropScreenMenu{width:108px;}&.is-disabled{.dropScreenMenu:hover{border-color:transparent;}}}}"],ht=>ht.theme.color_text_disabled01,ht=>ht.theme.color_btn_secondary_active,ht=>ht.theme.color_proto,ht=>ht.theme.color_proto),En=k.Ay.div.withConfig({displayName:"styles__StyledOverlayConfigGroup",componentId:"sc-1omos11-1"})(["padding:0 16px;.overlay-action{.overlay-input-wrapper,.overlay-relative-pos-select{width:108px;}.overlay-xy-input-wrapper{display:flex;align-items:center;justify-content:flex-start;width:148px;> label{flex:0 0 72px;&:not(:last-child){margin-right:4px;}}}}.overlay-check{display:flex;align-items:center;.Check-label{color:",";}}.margin-left-n6{margin-left:-6px;}.backdrop-line{display:flex;align-items:center;color:",";.left-label{height:14px;color:",';line-height:14px;white-space:nowrap;}[type="color-btn"]{margin:0 6px;}}'],ht=>ht.theme.color_text_L2,ht=>ht.theme.color_text_L2,ht=>ht.theme.color_text_L2),gn=(0,Kt.R)(()=>[{value:"ce",label:(0,t.jsx)(Tt,{name:I18N.SettingPanel.overlay_relative_pos.center,icon:"setting_panel/link/overlay_relative_pos/ce"})},{value:"tl",label:(0,t.jsx)(Tt,{name:I18N.SettingPanel.overlay_relative_pos.topleft,icon:"setting_panel/link/overlay_relative_pos/tl"})},{value:"tc",label:(0,t.jsx)(Tt,{name:I18N.SettingPanel.overlay_relative_pos.topcenter,icon:"setting_panel/link/overlay_relative_pos/tc"})},{value:"tr",label:(0,t.jsx)(Tt,{name:I18N.SettingPanel.overlay_relative_pos.topright,icon:"setting_panel/link/overlay_relative_pos/tr"})},{value:"bl",label:(0,t.jsx)(Tt,{name:I18N.SettingPanel.overlay_relative_pos.bottomleft,icon:"setting_panel/link/overlay_relative_pos/bl"})},{value:"bc",label:(0,t.jsx)(Tt,{name:I18N.SettingPanel.overlay_relative_pos.bottomcenter,icon:"setting_panel/link/overlay_relative_pos/bc"})},{value:"br",label:(0,t.jsx)(Tt,{name:I18N.SettingPanel.overlay_relative_pos.bottomright,icon:"setting_panel/link/overlay_relative_pos/br"})},{type:"divider"},{value:"manual",label:(0,t.jsx)(Tt,{name:I18N.SettingPanel.overlay_relative_pos.manual,icon:"setting_panel/link/overlay_relative_pos/manual"})}]),Yn=ht=>{let{interaction:Ht,currRBPageKey:nn,currSelectedCanvasKey:en,currentWidgetKey:Un,onChange:Kn,adaptTopPosition:Hn}=ht;const{isEditingCombo:bo}=(0,h.d4)(Nt.r),zn=(0,d.WB)(),{addBackdrop:Vn,backdropFilterBlurRadius:Rn=0,overlayRelativePos:Mo,overlayRelativePosX:wo=0,overlayRelativePosY:dn=0,expression:pn={}}=Ht.data||{},{backdropFilterBlurRadius:ho,overlayRelativePosX:Oo,overlayRelativePosY:qn}=pn,So=(0,n.useRef)(new Map(Object.entries(pn))),Ut=(0,n.useRef)(!1),an=(mn,Sn)=>{let Tn=mn.trim()||"0";const un=Number(Tn);return String(un)===Tn?(Sn==="backdropFilterBlurRadius"?Tn=(0,_e.d8)(un,[0,1e4]).toFixed(0):Tn=(0,_e.d8)(un,[-d.rT,d.rT]).toFixed(0),Kn(Tn,Sn),pn!=null&&pn[Sn]&&Kn({...pn,[Sn]:void 0},"expression"),So.current.delete(Sn),!1):(Tn!==(pn==null?void 0:pn[Sn])&&(Kn({...pn,[Sn]:Tn},"expression"),So.current.set(Sn,Tn)),!0)},wn=(mn,Sn)=>{Kn(mn,Sn);let Tn=!1,un={...pn};!mn&&pn!=null&&pn.backdropFilterBlurRadius?(Tn=!0,un={...pn,backdropFilterBlurRadius:void 0}):Vn&&!(pn!=null&&pn.backdropFilterBlurRadius)&&So.current.get("backdropFilterBlurRadius")&&(Tn=!0,un={...un,backdropFilterBlurRadius:So.current.get("backdropFilterBlurRadius")}),Ut.current=Tn,Tn&&Kn(un,"expression")},xn=(mn,Sn)=>{Kn(mn,Sn);const Tn=mn==="manual";let un=!1,An={...pn};!Tn&&(pn!=null&&pn.overlayRelativePosX||pn!=null&&pn.overlayRelativePosY)&&(un=!0,An={...pn,overlayRelativePosX:void 0,overlayRelativePosY:void 0}),Tn&&(!(pn!=null&&pn.overlayRelativePosX)&&So.current.get("overlayRelativePosX")&&(un=!0,An={...An,overlayRelativePosX:So.current.get("overlayRelativePosX")}),!(pn!=null&&pn.overlayRelativePosY)&&So.current.get("overlayRelativePosY")&&(un=!0,An={...An,overlayRelativePosY:So.current.get("overlayRelativePosY")})),Ut.current=un,un&&Kn(An,"expression")};return(0,n.useEffect)(()=>{if(Ut.current){Ut.current=!1;return}!pn.overlayRelativePosX&&So.current.get("overlayRelativePosX")&&So.current.delete("overlayRelativePosX"),!pn.overlayRelativePosY&&So.current.get("overlayRelativePosY")&&So.current.delete("overlayRelativePosY")},[pn]),(0,t.jsxs)(fn,{children:[(0,t.jsx)(Q,{className:"link-item-group",children:(0,t.jsx)(H.A,{linkTitle:I18N.w.rResCanvasAsOverlay,className:"overlay-action",children:(0,t.jsx)(U,{interaction:Ht,isSelectOverlay:!0,targetRBPageKey:nn,currSelectedCanvasKey:en,isEditingCombo:bo,onChange:Kn})})}),Ht.data.interactionType===o.O2.OpenOverlay&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"divider"}),(0,t.jsxs)(En,{children:[(0,t.jsx)(Ue.A,{attr:"closeWhenClickingOutside",className:c()("overlay-check","height-32","margin-left-n6",Ue.p),label:I18N.SettingPanel.close_overlay_when_clicking_outside,isChecked:Ht.data.closeWhenClickingOutside,onChange:Kn}),(0,t.jsxs)("div",{className:"backdrop-line height-32 margin-left-n6",children:[(0,t.jsx)(Ue.A,{attr:"addBackdrop",className:"style-check "+Ue.p,isChecked:Vn,onChange:wn}),(0,t.jsx)(St.R_,{className:St.Fw,attr:"backdropColor",color:Ht.data.backdropColor,onChange:Kn,canOpenLib:!1}),(0,t.jsx)("label",{className:"left-label",children:I18N.SettingPanel.backdrop})]}),Vn&&(0,t.jsx)(H.A,{linkTitle:I18N.SettingPanel.backdrop_filter_blur_radius,className:"overlay-action",children:(0,t.jsx)("div",{className:"overlay-input-wrapper",children:(0,t.jsx)(Ce,{value:ho||Rn.toFixed(0),visible:!!ho,valueType:"number",onSubmit:mn=>an(mn,"backdropFilterBlurRadius"),style:{width:"100%"},currentWidgetKey:Un,getInvalidIconContainer:mn=>{var Sn;return(Sn=mn.closest(".overlay-action"))==null?void 0:Sn.querySelector(".link-action-title")},children:(0,t.jsx)(V.A,{attr:"backdropFilterBlurRadius",value:Rn,min:0,max:1e4,onConfirm:Kn,unMountCallback:Kn})})})}),(0,t.jsx)(H.A,{linkTitle:I18N.pInspect.position,className:"overlay-action",children:(0,t.jsx)(ct.mq,{className:c()("overlay-relative-pos-select"),menuClassName:"overlay-relative-pos-select",attr:"overlayRelativePos",value:Mo,optionList:gn(),onChange:xn})}),Mo==="manual"&&(0,t.jsx)(H.A,{className:"overlay-action",children:(0,t.jsxs)("div",{className:"overlay-xy-input-wrapper",children:[(0,t.jsx)(Ce,{value:Oo||wo.toFixed(0),visible:!!Oo,valueType:"number",prefix:"X",onSubmit:mn=>an(mn,"overlayRelativePosX"),style:{width:70},currentWidgetKey:Un,getInvalidIconContainer:mn=>{var Sn;return(Sn=mn.closest(".overlay-action"))==null||(Sn=Sn.previousElementSibling)==null?void 0:Sn.querySelector(".link-action-title")},children:(0,t.jsx)(V.A,{attr:"overlayRelativePosX",title:"X",value:wo,min:-d.rT,max:d.rT,onConfirm:Kn,unMountCallback:Kn})}),(0,t.jsx)(Ce,{value:qn||dn.toFixed(0),visible:!!qn,valueType:"number",prefix:"Y",onSubmit:mn=>an(mn,"overlayRelativePosY"),style:{width:70,marginLeft:4},currentWidgetKey:Un,getInvalidIconContainer:mn=>{var Sn;return(Sn=mn.closest(".overlay-action"))==null||(Sn=Sn.previousElementSibling)==null?void 0:Sn.querySelector(".link-action-title")},children:(0,t.jsx)(V.A,{attr:"overlayRelativePosY",title:"Y",value:dn,min:-d.rT,max:d.rT,onConfirm:Kn,unMountCallback:Kn})})]})})]})]}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(Xe,{link:Ht,transitionOptions:zn,onChange:Kn,currentWidgetKey:Un}),(0,t.jsx)(qe,{link:Ht,onChange:Kn,canResetScroll:!1,adaptTopPosition:Hn})]})},Pn=ht=>{let{interaction:Ht,currentWidgetKey:nn,onChange:en}=ht;return(0,t.jsx)(fn,{children:(0,t.jsx)(Xe,{noTransition:!0,link:Ht,onChange:en,currentWidgetKey:nn})})},_n=k.Ay.div.withConfig({displayName:"styles__StyledScrollLinkActions",componentId:"sc-xw7n8u-0"})([".is-placeholder{button{color:",';}}.transition-view{width:20px;height:20px;margin-bottom:unset;margin-right:8px;.pages{width:20px;height:20px;border:1px solid transparent;line-height:20px;[class*=" icon-"]{margin-left:unset;width:100%;height:100%;}.page2{color:#fff;background:',";}}}.link--drop-screen-list{width:108px;}.link--drop-transition-state-list{width:130px;width:108px;&:lang(ja){width:120px;}}.link--drop-transition-list{width:108px;}.no-both{flex:1;}.screen-link-fragment{padding:4px 7px 0 0;.select-number{width:60px;display:flex;align-items:center;.time-unit{margin-left:2px;}}}.panel-link-item{&:not(:last-child){margin-bottom:4px;}}.panel-link-screen-select{width:130px;padding-right:7px;button{justify-content:flex-end;}}.scroll-link-offset{.link-action-title{flex-shrink:0;}.title + input{margin-left:4px;}&.both{.state-link-select.offset-x{margin-right:3px;}.state-link-select.offset-y{margin-left:3px;}}}"],ht=>ht.theme.color_text_disabled01,ht=>ht.theme.color_proto);var Fn=e(64122);const Nn=(0,n.memo)(ht=>{const{link:Ht,currentWidgetKey:nn,onChange:en,adaptTopPosition:Un}=ht,{iterationCount:Kn="1",iterationInterval:Hn="0",expression:bo={}}=Ht.data||{},{iterationCount:zn,iterationInterval:Vn}=bo,Rn=(0,oe.W7)(Hn),Mo=(dn,pn)=>{let ho=dn.trim()||"0";const Oo=Number(ho);return String(Oo)===ho?(pn==="iterationCount"?ho=Oo===1/0?"infinite":(0,_e.d8)(Oo,[1,d.sw]).toFixed(0):ho=(0,_e.d8)(Oo,[0,d.sw]).toFixed(0),en(ho,pn),bo!=null&&bo[pn]&&en({...bo,[pn]:void 0},"expression"),!1):(ho!==(bo==null?void 0:bo[pn])&&en({...bo,[pn]:ho},"expression"),!0)},wo=(dn,pn)=>{en(String(dn),pn)};return(0,t.jsx)(lt,{linkKey:Ht.key,adaptTopPosition:Un,children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(H.A,{linkTitle:I18N.SettingPanel.ani_count,children:(0,t.jsx)(Ce,{value:zn||(Kn==="infinite"?"Infinity":Kn),visible:!!zn,valueType:"number",onSubmit:dn=>Mo(dn,"iterationCount"),currentWidgetKey:nn,children:(0,t.jsx)(V.A,{attr:"iterationCount",value:Kn,menuClassName:"ani-count-select",min:1,max:d.sw,isNotVerify:Kn==="infinite",formatter:dn=>dn==="infinite"?I18N.SettingPanel.infinite:dn,optionList:(0,Fn.iT)(),unMountCallback:wo,onConfirm:wo})})}),(0,t.jsx)(H.A,{linkTitle:I18N.Interaction.iteration.interval,children:(0,t.jsx)(Ce,{value:Vn||String(Rn!=null?Rn:0),visible:!!Vn,valueType:"number",onSubmit:dn=>Mo(dn,"iterationInterval"),currentWidgetKey:nn,children:(0,t.jsx)(V.A,{attr:"iterationInterval",value:Rn,suffix:"ms",min:0,max:d.sw,optionList:d.zI,unMountCallback:en,onConfirm:en})})})]})})}),io=ht=>{var Ht;let{link:nn,onChange:en,currentCanvas:Un,isEditingCombo:Kn,currentWidgetKey:Hn,adaptTopPosition:bo}=ht;const zn=(0,n.useRef)(null),Vn=(0,h.d4)(Xt.U2),Rn=(0,h.d4)(le.bt),{scrollToDir:Mo,scrollToOffsetX:wo=0,scrollToOffsetY:dn=0,expression:pn={}}=nn.data||{},{scrollToOffsetX:ho,scrollToOffsetY:Oo}=pn,qn=Mo==="horizontal"||Mo==="both",So=Mo==="vertical"||Mo==="both",Ut=(0,n.useRef)(new Map(Object.entries(pn))),an=(0,n.useRef)(!1),wn=un=>{var An;(An=zn.current)==null||An.close(),en(un,"targetWidgetKey")},xn=(un,An)=>{let oo=un.trim()||"0";const No=Number(oo);return String(No)===oo?(oo=(0,_e.d8)(No,[-d.rT,d.rT]).toFixed(0),en(oo,An),pn!=null&&pn[An]&&en({...pn,[An]:void 0},"expression"),Ut.current.delete(An),!1):(oo!==(pn==null?void 0:pn[An])&&(en({...pn,[An]:oo},"expression"),Ut.current.set(An,oo)),!0)},mn=un=>{en(un,"scrollToDir");const An=un==="horizontal"||un==="both",oo=un==="vertical"||un==="both";let No={...pn},Vo=!1;!An&&pn!=null&&pn.scrollToOffsetX&&(No={...No,scrollToOffsetX:void 0},an.current=!0,Vo=!0),An&&!(pn!=null&&pn.scrollToOffsetX)&&Ut.current.get("scrollToOffsetX")&&(No={...No,scrollToOffsetX:Ut.current.get("scrollToOffsetX")},Vo=!0),!oo&&pn!=null&&pn.scrollToOffsetY&&(No={...No,scrollToOffsetY:void 0},an.current=!0,Vo=!0),oo&&!(pn!=null&&pn.scrollToOffsetY)&&Ut.current.get("scrollToOffsetY")&&(No={...No,scrollToOffsetY:Ut.current.get("scrollToOffsetY")},Vo=!0),Vo&&en(No,"expression")};(0,n.useEffect)(()=>{if(an.current){an.current=!1;return}!pn.scrollToOffsetX&&Ut.current.get("scrollToOffsetX")&&Ut.current.delete("scrollToOffsetX"),!pn.scrollToOffsetY&&Ut.current.get("scrollToOffsetY")&&Ut.current.delete("scrollToOffsetY")},[pn]);const Sn=((Ht=nn.data)==null?void 0:Ht.targetWidgetKey)===ft.VZ&&!Rn?(0,ke.JC)(sdkStore,nn.triggerItemKey):nn.targetWidgetKey,Tn=!nn.isTargetWidgetValid;return(0,t.jsxs)(_n,{children:[(0,t.jsx)(Q,{className:"link-item-group",children:(0,t.jsx)(H.A,{linkTitle:I18N.SettingPanel.target_widget,children:(0,t.jsx)(p.Ay,{ref:zn,menux:"right",title:(0,oe.iI)(nn,Rn),isPlaceholder:!nn.isTargetWidgetValid,shouldPreventScrollingPropagation:!1,className:"link--drop-screen-list",forceDarkTheme:!0,icon:Tn?null:(0,t.jsx)(K.W,{renderItem:sdkStore.getHotItem(Sn),targetKey:Sn}),renderMenu:(0,t.jsx)(Gn,{keyTriggerItem:Vn,keyTargetItem:Sn,onSelectTargetItem:wn})})})}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(xo,{value:Mo,onChange:mn}),(0,t.jsx)(N,{className:c()("scroll-link-offset",{both:Mo==="both"}),children:(0,t.jsxs)(H.A,{linkTitle:I18N.SettingPanel.scroll_to_offset,children:[qn&&(0,t.jsx)("div",{className:c()("state-link-select offset-x",{"no-both":Mo!=="both"}),children:(0,t.jsx)(Ce,{value:ho||wo.toFixed(0),visible:!!ho,valueType:"number",prefix:"X",onSubmit:un=>xn(un,"scrollToOffsetX"),style:{width:68},currentWidgetKey:Hn,getInvalidIconContainer:un=>{var An;return(An=un.closest(".scroll-link-offset"))==null?void 0:An.querySelector(".link-action-title")},children:(0,t.jsx)(V.A,{attr:"scrollToOffsetX",value:wo,title:"X",min:-d.rT,max:d.rT,isDisabled:Kn?!0:!Un,unMountCallback:en,onConfirm:en})})}),So&&(0,t.jsx)("div",{className:c()("state-link-select offset-y",{"no-both":Mo!=="both"}),children:(0,t.jsx)(Ce,{value:Oo||dn.toFixed(0),visible:!!Oo,valueType:"number",prefix:"Y",onSubmit:un=>xn(un,"scrollToOffsetY"),style:{width:68},panelWidth:qn?329:400,currentWidgetKey:Hn,getInvalidIconContainer:un=>{var An;return(An=un.closest(".scroll-link-offset"))==null?void 0:An.querySelector(".link-action-title")},children:(0,t.jsx)(V.A,{attr:"scrollToOffsetY",title:"Y",value:dn,min:-d.rT,max:d.rT,isDisabled:Kn?!0:!Un,unMountCallback:en,onConfirm:en})})})]})}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(Xe,{link:nn,onChange:en,currentWidgetKey:Hn}),(0,t.jsx)(Nn,{link:nn,currentWidgetKey:Hn,onChange:en,adaptTopPosition:bo})]})};var to=e(63143),go=e(35770),Io=e(70812);const co=ht=>{var Ht;let{interaction:nn,onChange:en,currentWidgetKey:Un,adaptTopPosition:Kn}=ht;const Hn=(0,h.d4)(we.ue),bo=(0,h.d4)(le.oO),zn=(0,n.useMemo)(()=>({variables:(0,Te.qL)(Hn),p2sdkStore:sdkStore}),[Hn]),{targetVarKey:Vn,targetVarValue:Rn}=nn.data,Mo=Vn&&((Ht=sdkStore.getHotItem(Vn))==null?void 0:Ht.hotAttr.varDataType),[wo,dn]=(0,n.useState)(!0),pn=(0,n.useRef)(new Map),ho=(0,n.useRef)(null),Oo=wo?void 0:400,qn=!Vn||bo,So=I18N.Variable.editor[Vn?wo?"readonly_placeholder":"placeholder":"disabled_placeholder"].replace("{type}",(0,Pe.IV)(Mo,!0));let Ut=!0;Rn&&(Ut=nn.isTargetValid&&nn.isTargetExprWattrValid);const an=un=>{if(!(Vn&&Vn===un)){if(sdkStore.combineMergeMark("update-target-var"),en(un,"targetVarKey"),un){const An=pn.current.has(un),oo=pn.current.get(un);if(An)en(oo,"targetVarValue");else{const No=sdkStore.getHotItem(un);if(!No)return en("","targetVarValue");const{varDataType:Vo}=No.hotAttr;Mo!==Vo||!Rn?en("","targetVarValue"):Tn(un,Rn)}}sdkStore.combineMerge("update-target-var")}},wn=()=>{qn||dn(!1)},xn=()=>{dn(!0),en(Rn,"targetVarValue"),Tn(Vn,Rn)},mn=(un,An)=>{typeof un=="string"&&(en(un,"targetVarValue"),Tn(Vn,un),Io.U4.updateInteractionTrack({type:"\u66F4\u65B0",interactionTrigger:nn.interactionTrigger,interactionType:nn.interactionType,value:An})),dn(!0)},Sn=un=>{un.stopPropagation()},Tn=(un,An)=>{un&&(An?pn.current.set(un,An):pn.current.delete(un))};return(0,n.useEffect)(()=>{Tn(Vn,Rn)},[]),(0,n.useEffect)(()=>{setTimeout(()=>{var un;if(!wo||!ho.current)return;const An=ho.current.clientWidth;(((un=ho.current.querySelector(".public-DraftStyleDefault-block"))==null?void 0:un.scrollWidth)||0)>An?ho.current.classList.add("is-overflow"):ho.current.classList.remove("is-overflow")},0)},[wo,Rn]),(0,t.jsxs)(rt,{children:[(0,t.jsxs)(Q,{className:"link-item-group",children:[(0,t.jsx)(H.A,{linkTitle:I18N.Variable.target,className:"transition-action",children:(0,t.jsx)(to.A,{value:Vn,onChange:an,showName:!0,disabled:bo,onClickoutside:un=>{var An,oo;return(An=un.target)==null||(oo=An.closest)==null?void 0:oo.call(An,"#tree-editor-float")}})}),(0,t.jsx)(H.A,{linkTitle:(0,t.jsxs)(t.Fragment,{children:[I18N.Variable.editor.value,!Ut&&(0,t.jsx)(fe.A,{content:I18N.Expression.invalid_value,direction:"down",delay:200,children:(0,t.jsx)(a.C,{name:"interaction/invalid",size:16,className:"expression-invalid-icon"})})]}),className:"transition-action expression-action",children:(0,t.jsx)(re.A,{maxWidth:"200px",style:{padding:8,wordWrap:"break-word"},tipClassName:"long-name-trigger fixed-transform-y10",enterHoverTime:200,isSkipShortTimerHover:!0,isShowTipsByTarget:()=>{var un,An;return wo&&((un=ho.current)==null||(un=un.querySelector(".DraftEditor-root"))==null?void 0:un.scrollWidth)>((An=ho.current)==null?void 0:An.clientWidth)},content:wo?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(me.RN,{}),(0,t.jsx)(me.j$,{className:"var-display-name",children:(0,t.jsx)(Ie.A,{readOnly:!0,simple:!0,value:Rn,valueType:Mo,scope:zn,multiline:!1,currentWidgetKey:Un})})]}):null,children:(0,t.jsx)(go.Ef,{ref:ho,className:c()({"is-readonly-wrapper":wo,"is-disabled":qn}),onPaste:Sn,children:(0,t.jsx)(Ie.A,{disabled:qn,value:Rn,valueType:Mo,scope:zn,readOnly:wo,placeholder:So,width:Oo,onClick:wn,onSubmit:mn,onCancel:xn,currentWidgetKey:Un})})})}),(0,t.jsx)(Xe,{className:"no-padding",noTransition:!0,link:nn,onChange:en,currentWidgetKey:Un})]}),(0,t.jsx)(Nn,{link:nn,currentWidgetKey:Un,onChange:en,adaptTopPosition:Kn})]})};var On=e(92114);const Cn=ht=>{let{interaction:Ht,currentWidgetKey:nn,onChange:en}=ht;const Un=(0,h.d4)(we.ue),Kn=(0,h.d4)(le.oO),Hn=(0,n.useMemo)(()=>({variables:(0,Te.qL)(Un),p2sdkStore:sdkStore}),[Un]),{branches:bo,branchSwitch:zn}=Ht.data,{condition:Vn}=bo[0],[Rn,Mo]=(0,n.useState)(!0),wo=(0,n.useRef)(null),dn=Rn?void 0:400,pn=Kn;let ho=!0;Vn&&(ho=Ht.isTargetValid);const Oo=()=>{pn||Mo(!1)},qn=()=>{Mo(!0),en(bo,"branches")},So=(an,wn)=>{typeof an=="string"&&(bo[0]={...bo[0],condition:an},en(bo,"branches"),Io.U4.updateInteractionTrack({type:"\u66F4\u65B0",interactionTrigger:Ht.interactionTrigger,interactionType:Ht.interactionType,value:wn})),Mo(!0)},Ut=an=>{an.stopPropagation()};return(0,n.useEffect)(()=>{setTimeout(()=>{var an;if(!Rn||!wo.current)return;const wn=wo.current.clientWidth;(((an=wo.current.querySelector(".public-DraftStyleDefault-block"))==null?void 0:an.scrollWidth)||0)>wn?wo.current.classList.add("is-overflow"):wo.current.classList.remove("is-overflow")},0)},[Rn,Vn]),(0,t.jsxs)(rt,{children:[(0,t.jsx)(Q,{className:"link-item-group",children:(0,t.jsx)(H.A,{linkTitle:(0,t.jsxs)(t.Fragment,{children:[I18N.Interaction.branch.condition,!ho&&(0,t.jsx)(fe.A,{content:I18N.Expression.invalid_value,direction:"down",delay:200,children:(0,t.jsx)(a.C,{name:"interaction/invalid",size:16,className:"expression-invalid-icon"})})]}),className:"transition-action",children:(0,t.jsx)(re.A,{maxWidth:"200px",style:{padding:8,wordWrap:"break-word"},tipClassName:"long-name-trigger fixed-transform-y10",enterHoverTime:200,isSkipShortTimerHover:!0,isShowTipsByTarget:()=>{var an,wn;return Rn&&((an=wo.current)==null||(an=an.querySelector(".DraftEditor-root"))==null?void 0:an.scrollWidth)>((wn=wo.current)==null?void 0:wn.clientWidth)},content:Rn?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(me.RN,{}),(0,t.jsx)(me.j$,{className:"var-display-name",children:(0,t.jsx)(Ie.A,{readOnly:!0,simple:!0,value:Vn,valueType:"boolean",scope:Hn,multiline:!1,currentWidgetKey:nn})})]}):null,children:(0,t.jsx)(go.Ef,{ref:wo,className:c()({"is-readonly-wrapper":Rn,"is-disabled":pn}),onPaste:Ut,children:(0,t.jsx)(Ie.A,{disabled:pn,value:Vn,valueType:"boolean",scope:Hn,readOnly:Rn,placeholder:I18N.Variable.editor.condition_placeholder,width:dn,onClick:Oo,onSubmit:So,onCancel:qn,currentWidgetKey:nn})})})})}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(Q,{className:"link-item-group",children:(0,t.jsx)(H.A,{linkTitle:I18N.Interaction.branch.switch_title,className:"transition-action",children:(0,t.jsx)(On.A,{className:"branchSwitch",size:"small",isIOS:!0,isChecked:zn,onChange:an=>en(an,"branchSwitch")})})})]})},Je=ht=>{let Ht;try{Ht=new URL(ht)}catch(nn){return!1}return Ht.protocol==="http:"||Ht.protocol==="https:"},vn=ht=>{ht=ht.trim();const Ht=ht[0];return Ht!=='"'&&Ht!=="'"||ht[ht.length-1]!==Ht?!1:ht.slice(1,-1)},Jn=k.Ay.div.withConfig({displayName:"styles__StyledHyperlinkActions",componentId:"sc-12fp4my-0"})(["padding:0 16px;.hyperlink-transition{.hyperlink-open-select{width:108px;}}.hyperlink-input{header{display:flex;align-items:center;color:",";}.content-box-container{padding:8px 0;.content-area{width:100%;&:has(>textarea:focus,>textarea.active) + .icon-bind{display:none !important;}}.content-expression{height:auto;min-height:28px;&.is-active > div{width:464px !important;}}textarea{height:80px;background:",";}}}.tip-icon{margin-left:2px;color:",";&:hover{color:",";}}"],ht=>ht.theme.color_text_L3,ht=>ht.theme.color_bg_white,ht=>ht.theme.color_text_L3,ht=>ht.theme.color_text_L2);var ao=e(3356),no=e(29329);class Oe extends n.PureComponent{constructor(Ht){var nn;super(Ht),(0,y.A)(this,"handleContentChange",Un=>{this.props.onChange(Un[0],"interactionExternalUrl")}),(0,y.A)(this,"handleContentBoxBlur",Un=>{Un[0]&&!Je(Un[0])?(MB.notice({text:I18N.SettingPanel.invalid_url_notice}),this.setState({isURLValid:!1})):this.setState({isURLValid:!0})}),(0,y.A)(this,"handleLinkExpChange",(Un,Kn,Hn)=>{var bo;const{link:zn,onChange:Vn}=this.props;let Rn=Un.trim()||"";const Mo=(bo=zn.expression)==null?void 0:bo.interactionExternalUrl;let wo=!Rn;if(Rn){const dn=(0,no.b5)(Hn);dn.length===1&&dn[0].type===no.wv.string&&(Rn=Rn.slice(1,-1),wo=!0)}return wo?(Vn(Rn,"interactionExternalUrl"),Mo&&Vn({...zn.expression,interactionExternalUrl:void 0},"expression"),this.handleContentBoxBlur([Rn]),this.setState({isURLValid:Rn?Je(Rn):!0}),!1):(Rn!==Mo&&(Vn({...zn.expression,interactionExternalUrl:Rn},"expression"),this.setState({isURLValid:!0})),!0)});const{link:en}=Ht;this.state={isURLValid:(nn=en.expression)!=null&&nn.interactionExternalUrl?!0:en.interactionExternalUrl?Je(en.interactionExternalUrl):!0}}render(){const{link:Ht,link:{interactionExternalUrl:nn,openIn:en,expression:Un},currentWidgetKey:Kn,onChange:Hn}=this.props,{isURLValid:bo}=this.state,zn=Un==null?void 0:Un.interactionExternalUrl,Vn=[{label:I18N.SettingPanel.new_tab,value:"newTab"},{label:I18N.SettingPanel.current_artboard_transition,value:"inPage"}];return(0,t.jsxs)(Jn,{className:"hyper-link-actions",children:[(0,t.jsx)(H.A,{linkTitle:I18N.SettingPanel.jump,className:"hyperlink-transition",children:(0,t.jsx)(ct.mq,{className:"hyperlink-open-select",attr:"openIn",value:en,optionList:Vn,isRightAlign:!0,onChange:Hn})}),(0,t.jsxs)("div",{className:"hyperlink-input",children:[(0,t.jsxs)("header",{className:"height-32",children:[I18N.SettingPanel.address,!bo&&(0,t.jsx)(fe.A,{maxWidth:"252px",content:I18N.SettingPanel.invalid_url_tip,children:(0,t.jsx)(a.C,{size:16,name:"design/warning",className:"tip-icon"})})]}),(0,t.jsx)("div",{className:"content-box-container",children:(0,t.jsx)(Ce,{value:zn||(nn?'"'+nn+'"':""),valueType:"string",visible:!!zn,onSubmit:this.handleLinkExpChange,currentWidgetKey:Kn,className:"content-expression",style:{width:"100%"},getInvalidIconContainer:Rn=>{var Mo;return(Mo=Rn.closest(".hyperlink-input"))==null?void 0:Mo.querySelector("header")},children:(0,t.jsx)(ao.k,{placeholder:I18N.SettingPanel.input_address,onChange:this.handleContentChange,onBlur:this.handleContentBoxBlur,content:nn,ita:Ht,className:"content-area"})})})]}),(0,t.jsx)(Xe,{className:"no-padding",noTransition:!0,link:Ht,onChange:Hn,currentWidgetKey:Kn})]})}}var $n=e(70933),$t=e(37780),cn=e(19969),yt=e(40486),Lt=e(99566);const Wt=k.Ay.div.withConfig({displayName:"styles__StyledTransformActions",componentId:"sc-1sabri9-0"})([".transform-link-offset{padding-right:12px;}.title-content{position:relative;&.transform-origin{height:80px;align-items:start;padding-top:8px;.transform-origin-box{height:64px;width:64px;border:1px solid ",";display:grid;grid-template-columns:repeat(3,20.6px);border-radius:6px;.option{position:relative;height:20.6px;display:flex;align-items:center;justify-content:center;&::after{content:'';position:absolute;top:5.3px;left:5.3px;width:10px;height:10px;border-radius:2px;}.dot{width:2px;height:2px;border-radius:50%;background-color:",";}&:hover{&::after{background-color:",";}.dot{display:none;}}&.active,&:active{&::after{background-color:",';}.dot{display:none;}}}}}&.has-exp{align-items:start;height:auto;.link-action-title{margin-top:7px;}&.transform-action .transform-input{flex-direction:column;.transform-exp{width:148px;margin:2px 0;.link-exp-area{.prefix{width:max-content;padding-left:10px;padding-right:4px;}}}}.translate-tip{position:absolute;left:37px;top:8px;}}&.transform-action .transform-input{display:flex;width:148px;column-gap:2px;.transform-exp{width:72px;.link-exp-area .link-exp-wrapper .expression-editor-panel #expression-editor::before{line-height:22px;font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;}}}.transform-exp:hover .WorkspaceInputNumber.is-active:not(.is-disabled){border:1px solid ',";}.link-exp-area > svg{flex-shrink:0;color:",";margin-left:1px;}.translate-tip{position:absolute;left:37px;}svg.translate-tip{&:hover{path{fill:",";}}path{fill:",";}}}.WorkspaceInputNumber:not(.icon-title){.title{padding-left:10px;padding-right:4px;}}.rotate3d{margin-left:6px;}"],ht=>ht.theme.color_bg_border_01,ht=>ht.theme.color_text_disabled01,ht=>ht.theme.color_btn_primary_disabled,ht=>ht.theme.color_btn_primary_normal,ht=>ht.theme.color_proto,ht=>ht.theme.color_text_L3,ht=>ht.theme.color_text_L1,ht=>ht.theme.color_text_L3),Jt=["topLeft","top","topRight","left","center","right","bottomLeft","bottom","bottomRight"],In={topLeft:[0,0],top:[50,0],topRight:[100,0],left:[0,50],center:[50,50],right:[100,50],bottomLeft:[0,100],bottom:[50,100],bottomRight:[100,100]},Ln=(ht,Ht)=>ht===0&&Ht===0?"topLeft":ht===50&&Ht===0?"top":ht===100&&Ht===0?"topRight":ht===0&&Ht===50?"left":ht===50&&Ht===50?"center":ht===100&&Ht===50?"right":ht===0&&Ht===100?"bottomLeft":ht===50&&Ht===100?"bottom":ht===100&&Ht===100?"bottomRight":"",hn=ht=>{var Ht;let{link:nn,onChange:en,currentCanvas:Un,isEditingCombo:Kn,currentWidgetKey:Hn,adaptTopPosition:bo}=ht;const zn=(0,n.useRef)(null),Vn=(0,h.d4)(Xt.U2),Rn=(0,h.d4)(le.bt),[Mo,wo]=(0,n.useState)(!0),dn=(0,n.useRef)({translateX:!1,translateY:!1}),{rotate3d:pn,transformTranslateX:ho=0,transformTranslateY:Oo=0,transformScaleX:qn=0,transformScaleY:So=0,transformRotateZ:Ut=0,transformRotateX:an=0,transformRotateY:wn=0,transformOriginX:xn,transformOriginY:mn,expression:Sn={}}=nn.data||{},{transformTranslateX:Tn,transformTranslateY:un,transformScaleX:An,transformScaleY:oo,transformRotateZ:No,transformRotateX:Vo,transformRotateY:Ko}=Sn,zo=(0,n.useRef)(new Map(Object.entries(Sn))),xs=(0,n.useMemo)(()=>Mo?I18N.Interaction.transform.translate_tip:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{children:I18N.Interaction.transform.translate_tip}),(0,t.jsx)("div",{children:I18N.Expression.invalid_value})]}),[Mo]),ys=((Ht=nn.data)==null?void 0:Ht.targetWidgetKey)===ft.VZ&&!Rn?(0,ke.JC)(sdkStore,nn.triggerItemKey):nn.targetWidgetKey,ss=!nn.isTargetWidgetValid,ce=kt=>{var Yt;if(!kt||((Yt=zn.current)==null||Yt.close(),en(kt,"targetWidgetKey"),ys))return;let Xn=kt;if(kt===ft.rE&&(Xn=Vn),kt===ft.VZ&&(Xn=(0,ke.JC)(sdkStore,Vn)),Xn){var Do;const Uo=((Do=sdkStore.getHotItem(Xn||""))==null?void 0:Do.hotAttr.r)||0;en(Uo,"transformRotateZ")}},Pt=(kt,Yt)=>{let Xn=kt.trim()||"0",Do=Number(Xn);return Xn.startsWith("-")&&!isNaN(Number(Xn.replace(/\s/g,"")))&&(Do=Number(Xn.replace(/\s/g,""))),String(Do)===Xn||String(Do)===Xn.replace(/\s/g,"")?(Xn=(0,_e.d8)(Do,[-d.rT,d.rT]).toFixed(0),en(Xn,Yt),Sn!=null&&Sn[Yt]&&en({...Sn,[Yt]:void 0},"expression"),zo.current.delete(Yt),!1):(Xn!==(Sn==null?void 0:Sn[Yt])&&(en({...Sn,[Yt]:Xn},"expression"),zo.current.set(Yt,Xn)),!0)},Mt=kt=>{if(!kt)return;const[Yt=50,Xn=50]=In[kt]||[];en(Yt,"transformOriginX"),en(Xn,"transformOriginY")},je=function(kt,Yt){var Xn;if(Yt===void 0&&(Yt=!1),Yt){var Do;return pn?(Do=kt.closest(".transform-link-offset"))==null?void 0:Do.querySelector(".rotate3d-action.title-content .link-action-title"):void 0}return(Xn=kt.closest(".title-content"))==null?void 0:Xn.querySelector(".link-action-title")},vt=(kt,Yt)=>{Yt==="translateX"&&(dn.current.translateX=kt),Yt==="translateY"&&(dn.current.translateY=kt),wo(!dn.current.translateX&&!dn.current.translateY)};return(0,t.jsxs)(Wt,{children:[(0,t.jsx)(Q,{className:"link-item-group",children:(0,t.jsx)(H.A,{linkTitle:I18N.SettingPanel.design.link_target,children:(0,t.jsx)(p.Ay,{ref:zn,menux:"right",title:(0,oe.iI)(nn,Rn),isPlaceholder:!nn.isTargetWidgetValid,shouldPreventScrollingPropagation:!1,className:"link--drop-screen-list",forceDarkTheme:!0,icon:ss?null:(0,t.jsx)(K.W,{renderItem:sdkStore.getHotItem(ys),targetKey:ys}),renderMenu:(0,t.jsx)(Gn,{keyTriggerItem:Vn,keyTargetItem:ys,onSelectTargetItem:ce})})})}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsxs)(N,{className:"transform-link-offset",children:[(0,t.jsxs)(H.A,{linkTitle:I18N.Interaction.transform.translate,className:c()("transform-action",{"has-exp":Tn||un}),children:[(0,t.jsxs)("div",{className:"transform-input",children:[(0,t.jsx)(Ce,{className:"transform-exp",initPosition:{top:-6,left:6},value:Tn||String(Number(ho.toFixed(0))),visible:!!Tn,valueType:"number",prefix:"X",onSubmit:kt=>Pt(kt,"transformTranslateX"),currentWidgetKey:Hn,getInvalidIconContainer:kt=>je(kt),invalidContent:xs,onInvalidIconVisible:kt=>vt(kt,"translateX"),children:(0,t.jsx)(V.A,{attr:"transformTranslateX",title:"X",value:ho,min:-d.rT,max:d.rT,unMountCallback:en,onConfirm:en})}),(0,t.jsx)(Ce,{className:"transform-exp",initPosition:{top:-6,left:6},value:un||String(Number(Oo).toFixed(0)),visible:!!un,valueType:"number",prefix:"Y",onSubmit:kt=>Pt(kt,"transformTranslateY"),currentWidgetKey:Hn,getInvalidIconContainer:kt=>je(kt),invalidContent:xs,onInvalidIconVisible:kt=>vt(kt,"translateY"),children:(0,t.jsx)(V.A,{attr:"transformTranslateY",title:"Y",value:Oo,min:-d.rT,max:d.rT,unMountCallback:en,onConfirm:en})})]}),Mo&&(0,t.jsx)(fe.A,{content:I18N.Interaction.transform.translate_tip,direction:"down",maxWidth:"180px",children:(0,t.jsx)(a.C,{className:"translate-tip",size:16,name:"interaction/trigger/listener/tip"})})]}),(0,t.jsx)(H.A,{linkTitle:I18N.Interaction.transform.scale,className:c()("transform-action",{"has-exp":An||oo}),children:(0,t.jsxs)("div",{className:"transform-input",children:[(0,t.jsx)(Ce,{className:"transform-exp",initPosition:{top:-6,left:6},value:An||String(Number(qn).toFixed(0)),visible:!!An,valueType:"number",prefix:"X",suffix:"%",onSubmit:kt=>Pt(kt,"transformScaleX"),currentWidgetKey:Hn,getInvalidIconContainer:kt=>je(kt),children:(0,t.jsx)(V.A,{attr:"transformScaleX",title:"X",suffix:"%",value:qn,min:-d.rT,max:d.rT,unMountCallback:en,onConfirm:en})}),(0,t.jsx)(Ce,{className:"transform-exp",initPosition:{top:-6,left:6},value:oo||String(Number(So).toFixed(0)),visible:!!oo,valueType:"number",prefix:"Y",suffix:"%",onSubmit:kt=>Pt(kt,"transformScaleY"),currentWidgetKey:Hn,getInvalidIconContainer:kt=>je(kt),children:(0,t.jsx)(V.A,{attr:"transformScaleY",title:"Y",suffix:"%",value:So,min:-d.rT,max:d.rT,unMountCallback:en,onConfirm:en})})]})}),(0,t.jsx)(H.A,{linkTitle:I18N.Interaction.transform.rotate,children:(0,t.jsx)(Ce,{className:"transform-exp",value:No||String(Number(Ut).toFixed(0)),visible:!!No,valueType:"number",prefixIcon:(0,t.jsx)(a.C,{size:24,name:"setting_panel/general/rotate"}),suffix:"\xB0",onSubmit:kt=>Pt(kt,"transformRotateZ"),style:{width:No?148:72},currentWidgetKey:Hn,getInvalidIconContainer:kt=>je(kt),children:(0,t.jsx)(V.A,{className:"step-input-width-72 icon-title",attr:"transformRotateZ",title:(0,t.jsx)(a.C,{name:"setting_panel/general/rotate"}),suffix:"\xB0",value:Ut,min:-d.rT,max:d.rT,unMountCallback:en,onConfirm:en})})}),(0,t.jsx)(H.A,{className:"rotate3d-action",linkTitle:I18N.Interaction.transform.rotate3d,children:(0,t.jsx)(On.A,{className:"rotate3d",size:"small",isIOS:!0,isChecked:pn,onChange:kt=>en(kt,"rotate3d")})}),pn&&(0,t.jsx)(H.A,{linkTitle:"",className:c()("transform-action",{"has-exp":Vo||Ko}),children:(0,t.jsxs)("div",{className:"transform-input",children:[(0,t.jsx)(Ce,{className:"transform-exp",value:Vo||String(Number(an).toFixed(0)),visible:!!Vo,valueType:"number",prefixIcon:(0,t.jsx)(a.C,{size:24,name:"setting_panel/general/rotateX"}),suffix:"\xB0",onSubmit:kt=>Pt(kt,"transformRotateX"),currentWidgetKey:Hn,getInvalidIconContainer:kt=>je(kt,!0),children:(0,t.jsx)(V.A,{className:"step-input-width-72 icon-title",attr:"transformRotateX",title:(0,t.jsx)(a.C,{name:"setting_panel/general/rotateX"}),suffix:"\xB0",value:an,min:-d.rT,max:d.rT,toolTipContent:I18N.Expression.exprWattr.RX,unMountCallback:en,onConfirm:en})}),(0,t.jsx)(Ce,{className:"transform-exp",value:Ko||String(Number(wn).toFixed(0)),visible:!!Ko,valueType:"number",prefixIcon:(0,t.jsx)(a.C,{size:24,name:"setting_panel/general/rotateY"}),suffix:"\xB0",onSubmit:kt=>Pt(kt,"transformRotateY"),currentWidgetKey:Hn,getInvalidIconContainer:kt=>je(kt,!0),children:(0,t.jsx)(V.A,{className:"step-input-width-72 icon-title",attr:"transformRotateY",title:(0,t.jsx)(a.C,{name:"setting_panel/general/rotateY"}),suffix:"\xB0",value:wn,min:-d.rT,max:d.rT,toolTipContent:I18N.Expression.exprWattr.RY,unMountCallback:en,onConfirm:en})})]})}),(0,t.jsx)(H.A,{linkTitle:I18N.Interaction.transform.origin,className:"transform-origin",children:(0,t.jsx)("div",{className:"transform-origin-box",children:Jt.map(kt=>(0,t.jsx)("div",{className:c()("option",{active:kt===Ln(xn,mn)}),onClick:()=>Mt(kt),children:(0,t.jsx)("div",{className:"dot"})},kt))})})]}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(Xe,{link:nn,onChange:en,currentWidgetKey:Hn}),(0,t.jsx)(Nn,{link:nn,currentWidgetKey:Hn,onChange:en,adaptTopPosition:bo})]})},_o=k.Ay.div.withConfig({displayName:"styles__StyledShowCase",componentId:"sc-7lnq7p-0"})(["height:80px;font-size:18px;color:",";display:flex;justify-content:center;align-items:center;animation-timing-function:ease-in-out;animation-iteration-count:infinite;"],ht=>ht.theme.color_text_L1),vo=k.Ay.div.withConfig({displayName:"styles__StyledSetAnimationActions",componentId:"sc-7lnq7p-1"})([".WorkspaceSelect.is-placeholder > button{color:",";}.animation-box{margin:8px 0px;background:",";overflow:hidden;border-radius:6px;}.amimation-name-opener{cursor:pointer;}"],ht=>ht.theme.color_text_link_normal,ht=>ht.theme.color_bg_card),Qn=(0,k.DU)(["#IBOT_SELECT_MENU_ROOT .SelectMenuPortal .WorkspaceSelectMenu.SelectNumberMenu.ani-count-select{max-height:326px;}"]);var He=e(25431),Re=e(7501),De=e(64165),Be=e(87332),$e=e(89775),Ze=e.n($e),nt=e(51306);const mt=ht=>{let{isTargetAniValid:Ht,targetWKey:nn,animationName:en,onChange:Un}=ht;const Kn=(0,n.useRef)(null),[Hn,bo]=(0,n.useState)(!1),zn=!en||!Ht;return(0,n.useEffect)(()=>{let Vn;return(0,pt.kV)(nt.P)&&((0,pt.G5)(nt.P),Vn=setTimeout(()=>bo(!!(nn&&!en)))),()=>{Vn&&clearTimeout(Vn)}},[]),(0,t.jsx)(Be.A,{isDefaultOpen:Hn,isAnimation:!0,distance:0,offsetX:-15,ref:Kn,renderOpener:(0,t.jsx)(p.se,{className:"amimation-name-opener",title:zn?I18N.SettingPanel.please_select:I18N.dConst.ani[en],isPlaceholder:zn}),renderMenu:(0,t.jsx)(xt,{targetWKey:nn,animationName:en,dropdownRef:Kn,onChange:Un})})},xt=ht=>{let{targetWKey:Ht,animationName:nn,dropdownRef:en,onChange:Un}=ht;const Kn=(0,n.useRef)(null),Hn=(0,n.useMemo)(()=>{var zn;return(zn=sdkStore.getHotItem(Ht))==null?void 0:zn.hotAttr.type},[Ht]);(0,n.useEffect)(()=>{var zn;(zn=Kn.current)==null||(zn=zn.querySelector('li[role="option"][data-value="'+nn+'"]'))==null||zn.scrollIntoView(!1)},[nn]);const bo=zn=>{let{currentTarget:Vn}=zn;if(Vn.dataset.value){var Rn;Un(Vn.dataset.value,"animationName"),(Rn=en.current)!=null&&Rn.state.isMenuShow&&en.current.setState({isMenuShow:!1})}};return(0,t.jsx)(gt,{ref:Kn,className:"animation-name-dropmenu",onClick:De.dG,children:(0,Fn.po)(Hn).map((zn,Vn)=>Ze()(zn)?(0,t.jsx)(He.YJ,{menuTheme:"plain",optionList:zn,value:nn,onChange:bo},Vn):(0,t.jsx)(He.c$,{menuTheme:"plain",isActive:(0,Re.o3)(zn,nn),option:zn,isDisabled:zn.isDisabled,onChange:bo},Vn))})},gt=k.Ay.ul.withConfig({displayName:"AniNameDropdown__StyledAniNameMenu",componentId:"sc-3w4tjx-0"})(["min-width:100%;min-height:30px;max-height:300px;overflow:hidden auto;list-style:none;transition-property:transform,opacity;transform-origin:50% 0px;margin:0px;padding:8px;border-radius:8px;color:",";background:",";box-shadow:",";border:1px solid ",";border-radius:8px;width:176px;max-width:176px;padding:8px;background-color:",";box-shadow:",";> .divider{border-bottom:1px solid ",";margin:5px;}.SelectOption{display:flex;align-items:center;height:24px;line-height:24px;cursor:pointer;font-size:12px;font-weight:400;& > .Ellipsis{padding:0 16px 0 32px;min-width:160px;}&.is-disabled{cursor:not-allowed;opacity:0.5;}&.is-active{color:#fff;mix-blend-mode:normal;position:relative;}.shortcutkey{color:#999;float:right;}.svg-icon3 svg{color:#f2f4f5;width:12px;height:12px;position:relative;top:2px;}&.is-active .svg-icon2 svg{width:8px;height:6px;position:absolute;left:12px;top:9px;}&:not(.empty-msg):not(.is-disabled):not(.is-active):hover{background-color:#666;color:#fff;}border-radius:4px;height:28px;line-height:28px;&.is-active{color:",";}&:not(.empty-msg):not(.is-disabled):not(.is-active):hover{background-color:",";color:",";}&:not(.empty-msg):not(.is-disabled):hover{background:",";}}.SelectGroup{.divider{height:1px;margin:4px 16px;background:#7d8694;}& > .title{font-size:12px;padding:0 8px 0 16px;width:100%;height:30px;line-height:30px;color:rgba(255,255,255,0.7);span{display:block;}}& > ul{margin:0;padding:0;}> .title{color:",";}}"],ht=>ht.theme.color_text_L1,ht=>ht.theme.color_bg_white,ht=>ht.theme.shadow_m,ht=>ht.theme.color_bg_border_01,ht=>ht.theme.color_bg_white,ht=>ht.theme.shadow_m,ht=>ht.theme.color_bg_border_01,ht=>ht.theme.color_text_L1,ht=>ht.theme.color_btn_secondary_hover,ht=>ht.theme.color_text_L1,ht=>ht.theme.color_btn_secondary_hover,ht=>ht.theme.color_text_L3),wt=ht=>{let{duration:Ht,text:nn=I18N.SettingPanel.show_case}=ht;const[en,Un]=(0,n.useState)(""),Kn=(0,n.useRef)(),Hn=(0,n.useRef)(),bo=(0,n.useCallback)(()=>{const zn=performance.now(),Vn=nn.length,Rn=()=>{const Mo=(performance.now()-zn)/Ht;if(Mo<1){const wo=Math.floor(Mo*Vn);Un(nn.slice(0,wo)),Kn.current=requestAnimationFrame(Rn)}else Un(nn),Hn.current=setTimeout(bo,Ht/Vn)};Kn.current=requestAnimationFrame(Rn)},[Ht,nn]);return(0,n.useEffect)(()=>(bo(),()=>{Kn.current&&cancelAnimationFrame(Kn.current),Hn.current&&clearTimeout(Hn.current)}),[bo]),(0,t.jsx)(_o,{children:en})},Zt=ht=>{var Ht;let{link:nn,onChange:en,currentCanvas:Un,isEditingCombo:Kn,currentWidgetKey:Hn,adaptTopPosition:bo}=ht;const zn=(0,n.useRef)(null),Vn=(0,h.d4)(Xt.U2),Rn=(0,h.d4)(le.bt),{animationName:Mo="",animationDuration:wo=1e3,transitionDelay:dn,iterationCount:pn,expression:ho={}}=nn.data||{},{animationDuration:Oo}=ho,qn=(0,n.useRef)(new Map(Object.entries(ho))),So=((Ht=nn.data)==null?void 0:Ht.targetWidgetKey)===ft.VZ&&!Rn?(0,ke.JC)(sdkStore,nn.triggerItemKey):nn.targetWidgetKey,Ut=!nn.isTargetWidgetValid,an=(0,n.useMemo)(()=>({animationName:Mo,animationDelay:dn,animationDuration:wo+"ms"}),[Mo,wo,dn]),wn=Tn=>{var un,An;Tn&&(Mo===Fn.nn&&((un=sdkStore.getHotItem(Tn))==null?void 0:un.hotAttr.type)!==Po.x.WRichText&&en("","animationName"),(An=zn.current)==null||An.close(),en(Tn,"targetWidgetKey"))},xn=(Tn,un)=>{let An=Tn.trim()||"0";const oo=Number(An);return String(oo)===An?(An=(0,_e.d8)(oo,[0,d.sw]).toFixed(0),en(An,un),ho!=null&&ho[un]&&en({...ho,[un]:void 0},"expression"),qn.current.delete(un),!1):(An!==(ho==null?void 0:ho[un])&&(en({...ho,[un]:An},"expression"),qn.current.set(un,An)),!0)},mn=(Tn,un)=>{en(String(Tn),un)},Sn=Tn=>{var un;return(un=Tn.closest(".title-content"))==null?void 0:un.querySelector(".link-action-title")};return(0,t.jsxs)(vo,{children:[(0,t.jsx)(Q,{className:"link-item-group",children:(0,t.jsx)(H.A,{linkTitle:I18N.SettingPanel.design.link_target,children:(0,t.jsx)(p.Ay,{ref:zn,menux:"right",title:(0,oe.iI)(nn,Rn),isPlaceholder:!nn.isTargetWidgetValid,shouldPreventScrollingPropagation:!1,className:"link--drop-screen-list",forceDarkTheme:!0,icon:Ut?null:(0,t.jsx)(K.W,{renderItem:sdkStore.getHotItem(So),targetKey:So}),renderMenu:(0,t.jsx)(Gn,{keyTriggerItem:Vn,keyTargetItem:So,onSelectTargetItem:wn})})})}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsxs)(N,{className:"setanimation-link-offset",children:[(0,t.jsx)(H.A,{linkTitle:I18N.SettingPanel.animation,children:(0,t.jsx)(mt,{isTargetAniValid:nn.isTargetAniValid,targetWKey:So===ft.rE?Vn:So,animationName:Mo,onChange:en})}),(0,t.jsx)(H.A,{linkTitle:I18N.SettingPanel.ani_duration,children:(0,t.jsx)(Ce,{value:Oo||String(Number(wo).toFixed(0)),visible:!!Oo,valueType:"number",suffix:"ms",onSubmit:Tn=>xn(Tn,"animationDuration"),currentWidgetKey:Hn,getInvalidIconContainer:Tn=>Sn(Tn),children:(0,t.jsx)(V.A,{attr:"animationDuration",value:wo,suffix:"ms",min:0,max:d.sw,optionList:d.zI,unMountCallback:en,onConfirm:en})})}),(0,t.jsx)("div",{className:"animation-box",children:Mo===Fn.nn?(0,t.jsx)(wt,{duration:wo}):(0,t.jsx)(_o,{style:an,children:I18N.SettingPanel.show_case})}),(0,t.jsx)(Xe,{className:"no-padding",link:nn,onChange:en,currentWidgetKey:Hn,noTransition:!0})]}),(0,t.jsx)(Nn,{link:nn,currentWidgetKey:Hn,onChange:en,adaptTopPosition:bo}),(0,t.jsx)(Qn,{})]})},Ft=k.Ay.div.withConfig({displayName:"styles__StyledInteractionSetInputFocusEditor",componentId:"sc-1odn37c-0"})(["padding:0px 16px 0px 16px;"]),Gt=ht=>{let{isFocus:Ht,onChange:nn}=ht;return(0,t.jsxs)(Dt,{children:[(0,t.jsxs)("div",{className:"item "+(Ht?"active":""),onClick:()=>nn(!0),children:[(0,t.jsx)(a.C,{name:"interaction/action/15",size:16}),I18N.Interaction.setInputFocus.focus,(0,t.jsx)(fe.A,{content:I18N.Interaction.setInputFocus.ios_focus_fail,direction:"up",children:(0,t.jsx)(a.C,{className:"focus-tip",size:16,name:"interaction/trigger/listener/tip"})})]}),(0,t.jsxs)("div",{className:"item "+(Ht?"":"active"),onClick:()=>nn(!1),children:[(0,t.jsx)(a.C,{name:"interaction/input_blur",size:16}),I18N.Interaction.setInputFocus.blur]})]})},Dt=k.Ay.div.withConfig({displayName:"FocusSelector__StyledFocusSelector",componentId:"sc-1fnhy5k-0"})(["display:flex;margin:10px 0;.item{width:103px;height:26px;display:flex;column-gap:2px;align-items:center;justify-content:center;border:1px solid ",";border-right:none;overflow:hidden;cursor:pointer;color:",";&:first-child{border-radius:4px 0px 0px 4px;}&:last-child{border-radius:0px 4px 4px 0px;border-right:1px solid ","}&:hover{background-color:",";}&.active{background-color:",";}.focus-tip{&:hover{path{fill:",";}}path{fill:",";}}}"],ht=>ht.theme.color_bg_border_02,ht=>ht.theme.color_text_L1,ht=>ht.theme.color_bg_border_02,ht=>ht.theme.color_btn_secondary_active,ht=>ht.theme.color_btn_secondary_active,ht=>ht.theme.color_text_L1,ht=>ht.theme.color_text_L3),Qt=ht=>{let{link:Ht,onChange:nn,currentWidgetKey:en,adaptTopPosition:Un}=ht;const Kn=(0,n.useRef)(null),Hn=(0,h.d4)(Xt.U2),bo=(0,h.d4)(le.bt),{targetWidgetKey:zn,isTargetWidgetValid:Vn,data:Rn}=Ht,{isFocus:Mo,isSelectContent:wo}=Rn||{},dn=zn,pn=!Vn;(0,n.useEffect)(()=>{Mo&&(Un==null||Un())},[Un,Mo]);const ho=qn=>{var So;qn&&((So=Kn.current)==null||So.close(),nn(qn,"targetWidgetKey"))},Oo=qn=>!qn||qn.hotAttr.type!==Po.x.WMTextInput&&qn.hotAttr.type!==Po.x.WMTextArea;return(0,t.jsxs)(Ft,{children:[(0,t.jsx)(H.A,{linkTitle:I18N.Interaction.setInputFocus.input,children:(0,t.jsx)(p.Ay,{ref:Kn,menux:"right",title:(0,oe.iI)(Ht,bo),isPlaceholder:pn,shouldPreventScrollingPropagation:!1,className:"link--drop-screen-list",forceDarkTheme:!0,icon:pn?null:(0,t.jsx)(K.W,{renderItem:sdkStore.getHotItem(dn),targetKey:dn}),renderMenu:(0,t.jsx)(Gn,{keyTriggerItem:Hn,keyTargetItem:dn,onSelectTargetItem:ho,checkInvalidTargetItem:Oo,renderEmptyItaTargetItem:(0,t.jsxs)(P.wz,{children:[(0,t.jsx)(a.C,{className:"alert",name:"setting_panel/link/alert"}),(0,t.jsxs)("span",{children:["\xA0",I18N.Interaction.setInputFocus.no_input_widget]})]})})})}),(0,t.jsx)(Gt,{isFocus:Mo,onChange:qn=>nn(qn,"isFocus")}),Mo&&(0,t.jsx)(Ue.A,{attr:"isSelectContent",className:c()("height-32","margin-left-n6",Ue.p),label:I18N.Interaction.setInputFocus.selectContent,isChecked:wo,onChange:nn}),(0,t.jsx)(Xe,{className:"no-padding",noTransition:!0,link:Ht,onChange:nn,currentWidgetKey:en})]})},{LinkToCanvas:Ct,LinkToSourceCanvas:yn,SetBasketCanvas:rn,OpenExternalUrl:Rt,ScrollTo:Dn,SetVisibility:To,OpenOverlay:mo,SwapOverlay:ro,CloseOverlay:Bn,SetVariableValue:Ao,ConditionalBranches:uo,Transform:Jo,SetAnimation:$o,SetInputFocus:po}=o.O2,us=(0,i.Mz)([f.He,le.jI,le.bt,Nt.r,$n.Ur,cn.wN],(ht,Ht,nn,en,Un,Kn)=>{let{isEditingCombo:Hn,isEditingMuban:bo}=en;return{screenDataMap:ht,editingPanelCid:Ht,editingPanelRefPage:nn,isEditingCombo:Hn,currentScreen:Un,isEditingMuban:bo,isGlobalLink:Kn}}),hs=(0,n.memo)(ht=>{const{link:Ht,currentWidgetKey:nn,currentCanvas:en,hasTrash:Un,interactionTree:Kn,selectTreeNode:Hn,uiFrom:bo,interactionStore:zn,isNewTriggerPlaceHolder:Vn=!0,adaptTopPosition:Rn}=ht,Mo=(0,h.wA)(),{currentScreen:wo,editingPanelRefPage:dn,isEditingCombo:pn,screenDataMap:ho,editingPanelCid:Oo,isGlobalLink:qn}=(0,h.d4)(us),So=function(wn,xn,mn){mn===void 0&&(mn=""),Mo($t.R7.command.updateItaKV({link:Ht,attr:xn,value:wn,uiFrom:bo,interactionStore:zn,isNewTriggerPlaceHolder:Vn,nextTNodeTrigger:mn})),xn==="interactionTrigger"?Io.U4.updateInteractionTrack({type:"\u66F4\u65B0",interactionTrigger:wn,interactionType:Ht.interactionType}):xn==="interactionType"&&Io.U4.updateInteractionTrack({type:"\u66F4\u65B0",interactionTrigger:Ht.interactionTrigger,interactionType:wn})},Ut=wn=>{const xn=(0,Lt.AE)(wn);zn.command.updateTriggerInfo(xn,wn),So(wn.interactionTrigger,"interactionTrigger",xn)},an=()=>{Mo($t.R7.command.deleteIta({deleteNode:Hn,uiFrom:bo,interactionStore:zn}))};return(0,n.useEffect)(()=>()=>{yt.Wv.clear()},[]),(0,t.jsxs)(go.pn,{"data-cid":Ht.key,className:c()("link-editor",{disabled:!1}),id:qn?"twinkling-global-link-"+Ht.key:"",children:[(0,t.jsx)("div",{className:c()("link-content"),children:(0,t.jsxs)("div",{className:"link-main",children:[(0,t.jsx)(u.A,{tNodeTrigger:Ht.runtimeNodeTrigger,onChangeTrigger:Ut,hasTrash:Un,interactionTree:Kn,handleDelete:an}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(w.A,{supTreeNode:zn.query.getNode(Hn.sup),link:Ht,isEditingCombo:pn,onChange:So}),[Ct,yn].includes(Ht.interactionType)&&(0,t.jsx)(at,{link:Ht,editingPanelCid:Oo,targetScreen:ho[Ht.targetRBPageKey||(en==null?void 0:en.sup)]||wo,currentCanvas:en,isEditingCombo:pn,onChange:So,currentWidgetKey:nn,adaptTopPosition:Rn}),Ht.interactionType===rn&&(0,t.jsx)(zt,{link:Ht,editingPanelRefPage:dn,currentWidgetKey:nn,onChange:So,adaptTopPosition:Rn}),Ht.interactionType===Rt&&(0,t.jsx)(Oe,{link:Ht,onChange:So,currentWidgetKey:nn}),Ht.interactionType===Dn&&(0,t.jsx)(io,{link:Ht,currentCanvas:en,isEditingCombo:pn,onChange:So,currentWidgetKey:nn,adaptTopPosition:Rn}),Ht.interactionType===To&&(0,t.jsx)(ut,{link:Ht,onChange:So,currentWidgetKey:nn}),(Ht.interactionType===mo||Ht.interactionType===ro)&&(0,t.jsx)(Yn,{interaction:Ht,currRBPageKey:(ho[Ht.targetRBPageKey||(en==null?void 0:en.sup)]||wo).key,currSelectedCanvasKey:(en==null?void 0:en.key)||"",onChange:So,currentWidgetKey:nn,adaptTopPosition:Rn}),Ht.interactionType===Bn&&(0,t.jsx)(Pn,{interaction:Ht,onChange:So,currentWidgetKey:nn}),Ht.interactionType===Ao&&(0,t.jsx)(co,{interaction:Ht,onChange:So,currentWidgetKey:nn,adaptTopPosition:Rn}),Ht.interactionType===uo&&(0,t.jsx)(Cn,{interaction:Ht,onChange:So,currentWidgetKey:nn}),Ht.interactionType===Jo&&(0,t.jsx)(hn,{link:Ht,currentCanvas:en,isEditingCombo:pn,onChange:So,currentWidgetKey:nn,adaptTopPosition:Rn}),Ht.interactionType===$o&&(0,t.jsx)(Zt,{link:Ht,currentCanvas:en,isEditingCombo:pn,onChange:So,currentWidgetKey:nn,adaptTopPosition:Rn}),Ht.interactionType===po&&(0,t.jsx)(Qt,{link:Ht,onChange:So,currentWidgetKey:nn,adaptTopPosition:Rn})]})}),(0,t.jsx)(go.fl,{})]})})},55171:(Fe,ee,e)=>{"use strict";e.d(ee,{Z:()=>D});var n=e(38502),r=e(39e3),c=e(53732),o=e.n(c),w=e(6843),u=e(88463);const d=(W,F)=>{const[B,Y]=(0,n.useState)(F);return{activeIndex:B,tabList:W,goToTab:Y}};var y=e(89208),h=e(45709),i=e(9911),f=e(21066),p=e(17307),s=e(93257),l=e(83199),C=e(67787);const v=C.Ay.div.withConfig({displayName:"style__StyledCommercialLabel",componentId:"sc-16bepnv-0"})(["display:flex;&.cloud{color:",";border:1px solid ",";justify-content:center;width:30px;height:18px;border-radius:4px;margin-left:6px;font-size:11px;line-height:16px;}&.commercial{margin-left:6px;path{fill:"," !important;}}"],W=>W.theme.color_text_link_normal,W=>W.theme.color_text_link_normal,W=>W.theme.color_warning);var a=e(72214);const P=W=>{if(W==="normal")return null;const F=W==="commercial"?"\u82E5\u4F7F\u7528\u5546\u7528\u5B57\u4F53\uFF0C\n\u8BF7\u8054\u7CFB\u5B57\u5E93\u5382\u5546\u8D2D\u4E70\u6388\u6743":"\u4E0A\u4F20\u7684\u5B57\u4F53\u4EC5\u9650\u4E2A\u4EBA\u4F7F\u7528\uFF0C\n\u8BF7\u786E\u4FDD\u60A8\u62E5\u6709\u76F8\u5E94\u6388\u6743",B=W==="commercial"?"\u5546\u7528":"\u4E91\u7AEF";return(0,a.jsx)(l.A,{content:F,direction:"down",tipClassName:"fontPaidTipsContainer",distance2:4,children:(0,a.jsx)(v,{className:W,children:W==="cloud"?(0,a.jsx)("div",{className:"font-tip-label",children:B}):(0,a.jsx)(p.C,{size:16,isColorPure:!0,name:"font/commercial"})})})};var b=e(99203);const g=(0,a.jsx)(p.C,{name:"font/panel/select",className:"selected-icon"}),S=W=>{let{fontFamily:F,fontWeight:B,wbiVersion:Y,fontList:X,fontStyle:G,clickFF:Z,clickFW:J,hoverFF:te,hoverFW:he,height:de,isSearch:Se,clearOverrideAttr:xe}=W;const[be,ie]=(0,n.useState)(null),oe=(0,i.mz)(F);return(0,a.jsx)(w.NV,{height:de,position:{top:0,left:0},className:"font-family-menu",isSearch:Se,children:X.map((ue,ve)=>{let re=!1;const fe=ue.type==="cloud";oe?fe&&(re=!!Object.values(ue.weightExtKeyKV).find(pe=>pe===F)):fe||(re=ue.value===F);const we=(0,h.KI)(ue,ue.typeList),Te=(0,b.Ls)(B,we,G),Ie=ue.type!=="cloud"?"regular":(0,b.dv)(ue).fw,le=ue.typeUrlKV[Ie]||ue.typeUrlKV[Object.keys(ue.typeUrlKV)[0]],me={fontFamily:le?void 0:ue.value},Pe=pe=>{const ke=(We,Ee)=>{try{const Ce=Ee.getElementsByClassName("is-svg");if((Ce==null?void 0:Ce.length)>0){var Ae;if((((Ae=[...Ce][0])==null||(Ae=Ae.childNodes[0])==null?void 0:Ae.getBoundingClientRect().width)||0)>164)return!0}return!1}catch(Ce){return!1}};return(0,a.jsx)(s.A,{content:ue.label,onChangeTooltipsHover:(We,Ee)=>Ee==null?void 0:Ee(),isShowTipsByTarget:ke,children:pe},ve)};return(0,a.jsx)("div",{style:me,className:o()("font-family-level",{"font-active":re}),children:(0,a.jsx)(f.aM,{text:ue.label,dataIndex:ve,className:be===ue&&ue.type!=="normal"?"hovered":void 0,onClick:()=>{Z(ue)},onMouseEnter:()=>{ie(ue),te(ue)},onMouseLeave:pe=>{ie(null),xe()},subMenuDirection:"left",subMenuLeftOffset:700,subMenuTopOffset:-426,icon:re?g:null,isAiry:!0,fontUrl:le,tooltipComponent:P(be===ue?ue.type:"normal"),tooltipWrapper:Pe,children:we.length>1&&we.map((pe,ke)=>{let We=re&&pe.value===Te;return oe&&fe&&(ue.isVF?We=pe.value===Te:Object.keys(ue.strangeExtKeyWeightKV).length===Object.keys(ue.weightExtKeyKV).length&&(We=pe.extKey===F)),(0,a.jsx)(f.aM,{usePlainText:!0,dataIndex:ke,text:pe.label,className:"font-weight-item-wrapper",icon:We?g:null,onClick:()=>{J(ue,pe)},onMouseEnter:()=>he(ue,pe),onMouseLeave:xe,fontUrl:ue.typeUrlKV[pe.value]},ue.label+pe.label)})},ue.label)},ve)})})},t=()=>(0,a.jsxs)(w.E4,{children:[(0,a.jsx)("img",{src:"/mb-proto2/images/font/font_empty.png"}),(0,a.jsx)("span",{children:"\u6CA1\u6709\u5339\u914D\u7684\u7ED3\u679C"})]});var _=e(25234),I=e(79150),k=e(73662),j=e(70933),z=e(18381),K=e(12246),$=e(91363),A=e(79209);const E=W=>{const F=(0,z.d4)(j.HW),B=(0,z.d4)(j.wA);return(0,A._S)(F,B)?(0,a.jsx)(O,{user:F,org:B,setIsOpenListPanel:W.setIsOpenListPanel}):(0,a.jsxs)(w.MB,{children:[W.fontList.length===0?(0,a.jsxs)("div",{className:"empty-font-container",children:[(0,a.jsx)("div",{className:"upload-image-container",children:(0,a.jsx)("img",{src:"/mb-proto2/images/font/font_upload.png"})}),(0,a.jsx)("div",{className:"sub-title tip1",children:"\u8BF7\u70B9\u51FB\u4E0B\u65B9\u6309\u94AE\u4EE5\u4E0A\u4F20\u5B57\u4F53"}),(0,a.jsx)("div",{className:"sub-title",children:"\uFF08\u4E0A\u4F20\u7684\u5B57\u4F53\u4EC5\u9650\u4E2A\u4EBA\u4F7F\u7528\uFF0C\u8BF7\u786E\u4FDD\u60A8\u62E5\u6709\u76F8\u5E94\u6388\u6743\uFF09"})]}):(0,a.jsx)(S,{height:292,...W}),(0,a.jsx)(U,{setIsOpenListPanel:W.setIsOpenListPanel})]})},U=W=>{let{setIsOpenListPanel:F,noSetting:B=!1}=W;const Y=(0,z.d4)(j.HW),X=(0,z.d4)(j.wA),G=(0,A._S)(Y,X),Z=(0,z.wA)(),J=()=>{k.y.dispatchState({fontModalState:"cloud-manager",isShowFontModal:!0,isShowMissFontModal:!1},Z),Z({type:"preference:update:state",payload:{showPreference:!1}}),F(!1),(0,$.rr)({operation_type:"\u7BA1\u7406\u5B57\u4F53"})},te=()=>{Z({type:k.y.entryKey["font:manage:to:upload"]}),F(!1),(0,$.rr)({operation_type:B?"\u4E0A\u4F20\u5B57\u4F53-\u641C\u7D22\u5B57\u4F53":"\u4E0A\u4F20\u5B57\u4F53-\u5B57\u4F53\u9009\u62E9\u9762\u677F"})},he=()=>{const de=X?"\u7F16\u8F91\u533A-v8_\u56E2\u961F_\u4E0A\u4F20\u5B57\u4F53":"\u7F16\u8F91\u533A-V8_\u4E2A\u4EBA_\u4E0A\u4F20\u5B57\u4F53",Se=X?"workspace-v8_org_font_upload":"workspace-v8_solo_font_upload",xe=(0,K.l)(X,de,Se);MB.global.popupHelper.chargeAsync(xe),F(!1)};return(0,a.jsxs)(w.Xh,{className:"cloud-font-footer",noSetting:B,children:[G?(0,a.jsx)(_.tA,{className:"payme-upload-btn",children:X?Q:H,onClick:he}):(0,a.jsx)(_.tA,{className:"upload-btn",children:(0,a.jsx)("div",{className:"payme-font",children:"\u4E0A\u4F20\u5B57\u4F53"}),onClick:te}),B?null:(0,a.jsx)(l.A,{direction:"down",distance2:4,content:"\u7BA1\u7406\u5B57\u4F53",children:(0,a.jsx)(I.A,{onClick:J,name:"common/font/setting"})})]})},O=W=>{let{user:F,org:B,setIsOpenListPanel:Y}=W;const X=()=>{const G=B?"\u7F16\u8F91\u533A-v8_\u56E2\u961F_\u4E0A\u4F20\u5B57\u4F53":"\u7F16\u8F91\u533A-V8_\u4E2A\u4EBA_\u4E0A\u4F20\u5B57\u4F53",Z=B?"workspace-v8_org_font_upload":"workspace-v8_solo_font_upload",J=(0,K.l)(B,G,Z);MB.global.popupHelper.chargeAsync(J),Y(!1)};return(0,a.jsxs)(w.MB,{children:[(0,a.jsxs)("div",{className:"empty-font-container",children:[(0,a.jsx)("div",{className:"upload-image-container",children:(0,a.jsx)("img",{src:"/mb-proto2/images/font/font_upload.png"})}),(0,a.jsx)("div",{className:"sub-title tip1",children:"\u4E0A\u4F20\u5B57\u4F53\u4E3A\u4ED8\u8D39\u7A7A\u95F4\u4E13\u4EAB\u529F\u80FD"}),(0,a.jsx)("div",{onClick:X,className:"sub-title blue",children:"\u7ACB\u5373\u5347\u7EA7"})]}),(0,a.jsx)(w.Xh,{noSetting:!0,className:"cloud-font-footer",children:(0,a.jsx)(_.tA,{className:"payme-upload-btn",children:B?Q:H,onClick:X})})]})},H=(0,a.jsxs)("div",{className:"payme-font",children:[(0,a.jsxs)("svg",{width:"16",height:"17",fill:"none",viewBox:"0 0 16 17",children:[(0,a.jsx)("path",{fill:"#FEC345",d:"m14.62 5.83-2.16-2.9a1 1 0 0 0-.4-.32 1 1 0 0 0-.53-.12h-6.9a1.2 1.2 0 0 0-.93.45L1.54 5.83a1 1 0 0 0 .06 1.3l5.61 6.23a1.2 1.2 0 0 0 1.74 0l5.61-6.22q.25-.28.27-.65a1 1 0 0 0-.2-.66"}),(0,a.jsx)("path",{fill:"url(#paint0_linear_7048_158037)",fillRule:"evenodd",d:"m13.96 6.33-2.16-2.9-.1-.07a.4.4 0 0 0-.17-.04h-6.9l-.15.03h-.01l-.1.1L2.2 6.32a.2.2 0 0 0 .02.24l5.61 6.22q.05.05.1.08l.15.03q.08 0 .15-.03l.1-.08 5.61-6.2v-.01a.2.2 0 0 0 .06-.14zM3.7 2.93l-2.16 2.9Zm-2.16 2.9q-.22.3-.2.66Zm-.2.66q.01.37.26.65Z",clipRule:"evenodd"}),(0,a.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M11.93 6.38 8.7 9.64a.8.8 0 0 1-.57.24.8.8 0 0 1-.61-.24L4.27 6.38l.18-.13a1.7 1.7 0 0 1 2.14.19L8.1 7.95l1.5-1.51a1.7 1.7 0 0 1 2.15-.2z",clipRule:"evenodd"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"paint0_linear_7048_158037",x1:"8.08",x2:"8.08",y1:"2.49",y2:"13.74",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"#FEC345"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#F1A400"})]})})]}),(0,a.jsx)("span",{children:"\u4E0A\u4F20\u5B57\u4F53"})]}),Q=(0,a.jsxs)("div",{className:"payme-font",children:[(0,a.jsxs)("svg",{width:"16",height:"17",fill:"none",viewBox:"0 0 16 17",children:[(0,a.jsx)("path",{fill:"#E1B866",d:"m14.62 6.56-2.16-2.88a1 1 0 0 0-.4-.34 1 1 0 0 0-.53-.12h-6.9a1.2 1.2 0 0 0-.93.46L1.54 6.56a1 1 0 0 0 .06 1.31l5.61 6.22a1.2 1.2 0 0 0 1.74 0l5.61-6.22q.25-.27.27-.64a1 1 0 0 0-.2-.67"}),(0,a.jsx)("path",{fill:"url(#paint0_linear_7048_158042)",fillRule:"evenodd",d:"M13.96 7.06 11.8 4.18l-.1-.09a.4.4 0 0 0-.17-.03h-6.9q-.07 0-.15.03h-.01l-.1.09L2.2 7.07a.2.2 0 0 0 .02.24l5.61 6.22.1.08.15.03.15-.03.1-.08 5.61-6.21a.2.2 0 0 0 .06-.14l-.04-.1zM3.7 3.68 1.54 6.56ZM1.54 6.56q-.22.3-.2.67Zm-.2.67q.01.37.26.64Z",clipRule:"evenodd"}),(0,a.jsx)("path",{fill:"#fff",fillRule:"evenodd",d:"M11.93 7.15 8.7 10.41a.8.8 0 0 1-.57.24.8.8 0 0 1-.61-.23L4.27 7.15l.18-.12a1.7 1.7 0 0 1 2.14.18L8.1 8.73 9.6 7.2a1.7 1.7 0 0 1 2.15-.19z",clipRule:"evenodd"}),(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"paint0_linear_7048_158042",x1:"8.08",x2:"8.08",y1:"3.22",y2:"14.47",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"#E1B866"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#C49A47"})]})})]}),(0,a.jsx)("span",{children:"\u4E0A\u4F20\u5B57\u4F53"})]});var N=e(48028),L=e(15515);const V=[{key:"all",label:"\u5168\u90E8"},{key:"official",label:"\u5B98\u65B9"},{key:"cloud",label:"\u4E91\u7AEF"}];let M=0;const D=W=>{let{position:F,fontFamily:B,fontWeight:Y,fontStyle:X,wbiVersion:G,clickFF:Z,clickFW:J,hoverFF:te,hoverFW:he,handleClickOutSideToClose:de,fontListOriginal:Se,clearOverrideAttr:xe,setIsOpenListPanel:be}=W;const{activeIndex:ie,tabList:oe,goToTab:ue}=d(V,M),[ve,re]=(0,n.useState)(Se),[fe,we]=(0,n.useState)(!1),[Te,Ie]=(0,n.useState)(""),le=Ge=>{ue(Ge),M=Ge,Ge===2&&!ke&&(We(!0),(0,L.a0)("is-show-CloudFont-signal",!0,N.qW.Boolean))},me=(0,n.useCallback)(()=>{re(ie===0?Se:ie===1?Se.filter(Ge=>Ge.type!=="cloud"):Se.filter(Ge=>Ge.type==="cloud"))},[ie]),Pe=(0,n.useCallback)(Ge=>{const Xe=Ge.toUpperCase();re(Se.filter(Ue=>Ue.label.toUpperCase().includes(Xe))),we(!0)},[]),pe=(0,n.useCallback)(Ge=>{Ie(Ge)},[]),[ke,We]=(0,n.useState)((0,N.Yt)("is-show-CloudFont-signal",!1,N.qW.Boolean)),Ee=(0,n.useCallback)(()=>{me(),we(!1),Ie("")},[me,Ie]);(0,n.useEffect)(()=>{me()},[me]),(0,n.useEffect)(()=>{setTimeout(()=>{var Ge;const Xe=((Ge=document.querySelector("#font-list-panel .font-active"))==null?void 0:Ge.offsetTop)||0,Ue=document.querySelector("#font-list-panel .font-content ul");Ue&&(Ue.scrollTop=Xe)},4)},[ie]);const Ae=(0,n.useRef)(null);(0,n.useEffect)(()=>{const Ge=Ue=>{Ue.ctrlKey===!0&&Ue.preventDefault()},Xe=Ae.current;if(Xe)return Xe.addEventListener("wheel",Ge),()=>{Xe.removeEventListener("wheel",Ge)}},[]);const Ce=()=>{(0,$.rr)({operation_type:"\u641C\u7D22\u5B57\u4F53"})},_e={fontFamily:B,fontWeight:Y,wbiVersion:G,fontList:ve,fontStyle:X,clickFF:Z,clickFW:J,hoverFF:te,hoverFW:he,clearOverrideAttr:xe};return(0,a.jsxs)(w.ut,{position:F,id:"font-list-panel",ref:Ae,children:[(0,a.jsx)("div",{className:"searchbar-container",children:(0,a.jsx)(u.A,{value:Te,className:"search-bar",placeholder:"\u641C\u7D22\u5B57\u4F53",onChange:pe,onSearch:Pe,onClear:Ee,wait:200,canClear:!1,onFocus:Ce,renderRightNode:()=>fe?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(p.C,{size:18,name:"common/font/exit",className:"font-search-exit",onClick:Ee})}):null})}),!fe&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.A,{className:"font-nav",onTabChange:le,activeIndex:ie,layoutV9:"recommend",children:oe.map(Ge=>{let{key:Xe,...Ue}=Ge;return(0,a.jsx)(y.n,{...Ue,className:o()({background_active:oe.length>1,"cloud-unread":Xe==="cloud"&&!ke})},Xe)})}),(0,a.jsx)("div",{className:"placeholder"})]}),(0,a.jsx)("div",{className:"font-content",children:fe?ve.length===0?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t,{}),(0,a.jsx)(U,{setIsOpenListPanel:be,noSetting:!0})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(S,{..._e,isSearch:!0,height:329}),(0,a.jsx)(U,{setIsOpenListPanel:be,noSetting:!0})]}):ie===2?(0,a.jsx)(E,{..._e,setIsOpenListPanel:be}):(0,a.jsx)(S,{..._e})}),(0,a.jsx)(r.A,{target:document,onMouseDown:(0,r.t)(de,{capture:!0})})]})}},55203:(Fe,ee,e)=>{"use strict";e.d(ee,{L:()=>$});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),w=e(4648),u=e(15186),d=e(94585),y=e.n(d),h=e(45709),i=e(34677),f=e(9911),p=e(85449),s=e(73662),l=e(99203),C=e(33421),v=e(31781),a=e(17307),P=e(79869),b=e(72214);const g=A=>[{label:(0,b.jsx)(a.C,{name:"setting_panel/font/font_bold"}),icon:"setting_panel/font/font_bold",value:"bold",title:A.TextToolbar.style1},{label:(0,b.jsx)(a.C,{name:"setting_panel/font/font_italic"}),icon:"setting_panel/font/font_italic",value:"italic",title:A.TextToolbar.style2},{label:(0,b.jsx)(a.C,{name:"setting_panel/font/font_underline"}),icon:"setting_panel/font/font_underline",value:"underline",title:A.TextToolbar.style3},{label:(0,b.jsx)(a.C,{name:"setting_panel/font/font_line_through"}),icon:"setting_panel/font/font_line_through",value:"line-through",title:A.TextToolbar.style4}],S=A=>g(A).map(E=>["underline","line-through"].includes(E.value)?{...E,disabled:!0}:E),t=(A,E,U)=>{const O=[];return A===1&&O.push("bold"),E==="italic"&&O.push("italic"),typeof U=="string"&&(U.includes("underline")&&O.push("underline"),U.includes("line-through")&&O.push("line-through")),O},_=(0,P.V)(t);var I=e(67787);const k=I.Ay.div.withConfig({displayName:"style__StyledTextFontContainer",componentId:"sc-1hu5dtb-0"})(["flex-direction:column;align-items:flex-start;.color-btn-has-hex-input{width:100%;.color-btn-wrap.is-used-style-ref{max-width:unset;}&:hover{.color-btn-wrap.is-used-style-ref{max-width:unset;}}}.font-size-type-wrap{display:flex;align-items:center;justify-content:space-between;width:100%;}.radio-line{color:",";&.disabled{background:transparent;}.check-line{&.disabled{background-color:transparent;cursor:not-allowed;&:hover{background:transparent !important;}.svg-icon{color:",";}}}}"],A=>A.theme.color_text_L2,A=>A.theme.color_text_disabled);var j=e(76199),z=e(61675);const{w4:K}=i;class $ extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleChange",(E,U,O,H)=>{const{onChange:Q,dispatch:N,supAttr:L="textV0",isRichText:V,isTableCell:M,selections:D}=this.props;let W=E;if(U==="fontSize"){W=parseInt(E),Q({value:W,attr:U,supAttr:L,refVar:O,dispatch:N,selections:D});return}(V&&U==="textColor"||M&&U==="color")&&(W=(0,u.t0)(E)),Q({value:W,attr:U,supAttr:L,refVar:O,dispatch:N,compressible:H,selections:D,fromUI:U==="fontWeight"?"bold":U})}),(0,n.A)(this,"handleBoldChange",async()=>{const{boldType:E,boldAttr:U,fontFamily:O,fontStyle:H}=this.props,Q=O?(0,f.mz)(O):!1;if(O!==void 0&&!K.includes(O)&&(0,h.Sq)().find(V=>V.family===O&&V.typeList.find(M=>M==="bold")))try{Q||await new(y())(O,{weight:700}).load()}catch(V){}const N=E===0?"bold":"regular",L=O?sdkStore.getHotItem(O):void 0;if(Q&&L){const M=s.y.query.getCloudFontLocalList((0,p.dP)()).find(F=>F.family===L.hotAttr.extKV.ff);if(!M)return;const D=H==="italic"?N+"Italic":N,W=M.typeList.find(F=>F===D);if(W)this.handleChange(M.weightExtKeyKV[W],"fontFamily"),this.handleChange(N,"fontWeight");else if(M.weightExtKeyKV[N])this.handleChange(M.weightExtKeyKV[N],"fontFamily"),this.handleChange(N,"fontWeight");else if(D.includes("bold"))this.handleChange(N,"fontWeight");else{const F=(0,l.dv)(M);this.handleChange(F.ff,"fontFamily"),this.handleChange(F.fw,"fontWeight")}}else U==="boldType"&&(E===0?this.handleChange("bold","fontWeight"):this.handleChange("regular","fontWeight"));this.handleChange(!!(1-E),"bold")}),(0,n.A)(this,"handleFontStyleChange",async E=>{const{fontStyleAttr:U="italic",fontFamily:O,fontWeight:H,fontStyle:Q}=this.props,N=O?(0,f.mz)(O):!1;if(O!==void 0&&!K.includes(O)&&(0,h.Sq)().find(M=>M.family===O&&M.typeList.find(D=>D===H+"Italic")))try{N||await new(y())(O,{weight:(0,h._y)(H,!1),style:"italic"}).load()}catch(M){}const L=Q!==E?"italic":"normal",V=O?sdkStore.getHotItem(O):void 0;if(N&&V){const D=s.y.query.getCloudFontLocalList((0,p.dP)()).find(B=>B.family===V.hotAttr.extKV.ff);if(!D)return;const W=L==="italic"?H+"Italic":H,F=D.typeList.find(B=>B===W);F&&this.handleChange(D.weightExtKeyKV[F],"fontFamily")}U==="fontStyle"?this.handleChange(L,U):this.handleChange(Q!==E,U)}),(0,n.A)(this,"handleDecorationChange",(E,U)=>{const{isRichText:O,textDecoration:H}=this.props;if(O){this.handleChange(!H.includes(E),U);return}const Q=this.props.textDecoration;this.handleChange(Q!==E?E:"normal","textDecoration")}),(0,n.A)(this,"handleFontDirectionChange",E=>{const{onFontDirectionChange:U,dispatch:O}=this.props;U==null||U({fontDirection:E,dispatch:O})}),(0,n.A)(this,"handleTextStyleChange",async E=>{const U=E.currentTarget.dataset.value;switch(U){case"bold":{this.handleBoldChange(),(0,v.yt)("\u52A0\u7C97");break}case"italic":{this.handleFontStyleChange(U),(0,v.yt)("\u503E\u659C");break}case"underline":{this.handleDecorationChange(U,"underline"),(0,v.yt)("\u4E0B\u5212\u7EBF");break}case"line-through":{this.handleDecorationChange(U,"line-through"),(0,v.yt)("\u5220\u9664\u7EBF");break}default:return null}})}render(){const{textColor:E,isTextEditing:U,fontSize:O,fontStyle:H,boldType:Q,textDecoration:N,newOverOld:L,isDisabledFontRadioLine:V,colorAttr:M="textColor",canShowBIUS:D=!0,hasMissFontHi:W,cloudFontLocalList:F,fontFamily:B,refVars:Y,canOpenLib:X,attrPanel:G,supAttr:Z,canAddVar:J,canCreateColorRef:te,refStyles:he,isShowAddVarIcon:de,dropdownProps:Se,onPosition:xe,dispatch:be}=this.props,ie=_(Q,H,N),oe=V?S(I18N):g(I18N);let ue=!1,ve=!1;if(!W&&B&&!(0,C.ph)(B)&&B){let re;if((0,f.mz)(B)){const Te=sdkStore.getHotItem(B);if(Te){const Ie=Te.hotAttr.extKV.ff;re=F.find(le=>le.family===Ie)}}else re=F.find(Te=>Te.family===B);const{isAllWeightOverBold:fe,isAllWeightItalic:we}=(0,l.rB)(re);ue=fe,ve=we}if(ue){const re=oe.find(fe=>fe.value==="bold");re&&(re.disabled=!0)}if(ve){const re=oe.find(fe=>fe.value==="italic");re&&(re.disabled=!0)}return(0,b.jsxs)(k,{className:"font-group",children:[(0,b.jsx)(w.R_,{mode:"input",className:o()(w.EY,{disabled:W}),attr:M,supAttr:Z,attrPanel:G,color:E,onChange:this.handleChange,disabled:!!W,canOpenLib:U?!1:X,canCreateColorRef:U?!1:te,refStyles:he,onPosition:xe}),(0,b.jsxs)("div",{className:"font-size-type-wrap height-32",children:[(0,b.jsx)(j.A,{disabled:W||!L&&U,fontSize:O,refVar:Y==null?void 0:Y.fontSize,canAddVar:J,isShowAddVarIcon:de,dropdownProps:Se,handleChange:this.handleChange,dispatch:be}),D&&(0,b.jsx)(z.A,{disabled:W,isToolTip:!0,options:oe,className:"font-style-type",value:ie,handleChange:this.handleTextStyleChange})]})]})}}(0,n.A)($,"defaultProps",{canOpenLib:!0,canCreateColorRef:!0,canAddVar:!0,isShowAddVarIcon:!0})},55584:(Fe,ee,e)=>{"use strict";e.d(ee,{vd:()=>_,ag:()=>I,DL:()=>t,Ld:()=>k});var n=e(28068);if(e.j!=477)var r=e(70302);var c=e(86493),o=e(54216),w=e(69815),u=e(45709);const d=j=>{let{arrayLength:z,excludedIntervals:K,appendStyle:$}=j;const A=[];let E=0;K.sort((U,O)=>U.offset-O.offset);for(const U of K)U.offset>E&&A.push({offset:E,length:U.offset-E,style:$}),E=U.offset+U.length;return E<z&&A.push({offset:E,length:z-E,style:$}),A},y=j=>{let{arrayLength:z,originalISR:K,richTextV1:$}=j;const E="fontsize-"+$.fontSize;return d({arrayLength:z,excludedIntervals:K.filter(U=>U.style.includes("fontsize")),appendStyle:E})},h=j=>{let{arrayLength:z,originalISR:K,richTextV1:$}=j;const E="color-"+$.textColor;return d({arrayLength:z,excludedIntervals:K.filter(U=>U.style.includes("color")),appendStyle:E})},i=j=>{let{arrayLength:z,originalISR:K,richTextV1:$}=j;const E="fontfamily-"+$.fontFamily;return d({arrayLength:z,excludedIntervals:K.filter(U=>U.style.includes("fontfamily")),appendStyle:E})},f=j=>{let{arrayLength:z,originalISR:K,richTextV1:$}=j;const E="letterspacing-"+$.letterSpacing+"px";return d({arrayLength:z,excludedIntervals:K.filter(U=>U.style.includes("letterspacing")),appendStyle:E})},p=j=>{let{arrayLength:z,originalISR:K,richTextV1:$}=j;const E="lineheight-"+$.lineHeight+"px";return d({arrayLength:z,excludedIntervals:K.filter(U=>U.style.includes("lineheight")),appendStyle:E})},s=j=>{let{arrayLength:z,originalISR:K,richTextV1:$}=j;const E="fontweight-"+(0,u._y)($.fontWeight,$.bold);return d({arrayLength:z,excludedIntervals:K.filter(U=>U.style.includes("fontweight")),appendStyle:E})},l=j=>{let{arrayLength:z,originalISR:K,richTextV1:$}=j;const A="bold".toUpperCase();return $.bold?d({arrayLength:z,excludedIntervals:K.filter(E=>E.style.includes(A)),appendStyle:A}):[]},C=j=>{let{arrayLength:z,originalISR:K,richTextV1:$}=j;const A="italic".toUpperCase();return $.italic?d({arrayLength:z,excludedIntervals:K.filter(E=>E.style.includes(A)),appendStyle:A}):[]},v=j=>{let{arrayLength:z,originalISR:K,richTextV1:$}=j;const A="underline".toUpperCase();return $.underline?d({arrayLength:z,excludedIntervals:K.filter(E=>E.style.includes(A)),appendStyle:A}):[]},a=j=>{let{arrayLength:z,originalISR:K,richTextV1:$}=j;const A="strikethrough".toUpperCase();return $.strikethrough?d({arrayLength:z,excludedIntervals:K.filter(E=>E.style.includes(A)),appendStyle:A}):[]},P=j=>{let{richTextV1:z,textV1:K}=j;const $={};for(const[A,E]of Object.entries(K.blocks)){const U=E.text.length,H=E.inlineStyleRanges.map(Z=>Z.style==="BOLD"?{...Z,style:"fontweight-700"}:Z),Q=y({arrayLength:U,originalISR:H,richTextV1:z}),N=h({arrayLength:U,originalISR:H,richTextV1:z}),L=i({arrayLength:U,originalISR:H,richTextV1:z}),V=f({arrayLength:U,originalISR:H,richTextV1:z}),M=p({arrayLength:U,originalISR:H,richTextV1:z}),D=s({arrayLength:U,originalISR:H,richTextV1:z}),W=l({arrayLength:U,originalISR:H,richTextV1:z}),F=C({arrayLength:U,originalISR:H,richTextV1:z}),B=v({arrayLength:U,originalISR:H,richTextV1:z}),Y=a({arrayLength:U,originalISR:H,richTextV1:z}),X=[...H,...Q,...N,...L,...V,...M,...D,...W,...F,...B,...Y],G={...E,inlineStyleRanges:X};$[A]=G}return $};var b=e(41815),g=e(43838);const S={type:"html"},t=j=>{let{html:z,editorState:K,inlineProcessType:$,componentType:A}=j;if(!z)return K;const E=[...K.getCurrentInlineStyle()],U=(0,b.A)({html:z,componentType:A,inlineProcessType:$}),O=K.getSelection();let H=K.getCurrentContent();H=n.e6.replaceWithFragment(H,K.getSelection(),(0,r.B8)(U.contentBlocks));let Q=n.$t.push(K,H,"insert-characters");const N=Q.getSelection(),L=new n.wc({anchorKey:O.anchorKey,anchorOffset:O.anchorOffset,focusKey:N.focusKey,focusOffset:N.focusOffset,isBackward:!1,hasFocus:!1});$!=="total"&&E.forEach(M=>{M&&(H=n.e6.applyInlineStyle(H,L,M))});const V=new n.wc({anchorKey:N.anchorKey,anchorOffset:N.anchorOffset,focusKey:N.focusKey,focusOffset:N.focusOffset,isBackward:!1,hasFocus:!1});return Q=n.$t.push(Q,H,"insert-characters"),n.$t.forceSelection(Q,V)},_=j=>{var z,K;let{editorState:$,richTextV1:A,w:E,h:U,isRecordAttr:O,refStyleText:H}=j,Q=$.getCurrentContent(),N=[];if(A){N=[...Q.getBlockMap().keys()];const fe=(0,n.dM)($.getCurrentContent()),we=(0,c.qn)(fe),Te=P({richTextV1:A,textV1:we});we.blocks=Te,Q=(0,n.Ot)((0,c.mx)(we))}const L=$.getSelection(),V=Q.getBlockMap(),M=[...V.keys()],D=N.findIndex(fe=>fe===L.getStartKey()),W=D===-1?L.getStartKey():M[D],F=V.toJS()[W].type,B=L.getStartOffset(),Y=N.findIndex(fe=>fe===L.getEndKey()),X=Y===-1?L.getEndKey():M[Y],G=L.getEndOffset(),Z=M.findIndex(fe=>fe===W),J=M.findIndex(fe=>fe===X),te=new n.wc({anchorKey:V.first().key,anchorOffset:0,focusKey:W,focusOffset:B,isBackward:!1,hasFocus:!1}),he=n.e6.removeRange(Q,te),de=J-Z,Se=he.getBlockMap(),xe=Se.toArray(),be=W===X?G-B:G,ie=new n.wc({anchorKey:(z=(K=xe[de])==null?void 0:K.key)!=null?z:Se.last().key,anchorOffset:be,focusKey:Se.last().key,focusOffset:Se.last().text.length,isBackward:!1,hasFocus:!1}),oe=n.e6.removeRange(he,ie),ue=(0,c.qn)((0,n.dM)(oe)),ve=(0,c.mx)(ue);ve.blocks[0].type=F;let re=(0,o.A)({editorContent:ve,widgetKey:"",isForCopy:!0,isRecordAttr:O});return re+=g.ze,A&&E&&U&&(re+="<meta data-mb-richdata="+JSON.stringify({richData:{richTextV1:A,w:E,h:U}})+">"),H&&(re+="<meta data-ref-style-text="+H+">"),re},I=j=>{let{richTextV1:z,w:K,h:$}=j;const{_getEditorState:A,_setEditorState:E}=(0,w.DT)(),U=A(),O=_({editorState:U,richTextV1:z,w:K,h:$}),H=U.getSelection(),Q=U.getCurrentContent(),N=n.e6.removeRange(Q,H);return E(n.$t.push(U,N,"remove-range")),O},k=j=>{let{html:z,isClearStyle:K}=j;const $=(0,b.A)({html:z,componentType:1}),A=n.z6.createFromBlockArray($.contentBlocks,$.entityMap),E=n.$t.createWithContent(A),U=(0,n.dM)(E.getCurrentContent());return(0,c.qn)(U,K)}},55802:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>r});var n=e(67787);const r=n.Ay.aside.withConfig({displayName:"DraggablePanel",componentId:"sc-y06gsp-0"})(["position:absolute;width:210px;background:",";border-radius:2px;box-shadow:",";overflow:hidden;border:1px solid ",";& > header{height:36px;padding-left:15px;padding-right:5px;display:flex;justify-content:space-between;align-items:center;background:",';font-size:12px;&[type="draggable"]{cursor:move;}.title{color:',";pointer-events:none;}.header-buttons{display:flex;.icon{width:20px;height:24px;font-size:12px;display:flex;justify-content:center;align-items:center;color:",";cursor:pointer;.times-icon{width:10px;}&:hover{color:",";.times-icon{color:",";}}}}}"],c=>c.theme.color_bg_white,c=>c.theme.shadow_1,c=>c.theme.color_bg_canvas,c=>c.theme.color_btn_secondary_active,c=>c.theme.color_text_L2,c=>c.theme.color_text_L3,c=>c.theme.color_text_L2,c=>c.theme.color_text_L2)},55914:(Fe,ee,e)=>{"use strict";e.d(ee,{$:()=>n});function n(r){return r.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}},56056:(Fe,ee,e)=>{"use strict";e.d(ee,{p:()=>l,h:()=>v});var n=e(38502),r=e(5649),c=e(67787),o=e(35719);const w=c.Ay.section.withConfig({displayName:"style__StyledTableCellInfo",componentId:"sc-1k9n6fl-0"})([".general-line{border-top:1px solid ",";padding:0px 10px 0 16px;height:48px;align-items:center;&.tableCellWH{display:flex;padding:0 8px;border-top:none;label{&:first-child{margin-right:10px;}}}&.colorBtnWarp{display:flex;",";[type=color-btn]{margin-left:4px;}}}"],a=>a.theme.color_bg_border_01,o.B3);var u=e(4648),d=e(15186),y=e(89002),h=e(72214);const i=a=>{let{width:P,height:b,background:g,isShowMultipleWidth:S,isShowMultipleHeight:t,placeholder:_,cellKey:I,refStyles:k,dispatch:j}=a;const z=($,A)=>{$&&j({type:"entry:table:set:cell:width:height",payload:{value:$,attr:A}})};let K=g;return Number.isNaN(Number(g))?(!g||g.split(",").length===3)&&(K="rgba(255,255,255,1)"):K=(0,d.t0)(g),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"general-line tableCellWH",children:[(0,h.jsx)(r.A,{className:"general-input step-input-width-72",title:"W",attr:"columns",value:S?void 0:P,isNotVerify:S,placeholder:_,min:y.__,onConfirm:z}),(0,h.jsx)(r.A,{className:"general-input step-input-width-72",title:"H",attr:"rows",value:t?void 0:b,isNotVerify:t,placeholder:_,min:y.__,onConfirm:z})]}),(0,h.jsxs)("div",{className:"general-line colorBtnWarp",children:[(0,h.jsx)("div",{children:I18N.SettingPanel.cellfill}),(0,h.jsx)(u.R_,{mode:"input",className:u.EY,supAttr:"cells-"+I,attr:"background",color:K,refStyles:k,onChange:($,A)=>j({type:"entry:table:set:cell:attr:new",payload:{attr:"cellBackground",value:$}})})]})]})},f=(0,n.memo)(i),p=a=>{let{children:P}=a;return(0,h.jsx)(w,{children:P})};var s=e(31569);const l=a=>{let{selectedItems:P,selectionTableCell:b}=a;const{width:g,height:S,background:t,isShowMultipleWidth:_,isShowMultipleHeight:I,placeholder:k,cellKey:j}=(0,y.Kx)(b,P[0]);return{width:g,height:S,background:t,isShowMultipleWidth:_,isShowMultipleHeight:I,placeholder:k,cellKey:j,refStyles:(0,s.i)(P,"refStyles")}},C={component:f,params:{},getter:[l],setter:{}},v=()=>[p,[C]]},56472:(Fe,ee,e)=>{"use strict";e.d(ee,{Et:()=>w,Kg:()=>c,Tn:()=>n,XB:()=>r});const n=u=>typeof u=="function",r=u=>typeof u>"u",c=u=>typeof u=="string",o=u=>typeof u=="boolean",w=u=>typeof u=="number"},56696:(Fe,ee,e)=>{"use strict";e.d(ee,{X:()=>h});var n=e(27480),r=e(30728),c=e(8281),o=e(33848),w=e(5379),u=e(20089),d=function(i){return i.Update="Update",i.Delete="Delete",i.None="None",i}(d||{});const y=i=>{let{refFromKey:f,refToKey:p,isUseWorldBound:s,isRefFromExist:l,isRefToExist:C}=i,v,a;if(l&&C){var P,b;if(((P=sdkStore.getHotItem(f))==null?void 0:P.sup)!==((b=sdkStore.getHotItem(p))==null?void 0:b.sup)){var g;const S=sdkStore.findUpHotItemList(f).map(I=>I.key),t=sdkStore.findUpHotItemList(p).map(I=>I.key),_=S.find(I=>t.includes(I));if(_&&((g=sdkStore.getHotItem(_))==null?void 0:g.hotAttr.type)===u.x.WWrap)v=sdkStore.getRelocateLocalBound(f,_),a=sdkStore.getRelocateLocalBound(f,_);else{const{x:I,y:k,w:j,h:z}=sdkStore.getHotBound(p);a=(0,o.fL)(I,k,j,z);{const{x:K,y:$,w:A,h:E}=sdkStore.getHotBound(f);v=(0,o.fL)(K,$,A,E)}}}else if(s){const{x:S,y:t,w:_,h:I}=sdkStore.getHotBound(p);a=(0,o.fL)(S,t,_,I);{const{x:k,y:j,w:z,h:K}=sdkStore.getHotBound(f);v=(0,o.fL)(k,j,z,K)}}else{const{x:S,y:t,w:_,h:I}=sdkStore.getLocalBound(p);a=(0,o.fL)(S,t,_,I);{const{x:k,y:j,w:z,h:K}=sdkStore.getLocalBound(f);v=(0,o.fL)(k,j,z,K)}}}else if(l)if(s){const{x:S,y:t,w:_,h:I}=sdkStore.getHotBound(f);v=(0,o.fL)(S,t,_,I)}else{const{x:S,y:t,w:_,h:I}=sdkStore.getLocalBound(f);v=(0,o.fL)(S,t,_,I)}else if(C)if(s){const{x:S,y:t,w:_,h:I}=sdkStore.getHotBound(p);a=(0,o.fL)(S,t,_,I)}else{const{x:S,y:t,w:_,h:I}=sdkStore.getLocalBound(p);a=(0,o.fL)(S,t,_,I)}return{fromItemRect:v,toItemRect:a}},h=function(i,f){f===void 0&&(f=!1);const{currentElbowItem:p,startPickPoint:s,endPickPoint:l,isAdjust:C,moveAnchor:v,dragCid:a,elbowKey:P,isUpdateByRef:b}=i;if(!s||!l||!p)return;const g=!1,S=!1,{x:t,y:_,key:I,direction:k}=s,{x:j,y:z,key:K,direction:$}=l,A={x:t,y:_},E={x:j,y:z},{isRefFromExist:U,isRefToExist:O}=(0,w.v)(P,I,K),{fromItemRect:H,toItemRect:Q}=y({refFromKey:I,refToKey:K,isUseWorldBound:f,isRefFromExist:U,isRefToExist:O});let N=[];const{x:L,y:V,elbow:M,w:D,h:W}=p.hotAttr,F=L-D*.5,B=V-W*.5,Y=(0,o.Ui)(r.Z.xy(F,B),M.dPathList||[]),X=[],G=[];Y.forEach((ie,oe)=>{ie.isAdjusted&&(X.push(ie),G.push(oe))});const Z=Y.length;if(X.length<2||C){const ie=(0,c.Mj)(I,k,H,A,K,$,Q,E,a?!1:S,M.elbowType==="straight",g,v,U,O);N=(0,c.rD)(ie).map(oe=>({...oe,x:Math.round(oe.x),y:Math.round(oe.y)}))}else{let ie,oe;if(v){if(v==="start"){const[ue,ve,re,fe]=Y;let we="1",Te,Ie,le;if(!ue.isAdjusted&&!ve.isAdjusted?(Te=re,le=3,Ie=fe,we="2"):ue.isAdjusted||(Te=ve,le=2,Ie=re,we="1"),oe=Y.slice(le,Y.length),b&&we==="2"){let me,Pe;ue.y===ve.y?Pe={x:ve.x,y:A.y,isAdjusted:!0}:ue.x===ve.x&&(Pe={x:A.x,y:ve.y,isAdjusted:!0}),ve.y===re.y?me={x:re.x,y:Pe.y,isAdjusted:!0}:ve.x===re.x&&(me={x:Pe.x,y:re.y,isAdjusted:!0}),ie=[A,Pe,me]}else{const me=Y[le+1],Pe=(0,c.Wz)({...A},Te,Ie,me);ie=(0,c.rD)(Pe).map(pe=>{const ke=pe;return{...pe,x:Math.round(ke.x),y:Math.round(ke.y)}}),ie[ie.length-1].isAdjusted=!0}N=ie.concat(oe)}if(v==="end"){let ue,ve,re;const[fe,we,Te,Ie]=Y.slice(-4);let le="1";if(!Ie.isAdjusted&&!Te.isAdjusted?(re=Z-4,ue=fe,ve=we,le="2"):Ie.isAdjusted||(re=Z-3,ue=we,ve=Te,le="1"),ie=Y.slice(0,re+1),b&&le==="2"){let me,Pe;Ie.y===Te.y?Pe={x:Te.x,y:E.y,isAdjusted:!0}:Ie.x===Te.x&&(Pe={x:E.x,y:Te.y,isAdjusted:!0}),Te.y===we.y?me={x:we.x,y:Pe.y,isAdjusted:!0}:Te.x===we.x&&(me={x:Pe.x,y:we.y,isAdjusted:!0}),oe=[me,Pe,E]}else{const me=Y[re-1],Pe=(0,c.hC)({...E},{...me},{...ue},{...ve});oe=(0,c.rD)(Pe).map(pe=>{const ke=pe;return{...pe,x:Math.round(ke.x),y:Math.round(ke.y)}}),oe[0].isAdjusted=!0}N=ie.concat(oe)}}}if(N.length<2)return{type:d.None,data:null};const J=n.rw.enclosing(N),te=J.w,he=J.h,de=J.x+te*.5,Se=J.y+he*.5,xe=(0,o.uK)(r.Z.xy(J.x,J.y),N),be={...p,hotAttr:{...p.hotAttr,elbow:{...p.hotAttr.elbow,fromDirection:k,toDirection:$,dPathList:xe},refToKey:K,refFromKey:I,x:de,y:Se,w:te,h:he}};return{type:d.Update,data:be}}},56849:(Fe,ee,e)=>{"use strict";e.d(ee,{Y:()=>c,v:()=>r});var n=e(67787);const r=(0,n.DU)([".border_style_select_menu{li span{display:flex !important;align-items:center;}&.is-open.WorkspaceSelectMenu{width:78px !important;.svg-icon2{svg.svg-icon{left:12px;}}.SelectOption > .Ellipsis{min-width:auto;}}}.border_width_select_menu{&.is-open.WorkspaceSelectMenu{width:66px;}}"]),c=(0,n.DU)([".arrow_type_select_menu{li span{display:flex!important;align-items:center;.svg-icon{width:24px;}}&.is-open.WorkspaceSelectMenu{width:78px;}}.arrow_type_select_menu_end{.reverse{width:24px;transform:rotate(180deg);}}"])},56907:Fe=>{"use strict";function ee(r,c,o,w,u,d,y){var h;u?(h=((d-r)*o+(y-c)*w)/u,h<0?h=0:h>1&&(h=1)):h=0;var i=r+h*o,f=c+h*w,p=d-i,s=y-f;return p*p+s*s}function e(r,c,o,w,u,d){var y=o-r,h=w-c,i=y*y+h*h;return ee(r,c,y,h,i,u,d)}function n(r,c,o,w,u,d){return Math.sqrt(e(r,c,o,w,u,d))}n.squared=e,n.squaredWithPrecalc=ee,Fe.exports=n},56938:(Fe,ee,e)=>{"use strict";e.d(ee,{s:()=>n});let n=function(r){return r.TextFontPanel="TextFontPanel",r.RichTextFontPanel="RichTextFontPanel",r.AlignPanel="AlignPanel",r.SpacingPanel="SpacingPanel",r.RichTextSpacingPanel="RichTextSpacingPanel",r.ContentBoxPanel="ContentBoxPanel",r.ChartTextFontPanel="ChartTextFontPanel",r.TableTextFontPanel="TableTextFontPanel",r.TableAlignPanel="TableAlignPanel",r.TableSpacingPanel="TableSpacingPanel",r.UsedRefTextPanel="UsedRefTextPanel",r.CanShowLibPlhPanel="CanShowLibPlhPanel",r}({})},57150:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>t});var n=e(38502),r=e(79150),c=e(87332),o=e(95549),w=e(25582),u=e.n(w),d=e(17307),y=e(66247),h=e(17573),i=e(67787);const f=i.Ay.a.withConfig({displayName:"styles__StyledOperateItem",componentId:"sc-bn5da4-0"})(["height:32px;padding:0 16px;font-size:12px;display:flex;align-items:center;color:",";position:relative;&.mac .for-others,&.windows .for-mac,&.other-os .for-mac{display:none;}.tip{margin:0 15px 0 9px;}.tip:first-child{margin-left:0;}&.var-number{.svg-icon rect{fill:",";stroke:currentColor;}}.svg-icon{width:14px;height:14px;&.common-z_forward,&.common-z_backward{color:#979797;}&.toolbar-z_front,&.common-z_forward{path{&:first-child{fill:rgba(255,255,255,0.35);}}}&.toolbar-z_back,&.common-z_backward{path{&:last-child{fill:rgba(255,255,255,0.35);}}}}.kbd-size{white-space:nowrap;margin-left:auto;kbd{color:",";display:inline-block;text-align:center;min-width:12px;}kbd:first-child{margin-left:0;}kbd:last-child{margin-right:0;}}&:not(.disabled):hover{background:",";}&.disabled{cursor:not-allowed;color:",";.icon{color:",";}}&.active{.dot{visibility:visible;}}.design-play_toolbar,.design-inspect_toolbar,.design-comment_toolbar{width:14px;height:14px;}border-radius:4px;"],_=>_.theme.color_text_L1,_=>_.theme.color_bg_white,_=>_.theme.color_text_L2,_=>_.theme.color_btn_secondary_hover,_=>_.theme.color_text_disabled01,_=>_.theme.color_text_disabled01);var p=e(53732),s=e.n(p),l=e(62118),C=e(56202),v=e(15515),a=e(72214);class P extends n.PureComponent{constructor(I){super(I),(0,o.A)(this,"handleUnreadSignal",j=>{const{isShowUnreadSignal:z,unreadSignalName:K,onClick:$}=this.props,{isShowUnreadSignalState:A}=this.state;$(j),z&&A&&(this.setState({isShowUnreadSignalState:!1}),(0,v.a0)(K,!1,v.qW.Boolean))});const k=I.unreadSignalName&&I.isShowUnreadSignal;this.state={isShowUnreadSignalState:k&&(0,v.Yt)(I.unreadSignalName,(0,h.Ds)(),v.qW.Boolean)}}render(){const{name:I,svgIconName:k,active:j,disabled:z,keyName:K,isShowUnreadSignal:$,className:A}=this.props,{isShowUnreadSignalState:E}=this.state,U=(0,C.cX)()?"mac":(0,C.uF)()?"windows":"other-os",O=l.lk[K+"_mac"],H=l.lk[K+"_win"];return(0,a.jsxs)(f,{className:s()("group-icon",A,U,{disabled:z,active:j}),onClick:this.handleUnreadSignal,children:[k&&(0,a.jsx)(d.C,{className:k.replace("/","-"),name:k,size:8}),(0,a.jsx)("span",{className:"tip",children:I}),$&&(0,a.jsx)(y.A,{on:E,className:"toolbar-feature-notice"}),(0,a.jsx)("div",{className:"for-mac kbd-size",dangerouslySetInnerHTML:{__html:O}}),(0,a.jsx)("div",{className:"for-others kbd-size",dangerouslySetInnerHTML:{__html:H}})]})}}P.propTypes={name:u().string,svgIconName:u().string,keyName:u().string,active:u().bool,disabled:u().bool,onClick:u().func,unreadSignalName:u().string,isShowUnreadSignal:u().bool,className:u().string};var b=e(78301),g=e(46953);const t=_=>{let{offsetX:I,types:k,onAddVar:j,children:z}=_;const K=(0,n.useRef)(null),$=(0,n.useMemo)(()=>k!=null&&k.length?g.DE.filter(A=>k.includes(A.name)):g.DE,[k]);return(0,n.useEffect)(()=>{const A=E=>{var U;const O=(U=K.current)==null||(U=U.$dropdown)==null?void 0:U.el;!O||O.contains(E.target)||K.current.handleCloseMenu()};return document.addEventListener("mousedown",A),()=>{document.removeEventListener("mousedown",A)}},[]),(0,a.jsx)(c.A,{renderOpener:z||(0,a.jsx)(r.A,{name:"common/add@24"}),offsetX:I||0,ref:K,className:"add-var-opener",renderMenu:(0,a.jsx)(b.IG,{className:"var-add-menubox",children:$.map(A=>(0,a.jsx)(P,{name:I18N.Variable.type[A.name],svgIconName:A.svgIconName,className:A.className,onClick:()=>j(A.type)},A.type))})})}},57514:(Fe,ee,e)=>{"use strict";e.d(ee,{U:()=>a});var n=e(38502),r=e(18381),c=e(67787),o=e(53732),w=e.n(o),u=e(67588),d=e(15186),y=e(13235),h=e(19376),i=e(36052),f=e(62587),p=e(75810),s=e(72214);const l=b=>{const g=b.findIndex(S=>S!==1);return g===-1||g===3},C=b=>{const g=(0,f.$8)({fillIsVisible:!0,solidColor:b.shadowColor,fill:"solid"}),S=g.color,_=l(S)?[0,0,0,.3]:[S[0],S[1],S[2],.3],I={...g,color:_};return{...b,shadowColor:(0,f.F0)(I).solidColor,offsetX:b.offsetX<0?-2:b.offsetX>2?2:b.offsetX,offsetY:b.offsetY<0?-2:b.offsetY>2?2:b.offsetY,blurRadius:0,spreadRadius:0}},v=(b,g,S)=>{const t={...b,bdrWidth:b.bdrWidth>2?2:b.bdrWidth},_=b.bdrIsVisible===!1||b.bdrWidth===0,I=(0,y.L5)((0,y.NI)(g.solidColor)),k=(0,p.bJ)(I,S==="light"?"FFFFFF":"212121"),j=(0,d.V4)(S==="light"?"#DEE0E2":"#4F5052");if(_&&k<=1.2)return{bdrColor:j,bdrIsVisible:!0,bdrStyle:"solid",bdrWidth:1};if(!_){const z=(0,y.L5)((0,y.NI)(b.bdrColor));if((0,p.bJ)(I,z)<=1.2&&k<=1.2)return{...t,bdrColor:j}}return t},a=b=>{var g;let{className:S,appearStyle:t,mode:_="list",index:I=0,size:k}=b;const j=(0,r.d4)(u.O4),z=(0,n.useMemo)(()=>{if(!t)return{};const{border:$,borderVisibility:A,shadow:E,fill:U}=(t==null?void 0:t.hotAttr)||{},O=C(E),H=v($,U,j),{borderLeft:Q,borderTop:N,borderRight:L,borderBottom:V}=(0,i.NV)({border:H,borderVisibility:A});return{...(0,i.Um)({border:H,borderVisibility:A}),boxShadow:(0,i.Ps)(O),borderRow:Q+L,borderCol:N+V}},[t==null?void 0:t.hotAttr,j]),K=(0,n.useMemo)(()=>{var $,A;let E=t==null||($=t.hotAttr)==null?void 0:$.fill;return t!=null&&(A=t.hotAttr)!=null&&(A=A.fill)!=null&&A.fillIsVisible||(E={fill:"solid",fillIsVisible:!1,solidColor:4294967040}),(0,f.$8)(E,{w:200,h:100})},[t]);return t?(0,s.jsx)(P,{className:w()("appear-ref-view-item",_,S,{"in-visible":!(t!=null&&(g=t.hotAttr)!=null&&(g=g.fill)!=null&&g.fillIsVisible)}),color:K,solidRenderType:"rect",size:k||(_==="list"?16:40),style:z,index:I,hasBorder:!1}):null},P=(0,c.Ay)(h.I).withConfig({displayName:"Appear__StyledAppearViewItem",componentId:"sc-t16n6j-0"})(["&.appear-ref-view-item,&.appear-ref-view-item.has-opacity{border:",";border-color:",";border-width:",";border-style:",";box-shadow:",";overflow:hidden;&.thumbnail-wrapper{&:before{display:none;}.thumbnail{border-radius:0;border:none;}}&.thumbnail-wrapper.has-opacity{border-radius:2px;&.rect{border-radius:2px;&.grid{border-radius:4px;}}&.grid{border-radius:4px;}.thumbnail{border-radius:0;border:none;}}&.has-opacity.opacity-0.in-visible{background:transparent;}.clip{left:-","px;top:-","px;}}"],b=>b.style.border,b=>b.style.borderColor||"transparent",b=>b.style.borderWidth,b=>b.style.borderStyle,b=>b.style.boxShadow,b=>{var g;return((g=b.style)==null?void 0:g.borderRow)/2},b=>{var g;return((g=b.style)==null?void 0:g.borderCol)/2})},58093:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>f});var n=e(95549),r=e(38502),c=e(17307),o=e(57479),w=e(18654),u=e(36518),d=e(67787);const y=(p,s)=>{var l,C;if(p.forceDarkTheme)switch(s){case"workspace_dropdown_menu_shadow":return"0 2px 7px 0 rgba(0, 0, 0, 0.26), 0 12px 36px 0 rgba(0, 0, 0, 0.1)";case"color_proto":return"#1684fc";case"interation_active_box_shadow":return"0 0 4px 0 rgba(41,141,248,0.50)";default:return((l=u.fm[s])==null?void 0:l.value_dark)||((C=w.qY[s])==null?void 0:C.value)}return p.theme[s]},h=d.Ay.div.withConfig({displayName:"styles__StyledSearchBar",componentId:"sc-1nbdan2-0"})(["position:relative;height:32px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid ",";input{width:100%;height:100%;padding-right:22px;background:",";color:",";transition:all 0.2s ease-out;text-indent:24px;border-radius:0;border-top-left-radius:8px;border-top-right-radius:8px;&::placeholder{color:",";}}.clear-icon{position:absolute;right:0;width:24px;line-height:24px;text-align:center;color:",";transition:all 0.15s ease-in-out;cursor:pointer;&:hover{color:",";}g circle{fill:",";}}"],p=>p.theme.color_bg_border_01,p=>p.theme.color_bg_white,p=>p.theme.color_text_L0,p=>p.theme.color_text_L3,p=>y(p,"color_text_disabled01"),p=>y(p,"color_text_L3"),p=>p.theme.clear_icon_color);var i=e(72214);class f extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"setInputRef",s=>this.$input=s),(0,n.A)(this,"focus",()=>this.$input.focus()),(0,n.A)(this,"handleChange",s=>this.props.onChange(s.target.value)),(0,n.A)(this,"handleClear",()=>this.props.onChange("")),(0,n.A)(this,"handleMouseDown",s=>s.preventDefault()),(0,n.A)(this,"handleKeyDown",s=>{const{shouldSearchOnEnter:l,onConfirm:C}=this.props;s.key===o._.Enter&&l&&C&&C()})}componentDidMount(){this.props.forceFocus&&this.$input.focus()}render(){const{value:s,placeholder:l,className:C,inputStyle:v,forceDarkTheme:a}=this.props;return(0,i.jsxs)(h,{type:"search",className:C,forceDarkTheme:a,children:[(0,i.jsx)("input",{className:"WorkspaceInput",ref:this.setInputRef,style:v,type:"text",value:s,placeholder:l,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onFocus:()=>{MB.f.addActionInputFocus=!0},onBlur:()=>{MB.f.addActionInputFocus=!1}}),s.length>0&&(0,i.jsx)(c.C,{name:"new_replace/times_fc",className:"dropmenu-no-exit clear-icon",onMouseDown:this.handleMouseDown,onClick:this.handleClear})]})}}(0,n.A)(f,"defaultProps",{shouldSearchOnEnter:!1})},58320:(Fe,ee,e)=>{"use strict";e.d(ee,{H:()=>y});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),w=e(69623),u=e(48260),d=e(72214);class y extends r.PureComponent{constructor(i){super(i),(0,n.A)(this,"handleCancel",()=>{const{onCancel:f}=this.props;f&&f()}),(0,n.A)(this,"handleConfirm",()=>{const{onConfirm:f}=this.props;f&&f()}),this.el=document.createElement("div")}render(){const{className:i,canCloseOnClickMask:f,portalClassName:p,children:s,renderFooterContent:l,confirmText:C,onClose:v,canCancel:a,canConfirm:P,cancelBtnProps:b,confirmBtnProps:g={},isUsePortal:S,...t}=this.props;return(0,d.jsxs)(r.Fragment,{children:[(0,w.createPortal)((0,d.jsx)("div",{className:"workspace-modal-mask"}),this.el),(0,d.jsx)(u.O0,{portalClassName:o()("new-model-portal",p),className:o()("workspace-modal",i),onClose:v,onConfirm:this.handleConfirm,canCloseOnEsc:!1,cancelBtnProps:b,canCloseOnClickMask:f,canConfirmOnEnter:!1,confirmText:C||I18N.Common.confirm,isConfirmDisabled:!P,confirmBtnProps:g,renderFooterSide:l,cancelText:I18N.Common.cancel,onCancel:a?this.handleCancel:null,...t,children:(0,d.jsx)("div",{className:"modal-content",children:s})}),S&&(0,d.jsx)(u.CO,{})]})}}(0,n.A)(y,"defaultProps",{canCancel:!0,canConfirm:!0,cancelBtnProps:{type:"secondary"},isUsePortal:!0})},58603:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>K});var n=e(95549),r=e(18250),c=e.n(r),o=e(63986),w=e.n(o),u=e(38502),d=e(69623),y=e(25582),h=e.n(y),i=e(69368),f=e(39e3);const p=9;function s(A){let{$opener:E,$menuBase:U,menuX:O="left",menuY:H="bottom",menuBaseStyle:Q={},inflexible:N=!1,shouldSetMaxHeight:L=!1}=A;if(!E||!U)return;const V=U.querySelector("*"),M={styleFor$menuBase:{},styleFor$menu:{}},D=ve=>Object.assign(M.styleFor$menuBase,ve),W=ve=>Object.assign(M.styleFor$menu,ve),{offsetWidth:F,offsetHeight:B}=V,Y=Q.width||E.offsetWidth,X=Q.height||E.offsetHeight,G=E.getBoundingClientRect(),{top:Z,right:J,bottom:te,left:he}=Object.assign({top:G.top,right:G.right,bottom:G.bottom,left:G.left},Q);D({top:Z+"px",left:he+"px",width:Y+"px",height:X+"px"});const{innerHeight:de}=window,Se=10,xe=de-10,be=H==="top"?1/3:2/3,ie=de*be,oe=Z+X/2,ue=Z+X;return(N&&H==="bottom"||!N&&ie>=oe)&&ue+B+p<de?(M.isDownward=!0,L&&te+B>xe&&W({maxHeight:xe-te+"px"})):(M.isDownward=!1,L&&Z-B<Se&&W({maxHeight:Z-Se+"px"})),Object.assign(U.style,M.styleFor$menuBase),Object.assign(V.style,M.styleFor$menu),M}function l(A){!A||!(A instanceof Element)||A.addEventListener("wheel",E=>{const{scrollTop:U,scrollHeight:O}=A,{height:H}=A.getBoundingClientRect(),Q=E.deltaY*-1,N=Q>0,L=()=>(E.stopPropagation(),E.preventDefault(),!1);if(!N&&-Q>O-H-U)return A.scrollTop=O,L();if(N&&Q>U)return A.scrollTop=0,L()})}function C(A){let{$opener:E,$menuBase:U,menuBaseStyle:O={},$menuContainer:H}=A;if(!E||!U)return;const Q=U.querySelector("*"),L=((0,i.$)("li[role=option].is-active",Q)||(0,i.$)("li[role=option]",Q)||(0,i.$)("li[role=empty-msg]",Q)).getBoundingClientRect(),V=Q.getBoundingClientRect(),M={styleFor$menuBase:{},styleFor$menu:{},styleFor$menuContainer:{},styleFor$fontTip:{}},D=de=>Object.assign(M.styleFor$menuBase,de),W=de=>Object.assign(M.styleFor$menuContainer,de),F=O.width||E.offsetWidth,B=O.height||E.offsetHeight,Y=E.getBoundingClientRect(),{top:X,bottom:G,left:Z}=Object.assign({top:Y.top,right:Y.right,bottom:Y.bottom,left:Y.left},O);D({top:X+"px",left:Z+"px",width:F+"px",height:B+"px"});const{innerHeight:J}=window;let te=0;const he=L.top-V.top;if(te=-Math.min(he,X),X+te+V.height>J){const de=X+te+V.height-J;W({top:te-de+"px"})}else W({top:te+"px"});return Object.assign(U.style,M.styleFor$menuBase),Object.assign(Q.style,M.styleFor$menu),Object.assign(H.style,M.styleFor$menuContainer),M}function v(A){let{$opener:E,$menuBase:U,$menuContainer:O,menuY:H="bottom",menuBaseStyle:Q={}}=A;if(!E||!U)return;const N={styleFor$menuBase:{},styleFor$menuContainer:{}},L=te=>Object.assign(N.styleFor$menuBase,te),V=te=>Object.assign(N.styleFor$menuContainer,te),{offsetHeight:M}=O,D=Q.width||E.offsetWidth,W=Q.height||E.offsetHeight,F=E.getBoundingClientRect(),{top:B,bottom:Y,left:X}=Object.assign({top:F.top,right:F.right,bottom:F.bottom,left:F.left},Q);L({top:B+"px",left:X+"px",width:D+"px",height:W+"px"});const{innerHeight:G}=window,Z=Y+M<G,J=B>M;if(H==="bottom")if(Z)V({top:"100%"});else if(J)V({bottom:"100%"});else{const te=-(Y+M-G-W);V({top:te+"px"})}if(H==="top")if(J)V({bottom:"100%"});else if(Z)V({top:"100%"});else{const te=-(M-B-W);V({bottom:te+"px"})}return Object.assign(U.style,N.styleFor$menuBase),Object.assign(O.style,N.styleFor$menuContainer),N}var a=e(18654),P=e(36518),b=e(67787);const g=b.Ay.label.withConfig({displayName:"styles__StyledDropdown",componentId:"sc-1wdr1xt-0"})(["&.is-disabled{opacity:0.5;& > button{cursor:not-allowed;}}"]),S=(A,E)=>{var U,O;if(A.forceDarkTheme)switch(E){case"workspace_dropdown_menu_shadow":return"0 2px 7px 0 rgba(0, 0, 0, 0.26), 0 12px 36px 0 rgba(0, 0, 0, 0.1)";default:return((U=P.fm[E])==null?void 0:U.value_dark)||((O=a.qY[E])==null?void 0:O.value)}return A.theme[E]},t=b.Ay.div.withConfig({displayName:"styles__StyledDropdownMenu",componentId:"sc-1wdr1xt-1"})(["&.DesignDropdownMenuBase{position:fixed;z-index:1100;pointer-events:none;}.DesignDropdownMenu{position:absolute;margin:0.25em 0;width:fit-content;min-width:7em;font-size:12px;pointer-events:none;opacity:0;transition:.2s ease-in-out;transition-property:transform,opacity;transform-origin:50% 0;transform:scale(0.9);box-shadow:",";border:1px solid ",";border-radius:9px;&.is-open{pointer-events:initial;opacity:1;transform:scale(1);}&.x-left{left:0;}&.x-right{left:initial;right:0;}&.x-center{left:50%;transform:scale(0.9) translateX(-50%);&.is-open{transform:scale(1) translateX(-50%);}}&.is-downward{top:100%;bottom:initial;border-radius:8px;}&.is-upward{top:initial;bottom:100%;}&.arrowed{margin-top:0.75em;margin-bottom:0.75em;&.x-left.x-arrow-based{left:50%;margin-left:-14px;}&.x-right.x-arrow-based{left:initial;right:50%;margin-right:-14px;}}.arrow{position:absolute;top:calc(-0.375em + 1px);left:calc(50% - 0.5em);width:1em;height:0.375em;font-size:14px;line-height:0;fill:currentColor;fill-rule:evenodd;color:#fff;}&.dark .arrow{color:",";}&.x-left .arrow{left:0.5em;right:initial;}&.x-right .arrow{left:initial;right:0.5em;}&.is-upward .arrow{transform:rotate(180deg);top:initial;bottom:calc(-0.375em + 1px);}.content{padding:8px;min-height:32px;background-color:",";border-radius:9px;}&.dark .content{background-color:",";color:",";button:hover{color:",";}}ul.MenuList{margin:0;padding:0;list-style:none;text-align:center;color:",";li{line-height:32px;border-radius:2px;cursor:pointer;&.is-active{color:#1e98ea;}&.is-disabled{cursor:not-allowed;opacity:0.5;}}}}"],A=>A.theme.shadow_m,A=>A.theme.color_bg_border_01,A=>S(A,"color_text_L1"),A=>A.theme.color_bg_white,A=>S(A,"color_text_L1"),A=>S(A,"color_bg_white"),A=>S(A,"color_bg_white"),A=>S(A,"color_text_L2"));var _=e(72214);const I="IBOT_DROPDOWN_MENU_ROOT",k='<svg viewBox="0 0 8 3"><path d="M4.654.233L8 3H0L3.383.23c.37-.303.902-.302 1.27.003z" /></svg>',j=document.getElementById(I)||Object.assign(document.createElement("div"),{id:I}),z=document.body;z.contains(j)||z.appendChild(j);class K extends u.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"state",{prevProps:this.props,isOpen:this.props.isOpen,$opener:null,currentMenuListItemIdx:this.props.currentMenuListItemIdx}),(0,n.A)(this,"leaveTimeoutList",[]),(0,n.A)(this,"toggle",E=>{this.setState({isOpen:c()(E)?E:!this.state.isOpen})}),(0,n.A)(this,"open",()=>this.toggle(!0)),(0,n.A)(this,"close",()=>this.toggle(!1)),(0,n.A)(this,"onMouseEnter",()=>{const{shouldOpenOnHover:E}=this.props;E&&(clearTimeout(this.closeTimeout),Object.assign(this,{hoverTimeout:setTimeout(this.open,this.props.hoverDelay)}))}),(0,n.A)(this,"onMouseLeave",()=>{const{shouldOpenOnHover:E}=this.props;E&&clearTimeout(this.hoverTimeout)}),(0,n.A)(this,"onMouseMove",E=>{let{clientX:U,clientY:O}=E;const{shouldOpenOnHover:H,hoverDelay:Q,closeDelay:N}=this.props,{$opener:L}=this.state;if(!H)return;clearTimeout(this.hoverTimeout);const V=document.elementFromPoint(U,O),M=!L.contains(V),D=!V.closest(".DesignDropdownMenu");D?M&&D&&this.leaveTimeoutList.push(setTimeout(this.close,Math.max(Q,N))):(this.leaveTimeoutList.forEach(clearTimeout),Object.assign(this,{leaveTimeoutList:[]}))}),(0,n.A)(this,"set$opener",E=>this.setState({$opener:E})),(0,n.A)(this,"onSelect",E=>{let{currentTarget:U}=E;const{menuList:O,onSelect:H,shouldCloseOnSelect:Q}=this.props;if(typeof H!="function")return;const N=U.dataset.idx,L=O[N],V=typeof L=="string"?L:L&&L.value;H(N,V),this.setState({currentMenuListItemIdx:N}),Q&&this.close()}),(0,n.A)(this,"onClick",()=>{this.props.onlyOpenOnHover||this.toggle()})}static getDerivedStateFromProps(E,U){let{prevProps:O}=U;return w()(E,O)?null:c()(E.isOpen)?{prevProps:E,isOpen:E.isOpen}:{prevProps:E}}componentDidUpdate(E,U){let{isOpen:O}=U;const{onOpen:H,onClose:Q,onToggle:N}=this.props,{isOpen:L}=this.state;O!==L&&(L?(H(),N(!0)):(Q(),N(!1)))}render(){const{className:E,opener:U,openerType:O,shouldCloseOnClickOutside:H,onMouseEnter:Q,onMouseLeave:N,forceDarkTheme:L}=this.props,{isOpen:V,$opener:M,currentMenuListItemIdx:D}=this.state,W=this.props.isDisabled||this.props.disabled,F=(0,i.Hn)(["WorkspaceDropdown",V&&"is-open",W&&"is-disabled",E]),B={onClick:this.onClick,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,disabled:W};return(0,_.jsxs)(g,{ref:this.set$opener,className:F,onMouseEnter:Q,onMouseLeave:N,children:[O!=="button"&&(0,u.isValidElement)(U)?(0,u.cloneElement)(U,B):(0,_.jsx)("button",{type:"button",...B,children:U}),V&&(0,_.jsx)($,{...this.props,forceDarkTheme:L,isOpen:V,$opener:M,onSelect:this.onSelect,onClose:this.close,currentMenuListItemIdx:D}),V&&(0,_.jsx)(f.A,{target:document,onMouseMove:this.onMouseMove})]})}}(0,n.A)(K,"positionMenu",s),(0,n.A)(K,"propTypes",{isOpen:h().bool,mode:h().oneOf(["light","dark"]),forceDarkTheme:h().bool,opener:h().node,openerType:h().oneOf(["button","custom"]),className:h().string,portalClassName:h().string,menuBaseClassName:h().string,menuClassName:h().string,menuBaseStyle:h().shape({top:h().number,right:h().number,bottom:h().number,width:h().number,height:h().number}),menu:h().node,menuList:h().arrayOf(h().oneOfType([h().node,h().shape({label:h().node,value:h().any,isDisabled:h().bool})])),currentMenuListItemIdx:h().oneOfType([h().number,h().string]),shouldPreventScrollingPropagation:h().bool,shouldOpenOnHover:h().bool,shouldCloseOnClickOutside:h().bool,onClickOutside:h().func,hoverDelay:h().oneOfType([h().number,h().string]),closeDelay:h().number,arrowed:h().bool,inflexible:h().bool,menuX:h().oneOf(["left","center","right"]),menuY:h().oneOf(["top","bottom"]),menuBasedX:h().bool,isDisabled:h().bool,disabled:h().bool,onSelect:h().func,onMouseEnter:h().func,onMouseLeave:h().func,shouldCloseOnSelect:h().bool,onlyOpenOnHover:h().bool,onOpen:h().func.isRequired,onClose:h().func.isRequired,onToggle:h().func.isRequired}),(0,n.A)(K,"defaultProps",{arrowed:!1,openerType:"button",mode:"light",forceDarkTheme:!1,shouldPreventScrollingPropagation:!0,shouldCloseOnSelect:!0,shouldOpenOnHover:!1,shouldCloseOnClickOutside:!0,onlyOpenOnHover:!1,hoverDelay:200,closeDelay:300,menuX:"center",menuY:"bottom",inflexible:!1,menuBasedX:!1,onOpen:()=>null,onClose:()=>null,onToggle:()=>null,onMouseLeave:()=>null,onMouseEnter:()=>null});class $ extends u.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"state",{isTransform:!1,isDownward:this.props.position==="bottom"}),(0,n.A)(this,"portal",(0,i.ep)(j,(0,i.Hn)(["DropdownMenuPortal",this.props.portalClassName]))),(0,n.A)(this,"menuBaseRef",(0,u.createRef)()),(0,n.A)(this,"menuContainerRef",(0,u.createRef)()),(0,n.A)(this,"onResizeWindow",()=>this.props.isOpen&&this.position()),(0,n.A)(this,"onClickOutside",E=>{var U;const{target:O}=E,{$opener:H,onClose:Q,shouldCloseOnClickOutside:N,onClickOutside:L}=this.props;if(!N||(U=this.menuBaseRef.current)!=null&&U.contains(O)||L&&!L(E)||O.className==="icon dora clear-icon")return;if(O.closest(".dropmenu-exit")){Q();return}if(O.closest(".dropmenu-no-exit"))return;const V=!j.contains(O),M=O.closest("label"),D=M&&M.contains(H),W=!!document.querySelector(".SelectMenu.is-open");V&&!D&&!W&&Q()}),(0,n.A)(this,"position",()=>{const{$opener:E,menuX:U,menuY:O,menuBaseStyle:H,inflexible:Q,isPosition2:N,isPosition3:L}=this.props,{menuBaseRef:{current:V},menuContainerRef:{current:M}}=this;if(!V)return;let D;if(L){const{isDownward:W}=v({$menuBase:V,$opener:E,$menuContainer:M,menuX:U,menuY:O,menuBaseStyle:H});D=W}else if(N){const{isDownward:W}=C({$menuBase:V,$opener:E,$menuContainer:M,menuX:U,menuY:O,menuBaseStyle:H,inflexible:Q});D=W}else{const{isDownward:W}=s({$menuBase:V,$opener:E,menuX:U,menuY:O,menuBaseStyle:H,inflexible:Q});D=W}this.setState({isDownward:D,isTransform:!0})})}componentDidMount(){const{isOpen:E,shouldPreventScrollingPropagation:U}=this.props,{menuBaseRef:{current:O}}=this;E&&setTimeout(this.position),U&&l(O.querySelector(".content")),window.addEventListener("resize",this.onResizeWindow)}componentWillUnmount(){this.portal&&this.portal.remove(),window.removeEventListener("resize",this.onResizeWindow)}render(){const{portal:E,menu:U}=this;return(0,d.createPortal)(U,E)}get menu(){const{isOpen:E,mode:U,menuBaseClassName:O,menuClassName:H,menu:Q,menuList:N,arrowed:L,menuX:V,menuBasedX:M,currentMenuListItemIdx:D,onSelect:W,forceDarkTheme:F,isPosition2:B,isPosition3:Y}=this.props,{isDownward:X,isTransform:G}=this.state,Z=(0,i.Hn)(["DesignDropdownMenu",U,G&&"is-open",B||Y?"":X?"is-downward":"is-upward","x-"+V,L&&"arrowed "+(M?"x-menu-based":"x-arrow-based"),H]);return(0,_.jsx)(t,{forceDarkTheme:F,ref:this.menuBaseRef,className:(0,i.Hn)(["DesignDropdownMenuBase",O]),children:(0,_.jsxs)("div",{className:Z,ref:this.menuContainerRef,children:[L&&(0,_.jsx)("span",{className:"arrow",children:(0,_.jsx)("svg",{viewBox:"0 0 8 3",children:(0,_.jsx)("path",{d:"M4.654.233L8 3H0L3.383.23c.37-.303.902-.302 1.27.003z"})})}),(0,_.jsx)("div",{className:"content",children:N?(0,_.jsx)("ul",{className:"MenuList",children:N.map((J,te)=>(0,_.jsx)("li",{role:"option","data-idx":te,className:(0,i.Hn)([J.isDisabled&&"is-disabled",te===Number(D)&&"is-active"]),onClick:J.isDisabled?void 0:W,children:J.label||J},te))}):Q}),E&&(0,_.jsx)(f.A,{target:document,onClick:(0,f.t)(this.onClickOutside,{capture:!0})}),E&&(0,_.jsx)(f.A,{target:document,onScroll:(0,f.t)(this.position,{capture:!0})})]})})}}(0,n.A)($,"propTypes",{...K.propTypes,isOpen:h().bool,$opener:h().instanceOf(Element),onSelect:h().func,onClose:h().func})},58656:(Fe,ee,e)=>{"use strict";e.d(ee,{BH:()=>o,LC:()=>d,U9:()=>w,aB:()=>u});var n=e(67787),r=e(55802),c=e(75810);const o=n.Ay.div.withConfig({displayName:"styles__StyledVarList",componentId:"sc-936727-0"})(["height:calc(100% - 56px);margin:8px 0;padding:0 8px;overflow-y:auto;scrollbar-width:none;&::-webkit-scrollbar{display:none;}.bar-vertical{top:40px;height:calc(100% - 40px);}.var-sort-list{position:relative;min-height:100%;}.dnd{bottom:0;}.is-empty{height:100%;}.empty-box{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%;min-height:150px;padding:20px 0;img{margin-bottom:16px;}.empty-tip{color:",";line-height:17px;text-align:center;a{display:inline-block;margin-top:8px;color:",";&:hover{color:",";}}}}.empty-box-nomatched{height:100%;min-height:100px;img{width:50px;height:51px;}.tips{margin:16px 0 0;}}"],y=>y.theme.color_text_L3,y=>y.theme.color_text_link_normal,y=>y.theme.color_text_link_hover),w=n.Ay.div.withConfig({displayName:"styles__StyledVarItem",componentId:"sc-936727-1"})(["display:flex;align-items:center;flex-direction:row;justify-content:space-between;height:32px;font-size:12px;line-height:32px;cursor:pointer;padding:0 10px;border-radius:6px;&:hover,&.trigger{background-color:",";}&.active,&.highlight{background-color:",";}&.trigger,&.active,&.highlight,&:hover{+ .var-item{border-top-left-radius:0;border-top-right-radius:0;}}&:has(+ .var-item.trigger,+ .var-item.active,+ .var-item:hover,+ .var-item.highlight){border-bottom-left-radius:0;border-bottom-right-radius:0;}.left{flex:1;display:flex;align-items:center;width:calc(50% - 4px);.svg-icon{font-size:14px;margin-right:4px;flex-shrink:0;rect{fill:",";stroke:",";}}.var-name{max-width:calc(100% - 18px);overflow:hidden;text-overflow:ellipsis;white-space:pre;color:",";&.editor{pointer-events:all;.var-name-editable{border:1px solid ",";height:26px;padding:0 8px;border-radius:6px;}}}}.right{margin-left:8px;width:calc(50% - 4px);display:flex;justify-content:flex-end;color:",";.var-data{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:pre;}}&.var-string{.right{position:relative;.var-data{max-width:calc(100% - 8px);}}&:not(.is-dropmenu.active.binded){.right{&::before,&::after{content:'\"'; } } } } .unbind-button { color: ","; }"],y=>y.theme.color_btn_secondary_hover,y=>y.theme.color_bg_select02,y=>y.theme.color_bg_white,y=>(0,c.oU)(y,"color_text_L1"),y=>y.theme.color_text_L1,y=>y.theme.color_proto,y=>y.theme.color_text_L3,y=>y.theme.color_text_link_normal),u=(0,n.Ay)(r.A).withConfig({displayName:"styles__StyledVarEditor",componentId:"sc-936727-2"})(["border:1px solid ",";border-radius:8px;overflow:hidden;z-index:101;width:240px;font-family:'PingFangSC';color:",";background:",";.header{height:40px;display:flex;cursor:move;align-items:center;justify-content:space-between;padding:16px;background:",";border-bottom:1px solid ",";.left{font-weight:500;}.right{display:flex;.del-icon{margin-right:4px;}}}.content{padding:16px;display:flex;flex-direction:column;gap:8px;.var-item{display:flex;justify-content:space-between;align-items:center;height:32px;&.string{height:64px;.var-label{line-height:28px;padding-bottom:36px;}}.var-label{line-height:32px;color:",";}.name-input{height:28px;}.name-input input{font-size:12px;width:144px;border-radius:6px;background:",";color:",";border:1px solid ",";padding:5px 8px;height:28px;}.string-value{resize:none;height:64px;width:144px;color:",";background:",";border:1px solid ",";border-radius:6px;outline:none;cursor:text;overflow:auto;padding:5px 8px;position:relative;}.number-value,.name-input input,.string-value{width:144px;box-shadow:none !important;&:hover{border-color:"," !important;box-shadow:none !important;}&:focus,&.focus,&.is-active{outline:1px solid "," !important;border-color:"," !important;background:"," !important;color:"," !important;outline-offset:0 !important;}}.boolean-value{width:144px;height:32px;display:flex;align-items:center;span{margin-left:16px;}.Switch-IOS.is-checked.regular button{transform:translate(16px,0px);}}}}.footer{display:flex;justify-content:flex-end;padding:0 16px 16px;}"],y=>y.theme.color_bg_border_01,y=>y.theme.color_text_L1,y=>y.theme.color_bg_white,y=>y.theme.color_bg_white,y=>y.theme.color_bg_border_01,y=>y.theme.color_text_L3,y=>y.theme.color_bg_white,y=>y.theme.color_text_L1,y=>y.theme.color_bg_border_02,y=>y.theme.color_text_L1,y=>y.theme.color_bg_white,y=>y.theme.color_bg_border_02,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),d=(0,n.DU)([".TipBase{.Tip.var-tooltip{transform:translate(-50%,0) !important;opacity:1 !important;.EllipsisTip{max-width:228px;max-height:300px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:12;line-clamp:12;text-overflow:ellipsis;word-break:break-all;white-space:pre-wrap;overflow:hidden;}&.var-string-tooltip .EllipsisTip{&::before{content:'\"'; } &::after { content: '\"';}}}}"])},59189:(Fe,ee,e)=>{"use strict";e.d(ee,{N:()=>r});var n=e(43722);const r=c=>function(o,w){const u=this;if(!(0,n.gq)(u.state,w))return!0;for(const d of c)if(typeof u.props[d]!="function"&&u.props[d]!==o[d])return!0;return!1}},59323:(Fe,ee,e)=>{"use strict";e.d(ee,{vR:()=>c,zB:()=>r});var n=e(20089);const r=w=>{const u=new Map;if(w!=null&&w.length)for(let d=0;d<w.length;d++){const y=w[d],h=sdkStore.locUpHotCanvasKey(y);if(h!==y&&h){const i=sdkStore.getHotItem(h);i&&!u.get(i.key)&&u.set(i.key,i)}}return u},c=w=>new Set(w.map(u=>sdkStore.locUpHotCanvasKey(u)||sdkStore.locUpRBPageKey(u))).size===1,o=function(w,u){var d;u===void 0&&(u=sdkStore);const y=[],h=u.getHotItem(w),{hotAttr:i,sub:f}=h,p=(d=i.bunch)!=null?d:i.type;return p!==WidgetType.RbPage&&y.push(h),[WidgetType.RbPage,WidgetType.WWrap].includes(p)&&f.forEach(s=>y.push(...o(s,u))),y}},59531:(Fe,ee,e)=>{"use strict";e.d(ee,{D:()=>w});var n=e(38502),r=e(46322),c=e(14285),o=e(72214);const w=u=>{const d=[],y=[];let h=0,i=0;return u.pictureList.forEach(f=>{const p=109*f.height/f.width;h<i?(d.push(f),h+=p):(y.push(f),i+=p)}),(0,o.jsxs)(c.Ws,{className:"picture-list",children:[(0,o.jsx)("div",{children:d.map(f=>(0,o.jsx)(r.I,{...u,asset:f,popupsName:u.popupsName},f.asset_cid))}),(0,o.jsx)("div",{children:y.map(f=>(0,o.jsx)(r.I,{...u,asset:f,popupsName:u.popupsName},f.asset_cid))})]})}},59736:(Fe,ee,e)=>{"use strict";e.d(ee,{Z:()=>s});var n=e(38502),r=e(53732),c=e.n(r),o=e(23744),w=e(67787),u=e(51090),d=e(21066);const y=w.Ay.div.withConfig({displayName:"styls__StyledDropMenuSelect",componentId:"sc-1gbqqv2-0"})(["position:relative;display:inline-flex;align-items:center;max-width:100%;min-width:3em;height:28px;font-size:12px;color:",";cursor:pointer;max-width:","px;border-radius:4px;border:1px solid transparent;justify-content:space-between;&.isSelecting,&:hover{width:218px;}span{color:",";margin-left:6px;width:24px;cursor:pointer;",";}.caret{color:",";flex:0 0 24px;}&.isSelecting,&:hover{border-color:",";.caret{margin-left:auto;visibility:visible;color:",";}}"],l=>l.theme.color_text_L2,l=>l.$width,l=>l.theme.color_text_L1,u.L9,l=>l.theme.color_text_L3,l=>l.theme.color_bg_border_02,l=>l.theme.color_text_L1),h=(0,w.Ay)(d.Ay).withConfig({displayName:"styls__StyledMenu",componentId:"sc-1gbqqv2-1"})(["",";& > ul:first-of-type{width:","px;min-width:","px;overflow-y:auto;> li{width:100%;> a{padding-right:0;.selected-icon{flex:0 0 8px;}> span{width:100%;}}&.hasIcon{> a{> span{width:calc(100% - 17px);}}}}}& > ul:nth-of-type(2){min-width:100px;max-width:100px;> li{max-width:100px;min-width:100px;}}.MenuItem{&:not(.hasIcon){a{padding-left:33px;}}}"],u.ZJ,l=>l.$width,l=>l.$width);var i=e(54449),f=e(72214);const p=(0,f.jsx)(o.C,{name:"toolbar/selected",className:"selected-icon"}),s=l=>{let{onChange:C,optionList:v,displayLabel:a,width:P,selectedOption:b,className:g,menuClassName:S,leftUse:t="right"}=l;const _=(0,n.useRef)(null),{menuStatus:I,handleClose:k,handleToggle:j}=(0,i.x)({ref:_,leftUse:t});return(0,f.jsxs)(y,{ref:_,className:c()(g,{isSelecting:I.isOpenContextMenu}),$width:P,onClick:j,children:[(0,f.jsx)("span",{children:a}),(0,f.jsx)(o.C,{name:"common/expand@26",className:"caret",size:24}),I.isOpenContextMenu&&(0,f.jsx)(h,{$width:P,position:I.position,onClose:k,className:S,children:v.map((z,K)=>(0,f.jsx)(d.Dr,{text:z.text,icon:b===z.value?p:null,onClick:()=>C(z.value)},K))})]})}},59844:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>i});function n(f,p,s){const l=p.getBoundingClientRect(),C=Math.min(l.left,document.documentElement.clientWidth-l.right);return f.offsetWidth+p.offsetWidth+s+C<document.documentElement.clientWidth}function r(f,p){const s=f.getBoundingClientRect(),l=s.bottom>window.innerHeight,C=s.top<0;if(C&&l)return!0;if(f.offsetHeight>p.offsetHeight){const v=f.offsetHeight/2,a=s.bottom-window.innerHeight,P=-s.top,b=v-a,g=v-P;return b>=0&&g>=0}return!l&&!C}function c(f,p,s,l,C){if(!s)return f;const v=s.getBoundingClientRect(),a=p.offsetHeight+l,P=window.innerHeight-v.bottom,b=v.top,g=P>=a,S=b>=a;switch(f){case"right":return!n(p,s,l)||!r(s,p)?c("up",p,s,l,!0):document.documentElement.clientWidth-v.right<p.offsetWidth+l?"left":"right";case"left":return!n(p,s,l)||!r(s,p)?c("up",p,s,l,!0):v.left<p.offsetWidth+l?"right":"left";case"up":if(!S){if(g)return"down";if(!C&&n(p,s,l))return c("right",p,s,l,!0)}return"up";case"down":default:if(!g){if(S)return"up";if(!C&&n(p,s,l))return c("right",p,s,l,!0)}return"down"}}function o(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function w(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0}function u(){return typeof document<"u"?document.documentElement.clientWidth:1e3}function d(f){const p=f.split("-");return p.length>1?p[1]:"middle"}function y(f,p,s,l,C){let v=-1e7,a;if(f){const P=w(),b=p.getBoundingClientRect(),g=b.left+P,S=Math.round(b.width/2),t=Math.min(u(),f.offsetWidth);if(l==="start")v=g;else if(l==="end"){const j=g+p.offsetWidth;v=Math.max(j-t,P)}else{const j=g+S-Math.round(t/2);v=Math.max(j,P)}const _=v+t,I=P+document.documentElement.clientWidth,k=_-I;k>0&&(v-=k),s==="up"?a=b.top+o()-(f.offsetHeight+C):a=b.bottom+o()+C}return{left:v,top:a}}function h(f,p,s,l,C){let v=-1e7,a=0;if(f){const P=o(),b=w(),g=p.getBoundingClientRect(),S=g.top+P,t=Math.round(p.offsetHeight/2),_=S+t,I=g.top+P+t;if(l==="start")a=S;else if(l==="end")a=g.bottom+P-f.offsetHeight;else{const j=Math.max(S+t-Math.round(f.offsetHeight/2),P);a=Math.min(j,_)}const k=a-P+f.offsetHeight-window.innerHeight;k>0&&(a=Math.max(a-k,I-f.offsetHeight)),s==="right"?v=g.right+C+b:v=g.left-C-f.offsetWidth+b}return{left:v,top:a}}function i(f,p,s){let{direction:l,distance:C,forceDirection:v}=s;const a=d(l),P=l.split("-")[0];let b=P;return!v&&p&&(b=c(P,p,f,C)),{sourceNodePosition:b==="up"||b==="down"?y(p,f,b,a,C):h(p,f,b,a,C),realDirection:b}}},60007:(Fe,ee,e)=>{"use strict";e.d(ee,{M:()=>s});var n=e(53732),r=e.n(n),c=e(18381),o=e(23744),w=e(60589),u=e(81973),d=e(4235),y=e(10472),h=e(83672),i=e(67787);const f=i.Ay.div.withConfig({displayName:"styles__StyledUsedRefTextPanel",componentId:"sc-1pesait-0"})(["display:flex;align-items:center;height:32px;&:hover,&.is-active{.content{background-color:",";border-color:",";}.svg-icon{display:block;}}.content{display:flex;align-items:center;flex:1;height:28px;border-radius:6px;border:1px solid ",";background:",";color:",";cursor:pointer;overflow:hidden;padding-right:4px;.appear-ref-view-item{margin-right:10px;}.view-item{margin-right:4px;}span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}.svg-icon{display:none;cursor:pointer;border-radius:4px;margin-left:6px;color:",";flex:0 0 24px;&:hover{background-color:",";}}"],l=>l.theme.color_btn_secondary_hover,l=>l.theme.color_btn_secondary_hover,l=>l.theme.color_bg_border_02,l=>l.theme.color_bg_white,l=>l.theme.color_text_L1,l=>l.theme.color_text_L1,l=>l.theme.color_btn_secondary_hover);var p=e(72214);const s=l=>{const{canOpenModal:C=!0}=l,v=(0,c.d4)(u.jj),{isOpen:a,type:P}=(0,c.d4)(w.FK),b=(0,c.d4)(d.p$),{isEditingCombo:g}=(0,c.d4)(y.r),S=(0,c.wA)();if(!v)return null;const t=I=>{if(!(g||!C))if(I.stopPropagation(),a)S({type:"modal:reset:popup:state",payload:{modalName:"libPanelModal"}});else{const{left:k,top:j,height:z,right:K}=I.target.getBoundingClientRect(),$={left:k>=260?Math.max(k-260>>0,0):K+20,top:Math.max(j+z/2-340>>0,56)};S({type:"modal:update:state",payload:{libPanelModal:{isOpen:!0,type:"text",position:$}}})}},_=()=>{if(!(v!=null&&v.key))return;const I=sdkStore.getHotItem(v==null?void 0:v.key);S({type:"entry:libStyle:del:widget:refStyles",payload:{type:"text",selections:b,refStyle:I}}),S({type:"settings:update:currentTextRefStyle",payload:null})};return(0,p.jsxs)(f,{className:r()("open-lib-icon",{"is-active":a&&P==="text"}),children:[(0,p.jsxs)("div",{className:"content",onClick:t,children:[(0,p.jsx)(h.c,{textStyle:v}),(0,p.jsx)("span",{children:v==null?void 0:v.hotAttr.name})]}),(0,p.jsx)(o.C,{name:"setting_panel/general/clear_sl_ref",className:"clear_style_ref",size:24,onClick:_})]})}},60121:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>y});var n=e(38502),r=e(55914),c=e(87612),o=e(72214);function w(h){return class extends n.Component{constructor(f){super(f),this.state={hasError:!1}}static getDerivaedStateFromError(){return{hasError:!0}}componentDidCatch(f,p){console.error(f,p),(0,c.p)("[fatal]: ErrorBoundary",f,p,this.props)}render(){return this.state.hasError?null:(0,o.jsx)(h,{...this.props})}}}const u=w;function d(h){const{value:i,highlightKeyword:f}=h,p=(0,n.useMemo)(()=>{if(!i||!f||typeof i!="string"||typeof f!="string")return null;const s=new RegExp((0,r.$)(f),"ig");return s.test(i)?i.replaceAll(s,'<span class="highlight-keyword">'+f+"</span>"):null},[i,f]);return p?(0,o.jsx)("span",{dangerouslySetInnerHTML:{__html:p}}):(0,o.jsx)(n.Fragment,{children:i})}const y=u((0,n.memo)(d))},60407:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>u});var n=e(95549),r=e(38502),c=e(67787);const o=c.Ay.div.withConfig({displayName:"styles__StyledLoadingStyles",componentId:"sc-1pby6la-0"})(["display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(auto-fill,","px);padding-left:12px;.header-loading{height:8px;border-radius:8px;margin-bottom:16px;}.template-box{.template-cover{border-radius:8px;}.template-info{height:8px;border-radius:8px;width:60%;margin:8px auto 0;}}@keyframes skeleton-loading{0%{background-position:100% 50%;}to{background-position:0 50%;}}.skeleton-loading{background:",";background-size:400% 100%;animation:skeleton-loading 1.4s ease infinite;}"],d=>d.width,d=>d.theme.loading_styles_bg);var w=e(72214);class u extends r.PureComponent{constructor(y){super(y),(0,n.A)(this,"setComponentRef",h=>this.box=h),(0,n.A)(this,"arrayWithNumber",h=>[...Array(h).keys()]),this.state={count:20}}componentDidMount(){const{itemWidth:y,itemHeight:h}=this.props,i=this.box.getBoundingClientRect().height,f=this.box.getBoundingClientRect().width,p=i/(h+10+24)*(f/(y+8));this.setState({count:Math.ceil(p)})}render(){const{itemWidth:y,itemHeight:h}=this.props,{count:i}=this.state,f=this.arrayWithNumber(i);return(0,w.jsx)(o,{className:"template-list template-list-loading-container",ref:this.setComponentRef,width:y,children:f.map(p=>(0,w.jsxs)("div",{className:"template-box",children:[(0,w.jsx)("div",{className:"template-cover skeleton-loading",style:{width:y,height:h}}),(0,w.jsx)("div",{className:"template-info skeleton-loading"})]},p))})}}},61675:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>p});var n=e(95549),r=e(38502),c=e(46606),o=e(53732),w=e.n(o),u=e(50521),d=e(62118),y=e(83199),h=e(56202),i=e(17307),f=e(72214);class p extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleChange",l=>C=>{l||this.props.disabled||this.props.handleChange(C)}),(0,n.A)(this,"handleGetContent",(l,C)=>{const v=d.lk[C+"_mac"],a=d.lk[C+"_win"];return(0,y.u)({text:l,key:(0,h.cX)()?v:a})}),(0,n.A)(this,"handleRenderIcon",l=>(0,f.jsx)(i.C,{name:l})),(0,n.A)(this,"handleGetTipsClassName",l=>w()("arrangeTips",(0,h.cX)()?"mac":"windows",l))}render(){const{options:l,value:C,disabled:v,className:a,isToolTip:P}=this.props;return(0,f.jsx)(c.N,{className:w()("radio-line",a,{disabled:v}),children:P?l.map(b=>{let{title:g,keyName:S,icon:t,value:_,disabled:I}=b;return(0,f.jsx)(u.Q,{icon:this.handleRenderIcon(t),content:this.handleGetContent(g,S),tipsClassName:this.handleGetTipsClassName(S),dataValue:_,onClick:this.handleChange(I),disabled:I,className:w()("radio-option","check-line",{active:!I&&Array.isArray(C)?C.includes(_):C===_},{disabled:I})},_)}):l.map(b=>{let{label:g,value:S,disabled:t}=b;return(0,f.jsx)("li",{className:w()("radio-option","check-line",{active:!t&&Array.isArray(C)?C.includes(S):C===S},{disabled:t}),"data-value":S,onClick:this.handleChange(t),children:g},S)})})}}(0,n.A)(p,"defaultProps",{disabledRadioLine:[]})},61899:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>S});var n=e(38502),r=e(69623),c=e(4650),o=e(93446),w=e(5649),u=e(92114),d=e(25234),y=e(39117),h=e(28537),i=e(79150),f=e(58656),p=e(46953),s=e(9680),l=e(78401),C=e(72214);const v=t=>{const{name:_,varData:I,varDataType:k}=t.hotAttr;return{key:t.key,name:_,varData:I,varDataType:k}},a=1e4,P=200,b=[".var-list .var-item",".var-editor",".ModalPortal:has(>.TransitionModalMask)"],S=t=>{let{editorItem:_,position:I,needConfirm:k,onClose:j,onDelete:z,onChange:K,onConfirm:$,onClickOutside:A,autoFocus:E,style:U}=t;const O=(0,n.useRef)(null),[H,Q]=(0,n.useState)(v(_)),[N,L]=(0,n.useState)(I),[V,M]=(0,n.useState)(!1),D=(0,n.useRef)(!1),W=(0,n.useRef)(),F=(0,n.useRef)(!1),B=E==="varName",Y=E==="varData",X=!sdkStore.getHotItem(_.key),{name:G,varData:Z,varDataType:J}=H,te=pe=>{var ke;return(ke=O.current)==null||(ke=ke.$body)==null?void 0:ke.querySelector(pe)},he=(pe,ke)=>{L({left:pe,top:ke})},de=function(pe){var ke;return pe===void 0&&(pe=_.key),((ke=sdkStore.getHotItem(pe))==null?void 0:ke.hotAttr.name)||_.hotAttr.name},Se=pe=>{pe.length>P&&(pe=pe.slice(0,P),MB.notice({text:I18N.Variable.editor.invalid_overflow.replace("{n}",P),type:"warning"})),Q({...H,name:pe}),k&&M(!pe||!(0,p.FF)(pe))},xe=pe=>{pe.target.setSelectionRange(0,pe.target.value.length)},be=()=>{if(D.current=!1,F.current)return;let{name:pe}=H,ke;if(pe?(0,p.FF)(pe)?(0,s.pU)().some(Ee=>Ee.key!==_.key&&Ee.hotAttr.name===pe)&&(ke=I18N.Variable.editor.invalid_repeat):ke=/\d/.test(pe[0])?I18N.Variable.editor.invalid_start:I18N.Variable.editor.invalid_content:ke=I18N.Variable.editor.invalid_empty,ke)return MB.notice({text:ke,type:"warning"}),pe=de(),Q({...H,name:pe}),k&&M(!1),!1;const We={...H,name:pe,varData:Z};return K==null||K(_.key,We),We},ie=pe=>{F.current||K==null||K(_.key,{name:G,varData:pe})},oe=pe=>{pe.key==="Enter"&&!D.current&&pe.target&&be()&&pe.target.blur()},ue=pe=>{Q({...H,varData:pe})},ve=pe=>{var ke;if(k){j();return}const We=be();if(!We){j(),pe.preventDefault();return}const Ee={name:We.name,varData:We.varData};J===y.I.number&&(ke=W.current)!=null&&ke.$input&&(Ee.varData=we(Number(W.current.$input.value))),K==null||K(We.key,Ee),j()},re=pe=>{pe.preventDefault(),z==null||z()},fe=function(pe){if(pe===void 0){var ke;pe=(ke=W.current)==null||(ke=ke.$input)==null?void 0:ke.value}let We=!0;J==="number"&&(We=String(pe).length>0&&!Number.isNaN(Number(pe))&&!(String(pe).length>12||Math.abs(pe)>=1e12)),k&&M(!We)},we=pe=>{var ke;if(String(pe).length>12||Math.abs(pe)>=1e12){var We,Ee;MB.notice({text:I18N.Variable.editor.invalid_number,type:"warning"}),pe=(We=(Ee=(0,s.hZ)(_.key))==null?void 0:Ee.varData)!=null?We:0}else if(Number.isNaN(Number(pe))){var Ae,Ce;pe=(Ae=(Ce=(0,s.hZ)(_.key))==null?void 0:Ce.varData)!=null?Ae:0}return(ke=W.current)==null||ke.setState({value:pe}),ue(pe),pe},Te=pe=>{const ke=we(Number(pe.target.value));ie(ke),fe(ke)},Ie=pe=>{let ke=pe.target.value;return ke.length>a&&(MB.notice({text:I18N.Variable.editor.invalid_length.replace("{n}",a),type:"warning"}),ke=pe.target.value=ke.slice(0,a)),ue(ke),ke},le=pe=>{const ke=Ie(pe);ie(ke)},me=pe=>{ue(pe),ie(pe)},Pe=pe=>{const ke=be();ke&&($==null||$(ke.key,ke),j())};return(0,n.useEffect)(()=>{L({left:I.left,top:I.top})},[I]),(0,n.useEffect)(()=>{const pe=v(_);Q(pe),Y&&setTimeout(()=>{const ke=".var-data-item "+(pe.varDataType===y.I.string?"textarea":"input");(0,l.T5)(te(ke))},10)},[_]),(0,n.useEffect)(()=>{const pe=ke=>{var We;b.some(Ee=>ke.target.closest(Ee))||A&&!A(ke)||((We=ke.target)!=null&&We.closest("#canvas .tree-node:not(.rResCanvas)")||ke.stopPropagation(),ve(ke))};return document.addEventListener("mousedown",pe,!0),()=>{document.removeEventListener("mousedown",pe,!0)}},[ve,A]),(0,h.wo)(O,"$body"),(0,r.createPortal)((0,C.jsx)(o.A,{position:N,onMove:he,ref:O,children:(0,C.jsxs)(f.aB,{className:"var-editor",id:"var-editor",style:U,onMouseDown:pe=>pe.stopPropagation(),children:[(0,C.jsxs)("header",{type:"draggable",className:"header",children:[(0,C.jsx)("div",{className:"left",children:X?I18N.Variable.create:I18N.Variable.editor.edit}),(0,C.jsxs)("div",{className:"right",children:[!X&&(0,C.jsx)(i.A,{size:24,name:"interaction/trash",className:"del-icon",onClick:re,onMouseEnter:()=>{F.current=!0},onMouseLeave:()=>{F.current=!1}}),(0,C.jsx)(i.A,{name:"common/close",className:"close-icon",onClick:ve})]})]}),(0,C.jsxs)("div",{className:"content",children:[(0,C.jsxs)("div",{className:"var-item var-name-item",children:[(0,C.jsx)("div",{className:"var-label",children:I18N.Variable.editor.label}),(0,C.jsx)(c.A,{type:"text",className:"name-input",value:G,isAutoFocus:B,onChange:Se,onKeyDown:oe,onCompositionStart:()=>D.current=!0,onCompositionEnd:()=>D.current=!1,onBlur:be,onFocus:xe})]}),(0,C.jsxs)("div",{className:"var-item var-data-item "+J,children:[(0,C.jsx)("div",{className:"var-label",children:I18N.Variable.editor.value}),J===y.I.string&&(0,C.jsx)("textarea",{className:"string-value",value:Z,onChange:Ie,onFocus:xe,onBlur:le}),J===y.I.number&&(0,C.jsx)(w.A,{ref:W,className:"number-value",value:Z,onConfirm:we,onAfterChangeValue:fe,min:-1/0,max:1/0,precision:5,onBlur:Te}),J===y.I.boolean&&(0,C.jsxs)("div",{className:"boolean-value",children:[(0,C.jsx)(u.A,{isIOS:!0,isChecked:Z,onChange:me}),(0,C.jsx)("span",{children:String(Z)})]})]})]}),k&&(0,C.jsx)("footer",{className:"footer",children:(0,C.jsx)(d.Oc,{type:"primary",size:"tiny",corner:"smooth",onClick:Pe,disabled:V,children:I18N.Common.confirm2})})]})}),document.body)}},61924:(Fe,ee,e)=>{"use strict";e.d(ee,{Cl:()=>P,Em:()=>S,_C:()=>b,wM:()=>t,zi:()=>I});var n=e(38502),r=e(12211),c=e(37780),o=e(40486),w=e(10472),u=e(60651),d=e(4235),y=e(18381),h=e(67934),i=e(81973),f=e(70422),p=e(20089),s=e(12410),l=e(19969),C=e(13923),v=e(70248);const a=(0,r.Mz)([d.nE,w.r,h.vy,i.w_,i.Yg,f.zX,i._S,u.jI],(k,j,z,K,$,A,E,U)=>{let{isEditingCombo:O}=j;return{selectedItems:k,isEditingCombo:O,activeLinkCid:z,selectOptionNode:K,selectCarouselImage:$,selectTableCellInfo:A,currentPath:E,editingPanelCid:U}}),P=k=>{var j;let{from:z}=k;const{activeLinkCid:K,isEditingCombo:$,selectCarouselImage:A,selectedItems:E,selectOptionNode:U,selectTableCellInfo:O,currentPath:H,editingPanelCid:Q}=(0,y.d4)(a),N=(0,y.d4)(i.ue),{hasSubKey:L,selectSubItaType:V}=(0,n.useMemo)(()=>(0,o.LE)({activeLinkCid:K,selectOptionNode:U,selectCarouselImage:A,items:E,selectTableCellInfo:O,uiFrom:z}),[K,z,E,A,U,O]),M=$?"combo":"non-combo",D=(0,y.d4)(c.R7.query.getSelectInteractionKeyList),W=(0,y.d4)(c.R7.query.getSelectItaInfo),F=D[0],{editingInteraction2:B,interactionTree:Y,isTriggerItemInCanvs:X,itemKey:G,selectTreeNode:Z,interactionStore:J,selectTreeNode2:te}=(0,n.useMemo)(()=>{let de,Se,xe="",be,ie,oe,ue;const ve=E[0];if(E.length===1){const{key:re}=ve,fe=Q?(0,v.j_)([Q,re]):re;xe=fe,be=sdkStore.locUpHotCanvasKey(re);const we=(0,o.gB)(ve,{activeLinkCid:K,selectOptionNode:U,selectCarouselImage:A,selectSubItaType:V,currentPath:H,keyToAccessIntAct:fe});we.length===0?W.type==="action"||W.type==="trigger"?(ue=(0,C.E)({widget:ve,selectSubItaType:V,buildTreeRes:(0,o.D8)({actionDummyKey:F}),type:"noData"}),de=ue._interactionTree,oe=ue.query.getNode(F)):(z==="treePanelFloat"?ue=(0,C.E)({widget:ve,selectSubItaType:V,buildTreeRes:(0,o.D8)({actionDummyKey:(0,o.m1)("tap")}),type:"defaultData"}):ue=(0,C.E)({widget:ve,selectSubItaType:V,buildTreeRes:(0,o.ky)(),type:"defaultData"}),de=ue._interactionTree,oe=ue.query.getNode((0,o.m1)("tap"))):(ue=(0,C.E)({widget:ve,selectSubItaType:V,buildTreeRes:(0,o.tu)({sdk:sdkStore,interactions:we,itemKey:fe,vMode:M,selectInteractionKey:F}),type:"hasData"}),de=ue._interactionTree,W.type==="normal"&&(Se=ue.query.getInteractionByKey(F)),ie=(0,o.zS)(F,de),oe=(0,o.zS)(F,de))}return{interactionTree:de,editingInteraction2:Se,itemKey:xe,isTriggerItemInCanvs:be,selectTreeNode:ie,interactionStore:ue,selectTreeNode2:oe}},[K,A,F,U,V,E,M,H,W,z,Q,N]),he=g((j=E[0])==null?void 0:j.key);return{editingInteraction2:B,itemKey:G,currentCanvas:he,selectInteractionKey:F,interactionTree:Y,selectTreeNode:Z,isTriggerItemInCanvs:X,hasSubKey:L,selectSubItaType:V,currentPath:H,selectCarouselImage:A,selectItaInfo:W,interactionStore:J,selectTreeNode2:te}},b=k=>{let{from:j}=k;const z=(0,y.d4)(d.nE),K=(0,y.d4)(l.wN),{isEditingCombo:$}=(0,y.d4)(w.r),A=(0,y.d4)(u.bt),{editingInteraction2:E,itemKey:U,currentCanvas:O,selectInteractionKey:H,interactionTree:Q,isTriggerItemInCanvs:N,hasSubKey:L,selectItaInfo:V,selectSubItaType:M,selectTreeNode:D,currentPath:W,selectCarouselImage:F,interactionStore:B,selectTreeNode2:Y}=P({from:j}),X=(0,y.d4)(s.X.query.getIsShallowEditing);let G="none";if(!$){var Z;z.length>1?G="isMultiSelectItem":((Z=z[0])==null?void 0:Z.hotAttr.type)===p.x.WCode?G="isWCode":N||(G="notInCanvas"),X&&(G="isEditingSwimlane")}return{interactionTree:Q,editingInteraction2:E,itemKey:U,currentCanvas:O,selectedItems:z,isGlobalLink:K,isEditingCombo:$,editingPanelRefPage:A,selectInteractionKey:H,isTriggerItemInCanvs:N,hasSubKey:L,selectItaInfo:V,selectTreeNode:D,selectTreeNode2:Y,currentPath:W,selectCarouselImage:F,disableType:G,selectSubItaType:M,interactionStore:B}},g=k=>{const j=(0,y.d4)(u.jI);return(0,n.useMemo)(()=>{const K=sdkStore.locUpColdCanvasKey(j||k||"");return K?sdkStore.getHotItem(K):void 0},[j,k])},S=k=>{const[j,z]=(0,n.useState)(void 0),K=(0,n.useCallback)($=>{k.isOpenContextMenu||z($)},[k.isOpenContextMenu]);return{hovered:j,handleHover:K}},t=(0,n.createContext)(null),_=new Map,I=k=>{let{cacheKey:j,interactionTree:z}=k;const K=(0,n.useRef)(z?{...z}:void 0),[$,A]=(0,n.useState)([]),E=(0,n.useCallback)((U,O)=>{let H=[...$];O==="del"?H=H.filter(Q=>Q!==U):H.push(U),A(H),_.set(j,H)},[A,$,j]);return(0,n.useLayoutEffect)(()=>{const U=_.get(j);A(U||[])},[]),(0,n.useLayoutEffect)(()=>{var U;let O=[..._.get(j)||[]];const H=[...((U=K.current)==null?void 0:U.sub)||[]],Q=[...(z==null?void 0:z.sub)||[]];if(!Q.length||!O.length||!H.length){K.current=z;return}let N=!1;for(const L of Q){const V=H.find(M=>M.attr.trigger===L.attr.trigger);V&&$.includes(V.attr.key)&&L.sub.length!==V.sub.length&&(O=O.filter(M=>M!==L.attr.key),N=!0)}N&&(A(O),_.set(j,O)),K.current=z},[z,$,j]),{collapseList:$,handleCollapse:E}}},62118:(Fe,ee,e)=>{"use strict";e.d(ee,{Qc:()=>d,lk:()=>w});var n=e(27660),r=e(83199),c=e(78661),o=e(20089);const w={cut_mac:"<kbd>\u2318</kbd><kbd>X</kbd>",cut_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>X</kbd>",save_mac:"<kbd>\u2318</kbd><kbd>S</kbd>",save_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>S</kbd>",undo_mac:"<kbd>\u2318</kbd><kbd>Z</kbd>",undo_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>Z</kbd>",redo_mac:"<kbd>\u21E7</kbd><kbd>\u2318</kbd><kbd>Z</kbd>",redo_win:"<kbd>Shift</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>Z</kbd>",duplicate_mac:"<kbd>\u2318</kbd><kbd>C</kbd>",duplicate_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>C</kbd>",paste_mac:"<kbd>\u2318</kbd><kbd>V</kbd>",paste_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>V</kbd>",trash_mac:"<kbd>Del/Backspace</kbd>",trash_win:"<kbd>Del/Backspace</kbd>",play_toolbar_mac:"<kbd>\u2318</kbd><kbd>P</kbd>",play_toolbar_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>P</kbd>",align_left_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>L</kbd>",align_left_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>L</kbd>",align_center_v_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>C</kbd>",align_center_v_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>C</kbd>",align_right_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>R</kbd>",align_right_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>R</kbd>",align_top_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>T</kbd>",align_top_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>T</kbd>",align_center_h_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>M</kbd>",align_center_h_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>M</kbd>",align_bottom_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>B</kbd>",align_bottom_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>B</kbd>",dist_evenly_h_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>H</kbd>",dist_evenly_h_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>H</kbd>",dist_evenly_v_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>U</kbd>",dist_evenly_v_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>U</kbd>",z_front_mac:"<kbd>\u21E7</kbd><kbd>\u2318</kbd><kbd>\u2191</kbd>",z_front_win:"<kbd>Shift</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>\u2191</kbd>",z_back_mac:"<kbd>\u21E7</kbd><kbd>\u2318</kbd><kbd>\u2193</kbd>",z_back_win:"<kbd>Shift</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>\u2193</kbd>",z_forward_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>\u2191</kbd>",z_forward_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>\u2191</kbd>",z_backward_mac:"<kbd>\u2325</kbd><kbd>\u2318</kbd><kbd>\u2193</kbd>",z_backward_win:"<kbd>Alt</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>\u2193</kbd>",group_mac:"<kbd>\u2318</kbd><kbd>G</kbd>",group_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>G</kbd>",ungroup_mac:"<kbd>\u21E7</kbd><kbd>\u2318</kbd><kbd>G</kbd>",ungroup_win:"<kbd>Shift</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>G</kbd>",text_bold_mac:"<kbd>\u2318</kbd><kbd>B</kbd>",text_bold_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>B</kbd>",text_italic_mac:"<kbd>\u2318</kbd><kbd>I</kbd>",text_italic_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>I</kbd>",text_underline_mac:"<kbd>\u2318</kbd><kbd>U</kbd>",text_underline_win:"<kbd>Ctrl</kbd><kbd>+</kbd><kbd>U</kbd>",text_lineThrough_mac:"<kbd>\u21E7</kbd><kbd>\u2318</kbd><kbd>S</kbd>",text_lineThrough_win:"<kbd>Shift</kbd><kbd>+</kbd><kbd>Ctrl</kbd><kbd>+</kbd><kbd>S</kbd>",catalogue_mac:"<kbd>\u2325</kbd><kbd>1</kbd>",catalogue_win:"<kbd>Alt</kbd><kbd>1</kbd>",layer_mac:"<kbd>\u2325</kbd><kbd>2</kbd>",layer_win:"<kbd>Alt</kbd><kbd>2</kbd>",basket_mac:"<kbd>\u2325</kbd><kbd>3</kbd>",basket_win:"<kbd>Alt</kbd><kbd>3</kbd>"},u=(0,n.R)(()=>({[o.x.Canvas]:{left:I18N.BasicWidgetsNav.add_artboard,right:["A"]},[o.x.WRichText]:{left:I18N.BasicWidgetsNav.text,right:["T"]},[o.x.WRect]:{left:I18N.BasicWidgetsNav.rounded_rect,right:["R"]},[o.x.WOval]:{left:I18N.BasicWidgetsNav.circle,right:["O"]},[o.x.WLine]:{left:I18N.w.wLine,right:["L"]},[o.x.WLR]:{left:I18N.BasicWidgetsNav.lr,right:["H"]},[o.x.WImage]:{left:I18N.BasicWidgetsNav.image_view,right:null},[o.x.WSticky]:{left:I18N.w.sticky,right:["N"]},[o.x.WElbow]:{left:I18N.BasicWidgetsNav.wired,right:["E"]},[o.x.WTear]:{left:I18N.w.annotate,right:["W"]},[o.x.WVector]:{left:I18N.BasicWidgetsNav.wVector,right:["P"]},preview:{left:I18N.ToolBar.preview,right:c.V.preview},comment:{left:I18N.pPreviewToolbar.comment,right:["C"]},handMode:{left:I18N.BasicWidgetsNav.hand_tool,right:null},AI:{left:I18N.ChatGPT.mockitt_ai,right:null},pencil:{left:I18N.BasicWidgetsNav.pencil,right:c.V.pencil}})),d=y=>{const h=u(),{left:i,right:f}=h[y]||{},p=f&&f.map(s=>"<kbd>"+s+"</kbd>").join("");return(0,r.u)({text:i,key:p})}},62150:(Fe,ee,e)=>{"use strict";e.d(ee,{W:()=>d});var n=e(67787),r=e(17307),c=e(46464),o=e(69246),w=e(76613),u=e(72214);const d=h=>{let{renderItem:i,targetKey:f}=h;return f===w.rE?(0,u.jsx)(y,{children:(0,u.jsx)(r.C,{size:20,name:"setting_panel/event/current_widget"})}):f===w.VZ?(0,u.jsx)(y,{children:(0,u.jsx)(r.C,{size:20,name:"left_panel/master/new"})}):i?(0,u.jsx)(y,{children:i.hotAttr.bunch==="rbPage"?(0,u.jsx)(o.k,{icon:i.hotAttr.icon,isExpand:!0,theme:"dark"}):(0,u.jsx)(c.A,{widget:i,isDynamic:(i==null?void 0:i.hotAttr.basket)==="bDanli"})}):null},y=n.Ay.div.withConfig({displayName:"RenderIcon__StyledRenderIcon",componentId:"sc-l7b8tv-0"})(["display:flex;svg{width:20px;height:20px;}.svg-icon-path-icon{transform:scale(0.7);}.group-icon path{fill:transparent;}path{fill:currentColor;}"])},62448:(Fe,ee,e)=>{"use strict";e.d(ee,{Z:()=>Te});var n=e(51326);const r=function(le,me,Pe){return me===void 0&&(me=null),Pe===void 0&&(Pe=null),{value:le,prev:me,next:Pe}},c=()=>{let le,me,Pe;const pe=()=>{le=r(null),me=r(null,le),le.next=me,Pe=0};pe();const ke=(Ae,Ce)=>{const{next:_e}=Ce;Ae.prev=Ce,Ae.next=_e,Ce.next=_e.prev=Ae,Pe++},We=(Ae,Ce)=>{const{prev:_e}=Ce;Ae.prev=_e,Ae.next=Ce,Ce.prev=_e.next=Ae,Pe++},Ee=Ae=>{const{prev:Ce,next:_e}=Ae;Ce.next=_e,_e.prev=Ce,Ae.prev=Ae.next=null,Pe--};return{clear:pe,getHead:()=>le,getTail:()=>me,getLength:()=>Pe,insertAfter:ke,insertBefore:We,remove:Ee,removeBetween:(Ae,Ce)=>{const{prev:_e}=Ae,{next:Ge}=Ce;_e.next=Ge,Ge.prev=_e,Ae.prev=Ce.next=null;let Xe=Ae;for(;Xe;)Pe--,Xe=Xe.next},forEach:Ae=>{let Ce=le.next,_e=0;for(;Ce!==me;)Ae(Ce,_e),Ce=Ce.next,_e++},forEachReverse:Ae=>{let Ce=me.prev,_e=Pe-1;for(;Ce!==le;)Ae(Ce,_e),Ce=Ce.prev,_e--},reverse:()=>{let Ae=le.next;for(;Ae!==me;){const{prev:Ge,next:Xe}=Ae;Ae.prev=Xe,Ae.next=Ge,Ae=Xe}const{next:Ce}=le,{prev:_e}=me;le.next=_e,me.prev=Ce,_e.prev=le,Ce.next=me},moveToFirst:Ae=>{if(Ae===le.next)return;const{prev:Ce,next:_e}=Ae;Ce.next=_e,_e.prev=Ce,Ae.prev=le,Ae.next=le.next,Ae.next.prev=le.next=Ae},moveToLast:Ae=>{if(Ae===me.prev)return;const{prev:Ce,next:_e}=Ae;Ce.next=_e,_e.prev=Ce,Ae.next=me,Ae.prev=me.prev,Ae.prev.next=me.prev=Ae},push:Ae=>We(Ae,me),pop:()=>Ee(me.prev),unshift:Ae=>ke(Ae,le),shift:()=>Ee(le.next)}},o=(le,me,Pe,pe)=>({...r(me),key:le,size:Pe,expireAt:pe}),w=le=>{let{valueSizeSumMax:me,valueSizeSingleMax:Pe=Math.max(.05*me,1),expireAfter:pe=6e4,eventHub:ke=(0,n.wz)()}=le;const We=!!ke,{clear:Ee,subscribe:Ae,unsubscribe:Ce,send:_e}=We?ke:{},Ge=new Map,Xe=c();let Ue=0;const pt=Qe=>{Ge.set(Qe.key,Qe),Xe.unshift(Qe),Ue+=Qe.size,We&&_e({type:"add",key:Qe.key,payload:Qe.value})},Ye=Qe=>{Ge.delete(Qe.key),Xe.remove(Qe),Ue-=Qe.size,We&&_e({type:"delete",key:Qe.key,payload:Qe.value})};return{hasEventHub:We,clearEventHub:Ee,subscribe:Ae,unsubscribe:Ce,clear:()=>Ge.forEach(Ye),getSize:Xe.getLength,getValueSizeSum:()=>Ue,set:function(Qe,lt,tt,qe){tt===void 0&&(tt=1),qe===void 0&&(qe=Date.now()+pe);const et=Ge.get(Qe);if(et&&Ye(et),!(tt>Pe)){for(;tt+Ue>me;)Ye(Xe.getTail().prev);pt(o(Qe,lt,tt,qe))}},get:function(Qe,lt){lt===void 0&&(lt=Date.now());const tt=Ge.get(Qe);if(tt)return tt.expireAt<=lt?Ye(tt):(Xe.moveToFirst(tt),tt.value)},touch:function(Qe,lt){lt===void 0&&(lt=Date.now()+pe);const tt=Ge.get(Qe);if(tt)return tt.expireAt=lt,Xe.moveToFirst(tt),tt.value},delete:Qe=>{const lt=Ge.get(Qe);return lt&&Ye(lt),lt&&lt.value},saveCacheList:()=>{const Qe=[];return Xe.forEachReverse(lt=>{const{key:tt,value:qe,size:et,expireAt:st}=lt;Qe.push({key:tt,value:qe,size:et,expireAt:st})}),Qe},loadCacheList:function(Qe,lt){return lt===void 0&&(lt=Date.now()),Qe.forEach(tt=>{let{key:qe,value:et,size:st,expireAt:at}=tt;if(at<=lt)return;const ct=Ge.get(qe);ct&&ct.expireAt>=at||(ct&&Ye(ct),pt(o(qe,et,st,at)))})}}};var u=e(80730);const{fetch:d}=window,y=async le=>d(le,{method:"GET",cache:"force-cache",mode:"cors",credentials:"same-origin"}),h=w({valueSizeSumMax:512*1024*1024,valueSizeSingleMax:64*1024*1024,expireAfter:1/0,eventHub:null}),i=async le=>{let me=h.get(le);return me||(me=await(await y(le)).text(),h.set(le,me,me.length)),me},f=async le=>{let me=h.get(le);return me===void 0&&(me=await(0,u.G6)(await(await y(le)).blob()),h.set(le,me,me.length)),me},p=(le,me)=>{if(s.exec(le))return le;const[Pe]=s.exec(me)||[""],pe=le[0]!=="/"?[...me.split("/").slice(0,-1),...le.split("/")]:[Pe.slice(0,-1),...le.split("/").slice(1)],ke=[];return pe.forEach(We=>We===".."?ke.pop():ke.push(We)),ke.join("/")},s=/((https?:)?\/\/)?[-\w@:%._+~#=]{2,256}\.[a-z]{2,63}(:\d{1,5})?\//,l=async(le,me)=>{if(le.startsWith("data:"))return le;if(le.startsWith("blob:"))return f(le);me&&(le=p(le,me));const Pe=C.exec(le);return Pe&&v[Pe[1].toLowerCase()]?f(le):""},C=/\.([0-9a-z]{3,5})(?:[?#]|$)/i,v={woff2:"font/woff2",woff:"font/woff",ttf:"font/ttf",otf:"font/otf",svg:"image/svg+xml",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",bmp:"image/bmp",ico:"image/x-icon"},a=async le=>{let{urlMap:me={},fragList:Pe=[]}=le;for(const pe of Object.values(me)){const{urlString:ke,originUrl:We,isIgnore:Ee}=pe;pe.dataUrl=Ee?ke:await l(ke,We)||""}for(let pe=0,ke=Pe.length;pe<ke;pe++){const We=Pe[pe];typeof We=="object"&&(Pe[pe]=We.dataUrl)}return Pe},P=le=>{let{extractorList:me,initUrlMap:Pe,trimComment:pe}=le;const ke=[],We=Pe||{},Ee={};let Ae=!1;return{getOutput:()=>(Ae=!0,{fragList:ke,urlMap:We,fontFaceMap:Ee}),collect:function(Ge,Xe){if(Xe===void 0&&(Xe=""),Ae)throw new Error("doneOutput");if(Ge&&pe&&(Ge=pe(Ge)),!Ge)return;const Ue=Ye=>(We[Ye]===void 0&&(We[Ye]={urlString:Ye,originUrl:Xe,dataUrl:""}),We[Ye]);let pt=[Ge];for(const Ye of me){const Qe=[];for(const lt of pt)Ye(Qe,lt,Ue);pt=Qe}if(ke.push(...pt),A.test(Ge)){const Ye=lt=>{const[tt]=U(lt),qe=[];if(tt&&B([],lt,st=>{const at=Ue(st);return qe.push(at),at}),!qe.length)return;const et=tt+"|"+H(lt)+"|"+N(lt);Ee[et]===void 0?Ee[et]=new Set(qe):b(Ee[et],qe)};let Qe;for(;Qe=$.exec(Ge);){const[lt]=Qe;Ye(lt)}}}}},b=(le,me)=>me.forEach(le.add,le),g=(le,me)=>{if(!le.global)throw new Error("[createUrlExtractor] global expected for regexpSearchBlock: "+le);if(me.global)throw new Error("[createUrlExtractor] non-global expected for regexpExtractUrl: "+me);return(Pe,pe,ke)=>{if(typeof pe=="object"){Pe.push(pe);return}let We=0,Ee;for(;(Ee=le.exec(pe))!==null;){const Ae=Ee[0],Ce=me.exec(Ae),_e=Ce&&Ce[1];if(!_e||_e.startsWith("#"))continue;const Ge=Ee.index+Ce.index+Ce[0].indexOf(_e),Xe=pe.slice(We,Ge);Pe.push(Xe),Pe.push(ke(_e)),We=Ge+_e.length}Pe.push(pe.substr(We))}},S=/<!--([\s\S]*?)-->/g,t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,k=g(/<img [^>]*>/g,/src=['"]([^'"]*)['"]/),j=/style=['"].*url\([^)]*\).*['"]/g,z=/url\(['"]?([^)'"]*)['"]?\)/,K=g(j,z),$=/@font-face\s*{[^}]*font-family[^}]+}/g,A=/font(-family)?\s*:/,E=/font(-family)?\s*:\s*([^;}>]+)\s*[;}>]?/g,U=le=>{const me=[];let Pe;for(;Pe=E.exec(le);){const[,pe,ke]=Pe;ke&&ke.split(",").forEach((We,Ee)=>{Ee===0&&!pe&&(We=We.trim(),We=We.split(/["']$/.test(We)?/["']/:" ").filter(Boolean).pop());const Ae=V(We);Ae&&me.push(Ae)})}return me},O=/font-style\s*:\s*(\w+)/,H=le=>(O.exec(le)||[])[1]||"normal",Q=/font-weight\s*:\s*(\w+)/,N=le=>{let me=(Q.exec(le)||[])[1];return me==="normal"?me="400":me==="bold"&&(me="700"),me||"400"},L=/^["'](.*)["']$/,V=function(le){return le===void 0&&(le=""),le.trim().replace(L,"$1")},M=()=>P({extractorList:[k,K],trimComment:le=>le.replace(S,"")}),D=/url\([^)]*\)/g,W=g(D,z),B=g(D,/(\/?(?:\.?\.\/)*\b[-\w@:%_+.~#?&/= ]+\.(?:woff2|woff|ttf|TTF|OTF|otf|WOFF2|WOFF|svg|eot)(?:[?#][-\w%._#=]{1,256})?)/),Y=()=>P({extractorList:[W,B],trimComment:le=>le.replace(t,"")});var X=e(1923),G=e(82305);const{document:Z}=window,J=le=>le.map(me=>me.replace(/<br>/g,"<br/>").replace(/&nbsp;/g," ").replace(oe,"")),te=le=>{const me=new Set,Pe=new Set,pe=We=>{for(const Ee of We)Ee.id&&me.add(Ee.id),Ee.classList&&Ee.classList.length&&Ee.classList.forEach(Ae=>Pe.add(Ae)),Ee.children.length&&pe(Ee.children)},ke=Z.createElement("div");return ke.innerHTML=le,pe(ke.children),{isUseless:We=>{if(We.includes(":hover")||We.includes(":focus")||We.includes(":active")||We.includes(":selection"))return!0;const Ee=/^\w*\.([\w-_]+)(?:\.|\[|>|:| |$)/.exec(We);if(Ee&&!Pe.has(Ee[1]))return!0;const Ae=/^\w*#([\w-_]+)(?:\.|\[|>|:| |$)/.exec(We);return!!(Ae&&!me.has(Ae[1]))},isUselessCSSR:We=>{if(We==="DROP")return!0;if(We==="????")return!1;let Ee=We.length;for(const[Ae,Ce]of We)!(Ae==="Class"?Pe:me).has(Ce)&&Ee--;return Ee===0}}},he=le=>{if(le instanceof CSSKeyframesRule)return"DROP";if(le instanceof CSSStyleRule){const me=[],Pe=(0,X.wE)(le.selectorText+"{}")[0];for(const pe of Pe.props){if(pe.includes(":hover")||pe.includes(":focus")||pe.includes(":active")||pe.includes(":selection"))continue;const ke=/^\w*\.([\w-_]+)(?:\.|\[|>|:| |$)/.exec(pe);if(ke){me.push(["Class",ke[1]]);continue}const We=/^\w*#([\w-_]+)(?:\.|\[|>|:| |$)/.exec(pe);if(We){me.push(["Id",We[1]]);continue}return"????"}return me.length===0?"DROP":me}return"????"},de=le=>["<style>",ue,...le,"</style>"],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['<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="'+Pe+'" height="'+pe+'"><switch>','<foreignObject width="'+Pe+'" height="'+pe+'"><body xmlns="http://www.w3.org/1999/xhtml" style="font-size:16px">',...me,"</body></foreignObject>",'<text font-size="24"><tspan x="'+Pe/2+'" y="'+pe/2+'" text-anchor="middle">Feature not supported</tspan></text>',"</switch></svg>"]},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;at<ct;at++){const rt=st.sheet.cssRules[at],At=ie(rt,Ae)?"":rt.cssText;Ce.push([At,""])}performance.measure(Ee+":cssString-trim",Ee+":cssLinkPair-done");const Ge=Y();for(const[st,at]of Ce)Ge.collect(st,at);const Xe=Ge.getOutput();We(Xe);const Ue=de(await a(Xe));performance.measure(Ee+":cssString",Ee+":nameSetConf-done"),performance.mark(Ee+":cssString-done");const pt=M();me.forEach(st=>pt.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 <style>\n html, body {\n margin: 0;\n width: 100%;\n height: 100%;\n user-select: none;\n }\n ::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n \n ::-webkit-scrollbar-corner {\n background-color: transparent;\n }\n ::-webkit-scrollbar-thumb {\n background-color: rgb(219, 219, 219);\n border-radius: 4px;\n }\n ::-webkit-scrollbar-track {\n background-color: transparent;\n }\n </style>\n <script>\n // \u8BBE\u7F6Eiframe\u7684\u5BBD\u9AD8\u4E3A100%\n document.addEventListener('DOMContentLoaded', () => {\n document.documentElement.style.setProperty('--uiWidth', `100%`);\n document.documentElement.style.setProperty('--uiHeight', `100%`);\n }, true);\n <\/script>\n",Y="\n <style>\n * {\n cursor: "+F.M.default+" !important;\n }\n </style>\n",X="\n <script>\n // \u7981\u7528 event \u4E8B\u4EF6\n const events = ['contextmenu', 'mousedown', 'mouseup', 'mousemove', 'mouseenter', 'mouseleave', 'keydown', 'keyup', 'keypress' ]\n events.forEach(event => {\n document.addEventListener(event, (e) => {\n e.preventDefault();\n e.stopImmediatePropagation();\n }, true);\n })\n // \u7981\u7528\u5C4F\u5E55\u7F29\u653E\n document.addEventListener('wheel', function (e) {\n if (e.ctrlKey) {\n e.preventDefault();\n e.stopPropagation()\n }\n }, { passive: false })\n <\/script>\n",G="\n<script>\nconst selectedElementSet = new Set()\nconst elementOutlineMap = new WeakMap()\nconst HOVER_OUTLINE = '2px solid rgba(128, 188, 255, 1)'\nconst SELECT_OUTLINE = '2px solid rgba(22, 132, 252, 1)'\n\nfunction stopPropagation(e) {\n e.stopPropagation()\n e.preventDefault()\n e.stopImmediatePropagation()\n}\n\nfunction setOutline(targetElement, outline) {\n const originOutline = targetElement.style.outline\n const originOutlineOffset = targetElement.style.outlineOffset\n \n // \u53EA\u6709\u7B2C\u4E00\u6B21\u8BBE\u7F6Eoutline\u65F6\u624D\u8BB0\u5F55\u539F\u59CBoutline\n if(!elementOutlineMap.has(targetElement)) elementOutlineMap.set(targetElement, { originOutline, originOutlineOffset })\n\n targetElement.style.outline = outline\n targetElement.style.outlineOffset = '-2px'\n}\n\nfunction restoringOutline(targetElement) {\n const { originOutline, originOutlineOffset } = elementOutlineMap.get(targetElement) || { originOutline: '', originOutlineOffset: ''}\n targetElement.style.outline = originOutline\n targetElement.style.outlineOffset = originOutlineOffset\n}\n\nfunction mouseOverHandler(event) {\n stopPropagation(event)\n const targetElement = event.target\n if(selectedElementSet.has(targetElement)) return\n setOutline(targetElement, HOVER_OUTLINE)\n}\n\nfunction mouseOutHandler(event) {\n stopPropagation(event)\n const targetElement = event.target\n if(selectedElementSet.has(targetElement)) return\n restoringOutline(targetElement)\n}\n\nfunction clickHandler(event) {\n stopPropagation(event)\n if(event.shiftKey) {\n shiftKeySelectElement(event)\n } else {\n commonSelectElement(event)\n } \n const selectedElementList = Array.from(selectedElementSet).map(element => {\n const cloneElement = element.cloneNode(true)\n const { originOutline, originOutlineOffset } = elementOutlineMap.get(element) || { originOutline: '', originOutlineOffset: ''}\n cloneElement.style.outline = originOutline\n cloneElement.style.outlineOffset = originOutlineOffset\n return cloneElement.outerHTML\n })\n window.parent.postMessage({type: 'updateSelectedElement', selectedElementList}, '*')\n}\n\nfunction clearSelectedElement() {\n selectedElementSet.forEach(element => { restoringOutline(element) })\n selectedElementSet.clear()\n}\n\nfunction commonSelectElement(event) {\n clearSelectedElement()\n const targetElement = event.target\n if(selectedElementSet.has(targetElement)) return\n setOutline(targetElement, SELECT_OUTLINE)\n selectedElementSet.add(targetElement)\n}\n\nfunction shiftKeySelectElement(event) {\n const targetElement = event.target\n if(!selectedElementSet.has(targetElement)) {\n setOutline(targetElement, SELECT_OUTLINE)\n selectedElementSet.add(targetElement)\n } else {\n restoringOutline(targetElement)\n selectedElementSet.delete(targetElement)\n }\n}\n\n\ndocument.addEventListener('mouseover', mouseOverHandler, true);\ndocument.addEventListener('mouseout', mouseOutHandler, true);\ndocument.addEventListener('click', clickHandler, true);\n\nwindow.addEventListener('message', (e) => {\n if(e.data.type === 'clearSelectedElement') {\n clearSelectedElement();\n }\n});\n<\/script>\n",Z="\n<script>\n window.addEventListener('message', function (e) {\n if (e.data.type === 'reloadWidget') {\n window.location.reload()\n }\n })\n<\/script>\n",J={"entry:aiComponent:open:mode":(re,fe)=>{let{getState:we,dispatch:Te}=re,{payload:Ie}=fe;const le=we(),{isLoading:me,key:Pe}=(0,v.L4)(le),pe=sdkStore.getHotItem(Pe),ke=Pe?pe&&sdkStore.isTrashed(Pe):!1;if(me&&!ke){MB.notice({text:"AI \u7EC4\u4EF6\u6B63\u5728\u751F\u6210\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5",type:"info"});return}if(Te(E.GO.select([])),Te({type:"ai-component:update:isInAIComponentCreateMode",payload:{isInAIComponentCreateMode:!0}}),Te({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!0}}),Ie!=null&&Ie.userTextContent){const{setGenerateContentCache:We}=t.s5;Te({type:"ai-component:update:inputContainerMode",payload:{inputContainerMode:"input"}}),We(Ie.userTextContent)}},"entry:aiComponent:exit:mode":(re,fe)=>{let{getState:we,dispatch:Te}=re,{payload:{ignoreInputContainerChange:Ie=!1}={}}=fe;Te({type:"ai-component:update:isInAIComponentCreateMode",payload:{isInAIComponentCreateMode:!1}}),!Ie&&Te({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!1}}),Te({type:"ai-component:update:createStartPoint",payload:{createStartPoint:null}}),Te({type:"ai-component:update:createEndPoint",payload:{createEndPoint:null}}),Te({type:"ai-component:update:isInAIComponentSnapshotMode",payload:{isInAIComponentSnapshotMode:!1}}),Te({type:"ai-component:update:isOptimumLoading",payload:{isOptimumLoading:!1}})},"entry:aiComponent:exit:mode:for-toolbar":re=>{let{getState:fe,dispatch:we}=re;const Te=fe();(0,v.y1)(Te)&&we({type:"entry:aiComponent:exit:mode"})},"entry:aiComponent:create:mousedown":(re,fe)=>{let{getState:we,dispatch:Te}=re,{payload:{event:Ie}}=fe;const le=we();if(Te({type:"ai-component:update:createEndPoint",payload:{createEndPoint:null}}),Te({type:"ai-component:update:createStartPoint",payload:{createStartPoint:null}}),!(0,v.y1)(le))return;const Pe=(0,P.X_)(le),pe=(0,P.ER)(le),ke=(0,P.$S)(le),We=(0,a.mG)(Ie,{scale:Pe,offset:pe,viewportRect:ke});Te({type:"ai-component:update:createStartPoint",payload:{createStartPoint:We}}),Te({type:"ai-component:update:isDraggingMouse",payload:{isDraggingMouse:!0}})},"entry:aiComponent:create:mousemove":(re,fe)=>{let{getState:we,dispatch:Te}=re,{payload:{event:Ie}}=fe;const le=we(),me=(0,v.y1)(le),Pe=(0,v.iM)(le);if(!me||!Pe)return;const pe=(0,P.X_)(le),ke=(0,P.ER)(le),We=(0,P.$S)(le),Ee=(0,v.m7)(le),Ae=(0,a.mG)(Ie,{scale:pe,offset:ke,viewportRect:We});Te({type:"ai-component:update:createEndPoint",payload:{createEndPoint:Ae}}),Te({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!1}}),!(0,v.m9)(le)||A.Z.distance(Ee,Ae)<5||((0,$.cH)("AI_COMPONENT_CURSOR_HAS_SHOWN",!0),Te({type:"ai-component:update:isShowAIComponentTextCursor",payload:{isShowAIComponentTextCursor:!1}}))},"entry:aiComponent:create:mouseup":re=>{let{getState:fe,dispatch:we}=re;const Te=fe(),Ie=(0,v.y1)(Te),le=(0,v.iM)(Te);if(!Ie||!le)return;we({type:"ai-component:update:isDraggingMouse",payload:{isDraggingMouse:!1}}),we({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!0}});const me=(0,v.m7)(Te),Pe=(0,v.F6)(Te);A.Z.distance(me,Pe||me)>5?we({type:"entry:aiComponent:set:snapshot:base64Url",payload:{startAnchorPoint:me,endAnchorPoint:Pe}}):(we({type:"ai-component:update:createStartPoint",payload:{createStartPoint:null}}),we({type:"ai-component:update:createEndPoint",payload:{createEndPoint:null}}),t.F7.clearCache())},"entry:aiComponent:set:snapshot:base64Url":async(re,fe)=>{let{getState:we,dispatch:Te}=re,{payload:Ie}=fe;const le=we(),me=(0,P.X_)(le),Pe=(0,b.UV)(le),{startAnchorPoint:pe,endAnchorPoint:ke}=Ie,We=oe(pe,ke),Ee=await ie({createRect:We,scale:me,widgetStore:Pe});if(Ee)try{const Ae=await(0,n.G6)(Ee);t.F7.setCache(Ae)}catch(Ae){console.error(Ae)}},"entry:aiComponent:switch-snapshot-mode:handler":(re,fe)=>{let{getState:we,dispatch:Te}=re,{payload:Ie}=fe;const{nextIsSnapshotMode:le}=Ie;Te({type:"ai-component:update:isInAIComponentSnapshotMode",payload:{isInAIComponentSnapshotMode:le}}),le&&(Te({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),Te({type:"entry:toolbar:toggle:handTool"}),Te(E.GO.toggleInspectMode(!1)),Te(E.GO.toggleHandMode(!1)),Te({type:"elbow:update",payload:{isInElbowMode:!1}}),Te({type:"entry:ST:STMode:disable"}))},"entry:aiComponent:optimum:handler":async(re,fe)=>{let{getState:we,dispatch:Te}=re,{payload:Ie}=fe;const{userTextContent:le,updateUserTextContent:me,handleSelectEnd:Pe}=Ie;if((0,p.b)(le)){he("[FILTERED]","prompt");return}Te({type:"ai-component:update:isOptimumLoading",payload:{isOptimumLoading:!0}});const pe=(0,t.FG)(),ke=(Ce,_e,Ge)=>{if(Ge({type:"ai-component:update:isOptimumLoading",payload:{isOptimumLoading:!1}}),!Ce){We(_e);return}me(Ce),Pe()},We=Ce=>{he(Ce,"prompt"),Pe()},Ee=async Ce=>{let{status:_e,chunk:Ge}=Ce;try{const Ue=we(),pt=(0,v.sA)(Ue),Ye=(0,v.xn)(Ue);if(!pt||!Ye){Ae.abort();return}if(pe.saveChunk(Ge),_e==="done"){var Xe;const Qe=pe.parseChunk(),lt=((Xe=(0,t.bF)(Qe))==null?void 0:Xe.trim())||"";await ke(lt,Qe,Te),Te({type:"ai-component:update:isOptimumLoading",payload:{isOptimumLoading:!1}})}}catch(Ue){console.error("\u89E3\u6790txt\u62A5\u9519",Ue)}},Ae=new AbortController;try{await j({uId:MB.user.id,upperCid:(0,P.YT)(we()).upper_cid,V8AHText:le,handleGenerateStream:Ee,controller:Ae})}catch(Ce){if(Ce.name==="AbortError")return;console.error(Ce),Pe(),Te({type:"ai-component:update:isOptimumLoading",payload:{isOptimumLoading:!1}})}},"entry:aiComponent:send:handler":async(re,fe)=>{let{getState:we,dispatch:Te}=re,{payload:Ie}=fe;const{editComponentKey:le,userTextContent:me,snapshotBase64Url:Pe}=Ie;if((0,p.b)(me)){he("[FILTERED]","component");return}const pe=()=>{Te({type:"ai-component:clear:editingAIComponentInfo"})},ke=()=>{Te({type:"ai-component:update:isInAIComponentCreateMode",payload:{isInAIComponentCreateMode:!0}}),Te({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!0}}),pe()},We=()=>{t.F7.clearCache(),pe(),(0,W.XM)("generate")};le||(Te({type:"entry:aiComponent:exit:mode",payload:{ignoreInputContainerChange:!0}}),Te({type:"ai-component:update:isShowThinkingMode",payload:{isShowThinkingMode:!0}}),Te({type:"entry:aiComponent:request:generate-component",payload:{userTextContent:me,snapshotBase64Url:Pe,onError:ke,onDone:We}}))},"entry:aiComponent:request:generate-component":async(re,fe)=>{let{getState:we,dispatch:Te}=re,{payload:Ie}=fe;const le=we(),{userTextContent:me,snapshotBase64Url:Pe,onError:pe,onDone:ke}=Ie,We=(0,t.FG)(),Ee=(0,c.cF)();We.setChunkId(Ee);const Ae=async(Qe,lt,tt)=>{const{cid:qe}=(0,P.Ur)(le),et=MB.getScale(),{top:st,left:at}=(0,U.u5)({width:lt,height:tt,scale:et}),ct=at+lt/2,rt=st+tt/2;de({key:Ee,injection:Qe,x:ct,y:rt,w:lt,h:tt,sup:qe});const At=(0,N.Tg)({x:ct,y:rt},qe);At&&sdkStore.changeRndSup(Ee,At);const ot=sdkStore.getHotItem(Ee);Te({type:"entry:widget:change",payload:{isCreateWidget:!0,sup:ot.sup,isCombineChange:!1,flatChgList:[ot]}})},Ce=async(Qe,lt,tt)=>{if(!Qe){Ge(lt);return}Xe(tt),setTimeout(()=>{t.Bd.removeStreamingKey(Ee)},0),MB.notice({type:"success",text:"AI \u7EC4\u4EF6\u751F\u6210\u6210\u529F"}),ke&&ke(),(0,t.e$)({code:200,userTextContent:me,snapshotBase64Url:Pe,startTimestamp:pt})},_e=Qe=>{sdkStore.combineMerge("ai-component-generate"),sdkStore.deleteHotItem(Ee),pe&&pe(),Qe&&Qe()},Ge=Qe=>{he(Qe,"component"),_e(()=>(0,t.e$)({code:999,userTextContent:me,snapshotBase64Url:Pe,startTimestamp:pt}))},Xe=Qe=>{Te({type:"entry:aiComponent:update:codeWidget",payload:{widgetKey:Ee,injection:Qe}}),sdkStore.combineMerge("ai-component-generate");const lt=ue({widgetKey:Ee,injection:Qe});if(lt){const tt=ve(we,{key:Ee,action:"add",payload:{item:lt}});Te({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:Ee,type:"result",resultType:"generate",resultTmpListData:tt}})}else Te({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:Ee,type:"common"}})},Ue=async Qe=>{let{status:lt,chunk:tt}=Qe;try{We.saveChunk(tt);const qe=We.parseChunk(),{htmlContent:et,defaultWidth:st,defaultHeight:at}=await be(qe),ct=(0,O.o)(et);if(!sdkStore.getHotItem(Ee)){if(!st||!at)return;t.Bd.addStreamingKey(Ee),await Ae(ct,st,at),Te(E.GO.select([Ee])),Te({type:"ai-component:update:requestLoading",payload:{isLoading:!0,key:Ee}}),Te({type:"ai-component:update:isShowThinkingMode",payload:{isShowThinkingMode:!1}}),Te({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!1}});return}if(sdkStore.isTrashed(Ee)){Ye.abort();return}await te({chunkId:Ee,injection:ct,dispatch:Te}),lt==="done"&&await Ce(et,qe,ct)}catch(qe){console.error("\u4EE3\u7801\u89E3\u6790\u62A5\u9519",qe)}};if(!(0,V._c)({type:"widget",count:1}))return;sdkStore.combineMergeMark("ai-component-generate"),t.iC.setCache({key:We.getChunkId(),text:me,img:Pe});const pt=Date.now(),Ye=new AbortController;try{await I({uId:MB.user.id,upperCid:(0,P.YT)(le).upper_cid,V8AHText:me,V8AHImgUri:Pe,handleGenerateStream:Ue,controller:Ye})}catch(Qe){if(Qe.name==="AbortError")return;_e(()=>(0,t.e$)({code:Qe.status,userTextContent:me,snapshotBase64Url:Pe,startTimestamp:pt})),(0,L.p)("aiComponent generate fail",Qe,{uId:MB.user.id,userTextContent:me})}finally{Te({type:"ai-component:clear:requestLoading"}),sdkStore.getHotItem(Ee)&&!sdkStore.isTrashed(Ee)&&Te(E.GO.select([Ee]))}},"entry:aiComponent:request:edit-component":async(re,fe)=>{var we;let{getState:Te,dispatch:Ie}=re,{payload:le}=fe;const me=Te(),{editComponentKey:Pe,userTextContent:pe,selectedElement:ke,onError:We,onDone:Ee}=le,Ae=(0,t.FG)(),Ce=Pe;Ae.setChunkId(Ce);const _e=async(et,st,at)=>{if(!et){Xe(st);return}Ue(at),setTimeout(()=>{t.Bd.removeStreamingKey(Ce)},0),MB.notice({type:"success",text:"AI \u7EC4\u4EF6\u7F16\u8F91\u6210\u529F"}),Ee&&Ee(),(0,t.e$)({code:200,userTextContent:pe,startTimestamp:tt})},Ge=et=>{sdkStore.combineMerge("ai-component-edit"),sdkStore.canUndo()&&sdkStore.undo(),We&&We(),et&&et()},Xe=et=>{he(et,"component"),Ge(()=>(0,t.e$)({code:999,userTextContent:pe,startTimestamp:tt}))},Ue=et=>{Ie({type:"entry:aiComponent:update:codeWidget",payload:{widgetKey:Ce,injection:et}}),sdkStore.combineMerge("ai-component-edit");const st=ue({widgetKey:Ce,injection:et});if(st){const at=ve(Te,{key:Ce,action:"add",payload:{item:st}});Ie({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:Ce,type:"result",resultType:"edit",resultTmpListData:at}})}else Ie({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:Ce,type:"common"}})},pt=async et=>{let{status:st,chunk:at}=et;try{Ae.saveChunk(at);const ct=Ae.parseChunk(),{htmlContent:rt}=await be(ct),At=(0,O.o)(rt),ot=Ae.getChunkId();if(sdkStore.isTrashed(ot)){qe.abort();return}await te({dispatch:Ie,injection:At,chunkId:ot}),st==="done"&&await _e(rt,ct,At)}catch(ct){console.error("\u4EE3\u7801\u89E3\u6790\u62A5\u9519",ct)}},Ye=MB.user.id,{upper_cid:Qe}=(0,P.YT)(me),lt=(0,O.f)((we=sdkStore.getHotItem(Ce))==null?void 0:we.hotAttr.injection);sdkStore.combineMergeMark("ai-component-edit"),t.Bd.addStreamingKey(Ce),Ie({type:"entry:aiComponent:update:codeWidget",payload:{widgetKey:Ce,injection:(0,O.o)("")}}),Ie({type:"ai-component:update:requestLoading",payload:{isLoading:!0,key:Ce}}),t.iC.setCache({key:Ce,text:pe,prevHtml:lt,targetTags:ke?[ke]:[]});const tt=Date.now(),qe=new AbortController;try{await k({uId:Ye,upperCid:Qe,V8AHText:pe,V8AHPrevHtml:lt,V8AHTargetTag:ke||"",handleGenerateStream:pt,controller:qe})}catch(et){if(et.name==="AbortError")return;Ge(()=>(0,t.e$)({code:et.status,userTextContent:pe,startTimestamp:tt})),(0,L.p)("aiComponent generate fail",et,{uId:MB.user.id,userTextContent:pe})}finally{Ie({type:"ai-component:clear:requestLoading"}),sdkStore.getHotItem(Ce)&&!sdkStore.isTrashed(Ce)&&Ie(E.GO.select([Ce]))}},"entry:aiComponent:update:codeWidget":async(re,fe)=>{var we;let{getState:Te,dispatch:Ie}=re,{payload:le}=fe;const{widgetKey:me,injection:Pe,x:pe,y:ke,w:We,h:Ee,isCombineChange:Ae=!1}=le;if(sdkStore.isTrashed(me)||!((we=sdkStore.getHotItem(me))==null?void 0:we.hotAttr))return;const _e={};Pe!==void 0&&(_e.injection=Pe),pe&&(_e.x=pe),ke&&(_e.y=ke),We&&(_e.w=We),Ee&&(_e.h=Ee),Ie({type:"entry:widget:change",payload:{isCombineChange:Ae,flatChgList:[{key:me,hotAttr:_e}]}})},"entry:aiComponent:in:edit":async(re,fe)=>{let{getState:we,dispatch:Te}=re,{payload:Ie}=fe;const le=we(),me=(0,v.ul)(le),{cid:Pe,event:pe}=Ie;if(Pe===me)return;let ke=null;if(pe){const We=(0,P.X_)(le),Ee=(0,P.ER)(le),Ae=(0,P.$S)(le),Ce=(0,a.mG)(pe,{scale:We,offset:Ee,viewportRect:Ae}),_e=sdkStore.getHotItem(Pe);if(!_e)return;let{x:Ge,y:Xe,w:Ue,h:pt}=_e.hotAttr;const Ye=sdkStore.locUpHotCanvasKey(Pe);if(Ye){const lt=sdkStore.getHotItem(Ye);if(lt){const{x:tt,y:qe,w:et,h:st}=lt.hotAttr;Ge=tt-et/2+Ge,Xe=qe-st/2+Xe}}const Qe={x:Ge-Ue/2,y:Xe-pt/2};ke=A.Z.subtract(Ce,Qe)}Te({type:"ai-component:clear:editingAIComponentInfo"}),Te({type:"ai-component:update:editingAIComponentInfo",payload:{updateInfo:{key:Pe,mousePoint:ke}}}),Te({type:"ai-component:update:floatBarOperationMap",payload:{key:Pe,floatBarOperation:{type:"edit-html"}}}),t.ZF.setCache("\u7EC4\u4EF6\u4E8C\u6B21\u7F16\u8F91")},"entry:aiComponent:quit:edit":async(re,fe)=>{let{getState:we,dispatch:Te}=re,{payload:Ie}=fe;const le=(0,v.Ag)(we()),me=le==null?void 0:le.key;me&&me===Ie.widgetKey&&(Te({type:"ai-component:clear:editingAIComponentInfo"}),Te({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:me,type:"common"}}))},"entry:aiComponent:update:floatBarOperationMap":async(re,fe)=>{let{getState:we,dispatch:Te}=re,{payload:Ie}=fe;const{key:le,...me}=Ie,Pe=we(),We={...(0,v.G1)(Pe)[le]||{},...me};Te({type:"ai-component:update:floatBarOperationMap",payload:{key:le,floatBarOperation:We}})},"entry:aiComponent:float-bar:retry":async(re,fe)=>{var we;let{getState:Te,dispatch:Ie}=re,{payload:le}=fe;const me=Te(),{key:Pe}=le,ke=(0,v.G1)(me)[Pe]||{},{text:We,img:Ee,prevHtml:Ae,targetTags:Ce}=t.iC.getCache(Pe),_e=(0,t.FG)();_e.setChunkId(Pe),Ie({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:Pe,type:"loading"}});const Ge=async(rt,At,ot,Tt,ft)=>{if(!rt){Xe(At,ft,ot);return}Ue(ot,Tt,ft),setTimeout(()=>{t.Bd.removeStreamingKey(ot)},0),MB.notice({type:"success",text:"AI \u7EC4\u4EF6\u91CD\u65B0\u751F\u6210\u6210\u529F"}),(0,W.XM)(ke.resultType==="generate"?"generate":"edit")},Xe=(rt,At,ot)=>{he(rt,"component"),At({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:ot,type:"result",resultType:ke.resultType}}),sdkStore.combineMerge("ai-component-request-retry"),sdkStore.canUndo()&&sdkStore.undo()},Ue=(rt,At,ot)=>{ot({type:"entry:aiComponent:update:codeWidget",payload:{widgetKey:rt,injection:At}}),sdkStore.combineMerge("ai-component-request-retry");const Tt=ue({widgetKey:rt,injection:At});if(Tt){const ft=ve(Te,{key:rt,action:"update",payload:{item:Tt}});ot({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:rt,type:"result",resultType:ke.resultType,resultTmpListData:ft}})}else ot({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:rt,type:"common"}})},pt=()=>{Ie({type:"ai-component:update:requestLoading",payload:{isLoading:!0,key:Pe}})},Ye=async rt=>{let{status:At,chunk:ot}=rt;try{const ft=_e.getChunkId();if(sdkStore.isTrashed(ft)){Ie({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:Pe,type:"common"}}),Qe.abort();return}_e.saveChunk(ot);const Nt=_e.parseChunk(),{htmlContent:Bt,defaultWidth:zt,defaultHeight:Xt}=await be(Nt),bt=(0,O.o)(Bt);if(t.Bd.addStreamingKey(ft),ke.resultType==="generate"){if(pt(),!zt||!Xt)return;if(_e.getChunkUpdatedFlag())te({dispatch:Ie,injection:bt,chunkId:ft});else{var Tt;const jn=(Tt=sdkStore.getHotItem(ft))==null?void 0:Tt.hotAttr,{x:xo,y:Po}=xe(Se(jn),zt,Xt);te({dispatch:Ie,injection:bt,chunkId:ft,x:xo,y:Po,w:zt,h:Xt}),_e.setChunkUpdatedFlag(!0)}}else ke.resultType==="edit"&&(pt(),te({dispatch:Ie,injection:bt,chunkId:ft}));At==="done"&&await Ge(Bt,Nt,ft,bt,Ie)}catch(ft){console.error("\u4EE3\u7801\u89E3\u6790\u62A5\u9519",ft)}};sdkStore.combineMergeMark("ai-component-request-retry");const Qe=new AbortController,{requestAIHtml:lt,requestParams:tt}=await(async()=>ke.resultType==="generate"?{requestAIHtml:I,requestParams:{uId:MB.user.id,upperCid:(0,P.YT)(me).upper_cid,V8AHText:We,V8AHImgUri:Ee,handleGenerateStream:Ye,controller:Qe}}:{requestAIHtml:k,requestParams:{uId:MB.user.id,upperCid:(0,P.YT)(me).upper_cid,V8AHText:We,V8AHPrevHtml:Ae,V8AHTargetTag:(Ce==null?void 0:Ce.join(""))||"",handleGenerateStream:Ye,controller:Qe}})(),qe=_e.getChunkId(),{injection:et,w:st,h:at}=((we=sdkStore.getHotItem(qe))==null?void 0:we.hotAttr)||{},ct=ve(Te,{key:qe,action:"updateItem",payload:{item:{injection:et,w:st,h:at}}});Ie({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:qe,resultTmpListData:ct}});try{await lt({...tt})}catch(rt){console.error(rt),Ie({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:qe,type:"result",resultType:ke.resultType}})}finally{Ie({type:"ai-component:clear:requestLoading"}),sdkStore.getHotItem(Pe)&&!sdkStore.isTrashed(Pe)&&Ie(E.GO.select([Pe]))}},"entry:aiComponent:float-bar:confirm":async(re,fe)=>{let{getState:we,dispatch:Te}=re,{payload:Ie}=fe;const{key:le}=Ie;Te({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:le,type:"common"}}),Te({type:"ai-component:update:createStartPoint",payload:{createStartPoint:null}}),Te({type:"ai-component:update:createEndPoint",payload:{createEndPoint:null}}),t.F7.clearCache()},"entry:aiComponent:float-bar:handle-order":async(re,fe)=>{var we;let{getState:Te,dispatch:Ie}=re,{payload:le}=fe;const me=Te(),{type:Pe,key:pe}=le,We=(0,v.G1)(me)[pe]||{},{resultTmpListData:Ee}=We;if(!Ee)return;const{activeIndex:Ae,list:Ce}=Ee,_e=Pe==="prev"?Ae-1:Ae+1,Ge=Ce[_e];if(!Ge)return;const Xe=((we=sdkStore.getHotItem(pe))==null?void 0:we.hotAttr)||{},{w:Ue,h:pt,injection:Ye}=Xe,Qe=ve(Te,{key:pe,action:"updateItem",payload:{item:{injection:Ye,w:Ue,h:pt}}});Ie({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:pe,resultTmpListData:Qe}});const{w:lt,h:tt,injection:qe}=Ge,{x:et,y:st}=xe(Se(Xe),lt,tt),at=ve(Te,{key:pe,action:"update",payload:{activeIndex:_e}});Ie({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:pe,resultTmpListData:at}}),Ie({type:"ai-component:add:withoutStreamingKey",payload:{key:pe}}),Ie({type:"entry:aiComponent:update:codeWidget",payload:{widgetKey:pe,injection:qe,x:et,y:st,w:lt,h:tt}})},"entry:aiComponent:float-bar:chat-ai-send":async(re,fe)=>{let{getState:we,dispatch:Te}=re,{payload:Ie}=fe;const{editingAIComponentInfo:le,userContent:me,type:Pe,onError:pe}=Ie;if((0,p.b)(me)){he("[FILTERED]","component");return}if(Pe==="edit"){const{key:ke,selectedElementState:We}=le||{};Te({type:"entry:aiComponent:request:edit-component",payload:{editComponentKey:ke,userTextContent:me,selectedElement:We==null?void 0:We.element.outerHTML,onError:()=>{Te({type:"ai-component:update:editingAIComponentInfo",payload:{updateInfo:le}}),pe&&pe()},onDone:()=>{Te({type:"ai-component:clear:editingAIComponentInfo"}),Te({type:"ai-component:update:editInputAreaText",payload:{editInputAreaText:""}}),(0,W.XM)("edit")}}})}},"entry:aiComponent:float-bar:convert-to-editable":async(re,fe)=>{let{getState:we,dispatch:Te}=re,{payload:Ie}=fe;const{widget:le}=Ie,me=(0,O.f)(le.hotAttr.injection||"");if(!me)return;const Pe=new M.M(le.key,Ce=>({x:Ce[2]+100,y:Ce[1]}));Pe.setDispatch(Te),Pe.subscribe(Ce=>{const{type:_e,reason:Ge}=Ce;_e==="success"&&sdkStore.getHotItem(le.key)?MB.notice({text:"\u8F6C\u6362\u6210\u529F",type:"success"}):_e==="failed"&&MB.notice({text:Ge,type:"error"}),Te({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:le.key,convertToEditableType:_e}})});const{name:pe,w:ke,h:We}=le.hotAttr,Ee="\n <style>\n html, body { \n width: "+ke+"px !important; \n height: "+We+"px !important;\n min-width: "+ke+"px !important;\n min-height: "+We+"px !important;\n max-width: "+ke+"px !important;\n max-height: "+We+"px !important;\n position: relative !important;\n overflow-x: hidden !important;\n overflow-y: hidden !important;\n }\n </style>\n";await Pe.convert({fileName:pe,htmlString:me.replace("<head>",B+"<head>").replace("</head>",Ee+"</head>").replace("position: fixed","position: absolute !important"),autoPaste:!0,targetType:"wWrap"},{checkPasteBefore:async()=>sdkStore.isTrashed(le.key)?(MB.notice({text:"\u539F\u7EC4\u4EF6\u72B6\u6001\u5F02\u5E38\uFF0C\u8F6C\u6362\u7EC8\u6B62",type:"error"}),Te({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:le.key,convertToEditableType:"idle"}}),!1):!0})},"entry:aiComponent:undo":async re=>{let{getState:fe,dispatch:we}=re;we({type:"entry:aiComponent:undo-redo"})},"entry:aiComponent:redo":async re=>{let{getState:fe,dispatch:we}=re;we({type:"entry:aiComponent:undo-redo"})},"entry:aiComponent:undo-redo":async(re,fe)=>{let{getState:we,dispatch:Te}=re,{payload:Ie}=fe;const le=we(),me=(0,D.p$)(le);if(me.length!==1)return null;const Pe=me[0];if(sdkStore.isTrashed(Pe))return;const ke=(0,v.G1)(le)[Pe];if(!ke||sdkStore.isTrashed(Pe))return;const{type:We,resultTmpListData:Ee}=ke;if(We!=="result"||!Ee)return;let Ae;try{var Ce;Ae=(Ce=sdkStore.getHotItem(Pe))==null||(Ce=Ce.hotAttr)==null?void 0:Ce.injection}catch(Ge){}const _e=Ae?Ee.list.findIndex(Ge=>Ge.injection===Ae):-1;if(_e!==-1){const Ge=ve(we,{key:Pe,action:"update",payload:{activeIndex:_e}});Te({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:Pe,resultTmpListData:Ge}});return}Te({type:"entry:aiComponent:update:floatBarOperationMap",payload:{key:Pe,type:"common"}})}},te=(0,C.nF)(re=>{let{dispatch:fe,chunkId:we,injection:Te,x:Ie,y:le,w:me,h:Pe}=re;fe({type:"entry:aiComponent:update:codeWidget",payload:{widgetKey:we,injection:Te,x:Ie,y:le,w:me,h:Pe}})},1500,!0),he=(re,fe)=>{const we=re.includes("[FILTERED]"),Te={prompt:{filtered:"\u63D0\u793A\u8BCD\u4F18\u5316\u5931\u8D25\uFF0C\u751F\u6210\u5185\u5BB9\u5305\u542B\u654F\u611F\u8BCD\u6C47",default:"\u63D0\u793A\u8BCD\u4F18\u5316\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u68C0\u67E5\u53D1\u9001\u5185\u5BB9"},component:{filtered:"AI\u7EC4\u4EF6\u751F\u6210\u5931\u8D25\uFF0C\u751F\u6210\u5185\u5BB9\u5305\u542B\u654F\u611F\u8BCD\u6C47",default:"AI\u7EC4\u4EF6\u751F\u6210\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u68C0\u67E5\u53D1\u9001\u5185\u5BB9"}},Ie=we?Te[fe].filtered:Te[fe].default;MB.notice({text:Ie,type:"error"})},de=re=>{let{key:fe,injection:we,x:Te,y:Ie,w:le,h:me,sup:Pe}=re;const pe=(0,K.xz)("AI\u7EC4\u4EF6");pe.x=Te,pe.y=Ie,pe.w=le,pe.h=me,pe.isLockAspect=!1,pe.injection=we,pe.zIndex=(0,Q._)(Pe),pe.name=(0,H.aw)({type:"wCode",sup:Pe});const ke={key:fe,attr:(0,y.Xd)(pe),hotAttr:pe,sup:Pe,sub:[]};return sdkStore.updateHotItem(ke),fe},Se=re=>({x:re.x,y:re.y-re.h/2}),xe=(re,fe,we)=>{const Te=re.x,Ie=re.y+we/2;return{x:Te,y:Ie}},be=async re=>{const{htmlContent:fe,jsonContent:we}=(0,t.VY)(re),{defaultWidth:Te,defaultHeight:Ie}=JSON.parse(we||"{}");return{htmlContent:fe,defaultWidth:Te,defaultHeight:Ie}},ie=async re=>{let{createRect:fe,widgetStore:we,scale:Te}=re;const Ie=!1,le=!0,me=(0,S.I)(we,fe,!0,Ie,Te),Pe={format:"png",scale:"1",affix:"suffix",isWithDeviceFrame:!1},{x:pe,y:ke,w:We,h:Ee}=fe,Ae=[pe,ke,pe+We,ke+Ee];for(const qe of me)le||(0,u.il)(Ae,sdkStore.getHotAABB(qe));const Ce=(0,w.v)((0,o.Id)(),(0,r.aF)({}),(qe,et,st)=>console.log("flat|onPatch",{diffList:qe,clock:et,isLocal:st}),(qe,et)=>console.log("flat|requestResync",{error:qe,message:et})),_e=(0,d.uq)(Ce),Ge=(0,l.jb)(sdkStore);Ce.applyDiff(Ge);const Xe=(0,h.gO)("",9,10,10,"",0,0,""),Ue={key:(0,c.cF)("rbp"),hotAttr:Xe,sup:h.$k,sub:[]},pt=(0,i.Nc)("asdf");pt.w=Ae[2]-Ae[0],pt.h=Ae[3]-Ae[1],pt.x=Ae[0]+pt.w/2,pt.y=Ae[1]+pt.h/2,pt.fill.fillIsVisible=!1;const Ye={key:(0,c.cF)("rc"),hotAttr:pt,sup:Ue.key,sub:[]};_e.updateHotItem(Ue),_e.updateHotItem(Ye);const Qe=qe=>{let{hi:et,supKey:st}=qe;const at=sdkStore.saveSubtree([et.key]),{x:ct,y:rt}=sdkStore.getHotBound(et.key);let At=ct-Ae[0],ot=rt-Ae[1];st!==Ye.key&&(At=et.hotAttr.x,ot=et.hotAttr.y);const Tt=_e.loadSubtree(at,h.$k,At,ot);_e.moveHotItem(Tt[0],st)},lt=qe=>{const et=sdkStore.getHotItem(qe);if(et){if(et.hotAttr.type==="wBasket"||et.hotAttr.type==="wMind")Qe({hi:et,supKey:et.sup});else{const st=sdkStore.getHotItem(et.sup);if(!st)return;let at,ct;if(st.hotAttr.type==="wWrap"){const{x:At,y:ot}=sdkStore.getCCSBound2308(et.key),{w:Tt,h:ft}=sdkStore.getCCSBound2308(et.sup);at=At-Tt/2,ct=ot-ft/2}else if(et.hotAttr.type==="wWrap"){const{x:At,y:ot}=sdkStore.getCCSBound2308(et.key);at=At,ct=ot}else at=et.hotAttr.x,ct=et.hotAttr.y;const rt={...et,hotAttr:{...et.hotAttr,x:at,y:ct}};_e.updateHotItem(rt)}for(const st of et.sub)!(0,f.OO)(st)&&lt(st)}};for(const qe of me){const et=sdkStore.getHotItem(qe);if(et)if((0,f.OO)(et.key)||et.hotAttr.type==="wBasket"||et.hotAttr.type==="wMind")Qe({hi:et,supKey:Ye.key});else{const{x:st,y:at}=sdkStore.getHotBound(et.key),ct=st-Ae[0],rt=at-Ae[1],At={...et,sup:Ye.key,hotAttr:{...et.hotAttr,x:ct,y:rt}};_e.updateHotItem(At);for(const ot of et.sub)!(0,f.OO)(ot)&&lt(ot)}}const tt=(0,g.gD)({itemKey:Ye.key,pseudoSdkStore:_e,...Pe,hasWatermark:!1,isExportSticky:!0});try{return tt.validateIE(Pe.format),await tt.toIE(Pe.format)}catch(qe){return qe instanceof g.ku?MB.notice({text:"\u622A\u56FE\u8D85\u8FC7\u5927\u5C0F\u9650\u5236",type:"error"}):qe.name!=="NotAllowedError"&&(MB.notice({text:"\u622A\u56FE\u64CD\u4F5C\u5F02\u5E38\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5",type:"error"}),(0,s.Cp)(qe)),null}},oe=(re,fe)=>{const{x:we,y:Te}=re,{x:Ie,y:le}=fe;return{x:we<=Ie?we:Ie,y:Te<=le?Te:le,w:Math.abs(Ie-we),h:Math.abs(le-Te),r:0}},ue=re=>{let{widgetKey:fe,injection:we}=re;const Te=sdkStore.getHotItem(fe);if(sdkStore.isTrashed(fe)||!Te)return;const{w:Ie,h:le}=Te.hotAttr,me=Date.now();return{injection:we,w:Ie,h:le,timestamp:me}},ve=(re,fe)=>{let{key:we,action:Te,payload:Ie}=fe;const le=re(),Pe=(0,v.G1)(le)[we],pe=(Pe==null?void 0:Pe.resultTmpListData)||{activeIndex:0,list:[]};return{add:()=>{const{item:We}=Ie;return{activeIndex:0,list:[We]}},update:()=>{const{activeIndex:We,item:Ee}=Ie;if(We!==void 0)return{...pe,activeIndex:We};const Ae=[...pe.list,Ee];return{activeIndex:Ae.length-1,list:Ae}},updateItem:()=>{const{item:We}=Ie;return We?{...pe,list:(Ae=>Ae.map(Ce=>Ce.injection===We.injection?{...Ce,...We}:Ce))(pe.list)}:pe},clear:()=>{}}[Te]()}},63966:(Fe,ee,e)=>{"use strict";e.d(ee,{R:()=>l,Z1:()=>p,b:()=>s,eO:()=>b});var n=e(24229),r=e(35716),c=e(30728),o=e(65209),w=e(56696),u=e(33848),d=e(83744),y=e(18637),h=e(10390),i=e(21793),f=e(71247);const p=(S,t)=>{const _=(0,r.rZ)("\u8FDE\u63A5\u7EBF",(0,o._)(t));_.x=S.x,_.y=S.y,_.w=50,_.h=50;const I=(0,i.w)();_.elbow={..._.elbow,...I},_.elbow.elbowType==="curve"?_.elbow.dPathList=[...f.XS]:_.elbow.dPathList=[{x:0,y:0,isAdjusted:!1},{x:50,y:50,isAdjusted:!1}],(0,d.rp)(_);const k=(0,n.cF)(),j={key:k,sup:t,hotAttr:_};return sdkStore.updateHotItem(j),k},s=function(S,t){let{elbowKey:_,moveAnchor:I,worldPos:k,refKey:j,direction:z,isUseWroldBound:K=!1,isUpdateByRef:$=!1}=S;t===void 0&&(t=sdkStore.getHotItem(_));const A={...k,key:j,direction:z};if(t.hotAttr.elbow.elbowType==="curve")return g({currentElbowItem:t,cursorWorldPos:A,moveAnchor:I,nextPickPoint:A});const E=t.hotAttr,{x:U,y:O,elbow:H,w:Q,h:N,refFromKey:L,refToKey:V}=E,M=U-Q*.5,D=O-N*.5,{dPathList:W,fromDirection:F,toDirection:B}=H;let Y;if(I==="start"){const G=(0,u.Ui)(c.Z.xy(M,D),[W[W.length-1]])[0];Y={elbowKey:_,currentElbowItem:t,moveAnchor:I,startPickPoint:A,endPickPoint:{...G,key:V,direction:B},isUpdateByRef:$}}else{const G=(0,u.Ui)(c.Z.xy(M,D),[W[0]])[0];Y={elbowKey:_,currentElbowItem:t,moveAnchor:I,startPickPoint:{...G,key:L,direction:F},endPickPoint:A,isUpdateByRef:$}}const{data:X}=(0,w.X)(Y,K);return X},l=(S,t)=>{let _,I;return t==="curve"?(_=S[0],I=S.at(-1)):(_=S.at(-2),I=S.at(-1)),parseInt(_.x)===parseInt(I.x)?parseInt(_.y)<parseInt(I.y)?"down":"up":parseInt(_.x)<parseInt(I.x)?"right":"left"};function C(S,t,_){const I=_*Math.PI/180,k=S*Math.cos(I)-t*Math.sin(I),j=S*Math.sin(I)+t*Math.cos(I);return{x:k,y:j}}const v=S=>{const{prev:t,next:_}=(0,y.wX)(S,1);S[1].prev=t,S[1].next=_},a=Math.cos(10*Math.PI/180),P=Math.sin(10*Math.PI/180),b=S=>{const t=S[0],_=S[2],I={x:_.x-t.x,y:_.y-t.y};let k=Math.sqrt(I.x*I.x+I.y*I.y)/2/a*P;_.y<t.y&&(k=-k);const K={x:{x:Math.sqrt(I.x*I.x+I.y*I.y)/2,y:k}.x,y:k},$=Math.atan2(_.y-t.y,_.x-t.x)*(180/Math.PI),A=C(K.x,K.y,$),E={x:A.x+t.x,y:A.y+t.y};S[1].x=E.x,S[1].y=E.y;const{prev:U,next:O}=(0,y.wX)(S,1);S[1].prev=U,S[1].next=O,S[1].type="mirrored"},g=S=>{let{currentElbowItem:t,moveAnchor:_,cursorWorldPos:I,nextPickPoint:k}=S;const{dPathList:j,middleIsAdjusted:z}=t.hotAttr.elbow,K=(0,y.YW)(t.key,{closed:!1,points:j});let $;if(k.key){const L=k;$=K.inverted().apply({x:Math.round(L.x),y:Math.round(L.y)})}else $=K.inverted().apply({x:Math.round(I.x),y:Math.round(I.y)});const A=JSON.parse(JSON.stringify(j));_==="start"?(A[0].x=$.x,A[0].y=$.y,z?v(A):b(A)):_==="end"?(A[2].x=$.x,A[2].y=$.y,z?v(A):b(A)):(A[1].x=$.x,A[1].y=$.y);const E={closed:!1,points:A},{x:U,y:O,w:H,h:Q}=(0,h.zh)({key:t.key,vector:E}),N={x:U,y:O,w:H,h:Q,elbow:{...t.hotAttr.elbow,dPathList:A}};return _==="start"?(N.refFromKey=k.key,N.elbow.fromDirection=k.direction):_==="end"?(N.refToKey=k.key,N.elbow.toDirection=k.direction):N.elbow.middleIsAdjusted=!0,{...t,hotAttr:{...t.hotAttr,...N}}}},64012:(Fe,ee,e)=>{"use strict";e.d(ee,{X:()=>co,T:()=>Io});var n=e(95549),r=e(38502),c=e(15515),o=e(71190),w=e(32409),u=e(67787),d=e(17307),y=e(35719);const h=u.Ay.section.withConfig({displayName:"styles__StyledAppearance",componentId:"sc-1n1m5vv-0"})(["width:240px;padding:0 10px 0 16px;color:",";>:not(:first-child){margin-top:2px;}.keyboard-size{width:100px;margin-left:44px;> label{width:100px;}}.tab-item-side{white-space:nowrap;input{margin-left:5px;}}.appearance-line{display:flex;align-items:center;color:",";",";.left-label{height:14px;color:",";line-height:14px;white-space:nowrap;}&.keyboad-line{margin-top:16px;}&.qrcode-color{.left-label{margin-right:28px;}}&.enum-rect-line{margin-top:2px;}.enum-color-rect{width:16px;height:16px;border-radius:1px;margin-left:2px;margin-right:2px;cursor:pointer;box-sizing:border-box;&.border{border:1px solid #e5e5e5;}&.active{border:1px solid #e5e5e5;outline:2px solid #f2f2f2;}}}.divider{margin:7px 0;border-top:1px solid ",";}.slider_size,.slider_icon{height:36px;flex:1;justify-content:flex-start;.left-label{width:54px;}.var-input{margin-left:0 !important;}.slider-size-input{margin-left:16px;.WorkspaceInputNumber{width:64px;}}.colorButton{margin-left:16px;}.color-btn-has-hex-input{margin-left:7px;}}.font-setting{justify-content:flex-start;.left-label.text_kbd{&.color{margin-right:26px;}&.size{margin-right:17px;}}}&.isDigitalStepper{> div:last-child{margin-bottom:0;}}"],On=>On.theme.color_text_L2,On=>On.theme.color_text_L2,y.B3,On=>On.theme.color_text_L2,On=>On.theme.color_bg_border_01),i=(0,u.DU)([".DesignDropdownMenu{&.border-width-menu{transition:unset !important;border:none;box-shadow:none;.content{padding:0 !important;border-radius:8px !important;position:relative;}}}"]),f=(0,u.Ay)(d.C).withConfig({displayName:"styles__StyledLibOpenIcon",componentId:"sc-1n1m5vv-1"})(["border-radius:4px;cursor:pointer;margin-left:auto;margin-right:2px;&:hover{background-color:",";}&:active{background-color:",";}"],On=>On.theme.color_btn_secondary_hover,On=>On.theme.color_btn_secondary_hover);var p=e(59189),s=e(80666),l=e(72214);const C="position",v="mp_"+C,a=["children"];class P extends r.Component{constructor(){super(...arguments),(0,n.A)(this,"state",{show:(0,c.Yt)(v,!0,c.qW.Boolean)}),(0,n.A)(this,"handleChange",()=>{const{show:Cn}=this.state;(0,c.a0)(v,!Cn,c.qW.Boolean),this.setState({show:!Cn})})}shouldComponentUpdate(Cn,Je,vn){return this.props.isDraggingItem&&Cn.isDraggingItem?!1:(0,p.N)(a).call(this,Cn,Je)}render(){const{show:Cn}=this.state,Je=this.props.children.findIndex(vn=>vn.key===s.z.UsedRefAppearPanel)===-1&&this.props.children.findIndex(vn=>vn.key===s.z.CanShowLibPlhPanel)!==-1;return(0,l.jsxs)(o.A,{collapse:!Cn,title:I18N.SettingPanel.inspector[C],headerChildren:Je&&(0,l.jsx)(w.r,{type:"appear"}),onChange:this.handleChange,children:[(0,l.jsx)(h,{className:"appearance-body",children:this.props.children}),(0,l.jsx)(i,{})]})}}var b=e(5680),g=e(36620),S=e(44518),t=e(38571),_=e(4648),I=e(23089);const k=u.Ay.div.withConfig({displayName:"styles__StylesArrowSetting",componentId:"sc-8yzgk2-0"})([".appearance-line{.left-label{width:62px;display:flex;align-items:center;}&:not(:first-child){margin-top:2px;}}.border{.border-select-size{margin-right:6px;button{.border-line{color:",";}}}.WorkspaceSelect,.WorkspaceInputNumber{width:69px;}.strokeWidth + .toolbar-dropdown-opener .var-input{margin-left:0 !important;}}.point{.arrow-setting-item{&.firstSelect,&.endSelect{.WorkspaceSelect{width:69px;button{width:55px;justify-content:flex-start;.svg-icon{width:38px;height:10px;}}}}&.firstSelect{margin-right:6px;}&.endSelect{button{.svg-icon{transform:rotate(180deg);}}}}}.border,.point{display:flex;justify-content:space-between;.right-content{flex:1;display:flex;align-items:center;}}.arrowSettingLine{height:1px;width:calc(100% + 14px);background:",";margin-bottom:16px;}.elbow-type{ol{}.radio-option{border-radius:4px;color:",";.move-cube.active{background:",";}}.svg-icon{width:24px;height:24px;}}"],On=>On.theme.color_text_L1,On=>On.theme.color_bg_border_02,On=>On.theme.color_text_L1,On=>On.theme.color_btn_secondary_active);var j=e(53732),z=e.n(j),K=e(39306),$=e(54460),A=e(97453),E=e(21793),U=e(49989),O=e(56849),H=e(30523);const Q=["2","5","7","9"],N=[1,2,3,4,5,6,7,8,9],L=()=>[{label:(0,l.jsx)(d.C,{name:"setting_panel/elbow_type_rounded"}),value:"rounded",tip_title:I18N.SettingPanel.elbow_type_rounded},{label:(0,l.jsx)(d.C,{name:"setting_panel/elbow_type_sharp"}),value:"sharp",tip_title:I18N.SettingPanel.elbow_type_sharp},{label:(0,l.jsx)(d.C,{name:"setting_panel/elbow_type_straight"}),value:"straight",tip_title:I18N.SettingPanel.elbow_type_straight},{label:(0,l.jsx)(d.C,{name:"setting_panel/elbow_type_curve"}),value:"curve",tip_title:I18N.SettingPanel.elbow_type_curve}];class V extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"INPUT_TYPE_LIST",[{label:I18N.SettingPanel.none,value:"0"}].concat(K.Qb.map(Cn=>{let{settingIconName:Je,value:vn}=Cn;return{label:(0,l.jsx)(d.C,{className:"reverse",name:Je}),value:String(vn)}}))),(0,n.A)(this,"onChangeProxy",(Cn,Je,vn)=>{const{onChange:Jn,selections:ao,supAttr:no,dispatch:Oe}=this.props;Jn({value:Je,attr:Cn,selections:ao,dispatch:Oe,supAttr:no,refVar:vn}),(0,E.E)(Cn,Je)}),(0,n.A)(this,"handleChangeBc",(Cn,Je,vn)=>{const{arrowStroke:Jn,refVars:ao}=this.props,no=(ao==null?void 0:ao.elbow)||(ao==null?void 0:ao.arrow);this.onChangeProxy("arrowStroke",{...Jn,[Je]:Cn},{...no==null?void 0:no.arrowStroke,[Je]:vn})}),(0,n.A)(this,"handleChangeArrowType",(Cn,Je)=>{const{arrowTypes:vn,anchorFromType:Jn,anchorToType:ao}=this.props,no=[...vn];Je===Jn&&(no[0]=Number(Cn)),Je===ao&&(no[1]=Number(Cn));const Oe=no;(Je==="startAnchor"||Je==="endAnchor")&&(Oe[0]=A.pt[no[0]],Oe[1]=A.qs[no[1]]),this.onChangeProxy(Jn,Oe[0]),this.onChangeProxy(ao,Oe[1])}),(0,n.A)(this,"handleChangeElbowType",Cn=>{const{dispatch:Je}=this.props;Je({type:"entry:elbow:type:transform",payload:{nextType:Cn}}),(0,E.E)("elbowType",Cn)})}render(){var Cn,Je;const{arrowTypes:vn,arrowStroke:Jn,reverseArrow:ao,anchorFromType:no,anchorToType:Oe,supAttr:$n,elbow:$t,refVars:cn}=this.props,{INPUT_TYPE_LIST:yt}=this,Lt=$n!=="elbow"?yt:yt.filter(hn=>!Q.includes(hn.value)),Wt=(cn==null||(Cn=cn.elbow)==null?void 0:Cn.arrowStroke)||(cn==null||(Je=cn.arrow)==null?void 0:Je.arrowStroke),Jt=(0,l.jsx)("div",{className:"arrow-setting-item",children:(0,l.jsx)(H.Yw,{type:"number",attr:"bdrWidth",inputClassName:"strokeWidth",menuClassName:"arrow-setting-menu",value:Jn.bdrWidth,min:1,optionList:N,onConfirm:(hn,_o)=>this.handleChangeBc(hn,"bdrWidth",_o),showCaretIcon:!0,refVar:Wt==null?void 0:Wt.bdrWidth})}),In=(0,l.jsx)("div",{className:"arrow-setting-item "+(ao?"endSelect":"firstSelect"),children:(0,l.jsx)(I.mq,{className:"select",attr:no,optionList:Lt,menuClassName:"arrow_type_select_menu",value:String(vn[0]),onChange:this.handleChangeArrowType})}),Ln=(0,l.jsx)("div",{className:"arrow-setting-item "+(ao?"firstSelect":"endSelect"),children:(0,l.jsx)(I.mq,{className:"select arrow_type_end",attr:Oe,optionList:Lt,menuClassName:"arrow_type_select_menu arrow_type_select_menu_end",value:String(vn[1]),onChange:this.handleChangeArrowType})});return(0,l.jsxs)(k,{children:[(0,l.jsxs)("div",{className:"appearance-line color height-32",children:[(0,l.jsx)("label",{className:"color-title left-label",children:I18N.SettingPanel.color}),(0,l.jsx)(_.R_,{mode:"input",className:_.EY,supAttr:$n+"-arrowStroke",attr:"bdrColor",color:Jn.bdrColor,onChange:this.handleChangeBc})]}),(0,l.jsxs)("div",{className:z()("appearance-line border height-32",{"margin-right-n6":ENV.IS_WONDER_SHARE}),children:[(0,l.jsx)("label",{className:"border-title left-label",children:I18N.SettingPanel.stroke2}),(0,l.jsxs)("div",{className:"right-content",children:[(0,l.jsx)(O.v,{}),(0,l.jsx)(I.mq,{className:z()("border-select-size arrow-setting-item"),attr:"bdrStyle",menuClassName:"border_style_select_menu",optionList:(0,$.se)(),value:Jn.bdrStyle,onChange:this.handleChangeBc}),Jt]})]}),(0,l.jsxs)("div",{className:z()("appearance-line point height-32",{"margin-right-n6":ENV.IS_WONDER_SHARE}),children:[(0,l.jsx)(O.Y,{}),(0,l.jsx)("label",{className:"point-title left-label",children:I18N.SettingPanel.point}),(0,l.jsx)("div",{className:"right-content",children:ao?(0,l.jsxs)(l.Fragment,{children:[Ln,In]}):(0,l.jsxs)(l.Fragment,{children:[In,Ln]})})]}),$n==="elbow"&&(0,l.jsxs)("div",{className:"appearance-line elbow-type height-32",children:[(0,l.jsx)("span",{className:"left-label",children:I18N.SettingPanel.type}),(0,l.jsx)(U.A,{options:L(),value:$t.elbowType,handleChange:this.handleChangeElbowType,isLongTimeHover:!0})]})]})}}var M=e(5649);const D=u.Ay.div.withConfig({displayName:"styles__StyledToolTipArrowSettingPanel",componentId:"sc-10egyst-0"})(["&.tooltip-settings{padding-top:10px;margin-top:10px;border-top:1px solid ",";.line{display:flex;align-items:center;.tooltip-size{&:lang(en){width:111px;}.WorkspaceSelect{width:100%;}}}}"],On=>On.theme.color_bg_border_01);class W extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"TOOTIP_DIRECTION_LIST",[{label:I18N.SettingPanel.top,value:"top"},{label:I18N.SettingPanel.left,value:"left"},{label:I18N.SettingPanel.right,value:"right"},{label:I18N.SettingPanel.down,value:"bottom"}]),(0,n.A)(this,"handleChange",(Cn,Je)=>{const{selections:vn,onChange:Jn,dispatch:ao}=this.props;Jn({value:Cn,attr:Je,dispatch:ao,supAttr:"tooltip",selections:vn})}),(0,n.A)(this,"handleIntChange",(Cn,Je)=>{const vn=parseInt(Cn)||0;this.handleChange(vn,Je)})}render(){const{TOOTIP_DIRECTION_LIST:Cn}=this,{tooltip:Je}=this.props,{placement:vn,offset:Jn,arrowSize:ao}=Je;return(0,l.jsxs)(D,{className:"tooltip-settings",children:[(0,l.jsxs)("div",{className:"line height-32",children:[(0,l.jsx)("label",{className:"left-label",children:I18N.SettingPanel._ttPlacement}),(0,l.jsx)("div",{className:"right-content tooltip-size",children:(0,l.jsx)(I.mq,{className:"select",attr:"placement",menuClassName:I.it,optionList:Cn,value:vn,onChange:this.handleChange})})]}),(0,l.jsxs)("div",{className:"line height-32",children:[(0,l.jsx)("label",{className:"left-label",children:I18N.SettingPanel._ttOffset}),(0,l.jsx)("div",{className:"right-content tooltip-size",children:(0,l.jsx)(M.A,{className:"width-66",attr:"offset",value:Jn,onConfirm:this.handleIntChange})})]}),(0,l.jsxs)("div",{className:"line height-32",children:[(0,l.jsx)("label",{className:"left-label",children:I18N.SettingPanel._ttArrowSize}),(0,l.jsx)("div",{className:"right-content tooltip-size",children:(0,l.jsx)(M.A,{className:"width-66",attr:"arrowSize",value:ao,onConfirm:this.handleIntChange})})]})]})}}const F=(0,r.memo)(On=>{let{textColor:Cn,supAttr:Je,selections:vn,dispatch:Jn,onChange:ao}=On;const no=(Oe,$n)=>{ao({value:Oe,attr:$n,selections:vn,dispatch:Jn,supAttr:Je})};return(0,l.jsxs)(B,{className:"line height-32",children:[(0,l.jsx)("label",{className:"left-label background-label",children:I18N.SettingPanel.text}),(0,l.jsx)("div",{className:"right-content",children:(0,l.jsx)("div",{className:"side",children:(0,l.jsx)(_.R_,{className:_.EY,mode:"input",supAttr:"textV0",attr:"textColor",color:Cn,onChange:no})})})]})}),B=u.Ay.div.withConfig({displayName:"indexui__StyledTextStatusBarPanel",componentId:"sc-1vwvhf9-0"})([".right-content{flex:1;}.left-label{margin-right:17px;margin-left:22px;}"]),Y=(0,r.memo)(On=>{let{foreground:Cn,background:Je,dispatch:vn,onChange:Jn,selections:ao}=On;const no=(Oe,$n)=>{Jn({value:Oe,attr:$n,dispatch:vn,supAttr:"qrCode",selections:ao})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"appearance-line qrcode-color height-32",children:[(0,l.jsx)("label",{className:"left-label background-label",children:I18N.SettingPanel.foreground_color}),(0,l.jsx)(_.R_,{mode:"input",className:_.EY,supAttr:"qrCode",attr:"foregroundColor",color:Cn.color,onChange:no})]}),(0,l.jsxs)("div",{className:"appearance-line qrcode-color height-32",children:[(0,l.jsx)("label",{className:"left-label background-label",children:I18N.SettingPanel.bg_color}),(0,l.jsx)(_.R_,{mode:"input",className:_.EY,supAttr:"qrCode",attr:"backgroundColor",color:Je.color,onChange:no})]})]})}),X=[16,20,24,32,40,48,60,72].map(On=>({label:On,value:On})),G=[8,12,16,24,32,40,52,64].map(On=>({label:On,value:On})),Z=On=>{var Cn,Je;let{sliderSize:vn,is:Jn,iconColor:ao,selections:no,onChange:Oe,dispatch:$n,refVars:$t}=On;const cn=(yt,Lt,Wt)=>{let Jt=yt;(Lt==="sliderSize"||Lt==="iconSize")&&(Jt=parseInt(Jt)||0),Oe({value:Jt,attr:Lt,dispatch:$n,supAttr:"digitalStepper",selections:no,refVar:Wt})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"line slider_size height-32",children:[(0,l.jsx)("label",{className:"left-label",children:I18N.SettingPanel.button_size}),(0,l.jsx)(H.Yw,{type:"number",attr:"sliderSize",min:0,max:72,refVar:$t==null||(Cn=$t.digitalStepper)==null?void 0:Cn.sliderSize,value:vn,optionList:X,onConfirm:(yt,Lt)=>cn(yt,"sliderSize",Lt),className:"slider-size-input"})]}),(0,l.jsxs)("div",{className:"line slider_icon height-32",children:[(0,l.jsx)("label",{className:"left-label",children:I18N.SettingPanel.icon_size}),(0,l.jsx)(H.Yw,{type:"number",attr:"iconSize",min:0,max:64,refVar:$t==null||(Je=$t.digitalStepper)==null?void 0:Je.iconSize,value:Jn,optionList:G,onConfirm:(yt,Lt)=>cn(yt,"iconSize",Lt),className:"slider-size-input"})]}),(0,l.jsx)("div",{className:"line slider_icon height-32",children:(0,l.jsxs)("div",{className:"line slider_icon height-32",children:[(0,l.jsx)("label",{className:"left-label",children:I18N.SettingPanel.icon_color}),(0,l.jsx)(_.R_,{mode:"input",className:_.EY,supAttr:"digitalStepper",attr:"iconColor",color:ao,onChange:cn})]})})]})},J=(0,r.memo)(On=>{let{canIconSize:Cn,canSetIconColor:Je,is:vn,fill:Jn,iconColor:ao,iconColorAttr:no,selections:Oe,refStyles:$n,dispatch:$t,onChange:cn}=On;const yt=(Wt,Jt)=>{const In=parseInt(Wt)||0;cn({value:In,attr:Jt,dispatch:$t,selections:Oe})},Lt=Wt=>{cn({value:Wt,attr:"fill",dispatch:$t,selections:Oe}),no==="solidColor"&&ao==="unset"&&cn({value:"rgba(16,16,16,1)",attr:"iconColor",dispatch:$t,supAttr:"iconData",selections:Oe})};return(0,l.jsxs)(l.Fragment,{children:[Cn&&(0,l.jsx)("div",{className:"line height-32",children:(0,l.jsxs)("div",{className:z()("tab-item-side","side"),children:[(0,l.jsx)("label",{children:I18N.SettingPanel.is}),(0,l.jsx)(M.A,{attr:"is",min:0,value:vn,onConfirm:yt})]})}),Je&&(0,l.jsxs)("div",{className:"line height-32",children:[(0,l.jsx)("label",{className:"left-label",style:{marginRight:"25px"},children:I18N.SettingPanel.icon_color}),(0,l.jsx)("div",{className:"right-content flex-width",children:(0,l.jsx)(_.R_,{className:_.EY,mode:"input",supAttr:"fill",attr:no,color:Jn,refStyles:$n,onChange:Lt})})]})]})});var te=e(76199);const he=On=>{var Cn;let{iconSize:Je,iconColor:vn,selections:Jn,refVars:ao,onChange:no,dispatch:Oe}=On;const $n=($t,cn,yt)=>{no({value:$t,attr:cn,dispatch:Oe,supAttr:"mobileTabBars",selections:Jn,refVar:yt})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"line font-setting height-32",children:[(0,l.jsx)("label",{className:"left-label text_kbd color",children:I18N.SettingPanel.icon_color}),(0,l.jsx)(_.R_,{mode:"input",className:_.EY,supAttr:"mobileTabBars",attr:"iconColor",color:vn,onChange:$n})]}),(0,l.jsxs)("div",{className:"line font-setting height-32",children:[(0,l.jsx)("label",{className:"left-label text_kbd size",children:I18N.SettingPanel.icon_size}),(0,l.jsx)(te.A,{attr:"iconSize",fontSize:Je,refVar:ao==null||(Cn=ao.mobileTabBars)==null?void 0:Cn.iconSize,handleChange:$n})]})]})},de=(0,r.memo)(On=>{let{kbdStyle:Cn,selections:Je,onChange:vn,dispatch:Jn}=On;const ao=[{label:I18N.SettingPanel.text_kbd,value:"text"},{label:I18N.SettingPanel.numeric_kbd,value:"numeric"}],no=(Oe,$n)=>{vn({value:Oe,attr:$n,selections:Je,dispatch:Jn}),Jn({type:"entry:auto:show:hide:item"})};return(0,l.jsxs)("div",{className:"appearance-line keyboad-line",children:[(0,l.jsx)("label",{className:"left-label",children:I18N.SettingPanel.kbd_style}),(0,l.jsx)("div",{className:"right-content keyboard-size",children:(0,l.jsx)(I.mq,{className:"select",attr:"numeric",optionList:ao,value:Cn,onChange:no})})]})});var Se=e(61068);const xe=(0,r.memo)(On=>{let{isChecked:Cn,selections:Je,onChange:vn,dispatch:Jn}=On;const ao=(no,Oe)=>{vn({value:no,attr:Oe,selections:Je,dispatch:Jn})};return(0,l.jsx)("div",{className:"line",style:{marginBottom:10},children:(0,l.jsx)(Se.A,{attr:"isChecked",label:I18N.SettingPanel.checked,isChecked:Cn,onChange:ao})})});var be=e(80077),ie=e(20089),oe=e(37505),ue=e(44805),ve=e(59025),re=e(19013);const fe=u.Ay.ol.withConfig({displayName:"style__StyledNodeStatus",componentId:"sc-1pyjt10-0"})(["div{display:flex;align-items:center;height:32px;.node-input-number{width:64px;margin-left:26px;}}"]);class we extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleChangeNodeHeight",Cn=>{const{onChange:Je,selections:vn,dispatch:Jn}=this.props;Je({value:Cn,attr:"nodeHeight",supAttr:"tree",selections:vn,dispatch:Jn})}),(0,n.A)(this,"handleChangeNodeIndent",Cn=>{const{onChange:Je,selections:vn,dispatch:Jn}=this.props;Je({value:Cn,attr:"nodeIndent",supAttr:"tree",selections:vn,dispatch:Jn})})}render(){const{tree:Cn}=this.props;return(0,l.jsxs)(fe,{children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"leftLabel",children:I18N.SettingPanel.height}),(0,l.jsx)(M.A,{className:"node-input-number",attr:"nodeHeight",value:Cn.nodeHeight,min:1,max:9999,optionList:Te,onConfirm:this.handleChangeNodeHeight})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"leftLabel",children:"\u7F29\u8FDB"}),(0,l.jsx)(M.A,{className:"node-input-number",attr:"nodeIndent",value:Cn.nodeIndent,min:1,max:9999,optionList:Te,onConfirm:this.handleChangeNodeIndent})]})]})}}const Te=[32,36,40,44,48,56,64,72].map(On=>({label:On,value:On,shortcutKey:""}));var Ie=e(31569),le=e(98915),me=e(2099),Pe=e(64320);const pe=On=>{let{value:Cn,attr:Je,dispatch:vn,supAttr:Jn,selections:ao,refVar:no}=On;(0,ue.c)({value:Cn,attr:Je,dispatch:vn,supAttr:Jn,selections:ao,refVar:no}),vn({type:"entry:auto:show:hide:item"})},ke=On=>{let{value:Cn,attr:Je,refVar:vn,dispatch:Jn,selections:ao}=On;const no=ao.map(Oe=>{var $n;if(sdkStore.isTrashed(Oe))return null;const $t=sdkStore.getHotItem(Oe);if(!$t)return null;let cn=$t==null||($n=$t.hotAttr)==null?void 0:$n.refStyles;return Pe.vZ.includes(Je)&&(cn={...cn,appear:void 0}),{key:Oe,hotAttr:{[Je]:Cn,...ie.Q.USE_CLIP_TEXT.includes($t.hotAttr.type)&&$t.hotAttr.richTextV1&&!$t.hotAttr.richTextV1.isClipText&&{richTextMetric:(0,le.Ro)({...$t.hotAttr,[Je]:Cn})},refVars:{...$t.hotAttr.refVars,[Je]:vn},refStyles:cn}}}).filter(Oe=>!!Oe);Jn({type:"entry:widget:change",payload:{flatChgList:no}}),Jn({type:"entry:auto:show:hide:item"})},We=On=>{let{attr:Cn,value:Je,refVar:vn,dispatch:Jn}=On;if(Cn==="borderRadiusIsVisible"){Jn({type:"entry:vector:update:borderRadiusIsVisible",payload:{borderRadiusIsVisible:Je}});return}Jn({type:"entry:vector:update:radius",payload:{radius:Je,refVar:vn}})},Ee={component:b.R2,params:{canSetSingleRadius:!0},getter:[oe.pQ[s.z.BorderRadiusPanel][re.m9]],setter:{onChange:On=>{let{value:Cn,attr:Je,dispatch:vn,supAttr:Jn,selections:ao,refVar:no}=On;if(Je==="borderRadiusIsVisible"){pe({value:Cn,attr:Je,dispatch:vn,supAttr:Jn,selections:ao,refVar:no});return}if(ao.length===1){pe({value:Cn,attr:Je,dispatch:vn,supAttr:Jn,selections:ao,refVar:no});return}const Oe=[],$n=[],$t=[],cn=[];if(ao.forEach(Lt=>{var Wt;const{vector:Jt,star:In,polygon:Ln}=(Wt=sdkStore.getHotItem(Lt))==null?void 0:Wt.hotAttr;Jt?Oe.push(Lt):In?$n.push(Lt):Ln?$t.push(Lt):cn.push(Lt)}),cn.length&&pe({value:Cn,attr:Je,dispatch:vn,supAttr:Jn,selections:cn,refVar:no}),typeof Cn=="object"){var yt;Cn=Cn.radiusTL,no=(yt=no)==null?void 0:yt.radiusTL}Oe.length&&We({value:Cn,refVar:no,dispatch:vn}),$n.length&&pe({value:Cn,refVar:no,attr:"cornerRadius",supAttr:"star",selections:$n,dispatch:vn}),$t.length&&pe({value:Cn,refVar:no,attr:"cornerRadius",supAttr:"polygon",selections:$t,dispatch:vn})}}},Ae={...Ee,getter:[oe.pQ[s.z.BorderRadiusPanel][re.m9],oe.pQ[s.z.BorderRadiusPanel][ie.x.WImage]]},Ce={...Ee,getter:[oe.pQ[s.z.BorderRadiusPanel][ie.x.WPolygon]],params:{canSetSingleRadius:!1,supAttr:"polygon",attr:"cornerRadius"}},_e={...Ee,getter:[oe.pQ[s.z.BorderRadiusPanel][ie.x.WStar]],params:{canSetSingleRadius:!1,supAttr:"star",attr:"cornerRadius"}},Ge={...Ee,params:{canSetSingleRadius:!1}},Xe={...Ge,params:{canSetSingleRadius:!1,max:100},getter:[oe.pQ[s.z.BorderRadiusPanel][ie.x.WVector]],setter:{onChange:We}},Ue=function(On){return On===void 0&&(On="new"),{component:g.s,params:{bgColorText:"fill"},getter:[oe.pQ[s.z.FillPanel][On]],setter:{onChange:pe}}},pt={component:g.j,params:{bgColorText:"fill"},getter:[oe.pQ[s.z.FillPanel].segmentedControl],setter:{onChange:pe}},Ye={component:S.$,params:{canSetBorderVisibility:!0,canBorderWidth:!0,canBorderStyle:!0,colorButtonAttr:"bdrColor"},getter:[oe.pQ[s.z.BorderPanel][re.m9]],setter:{onChange:ke}},Qe={...Ye,params:{canSetBorderVisibility:!1,canBorderWidth:!0,canBorderStyle:!0,colorButtonAttr:"bdrColor"}},lt={component:we,params:{},getter:[On=>{let{selectedItems:Cn}=On;return{tree:(0,Ie.i)(Cn,"tree")}}],setter:{onChange:pe}},tt={...Ye,params:{canSetBorderVisibility:!1,canBorderWidth:!0,canBorderStyle:!0,colorButtonAttr:"bdrColor"}},qe={...Ye,params:{canSetBorderVisibility:!1,canBorderWidth:!0,canBorderStyle:!1}},et={...Ye,params:{canSetBorderVisibility:!0,canBorderWidth:!1,canBorderStyle:!1}},st={...Ye,params:{canSetBorderVisibility:!1,canBorderWidth:!1,canBorderStyle:!0}},at={component:t.y,params:{type:"box",attr:"box_shadow"},getter:[oe.pQ[s.z.BoxShadowsPanel][re.m9]],setter:{onChange:pe}},ct={component:t.y,params:{type:"svg",attr:"box_shadow"},getter:[oe.pQ[s.z.BoxShadowsPanel][re.m9]],setter:{onChange:pe}},rt={component:t.y,params:{type:"text",attr:"text_shadow"},getter:[oe.pQ[s.z.TextShadowsPanel][re.m9]],setter:{onChange:pe}},At={component:V,params:{},getter:[oe.pQ[s.z.ArrowSettingPanel][re.m9]],setter:{onChange:pe}},ot={component:V,params:{},getter:[oe.pQ[s.z.ArrowSettingPanel][ie.x.WElbow]],setter:{onChange:pe}},Tt={component:W,params:{},getter:[oe.pQ[s.z.ToolTipArrowSettingPanel][re.m9]],setter:{onChange:pe}},ft={component:F,params:{},getter:[oe.pQ[s.z.TextStatusBarPanel][re.m9]],setter:{onChange:pe}},Nt={component:Y,params:{},getter:[oe.pQ[s.z.QRCodeSettingPanel][re.m9]],setter:{onChange:pe}},Bt={component:Z,params:{},getter:[oe.pQ[s.z.DigitalStepperPanel][re.m9]],setter:{onChange:pe}},zt={component:J,params:{canSetIcon:!0,canIconSize:!1,canSetIconColor:!0,isSvgIconPath:!0,iconColorAttr:"solidColor"},getter:[oe.pQ[s.z.IconSettingsPanel][re.m9]],setter:{onChange:pe}},Xt={...zt,getter:[oe.pQ[s.z.IconSettingsPanel].old],params:{canSetIcon:!0,canIconSize:!0,canSetIconColor:!0,isSvgIconPath:!1,iconColorAttr:"tc"}},bt={component:he,params:{},getter:[oe.pQ[s.z.MobileTabBarsIconPanel][re.m9]],setter:{onChange:pe}},jn={component:de,params:{},getter:[oe.pQ[s.z.UnifiedKeyboardPanel][re.m9]],setter:{onChange:pe}},xo={component:xe,params:{},getter:[oe.pQ[s.z.CheckPanel][re.m9]],setter:{onChange:pe}},Gn=[{component:()=>null,params:{},getter:[()=>{}],setter:{}},s.z.CanShowLibPlhPanel],yo=[[Ee,s.z.BorderRadiusPanel],[Ue(),s.z.FillPanel],[Ye,s.z.BorderPanel],[at,s.z.BoxShadowsPanel],Gn],Ve=[[Ge,s.z.BorderRadiusPanel],[Ue(),s.z.FillPanel],[Qe,s.z.BorderPanel],[at,s.z.BoxShadowsPanel],Gn],ut=[[Ee,s.z.BorderRadiusPanel],[Ue(),s.z.FillPanel],[Qe,s.z.BorderPanel],[at,s.z.BoxShadowsPanel]],Kt=[[Ee,s.z.BorderRadiusPanel],[Ue(),s.z.FillPanel],[tt,s.z.BorderPanel],[at,s.z.BoxShadowsPanel],Gn],St=[[Ue(),s.z.FillPanel]],fn=[[Ee,s.z.BorderRadiusPanel],[at,s.z.BoxShadowsPanel]],En=[[Ee,s.z.BorderRadiusPanel],[Ue(),s.z.FillPanel],[qe,s.z.BorderPanel],[at,s.z.BoxShadowsPanel],[Tt,s.z.ToolTipArrowSettingPanel]],gn=[[xo,s.z.CheckPanel]],Yn=[[Ce,s.z.BorderRadiusPanel],[Ue(),s.z.FillPanel],[tt,s.z.BorderPanel],[at,s.z.BoxShadowsPanel],Gn],Pn=[[_e,s.z.BorderRadiusPanel],[Ue(),s.z.FillPanel],[tt,s.z.BorderPanel],[at,s.z.BoxShadowsPanel],Gn],_n=[[Ee,s.z.BorderRadiusPanel],[Ue(),s.z.FillPanel],[Ye,s.z.BorderPanel],[at,s.z.BoxShadowsPanel],Gn],Fn=[[Ae,s.z.BorderRadiusPanel],[Ue(),s.z.FillPanel],[tt,s.z.BorderPanel],[at,s.z.BoxShadowsPanel],Gn],Nn=[[Ue(ie.x.WIphoneXSB),s.z.FillPanel],[ft,s.z.TextStatusBarPanel]],to=[{component:be.O,params:{},getter:[()=>{}],setter:{}},s.z.UsedRefAppearPanel],go={[ie.x.WImage]:Fn,[ie.x.WPlaceholder]:[[Ee,s.z.BorderRadiusPanel],[Ue(),s.z.FillPanel],[tt,s.z.BorderPanel],[at,s.z.BoxShadowsPanel],Gn],[ie.x.WDropMenu]:Kt,[ie.x.WTriangleTL]:St,[ie.x.WTriangleB]:St,[ie.x.WMSelect]:Kt,[ie.x.WAudio]:fn,[ie.x.WVideo]:fn,[ie.x.WMTooltip]:En,[ie.x.WOval]:[[Ue(),s.z.FillPanel],[tt,s.z.BorderPanel],[at,s.z.BoxShadowsPanel],Gn],[ie.x.WRect]:[[Ee,s.z.BorderRadiusPanel],[Ue(),s.z.FillPanel],[Ye,s.z.BorderPanel],[at,s.z.BoxShadowsPanel],Gn],[ie.x.Canvas]:[[Ue("solidFillOnly"),s.z.FillPanel]],[ie.x.CanvasAsOverlay]:[[Ee,s.z.BorderRadiusPanel],[Ue(),s.z.FillPanel],[Ye,s.z.BorderPanel],[at,s.z.BoxShadowsPanel],Gn],[ie.x.WRichText]:[[rt,s.z.TextShadowsPanel]],[ie.x.WLine]:[[tt,s.z.BorderPanel],[ct,s.z.BoxShadowsPanel]],[ie.x.WVe]:[[st,s.z.BorderPanel]],[ie.x.WArrow]:[[At,s.z.ArrowSettingPanel],[at,s.z.BoxShadowsPanel]],[ie.x.WIphoneXSB]:Nn,[ie.x.WIphoneSB]:Nn,[ie.x.WAndroidSB]:Nn,[ie.x.WMTextInput]:yo,[ie.x.WMTextArea]:yo,[ie.x.WQRCode]:[[Nt,s.z.QRCodeSettingPanel]],[ie.x.WCollapse]:[[Ee,s.z.BorderRadiusPanel],[tt,s.z.BorderPanel]],[ie.x.WSegmentedControl]:[[Ee,s.z.BorderRadiusPanel],[pt,s.z.FillPanel],[tt,s.z.BorderPanel]],[ie.x.WPaginationMobile]:[[Ee,s.z.BorderRadiusPanel],[Ue(),s.z.FillPanel],[tt,s.z.BorderPanel]],[ie.x.WPaginationWeb]:[[Ee,s.z.BorderRadiusPanel],[Ue(),s.z.FillPanel],[tt,s.z.BorderPanel]],[ie.x.WDigitalStepper]:[[Bt,s.z.DigitalStepperPanel],[Ee,s.z.BorderRadiusPanel],[Ue(),s.z.FillPanel],[tt,s.z.BorderPanel]],[ie.x.WIcon]:[[Ee,s.z.BorderRadiusPanel],[zt,s.z.SVGIconPathSettings],[tt,s.z.BorderPanel],[rt,s.z.TextShadowsPanel]],[ie.x.WTabItem]:[[Xt,s.z.IconPathSettings],[at,s.z.BoxShadowsPanel]],[ie.x.WMobileTabBars]:[[Ue(),s.z.FillPanel],[et,s.z.BorderPanel],[bt,s.z.MobileTabBarsIconPanel]],[ie.x.WUnifiedKeyboard]:[[jn,s.z.UnifiedKeyboardPanel]],[ie.x.WSearchBar]:[[Ue(),s.z.FillPanel],[tt,s.z.BorderPanel],[at,s.z.BoxShadowsPanel]],[ie.x.WIosCB]:gn,[ie.x.WAndroidRadio]:gn,[ie.x.WAndroidCB]:gn,[ie.x.WPolygon]:Yn,[ie.x.WStar]:Pn,[ie.x.WButton]:_n,[ie.x.WButtonSolid]:_n,[ie.x.WElbow]:[[ot,s.z.ArrowSettingPanel]],[ie.x.WVector]:[[Xe,s.z.BorderRadiusPanel],[Ue(ie.x.WVector),s.z.FillPanel],[tt,s.z.BorderPanel],[at,s.z.BoxShadowsPanel],Gn],[ie.x.WTriangle]:[[Ge,s.z.BorderRadiusPanel],[Ue(),s.z.FillPanel],[tt,s.z.BorderPanel],[at,s.z.BoxShadowsPanel],Gn],[ie.x.WFlowOpened]:[[tt,s.z.BorderPanel]],[ie.x.wFlowClosed]:[[Ue(ie.x.wFlowClosed),s.z.FillPanel],[tt,s.z.BorderPanel]],[ie.x.WTree]:[[Ue(ie.x.WTree),s.z.FillPanel],[Ye,s.z.BorderPanel],[lt,s.z.TreeNodePanel]],[re.m9]:yo},Io=[ie.x.WButton,ie.x.WMTextInput,ie.x.WMTextArea,ie.x.WRect,ie.x.WMobileTabBars,ie.x.WTree,ie.x.WDropMenu,ie.x.Canvas,ie.x.WPlaceholder],co=On=>{const Cn=On[0],Je=(0,ve.o9)(Cn),vn=go[Je]||go[re.m9],Jn=(0,me.OP)({selections:[Cn.key],styleType:"appear"});if(On.length===1){const ao=Jn?[to].concat(vn.filter(no=>no[1]!==s.z.BorderPanel&&no[1]!==s.z.BorderRadiusPanel&&no[1]!==s.z.FillPanel&&no[1]!==s.z.BoxShadowsPanel)):vn;return[P,...ao]}else{let ao=[];if(On.some($n=>go[Je]!==go[(0,ve.o9)($n)])){const $n=new Map;if(On.some(Wt=>Wt.hotAttr.type===ie.x.WArrow)){const Wt=go[ie.x.WArrow]||go[re.m9],[Jt,In]=Wt[0];$n.set(In,[Jt,In])}const $t=Array.from($n.values()),cn=On.some(Wt=>Wt.hotAttr.type===ie.x.WStar||Wt.hotAttr.type===ie.x.WPolygon),yt=On.every(Wt=>Io.includes((0,ve.o9)(Wt)));ao=[...cn?Ve:yt?yo:ut,...$t],ao[1]=ao[1].slice(),On.every(Wt=>oe.Ge.includes((0,ve.o9)(Wt)))?ao[1].splice(0,1,Ue()):ao[1].splice(0,1,Ue("solidFillOnly"))}else ao=go[Je]||go[re.m9];const no=On.every($n=>(0,ve.o9)($n)===Je)&&vn.findIndex($n=>$n[1]===s.z.CanShowLibPlhPanel)!==-1,Oe=no&&On.every($n=>Jn&&(0,me.OP)({selections:[$n.key],styleType:"appear"})===Jn);return no||(ao=ao.filter($n=>$n[1]!==s.z.CanShowLibPlhPanel)),Oe&&(ao=[to].concat(ao.filter($n=>$n[1]!==s.z.BorderPanel&&$n[1]!==s.z.BorderRadiusPanel&&$n[1]!==s.z.FillPanel&&$n[1]!==s.z.BoxShadowsPanel))),[P,...ao]}}},64165:(Fe,ee,e)=>{"use strict";e.d(ee,{CW:()=>$,dG:()=>g,mk:()=>A,q6:()=>E,qO:()=>v});var n=e(27480),r=e(75495),c=e(95657),o=e(65057),w=e(70933),u=e(38502),d=e(18381),y=e(46364),h=e(73298),i=e(70812),f=e(49612);if(e.j!=477)var p=e(18501);var s=e(88132);const l={adjustToLeft(U){return U+20},adjustToRight(U){return-(U+20)},adjustToTop(U){return U+20},adjustToBottom(U){return-(U+20)}},C=(U,O,H)=>{let{x:Q,y:N}=U;const L=O.x-U.x,V=U.x+U.w-(O.x+O.w),M=O.y-U.y,D=U.y+U.h-(O.y+O.h);return L>0?Q+=H.adjustToLeft(L):V>0&&(Q+=H.adjustToRight(V)),M>0?N+=H.adjustToTop(M):D>0&&(N+=H.adjustToBottom(D)),{x:Q,y:N}},v=()=>{const U=(0,d.d4)(c.F6),O=(0,d.d4)(w.X_),H=(0,d.d4)(w.ER),Q=(0,d.d4)(c.Ag),{key:N,selectedElement:L,selectedElementBounds:V=null}=Q||{},M=(0,d.d4)(w.$S),D=(0,d.d4)(c.OX),{is:W}=(0,r.v)(),F=a(D,W),B=(0,d.d4)(c.Gb),Y=y.dx,X=(0,u.useMemo)(()=>N?"edit":F?"snapshot":B?"thinking":"generate",[N,F,B]),G=y.V5[X],Z=y.OW,J=(0,u.useCallback)(()=>{let de=0,Se=0;const xe=(()=>{if(U)return{x:U.x+10,y:U.y+10};if(N){const{x:ue,y:ve,h:re,w:fe}=sdkStore.getHotBound(N),we={x:ue-fe/2,y:ve-re/2+10};return L?{x:we.x+V.left,y:we.y+(V.top+V.height)}:we}return null})(),be=(0,o.mY)(xe,O,H);de=be.x,Se=be.y;const ie={x:de,y:Se,w:Y,h:G},oe={x:M.x,y:M.y,w:M.width,h:M.height};if(!n.rw.containsRect(oe,ie)){const ue=C(ie,oe,l);de=ue.x,Se=ue.y}return{left:Math.round(de),top:Math.round(Se)}},[O,H,Y,G,M.x,M.y,M.width,M.height,U,N,V,L]),te=(0,u.useMemo)(()=>({top:"calc(100vh - "+G+"px - "+Z+"px)",left:"50%",transform:"translateX(-50%)"}),[G,Z]);return(0,u.useMemo)(()=>{if(F||!U&&!N)return te;const de=J();return{top:de.top,left:de.left}},[F,te,U,N,J])},a=(U,O)=>U&&!O,P=()=>{const U=(0,d.d4)(c.Ag),O=U==null?void 0:U.key,{getEditContentCache:H,setEditContentCache:Q,getGenerateContentCache:N,setGenerateContentCache:L}=h.s5,V=()=>O?H(O):N(),M=(0,u.useCallback)(Y=>O?Q(O,Y):L(Y),[O,Q,L]),D=V(),[W,F]=(0,u.useState)(D||"");(0,u.useEffect)(()=>{F(D||"")},[D]);const B=(0,u.useCallback)(Y=>{F(Y),M(Y)},[M]);return[W,B]},b=(U,O)=>{const H=(0,u.useRef)([U]),Q=(0,u.useRef)(0);return[M=>{const D=H.current,W=Q.current;D.length=W+1,D.push(M),Q.current++,O(M)},M=>{const W=Q.current+1;if(W>=H.current.length)return;Q.current++;const F=H.current[W];O(F),M&&M(F)},M=>{const W=Q.current-1;if(W<0)return;Q.current--;const F=H.current[W];O(F),M&&M(F)}]},g=U=>U.stopPropagation(),S=2e3,t=function(U){let{isSnapshotGenerate:O=!1}=U===void 0?{}:U;const H=(0,u.useRef)(null),[Q,N]=(0,u.useState)(!1),[L,V]=P(),M=(0,d.d4)(c.OX),[D,W,F]=b(L,V),B=(0,u.useCallback)(te=>{g(te),N(!0)},[]),Y=(0,u.useCallback)(te=>{g(te),N(!1)},[]),X=(0,u.useCallback)(te=>{const{value:he}=te.target,de=he.length>S?he.slice(0,S):he;D(de)},[D]),G=()=>{const te=H.current;te&&setTimeout(()=>{te.focus(),setTimeout(()=>{const he=te.value;te.setSelectionRange(he.length,he.length)})})},Z=(0,u.useCallback)(()=>{const te=window.getSelection();te.rangeCount&&te.removeAllRanges()},[]),J=(0,u.useMemo)(()=>L.length,[L]);return(0,u.useEffect)(()=>{J>0&&H.current&&H.current.setSelectionRange(0,L.length)},[M,O]),(0,u.useEffect)(()=>{J>=S&&MB.notice({text:I18N.ChatGPT.aicomponent.input_limit_reached,type:"error"})},[J]),{textareaRef:H,updateUserTextContent:D,userTextContent:L,handleChange:X,handleSelectEnd:G,handleClearSelection:Z,isInputComposition:Q,handleCompositionStart:B,handleCompositionEnd:Y,redo:W,undo:F}},_=U=>{let{undo:O,redo:H,isShowOptimumLoading:Q=!1}=U;const N=(0,u.useCallback)(L=>{if(!Q&&(L.stopPropagation(),(L.ctrlKey||L.metaKey)&&["z","Z"].includes(L.key))){if(L.preventDefault(),L.shiftKey){H();return}O()}},[Q,H,O]);(0,u.useEffect)(()=>(document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N)}),[N])},I=U=>{let{isInputComposition:O,userTextContent:H,snapshotBase64Url:Q="",handleSend:N}=U;const L=(0,d.d4)(c.Lu);return(0,u.useCallback)(M=>{L||O||!H&&!Q||N()},[O,L,Q,H,N])},k=U=>{let{handleEsc:O,handleEnter:H}=U;const Q=L=>{L.key==="Enter"&&!L.shiftKey&&(H(L),L.preventDefault())},N=(0,u.useCallback)(L=>{L.key==="Escape"&&O(L)},[O]);return(0,u.useEffect)(()=>(document.addEventListener("keydown",N),()=>document.removeEventListener("keydown",N)),[N]),Q},j=U=>{let{userTextContent:O,updateUserTextContent:H,isSnapshotGenerate:Q,handleSelectEnd:N,handleClearSelection:L}=U;const V=(0,d.wA)(),[M,D]=(0,u.useState)(0),[W,F]=(0,u.useState)(O.length===0),B=y.Ky.length,Y=(0,u.useMemo)(()=>W&&!Q,[W,Q]),X=(0,u.useCallback)(J=>{const te=Math.floor(Math.random()*B),he=te===M?(M+1)%B:te;D(he);const de=y.Ky[he];H(de),F(!0),N()},[M,N,B,H]),G=(0,u.useMemo)(()=>!Y&&!Q,[Y,Q]),Z=(0,u.useCallback)(async J=>{L(),V({type:"entry:aiComponent:optimum:handler",payload:{updateUserTextContent:H,userTextContent:O,handleSelectEnd:N}})},[V,L,N,H,O]);return{isShowExamplePrompts:Y,handleExamplePrompts:X,isShowOptimumPrompts:G,handleOptimumPrompts:Z,setIsShowExamplePromptsBtn:F}},z=U=>{let{isSnapshotGenerate:O,isShowOptimumLoading:H}=U;const Q=(0,d.wA)(),N=(0,d.d4)(c.OX),L=(0,u.useCallback)(()=>{if(H)return;Q({type:"entry:aiComponent:switch-snapshot-mode:handler",payload:{nextIsSnapshotMode:!N}})},[Q,N,H]);return{isAIComponentSnapshotMode:N,isShowSnapshotSwitch:!O,handleSnapshotSwitch:L}},K=20,$=10,A=function(U){let{cost:O=K}=U===void 0?{}:U;const H=(0,d.d4)(p.$Z),Q=(0,d.wA)();(0,u.useEffect)(()=>{(async()=>{const M=await(0,s.p6)();Q({type:"ai:update:agentAiPoints",payload:M})})()},[]);const N=(0,u.useMemo)(()=>(H!=null?H:0)<O,[H,O]),L=(0,u.useCallback)(()=>{MB.global.popupHelper.chargeAsync({isBuyAgentPoint:!0,potatoSource:"proto_ai_component_generate_buy"})},[]);return{creditCount:H,isInsufficientCredit:N,costPerGeneration:O,openPurchaseModal:L}},E=()=>{const U=(0,d.wA)(),{is:O}=(0,r.v)(),H=(0,d.d4)(c.Lu),Q=(0,d.d4)(c.xn),{creditCount:N,isInsufficientCredit:L,costPerGeneration:V,openPurchaseModal:M}=A({cost:K}),D=(0,d.d4)(c.Gb),{textareaRef:W,userTextContent:F,handleChange:B,handleSelectEnd:Y,handleClearSelection:X,updateUserTextContent:G,isInputComposition:Z,handleCompositionEnd:J,handleCompositionStart:te,undo:he,redo:de}=t(),{isShowExamplePrompts:Se,handleExamplePrompts:xe,isShowOptimumPrompts:be,handleOptimumPrompts:ie,setIsShowExamplePromptsBtn:oe}=j({userTextContent:F,updateUserTextContent:G,isSnapshotGenerate:O,handleSelectEnd:Y,handleClearSelection:X}),{isAIComponentSnapshotMode:ue,isShowSnapshotSwitch:ve,handleSnapshotSwitch:re}=z({isSnapshotGenerate:O,isShowOptimumLoading:Q}),fe=(0,u.useCallback)(_e=>{const Ge=_e.length===0,Xe=y.Ky.includes(_e);oe(Ge?!0:Se&&Xe)},[oe,Se]),we=(0,u.useCallback)(_e=>{he(Ge=>fe(Ge))},[fe,he]),Te=(0,u.useCallback)(_e=>{de(Ge=>fe(Ge))},[de,fe]);_({undo:we,redo:Te,isShowOptimumLoading:Q});const Ie=(0,u.useCallback)(_e=>{g(_e),U({type:"entry:aiComponent:exit:mode"})},[U]),le=(0,u.useCallback)(_e=>{B(_e),!O&&fe(_e.target.value)},[B,O,fe]),me=(0,u.useCallback)(()=>{if(L){MB.notice({text:I18N.ChatGPT.aicomponent.insufficient_points,type:"error",duration:3e3}),M();return}const _e=h.F7.getCache();U({type:"entry:aiComponent:send:handler",payload:{userTextContent:F,snapshotBase64Url:_e}}),i.U4.AIUseTrack(f.SR.Component,F)},[U,F,L,M]),Pe=I({isInputComposition:Z,userTextContent:F,snapshotBase64Url:h.F7.getCache(),handleSend:me}),pe=k({handleEnter:Pe,handleEsc:Ie}),ke=(0,u.useMemo)(()=>O?!1:F.length===0||Q,[O,Q,F.length]),We=(0,u.useMemo)(()=>H,[H]),Ee=(0,u.useMemo)(()=>H||Q,[H,Q]),Ae=a(ue,O),Ce=(0,u.useCallback)(()=>{U({type:"ai-component:update:isShowThinkingMode",payload:{isShowThinkingMode:!1}}),U({type:"ai-component:update:isShowInputContainer",payload:{isShowInputContainer:!1}})},[U]);return{inputPlaceholderText:"\u8BF7\u8F93\u5165\u7EC4\u4EF6\u63CF\u8FF0",textareaRef:W,userTextContent:F,handleChange:le,handleCompositionEnd:J,handleCompositionStart:te,handleKeyDown:pe,handleQuit:Ie,isShowSnapshotSwitch:ve,isShowSnapshotModeTips:Ae,handleSnapshotSwitch:re,isShowExamplePrompts:Se,handleExamplePrompts:xe,isShowOptimumLoading:Q,isShowOptimumPrompts:be,handleOptimumPrompts:ie,isSendLoading:We,isSendIconDisable:ke,handleSend:me,isInputDisabled:Ee,creditCount:N,isInsufficientCredit:L,costPerGeneration:V,openPurchaseModal:M,isShowThinkingMode:D,handleCloseThinkingMode:Ce}}},64320:(Fe,ee,e)=>{"use strict";e.d(ee,{F$:()=>p,H$:()=>C,N2:()=>d,Nc:()=>h,OT:()=>i,R3:()=>f,Rf:()=>s,tA:()=>y,vZ:()=>l});var n=e(44940),r=e(18821),c=e.n(r),o=e(4820),w=e(83744),u=e(20089);const d=3,y=240,h=10,i={fill:"solid",fillIsVisible:!0,solidColor:3149642751},f={borderRadiusIsVisible:!0,borderRadius:n.A.border_radius,borderVisibility:n.A.border_visibility,border:n.A.border,fill:n.A.background,shadow:n.A.box_shadow},p=["fontFamily","fontWeight","textColor","fontDirection","fontSize","lineHeight","padding","paddingTuple","letterSpacing","paraSpacing","underline","strikethrough","italic","bold","isClipText","listValue"],s=e.j!=477?["fontFamily","fontWeight","textColor","fontSize","lineHeight","letterSpacing","paraSpacing","underline","strikethrough","italic","bold"]:null,l=["borderRadius","borderVisibility","borderRadiusIsVisible","border","fill","shadow"],C=()=>{const v=(0,w.rp)({type:u.x.WRichText,richTextV1:{...o.oS}});return c()({...v.richTextV1,listValue:"unstyled"},p)}},64335:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>a});var n=e(38502),r=e(18381),c=e(70933),o=e(11032),w=e(21770),u=e(19249);const d=async()=>{try{const{user_uses_vip_mt_cids_this_month:b=[],left_downloads:g}=await(0,u.DE)("/api/web/v3/market_template/mt_vip/mt_vip_downloads"),{orgs_vip_mt_uses:S=[]}=await(0,u.DE)("/api/web/v3/market_template/mt_vip/orgs_mt_vip_downloads"),t=S.filter(I=>{let{pt_mt_next_billing_on:k}=I;return+new Date(k)-+new Date>1e3*60*60*24});let _=g;if(MB.currentOrg){var P;_=t==null||(P=t.find(I=>{var k;return I.org_cid===((k=MB.currentOrg)==null?void 0:k.cid)}))==null?void 0:P.left_downloads}return{user_uses_vip_mt_cids_this_month:b,downloadeds:b.length,left_downloads:_,orgMtInfo:t}}catch(b){return{user_uses_vip_mt_cids_this_month:[],downloadeds:0,left_downloads:0,orgMtInfo:[]}}},y=P=>{try{return(0,u.DE)("/api/community/v1/market_template/"+P)}catch(b){console.log(b)}},h=async(P,b)=>{try{return b?await(0,u.zi)("/api/web/v3/market_template/mt_vip/org_mt_vip_use",{cid:P,org_cid:b}):await(0,u.zi)("/api/web/v3/market_template/mt_vip/mt_vip_use",{cid:P}),{success:!0}}catch(g){return console.error(g),{success:!1,errorType:g.error_type}}};var i=e(47946),f=e(4410),p=e(16335),s=e(70812),l=e(61541),C=e(22835);const a=()=>{const P=(0,n.useRef)(!1),b=(0,r.wA)(),g=(0,r.d4)(c.PL),S=(0,r.d4)(c.wA),t=(0,r.d4)(c.HW),_=async j=>{let z=!1;const{project_metas:K=[]}=await y(j==null?void 0:j.cid),$=K.find(A=>A.upper_cid===(j==null?void 0:j.cid));if($){const{sdkStore:A}=await(0,i.O3)({flpakKey:$==null?void 0:$.cid});(0,f.Ai)({template:j,mtSdkStore:A,callback:E=>{if(E){b({type:"entry:activate:screen",payload:{screenCid:E}});const U=document.querySelector("#screen-scroll-list");U&&(0,C.yA)(U,E),z=!0,(0,p.Cp)({projectUpperType:"file",projectUpperCid:j==null?void 0:j.cid})}MB.safeLoading(!1)}})}return z},I=j=>{var z;const{isMdVipTemplate:K,isVipTemplate:$}=(0,o.f9)(j);s.U4.protoPageAddTrack((z=MB)==null||(z=z.user)==null?void 0:z.id,"\u6A21\u677F\u5F39\u7A97","\u6587\u4EF6",K?"\u539F\u578B\u4F1A\u5458\u7D20\u6750":$?"\u7D20\u6750\u4F1A\u5458\u7D20\u6750":"\u514D\u8D39",j==null?void 0:j.title,j==null?void 0:j.cid)};return{handleUsedTemplate:(0,n.useCallback)(async(j,z)=>{if(P.current)return;P.current=!0;const{ownerCid:K,isOwner:$,isPurchased:A,isPaidProtoProjectTemplate:E}=(0,l.TX)(j);if(g.is_org_project){const{show:H}=(0,o.o3)(j,t);if(H){const{isMktMember:Q}=(0,w.s)(t,S);if(Q){b({type:"modal:update:state",payload:{resourcePurchaseModal:{isOpen:!0,resources:j,currentOrg:S,paidCallback:()=>{}}}});return}const{cid:N,title:L,category:V}=j,{checkoutPlace:M,payEntrance:D}=(0,o.FS)(V),{isMdVipTemplate:W}=(0,o.f9)(j),F={mode:W?"solo":"mat",payEntrance:D,checkoutArea:"proto",checkoutPlace:M,templateCid:N,templateName:L,templateCategory:V,templatePaySource:"\u7F16\u8F91\u533A\u6A21\u677F\u5F39\u7A97"};MB.global.popupHelper.chargeAsync(F);return}}const U=E&&!$&&K!==t.cid&&!A;let O=!1;if(U){const{success:H,errorType:Q}=await h(j==null?void 0:j.cid,(S==null?void 0:S.otype)!=="personal"&&U&&(S==null?void 0:S.cid));if(H&&(O=!0),["MT_VIP_USE_LIMIT","NOT_MT_VIP","INVALID_PARAMS","PT_MT_USE_LIMIT"].includes(Q)){b({type:"modal:update:state",payload:{resourcePurchaseModal:{isOpen:!0,resources:j,currentOrg:S,isFooter:!0}}});return}}if(MB.safeLoading(),O){const H=await d();await _(j)&&MB.global.popupHelper.confirmAsync({title:"\u5DF2\u6DFB\u52A0\u5230\u5DE6\u4FA7\u76EE\u5F55-\u753B\u5E03\u672B\u5C3E",confirmText:"\u7ACB\u5373\u67E5\u770B",cancelText:"\u6211\u77E5\u9053\u4E86",desc:"\u672C\u6B21\u6D88\u80171\u4E2A\u4ED8\u8D39\u539F\u578B\u6743\u76CA\uFF0C\u672C\u81EA\u7136\u6708\u5269\u4F59\u53EF\u7528\u4ED8\u8D39\u539F\u578B\u6743\u76CA"+H.left_downloads+"\u4E2A\uFF0810\u4E2A/\u81EA\u7136\u6708\uFF09",confirmBtnProps:{type:"type-danger-blue"}}).then(N=>{z&&z(N),P.current=!1,I(j)})}else await _(j)&&MB.global.popupHelper.confirmAsync({title:"\u6DFB\u52A0\u6210\u529F",confirmText:"\u7ACB\u5373\u67E5\u770B",cancelText:"\u6211\u77E5\u9053\u4E86",desc:"\u7D20\u6750\u6587\u4EF6\u5DF2\u6DFB\u52A0\u5230\u5DE6\u4FA7\u76EE\u5F55-\u753B\u5E03\u672B\u5C3E",confirmBtnProps:{type:"type-danger-blue"}}).then(Q=>{z&&z(Q),P.current=!1,I(j)})},[])}}},64580:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>c,D:()=>r});var n=e(5209);let r=function(o){return o.Logo="\u58A8\u5200logo",o.SearchCanvas="\u641C\u7D22\u753B\u5E03",o.CollapseCanvas="\u4E00\u952E\u6536\u8D77\u753B\u5E03",o.ExpandCanvas="\u4E00\u952E\u5C55\u5F00\u753B\u5E03",o.SearchPage="\u641C\u7D22\u9875\u9762",o.DoubleClickPageIcon="\u53CC\u51FB\u9875\u9762\u56FE\u6807",o.SearchLayers="\u641C\u7D22\u56FE\u5C42",o.Inspect="\u6807\u6CE8",o.TurnOnVersionControl="\u70B9\u51FB\u67E5\u770B\u7248\u672C\u8BB0\u5F55",o.TurnOffVersionControl="\u5173\u95ED\u67E5\u770B\u7248\u672C\u8BB0\u5F55",o.HandTool="\u624B\u578B\u5DE5\u5177",o.Edit="\u7F16\u8F91",o.Device="\u6F14\u793A",o.Zoom="\u7F29\u653E",o.FullScreen="\u5168\u5C4F",o.ShowLeftPanel="\u663E\u793A\u5DE6\u4FA7\u9762\u677F",o.ShowRightPanel="\u663E\u793A\u53F3\u4FA7\u9762\u677F",o.Sticky="\u6279\u6CE8",o.Comment="\u8BC4\u8BBA",o.CollaborationPointer="\u591A\u4EBA\u6307\u9488",o.BasketPreview="\u52A8\u6001\u7EC4\u4EF6\u6F14\u793A",o.MubanPreview="\u6BCD\u7248\u6F14\u793A",o.PagePreview="\u9875\u9762\u6F14\u793A",o.Login="\u767B\u5F55",o.FreeToUse="\u514D\u8D39\u4F7F\u7528",o.CloseRegisterTip="\u5173\u95ED\u6CE8\u518C\u63D0\u793A",o.ReadOnlyMubanPreview="\u603B\u89C8\u6A21\u5F0F-\u6BCD\u7248\u9884\u89C8",o.ReadOnlyBasketPreview="\u603B\u89C8\u6A21\u5F0F-\u52A8\u6001\u7EC4\u4EF6\u9884\u89C8",o.ReadOnlyAIComponentPreview="\u603B\u89C8\u6A21\u5F0F-AI\u7EC4\u4EF6\u9884\u89C8",o}({});const c=o=>{let{operation_type:w}=o;(0,n.kH)("read_click_V8",{operation_type:w})}},64719:(Fe,ee,e)=>{var n=e(1438),r=e(23233);function c(o,w){return n(o,w,function(u,d){return r(o,d)})}Fe.exports=c},64966:(Fe,ee,e)=>{"use strict";e.d(ee,{W:()=>i});var n=e(38502),r=e(18381),c=e(70933),o=e(11032),w=e(21770),u=e(67787);const d=u.Ay.div.withConfig({displayName:"styles__StyledModalResourceDetailFooter",componentId:"sc-50j1jv-0"})(["width:100%;height:68px;display:flex;align-items:center;justify-content:flex-end;background:",";padding:0 32px;flex:0 0 68px;position:absolute;bottom:0;button{display:flex;align-items:center;justify-content:center;font-size:14px;font-family:PingFang SC;border-radius:6px;height:36px;&.white{background:",";color:",";border:1px solid ",";&:hover{background:",";}&:active{background:",";}}&.blue{background:",";color:",";&:hover{background:",";}&:active{background:",";}}&.material{background:linear-gradient(135deg,#FFEFCD 0%,#FAD58C 100%);width:144px;font-weight:500;.text{background:var(--Linear,linear-gradient(123deg,#501E11 30.52%,#DA4E00 159.68%));background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;font-weight:500;}&:hover{background:linear-gradient(135deg,#FFEFCD 0%,#FAD58C 100%),linear-gradient(0deg,rgba(255,255,255,0.3),rgba(255,255,255,0.3));}&:active{background:linear-gradient(135deg,#FFEBBF 0%,#FAD07D 100%);}}&.select_all{width:90px;}&.clear_all{width:90px;}&.buy_separately{width:151px;color:",";font-size:14px;font-weight:500;span{color:#ffd8e1;}&.prev{font-size:11px;margin-left:4px;margin-top:3px;}&.amount{font-size:20px;}}&.add{min-width:110px;padding:0 16px;}&:not(:last-child){margin-right:16px;}}"],f=>f.theme.color_bg_white,f=>f.theme.color_bg_white,f=>f.theme.color_text_L1,f=>f.theme.color_bg_border_02,f=>f.theme.color_btn_secondary_hover,f=>f.theme.color_btn_secondary_active,f=>f.theme.color_btn_primary_normal,f=>f.theme.color_text_btn,f=>f.theme.color_btn_primary_hover,f=>f.theme.color_btn_primary_clicked,f=>f.theme.color_text_btn);var y=e(72214);const h=()=>{},i=(0,n.memo)(f=>{const{checkedSet:p,resource:s,type:l,isOnlyShowCreates:C,onSelectAll:v,onClearAll:a,onBuySeparately:P=h,onMemberClick:b=h,onAddItems:g=h,onAddItemsAll:S=h}=f,t=(0,r.d4)(c.HW),_=()=>(0,y.jsx)(y.Fragment,{children:l==="page"&&p.size===0?(0,y.jsx)("button",{className:"blue add",onClick:S,children:I18N.LeftSidePanel.modals.add_all_page_items}):(0,y.jsx)("button",{className:"blue add",onClick:g,children:I18N.LeftSidePanel.modals.add_items.num.replace(/%num%/,p.size)+I18N.LeftSidePanel.modals.add_items[l]})}),I=()=>{if(C)return _();const{isBeforeMdMember:k,isMktMember:j}=(0,w.s)(t,MB.currentOrg);if(s){const{show:z,hasDiscount:K,isMktMember:$}=(0,o.o3)(s,t);return(0,y.jsx)(y.Fragment,{children:z?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("button",{className:"material",onClick:b,children:(0,y.jsx)("div",{className:"text",children:I18N.LeftSidePanel.modals.material_free_for_member})}),(0,y.jsxs)("button",{className:"blue buy_separately",onClick:P,children:[I18N.LeftSidePanel.modals.buy_separately,(0,y.jsx)("span",{className:"prev",children:"\xA5"}),(0,y.jsx)("span",{className:"amount",children:Number(s==null?void 0:s.amount).toFixed(2)})]})]}):_()})}else return(0,y.jsx)(y.Fragment,{children:j?_():(0,y.jsx)("button",{className:"material",onClick:b,children:(0,y.jsx)("div",{className:"text",children:I18N.LeftSidePanel.modals.material_free_for_member})})})};return(0,y.jsxs)(d,{children:[p.size>0&&(0,y.jsxs)(y.Fragment,{children:[v&&(0,y.jsx)("button",{className:"white select_all",onClick:v,children:I18N.LeftSidePanel.modals.select_all}),a&&(0,y.jsx)("button",{className:"white clear_all",onClick:a,children:I18N.LeftSidePanel.modals.clear_all})]}),I()]})})},64972:(Fe,ee,e)=>{"use strict";e.d(ee,{HM:()=>n,UU:()=>c,mg:()=>r});const n={isHidden:!1,isActive:!1,isDraggingWidgetCid:null,newItems:[],isDragging:!1,isAdjustingRowGap:!1,isAdjustingColGap:!1,isResizingGap:!1,rowGap:null,colGap:null,selectedWidgetInfo:[],rowStates:[],changes:[],enableMarginChange:!1};function r(o,w){switch(o===void 0&&(o=n),w.type){case"smart-selection:update:state":return{...o,...w.payload};case"smart-selection:reset:state":return{...n};default:return o}}let c;(function(o){function w(d){return{type:"smart-selection:update:state",payload:{...d}}}o.update=w;function u(){return{type:"smart-selection:reset:state"}}o.reset=u})(c||(c={}))},65209:(Fe,ee,e)=>{"use strict";e.d(ee,{_:()=>r});var n=e(20089);const r=function(c,o){o===void 0&&(o=sdkStore);const w=o.getHotItem(c),u=o.getSubHotItemList(c).sort((d,y)=>y.hotAttr.zIndex-d.hotAttr.zIndex).filter(d=>d.hotAttr.type!==n.x.WSticky&&d.hotAttr.type!==n.x.WTear);return u!=null&&u.length?u[0].hotAttr.zIndex+1:c===MB.getCurrentScreen().cid?MB.getNextWidgetZ():w.hotAttr.zIndex+1}},65415:(Fe,ee,e)=>{"use strict";e.d(ee,{b:()=>f});var n=e(95549),r=e(38502),c=e(18381),o=e(12211),w=e(67588),u=e(53940),d=e(76527),y=e(72214);class h extends r.PureComponent{render(){const{theme:s,isNeedLink:l}=this.props;return(0,y.jsxs)(d.k,{className:"search-no-results",children:[(0,y.jsx)("img",{src:"/mb-proto2/images/workspace/design/"+(s===u.Sx.DARK?"no_search_result_dark":"no_search_result_light")+".png",alt:""}),(0,y.jsx)("div",{className:"action-container",children:(0,y.jsx)("p",{className:"tips",children:I18N.Popups.content_not_found})}),l&&(0,y.jsx)("p",{className:"tips-link",dangerouslySetInnerHTML:{__html:I18N.Resources.search_no_results.feedback.replace(/%href%/,I18N.link.link_feedback)}})]})}}(0,n.A)(h,"defaultProps",{isNeedLink:!0});const i=(0,o.Mz)([w.O4],p=>({theme:p})),f=(0,c.Ng)(p=>i(p))(h)},65541:(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:"30",height:"14",viewBox:"0 0 30 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),n.createElement("rect",{width:"30",height:"14",rx:"4",fill:"url(#paint0_linear_3390_1247)"}),n.createElement("path",{d:"M8.90708 6.92016C9.29383 6.99321 9.5995 7.18913 9.8241 7.50791C10.0487 7.82669 10.1424 8.19196 10.1053 8.60372C10.0718 8.97563 9.94882 9.30437 9.73641 9.58995C9.53126 9.86888 9.24817 10.088 8.88714 10.2474C8.5261 10.4068 8.10892 10.4865 7.63558 10.4865H4.62558L5.25241 3.53311H8.13241C8.60575 3.53311 9.00553 3.60948 9.33176 3.76223C9.66465 3.91498 9.9055 4.1275 10.0543 4.39979C10.2097 4.67209 10.2719 4.9809 10.2408 5.32625C10.2042 5.73137 10.0637 6.07007 9.81917 6.34237C9.58129 6.61466 9.27726 6.80726 8.90708 6.92016ZM6.39378 6.40214H7.67378C8.00711 6.40214 8.27036 6.32908 8.46354 6.18298C8.6573 6.03023 8.76676 5.81439 8.79191 5.53545C8.81705 5.25652 8.74651 5.04068 8.58028 4.88793C8.41405 4.73518 8.16427 4.6588 7.83093 4.6588H6.55093L6.39378 6.40214ZM7.53796 9.35086C7.87796 9.35086 8.14848 9.27117 8.34951 9.11178C8.55721 8.95239 8.67424 8.72658 8.70058 8.43437C8.72752 8.13551 8.64847 7.90307 8.46344 7.73703C8.27901 7.56436 8.01679 7.47802 7.67679 7.47802H6.29679L6.12796 9.35086H7.53796ZM16.0609 7.60753C16.0429 7.80677 16.0134 7.98608 15.9724 8.14547H11.9224C11.9198 8.54395 12.0317 8.85609 12.258 9.08189C12.4843 9.3077 12.7775 9.4206 13.1375 9.4206C13.6575 9.4206 14.0475 9.19811 14.3076 8.75315H15.8176C15.6097 9.28445 15.2635 9.72278 14.7791 10.0681C14.2952 10.4068 13.7233 10.5762 13.0633 10.5762C12.5299 10.5762 12.0604 10.46 11.6547 10.2275C11.2563 9.98843 10.9565 9.65304 10.7554 9.22136C10.561 8.78968 10.4892 8.29158 10.5401 7.72707C10.5916 7.15592 10.7535 6.65451 11.0257 6.22282C11.298 5.79114 11.6546 5.45908 12.0955 5.22663C12.5365 4.99419 13.0303 4.87797 13.577 4.87797C14.1036 4.87797 14.5634 4.99087 14.9564 5.21667C15.3561 5.44247 15.6504 5.76458 15.8393 6.18298C16.0355 6.59473 16.1094 7.06959 16.0609 7.60753ZM14.6468 7.20905C14.6725 6.85042 14.5682 6.56485 14.334 6.35233C14.1005 6.13317 13.8004 6.02359 13.4337 6.02359C13.087 6.02359 12.7841 6.12985 12.5249 6.34237C12.2731 6.54825 12.1037 6.83714 12.0168 7.20905H14.6468ZM18.4475 6.11324L18.2068 8.78303C18.19 8.96899 18.2211 9.10514 18.3 9.19147C18.3861 9.27117 18.5359 9.31102 18.7492 9.31102H19.3992L19.2932 10.4865H18.4132C17.2332 10.4865 16.6947 9.91537 16.7977 8.77307L17.0375 6.11324H16.3775L16.4808 4.96762H17.1408L17.2638 3.60284H18.6738L18.5508 4.96762H19.7908L19.6875 6.11324H18.4475ZM19.7907 7.70715C19.841 7.14928 19.9956 6.65451 20.2546 6.22282C20.5201 5.79114 20.8534 5.45908 21.2544 5.22663C21.662 4.99419 22.1025 4.87797 22.5758 4.87797C22.9891 4.87797 23.3416 4.96098 23.6333 5.12701C23.9317 5.29304 24.1628 5.50225 24.3268 5.75461L24.3977 4.96762H25.8077L25.3102 10.4865H23.9002L23.9729 9.67961C23.7696 9.93862 23.5001 10.1545 23.1646 10.3271C22.8363 10.4932 22.4654 10.5762 22.0521 10.5762C21.5854 10.5762 21.1696 10.4566 20.8044 10.2175C20.446 9.97846 20.1729 9.64308 19.9851 9.2114C19.8047 8.77307 19.7399 8.27166 19.7907 7.70715ZM24.1489 7.72707C24.1795 7.38837 24.1389 7.09947 24.0271 6.86039C23.9159 6.61466 23.7527 6.4287 23.5374 6.30252C23.3227 6.16969 23.0853 6.10328 22.8253 6.10328C22.5653 6.10328 22.3196 6.16637 22.0883 6.29256C21.8569 6.41874 21.6601 6.6047 21.498 6.85042C21.3431 7.08951 21.2507 7.37508 21.2207 7.70715C21.1908 8.03921 21.2311 8.33143 21.3417 8.5838C21.4596 8.82952 21.6225 9.0188 21.8305 9.15163C22.0452 9.28445 22.2792 9.35086 22.5326 9.35086C22.7926 9.35086 23.0416 9.28777 23.2796 9.16159C23.5183 9.02876 23.715 8.84281 23.8699 8.60372C24.0254 8.35799 24.1184 8.06578 24.1489 7.72707Z",fill:"white"}),n.createElement("defs",null,n.createElement("linearGradient",{id:"paint0_linear_3390_1247",x1:"-2.28814",y1:"0.913043",x2:"41.9511",y2:"11.8227",gradientUnits:"userSpaceOnUse"},n.createElement("stop",{stopColor:"#5B5CF9"}),n.createElement("stop",{offset:"0.707314",stopColor:"#FA78FF"}),n.createElement("stop",{offset:"1",stopColor:"#FFCF26"}))))})},66247:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>d});var n=e(38502),r=e(53732),c=e.n(r),o=e(67787);const w=o.Ay.span.withConfig({displayName:"styles__StyledSUnreadSignal",componentId:"sc-2pu3mc-0"})(["position:absolute;width:6px;height:6px;background-color:",";border-radius:50%;opacity:0;&.is-on{opacity:1;}"],y=>y.theme.color_proto);var u=e(72214);const d=(0,n.memo)(y=>{let{on:h,className:i}=y;return h?(0,u.jsx)(w,{className:c()(i,{"is-on":h})}):null})},66530:(Fe,ee,e)=>{"use strict";e.d(ee,{Ef:()=>c,Pg:()=>o,Yo:()=>w});var n=e(67787),r=e(82535);const c=(0,n.Ay)(r.FO).withConfig({displayName:"styles__StyledLoginModal",componentId:"sc-mnw7hl-0"})(["&.login-modal{width:100%;height:100%;background:transparent;transform:translateY(0px);iframe{width:100%;height:100%;border:1px solid rgba(6,8,10,0.56);background:transparent;}}"]),o=(0,n.DU)(["#IBOT_MODAL_ROOT{.ModalPortal,.ModalPortal.is-open{transition:none;transform:translateY(0px);}.ModalPortal.is-open .TransitionModal{transition:none;transform:translateY(0px);}}"]),w=(0,n.Ay)(r.FO).withConfig({displayName:"styles__StyledLoginModal4WS",componentId:"sc-mnw7hl-1"})(["&.login-modal{width:460px;overflow:hidden;height:633px;iframe{width:100%;height:100%;border:0;}.btn-close-modal{position:absolute;z-index:5;top:24px;right:24px;display:flex;justify-content:center;align-items:center;.svg-icon{width:24px;height:24px;&:hover{path{fill:#5B6B73;}}}}}"])},66553:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>r});var n=e(67787);const r=n.Ay.aside.withConfig({displayName:"PopupPanel",componentId:"sc-cvia0u-0"})(["width:250px;height:80vh;min-height:468px;box-sizing:content-box;background:",";border-radius:8px;border:1px solid ",";box-shadow:",";display:flex;flex-direction:column;& > header{height:36px;display:flex;justify-content:space-between;align-items:center;background:",";& > .title{margin-left:10px;pointer-events:none;color:",";&.customize-title{pointer-events:unset;display:flex;}&.template-title{display:flex;align-items:center;pointer-events:unset;.question-action{height:14px;margin-left:6px;color:",";.svg-icon{width:14px;height:14px;}&:hover{color:",";}}}}& > .icon{width:30px;height:32px;line-height:32px;color:",";text-align:center;cursor:pointer;&:hover{color:",";}.times-icon{width:8px;height:8px;}}}& > footer{height:40px;padding-right:10px;display:flex;justify-content:flex-end;align-items:center;background:",";.footer-button{padding:10px;&.is-active{color:",";}}}"],c=>c.theme.color_bg_white,c=>c.theme.color_bg_border_01,c=>c.theme.shadow_l,c=>c.theme.color_btn_secondary_active,c=>c.theme.color_text_L2,c=>c.theme.color_text_L3,c=>c.theme.color_text_L2,c=>c.theme.color_text_L3,c=>c.theme.color_text_L2,c=>c.theme.color_bg_white,c=>c.theme.color_primary_brand01)},66727:(Fe,ee,e)=>{"use strict";e.d(ee,{F:()=>n});const n=["leftmenu","rightmenu","leftdrawer","rightdrawer"]},67061:(Fe,ee,e)=>{"use strict";e.d(ee,{j:()=>h});var n=e(38502),r=e(53732),c=e.n(r),o=e(18381),w=e(67787),u=e(17307),d=e(67588),y=e(72214);const h=f=>{const{scrollContainerEl:p,topDiff:s=0,getNextScrollLeft:l,leftIcon:C,rightIcon:v}=f,[a,P]=(0,n.useState)(!1),[b,g]=(0,n.useState)(!0),S=(0,o.d4)(d.O4),t=_=>{if(!p||!l)return;const I=l(_);p.scroll({top:0,left:I,behavior:"smooth"}),P(I>0),g(I+p.clientWidth<p.scrollWidth)};return(0,y.jsxs)(i,{className:"x-scroll-bar-action",topDiff:s,children:[a&&(0,y.jsx)("div",{className:c()("scroll-bar left",S),onClick:()=>t("left"),children:C||(0,y.jsx)(u.C,{className:"scroll-arrow left",name:"design/arrow/right"})}),b&&(0,y.jsx)("div",{className:c()("scroll-bar right",S),onClick:()=>t("right"),children:v||(0,y.jsx)(u.C,{className:"scroll-arrow right",name:"design/arrow/right"})})]})},i=w.Ay.div.withConfig({displayName:"XScrollBar__StyledXScrollBar",componentId:"sc-j3j78m-0"})([".scroll-bar{z-index:1;transition:opacity 0.15s ease-in-out;opacity:0;display:flex;align-items:center;justify-content:center;width:20px;height:28px;position:absolute;top:calc((100% - 28px - ","px) / 2);border-radius:6px;backdrop-filter:blur(10px);background-color:#00000014;&:hover{background-color:#00000026;}&.dark{background-color:#FFFFFF14;&:hover{background-color:#FFFFFF26;}}&.left{left:6px;}&.right{right:7px;}.scroll-arrow{width:8px;height:12px;color:",";&.left{transform:rotate(180deg);}}}"],f=>f.topDiff,f=>f.theme.color_text_L1)},67167:(Fe,ee,e)=>{"use strict";e.d(ee,{MP:()=>M,hS:()=>D,vz:()=>F});var n=e(13235),r=e(20089),c=e(31569);const o={screen_meta:["artboard_id","artboard_image_url","bgcolor","bgimage","expanded","name","orientation","parent_cid","position","project_meta_cid","screen_glue_cid","width","height"],[r.x.WCarousel]:["isVisible","isLock","bitFlag","top","left","width","height","isLockAspect","z","ro","opacity","fixPosTo","fixed","fixed_type","horizontalAlign","verticalAlign","data","display_name","borderRadius"],[r.x.WTable]:["isVisible","isLock","bitFlag","fontSize","br","width","height","isLockAspect","top","left","z","textDecoration","bold","italic","textColor","opacity","fixPosTo","fixed","fixed_type","display_name","tableData","innerBorderV","innerBorderH","outerBorder","styleType"],group:["isVisible","isLock","bitFlag","top","left","width","height","isLockAspect","z","ro","fixPosTo","aniName","aniDelay","aniCount","aniDuration","opacity","expanded","display_name","animation"],[r.x.WRichText]:["isVisible","isLock","font_direction","bitFlag","text","fontSize","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","th","lineHeight","textDecoration","bold","italic","textColor","opacity","shadow","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","clip","sizeType","display_name","animation"],label:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","th","lineHeight","textDecoration","bold","italic","background","border","textColor","opacity","ts","shadow","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],text_view:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","th","lineHeight","textDecoration","bold","italic","background","border","textColor","opacity","ts","shadow","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","clip","display_name","borderVisibility","animation"],[r.x.WSticky]:["isVisible","isLock","bitFlag","text","fontSize","horizontalAlign","lineHeight","bold","italic","textDecoration","width","height","isLockAspect","top","left","background","textColor","th","slw","slt","padding","point","display_name","fill"],[r.x.WButton]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","icon","is","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","fill","animation"],icon_button:["isVisible","isLock","bitFlag","is","icon","br","borderRadius","top","left","width","height","isLockAspect","z","th","background","border","textColor","opacity","ds","shadow","sc","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],text_field:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","th","background","border","textColor","opacity","ds","shadow","sc","ro","textDecoration","bold","italic","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[r.x.WMTextInput]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","width","height","isLockAspect","top","left","z","th","background","border","textColor","opacity","ds","shadow","sc","bold","italic","fixPosTo","fixed","fixed_type","input_type","display_name","borderVisibility","fill"],[r.x.WMTextArea]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","width","height","isLockAspect","top","left","z","th","lineHeight","background","border","textColor","opacity","ds","shadow","sc","bold","italic","fixPosTo","fixed","fixed_type","padding","display_name","borderVisibility","fill"],[r.x.WMSelect]:["isVisible","isLock","bitFlag","text","fontSize","width","height","isLockAspect","top","left","z","th","background","border","textColor","opacity","ds","shadow","sc","fixPosTo","fixed","fixed_type","display_name","fill"],switch:["isVisible","isLock","bitFlag","top","left","z","checked","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[r.x.WIOSSwitch]:["isVisible","isLock","bitFlag","top","left","z","opacity","width","height","isLockAspect","checked","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","switch_disabled","thumb_checked_style","thumb_unchecked_style","track_checked_style","track_unchecked_style","animation"],[r.x.WAndroidSwitch]:["isVisible","isLock","bitFlag","top","left","z","opacity","width","height","isLockAspect","checked","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","switch_disabled","thumb_checked_style","thumb_unchecked_style","track_checked_style","track_unchecked_style","animation"],[r.x.WIosCB]:["isVisible","isLock","bitFlag","top","left","z","width","height","checked","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[r.x.WAndroidCB]:["isVisible","isLock","bitFlag","top","left","z","width","height","checked","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[r.x.WAndroidRadio]:["isVisible","isLock","bitFlag","top","left","z","width","height","checked","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],mcheckbox:["isVisible","isLock","bitFlag","top","left","width","height","z","opacity","checked","fixPosTo","fixed","fixed_type","display_name"],mradiobutton:["isVisible","isLock","bitFlag","top","left","width","height","isLockAspect","z","opacity","checked","fixPosTo","fixed","fixed_type","display_name"],[r.x.WMFileInput]:["isVisible","isLock","bitFlag","top","left","width","height","isLockAspect","z","opacity","fixPosTo","fixed","fixed_type","display_name"],image_view:["isVisible","isLock","bitFlag","br","borderRadius","width","height","isLockAspect","top","left","image","z","th","background","border","textColor","opacity","p","ds","shadow","sc","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[r.x.WImage]:["isVisible","isLock","bitFlag","br","borderRadius","width","height","isLockAspect","top","left","image","z","th","background","border","textColor","opacity","p","ds","shadow","sc","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","clip","filter","display_name","clip_type","image","animation"],[r.x.WMapView]:["isVisible","isLock","bitFlag","width","height","isLockAspect","top","left","z","fixPosTo","fixed","fixed_type","display_name"],navigation_bar:["isVisible","isLock","bitFlag","text","fontSize","top","left","z","width","height","isLockAspect","th","textDecoration","bold","italic","background","textColor","border","opacity","ts","tsc","ds","shadow","sc","fixPosTo","fixed","fixed_type","display_name"],nav_bar:["isVisible","isLock","bitFlag","text","fontSize","top","left","z","width","height","isLockAspect","th","textDecoration","bold","italic","background","textColor","border","opacity","ts","tsc","ds","shadow","sc","fixPosTo","fixed","fixed_type","display_name"],[r.x.WSearchBar]:["isVisible","isLock","bitFlag","fontSize","top","left","width","horizontalAlign","z","th","isLockAspect","background","textColor","border","opacity","ds","shadow","sc","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[r.x.WTabItem]:["isVisible","isLock","bitFlag","is","icon","width","left","top","fontSize","z","th","isLockAspect","background","textColor","opacity","ds","shadow","sc","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],tab_bar:["isVisible","isLock","bitFlag","height","isLockAspect","z","th","background","border","opacity","ds","shadow","sc","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],hr:["isVisible","isLock","bitFlag","width","height","isLockAspect","top","left","opacity","z","th","border","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],line:["isVisible","isLock","bitFlag","border","width","height","top","left","points","shadow","opacity","z","th","fixPosTo","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[r.x.WLine]:["isVisible","isLock","bitFlag","arrow_stroke","width","height","top","left","points","shadow","arrow_types","opacity","z","th","fixPosTo","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],ve:["isVisible","isLock","bitFlag","width","height","top","left","opacity","z","th","border","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[r.x.WUnifiedKeyboard]:["isVisible","isLock","bitFlag","width","height","top","left","z","numeric","fixPosTo","fixed","fixed_type","display_name"],legacy_iphone_status_bar:["isVisible","isLock","bitFlag","top","left","width","height","isLockAspect","text","th","background","textColor","opacity","z","fixPosTo","display_name"],legacy_iphone_x_status_bar:["isVisible","isLock","bitFlag","text","top","left","width","height","isLockAspect","th","background","textColor","opacity","z","fixPosTo","display_name"],legacy_android_status_bar:["isVisible","isLock","bitFlag","text","top","left","width","height","isLockAspect","th","background","textColor","opacity","z","fixPosTo","display_name"],legacy_ipad_status_bar:["isVisible","isLock","bitFlag","text","th","top","left","width","height","isLockAspect","background","textColor","opacity","z","fixPosTo","display_name"],[r.x.WAndroidSB]:["isVisible","isLock","bitFlag","th","background","textColor","border","opacity","width","height","isLockAspect","top","left","z","fixPosTo","fixed","fixed_type","display_name"],rectangle:["isVisible","isLock","bitFlag","height","isLockAspect","top","left","z","th","background","border","opacity","ds","shadow","sc","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],[r.x.WWrap]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","animation"],[r.x.WOval]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","fill","animation"],[r.x.WRect]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","borderVisibility","fill","animation"],[r.x.WPolygon]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","sideNum","fill","animation","polygon"],[r.x.WStar]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","sideNum","radius","fill","animation","star"],circle_rect:["isVisible","isLock","bitFlag","text","fontSize","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","fill","animation"],[r.x.WTriangleB]:["isVisible","isLock","bitFlag","width","height","isLockAspect","top","left","z","th","background","opacity","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","fill","animation"],[r.x.WTriangleTL]:["isVisible","isLock","bitFlag","width","height","isLockAspect","top","left","z","th","background","opacity","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","fill","animation"],[r.x.WLR]:["isVisible","isLock","bitFlag","width","height","isLockAspect","top","left","z","fixPosTo","fixed","fixed_type","display_name"],[r.x.WWebpage]:["isVisible","isLock","bitFlag","width","height","isLockAspect","top","left","z","text","display_name"],pg:["left","top","display_name"],[r.x.WMTooltip]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","th","lineHeight","textDecoration","bold","italic","background","textColor","opacity","ts","tsc","ds","shadow","sc","border","ro","padding","_ttPlacement","_ttOffset","_ttArrowSize","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","animation"],svg_icon_button:["isVisible","isLock","bitFlag","is","icon","br","borderRadius","top","left","width","height","z","th","background","border","textColor","opacity","ds","shadow","sc","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","fill","animation"],svg_icon_path:["isVisible","isLock","bitFlag","is","icon","br","borderRadius","top","left","width","height","z","th","background","border","textColor","opacity","ds","shadow","sc","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","view_box","path","svgAttr","fill","animation"],wPanel:["states","left","top","width","height","isLockAspect","fixed","fixed_type","isVisible","screen_state_cid","screen_meta_cid","screen_glue_cid","isLock","fixPosTo","display_name","overflow_behavior","scroll"],[r.x.WBasket]:["states","left","top","width","height","isLockAspect","fixed","fixed_type","isVisible","screen_state_cid","screen_meta_cid","screen_glue_cid","isLock","fixPosTo","display_name","overflow_behavior","scroll"],[r.x.WChart]:["isVisible","z","opacity","left","top","width","height","isLockAspect","display_name","isLock","data","ro","fixPosTo","chartType","chartCategory","chartTheme","grid","unit","showAxis","textAngle","showToolTip","showHelpMark","smooth","legend","chartData","chartBorderRadius","chartInnerRadius","shLabel","progress","aniName","aniDelay","aniCount","aniDuration","animation"],[r.x.WAudio]:["v","locked","display_name","z","opacity","left","top","width","height","isLockAspect","ro","fixPosTo","text","borderRadius","shadow","aniName","aniDelay","aniCount","aniDuration","is_autoplay","is_keep_alive","is_loop","is_hidden","animation"],[r.x.WVideo]:["isVisible","isLock","display_name","z","opacity","left","top","width","height","isLockAspect","ro","fixPosTo","text","borderRadius","shadow","aniName","aniDelay","aniCount","aniDuration","is_autoplay","is_loop","is_muted","is_hide_controls","animation"],[r.x.WQRCode]:["isVisible","isLock","display_name","z","opacity","left","top","width","height","ro","fixPosTo","text","aniName","aniDelay","aniCount","aniDuration","background","foreground","animation"],[r.x.WSlider]:["isVisible","isLock","display_name","z","opacity","left","top","width","height","isLockAspect","ro","fixPosTo","aniName","aniDelay","aniCount","aniDuration","data","animation"],[r.x.WCollapse]:["isVisible","isLock","display_name","z","opacity","left","top","width","height","isLockAspect","ro","borderRadius","border","fixPosTo","aniName","aniDelay","aniCount","aniDuration","optionData","canExpandOneMenu","data","animation"],[r.x.WPlaceholder]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","fill","animation"],[r.x.WDigitalStepper]:["isVisible","isLock","bitFlag","number","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","min","max","sliderSize","is","ic","animation"],[r.x.WPaginationMobile]:["isVisible","isLock","bitFlag","number","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","pagesNumber","checkedTextSize","checkedTextColor","animation"],[r.x.WPaginationWeb]:["isVisible","isLock","bitFlag","number","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","pagesNumber","checkedTextSize","checkedTextColor","checkedBg","checkedBorder","animation"],[r.x.WDropMenu]:["isVisible","is_multiple","width","height","left","top","isLockAspect","isLock","bitFlag","gid","link_cids","opacity","z","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","background","border","shadow","borderRadius","textColor","fontSize","textDecoration","bold","italic","verticalAlign","horizontalAlign","th","text","mutualWay","optionData","dropMenuEcho","animation"],[r.x.WSegmentedControl]:["isVisible","width","height","left","top","isLockAspect","isLock","bitFlag","gid","link_cids","opacity","z","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","background","border","borderRadius","fontSize","textColor","checkedBg","checkedTextSize","checkedTextColor","optionData","animation"],[r.x.WSelectionControl]:["isVisible","width","height","left","top","isLockAspect","isLock","bitFlag","gid","link_cids","opacity","z","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderColor","border","borderRadius","disabled","fontSize","textColor","checkedBgColor","checkedTc","optionData","gap","layout","selectionControlType","animation"],[r.x.WNavigationMenu]:["isVisible","width","height","left","top","isLockAspect","isLock","opacity","ro","z","aniName","aniDelay","aniCount","aniDuration","fixPosTo","optionData","panelData","expandData","selectedData","isShowIcon","canExpandOneMenu","navigationMenuType","display_name","animation"],[r.x.WTabs]:["isVisible","isLock","bitFlag","fontSize","br","width","height","isLockAspect","top","left","z","th","background","border","textColor","opacity","ts","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","checkedTextSize","checkedTextColor","checkedBg","checkedBorder","checkedBoldType","checkedFontStyle","checkedTextDecoration","optionData","animation"],[r.x.WMobileTabBars]:["isVisible","isLock","bitFlag","fontSize","br","width","height","isLockAspect","top","left","z","th","background","border","borderVisibility","textColor","opacity","ts","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","optionData","isShowIcon","isShowText","iconSize","iconColor","selectedTextColor","selectedIconColor","isShowSelectedText","isShowSelectedIcon","animation"],[r.x.WButtonSolid]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","is","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","fill","animation"],[r.x.WTear]:["cid","mtime","name","left","top","width","height","isLockAspect","data","bind_widget_cid","ctime","order"],[r.x.Canvas]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","is","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","animation"],[r.x.WElbow]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","borderVisibility","fill","animation"],[r.x.WIcon]:["iconData","fill","opacity","animation","aniName","aniDelay","aniCount","aniDuration"],[r.x.WVector]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","borderVisibility","fill","animation","vector"],[r.x.WTriangle]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","borderVisibility","fill","animation"],[r.x.WSwimlane]:["text","isVisible","isLock","bitFlag","fontSize","br","width","height","isLockAspect","top","left","z","textDecoration","bold","italic","textColor","opacity","fixPosTo","fixed","fixed_type","display_name","tableData","innerBorderV","innerBorderH","outerBorder","styleType"],[r.x.wFlowClosed]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","fill","animation"],[r.x.WFlowOpened]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","fill","animation"],[r.x.WMind]:["isVisible","isLock","bitFlag","borderRadius","width","height","isLockAspect","top","left","z","background","border","opacity","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","borderVisibility","fill","animation"],[r.x.WMindNode]:["bitFlag","text","fontSize","br","width","height","isLockAspect","top","left","z","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","display_name","borderVisibility","fill"],[r.x.WIphoneXSB]:["isVisible","isLock","bitFlag","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","sc","ro","padding","fixPosTo","fixed","fixed_type","display_name","fill"],[r.x.WIconButton]:["isVisible","isLock","bitFlag","is","icon","br","borderRadius","top","left","width","height","z","th","background","border","textColor","opacity","ds","shadow","sc","ro","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","fill","animation"],[r.x.WArrow]:["isVisible","isLock","bitFlag","text","fontSize","br","borderRadius","horizontalAlign","verticalAlign","width","height","isLockAspect","top","left","z","lineHeight","th","textDecoration","bold","italic","background","border","textColor","opacity","ts","tsc","ds","shadow","sc","ro","padding","fixPosTo","fixed","fixed_type","aniName","aniDelay","aniCount","aniDuration","display_name","borderVisibility","borderVisibility","fill","animation","arrow"]},w=B=>{let{type:Y}=B;return o[Y]},u=e.j!=477?["icon","is"]:null,d=(B,Y,X)=>{const G=new Set;return w(B).forEach(Z=>{B.type===r.x.WTable&&Y||B.type===r.x.WMind&&X!=null&&X.length||B.type==="button"&&!B.icon&&u.includes(Z)||G.add(Z)}),G};if(e.j!=477)var y=e(2371);var h=e(19013),i=e(76210),f=e(847),p=e(49021),s=e(37505),l=e(45392),C=e(56056);const v={[h.m9]:B=>{const Y=i.U[f.q.OpacityInfoPanel][h.m9];return{animation:[l.L],appearance:[Y,...(0,s.ae)(B)],text:(0,p.xR)(B)}},[r.x.WTable]:()=>({appearance:[C.p],text:(0,p.b5)()})},a=B=>(v[B]||v[h.m9])(B);var P=e(15186),b=e(40610),g=e(1002),S=e(69815),t=e(9521),_=e(86594),I=e(33421),k=e(59025),j=e(9680);const z=B=>B&&parseFloat(B),K=["aniCount","aniDelay","aniDuration","aniName"],$=["opacity","text_shadow","box_shadow","background","border","borderRadius","borderVisibility","fill"],A=["boldType","textColor","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paraSpacing","padding","sizeType","textDecoration","ha","va"],E=["fontSize","padding","lineHeight","paraSpacing","letterSpacing"],U=["arrowTypes","arrowStroke"],O=K.concat($).concat(A).concat(U),H={[r.x.WStar]:"star",[r.x.WPolygon]:"polygon"},Q=[r.x.WMTextInput,r.x.WMTextArea,r.x.WMindNode,r.x.Canvas],N=[r.x.WRect,r.x.WOval,r.x.CanvasAsOverlay,r.x.WImage,r.x.WPlaceholder,r.x.WMTextInput,r.x.WMTextArea,r.x.WDropMenu,r.x.WMSelect,r.x.WPolygon,r.x.WStar,r.x.WButton,r.x.WButtonSolid,r.x.WVector,r.x.WTriangle],L=[r.x.WRect,r.x.WOval,r.x.WRichText,r.x.WButtonSolid,r.x.WPlaceholder,r.x.WPolygon,r.x.WStar,r.x.wFlowClosed,r.x.WFlowOpened,r.x.WButton,r.x.WElbow,r.x.WVector,r.x.WTriangle,r.x.WLine,r.x.WArrow],V=e.j!=477?["elbow","arrow"]:null,M=function(B,Y,X,G){var Z,J;G===void 0&&(G=!1);const te=(0,k.o9)(Y),he=b.VV.includes(te),de=!X.has("sideNum"),{animation:Se,appearance:xe,text:be,refVars:ie}=B,oe=(0,_.Dy)(Se,Y.animation),{borderRadius:ue,fill:ve,background:re,tc:fe,arrowTypes:we,arrowStroke:Te,shadow:Ie}=xe,{boldType:le,fontFamily:me,textColor:Pe,fontSize:pe,fontStyle:ke,fontWeight:We,padding:Ee,textDecoration:Ae,ha:Ce,va:_e,lineHeight:Ge,paraSpacing:Xe,letterSpacing:Ue,sizeType:pt}=be;V.forEach(Gn=>{delete ie[Gn]});const Ye=Y.refVars,Qe=(0,j.m1)(B),lt={...Ye,...Qe},tt=H[te],qe=(0,y.k4)(ue||""),et=de?null:(0,c.i)([{hotAttr:Y}],tt);let st=qe&&!de?(Z=ue==null?void 0:ue.radiusTL)!=null?Z:0:ue;const at=!qe&&!de;if(tt){var ct;lt[tt]={...Ye==null?void 0:Ye[tt],cornerRadius:qe?(ct=lt.borderRadius)==null?void 0:ct.radiusTL:lt.borderRadius}}if(te===r.x.WTriangle&&qe){var rt,At;st=(rt=ue==null?void 0:ue.radiusTL)!=null?rt:0,lt.borderRadius=(At=lt.borderRadius)==null?void 0:At.radiusTL}te===r.x.WOval&&(st=0,delete lt.borderRadius);const ot=at?{...xe,[tt]:{...et,cornerRadius:st}}:{...xe,borderRadius:st},Tt=(0,y.Eg)(ve);if(ot.fill=Tt&&Q.includes(te)?{...Y.fill,fillIsVisible:ve.fillIsVisible,solidColor:re?re[1]:fe}:ve,te===r.x.WRichText||te===r.x.WIcon){if((Ie==null?void 0:Ie.type)!=="text_shadow"&&ot.shadow){var ft;if(ot.shadow.type="text_shadow",(ft=lt.shadow)!=null&&ft.spreadRadius){var Nt;(Nt=lt.shadow)==null||delete Nt.spreadRadius}}}else if(Ie&&Ie.type!=="box_shadow"&&ot.shadow){var Bt;if(ot.shadow.type="box_shadow",ot.shadow.spreadRadius=0,(Bt=lt.shadow)!=null&&Bt.spreadRadius){var zt;(zt=lt.shadow)==null||delete zt.spreadRadius}}te===r.x.Canvas&&(ot.shadow=null,ot.border=null,ot.borderRadius=null,ot.borderVisibility=null);const Xt=(0,I.QT)(me,We);let bt=(0,_.hT)({animation:oe,...ot,ha:Ce,va:_e},Y,lt);if(he){const Gn=me,yo=We,Ve=pt,ut=Ue,Kt=Xe,St=typeof Pe=="number"?(0,P.t0)(Pe):Pe,fn=ke==="italic",En=le===1,gn=Ae&&Ae.includes("underline"),Yn=Ae&&Ae.includes("line-through"),Pn={...bt.richTextV1},_n={...lt.richTextV1};if(St!==void 0&&(Pn.textColor=St),fn!==void 0&&(Pn.italic=fn),En!==void 0&&(Pn.bold=En),gn!==void 0&&(Pn.underline=gn),Yn!==void 0&&(Pn.strikethrough=Yn),pe!==void 0&&(Pn.fontSize=pe,_n.fontSize=ie.fontSize),Ge!==void 0&&(Pn.lineHeight=Ge,_n.lineHeight=ie.lineHeight),Ee!==void 0&&(Pn.padding=Ee,_n.padding=ie.padding),Ce!==void 0&&(Pn.horizontalAlign=Ce),_e!==void 0&&(Pn.verticalAlign=_e),Xt&&(delete Pn.fontFamily,delete Pn.fontWeight),te===r.x.WRichText)Gn!==void 0&&(Pn.fontFamily=Gn),yo!==void 0&&(Pn.fontWeight=yo),Ve!==void 0&&(Pn.sizeType=Ve),ut!==void 0&&(Pn.letterSpacing=ut,_n.letterSpacing=ie.letterSpacing),Kt!==void 0&&(Pn.paraSpacing=Kt,_n.paraSpacing=ie.paraSpacing),Xt&&(delete Pn.fontFamily,delete Pn.fontWeight),Pn.padding&&(delete Pn.padding,delete _n.padding),(!Xt||!G)&&(bt={...bt,richTextV1:{...bt.richTextV1,...Pn}},(0,I.jv)(bt,Pn),(0,t.PQ)(bt));else if(te===r.x.WMindNode){const Fn={...bt.richTextV1,...Pn,padding:bt.richTextV1.padding,horizontalAlign:bt.richTextV1.horizontalAlign,verticalAlign:bt.richTextV1.verticalAlign,lineHeight:bt.richTextV1.lineHeight},Nn=Fn.fontFamily;Fn.lineHeight=(0,S.qp)(Nn,Fn.fontSize),bt={...bt,richTextV1:Fn}}else bt={...bt,richTextV1:{...bt.richTextV1,...Pn}},(0,I.jv)(bt,Pn);lt.richTextV1=_n}else if(JSON.stringify(be)!=="{}"){const Gn=ke?+(ke==="italic"):void 0,yo=Ae&&Ae.includes("underline")?"underline":Ae&&Ae.includes("line-through")?"line-through":"normal";if(Y.textV0){const Ve={bold:le?!!le:void 0,fontSize:pe,horizontalAlign:Ce,italic:Gn?!!Gn:void 0,lineHeight:Ge,padding:Ee,textColor:Pe,textDecoration:yo,verticalAlign:_e};bt.textV0=(0,_.Dy)(Ve,Y.textV0);const ut={...lt.textV0};pe!==void 0&&(ut.fontSize=pe),Ge!==void 0&&(ut.lineHeight=Ge),Ee!==void 0&&(ut.padding=Ee),lt.textV0=ut}}if(te===r.x.WElbow){if(we&&we.length===2){const[Gn,yo]=we;bt={...bt,elbow:{...bt.elbow,startAnchor:g.pt[Gn||0],endAnchor:g.qs[yo||1]}}}Te&&Te.bdrStyle&&(bt={...bt,elbow:{...bt.elbow,arrowStroke:{...bt.arrowStroke,...Te}}})}if(te!==r.x.WMindNode&&(bt.refVars=lt),N.includes(te)){var jn;bt.refStyles={...bt.refStyles,appear:(jn=B.refStyles)==null?void 0:jn.appear}}if(L.includes(te)){var xo;bt.refStyles={...bt.refStyles,text:(xo=B.refStyles)==null?void 0:xo.text}}if((J=B.refStyles)!=null&&J.color){var Po;bt.refStyles={...bt.refStyles,color:(Po=B.refStyles)==null?void 0:Po.color}}return bt},D=async(B,Y,X,G)=>{const Z=await(0,_._d)({isShowPrompt:!0});return Z?B.map(J=>{var te;let{key:he,hotAttr:de}=J;const Se=d(de,Y,X);let xe=M(Z,{...de,cid:he},Se,G.has(he));return xe=((te=(0,j.U4)({key:he,hotAttr:xe}))==null?void 0:te.hotAttr)||xe,{key:he,hotAttr:xe}}):null},W=B=>{var Y;let{selectedItems:X,otherProps:G}=B;const Z=X[0];if(!Z)return;const J=(0,k.o9)(Z),te=a(J),he={},de={};return Object.entries(te).forEach(Se=>{let[xe,be]=Se;const ie=be.map(re=>re({selectedItems:X,...G})),oe={};ie.forEach(re=>{Object.assign(oe,re),re!=null&&re.refVars&&Object.keys(re.refVars).forEach(fe=>{re.refVars[fe]&&(de[fe]=re.refVars[fe])})});const ue=Object.entries(oe).filter(re=>{let[fe,we]=re;return we!==void 0}),ve={};ue.forEach(re=>{let[fe,we]=re;if(xe==="text")O.includes(fe)&&(E.includes(fe)?ve[fe]=z(we):fe==="va"?oe.canVa&&(ve[fe]=we):fe==="ha"?oe.canHa&&(ve[fe]=we):fe==="textColor"?ve[fe]=typeof we=="number"?we:(0,n.K8)(we):fe==="textDecoration"?oe.noTd||(ve[fe]=we):fe==="boldType"?oe.noBold||(ve[fe]=we):fe==="fontStyle"?oe.noItalic||(ve[fe]=we):fe==="sizeType"&&[r.x.WRect,r.x.WOval,r.x.WPolygon,r.x.WStar].includes(Z.type)||(ve[fe]=we));else if(O.includes(fe))if(fe==="background"){if(Z.hotAttr.type!==r.x.WRichText){const Te=typeof we=="string"?Number(we):typeof we=="object"?we.solidColor:we;ve[fe]=[1,Te],ve.fill=typeof we=="string"?{fill:"solid",fillIsVisible:!0,solidColor:Te}:we}}else if(fe==="fill"){ve[fe]=we;const Ie=we.fill==="solid"?we.solidColor:we.knobList[0].color;r.Q.BACKGROUND_TO_FILLS.includes(Z.hotAttr.type)&&(ve.background=[1,Ie])}else ve[fe]=fe==="opacity"&&typeof we=="number"?we/100:we;else if(fe==="shadowValue"){const Te="shadow";ve[Te]=we}}),he[xe]=ve}),Object.assign(he,(0,j.YH)(de)),he.refStyles=Z==null||(Y=Z.hotAttr)==null?void 0:Y.refStyles,he},F=async B=>{let{selectedItems:Y,...X}=B;const G=W({selectedItems:Y,otherProps:X});await(0,_.Sl)(G)}},67526:(Fe,ee,e)=>{"use strict";e.d(ee,{W:()=>r,i:()=>n});const n="AUTO_COMPLETE_POSITION_TOP",r="AUTO_COMPLETE_POSITION_LEFT"},67709:(Fe,ee,e)=>{(function(){var n=e(86401),r=e(16573).utf8,c=e(10308),o=e(16573).bin,w=function(u,d){u.constructor==String?d&&d.encoding==="binary"?u=o.stringToBytes(u):u=r.stringToBytes(u):c(u)?u=Array.prototype.slice.call(u,0):!Array.isArray(u)&&u.constructor!==Uint8Array&&(u=u.toString());for(var y=n.bytesToWords(u),h=u.length*8,i=1732584193,f=-271733879,p=-1732584194,s=271733878,l=0;l<y.length;l++)y[l]=(y[l]<<8|y[l]>>>24)&16711935|(y[l]<<24|y[l]>>>8)&4278255360;y[h>>>5]|=128<<h%32,y[(h+64>>>9<<4)+14]=h;for(var C=w._ff,v=w._gg,a=w._hh,P=w._ii,l=0;l<y.length;l+=16){var b=i,g=f,S=p,t=s;i=C(i,f,p,s,y[l+0],7,-680876936),s=C(s,i,f,p,y[l+1],12,-389564586),p=C(p,s,i,f,y[l+2],17,606105819),f=C(f,p,s,i,y[l+3],22,-1044525330),i=C(i,f,p,s,y[l+4],7,-176418897),s=C(s,i,f,p,y[l+5],12,1200080426),p=C(p,s,i,f,y[l+6],17,-1473231341),f=C(f,p,s,i,y[l+7],22,-45705983),i=C(i,f,p,s,y[l+8],7,1770035416),s=C(s,i,f,p,y[l+9],12,-1958414417),p=C(p,s,i,f,y[l+10],17,-42063),f=C(f,p,s,i,y[l+11],22,-1990404162),i=C(i,f,p,s,y[l+12],7,1804603682),s=C(s,i,f,p,y[l+13],12,-40341101),p=C(p,s,i,f,y[l+14],17,-1502002290),f=C(f,p,s,i,y[l+15],22,1236535329),i=v(i,f,p,s,y[l+1],5,-165796510),s=v(s,i,f,p,y[l+6],9,-1069501632),p=v(p,s,i,f,y[l+11],14,643717713),f=v(f,p,s,i,y[l+0],20,-373897302),i=v(i,f,p,s,y[l+5],5,-701558691),s=v(s,i,f,p,y[l+10],9,38016083),p=v(p,s,i,f,y[l+15],14,-660478335),f=v(f,p,s,i,y[l+4],20,-405537848),i=v(i,f,p,s,y[l+9],5,568446438),s=v(s,i,f,p,y[l+14],9,-1019803690),p=v(p,s,i,f,y[l+3],14,-187363961),f=v(f,p,s,i,y[l+8],20,1163531501),i=v(i,f,p,s,y[l+13],5,-1444681467),s=v(s,i,f,p,y[l+2],9,-51403784),p=v(p,s,i,f,y[l+7],14,1735328473),f=v(f,p,s,i,y[l+12],20,-1926607734),i=a(i,f,p,s,y[l+5],4,-378558),s=a(s,i,f,p,y[l+8],11,-2022574463),p=a(p,s,i,f,y[l+11],16,1839030562),f=a(f,p,s,i,y[l+14],23,-35309556),i=a(i,f,p,s,y[l+1],4,-1530992060),s=a(s,i,f,p,y[l+4],11,1272893353),p=a(p,s,i,f,y[l+7],16,-155497632),f=a(f,p,s,i,y[l+10],23,-1094730640),i=a(i,f,p,s,y[l+13],4,681279174),s=a(s,i,f,p,y[l+0],11,-358537222),p=a(p,s,i,f,y[l+3],16,-722521979),f=a(f,p,s,i,y[l+6],23,76029189),i=a(i,f,p,s,y[l+9],4,-640364487),s=a(s,i,f,p,y[l+12],11,-421815835),p=a(p,s,i,f,y[l+15],16,530742520),f=a(f,p,s,i,y[l+2],23,-995338651),i=P(i,f,p,s,y[l+0],6,-198630844),s=P(s,i,f,p,y[l+7],10,1126891415),p=P(p,s,i,f,y[l+14],15,-1416354905),f=P(f,p,s,i,y[l+5],21,-57434055),i=P(i,f,p,s,y[l+12],6,1700485571),s=P(s,i,f,p,y[l+3],10,-1894986606),p=P(p,s,i,f,y[l+10],15,-1051523),f=P(f,p,s,i,y[l+1],21,-2054922799),i=P(i,f,p,s,y[l+8],6,1873313359),s=P(s,i,f,p,y[l+15],10,-30611744),p=P(p,s,i,f,y[l+6],15,-1560198380),f=P(f,p,s,i,y[l+13],21,1309151649),i=P(i,f,p,s,y[l+4],6,-145523070),s=P(s,i,f,p,y[l+11],10,-1120210379),p=P(p,s,i,f,y[l+2],15,718787259),f=P(f,p,s,i,y[l+9],21,-343485551),i=i+b>>>0,f=f+g>>>0,p=p+S>>>0,s=s+t>>>0}return n.endian([i,f,p,s])};w._ff=function(u,d,y,h,i,f,p){var s=u+(d&y|~d&h)+(i>>>0)+p;return(s<<f|s>>>32-f)+d},w._gg=function(u,d,y,h,i,f,p){var s=u+(d&h|y&~h)+(i>>>0)+p;return(s<<f|s>>>32-f)+d},w._hh=function(u,d,y,h,i,f,p){var s=u+(d^y^h)+(i>>>0)+p;return(s<<f|s>>>32-f)+d},w._ii=function(u,d,y,h,i,f,p){var s=u+(y^(d|~h))+(i>>>0)+p;return(s<<f|s>>>32-f)+d},w._blocksize=16,w._digestsize=16,Fe.exports=function(u,d){if(u==null)throw new Error("Illegal argument "+u);var y=n.wordsToBytes(w(u,d));return d&&d.asBytes?y:d&&d.asString?o.bytesToString(y):n.bytesToHex(y)}})()},67773:(Fe,ee,e)=>{"use strict";e.d(ee,{d:()=>y});var n=e(67787),r=e(18381),c=e(34771),o=e(83199),w=e(79150),u=e(78257),d=e(72214);const y=i=>{let{activeIndex:f,tabList:p,onTabChange:s,isShowHistory:l=!0}=i;const C=(0,r.wA)(),v=()=>{MB.global.experienceLoginModalHelper("isSave")||(C({type:"exalt:panel:order",payload:{name:u.lS.History}}),C({type:"historyPanel:set:show",payload:{show:!0}}))};return(0,d.jsxs)(h,{className:"panel-header",children:[(0,d.jsx)(c.Ay,{activeIndex:f,onTabChange:s,children:p.map(a=>{let{key:P,label:b}=a;return(0,d.jsx)(c.nl,{label:b},P)})}),l&&(0,d.jsx)(o.A,{content:I18N.Resources.searchHeader.history,direction:"down",children:(0,d.jsx)("a",{className:"history-box-icon",onClick:v,children:(0,d.jsx)(w.A,{name:"art_board/widget/history",className:"history"})})})]})},h=n.Ay.div.withConfig({displayName:"CommonPanelHeader__StyledCommonPanelHeader",componentId:"sc-1g1nrp3-0"})(["width:100%;display:flex;height:40px;padding:7px 6px;justify-content:space-between;align-items:center;border-bottom:1px solid ",";.history-box-icon{position:relative;&::before{content:'';position:absolute;top:4px;left:-12px;display:block;width:1px;height:16px;background:",";}}.nav-item{margin-left:8px;&:first-child{margin-left:0;}}"],i=>i.theme.color_bg_border_01,i=>i.theme.color_bg_border_01)},68434:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>Ie});var n=e(38502),r=e(18381),c=e(79287),o=e.n(c),w=e(53732),u=e.n(w),d=e(20089),y=Object.defineProperty,h=Object.defineProperties,i=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,l=(le,me,Pe)=>me in le?y(le,me,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):le[me]=Pe,C=(le,me)=>{for(var Pe in me||(me={}))p.call(me,Pe)&&l(le,Pe,me[Pe]);if(f)for(var Pe of f(me))s.call(me,Pe)&&l(le,Pe,me[Pe]);return le},v=(le,me)=>h(le,i(me)),a=(le,me)=>{var Pe={};for(var pe in le)p.call(le,pe)&&me.indexOf(pe)<0&&(Pe[pe]=le[pe]);if(le!=null&&f)for(var pe of f(le))me.indexOf(pe)<0&&s.call(le,pe)&&(Pe[pe]=le[pe]);return Pe},b=(0,n.forwardRef)((le,me)=>{var Pe=le,{size:pe,spin:ke,style:We}=Pe,Ee=a(Pe,["size","spin","style"]);const Ae=C(C({width:pe||"var(--x-icon-size, 1em)",height:pe||"var(--x-icon-size, 1em)",animation:ke?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),We);return n.createElement("svg",v(C({ref:me,style:Ae},Ee),{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),n.createElement("path",{d:"M10.1416 5.27148C10.1797 5.49887 10.2002 5.73249 10.2002 5.9707L10.1943 6.1875C10.0816 8.40638 8.24687 10.1708 6 10.1709L5.7832 10.166C3.56438 10.0532 1.79986 8.21755 1.7998 5.9707C1.79996 3.88982 3.31361 2.16242 5.2998 1.8291L10.1416 5.27148ZM4.9541 2.63281C3.5326 3.07752 2.50014 4.40284 2.5 5.9707C2.50005 7.90359 4.06713 9.4706 6 9.4707C7.87262 9.4706 9.40252 7.99978 9.49609 6.15039L9.5 5.9707H8.45117C6.57244 5.9707 5.03869 4.49065 4.9541 2.63281ZM6.5459 8.7168C6.3694 8.75166 6.18673 8.77051 6 8.77051C5.81318 8.77048 5.63068 8.75172 5.4541 8.7168L5.58984 8.03125C5.72188 8.05735 5.85909 8.07126 6 8.07129C6.14112 8.07129 6.27892 8.0574 6.41113 8.03125L6.5459 8.7168ZM4.25391 7.13672C4.40742 7.36602 4.60468 7.56426 4.83398 7.71777L4.63965 8.00879L4.44434 8.29883C4.1391 8.09439 3.87622 7.83167 3.67188 7.52637L4.25391 7.13672ZM8.03711 7.33203L8.22266 7.45605L8.32812 7.52637C8.1237 7.83168 7.86099 8.09442 7.55566 8.29883L7.44434 8.13184L7.36133 8.00879L7.16699 7.71777C7.39624 7.56427 7.59359 7.36598 7.74707 7.13672L8.03711 7.33203ZM3.94043 5.56055C3.91433 5.6926 3.90041 5.82977 3.90039 5.9707C3.90039 6.11185 3.91427 6.2496 3.94043 6.38184L3.59668 6.44922L3.25391 6.5166C3.21906 6.34015 3.2002 6.15738 3.2002 5.9707C3.20021 5.82577 3.21118 5.68294 3.23242 5.54395L3.25391 5.4248L3.94043 5.56055ZM5.69629 2.96973C5.93185 4.27793 7.07515 5.27051 8.45117 5.27051H8.93359L5.69629 2.96973ZM4.58691 3.85547L4.83398 4.22461C4.60481 4.37809 4.40736 4.57549 4.25391 4.80469L3.81543 4.51172L3.67188 4.41504C3.87623 4.10983 4.13913 3.84695 4.44434 3.64258L4.58691 3.85547Z",fill:"#8B8C8F"}))}),g=Object.defineProperty,S=Object.defineProperties,t=Object.getOwnPropertyDescriptors,_=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,j=(le,me,Pe)=>me in le?g(le,me,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):le[me]=Pe,z=(le,me)=>{for(var Pe in me||(me={}))I.call(me,Pe)&&j(le,Pe,me[Pe]);if(_)for(var Pe of _(me))k.call(me,Pe)&&j(le,Pe,me[Pe]);return le},K=(le,me)=>S(le,t(me)),$=(le,me)=>{var Pe={};for(var pe in le)I.call(le,pe)&&me.indexOf(pe)<0&&(Pe[pe]=le[pe]);if(le!=null&&_)for(var pe of _(le))me.indexOf(pe)<0&&k.call(le,pe)&&(Pe[pe]=le[pe]);return Pe},E=(0,n.forwardRef)((le,me)=>{var Pe=le,{size:pe,spin:ke,style:We}=Pe,Ee=$(Pe,["size","spin","style"]);const Ae=z(z({width:pe||"var(--x-icon-size, 1em)",height:pe||"var(--x-icon-size, 1em)",animation:ke?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),We);return n.createElement("svg",K(z({ref:me,style:Ae},Ee),{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),n.createElement("rect",{x:"2.6999",y:"2.6999",width:"6.6",height:"6.6",rx:"0.3",stroke:"#8B8C8F",strokeWidth:"0.6"}),n.createElement("path",{d:"M4.7996 5.4002C4.46818 5.4002 4.19946 5.13166 4.19946 4.8002C4.19946 4.46873 4.46845 4.2002 4.79988 4.2002C5.1313 4.2002 5.39946 4.46873 5.39946 4.8002C5.39946 5.13166 5.13102 5.4002 4.7996 5.4002Z",fill:"#B7B9BD"}),n.createElement("path",{d:"M4.88384 6.27645C4.81244 6.17465 4.69704 6.17465 4.62584 6.27645L3.63424 7.69085C3.56284 7.79245 3.60544 7.87485 3.72904 7.87485H8.27104C8.39484 7.87485 8.43624 7.79265 8.36444 7.69125L6.79364 5.47625C6.72124 5.37425 6.60504 5.37465 6.53304 5.47625L5.42144 7.04365L4.88384 6.27645Z",fill:"#B7B9BD"}))}),U=Object.defineProperty,O=Object.defineProperties,H=Object.getOwnPropertyDescriptors,Q=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,V=(le,me,Pe)=>me in le?U(le,me,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):le[me]=Pe,M=(le,me)=>{for(var Pe in me||(me={}))N.call(me,Pe)&&V(le,Pe,me[Pe]);if(Q)for(var Pe of Q(me))L.call(me,Pe)&&V(le,Pe,me[Pe]);return le},D=(le,me)=>O(le,H(me)),W=(le,me)=>{var Pe={};for(var pe in le)N.call(le,pe)&&me.indexOf(pe)<0&&(Pe[pe]=le[pe]);if(le!=null&&Q)for(var pe of Q(le))me.indexOf(pe)<0&&L.call(le,pe)&&(Pe[pe]=le[pe]);return Pe},B=(0,n.forwardRef)((le,me)=>{var Pe=le,{size:pe,spin:ke,style:We}=Pe,Ee=W(Pe,["size","spin","style"]);const Ae=M(M({width:pe||"var(--x-icon-size, 1em)",height:pe||"var(--x-icon-size, 1em)",animation:ke?"spin 1s infinite linear":void 0,display:"inline-flex",flexShrink:0},{}),We);return n.createElement("svg",D(M({ref:me,style:Ae},Ee),{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.3999 2.9999C2.3999 2.66853 2.66853 2.3999 2.9999 2.3999H8.9999C9.33127 2.3999 9.5999 2.66853 9.5999 2.9999V8.9999C9.5999 9.33127 9.33127 9.5999 8.9999 9.5999H2.9999C2.66853 9.5999 2.3999 9.33127 2.3999 8.9999V2.9999ZM8.57562 2.9999H3.42417L5.99989 5.57563L8.57562 2.9999ZM2.9999 3.42417L2.9999 8.57562L5.57563 5.99989L2.9999 3.42417ZM3.42415 8.9999H8.57564L5.99989 6.42416L3.42415 8.9999ZM8.9999 8.57564V3.42415L6.42416 5.99989L8.9999 8.57564Z",fill:"#8B8C8F"}))}),Y=e(89240),X=e(17307),G=e(21066),Z=e(39e3),J=e(8228),te=e(74923),he=e(93413),de=e(13846),Se=e(88670),xe=e(87945),be=e(18356),ie=e(29611),oe=e(4179),ue=e(32879),ve=e(72214);const re=(0,n.memo)(le=>{const{className:me,widgetInsertableData:Pe,current:pe,onUpdateCurrent:ke,dragAndInsertWidgetHandler:We,dblClickAndInsertWidgetHandler:Ee,quickCreateInsertWidgetHandler:Ae,dblClickImageStickerHandler:Ce,dragAndInsertImageStickerHandler:_e}=le,[Ge,Xe]=(0,n.useState)(!1),{preview:Ue,meta:pt,data:Ye}=Pe,{type:Qe,name:lt,key:tt,metaType:qe}=pt,et=qe||Qe,st=(0,n.useRef)(null),[at,ct]=(0,n.useState)({top:0,left:0}),rt=(0,r.wA)(),At=(0,n.useMemo)(()=>({[d.x.WRichText]:[{name:I18N.w.rich_text,key:"T",icon:"left_panel/text/new",value:d.x.WRichText,isCanSelect:!0,isDefaultSelected:!0},{value:"dirver",isHide:ENV.IS_ON_PREMISES},{name:I18N.LeftSidePanel.widgetPanel.text_auto_fill,icon:"chatGPT/left_panel_header"+(ENV.IS_MO?"":"_new"),isColorPure:!0,isHide:ENV.IS_ON_PREMISES,value:"auto-text"}],[d.x.WRect]:[{name:I18N.w.rounded_rect,key:"R",icon:"left_panel/rectangle/new",value:d.x.WRect,isCanSelect:!0,isDefaultSelected:!0},{value:"dirver"},{name:I18N.w.polygon,icon:"left_panel/polygon/new",value:d.x.WPolygon,sceData:(0,be._T)()},{name:I18N.w.triangleb,icon:"left_panel/eq_triangle/new",value:d.x.WTriangle,sceData:(0,be._i)()},{name:I18N.w.star,icon:"left_panel/star/new",value:d.x.WStar,sceData:(0,be.sb)()}],[d.x.WImage]:[{name:I18N.w.image_view,icon:"left_panel/image/new",value:"image-portal",isCanSelect:!0},...ENV.IS_ON_PREMISES?[]:[{name:I18N.LeftSidePanel.image_sticker,icon:"left_panel/image_sticker/new",corner:(0,ve.jsx)(b,{size:12}),value:"image_sticker_portal",isCanSelect:!0}],{name:I18N.LeftSidePanel.widgetPanel.image_placeholder,icon:"left_panel/image_placeholder/new",iconClassName:"icon-image-placeholder",corner:(0,ve.jsx)(E,{size:12}),value:d.x.WImage,isCanSelect:!0,isDefaultSelected:!0},{name:I18N.LeftSidePanel.widgetPanel.placeholder,icon:"left_panel/placeholder/new",corner:(0,ve.jsx)(B,{size:12}),value:d.x.WPlaceholder,isCanSelect:!0,sceData:(0,be.RU)()},{value:"dirver",isHide:ENV.IS_ON_PREMISES},{name:I18N.LeftSidePanel.widgetPanel.image_auto_fill,icon:"chatGPT/left_panel_header"+(ENV.IS_MO?"":"_new"),isColorPure:!0,isHide:ENV.IS_ON_PREMISES,value:"auto-image"}]}),[]),ot=(0,n.useMemo)(()=>{const ut=At[Qe],Kt=ut.find(St=>St.isDefaultSelected);return Kt&&!pe&&ke(Kt==null?void 0:Kt.value),ut},[At,Qe,ke]),Tt=(0,n.useMemo)(()=>ot.find(ut=>ut.value===pe),[pe,ot]),ft=(0,n.useCallback)(ut=>{if(ut.preventDefault(),ut.stopPropagation(),!Ge){const{top:Kt,left:St}=st.current.getBoundingClientRect();ct({top:Kt+14,left:St})}Xe(!Ge)},[Ge]),Nt=(0,n.useCallback)(ut=>{const{target:Kt}=ut,St=Kt.closest(".insertable-context-menu"),fn=Kt.closest("widget-insertable");if(St||fn||(ut.preventDefault(),ut.stopPropagation(),rt({type:"set:quick-create-widget",payload:{widget:null}})),!Ge)return;const En=st.current.contains(Kt);St||En||Xe(!1)},[Ge,opener,rt]),Bt=ut=>{ut.preventDefault();const Kt=(0,J.$I)().find(St=>St.type===J.SR.AutoFill);Kt.source="\u53F3\u952E\u83DC\u5355\u667A\u80FD\u586B\u5145AI",rt({type:Se.X.AIOpenModal,payload:Kt})},zt=(ut,Kt)=>{if(ut.preventDefault(),ENV.IS_MO){Bt(ut);return}rt({type:"entry:autoFillPanel:toggle:show",payload:{canClose:!1,openFrom:xe.G.WidgetPanel,defaultTab:Kt}})},Xt=(0,n.useCallback)((ut,Kt)=>{ut.preventDefault(),ut.stopPropagation();const{value:St,isCanSelect:fn}=Kt;switch(fn&&ke(St),St){case"auto-text":case"auto-image":{zt(ut,St==="auto-image"?1:0);break}case d.x.WRichText:case d.x.WRect:case d.x.WImage:{Ae(ut,et,Ye);break}case d.x.WPolygon:case d.x.WTriangle:case d.x.WPlaceholder:case d.x.WStar:{if(!(Kt!=null&&Kt.sceData))return;const{sceData:{meta:En,data:gn}}=Kt;Ae(ut,En.metaType||En.type,gn);break}case"image-portal":{rt({type:"modal:update:state",payload:{imageModal:{isOpen:!0}}});break}case"image_sticker_portal":{rt({type:"modal:update:state",payload:{imageModal:{isOpen:!0,source:ie.S.Sticker}}});break}default:break}Xe(!1)},[rt,ke]),bt=(0,n.useCallback)(ut=>{if(_e){if((Tt==null?void 0:Tt.value)===d.x.WPlaceholder){We(ut,Tt==null?void 0:Tt.sceData);return}else if(["image-portal","image_sticker_portal"].includes(Tt==null?void 0:Tt.value)){_e(ut,Tt==null?void 0:Tt.value);return}}We(ut,Pe)},[Tt,Pe,We,_e]),jn=(0,n.useCallback)(ut=>{!ut.target.closest(".widget-insertable")||Po.current||(Tt||Ae(ut,et,Ye),Xt(ut,Tt))},[Tt,Xt,Ae]),xo=(0,n.useCallback)(ut=>{if(Ce){if((Tt==null?void 0:Tt.value)===d.x.WPlaceholder){Ee(ut,Tt==null?void 0:Tt.sceData);return}else if(["image-portal","image_sticker_portal"].includes(Tt==null?void 0:Tt.value)){Ce(ut,Tt==null?void 0:Tt.value);return}}Ee(ut,Pe)},[Tt,Pe,Ce,Ee]),{isMoveAfterClick:Po,handleMouseDown:Gn,handleClick:yo,handleDoubleClick:Ve}=(0,oe.A)({onMouseDown:bt,onClick:jn,onDoubleClick:xo});return ot!=null&&ot.length?(0,ve.jsxs)(ue.xj,{className:u()("widget-insertable","is-dropdown",me),"data-guide-id":Ue,onMouseDown:Gn,onClick:yo,onDoubleClick:Ve,children:[(0,ve.jsxs)("div",{className:u()("widget-icon-wrapper","w_"+Ue),children:[(0,ve.jsx)(X.C,{name:"art_board/widget/"+Ue}),(0,ve.jsx)(Y.A,{size:14,className:u()("arrow",Qe,{"is-expand":Ge}),ref:st,onClick:ft}),(Tt==null?void 0:Tt.corner)&&(0,ve.jsx)("div",{className:u()("corner-icon",Qe,Tt.iconClassName),children:Tt==null?void 0:Tt.corner})]}),(0,ve.jsx)("span",{className:"widget-name",children:lt}),tt&&(0,ve.jsx)(X.C,{className:"widget-key",name:"art_board/widget/"+Ue+"/"+tt,isColorPure:!0}),Ge&&(0,ve.jsxs)(ve.Fragment,{children:[(0,ve.jsx)(ue.d8,{className:"insertable-context-menu",position:at,children:ot.map(ut=>{const{name:Kt,key:St,icon:fn,value:En,isHide:gn,isColorPure:Yn,iconClassName:Pn=""}=ut;return gn?null:En==="dirver"?(0,ve.jsx)(ue.TQ,{}):(0,ve.jsx)(G.Dr,{text:Kt,onClick:_n=>Xt(_n,ut),hotKeyText:[St],icon:(0,ve.jsxs)("div",{className:"option-icon-box",children:[(0,ve.jsx)(X.C,{name:"common/checked",className:u()("checked",{show:pe===En})}),(0,ve.jsx)(X.C,{className:u()(Pn,"option-icon"),name:fn,isColorPure:Yn})]})})})}),(0,ve.jsx)(Z.A,{target:document,onClick:Nt})]})]}):null}),fe=le=>{if(ENV.IS_ON_PREMISES)return!1;try{const{meta:{type:pe}}=le;switch(pe){case d.x.CanvasAsOverlay:{var me,Pe;return MB.commonGuideHelper.checkGuideHasShown(he.c.GUIDE_NEW_OVERLAY_ONCE)?!1:(me=MB)!=null&&(me=me.user)!=null&&me.created_at?o()((Pe=MB)==null||(Pe=Pe.user)==null?void 0:Pe.created_at).isBefore(o()("2024-07-02")):!1}default:return!1}}catch(pe){return!1}},we=(0,n.memo)(le=>{const{className:me,widgetInsertableData:Pe,isHlAsRecentlyAdded:pe,dragAndInsertWidgetHandler:ke,dblClickAndInsertWidgetHandler:We,quickCreateInsertWidgetHandler:Ee}=le,{preview:Ae,meta:Ce,meta:{type:_e,metaType:Ge,key:Xe},data:Ue}=Pe,pt=Ge||_e,Ye=(0,n.useCallback)(et=>{Qe!=null&&Qe.current||Ee(et,pt,Ue)},[Ee,Pe]),{isMoveAfterClick:Qe,handleMouseDown:lt,handleClick:tt,handleDoubleClick:qe}=(0,oe.A)({onMouseDown:et=>ke(et,Pe),onClick:Ye,onDoubleClick:et=>We(et,Pe)});return(0,ve.jsxs)(ue.xj,{className:u()("widget-insertable",me),"data-guide-id":Ae,onMouseDown:lt,onClick:tt,onDoubleClick:qe,children:[(0,ve.jsx)("div",{className:u()("widget-icon-wrapper","w_"+Ae),children:(0,ve.jsx)(X.C,{name:"art_board/widget/"+Ae})}),(0,ve.jsx)("span",{className:"widget-name",children:Ce.name}),Ce.key&&(0,ve.jsx)(X.C,{className:"widget-key",name:"art_board/widget/"+Ae+"/"+Ce.key,isColorPure:!0}),pe&&(0,ve.jsx)("span",{className:"recently-added-highlight"})]})}),Ie=(0,n.memo)(le=>{const{className:me,widgetInsertableData:Pe,widgetInsertableData:{meta:{type:pe}}}=le,[ke,We]=(0,n.useState)(fe(Pe)),[Ee,Ae]=(0,n.useState)(!1),Ce=()=>Ae(!0),_e=()=>{Ae(!1),We(!1)},Ge=(0,de.aX)(Ce,_e),Xe=(0,de.af)(_e),Ue=(0,de.e1)(_e),[pt,Ye]=(0,n.useState)(""),Qe=(0,r.d4)(te.pF),lt=(0,r.wA)(),tt=(0,n.useCallback)(qe=>{lt({type:"widget-panel:update:state",payload:{imageWidgetDropdownCurrent:qe}})},[lt]);if([d.x.WRichText,d.x.WRect,d.x.WImage].includes(pe)){const{handleDblClickImageSticker:qe,handleDragAndInsertImageSticker:et}=(0,de.Gw)(Ce,_e);return(0,ve.jsx)(re,{className:u()(me,{active:Ee}),widgetInsertableData:Pe,current:pe===d.x.WImage?Qe:pt,onUpdateCurrent:pe===d.x.WImage?tt:Ye,dragAndInsertWidgetHandler:Ge,dblClickAndInsertWidgetHandler:Xe,quickCreateInsertWidgetHandler:Ue,dblClickImageStickerHandler:qe,dragAndInsertImageStickerHandler:et})}return(0,ve.jsx)(we,{className:u()(me,""+((Pe==null?void 0:Pe.preview)==="mind"?he.c.GUIDE_NOVICE_V9_2408_STEP_2:""),{active:Ee}),isHlAsRecentlyAdded:ke,widgetInsertableData:Pe,dragAndInsertWidgetHandler:Ge,dblClickAndInsertWidgetHandler:Xe,quickCreateInsertWidgetHandler:Ue})})},68455:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>p});var n=e(95549),r=e(38502),c=e(69623),o=e(17307),w=e(53732),u=e.n(w),d=e(59844),y=e(67787);const h=y.Ay.div.withConfig({displayName:"styles__StyledActionList",componentId:"sc-1ef2tfi-0"})(["position:absolute;z-index:1101;font-size:12px;.list-content{padding:8px;background:",";box-shadow:",";min-width:160px;cursor:pointer;border-radius:8px;border:1px solid ",";.action{display:flex;align-items:center;padding:0 16px;border-radius:4px;height:28px;color:",";white-space:nowrap;.new{margin-left:5px;}&.disabled{color:",";}.svg-icon{color:",";transition:flex 0.2s ease-in-out;.fore{fill:#c8cdd0;}}.item-icon{margin-right:6px;}a{width:100%;line-height:26px;height:100%;color:unset;}&:not(.disabled):hover{background:",";color:",";.svg-icon{color:",";.fore{fill:",";}}}.item-select{margin-left:10px;}}}"],s=>s.theme.color_bg_white,s=>s.theme.shadow_m,s=>s.theme.color_bg_border_01,s=>s.theme.color_text_L1,s=>s.theme.color_text_disabled01,s=>s.theme.color_text_L1,s=>s.theme.color_btn_secondary_hover,s=>s.theme.color_text_L1,s=>s.theme.color_proto,s=>s.theme.color_proto),i=y.Ay.div.withConfig({displayName:"styles__Divider",componentId:"sc-1ef2tfi-1"})(["margin:8px 0;border-top:1px solid ",";"],s=>s.theme.color_bg_border_01);var f=e(72214);class p extends r.PureComponent{constructor(l){super(l),(0,n.A)(this,"handStopPropagation",C=>{C.stopPropagation()}),(0,n.A)(this,"setMenuRef",C=>this.$menu=C),this.state={listMenuPosition:{}},this.el=document.createElement("div")}componentDidMount(){const{targetNode:l,direction:C,distance:v}=this.props;document.body.appendChild(this.el);const{sourceNodePosition:a}=(0,d.A)(l,this.$menu,{direction:C,distance:v,forceDirection:!1});this.setState({listMenuPosition:a})}componentWillUnmount(){document.body.removeChild(this.el)}render(){const{menuItems:l,className:C}=this.props,{listMenuPosition:v}=this.state,a=l.filter(b=>{let{isShow:g}=b;return g}),P={...v};return(0,c.createPortal)((0,f.jsx)(h,{ref:this.setMenuRef,style:P,children:(0,f.jsx)("div",{id:"list-menu",className:u()("list-content",C),onMouseDown:this.handStopPropagation,onDoubleClick:this.handStopPropagation,children:a.map(b=>{let{key:g,label:S,isActive:t,iconName:_,onClick:I,renderAction:k,isNew:j}=b;return typeof k=="function"?k():S==="divider"?(0,f.jsx)(r.Fragment,{children:(0,f.jsx)(i,{})},S):(0,f.jsxs)("div",{"data-item":g,className:"action",onClick:I,children:[_&&(0,f.jsx)(o.C,{className:"item-icon",name:_}),(0,f.jsx)("span",{children:S}),t&&(0,f.jsx)(o.C,{className:"item-select",name:"library/select/new"}),j&&(0,f.jsx)(o.C,{className:"new",name:"design/find_picture/new",isColorPure:!0,style:{width:27,height:12}})]},S)})})}),this.el)}}(0,n.A)(p,"defaultProps",{menuX:"",direction:"down",distance:0})},68789:(Fe,ee,e)=>{"use strict";e.d(ee,{V:()=>c,W:()=>r});var n=e(20892);let r=function(o){return o[o.Everyone=n.b2.Everyone]="Everyone",o[o.MdMemberFree=n.b2.MdMemberFree]="MdMemberFree",o[o.MdMemberDiscount=n.b2.MdMemberDiscount]="MdMemberDiscount",o[o.MdOriginPrice=n.b2.MdOriginPrice]="MdOriginPrice",o[o.MktMemberFree=n.b2.MktMemberFree]="MktMemberFree",o[o.MktMemberDiscount=n.b2.MktMemberDiscount]="MktMemberDiscount",o[o.MktOriginPrice=n.b2.MktOriginPrice]="MktOriginPrice",o}({}),c=function(o){return o.Builtin="\u5185\u7F6E",o.User="\u6211\u7684",o.Org="\u4F01\u4E1A",o.Find="\u53D1\u73B0",o.AIComponent="AI\u7EC4\u4EF6",o}({})},68863:(Fe,ee,e)=>{"use strict";e.d(ee,{F:()=>o,M:()=>c});var n=e(26034),r=e(20089);const c=w=>{const u=sdkStore.getHotItem(w.key).hotAttr,d=MB.getNextWidgetZ();return{...n.N[r.x.WBasket]("bMuban",w.key,u.defaultCanvasKey,u.name,d,u.w/2,u.h/2,u.w,u.h,u.scroll,u.layout,u.showScrollBar),left:0,top:0}},o=w=>{if(!(w!=null&&w.length))return null;const u=w[w.length-1];if(!u)return null;if([r.x.WIcon,r.x.WImage].includes(u.type))return u;if((u==null?void 0:u.length)===2||(u==null?void 0:u.length)===3){const[d,y]=u;if(!(d!=null&&d.length))return null;const h=d[d.length-1];if(!h)return null;const i=y.getHotItem(h.key);return i?{...i,...i.hotAttr}:null}return null}},69374:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>l});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),w=e(17307),u=e(6566),d=e(40486),y=e(93257),h=e(17573),i=e(99566),f=e(88981),p=e(72214);const s=["tap","dtap","pointerdown","pointerup","hold","shake-divider","mouseIn","mouseOut","rightClick","keydown","shake-divider","left","right","up","down","shake-divider","listener","shake","timer"];class l extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleSelect",v=>{if(v.currentTarget.classList.contains("disabled"))return;const{gesture:a}=v.currentTarget.dataset;this.props.onSelect(a)})}render(){var v;const{currentGesture:a}=this.props,b=MB.getSelectionItems().length===1&&(0,i.b7)((v=MB.getSelectionItems()[0])==null?void 0:v.hotAttr.type)&&(0,h.qK)()?[f.O.InputEvent,...s]:s;return(0,p.jsx)(u.A,{children:(0,p.jsx)("ul",{children:b.map((g,S)=>{const t=g===a,_=g==="shake-divider",I=o()({gesture:g!=="shake-divider",current:t,"shake-divider":_,"is-active":t});return(0,p.jsxs)("li",{role:g!=="shake-divider"?"option":"","data-gesture":g,className:I,"data-microtip-position":"left",onClick:this.handleSelect,children:[t&&(0,p.jsx)(w.C,{name:"common/checked",className:"checked display-gesture"}),!_&&(0,p.jsx)(w.C,{name:"interaction/trigger/"+g,className:"display-gesture"}),!_&&(0,p.jsxs)("p",{children:[(0,d.Oz)(g)," "]}),g==="listener"&&(0,p.jsx)(y.A,{content:I18N.Interaction.trigger.listener_tip,direction:"down",maxWidth:"180px",children:(0,p.jsx)(w.C,{className:"listener-tip",size:16,name:"interaction/trigger/listener/tip"})})]},S)})})})}}},69874:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>d});var n=e(95549),r=e(25582),c=e.n(r),o=e(38502),w=e(9248),u=e(72214);class d extends o.PureComponent{constructor(h){super(h),(0,n.A)(this,"handleChange",i=>{this.setState({value:i});const{onChange:f}=this.props;f&&f(i)}),(0,n.A)(this,"handleBlur",()=>{const{onConfirm:i}=this.props,{value:f}=this.state,p=f!==this.initialValue;i&&i(this.state.value,p)}),this.state={value:h.value,isPreviouslyEditing:h.isEditing},this.initialValue=h.value}static getDerivedStateFromProps(h,i){return h.isEditing!==i.isPreviouslyEditing?{value:h.value,isPreviouslyEditing:h.isEditing}:null}render(){const{isEditing:h,className:i,isShowToolTips:f,highlightKeyword:p}=this.props,{value:s}=this.state;return(0,u.jsx)(w.A,{value:s,className:i,editing:h,onBlur:this.handleBlur,onChange:this.handleChange,isShowToolTips:f,highlightKeyword:p})}}(0,n.A)(d,"propTypes",{value:c().string,className:c().string,isEditing:c().bool,onConfirm:c().func,onChange:c().func,isShowToolTips:c().bool}),(0,n.A)(d,"defaultProps",{isShowToolTips:!1})},71190:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>p});var n=e(95549),r=e(38502),c=e(17307),o=e(72140),w=e(3877),u=e(67787);const d=u.Ay.div.withConfig({displayName:"styles__StyledSubPanel",componentId:"sc-eofhna-0"})(["width:240px;border-top:1px solid ",";padding:8px 0;&.animation-sub-panel > header{height:64px;padding-bottom:32px;}& > header{height:32px;font-weight:600;padding-left:16px;padding-right:10px;display:flex;align-items:center;justify-content:space-between;transition:all 0.2s ease-in-out;cursor:pointer;.title{color:",";font-weight:600;}.customize-title{display:flex;flex:1;& > a{transform:scaleY(-1);}}.reset-btn{margin-left:auto;margin-right:10px;color:#8d9ea7;}.angle-icon-wrap{display:flex;width:24px;height:24px;align-items:center;justify-content:center;border-radius:4px;&:hover{background-color:",";}&:active{background-color:",";}.icon{width:24px;height:24px;text-align:center;color:",";transform:rotate(180deg);transition:transform 0.2s ease-in-out;}}}&.md-foldable > header .icon{transform:rotate(0);}"],s=>s.theme.color_bg_border_01,s=>s.theme.color_text_L1,s=>s.theme.color_btn_secondary_hover,s=>s.theme.color_btn_secondary_active,s=>s.theme.color_text_L1);var y=e(53732),h=e.n(y),i=e(79150),f=e(72214);class p extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleCollapse",()=>{const{onChange:l}=this.props;l&&l()}),(0,n.A)(this,"handleReset",l=>{l.stopPropagation(),this.props.onReset()})}render(){const{title:l,children:C,collapse:v,canReset:a,className:P,renderTips:b,headerChildren:g,rightHeader:S,style:t,onClickAdd:_}=this.props,I=typeof v=="boolean";return(0,f.jsxs)(d,{className:h()("sub-panel",P,{"md-foldable":v}),style:t,children:[(0,f.jsxs)("header",{onClick:I?this.handleCollapse:null,style:{cursor:"default"},children:[(0,f.jsx)("p",{className:"title",children:l}),g&&g,a&&(0,f.jsx)("span",{className:"reset-btn",onClick:this.handleReset,children:I18N.SettingPanel.inspector.reset}),I&&(0,f.jsx)("div",{className:"angle-icon-wrap",children:(0,f.jsx)(c.C,{name:"common/expand@20"})}),_&&(0,f.jsx)(i.A,{name:"common/add@24",onClick:_}),b&&(0,f.jsx)("div",{className:"title customize-title",children:(0,f.jsx)(w.A,{renderContent:b})}),S&&S]}),I?(0,f.jsx)(o.A,{collapse:v,children:C}):C]})}}},71577:(Fe,ee,e)=>{"use strict";e.d(ee,{CH:()=>v,G_:()=>p,JL:()=>s,LD:()=>l,QV:()=>C,c4:()=>f});var n=e(19249),r=e(18833),c=e(79287),o=e.n(c),w=e(10472),u=e(85449),d=e(81973),y=e(60651),h=e(78915),i=e(23767);const f=async(a,P)=>{const b=new URL("/api/upper/web_v1/version/"+a+"/all",window.location.origin);P&&b.searchParams.append("access_token",P);let g=[];try{g=await(0,n.DE)(b.href)}catch(S){S.status===403||/403/.test(S.message)?P?MB.global.popupHelper.alertAsync({title:I18N.dModule.project_share_p_changed,confirmText:I18N.dModule.confirm,desc:I18N.dModule.project_share_p_changed_desc}).then(()=>location.reload()):MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.cant_edit,confirmText:I18N.dModule.exit_editing,desc:I18N.dModule.cant_edit_desc,isHTML:!1}).then(()=>location.reload()):(S.status===401||/401/.test(S.message))&&MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.err_info_modal.INVALID_COOKIE.title,desc:I18N.dModule.err_info_modal.INVALID_COOKIE.desc,confirmText:I18N.dModule.confirm,isHTML:!1}).then(()=>(0,r.AG)())}return g},p=async()=>{const a=(0,u.dP)(),P=(0,y.jx)(a),{isEditingCombo:b}=(0,w.r)(a);if(b||P===h.qi.OnlyView||MB.versionNextCheckpoint&&o()(o()()).isBefore(MB.versionNextCheckpoint*1e3)||!MB.getRootProject())return;const g=MB.getRootProject(),{nextCheckpoint:S,clientData:t}=await s({projectCid:g.cid,title:o()().format("YYYY.MM.DD HH:mm"),desc:"",category:"auto"}),_=S!==MB.versionNextCheckpoint;if(MB.versionNextCheckpoint=S,t){const j=(0,u.dP)();(0,d.vr)(j)&&MB.action("versions:create",{newVersion:t})}if(_&&ENV.IS_ON_PREMISES&&MB.user){var I,k;(0,i.Bf)(i.Ff,{projectName:g.name,userName:MB.user.name,orgCid:((I=MB.currentOrg)==null?void 0:I.cid)||((k=MB.org)==null?void 0:k.cid)})}},s=a=>{let{projectCid:P,title:b,desc:g,category:S="auto"}=a;return(0,n.zi)("/flpak/w-pakv-new?upperCid="+P+"&category="+S,{title:b,description:g})},l=async a=>{let{projectCid:P,versionCid:b,newTitle:g,newDesc:S}=a;return(0,n.SN)("/api/upper/web_v1/version/"+P+"/"+b,{title:g,description:S})},C=async a=>{let{versionCid:P,title:b,description:g}=a;return(0,n.zi)("/flpak/w-pakv-reset?upperCid="+P+"&category=auto",{title:b,description:g})},v=async a=>{let{projectCid:P,versionCid:b}=a;try{return(0,n.OD)("/api/upper/web_v1/version/"+P+"/"+b)}catch(g){await(0,r.FY)(g)}}},71862:(Fe,ee,e)=>{"use strict";e.d(ee,{y:()=>n});const n=function(r,c,o){return o===void 0&&(o=!1),r.map(w=>{var u;const{key:d}=w,y=(u=sdkStore.getHotItem(d))==null?void 0:u.hotAttr;if(y){var h;const i=Math.floor(Date.now()/1e3),f=((h=y.deleteInfo)==null?void 0:h.deleteTime)||0,p=i-f,s=c*24*60*60;if(o?p>s:p<=s)return{...w}}return null}).filter(Boolean)}},71893:(Fe,ee,e)=>{var n=e(93973),r=e(24923),c=e(38195),o=e(32554),w=e(28207),u=e(71197),d=200;function y(h,i,f,p){var s=-1,l=r,C=!0,v=h.length,a=[],P=i.length;if(!v)return a;f&&(i=o(i,w(f))),p?(l=c,C=!1):i.length>=d&&(l=u,C=!1,i=new n(i));e:for(;++s<v;){var b=h[s],g=f==null?b:f(b);if(b=p||b!==0?b:0,C&&g===g){for(var S=P;S--;)if(i[S]===g)continue e;a.push(b)}else l(i,g,p)||a.push(b)}return a}Fe.exports=y},72140:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>u});var n=e(95549),r=e(25582),c=e.n(r),o=e(38502),w=e(72214);class u extends o.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"state",{transitionState:"end",overflow:"visible"}),(0,n.A)(this,"setElementRef",y=>this.$elem=y),(0,n.A)(this,"setHeight",y=>{this.$elem&&(this.$elem.style.height=y)}),(0,n.A)(this,"resetHeight",y=>{y.target===this.$elem&&(this.setHeight(this.props.collapse?0:""),this.setState({transitionState:"end",overflow:this.props.collapse?"hidden":"visible"}))}),(0,n.A)(this,"setTransitionStart",y=>{y.target===this.$elem&&this.setState({transitionState:"start",overflow:"hidden"})}),(0,n.A)(this,"getHeight",()=>{const{$elem:y}=this;return y?Math.min(this.props.maxTransitioningHeight,Array.prototype.reduce.call(y.children,(h,i)=>h+i.getBoundingClientRect().height,0)):0})}componentDidMount(){this.props.collapse&&this.setHeight(0),this.$elem.addEventListener("transitionend",this.resetHeight),this.$elem.addEventListener("transitionstart",this.setTransitionStart)}UNSAFE_componentWillReceiveProps(y){const{collapse:h}=this.props,{collapse:i}=y;h!==i&&i&&this.setHeight(this.getHeight()+"px")}componentDidUpdate(y){y.collapse!==this.props.collapse&&setTimeout(()=>{this.setHeight((this.props.collapse?0:this.getHeight())+"px")})}componentWillUnmount(){this.$elem.removeEventListener("transitionend",this.resetHeight),this.$elem.removeEventListener("transitionstart",this.setTransitionStart)}render(){const{className:y,duration:h,children:i,collapse:f}=this.props,p={overflow:this.state.overflow,transition:"height "+h+"ms ease-in-out"};return(0,w.jsx)("div",{ref:this.setElementRef,className:y,style:p,children:!f&&i})}}u.propTypes={duration:c().number,maxTransitioningHeight:c().number,className:c().string,collapse:c().bool.isRequired,children:c().oneOfType([c().element,c().array])},u.defaultProps={className:"",duration:200,maxTransitioningHeight:1/0}},72447:(Fe,ee,e)=>{"use strict";e.d(ee,{N:()=>C});var n=e(38502),r=e(18381),c=e(53732),o=e.n(c),w=e(5649),u=e(23089),d=e(17307),y=e(4648),h=e(15186),i=e(67787);const f=i.Ay.div.withConfig({displayName:"styles__StyledIconSettings",componentId:"sc-l3y2zr-0"})(["&.color-settings{height:24px;margin:12px 0;padding:0 6px;display:flex;align-items:center;flex-shrink:0;justify-content:space-between;.left-box{display:flex;justify-content:space-between;align-items:center;}.color-button{position:relative;width:20px;height:20px;border-radius:2px;border:1px solid ",";cursor:pointer;overflow:hidden;transition:border-color 0.2s ease-out;background-image:linear-gradient(45deg,#ccc 25%,transparent 0),linear-gradient(-45deg,#ccc 25%,transparent 0),linear-gradient(45deg,transparent 75%,#ccc 0),linear-gradient(-45deg,transparent 75%,#ccc 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0;background-clip:padding-box;&:hover{border-color:",";}.inner{width:20px;height:20px;border-radius:1px;}}.color-text{color:",";line-height:21px;margin-left:5px;margin-right:5px;}.color-size{width:56px;margin-right:0;&.has-menu{&:hover:not(.is-active):not(.is-disabled),&:active:not(.is-active):not(.is-disabled){.action.caret{background:none;}}&.is-active .action.caret{&:hover{background:none;outline:none;border-radius:0;}}&.is-menu-open{border:1px solid ",";.action.caret{transform:rotate(-180deg);}}input{padding-left:4px;width:100%;}}.action{visibility:visible;top:1px;.caret{width:22px;}button{.svg-icon{width:22px;height:22px;color:",";}}}}.select-box{position:relative;.select-more-svg{position:absolute;top:8px;left:8px;}.select-icon-set{width:112px;height:28px;padding-left:24px;&:lang(en){width:120px}button{flex:1;}}}}&.is-monochrome{.color-size{margin-right:6px;}}.icon-seeting-library{position:relative;margin-left:auto;margin-right:4px;display:flex;color:",";.svg-icon{width:16px;height:16px;}.unread-icon{top:-5px;right:-5px;}&:hover{color:",";}}"],a=>a.theme.color_btn_secondary_active,a=>a.theme.color_text_L3,a=>a.theme.color_text_L2,a=>a.theme.color_bg_border_02,a=>a.theme.color_text_L1,a=>a.theme.color_text_L2,a=>a.theme.color_text_L2),p=(0,i.DU)(["#IBOT_SELECT_MENU_ROOT{.SelectMenuPortal .WorkspaceSelectMenu{max-height:","px;}}"],a=>a.height),s=(0,i.DU)(["#IBOT_SELECT_MENU_ROOT{.SelectMenuPortal .WorkspaceSelectMenu.icon-setting-menu{top:calc(100% + 4px) !important;&.is-open{width:120px;}.SelectOption.is-active{.svg-icon2{svg{top:11px;}}}}}"]);var l=e(72214);function C(a){const{iconType:P,iconDefaultColor:b,iconDefaultSize:g,iconTabs:S,isMultiColorIcon:t}=a,_=(0,r.wA)(),[I,k]=(0,n.useState)(240),j=A=>{_({type:"entry:update:iconinfo",payload:{iconDefaultSize:Number(A)}})},z=A=>{_({type:"icon-panel:set:iconType",payload:{iconType:A}})},K=(S==null?void 0:S.length)>1,$=K?a.iconTabs.map(A=>({label:I18N.Popups.iconCat[A]||A,value:A})):[];return(0,n.useEffect)(()=>{_({type:"icon-panel:set:iconType",payload:{iconType:"All"}})},[]),(0,n.useEffect)(()=>{const A=()=>{const O=document.querySelector(".select-icon-set");if(!O)return 240;const{top:H}=O.getBoundingClientRect();return document.body.clientHeight-62-H},E=A();k(E);const U=()=>{const O=A();k(O)};return window.addEventListener("resize",U),()=>{window.removeEventListener("resize",U)}},[]),(0,l.jsxs)(f,{className:o()("color-settings",!t&&"is-monochrome"),children:[(0,l.jsxs)("div",{className:"left-box",children:[(0,l.jsx)(w.A,{className:"color-size",precision:0,min:12,max:99999,suffix:"px",value:g,optionList:v,menuClassName:"icon-setting-menu",onConfirm:j}),!t&&(0,l.jsx)(y.R_,{attr:"iconDefaultColor",color:b,onChange:(A,E)=>{_({type:"entry:update:iconinfo",payload:{[E]:(0,h.t0)(A)}})},canOpenLib:!1})]}),!t&&K&&(0,l.jsxs)("div",{className:"select-box",children:[(0,l.jsx)(d.C,{name:"design/templates/select-more",className:"select-more-svg"}),(0,l.jsx)(u.mq,{value:P,optionList:$,onChange:z,className:"select-icon-set"}),(0,l.jsx)(p,{height:I})]}),(0,l.jsx)(s,{})]})}const v=[12,14,16,24,32,48,100].map(a=>({label:a+"px",value:a}))},72524:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>C});var n=e(95549),r=e(38502),c=e(69623),o=e(59844),w=e(67787);const u=w.Ay.div.withConfig({displayName:"styles__StyledFloatPreviewPanel",componentId:"sc-ffws6-0"})(["&.fixed-size{position:absolute;z-index:1051;width:320px;border:1px solid ",";border-radius:10px;overflow-x:hidden;overflow-y:auto;background-color:",";display:flex;justify-content:center;box-shadow:0 2px 10px rgba(39,54,78,0.08),0 12px 40px rgba(39,54,78,0.15);img{object-fit:contain;width:","px;max-width:100%;}}&.is-auto-size{position:absolute;z-index:1051;.content{width:auto;height:auto;padding:16px;border:1px solid ",";border-radius:10px;overflow-x:hidden;overflow-y:auto;background-color:",";display:flex;justify-content:center;box-shadow:0 2px 10px rgba(39,54,78,0.08),0 12px 40px rgba(39,54,78,0.15);}img{width:","px;}}"],v=>v.theme.color_btn_secondary_active,v=>v.theme.color_bg_canvas,v=>v.width/2,v=>v.theme.color_btn_secondary_active,v=>v.theme.color_bg_canvas,v=>v.width),d=(v,a)=>{let P=v,b=a;return P>=b&&P>512&&(P=512,b=512/v*a),b>P&&b>512&&(b=512,P=512/a*v),[P,b]};var y=e(85449),h=e(72214);const i=320,f=462,p=56,s=8,l=20;class C extends r.PureComponent{constructor(a){super(a),(0,n.A)(this,"setRef",P=>this.$menu=P),(0,n.A)(this,"loadSuccess",P=>{const{isAutoSize:b}=this.props;if(b){const[g,S]=d(P.width,P.height);this.setState({imgWidth:g,imgHeight:S},()=>{const{sourceNodePosition:t}=this.getPosition();this.setState({position:t})})}else this.setState({imgWidth:P.width})}),(0,n.A)(this,"handleWheel",P=>{(P.ctrlKey||P.metaKey)&&P.preventDefault()}),(0,n.A)(this,"getTargetNode",()=>{const{targetNode:P,popupsPanelName:b,layout:g,isAutoSize:S,modalName:t}=this.props,_=g!=="old_right";let I=S&&_?26:8;const k=b?document.getElementById(b):t?document.querySelector("."+t):null;if(!k||!P)return{distance:I,direction:_?"right":"left"};const j=k.getBoundingClientRect(),z=j?j.left:0,K=j?j.width:0,{left:$,right:A}=P.getBoundingClientRect();return b?I=_?z+K+I-A:I+$-z:t&&(I=16),{distance:I,direction:b?_?"right":"left":"right"}}),(0,n.A)(this,"getPosition",()=>{const{targetNode:P}=this.props,{direction:b,distance:g}=this.getTargetNode(),{sourceNodePosition:S}=(0,o.A)(P,this.$menu,{direction:b,distance:g,forceDirection:!0});return{sourceNodePosition:S}}),(0,n.A)(this,"getResultStyle",()=>{const{isAutoSize:P,popupsPanelName:b,modalName:g,targetNode:S}=this.props,{position:t,imgWidth:_,imgHeight:I=0}=this.state,k=P?I+l*2:f,j=document.documentElement.clientHeight,z=document.documentElement.clientWidth,K={height:k,width:P?_+l*2:i};if(b){const $=t.top<=p?p:j-t.top-k<=s?j-k-s:t.top;return{...t,top:$,...K}}else if(g){if(!document.querySelector("."+g))return{...t,...K};const A=t.top<=8?8:j-t.top-k<=s?j-k-s:t.top,E=(S==null?void 0:S.closest(".template-item"))||(S==null?void 0:S.closest(".combo-item"));let U=t.left;if(K.width+t.left+8>z&&E){const O=E.getBoundingClientRect();U=Math.max(O.left-K.width-8,8)}return{...t,top:A,left:U,...K}}return{...t,...K}}),this.state={position:{},imgWidth:0,show:!1},this.el=document.createElement("div")}componentDidMount(){const{isAutoSize:a,getImgSrc:P}=this.props;if(document.body.appendChild(this.el),a)setTimeout(()=>{this.setState({show:!0})},500);else{const{sourceNodePosition:b}=this.getPosition();this.setState({position:b})}this.$menu&&this.$menu.addEventListener("wheel",this.handleWheel,{passive:!1}),(0,y.uc)(P(),this.loadSuccess)}componentWillUnmount(){document.body.removeChild(this.el)}render(){const{isAutoSize:a,getImgSrc:P}=this.props,{imgWidth:b,show:g}=this.state,S=this.getResultStyle();return(0,c.createPortal)((0,h.jsx)(u,{className:a?"is-auto-size":"fixed-size",ref:this.setRef,style:S,width:b,children:b?a?g&&(0,h.jsx)("div",{className:"content",children:(0,h.jsx)("img",{src:P(),alt:""})}):(0,h.jsx)("img",{src:P(),alt:""}):null}),this.el)}}},72606:(Fe,ee,e)=>{"use strict";e.d(ee,{O:()=>v});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),w=e(17307),u=e(27384),d=e(69874),y=e(39e3),h=e(68455),i=e(72214);class f extends r.PureComponent{constructor(b){super(b),(0,n.A)(this,"handleMove",S=>{S.stopPropagation();const{onMove:t,asset:_,onClose:I}=this.props;t(_),I()}),(0,n.A)(this,"handleRemove",S=>{S.stopPropagation();const{asset:t,onRemove:_,onClose:I}=this.props;_(t),I()}),(0,n.A)(this,"handleDownload",S=>{S.stopPropagation();const{asset:t,onDownload:_,onClose:I}=this.props;_(t),I()}),(0,n.A)(this,"handleTransferOrg",S=>{S.stopPropagation();const{asset:t,onAssetAdd:_,onClose:I}=this.props;_(t),I()});const g=b.canAccess;this.menuItems=[{isShow:b.canEditLibrary,label:I18N.LibraryContainer.move_to,onClick:this.handleMove},{isShow:b.canEditLibrary&&g,label:I18N.LibraryContainer.delete,onClick:this.handleRemove},{isShow:!0,label:I18N.LibraryContainer.download,onClick:this.handleDownload},{isShow:b.canAddToOrg&&b.onAssetAdd&&b.asset.image!=="/images/example.png",label:I18N.LibraryContainer.add_to_org,onClick:this.handleTransferOrg}]}render(){const{targetNode:b}=this.props;return(0,i.jsx)(h.A,{menuItems:this.menuItems,targetNode:b,direction:"down",distance:2})}}var p=e(71272),s=e(68863),l=e(19269),C=e(94875);class v extends r.PureComponent{constructor(b){var g;super(b),g=this,(0,n.A)(this,"setListElementRef",S=>this.$element=S),(0,n.A)(this,"setImageRef",S=>this.$image=S),(0,n.A)(this,"updateIsVisible",()=>{this.setState({isVisible:this.isInBoundingClientRect()})}),(0,n.A)(this,"handleMouseEnter",()=>{this.setState({isHover:!0})}),(0,n.A)(this,"handleMouseLeave",()=>{this.setState({isHover:!1})}),(0,n.A)(this,"handleEdit",()=>{const{isMoreSelect:S}=this.props;S||this.setState({isEditing:!0})}),(0,n.A)(this,"handleConfirm",S=>{const{asset:t,assetActions:{onAssetNameConfirm:_}}=this.props;_(t,S),this.setState({isEditing:!1})}),(0,n.A)(this,"handleAssetImport",S=>{S.stopPropagation();const{asset:t,assetActions:{onAssetImport:_}}=this.props;_&&_(t)}),(0,n.A)(this,"handleMouseDown",S=>{S.stopPropagation(),S.persist();const{asset:t,assetActions:{onMouseDown:_}}=this.props;let I=!0,k=!1;this.setState({isMoveAfterClick:!1});const j=K=>{I&&(k=Math.abs(K.clientX-S.clientX)>5||Math.abs(K.clientY-S.clientY)>5,k&&(this.setState({isDragging:!0}),_&&_(S,t),I=!1))},z=()=>{I=!1,this.setState({isMoveAfterClick:k,isDragging:!1}),k=!1,document.removeEventListener("mousemove",j),document.removeEventListener("mouseup",z)};document.addEventListener("mousemove",j),document.addEventListener("mouseup",z)}),(0,n.A)(this,"handleClick",S=>{S.stopPropagation();const{isMoveAfterClick:t}=this.state;if(t)return;const{asset:_,shouldAuth:I,dispatch:k}=this.props;k({type:"entry:image-panel:create:image:by:click",payload:{asset:_,isOrg:I}})}),(0,n.A)(this,"handleClickAction",S=>{S.stopPropagation(),this.handleToggleActionMenu()}),(0,n.A)(this,"handleToggleActionMenu",function(S){S===void 0&&(S=void 0);const{canListItemGroup:t}=g.props;if(!t)return;const{isListItemGroup:_}=g.state,I=S===void 0?!_:S;g.setState({isListItemGroup:I})}),(0,n.A)(this,"handleDocDown",S=>{var t;let{target:_}=S;const{isListItemGroup:I}=this.state;I&&((t=this.$element)!=null&&t.contains(_)||_.closest(".list-content")||this.handleToggleActionMenu(!1))}),(0,n.A)(this,"handleClickBox",async S=>{this.timer?(clearTimeout(this.timer),this.timer=null,this.handleAssetImport(S)):this.timer=setTimeout(async()=>{this.timer=null,await this.handleClick(S)},p.xG)}),(0,n.A)(this,"handleGetIsActive",()=>{var S;const{createTemplatesData:t,asset:_}=this.props,{isDragging:I}=this.state,k=(0,s.F)(t);if((k==null||(S=k.recent)==null?void 0:S.projectUpperType)==="user_asset"){var j,z;return(k==null||(j=k.recent)==null?void 0:j.itemCid)===((z=_.cid)!=null?z:_.asset_cid)}return I}),this.state={isVisible:!1,isHover:!1,isEditing:!1,isListItemGroup:!1,isMoveAfterClick:!1,isDragging:!1}}componentDidMount(){this.props.containerRect&&this.updateIsVisible()}componentDidUpdate(b,g){this.updateIsVisible()}isInBoundingClientRect(){const{containerRect:b}=this.props;if(!b||!this.$image)return!1;const g=this.$image.getBoundingClientRect();return g.bottom>b.top&&g.top<b.bottom}render(){const{asset:b,assetActions:g,canEditLibrary:S,canAddToOrg:t,canListItemGroup:_}=this.props,{isVisible:I,isHover:k,isEditing:j,isListItemGroup:z}=this.state,K=b.image,$=K&&K.slice(K.lastIndexOf(".")+1).toUpperCase(),A=!0,E=this.handleGetIsActive();return(0,i.jsxs)(C.G,{"data-cid":b.cid,className:o()({"is-hover":k},{active:E}),onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,children:[(0,i.jsxs)(l.e,{className:"library-asset-item",ref:this.setImageRef,onMouseDown:this.handleMouseDown,onClick:this.handleClickBox,children:[(0,i.jsx)(u.A,{isVisible:I,imageUrl:a(b)}),(0,i.jsx)("div",{className:o()("actions",{hover:z}),children:(0,i.jsxs)("div",{ref:this.setListElementRef,onClick:this.handleClickAction,children:[_&&(0,i.jsx)("div",{className:"btn-box",children:(0,i.jsx)(w.C,{name:"design/templates/temp-btn",className:"library-menu"})}),z&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f,{asset:b,canEditLibrary:S,canAddToOrg:t,targetNode:this.$element,canAccess:A,onRemove:g.onAssetRemove,onMove:g.onAssetMove,onDownload:g.onAssetDownload,onClose:()=>this.handleToggleActionMenu(!1),onAssetAdd:g.onAssetAdd}),(0,i.jsx)(y.A,{target:document,onMouseDown:(0,y.t)(this.handleDocDown,{capture:!0})})]})]})}),(0,i.jsx)("div",{className:"image-type",children:$})]}),_?(0,i.jsxs)("div",{className:o()("asset-name"),onClick:this.handleEdit,children:[(0,i.jsx)(d.A,{value:b.name,className:"editable-name",isEditing:S&&j,onConfirm:this.handleConfirm},b.name),S&&!j&&(0,i.jsx)("div",{className:"asset-action",children:(0,i.jsx)(w.C,{name:"general/pen"})})]}):(0,i.jsx)(C.f,{children:b.name})]})}}(0,n.A)(v,"defaultProps",{canListItemGroup:!0,canEditLibrary:!0});const a=P=>/svg$/.test(P.image)?P.image:P.thumb||P.raw||P.image},73352:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>a});var n=e(53732),r=e.n(n),c=e(38502),o=e(46953),w=e(58656),u=e(68677),d=e(30542),y=e(17307),h=e(77698),i=e(78401),f=e(9680),p=e(88255),s=e(72214);const l=(P,b,g,S,t)=>r()("var-item","var-"+P.hotAttr.varDataType,t,{active:b,trigger:g,"is-dropmenu":S}),C=(P,b)=>{const g=b.getBoundingClientRect(),S=[],t={},_={},I={},j=b.querySelector(".var-list").getBoundingClientRect();return b.querySelectorAll(".var-item").forEach(K=>{const $=K.dataset.cid,A=K.getBoundingClientRect();t[$]=_[$]=A;const E=(0,i.yB)(K),{left:U,top:O,width:H,height:Q}=A,N=U-j.left,L=O-j.top,V=N+H,M=L+Q,D={top:L,left:E.left-j.left,width:H,height:Q};if(I[$]={contentRect:D,rect:D,treeRect:D},P.includes($)){S.push({cid:$,type:"",min:{x:N,y:L},max:{x:V,y:M},isValid:!1,parentCid:""});return}S.push({cid:$,type:"prevSibling",min:{x:N,y:L},max:{x:V,y:L+Q/2},isValid:!0,parentCid:""}),S.push({cid:$,type:"nextSibling",min:{x:N,y:L+Q/2},max:{x:V,y:M},isValid:!0,parentCid:""})}),{matchDataList:S,containerRect:g,rectQueryMap:I}},a=P=>{let{list:b,selection:g,contextTrigger:S,isDropMenu:t,selectedStyle:_,className:I,style:k,showEmptyTtext:j=!0,onClick:z,onDoubleClick:K,onSorted:$,onContextMenu:A,onClickOutside:E}=P;const[U,O]=(0,c.useState)(null),H=(0,c.useRef)(null),Q=!b.length&&(0,f.pU)().length===0,N=!Q&&!b.length,L=g.length>0,V=Y=>{if(!A&&!$)return;const X=Y==null?void 0:Y.target;if(X.closest(".EllipsisTip"))return;const Z=X==null?void 0:X.closest(".var-item"),J=Z==null?void 0:Z.dataset.cid,te=J&&b.find(ie=>ie.key===J)||null;if(Y.button===2){A==null||A(te,Y);return}if(!te||!$)return;const{top:he,left:de}=Z.getBoundingClientRect(),Se=Y.clientX-de,xe=Y.clientY-he;g=g.includes(J)?g:[J];const be={$element:Z,offsetX:Se,offsetY:xe,selection:g,...C(g,H.current)};O(be)},M=()=>{E==null||E()},D=Y=>{let{cid:X,type:G,isValid:Z}=Y;if(!$||(O(null),!Z))return;const{selection:J=[]}=U,te=new Array(J.length),he=[];let de=-1;b.forEach(xe=>{const be=J.indexOf(xe.key);be===-1?(he.push(xe),xe.key===X&&(de=he.length-1)):te[be]=xe});const Se=G==="prevSibling"?de:G==="nextSibling"?de+1:"error";if(Se==="error")throw new Error("drag type error");he.splice(Se,0,...te),$(he)},W=Y=>{if(!z)return;const X=Y.target,G=X==null?void 0:X.closest(".EllipsisTip");let Z;if(G){var J;Z=(J=G.firstElementChild)==null?void 0:J.getAttribute("data-area")}const te=X==null?void 0:X.closest(".var-item");if(!te)return;const he=te.dataset.cid,de=he&&b.find(Se=>Se.key===he);de&&z(de,Y,Z)},F=(Y,X)=>{K==null||K(Y,X)},B=Y=>{Y.stopPropagation(),z==null||z(null,Y)};return(0,c.useEffect)(()=>{if(E&&L){const Y=X=>{!X.target.closest(".var-editor")&&!X.target.closest(".var-list .var-item")&&E()};return document.addEventListener("mousedown",Y),()=>{document.removeEventListener("mousedown",Y)}}},[E,L]),(0,s.jsxs)(w.BH,{className:I,ref:H,style:k,children:[(0,s.jsx)(w.LC,{}),(0,s.jsxs)("div",{className:r()("var-sort-list",{"is-empty":Q||N}),onMouseDown:V,children:[(0,s.jsxs)("div",{className:r()("var-list",{"is-empty":Q||N}),onClick:W,children:[Q&&j&&(0,s.jsxs)("div",{className:"empty-box",children:[(0,s.jsx)("img",{src:"/mb-proto2/images/workspace/design/no_variables.svg",width:"110",height:"71"}),(0,s.jsxs)("div",{className:"empty-tip",children:[(0,s.jsx)("p",{dangerouslySetInnerHTML:{__html:I18N.Variable.editor.empty_tip}}),(0,s.jsx)("a",{href:"/hc/articles/464",target:"_blank",rel:"noreferrer",children:I18N.Common.learn_more})]})]}),N&&(0,s.jsx)(p.E,{noIconText:I18N.Expression.no_result,className:"empty-box-nomatched"}),b.map(Y=>{const X=g.includes(Y.key),G=Y.key===(S==null?void 0:S.key);return(0,s.jsxs)(w.U9,{"data-cid":Y.key,"data-order":Y.hotAttr.zIndex,className:l(Y,X,G,t,_),children:[(0,s.jsxs)("div",{className:"left",children:[(0,s.jsx)(y.C,{className:"var-icon",size:16,name:(0,o.Zg)(Y.hotAttr.varDataType,Y.hotAttr.varData,Y.hotAttr.isTrashed)}),(0,s.jsx)("div",{className:"var-name",onDoubleClickCapture:Z=>F(Y,"varName"),children:(0,s.jsx)(u.A,{tipClassName:"var-tooltip",position:"bottom",delay:500,max:"228px",children:(0,s.jsx)("span",{"data-area":"varName",children:Y.hotAttr.name})})})]}),(0,s.jsx)("div",{className:"right",children:_==="binded"&&X?(0,s.jsx)("button",{className:"unbind-button",onClick:B,children:I18N.Variable.unbind}):(0,s.jsx)("div",{className:"var-data",onDoubleClickCapture:Z=>F(Y,"varData"),children:(0,s.jsx)(u.A,{tipClassName:"var-tooltip var-"+Y.hotAttr.varDataType+"-tooltip",position:"bottom",delay:500,max:"228px",children:(0,s.jsx)("span",{"data-area":"varData",children:(0,o.LK)(Y.hotAttr.varDataType,Y.hotAttr.varData)})})})})]},Y.key)})]}),U&&(0,s.jsx)(d.A,{...U,protalClassName:"var-item-dnd",draggingElement:U.$element,getContainerElement:()=>H.current,onDragStartCallback:M,onDrop:D})]}),H&&(0,s.jsx)(h.yP,{type:"vertical",containerRef:H,isAutoHideBar:!0})]})}},73442:(Fe,ee,e)=>{"use strict";e.d(ee,{R_:()=>u,Tx:()=>d,mb:()=>h,w9:()=>y});var n=e(70248),r=e(20089),c=e(76613),o=e(61790);const w=[r.x.WSticky,r.x.WTear],u=(i,f)=>{const p=sdkStore.getHotItem(i);if(!p)return null;const s=p.sub;return{...p,subHotItemList:s.reduce((l,C)=>{const v=sdkStore.getHotItem(C);if(v.hotAttr.bunch==="rbPage"){const a=u(C,f);return a?(v.hotAttr.asFolder&&(a.forDisplayOnly=!0),a.subHotItemList.length>0||f((0,o.KD)(C))?[...l,a]:l):l}return l},[]).sort((l,C)=>l.hotAttr.zIndex-C.hotAttr.zIndex)}},d=(i,f,p)=>{const s=sdkStore.getHotItem(i);if(!s)return null;if(s.hotAttr.type==="wBasket"&&!sdkStore.getHotItem(s.hotAttr.refRBPageKey))return console.error("sdkStore.getHotItem(hi.hotAttr.refRBPageKey) is undefined",s.hotAttr.refRBPageKey),null;const C=(s.hotAttr.type==="wBasket"?sdkStore.getHotItem(s.hotAttr.refRBPageKey).sub.map(v=>(0,n.iK)((0,n.OO)(i)?(0,n.QL)(i):[i],v)):s.hotAttr.type==="wMind"?[]:s.sub).reduce((v,a)=>{const P=d(a,f,p);return!P||w.includes(P.hotAttr.type)?v:((P.hotAttr.type==="rResCanvas"||p!=null&&p(P))&&(P.forDisplayOnly=!0),P.subHotItemList.length>0||f((0,o.KD)(a))?[...v,P]:v)},[]);return p!=null&&p(s)&&C.length===0?null:{...s,key:s.sup==="B@ref-muban"?c.VZ:s.key,hotAttr:{...s.hotAttr,name:(0,o.KD)(i),...s.sup==="B@ref-muban"&&{type:"wBasket",basket:"bMuban",bunch:""}},subHotItemList:C}},y=(i,f,p)=>{const s=sdkStore.getHotItem(i);if(!s)return null;if(s.hotAttr.type==="wBasket"&&!sdkStore.getHotItem(s.hotAttr.refRBPageKey))return console.error("sdkStore.getHotItem(hi.hotAttr.refRBPageKey) is undefined",s.hotAttr.refRBPageKey),null;const l=s.hotAttr.type==="wBasket"?sdkStore.getHotItem(s.hotAttr.refRBPageKey).sub.map(C=>(0,n.iK)((0,n.OO)(i)?(0,n.QL)(i):[i],C)):s.sub;return{...s,key:!p&&s.sup==="B@ref-muban"?c.VZ:s.key,hotAttr:{...s.hotAttr,name:(0,o.KD)(i),...s.sup==="B@ref-muban"&&{type:"wBasket",basket:"bMuban",bunch:""}},subHotItemList:l.reduce((C,v)=>{const a=y(v,f);return a?[r.x.Canvas,r.x.WWrap].includes(a.hotAttr.type)&&(a.forDisplayOnly=!0,a.subHotItemList.length>0)?[...C,a]:a.hotAttr.type==="wBasket"&&(a.subHotItemList.length>0||f((0,o.KD)(v)))?[...C,a]:C:C},[])}},h=(i,f,p)=>sdkStore.getSubHotItemList(i).filter(s=>s.hotAttr.type==="rResCanvas"&&(p?s.hotAttr.asOverlay:!s.hotAttr.asOverlay)&&f(s.hotAttr.name)).sort((s,l)=>s.hotAttr.order-l.hotAttr.order)},74302:(Fe,ee,e)=>{"use strict";e.d(ee,{Gd:()=>w,XY:()=>n,g6:()=>o,xk:()=>r,y5:()=>c});let n=function(u){return u.SHELL="download_settings_show_shell",u.STATE="download_settings_state_type",u.SCALE="download_settings_scale",u.STICKY="download_settings_show_sticky",u.FULLSCREEN="download_settings_full_screen",u.DOWNLOADTYPE="download_settings_downloadTypePage",u.CANVASNAME="download_settings_canvasName",u}({}),r=function(u){return u.PNG="png",u.PDF="pdf",u.HTMLZIP="htmlzip",u.APK="apk",u.SVG="svg",u.SOURCE_FILE="source_file",u.GIF="gif",u.DESIGN2="design2",u}({}),c=function(u){return u.PAGE="page",u.CANVAS="canvas",u}({}),o=function(u){return u.CURRENT_PAGE="currentPage",u.ALL_PAGE="allPage",u}({}),w=function(u){return u.ALL="allState",u.SOME="someState",u}({})},74923:(Fe,ee,e)=>{"use strict";e.d(ee,{$L:()=>ft,$d:()=>z,AC:()=>tt,AG:()=>f,At:()=>pe,Bu:()=>v,CL:()=>J,CQ:()=>E,CY:()=>c,Cd:()=>ie,E:()=>X,EV:()=>Qe,F8:()=>Pe,FM:()=>Xe,G6:()=>Ve,GI:()=>_e,Hl:()=>Q,I$:()=>Te,IG:()=>k,IR:()=>a,I_:()=>w,L:()=>Gn,Le:()=>Y,Lq:()=>Ae,M5:()=>zt,MV:()=>xo,NA:()=>fe,O2:()=>j,Ou:()=>A,Qz:()=>V,R4:()=>O,S2:()=>Fn,SG:()=>Kt,SH:()=>he,SQ:()=>oe,TD:()=>yo,TF:()=>Ee,TZ:()=>o,VG:()=>s,Vs:()=>we,WF:()=>ut,WG:()=>G,XN:()=>At,Xt:()=>Ue,Xw:()=>d,Z1:()=>L,Z_:()=>Ye,_V:()=>Bt,_X:()=>I,aP:()=>ke,bg:()=>Po,bw:()=>_,cb:()=>H,dR:()=>On,dZ:()=>l,eH:()=>fn,ey:()=>u,f3:()=>io,fK:()=>qe,g6:()=>r,gC:()=>g,gt:()=>me,hS:()=>le,i:()=>Nt,kU:()=>S,lW:()=>Ie,lb:()=>jn,lj:()=>st,m3:()=>$,mR:()=>go,nF:()=>h,nn:()=>P,oD:()=>C,ok:()=>Io,p8:()=>U,pF:()=>co,pI:()=>D,pM:()=>Ce,q3:()=>y,qY:()=>Tt,rx:()=>F,sF:()=>rt,tY:()=>et,tl:()=>lt,tt:()=>to,uJ:()=>We,uT:()=>M,up:()=>Nn,uq:()=>Ge,v3:()=>te,vB:()=>i,vl:()=>Xt,vs:()=>K,w2:()=>Cn,wS:()=>bt,wY:()=>gn,x1:()=>W,xH:()=>En,xQ:()=>de,xZ:()=>t,y9:()=>pt,yQ:()=>p,yt:()=>b,zS:()=>ue,zX:()=>ot,zw:()=>ct});var n=e(12211);const r=Je=>Je.ui.leftLayout.leftPanel.maxWidth,c=Je=>Je.ui.leftLayout.directory.screen,o=Je=>Je.ui.leftLayout.directory.screen.screenCollapseKeySet,w=Je=>Je.ui.leftLayout.directory.screen.contextMenuState,u=Je=>Je.ui.leftLayout.directory.screen.selectNotMoveUpScreenSet,d=Je=>Je.ui.leftLayout.directory.screen.selectNotMoveDownScreenSet,y=Je=>Je.ui.leftLayout.directory.screen.selectScreenMetaParentSet,h=Je=>Je.ui.leftLayout.directory.screen.selectNotDownGradeScreenSet,i=Je=>Je.ui.leftLayout.directory.layer.layerRange,f=Je=>Je.ui.leftLayout.muban.mubanList,p=Je=>Je.ui.leftLayout.iconSelectPopup.isShowHeader,s=Je=>Je.ui.leftLayout.iconSelectPopup.isShowSearch,l=Je=>Je.ui.leftLayout.icon.navIndex,C=Je=>Je.ui.leftLayout.icon.iconSelectPopupNavIndex,v=Je=>Je.ui.leftLayout.icon.resources,a=Je=>Je.ui.leftLayout.icon.unStarResources,P=Je=>Je.ui.leftLayout.icon.starResources,b=Je=>Je.ui.leftLayout.icon.currentIconResources,g=Je=>Je.ui.leftLayout.icon.isRequestHotIconList,S=Je=>Je.ui.leftLayout.icon.hotIconList,t=Je=>Je.ui.leftLayout.icon.hotColorIconList,_=Je=>Je.ui.leftLayout.icon.iconSelectPopupCurrentIconResources,I=Je=>Je.ui.leftLayout.icon.libraryIconDataForTabs,k=Je=>Je.ui.leftLayout.icon.iconType,j=Je=>Je.ui.leftLayout.icon.findPanelTabIndex,z=Je=>Je.ui.leftLayout.icon.iconSelectPopupTabIndex,K=Je=>Je.ui.leftLayout.icon.iconSelectPopupCurrentIconGroup,$=Je=>Je.ui.leftLayout.icon.findPanelCurrentIconGroup,A=Je=>Je.ui.leftLayout.iconSelectPopup.navigationIconResources,E=Je=>Je.ui.leftLayout.iconSelectPopup.iconGroupData,U=Je=>Je.ui.leftLayout.iconSelectPopup.source,O=Je=>Je.ui.leftLayout.image.navIndex,H=Je=>Je.ui.leftLayout.image.isRequestUserAssetGroup,Q=Je=>Je.ui.leftLayout.image.isRequestOrgAssetGroup,N=Je=>Je.ui.leftLayout.image.findFilterWords,L=Je=>Je.ui.leftLayout.image.findActiveWord,V=Je=>Je.ui.leftLayout.image.userAssets,M=Je=>Je.ui.leftLayout.image.isRequestUserAssets,D=Je=>Je.ui.leftLayout.image.orgAssets,W=Je=>Je.ui.leftLayout.image.isRequestOrgAssets,F=Je=>Je.ui.leftLayout.page.navIndex,B=Je=>Je.ui.leftLayout.page.pageMode,Y=Je=>Je.ui.leftLayout.page.findLoading,X=Je=>Je.ui.leftLayout.page.findPlatformType,G=Je=>Je.ui.leftLayout.page.findPlatformSubType,Z=Je=>Je.ui.leftLayout.page.findPlatformSubTypeMap,J=Je=>Je.ui.leftLayout.page.findPlatformSubTypeListMap,te=Je=>Je.ui.leftLayout.page.findPlatformSubTypeMtDataMap,he=Je=>Je.ui.leftLayout.page.findMtResourceMap,de=Je=>Je.ui.leftLayout.page.findCurrentMtResourceCid,Se=Je=>Je.ui.leftLayout.page.libraryNavIndex,xe=Je=>Je.ui.leftLayout.page.libraryFilterWords,be=Je=>Je.ui.leftLayout.page.libraryActiveWord,ie=Je=>Je.ui.leftLayout.page.libraryTopicListMap,oe=Je=>Je.ui.leftLayout.page.libraryCurrentSquareTopic,ue=Je=>Je.ui.leftLayout.page.libraryCurrentResources,ve=Je=>Je.ui.leftLayout.search.searchResultList,re=Je=>Je.ui.leftLayout.search.searchResultCategory,fe=Je=>Je.ui.leftLayout.search.iconSelectPopupSearchResultList,we=Je=>Je.ui.leftLayout.search.searchResultSum,Te=Je=>Je.ui.leftLayout.search.iconSelectPopupSearchResultSum,Ie=Je=>Je.ui.leftLayout.search.currentComboGroup,le=Je=>Je.ui.leftLayout.search.isLoading,me=Je=>Je.ui.leftLayout.search.isIconSelectPopupLoading,Pe=Je=>Je.ui.leftLayout.search.isSearching,pe=Je=>Je.ui.leftLayout.search.iconSelectPopupIsSearching,ke=Je=>Je.ui.leftLayout.search.searchCollapsePanelSet,We=Je=>Je.ui.leftLayout.search.keyword,Ee=Je=>Je.ui.leftLayout.search.iconKeyword,Ae=Je=>Je.ui.leftLayout.search.type,Ce=Je=>Je.ui.leftLayout.search.historyKeyWords,_e=Je=>Je.ui.leftLayout.search.masterKeyword,Ge=Je=>Je.ui.leftLayout.search.searchResultListMap,Xe=Je=>Je.ui.leftLayout.search.searchMtMetaCidMap,Ue=Je=>Je.ui.leftLayout.search.unsplashLoading,pt=Je=>Je.ui.leftLayout.popups.hotKeyWords,Ye=Je=>Je.ui.leftLayout.popups.assetUploadState,Qe=Je=>Je.ui.leftLayout.popups.assetUpload,lt=Je=>Je.ui.leftLayout.popups.editingCid,tt=Je=>Je.ui.leftLayout.popups.mtResourcesMtItemListMap,qe=Je=>Je.ui.leftLayout.popups.mtResourcesMap,et=Je=>Je.ui.leftLayout.popups.collapsePanelSet,st=Je=>Je.ui.leftLayout.popups.showGlobalHeader,at=Je=>Je.ui.leftLayout.popups.isVersionModalClosed,ct=Je=>Je.ui.leftLayout.popups.paramStarMtCid,rt=Je=>Je.ui.leftLayout.image.userAssetGroups,At=Je=>Je.ui.leftLayout.image.userAssetsMap,ot=Je=>Je.ui.leftLayout.image.orgAssetGroups,Tt=Je=>Je.ui.leftLayout.image.orgAssetsMap,ft=Je=>Je.ui.leftLayout.image.localUserAssetsOpenCids,Nt=Je=>Je.ui.leftLayout.image.localOrgAssetsOpenCids,Bt=Je=>Je.ui.leftLayout.image.assetNavIndex,zt=(0,n.Mz)([At,rt],(Je,vn)=>({userAssetsMap:Je,userAssetGroupList:vn})),Xt=(0,n.Mz)([ot,Tt],(Je,vn)=>({orgAssetsMap:vn,orgAssetGroupList:Je})),bt=Je=>Je.ui.leftLayout.widget.userComboGroups,jn=Je=>Je.ui.leftLayout.widget.orgComboGroups,xo=Je=>Je.ui.leftLayout.widget.localUserComboOpenCids,Po=Je=>Je.ui.leftLayout.widget.localOrgComboOpenCids,Gn=Je=>Je.ui.leftLayout.widget.upgradeUserComboGroupList,yo=Je=>Je.ui.leftLayout.widget.isRequestV7UserComboGroup,Ve=Je=>Je.ui.leftLayout.widget.upgradeOrgComboGroupList,ut=Je=>Je.ui.leftLayout.widget.isRequestV7OrgComboGroup,Kt=Je=>Je.ui.leftLayout.widget.navIndex,St=Je=>Je.ui.leftLayout.widget.sceToPLabelMap,fn=Je=>Je.ui.leftLayout.widget.scrollTop,En=Je=>Je.ui.leftLayout.widget.sceneMktsMap,gn=Je=>Je.ui.leftLayout.widget.showComboUploadGuide,Yn=Je=>Je.ui.leftLayout.widget.showComboStar,Pn=Je=>Je.ui.leftLayout.widget.selectedSceTag,_n=Je=>Je.ui.leftLayout.widget.selectedPLabel,Fn=Je=>Je.ui.leftLayout.widget.sceCollapsedCategories,Nn=Je=>Je.ui.leftLayout.widget.platformMarketTemplatesMap,io=Je=>Je.ui.leftLayout.widget.platformType,to=Je=>Je.ui.leftLayout.widget.level1,go=Je=>Je.ui.leftLayout.widget.level2,Io=Je=>Je.ui.leftLayout.widget.isScrollLevel1,co=Je=>Je.ui.leftLayout.widget.imageWidgetDropdownCurrent,On=Je=>Je.ui.leftLayout.widget.meNavIndex,Cn=Je=>Je.ui.leftLayout.widget.currentStarResourcesCid},75150:(Fe,ee,e)=>{"use strict";e.d(ee,{EQ:()=>s,Ub:()=>C,We:()=>l,X9:()=>p,gu:()=>v});var n=e(28068),r=e(9521),c=e(89054),o=e(22835),w=e(69815);if(e.j!=477)var u=e(85449);var d=e(70933),y=e(81973),h=e(10472),i=e(4235);if(e.j!=477)var f=e(70422);const p=a=>{if(!a||a.length===0)return;const P=[];a.forEach(b=>{const g=sdkStore.getHotItem(b);if(!g)return;const{hotAttr:S}=g;S.cid=g.key;try{if(S.richTextV1.sizeType!==2)(0,r.PQ)(S);else{const{y:t,h:_}=S,I=t-_/2,k=(0,c.x1)(S);S.y=I+k/2,S.h=k,S.height=k}P.push(g)}catch(t){console.error("setUpdateAutoSizeAttr error:",t)}}),P.length&&sdkStore.updateHotItemBatch(P)},s=a=>{const{hotAttr:{w:P,h:b}}=sdkStore.getHotItem(a),{top:g,left:S}=(0,o.u5)({width:P,height:b,scale:MB.getScale()});sdkStore.updateHotAttrMerge(a,{x:S+P/2,y:g+b/2})},l=a=>{if(!a)return;const b=a.getSelection().set("hasFocus",!0),{_setEditorState:g}=(0,w.DT)();g&&g(n.$t.set(a,{selection:b,forceSelection:!0,nativelyRenderedContent:null,inlineStyleOverride:null}))},C=()=>{const a=(0,u.dP)(),P=(0,d.Ur)(a),b=(0,i.nE)(a),g=(0,f.nh)(a),S=(0,f.zX)(a),t=(0,y.Yg)(a),_=(0,d.lh)(a),I=(0,d.Mj)(a),{isEditingCombo:k,isEditingMuban:j,isEditingBasket:z}=(0,h.r)(a);return{pageKey:P.cid,selectedItems:b,tableInfoData:{editingTableWidget:g,tableSelectionLeftTopInfo:S},selectedCarouseImage:t,editingCid:_,richTextEditorState:I,canNotCreateCanvas:k||j||z}},v=()=>!1},75258:(Fe,ee,e)=>{"use strict";e.d(ee,{Iw:()=>c,So:()=>r,Yw:()=>n,zk:()=>o});const n={Mobile:"mobile",PC:"pc",Pad:"pad",DisplayScreen:"display_screen",SmartTV:"smart_tv",SmartCar:"smart_car",Hmi:"hmi",Watch:"watch",Slide:"slide",Customize:"customize"},r={Mobile:"mobile",Web:"web",Other:"other",App:"app",Applet:"applet",Website:"website",WebBack:"web_back",Ipad:"ipad",SmartTV:"smart_tv",AppleWatch:"apple_watch",Slide:"slide",DisplayScreen:"display_screen",HMI:"HMI",Activity:"activity"},c={MP_App:"MP-app",MP_IOS:"MP-ios",MP_Android:"MP-android",MP_Applet:"MP-applet",MP_H5:"MP-h5",MP_Public:"MP-public",MP_ECommerce:"MP-e_commerce",MP_Poster:"MP-poster",PC_Website:"PC-web",PC_WebBack:"PC-web_back",PC_MacOS:"PC-mac",PC_Windows:"PC-win",PAD_IpadOs:"PAD-ipad",PAD_Android:"PAD-android",TV_AppleTVOS:"TV-apple",TV_AndroidTV:"TV-android",CAR_Car:"CAR-car",HMI_IndusHmi:"HMI-indus_hmi",HMI_Car:"HMI-car",WATCH_Apple:"WATCH-apple",WATCH_Android:"WATCH-android",SLIDE_Slide:"SLIDE-slide",DS_Screen:"DS-screen",Customize:"customize",DS_Customize:"DS-customize",HMI_Customize:"HMI-customize"},o={[n.Mobile]:[c.MP_App,c.MP_Applet,c.MP_H5,c.MP_Public,c.MP_IOS,c.MP_Android],[n.PC]:[c.PC_Website,c.PC_WebBack,c.PC_MacOS,c.PC_Windows],[n.Pad]:[c.PAD_IpadOs,c.PAD_Android],[n.DisplayScreen]:[c.DS_Screen],[n.SmartTV]:[c.TV_AppleTVOS,c.TV_AndroidTV],[n.Hmi]:[c.HMI_IndusHmi,c.HMI_Car],[n.Watch]:[c.WATCH_Apple,c.WATCH_Android],[n.Slide]:[c.SLIDE_Slide]}},75495:(Fe,ee,e)=>{"use strict";e.d(ee,{v:()=>o});var n=e(18381),r=e(95657),c=e(63917);const o=()=>{const w=(0,n.d4)(r.m7),u=(0,n.d4)(r.F6);return!w||!u?{rect:null,is:!1}:{is:!0,rect:(0,c.X)(w,u)}}},75627:(Fe,ee,e)=>{"use strict";e.d(ee,{Zz:()=>r,nW:()=>c,nb:()=>n});const n="FIND_REPLACE_POSITION_TOP",r="FIND_REPLACE_POSITION_LEFT";let c=function(o){return o[o.normal=0]="normal",o[o.searching=1]="searching",o[o.notFound=2]="notFound",o[o.hasResults=3]="hasResults",o}({})},75661:(Fe,ee,e)=>{"use strict";e.d(ee,{Z:()=>n});let n=function(r){return r.iconWidgetSettingPanel="icon-widget-setting-panel",r.navigationMenuSettingPanel="navigation-menu-setting-panel",r.buttonIconWidgetSettingPanel="button-icon-widget-setting-panel",r}({})},75862:(Fe,ee,e)=>{"use strict";e.d(ee,{OB:()=>o,bc:()=>c,d1:()=>n,x:()=>r});const n=w=>w.plugin.exportmanager,r=w=>w.plugin.exportmanager.isWidgetBeingExported,c=w=>w.plugin.exportmanager.isExportMenuShow,o=w=>w.plugin.exportmanager.currentExportTag},76199:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>P,X:()=>v});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),w=e(18381),u=e(12211),d=e(17307),y=e(5649),h=e(77099),i=e(30523),f=e(21259),p=e(70933),s=e(6843),l=e(72214);class C extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleSetRef",g=>this.$fontSizeRef=g),(0,n.A)(this,"onToggle",g=>{const{dispatch:S}=this.props;if(g.stopPropagation(),!this.$fontSizeRef)return;const t=this.$fontSizeRef.getBoundingClientRect(),_={left:t.left-f.T.width,top:Math.min(t.top+14,window.innerHeight-f.T.height)};S({type:"modal:toggle:less12FontSizeTipsModal",payload:{position:_}})}),(0,n.A)(this,"handleConfirm",(g,S)=>{const{attr:t="fontSize",handleChange:_}=this.props;_(g,t,S)})}render(){const{fontSize:g,refVar:S,disabled:t,less12UseTooltip:_=!1,canAddVar:I=!0,isShowLess12:k=!0,isShowAddVarIcon:j=!0,isShowLess12Mark:z,dropdownProps:K={},onRenderArrow:$}=this.props,A=z&&g<12,E=!("refVar"in this.props);return(0,l.jsxs)(s.Sv,{className:"font-size-container",ref:this.handleSetRef,children:[E?(0,l.jsx)(y.A,{disabled:t,value:g,refVar:S,min:1,max:1e3,className:o()("font-size-input",{"less-than":A}),menuClassName:"font-size-input-menu",optionList:v,onConfirm:U=>this.handleConfirm(U),onRenderArrow:$}):(0,l.jsx)(i.Yw,{type:"number",disabled:t,value:g,refVar:S,min:1,max:1e3,style:{width:88},inputClassName:o()("font-size-input",{"less-than":A}),menuClassName:"font-size-input-menu",optionList:v,canAddVar:I,isShowAddVarIcon:j,dropdownProps:K,onConfirm:this.handleConfirm,onRenderArrow:$}),A&&k&&(0,l.jsx)(l.Fragment,{children:_?(0,l.jsx)(h.I,{isWrap:!0,content:(0,l.jsxs)("div",{style:{width:237,fontSize:"12px",lineHeight:"20px"},children:["\u56E0\u6D4F\u89C8\u5668\u6700\u5C0F\u5B57\u53F7\u9650\u5236\uFF0C\u5C0F\u4E8E 12 \u7684\u5B57\u4F53\u65E0\u6CD5\u6B63\u5E38\u663E\u793A\uFF0C\u8BF7\u524D\u5F80\u6D4F\u89C8\u5668\u8BBE\u7F6E\u3002",(0,l.jsx)("a",{className:"tutorials",href:"/hc/articles/191",target:"_blank",rel:"noopener noreferrer",children:"\u67E5\u770B\u6559\u7A0B"})]}),children:(0,l.jsx)(d.C,{isColorPure:!0,size:16,name:"design/notify/questionMark",className:"questionMark"})}):(0,l.jsx)(d.C,{isColorPure:!0,size:16,name:"design/notify/questionMark",className:"questionMark",onClick:this.onToggle})})]})}}const v=[12,13,14,16,18,20,28,36,48,72].map(b=>({label:b,value:b})),a=(0,u.Mz)([p.tW],b=>({isShowLess12Mark:b})),P=(0,w.Ng)(b=>a(b))(C)},76210:(Fe,ee,e)=>{"use strict";e.d(ee,{U:()=>w});var n=e(847),r=e(19013),c=e(37505),o=e(9680);const w={[n.q.OpacityInfoPanel]:{[r.m9]:u=>{let{selectedItems:d}=u;const{hotAttr:{type:y,opacity:h=1}}=d[0];if(!c.hp.includes(y))return{opacity:Math.round(h*100),refVars:{opacity:(0,o.xj)(d,"opacity")}}}},[n.q.FixedInfoPanel]:{[r.m9]:u=>{let{selectedItems:d}=u;const y=d[0].hotAttr,i=new Set(d.map(s=>{let{hotAttr:l}=s;return Number(l.stickyOffset)||0})).size>1,f=i?void 0:y.stickyOffset,p=i?I18N.SettingPanel.multiple_value:"";return{fixPosTo:y.fixPosTo,isShowMultipleOffset:i,stickyOffset:f,placeholderOffset:p}}}}},76431:(Fe,ee,e)=>{"use strict";e.d(ee,{K:()=>d});var n=e(93413),r=e(78257),c=e(47695),o=e(20089),w=e(81717),u=e(34);const d=function(y,h){return h===void 0&&(h=!1),{[n.c.GUIDE_ALL_REPLACE_PAGE]:{selector:n.c.GUIDE_ALL_REPLACE_PAGE,guide:{position:{top:20,left:-308},title:y.CommonGuides.v8guide35,content:"\n <p>"+y.CommonGuides.v8guide36+"</p>\n <p>"+y.CommonGuides.v8guide37+"</p>\n "+((0,c.Ge)()?"<span />":"<p>"+y.CommonGuides.v8guide38+"</p>")+"\n "},arrow:{position:{top:56,right:-19},direction:"right",color:"#6874FF"},icon:{name:"art_board/guide/"+n.c.GUIDE_ALL_REPLACE_PAGE,width:28,height:28},howToShow:i=>{const f=p=>p.type===o.x.Canvas&&!p.asOverlay;(0,u.YD)({selectedCids:i,guideType:n.c.GUIDE_ALL_REPLACE_PAGE,onCondition:f})}},[n.c.GUIDE_BASKET_QUICK_COPY_CANVAS]:{selector:n.c.GUIDE_BASKET_QUICK_COPY_CANVAS,guide:{position:{top:40,left:-140},title:y.CommonGuides.v8guide4,content:y.CommonGuides.v8guide5},arrow:{position:{top:-25,right:136},direction:"top",color:"#3E7CFE"},icon:{name:"art_board/guide/"+n.c.GUIDE_BASKET_QUICK_COPY_CANVAS,width:12,height:14}},[n.c.GUIDE_PAGE_CREAT_LINK]:{selector:n.c.GUIDE_PAGE_CREAT_LINK,guide:{position:{top:230,left:-305},title:y.CommonGuides.v8guide10,content:y.CommonGuides.v8guide11},arrow:{position:{top:33,right:-18},direction:"right",color:"#6874FF"},icon:{name:"art_board/guide/"+n.c.GUIDE_PAGE_CREAT_LINK,width:12,height:12}},[n.c.GUIDE_PAGE_CREAT_LINK2]:{selector:n.c.GUIDE_PAGE_CREAT_LINK2,guide:{position:{top:190,left:-298},title:y.CommonGuides.v8guide10,content:y.CommonGuides.v8guide11},arrow:{position:{top:33,right:-18},direction:"right",color:"#6874FF"},icon:{name:"art_board/guide/"+n.c.GUIDE_PAGE_CREAT_LINK,width:12,height:12}},[n.c.GUIDE_TO_PREVIEW_IN_SHARE]:{selector:n.c.GUIDE_TO_PREVIEW_IN_SHARE,guide:{position:{top:114,left:135},title:y.CommonGuides.v8guide6,content:y.CommonGuides.v8guide7},arrow:{position:{top:-23,right:76},direction:"top",color:"#3E7CFE"},icon:{name:"art_board/guide/"+n.c.GUIDE_TO_PREVIEW_IN_SHARE,width:12,height:14}},[n.c.GUIDE_MORE_PAGE]:{selector:n.c.GUIDE_MORE_PAGE,guide:{position:{top:-7,left:62},title:y.CommonGuides.v8guide12,content:y.CommonGuides.v8guide13},arrow:{position:{top:10,left:-19},direction:"left",color:"#1B84FD"},icon:{name:"art_board/guide/"+n.c.GUIDE_MORE_PAGE,width:12,height:14},howToShow:i=>{let{currentPopupPanel:f,sup:p}=i;const s=sdkStore.getSubHotItemList(p).filter(C=>C.hotAttr.type==="rResCanvas"),l=sdkStore.getHotItem("B@main");if(s.length>=4&&l.sub.length===1&&f!==r.lS.Directory){const C=(0,c.Ge)();!MB.commonGuideHelper.checkGuideHasShown(n.c.GUIDE_MORE_PAGE)&&C&&MB.commonGuideHelper.tryToShowGuide(n.c.GUIDE_MORE_PAGE)}}},[n.c.GUIDE_PREVIEW_VIEW_BTN]:{selector:n.c.GUIDE_PREVIEW_VIEW_BTN,guide:{position:{top:53,left:-211},title:y.CommonGuides.v8guide8,content:y.CommonGuides.v8guide9},arrow:{position:{top:-24,right:56},direction:"top",color:"#3E7CFE"},icon:{name:"art_board/guide/"+n.c.GUIDE_PREVIEW_VIEW_BTN,width:12,height:12},callback:()=>{MB.webpackInterface.store.dispatch({type:"entry:preview:toggle:isHiddenToolBar",payload:{value:!0,isSetTimeout:!0}})}},[n.c.GUIDE_BASKET_MUBAN_USE]:{selector:n.c.GUIDE_BASKET_MUBAN_USE,guide:{position:{top:-71,left:-308},title:y.CommonGuides.v8guide39,content:"\n <p>"+y.CommonGuides.v8guide40+"</p>\n <p>"+y.CommonGuides.v8guide41+"</p>\n <br />\n <p>"+y.CommonGuides.v8guide42+"</p>\n "},arrow:{position:{top:93,right:-19},direction:"right",color:"#6874FF"},icon:{name:"art_board/guide/"+n.c.GUIDE_BASKET_MUBAN_USE,width:28,height:28},moreLink:y.link.link_article_master_intro,howToShow:i=>{const f=p=>p.type===o.x.WBasket&&p.basket==="bMuban";(0,u.YD)({selectedCids:i,guideType:n.c.GUIDE_BASKET_MUBAN_USE,onCondition:f})}},[n.c.GUIDE_SELECT_STICKY]:{selector:n.c.GUIDE_SELECT_STICKY,guide:{position:{top:0,left:18},title:y.CommonGuides.v8guide43,content:"\n <p>"+y.CommonGuides.v8guide44+"</p>\n <p>"+y.CommonGuides.v8guide45+"</p>\n <br/>\n "},arrow:{position:{top:14,right:295},direction:"left",color:"#1b83fc"},icon:{name:"art_board/guide/"+n.c.GUIDE_SELECT_STICKY,width:28,height:28},howToShow:i=>{const f=p=>p.type===o.x.WSticky;(0,u.YD)({selectedCids:i,guideType:n.c.GUIDE_SELECT_STICKY,onCondition:f})}},[n.c.GUIDE_PUBLISH_COMBO_TO_MKT]:{selector:n.c.GUIDE_PUBLISH_COMBO_TO_MKT,guide:{position:{top:0,right:-313},title:y.CommonGuides.publish_combo_title,content:y.CommonGuides.publish_combo_desc},icon:{name:"art_board/guide/"+n.c.GUIDE_PUBLISH_COMBO_TO_MKT,width:20,height:20},callback:()=>{MB.action("widget-panel:update:showComboUploadGuide",{showComboUploadGuide:!1})},howToShow:i=>{var f,p;let{sceneTag:s,hasComboFolder:l}=i;ENV.IS_MO||l&&(!((f=MB)!=null&&(f=f.user)!=null&&f.id)||(p=MB)!=null&&(p=p.commonGuideHelper)!=null&&p.checkGuideHasShown(n.c.GUIDE_PUBLISH_COMBO_TO_MKT)||(MB.action("widget-panel:update:showComboUploadGuide",{showComboUploadGuide:!0}),MB.commonGuideHelper.tryToShowGuide(n.c.GUIDE_PUBLISH_COMBO_TO_MKT),(0,w.YB)(s)))}},[n.c.GUIDE_COPY_AS_PNG]:{selector:n.c.GUIDE_COPY_AS_PNG,guide:{position:{top:0,left:-313},title:y.CommonGuides.copy_as_png_title,content:y.CommonGuides.copy_as_png_desc},icon:{name:"art_board/guide/"+n.c.GUIDE_COPY_AS_PNG,width:20,height:20},getPositionOffset:(i,f,p,s,l)=>i<l+290+20?{top:0-f+48+30,left:0-i+l+30+313}:{top:s/2-136/2,left:0}}}}},76527:(Fe,ee,e)=>{"use strict";e.d(ee,{k:()=>r});var n=e(67787);const r=n.Ay.div.withConfig({displayName:"StyledNoItem",componentId:"sc-v7wsa-0"})(["display:flex;flex-direction:column;align-items:center;img{margin-top:160px;width:88px;height:88px;}.tips{margin:24px 0 4px;color:",";text-align:center;}.tips-link{margin:auto 8px;text-align:center;a{color:",";text-decoration:underline;&:hover{color:",";}}}&.search-no-results{img{margin-top:0;}.action-container{display:flex;align-items:center;justify-content:center;height:26px;margin-top:25px;margin-bottom:8px;.tips{margin:0;}.action{cursor:pointer;margin-left:6px;padding-left:3px;padding-right:5px;display:flex;align-items:center;justify-content:center;border-radius:4px;border:1px solid ",";svg.svg-icon{width:24px;height:24px;}span{color:",";}}}}"],c=>c.theme.color_text_L3,c=>c.theme.color_text_link_normal,c=>c.theme.color_text_link_hover,c=>c.theme.color_btn_secondary_active,c=>c.theme.color_text_L1)},76863:(Fe,ee,e)=>{"use strict";e.d(ee,{KP:()=>w,me:()=>o,xK:()=>d});var n=e(53940),r=e(15515),c=e(34860);const o="rightnav_collapse",w="ro_rightnav_collapse",u={show:(0,r.Yt)((0,c.OB)()?o:w,!0,r.qW.Boolean),resizedWidth:n.xM,resizeMaxWidth:1/0};function d(y,h){y===void 0&&(y=u);const{type:i,payload:f}=h;switch(i){case"right-side-panel:collapse:panel":{var p;const s=(f==null?void 0:f.show)!==void 0?f==null?void 0:f.show:!y.show;return((p=f==null?void 0:f.isMemorize)!=null?p:!0)&&(0,r.a0)((0,c.OB)()?o:w,s,r.qW.Boolean),{...y,show:s}}case"right-side-panel:show:panel":return(0,r.a0)((0,c.OB)()?o:w,!0,r.qW.Boolean),{...y,show:!0};case"right-side-panel:update:resize:width":return(0,r.a0)("ST_panel_width_"+f.projectCid,f.width,r.qW.Number),{...y,resizedWidth:f.width};case"right-side-panel:update:resize:maxWidth":return{...y,resizeMaxWidth:f.width}}return y}},76967:(Fe,ee,e)=>{var n=e(71893),r=e(71602),c=e(48236),o=e(52255),w=c(function(u,d){return o(u)?n(u,r(d,1,o,!0)):[]});Fe.exports=w},77036:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>a,L:()=>v});var n=e(38502),r=e(53732),c=e.n(r),o=e(53940),w=e(29294),u=e(77698),d=e(48790),y=e(90592),h=e(3862),i=e(46442),f=e(18381),p=e(91474),s=e(72214);function l(P){const{marketTemplateItemList:b,category:g="",platform:S,currentResources:t,containerRect:_,isShowSign:I,isShowFolderIcon:k,masonryColumn:j,onTrack:z,onPaidTemplates:K,onPaidResources:$,onOpenFolder:A,canChecked:E,checkedSet:U,onCheckedResource:O,from:H,onOpenPreviewModal:Q,isFloatPreviewMkt:N,isRequsetMktStore:L}=P,V=b==null?void 0:b.length,M=(0,n.useMemo)(()=>["project_basic","screen_list"].includes(g),[g]),[D,W]=(0,n.useState)(2),F=(0,n.useRef)(null),B=(0,n.useRef)(0),Y=(0,f.wA)(),X=(0,n.useCallback)(()=>{B.current>=V||(W(Z=>Z+1),B.current+=1,F.current=requestAnimationFrame(X))},[V]);(0,n.useEffect)(()=>(F.current=requestAnimationFrame(X),()=>{cancelAnimationFrame(F.current),W(1),B.current=0}),[X]);let G=(0,n.useMemo)(()=>V&&D<V-1?V*200+"px":"fit-content",[V,D]);return g===h.t_&&(G="fit-content"),(0,s.jsx)(y.t_,{className:c()("market-template-masonry-column",g&&g,p.Il.includes(S)?"mobile":S,H),style:{minHeight:G},children:b==null?void 0:b.slice(0,D).map((Z,J)=>{const te=t||(Z==null?void 0:Z.marketTemplateSource),he=J===V-1,de=()=>{K&&K(),$&&$(Z.marketTemplateSource)};return"hotAttr"in Z&&"marketTemplateSource"in Z?(0,s.jsx)(w.A,{className:c()(he&&"last-mt-item"),marketTemplate:Z,currentResources:te,containerRect:_,isShowSign:I,isShowFolderIcon:k,onTrack:z,onPaidTemplates:de,onOpenFolder:A,canChecked:E,onCheckedResource:O,checkedSet:U,from:H,isFloatPreviewMkt:N,onOpenPreviewModal:Q,isRequsetMktStore:L},Z.key):(0,s.jsx)(i.a,{item:{key:Z.key,mtCid:Z.mtCid||(te==null?void 0:te.cid)}},Z.key)})})}function C(P){const{marketTemplateItemList:b,platform:g,category:S,currentResources:t,masonryColumnMoblie:_=2,masonryColumnWeb:I=1,...k}=P,j=g||(t==null?void 0:t.platform),z=S||(t==null?void 0:t.category),$=["project_basic","screen_list"].includes(z)&&p.Il.includes(j)?_>2?_:2:I>1?I:1,A=(0,n.useMemo)(()=>(0,d.He)(b,$),[b,$,_]);return A.length<1?null:(0,s.jsx)(y.JB,{className:c()("market-template-masonry-list-container",z&&z,p.Il.includes(j)?"mobile":j),children:A.map((E,U)=>(0,s.jsx)(l,{marketTemplateItemList:E,category:z,platform:j,currentResources:t,masonryColumn:$,...k},"masonry-column-"+(U+1)))})}function v(P){const b=(0,n.useRef)(null);return(0,s.jsx)(y.i4,{ref:b,className:"scrollable-marketTemplate-masonry",style:{width:o.qv},children:g=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(C,{...P,containerRect:g}),(0,s.jsx)(u.yP,{type:"vertical",containerRef:b,isAutoHideBar:!0})]})})}const a=(0,n.memo)(C)},77099:(Fe,ee,e)=>{"use strict";e.d(ee,{I:()=>d});var n=e(38502),r=e(69623),c=e(17307),o=e(67787);const w=o.Ay.div.withConfig({displayName:"style__StyledTip",componentId:"sc-gehcds-0"})(["position:absolute;left:0;top:0;z-index:1;width:auto;height:auto;padding:",";background-color:#454647;border-radius:6px;color:#fff;a{color:#70BCF6;&:hover,&:focus{color:#95D1F8;}}.arrow{position:absolute;width:12px;height:6px;svg{width:100%;height:100%;}&.bottom{transform:rotate(180deg);}}"],p=>p.isWrap?"12px 16px":"6px");var u=e(72214);const d=n.memo(p=>{let{className:s,children:l,content:C,onMoundedCallback:v,onToggleHover:a,isWrap:P=!1}=p;const[b,g]=(0,n.useState)(!1),S=(0,n.useRef)(null),t=(0,n.useRef)(null),_=z=>{g(z),a&&a(z)},I=z=>{z.buttons===0&&(clearTimeout(S.current),_(!0))},k=()=>{S.current=setTimeout(()=>{_(!1)},200)};n.Children.count(l)!==1&&console.error("TooltipWithHover\u7EC4\u4EF6\u53EA\u80FD\u6709\u4E00\u4E2A\u5B50\u5143\u7D20");const j=n.Children.map(l,z=>n.isValidElement(z)?n.cloneElement(z,{onMouseEnter:I,onMouseLeave:k,ref:t}):z);return(0,u.jsxs)(u.Fragment,{children:[j,b&&(0,u.jsx)(f,{isWrap:P,className:s,onMoundedCallback:v,content:C,targetNode:t.current,handMouseEnter:I,handMouseLeave:k})]})}),y=12,h=6,i=10,f=p=>{let{onMoundedCallback:s,content:l,className:C,targetNode:v,handMouseEnter:a,handMouseLeave:P,isWrap:b}=p;const g=(0,n.useRef)(null),[S,t]=(0,n.useState)({});(0,n.useEffect)(()=>{g.current&&s&&s(g)},[s,g]),(0,n.useEffect)(()=>{t((()=>{if(!v||!g.current)return{};const{left:K,top:$,width:A,height:E}=v.getBoundingClientRect(),{offsetWidth:U,offsetHeight:O}=g.current,H=K+A/2,Q=$+E,N=()=>{let F=H-U/2;F<4&&(F=4),F+U>window.innerWidth-4&&(F=window.innerWidth-U-4);let B=Q+i;return B+O>window.innerHeight&&(B=$-O-i),{tooltipLeft:F,tooltipTop:B}},L=(F,B)=>{const Y=K-F+A/2-y/2;return B<$?{position:{left:Y+"px",top:"100%"},className:"bottom"}:{position:{left:Y+"px",top:-h+"px"},className:"top"}},{tooltipLeft:V,tooltipTop:M}=N(),{position:D,className:W}=L(V,M);return{tooltipPosition:{left:V+"px",top:M+"px"},arrowPosition:D,arrowClassName:W}})())},[v,g]);const _=z=>{z.stopPropagation()};if(v===null)return null;const{tooltipPosition:I,arrowPosition:k,arrowClassName:j}=S;return(0,r.createPortal)((0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(w,{isWrap:b,className:C,ref:g,style:I,onMouseEnter:a,onMouseLeave:P,onMouseDown:_,children:[l,(0,u.jsx)(c.C,{className:"arrow "+j,style:k,name:"design/view/prompt/arrow",isColorPure:!0})]})}),document.body)}},77337:(Fe,ee,e)=>{"use strict";e.d(ee,{QV:()=>Y,WE:()=>X,cU:()=>E,gD:()=>B,hk:()=>V,ku:()=>H,ll:()=>M,oB:()=>W});var n=e(49899),r=e.n(n),c=e(28894);if(e.j!=477)var o=e(76805);var w=e(80730),u=e(41818),d=e(52049),y=e(62448),h=e(62587),i=e(54801),f=e(18488),p=e(15186),s=e(20089),l=e(44854),C=e(74302),v=e(42715),a=e(36397),P=e(78998),b=e(75006),g=e(40610);const S=(G,Z,J)=>{if(G&&(Z!=="unset"||J)){const te=J?"url(#"+J+")":Z,he=G.children;if(he&&he.length>0)for(const de of he){const Se=de.getAttribute("fill"),xe=de.getAttribute("stroke");xe&&xe!=="none"?(de.setAttribute("stroke",te),(!Se||Se==="none")&&de.setAttribute("fill","none")):Se&&Se!=="none"?(de.setAttribute("fill",te),(!xe||xe==="none")&&de.setAttribute("stroke","none")):!Se&&!xe&&de.setAttribute("fill",te),S(de,te,void 0)}}},t=function(G,Z,J,te){te===void 0&&(te=!1);const he='<svg xmlns="http://www.w3.org/2000/svg">'+G+"</svg>",Se=new DOMParser().parseFromString(he,"text/html"),xe=Se.querySelector("svg");return Se.querySelector("parsererror")?G:(te||S(xe,Z,J),xe.innerHTML)},_=268435456,I=65535,k=65535,j=14400,z=async(G,Z)=>{window.alert=void 0;const J=G.output("blob");if(J===void 0)throw new N;return new File([J],Z+".pdf",{type:"application/pdf"})},K=G=>{const{iconData:{iconColor:Z,viewBox:J,path:te},name:he,shadow:de,w:Se,h:xe,border:be,fill:ie}=G.hotAttr,oe="drop-shadow("+de.offsetX+"px "+de.offsetY+"px "+de.blurRadius+"px "+(0,p.t0)(de.shadowColor)+")",ue=de.shadowIsVisible?oe:"none";let ve="";be.bdrIsVisible&&(ve+="border-color: "+(0,p.t0)(be.bdrColor)+";border-width: "+be.bdrWidth+";border-style: "+be.bdrStyle);const re=(0,h.$8)(ie,{w:Se,h:xe});let fe=null,we=Z==="unset"?"unset":null;const Te=re.type===i.LA.RadialGradient||re.type===i.LA.LinearGradient;Te?fe=""+G.key+re.type:re.type===i.LA.Solid&&(we=u.Q.toRGBAStr(re.color));const Ie=t(te,we,fe,Z==="unset"),le=J.split(" ").map(pe=>Number(pe)),me='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="'+J+'" width="'+Se+'" height="'+xe+'" style="'+ve+'" filter="'+ue+'">\n '+(Te?(0,f.vS)(re,fe,{minX:le[0],minY:le[1],width:le[2],height:le[3]}):"")+"\n <g>\n "+Ie+"\n </g>\n </svg>",Pe=new Blob([me],{type:"image/svg"});return new File([Pe],he+".svg",{type:"image/svg"})},$=G=>{var Z,J;if(!(G!=null&&(Z=G.hotAttr)!=null&&Z.richTextV1)||!(G!=null&&(J=G.hotAttr)!=null&&J.textV1))return new Set;const{richTextV1:{fontFamily:te,fontWeight:he,italic:de,bold:Se},textV1:{blocks:xe}}=G.hotAttr;return new Set(Object.values(xe).reduce((ie,oe)=>{const{inlineStyleRanges:ue,text:ve}=oe,re={FONTFAMILY:new Array(ve.length),FONTWEIGHT:new Array(ve.length),BOLD:new Array(ve.length),ITALIC:new Array(ve.length)};return ue.forEach(fe=>{const we=fe.offset,Te=we+fe.length;for(let Ie=we;Ie<Te;Ie+=1)fe.style.startsWith("fontfamily-")?re.FONTFAMILY[Ie]=fe.style.substring(11):fe.style.startsWith("fontweight-")?re.FONTWEIGHT[Ie]=fe.style.substring(11):fe.style==="BOLD"?re.BOLD[Ie]=!0:fe.style==="ITALIC"&&(re.ITALIC[Ie]=!0)}),[...ie,...Array.from(ve).flatMap((fe,we)=>{const Te=re.FONTFAMILY[we]||te,Ie=re.FONTWEIGHT[we]||(Se?700:l.dV[he]),le=re.BOLD[we]||Se,me=re.ITALIC[we]||de;return[...Te==="PingFangSC"?["PingFangSC|normal|400","PingFangSC|normal|600"]:[Te+"|normal|400"],Te+"|"+(me?"italic":"normal")+"|"+(le?700:Ie)]})]},[]))},A=G=>{const{icon:Z}=G.hotAttr;if(/^(fa|md|mb|ci|fa5|antOutline|antFill)-/.test(Z))switch(Z.split("-")[0]){case"ci":return new Set(["CustomIcon|normal|400"]);case"fa5":case"fa":return new Set(["FontAwesome|normal|400"]);case"md":return new Set(["Material Icons|normal|400"]);case"mb":return new Set(["mb-icons|normal|400"]);default:return new Set}return new Set},E=(G,Z)=>{const J=Z.getHotItem(G);if(!J)return new Set;const{sub:te,hotAttr:he}=J;return d.X4.has(he.type)?new Set(te.reduce((de,Se)=>[...de,...Array.from(E(Se,Z))],[])):g.VV.includes(he.type)?$(J):he.type==="wIconButton"?A(J):he.type==="wBasket"?E(he.refContentKey,Z):new Set},U=G=>{let{itemNode:Z,isWithDeviceFrame:J,scale:te,isExportSticky:he,isIncludeCanvasName:de,sdk:Se=sdkStore}=G;if(J&&Z.hotAttr.type==="rResCanvas"&&!Z.hotAttr.asOverlay){var xe;const re=Se.getHotItem(Se.locUpRBPageKey(Z.key)),fe=(0,v.MR)(re==null||(xe=re.hotAttr)==null?void 0:xe.device);if(fe)return{width:fe.width*te,height:fe.height*te}}if(Z.hotAttr.type==="rbPage"&&Z.sub.length===0)return{width:Z.hotAttr.deviceW*te,height:Z.hotAttr.deviceH*te};const ie=(0,a.Gq)(Se,Z.key,he,"local"),oe=ie[2]-ie[0],ue=de?(0,a.Yp)(Z,ie,Se):0,ve=ie[3]-ie[1]+ue;return{width:Math.round(oe*te),height:Math.round(ve*te)}};class O extends Error{constructor(Z){super(Z),this.name=Z}}class H extends O{constructor(){super("CanvasDimensionExceededWarning")}}class Q extends O{constructor(){super("InvalidDimensionsWarning")}}class N extends O{constructor(){super("PdfDimensionExceededError")}}class L extends O{constructor(){super("EmptyPageWarning")}}class V extends O{constructor(){super("EmptyPageError")}}class M extends O{constructor(){super("CanvaslessPageError")}}const D=(G,Z)=>G instanceof H?"continue":G instanceof Q?Z.exportLen<=1?Z.downloadType==="page"?"skip":"stop":"skip":G instanceof L?"skip":(G instanceof V||G instanceof M||G instanceof N,"stop"),W=(G,Z,J)=>{const te=D(G,J);return G instanceof H?Z({type:"export:update:state",payload:{canvasDimensionExceeded:!0}}):G instanceof Q?te==="stop"&&MB.notice({text:"\u65E0\u6CD5\u5BFC\u51FA\u5C3A\u5BF8\u4E3A 0 \u7684\u5143\u7D20\uFF0C\u8BF7\u8C03\u6574\u5C3A\u5BF8\u540E\u91CD\u8BD5",type:"warning"}):G instanceof L?MB.notice({text:"\u68C0\u6D4B\u5230\u7A7A\u753B\u5E03\uFF0C\u5DF2\u81EA\u52A8\u8DF3\u8FC7\u5E76\u5BFC\u51FA\u5176\u4F59\u5185\u5BB9",type:"warning"}):G instanceof V?MB.notice({text:"\u6240\u9009\u753B\u5E03\u4E3A\u7A7A",type:"warning"}):G instanceof M?MB.notice({text:"\u6240\u9009\u753B\u5E03\u4E0D\u5305\u542B\u9875\u9762",type:"warning"}):G instanceof N&&(Z({type:"export:update:state",payload:{loading:!1,progress:0}}),MB.notice({text:I18N.ExportManager.large_pdf_can_not_export,duration:0,showClose:!0})),te},F=(G,Z)=>{const J=.265*Math.min(1,19169/G,19169/Z);return[G*J,Z*J]},B=G=>{let{itemKey:Z,pseudoSdkStore:J,attrsOverride:te,affix:he=void 0,scale:de,hasWatermark:Se=!0,isWithDeviceFrame:xe=!1,isExportSticky:be=!1,isIncludeCanvasName:ie}=G;const oe=J||sdkStore,ue={...oe,getInteractionsOf:()=>[],getHotItem:pt=>{let Ye=oe.getHotItem(pt);if(Ye)return pt===Z&&te&&(Ye={...Ye,hotAttr:{...Ye.hotAttr,...te}}),(0,a.tG)({hotItem:Ye,isExportSticky:be})}},ve=new b.A(ue,Z,b.A.MODE.snapshot),re=ve.getRootSnapshot(),{hotAttr:{type:fe,name:we,order:Te,refContentKey:Ie,asOverlay:le},sup:me}=re,Pe=()=>{const pt="@"+de+"x";let Ye;return fe==="wBasket"?Ye=we+"-"+oe.getHotItem(Ie).hotAttr.name:fe==="wTear"||fe==="wSticky"?Ye="\u6279\u6CE8"+Te:Ye=we,""+(he==="prefix"?pt:"")+Ye+(he==="suffix"?pt:"")},pe=()=>U({itemNode:re,isWithDeviceFrame:xe,scale:de,isExportSticky:be,isIncludeCanvasName:ie,sdk:oe}),ke=pt=>{const{width:Ye,height:Qe}=pe();try{We(pt)}catch(lt){if(pt&&pt.includes("png")&&lt instanceof H){const tt=Ye>I?I:Ye,qe=Qe*tt>I?Math.min(k,Math.floor(_/tt)):Qe;return{width:tt,height:qe}}else if(pt==="pdf"&&lt instanceof N)return{width:Ye>j?j:Ye,height:Qe>j?j:Qe}}return{width:Ye,height:Qe}},We=pt=>{const{width:Ye,height:Qe}=pe();if(!Number.isFinite(Ye)||!Number.isFinite(Qe)||Ye<=0||Qe<=0)throw new Q;if(pt.includes("png")&&(Ye*Qe>_||Ye>I||Qe>k))throw new H;if(pt==="pdf"&&(Ye>j||Qe>j))throw new N},Ee=async pt=>{const Ye="PNGB"+Date.now().toString(36).slice(-4);performance.mark(Ye+":start");let{width:Qe,height:lt}=ke(pt);if(xe&&fe==="rResCanvas"&&!le){var tt;const at=oe.getHotItem(oe.locUpRBPageKey(re.key));(at==null||(tt=at.hotAttr)==null?void 0:tt.deviceOrientation)==="landscape"&&([Qe,lt]=[lt,Qe])}const qe=document.createElement("div");qe.innerHTML=(0,a.Pf)({item:re,scale:de,isWithDeviceFrame:xe,hasWatermark:Se,isExportSticky:be,isIncludeCanvasName:ie,sdk:ve}),performance.measure(Ye+":innerHTML",Ye+":start");const{fetchPngBlob:et}=await(0,y.Z)({element:qe,width:Qe,height:lt,presetFontsSet:E(Z,oe)});performance.mark(Ye+":domss-done");const st=await et();return performance.measure(Ye+":fetchPngBlob",Ye+":domss-done"),performance.measure(Ye,Ye+":start"),st},Ae=async pt=>{const Ye=await Ee(pt);return new Uint8Array(await(0,w.WL)(Ye))},Ce=async pt=>{const Ye=await Ee(pt);return new File([Ye],Pe()+".png",{type:Ye.type})},_e=async pt=>{const{JsPdf:Ye}=await c.QN.loadLLG(),{width:Qe,height:lt}=ke(pt),[tt,qe]=F(Qe,lt),et=new Ye({orientation:Qe>lt?"l":"p",unit:"mm",format:[tt,qe]});return et.addImage(await Ae(pt),"png",0,0,tt,qe,"","SLOW"),z(et,Pe())},Ge=async pt=>{var Ye;const{name:Qe,image:lt,type:tt}=pt.hotAttr;if(tt!==s.x.WImage)return null;const qe=lt.imageRef,et=((Ye=oe.getHotItem(qe))==null||(Ye=Ye.hotAttr)==null?void 0:Ye.extData)||"";if(!et)return null;const at=await(await fetch(et,{method:"GET",cache:"force-cache",mode:"cors",credentials:"same-origin"})).blob();return new File([at],Qe+".gif",{type:at.type})},Xe=async pt=>{switch(pt){case"png":case"png-unzip":return Ce(pt);case"pdf":return _e(pt);case"svg":return fe===s.x.WIcon&&K(re);case"gif":return fe===s.x.WImage&&Ge(re)}},Ue=()=>{ve.destory()};return{validateIE:We,getDimensionsIE:pe,getCutDimensionsIE:ke,name:fe==="rResCanvas"?oe.getHotItem(me).hotAttr.name+"-"+we:we,toPngU8ArrayIE:Ae,toPngFileIE:Ce,toIE:Xe,destory:Ue}},Y=G=>{let{pageKey:Z,downloadPageType:J,scale:te,hasWatermark:he,isWithDeviceFrame:de,isExportSticky:Se,isIncludeCanvasName:xe}=G;const be=sdkStore.getHotItem(Z),oe=(J===C.y5.PAGE?sdkStore.getSubHotItemList(Z).filter(Te=>Te.hotAttr.type==="rResCanvas"&&!Te.hotAttr.asOverlay).sort((Te,Ie)=>Te.hotAttr.order-Ie.hotAttr.order):[be]).map(Te=>B({itemKey:Te.key,scale:te,hasWatermark:he,isWithDeviceFrame:de,isExportSticky:Se,isIncludeCanvasName:xe}));let ue=oe;const ve=Te=>{let Ie=null;const le=[];for(const me of oe)try{me.validateIE(Te),le.push(me)}catch(Pe){if(Pe instanceof O){const pe=D(Pe,oe,"page");if(pe==="stop")throw Pe;if(pe==="skip")continue;Ie||(Ie=Pe),le.push(me);continue}throw Pe}if(ue=le,ue.length===0)throw new L;if(Ie)throw Ie},re=async function(Te,Ie){Ie===void 0&&(Ie=(0,P.K4)());const le=[];let me=1;if(location.hash.includes("EM_PARALLEL"))try{me=Math.min(Math.round(navigator.hardwareConcurrency*.6),navigator.deviceMemory>=8?8:4)||2}catch(We){}await(0,o.t_)(me,ue.map((We,Ee)=>async()=>{le[Ee]=await We.toPngFileIE(Te),Ie.advanceRR(1/ue.length)}));const Pe=[],pe=new Map,ke=ue.map((We,Ee)=>async()=>{var Ae;const Ce=le[Ee],_e=(Ae=pe.get(We.name))!=null?Ae:0,Ge=Ee+" "+(_e>0?Ce.name.replace(/\.[^/.]+$/,"")+" ("+(_e+1)+").png":Ce.name);pe.set(We.name,_e+1),Pe.push(new File([Ce],Ge,{type:Ce.type}))});for(const We of ke)await We();return Pe},fe=async function(Te,Ie){Ie===void 0&&(Ie=(0,P.K4)());const{JsZip:le}=await c.QN.loadLLG(),me=le();return(await re(Te,Ie)).forEach(pe=>me.file(""+pe.name,pe)),(0,P.vb)(me),new File([await me.generateAsync({type:"blob"})],be.hotAttr.name+".zip",{type:"application/zip"})},we=async function(Te,Ie){Ie===void 0&&(Ie=(0,P.K4)());const le=Ee=>{let{width:Ae,height:Ce}=Ee;return de&&be.hotAttr.deviceOrientation==="landscape"&&([Ae,Ce]=[Ce,Ae]),F(Ae,Ce)},[me,Pe]=le(ue[0].getCutDimensionsIE(Te)),{JsPdf:pe}=await c.QN.loadLLG(),ke=new pe({orientation:me>Pe?"l":"p",unit:"mm",format:[me,Pe]}),We=ue.map((Ee,Ae)=>async()=>{const[Ce,_e]=le(Ee.getDimensionsIE());Ae!==0&&ke.addPage([Ce,_e],Ce>_e?"l":"p"),ke.addImage(await Ee.toPngU8ArrayIE(Te),"png",0,0,Ce,_e,"","SLOW"),Ie.advanceRR(1/ue.length)});for(const Ee of We)await Ee();return z(ke,be.hotAttr.name)};return{validatePE:ve,name:be.hotAttr.name,toPngZipFilePE:fe,toPngFilesPE:re,toPdfFilePE:we}},X=async(G,Z,J,te)=>{const he=[];for(const Se of G){const xe=B(Se);try{xe.validateIE(Se.format)}catch(be){const ie=J(be,{exportLen:G.length,downloadType:"item"});if(ie==="stop"){te&&te(!1),xe.destory();return}else if(ie==="skip"){xe.destory();continue}}he.push(await xe.toIE(Se.format)),xe.destory()}const de=(0,P.aT)(he);if(de.length===1){const Se=de[0];(0,n.saveAs)(Se,Se.name)}else{const{JsZip:Se}=await c.QN.loadLLG(),xe=new Se;de.forEach(be=>{xe.file(be.name,be)}),(0,n.saveAs)(await xe.generateAsync({type:"blob"}),Z+".zip")}MB.notice({text:"\u5BFC\u51FA\u6210\u529F",type:"success"}),te&&te(!0)}},77494:(Fe,ee,e)=>{"use strict";e.d(ee,{H:()=>c});var n=e(67787),r=e(71190);const c=(0,n.Ay)(r.A).withConfig({displayName:"styles__StyledLayoutGridSettingsPanel",componentId:"sc-keiz04-0"})(['[type="screen-body"]{padding:0 16px;.screen-line{height:32px;display:flex;justify-content:space-between;align-items:center;margin-left:-6px;.dir-icon{width:24px;height:24px;margin:0 6px;display:flex;justify-content:center;align-items:center;.icon{width:24px;height:24px;color:',";}}.input{height:28px;flex:1;max-width:48.66px;&.middle-input{margin:0 4px;}input{padding-right:6px;}}&.grid-line{justify-content:flex-start;}}}"],o=>o.theme.color_text_L1)},77643:(Fe,ee,e)=>{"use strict";e.d(ee,{O:()=>H});var n=e(95549),r=e(38502),c=e(30523),o=e(20089),w=e(17307),u=e(58603),d=e(63768),y=e(49989),h=e(69815),i=e(89054),f=e(31781),p=e(67280),s=e(85449),l=e(60589),C=e(4235),v=e(72214);class a extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"getOptionList",()=>{const{directionType:N}=this.props;return N==="vertical-lr"?[{label:(0,v.jsx)(w.C,{name:"setting_panel/font/unorder_list_re"}),value:"unordered",tip_title:I18N.TextToolbar.syntax5},{label:(0,v.jsx)(w.C,{name:"setting_panel/font/order_list_re"}),value:"ordered",tip_title:I18N.TextToolbar.syntax6}]:[{label:(0,v.jsx)(w.C,{name:"setting_panel/font/unorder_list"}),value:"unordered",tip_title:I18N.TextToolbar.syntax5},{label:(0,v.jsx)(w.C,{name:"setting_panel/font/order_list"}),value:"ordered",tip_title:I18N.TextToolbar.syntax6}]}),(0,n.A)(this,"handleListValueChange",N=>{const{handleChange:L,listValue:V}=this.props,{_getEditorState:M}=(0,h.DT)();M||P(V,N),L(N,"listType"),(0,f.yt)(N==="unordered"?"\u65E0\u5E8F\u5217\u8868":"\u6709\u5E8F\u5217\u8868")})}render(){const{className:N,listValue:L,newOverOld:V}=this.props,M=this.getOptionList();let D=L;return L==="ordered-list-item"?D="ordered":L==="unordered-list-item"?D="unordered":D="none",(0,v.jsx)(y.A,{disabled:!V,className:N,options:M,value:D,handleChange:this.handleListValueChange,isLongTimeHover:!0})}}const P=(Q,N)=>{const L=(0,s.dP)();if((0,l.md)(L).isOpen)return;const M=(F,B,Y)=>{const X={};for(const[G,Z]of Object.entries(F))X[G]={...Z,type:B,depth:Y?Z.depth:0};return X},W=(0,C.nE)(L).map(F=>{let{key:B,hotAttr:Y}=F;if(!o.Q.USE_TEXT_LIST.includes(Y.type))return null;let X;if(Q==="ordered-list-item"||Q==="unordered-list-item")Q==="ordered-list-item"&&N==="unordered"?X=M(Y.textV1.blocks,"unordered-list-item",!0):Q==="unordered-list-item"&&N==="ordered"?X=M(Y.textV1.blocks,"ordered-list-item",!0):X=M(Y.textV1.blocks,"unstyled",!1);else{const Z=N==="unordered"?"unordered-list-item":"ordered-list-item";X=M(Y.textV1.blocks,Z,!1)}const G={...Y,textV1:{...Y.textV1,blocks:X}};if(G.richTextV1.sizeType===0){const{width:Z,height:J}=(0,i.Dp)(G),{x:te,y:he}=(0,p.p)({key:B,width:Z,height:J});G.w=Z,G.h=J,G.x=te,G.y=he}else if(G.richTextV1.sizeType===2){const Z=(0,i.x1)(G),{x:J,y:te}=(0,p.p)({key:B,width:Y.w,height:Z});G.h=Z,G.x=J,G.y=te}return{key:B,hotAttr:{textV1:G.textV1,w:G.w,h:G.h,x:G.x,y:G.y}}}).filter(F=>F);MB.action("entry:widget:change",{flatChgList:W})};var b=e(92001),g=e(79150),S=e(92114),t=e(50521);class _ extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"SIZE_TYPE_OPTION_LIST",[{label:(0,v.jsx)(w.C,{name:"setting_panel/font/horizontal"}),value:"horizontal-tb",tip_title:I18N.builtin.horizontal},{label:(0,v.jsx)(w.C,{name:"setting_panel/font/vertical"}),value:"vertical-lr",tip_title:I18N.builtin.vertical}])}render(){const{className:N,directionType:L,newOverOld:V,handleDirectionTypeChange:M}=this.props,{SIZE_TYPE_OPTION_LIST:D}=this;return(0,v.jsx)(y.A,{disabled:!V,className:N,options:D,value:L,handleChange:M,isLongTimeHover:!0})}}var I=e(6843);const k=99999,j=0,z=[{label:()=>"\u4E0A",name:"pT",value:0},{label:()=>"\u4E0B",name:"pB",value:0},{label:()=>"\u5DE6",name:"pL",value:0},{label:()=>"\u53F3",name:"pR",value:0}],$=(0,r.memo)(Q=>{let{refVars:N,paddingTuple:L,disabled:V,onChange:M,canAddVar:D}=Q;const W=(F,B,Y)=>{const X={...L,[B]:F};M(X,{...N,[B]:Y})};return(0,v.jsx)(I.mO,{children:z.map(F=>(0,v.jsxs)("div",{className:"padding-item",children:[(0,v.jsx)(c.Yw,{type:"number",max:k,min:j,disabled:V,inputClassName:"padding-number",refVar:N==null?void 0:N[F.name],value:(L==null?void 0:L[F.name])||j,canAddVar:D,onConfirm:(B,Y)=>{W(B,F.name,Y)}}),(0,v.jsx)("div",{className:"label",children:F.label()})]},F.name))})}),A=[".var-editor",".var-dropmenu"];class E extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"OPTIONS_MENU_OPENER",(0,v.jsx)(t.Q,{className:"menu-opener fontSettings",content:I18N.SettingPanel.text_settings,icon:(0,v.jsx)(w.C,{name:"common/more",className:"options-icon"}),direction:"down"})),(0,n.A)(this,"setComponentRef",N=>this.workspaceDropdown=N),(0,n.A)(this,"handleCloseOptionsMenu",()=>{this.workspaceDropdown.close()}),(0,n.A)(this,"handleClickoutSide",N=>!A.some(L=>{var V;return(V=N.target)==null?void 0:V.closest(L)}))}render(){const{isDisabled:N,...L}=this.props,{OPTIONS_MENU_OPENER:V}=this;return(0,v.jsx)(I.L4,{children:(0,v.jsx)(u.A,{menuX:"right",menuY:"bottom",ref:this.setComponentRef,isDisabled:N,className:"options-menu-opener font-menu-opener",opener:V,menuClassName:"font-options-menu",onClickOutside:this.handleClickoutSide,menu:(0,v.jsx)(U,{onClose:this.handleCloseOptionsMenu,...L})})})}}(0,n.A)(E,"defaultProps",{isShowLink:!0,isShowSizeType:!0});const U=(0,r.memo)(Q=>{let{directionType:N,newOverOld:L,listValue:V,isHavingLink:M,isWRichText:D,handleFontDirectionChange:W,handleChange:F,onClose:B,shouldReverseDesc:Y,sizeType:X,paraSpacing:G,paddingTuple:Z,name:J,disabled:te,isClipText:he,refVars:de,isShowLink:Se,isShowSizeType:xe,canAddVar:be,handleSizeTypeChange:ie}=Q;const oe=Te=>{W(Te),Te==="vertical-lr"?(0,f.yt)("\u7EB5\u5411\u6392\u5217"):(0,f.yt)("\u6A2A\u6392")},ue=o.Q.USE_SIZE_TYPE.includes(J),ve=o.Q.USE_TEXT_FONT_DIRECTION.includes(J),re=o.Q.USE_PARA_SPACING.includes(J),fe=!o.Q.HIDE_PADDING.includes(J),we=o.Q.USE_CLIP_TEXT.includes(J);return(0,v.jsxs)(I.jl,{children:[(0,v.jsxs)("header",{children:[(0,v.jsx)("span",{className:"title",children:I18N.SettingPanel.text_settings}),(0,v.jsx)(g.A,{name:"common/close_sm",onClick:B})]}),(0,v.jsxs)("div",{id:"text-settings-font-menu",className:"menu-container",children:[xe&&ue&&(0,v.jsx)("div",{className:"menu-wrapper",children:(0,v.jsxs)("div",{className:"font-style svg-size",children:[(0,v.jsx)("p",{children:I18N.SettingPanel.text_fix_type}),(0,v.jsx)(d.A,{newOverOld:!0,isDisabledSizeType:!1,shouldReverseDesc:Y,sizeType:X,handleSizeTypeChange:ie})]})}),ve&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("div",{className:"menu-wrapper",children:(0,v.jsxs)("div",{className:"font-style svg-size",children:[(0,v.jsx)("p",{children:I18N.TextToolbar.textDirection}),(0,v.jsx)(_,{className:"font-size-type",newOverOld:L,directionType:N,handleDirectionTypeChange:oe})]})}),(0,v.jsx)("div",{className:"menu-wrapper",children:(0,v.jsxs)("div",{className:"font-style font-list-style svg-size",children:[(0,v.jsx)("p",{children:I18N.ScreenPanel.list_style}),(0,v.jsx)(a,{className:"font-size-type font-list",newOverOld:L,listValue:V,directionType:N,handleChange:F})]})}),Se&&(0,v.jsx)("div",{className:"menu-wrapper",children:(0,v.jsxs)("div",{className:"font-style svg-size",children:[(0,v.jsx)("p",{children:I18N.SettingPanel.design.link}),(0,v.jsx)(b.p,{className:"font-size-type",isHavingLink:M})]})})]}),re&&(0,v.jsx)("div",{className:"menu-wrapper",children:(0,v.jsxs)("div",{className:"font-style",children:[(0,v.jsx)("p",{children:I18N.SettingPanel.para_spacing}),(0,v.jsx)(c.Yw,{inputClassName:"paragraph-input",type:"number",refVar:de==null?void 0:de.paraSpacing,disabled:!D,value:G,step:.1,precision:2,min:0,max:9999,withToolTip:!0,toolTipContent:I18N.SettingPanel.para_spacing,direction:"down",normalRight:!0,isLongTimeHoverForInput:!0,canAddVar:be,onConfirm:(Te,Ie)=>{(Te!==G||Ie!==(de==null?void 0:de.paraSpacing))&&F(Te,"paraSpacing",Ie)}})]})}),we&&(0,v.jsx)("div",{className:"menu-wrapper",children:(0,v.jsxs)("div",{className:"is-clip-text",children:[(0,v.jsx)("p",{children:I18N.SettingPanel.is_clip_text}),(0,v.jsx)(S.A,{size:"small",isIOS:!0,isChecked:he,onChange:Te=>F(Te,"isClipText")})]})}),fe&&(0,v.jsx)("div",{className:"menu-wrapper",children:(0,v.jsxs)("div",{className:"font-padding",children:[(0,v.jsx)("p",{children:"\u8FB9\u8DDD"}),(0,v.jsx)($,{paddingTuple:Z,disabled:te,onChange:(Te,Ie)=>F(Te,"paddingTuple",Ie),refVars:de==null?void 0:de.paddingTuple,canAddVar:be})]})})]})]})});var O=e(63126);class H extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleChange",(N,L,V)=>{const{onChange:M,dispatch:D}=this.props;M({value:N,attr:L,refVar:V,dispatch:D})}),(0,n.A)(this,"handleSizeTypeChange",N=>{const{onSizeTypeChange:L,dispatch:V}=this.props;L==null||L({sizeType:N,dispatch:V})}),(0,n.A)(this,"handleFontDirectionChange",N=>{const{onChange:L,dispatch:V}=this.props;L({value:N,attr:"fontDirection",dispatch:V})}),(0,n.A)(this,"getSpacingList",()=>{const{shouldReverseDesc:N}=this.props;return N?[{title:(0,v.jsx)(w.C,{className:"design-padding",name:"setting_panel/font/letter_spacing_re"}),toolTipContent:I18N.SettingPanel.letter_spacing},{title:(0,v.jsx)(w.C,{className:"design-text_line_height",name:"setting_panel/font/text_line_height_re"}),toolTipContent:I18N.SettingPanel.text_line_height},{title:(0,v.jsx)(w.C,{className:"design-para_spacing",name:"setting_panel/font/para_spacing_re"}),toolTipContent:I18N.SettingPanel.para_spacing}]:[{title:(0,v.jsx)(w.C,{className:"design-padding",name:"setting_panel/font/letter_spacing"}),toolTipContent:I18N.SettingPanel.letter_spacing},{title:(0,v.jsx)(w.C,{className:"design-text_line_height",name:"setting_panel/font/text_line_height"}),toolTipContent:I18N.SettingPanel.text_line_height},{title:(0,v.jsx)(w.C,{className:"design-para_spacing",name:"setting_panel/font/para_spacing"}),toolTipContent:I18N.SettingPanel.para_spacing}]}),(0,n.A)(this,"isHideLineHeight",()=>{const{hideLineHeight:N,name:L,baseItem:V}=this.props;return N||O.AG.includes(L)||(V==null?void 0:V.every(M=>{let{hotAttr:D}=M;return O.AG.includes(D.type)}))}),(0,n.A)(this,"isOldPadding",()=>{const{name:N}=this.props;return[o.x.WMTextArea,o.x.WTable].includes(N)})}render(){const{disabled:N,lineHeight:L,paddingTuple:V,padding:M,canPadding:D=!0,sizeType:W,isWRichText:F,shouldReverseDesc:B,letterSpacing:Y,fontSize:X,fontFamily:G,paraSpacing:Z,isClipText:J,fontDirection:te,curBlockKey:he,isHavingLink:de,listValue:Se,isDisalbeLineHeight:xe,name:be,baseItem:ie,isMissFont:oe,refVars:ue,isShowLink:ve,isShowSizeType:re,canAddVar:fe,showOptionsMenu:we,isShowAddVarIcon:Te,dropdownProps:Ie}=this.props,le=this.getSpacingList(),me=we&&(O.dE.includes(be)||(ie==null?void 0:ie.every(We=>O.dE.includes(We.hotAttr.type)))),Pe=this.isHideLineHeight(),pe=xe||L===1/0||N,ke=this.isOldPadding();return(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)("div",{className:"font-group spacing-line height-32",children:[(0,v.jsx)(c.Yw,{type:"number",className:"paragraph-input step-input-width-72",title:ke?(0,v.jsx)(w.C,{className:"design-padding",name:"setting_panel/font/margin"}):le[0].title,disabled:oe||!D||N,value:ke?M:Y,min:0,max:9999,step:ke?1:.1,precision:2,withToolTip:!0,toolTipContent:ke?I18N.SettingPanel.padding:le[0].toolTipContent,direction:"down",isLongTimeHoverForInput:!0,refVar:ue==null?void 0:ue[ke?"padding":"letterSpacing"],canAddVar:fe,isShowAddVarIcon:Te,dropdownProps:Ie,onConfirm:(We,Ee)=>this.handleChange(We,ke?"padding":"letterSpacing",Ee)}),!Pe&&(0,v.jsx)(c.Yw,{type:"number",className:"paragraph-input step-input-width-72",tooltipTitle:I18N.SettingPanel.text_line_height,title:le[1].title,disabled:oe||pe,value:L,isNotVerify:L===1/0,min:0,max:9999,withToolTip:!0,toolTipContent:le[1].toolTipContent,direction:"down",fontFamily:G,fontSize:X,isWRichText:F,isLineHeight:!0,isLongTimeHoverForInput:!0,refVar:ue==null?void 0:ue.lineHeight,canAddVar:fe,isShowAddVarIcon:Te,dropdownProps:Ie,onConfirm:(We,Ee)=>this.handleChange(We,"lineHeight",Ee)}),me&&(0,v.jsx)(E,{isDisabled:oe||!1,newOverOld:!0,listValue:Se,isHavingLink:de,curBlockKey:he,isWRichText:!0,name:be,disabled:oe||N,handleChange:this.handleChange,handleFontDirectionChange:this.handleFontDirectionChange,directionType:te,handleSizeTypeChange:this.handleSizeTypeChange,sizeType:W,paddingTuple:V,paraSpacing:Z,isClipText:J,shouldReverseDesc:B,refVars:ue,isShowLink:ve,isShowSizeType:re,canAddVar:fe})]})})}}(0,n.A)(H,"defaultProps",{canAddVar:!0,showOptionsMenu:!0,isShowAddVarIcon:!0})},77686:(Fe,ee,e)=>{"use strict";e.d(ee,{b:()=>r});const n=c=>["\u5171\u4EA7\u515A","\u515A\u5FBD","\u56FD\u65D7","\u56FD\u6B4C","\u515A\u7AE0","\u56FD\u5FBD","\u56FD\u6B4C","\u515A\u7EC4\u7EC7","\u5927\u9009","\u7F8E\u56FD","\u4E2D\u56FD","\u4EE5\u8272\u5217","\u4E4C\u514B\u5170","\u5DF4\u52D2\u65AF\u5766","\u65E5\u672C","\u8272\u60C5","\u4E09\u7EA7","\u6210\u4EBA","\u4E73","\u5904\u5973","\u4EBA\u4F53","\u5171\u548C","\u4E73","\u9634\u5507","\u4E73","\u6027\u7231","\u4E2D\u5171","\u7834\u5904","1989","\u5929\u5B89\u95E8","\u6CD5\u8F6E","\u53F0\u6E7E","\u53F0\u6D77","\u592B\u59BB","\u591C\u60C5","\u98CE\u6D41","\u9A9A","av","\u65E0\u7801","\u540C\u5E8A","\u6BD2","\u7EA6\u70AE","\u5F3A\u8FEB","\u6DEB","\u88F8","\u5927\u9EBB","\u7A74","\u8D4C\u535A","\u535A\u5F69","\u4E09\u4EBA\u884C","\u4E8B\u4EF6","\u5C38","\u6B7B","\u5973\u4F18","\u897F\u85CF","\u65B0\u7586","\u6B7C","\u8B66\u5BDF","sex","\u5C3F","\u5C4E","\u5993","\u6309\u6469","\u966A\u7761","\u7845\u80F6","\u6DEB","\u53EF\u5361\u56E0","\u8B66\u5FBD","\u8B66\u68CD","\u8B66\u7528","\u4E1C\u4EAC","\u4E1D\u889C","\u4E24\u4F1A","\u515A","\u4E3B\u5E2D","\u4E2D\u5357\u6D77","\u8FB9\u754C","\u771F\u76F8","\u5206\u88C2","\u50A8\u541B","\u9886\u5BFC\u4EBA","\u592A\u5B50","\u653F\u6CBB","\u519B\u59D4","\u5C04","\u4EBA\u517D","\u9E21","\u59B9","\u5730\u56FE","\u56FD\u754C","\u4EE5\u8272\u5217","\u653F\u5E9C","\u66B4","\u8840","\u5B89\u5168\u5957","\u6B27\u7F8E","\u9E26\u7247","\u6C11\u4E3B","\u81EA\u7531","\u6C13","\u5211","\u6FC0\u60C5","\u75F4","\u5974","gay","\u7537\u7537","\u5199\u771F","\u79CD\u65CF","\u7CBE\u6DB2","\u7D20\u4EBA","\u8F6E\u76D8","\u8089\u68D2","\u809B","\u8131","\u8499\u53E4","\u8D8A\u5357","\u83F2\u5F8B\u5BBE","\u5370\u5EA6","\u5B55"].some(w=>c.includes(w)),r=c=>["\u5171\u4EA7\u515A","\u515A\u5FBD","\u56FD\u65D7","\u56FD\u6B4C","\u515A\u7AE0","\u56FD\u5FBD","\u56FD\u6B4C","\u515A\u7EC4\u7EC7","\u5927\u9009","\u7F8E\u56FD","\u4E2D\u56FD","\u4EE5\u8272\u5217","\u4E4C\u514B\u5170","\u5DF4\u52D2\u65AF\u5766","\u65E5\u672C"].some(w=>c.includes(w))},77698:(Fe,ee,e)=>{"use strict";e.d(ee,{$T:()=>y,yP:()=>h});var n=e(38502),r=e(53732),c=e.n(r),o=e(67787),w=e(56202),u=e(72214);const d={vertical:{offsetSize:"offsetHeight",scrollPosition:"scrollTop",scrollSize:"scrollHeight",clientSize:"clientHeight",scrollDirection:"scrollY",size:"height",client:"clientY",direction:"top",page:"pageY",barClassName:"bar-vertical",thumbClassName:"thumb-vertical"},horizontal:{offsetSize:"offsetWidth",scrollPosition:"scrollLeft",scrollSize:"scrollWidth",clientSize:"clientWidth",scrollDirection:"scrollX",size:"width",client:"clientX",direction:"left",page:"pageX",barClassName:"bar-horizontal",thumbClassName:"thumb-horizontal"}},y=n.memo(function(s){const{isAutoHideBar:l,containerRef:C,minSize:v,verticalDragCallback:a=()=>null,horizontalCallback:P=()=>null}=s;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(h,{type:"vertical",containerRef:C,isAutoHideBar:l,minSize:v,dragCallback:a}),(0,u.jsx)(h,{type:"horizontal",containerRef:C,isAutoHideBar:l,minSize:v,dragCallback:P})]})}),h=n.memo(function(s){const{type:l,containerRef:C,isAutoHideBar:v,minSize:a,dragCallback:P=()=>null}=s,b=n.useRef(null),g=n.useRef(null),S=n.useRef(0),[t,_]=(0,n.useState)(0),[I,k]=(0,n.useState)(2),j=n.useRef(1),[z,K]=(0,n.useState)(!1),[$,A]=(0,n.useState)(v?0:1),[E,U]=(0,n.useState)(!1),O=(0,n.useCallback)(()=>{const B=C.current,Y=b.current;if(!B||!Y)return;const X=B[d[l].clientSize],G=B[d[l].scrollSize],Z=G>X;let J,te,he;if(Z){const de=Y[d[l].clientSize];J=X/G*de,a&&J<a&&(J=a),te=(de-J)/(G-X),he=B[d[l].scrollPosition]*te,he=Math.max(he,0),he=Math.min(he,de-J)}else J=0,te=1,he=0;S.current=J,j.current=te,_(J),k(he),U(Z)},[C,l]),H=(0,n.useCallback)(()=>{const B=C.current,Y=b.current,X=S.current;if(!B||!Y)return;const G=Y[d[l].clientSize];let Z=B[d[l].scrollPosition]*j.current;Z=Math.max(Z,0),Z=Math.min(Z,G-X),k(Z)},[C,l]),Q=(B,Y)=>{const{left:X,right:G,top:Z,bottom:J}=Y.getBoundingClientRect();return B.clientX>=X&&B.clientX<=G&&B.clientY>=Z&&B.clientY<=J},N=(0,n.useCallback)(B=>{const Y=C.current;if(!Y)return;if(Q(B,Y)){A(1);const G=()=>{A(0),document.removeEventListener("mouseleave",G)};document.addEventListener("mouseleave",G)}else{if(z)return;A(0)}},[C,z]);(0,n.useEffect)(()=>{const B=C.current,Y=B==null?void 0:B.children,X=b.current;O();let G,Z;if(B&&X)if(v&&document.addEventListener("mousemove",N),B.addEventListener("scroll",H),window.ResizeObserver){if(G=new ResizeObserver(O),G.observe(B),Y){var J;G.observe(Y[0]),(J=Y[0].children)!=null&&J[0]&&G.observe(Y[0].children[0]);const te=B.querySelector(".variable-height");te&&G.observe(te)}}else Z=new MutationObserver(()=>setTimeout(O,200)),window.addEventListener("resize",O),Y&&Z.observe(Y[0],{subtree:!0,attributeFilter:["style"]});return()=>{G&&G.disconnect(),Z&&Z.disconnect(),window.removeEventListener("resize",O),B&&B.removeEventListener("scroll",H),v&&document.removeEventListener("mousemove",N)}},[C,b,v,l,N,H,O]);const L=(0,n.useCallback)(B=>{if(B.preventDefault(),!g.current||!C.current)return;const Y=B[d[l].page],X=C.current[d[l].scrollPosition]*j.current;let G;const Z=te=>{K(!0),P(!0);const he=te[d[l].page]-Y;G=(X+he)/j.current,C.current[d[l].scrollPosition]=G,H()},J=()=>{document.removeEventListener("mousemove",Z),document.removeEventListener("mouseup",J),K(!1),P(!1)};document.addEventListener("mousemove",Z),document.addEventListener("mouseup",J)},[C,l,H,P]),V=(0,n.useCallback)(B=>{if(B.preventDefault(),!(!b.current||!g.current||!C.current)&&B.target!==g.current){const X=(B[d[l].page]-b.current.getBoundingClientRect()[d[l].direction]-window[d[l].scrollDirection]-g.current[d[l].clientSize]/2)/j.current;C.current[d[l].scrollPosition]=X,H()}},[C,l,H]);if((0,w.nr)())return null;const M={opacity:E?$:0},D={[d[l].direction]:I,[d[l].size]:t},W=d[l].barClassName,F=c()(d[l].thumbClassName,{"is-dragging":z});return(0,u.jsx)(i,{className:W,ref:b,style:M,onMouseDown:V,children:(0,u.jsx)(f,{className:F,ref:g,style:D,onMouseDown:L})})}),i=o.Ay.div.withConfig({displayName:"ScrollBar2__StyledScrollBar",componentId:"sc-18qqocw-0"})(["position:absolute;&.bar-vertical{right:0;top:0;width:8px;height:100%;}&.bar-horizontal{bottom:0;left:0;width:100%;height:8px;}"]),f=o.Ay.div.withConfig({displayName:"ScrollBar2__StyledThumb",componentId:"sc-18qqocw-1"})(["position:absolute;padding:2px;&::after{transition:0.3s background-color;background-color:",";border-radius:6px;content:'';display:block;}&.thumb-vertical{top:0;right:0;width:8px;min-height:20px;&::after{content:'';display:block;width:4px;height:100%;}}&.thumb-horizontal{bottom:0;left:0;height:8x;min-width:20px;&::after{height:4px;width:100%;}}&:hover,&.is-dragging{&::after{background-color:",";}}"],p=>p.theme.color_slider_normal,p=>p.theme.color_slider_hover)},77709:(Fe,ee,e)=>{"use strict";e.d(ee,{$7:()=>u,BM:()=>h,Er:()=>d,H5:()=>c,I9:()=>w,iJ:()=>o,wT:()=>i});var n=e(12211),r=e(60651);const c=f=>f.ui.toolbar.isShowSharingManager,o=f=>f.ui.toolbar.projShareToEdit,w=f=>f.ui.toolbar.canToggleSticky,u=f=>f.ui.toolbar.isShowSticky,d=f=>f.ui.toolbar.saving,y=f=>f.ui.toolbar.canPaste,h=f=>f.ui.toolbar.refresh,i=(0,n.Mz)([r.pH,r.YL],(f,p)=>f||p?0:48)},77814:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>u});var n=e(95549),r=e(38502),c=e(17307),o=e(66530),w=e(72214);class u extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"setComponentRef",y=>this.modal=y)}componentDidMount(){const y=this;window.onmessage=async function(h){if(h.data==="loginSuccess"||h.data==="registerSuccess"){const i=btoa("client=web&type=to_url&url="+location.href);location.href="https://accounts.wondershare.com/v3/user/oauth-client/authorize?response_type=code&redirect_uri="+location.origin+"/wondershare/callback&scope=user%20normal&state="+i+"&source=37&app_key=689b3b14b4e225a9ddadd80a5ef81ca3&product_id=8038"}else h.data==="close"&&y.modal.close()}}render(){const{isOpen:y,onClose:h,type:i}=this.props,f="https://accounts.wondershare.com/web/"+(i==="signin"?"login":"register")+"?redirect_uri="+location.origin+"&source=37&site=mockitt.wondershare.com&mode=1&product_id=8038";return(0,w.jsx)(o.Yo,{isOpen:y,onClose:h,ref:this.setComponentRef,className:"login-modal",isUsePortal:!1,modalRender:()=>(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("iframe",{src:f}),(0,w.jsx)("button",{className:"btn-close-modal",onClick:h,children:(0,w.jsx)(c.C,{name:"common/close"})})]})})}}(0,n.A)(u,"defaultProps",{type:"signin"})},77872:(Fe,ee,e)=>{"use strict";e.d(ee,{l:()=>c,n:()=>u});var n=e(15515),r=e(34860);const c=d=>"design_screen_collapse_keys_"+d,o={show:!1,position:{top:0,left:0},contextScreenSelection:[]},w={editingScreenMetaCid:"",screenTreeMap:{},screenDataMap:{},screenSelection:[],currentPage:{},isMultiplePage:!1,screenTreeData:{cid:"root",data:null,children:[]},contextMenuState:o,screenRange:{start:0,end:void 0},screenCollapseKeySet:new Set,selectNotMoveUpScreenSet:new Set,selectNotMoveDownScreenSet:new Set,selectScreenMetaParentSet:new Set,selectNotDownGradeScreenSet:new Set,screenInfoMap:new Map};function u(d,y){d===void 0&&(d=w);const{type:h,payload:i}=y;switch(h){case"screen:update:state":return{...d,...i};case"screen:set:all:screen-data":{const{screenTreeData:f,screenTreeMap:p,screenDataMap:s}=i;return{...d,screenTreeData:f,screenTreeMap:p,screenDataMap:s}}case"screen:update:editing-screen-cid":return{...d,editingScreenMetaCid:i.cid};case"screen:open:contextmenu":return{...d,contextMenuState:i.contextMenuState};case"screen:update:contextmenu:contextScreenSelection":return{...d,contextMenuState:{...d.contextMenuState,contextScreenSelection:i}};case"screen:close:contextmenu":return{...d,contextMenuState:o};case"screen:update:select:range":return{...d,screenRange:i.screenRange};case"screen:update:screen-selection":{const{screenSelection:f}=i;return{...d,screenSelection:f}}case"screen:update:collapseKeySet":{const{screenExpandedKeySetRef:f,projectCid:p}=i,s=new Set(d.screenCollapseKeySet);return d.screenCollapseKeySet.has(f)?s.delete(f):s.add(f),(0,r.OB)()&&(0,n.a0)(c(p),[...Array.from(s)],n.qW.Array),{...d,screenCollapseKeySet:s}}case"screen:del:collapseKeySet":{const{refs:f,projectCid:p}=i,s=new Set(d.screenCollapseKeySet);return f!=null&&f.length&&f.forEach(l=>s.has(l)&&s.delete(l)),(0,r.OB)()&&(0,n.a0)(c(p),[...Array.from(s)],n.qW.Array),{...d,screenCollapseKeySet:s}}case"screen:add:collapseKeySet":{const{refs:f,projectCid:p}=i,s=new Set([...Array.from(new Set(d.screenCollapseKeySet)),...f]);return p&&(0,r.OB)()&&(0,n.a0)(c(p),[...Array.from(s)],n.qW.Array),{...d,screenCollapseKeySet:s}}case"screen:reset:collapseKeySet":{const{projectCid:f,collapseKeyList:p=[]}=i,s=new Set(p);return(0,r.OB)()&&(0,n.a0)(c(f),[...Array.from(s)],n.qW.Array),{...d,screenCollapseKeySet:s}}case"screen:update:screenInfoMap":{const{screenInfoMap:f}=d,p=new Map(f),{key:s,value:l}=i;return p.set(s,l),{...d,screenInfoMap:p}}default:return d}}},78161:(Fe,ee,e)=>{"use strict";e.d(ee,{Y:()=>f});var n=e(38502),r=e(18381),c=e(67588),o=e(67052),w=e(83199),u=e(17307),d=e(72524),y=e(67787);const h=y.Ay.div.withConfig({displayName:"style__StyledFloatPreviewIcon",componentId:"sc-xvp2aq-0"})(["display:flex;justify-content:center;align-items:center;.svgContainer{width:16px;height:16px;}svg{width:100%;height:100%;border-radius:4px;background-color:rgba(51,51,51,0.5);&:hover{background-color:rgba(51,51,51,0.7);}}"]);var i=e(72214);const f=p=>{const{className:s="",getImgSrc:l,onToggleHover:C,children:v,onClick:a,modalName:P,delay:b=500}=p,[g,S]=(0,n.useState)(!1),t=(0,r.d4)(c.bP),_=(0,r.d4)(o.B8),I=(0,n.useRef)(null),k=(0,n.useRef)(null),j=A=>{S(A),C&&C(A)},z=A=>{A.buttons===0&&(clearTimeout(I.current),j(!0))},K=()=>{b?I.current=setTimeout(()=>{j(!1)},500):j(!1)},$=A=>{a&&(j(!1),a(A))};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h,{className:s,children:(0,i.jsx)(w.A,{content:I18N.Resources.preview,direction:"down",children:(0,i.jsx)("div",{className:"svgContainer",onMouseEnter:z,onMouseLeave:K,onClick:$,ref:k,children:v||(0,i.jsx)(u.C,{name:"design/templates/preview"})})})}),g&&(0,i.jsx)("div",{style:{display:"none"},onMouseEnter:z,onMouseLeave:K,children:(0,i.jsx)(d.A,{layout:t,targetNode:k.current,getImgSrc:l,popupsPanelName:P?"":_,modalName:P,isAutoSize:!!P})})]})}},78301:(Fe,ee,e)=>{"use strict";e.d(ee,{IG:()=>o,Sv:()=>w,kb:()=>u});var n=e(67787),r=e(21066),c=e(51090);const o=n.Ay.div.withConfig({displayName:"StyledMenuBox",componentId:"sc-17rvgl7-0"})(["padding:8px;min-width:160px;background:",";box-shadow:",";border-radius:8px;color:",";border:1px solid ",";margin-top:-4px;a{height:28px;}li{list-style:none;}.menu-item{position:relative;height:32px;padding:0 20px;display:flex;align-items:center;cursor:pointer;&:hover{background:",";}}.menu-divider{height:1px;margin:8px 0;background-color:",";}&.group-content{min-width:200px;.group-icon .svg-icon{width:16px;height:16px;&.toolbar-z_front,&.toolbar-z_back,&.common-z_forward,&.common-z_backward{width:24px;height:24px;}}}.group-icon{&.version-history{.toolbar-feature-notice{left:95px;}}}"],d=>d.theme.color_bg_white,d=>d.theme.shadow_m,d=>d.theme.color_text_L1,d=>d.theme.color_bg_border_01,d=>d.theme.color_btn_secondary_hover,d=>d.theme.color_bg_border_01),w=(0,n.Ay)(r.Ay).withConfig({displayName:"StyledMenuBox__StyledMenuContent",componentId:"sc-17rvgl7-1"})(["ul{min-width:160px;}&.isCommunity{top:53px !important;&.fullScreen{top:48px !important;}&.onlyRead{&.project_basic{right:267px !important;&.fullScreen{right:233px !important;}}&.combo_group{right:226px !important;}}&.onlyPreview{&.combo_group{right:189px !important;}right:196px !important;}ul{width:160px;min-width:0;}}&.isEmbedV2Preview{top:32px !important;&.fullScreen{top:48px !important;}&.onlyRead{&.fullScreen{right:233px !important;}}&.onlyPreview{right:196px !important;}ul{width:160px;min-width:0;}}&.onlyPreview{> ul{left:initial;right:100%;}}li{list-style:none;}a{color:",";}.MenuItem{& > a{padding-left:32px;}&.hasIcon{> a{padding-left:15px;}}}.menu-divider{height:1px;margin:8px 0;background-color:",";}",";"],d=>d.theme.color_text_L1,d=>d.theme.color_bg_border_01,c.ZJ),u=(0,n.DU)([".context-menu-mask{z-index:1200 !important;}"])},78571:(Fe,ee,e)=>{"use strict";Fe.exports=e.p+"worker-2846b23fd011e639c72e.js"},78661:(Fe,ee,e)=>{"use strict";e.d(ee,{V:()=>o});var n=e(56202);const r={copy:["Ctrl + C","\u2318 C"],cut:["Ctrl + X","\u2318 X"],group:["Ctrl + G","\u2318 G"],past:["Ctrl + V","\u2318 V"],ungroup:["Shift + Ctrl + G","\u21E7 \u2318 G"],lock:["Shift + Ctrl + L","\u21E7 \u2318 L"],hide:["Shift + Ctrl + H","\u21E7 \u2318 H"],pastToPoint:["Shift + Ctrl + V","\u21E7 \u2318 V"],sendFront:["Shift + Ctrl + \u2191","\u21E7 \u2318 \u2191"],sendBack:["Shift + Ctrl + \u2193","\u21E7 \u2318 \u2193"],zForward:["Alt + Ctrl + \u2191","\u2325 \u2318 \u2191"],zBackward:["Alt + Ctrl + \u2193","\u2325 \u2318 \u2193"],undo:["Ctrl + Z","\u2318 Z"],redo:["Shift + Ctrl + Z"," \u21E7 \u2318 Z"],selectAll:["Ctrl + A","\u2318 A"],zoomIn:["Ctrl + +","\u2318 +"],zoomOut:["Ctrl + -","\u2318 -"],zoomToHundred:["Ctrl + 0","\u2318 0"],fitCanvas:["Ctrl + 1","\u2318 1"],zoomSelection:["Ctrl + 2","\u2318 2"],showLeftPanel:["Ctrl + [","\u2318 ["],showRightPanel:["Ctrl + ]","\u2318 ]"],sticky:["Alt + Ctrl + A","\u2325 \u2318 A"],findReplace:["Ctrl + F","\u2318 F"],pasteProperties:["Alt + Ctrl + V","\u2325 \u2318 V"],preview:["Ctrl + P","\u2318 P"],addSameLevelPage:["Ctrl + Enter","\u2318 \u21B5"],moveUpPage:["Ctrl + \u2191","\u2318 \u2191"],moveDownPage:["Ctrl + \u2193","\u2318 \u2193"],upgradePage:["Ctrl + \u2190","\u2318 \u2190"],downGradePage:["Ctrl + \u2192","\u2318 \u2192"],insertSubTheme:["Tab/Insert","Tab/Insert"],insertPeerTheme:["Enter","Enter"],save:["Ctrl + S","\u2318 S"],pencil:["Shift + P","\u21E7 P"]},c=(0,n.cX)()?1:0,o=Object.entries(r).reduce((w,u)=>{let[d,y]=u;return w[d]=y[c].split(" "),w},{})},78998:(Fe,ee,e)=>{"use strict";e.d(ee,{C8:()=>h,K4:()=>y,Q:()=>u,XB:()=>w,aT:()=>o,vb:()=>d});var n=e(49899),r=e.n(n),c=e(53559);const o=i=>{const f={};return i.map(p=>{const s=f[p.name]=(f[p.name]||0)+1;if(s===1)return p;const l=p.name.split("."),C=l.pop();return new File([p],l.join(".")+" ("+s+")."+C,{type:p.type})})},w=(i,f,p)=>{const{isExportWatermark:s}=(0,c.xR)(i,f);return s},u=(i,f)=>{(0,n.saveAs)(i,f)},d=i=>{const f=new Date;i.files=Object.fromEntries(Object.values(i.files).map(p=>{const s=parseInt(p.name.split("/").slice(p.dir?-2:-1)[0].split(" ")[0]),l=p.name.split("/").map(C=>C.split(" ").slice(1).join(" ")).join("/");return p.date=new Date(f.getTime()-(f.getTimezoneOffset()+s)*6e4),[l,p]}))},y=function(i,f,p,s){i===void 0&&(i=P=>{}),f===void 0&&(f=0),p===void 0&&(p=99),s===void 0&&(s=f);const l=(P,b,g)=>Math.max(Math.min(P,g),b);return{advanceRR:P=>{s=l(s+(p-f)*P,f,p),i(Math.round(s))},splitTo:P=>{const b=[];let g=s;for(let S=0;S<P;S++){const t=l(g+(p-s)/P,g,p);b.push(y(i,g,t)),g=t}return b},divideAt:P=>{const b=l(s+(p-s)*P,s,p);return[y(i,s,b),y(i,b,p)]}}},h=i=>{try{var f,p;const{currentOrg:s,userId:l}=i;if(!s||!l||!(s!=null&&s.permissions)||(s==null||(f=s.permissions)==null?void 0:f.length)===0)return!1;const C=(p=s.permissions)==null||(p=p.find(a=>Number(a.user_id)===Number(l)))==null?void 0:p.role;return(s.settings.mdrp_export||[]).includes(C)}catch(s){return!1}}},79388:(Fe,ee,e)=>{"use strict";e.d(ee,{Ck:()=>X,F2:()=>J,LK:()=>M,Ok:()=>he,il:()=>Se,sH:()=>L,yk:()=>Y,z0:()=>N});var n=e(93093),r=e(37304),c=e(63986),o=e.n(c),w=e(70093),u=e.n(w),d=e(76967),y=e.n(d),h=e(76805);if(/^4[67]7$/.test(e.j))var i=e(60892);var f=e(18833);if(/^4[67]7$/.test(e.j))var p=e(19249);var s=e(47946),l=e(31561),C=e(87612),v=e(83557),a=e(89989),P=e(2399),b=e(34860),g=e(85449),S=e(55244),t=e(49425),_=e(71577),I=e(50060),k=e(74222),j=e(58156),z=e(53940),K=e(15515),$=e(52563),A=e(9446),E=e(68587),U=e(39695),O=e(20089),H=e(18816),Q=e(76613);ENV.IS_SKT_HTTP&&(0,s.pX)(!0),(0,C.Z)(n.wd,r.Z);const N=async(xe,be)=>{if(console.warn("[onTransferError]",xe,be),xe==="Tot"||xe==="5XX")MB.notice&&MB.notice({text:I18N.Common.offline_alert,duration:32*1e3,showClose:!0,priority:1,type:"super"});else if(xe==="4XX"&&be&&/403/.test(be.message)){if(MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.cant_edit,confirmText:I18N.dModule.exit_editing,desc:I18N.dModule.cant_edit_desc}).then(()=>MB.global.onBackButtonClick()),/Error: bad flpak-save/.test(be.message)){var ie,oe,ue;(0,C.p)("saveFlpakError",be,{uId:(ie=MB)==null||(ie=ie.user)==null?void 0:ie.id,orgCid:(oe=MB)==null||(oe=oe.currentOrg)==null?void 0:oe.cid,projectCid:(ue=MB)==null||(ue=ue.getRootProject())==null?void 0:ue.cid})}}else xe==="4XX"&&be&&/401/.test(be.message)?(window.onbeforeunload=void 0,MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.err_info_modal.INVALID_COOKIE.title,desc:I18N.dModule.err_info_modal.INVALID_COOKIE.desc,confirmText:I18N.dModule.confirm}).then(()=>(0,f.AG)())):xe==="4XX"?(window.onbeforeunload=void 0,MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.err_info_modal.INVALID_COOKIE.title,desc:I18N.dModule.err_info_modal.INVALID_COOKIE.desc,confirmText:I18N.dModule.confirm}).then(()=>(0,f.AG)())):await MB.global.popupHelper.alertAsyncBlocked({desc:window.I18N.dModule.unknown_error.replace(/%s/i,status),isHTML:!0})},L=async(xe,be)=>{console.warn("[onReadOnlyError]",xe,be),xe!=="Cur"&&MB.notice&&MB.notice({text:I18N.Common.offline_alert,duration:5*1e3,showClose:!0,priority:1})},V=xe=>{let{sendCur:be,cssCur:ie}=xe;const oe=()=>{try{if((0,b.oK)()){const ve=(0,g.ll)();if(!ve)return;const{container:{runner:{activePageKey:re}}}=ve;if(!re)return;be(re,void 0,void 0)}else{const ve=(0,g.dP)();if(!ve)return;const{current:{currentScreen:re},screencontainer:{cursorPos:fe}}=ve,we=re&&(re.cid||re.key);if(!we)return;const{x:Te,y:Ie}=fe||{};be(we,Te,Ie)}}catch(ue){console.error("cssCur push error",ue)}};setInterval(()=>{ie.pollRoomChg()&&oe()},3*1e3),document.addEventListener("pointermove",oe,{passive:!0})},M=function(xe,be){var ie;be===void 0&&(be=rootSdk);const oe=(0,g.dP)();if(!oe||!MB.action)return;try{(0,_.G_)()}catch(Ee){console.error(Ee)}if(((ie=rootSdk)==null||(ie=ie.cssCur)==null?void 0:ie.getRoomStat().length)<=1)return;const ue=oe.ui.leftLayout.directory.screen.contextMenuState;if(ue!=null&&ue.show&&u()(ue.contextScreenSelection,xe).length>0){const Ee=y()(ue.contextScreenSelection,xe);Ee.length===0&&MB.action("screen:close:contextmenu"),MB.action("screen:update:contextmenu:contextScreenSelection",Ee)}const ve=oe.ui.leftLayout.directory.screen.currentPage,re=oe.ui.leftLayout.directory.screen.screenDataMap;ve&&xe.includes(ve.key)&&be.sdkStore.isTrashed(ve.key)&&(oe.editor.state.mode.basketEditor.refPage?MB.action("entry:update:screen:list"):MB.action("entry:activate:root-project:home-screen"),MB.notice({text:"\u5F53\u524D\u9009\u4E2D\u753B\u5E03\u5DF2\u88AB\u6B63\u5728\u534F\u540C\u7684\u6210\u5458\u5220\u9664",type:"warning"}));const fe=be.sdkStore.getHotItem(xe[0]);if((fe==null?void 0:fe.hotAttr.type)==="rResBunch"&&(fe==null?void 0:fe.hotAttr.bunch)==="rbPage")if(!re[xe[0]]||be.sdkStore.isTrashed(xe[0]))MB.action("entry:update:screen:list");else{const Ee=re[xe[0]];if(!o()(fe==null?void 0:fe.hotAttr,Ee==null?void 0:Ee.hotAttr)){var we,Te,Ie,le,me,Pe;((Ee==null||(we=Ee.hotAttr)==null?void 0:we.name)!==(fe==null||(Te=fe.hotAttr)==null?void 0:Te.name)||(Ee==null||(Ie=Ee.hotAttr)==null?void 0:Ie.icon)!==(fe==null||(le=fe.hotAttr)==null?void 0:le.icon)||(Ee==null||(me=Ee.hotAttr)==null?void 0:me.zIndex)!==(fe==null||(Pe=fe.hotAttr)==null?void 0:Pe.zIndex))&&MB.action("entry:update:screen:list"),(ve==null?void 0:ve.key)===(fe==null?void 0:fe.key)&&MB.action("entry:update:current:screen-mata",{screenMeta:{cid:fe==null?void 0:fe.key,sup:fe==null?void 0:fe.sup,sub:fe==null?void 0:fe.sub,...fe==null?void 0:fe.hotAttr},updateWidgetTreeData:!1})}}const pe=oe.editor.state.mode.selections,ke=pe.filter(Ee=>!be.sdkStore.isTrashed(Ee));ke.length!==pe.length&&MB.action("entry:update:selection:select:items",{cids:ke});const We=oe.editor.state.mode.hover.item;We&&be.sdkStore.isTrashed(We)&&MB.action("mode:update:hover:item","")},D=xe=>{M(xe),te(xe.map(be=>sdkStore.getHotItem(be)).filter(be=>{var ie;return(be==null||(ie=be.hotAttr)==null?void 0:ie.type)==="wChart"}))},W={repaint:xe=>{let{type:be,payload:ie}=xe;be===l.a&&D(ie.changedKeyList)}},F=(0,h.nF)(()=>{!(0,g.dP)()||!MB.action||MB.action("entry:comment:rebuild:commentList")},.5*1e3),B={repaint:xe=>{let{type:be,payload:ie}=xe;be===a.a&&F()}},Y=async xe=>{let{projectBasicCid:be}=xe;try{const{userId:ie,flatKey:oe,sclibKey:ue}=await(0,p.DE)("/api/flat/web_v1/proj2-edit-info?prj2Cid="+be);return{userId:ie,flatKey:oe,sclibKey:ue}}catch(ie){await(0,f.FY)(ie)}},X=xe=>{var be,ie;return{...(0,U.nF)(),interactionTrigger:"timer",timerDuration:xe.aniDelay||"0",targetWidgetKey:Q.rE,animationName:xe.aniName,animationDuration:Number(((be=xe.aniDuration)!=null?be:"1").replace("s",""))*1e3,transitionDelay:xe.aniDelay||"0",iterationCount:(ie=xe.aniCount)!=null?ie:"1"}},G=(xe,be,ie)=>{try{if(Object.hasOwn(be,"animation")&&Object.hasOwn(be,"interactions")){const oe=be.animation;oe.aniName&&oe.aniName!=="none"&&ie.push([xe,{animation:{...oe,aniName:"none"},interactions:[...be.interactions||[],X(oe)]}])}}catch(oe){console.error(oe)}},Z=xe=>{let{sdk:be=sdkStore,rootKey:ie=k.$k,initWM:oe,convertItaAniPairList:ue}=xe;const ve=[],re=Date.now();return new Promise(fe=>{const we=new Set,Te=[],Ie=(0,$.Pj)(),le=Pe=>{te(ve),oe==null||oe(Array.from(Ie._map.keys()),Ie._map),we.clear(),fe(Pe)},me=Pe=>{if(we.has(Pe))return;we.add(Pe);const pe=be.getHotItem(Pe);if(!pe)return;(0,I.pE)(pe.key,void 0,!0);const{hotAttr:ke,sub:We}=pe;ke.type===O.x.WChart&&ve.push(pe),(0,j.Z)(pe);let Ee=We;if(ke.type==="rResBunch"&&ke.bunch==="rbPage"&&(Ee=[],We.forEach(Ce=>{var _e;((_e=be.getHotItem(Ce))==null?void 0:_e.hotAttr.bunch)==="rbPage"?Te.push(Ce):Ee.push(Ce)})),ke.type==="wBasket"&&["bDanli","bMuban"].includes(ke.basket)){var Ae;Ee=((Ae=sdkStore.getHotItem(ke.refRBPageKey))==null?void 0:Ae.sub)||[]}if(oe){const{mktCid:Ce,mktUnlock:_e}=ke;Ce&&!_e&&Ie.addRef(Ce,Pe)}for(const Ce of Ee)me(Ce);ue&&G(Pe,ke,ue)};for(ie!==k.$k&&Te.push(ie),Te.push(...be.getHotItem(k.$k).sub);Te.length;){const Pe=Te.shift();if(!(!Pe||we.has(Pe))){if(Date.now()-re>3e3){le(!1);return}me(Pe)}}le(!0)})},J=async(xe,be,ie)=>{try{var oe,ue;const re=Date.now();performance.mark("setupSDK:start"),ENV.IS_ON_PREMISES&&(0,P.F)();const fe=await(0,s.ur)(xe),we=fe.sdkStore.createRoSdkStore();Object.assign(globalThis,{...fe,rootSdk:fe,roSdkStore:we}),V(fe),fe.sdkStore.subscribe(W.repaint),fe.cmtStore.subscribe(B.repaint);const Te=be&&(0,b.OB)();Te&&((0,t.nU)(fe.flatStore,be),(0,t.lb)(fe.flatStore),(0,t.th)(fe.flatStore),(0,t.Uh)(fe.flatStore),(0,t.TK)(fe.flatStore),(0,t.a3)(fe.flatStore,be)),performance.measure("setupSDK","setupSDK:start");let Ie=(oe=(0,K.Yt)(z.NF+"-"+(be==null?void 0:be.cid),"",K.qW.String).split(","))==null?void 0:oe[0];const le=((ue=fe.sdkStore.getHotItem(k.$k))==null?void 0:ue.sub)||[];(!Ie||!le.includes(Ie))&&(Ie=le[0]||k.$k),performance.mark("walkInitTree:start");const me=[],Pe=await Z({sdk:fe.sdkStore,rootKey:Ie,initWM:ie,convertItaAniPairList:Te?me:void 0});(0,I.sk)(),Te&&Pe&&Date.now()-re<1e4&&((0,I.Uk)(),me.length>0&&fe.sdkStore.updateHotAttrMergeBatch(me)),performance.measure("walkInitTree","walkInitTree:start")}catch(re){var ve;const fe=re?Number(re.status)||Number((ve=re.toString().split("status")[1])==null||(ve=ve.split(":")[1])==null?void 0:ve.split(",")[0]):void 0;console.warn("[initRootSdk]",re,fe),(0,C.p)("initRootSdk",re,{status:fe,sdkOption:xe,projectBasic:be}),await(0,f.FY)({status:fe}),await new Promise(()=>{})}},te=xe=>{const be=[H.h.Map100000.loadMLG()];for(const ie of xe){const{chartType:oe,mapAdCode:ue}=ie.hotAttr.chartConfig;if(oe==="map_chart"){const ve=H.h["Map"+ue];ve.hasMLG()||be.push(ve.loadMLG())}}return Promise.all(be)},he=xe=>async be=>{let{fssDat:ie}=be;try{const oe=await ie.loadSOS();if(!oe)return;if(console.warn("[afterStoreCreate] found unsaved proj tree",oe),await MB.global.popupHelper.confirmAsync({isClose:!0,isHTML:!0,title:"\u6062\u590D\u6570\u636E",desc:["<p>\u68C0\u6D4B\u5230\u672A\u6210\u529F\u4FDD\u5B58\u5230\u4E91\u7AEF\u7684\u6587\u4EF6\u6570\u636E\uFF0C\u6700\u540E\u8BB0\u5F55\u65F6\u95F4\u4E3A\uFF1A"+(0,S.JQ)(new Date(oe.time).getTime(),"","-")+"\u3002</p>","<p>\u662F\u5426\u6062\u590D\u6570\u636E\u5230\u65B0\u6587\u4EF6\uFF1F</p>"].join(""),confirmText:"\u6062\u590D"})){const{clientData:{upperCid:ve}}=await(0,v.Nc)(oe.tree,xe.team_cid,{...xe,name:xe.name+"-\u6062\u590D\u6570\u636E"}).catch(async re=>{await MB.global.popupHelper.alertAsync({title:"\u6062\u590D\u5931\u8D25",desc:"\u672A\u6210\u529F\u6062\u590D\u6570\u636E\u5230\u65B0\u6587\u4EF6\uFF0C\u8BF7\u91CD\u65B0\u52A0\u8F7D\u9875\u9762\u5E76\u91CD\u8BD5\u3002\u62A5\u9519\u4FE1\u606F\uFF1A"+(re.message||String(re))}),location.reload(),await(0,i.Y_)(1e9)});await ie.freeSOS(),location.href="/proto/design/"+ve}else await ie.freeSOS()}catch(oe){(0,C.p)("loadSOS err",oe)}},de=window.Worker&&window.DecompressionStream&&window.ReadableStream&&window.location.protocol.startsWith("http"),Se=xe=>{if(!de)return;let be,ie;return{onStatFlpak:(oe,ue)=>{if(oe!==xe)return;A.A.init(ue);const{currentSize:ve,isFlpakSizeWarn:re}=A.A.getFlpakSizeInfo();ie=re,re&&(be="\u9879\u76EE\u4F53\u79EF\u8F83\u5927(\u7EA6"+ve+"M)\uFF0C\u8BF7\u7A0D\u7B49..."),(0,E.xd)({value:10,nextVlue:20,text:be,message:"fetched"})},onParseFlpak:oe=>{let{part:ue,rate:ve}=oe;const re=ie?50:70;(0,E.xd)({value:10+Math.floor(ve*re/100),nextVlue:re+10,text:be,message:"parse-"+ue})},onTransferItems:(oe,ue)=>{const ve=ie?30:10;(0,E.xd)({value:90-ve+Math.floor(oe/ue*ve),nextVlue:95,text:be,message:"transfer"})}}}},79581:(Fe,ee,e)=>{"use strict";e.d(ee,{I1:()=>r,Ij:()=>c,k0:()=>o});var n=e(67787);const r=n.Ay.div.withConfig({displayName:"styles__StyledNoMasters",componentId:"sc-1kylv5z-0"})(["margin-top:-4px;padding:0 18px;.title{color:",";font-weight:600;margin:20px 0 8px 0;}.content{display:flex;flex-direction:column;.svg-icon{color:",";width:16px;height:16px;flex-shrink:0;margin:3px 8px 0 0;}p{color:",";line-height:20px;&:nth-child(2){a{display:block;}}a{color:",";&:hover{color:",";}}}}"],w=>w.theme.color_text_L1,w=>w.theme.color_text_L3,w=>w.theme.color_text_L2,w=>w.theme.color_text_link_normal,w=>w.theme.color_text_link_hover),c=n.Ay.div.withConfig({displayName:"styles__StyledTemplateHeaderV9",componentId:"sc-1kylv5z-1"})(["position:relative;width:100%;height:40px;min-height:40px;display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;border-bottom:1px solid ",";&.isSearching{justify-content:left;padding:0 12px;}.title{max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;color:",";font-weight:500;&:lang(en){font-weight:600;}}.old_right-title{margin:auto 0 auto 12px;font-size:16px;font-weight:500;display:flex;&:after{width:1px;height:18px;content:'';display:block;background:",";margin-left:10px;}}.nav-back-icon{flex-shrink:0;margin-right:4px;svg.svg-icon{width:9px;height:14px;path{stroke:",";fill:none;}}}.search-bar{width:100%;height:100%;border:none;background:",";color:",";flex:1;margin-right:6px;.search-icon{margin-left:10px;margin-right:2px;path{fill:",";}input{margin-left:2px;}}&:hover,&.isFocus{background:",";border-color:",";}}"],w=>w.theme.color_bg_border_01,w=>w.theme.color_text_L1,w=>w.theme.color_bg_border_01,w=>w.theme.color_text_L1,w=>w.theme.color_bg_white,w=>w.theme.color_text_L3,w=>w.theme.color_text_L2,w=>w.theme.color_bg_white,w=>w.theme.color_text_link_normal),o=n.Ay.div.withConfig({displayName:"styles__StyledTemplatePanel",componentId:"sc-1kylv5z-2"})(["overflow:auto;scrollbar-width:none;width:100%;height:100%;&::-webkit-scrollbar{display:none;}.bar-vertical{top:40px;height:calc(100% - 40px);}"])},79743:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>f});var n=e(38502),r=e(53732),c=e.n(r),o=e(17307),w=e(72140),u=e(89240),d=e(67787);const y=d.Ay.div.withConfig({displayName:"styles__StyledFindResourcesCollapsePanel",componentId:"sc-1ouj5xp-0"})(["&.resources-list{&.expanded{.card-header{margin-bottom:6px;}}&:not(.expanded){.card-header{.left .arrow-16{transform:rotate(-90deg);}}}&.screen_list,&.combo-group,&.combo_group{&.noCollapse{margin-bottom:8px;.card-header{padding-left:","px;}}&.expanded .card-header{margin-bottom:8px;}.card-header{padding-left:","px;padding-right:4px;.left .arrow-16{margin-left:0;margin-top:0;}}}.card-header{height:32px;display:flex;align-items:center;justify-content:space-between;width:calc(100% - 6px);.left{max-width:77%;display:flex;align-items:center;font-size:12px;font-weight:500;color:",";cursor:pointer;.arrow-16{margin-right:6px;transition:transform 0.2s ease-in-out;path{stroke:",";}}.title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}.right{display:flex;align-items:center;height:100%;color:",";cursor:pointer;.arrow-right{width:6px;height:10px;margin-left:10px;}}&.float{position:absolute;top:119px;z-index:2;width:226px;background-color:#fff;margin-bottom:0;}}.resources-card-list{display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(auto-fill,109px);}}"],p=>p.level*12,p=>p.level*12,p=>p.theme.color_text_L1,p=>p.theme.color_text_L3,p=>p.theme.color_text_L3);var h=e(72214);const f=p=>{const{index:s=0,title:l,onClickResources:C,children:v,className:a,canCollapse:P=!0,dataCid:b="",level:g=1}=p,[S,t]=(0,n.useState)([]),_=k=>{if(!P)return;const j=JSON.parse(JSON.stringify(S));j[k]=!j[k],t(j)},I=()=>C&&C();return(0,h.jsxs)(y,{"data-cid":b,"data-key":l,className:c()("resources-list",a,{expanded:!S[s]},{noCollapse:!P}),level:g,children:[(0,h.jsxs)("div",{className:"card-header header","data-key":b,children:[(0,h.jsxs)("div",{className:"left",onClick:()=>_(s),children:[P&&(0,h.jsx)(u.A,{className:"arrow-16",size:16}),(0,h.jsx)("span",{className:"title",children:l})]}),!!C&&(0,h.jsxs)("div",{className:"right",onClick:I,children:[(0,h.jsx)("p",{children:I18N.Popups.iconCat.All}),(0,h.jsx)(o.C,{className:"arrow-right",name:"design/arrow/right"})]})]}),(0,h.jsx)(w.A,{className:"collapse-box",collapse:!!S[s],children:v})]})}},80077:(Fe,ee,e)=>{"use strict";e.d(ee,{O:()=>s});var n=e(53732),r=e.n(n),c=e(18381),o=e(23744),w=e(60589),u=e(81973),d=e(4235),y=e(10472),h=e(57514),i=e(67787);const f=i.Ay.div.withConfig({displayName:"styles__StyledUsedRefAppearPanel",componentId:"sc-1o788e0-0"})(["display:flex;align-items:center;margin-left:-6px;&:hover,&.is-active{.content{background-color:",";border-color:",";}.svg-icon{display:block;}}.content{padding-left:6px;display:flex;align-items:center;flex:1;height:28px;border-radius:6px;border:1px solid ",";background:",";color:",";cursor:pointer;overflow:hidden;padding-right:4px;.appear-ref-view-item{margin-right:10px;&:not(.has-opacity){flex:0 0 16px;}}span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}}.svg-icon{display:none;cursor:pointer;border-radius:4px;margin-left:6px;color:",";flex:0 0 24px;&:hover{background-color:",";}}"],l=>l.theme.color_btn_secondary_hover,l=>l.theme.color_btn_secondary_hover,l=>l.theme.color_bg_border_02,l=>l.theme.color_bg_white,l=>l.theme.color_text_L1,l=>l.theme.color_text_L1,l=>l.theme.color_btn_secondary_hover);var p=e(72214);const s=l=>{var C;const{canOpenModal:v=!0}=l,a=(0,c.d4)(u.Dw),{isOpen:P,type:b}=(0,c.d4)(w.FK),g=(0,c.d4)(d.p$),{isEditingCombo:S}=(0,c.d4)(y.r),t=(0,c.wA)(),_=k=>{if(!(S||!v))if(k.stopPropagation(),P)t({type:"modal:reset:popup:state",payload:{modalName:"libPanelModal"}});else{const{left:j,top:z,height:K,right:$}=k.target.getBoundingClientRect(),A={left:j>=260?Math.max(j-240>>0,0):$+20,top:Math.max(z+K/2-340>>0,56)};t({type:"modal:update:state",payload:{libPanelModal:{isOpen:!0,type:"appear",position:A}}})}},I=()=>{if(!(a!=null&&a.key))return;const k=sdkStore.getHotItem(a==null?void 0:a.key);t({type:"entry:libStyle:del:widget:refStyles",payload:{type:"appear",selections:g,refStyle:k}}),t({type:"settings:update:currentAppearRefStyle",payload:null})};return(0,p.jsxs)(f,{className:r()("open-lib-icon",{"is-active":P&&b==="appear"}),children:[(0,p.jsxs)("div",{className:"content",onClick:_,children:[(0,p.jsx)(h.U,{appearStyle:a,index:99999}),(0,p.jsx)("span",{children:a==null||(C=a.hotAttr)==null?void 0:C.name})]}),(0,p.jsx)(o.C,{name:"setting_panel/general/clear_sl_ref",className:"clear_style_ref",size:24,onClick:I})]})}},80138:(Fe,ee,e)=>{"use strict";e.d(ee,{K:()=>r});var n=e(1738);const r={["v8Cmd/"+n.c.Save]:[18,18,'<path fill="#000" d="m15.33 6.57-3.91-3.92c-.2-.18-.45-.29-.72-.3H3.46a1.11 1.11 0 0 0-1.11 1.11v11.09a1.1 1.1 0 0 0 .33.78c.21.2.5.32.78.32h11.09c.29 0 .57-.12.78-.32.2-.21.32-.5.32-.79v-7.2c0-.29-.12-.57-.32-.77Zm-5.87-.94h.03-.03ZM8.34 3.6V5H5.81V3.61h2.53Zm4.88 6.28a.41.41 0 0 0-.28-.12c.1.01.19.05.26.12v.05c0 .05.02-.03 0-.05h.02Zm.13.26v.08l-.03-.08h.03Zm-1.1 2.47v1.78H5.82v-3.54h6.45v1.76Zm2.18 1.8h-.91v-4.19a.63.63 0 0 0-.22-.46.62.62 0 0 0-.45-.18h-7.7a.63.63 0 0 0-.44.18.63.63 0 0 0-.19.44v4.17h-.9V3.6h.9v2.02c0 .16.07.33.19.45.11.11.27.18.44.18H9c.17 0 .33-.07.45-.18a.65.65 0 0 0 .19-.45V3.6h.97l3.8 3.8.02 7.02Zm.83.83a.98.98 0 0 1-.53.25c.2-.03.38-.12.52-.25l.14-.2-.16.17.03.03Zm.27-.68v.14-.14Z"/>'],["v8Cmd/"+n.c.CreateNewVersion]:[18,18,'<path fill="#000" d="m15.33 6.57-3.91-3.92c-.2-.18-.45-.29-.72-.3H3.46a1.11 1.11 0 0 0-1.11 1.11v11.09a1.1 1.1 0 0 0 .33.78c.21.2.5.32.78.32h11.09c.29 0 .57-.12.78-.32.2-.21.32-.5.32-.79v-7.2c0-.29-.12-.57-.32-.77Zm-5.87-.94h.03-.03ZM8.34 3.6V5H5.81V3.61h2.53Zm4.88 6.28a.41.41 0 0 0-.28-.12c.1.01.19.05.26.12v.05c0 .05.02-.03 0-.05h.02Zm.13.26v.08l-.03-.08h.03Zm-1.1 2.47v1.78H5.82v-3.54h6.45v1.76Zm2.18 1.8h-.91v-4.19a.63.63 0 0 0-.22-.46.62.62 0 0 0-.45-.18h-7.7a.63.63 0 0 0-.44.18.63.63 0 0 0-.19.44v4.17h-.9V3.6h.9v2.02c0 .16.07.33.19.45.11.11.27.18.44.18H9c.17 0 .33-.07.45-.18a.65.65 0 0 0 .19-.45V3.6h.97l3.8 3.8.02 7.02Zm.83.83a.98.98 0 0 1-.53.25c.2-.03.38-.12.52-.25l.14-.2-.16.17.03.03Zm.27-.68v.14-.14Z"/>'],["v8Cmd/"+n.c.ViewFileInfo]:[18,18,'<g clip-path="url(#a)" fill="#000" ><path d="M9 1.85a7.15 7.15 0 1 0 0 14.3 7.15 7.15 0 0 0 0-14.3Zm0 13a5.83 5.83 0 1 1 5.83-5.83A5.83 5.83 0 0 1 9 14.83v.02Z"/><path d="M9 8.1a.86.86 0 0 0-.86.86v3.07a.86.86 0 0 0 .86.86.85.85 0 0 0 .86-.86V8.96A.85.85 0 0 0 9 8.1ZM9 6.82A.86.86 0 1 0 9 5.1a.86.86 0 0 0 0 1.72Z"/></g><defs><clipPath id="a"><path fill="#fff" transform="translate(1.85 1.85)" d="M0 0h14.3v14.3H0z"/></clipPath></defs>'],["v8Cmd/"+n.c.ProjectRename]:[18,18,'<g fill="#000" clip-path="url(#clip0_3164_596)"><path d="M3.63 3.63v10.74h10.74V9.6c0-.26.1-.46.33-.58.41-.24.95.06.95.54v4.95c0 .57-.46 1.08-1.03 1.13-.2.02-.41 0-.62 0H3.52a1.16 1.16 0 0 1-1.17-1.18V3.5c0-.58.45-1.07 1.03-1.13.2-.02.42 0 .62 0h4.47a.64.64 0 0 1 .57.92.61.61 0 0 1-.58.35H3.63Z"/><path d="m9.52 5.41-.15-.14a.59.59 0 0 1 .02-.84c.22-.22.6-.21.82.01l.13.15.05-.04 1.6-1.6a1.16 1.16 0 0 1 1.63 0l1.44 1.44a1.14 1.14 0 0 1 0 1.6l-1.6 1.6a.35.35 0 0 1-.05.04l.16.17a.59.59 0 0 1-.83.83l-.16-.17a15492.69 15492.69 0 0 1-4.03 4.05.6.6 0 0 1-.45.19H5.9a.59.59 0 0 1-.6-.6V9.9a.6.6 0 0 1 .18-.45L7.3 7.63 9.5 5.45a.3.3 0 0 1 .03-.04Zm-3.05 6.1.05.01h1.31c.03 0 .06-.02.08-.04l3.8-3.8.03-.03h-.01l-1.39-1.4-.36.37a9194.77 9194.77 0 0 1-3.5 3.51V11.52Zm7.72-6.3L12.8 3.8l-1.6 1.6 1.39 1.4 1.6-1.6Z"/></g><defs><clipPath id="clip0_3164_596"><path fill="#fff" d="M2.35 2.35h13.3v13.3H2.35z"/></clipPath></defs>'],["v8Cmd/"+n.c.ViewVersionRecord]:[18,18,'<g fill="#000" clip-path="url(#clip0_3164_636)"><path d="m4.17 5.36.08.06.68.53.05.04c.06.05.1.1.07.19-.02.07-.07.1-.14.12l-.31.08-2.23.54-.04.01c-.14.04-.23-.06-.23-.18v-.78l-.01-1.84c0-.09.01-.16.1-.2.08-.05.15 0 .21.05l.64.5.08.05.06-.08a7.13 7.13 0 0 1 6.27-2.64A7.2 7.2 0 1 1 2 11.46c-.03-.1.02-.17.11-.2l.72-.25.18-.06c.14-.05.21-.01.26.12a5.84 5.84 0 0 0 5.64 3.8 5.82 5.82 0 0 0 3.88-1.59 5.76 5.76 0 0 0 1.84-4.75 5.77 5.77 0 0 0-1.53-3.5 5.79 5.79 0 0 0-4.69-1.9c-1.7.13-3.1.84-4.19 2.15l-.06.08Z"/><path d="M9.7 7.45V9.73c0 .12-.04.2-.14.28a263.87 263.87 0 0 0-2.7 1.97.38.38 0 0 1-.21.09.3.3 0 0 1-.26-.12l-.49-.67c-.1-.14-.06-.32.09-.43l1.11-.8c.37-.28.74-.54 1.11-.8.06-.05.07-.09.07-.15V5.12a.3.3 0 0 1 .3-.28h.83a.3.3 0 0 1 .3.28v2.33Z"/></g><defs><clipPath id="clip0_3164_636"><path fill="#fff" d="M2 1.78h14v14.44H2z"/></clipPath></defs>'],["v8Cmd/"+n.c.ToggleViewShare]:[18,18,'<path fill="#000" d="m8.5 12.87-2.1-1.34c-.64.58-1.38.83-2.23.72a2.65 2.65 0 0 1-1.48-4.57 2.62 2.62 0 0 1 1.98-.73c.76.04 1.38.36 1.9.93l3.1-1.6c-.21-1.03 0-1.97.67-2.8a3.27 3.27 0 0 1 5.61 3.2 3.26 3.26 0 0 1-3.8 2.06 3.25 3.25 0 0 1-1.99-1.33L7.13 8.97c.13.5.1 1.03-.07 1.53L9.1 11.8a2.27 2.27 0 0 1 1.97-.61 2.26 2.26 0 0 1 1.5 3.53 2.29 2.29 0 0 1-4.08-1.86Zm4.37-5.27a2.04 2.04 0 1 0 0-4.08 2.05 2.05 0 1 0 0 4.08Zm-8.34 3.45a1.45 1.45 0 0 0 1.45-1.43 1.45 1.45 0 0 0-2.9-.01c0 .79.65 1.44 1.45 1.44Zm6.18 3.42c.57 0 1.04-.46 1.04-1.03a1.05 1.05 0 1 0-1.79.73 1.05 1.05 0 0 0 .74.3Z"/>'],["v8Cmd/"+n.c.CategoryCommonOperation]:[18,18,'<g fill="#000" clip-path="url(#clip0_3164_753)"><path d="m15.69 10.1-4.3-7.81a.83.83 0 0 0-1.15-.32.83.83 0 0 0-.3.32L5.62 10.1a.82.82 0 0 0 .73 1.23h8.6a.83.83 0 0 0 .73-1.23Zm-8.45-.12 3.42-6.22 3.42 6.22H7.24Z"/><path d="M11.45 12.28a.67.67 0 0 0-.9.34A3.65 3.65 0 1 1 5.77 7.8a.66.66 0 0 0 .37-.88.67.67 0 0 0-.84-.32 4.99 4.99 0 1 0 6.5 6.6.65.65 0 0 0-.34-.92Z"/></g><defs><clipPath id="clip0_3164_753"><path fill="#fff" d="M2.2 1.85H15.8v14.3H2.2z"/></clipPath></defs>'],["v8Cmd/"+n.c.Undo]:[18,18,'<g clip-path="url(#clip0_3158_857)"><path fill="#000" d="M13.88 6.63a4.52 4.52 0 0 0-3.34-1.48H5.1L6.18 4a.79.79 0 0 0 0-1 .65.65 0 0 0-1 0L2.93 5.39a1 1 0 0 0-.15.24.87.87 0 0 0 0 .57 1 1 0 0 0 .15.24l2.29 2.44a.68.68 0 0 0 .49.23c.1 0 .2-.02.29-.06a.57.57 0 0 0 .22-.16.61.61 0 0 0 .15-.24c.02-.1.02-.2 0-.29a.92.92 0 0 0 0-.28.78.78 0 0 0-.16-.24L5 6.62h5.5a3.22 3.22 0 0 1 2.38 1 3.75 3.75 0 0 1-1.05 5.87c-.4.2-.85.3-1.29.31H4.05a.64.64 0 0 0-.47.21.73.73 0 0 0-.21.52c0 .2.08.39.21.53a.66.66 0 0 0 .47.21h6.49a4.56 4.56 0 0 0 3.34-1.48 5.27 5.27 0 0 0 0-7.16Z"/></g><defs><clipPath id="clip0_3158_857"><path fill="#fff" d="M2.73 2.73h12.54v12.54H2.73z"/></clipPath></defs>'],["v8Cmd/"+n.c.Redo]:[18,18,'<g clip-path="url(#clip0_3164_711)"><path fill="#000" d="M4.12 6.63a4.52 4.52 0 0 1 3.34-1.48h5.44L11.82 4a.79.79 0 0 1 0-1 .65.65 0 0 1 1 0l2.25 2.39a1 1 0 0 1 .15.24.87.87 0 0 1 0 .57 1 1 0 0 1-.15.24l-2.29 2.44a.68.68 0 0 1-.49.23c-.1 0-.2-.02-.29-.06a.57.57 0 0 1-.22-.16.61.61 0 0 1-.15-.24.71.71 0 0 1 0-.29.92.92 0 0 1 0-.28c.04-.09.1-.17.16-.24L13 6.62H7.5a3.22 3.22 0 0 0-2.38 1 3.75 3.75 0 0 0 1.05 5.87c.4.2.85.3 1.29.31h6.49a.64.64 0 0 1 .47.21.73.73 0 0 1 .21.52c0 .2-.08.39-.21.53a.66.66 0 0 1-.47.21H7.46a4.56 4.56 0 0 1-3.34-1.48 5.27 5.27 0 0 1 0-7.16Z"/></g><defs><clipPath id="clip0_3164_711"><path fill="#fff" d="M2.73 2.73h12.54v12.54H2.73z"/></clipPath></defs>'],["v8Cmd/"+n.c.Cut]:[18,18,'<path fill="#000" d="m9.77 7.58.59.85a.16.16 0 0 0 .27 0l3.5-5.04a.61.61 0 0 0 .12-.5.67.67 0 0 0-.27-.42.62.62 0 0 0-.5-.12.68.68 0 0 0-.43.28L9.73 7.35a.16.16 0 0 0 .04.23Z"/><path fill="#000" d="M15.7 11.83a2.7 2.7 0 0 0-4.63-.47L4.95 2.62a.68.68 0 0 0-.69-.27.62.62 0 0 0-.24.11.68.68 0 0 0-.28.43.62.62 0 0 0 .12.5l4.33 6.18-1.26 1.78a2.71 2.71 0 1 0 .53 1.57L9 10.72l1.54 2.2a2.7 2.7 0 1 0 5.17-1.1Zm-9.57 1.25a1.37 1.37 0 0 1-2.16 1 1.37 1.37 0 0 1-.5-1.4c.03-.17.11-.34.22-.48a1.31 1.31 0 0 1 1.85-.35c.2.14.36.32.47.54.1.22.14.46.12.7Zm7.91.99a1.37 1.37 0 0 1-2.1-.83 1.35 1.35 0 0 1 .53-1.4c.19-.14.41-.23.65-.26h.13c.2 0 .4.04.58.13a1.3 1.3 0 0 1 .79 1.12 1.35 1.35 0 0 1-.58 1.24Z"/>'],["v8Cmd/"+n.c.Copy]:[18,18,'<g fill="#000" clip-path="url(#clip0_3164_510)"><path d="M7.73 10.63h1.69v1.69a.6.6 0 0 0 .62.62c.16 0 .32-.07.44-.18a.65.65 0 0 0 .18-.44v-1.7h1.69a.61.61 0 0 0 .44-.18.58.58 0 0 0 .18-.43.62.62 0 0 0-.62-.56h-1.7V7.73a.6.6 0 0 0-.18-.44.58.58 0 0 0-.43-.18.62.62 0 0 0-.58.38.6.6 0 0 0-.04.24v1.69h-1.7a.61.61 0 0 0-.61.62.58.58 0 0 0 .62.59Z"/><path d="M15.47 4.75c-.4-.4-.94-.64-1.5-.66a2.42 2.42 0 0 0-2.4-2.26H4.22a2.39 2.39 0 0 0-2.39 2.39v7.3c0 .61.24 1.2.65 1.64.4.43.94.7 1.51.75a2.25 2.25 0 0 0 2.25 2.25h7.6a2.25 2.25 0 0 0 2.24-2.25V6.34c.01-.6-.2-1.17-.62-1.6ZM5.23 6.34A1.06 1.06 0 0 1 6.3 5.28h7.6a1.06 1.06 0 0 1 1.04 1.06v7.59a1.06 1.06 0 0 1-1.05 1.06h-7.6a1.06 1.06 0 0 1-1.05-1.06v-7.6ZM3.06 4.23c0-.33.13-.63.35-.86.22-.22.52-.34.82-.35h7.31a1.21 1.21 0 0 1 1.2 1.07H6.27a2.25 2.25 0 0 0-2.25 2.25v6.37c-.25-.06-.49-.2-.67-.38-.19-.23-.3-.51-.3-.8v-7.3Z"/></g><defs><clipPath id="clip0_3164_510"><path fill="#fff" d="M1.88 1.83h14.25v14.35H1.88z"/></clipPath></defs>'],["v8Cmd/"+n.c.Past]:[18,18,'<mask id="path-1-outside-1_3164_553" width="15" height="15" x="1.07" y="1.07" fill="#000" maskUnits="userSpaceOnUse"><path fill="#fff" d="M1.07 1.07h15v15h-15z"/><path d="M13.74 14.94a.5.5 0 1 1 0 1h-1.98a.5.5 0 0 1 0-1h1.98Zm-3.96 0a.5.5 0 0 1 0 1H7.8a.5.5 0 0 1 0-1h1.98Zm2.29-12.87a1.98 1.98 0 0 1 1.98 1.98v.86h.32a1.55 1.55 0 0 1 1.55 1.4V6.6a.5.5 0 0 1-.98 0v-.15a.56.56 0 0 0-.57-.55h-.32v6.17a1.98 1.98 0 0 1-1.98 1.98h-6.3v.41a.55.55 0 0 0 .23.37l.07.05.08.05a.5.5 0 1 1-.55.82 1.56 1.56 0 0 1-.8-1.23l-.01-.48h-.74a1.98 1.98 0 0 1-1.98-1.98v-8a1.98 1.98 0 0 1 1.98-1.99h8.02Zm3.36 9.98a.5.5 0 0 1 .5.5v1.84c0 .07 0 .13-.02.2a.5.5 0 0 1-.98-.13.5.5 0 0 0 0-.07v-1.85a.5.5 0 0 1 .5-.5Zm-3.36-9H4.05a.99.99 0 0 0-.98.88v8.12a.99.99 0 0 0 .87 1H12.07a.99.99 0 0 0 .98-.88l.01-.11V4.05a.99.99 0 0 0-.88-.98l-.11-.01Zm3.36 5.03a.5.5 0 0 1 .5.5v1.98a.5.5 0 0 1-1 0V8.58a.5.5 0 0 1 .5-.5Zm-4.2-2.16a.6.6 0 0 1 .08.76l-.07.08-3.46 3.49a.6.6 0 0 1-.75.07l-.08-.07L4.97 8.3a.6.6 0 0 1 .75-.92l.08.07 1.56 1.54 3.04-3.07a.6.6 0 0 1 .84 0Z"/></mask><path fill="#000" d="M13.74 14.94a.5.5 0 1 1 0 1h-1.98a.5.5 0 0 1 0-1h1.98Zm-3.96 0a.5.5 0 0 1 0 1H7.8a.5.5 0 0 1 0-1h1.98Zm2.29-12.87a1.98 1.98 0 0 1 1.98 1.98v.86h.32a1.55 1.55 0 0 1 1.55 1.4V6.6a.5.5 0 0 1-.98 0v-.15a.56.56 0 0 0-.57-.55h-.32v6.17a1.98 1.98 0 0 1-1.98 1.98h-6.3v.41a.55.55 0 0 0 .23.37l.07.05.08.05a.5.5 0 1 1-.55.82 1.56 1.56 0 0 1-.8-1.23l-.01-.48h-.74a1.98 1.98 0 0 1-1.98-1.98v-8a1.98 1.98 0 0 1 1.98-1.99h8.02Zm3.36 9.98a.5.5 0 0 1 .5.5v1.84c0 .07 0 .13-.02.2a.5.5 0 0 1-.98-.13.5.5 0 0 0 0-.07v-1.85a.5.5 0 0 1 .5-.5Zm-3.36-9H4.05a.99.99 0 0 0-.98.88v8.12a.99.99 0 0 0 .87 1H12.07a.99.99 0 0 0 .98-.88l.01-.11V4.05a.99.99 0 0 0-.88-.98l-.11-.01Zm3.36 5.03a.5.5 0 0 1 .5.5v1.98a.5.5 0 0 1-1 0V8.58a.5.5 0 0 1 .5-.5Zm-4.2-2.16a.6.6 0 0 1 .08.76l-.07.08-3.46 3.49a.6.6 0 0 1-.75.07l-.08-.07L4.97 8.3a.6.6 0 0 1 .75-.92l.08.07 1.56 1.54 3.04-3.07a.6.6 0 0 1 .84 0Z"/><path stroke="#000" stroke-opacity=".4" stroke-width=".16" d="M13.74 14.94a.5.5 0 1 1 0 1h-1.98a.5.5 0 0 1 0-1h1.98Zm-3.96 0a.5.5 0 0 1 0 1H7.8a.5.5 0 0 1 0-1h1.98Zm2.29-12.87a1.98 1.98 0 0 1 1.98 1.98v.86h.32a1.55 1.55 0 0 1 1.55 1.4V6.6a.5.5 0 0 1-.98 0v-.15a.56.56 0 0 0-.57-.55h-.32v6.17a1.98 1.98 0 0 1-1.98 1.98h-6.3v.41a.55.55 0 0 0 .23.37l.07.05.08.05a.5.5 0 1 1-.55.82 1.56 1.56 0 0 1-.8-1.23l-.01-.48h-.74a1.98 1.98 0 0 1-1.98-1.98v-8a1.98 1.98 0 0 1 1.98-1.99h8.02Zm3.36 9.98a.5.5 0 0 1 .5.5v1.84c0 .07 0 .13-.02.2a.5.5 0 0 1-.98-.13.5.5 0 0 0 0-.07v-1.85a.5.5 0 0 1 .5-.5Zm-3.36-9H4.05a.99.99 0 0 0-.98.88v8.12a.99.99 0 0 0 .87 1H12.07a.99.99 0 0 0 .98-.88l.01-.11V4.05a.99.99 0 0 0-.88-.98l-.11-.01Zm3.36 5.03a.5.5 0 0 1 .5.5v1.98a.5.5 0 0 1-1 0V8.58a.5.5 0 0 1 .5-.5Zm-4.2-2.16a.6.6 0 0 1 .08.76l-.07.08-3.46 3.49a.6.6 0 0 1-.75.07l-.08-.07L4.97 8.3a.6.6 0 0 1 .75-.92l.08.07 1.56 1.54 3.04-3.07a.6.6 0 0 1 .84 0Z" mask="url(#path-1-outside-1_3164_553)"/>'],["v8Cmd/"+n.c.PastProperties]:[18,18,'<mask id="path-1-outside-1_3164_553" width="15" height="15" x="1.07" y="1.07" fill="#000" maskUnits="userSpaceOnUse"><path fill="#fff" d="M1.07 1.07h15v15h-15z"/><path d="M13.74 14.94a.5.5 0 1 1 0 1h-1.98a.5.5 0 0 1 0-1h1.98Zm-3.96 0a.5.5 0 0 1 0 1H7.8a.5.5 0 0 1 0-1h1.98Zm2.29-12.87a1.98 1.98 0 0 1 1.98 1.98v.86h.32a1.55 1.55 0 0 1 1.55 1.4V6.6a.5.5 0 0 1-.98 0v-.15a.56.56 0 0 0-.57-.55h-.32v6.17a1.98 1.98 0 0 1-1.98 1.98h-6.3v.41a.55.55 0 0 0 .23.37l.07.05.08.05a.5.5 0 1 1-.55.82 1.56 1.56 0 0 1-.8-1.23l-.01-.48h-.74a1.98 1.98 0 0 1-1.98-1.98v-8a1.98 1.98 0 0 1 1.98-1.99h8.02Zm3.36 9.98a.5.5 0 0 1 .5.5v1.84c0 .07 0 .13-.02.2a.5.5 0 0 1-.98-.13.5.5 0 0 0 0-.07v-1.85a.5.5 0 0 1 .5-.5Zm-3.36-9H4.05a.99.99 0 0 0-.98.88v8.12a.99.99 0 0 0 .87 1H12.07a.99.99 0 0 0 .98-.88l.01-.11V4.05a.99.99 0 0 0-.88-.98l-.11-.01Zm3.36 5.03a.5.5 0 0 1 .5.5v1.98a.5.5 0 0 1-1 0V8.58a.5.5 0 0 1 .5-.5Zm-4.2-2.16a.6.6 0 0 1 .08.76l-.07.08-3.46 3.49a.6.6 0 0 1-.75.07l-.08-.07L4.97 8.3a.6.6 0 0 1 .75-.92l.08.07 1.56 1.54 3.04-3.07a.6.6 0 0 1 .84 0Z"/></mask><path fill="#000" d="M13.74 14.94a.5.5 0 1 1 0 1h-1.98a.5.5 0 0 1 0-1h1.98Zm-3.96 0a.5.5 0 0 1 0 1H7.8a.5.5 0 0 1 0-1h1.98Zm2.29-12.87a1.98 1.98 0 0 1 1.98 1.98v.86h.32a1.55 1.55 0 0 1 1.55 1.4V6.6a.5.5 0 0 1-.98 0v-.15a.56.56 0 0 0-.57-.55h-.32v6.17a1.98 1.98 0 0 1-1.98 1.98h-6.3v.41a.55.55 0 0 0 .23.37l.07.05.08.05a.5.5 0 1 1-.55.82 1.56 1.56 0 0 1-.8-1.23l-.01-.48h-.74a1.98 1.98 0 0 1-1.98-1.98v-8a1.98 1.98 0 0 1 1.98-1.99h8.02Zm3.36 9.98a.5.5 0 0 1 .5.5v1.84c0 .07 0 .13-.02.2a.5.5 0 0 1-.98-.13.5.5 0 0 0 0-.07v-1.85a.5.5 0 0 1 .5-.5Zm-3.36-9H4.05a.99.99 0 0 0-.98.88v8.12a.99.99 0 0 0 .87 1H12.07a.99.99 0 0 0 .98-.88l.01-.11V4.05a.99.99 0 0 0-.88-.98l-.11-.01Zm3.36 5.03a.5.5 0 0 1 .5.5v1.98a.5.5 0 0 1-1 0V8.58a.5.5 0 0 1 .5-.5Zm-4.2-2.16a.6.6 0 0 1 .08.76l-.07.08-3.46 3.49a.6.6 0 0 1-.75.07l-.08-.07L4.97 8.3a.6.6 0 0 1 .75-.92l.08.07 1.56 1.54 3.04-3.07a.6.6 0 0 1 .84 0Z"/><path stroke="#000" stroke-opacity=".4" stroke-width=".16" d="M13.74 14.94a.5.5 0 1 1 0 1h-1.98a.5.5 0 0 1 0-1h1.98Zm-3.96 0a.5.5 0 0 1 0 1H7.8a.5.5 0 0 1 0-1h1.98Zm2.29-12.87a1.98 1.98 0 0 1 1.98 1.98v.86h.32a1.55 1.55 0 0 1 1.55 1.4V6.6a.5.5 0 0 1-.98 0v-.15a.56.56 0 0 0-.57-.55h-.32v6.17a1.98 1.98 0 0 1-1.98 1.98h-6.3v.41a.55.55 0 0 0 .23.37l.07.05.08.05a.5.5 0 1 1-.55.82 1.56 1.56 0 0 1-.8-1.23l-.01-.48h-.74a1.98 1.98 0 0 1-1.98-1.98v-8a1.98 1.98 0 0 1 1.98-1.99h8.02Zm3.36 9.98a.5.5 0 0 1 .5.5v1.84c0 .07 0 .13-.02.2a.5.5 0 0 1-.98-.13.5.5 0 0 0 0-.07v-1.85a.5.5 0 0 1 .5-.5Zm-3.36-9H4.05a.99.99 0 0 0-.98.88v8.12a.99.99 0 0 0 .87 1H12.07a.99.99 0 0 0 .98-.88l.01-.11V4.05a.99.99 0 0 0-.88-.98l-.11-.01Zm3.36 5.03a.5.5 0 0 1 .5.5v1.98a.5.5 0 0 1-1 0V8.58a.5.5 0 0 1 .5-.5Zm-4.2-2.16a.6.6 0 0 1 .08.76l-.07.08-3.46 3.49a.6.6 0 0 1-.75.07l-.08-.07L4.97 8.3a.6.6 0 0 1 .75-.92l.08.07 1.56 1.54 3.04-3.07a.6.6 0 0 1 .84 0Z" mask="url(#path-1-outside-1_3164_553)"/>'],["v8Cmd/"+n.c.ComSelectAll]:[18,18,'<path fill="#000" fill-rule="evenodd" d="M3.2 3.15v-.03h7.13c.08 0 .15 0 .23-.03a.6.6 0 0 0 .26-.98.61.61 0 0 0-.47-.2H8.98a6259 6259 0 0 0-6 0c-.63.12-1.06.65-1.04 1.25v6.87a.63.63 0 1 0 1.25 0V3.14Zm3.6 3.47h8.01V9.9a.62.62 0 0 0 .7.63c.33-.04.55-.29.55-.6V6.62A1.23 1.23 0 0 0 14.8 5.4H6.83c-.1 0-.2 0-.3.03-.6.13-.98.65-.97 1.22v6.87c0 .43.17.76.51 1 .23.18.5.25.79.25H9.4c.24-.03.46-.21.52-.46a.6.6 0 0 0-.23-.64.66.66 0 0 0-.4-.12H6.9a.9.9 0 0 1-.06 0H6.8V6.61ZM5 4.87v.1a28385.6 28385.6 0 0 1-.03 6.97.62.62 0 0 1-.6.47.62.62 0 0 1-.63-.65 7538.9 7538.9 0 0 1 0-6.06v-.79A1.24 1.24 0 0 1 5 3.65h7.16a.62.62 0 0 1 .58.4.6.6 0 0 1-.44.8 3451.98 3451.98 0 0 1-4.26.02H5Zm7.4 8.24v-.07l.02.01.03.04 1.06 1.83.16.27.35.58c.24.42.83.44 1.1.05a.64.64 0 0 0 .04-.72l-.19-.32-.09-.15-1.31-2.25a1.11 1.11 0 0 1-.04-.07l.06.02.28.17.37.22c.16.1.34.13.52.08a.63.63 0 0 0 .48-.54.63.63 0 0 0-.31-.67l-1.57-.95a618.13 618.13 0 0 1-1.27-.76.66.66 0 0 0-.56-.07.66.66 0 0 0-.46.63v3.58a.66.66 0 0 0 1.2.39.66.66 0 0 0 .12-.4 81.05 81.05 0 0 0 0-.9Z" clip-rule="evenodd"/>'],["v8Cmd/"+n.c.GlobalFind]:[18,18,'<path fill="#000" d="m14.92 14.47-1.88-2.15.1-.1a5.9 5.9 0 0 0 1.07-1.65 6.02 6.02 0 0 0 0-4.58 5.91 5.91 0 0 0-9.58-1.87 5.91 5.91 0 0 0-1.27 6.45A6 6 0 0 0 6.5 13.7a5.92 5.92 0 0 0 5.36-.42l.12-.08 1.9 2.18a.72.72 0 0 0 .98.06.68.68 0 0 0 .06-.97Zm-1.99-4.43a4.52 4.52 0 0 1-7.33 1.43 4.48 4.48 0 0 1 3.2-7.68 4.57 4.57 0 0 1 3.17 1.3 4.46 4.46 0 0 1 .96 4.94Z"/>'],["v8Cmd/"+n.c.GlobalReplace]:[18,18,'<path fill="#000" d="m14.92 14.47-1.88-2.15.1-.1a5.9 5.9 0 0 0 1.07-1.65 6.02 6.02 0 0 0 0-4.58 5.91 5.91 0 0 0-9.58-1.87 5.91 5.91 0 0 0-1.27 6.45A6 6 0 0 0 6.5 13.7a5.92 5.92 0 0 0 5.36-.42l.12-.08 1.9 2.18a.72.72 0 0 0 .98.06.68.68 0 0 0 .06-.97Zm-1.99-4.43a4.52 4.52 0 0 1-7.33 1.43 4.48 4.48 0 0 1 3.2-7.68 4.57 4.57 0 0 1 3.17 1.3 4.46 4.46 0 0 1 .96 4.94Z"/>'],["v8Cmd/"+n.c.ToggleHandTool]:[18,18,'<g clip-path="url(#clip0_3158_967)"><path fill="#000" d="M10.54 15.83a4.68 4.68 0 0 0 4.36-4.73V6.69a1.59 1.59 0 0 0-1.56-1.61h-.3v-.31a1.63 1.63 0 0 0-2.08-1.58h-.1.08A1.78 1.78 0 0 0 9.3 2.12a1.67 1.67 0 0 0-1.56 1.09l-.09.24.07-.22a1.63 1.63 0 0 0-2.16 1.54v3.21a2 2 0 0 0-.6-.09h-.05a1.8 1.8 0 0 0-.97.32 1.93 1.93 0 0 0-.5 2.63l1.28 2 .58.79a5.39 5.39 0 0 0 3.66 2.21H9.88l.65-.01Zm-.92-1.25a4.12 4.12 0 0 1-3.33-1.71l-.56-.77-1.28-2a.6.6 0 0 1 .16-.83.57.57 0 0 1 .8.14l.26.36.08.15a.63.63 0 0 0 .86.24.67.67 0 0 0 .23-.89v-4.5a.36.36 0 0 1 .35-.36.44.44 0 0 1 .44.4v4.28a.63.63 0 1 0 1.25 0V3.86a.44.44 0 0 1 .43-.45.52.52 0 0 1 .52.53V9.1a.63.63 0 1 0 1.26 0V4.77a.36.36 0 0 1 .35-.36.35.35 0 0 1 .35.36V9.1a.64.64 0 0 0 .63.65.64.64 0 0 0 .63-.65V6.69a.31.31 0 1 1 .61 0v4.41a3.41 3.41 0 0 1-3.19 3.44h-.63l-.22.04Z"/></g><defs><clipPath id="clip0_3158_967"><path fill="#fff" d="M3.1 2.12h11.8v13.76H3.1z"/></clipPath></defs>'],["v8Cmd/"+n.c.ToggleExport]:[18,18,'<g fill="#000" clip-path="url(#clip0_3164_743)"><path d="m6.15 8.94 2.23 2.57c.07.08.13.16.21.22.3.22.7.16.95-.12a302.2 302.2 0 0 1 2.9-3.35l.4-.47a.69.69 0 0 0-.14-.96.7.7 0 0 0-.97.11L9.81 9.16l-.11.13V3.01c0-.05 0-.1-.02-.15a.7.7 0 0 0-1.38.16V9.28l-.08-.09-1.96-2.26a.7.7 0 0 0-1.2.68.7.7 0 0 0 .14.24l.95 1.09Z"/><path d="M15.7 11.72a.7.7 0 1 0-1.4 0v1.05c0 .1 0 .21-.02.31-.13.7-.75 1.22-1.46 1.22H5.21c-.1 0-.2 0-.31-.03a1.48 1.48 0 0 1-1.2-1.47v-1.06a.7.7 0 0 0-.56-.71.7.7 0 0 0-.84.67v1.11a2.85 2.85 0 0 0 1.07 2.24c.52.43 1.1.64 1.77.65h7.66a2.8 2.8 0 0 0 2.17-.96c.47-.54.71-1.16.73-1.87v-1.15Z"/></g><defs><clipPath id="clip0_3164_743"><path fill="#fff" d="M2.3 2.3h13.4v13.4H2.3z"/></clipPath></defs>'],["v8Cmd/"+n.c.Preview]:[18,18,'<path fill="#000" d="M13.27 8.02 6.8 2.87a1.6 1.6 0 0 0-1.74-.2 1.64 1.64 0 0 0-.94 1.48v9.7a1.66 1.66 0 0 0 2.6 1.36l6.46-4.58a1.66 1.66 0 0 0 .1-2.64v.03Zm-.97 1.37-6.66 4.65V3.9l.26.22 6.52 5.18-.12.1Z"/>'],["v8Cmd/"+n.c.AddComponent]:[18,18,'<path fill="#000" fill-rule="evenodd" d="M9.43 1.53a.87.87 0 0 0-.86 0L2.58 4.95a.65.65 0 0 0-.33.57v6.84c0 .31.17.6.44.76l5.87 3.35c.28.16.63.15.9-.02l5.89-3.79c.25-.16.4-.43.4-.73V5.64c0-.3-.17-.6-.44-.75L9.43 1.53ZM3.56 6.4c0-.31.16-.6.44-.75l4.57-2.62c.27-.15.6-.15.86 0L14 5.65c.28.15.44.44.44.75v4.82c0 .3-.15.57-.4.73l-4.62 2.97a.87.87 0 0 1-.9.02L4 12.36a.87.87 0 0 1-.44-.76V6.4Zm1.96 1.23L8.23 9.4v3.08h1.53V9.4l2.72-1.77-.85-1.24L9 8.1 6.36 6.4l-.84 1.24Z" clip-rule="evenodd"/>'],["v8Cmd/"+n.c.CreateMaster]:[18,18,'<path fill="#000" fill-rule="evenodd" d="M7.25 4.67 9 2.92l1.75 1.75L9 6.4 7.25 4.67Zm2.5-2.86a1.07 1.07 0 0 0-1.5 0l-2.1 2.1c-.42.42-.42 1.1 0 1.51l2.1 2.1c.41.42 1.09.42 1.5 0l2.1-2.1c.42-.41.42-1.1 0-1.51l-2.1-2.1Zm1.84 7.52 1.74-1.74 1.75 1.74-1.75 1.75-1.74-1.75Zm2.5-2.85a1.07 1.07 0 0 0-1.51 0l-2.1 2.1c-.42.41-.42 1.1 0 1.51l2.1 2.1c.41.41 1.1.41 1.51 0l2.1-2.1c.41-.42.41-1.1 0-1.51l-2.1-2.1ZM9 11.58l-1.75 1.75L9 15.08l1.75-1.75L9 11.6Zm-.76-1.1c.42-.42 1.1-.42 1.52 0l2.1 2.1c.41.41.41 1.1 0 1.51l-2.1 2.1c-.42.41-1.1.41-1.52 0l-2.1-2.1a1.07 1.07 0 0 1 0-1.51l2.1-2.1ZM2.92 9l1.75-1.75L6.4 9l-1.74 1.75L2.92 9Zm2.5-2.85a1.07 1.07 0 0 0-1.51 0l-2.1 2.1c-.41.41-.41 1.09 0 1.5l2.1 2.1c.42.42 1.1.42 1.51 0l2.1-2.1c.42-.41.42-1.09 0-1.5l-2.1-2.1Z" clip-rule="evenodd"/>'],["v8Cmd/"+n.c.CreatePanel]:[18,18,'<g fill="#000" clip-path="url(#clip0_3158_1024)"><path d="M9.36 10.38h-.24c-.15 0-.3-.03-.44-.08l-.37-.12-5.74 5.09h5.84a2 2 0 0 0 1.29-.47l1.81-2.5.05-.08-2.17-1.82-.03-.02Zm.43 2.06-1 1.39c-.1.1-.24.16-.38.17H6.06l2.58-2.34h.23l.92.78ZM3.3 9.59l2.52 1.8.07.06 1.82-2.19V9c0-.15.02-.3.07-.44l.12-.37-4.91-5.51-.17-.19v5.8a2 2 0 0 0 .47 1.28l.01.02ZM7.64 9c0-.16.02-.32.07-.48l.11-.31-.11.3c-.05.16-.07.32-.07.49Zm-1.12-.22v-.25.29-.04Zm-.1 0-.76.88-1.4-1a.63.63 0 0 1-.08-.37V6l2.27 2.52-.03.26Zm-3.06.72v.06l.24.14-.19-.14V9.5a1.88 1.88 0 0 1-.23-.23c.05.08.11.16.18.23ZM8.48 7.72l.37-.07c.24-.06.48-.06.72 0l.39.14L14.9 2.9l.17-.17H9.83a2 2 0 0 0-1.28.47L6.71 5.72l1.73 2h.04Zm1.13-1.38h-.62l-.58-.66 1-1.46a.64.64 0 0 1 .38-.12h2L9.61 6.34Zm-.6.07L8.59 6l.36.41h.06Zm-.5 1.2.32-.06h.29-.29l-.32.06ZM14.93 8.39l-2.1-2-.07-.06-2.31 2 .08.38a2.13 2.13 0 0 1-.07.7l-.12.37 4.94 5.51.17.19V9.71a2 2 0 0 0-.52-1.32Zm-3.09.49.88-.77 1.23 1.18c.1.12.15.27.15.42v2.34l-2.3-2.57a2.6 2.6 0 0 0 0-.48l.04-.12Zm-.1.19a3.41 3.41 0 0 1 0-.07v.07Zm-1.31.72.1-.31-.1.3 2.62 2.92-2.62-2.91Zm3.75-.08a.74.74 0 0 0-.18-.49L12.75 8l1.27 1.22c.11.14.17.31.16.49Z"/></g><defs><clipPath id="clip0_3158_1024"><path fill="#fff" d="M2.57 2.49h12.86v13.02H2.57z"/></clipPath></defs>'],["v8Cmd/"+n.c.TogglePageTransState]:[18,18,'<g fill="#000" clip-path="url(#clip0_3158_1027)"><path d="M14.86 7.5a2.1 2.1 0 0 0-2-.54c-.74.17-1.26.63-1.53 1.35l-.03.05H3.18l-.12.01a.64.64 0 0 0-.26 1.17c.11.07.24.1.37.1h8.11a.03.03 0 0 1 .04.02v.04c.13.32.3.6.56.82.59.53 1.27.7 2.04.5a2.09 2.09 0 0 0 .94-3.52Zm-.92 2.1c-.34.32-.9.3-1.22-.05a.82.82 0 0 1 .15-1.24.9.9 0 0 1 .52-.14c.27 0 .52.13.69.39a.8.8 0 0 1-.14 1.04ZM15.3 12.93a.62.62 0 0 0-.46-.17H10.6l-.02-.05c-.27-.77-1-1.36-1.9-1.41a2.14 2.14 0 0 0-2.25 2.4c.07.49.29.9.65 1.23.55.49 1.19.67 1.9.52a2.07 2.07 0 0 0 1.62-1.42h4.37c.25-.06.42-.2.5-.45a.6.6 0 0 0-.18-.65Zm-6.15 1.05a.87.87 0 0 1-1.4-.3.83.83 0 0 1 .6-1.1c.33-.06.62.02.85.27a.8.8 0 0 1-.05 1.13ZM8.25 6.1c.54.5 1.2.7 1.92.56a2.08 2.08 0 0 0 1.56-1.25l.07-.17h3.15a.64.64 0 0 0 .54-.56.64.64 0 0 0-.67-.71h-2.95c-.09 0-.07 0-.1-.07a2.12 2.12 0 0 0-1.86-1.4 2.1 2.1 0 0 0-1.2.26 2.08 2.08 0 0 0-.46 3.34ZM9.16 4c.34-.32.9-.3 1.22.04a.82.82 0 0 1-.33 1.34c-.1.03-.2.05-.3.05a.84.84 0 0 1-.68-.33.8.8 0 0 1 .1-1.1ZM3.16 5.24H7.1V3.97H3.11a.6.6 0 0 0-.55.38.6.6 0 0 0 .1.67c.13.15.3.22.5.22ZM3.14 12.76a.64.64 0 0 0-.64.62c0 .35.28.65.63.65H5.89v-1.27H3.14Z"/></g><defs><clipPath id="clip0_3158_1027"><path fill="#fff" d="M2.5 2.5h13v13h-13z"/></clipPath></defs>'],["v8Cmd/"+n.c.TogglePanelTransState]:[18,18,'<g fill="#000" clip-path="url(#clip0_3158_1027)"><path d="M14.86 7.5a2.1 2.1 0 0 0-2-.54c-.74.17-1.26.63-1.53 1.35l-.03.05H3.18l-.12.01a.64.64 0 0 0-.26 1.17c.11.07.24.1.37.1h8.11a.03.03 0 0 1 .04.02v.04c.13.32.3.6.56.82.59.53 1.27.7 2.04.5a2.09 2.09 0 0 0 .94-3.52Zm-.92 2.1c-.34.32-.9.3-1.22-.05a.82.82 0 0 1 .15-1.24.9.9 0 0 1 .52-.14c.27 0 .52.13.69.39a.8.8 0 0 1-.14 1.04ZM15.3 12.93a.62.62 0 0 0-.46-.17H10.6l-.02-.05c-.27-.77-1-1.36-1.9-1.41a2.14 2.14 0 0 0-2.25 2.4c.07.49.29.9.65 1.23.55.49 1.19.67 1.9.52a2.07 2.07 0 0 0 1.62-1.42h4.37c.25-.06.42-.2.5-.45a.6.6 0 0 0-.18-.65Zm-6.15 1.05a.87.87 0 0 1-1.4-.3.83.83 0 0 1 .6-1.1c.33-.06.62.02.85.27a.8.8 0 0 1-.05 1.13ZM8.25 6.1c.54.5 1.2.7 1.92.56a2.08 2.08 0 0 0 1.56-1.25l.07-.17h3.15a.64.64 0 0 0 .54-.56.64.64 0 0 0-.67-.71h-2.95c-.09 0-.07 0-.1-.07a2.12 2.12 0 0 0-1.86-1.4 2.1 2.1 0 0 0-1.2.26 2.08 2.08 0 0 0-.46 3.34ZM9.16 4c.34-.32.9-.3 1.22.04a.82.82 0 0 1-.33 1.34c-.1.03-.2.05-.3.05a.84.84 0 0 1-.68-.33.8.8 0 0 1 .1-1.1ZM3.16 5.24H7.1V3.97H3.11a.6.6 0 0 0-.55.38.6.6 0 0 0 .1.67c.13.15.3.22.5.22ZM3.14 12.76a.64.64 0 0 0-.64.62c0 .35.28.65.63.65H5.89v-1.27H3.14Z"/></g><defs><clipPath id="clip0_3158_1027"><path fill="#fff" d="M2.5 2.5h13v13h-13z"/></clipPath></defs>'],["v8Cmd/"+n.c.Delete]:[18,18,'<g fill="#000" clip-path="url(#clip0_3158_1042)"><path d="M15.5 4.26a.71.71 0 0 0-.43-.14H3.04a.75.75 0 0 0-.48.18.61.61 0 0 0 0 .92c.13.11.3.18.48.18h.58v8.46a2 2 0 0 0 2.13 1.94h6.5a2 2 0 0 0 2.14-1.94v-7.3a.64.64 0 0 0-.21-.46.77.77 0 0 0-1 0 .63.63 0 0 0-.2.46v7.15a.65.65 0 0 1-.22.46 1 1 0 0 1-.24.15 1 1 0 0 1-.3.05h-6.5c-.1 0-.2-.02-.29-.05a1 1 0 0 1-.25-.15.83.83 0 0 1-.16-.21.74.74 0 0 1-.05-.25V5.26h10c.18 0 .35-.07.48-.18a.6.6 0 0 0 .21-.46.59.59 0 0 0-.16-.36Z"/><path d="M7.07 7.4a.63.63 0 0 0-.2.46v3.9a.65.65 0 0 0 .2.46c.14.11.31.18.49.18s.35-.07.48-.18a.62.62 0 0 0 .21-.46v-3.9a.64.64 0 0 0-.21-.46.77.77 0 0 0-.97 0ZM9.96 7.4a.63.63 0 0 0-.2.46v3.9a.65.65 0 0 0 .2.46.74.74 0 0 0 1 0 .62.62 0 0 0 .21-.46v-3.9a.64.64 0 0 0-.21-.46.77.77 0 0 0-1 0ZM7.56 3.62h2.89a.7.7 0 0 0 .59-.37.6.6 0 0 0-.1-.67l-.05-.05h-.05a.7.7 0 0 0-.42-.13H7.56a.68.68 0 0 0-.48.18.58.58 0 0 0-.21.45.61.61 0 0 0 .2.46c.14.1.32.15.49.13Z"/></g><defs><clipPath id="clip0_3158_1042"><path fill="#fff" d="M2.35 2.35h13.3v13.3H2.35z"/></clipPath></defs>'],["v8Cmd/"+n.c.SearchMktSource]:[18,18,'<path fill="#000" d="m14.92 14.47-1.88-2.15.1-.1a5.9 5.9 0 0 0 1.07-1.65 6.02 6.02 0 0 0 0-4.58 5.91 5.91 0 0 0-9.58-1.87 5.91 5.91 0 0 0-1.27 6.45A6 6 0 0 0 6.5 13.7a5.92 5.92 0 0 0 5.36-.42l.12-.08 1.9 2.18a.72.72 0 0 0 .98.06.68.68 0 0 0 .06-.97Zm-1.99-4.43a4.52 4.52 0 0 1-7.33 1.43 4.48 4.48 0 0 1 3.2-7.68 4.57 4.57 0 0 1 3.17 1.3 4.46 4.46 0 0 1 .96 4.94Z"/>'],["v8Cmd/"+n.c.CategoryPreference]:[18,18,'<g fill="#000" clip-path="url(#clip0_3158_1027)"><path d="M14.86 7.5a2.1 2.1 0 0 0-2-.54c-.74.17-1.26.63-1.53 1.35l-.03.05H3.18l-.12.01a.64.64 0 0 0-.26 1.17c.11.07.24.1.37.1h8.11a.03.03 0 0 1 .04.02v.04c.13.32.3.6.56.82.59.53 1.27.7 2.04.5a2.09 2.09 0 0 0 .94-3.52Zm-.92 2.1c-.34.32-.9.3-1.22-.05a.82.82 0 0 1 .15-1.24.9.9 0 0 1 .52-.14c.27 0 .52.13.69.39a.8.8 0 0 1-.14 1.04ZM15.3 12.93a.62.62 0 0 0-.46-.17H10.6l-.02-.05c-.27-.77-1-1.36-1.9-1.41a2.14 2.14 0 0 0-2.25 2.4c.07.49.29.9.65 1.23.55.49 1.19.67 1.9.52a2.07 2.07 0 0 0 1.62-1.42h4.37c.25-.06.42-.2.5-.45a.6.6 0 0 0-.18-.65Zm-6.15 1.05a.87.87 0 0 1-1.4-.3.83.83 0 0 1 .6-1.1c.33-.06.62.02.85.27a.8.8 0 0 1-.05 1.13ZM8.25 6.1c.54.5 1.2.7 1.92.56a2.08 2.08 0 0 0 1.56-1.25l.07-.17h3.15a.64.64 0 0 0 .54-.56.64.64 0 0 0-.67-.71h-2.95c-.09 0-.07 0-.1-.07a2.12 2.12 0 0 0-1.86-1.4 2.1 2.1 0 0 0-1.2.26 2.08 2.08 0 0 0-.46 3.34ZM9.16 4c.34-.32.9-.3 1.22.04a.82.82 0 0 1-.33 1.34c-.1.03-.2.05-.3.05a.84.84 0 0 1-.68-.33.8.8 0 0 1 .1-1.1ZM3.16 5.24H7.1V3.97H3.11a.6.6 0 0 0-.55.38.6.6 0 0 0 .1.67c.13.15.3.22.5.22ZM3.14 12.76a.64.64 0 0 0-.64.62c0 .35.28.65.63.65H5.89v-1.27H3.14Z"/></g><defs><clipPath id="clip0_3158_1027"><path fill="#fff" d="M2.5 2.5h13v13h-13z"/></clipPath></defs>'],["v8Cmd/"+n.c.CategoryLayoutView]:[18,18,'<g clip-path="url(#clip0_3154_473)"><path fill="#000" d="M14.15 2.83H3.85a1.6 1.6 0 0 0-1.6 1.6v9.18a1.6 1.6 0 0 0 1.6 1.6h10.3a1.6 1.6 0 0 0 1.6-1.6V4.4a1.6 1.6 0 0 0-1.6-1.58Zm-8 11.07h-2.3a.29.29 0 0 1-.3-.3V4.42a.29.29 0 0 1 .3-.3H6.1l.05 9.8Zm8.35-.3a.29.29 0 0 1-.3.3H7.4V9.46h7l.1 4.14Zm0-5.42h-7V4.11h6.75a.29.29 0 0 1 .3.3l-.05 3.77Z"/></g><defs><clipPath id="clip0_3154_473"><path fill="#fff" d="M2.25 2.81h13.5v12.37H2.25z"/></clipPath></defs>'],["v8Cmd/"+n.c.LinkDisplayChange]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1042)"><path d="M14.86 7.5a2.1 2.1 0 0 0-2-.54c-.74.17-1.26.63-1.53 1.35l-.03.05H3.18l-.12.01a.64.64 0 0 0-.26 1.17c.11.07.24.1.37.1h8.11a.03.03 0 0 1 .04.02v.04c.13.32.3.6.56.82.59.53 1.27.7 2.04.5a2.09 2.09 0 0 0 .94-3.52Zm-.92 2.1c-.34.32-.9.3-1.22-.05a.82.82 0 0 1 .15-1.24.9.9 0 0 1 .52-.14c.27 0 .52.13.69.39a.8.8 0 0 1-.14 1.04ZM15.3 12.93a.62.62 0 0 0-.46-.17H10.6l-.02-.05c-.27-.77-1-1.36-1.9-1.41a2.14 2.14 0 0 0-2.25 2.4c.07.49.29.9.65 1.23.55.49 1.19.67 1.9.52.78-.16 1.3-.62 1.6-1.36l.02-.06h4.37c.25-.06.42-.2.5-.45a.6.6 0 0 0-.18-.65Zm-6.14 1.05a.87.87 0 0 1-1.41-.3.83.83 0 0 1 .6-1.1c.33-.06.62.02.85.27a.8.8 0 0 1-.04 1.13ZM8.25 6.1c.54.5 1.2.7 1.92.56a2.08 2.08 0 0 0 1.56-1.25l.07-.17h3.15a.64.64 0 0 0 .54-.56.64.64 0 0 0-.67-.71h-2.95c-.09 0-.07 0-.1-.07a2.12 2.12 0 0 0-1.86-1.4 2.1 2.1 0 0 0-1.2.26 2.08 2.08 0 0 0-.46 3.34ZM9.16 4c.34-.32.9-.3 1.22.04a.82.82 0 0 1-.33 1.34c-.1.03-.2.05-.3.05a.84.84 0 0 1-.68-.33.8.8 0 0 1 .1-1.1ZM3.16 5.24H7.1V3.97H3.11a.6.6 0 0 0-.55.38.6.6 0 0 0 .1.67c.13.15.3.22.5.22ZM3.14 12.76a.64.64 0 0 0-.64.62c0 .35.28.65.63.65H5.89v-1.27H3.14Z"/></g><defs><clipPath id="clip0_3168_1042"><path fill="#fff" d="M2.5 2.5h13v13h-13z"/></clipPath></defs>'],["v8Cmd/"+n.c.ToggleEyedropper]:[18,18,'<path fill="#000" d="M15.27 2.74a1.96 1.96 0 0 0-2.75.16l-2 2.01-.05.05-1.35-1.3a1.43 1.43 0 0 0-1.99 0 1.4 1.4 0 0 0 0 1.98l.9.87-4.8 4.8-.13.14c-1.04 1.17-1.14 2.75-.22 3.67a2.2 2.2 0 0 0 1.58.62h.3a3.26 3.26 0 0 0 1.93-.96l4.8-4.8.9.91a1.41 1.41 0 0 0 2-2l-1.34-1.36.04-.05 2-2.01.1-.1a1.94 1.94 0 0 0 .08-2.63ZM4.5 14.59a1.06 1.06 0 0 1-.77-.3A1.55 1.55 0 0 1 4 12.24l5.2-5.2 1.76 1.83-5.08 5.09a2.1 2.1 0 0 1-1.4.64h.03Z"/>'],["v8Cmd/"+n.c.ToggleSelectMode]:[18,18,'<path fill="#000" fill-rule="evenodd" d="M3.2 3.15v-.03h7.13c.08 0 .15 0 .23-.03a.6.6 0 0 0 .26-.98.61.61 0 0 0-.47-.2H8.98a6258.98 6258.98 0 0 0-6 0c-.63.12-1.06.65-1.04 1.25v6.87a.63.63 0 1 0 1.25 0V3.2a1 1 0 0 1 0-.06Zm3.6 3.47h8.01V9.9a.62.62 0 0 0 .7.63c.33-.04.55-.29.55-.6V6.62A1.23 1.23 0 0 0 14.8 5.4H6.83c-.1 0-.2 0-.3.03-.59.13-.98.65-.97 1.22v6.87c0 .43.18.76.51 1 .23.18.5.25.79.25H9.4c.24-.03.46-.21.52-.46a.6.6 0 0 0-.23-.64.66.66 0 0 0-.4-.12H6.9a.9.9 0 0 1-.06 0H6.8V6.61ZM5 4.87v.1a28385.6 28385.6 0 0 1-.03 6.97.62.62 0 0 1-.6.47.62.62 0 0 1-.63-.65 7538.9 7538.9 0 0 1 0-6.06v-.79A1.24 1.24 0 0 1 5 3.65h7.16a.62.62 0 0 1 .58.4.6.6 0 0 1-.44.8 3451.95 3451.95 0 0 1-4.26.02H5Zm7.4 8.24v-.07l.02.01.03.04 1.06 1.83.16.27.35.58c.24.42.83.44 1.1.05a.64.64 0 0 0 .04-.72l-.19-.32-.09-.15-1.31-2.25-.03-.05v-.02l.06.02.27.17.38.22c.16.1.33.13.5.08a.63.63 0 0 0 .49-.54.63.63 0 0 0-.31-.67l-1.57-.95a803.81 803.81 0 0 1-1.27-.76.66.66 0 0 0-.56-.07.66.66 0 0 0-.46.63 424.71 424.71 0 0 0 0 3.58.66.66 0 0 0 1.2.39.66.66 0 0 0 .12-.4 86.84 86.84 0 0 0 0-.9Z" clip-rule="evenodd"/>'],["v8Cmd/"+n.c.CategoryCanvas]:[18,18,'<path fill="#000" fill-rule="evenodd" d="M3.85 2.81c-.88 0-1.6.72-1.6 1.6v9.17c0 .89.72 1.6 1.6 1.6h10.3c.88 0 1.6-.71 1.6-1.6V4.41c0-.88-.72-1.6-1.6-1.6H3.85Zm.12 2.5a.6.6 0 0 0-.6.6v7.47c0 .33.27.6.6.6h10.05a.6.6 0 0 0 .6-.6V5.9a.6.6 0 0 0-.6-.6H3.97Z" clip-rule="evenodd"/>'],["v8Cmd/"+n.c.CategoryPage]:[18,18,'<g clip-path="url(#clip0_3154_505)"><path fill="#000" d="m13.83 4.87-1.91-2.12a2 2 0 0 0-1.45-.65H5.61a2.08 2.08 0 0 0-2 2.15v9.5a2.08 2.08 0 0 0 2 2.15h6.78a2.08 2.08 0 0 0 2-2.15V6.37c0-.55-.2-1.09-.56-1.5Zm-.73 8.88a.79.79 0 0 1-.71.85H5.61a.79.79 0 0 1-.71-.85v-9.5a.79.79 0 0 1 .71-.85h3.6v2.85a1.61 1.61 0 0 0 1.55 1.65h2.34v5.85Zm0-7.15h-2.34c-.13 0-.25-.16-.25-.35V3.4a.64.64 0 0 1 .44.23l1.92 2.12c.15.17.23.4.23.62v.23Z"/></g><defs><clipPath id="clip0_3154_505"><path fill="#fff" d="M3.6 2.1h10.8v13.8H3.6z"/></clipPath></defs>'],["v8Cmd/"+n.c.CategoryLayer]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1154)"><path d="M9 2.17c.11 0 .22.04.32.1a581.6 581.6 0 0 0 4.52 2.45c.38.2.77.4 1.14.62.23.12.33.33.33.58 0 .26-.11.46-.33.58l-1.47.8-1.5.8-1.6.88-1.12.6a.6.6 0 0 1-.6-.01l-1-.54a947.61 947.61 0 0 0-3.68-2L3 6.5a.63.63 0 0 1-.33-.62c.02-.28.17-.46.41-.6.59-.3 1.16-.62 1.75-.94l1.73-.94a1872.05 1872.05 0 0 0 2.15-1.16.57.57 0 0 1 .28-.07Zm4.33 3.75-.04-.02-.7-.38-1.85-1A5416.11 5416.11 0 0 1 9 3.58l-.04.01A363.83 363.83 0 0 1 4.9 5.8l-.25.12.04.02.62.34A1436.03 1436.03 0 0 0 9 8.25l.04-.01a491.7 491.7 0 0 1 3-1.63l1.06-.57.23-.12Z"/><path d="M9 12.74a.6.6 0 0 1-.3-.08l-.89-.48a4740.74 4740.74 0 0 0-4.42-2.4l-.36-.19a.64.64 0 0 1-.35-.6c0-.25.11-.45.34-.58.18-.1.37-.1.55 0l1.5.8a1087 1087 0 0 0 3.86 2.1c.05.02.08.03.13 0a363.55 363.55 0 0 1 3.62-1.96l1.74-.94a.6.6 0 0 1 .81.25.7.7 0 0 1-.09.8c-.07.08-.16.12-.26.17l-2.44 1.33a6377.76 6377.76 0 0 1-3.18 1.72.53.53 0 0 1-.26.06Z"/><path d="M3.3 11.42c.11 0 .21.04.31.1.4.2.79.42 1.19.63l1.46.8 1.03.56 1.42.76.26.14a.05.05 0 0 0 .05 0l1.34-.72 1.38-.75 1.82-.98.83-.45c.28-.15.6-.08.78.17.24.33.14.8-.22 1l-.56.3-1.75.95-1.84 1-1.52.82c-.19.1-.38.1-.57 0a557.19 557.19 0 0 1-2.63-1.43l-1.64-.88-1.33-.72a.84.84 0 0 1-.3-.23.68.68 0 0 1 .21-1 .56.56 0 0 1 .28-.07Z"/></g><defs><clipPath id="clip0_3168_1154"><path fill="#fff" d="M2.68 2.17h12.64v13.65H2.68z"/></clipPath></defs>'],"v8Cmd/create":[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1164)"><path d="M15.7 6.16A7.28 7.28 0 0 0 2.3 11.82a7.42 7.42 0 0 0 3.87 3.86 7.23 7.23 0 0 0 7.96-1.55 7.28 7.28 0 0 0 1.55-8v.03ZM14.96 9a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"/><path d="M9.65 8.35v-3.1a.65.65 0 1 0-1.3 0v3.1h-3.1a.65.65 0 1 0 0 1.3h3.1v3.12a.65.65 0 1 0 1.3 0V9.64h3.1a.65.65 0 1 0 0-1.3h-3.1Z"/></g><defs><clipPath id="clip0_3168_1164"><path fill="#fff" d="M1.73 1.73h14.53v14.53H1.73z"/></clipPath></defs>'],["v8Cmd/"+n.c.CVector]:[18,18,'<g clip-path="url(#clip0_3154_546)"><path fill="#000" d="m15.44 10.88-1.87-1.87v-.06l-.21-3.71a1.53 1.53 0 0 0-1.25-1.43L4.16 2.39c-.1-.01-.19-.01-.28 0a1.51 1.51 0 0 0-1.07.45 1.51 1.51 0 0 0-.45 1.32l1.43 8a1.52 1.52 0 0 0 1.43 1.26l3.77.2 1.87 1.87a.68.68 0 0 0 1 0l3.59-3.59a.7.7 0 0 0-.01-1.02Zm-4.08 3.11L9.6 12.23l-3.63-.19a1 1 0 0 1-.94-.83l-1.2-6.68 3.74 3.74v.08a.93.93 0 0 0 .26.81.92.92 0 0 0 1.02.2.94.94 0 0 0 .3-1.54 1 1 0 0 0-.74-.26h-.05l-.05-.06-3.67-3.64 6.57 1.18a1 1 0 0 1 .82.94l.2 3.63 1.75 1.76-2.62 2.62Z"/></g><defs><clipPath id="clip0_3154_546"><path fill="#fff" d="M2.36 2.36h13.28v13.28H2.36z"/></clipPath></defs>'],["v8Cmd/"+n.c.OpenColorPicker]:[18,18,'<path fill="#000" d="M15.27 2.74a1.96 1.96 0 0 0-2.75.16l-2 2.01-.05.05-1.35-1.3a1.43 1.43 0 0 0-1.99 0 1.4 1.4 0 0 0 0 1.98l.9.87-4.8 4.8-.13.14c-1.04 1.17-1.14 2.75-.22 3.67a2.2 2.2 0 0 0 1.58.62h.3a3.26 3.26 0 0 0 1.93-.96l4.8-4.8.9.91a1.41 1.41 0 0 0 2-2l-1.34-1.36.04-.05 2-2.01.1-.1a1.94 1.94 0 0 0 .08-2.63ZM4.5 14.59a1.06 1.06 0 0 1-.77-.3A1.55 1.55 0 0 1 4 12.24l5.2-5.2 1.76 1.83-5.08 5.09a2.1 2.1 0 0 1-1.4.64h.03Z"/>'],["v8Cmd/"+n.c.CategoryEdit]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1231)"><path d="M3.63 3.63v10.74h10.74V9.6c0-.26.1-.46.33-.58.41-.24.95.06.95.54v4.95c0 .57-.46 1.08-1.03 1.13-.2.02-.41 0-.62 0H3.52a1.16 1.16 0 0 1-1.17-1.18V3.5c0-.58.45-1.07 1.03-1.13.2-.02.41 0 .62 0h4.47a.64.64 0 0 1 .57.92.61.61 0 0 1-.58.35H3.63Z"/><path d="m9.52 5.41-.15-.14a.59.59 0 0 1 .02-.84c.22-.22.6-.21.82.01l.13.15.05-.04 1.6-1.6a1.16 1.16 0 0 1 1.63 0l1.44 1.44a1.14 1.14 0 0 1 0 1.6l-1.6 1.6a.35.35 0 0 1-.05.04l.16.17a.59.59 0 0 1-.83.83l-.16-.17a16543.94 16543.94 0 0 1-4.03 4.05.6.6 0 0 1-.45.19H5.9a.59.59 0 0 1-.6-.6V9.9a.6.6 0 0 1 .18-.45L7.3 7.63l2.18-2.18a.3.3 0 0 1 .04-.04Zm-3.05 6.1.05.01h1.31c.03 0 .06-.02.08-.04l3.8-3.8.03-.03h-.01l-1.39-1.4-.36.37a9194.77 9194.77 0 0 1-3.5 3.51V11.52Zm7.72-6.3L12.8 3.8l-1.6 1.6 1.39 1.4 1.6-1.6Z"/></g><defs><clipPath id="clip0_3168_1231"><path fill="#fff" d="M2.35 2.35h13.3v13.3H2.35z"/></clipPath></defs>'],["v8Cmd/"+n.c.CategoryDelete]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1242)"><path d="M15.5 4.26a.71.71 0 0 0-.43-.14H3.04a.75.75 0 0 0-.48.18.61.61 0 0 0 0 .92c.13.11.3.18.48.18h.58v8.46a2 2 0 0 0 2.13 1.94h6.5a2 2 0 0 0 2.14-1.94v-7.3a.64.64 0 0 0-.21-.46.77.77 0 0 0-1 0 .63.63 0 0 0-.2.46v7.15a.65.65 0 0 1-.22.46 1 1 0 0 1-.24.15 1 1 0 0 1-.3.05h-6.5c-.1 0-.2-.02-.29-.05a1 1 0 0 1-.25-.15.83.83 0 0 1-.16-.21.74.74 0 0 1-.05-.25V5.26h10c.18 0 .35-.07.48-.18a.6.6 0 0 0 .21-.46.59.59 0 0 0-.16-.36Z"/><path d="M7.07 7.4a.63.63 0 0 0-.2.46v3.9a.65.65 0 0 0 .2.46c.14.11.31.18.49.18s.35-.07.48-.18a.62.62 0 0 0 .21-.46v-3.9a.64.64 0 0 0-.21-.46.77.77 0 0 0-.97 0ZM9.96 7.4a.63.63 0 0 0-.2.46v3.9a.65.65 0 0 0 .2.46.74.74 0 0 0 1 0 .62.62 0 0 0 .21-.46v-3.9a.64.64 0 0 0-.21-.46.77.77 0 0 0-1 0ZM7.56 3.62h2.89a.7.7 0 0 0 .59-.37.6.6 0 0 0-.1-.67l-.05-.05h-.05a.7.7 0 0 0-.42-.13H7.56a.68.68 0 0 0-.48.18.58.58 0 0 0-.21.45.61.61 0 0 0 .2.46c.14.1.32.15.49.13Z"/></g><defs><clipPath id="clip0_3168_1242"><path fill="#fff" d="M2.35 2.35h13.3v13.3H2.35z"/></clipPath></defs>'],["v8Cmd/"+n.c.CategoryIntEvents]:[18,18,'<path fill="#000" fill-rule="evenodd" d="M4.39 7A1.27 1.27 0 0 1 3.1 5.7V3.3a1.25 1.25 0 0 1 1.25-1.26h2.46a1.25 1.25 0 0 1 1.25 1.28 366.8 366.8 0 0 0 0 2.4c0 .33-.1.61-.31.85a1.2 1.2 0 0 1-.93.43H4.39Zm2.38-3.76H4.39c-.07 0-.08.01-.08.08V5.7c0 .08.02.1.1.1h2.36c.07 0 .09-.01.09-.09V3.33c0-.08-.02-.09-.1-.09Zm4.87 8.7h2.34a.84.84 0 0 1 .84.84v2.34a.84.84 0 0 1-.85.85h-2.32a.83.83 0 0 1-.85-.83V12.8c0-.33.15-.59.43-.75.13-.07.26-.1.4-.1Zm-.01-5.86c.89.7 1.44 1.61 1.68 2.72h-.7v.02l.02.02.78 1.36.16.27a9.44 9.44 0 0 1 .47.88l.01.02.59-1c.3-.52.61-1.05.94-1.57H14.72c-.03 0-.05 0-.05-.04a5.81 5.81 0 0 0-3.58-4.55 5.92 5.92 0 0 0-2.47-.44h-.03v1.35a4.55 4.55 0 0 1 3.04.96Zm-6.94 4.05a4.52 4.52 0 0 0 4.72 3.68v1.35h-.03a5.93 5.93 0 0 1-6.1-5.03H2.41c.52-.83 1-1.67 1.49-2.53l.05.08.07.12a1129.98 1129.98 0 0 1 1.24 2.07l.14.23.02.03H4.7Z" clip-rule="evenodd"/>'],["v8Cmd/"+n.c.AI3Help]:[18,18,'<g fill="#000" clip-path="url(#clip0_3154_584)"><path d="M9.7 13.63a.68.68 0 0 0-.18-.28.99.99 0 0 0-.28-.14H8.16a.9.9 0 0 0-.29.14.7.7 0 0 0-.2.26c-.03.1-.03.2 0 .29v.29a.52.52 0 0 0 0 .31c.05.11.13.2.22.28.1.06.2.11.3.14h1.07a.84.84 0 0 0 .41-.43.8.8 0 0 0 0-.31v-.3a.62.62 0 0 0 0-.3l.03.05ZM12.44 4.6c-.35-.45-.8-.82-1.32-1.07A4.9 4.9 0 0 0 9.31 3a4.42 4.42 0 0 0-2.16.38A6.1 6.1 0 0 0 5.3 4.72a.7.7 0 0 0-.2.27v.3c.04.08.1.15.15.22.07.08.17.15.28.19l.4.2a1 1 0 0 0 .66.14c.22-.06.43-.18.6-.34.25-.28.55-.5.89-.68.33-.16.7-.23 1.08-.18.3 0 .59.07.86.2.21.08.4.23.53.41.1.18.16.39.15.6 0 .21-.05.42-.15.61-.08.17-.2.32-.34.44-.15.13-.35.29-.6.47-.35.24-.68.51-1 .8-.26.3-.47.63-.62 1-.15.23-.26.49-.32.76-.04.28-.04.56 0 .84v.17c-.04.1-.04.2 0 .3.03.1.08.2.15.28a.98.98 0 0 0 .68.12h.42c.22 0 .44-.05.63-.17a.8.8 0 0 0 .3-.56v-.18a2.16 2.16 0 0 1 0-.53 1.29 1.29 0 0 1 .45-.82l.67-.48c.4-.29.7-.54.97-.78.28-.27.5-.58.68-.92.19-.43.28-.88.29-1.34a2.4 2.4 0 0 0-.48-1.45Z"/></g><defs><clipPath id="clip0_3154_584"><path fill="#fff" d="M5.1 3h7.8v12H5.1z"/></clipPath></defs>'],["v8Cmd/"+n.c.AIQ]:[18,18,'<g fill="#000" clip-path="url(#clip0_3154_590)"><path d="M14.44 3.35H3.56a1.75 1.75 0 0 0-1.71 1.79v5.47a1.75 1.75 0 0 0 1.71 1.79H6.8a.38.38 0 0 1 .32.18L8 14.06a1.16 1.16 0 0 0 2 0l.87-1.48a.38.38 0 0 1 .32-.18h3.24a1.75 1.75 0 0 0 1.71-1.79V5.14a1.75 1.75 0 0 0-1.7-1.79Zm.37 7.26a.38.38 0 0 1-.37.4H11.2a1.66 1.66 0 0 0-1.45.84L9 13.11l-.75-1.26A1.66 1.66 0 0 0 6.8 11H3.56a.38.38 0 0 1-.37-.4V5.14a.38.38 0 0 1 .37-.4h10.88a.38.38 0 0 1 .37.4v5.47Z"/><path d="M12.11 6.63a1 1 0 1 0-.14 2 1 1 0 0 0 .14-2ZM9 6.63a1 1 0 1 0-.14 2 1 1 0 0 0 .14-2ZM5.89 6.63a1 1 0 1 0-.14 2 1 1 0 0 0 .14-2Z"/></g><defs><clipPath id="clip0_3154_590"><path fill="#fff" d="M1.85 3.35h14.3v11.3H1.85z"/></clipPath></defs>'],["v8Cmd/"+n.c.AIGC]:[18,18,'<path fill="#000" d="M8.7 12.63v2.78a.7.7 0 0 1-1.39-.07v-2.78a.69.69 0 0 1 .96-.58.7.7 0 0 1 .43.65ZM5 11.02a.7.7 0 0 1 .93 1.04L4 13.98l-.05.05A.7.7 0 0 1 3.02 13l1.93-1.93.05-.05ZM4.38 8.3h.06a.7.7 0 0 1-.06 1.39H1.6a.7.7 0 0 1 .07-1.39h2.72ZM14.34 8.3h.07a.7.7 0 0 1-.07 1.39h-2.79a.69.69 0 0 1-.62-.69.7.7 0 0 1 .7-.7h2.7ZM3.03 4A.68.68 0 0 1 4 4l1.93 1.92.06.06a.7.7 0 1 1-1.05.92L3.02 5.01l-.04-.06a.69.69 0 0 1 .04-.92l.01-.02ZM12.05 4a.7.7 0 0 1 .91 1.01l-1.91 1.92-.06.05a.7.7 0 0 1-.93-1.04L11.99 4l.06-.05V4ZM8.7 2.66v2.79a.7.7 0 0 1-1.39-.07V2.6a.7.7 0 0 1 1.39.07Z"/><path fill="#000" fill-rule="evenodd" d="m14.7 14.26-3.73-3.76-.53-.53-1.42-1.42-.11-.12a1.02 1.02 0 0 0-.94-.19.95.95 0 0 0-.7.63 1 1 0 0 0 .25 1.05l.67.68.54.53 4.5 4.53.12.12a1.02 1.02 0 0 0 1.35-1.53v.01Zm-5.17-3.1L7.97 9.59a.46.46 0 0 1 0-.63.48.48 0 0 1 .66 0l.75.76.84.84-.7.6Z" clip-rule="evenodd"/>'],["v8Cmd/"+n.c.CCustomComponent]:[18,18,'<path fill="#000" d="M8.7 12.63v2.78a.7.7 0 0 1-1.39-.07v-2.78a.69.69 0 0 1 .96-.58.7.7 0 0 1 .43.65ZM5 11.02a.7.7 0 0 1 .93 1.04L4 13.98l-.05.05A.7.7 0 0 1 3.02 13l1.93-1.93.05-.05ZM4.38 8.3h.06a.7.7 0 0 1-.06 1.39H1.6a.7.7 0 0 1 .07-1.39h2.72ZM14.34 8.3h.07a.7.7 0 0 1-.07 1.39h-2.79a.69.69 0 0 1-.62-.69.7.7 0 0 1 .7-.7h2.7ZM3.03 4A.68.68 0 0 1 4 4l1.93 1.92.06.06a.7.7 0 1 1-1.05.92L3.02 5.01l-.04-.06a.69.69 0 0 1 .04-.92l.01-.02ZM12.05 4a.7.7 0 0 1 .91 1.01l-1.91 1.92-.06.05a.7.7 0 0 1-.93-1.04L11.99 4l.06-.05V4ZM8.7 2.66v2.79a.7.7 0 0 1-1.39-.07V2.6a.7.7 0 0 1 1.39.07Z"/><path fill="#000" fill-rule="evenodd" d="m14.7 14.26-3.73-3.76-.53-.53-1.42-1.42-.11-.12a1.02 1.02 0 0 0-.94-.19.95.95 0 0 0-.7.63 1 1 0 0 0 .25 1.05l.67.68.54.53 4.5 4.53.12.12a1.02 1.02 0 0 0 1.35-1.53v.01Zm-5.17-3.1L7.97 9.59a.46.46 0 0 1 0-.63.48.48 0 0 1 .66 0l.75.76.84.84-.7.6Z" clip-rule="evenodd"/>'],["v8Cmd/"+n.c.CategoryHelpCenter]:[18,18,'<g fill="#000" clip-path="url(#clip0_3154_584)"><path d="M9.7 13.63a.68.68 0 0 0-.18-.28.99.99 0 0 0-.28-.14H8.16a.9.9 0 0 0-.29.14.7.7 0 0 0-.2.26c-.03.1-.03.2 0 .29v.29a.52.52 0 0 0 0 .31c.05.11.13.2.22.28.1.06.2.11.3.14h1.07a.84.84 0 0 0 .41-.43.8.8 0 0 0 0-.31v-.3a.62.62 0 0 0 0-.3l.03.05ZM12.44 4.6c-.35-.45-.8-.82-1.32-1.07A4.9 4.9 0 0 0 9.31 3a4.42 4.42 0 0 0-2.16.38A6.1 6.1 0 0 0 5.3 4.72a.7.7 0 0 0-.2.27v.3c.04.08.1.15.15.22.07.08.17.15.28.19l.4.2a1 1 0 0 0 .66.14c.22-.06.43-.18.6-.34.25-.28.55-.5.89-.68.33-.16.7-.23 1.08-.18.3 0 .59.07.86.2.21.08.4.23.53.41.1.18.16.39.15.6 0 .21-.05.42-.15.61-.08.17-.2.32-.34.44-.15.13-.35.29-.6.47-.35.24-.68.51-1 .8-.26.3-.47.63-.62 1-.15.23-.26.49-.32.76-.04.28-.04.56 0 .84v.17c-.04.1-.04.2 0 .3.03.1.08.2.15.28a.98.98 0 0 0 .68.12h.42c.22 0 .44-.05.63-.17a.8.8 0 0 0 .3-.56v-.18a2.16 2.16 0 0 1 0-.53 1.29 1.29 0 0 1 .45-.82l.67-.48c.4-.29.7-.54.97-.78.28-.27.5-.58.68-.92.19-.43.28-.88.29-1.34a2.4 2.4 0 0 0-.48-1.45Z"/></g><defs><clipPath id="clip0_3154_584"><path fill="#fff" d="M5.1 3h7.8v12H5.1z"/></clipPath></defs>'],["v8Cmd/"+n.c.CategoryBW]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1164)"><path d="M15.7 6.16A7.28 7.28 0 0 0 2.3 11.82a7.42 7.42 0 0 0 3.87 3.86 7.23 7.23 0 0 0 7.96-1.55 7.28 7.28 0 0 0 1.55-8v.03ZM14.96 9a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"/><path d="M9.65 8.35v-3.1a.65.65 0 1 0-1.3 0v3.1h-3.1a.65.65 0 1 0 0 1.3h3.1v3.12a.65.65 0 1 0 1.3 0V9.64h3.1a.65.65 0 1 0 0-1.3h-3.1Z"/></g><defs><clipPath id="clip0_3168_1164"><path fill="#fff" d="M1.73 1.73h14.53v14.53H1.73z"/></clipPath></defs>'],["v8Cmd/"+n.c.CategoryForm]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1164)"><path d="M15.7 6.16A7.28 7.28 0 0 0 2.3 11.82a7.42 7.42 0 0 0 3.87 3.86 7.23 7.23 0 0 0 7.96-1.55 7.28 7.28 0 0 0 1.55-8v.03ZM14.96 9a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"/><path d="M9.65 8.35v-3.1a.65.65 0 1 0-1.3 0v3.1h-3.1a.65.65 0 1 0 0 1.3h3.1v3.12a.65.65 0 1 0 1.3 0V9.64h3.1a.65.65 0 1 0 0-1.3h-3.1Z"/></g><defs><clipPath id="clip0_3168_1164"><path fill="#fff" d="M1.73 1.73h14.53v14.53H1.73z"/></clipPath></defs>'],["v8Cmd/"+n.c.CategoryMultimedia]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1164)"><path d="M15.7 6.16A7.28 7.28 0 0 0 2.3 11.82a7.42 7.42 0 0 0 3.87 3.86 7.23 7.23 0 0 0 7.96-1.55 7.28 7.28 0 0 0 1.55-8v.03ZM14.96 9a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"/><path d="M9.65 8.35v-3.1a.65.65 0 1 0-1.3 0v3.1h-3.1a.65.65 0 1 0 0 1.3h3.1v3.12a.65.65 0 1 0 1.3 0V9.64h3.1a.65.65 0 1 0 0-1.3h-3.1Z"/></g><defs><clipPath id="clip0_3168_1164"><path fill="#fff" d="M1.73 1.73h14.53v14.53H1.73z"/></clipPath></defs>'],["v8Cmd/"+n.c.CategoryNavigation]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1164)"><path d="M15.7 6.16A7.28 7.28 0 0 0 2.3 11.82a7.42 7.42 0 0 0 3.87 3.86 7.23 7.23 0 0 0 7.96-1.55 7.28 7.28 0 0 0 1.55-8v.03ZM14.96 9a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"/><path d="M9.65 8.35v-3.1a.65.65 0 1 0-1.3 0v3.1h-3.1a.65.65 0 1 0 0 1.3h3.1v3.12a.65.65 0 1 0 1.3 0V9.64h3.1a.65.65 0 1 0 0-1.3h-3.1Z"/></g><defs><clipPath id="clip0_3168_1164"><path fill="#fff" d="M1.73 1.73h14.53v14.53H1.73z"/></clipPath></defs>'],["v8Cmd/"+n.c.CategoryShape]:[18,18,'<g fill="#000" clip-path="url(#clip0_3168_1164)"><path d="M15.7 6.16A7.28 7.28 0 0 0 2.3 11.82a7.42 7.42 0 0 0 3.87 3.86 7.23 7.23 0 0 0 7.96-1.55 7.28 7.28 0 0 0 1.55-8v.03ZM14.96 9a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"/><path d="M9.65 8.35v-3.1a.65.65 0 1 0-1.3 0v3.1h-3.1a.65.65 0 1 0 0 1.3h3.1v3.12a.65.65 0 1 0 1.3 0V9.64h3.1a.65.65 0 1 0 0-1.3h-3.1Z"/></g><defs><clipPath id="clip0_3168_1164"><path fill="#fff" d="M1.73 1.73h14.53v14.53H1.73z"/></clipPath></defs>'],["v8Cmd/"+n.c.CategorySelected]:[18,18,'<path fill="#000" fill-rule="evenodd" d="M3.2 3.15v-.03h7.13c.08 0 .15 0 .23-.03a.6.6 0 0 0 .26-.98.61.61 0 0 0-.47-.2H8.98a6259 6259 0 0 0-6 0c-.63.12-1.06.65-1.04 1.25v6.87a.63.63 0 1 0 1.25 0V3.14Zm3.6 3.47h8.01V9.9a.62.62 0 0 0 .7.63c.33-.04.55-.29.55-.6V6.62A1.23 1.23 0 0 0 14.8 5.4H6.83c-.1 0-.2 0-.3.03-.6.13-.98.65-.97 1.22v6.87c0 .43.17.76.51 1 .23.18.5.25.79.25H9.4c.24-.03.46-.21.52-.46a.6.6 0 0 0-.23-.64.66.66 0 0 0-.4-.12H6.9a.9.9 0 0 1-.06 0H6.8V6.61ZM5 4.87v.1a28385.6 28385.6 0 0 1-.03 6.97.62.62 0 0 1-.6.47.62.62 0 0 1-.63-.65 7538.9 7538.9 0 0 1 0-6.06v-.79A1.24 1.24 0 0 1 5 3.65h7.16a.62.62 0 0 1 .58.4.6.6 0 0 1-.44.8 3451.98 3451.98 0 0 1-4.26.02H5Zm7.4 8.24v-.07l.02.01.03.04 1.06 1.83.16.27.35.58c.24.42.83.44 1.1.05a.64.64 0 0 0 .04-.72l-.19-.32-.09-.15-1.31-2.25a1.11 1.11 0 0 1-.04-.07l.06.02.28.17.37.22c.16.1.34.13.52.08a.63.63 0 0 0 .48-.54.63.63 0 0 0-.31-.67l-1.57-.95a618.13 618.13 0 0 1-1.27-.76.66.66 0 0 0-.56-.07.66.66 0 0 0-.46.63v3.58a.66.66 0 0 0 1.2.39.66.66 0 0 0 .12-.4 81.05 81.05 0 0 0 0-.9Z" clip-rule="evenodd"/>']}},80313:(Fe,ee,e)=>{"use strict";e.d(ee,{m:()=>r});const{XMLHttpRequest:n}=window,r=function(w,u){let{method:d="GET",headers:y,body:h,timeout:i=0,credentials:f,onUploadProgress:p,onDownloadProgress:s}=u===void 0?{}:u;return new Promise((l,C)=>{const v=(P,b)=>Object.assign(new Error(P),{status:b,url:w,method:d}),a=new n;a.onerror=()=>C(v("NETWORK_ERROR",-1)),a.ontimeout=()=>C(v("NETWORK_TIMEOUT",-1)),a.onreadystatechange=()=>{const{readyState:P,status:b}=a;P!==2||b===0||l({status:b,ok:b>=200&&b<300,...c(a,v)})},p&&a.upload&&(a.upload.onprogress=p),s&&(a.onprogress=s),a.open(d,w),y&&Object.entries(y).forEach(P=>{let[b,g]=P;return a.setRequestHeader(b,g)}),a.responseType="text",a.timeout=i||0,a.withCredentials=f==="include",a.send(h||null)})},c=(w,u)=>{let d;setTimeout(()=>{d||(d="DROP",w.abort())});const y=()=>new Promise((i,f)=>{if(d)return f(u(d==="KEEP"?"PAYLOAD_ALREADY_USED":"PAYLOAD_ALREADY_DROPPED",-1));d="KEEP",w.onload=()=>i(w.response),w.onerror=()=>f(u("PAYLOAD_ERROR",-1)),w.ontimeout=()=>f(u("PAYLOAD_TIMEOUT",-1))});return{text:y,json:()=>y().then(o)}},o=w=>JSON.parse(w)},80666:(Fe,ee,e)=>{"use strict";e.d(ee,{z:()=>n});let n=function(r){return r.BorderRadiusPanel="BorderRadiusPanel",r.FillPanel="FillPanel",r.BorderPanel="BorderPanel",r.BoxShadowsPanel="BoxShadowsPanel",r.TextShadowsPanel="TextShadowsPanel",r.ToolTipArrowSettingPanel="ToolTipArrowSettingPanel",r.TextStatusBarPanel="TextStatusBarPanel",r.InputTypeKeyboardPanel="InputTypeKeyboardPanel",r.ArrowSettingPanel="ArrowSettingPanel",r.QRCodeSettingPanel="QRCodeSettingPanel",r.TextPanel="TextPanel",r.DigitalStepperPanel="DigitalStepperPanel",r.IconSettingsPanel="IconSettingsPanel",r.MobileTabBarsIconPanel="MobileTabBarsIconPanel",r.SVGIconPathSettings="SVGIconPathSettings",r.IconPathSettings="IconPathSettings",r.UnifiedKeyboardPanel="UnifiedKeyboardPanel",r.CheckPanel="CheckPanel",r.TreeNodePanel="TreeNodePanel",r.UsedRefAppearPanel="UsedRefAppearPanel",r.CanShowLibPlhPanel="CanShowLibPlhPanel",r}({})},80730:(Fe,ee,e)=>{"use strict";e.d(ee,{G6:()=>w,Gg:()=>o,WL:()=>u});const{Blob:n,FileReader:r}=window,c=d=>y=>new Promise((h,i)=>{const f=new r;f.addEventListener("error",i),f.addEventListener("load",()=>h(f.result)),f[d](y)}),o=c("readAsText"),w=c("readAsDataURL"),u=c("readAsArrayBuffer")},80771:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>U});var n=e(18381),r=e(12211),c=e(95549),o=e(38502),w=e(53732),u=e.n(w),d=e(60407),y=e(25409),h=e(17307),i=e(16013),f=e(72214);class p extends o.PureComponent{render(){const{resources:{amount:H,discount_amount:Q},isMktMember:N,hasDiscount:L,onMemberClick:V,onBuySeparately:M}=this.props,D=L?I18N.Resources.resourcesFooter.member_discount_purchase.replace(/%price%/,Number(Q).toFixed(2)):I18N.Resources.resourcesFooter.buy_separately.replace(/%price%/,Number(H).toFixed(2));return(0,f.jsxs)(i.xk,{children:[(0,f.jsx)("div",{className:"footer-btn alone",onClick:()=>M(),children:D}),!N&&(0,f.jsxs)("div",{className:"footer-btn vip",onClick:V,children:[(0,f.jsx)(h.C,{name:"art_board/resources/mkt_vip"}),(0,f.jsx)("span",{children:I18N.Resources.resourcesFooter.free_for_member_1})]})]})}}var s=e(64966),l=e(19062),C=e(65415),v=e(77036),a=e(93413),P=e(55914),b=e(78257),g=e(11032),S=e(16335),t=e(28306),_=e(13642),I=e(88909);class k extends o.PureComponent{constructor(){var H;super(...arguments),H=this,(0,c.A)(this,"state",{searchLoading:!1,searchList:null,checkedResourceSet:new Set}),(0,c.A)(this,"handleStartTemplates",async Q=>{const{onStarTemplates:N,from:L}=this.props;N(Q)}),(0,c.A)(this,"handleTrack",(Q,N,L,V)=>{const{rootProject:M,onTrack:D}=this.props;D&&D(Q,N,L,V,M)}),(0,c.A)(this,"handleSearch",function(Q,N){N===void 0&&(N=b.lS.Detail);const{currentResources:L,mtResourcesMtItemListMap:V}=H.props,{cid:M}=L,D=V.get(M);if(H.setState({searchList:null,checkedResourceSet:new Set}),Q){const W=new RegExp((0,P.$)(Q),"i");if(D&&D.length>0){H.setState({searchLoading:!0});const F=D.filter(B=>{var Y;return W.test((Y=B.hotAttr)==null?void 0:Y.name)});setTimeout(()=>{H.setState({searchLoading:!1,searchList:F})},1e3)}}}),(0,c.A)(this,"handleBySeparately",()=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{currentResources:Q,currentOrg:N,onPaidTemplates:L,dispatch:V}=this.props;V({type:"modal:update:state",payload:{resourcePurchaseModal:{isOpen:!0,resources:Q,currentOrg:N,paidCallback:L,isFooter:!0}}})}),(0,c.A)(this,"handleMemberClick",()=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{currentResources:Q}=this.props,{category:N}=Q||{};let L="",V="";N==="combo_group"?(L="\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u7EC4\u4EF6_\u8D2D\u4E70VIP",V="workspace-v8_components_buy_vip"):N==="screen_list"?(L="\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u9875\u9762_\u8D2D\u4E70VIP",V="workspace-v8_pages_buy_vip"):(L="\u7F16\u8F91\u533A-v8_\u539F\u578B\u7D20\u6750\u9762\u677F-\u4F1A\u5458\u7D20\u6750_\u8D2D\u4E70VIP",V="workspace-v8_template_buy_vip");const M={mode:"mat",payEntrance:L,checkoutArea:"proto",checkoutPlace:V};MB.global.popupHelper.chargeAsync(M)}),(0,c.A)(this,"handleChangeCheckedResource",Q=>{const N=new Set(this.state.checkedResourceSet);N.has(Q)?N.delete(Q):N.add(Q),this.setState({checkedResourceSet:N})}),(0,c.A)(this,"handleGetRecentData",Q=>{const{type:N,key:L}=Q,{currentResources:V,from:M}=this.props;return{isRequestRecent:!0,projectUpperType:N,projectUpperCid:V==null?void 0:V.cid,itemCid:L,from:M,isTrack:!0}}),(0,c.A)(this,"handleAddItems",()=>{var Q;const{checkedResourceSet:N}=this.state,{currentResources:L,mtResourcesMtItemListMap:V,mtResourceSdkStoreMap:M,dispatch:D,from:W}=this.props,F=V.get(L.cid),B=F==null||(Q=F.filter(X=>N.has(X.key)))==null?void 0:Q.map(X=>({...X,recent:this.handleGetRecentData(X)})),Y=M.get(L.cid);D({type:"entry:resources:quick:create:template",payload:{data:[[B,Y]]}}),D({type:"modal:update:state",payload:{templateModal:{isOpen:!1}}})}),(0,c.A)(this,"handleAddItemsAll",()=>{var Q;const{currentResources:N,mtResourcesMtItemListMap:L,mtResourceSdkStoreMap:V,dispatch:M,from:D}=this.props,W=(Q=L.get(N.cid))==null?void 0:Q.map(B=>({...B,recent:this.handleGetRecentData(B)})),F=V.get(N.cid);M({type:"entry:resources:quick:create:template",payload:{data:[[W,F]]}}),M({type:"modal:update:state",payload:{templateModal:{isOpen:!1}}})}),(0,c.A)(this,"handleSelectAll",()=>{const{currentResources:Q,mtResourcesMtItemListMap:N}=this.props,L=N.get(Q.cid),V=L==null?void 0:L.map(M=>M.key);this.setState({checkedResourceSet:new Set(V)})}),(0,c.A)(this,"handleClearAll",()=>{this.setState({checkedResourceSet:new Set})}),(0,c.A)(this,"handleOpenPreviewModal",Q=>{const{currentResources:N,mtResourcesMtItemListMap:L,dispatch:V,from:M}=this.props,D=L.get(N.cid),W=D==null?void 0:D.find(B=>B.key===Q);V({type:"modal:update:state",payload:{resourcesSnapshotPreviewModal:{isOpen:!0,type:M==="template-modal"?"page":"widget",list:D,currentTemplate:W}}})})}async componentDidMount(){const{currentResources:H,mtResourcesMtItemListMap:Q,onBack:N,dispatch:L,pagePanelFindMtResourceMap:V}=this.props,{cid:M}=H;if(!((Q==null?void 0:Q.get(M))||await(0,S.Yk)(M))){N&&N();return}L({type:"entry:resources:init:marketTemplateItemList:map",payload:{resourcesCids:[M]}});const W=V.get(H.cid);if(W){const F=new Map;F.set(W==null?void 0:W.cid,W==null?void 0:W.project_meta_cid),L({type:"entry:resources:set:mtSdkStore:map",payload:{mtResourceCidList:[W==null?void 0:W.cid],mtProjectMetaCidMap:F}})}}componentWillUnmount(){MB.commonGuideHelper.closeGuide(a.c.GUIDE_RESOURCES_SHOW),_.A.emit(I.P2,{shownMtItemCids:[]})}render(){const{currentResources:H,mtResourcesMtItemListMap:Q,className:N,onBack:L,currentUser:V,onPaidTemplates:M,onFavoriteTemplates:D,masonryColumnMoblie:W,masonryColumnWeb:F,from:B,layoutV9:Y,isFloatPreviewMkt:X}=this.props,{searchLoading:G,searchList:Z,checkedResourceSet:J}=this.state,{cid:te}=H,he=Q.get(te),de=!he,Se=Z||he,xe=Se&&Se.length===0,{show:be,hasDiscount:ie,isMktMember:oe}=(0,g.o3)(H,V),ue=be&&!ENV.IS_MO;return(0,f.jsxs)(i.em,{className:N,children:[(0,f.jsx)(y.l,{resources:H,onBack:L,onStartTemplates:this.handleStartTemplates,onFavoriteTemplates:D,onSearch:this.handleSearch,from:B}),de?(0,f.jsx)(d.A,{itemWidth:109,itemHeight:109}):G?(0,f.jsx)(l.S,{className:"margin-top-120",children:(0,f.jsx)("span",{children:I18N.Resources.searching.load})}):xe?(0,f.jsx)(C.b,{isNeedLink:!Z}):(0,f.jsxs)(j,{list:Se,children:[(0,f.jsx)("div",{className:u()(a.c.GUIDE_RESOURCES_SHOW+" marketTemplate-list",{showSign:ue}),children:(0,f.jsx)(v.L,{isFloatPreviewMkt:X,currentResources:H,marketTemplateItemList:Se,isShowSign:!1,onTrack:this.handleTrack,onPaidTemplates:M,masonryColumnMoblie:W,masonryColumnWeb:F,onCheckedResource:this.handleChangeCheckedResource,onOpenPreviewModal:this.handleOpenPreviewModal,canChecked:["template-modal","widget-modal"].includes(B),checkedSet:J,from:B})}),["template-modal","widget-modal"].includes(B)?(0,f.jsx)(s.W,{type:B==="template-modal"?"page":"widget",resource:H,checkedSet:J,onBuySeparately:this.handleBySeparately,onMemberClick:this.handleMemberClick,onSelectAll:this.handleSelectAll,onClearAll:this.handleClearAll,onAddItems:this.handleAddItems,onAddItemsAll:this.handleAddItemsAll}):(0,f.jsx)(f.Fragment,{children:ue&&(0,f.jsx)(p,{isMktMember:oe,hasDiscount:ie,resources:H,onBuySeparately:this.handleBySeparately,onMemberClick:this.handleMemberClick,from:B})})]})]})}}(0,c.A)(k,"defaultProps",{isFloatPreviewMkt:!0});const j=O=>{let{list:H,children:Q}=O;return(0,o.useEffect)(()=>{const N=(0,t.R9)({source:"detail",list:H});_.A.emit(I.jy,{observeMtItemObj:N}),_.A.emit(I.BD)},[H]),Q};var z=e(67052),K=e(74923),$=e(70933),A=e(67588);const E=(0,r.Mz)([K.AC,$.PL,$.HW,$.wA,A.MZ,z.fm,K.SH],(O,H,Q,N,L,V,M)=>({mtResourcesMtItemListMap:O,rootProject:H,currentUser:Q,currentOrg:N,layoutV9:L,mtResourceSdkStoreMap:V,pagePanelFindMtResourceMap:M})),U=(0,n.Ng)(O=>E(O),null,null,{forwardRef:!0})(k)},80985:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>h,o:()=>y});var n=e(95549),r=e(19396),c=e.n(r),o=e(25582),w=e.n(o),u=e(38502),d=e(72214);const y=(0,u.forwardRef)((i,f)=>{let{show:p=!0,isUpdate:s=!1,children:l,onScrollChange:C,...v}=i;const[a,P]=(0,u.useState)(null),b=(0,u.useCallback)(()=>{var S;P(f==null||(S=f.current)==null?void 0:S.getBoundingClientRect())},[f==null?void 0:f.current]);(0,u.useEffect)(()=>{(p||s)&&b()},[p,s,b]);const g=c()(S=>{b(),C&&C(S)},100,{trailing:!1});return(0,d.jsx)("div",{ref:f,onScroll:g,...v,children:l(a,p)})});class h extends u.PureComponent{constructor(f){super(f),(0,n.A)(this,"setContainerRef",p=>this.$container=p),(0,n.A)(this,"updateContainerRect",()=>this.setState({containerRect:this.$container.getBoundingClientRect()})),(0,n.A)(this,"handleScroll",c()(p=>{const{onScrollChange:s}=this.props;this.updateContainerRect(),s&&s(p)},100,{trailing:!1})),this.state={containerRect:null}}componentDidMount(){this.props.show&&this.updateContainerRect()}componentDidUpdate(f){!f.show&&this.props.show&&this.updateContainerRect()}render(){const{children:f,show:p,onScrollChange:s,...l}=this.props,{containerRect:C}=this.state;return(0,d.jsx)("div",{ref:this.setContainerRef,onScroll:this.handleScroll,...l,children:f(C,p)})}}(0,n.A)(h,"propTypes",{show:w().bool,children:w().func,onScrollChange:w().func}),(0,n.A)(h,"defaultProps",{show:!0})},81122:(Fe,ee,e)=>{"use strict";e.d(ee,{$E:()=>d,BG:()=>u,KA:()=>y,M2:()=>w,S1:()=>h,Tk:()=>f,ZW:()=>c,Zt:()=>p,cS:()=>l,et:()=>i,sg:()=>s});var n=e(54190);if(e.j!=477)var r=e(78042);const c={projectExit:"projectExit",enterPreview:"enterPreview",enterEdit:"enterEdit",projectNameChange:"projectNameChange",loadSuccess:"loadSuccess",abarSubProjectRefresh:"abarSubProjectRefresh"},o=C=>new URLSearchParams(location.search.slice(1)).get(C),w=()=>{var C;return(C=MB.abarSubProject)==null?void 0:C.is_sub_project},u=()=>o("from")==="zboard",d=()=>o("isPreview")==="1",y=()=>{try{u()&&MB.abarIframePostMessage&&MB.abarIframePostMessage(JSON.stringify({type:c.loadSuccess,payload:{from:"prototype"}}))}catch(C){console.log("### error:",C)}},h=()=>o("tabCid"),i=C=>{MB.abarSubProject=C,MB.abarIframePostMessage=v=>{(0,r.A)(v,"*")}},f=()=>o("abarReadOnly")==="1",p=()=>o("importZbar")==="1",s=function(C,v){v===void 0&&(v={}),u()&&MB.abarIframePostMessage&&MB.abarIframePostMessage(JSON.stringify({type:C,payload:v}))},l=function(C,v,a){a===void 0&&(a=!1);try{const{type:P,payload:b}=JSON.parse(C.data);switch(P){case c.projectNameChange:if(b&&b.name&&a){const g=MB.abarSubProject;(0,n.Yu)(g.cid,{name:b.name})}break;case c.abarSubProjectRefresh:{if(a)return;try{roSdkStore.syncUpdate(),v&&v({type:"entry:preview:reload"})}catch(g){console.log("##### abar refresh error:",g)}}break}}catch(P){console.log("##### error",P)}}},82535:(Fe,ee,e)=>{"use strict";e.d(ee,{FO:()=>P});var n=e(38502),r=e(69623),c=e(25582),o=e.n(c),w=e(69368),u=e(39e3),d=e(39138),y=e(47617),h=e(72214);function i(S,t,_){return(t=f(t))in S?Object.defineProperty(S,t,{value:_,enumerable:!0,configurable:!0,writable:!0}):S[t]=_,S}function f(S){var t=p(S,"string");return typeof t=="symbol"?t:t+""}function p(S,t){if(typeof S!="object"||!S)return S;var _=S[Symbol.toPrimitive];if(_!==void 0){var I=_.call(S,t||"default");if(typeof I!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(S)}const s="ModalPortal",l="IBOT_MODAL_ROOT",C=document.body,v=document.getElementById(l)||Object.assign(document.createElement("div"),{id:l});C.contains(v)||C.appendChild(v);const a=S=>S.stopPropagation();class P extends n.PureComponent{constructor(){var t;super(...arguments),t=this,i(this,"state",{isLoad:this.props.isOpen}),i(this,"portal",(0,w.ep)(v,(0,w.Hn)([s,this.props.portalClassName]))),i(this,"toggle",_=>{_?(this.props.isAnimation?setTimeout(()=>this.portal.classList.add("is-open")):this.portal.classList.add("is-open"),this.bodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden"):(this.portal.classList.remove("is-open"),document.body.style.overflow=this.bodyOverflow)}),i(this,"close",function(_){var I,k;_===void 0&&(_=!0),t.toggle(!1),(0,w.NY)(t),_&&((I=(k=t.props).onClose)==null||I.call(k))}),i(this,"open",()=>{var _,I;this.toggle(!0),(0,w.Er)(this),this.positionY(),this.focusOnInput(),(_=(I=this.props).onOpen)==null||_.call(I)}),i(this,"positionY",()=>setTimeout(()=>{const{centered:_}=this.props;if(_===!0||_===!1)return;const I=(0,w.$)(".TransitionModal",this.portal);if(!I)return;const{innerHeight:k}=window,{offsetHeight:j}=I,z=k<=j||(k-j)/2<k*.2?"add":"remove";I.classList[z]("is-v-centered")})),i(this,"focusOnInput",()=>{const{isAutoFocus:_}=this.props;if(!_)return;const I=(0,w.$)(".content input",this.portal);I&&I.focus()}),i(this,"onKeyDown",_=>{let{key:I,target:k}=_;const{canClose:j,canCloseOnEsc:z,canConfirmOnEnter:K,onConfirm:$,onCancel:A,isOpen:E}=this.props,U=!!(0,w.$)("#IBOT_SELECT_MENU_ROOT .SelectMenu.is-open");if(I==="Escape"&&!k.matches("input, textarea, select")&&!U&&E&&j&&z&&!U&&(0,w.dI)(this)===0&&(A&&this.handleCancel(),this.close(!0)),I==="Enter"&&!k.matches("textarea, button")&&!U&&E&&K&&(0,w.dI)(this)===0&&$)return this.handleConfirm()}),i(this,"onClickMask",_=>{a(_);const{canClose:I,canCloseOnClickMask:k}=this.props,j=!!(0,w.$)("#IBOT_SELECT_MENU_ROOT .SelectMenu.is-open");I&&k&&!j&&this.close(!0)}),i(this,"handleConfirm",()=>{var _;const{confirmBtnProps:I,onConfirm:k,isConfirmDisabled:j}=this.props,{onClick:z,disabled:K}=I;if(typeof k=="function"&&!j?k():typeof z=="function"&&!K&&z(),(_=I.shouldCloseOnAction)!=null?_:!0){var A;const E=(A=I.callOnClose)!=null?A:!0;this.close(E)}}),i(this,"handleCancel",()=>{var _;const{cancelBtnProps:I,onCancel:k,isCancelDisabled:j}=this.props,{onClick:z,disabled:K}=I;if(typeof k=="function"&&!j&&k(),typeof z=="function"&&!K&&z(),(_=I.shouldCloseOnAction)!=null?_:!0){var A;const E=(A=I.callOnClose)!=null?A:!0;this.close(E)}}),i(this,"handleCloseIcon",()=>{const{onClickCloseIcon:_}=this.props;typeof _=="function"&&_(),this.close(!0)}),i(this,"mergeCancelBtnProps",()=>{const{cancelBtnProps:_,isCancelDisabled:I,cancelText:k}=this.props,{handleCancel:j}=this;return{type:_.type||y.vU.type,className:(0,w.Hn)([_.className,y.vU.className]),disabled:I||_.disabled||y.vU.disabled,children:k||_.children||y.vU.children,onClick:j}}),i(this,"mergeConfirmBtnProps",()=>{const{confirmBtnProps:_,isConfirmDisabled:I,confirmText:k}=this.props,{handleConfirm:j}=this;return{type:_.type||y.tb.type,className:(0,w.Hn)([_.className,y.tb.className]),disabled:I||_.disabled||y.tb.disabled,children:k||_.children||y.tb.children,onClick:j}}),i(this,"getDefaultLayoutChildren",()=>{const _=this.getHeader(),I=this.getFooter(),k=this.getCloseIcon(),{children:j}=this.props;return(0,h.jsxs)(h.Fragment,{children:[_,(0,h.jsx)(d.xv,{className:"content",children:j}),I,k]})}),i(this,"mergeModalStyle",()=>{const{modalStyle:_,top:I,width:k,borderRadius:j}=this.props,z={};return I!==void 0&&(z.top=I),k!==void 0&&(z.width=k),j!==void 0&&(z.borderRadius=j),Object.assign({},z,_)})}componentDidMount(){this.props.isOpen&&this.open(),window.addEventListener("resize",this.positionY)}componentWillUnmount(){this.portal&&this.portal.remove(),this.close(!1),window.removeEventListener("resize",this.positionY)}componentDidUpdate(t){const{isOpen:_}=this.props;_!==t.isOpen&&(_?this.open():this.close(!0))}static getDerivedStateFromProps(t,_){const{isOpen:I}=t;return I&&!_.isLoad?{isLoad:!0}:null}getFooter(){const{footer:t,onCancel:_,onConfirm:I,renderFooterSide:k}=this.props;return(0,h.jsx)(y.jl,{footer:t,renderFooterSide:k,onConfirm:I,onCancel:_,cancelBtnProps:this.mergeCancelBtnProps(),confirmBtnProps:this.mergeConfirmBtnProps()})}getHeader(){const{title:t}=this.props;return(0,h.jsx)(y.rQ,{title:t})}getCloseIcon(){const{canClose:t,closeIcon:_}=this.props;return(0,h.jsx)(y.v,{canClose:t,closeIcon:_,onClick:this.handleCloseIcon})}renderModalDOM(){const{canClose:t,modalRender:_,mask:I,centered:k,maskChildren:j,className:z,maskClassName:K,canCloseOnClickMask:$}=this.props,{isLoad:A}=this.state;return A&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(d.En,{}),I&&(0,h.jsx)(d.aJ,{className:(0,w.Hn)(["TransitionModalMask",t&&$&&"can-close",K]),onClick:this.onClickMask,children:j}),(0,h.jsx)(d.vq,{style:this.mergeModalStyle(),className:(0,w.Hn)(["TransitionModal",k&&"is-v-centered",z]),onClick:a,children:_?_():this.getDefaultLayoutChildren()}),(0,h.jsx)(u.A,{target:document,onKeyDown:this.onKeyDown})]})}render(){const{isOpen:t,savedDomOnClose:_}=this.props;return _||t?(0,r.createPortal)(this.renderModalDOM(),this.portal):null}}i(P,"propTypes",{children:o().node,title:o().node,footer:o().node,renderFooterSide:o().func,canClose:o().bool,closeIcon:o().node,shouldCloseOnAction:o().bool,confirmText:o().string,onConfirm:o().func,isConfirmDisabled:o().bool,cancelText:o().string,onCancel:o().func,isCancelDisabled:o().bool,cancelBtnProps:o().object,confirmBtnProps:o().object,modalRender:o().func,isOpen:o().bool,centered:o().bool,mask:o().bool,savedDomOnClose:o().bool,maskChildren:o().node,isAutoFocus:o().bool,isAnimation:o().bool,canCloseOnClickMask:o().bool,canCloseOnEsc:o().bool,canConfirmOnEnter:o().bool,className:o().string,maskClassName:o().string,portalClassName:o().string,onOpen:o().func,onClose:o().func,onClickCloseIcon:o().func,modalStyle:o().object,top:o().oneOfType([o().string,o().number]),width:o().number,borderRadius:o().number}),i(P,"defaultProps",{isOpen:!1,mask:!0,isAutoFocus:!0,isAnimation:!0,className:"",maskClassName:"",portalClassName:"",canCloseOnClickMask:!0,canCloseOnEsc:!0,canConfirmOnEnter:!0,savedDomOnClose:!1,onOpen:()=>null,onClose:()=>null,canClose:!0,closeIcon:void 0,shouldCloseOnAction:!0,footer:void 0,cancelText:"\u53D6\u6D88",confirmText:"\u786E\u8BA4",cancelBtnProps:{callOnClose:!0,shouldCloseOnAction:!0},confirmBtnProps:{callOnClose:!0,shouldCloseOnAction:!0}});const b=S=>{let{isOpen:t,title:_,children:I,confirmText:k,cancelText:j,onCancel:z,onConfirm:K,confirmBtnProps:$,cancelBtnProps:A,onOpen:E,onClose:U,className:O}=S;return _jsx(ModalPro,{isOpen:t,title:_,children:I,confirmText:k,cancelText:j,onCancel:z,onConfirm:K,confirmBtnProps:$,cancelBtnProps:A,onOpen:E,onClose:U,className:O})},g=S=>{let{isOpen:t,modalRender:_,onOpen:I,onClose:k,className:j,mask:z=!0}=S;return _jsx(ModalPro,{isOpen:t,modalRender:_,onOpen:I,onClose:k,className:j,mask:z})}},82671:(Fe,ee,e)=>{"use strict";e.d(ee,{G3:()=>r});const n=(i,f)=>(i.message&&i.stack&&(i.stack=i.stack.replace(i.message,f)),i.message=f,i),r=i=>{throw console.warn(i),i},c=function(i,f){try{for(var p=arguments.length,s=new Array(p>2?p-2:0),l=2;l<p;l++)s[l-2]=arguments[l];return f(...s)}catch(C){return i}},o=async function(i,f){try{for(var p=arguments.length,s=new Array(p>2?p-2:0),l=2;l<p;l++)s[l-2]=arguments[l];return await f(...s)}catch(C){return i}},w=function(i){let f,p;try{for(var s=arguments.length,l=new Array(s>1?s-1:0),C=1;C<s;C++)l[C-1]=arguments[C];f=i(...l)}catch(v){p=v||new Error}return{result:f,error:p}},u=async function(i){let f,p;try{for(var s=arguments.length,l=new Array(s>1?s-1:0),C=1;C<s;C++)l[C-1]=arguments[C];f=await i(...l)}catch(v){p=v||new Error}return{result:f,error:p}},d=i=>i.then(y,h),y=i=>({result:i,error:void 0}),h=i=>({result:void 0,error:i||new Error})},82694:(Fe,ee,e)=>{"use strict";e.d(ee,{HA:()=>r,jb:()=>o,xV:()=>c});var n=e(27660);const r=u=>[{key:"setting",title:I18N.SettingPanel.panel,label:I18N.SettingPanel.style},{key:"main",title:I18N.Interaction.new_name,label:I18N.Interaction.new_name,disabled:!!u}],c=u=>[{key:"setting",title:I18N.SettingPanel.panel,label:I18N.SettingPanel.style},{key:"main",title:I18N.Interaction.new_name,label:I18N.Interaction.new_name,disabled:!!u}],o=(0,n.R)((u,d,y,h)=>{let{isGlobalSetting:i,isQuickCreateCanvasSetting:f,isWidgetSetting:p,isCanvasSetting:s,isBasketSetting:l,isEditingComboSetting:C,isPencilSetting:v}=u;const a=[{key:"main",title:I18N.ScreenPanel.page_setting,label:I18N.ScreenPanel.page_setting}],P=[{key:"setting",title:I18N.ScreenPanel.artboard_size,label:I18N.ScreenPanel.artboard_size}],b=r(h),g=c(h);let S=I18N.builtin.dynamic_widget_setting;if(l&&d){const k=sdkStore.getHotItem(d);if(k){const{hotAttr:{basket:j}}=k;j==="bMuban"&&(S=I18N.SettingPanel.master_settings)}}l&&y&&(S=I18N.SettingPanel.master_settings);const t=[{key:"setting",title:S,label:S}],_=[{key:"setting",title:I18N.SettingPanel.panel,label:I18N.SettingPanel.style}],I=[{key:"setting",title:I18N.SettingPanel.panel,label:I18N.SettingPanel.style},{key:"main",title:I18N.SettingPanel.design.link_event,label:I18N.SettingPanel.tab_event,disabled:!0}];return f?P:v?I:i?a:p?b:s?g:l?t:C?_:[]});function w(u){let{direction:d,distance:y=3,toolTippedWillBe:h}=u;const i={whiteSpace:"nowrap"},f=h&&h.getBoundingClientRect();if(!f)return i;const{x:p,y:s,width:l,height:C}=f;switch(d){case"left":{Object.assign(i,{top:s+C/2,left:p-y,transform:"translateX(-100%) translateY(-50%)"});break}case"right":{Object.assign(i,{top:s+C/2,left:p+l+y,transform:"translateY(-50%)"});break}case"up":{Object.assign(i,{left:p+l/2,top:s-y,transform:"translateX(-50%) translateY(-100%)"});break}case"down":Object.assign(i,{left:p+l/2,top:s+C+y,transform:"translateX(-50%)"})}return i}},82959:(Fe,ee,e)=>{"use strict";e.d(ee,{HA:()=>y,I8:()=>h,Iw:()=>r,JS:()=>n,O3:()=>o,Ow:()=>f,YN:()=>w,ni:()=>u});var n=function(p){return p.menu="menu",p.tile="tile",p}(n||{}),r=function(p){return p.MP_App="MP-app",p.MP_Applet="MP-applet",p.MP_H5="MP-h5",p.PC_Website="PC-web",p.PC_WebBack="PC-web_back",p.Pad="Pad",p.DS_Screen="DS-screen",p.SmartTV="smart_tv",p.HMI_IndusHmi="HMI-indus_hmi",p.HMI_Car="HMI-car",p.Watch="watch",p.Common="common",p}(r||{}),c=function(p){return p.Default="default",p.Common="common",p.Nav="nav",p.DataEntry="data-entry",p.DataShow="data-show",p.FeedBack="feed-back",p.Other="other",p}(c||{}),o=function(p){return p.Builtin="builtin",p.Resources="resources",p}(o||{});const w=()=>{const p=I18N.Resources.basic_widget,s=I18N.Resources.form_widget,l=I18N.Resources.nav_widget,C=I18N.Resources.chart_widget,v=I18N.Resources.advanced_chart_widget,a=I18N.Resources.multimedia_widget,P=I18N.Resources.shape_widget,b=I18N.Resources.flow_widget;return{basic:p,form:s,navigation:l,chart:C,advancedChart:v,multimedia:a,shape:P,flow:b}},u="\u5185\u7F6E\u7EC4\u4EF6",d=()=>{const{basic:p}=w();return{level1:u,level2:p}},y=()=>{const{basic:p,form:s,navigation:l,chart:C,advancedChart:v,multimedia:a,shape:P,flow:b}=w();return{[r.MP_App]:[p,s,l,a,C,P,b],[r.MP_Applet]:[p,s,l,a,C,P,b],[r.MP_H5]:[p,s,l,a,C,P,b],[r.PC_Website]:[p,s,l,a,C,P,b],[r.PC_WebBack]:[p,s,l,C,v,a,b],[r.Pad]:[p,C,v,a,s,l,P,b],[r.DS_Screen]:[p,C,v,a,s,l,P,b],[r.SmartTV]:[p,C,v,a,s,l,P,b],[r.HMI_IndusHmi]:[p,C,v,a,s,l,P,b],[r.HMI_Car]:[p,C,v,a,s,l,P,b],[r.Watch]:[p,C,v,a,s,l,P,b],[r.Common]:[p,C,v,a,s,l,P,b],all:[p,s,l,C,v,a,P,b]}},h="local-widget-panel-official-ui-mode",i={...r,Common:"common",WATCH_Apple:"WATCH-apple",WATCH_Android:"WATCH-android",MP_ECommerce:"MP-e_commerce",MP_Poster:"MP-poster",CAR_Car:"CAR-car",Customize:"customize",DS_Customize:"DS-customize",HMI_Customize:"HMI-customize"},f=p=>Object.values(i).includes(p)?p===i.Customize?i.Common:p===i.DS_Customize?i.DS_Screen:p===i.HMI_Customize?i.HMI_IndusHmi:p===i.CAR_Car?i.HMI_Car:[i.MP_ECommerce,i.MP_Poster].includes(p)?i.MP_App:[i.WATCH_Android,i.WATCH_Apple].includes(p)?i.Watch:p:i.Common},83485:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>A,X:()=>$});var n=e(95549),r=e(38502),c=e(74222),o=e(3877),w=e(67787);const u=w.Ay.div.withConfig({displayName:"styles__StyledLinkTypeSelect",componentId:"sc-lmbucw-0"})(['display:flex;align-items:center;justify-content:space-between;padding:0 16px;.placeholder-style{[type="button"]{span{color:',";}}}.link-opener-wrapper{flex:1;& > button{width:100%;}}.link-type-select{width:100%;}.link-title{display:flex;color:",";}"],E=>E.theme.color_proto,E=>E.theme.color_text_L3),d=w.Ay.div.withConfig({displayName:"styles__StyledScrollToTip",componentId:"sc-lmbucw-1"})(['position:absolute;top:-122px;left:-35px;width:196px;background:#454647;color:#fff;flex-direction:column;justify-content:space-around;padding:12px 16px;border-radius:6px;z-index:1;&.no-scroll{top:-102px;}&::before{content:"";position:absolute;top:100%;left:19%;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #454647;}p{font-weight:400;line-height:20px;}']);var y=e(95106),h=e(39695),i=e(76613),f=e(40486),p=e(33515),s=e(53732),l=e.n(s),C=e(17307),v=e(6566),a=e(79209),P=e(13172),b=e(88959),g=e(72214);const{LinkToCanvas:S,OpenOverlay:t,SwapOverlay:_,SetVariableValue:I,ConditionalBranches:k,OpenExternalUrl:j}=h.O2;class z extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"LINK_TYPE_OPTIONS",(0,f.gu)()),(0,n.A)(this,"isFree",(0,a._S)()),(0,n.A)(this,"handleGetLinkTypeOptions",()=>{const{isEditingCombo:U,supTreeNode:O}=this.props;return this.LINK_TYPE_OPTIONS.map(H=>U&&[S,t,_,I,k].some(Q=>Q===H.value)||this.isFree&&H.value===j?{...H,isDisabled:!0}:H).filter(H=>!((O==null?void 0:O.type)==="branch"&&H.value===h.O2.ConditionalBranches))}),(0,n.A)(this,"handleSelect",U=>{if(U.currentTarget.classList.contains("disabled"))return;const{action:O}=U.currentTarget.dataset;this.props.onSelect(O)})}render(){const{currentInteractionType:U}=this.props,O=this.handleGetLinkTypeOptions();return(0,g.jsx)(v.A,{children:(0,g.jsx)("ul",{children:O.map((H,Q)=>{const N=H.value===U,L=H.type==="divider",V=l()({gesture:H.type!=="divider",current:N,disabled:H.isDisabled,"shake-divider":L,"is-active":N}),M=(0,g.jsxs)("li",{role:H.type!=="divider"?"option":"","data-action":H.value,className:V,"data-microtip-position":"left",onClick:this.handleSelect,children:[N&&(0,g.jsx)(C.C,{name:"common/checked",className:"checked display-gesture"}),!L&&(0,g.jsx)(C.C,{name:"interaction/action/"+H.value,className:"display-gesture"}),!L&&(0,g.jsx)("p",{children:H.label})]},Q);return this.isFree&&H.value===j?(0,g.jsx)(P.A,{title:(0,g.jsx)(b.A,{desc:"\u7F16\u8F91\u533A-v8_\u8DF3\u8F6C\u94FE\u63A5\u4EA4\u4E92"}),zIndex:1200,children:M}):M})})})}}let K=null;const $=()=>{setTimeout(()=>{var E;(E=K)==null||E.open()},100)};class A extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"setDropdownRef",U=>{K=U}),(0,n.A)(this,"LINK_TYPE_OPTIONS",(0,f.gu)()),(0,n.A)(this,"handleLinkType",U=>{const O=Number(U);this.props.onChange(O,"interactionType")}),(0,n.A)(this,"showScrollToInteractionTip",()=>{const{isDummy:U,link:O}=this.props;if(U||O.data.interactionType!==h.O2.ScrollTo)return null;try{const H=O.targetWidgetKey===i.rE?O.triggerItemKey:O.targetWidgetKey===i.VZ?(0,y.JC)(sdkStore,O.triggerItemKey):O.targetWidgetKey,Q=(0,y.Ik)(sdkStore,H||"")||sdkStore.locUpColdCanvasKey(H||""),N=sdkStore.getHotItem(Q||"");if(!N)return null;let L=!0,V=!0;if(N.hotAttr.type==="wBasket")L=N.hotAttr.scroll===2||N.hotAttr.scroll===3,V=N.hotAttr.scroll===2||N.hotAttr.scroll===4;else if(N.hotAttr.type==="rResCanvas"&&!N.hotAttr.asOverlay){const W=sdkStore.getHotItem(N.sup);if(!W)return null;W.sup===c.fW?(L=W.hotAttr.scroll===2||W.hotAttr.scroll===3,V=W.hotAttr.scroll===2||W.hotAttr.scroll===4):(L=W.hotAttr.deviceScroll==="vertical"||W.hotAttr.deviceScroll==="auto",V=W.hotAttr.deviceScroll==="horizontal"||W.hotAttr.deviceScroll==="auto")}let M=null,D="";return!L&&!V?(M=I18N.SettingPanel.no_scroll_tip,D="no-scroll"):!L&&O.data.scrollToDir!=="horizontal"?M=I18N.SettingPanel.no_vertical_scroll_tip:!V&&O.data.scrollToDir!=="vertical"&&(M=I18N.SettingPanel.no_horizontal_scroll_tip),M?(0,g.jsx)(o.A,{className:"fixed-reminder-tips",renderContent:()=>(0,g.jsx)(d,{className:D,children:(0,g.jsx)("p",{children:M})})}):null}catch(H){return null}})}componentWillUnmount(){K=null}render(){const{link:U,isDummy:O,isEditingCombo:H,supTreeNode:Q}=this.props;return(0,g.jsxs)(u,{className:"link-type height-32 title-content",children:[(0,g.jsxs)("p",{className:"link-title",children:[(0,g.jsx)("span",{children:I18N.SettingPanel.link_action}),this.showScrollToInteractionTip()]}),(0,g.jsx)(p.Ay,{isPosition2:!0,ref:this.setDropdownRef,menux:"left",isPlaceholder:O,title:O?I18N.Interaction.ita_please:(0,f.Qe)(U.data.interactionType),icon:O?null:(0,g.jsx)(C.C,{size:16,name:"interaction/action/"+U.data.interactionType}),className:"link-type-select link-drop-action-list",renderMenu:(0,g.jsx)(z,{currentInteractionType:O?-1:U.data.interactionType,onSelect:this.handleLinkType,isEditingCombo:H,supTreeNode:Q})})]})}}},83565:(Fe,ee,e)=>{"use strict";e.d(ee,{s:()=>ss});var n=e(72274),r=e(25942);const c={viewportRect:null,screenListRect:null};function o(ce,Pt){ce===void 0&&(ce=c);let{type:Mt,payload:je}=Pt;switch(Mt){case"dom:update:state":return{...ce,...je};default:return ce}}var w=e(78235),u=e(15515),d=e(28681);const y={isSpaceDown:!1,isKeySDown:!1,isCtrlDown:!1,isAltDown:!1,isShiftDown:!1,isShowLess12Mark:!1},h={keyFlags:y,isDraggingItem:!1,isResizingItem:!1,isDraggingCanvas:!1,isShowRadiusResizer:!1,isResizingRadius:!1,isHideSelectionBorder_Resizer:!1,isInPreview:!1,isHideResizer:!1,isDeleteRulerLine:!1,isInChatModal:!1,isStartCreatingCanvas:!1,isShowLess12Mark:!(0,u.Yt)(d.MQ,null,u.qW.Boolean)};function i(ce,Pt){ce===void 0&&(ce=h);let{type:Mt,payload:je}=Pt;switch(Mt){case"reducer:flag:update-state":return(0,w.O1)(ce,je);case"set:key:flags":return{...ce,keyFlags:{...y,...je}};case"set:key:keyFlags":return{...ce,keyFlags:{...ce.keyFlags,...je}};case"reset:key:flags":return{...ce,keyFlags:{...y}};case"reducer:flag:set:is-dragging-item":return{...ce,isDraggingItem:je.isDraggingItem};case"reducer:flag:set:is-resizing-item":return{...ce,isResizingItem:je.isResizingItem};case"reducer:flag:set:is-dragging-canvas":return{...ce,isDraggingCanvas:je.isDraggingCanvas};case"reducer:flag:set:is-selection-border-resizer":return{...ce,isHideSelectionBorder_Resizer:je.isHideSelectionBorder_Resizer};case"reducer:flag:set:is-show-resizer":return{...ce,isHideResizer:je.isHideResizer};case"reducer:flag:set-isResizingRadius":return{...ce,isResizingRadius:je.isResizingRadius};case"reducer:flag:set-isShowRadiusResizer":return{...ce,isShowRadiusResizer:je.isShowRadiusResizer};case"reducer:flag:is-in-chatGPT":return{...ce,isInChatModal:je.isInChatModal};default:return ce}}var f=e(81122);const p={rootProject:null,currentProject:null,currentProjectMeta:null,currentUser:null,designOptions:{},currentScreenOriginOffset:null,currentProjectShare:null,currentOrg:{},personalOrg:null,currentTeam:null,orgList:[],sharings:[],sharingInReadOnly:null,currentScreen:null,currentDrawioEditorItem:null,editingComboPageKey:"",user_fcg:null,org_fcg:null,comboCurrentProject:null,comboCurrentProjectMeta:null,currentSpace:{},importAbarOptions:{isFromAbar:(0,f.BG)(),fromAbarIsReadOnly:(0,f.Tk)(),isImportAbar:(0,f.Zt)(),fromAbarIsPreview:(0,f.$E)(),tabCid:(0,f.S1)()}};function s(ce,Pt){ce===void 0&&(ce=p);const{type:Mt,payload:je}=Pt;switch(Mt){case"current:update:state":return{...ce,...je};case"set:current:project":return{...ce,currentProject:je.project};case"update:design:options":return{...ce,designOptions:je.designOptions};case"update:org:member:list":{const{orgMembers:vt}=je;return{...ce,currentOrg:{...ce.currentOrg,members:vt}}}case"set:current:user":return{...ce,currentUser:{...ce.currentUser,...je.user}};case"set:current:org":return{...ce,currentOrg:{...ce.currentOrg,...je.org}};case"set:current:personal:org":return{...ce,personalOrg:{...ce.personalOrg,...je.org}};case"set:current:drawio:editor:item":return{...ce,currentDrawioEditorItem:je.hotItem};default:return ce}}var l=e(6861);const C={saving:!1,isShowSharingManager:!1,projShareToEdit:"",canToggleSticky:!0,isShowSticky:!0,canPaste:!1,refresh:null};function v(ce,Pt){var Mt;ce===void 0&&(ce=C);const{type:je,payload:vt}=Pt;switch(je){case"toolbar:update:state":return{...ce,...vt};case"set:saving":return ce.saving===vt.saving?ce:{...ce,saving:vt.saving};case"toolbar:sharingManager:open":return{...ce,isShowSharingManager:!0};case"toolbar:sharingManager:toggle":return{...ce,isShowSharingManager:!ce.isShowSharingManager};case"toolbar:isShowSticky:toggle":return{...ce,isShowSticky:(Mt=vt==null?void 0:vt.isShowSticky)!=null?Mt:!ce.isShowSticky};default:return ce}}var a=e(31222),P=e(78257);const b="resources_collapse_panel_set",g=(0,u.Yt)(b,[],u.qW.Array),S=[P.lS.Template,P.lS.Icon,P.lS.Builtin,P.lS.State,P.lS.Asset,P.lS.Page,P.lS.History,P.lS.Search],t={currentPopupPanel:P.lS.Directory,panelOrder:S,hotKeyWords:[],mtResourcesMtItemListMap:new Map,mtResourceSdkStoreMap:new Map,mtResourcesMap:new Map,editingCid:"",assetUploadState:"close",assetUpload:{index:0,indexMax:0,assetUploaderFailure:[]},collapsePanelSet:new Set(g),showGlobalHeader:!0,isVersionModalClosed:!1,popupLoaded:{isHotKeyWordsLoaded:!1,isFilterWordsLoaded:!1},paramStarMtCid:""};function _(ce,Pt){ce===void 0&&(ce=t);const{type:Mt,payload:je}=Pt;switch(Mt){case"update:popups:state":return{...ce,...je};case"set:current:popup:panel":{const{name:vt}=je;return(0,u.a0)("popups_show",!!vt,u.qW.Boolean),{...ce,currentPopupPanel:vt}}case"close:popup:panel":return{...ce,currentPopupPanel:null};case"exalt:panel:order":{const vt=ce.panelOrder,{name:kt}=je,Yt=vt.indexOf(kt),Xn=[...vt];return Xn.splice(Yt,1),Xn.push(kt),{...ce,panelOrder:Xn}}case"resources:set:resources_marketTemplateItem_list_map":{const vt=ce.mtResourcesMtItemListMap,kt=je.mtResourcesMtItemListMap,Yt=new Map([...vt,...kt]);return{...ce,mtResourcesMtItemListMap:Yt}}case"resources:set:resources_mtSdkStore_list_map":{const vt=ce.mtResourceSdkStoreMap,kt=je.mtResourceSdkStoreMap,Yt=new Map([...vt,...kt]);return{...ce,mtResourceSdkStoreMap:Yt}}case"resources:set:resources_map":{const vt=ce.mtResourcesMap,kt=je.mtResourcesMap,Yt=new Map([...vt,...kt]);return{...ce,mtResourcesMap:Yt}}case"resources:update:collapsePanelSet":{const{collapsePanelSet:vt}=je;return(0,u.a0)(b,Array.from(vt),u.qW.Array),{...ce,collapsePanelSet:je.collapsePanelSet}}case"resources:update:popupLoaded":return{...ce,popupLoaded:{...ce.popupLoaded,...je}};default:return ce}}var I=e(77872);const k={layerExpandedKeySet:new Set,layerRange:{start:0,end:void 0}};function j(ce,Pt){ce===void 0&&(ce=k);const{type:Mt,payload:je}=Pt;switch(Mt){case"update:layer:select:range":return{...ce,layerRange:je.layerRange};case"layerExpandedKeySet:toggle:ref":{const{layerExpandedKeySetRef:vt}=je,kt=new Set(ce.layerExpandedKeySet);return ce.layerExpandedKeySet.has(vt)?kt.delete(vt):kt.add(vt),{...ce,layerExpandedKeySet:kt}}case"layerExpandedKeySet:delAllSet:ref":{const{refs:vt}=je,kt=new Set([...Array.from(new Set(ce.layerExpandedKeySet)),...vt]);return{...ce,layerExpandedKeySet:kt}}case"layerExpandedKeySet:close:ref":return{...ce,layerExpandedKeySet:new Set};default:return ce}}const z="design_layer_panel_height",K={height:(0,u.Yt)(z,window.innerHeight*.6,u.qW.Number),nav:0,canvasListCacheTag:0};function $(ce,Pt){ce===void 0&&(ce=K);const{type:Mt,payload:je}=Pt;switch(Mt){case"directory-panel:bottom:update":return{...ce,...je};case"directory-panel:bottom:set:height":{const{height:vt}=je;return(0,u.a0)(z,vt,u.qW.Number),{...ce,height:vt}}case"directory-panel:bottom:set:nav":return{...ce,nav:je.nav};default:return ce}}const A={mubanList:null};function E(ce,Pt){ce===void 0&&(ce=A);const{type:Mt,payload:je}=Pt;switch(Mt){case"muban-panel:update:mubanList":return{...ce,mubanList:je.mubanList};default:return ce}}const U={show:!1};function O(ce,Pt){ce===void 0&&(ce=U);const{type:Mt,payload:je}=Pt;switch(Mt){case"historyPanel:set:show":return{...ce,show:je.show};default:return ce}}const H={isShowHeader:!0,isShowSearch:!1,source:null,iconGroupData:null,navigationIconResources:null};function Q(ce,Pt){ce===void 0&&(ce=H);const{type:Mt,payload:je}=Pt;switch(Mt){case"icon-select-popup:update:state":return{...ce,...je};default:return ce}}const N={navIndex:0,findPanelTabIndex:0,iconSelectPopupNavIndex:0,iconSelectPopupTabIndex:0,iconType:"All",iconDefaultColor:"rgba(16,16,16,1)",iconDefaultSize:24,libraryIconDataForTabs:new Map,findPanelCurrentIconGroup:"",iconSelectPopupCurrentIconGroup:"",resources:[],unStarResources:[],starResources:[],currentIconResources:null,iconSelectPopupCurrentIconResources:null,isRequestHotIconList:!1,hotIconList:[],hotColorIconList:[]};function L(ce,Pt){ce===void 0&&(ce=N);const{type:Mt,payload:je}=Pt;switch(Mt){case"icon-panel:update:state":return{...ce,...je};case"icon-panel:set:default:color":{const{iconDefaultColor:vt}=je;return{...ce,iconDefaultColor:vt}}case"icon-panel:set:default:size":{const{iconDefaultSize:vt}=je;return{...ce,iconDefaultSize:vt}}case"icon-panel:set:iconType":return{...ce,iconType:je.iconType};case"icon-panel:update:icon_library_data_map:for:data":{const{cid:vt,iconGroupData:kt}=je,Yt=new Map(ce.libraryIconDataForTabs);return Yt.set(vt,kt),{...ce,libraryIconDataForTabs:Yt}}default:return ce}}const V="local-user-assets-expand-cids",M="local-org-assets-expand-cids",D=()=>{let ce=[],Pt=[];try{const Mt=(0,u.kV)(V);Mt&&(ce=JSON.parse(Mt));const je=(0,u.kV)(M);je&&(Pt=JSON.parse(je))}catch(Mt){}return Object.prototype.toString.call(ce)!=="[object Array]"&&(ce=[]),Object.prototype.toString.call(Pt)!=="[object Array]"&&(Pt=[]),{localUserAssetsOpenCids:ce,localOrgAssetsOpenCids:Pt}},{localUserAssetsOpenCids:W,localOrgAssetsOpenCids:F}=D(),B={isRequestUserAssetGroup:!1,isRequestOrgAssetGroup:!1,navIndex:-1,metadata:[],stickerData:[],isRequestFindAssets:!1,isRequestFindStickers:!1,isSaveAllAssetsMap:!1,findFilterWords:[],findActiveWord:"",assetNavIndex:0,userAssetGroups:[],userAssetsMap:new Map,userAssets:[],isRequestUserAssets:!1,orgAssetGroups:[],orgAssetsMap:new Map,orgAssets:[],isRequestOrgAssets:!1,localUserAssetsOpenCids:W,localOrgAssetsOpenCids:F};function Y(ce,Pt){ce===void 0&&(ce=B);const{type:Mt,payload:je}=Pt;switch(Mt){case"image-panel:update:state":return{...ce,...je};case"image-panel:set:stickerData":return{...ce,stickerData:je,isRequestFindStickers:!0};case"image-panel:set:metadata":return{...ce,metadata:je,isRequestFindAssets:!0};case"image-panel:set:user-assets-map":{const{groupCid:vt,userAssets:kt}=je,Yt=new Map(ce.userAssetsMap);return Yt.set(vt,kt),{...ce,userAssetsMap:Yt}}case"image-panel:set:org-assets-map":{const{groupCid:vt,orgAssets:kt}=je,Yt=new Map(ce.orgAssetsMap);return Yt.set(vt,kt),{...ce,orgAssetsMap:Yt}}case"image-panel:set:user-assets-groups":{const{nextGroups:vt}=je;return{...ce,userAssetGroups:vt}}case"image-panel:set:org-assets-groups":{const{nextGroups:vt}=je;return{...ce,orgAssetGroups:vt}}case"image-panel:set:local-user-assets-expand-cids":{const{oper:vt,cid:kt}=je;let Yt=[...ce.localUserAssetsOpenCids];return vt==="plus"?Yt=Yt.concat(kt):Yt=Yt.filter(Xn=>Xn!==kt),(0,u.cH)(V,JSON.stringify(Yt)),{...ce,localUserAssetsOpenCids:Yt}}case"image-panel:set:local-org-assets-expand-cids":{const{oper:vt,cid:kt}=je;let Yt=[...ce.localOrgAssetsOpenCids];return vt==="plus"?Yt=Yt.concat(kt):Yt=Yt.filter(Xn=>Xn!==kt),(0,u.cH)(M,JSON.stringify(Yt)),{...ce,localOrgAssetsOpenCids:Yt}}default:return ce}}const X={navIndex:0,findLoading:!1,findPlatformType:"",findPlatformSubType:"",findPlatformSubTypeListMap:new Map,findPlatformSubTypeMap:new Map,findPlatformSubTypeMtDataMap:new Map,findMtResourceMap:new Map,findCurrentMtResourceCid:"",isLoadedPageSingleData:!1,isLoadedPageLibraryData:!1,templateLibraryPlatformType:"",templateLibraryPlatformSubType:"",templateLibraryPlatformSubTypeListMap:new Map,templatePageLibraryList:[],pageMode:"single",filePlatformType:"recommend",fileTemplateList:[],isLoadedfileData:!1,isLoadedTemplateMeData:!1,meNavIndex:0,meFilter:"all",meTemplateList:[],libraryNavIndex:0,libraryFilterWords:[],libraryActiveWord:"",libraryTopicListMap:new Map,libraryCurrentSquareTopic:[],libraryCurrentResources:null,currentStarResourcesCid:""};function G(ce,Pt){ce===void 0&&(ce=X);const{type:Mt,payload:je}=Pt;switch(Mt){case"page-panel:update:state":return{...ce,...je};case"page-panel:update:map:state":{const{key:vt,value:kt}=je,Yt=ce[vt]||new Map,Xn=new Map([...Yt,...kt]);return{...ce,[vt]:Xn}}default:return ce}}var Z=e(3862);const J={show:!1,keyword:"",iconKeyword:"",masterKeyword:"",isLoading:!0,isIconSelectPopupLoading:!0,unsplashLoading:!1,searchResultList:[],searchResultSum:0,searchResultCategory:"",searchMtMetaCidMap:new Map,iconSelectPopupSearchResultList:[],iconSelectPopupSearchResultSum:0,isSearching:!1,iconSelectPopupIsSearching:!1,type:Z.t_,historyKeyWords:[],currentComboGroup:null,searchCollapsePanelSet:new Set,searchResultListMap:{combo_group:[],screen_list:[],icon_group:[],asset:[]}};function te(ce,Pt){ce===void 0&&(ce=J);const{type:Mt,payload:je}=Pt;switch(Mt){case"searchPanel:update:state":return{...ce,...je};case"searchPanel:set:show":return{...ce,show:je.show};case"searchPanel:clear:search:state":return{...ce,show:!1,searchResultList:[],searchResultSum:0,searchResultCategory:"",keyword:"",currentComboGroup:null,isSearching:!1,searchCollapsePanelSet:new Set};case"searchPanel:clear:search:state:from:icon-select-popup":return{...ce,iconSelectPopupSearchResultList:[],iconSelectPopupSearchResultSum:0,iconKeyword:"",currentComboGroup:null,iconSelectPopupIsSearching:!1,...je};case"searchPanel:toggle:collapsePanelSet":{const vt=new Set(ce.searchCollapsePanelSet),{id:kt}=je;return vt.has(kt)?vt.delete(kt):vt.add(kt),{...ce,searchCollapsePanelSet:vt}}case"searchPanel:add:collapsePanelSet":{const vt=new Set(ce.searchCollapsePanelSet),{id:kt}=je;return vt.add(kt),{...ce,searchCollapsePanelSet:vt}}case"searchPanel:async:update:unsplash:searchResult":{const{asyncKeyword:vt,searchResultListMap:kt,searchResultSum:Yt,searchCollapseId:Xn}=je;if(ce.keyword!==vt)return ce;const Do=new Set(ce.searchCollapsePanelSet);return Do.add(Xn),{...ce,searchResultListMap:kt,searchResultSum:Yt,searchCollapsePanelSet:Do,unsplashLoading:!1}}default:return ce}}var he=e(37860),de=e(82959);const Se="local-user-combo-expand-cids",xe="local-org-combo-expand-cids",be="local-widget-plat-form-type",ie=()=>{let ce=[],Pt=[];try{const Mt=(0,u.kV)(Se);Mt&&(ce=JSON.parse(Mt));const je=(0,u.kV)(xe);je&&(Pt=JSON.parse(je))}catch(Mt){}return Object.prototype.toString.call(ce)!=="[object Array]"&&(ce=[]),Object.prototype.toString.call(Pt)!=="[object Array]"&&(Pt=[]),{localUserComboOpenCids:ce,localOrgComboOpenCids:Pt}},{localUserComboOpenCids:oe,localOrgComboOpenCids:ue}=ie(),ve={navIndex:0,userComboGroups:[],orgComboGroups:[],localUserComboOpenCids:oe,localOrgComboOpenCids:ue,upgradeUserComboGroupList:[],upgradeOrgComboGroupList:[],isRequestV7UserComboGroup:!1,isRequestV7OrgComboGroup:!1,selectedSceTag:"",selectedPLabel:he.P8,sceneMktsMap:{},sceToPLabelMap:null,scrollTop:0,sceCollapsedCategories:[],showComboUploadGuide:!1,showComboStar:!1,platformMarketTemplatesMap:new Map,platformType:"",level1:de.ni,level2:"\u57FA\u7840",isScrollLevel1:!1,imageWidgetDropdownCurrent:"",meNavIndex:0,currentStarResourcesCid:""};function re(ce,Pt){ce===void 0&&(ce=ve);const{type:Mt,payload:je}=Pt;switch(Mt){case"widget-panel:update:state":return{...ce,...je};case"widget-panel:set:user-combo-groups":{const{nextComboGroups:vt}=je;return{...ce,userComboGroups:vt}}case"widget-panel:set:org-combo-groups":{const{nextComboGroups:vt}=je;return{...ce,orgComboGroups:vt}}case"widget-panel:set:local-user-combo-expand-cids":{const{oper:vt,cid:kt}=je;let Yt=[...ce.localUserComboOpenCids];return vt==="plus"?Yt=Yt.concat(kt):Yt=Yt.filter(Xn=>Xn!==kt),(0,u.cH)(Se,JSON.stringify(Yt)),{...ce,localUserComboOpenCids:Yt}}case"widget-panel:set:local-org-combo-expand-cids":{const{oper:vt,cid:kt}=je;let Yt=[...ce.localOrgComboOpenCids];return vt==="plus"?Yt=Yt.concat(kt):Yt=Yt.filter(Xn=>Xn!==kt),(0,u.cH)(xe,JSON.stringify(Yt)),{...ce,localOrgComboOpenCids:Yt}}case"widget-panel:set:scene_combo_mkts_map":{const{sceneMktsMap:vt}=je;return{...ce,sceneMktsMap:vt}}case"widget-panel:update:showComboUploadGuide":{const{showComboUploadGuide:vt}=je;return{...ce,showComboUploadGuide:vt}}case"widget-panel:update:selectedPLabel:by:name":{const{name:vt}=je;if(vt==="all")return{...ce,selectedPLabel:he.P8};const{sceToPLabelMap:kt}=ce,Yt=kt[ce.selectedSceTag].find(Xn=>Xn.name===vt);return{...ce,selectedPLabel:Yt}}case"widget-panel:update:sceCollapsedCategories":{const{sceCollapsedCategories:vt=[]}=je;return{...ce,sceCollapsedCategories:vt}}case"widget-panel:update:platformMarketTemplatesMap":return{...ce,platformMarketTemplatesMap:je};case"widget-panel:update:platFormType":{const{platformType:vt,projectCid:kt=""}=je;return(0,u.a0)(be+"-"+kt,vt,u.qW.String),{...ce,platformType:vt}}case"widget-panel:update:level1":{const{level1:vt,isScrollLevel1:kt=!1}=je;return{...ce,level1:vt,isScrollLevel1:kt}}case"widget-panel:update:level2":{const{level2:vt}=je;return{...ce,level2:vt}}default:return ce}}var fe=e(15722);const we={keyword:"",image:{tab:0}};function Te(ce,Pt){ce===void 0&&(ce=we);const{type:Mt,payload:je}=Pt;switch(Mt){case"image-modal:update:keyword":return{...ce,keyword:je};case"image-modal:update:image":return{...ce,image:{...ce.image,...je}};case"image-modal:reset:state":return we;default:return ce}}const Ie={keyword:"",all:{tab:0},me:{tab:0}};function le(ce,Pt){ce===void 0&&(ce=Ie);const{type:Mt,payload:je}=Pt;switch(Mt){case"icon-modal:update:keyword":return{...ce,keyword:je};case"icon-modal:update:all":return{...ce,all:{...ce.all,...je}};case"icon-modal:update:me":return{...ce,me:{...ce.me,...je}};case"icon-modal:reset:state":return Ie;default:return ce}}const me=(0,n.HY)({screen:I.n,layer:j,bottom:$}),Pe=(0,n.HY)({leftPanel:a._H,popups:_,directory:me,muban:E,history:O,iconSelectPopup:Q,icon:L,image:Y,page:G,search:te,widget:re,widgetModal:fe.E,imageModal:Te,iconModal:le});var pe=e(76863),ke=e(53940);const We={autoTabIndex:null,activeIndex:0,panelUI:{position:(0,u.Yt)("mp_position",!0,u.qW.Boolean),shadows:(0,u.Yt)("mp_shadows",!0,u.qW.Boolean),text:(0,u.Yt)("mp_text",!0,u.qW.Boolean),image:(0,u.Yt)("mp_image",!0,u.qW.Boolean),state:(0,u.Yt)("mp_state",!0,u.qW.Boolean),clip:(0,u.Yt)("mp_clip",!1,u.qW.Boolean),filter:(0,u.Yt)("mp_filter",!1,u.qW.Boolean),chart_settings_type:(0,u.Yt)("mp_chart_settings_type",!0,u.qW.Boolean),chart_settings_theme:(0,u.Yt)("mp_chart_settings_theme",!0,u.qW.Boolean),chart_settings_option:(0,u.Yt)("mp_chart_settings_option",!0,u.qW.Boolean),collapse_title_settings:(0,u.Yt)("mp_collapse_title_settings",!0,u.qW.Boolean),collapse_content_settings:(0,u.Yt)("mp_collapse_content_settings",!0,u.qW.Boolean),collapse_switches_checked_panel:(0,u.Yt)("mp_collapse_switches_checked_panel",!0,u.qW.Boolean),collapse_switches_unchecked_panel:(0,u.Yt)("mp_collapse_switches_unchecked_panel",!0,u.qW.Boolean),segmented_control_checked_item:(0,u.Yt)("mp_segmented_control_checked_item",!0,u.qW.Boolean),slider_track_settings:(0,u.Yt)("mp_slider_track_settings",!0,u.qW.Boolean),slider_thumb_settings:(0,u.Yt)("mp_slider_thumb_settings",!0,u.qW.Boolean),collapse_panel:(0,u.Yt)("mp_collapse_panel",!0,u.qW.Boolean),segmented_control:(0,u.Yt)("mp_segmented_control",!0,u.qW.Boolean),options:(0,u.Yt)("mp_options",!0,u.qW.Boolean),nav_menu_panel:(0,u.Yt)("mp_nav_menu_panel",!0,u.qW.Boolean),nav_expand_panel:(0,u.Yt)("mp_nav_expand_panel",!0,u.qW.Boolean),nav_selected_panel:(0,u.Yt)("mp_nav_selected_panel",!0,u.qW.Boolean),nav_menu_type:(0,u.Yt)("mp_nav_menu_type",!0,u.qW.Boolean),digital_stepper_button:(0,u.Yt)("mp_digital_stepper_button",!0,u.qW.Boolean),digital_stepper_number:(0,u.Yt)("mp_digital_stepper_number",!0,u.qW.Boolean),pagination:(0,u.Yt)("mp_pagination",!0,u.qW.Boolean),pagination_checked:(0,u.Yt)("mp_pagination_checked",!0,u.qW.Boolean),tabs:(0,u.Yt)("mp_tabs",!0,u.qW.Boolean),tabs_checked:(0,u.Yt)("mp_tabs_checked",!0,u.qW.Boolean),tab_bars_panel:(0,u.Yt)("mp_tab_bars_panel",!0,u.qW.Boolean),tab_bars_selected:(0,u.Yt)("mp_tab_bars_selected",!0,u.qW.Boolean),selection_control_type_panel:(0,u.Yt)("mp_selection_control_type_panel",!0,u.qW.Boolean),selection_control_checked_style_panel:(0,u.Yt)("mp_selection_control_checked_style_panel",!0,u.qW.Boolean),selection_control_unchecked_style_panel:(0,u.Yt)("mp_selection_control_unchecked_style_panel",!0,u.qW.Boolean)},layout:{row:{enabled:!1,...ke.rs.row},col:{enabled:!1,...ke.rs.col}},bgcolor:"rgba(245, 245, 245, 1)",collapseKeySet:new Set,selectCarouselImageIndex:null,selectTableCellInfo:null,selectOptionCid:null,isShowLinkPanel:!1,varList:[],currentAppearRefStyle:null,currentTextRefStyle:null};function Ee(ce,Pt){ce===void 0&&(ce=We);const{type:Mt,payload:je}=Pt;switch(Mt){case"settings:update:state":return{...ce,...je};case"settings:set:autoTabIndex":return{...ce,autoTabIndex:je.autoTabIndex};case"settings:set:activeIndex":return{...ce,activeIndex:je.activeIndex};case"settings:set:panel:expanded":{const{title:vt,expanded:kt}=je;return(0,u.a0)("mp_"+vt,kt,u.qW.Boolean),{...ce,panelUI:{...ce.panelUI,[vt]:kt}}}case"settings:set:layout":{const{dir:vt,type:kt,val:Yt}=je,Xn={...ce.layout,[vt]:{...ce.layout[vt],[kt]:Yt}};return{...ce,layout:Xn}}case"settings:update:layout:preference":{const{layout_information:vt}=je;return{...ce,layout:{...vt}}}case"linkSettings:update:collapseKeySet":return{...ce,collapseKeySet:je.collapseKeySet};case"setting:select:carousel:image":return{...ce,selectCarouselImageIndex:je.selectCarouselImageIndex};case"settings:set:select:option":return{...ce,option:je.option};case"settings:set:select:option:node":return{...ce,option:{...ce.option,node:je.node}};case"settings:update:varList":return{...ce,varList:je.varList};case"settings:update:currentAppearRefStyle":return{...ce,currentAppearRefStyle:je};case"settings:update:currentTextRefStyle":return{...ce,currentTextRefStyle:je};default:return ce}}const Ae={collaborators:[],checked:!1},Ce={isVersionManagementPaneShow:!1,allVersions:[],fetched:!1,fetching:!1,isCreating:!1,currentEditing:void 0,currentViewing:void 0,currentDeleting:void 0,currentResetting:void 0,currentCollaborators:Ae,isMemberManager:!1,versionResetNoticeInfo:void 0,filter:"all"},_e=function(ce,Pt){ce===void 0&&(ce=Ce);let{type:Mt,payload:je}=Pt;switch(Mt){case"versions:set:versions":return{...ce,allVersions:je.versions};case"versions:update":return{...ce,...je};case"versions:create":return{...ce,allVersions:[je.newVersion,...ce.allVersions]};case"versions:model:deleting:open":return{...ce,currentDeleting:je.currentDeleting};case"versions:model:deleting:close":return{...ce,currentDeleting:void 0};case"versions:model:resetting:open":return{...ce,currentResetting:je.currentResetting,currentCollaborators:je.currentCollaborators};case"versions:model:resetting:close":return{...ce,currentResetting:void 0,currentCollaborators:Ae};case"versions:model:resetting:cllaborators:confirm":return{...ce,currentCollaborators:{...ce.currentCollaborators,checked:!0}}}return ce},Ge={alreadyExpandKeySet:new Set,expandKeySet:new Set,STPanelWidth:ke.xM,STPanelMaxWidth:1/0};function Xe(ce,Pt){ce===void 0&&(ce=Ge);const{type:Mt,payload:je}=Pt;switch(Mt){case"STPanel:clear":return Ge;case"STPanel:update":return Object.assign({},ce,je);case"STPanel:add:alreadyExpandKeySet":{const vt=new Set(ce.alreadyExpandKeySet);return vt.add(je.key),Object.assign({},ce,{alreadyExpandKeySet:vt})}case"STPanel:delete:alreadyExpandKeySet":{const vt=new Set(ce.alreadyExpandKeySet);return vt.delete(je.key),Object.assign({},ce,{alreadyExpandKeySet:vt})}case"STPanel:toggle:expandKeySet":{const{expandKeySet:vt}=je;return{...ce,expandKeySet:vt}}default:return ce}}const Ue={show:!1};function pt(ce,Pt){ce===void 0&&(ce=Ue);const{type:Mt,payload:je}=Pt;switch(Mt){case"newbieVideoPanelState:toggle":{const vt=(je==null?void 0:je.show)!==void 0?je==null?void 0:je.show:!ce.show;return{...ce,show:vt}}default:return ce}}const Ye=(0,n.HY)({rightPanel:pe.xK,settingPanel:Ee,versions:_e,STPanel:Xe,newbieVideoPanel:pt}),Qe={showAIModal:!1,currentAiComponent:null,showAIGuide:!1,agentAiPoints:void 0,aiGenerating:!1,userInputObj:{userInput:""},aiTaskID:"",switchIsChat:!1,showAISemantic:!1,historySemanticValue:"",showAISemanticTip:!0,showAIChatPanel:!1};function lt(ce,Pt){ce===void 0&&(ce=Qe);let{type:Mt,payload:je}=Pt;switch(Mt){case"ai:update:state":return{...ce,...je};case"ai:update:showAIGuide":return{...ce,showAIGuide:je};case"ai:update:agentAiPoints":return{...ce,agentAiPoints:je};case"ai:update:aiGenerating":return{...ce,aiGenerating:je};case"ai:update:aiTaskID":return{...ce,aiTaskID:je};case"ai:update:switchIsChat":return{...ce,switchIsChat:je};case"ai:update:showAISemanticTip":return{...ce,showAISemanticTip:je};case"ai:update:showAIChatPanel":return{...ce,showAIChatPanel:je};default:return ce}}var tt=e(67526);const qe={show:!1,position:{top:52,left:215},openFrom:null,defaultTab:void 0,isShowClose:!0,canShowAllTab:!0,aiTextAutoSearch:!1};function et(ce,Pt){ce===void 0&&(ce=qe);const{type:Mt,payload:je}=Pt;switch(Mt){case"autoFillPanel:update":return{...ce,...je};case"autoFillPanel:set:show":return{...ce,show:je.show};case"autoFillPanel:reset:state":{const vt=(0,u.Yt)(tt.i,52,u.qW.Number),kt=(0,u.Yt)(tt.W,215,u.qW.Number);return{...ce,show:!1,openFrom:null,position:{top:vt,left:kt}}}case"autoFillPanel:set:position":{const{position:vt}=je;return(0,u.a0)(tt.i,vt.top,u.qW.Number),(0,u.a0)(tt.W,vt.left,u.qW.Number),{...ce,position:vt}}default:return ce}}const st={show:!1,position:{top:0,left:0},byCanvasLayers:!1,byComponentList:!1,canPaste:!1,canPasteProperties:!1};function at(ce,Pt){ce===void 0&&(ce=st);const{type:Mt,payload:je}=Pt;switch(Mt){case"open:contextmenu":return{...ce,show:!0,position:je.position,byComponentList:je.byComponentList||!1,byCanvasLayers:je.byCanvasLayers||!1,canPaste:je.canPaste||!1,canPasteProperties:je.canPasteProperties||!1};case"close:contextmenu":return{...ce,show:!1};default:return ce}}var ct=e(75627);const rt={show:!1,position:{top:56,left:ke.CN+98+8},findWidgetList:[],findWidgetPanelList:[],findSelectWidgetCid:"",searchValue:"",status:ct.nW.normal,selectScreenValue:"current",selectIndex:1,replaceValue:"",isFocusPanel:!1,isFold:!0};function At(ce,Pt){ce===void 0&&(ce=rt);const{type:Mt,payload:je}=Pt;switch(Mt){case"findReplacePanel:update":return{...ce,...je};case"findReplacePanel:set:position":{const{position:vt}=je;return(0,u.a0)(ct.nb,vt.top,u.qW.Number),(0,u.a0)(ct.Zz,vt.left,u.qW.Number),{...ce,position:vt}}case"findReplacePanel:reset:state":{const vt=(0,u.Yt)(ct.nb,56,u.qW.Number),kt=(0,u.Yt)(ct.Zz,217,u.qW.Number);return{...rt,position:{top:vt,left:kt}}}case"findReplacePanel:clear:result":return{...ce,findWidgetList:[],findWidgetPanelList:[],findSelectWidgetCid:"",status:ct.nW.normal,selectIndex:1};default:return ce}}const ot={activeLinkCid:[],linkMap:{},selectLinkItem:null,linkNodeList:[],allLinkNodeList:[],hasLinkNodeList:[],selectOptionLinkItem:null,clickedLink:void 0};function Tt(ce,Pt){ce===void 0&&(ce=ot);const{type:Mt,payload:je}=Pt;switch(Mt){case"links:update:has-link-node-list":return(0,w.MK)(ce,"hasLinkNodeList",je.hasLinkNodeList);case"links:update:link-node-list":return(0,w.MK)(ce,"linkNodeList",je.linkNodeList);case"links:update:all-link-node-list":return(0,w.MK)(ce,"allLinkNodeList",je.allLinkNodeList);case"links:active:link":return(0,w.MK)(ce,"activeLinkCid",je.cid);case"update:link:selectLinkItem":return(0,w.MK)(ce,"selectLinkItem",je);case"update:link:selectOptionLinkItem":return(0,w.MK)(ce,"selectOptionLinkItem",je.selectOptionLinkItem);case"links:clickedLink:update":return(0,w.MK)(ce,"clickedLink",je.clickedLink);case"links:singleSelectLink:update":return(0,w.MK)(ce,"singleSelectLink",je.singleSelectLink);default:return ce}}const ft={comboGroupRemoveModal:{isOpen:!1},masterCreateModal:{isOpen:!1,template:null,isCreateByPanel:!1},masterDeleteModal:{isOpen:!1},linkBackModal:{open:!1},screenDupModal:{isOpen:!1,screenTreeNodeList:null},screenTransferModal:{isOpen:!1,screenMetaList:[]},screenRemovalModal:{isOpen:!1,screenTreeNode:null},screenTrashModal:{isOpen:!1,screens:[]},previewModal:{isOpen:!1,template:null},workspaceConfirmAsyncModal:{isOpen:!1},designTransferModal:{isOpen:!1},assetGroupRemoveModal:{isOpen:!1},loginModal:{isOpen:!1},teamSelectModal:{isOpen:!1},designCreateWithGroupModal:{isOpen:!1},assetCreateWithGroupModal:{isOpen:!1},noticeModal:{isOpen:!1},optionRemoveModal:{isOpen:!1},doNotLeaveProjectModal:{isOpen:!1},nestedDynamicModal:{isOpen:!1},secondaryConfirmModal:{isOpen:!1},preOpenHyperlinkModal:{isOpen:!1},helpCenterModal:{isOpen:!1},couponReceivedModal:{isOpen:!1},mockittGuideModal:{isOpen:!1},rightsAndInterestsModal:{isOpen:!1},orgFullBeyondNotice:{isOpen:!1},resourcePurchaseModal:{isOpen:!1},resourcesPaidSuccessModal:{isOpen:!1},managePageModal:{isOpen:!1},imagePreviewModal:{isOpen:!1},previewComboModal:{isOpen:!1},upgradeComboModal:{isOpen:!1},chargeModal:{isOpen:!1},projectSummaryModal:{isOpen:!1},flpakSizeWarnModal:{isOpen:!1},newbieVideoModal:{isOpen:!1,index:0},comboUploadModal:{isOpen:!1,cgCid:"",projectUpperCid:"",teamCid:"",comboName:""},chartTableSettingModal:{isOpen:!1},previewCanvasModal:{isOpen:!1,projectAlike:null,activePageKey:"",activeCanvasKey:"",width:0,height:0},isDragOrResizeModal:!1,widgetOperationLayoutModal:{isOpen:!1},colorPickerDownloadModal:{isOpen:!1},mcpTokenModal:{isOpen:!1},mktWMExportModal:{isOpen:!1},mktWMUngroupModal:{isOpen:!1},libPanelModal:{isOpen:!1,type:"color"},libEditColorModal:{isOpen:!1},libEditAppearModal:{isOpen:!1},libEditTextModal:{isOpen:!1},manageStyleLibModal:{isOpen:!1},templateModal:{isOpen:!1,keyword:""},templateFileDetialModal:{isOpen:!1},resourcesSnapshotPreviewModal:{isOpen:!1},widgetModal:{isOpen:!1},widgetComboPreviewModal:{isOpen:!1},imageModal:{isOpen:!1},iconModal:{isOpen:!1},less12FontSizeTipsModal:{isOpen:!1,position:null},canvasConvertedToPixsoModal:{isOpen:!1}};function Nt(ce,Pt){ce===void 0&&(ce=ft);const{type:Mt,payload:je}=Pt;switch(Mt){case"modal:update:state":return{...ce,...je};case"modal:update:libPanelModal:position":return{...ce,libPanelModal:{...ce.libPanelModal,position:je}};case"modal:update:libEditAppearModal:attrs":return{...ce,libEditAppearModal:{...ce.libEditAppearModal,attrs:je}};case"modal:update:libEditTextModal:attrs":return{...ce,libEditTextModal:{...ce.libEditTextModal,attrs:je}};case"modal:update:confirm:state":return{...ce,workspaceConfirmAsyncModal:je};case"modal:reset:state":return ft;case"modal:reset:popup:state":{const{modalName:vt}=je;return{...ce,[vt]:ft[vt]}}case"modal:reset:preview:modal:state":return{...ce,previewCanvasModal:ft.previewCanvasModal,previewModal:ft.previewModal,previewComboModal:ft.previewComboModal};case"modal:open:templateModal":return{...ce,templateModal:{...ft.templateModal,isOpen:!0,...je}};case"modal:toggle:less12FontSizeTipsModal":{const{less12FontSizeTipsModal:vt}=ce;return{...ce,less12FontSizeTipsModal:{...vt,isOpen:!vt.isOpen,...je}}}default:return ce}}const Bt={theme:ke.Sx.LIGHT,ruler:!0,showRulerReferLine:!0,showAlignLine:!0,linkDisplay:1,showToolTip:!0,showDragMode:!0,showPreference:!1,preferenceNav:"common",flags:0,flags2025:0,isContainSelect:!0,guideState:!1,isShowUserGuideModel:!1,builtinListInvisible:new Set,showFsWarning:!0,stateLinkDefaultTransition:0,panelLinkDefaultTransition:1,openOverlayDefaultTransition:0,swapOverlayDefaultTransition:0,recentlyUsedScreenMetaIcons:new Set,useNativeEyedropper:!1,autoFillHistory:{},colorPanelMode:null,isShowMultiCursor:!0,layout:"recommend",layoutV8:"recommend",layoutV9:"recommend"};function zt(ce,Pt){ce===void 0&&(ce=Bt);const{type:Mt,payload:je}=Pt;switch(Mt){case"preference:update:state":return{...ce,...je};case"preference:open:appearance":return{...ce,showPreference:!ce.showPreference};default:return ce}}var Xt=e(97267);const bt=(0,n.HY)({ai:lt,autoFillPanel:et,contextmenu:at,findReplacePanel:At,linklist:Tt,modals:Nt,preference:zt,htmlImportReducer:Xt.b}),jn={showShortCutArtBoard:!1,isShowNps:!1,isDragLink:!1,isDragAnnotationBindingPoint:!1,draggingStickyKey:"",basketPathCacheTag:0,isAdjustOverlayRelPos:!1};function xo(ce,Pt){ce===void 0&&(ce=jn);const{type:Mt,payload:je}=Pt;switch(Mt){case"artboard:update:state":return{...ce,...je};case"toggle:showShortCutArtBoard":return{...ce,showShortCutArtBoard:!ce.showShortCutArtBoard};case"hide:showShortCutArtBoard":return{...ce,showShortCutArtBoard:!1};case"update:isShowNps":return{...ce,isShowNps:je.isShowNps};default:return ce}}const Po=(0,n.HY)({toolbar:v,leftLayout:Pe,rightLayout:Ye,fixedLayout:bt,artboard:xo}),Gn="AI_COMPONENT_CURSOR_HAS_SHOWN",yo=16,Ve={isInAIComponentCreateMode:!1,isInAIComponentSnapshotMode:!1,createStartPoint:null,createEndPoint:null,isDraggingMouse:!1,editingAIComponentInfo:null,floatBarOperationMap:{},requestLoading:{isLoading:!1,key:""},editInputAreaText:"",isOptimumLoading:!1,isShowAIComponentTextCursor:!(0,u.kV)(Gn),isShowInputContainer:!1,isShowThinkingMode:!1,withoutStreamingKeyList:[]};function ut(ce,Pt){ce===void 0&&(ce=Ve);const{type:Mt,payload:je}=Pt;switch(Mt){case"ai-component:update:isInAIComponentCreateMode":return Object.assign({},ce,{isInAIComponentCreateMode:je.isInAIComponentCreateMode});case"ai-component:update:isInAIComponentSnapshotMode":return Object.assign({},ce,{isInAIComponentSnapshotMode:je.isInAIComponentSnapshotMode});case"ai-component:update:createStartPoint":return Object.assign({},ce,{createStartPoint:je.createStartPoint});case"ai-component:update:createEndPoint":return Object.assign({},ce,{createEndPoint:je.createEndPoint});case"ai-component:update:isDraggingMouse":return Object.assign({},ce,{isDraggingMouse:je.isDraggingMouse});case"ai-component:update:editingAIComponentInfo":return Object.assign({},ce,{editingAIComponentInfo:{...ce.editingAIComponentInfo||{},...je.updateInfo}});case"ai-component:clear:editingAIComponentInfo":return Object.assign({},ce,{editingAIComponentInfo:null});case"ai-component:update:floatBarOperationMap":return Object.assign({},ce,{floatBarOperationMap:{...ce.floatBarOperationMap,[je.key]:je.floatBarOperation}});case"ai-component:clear:floatBarOperation":return Object.assign({},ce,{floatBarOperationMap:{...ce.floatBarOperationMap,[je.key]:void 0}});case"ai-component:update:requestLoading":return Object.assign({},ce,{requestLoading:{...je}});case"ai-component:clear:requestLoading":return Object.assign({},ce,{requestLoading:{isLoading:!1,key:""}});case"ai-component:update:editInputAreaText":return Object.assign({},ce,{editInputAreaText:je.editInputAreaText});case"ai-component:update:isOptimumLoading":return Object.assign({},ce,{isOptimumLoading:je.isOptimumLoading});case"ai-component:update:isShowAIComponentTextCursor":return Object.assign({},ce,{isShowAIComponentTextCursor:je.isShowAIComponentTextCursor});case"ai-component:update:isShowInputContainer":return Object.assign({},ce,{isShowInputContainer:je.isShowInputContainer});case"ai-component:update:isShowThinkingMode":return Object.assign({},ce,{isShowThinkingMode:je.isShowThinkingMode});case"ai-component:add:withoutStreamingKey":return Object.assign({},ce,{withoutStreamingKeyList:Array.from(new Set([...ce.withoutStreamingKeyList,je.key]))});case"ai-component:remove:withoutStreamingKey":return Object.assign({},ce,{withoutStreamingKeyList:ce.withoutStreamingKeyList.filter(vt=>vt!==je.key)});default:return ce}}const Kt={isExportMenuShow:!1,type:"",progress:0,loading:!1,downloadFileName:"",downloadable:null,pdfDimensionExceeded:!1,canvasDimensionExceeded:!1,isWidgetBeingExported:!1,currentExportTag:"png"};function St(ce,Pt){ce===void 0&&(ce=Kt);const{type:Mt,payload:je}=Pt;switch(Mt){case"export:update:state":return{...ce,...je};case"export:reset:state":return Kt;case"export:reset:loading":return{...Kt,isExportMenuShow:!0}}return ce}const fn=(0,n.HY)({exportmanager:St}),En={newSelection:[],selectionUndone:!1,hoverItem:"",echoItem:"",hoverPanel:"",itemQueryMap:{},ghostItemCids:[],linkListBeingCreated:[],layerListCacheTag:0};function gn(ce,Pt){ce===void 0&&(ce=En);const{type:Mt,payload:je}=Pt;switch(Mt){case"selection:clear:state":return{...ce,...En};case"selection:update:state":return{...ce,...je};case"selection:update:widgetStore":return{...ce,...je};case"set:hover:panel":return{...ce,hoverPanel:je.cid};case"set:echo:item":return{...ce,echoItem:je.cid};case"clear:echo:item":return{...ce,echoItem:""};case"selection:select:items":{const{cids:vt}=je;return{...ce,newSelection:vt}}case"selection:reverse:select:items":{const{cids:vt,originalSelection:kt}=je,Yt=[...kt];return vt.forEach(Xn=>{const Do=Yt.indexOf(Xn);Do===-1?Yt.push(Xn):Yt.length!==1&&Yt.splice(Do,1)}),{...ce,newSelection:Yt}}case"selection:unselect:items":{const vt=ce.newSelection.filter(kt=>!je.cids.includes(kt));return{...ce,newSelection:vt}}case"selection:clear":return{...ce,newSelection:[],hoverItem:"",editingCid:""};case"linklist_beingcreated:update:state":return{...ce,linkListBeingCreated:je.linkListBeingCreated};default:return ce}}const Yn=(0,n.HY)({widgetTree:gn});var Pn=e(99917);const _n={isEditingImageWrapperCid:"",currentImageOperateType:"",currentImageClipSelected:Pn.Q7.cutFrame};function Fn(ce,Pt){ce===void 0&&(ce=_n);const{type:Mt,payload:je}=Pt;switch(Mt){case"image:update:state":return{...ce,...je};default:return ce}}const Nn={editMindKey:"",selectedMindNodeKeys:[],selectedMindNodeFlagIconKey:"",selectedMindNodeImageKey:"",isShowMindNodeMenu:!1,draggingState:{isDragging:!1,position:{x:0,y:0},mousePosition:{x:0,y:0}},isShallowEditText:!1,isEditingSelectAll:!1,isEditingMoveToEnd:!1};function io(ce,Pt){ce===void 0&&(ce=Nn);let{type:Mt,payload:je}=Pt;switch(Mt){case"mind:update:state":return{...ce,...je};case"mind:update:state:selectedMindNodeKeys":{const vt=je.selectedMindNodeKeys,kt=!!vt.length;return{...ce,selectedMindNodeKeys:vt,selectedMindNodeFlagIconKey:"",selectedMindNodeImageKey:"",isShallowEditText:kt}}case"mind:update:draggingState":return{...ce,draggingState:{...ce.draggingState,...je}};case"mind:clear:edit:state":return{...ce,selectedMindNodeKeys:[],selectedMindNodeFlagIconKey:"",selectedMindNodeImageKey:"",isShallowEditText:!1,isEditingSelectAll:!1,isEditingMoveToEnd:!1};case"mind:exit:edit:state":return{...ce,editMindKey:"",selectedMindNodeKeys:[],selectedMindNodeFlagIconKey:"",selectedMindNodeImageKey:"",isShallowEditText:!1,isEditingSelectAll:!1,isEditingMoveToEnd:!1};case"mind:update:isShallowEditText":return{...ce,isShallowEditText:je};case"mind:update:isEditingSelectAll":return{...ce,isEditingSelectAll:je};case"mind:update:isEditingMoveToEnd":return{...ce,isEditingMoveToEnd:je};default:return ce}}const to={selectTableCellInfo:null,selectCopyCell:null,isShowTableMenu:!1,tableCopyInfo:null,widget:null,isResizeCell:!1,isMouseDownInTable:!1,isEditTable:!1,inspectTableInfo:{selectCellInfo:null,hoverCellInfo:null},isMovingInDrag:!1,isDragging:!1,isShowTableDragMenu:!1,tableRightClickDragInfo:{isHorizontal:!1,index:0}};function go(ce,Pt){ce===void 0&&(ce=to);let{type:Mt,payload:je}=Pt;switch(Mt){case"table:update:info":return{...ce,...je};case"table:update:inspect:info":return{...ce,inspectTableInfo:{...ce.inspectTableInfo,...je}};default:return ce}}var Io=e(64972),co=e(78915);const On={activeTearKey:"",STMode:!1,isDraggingWTear:!1,tearOffset:{left:0,top:0},isShowTearSticky:!1,isLeftDown:!1,fakeBindingInfo:{stickyKey:"",bindingKey:"",isBinded:!1},fakePointToDir:"l",prevBindingCanvasKey:""};function Cn(ce,Pt){ce===void 0&&(ce=On);const{type:Mt,payload:je}=Pt;switch(Mt){case"ST:clear":return On;case"ST:update":return Object.assign({},ce,je);case"ST:toggle:wTearLeftDown":{const{isLeftDown:vt,activeTearKey:kt}=je,{activeTearKey:Yt,isLeftDown:Xn}=ce;return Object.assign({},ce,{...je,isLeftDown:Yt!==kt?vt:!Xn,activeTearKey:kt,tearOffset:On.tearOffset})}case"ST:clear:fake-related":return{...ce,fakeBindingInfo:On.fakeBindingInfo,fakePointToDir:On.fakePointToDir,prevBindingCanvasKey:On.prevBindingCanvasKey};default:return ce}}const Je={activeElbowKey:"",startPickPoint:null,highlightAnchor:"",isDraggingElbow:!1,isDraggingElbowText:!1,isInElbowMode:!1,isShowWidgetPopup:!1,popupWorldPos:!1};function vn(ce,Pt){ce===void 0&&(ce=Je);const{type:Mt,payload:je}=Pt;switch(Mt){case"elbow:clear":return Je;case"elbow:update":return Object.assign({},ce,je);default:return ce}}var Jn=e(50036),ao=e(62485),no=e(73662),Oe=e(37780);const $n={bdrStyle:"solid",bdrColor:3149642751,bdrWidth:1,lastCreateKey:""};function $t(ce,Pt){ce===void 0&&(ce=$n);const{type:Mt,payload:je}=Pt;switch(Mt){case"pencil:update":return Object.assign({},ce,je);case"pencil:reset":return $n;case"pencil:update:lastCreateKey":return Object.assign({},ce,{lastCreateKey:je.lastCreateKey});case"pencil:clear:lastCreateKey":return Object.assign({},ce,{lastCreateKey:""});default:return ce}}const cn=(0,n.HY)({image:Fn,mind:io,table:go,smartSelection:Io.mg,mode:co.yl,ST:Cn,elbow:vn,swimlane:Jn.F,draft:ao.A,font:no.y.__reducer,interaction:Oe.R7.__reducer,pencil:$t}),yt=(0,n.HY)({data:Yn,state:cn});var Lt=e(40625),Wt=e(50353);const Jt={richTextEditorState:null,editingCid:"",alignment:{},sameSize:{},distributed:{},isDragClickWidget:!1,createTemplatesData:null,quickCreateWidget:null,quickCreateWidgetFrom:null,quickCreateBuiltinSceneData:"",rangeSelect:{isActive:!1,startX:0,startY:0},isDraggingCanvas:!1,showNumberLineType:"",resizingRadiusNum:0,defaultImageSlicingOffset:{x:0,y:0},cursorPos:null,addVectorSource:null,dragEventState:{isActive:!1,isToLockDragAxis:!1,worldPosPreDrag:null,worldPosOnDrag:null,eventOnDrag:null,keyRndSupAtWorldPosPreDrag:null,keyCanvasAtWorldPosPreDrag:null,boundTearKeyList:[],preDragSnapshot:{}},resizeEventState:{isActive:!1,preResizeSnapshot:{}},domVisibilityState:!0};function In(ce,Pt){ce===void 0&&(ce=Jt);const{type:Mt,payload:je}=Pt;switch(Mt){case"update:screenContainer:state":return{...ce,...je};case"start:range:select":return{...ce,rangeSelect:{isActive:!0,...je}};case"clear:range:select":return{...ce,rangeSelect:{isActive:!1,startX:0,startY:0}};case"end:range:select":return{...ce,rangeSelect:Jt.rangeSelect};case"set:rich:text:editor:state":return{...ce,richTextEditorState:je.richTextEditorState};case"clear:rich:text:editor:state":return{...ce,richTextEditorState:null};case"set:editing:cid":return{...ce,editingCid:je.cid};case"set:quick-create-widget":return{...ce,quickCreateWidget:je.widget,quickCreateWidgetFrom:je.quickCreateWidgetFrom||Wt.Hq.shortCut,quickCreateBuiltinSceneData:je.quickCreateBuiltinSceneData||""};case"set:alignment":return{...ce,alignment:je.alignment};case"set:sameSize":return{...ce,sameSize:je.sameSize};case"set:distributed":return{...ce,distributed:je.distributed};case"selection:toggle:canvas:dragging":return{...ce,isDraggingCanvas:je.isDraggingCanvas};case"set:numberLineType:show":return{...ce,showNumberLineType:je.type};case"set:resizing:radius:num":return{...ce,resizingRadiusNum:je.resizingRadiusNum};case"update:drag-event:state":return{...ce,dragEventState:{...ce.dragEventState,...je}};case"reset:drag-event:state":return{...ce,dragEventState:Jt.dragEventState};case"update:resize-event:state":return{...ce,resizeEventState:{...ce.resizeEventState,...je}};case"reset:resize-event:state":return{...ce,resizeEventState:Jt.resizeEventState};default:return ce}}var Ln=e(1076);const hn={attr:"",attrPanel:"",supAttr:"",reGetRefColorStyleCacheTag:0,position:{top:0,left:0},color:{fill:"solid",fillIsVisible:!0,solidColor:3149642751},colorInputOption:"HEX",currentSelect:"favorite",historyColors:[],favoriteColors:[],isEyedroppedOpen:!1,colorPickerListener:()=>null,isShowColorList:!0};function _o(ce,Pt){ce===void 0&&(ce=hn);const{type:Mt,payload:je}=Pt;switch(Mt){case"colorpanel:set:state":return{...ce,...je};case"colorpanel:set:attr":{const kt=je.attr&&je.attr===ce.attr?"":je.attr;return{...ce,attr:kt}}case"colorpanel:set:supAttr":return{...ce,supAttr:je.supAttr};case"colorpanel:set:reGetRefColorStyleCacheTag":return{...ce,reGetRefColorStyleCacheTag:je};case"colorpanel:set:attrPanel":return{...ce,attrPanel:je.attrPanel};case"colorpanel:set:position":return{...ce,position:je.position};case"colorpanel:set:color":return{...ce,color:je.color};case"colorpanel:set:historyColors":return{...ce,historyColors:je.historyColors};case"colorpanel:set:favoriteColors":return{...ce,favoriteColors:je.favoriteColors};case"colorpanel:set:currentSelect":return{...ce,currentSelect:je.currentSelect};case"colorpanel:set:isShowColorList":return{...ce,isShowColorList:je.isShowColorList};case"colorpanel:set:colorInputOption":return{...ce,colorInputOption:je.colorInputOption};case"colorpanel:set:colorPickerListener":return{...ce,colorPickerListener:je.colorPickerListener};case"colorpanel:set:eyedropperStatus":return{...ce,isEyedroppedOpen:je.isEyedroppedOpen};default:return ce}}var vo=e(36666),Qn=e(99306);const He={isCurrentProjectSclib:!1,currentManagePanel:"home",detailLib:{key:"local"},teamLibList:[],recommendLibList:[],addedLibList:[],usedLibList:[],localStyleUpdateDiff:{chg:[],add:[],del:[],noChg:[]},isLoadedNeedUpdateLibs:!1,needUpdateLibs:[]},Re={isLoadedInitialData:!1,cacheLocalLibTag:0,collapseGroupKeySet:new Set,localStyleStore:Qn.o,textStyleTree:null,colorStyleTree:null,appearStyleTree:null,libSdkStoreMap:new Map,...He,isFetchMubanData:!1,libMubanTreeMap:new Map,mubanDetailLib:null,currentMubanFolderData:null,collapseMubanFolderKeySet:new Set};function De(ce,Pt){ce===void 0&&(ce=Re);const{type:Mt,payload:je}=Pt;switch(Mt){case"style-lib:set:attr":return{...ce,...je};case"style-lib:reset:manage:attr":return{...ce,currentManagePanel:"home"};case"style-lib:set:needUpdateLibs":return{...ce,needUpdateLibs:je!=null?je:[]};case"style-lib:set:currentMubanFolderData":return{...ce,currentMubanFolderData:je};case"style-lib:set:localStyleStore":return{...ce,localStyleStore:je};case"style-lib:update:collapseGroupKeySet":{const{key:kt}=je,Yt=new Set(ce.collapseGroupKeySet);return ce.collapseGroupKeySet.has(kt)?Yt.delete(kt):Yt.add(kt),{...ce,collapseGroupKeySet:Yt}}case"style-lib:update:collapseMubanFolderKeySet":{const{key:kt}=je,Yt=new Set(ce.collapseMubanFolderKeySet);return ce.collapseMubanFolderKeySet.has(kt)?Yt.delete(kt):Yt.add(kt),{...ce,collapseMubanFolderKeySet:Yt}}case"style-lib:set:currentManagePanel":return{...ce,currentManagePanel:je};case"style-lib:add:addedLibList":{const kt=ce.addedLibList.concat(je);return{...ce,addedLibList:kt}}case"style-lib:remove:addedLibList":{const kt=ce.addedLibList.filter(Yt=>Yt.key!==je.key);return{...ce,addedLibList:kt}}case"style-lib:remove:usedLibList":{const kt=ce.usedLibList.filter(Yt=>Yt.key!==je.key);return{...ce,usedLibList:kt}}case"style-lib:add:usedLibList":{const kt=ce.usedLibList.concat(je);return{...ce,usedLibList:kt}}case"style-lib:set:libSdkStoreMap":{const{key:kt,value:Yt,type:Xn="new"}=je,Do=new Map(ce.libSdkStoreMap);return Xn==="new"&&!Do.has(kt)?(Do.set(kt,Yt),{...ce,libSdkStoreMap:Do}):Xn==="update"?(Do.set(kt,Yt),{...ce,libSdkStoreMap:Do}):ce}case"style-lib:del:needUpdateLibs":{var vt;const{key:kt}=je;return{...ce,needUpdateLibs:(vt=ce.needUpdateLibs)==null?void 0:vt.filter(Yt=>(Yt==null?void 0:Yt.key)!==kt)}}case"style-lib:update:libMubanTreeMap":{const{key:kt,val:Yt}=je,Xn=new Map(ce.libMubanTreeMap);return Xn.set(kt,Yt),{...ce,libMubanTreeMap:Xn}}case"style-lib:update:mubanDetailLib":return{...ce,mubanDetailLib:je};default:return ce}}const Be={rulerConfig:null,rulerLineCanvas:null,selectedLine:[],draggingLine:null,isDeleteLine:!1,isDraggingLine:!1,rulerRect:{startX:0,startY:0}};function $e(ce,Pt){ce===void 0&&(ce=Be);const{type:Mt,payload:je}=Pt;switch(Mt){case"ruler:update:state":return{...ce,...je}}return ce}const Ze=(0,n.HY)({ruler:$e}),nt={offset:{x:0,y:0},scale:100,selectionAttrs:{}};function mt(ce,Pt){switch(ce===void 0&&(ce=nt),Pt.type){case"design:set:canvas:offset":return{...ce,offset:Pt.payload.offset};case"design:set:scale":return{...ce,scale:Pt.payload.scale};case"design:set:scale-and-offset":return{...ce,scale:Pt.payload.scale,offset:Pt.payload.offset};case"set:selection:attrs":return{...ce,selectionAttrs:Pt.payload.attrs};default:return ce}}const xt=(0,n.HY)({dom:o,flag:i,common:mt,current:s,taskList:Lt.A,comment:l.A,aiComponent:ut,colorpanel:_o,screencontainer:In,projectAccess:Ln.Ay,ui:Po,plugin:fn,editor:yt,watermark:vo.A,editorPlugin:Ze,lib:De});var gt=e(12211),wt=e(79287),Zt=e.n(wt),Ft=e(70933),Gt=e(67052),Dt=e(81973),Qt=e(67588),Ct=e(60651),yn=e(20315);const rn=ce=>ce.comment.isInCommentMode;var Rt=e(83414),Dn=e(47695),To=e(83744),mo=e(47163);const ro=14637,Bn=()=>{if(window.WUES)return;const ce=document.createElement("script");ce.type="text/javascript",ce.src="https://msg.wondershare.cc/NPS/sdk/user_evaluation_system_sdk.js?t="+new Date().getTime(),document.head.appendChild(ce)},Ao=ce=>{let{theme:Pt,scene:Mt="MD_NPS3.0",sp:je="bottom_right",pos:vt,width:kt=328}=ce;if(window.WUES){const Yt=(0,mo.w)()==="en"?"en":"zh-cn",{paid:Xn,expired:Do,wsid:Uo}=MB.user||{},jo=Xn&&!Do?2:1;window.WUES.popup({lang:Yt,theme:Pt,w:kt,sp:je,pos:vt,source:{uid:Uo||"",ut:jo,pid:ro,pv:"1.0.0",ps:"web",scene:Mt}})}};var uo=e(7865);const Jo=(0,gt.Mz)([yn.Lc,rn,Dt.TW,Ct.jx],(ce,Pt,Mt,je)=>je===co.qi.OnlyView||ce||Pt?Mt:ke.xM),$o=ce=>Zt()(ce.created_at).isAfter(Zt()("2024-04-10"))?!0:Zt()(ce.created_at).isBefore(Zt()("2024-04-10"))&&Math.abs(Zt()(ce.created_at).diff(Zt()(),"day"))>=180,po={"entry:init:design:degreeOfSatisfaction":ce=>{let{getState:Pt,dispatch:Mt}=ce;const je=Pt(),vt=(0,Ft.HW)(je),kt=(0,Ft.PL)(je),{isDesign:Yt}=(0,Ft.W4)(je);if(/^.*modao.cc/.test(location.hostname)&&Yt&&!ENV.IS_ON_PREMISES&&!ENV.IS_MO&&vt){var Do;const Uo=(0,Dn.yX)(),jo=(0,Qt.O4)(je),as=!!(0,u.kV)(Rt.nM),gs=$o(vt);as&&gs&&Uo!=null&&Uo.isCompleted&&Ao({theme:jo,pos:{bottom:20,right:335}}),Uo!=null&&Uo.isCompleted&&(kt==null?void 0:kt.scene_tag)==="axure_import"&&(kt==null||(Do=kt.attr)==null?void 0:Do.from)!=="mdrp"&&(kt==null?void 0:kt.owner_id)===(vt==null?void 0:vt.id)&&Math.abs(Zt()(kt==null?void 0:kt.created_at).diff(Zt()(),"day"))<=3&&Ao({theme:jo,scene:"MD_Axure_import",width:337,pos:{bottom:20,right:335}})}},"entry:observe:dom:left-panel-width":ce=>{let{getState:Pt,dispatch:Mt}=ce;const je=Pt(),vt=(0,Gt.uE)(je),Yt=(0,Qt.bP)(je)==="old_right"?0:ke.fn,Xn=window.innerWidth-(ke.K_+vt+Yt);Mt({type:"right-side-panel:update:resize:maxWidth",payload:{width:Xn}})},"entry:observe:dom:right-panel-width":ce=>{let{getState:Pt,dispatch:Mt}=ce;const je=Pt(),vt=Jo(je),Yt=(0,Qt.bP)(je)==="old_right"?0:ke.fn,Xn=window.innerWidth-(ke.K_+vt+Yt);Mt({type:"left-panel:update:max-width",payload:{screenListMaxWidth:Xn}})},"entry:init:preference":(ce,Pt)=>{var Mt,je,vt,kt,Yt,Xn,Do;let{dispatch:Uo}=ce,{payload:{preference:jo}}=Pt;const as=new Set(JSON.parse(jo.builtin_list_invisible)),gs=new Set(JSON.parse(jo.recently_used_screen_meta_icons||"[]")),Eo=!jo.theme||jo.theme==="grey"?ke.Ke.theme:jo.theme,ws={grid:jo.grid,gridSize:jo.grid_Size||ke.Ke.grid_size,ruler:jo.ruler,flags:jo.flags,showRulerLine:jo.show_ruler_line,showAlignLine:jo.show_align_line,showDragMode:jo.show_drag_mode,inheritTextStyle:jo.inherit_text_style,containSelect:jo.contain_select,theme:Eo,showToolTip:jo.show_tooltip,layoutInformation:jo.layout_information,showFsWarning:jo.show_fs_warning,iconColor:jo.icon_color,iconSize:jo.icon_size,linkDisplay:jo.link_display,historyColors:jo.history_colors,favoriteColors:jo.favorite_colors,historyColorsV2:jo.history_colors_v2,favoriteColorsV2:jo.favorite_colors_v2,builtinListInvisible:as,useNativeEyedropper:jo.use_native_eyedropper,stateLinkDefaultTransition:jo.state_link_default_transition,panelLinkDefaultTransition:jo.panel_link_default_transition,openOverlayDefaultTransition:jo.open_overlay_default_transition,swapOverlayDefaultTransition:jo.swap_overlay_default_transition,recentlyUsedScreenMetaIcons:gs,autoFillHistory:JSON.parse((Mt=jo.auto_fill_history)!=null?Mt:"{}"),colorPanelMode:jo.color_panel_mode,isShowMultiCursor:(je=jo.is_show_multi_cursor)!=null?je:!0,layout:(vt=jo.layout)!=null?vt:"recommend",layoutV8:(kt=jo.layout_v8)!=null?kt:"recommend",layoutV9:(Yt=jo.layout_v9)!=null?Yt:"recommend",defaultFontFamily:JSON.parse((Xn=jo.default_font_family)!=null?Xn:"{}"),defaultFontSize:JSON.parse((Do=jo.default_font_size)!=null?Do:"{}")};(0,To.SO)(ws.inheritTextStyle),Object.keys(ws.defaultFontFamily).length>0&&(0,uo.$R)(uo.RF,ws.defaultFontFamily),Object.keys(ws.defaultFontSize).length>0&&(0,uo.$R)(uo.Q6,ws.defaultFontSize),Uo({type:"preference:update:state",payload:ws})},"entry:update:ui:by:preference":ce=>{var Pt;let{getState:Mt,dispatch:je}=ce;const vt=Mt(),{ui:{fixedLayout:{preference:kt}}}=vt,Yt=JSON.parse(kt.historyColorsV2||"[]"),Xn=JSON.parse(kt.favoriteColorsV2||"[]");if(kt.layoutInformation){const Uo=JSON.parse(kt.layoutInformation);Uo&&je({type:"settings:update:layout:preference",payload:{layout_information:Uo}})}const Do=(0,Ft.PL)(vt);je({type:"settings:update:state",payload:{exportSettings:(Pt=Do.attr)==null?void 0:Pt.export_settings}}),je({type:"colorpanel:set:historyColors",payload:{historyColors:Yt}}),je({type:"colorpanel:set:favoriteColors",payload:{favoriteColors:Xn}})},"entry:update:ui:by:iconinfo":ce=>{let{getState:Pt,dispatch:Mt}=ce;const je=Pt(),{ui:{fixedLayout:{preference:vt}}}=je;vt.iconColor&&Mt({type:"icon-panel:set:default:color",payload:{iconDefaultColor:vt.iconColor}}),vt.iconSize&&Mt({type:"icon-panel:set:default:size",payload:{iconDefaultSize:vt.iconSize}})}};var us=e(78571),hs=e(10472),ht=e(67934),Ht=e(99587),nn=e(4235),en=e(20089),Un=e(18183),Kn=e(76431),Hn=e(93413),bo=e(70248),zn=e(20119),Vn=e(85584),Rn=e(53559),Mo=e(71862),wo=e(20640),dn=e(78401),pn=e(21489),ho=e(95106),Oo=e(89054),qn=e(9680),So=e(75006),Ut=e(25997),an=e(2099),wn=e(37253),xn=e(21856),mn=e(24437);const Sn={"entry:init:community:params":ce=>{let{dispatch:Pt}=ce;const Mt=new URLSearchParams(location.search),je=Mt.get("type"),vt=Mt.get("mt");je&&vt&&(Pt({type:"entry:resources:paid:success:goto:starred",payload:{cid:vt,category:je}}),je===Z.Gd&&Pt({type:"update:popups:state",payload:{paramStarMtCid:vt}}))},"entry:comment:rebuild:commentList":ce=>{let{dispatch:Pt}=ce;const Mt=rootSdk.cmtStore.getSubHotItemList("C@main").filter(vt=>vt.hotAttr.type==="cCmtPack"),je=[];Mt.forEach(vt=>{vt.sub.forEach(kt=>{const Yt=rootSdk.cmtStore.getHotItem(kt),Xn=(0,pn.Bt)(Yt);Yt.sub.forEach(Do=>{const Uo=rootSdk.cmtStore.getHotItem(Do);Xn.comments.push((0,pn.gR)(Uo))}),je.push(Xn)})}),Pt({type:"comment:update:allCommentList",payload:{allCommentList:je}})},"entry:design:update:current:sharing":(ce,Pt)=>{let{dispatch:Mt}=ce,{payload:{sharing:je}}=Pt;const vt=(je==null?void 0:je.type)==="default"?(je==null?void 0:je.view_sticky)==="view_sticky":je==null?void 0:je.view_sticky;if(Mt({type:"current:update:state",payload:{sharingInReadOnly:{...je,view_sticky:vt}}}),je.type==="default"){const{screen_visible_switch:kt,screen_visible_list:Yt}=je;if(kt){const Xn=(0,wo.UG)(Yt[0]),Do=(je==null?void 0:je.view_sticky)==="view_sticky";Mt({type:"current:update:state",payload:{sharingInReadOnly:{...je,screen_visible_list:Xn,view_sticky:Do}}})}}else Mt({type:"preview:set:current-projectShare",payload:{projectShare:je}})},"entry:activate:root-project":(ce,Pt)=>{let{dispatch:Mt,getState:je}=ce,{payload:{projectBasic:vt,projectMeta:kt,screenCid:Yt}}=Pt;const Xn=je(),{sub:Do}=sdkStore.getHotItem("B@main"),Uo=(0,Qt.bP)(Xn),{screenTreeData:jo,screenTreeMap:as,screenDataMap:gs}=(0,wo.tb)("B@main");Mt({type:"screen:set:all:screen-data",payload:{screenTreeData:jo,screenTreeMap:as,screenDataMap:gs}}),document.title=""+((0,dn.qk)(vt.name)||vt.title);let Eo,ws,Rs;try{var As,js;const[Ds,Xs]=(0,u.Yt)(ke.NF+"-"+vt.cid,"",u.qW.String).split(",");if(Eo=Yt||Ds,Rs=Xs,!Eo||Ds&&(((As=sdkStore.getHotItem(Ds))==null?void 0:As.sup)==="B@ref-danli"||((js=sdkStore.getHotItem(Ds))==null?void 0:js.sup)==="B@ref-muban")){var Ls;Eo=Do[0]&&(((Ls=sdkStore.findAllTypeUnder(Do[0],"rResBunch").find(Ks=>!Ks.hotAttr.asFolder))==null?void 0:Ls.key)||Do[0])}if(sdkStore.isTrashed(Eo))throw new Error("");const{hotAttr:ri,key:ui}=sdkStore.getHotItem(Eo);ws={...ri,cid:ui}}catch(Ds){var wi;console.warn("reset screenMetaCid to first page",Ds),Eo=(wi=(0,Vn.YU)(jo).filter(ui=>ui.bunch===en.x.RbPage&&!(0,Vn.Mo)(ui))[0])==null?void 0:wi.cid;const{hotAttr:Ti,key:ri}=sdkStore.getHotItem(Eo);ws={...Ti,cid:ri}}const Fs=vt.attr instanceof Object?vt:Object.assign(vt,{attr:{}});Mt({type:"current:update:state",payload:{currentScreen:ws,currentProject:Fs,currentProjectMeta:kt}});const Ii=sdkStore.getHotItem(ws.cid);Mt({type:"entry:activate:screen",payload:{screenCid:Eo}}),Mt({type:"screen:update:state",payload:{currentPage:Ii}}),Rs&&!sdkStore.isTrashed(Rs)&&(Mt(co.GO.select([Rs])),setTimeout(()=>{Mt({type:"entry:design:zoom:selection"})},100)),Mt({type:"entry:init:design:scale"});const Bs=Fs==null?void 0:Fs.cid,hi=Zt()(Fs==null?void 0:Fs.created_at).isAfter(Zt()("2023-09-25T23:59:59+08:00")),Li=hi&&!!(Fs!=null&&Fs.source_upper_cid||Fs!=null&&Fs.parent_cid),qs=(0,u.Yt)("current_popup_panel_name_"+Bs,null,u.qW.String);let Ws=null;if(Uo==="old_right"){const Ds=(0,u.Yt)("popups_show",!0,u.qW.Boolean),Xs=P.qB;Ws=Ds?Xs.includes(qs)?qs:P.lS.Builtin:null}else Ws=qs||(Li?P.lS.Directory:P.lS.Builtin);if(Bs&&Ws&&(0,u.cH)("current_popup_panel_name_"+Bs,Ws),[P.lS.Flow,P.lS.Mind,P.lS.AI].includes(Ws)&&(Ws=P.lS.Builtin),Mt({type:"set:current:popup:panel",payload:{name:Ws}}),P.Mf[Ws]&&Mt({type:"searchPanel:update:state",payload:{type:P.Mf[Ws]}}),P.P4.includes(Ws)||Uo==="old_right"){const Ds=Uo==="old_right"?ke.sR:ke.Cj;Mt({type:"left-panel:set:width",payload:{width:(0,u.Yt)("layer_left_panel_width_"+Bs,Ds,u.qW.Number),projectCid:Bs}})}if(Bs){const Ds=(0,u.Yt)("local-widget-plat-form-type-"+Bs,"",u.qW.String);Mt({type:"widget-panel:update:platFormType",payload:{platformType:Ds,projectCid:Bs}})}Mt({type:"right-side-panel:update:resize:width",payload:{width:(0,u.Yt)("ST_panel_width_"+Bs,ke.xM,u.qW.Number),projectCid:Bs}}),Mt({type:"entry:observe:dom:left-panel-width"}),Mt({type:"entry:observe:dom:right-panel-width"}),Mt({type:"entry:update:mode:viewType"}),Mt({type:"entry:update:trash:page"})},"entry:root-project:readOnly:activate":(ce,Pt)=>{var Mt,je;let{dispatch:vt,getState:kt}=ce,{payload:{projectBasic:Yt,projectMeta:Xn,screenCid:Do,canvasCid:Uo,isHtmlZip:jo}}=Pt;const as=kt(),gs=(0,Ft.HW)(as);let Eo,ws,Rs;const As=(0,Ft.z$)(as),js=(0,Qt.bP)(as);if(As!=null&&As.screen_visible_switch){const{screenTreeData:Ks,screenTreeMap:li,screenDataMap:gi}=(0,wo.wb)(As.screen_visible_list);Eo=Ks,ws=li,Rs=gi}else{const{screenTreeData:Ks,screenTreeMap:li,screenDataMap:gi}=(0,wo.tb)("B@main");Eo=Ks,ws=li,Rs=gi}vt({type:"screen:set:all:screen-data",payload:{screenTreeData:Eo,screenTreeMap:ws,screenDataMap:Rs}}),document.title=""+((0,dn.qk)(Yt.name)||Yt.title);let Ls;if(Do&&sdkStore.getHotItem(Do).hotAttr.asFolder?Ls=(0,Vn.uS)(Eo)||Do:Ls=Do||(0,Vn.uS)(Eo),As){const{screen_visible_switch:Ks,screen_visible_list:li}=As;if(Ks&&(0,Vn.Rm)(li).length===0)throw new Error("visibleIsEmpty")}if(sdkStore.isTrashed(Ls)){if(Eo.children.length===0)throw new Error("visibleIsEmpty");Ls=Eo.children[0].cid}const{hotAttr:Fs,key:Ii}=sdkStore.getHotItem(Ls),Bs={...Fs,cid:Ii},hi=Yt.attr instanceof Object?Yt:Object.assign(Yt,{attr:{}});vt({type:"current:update:state",payload:{currentScreen:Bs,currentProject:hi,currentProjectMeta:Xn}});const Li=js==="old_right"?ke.sR:ke.Cj,qs=hi.cid;vt({type:"left-panel:set:width",payload:{width:(0,u.Yt)("layer_left_panel_width_"+qs,Li,u.qW.Number),projectCid:qs}}),vt({type:"right-side-panel:update:resize:width",payload:{width:(0,u.Yt)("ST_panel_width_"+qs,ke.xM,u.qW.Number),projectCid:qs}});const Ws=location.pathname.includes(Un.QQ),Wi=location.pathname.includes("/embed/v2"),Ds=new URLSearchParams(location.search).has("version");vt(co.GO.setCommunityPreview(Ws)),vt(co.GO.setEmbedV2Preview(Wi)),vt(co.GO.setIsVersionPreview(Ds)),vt({type:"elbow:clear"}),vt({type:"set:quick-create-widget",payload:{widget:null}}),vt({type:"entry:activate:screen",payload:{screenCid:Ls}}),Uo&&((Mt=sdkStore.getHotItem((je=sdkStore.getHotItem(Uo))==null?void 0:je.sup))==null||(Mt=Mt.hotAttr)==null?void 0:Mt.bunch)===en.x.RbPage&&(vt(co.GO.select([Uo])),setTimeout(()=>{vt({type:"entry:design:zoom:selection"})},100)),vt({type:"entry:init:design:scale"});const Xs=jo||(As==null?void 0:As.view_sticky),Ti=jo||(As==null?void 0:As.view_sticky);vt({type:"toolbar:update:state",payload:{canToggleSticky:Xs,isShowSticky:Ti}}),vt(co.GO.setOnlyViewMode()),vt(co.GO.setHtmlZipPreview(jo));const ri=!(gs!=null&&gs.id)||(As==null?void 0:As.comment_permission)==="off";!Xs&&ri&&vt({type:"entry:toggle:right-panel"}),ri&&vt({type:"comment:update:isShowCommentInCanvas",payload:{isShowCommentInCanvas:!1}}),(0,Gt.OW)(as)!==P.lS.Directory&&vt({type:"entry:resources:update:current:popup:panel",payload:{name:P.lS.Directory}})},"entry:activate:screen":(ce,Pt)=>{let{dispatch:Mt}=ce,{payload:{screenCid:je}}=Pt;const{hotAttr:vt,key:kt}=sdkStore.getHotItem(je),Yt={...vt,cid:kt};Mt({type:"current:update:state",payload:{currentScreen:Yt}}),Mt({type:"screen:update:state",payload:{currentPage:sdkStore.getHotItem(je)}}),Mt({type:"selection:clear:state"}),Mt({type:"entry:reset:screen:selection",payload:{resetScreenCid:je}}),Mt({type:"entry:rebuild:screen-widget-tree"}),Mt({type:"entry:refresh:link-list",payload:{updateAllLink:!0}}),Mt({type:"entry:reset:canvas:offset"})},"entry:update:mode:viewType":ce=>{let{dispatch:Pt,getState:Mt}=ce;const je=Mt(),vt=(0,Ct.uu)(je),kt=(0,Ct.pH)(je),Yt=(0,Ct.rg)(je),Xn=new URLSearchParams(location.search).get("view_mode");if(location.pathname.includes("/ro")||vt||["read_only","device","inspect"].includes(Xn)||kt||Yt||vt){Pt(co.GO.setOnlyViewMode());return}Pt(co.GO.setEditMode())},"entry:update:trash:page":ce=>{let{getState:Pt}=ce;const Mt=Pt(),je=(0,Ft.HW)(Mt),vt=(0,Ft.wA)(Mt),kt=(0,Rn.ln)(je,vt),Yt=sdkStore.getSubHotItemList("B@trash"),Xn=(0,Mo.y)(Yt,kt+2,!0);if(Xn!=null&&Xn.length){const Do=Xn.map(Uo=>{let{key:jo}=Uo;return jo});sdkStore.deleteHotItemBatch(Do)}},"entry:reset:screen:selection":(ce,Pt)=>{let{getState:Mt,dispatch:je}=ce,{payload:{resetScreenCid:vt}}=Pt;const kt=Mt(),Yt=(0,Gt.HA)(kt),Xn=(0,Vn.kz)(Yt).slice(1);je({type:"screen:update:screen-selection",payload:{screenSelection:[vt]}}),je({type:"screen:update:select:range",payload:{screenRange:{start:Xn.indexOf(vt),end:void 0}}})},"entry:rebuild:screen-widget-tree":(ce,Pt)=>{let{getState:Mt,dispatch:je}=ce,{payload:{pageKey:vt=void 0}={}}=Pt;const kt=Mt(),Yt=(0,Ft.Ur)(kt),Xn=vt!=null?vt:Yt==null?void 0:Yt.cid;if(!Xn)return;const Do=(0,Ut.UV)(kt);Do&&Do.destory();const Uo=new So.A(sdkStore,Xn);Uo.externalSubscribe(()=>{je({type:"selection:update:state",payload:{rootItem:Uo.getRootSnapshot()}})}),je({type:"selection:update:widgetStore",payload:{widgetStore:Uo,rootItem:Uo.getRootSnapshot()}}),je({type:"settings:update:varList",payload:{varList:(0,qn.pU)()}})},"entry:refresh:link-list":(ce,Pt)=>{var Mt;let{getState:je,dispatch:vt}=ce,{payload:{updateAllLink:kt=!1}={}}=Pt;const Yt=je(),Xn=(Mt=(0,Ft.Ur)(Yt))==null?void 0:Mt.cid;if(!Xn)return;const{isEditingCombo:Do}=(0,hs.r)(Yt),Uo=(0,Ct.jI)(Yt),jo=(0,Qt.Jv)(Yt);let as=[];if([ke.J_.none,ke.J_.marker].includes(jo)){const Eo=(0,nn.p$)(Yt);Eo.length===1&&Eo[0]&&(sdkStore.locUpHotCanvasKey(Eo[0])?as=(0,ho.Xr)(sdkStore,Eo[0],Do,Uo):as=[])}if(ke.J_.markerAndLine===jo||kt){const Eo=(0,ho.WY)(sdkStore,Xn,Do,Uo);vt({type:"links:update:all-link-node-list",payload:{allLinkNodeList:Eo}}),as=ke.J_.markerAndLine===jo?Eo:as}(0,ht.$_)(Yt).length===0&&as.length===0||vt({type:"links:update:link-node-list",payload:{linkNodeList:as}})},"entry:edit:basket:directly":(ce,Pt)=>{let{dispatch:Mt}=ce,{payload:{basketKey:je}}=Pt;const vt=sdkStore.getHotItem(je);if(!vt){MB.global.popupHelper.confirmAsync({title:"\u6BCD\u7248\u5220\u9664",confirmText:"\u6211\u77E5\u9053\u4E86",canCancel:!1,desc:"\u8BE5\u6BCD\u7248\u5DF2\u88AB\u5220\u9664\u3002",confirmBtnProps:{type:"danger-blue"}});return}if((vt==null?void 0:vt.hotAttr.type)==="rResBunch"){vt.sup==="@@T"?MB.global.popupHelper.confirmAsync({title:"\u6062\u590D\u6BCD\u7248",confirmText:"\u6062\u590D",desc:"\u6B64\u6BCD\u7248\u5DF2\u88AB\u5220\u9664\uFF0C\u8BF7\u5148\u6062\u590D\u6BCD\u7248\u540E\u518D\u5BF9\u6BCD\u7248\u8FDB\u884C\u7F16\u8F91\u3002",confirmBtnProps:{type:"danger-blue"}}).then(async as=>{as&&(sdkStore.moveHotItem(je,"B@ref-muban"),Mt({type:"entry:edit:basket:source:muban",payload:{item:{...vt,...vt==null?void 0:vt.hotAttr}}}))}):Mt({type:"entry:edit:basket:source:muban",payload:{item:{...vt,...vt==null?void 0:vt.hotAttr}}});return}const kt=sdkStore._calcIntActConnMapCached(),Yt=[je],Xn=[je];for(;Xn.length;){var Do;const as=Xn.pop(),gs=kt.subBasketToPage[as];if(!gs){console.error("basket ref not valid");return}const Eo=(Do=sdkStore.getHotItem(gs))==null?void 0:Do.sup;if(kt.mainPage.has(gs)||Eo==="B@ref-muban"){Yt.unshift(gs);break}else if(Eo==="B@ref-danli"){const ws=Array.from(kt.refPageToBasket[gs])[0];Xn.push(ws),Yt.unshift(ws)}else{console.error("basket ref not valid");return}}const Uo=Yt[0],jo=sdkStore.locTopRBActiveKey(Uo);if(jo==="B@main"){Mt({type:"entry:goto:project-alike",payload:{screenMetaCid:Uo}});const as=Yt.slice(1,Yt.length).length>0?(0,bo.j_)(Yt.slice(1,Yt.length)):"";as&&sdkStore.isActiveKey(as)&&Mt({type:"entry:edit:bDanli",payload:{bDanliKey:as}})}else if(jo==="B@ref-muban"){const as=sdkStore.getHotItem(Uo);Mt({type:"entry:edit:basket:source:muban",payload:{item:{...as,...as.hotAttr}}});const gs=Yt.slice(1,Yt.length).length>0?(0,bo.j_)(Yt.slice(1,Yt.length)):"";gs&&sdkStore.isActiveKey(gs)&&Mt({type:"entry:edit:bDanli",payload:{bDanliKey:gs}})}},"entry:goto:project-alike":(ce,Pt)=>{let{getState:Mt,dispatch:je}=ce,{payload:{screenMetaCid:vt,isResetScale:kt=!1}}=Pt;const Yt=Mt(),Xn=(0,Gt.Jx)(Yt),Do=Xn==null?void 0:Xn.get(vt),{hotAttr:Uo,key:jo}=sdkStore.getHotItem(vt),as={...Uo,cid:jo};if(je({type:"current:update:state",payload:{isEditingCid:"",currentScreen:as}}),je({type:"entry:clear:selection"}),je({type:"selection:clear:state"}),je({type:"entry:rebuild:screen-widget-tree"}),je({type:"entry:refresh:link-list"}),je({type:"layerExpandedKeySet:close:ref"}),Do){const{offset:gs,scale:Eo}=Do;je({type:"current:update:state",payload:{currentScreenOriginOffset:gs}}),je({type:"design:set:canvas:offset",payload:{offset:gs}}),je({type:"design:set:scale",payload:{scale:Eo}}),je({type:"entry:update:ruler"})}else kt&&je({type:"entry:reset:design:scale"}),je({type:"entry:reset:canvas:offset"})},"entry:edit:basket:source:muban":(ce,Pt)=>{let{getState:Mt,dispatch:je}=ce,{payload:{item:vt}}=Pt;const kt=Mt(),Yt=(0,Gt.OW)(kt),Xn=(0,Gt.p$)(kt).key;je(co.GO.updateBasketPrevPopupPanel(Yt)),je(co.GO.editBasketItemKey("")),je(co.GO.editBasketRefPage(vt.key)),je(co.GO.editBasketHotItem(sdkStore.getHotItem(vt.key))),je({type:"entry:layout:basket-canvas",payload:{canUpdateTear:!1}}),je({type:"entry:memory:current:screen:offset:scale"}),je({type:"entry:goto:project-alike",payload:{screenMetaCid:vt.key,breadCrumbKey:vt.key}}),je({type:"entry:update:selection:select:items",payload:{type:"selection:clear"}}),je(co.GO.updateBasketPrevSelection([Xn])),[P.lS.AI,P.lS.Page].includes(Yt)&&je({type:"set:current:popup:panel",payload:{name:P.lS.Builtin}}),je({type:"modal:reset:preview:modal:state"}),je({type:"update:screenContainer:state",payload:{createTemplatesData:null}})},"entry:edit:bDanli":(ce,Pt)=>{var Mt;let{getState:je,dispatch:vt}=ce,{payload:{bDanliKey:kt}}=Pt;const Yt=je(),Xn=(0,Gt.OW)(Yt),Do=(0,Gt.p$)(Yt).key,Uo=(0,Ct.jI)(Yt),jo=(0,bo.OO)(kt)?(0,bo.QL)(kt).pop():kt,as=sdkStore.getHotItem(jo);!as||Uo===kt||(vt(co.GO.editBasketItemKey(kt)),vt(co.GO.editBasketHotItem(as)),vt({type:"entry:layout:basket-canvas",payload:{canUpdateTear:!1}}),vt({type:"entry:memory:current:screen:offset:scale"}),vt({type:"entry:goto:project-alike",payload:{screenMetaCid:as.hotAttr.refRBPageKey,breadCrumbKey:kt,isResetScale:!0}}),vt({type:"entry:update:selection:select:items",payload:{type:"selection:clear"}}),vt(co.GO.updateBasketPrevPopupPanel(Xn)),vt(co.GO.updateBasketPrevSelection([Do])),(Mt=MB.commonGuideHelper)!=null&&Mt.checkGuideHasShown&&!MB.commonGuideHelper.checkGuideHasShown(Hn.c.GUIDE_BASKET_QUICK_COPY_CANVAS)&&MB.commonGuideHelper.tryToShowGuide(Hn.c.GUIDE_BASKET_QUICK_COPY_CANVAS),[P.lS.AI,P.lS.Page].includes(Xn)&&vt({type:"set:current:popup:panel",payload:{name:P.lS.Builtin}}),vt({type:"modal:reset:preview:modal:state"}))},"entry:clear:selection":ce=>{let{getState:Pt,dispatch:Mt}=ce;const je=Pt(),vt=(0,Ft.PL)(je);Mt({type:"entry:update:selection:select:items",payload:{type:"selection:clear"}}),Mt({type:"entry:clear:select"});const[kt,Yt]=(0,u.Yt)(ke.NF+"-"+vt.cid,"",u.qW.String).split(",");Yt&&(0,u.a0)(ke.NF+"-"+vt.cid,kt+",",u.qW.String)},"entry:update:selection:select:items":(ce,Pt)=>{let{getState:Mt,dispatch:je}=ce,{payload:vt}=Pt;const{type:kt="selection:select:items",...Yt}=vt;switch(je({type:kt,payload:{...Yt}}),kt){case"selection:select:items":{const{cids:Uo}=vt;if(je(co.GO.select(Uo)),Uo.length>0){const jo=sdkStore.getHotItem(Uo[0]),as=Uo.map(ws=>sdkStore.getHotItem(ws)),gs=(0,an.OP)({selections:[Uo[0]],styleType:"appear"}),Eo=(0,an.OP)({selections:[Uo[0]],styleType:"text"});if(Uo.length===1)je({type:"settings:update:currentAppearRefStyle",payload:gs}),je({type:"settings:update:currentTextRefStyle",payload:Eo});else if(as.every(Rs=>{var As,js;return(Rs==null||(As=Rs.hotAttr)==null?void 0:As.type)===(jo==null||(js=jo.hotAttr)==null?void 0:js.type)})){const Rs=gs&&Uo.every(js=>{var Ls;return((Ls=(0,an.OP)({selections:[js],styleType:"appear"}))==null?void 0:Ls.key)===(gs==null?void 0:gs.key)}),As=Eo&&Uo.every(js=>{var Ls;return((Ls=(0,an.OP)({selections:[js],styleType:"text"}))==null?void 0:Ls.key)===(Eo==null?void 0:Eo.key)});je({type:"settings:update:currentAppearRefStyle",payload:Rs?gs:null}),je({type:"settings:update:currentTextRefStyle",payload:As?Eo:null})}else je({type:"settings:update:currentAppearRefStyle",payload:null}),je({type:"settings:update:currentTextRefStyle",payload:null})}break}case"selection:unselect:items":{const{cids:Uo}=vt;je(co.GO.unSelect(Uo));break}case"selection:clear":{je(co.GO.select([])),je(co.GO.hoverItem("")),je({type:"settings:update:currentAppearRefStyle",payload:null}),je({type:"settings:update:currentTextRefStyle",payload:null});break}}setTimeout(()=>{je({type:"entry:update:ruler"}),(0,Kn.K)(I18N)[Hn.c.GUIDE_SELECT_STICKY].howToShow(vt.cids)});const Xn=Mt(),Do=(0,Qt.Jv)(Xn);(Do===0||Do===1)&&je({type:"entry:refresh:link-list"})},"entry:clear:select":ce=>{let{getState:Pt,dispatch:Mt}=ce;const je=Pt(),vt=(0,Ht.P2)(je),{isEditingCombo:kt}=(0,hs.r)(je);if(vt)return;Mt({type:"reducer:flag:set-isShowRadiusResizer",payload:{isShowRadiusResizer:!1}}),Mt({type:"reducer:flag:set-isResizingRadius",payload:{isResizingRadius:!1}}),Mt({type:"settings:set:autoTabIndex",payload:{autoTabIndex:null}}),kt&&Mt({type:"settings:set:activeIndex",payload:{activeIndex:0}}),Mt({type:"links:active:link",payload:{cid:[]}}),Mt({type:"links:singleSelectLink:update",payload:{singleSelectLink:void 0}}),Mt({type:"update:link:selectLinkItem",payload:null});const Yt=(0,zn.c)(je);Yt&&(0,Oo.ay)(Yt,"remove"),Mt({type:"set:editing:cid",payload:{cid:""}}),Mt({type:"colorpanel:set:attr",payload:{attr:void 0}}),Mt({type:"colorpanel:set:attrPanel",payload:{attrPanel:void 0}}),Mt({type:"mode:update:state",payload:{isEditingEditableWidgetCid:""}}),Mt({type:"entry:reset:smart-selection"})},"entry:reset:smart-selection":ce=>{let{dispatch:Pt}=ce;Pt(Io.UU.update(Io.HM))},"entry:import:html:from:code":async(ce,Pt)=>{let{dispatch:Mt}=ce,{payload:{code:je}}=Pt;if(!je)return;MB.safeLoading("\u6B63\u5728\u751F\u6210\u539F\u578B...");let vt="";try{vt=(await(0,wn.zi)("/go/ai/bm_exchange/html",{code:je,project_cid:MB.getRootProject().cid})).html}catch(Yt){MB.safeLoading(!1),MB.notice({type:"error",text:"\u751F\u6210\u539F\u578B\u5931\u8D25"}),(0,mn.jc)("code");return}const kt=new Worker(us);kt.onmessage=async Yt=>{if(Yt.data.type==="result"){const Xn=Yt.data.data,Uo=new DOMParser().parseFromString(Xn,"text/html"),jo=Uo==null?void 0:Uo.querySelector("[data-mb-type=widget]"),{data:as,imageUploadTasks:gs}=JSON.parse(JSON.parse((jo==null?void 0:jo.getAttribute("data-mb-type-data"))||"")),Eo=await(0,xn.rB)(as,gs);Mt({type:"entry:paste:items",payload:{data:Eo,worldPos:{x:0,y:0}}}),Mt({type:"entry:design:zoom:selection"}),(0,mn.jc)("code"),kt.terminate()}else if(Yt.data.type==="error")MB.safeLoading(!1),(0,mn.jc)("code"),kt.terminate();else if(Yt.data.type==="request-measure-rtas"){const{richTextAttr:Xn,measurementRequestID:Do}=Yt.data;(0,Oo.N7)(Xn,!1).then(Uo=>kt.postMessage({type:"rtas-measurement-result",richTextAutoSize:Uo,measurementRequestID:Do}))}},kt.postMessage({type:"start",htmlString:vt,uId:MB.user.id,upperCid:MB.getRootProject().cid})}};var Tn=e(13217),un=e(86594);const An={"entry:update:viewport:rect":ce=>{let{dispatch:Pt}=ce;const Mt=document.querySelector(".mb-viewport");if(!Mt)return;const je=Mt.getBoundingClientRect();Pt({type:"dom:update:state",payload:{viewportRect:je}}),Pt({type:"entry:update:ruler",payload:{isUpdateContext:!0}})},"entry:update:toolbar":async ce=>{let{dispatch:Pt}=ce;const Mt=await(0,un.LD)({isShowPrompt:!1});Pt({type:"toolbar:update:state",payload:{canPaste:Mt}})},"entry:update:screen_list_rect":ce=>{let{dispatch:Pt}=ce;const Mt=document.querySelector("#screen_list");let je=null;Mt&&(je=Mt.getBoundingClientRect()),Pt({type:"dom:update:state",payload:{screenListRect:je}})}};var oo=e(64580);const No={"entry:hand-tool:toggle":ce=>{let{getState:Pt,dispatch:Mt}=ce;const je=Pt(),vt=(0,Ct.Ro)(je);Mt(vt?{type:"entry:hand-tool:disable",payload:{triggerMethod:"click"}}:{type:"entry:hand-tool:enable",payload:{triggerMethod:"click"}})},"entry:hand-tool:enable":(ce,Pt)=>{let{getState:Mt,dispatch:je}=ce,{payload:vt}=Pt;const kt=Mt(),{isSpaceDown:Yt}=(0,Ft.ZS)(kt),Xn=(0,Ct.Ro)(kt),{triggerMethod:Do}=vt;Do==="click"&&(Yt||(je(co.GO.toggleHandMode(!0)),je({type:"set:quick-create-widget",payload:{widget:null}}))),Do==="pressDown"&&(Xn||(je(co.GO.toggleHandMode(!0)),je({type:"set:quick-create-widget",payload:{widget:null}})))},"entry:hand-tool:disable":(ce,Pt)=>{let{getState:Mt,dispatch:je}=ce,{payload:vt}=Pt;const kt=Mt(),{isSpaceDown:Yt}=(0,Ft.ZS)(kt),Xn=(0,Ct.Ro)(kt),{triggerMethod:Do}=vt;Do==="click"&&(Yt||(je(co.GO.toggleHandMode(!1)),je({type:"set:quick-create-widget",payload:{widget:null}}))),Do==="pressUp"&&(Xn||Yt)&&(je(co.GO.toggleHandMode(!1)),je({type:"set:quick-create-widget",payload:{widget:null}}))},"entry:handle-tool:toggle:inspect-mode":(ce,Pt)=>{let{getState:Mt,dispatch:je}=ce,{payload:{mode:vt,isCommentDisabled:kt=!0}}=Pt;const Yt=Mt();(0,Ct._b)(Yt)!==vt&&(je(co.GO.toggleHandMode(!1)),kt&&je({type:"entry:comment:disabled",payload:{noWigglingCommentCid:!0}}),je({type:"entry:ST:STMode:disable"}),je({type:"versions:update",payload:{isVersionManagementPaneShow:!1}}),je(co.GO.toggleInspectMode(vt)),je(co.GO.select([])),je({type:"elbow:update",payload:{isDraggingElbow:!1}}),(0,oo.A)({operation_type:oo.D.Inspect}))},"entry:handle-tool:preview:view_mode":(ce,Pt)=>{let{dispatch:Mt}=ce,{payload:{previewViewMode:je}}=Pt;MB.__store__.dispatch(co.GO.updatePreviewViewMode(je)),MB.webpackInterface.store.dispatch({type:"current:update:previewViewMode",payload:{previewViewMode:je}})}},Vo={...po,...Sn,...Tn.O,...An,...No};var Ko=e(40033),zo=e(24496),xs=e(77709),ys=e(17533);const ss=ce=>{const Pt=(0,r.RZ)(),Mt=(0,n.Yl)(xt,(0,n.Tw)(Pt.middleware,ys.v));return Pt.setEntryMap(Vo),ce.reduxEntry=Pt,ce.__store__=Mt,ce.getSelectedMindNodeTrees=()=>(0,zo.fo)(Mt.getState()),ce.action=(je,vt)=>Mt.dispatch({type:je,payload:vt}),ce.getScale=()=>(0,Ft.X_)(Mt.getState()),ce.getCanvasRect=()=>(0,Ft.Pz)(Mt.getState()),ce.getCurrentToolBarHeight=()=>(0,xs.wT)(Mt.getState()),ce.getCanvasOffset=()=>(0,Ft.ER)(Mt.getState()),ce.getNextWidgetZ=()=>(0,Ko.G)(Mt.getState()),ce.getCurrentProjectMeta=()=>(0,Ft.YT)(Mt.getState()),ce.getCurrentScreen=()=>(0,Ft.Ur)(Mt.getState()),ce.getWidgetStore=()=>(0,Ut.UV)(Mt.getState()),ce.getRootProject=()=>(0,Ft.PL)(Mt.getState()),ce.getSelectionItems=()=>(0,nn.nE)(Mt.getState()),Mt}},83672:(Fe,ee,e)=>{"use strict";e.d(ee,{c:()=>u});var n=e(38502),r=e(67787),c=e(53732),o=e.n(c),w=e(72214);const u=y=>{let{className:h,textStyle:i}=y;const f=(0,n.useMemo)(()=>{const{fontFamily:p,fontSize:s}=(i==null?void 0:i.hotAttr)||{};return{fontFamily:p,fontSize:s>=16?14:s<=9?7:s-2}},[i==null?void 0:i.hotAttr]);if(i)return(0,w.jsx)(d,{className:o()("view-item",h),style:f,children:"Ag"})},d=r.Ay.div.withConfig({displayName:"Text__StyledTextViewItem",componentId:"sc-1ovuvkc-0"})(["width:28px;height:28px;display:flex;align-items:center;justify-content:center;margin-right:10px;flex:0 0 28px;"])},86200:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>d});var n=e(95549),r=e(38502);const c={read_only:"v8_read_only",device:"v8_device"};var o=e(91110),w=e(66530),u=e(72214);class d extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"setComponentRef",h=>this.modal=h),(0,n.A)(this,"getEntry",()=>{const h=new URLSearchParams(location.search),i=h&&h.get("view_mode");return i?c[i]:""})}componentDidMount(){const{dispatch:h,onConfirm:i}=this.props,f=this;window.onmessage=async function(p){if(p.data==="loginSuccess")typeof h=="function"&&h({type:"modal:update:state",payload:{loginModal:{isOpen:!1}}}),i();else if(p.data==="close"){var s;typeof h=="function"?h({type:"modal:update:state",payload:{loginModal:{isOpen:!1}}}):f==null||(s=f.modal)==null||s.close()}},o.Y.userSourceTrack(this.getEntry())}render(){const{isOpen:h,type:i,source:f}=this.props,p=this.getEntry(),s=p?"&entry="+p:"",l=location.origin+"/embed/auth_box?type="+i+(f?"&source="+f:"")+s;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(w.Ef,{isOpen:h,ref:this.setComponentRef,className:"login-modal",mask:!1,modalRender:()=>(0,u.jsx)(u.Fragment,{children:(0,u.jsx)("iframe",{src:l})})}),(0,u.jsx)(w.Pg,{})]})}}(0,n.A)(d,"defaultProps",{type:"signin"})},86401:Fe=>{(function(){var ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={rotl:function(n,r){return n<<r|n>>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return e.rotl(n,8)&16711935|e.rotl(n,24)&4278255360;for(var r=0;r<n.length;r++)n[r]=e.endian(n[r]);return n},randomBytes:function(n){for(var r=[];n>0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],c=0,o=0;c<n.length;c++,o+=8)r[o>>>5]|=n[c]<<24-o%32;return r},wordsToBytes:function(n){for(var r=[],c=0;c<n.length*32;c+=8)r.push(n[c>>>5]>>>24-c%32&255);return r},bytesToHex:function(n){for(var r=[],c=0;c<n.length;c++)r.push((n[c]>>>4).toString(16)),r.push((n[c]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],c=0;c<n.length;c+=2)r.push(parseInt(n.substr(c,2),16));return r},bytesToBase64:function(n){for(var r=[],c=0;c<n.length;c+=3)for(var o=n[c]<<16|n[c+1]<<8|n[c+2],w=0;w<4;w++)c*8+w*6<=n.length*8?r.push(ee.charAt(o>>>6*(3-w)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],c=0,o=0;c<n.length;o=++c%4)o!=0&&r.push((ee.indexOf(n.charAt(c-1))&Math.pow(2,-2*o+8)-1)<<o*2|ee.indexOf(n.charAt(c))>>>6-o*2);return r}};Fe.exports=e})()},86750:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>v});var n=e(38502),r=e(53732),c=e.n(r),o=e(17307),w=e(58603),u=e(14861),d=e(67787);const y=d.Ay.div.withConfig({displayName:"style__StyledSelectNewSize",componentId:"sc-rj3lnm-0"})(["label{width:100%;.changeNewDeviceSize{max-width:114px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;text-align:left;color:",";padding:5px 0;line-height:16px;}&.multiple{.changeNewDeviceSize,.arrow-icon{color:",";}}button{display:flex;align-items:center;border:1px solid transparent;border-radius:4px;padding-left:6px;&:hover{border:1px solid ",";.arrow-icon{color:",";}}.arrow-icon{width:24px;height:24px;color:",";&.is-expand{transform:rotateX(180deg);}}}}"],a=>a.theme.color_text_L1,a=>a.theme.color_text_L2,a=>a.theme.color_bg_border_02,a=>a.theme.color_text_L1,a=>a.theme.color_text_L3),h=(0,d.DU)(["#IBOT_DROPDOWN_MENU_ROOT{.screen-info-menu{border-radius:8px;overflow:hidden;&.x-center.is-open{transition:unset;}.content{padding:0;background:",";color:",";overflow:hidden;}}}"],a=>a.theme.color_bg_white,a=>a.theme.color_text_L1),i=d.Ay.ul.withConfig({displayName:"style__StyledSizeSelectMenu",componentId:"sc-rj3lnm-1"})(["list-style:none;font-size:12px;padding:8px;width:296px;overflow-y:overlay;border-radius:8px;&::-webkit-scrollbar{display:block;width:6px;height:6px;}&::-webkit-scrollbar-thumb{background-color:rgba(255,255,255,0.25);border-radius:4px;&:hover{background-color:rgba(255,255,255,0.30);}}&::-webkit-scrollbar-track{background-color:transparent;}li{height:28px;padding:0 16px 0 32px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;position:relative;span{color:",";}.checked{width:16px;height:16px;position:absolute;left:8px;}&:hover{background:",";}}.line{background:",";width:100%;height:1px;margin:8px 0;}li{border-radius:4px;}"],a=>a.theme.color_text_L3,a=>a.theme.color_btn_secondary_hover,a=>a.theme.color_bg_border_01);var f=e(72214);function p(a){const{model:P,renderList:b,isPageSize:g,onSelect:S,onToggle:t,contentHeight:_}=a,I=n.useRef(null),k=n.useRef(null),j=(0,n.useCallback)(z=>{const{key:K}=z.target.dataset,$={...u.v2[K],key:K};S&&S($),t&&t(!1)},[S,t]);return(0,n.useLayoutEffect)(()=>{function z(){if(!(I!=null&&I.current)||!(k!=null&&k.current))return;const{top:K,height:$}=I.current.getBoundingClientRect(),{top:A}=k.current.getBoundingClientRect(),E=K+$/2;A>E&&(I.current.scrollTop=A-E)}requestAnimationFrame(z)},[]),(0,f.jsx)(i,{ref:I,style:{maxHeight:_},children:b.map((z,K)=>{let{device:$,modelList:A}=z;return(0,f.jsxs)(n.Fragment,{children:[A.map(E=>{let{width:U,height:O,key:H}=E;const Q=P===(H==="google_nexus"?"Android":H);return(0,f.jsxs)("li",{ref:Q?k:null,className:c()({active:Q}),"data-key":H,onClick:j,children:[Q&&(0,f.jsx)(o.C,{name:"common/checked",className:"checked"}),H==="google_nexus"?"Android":(0,u.d0)({model:H,device:$,isPageSize:g}),!(H==="customize"||H==="none")&&(0,f.jsxs)("span",{className:"sizeInfo","data-key":H,children:[U," \xD7 ",O]})]},H)}),K!==b.length-1&&(0,f.jsx)("div",{className:"line"})]},$)})})}const s=(0,n.memo)(p),l=()=>{const a=document.querySelector(".changeNewDeviceSize");if(!a)return{};const{top:P}=a.getBoundingClientRect(),g=document.body.clientHeight-62-P;return{menuBaseStyle:{width:152},contentHeight:g}};function C(a){const{model:P,isPageSize:b}=a,[g,S]=(0,n.useState)(!1),{menuBaseStyle:t,contentHeight:_}=l(),I=(0,u.d0)({model:P,isPageSize:b}),k=I===I18N.SettingPanel.multiple_value,j=(0,n.useCallback)(z=>S(z),[]);return(0,f.jsxs)(y,{className:"device-size-select",children:[(0,f.jsx)(h,{}),(0,f.jsx)(w.A,{menuY:"bottom",isOpen:g,className:c()("screen-info-menu-opener",{multiple:k}),onToggle:j,shouldPreventScrollingPropagation:!1,menuBaseStyle:t,opener:(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("span",{className:"changeNewDeviceSize",children:I}),(0,f.jsx)(o.C,{className:c()("arrow-icon",{"is-expand":g}),name:"common/expand@26"})]}),menuClassName:"screen-info-menu",menu:(0,f.jsx)(s,{...a,contentHeight:_,onToggle:j})})]})}const v=(0,n.memo)(C)},86992:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>f});var n=e(95549),r=e(38502),c=e(17307),o=e(72140),w=e(3877),u=e(67787);const d=u.Ay.div.withConfig({displayName:"styles__StyledSubPanel",componentId:"sc-1srbvqh-0"})(["width:240px;border-top:1px solid ",";padding:8px 0;& > header{height:32px;font-weight:600;padding-left:16px;padding-right:10px;display:flex;align-items:center;justify-content:space-between;transition:all 0.2s ease-in-out;cursor:pointer;.title{color:",";font-weight:600;}.customize-title{display:flex;flex:1;& > a{transform:scaleY(-1);}}.reset-btn{margin-left:auto;margin-right:10px;color:#8d9ea7;}.angle-icon-wrap{display:flex;width:24px;height:24px;align-items:center;justify-content:center;border-radius:4px;&:hover{background-color:",";}&:active{background-color:",";}.icon{width:24px;height:24px;text-align:center;color:",";transform:rotate(180deg);transition:transform 0.2s ease-in-out;}}}&.md-foldable > header .icon{transform:rotate(0);}"],p=>p.theme.color_bg_border_01,p=>p.theme.color_text_L1,p=>p.theme.color_btn_secondary_hover,p=>p.theme.color_btn_secondary_active,p=>p.theme.color_text_L1);var y=e(53732),h=e.n(y),i=e(72214);class f extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"handleCollapse",()=>{const{onChange:s}=this.props;s&&s()}),(0,n.A)(this,"handleReset",s=>{s.stopPropagation(),this.props.onReset()})}render(){const{title:s,children:l,collapse:C,canReset:v,className:a,renderTips:P,headerChildren:b,rightHeader:g,style:S}=this.props,t=typeof C=="boolean";return(0,i.jsxs)(d,{className:h()("sub-panel",a,{"md-foldable":C}),style:S,children:[(0,i.jsxs)("header",{onClick:t?this.handleCollapse:null,style:{cursor:"default"},children:[(0,i.jsx)("p",{className:"title",children:s}),b&&b,v&&(0,i.jsx)("span",{className:"reset-btn",onClick:this.handleReset,children:I18N.SettingPanel.inspector.reset}),t&&(0,i.jsx)("div",{className:"angle-icon-wrap",children:(0,i.jsx)(c.C,{name:"common/expand@20"})}),P&&(0,i.jsx)("div",{className:"title customize-title",children:(0,i.jsx)(w.A,{renderContent:P})}),g&&g]}),t?(0,i.jsx)(o.A,{collapse:C,children:l}):l]})}}},87332:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>l});var n=e(95549),r=e(25582),c=e.n(r),o=e(38502),w=e(69623),u=e(59844),d=e(39e3),y=e(53732),h=e.n(y),i=e(67787);const f=i.Ay.div.withConfig({displayName:"styles__CSSToolBarDropdown",componentId:"sc-98fdjx-0"})(["position:relative;.hover-box{position:absolute;height:20px;top:99%;width:100%;}&.is-open > a{background-color:",";}&.disabled{opacity:0.4;}"],v=>v.theme.color_btn_secondary_active),p=i.Ay.div.withConfig({displayName:"styles__CSSToolBarMenuBox",componentId:"sc-98fdjx-1"})(["position:absolute;z-index:1101;&.is-animation{opacity:0;transition:.2s ease-in-out;transition-property:transform,opacity;transform-origin:50% 0;transform:scale(0.9);&.is-transform{opacity:1;transform:scale(1);}}"]);var s=e(72214);class l extends o.PureComponent{constructor(a){super(a),(0,n.A)(this,"setElementRef",P=>this.$element=P),(0,n.A)(this,"setDropdownRef",P=>this.$dropdown=P),(0,n.A)(this,"handleToggleMenuShow",P=>{const{onClick:b,onClickIcon:g,isDisabled:S}=this.props;P.stopPropagation(),!S&&(this.setState({isMenuShow:!this.state.isMenuShow}),b&&b(!this.state.isMenuShow),g&&g())}),(0,n.A)(this,"handMouseEnter",P=>{P.stopPropagation();const{isDisabled:b}=this.props;b||this.setState({isMenuShow:!0})}),(0,n.A)(this,"handMouseLeave",P=>{P.stopPropagation();const{isDisabled:b}=this.props;b||this.setState({isMenuShow:!1})}),(0,n.A)(this,"handleCloseMenu",()=>{const{onClick:P}=this.props;this.setState({isMenuShow:!1}),P&&P(!1)}),(0,n.A)(this,"updateMenuPosition",()=>{var P;(P=this.$dropdown)==null||P.updateMenuPosition()}),this.state={isMenuShow:a.isDefaultOpen}}componentDidUpdate(a,P){const{isDefaultOpen:b,onOpenChange:g}=this.props;b&&b!==a.isDefaultOpen&&this.setState({isMenuShow:!0}),P.isMenuShow!==this.state.isMenuShow&&(g==null||g(this.state.isMenuShow))}render(){const{renderOpener:a,renderMenu:P,isHoverDropdown:b,className:g,menuClassName:S,direction:t,isDefaultOpen:_,isDisabled:I,menuPosTop:k,menuPosLeft:j,menuPosRight:z,offsetX:K,distance:$,onClickOutside:A,isAnimation:E,targetNode:U}=this.props,{isMenuShow:O}=this.state;return(0,s.jsxs)(f,{ref:this.setElementRef,className:h()("toolbar-dropdown-opener",g,{"is-open":O,disabled:I}),onClick:b?null:this.handleToggleMenuShow,onMouseEnter:b?this.handMouseEnter:null,onMouseLeave:b?this.handMouseLeave:null,children:[a,b&&(0,s.jsx)("div",{className:"hover-box"}),O&&(0,s.jsx)(C,{ref:this.setDropdownRef,isDefaultOpen:_,targetNode:U||this.$element,renderMenu:P,direction:t,menuClassName:S,menuPosTop:k,menuPosLeft:j,menuPosRight:z,offsetX:K,distance:$,onClickOutside:A,isAnimation:E,onClose:this.handleCloseMenu})]})}}(0,n.A)(l,"propTypes",{isDefaultOpen:c().bool,isHoverDropdown:c().bool,renderMenu:c().node,renderOpener:c().node,className:c().string,menuClassName:c().string,direction:c().string,onClick:c().func,onClickIcon:c().func,onClickOutside:c().func,isDisabled:c().bool,menuPosTop:c().number,menuPosLeft:c().number,menuPosRight:c().number,offsetX:c().number,distance:c().number,isAnimation:c().bool,onOpenChange:c().func,targetNode:c().element}),(0,n.A)(l,"defaultProps",{isCloseMenuItem:!0,direction:"down",isDefaultOpen:!1,isAnimation:!1});class C extends o.PureComponent{constructor(){super(),(0,n.A)(this,"setMenuRef",a=>this.$menu=a),(0,n.A)(this,"updateMenuPosition",()=>{const{targetNode:a,direction:P,distance:b}=this.props,{sourceNodePosition:g}=a?(0,u.A)(a,this.$menu,{direction:P,distance:b!=null?b:8,forceDirection:!1}):{};this.setState({menuPosition:g,isTransform:!0})}),(0,n.A)(this,"handleWheel",a=>{(a.ctrlKey||a.metaKey)&&a.preventDefault()}),(0,n.A)(this,"handleClickOutside",a=>{const{onClose:P,onClickOutside:b}=this.props,g=!this.$menu.contains(a.target),S=a.target.closest(".SelectOption"),t=a.target.closest(".MenuItem"),_=this.props.targetNode.contains(a.target);b&&!b(a)||_||S||t||g&&P()}),this.state={isTransform:!1,menuPosition:{}},this.el=document.createElement("div"),this.el.className="design-toolbar-menu"}componentDidMount(){document.body.appendChild(this.el),this.props.isAnimation?Object.assign(this,{animationTimeout:setTimeout(()=>this.updateMenuPosition())}):this.updateMenuPosition(),window.addEventListener("resize",this.updateMenuPosition),this.el.addEventListener("wheel",this.handleWheel,{passive:!1})}componentWillUnmount(){document.body.removeChild(this.el),window.removeEventListener("resize",this.updateMenuPosition),this.el.removeEventListener("wheel",this.handleWheel,{passive:!1}),clearTimeout(this.animationTimeout)}render(){const{renderMenu:a,menuClassName:P,isDefaultOpen:b,menuPosTop:g,menuPosLeft:S,menuPosRight:t,offsetX:_,isAnimation:I}=this.props,{menuPosition:k,isTransform:j}=this.state,z={...k};return g&&Object.assign(z,{top:g}),S&&Object.assign(z,{left:S}),(typeof t=="number"||typeof t=="string")&&Object.assign(z,{right:t,left:void 0}),_&&(z.left&&(z.left+=_),z.right&&(z.right-=_)),(0,w.createPortal)((0,s.jsxs)(p,{ref:this.setMenuRef,style:z,className:h()(P,{isDefaultOpen:b},{"is-animation":I},{"is-transform":j}),children:[a,(0,s.jsx)(d.A,{target:document,onClick:(0,d.t)(this.handleClickOutside,{capture:!0})})]}),this.el)}}(0,n.A)(C,"propTypes",{direction:c().string,menuClassName:c().string,isDefaultOpen:c().bool,renderMenu:c().node,targetNode:c().object,menuPosTop:c().number,menuPosLeft:c().number,menuPosRight:c().number,offsetX:c().number,distance:c().number,onClose:c().func,onClickOutside:c().func,isAnimation:c().bool})},87606:(Fe,ee,e)=>{"use strict";e.d(ee,{C:()=>s});var n=e(38502),r=e(24094),c=e(18381),o=e(37780),w=e(79150),u=e(33515),d=e(69374),y=e(83485),h=e(83199),i=e(88981),f=e(99566),p=e(72214);const s=(0,n.memo)(l=>{let{hasTrash:C=!1,onClose:v,uiFrom:a,selectTreeNode:P,interactionStore:b,hasAddTrigger:g,treePanelFloatContentType:S,isClearAll:t}=l;const _=(0,c.wA)(),I=()=>{!C||!b||!P||(_(o.R7.command.deleteIta({interactionStore:b,deleteNode:P,uiFrom:a,treePanelFloatContentType:S})),t&&v())},k=(0,n.useCallback)(z=>{if(!g||!b||!P)return;const K=(0,f.AE)({interactionTrigger:z});_(o.R7.command.treePanelSingleCreateCommand({triggerList:[K],interactionStore:b})),C&&![i.O.Keydown,i.O.Listener].includes(z)&&(0,y.X)()},[_,b,P,g]),j=()=>{v==null||v(),_(o.R7.command.clearAllCommand({})),_({type:"links:singleSelectLink:update",payload:{singleSelectLink:void 0}})};return(0,p.jsxs)(r.it,{type:"draggable",children:[(0,p.jsxs)("div",{className:"container",type:"draggable",children:[I18N.Interaction.editor_header,(0,p.jsxs)("div",{className:"icon-container",children:[g&&(0,p.jsx)(u.Ay,{isPosition3:!0,menux:"center",className:"link--drop-gesture-list",customOpener:(0,p.jsx)(h.A,{content:I18N.Interaction.header_title1,children:(0,p.jsx)(w.A,{name:"interaction/tree_panel_float_new",size:24})}),renderMenu:(0,p.jsx)(d.A,{isGlobalLink:!1,currentGesture:"dap",onSelect:k,interactionTree:void 0,isLimitTrigger:!1})}),C&&(0,p.jsx)(w.A,{name:"interaction/trash",onClick:I}),(0,p.jsx)(w.A,{className:"close",name:"interaction/close",onClick:j})]})]}),(0,p.jsx)("div",{className:"divider"})]})})},87765:(Fe,ee,e)=>{"use strict";e.d(ee,{$:()=>n});const n=r=>r.editor.state.smartSelection},87945:(Fe,ee,e)=>{"use strict";e.d(ee,{G:()=>n});let n=function(r){return r.RightClick="\u53F3\u952E\u83DC\u5355",r.TopBar="\u9876\u90E8\u680F",r.ImageMenu="\u56FE\u7247\u83DC\u5355",r.EmptyRightClick="\u7A7A\u767D\u5904\u53F3\u952E\u667A\u80FD\u586B\u5145",r.WidgetPanel="\u7EC4\u4EF6\u9762\u677F\u4E0B\u62C9\u83DC\u5355",r.ImageModal="\u56FE\u7247\u5F39\u7A97\u667A\u80FD\u586B\u5145",r.QuickMenuText="\u5FEB\u6377\u83DC\u5355\u6587\u672C\u667A\u80FD\u586B\u5145",r.QuickMenuImage="\u5FEB\u6377\u83DC\u5355\u56FE\u7247\u667A\u80FD\u586B\u5145",r}({})},88132:(Fe,ee,e)=>{"use strict";e.d(ee,{Rn:()=>u,XM:()=>y,p6:()=>d});var n=e(19249);if(e.j!=477)var r=e(85449);var c=e(70933);if(e.j!=477)var o=e(98033);const w=h=>{let{user:i,org:f}=h,p;return(0,o.Z)(i),p=f?f.cid:"me",p},u=async()=>{if(!ENV.IS_MO)try{const h=(0,r.dP)(),i=(0,c.HW)(h),f=(0,c.wA)(h),p=(0,c.PL)(h),s=w({user:i,org:f}),{points:l}=await(0,n.DE)("/go/v1/chatbot/chat/points?workspace="+s);p.is_org_project&&f?MB.action("set:current:org",{org:Object.assign(f,{ai_points:l})}):MB.action("set:current:user",{user:Object.assign(i,{ai_points:l})}),MB.action("ai:update:aiPoints",l)}catch(h){}},d=async()=>{try{const{ai_points:h}=await(0,n.DE)("/agent-py/me/points");return h}catch(h){return 0}},y=async h=>{const i={generate:"generation",edit:"editing"};try{await(0,n.zi)("/agent-py/points/deduct",{type:i[h]})}catch(f){}}},88225:(Fe,ee,e)=>{"use strict";e.d(ee,{Z:()=>j,_:()=>z});var n=e(38502),r=e(18381),c=e(37253),o=e(67052);if(e.j!=477)var w=e(47163);var u=e(19396),d=e.n(u),y=e(53732),h=e.n(y),i=e(78257),f=e(79743),p=e(46322),s=e(33680),l=e(28306),C=e(13642),v=e(90144),a=e(67061);if(e.j!=477)var P=e(88909);var b=e(35298),g=e(72214);const S=K=>{const{metadata:$=[],nameIndex:A,dispatch:E}=K,U=(0,n.useMemo)(()=>$.map(H=>{let{imgs:Q,tab:N,name:L}=H;const V=Q.map(B=>(0,s.Kb)(N,B)),[M,D]=(0,s.SU)(V),W=(0,s.kN)(M,D),F=(0,s.Pb)(W);return{imgs:W,tabHeight:F,tab:N,name:L[A]}}),[$,A]);(0,n.useEffect)(()=>()=>{C.A.emit(P.P2,{shownMtItemCids:[]})},[]),(0,n.useEffect)(()=>{if(U&&U.length>0){const H=(0,l._Z)(U);C.A.emit(P.jy,{observeMtItemObj:H}),C.A.emit(P.BD)}},[U]);const O=H=>{E({type:"image-panel:update:state",payload:{findActiveWord:H}}),(0,v.gQ)({widget_file_name:H,source:v.Dn.PIC_FIND})};return(0,g.jsx)(b.ks,{children:U.map(H=>{let{imgs:Q,tab:N,name:L,tabHeight:V}=H;return(0,g.jsx)(f.A,{className:h()("picture-panel",N),title:L,canCollapse:!1,onClickResources:()=>O(L),children:(0,g.jsx)(t,{imgs:Q,tabHeight:V})},N)})})},t=K=>{const{imgs:$,tabHeight:A}=K,[E,U]=(0,n.useState)(),O=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(!O||!O.current)return;const N=O.current;U(N.getBoundingClientRect())},[]);const H=d()(N=>{const{target:L}=N,V=L.getBoundingClientRect();U(V)},200),Q=N=>{if(!O||!O.current)return 0;const L=O.current;if(!L)return 0;const{left:V,right:M}=L.getBoundingClientRect(),D=Array.from(L.children).filter(B=>B.className.includes("pic-item"));if(D.length<1)return 0;const W=D.map(B=>B.getBoundingClientRect()),F=L.scrollLeft;if(N==="right"){const{left:B}=W.find(X=>{let{right:G}=X;return G>M})||{},Y=B?B-V-2:0;return F+Y}if(N==="left"){const{right:B}=W.reverse().find(X=>{let{left:G}=X;return G<V})||{},Y=B?B-M-2:0;return F+Y}return F};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("ul",{className:"picture-item-container",ref:O,style:{height:A+4},onScroll:H,children:$.map(N=>(N.tabHeight=A,(0,g.jsx)(p.I,{lazyLoad:!0,containerRect:E,scrollDirection:"x",preloadDistance:200,asset:N,popupsName:i.lS.Asset},N.asset_cid)))}),(0,g.jsx)(a.j,{scrollContainerEl:O.current,getNextScrollLeft:Q})]})};var _=e(59531),I=e(25409);const k=K=>{const{nameIndex:$,metadata:A,activeWord:E,dispatch:U}=K,O=(0,n.useMemo)(()=>{if(!E)return[];const Q=A.find(N=>N.name[$]===E);return!Q||!(Q!=null&&Q.imgs)?[]:Q.imgs.map(N=>({tab:Q.tab,...(0,s.Kb)(Q.tab,N)}))},[A,E,$]),H=(0,n.useCallback)(()=>U({type:"image-panel:update:state",payload:{findActiveWord:""}}),[U]);return(0,n.useEffect)(()=>()=>{H(),C.A.emit(P.P2,{shownMtItemCids:[]})},[]),(0,n.useEffect)(()=>{if(O&&O.length>0){const Q=(0,l.pq)(O,E);C.A.emit(P.jy,{observeMtItemObj:Q}),C.A.emit(P.BD)}},[E,O]),!O||O.length<1?null:(0,g.jsxs)(b.SC,{children:[(0,g.jsx)(I.l,{resources:{title:E},showSearch:!1,showStar:!1,onBack:H}),(0,g.jsx)(_.D,{pictureList:O,popupsName:i.lS.Asset})]})},j=K=>{const{activeWord:$,renderLoading:A}=K,[E,U]=(0,n.useState)(!1),O=(0,w.k)()?0:1,H=(0,r.d4)(o.ld),Q=(0,r.d4)(o.oE),N=(0,r.wA)();return(0,n.useEffect)(()=>{Q||(U(!0),z().then(L=>U(!1)).catch(L=>{console.error("download meta.json failed",L),U(!1)}))},[Q]),E?A():!H||H.length<1?null:$?(0,g.jsx)(k,{nameIndex:O,metadata:H,activeWord:$,dispatch:N}):(0,g.jsx)(S,{metadata:H,nameIndex:O,dispatch:N})},z=async()=>{const K=ENV.IS_MO?"/res-img/meta-en.json":"/res-img/meta.json",$=await(0,c.DE)(K);MB.action("image-panel:set:metadata",Array.isArray($)?$:[])}},88255:(Fe,ee,e)=>{"use strict";e.d(ee,{E:()=>u});var n=e(38502),r=e(53940),c=e(67787);const o=c.Ay.div.withConfig({displayName:"styles__StyledNoIcons",componentId:"sc-fzxg6q-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;img{width:67px;height:69px;}.tips{margin:27px 0;color:#7d8694;text-align:center;}.tips-link{margin:8px;text-align:center;a{color:",";text-decoration:underline;}}"],d=>d.theme.color_text_link_normal);var w=e(72214);function u(d){let{noIconText:y,iconLink:h,theme:i,className:f}=d;return(0,w.jsxs)(o,{className:f,children:[(0,w.jsx)("img",{src:"/mb-workspace/images/workspace/design/"+(i===r.Sx.DARK?"no_icons_dark":"no_icons_light")+".png",alt:""}),(0,w.jsx)("p",{className:"tips",dangerouslySetInnerHTML:{__html:y}}),h&&(0,w.jsx)("p",{className:"tips-link",dangerouslySetInnerHTML:{__html:h}})]})}},88463:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>p});var n=e(95549),r=e(38502),c=e(53732),o=e.n(c),w=e(17307),u=e(79371),d=e.n(u),y=e(57479),h=e(67787);const i=h.Ay.div.withConfig({displayName:"styles__StyledSearchBar",componentId:"sc-eqavh3-0"})(["position:relative;height:26px;display:flex;align-items:center;width:100%;border-radius:6px;background:",";border-width:1px;border-style:solid;border-color:",";transition:all 0.2s ease-out;overflow:hidden;color:",";&:hover,&.isFocus{background:",";border-color:",";}&.tempDisabled{opacity:0.4;}.search-icon{flex:0 0 14px;margin-left:10px;width:13px;height:14px;path{fill:",";}}.autoCompleteInput{position:absolute;width:1px;height:1px;top:-2000px;}input{width:100%;height:100%;margin-left:5px;flex:1;color:",";&::placeholder{color:",";}&:focus{border-color:",";}}.clear-icon-box{width:16px;height:16px;border-radius:50%;background:",";margin-right:6px;margin-left:5px;display:flex;align-items:center;justify-content:center;&:hover{background:",";}}.clear-icon{flex:0 0 8px;width:8px;height:8px;transition:all 0.15s ease-in-out;cursor:pointer;path{fill:",";}}.search-bar-right-devider{width:1px;height:16px;background:rgb(222,224,226);}.search-bar-exit-word{width:40px;flex:0 0 40px;padding:0 8px;font-size:12px;font-weight:400;color:",";&:hover{color:",";}}"],s=>s.theme.color_bg_white,s=>s.theme.color_bg_border_02,s=>s.theme.color_text_L3,s=>s.theme.color_bg_white,s=>s.theme.color_text_link_normal,s=>s.theme.color_text_L3,s=>s.theme.color_text_L1,s=>s.theme.color_text_L3,s=>s.theme.color_proto,s=>s.theme.color_bg_border_01,s=>s.theme.color_bg_border_02,s=>s.theme.color_text_L1,s=>s.theme.color_text_L2,s=>s.theme.color_text_L1);var f=e(72214);class p extends r.PureComponent{constructor(l){super(l),(0,n.A)(this,"setInputRef",C=>this.$input=C),(0,n.A)(this,"focus",()=>this.$input.focus()),(0,n.A)(this,"handleUpdateValue",C=>{const{onChange:v}=this.props;v?v(C):this.setState({value:C})}),(0,n.A)(this,"handleChange",C=>{const v=C.target.value;this.handleUpdateValue(v),!(this.state.isInputComposition||!this.props.isInstantSearch)&&this.handleSearch(v)}),(0,n.A)(this,"handleSearch",d()(C=>{const{onSearch:v}=this.props;v&&v(C.trim())},this.props.wait)),(0,n.A)(this,"handleClear",C=>{const{onClear:v,onSearch:a,value:P,onFocus:b}=this.props;this.handleUpdateValue(""),v?v():a&&a(""),P?b&&b():this.$input.blur()}),(0,n.A)(this,"handleMouseDown",C=>C.preventDefault()),(0,n.A)(this,"handleKeyDown",C=>{if(C.key===y._.Enter){const{value:v,onChange:a}=this.props,{value:P}=this.state,b=a?v:P;this.handleSearch(b)}}),(0,n.A)(this,"handleFocus",()=>{const{onFocus:C}=this.props;this.setState({isFocus:!0}),C&&C()}),(0,n.A)(this,"handleBlur",()=>{const{onBlur:C}=this.props;this.setState({isFocus:!1})}),(0,n.A)(this,"handleClick",C=>{C&&MB.notice({text:I18N.Common.feature_is_not_available,type:"warning"})}),(0,n.A)(this,"handleCompositionEnd",C=>{this.setState({isInputComposition:!1},()=>this.handleChange(C))}),this.state={value:l.value,isFocus:l.isFocus,isInputComposition:!1}}render(){const{placeholder:l,className:C,inputStyle:v,value:a,tempDisabled:P,canClear:b=!0,onChange:g,renderRightNode:S=null}=this.props,{isFocus:t,value:_}=this.state,I=g?a:_,k=t?b:b&&I.length>0;return(0,f.jsxs)(i,{type:"search",className:o()(C,t?"isFocus":"",P&&"tempDisabled"),onClick:()=>this.handleClick(P),children:[(0,f.jsx)(w.C,{name:"design/scale_search",className:"search-icon"}),(0,f.jsx)("input",{ref:this.setInputRef,style:v,type:"text",value:I,placeholder:l,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,onCompositionStart:()=>this.setState({isInputComposition:!0}),onCompositionEnd:this.handleCompositionEnd,disabled:P}),k&&(0,f.jsx)("div",{className:"clear-icon-box",children:(0,f.jsx)(w.C,{name:"design/scale_clear",className:"clear-icon",onMouseDown:this.handleMouseDown,onClick:this.handleClear})}),S&&S()]})}}(0,n.A)(p,"defaultProps",{wait:1e3,isInstantSearch:!0})},88670:(Fe,ee,e)=>{"use strict";e.d(ee,{Q:()=>K,X:()=>j});var n=e(14166),r=e(70933),c=e(22835),o=e(23314),w=e(75150),u=e(92272),d=e(20089),y=e(65209),h=e(61790),i=e(85131),f=e(18501),p=e(67588),s=e(78257),l=e(53940),C=e(87945),v=e(8228),a=e(10472),P=e(93413),b=e(73298),g=e(83744),S=e(21677),t=e(79209),_=e(73662),I=e(33421);const k=["textfill","genprd","text"],j={AIOpenModal:"entry:ai:update:openAIModal",AIOpenLeftNav:"entry:ai:update:OpenLeftAINav",AIOpenSemantic:"entry:ai:update:openAISemantic",AIToggleOpenSemantic:"entry:ai:update:toggleOpenAISemantic",AIComponentCreateMode:"entry:ai:open:aiComponentCreateMode",AIToggleOpenChatPanel:"entry:ai:update:toggleOpenAIChatPanel"},K={...{[j.AIOpenModal]:($,A)=>{let{getState:E,dispatch:U}=$,{payload:O}=A;if(!O)return;const H=E(),Q=(0,f.fh)(H),N=(0,w.gu)(),L=O.type,V=O==null?void 0:O.userInput,M=O==null?void 0:O.openTrackSource;if(!(!V&&L!==v.SR.AIAssistant&&(Q==null?void 0:Q.type)===L)){if(L===v.SR.AutoFill){U({type:"entry:autoFillPanel:toggle:show",payload:{canClose:!1,openFrom:C.G.RightClick}});return}U({type:"ai:update:state",payload:{showAIModal:!0,currentAiComponent:O,showAIGuide:N,userInputObj:{userInput:O.userInput||""}}}),M&&(0,S.Z)(L,M)}},[j.AIOpenLeftNav]:$=>{let{getState:A,dispatch:E}=$;const U=A(),O=(0,p.bP)(U);if(E({type:"entry:active:popup:panel",payload:{name:s.lS.AI}}),O==="old_right")E({type:"entry:search-panel:clear:state"});else{E({type:"entry:toggle:left-nav-panel",payload:{isAlwaysShow:!0}});const H=O==="old_right"?l.sR:l.Cj;E({type:"left-panel:set:width",payload:{width:H,isNotSaveLocal:!0}})}},[j.AIOpenSemantic]:$=>{let{dispatch:A}=$;const E=(0,w.gu)();let U={};E&&(U={showAIModal:!0}),A({type:"ai:update:state",payload:{showAISemantic:!0,showAIGuide:E,...U}})},[j.AIToggleOpenSemantic]:$=>{let{getState:A,dispatch:E}=$;const U=A(),{isEditingProjectMain:O}=(0,a.r)(U);if(!O)return;const H=(0,f.Ky)(U),Q=(0,w.gu)();let N={};Q&&(N={showAIModal:!0}),!H&&E({type:"entry:aiComponent:exit:mode"}),E({type:"ai:update:state",payload:{showAISemantic:!H,showAIGuide:Q,...N}}),!Q&&(E({type:"ai:update:showAISemanticTip",payload:!1}),MB.commonGuideHelper.checkGuideHasShown(P.c.GUIDE_SEMANTIC_PANEL)||MB.commonGuideHelper.markGuideAsRead(P.c.GUIDE_SEMANTIC_PANEL))},[j.AIComponentCreateMode]:async $=>{let{getState:A,dispatch:E}=$;await E({type:"ai:update:state",payload:{showAIModal:!1,showAISemantic:!1,currentAiComponent:null}}),b.ZF.setCache("\u5DE6\u4FA7AI\u5165\u53E3"),(0,b.U2)({source:"AI\u9762\u677F\u751F\u6210AI\u7EC4\u4EF6"}),E({type:"entry:aiComponent:open:mode"})},[j.AIToggleOpenChatPanel]:$=>{let{getState:A,dispatch:E}=$;const U=A(),O=(0,f.Uz)(U);E({type:"ai:update:state",payload:{showAIChatPanel:!O}})}},"ai:generate:hotItems":($,A)=>{let{dispatch:E}=$,{payload:U}=A;const{hotItems:O,autoSizeKeys:H=[],moveToCenterKey:Q="",updateMindSizeKey:N="",isFitCanvas:L=!0,isGroup:V=!1}=U;if(!O||!(O!=null&&O.length))return;sdkStore.combineMergeMark("ai-semantic-function"),sdkStore.updateHotItemBatch(O),Q&&(0,w.EQ)(Q),N&&E({type:"entry:mind:update:mind-size",payload:{keyMindToUpdateSize:N}}),(0,w.X9)(H);const M=O.filter(F=>{var B;return((B=F.hotAttr)==null?void 0:B.type)!=="rResExt"}),D=M.filter(F=>{var B;return((B=F.hotAttr)==null?void 0:B.type)===d.x.Canvas}).map(F=>F.key),W=(D==null?void 0:D.length)>0?D:M.map(F=>F.key);E({type:"entry:select:items",payload:{cids:Q?[Q]:W}}),V&&E({type:"entry:group:items"}),L&&E({type:"entry:design:zoom:selection"}),sdkStore.combineMerge("ai-semantic-function")},"ai:generate:flow":($,A)=>{let{getState:E,dispatch:U}=$,{payload:O}=A;const H=E(),Q=(0,r.X_)(H),{hotItems:N}=O;sdkStore.updateHotItemBatch(N);const L=[],V=[];N.forEach(Z=>{Z.hotAttr.type===d.x.WElbow?V.push(Z):L.push(Z)});let M=n.QG;for(const{key:Z}of L){const J=sdkStore.getHotAABB(Z);M=(0,n.il)(M,J)}const D=M[2]-M[0],W=M[3]-M[1],{top:F,left:B}=(0,c.u5)({width:D,height:W,scale:Q}),Y=L.map(Z=>(Z.hotAttr.x=B+Z.hotAttr.x,Z.hotAttr.y=F+Z.hotAttr.y,Z));sdkStore.updateHotItemBatch(Y);const X=V.map(Z=>{const J=Z.key,{refFromKey:te,refToKey:he,elbow:{fromDirection:de,toDirection:Se}}=Z.hotAttr,xe=sdkStore.getLocalBound(te),be=sdkStore.getLocalBound(he),ie=(0,o.Jv)({elbowKey:J,bound:xe,direction:de,refKey:te,moveAnchor:"start"});return(0,o.Jv)({elbowKey:J,bound:be,direction:Se,refKey:he,moveAnchor:"end",elbow:ie})});sdkStore.updateHotItemBatch(X);const G=[...L.map(Z=>Z.key),...V.map(Z=>Z.key)];U({type:"entry:select:items",payload:{cids:G}})},"ai:generate":async($,A)=>{let{getState:E,dispatch:U}=$,{payload:O}=A;const{type:H,hotItems:Q}=O,N=H==="mind"?1:Q.length;if(!(0,t._c)({type:"widget",count:N})){setTimeout(()=>{MB.notice({isShow:!1})},4);return}const L=E(),V=(0,r.Ur)(L),M=(0,r.lh)(L),D=(0,r.Mj)(L),W=V==null?void 0:V.cid;let F=(0,y._)(W),B=(0,i.QN)(W);const Y=_.y.query.getMissFontHiKeySet(L),X=de=>{const Se=[];return de.forEach(xe=>{if(xe.hotAttr.type!=="rResExt"){if(xe.hotAttr.zIndex=F,F+=1,xe.hotAttr.name=(0,h.Fg)(xe.hotAttr),xe.hotAttr.type===d.x.Canvas)xe.hotAttr.order=B,B=B+1;else if(xe.hotAttr.type===d.x.WImage){const{name:be,url:ie}=xe.hotAttr.ext,oe=(0,u.q4)(be,ie);Se.push(oe),xe.hotAttr.image.imageRef=oe.key}else if(xe.hotAttr.type===d.x.WCarousel){const ie=xe.hotAttr.exts.map((oe,ue)=>{const{name:ve,url:re}=oe,fe=(0,u.q4)(ve,re);return xe.hotAttr.carousel.slides[ue].asset=fe.key,fe});Se.push(...ie)}}}),[...de,...Se]};switch(H){case"Page":{var G,Z;if(!Q||!(Q!=null&&Q.length))return;const de=X(Q),Se=((G=de[0])==null||(G=G.hotAttr)==null?void 0:G.type)===d.x.Canvas?(Z=de[0])==null?void 0:Z.key:"";await U({type:"ai:generate:hotItems",payload:{hotItems:de,moveToCenterKey:Se,isFitCanvas:!1}});break}case"PageV9":{const de=(0,g.wt)();de&&(0,g.H2)(!1),await U({type:"ai:generate:hotItems",payload:{hotItems:Q,moveToCenterKey:Q[0].key,isFitCanvas:!1}}),de&&(0,g.H2)(!0);break}case"flow":{if(!Q||!(Q!=null&&Q.length))return;const de=Q.map(Se=>({...Se,hotAttr:{...Se.hotAttr,name:(0,h.Fg)(Se.hotAttr),zIndex:F}}));U({type:"ai:generate:flow",payload:{hotItems:de}});break}case"mind":{var J,te;if(!Q||!(Q!=null&&Q.length))return;let de=null;const Se=Q.map(xe=>(xe.hotAttr.type===d.x.WMind&&(de=xe),{...xe,hotAttr:{...xe.hotAttr,name:(0,h.Fg)(xe.hotAttr),zIndex:xe.hotAttr.type===d.x.WMind?F:xe.hotAttr.zIndex}}));U({type:"ai:generate:hotItems",payload:{hotItems:Se,moveToCenterKey:(J=de)==null?void 0:J.key,updateMindSizeKey:(te=de)==null?void 0:te.key,isFitCanvas:!1}});break}case"chart":case"table":{var he;if(!Q||!(Q!=null&&Q.length))return;const de=Q.map(Se=>({...Se,hotAttr:{...Se.hotAttr,name:(0,h.Fg)(Se.hotAttr),zIndex:F}}));U({type:"ai:generate:hotItems",payload:{hotItems:de,moveToCenterKey:(he=de[0])==null?void 0:he.key,isFitCanvas:!1}});break}case"semantic":{const{semanticType:de,status:Se}=O,xe=Q.filter(be=>!Y.has(be.key));if(xe.length!==Q.length){setTimeout(()=>{MB.notice({isShow:!1}),(0,I.Kv)()},4);const be=Q.filter(ie=>Y.has(ie.key)).map(ie=>({key:ie.key,hotAttr:{isLock:!1}}));if(U({type:"entry:widget:change",payload:{flatChgList:be,shouldReBuildTree:!0}}),xe.length===0)break}switch(de){case"edittext":case"texttranslate":case"textpolish":case"textstyle":case"textexpand":case"textshort":{const be=xe[0];if(Se===200){if(!be)break;sdkStore.combineMergeMark("ai-semantic-function"),U({type:"entry:widget:change",payload:{flatChgList:xe,shouldReBuildTree:!0}}),be.hotAttr.type===d.x.WRichText?(0,w.X9)([be.key]):(U({type:"entry:set:editing:cid",payload:{item:{key:be.key}}}),U({type:"entry:set:editing:cid",payload:{item:{key:""}}}),M&&U({type:"entry:set:editing:cid",payload:{item:{key:M}}})),sdkStore.combineMerge("ai-semantic-function")}else(0,w.We)(D),U({type:"entry:widget:change",payload:{flatChgList:xe}});break}case"editstyle":{if(!Q||!(Q!=null&&Q.length))return;sdkStore.combineMergeMark("ai-semantic-function"),U({type:"entry:widget:change",payload:{flatChgList:Q,shouldReBuildTree:!0}});const be=Q.filter(ie=>ie.hotAttr.type===d.x.WRichText).map(ie=>ie.key);(0,w.X9)(be),sdkStore.combineMerge("ai-semantic-function");break}case"gencomponent":{if(!Q||!(Q!=null&&Q.length))return;const be=X(Q);U({type:"ai:generate:hotItems",payload:{hotItems:be,isGroup:!0}});break}default:{if(!Q||!(Q!=null&&Q.length))return;const be=X(Q),ie=k.includes(de)?Q.map(oe=>oe.key):[];U({type:"ai:generate:hotItems",payload:{hotItems:be,autoSizeKeys:ie}});break}}break}default:break}}}},88909:(Fe,ee,e)=>{"use strict";e.d(ee,{A6:()=>c,BD:()=>o,P2:()=>n,aI:()=>i,dK:()=>h,jy:()=>r,kE:()=>u,l7:()=>d,rg:()=>w,wO:()=>y});const n="left-layout:mt-inter-observer:exposure-track:set:shown-cids",r="left-layout:mt-inter-observer:exposure-track:set:observer-items-obj",c="left-layout:mt-inter-observer:exposure-track:add:observer-items-obj",o="left-layout:mt-inter-observer:exposure-track:exec-observe",w="search-panel:mt-inter-observer:load-mt-data:init-observer",u="search-panel:mt-inter-observer:load-mt-data:exec-observe",d="combo-panel:mt-inter-observer:load-mt-data:init-observer",y="combo-panel:mt-inter-observer:load-mt-data:exec-observe",h="widget-modal:mt-inter-observer:load-mt-data:init-observer",i="widget-modal:mt-inter-observer:load-mt-data:exec-observe"},88944:(Fe,ee,e)=>{"use strict";e.d(ee,{$n:()=>p,MO:()=>d,O3:()=>h,VW:()=>w,Vi:()=>u,W0:()=>f,Ww:()=>y,Zf:()=>l,_Y:()=>o,m8:()=>i});var n=e(5209),r=e(20089),c=e(81717);let o=function(C){return C.CanvasRight="\u753B\u5E03\u53F3\u952E",C.SettingPanel="\u5C5E\u6027\u9762\u677F",C.PageList="\u76EE\u5F55\u5217\u8868",C.LayersList="\u56FE\u5C42\u5217\u8868",C.Toolbar="\u9876\u90E8\u680F",C.Other="\u5176\u4ED6",C}({}),w=function(C){return C.LeftAlign="\u5DE6\u5BF9\u9F50",C.HorizontalAlign="\u6C34\u5E73\u5C45\u4E2D",C.RightAlign="\u53F3\u5BF9\u9F50",C.JustifyAlign="\u4E24\u7AEF\u5BF9\u9F50",C.TopAlign="\u9876\u5BF9\u9F50",C.VerticalAlign="\u5782\u76F4\u5C45\u4E2D",C.BottomAlign="\u5E95\u5BF9\u9F50",C.HorizontalEquidistant="\u6C34\u5E73\u7B49\u95F4\u8DDD",C.VerticalEquidistant="\u5782\u76F4\u7B49\u95F4\u8DDD",C.SelectLayers="\u9009\u62E9\u56FE\u5C42",C.Combination="\u7EC4\u5408",C.BreakUp="\u6253\u6563",C.Locked="\u9501\u5B9A",C.UnLocked="\u89E3\u9501",C.MoveUp="\u4E0A\u79FB(\u4E0A\u79FB\u4E00\u5C42)",C.MoveDown="\u4E0B\u79FB(\u4E0B\u79FB\u4E00\u5C42)",C.Top="\u7F6E\u9876",C.Bottom="\u7F6E\u5E95",C.Copy="\u590D\u5236",C.Cut="\u526A\u5207",C.Paste="\u7C98\u8D34",C.PropertyPaste="\u5C5E\u6027\u7C98\u8D34",C.Delete="\u5220\u9664",C.Hide="\u9690\u85CF",C.Show="\u663E\u793A",C.SwitchMuban="\u8F6C\u6362\u4E3A\u6BCD\u7248",C.SwitchBasket="\u8F6C\u6362\u4E3A\u52A8\u6001\u7EC4\u4EF6",C.AddToMyCombo="\u6DFB\u52A0\u5230\u6211\u7684\u7EC4\u4EF6(\u6DFB\u52A0\u7EC4\u4EF6\u7D20\u6750\u5230\u6211\u7684\u7EC4\u4EF6)",C.AddToOrgCombo="\u6DFB\u52A0\u5230\u4F01\u4E1A\u7EC4\u4EF6(\u6DFB\u52A0\u7EC4\u4EF6\u7D20\u6750\u5230\u4F01\u4E1A\u7EC4\u4EF6)",C.AutoFill="\u667A\u80FD\u586B\u5145",C.CopySharingLink="\u590D\u5236\u5206\u4EAB\u94FE\u63A5",C.CopyAsPng="\u590D\u5236\u4E3A PNG",C.CopyIta="\u590D\u5236\u4E8B\u4EF6",C.SettingPanelExportToPNG="\u53F3\u4FA7\u9762\u677F\u5E95\u90E8\u5BFC\u51FA",C}({});const u={[r.Q.FIXED_TYPE.not_fixed]:"\u4E0D\u56FA\u5B9A",[r.Q.FIXED_TYPE.top]:"\u76F8\u5BF9\u9876\u90E8\u56FA\u5B9A",[r.Q.FIXED_TYPE.bottom]:"\u76F8\u5BF9\u5E95\u90E8\u56FA\u5B9A",[r.Q.FIXED_TYPE.sticky]:"\u5438\u9876\u56FA\u5B9A"},d={left:w.LeftAlign,right:w.RightAlign,center:w.HorizontalAlign,top:w.TopAlign,middle:w.VerticalAlign,bottom:w.BottomAlign},y={"flex-start":w.TopAlign,"flex-end":w.BottomAlign,center:w.VerticalAlign},h=C=>{let{operation_from:v,operation_type:a}=C;(0,n.kH)("common_operation_V8",{operation_from:v,operation_type:a}),c.Y4.editProjectNew("\u901A\u7528\u64CD\u4F5C")},i=C=>{let{operationType:v}=C;h({operation_from:o.CanvasRight,operation_type:v})},f=C=>{let{operationType:v}=C;h({operation_from:o.SettingPanel,operation_type:v})},p=C=>{let{operationType:v}=C;h({operation_from:o.Toolbar,operation_type:v})},s={rounded:"\u5706\u89D2\u6298\u7EBF",sharp:"\u76F4\u89D2\u6298\u7EBF",straight:"\u76F4\u7EBF",curve:"\u66F2\u7EBF"},l=C=>{(0,n.kH)("connectionline_type_click",{line_type:s[C]})}},88987:(Fe,ee,e)=>{"use strict";e.d(ee,{F3:()=>o,Go:()=>c,Iw:()=>r,VX:()=>d,jm:()=>w,zb:()=>u});var n=e(19249);const r=y=>(0,n.SN)("/api/dashboard/v4/orgs/"+y+"/enable_trial"),c=async y=>{try{const h=await(0,n.zi)("/api/payment/v4/coupon/double_coupon",{type:y});if(h.msg){if(h.msg==="already redeemed")return MB.notice({text:"\u{1F389} \u4F18\u60E0\u5238\u9886\u53D6\u6210\u529F\uFF0C\u8BF7\u524D\u5F80\u5347\u7EA7"}),!0;if(h.msg==="coupon not found")return MB.notice({text:"\u4F18\u60E0\u5238\u4E0D\u5B58\u5728"}),!1}return MB.notice({text:"\u{1F389} \u4F18\u60E0\u5238\u9886\u53D6\u6210\u529F\uFF0C\u8BF7\u524D\u5F80\u5347\u7EA7"}),!0}catch(h){return MB.notice({text:"\u4F18\u60E0\u5238\u9886\u53D6\u5931\u8D25"}),!1}},o=()=>(0,n.DE)("/api/dashboard/v4/orgs/list"),w=async y=>{const{members:h}=await(0,n.DE)("/api/dashboard/v5/orgs/"+y+"/members");return h},u=async y=>{const{library_accesses:h}=await(0,n.DE)("/api/library/v3/orgs/"+y+"/library_accesses");return{library_accesses:h}},d=async y=>{let{actionType:h,action:i,orgCid:f,teamCid:p,projectCid:s,extra:l}=y;const C={action_type:h,action:i,org_cid:f,team_cid:p,project_cid:s,extra:l};try{await(0,n.Ds)("/go/v1/org-operation-logs/new-log",C)}catch(v){console.error("TrackOrgOperation Error:",v,"LogData:",C)}}},89080:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>f});var n=e(79371),r=e.n(n),c=e(38502),o=e(67787),w=e(77698),u=e(53732),d=e.n(u),y=e(72214);const h=p=>{let{className:s,style:l,dataList:C=[],batchCount:v=10,limitations:a=100,itemHeight:P,activeKey:b,propsMap:g={},preItemHeight:S=0,preItemRender:t,isCollapsed:_,itemRender:I}=p;const{children:k="children",collapsed:j="collapsed",key:z="key"}=g,K=(0,c.useRef)(null),$=(0,c.useRef)(new Map),A=(0,c.useMemo)(()=>{$.current.clear();const M=_||(W=>W[j]),D=function(W,F){var B;return F===void 0&&(F=0),$.current.set(W[z],F),!M(W)&&(B=W[k])!=null&&B.length?W[k].reduce((Y,X)=>(Y.push(...D(X,F+1)),Y),[W]):[W]};return C.reduce((W,F)=>(W.push(...D(F,0)),W),[])},[C,_]),E=A.length,U=E>a,O=S+E*P,H=(0,c.useRef)(b?A.findIndex(M=>M[z]===b):0),[Q,N]=(0,c.useState)(U&&H.current>=0?Math.floor(H.current/10):0),L=U?A.slice(Q*v,(Q+2)*v).map(M=>M[z]):null,V=r()(M=>{if(!U)return;const D=M.target;let W=Math.floor(D.scrollTop/(P*v));W=Math.min(Math.max(0,W),E-v*2),N(W)},10);return(0,c.useEffect)(()=>{U||N(0)},[U,Q]),(0,c.useEffect)(()=>{b&&K.current&&H.current>0&&(K.current.scrollTop=(H.current-1)*P)},[]),(0,y.jsxs)(i,{className:d()("lazy-list",s),style:l,ref:K,onScroll:V,children:[(0,y.jsxs)("div",{className:"lazy-list-content",style:{height:O},children:[t,(0,y.jsx)("div",{className:"content-area",style:{transform:"translateY("+Math.max(0,Q*v*P)+"px)"},children:A.map((M,D)=>{const W=M[z];return L&&!L.includes(W)?null:I({item:M,index:D,depth:$.current.get(W)||0})})})]}),(0,y.jsx)(w.$T,{containerRef:K,minSize:20,isAutoHideBar:!1})]})},i=o.Ay.div.withConfig({displayName:"LazyList__StyledLazyList",componentId:"sc-89eelj-0"})(["height:100%;overflow:auto;.thumb-vertical::after{margin-left:2px;}::-webkit-scrollbar-corner,::-webkit-scrollbar-thumb,::-webkit-scrollbar-track{background-color:transparent;}"]),f=h},89240:(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("path",{d:"M4.87866 6.12109L6.99998 8.24241L9.1213 6.12109",stroke:"#8B8C8F",strokeLinecap:"round",strokeLinejoin:"round"}))})},89505:(Fe,ee,e)=>{"use strict";e.d(ee,{c:()=>d});var n=e(78401),r=e(93971),c=e(92272),o=e(4410),w=e(3862),u=e(16335);const d=y=>{const h=(P,b)=>{const{isOrg:g,type:S="user_asset"}=y;if(g)return;let t={};S==="user_asset"?t={projectUpperType:S,projectUpperCid:b,itemCid:P}:(S==="picture"||S==="sticker")&&(t={projectUpperType:"picture",projectUpperCid:P}),(0,u.Cp)(t)},i=(P,b,g,S)=>{const{isOrg:t,rootProject:_,currentOrg:I,currentUser:k,popupsName:j,isFind:z,type:K}=y,$=K==="sticker"?w.R5:w.b4;(0,r.BZ)({tab:z?r.Ii.Find:t?r.Ii.Org:r.Ii.User,popupsName:j,addType:b,category:$,name:g,rootProject:_,currentOrg:I,currentUser:k,esSearchKey:P,resId:S})},f=P=>{const{isOrg:b}=y;(0,n.z3)(P.name,P.image,b)},p=P=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{isOrg:b,dispatch:g}=y;g(b?{type:"entry:batch:transfer:org-asset",payload:{orgAsset:P}}:{type:"entry:batch:transfer:user-asset",payload:{userAsset:P}})},s=P=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{isOrg:b,dispatch:g}=y;g(b?{type:"entry:batch:remove:org-asset",payload:{orgAsset:P}}:{type:"entry:batch:remove:user-asset",payload:{userAsset:P}})},l=P=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{dispatch:b}=y;b({type:"entry:batch:transfer:user:asset:to:org",payload:{userAsset:P}})},C=(P,b)=>{if(MB.global.experienceLoginModalHelper("isSave"))return;const{isOrg:g,dispatch:S}=y,t={...P,name:b};S(g?{type:"entry:refresh:org-asset:update",payload:{orgAssetUpdateList:[t]}}:{type:"entry:refresh:user-asset:update",payload:{userAssetUpdateList:[t]}}),S({type:"entry:search-panel:update:asset:name",payload:{cid:P.cid,name:b,isOrg:g}})},v=P=>{var b,g;if(MB.global.experienceLoginModalHelper("isSave"))return;const{dispatch:S}=y;h((b=P.cid)!=null?b:P.asset_cid,P.group_cid),S({type:"entry:create:widget:by:asset",payload:{asset:P}}),i((g=P.asset_cid)!=null?g:P.cid,r.k8.DoubleClick,P.name,P.id)},a=async(P,b)=>{const{canvasRect:g,rootProject:S,showDragMode:t,isAdsorbentReferenceLine:_,popupsName:I}=y,k=(0,c.BL)(b),j=(0,o.g)(I);(0,o.dD)({e:P,items:[k],width:k.w,height:k.h,doNotCreateRect:j,canvasRect:g,rootProject:S,showDragMode:t,isAdsorbentReferenceLine:_,callback:()=>{var z,K;h((z=b.cid)!=null?z:b.asset_cid,b.group_cid),i((K=b.asset_cid)!=null?K:b.cid,r.k8.Drag,b.name,b.id)}})};return{onAssetDownload:f,onAssetMove:p,onAssetRemove:s,onAssetAdd:!y.isOrg&&y.currentOrg?l:null,onAssetNameConfirm:C,onAssetImport:v,onMouseDown:a}}},89671:(Fe,ee,e)=>{"use strict";e.d(ee,{d:()=>r});var n=e(67787);const r=n.Ay.div.withConfig({displayName:"styles__StyledSinglePanelState",componentId:"sc-1g89c81-0"})(["display:flex;justify-content:space-between;align-items:center;width:100%;padding:0 14px;color:",";.left-label{height:14px;line-height:14px;white-space:nowrap;}.right-content{width:140px;display:flex;flex-wrap:wrap;justify-content:space-between;}.panelstate-select{width:140px;margin-left:auto;&:lang(ja){width:110px;}}.panelstate-selectmenu{width:140px;}"],c=>c.theme.color_text_L2)},89853:(Fe,ee,e)=>{"use strict";e.d(ee,{FP:()=>o,Io:()=>u,Xb:()=>w,d8:()=>d});const n=y=>Math.cos(y*Math.PI/180),r=y=>Math.sin(y*Math.PI/180),c=(y,h,i)=>{const f=h*Math.PI/180,p={x:i.x-y.x,y:i.y-y.y},{x:s,y:l}=p,C=s*Math.cos(f)-l*Math.sin(f),v=l*Math.cos(f)+s*Math.sin(f);return{x:C+y.x,y:v+y.y}},o=(y,h)=>Math.atan2(h,y)/Math.PI*180,w=(y,h)=>Math.sqrt(Math.pow(y,2)+Math.pow(h,2)),u=(y,h,i,f)=>Math.sqrt(Math.pow(i-y,2)+Math.pow(f-h,2)),d=(y,h)=>{const[i,f]=h;return typeof i=="number"&&y<i?i:typeof f=="number"&&y>f?f:y}},89886:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>d});var n=e(38502),r=e(17307),c=e(61068),o=e(5649),w=e(20166),u=e(72214);const d=(0,n.memo)(y=>{let{layoutGrid:h,rowCount:i,colWidth:f,onChange:p,dispatch:s,selections:l}=y;const{isGridLayout:C,gridSize:v,isRowLayout:a,rowHeight:P,rowGutter:b,isColLayout:g,colCount:S,colGutter:t}=h,_=(I,k)=>{const j={...h,[k]:I};p({value:j,attr:"layoutGrid",dispatch:s,selections:l})};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:"screen-line grid-line",children:[(0,u.jsx)(c.A,{className:"check "+c.p,attr:"isGridLayout",isChecked:C,onChange:(I,k)=>{_(I,k),(0,w.A9)({attr:"isGridLayout",isOpen:!C})}}),(0,u.jsx)("div",{className:"dir-icon",children:(0,u.jsx)(r.C,{name:"setting_panel/layout/grid"})}),(0,u.jsx)(o.A,{className:"input",attr:"gridSize",value:v,min:1,max:99999,onConfirm:_})]}),(0,u.jsxs)("div",{className:"screen-line",children:[(0,u.jsx)(c.A,{className:"check "+c.p,attr:"isColLayout",isChecked:g,onChange:(I,k)=>{_(I,k),(0,w.A9)({attr:"isColLayout",isOpen:!g})}}),(0,u.jsx)("div",{className:"dir-icon",children:(0,u.jsx)(r.C,{name:"setting_panel/layout/grid_column"})}),(0,u.jsx)(o.s,{className:"input",attr:"colCount",value:S,toolTipContent:I18N.SettingPanel.count,disabled:!g,min:1,onConfirm:_,direction:"down"}),(0,u.jsx)(o.s,{className:"input middle-input",attr:"colGutter",value:t,toolTipContent:I18N.SettingPanel.gutter,disabled:!g,min:0,onConfirm:_,direction:"down"}),(0,u.jsx)(o.s,{className:"input",value:f,toolTipContent:I18N.SettingPanel.size,disabled:!0,min:0,direction:"down"})]}),(0,u.jsxs)("div",{className:"screen-line",children:[(0,u.jsx)(c.A,{className:"check "+c.p,attr:"isRowLayout",isChecked:a,onChange:(I,k)=>{_(I,k),(0,w.A9)({attr:"isRowLayout",isOpen:!a})}}),(0,u.jsx)("div",{className:"dir-icon",children:(0,u.jsx)(r.C,{name:"setting_panel/layout/grid_row"})}),(0,u.jsx)(o.s,{className:"input",attr:"rowCount",value:i,toolTipContent:I18N.SettingPanel.rows,disabled:!a,min:0,onConfirm:_,direction:"down"}),(0,u.jsx)(o.s,{className:"input middle-input",attr:"rowGutter",value:b,toolTipContent:I18N.SettingPanel.gutter,disabled:!a,min:0,onConfirm:_,direction:"down"}),(0,u.jsx)(o.s,{className:"input",value:P,toolTipContent:I18N.SettingPanel.size,disabled:!a,min:0,direction:"down",onConfirm:_})]})]})})},89989:(Fe,ee,e)=>{"use strict";e.d(ee,{a:()=>n});const n="CMT:CHG"},90144:(Fe,ee,e)=>{"use strict";e.d(ee,{Ac:()=>o,Dn:()=>r,d0:()=>w,gQ:()=>c});var n=e(5209);const r={WIDGET_FIND:"\u7EC4\u4EF6-\u53D1\u73B0",WIDGET_SEARCH:"\u7EC4\u4EF6-\u641C\u7D22",PAGE_LIB:"\u9875\u9762-\u9875\u9762\u5E93",ICON_SEARCH:"\u56FE\u6807-\u641C\u7D22",PIC_FIND:"\u56FE\u7247-\u53D1\u73B0",STICKER_FIND:"\u8D34\u7EB8-\u53D1\u73B0",COLOR_ICON_SEARCH:"\u5F69\u8272\u56FE\u6807-\u641C\u7D22"},c=u=>{let{widget_file_name:d,keyword:y="",source:h,filter:i=""}=u;(0,n.kH)("template_viewall_click",{widget_file_name:d,keyword:y,source:h,filter:i})},o=u=>{let{source:d}=u;(0,n.kH)("tab_click",{source:d})},w=u=>{(0,n.kH)("template_exposure",u)}},90592:(Fe,ee,e)=>{"use strict";e.d(ee,{JB:()=>o,i4:()=>c,t_:()=>w});var n=e(67787),r=e(80985);const c=(0,n.Ay)(r.o).withConfig({displayName:"styles__StyledScrollableMarketTemplateMasonryList",componentId:"sc-15mlyhq-0"})(["height:100%;overflow:hidden auto;margin-bottom:8px;scrollbar-width:none;&::-webkit-scrollbar{display:none;}&:hover::-webkit-scrollbar{display:block;}.market-template-masonry-list-container{width:250px;}"]),o=n.Ay.div.withConfig({displayName:"styles__StyledMarketTemplateMasonryList",componentId:"sc-15mlyhq-1"})(["width:100%;height:fit-content;&.combo_group{padding:0 12px;}&.screen_list,&.project_basic{padding:1px 8px 0 8px;display:flex;justify-content:space-between;}"]),w=n.Ay.ul.withConfig({displayName:"styles__StyledMarketTemplateMasonryColumn",componentId:"sc-15mlyhq-2"})(["&.combo_group{display:grid;grid-row-gap:8px;grid-column-gap:8px;grid-template-columns:repeat(auto-fill,109px);.template-item{width:109px;flex:0 0 109px;position:relative;width:100%;justify-content:start;margin-bottom:0;.img-wrapper{width:100%;height:109px;}}}&.screen_list,&.project_basic{width:100%;&.mobile{width:calc(50% - 4px);.template-item{.img-wrapper{min-height:109px;max-height:265px;border-radius:6px;}}}&:not(.template-modal){&.mobile{width:116px;.template-item{border-radius:8px;padding:4px 0 8px 0;.img-wrapper{width:109px;min-height:109px;max-height:265px;border-radius:6px;}.template-name{width:100%;margin-top:8px;text-align:left;padding-left:6px;}&:hover{background:",";}}}&.web{.template-item{border-radius:10px;padding:6px 6px 8px 6px;margin-bottom:4px;.template-name{width:100%;margin-top:8px;text-align:left;padding-left:4px;}&:hover{background:",";}}}}&.visual{.template-item .img-wrapper{min-height:110px;}}.template-item{position:relative;width:100%;&.last-mt-item{margin-bottom:0;}.img-wrapper{width:100%;min-height:126px;max-height:510px;border:1px solid ",";padding:0px;}}}"],u=>u.theme.color_btn_secondary_hover,u=>u.theme.color_btn_secondary_hover,u=>u.theme.color_bg_border_01)},91063:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>d});var n=e(38502),r=e(67787),c=e(46953),o=e(72214);const w=y=>{const h=(0,n.useRef)(null),[i,f]=(0,n.useState)(!1),{name:p,varData:s,varDataType:l}=y.varAttr;(0,n.useEffect)(()=>{var a,P;const b=(a=h.current)==null||(P=a.closest)==null?void 0:P.call(a,".TipBase");if(!b)return;const{x:g,y:S}=b.getBoundingClientRect(),t=document.elementFromPoint(g,S),_=t!=null&&t.classList.contains("var-tag")?t:t==null?void 0:t.querySelector(".var-tag");if(!_)return;if(y.overflowWidth){_.lastElementChild.scrollWidth>=y.overflowWidth&&f(!0);return}const{width:I}=_.getBoundingClientRect(),k=I-4;let j=0;for(let z=0;z<_.children.length;z++)if(j+=_.children[z].scrollWidth+z*4,j>k)return f(!0)},[]),(0,n.useEffect)(()=>{if(i){const{right:a}=h.current.getBoundingClientRect(),P=a+8-window.innerWidth;P>0&&(h.current.parentElement.style.marginRight=P*2+8+"px")}},[i]);const C=!y.showName||i,v=y.showName||i;return(0,o.jsxs)(u,{ref:h,children:[C&&(0,o.jsxs)("p",{className:"var-name",children:[I18N.Variable.name,":\xA0",p||I18N.Variable.trashed]}),v&&(0,o.jsxs)("p",{className:"var-data var-"+l+"-data",children:[I18N.Variable.init_value,":\xA0",(0,c.LK)(l,s,!0)]}),y.isTrashed?I18N.Variable.replace_trashed:y.isInvaild?I18N.Variable.invaild.replace("{v}",y.value):""]})},u=r.Ay.div.withConfig({displayName:"VarTagTip__StyledVarTagTip",componentId:"sc-1g51174-0"})(["max-width:240px;.var-name{word-break:break-all;}.var-data{max-height:300px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:12;line-clamp:12;text-overflow:ellipsis;word-break:break-all;white-space:pre-wrap;overflow:hidden;}"]),d=w},91110:(Fe,ee,e)=>{"use strict";e.d(ee,{Y:()=>c});var n=e(79209),r=e(5209);let c;(function(o){function w(l){r.kH&&(0,r.kH)("user_source",{page_address:l,btn_name:"\u539F\u578Bv8\u9884\u89C8\u672A\u767B\u5F55"})}o.userSourceTrack=w;function u(){r.kH&&(0,r.kH)("enter_proto")}o.enterProtoTrack=u;function d(){r.kH&&(0,r.kH)("show_v8newguide")}o.showNewGuideTrack=d;function y(l){let{step_num:C}=l;r.kH&&(0,r.kH)("click_v8newguide",{step_num:C})}o.clickNewGuideTrack=y;function h(l){let{step_num:C}=l;r.kH&&(0,r.kH)("close_newguide",{step_num:C})}o.closeNewGuideTrack=h;function i(l,C){const v=C.split("-")[0];r.kH&&(0,r.kH)("need_guide_click",{operation_type:l,guide_type:v==="MP"?"\u79FB\u52A8\u7AEF":v==="PC"?"PC\u7AEF":"\u5176\u4ED6"})}o.noviceGuide2309StartClick=i;function f(l,C){const v=C.split("-")[0];r.kH&&(0,r.kH)("guide_step_click",{operation_type:l,guide_type:v==="MP"?"\u79FB\u52A8\u7AEF":v==="PC"?"PC\u7AEF":"\u5176\u4ED6"})}o.noviceGuide2309StepClick=f;function p(l){r.kH&&(0,r.kH)("after_guide_click",{operation_type:l})}o.noviceGuide2309CouponClick=p;function s(){try{r.kH&&(0,r.kH)("canvas_page_count_V8",{page_number:(0,n.Uu)(),canvas_number:(0,n.$Q)()})}catch(l){}}o.designScreenCanvasCountTrack=s})(c||(c={}))},91137:(Fe,ee,e)=>{"use strict";e.d(ee,{h:()=>f});var n=e(38502),r=e(53732),c=e.n(r),o=e(17307),w=e(83199),u=e(91063),d=e(46953),y=e(67787),h=e(75810),i=e(72214);const f=s=>{const{className:l="",varItem:C,isTrashed:v,showName:a}=s;return(0,i.jsxs)(p,{className:c()("var-selector-input",l),children:[C?(0,i.jsx)(w.A,{direction:"down",enterHoverTime:200,isSkipShortTimerHover:!0,tipClassName:"fixed-transform-y10 is-open",content:(0,i.jsx)(u.A,{showName:!0,isTrashed:v,varAttr:C}),children:(0,i.jsxs)("div",{className:c()(["var-tag",{"is-name":a,"is-trashed":v}]),children:[v?(0,i.jsx)(o.C,{size:16,name:"design/preferencePanel/nav/tips",className:"var-icon tip-icon"}):a?(0,i.jsx)(o.C,{size:16,name:(0,d.Zg)(C.varDataType,C.varData),className:"var-icon"}):null,(0,i.jsx)("span",{children:a?C.name:String(C.varData)})]})}):(0,i.jsx)("span",{className:"placeholder",children:I18N.SettingPanel.please_select}),(0,i.jsx)(o.C,{className:"expand-icon",name:"common/expand@26"})]})},p=y.Ay.div.withConfig({displayName:"VarOpener__StyledVarOpener",componentId:"sc-17vx43w-0"})(["width:100%;height:28px;border-radius:6px;padding-left:4px;color:",";border:1px solid transparent;resize:none;display:flex;align-items:center;&:hover{border:1px solid ",";justify-content:space-between;.expand-icon{color:",";}}.placeholder{color:",";}.expand-icon{width:26px;height:26px;flex-shrink:0;color:",";margin-left:4px;}.var-tag{position:relative;height:20px;color:",";display:inline-flex;align-items:center;max-width:calc(100% - 28px);padding-left:2px;margin-right:2px;+ .expand-icon{margin-left:0;}span{max-width:100%;overflow:hidden;white-space:pre;text-overflow:ellipsis;}.var-icon{margin-right:6px;flex-shrink:0;font-size:14px;rect{fill:",";stroke:",";}}svg + span{max-width:calc(100% - 16px);}&.is-trashed{color:",";.var-icon{color:",";}}}"],s=>s.theme.color_text_L1,s=>s.theme.color_bg_border_02,s=>s.theme.color_text_L1,s=>s.theme.color_text_link_normal,s=>s.theme.color_text_L3,s=>s.theme.color_text_L1,s=>s.theme.color_bg_white,s=>(0,h.oU)(s,"color_bg_black"),s=>s.theme.color_warning,s=>s.theme.color_warning)},91210:(Fe,ee,e)=>{"use strict";e.d(ee,{B:()=>n});const n=r=>{const{dispatch:c,isOrg:o,localOrgAssetsOpenCids:w,localUserAssetsOpenCids:u}=r,d=v=>{c(o?{type:"entry:refresh:org-asset:from:cid",payload:{groupCid:v}}:{type:"entry:refresh:user-asset:from:cid",payload:{groupCid:v}})},y=v=>{const{cid:a}=v;if(o){if(Object.prototype.toString.call(w)==="[object Array]"){const P=w.includes(a)?"minus":"plus";c({type:"image-panel:set:local-org-assets-expand-cids",payload:{oper:P,cid:a}}),P==="plus"&&d(v.cid)}}else if(Object.prototype.toString.call(u)==="[object Array]"){const P=u.includes(a)?"minus":"plus";c({type:"image-panel:set:local-user-assets-expand-cids",payload:{oper:P,cid:a}}),P==="plus"&&d(v.cid)}},h=(v,a,P,b)=>{if(MB.global.experienceLoginModalHelper("isSave"))return;c({type:"entry:auto:change:confirm:asset_group:name",payload:{assetGroup:a,assetGroupName:v,callback:P,isOrg:b!==void 0?b:o}})},i=v=>{MB.global.experienceLoginModalHelper("isSave")||c({type:"update:popups:state",payload:{editingCid:v}})},f=(v,a)=>{if(MB.global.experienceLoginModalHelper("isSave"))return;c((a!==void 0?a:o)?{type:"entry:remove:org-asset-group",payload:{assetGroup:v}}:{type:"entry:remove:user-asset-group",payload:{assetGroup:v}})},p=v=>{MB.global.experienceLoginModalHelper("isSave")||c({type:"entry:transfer:to:org:asset-groups",payload:{assetGroup:v}})},s=v=>{c(o?{type:"entry:refresh:org-asset:from:cid",payload:{groupCid:v}}:{type:"entry:refresh:user-asset:from:cid",payload:{groupCid:v}})},l=v=>{c({type:"entry:auto:create:sub-asset-group",payload:{assetGroup:v,isOrg:o}})},C=(v,a)=>{c({type:"entry:auto:create:asset-group-insertion",payload:{assetGroup:v,isOrg:o,insertionType:a}})};return{onToggle:y,onConfirm:h,onEdit:i,onRemove:f,onTransfer:!r.isOrg&&r.currentOrg?p:null,onLoadData:s,onAddSub:l,onAdd:C}}},91224:(Fe,ee,e)=>{var n=e(29921),r=e(68151),c=e(36859),o=e(41391),w=e(3071);function u(d,y,h,i){if(!o(d))return d;y=r(y,d);for(var f=-1,p=y.length,s=p-1,l=d;l!=null&&++f<p;){var C=w(y[f]),v=h;if(C==="__proto__"||C==="constructor"||C==="prototype")return d;if(f!=s){var a=l[C];v=i?i(a,C,l):void 0,v===void 0&&(v=o(a)?a:c(y[f+1])?[]:{})}n(l,C,v),l=l[C]}return d}Fe.exports=u},91474:(Fe,ee,e)=>{"use strict";e.d(ee,{Il:()=>r,Ny:()=>w,RY:()=>h,Uf:()=>u,_n:()=>d,eD:()=>c,i1:()=>o,rW:()=>i,yB:()=>y});let n=function(f){return f.MOBILE="mobile",f.WEB="web",f.OTHER="other",f.APP="app",f.APPLET="applet",f.WEB_BACK="web_back",f.WEBSITE="website",f.IPAD="ipad",f.SMART_TV="smart_tv",f.SMART_CAR="smart_car",f.APPLE_WATCH="apple_watch",f.SLIDE="slide",f.DISPLAY_SCREEN="display_screen",f.HMI="HMI",f.HMI2="visual",f.ACTIVITY="activity",f}({});const r=[n.MOBILE,n.APP,n.APPLET],c=[n.WEB,n.WEB_BACK,n.WEBSITE],o=[n.OTHER,n.IPAD,n.SMART_TV,n.SMART_CAR,n.APPLE_WATCH,n.SLIDE,n.DISPLAY_SCREEN,n.HMI,n.ACTIVITY],w=[n.MOBILE,n.WEB,n.HMI2],u=[n.MOBILE,n.WEB,n.OTHER],d={Everyone:"everyone",MdMemberFree:"member_free",MdMemberDiscount:"member_discount",MdOriginPrice:"origin_price",MktMemberFree:"mt_member_free",MktMemberDiscount:"mt_member_discount",MktOriginPrice:"mt_origin_price"},y="default",h=[d.Everyone,d.MktMemberFree,d.MktMemberDiscount,d.MdMemberFree],i={everyone_mt_member_free_mt_member_discount_member_free:"every_md_mt_free",everyone:"everyone",mt_member_free_mt_member_discount:"mt_free_discount",member_free:"member_free",everyone_mt_member_free_mt_member_discount:"every_mt_free",everyone_member_free:"every_md_free",mt_member_free_mt_member_discount_member_free:"md_mt_free"}},92001:(Fe,ee,e)=>{"use strict";e.d(ee,{p:()=>a});var n=e(95549),r=e(38502),c=e(13642),o=e(49989),w=e(17307),u=e(39094),d=e(788),y=e(28068),h=e(56074),i=e(69815),f=e(36449),p=e(31781),s=e(18488),l=e(79209),C=e(88959),v=e(72214);class a extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"store",(0,h.A)({isVisible:!1})),(0,n.A)(this,"isFree",(0,l._S)()),(0,n.A)(this,"handleHyperLink",async()=>{const{isHavingLink:g}=this.props,{_getEditorState:S}=(0,i.DT)(),t=MB.getSelectionItems()[0];if(t){if(S){const I=(0,y.Jy)(window),{left:k,top:j,bottom:z,width:K}=I,$={top:z,left:k+K/2-24},A=S(),E=(0,d.Kt)(A),{link:U,selectionText:O,blockKey:H,start:Q,end:N}=(0,u.Q)(A,E);U&&U.target?c.A.emit("draft:link-toast:edit",{widget:t,linkTitle:U.title||O||"",linkTarget:U.target||"",style:$,blockKey:H,start:Q,end:N,fromType:"settingPanel",settingLevel:"editing"}):c.A.emit("draft:link-toast:add",{widget:t,linkTitle:O||"",linkTarget:"",style:$,blockKey:H,start:Q,end:N,fromType:"settingPanel",settingLevel:"editing"})}else{const I=document.querySelector("#text-dom-"+t.key).getBoundingClientRect(),{left:k,top:j,bottom:z,width:K}=I,$={top:z,left:k+K/2-24};if(g==="exist"){var _;const A=((_=Object.values(t.hotAttr.textV1.entityMap).find(E=>E.type==="LINK"))==null?void 0:_.data.url)||"";c.A.emit("draft:link-toast:edit",{widget:t,linkTitle:"",linkTarget:A,style:$,blockKey:"",start:"",end:"",fromType:"settingPanel",settingLevel:"widget"})}else c.A.emit("draft:link-toast:add",{widget:t,linkTitle:"",linkTarget:"",style:$,blockKey:"",start:"",end:"",fromType:"settingPanel",settingLevel:"widget"})}MB.__store__.dispatch({type:f.k.EntryKey["entry:draft:isCreatingLink:update"],payload:{isCreatingLink:!0}}),(0,p.yt)("\u63D2\u5165\u94FE\u63A5")}})}render(){const{className:g,isHavingLink:S}=this.props,t=MB.getSelectionItems()[0],_=!(0,s.xc)(t==null?void 0:t.hotAttr);return(0,v.jsx)(o.A,{disabled:_||this.isFree,className:g+(!_&&this.isFree?" is-free-disabled":""),options:P(this.isFree),value:S,handleChange:this.handleHyperLink,isLongTimeHover:!0})}}const P=b=>[{label:(0,v.jsx)(w.C,{name:"setting_panel/font/hyper_link"}),value:"exist",tip_title:b?(0,v.jsx)(C.A,{desc:"\u7F16\u8F91\u533A-v8_\u6587\u672C\u94FE\u63A5\u8BBE\u7F6E"}):"\u8D85\u94FE\u63A5",isFree:b}]},92414:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>S});var n=e(38502),r=e(18381),c=e(53732),o=e.n(c),w=e(73352),u=e(61899),d=e(88463),y=e(67787),h=e(79150),i=e(81973),f=e(10472),p=e(46953),s=e(4649),l=e(74222),C=e(9680),v=e(57150),a=e(72214);const P={number:["number"],string:["string","number"],boolean:["boolean"]},b=(0,n.forwardRef)((t,_)=>{var I;let{type:k,filterTypes:j,value:z,defaultVarData:K,needConfirm:$,selectedStyle:A,readOnly:E,onChange:U,onSelect:O,onListChanged:H,...Q}=t;const N=(0,r.d4)(i.ue),L=!((I=(0,r.d4)(f.r))!=null&&I.isEditingCombo),V=(0,r.wA)(),M=(0,n.useRef)(null),[D,W]=(0,n.useState)(""),[F,B]=(0,n.useState)(null),[Y,X]=(0,n.useState)(z?[z]:[]),G=(0,n.useRef)(null),Z=z&&sdkStore.isTrashed(z)&&(0,C.hZ)(z),J=(0,n.useRef)(),te=(j!=null?j:k)?P[k]:[],he=(0,n.useMemo)(()=>{let re=N.slice();if(te!=null&&te.length&&(re=N.filter(we=>te.includes(we.hotAttr.varDataType))),re.sort((we,Te)=>we.hotAttr.zIndex-Te.hotAttr.zIndex),Z&&Z.isTrashed&&re.unshift({key:Z.key,hotAttr:Z}),E)return re.filter(we=>we.key===z);if(!D)return re;const fe=D.toLowerCase();return re.filter(we=>we.hotAttr.name.toLowerCase().includes(fe)||String(we.hotAttr.varData).includes(fe))},[k,te,N,D,Z,E]);(0,n.useImperativeHandle)(_,()=>({updateEditorPosition:()=>{B(re=>{if(re){const fe=$?(0,p._G)(M.current,re.item.hotAttr.varDataType):(0,p.iL)(re.item,M.current);return{...re,position:fe}}return null})}}),[$]),(0,n.useEffect)(()=>{var re;(re=G.current)==null||re.call(G,N)},[N]),(0,n.useEffect)(()=>{X(z?[z]:[])},[z]),(0,n.useEffect)(()=>{z&&(0,p.tG)(z,M.current)},[]);const de=()=>{V({type:"settings:update:varList",payload:{varList:(0,C.pU)()}})},Se=re=>{W(re)},xe=re=>{const fe=(0,p.hX)(N.map(Ie=>Ie.hotAttr.name)),we={key:(0,s.dU)(),hotAttr:(0,s.mn)({name:fe,zIndex:0,varDataType:re,varData:(0,p.D5)(re,K),description:"",varType:"variable"}),sub:[],sup:l.fu};if($){const Ie=(0,p._G)(M.current,we.hotAttr.varDataType);B({item:we,autoFocusArea:"varName",position:Ie});return}sdkStore.combineMergeMark("add-items"),J.current="add-items";const Te=(0,C.pU)();(0,C.E4)("",[we,...Te]),de(),G.current=Ie=>{G.current=null;const le=Ie.find(me=>me.key===we.key);le&&(X([le.key]),U(le.key,!0),O==null||O(le.key),B({item:le,autoFocusArea:"varName",position:(0,p.iL)(le,M.current)})),H==null||H()}},be=()=>{F&&(z===F.item.key&&U(""),J.current&&(sdkStore.combineMerge(J.current),J.current=""),sdkStore.combineMergeMark("delete-items"),sdkStore.deleteHotItem(F.item.key),(0,C.E4)("delete-items"),de(),oe(),G.current=()=>{G.current=null,H==null||H()})},ie=re=>{re?(X([re.key]),U(re.key),O==null||O(re.key)):(X([]),U(""),O==null||O(""),B(null))},oe=()=>{B(null),!$&&(J.current&&(sdkStore.combineMerge(J.current),J.current=""),Y.length&&(O==null||O(Y[0])))},ue=(re,fe)=>{if($&&F&&!sdkStore.getHotItem(re)){const we=F.item;Object.assign(we.hotAttr,fe),J.current||(J.current="update-item",sdkStore.combineMergeMark(J.current)),sdkStore.updateHotItem(we),(0,C.E4)(),de(),X([re]),U(re),G.current=()=>{G.current=null,(0,p.tG)(re,M.current),H==null||H()};return}sdkStore.updateHotAttrMerge(re,fe),de(),U(re)},ve=re=>{re.stopPropagation()};return(0,a.jsxs)(g,{ref:M,...Q,onClick:ve,children:[!E&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.A,{placeholder:I18N.Variable.search.placeholder,value:D,className:"var-search",onChange:Se}),(0,a.jsx)("div",{className:"menu-divider"}),L&&(te.length===1?(0,a.jsx)(h.A,{name:"common/add_plus",className:o()(["add-button",{"is-active":F}]),onClick:()=>xe(te[0]),children:I18N.Variable.create}):(0,a.jsx)(v.A,{offsetX:-30,types:te,onAddVar:xe,children:(0,a.jsx)(h.A,{name:"common/add_plus",className:o()(["add-button",{"is-active":F}]),children:I18N.Variable.create})}))]}),(0,a.jsx)(w.A,{className:"var-dropmenu-list",list:he,selection:Y,onClick:ie,isDropMenu:!0,selectedStyle:A}),F&&(0,a.jsx)(u.A,{editorItem:F.item,position:F.position,autoFocus:F.autoFocusArea,style:{zIndex:1102},needConfirm:$,onClose:oe,onChange:$?null:ue,onConfirm:$?ue:null,onDelete:be})]})}),g=y.Ay.div.withConfig({displayName:"VarDropmenu__StyledVarDropmenu",componentId:"sc-1ccllw8-0"})(["width:176px;padding:8px;background:",";box-shadow:",";border-radius:8px;color:",";border:1px solid ",";.var-dropmenu-list{padding:0;margin:4px 0 0;&:first-child{margin:0;}}.toolbar-dropdown-opener + .var-dropmenu-list,.add-button + .var-dropmenu-list{.bar-vertical{top:84px;height:calc(100% - 90px);}}.var-search{height:28px;border-radius:6px;background:",";}.menu-item{&:hover{background:",";}}.menu-divider{height:1px;margin:8px 0;background-color:",";}.add-button{width:100%;height:32px;justify-content:flex-start;border-radius:6px;padding:0 6px;font-weight:500;.svg-icon{width:20px;height:20px;}}.add-button.is-active{background:",";}.var-list{padding:0;height:256px;}"],t=>t.theme.color_bg_white,t=>t.theme.shadow_m,t=>t.theme.color_text_L0,t=>t.theme.color_bg_border_01,t=>t.theme.color_bg_white,t=>t.theme.color_btn_secondary_hover,t=>t.theme.color_bg_border_01,t=>t.theme.color_btn_secondary_hover),S=b},93413:(Fe,ee,e)=>{"use strict";e.d(ee,{c:()=>n});let n=function(r){return r.GUIDE_TOOLBAR_TRASH="GUIDE_TOOLBAR_TRASH_6",r.GUIDE_TOOLBAR_EXPORT_TO_ABOARD="guide_toolbar_export_to_aboard",r.GUIDE_RESOURCES_SHOW="GUIDE_RESOURCES_SHOW",r.GUIDE_SHORT_CUT_PANEL="GUIDE_SHORT_CUT_PANEL",r.GUIDE_PREVIEW_ADD_COMMENT="guide_preview_add_comment",r.GUIDE_POPUP_PANEL="guide_popup_panel",r.WIDGET_BUILTIN_PANEL="widget_builtin_panel",r.PAGE_PANEL="page_panel",r.GUIDE_SEARCH_RESOURCES_DETAILS="guide_search_resources_details",r.GUIDE_IMAGE_SLICING="guide_image_slicing",r.GUIDE_IMAGE_RESOURCE="guide_image_resource",r.GUIDE_GRADIENT_FILL="guide_gradient_fill",r.GUIDE_RULER_V1="guide_ruler_v1",r.GUIDE_TOOLBAR_COMMON="GUIDE_TOOLBAR_COMMON",r.GUIDE_NOVICE_V9_2408="GUIDE_NOVICE_V9_2408",r.GUIDE_NOVICE_V9_2408_STEP_1="GUIDE_NOVICE_V9_2408_STEP_1",r.GUIDE_NOVICE_V9_2408_STEP_2="GUIDE_NOVICE_V9_2408_STEP_2",r.GUIDE_NOVICE_V9_2408_STEP_3="GUIDE_NOVICE_V9_2408_STEP_3",r.GUIDE_COMMON_V9_OPERATIONS_GUIDE="GUIDE_COMMON_V9_OPERATIONS_GUIDE",r.GUIDE_NOVICE_2309="GUIDE_NOVICE_2309",r.GUIDE_NOVICE_2309_START="GUIDE_NOVICE_2309_START",r.GUIDE_NOVICE_2309_STEP_1="GUIDE_NOVICE_2309_STEP_1",r.GUIDE_NOVICE_2309_STEP_2="GUIDE_NOVICE_2309_STEP_2",r.GUIDE_NOVICE_2309_STEP_3="GUIDE_NOVICE_2309_STEP_3",r.GUIDE_NOVICE_2309_STEP_4="GUIDE_NOVICE_2309_STEP_4",r.GUIDE_NOVICE_2309_STEP_5="GUIDE_NOVICE_2309_STEP_5",r.GUIDE_NOVICE_2309_TIP_1="GUIDE_NOVICE_2309_TIP_1",r.GUIDE_NOVICE_2408_CREATE_PAGE="GUIDE_NOVICE_2408_CREATE_PAGE",r.GUIDE_NOVICE_2309_TASK_1="GUIDE_NOVICE_2309_TASK_1",r.GUIDE_NOVICE_2309_TASK_2="GUIDE_NOVICE_2309_TASK_2",r.GUIDE_NOVICE_2309_TASK_3="GUIDE_NOVICE_2309_TASK_3",r.GUIDE_NOVICE_2309_TASK_4="GUIDE_NOVICE_2309_TASK_4",r.GUIDE_NOVICE_2309_TASK_5="GUIDE_NOVICE_2309_TASK_5",r.GUIDE_NOVICE_2309_TASK_5_DEVICE_MODE="GUIDE_NOVICE_2309_TASK_5_DEVICE_MODE",r.GUIDE_DS_SCREEN_STEP_1="GUIDE_DS_SCREEN_STEP_1",r.GUIDE_AWARDED="GUIDE_AWARDED",r.GUIDE_NEW_CREATE_PAGE="GUIDE_NEW_CREATE_PAGE",r.GUIDE_NEW_SHOW_WIDGET_LIBRARY="GUIDE_NEW_SHOW_WIDGET_LIBRARY",r.GUIDE_NEW_FLOW_AND_MIND="GUIDE_NEW_FLOW_AND_MIND",r.GUIDE_NEW_CREATE_LINK="GUIDE_NEW_CREATE_LINK",r.GUIDE_NEW_USE_PREVIEW="GUIDE_NEW_USE_PREVIEW",r.GUIDE_NEW_USE_SHARE="GUIDE_NEW_USE_SHARE",r.GUIDE_NEW_USE_COMMENT="GUIDE_NEW_USE_COMMENT",r.GUIDE_2309_CLICK_SHARE="GUIDE_2309_CLICK_SHARE",r.GUIDE_2407_PREVIEW="GUIDE_2407_PREVIEW",r.GUIDE_2407_PREVIEW_CLOSE="GUIDE_2407_PREVIEW_CLOSE",r.GUIDE_OLD_NEW_CREATE_PAGE="GUIDE_OLD_NEW_CREATE_PAGE",r.GUIDE_OLD_ADD_LINE_FEATURE="GUIDE_OLD_ADD_LINE_FEATURE",r.GUIDE_OLD_UPGRADE_ANNOTATE="GUIDE_OLD_UPGRADE_ANNOTATE",r.GUIDE_OLD_USE_COMMENT="GUIDE_OLD_USE_COMMENT",r.GUIDE_BASKET_QUICK_COPY_CANVAS="GUIDE_BASKET_QUICK_COPY_CANVAS",r.GUIDE_PAGE_CREAT_LINK="GUIDE_PAGE_CREAT_LINK",r.GUIDE_PAGE_CREAT_LINK2="GUIDE_PAGE_CREAT_LINK2",r.GUIDE_TO_PREVIEW_IN_SHARE="GUIDE_TO_PREVIEW_IN_SHARE",r.GUIDE_MORE_PAGE="GUIDE_MORE_PAGE",r.GUIDE_PREVIEW_VIEW_BTN="GUIDE_PREVIEW_VIEW_BTN",r.GUIDE_ALL_REPLACE_PAGE="GUID_ALL_REPLACE_PAGE",r.GUIDE_BASKET_MUBAN_USE="GUIDE_BASKET_MUBAN_USE",r.GUIDE_FIND_MORE_SCENE_COMBO="GUIDE_FIND_MORE_SCENE_COMBO",r.GUIDE_PUBLISH_COMBO_TO_MKT="GUIDE_PUBLISH_COMBO_TO_MKT",r.GUIDE_COPY_AS_PNG="GUIDE_COPY_AS_PNG",r.GUIDE_VECTOR_TASK_QUICK_CREATE="GUIDE_VECTOR_TASK_QUICK_CREATE",r.GUIDE_VECTOR_TASK_ENDING_EDITING="GUIDE_VECTOR_TASK_ENDING_EDITING",r.GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR="GUIDE_VECTOR_TASK_EDITING_EXIST_VECTOR",r.GUIDE_POSITION_STICKY_FEATURES="GUIDE_POSITION_STICKY_FEATURES",r.GUIDE_SELECT_STICKY="GUIDE_SELECT_STICKY",r.TASK_GUIDE_NEW_CREATE_PAGE="TASK_GUIDE_NEW_CREATE_PAGE",r.TASK_GUIDE_NEW_SHOW_WIDGET_LIBRARY="TASK_GUIDE_NEW_SHOW_WIDGET_LIBRARY",r.TASK_GUIDE_NEW_CREATE_LINK="TASK_GUIDE_NEW_CREATE_LINK",r.TASK_GUIDE_NEW_USE_PREVIEW="TASK_GUIDE_NEW_USE_PREVIEW",r.TASK_GUIDE_NEW_USE_SHARE="TASK_GUIDE_NEW_USE_SHARE",r.TASK_GUIDE_NEW_USE_COMMENT="TASK_GUIDE_NEW_USE_COMMENT",r.TASK_GUIDE_NEW_CREATE_ANNOTATE="TASK_GUIDE_NEW_CREATE_ANNOTATE",r.TASK_GUIDE_NEW_CREATE_FLOW="TASK_GUIDE_NEW_CREATE_FLOW",r.TASK_GUIDE_NEW_CREATE_MIND="TASK_GUIDE_NEW_CREATE_MIND",r.GUIDE_SEMANTIC_PANEL="GUIDE_SEMANTIC_PANEL",r.ENTER_DESIGN_PROTO_IN_SPACE_CREATED_DAY="ENTER_DESIGN_PROTO_IN_SPACE_CREATED_DAY",r.UPGRADE_V8_COMMUNITY_GROUP="UPGRADE_V8_COMMUNITY_GROUP",r.GUIDE_NEWBIE_VIDEO="GUIDE_NEWBIE_VIDEO",r.DS_SCREEN_SCENE_BANNER="DS_SCREEN_SCENE_BANNER",r.DS_CUSTOMIZE_SCENE_BANNER="DS_CUSTOMIZE_SCENE_BANNER",r.HMI_INDUS_SCENE_BANNER="HMI_INDUS_SCENE_BANNER",r.HMI_CUSTOMIZE_SCENE_BANNER="HMI_CUSTOMIZE_SCENE_BANNER",r.INTER_SWITCHABLE_VIEW_MODE_RELOCATED_INSPECT_TOGGLE="INTER_SWITCHABLE_VIEW_MODE_RELOCATED_INSPECT_TOGGLE",r.INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN="INTER_SWITCHABLE_VIEW_MODE_OV_TOGGLE_PANE_BTN",r.INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN="INTER_SWITCHABLE_VIEW_MODE_PV_TOGGLE_PANE_BTN",r.GUIDE_NEW_OVERLAY_ONCE="GUIDE_NEW_OVERLAY_ONCE",r.UNGROUP_WITH_WM="UNGROUP_WITH_WM",r.GUIDE_2503_AI_CHAT_DS="GUIDE_2503_AI_CHAT_DS",r.GUIDE_2506_LIB_INTERGRATED="GUIDE_2506_LIB_INTERGRATED",r.GUIDE_2506_LIB_INTERGRATED_RIGHT_LAYOUT="GUIDE_2506_LIB_INTERGRATED_RIGHT_LAYOUT",r.GUIDE_2506_AIHTML="GUIDE_2506_AIHTML",r}({})},93446:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>d});var n=e(25582),r=e.n(n),c=e(38502);function o(y,h,i){return(h=w(h))in y?Object.defineProperty(y,h,{value:i,enumerable:!0,configurable:!0,writable:!0}):y[h]=i,y}function w(y){var h=u(y,"string");return typeof h=="symbol"?h:h+""}function u(y,h){if(typeof y!="object"||!y)return y;var i=y[Symbol.toPrimitive];if(i!==void 0){var f=i.call(y,h||"default");if(typeof f!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(y)}class d extends c.PureComponent{constructor(){super(...arguments),o(this,"setBodyRef",h=>this.$body=h),o(this,"handleMouseDown",h=>{const{onMouseDown:i}=c.Children.only(this.props.children).props;this.handleDown(h),i&&i(h)}),o(this,"handleDown",h=>{const{dragContainer:i="",onMoveStart:f,onMoveEnd:p}=this.props;if(h.target.getAttribute("type")!=="draggable")return;this.getLimitValue();const{pageX:s,pageY:l}=h.nativeEvent,{top:C,left:v}=(document.getElementById(i)||h.target).getBoundingClientRect(),a=s-v,P=l-C;f&&f();const b=S=>{const{left:t,top:_}=this.validatePosition(S.pageX-a,S.pageY-P);this.props.onMove(t,_)},g=()=>{p&&p(),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",b),document.addEventListener("mouseup",g)})}componentDidMount(){if(!this.$body.offsetParent)return;this.getLimitValue();const{left:h,top:i}=this.props.position,{left:f,top:p}=this.validatePosition(h,i);this.props.onMove(f,p,!0)}getLimitValue(){const{container:h}=this.props,{width:i,height:f}=this.$body.getBoundingClientRect();if(h==="window")this.minLeft=0,this.minTop=56,this.maxLeft=window.innerWidth-i,this.maxTop=window.innerHeight-25-f;else if(typeof h=="string"){const p=document.querySelector(h).getBoundingClientRect(),{left:s,top:l,right:C,bottom:v}=p;this.minLeft=s,this.minTop=l,this.maxLeft=C-i,this.maxTop=v-f-10}else this.minLeft=-1/0,this.minTop=-1/0,this.maxLeft=1/0,this.maxTop=1/0}validatePosition(h,i){return h>this.maxLeft&&(h=this.maxLeft),h<this.minLeft&&(h=this.minLeft),i>this.maxTop&&(i=this.maxTop),i<this.minTop&&(i=this.minTop),i=i>>0,h=h>>0,{left:h,top:i}}render(){const{position:h,children:i}=this.props,f=c.Children.only(i);return c.cloneElement(f,{ref:this.setBodyRef,onMouseDown:this.handleMouseDown,style:{...h,...f.props.style}})}}o(d,"propTypes",{children:r().element,container:r().string,dragContainer:r().string,position:r().object,onMove:r().func.isRequired,onMoveStart:r().func,onMoveEnd:r().func}),o(d,"defaultProps",{container:"#screens"})},93716:(Fe,ee,e)=>{"use strict";e.d(ee,{O9:()=>a,Y_:()=>s,Yj:()=>w,at:()=>K,it:()=>v,nd:()=>h});var n=e(97529),r=e(75838);const c=(U,O,H)=>{throw new Error("[verify|"+U+"]"+(O?" "+O+";":"")+" "+(H||""))},o=(U,O)=>(H,Q)=>{O(H)||c(U,Q,"get: "+(0,r.q0)(H))},w=o("String",n.Kg),u=o("Boolean",n.Lm),d=o("Truthy",n.zz),y=o("Number",n.Et),h=o("Integer",n.Fq),i=o("RegExp",n.gd),f=o("ArrayBuffer",n.mw),p=o("ObjectAlike",n.sw),s=o("BasicObject",n.wG),l=(U,O,H)=>{isObjectKey(U,O)||c("ObjectKey",H,"expect to have key: "+O)},C=(U,O,H)=>{isObjectContain(U,O)||c("ObjectContain",H,"expect to contain: "+describe(O))},v=o("Array",n.oI),a=(U,O,H)=>{(0,n.ut)(U,O)||c("ArrayLength",H,"expect length: "+O+", get: "+((0,n.oI)(U)?U.length:(0,r.q0)(U)))},P=o("Function",n.TP),b=o("PromiseAlike",n.qT),g=(U,O,H)=>{isOneOf(U,O)||c("OneOf",H,"expect one of: ["+O+"], get: "+describe(U))},S=(U,O)=>{isFunctionThrow(U)||c("DoThrow",O)},t=(U,O)=>{isFunctionThrow(U)&&c("DoNotThrow",O)},_=async(U,O)=>{await isFunctionThrowAsync(U)||c("DoThrowAsync",O)},I=async(U,O)=>{await isFunctionThrowAsync(U)&&c("DoNotThrowAsync",O)},k=(U,O)=>"\nactual: "+(0,r.q0)(U)+"\nexpect: "+(0,r.q0)(O),j=(U,O,H)=>{isStrictEqual(U,O)||c("StrictEqual",H,k(U,O))},z=(U,O,H)=>{isStrictEqual(U,O)&&c("NotStrictEqual",H,k(U,O))},K=function(U,O,H){H===void 0&&(H="should stringify equal"),(0,n.gI)(U,O)||c("StringifyEqual",H,k(U,O))},$=function(U,O,H){H===void 0&&(H="should not stringify equal"),isStringifyEqual(U,O)&&c("NotStringifyEqual",H,k(U,O))},A=(U,O,H)=>{U&&U.includes&&U.includes(O)||c("Includes",H,"expect "+describe(U)+" to include "+O)},E=(U,O,H)=>{U&&U.includes&&!U.includes(O)||c("NotIncludes",H,"expect "+describe(U)+" to not include "+O)}},93872:(Fe,ee,e)=>{"use strict";e.d(ee,{Ag:()=>u,Av:()=>r,RL:()=>o,V5:()=>d,tb:()=>w,vw:()=>c,wz:()=>h});var n=e(67787);const r=n.Ay.div.withConfig({displayName:"styles__StyledInteractionTargetCollapsibleSelectOption",componentId:"sc-7qoyp3-0"})(["display:flex;align-items:center;cursor:pointer;font-size:12px;font-weight:400;min-width:fit-content;color:#fff;padding-left:","px;padding-top:2px;padding-bottom:2px;position:relative;svg.svg-icon,svg.svg-icon-path-icon{width:20px;height:20px;margin-right:6px;fill:currentColor;&.checked{position:absolute;left:0;}&.expander{color:#999;width:16px;margin-left:-16px;margin-right:0;&:not(.is-collapsed){transform:rotate(90deg);}}}.screen-icon{height:20px;svg.svg-icon{margin-right:0px;}}svg.svg-icon-path-icon{transform:scale(0.7);}& > .Ellipsis{flex:1;}&.is-disabled{cursor:not-allowed;opacity:0.5;}&.is-active{color:#fff;background:rgba(22,132,252,0.25);mix-blend-mode:normal;position:relative;}&:not(.is-disabled):hover{background:rgb(102,102,102);}&.isV9Layout{color:",";border-radius:4px;svg.group-icon path{fill:transparent;}&.is-active{color:",";background:",";}&:not(.is-disabled):hover{background:",";}}&:not(.isV9Layout){svg.svg-icon-path-icon{color:#F2F4F5;}}"],i=>22+i.depth*22,i=>i.theme.color_text_L0,i=>i.theme.color_text_L0,i=>i.theme.color_btn_secondary_hover,i=>i.theme.color_btn_secondary_hover),c=n.Ay.div.withConfig({displayName:"styles__StyledSelectWithSearchBar",componentId:"sc-7qoyp3-1"})(["display:flex;flex-direction:column;width:100%;height:100%;position:relative;.option-container{padding:8px 8px 6px 8px;height:calc(100% - 32px);overflow:auto;}.lazy-list{padding:8px 8px 6px;height:calc(100% - 32px);.bar-vertical{top:32px;height:calc(100% - 32px);}}"]),o=n.Ay.div.withConfig({displayName:"styles__StyledTargetCanvasSelect",componentId:"sc-7qoyp3-2"})(['display:flex;flex-direction:column;width:100%;height:100%;&.isV9Layout{[type="search"]{input{border-radius:4px;border-color:',";color:",";background:",";}}}"],i=>i.theme.color_bg_border_01,i=>i.theme.color_text_L0,i=>i.theme.color_bg_white),w=n.Ay.div.withConfig({displayName:"styles__StyledTargetWattrSelect",componentId:"sc-7qoyp3-3"})(["display:flex;flex-direction:column;width:100%;height:100%;color:",";.dropmenu-no-exit0{padding:0;height:28px;span{margin-left:6px;}}.dropmenu-no-exit{height:28px;}.divider{margin:8px;}"],i=>i.theme.color_text_L1),u=n.Ay.div.withConfig({displayName:"styles__StyledBackToPageSelectOption",componentId:"sc-7qoyp3-4"})(["display:flex;align-items:center;cursor:pointer;&.isV9Layout{.back{svg.svg-icon{path{fill:",";}}}path{fill:",";}& > .Ellipsis{color:",";}}"],i=>i.theme.color_text_L1,i=>i.theme.color_text_L1,i=>i.theme.color_text_L0),d=n.Ay.div.withConfig({displayName:"styles__StyledTargetSelect",componentId:"sc-7qoyp3-5"})(["width:100%;flex:1;overflow-x:auto;overflow-y:auto;list-style:none;color:#fff;pointer-events:all;.scroll-able-container{min-width:100%;width:max-content;display:flex;flex-direction:column;}::-webkit-scrollbar-thumb{background-color:",";border-radius:4px;&:hover{background-color:",";}}"],i=>i.theme.color_bg_border_02,i=>i.theme.color_background_split_hover),y=n.Ay.span.withConfig({displayName:"styles__StyledDividerOption",componentId:"sc-7qoyp3-6"})(["display:inline-block;width:calc(100% - 20px);flex:0 0 1px;background:",";margin:5px 0 5px 10px;"],i=>i.theme.color_bg_border_01),h=n.Ay.div.withConfig({displayName:"styles__StyledEmptyOptionOverlayPrompt",componentId:"sc-7qoyp3-7"})(["position:relative;display:flex;width:100%;height:190px;align-items:center;justify-content:center;flex-direction:column;.alert{width:40px;height:40px;path:nth-child(1){fill:",";fill-opacity:1;}path:nth-child(2),path:nth-child(3){fill:",";fill-opacity:1;}}span{padding:16px 22px 0;text-wrap:wrap;text-align:center;color:",";}a{color:",";:hover,:active{color:",";}}"],i=>i.theme.color_btn_secondary_active,i=>i.theme.color_text_L3,i=>i.theme.color_text_L1,i=>i.theme.color_text_link_normal,i=>i.theme.color_text_link_hover)},93971:(Fe,ee,e)=>{"use strict";e.d(ee,{BZ:()=>j,Hq:()=>p,Ii:()=>t,Jj:()=>g,KR:()=>v,Mi:()=>k,RX:()=>a,SJ:()=>A,XG:()=>$,Yp:()=>P,gJ:()=>E,k8:()=>C,lF:()=>z,ol:()=>l,un:()=>I});var n=e(61541),r=e(5209),c=e(3862),o=e(20089),w=e(40610),u=e(5288),d=e(78257),y=e(11135),h=e(8293),i=e(37860),f=e(81717);let p=function(O){return O.ToolBar="toolbar",O.shortCut="shortcut",O}({});const s={[u.et]:"\u5E38\u7528",[u.l3]:"\u8868\u5355",[u.eC]:"\u5BFC\u822A",[u.Bz]:"\u56FE\u8868",[u.w5]:"\u591A\u5A92\u4F53",group:"\u7EC4\u5408",builtin:"\u5185\u7F6E"};let l=function(O){return O.Copy="\u590D\u5236\u521B\u5EFA",O.ToolBar="\u9876\u90E8\u680F",O.ShortCut="\u5FEB\u6377\u952E",O.BuiltPanel="\u7EC4\u4EF6\u9762\u677F",O.SearchPanel="\u641C\u7D22\u9762\u677F",O}({}),C=function(O){return O.Drag="\u62D6\u62FD",O.DoubleClick="\u53CC\u51FB",O.Click="\u5355\u51FB",O.Import="\u7F6E\u5165",O}({});const v=O=>{var H;return(H=I18N.w[O])==null?void 0:H.replace("Chart","")};function a(){var O,H;return typeof((O=MB)==null?void 0:O.getRootProject)!="function"?"":(0,h.Ow)((H=MB.getRootProject())==null?void 0:H.scene_tag)||""}const P=O=>{let{source:H,widgetName:Q,groupCid:N=u.et,type:L,popupsPanelName:V,templateWidgetType:M,widgetTypeNew:D,isTotalWidget:W,keyword:F=""}=O;if(V!=null&&V.includes(d.lS.Flow))(0,y.W)({widget_source:H,widget_type:L});else if(s[N]){const B=s[N],Y=a();(0,r.kH)("add_widget_V8",{source:H,widget_name:Q,widget_type:M||B,widget_type_new:D,is_total_widget:W,scene_tag:Y,keyword:F}),f.Y4.editProjectNew("\u65B0\u5EFA\u7EC4\u4EF6")}},b={[c.C]:"\u4E0D\u533A\u5206",[c.WY]:"\u4E0D\u533A\u5206",[c.b4]:"\u4E0D\u533A\u5206",[c.R5]:"\u4E0D\u533A\u5206",[c.t_]:"\u672A\u8BC6\u522B",[c.Gd]:"\u672A\u8BC6\u522B",[c.RD]:"\u672A\u8BC6\u522B",mobile:"\u79FB\u52A8\u7AEF",web:"\u7F51\u9875\u7AEF",other:"\u5176\u4ED6",...i.GT},g={[c.C]:"\u56FE\u6807",[c.t_]:"\u7EC4\u4EF6",[c.Gd]:"\u9875\u9762",[c.b4]:"\u56FE\u7247",[c.RD]:"\u6587\u4EF6\u9875\u9762",[c.WY]:"\u5F69\u8272\u56FE\u6807",[c.R5]:"\u8D34\u7EB8"},S={user_made:"\u7528\u6237\u4E0A\u4F20",official_sort:"\u5B98\u65B9\u6574\u7406",official_made:"\u5B98\u65B9\u81EA\u5236"};let t=function(O){return O.User="\u6211\u7684",O.Star="\u6536\u85CF",O.Org="\u4F01\u4E1A",O.Find="\u53D1\u73B0",O.Square="\u7D20\u6750\u5E7F\u573A",O.PageFind="\u53D1\u73B0\uFF08\u65B0\uFF09",O.PageLibraryCommunity="\u9875\u9762\u5E93-\u7D20\u6750\u5E7F\u573A",O.PageLibraryStar="\u9875\u9762\u5E93-\u6536\u85CF",O.OtherSearchResults="\u5176\u4ED6\u641C\u7D22\u7ED3\u679C",O}({});const _={[d.lS.Builtin]:"\u7EC4\u4EF6\u9762\u677F",[d.lS.Icon]:"\u56FE\u6807\u9762\u677F",[d.lS.ColorIcon]:"\u56FE\u6807\u9762\u677F",[d.lS.Asset]:"\u56FE\u7247\u9762\u677F",[d.lS.Page]:"\u9875\u9762\u9762\u677F",[d.lS.Search]:"\u641C\u7D22\u9762\u677F",[d.lS.History]:"\u5386\u53F2\u9762\u677F",[d.lS.Template]:"\u6BCD\u7248\u9762\u677F",[d.lS.Library]:"\u7D20\u6750\u5E93\u9762\u677F",[d.lS.Dashboard]:"\u9879\u76EE\u7BA1\u7406\u9875",[d.lS.Detail]:"\u8BE6\u60C5",[d.lS.SearchDetail]:"\u641C\u7D22\u8BE6\u60C5"},I="\u5168\u90E8",k=O=>{let{popupsName:H,addType:Q,source:N,category:L,policy:V="",templateGroupName:M="",copyright:D="",name:W="",classify:F="",platform:B="",rootProject:Y,widgetType:X="",isTotalWidget:G=null,keyword:Z="",esSearchKey:J="",templateGroupCid:te=""}=O;const{isMdVipTemplate:he,isMktVipTemplate:de}=(0,n.wY)(V),{isMdMember:Se,isMktMember:xe}=(0,n.sT)(MB.user),be=_[H];if(be){const ie=be+"-"+N;if(g[L]){const{cid:oe}=Y,ue=a();(0,r.kH)("add_template_V8",{source:ie,add_type:Q,template_type:g[L],vip_template:Number(he),is_scvip_template:de,template_group_name:M,template_group_cid:te,template_source_type:S[D]||"",project_id:oe,template_name:W,classify:F,platform:b[B]||b[L],widget_type:X,is_total_widget:G,scene_tag:ue,keyword:Z,es_search_key:J,is_scvip_user:xe,is_VIP_user:Se}),f.Y4.editProjectNew("\u65B0\u5EFA\u7D20\u6750")}}},j=O=>{let{tab:H=t.User,popupsName:Q,addType:N,category:L,name:V,rootProject:M,currentOrg:D=null,currentUser:W,platform:F="",esSearchKey:B="",resId:Y=-1}=O;const{cid:X}=M,G=_[Q];if(G){let Z=G+"-"+H;const J=H===t.Org?D==null?void 0:D.cid:W==null?void 0:W.cid,te=g[L];if(te){Q===d.lS.Search?Z=G+"-"+te+"-"+H:Q===d.lS.History&&(Z=G+"-"+te);const he=a();(0,r.kH)("add_template_V8",{source:Z,add_type:N,template_type:te,project_id:X,template_name:V,template_group_name:J,platform:b[F]||b[L],scene_tag:he,es_search_key:B,stickerResId:Y}),f.Y4.editProjectNew("\u65B0\u5EFA\u7D20\u6750")}}},z=(O,H)=>{var Q;const{type:N,chartConfig:L}=O;let V="",D=(Q=(0,w.eS)(!1).find(W=>{let{items:F}=W;return F.find(B=>B.type===N)}))==null?void 0:Q.cid;if(N===o.x.WChart){const{chartType:W}=L;D=u.Bz,V=I18N.w[W]}else[...w.PL,...w.d6,...w.ZC].includes(N)&&(V=I18N.w[N]);V&&D&&P({source:l.Copy,widgetName:V,groupCid:D,rootProject:H})},K=O=>{const{contentFlatTree:H}=sdkStore.parseSubtree(sdkStore.saveSubtree(O));return H.get("B@ref-danli").sub.length>0||H.get("B@ref-muban").sub.length>0},$=function(O,H,Q){Q===void 0&&(Q=[]);const N=!!(H||Q.length>0&&K(Q));(0,r.kH)("add_component_v8",{add_v8_source:O,nest_v8_type:N?1:0})},A=function(O,H,Q){Q===void 0&&(Q=[]);const N=!!(H||Q.length>0&&K(Q));(0,r.kH)("add_master_v8",{add_v8_source:O,nest_v8_type:N?1:0}),f.Y4.editProjectNew("\u65B0\u5EFA\u6BCD\u7248")},E=O=>{(0,r.kH)("mind_V8",{create_type:O})},U=O=>{saTrack("scene_switch",{scene_type:O})}},94344:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>y});var n=e(38502),r=e(65415),c=e(20862),o=e(67787);const w=o.Ay.div.withConfig({displayName:"styles__StyledNoBuiltinWidgets",componentId:"sc-exacig-0"})(["display:flex;flex-direction:column;align-items:center;margin-top:120px;width:100%;img{width:88px;height:88px;margin-bottom:24px;}.tips{margin:27px 0;color:#7d8694;text-align:center;}.tips-link{margin:auto 8px;text-align:center;a{color:",";text-decoration:underline;}}.no-link{display:inline-flex;color:#1684fc;text-decoration:underline;cursor:pointer;}"],h=>h.theme.color_text_link_normal),u=o.Ay.div.withConfig({displayName:"styles__StyledNoSearchItemInHistory",componentId:"sc-exacig-1"})(["display:flex;flex-direction:column;align-items:center;margin-top:120px;img{margin-top:160px;width:88px;}"]);var d=e(72214);function y(h){const{keyword:i,theme:f,hasNoTips2:p,onHandleClickSquarePanel:s,isShowAiButton:l=!1}=h,C=f==="dark"?"/mb-workspace/images/workspace/design/no_starred_panel_dark.png":"/mb-workspace/images/workspace/design/no_starred_panel.png";return(0,d.jsx)(d.Fragment,{children:i?(0,d.jsxs)(u,{children:[(0,d.jsx)(r.b,{isNeedLink:!1}),l&&(0,d.jsx)(c.l,{})]}):(0,d.jsxs)(w,{children:[(0,d.jsx)("img",{src:C,alt:""}),(0,d.jsx)("p",{className:"no-tips1",children:I18N.Resources.Nothing}),!p&&(0,d.jsxs)("p",{className:"no-tips2",children:[I18N.Resources.go," ",(0,d.jsx)("span",{className:"no-link",onClick:s,children:I18N.Resources.square})," ",I18N.Resources.look]})]})})}},94585:Fe=>{(function(){function ee(s,l){document.addEventListener?s.addEventListener("scroll",l,!1):s.attachEvent("scroll",l)}function e(s){document.body?s():document.addEventListener?document.addEventListener("DOMContentLoaded",function l(){document.removeEventListener("DOMContentLoaded",l),s()}):document.attachEvent("onreadystatechange",function l(){(document.readyState=="interactive"||document.readyState=="complete")&&(document.detachEvent("onreadystatechange",l),s())})}function n(s){this.g=document.createElement("div"),this.g.setAttribute("aria-hidden","true"),this.g.appendChild(document.createTextNode(s)),this.h=document.createElement("span"),this.i=document.createElement("span"),this.m=document.createElement("span"),this.j=document.createElement("span"),this.l=-1,this.h.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.i.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.j.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.m.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.h.appendChild(this.m),this.i.appendChild(this.j),this.g.appendChild(this.h),this.g.appendChild(this.i)}function r(s,l){s.g.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+l+";"}function c(s){var l=s.g.offsetWidth,C=l+100;return s.j.style.width=C+"px",s.i.scrollLeft=C,s.h.scrollLeft=s.h.scrollWidth+100,s.l!==l?(s.l=l,!0):!1}function o(s,l){function C(){var a=v;c(a)&&a.g.parentNode!==null&&l(a.l)}var v=s;ee(s.h,C),ee(s.i,C),c(s)}function w(s,l,C){l=l||{},C=C||window,this.family=s,this.style=l.style||"normal",this.weight=l.weight||"normal",this.stretch=l.stretch||"normal",this.context=C}var u=null,d=null,y=null,h=null;function i(s){return d===null&&(f(s)&&/Apple/.test(window.navigator.vendor)?(s=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent),d=!!s&&603>parseInt(s[1],10)):d=!1),d}function f(s){return h===null&&(h=!!s.document.fonts),h}function p(s,l){var C=s.style,v=s.weight;if(y===null){var a=document.createElement("div");try{a.style.font="condensed 100px sans-serif"}catch(P){}y=a.style.font!==""}return[C,v,y?s.stretch:"","100px",l].join(" ")}w.prototype.load=function(s,l){var C=this,v=s||"BESbswy",a=0,P=l||3e3,b=new Date().getTime();return new Promise(function(g,S){if(f(C.context)&&!i(C.context)){var t=new Promise(function(I,k){function j(){new Date().getTime()-b>=P?k(Error(""+P+"ms timeout exceeded")):C.context.document.fonts.load(p(C,'"'+C.family+'"'),v).then(function(z){1<=z.length?I():setTimeout(j,25)},k)}j()}),_=new Promise(function(I,k){a=setTimeout(function(){k(Error(""+P+"ms timeout exceeded"))},P)});Promise.race([_,t]).then(function(){clearTimeout(a),g(C)},S)}else e(function(){function I(){var N;(N=$!=-1&&A!=-1||$!=-1&&E!=-1||A!=-1&&E!=-1)&&((N=$!=A&&$!=E&&A!=E)||(u===null&&(N=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),u=!!N&&(536>parseInt(N[1],10)||parseInt(N[1],10)===536&&11>=parseInt(N[2],10))),N=u&&($==U&&A==U&&E==U||$==O&&A==O&&E==O||$==H&&A==H&&E==H)),N=!N),N&&(Q.parentNode!==null&&Q.parentNode.removeChild(Q),clearTimeout(a),g(C))}function k(){if(new Date().getTime()-b>=P)Q.parentNode!==null&&Q.parentNode.removeChild(Q),S(Error(""+P+"ms timeout exceeded"));else{var N=C.context.document.hidden;(N===!0||N===void 0)&&($=j.g.offsetWidth,A=z.g.offsetWidth,E=K.g.offsetWidth,I()),a=setTimeout(k,50)}}var j=new n(v),z=new n(v),K=new n(v),$=-1,A=-1,E=-1,U=-1,O=-1,H=-1,Q=document.createElement("div");Q.dir="ltr",r(j,p(C,"sans-serif")),r(z,p(C,"serif")),r(K,p(C,"monospace")),Q.appendChild(j.g),Q.appendChild(z.g),Q.appendChild(K.g),C.context.document.body.appendChild(Q),U=j.g.offsetWidth,O=z.g.offsetWidth,H=K.g.offsetWidth,k(),o(j,function(N){$=N,I()}),r(j,p(C,'"'+C.family+'",sans-serif')),o(z,function(N){A=N,I()}),r(z,p(C,'"'+C.family+'",serif')),o(K,function(N){E=N,I()}),r(K,p(C,'"'+C.family+'",monospace'))})})},Fe.exports=w})()},94754:(Fe,ee,e)=>{"use strict";e.d(ee,{_E:()=>d,i3:()=>u,lO:()=>p,pD:()=>y});var n=e(80313),r=e(32424),c=e(20089),o=e(95956),w=e(79209);const u=async(s,l,C)=>{let{files:v,callback:a,isFilterSvg:P=!0,rootProject:b,isCreate:g=!1}=s;if(g&&!(0,w._c)({type:c.x.WImage}))return;const S=Array.from(v),t=P?S.filter(I=>/\.svg$/.test(I.name)):[],_=P?S.filter(I=>!/\.svg$/.test(I.name)):S;if(S.length){if(MB.safeLoading&&MB.safeLoading(I18N.dUtils.image_progress_in),await y({svgFiles:t,allCount:S.length,callback:a,rootProject:b},l,C),!_.length){MB.safeLoading&&MB.safeLoading(!1);return}await d({imageFiles:_,allCount:S.length,svgFilesCount:t.length,rootProject:b,callback:a},!1,l,C)}},d=function(s,l,C,v){let{imageFiles:a,allCount:P,svgFilesCount:b,rootProject:g,callback:S}=s;l===void 0&&(l=!1);const t="project_image",_="",I="",k=MB.user.id,j=(g==null?void 0:g.cid)||"";h(a,{assetType:t,orgCid:I,groupCid:_,userId:k,projectCid:j,svgFilesCount:b},S,C,v,"fileList").then(z=>{const K=z.length;MB.safeLoading&&MB.safeLoading(!1),(()=>{K===a.length?l?MB.notice({text:I18N.dUtils.svg_style_upload_success}):MB.notice({text:I18N.dUtils.image_upload_success}):K>0&&K<P&&(l?MB.notice({text:I18N.dUtils.some_svg_style_upload_success}):MB.notice({text:I18N.dUtils.someimage_upload_success}))})()}).catch(z=>console.warn("[Asset]",z))},y=(s,l,C)=>{let{svgFiles:v,allCount:a,rootProject:P,callback:b}=s;if(!v.length)return;let g=0;const S=function(t,_,I){_===void 0&&(_=0),I===void 0&&(I=0),g=g+1,t&&b&&b(t,g===v.length,_,I)};for(let t=0,_=v.length;t<_;t++)try{const I=v[t],k=new DOMParser,j=new FileReader;j.readAsText(I),j.onload=async z=>{const K=z.target.result,$=k.parseFromString(K,"text/html");let A=$.querySelector("svg");const E=!!A.querySelector("style"),U=parseInt(A.getAttribute("width")||24),O=parseInt(A.getAttribute("height")||24),H=A.getAttribute("viewBox"),Q=I.name.replace(".svg",""),N=A.childNodes;let L="unset";try{(0,o.rD)(A,(0,r.xc)())}catch(M){A=$.querySelector("svg"),console.error("errror:",M)}if(/<image/.test(K)||/<script/.test(K)||E){await d({imageFiles:[I],svgFilesCount:0,allCount:a,callback:M=>{S(M,t,_)},rootProject:P},E,l,C);return}N.length===1&&(L=N[0].getAttribute("fill")||N[0].getAttribute("stroke"));const V={name:Q,type:c.x.WIcon,iconData:{viewBox:H||"0 0 "+U+" "+O,path:""+A.innerHTML,iconName:Q,iconSize:Math.min(U,O),iconColor:L||"",svgAttr:{fill:A.getAttribute("fill"),stroke:A.getAttribute("stroke")}},width:U,height:O,w:U,h:O};S(V,t,_)}}catch(I){console.error(I),S(null)}},h=async(s,l,C,v,a,P)=>{let{assetType:b,orgCid:g,groupCid:S,userId:t,projectCid:_,svgFilesCount:I}=l;const k=[],j=I+s.length;for(let z=0,K=s.length;z<K;z++)try{const $=s[z],A=z===s.length-1;(0,o.XI)($,"workspace",v,a,P);const E=await p($,{assetType:b,orgCid:g,groupCid:S,userId:t,projectCid:_},U=>{let{loaded:O,total:H}=U;const Q=I+z;MB.safeLoading&&MB.safeLoading([I18N.dUtils.image_progress_in,O!==H&&"("+i(O)+"/"+i(H)+"KB)",j!==1&&"["+(Q+1)+"/"+j+"]"].filter(Boolean).join(" "))});E.group_cid=S,E.name=$.name,C&&C(E,A,z,K),k.push(E)}catch($){($==null?void 0:$.message)!=="NoErrorTips"&&(0,o.lK)($)}return k},i=s=>(s/1024).toFixed(2),f="/nodekiq/process-asset-image",p=async(s,l,C)=>{let{assetType:v,orgCid:a,groupCid:P,userId:b,projectCid:g}=l;const S=(0,r.xc)(),t=await(0,o.M2)(s);if(!t)return;const{width:_,height:I}=t,k=await(0,n.m)(f,{credentials:"same-origin",method:"POST",headers:{"mb-asset-name":encodeURIComponent(s.name),"mb-asset-cid":S,"mb-asset-type":v,"mb-asset-group-cid":P,"mb-project-cid":g,"mb-asset-width":_,"mb-asset-height":I,"mb-user-id":b,"mb-org-cid":a},body:s,timeout:10*60*1e3,onUploadProgress:C});if(!k.ok)throw Object.assign(new Error(I18N.dUtils.damaged_file),{desc:I18N.dUtils.support_file_type,asset:s});return await k.json()}},94875:(Fe,ee,e)=>{"use strict";e.d(ee,{G:()=>o,f:()=>w});var n=e(67787),r=e(51090),c=e(19269);const o=n.Ay.li.withConfig({displayName:"styles__StyledLibraryThumbnailListItem",componentId:"sc-1cdrlom-0"})(["position:relative;width:109px;height:132px;margin-right:8px;margin-bottom:4px;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;cursor:pointer;color:",";","{width:109px;height:109px;border-radius:6px;&::after{border-radius:6px;}}&.is-hover .asset-name .editable-name{width:calc(100% - 14px);}.asset-name{display:flex;height:26px;line-height:26px;text-align:center;cursor:text;justify-content:center;.editable-name{width:100%;height:23px;line-height:22px;",";&.is-editing{border-bottom:1px solid #196ad4;}textarea{text-align:center;}}& > span{&.editable-name:hover{border-bottom:1px solid #ff6161;}}.asset-action{display:none;position:absolute;width:14px;height:14px;bottom:8px;right:0;}&:hover{","{background:#fff;&::after{border:2px solid #79baff;}}.asset-action{display:flex;}}}&.active{opacity:0.5;}"],u=>u.theme.color_text_L3,c.e,r.L9,c.e),w=n.Ay.span.withConfig({displayName:"styles__StyledUneditableSpan",componentId:"sc-1cdrlom-1"})(["display:flex;justify-content:center;width:100%;height:24px;line-height:22px;overflow:hidden;border-top:1px solid transparent;border-bottom:1px solid transparent;"])},95545:(Fe,ee,e)=>{"use strict";e.d(ee,{W:()=>y});var n=e(38502),r=e(70812),c=e(23089),o=e(68033),w=e(89671),u=e(72214);const d={1:"\u9690\u85CF",2:"\u663E\u793A",3:"\u81EA\u52A8\u9690\u85CF"},y=(0,n.memo)(h=>{let{showScrollBar:i=o.zJ.auto,handleChange:f}=h;const p=s=>{var l;f(parseInt(s),"showScrollBar"),r.U4.protoScrollbarSetTrack((l=MB)==null||(l=l.user)==null?void 0:l.id,d[s])};return(0,u.jsxs)(w.d,{className:"height-32",children:[(0,u.jsx)("label",{className:"left-label",children:"\u6EDA\u52A8\u6761"}),(0,u.jsx)("div",{className:"right-content",children:(0,u.jsx)(c.mq,{className:"panelstate-select",menuClassName:"panelstate-selectmenu",optionList:o.Ej.map(s=>({...s,label:I18N.SettingPanel.scrollBarState[s.label]})),value:i,onChange:p})})]})})},97267:(Fe,ee,e)=>{"use strict";e.d(ee,{C:()=>c,b:()=>r});const n={show:!1};function r(o,w){o===void 0&&(o=n);const{type:u,payload:d}=w;switch(u){case"htmlImportPanel:set:show":return{...o,show:d.show};default:return o}}const c=o=>o.ui.fixedLayout.htmlImportReducer.show},97433:(Fe,ee,e)=>{"use strict";e.d(ee,{Y:()=>r});var n=e(67787);const r=n.Ay.div.withConfig({displayName:"styles__StylesBorderOpener",componentId:"sc-z044ne-0"})(["display:flex;flex-direction:column;transition:height 200ms ease-in-out 0s;&.is-open{height:auto;}.appearance-line{display:flex;align-items:center;margin-left:-6px;}.border-open{min-height:16px;}.legendPos{margin:0;}.border-collapse-body{display:flex;align-items:center;color:#415058;transition:height 200ms ease-in-out 0s;overflow:hidden;margin-left:auto;&.is-open{overflow:visible;}> label{width:50px;height:22px;}.border-select-size-warp{margin-right:15px;}.border-select-size{width:59px;height:28px;&:hover{border:1px solid ",";}.border-style{width:12px;height:12px;}.radio-option{&.active{.border-style{border-color:",";}}}button{.border-line{color:",";}}}.WorkspaceInputNumber,.CoreInput{width:48px;height:28px;}.border-width-input{width:52px;height:28px;}.border-width-menu-opener{width:24px;height:24px;margin-left:6px;&.is-open{.widthSettings{background-color:",";color:",";.svg-icon{color:",";path{stroke:currentColor;}}}}}.font-size-container{.WorkspaceInputNumber{width:64px;}}}&.label-option{.border-collapse-body{&:not(.can-change-color){.font-size-container{margin-right:43px;}}}}&.is-only-stroke-width{.border-collapse-body.is-open{margin-left:22px;.left-label{height:14px;color:",";line-height:14px;white-space:nowrap;width:42px;}}}&.has-style-width-no-visibility{.border-collapse-body.is-open{margin-left:62px;}}"],c=>c.theme.color_bg_border_02,c=>c.theme.color_proto,c=>c.theme.color_text_L1,c=>c.theme.color_btn_primary_normal,c=>c.theme.color_text_btn,c=>c.theme.color_text_btn,c=>c.theme.color_text_L2)},97919:(Fe,ee,e)=>{"use strict";e.d(ee,{S:()=>l});var n=e(38502),r=e(37780),c=e(40486),o=e(99566),w=e(10472),u=e(18381),d=e(53732),y=e.n(d),h=e(83485),i=e(35770),f=e(52275),p=e(70812),s=e(72214);const l=(0,n.memo)(C=>{let{interactionDummyKey:v,interactionTree:a,selectItaInfo:P,uiFrom:b,interactionStore:g,selectNode2:S}=C;const t=(0,u.wA)(),{isEditingCombo:_}=(0,u.d4)(w.r),I=P.type==="action",k=I?(0,c.I9)(v):(0,c.KN)(v),j=K=>{t(r.R7.command.editingInteractionCreateCommand({interactionType:K,tNodeTrigger:k,uiFrom:b,interactionStore:g,selectNode2:S})),p.U4.updateInteractionTrack({type:"\u65B0\u589E",interactionTrigger:k,interactionType:K})},z=K=>{const{interactionTrigger:$}=K,A=(0,o.AE)(K),E=I?(0,c.m1)(A):(0,c.iY)(A);g.command.updateTriggerInfo(A,K);const U=()=>{t(r.R7.command.interactionSelectCommand({selectInteractionKeyList:[E]})),setTimeout(()=>(0,c._6)({itaKey:E}),4)};if(I){const O=g.query.getTriggerNode(k);O&&(0,c.xx)(O.sub).length===0?(t(r.R7.command.updateItaBatch({attr:"interactionTrigger",value:$,trigger:k,interactionStore:g,selectNode:O,nextTNodeTrigger:A,uiFrom:b})),U()):(t(r.R7.command.addIta({interactionTree:a,tNodeTrigger:A,uiFrom:b,interactionStore:g})),setTimeout(()=>(0,c._6)({itaKey:E}),4))}else t(r.R7.command.updateItaBatch({attr:"interactionTrigger",value:$,trigger:k,interactionStore:g,nextTNodeTrigger:A,uiFrom:b})),U()};return(0,s.jsxs)(i.pn,{className:y()("link-editor duumy-editor"),children:[(0,s.jsx)(f.A,{tNodeTrigger:k,onChangeTrigger:z,interactionTree:a}),I&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"divider"}),(0,s.jsx)(h.A,{supTreeNode:g.query.getNode(S==null?void 0:S.sup),isDummy:!0,link:void 0,isEditingCombo:_,onChange:j})]}),(0,s.jsx)(i.fl,{})]})})},98407:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>S,e:()=>g});var n=e(38502),r=e(18381),c=e(69623),o=e(67787),w=e(53732),u=e.n(w),d=e(81973),y=e(74923),h=e(66553),i=e(63619),f=e(15572),p=e(42402),s=e(78257),l=e(30275),C=e(53940),v=e(72214);const a=432,P=250,b="ICON_SELECT_POPUP",g=(0,n.memo)(_=>{const{style:I={},onSetCurrentNodeIcon:k,onClose:j,isDraggable:z=!0}=_,K=(0,r.d4)(y.VG),$=(0,r.d4)(y.yQ),[A,E]=(0,n.useState)({x:0,y:0}),[U,O]=(0,n.useState)({x:0,y:0}),H=K?s.lS.Search:s.lS.Icon,Q=L=>{if(["div.search-bar","div.close","div.nav-back-icon","div.history-panel"].find(B=>L.target.closest("#"+b+" .resourcesPanel-header "+B)))return;const{pageX:M,pageY:D}=L.nativeEvent,W=B=>E({x:B.pageX-M,y:B.pageY-D}),F=B=>{O({x:U.x+B.pageX-M,y:U.y+B.pageY-D}),E({x:0,y:0}),document.removeEventListener("mousemove",W),document.removeEventListener("mouseup",F)};document.addEventListener("mousemove",W),document.addEventListener("mouseup",F)},N=(0,n.useMemo)(()=>z?{...I,transform:((I==null?void 0:I.transform)||"")+" translate("+(U.x+A.x)+"px, "+(U.y+A.y)+"px)"}:I,[z,I,U,A]);return(0,v.jsxs)(h.A,{id:"popups-"+H+"-panel",style:{...N},children:[(0,v.jsx)(t,{className:u()(z&&"isDraggable"),onMouseDown:z?Q:void 0,children:(0,v.jsx)(p.F,{show:$,from:l.Z.iconSelectPopup,onClose:j})}),K?(0,v.jsx)(f.P,{from:l.Z.iconSelectPopup,onSetCurrentNodeIcon:k}):(0,v.jsx)(i.x,{from:l.Z.iconSelectPopup,onSetCurrentNodeIcon:k})]})});function S(_){const{emitBaseRect:I,...k}=_,j=(0,r.d4)(d.UI),z=(0,n.useMemo)(()=>{const{top:K=0,left:$,right:A}=I||{},E=K-a/2-8,U=document.documentElement.clientHeight-(E+a),O=E<0?8:U<0?document.documentElement.clientHeight-a-8:E;let H=C.xM;if($&&A){const Q=$-P-8,N=document.documentElement.clientWidth-(A+P+8),L=Q<0?N<0?$-8:A+P+8:$-8;H=document.documentElement.clientWidth-L||0}return{position:"absolute",height:a+"px",minHeight:"auto",borderRadius:"4px",right:(j?C.xM:0)+Math.max(0,H-C.xM)+"px",top:O+"px",zIndex:106}},[I,j]);if(!document.getElementById(b)){const K=document.createElement("div");K.id=b,document.body.appendChild(K)}return typeof(I==null?void 0:I.top)!="number"?null:(0,c.createPortal)((0,v.jsx)(g,{style:z,...k}),document.getElementById(b))}const t=o.Ay.div.withConfig({displayName:"IconSelectPopup__StyledDraggableHeader",componentId:"sc-107ngcs-0"})(["&.isDraggable{.resourcesPanel-header{cursor:move;.search-bar,.history-panel{cursor:initial;}}}"])},98886:(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(17307),u=e(58603),d=e(67787);const y=d.Ay.div.withConfig({displayName:"styles__StyledMenu",componentId:"sc-xagx11-0"})(["width:108px;height:108px;display:flex;align-items:center;justify-content:center;background:",";border-radius:8px;box-shadow:",";border:1px solid ",";.wrapper{display:flex;align-items:center;flex-direction:column;width:76px;height:76px;.border-set-width-item{width:24px;height:24px;cursor:pointer;border-radius:4px;color:",";&.border-line{background-color:",";.svg-icon{path{fill:",";}}}&.border-left-width{transform:rotate(-90deg);}&.border-right-width{transform:rotate(90deg);}&.border-bottom-width{transform:rotate(180deg);}.svg-icon{path{fill:",";}}&:not(.border-line):hover{background-color:",";}}.row{display:flex;align-items:center;justify-content:center;.border-center{width:12px;height:12px;margin:8px;}}}"],s=>s.theme.color_bg_white,s=>s.theme.shadow_m,s=>s.theme.color_bg_border_01,s=>s.theme.color_text_L3,s=>s.theme.color_bg_tab,s=>s.theme.color_btn_primary_normal,s=>s.theme.color_text_L3,s=>s.theme.color_btn_secondary_hover);var h=e(50521),i=e(72214);class f extends r.PureComponent{constructor(){super(...arguments),(0,n.A)(this,"OPTIONS_MENU_OPENER",(0,i.jsx)(h.Q,{className:"menu-opener widthSettings",icon:(0,i.jsx)(w.C,{name:"setting_panel/general/border_width",className:"options-icon"}),content:I18N.SettingPanel.single_side_border,direction:"down"})),(0,n.A)(this,"setComponentRef",l=>this.workspaceDropdown=l)}render(){const{borderVisibility:l,handleChange:C}=this.props,{OPTIONS_MENU_OPENER:v}=this;return(0,i.jsx)(u.A,{menuX:"right",menuY:"bottom",ref:this.setComponentRef,className:"border-width-menu-opener",opener:v,menuClassName:"border-width-menu",menu:(0,i.jsx)(p,{handleChange:C,borderVisibility:l})})}}const p=(0,r.memo)(s=>{let{handleChange:l,borderVisibility:C}=s;const{bdrIsVisibleT:v,bdrIsVisibleR:a,bdrIsVisibleB:P,bdrIsVisibleL:b}=C;return(0,i.jsx)(y,{children:(0,i.jsxs)("div",{className:"wrapper",children:[(0,i.jsx)("div",{"data-border-side":"T",className:o()("border-set-width-item border-top-width",{"border-line":v}),onClick:l,children:(0,i.jsx)(w.C,{name:"setting_panel/general/border_width_menu_item",size:24})}),(0,i.jsxs)("div",{className:"row",children:[(0,i.jsx)("div",{"data-border-side":"L",className:o()("border-set-width-item border-left-width",{"border-line":b}),onClick:l,children:(0,i.jsx)(w.C,{name:"setting_panel/general/border_width_menu_item",size:24})}),(0,i.jsx)("div",{className:"border-center"}),(0,i.jsx)("div",{"data-border-side":"R",className:o()("border-set-width-item border-right-width",{"border-line":a}),onClick:l,children:(0,i.jsx)(w.C,{name:"setting_panel/general/border_width_menu_item",size:24})})]}),(0,i.jsx)("div",{"data-border-side":"B",className:o()("border-set-width-item border-bottom-width",{"border-line":P}),onClick:l,children:(0,i.jsx)(w.C,{name:"setting_panel/general/border_width_menu_item",size:24})})]})})})},99306:(Fe,ee,e)=>{"use strict";e.d(ee,{o:()=>w});var n=e(2099);const r=u=>!(u.hotAttr.type==="rResStyleGroup"&&u.children.length===0),c=4,o=u=>{if(!u)return-1;let d=-1;for(const y of u.children){const h=o(y);d=Math.max(d,h)}return d+1};class w{constructor(){this.styleMap=new Map}build(d,y){const h=sdkStore.getHotItem(d);if(!h)return null;const{sub:i,sup:f,hotAttr:p}=h;if(p.libKey||p.styleType&&p.styleType!==y)return null;const s={...h},l=[],C=[];return i.length&&(i.forEach(v=>{const a=this.build(v,y);a&&r(a)&&(a.hotAttr.type==="rResStyle"&&C.push(a),a.hotAttr.type==="rResStyleGroup"&&l.push(a))}),C.sort(n.cM),l.sort(n.cM)),s.children=[...C,...l],this.styleMap.set(d,s),s}buildStyleTree(d){d==="color"&&(this.colorStyleTree=this.build("B@style","color")),d==="appear"&&(this.appearStyleTree=this.build("B@style","appear")),d==="text"&&(this.textStyleTree=this.build("B@style","text"))}getTreeNodeLevel(d){let y=0,h=d;for(;y<c&&h!=="B@style";){var i;h=(i=this.styleMap.get(h))==null?void 0:i.sup,y++}return y}getTreeNodeHeight(d){return o(this.styleMap.get(d))}getNode(d){return this.styleMap.get(d)}}},99340:(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,"_invalid",!1),(0,n.A)(this,"_originalValueOfInput",""),(0,n.A)(this,"_changedMannually",!1),(0,n.A)(this,"$input",null),(0,n.A)(this,"state",{hexValue:"",prevHexValueFromProps:""}),(0,n.A)(this,"setInputRef",u=>{this.$input=u}),(0,n.A)(this,"selectWhenClick",u=>{const d=u.target;d.select(),this._originalValueOfInput=d.value}),(0,n.A)(this,"_correctInput",u=>this.props.isShowLowerCase?u.toLowerCase().replace(/[^0-9a-f]/g,"").slice(0,6):u.toUpperCase().replace(/[^0-9A-F]/g,"").slice(0,6)),(0,n.A)(this,"handleChange",u=>{this._changedMannually=!0;const d=this._correctInput(u.target.value);d.length===3||d.length===6?this._invalid=!1:this._invalid=!0,this.setState({hexValue:d})}),(0,n.A)(this,"_format3DigitValue",u=>""+u[0]+u[0]+u[1]+u[1]+u[2]+u[2]),(0,n.A)(this,"formatAndHandleChange",()=>{if(!this._changedMannually)return;const{hexValue:u}=this.state;let d=u;return u.length===3&&(d=this._format3DigitValue(d),this.setState({hexValue:d})),d.toLowerCase(),this.props.handleChange("#"+d),d}),(0,n.A)(this,"handleBlur",u=>{this._invalid?this.setState({hexValue:this._originalValueOfInput}):this.formatAndHandleChange(),this._invalid=!1,this._originalValueOfInput="",this.props.onBlur&&this.props.onBlur(u)}),(0,n.A)(this,"handleEnter",u=>{if(u.key==="Enter"){if(this._invalid)this.setState({hexValue:this._originalValueOfInput});else{const d=this.formatAndHandleChange();this._originalValueOfInput=d}this._invalid=!1,u.target.select()}})}static getDerivedStateFromProps(u,d){const y=u.isShowLowerCase?u.hexValue.toLowerCase():u.hexValue.toUpperCase();return y!==d.prevHexValueFromProps?{prevHexValueFromProps:y,hexValue:y}:null}render(){const{className:u,onFocus:d}=this.props,{hexValue:y}=this.state;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("a",{className:"hex-suffix",children:"#"}),(0,c.jsx)("input",{className:u,ref:this.setInputRef,value:y,onFocus:d,onClick:this.selectWhenClick,onKeyUp:this.handleEnter,onChange:this.handleChange,onBlur:this.handleBlur})]})}}},99378:(Fe,ee,e)=>{"use strict";e.d(ee,{L:()=>Q});var n=e(38502),r=e(18381),c=e(21066),o=e(37780),w=e(40486),u=e(99566),d=e(53732),y=e.n(d),h=e(24094),i=e(54449),f=e(17307),p=e(30542),s=e(78401),l=e(39695);const C=(W,F)=>{const B=[...F.sub];for(;B.length;){const Y=B.pop();if(Y.attr.key===W)return Y;B.push(...Y.sub)}},v=(W,F)=>{var B;const Y=[],X=F(W);return X&&Y.push(X),W==null||(B=W.sub)==null||B.forEach(G=>{Y.push(...v(G,F))}),Y},a=W=>{let F=1;if(W.sub.length){const B=W.sub.map(Y=>a(Y));F+=Math.max.apply(null,B)}return F},P=W=>W.isLast,b=(W,F,B)=>{let{interactionTree:Y,collapseList:X}=B;const G=W.type,Z=document.querySelector("#interaction-tree-container"),J=Z.firstChild,te=Array.from(Z.querySelectorAll(".rn-content-item"+(G==="trigger"?".interaction-trigger-node":""))),he=Z.getBoundingClientRect(),de=J.getBoundingClientRect(),Se=[],xe={};let be=new Set,ie=1;if(W){const ue=new Set(F),ve=new Set;for(const fe of F){const we=C(fe,Y);we&&ue.has(we.sup)&&ve.add(we.attr.key)}for(const fe of ve)ue.delete(fe);be=ue;const re=[];G!=="trigger"&&v(Y,fe=>{var we;if(fe.type==="root"||(fe==null||(we=fe.attr)==null?void 0:we.interactionType)===l.O2.TriggerPlaceHolder)return;const{attr:{key:Te},sub:Ie}=fe;if(be.has(Te)&&Ie.length>0)for(const le of fe.sub)be.add(le.attr.key);F.includes(Te)&&re.push(fe)});for(const fe of re){const we=a(fe);ie=Math.max(we,ie)}}const oe=te.length;return te.forEach((ue,ve)=>{const{dkey:re}=ue.dataset,fe=C(re,Y),we=fe,Te=fe.level,Ie=G==="trigger"?ue:ue.querySelector(":scope > .rn-list-item"),le=Ie.getBoundingClientRect(),me=(0,s.yB)(Ie),Pe=ue.getBoundingClientRect(),pe=(0,w.Es)(re)?"action":(0,w.sJ)(re)?"trigger":"none",ke={top:le.top-de.top,left:le.left-de.left,width:Pe.width,height:le.height};pe==="trigger"&&(ke.left+=8);const We={top:me.top-de.top,left:me.left-de.left,width:me.width,height:me.height},Ee={top:Pe.top-de.top,left:We.left,width:We.width,height:Pe.height};xe[re]={rect:ke,contentRect:We,treeRect:Ee};const{left:Ae,top:Ce,width:_e,height:Ge}=ke,Xe=Ae+_e,Ue=Ce+Ge/2,pt=Ce+Ge/3*2,Ye=Ce+Ge;if(G!=="trigger"&&be.has(re)){if(W.type==="branchRoot")return;Se.push({cid:re,type:"self-next",parentCid:we.sup,min:{x:Ae,y:Ce},max:{x:Xe,y:Ye},isValid:!0});return}(0,w.Es)(re);const Qe=7,lt=Te+ie<=Qe,tt=Te-1+ie<=Qe,qe=()=>{if(X.includes(fe.attr.key)){const{attr:{key:ct}}=fe.sub.at(-1);Se.push({cid:ct,type:"prevSibling",type2:"lastChild",parentCid:re,min:{x:Ae,y:Ce},max:{x:Xe,y:Ye},isValid:lt&&ct!==F[0]})}else{const rt=(0,w.aW)(fe.sub)[0],{attr:{key:At}}=rt;let ot;At===F[0]?ot={cid:At,type:"self-prev",parentCid:we.sup,min:{x:Ae,y:Ce},max:{x:Xe,y:Ye},isValid:!0}:ot={cid:At,type:"prevSibling",parentCid:re,min:{x:Ae,y:Ce},max:{x:Xe,y:Ye},isValid:!0},rt.type==="branchRoot"&&(ot.uiCid=rt.sub[0].attr.key),Se.push(ot)}},et=()=>{if(fe.type==="trigger")qe();else if(fe.type==="branch")if(fe.branchIndex===0){const ct=(0,w.aW)(fe.sub),{attr:{key:rt}}=ct[0],At=C(fe.sup,Y);if(rt===F[0])Se.push({cid:fe.sup,type:"prevSibling",parentCid:At.attr.key,min:{x:Ae,y:Ce},max:{x:Xe,y:Ue},isValid:!0,uiCid:fe.attr.key}),Se.push({cid:rt,type:"self-prev",parentCid:we.sup,min:{x:Ae,y:Ue},max:{x:Xe,y:Ye},isValid:!0});else{if(Se.push({cid:fe.sup,type:"prevSibling",parentCid:At.attr.key,min:{x:Ae,y:Ce},max:{x:Xe,y:Ue},isValid:!0,uiCid:fe.attr.key}),W.type==="branchRoot")return;Se.push({cid:rt,type:"prevSibling",parentCid:re,min:{x:Ae,y:Ue},max:{x:Xe,y:Ye},isValid:!0})}}else{if(W.type==="branchRoot")return;qe()}},st=()=>{const ct=C(we.sup,Y);if((ct==null?void 0:ct.type)==="branch"&&W.type==="branchRoot")return;P(re)&&ct?Se.push({cid:re,type:"nextSibling",parentCid:we.sup,min:{x:xe[re].contentRect.left,y:pt},max:{x:Xe,y:Ye},isValid:tt}):pe==="action"?Se.push({cid:re,type:"prevSibling",parentCid:we.sup,min:{x:Ae,y:Ce},max:{x:Xe,y:Ye},isValid:tt}):(Se.push({cid:re,type:"prevSibling",parentCid:we.sup,min:{x:Ae,y:Ce},max:{x:Xe,y:Ue},isValid:tt}),Se.push({cid:re,type:"nextSibling",parentCid:we.sup,min:{x:Ae,y:Ue},max:{x:Xe,y:Ye},isValid:tt}))};G==="trigger"?(()=>{const{attr:{key:ct}}=fe,rt=ve===oe-1?Math.max(he.bottom,Ye):Ye;ct===F[0]?(Se.push({cid:ct,type:"self-prev",min:{x:Ae,y:Ce},max:{x:Xe,y:Ue},isValid:!0}),Se.push({cid:ct,type:"self-next",min:{x:Ae,y:Ue},max:{x:Xe,y:rt},isValid:!0})):(Se.push({cid:ct,type:"prevSibling",min:{x:Ae,y:Ce},max:{x:Xe,y:Ue},isValid:!0}),Se.push({cid:ct,type:"nextSibling",min:{x:Ae,y:Ue},max:{x:Xe,y:rt},isValid:!0}))})():fe.sub.length>0?et():st()}),{matchDataList:Se,containerRect:he,rectQueryMap:xe}};var g=e(61924),S=e(83199),t=e(93257),_=e(95106),I=e(26067),k=e(29360),j=e(81973),z=e(9680),K=e(86594),$=e(88981),A=e(61790),E=e(20089),U=e(79209),O=e(50320),H=e(72214);const Q=(0,n.memo)(W=>{let{interactionTree:F,selectInteractionKey:B,editingPanelRefPage:Y,extraClick:X,uiFrom:G,collapseList:Z,handleCollapse:J,interactionStore:te,extraClick2:he,onCloseCallback:de,currentWidgetKey:Se,isEditingCombo:xe}=W;const{handleClick:be,handleClose:ie,menuStatus:oe,clickedItem:ue}=(0,i.z)(),{menuStatus:ve,handleToggle2:re,handleClose:fe}=(0,i.z)(),we=(0,r.d4)(o.R7.query.getNewTriggerNodeEditingKey),Te=(0,r.d4)(o.R7.query.getNewInteractionTypeEditingKey),{handleHover:Ie,hovered:le}=(0,g.Em)(oe),me=(0,r.wA)(),[Pe,pe]=(0,n.useState)(!1),ke=(0,n.useCallback)(function(at,ct){if(ct===void 0&&(ct=ue),!ct){ie();return}me(o.R7.command.deleteIta({deleteNode:ct,uiFrom:G,interactionStore:te,deleteUiFrom:G,onCloseCallback:de})),ie(),he==null||he(ct)},[ue,me,ie,G,te,he,de]);(0,n.useEffect)(()=>{Object.assign(MB,{shortKeyCallbackBucket:{...MB.shortKeyCallbackBucket,deleteItaNodeCallback:()=>te.type==="defaultData"||!B||(0,w.Es)(B)?!1:(ke(void 0,te.query.getNode(B)),!0)}})},[ke,B,te.type,te.query]),(0,n.useEffect)(()=>()=>{Object.assign(MB,{shortKeyCallbackBucket:{...MB.shortKeyCallbackBucket,deleteItaNodeCallback:void 0}})},[]);const We=(0,n.useCallback)(at=>{if(!ue){ie();return}me(o.R7.command.selectCopyCommand({selectNode:ue,copyType:ue.type==="trigger"?"trigger":"action",interactionStore:te})),ie()},[ue,me,ie,te]),Ee=at=>(le==null?void 0:le.attr.key)===at.attr.key,Ae=(0,n.useCallback)(at=>{if(!ue){ie();return}if(ue.type==="trigger"){var ct;const rt=te==null||(ct=te.query.getTriggerNode(ue.attr.trigger))==null?void 0:ct.sub.findLast(At=>At.attr.interactionTrigger);J(ue.attr.key,"del"),rt&&me(o.R7.command.pasteIta({targetInteractionKey:rt.attr.key,uiFrom:G}))}else te.query.getNode(ue.sup).type==="branch"?me(o.R7.command.pasteIta({targetInteractionKey:ue.attr.key,uiFrom:G,option:{type:"pasteToBranch",selectNode:ue,interactionStore:te}})):me(o.R7.command.pasteIta({targetInteractionKey:ue.attr.key,uiFrom:G}));ie()},[ue,me,ie,G,J,te]),Ce=(0,n.useCallback)(()=>{if(!ue){ie();return}if(ue.type==="trigger"){const at=(0,w.Mc)({interactionTree:F,trigger:ue.attr.trigger}).sub.map(ct=>ct.attr);me(o.R7.command.updateItaBatch({attr:"triggerDisable",value:!at[0].triggerDisable,interactionStore:te,trigger:ue.attr.trigger,selectNode:ue,uiFrom:G}))}else if(ue.type==="branchRoot"){const at=ue.attr.runtimeNodeTrigger||(0,w.KN)(ue.sup);me(o.R7.command.updateItaBatch({attr:"actionDisable",value:!ue.attr.actionDisable,interactionStore:te,trigger:at,selectNode:ue,uiFrom:G}))}else me(o.R7.command.updateItaKV({link:ue.attr,attr:"actionDisable",value:!ue.attr.actionDisable,uiFrom:G,interactionStore:te}));ie()},[ue,me,ie,F,G,te]),[_e,Ge]=(0,n.useState)(null),Xe=(0,n.useCallback)((at,ct)=>{const rt=ct.type==="trigger"?document.querySelector('#interaction-tree-list [data-key="'+ct.attr.key+'"] .trigger-node.rn-list-item'):document.querySelector('#interaction-tree-list [data-key="'+ct.attr.key+'"]'),{top:At,left:ot}=rt.getBoundingClientRect(),Tt=at.clientX-ot;let ft=at.clientY-At;if(ft>40)try{const{top:Xt}=document.querySelector('#interaction-tree-list [data-key="'+ct.attr.key+'_branch_1"]').getBoundingClientRect();ft=at.clientY-Xt}catch(Xt){}const Nt=[ct.attr.key],Bt=b(ct,Nt,{interactionTree:F,collapseList:Z}),zt={screen:ct,$element:rt,offsetX:Tt,offsetY:ft,...Bt};Ge(zt)},[F,Z]),Ue=(0,n.useCallback)(at=>{let{cid:ct,type:rt,isValid:At}=at;if(_e&&(Ge(null),pe(!1),!!At&&(rt==="prevSibling"||rt==="nextSibling"))){var ot;!(0,w.sJ)(ct)&&J(((ot=te.query.findUpTriggerNode(ct))==null?void 0:ot.attr.key)||"","del"),me(o.R7.command.interactionInsertCommand({sourceInteractionKey:_e.screen.attr.key,targetInteractionKey:ct,insertType:rt,interactionTree:F,selectTreeNode:_e.screen,uiFrom:G,interactionStore:te})),G==="treePanelFloat"&&me(o.R7.command.interactionSelectCommand({selectInteractionKeyList:[_e.screen.attr.key]}))}},[me,_e,F,G,te,J]),pt=(0,n.useRef)(),Ye=(0,n.useCallback)(()=>pt.current,[]),Qe=()=>{ie()},lt=()=>{me(o.R7.command.pasteIta({targetInteractionKey:void 0,uiFrom:G}))};(0,n.useEffect)(()=>{oe.isOpenContextMenu||Ie(void 0)},[oe.isOpenContextMenu,Ie]);const tt=at=>{at.button===2&&re(at)},qe=(0,n.useCallback)(()=>{G==="treePanelRight"&&me(o.R7.command.interactionSelectCommand({selectInteractionKeyList:[]})),pe(!0)},[me,G]),[et,st]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{(0,K.YF)().then(at=>{st(at)})},[oe.isOpenContextMenu,ve.isOpenContextMenu]),(0,H.jsxs)(h.UD,{id:"interaction-tree-container",className:y()({treePanelFloat:G==="treePanelFloat",treePanelRight:G==="treePanelRight","is-dragging":Pe}),ref:pt,onMouseDown:tt,children:[(0,H.jsxs)("div",{className:"container2",children:[(0,H.jsx)(g.wM.Provider,{value:{hovered:le,handleHover:Ie,handleScreenMetaDropDown:Xe,editingPanelRefPage:Y,selectInteractionKey:B,handleContextMenuClick:be,extraClick:X,newTriggerNodeEditingKey:we,newInteractionTypeEditingKey:Te,currentWidgetKey:Se,getIsNodeHovered:Ee,isEditingCombo:xe},children:(0,H.jsx)("div",{id:"interaction-tree-list",children:F&&F.sub.map((at,ct)=>(0,H.jsx)(N,{interactionTriggerNode:at,interactionStore:te,collapseList:Z,handleCollapse:J},ct))})}),_e&&(0,H.jsx)(p.A,{draggingElement:_e.$element,getContainerElement:Ye,matchDataList:_e.matchDataList,containerRect:_e.containerRect,rectQueryMap:_e.rectQueryMap,offsetX:_e.offsetX,offsetY:_e.offsetY,onDrop:Ue,noGroupIndicator:!0,onDragStartCallback:qe})]}),oe.isOpenContextMenu&&ue&&(0,H.jsxs)(h.Sv,{position:oe.position,onClose:Qe,children:[(0,H.jsx)(c.Dr,{text:I18N.ToolBarNext.delete,onClick:ke}),(0,H.jsx)(c.Dr,{text:I18N.ToolBarNext.copy,onClick:We}),(0,H.jsx)(c.Dr,{text:I18N.ToolBarNext.paste,onClick:Ae,disabled:!et}),(0,H.jsx)(c.Dr,{text:(0,w.Pk)(ue)?I18N.Interaction.enable_action:I18N.Interaction.disable_action,onClick:Ce})]}),ve.isOpenContextMenu&&(0,H.jsx)(h.Sv,{position:ve.position,onClose:fe,children:(0,H.jsx)(c.Dr,{text:I18N.Interaction.paste,onClick:lt,disabled:!et})}),(0,H.jsx)(h.RN,{}),(0,H.jsx)(h.GO,{})]})}),N=(0,n.memo)(W=>{var F;let{interactionTriggerNode:B,interactionStore:Y,collapseList:X,handleCollapse:G}=W;const{handleHover:Z,selectInteractionKey:J,handleContextMenuClick:te,extraClick:he,getIsNodeHovered:de,newTriggerNodeEditingKey:Se,handleScreenMetaDropDown:xe,currentWidgetKey:be,editingPanelRefPage:ie,isEditingCombo:oe}=(0,n.useContext)(g.wM),ue=J===B.attr.key,ve=((F=Y.query.findUpTriggerNode(J))==null?void 0:F.attr.key)===B.attr.key,re=de(B),fe=X.includes(B.attr.key),we=(0,n.useMemo)(()=>!(0,u.Yy)(B.attr.trigger)||B.attr.isListenerTarInvalid,[B]),Te=(0,n.useMemo)(()=>{const ke=(0,u.Jh)(B.attr.trigger),We=(0,w.Oz)(ke,B.attr.triggerInfo),Ee=()=>{if(!we)return;let Ce=I18N.Interaction.unset,_e=!Se||!ve;if(ke===$.O.Listener){var Ge;const{listenTarKey:Xe}=B.attr.triggerInfo;((Ge=sdkStore.getHotItem(Xe))==null?void 0:Ge.hotAttr.type)===E.x.Var&&(Ce=I18N.Variable.trashed,_e=!0)}return _e&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)("span",{className:"no-target-span",children:["\xA0",Ce]}),(0,H.jsx)(f.C,{size:16,isColorPure:!0,name:"interaction/invalid"})]})},Ae=function(Ce){if(Ce===void 0&&(Ce=!1),!we)switch(ke){case $.O.Keydown:{const{keyseq:Ge}=B.attr.triggerInfo,Xe=(0,w.Pn)(Ge),Ue=Xe?Xe.split(/(⌘)/).filter(Boolean):[];return Ue&&Ue.length>0&&(0,H.jsxs)(h.gB,{className:y()("suffix-name",ke),children:[(0,H.jsx)("span",{children:"\xA0("}),Ue.map((pt,Ye)=>pt==="\u2318"?(0,H.jsx)("span",{className:"fw-normal",children:"\u2318"},Ye):(0,H.jsx)("span",{children:pt},Ye)),(0,H.jsx)("span",{children:")"})]})}case $.O.Listener:{var _e;const{listenTarKey:Ge,listenTarAttr:Xe}=B.attr.triggerInfo,Ue=((_e=sdkStore.getHotItem(Ge))==null?void 0:_e.hotAttr.type)===E.x.Var,pt=(0,A.KD)(Ge),Ye=Xe?I18N.Expression.exprWattr[Xe]:"";return Ce?(0,H.jsxs)(H.Fragment,{children:[pt&&(0,H.jsx)("div",{className:y()("listener-trigger-tag tarName",{"is-var":Ue}),children:pt}),Ye&&(0,H.jsxs)(H.Fragment,{children:[I18N.Interaction.of,"\xA0",(0,H.jsx)("div",{className:"listener-trigger-tag tarAttrName",children:Ye})]})]}):(0,H.jsxs)(h.gB,{className:y()("suffix-name",ke),children:[pt&&(0,H.jsx)("div",{className:y()("listener-trigger-tag tarName",{"is-var":Ue}),children:pt}),Ye&&(0,H.jsxs)(H.Fragment,{children:[I18N.Interaction.of,"\xA0",(0,H.jsx)("div",{className:"listener-trigger-tag tarAttrName",children:Ye})]})]})}case $.O.InputEvent:{const{event:Ge}=B.attr.triggerInfo;return(0,H.jsx)("span",{children:""+(0,O.O)(Ge)})}}};return(0,H.jsx)(S.A,{direction:"down",content:(0,H.jsxs)(h.Ny,{children:[(0,H.jsx)("span",{className:y()("ita-trigger-name",{"margin-right-4":ke!==$.O.InputEvent}),children:We}),Ae(!0)]}),maxWidth:"200px",style:{padding:8,wordWrap:"break-word"},tipClassName:"long-name-trigger fixed-transform-y10",isShowTipsByTarget:(Ce,_e)=>{var Ge;return((Ge=_e.querySelector(".listener-trigger-tag.tarName"))==null?void 0:Ge.scrollWidth)>60},enterHoverTime:200,isSkipShortTimerHover:!0,children:(0,H.jsxs)(h.Ny,{children:[(0,H.jsx)("span",{className:y()("ita-trigger-name",{"margin-right-4":ke!==$.O.InputEvent}),children:We}),Ae(),Ee()]})})},[B.attr.trigger,B.attr.triggerInfo,we,Se,ve]),Ie=(0,r.wA)(),le=(0,n.useCallback)(ke=>{ke.button===2?(ke.stopPropagation(),te(B,{top:ke.clientY,left:ke.clientX})):xe(ke,B)},[te,xe,B]),me=(0,n.useCallback)(ke=>{Ie(o.R7.command.interactionSelectCommand({selectInteractionKeyList:[(0,w.iY)(B.attr.trigger)]})),he==null||he(ke,void 0)},[Ie,he,B.attr.trigger]),Pe=(0,n.useCallback)(ke=>{ke.stopPropagation(),te(B,{top:ke.clientY,left:ke.clientX})},[te,B]),pe=(0,n.useCallback)(ke=>{ke.stopPropagation(),G(B.attr.key,fe?"del":"add")},[G,B.attr.key,fe]);return(0,H.jsxs)(h.H0,{isTrigger:!0,className:y()("interaction-trigger-node","rn-content-item",{active:ue,hovered:!ue&&re,disabled:B.attr.disabled,collapsed:fe}),"data-key":B.attr.key,"data-dkey":B.attr.key,children:[(0,H.jsxs)(h.Wu,{className:y()("trigger-node rn-list-item",{disabled:B.attr.disabled,hovered:!ue&&re}),onClick:me,onMouseDown:le,onMouseEnter:()=>Z(B),onMouseOver:()=>Z(B),onMouseLeave:()=>Z(void 0),children:[(0,H.jsx)(f.C,{size:8,onClick:pe,className:"trigger-collapse",name:"interaction/down_arrow"}),(0,H.jsx)(f.C,{size:16,name:"interaction/trigger/"+(0,u.Jh)(B.attr.trigger),className:"interaction-icon"}),Te,re&&(0,H.jsx)(f.C,{size:24,onClick:Pe,className:"hover-more",name:"interaction/more"})]}),!fe&&B.sub.map((ke,We)=>ke.attr.interactionType===l.O2.TriggerPlaceHolder?null:ke.attr.interactionType===l.O2.ConditionalBranches?(0,H.jsx)(V,{interactionTreeBranchRootNode:ke,isSupSelect:ue,isSupHovered:re},We):(0,H.jsx)(L,{interactionTreeActionNode:ke,isSupSelect:ue},We))]})}),L=(0,n.memo)(W=>{let{interactionTreeActionNode:F,isSupSelect:B,prefixIcon:Y,isSupDisabled:X}=W;const{handleHover:G,handleScreenMetaDropDown:Z,editingPanelRefPage:J,selectInteractionKey:te,handleContextMenuClick:he,extraClick:de,newInteractionTypeEditingKey:Se,getIsNodeHovered:xe,currentWidgetKey:be}=(0,n.useContext)(g.wM),ie=(0,r.d4)(j.ue),oe=(0,n.useMemo)(()=>({variables:(0,z.qL)(ie),p2sdkStore:sdkStore}),[ie]),ue=(0,r.wA)(),ve=Xe=>{pe||(ue(o.R7.command.interactionSelectCommand({selectInteractionKeyList:[F.attr.key]})),de==null||de(Xe,F))},re=Xe=>{fe||(Xe.button===2?(Xe.stopPropagation(),he(F,{top:Xe.clientY,left:Xe.clientX})):Z(Xe,F))},fe=(0,w.Es)(F.attr.key),we=te===F.attr.key,Te=fe?"dummy":F.attr.interactionType,{isUiValid:Ie,isTargetValid:le,isTargetVarValid:me,isTargetExprWattrValid:Pe}=F.attr,pe=Te===l.O2.OpenExternalUrl&&(0,U._S)(),ke=(0,n.useMemo)(()=>{let Xe=" "+(0,w.iA)(F.attr);if(Ie)switch(F.attr.interactionType){case l.O2.SetBasketCanvas:{var Ue;const{basketKey:Qe,refRBPageKey:lt,canvasKey:tt}=(0,_.XR)({link:F.attr,editingPanelRefPage:J})||{},qe=(0,I.Xg)({refRBPageKey:lt,targetResCanvasKey:tt});Xe=I18N.Interaction.name.from_to.replace(/{from}/,Qe&&((Ue=sdkStore.getHotItem(Qe))==null?void 0:Ue.hotAttr.name)||"").replace(/{to}/,qe);break}case l.O2.OpenExternalUrl:{var pt;const Qe=(pt=F.attr.expression)==null?void 0:pt.interactionExternalUrl;Qe?Xe=(0,H.jsxs)(h.j$,{className:"var-display-name",children:[I18N.Interaction.name.jump_to,pe?"\u4EC5\u9650\u4F1A\u5458\u4F7F\u7528":(0,H.jsx)(k.A,{readOnly:!0,simple:!0,value:Qe,valueType:"string",scope:oe,multiline:!1,currentWidgetKey:be})]}):Xe=I18N.Interaction.name.jump_to+" "+(pe?"\u4EC5\u9650\u4F1A\u5458\u4F7F\u7528":(0,w.j$)(F,{editingPanelRefPage:J}));break}case l.O2.LinkToCanvas:{Xe=I18N.Interaction.name.jump_to+" "+(0,w.j$)(F,{editingPanelRefPage:J});break}case l.O2.OpenOverlay:{Xe=I18N.Interaction.name.open+" "+(0,w.j$)(F,{editingPanelRefPage:J});break}case l.O2.SwapOverlay:{Xe=I18N.Interaction.name.change_to+" "+(0,w.j$)(F,{editingPanelRefPage:J});break}case l.O2.SetVariableValue:{Xe=(0,H.jsx)(M,{...F.attr,currentWidgetKey:be});break}case l.O2.SetAnimation:{const Qe=(0,I.iI)(F.attr,J);if(F.attr.isTargetWidgetValid){var Ye;const lt=I18N.dConst.ani[(Ye=F.attr.data)==null?void 0:Ye.animationName];if(lt){Xe=Qe+" "+lt;break}}Xe+=Qe;break}case l.O2.SetInputFocus:{Xe=F.attr.isFocus?I18N.Interaction.setInputFocus.focus:I18N.Interaction.setInputFocus.blur;const Qe=(0,I.iI)(F.attr,J);F.attr.isTargetWidgetValid&&(Xe+=" "+Qe);break}default:{Xe+=" "+(0,w.j$)(F,{editingPanelRefPage:J});break}}return Xe},[J,F,Te,Ie,le,oe,pe]),We=xe(F),Ee=Xe=>{fe||(Xe.stopPropagation(),he(F,{top:Xe.clientY,left:Xe.clientX}))},Ae=(0,n.useCallback)((Xe,Ue)=>{if(typeof ke=="string")return(0,w.JT)(ke)>142;if(typeof ke=="object"){var pt;return((pt=Ue.querySelector(".var-display-name"))==null?void 0:pt.scrollWidth)>164}},[ke,pe]),Ce=Se===F.attr.key||le,_e=!fe&&We,Ge=F.attr.triggerDisable||X||F.attr.actionDisable||pe;return(0,H.jsx)(S.A,{content:ke,maxWidth:"200px",style:{padding:8,wordWrap:"break-word"},tipClassName:"long-name-trigger fixed-transform-y10",isShowTipsByTarget:Ae,enterHoverTime:200,isSkipShortTimerHover:!0,children:(0,H.jsxs)(h.yF,{"data-key":F.attr.key,"data-dkey":F.attr.key,className:y()("interaction-action-node","rn-content-item",{active:we,hovered:!we&&!B&&We,disabled:Ge}),onMouseDown:re,onClick:ve,onMouseEnter:()=>G(F),onMouseOver:()=>G(F),onMouseLeave:()=>G(void 0),children:[Y,(0,H.jsxs)("div",{className:"rn-list-item",children:[(0,H.jsx)(f.C,{size:16,className:"interaction-icon",name:"interaction/action/"+Te}),(0,H.jsx)("span",{className:y()("strange-name",{valid:Ce,inValid:!Ce,"is-ui-invalid":!Ie,isShowMore:_e}),children:ke}),(0,H.jsx)(D,{newInteractionTypeEditingKey:Se,interactionTreeActionNode:F,isTargetValid:le,isUiValid:Ie,isTargetVarValid:me,isTargetVarValid:me,isTargetExprWattrValid:Pe}),_e&&(0,H.jsx)(f.C,{size:24,onClick:Ee,className:"hover-more",name:"interaction/more"})]})]})})}),V=W=>{let{interactionTreeBranchRootNode:F,isSupSelect:B}=W;const{sub:Y,attr:X}=F,G=(0,r.d4)(j.ue),Z=(0,n.useMemo)(()=>({variables:(0,z.qL)(G),p2sdkStore:sdkStore}),[G]),J=Y.length,{handleHover:te,handleScreenMetaDropDown:he,hovered:de,selectInteractionKey:Se,handleContextMenuClick:xe,extraClick:be,newInteractionTypeEditingKey:ie,getIsNodeHovered:oe,currentWidgetKey:ue}=(0,n.useContext)(g.wM),ve=(0,r.wA)(),re=ke=>{ve(o.R7.command.interactionSelectCommand({selectInteractionKeyList:[F.attr.key]})),be==null||be(ke,F)},fe=ke=>{Te||(ke.button===2?(ke.stopPropagation(),xe(F,{top:ke.clientY,left:ke.clientX})):he(ke,F))},we=ke=>{ke.stopPropagation(),xe(F,{top:ke.clientY,left:ke.clientX})},Te=(0,w.Es)(F.attr.key),Ie=Se===F.attr.key;let le=!1;if(!B){le=de===F;for(const ke of Y)for(const We of ke.sub)if(We===de){le=!0;break}}const me=oe(F),Pe=B||Ie,pe=X.triggerDisable||X.actionDisable;return(0,H.jsx)(h.H0,{isTrigger:!1,"data-hkey":F.attr.key,className:y()("interaction-branch-root-node",{active:Ie,hovered:le}),children:Y.map((ke,We)=>{const{attr:{key:Ee,condition:Ae},sub:Ce}=ke,_e=We===0;if(!_e&&!F.attr.branchSwitch)return null;const Ge=We===J-1,Xe=I18N.Interaction.branch[_e?"if":Ge?"else":"elseif"],Ue=!Ge&&X.isTargetValid,pt=(Ye,Qe)=>{var lt;return Ge?!1:((lt=Qe.querySelector(".var-display-name"))==null?void 0:lt.scrollWidth)>164};return(0,H.jsxs)("div",{children:[(0,H.jsx)(h.yF,{"data-key":_e?F.attr.key:Ee,"data-dkey":Ee,className:y()("interaction-action-node","rn-content-item",{active:Ie&&_e,hovered:le&&_e,disabled:pe}),onMouseDown:fe,onClick:re,onMouseEnter:()=>te(F),onMouseOver:()=>te(F),onMouseLeave:()=>te(void 0),children:(0,H.jsx)(S.A,{content:Ge||!Ue?null:(0,H.jsxs)(H.Fragment,{children:[Xe,(0,H.jsx)(h.j$,{className:"var-display-name",children:(0,H.jsx)(k.A,{readOnly:!0,simple:!0,value:Ae,valueType:"boolean",scope:Z,multiline:!1,currentWidgetKey:ue})})]}),maxWidth:"200px",style:{padding:8,wordWrap:"break-word"},tipClassName:"long-name-trigger fixed-transform-y10",isShowTipsByTarget:pt,enterHoverTime:200,isSkipShortTimerHover:!0,children:(0,H.jsxs)("div",{className:"rn-list-item",children:[(0,H.jsx)(f.C,{size:16,className:"interaction-icon",name:"interaction/action/"+(Ge?"12_else":l.O2.ConditionalBranches)}),(0,H.jsxs)("div",{className:y()("strange-name var-display-name",{valid:Ue,inValid:!Ue}),children:[Xe,Ge?null:(0,H.jsxs)(H.Fragment,{children:[Ue&&(0,H.jsx)(h.j$,{className:"var-display-name",children:(0,H.jsx)(k.A,{readOnly:!0,simple:!0,value:Ae,valueType:"boolean",scope:Z,multiline:!1,currentWidgetKey:ue})}),(0,H.jsx)(D,{newInteractionTypeEditingKey:ie,interactionTreeActionNode:F,isTargetValid:Ue,isTargetVarValid:Ae&&F.attr.isTargetVarValid,isTargetExprWattrValid:F.attr.isTargetExprWattrValid,isUiValid:!0}),me&&(0,H.jsx)(f.C,{size:24,onClick:we,className:"hover-more",name:"interaction/more"})]})]})]})})}),Ce.map(Ye=>Ye.attr.interactionType===l.O2.TriggerPlaceHolder?null:(0,H.jsx)(L,{interactionTreeActionNode:Ye,isSupSelect:Pe,isSupDisabled:pe,prefixIcon:(0,H.jsx)(f.C,{className:"branch-icon",name:"interaction/branch_ui"})},Ye.attr.key))]},Ee)})})},M=W=>{const F=(0,r.d4)(j.ue),B=(0,n.useMemo)(()=>({variables:(0,z.qL)(F),p2sdkStore:sdkStore}),[F]),Y=W.targetVarKey?(0,z.hZ)(W.targetVarKey):null;return(0,H.jsx)(h.j$,{className:"var-display-name",children:W.isTargetVarValid&&W.isTargetValid&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)("span",{className:"var-tag",children:Y.name}),I18N.Interaction.variable.set_value,(0,H.jsx)(k.A,{readOnly:!0,simple:!0,valueType:(Y==null?void 0:Y.varDataType)||"string",value:W.targetVarValue,scope:B,multiline:!1,currentWidgetKey:W.currentWidgetKey})]})})},D=W=>{let{newInteractionTypeEditingKey:F,interactionTreeActionNode:B,isTargetValid:Y,isTargetVarValid:X,isUiValid:G,children:Z,isTargetExprWattrValid:J}=W;const te=he=>{const de=document.getElementsByClassName("long-name-trigger"),Se=xe=>{xe.style.display=he?"unset":"none"};for(let xe=0;xe<de.length;xe++)Se(de.item(xe))};return F===B.attr.key?Z:!Y||X===!1||J===!1?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)("span",{className:"no-target-span",children:["\xA0",X===!1?I18N.Variable.trashed:I18N.Interaction.unset]}),(0,H.jsx)(f.C,{size:16,isColorPure:!0,name:"interaction/invalid"})]}):G?Z?(0,H.jsx)(S.A,{direction:"down",content:Z,maxWidth:"200px",enterHoverTime:200,isSkipShortTimerHover:!0,style:{padding:8,wordWrap:"break-word"},onChangeTooltipsHover:(he,de)=>de==null?void 0:de(),isShowTipsByTarget:(he,de)=>de.clientWidth>144,tipClassName:"fixed-transform-y20x6",children:Z}):null:(0,H.jsx)(t.A,{direction:"down",content:I18N.Interaction.invalid_redit,maxWidth:"80px",enterCallback:()=>te(!1),leaveCallback:()=>te(!0),children:(0,H.jsx)(f.C,{size:16,isColorPure:!0,name:"interaction/invalid"})})}},99402:(Fe,ee,e)=>{"use strict";e.d(ee,{A:()=>W});var n=e(38502),r=e(53732),c=e.n(r),o=e(94586),w=e(76241),u=e(95549),d=e(53034),y=e(59895),h=e(94815),i=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],f=(0,n.forwardRef)(function(F,B){var Y=F.prefixCls,X=Y===void 0?"rc-checkbox":Y,G=F.className,Z=F.style,J=F.checked,te=F.disabled,he=F.defaultChecked,de=he===void 0?!1:he,Se=F.type,xe=Se===void 0?"checkbox":Se,be=F.title,ie=F.onChange,oe=(0,y.A)(F,i),ue=(0,n.useRef)(null),ve=(0,n.useRef)(null),re=(0,h.A)(de,{value:J}),fe=(0,d.A)(re,2),we=fe[0],Te=fe[1];(0,n.useImperativeHandle)(B,function(){return{focus:function(Pe){var pe;(pe=ue.current)===null||pe===void 0||pe.focus(Pe)},blur:function(){var Pe;(Pe=ue.current)===null||Pe===void 0||Pe.blur()},input:ue.current,nativeElement:ve.current}});var Ie=c()(X,G,(0,u.A)((0,u.A)({},"".concat(X,"-checked"),we),"".concat(X,"-disabled"),te)),le=function(Pe){te||("checked"in F||Te(Pe.target.checked),ie==null||ie({target:(0,w.A)((0,w.A)({},F),{},{type:xe,checked:Pe.target.checked}),stopPropagation:function(){Pe.stopPropagation()},preventDefault:function(){Pe.preventDefault()},nativeEvent:Pe.nativeEvent}))};return n.createElement("span",{className:Ie,title:be,style:Z,ref:ve},n.createElement("input",(0,o.A)({},oe,{className:"".concat(X,"-input"),ref:ue,onChange:le,disabled:te,checked:!!we,type:xe})),n.createElement("span",{className:"".concat(X,"-inner")}))});const p=f;var s=e(21425),l=e(82745),C=e(63418),v=e(46757),a=e(16981),P=e(46656),b=e(90852);const S=n.createContext(null);var t=e(61972),_=e(55095),I=e(48150),k=e(58196);const j=F=>{const{checkboxCls:B}=F,Y=B+"-wrapper";return[{[B+"-group"]:Object.assign(Object.assign({},(0,_.dF)(F)),{display:"inline-flex",flexWrap:"wrap",columnGap:F.marginXS,["> "+F.antCls+"-row"]:{flex:1}}),[Y]:Object.assign(Object.assign({},(0,_.dF)(F)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},["& + "+Y]:{marginInlineStart:0},["&"+Y+"-in-form-item"]:{'input[type="checkbox"]':{width:14,height:14}}}),[B]:Object.assign(Object.assign({},(0,_.dF)(F)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:F.borderRadiusSM,alignSelf:"center",[B+"-input"]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,["&:focus-visible + "+B+"-inner"]:Object.assign({},(0,_.jk)(F))},[B+"-inner"]:{boxSizing:"border-box",display:"block",width:F.checkboxSize,height:F.checkboxSize,direction:"ltr",backgroundColor:F.colorBgContainer,border:(0,t.zA)(F.lineWidth)+" "+F.lineType+" "+F.colorBorder,borderRadius:F.borderRadiusSM,borderCollapse:"separate",transition:"all "+F.motionDurationSlow,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:F.calc(F.checkboxSize).div(14).mul(5).equal(),height:F.calc(F.checkboxSize).div(14).mul(8).equal(),border:(0,t.zA)(F.lineWidthBold)+" solid "+F.colorWhite,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:"all "+F.motionDurationFast+" "+F.motionEaseInBack+", opacity "+F.motionDurationFast}},"& + span":{paddingInlineStart:F.paddingXS,paddingInlineEnd:F.paddingXS}})},{["\n "+Y+":not("+Y+"-disabled),\n "+B+":not("+B+"-disabled)\n "]:{["&:hover "+B+"-inner"]:{borderColor:F.colorPrimary}},[Y+":not("+Y+"-disabled)"]:{["&:hover "+B+"-checked:not("+B+"-disabled) "+B+"-inner"]:{backgroundColor:F.colorPrimaryHover,borderColor:"transparent"},["&:hover "+B+"-checked:not("+B+"-disabled):after"]:{borderColor:F.colorPrimaryHover}}},{[B+"-checked"]:{[B+"-inner"]:{backgroundColor:F.colorPrimary,borderColor:F.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:"all "+F.motionDurationMid+" "+F.motionEaseOutBack+" "+F.motionDurationFast}}},["\n "+Y+"-checked:not("+Y+"-disabled),\n "+B+"-checked:not("+B+"-disabled)\n "]:{["&:hover "+B+"-inner"]:{backgroundColor:F.colorPrimaryHover,borderColor:"transparent"}}},{[B]:{"&-indeterminate":{"&":{[B+"-inner"]:{backgroundColor:""+F.colorBgContainer,borderColor:""+F.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:F.calc(F.fontSizeLG).div(2).equal(),height:F.calc(F.fontSizeLG).div(2).equal(),backgroundColor:F.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},["&:hover "+B+"-inner"]:{backgroundColor:""+F.colorBgContainer,borderColor:""+F.colorPrimary}}}}},{[Y+"-disabled"]:{cursor:"not-allowed"},[B+"-disabled"]:{["&, "+B+"-input"]:{cursor:"not-allowed",pointerEvents:"none"},[B+"-inner"]:{background:F.colorBgContainerDisabled,borderColor:F.colorBorder,"&:after":{borderColor:F.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:F.colorTextDisabled},["&"+B+"-indeterminate "+B+"-inner::after"]:{background:F.colorTextDisabled}}}]};function z(F,B){const Y=(0,I.oX)(B,{checkboxCls:"."+F,checkboxSize:B.controlInteractiveSize});return[j(Y)]}const K=(0,k.OF)("Checkbox",(F,B)=>{let{prefixCls:Y}=B;return[z(Y,F)]});var $=e(23653);function A(F){const B=n.useRef(null),Y=()=>{$.A.cancel(B.current),B.current=null};return[()=>{Y(),B.current=(0,$.A)(()=>{B.current=null})},Z=>{B.current&&(Z.stopPropagation(),Y()),F==null||F(Z)}]}var E=function(F,B){var Y={};for(var X in F)Object.prototype.hasOwnProperty.call(F,X)&&B.indexOf(X)<0&&(Y[X]=F[X]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,X=Object.getOwnPropertySymbols(F);G<X.length;G++)B.indexOf(X[G])<0&&Object.prototype.propertyIsEnumerable.call(F,X[G])&&(Y[X[G]]=F[X[G]]);return Y};const U=(F,B)=>{var Y;const{prefixCls:X,className:G,rootClassName:Z,children:J,indeterminate:te=!1,style:he,onMouseEnter:de,onMouseLeave:Se,skipGroup:xe=!1,disabled:be}=F,ie=E(F,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:oe,direction:ue,checkbox:ve}=n.useContext(v.QO),re=n.useContext(S),{isFormItemInput:fe}=n.useContext(b.$W),we=n.useContext(a.A),Te=(Y=(re==null?void 0:re.disabled)||be)!==null&&Y!==void 0?Y:we,Ie=n.useRef(ie.value),le=n.useRef(null),me=(0,s.K4)(B,le);n.useEffect(()=>{re==null||re.registerValue(ie.value)},[]),n.useEffect(()=>{if(!xe)return ie.value!==Ie.current&&(re==null||re.cancelValue(Ie.current),re==null||re.registerValue(ie.value),Ie.current=ie.value),()=>re==null?void 0:re.cancelValue(ie.value)},[ie.value]),n.useEffect(()=>{var Ue;!((Ue=le.current)===null||Ue===void 0)&&Ue.input&&(le.current.input.indeterminate=te)},[te]);const Pe=oe("checkbox",X),pe=(0,P.A)(Pe),[ke,We,Ee]=K(Pe,pe),Ae=Object.assign({},ie);re&&!xe&&(Ae.onChange=function(){if(ie.onChange){for(var Ue=arguments.length,pt=new Array(Ue),Ye=0;Ye<Ue;Ye++)pt[Ye]=arguments[Ye];ie.onChange.apply(ie,pt)}re.toggleOption&&re.toggleOption({label:J,value:ie.value})},Ae.name=re.name,Ae.checked=re.value.includes(ie.value));const Ce=c()(Pe+"-wrapper",{[Pe+"-rtl"]:ue==="rtl",[Pe+"-wrapper-checked"]:Ae.checked,[Pe+"-wrapper-disabled"]:Te,[Pe+"-wrapper-in-form-item"]:fe},ve==null?void 0:ve.className,G,Z,Ee,pe,We),_e=c()({[Pe+"-indeterminate"]:te},C.D,We),[Ge,Xe]=A(Ae.onClick);return ke(n.createElement(l.A,{component:"Checkbox",disabled:Te},n.createElement("label",{className:Ce,style:Object.assign(Object.assign({},ve==null?void 0:ve.style),he),onMouseEnter:de,onMouseLeave:Se,onClick:Ge},n.createElement(p,Object.assign({},Ae,{onClick:Xe,prefixCls:Pe,className:_e,disabled:Te,ref:me})),J!=null&&n.createElement("span",{className:Pe+"-label"},J))))},H=n.forwardRef(U);var Q=e(63296),N=e(13199),L=function(F,B){var Y={};for(var X in F)Object.prototype.hasOwnProperty.call(F,X)&&B.indexOf(X)<0&&(Y[X]=F[X]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,X=Object.getOwnPropertySymbols(F);G<X.length;G++)B.indexOf(X[G])<0&&Object.prototype.propertyIsEnumerable.call(F,X[G])&&(Y[X[G]]=F[X[G]]);return Y};const M=n.forwardRef((F,B)=>{const{defaultValue:Y,children:X,options:G=[],prefixCls:Z,className:J,rootClassName:te,style:he,onChange:de}=F,Se=L(F,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:xe,direction:be}=n.useContext(v.QO),[ie,oe]=n.useState(Se.value||Y||[]),[ue,ve]=n.useState([]);n.useEffect(()=>{"value"in Se&&oe(Se.value||[])},[Se.value]);const re=n.useMemo(()=>G.map(_e=>typeof _e=="string"||typeof _e=="number"?{label:_e,value:_e}:_e),[G]),fe=_e=>{ve(Ge=>Ge.filter(Xe=>Xe!==_e))},we=_e=>{ve(Ge=>[].concat((0,Q.A)(Ge),[_e]))},Te=_e=>{const Ge=ie.indexOf(_e.value),Xe=(0,Q.A)(ie);Ge===-1?Xe.push(_e.value):Xe.splice(Ge,1),"value"in Se||oe(Xe),de==null||de(Xe.filter(Ue=>ue.includes(Ue)).sort((Ue,pt)=>{const Ye=re.findIndex(lt=>lt.value===Ue),Qe=re.findIndex(lt=>lt.value===pt);return Ye-Qe}))},Ie=xe("checkbox",Z),le=Ie+"-group",me=(0,P.A)(Ie),[Pe,pe,ke]=K(Ie,me),We=(0,N.A)(Se,["value","disabled"]),Ee=G.length?re.map(_e=>n.createElement(H,{prefixCls:Ie,key:_e.value.toString(),disabled:"disabled"in _e?_e.disabled:Se.disabled,value:_e.value,checked:ie.includes(_e.value),onChange:_e.onChange,className:c()(le+"-item",_e.className),style:_e.style,title:_e.title,id:_e.id,required:_e.required},_e.label)):X,Ae=n.useMemo(()=>({toggleOption:Te,value:ie,disabled:Se.disabled,name:Se.name,registerValue:we,cancelValue:fe}),[Te,ie,Se.disabled,Se.name,we,fe]),Ce=c()(le,{[le+"-rtl"]:be==="rtl"},J,te,ke,me,pe);return Pe(n.createElement("div",Object.assign({className:Ce,style:he},We,{ref:B}),n.createElement(S.Provider,{value:Ae},Ee)))}),D=H;D.Group=M,D.__ANT_CHECKBOX=!0;const W=D},99587:(Fe,ee,e)=>{"use strict";e.d(ee,{KF:()=>o,P2:()=>c,tR:()=>w,tl:()=>u});var n=e(12211),r=e(25997);const c=d=>d.editor.state.image.isEditingImageWrapperCid,o=d=>d.editor.state.image.currentImageClipSelected,w=d=>d.editor.state.image.currentImageOperateType,u=(0,n.Mz)([r.UV,c,r.RX],(d,y)=>y?y.split(",").map(i=>d.getHotItem(i)).filter(i=>!!i):null)},99917:(Fe,ee,e)=>{"use strict";e.d(ee,{Mg:()=>r,Pv:()=>c,Q7:()=>o,bl:()=>n});let n=function(w){return w.slicing="slicing",w.cutting="cutting",w.flipH="flipH",w.flipV="flipV",w}({}),r=function(w){return w.square="square",w.circular="circular",w}({}),c=function(w){return w.cross="cross",w.horizontal="horizontal",w.vertical="vertical",w}({}),o=function(w){return w.cutFrame="cutFrame",w.img="img",w}({})},99963:(Fe,ee,e)=>{"use strict";e.d(ee,{o:()=>y});var n=e(44115),r=e(30728),c=e(27480),o=e(61627),w=e(56907),u=e.n(w);let d;(function(h){function i(f,p){return u()(f.from.x,f.from.y,f.to.x,f.to.y,p.x,p.y)}h.distance=i})(d||(d={}));let y;(function(h){const i=h.identity={transform:n.s.identity,rect:c.rw.empty};function f(j,z){return{transform:z.transform.clone().prepend(j),rect:z.rect}}h.prepend=f;function p(j,z){return{transform:j.transform.clone().append(z),rect:j.rect}}h.concat=p;function s(j,z){const K=j.transform.applyInverse(z);return c.rw.contains(j.rect,K)}h.contains=s;function l(j,z){return C(z).every($=>s(j,$))}h.containTransformAndRect=l;function C(j){const{transform:z,rect:K}=j;return o.a.points(z.applyRect(K))}h.points=C;function v(j){const{transform:z,rect:K}=j;return z.applyRect(K)}h.toBoundingPoints=v;function a(j){return c.rw.enclosing(C(j))}h.axisAligned=a;function P(j,z,K){const $=y.toBoundingPoints(z);let A;switch(K){case"t":A=[$.tl,$.tr];break;case"r":A=[$.br,$.tr];break;case"l":A=[$.tl,$.bl];break;case"b":A=[$.bl,$.br];break}return b(j,A)}h.project2oneSide=P;function b(j,z){const K=r.Z.subtract(j,z[1]),$=r.Z.subtract(z[0],z[1]),A=$.x*$.x+$.y*$.y,E=new n.h($.x*$.x/A,$.x*$.y/A,$.x*$.y/A,$.y*$.y/A,0,0);return r.Z.add(E.applyWithoutXY(K),z[1])}h.projectOnePoint2Line=b;function g(j,z,K){const $=y.toBoundingPoints(z);switch(K){case"r":return $.br;case"l":return $.tl;case"b":return $.bl;case"t":return $.tl}}h.project2Line=g;function S(j,z,K,$){const A=o.a.sides(j.transform.applyRect(j.rect));let E=null,U=K;for(const[O,H]of Object.entries(A)){const Q=d.distance(H,z);Q<U&&(E=O,U=Q)}return $&&E!=="l"&&E!=="r"?null:E}h.nearSide=S;function t(j,z,K,$){if($)return null;let A=K,E=null;const U=j.transform.applyRect(j.rect);for(const[O,H]of Object.entries(U)){const Q=r.Z.distance(z,H);Q<A&&(E=O,A=Q)}return E}h.nearCorner=t;function _(j,z,K,$,A){const E=j.transform.applyInverse(z),U=c.rw.inCorner(K>=0?j.rect:c.rw.enlarge(j.rect,K),E);if(U!==null)if(A){if(U!=="l"&&U!=="r")return null;const O={};O.l=j.transform.apply(r.Z.average({x:j.rect.x,y:j.rect.y},{x:j.rect.x,y:j.rect.y+j.rect.h})),O.r=j.transform.apply(r.Z.average({x:j.rect.x+j.rect.w,y:j.rect.y},{x:j.rect.x+j.rect.w,y:j.rect.y+j.rect.h}));const H=r.Z.distance(z,O[U]);return H>K&&H<$?U:null}else{if(U==="l"||U==="r")return null;const O=j.transform.applyRect(j.rect),H=r.Z.distance(z,O[U]);return H>K&&H<$?U:null}else return null}h.nearRotateControlCorner=_;function I(j,z,K,$){let A=null;const E=[];for(const[U,O]of j)r.Z.distance(z,O)<=K&&(A=U,E.push({key:U}));if(E.length>1){let U=1/0;E.forEach(O=>{let{key:H}=O;const Q=r.Z.distance(z,$[H]);Q<U&&(A=H,U=Q)})}return A}h.nearPoints=I;function k(j,z,K){return r.Z.distance(j,z)<=K}h.nearPoint=k})(y||(y={}))}}]);
//# sourceMappingURL=4.ekpaa-vendor-bc4d0b88b3ac63067933.js.map