Files
ccdi/doc/other/纪检初核系统-离线演示包/mb-proto2/4.ekpaa-vendor-4a8c0d8af0989de4a89f.js

8 lines
2.4 MiB
JavaScript
Raw Normal View History

2026-01-27 17:09:32 +08:00
try{let He=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},ee=new He.Error().stack;ee&&(He._sentryDebugIds=He._sentryDebugIds||{},He._sentryDebugIds[ee]="e0a5f8a9-5802-4441-9eaa-06808b42d79c",He._sentryDebugIdIdentifier="sentry-dbid-e0a5f8a9-5802-4441-9eaa-06808b42d79c")}catch(He){}{let He=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};He.SENTRY_RELEASE={id:"22.14.4"}}(self.webpackChunk_mb2024_mb_proto=self.webpackChunk_mb2024_mb_proto||[]).push([[652],{34:(He,ee,e)=>{"use strict";e.d(ee,{BT:()=>c,YD:()=>o,gd:()=>r});var n=e(47695);function r(I){const u=document.querySelector(I);if(!u)return null;const{top:d,left:C,width:h,height:i}=u.getBoundingClientRect();return{x:C,y:d,width:h,height:i}}function c(I){return!I||(I==null?void 0:I.length)<1?[]:I.filter(u=>!!u).map(u=>new Promise((d,C)=>{const h=new Image;h.src=u,h.onload=()=>d(!0),h.onerror=()=>C(new Error("[NO SENTRY] failed with loading image "+u))}))}const o=I=>{var u,d;let{selectedCids:C,guideType:h,onCondition:i}=I;if(!((u=MB)!=null&&(u=u.user)!=null&&u.id)||(d=MB)!=null&&(d=d.commonGuideHelper)!=null&&d.checkGuideHasShown(h))return;const f=(0,n.yX)();if(f!=null&&f.isCompleted&&(C==null?void 0:C.length)===1){const s=sdkStore.getHotItem(C[0]);if(i(s.hotAttr)){var p;const l=(p=document)==null?void 0:p.querySelector('.group-list .tree-node[data-cid="'+s.key+'"]');if(!l)return;new Promise(_=>{l.classList.add(h),_()}).then(()=>{MB.commonGuideHelper.checkGuideHasShown(h)||MB.commonGuideHelper.tryToShowGuide(h)})}}}},175:(He,ee,e)=>{"use strict";e.d(ee,{On:()=>v,wm:()=>S,Z8:()=>t});var n=e(70422),r=e(4235),c=e(89002),o=e(39563),I=e(86594),u=e(51320),d=e(20089),C=e(43838),h=e(13235);const i={fontSize:"font-size",lineHeight:"line-height",textDecoration:"text-decoration",fontStyle:"font-style"},f=(w,k)=>{const W={};if(w){const{appearance:G,text:$}=w;if(G){const P=(0,I.Dy)(G,k.appearance),{background:E}=P;E&&(W.background=E[1])}if($){const P=(0,I.Dy)($,k.text);Object.entries(P).forEach(E=>{let[H,O]=E;["fontSize","lineHeight","padding"].includes(H)?W[i[H]||H]=O+"px":H==="boldType"?W["font-weight"]=O?"bold":"normal":H==="ha"?W["text-align"]=O:H==="va"?W["align-items"]=O:H==="textColor"?W.color=(0,h._o)(O):W[i[H]||H]=O})}}let K="";return Object.entries(W).forEach(G=>{let[$,P]=G;K+=$+":"+P+";"}),K};var p=e(40860),s=e(15776),l=e(33379),_=e(81717),b=e(67167),a=e(9680),M=e(66156),x=e(70248);const g=(w,k)=>w?k.find(W=>W.key===w.key):k.find(W=>{var K;return((K=W.hotAttr)==null?void 0:K.type)===d.x.WTable}),S=w=>{const k=w(),W=g((0,n.nh)(k),(0,r.nE)(k)),K=(0,n.zX)(k),G=(0,n.Eb)(k);return{widget:W,selectTableCellInfo:K,selectCopyInfo:G}},t={"entry:insert:top:row":(w,k)=>{let{getState:W}=w,{payload:{rowNumber:K}}=k;const{widget:G,selectTableCellInfo:$}=S(W);if(!G)return;const{selectionLeftTopInfo:{x:P,y:E},selectionRightBottomInfo:{x:H,y:O}}=$,V=(0,c.BG)(G,K,Number(E),!0);v(V),(0,s.Z)({widget:V,x1:P,y1:Number(E)+K,x2:H,y2:Number(O)+K}),(0,_.Wv)(K)},"entry:insert:bottom:row":(w,k)=>{let{getState:W}=w,{payload:{rowNumber:K}}=k;const{widget:G,selectTableCellInfo:$}=S(W);if(!G)return;const{selectionLeftTopInfo:{x:P,y:E},selectionRightBottomInfo:{x:H,y:O}}=$,V=(0,c.BG)(G,K,Number(O));v(V),(0,s.Z)({widget:V,x1:P,y1:E,x2:H,y2:O}),(0,_.Wv)(K)},"entry:table:delete:row":w=>{let{getState:k}=w;const{widget:W,selectTableCellInfo:K}=S(k);if(!W)return;const{selectionLeftTopInfo:{y:G,x:$},selectionRightBottomInfo:{y:P,x:E}}=K,H=P-G+1,{newWidget:O}=(0,c.CF)(W,G,H);if(!O)return;O.hotAttr.refVars=(0,a.F4)(O.hotAttr),v(O);const{maxY:V}=(0,p.II)(O.hotAttr);let Q=P;P>V&&(Q=V),(0,s.Z)({widget:O,x1:$,y1:Q,x2:E,y2:Q})},"entry:table:insert:left:column":(w,k)=>{let{getState:W}=w,{payload:{columnNumber:K}}=k;const{widget:G,selectTableCellInfo:$}=S(W);if(!G)return;const{selectionLeftTopInfo:{x:P,y:E},selectionRightBottomInfo:{x:H,y:O}}=$,V=(0,c.GF)(G,K,P,!0);v(V),(0,s.Z)({widget:V,x1:P+K,y1:E,x2:H+K,y2:O}),(0,_.qt)(K)},"entry:table:insert:right:column":(w,k)=>{let{getState:W}=w,{payload:{columnNumb
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/He.exports=function(n){return n!=null&&(ee(n)||e(n)||!!n._isBuffer)};function ee(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function e(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&ee(n.slice(0,0))}},10429:(He,ee,e)=>{"use strict";e.d(ee,{A:()=>x});var n=e(38502),r=e(53732),c=e.n(r),o=e(99402),I=e(32424),u=e(11032),d=e(95956),C=e(3862),h=e(2827),i=e(36050),f=e(85449),p=e(68863),s=e(4179),l=e(67787),_=e(41240);const b=l.Ay.li.withConfig({displayName:"styles__StyledIconItem",componentId:"sc-13dftct-0"})(["position:relative;display:flex;justify-content:center;align-items:center;width:100%;height:40px;font-size:16px;cursor:pointer;.library-icon-item{width:20px;height:20px;color:",";&.is_multi_color{width:24px;height:24px;}}",";.check{top:7px;left:7px;.ant-checkbox-wrapper:not(.ant-checkbox-wrapper-disabled):hover .ant-checkbox-inner{border-color:",";}.ant-checkbox-checked .ant-checkbox-inner,&.ant-checkbox-wrapper:not(.ant-checkbox-wrapper-disabled):hover .ant-checkbox-checked:not(.ant-checkbox-disabled) .ant-checkbox-inner{border-color:",";background:",";}}&:hover{background:",";.check{visibility:visible;}}&.checked{border:1px solid ",";outline:1px solid ",";.check{visibility:visible;}}&.is-click-active{opacity:0.5;}"],g=>g.theme.color_text_L2,_.GR,g=>g.theme.color_btn_primary_normal,g=>g.theme.color_btn_primary_normal,g=>g.theme.color_btn_primary_normal,g=>g.theme.color_btn_secondary_hover,g=>g.theme.color_btn_primary_normal,g=>g.theme.color_btn_primary_normal);var a=e(72214);const x=(0,n.memo)(g=>{const{index:S,icon:{id:t,cid:v,groupCid:w,view_box:k,path:W},icon:K,isMultiColorIcon:G,from:$,canChecked:P,checkedSet:E,createTemplatesData:H,style:O,onUpdateChecked:V,onSetCurrentNodeIcon:Q,setIcon:N,onMouseDown:L,onAddItem:U,onDoubleClick:A}=g,D=()=>{MB.notice({text:(0,a.jsxs)("p",{children:["You can ",(0,a.jsx)("a",{style:{color:"#fff"},onClick:()=>B(MB.currentOrg),children:"upgrade"})," to use premium templates."]}),showClose:!0,duration:0,isReactDom:!0})},B=()=>{if(ENV.IS_MO)D();else{const{checkoutPlace:ie,payEntrance:oe}=(0,u.FS)(C.C),he={mode:"mat",payEntrance:oe,checkoutArea:"proto",checkoutPlace:ie,templateCid:v||w,templateName:t,templateCategory:C.C};MB.global.popupHelper.chargeAsync(he)}},j=()=>{const{iconName:ie,iconDisplayName:oe}=(0,i.RU)(K);V&&V(K==null?void 0:K.id,{...K,isMultiColorIcon:G,iconName:ie,iconDisplayName:oe})},F=ie=>{if($==="icon-modal"||MB.global.experienceLoginModalHelper("isSave"))return;const{show:oe}=(0,u.K1)(G,MB.user);if(oe&&!ENV.IS_ON_PREMISES){if((0,f.jI)()){B();return}(0,h.z)()}if(Q){Q(K,G);return}const{iconName:he,iconDisplayName:ce}=(0,i.RU)(K);L&&L(ie,K,he,ce)},Y=ie=>{if(Z!=null&&Z.current)return;if($=="icon-modal"){var oe;if(ie.stopPropagation(),ie.preventDefault(),P&&((oe=E==null?void 0:E.size)!=null?oe:0)>0){j();return}}if(MB.global.experienceLoginModalHelper("isSave"))return;const{show:he}=(0,u.K1)(G,MB.user);if(he){if((0,f.jI)()){B();return}(0,h.z)()}if(Q){Q(K,G);return}const{iconName:ce,iconDisplayName:re}=(0,i.RU)(K);if(L){L({type:"click"},K,ce,re);return}U&&U(ie,K,ce,re,G)},X=ie=>{if($==="icon-modal"||MB.global.experienceLoginModalHelper("isSave"))return;const{show:oe}=(0,u.K1)(G,MB.user);if(oe){if((0,f.jI)()){B();return}(0,h.z)()}if(Q){Q(K,G);return}const{iconName:he,iconDisplayName:ce}=(0,i.RU)(K);A&&A({type:"dblclick"},K,he,ce)},z=ie=>{if(ie.stopPropagation(),!P)return;const oe=E==null?void 0:E.has(K==null?void 0:K.id);j(),!oe&&N&&N(K)},{isMoveAfterClick:Z,isDragging:J,handleMouseDown:te,handleClick:ge,handleDoubleClick:pe}=(0,s.A)({onMouseDown:F,onClick:Y,onDoubleClick:X}),Ce=(0,n.useMemo)(()=>{const ie=(0,p.F)(H);return J||(ie==null?void 0:ie._icon_id)===(K==null?void 0:K.id)},[H,K,J]),me=(0,n.useMemo)(()=>K.fill?{fill:K.fill}:K.stroke?{stroke:K.stroke}:{},[K]),be=(0,n.useMemo)(()=>{let ie=W;if(G){const oe=new DOMParser,he='<svg xmlns="http://www.w3.org/2000/svg">'+W+"</svg>",re=oe.parseFromString(he,"text/html").querySelector("svg"),fe={id:[],class:[]},Se=((K==null?void 0:K.cid)||(K==null?void
//# sourceMappingURL=4.ekpaa-vendor-4a8c0d8af0989de4a89f.js.map