try{let we=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},de=new we.Error().stack;de&&(we._sentryDebugIds=we._sentryDebugIds||{},we._sentryDebugIds[de]="e8eae85f-1c5d-4904-b73e-d334a0a8fbf7",we._sentryDebugIdIdentifier="sentry-dbid-e8eae85f-1c5d-4904-b73e-d334a0a8fbf7")}catch(we){}{let we=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};we.SENTRY_RELEASE={id:"20.13.2"}}(self.webpackChunk_mb2024_mb_proto=self.webpackChunk_mb2024_mb_proto||[]).push([[908],{93839:(we,de,n)=>{"use strict";n.d(de,{A:()=>H});var i=n(74059),f=n(51044),M=n(86634),p=n.n(M),E=n(87822),ee=n(57464);class H extends f.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"getClassName",()=>{const{className:w,type:q,size:W,corner:ae,disabled:Y}=this.props;return p()(w,"button-root",{["type-"+q]:q,["size-"+W]:W,["corner-"+ae]:ae,"is-disabled":Y})}),(0,i.A)(this,"onButtonClick",w=>{if(this.props.disabled){w.preventDefault();return}const{onClick:q}=this.props;q&&q(w)}),(0,i.A)(this,"onButtonMouseDown",w=>{if(this.props.disabled){w.preventDefault();return}const{onMouseDown:q}=this.props;q&&q(w)}),(0,i.A)(this,"getChildrenNode",()=>(0,ee.jsx)("span",{className:"btn-text",children:this.props.children}))}render(){const w=this.getClassName(),q=this.getChildrenNode();return(0,ee.jsx)(E.O,{className:w,onClick:this.onButtonClick,onMouseDown:this.onButtonMouseDown,children:(0,ee.jsx)("div",{className:"btn-icon-text-container",children:q})})}}(0,i.A)(H,"defaultProps",{type:"linear",disabled:!1,size:"common",corner:"smooth"})},15388:(we,de,n)=>{"use strict";n.d(de,{A:()=>w});var i=n(74059),f=n(51044),M=n(86634),p=n.n(M),E=n(57464);function ee(q){let{className:W,renderIconList:ae}=q;return(0,E.jsx)("span",{className:p()("btn-icon",W),children:ae.map((Y,J)=>(0,E.jsx)("span",{className:"btn-icon-container",children:(0,E.jsx)(E.Fragment,{children:Y})},J))})}const H=ee;var A=n(87822);class w extends f.PureComponent{constructor(W){super(W),(0,i.A)(this,"getClassName",()=>{const{className:ae,type:Y,size:J,corner:P,disabled:K,icon:V,children:l}=this.props;return p()(ae,"button-root",{["type-"+Y]:Y,["size-"+J]:J,["corner-"+P]:P,"is-disabled":K,"has-icon":V&&l,"only-icon":V&&l===void 0})}),(0,i.A)(this,"onButtonClick",ae=>{if(this.props.disabled){ae.preventDefault();return}const{onClick:Y}=this.props;Y&&Y(ae)}),(0,i.A)(this,"getIconNode",()=>(0,E.jsx)(H,{renderIconList:this.state.iconList,className:this.props.className})),(0,i.A)(this,"getChildrenNode",()=>(0,E.jsx)("span",{className:"btn-text",children:this.props.children})),this.state={iconList:this.props.icon?[this.props.icon]:[]}}componentDidUpdate(W){let{icon:ae}=W;const{icon:Y}=this.props;ae!==Y&&this.setState({iconList:Y?[this.props.icon]:[]})}render(){const W=this.getClassName(),ae=this.getIconNode(),Y=this.getChildrenNode();return(0,E.jsx)(A.O,{className:W,onClick:this.onButtonClick,children:(0,E.jsxs)("div",{className:p()("btn-icon-text-container"),children:[ae,Y]})})}}(0,i.A)(w,"defaultProps",{type:"linear",disabled:!1,size:"common",corner:"smooth"})},87822:(we,de,n)=>{"use strict";n.d(de,{O:()=>M});var i=n(21676),f=n(73542);const M=i.Ay.div.withConfig({displayName:"styles__StyledButton",componentId:"sc-166yiuz-0"})(["border-radius:6px;display:inline-block;justify-content:center;align-items:center;font-family:PingFang SC;font-size:14px;font-weight:500;line-height:18px;user-select:none;cursor:pointer;.btn-icon-text-container{display:flex;justify-content:center;align-items:center;}.btn-icon{display:flex;justify-content:center;align-items:center;.btn-icon-container{margin-right:4px;width:16px;height:16px;overflow:hidden;}}&[class*='is-disabled']{cursor:not-allowed;opacity:0.4;}&[class*='type-linear']{color:",";background:",";border:1px solid ",";&:hover:not([class*='is-disabled']){background:",";}&:active:not([class*='is-disabled']){background:",";}}&[class*='type-primary']{color:",";background:",";border:1px solid transparent;&:hover:not([class*='is-disabled']){background:",";}&:active:not([class*='is-disabled']){background:",";}}&[class*='type-secondary']{color:",";background:",";border:1px solid ",";&:hover:not([class*='is-disabled']){background:",";border:1px solid ",";}&:active:not([class*='is-disabled']){background:",";border:1px solid transparent;}}&[class*='type-link']{border:1px solid transparent;padding:0;color:",";&:hover:not([class*='is-disabled']){color:",";}&:active:not([class*='is-disabled']){color:",";}&.link-gray{color:",";&:hover{color:",";}&:active{color:",";}}}&[class*='type-danger']{background:",";color:",";border:1px solid transparent;&:hover:not([class*='is-disabled']){background:",";}&:active:not([class*='is-disabled']){background:",";}}&[class*='size-tiny']{padding:4px 8px;max-height:24px;font-size:12px;line-height:14px;.btn-icon-text-container{min-width:46px;}&[class*='type-link']{padding:0;}}&[class*='size-common']{padding:6px 12px;max-height:32px;.btn-icon-text-container{min-width:54px;}&[class*='type-link']{padding:0;}}&[class*='size-medium']{padding:6px 16px;max-height:32px;.btn-icon-text-container{min-width:60px;}&[class*='type-link']{padding:0;}}&[class*='size-large']{padding:8px 16px;max-height:36px;.btn-icon-text-container{min-width:76px;}&[class*='type-link']{padding:0;}.btn-icon-container{margin-right:6px;}}&[class*='corner-smooth']{border-radius:6px;}&[class*='corner-soft']{border-radius:4px;}&[class*='corner-round']{border-radius:calc(infinity * 1px);}&[class*='only-icon']{padding:0;border:none;background:transparent;.btn-icon-text-container{min-width:0;}.btn-icon-container{margin-right:0;svg > *{fill:",";}}&:hover:not([class*='is-disabled']){background:none;.btn-icon-container{svg > *{fill:",";}}}&:active:not([class*='is-disabled']){background:none;.btn-icon-container{svg > *{fill:",";}}}}"],f.q.color_text_L2,f.q.color_bg_normal,f.q.color_split_line,f.q.color_bg_btn_normal_hover,f.q.color_bg_btn_normal_active,f.q.color_text_white,f.q.color_btn_primary_normal,f.q.color_btn_primary_hover,f.q.color_btn_primary_click,f.q.color_text_L2,f.q.color_bg_secondary_btn,f.q.color_btn_secondary_border_normal,f.q.color_btn_secondary_hover,f.q.color_btn_secondary_border_hover,f.q.color_btn_secondary_click,f.q.color_btn_primary_normal,f.q.color_btn_primary_hover,f.q.color_btn_primary_click,f.q.color_text_L2,f.q.color_text_L3,f.q.color_text_L1,f.q.color_btn_danger_normal,f.q.color_text_white,f.q.color_btn_danger_hover,f.q.color_btn_danger_click,f.q.color_text_L2,f.q.color_text_L3,f.q.color_text_L1)},73542:(we,de,n)=>{"use strict";n.d(de,{q:()=>f});const i={common_white:"#FFFFFF",common_black:"#000000",primary_blue_01:"#126ACA",primary_blue_02:"#1684FC",primary_blue_03:"#459DFD",primary_blue_04:"#8AC1FD",primary_blue_05:"#B9DAFE",primary_blue_06:"#D0E6FE",primary_blue_07:"#E8F3FF",primary_blue_08:"#F5F8FD",primary_gray_01:"#35445D",primary_gray_02:"#5D6F8F",primary_gray_03:"#7D8CA5",primary_gray_04:"#9EA9BC",primary_gray_05:"#BEC5D2",primary_gray_06:"#D2D9E4",primary_gray_07:"#E1E6EF",primary_gray_08:"#F0F2F7",primary_gray_09:"#F3F5F9",primary_red_01:"#DD4747",primary_red_02:"#F85050",primary_red_03:"#F97373",primary_red_04:"#FDC2C2",primary_red_05:"#FEE5E5"},f={color_btn_primary_normal:i.primary_blue_02,color_btn_primary_hover:i.primary_blue_03,color_btn_primary_click:i.primary_blue_01,color_btn_primary_disable:i.primary_blue_05,color_btn_secondary_click:i.primary_blue_06,color_btn_secondary_normal:i.primary_blue_08,color_btn_secondary_hover:i.primary_blue_07,color_btn_outline_click:i.primary_gray_07,color_btn_outline_normal:i.common_white,color_btn_outline_hover:i.primary_gray_08,color_bg_normal:i.common_white,color_bg_card:i.primary_blue_08,color_bg_menu_click:i.primary_blue_06,color_bg_card_hover:i.primary_gray_07,color_bg_menu_hover:i.primary_blue_07,color_bg_input_hover:i.primary_gray_08,color_bg_input_normal:i.primary_gray_09,color_bg_item_gray:i.primary_gray_08,color_bg_item_hover:i.primary_gray_09,color_bg_fill_common_blue:i.primary_blue_02,color_bg_menu_drag_border:i.primary_blue_06,color_bg_card_hover_fusion_gray:i.primary_gray_06,color_bg_card_hover_fusion_blue:i.primary_blue_05,color_bg_card_hover_fusion:i.primary_gray_06,color_bg_secondary_btn:i.primary_blue_08,color_bg_btn_normal_hover:i.primary_gray_08,color_bg_btn_normal_active:i.primary_gray_07,color_bg_icon_gray:i.primary_gray_04,color_bg_icon_hover:i.primary_gray_03,color_text_L1:i.primary_gray_01,color_text_L2:i.primary_gray_02,color_text_L3:i.primary_gray_03,color_text_L4:i.primary_gray_04,color_text_L5:i.primary_blue_02,color_text_white:i.common_white,color_text_blue:i.primary_blue_02,color_text_blue_hover:i.primary_blue_01,color_text_blue_active:i.primary_blue_03,color_text_disable_01:i.primary_gray_05,color_tab_line:i.primary_gray_06,color_split_line:i.primary_gray_07,color_border_blue_common:i.primary_blue_02,color_btn_border_normal:i.primary_blue_05,color_btn_border_disable:i.primary_blue_07,color_btn_secondary_border_normal:i.primary_blue_06,color_btn_secondary_border_hover:i.primary_blue_07,color_btn_danger_normal:i.primary_red_02,color_btn_danger_hover:i.primary_red_03,color_btn_danger_click:i.primary_red_01,color_btn_danger_disable:i.primary_red_04,color_bg_modal_item_header:i.primary_gray_09,color_bg_light_red:i.primary_red_05,color_alarm_common:i.primary_red_02}},56511:(we,de,n)=>{"use strict";n.d(de,{N:()=>M,l:()=>p});var i=n(85782),f=n(35236);const M=async(E,ee,H)=>{const[A,w]=await(0,i.Vz)(f.r,E),q="/flpak/w-paknewft?"+new URLSearchParams({upperType:"project-basic",type:"proto2",teamCid:ee,treLen:String(w.byteLength),treRawLen:String(A)}),W=await fetch(q,{method:"POST",body:w,headers:{"mb-client-opt":encodeURIComponent(JSON.stringify(H))}});if(!W.ok)throw Object.assign(new Error("failed to create new flpak: "+q),{message:await W.text(),status:W.status});return W.json()},p=async(E,ee,H)=>{const[A,w]=await(0,i.Vz)(f.r,E),q="/flpak/w-pakfcgmkt?"+new URLSearchParams({upperType:"combo-group",upperAction:"create-reviewable-project",type:"proto2",teamCid:ee,treLen:String(w.byteLength),treRawLen:String(A)}),W=await fetch(q,{method:"POST",body:w,headers:{"mb-client-opt":encodeURIComponent(JSON.stringify(H))}});if(!W.ok)throw Object.assign(new Error("failed to create new fcgmkt: "+q),{message:await W.text(),status:W.status});return W.json()}},81811:(we,de,n)=>{"use strict";n.d(de,{pX:()=>Ws,O3:()=>Eo,ur:()=>Vs});var i={};if(n.r(i),n.d(i,{Decoder:()=>Xn,Encoder:()=>Js,PacketType:()=>pt,protocol:()=>Qs}),n.j!=15)var f=n(62427);if(n.j!=15)var M=n(99478);const p=Object.create(null);p.open="0",p.close="1",p.ping="2",p.pong="3",p.message="4",p.upgrade="5",p.noop="6";const E=Object.create(null);Object.keys(p).forEach(a=>{E[p[a]]=a});const ee={type:"error",data:"parser error"},H=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",A=typeof ArrayBuffer=="function",w=a=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(a):a&&a.buffer instanceof ArrayBuffer,q=(a,t,o)=>{let{type:h,data:O}=a;return H&&O instanceof Blob?t?o(O):W(O,o):A&&(O instanceof ArrayBuffer||w(O))?t?o(O):W(new Blob([O]),o):o(p[h]+(O||""))},W=(a,t)=>{const o=new FileReader;return o.onload=function(){const h=o.result.split(",")[1];t("b"+(h||""))},o.readAsDataURL(a)};function ae(a){return a instanceof Uint8Array?a:a instanceof ArrayBuffer?new Uint8Array(a):new Uint8Array(a.buffer,a.byteOffset,a.byteLength)}let Y;function J(a,t){if(H&&a.data instanceof Blob)return a.data.arrayBuffer().then(ae).then(t);if(A&&(a.data instanceof ArrayBuffer||w(a.data)))return t(ae(a.data));q(a,!1,o=>{Y||(Y=new TextEncoder),t(Y.encode(o))})}const P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",K=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let a=0;a
{let t=new Uint8Array(a),o,h=t.length,O="";for(o=0;o>2],O+=P[(t[o]&3)<<4|t[o+1]>>4],O+=P[(t[o+1]&15)<<2|t[o+2]>>6],O+=P[t[o+2]&63];return h%3===2?O=O.substring(0,O.length-1)+"=":h%3===1&&(O=O.substring(0,O.length-2)+"=="),O},l=a=>{let t=a.length*.75,o=a.length,h,O=0,ce,Ne,Ie,ke;a[a.length-1]==="="&&(t--,a[a.length-2]==="="&&t--);const Re=new ArrayBuffer(t),Pe=new Uint8Array(Re);for(h=0;h>4,Pe[O++]=(Ne&15)<<4|Ie>>2,Pe[O++]=(Ie&3)<<6|ke&63;return Re},C=typeof ArrayBuffer=="function",b=(a,t)=>{if(typeof a!="string")return{type:"message",data:d(a,t)};const o=a.charAt(0);return o==="b"?{type:"message",data:x(a.substring(1),t)}:E[o]?a.length>1?{type:E[o],data:a.substring(1)}:{type:E[o]}:ee},x=(a,t)=>{if(C){const o=l(a);return d(o,t)}else return{base64:!0,data:a}},d=(a,t)=>{switch(t){case"blob":return a instanceof Blob?a:new Blob([a]);case"arraybuffer":default:return a instanceof ArrayBuffer?a:a.buffer}},g="",y=(a,t)=>{const o=a.length,h=new Array(o);let O=0;a.forEach((ce,Ne)=>{q(ce,!1,Ie=>{h[Ne]=Ie,++O===o&&t(h.join(g))})})},N=(a,t)=>{const o=a.split(g),h=[];for(let O=0;O{const h=o.length;let O;if(h<126)O=new Uint8Array(1),new DataView(O.buffer).setUint8(0,h);else if(h<65536){O=new Uint8Array(3);const ce=new DataView(O.buffer);ce.setUint8(0,126),ce.setUint16(1,h)}else{O=new Uint8Array(9);const ce=new DataView(O.buffer);ce.setUint8(0,127),ce.setBigUint64(1,BigInt(h))}a.data&&typeof a.data!="string"&&(O[0]|=128),t.enqueue(O),t.enqueue(o)})}})}let S;function B(a){return a.reduce((t,o)=>t+o.length,0)}function U(a,t){if(a[0].length===t)return a.shift();const o=new Uint8Array(t);let h=0;for(let O=0;OMath.pow(2,21)-1){Ie.enqueue(ee);break}O=Pe*Math.pow(2,32)+Re.getUint32(4),h=3}else{if(B(o)a){Ie.enqueue(ee);break}}}})}const L=4;function F(a){if(a)return X(a)}function X(a){for(var t in F.prototype)a[t]=F.prototype[t];return a}F.prototype.on=F.prototype.addEventListener=function(a,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+a]=this._callbacks["$"+a]||[]).push(t),this},F.prototype.once=function(a,t){function o(){this.off(a,o),t.apply(this,arguments)}return o.fn=t,this.on(a,o),this},F.prototype.off=F.prototype.removeListener=F.prototype.removeAllListeners=F.prototype.removeEventListener=function(a,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var o=this._callbacks["$"+a];if(!o)return this;if(arguments.length==1)return delete this._callbacks["$"+a],this;for(var h,O=0;O1?t-1:0),h=1;h(a.hasOwnProperty(ce)&&(O[ce]=a[ce]),O),{})}const xe=le.setTimeout,Ee=le.clearTimeout;function Oe(a,t){t.useNativeTimers?(a.setTimeoutFn=xe.bind(le),a.clearTimeoutFn=Ee.bind(le)):(a.setTimeoutFn=le.setTimeout.bind(le),a.clearTimeoutFn=le.clearTimeout.bind(le))}const Be=1.33;function Ue(a){return typeof a=="string"?Ve(a):Math.ceil((a.byteLength||a.size)*Be)}function Ve(a){let t=0,o=0;for(let h=0,O=a.length;h=57344?o+=3:(h++,o+=4);return o}function Ye(a){let t="";for(let o in a)a.hasOwnProperty(o)&&(t.length&&(t+="&"),t+=encodeURIComponent(o)+"="+encodeURIComponent(a[o]));return t}function ve(a){let t={},o=a.split("&");for(let h=0,O=o.length;h0);return t}function qe(a){let t=0;for(s=0;s{this.readyState="paused",t()};if(this.polling||!this.writable){let h=0;this.polling&&(h++,this.once("pollComplete",function(){--h||o()})),this.writable||(h++,this.once("drain",function(){--h||o()}))}else o()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const o=h=>{if(this.readyState==="opening"&&h.type==="open"&&this.onOpen(),h.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(h)};N(t,this.socket.binaryType).forEach(o),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,y(t,o=>{this.doWrite(o,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",o=this.query||{};return this.opts.timestampRequests!==!1&&(o[this.opts.timestampParam]=dt()),!this.supportsBinary&&!o.sid&&(o.b64=1),this.createUri(t,o)}request(t){return t===void 0&&(t={}),Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new bt(this.uri(),t)}doWrite(t,o){const h=this.request({method:"POST",data:t});h.on("success",o),h.on("error",(O,ce)=>{this.onError("xhr post error",O,ce)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(o,h)=>{this.onError("xhr poll error",o,h)}),this.pollXhr=t}}class bt extends F{constructor(t,o){super(),Oe(this,o),this.opts=o,this.method=o.method||"GET",this.uri=t,this.data=o.data!==void 0?o.data:null,this.create()}create(){var t;const o=oe(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");o.xdomain=!!this.opts.xd;const h=this.xhr=new ft(o);try{h.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){h.setDisableHeaderCheck&&h.setDisableHeaderCheck(!0);for(let O in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(O)&&h.setRequestHeader(O,this.opts.extraHeaders[O])}}catch(O){}if(this.method==="POST")try{h.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(O){}try{h.setRequestHeader("Accept","*/*")}catch(O){}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(h),"withCredentials"in h&&(h.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(h.timeout=this.opts.requestTimeout),h.onreadystatechange=()=>{var O;h.readyState===3&&((O=this.opts.cookieJar)===null||O===void 0||O.parseCookies(h)),h.readyState===4&&(h.status===200||h.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof h.status=="number"?h.status:0)},0))},h.send(this.data)}catch(O){this.setTimeoutFn(()=>{this.onError(O)},0);return}typeof document<"u"&&(this.index=bt.requestsCount++,bt.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Mt,t)try{this.xhr.abort()}catch(o){}typeof document<"u"&&delete bt.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(bt.requestsCount=0,bt.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Wt);else if(typeof addEventListener=="function"){const a="onpagehide"in le?"pagehide":"unload";addEventListener(a,Wt,!1)}}function Wt(){for(let a in bt.requests)bt.requests.hasOwnProperty(a)&&bt.requests[a].abort()}const en=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,o)=>o(t,0),Dt=le.WebSocket||le.MozWebSocket,Vt=!0,Yt="arraybuffer",Gt=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Tn extends ${constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),o=this.opts.protocols,h=Gt?{}:oe(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(h.headers=this.opts.extraHeaders);try{this.ws=Vt&&!Gt?o?new Dt(t,o):new Dt(t):new Dt(t,o,h)}catch(O){return this.emitReserved("error",O)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let o=0;o{const Ne={};Vt||(h.options&&(Ne.compress=h.options.compress),this.opts.perMessageDeflate&&(typeof ce=="string"?Buffer.byteLength(ce):ce.length){this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",o=this.query||{};return this.opts.timestampRequests&&(o[this.opts.timestampParam]=dt()),this.supportsBinary||(o.b64=1),this.createUri(t,o)}check(){return!!Dt}}class jn extends ${get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const o=ie(Number.MAX_SAFE_INTEGER,this.socket.binaryType),h=t.readable.pipeThrough(o).getReader(),O=R();O.readable.pipeTo(t.writable),this.writer=O.writable.getWriter();const ce=()=>{h.read().then(Ie=>{let{done:ke,value:Re}=Ie;ke||(this.onPacket(Re),ce())}).catch(Ie=>{})};ce();const Ne={type:"open"};this.query.sid&&(Ne.data='{"sid":"'+this.query.sid+'"}'),this.writer.write(Ne).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let o=0;o{O&&en(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const It={websocket:Tn,webtransport:jn,polling:Bt},hn=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ln=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Cn(a){if(a.length>2e3)throw"URI too long";const t=a,o=a.indexOf("["),h=a.indexOf("]");o!=-1&&h!=-1&&(a=a.substring(0,o)+a.substring(o,h).replace(/:/g,";")+a.substring(h,a.length));let O=hn.exec(a||""),ce={},Ne=14;for(;Ne--;)ce[ln[Ne]]=O[Ne]||"";return o!=-1&&h!=-1&&(ce.source=t,ce.host=ce.host.substring(1,ce.host.length-1).replace(/;/g,":"),ce.authority=ce.authority.replace("[","").replace("]","").replace(/;/g,":"),ce.ipv6uri=!0),ce.pathNames=An(ce,ce.path),ce.queryKey=mn(ce,ce.query),ce}function An(a,t){const o=/\/{2,9}/g,h=t.replace(o,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&h.splice(0,1),t.slice(-1)=="/"&&h.splice(h.length-1,1),h}function mn(a,t){const o={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(h,O,ce){O&&(o[O]=ce)}),o}class cn extends F{constructor(t,o){o===void 0&&(o={}),super(),this.binaryType=Yt,this.writeBuffer=[],t&&typeof t=="object"&&(o=t,t=null),t?(t=Cn(t),o.hostname=t.host,o.secure=t.protocol==="https"||t.protocol==="wss",o.port=t.port,t.query&&(o.query=t.query)):o.host&&(o.hostname=Cn(o.host).host),Oe(this,o),this.secure=o.secure!=null?o.secure:typeof location<"u"&&location.protocol==="https:",o.hostname&&!o.port&&(o.port=this.secure?"443":"80"),this.hostname=o.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=o.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=o.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},o),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=ve(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const o=Object.assign({},this.opts.query);o.EIO=L,o.transport=t,this.id&&(o.sid=this.id);const h=Object.assign({},this.opts,{query:o,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new It[t](h)}open(){let t;if(this.opts.rememberUpgrade&&cn.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch(o){this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",o=>this.onClose("transport close",o))}probe(t){let o=this.createTransport(t),h=!1;cn.priorWebsocketSuccess=!1;const O=()=>{h||(o.send([{type:"ping",data:"probe"}]),o.once("packet",Ze=>{if(!h)if(Ze.type==="pong"&&Ze.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",o),!o)return;cn.priorWebsocketSuccess=o.name==="websocket",this.transport.pause(()=>{h||this.readyState!=="closed"&&(Pe(),this.setTransport(o),o.send([{type:"upgrade"}]),this.emitReserved("upgrade",o),o=null,this.upgrading=!1,this.flush())})}else{const be=new Error("probe error");be.transport=o.name,this.emitReserved("upgradeError",be)}}))};function ce(){h||(h=!0,Pe(),o.close(),o=null)}const Ne=Ze=>{const be=new Error("probe error: "+Ze);be.transport=o.name,ce(),this.emitReserved("upgradeError",be)};function Ie(){Ne("transport closed")}function ke(){Ne("socket closed")}function Re(Ze){o&&Ze.name!==o.name&&ce()}const Pe=()=>{o.removeListener("open",O),o.removeListener("error",Ne),o.removeListener("close",Ie),this.off("close",ke),this.off("upgrading",Re)};o.once("open",O),o.once("error",Ne),o.once("close",Ie),this.once("close",ke),this.once("upgrading",Re),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{h||o.open()},200):o.open()}onOpen(){if(this.readyState="open",cn.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const o=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let o=1;for(let h=0;h0&&o>this.maxPayload)return this.writeBuffer.slice(0,h);o+=2}return this.writeBuffer}write(t,o,h){return this.sendPacket("message",t,o,h),this}send(t,o,h){return this.sendPacket("message",t,o,h),this}sendPacket(t,o,h,O){if(typeof o=="function"&&(O=o,o=void 0),typeof h=="function"&&(O=h,h=null),this.readyState==="closing"||this.readyState==="closed")return;h=h||{},h.compress=h.compress!==!1;const ce={type:t,data:o,options:h};this.emitReserved("packetCreate",ce),this.writeBuffer.push(ce),O&&this.once("flush",O),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},o=()=>{this.off("upgrade",o),this.off("upgradeError",o),t()},h=()=>{this.once("upgrade",o),this.once("upgradeError",o)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?h():t()}):this.upgrading?h():t()),this}onError(t){cn.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,o){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,o),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const o=[];let h=0;const O=t.length;for(;htypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(a):a.buffer instanceof ArrayBuffer,On=Object.prototype.toString,$s=typeof Blob=="function"||typeof Blob<"u"&&On.call(Blob)==="[object BlobConstructor]",Ys=typeof File=="function"||typeof File<"u"&&On.call(File)==="[object FileConstructor]";function gn(a){return Yn&&(a instanceof ArrayBuffer||dn(a))||$s&&a instanceof Blob||Ys&&a instanceof File}function fn(a,t){if(!a||typeof a!="object")return!1;if(Array.isArray(a)){for(let o=0,h=a.length;o=0&&a.num1?o-1:0),O=1;O{delete this.acks[t];for(let ke=0;ke1?o-1:0),O=1;O{const Ie=(ke,Re)=>ke?Ne(ke):ce(Re);Ie.withError=!0,h.push(Ie),this.emit(t,...h)})}_addToQueue(t){var o=this;let h;typeof t[t.length-1]=="function"&&(h=t.pop());const O={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push(function(ce){if(O!==o._queue[0])return;if(ce!==null)O.tryCount>o._opts.retries&&(o._queue.shift(),h&&h(ce));else if(o._queue.shift(),h){for(var Ie=arguments.length,ke=new Array(Ie>1?Ie-1:0),Re=1;Re{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:pt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,o){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,o),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(h=>String(h.id)===t)){const h=this.acks[t];delete this.acks[t],h.withError&&h.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case pt.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case pt.EVENT:case pt.BINARY_EVENT:this.onevent(t);break;case pt.ACK:case pt.BINARY_ACK:this.onack(t);break;case pt.DISCONNECT:this.ondisconnect();break;case pt.CONNECT_ERROR:this.destroy();const h=new Error(t.data.message);h.data=t.data.data,this.emitReserved("connect_error",h);break}}onevent(t){const o=t.data||[];t.id!=null&&o.push(this.ack(t.id)),this.connected?this.emitEvent(o):this.receiveBuffer.push(Object.freeze(o))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const o=this._anyListeners.slice();for(const h of o)h.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const o=this;let h=!1;return function(){if(!h){h=!0;for(var O=arguments.length,ce=new Array(O),Ne=0;Nethis.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:pt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const o=this._anyListeners;for(let h=0;h0&&a.jitter<=1?a.jitter:0,this.attempts=0}Mn.prototype.duration=function(){var a=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),o=Math.floor(t*this.jitter*a);a=Math.floor(t*10)&1?a+o:a-o}return Math.min(a,this.max)|0},Mn.prototype.reset=function(){this.attempts=0},Mn.prototype.setMin=function(a){this.ms=a},Mn.prototype.setMax=function(a){this.max=a},Mn.prototype.setJitter=function(a){this.jitter=a};class En extends F{constructor(t,o){var h;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(o=t,t=void 0),o=o||{},o.path=o.path||"/socket.io",this.opts=o,Oe(this,o),this.reconnection(o.reconnection!==!1),this.reconnectionAttempts(o.reconnectionAttempts||1/0),this.reconnectionDelay(o.reconnectionDelay||1e3),this.reconnectionDelayMax(o.reconnectionDelayMax||5e3),this.randomizationFactor((h=o.randomizationFactor)!==null&&h!==void 0?h:.5),this.backoff=new Mn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(o.timeout==null?2e4:o.timeout),this._readyState="closed",this.uri=t;const O=o.parser||i;this.encoder=new O.Encoder,this.decoder=new O.Decoder,this._autoConnect=o.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var o;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(o=this.backoff)===null||o===void 0||o.setMin(t),this)}randomizationFactor(t){var o;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(o=this.backoff)===null||o===void 0||o.setJitter(t),this)}reconnectionDelayMax(t){var o;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(o=this.backoff)===null||o===void 0||o.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new cn(this.uri,this.opts);const o=this.engine,h=this;this._readyState="opening",this.skipReconnect=!1;const O=Nt(o,"open",function(){h.onopen(),t&&t()}),ce=Ie=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",Ie),t?t(Ie):this.maybeReconnectOnOpen()},Ne=Nt(o,"error",ce);if(this._timeout!==!1){const Ie=this._timeout,ke=this.setTimeoutFn(()=>{O(),ce(new Error("timeout")),o.close()},Ie);this.opts.autoUnref&&ke.unref(),this.subs.push(()=>{this.clearTimeoutFn(ke)})}return this.subs.push(O),this.subs.push(Ne),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Nt(t,"ping",this.onping.bind(this)),Nt(t,"data",this.ondata.bind(this)),Nt(t,"error",this.onerror.bind(this)),Nt(t,"close",this.onclose.bind(this)),Nt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(o){this.onclose("parse error",o)}}ondecoded(t){en(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,o){let h=this.nsps[t];return h?this._autoConnect&&!h.active&&h.connect():(h=new qn(this,t,o),this.nsps[t]=h),h}_destroy(t){const o=Object.keys(this.nsps);for(const h of o)if(this.nsps[h].active)return;this._close()}_packet(t){const o=this.encoder.encode(t);for(let h=0;ht()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,o){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,o),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const o=this.backoff.duration();this._reconnecting=!0;const h=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(O=>{O?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",O)):t.onreconnect()}))},o);this.opts.autoUnref&&h.unref(),this.subs.push(()=>{this.clearTimeoutFn(h)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const xn={};function es(a,t){typeof a=="object"&&(t=a,a=void 0),t=t||{};const o=$n(a,t.path||"/socket.io"),h=o.source,O=o.id,ce=o.path,Ne=xn[O]&&ce in xn[O].nsps,Ie=t.forceNew||t["force new connection"]||t.multiplex===!1||Ne;let ke;return Ie?ke=new En(h,t):(xn[O]||(xn[O]=new En(h,t)),ke=xn[O]),o.query&&!t.query&&(t.query=o.queryKey),ke.socket(o.path,t)}if(Object.assign(es,{Manager:En,Socket:qn,io:es,connect:es}),n.j!=15)var bs=n(5904);if(n.j!=15)var Tt=n(17255);if(n.j!=15)var un=n(33386);if(n.j!=15)var Xs=n(99681);const ts=n.j!=15?2*1e3:null,Nn=n.j!=15?24*1e3:null,vs=n.j!=15?48*1e3:null,Pn=()=>{},ns=()=>({destroy:Pn,reset:Pn,emitAsync:_s,emitLossy:Pn,getIsConnected:()=>!0,getSocketId:()=>"",getReadyPromise:()=>Promise.resolve(),getOffsetMsec:()=>0,DUMMY:!0}),_s=async(a,t)=>({type:a,payload:t,isDummy:!0}),Ss=a=>{let{query:{uId:t,fURL:o=globalThis.location.href.slice(0,128),uTag:h=Tt.CH,vTag:O=Xs.r,rKey:ce},lossyListenerMap:Ne={},queueListenerMap:Ie={},socketUrl:ke=globalThis.location.origin,socketPath:Re=Tt.$r,usePolling:Pe=!1}=a;if(!t||!ce)throw new Error("SKT bad query");const Ze=(0,bs.I6)();let be,_e=(0,f.wT)(),De=0,Ke=null;const ot=()=>{be!==void 0&&(be.close(),be=void 0,_e=(0,f.wT)(),gt=!1,Ke&&clearTimeout(Ke),Ke=null)},St=()=>{ot();const et=new En(ke,{path:Re,query:{uId:t,fURL:o,uTag:h,vTag:O,rKey:ce},transports:Pe?["polling","websocket"]:["websocket"],timeout:vs,reconnectionDelay:Math.round((ts+Nn)/2),reconnectionDelayMax:vs,randomizationFactor:(Nn-ts)/(Nn+ts),closeOnBeforeunload:!1}).socket(Tt.I4);et.on("connect_error",Fe=>{console.log("[socket] connect_error",Fe),Fe.message.includes(Tt.uB)&&(ot(),Ze.dispatchEvent({type:Tt.VU,payload:{error:Fe}})),Ze.dispatchEvent({type:Tt.Ei,payload:{error:Fe}})}),et.on("connect",async()=>{console.log("[socket] connect");{const Fe=Date.now(),Je=await(0,f.hq)(zt(Tt.Ip),10*1e3,Tt.Ip).catch(async it=>{throw(0,M.et)(St,2*1e3),console.warn(Tt.Ip,it),_e.reject(it),it}),Ge=Date.now();De=Je-(Fe+Ge)*.5}Ke=(0,M.et)(()=>{!be||!be.connected||gt||St()},(1+Math.random())*30*60*1e3),console.log("[socket] ready"),Ze.dispatchEvent({type:Tt.zS}),_e.resolve()});{let Fe=Promise.resolve();const Je=(Ge,it)=>{const rt=Fe.then(Ge);return Fe=rt.then(Pn,Ut=>{(0,un.p)("SKT-QA-"+it,Ut)}),rt};Ze.clear();for(const[Ge,it]of Object.entries(Ne))et.on(Ge,rt=>it({type:Ge,payload:rt})),Ze.addEventListener(Ge,rt=>{let{payload:Ut}=rt;return it({type:Ge,payload:Ut})});for(const[Ge,it]of Object.entries(Ie))et.on(Ge,rt=>Je(()=>it({type:Ge,payload:rt}),Ge)),Ze.addEventListener(Ge,rt=>{let{payload:Ut}=rt;return Je(()=>it({type:Ge,payload:Ut}),Ge)})}be=et};let gt=!1;const zt=async(Kt,et)=>{gt=!0;const{error:Fe,result:Je}=await(0,f.hq)(new Promise(Ge=>be.emit(Kt,et,Ge)),42*1e3,"SKT-USR "+Kt).finally(()=>{gt=!1});if(Fe!==void 0)throw Object.assign(new Error(typeof Fe=="object"&&Fe.message||"SKT-USR "+Kt),Fe);return Je},vt=(Kt,et)=>{be.volatile.emit(Kt,et)};return St(),{destroy:ot,reset:St,emitAsync:zt,emitLossy:vt,getIsConnected:()=>be&&be.connected||!1,getSocketId:()=>be&&be.id||"",getReadyPromise:()=>_e.promise,getOffsetMsec:()=>De}};var bn=n(77885),Qt=n(96828),ws=n(78463),jt=n(83053);if(n.j!=15)var _t=n(833);if(n.j!=15)var Ft=n(60307);var vn=n(49950);const Dn=0,qs={cDebugMin:Dn,cCmtPack:Dn+1,cCmtThread:Dn+2,cCmtContent:Dn+3,cDebugMax:35},In=(0,vn.W)("cmt-type",qs),ss=In.pack("cCmtPack"),Cs=In.pack("cCmtThread"),Ms=In.pack("cCmtContent"),Ro=new Set(["cCmtPack","cCmtThread","cCmtContent"]),Bo=new Set([ss,Cs,Ms]);if(n.j!=15)var os=n(45043);const Ns={unstyled:0,"header-one":1,"header-two":2,"header-three":3,"ordered-list-item":4,"unordered-list-item":5,atomic:6},Is=(0,vn.W)("DraftBlockType",Ns),eo={left:0,center:1,right:2,justify:3},Rn=(0,vn.W)("DraftAlignment",eo),js={LINK:0,IMAGE:1},is=(0,vn.W)("DraftEntityMapType",js),to={MUTABLE:0,IMMUTABLE:1,SEGMENTED:2},nn=(0,vn.W)("DraftEntityMapMutability",to),no={_blank:0,_self:1},ht=(0,vn.W)("DraftLinkTargetOption",no),so=a=>{const t={};return Object.keys(a).forEach(o=>{const{type:h,mutability:O,data:ce}=a[o],Ne=[is.pack(h),nn.pack(O)],Ie=[];h==="LINK"?(Ne.push(ht.pack(ce.targetOption)),Ie.push(ce.url||"")):h==="IMAGE"&&(Ne.push((0,_t.c5)(ce.width),Rn.pack(ce.alignment)),Ie.push(ce.src||"",ce.alt||"")),t["e/"+o]=[Ne.join(Ft.xi),...Ie]}),t},rs=a=>{const t={};for(const o of Object.keys(a)){if(!o.startsWith("e/"))continue;const h=o.split("e/")[1],[O,...ce]=a[o],[Ne,Ie,ke,Re]=O.split(Ft.xi),Pe=is.parse(Ne),Ze=nn.parse(Ie);t[h]=Pe==="LINK"?{type:Pe,mutability:Ze,data:{url:ce[0],targetOption:ht.parse(ke)}}:{type:Pe,mutability:Ze,data:{src:ce[0],alt:ce[1],width:(0,_t._3)(ke),alignment:Rn.parse(Re)}}}return t},oo=a=>{const t={};return Object.keys(a).forEach(o=>{const{text:h,type:O,depth:ce,inlineStyleRanges:Ne,entityRanges:Ie,data:{textAlign:ke,textIndent:Re,paraSpacing:Pe}}=a[o],Ze=[Is.packDef(O,"unstyled"),(0,_t.c5)(ce),ke?Rn.pack(ke):"",Re!==void 0?(0,_t.c5)(Re):"",Pe!==void 0?(0,jt.ZI)(Pe):""];t["b/"+o]=[Ze.join(Ft.xi),h,Ne.map(be=>{let{offset:_e,length:De,style:Ke}=be;return ro(_e,De,Ke)}),Ie.map(be=>{let{offset:_e,length:De,key:Ke}=be;return io(_e,De,Ke)})]}),t},io=(a,t,o)=>""+(0,_t.c5)(a)+Ft.xi+(0,_t.c5)(t)+Ft.xi+(0,_t.c5)(o),Es=a=>{const t=a.indexOf(Ft.xi),o=a.indexOf(Ft.xi,t+1);return[(0,_t._3)(a.slice(0,t)),(0,_t._3)(a.slice(t+1,o)),(0,_t._3)(a.slice(o+1))]},ro=(a,t,o)=>""+(0,_t.c5)(a)+Ft.xi+(0,_t.c5)(t)+Ft.xi+o,ks=a=>{const t=a.indexOf(Ft.xi),o=a.indexOf(Ft.xi,t+1);return[(0,_t._3)(a.slice(0,t)),(0,_t._3)(a.slice(t+1,o)),a.slice(o+1)]},Ls=a=>{const t={};for(const o of Object.keys(a)){if(!o.startsWith("b/"))continue;const h=o.split("b/")[1],[O,ce,Ne,Ie]=a[o],[ke,Re,Pe,Ze,be]=O.split(Ft.xi),_e={};Pe!==""&&(_e.textAlign=Rn.parse(Pe)),Ze!==""&&(_e.textIndent=(0,_t._3)(Ze)),be!==""&&be!==void 0&&(_e.paraSpacing=(0,jt.bp)(be)),t[h]={text:ce,type:Is.parse(ke),depth:(0,_t._3)(Re),inlineStyleRanges:Ne.map(De=>{const[Ke,ot,St]=ks(De);return{offset:Ke,length:ot,style:St}}),entityRanges:Ie.map(De=>{const[Ke,ot,St]=Es(De);return{offset:Ke,length:ot,key:St}}),data:_e}}return t},kn=a=>{let{message:t}=a;const{blocks:o={},entityMap:h={}}=t;return{...oo(o),...so(h)}},as=a=>({message:{blocks:Ls(a),entityMap:rs(a)}}),ls=a=>({T:In.pack(a.type),IC:[(0,_t.c5)(a.index),(0,_t.vH)(a.ctime)].join(Ft.xi)}),cs=a=>{const[t,o]=a.IC.split(Ft.xi);return{type:In.parse(a.T),index:(0,_t._3)(t),ctime:(0,_t.TT)(o)}},ao=a=>({...ls(a),R:a.refKey}),lo=a=>({...cs(a),refKey:a.R}),co=a=>({...ls(a),...kn(a),xy:(0,jt.x3)(a.x,a.y),wh:(0,jt.x3)(a.w,a.h),z:(0,jt.ZI)(a.z),userInfo:a.userInfo,userId:(0,jt.ZI)(a.userId),mtime:(0,_t.vH)(a.mtime),isCompleted:(0,os.rK)(a.isCompleted),canvasVec2:a.canvasVec2?{x:(0,jt.ZI)(a.canvasVec2.x),y:(0,jt.ZI)(a.canvasVec2.y)}:a.canvasVec2,canvasCid:a.canvasCid,threadType:a.threadType}),uo=a=>{const[t,o]=(0,jt.fm)(a.xy),[h,O]=(0,jt.fm)(a.wh),ce=a.canvasVec2?(0,jt.bp)(a.canvasVec2.x):void 0,Ne=a.canvasVec2?(0,jt.bp)(a.canvasVec2.y):void 0,Ie=(0,jt.bp)(a.z);return{...cs(a),...as(a),x:t,y:o,w:h,h:O,z:Ie,mtime:(0,_t.TT)(a.mtime),userInfo:a.userInfo,userId:(0,jt.bp)(a.userId),isCompleted:(0,os.Vf)(a.isCompleted),canvasCid:a.canvasCid,threadType:a.threadType,canvasVec2:ce&&Ne?{x:ce,y:Ne}:void 0}},po=a=>({...ls(a),...kn(a),mtime:(0,_t.vH)(a.mtime),userInfo:a.userInfo}),ho=a=>({...cs(a),...as(a),mtime:(0,_t.TT)(a.mtime),userInfo:a.userInfo}),mo=a=>{try{switch(a.T){case void 0:return a;case ss:return lo(a);case Cs:return uo(a);case Ms:return ho(a);default:throw new Error("invalid attr: "+a.T+" -> "+In.parse(a.T))}}catch(t){throw(0,un.p)("toP2CHA badDat",t,a),t}},Ts=a=>{try{switch(a.type){case void 0:return a;case"cCmtPack":return ao(a);case"cCmtThread":return co(a);case"cCmtContent":return po(a);default:throw new Error("invalid attr: "+a.type)}}catch(t){throw(0,un.p)("toP2CCA badDat",t,a),t}};if(n.j!=15)var go=n(42490);const As=(a,t)=>{const o=Ie=>{const ke=a(Ie);return ke===void 0?[]:ke.sub.map(Re=>a(Re))},h=(0,go.MX)(Ie=>Ie.sub.map(ke=>a(ke))),O=(Ie,ke)=>{const Re=a(Ie);Re!==void 0&&(ke(Re)||Re.sub.length!==0&&h(Re,ke))};return{getHotItem:a,getSubHotItemList:o,walkHotItemSubtree:O,isTrashed:Ie=>(0,Qt.DM)(Ie,t.getFlatTree()),__devHotTree:function(Ie){Ie===void 0&&(Ie=Qt.gT);const ke=new Map,Re=Pe=>{let Ze=ke.get(Pe);return Ze===void 0&&ke.set(Pe,Ze={}),Ze};return O(Ie,Pe=>{Re(Pe.sup)[Pe.key]=Pe.hotAttr,Pe.sub.length!==0&&(Re(Pe.sup)[Pe.key+" SUB"]=Re(Pe.key))}),Re(a(Ie).sup)}}};if(n.j!=15)var Os=n(57947);if(n.j!=15)var ds=n(25813);var fo=n(99142),tn=n(56927);if(n.j!=15)var yo=n(19371);const xo=(a,t,o)=>{const h=be=>{if(be===void 0||be.length===0)return;const _e=new Set;for(const Ke of be)_e.add(Ke.key),Ke.type==="I"&&_e.add(Ke.keySup);const De=(0,Qt.CF)([..._e].filter(Qt.xe),o.getFlatTree());a({type:yo.a,payload:De})},O=be=>{const _e=[],De=be(_e);return h(o.applyDiff(_e)),De},ce=be=>O(_e=>{const De=[],Ke=be(De);for(const ot of De)ot.type==="update"?Re(ot.hotItem,_e):ot.type==="delete"&&Pe(ot.key,_e);return Ke}),Ne=function(){const be=[],_e=[];let De,Ke=!1;for(var ot=arguments.length,St=new Array(ot),gt=0;gtSt=>{const gt=[],zt=ot(gt);for(const vt of gt)vt.type==="update"?Re(vt.hotItem,St):vt.type==="delete"&&Pe(vt.key,St);return zt});return Ne(...Ke)},ke=(be,_e)=>{for(const De of Object.keys(be)){const Ke=be[De],ot=_e[De];Ke!==ot&&(0,Os.sw)(Ke)&&(0,Os.sw)(ot)&&JSON.stringify(Ke)===JSON.stringify(ot)&&(be[De]=ot)}},Re=(be,_e)=>{const De=(0,Qt.PV)(be.key,o.getFlatTree());if(De===void 0)_e.push({type:tn.UF,key:be.key,keySup:be.sup}),_e.push({type:tn.qC,key:be.key,attrDiff:Ts(be.hotAttr)});else{De.sup!==be.sup&&_e.push({type:tn.UF,key:be.key,keySup:be.sup});const Ke=Ts(be.hotAttr);ke(Ke,De.attr);const ot=(0,fo.m)(Ke,De.attr);ot!==void 0&&_e.push({type:tn.qC,key:be.key,attrDiff:ot})}},Pe=(be,_e)=>{o.getFlatItem(be)&&_e.push({type:tn.UF,key:be,keySup:Qt.Ri})},Ze=(be,_e,De)=>{o.getFlatItem(be)&&o.getFlatItem(_e)&&De.push({type:tn.UF,key:be,keySup:_e})};return{_edit:O,_editAction:ce,_editBatch:Ne,_editActionBatch:Ie,onRemotePatchList:be=>{const _e=[];for(const De of be){const Ke=o.applyDiffRemote(De.diffList,De.clock);Ke!==void 0&&_e.push(...Ke)}h(_e)},updateHotItem:be=>O(_e=>{Re(be,_e)}),updateHotItemBatch:be=>O(_e=>{for(const De of be)Re(De,_e)}),deleteHotItem:be=>O(_e=>{Pe(be,_e)}),deleteHotItemBatch:be=>O(_e=>{for(const De of be)Pe(De,_e)}),moveHotItem:(be,_e)=>O(De=>{Ze(be,_e,De)}),moveHotItemBatch:be=>O(_e=>{for(const[De,Ke]of be)Ze(De,Ke,_e)}),editHotItemBatch:be=>O(_e=>{for(const De of be)De.type==="update"?Re(De.hotItem,_e):De.type==="delete"&&Pe(De.key,_e)}),updateHotAttrMerge:(be,_e)=>O(De=>{const Ke=t(be);if(Ke===void 0)throw new Error("no item: "+be);Re((0,ds.MK)(Ke,"hotAttr",{...Ke.hotAttr,..._e}),De)}),updateHotAttrKV:(be,_e,De)=>O(Ke=>{const ot=t(be);if(ot===void 0)throw new Error("no item: "+be);Re((0,ds.MK)(ot,"hotAttr",(0,ds.MK)(ot.hotAttr,_e,De)),Ke)}),canUndo:o.canUndo,canRedo:o.canRedo,combineMergeMark:o.combineMergeMark,combineMerge:o.combineMerge,undo:()=>{h(o.undo())},redo:()=>{h(o.redo())}}};var Bn=n(66451);const bo=a=>{const t=(0,bs.wz)(),o=t.subscribe,h=t.unsubscribe,O=Ps(a),ce=As(O,a),Ne=()=>us(a.getFlatTree),Ie=xo(t.send,O,a),{_edit:ke,_editAction:Re,_editBatch:Pe,_editActionBatch:Ze,...be}=Ie;return{subscribe:o,unsubscribe:h,...ce,createRoCmtStore:Ne,...be}},Ps=a=>t=>{const o=a.getFlatTree().get(t);if(o===void 0)return;const h=a.getOCI(o);return h.hotItem===void 0&&(h.hotItem={key:o.key,sup:o.sup,sub:o.sub,hotAttr:mo(o.attr)}),h.hotItem},us=a=>{const t=(0,Bn.b$)(a(),(0,bn.aF)({})),o=()=>t.getFlatTree()!==a(),h=()=>t.sync(a()),O=Ps(t),ce=As(O,t);return{hasUpdate:o,syncUpdate:h,...ce}};var Ds=n(56511),Fn=n(99611);if(n.j!=15)var vo=n(17036);if(n.j!=15)var _o=n(50544);var sn=n(73051),ps=n(85782),Ln=n(35236);const So=a=>{const[t,o,h]=a,O=async()=>(0,ps.BT)(Ln.r,t.tre),ce=async function(Pe){Pe===void 0&&(Pe=-1);const Ze=[];for(const{pbx:be,t10s:_e}of o){if(_e{let[,,_e]=be;return _e.includes(Pe)})},getMergedReadablePatchList:async function(Pe,Ze){Pe===void 0&&(Pe=-1),Ze===void 0&&(Ze=16);const be=[];let _e={timePrefix:"",countDI:0,countDA:0,userIdSet:new Set};const De=Ke=>{_e.timePrefix!==Ke&&(_e.timePrefix!==""&&be.push(_e.timePrefix.slice(5)+"..Z I*"+(_e.countDI||"-")+" A*"+(_e.countDA||"-")+" ["+[..._e.userIdSet].join(",")+"]"),_e={timePrefix:Ke,countDI:0,countDA:0,userIdSet:new Set})};for(const{clock:[Ke,ot],diffList:St}of await Ne(Pe)){const gt=new Date(Ke).toISOString().slice(0,Ze);De(gt),_e.userIdSet.add(ot);for(const{type:zt}of St)zt===tn.UF?_e.countDI++:_e.countDA++}return De(""),be},flpak:a}},Rs=a=>Math.floor(a/10/1e3),Bs=a=>{const[t]=(0,tn.cx)(a);return Rs(t)},wo=a=>{let[t,o,h]=a;return h.length!==0?h[h.length-1].t10s:o.length!==0?o[o.length-1].t10s:t.t10s};if(n.j!=15)var hs=n(71544);const ms=(a,t,o)=>{let h=!1,O=0,ce=0;const Ne=new Map;let Ie=[],ke,Re,Pe,Ze;const be=Fe=>{let[Je,,Ge]=Fe;if(Je!==a)return!1;const it=(0,sn.vZ)(Ge);for(const rt of it)Ie.push([rt,Bs(rt),!1]);return Pe!==void 0&&Pe(it.map(rt=>(0,tn.iz)(rt))),!0},_e=async(Fe,Je)=>{if(Re!==void 0)throw new Error("no re-init flatStore");ke=Fe,Ze=Je;const Ge=await Ze(a);{const Et="INSP-INIT-FLPAK";location.hash.includes(Et)&&Object.assign(globalThis,{[Et+"/"+a]:{...So(Ge),__flpakKey:a,__name:t}})}O=wo(Ge);const it=(0,Bn.OR)(),rt=await(0,ps.TN)(Ln.r,Ge,(Et,Le)=>(0,sn.qG)(Et,Le,it.mutateTFAAFNB));let Ut=Qt.xL;{const Et="BYPASS-FLPAK";location.hash.includes(Et)&&(Ut=Le=>console.warn("["+Et+"|vFT]",Le))}for(const[Et,Le,st]of Ie)!st&&O>=Le||(0,sn.qG)(rt,Et,it.mutateTFAAFNB);Re=(0,Bn.b$)(rt,Fe,(Et,Le,st)=>{if(h&&console.log("flat|onPatch",{diffList:Et,clock:Le,isLocal:st}),Ie.push([(0,tn.AO)({diffList:Et,clock:Le}),Rs(Le[0]),st]),st)return;const[Ot,Jt,_n,Sn]=Le;ce=Math.max(ce,Ot);const on=(0,bn.au)(Jt,_n);if(ke.selfCCK===on)throw new Error("unexpected selfCck: "+on);const Hn=Ne.get(on)||-1;Hn>Sn&&console.warn("bad editId for cck: "+on+", last: "+Hn+", new: "+Sn),Ne.set(on,Sn)},(Et,Le)=>{console.warn("flat|requestResync",{error:Et,message:Le})}),Pe=Et=>{for(const Le of Et)Re.applyDiffRemote(Le.diffList,Le.clock)};const Zt=it.getFixDiffList(rt);Zt.length&&(Re.applyDiff(Zt),Re.resetUndo()),o===!0&&Ut(rt)},De=Fe=>{Pe=Fe},Ke=()=>ke,ot=()=>Re,St=async function(Fe){if(Fe===void 0&&(Fe=""),o===!0)try{if(!Re||!O||!vt())return;const Je=Re.getFlatTree(),[Ge,it]=await(0,ps.Vz)(Ln.r,Je);await(0,hs.hp)("//FSS/"+t+"/"+a,new Blob([it],{type:"application/octet-stream"}),{message:Fe,treRawSize:Ge,treSize:it.byteLength})}catch(Je){console.warn("saveSOS",Fe,Je)}},gt=async()=>{if(o===!0)try{const Fe=await(0,hs.Ey)("//FSS/"+t+"/"+a);if(Fe.length){console.warn("[loadSOS] found "+Fe.length+" record");const{data:Je,extra:Ge}=Fe[0];console.warn("[loadSOS] load record from "+new Date(Ge.time).toISOString());const it=await(0,vo.WL)(Je),rt=await(0,ps.BT)(Ln.r,it);return console.warn("[loadSOS] record tree: "+rt.slowSize()),{tree:rt,...Ge}}}catch(Fe){console.warn("loadSOS",Fe)}},zt=async()=>{if(o===!0)try{return await(0,hs.EP)("//FSS/"+t+"/"+a)}catch(Fe){console.warn("freeSOS",Fe)}},vt=()=>{if(o!==!0)return!1;for(const[,,Fe]of Ie)if(Fe)return!0;return!1};return{flpakKey:a,name:t,__setIsDev:Fe=>{h=Fe},onRemotePayloadSave:be,bind:_e,useExtORPL:De,getClockStore:Ke,getFlatStore:ot,saveSOS:St,loadSOS:gt,freeSOS:zt,hasPatch:vt,preSettlePatch:()=>{if(o!==!0)return[];const Fe=[];for(const[Je,,Ge]of Ie)Ge&&Fe.push(Je);return Fe},postSettlePatch:Fe=>{o===!0&&(Ie=Ie.filter(Je=>{let[Ge,it,rt]=Je;return!rt||!Fe.includes(Ge)}))}}},Co=(a,t,o)=>{let h,O;return{flpakKey:a,name:"[DUMMY]"+t,__setIsDev:ce=>{},onRemotePayloadSave:ce=>{let[Ne,,Ie]=ce;return!1},bind:async(ce,Ne)=>{if(O!==void 0)throw new Error("no re-init flatStore");h=ce,O=(0,Bn.b$)((0,Qt.Id)(),ce)},useExtORPL:ce=>{},getClockStore:()=>h,getFlatStore:()=>O,saveSOS:async ce=>{},loadSOS:async()=>{},freeSOS:async()=>0,hasPatch:()=>!1,preSettlePatch:()=>[],postSettlePatch:ce=>{}}};if(n.j!=15)var Mo=n(54704);const Fs=n.j!=15?jt.x3:null,No=n.j!=15?jt.fm:null,Io=a=>{const t=new Map;let o=!1,h=!1,O,ce,Ne=()=>"";const Ie=()=>{t.clear(),Pe()};let ke=0;const Re=et=>{const Fe={socketId:et,index:ke++,lastCurAt:0,cur:void 0,lastStatAt:0,stat:void 0};return t.set(et,Fe),o=!0,Fe},Pe=(0,f.Ds)(async()=>{if(await(0,M.Y_)(2*1e3),O===void 0)return;const et=[];for(const{socketId:it,lastStatAt:rt}of t.values())rt!==0&&et.push(it);for(const[it,rt,Ut]of await O([a,et])){const Zt=t.get(it)||Re(it);Zt.lastStatAt=Date.now(),Zt.stat=[rt,Ut]}const[Fe,Je,Ge]=_e;Fe&&ce&&ce([a,Fe,Fs(Je,Ge)])},et=>{console.warn("_tPS",et)}).trigger,Ze=et=>{let[Fe,Je,Ge]=et;const[it,rt]=No(Ge),Ut=[it,rt,Je],Zt=t.get(Fe)||Re(Fe);Zt.lastCurAt=Date.now(),Zt.cur=Ut,Zt.lastStatAt===0?Pe():h=!0},be=et=>{let[Fe,Je]=et;const Ge=t.has(Je);Fe===0&&Ge&&(t.delete(Je),o=!0)};let _e=["",NaN,NaN],De=0;const Ke=function(et){et===void 0&&(et=_e[0]);const Fe=Ne();if(Fe==="")return!1;for(const{socketId:Je,cur:Ge}of t.values())if(Ge&&Ge[2]===et&&Je!==Fe)return!0;return!1},ot=function(et,Fe,Je){Fe===void 0&&(Fe=jt.Ni),Je===void 0&&(Je=jt.Ni),!(_e[0]===et&&_e[1]===Fe&&_e[2]===Je)&&(_e[0]!==et&&(De=1),!(!De&&(t.size<2||!Ke(et)))&&(_e=[et,Fe,Je],De&&De--,ce&&ce([a,et,Fs(Fe,Je)])))},St=async(et,Fe,Je)=>{if(O!==void 0)throw new Error("no re-init fetchCurStat");O=et,ce=Fe,Ne=Je},gt=()=>{const et=Ne(),Fe=[];if(et==="")return Fe;for(const{socketId:Je,stat:Ge}of t.values()){if(Ge===void 0)continue;const[it,rt]=Ge;et===Je?Fe.unshift([Je,it,rt]):Fe.push([Je,it,rt])}return Fe},zt=et=>{const Fe=Ne(),Je=[];if(Fe==="")return Je;for(const{socketId:Ge,index:it,cur:rt,stat:Ut}of t.values()){if(Fe===Ge||rt===void 0||Ut===void 0)continue;const[Zt,Et,Le]=rt;if(Le!==et||Zt===jt.Ni)continue;const[st,Ot]=Ut;Je.push([it,Zt,Et,st,Ot])}return Je},vt=()=>o?(o=!1,!0):!1,Kt=()=>h?(h=!1,!0):!1;return{flpakKey:a,__curStatMap:t,onSocketConnect:Ie,onRemoteCur:Ze,onRemoteSocket:be,hasOtherUser:Ke,tryPackCur:ot,bind:St,getRoomStat:gt,getSocketStat:gt,getCurStat:zt,pollRoomChg:vt,pollCurChg:Kt,pollChange:Kt}},jo=a=>{const t=()=>{},o=Pe=>{let[Ze,be,_e]=Pe},h=Pe=>{let[Ze,be]=Pe},O=Pe=>!1,ce=(Pe,Ze,be)=>{},Ne=async(Pe,Ze,be)=>{},Ie=()=>[],ke=Pe=>[],Re=()=>!1;return{flpakKey:a,onSocketConnect:t,onRemoteCur:o,onRemoteSocket:h,hasOtherUser:O,tryPackCur:ce,bind:Ne,getRoomStat:Ie,getSocketStat:Ie,getCurStat:ke,pollRoomChg:Re,pollCurChg:Re,pollChange:Re}},zs=()=>{};let Us=!1;const Ws=a=>{Us=a},gs="dat",Hs="cmt",zn="mkt:dat",Vs=async a=>{let{flpakKey:t,userId:o,uTag:h,token:O,passwd:ce,isDummyCmt:Ne=!1,isAllowDat:Ie=!1,isAllowCmt:ke=!1,isAllowCur:Re=!1,afterStoreCreate:Pe=zs,__fetchFlpakAsync:Ze=Fn.T,onTransferError:be=zs}=a;const _e=ms(t,gs,Ie),De=(Ne?Co:ms)((0,Mo.J6)(t),Hs,ke),Ke=(Re?Io:jo)(t);await Pe({fssDat:_e});const ot=async(Le,st)=>{await _e.saveSOS("OTE|"+Le+"|"+st),await be(Le,st)},St=(0,Tt.LZ)({flpakKey:t,needDat:!!Ie,needCmt:!!ke,needCur:!!Re}),gt=!o||!St?ns():Ss({query:{uId:String(o),uTag:h,rKey:St},usePolling:Us,lossyListenerMap:{[Tt.NX]:Le=>{const{payload:st}=Le;Ke.onRemoteCur(st)}},queueListenerMap:{[Tt.VU]:Le=>{const{error:st}=Le;console.log("flat-ws drop-client",st),ot("4XX",st)},[Tt.Ei]:Le=>{const{error:st}=Le;console.log("flat-ws error",st),ot("5XX",st)},[Tt.zS]:()=>{console.log("flat-ws (re)connected"),Ke.onSocketConnect()},[Tt.sP]:Le=>{const{payload:st}=Le;_e.onRemotePayloadSave(st)||De.onRemotePayloadSave(st)||console.warn("drop save payload:",st)},[Tt.$7]:Le=>{const{payload:st}=Le;console.log("flat-ws room cursor:",st),Ke.onRemoteSocket(st)}}});await gt.getReadyPromise();const zt=async(Le,st,Ot)=>{try{return await Ze(Le,{token:O,passwd:ce,skipTTre:String(st||""),skipTPbxList:(Ot||[]).join("")})}catch(Jt){const _n=Un(Jt);throw Wn(Jt)!=="Fch"&&(0,un.p)("fFS "+Wn(Jt),Jt),await ot(_n,Jt),Jt}};await Promise.all([_e.bind((0,bn.aF)({userId:o,mtimeOffset:gt.getOffsetMsec()}),zt).catch(Le=>{throw(0,un.p)("bindDat",Le),Le}),De.bind((0,bn.aF)({userId:o,mtimeOffset:gt.getOffsetMsec()}),zt).catch(Le=>{throw(0,un.p)("bindCmt",Le),Le}),Ke.bind(async Le=>{try{if(gt.getIsConnected())return await gt.emitAsync(Tt.Am,Le)}catch(st){await(0,M.Y_)(42*1e3)}return[]},Le=>gt.getIsConnected()&>.emitLossy(Tt.pL,Le),gt.getSocketId).catch(Le=>{throw(0,un.p)("bindCur",Le),Le})]);const vt=new Error("[tracked-error]"),Kt=async Le=>{if(!Le.hasPatch())return;const st=Le.preSettlePatch(),Ot=(0,sn.ok)((0,sn.oG)(st));for(let Jt=0,_n=Ot.length;Jt<_n;Jt++){const Sn=Ot[Jt];try{await gt.emitAsync(Tt.s5,[Le.flpakKey,Sn.length,(0,sn.iM)(Sn)])}catch(on){const Hn=Un(on);throw Hn==="5XX"&&(0,un.p)("saveFss "+Wn(on),on,Le.name,Le.flpakKey,Jt+1+"/"+_n,Sn),await ot(Hn,on),vt}}Le.postSettlePatch(st)},et=(0,f.Ds)(async()=>(0,f.g7)(async()=>{await Kt(_e),await Kt(De),await _e.freeSOS()},5*60*1e3,"lFFss.lA"),Le=>{if(Le===vt)return;const st=Un(Le);(0,un.p)("lFFss "+Wn(Le),Le),Promise.resolve(ot(st,Le)).catch(Ot=>{(0,un.p)("lFFss "+st+" Err",Ot)})}),Fe=(0,f.Ds)(async()=>{et.trigger(),await et.getRunningPromise();for(let Le=0;Le++<16;)!Ke.hasOtherUser()&&await(0,M.Y_)(1e3)});setInterval(Fe.trigger,2*1e3),Re&&setInterval(()=>Ke.onSocketConnect(),20*60*1e3);const Je=_e.getFlatStore(),Ge=(0,ws.uq)(_e.getFlatStore());_e.useExtORPL(Ge.onRemotePatchList);const it=bo(De.getFlatStore());De.useExtORPL(it.onRemotePatchList);const rt=()=>_e.hasPatch()||De.hasPatch(),Ut=(0,f.B1)(async()=>(0,f.JN)(async()=>{let Le=0;for(;rt();)await(0,M.Y_)(Math.min(Le,5)*1e3),et.trigger(),await et.getRunningPromise(),Le++})),Zt=()=>globalThis.MB.getSelectionItems()[0].key,Et=(0,f.J9)(Ke.tryPackCur,125);return{fssDat:_e,fssCmt:De,cssCur:Ke,flatSocket:gt,flatStore:Je,sdkStore:Ge,cmtStore:it,sendCur:Et,hasSave:rt,saveAsync:Ut,theTree:function(Le){return Le===void 0&&(Le=Qt.gT),console.log((0,Qt.Wr)(Je.getFlatTree(),Le))},hotTree:function(Le){return Le===void 0&&(Le=Qt.gT),console.log(Ge.__devHotTree(Le))},slctTree:function(Le){return Le===void 0&&(Le=Zt()),console.log(Ge.__devHotTree(Le))},upTree:function(Le,st){return Le===void 0&&(Le=Zt()),st===void 0&&(st=Qt.gT),console.log(Ge.findUpHotItemList(Le,st))},newFFT:async function(Le,st,Ot){return Ot===void 0&&(Ot=st.name+"-\u4FEE\u590D\u6570\u636E"),(0,Ds.N)(Le,st.team_cid,{...st,name:Ot})},cmtTree:function(Le){return Le===void 0&&(Le=Qt.gT),console.log(it.__devHotTree(Le))}}},Un=a=>{const t=a&&a.status;return t>=400&&t<500?"4XX":String(a).toLowerCase().includes("timeout")?"Tot":"5XX"},Wn=a=>{const t=a&&a.status,o=[];t>=400&&o.push(String(t));const h=String(a).toLowerCase();return h.includes("timeout")&&o.push("Tot"),h.includes("fetch")&&o.push("Fch"),o.join("")||"Err"},Eo=async a=>{let{flpakKey:t}=a;const o=ms(t,zn,!1),h=async(ce,Ne,Ie)=>(0,Fn.T)(ce,{skipTTre:String(Ne||""),skipTPbxList:(Ie||[]).join("")});return await o.bind((0,bn.aF)({}),h),{sdkStore:(0,ws.uq)(o.getFlatStore())}}},52781:(we,de,n)=>{"use strict";if(n.d(de,{$r:()=>W,$z:()=>H,Aq:()=>ae,Cp:()=>P,Jv:()=>l,PJ:()=>b,Uy:()=>q,Wu:()=>E,X:()=>w,Yk:()=>A,ZF:()=>V,a3:()=>ee,je:()=>C,rd:()=>K}),n.j!=15)var i=n(46795);var f=n(72907),M=n(81811);const p=300,E=async function(x){x===void 0&&(x="");const d=1;let g=[];try{const y=await(0,i.Yo)("/api/community/v1/workspace/my_star?page="+d+(x&&"&category="+x)+"&page_size="+p);y&&(g=y==null?void 0:y.market_templates.filter(N=>(N==null?void 0:N.version)!=="v1"))}catch(y){(0,f.$r)()}return g.map(y=>({...y,is_star:!0}))},ee=async x=>{await(0,i.Ds)("/api/community/v1/market_template/star/"+x)},H=async x=>{await(0,i.DW)("/api/community/v1/market_template/star/"+x)},A=async function(x,d){d===void 0&&(d=!0);let g;try{g=await(0,i.DE)("/api/community/v1/market_template/"+x)}catch(y){d&&(0,f.ai)(y)}return g},w=function(x){return x===void 0&&(x=""),(0,i.rh)("/api/community/v1/market_template?is_from_workspace=true&page="+1+x+"&page_size="+p)},q=async()=>{let x;try{x=await(0,i.DE)("/flpak/ww-p2recent")}catch(d){(0,f.$r)()}return x},W=async()=>{try{return await(0,i.DE)("/api/community/v1/hot_icons")}catch(x){(0,f.$r)()}},ae=async()=>{try{return await(0,i.DE)("/api/community/v1/hot_color_icons")}catch(x){(0,f.$r)()}},Y=x=>{let{category:d="combo_group",keyword:g=""}=x;return fetchGetJSON("/api/community/v1/es/basic_resource/search_"+d+"?q="+encodeURIComponent(g))},J={screen_list:"screen",combo_group:"combo",icon_group:"icon",user_combo:"user_combo"},P=x=>{let{projectUpperType:d="",projectUpperCid:g="",itemCid:y=""}=x;return(0,i.Ds)("/api/community/v1/recent_template",{project_upper_type:J[d]||d,project_upper_cid:g,item_cid:y})},K=async x=>{const{sdkStore:d}=await(0,M.O3)({flpakKey:x});return d},V=async function(x){x===void 0&&(x="mobile");try{return(await(0,i.DE)("/api/market_template/v4/workspace/new_page_types?platform="+x)).types}catch(d){return console.error(d),[]}},l=async function(x){x===void 0&&(x="mobile");try{return await(0,i.DE)("/api/community/v1/workspace/recommend_page?platform="+x)}catch(d){return(0,f.$r)({onClick:g=>g({type:"entry:resources:set:pagePanel:find:update:data",payload:{platformType:x,isReRequest:!0}})}),{}}},C=async x=>{let{platform:d,firstTypeCid:g,secondTypeCid:y=null}=x;const N={first_type_cid:g,second_type_cid:y,platform:d};let R=new URLSearchParams;R=Object.assign(R,N);for(const[S,B]of Object.entries(R))B?B==="default"?R.delete(S):R.set(S,B):R.delete(S);try{return await(0,i.DE)("/flpak/ww-p2pagemkt?"+R.toString())}catch(S){return(0,f.$r)({onClick:B=>B({type:"entry:resources:set:pagePanel:find:update:data",payload:{platformType:d,isReRequest:!0}})}),{}}},b=async()=>{try{const{color_icon_groups:x}=await(0,i.DE)("/api/community/v1/color_icon_groups");return x&&x.length>0?x.reduce((d,g)=>(d[g.source_upper_cid]=g,d),{}):{}}catch(x){return(0,f.$r)(),{}}}},15668:(we,de,n)=>{"use strict";n.d(de,{Oc:()=>E,Qi:()=>w,jf:()=>ee,jn:()=>H,lV:()=>P,tA:()=>A,z9:()=>W});var i=n(51044),f=n(82152),M=n(7290),p=n(57464);const E=(0,i.memo)(K=>{let{type:V="linear",className:l,disabled:C=!1,size:b="common",corner:x="smooth",forceTheme:d,children:g,onClick:y}=K;return(0,p.jsx)(f.Yr,{type:V,className:l,disabled:C,size:b,corner:x,forceTheme:d,onClick:y,children:g})}),ee=n.j!=15?(0,i.memo)(K=>{let{type:V="linear",className:l,disabled:C=!1,size:b="common",corner:x="smooth",icon:d,children:g,forceTheme:y,onClick:N}=K;return(0,p.jsx)(f.hE,{type:V,className:l,disabled:C,size:b,corner:x,icon:d,forceTheme:y,onClick:N,children:g})}):null,H=(0,i.memo)(K=>{let{className:V,children:l,disabled:C=!1,onClick:b}=K;return(0,p.jsx)(f.Yr,{type:"primary",size:"common",className:V,disabled:C,onClick:b,children:l})}),A=K=>{let{className:V,children:l,disabled:C=!1,onClick:b}=K;return(0,p.jsx)(f.Yr,{type:"secondary",size:"common",className:V,disabled:C,onClick:b,children:l})},w=(0,i.memo)(K=>{let{className:V,children:l,disabled:C=!1,onClick:b}=K;return(0,p.jsx)(f.Yr,{type:"danger",size:"common",className:V,disabled:C,onClick:b,children:l})}),q=null,W=n.j!=15?(0,i.memo)(K=>{let{className:V,children:l,disabled:C=!1,onClick:b}=K;return(0,p.jsx)(f.Yr,{type:"link",className:V,disabled:C,onClick:b,children:l})}):null,ae=null,Y=null,J=null,P=n.j!=15?(0,i.memo)(K=>{let{className:V,isLoading:l=!1,children:C,disabled:b=!1,onClick:x}=K;return(0,p.jsx)(f.hE,{type:"secondary",size:"tiny",corner:"soft",className:V,icon:l?(0,p.jsx)(M.C,{name:"general/loading",className:"btn-loading"}):null,disabled:b,onClick:x,children:C})}):null},82152:(we,de,n)=>{"use strict";n.d(de,{Yr:()=>H,hE:()=>A,in:()=>ee});var i=n(21676),f=n(93839),M=n(15388),p=n(54909);const E=(w,q)=>{const W=w.forceTheme;return W?p.f[q]["value_"+W]:w.theme[q]},ee=(0,i.AH)(["line-height:18px;&[class*='type-primary']{color:",";background:",";border:1px solid transparent;&:hover:not([class*='is-disabled']){background:",";border:1px solid transparent;}&:active:not([class*='is-disabled']){background:",";border:1px solid transparent;}&[class*='is-disabled']{color:",";background:",";border:1px solid transparent;}}&[class*='type-secondary']{color:",";background:",";border:1px solid ",";&:hover:not([class*='is-disabled']){background:",";border:1px solid ",";}&:active:not([class*='is-disabled']){background:",";border:1px solid ",";}&[class*='is-disabled']{color:",";background:",";border:1px solid ",";}}&[class*='type-danger']{color:",";background:",";border:1px solid transparent;&:hover:not([class*='is-disabled']){background:",";border:1px solid transparent;}&:active:not([class*='is-disabled']){background:",";border:1px solid transparent;}&[class*='is-disabled']{color:",";background:",";border:1px solid transparent;}}&[class*='type-text']{color:",";background:transparent;border:1px solid transparent;&:hover:not([class*='is-disabled']){background:",";border:1px solid transparent;}&:active:not([class*='is-disabled']){background:",";border:1px solid transparent;}&[class*='is-disabled']{color:",";background:transparent;border:1px solid transparent;}}&[class*='size-tiny']{max-height:28px;font-size:12px;line-height:14px;padding:6px 8px;.btn-icon-text-container{min-width:46px;}}&[class*='size-common']{max-height:32px;font-size:13px;padding:6px 10px;.btn-icon-text-container{min-width:58px;}}&[class*='size-medium']{max-height:32px;font-size:13px;padding:6px 12px;.btn-icon-text-container{min-width:70px;}}&[class*='is-disabled']{opacity:1;}"],w=>E(w,"color_text_btn"),w=>E(w,"color_btn_primary_normal"),w=>E(w,"color_btn_primary_hover"),w=>E(w,"color_btn_primary_clicked"),w=>E(w,"color_text_disabled02"),w=>E(w,"color_btn_primary_disabled"),w=>E(w,"color_text_L1"),w=>E(w,"color_bg_white"),w=>E(w,"color_bg_border_02"),w=>E(w,"color_btn_secondary_hover"),w=>E(w,"color_bg_border_02"),w=>E(w,"color_btn_secondary_active"),w=>E(w,"color_bg_border_02"),w=>E(w,"color_text_disabled01"),w=>E(w,"color_bg_white"),w=>E(w,"color_bg_border_02"),w=>E(w,"color_text_btn"),w=>E(w,"color_btn_danger_normal"),w=>E(w,"color_btn_danger_hover"),w=>E(w,"color_btn_danger_clicked"),w=>E(w,"color_text_disabled02"),w=>E(w,"color_btn_danger_disabled"),w=>E(w,"color_text_L1"),w=>E(w,"color_btn_secondary_hover"),w=>E(w,"color_btn_secondary_active"),w=>E(w,"color_text_disabled01")),H=(0,i.Ay)(f.A).withConfig({displayName:"styles__StyledProtoButton",componentId:"sc-1pmgkeq-0"})(["",";"],ee),A=(0,i.Ay)(M.A).withConfig({displayName:"styles__StyledProtoIconButton",componentId:"sc-1pmgkeq-1"})(["",";"],ee)},60081:(we,de,n)=>{"use strict";n.d(de,{s:()=>B,A:()=>R});var i=n(74059),f=n(51044),M=n(86634),p=n.n(M),E=n(67231),ee=n.n(E),H=n(11334),A=n(19418),w=n(7775),q=n(7290),W=n(11777),ae=n(89535),Y=n(73773),J=n(57465),P=n(21676),K=n(17084);const V=(0,P.DU)([".no-pointer-events{pointer-events:none;user-select:none;&.col-resize{cursor:",";}&.row-resize{cursor:",";}}"],K.M.ewResizeActive,K.M.nsResizeActive),l=P.Ay.label.withConfig({displayName:"styles__StyledInputNumber",componentId:"sc-1hqayf3-0"})(['position:relative;display:flex;justify-content:space-between;align-items:center;min-width:2em;border:1px solid transparent;font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;height:28px;font-size:12px;border-radius:6px;overflow:hidden;.title{display:flex;align-items:center;justify-content:center;padding:0 3px 0 5px;width:max-content;height:100%;user-select:none;color:',";&.title-cursor{&.col-resize{cursor:",";}&.row-resize{cursor:",";}}}.left-title{padding:0 13px 0 0;}.normal-right{margin-left:","px;}input{color:",";width:100%;height:100%;margin-left:8px;cursor:default;}.text-align-right{text-align:right;padding-right:2px;}.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;top:0;right:0;width:14px;height:100%;text-align:center;visibility:hidden;svg{height:4px;fill:currentColor;fill-rule:evenodd;}button{display:block;margin:0;padding:0;width:100%;height:50%;line-height:0;color:",";&.no-transition{transition:none;}&:hover{color:",";}&:active{color:",";}&[data-action=up] svg{margin:5px 0 2px;}&[data-action=down] svg{margin:2px 0 5px;}}&.caret{width:26px;svg{width:26px;height:26px;margin-right:0;color:",";}button{height:100%;}&.active{visibility:visible;}}}&.is-disabled{> *{color:",";cursor:not-allowed;}}&.is-readOnly{pointer-events:none;.action{visibility:hidden;}}&:hover:not(.has-menu):not(.is-disabled){border:1px solid ",";.action{visibility:visible;color:#c8cdd0;}}&.is-active:not(.has-menu):not(.is-disabled){border:1px solid ",";outline:1px solid ",";outline-offset:-2px;.action{&:not(.caret){visibility:visible;}}}&.is-active-title{border:1px solid ",";outline:1px solid ",";outline-offset:-2px;cursor:pointer;}&.has-menu{border:1px solid transparent;input{width:calc(100% - 26px);border:1px solid transparent;border-radius:4px 0 0 4px;margin-left:0;padding-left:5px;}&:hover:not(.is-active):not(.is-disabled){border:1px solid ",";.action.caret{visibility:visible;background:",";svg.icon{color:",";}}}&:active:not(.is-active):not(.is-disabled){border:1px solid ",";.action.caret{visibility:visible;background:",";svg.icon{color:",";}}}&.is-active{overflow:visible;input{border:1px solid ",";outline:1px solid ",";position:relative;z-index:2;}.action.caret{visibility:visible;color:#c8cdd0;position:relative;z-index:1;svg.icon{color:",";}&:hover{background:",";border-radius:0 4px 4px 0;outline:1px solid ",";}}}}"],U=>U.theme.color_text_L3,K.M.ewResize,K.M.nsResize,U=>31-U.valueLength*6,U=>U.theme.color_text_L1,U=>U.theme.color_text_L2,U=>U.theme.color_text_L3,U=>U.theme.color_text_L2,U=>U.theme.color_text_L2,U=>U.theme.color_text_L3,U=>U.theme.color_text_disabled01,U=>U.theme.color_bg_border_02,U=>U.theme.color_proto,U=>U.theme.color_proto,U=>U.theme.color_proto,U=>U.theme.color_proto,U=>U.theme.color_bg_border_02,U=>U.theme.color_btn_secondary_hover,U=>U.theme.color_text_L1,U=>U.theme.color_bg_border_02,U=>U.theme.color_btn_secondary_active,U=>U.theme.color_text_L1,U=>U.theme.color_proto,U=>U.theme.color_proto,U=>U.theme.color_text_L1,U=>U.theme.color_btn_secondary_hover,U=>U.theme.color_bg_border_02);var C=n(57464);const b=500,x=30,d=(U,ie)=>Number(Number(U).toFixed(ie));function g(U,ie,L){return L===void 0&&(L=0),ie?U:d(U!==""&&ee()(Number(U))?Number(U):"",L)}const y=function(U,ie){let{shiftKey:L,metaKey:F}=U;return ie===void 0&&(ie=1),L?ie*10:F?ie*100:ie},N=U=>{let{currentTarget:ie}=U;return setTimeout(()=>ie.select(),50)};class R extends f.PureComponent{constructor(ie){super(ie),(0,i.A)(this,"setElemRef",L=>this.$title=L),(0,i.A)(this,"setLabelRef",L=>this.$label=L),(0,i.A)(this,"setInputRef",L=>this.$input=L),(0,i.A)(this,"onChange",L=>{const{target:{value:F}}=L,{isEditing:X}=this.state;!X&&this.setState({isEditing:!0});const le=F.trim();this.setValue(le,L)}),(0,i.A)(this,"correctNumber",L=>{const{value:F,min:X,max:le,precision:oe,suffix:xe,parser:Ee}=this.props,Oe=Ee(L,xe),Be=d(Math.min(Math.max(Oe,X),le),oe);return isNaN(Be)?F:Be}),(0,i.A)(this,"checkValidity",L=>/^\+$/.test(L)?this.canBePositive:/^-$/.test(L)?this.canBeNegative:L===""||isFinite(L)&&this.correctNumber(L)===Number(L)),(0,i.A)(this,"setValue",(L,F,X)=>{F.persist&&F.persist(),this.setState({value:L},X)}),(0,i.A)(this,"setConfirmedValue",(L,F)=>this.setValue(L,F,()=>this.onConfirm(F))),(0,i.A)(this,"onConfirm",L=>{const{attr:F,value:X,precision:le,onConfirm:oe,shouldCorrectOnConfirm:xe,onlyPreview:Ee,fontSize:Oe,fontFamily:Be,isWRichText:Ue}=this.props,{value:Ve}=this.state,Ye=this.checkValidity(Ve);if(this.props.isDisabled||this.props.disabled)return;L.persist&&L.persist();const Q=this.correctNumber(Ve),$=isNaN(Q)?X:Q;let me=Ve===""?X:Ye?/^[+-]$/.test(Ve)?0:Ee?Math.min(Math.max(Number(Ve),20),400):Number(Ve):Q===d(Ve,le)?Q:xe?$:X||$;(!Ye||Ve==="")&&Ue&&(me=(0,J.qp)(Be,Oe));const Se=me;return this.setState({value:me,isEditing:!1},()=>oe(Se,F,L,Ve))}),(0,i.A)(this,"focusOnInput",L=>{try{const F=L.currentTarget.closest("label").querySelector("input");setTimeout(()=>{F.focus()})}catch(F){console.error(F)}}),(0,i.A)(this,"onStep",async L=>{L.persist(),L.nativeEvent.stopPropagation(),this.handleBeforeChangeValue();const{parser:F,suffix:X}=this.props,{value:le}=this.state,oe=F(le,X),{action:xe}=L.currentTarget.dataset,Ee=y(L,this.props.step)*(xe==="up"?1:-1);await this.focusOnInput(L),this.setConfirmedValue(this.correctNumber(oe+Ee),L),Object.assign(this,{longPressedTimeout:setTimeout(()=>Object.assign(this,{steppingInterval:setInterval(()=>{const{parser:Oe,suffix:Be}=this.props,{value:Ue}=this.state,Ve=Oe(Ue,Be);this.setConfirmedValue(this.correctNumber(Ve+Ee),L)},x)}),b)})}),(0,i.A)(this,"onRelease",()=>{clearTimeout(this.longPressedTimeout),clearInterval(this.steppingInterval),this.handleAfterChangeValue()}),(0,i.A)(this,"onFocus",L=>{const{attr:F,dontSelectOnFocus:X,onFocus:le=X?void 0:N}=this.props;le(L,F)}),(0,i.A)(this,"onKeyDown",L=>{const{key:F,currentTarget:X}=L,{disableKeyboardEvents:le}=this.props;if(le&&(F===Y._.ArrowUp||F===Y._.ArrowDown)){L.preventDefault();return}const oe=F===Y._.ArrowUp?"up":F===Y._.ArrowDown?"down":F===Y._.Enter?"enter":F===Y._.Tab?"tab":null,xe=X instanceof Element&&X.matches("input");if(oe){if(L.persist&&L.persist(),oe!=="tab"&&L.preventDefault(),xe&&oe==="tab")return this.setInactive(),this.setState({isEditing:!1}),this.onConfirm(L);if(xe&&oe==="enter"){this.onConfirm(L),this.setInactive(),this.setState({isEditing:!1}),this.$input.blur();return}if(xe){const{parser:Ee,suffix:Oe}=this.props,{value:Be}=this.state,Ue=Ee(Be,Oe),Ve=y(L,this.props.step)*(oe==="up"?1:-1);this.handleBeforeChangeValue(),this.setState({isEditing:!1}),this.setConfirmedValue(this.correctNumber(Ue+Ve),L)}}}),(0,i.A)(this,"setActive",()=>{this.setState({isActive:!0}),MB&&MB.f&&(MB.f.isInSetting=!0);const{withToolTip:L,onChangeTooltipsHover:F}=this.props;L&&(this.setState({showTooltip:!1}),F&&F(!1))}),(0,i.A)(this,"setInactive",()=>{this.setState({isActive:!1,isEditing:!1}),MB&&MB.f&&(MB.f.isInSetting=!1)}),(0,i.A)(this,"toggleMenu",()=>this.setState({isMenuOpen:!this.state.isMenuOpen})),(0,i.A)(this,"closeMenu",()=>this.setState({isMenuOpen:!1})),(0,i.A)(this,"onSelect",L=>{L.persist();const{attr:F,onConfirm:X}=this.props,{currentTarget:le}=L,{value:oe}=le.dataset;this.setState({value:oe,isEditing:!1},()=>X(oe,F,L)),this.setInactive(),this.closeMenu()}),(0,i.A)(this,"onClickOutside",L=>{const{target:F}=L;F.closest("label")&&this.$label.contains(F)||F.closest(".SelectOption")||(this.onConfirm(L),this.setInactive(),this.setState({isEditing:!1}))}),(0,i.A)(this,"onBlur",async L=>{await this.onConfirm(L),this.setState({isEditing:!1}),this.props.onBlur(L)}),(0,i.A)(this,"handleRectResize",L=>{L.stopPropagation();const{isDisabled:F,disabled:X,cursorSize:le,cursorDirection:oe,onResizeMove:xe,onResizeEnd:Ee,attr:Oe}=this.props;if(F||X)return;const{left:Be,right:Ue,top:Ve,bottom:Ye}=this.$title.getBoundingClientRect();this.lastRecordedClientX=le==="col-resize"?(Be+Ue)/2:(Ve+Ye)/2,this.lastRecordedValue=Number(this.state.value),this.setState({isTitleActive:!0}),document.querySelector("html").classList.add("no-pointer-events",le),sdkStore.combineMergeMark("input-number-"+Oe),this.handleBeforeChangeValue();const ve=$=>{xe&&xe();const me=(le==="col-resize"?$.pageX:$.pageY)-this.lastRecordedClientX,Se=this.correctNumber(this.lastRecordedValue+(oe?Number(me):-Number(me)));this.setConfirmedValue(Se,$)},Q=()=>{Ee&&Ee(),this.setState({isTitleActive:!1}),document.querySelector("html").classList.remove("no-pointer-events",le),this.handleAfterChangeValue(),sdkStore.combineMerge("input-number-"+Oe),document.removeEventListener("mousemove",ve),document.removeEventListener("mouseup",Q)};document.addEventListener("mousemove",ve),document.addEventListener("mouseup",Q)}),(0,i.A)(this,"handleChangeCursor",()=>{const{isDisabled:L,disabled:F}=this.props;L||F||this.setState({isCursor:!this.state.isCursor})}),(0,i.A)(this,"handleAfterChangeValue",()=>{const{onAfterChangeValue:L}=this.props;L()}),(0,i.A)(this,"handleBeforeChangeValue",()=>{const{onBeforeChangeValue:L}=this.props;L()}),(0,i.A)(this,"onInputNumberMouseEnter",L=>{const{onMouseEnter:F,withToolTip:X,onChangeTooltipsHover:le}=this.props;F(L),this.setState({mouseEntered:!0});const oe=()=>this.setState({showTooltip:!0});X&&(le?le(!0,oe):oe())}),(0,i.A)(this,"onInputNumberMouseLeave",L=>{const{onMouseLeave:F,withToolTip:X,onChangeTooltipsHover:le}=this.props;F(L),this.setState({mouseEntered:!1}),X&&(this.setState({showTooltip:!1}),le&&le(!1))}),this.state={prevProps:this.props,value:g(this.props.value,this.props.isNotVerify,this.props.precision),isActive:!1,isMenuOpen:!1,isTitleActive:!1,isCursor:!1,isEditing:!1,showTooltip:!1,mouseEntered:!1},this.lastRecordedClientX=null,this.lastRecordedValue=g(this.props.value,this.props.isNotVerify,this.props.precision),this.toolTipNode=document.getElementById("IBOT_TOOLTIP_ROOT")}static getDerivedStateFromProps(ie,L){let{prevProps:F}=L;return F.value!==ie.value||F.isNotVerify!==ie.isNotVerify||F.precision!==ie.precision?{prevProps:ie,value:g(ie.value,ie.isNotVerify,ie.precision)}:null}componentDidMount(){this.props.isSelect&&(this.$input.select(),this.setState({isActive:!0}))}componentDidUpdate(ie){!ie.isSelect&&this.props.isSelect&&this.$input.select()}get canBePositive(){return this.props.max>0}get canBeNegative(){return this.props.min<0}render(){const{inputClassName:ie,menuClassName:L,className:F="",placeholder:X,title:le,rightTitle:oe,cursorSize:xe,suffix:Ee,actionButton:Oe,formatter:Be,optionList:Ue,canSlidingAdjustment:Ve,readOnly:Ye,toolTipContent:ve,showCaretIcon:Q,normalRight:$,isLongTimeHoverForInput:me=!1}=this.props,{value:Se,isActive:Ce,isMenuOpen:We,isTitleActive:s,isCursor:Ae,isEditing:$e,showTooltip:qe,mouseEntered:dt}=this.state,ut=Se,at=this.props.isDisabled||this.props.disabled,ft=Ue&&Ue.length>0,Pt=p()(F,"WorkspaceInputNumber",{"is-disabled":at,"is-active":Ce&&!at,"is-menu-open":We,"is-active-title":s,"can-sliding-adjustment":Ve,"has-menu":ft,"is-readOnly":Ye}),Mt=X,Rt=String(Se).split(".").join("").length-1,Bt=me?W.A:ae.A;return(0,C.jsx)(Bt,{content:ve,direction:"down",children:(0,C.jsxs)(l,{className:Pt,ref:this.setLabelRef,onMouseDown:ft?void 0:this.setActive,onMouseEnter:this.onInputNumberMouseEnter,onMouseLeave:this.onInputNumberMouseLeave,valueLength:Rt,children:[le&&(0,C.jsx)("span",{className:p()("title",{"title-cursor":Ae},xe),ref:this.setElemRef,onMouseDown:this.handleRectResize,onMouseEnter:this.handleChangeCursor,onMouseLeave:this.handleChangeCursor,children:le}),(0,C.jsx)("input",{className:p()(ie,{"text-align-right":$&&!dt&&!Ce}),type:"text",value:$e?ut:Be(ut,Ee),placeholder:Mt,ref:this.setInputRef,disabled:at,onChange:this.onChange,onKeyDown:this.onKeyDown,onKeyUp:this.handleAfterChangeValue,onMouseDown:ft?this.setActive:void 0,onFocus:this.onFocus,onBlur:this.onBlur}),oe&&(0,C.jsx)("span",{className:p()("title","left-title",{"title-cursor":Ae},xe),ref:this.setElemRef,onMouseDown:this.handleRectResize,onMouseEnter:this.handleChangeCursor,onMouseLeave:this.handleChangeCursor,children:oe}),Oe&&(0,C.jsx)(S,{hasMenu:ft,onToggleMenu:this.toggleMenu,onStep:this.onStep,onRelease:this.onRelease,showCaretIcon:Q}),ft&&We&&(0,C.jsx)(w.V0,{isOpen:We,menuClassName:p()("SelectNumberMenu",L),$select:this.$label,optionList:Ue,value:ut,onChange:this.onSelect,onClose:this.closeMenu}),Ce&&(0,C.jsx)(A.A,{target:document,onMouseDown:(0,A.t)(this.onClickOutside,{capture:!0})})]})})}}(0,i.A)(R,"defaultProps",{unstyled:!1,value:"",placeholder:"",cursorSize:"col-resize",inputClassName:"",menuClassName:"",cursorDirection:!0,step:1,isNotVerify:!1,formatter:(U,ie)=>""+U+(ie||""),parser:(U,ie)=>{const L=U.toString();return ie&&L.endsWith(ie)?Number(L.slice(0,L.length-ie.length)):Number(L)},min:0,max:1/0,isDisabled:!1,disabled:!1,readOnly:!1,actionButton:!0,isSelect:!1,onConfirm:()=>null,onMouseEnter:()=>null,onMouseLeave:()=>null,onAfterChangeValue:()=>null,onBeforeChangeValue:()=>null,onBlur:()=>null,shouldCorrectOnConfirm:!0,precision:0,dontSelectOnFocus:!1,canSlidingAdjustment:!0,isLineHeight:!1,disableKeyboardEvents:!1});const S=(0,f.memo)(U=>{let{hasMenu:ie,onToggleMenu:L,onStep:F,onRelease:X,showCaretIcon:le}=U;return(0,C.jsxs)(f.Fragment,{children:[ie?(0,C.jsx)("div",{className:p()("action caret",{active:le}),children:(0,C.jsx)(H.Ay,{className:"no-transition",type:"text",tabIndex:"-1",onClick:L,children:(0,C.jsx)(q.C,{name:"common/expand@26"})})}):(0,C.jsxs)("div",{className:"action",children:[(0,C.jsx)(H.Ay,{className:"no-transition",type:"text",tabIndex:"-1","data-action":"up",onMouseDown:F,onMouseLeave:X,onMouseUp:X,children:(0,C.jsx)(q.C,{name:"general/triangle_up"})}),(0,C.jsx)(H.Ay,{className:"no-transition",type:"text",tabIndex:"-1","data-action":"down",onMouseDown:F,onMouseLeave:X,onMouseUp:X,children:(0,C.jsx)(q.C,{name:"general/triangle_down"})})]}),(0,C.jsx)(V,{})]})}),B=U=>(0,C.jsx)(R,{...U,isLongTimeHoverForInput:!0})},46479:(we,de,n)=>{"use strict";n.d(de,{Os:()=>q,Tw:()=>W,ft:()=>ae});var i=n(51044),f=n(57464);const M="/mb-static/2308/loading.gif",p="/mb-static/2308/loading-mo.gif",E=(Y,J)=>J?"."+Y:Y,ee=Y=>(0,f.jsx)("img",{className:Y.className,alt:"Loading...",src:E(Y.isMockitt?p:M,Y.isHtmlZip)}),H=Y=>(0,f.jsx)("img",{className:Y.className,alt:"Loading...",src:E(ENV.IS_WONDER_SHARE?p:M,Y.isHtmlZip)}),A=Y=>(0,f.jsx)("img",{className:Y.className,alt:"Loading...",src:E(p,Y.isHtmlZip)});var w=n(94947);const q=n.j!=15?(0,i.memo)(Y=>(0,f.jsx)(ee,{...Y,isHtmlZip:(0,w.FM)()})):null,W=n.j!=15?(0,i.memo)(Y=>(0,f.jsx)(H,{...Y,isHtmlZip:(0,w.FM)()})):null,ae=(0,i.memo)(Y=>(0,f.jsx)(A,{...Y,isHtmlZip:(0,w.FM)()}))},54608:(we,de,n)=>{"use strict";n.d(de,{n:()=>q,A:()=>W});var i=n(51044),f=n(86634),M=n.n(f),p=n(7290),E=n(11777),ee=n(21676);const H=ee.Ay.ol.withConfig({displayName:"styles__StyledNewSlideNav",componentId:"sc-17e9w47-0"})(["display:flex;height:48px;.nav-label{position:relative;height:100%;padding:0 3px;display:flex;align-items:center;justify-content:center;white-space:nowrap;}.nav-item{position:relative;display:flex;flex:none;justify-content:center;align-items:center;color:",";padding:0 3px;cursor:pointer;.nav-underline{position:absolute;display:none;bottom:0;width:70%;border-bottom:2px solid ",";}&:lang(ja){font-size:10px;}&.active{color:",";&:not(:first-child:nth-last-child(1)){.nav-underline{display:inline;}}&.background_active{background-color:transparent;}&.line_active::after{content:'';position:absolute;bottom:0;width:30px;height:2px;background:",";}}&.disabled{color:",";cursor:not-allowed;}&:not(:first-child){}.tabNewIcon{position:absolute;width:30px;top:0;right:3px;path:first-child{fill:#1684fc;}path:last-child{fill:#fff;}}}.nav-item-small:lang(en){font-size:10px;}min-height:48px;padding:0 6px;.nav-item{font-size:13px;&.active{font-weight:bold;}}"],ae=>ae.theme.color_text_L3,ae=>ae.theme.color_text_L1,ae=>ae.theme.color_text_L1,ae=>ae.theme.color_text_L1,ae=>ae.theme.color_text_disabled01);var A=n(57464);const w=(0,i.memo)(ae=>{let{activeIndex:Y=0,className:J,layoutV9:P="old",children:K,onTabChange:V}=ae;return(0,A.jsx)(H,{className:M()(J),children:i.Children.map(K,(l,C)=>{const b={index:C,active:C===Y,onClick:V};return i.cloneElement(l,b)})})}),q=(0,i.memo)(ae=>{let{className:Y,index:J,active:P,onClick:K,label:V,tooltip:l,isNew:C,disabled:b,tempDisabled:x}=ae;const d=()=>{if(b)return x&&MB.notice({text:I18N.Common.feature_is_not_available,type:"warning"}),null;K(J)},g=(0,A.jsxs)("li",{className:M()("nav-item",{active:P},{disabled:b},Y),onClick:d,children:[V&&(0,A.jsxs)("span",{className:"nav-label",children:[V,l&&l]}),C&&(0,A.jsx)(p.C,{name:"design/tab/new",className:"tabNewIcon"})]});return b?(0,A.jsx)(E.A,{content:"\u6682\u4E0D\u5F00\u653E",direction:"down",children:g}):g}),W=w},39719:(we,de,n)=>{"use strict";n.d(de,{eY:()=>d,At:()=>b,pU:()=>x,DV:()=>g,Ay:()=>C});var i=n(74059),f=n(51044);if(n.j!=15)var M=n(15336);var p=n(72605),E=n(21676);const ee=(0,E.DU)(["div.notice-tips-container{.notice-tips{min-height:38px;p{color:",";}:not(.pure-svg-icon).svg-icon{fill:",";}&.success{.tip-svg{path:nth-child(1){fill:",";}}}&.warning{.tip-svg{path:nth-child(1){fill:",";}}}&.error{.tip-svg{circle{fill:",";}}.button-a{cursor:pointer;}.button-p{margin-left:0;}}&.super{background-color:",";p{margin:0 16px 0 4px;}.times-icon{path{fill:",";}}}}}"],y=>y.theme.color_text_btn,y=>y.theme.color_text_btn,y=>y.theme.color_success,y=>y.theme.color_warning,y=>y.theme.color_error,y=>y.theme.color_error,y=>y.theme.color_text_btn);var H=n(43441),A=n(90503),w=n(37337);const q=E.Ay.div.withConfig({displayName:"styles__StyledNoticeTips",componentId:"sc-1ehf3rt-0"})([".notice-tips{width:100%;height:100%;min-height:38px;padding:8px 16px;display:flex;align-items:center;font-size:14px;color:",";box-shadow:0 2px 8px 0 rgba(0,0,0,0.05),0 4px 12px 0 rgba(0,0,0,0.15);border-radius:6px;p{margin:0 0 0 4px;}&.info{background-color:",";p{margin:0 4px;}a{margin-left:12px;color:#80BCFF;&:hover{color:#A6D2FF;}}}&.success{background:",";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:6px;}&.warning{background-color:",";}&.error{background-color:",";}&.super{background-color:",";}&.loading{background-color:",";.tip-svg{animation:design-ani-spinning 1s infinite linear;fill:rgb(69,70,71);}}@keyframes design-ani-spinning{0%{transform:rotate(0deg);}100%{transform:rotate(359deg);}}.times-icon{width:20px;display:flex;flex-shrink:0;opacity:1;cursor:pointer;transition:opacity 0.15s ease-out;margin-left:16px;align-self:center;&:hover{opacity:1;}}.tip-svg{width:20px;height:20px;}}a{text-decoration:underline;color:",";&:hover{color:",";}}.fade{&-enter{transform:translateY(-50%);opacity:0;}&-enter-active{opacity:1;transform:translateY(0);transition:all 0.15s ease-out;}&-exit{opacity:1;}&-exit-active{opacity:0;transition:opacity 0.25s ease-in-out;}&-exit-done{opacity:0;}}"],w.f.color_bg_white.value_light,w.f.color_btn_secondary_active.value_dark,w.f.color_btn_secondary_active.value_dark,w.f.color_btn_secondary_active.value_dark,w.f.color_btn_secondary_active.value_dark,w.f.color_error.value_light,w.f.color_btn_secondary_active.value_dark,w.f.color_text_link_normal.value_dark,w.f.color_text_link_hover.value_dark);var W=n(57464);const ae={success:"design/toast/success",error:"design/toast/error",warning:"design/toast/warning",super:"design/toast/offline",loading:"design/toast/loading"};class Y extends f.PureComponent{render(){const{isShow:N,type:R,text:S,showClose:B,isReactDom:U,CustomChildComponent:ie,svgName:L,onDisappear:F}=this.props;return(0,W.jsx)(q,{children:(0,W.jsx)(H.A,{in:N,timeout:2500,classNames:"fade",unmountOnExit:!0,children:(0,W.jsxs)("div",{className:"notice-tips "+R,children:[L&&(0,W.jsx)(A.C,{name:L,className:"tip-svg",isColorPure:!0}),!L&&R&&ae[R]&&(0,W.jsx)(A.C,{name:ae[R],className:"tip-svg",isColorPure:!0}),(0,W.jsxs)(f.Fragment,{children:[U?S:(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)("p",{dangerouslySetInnerHTML:{__html:S}}),(typeof ie=="function"||typeof ie=="object")&&(0,W.jsx)(ie,{})]}),B&&(0,W.jsx)(A.C,{className:"times-icon",name:"general/times",onClick:F})]})]})})})}}(0,i.A)(Y,"defaultProps",{isShow:!1,type:"info",showClose:!1,isReactDom:!1,svgName:""});const J=E.Ay.div.withConfig({displayName:"styles__StyledNoticeTipsContainer",componentId:"sc-1ewb7bf-0"})(["position:fixed;left:50%;top:56px;max-width:480px;transform:translateX(-50%);z-index:1052;"]);var P=n(60185);class K extends f.PureComponent{constructor(N){super(N),(0,i.A)(this,"timerId",null),(0,i.A)(this,"handleDisappear",()=>{typeof this.props.closeCallback=="function"&&this.props.closeCallback()}),this.el=document.createElement("div")}componentDidMount(){document.body.appendChild(this.el),this.props.isShow&&this.updateTimer()}componentDidUpdate(N,R,S){const{isShow:B,id:U}=this.props,{isShow:ie,id:L}=N;(U!==L&&B||B&&B!==ie)&&this.updateTimer()}updateTimer(){this.timerId&&clearTimeout(this.timerId);const{duration:N}=this.props;this.timerId=N&&setTimeout(this.handleDisappear,N)}componentWillUnmount(){document.body.removeChild(this.el),this.timerId&&clearTimeout(this.timerId)}render(){const{isShow:N,type:R,text:S,showClose:B,isReactDom:U,CustomChildComponent:ie,svgName:L,className:F}=this.props;return(0,P.createPortal)(N&&(0,W.jsx)(J,{className:F,children:(0,W.jsx)(Y,{isShow:N,type:R,showClose:B,onDisappear:this.handleDisappear,isReactDom:U,text:S,CustomChildComponent:ie,svgName:L})}),this.el)}}(0,i.A)(K,"defaultProps",{text:"",isShow:!1,type:"info",showClose:!1,isReactDom:!1,CustomChildComponent:void 0,svgName:"",id:"",duration:2e3,closeCallback:()=>null});const V=K,l={isShow:!1,text:"",type:"info",showClose:!1,isReactDom:!1,CustomChildComponent:void 0,svgName:"",duration:2e3,id:""};class C extends f.PureComponent{constructor(N){super(N),(0,i.A)(this,"closeCallback",null),(0,i.A)(this,"handleDisappear",()=>{this.setState({isShow:!1}),typeof this.closeCallback=="function"&&this.closeCallback(),this.priority=0}),this.state=l,this.priority=0}componentDidMount(){MB.notice=N=>{let{text:R,type:S="info",CustomChildComponent:B=void 0,duration:U=2e3,showClose:ie=!1,isReactDom:L=!1,closeCallback:F=null,priority:X=0,svgName:le="",id:oe=Math.random().toString(36).slice(2),isShow:xe=!0}=N;this.priority>X||(clearTimeout(this.timer),this.setState({isShow:xe,text:R,type:S,showClose:ie,id:oe,isReactDom:L,CustomChildComponent:B,svgName:le,duration:U}),this.closeCallback=F,this.priority=X)}}componentWillUnmount(){this.setState({isShow:!1})}render(){const{isShow:N,type:R,duration:S,text:B,showClose:U,id:ie,isReactDom:L,CustomChildComponent:F,svgName:X}=this.state;return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(V,{className:"notice-tips-container",isShow:N,type:R,text:B,id:ie,duration:S,showClose:U,isReactDom:L,CustomChildComponent:F,svgName:X,closeCallback:this.handleDisappear}),(0,W.jsx)(ee,{})]})}}const b=y=>(0,f.memo)(()=>{const N=()=>(0,M.JW)("/hc/articles/393","_blank","noreferrer");return(0,W.jsx)("a",{style:{cursor:"pointer"},onClick:N,children:y})}),x=n.j!=15?(0,f.memo)(()=>{const y=(0,p.wA)(),N=()=>y({type:"toolbar:sharingManager:open"});return(0,W.jsx)("a",{onClick:N,children:I18N.ScreenPanel.share_panel})}):null,d=y=>(0,f.memo)(()=>{const N=()=>(0,M.JW)(I18N.link.link_article_business_font_state,"_blank","noreferrer");return(0,W.jsx)("a",{className:"button-a",onClick:N,children:y})}),g=y=>{let{onClick:N}=y;return(0,f.memo)(()=>{const R=(0,p.wA)(),S=()=>{N&&N(R)};return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)("a",{className:"button-a",onClick:S,children:I18N.dModule.network_api_error_2}),(0,W.jsx)("p",{className:"button-p",children:I18N.dModule.network_api_error_3})]})})}},3895:(we,de,n)=>{"use strict";n.d(de,{FU:()=>p,OO:()=>H,Z8:()=>f,au:()=>ee,lY:()=>E,p_:()=>M,zB:()=>i});const i={OWNER:1e4,SUPERMANAGER:9999,MANAGER:999,MEMBER:99,LIMITER:10,VIEWER:9,BANNED:1,UNKNOWN:0,UNJOINED:-1},f={space_owner:16,space_manager:15,space_member:14,space_viewer:13,space_limiter:12,team_owner:11,team_manager:10,team_member:9,team_viewer:8,project_owner:6,project_manager:5,project_member:4,project_viewer:3,project_ban_viewer:2,project_team_owner:1,team_ban_viewer:1},M={org_owner:i.OWNER,org_manager:i.SUPERMANAGER,org_admin:i.MANAGER,org_member:i.MEMBER,org_viewer:i.VIEWER},p={space_owner:i.MANAGER,space_manager:i.MANAGER,space_member:i.MEMBER,space_viewer:i.VIEWER,space_limiter:i.LIMITER},E={team_owner:i.MANAGER,team_manager:i.MANAGER,team_member:i.MEMBER,team_viewer:i.VIEWER,team_none:i.VIEWER,team_ban_viewer:i.BANNED},ee=Object.assign({project_owner:i.MANAGER,project_team_owner:i.MANAGER,project_manager:i.MANAGER,project_member:i.MEMBER,project_viewer:i.VIEWER,project_none:i.VIEWER,project_ban_viewer:i.BANNED},E),H={space_owner:"project_manager",space_manager:"project_manager",space_member:"project_member",space_viewer:"project_viewer",team_owner:"project_manager",team_manager:"project_manager",team_member:"project_member",team_viewer:"project_viewer",team_ban_viewer:"project_ban_viewer",team_none:"project_viewer",project_owner:"project_manager"},A={space_owner:"team_manager",space_manager:"team_manager",space_member:"team_member",space_viewer:"team_viewer",team_none:"team_viewer",team_owner:"team_manager"}},96510:(we,de,n)=>{"use strict";n.d(de,{s:()=>W});var i=n(46795);const f=async(ae,Y)=>{const{project:J}=await(0,i.zi)("/api/dashboard/v5/projects/"+ae+"/invite",Y);return J},M=async(ae,Y)=>(0,i.SN)("/api/dashboard/v5/permissions/projects/"+ae,Y),p=async(ae,Y)=>{await(0,i.uz)("/api/dashboard/v5/permissions/projects/"+ae,Y)};var E=n(15573),ee=n(61654),H=n(50378);const A=async(ae,Y)=>await(0,i.DE)("/api/dashboard/v5/spaces/"+ae+"?org_cid="+Y),w={project_manager:"\u7684\u6743\u9650\u53D8\u4E3A\u300C\u7BA1\u7406\u5458\u300D",project_member:"\u7684\u6743\u9650\u53D8\u4E3A\u300C\u53EF\u7F16\u8F91\u300D",project_viewer:"\u7684\u6743\u9650\u53D8\u4E3A\u300C\u4EC5\u67E5\u770B\u300D",project_ban_viewer:"\u7684\u6743\u9650\u53D8\u66F4\u4E3A\u300C\u7981\u6B62\u67E5\u770B\u300D"};let q=function(ae){return ae.Org="org",ae.OrgSpace="space",ae.Folder="folder",ae.Project="project",ae}({});const W={"entry:projectAccess:initProjectData":async(ae,Y)=>{let{getState:J,dispatch:P}=ae,{payload:K}=Y;try{const{initData:V,members:l}=K,C=V==null?void 0:V.org,{user:b,space:x,project:d,team:g,top_parent_team:y,lang:N}=V||{},R=new Map,S=new Map;return R.set(g==null?void 0:g.cid,g),R.set(y==null?void 0:y.cid,y),g!=null&&g.parent_cid&&(g==null?void 0:g.parent_cid)!==y.cid&&R.set(g==null?void 0:g.parent_cid,y),S.set(d==null?void 0:d.cid,d),P({type:H.X2.UpdateState,payload:{user:b,org:{...C,members:l},space:x,folderListMap:R,projectListMap:S,lang:N}}),!0}catch(V){return console.error(V.message),!1}},"entry:projectAccess:inviteOrgMemberToProject":async(ae,Y)=>{let{getState:J,dispatch:P}=ae,{payload:K}=Y;const{projectCid:V,userCid:l,roleName:C,userName:b}=K;if(!V||!l)return;const x=J(),d=(0,ee.IE)(x),g=(0,ee.M0)(x),y=(0,ee._B)(x);try{const N=await f(V,{user_cid:l,role:C}),{space:R}=await A(g,d);y.set(N.cid,N),await P({type:H.X2.UpdateProjectListMap,payload:new Map(y)}),await P({type:H.X2.UpdateSpace,payload:R}),window.top.postMessage({type:"updateApp",data:{newApp:(0,E.A)(N)}},"*"),window.top.postMessage({type:"successMsg",data:{msg:{name:b,other:w[C]}}},"*")}catch(N){window.top.postMessage({type:"errMsg",data:{msg:"\u6743\u9650\u66F4\u6539\u5931\u8D25"}},"*")}},"entry:projectAccess:updateMemberProjectPermission":async(ae,Y)=>{let{getState:J,dispatch:P}=ae,{payload:K}=Y;const{projectCid:V,userId:l,roleName:C,userName:b}=K,x=J();try{const{permission:d}=await M(V,{target_role:C,target_user_id:l}),g=(0,ee._B)(x),y=g.get(V),N=(y==null?void 0:y.permissions)||[],R=N.find(U=>Number(U.user_id)===Number(l));let S=[];R?S=N.map(U=>Number(U.user_id)===Number(l)?d:U):S=[...N,d];const B={...y,permissions:S};g.set(V,B),await P({type:H.X2.UpdateProjectListMap,payload:new Map(g)}),window.top.postMessage({type:"updateApp",data:{newApp:(0,E.A)(B)}},"*"),window.top.postMessage({type:"successMsg",data:{msg:{name:b,other:w[C]}}},"*")}catch(d){window.top.postMessage({type:"errMsg",data:{msg:"\u6743\u9650\u66F4\u6539\u5931\u8D25"}},"*")}},"entry:projectAccess:removeProjectMemberPermission":async(ae,Y)=>{let{getState:J,dispatch:P}=ae,{payload:K}=Y;const{projectCid:V,userId:l,roleName:C,userName:b}=K,x=J();try{await p(V,{target_role:C,target_user_id:l});const d=(0,ee._B)(x),g=d.get(V),y=(g==null?void 0:g.permissions)||[];if(y.find(R=>Number(R.user_id)===Number(l))){const R=y.filter(B=>Number(B.user_id)!==Number(l)),S={...g,permissions:R};d.set(V,S),await P({type:H.X2.UpdateProjectListMap,payload:new Map(d)}),window.top.postMessage({type:"successMsg",data:{msg:{name:b,other:"\u7684\u6743\u9650\u5DF2\u79FB\u9664"}}},"*"),window.top.postMessage({type:"updateApp",data:{newApp:(0,E.A)(S)}},"*")}}catch(d){window.top.postMessage({type:"errMsg",data:{msg:"\u6743\u9650\u66F4\u6539\u5931\u8D25"}},"*")}}}},50378:(we,de,n)=>{"use strict";n.d(de,{Ay:()=>p,X2:()=>f});const i={user:{id:0,user_id:"",user_cid:"",email:"",is_viewer:!1,name:"",mobile:null,avatar:""},org:{name:"",cid:"",logo:null,spaces:[],plan:"",trial_end_on:null,next_billing_on:"",settings:{},permissions:[],limitation:{is_export_watermark:!1,is_org_quit_transfer:!0,is_org_recent:!0,max_mkt_count:0,max_org_log_days:0,max_pic_bytes:0,max_project_count:0,max_project_share_count:0,max_project_template_count:0,max_project_version_count:0,max_recycler_days:0,max_screen_count:0,storage:0},members:[]},space:{cid:"",created_at:"",deleted:!1,name:"",org_cid:"",permissions:[],space_type:"",updated_at:"",user_id:0,is_disable_banned_viewer:!0},folderListMap:new Map,projectListMap:new Map,lang:"zh-CN"};let f=function(E){return E.UpdateState="reducer:update:user",E.UpdateUser="reducer:update:user",E.UpdateOrg="reducer:update:org",E.UpdateSpace="reducer:update:space",E.UpdateFolderListMap="reducer:update:folderListMap",E.UpdateProjectListMap="reducer:update:projectListMap",E}({});const p=function(E,ee){E===void 0&&(E=i);const{type:H,payload:A}=ee;switch(H){case f.UpdateState:return{...E,...A};case f.UpdateUser:return{...E,user:{...E.user,...A}};case f.UpdateOrg:return{...E,org:{...E.org,...A}};case f.UpdateSpace:return{...E,space:{...E.space,...A}};case f.UpdateFolderListMap:return{...E,folderListMap:A};case f.UpdateProjectListMap:return{...E,projectListMap:A};default:return E}}},61654:(we,de,n)=>{"use strict";n.d(de,{IE:()=>ee,M0:()=>q,WR:()=>p,XW:()=>ae,_B:()=>Y,cb:()=>J,hG:()=>V,iF:()=>W,il:()=>w,kG:()=>A,oV:()=>K,q7:()=>C,wA:()=>E,yZ:()=>P});var i=n(63686),f=n(59318),M=n(37673);const p=b=>{var x;return(x=b.projectAccess.user)==null?void 0:x.user_id},E=b=>b.projectAccess.org,ee=b=>{var x;return((x=b.projectAccess.org)==null?void 0:x.cid)||""},H=b=>{var x;return((x=b.projectAccess.org)==null?void 0:x.members)||[]},A=b=>{var x;return((x=b.projectAccess.org)==null?void 0:x.permissions)||[]},w=b=>b.projectAccess.space,q=b=>b.projectAccess.space.cid,W=b=>b.projectAccess.space.permissions||[],ae=b=>b.projectAccess.folderListMap||new Map,Y=b=>b.projectAccess.projectListMap||new Map,J=(0,i.Mz)(p,A,(b,x)=>(0,f.oE)({userId:b,orgPermissions:x})),P=(0,i.Mz)(p,W,(b,x)=>(0,f.sq)({userId:b,spacePermissions:x})),K=(0,i.Mz)(W,b=>{const x=(0,f.Rc)(b);return b.reduce((d,g)=>{const{user_id:y}=g,N=(0,f.CF)({userId:y,permissionsMap:x,permissionScope:M.W.OrgSpace});return d.set(Number(y),N)},new Map)}),V=(0,i.Mz)(W,b=>b.filter(d=>d.role==="space_limiter").reduce((d,g)=>{const{user_id:y}=g;return d.set(Number(y),g)},new Map)),l=(0,i.Mz)(H,b=>b.reduce((x,d)=>{const{user_id:g,user_cid:y,email:N,mobile:R}=d;return g&&y?x.set(Number(g)||g,{...d}):(N&&x.set(N,{...d}),R&&x.set(R,{...d}),x)},new Map)),C=(0,i.Mz)(A,l,(b,x)=>b.reduce((d,g)=>{const{user_id:y,unsign_remark:N}=g,R=y||N,S=x.get(R)||{},B=(0,f.Sc)(g);return d.set(R,{...S,permission:B})},new Map))},37673:(we,de,n)=>{"use strict";n.d(de,{W:()=>i,p:()=>f});let i=function(M){return M.Org="org",M.OrgSpace="space",M.Folder="folder",M.Project="project",M}({}),f=function(M){return M.OrgSpace="orgspace-permission-tip",M.OrgSpaceLimiter="orgspace-limiter-permission-tip",M.RootFolder="root-folder-permission-tip",M.SubFolder="sub-folder-permission-tip",M.Project="project-permission-tip",M}({})},15573:(we,de,n)=>{"use strict";n.d(de,{A:()=>p,u:()=>M});var i=n(63924),f=n.n(i);const M=(E,ee)=>{if(!(E!=null&&E.cid))return-1;let H=0,A="",w=E;for(;w&&!w.root_project&&(H=H+1,A=w.parent_cid,!!A);)w=ee.get(A);return H};function p(E){return E&&Object.entries(E).reduce((ee,H)=>{let[A,w]=H;return Object.assign(ee,{[f()(A)]:w})},{})}},44367:(we,de,n)=>{"use strict";n.d(de,{HZ:()=>M,rA:()=>E});var i=n(39547),f=n(67029);const M=ee=>{const H={pt_total_seats:10,pt_bindings:[],ptlt_total_seats:0,ptlt_bindings:[],bx_total_seats:10,bx_bindings:[]},{pt_total_seats:A,pt_bindings:w,ptlt_total_seats:q,ptlt_bindings:W,bx_total_seats:ae,bx_bindings:Y}=ee||H;return{plTotalSeats:q,pTotalSeats:A,pBindings:w,plBindings:W,bTotalSeats:ae,bBindings:Y}},p=(ee,H)=>{const{pBindings:A,plBindings:w,bBindings:q}=M(ee),W=w.includes(H),ae=A.includes(H),Y=q.includes(H);return{isPLSeat:W,isPSeat:ae,isBSeat:Y}},E=(ee,H)=>{if(!ee)return{protoSeat:!1,bomxSeat:!1};if(ee.otype==="personal")return{protoSeat:!0,bomxSeat:!0};const A=i.t.InitialOrg(ee),w=A.planSdk.getIsDefaultFreeOrg(),q=A.planSdk.getOrgStatus()===f._E.Trial;if(w||q)return{protoSeat:!0,bomxSeat:!0};const{pTotalSeats:W,bTotalSeats:ae,plTotalSeats:Y}=M(ee),{isPLSeat:J,isPSeat:P,isBSeat:K}=p(ee,H);return{protoSeat:W>0||Y>0?J||P:!0,bomxSeat:ae>0?K:!0}}},59318:(we,de,n)=>{"use strict";n.d(de,{CF:()=>V,CZ:()=>p,Cj:()=>q,Rc:()=>K,Sc:()=>H,oE:()=>W,ox:()=>ee,pf:()=>P,sq:()=>ae});var i=n(3895),f=n(37673);const M=function(l,C,b){return b===void 0&&(b=!1),{level:l,roleName:C,isInherited:b,isOwner:l>=i.zB.OWNER,isSuperManager:l>=i.zB.SUPERMANAGER,isManager:l>=i.zB.MANAGER,isMember:l>=i.zB.MEMBER,isViewer:l>=i.zB.VIEWER,isLimiter:l===i.zB.LIMITER,isBanned:l===i.zB.BANNED,isUnknown:l===i.zB.UNKNOWN}},p=M(i.zB.UNKNOWN),E=M(i.zB.UNJOINED),ee=(l,C)=>{if(!C||C.length<=0)return null;const b=C.find(x=>{let{user_id:d,unsign_remark:g}=x;return Number(d)===Number(l)||g===l});return b||null},H=l=>l?M(i.p_[l.role],l.role):M(i.zB.UNKNOWN),A=(l,C)=>{if(!l)return[];let b=[],x=l,d=C.get(x);for(;d&&!d.root_project;)b=b.concat(d.permissions),x=d.parent_cid,d=C.get(x);return b},w=(l,C,b)=>{let x=A(l,C);return x=x.concat(b).reverse(),x=x.filter(d=>d.role!=="space_limiter"),x.map(d=>{const g=folderInheritePermissionRoleFixMap[d.role];return g?{...d,role:g,inherited:!0}:{...d,inherited:!0}})},q=(l,C,b)=>{let x=A(l,C);return x=x.concat(b).reverse(),x=x.filter(d=>d.role!=="space_limiter"),x.map(d=>{const g=i.OO[d.role];return g?{...d,role:g,inherited:!0}:{...d,inherited:!0}})},W=l=>{const{orgPermissions:C,userId:b}=l;if(!b||!C||C.length<1)return M(i.zB.UNKNOWN);const x=ee(b,C);return x?M(i.p_[x.role],x.role):M(i.zB.UNKNOWN)},ae=l=>{const{spacePermissions:C,userId:b}=l;if(!b||!C||C.length<1)return M(i.zB.UNKNOWN);const x=ee(b,C);return x?M(i.FU[x.role],x.role):M(i.zB.UNKNOWN)},Y=l=>{const{userId:C,orgPermissions:b,spacePermissions:x,currentFolder:d,folderListMap:g}=l;if(!C||!d)return M(permissionLevels.UNKNOWN);const{org_cid:y,space_cid:N}=d;if(!y&&!N)return M(permissionLevels.OWNER,"team_owner");if(!x||x.length<1)return M(permissionLevels.UNKNOWN);const{isRoot:R,root_project:S}=d;if(R||S){const F=ae({spacePermissions:x,userId:C});return F.roleName==="space_limiter"?{...W({orgPermissions:b,userId:C}),isLimiter:!0}:F}const B=d.permissions||[],U=w(d.parent_cid,g,x),ie=Object.values(Object.fromEntries([...U,...B].map(F=>[F.user_id,F]))),L=ee(C,ie);return L?M(folderPermissionLevelsMap[L.role],L.role,L.inherited):M(permissionLevels.UNKNOWN)},J=l=>{const{userId:C,spacePermissions:b,currentProject:x,folderListMap:d}=l;if(!C||!x)return M(permissionLevels.UNKNOWN);const{space_cid:g}=x;if(!g)return M(permissionLevels.OWNER,"project_owner");if(!b||b.length<1)return M(permissionLevels.UNKNOWN);const y=x.permissions||[],N=q(x.team_cid,d,b),R=Object.values(Object.fromEntries([...N,...y].map(B=>[B.user_id,B]))),S=ee(C,R);return S?M(projectPermissionLevelsMap[S.role],S.role,S.inherited):M(permissionLevels.UNKNOWN)},P=function(l,C,b){return b===void 0&&(b=!1),C?typeof C[l]<"u"?M(C[l],l,b):M(i.zB.UNJOINED):M(i.zB.UNKNOWN)},K=l=>!l||l.length<1?new Map:l.reduce((C,b)=>C.set(Number(b.user_id),b),new Map),V=l=>{const{permissionsMap:C,userId:b,permissionScope:x}=l;if(!b||!C||C.size<1)return M(i.zB.UNKNOWN);const{role:d,inherited:g}=C.get(Number(b))||{};if(!d)return M(i.zB.UNKNOWN);let y=null;switch(x){case f.W.Org:y=i.p_;break;case f.W.OrgSpace:y=i.FU;break;case f.W.Folder:y=i.lY;break;case f.W.Project:y=i.au;break;default:break}return P(d,y,g)}},53159:(we,de,n)=>{"use strict";n.d(de,{A:()=>l});var i=n(51044),f=n(21676),M=n(66748),p=n.n(M),E=n(98236),ee=n.n(E),H=n(28149);const A=f.Ay.label.withConfig({displayName:"styled__StyledLabel",componentId:"sc-1pwp3tx-0"})(["position:relative;display:inline-flex;align-items:baseline;line-height:1.5;cursor:pointer;color:#5b6b73;> input[type=radio]{position:absolute;opacity:0;}&.regular{font-size:14px;}&.small{font-size:12px;.Check-state{transform:translateY(2px);}}&.readonly{cursor:default;}&.is-disabled{cursor:not-allowed;&::after{content:'';position:absolute;left:0;top:0;width:100%;height:100%;background-color:rgba(255,255,255,0.5);}}.Check-state{position:relative;flex:0 0 1em;margin-right:0.33333em;width:1em;height:1em;transform:translateY(1px);font-size:12px;background-color:#f6f7f8;border:1px solid #8d9ea7;border-radius:2px;color:#fff;.svg-icon.check{position:absolute;top:-1px;left:-1px;opacity:0;}}&.small .Check-state{transform:translateY(2px);}&.CoreRadio,&.Radio{&.is-checked{.Check-state{background-color:#298df8;border-color:transparent;color:#fff;.svg-icon.check{transform:scale(0.833);}}}}&:not(.is-checked) .Check-state .icon{speak:none;opacity:0;}&.CoreRadio{.Check-state{background-color:#fff;border-color:#bacdd6;}&.is-checked .Check-state{background-color:#eb5648;}}"]),w=(0,f.Ay)(A).withConfig({displayName:"styled__StyledRadio",componentId:"sc-1pwp3tx-1"})([".Check-state{padding:1px;border-radius:50%;&:after{content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:block;width:4px;height:4px;background-color:#fff;border-radius:50%;}}.is-checked .Check-state{position:relative;}"]),q=f.Ay.span.withConfig({displayName:"styled__StyledRadioGroup",componentId:"sc-1pwp3tx-2"})(["position:relative;display:flex;flex-wrap:wrap;&.is-disabled{cursor:not-allowed;}.Radio,.CoreRadio{margin-right:.5em;min-height:2em;}"]);var W=n(57464);function ae(C,b,x){return(b=Y(b))in C?Object.defineProperty(C,b,{value:x,enumerable:!0,configurable:!0,writable:!0}):C[b]=x,C}function Y(C){var b=J(C,"string");return typeof b=="symbol"?b:b+""}function J(C,b){if(typeof C!="object"||!C)return C;var x=C[Symbol.toPrimitive];if(x!==void 0){var d=x.call(C,b||"default");if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(C)}class P extends i.PureComponent{constructor(){super(...arguments),ae(this,"state",{prevProps:this.props,isChecked:this.props.isChecked}),ae(this,"onToggle",()=>{const{name:b,value:x,label:d,onToggle:g,onChange:y}=this.props,{isChecked:N}=this.state,{canToggle:R}=this,S=R?!0:N;this.setState({isChecked:S}),g(S,b,x||d),y(b,x||d,S)})}static getDerivedStateFromProps(b,x){let{prevProps:d,isChecked:g}=x;return ee()(d,b)?null:{prevProps:b,isChecked:b.isChecked}}get isDisabled(){const{isDisabled:b,disabled:x}=this.props;return b||x}get readOnly(){return this.props.readOnly}get canToggle(){const{isDisabled:b,readOnly:x}=this;return!b&&!x}render(){const{size:b,theme:x,className:d,label:g,name:y}=this.props,{isChecked:N}=this.state,{isDisabled:R,readOnly:S}=this;return(0,W.jsxs)(w,{className:(0,H.Hn)([x==="core"?"CoreRadio":"Radio",b,d,N&&"is-checked",R&&"is-disabled",S&&"readonly"]),children:[(0,W.jsx)("input",{type:"radio",defaultChecked:N,disabled:R,name:y,onClick:this.onToggle}),(0,W.jsx)("span",{className:"Check-state"}),(0,W.jsx)("span",{className:"Check-label",children:g})]})}}ae(P,"propTypes",{size:p().oneOf(["regular","small"]),theme:p().oneOf(["core","plain"]),className:p().string,label:p().any,name:p().string,value:p().any,isChecked:p().bool,isDisabled:p().bool,disabled:p().bool,readOnly:p().bool,onChange:p().func.isRequired,onToggle:p().func.isRequired}),ae(P,"defaultProps",{size:"regular",theme:"plain",isChecked:!1,label:"",className:"",onChange:()=>null,onToggle:()=>null});class K extends i.PureComponent{constructor(){super(...arguments),ae(this,"name",this.props.name||Math.random().toString(36).substring(2,15)),ae(this,"state",{prevProps:this.props,value:this.props.value}),ae(this,"createOnChangeHandler",(b,x,d)=>()=>{const{onToggle:g,onChange:y}=this.props,{value:N}=this.state,{canToggle:R}=this,S=R?x:N;this.setState({value:S}),g(S,b),y({name:b,value:S,idx:d})})}static getDerivedStateFromProps(b,x){let{prevProps:d,value:g}=x;return ee()(d,b)?null:{prevProps:b,value:b.value}}get isDisabled(){const{isDisabled:b,disabled:x}=this.props;return b||x}get readOnly(){return this.props.readOnly}get canToggle(){const{isDisabled:b,readOnly:x}=this;return!b&&!x}render(){const{size:b,theme:x,className:d,optionList:g}=this.props,{value:y}=this.state,{name:N,isDisabled:R,readOnly:S}=this,B=(0,H.Hn)([x==="core"?"CoreRadioGroup":"RadioGroup",b,d,R&&"is-disabled",S&&"readonly"]);return(0,W.jsx)(q,{className:B,children:g.map((U,ie)=>U&&(0,W.jsx)(P,{name:N,size:b,theme:x,label:(0,H.Oi)(U),type:"radio",isChecked:(0,H.o3)(U,y),isDisabled:R||U.isDisabled,readOnly:S,onChange:R||U.isDisabled?void 0:this.createOnChangeHandler(N,(0,H.nE)(U),ie)},ie))})}}ae(K,"propTypes",{size:p().oneOf(["regular","small"]),theme:p().oneOf(["core","plain"]),className:p().string,name:p().string,optionList:p().arrayOf(p().oneOfType([p().string,p().number,p().shape({label:p().any,value:p().any,isDisabled:p().bool})])).isRequired,value:p().oneOfType([p().number,p().string]),isDisabled:p().bool,disabled:p().bool,readOnly:p().bool,onChange:p().func.isRequired,onToggle:p().func.isRequired}),ae(K,"defaultProps",{size:"regular",theme:"plain",className:"",optionList:[],onChange:()=>null,onToggle:()=>null});const V=(0,f.Ay)(K).withConfig({displayName:"styles__StyledRadioGroup",componentId:"sc-1x96wso-0"})([".Radio{color:",';input[type="radio"]{cursor:pointer;}&.is-checked{color:',";.Check-state{background:",";&::after{background:#fff;}}}&:not(.is-checked){.Check-state{background:",";border:1px solid ",";&::after{background:",";}}}&.is-disabled::after{background-color:",";opacity:0.5;}}"],C=>C.theme.color_text_L2,C=>C.theme.color_text_L1,C=>C.theme.color_proto,C=>C.theme.color_bg_white,C=>C.theme.color_text_disabled01,C=>C.theme.color_bg_white,C=>C.theme.color_bg_white);class l extends i.PureComponent{render(){return(0,W.jsx)(V,{...this.props})}}},86778:(we,de,n)=>{"use strict";n.d(de,{A:()=>P});var i=n(51044),f=n(21676),M=n(66748),p=n.n(M),E=n(98236),ee=n.n(E),H=n(28149);const A=f.Ay.label.withConfig({displayName:"styled__StyledSwitch",componentId:"sc-16h4tgy-0"})(["position:relative;display:inline-block;margin:0 10px;width:28px;height:10px;vertical-align:text-bottom;background:rgba(22,132,252,0.4);border-radius:100px;cursor:pointer;transform:matrix(-1,0,0,1,0,0);transition:all 0.2s ease-in;transition-delay:0.15s;&.readonly{cursor:default;}> button{position:absolute;top:-20%;left:0;display:flex;justify-content:center;align-items:center;width:14px;height:14px;font-size:14px;border-radius:50%;background:#1684FC;box-shadow:0px 1px 1px rgba(0,0,0,0.15),0px 0px 2px rgba(0,0,0,0.12);transform:matrix(-1,0,0,1,0,0);cursor:inherit;transition:all 0.2s cubic-bezier(0.55,0.06,0.68,0.19);}&.small{width:28px;height:10px;vertical-align:baseline;> button{width:14px;height:14px;border-width:1px;}}&.is-checked{background:#dbdbdb;> button{transform:translate(14px,0%);cursor:inherit;background-color:#fff;box-shadow:0px 1px 1px rgba(0,0,0,0.15),0px 0px 2px rgba(0,0,0,0.12);}&.small > button{transform:translate(14px,0);background-color:#999;}&.small{background-color:#59515c;}}&.is-disabled{background-color:#dedee4;cursor:not-allowed;&.is-checked{background-color:rgba(22,132,252,0.4);}button{background-color:#f6f7f8;}}&.Switch-IOS{background:#1684fc;transform:matrix(1,0,0,1,0,0);transition:all 0.2s ease-in;> button{top:1px;left:1px;background:#fff;transform:matrix(1,0,0,1,0,0);}&.small{width:24px;height:12px;border-radius:6px;> button{width:10px;height:10px;border-width:0;}}&.is-checked{&.small > button{transform:translate(12px,0);background-color:#fff;}&.small{background-color:#ccc;}}}&.Switch-IOS-NoTransform{background:#1684fc;transition:all 0.2s ease-in;> button{top:1px;left:1px;background:#fff;transform:matrix(1,0,0,1,0,0);}&.small{width:24px;height:12px;border-radius:6px;> button{width:10px;height:10px;border-width:0;}}&.is-checked{&.small > button{transform:translate(12px,0);background-color:#fff;}&.small{background-color:#ccc;}}}"]);var w=n(57464);function q(K,V,l){return(V=W(V))in K?Object.defineProperty(K,V,{value:l,enumerable:!0,configurable:!0,writable:!0}):K[V]=l,K}function W(K){var V=ae(K,"string");return typeof V=="symbol"?V:V+""}function ae(K,V){if(typeof K!="object"||!K)return K;var l=K[Symbol.toPrimitive];if(l!==void 0){var C=l.call(K,V||"default");if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(V==="string"?String:Number)(K)}class Y extends i.PureComponent{constructor(){super(...arguments),q(this,"state",{prevProps:this.props,isChecked:this.props.isChecked}),q(this,"toggle",V=>{let{target:l}=V;const{onChange:C}=this.props,{isChecked:b}=this.state,{isDisabled:x,canToggle:d}=this,g=d?!b:b;return l.blur(),this.setState({isChecked:g}),!x&&C(g)})}static getDerivedStateFromProps(V,l){let{prevProps:C}=l;return ee()(C,V)?null:{prevProps:V,isChecked:V.isChecked}}get isDisabled(){const{isDisabled:V,disabled:l}=this.props;return V||l}get readOnly(){return this.props.readOnly}get canToggle(){const{isDisabled:V,readOnly:l}=this;return!V&&!l}render(){const{size:V,readOnly:l,className:C,children:b,isIOS:x,isIOSReverse:d}=this.props,{isChecked:g}=this.state,{isDisabled:y}=this;return(0,w.jsxs)(A,{className:(0,H.Hn)(["Switch",x&&"Switch-IOS",d&&"Switch-IOS-NoTransform",V,g?"is-checked":"isnt-checked",y&&"is-disabled",l&&"readonly",C]),children:[(0,w.jsx)("button",{type:"button",disabled:y,onClick:this.toggle}),b]})}}q(Y,"propTypes",{className:p().string,size:p().oneOf(["regular","small"]),isChecked:p().bool,isDisabled:p().bool,disabled:p().bool,readOnly:p().bool,isIOS:p().bool,isIOSReverse:p().bool,onChange:p().func,children:p().any}),q(Y,"defaultProps",{className:"",size:"regular",isChecked:!1,isDisabled:!1,disabled:!1,readOnly:!1,isIOS:!1,isIOSReverse:!1,onChange:()=>null});const J=(0,f.Ay)(Y).withConfig({displayName:"styles__StyledSwitch",componentId:"sc-1wltq4q-0"})(["&.Switch-IOS{background:",";transform:matrix(1,0,0,-1,0,0);margin:0;button{border:unset;background:",";}&.is-checked{&.small{background:",";button{background:",";}}}}"],K=>K.theme.color_text_disabled01,K=>K.theme.color_text_btn,K=>K.theme.color_proto,K=>K.theme.color_text_btn);class P extends i.PureComponent{render(){return(0,w.jsx)(J,{...this.props})}}},7775:(we,de,n)=>{"use strict";n.d(de,{it:()=>E,V0:()=>q,mq:()=>w});var i=n(51044),f=n(10481),M=n(21676);const p=(0,M.Ay)(f.Ay).withConfig({displayName:"styled__StyledWorkspaceSelectProto",componentId:"sc-32xdp1-0"})(["&.WorkspaceSelect{padding:0px;border-radius:4px;button{width:auto;display:flex;padding:0 6px;align-items:center;color:",";}.caret{flex-shrink:0;width:26px;display:flex;justify-content:center;align-items:center;padding:0;color:",";svg{width:26px;height:26px;}}&:not(.is-disabled):not(.readonly):hover{border-color:",";button{width:calc(100% - 26px);}.caret{padding:0;color:",";}}&.is-open{border-color:transparent;}}"],W=>W.theme.color_text_L1,W=>W.theme.color_text_L3,W=>W.theme.color_bg_border_02,W=>W.theme.color_text_L1),E="select-menu-width-108",ee=(0,M.DU)(["#IBOT_SELECT_MENU_ROOT{.SelectMenuPortal{.menu-animation-select{margin-left:-15px;}.WorkspaceSelectMenu{padding:8px;border-radius:8px;color:",";background:",";box-shadow:",";&.is-open{border:1px solid ",";border-radius:8px;width:176px;max-width:176px;padding:8px;background-color:",";box-shadow:",";.SelectOption{&:not(.empty-msg):not(.is-disabled):hover{background:",";}}}> .divider{border-bottom:1px solid ",";margin:5px;}.SelectOption{border-radius:4px;height:28px;line-height:28px;&.is-active{color:",";}&:not(.empty-msg):not(.is-disabled):not(.is-active):hover{background-color:",";color:",";}}}}.autoFillPanelSelectScreenMenu{margin-left:-138px;margin-top:26px;width:175px;}.bdr-width-input-menu{width:88px;}.arrow-setting-menu{width:78px;}.","{width:108px;}}"],W=>W.theme.color_text_L1,W=>W.theme.color_bg_white,W=>W.theme.shadow_m,W=>W.theme.color_bg_border_01,W=>W.theme.color_bg_white,W=>W.theme.shadow_m,W=>W.theme.color_btn_secondary_hover,W=>W.theme.color_bg_border_01,W=>W.theme.color_text_L1,W=>W.theme.color_btn_secondary_hover,W=>W.theme.color_text_L1,E);var H=n(7290),A=n(57464);class w extends i.PureComponent{render(){return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(p,{...this.props,arrowSvg:(0,A.jsx)(H.C,{className:"triangle-icon",name:"common/expand@26"})}),(0,A.jsx)(ee,{})]})}}class q extends i.PureComponent{render(){return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(f.eB,{...this.props}),(0,A.jsx)(ee,{})]})}}},24660:(we,de,n)=>{"use strict";n.d(de,{l:()=>i});const i=function(f,M,p,E){p===void 0&&(p=""),E===void 0&&(E=!1);let ee;return f?ee={mode:"org",orgCid:f.cid,payEntrance:M,checkoutArea:"proto",checkoutPlace:p||"org_use_vip_mkt"}:ee={mode:E?"org":"solo",isSelectOrg:!!E,payEntrance:M,checkoutArea:"proto",checkoutPlace:p||"solo_use_vip_mkt"},ee}},64598:(we,de,n)=>{"use strict";n.d(de,{_:()=>M,f:()=>f});var i=n(36820);const f=p=>{let{exposure_reason:E}=p;try{(0,i.kH)("trial_watermark_exposure",{exposure_reason:E})}catch(ee){console.log(ee.message)}},M=p=>{let{click_button:E}=p;try{(0,i.kH)("trial_watermark_click",{click_button:E})}catch(ee){console.log(ee.message)}}},10286:(we,de,n)=>{"use strict";n.d(de,{ER:()=>l,J_:()=>J,Or:()=>w,QC:()=>d,X0:()=>K,Y5:()=>P,aX:()=>x,dJ:()=>ae,g:()=>q,l1:()=>b,wi:()=>A,yq:()=>W});var i=n(26114),f=n(29815),M=n(72907),p=n(46795),E=n(29601),ee=n(36521),H=n(57464);const A=async g=>{let{projectCid:y}=g;return(0,p.DE)("/api/upper/web_v1/sharing/initial?cid="+y)},w=async g=>{let{projectCid:y,sharing:N}=g;return(await(0,p.zi)("/api/flat/web_v1/project_share/"+y,{...N})).project_share},q=async g=>{let{projectCid:y,sharingCid:N}=g;try{return await(0,p.OD)("/api/flat/web_v1/project_share/"+N+"?project_cid="+y)}catch(R){await(0,M.FY)(R)}},W=async g=>{let{sharing:y}=g;try{return await(0,p.SN)("/api/flat/web_v1/project_share/"+y.cid,{project_share:y})}catch(N){await(0,M.FY)(N)}},ae=async g=>{try{return await(0,p.DE)("/api/flat/web_v1/preview/visit_count/"+g)}catch(y){console.error(y)}},Y=()=>{const g=document.getElementById("workspace");(0,i.createRoot)(g).render((0,H.jsx)(f.A,{locale:(0,E.w)(),errorType:404,customDes:I18N.ToolBar.ReEnter,isShowPrimaryBtn:!1}))},J=async g=>{try{if(!g.accessToken||g.project.access_token===g.accessToken)return P(g.project);{const{project:y,accessToken:N}=g,{project_share:R}=await(0,p.DE)("/api/flat/web_v1/project_share/"+y.cid+"?access_token="+N);return{sharing:{...R,type:"advanced",view_mode:R.device_model}}}}catch(y){await Y()}},P=g=>{const{cid:y,access_token:N,access:R,building:S,comment_permission:B,password:U,visibility:ie,wechat:L,is_first_canvas_open:F}=g,X=new URLSearchParams(location.search),le=X.get("screen"),oe=X.get("canvasId"),xe=X.get("view_mode")||(0,ee.Yt)(y+"_default_sharing_view_mode","read_only",ee.qW.String),Ee=X.get("view_mode")||(0,ee.Yt)(y+"_default_sharing_view_mode","read_only",ee.qW.String),Oe=!!X.get("selection"),Be=Oe?X.get("selection").split(","):[];return{sharing:{type:"default",project_cid:y,access_token:N,view_access:R,view_sticky:S,comment_permission:B,password:U,visibility:ie,wechat:L,view_mode:xe,screen_visible_switch:Oe,screen_visible_list:Be,page_begin:le,canvas_begin:oe,device_model:Ee,is_first_canvas_open:F}}},K=async g=>{let{projectCid:y}=g;try{const{project_shares:N}=await(0,p.DE)("/api/flat/web_v1/project_share/"+y+"/all");return N.sort((R,S)=>new Date(S.created_at).getTime()-new Date(R.created_at).getTime())}catch(N){await(0,M.FY)(N)}},V=async g=>{try{const{result:y}=await fetchGetJSON("/api/accesses/v4/project/"+g+"/permission_check?permission=P:update");return y}catch(y){await apiErrorModals(y)}},l=async g=>{let y=null;try{y=await(0,p.DE)("/flpak/ww-p2meta/"+g)}catch(N){await(0,M.FY)(N)}return y},C={access_token:"",comment_permission:"",device_model:"",highlight:!0,password:"",project_cid:"",screen_visible_switch:!1,screen_visible_list:[],shell_type:"device",simulator_type:"device",sticky:!0,view_access:"private",view_count:0,view_prd:!1,wechat:!1,enable_version_record:!1,view_sticky:!0,is_first_canvas_open:!1},b=()=>({sharing:C}),x=async g=>{let y,N;try{y=await(0,p.DE)("/api/upper/web_v1/basics/"+g+"/get_details"),y&&JSON.stringify(y)!=="{}"&&(N=!0)}catch(R){y=R,N=!1}return{result:y,statusOk:N}},d=async g=>{let y,N;try{y=await(0,p.DE)("/api/dsh2/web_v1/permissions/can_edit_check?cid="+g),y&&JSON.stringify(y)!=="{}"&&(N=!0)}catch(R){y=R,N=!1}return{result:y,statusOk:N}}},77180:(we,de,n)=>{"use strict";n.d(de,{gE:()=>f,nM:()=>i,nQ:()=>M});const i="local_sharing_copy_url_v8_1",f=50,M={public:"share_anyone_view",restricted:"org_members_only"}},40432:(we,de,n)=>{"use strict";n.d(de,{n:()=>Ti});var i=n(51044),f=n(28055),M=n(96510),p=n(82928),E=n(50378),ee=n(30939);const H={cid:"pslj5lho8lkbh1m4",project_cid:"pblj5lho3sfrgsvp",view_access:"restricted",access_token:"bNDBP6orwlnj5R57xaJ4y",password:"",view_count:0,view_prd:!0,screen_visible_switch:!1,screen_visible_list:[],wechat:!1,highlight:!0,sticky:!0,view_sticky:!0,comment_permission:"org_member",link_name:"\u5206\u4EAB",is_default_link:!1,creator_id:2735130,expire_type:"forever",device_model:"read_only",is_first_canvas_open:!1},A=null,w="123",q={projectBasicToken:"BcHc8Xdrrwlnj5pdDxPloA",projectShares:[{cid:"pslj5lho8lkbh1m4",project_cid:"pblj5lho3sfrgsvp",view_access:"restricted",access_token:"bNDBP6orwlnj5R57xaJ4y",password:"",view_count:0,view_prd:!0,screen_visible_switch:!1,screen_visible_list:[],wechat:!1,highlight:!0,sticky:!0,view_sticky:!0,comment_permission:"org_member",link_name:"\u5206\u4EAB",is_default_link:!1,creator_id:2735130,expire_type:"forever",device_model:"bbb"},{cid:"pslj5lho8lkbh1m4",project_cid:"pblj5lho3sfrgsvp",view_access:"restricted",access_token:"bNDBP6orwlnj5R57xaJ4y",password:"",view_count:0,view_prd:!0,screen_visible_switch:!1,screen_visible_list:[],wechat:!1,highlight:!0,sticky:!0,view_sticky:!0,comment_permission:"org_member",link_name:"\u5206\u4EAB",is_default_link:!1,creator_id:2735130,expire_type:"forever",device_model:"bbb"},{cid:"pslj5lho8lkbh1m4",project_cid:"pblj5lho3sfrgsvp",view_access:"restricted",access_token:"bNDBP6orwlnj5R57xaJ4y",password:"",view_count:0,view_prd:!0,screen_visible_switch:!1,screen_visible_list:[],wechat:!1,highlight:!0,sticky:!0,view_sticky:!0,comment_permission:"org_member",link_name:"\u5206\u4EAB",is_default_link:!1,creator_id:2735130,expire_type:"forever",device_model:"bbb"}]},W={owner_id:10,owner_name:"d9",owner_email:"d9@d.dd",owner_avatar:"/images/avatar.png",id:71,limitation:{storage:5e3,exportable:["png","pngs","htmlzip"],encryptable:!0,inspectable:!0,slices:!0,projects:65535,screens:65535,commentable:!0},screens_count:0,cid:"pb2lje6hu9dax5akx",team_cid:"teuaroot",space_cid:null,name:"sharing",type:"proto2",attr:{},created_at:1687863747e3,updated_at:1688043155e3,timestamp:"1688043155",access:"public",access_token:"32vJ5gBXrwws03fxYV0OK2",version:"v3",icon:null,splash:null,width:390,height:844,device:"iphone",model:"iphone_13_pro",scale:100,archived:!1,parent_cid:null,source_upper_cid:null,clones:0,shell_type:"device",password:"",wechat:!1,highlight:!0,preview_option:1,expired:!1,deleted:!1,duplicating:!1,permissions:[{user_id:10,role:"project_owner"}],is_org_project:!1,is_sub_project:!1,runner_mode:"preview",comment_permission:"org_member",tabs:null,visibility:"open",building:"view_sticky"},ae={owner_id:10,owner_name:"d9",owner_email:"d9@d.dd",owner_avatar:"/images/avatar.png",id:71,limitation:{storage:5e3,exportable:["png","pngs","htmlzip"],encryptable:!0,inspectable:!0,slices:!0,projects:65535,screens:65535,commentable:!0},screens_count:0,cid:"pb2lje6hu9dax5akx",team_cid:"teuaroot",space_cid:null,name:"sharing",type:"proto2",attr:{},created_at:1687863747e3,updated_at:1688043155e3,timestamp:"1688043155",access:"public",access_token:"32vJ5gBXrwws03fxYV0OK2",version:"v3",icon:null,splash:null,width:390,height:844,device:"iphone",model:"iphone_13_pro",scale:100,archived:!1,parent_cid:null,source_upper_cid:null,clones:0,shell_type:"device",password:"",wechat:!1,highlight:!0,preview_option:1,expired:!1,deleted:!1,duplicating:!1,permissions:[{user_id:10,role:"project_owner"}],is_org_project:!1,is_sub_project:!1,runner_mode:"preview",comment_permission:"org_member",tabs:null,visibility:"open",building:"view_sticky"};var Y=n(10286),J=n(46664),P=n(60482),K=n(15039);const l=(()=>{const e={project:void 0,flatKey:void 0,theme:"light",user:void 0,org:void 0,settingPageType:"create",subSettingPageType:"basic",currentSharing:H,hostType:"proto",topPageIndex:"edit",advancedSharingList:[],canEditByUser:!1,mainPage:"share",tabIndex:0,projShareToEdit:"",members:[],isEditMode:location.pathname.includes("/design/"),screenMetaList:void 0,initData:{},loading:!0,hostSharingData:void 0,sharingToast:"",currentSelectSharing:void 0,isOnlyMemberManager:!1,hostCurrentScreen:void 0},r=function(v,m){v===void 0&&(v=e);let{type:I="sharing:state:update",payload:j=e}=m;switch(I){case"sharing:state:update":return{...v,...j};case"sharing:state:clear":return{...e};default:return v}},c={"sharing:init":(v,m)=>{let{dispatch:I}=v,{payload:j}=m;I({type:"sharing:state:update",payload:j})},"sharing:currentSharing:update":(v,m)=>{let{getState:I,dispatch:j}=v,{payload:{updatedKV:D}}=m;const Z=I(),T={...u.getCurrentSharing(Z),...D};j({type:"sharing:state:update",payload:{currentSharing:T}})},"sharing:remote:sharing:update":async(v,m)=>{let{getState:I,dispatch:j}=v,{payload:{sharingData:D,updatedKV:Z}}=m;const G=I(),T=u.getOrg(G),re=u.getProject(G);let ne;if(D.type==="default"){var k,te;ne=async()=>(0,J.Yu)(re.cid,{...Z}),await(0,P.eH)({updateType:"update",updateFn:ne,org:T});const se={...re,...Z};j({type:"sharing:state:update",payload:{project:se}}),(k=MB)!=null&&k.action&&((te=MB)==null||te.action("current:update:state",{currentProject:se}))}else{const se=u.getAdvancedSharingList(G),he={...D,...Z};ne=async()=>(0,Y.yq)({sharing:he});const{expired_at:ue}=await(0,P.eH)({updateType:"update",updateFn:ne,org:T,updatedKV:Z});j({type:_["sharing:currentSharing:update"],payload:{updatedKV:{expired_at:ue}}});const pe=se.map(z=>z.cid===he.cid?{...he,expired_at:ue}:z);j({type:_["sharing:advancedSharingList:update"],payload:{sharingList:pe}})}},"sharing:remote:sharing:delete":async(v,m)=>{let{getState:I,dispatch:j}=v,{payload:{sharingCid:D}}=m;const Z=I(),G=u.getProject(Z),T=u.getAdvancedSharingList(Z);await(0,Y.g)({projectCid:G.cid,sharingCid:D});const re=T.filter(ne=>ne.cid!==D);j({type:_["sharing:advancedSharingList:update"],payload:{sharingList:re}})},"sharing:settingPage:advanced:confirm":async(v,m)=>{let{getState:I,dispatch:j}=v,{payload:{updatedKV:D,isCustom:Z}}=m;const G=I(),T=u.getSettingPageType(G),re=u.getCurrentSharing(G),ne=u.getOrg(G),k=u.getProject(G);if(T==="create"){const te=async()=>(0,Y.Or)({projectCid:k.cid,sharing:re});await(0,P.eH)({updateType:"create",updateFn:te,org:ne}),j({type:_["sharing:topPageIndex:jump"],payload:{topPageIndex:"edit"}})}else{const te=async()=>(0,Y.yq)({sharing:re}),{expired_at:se}=await(0,P.eH)({updateType:"update",updateFn:te,org:ne,updatedKV:D,isCustom:Z});j({type:_["sharing:currentSharing:update"],payload:{updatedKV:{expired_at:se}}})}j({type:"sharing:advance:click:track"})},"sharing:settingPage:default:confirm":async v=>{var m,I;let{getState:j,dispatch:D}=v;const Z=j(),G=u.getCurrentSharing(Z),T=u.getProject(Z),re=u.getOrg(Z),ne=async()=>(0,J.Yu)(T.cid,Object.assign({},G,{building:G.view_sticky}));await(0,P.eH)({updateType:"update",updateFn:ne,org:re});const k=Object.assign({},T,G,{building:G.view_sticky});D({type:"sharing:state:update",payload:{project:k}}),(m=MB)!=null&&m.action&&((I=MB)==null||I.action("current:update:state",{currentProject:k}))},"sharing:go-settingPage":(v,m)=>{let{dispatch:I}=v,{payload:{currentSharing:j,settingPageType:D,subSettingPageType:Z=e.subSettingPageType}}=m;I({type:"sharing:state:update",payload:{currentSharing:j,settingPageType:D,topPageIndex:"setting",subSettingPageType:Z}})},"sharing:topPageIndex:jump":(v,m)=>{let{dispatch:I}=v,{payload:{topPageIndex:j=e.topPageIndex}}=m;I({type:"sharing:state:update",payload:{topPageIndex:j}})},"sharing:advancedSharingList:update":(v,m)=>{let{dispatch:I}=v,{payload:{sharingList:j}}=m;I({type:"sharing:state:update",payload:{advancedSharingList:j}})},"sharing:projectAccess:init":async v=>{let{dispatch:m,getState:I}=v;const j=I(),D=u.getMembers(j),Z=u.getProject(j),G=Z==null?void 0:Z.cid,T=Z==null?void 0:Z.is_org_project;if(!G||!T){setTimeout(()=>{m({type:l.entryKey["sharing:init"],payload:{loading:!1}})},100);return}const{result:re,statusOk:ne}=await(0,Y.aX)(G);if(m({type:l.entryKey["sharing:init"],payload:{loading:!1}}),!!ne&&re){var k,te;const{project:se,org:he}=re;await m({type:"entry:projectAccess:initProjectData",payload:{initData:re,members:D}}),m({type:l.entryKey["sharing:init"],payload:{project:se,org:he,initData:re}}),(k=MB)!=null&&k.action&&((te=MB)==null||te.action("current:update:state",{currentProject:se}))}},"sharing:function:track":(v,m)=>{let{getState:I}=v,{payload:{operation:j,viewMode:D,isDefault:Z}}=m;const G=I(),T=u.getProject(G)||{},re=u.getCanEditByUser(G),ne=u.getOrg(G)||{},k=u.getUser(G),te=u.getInitData(G)||{},se=(te==null?void 0:te.space)||{},he=u.getIsEditMode(G),ue=u.getHostType(G),{cid:pe,name:z}=T,ge={userCanEdit:re,userId:k==null?void 0:k.id,orgPermissions:ne==null?void 0:ne.permissions,spacePermissions:se==null?void 0:se.permissions,projectPermissions:T==null?void 0:T.permissions,isEditMode:he,view_mode:D,optionType:j,share_type:Z?"\u9ED8\u8BA4\u5206\u4EAB":"\u9AD8\u7EA7\u5206\u4EAB",isIframe:ue==="iframe",project_name:z,project_cid:pe};(0,K.Xc)(ge)},"sharing:advance:click:track":(v,m)=>{let{getState:I}=v,{}=m;const j=I(),D=u.getSettingPageType(j),Z=u.getCurrentSharing(j),G=u.getProject(j),T=u.getAdvancedSharingList(j)||[],re=u.getScreenMetaList(j),ne=u.getHostType(j),k=(0,P.RF)(re.pageAttrMap),te=(0,P.Mj)(!Z.screen_visible_switch,Z.screen_visible_list,k);let se="\u5168\u90E8";Z.screen_visible_switch&&(se=""+te);const he=T.length;(0,K.nr)({link_name:Z.link_name,links_number:D==="create"?he+1:he,share_type:Z.device_model==="device"?"\u6F14\u793A\u6A21\u5F0F":"\u753B\u5E03\u6A21\u5F0F",page_number:se,operation_type:D==="create"?"\u65B0\u5EFA":"\u7F16\u8F91",source:ne==="iframe"?"\u5DE5\u4F5C\u53F0":"\u7F16\u8F91\u533A",project_name:G.name,project_cid:G.cid})}},u=ee.B.genQuery(e,{getStateFn:v=>v.sharing}),_=ee.B.genEntryKey(c);return{__initialState:e,__reducer:r,__entry:c,entryKey:_,query:u}})(),C=(0,f.HY)({sharing:l.__reducer,projectAccess:E.Ay}),b={...l.__entry,...M.s},x=()=>{const e=(0,p.RZ)(),r=(0,f.y$)(C,(0,f.Tw)(e.middleware));return e.setEntryMap(b),r};var d=n(72605),g=n(21676),y=n(21952),N=n(57716),R=n(86634),S=n.n(R),B=n(77180);const U=g.Ay.div.withConfig({displayName:"styles__StyledSharingToolBar",componentId:"sc-1k4rs1h-0"})(["display:flex;align-items:center;justify-content:space-between;height:","px;padding-right:12px;border-bottom:1px solid ",";&.tool-upgrade{padding-right:24px;}.sharing-title{margin-left:24px;color:",";font-size:14px;font-family:PingFang SC;font-style:normal;font-weight:500;line-height:24px;}.upgrade-team-business{padding:0 10px;height:26px;border-radius:13px;display:flex;align-items:center;justify-content:center;background:",";font-size:14px;font-weight:500;position:relative;cursor:pointer;z-index:1;&:hover{background:",";}.team-business{background:linear-gradient(265.2deg,"," -21.19%,"," 105.08%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-fill-color:transparent;flex:none;order:0;flex-grow:0;}.content{font-size:12px;font-family:PingFang SC;font-style:normal;font-weight:400;line-height:18px;position:absolute;background:#454647;top:36px;right:0;width:300px;padding:12px 16px;border-radius:6px;.learn-text{margin-left:8px;color:#80BCFF;&:hover{color:#A6D2FF;}}&::before{content:'';position:absolute;top:0px;right:30px;transform:translateY(-100%);display:inline-block;width:0;height:0;border:6px solid transparent;border-bottom:6px solid #454647;}.top-bar{position:absolute;width:100%;height:10px;top:-10px;right:0;}span{color:",";}a{cursor:pointer;color:",";&:hover{color:",";}}}}"],B.gE,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_background_AI_head_tag,e=>e.theme.color_background_AI_head_tag_hover,e=>e.theme.color_AI_switch_gradient_start,e=>e.theme.color_AI_switch_gradient_end,e=>e.theme.color_text_btn,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_hover),ie=g.Ay.div.withConfig({displayName:"styles__StyledShareHeadMembers",componentId:"sc-1d78taz-0"})(["height:36px;border-radius:18px;display:flex;align-items:center;padding:0 4px;cursor:pointer;&:hover{background:",";}.avatar{height:24px;width:24px;border-radius:12px;box-sizing:border-box;border:1px solid ",";&:not(:first-child){margin-left:-6px;}&.avater-name{text-align:center;background:rgb(22,133,252);justify-content:center;color:white;font-size:12px;text-align:center;display:flex;align-items:center;}}.item-line{margin-left:6px;width:1px;height:16px;background:",";}.remaining{box-sizing:border-box;border-radius:12px;border:1px solid ",";background:rgb(22,133,252);justify-content:center;display:flex;align-items:center;margin-left:-6px;width:24px;height:24px;svg{width:24px;height:24px;}}.arror{margin-left:6px;width:14px;height:14px;}"],e=>e.theme.color_btn_secondary_active,e=>e.theme.color_share_member__border_color,e=>e.theme.color_bg_border_02,e=>e.theme.color_share_member__border_color);var L=n(37673),F=n(7290),X=n(59318);const le="__mb_delete_permission",oe=[{value:"org_owner",label:"permissions_org_owner"},{value:"org_manager",label:"permissions_org_super_administrator"},{value:"org_admin",label:"permissions_org_administrator"},{value:"org_member",label:"permissions_org_collaboration_member"},{value:"org_viewer",label:"permissions_org_review_member"}],xe=[{value:"space_manager",label:"permissions_space_manager"},{value:"space_member",label:"permissions_space_collaboration_member"},{value:"space_viewer",label:"permissions_space_review_member"},{value:"space_limiter",label:"permissions_space_unregistered_member"}],Ee=[{value:"team_manager",label:"permissions_manager"},{value:"team_member",label:"permissions_can_edit"},{value:"team_viewer",label:"permissions_only_view"},{value:"team_ban_viewer",label:"permissions_ban_view"}],Oe=[{value:"project_manager",label:"permissions_manager"},{value:"project_member",label:"permissions_can_edit"},{value:"project_viewer",label:"permissions_only_view"},{value:"project_ban_viewer",label:"permissions_ban_view"}],Be={space_owner:"project_manager",space_manager:"project_manager",space_member:"project_member",space_viewer:"project_viewer",team_owner:"project_manager",team_manager:"project_manager",team_member:"project_member",team_viewer:"project_viewer",team_ban_viewer:"project_ban_viewer",team_none:"project_viewer",project_owner:"project_manager"},Ue={space_owner:"team_manager",space_manager:"team_manager",space_member:"team_member",space_viewer:"team_viewer",space_ban_viewer:"team_ban_viewer",team_none:"team_viewer",team_owner:"team_manager"},Ve=Object.fromEntries([...oe,...xe,...Ee,...Oe].map(e=>[e.value,e.label]));var Ye=n(3895),ve=n(61654),Q=n(15573);const $=e=>{const r=(0,d.d4)(ve.XW),c=r.get(e);return(0,Q.u)(c,r)},me=(e,r)=>{const c=(0,d.d4)(ve.XW),u=(0,d.d4)(ve._B),_=(0,d.d4)(ve.kG),v=(0,d.d4)(ve.iF),m=(0,d.d4)(ve.yZ);let I=null,j=null;const D=e;let Z=[],G=[],T=[];I=u.get(r),G=I.permissions,T=(0,X.Cj)(I.team_cid,c,v),j=L.W.Org,Z=_,T=Object.values(Object.fromEntries(T.map(se=>[se.user_id,se])));const re=Object.values(Object.fromEntries([...T,...G].map(se=>[se.user_id,se]))),ne=(0,i.useMemo)(()=>{const se=(0,X.Rc)(Z);return Z.reduce((he,ue)=>{const{user_id:pe}=ue,z=(0,X.CF)({userId:pe,permissionsMap:se,permissionScope:j});return he.set(Number(pe),z)},new Map)},[Z]),k=(0,i.useMemo)(()=>{const se=(0,X.Rc)(re);return Z.reduce((he,ue)=>{const{user_id:pe}=ue,z=(0,X.CF)({userId:pe,permissionsMap:se,permissionScope:D});return he.set(Number(pe),z)},new Map)},[re,Z]),te=(0,i.useMemo)(()=>{const se=(0,X.Rc)(T);return T.reduce((he,ue)=>{const{user_id:pe}=ue,z=(0,X.CF)({userId:pe,permissionsMap:se,permissionScope:D});return he.set(Number(pe),z)},new Map)},[T]);return{userCurrentSpacePermission:m,membersTopScopePermissonMap:ne,membersCurrentScopePermissonMap:k,membersInheritedCurrentScopePermissonMap:te,topScopePermissionMembers:Z,currentScopePermissionMembers:G,inheritedPermissionMembers:T,combinedCurrentPermissionMembers:re}},Se=(e,r,c)=>{const u=(0,d.wA)();return(0,i.useCallback)(async(v,m)=>{const{name:I,email:j,mobile:D,permissionMap:Z}=v,{memberCurrentScopePermisson:G,currentScopeRoleName:T}=Z;if(!G)return;const re=I||j||D;let ne=!1;m===le&&(ne=!0),G.isUnknown?await u({type:"entry:projectAccess:inviteOrgMemberToProject",payload:{projectCid:r,userCid:v.user_cid,roleName:m,userName:re}}):ne?await u({type:"entry:projectAccess:removeProjectMemberPermission",payload:{projectCid:r,userId:v.user_id,roleName:T,userName:re}}):await u({type:"entry:projectAccess:updateMemberProjectPermission",payload:{projectCid:r,userId:v.user_id,roleName:m,userName:re}})},[r,u])},Ce=(e,r)=>{const c=(0,d.d4)(ve.WR),u=(0,d.d4)(ve.q7),_=(0,d.d4)(ve.oV),v=(0,d.d4)(ve.hG),{userCurrentSpacePermission:m,membersTopScopePermissonMap:I,membersCurrentScopePermissonMap:j,membersInheritedCurrentScopePermissonMap:D,topScopePermissionMembers:Z,inheritedPermissionMembers:G,currentScopePermissionMembers:T,combinedCurrentPermissionMembers:re}=me(e,r),ne=j.get(Number(c))||X.CZ,k=!!v.get(Number(c)),te=(0,i.useMemo)(()=>{const fe=new Map;return Z.forEach(je=>{let{user_id:Me,role:ze}=je;const Te=I.get(Number(Me))||X.CZ,He=_.get(Number(Me))||X.CZ,Xe=j.get(Number(Me))||X.CZ,tt=D.get(Number(Me))||X.CZ,nt=!!v.get(Number(Me)),yt=u.get(Number(Me));if(!yt)return;const wt=yt.permission,kt=Xe.isUnknown?ze:Xe.roleName;fe.set(Number(Me),{...yt,permissionMap:{currentScopeRoleName:kt,userCurrentSpacePermission:m,userCurrentScopePermisson:ne,memberTopScopePermisson:Te,memberCurrentScopePermisson:Xe,memberInheritedPermisson:tt,memberOrgPermisson:wt,isSelf:Number(Me)===Number(c),userIsSpaceLimiter:k,memberIsSpaceLimiter:nt,memberIsSpaceManager:He.isManager}})}),fe},[Z,I,j,D,v]),se=(0,i.useMemo)(()=>T.sort((fe,je)=>Ye.Z8[je.role]-Ye.Z8[fe.role]).map(fe=>te.get(Number(fe.user_id))).filter(fe=>fe),[T,te]),he=(0,i.useMemo)(()=>G.sort((fe,je)=>Ye.Z8[je.role]-Ye.Z8[fe.role]).map(fe=>{const{user_id:je,role:Me}=fe,ze=D.get(Number(je))||X.CZ,Te=te.get(Number(fe.user_id));return Te?{...Te,permissionMap:{...Te.permissionMap,currentScopeRoleName:Me,memberCurrentScopePermisson:ze}}:null}).filter(fe=>fe),[G,te,D]),ue=(0,i.useMemo)(()=>re.sort((fe,je)=>Ye.Z8[je.role]-Ye.Z8[fe.role]).map(fe=>te.get(Number(fe.user_id))).filter(fe=>fe),[re,te]),pe=(0,i.useMemo)(()=>{const fe=ue.map(Me=>Number(Me.user_id)),je=[];for(const[Me,ze]of te.entries())fe.includes(Number(Me))||ze&&je.push(ze);return je},[te,ue]),z=(0,i.useMemo)(()=>{const fe=he.filter(Me=>{var ze;return(ze=Me.permissionMap)==null||(ze=ze.memberCurrentScopePermisson)==null?void 0:ze.isManager});return Object.values(Object.fromEntries([...fe,...se].map(Me=>[Me.user_id,Me])))},[he,se]),ge=(0,i.useMemo)(()=>{const fe=z.map(Me=>Number(Me.user_id)),je=[];for(const[Me,ze]of te.entries())fe.includes(Number(Me))||ze&&je.push(ze);return je},[te,z]);return{isOnlyOneManager:(0,i.useMemo)(()=>ue.filter(fe=>{var je;return(je=fe.permissionMap)==null||(je=je.memberCurrentScopePermisson)==null?void 0:je.isManager}).length===1,[ue]),userCurrentScopePermisson:ne,userCurrentSpacePermission:m,currentMembers:se,inheritedMembers:he,joinedMembers:ue,unjoinedMembers:pe,assignedMembers:z,unassignedMembers:ge,currentOrgMembersMap:u}};var We=n(11777),s=n(57464);const Ae=()=>{var e;const r=(0,d.d4)(l.query.getUser),c=(0,d.d4)(l.query.getProject),u=(0,d.d4)(l.query.getInitData),_=$(c==null?void 0:c.team_cid),v=c==null?void 0:c.cid,m=(0,d.wA)(),I=(0,i.useCallback)(k=>{k.stopPropagation(),m({type:l.entryKey["sharing:init"],payload:{mainPage:"access"}}),m({type:l.entryKey["sharing:function:track"],payload:{operation:"\u56E2\u961F\u534F\u4F5C"}})},[m]),{currentMembers:j,inheritedMembers:D,joinedMembers:Z}=Ce(L.W.Project,v);let G=j;_>=1?D.forEach(k=>{G.find(se=>se.id===k.id)||G.push(k)}):G=Z;const re=(e=G)==null?void 0:e.filter(k=>Number(k.user_id)!==Number(r==null?void 0:r.id));re&&(G=re.slice(0,2));const ne=(0,i.useCallback)(k=>{var te;const{avatar:se,name:he,id:ue}=k;return se&&!se.includes("/images/avatar.png")?(0,s.jsx)("img",{className:"avatar",src:k.avatar,alt:k.name},ue):(0,s.jsx)("div",{className:"avatar avater-name",children:he==null||(te=he.slice(0,1))==null?void 0:te.toUpperCase()},ue)},[]);return!u||JSON.stringify(u)==="{}"?null:(0,s.jsx)(We.A,{content:I18N.imockSharing.team_collaborator,direction:"down",distance:5,enterHoverTime:500,children:(0,s.jsxs)(ie,{onClick:I,children:[ne(r),G.length>0&&G.map(k=>ne(k)),(0,s.jsx)("div",{className:"remaining",children:(0,s.jsx)(F.C,{name:"sharing/add_member",isColorPure:!0})}),(0,s.jsx)(F.C,{name:"sharing/member_arror",isColorPure:!0,className:"arror"})]})})},$e=(0,i.memo)(Ae),qe=g.Ay.div.withConfig({displayName:"styles__StyledSharingSliderBar",componentId:"sc-1garbfp-0"})(["display:flex;height:100%;align-items:center;position:relative;padding-left:24px;.tab-item{color:",";font-size:14px;font-family:PingFang SC;cursor:pointer;height:100%;display:flex;align-items:center;&:not(:first-child){margin-left:14px;}&.tab-sel{color:",";font-weight:500;border-top:2px solid rgba(0,0,0,0);border-bottom:2px solid ",";box-sizing:border-box;}}"],e=>e.theme.color_share_switch_sel_color,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1),dt=e=>{let{tabs:r,handleChangeTabIndex:c,tabIndex:u,className:_}=e;return(0,s.jsx)(qe,{className:_,children:r.map((v,m)=>(0,s.jsx)("div",{className:S()("tab-item",u===m&&"tab-sel"),id:"tab-item-"+m,onClick:()=>c(m),children:v},m))})},ut=(0,i.memo)(dt);var at=n(15336),ft=n(47755);const Pt=()=>{let e=null;const r=(0,d.wA)(),c=(0,d.d4)(l.query.getProject),u=(0,d.d4)(l.query.getCanEditByUser),_=(0,d.d4)(l.query.getHostType),v=(0,d.d4)(l.query.getIsEditMode),m=(0,d.d4)(l.query.getInitData),I=(0,d.d4)(l.query.getTabIndex),[j,D]=(0,i.useState)(!1),Z=(c==null?void 0:c.is_org_project)||!1,G=_==="iframe"||v,re=new URLSearchParams(location.search).get("view_mode")||"read_only",ne=G&&Z&&m&&JSON.stringify(m)!=="{}",k=u&&!Z,te=(0,i.useCallback)(()=>{const pe=_==="iframe",z=(pe?"\u5DE5\u4F5C\u533A":"\u7F16\u8F91\u533A")+"-v8_\u4E2A\u4EBA_\u5206\u4EAB_\u56E2\u961F\u534F\u4F5C\u5347\u7EA7",ge=(pe?"dashboard":"workspace")+"-v8_solo_share_upgrade",ye={payEntrance:z,checkoutPlace:ge,checkoutArea:pe?"dashboard":"proto",mode:"org",isSelectOrg:!0};if(pe){const fe="/workspace/''?payment_param="+(0,ft._)(ye);(0,at.JW)(fe,"_blank","noreferrer")}else MB.global.popupHelper.chargeAsync(ye)},[]),se=()=>{e=setTimeout(()=>{D(!0)},1e3)},he=()=>{e&&clearTimeout(e),D(!1)},ue=(0,i.useCallback)(pe=>{r({type:l.entryKey["sharing:init"],payload:{tabIndex:pe}})},[r]);return(0,s.jsx)(U,{className:S()(k&&"tool-upgrade"),children:G?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ut,{tabIndex:I,tabs:[I18N.imockSharing.default_share,I18N.imockSharing.advanced_sharing],handleChangeTabIndex:ue}),k&&(0,s.jsxs)("div",{className:"upgrade-team-business",onClick:te,onMouseEnter:se,onMouseLeave:he,children:[(0,s.jsx)("span",{className:"team-business",children:I18N.imockSharing.team_collaboration}),j&&(0,s.jsxs)("div",{className:"content",onClick:pe=>pe.stopPropagation(),children:[(0,s.jsx)("div",{className:"top-bar"}),(0,s.jsx)("span",{children:I18N.imockSharing.upgrade_to_team_business_plan}),(0,s.jsx)("a",{className:"learn-text",href:I18N.link.link_upgrade_enterprise,target:"_blank",rel:"noopener noreferrer",children:I18N.imockSharing.learn_more})]})]}),ne&&(0,s.jsx)($e,{})]}):(0,s.jsx)("div",{className:"sharing-title",children:re==="read_only"?I18N.pPreviewToolbar.share:I18N.pPreviewToolbar.share_preview})})},Mt=(0,i.memo)(Pt),Rt=g.Ay.div.withConfig({displayName:"styles__StyledSharingAdvancedPage",componentId:"sc-1h5adoi-0"})(["width:100%;height:calc(100% - ","px);padding:16px 20px 5px;overflow-y:auto;.create-item{display:flex;align-items:center;padding:6px 12px;height:32px;color:",";text-align:center;font-size:14px;font-family:PingFang SC;width:fit-content;border-radius:6px;cursor:pointer;svg{width:12px;margin-right:4px;svg path{fill:",";}}&:not(.no-edit):hover{background:",";}&:not(.no-edit):active{background:",";}&.no-edit{opacity:0.3;pointer-events:none;}}"],B.gE,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_btn_secondary_active),Bt=g.Ay.div.withConfig({displayName:"styles__StyledSharingEmpty",componentId:"sc-1h5adoi-1"})(["width:100%;height:calc(100% - ","px);display:flex;justify-content:center;flex-direction:column;align-items:center;svg{width:254px;}.create-sharing{width:134px;margin-top:40px;}"],B.gE);var bt=n(15668),Wt=n(44057),en=n(48590);const Dt=g.Ay.div.withConfig({displayName:"styles__StyledSharingNormalItem",componentId:"sc-11k1y99-0"})(["margin-top:12px;padding:0px 13px;height:134px;display:flex;flex-direction:column;justify-content:center;background:",";border-radius:8px;.share-icon{width:24px;height:24px;border-radius:4px;margin-left:6px;cursor:pointer;&.tempDisabled{pointer-events:none;}svg{width:100%;height:100%;}}"],e=>e.theme.color_bg_canvas),Vt=g.Ay.div.withConfig({displayName:"styles__StyledCenterItem",componentId:"sc-11k1y99-1"})(["display:flex;min-height:36px;width:100%;margin-top:12px;margin-bottom:16px;&.default-link{margin-bottom:0px;}&.advance-item{margin-bottom:12px;}&.userNoEdit{.left.normal-hover{cursor:not-allowed;.view-access-select{svg,path{fill:",";}}}}&.notView{cursor:not-allowed;.url-copy-button{background:",";border:"," solid 1px;color:",";pointer-events:none;}}.left{flex-grow:1;background-color:",";display:flex;align-items:center;border:"," solid 1px;border-right:none;border-radius:6px 0 0 6px;&.can-not-edit{pointer-events:none;}&.normal-hover{cursor:pointer;&:hover{background-color:",";}}.chore{margin-right:21px;color:",";}.view-access-select{margin-left:10px;display:flex;align-items:center;.access-name{color:",";}&.is-expired{","}.svg-icon{color:",";transition:all 0.2s;transform :",";}}.single-preview{width:100%;padding:0 6px;color:",";}}.url-copy-button{flex-grow:0;width:97px;}"],e=>e.theme.color_share_access__button_disable,e=>e.theme.color_share_copy__button_disable_bg,e=>e.theme.color_bg_border_02,e=>e.theme.color_share_copy__button_disable,e=>e.isViewActiveDropdown?e.theme.color_btn_secondary_hover:e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.isViewActiveDropdown?"rotate(-180deg)":"",e=>e.theme.color_text_L1),Yt=(0,g.Ay)(Wt.Ay).withConfig({displayName:"styles__StyledMenuContent",componentId:"sc-11k1y99-2"})(["ul{width:270px;li > a{padding-left:10px;svg{position:absolute;right:8px;}}}",";&.advance_menu ul{width:244px;}&.misc ul{width:80px;min-width:auto;}"],en.ZJ),Gt=g.Ay.button.withConfig({displayName:"styles__StyledCopyButton",componentId:"sc-11k1y99-3"})(["display:flex;position:relative;width:82px;font-size:12px;font-weight:500;border-top-right-radius:6px;border-bottom-right-radius:6px;background-color:",";&:hover{background-color:",";}&:active{background-color:",";}color:",";&.is-disabled{cursor:not-allowed;pointer-events:none;color:",";background-color:",";}.state{position:absolute;left:0;top:0;display:flex;justify-content:center;align-items:center;width:100%;height:100%;transition:all 0.15s ease-out;}.state-1{opacity:0;.copy-check{color:#ffffff;width:24px;}}&.is-state-1 .state-0{opacity:0;transform:translateY(50%);}&.is-state-1 .state-1{opacity:1;transform:none;}"],e=>e.theme.color_btn_primary_normal,e=>e.theme.color_btn_primary_hover,e=>e.theme.color_btn_primary_clicked,e=>e.theme.color_text_btn,e=>e.theme.color_text_disabled02,e=>e.theme.color_btn_primary_disabled),Tn=g.Ay.div.withConfig({displayName:"styles__StyledSharingItemHead",componentId:"sc-1tpfzbt-0"})(["display:flex;align-items:center;justify-content:space-between;color:",";font-size:12px;font-family:PingFang SC;.head-left{display:flex;font-size:14px;font-weight:500;align-items:center;color:",";.public-access{margin-right:8px;}.link-form{width:176px;input{width:176px;}}.link-name{width:176px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:text;&.link-name-not-edit{pointer-events:none;}&:not(.link-name-not-edit):hover{border-bottom:1px solid ",";}position:relative;height:24px;line-height:24px;}input{height:24px;line-height:24px;color:",";width:240px;border-bottom:1px solid ",";}.edit-name{width:20px;height:20px;margin-left:5px;}}.head-right{display:flex;justify-content:center;align-items:center;border-radius:4px;padding-left:4px;&:hover{background-color:",";}}.foot-right{display:flex;align-items:center;}.view-mode-icon{width:16px;height:16px;margin-right:6px;[stroke]{stroke:currentColor;fill:none;}}.share-icon{margin-left:5px;}&.canNotEdit{label{pointer-events:none;opacity:0.3;cursor:not-allowed;}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_proto,e=>e.theme.color_text_L1,e=>e.theme.color_proto,e=>e.theme.color_btn_secondary_active);function jn(e){const{fBlur:r,name:c}=e,[u,_]=(0,i.useState)(!1),[v,m]=(0,i.useState)(c),I=(0,i.useRef)(null);(0,i.useEffect)(()=>{if(u){var T;(T=I.current)==null||T.focus()}},[u]);const j=()=>{r(),_(!1)};return{inputRef:I,isRenaming:u,setIsRenaming:_,inputName:v,setInputName:m,handleFocus:()=>{var T;(T=I.current)==null||T.select()},handleBlur:j,handleKeyDown:T=>{T.key==="Enter"&&j()},handleInput:T=>{let re=T.target.value;re.length>200&&(re=re.substring(0,200)),m(re)}}}const It={embed:"embed",QRcode:"QRcode",setting:"setting",mkt:"mkt_icon",showPage:"showPage"},hn=g.Ay.div.withConfig({displayName:"styles__StyledIconBox",componentId:"sc-1juwfby-0"})(["display:flex;justify-content:center;align-items:center;width:20px;height:20px;color:",";cursor:pointer;border-radius:4px;position:relative;transition:background-color 0.2s ease-in-out;.Tooltip{display:flex;}&.tempDisabled{opacity:0.3;}&.isBorder{border-radius:50%;border:1px solid ",";}&.disabled{cursor:not-allowed;color:",";}&:not(.disabled):hover{background:",";}&:not(.disabled):active{background:",";}"],e=>e.theme.color_text_L2,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_disabled01,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_active);function ln(e){const{className:r,size:c=20,name:u,onClick:_,onMouseEnter:v,onMouseLeave:m,children:I,tempDisabled:j,direction:D,toolTipName:Z,type:G,isColorPure:T,isBorder:re}=e,ne=k=>{j||_(k,G)};return(0,s.jsx)(We.A,{content:Z,direction:D||"up",distance:5,enterHoverTime:500,children:(0,s.jsxs)(hn,{className:S()(r,j&&"tempDisabled",re&&"isBorder"),onClick:ne,onMouseEnter:v,onMouseLeave:m,children:[(0,s.jsx)(F.C,{size:c,name:u,isColorPure:T}),I]})})}const Cn=e=>{let{sharingData:r,handleItemAction:c}=e;const{link_name:u}=r,_=(0,d.wA)(),v=r.device_model,[m,I]=(0,i.useState)(u),j=(0,d.d4)(l.query.getCanEditByUser),D=(0,d.d4)(l.query.getIsEditMode),Z=(0,d.d4)(l.query.getHostType),G=(0,d.d4)(l.query.getScreenMetaList),T=(0,d.d4)(l.query.getAdvancedSharingList),re=Z==="iframe"||D,ne=re&&j,k=re&&j,te=()=>{const He=ye.current.value;if(He==="")je(m),_({type:l.entryKey["sharing:init"],payload:{sharingToast:I18N.Common.name_cannot_be_empty}});else if((0,P.it)({value:He,currentSharing:r,sharingList:T}))je(m),_({type:l.entryKey["sharing:init"],payload:{sharingToast:I18N.imockSharing.sharing_name_repeate_wran}});else{I(He);const Xe={link_name:He};_({type:l.entryKey["sharing:remote:sharing:update"],payload:{sharingData:r,updatedKV:Xe}})}},se=(0,i.useMemo)(()=>r.type==="advanced"?(0,P.Sy)(G,r):null,[r,G]),{isRenaming:he,setIsRenaming:ue,handleKeyDown:pe,handleBlur:z,handleFocus:ge,inputRef:ye,handleInput:fe,setInputName:je,inputName:Me}=jn({name:m||"",fBlur:te}),ze=(0,i.useCallback)(()=>{ue(!0)},[ue]),Te=(0,i.useMemo)(()=>[{name:"sharing/embed_icon",toolTipName:I18N.imockSharing.insert,className:It.embed,tempDisabled:!1},ENV.IS_ON_PREMISES?null:{name:"sharing/QRcode_icon",toolTipName:I18N.imockSharing.qr_code,className:It.QRcode,tempDisabled:!1},{name:"sharing/more",toolTipName:I18N.LeftSidePanel.menu,className:It.setting,tempDisabled:!k}].filter(Boolean),[k]);return(0,s.jsxs)(Tn,{className:S()(!ne&&"canNotEdit"),children:[(0,s.jsxs)("div",{className:"head-left",children:[(0,s.jsx)(F.C,{className:"view-mode-icon",name:v==="device"?"sharing/mode_device":"sharing/mode_canvas"}),he?(0,s.jsx)("form",{className:"link-form",children:(0,s.jsx)("input",{value:Me,onFocus:ge,onChange:fe,ref:ye,onBlur:z,onKeyPress:pe})}):(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:S()("link-name",!k&&"link-name-not-edit"),onClick:ze,children:m})})]}),(0,s.jsx)(We.A,{content:I18N.imockSharing.tab_screen,direction:"up",distance:5,enterHoverTime:500,children:(0,s.jsxs)("div",{className:"head-right",children:[(0,s.jsx)("div",{children:se}),(0,s.jsx)(ln,{className:"share-icon",name:"sharing/page_visible",tempDisabled:!k,size:20,onClick:He=>c(He,It.showPage)})]})}),(0,s.jsx)("div",{className:"foot-right",children:Te.map((He,Xe)=>He&&(0,s.jsx)(ln,{className:S()("share-icon",He.className),name:He.name,type:He.className,toolTipName:He.toolTipName,onClick:c,tempDisabled:He.tempDisabled,isColorPure:He.isColorPure,size:20},Xe))})]})},An=(0,i.memo)(Cn),mn=g.Ay.div.withConfig({displayName:"styles__StyledSharingItemFoot",componentId:"sc-1b50v3w-0"})(["display:flex;align-items:center;justify-content:space-between;color:",";font-size:12px;font-family:PingFang SC;.visit_count{color:",";.svg-icon{path{fill:rgba(22,132,252,1);}path:last-of-type{fill:#fff;}}}.expiration-time{display:flex;align-items:center;color:",";.expire-text{margin:0 4px;cursor:pointer;.expired-desc{color:",";}.expired-no{color:",";}}.expire-icon{width:24px;height:24px;}&.is-expired{color:",";}svg{color:",";cursor:pointer;}.self-transform{svg{transition:all 0.4s;transform:rotate(360deg);}}}"],e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1),cn=(0,g.DU)([".visit-tips{padding:6px;.tip-updated{display:flex;cursor:pointer;align-items:center;font-size:12px;p{margin:0;display:flex;align-items:center;}.icon-updated{display:inline-flex;align-items:center;margin-left:10px;line-height:14px;color:rgba(112,188,246,1);&:hover{color:rgba(149,209,248,1);}.svg-icon{margin-right:2px;path{fill:rgba(22,132,252,1);}path:last-of-type{fill:#fff;}}}}}"]);var Do=n(76713),$n=n.n(Do);function Yn(e,r,c){const u=(0,i.useMemo)(()=>{const m=$n()(),I=$n()(e.expired_at).subtract(2,"s");return I.isBefore(m)?0:I.diff(m,"days")+1},[e]),_=u<=0;let v;return r?v="\u5206\u4EAB\u8D85\u9650\uFF0C\u5347\u7EA7\u89E3\u9501":u>0&&u<=9999?v=u+" \u5929\u540E\u5931\u6548":u>9999?v=c===1?"\u6C38\u4E45\uFF08\u9650\u65F6\u514D\u8D39\uFF09":"\u6C38\u4E45\u6709\u6548":v="\u91CD\u65B0\u751F\u6548",{isExpired:_,remainTimeText:v}}var dn=n(89604),On=n(59305);const $s=e=>{let{sharingData:r,handleUpdateSharing:c}=e;const u=(0,d.wA)(),[_,v]=(0,i.useState)(null),[m,I]=(0,i.useState)(!1),{remainTimeText:j,isExpired:D}=Yn(r,!1,999),Z=r.device_model,G=r.expire_type==="forever",T=(0,d.d4)(l.query.getUser),re=(0,d.d4)(l.query.getOrg),ne=(0,d.d4)(l.query.getProject),k=(0,d.d4)(ve.cb),te=ne==null?void 0:ne.is_org_project;let se=!1,he=!1;if(te){const{plan:ye,trial:fe}=(0,On.rM)(re);he=fe,se=ye===dn.Sj.OrgFull&&!he}const ue=he||se,pe=k.roleName&&["org_owner","org_admin","org_manager"].includes(k.roleName),z=ue?pe?"enterpriseAdmin":"enterpriseUser":"nonEnterprise",ge=(0,i.useCallback)(()=>{c({expire_type:r.expire_type}),I(!0),setTimeout(()=>I(!1),500),u({type:l.entryKey["sharing:function:track"],payload:{operation:"\u91CD\u7F6E\u6709\u6548\u671F",viewMode:Z,isDefault:!1}})},[u,c,r.expire_type,Z]);return(0,i.useEffect)(()=>{(async()=>{if(r.access_token)try{const fe=await(0,Y.dJ)(r.access_token);v(fe.count)}catch(fe){console.error("Error fetching visit count:",fe)}})()},[r.access_token]),(0,s.jsxs)(mn,{children:[(0,s.jsxs)("div",{className:"visit_count",children:[I18N.imockSharing.visit_count," ",_]}),(0,s.jsxs)("div",{className:S()("expiration-time",{"is-expired":D}),children:[(0,s.jsx)("div",{className:"expire-text",children:(0,s.jsx)("span",{className:D?"expired-desc":"expired-no",children:j})}),!G&&(0,s.jsx)(ln,{direction:"down",toolTipName:I18N.imockSharing.resetLink,onClick:ge,className:S()("expire-icon",{"self-transform":m}),size:12,name:"sharing/refresh_24"})]}),(0,s.jsx)(cn,{})]})},Ys=(0,i.memo)($s);var gn=n(36521),fn=n(36820);const Gn=e=>{const{project:r,sharing:c,user:u}=e,[_,v]=(0,i.useState)(!1),[m,I]=(0,i.useState)(void 0);return{isURLCopied:_,handleCopyURL:()=>{(0,P.kv)({project:r,action:c.password!==""?"\u590D\u5236\u94FE\u63A5\u548C\u5BC6\u7801":"\u590D\u5236\u94FE\u63A5",linkName:c.link_name}),v(!0),clearTimeout(m);const D=setTimeout(()=>v(!1),3e3);I(D);const Z=$n()().format("YYYY-MM-DD HH:mm:ss"),G=(0,P.EL)(u)&&!(0,gn.kV)(B.nM);(0,gn.cH)(B.nM,Z),G&&(0,fn.Sx)({prototype_activation_time:Z})}}};var yn=n(93869);function Qn(e){const{password:r}=e;return{isHavePassword:(0,i.useMemo)(()=>r!==null&&r!=="",[r])}}const Jn=e=>{var r;let{sharingData:c,setShowDelConfirmModal:u,fromDefault:_}=e;const v=(0,d.wA)(),m=(0,i.useRef)(null),I=c.view_access,j=c.device_model,D=(0,d.d4)(l.query.getProject),Z=(0,d.d4)(l.query.getCanEditByUser),G=(0,d.d4)(l.query.getIsEditMode),T=(0,d.d4)(l.query.getHostType),re=(0,d.d4)(l.query.getUser),ne=(0,d.d4)(l.query.getHostCurrentScreen),k=ne==null?void 0:ne.cid,te=(D==null?void 0:D.is_org_project)||!1,he=(T==="iframe"||G)&&Z,[ue,pe]=(0,i.useState)({top:0,left:0}),[z,ge]=(0,i.useState)(!1),{isURLCopied:ye,handleCopyURL:fe}=Gn({project:D,sharing:c,user:re}),{isHavePassword:je}=Qn(c),Me=(0,i.useCallback)(()=>{const lt=(0,P.O8)(D,c,k);(0,yn.$)(lt),fe(),v({type:l.entryKey["sharing:function:track"],payload:{operation:"\u9AD8\u7EA7\u5206\u4EAB\u590D\u5236\u94FE\u63A5",viewMode:j,isDefault:!1}})},[v,c,k,fe,D,j]),ze=(0,i.useCallback)(lt=>{const Ct={view_access:lt};v({type:l.entryKey["sharing:remote:sharing:update"],payload:{sharingData:c,updatedKV:Ct}}),v({type:l.entryKey["sharing:function:track"],payload:{operation:lt==="public"?"\u6240\u6709\u4EBA":"\u5207\u6362\u56E2\u961F",viewMode:j,isDefault:!1}})},[c,v,j]),Te=(0,i.useCallback)(()=>{u({isOpened:!0,item:c})},[u,c]),He=(0,i.useCallback)(()=>{v({type:l.entryKey["sharing:go-settingPage"],payload:{currentSharing:c,settingPageType:"edit"}}),v({type:l.entryKey["sharing:function:track"],payload:{operation:"\u8BBE\u7F6E",viewMode:j,isDefault:!1}})},[v,c,j]),Xe=(0,i.useCallback)(lt=>{v({type:l.entryKey["sharing:remote:sharing:update"],payload:{sharingData:c,updatedKV:lt}})},[v,c]),[tt,nt]=(0,i.useState)(void 0),yt=(0,i.useMemo)(()=>{if(tt==="viewAccess"){const lt=(0,s.jsx)(F.C,{name:"toolbar/selected",className:"selected-icon"});if(te){const Ct=I==="public";return[{label:I18N.imockSharing.share_anyone_view,onclick:()=>ze("public"),icon:Ct?lt:(0,s.jsx)("div",{style:{width:0}})},{label:I18N.imockSharing.org_members_only,onclick:()=>ze("restricted"),icon:Ct?(0,s.jsx)("div",{style:{width:0}}):lt}]}else return[]}else return[{label:I18N.imockSharing.setting,onclick:He},{label:I18N.imockSharing.delete,onclick:Te}]},[tt,ze,Te,He,I,te]),wt=(0,i.useCallback)(lt=>{if(!te||!he)return;nt("viewAccess");const Ct=lt.currentTarget.getBoundingClientRect();pe({top:Ct.y+Ct.height+3,left:Ct.x-1}),ge(!z)},[te,he,z,nt,pe]),kt=(0,i.useCallback)((lt,Ct)=>{if(lt!=null&<.currentTarget)switch(Ct){case It.QRcode:lt.stopPropagation(),v({type:l.entryKey["sharing:init"],payload:{topPageIndex:"qrCode",currentSelectSharing:c}}),v({type:l.entryKey["sharing:function:track"],payload:{operation:"\u70B9\u51FB\u626B\u7801",viewMode:j,isDefault:!1}});break;case It.embed:v({type:l.entryKey["sharing:init"],payload:{topPageIndex:"embed",currentSelectSharing:c}}),v({type:l.entryKey["sharing:function:track"],payload:{operation:"\u70B9\u51FB\u5D4C\u5165\u4E09\u65B9",viewMode:j,isDefault:!1}});break;case It.mkt:(0,at.JW)("/community/upload?project_cid="+(D==null?void 0:D.cid),"_blank","noreferrer");break;case It.setting:{nt("misc");const Lt=lt.currentTarget.getBoundingClientRect(),rn=document.getElementById("v8-share-page").getBoundingClientRect().bottom-Lt.bottom<120?Lt.y-75:Lt.bottom+5;pe({top:rn,left:T==="iframe"?Lt.x+20:Lt.x-60}),ge(!z)}break;case It.showPage:v({type:l.entryKey["sharing:go-settingPage"],payload:{currentSharing:c,settingPageType:"edit",subSettingPageType:"visible"}});break;default:break}},[z,nt,pe,ge,v,D,c,j,T]),At=(0,i.useCallback)(()=>{var lt;pe({...ue,left:((lt=m.current)==null?void 0:lt.getBoundingClientRect().x)-1})},[ue]);(0,i.useEffect)(()=>(window.addEventListener("resize",At),()=>window.removeEventListener("resize",At)));const{isExpired:Ht}=Yn(c,!1,999);return(0,s.jsxs)(Dt,{className:S()(_&&"from-default"),children:[(0,s.jsx)(An,{sharingData:c,handleItemAction:kt}),(0,s.jsxs)(Vt,{className:S()("item-center",!he&&"userNoEdit","advance-item"),isViewActiveDropdown:z&&tt==="viewAccess",children:[(0,s.jsx)("div",{ref:m,className:S()("left","sharingV2-click-visible",{"normal-hover":!0},!te&&"can-not-edit"),onClick:wt,children:(0,s.jsxs)("div",{className:"view-access-select",children:[(0,s.jsx)("div",{className:"chore",children:I18N.imockSharing.permission_access}),(0,s.jsx)("div",{className:"access-name",children:(r=I18N.imockSharing[B.nQ[I]])!=null?r:"missing data"}),te&&(0,s.jsx)(F.C,{size:24,name:"sharing/dropdown_24"})]})}),(0,s.jsxs)(Gt,{type:"button",className:S()("copy","sharingV2-click-visible","url-copy-button","is-state-"+Number(ye),{"is-disabled":Ht}),onClick:Me,children:[(0,s.jsx)("span",{className:"state state-0",children:Ht?I18N.dModule.link_expired_err_title:je?I18N.imockSharing.copy_url_pwd:I18N.imockSharing.copy_url}),(0,s.jsx)("span",{className:"state state-1",children:(0,s.jsx)(F.C,{name:"new_replace/check",className:"copy-check"})})]})]}),(0,s.jsx)(Ys,{sharingData:c,handleUpdateSharing:Xe}),z&&(0,s.jsx)(Yt,{className:S()("design-avoid",tt,"advance_menu"),position:ue,onClose:()=>{ge(!1)},children:yt.map((lt,Ct)=>(0,s.jsx)(Wt.Dr,{text:lt.label,onClick:lt.onclick,icon:lt.icon,disabled:lt.disabled,canClick:lt.tempDisabled},Ct))})]})},Gs=(0,i.memo)(Jn),Qs=g.Ay.div.withConfig({displayName:"styles__StyledDeletingConfirmModal",componentId:"sc-1ws30dd-0"})(["display:flex;position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;justify-content:center;align-items:center;background:rgba(0,0,0,0.4);.confirm-content{display:flex;height:fit-content;border-radius:10px;background:",";width:calc(100% - 54px);color:",";font-family:PingFang SC;font-style:normal;flex-direction:column;padding-bottom:18px;border:1px solid ",";box-shadow:0px 9px 28px 0px rgba(0,0,0,0.09),0px 6px 16px 0px rgba(0,0,0,0.02),0px 3px 6px 0px rgba(0,0,0,0.02);.top{width:100%;height:","px;display:flex;align-items:center;justify-content:center;justify-content:space-between;padding:0 24px;font-size:16px;font-weight:500;line-height:normal;border-bottom:1px solid ",";.close{width:24px;height:24px;svg{width:24px;height:24px;}}}.center{font-size:14px;line-height:22px;width:100%;padding:20px 24px;}.bottom{width:100%;padding-right:24px;display:flex;align-items:center;justify-content:flex-end;.delete{margin-left:12px;}}}"],e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_share_del_confirm_border_color,B.gE,e=>e.theme.color_bg_border_02);function pt(e){let{handleConfirmAction:r}=e;return(0,s.jsx)(Qs,{children:(0,s.jsxs)("div",{className:"confirm-content",children:[(0,s.jsxs)("div",{className:"top",children:[(0,s.jsx)("div",{children:I18N.imockSharing.delete_share}),(0,s.jsx)(ln,{name:"sharing/close",onClick:()=>r(!1),className:"close"})]}),(0,s.jsx)("div",{className:"center",children:I18N.imockSharing.deletion_shared_links_warning}),(0,s.jsxs)("div",{className:"bottom",children:[(0,s.jsx)(bt.tA,{onClick:()=>r(!1),children:I18N.imockSharing.cancel}),(0,s.jsx)(bt.Qi,{className:"delete",onClick:()=>r(!0),children:I18N.imockSharing.delete})]})]})})}const Js=i.memo(pt),fs=()=>{const e=(0,d.d4)(l.query.getUser),r=(0,d.d4)(l.query.getOrg),{cid:c,name:u,is_org_project:_}=(0,d.d4)(l.query.getProject),v=(0,d.d4)(l.query.getHostType),m=(0,d.d4)(l.query.getAdvancedSharingList),I=(0,d.d4)(l.query.getCanEditByUser),j=(0,d.d4)(l.query.getProjShareToEdit),D=(0,d.d4)(l.query.getTheme),[Z,G]=(0,i.useState)({isOpened:!1,item:null}),[T,re]=(0,i.useState)(!1),ne=(0,d.wA)(),k=m.length===0,te=(0,i.useCallback)(async he=>{he&&ne({type:l.entryKey["sharing:remote:sharing:delete"],payload:{sharingCid:Z.item.cid}}),G({isOpened:!1,item:null})},[Z.item,G,ne]);(0,i.useEffect)(()=>{(async()=>{const pe=(await(0,Y.X0)({projectCid:c})).map(z=>({...z,type:"advanced"})).sort((z,ge)=>new Date(ge.created_at).getTime()-new Date(z.created_at).getTime());if(j){const z=pe.find(ge=>ge.access_token===j);z&&(ne({type:l.entryKey["sharing:go-settingPage"],payload:{currentSharing:z,settingPageType:"edit"}}),ne({type:l.entryKey["sharing:init"],payload:{projShareToEdit:""}}))}ne({type:l.entryKey["sharing:advancedSharingList:update"],payload:{sharingList:pe}}),re(!0)})()},[c,ne]);const se=async()=>{const he=(0,P.jc)(e,r),ue=()=>{(0,fn.kH)("create_advanced_sharing_click",{project_name:u,project_cid:c,source:v==="iframe"?"\u5DE5\u4F5C\u53F0":"\u7F16\u8F91\u533A"})};if(m.length>=he){const z=(r==null?void 0:r.plan)==="org_full"?"MaxOrgSize":"NormalOrgSize";window.SharingEventEmitter.emit("sharing:count",{whichModal:z}),window.top.postMessage(JSON.stringify({sharingMessage:"sharing:count",payload:{whichModal:z}}),"*"),ue();return}const pe=(0,P.zM)(c,m,{view_access:_?"restricted":"public"});ne({type:l.entryKey["sharing:go-settingPage"],payload:{currentSharing:pe,settingPageType:"create"}}),ue()};return T?k?(0,s.jsxs)(Bt,{children:[(0,s.jsx)(F.C,{name:D==="dark"?"sharing/empty_dark":"sharing/empty",isColorPure:!0}),(0,s.jsx)(bt.jn,{onClick:se,className:"create-sharing",children:I18N.imockSharing.new_share})]}):(0,s.jsxs)(Rt,{children:[(0,s.jsxs)("div",{className:"create-item "+(I?"":"no-edit"),onClick:se,children:[(0,s.jsx)(F.C,{name:"sharing/add_new"}),I18N.imockSharing.new_share]}),m.map((he,ue)=>(0,s.jsx)(Gs,{setShowDelConfirmModal:G,sharingData:he},he.cid+"-"+ue)),Z.isOpened&&(0,s.jsx)(Js,{handleConfirmAction:te})]}):null},Xn=(0,i.memo)(fs),ys=g.Ay.div.withConfig({displayName:"styles__StyledSharingDefaultMainPage",componentId:"sc-zm7bo-0"})(["width:100%;height:calc(100% - ","px);.default-top{height:calc(100% - ","px);display:flex;flex-direction:column;justify-content:center;padding:0 24px;.switch-content{height:24px;display:flex;align-items:center;color:",";font-family:PingFang SC;font-size:14px;font-style:normal;font-weight:500;line-height:normal;justify-content:space-between;span{margin-right:10px;}.visit-count{font-weight:400;font-size:12px;color:",";}}.wm-tip{height:25px;margin-top:12px;display:flex;span{height:25px;font-size:12px;font-weight:400;line-height:25px;color:",";}.divider{width:1px;height:13px;margin:6px 10px;background:",";}.btn{display:inline-block;padding:4px 6px;width:60px;height:25px;line-height:17px;font-size:12px;font-weight:500;border-radius:4px;background:",";color:",";&:hover{background:",";}}}}.default-bottom{height:","px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;color:",";background:",";.bottom-left{display:flex;align-items:center;font-family:PingFang SC;font-size:14px;font-style:normal;font-weight:500;line-height:normal;}.share-icon{width:28px;height:28px;margin-left:14px;&:hover,&:active{background:",";}}svg{width:24px;height:24px;}.default-setting{display:flex;align-items:center;font-family:PingFang SC;font-size:14px;font-style:normal;font-weight:400;line-height:14px;padding:6px 12px 6px 6px;height:28px;border-radius:6px;cursor:pointer;svg{margin-right:2px;}&:not(.no-edit):hover,&:not(.no-edit):active{background:",";}&.no-edit{opacity:0.3;pointer-events:none;}}}&.canNotEdit{label{pointer-events:none;opacity:0.3;cursor:not-allowed;}}"],B.gE,B.gE,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_info_bg,e=>e.theme.color_text_link_normal,e=>e.theme.color_grid,B.gE,e=>e.theme.color_text_L1,e=>e.theme.color_bg_canvas,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_active);var Nt=n(86778),xs=n(53955),qn=n(42781),Mn=n(63508),En=n(64598),xn=n(15915);const es=e=>{var r;let{defaultShare:c}=e;const u=(0,d.wA)(),_=(0,i.useRef)(null),v=(0,d.d4)(l.query.getProject),m=c,[I,j]=(0,i.useState)(null);v&&(m.visibility=v.visibility);const D=(0,d.d4)(l.query.getHostType),Z=(0,d.d4)(l.query.getIsEditMode),G=(0,d.d4)(l.query.getUser),T=D==="iframe"||Z,re=(0,d.d4)(l.query.getCanEditByUser),ne=(0,d.d4)(l.query.getHostCurrentScreen),k=ne==null?void 0:ne.cid,te=(0,d.d4)(l.query.getUser),se=(0,d.d4)(l.query.getOrg),he=(0,d.d4)(ve.cb),ue=(v==null?void 0:v.is_org_project)||!1,pe=!ue&&re,[z,ge]=(0,i.useState)({top:0,left:0}),[ye,fe]=(0,i.useState)(!1),[je,Me]=(0,i.useState)(m==null?void 0:m.visibility);let ze=!1,Te=!1;if(ue){const{plan:Qe,trial:xt}=(0,On.rM)(se);Te=xt,ze=Qe===dn.Sj.OrgFull&&!Te}const He=Te||ze,Xe=he.roleName&&["org_owner","org_admin","org_manager"].includes(he.roleName),tt=He?Xe?"enterpriseAdmin":"enterpriseUser":"nonEnterprise",nt=T&&re&&je==="open",yt=T&&re,{isURLCopied:wt,handleCopyURL:kt}=Gn({project:v,sharing:m,user:G}),[At,Ht]=(0,i.useState)(!1),[lt,Ct]=(0,i.useState)(!0);(0,i.useEffect)(()=>{const Qe=(0,xs.fV)();if(Qe){const{mdWMMktList:xt,mtWMMktList:qt,noWMMktList:Zs}=Qe;(xt.size||qt.size)&&(0,xn._5)()&&Ct(!1);const Yo=[...xt,...qt,...Zs];Yo.length&&(0,qn.q)(Yo).then(Go=>{if(Go.mdWMMktList.length>0||Go.mtWMMktList.length>0){if(!(0,xn._5)())return;Ht(!0),(0,En.f)({exposure_reason:"\u5206\u4EAB\u63D0\u793A"})}})}},[]);const Lt=()=>{const{isSoloMdMember:Qe}=(0,Mn.s)(te,MB.currentOrg),xt=!!MB.currentOrg,qt={mode:"mat",payEntrance:"\u7F16\u8F91\u533A-v8-"+(xt?"\u56E2\u961F":"\u4E2A\u4EBA")+"-\u4ED8\u8D39\u7D20\u6750\u8BD5\u7528-\u5206\u4EAB\u884C\u4E3A\u63D0\u793A-"+(Qe?"\u5347\u7EA7\u7D20\u6750\u4F1A\u5458":"\u5347\u7EA7\u53CC\u4F1A\u5458"),checkoutPlace:"workspace_v8_"+(xt?"org":"solo")+"_watermark_share_"+(Qe?"template":"vip-template"),checkoutArea:"proto"};MB.global.popupHelper.chargeAsync({...qt}),(0,En._)({click_button:"\u5206\u4EAB-"+(Qe?"\u5347\u7EA7\u7D20\u6750\u4F1A\u5458":"\u5347\u7EA7\u53CC\u4F1A\u5458")})},Xt=(0,i.useCallback)(Qe=>{const xt={access:Qe};u({type:l.entryKey["sharing:remote:sharing:update"],payload:{sharingData:m,updatedKV:xt}}),u({type:l.entryKey["sharing:function:track"],payload:{operation:Qe==="public"?"\u6240\u6709\u4EBA":"\u5207\u6362\u56E2\u961F",viewMode:m.view_mode,isDefault:!0}})},[m,u]),ct=(0,i.useMemo)(()=>{const Qe=(0,s.jsx)(F.C,{name:"toolbar/selected",className:"selected-icon"});if(ue){const xt=(m==null?void 0:m.view_access)==="public";return[{label:I18N.imockSharing.share_anyone_view,onclick:()=>Xt("public"),icon:xt?Qe:(0,s.jsx)("div",{style:{width:0}})},{label:I18N.imockSharing.org_members_only,onclick:()=>Xt("restricted"),icon:xt?(0,s.jsx)("div",{style:{width:0}}):Qe}]}else return[]},[Xt,ue,m]),mt=(0,i.useMemo)(()=>{const Qe=[{name:"sharing/embed_icon",toolTipName:I18N.imockSharing.insert,className:It.embed,tempDisabled:je==="close",isBorder:!0}];return ENV.IS_ON_PREMISES||Qe.unshift({name:"sharing/QRcode_icon",toolTipName:I18N.imockSharing.qr_code,className:It.QRcode,tempDisabled:je==="close",isBorder:!0}),pe&&Qe.push({name:"sharing/mkt_icon",toolTipName:lt?I18N.imockSharing.publish_to_community:"\u542B\u4ED8\u8D39\u7D20\u6750\uFF0C\u4E0D\u652F\u6301\u4E0A\u4F20",className:It.mkt,tempDisabled:je==="close"||!lt,isColorPure:!0,isBorder:!0}),Qe},[je,pe,lt]),rn=(0,i.useCallback)(()=>{const Qe=je==="close"?"open":"close",xt={visibility:Qe};Me(Qe),u({type:l.entryKey["sharing:remote:sharing:update"],payload:{sharingData:m,updatedKV:xt}}),u({type:l.entryKey["sharing:function:track"],payload:{operation:Qe==="open"?"\u6253\u5F00\u8BBF\u95EE":"\u5173\u95ED\u8BBF\u95EE",viewMode:m.view_mode,isDefault:!0}})},[je,u,m,Me]),Kn=(0,i.useCallback)(Qe=>{if(!ue||!nt)return;const xt=Qe.currentTarget.getBoundingClientRect();let qt=xt.y+xt.height+3;D==="iframe"&&(qt=qt+56),ge({top:qt,left:xt.x-1}),fe(!ye)},[ue,nt,ye,ge,D]),Zn=(0,i.useCallback)(()=>{const Qe=(0,P.O8)(v,m,k);(0,yn.$)(Qe),kt(),u({type:l.entryKey["sharing:function:track"],payload:{operation:"\u9ED8\u8BA4\u5206\u4EAB\u590D\u5236\u94FE\u63A5",viewMode:m.view_mode,isDefault:!0}})},[v,m,k,kt,u]),wn=(0,i.useCallback)(()=>{const Qe=m,{view_mode:xt}=m;u({type:l.entryKey["sharing:go-settingPage"],payload:{currentSharing:Qe,settingPageType:"edit"}}),u({type:l.entryKey["sharing:function:track"],payload:{operation:"\u8BBE\u7F6E",viewMode:xt,isDefault:!0}})},[m,u]),an=(0,i.useCallback)((Qe,xt)=>{if(!(Qe!=null&&Qe.currentTarget))return;const qt=m,{view_mode:Zs}=m;switch(xt){case It.QRcode:Qe.stopPropagation(),u({type:l.entryKey["sharing:init"],payload:{topPageIndex:"qrCode",currentSelectSharing:qt}}),u({type:l.entryKey["sharing:function:track"],payload:{operation:"\u70B9\u51FB\u626B\u7801",viewMode:Zs,isDefault:!1}});break;case It.embed:u({type:l.entryKey["sharing:init"],payload:{topPageIndex:"embed",currentSelectSharing:qt}}),u({type:l.entryKey["sharing:function:track"],payload:{operation:"\u70B9\u51FB\u5D4C\u5165\u4E09\u65B9",viewMode:Zs,isDefault:!1}});break;case It.mkt:(0,at.JW)("/community/upload?project_cid="+(v==null?void 0:v.cid),"_blank","noreferrer");break;default:break}},[u,v,m]),$t=(0,i.useCallback)(()=>{var Qe;ge({...z,left:((Qe=_.current)==null?void 0:Qe.getBoundingClientRect().x)-1})},[z]);return(0,i.useEffect)(()=>(window.addEventListener("resize",$t),()=>window.removeEventListener("resize",$t))),(0,i.useEffect)(()=>{(async()=>{const xt=m.access_token;if(xt)try{const qt=await(0,Y.dJ)(xt);j(qt.count)}catch(qt){console.error("Error fetching visit count:",qt)}})()},[m.access_token]),m?(0,s.jsxs)(ys,{className:S()(!yt&&"canNotEdit"),children:[(0,s.jsxs)("div",{className:"default-top",children:[T?(0,s.jsxs)("div",{className:"switch-content",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{children:I18N.imockSharing.public_access}),(0,s.jsx)(Nt.A,{size:"small",readOnly:!0,isIOS:!0,isChecked:je==="open",onChange:rn})]}),(0,s.jsx)("div",{className:"visit-count",children:I!==null&&I!==0&&(0,s.jsxs)(s.Fragment,{children:[I18N.imockSharing.visit_count," ",I]})})]}):(0,s.jsxs)("div",{className:"switch-content",children:[I18N.imockSharing.default_share,I!==null&&I!==0&&(0,s.jsxs)("div",{className:"visit-count",children:[I18N.imockSharing.visit_count," ",I]})]}),(0,s.jsxs)(Vt,{className:S()("item-center","default-link",je==="close"&&"notView",!nt&&"userNoEdit"),isViewActiveDropdown:ye,children:[(0,s.jsx)("div",{ref:_,className:S()("left","sharingV2-click-visible",{"normal-hover":!0},!ue&&"can-not-edit"),onClick:Kn,children:(0,s.jsxs)("div",{className:"view-access-select",children:[(0,s.jsx)("div",{className:"chore",children:I18N.imockSharing.permission_access}),(0,s.jsx)("div",{className:"access-name",children:(r=I18N.imockSharing[B.nQ[m.view_access]])!=null?r:"missing data"}),ue&&(0,s.jsx)(F.C,{size:24,name:"sharing/dropdown_24"})]})}),(0,s.jsxs)(Gt,{type:"button",className:S()("copy","sharingV2-click-visible","url-copy-button","is-state-"+Number(wt)),onClick:Zn,children:[(0,s.jsx)("span",{className:"state state-0",children:m.password&&m.password.length>0?I18N.imockSharing.copy_url_pwd:I18N.imockSharing.copy_url}),(0,s.jsx)("span",{className:"state state-1",children:(0,s.jsx)(F.C,{name:"new_replace/check",className:"copy-check"})})]})]}),At&&(0,s.jsxs)("div",{className:"wm-tip",children:[(0,s.jsx)("span",{children:I18N.WaterMark.mkt.share.tip}),(0,s.jsx)("div",{className:"divider"}),(0,s.jsx)("div",{className:"btn",onClick:Lt,children:I18N.WaterMark.mkt.remove_wm})]})]}),(0,s.jsxs)("div",{className:"default-bottom",children:[(0,s.jsxs)("div",{className:"bottom-left",children:[(0,s.jsx)("div",{children:I18N.imockSharing.share_mode}),mt.map((Qe,xt)=>(0,s.jsx)(ln,{className:S()("share-icon",Qe.className),name:Qe.name,type:Qe.className,toolTipName:Qe.toolTipName,onClick:an,tempDisabled:Qe.tempDisabled,isColorPure:Qe.isColorPure,isBorder:Qe.isBorder,size:24},xt))]}),T&&(0,s.jsxs)("div",{className:S()("default-setting",!nt&&"no-edit"),onClick:wn,children:[(0,s.jsx)(F.C,{name:"sharing/default_setting"}),I18N.imockSharing.setting]})]}),ye&&(0,s.jsx)(Yt,{className:S()("design-avoid","viewAccess"),position:z,onClose:()=>{fe(!1)},children:ct.map((Qe,xt)=>(0,s.jsx)(Wt.Dr,{text:Qe.label,onClick:Qe.onclick,icon:Qe.icon,disabled:Qe.disabled,canClick:Qe.tempDisabled},xt))}),(0,s.jsx)(cn,{})]}):null},bs=(0,i.memo)(es),Tt=g.Ay.div.withConfig({displayName:"styles__StyledSharingMainPage",componentId:"sc-7p2gxy-0"})(["width:100%;position:relative;height:100%;"]),un=g.Ay.div.withConfig({displayName:"styles__StyledSharingEmbedded",componentId:"sc-xvloju-0"})(["width:100%;padding:20px 32px 0 32px;.desc{line-height:17px;font-size:12px;font-family:PingFang SC;color:",";margin-bottom:20px;}.copy-wrapper{display:flex;justify-content:space-between;height:112px;.demo-img{width:192px;height:100%;object-fit:cover;flex-shrink:0;}.copy-box{display:flex;flex-direction:column;width:148px;height:100%;border:1px solid ",";border-radius:2px;overflow:hidden;.sharing-embedded-url{flex-grow:1;height:0;padding:6px 8px;white-space:normal;word-wrap:break-word;color:",";font-size:12px;font-weight:500;}.copy-button{width:100%;height:28px;font-size:12px;background:",";border-top:1px solid ",";color:",";&:hover{background:",";}}}}.open-setting{justify-content:flex-start;.opener-wrapper{display:flex;align-items:center;span{color:#1684fc;margin-right:3px;cursor:pointer;}.svg-icon{width:6px;height:4px;cursor:pointer;transition:transform 0.2s ease-in-out;color:",";}&.is-open{.svg-icon{transform:rotate(-180deg);}}}}.open-setting.line-item.embedded-padding{padding:0;margin-top:14px;}.hidden{height:0;overflow:hidden;transition:height 0.2s;}.hidden.is-open{height:156px;}"],e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L2,e=>e.theme.color_bg_card,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L3);var Xs=n(95230);const ts=g.Ay.div.withConfig({displayName:"styles__StyledSharingTitleBar",componentId:"sc-174zu8p-0"})(["width:100%;height:","px;display:flex;align-items:center;border-bottom:1px solid ",";color:",";font-size:14px;font-family:PingFang SC;font-style:normal;font-weight:500;line-height:24px;.title{cursor:pointer;display:flex;align-items:center;svg{width:32px;height:32px;margin-left:10px;}}"],B.gE,e=>e.theme.color_border_state,e=>e.theme.color_text_L1),Nn=e=>{let{title:r,handleClick:c}=e;return(0,s.jsx)(ts,{children:(0,s.jsxs)("div",{className:"title",onClick:c,children:[(0,s.jsx)(F.C,{name:"sharing/nav_back"}),r]})})},vs=()=>{let e="read_only";const r=(0,d.wA)(),c=(0,d.d4)(l.query.getCurrentSelectSharing),u=(0,d.d4)(l.query.getProject),_=(0,d.d4)(l.query.getTheme),v=(0,d.d4)(l.query.getHostCurrentScreen),m=(0,d.d4)(l.query.getHostType),I=v==null?void 0:v.cid,{screen_visible_list:j,access_token:D,is_first_canvas_open:Z}=c||{};if(c.type==="default"){const{view_mode:ue}=c;e=ue}else{const{device_model:ue}=c;e=ue}let G="";const T=(0,d.d4)(l.query.getIsEditMode);c.type==="default"?G=T||e==="read_only"?I:new URLSearchParams(location.search).get("screen")||"":G=I;let re="";const ne=(0,P.a2)(D);m==="iframe"?re='':j&&j.length!==0?re='':re='';let k=null;const te=(0,i.useCallback)(ue=>{const pe=ue.currentTarget;pe.innerHTML=I18N.imockSharing.successfully_copied,clearTimeout(k),k=setTimeout(()=>{pe.innerHTML=I18N.imockSharing.successfully_copied},3e3),(0,P.kv)({action:"\u590D\u5236\u4EE3\u7801",project:u||{},linkName:c.link_name});try{MB.notice({text:"\u590D\u5236\u6210\u529F"})}catch(z){window.top.postMessage(JSON.stringify({sharingMessage:"sharing:notice",payload:{type:"embedCopy"}}),"*")}},[c,k,u]),se=(0,i.useCallback)(ue=>{(0,yn.$)(re),te(ue)},[te,re]),he=(0,i.useCallback)(()=>{r({type:l.entryKey["sharing:topPageIndex:jump"],payload:{topPageIndex:"edit"}})},[r]);return(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(Nn,{title:I18N.imockSharing.insert,handleClick:he}),(0,s.jsxs)(un,{children:[(0,s.jsx)("p",{className:"desc",children:I18N.imockSharing.zoom_insertion_desc}),(0,s.jsxs)("div",{className:"copy-wrapper",children:[(0,s.jsx)("img",{src:_===Xs.Sx.DARK?"/mb-workspace/images/sharing/share_embedded_dark.png":"/mb-workspace/images/sharing/share_embedded_light.png",className:"demo-img"}),(0,s.jsxs)("div",{className:"copy-box",children:[(0,s.jsx)("p",{className:"sharing-embedded-url",children:re}),(0,s.jsx)("button",{className:"copy-button copy","data-clipboard-text":re,onClick:se,children:I18N.imockSharing.copy_code})]})]})]})]})},Pn=(0,i.memo)(vs);var ns=n(54909);const _s=(0,g.AH)([".vip-title{display:inline-block;color:",";background-color:",";font-weight:500;font-size:12px;padding:0 4px;height:20px;text-align:center;border-radius:4px;line-height:20px;}"],e=>e.isIframe?ns.f.color_text_link_normal.value_dark:e.theme.color_text_link_normal,e=>e.isIframe?ns.f.color_info_bg.value_dark:e.theme.color_info_bg),Ss=g.Ay.div.withConfig({displayName:"styles__StyledNewSharePage",componentId:"sc-v150qt-0"})(["width:100%;height:100%;background-color:",";.basic-content{width:100%;height:calc(100% - ","px);:first-child{margin-bottom:16px;}}.header{height:","px;display:flex;align-items:center;border-bottom:1px solid ",";span{margin-left:24px;font-size:14px;font-weight:500;color:",";}}.share-link-title{margin-top:20px;margin-bottom:10px;display:flex;flex-direction:column;justify-content:center;margin-left:24px;font-size:12px;.title-text{color:",";}.name-input{display:flex;align-items:center;height:30px;font-size:14px;font-weight:500;color:",";span{max-width:212px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:relative;height:24px;line-height:24px;&:hover:after{box-sizing:border-box;content:'';position:absolute;top:0;left:0;width:100%;height:100%;border-bottom:1px solid rgba(22,133,252,1);}}.input-icon{margin-left:8px;}input{width:100%;margin-right:32px;height:24px;line-height:24px;color:",";border-bottom:1px solid rgba(22,133,252,1);}}}.tabs{margin:8px 24px 18px 24px;border-bottom:1px solid ",";.sharing-nav{width:90px;height:25px;min-height:25px;padding:0px;}.nav-item{flex:0;padding:0 24px 0 0;}.nav-label{height:24px;}.active .nav-label{color:",";font-weight:600;}.active.basic{.nav-label{&::after{content:'';position:absolute;bottom:-1px;width:30px;height:2px;background:",";}}}.active.visible{.nav-label{&::after{content:'';position:absolute;bottom:-1px;width:50px;height:2px;background:",";}}}}.line-item{display:flex;padding:0 24px;height:34px;align-items:center;justify-content:space-between;flex-grow:0;.item-title{color:",";}.item-expired{display:flex;.WorkspaceSelect{border-radius:6px;}.general-input{width:65px;height:28px;border-radius:6px;margin-right:12px;}}.RadioGroup label{min-height:unset;margin-right:unset;font-size:12px;&:not(:last-child){margin-right:16px;}}.switch-group{display:flex;.view-sticky{display:flex;align-items:center;margin-right:17px;label{margin-right:4px;}}.view-prd{display:flex;align-items:center;.question-action{display:flex;align-items:center;margin:0 8px;color:",";&:hover{color:",";}}}label.checked{color:",";}}}"],e=>e.theme.color_bg_white,B.gE,B.gE,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_background_icon_hover2,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L3,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1),bn=g.Ay.div.withConfig({displayName:"styles__StyledBasic",componentId:"sc-v150qt-1"})(["overflow-y:overlay;.divider{height:1px;background:",";margin:4px 24px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar{width:6px;height:6px;}&::-webkit-scrollbar-thumb{background-color:#dbdbdb;border-radius:4px;&:hover{background-color:#cccccc;}}&::-webkit-scrollbar-corner{background-color:transparent;}.expiration,.menu-list-type{cursor:pointer;display:flex;align-items:center;color:",";.misc{display:flex;align-items:center;}.drop-down-icon{margin-left:6px;}}.expiration{.drop-down-icon .svg-icon{transition:all 0.2s;transform :",";}}.menu-list-type{.drop-down-icon .svg-icon{transition:all 0.2s;transform :",";}}.password-input-item{display:flex;align-items:center;> :last-child{margin-left:10px;}}.last{margin-bottom:-8px;}.line-item.version-control{"," .vip-title{cursor:pointer;margin-left:4px;}}"],e=>e.theme.color_background_icon_hover2,e=>e.theme.color_text_L1,e=>e.isActiveContextMenu&&e.menuListType==="expiration"?"rotate(-180deg)":"rotate(0deg)",e=>e.isActiveContextMenu&&e.menuListType==="viewMode"?"rotate(-180deg)":"rotate(0deg)",_s),Qt=g.Ay.div.withConfig({displayName:"styles__StyledVisible",componentId:"sc-v150qt-2"})(["height:328px;.visible-check{height:32px;}"]),ws=(0,g.DU)([".custom-title{display:flex;justify-content:space-between;align-items:baseline;","}}#IBOT_SELECT_MENU_ROOT .SelectMenuPortal .WorkspaceSelectMenu .SelectOption{height:28px;&:hover{.vip-title{background-color:",";}}}#IBOT_SELECT_MENU_ROOT .SelectMenuPortal .WorkspaceSelectMenu.is-open{right:-14px;}"],_s,e=>e.isIframe?ns.f.color_bg_white.value_dark:e.theme.color_bg_white);var jt=n(53159);const _t=g.Ay.div.withConfig({displayName:"styles__StyledPasswordTextInput",componentId:"sc-k8kmsm-0"})(["display:flex;background-color:",";height:28px;&.is-warning{.password-input{border:1px solid #ff6161;border-radius:4px 0 0 4px;&:focus{border:1px solid #ff6161;}}}.divider{height:100%;width:1px;background-color:",";}.password-input-wrapper{position:relative;display:flex;align-items:center;width:100px;.password-input{position:relative;width:100%;font-size:12px;padding-right:22px;padding-left:8px;overflow:hidden;white-space:nowrap;text-overflow:clip;color:",";border:1px solid ",";border-radius:6px;height:100%;&:focus{border:1px solid ",";outline:1px solid ",";outline-offset:-2px;}&:hover{border:1px solid ",";}}.reset-pwd{width:20px;height:20px;position:absolute;border-radius:4px;right:4px;color:",";cursor:pointer;&:hover{path{fill:",";}color:",";background-color:",";}&:active{path{fill:",";}color:",";background-color:",";}}}.password-button{width:72px;padding:8px 12px;color:",";font-size:12px;line-height:16px;white-space:nowrap;border:1px solid ",";border-radius:0 4px 4px 0;border-left:none;background-color:",";&.saved{background-color:",";color:#999;pointer-events:none;}}"],e=>e.theme.color_bg_white,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_proto,e=>e.theme.color_proto,e=>e.theme.color_proto,e=>e.theme.color_text_L3,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_canvas,e=>e.theme.color_bg_canvas);function Ft(e){return Math.random().toString(36).slice(-e)}function vn(e){const{onSubmit:r,value:c}=e,[u,_]=(0,i.useState)(e.value),v=(0,i.useRef)(null),m=Z=>{_(Z.target.value)},I=()=>{const Z=Ft(6);_(Z),r(Z)},j=()=>{if(!r(u)){_(c);try{MB.notice({text:"\u5BC6\u7801\u683C\u5F0F\u9519\u8BEF\uFF0C\u4E0D\u5F97\u4E3A\u7A7A\u6216\u7279\u6B8A\u5B57\u7B26",type:"warning"})}catch(G){window.top.postMessage(JSON.stringify({sharingMessage:"sharing:notice"}),"*")}}},D=Z=>{Z.key==="Enter"&&(j(),v.current.blur())};return(0,s.jsx)(_t,{children:(0,s.jsxs)("div",{className:"password-input-wrapper",children:[(0,s.jsx)("input",{ref:v,type:"text",className:"password-input",value:u,onChange:m,onBlur:j,onKeyPress:D}),(0,s.jsx)(We.A,{content:I18N.imockSharing.gen_pwd_randomly,direction:"down",children:(0,s.jsx)(F.C,{className:"reset-pwd",name:"common/spinner",onClick:I})})]})})}function Dn(e){const{isOrgProject:r,sharingData:c,updateSharing:u}=e,_=c.view_mode,{isHavePassword:v}=Qn(c),m=(0,d.wA)(),j=(0,d.d4)(l.query.getHostType)==="iframe",{comment_permission:D,wechat:Z,view_sticky:G,is_first_canvas_open:T}=c,re=(0,i.useMemo)(()=>(0,P.R0)(r),[r]),ne=()=>{if(v)u({password:""}),m({type:l.entryKey["sharing:settingPage:default:confirm"]});else{const ge=Ft(6);k(ge)}m({type:l.entryKey["sharing:function:track"],payload:{operation:v?"\u5173\u95ED\u5BC6\u7801\u4FDD\u62A4":"\u6253\u5F00\u5BC6\u7801\u4FDD\u62A4",viewMode:_}})},k=ge=>/^\s*$/.test(ge)||!/^\w+$/.test(ge)?!1:(u({password:ge}),m({type:l.entryKey["sharing:settingPage:default:confirm"]}),m({type:l.entryKey["sharing:function:track"],payload:{operation:"\u5237\u65B0\u5BC6\u7801",viewMode:_}}),!0),te=()=>{u({wechat:!Z}),m({type:l.entryKey["sharing:settingPage:default:confirm"]}),m({type:l.entryKey["sharing:function:track"],payload:{operation:Z?"\u5173\u95ED\u8DF3\u8FC7\u79FB\u52A8\u7AEF\u63D0\u793A\u9875":"\u6253\u5F00\u8DF3\u8FC7\u79FB\u52A8\u7AEF\u63D0\u793A\u9875",viewMode:_}})},se=()=>{u({is_first_canvas_open:!T}),m({type:l.entryKey["sharing:settingPage:default:confirm"]}),m({type:l.entryKey["sharing:function:track"],payload:{operation:T?"\u5173\u95ED\u9ED8\u8BA4\u6253\u5F00\u7B2C\u4E00\u4E2A\u753B\u5E03":"\u6253\u5F00\u9ED8\u8BA4\u6253\u5F00\u7B2C\u4E00\u4E2A\u753B\u5E03",viewMode:_}})},he=(0,i.useMemo)(()=>D==="org_member",[D]),ue=()=>{u({view_sticky:G==="view_sticky"?"no_sticky":"view_sticky"}),m({type:l.entryKey["sharing:settingPage:default:confirm"]}),m({type:l.entryKey["sharing:function:track"],payload:{operation:G?"\u5173\u95ED\u6279\u6CE8\u53EF\u89C1":"\u6253\u5F00\u6279\u6CE8\u53EF\u89C1",viewMode:_}})},pe=()=>{u({comment_permission:D==="org_member"?"off":"org_member"}),m({type:l.entryKey["sharing:settingPage:default:confirm"]}),m({type:l.entryKey["sharing:function:track"],payload:{operation:he?"\u5173\u95ED\u8BC4\u8BBA":"\u6253\u5F00\u8BC4\u8BBA",viewMode:_}})},z=ge=>{let{value:ye}=ge;u({view_access:ye}),m({type:l.entryKey["sharing:settingPage:default:confirm"]}),m({type:l.entryKey["sharing:remote:sharing:update"],payload:{sharingData:c,updatedKV:{access:ye}}}),m({type:l.entryKey["sharing:function:track"],payload:{operation:ye==="public"?"\u6240\u6709\u4EBA":"\u5207\u6362\u56E2\u961F",viewMode:_,isDefault:!1}})};return(0,s.jsxs)(bn,{children:[r&&(0,s.jsxs)("div",{className:"line-item",children:[(0,s.jsx)("label",{className:"item-title",children:I18N.imockSharing.permission_access}),(0,s.jsx)(jt.A,{name:"access",optionList:re,value:c.view_access,onChange:z})]}),(0,s.jsxs)("div",{className:"line-item",children:[(0,s.jsx)("label",{className:"item-title",children:I18N.imockSharing.permission_password_protect}),(0,s.jsxs)("div",{className:"password-input-item",children:[v&&(0,s.jsx)(vn,{value:c.password,onSubmit:k}),(0,s.jsx)(Nt.A,{size:"small",isIOS:!0,isChecked:v,onChange:ne})]})]}),(0,s.jsx)("div",{className:"divider"}),(0,s.jsxs)("div",{className:"line-item",children:[(0,s.jsx)("label",{className:"item-title",children:I18N.imockSharing.note_display}),(0,s.jsx)(Nt.A,{size:"small",isIOS:!0,isChecked:G==="view_sticky",onChange:ue})]}),(0,s.jsxs)("div",{className:"line-item",children:[(0,s.jsx)("label",{className:"item-title",children:I18N.imockSharing.comment_allowed}),(0,s.jsx)(Nt.A,{size:"small",isIOS:!0,isChecked:he,onChange:pe})]}),(0,s.jsx)("div",{className:"divider"}),(0,s.jsxs)("div",{className:"line-item",children:[(0,s.jsx)("label",{className:"item-title",children:I18N.imockSharing.share_skip_install_run_inwechat}),(0,s.jsx)(Nt.A,{size:"small",isIOS:!0,isChecked:Z,onChange:te})]}),!j&&(0,s.jsxs)("div",{className:"line-item",children:[(0,s.jsx)("label",{className:"item-title",children:"\u9ED8\u8BA4\u6253\u5F00\u7B2C\u4E00\u4E2A\u753B\u5E03"}),(0,s.jsx)(Nt.A,{size:"small",isIOS:!0,isChecked:T,onChange:se})]})]})}var qs=n(60185);const In=()=>[{key:"read_only",label:I18N.imockSharing.read_only_mode,icon:"sharing/mode_canvas"},{key:"device",label:I18N.imockSharing.device_mode,icon:"sharing/mode_device"},{key:"inspect",label:I18N.imockSharing.inspect_mode,icon:"sharing/mode_inspect"}],ss=e=>{let{sharingData:r,updateSharing:c}=e;const u=T=>()=>{c({device_model:T})},[_,v]=(0,i.useState)(!1),m=(0,i.createRef)(),I=(0,d.d4)(l.query.getTheme),[j,D]=(0,i.useState)({left:0,top:0}),Z=()=>{if(!(m!=null&&m.current))return;const{left:T,top:re,height:ne}=m.current.getBoundingClientRect();D({left:T-58,top:re+ne+6}),setTimeout(()=>{v(!0)},0)},G=()=>{v(!1)};return(0,s.jsx)(Ms,{className:S()({dark:I==="dark"}),children:(0,s.jsxs)("div",{className:"device-model",children:[(0,s.jsxs)("div",{className:"device-model-header",children:[(0,s.jsx)("div",{className:"device-model-title",children:I18N.imockSharing.default_mode}),(0,s.jsxs)("div",{className:"modal-container",ref:m,children:[(0,s.jsx)(F.C,{onMouseEnter:Z,onMouseLeave:G,className:"tipsIcon",name:"sharing/question",size:14}),_&&(0,s.jsx)(Cs,{theme:I,position:j})]})]}),(0,s.jsx)("div",{className:"device-model-type-container",children:In().map((T,re)=>{let{key:ne,label:k,icon:te}=T;const se="device-model-"+ne+" ";return(0,s.jsxs)("div",{className:S()("device-model-type-item",se,{"is-active":ne===r.device_model,dark:I==="dark"}),onClick:u(ne),children:[(0,s.jsx)(F.C,{name:te,size:16}),(0,s.jsx)("span",{children:k})]},re)})})]})})},Cs=(0,i.memo)(e=>{const{theme:r,position:c}=e;return(0,qs.createPortal)((0,s.jsxs)(Ro,{className:S()("device-model-modal",{light:r==="light",dark:r==="dark"}),style:{left:c.left,top:c.top},children:[(0,s.jsx)("div",{className:"icon-triangle"}),(0,s.jsxs)("div",{className:S()("modal-content"),children:[(0,s.jsxs)("div",{className:"content-item read_only",children:[(0,s.jsx)("img",{src:"/mb-proto2/images/sharing/intro_read_only_"+r+"_2.png"}),(0,s.jsxs)("div",{className:"content-item-text",children:[(0,s.jsx)("div",{className:"intro-title",children:I18N.imockSharing.read_only_mode}),(0,s.jsx)("div",{className:"intro-content",children:I18N.imockSharing.read_only_mode_intro})]})]}),(0,s.jsxs)("div",{className:"content-item device",children:[(0,s.jsx)("img",{src:"/mb-proto2/images/sharing/intro_device_"+r+"_2.png"}),(0,s.jsxs)("div",{className:"content-item-text",children:[(0,s.jsx)("div",{className:"intro-title",children:I18N.imockSharing.device_mode}),(0,s.jsx)("div",{className:"intro-content",children:I18N.imockSharing.device_mode_intro})]})]}),(0,s.jsxs)("div",{className:"content-item inspect",children:[(0,s.jsx)("img",{src:"/mb-proto2/images/sharing/intro_inspect_"+r+"_2.png"}),(0,s.jsxs)("div",{className:"content-item-text",children:[(0,s.jsx)("div",{className:"intro-title",children:I18N.imockSharing.inspect_mode}),(0,s.jsx)("div",{className:"intro-content",children:I18N.imockSharing.inspect_mode_intro})]})]})]})]}),document.body)}),Ms=g.Ay.div.withConfig({displayName:"ViewModeModel__StyledDeviceModel",componentId:"sc-spi606-0"})(["position:relative;margin-bottom:14px;margin-top:20px;.device-model{padding:0 24px;.device-model-header{display:flex;align-items:center;margin-bottom:10px;color:",";.device-model-title{margin-right:4px;line-height:14px;}}.modal-container{display:flex;.tipsIcon{color:",";&:hover{color:",";}}}.device-model-type-container{display:flex;justify-content:space-between;.svg-icon > *{fill:currentColor;}.device-model-type-item{width:111px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;border:1px solid rgba(219,219,219,1);border-radius:6px;color:",";&.dark{border:1px solid #4f5052;}span{margin-left:4px;font-size:14px;}&:hover{border:1px solid ",";}.svg-icon{[stroke]{stroke:currentColor;fill:none;}}&.is-active{border:1px solid ",";color:",";.svg-icon{color:",";}}}}}"],e=>e.theme.color_text_L2,e=>e.theme.color_text_L3,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_normal),Ro=g.Ay.div.withConfig({displayName:"ViewModeModel__StyledDeviceModelModal",componentId:"sc-spi606-1"})(["&.device-model-modal{z-index:100;position:absolute;border-radius:8px;&.dark{.modal-content{outline:1px solid ",";}}&.light{box-shadow:0px 2px 10px 0px #27364E14;box-shadow:4px 12px 40px 0px #27364E1A;}.icon-triangle{z-index:1;position:absolute;width:10px;height:10px;top:-4px;left:58px;background:",";transform:rotate(45deg);border-top-left-radius:1px;}&.dark .icon-triangle{width:9px;height:9px;top:-5px;left:59px;border-top:1px solid ",";border-left:1px solid ",";}.modal-content{display:flex;flex-direction:column;padding:20px;width:374px;height:366px;border-radius:8px;background:",";&:lang(en){height:250px;}img{width:160px;height:96px;}.content-item:not(:last-child){margin-bottom:16px;}.content-item-text{display:flex;flex-direction:column;justify-content:center;height:100%;margin-left:16px;}.device,.read_only,.inspect{width:100%;height:96px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;.intro-title{width:56px;height:22px;color:",";font-size:14px;font-weight:600;margin-bottom:6px;&:lang(en){width:max-content;}}.intro-content{color:",";}}}}"],e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_white,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_border_02,e=>e.theme.color_bg_white,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2);function Bo(){const e=(0,d.d4)(l.query.getCurrentSharing),r=(0,d.d4)(l.query.getProject),c=(0,d.wA)(),u=(0,i.useCallback)(m=>{c({type:l.entryKey["sharing:currentSharing:update"],payload:{updatedKV:m}})},[c]),_=m=>{c({type:l.entryKey["sharing:currentSharing:update"],payload:{updatedKV:m}}),(0,gn.a0)(r.cid+"_default_sharing_view_mode",m.device_model,gn.qW.String),c({type:l.entryKey["sharing:settingPage:default:confirm"]})},v=()=>{c({type:l.entryKey["sharing:topPageIndex:jump"],payload:{topPageIndex:"edit"}})};return(0,s.jsxs)(Ss,{children:[(0,s.jsx)(Nn,{title:I18N.imockSharing.sharing_setting_title,handleClick:v}),(0,s.jsxs)("div",{className:"basic-content",children:[(0,s.jsx)(ss,{sharingData:e,updateSharing:_}),(0,s.jsx)(Dn,{isOrgProject:r.is_org_project,sharingData:e,updateSharing:u})]})]})}var os=n(54608);const Ns=()=>(0,s.jsx)(Is,{}),Is=g.Ay.div.withConfig({displayName:"Divider__StyledDivider",componentId:"sc-x06h85-0"})(["height:1px;background:",";margin:8px 24px;"],e=>e.theme.color_background_icon_hover2);var eo=n(7775),Rn=n(60081),js=n(24660),is=n(39547);function to(e){const{isOrgProject:r,sharingData:c,updateSharing:u,settingPageType:_}=e,v=c.device_model,m=(0,i.useMemo)(()=>(0,P.R0)(r),[r]),{isHavePassword:I}=Qn(c),j=(0,d.d4)(l.query.getUser),D=(0,d.d4)(l.query.getOrg),G=(0,d.d4)(l.query.getHostType)==="iframe",T=(0,d.wA)(),re="v8-\u5206\u4EAB\u5F39\u7A97_\u81EA\u5B9A\u4E49\u94FE\u63A5\u6709\u6548\u671F";let ne=!1,k=!1;if(r){const{plan:ct}=(0,On.rM)(D);ne=[dn.Sj.OrgExpired,dn.Sj.OrgFree].includes(ct),k=ct!==dn.Sj.OrgFull}else{const ct=is.t.InitialUser(j),mt=ct.planSdk.prototypePlan.getUserPlan(),rn=ct.planSdk.prototypePlan.getUserStatus();ne=[dn.L1.Lifetime,dn.L1.PremiumLifetime].includes(mt)&&rn!==dn.pZ.Trial,k=![dn.L1.Lifetime,dn.L1.PremiumLifetime].includes(mt)}const{view_sticky:te,comment_permission:se,wechat:he,enable_version_record:ue,is_first_canvas_open:pe}=c,z=ct=>{let{value:mt}=ct;u({view_access:mt})},ge=()=>{if(I)u({password:""});else{const ct=Ft(6);ye(ct)}T({type:l.entryKey["sharing:function:track"],payload:{operation:I?"\u5173\u95ED\u5BC6\u7801\u4FDD\u62A4":"\u6253\u5F00\u5BC6\u7801\u4FDD\u62A4",viewMode:v,isDefault:!0}})},ye=ct=>/^\s*$/.test(ct)||!/^\w+$/.test(ct)?!1:(u({password:ct}),T({type:l.entryKey["sharing:function:track"],payload:{operation:"\u5237\u65B0\u5BC6\u7801",viewMode:v,isDefault:!0}}),!0),fe=()=>{u({wechat:!he}),T({type:l.entryKey["sharing:function:track"],payload:{operation:he?"\u5173\u95ED\u8DF3\u8FC7\u79FB\u52A8\u7AEF\u63D0\u793A\u9875":"\u6253\u5F00\u8DF3\u8FC7\u79FB\u52A8\u7AEF\u63D0\u793A\u9875",viewMode:v,isDefault:!0}})},je=()=>{u({is_first_canvas_open:!pe}),T({type:l.entryKey["sharing:function:track"],payload:{operation:pe?"\u6253\u5F00\u9ED8\u8BA4\u6253\u5F00\u7B2C\u4E00\u4E2A\u753B\u5E03":"\u5173\u95ED\u9ED8\u8BA4\u6253\u5F00\u7B2C\u4E00\u4E2A\u753B\u5E03",viewMode:v,isDefault:!0}})},Me=(0,i.useMemo)(()=>se==="org_member",[se]),ze=()=>{u({view_sticky:!te,sticky:!te}),T({type:l.entryKey["sharing:function:track"],payload:{operation:te?"\u5173\u95ED\u6279\u6CE8\u53EF\u89C1":"\u6253\u5F00\u6279\u6CE8\u53EF\u89C1",viewMode:v,isDefault:!0}})},Te=()=>{u({comment_permission:se==="org_member"?"off":"org_member"}),T({type:l.entryKey["sharing:function:track"],payload:{operation:Me?"\u5173\u95ED\u8BC4\u8BBA":"\u6253\u5F00\u8BC4\u8BBA",viewMode:v,isDefault:!0}})},[He,Xe]=(0,i.useState)("1"),[tt,nt]=(0,i.useState)("forever"),{remainTimeText:yt}=Yn(c,!1,999);(0,i.useEffect)(()=>{c&&c.expire_type==="forever"?nt(c.expire_type):(Xe(c.expire_type),nt(yt))},[c,yt]);const wt=(0,i.useRef)(null),kt=()=>{if(ne){const ct=(0,js.l)(D,re);if(D||(ct.mode="org",ct.isSelectOrg=!0),G){const mt="/workspace?payment_param="+(0,ft._)(ct);(0,at.JW)(mt,"_blank","noreferrer")}else MB.global.popupHelper.chargeAsync(ct);return!0}return!1},At=ct=>{if(ct==="forever")u({expire_type:ct});else if(kt()){u({expire_type:"forever"},{isCustom:!0});return}T({type:l.entryKey["sharing:function:track"],payload:{operation:ct==="forever"?"\u6709\u6548\u671F\u6C38\u4E45":"\u6709\u6548\u671F\u81EA\u5B9A\u4E49",viewMode:v,isDefault:!1}}),nt(ct)},Ht=[{label:"\u6C38\u4E45\u6709\u6548",value:"forever"},{label:ne?(0,s.jsxs)("div",{className:"custom-title",children:["\u81EA\u5B9A\u4E49",(0,s.jsx)("span",{className:"vip-title",children:"\u56E2\u961F\u7248"})]}):"\u81EA\u5B9A\u4E49",value:"custom"}],lt=ct=>/^([1-9]\d{0,3}|9999)$/.test(ct),Ct=ct=>{const mt=ct.target.value;if(!lt(mt))try{MB.notice({text:"\u8F93\u5165\u503C\u65E0\u6548\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165",type:"warning"});return}catch(Kn){window.top.postMessage(JSON.stringify({sharingMessage:"sharing:notice"}),"*")}u({expire_type:mt}),Xe(mt)},Lt=()=>{const ct=(0,js.l)(D,"\u7F16\u8F91\u533A_v8\u539F\u578B\u5206\u4EAB_\u7248\u672C\u8BB0\u5F55\u5F00\u5173","v8proto-share-set-version",!0);if(ct.immediateUse="org_full",G){const mt="/workspace?payment_param="+(0,ft._)(ct);(0,at.JW)(mt,"_blank","noreferrer")}else MB.global.popupHelper.chargeAsync(ct)},Xt=()=>{k?Lt():(u({enable_version_record:!ue}),T({type:l.entryKey["sharing:function:track"],payload:{operation:ue?"\u5173\u95ED\u67E5\u770B\u7248\u672C\u8BB0\u5F55":"\u6253\u5F00\u67E5\u770B\u7248\u672C\u8BB0\u5F55",viewMode:v,isDefault:!1}}))};return(0,s.jsxs)(i.Fragment,{children:[(0,s.jsxs)(bn,{children:[c.type==="advanced"&&r&&(0,s.jsxs)("div",{className:"line-item",children:[(0,s.jsx)("label",{className:"item-title",children:I18N.imockSharing.permission_access}),(0,s.jsx)(jt.A,{name:"access",optionList:m,value:c.view_access,onChange:z})]}),(0,s.jsxs)("div",{className:"line-item "+(r?"mt":""),children:[(0,s.jsx)("label",{className:"item-title",children:I18N.imockSharing.permission_password_protect}),(0,s.jsxs)("div",{className:"password-input-item",children:[I&&(0,s.jsx)(vn,{value:c.password,onSubmit:ye}),(0,s.jsx)(Nt.A,{size:"small",isIOS:!0,isChecked:I,onChange:ge})]})]}),(0,s.jsxs)("div",{className:"line-item",children:[(0,s.jsx)("label",{className:"item-title",children:I18N.imockSharing.permission_link_expired}),(0,s.jsxs)("div",{className:"item-expired",children:[tt==="custom"&&(0,s.jsx)(Rn.A,{className:"general-input",attr:"width",value:He,cursorDirection:!1,min:1,max:9999,rightTitle:"\u5929",actionButton:!1,ref:wt,isSelect:!0,onBlur:Ct,disableKeyboardEvents:!0}),(0,s.jsx)(eo.mq,{value:tt,attr:"expire_type",placeholder:_==="create"?He+"\u5929\u540E\u5931\u6548":tt,optionList:Ht,onChange:ct=>At(ct)})]})]}),(0,s.jsx)(Ns,{}),(0,s.jsxs)("div",{className:"line-item",children:[(0,s.jsx)("label",{className:"item-title",children:I18N.imockSharing.note_display}),(0,s.jsx)(Nt.A,{size:"small",isIOS:!0,isChecked:te,onChange:ze})]}),(0,s.jsxs)("div",{className:"line-item mt",children:[(0,s.jsx)("label",{className:"item-title",children:I18N.imockSharing.comment_allowed}),(0,s.jsx)(Nt.A,{size:"small",isIOS:!0,isChecked:Me,onChange:Te})]}),(0,s.jsxs)("div",{className:"line-item version-control mt",children:[(0,s.jsxs)("label",{className:"item-title",children:[I18N.imockSharing.version_control,k&&(0,s.jsx)("span",{className:"vip-title",onClick:Lt,children:I18N.Common.business_plan})]}),(0,s.jsx)(Nt.A,{size:"small",isIOS:!0,isChecked:ue,readOnly:k,onChange:Xt})]}),(0,s.jsx)(Ns,{}),(0,s.jsxs)("div",{className:"line-item",children:[(0,s.jsx)("label",{className:"item-title",children:I18N.imockSharing.share_skip_install_run_inwechat}),(0,s.jsx)(Nt.A,{size:"small",isIOS:!0,isChecked:he,onChange:fe})]}),!G&&(0,s.jsxs)("div",{className:"line-item",children:[(0,s.jsx)("label",{className:"item-title",children:"\u9ED8\u8BA4\u6253\u5F00\u7B2C\u4E00\u4E2A\u753B\u5E03"}),(0,s.jsx)(Nt.A,{size:"small",isIOS:!0,isChecked:pe,onChange:je})]})]}),(0,s.jsx)(ws,{isIframe:G})]})}var nn=n(74059),no=n(66748),ht=n.n(no);const so=g.Ay.div.withConfig({displayName:"styles__StyledCheck",componentId:"sc-1wxzhto-0"})(["position:relative;display:flex;align-items:center;cursor:pointer;color:",";&.readonly{cursor:default;}&.is-disabled{cursor:not-allowed;&::after{content:'';position:absolute;left:0;top:0;width:100%;height:100%;background-color:#f2f2f2;}}> input[type=radio],> input[type=checkbox]{position:absolute;opacity:0;width:12px;height:12px;}.Check-state{position:relative;width:12px;height:12px;font-size:12px;display:flex;align-items:center;border:1px solid ",";border-radius:",";transition:all 0.2s ease-in-out;background-color:",";.icon{transition:all 0.2s ease-in-out;position:absolute;top:-1px;left:-1px;}}.Check-label{margin-left:0.33333em;color:",";}&.is-checked .Check-state{background-color:",";border:1px solid ",";color:#fff;.icon{transform:scale(0.833);color:#f2f4f5;}}&:not(.is-checked) .Check-state .icon{speak:none;opacity:0;}"],e=>e.theme.color_text_L2,e=>e.theme.color_text_disabled01,e=>e.isCircle?"50%":"2px",e=>e.theme.color_bg_white,e=>e.theme.color_text_L2,e=>e.theme.color_text_L3,e=>e.theme.color_text_L2);class rs extends i.PureComponent{constructor(){super(...arguments),(0,nn.A)(this,"onToggle",r=>{const{onChange:c}=this.props;c(r)})}render(){const{className:r,isDisabled:c,readOnly:u,isChecked:_,isCircle:v}=this.props,m=S()(r,{"is-checked":_,"is-disabled":c,readonly:u});return(0,s.jsx)(so,{className:m,onClick:this.onToggle,isCircle:v,children:(0,s.jsx)("span",{className:"Check-state",children:(0,s.jsx)(F.C,{name:"new_replace/box_check"})})})}}(0,nn.A)(rs,"propTypes",{isChecked:ht().bool,isDisabled:ht().bool,readOnly:ht().bool,onChange:ht().func,label:ht().any,name:ht().string,value:ht().any,className:ht().string,isCircle:ht().bool}),(0,nn.A)(rs,"defaultProps",{isChecked:!1,label:"",className:"",isCircle:!1,onChange:()=>null,onToggle:()=>null});var oo=n(67234),io=n(89099),Es=n(44622);const ro=g.Ay.div.withConfig({displayName:"styles__StyledSharingScreenHiddenList",componentId:"sc-1bmii7a-0"})(["padding:0 17px;.sm-hidden-check{display:flex;height:40px;align-items:center;justify-content:space-between;.item-title{color:",";}}.sm-check{.Check-state{background-color:transparent;border:1px solid ",";}.Check-label{color:",";}&.is-checked .Check-state{background-color:#1684fc;border:1px solid #1684fc;.icon{color:#fff;}}&.is-checked.is-disabled .Check-state{background-color:",";border:1px solid ",";span.icon{color:",";}}&.is-disabled .Check-state{background-color:",";border:1px solid ",";}&.is-disabled::after{background-color:unset;}}.screen-config-header{display:flex;padding-left:8px;flex-direction:row;height:36px;&.is-disabled{cursor:not-allowed;color:#ccc;.screen-name{color:",";}> label{&.is-disabled::after{background-color:unset;}}span.Check-label{color:",";}.content-wrapper{span{color:",";}}}span.Check-label{color:",";margin-left:10px;}.content-wrapper{display:flex;align-items:center;span{&.divider{margin-left:10px;margin-right:11px;}color:",";}}}.screen-list-content{height:210px;overflow-y:overlay;background:",";margin:0 8px;&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar{width:6px;height:6px;}&::-webkit-scrollbar-thumb{background-color:#dbdbdb;border-radius:4px;&:hover{background-color:#cccccc;}}&.dark{&::-webkit-scrollbar-thumb{background-color:#666;border-radius:4px;&:hover{background-color:#cccccc;}}}&::-webkit-scrollbar-corner{background-color:transparent;}&::-webkit-scrollbar{width:6px;}.screen-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}&.is-disabled{cursor:not-allowed;color:#ccc;.screen-name{color:",";}}ol,li{list-style:none;}.sm-list{height:auto;overflow-y:overlay;&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar{width:6px;height:6px;}&::-webkit-scrollbar-thumb{background-color:#dbdbdb;border-radius:4px;&:hover{background-color:#cccccc;}}&::-webkit-scrollbar-corner{background-color:transparent;}margin-left:8px;padding-left:15px;.sm-box{display:flex;align-items:center;height:36px;&.is-disabled{cursor:not-allowed;.sm-item{cursor:not-allowed;.expander{svg{color:",";cursor:not-allowed;}}.screen-name{color:",";}}}}.sm-item{display:flex;height:100%;width:100%;align-items:center;cursor:pointer;.sm-icon{min-width:20px;min-height:20px;margin-right:4px;color:",";}.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);}}}.screen-icon{margin-right:4px;}.screen-name{color:",";}}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_disabled01,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_btn_secondary_active,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_L2,e=>e.theme.color_text_L2,e=>e.theme.color_bg_card,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_disabled01,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1);class ks extends i.PureComponent{constructor(r){super(r),(0,nn.A)(this,"handleCheck",m=>{const{onUpdateScreenVisibleList:I,screenVisibleList:j}=this.props,D=new Set(j),Z=(0,Es.YU)(m),G=D.has(m.cid);Z.forEach(re=>{let{cid:ne}=re;G?D.delete(ne):D.add(ne)});const T=[];for(const re of D){const ne=this.screenDataMap[re];ne&&!(0,Es.Mo)(ne)&&T.push(ne)}I(Array.from(D))}),(0,nn.A)(this,"onSelectAll",m=>{const{onUpdateScreenVisibleList:I}=this.props;I(m?this.pageKeyList:[])});const{screenMetaList:c}=r,{treeData:u,pageAttrMap:_,pageKeyList:v}=c;this.screenDataMap=_,this.screenTreeData=u,this.pageKeyList=v,this.pageExceptFolderList=(0,P.RF)(_)}componentDidMount(){const r=(0,gn.Yt)("currentJumpingSharingScreenMetaCid",void 0,gn.qW.String);(0,gn.G5)("currentJumpingSharingScreenMetaCid"),r!==void 0&&setTimeout(()=>document.getElementById("app-sharing").querySelector('.content-item[data-cid="'+r+'"]').scrollIntoView(),300)}render(){const{theme:r,screenVisibleList:c,isDisplayScreenAll:u}=this.props,_=(c==null?void 0:c.length)===this.pageKeyList.length,v=(0,P.Mj)(u,c,this.pageExceptFolderList);return(0,s.jsxs)(ro,{children:[(0,s.jsxs)("div",{className:S()("screen-config-header",{"is-disabled":u}),children:[(0,s.jsx)(oo.A,{className:"sm-check",label:I18N.imockSharing.select_all,onChange:this.onSelectAll,isDisabled:u,isChecked:_}),(0,s.jsxs)("div",{className:"content-wrapper",children:[(0,s.jsx)("span",{className:"divider",children:"|"}),(0,s.jsx)("span",{children:I18N.imockSharing.select_n_screens.replace("%1",v).replace("%2",this.pageExceptFolderList.length)})]})]}),(0,s.jsx)("div",{className:S()("screen-list-content",{"is-disabled":u,dark:r==="dark"}),children:(0,s.jsx)("div",{className:"sm-list",children:(0,s.jsx)(Ls,{theme:r,isDisplayScreenAll:u,screenTreeData:this.screenTreeData,screenVisibleList:c,onCheck:this.handleCheck})})})]})}}(0,nn.A)(ks,"propTypes",{theme:ht().string,screenMetaList:ht().object,screenVisibleList:ht().array,onUpdateScreenVisibleList:ht().func,isDisplayScreenAll:ht().bool});const Ls=e=>{let{theme:r,isDisplayScreenAll:c,screenTreeData:u,screenVisibleList:_,onCheck:v}=e;return(0,s.jsx)(s.Fragment,{children:u.children.map(m=>(0,s.jsx)(kn,{theme:r,treeNode:m,root:!0,depth:0,screenVisibleList:_,isDisplayScreenAll:c,onCheck:v},m.cid))})};Ls.propTypes={theme:ht().string,isDisplayScreenAll:ht().bool,screenTreeData:ht().object,screenVisibleList:ht().array,onCheck:ht().func};class kn extends i.PureComponent{constructor(r){super(r),(0,nn.A)(this,"handleCheck",c=>{c.stopPropagation();const{isDisplayScreenAll:u}=this.props;if(u)return;const{treeNode:_,onCheck:v}=this.props;v(_)}),(0,nn.A)(this,"handleExpand",c=>{const{isDisplayScreenAll:u}=this.props;u||(c.stopPropagation(),this.setState({expand:!this.state.expand}))}),this.state={expand:!0}}render(){const{isDisplayScreenAll:r,treeNode:c,root:u,depth:_,screenVisibleList:v,onCheck:m,theme:I}=this.props,{children:j,data:D}=c,Z=j.length!==0,{expand:G}=this.state,T=v&&v.includes(c.cid);return(0,s.jsxs)("li",{className:S()("content-item"),"data-cid":c.cid,children:[(0,s.jsxs)("div",{className:S()("sm-box",{"is-display":T,"is-disabled":r}),children:[(0,s.jsx)(rs,{isDisabled:r,className:"sm-check",isChecked:T,onChange:this.handleCheck}),(0,s.jsx)(as,{isDisabled:r,theme:I,root:u,depth:_,showExpander:Z,data:D,expand:G,onClick:this.handleCheck,onExpand:this.handleExpand})]}),j.length>0&&G&&(0,s.jsx)("ol",{className:"sm-child",children:j.map(re=>(0,s.jsx)(kn,{theme:I,treeNode:re,depth:_+1,screenVisibleList:v,isDisplayScreenAll:r,onCheck:m},re.cid))})]})}}(0,nn.A)(kn,"propTypes",{theme:ht().string,isDisplayScreenAll:ht().bool,treeNode:ht().object,screenVisibleList:ht().array,depth:ht().number,root:ht().bool,onCheck:ht().func});class as extends i.PureComponent{render(){const{depth:r,showExpander:c,data:u,expand:_,onExpand:v,onClick:m,theme:I,isDisabled:j}=this.props,D=19*(r+1);return(0,s.jsxs)("div",{className:S()("sm-item"),style:{paddingLeft:D},onClick:m,children:[c&&(0,s.jsx)("a",{className:"expander",onClick:v,children:(0,s.jsx)(F.C,{className:S()("arrow-icon",{"is-expand":_}),name:"common/expand"})}),(0,s.jsx)(io.k,{icon:u.icon,theme:I,disabled:j,isExpand:_}),(0,s.jsx)("span",{className:"screen-name",children:u.name})]})}}(0,nn.A)(as,"propTypes",{theme:ht().string,isDisabled:ht().bool,showExpander:ht().bool,data:ht().object,depth:ht().number,expand:ht().bool,onExpand:ht().func,onClick:ht().func});function ls(e){const r=[{value:1,label:I18N.imockSharing.all_pages},{value:2,label:I18N.imockSharing.partial_pages}],{sharingData:c,updateSharing:u}=e,[_,v]=(0,i.useState)(c.screen_visible_switch?2:1),m=(0,d.d4)(l.query.getTheme),I=(0,d.d4)(l.query.getScreenMetaList),j=Z=>{u({screen_visible_list:Z})},D=Z=>{let{value:G}=Z;u({screen_visible_switch:G==="2",screen_visible_list:[]}),v(G)};return(0,s.jsxs)(Qt,{children:[(0,s.jsx)("div",{className:"line-item visible-check",children:(0,s.jsx)(jt.A,{name:"access",optionList:r,value:_,onChange:D})}),I&&(0,s.jsx)(ks,{theme:m,screenMetaList:I,screenVisibleList:c.screen_visible_list,isDisplayScreenAll:!c.screen_visible_switch,onUpdateScreenVisibleList:j})]})}var cs=n(19722);const ao=e=>{let{handleConfirm:r,handleCancel:c}=e;const u=(0,d.d4)(l.query.getCurrentSharing),_=(0,d.d4)(l.query.getTheme),v=(0,d.d4)(l.query.getScreenMetaList),m=u.type==="default"?!1:u.screen_visible_switch&&(0,P.Mb)(v,u).selectedSize===0,I=()=>{m||r()};return(0,s.jsxs)(lo,{className:"confirm-bar",children:[(0,s.jsx)(bt.jn,{className:S()("confirm",{dark:_==="dark"}),disabled:m,onClick:I,children:I18N.SettingPanel.confirm}),(0,s.jsx)(bt.tA,{className:"cancel",onClick:c,children:I18N.imockSharing.cancel})]})},lo=g.Ay.div.withConfig({displayName:"ConfirmBar__StyledConfirmBar",componentId:"sc-1m75upe-0"})(["&.confirm-bar{display:inline-flex;flex-direction:row-reverse;padding:20px 24px;transition:all 0.2s ease-in-out 0s;position:absolute;bottom:0px;right:0px;.confirm{margin-left:12px;}}"]),co=()=>[{key:0,name:"basic",label:I18N.imockSharing.sharing_basic},{key:1,name:"visible",label:I18N.imockSharing.sharing_visible}];function uo(){const e=(0,d.d4)(l.query.getProject),r=(0,d.d4)(l.query.getSettingPageType),c=(0,d.d4)(l.query.getSubSettingPageType),u=(0,d.d4)(l.query.getCurrentSharing),_=(0,d.d4)(l.query.getAdvancedSharingList),v="recommend",m=(0,d.wA)(),[I,j]=(0,i.useState)(c==="basic"?0:1),[D,Z]=(0,i.useState)(u.link_name),[G,T]=(0,i.useState)(!1),re=Te=>{j(Te)},ne=(0,i.useCallback)(async(Te,He)=>{const{isCustom:Xe}=He||{};m({type:l.entryKey["sharing:settingPage:advanced:confirm"],payload:{updatedKV:Te,...Xe!==void 0&&{isCustom:Xe}}})},[m]),k=(0,i.useCallback)(()=>{m({type:l.entryKey["sharing:topPageIndex:jump"],payload:{topPageIndex:"edit"}}),r==="edit"&&G&&m({type:"sharing:advance:click:track"})},[m,r,G]),te=(0,i.useCallback)((Te,He)=>{m({type:l.entryKey["sharing:currentSharing:update"],payload:{updatedKV:Te}}),r==="edit"&&(T(!0),ne(Te,He))},[m,r,ne,T]),se=()=>{const Te=ye.current.value;Te===""?(m({type:l.entryKey["sharing:init"],payload:{sharingToast:I18N.Common.name_cannot_be_empty}}),Me(D)):(0,P.it)({value:Te,currentSharing:u,sharingList:_})?(Me(D),m({type:l.entryKey["sharing:init"],payload:{sharingToast:I18N.imockSharing.sharing_name_repeate_wran}})):(Z(Te),te({link_name:Te}))},{isRenaming:he,setIsRenaming:ue,handleKeyDown:pe,handleBlur:z,handleFocus:ge,inputRef:ye,handleInput:fe,inputName:je,setInputName:Me}=jn({name:u.link_name,fBlur:se}),ze=()=>{ue(!0)};return(0,s.jsxs)(Ss,{children:[r==="create"?(0,s.jsx)("div",{className:"header",children:(0,s.jsx)("span",{children:I18N.imockSharing.sharing_create_title})}):(0,s.jsx)(Nn,{title:I18N.imockSharing.sharing_setting_title,handleClick:k}),(0,s.jsxs)("div",{className:"share-link-title",children:[(0,s.jsx)("div",{className:"title-text",children:I18N.SmartFill.title}),(0,s.jsx)("div",{className:S()("name-input",{"is-renaming":he}),children:he?(0,s.jsx)("form",{children:(0,s.jsx)("input",{value:je,onFocus:ge,onChange:fe,ref:ye,onBlur:z,onKeyPress:pe})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{onClick:ze,children:D}),(0,s.jsx)(cs.A,{size:20,name:"sharing/pen_20",className:"input-icon",onClick:ze})]})})]}),(0,s.jsx)(ss,{sharingData:u,updateSharing:te}),(0,s.jsxs)("div",{className:"tabs",children:[(0,s.jsx)(os.A,{className:"sharing-nav",activeIndex:I,onTabChange:re,layoutV9:v,children:co().map(Te=>{let{key:He,name:Xe,...tt}=Te;return(0,s.jsx)(os.n,{...tt,active:I===He,className:S()({visible:Xe==="visible",basic:Xe==="basic"})},He)})}),(0,s.jsx)("div",{})]}),I===0?(0,s.jsx)(to,{isOrgProject:e.is_org_project,sharingData:u,updateSharing:te,settingPageType:r}):(0,s.jsx)(ls,{sharingData:u,updateSharing:te}),r==="create"&&(0,s.jsx)(ao,{handleConfirm:ne,handleCancel:k})]})}function po(){return(0,d.d4)(l.query.getCurrentSharing).type==="default"?(0,s.jsx)(Bo,{}):(0,s.jsx)(uo,{})}const ho=g.Ay.div.withConfig({displayName:"styles__StyledSharingToast",componentId:"sc-lv8qo5-0"})(["z-index:1;border-radius:4px;position:absolute;display:flex;align-items:center;padding:6px 10px;color:#FFF;font-size:14px;font-family:PingFang SC;font-style:normal;font-weight:400;line-height:24px;background:#454647;top:72px;left:50%;transform:translateX(-50%);svg{width:21px;height:21px;margin-right:4px;}"]),mo=(0,i.memo)(function(){const r=(0,d.d4)(l.query.getSharingToast),c=(0,d.wA)();return(0,i.useEffect)(()=>{setTimeout(()=>{c({type:l.entryKey["sharing:init"],payload:{sharingToast:""}})},1500)},[c]),r?(0,s.jsxs)(ho,{children:[(0,s.jsx)(F.C,{name:"sharing/toast_waring",isColorPure:!0}),r]}):null}),Ts=g.Ay.div.withConfig({displayName:"styles__StyledSharingQrCode",componentId:"sc-17am38q-0"})(["margin-top:70px;display:flex;align-items:center;justify-content:flex-start;flex-direction:column;height:calc(100% - ","px);p{margin-top:16px;color:","}"],B.gE,e=>e.theme.color_text_L3);var go=n(80582);const As=g.Ay.div.withConfig({displayName:"styles__StyledQRcodeBox",componentId:"sc-1xfoi8f-0"})(["display:flex;justify-content:center;align-items:center;background-color:",";border-radius:8px;width:130px;height:130px;filter:",";border:1px solid ",";.qrcode{width:110px;height:110px;}&.qrcode-and-icon{.p-icon-box{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:24px;height:24px;overflow:hidden;background-color:#f2f2f3;border-radius:2px;img{display:block;width:100%;height:100%;}}}"],e=>e.theme.color_sharing_qrcode_bg,e=>e.theme.color_sharing_qrcode_filter,e=>e.theme.color_share_del_confirm_border_color);function Os(e){const{isQRcodePanel:r,text:c,project:u}=e,_=u.icon||null;return r?(0,s.jsxs)(As,{className:"qrcode-and-icon",children:[(0,s.jsx)(go.A,{className:"qrcode",text:c,width:110,height:110}),_&&(0,s.jsx)("div",{className:"p-icon-box",children:(0,s.jsx)("img",{src:_})})]}):null}const ds=()=>{const e=(0,d.wA)(),r=(0,d.d4)(l.query.getCurrentSelectSharing),c=(0,d.d4)(l.query.getProject),u=(0,d.d4)(l.query.getHostCurrentScreen),_=u==null?void 0:u.cid,v=(0,i.useMemo)(()=>(0,P.O8)(c,r,_),[r,c,_]),m=(0,i.useCallback)(()=>{e({type:l.entryKey["sharing:topPageIndex:jump"],payload:{topPageIndex:"edit"}})},[e]);return(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)(Nn,{title:I18N.imockSharing.qr_code,handleClick:m}),(0,s.jsxs)(Ts,{children:[(0,s.jsx)(Os,{isQRcodePanel:!0,project:c,text:v}),(0,s.jsx)("p",{children:I18N.imockSharing.qr_tips})]})]})},fo=(0,i.memo)(ds),tn=()=>{var e;const r=(0,d.wA)(),c=(0,d.d4)(l.query.getHostSharingData),u=(0,d.d4)(l.query.getProject),_=u==null?void 0:u.is_org_project,{link_name:v,view_access:m}=c,I=(0,d.d4)(l.query.getUser),j=(0,d.d4)(l.query.getHostType),D=(0,d.d4)(l.query.getIsEditMode),Z=j==="iframe"||D,G=(0,d.d4)(l.query.getCanEditByUser),T=(0,d.d4)(l.query.getHostCurrentScreen),re=T==null?void 0:T.cid,{isURLCopied:ne,handleCopyURL:k}=Gn({project:u,sharing:c,user:I}),te=Z&&G,se=(0,i.useMemo)(()=>[{name:"sharing/QRcode_icon",toolTipName:I18N.imockSharing.qr_code,className:It.QRcode,tempDisabled:!1,isBorder:!0},{name:"sharing/embed_icon",toolTipName:I18N.imockSharing.insert,className:It.embed,tempDisabled:!1,isBorder:!0}],[]),he=(0,i.useCallback)(()=>{const pe=(0,P.O8)(u,c,re);(0,yn.$)(pe),k(),r({type:l.entryKey["sharing:function:track"],payload:{operation:"\u9AD8\u7EA7\u5206\u4EAB\u590D\u5236\u94FE\u63A5",viewMode:c.device_model,isDefault:!1}})},[r,c,k,re,u]),ue=(0,i.useCallback)((pe,z)=>{if(!(pe!=null&&pe.currentTarget))return;const ge=c,{device_model:ye}=c;switch(z){case It.QRcode:pe.stopPropagation(),r({type:l.entryKey["sharing:init"],payload:{topPageIndex:"qrCode",currentSelectSharing:ge}}),r({type:l.entryKey["sharing:function:track"],payload:{operation:"\u70B9\u51FB\u626B\u7801",viewMode:ye,isDefault:!1}});break;case It.embed:r({type:l.entryKey["sharing:init"],payload:{topPageIndex:"embed",currentSelectSharing:ge}}),r({type:l.entryKey["sharing:function:track"],payload:{operation:"\u70B9\u51FB\u5D4C\u5165\u4E09\u65B9",viewMode:ye,isDefault:!1}});break;default:break}},[r,c]);return(0,s.jsxs)(ys,{children:[(0,s.jsxs)("div",{className:"default-top",children:[(0,s.jsx)("div",{className:"switch-content",children:v}),(0,s.jsxs)(Vt,{className:S()("item-center","default-link",!te&&"userNoEdit"),children:[(0,s.jsx)("div",{className:S()("left","sharingV2-click-visible",{"normal-hover":!0},!_&&"can-not-edit"),children:(0,s.jsxs)("div",{className:"view-access-select",children:[(0,s.jsx)("div",{className:"chore",children:I18N.imockSharing.permission_access}),(0,s.jsx)("div",{className:"access-name",children:(e=I18N.imockSharing[B.nQ[m]])!=null?e:"missing data"}),_&&(0,s.jsx)(F.C,{size:24,name:"sharing/dropdown_24"})]})}),(0,s.jsxs)(Gt,{type:"button",className:S()("copy","sharingV2-click-visible","url-copy-button","is-state-"+Number(ne)),onClick:he,children:[(0,s.jsx)("span",{className:"state state-0",children:c.password&&c.password.length>0?I18N.imockSharing.copy_url_pwd:I18N.imockSharing.copy_url}),(0,s.jsx)("span",{className:"state state-1",children:(0,s.jsx)(F.C,{name:"new_replace/check",className:"copy-check"})})]})]})]}),(0,s.jsx)("div",{className:"default-bottom",children:(0,s.jsxs)("div",{className:"bottom-left",children:[(0,s.jsx)("div",{children:I18N.imockSharing.share_mode}),se.map((pe,z)=>(0,s.jsx)(ln,{className:S()("share-icon",pe.className),name:pe.name,type:pe.className,toolTipName:pe.toolTipName,onClick:ue,tempDisabled:pe.tempDisabled,isColorPure:pe.isColorPure,isBorder:pe.isBorder,size:24},z))]})})]})},yo=(0,i.memo)(tn),xo=()=>{const e=(0,d.d4)(l.query.getTopPageIndex),r=(0,d.d4)(l.query.getTabIndex),c=(0,d.d4)(l.query.getSharingToast),u=(0,d.d4)(l.query.getHostSharingData),_=!u||u.type==="default",v=(0,d.d4)(l.query.getProject),m=(0,d.d4)(l.query.getIsEditMode),j=(0,d.d4)(l.query.getHostType)==="iframe"||m,[D,Z]=(0,i.useState)(u);return(0,i.useEffect)(()=>{const{sharing:G}=(0,Y.Y5)(v);Z(G)},[u,v]),(0,s.jsxs)(Tt,{children:[e==="edit"&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Mt,{}),r===0?!j&&!_?(0,s.jsx)(yo,{}):D?(0,s.jsx)(bs,{defaultShare:D}):(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(Xn,{})]}),e==="embed"&&(0,s.jsx)(Pn,{}),e==="setting"&&(0,s.jsx)(po,{}),e==="qrCode"&&(0,s.jsx)(fo,{}),c&&(0,s.jsx)(mo,{})]})},Bn=(0,i.memo)(xo),bo=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z0-9-]{2,63}$/i,Ps=/^(?:\+?86)?1(?:3\d{3}|5[^4\D]\d{2}|8\d{3}|7(?:[0-35-9]\d{2}|4(?:0\d|1[0-2]|9\d))|9[0-35-9]\d{2}|6[2567]\d{2}|4[579]\d{2})\d{6}$/;var us=n(46795);const Ds=async(e,r)=>{try{let u=null;return e?u=await(0,us.DE)("/api/dashboard/v4/users/search?email="+e):r&&(u=await(0,us.DE)("/api/dashboard/v4/users/search?mobile="+r)),u}catch(u){var c;return u!=null&&(c=u.message)!=null&&c.includes("failed with 404")?{}:null}};var Fn=n(29584);const vo=(0,g.Ay)(Fn.A).withConfig({displayName:"styles__StyledPermissionTipDropdown",componentId:"sc-1ofnwys-0"})(["display:flex;align-items:center;justify-content:center;line-height:14px;button{.permisison-tip-icon{margin:5px 6px 0 6px;&:hover{path{fill:","}}}}"],e=>e.theme.color_project_access_tip_hover),_o=(0,g.DU)(['#IBOT_DROPDOWN_MENU_ROOT{.DropdownMenuBase{.permission-tip{.content{min-height:fit-content;padding:0;background-color:#333;border:1px solid #4f5052;.multi-line{padding:14px 14px 20px 14px;p,ul{padding:0;padding-left:3px;}&::before{content:"";width:0;height:0;border:11px solid transparent;border-bottom-color:#4F5052;position:absolute;top:-1px;left:',';margin-top:-18px;border-bottom-width:9px;}&::after{content:"";width:0;height:0;border:9px solid transparent;border-bottom-color:#333;position:absolute;top:3px;left:',";margin-top:-18px;border-bottom-width:7px;}}.single-line{padding:4px 12px;p{margin:0;padding:0;}}h4{font-weight:500;font-size:14px;line-height:16px;margin:0;margin-bottom:10px;}ul{text-align:justify;list-style:none;li{list-style:none;margin-bottom:8px;&:last-child{margin-bottom:0px;}}}.desc{font-weight:400;font-size:12px;line-height:18px;white-space:nowrap;.strong{font-weight:500;}.link{margin-left:4px;text-align:left;color:#1684fc;cursor:pointer;&:hover{text-decoration:underline;}}}.extra{white-space:nowrap;margin:12px 0 8px;font-weight:400;font-size:12px;color:rgba(255,255,255,0.5);}}}}}"],e=>e.isOnlyMemberManager?"66px":"88px",e=>e.isOnlyMemberManager?"68px":"90px");let sn=function(e){return e.OrgSpace="orgspace-permission-tip",e.OrgSpaceLimiter="orgspace-limiter-permission-tip",e.RootFolder="root-folder-permission-tip",e.SubFolder="sub-folder-permission-tip",e.Project="project-permission-tip",e}({});const Ln=e=>{const{tipType:r,position:c="center",className:u,isOnlyMemberManager:_=!1}=e,[v,m]=(0,i.useState)({}),I=(0,d.d4)(ve.il);(0,i.useEffect)(()=>{const D=document.querySelector(".sharingBoxV2 ");if(D){const{left:Z,top:G}=D.getBoundingClientRect();m({left:Number(Z)+13,top:Number(G)+29})}},[]);const j=()=>{switch(r){case sn.Project:return(0,s.jsxs)("section",{className:"multi-line",children:[(0,s.jsxs)("h4",{children:["\u{1F537} ",I18N.imockSharing.permissions]}),(0,s.jsxs)("ul",{children:[(0,s.jsxs)("li",{children:[(0,s.jsxs)("strong",{children:[I18N.imockSharing.permissions_manager,I18N.imockSharing.common_colon]}),I18N.imockSharing.permissions_manager_file]}),(0,s.jsxs)("li",{children:[(0,s.jsxs)("strong",{children:[I18N.imockSharing.permissions_can_edit,I18N.imockSharing.common_colon]}),I18N.imockSharing.permissions_can_edit_file]}),(0,s.jsxs)("li",{children:[(0,s.jsxs)("strong",{children:[I18N.imockSharing.permissions_only_view,I18N.imockSharing.common_colon]}),I18N.imockSharing.permissions_only_view_file]}),(0,s.jsxs)("li",{children:[(0,s.jsxs)("strong",{children:[I18N.imockSharing.permissions_ban_view,I18N.imockSharing.common_colon]}),I18N.imockSharing.permissions_ban_view_file]})]}),(0,s.jsx)("p",{className:"extra",dangerouslySetInnerHTML:{__html:I18N.imockSharing.permissions_automatically_sync_desc}})]});case sn.SubFolder:return(0,s.jsxs)("section",{className:"multi-line",children:[(0,s.jsx)("h4",{children:I18N.imockSharing.permissions}),(0,s.jsxs)("p",{className:"extra",children:["\u6839\u6587\u4EF6\u5939\u6210\u5458\u53CA\u6743\u9650\u81EA\u52A8\u540C\u6B65\u81F3\u7EC4\u5185\uFF0C\u82E5\u6709\u8C03\u6574\uFF0C",(0,s.jsx)("br",{}),"\u8BF7\u524D\u5F80\u6839\u6587\u4EF6\u5939\u8FDB\u884C\u6210\u5458\u53CA\u6743\u9650\u8C03\u6574"]})]});case sn.RootFolder:return(0,s.jsxs)("section",{className:"multi-line",children:[(0,s.jsx)("h4",{children:I18N.imockSharing.permissions}),(0,s.jsxs)("ul",{children:[(0,s.jsxs)("li",{className:"desc",children:[(0,s.jsxs)("strong",{children:[I18N.imockSharing.permissions_manager,I18N.imockSharing.common_colon]}),I18N.imockSharing.permissions_manager_folder]}),(0,s.jsxs)("li",{className:"desc",children:[(0,s.jsxs)("strong",{children:[I18N.imockSharing.permissions_can_edit,I18N.imockSharing.common_colon]}),I18N.imockSharing.permissions_can_edit_folder]}),(0,s.jsxs)("li",{className:"desc",children:[(0,s.jsxs)("strong",{children:[I18N.imockSharing.permissions_only_view,I18N.imockSharing.common_colon]}),I18N.imockSharing.permissions_only_view_folder]}),(0,s.jsxs)("li",{className:"desc",children:[(0,s.jsxs)("strong",{children:[I18N.imockSharing.permissions_ban_view,I18N.imockSharing.common_colon]}),I18N.imockSharing.permissions_ban_view_folder]})]})]});case sn.OrgSpace:return(0,s.jsxs)("section",{className:"multi-line",children:[(0,s.jsx)("h4",{children:I18N.imockSharing.permissions}),(0,s.jsxs)("ul",{children:[(0,s.jsxs)("li",{className:"desc",children:[(0,s.jsxs)("strong",{children:[I18N.imockSharing.permissions_space_manager,I18N.imockSharing.common_colon]}),I18N.imockSharing.permissions_space_manager_desc]}),(0,s.jsxs)("li",{className:"desc",children:[(0,s.jsxs)("strong",{children:[I18N.imockSharing.permissions_space_collaboration_member,I18N.imockSharing.common_colon]}),I18N.imockSharing.permissions_space_collaboration_member_desc]}),(0,s.jsxs)("li",{className:"desc",children:[(0,s.jsxs)("strong",{children:[I18N.imockSharing.permissions_space_review_member,I18N.imockSharing.common_colon]}),I18N.imockSharing.permissions_space_review_member_desc]}),(0,s.jsxs)("li",{className:"desc",children:[(0,s.jsxs)("strong",{children:[I18N.imockSharing.permissions_space_unregistered_member,I18N.imockSharing.common_colon]}),I18N.imockSharing.permissions_space_unregistered_member_desc]})]})]});case sn.OrgSpaceLimiter:return(0,s.jsx)("section",{className:"single-line",children:(0,s.jsxs)("p",{className:"desc",children:["\u8BE5\u6210\u5458\u53EA\u5BF9\u56E2\u961F\u5185\u6307\u5B9A\u6587\u4EF6/\u6587\u4EF6\u5939\u53EF\u67E5\u770B/\u7F16\u8F91 ",(0,s.jsx)("a",{href:"/hc/articles/222",className:"link",children:" \u67E5\u770B\u8BE6\u60C5"})]})});default:break}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(vo,{opener:(0,s.jsx)("svg",{className:"permisison-tip-icon",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.33341 7.00008C2.33341 4.42275 4.42275 2.33341 7.00008 2.33341C9.57741 2.33341 11.6667 4.42275 11.6667 7.00008C11.6667 9.57741 9.57741 11.6667 7.00008 11.6667C4.42275 11.6667 2.33341 9.57741 2.33341 7.00008ZM7.00008 1.16675C3.77842 1.16675 1.16675 3.77842 1.16675 7.00008C1.16675 10.2217 3.77842 12.8334 7.00008 12.8334C10.2217 12.8334 12.8334 10.2217 12.8334 7.00008C12.8334 3.77842 10.2217 1.16675 7.00008 1.16675ZM6.00842 5.82717V5.69267C6.00912 5.53262 6.06636 5.35509 6.19406 5.22162C6.31201 5.09835 6.54189 4.95841 6.99673 4.95841C7.42386 4.95841 7.72087 5.16234 7.87234 5.39386C8.0341 5.6411 8.00223 5.84856 7.92545 5.9522C7.82971 6.08146 7.71083 6.20085 7.56715 6.33019C7.52345 6.36954 7.46957 6.41642 7.4118 6.46669L7.41179 6.4667C7.30849 6.55659 7.19276 6.6573 7.10047 6.74511C6.77279 7.05691 6.41686 7.49208 6.41686 8.16675L6.41875 8.46216L7.5854 8.45467L7.58354 8.16515C7.58397 7.96563 7.66576 7.81765 7.90469 7.5903C7.985 7.51388 8.0572 7.45142 8.1398 7.37995L8.13984 7.37992C8.20093 7.32707 8.26773 7.26928 8.34772 7.19727C8.51407 7.04752 8.69919 6.8677 8.86295 6.64662C9.30517 6.0496 9.20176 5.29489 8.84863 4.75513C8.48521 4.19965 7.82399 3.79175 6.99673 3.79175C6.28084 3.79175 5.72583 4.02342 5.35109 4.41508C4.98633 4.79631 4.84308 5.27667 4.84175 5.68971V5.82717H6.00842ZM6.41874 9.04175V10.2107H7.58541V9.04175H6.41874Z",fill:"#999999"})}),mode:"dark",menuX:c,shouldOpenOnHover:!0,hoverDelay:100,menuClassName:S()("permission-tip",u&&u),menu:j(),menuBaseStyle:v}),(0,s.jsx)(_o,{isOnlyMemberManager:_})]})};var So=n(99739);const Rs=g.Ay.div.withConfig({displayName:"styles__StyledReadOnlyOption",componentId:"sc-1j0j1bo-0"})(["min-width:65px;text-align:start;padding-left:10px;cursor:default;&:lang(en){width:auto;}&.disabled{cursor:not-allowed;}.label{color:#9EA9BC;font-size:12px;}"]),Bs=(0,g.Ay)(So.Ay).withConfig({displayName:"styles__StyledPermissionSelector",componentId:"sc-1j0j1bo-1"})(["min-width:65px;&:lang(en){width:auto;}&.is-disabled{opacity:1;.caret{display:none;}button{span{color:#9EA9BC;}}}&.is-open .caret{transform:rotate(180deg);svg{transform:translateY(-3px) rotate(-45deg);}}button{text-align:right;span{color:#35445D;font-size:12px;}}.caret{margin:0 0 0 6px;transition:transform .2s;svg{width:6px;height:6px;margin:1px;border:solid 1px #35445D;border-top-color:transparent;border-right-color:transparent;transform:translateY(0) rotate(-45deg);path{opacity:0;}}}"]),wo=(0,g.DU)([".permission-select.CheckSelectMenu{padding:8px;border-radius:8px;border:1px solid ",";color:",";background:",";box-shadow:",";&:lang(en){min-width:136px;}&:not(.is-empty){padding:8px;}.SelectOption{height:24px;margin-bottom:2px;padding:0;color:",";border-radius:4px;line-height:24px;&:last-child{margin-bottom:0;}&.is-active,&:not(.empty-msg):not(.is-disabled):hover{background-color:",";color:",";}&:hover{color:",";}> span.Ellipsis{min-width:80px;padding:0 10px;margin-left:20px;&:lang(en){width:calc(100% - 22px);}}> .svg-icon{position:absolute;margin:0 0 0 10px;path{fill:",";}}&[data-value=\"__mb_delete_permission\"]{position:relative;margin-top:9px;&::before{position:absolute;top:-5px;right:0;left:0;border-top:solid 1px rgba(255,255,255,.1);content:'';}}}}"],e=>e.theme.color_bg_border_01,e=>e.theme.color_text_L1,e=>e.theme.color_bg_white,e=>e.theme.shadow_m,e=>e.theme.color_text_L1,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1);var hs=n(23485);const ms=e=>{let r=[],c={};switch(e){case L.W.OrgSpace:r=xe,c=Ye.FU;break;case L.W.Folder:r=Ee,c=Ye.lY;break;case L.W.Project:r=Oe,c=Ye.au;break;default:break}return r.map(u=>({...u,permission:(0,X.pf)(u.value,c)}))},Co=(e,r)=>{let c={};switch(e){case L.W.OrgSpace:return r;case L.W.Folder:c=Ue;break;case L.W.Project:c=Be;break;default:return r}return c[r]||r},Mo=e=>{switch(e){case L.W.OrgSpace:return I18N.imockSharing.permission_no_right_project;case L.W.Folder:return I18N.imockSharing.permission_no_right_folder;case L.W.Project:return I18N.imockSharing.permission_no_right_project;default:return I18N.imockSharing.permission_no_right}},Fs=e=>{const{value:r,optionList:c,handleChange:u}=e,_=(0,i.useRef)(null),[v,m]=(0,i.useState)(!0),I=c.filter(D=>D.value===r),j=(0,i.useCallback)(()=>{_.current&&_.current.close()},[]);return(0,i.useEffect)(()=>(document.body.addEventListener("wheel",j),()=>{document.body.removeEventListener("wheel",j)}),[j]),(0,i.useEffect)(()=>{const D=setTimeout(()=>{m(!1)},1e3);return()=>{clearTimeout(D)}},[]),v?(0,s.jsx)(Bs,{unstyled:!0,ref:_,placeholder:I18N.imockSharing.submit,menuTheme:"check",value:r,menuX:"right",onChange:u,optionList:I,menuClassName:"permission-select"}):(0,s.jsx)(Bs,{unstyled:!0,ref:_,placeholder:I18N.imockSharing.submit,menuTheme:"check",value:r,menuX:"right",onChange:u,optionList:c,menuClassName:"permission-select"})},No=(0,i.memo)(Fs);var Io=n(44367);const jo=(e,r)=>{const{isSelf:c,userCurrentSpacePermission:u,userCurrentScopePermisson:_,memberCurrentScopePermisson:v,memberTopScopePermisson:m,memberOrgPermisson:I,memberIsSpaceManager:j}=r;return e.map(Z=>{let{value:G,label:T,permission:re}=Z,ne=!1;const k=re.roleName.includes("ban_viewer");return u.isManager&&c?ne=k:_.isMember?_.level{const{readOnlyTooltip:r,isReset:c=!1,member:u,isOnlyOneManager:_,permissionScope:v,onPermissionChange:m,currentOrg:I}=e;let{readOnly:j}=e,D=j,Z=r;const G=ms(v),{permissionMap:T}=u,{memberCurrentScopePermisson:re,userCurrentScopePermisson:ne,userCurrentSpacePermission:k,currentScopeRoleName:te,isSelf:se,userIsSpaceLimiter:he,memberIsSpaceLimiter:ue}=T;let pe=jo(G,T);v===L.W.OrgSpace&&!ue&&(pe=pe.filter(ye=>ye.value!=="space_limiter")),(v===L.W.OrgSpace||ue)&&!re.isUnknown&&!re.isInherited&&!c&&(se&&!re.isUnknown||ne.isManager&&pe.push({value:le,label:I18N.imockSharing.remove,isDisabled:!1})),!D&&v===L.W.OrgSpace&&he&&!c&&(j=!0,D=!0),!D&&([L.W.Project,L.W.Folder].includes(v)||re.isViewer)&&!c&&(ne.isMember?ne.level{D||m(u,ye)};if(I){const{protoSeat:ye}=(0,Io.rA)(I,Number(u.user_id)),je=ye?"":"(\u65E0\u5E2D\u4F4D)";pe.map(Me=>{(Me.value==="project_manager"||Me.value==="project_member")&&(Me.label+=je)})}if(D||j){const ye=pe.find(fe=>fe.value===z);return ye?(0,s.jsx)(Rs,{className:S()("read-only-option",!j&&D&&"disabled"),children:(0,s.jsx)(hs.A,{content:Z,position:"bottom",children:(0,s.jsx)("span",{className:"label",children:ye.label})})}):null}return(0,s.jsx)(No,{value:z,handleChange:ge,optionList:pe})},Us=(0,i.memo)(zs),Ws=(0,g.DU)(["#IBOT_DROPDOWN_MENU_ROOT{.add-outer-member-tip{.content{min-height:fit-content;padding:2px 8px;background-color:#333;.desc{white-space:nowrap;.copy-text{text-decoration:underline;cursor:pointer;}}}}}"]),gs=g.Ay.section.withConfig({displayName:"styles__StyledMemberList",componentId:"sc-188anjy-0"})(['margin-bottom:10px;width:406px;&.sharing{.members > .enterTip > span > div{display:flex;flex-direction:column;align-items:center;justify-content:center;}}&[data-expanded="false"]{.members{display:none;}.caption{margin-bottom:15px;}}&+.member-list{margin-top:10px;}.caption{position:relative;display:flex;align-items:center;justify-content:flex-start;padding:0;font-weight:400;font-size:14px;line-height:20px;color:',";span{color:",";}.invite-item{display:flex;align-items:center;height:32px;text-align:center;font-family:PingFang SC;width:fit-content;border-radius:6px;font-weight:500;font-size:14px;color:",";cursor:pointer;position:absolute;right:20px;z-index:1;&:hover{color:",";}&:active{color:",";}.svg-icon{width:32px;color:inherit;& > *{fill:currentColor;}}}.btn-add-collaborator{position:absolute;right:0;display:flex;align-items:center;color:#1883FB;.svg-icon{margin-right:4px;width:12px;height:12px;}}.btn-toggle-expand{margin-left:10px;user-select:none;color:#1883FB;cursor:pointer;&.with-red-point{position:relative;&::after{content:'';background:rgb(228,33,33);position:absolute;width:6px;height:6px;top:-2px;left:100%;border-radius:50%;}}}}.members{.item{display:flex;align-items:center;justify-content:space-between;padding:10px 20px;&:hover{background:",";border-radius:4px;}.title,.account,.Select{button{font-weight:500;font-size:14px;line-height:20px;letter-spacing:1.2px;color:#545F6F;.Ellipsis{max-width:100px;&:lang(en){max-width:none;}}}}.title{flex:1;display:flex;justify-content:flex-start;align-items:center;.avatar{width:30px;height:30px;overflow:hidden;border-radius:50%;margin-right:12px;border:1px solid ",";&.avater-name{text-align:center;background:rgb(22,133,252);justify-content:center;color:white;font-size:14px;text-align:center;display:flex;align-items:center;}}.name{width:120px;overflow:hidden;color:#1f292e;white-space:nowrap;text-overflow:ellipsis;}}.account{flex:1;width:160px;color:#999;}.register{display:inline-block;text-align:center;height:22px;line-height:22px;border:1px solid rgb(41,141,248);box-sizing:border-box;border-radius:4px;width:48px;color:rgb(41,141,248);font-size:12px;font-weight:400;margin-left:8px;position:relative;color:red;&:lang(en){display:block;background:#F1F8FF;border:none;color:#1684FC;padding:3px 4px;width:max-content;margin-left:10px;font-weight:500;font-size:12px;line-height:12px;height:auto;}}}}.invite{.item{.title{.name{width:150px;&:lang(en){width:max-content;flex:1;display:flex;align-items:center;}}}.account{width:150px;display:inline-block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all;&:lang(en){margin:10px;}}}.addOuter{color:#999999;width:108px;text-align:right;.add{font-size:12px;margin-right:2px;}button{color:rgb(91,107,115);position:relative;top:2px;left:4px;}}.enterTip{font-size:12px;color:",";}}.inviteJoin{border-radius:4px;background:#298DF8;color:#fff;font-size:12px;font-weight:400;padding:7px 11px;cursor:pointer;word-break:keep-all;&:lang(en){padding:5px 11px;}}&.dark{.members .item .register{&:lang(en){background:rgba(22,132,252,0.1);}}}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_hover,e=>e.theme.color_text_link_hover,e=>e.theme.color_btn_secondary_hover,e=>e.theme.color_share_member__border_color,e=>e.theme.color_AI_Text_Auto_fill_path_hover);var Hs=n(18824);function zn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Vs=n(7043),Un=Number.isNaN||function(r){return typeof r=="number"&&r!==r};function Wn(e,r){return!!(e===r||Un(e)&&Un(r))}function Eo(e,r){if(e.length!==r.length)return!1;for(var c=0;c=r?e.call(null):_.id=requestAnimationFrame(u)}var _={id:requestAnimationFrame(u)};return _}var Ne=-1;function Ie(e){if(e===void 0&&(e=!1),Ne===-1||e){var r=document.createElement("div"),c=r.style;c.width="50px",c.height="50px",c.overflow="scroll",document.body.appendChild(r),Ne=r.offsetWidth-r.clientWidth,document.body.removeChild(r)}return Ne}var ke=null;function Re(e){if(e===void 0&&(e=!1),ke===null||e){var r=document.createElement("div"),c=r.style;c.width="50px",c.height="50px",c.overflow="scroll",c.direction="rtl";var u=document.createElement("div"),_=u.style;return _.width="100px",_.height="100px",r.appendChild(u),document.body.appendChild(r),r.scrollLeft>0?ke="positive-descending":(r.scrollLeft=1,r.scrollLeft===0?ke="negative":ke="positive-ascending"),document.body.removeChild(r),ke}return ke}var Pe=150,Ze=function(r){var c=r.columnIndex,u=r.data,_=r.rowIndex;return _+":"+c},be=null,_e=null,De=null;function Ke(e){var r,c=e.getColumnOffset,u=e.getColumnStartIndexForOffset,_=e.getColumnStopIndexForStartIndex,v=e.getColumnWidth,m=e.getEstimatedTotalHeight,I=e.getEstimatedTotalWidth,j=e.getOffsetForColumnAndAlignment,D=e.getOffsetForRowAndAlignment,Z=e.getRowHeight,G=e.getRowOffset,T=e.getRowStartIndexForOffset,re=e.getRowStopIndexForStartIndex,ne=e.initInstanceProps,k=e.shouldResetStyleCacheOnItemSizeChange,te=e.validateProps;return r=function(se){(0,Vs.A)(he,se);function he(pe){var z;return z=se.call(this,pe)||this,z._instanceProps=ne(z.props,zn(z)),z._resetIsScrollingTimeoutId=null,z._outerRef=void 0,z.state={instance:zn(z),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:typeof z.props.initialScrollLeft=="number"?z.props.initialScrollLeft:0,scrollTop:typeof z.props.initialScrollTop=="number"?z.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},z._callOnItemsRendered=void 0,z._callOnItemsRendered=t(function(ge,ye,fe,je,Me,ze,Te,He){return z.props.onItemsRendered({overscanColumnStartIndex:ge,overscanColumnStopIndex:ye,overscanRowStartIndex:fe,overscanRowStopIndex:je,visibleColumnStartIndex:Me,visibleColumnStopIndex:ze,visibleRowStartIndex:Te,visibleRowStopIndex:He})}),z._callOnScroll=void 0,z._callOnScroll=t(function(ge,ye,fe,je,Me){return z.props.onScroll({horizontalScrollDirection:fe,scrollLeft:ge,scrollTop:ye,verticalScrollDirection:je,scrollUpdateWasRequested:Me})}),z._getItemStyle=void 0,z._getItemStyle=function(ge,ye){var fe=z.props,je=fe.columnWidth,Me=fe.direction,ze=fe.rowHeight,Te=z._getItemStyleCache(k&&je,k&&Me,k&&ze),He=ge+":"+ye,Xe;if(Te.hasOwnProperty(He))Xe=Te[He];else{var tt=c(z.props,ye,z._instanceProps),nt=Me==="rtl";Te[He]=Xe={position:"absolute",left:nt?void 0:tt,right:nt?tt:void 0,top:G(z.props,ge,z._instanceProps),height:Z(z.props,ge,z._instanceProps),width:v(z.props,ye,z._instanceProps)}}return Xe},z._getItemStyleCache=void 0,z._getItemStyleCache=t(function(ge,ye,fe){return{}}),z._onScroll=function(ge){var ye=ge.currentTarget,fe=ye.clientHeight,je=ye.clientWidth,Me=ye.scrollLeft,ze=ye.scrollTop,Te=ye.scrollHeight,He=ye.scrollWidth;z.setState(function(Xe){if(Xe.scrollLeft===Me&&Xe.scrollTop===ze)return null;var tt=z.props.direction,nt=Me;if(tt==="rtl")switch(Re()){case"negative":nt=-Me;break;case"positive-descending":nt=He-je-Me;break}nt=Math.max(0,Math.min(nt,He-je));var yt=Math.max(0,Math.min(ze,Te-fe));return{isScrolling:!0,horizontalScrollDirection:Xe.scrollLeftXe?wt:0,lt=kt>Te?wt:0;this.scrollTo({scrollLeft:fe!==void 0?j(this.props,fe,ye,nt,this._instanceProps,lt):nt,scrollTop:je!==void 0?D(this.props,je,ye,yt,this._instanceProps,Ht):yt})},ue.componentDidMount=function(){var z=this.props,ge=z.initialScrollLeft,ye=z.initialScrollTop;if(this._outerRef!=null){var fe=this._outerRef;typeof ge=="number"&&(fe.scrollLeft=ge),typeof ye=="number"&&(fe.scrollTop=ye)}this._callPropsCallbacks()},ue.componentDidUpdate=function(){var z=this.props.direction,ge=this.state,ye=ge.scrollLeft,fe=ge.scrollTop,je=ge.scrollUpdateWasRequested;if(je&&this._outerRef!=null){var Me=this._outerRef;if(z==="rtl")switch(Re()){case"negative":Me.scrollLeft=-ye;break;case"positive-ascending":Me.scrollLeft=ye;break;default:var ze=Me.clientWidth,Te=Me.scrollWidth;Me.scrollLeft=Te-ze-ye;break}else Me.scrollLeft=Math.max(0,ye);Me.scrollTop=Math.max(0,fe)}this._callPropsCallbacks()},ue.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&O(this._resetIsScrollingTimeoutId)},ue.render=function(){var z=this.props,ge=z.children,ye=z.className,fe=z.columnCount,je=z.direction,Me=z.height,ze=z.innerRef,Te=z.innerElementType,He=z.innerTagName,Xe=z.itemData,tt=z.itemKey,nt=tt===void 0?Ze:tt,yt=z.outerElementType,wt=z.outerTagName,kt=z.rowCount,At=z.style,Ht=z.useIsScrolling,lt=z.width,Ct=this.state.isScrolling,Lt=this._getHorizontalRangeToRender(),Xt=Lt[0],ct=Lt[1],mt=this._getVerticalRangeToRender(),rn=mt[0],Kn=mt[1],Zn=[];if(fe>0&&kt)for(var wn=rn;wn<=Kn;wn++)for(var an=Xt;an<=ct;an++)Zn.push((0,i.createElement)(ge,{columnIndex:an,data:Xe,isScrolling:Ht?Ct:void 0,key:nt({columnIndex:an,data:Xe,rowIndex:wn}),rowIndex:wn,style:this._getItemStyle(wn,an)}));var $t=m(this.props,this._instanceProps),Qe=I(this.props,this._instanceProps);return(0,i.createElement)(yt||wt||"div",{className:ye,onScroll:this._onScroll,ref:this._outerRefSetter,style:(0,Hs.A)({position:"relative",height:Me,width:lt,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:je},At)},(0,i.createElement)(Te||He||"div",{children:Zn,ref:ze,style:{height:$t,pointerEvents:Ct?"none":void 0,width:Qe}}))},ue._callPropsCallbacks=function(){var z=this.props,ge=z.columnCount,ye=z.onItemsRendered,fe=z.onScroll,je=z.rowCount;if(typeof ye=="function"&&ge>0&&je>0){var Me=this._getHorizontalRangeToRender(),ze=Me[0],Te=Me[1],He=Me[2],Xe=Me[3],tt=this._getVerticalRangeToRender(),nt=tt[0],yt=tt[1],wt=tt[2],kt=tt[3];this._callOnItemsRendered(ze,Te,nt,yt,He,Xe,wt,kt)}if(typeof fe=="function"){var At=this.state,Ht=At.horizontalScrollDirection,lt=At.scrollLeft,Ct=At.scrollTop,Lt=At.scrollUpdateWasRequested,Xt=At.verticalScrollDirection;this._callOnScroll(lt,Ct,Ht,Xt,Lt)}},ue._getHorizontalRangeToRender=function(){var z=this.props,ge=z.columnCount,ye=z.overscanColumnCount,fe=z.overscanColumnsCount,je=z.overscanCount,Me=z.rowCount,ze=this.state,Te=ze.horizontalScrollDirection,He=ze.isScrolling,Xe=ze.scrollLeft,tt=ye||fe||je||1;if(ge===0||Me===0)return[0,0,0,0];var nt=u(this.props,Xe,this._instanceProps),yt=_(this.props,nt,Xe,this._instanceProps),wt=!He||Te==="backward"?Math.max(1,tt):1,kt=!He||Te==="forward"?Math.max(1,tt):1;return[Math.max(0,nt-wt),Math.max(0,Math.min(ge-1,yt+kt)),nt,yt]},ue._getVerticalRangeToRender=function(){var z=this.props,ge=z.columnCount,ye=z.overscanCount,fe=z.overscanRowCount,je=z.overscanRowsCount,Me=z.rowCount,ze=this.state,Te=ze.isScrolling,He=ze.verticalScrollDirection,Xe=ze.scrollTop,tt=fe||je||ye||1;if(ge===0||Me===0)return[0,0,0,0];var nt=T(this.props,Xe,this._instanceProps),yt=re(this.props,nt,Xe,this._instanceProps),wt=!Te||He==="backward"?Math.max(1,tt):1,kt=!Te||He==="forward"?Math.max(1,tt):1;return[Math.max(0,nt-wt),Math.max(0,Math.min(Me-1,yt+kt)),nt,yt]},he}(i.PureComponent),r.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},r}var ot=function(r,c){var u=r.children,_=r.direction,v=r.height,m=r.innerTagName,I=r.outerTagName,j=r.overscanColumnsCount,D=r.overscanCount,Z=r.overscanRowsCount,G=r.width,T=c.instance},St=50,gt=function(r,c){var u=r.rowCount,_=c.rowMetadataMap,v=c.estimatedRowHeight,m=c.lastMeasuredRowIndex,I=0;if(m>=u&&(m=u-1),m>=0){var j=_[m];I=j.offset+j.size}var D=u-m-1,Z=D*v;return I+Z},zt=function(r,c){var u=r.columnCount,_=c.columnMetadataMap,v=c.estimatedColumnWidth,m=c.lastMeasuredColumnIndex,I=0;if(m>=u&&(m=u-1),m>=0){var j=_[m];I=j.offset+j.size}var D=u-m-1,Z=D*v;return I+Z},vt=function(r,c,u,_){var v,m,I;if(r==="column"?(v=_.columnMetadataMap,m=c.columnWidth,I=_.lastMeasuredColumnIndex):(v=_.rowMetadataMap,m=c.rowHeight,I=_.lastMeasuredRowIndex),u>I){var j=0;if(I>=0){var D=v[I];j=D.offset+D.size}for(var Z=I+1;Z<=u;Z++){var G=m(Z);v[Z]={offset:j,size:G},j+=G}r==="column"?_.lastMeasuredColumnIndex=u:_.lastMeasuredRowIndex=u}return v[u]},Kt=function(r,c,u,_){var v,m;r==="column"?(v=u.columnMetadataMap,m=u.lastMeasuredColumnIndex):(v=u.rowMetadataMap,m=u.lastMeasuredRowIndex);var I=m>0?v[m].offset:0;return I>=_?et(r,c,u,m,0,_):Fe(r,c,u,Math.max(0,m),_)},et=function(r,c,u,_,v,m){for(;v<=_;){var I=v+Math.floor((_-v)/2),j=vt(r,c,I,u).offset;if(j===m)return I;jm&&(_=I-1)}return v>0?v-1:0},Fe=function(r,c,u,_,v){for(var m=r==="column"?c.columnCount:c.rowCount,I=1;_=T-j&&v<=G+j?_="auto":_="center"),_){case"start":return G;case"end":return T;case"center":return Math.round(T+(G-T)/2);case"auto":default:return v>=T&&v<=G?v:T>G||vge.clientWidth?Ie():0:z=ge.scrollHeight>ge.clientHeight?Ie():0}this.scrollTo(v(this.props,k,te,pe,this._instanceProps,z))},re.componentDidMount=function(){var k=this.props,te=k.direction,se=k.initialScrollOffset,he=k.layout;if(typeof se=="number"&&this._outerRef!=null){var ue=this._outerRef;te==="horizontal"||he==="horizontal"?ue.scrollLeft=se:ue.scrollTop=se}this._callPropsCallbacks()},re.componentDidUpdate=function(){var k=this.props,te=k.direction,se=k.layout,he=this.state,ue=he.scrollOffset,pe=he.scrollUpdateWasRequested;if(pe&&this._outerRef!=null){var z=this._outerRef;if(te==="horizontal"||se==="horizontal")if(te==="rtl")switch(Re()){case"negative":z.scrollLeft=-ue;break;case"positive-ascending":z.scrollLeft=ue;break;default:var ge=z.clientWidth,ye=z.scrollWidth;z.scrollLeft=ye-ge-ue;break}else z.scrollLeft=ue;else z.scrollTop=ue}this._callPropsCallbacks()},re.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&O(this._resetIsScrollingTimeoutId)},re.render=function(){var k=this.props,te=k.children,se=k.className,he=k.direction,ue=k.height,pe=k.innerRef,z=k.innerElementType,ge=k.innerTagName,ye=k.itemCount,fe=k.itemData,je=k.itemKey,Me=je===void 0?rt:je,ze=k.layout,Te=k.outerElementType,He=k.outerTagName,Xe=k.style,tt=k.useIsScrolling,nt=k.width,yt=this.state.isScrolling,wt=he==="horizontal"||ze==="horizontal",kt=wt?this._onScrollHorizontal:this._onScrollVertical,At=this._getRangeToRender(),Ht=At[0],lt=At[1],Ct=[];if(ye>0)for(var Lt=Ht;Lt<=lt;Lt++)Ct.push((0,i.createElement)(te,{data:fe,key:Me(Lt,fe),index:Lt,isScrolling:tt?yt:void 0,style:this._getItemStyle(Lt)}));var Xt=u(this.props,this._instanceProps);return(0,i.createElement)(Te||He||"div",{className:se,onScroll:kt,ref:this._outerRefSetter,style:(0,Hs.A)({position:"relative",height:ue,width:nt,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:he},Xe)},(0,i.createElement)(z||ge||"div",{children:Ct,ref:pe,style:{height:wt?"100%":Xt,pointerEvents:yt?"none":void 0,width:wt?Xt:"100%"}}))},re._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var k=this.props.itemCount;if(k>0){var te=this._getRangeToRender(),se=te[0],he=te[1],ue=te[2],pe=te[3];this._callOnItemsRendered(se,he,ue,pe)}}if(typeof this.props.onScroll=="function"){var z=this.state,ge=z.scrollDirection,ye=z.scrollOffset,fe=z.scrollUpdateWasRequested;this._callOnScroll(ge,ye,fe)}},re._getRangeToRender=function(){var k=this.props,te=k.itemCount,se=k.overscanCount,he=this.state,ue=he.isScrolling,pe=he.scrollDirection,z=he.scrollOffset;if(te===0)return[0,0,0,0];var ge=m(this.props,z,this._instanceProps),ye=I(this.props,ge,z,this._instanceProps),fe=!ue||pe==="backward"?Math.max(1,se):1,je=!ue||pe==="forward"?Math.max(1,se):1;return[Math.max(0,ge-fe),Math.max(0,Math.min(te-1,ye+je)),ge,ye]},T}(i.PureComponent),r.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},r}var Le=function(r,c){var u=r.children,_=r.direction,v=r.height,m=r.layout,I=r.innerTagName,j=r.outerTagName,D=r.width,Z=c.instance;if(0)var G},st=50,Ot=function(r,c,u){var _=r,v=_.itemSize,m=u.itemMetadataMap,I=u.lastMeasuredIndex;if(c>I){var j=0;if(I>=0){var D=m[I];j=D.offset+D.size}for(var Z=I+1;Z<=c;Z++){var G=v(Z);m[Z]={offset:j,size:G},j+=G}u.lastMeasuredIndex=c}return m[c]},Jt=function(r,c,u){var _=c.itemMetadataMap,v=c.lastMeasuredIndex,m=v>0?_[v].offset:0;return m>=u?_n(r,c,v,0,u):Sn(r,c,Math.max(0,v),u)},_n=function(r,c,u,_,v){for(;_<=u;){var m=_+Math.floor((u-_)/2),I=Ot(r,m,c).offset;if(I===v)return m;Iv&&(u=m-1)}return _>0?_-1:0},Sn=function(r,c,u,_){for(var v=r.itemCount,m=1;u=u&&(m=u-1),m>=0){var j=_[m];I=j.offset+j.size}var D=u-m-1,Z=D*v;return I+Z},Hn=Et({getItemOffset:function(r,c,u){return Ot(r,c,u).offset},getItemSize:function(r,c,u){return u.itemMetadataMap[c].size},getEstimatedTotalSize:on,getOffsetForIndexAndAlignment:function(r,c,u,_,v,m){var I=r.direction,j=r.height,D=r.layout,Z=r.width,G=I==="horizontal"||D==="horizontal",T=G?Z:j,re=Ot(r,c,v),ne=on(r,v),k=Math.max(0,Math.min(ne-T,re.offset)),te=Math.max(0,re.offset-T+re.size+m);switch(u==="smart"&&(_>=te-T&&_<=k+T?u="auto":u="center"),u){case"start":return k;case"end":return te;case"center":return Math.round(te+(k-te)/2);case"auto":default:return _>=te&&_<=k?_:_=T-D&&_<=G+D?u="auto":u="center"),u){case"start":return G;case"end":return T;case"center":var re=Math.round(T+(G-T)/2);return reZ+Math.floor(D/2)?Z:re;case"auto":default:return _>=T&&_<=G?_:T>G||_=T-j&&_<=G+j?u="auto":u="center"),u){case"start":return G;case"end":return T;case"center":var re=Math.round(T+(G-T)/2);return reZ+Math.floor(j/2)?Z:re;case"auto":default:return _>=T&&_<=G?_:T>G||_=se-ne&&_<=te+ne?u="auto":u="center"),u){case"start":return te;case"end":return se;case"center":{var he=Math.round(se+(te-se)/2);return hek+Math.floor(ne/2)?k:he}case"auto":default:return _>=se&&_<=te?_:_ div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',ne=T.head||T.getElementsByTagName("head")[0],k=T.createElement("style");k.id="detectElementResize",k.type="text/css",e!=null&&k.setAttribute("nonce",e),k.styleSheet?k.styleSheet.cssText=re:k.appendChild(T.createTextNode(re)),ne.appendChild(k)}};return{addResizeListener:function(T,re){if(j)T.attachEvent("onresize",re);else{if(!T.__resizeTriggers__){const ne=T.ownerDocument,k=pn.getComputedStyle(T);k&&k.position==="static"&&(T.style.position="relative"),D(ne),T.__resizeLast__={},T.__resizeListeners__=[],(T.__resizeTriggers__=ne.createElement("div")).className="resize-triggers";const te=ne.createElement("div");te.className="expand-trigger",te.appendChild(ne.createElement("div"));const se=ne.createElement("div");se.className="contract-trigger",T.__resizeTriggers__.appendChild(te),T.__resizeTriggers__.appendChild(se),T.appendChild(T.__resizeTriggers__),m(T),T.addEventListener("scroll",I,!0),u&&(T.__resizeTriggers__.__animationListener__=function(ue){ue.animationName===c&&m(T)},T.__resizeTriggers__.addEventListener(u,T.__resizeTriggers__.__animationListener__))}T.__resizeListeners__.push(re)}},removeResizeListener:function(T,re){if(j)T.detachEvent("onresize",re);else if(T.__resizeListeners__.splice(T.__resizeListeners__.indexOf(re),1),!T.__resizeListeners__.length){T.removeEventListener("scroll",I,!0),T.__resizeTriggers__.__animationListener__&&(T.__resizeTriggers__.removeEventListener(u,T.__resizeTriggers__.__animationListener__),T.__resizeTriggers__.__animationListener__=null);try{T.__resizeTriggers__=!T.removeChild(T.__resizeTriggers__)}catch(ne){}}}}}class ti extends i.Component{constructor(){super(...arguments),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:r,disableWidth:c,onResize:u}=this.props;if(this._parentNode){const _=window.getComputedStyle(this._parentNode)||{},v=parseFloat(_.paddingLeft||"0"),m=parseFloat(_.paddingRight||"0"),I=parseFloat(_.paddingTop||"0"),j=parseFloat(_.paddingBottom||"0"),D=this._parentNode.getBoundingClientRect(),Z=D.height-I-j,G=D.width-v-m,T=this._parentNode.offsetHeight-I-j,re=this._parentNode.offsetWidth-v-m;(!r&&(this.state.height!==T||this.state.scaledHeight!==Z)||!c&&(this.state.width!==re||this.state.scaledWidth!==G))&&(this.setState({height:T,width:re,scaledHeight:Z,scaledWidth:G}),typeof u=="function"&&u({height:T,scaledHeight:Z,scaledWidth:G,width:re}))}},this._setRef=r=>{this._autoSizer=r}}componentDidMount(){const{nonce:r}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._parentNode!=null&&(typeof ResizeObserver<"u"?(this._resizeObserver=new ResizeObserver(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=ei(r),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:r,defaultHeight:c,defaultWidth:u,disableHeight:_=!1,disableWidth:v=!1,nonce:m,onResize:I,style:j={},tagName:D="div",...Z}=this.props,{height:G,scaledHeight:T,scaledWidth:re,width:ne}=this.state,k={overflow:"visible"},te={};let se=!1;return _||(G===0&&(se=!0),k.height=0,te.height=G,te.scaledHeight=T),v||(ne===0&&(se=!0),k.width=0,te.width=ne,te.scaledWidth=re),(0,i.createElement)(D,{ref:this._setRef,style:{...k,...j},...Z},!se&&r(te))}}function Pi(e){return e&&e.disableHeight!==!0&&e.disableWidth!==!0}function Di(e){return e&&e.disableHeight!==!0&&e.disableWidth===!0}function Ri(e){return e&&e.disableHeight===!0&&e.disableWidth!==!0}const ni=(0,i.memo)(e=>{let{className:r,itemCount:c,itemSize:u,itemData:_,renderItem:v,onItemCountChange:m,onListRef:I}=e;const j=i.createRef();return(0,i.useEffect)(()=>{j.current&&m&&m(j)},[c,j,m]),(0,i.useEffect)(()=>{j.current&&I&&I(j)},[j,I]),(0,s.jsx)(ti,{children:D=>{let{width:Z,height:G=0}=D;return(0,s.jsx)(Qo,{ref:j,className:r,itemCount:c,itemSize:u,itemData:_,height:G,width:Z,children:v})}})}),si=e=>{const{theme:r,caption:c,captionExtra:u,className:_,permissionScope:v,memberList:m,isOnlyOneManager:I,readOnly:j,readOnlyTooltip:D,expandable:Z,defaultExpanded:G=!0,isResetPermission:T=!1,children:re,onPermissionChange:ne,onChangeHeight:k,isMemberList:te,onlyTitle:se,isUseVirtualizedRender:he=!1,onClickInviteButton:ue,isShowInviteButton:pe=!1,currentOrg:z}=e,[ge,ye]=(0,i.useState)(G),fe=(0,i.useCallback)(()=>{ye(Te=>!Te),k&&k()},[k]),je=(0,i.useCallback)(Te=>{var He;const{avatar:Xe,name:tt}=Te;return Xe&&!Xe.includes("/images/avatar.png")?(0,s.jsx)("img",{className:"avatar",src:Te.avatar,alt:Te.name}):(0,s.jsx)("div",{className:"avatar avater-name",children:tt==null||(He=tt.slice(0,1))==null?void 0:He.toUpperCase()})},[]),Me=(Te,He)=>(0,s.jsxs)("div",{className:"item",style:He,children:[(0,s.jsxs)("span",{className:"title",children:[je(Te),(0,s.jsx)("span",{className:"name",children:Te.name})]}),(0,s.jsx)("span",{className:"account",children:Te.email||Te.mobile}),(0,s.jsx)(Us,{readOnly:j,readOnlyTooltip:D,member:Te,isReset:T,isOnlyOneManager:I,permissionScope:v,currentOrg:z,onPermissionChange:ne})]},Te.user_cid),ze=Te=>{let{data:He,index:Xe,style:tt}=Te;const{memberList:nt}=He;return Me(nt[Xe],tt)};return(0,s.jsxs)(gs,{className:S()("member-list",r,_&&_,he&&"use-virtualized-list"),"data-expanded":ge,children:[Z&&(0,s.jsxs)("h5",{className:"caption",children:[(0,s.jsx)("span",{children:c}),pe&&!(!se&&Z&&!te)&&(0,s.jsxs)("div",{className:"invite-item",onClick:ue,children:[(0,s.jsx)(F.C,{name:"sharing/invite_member"}),I18N.imockSharing.add_collaborator]}),!se&&Z&&!te&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{children:m.length>0&&"\xB7"+m.length}),(0,s.jsx)("span",{className:S()("btn-toggle-expand"),onClick:fe,children:ge?I18N.BasicWidgetsNav.share_collapse:I18N.BasicWidgetsNav.share_view})]}),u]}),re,!!m.length&&(0,s.jsx)("div",{className:"members",children:he?(0,s.jsx)(ni,{className:"virtualized-list",itemSize:48,itemCount:m.length,itemData:{memberList:m},renderItem:ze}):m.map(Te=>Me(Te))})]})},Po=(0,i.memo)(si),oi=g.Ay.div.withConfig({displayName:"style__StyledSearchBox",componentId:"sc-f6syk1-0"})(["flex:1;position:relative;.icon-search{position:absolute;top:12px;left:12px;width:16px;height:17px;color:#666;}.autoCompleteInput{position:absolute;width:1px;height:1px;top:-2000px;}input{width:100%;height:36px;padding:0 12px 0 12px;border-radius:4px;outline:none;color:",";border:1px solid ",";font-size:14px;&:hover,&:focus{border-color:#298df8;border:1px solid #1883FB;}}"],e=>e.theme.color_text_L1,e=>e.theme.color_bg_border_02),ii=e=>{const{value:r,onChange:c,onKeyPress:u}=e,_=m=>{c(m.currentTarget.value)},v=m=>{m.key==="Enter"&&u(m.currentTarget.value)};return(0,s.jsx)(oi,{className:"search-box",children:(0,s.jsx)("input",{className:"search-input",placeholder:I18N.imockSharing.search_member,type:"text",value:r,onChange:_,onKeyPress:v})})},ri=(0,i.memo)(ii),Vn={OWNER:1e4,SUPERMANAGER:9999,MANAGER:999,MEMBER:99,LIMITER:10,VIEWER:9,BANNED:1,UNKNOWN:0,UNJOINED:-1},Bi={space_owner:16,space_manager:15,space_member:14,space_viewer:13,space_limiter:12,team_owner:11,team_manager:10,team_member:9,team_viewer:8,project_owner:6,project_manager:5,project_member:4,project_viewer:3,project_ban_viewer:2,project_team_owner:1,team_ban_viewer:1},ai={org_owner:Vn.OWNER,org_manager:Vn.SUPERMANAGER,org_admin:Vn.MANAGER,org_member:Vn.MEMBER,org_viewer:Vn.VIEWER};var Wo=n(67029);const li=e=>{const r={pt_total_seats:10,pt_bindings:[],ptlt_total_seats:0,ptlt_bindings:[],bx_total_seats:10,bx_bindings:[],total_viewer_seats:100,viewer_seats_taken:0},{pt_total_seats:c,pt_bindings:u,ptlt_total_seats:_,ptlt_bindings:v,bx_total_seats:m,bx_bindings:I,total_viewer_seats:j,viewer_seats_taken:D}=e||r;return{plTotalSeats:_,pTotalSeats:c,pBindings:u||[],plBindings:v||[],bTotalSeats:m,bBindings:I||[],totalViewerSeats:j,viewerSeatsTaken:D}},ci=e=>{if(!e)return null;const{permissions:r,total_viewer_seats:c,viewer_seats_taken:u}=e,{bBindings:_,pTotalSeats:v,pBindings:m,bTotalSeats:I,plBindings:j,plTotalSeats:D}=li(e);let Z=I;const G=is.t.InitialOrg(e),T=G.planSdk.getIsDefaultFreeOrg(),re=G.planSdk.getOrgPlan()===Wo.Sj.OrgExpired,ne=G.planSdk.getOrgStatus()===Wo._E.Trial;let k=m.length,te=_.length;if(ne||T||re){const Te=r.filter(He=>ai[He.role]>Vn.VIEWER);te=(Te==null?void 0:Te.length)||10,k=(Te==null?void 0:Te.length)||10,Z=v}const se=j.length>=D,he=k>=v&&se,ue=te>=Z,pe=ue&&he,z=k>=v&&te>=Z,ge=u>=c,ye=k+j.length,fe=te,je=v+D,Me=je+Z,ze=ye+fe;return{isNormalSeatFull:z,isLifetimeFull:se,isPtMemberFull:he,isBxMemberFull:ue,isMemberFull:pe,isViewerFull:ge,ptSeatsTaken:ye,bxSeatsTaken:fe,ptTotalSeats:je,bxTotalSeats:Z,viewerSeatsTaken:u,totalViewerSeats:c,totalSeats:Me,seatsTaken:ze}};var Ho=n(90503);function di(e){const{theme:r,caption:c,outerMembers:u,canInvite:_,isSharing:v,handleClickInviteMember:m}=e,I=()=>{const Z="\u54C8\u55BD\uFF0C\u7BA1\u7406\u5458\u60A8\u597D\uFF0C\u7533\u8BF7\u5C06"+(u[0].mobile||u[0].email)+"\u52A0\u5165\u300C\u58A8\u5200\u5E73\u53F0-"+c+"\u300D\uFF0C\u52A0\u5165\u540E\u6211\u5C31\u53EF\u4EE5\u548CTA\u4E00\u8D77\u534F\u4F5C\u4E86\u54E6~";(0,yn.$)(Z)},j=!u||u.length<1;return v?(0,s.jsxs)(gs,{className:"member-list sharing "+r,children:[(0,s.jsxs)("div",{className:"members invite",children:[!j&&u.map(D=>(0,s.jsxs)("div",{className:"item",children:[(0,s.jsxs)("span",{className:"title",children:[(0,s.jsx)("img",{className:"avatar",src:D.avatar,alt:D.name}),(0,s.jsxs)("span",{className:"name",children:[D.name,(0,s.jsx)("span",{className:"register",children:D.id?I18N.imockSharing.external:I18N.imockSharing.unregistered})]})]}),(0,s.jsx)("span",{className:"account",children:D.email||D.mobile}),!n.g.ENV.IS_ON_PREMISES&&(_?(0,s.jsx)("span",{className:"inviteJoin",onClick:m,children:I18N.imockSharing.invite_h}):(0,s.jsxs)("div",{className:"addOuter",children:[(0,s.jsx)("span",{className:"add",children:I18N.imockSharing.submit}),(0,s.jsx)(Fn.A,{opener:(0,s.jsx)(Ho.A,{name:"question"}),mode:"dark",menuX:"right",shouldOpenOnHover:!0,hoverDelay:100,menuClassName:"add-outer-member-tip",menu:(0,s.jsxs)("p",{className:"desc",children:["\u590D\u5236\u5E10\u53F7\uFF0C\u63D0\u9192\u7BA1\u7406\u5458\u628ATA\u52A0\u5165\u4F01\u4E1A\uFF0C\u5C31\u53EF\u4EE5\u4E00\u8D77\u534F\u4F5C\u4E86\u54E6~",(0,s.jsx)("a",{className:"copy-text",onClick:I,children:I18N.imockSharing.copy})]})})]}))]},D.cid)),j&&(0,s.jsx)("div",{className:"enterTip",children:(0,s.jsx)("span",{children:n.g.ENV.IS_ON_PREMISES?(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{children:"\u60A8\u627E\u7684\u6210\u5458\u4E0D\u5728\u4F01\u4E1A\u4E2D\uFF0C"}),(0,s.jsx)("br",{}),(0,s.jsx)("span",{children:"\u8BF7\u786E\u8BA4\u300C\u90AE\u7BB1/\u624B\u673A\u53F7\u300D\u91CD\u65B0\u641C\u7D22~"})]}):(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:I18N.imockSharing.member_search_not_in_the_team}})})})]}),(0,s.jsx)(Ws,{})]}):(s.Fragment,(0,s.jsxs)(gs,{className:"member-list "+r,children:[(0,s.jsxs)("div",{className:"members invite",children:[!j&&u.map(D=>(0,s.jsxs)("div",{className:"item",children:[(0,s.jsxs)("span",{className:"title",children:[(0,s.jsx)("img",{className:"avatar",src:D.avatar,alt:D.name}),(0,s.jsxs)("span",{className:"name",children:[D.name,(0,s.jsx)("span",{className:"register",children:D.id?I18N.imockSharing.external:I18N.imockSharing.unregistered})]})]}),(0,s.jsx)("span",{className:"account",children:D.email||D.mobile}),!n.g.ENV.IS_ON_PREMISES&&(_?(0,s.jsx)("span",{className:"inviteJoin",onClick:m,children:I18N.imockSharing.invite_h}):(0,s.jsxs)("div",{className:"addOuter",children:[(0,s.jsx)("span",{className:"add",children:I18N.imockSharing.submit}),(0,s.jsx)(Fn.A,{opener:(0,s.jsx)(Ho.A,{name:"question"}),mode:"dark",menuX:"right",shouldOpenOnHover:!0,hoverDelay:100,menuClassName:"add-outer-member-tip",menu:(0,s.jsxs)("p",{className:"desc",children:["\u590D\u5236\u5E10\u53F7\uFF0C\u63D0\u9192\u7BA1\u7406\u5458\u628ATA\u52A0\u5165\u4F01\u4E1A\uFF0C\u5C31\u53EF\u4EE5\u4E00\u8D77\u534F\u4F5C\u4E86\u54E6~",(0,s.jsx)("a",{className:"copy-text",onClick:I,children:I18N.imockSharing.copy})]})})]}))]},D.cid)),j&&(0,s.jsx)("div",{className:"enterTip",children:(0,s.jsx)("span",{children:n.g.ENV.IS_ON_PREMISES?(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{children:"\u60A8\u627E\u7684\u6210\u5458\u4E0D\u5728\u4F01\u4E1A\u4E2D\uFF0C"}),(0,s.jsx)("br",{}),(0,s.jsx)("span",{children:"\u8BF7\u786E\u8BA4\u300C\u90AE\u7BB1/\u624B\u673A\u53F7\u300D\u91CD\u65B0\u641C\u7D22~"})]}):(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:I18N.imockSharing.member_search_not_in_the_team}})})})]}),(0,s.jsx)(Ws,{})]}))}const ui=(0,i.memo)(di),Vo=()=>!!Number(sessionStorage.getItem("inClowdz"));function pi(e){let r="file_editarea-proto-v8-add",c="\u7F16\u8F91\u533A_V8-\u539F\u578B-\u6210\u5458\u7BA1\u7406-\u6DFB\u52A0";return r=e?"file_editarea-proto-v8-input-add":"file_editarea-proto-v8-add-direct",c=e?"\u7F16\u8F91\u533A_V8-\u539F\u578B-\u6210\u5458\u7BA1\u7406-\u8F93\u5165\u6846-\u6DFB\u52A0":"\u7F16\u8F91\u533A_V8-\u539F\u578B-\u6210\u5458\u7BA1\u7406-\u6DFB\u52A0\u534F\u4F5C\u8005-\u6DFB\u52A0",{trackSourceId:r,trackSource:c}}function hi(e,r){r===void 0&&(r=!1);let c="file_editarea-proto-v8-invite",u="\u7F16\u8F91\u533A_V8-\u539F\u578B-\u6210\u5458\u7BA1\u7406-\u9080\u8BF7\u6210\u5458";return r?(c="file_editarea-proto-v8-input-inviteTA",u="\u7F16\u8F91\u533A_V8-\u539F\u578B-\u6210\u5458\u7BA1\u7406-\u8F93\u5165\u6846-\u9080\u8BF7TA"):(c=e?"file_editarea-proto-v8-input-invite":"file_editarea-proto-v8-add-invite",u=e?"\u7F16\u8F91\u533A_V8-\u539F\u578B-\u6210\u5458\u7BA1\u7406-\u8F93\u5165\u6846-\u9080\u8BF7\u6210\u5458":"\u7F16\u8F91\u533A_V8-\u539F\u578B-\u6210\u5458\u7BA1\u7406-\u6DFB\u52A0\u534F\u4F5C\u8005-\u9080\u8BF7\u6210\u5458"),{trackSourceId:c,trackSource:u}}function Ko(e){if(!e)return"";let r="";return e==="org_owner"?r="\u4F01\u4E1A\u6240\u6709\u8005":e==="org_manager"?r="\u8D85\u7EA7\u7BA1\u7406\u5458":e==="org_admin"||e!=null&&e.includes("manager")?r="\u7BA1\u7406\u5458":e!=null&&e.includes("member")?r="\u534F\u4F5C\u6210\u5458":e!=null&&e.includes("viewer")&&(r="\u5BA1\u9605\u6210\u5458"),r}const Zo=(e,r,c)=>{try{const{source_id:u,source:_,step:v,option:m=null}=c;if(!r||!e||ENV.IS_ON_PREMISES||ENV.IS_WONDER_SHARE)return;if((!m||(m==null?void 0:m.results)!==!1)&&u)try{(0,us.Ds)("/api/dashboard/v5/org/invitation_records",{invitation_record:{user_id:e,org_cid:r,source:u,step:v}})}catch(I){console.log(I.message)}if(v===0)(0,fn.kH)("invite_members_entrance",{source:_});else if(v===2&&m){const I=Ko(m==null?void 0:m.invitor_role),j=Ko(m==null?void 0:m.invitee_role);(0,fn.kH)("invite_members_via_add",{source:_,join_space_num:1,has_department:!1,invitor_role:I,invitee_role:j,results:(m==null?void 0:m.results)||!0,error_type:(m==null?void 0:m.error_type)||""})}}catch(u){console.log(u.message)}},Ks=function(e,r,c,u,_){_===void 0&&(_=null);const{trackSourceId:v,trackSource:m}=pi(c);Zo(e,r,{source_id:v,source:m,step:u,option:_})},mi=function(e,r,c,u){u===void 0&&(u=!1);const{trackSourceId:_,trackSource:v}=hi(c,u),m={trackSourceId:_,trackSource:v},I="/workspace/"+r+"/member?openInviteByLinkModal=true&invite_track="+(0,ft._)(m);if(Zo(e,r,{source_id:_,source:v,step:0}),Vo()){location.pathname=I;return}(0,at.JW)(I)},gi=(e,r,c)=>{const[u]=(0,i.useState)(c),_=(0,i.useRef)(0);return(0,i.useEffect)(()=>{u&&_.current>=1||_.current>=2||(Ks(e,r,c,0),_.current+=1)},[!!c]),u||c},fi=g.Ay.div.withConfig({displayName:"styles__StyledInviteMemberOverlay",componentId:"sc-six6tj-0"})(["z-index:3;height:100%;width:100%;display:flex;flex-direction:column;align-items:stretch;.overlay-content{flex:1;padding:0 4px;overflow:auto;position:relative;height:calc(100% - ","px);overflow-x:hidden;&::-webkit-scrollbar{display:block;width:4px;height:4px;}.member-list.use-virtualized-list{height:calc(100% - 10px);width:410px;.members{height:100%;.virtualized-list{&::-webkit-scrollbar{display:block;width:4px;height:4px;}}}}}.overlay-content.no-members{.member-list{height:90%;.invite{height:90%;.enterTip{height:100%;display:flex;align-items:center;justify-content:center;&:lang(en){span{display:flex;justify-content:center;div{width:80%;text-align:center;line-height:20px;}}}}}}}.collaboration-remind{position:absolute;bottom:57px;left:0;width:100%;height:29px;color:#FFFFFF;background:#298DF8;padding:0 23px;font-size:12px;line-height:17px;display:flex;justify-content:space-between;align-items:center;.collaboration-remind-close{width:16px;height:16px;cursor:pointer;path{fill:#FFFFFF;}}}.overlay-footer{display:flex;align-items:center;justify-content:space-between;height:","px;padding:0 24px;border-top:1px solid ",";.seats{color:",";font-size:12px;}}"],B.gE,B.gE,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1),yi=e=>{const{theme:r,keyword:c,source:u,caption:_,permissionScope:v,assignedMembers:m,unassignedMembers:I,outerMember:j,onPermissionChange:D,hostType:Z,handleClose:G}=e,T=(0,d.d4)(ve.wA),re=(0,d.d4)(ve.cb),ne=(0,d.d4)(ve.WR),{settings:k,cid:te}=T,{seatsTaken:se,totalSeats:he}=ci(T)||{},ue=gi(ne,te,c);let pe=!1;(k.invite_permission&&k.invite_permission[0]==="all"||re.isManager)&&(pe=!0);const z=()=>{const ze={mode:"org",orgCid:T.cid,payEntrance:"\u7F16\u8F91\u533A-v8_\u7248\u672C\u7BA1\u7406_\u4E2A\u4EBA\u5347\u4F01\u4E1A",checkoutPlace:"workspace-v8_org_mem_limit",checkoutArea:"proto"};if(Z==="proto")MB.global.popupHelper.chargeAsync(ze),G&&G();else{const Te="/workspace/"+T.cid+"?payment_param="+(0,ft._)(ze);if(Vo()){location.pathname=Te;return}(0,at.JW)(Te)}},ge=(0,i.useMemo)(()=>I.filter(ze=>ze.name&&ze.name.includes(c)||ze.mobile&&ze.mobile.includes(c)||ze.email&&ze.email.includes(c)),[c,I]),ye=()=>{pe&&mi(ne,te,ue,!0)},fe=(ze,Te)=>{D(ze,Te),Ks(ne,te,ue,1),j&&Ks(ne,te,ue,2,{invitor_role:re==null?void 0:re.roleName,invitee_role:Te}),Ks(ne,te,ue,3)},je=!ge||ge.length<1,Me=j?[j]:[];return(0,s.jsxs)(fi,{className:"overlay-adding-member sharing",children:[(0,s.jsxs)("div",{className:S()("overlay-content",!j&&je&&"no-members"),children:[!je&&(0,s.jsx)(Po,{theme:r,caption:c?null:I18N.imockSharing.unjoined,expandable:!1,className:S()(c&&"invite"),permissionScope:v,currentOrg:T,memberList:ge,isResetPermission:!0,onPermissionChange:fe,isUseVirtualizedRender:!0},"filtered-unassigned-members"),je&&(0,s.jsx)(ui,{theme:r,caption:_,outerMembers:Me,canInvite:pe,isSharing:!0,handleClickInviteMember:ye})]}),(0,s.jsxs)("footer",{className:"overlay-footer",children:[(0,s.jsxs)("span",{className:"seats",children:["\u5DF2\u5360\u7528\u5E2D\u4F4D/\u4F01\u4E1A\u603B\u5E2D\u4F4D\u6570\uFF1A",se,"/",he]}),!n.g.ENV.IS_ON_PREMISES&&(0,s.jsx)(bt.Oc,{type:"primary",size:"tiny",corner:"soft",onClick:z,children:I18N.imockSharing.add_team_seat})]})]})},xi=(0,i.memo)(yi),bi=g.Ay.div.withConfig({displayName:"styles__StyledProjectCollaborators",componentId:"sc-th5siy-0"})(["position:relative;display:flex;flex-direction:column;width:500px;height:100%;border-radius:8px;&.sharing{width:100%;&.dark{background:#252626;&.isInviteOverlayOpen{.overlay-adding-member{background:#252626;.overlay-header{.btn-back > svg > path{stroke:rgba(255,255,255,0.9);}.caption{color:rgba(255,255,255,0.9);}}.overlay-content{.member-list > .members > .item{.title{.name{color:rgba(255,255,255,0.9);}}.account{color:rgba(255,255,255,0.9);}label{button > span{color:rgba(255,255,255,0.9);}.caret svg{border-color:transparent transparent rgba(255,255,255,0.9) rgba(255,255,255,0.9);}}.read-only-option > span > span{color:rgba(255,255,255,0.9);}}}}}.nav-header > .title-left{label > button > svg > path{fill:#B8BCBF;}}.modal-content{.collaborators{.member-list > .members > .item{.title{.name{color:rgba(255,255,255,0.9);}}.account{color:rgba(255,255,255,0.9);}label{button > span{color:rgba(255,255,255,0.9);}.caret svg{border-color:transparent transparent rgba(255,255,255,0.9) rgba(255,255,255,0.9);}}.read-only-option > span > span{color:rgba(255,255,255,0.9);}}.inherited-members{.caption > span{color:",";&:last-child{color:#1684FC;}}.members > .item{.title{.name{color:rgba(255,255,255,0.9);}}.account{color:rgba(255,255,255,0.9);}label{button > span{color:rgba(255,255,255,0.9);}.caret svg{border-color:transparent transparent rgba(255,255,255,0.9) rgba(255,255,255,0.9);}}.read-only-option > span > span{color:rgba(255,255,255,0.9);}}}}}}&.isInviteOverlayOpen{.overlay-adding-member{.overlay-header{height:50px;.btn-back{left:20px;}.caption{font-size:14px;font-weight:500;color:",";left:82px;&:lang(en){left:100px;}}}}}& > .blank{height:86px;&.noSearch{height:18px;}}.modal-content{.blank{height:55px;}.collaborators{overflow-y:overlay;.member-list{.caption{padding:10px 20px;& > span{font-weight:500;font-size:12px;}.btn-toggle-expand{color:",";&:hover{color:",";}}.btn-add-collaborator{right:20px;}}.members{margin-top:0;.item{padding:7px 20px;height:48px;.title{flex:none;width:150px;.avatar{width:28px;height:28px;}.name{width:105px;font-weight:400;font-size:14px;line-height:initial;color:#333;}}.account{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}}}}}}}.nav-header{display:flex;padding-left:10px;font-weight:500;font-size:16px;color:",";height:","px;align-items:center;border-bottom:1px solid ",";justify-content:space-between;.title-left{display:flex;align-items:center;.title-left-back{cursor:pointer;display:flex;align-items:center;}.member-manager{cursor:default;margin-left:10px;}svg{margin-top:2px;}.nav-title{color:"," !important;font-size:14px;margin-top:1px;}}.title-close{margin-right:20px;cursor:pointer;.svg-icon{color:",";&:hover{color:",";}&:active{color:",";}}}}.modal-content{display:flex;flex:1;flex-direction:column;align-items:stretch;height:calc(100% - ","px);padding-top:10px;&.modal-content-show-search{height:calc(100% - 116px);}&.in-invite-overlay{padding-top:20px;}.collaborators{padding:0 4px 20px 4px;height:100%;overflow:hidden auto;&::-webkit-scrollbar{display:block;width:4px;height:4px;}}}.search{display:flex;align-items:center;position:relative;margin:0px 20px;padding-top:20px;}"],e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,e=>e.theme.color_text_link_normal,e=>e.theme.color_text_link_hover,e=>e.theme.color_text_L1,B.gE,e=>e.theme.color_bg_border_02,e=>e.theme.color_text_L1,e=>e.theme.color_text_L2,e=>e.theme.color_text_L1,e=>e.theme.color_text_L1,B.gE),vi=e=>{const{theme:r,from:c,caption:u,targetCid:_,permissionScope:v,captionTipType:m,isFolder:I=!1,isAllowSetCollaborators:j,isShowInheritedCollaborators:D=!1,handleBackSharingHandel:Z,onChangeMembersAccess:G,handleClose:T,hostType:re,isOnlyMemberManager:ne=!1,currentOrg:k}=e,[te,se]=(0,i.useState)(""),[he,ue]=(0,i.useState)(null),[pe,z]=(0,i.useState)(!1),{currentMembers:ge,inheritedMembers:ye,joinedMembers:fe,unjoinedMembers:je,assignedMembers:Me,unassignedMembers:ze,userCurrentScopePermisson:Te,isOnlyOneManager:He}=Ce(v,_),Xe=Se(v,_,c),tt=async(mt,rn)=>{await Xe(mt,rn),G&&G(mt,rn)};let nt=ge,yt=Me,wt=ze;const kt=Te.isMember,At=j&&kt,Ht=!pe&&kt;j&&!D&&(nt=fe,yt=fe,wt=je);const lt=(0,i.useCallback)(()=>{z(!1),se(""),ue(null)},[]),Ct=(0,i.useCallback)(mt=>{se(mt),ue(null),mt&&z(!0)},[]),Lt=(0,i.useCallback)(async mt=>{if(!n.g.ENV.IS_ON_PREMISES&&(se(mt),mt)){const rn=wt.find($t=>$t.email===mt.trim()||$t.mobile===mt.trim()),Kn=yt.find($t=>$t.email===mt.trim()||$t.mobile===mt.trim());if(rn||Kn)return;const Zn=bo.test(mt.trim()),wn=Ps.test(mt.trim());let an=null;if(Zn?an=await Ds(mt.trim()):wn&&(an=await Ds(null,mt.trim())),an){let $t=null;an.user?($t=an.user,$t.name=I18N.imockSharing.to_be_invited,$t.cid="outer"):$t={avatar:"/images/avatar.png",cid:mt,email:mt,isNotRegister:!0,name:I18N.imockSharing.to_be_invited},ue($t)}}},[]),Xt=(0,i.useCallback)(()=>{if(!(ne&&!pe)){if(se(""),ue(null),pe){z(!1);return}Z()}},[pe,z,Z]),ct=(0,i.useCallback)(()=>{z(!0)},[z]);return(0,s.jsxs)(bi,{className:S()("ProjectCollaborators sharing",""+r,{isInviteOverlayOpen:!0}),children:[(0,s.jsxs)("div",{className:"nav-header",children:[(0,s.jsxs)("div",{className:"title-left",children:[(0,s.jsxs)("div",{className:S()("title-left-back",{"member-manager":ne&&!pe}),onClick:Xt,children:[ne?pe&&(0,s.jsx)(F.C,{name:"sharing/nav_back",size:32}):(0,s.jsx)(F.C,{name:"sharing/nav_back",size:32}),(0,s.jsx)("div",{className:"nav-title",children:pe?I18N.imockSharing.add_collaborator:I18N.imockSharing.team_collaborator})]}),!pe&&(0,s.jsx)(Ln,{tipType:m,position:"left",isOnlyMemberManager:ne})]}),ne&&(0,s.jsx)("div",{className:"title-close",onClick:T,children:(0,s.jsx)(F.C,{size:24,name:"sharing/close"})})]}),At&&(0,s.jsx)("div",{className:S()("search"),children:(0,s.jsx)(ri,{value:te,onChange:Ct,onKeyPress:Lt})}),(0,s.jsx)("div",{className:S()("modal-content",At&&"modal-content-show-search"),children:pe?(0,s.jsx)(xi,{theme:r,permissionScope:v,currentOrg:k,unassignedMembers:wt,assignedMembers:yt,outerMember:he,keyword:te,caption:u,onClose:lt,onPermissionChange:tt,handleClose:T,hostType:re}):(0,s.jsxs)("div",{className:S()("collaborators",pe&&"in-invite-overlay"),children:[j&&(0,s.jsx)(Po,{theme:r,caption:I18N.imockSharing.project_collaborators,permissionScope:v,currentOrg:k,memberList:nt,isOnlyOneManager:He,isMemberList:!1,expandable:!0,onlyTitle:!0,onPermissionChange:tt,onClickInviteButton:ct,isShowInviteButton:Ht},"current-collaborators"),D&&(0,s.jsx)(Po,{theme:r,caption:I18N.imockSharing.parent_folder_collaborator,expandable:!0,defaultExpanded:I,readOnly:!0,permissionScope:v,currentOrg:k,memberList:ye,onPermissionChange:tt,className:"inherited-members",onClickInviteButton:ct,isShowInviteButton:Ht},"inherited-collaborators")]})}),(0,s.jsx)(wo,{})]})},_i=(0,i.memo)(vi);function Si(e){const{theme:r,targetCid:c,isSharing:u,handleBackSharingHandel:_,onChangeMembersAccess:v,handleClose:m,hostType:I,isOnlyMemberManager:j,currentOrg:D}=e,G=(0,d.d4)(ve._B).get(c),T=$(G==null?void 0:G.team_cid);return!G||T<0?null:(0,s.jsx)(_i,{theme:r,targetCid:c,caption:G.name,isAllowSetCollaborators:!0,isShowInheritedCollaborators:T>=1,captionTipType:L.p.Project,currentOrg:D,permissionScope:L.W.Project,isSharing:u,handleBackSharingHandel:_,onChangeMembersAccess:v,handleClose:m,hostType:I,isOnlyMemberManager:j})}const wi=(0,i.memo)(Si);var Ci=n(63686);const Mi=e=>{const{user:r,initData:c,currentProject:u,members:_,dispatch:v}=e,m=u==null?void 0:u.cid;return(0,i.useEffect)(()=>{(async j=>{v({type:"entry:projectAccess:initProjectData",payload:{initData:c,members:_}})})(m)},[v,c,_,m,r]),r!=null&&r.id?(0,s.jsx)(wi,{targetCid:m,isSharing:!0,...e}):null},Ni=(0,Ci.Mz)([],()=>({})),Ii=(0,d.Ng)(e=>Ni(e))(Mi);var ji=n(11645),$o=n(87537),Ei=n(33520);function ki(e){const{getIframeContentHeight:r,handleChangeMembersAccess:c,handleClose:u}=e,_=(0,d.wA)(),v=(0,d.d4)(l.query.getProject),m=(0,d.d4)(l.query.getMembers),I=(0,d.d4)(l.query.getTheme),j=(0,d.d4)(l.query.getTopPageIndex),D=(0,d.d4)(l.query.getHostType),Z=(0,d.d4)(l.query.getTabIndex),G=(0,d.d4)(l.query.getMainPage),T=(0,d.d4)(l.query.getLoading),re=(0,d.d4)(l.query.getInitData),ne=(0,d.d4)(l.query.getOrg),k=(0,d.d4)(l.query.getUser),te=(0,d.d4)(l.query.getIsEditMode),se=(0,d.d4)(l.query.getIsOnlyMemberManager),[he,ue]=(0,i.useState)(!1);(0,i.useEffect)(()=>{const fe=(0,xs.fV)();if(fe){const{mdWMMktList:je,mtWMMktList:Me,noWMMktList:ze}=fe,Te=[...je,...Me,...ze];Te.length&&(0,qn.q)(Te).then(He=>{if(He.mdWMMktList.length>0||He.mtWMMktList.length>0){if(!(0,xn._5)())return;ue(!0)}})}},[]);const[pe,z]=(0,i.useState)(282);(0,i.useEffect)(()=>{let fe=619;G!=="access"&&(Z===0&&j==="edit"?fe=212:(j==="embed"||j==="qrCode"||Z===0&&j==="setting")&&(fe=380)),he&&(fe+=37),z(fe),D!=="proto"&&r(fe)},[D,Z,j,G,r,te,he]);const ge=(0,i.useCallback)(()=>{_({type:l.entryKey["sharing:init"],payload:{mainPage:"share"}})},[_]);(0,i.useEffect)(()=>{_({type:l.entryKey["sharing:projectAccess:init"]})},[G,_]);const ye=(0,i.useCallback)(async(fe,je)=>{c&&c(fe,je)},[c]);return T?(0,s.jsx)($o.A,{className:S()("sharingBoxV2",""+I,"loading"),children:(0,s.jsx)(ji.A,{})}):(0,s.jsxs)($o.A,{className:S()("sharingBoxV2",""+I,D==="iframe"&&"in-iframe"),style:{height:pe+"px"},id:"v8-share-page",children:[G==="share"?(0,s.jsx)(Bn,{}):(0,s.jsx)(Ii,{theme:I,user:k,currentProject:v,members:m,initData:re,currentOrg:ne,handleBackSharingHandel:ge,onChangeMembersAccess:ye,hostType:D,handleClose:u,isOnlyMemberManager:se}),(0,s.jsx)(Ei.r,{})]})}var Li=n(40778);const Ti=e=>{let{theme:r,org:c=null,user:u,project:_,flatKey:v,members:m=[],hostType:I="proto",screenMetaList:j,hostSharingData:D,projShareToEdit:Z="",handleClose:G,isOnlyMemberManager:T=!1,hostCurrentScreen:re}=e;const ne=x();let k=!0;I!=="iframe"&&(k=(0,Li.OB)());try{_&&I!=="iframe"&&(0,K.E9)({project:_,isEditMode:k,shareSource:"\u9876\u90E8\u5206\u4EAB\u6309\u94AE"})}catch(ue){console.error(ue)}const te=Z?1:0;ne.dispatch({type:l.entryKey["sharing:init"],payload:{project:_,theme:r,user:u,org:c,flatKey:v,hostType:I,members:m,screenMetaList:j,hostSharingData:D,isEditMode:k,tabIndex:te,projShareToEdit:Z,hostCurrentScreen:re}});const se=(0,i.useCallback)(ue=>{window.top.postMessage(JSON.stringify({sharingV2Message:"sharing:height",payload:{height:ue}}),"*")},[]),he=(0,i.useCallback)((ue,pe)=>{window.top.postMessage(JSON.stringify({sharingV2Message:"sharing:changeMembersAccess",payload:{member:ue,value:pe}}),"*")},[]);return I==="iframe"&&T&&(ne.dispatch({type:l.entryKey["sharing:init"],payload:{mainPage:"access",isOnlyMemberManager:!0}}),se(585)),(0,i.useEffect)(()=>{if(I==="iframe"&&!T&&se(212),!_)return;const{cid:ue}=_;(async()=>{if(!_)return;const{result:{result:z},statusOk:ge}=await(0,Y.QC)(ue);ge&&ne.dispatch({type:l.entryKey["sharing:init"],payload:{canEditByUser:z}})})()},[I,se,_,ne]),(0,s.jsx)(d.Kq,{store:ne,children:(0,s.jsx)(g.NP,{theme:N.A[r],children:(0,s.jsx)(y.$,{children:(0,s.jsx)(ki,{getIframeContentHeight:se,handleChangeMembersAccess:he,handleClose:G})})})})}},87537:(we,de,n)=>{"use strict";n.d(de,{A:()=>f});var i=n(21676);const f=i.Ay.div.withConfig({displayName:"styles__StyledMainPage",componentId:"sc-8fjrks-0"})(["width:414px;background-color:",";color:",";position:relative;height:212px;&.loading{height:212px;}&.dark{.personal-project-access{.title{span{color:rgba(255,255,255,0.9);}}.content{span{color:rgba(255,255,255,0.9);}}}.access-operation{.open-access-switch > span{color:rgba(255,255,255,0.9);}.item-center > button{background-color:#252626;&:hover{background-color:#666666;}span{color:rgba(255,255,255,0.9);}}}.sharing-footer{background-color:#151515;.sharing-type{span{color:rgba(255,255,255,0.9);}.toolbar-icon-item > svg > path{color:rgba(255,255,255,0.9);}}.sharingV2-click-visible{&:hover{background-color:#666666;}span{color:rgba(255,255,255,0.9);}}}}.access-operation{margin:20px 20px 14px;.open-access-switch{display:flex;align-items:center;margin-bottom:20px;span{font-weight:500;font-size:14px;line-height:20px;color:#333333;margin-right:6px;}}}"],M=>M.theme.color_bg_white,M=>M.theme.color_text_L2)},60482:(we,de,n)=>{"use strict";n.d(de,{CV:()=>W,EL:()=>K,Mb:()=>b,Mj:()=>l,O8:()=>N,R0:()=>q,RF:()=>V,R_:()=>Y,Sy:()=>C,Uh:()=>ae,a2:()=>J,eH:()=>g,it:()=>y,jc:()=>R,kv:()=>P,vt:()=>x,zM:()=>d});var i=n(51691),f=n(88223),M=n(76713),p=n.n(M),E=n(41449),ee=n(72907),H=n(44864),A=n(36521),w=n(39547);const q=S=>S?[{value:"public",label:I18N.imockSharing.share_anyone_view},{value:"restricted",label:I18N.imockSharing.org_members_only}]:[{value:"public",label:I18N.imockSharing.share_anyone_view}],W=S=>{let{accessToken:B,targetKey:U,pageKey:ie,view_mode:L,selection:F,page_begin:X,canvas_begin:le}=S;const oe=(Ee,Oe)=>Oe?"&"+Ee+"="+Oe:"";let xe=""+location.origin+E.o$+"/"+B+"/sharing?view_mode="+(L||"read_only");return L==="read_only"?xe=""+xe+oe("screen",ie)+oe("canvasId",U)+oe("selection",F):L==="device"?xe=""+xe+oe("screen",X!=null?X:ie)+oe("canvasId",le!=null?le:U)+oe("selection",F):xe=""+xe+oe("screen",ie)+oe("selection",F),xe},ae=S=>S&&S.length>0?S[0]:"",Y=(S,B,U,ie)=>{const L=ie?" \u5BC6\u7801\uFF1A"+ie:"";return S+" #"+(0,f.qk)(B)+"-"+(0,f.qk)(U||"\u5206\u4EAB")+L},J=S=>""+(["v6.modao.cc"].includes(location.host)?"https://modao.cc":location.origin)+E.o$+"/"+S,P=S=>{const{project:B,action:U,linkName:ie,isFromScreenList:L}=S;i.Y4.trackShareProjectAction({project_type:"\u539F\u578B V8",source:L?"\u9875\u9762\u5217\u8868\u83DC\u5355":(0,i.IQ)(),project_name:B.name,project_cid:B.cid,share_link_action:U,share_link_name:ie})},K=S=>{if(!S)return!1;const{created_at:B}=S;return p()(B).isBetween(p()().subtract(3,"days"),p()())},V=S=>Object.entries(S).filter(U=>{let[ie,L]=U;return!L.hotAttr.asFolder&&ie!==H.$k}).map(U=>U[0]),l=(S,B,U)=>{if(S)return U.length;let ie=0;return B==null||B.forEach(L=>{U.find(X=>X===L)&&(ie+=1)}),ie},C=(S,B)=>{if(B.screen_visible_switch){const{selectedSize:U,pageSize:ie}=b(S,B);return U+"/"+ie}else return I18N.imockSharing.all},b=(S,B)=>{const U=V(S.pageAttrMap),ie=l(!B.screen_visible_switch,B.screen_visible_list,U);return{pageSize:U.length,selectedSize:ie}},x=S=>{const B={},U=[],ie=new Map;for(const[X,le,oe]of S)if(oe.type==="rResBunch"){X!==H.$k&&U.push(X),B[X]={hotAttr:oe},ie.get(X)||ie.set(X,[]);const xe=ie.get(le);Array.isArray(xe)&&ie.set(le,[...xe,X])}const L=X=>{let le=[];for(const xe of ie.get(X))le.push(L(xe));le=le.sort((xe,Ee)=>xe.data.zIndex-Ee.data.zIndex);const{hotAttr:oe}=B[X];return{cid:X,data:{cid:X,...oe},children:le}},F=L("B@main");return{pageAttrMap:B,pageKeyList:U,treeData:F}};function d(S,B,U){let ie=I18N.imockSharing.share;return B&&(ie=ie+" "+(B.length+1)),{project_cid:S,view_access:"public",screen_visible_switch:!1,screen_visible_list:[],wechat:!1,highlight:!0,view_sticky:!0,comment_permission:"org_member",is_default_link:!1,password:"",device_model:"read_only",view_prd:!1,expire_type:"forever",sticky:!1,...U,link_name:ie,type:"advanced"}}const g=async S=>{let{updateType:B,org:U,updateFn:ie,updatedKV:L,isCustom:F}=S;const X=()=>{const oe=(U==null?void 0:U.plan)==="org_full"?"MaxOrgSize":"NormalOrgSize";window.SharingEventEmitter.emit("sharing:count",{whichModal:oe}),window.top&&window.top.postMessage(JSON.stringify({sharingMessage:"sharing:count",payload:{whichModal:oe}}),"*")},le=()=>{if(!F&&B==="update"){const oe={sharingMessage:"sharing:notice",payload:{type:"settingSuccess"}};try{L!=null&&L.expire_type?MB.notice({text:I18N.imockSharing.sharing_hasRest,type:"success"}):MB.notice({text:I18N.imockSharing.setting_valid})}catch(xe){window.top&&window.top.postMessage(JSON.stringify(oe),"*")}}};try{const oe=await ie();if(oe)return le(),oe}catch(oe){await(0,ee.m0)(oe,X)}},y=S=>{let{value:B,currentSharing:U,sharingList:ie}=S,L=!1;for(const F of ie)if(F.cid!==U.cid&&B===F.link_name){L=!0;break}return L},N=(S,B,U)=>{let ie;if(B.type==="default"){const F=new URLSearchParams(location.search),X=F.get("view_mode")||(0,A.Yt)(S.cid+"_default_sharing_view_mode","read_only",A.qW.String),le=F.get("selection"),oe=F.get("screen"),xe=F.get("canvasId");ie=W({accessToken:B.access_token,view_mode:X,page_begin:B.is_first_canvas_open?"":oe,canvas_begin:B.is_first_canvas_open?"":xe,selection:le,pageKey:B.is_first_canvas_open?"":U})}else B.screen_visible_switch?U&&B.screen_visible_list.includes(U)?ie=W({accessToken:B.access_token,view_mode:B.device_model,pageKey:B.is_first_canvas_open?"":U}):ie=W({accessToken:B.access_token,view_mode:B.device_model}):ie=W({accessToken:B.access_token,view_mode:B.device_model,pageKey:B.is_first_canvas_open?"":U});return Y(ie,S==null?void 0:S.name,B.link_name||"",B.password)},R=(S,B)=>B&&(B==null?void 0:B.otype)!=="personal"?w.t.InitialOrg(B).limitationSdk.prototypeLimit.pLimitation.max_project_share_count:S?w.t.InitialUser(S).limitationSdk.prototypeLimit.pLimitation.max_project_share_count:1},72907:(we,de,n)=>{"use strict";n.d(de,{$r:()=>w,AG:()=>E,FY:()=>p,K7:()=>A,ai:()=>ee,m0:()=>H});var i=n(46795),f=n(33386),M=n(39719);const p=async(q,W)=>{if((0,f.p)("[alertAsyncBlocked]",q,{url:q.url,status:q.status}),q.status===403||/403/.test(q.message)){var ae;(ae=MB)==null||(ae=ae.messageBucket)==null||ae.send("mobileLoadProjectError",{errMsg:I18N.dPages.cant_edit_desc}),await MB.global.popupHelper.alertAsyncBlocked({title:I18N.dModule.cant_edit,confirmText:I18N.dModule.exit_editing,desc:I18N.dModule.cant_edit_desc}).then(()=>W?W():MB.global.onBackButtonClick())}else if(q.status===401||/401/.test(q.message))A(),await 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(()=>W?W():E());else{var Y;const J=String(q.status||q.message||"UNKNOWN").replace(/\s/g,"").slice(0,16);(Y=MB)==null||(Y=Y.messageBucket)==null||Y.send("mobileLoadProjectError",{errMsg:window.I18N.dModule.unknown_error.replace(/%s/i,J)}),await MB.global.popupHelper.alertAsyncBlocked({desc:window.I18N.dModule.unknown_error.replace(/%s/i,J),isHTML:!0})}},E=async()=>{try{await(0,i.DE)("/api/web/v3/initial"),location.reload()}catch(q){const W=location.origin+"/signin?next="+location.pathname;location.href=W}},ee=q=>{q.status===404&&q.error_type==="MT_NOT_FOUND"&&MB.notice({text:I18N.dModals.template_no_available,type:"error"})},H=async(q,W)=>{q.status===403||/403/.test(q.message)?W():(q.status===401||/401/.test(q.message))&&await 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(()=>E())},A=()=>{window.top.postMessage(JSON.stringify({sharingMessage:"sharing:loginInvalid"}),"*")},w=function(q){let{onClick:W}=q===void 0?{}:q;W&&!ENV.IS_WONDER_SHARE?MB.notice({text:window.I18N.dModule.network_api_error_1,CustomChildComponent:(0,M.DV)({onClick:W}),type:"error",duration:5e3}):MB.notice({text:window.I18N.dModule.network_api_error,type:"error"})}},42226:(we,de,n)=>{"use strict";n.d(de,{JQ:()=>ae,kZ:()=>P,tg:()=>K,zW:()=>Y});var i=n(76713),f=n.n(i),M=n(35736),p=n.n(M),E=n(54466),ee=n.n(E);if(n.j!=15)var H=n(29601);function A(V){return V<10?"0"+V:V}function w(V,l,C){const b=new Date(V),x=b.getFullYear(),d=A(b.getMonth()+1),g=A(b.getDate()),y=A(b.getHours()),N=A(b.getMinutes());return l==="time"?y+":"+N:l==="datetime"?""+d+C+g+" "+y+":"+N:""+x+C+d+C+g+" "+y+":"+N}const q=n.j!=15?["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Spt","Oct","Nov","Dec"]:null;function W(V,l){const C=new Date(V),b=C.getFullYear(),x=q[C.getMonth()],d=A(C.getDate()),g=A(C.getHours()),y=A(C.getMinutes());return l==="time"?g+":"+y:l==="datetime"?x+" "+d+" "+g+":"+y:x+" "+d+", "+b+" "+g+":"+y}function ae(V,l,C){if(l===void 0&&(l="datetime"),C===void 0&&(C="."),!V)return"";let b=V;typeof V!="number"&&(b=parseInt(V,10)),b.length===10&&(b=b*1e3);let x="";const d=(0,H.w)();return d==="zh-CN"?x=w(b,l,C):(d==="en-US"||d==="en")&&(x=W(b,l,C)),x}function Y(V){const C=J()-V;let b="";if(C<=3*1e3)b=I18N.Common.just_now||"\u521A\u521A";else if(C>3*1e3&&C<60*1e3)b=Math.floor(C/1e3)+I18N.Common.num_seconds_ago||"\u79D2\u524D";else if(C>=60*1e3&&C<60*60*1e3)b=Math.floor(C/(60*1e3))+I18N.Common.num_minutes_ago||"\u5206\u949F\u524D";else{b=ae(V,"full");const x=new Date(new Date().setHours(0,0,0,0)).getTime(),d=new Date(new Date().getFullYear(),0,1).getTime();V>d&&(b=ae(V,"datetime")),V>x&&(b=ae(V,"time"))}return b}function J(){return new Date().getTime()}const P=V=>{f().locale(V==="zh-CN"?"zh-cn":V),f().extend(p()),f().extend(ee())},K=()=>f()().isBefore("2024-10-06")},15039:(we,de,n)=>{"use strict";n.d(de,{E9:()=>Y,Xc:()=>W,nr:()=>ae});var i=n(40778),f=n(51691),M=n(36820),p=n(59318);let E=function(J){return J.acces="access",J.viewAccess="viewAccess",J.copy="copy",J.qrCode="qrCode",J.embed="Embed",J.setting="Setting",J.pwdProtection="PwdProtection",J.password="password",J.sticky="sticky",J.comment="comment",J.mobile="mobile",J}({});var ee=function(J){return J.Edit="\u53EF\u7F16\u8F91",J.onlyView="\u4EC5\u67E5\u770B",J}(ee||{}),H=function(J){return J.NoLogin="\u672A\u767B\u5F55\u7528\u6237",J.LoginButNotOrgMember="\u975E\u56E2\u961F\u767B\u5F55\u7528\u6237",J.ProjectMember="\u534F\u4F5C\u6210\u5458",J.TeamMember="\u56E2\u961F\u6210\u5458",J}(H||{}),A=function(J){return J.EditMode="\u7F16\u8F91\u6A21\u5F0F",J.ReadOnlyMode="\u53EA\u8BFB\u6A21\u5F0F",J.DeviceMode="\u771F\u673A\u6A21\u5F0F",J.InspectMode="\u6807\u6CE8\u6A21\u5F0F",J}(A||{});const w=J=>{let{userId:P,orgPermissions:K,spacePermissions:V,projectPermissions:l}=J;if(!P)return H.NoLogin;const C=(0,p.ox)(P,K),b=(0,p.ox)(P,V),x=(0,p.ox)(P,l);if(!C)return H.LoginButNotOrgMember;if(b||x)return H.ProjectMember;if(C)return H.TeamMember},q=J=>{let{userCanEdit:P,userId:K,orgPermissions:V,spacePermissions:l,projectPermissions:C,isEditMode:b,view_mode:x,isIframe:d}=J;const g=P?ee.Edit:ee.onlyView,y=w({userId:K,orgPermissions:V,spacePermissions:l,projectPermissions:C}),N=d?"\u5DE5\u4F5C\u53F0":b?A.EditMode:x==="read_only"?A.ReadOnlyMode:x==="device"?A.DeviceMode:x==="inspect"?A.InspectMode:"";return{user_rights:g,user_type:y,operation_from:N}},W=J=>{let{optionType:P,userCanEdit:K,userId:V,orgPermissions:l,spacePermissions:C,projectPermissions:b,isEditMode:x,view_mode:d,share_type:g,isIframe:y,project_name:N,project_cid:R}=J;const{user_rights:S,user_type:B,operation_from:U}=q({userCanEdit:K,userId:V,orgPermissions:l,spacePermissions:C,projectPermissions:b,isEditMode:x,view_mode:d,isIframe:y});(0,M.kH)("share_function_click_V8",{operation_type:P,user_rights:S,user_type:B,operation_from:U,project_name:N,project_cid:R,share_type:g})},ae=J=>{(0,M.kH)("advanced_sharing_click",J)},Y=J=>{let{project:P,isEditMode:K,shareSource:V}=J;const l=(0,i.gh)(),C=(0,i.oK)(),{cid:b,name:x}=P;(0,M.kH)("share_project",{project_type:"\u539F\u578B V8",source:K?"\u7F16\u8F91\u533A":l?"\u53EA\u8BFB\u6A21\u5F0F":C?"\u771F\u673A\u6F14\u793A":"\u6807\u6CE8\u6A21\u5F0F",project_name:x,project_cid:b,share_source:V}),f.Y4.editProjectNew("\u5206\u4EAB\u9879\u76EE")}},47755:(we,de,n)=>{"use strict";n.d(de,{_:()=>i});const i=M=>encodeURIComponent(JSON.stringify(M)),f=M=>JSON.parse(decodeURIComponent(M))},67234:(we,de,n)=>{"use strict";n.d(de,{p:()=>W,A:()=>J});var i=n(74059),f=n(51044),M=n(66748),p=n.n(M),E=n(98236),ee=n.n(E),H=n(7290),A=n(86634),w=n.n(A),q=n(21676);const W="checkbox-has-box",ae=q.Ay.label.withConfig({displayName:"styles__StyledCheck",componentId:"sc-gd8gcf-0"})(["position:relative;display:flex;align-items:center;cursor:pointer;color:",";> input[type=radio],> input[type=checkbox]{position:absolute;opacity:0;width:12px;height:12px;}.Check-state{position:relative;width:12px;height:12px;font-size:12px;display:flex;align-items:center;border:1px solid ",";border-radius:2px;transition:all 0.2s ease-in-out;background-color:",";flex-shrink:0;.icon{position:absolute;top:-1px;left:-1px;}}.Check-label{margin-left:0.33333em;color:",";}&.is-checked .Check-state{background-color:",";border:1px solid ",";color:#fff;.icon{transform:scale(0.833);color:#fff;}}&:not(.is-checked) .Check-state .icon{speak:none;opacity:0;}&.readonly,&.is-disabled{cursor:default;.Check-state{background:",";border:1px solid ",";.icon{color:",";}}}&.is-disabled{cursor:not-allowed;}&.","{input,.Check-state{margin:6px;transition:none;}.Check-label{margin-left:4px;}}"],P=>P.theme.color_text_L2,P=>P.theme.color_text_disabled01,P=>P.theme.color_bg_white,P=>P.theme.color_text_L2,P=>P.theme.color_proto,P=>P.theme.color_proto,P=>P.theme.color_btn_secondary_active,P=>P.theme.color_btn_secondary_active,P=>P.theme.color_text_disabled01,W);var Y=n(57464);class J extends f.PureComponent{constructor(){super(...arguments),(0,i.A)(this,"state",{prevProps:this.props,isChecked:this.props.isChecked}),(0,i.A)(this,"onToggle",K=>{const{name:V,value:l,label:C,onChange:b,onToggle:x,isDisabled:d,readOnly:g,attr:y}=this.props,{isChecked:N}=this.state,R=!d&&!g,S=R?N==="mixed"?!0:!N:N;this.setState({isChecked:S}),x(S,V,l||C,K),b(S,y,K)})}static getDerivedStateFromProps(K,V){let{prevProps:l}=V;return ee()(l,K)?null:{prevProps:K,isChecked:K.isChecked}}render(){const{className:K,label:V,name:l,isDisabled:C,readOnly:b}=this.props,{isChecked:x}=this.state,d=w()(K,{"is-checked":!!x,"is-disabled":C,readonly:b});return(0,Y.jsxs)(ae,{className:d,children:[(0,Y.jsx)("input",{type:"checkbox",defaultChecked:!!x,disabled:C,name:l,onChange:this.onToggle}),(0,Y.jsx)("span",{className:"Check-state",children:(0,Y.jsx)(H.C,{name:x==="mixed"?"new_replace/box_check_mixed":"new_replace/box_check"})}),V&&(0,Y.jsx)("span",{className:"Check-label",children:V})]})}}(0,i.A)(J,"propTypes",{isChecked:p().bool||"mixed",isDisabled:p().bool,readOnly:p().bool,onChange:p().func.isRequired,onToggle:p().func.isRequired,label:p().any,name:p().string,attr:p().string,value:p().any,className:p().string}),(0,i.A)(J,"defaultProps",{isChecked:!1,label:"",className:"",onChange:()=>null,onToggle:()=>null})},80582:(we,de,n)=>{"use strict";n.d(de,{A:()=>A});var i=n(74059),f=n(51044),M=n(21183),p=n(66748),E=n.n(p),ee=n(57464);class H extends f.PureComponent{constructor(q){super(q),(0,i.A)(this,"freshCanvas",()=>{const W=this.canvasWrapperRef.current,{height:ae,width:Y,text:J,foreground:P,background:K}=this.props,V=(0,M.j)({height:ae,width:Y,text:J,foreground:P,background:K});W.hasChildNodes()?W.replaceChild(V,W.firstChild):W.appendChild(V)}),this.canvasWrapperRef=(0,f.createRef)()}componentDidMount(){this.freshCanvas()}componentDidUpdate(){this.freshCanvas()}render(){const{className:q}=this.props;return(0,ee.jsx)("div",{className:q,ref:this.canvasWrapperRef})}}H.propTypes={width:E().number,height:E().number,text:E().string.isRequired,foreground:E().string,background:E().string,className:E().string},H.defaultProps={width:150,height:150};const A=H},29739:(we,de,n)=>{"use strict";n.d(de,{A:()=>p});var i=n(46479),f=n(21676);const p=(0,f.Ay)(i.ft).withConfig({displayName:"ThemeLoading",componentId:"sc-1f7bkn3-0"})(["svg g g:first-child g path:last-child{stroke:",";}svg g g:last-child g path:last-child{stroke:",";}"],E=>E.theme.color_btn_secondary_active,E=>E.theme.color_text_disabled01)},11645:(we,de,n)=>{"use strict";n.d(de,{A:()=>H});var i=n(51044),f=n(29739),M=n(21676);const p=M.Ay.div.withConfig({displayName:"styles__StyledSharingLoading",componentId:"sc-iidm8l-0"})(["position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;.loading{width:50px;height:50px;}"]);var E=n(57464);const H=(0,i.memo)(()=>(0,E.jsx)(p,{className:"sharing-loading",children:(0,E.jsx)(f.A,{className:"loading"})}))},13005:()=>{"use strict";const we={},de={},n={},i={}},33520:(we,de,n)=>{"use strict";n.d(de,{l:()=>M,r:()=>f});var i=n(21676);const f=(0,i.DU)(["::-webkit-scrollbar-track{background-color:transparent;}::-webkit-scrollbar{width:6px;height:6px;}::-webkit-scrollbar-thumb{background-color:",";border-radius:4px;&:hover{background-color:",";}}::-webkit-scrollbar-corner{background-color:transparent;}.widget.panel{::-webkit-scrollbar-thumb{background-color:#d2d2d8;&:hover{background-color:",";}}}"],p=>p.theme.color_bg_border_02,p=>p.theme.color_background_split_hover,p=>p.theme.color_background_split_hover),M=(0,i.DU)([".ModalPortal,.CoreModalPortal,.OverlayPortal{min-width:initial !important;}"])},57716:(we,de,n)=>{"use strict";n.d(de,{A:()=>P});var i=n(35524),f=n(54909);const M="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQwIDc5LjE2MDQ1MSwgMjAxNy8wNS8wNi0wMTowODoyMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTggKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RDkzNzZFN0RDODhFMTFFOEExOUJFNkQ0MTNFM0Q2OTYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RDkzNzZFN0VDODhFMTFFOEExOUJFNkQ0MTNFM0Q2OTYiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpEOTM3NkU3QkM4OEUxMUU4QTE5QkU2RDQxM0UzRDY5NiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpEOTM3NkU3Q0M4OEUxMUU4QTE5QkU2RDQxM0UzRDY5NiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PktroGEAAAAoSURBVHjaYvz06RMDDPDy8sLZTAw4AOkSjP///4dzPn/+TAs7AAIMAG56COJosoI3AAAAAElFTkSuQmCC",p="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAAGzCI4dAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAACKADAAQAAAABAAAACAAAAACVhHtSAAAAVklEQVQYGYWOMQ6AMAwD04ot7wJWyv+/kblgpIsqZcBDGtu1W9uPc9o17tk0IsKaJHe3rpGKvZAgbCxyhS+jBaOLrCiRciM7iNEFLwkMznwDge/BfxsegvIceOfO91wAAAAASUVORK5CYII=",E=Object.entries(f.f).reduce((K,V)=>{const l=V[0];return{...K,[l]:[f.f[l].value_light,f.f[l].value_dark||f.f[l].value_light]}},{}),ee=Object.entries(f.$).reduce((K,V)=>{const l=V[0];return{...K,[l]:[f.$[l].value_light,f.$[l].value_dark||f.$[l].value_light]}},{}),H=Object.entries(i.af).reduce((K,V)=>{var l;const C=V[0];return{...K,[C]:[i.af[C].value,((l=i.qY[C])==null?void 0:l.value)||i.af[C].value]}},{}),A=K=>{let V;const[l,C,b]=K,x=b!=null?b:l;return C==="light"?V=i.af[x].value:V=i.qY[x].value,{[l]:[V,V]}},q=[["color_tips_black","dark","color_ruler_shadow_color"]].reduce((V,l)=>{const C=A(l);return{...V,...C}},{}),Y={...H,...q,...{loading_styles_bg:["linear-gradient(130deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%)","linear-gradient(118.3deg, #474848 1.71%, #363738 100%)"],float_nav_box_shadow:["0 4px 8px 0 rgba(39, 54, 78, 0.08), 0 4px 12px 0 rgba(39, 54, 78, 0.06)","0px 24px 38px rgba(0, 0, 0, 0.14), 0px 9px 46px rgba(0, 0, 0, 0.12), 0px 11px 15px rgba(0, 0, 0, 0.2)"],menu_content_shadow:["0 6px 16px -8px rgba(0,0,0,0.08), 0 9px 28px 0 rgba(0,0,0,0.05)","0px 24px 38px rgba(0, 0, 0, 0.14), 0px 9px 46px rgba(0, 0, 0, 0.12), 0px 11px 15px rgba(0, 0, 0, 0.2)"],shadow_1:["0 2px 8px 0 rgba(0, 0, 0, 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"],shadow_2:["0 2px 10px 0 rgba(39, 54, 78, 0.8), 0 12px 40px 0 rgba(39, 54, 78, 0.1)","0 24px 38px 3px rgba(0,0,0,0.14), 0 9px 46px 8px rgba(0,0,0,0.12), 0 11px 15px -7px rgba(0,0,0,0.20)"],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)"],shadow_4:["0 2px 10px 0 rgba(0, 0, 0, 0.12)","0 11px 15 px rgba(0, 0, 0, 0.2), 0 9 px 46px 0 rgba(0, 0, 0, 0.12)"],shadow_5:["0 2px 10px 0 rgba(0, 0, 0, 0.12)","0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 11px 15px -7px rgba(0, 0, 0, 0.2)"],shadow_hover:["0 2px 4px rgba(0, 0, 0, 0.14)","0 2px 4px rgba(0, 0, 0, 0.46), 0 8px 16px rgba(0, 0, 0, 0.40)"],miss_font_box_shadow:["0 3px 10px rgba(0, 0, 0, 0.1)","0px 24px 38px rgba(0, 0, 0, 0.14), 0px 9px 46px rgba(0, 0, 0, 0.12), 0px 11px 15px rgba(0, 0, 0, 0.2)"],export_bar_box_shadow:["0 -4px 8px rgba(219, 219, 219, 0.4)","0 -4px 8px rgba(0, 0, 0, 0.35)"],sidebar_box_shadow:["0 2px 10px 0 rgba(39, 54, 78, 0.08), 0 12px 40px 0 rgba(39, 54, 78, 0.1)",""],interation_active_box_shadow:["0 0 4px 0 rgba(34, 162, 237, 0.66)"," 0 0 4px 0 rgba(41,141,248,0.50)"],modal_bg1:["linear-gradient(to bottom,#fafafa,#f5f5f5)","#4f5052"],modal_shadow:["0 2px 10px 0 rgba(0, 0, 0, 0.1), 0 12px 40px 0 rgba(0, 0, 0, 0.1)",""],comment_layer_box_shadow:["0 -2px 10px rgba(26, 58, 109, 0.12)","0 -24px 38px 3px rgba(0,0,0,0.14), 0 -9px 46px 8px rgba(0,0,0,0.12), 0 11px 15px -7px rgba(0,0,0,0.20)"],workspace_dropdown_menu_shadow:["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)"],drag_sort_box_shadow:["0 1px 4px 0 rgba(0, 0, 0, 0.15)","0px 2px 4px rgba(0, 0, 0, 0.15)"],annotate_btn_shadow:["0 2px 6px rgba(39, 54, 78, 0.08)"," 0 6px 10px rgba(0, 0, 0, 0.22), 0px 13px 30px rgba(0, 0, 0, 0.146744)"],bg_base64:[M,p],img_wrap_border_width:[1,2],fontPosition:["73px",0],disabled_opacity:[1,.5],footer_disabled_opacity:[1,.6]},...E,...ee},J=(K,V)=>{const l={};return Object.entries(K).forEach(C=>{let[b,x]=C;Array.isArray(x)?l[b]=x[V]:typeof x=="object"?l[b]=J(x,V):l[b]=x}),l},P={light:J(Y,0),dark:J(Y,1)}},48590:(we,de,n)=>{"use strict";n.d(de,{Aw:()=>p,L9:()=>f,ZJ:()=>A,eP:()=>H,n9:()=>ee});var i=n(21676);const f=(0,i.AH)(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),M=(0,i.AH)(['position:relative;pointer-events:none;&::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;cursor:not-allowed;pointer-events:auto;}']),p=(0,i.AH)(["position:relative;height:32px;padding-left:14px;padding-right:4px;display:flex;align-items:center;border:1px solid transparent;color:",";font-size:12px;cursor:pointer;.expander{width:12px;margin-left:-12px;color:",";}.editable-span,.editable-name{margin-right:14px;line-height:24px;border-radius:2px;&.is-editing{border-bottom-color:transparent;}}.actions{display:none;height:100%;padding-left:6px;.Dropdown > button{display:flex;padding:8px 10px 8px 0;}.action{margin-right:6px;font-size:12px;color:",";&:hover{color:",";}}&.is-active{display:flex;align-items:center;color:",";}}&:hover{.actions{display:flex;align-items:center;}}&:hover,&.hover{color:",";background:",";}&.active,&.is-active{color:",";background:",";}"],w=>w.theme.color_text_L2,w=>w.theme.color_text_disabled01,w=>w.theme.color_text_L2,w=>w.theme.color_text_L2,w=>w.theme.color_text_L1,w=>w.theme.color_text_L1,w=>w.theme.color_btn_secondary_hover,w=>w.theme.color_text_L1,w=>w.theme.color_btn_secondary_active),E=i.Ay.div.withConfig({displayName:"variables__StyledCustomTooltipInner",componentId:"sc-1k65wxr-0"})(["display:flex;align-items:center;height:22px;margin:-3px -7px;.tipsLeft{padding:0 8px;}.tipsRight{width:22px;line-height:22px;background-color:",";border-radius:0 2px 2px 0;color:#f2f4f5;}"],w=>w.theme.color_primary_brand01),ee=(0,i.AH)(["width:24px;height:24px;display:flex;justify-content:center;align-items:center;color:",";cursor:pointer;.fore{fill:",";}&:hover{color:",";.fore{fill:",";}}.svg-icon{width:24px;height:24px;}"],w=>w.theme.color_text_L2,w=>w.theme.color_text_L3,w=>w.theme.color_proto,w=>w.theme.color_proto),H=(0,i.AH)(["ul{li{.rn-list-item{border-radius:6px;&.context-menu-select{border-radius:6px;}&:not(.context-menu-select).is-continuous-start{&:hover,&.select,&.active,&.dummy-select{border-radius:6px 6px 0 0;}}&:not(.context-menu-select).is-continuous-end{&:hover,&.select,&.active,&.dummy-select{border-radius:0 0 6px 6px;}}&:not(.context-menu-select).is-continuous-middle{&:hover,&.select,&.active,&.dummy-select{border-radius:0;}}&:not(.context-menu-select).is-continuous-start.is-continuous-end{&:hover,&.select,&.active,&.dummy-select{border-radius:6px;}}}}}"]),A=(0,i.AH)(["ul{padding:8px;border-radius:8px;border:1px solid ",";color:",";background:",";box-shadow:",";li.MenuItem{a{height:28px;border-radius:4px;background:",";color:",";svg:not(.pure-svg-icon) path{fill:",";}.right-arrow svg > path{fill:",";}.shortfont kbd{color:",";}}&:not(.disabled).active{a{background:",";}}&.disabled{a{color:",";svg path{fill:",";}.shortfont kbd{color:",";}}}}}"],w=>w.theme.color_bg_border_01,w=>w.theme.color_text_L1,w=>w.theme.color_bg_white,w=>w.theme.shadow_m,w=>w.theme.color_bg_white,w=>w.theme.color_text_L1,w=>w.theme.color_text_L1,w=>w.theme.color_text_L3,w=>w.theme.color_text_L3,w=>w.theme.color_btn_secondary_hover,w=>w.theme.color_text_disabled01,w=>w.theme.color_text_disabled01,w=>w.theme.color_text_disabled01)},44057:(we,de,n)=>{"use strict";n.d(de,{m:()=>Oe,cG:()=>Ye,Dr:()=>Be,aM:()=>Ue,Ay:()=>Ee});var i=n(66748),f=n.n(i),M=n(51044),p=n(60185),E=n(21676),ee=n(86634),H=n.n(ee),A=n(90503);class w{constructor(Q,$){Q===void 0&&(Q=0),$===void 0&&($=0),this.x=Q,this.y=$}inside(Q){const{left:$,right:me,top:Se,bottom:Ce}=Q;return this.x>=$&&this.x<=me&&this.y>=Se&&this.y<=Ce}}const q=(0,M.createContext)(""),W=ve=>{if(!ve)return;const Q=ve.getBoundingClientRect(),$=ve.classList.contains("sub-menu"),me=1/.8,Se=1/(.8*.9);if($){const We=document.getElementById("root-menu").getBoundingClientRect();We.top+(Q.top-We.top)*me+Q.height*Se>window.innerHeight-28&&ve.classList.add("top"),We.left+(Q.left-We.left)*me+Q.width*Se>window.innerWidth&&ve.classList.add("left");return}if(Q.left+Q.width*me>window.innerWidth-28&&ve.classList.add("left"),Q.height>window.innerHeight){ve.style.height=window.innerHeight+"px",ve.style.overflow="auto",ve.style.overflowX="hidden",ve.style.marginTop=-Q.top+"px";return}Q.top+Q.heightwindow.innerHeight-28?Ae.top-Ae.height*qe>0?(ve.style.bottom="-4px",ve.style.top="unset"):ve.style.marginTop=window.innerHeight-28-(Ae.top+Ae.height*qe)+"px":ve.style.top=Ae.top-ut-11+"px",Ae.left+Ae.width*qe>window.innerWidth?(ve.style.right=Ae.left+"px",ve.style.left="unset"):ve.style.left=Ae.right-dt-1+12*Ce+"px",me==="left"&&(ve.style.left=-2*Ae.width-12-22*Ce+"px"),We&&(ve.style.left=parseInt(ve.style.left)+We+4*Ce+"px"),s&&(ve.style.top=parseInt(ve.style.top)+s+"px"),ve.style.maxHeight=window.innerHeight-$e.top+"px"},Y=function(ve,Q,$,me,Se,Ce,We){let{subMenuLeftOffset:s,subMenuTopOffset:Ae}=Se;if(Ce===void 0&&(Ce=!1),!ve||!Q)return;const $e=We.getBoundingClientRect(),qe=Q.getBoundingClientRect(),dt=Q.getBoundingClientRect(),{left:ut,top:at}=$,{top:ft}=$e;ve.style.top=qe.top-ft-11+"px",ve.style.left=qe.right-ut-1+12*Ce+"px",me==="left"&&(ve.style.left=-2*qe.width-12-22*Ce+"px"),s&&(ve.style.left=parseInt(ve.style.left)+s+4*Ce+"px"),ve.style.maxHeight=window.innerHeight-dt.top+"px"},J=(ve,Q)=>{let{x:$,y:me}=ve,Se=!1;for(let Ce=0,We=Q.length-1;Ceme!=qe>me&&$<($e-s)*(me-Ae)/(qe-Ae)+s&&(Se=!Se)}return Se};var P=n(54909);const K=(0,E.AH)(["background:#333;box-shadow:0 2px 8px rgba(0,0,0,0.3);border-radius:4px;color:#fff;border:1px solid #454647;"]),V=E.Ay.div.withConfig({displayName:"styles__StyledMask",componentId:"sc-h83js-0"})(["position:fixed;top:0;left:0;right:0;width:100vw;height:100vh;z-index:199;"]),l=E.Ay.div.withConfig({displayName:"styles__StyledContextMenu",componentId:"sc-h83js-1"})(["position:fixed;z-index:200;&.size-small > ul{min-width:120px;}ul{list-style:none;}& > ul{position:absolute;top:0;left:0;padding:8px 0;min-width:200px;margin:0;",";&.top{top:initial !important;bottom:-8px;}&.left{left:initial;right:100%;}&.top.left{}&::-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);}}}"],K),C=E.Ay.ul.withConfig({displayName:"styles__StyledSubMenu",componentId:"sc-h83js-2"})(["position:absolute;min-width:200px;max-height:500px;padding:4px 0;",";opacity:0;pointer-events:none;overflow-x:hidden;margin:0;&:lang(ja){min-width:260px;}&.is-show{opacity:1;pointer-events:auto;}&.inner-sub{overflow-x:unset;}&.is-normal{li.MenuItem{& > a{padding-left:32px;}&.hasIcon{> a{padding-left:15px;}}}}&.is-airy{li.MenuItem{& > a{padding-left:29px;}&.hasIcon{> a{padding-left:12px;}}}}"],K),b=E.Ay.li.withConfig({displayName:"styles__StyledMenuItem",componentId:"sc-h83js-3"})(["position:relative;a{height:28px;padding-left:16px;display:flex;align-items:center;color:#fff;padding-right:10px;& > span{margin-right:0;display:flex;justifyContent:flex-end;flex:1;alignItems:center;.text{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;line-height:20px;}}& > span{white-space:nowrap;margin-right:16px;.invisible{width:20px;height:20px;display:inline-block;color:",";margin-top:-3px;}}.selected-icon{width:8px;margin-right:9px;}.right-arrow{margin-left:auto;margin-right:-4px;display:flex;align-items:center;}img{width:14px;height:14px;opacity:0.8;margin-right:7px;}.fa-caret-right,.shortcut{margin-left:auto;width:12px;text-align:center;margin-right:-2px;}.shortcut{display:flex;align-items:center;color:#999;.mac{font-size:16px;margin-right:2px;}}.shortfont{display:flex;margin-left:auto;kbd{display:inline-block;text-align:center;min-width:12px;color:rgba(255,255,255,0.7);font-family:Inter;&.key-cmd{width:13px;text-align:right;}&:first-child{margin-left:0;}&:last-child{margin-right:0;}}}}&.hasDivider{a{margin-bottom:4px;}}&:not(.disabled).active{a{background:#666;}}&.disabled{*{cursor:not-allowed;}a{color:rgba(255,255,255,0.22);.right-arrow svg > path{fill:rgba(255,255,255,0.22);}.shortfont kbd{color:rgba(255,255,255,0.22);}}}"],P.f.color_text_L2.value_dark),x=E.Ay.li.withConfig({displayName:"styles__StyledMenuItemFont",componentId:"sc-h83js-4"})(["position:relative;a{height:28px;display:flex;align-items:center;color:#fff;& > span{margin-right:0;display:flex;justifyContent:flex-end;flex:1;alignItems:center;&.text{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;line-height:20px;}&.is-svg{height:14px;}}& > span{white-space:nowrap;margin-left:20px;}.selected-icon{width:16px;position:absolute;}.right-arrow{margin-right:8px;display:flex;align-items:center;}img{width:14px;height:14px;opacity:0.8;margin-right:7px;}.fa-caret-right,.shortcut{margin-left:auto;width:12px;text-align:center;margin-right:-2px;}}&:not(.disabled).active{a{background:#666;}}"]);var d=n(57464);function g(ve,Q,$){return(Q=y(Q))in ve?Object.defineProperty(ve,Q,{value:$,enumerable:!0,configurable:!0,writable:!0}):ve[Q]=$,ve}function y(ve){var Q=N(ve,"string");return typeof Q=="symbol"?Q:Q+""}function N(ve,Q){if(typeof ve!="object"||!ve)return ve;var $=ve[Symbol.toPrimitive];if($!==void 0){var me=$.call(ve,Q||"default");if(typeof me!="object")return me;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Q==="string"?String:Number)(ve)}const R=(0,d.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,d.jsx)("path",{d:"M5.5 5.04031L5.5 10.9597C5.5 11.3789 5.98497 11.612 6.31235 11.3501L10.012 8.39043C10.2622 8.19027 10.2622 7.80973 10.012 7.60957L6.31235 4.64988C5.98497 4.38797 5.5 4.62106 5.5 5.04031Z",fill:"white",fillOpacity:"0.9"})}),S="M1016 416L1016 -1856L328 -1856L328 416ZM512 -320L832 -320L832 -64L512 -64ZM512 -704L576 -704L576 -512L768 -512L768 -640L704 -640L704 -576L640 -576L640 -704L832 -704L832 -448L512 -448ZM512 192L728 64L512 64L512 0L832 0L832 65L617 192L832 192L832 256L512 256ZM512 -1408L704 -1408L704 -1248L832 -1248L832 -1184L512 -1184ZM512 -1536L624 -1536L624 -1632L512 -1632L512 -1696L832 -1696L832 -1632L688 -1632L688 -1536L832 -1536L832 -1472L512 -1472ZM512 -960L640 -960L640 -1056L512 -1056L512 -1120L832 -1120L832 -1056L704 -1056L704 -896L512 -896ZM512 -832L768 -832L768 -992L832 -992L832 -768L512 -768ZM768 -128L768 -256L576 -256L576 -128ZM640 -1248L640 -1344L576 -1344L576 -1248Z",B="M800 -800L800 -1240L1240 -1240L1240 -800Z",U="M860 416L172 416L548 -1856L1236 -1856ZM478 -320L436 -64L756 -64L798 -320ZM542 -704L499 -448L819 -448L862 -704L670 -704L648 -576L712 -576L723 -640L787 -640L766 -512L574 -512L606 -704ZM393 192L383 256L703 256L713 192L498 192L734 65L745 0L425 0L414 64L630 64ZM658 -1408L621 -1184L941 -1184L952 -1248L824 -1248L850 -1408ZM679 -1536L669 -1472L989 -1472L999 -1536L855 -1536L871 -1632L1015 -1632L1026 -1696L706 -1696L695 -1632L807 -1632L791 -1536ZM584 -960L573 -896L765 -896L792 -1056L920 -1056L930 -1120L610 -1120L600 -1056L728 -1056L712 -960ZM563 -832L552 -768L872 -768L909 -992L845 -992L819 -832ZM702 -128L510 -128L531 -256L723 -256ZM760 -1248L696 -1248L711 -1344L775 -1344Z",ie="M1016 416L328 416L328 -1856L1016 -1856ZM512 -320L512 -64L832 -64L832 -320ZM512 -704L512 -448L832 -448L832 -704L640 -704L640 -576L704 -576L704 -640L768 -640L768 -512L576 -512L576 -704ZM512 192L512 256L832 256L832 192L617 192L832 65L832 0L512 0L512 64L728 64ZM512 -1408L512 -1184L832 -1184L832 -1248L704 -1248L704 -1408ZM512 -1536L512 -1472L832 -1472L832 -1536L688 -1536L688 -1632L832 -1632L832 -1696L512 -1696L512 -1632L624 -1632L624 -1536ZM512 -960L512 -896L704 -896L704 -1056L832 -1056L832 -1120L512 -1120L512 -1056L640 -1056L640 -960ZM512 -832L512 -768L832 -768L832 -992L768 -992L768 -832ZM768 -128L576 -128L576 -256L768 -256ZM640 -1248L576 -1248L576 -1344L640 -1344Z",L=3;let F=[],X=!1;const le=new Map,oe=ve=>{F.push(ve),F.length>L&&F.shift()},xe=ve=>{ve.ctrlKey===!0&&ve.preventDefault()};class Ee extends M.PureComponent{constructor(Q){super(Q),g(this,"setMenuRef",$=>this.$menu=$),g(this,"createContextMenuRef",$=>this.$mountRoot=$),g(this,"mousewheelHandle",$=>{const me=$.deltaX||$.wheelDeltaX;if(!me||!this.$elem)return;const Se=this.$elem.scrollLeft+this.$elem.offsetWidth===this.$elem.scrollWidth&&me>0,Ce=this.$elem.scrollLeft===0&&me<0;(Se||Ce)&&$.preventDefault()}),g(this,"handleClose",$=>{const{onClose:me}=this.props;me&&me($)}),g(this,"handleCloseMouse",$=>{$.button===2&&this.handleClose($)}),g(this,"handleClickMenu",$=>{const{alwaysOpen:me}=this.props;me||this.handleClose($)}),g(this,"handleUpdateState",$=>this.setState({...$})),this.$elem=document.createElement("div"),this.state={activePath:[],showSubMenu:!1}}componentDidMount(){document.body.appendChild(this.$elem),!this.props.style&&W(this.$menu),this.$elem&&this.$elem.addEventListener("mousewheel",this.mousewheelHandle),this.$elem&&this.$elem.addEventListener("wheel",xe)}componentWillUnmount(){this.$elem&&this.$elem.removeEventListener("mousewheel",this.mousewheelHandle,{capture:!0}),this.$elem&&this.$elem.removeEventListener("wheel",xe,{capture:!0}),document.body.removeChild(this.$elem),F=[],X=!1}preventDefault(Q){Q.preventDefault()}render(){const{position:Q,children:$,className:me,style:Se={}}=this.props,{top:Ce,left:We}=Q,{activePath:s,showSubMenu:Ae}=this.state;return(0,p.createPortal)((0,d.jsx)(V,{className:"context-menu-mask",onMouseDown:this.handleClose,onClick:this.handleClickMenu,children:(0,d.jsx)(l,{ref:this.createContextMenuRef,style:{top:Ce+2,left:We+2,...Se},className:me,onContextMenu:this.preventDefault,children:(0,d.jsx)("ul",{ref:this.setMenuRef,children:(0,d.jsx)(q.Provider,{value:{mountRoot:this.$mountRoot,contextMenuPosition:Q,activePath:s,showSubMenu:Ae,onUpdateState:this.handleUpdateState},children:$})})})}),this.$elem)}}g(Ee,"propTypes",{className:f().string,position:f().object,children:f().oneOfType([f().element,f().array]),style:f().object,onClose:f().func,alwaysOpen:f().bool});class Oe extends M.PureComponent{constructor(Q){super(Q),g(this,"setMenuRef",$=>this.$menu=$),g(this,"createContextMenuRef",$=>this.$mountRoot=$),g(this,"mousewheelHandle",$=>{const me=$.deltaX||$.wheelDeltaX;if(!me||!this.$elem)return;const Se=this.$elem.scrollLeft+this.$elem.offsetWidth===this.$elem.scrollWidth&&me>0,Ce=this.$elem.scrollLeft===0&&me<0;(Se||Ce)&&$.preventDefault()}),g(this,"handleClose",$=>{const{onClose:me}=this.props;me&&me($)}),g(this,"handleCloseMouse",$=>{$.button===2&&this.handleClose($)}),g(this,"handleClickMenu",$=>{const{alwaysOpen:me}=this.props;me||this.handleClose($)}),g(this,"handleUpdateState",$=>this.setState({...$})),this.$elem=document.createElement("div"),this.state={activePath:[],showSubMenu:!1}}componentDidMount(){document.body.appendChild(this.$elem),this.$elem&&this.$elem.addEventListener("mousewheel",this.mousewheelHandle)}componentWillUnmount(){this.$elem&&this.$elem.removeEventListener("mousewheel",this.mousewheelHandle,{capture:!0}),document.body.removeChild(this.$elem),F=[],X=!1}preventDefault(Q){Q.preventDefault()}render(){const{position:Q,children:$,className:me,style:Se={}}=this.props,{top:Ce,left:We}=Q,{activePath:s,showSubMenu:Ae}=this.state;return(0,d.jsx)(l,{ref:this.createContextMenuRef,style:{top:Ce+2,left:We+2,...Se},className:me,onContextMenu:this.preventDefault,children:(0,d.jsx)("ul",{ref:this.setMenuRef,children:(0,d.jsx)(q.Provider,{value:{mountRoot:this.$mountRoot,contextMenuPosition:Q,activePath:s,showSubMenu:Ae,onUpdateState:this.handleUpdateState,containerRef:this.$elem,isEmbed:!0},children:$})})})}}g(Oe,"propTypes",{className:f().string,position:f().object,children:f().oneOfType([f().element,f().array]),style:f().object,onClose:f().func,alwaysOpen:f().bool});class Be extends M.PureComponent{constructor(){super(...arguments),g(this,"createMenuItemRef",Q=>this.$menuItemRef=Q),g(this,"createSubMenuRef",Q=>this.$subMenuRef=Q),g(this,"handleActiveItem",(Q,$)=>{const{children:me}=this.props;$({activePath:Q,showSubMenu:!!me})}),g(this,"handleMouseEnter",(Q,$,me)=>{const{onMouseEnter:Se}=this.props;Se&&Se(Q),X?setTimeout(()=>{if(this.$menuItemRef&&F.length>0){const Ce=this.$menuItemRef.getBoundingClientRect();F.slice(-1)[0].inside(Ce)&&this.handleActiveItem($,me)}},200):this.handleActiveItem($,me)}),g(this,"handleMouseLeave",async(Q,$,me,Se)=>{const{onMouseLeave:Ce}=this.props;if(Ce&&Ce(Q),me&&this.$subMenuRef){const We=this.$subMenuRef.getBoundingClientRect();if(We&&F.length>0){const{left:s,top:Ae,bottom:$e}=We,qe=new w(s,Ae),dt=new w(s,$e),ut=[F[0],qe,dt],at=new w(Q.clientX,Q.clientY);if(J(at,ut)){X=!0;return}}}if($){Se({activePath:$.dataset.index.split(","),showSubMenu:!0}),X=!1;return}Se({activePath:[],showSubMenu:!1}),X=!1}),g(this,"handleMouseMove",Q=>{const $=new w(Q.clientX,Q.clientY);oe($)}),g(this,"handleMouseDown",Q=>Q.stopPropagation()),g(this,"handleGetCanActiveSubMenu",(Q,$,me)=>{let Se=!1;return $&&(Q&&$.join("")===me.join("")||$.slice(0,me.length).join("")===me.join(""))&&(Se=!0),Se}),g(this,"handleGetPath",Q=>{const{dataIndex:$,text:me}=this.props,Se=$!==void 0?$:me;return Q?Q.dataset.index.split(",").concat(Se):[Se]}),g(this,"handleClick",Q=>{const{disabled:$,onClick:me,canClick:Se,children:Ce}=this.props;(Se||!$)&&me&&me(Q),(Ce||$)&&Q.stopPropagation()})}render(){const{icon:Q,text:$,children:me,disabled:Se,hotKeyText:Ce,className:We,dataType:s,subMenuClassName:Ae,subMenuDirection:$e,subMenuLeftOffset:qe,subMenuTopOffset:dt,isVisible:ut,isAiry:at=!1}=this.props;return(0,d.jsx)(q.Consumer,{children:ft=>{const{contextMenuPosition:Pt,mountRoot:Mt,activePath:Rt,showSubMenu:Bt,parentRef:bt,onUpdateState:Wt,isEmbed:en=!1}=ft,Dt=this.handleGetPath(bt),Vt=this.handleGetCanActiveSubMenu(Bt,Rt,Dt);return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(b,{ref:this.createMenuItemRef,className:H()("MenuItem",{disabled:Se,hasIcon:Q},We,{active:Vt}),"data-type":s,"data-index":Dt,onMouseEnter:Yt=>this.handleMouseEnter(Yt,Dt,Wt),onMouseLeave:Yt=>this.handleMouseLeave(Yt,bt,Bt,Wt),onMouseMove:this.handleMouseMove,onMouseDown:this.handleMouseDown,onClick:this.handleClick,children:(0,d.jsxs)("a",{children:[Q,(0,d.jsxs)("span",{children:[(0,d.jsx)("span",{className:"text",children:$}),ut?(0,d.jsx)(A.A,{className:"invisible",name:"eyeinvisible"}):null]}),me&&(0,d.jsx)("div",{className:"right-arrow",children:R}),Ce&&Ce.length>0&&(0,d.jsx)("div",{className:"shortfont",children:Ce.map((Yt,Gt)=>(0,d.jsx)("kbd",{children:Yt},Gt))})]})}),me&&Vt&&!Se&&(0,p.createPortal)((0,d.jsx)(Ve,{parentRef:this.$menuItemRef,setRef:this.createSubMenuRef,contextMenuPosition:Pt,subMenuDirection:$e,subMenuLeftOffset:qe,subMenuTopOffset:dt,className:Ae,mountRoot:Mt,isEmbed:en,isAiry:at,children:(0,d.jsx)(q.Provider,{value:{parentRef:this.$menuItemRef,mountRoot:Mt,contextMenuPosition:Pt,activePath:Rt,showSubMenu:Bt,onUpdateState:Wt},children:me})}),Mt)]})}})}}g(Be,"propTypes",{icon:f().object,text:f().string.isRequired,className:f().string,disabled:f().bool,canClick:f().bool,children:f().oneOfType([f().element,f().array]),hotKeyText:f().array,onClick:f().func,onMouseEnter:f().func,onMouseLeave:f().func,dataType:f().number,dataIndex:f().oneOfType([f().number,f().string]),subMenuClassName:f().string,subMenuDirection:f().string,subMenuLeftOffset:f().number,subMenuTopOffset:f().number,isVisible:f().bool,isAiry:f().bool}),g(Be,"defaultProps",{subMenuClassName:""});class Ue extends M.PureComponent{constructor(Q){super(Q),g(this,"createMenuItemRef",s=>this.$menuItemRef=s),g(this,"createSubMenuRef",s=>this.$subMenuRef=s),g(this,"spanRef",s=>this.$spanRef=s),g(this,"handleActiveItem",(s,Ae)=>{const{children:$e}=this.props;Ae({activePath:s,showSubMenu:!!$e})}),g(this,"handleMouseEnter",(s,Ae,$e)=>{const{onMouseEnter:qe}=this.props;qe&&qe(s),X?setTimeout(()=>{if(this.$menuItemRef&&F.length>0){const dt=this.$menuItemRef.getBoundingClientRect();F.slice(-1)[0].inside(dt)&&this.handleActiveItem(Ae,$e)}},200):this.handleActiveItem(Ae,$e)}),g(this,"handleMouseLeave",async(s,Ae,$e,qe)=>{const{onMouseLeave:dt}=this.props;if(dt&&dt(s),$e&&this.$subMenuRef){const ut=this.$subMenuRef.getBoundingClientRect();if(ut&&F.length>0){const{left:at,top:ft,bottom:Pt}=ut,Mt=new w(at,ft),Rt=new w(at,Pt),Bt=[F[0],Mt,Rt],bt=new w(s.clientX,s.clientY);if(J(bt,Bt)){X=!0;return}}}if(Ae){qe({activePath:Ae.dataset.index.split(","),showSubMenu:!0}),X=!1;return}qe({activePath:[],showSubMenu:!1}),X=!1}),g(this,"handleMouseMove",s=>{const Ae=new w(s.clientX,s.clientY);oe(Ae)}),g(this,"handleMouseDown",s=>s.stopPropagation()),g(this,"handleGetCanActiveSubMenu",(s,Ae,$e)=>{let qe=!1;return Ae&&(s&&Ae.join("")===$e.join("")||Ae.slice(0,$e.length).join("")===$e.join(""))&&(qe=!0),qe}),g(this,"handleGetPath",s=>{const{dataIndex:Ae,text:$e}=this.props,qe=Ae!==void 0?Ae:$e;return s?s.dataset.index.split(",").concat(qe):[qe]}),g(this,"handleClick",s=>{const{disabled:Ae,onClick:$e,canClick:qe,children:dt}=this.props;(qe||!Ae)&&$e&&$e(s),(dt||Ae)&&s.stopPropagation()});const{text:$,fontUrl:me,usePlainText:Se}=this.props,Ce="U="+me+"&T="+$,We=le.get(Ce);Se?this.state={renderContent:Q.text,contentType:"text"}:this.state={renderContent:(We==null?void 0:We.content)||Q.text,contentType:(We==null?void 0:We.type)||"text"}}async componentDidMount(){const{text:Q,fontUrl:$,usePlainText:me}=this.props;if(me)return;const Se="U="+$+"&T="+Q;if(!le.get(Se)){if(!$){le.set(Se,{type:"text",content:Q});return}try{const Ce=await(await fetch("/flatkiq/fontsvg/sync.svg?"+Se)).text();if(Ce!==""){const We=[...new DOMParser().parseFromString(Ce,"text/html").querySelectorAll("path")].map(s=>s.getAttribute("d"));if(We.find(s=>s===S||s===B||s===U||s===ie)){le.set(Se,{type:"text",content:Q});return}We.filter(Boolean).length!==Q.split("").filter(s=>s!==" ").length?le.set(Se,{type:"text",content:Q}):(le.set(Se,{type:"svg",content:Ce}),this.setState({renderContent:Ce,contentType:"svg"}))}else le.set(Se,{type:"text",content:Q})}catch(Ce){console.error(Ce),le.set(Se,{type:"text",content:Q})}}}render(){const{icon:Q,children:$,disabled:me,className:Se,dataType:Ce,subMenuClassName:We,subMenuDirection:s,subMenuLeftOffset:Ae,subMenuTopOffset:$e,tooltipComponent:qe=null,tooltipWrapper:dt=null}=this.props,{renderContent:ut,contentType:at}=this.state;return(0,d.jsx)(q.Consumer,{children:ft=>{const{contextMenuPosition:Pt,mountRoot:Mt,activePath:Rt,showSubMenu:Bt,parentRef:bt,onUpdateState:Wt,isEmbed:en=!1}=ft,Dt=this.handleGetPath(bt),Vt=this.handleGetCanActiveSubMenu(Bt,Rt,Dt),Yt=(0,d.jsxs)("a",{children:[Q,(0,d.jsx)("span",{dangerouslySetInnerHTML:{__html:ut},className:H()("text",{"is-svg":at==="svg"})}),qe,$&&(0,d.jsx)("div",{className:"right-arrow",children:R})]});return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(x,{ref:this.createMenuItemRef,className:H()("MenuItem",{disabled:me,hasIcon:Q},Se,{active:Vt}),"data-type":Ce,"data-index":Dt,onMouseEnter:Gt=>this.handleMouseEnter(Gt,Dt,Wt),onMouseLeave:Gt=>this.handleMouseLeave(Gt,bt,Bt,Wt),onMouseMove:this.handleMouseMove,onMouseDown:this.handleMouseDown,onClick:this.handleClick,children:dt?dt(Yt):Yt}),$&&Vt&&!me&&(0,p.createPortal)((0,d.jsx)(Ve,{parentRef:this.$menuItemRef,setRef:this.createSubMenuRef,contextMenuPosition:Pt,subMenuDirection:s,subMenuLeftOffset:Ae,subMenuTopOffset:$e,className:We,mountRoot:Mt,isEmbed:en,isNoraml:!1,isAiry:!1,children:(0,d.jsx)(q.Provider,{value:{parentRef:this.$menuItemRef,mountRoot:Mt,contextMenuPosition:Pt,activePath:Rt,showSubMenu:Bt,onUpdateState:Wt},children:$})}),Mt)]})}})}}g(Ue,"defaultProps",{subMenuClassName:""});class Ve extends M.PureComponent{constructor(Q){super(Q),g(this,"createRef",$=>{const{setRef:me}=this.props;me($),this.subMenu=$}),this.state={isTransform:!1}}componentDidMount(){this.setState({isTransform:!0});const{parentRef:Q,contextMenuPosition:$,subMenuDirection:me,subMenuLeftOffset:Se,subMenuTopOffset:Ce,isAiry:We,isEmbed:s,mountRoot:Ae}=this.props;s?Y(this.subMenu,Q,$,me,{subMenuLeftOffset:Se,subMenuTopOffset:Ce},We,Ae):ae(this.subMenu,Q,$,me,{subMenuLeftOffset:Se,subMenuTopOffset:Ce},We)}render(){const{children:Q,isAiry:$,className:me,isNoraml:Se=!0}=this.props,{isTransform:Ce}=this.state;return(0,d.jsx)(C,{className:H()("SubMenu",{"is-show":Ce},{"is-airy":$},{"is-normal":Se},me),ref:this.createRef,children:Q})}}g(Ve,"propTypes",{children:f().oneOfType([f().element,f().array]),className:f().string,parentRef:f().node,contextMenuPosition:f().object,setRef:f().func,subMenuDirection:f().string,subMenuLeftOffset:f().number,subMenuTopOffset:f().number,isAiry:f().bool});const Ye=E.Ay.div.withConfig({displayName:"ContextMenu__Divider",componentId:"sc-1802crt-0"})(["margin:8px 0;border-top:1px solid #454546;"])},29815:(we,de,n)=>{"use strict";n.d(de,{A:()=>g});var i=n(66748),f=n.n(i),M=n(51044),p=n(21676),E=n(54909);const ee=p.Ay.div.withConfig({displayName:"styled__StyledCrashedPage",componentId:"sc-8goufi-0"})(["position:fixed;top:50%;left:50%;transform:translateX(-50%) translateY(-55%);text-align:center;color:#666;.logo{margin:0 auto 40px;height:320px;.logo-clickable{cursor:pointer;}.svg-icon{width:600px;fill:none;}}.mobile &{.logo{width:100%;transform:scale(0.8);}.content{.title{font-size:20px;line-height:24px;}.proposal{width:290px;font-size:14px;line-height:20px;}}}p{margin:0;}.content{margin:40px auto;.title{font-weight:600;font-size:24px;line-height:24px;color:#1f292e;}.proposal{width:max-content;margin:12px auto 40px;font-style:normal;font-weight:normal;font-size:16px;line-height:20px;color:#415058;.count-detail{color:#1684fc;}}.text-left{text-align:left;margin-bottom:-12px;}.text-list{margin:0;padding-left:24px;}}.btn-list{display:grid;grid-auto-flow:column;gap:20px;justify-content:center;.btn{width:200px;height:48px;display:inline-block;border-radius:6px;font-size:16px;font-weight:500;line-height:46px;cursor:pointer;transition:all 0.2s ease-out;}.primary{color:",";background:",";border:1px solid transparent;&:hover{background:",";border:1px solid transparent;}&:active{background:",";border:1px solid transparent;}}.regular{color:",";background:",";border:1px solid ",";&:hover{background:",";border:1px solid ",";}&:active{background:",";border:1px solid ",";}}}"],E.f.color_text_btn.value_light,E.f.color_btn_primary_normal.value_light,E.f.color_btn_primary_hover.value_light,E.f.color_btn_primary_clicked.value_light,E.f.color_text_L1.value_light,E.f.color_bg_white.value_light,E.f.color_bg_border_02.value_light,E.f.color_btn_secondary_hover.value_light,E.f.color_bg_border_02.value_light,E.f.color_btn_secondary_active.value_light,E.f.color_bg_border_02.value_light);var H=n(57464);const A="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='320' fill='none'%3E%3Cpath fill='url(%23a)' d='M200 158.5c-54.4-5.2-59.3 54.2-55 84.5h308c22.8-46-17.7-69.2-44-73.5 49.3-15.5 19.5-88-28.5-116C258.2-17.8 268 165 200 158.5Z' opacity='.6'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-width='2' d='M145 243h66a2 2 0 0 0 2-2V122.6a2 2 0 0 1 1.6-2L333 94l-101.6 32.6a2 2 0 0 0-1.4 1.9v139a2 2 0 0 0 2.5 2l54-13'/%3E%3Cpath fill='%231F292E' d='M213 121.5v122l17 26V127l100.5-32.5-117.5 27Z'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M455 243h-38'/%3E%3Ccircle cx='251' cy='198' r='4' fill='%231F292E'/%3E%3Cpath fill='%23FF6161' fill-rule='evenodd' d='M250.4 182.2Zm2.3-3.2a24.2 24.2 0 0 1 2.7-1c.9-.3 3 .2 4.4 1.1.6.6-.5.2-2 .4l-1.9.4a22.7 22.7 0 0 0-5 2.4 5.2 5.2 0 0 1-.7.3 1.8 1.8 0 0 1-.3.1 1.2 1.2 0 0 1-.3 0 1 1 0 0 1-.6-.2 1 1 0 0 1-.4-.8 1 1 0 0 1 0-.4l.3-.4.5-.5 1-1a2.2 2.2 0 0 0 .2-.3.7.7 0 0 0 0-.1.9.9 0 0 0-.1-.1c-.4-.2-1-.4-2.3-.6a3.2 3.2 0 0 1-.3 0 1.6 1.6 0 0 1-.5-.2 1 1 0 0 1-.5-.9c0-.4.2-.7.3-.8l.6-.4.6-.3.5-.2a13 13 0 0 0 2.7-1.2l.9-.7v-.4c-.1-.2-.4-.6-1.3-1-.8-.6-2-1.1-3.7-1.7a2.6 2.6 0 0 1-.8-.5 1 1 0 0 1-.5-.9c-.1-.5.2-1 .4-1.1.3-.2.6-.4.9-.4 1.6-.4 4-1 5.9-2.8 1.7-1.5 3-4.2 1.8-9.2a2.3 2.3 0 0 1 0-1.2l.2-.4a1 1 0 0 1 1.6-.2c.2.1.3.3.3.4l.5 1c.8 2 3.5 4.9 6.7 6.7 1.2.7 1.2.8 0 .4-2.2-.6-5.6-2-7.3-4.6 1.3 4.3-.8 7-2.4 8.6a13.1 13.1 0 0 1-5.3 2.8c1.2.4 2 .9 2.8 1.3a5 5 0 0 1 2 2c.4.8.3 1.6-.1 2.2-.4.6-1 1-1.6 1.4l-1.7.9.6.2c.7.4 1.2 1 1.2 1.9Zm-2 0Z' clip-rule='evenodd'/%3E%3Cpath fill='%23fff' d='M292 163.5c61.2 5.2 103.5 55.5 117 80l-115 14-4-12.5 2-8-3-11 3-10 3.5-4v-13l7.5-7c-25-2-35-4-36.5-14.5.5-3.6 3.1-15.9 25.5-14Z'/%3E%3Cpath fill='%231F292E' fill-rule='evenodd' d='M363 191.1a219 219 0 0 1 46.8 51.6 1 1 0 1 1-1.6 1 217 217 0 0 0-46.5-51c-21.7-17-48.6-29.9-78.3-27.4-10.1.8-15 6.3-15.4 11.4-.4 5 3.6 10.6 12.8 11.8l5.2.6c5.4.7 11.2 1.4 16.5 2.4a70 70 0 0 1 12.1 3.2c3.5 1.3 6.5 3 8.5 5.4a1 1 0 0 1-1.6 1.3c-1.6-2-4.2-3.5-7.6-4.8a66.7 66.7 0 0 0-11.3-3c-3.5 2.3-7 6.7-7 12.9-.1 6.3 3.7 14.7 16 24.7 4.7 3.7 9.5 5 13.4 4.5a1 1 0 0 1 1.3-.3 11.1 11.1 0 0 0 1.2-.3c2-.7 3.6-2 4.6-3.7.8-1.4 1-3.2.7-5.3-4.2.6-7.4.3-9.7-.7-2-.8-3.2-2-4-3.6a8.5 8.5 0 0 1-.6-5.2c.3-1.5.8-3 1.6-4.5a26.7 26.7 0 0 1-2.2-2.8 7 7 0 0 1-1.2-2c-.4-.8-.6-1.5-.6-2.2a1 1 0 1 1 2 0c0 .3.1.7.4 1.3.2.6.6 1.2 1 1.8a24.1 24.1 0 0 0 1.7 2.1 29.4 29.4 0 0 1 19.1-11.4 1 1 0 0 1 .4 2c-5.7.8-10.5 3.2-14 6.3a22.1 22.1 0 0 0-4.3 5 1 1 0 0 1-.4.6 13 13 0 0 0-1.5 4.1c-.3 1.6-.1 3 .4 4 .5 1.1 1.5 2 3 2.7 3 1.3 8.2 1.3 16.3-1.3 3.7-1.5 6.9-2.2 9.3-2.1 2.5 0 4.5.8 5.6 2.1a5 5 0 0 1 .7 5.1 12 12 0 0 1-4.3 5.3c-8 6-7.5 11.8-6.6 13.5a1 1 0 1 1-1.8 1c-1.4-3-1.4-9.6 7.2-16 2-1.5 3.1-3.1 3.6-4.4.5-1.4.3-2.4-.3-3.2-.7-.7-2-1.4-4.1-1.4-2.1 0-5 .5-8.6 2l-6.1 1.6c.4 2.5 0 4.7-1 6.6a10.2 10.2 0 0 1-5.6 4.6 12.3 12.3 0 0 1-1.1.3c.6 2.9.4 6-.7 8.6a9.4 9.4 0 0 1-6.1 5.4c5 4.5 6.4 10 5.1 14.4a8.7 8.7 0 0 1-3 4.6c3.2 2.3 9 5 15.8 5a1 1 0 0 1 1 0 28 28 0 0 0 12.1-3.5 1 1 0 1 1 1 1.8 30 30 0 0 1-11.8 3.6 51.8 51.8 0 0 1 3.2 8c1.2 3.9 2 8.2 1.3 12a1 1 0 1 1-2-.4c.6-3.3 0-7.3-1.2-11-1-3.4-2.4-6.5-3.5-8.5-8 0-14.4-3.3-17.8-6-2 .8-4.6.8-7.2-.3-13.4-5.2-19.9-12-22.4-18.3-2.4-6-1.2-11.6.7-15.1a21.2 21.2 0 0 1-2.8-15.1c.8-4.5 3-8.3 5.6-10.2A17.5 17.5 0 0 1 300 193l-14.1-1.9a765.9 765.9 0 0 1-5.2-.7c-10-1.2-15-7.4-14.6-13.9.5-6.4 6.5-12.3 17.2-13.2 30.4-2.5 57.8 10.7 79.7 27.8Zm-68 23.2c2.3 5.5 7 11.7 15.3 18.4 5 4 10.3 5.5 14.7 5 .5 2.5.4 5.2-.5 7.4a7.7 7.7 0 0 1-6.7 4.6c-3 .3-7.1-.5-12.5-3a28.2 28.2 0 0 1-11.7-9.7 19.2 19.2 0 0 1-3-14.2 15 15 0 0 1 4.4-8.5Zm-2.2 25.2c-1.4 3-2.1 7.6-.1 12.5 2.2 5.7 8.2 12 21.2 17.2 2.3.9 4.3.8 5.8.2a1 1 0 0 1 .7-.3 6.5 6.5 0 0 0 3-4c1-3.7-.3-9.1-5.8-13.4-3.5.3-7.8-.7-13.2-3.3-5.2-2.5-9-5.6-11.6-9Zm75.4 17.1a1 1 0 0 1-.5 1.4 7.7 7.7 0 0 0-3.8 4.5 1 1 0 1 1-2-.5 9.7 9.7 0 0 1 5-5.8 1 1 0 0 1 1.3.4Z' clip-rule='evenodd'/%3E%3Cdefs%3E%3ClinearGradient id='a' x1='426' x2='259' y1='125' y2='289' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23EDF8FF'/%3E%3Cstop offset='1' stop-color='%23FAEFFF'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E",w="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAwIiBoZWlnaHQ9IjMyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMjUwLjUgMjk1LjVsLTctMzYgNi41LS41IDguNS0yIDktNSAzNCAyLjUgOCAzOC41LTU5IDIuNXoiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl83ODc4XzE1MjE3KSIvPjxwYXRoIG9wYWNpdHk9Ii42IiBkPSJNNDM2LjE1MiAxNTguNWM1NC40LTUuMiA1OS4zMzQgNTQuMTY2IDU1IDg0LjVoLTMwOGMtMjIuOC00NiAxNy42NjctNjkuMTY3IDQ0LTczLjUtNDkuMzMzLTE1LjUtMTkuNS04OCAyOC41LTExNiAxMjIuMjU0LTcxLjMxNSAxMTIuNSAxMTEuNSAxODAuNSAxMDV6IiBmaWxsPSJ1cmwoI3BhaW50MV9saW5lYXJfNzg3OF8xNTIxNykiLz48cmVjdCB4PSIyNjcuNjQ4IiB5PSIxNDQiIHdpZHRoPSIzOCIgaGVpZ2h0PSI5OCIgcng9IjMiIHN0cm9rZT0iIzFGMjkyRSIgc3Ryb2tlLXdpZHRoPSIyIi8+PHJlY3QgeD0iMjI5LjY0OCIgeT0iMTE0IiB3aWR0aD0iMzgiIGhlaWdodD0iMTI4IiByeD0iMyIgc3Ryb2tlPSIjMUYyOTJFIiBzdHJva2Utd2lkdGg9IjIiLz48cmVjdCB4PSIzNzkuNjQ4IiB5PSIxMjgiIHdpZHRoPSIyMSIgaGVpZ2h0PSIxMTQiIHJ4PSIzIiBzdHJva2U9IiMxRjI5MkUiIHN0cm9rZS13aWR0aD0iMiIvPjxyZWN0IHg9IjQwMC42NDgiIHk9IjE0NCIgd2lkdGg9IjI5IiBoZWlnaHQ9Ijk4IiByeD0iMyIgc3Ryb2tlPSIjMUYyOTJFIiBzdHJva2Utd2lkdGg9IjIiLz48cmVjdCB4PSIzMDUuNjQ4IiB5PSIxMjgiIHdpZHRoPSIxOSIgaGVpZ2h0PSIxMTQiIHJ4PSIzIiBzdHJva2U9IiMxRjI5MkUiIHN0cm9rZS13aWR0aD0iMiIvPjxyZWN0IHg9IjMyNS42NDgiIHk9IjEzMC4yMzIiIHdpZHRoPSIyMi4yODkiIGhlaWdodD0iMTE2IiByeD0iNCIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1LjcyMyAzMjUuNjQ4IDEzMC4yMzIpIiBzdHJva2U9IiMxRjI5MkUiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtZGFzaGFycmF5PSIxIDgiLz48cGF0aCBkPSJNMTc3LjY0OCAyNDJoMzEwIiBzdHJva2U9IiMxRjI5MkUiIHN0cm9rZS13aWR0aD0iMiIvPjxwYXRoIGZpbGw9IiMxRjI5MkUiIGQ9Ik0zODAuNjQ4IDIwMGgxOXYxN2gtMTl6Ii8+PHBhdGggZmlsbD0iIzE2ODRGQyIgZD0iTTQwMS42NDggMTY4aDI5djE5aC0yOXoiLz48cGF0aCBmaWxsPSIjMUYyOTJFIiBkPSJNMzgwLjY0OCAyMjFoMTl2NGgtMTl6TTI2OC42NDggMTU5aDM2djEzaC0zNnoiLz48cGF0aCBkPSJNMjk1LjE0OCAxODNjOC0uOCAxNCA4LjMzMyAxNiAxM2wtNTAgMjEtMjQuNS0xNCAyLTQuNSA0LjUtOCA5LTMuNSA5IC41IDYuNS00LjUgNi0xLjUgNiAxLjUgNCA0Yy41LTEgMy41LTMuMiAxMS41LTR6IiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTI0Mi4xNDggMjA0bDY4LTctMi41IDU3LTU4LTItNy41LTQ4eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0zMTAuMTQ4IDE5N2wuOTk5LjA0NC4wNTEtMS4xNTctMS4xNTIuMTE4LjEwMi45OTV6bS02OCA3bC0uMTAyLS45OTUtMS4wNDguMTA4LjE2MiAxLjA0MS45ODgtLjE1NHptNy41IDQ4bC0uOTg4LjE1NC4xMjguODE3LjgyNi4wMjguMDM0LS45OTl6bTU4IDJsLS4wMzQuOTk5YTEgMSAwIDAgMCAxLjAzMy0uOTU1bC0uOTk5LS4wNDR6bTIuMzk4LTU3Ljk5NWwtNjggNyAuMjA1IDEuOTkgNjgtNy0uMjA1LTEuOTl6bS02OC44ODYgOC4xNDlsNy41IDQ4IDEuOTc2LS4zMDgtNy41LTQ4LTEuOTc2LjMwOHptOC40NTQgNDguODQ1bDU4IDIgLjA2OS0xLjk5OC01OC0yLS4wNjkgMS45OTh6bTU5LjAzMyAxLjA0NWwyLjUtNTctMS45OTgtLjA4OC0yLjUgNTcgMS45OTguMDg4eiIgZmlsbD0iIzFGMjkyRSIvPjxwYXRoIGQ9Ik0yOTQuMTQ4IDE4Mi41YzgtLjggMTQgOC4zMzMgMTYgMTNsLTI5LjUgMTAuNS02LjUtM3YtOC41bDguNS04Yy41LTEgMy41LTMuMiAxMS41LTR6IiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTMxMC42NDggMTk2Yy0yLTctMTEuMjEyLTE5LjY4Ni0yOC41LTguNS0xNyAxMS03LjUgMjUuNSA5LjUgMTRtLTgtMTQuOTIzYy0zLjgzMy0zLjY2Ny0xMi4wNi0xMC43MjItMjQgMi45MjMtNyA4IDAgMTcuNSAxNCA5TTI2MS4xNDggMTg3LjVjLTYtMi4xNjctMTkuNi0xLjUtMjQgMTQuNSIgc3Ryb2tlPSIjMUYyOTJFIiBzdHJva2Utd2lkdGg9IjIiLz48cGF0aCBkPSJNMTg4LjE0OCAyMDZsNTktNC41IDEuNSA1Ny41LTYzLjUtMy41IDMtNDkuNXoiIGZpbGw9IiNmZmYiIHN0cm9rZT0iIzFGMjkyRSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PHBhdGggZD0iTTIwMy42NDkgMTk3LjAzMWM1LjYtLjggMTAuMzMzIDQuNjY2IDEyIDcuNUwyMDguNSAyMDcuNWwtNiA1LjUtNC41IDctMSAxMCAzLjUgMTUgMS41IDktNCAxMi0yLjUgNy41LS41IDE3LjUtNzIgNC41IDIuNS0zMC41LTExLjUtMTYuNS01LjUtMTUuNXYtMTRsNy0xNCA4LTcgNSAxIDQuNSA5LjUgNi41LTguNDY5IDEwLTguMDMxIDcuNS41IDQuNSAzLTQuNSA0LjUzMWMxNS41LTEzLjAzMSAyMi4wNTctMy41MzEgMTkuNSAwIDguNC0xMS42IDE2LjgxNS00LjMzNCAyMC42NDkgMC0uMTY3LS42NjcuOS0yLjIgNi41LTN6IiBmaWxsPSJ1cmwoI3BhaW50Ml9saW5lYXJfNzg3OF8xNTIxNykiLz48cGF0aCBkPSJNMTg3LjE0OCAyMTEuNWMzLjE4Ni02LjYxNiA2LjU3Ny0xMC40OTIgOS44OTQtMTIuNW0wIDBjNy41MTItNC41NDggMTQuNjM4LjQ5MSAxOC4xMDYgNS02LjAzNSAyLjE2Ny0xOC4xMDYgOS44LTE4LjEwNiAyMyAwIDE2LjUgMTEuMTA2IDI0LjUtMS44OTQgNDZ2MThtMS44OTQtOTJjLTUuMjk4LTUuODMzLTE4LjE5NC0xMS41LTI3LjM5NCAxMi41bTgtMTQuNWMtNC42NjYtNS4zMzMtMTYuNS05LjUtMjYuNSAxNi41IiBzdHJva2U9IiMxRjI5MkUiIHN0cm9rZS13aWR0aD0iMiIvPjxwYXRoIGQ9Ik0xNjEuNjQ3IDE5NmMtNC44MzMtNi4xNjctMTYuMDEyLTEwLjI0NC0zMS41IDE4LTUuMjEgOS41LTYgMjYtMSAzMyIgc3Ryb2tlPSIjMUYyOTJFIiBzdHJva2Utd2lkdGg9IjIiLz48cGF0aCBkPSJNMTMyLjY0OCAyMTBjLTEuMTY3LTYuODM0LTUuNi0xOC4xLTE0LTguNS0xMC41IDEyLTIwIDMxLjUgNi41IDYzbC0yIDMxTTMwMS4xNDggMjU0bDcuNSAzOU0yNDMuNjQ4IDI1OGw2LjUgMzcuNSIgc3Ryb2tlPSIjMUYyOTJFIiBzdHJva2Utd2lkdGg9IjIiLz48Y2lyY2xlIGN4PSIzMDguNjQ4IiBjeT0iMjI1IiByPSIyOSIgZmlsbD0iI2ZmZiIgc3Ryb2tlPSIjMUYyOTJFIiBzdHJva2Utd2lkdGg9IjIiLz48Y2lyY2xlIGN4PSIyNDguNjQ4IiBjeT0iMjMwIiByPSIyOSIgZmlsbD0iI2ZmZiIgc3Ryb2tlPSIjMUYyOTJFIiBzdHJva2Utd2lkdGg9IjIiLz48Y2lyY2xlIGN4PSIzMDguNjQ4IiBjeT0iMjI1IiByPSIyMiIgZmlsbD0iI2ZmZiIgc3Ryb2tlPSIjMUYyOTJFIiBzdHJva2Utd2lkdGg9IjIiLz48Y2lyY2xlIGN4PSIyNDguNjQ4IiBjeT0iMjMwIiByPSIyMiIgZmlsbD0iI2ZmZiIgc3Ryb2tlPSIjMUYyOTJFIiBzdHJva2Utd2lkdGg9IjIiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTM0OS42NjcgMTAxLjM5NWwuMDAxLjAwMS0uMDAxLS4wMDF6bTEuNTc0IDMuNTQ1YTI0LjEyNCAyNC4xMjQgMCAwIDEtLjUwMSAyLjgzMWMtLjIyLjkwNS0xLjY1IDIuNTA2LTMuMjI0IDMuMjYxLS43NTkuMjMzLjA5NS0uNDg4LjY3My0xLjgzNi4yMDMtLjQ1OC40MTYtMS4xMDcuNjA3LTEuODk3LjM4Mi0xLjU3Ni42NTItMy42MDUuNjExLTUuNThhNS4yNCA1LjI0IDAgMCAxIC4wMjUtLjcxNWMuMDEyLS4wOTUuMDMyLS4yMjMuMDc1LS4zNTNhMS4yIDEuMiAwIDAgMSAuMTMzLS4yNzUgMS4wMyAxLjAzIDAgMCAxIDEuMzYxLS4zNDdjLjE4OS4xMDMuMzAxLjI0LjM1My4zMS4xMDYuMTQ0LjE2NS4yOTQuMTk1LjM3OC4wNjkuMTkxLjEyNS40MzMuMTczLjY5Ni4wODguNDg1LjE4OS45NDcuMzI2IDEuMzIxLjA2OC4xODUuMTM1LjMyMi4xOTYuNDE4YS43ODUuNzg1IDAgMCAwIC4wNjkuMDkxLjg1Mi44NTIgMCAwIDAgLjE5MS0uMDljLjMzNi0uMTk3Ljg2My0uNjcxIDEuNjA3LTEuNjUzLjA3OS0uMTA1LjE2MS0uMjA2LjI0Ny0uMjk1YTEuNTcgMS41NyAwIDAgMSAuMzY4LS4yOTFjLjE1NS0uMDg1LjU2LS4yNTQgMS4wMTEtLjAyOC40MS4yMDUuNTMxLjU4MS41NjUuNzA2LjA3NC4yNy4wNS41NjUuMDM3LjcyMi0uMDE5LjIwMy0uMDUyLjQzOS0uMDkuNjgxbC0uMDgxLjUwNWMtLjE1MS45MjEtLjMyNiAxLjk5NS0uMzEgMi45MjIuMDEuNTU0LjA4OS45MjYuMTk3IDEuMTM3LjA3NC4xNDQuMTMuMTc4LjI2NS4xOS4yMzEuMDIuNzItLjA1NiAxLjU4Ny0uNTE4Ljg0NS0uNDUxIDEuOTQ3LTEuMjEzIDMuMzY3LTIuMzk5LjIyLS4xODQuNDctLjM0OS43NDEtLjQ1MS4yNTQtLjA5NC42NjYtLjE4MiAxLjA5LjAxLjQ3Ny4yMTYuNjc4LjY0OS43MzIuOTk5LjA1MS4zMjctLjAwNi42NTItLjA4OC45MzEtLjQ3NCAxLjYwNi0xLjE5NiA0LjA2My0uNjcxIDYuNDcxLjQ5NiAyLjI3OSAyLjE2OCA0LjczIDcuMDE3IDYuMjEzLjQwNS4xMjQuODE0LjM4OSAxLjA2Ni42OTYuMDY4LjA4NC4xNTcuMjA5LjIyMS4zNzFhMS4wOTMgMS4wOTMgMCAwIDEtLjYyNiAxLjQzNWMtLjIwNi4wOC0uNC4wODgtLjUyOC4wODRhMTIuMjc1IDEyLjI3NSAwIDAgMS0xLjEyMS0uMTE1Yy0yLjA2LS4yNjgtNS45Ni41OTYtOS4xMzcgMi4zOTYtMS4xOTUuNjc3LTEuMzUuNjE3LS4zNTMtLjMyNiAxLjYyOS0xLjU0MSA0LjUwOS0zLjc0NyA3LjY4LTMuODY0LTQuMzQ1LTEuMDItNS42ODMtNC4yMTUtNi4xNzMtNi40NjQtLjQ3My0yLjE3LS4xMjQtNC4zMTguMjc3LTUuOTIyLS45NzIuNzQ4LTEuODE3IDEuMzA3LTIuNTU0IDEuNy0uOTkyLjUyOS0xLjg5OC44MTYtMi43MDIuNzQ1LS45MDEtLjA3OS0xLjUyMS0uNTktMS44Ny0xLjI3MS0uMzE1LS42MTYtLjQwNS0xLjM1MS0uNDE3LTIuMDEzLS4wMS0uNjE0LjA0OC0xLjI3OC4xMjctMS45MDFhNC4zMDUgNC4zMDUgMCAwIDEtLjQ3LjMyM2MtLjcyMy40MjQtMS41MzEuNTMyLTIuMjQ2LjA3OWwtLjAyOC0uMDE4em0xLjAyOS0xLjY5MXMuMDA5LS4wMDMuMDIyIDBjLS4wMTYuMDAzLS4wMjIgMC0uMDIyIDB6IiBmaWxsPSIjRkY2MTYxIi8+PHBhdGggZD0iTTI1MC42NDggMjIzLjVsLTcgOS41TTMxMS42NDggMjE4bC03IDkuNU0yNTIuNjQ4IDIzMGwtNyA5LjVNMzEzLjY0OCAyMjQuNWwtNyA5LjUiIHN0cm9rZT0iIzFGMjkyRSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48ZGVmcz48bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfNzg3OF8xNTIxNyIgeDE9IjI3My41IiB5MT0iMjU0LjUiIHgyPSIyNjYuMDk3IiB5Mj0iMjkxLjMwNCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiNmZmYiLz48c3RvcCBvZmZzZXQ9Ii43MzEiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjgiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iMCIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJwYWludDFfbGluZWFyXzc4NzhfMTUyMTciIHgxPSIyMTAuMTUyIiB5MT0iMTI1IiB4Mj0iMzc3LjE1MiIgeTI9IjI4OSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiNFREY4RkYiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNGQUVGRkYiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQyX2xpbmVhcl83ODc4XzE1MjE3IiB4MT0iMTg4IiB5MT0iMjU2IiB4Mj0iMTg2LjkyNiIgeTI9IjI5Mi41MjciIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj48c3RvcCBzdG9wLWNvbG9yPSIjZmZmIi8+PHN0b3Agb2Zmc2V0PSIuNjc2IiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9Ii44Ii8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmZmIiBzdG9wLW9wYWNpdHk9IjAiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=",q="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='320' fill='none'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill='url(%23b)' d='M200 158.5c-54.4-5.2-59.3 54.2-55 84.5h308c22.8-46-17.7-69.2-44-73.5 49.3-15.5 19.5-88-28.5-116C258.2-17.8 268 165 200 158.5Z' opacity='.6'/%3E%3Cpath stroke='%231F292E' stroke-width='2' d='M145 242h310'/%3E%3Cpath fill='%23fff' d='M195.3 213c-7.5-17.5-7.5-20-7.5-20l38.8-39.8c15.9 23.6 45.6 71.5 37.6 74.6a46 46 0 0 0-17.5 13.4h-63.1s19.2-10.5 11.7-28.1Z'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='10' d='M378 221.6c-29.5-66-56.2-32.1-109.5-78.5-52.2-34.8-99.8-36-117.2-16-38.6 44.2 90.6 76.6 34.4 112.9'/%3E%3Cpath fill='%23fff' d='M306 149.4c-12.4 6.4-15.5 16.6-15.5 21 0 16.7 14 13.4 21 9.6l14.1 15.5a67.3 67.3 0 0 1-37.1 22.6 97.9 97.9 0 0 0-42.2 23l-26-23 12.2-35.2-26-9.2c15.5-15 27.6-23.9 40.2-54.9 2.9-11.3 10.7-33 20-32.6 9.4.3 5.3 20.5 2.1 30.5 10.5-4.1 13.4 4.7 15.5 3.8 7-3 13.9 2.5 15.8 5.9 5-3 14.8-4.3 18.8 0 10.4 11 11.2 29.8 3.8 35.2 0 0-13.7-5.8-14.6-6.7-.4-.4-1.1-.4-2.1-5.5Z'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M306 149c1.5 3.3 4.5 10.5 8.6 13 5.3 3.4 17.6-1.5 12.1-22.5-5.5-21-22.7-23.4-49.4 4.5'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M300.4 125.4c-2.7-2.3-6.8-7.8-16-5m-23.2 17.2c10.2-10.7 17.7-15.5 23.3-17.2m0 0c-2.3-3.2-7.7-6.4-15.7-3.9m-20 15.3c7.8-9 14.5-13.5 20-15.3m0 0c2.8-7 8.3-26-2.3-30.4-15.1-6.3-13.2 35.3-36 62.4a561.6 561.6 0 0 1-43.1 45'/%3E%3Cpath fill='%23fff' d='m330.3 165.8-5.9.5-5.8 6-7.5 7.4-11.5 6.9-11.5 6.9 28.7 11.6 11-11.5 6.8-13.5-.2-10.7-4-3.6Z'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M310.8 146.3c-7.5 3.2-24.2 14.2-19 29 3.8 10.8 16.5 10.6 26.5-3.1 10-13.8 20.8-3.9 15.5 10.2-12 31.4-47 34.1-60 40.4-9.7 4.7-16.6 8.7-27.8 18.7'/%3E%3Ccircle cx='383.5' cy='234.5' r='17.5' fill='%23fff' stroke='%231F292E' stroke-width='2'/%3E%3Ccircle cx='381.5' cy='229.5' r='18.5' fill='%231684FC'/%3E%3Cpath fill='%23fff' stroke='%231F292E' stroke-linejoin='round' stroke-width='2' d='M329.7 261.3a1 1 0 0 1 .7-.3h139a1 1 0 0 1 .7 1.7l-17.8 16a1 1 0 0 1-.7.3h-139a1 1 0 0 1-.7-1.7l17.8-16Z'/%3E%3Cpath fill='%23fff' stroke='%231F292E' stroke-linejoin='round' stroke-width='2' d='M313.7 285.5a1 1 0 0 0 .9.5h139.7a1 1 0 0 0 .8-1.5l-2.8-5a1 1 0 0 0-.9-.5H311.7a1 1 0 0 0-.8 1.5l2.8 5ZM472 269.1a1 1 0 0 1-.3.7L457 285a1 1 0 0 1-1.6-.2l-2.9-5.1a1 1 0 0 1 .2-1.2l17.7-16a1 1 0 0 1 1.7.7v5.9Z'/%3E%3Cpath stroke='%231F292E' stroke-linecap='square' stroke-linejoin='round' stroke-width='4' d='M466 277.5c16.3 6.3 39.2 21.6 0 32-39.2 10.4-45 32.7-43 42.5'/%3E%3Crect width='2' height='6' x='342' y='266.9' fill='%231F292E' rx='1' transform='rotate(-27 342 267)'/%3E%3Crect width='2' height='6' x='392' y='266.9' fill='%231F292E' rx='1' transform='rotate(-27 392 267)'/%3E%3Crect width='2' height='6' x='429.9' y='267.1' fill='%231F292E' rx='1' transform='rotate(-31 429.9 267)'/%3E%3Crect width='2' height='6' x='351.9' y='266.1' fill='%231F292E' rx='1' transform='rotate(31 352 266.1)'/%3E%3Crect width='2' height='6' x='402.2' y='266.2' fill='%231F292E' rx='1' transform='rotate(36 402.2 266.2)'/%3E%3Crect width='2' height='6' x='440.6' y='266.3' fill='%231F292E' rx='1' transform='rotate(43 440.6 266.3)'/%3E%3Crect width='4' height='10' x='374' y='225' fill='%231F292E' rx='2'/%3E%3Crect width='4' height='10' x='385' y='225' fill='%231F292E' rx='2'/%3E%3Cpath fill='%23FF6161' fill-rule='evenodd' d='M406 190.4Zm1.6 3.5a24 24 0 0 1-.5 2.9c-.2.9-1.7 2.5-3.2 3.2-.8.3 0-.5.6-1.8.2-.5.5-1.1.6-1.9a22.7 22.7 0 0 0 .7-5.6 5 5 0 0 1 0-1l.2-.3c0-.1.2-.3.5-.4.3-.2.6 0 .9 0l.3.3.2.4.2.7a8.4 8.4 0 0 0 .5 1.8 1 1 0 0 0 .3 0 9 9 0 0 0 1.6-1.7 3.3 3.3 0 0 1 .2-.3l.4-.3a1 1 0 0 1 1 0c.4.2.5.6.6.7v.7l-.1.7v.5c-.2 1-.4 2-.4 3l.2 1c0 .2.1.2.3.2.2 0 .7 0 1.6-.5.8-.4 2-1.2 3.3-2.4l.8-.4c.2-.1.6-.2 1 0 .5.2.7.6.8 1l-.1 1c-.5 1.5-1.2 4-.7 6.4.5 2.3 2.2 4.7 7 6.2.5.1.9.4 1.1.7l.2.4c0 .1.2.4 0 .8a1 1 0 0 1-.6.6h-.5a12.7 12.7 0 0 1-1.1 0c-2.1-.3-6 .6-9.2 2.4-1.2.6-1.3.6-.3-.4 1.6-1.5 4.5-3.7 7.6-3.8a7.9 7.9 0 0 1-6.1-6.5c-.5-2.2-.1-4.3.3-5.9l-2.6 1.7a5 5 0 0 1-2.7.7c-.9 0-1.5-.5-1.9-1.2-.3-.6-.4-1.4-.4-2l.1-2a4 4 0 0 1-.4.4c-.8.4-1.6.5-2.3 0Zm1-1.7Z' clip-rule='evenodd'/%3E%3C/g%3E%3Cdefs%3E%3ClinearGradient id='b' x1='426' x2='259' y1='125' y2='289' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23EDF8FF'/%3E%3Cstop offset='1' stop-color='%23FAEFFF'/%3E%3C/linearGradient%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h600v320H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E",W="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='320' fill='none'%3E%3Cpath fill='url(%23a)' d='M332.3 78.2a71 71 0 0 0-110-27.1c-35.6 37.9-27 57.2-37.5 90.3-13 41.3-45.8 28-45.8 101 0 57.5 111.8 79 162.3 27.2 31-31.7 72.1-13.8 118-27.2 66.1-19 52.2-130-19.4-130-53.9 0-61.5-17-67.6-34.2Z' opacity='.6'/%3E%3Cpath stroke='%231F292E' stroke-width='2' d='M80 242h440'/%3E%3Cpath fill='%231F292E' stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M156.8 260.3V134h140.5l18.5 120.7-159 5.6Z'/%3E%3Cpath fill='%23fff' stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m139 134.4 17.8-.4v126.3L124 241l15-106.5Z'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m150.7 134.9-2.6 115m-3.8-115.5-4.8 65.1m-3 20.7-3 25.9m23.3-96.6 142.2-.8'/%3E%3Ccircle cx='165' cy='141.3' r='2.2' fill='%23FF6161'/%3E%3Ccircle cx='172.7' cy='141.3' r='2.2' fill='%23FFD361'/%3E%3Ccircle cx='180.5' cy='141.3' r='2.2' fill='%237BECB6'/%3E%3Cpath fill='%23fff' stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m301.8 244.2-107 25.4a2 2 0 0 1-1.7-.3c-38.9-29-36-119.8-36-119.8l142.4-.8s7 37.9 23.5 49.4c1 .7.5 3.8-.6 3.9l-5 .4a1 1 0 0 0-.8 1.5l3.2 5.9a1 1 0 0 1-1.2 1.4l-11.7-4a1 1 0 0 0-1.3 1.4l1.8 3.6a1 1 0 0 1-1 1.4l-19-1.3c-1 0-1.5 1.2-.7 1.8l10.7 7.8a1 1 0 0 1 0 1.7l-3.4 2a1 1 0 0 0-.3 1.5l3.8 4.7a1 1 0 0 1-.6 1.7l-7.2 1.2a1 1 0 0 0-.2 2l12.5 5.6a1 1 0 0 1-.2 1.9Z'/%3E%3Cpath fill='%23F33' d='m226.1 198.2-1-13.2a.3.3 0 0 1 .2-.3l7-.5a.3.3 0 0 1 .3.2l1 13.2a.3.3 0 0 1-.2.3l-7 .6a.3.3 0 0 1-.3-.3Zm12.3-1-1-13.2a.3.3 0 0 1 .2-.3l7-.5a.3.3 0 0 1 .3.2l1 13.2a.3.3 0 0 1-.2.3l-7 .5a.3.3 0 0 1-.3-.2Zm19.7-15.2a.3.3 0 0 1 .3.3l.9 10.4v3a22.2 22.2 0 0 1-11.2 18.1.3.3 0 0 1-.4-.1l-3.4-6.1a.3.3 0 0 1 .2-.4c4.7-2.8 7.7-8 7.2-13.9l-.8-10.4a.3.3 0 0 1 .2-.3l7-.6Z'/%3E%3Cpath fill='%23fff' d='m378.8 208.7-6.5-1.8c-6.5-3.2-19.5-8.3-19.5-3.5 0 6.1.9 24 12.6 40a121.7 121.7 0 0 1 16.9 35.1l79-28.2v-33.8s17.7-46 17.7-53.5-14-5-20.5 4.5-7 13-7 13c-5.5-9-11.5-8.2-15-6.6-3.8-5.2-13.1-8.2-17.3-9-4.2-9.8-12.2-11-15.6-10.5l-15.7 3-4.3 30.9 17.4-7.9c1.7 5.4 3.9 18-1.3 25.2-5.2 7.3-11.2 8.3-13.5 7.8l-7.4-4.7Z'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M400.7 181.2c-3.5 1.6-10.7 5.1-15.7 4.3-6.3-1-12.7-13.1 5.9-25.9s33.7-2.9 35.7 37.2'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M421 166.5c3.7 0 10.7-1.5 16 6.8m6.5 29.4c-.7-15.3-3.3-24.2-6.5-29.4m0 0c4-1 10.3.2 14.9 7.6m5.3 25.7c0-12.5-2.2-20.6-5.3-25.7m0 0c2.6-7.4 11.2-26 22.4-22.2 16.2 5.3-13.7 36.6-14.1 73.3a571 571 0 0 0 4.4 73.8'/%3E%3Cpath fill='%23fff' stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m383.9 206-51.3-27.4c-.9-.5-.6-1.9.5-2l18.9-.6a1 1 0 0 0 .7-1.6l-6.9-9.9a1 1 0 0 1 1-1.5l8.3 2a1 1 0 0 0 1.2-1.1l-1.4-7.6a1 1 0 0 1 1.6-1l10.6 8.4a1 1 0 0 0 1.6-1l-5.1-18c-.3-1.1 1.1-1.8 1.8-1l8 11a1 1 0 0 0 1.8-.4l3.8-12a1 1 0 0 1 1.7-.4l5 4.9a1 1 0 0 0 1.4-.1l9.4-11.2c.6-.8 2-.2 1.7.8l-12.9 69a1 1 0 0 1-1.4.8Z'/%3E%3Cpath fill='%23fff' d='m370.1 177.8 4.4 4.4.4 8.7.9 10.8L380 215l4.4 13.2-30.4-10.4-.9-16.5 4-15.2 7.3-8.3h5.6Z'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M398.7 175.8c3.7 7.6 9.4 27.5-4.9 35.6-10.3 6-20-2.9-18.6-20.5 1.5-17.6-13.6-17-19-2.4-12 32.7 13.7 58.6 19.5 72.3 5.9 13.7 8.8 23 10.8 51.3'/%3E%3Cpath fill='%23FF6161' fill-rule='evenodd' d='M410 106.7Zm.9 3.8a24.1 24.1 0 0 1-1 2.7c-.3.8-2 2.2-3.7 2.7-.8 0 .2-.5 1-1.7l.9-1.8a22.7 22.7 0 0 0 1.5-5.4 5.4 5.4 0 0 1 .3-1l.2-.3.6-.3c.3 0 .6 0 .8.2.2.1.3.3.3.4l.1.4v.7a8.3 8.3 0 0 0 .3 1.8 1 1 0 0 0 .2 0c.4-.1 1-.5 2-1.3l.2-.3.4-.2a1 1 0 0 1 1 .2c.4.2.4.6.5.7l-.1.8a10.7 10.7 0 0 1-.4 1.1c-.3.9-.7 2-.8 2.8v1.2l.2.2 1.7-.2c.9-.3 2.1-.9 3.7-1.8.3-.2.5-.3.8-.3.3 0 .7-.1 1 .2.5.3.6.7.6 1 0 .4 0 .7-.2 1-.7 1.5-1.9 3.8-1.8 6.2.1 2.4 1.4 5 5.9 7.3.4.2.7.6 1 1v.3a1 1 0 0 1-.8 1.3 1.4 1.4 0 0 1-.5 0l-1.1-.3c-2-.6-6-.4-9.4.8-1.3.5-1.4.4-.3-.4 1.9-1.2 5-2.9 8.2-2.5a7.9 7.9 0 0 1-5-7.4c0-2.2.6-4.3 1.3-5.8-1 .6-2 1-2.8 1.3a5 5 0 0 1-2.8.2 2 2 0 0 1-1.6-1.5c-.2-.7-.2-1.4 0-2 0-.7.2-1.3.4-2a4.3 4.3 0 0 1-.5.3c-.8.3-1.6.3-2.3-.3Zm1.3-1.5Z' clip-rule='evenodd'/%3E%3Cdefs%3E%3ClinearGradient id='a' x1='427.5' x2='219.7' y1='147.8' y2='310.6' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23EDF8FF'/%3E%3Cstop offset='1' stop-color='%23FAEFFF'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E",ae="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='320' fill='none'%3E%3Cpath fill='url(%23a)' d='M332.3 78.2a71 71 0 0 0-110-27.1c-35.6 37.9-27 57.2-37.5 90.3-13 41.3-45.8 28-45.8 101 0 57.5 111.8 79 162.3 27.2 31-31.7 72.1-13.8 118-27.2 66.1-19 52.2-130-19.4-130-53.9 0-61.5-17-67.6-34.2Z' opacity='.6'/%3E%3Cpath stroke='%231F292E' stroke-width='2' d='M80 242h440'/%3E%3Cpath fill='%231F292E' stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M156.8 260.3V134h140.5l18.5 120.7-159 5.6Z'/%3E%3Cpath fill='%23fff' stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m139 134.4 17.8-.4v126.3L124 241l15-106.5Z'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m150.7 134.9-2.6 115m-3.8-115.5-4.8 65.1m-3 20.7-3 25.9m23.3-96.6 142.2-.8'/%3E%3Cpath fill='%23FF6161' d='M165 143.5a2.2 2.2 0 1 0 0-4.3 2.2 2.2 0 0 0 0 4.3Z'/%3E%3Cpath fill='%23FFD361' d='M172.7 143.5a2.2 2.2 0 1 0 0-4.3 2.2 2.2 0 0 0 0 4.3Z'/%3E%3Cpath fill='%237BECB6' d='M180.5 143.5a2.2 2.2 0 1 0 0-4.3 2.2 2.2 0 0 0 0 4.3Z'/%3E%3Cpath fill='%23fff' stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m301.6 241.5-107 25.4a2 2 0 0 1-1.6-.3c-39-29-36-119.7-36-119.7l142.3-.9s7 37.9 23.6 49.5c1 .6.5 3.7-.7 3.8l-5 .5a1 1 0 0 0-.9 1l.1.4 3.2 6a1 1 0 0 1-1.2 1.3l-11.7-4a1 1 0 0 0-1.2 1.4l1.7 3.7a1 1 0 0 1-1 1.4l-19-1.4a1 1 0 0 0-.6 1.8l10.7 7.9a1 1 0 0 1-.1 1.6l-3.4 2.1a1 1 0 0 0-.4.7 1 1 0 0 0 .2.8l3.8 4.7a1 1 0 0 1-.6 1.6l-7.2 1.3a1 1 0 0 0-.3 1.9l12.5 5.6a1 1 0 0 1-.2 2Z'/%3E%3Cpath fill='%23fff' d='m378.8 208.7-6.5-1.8c-6.5-3.2-19.5-8.3-19.5-3.5 0 6.1.9 24 12.6 40a121.7 121.7 0 0 1 16.9 35.1l79-28.2v-33.8s17.7-46 17.7-53.5-14-5-20.5 4.5-7 13-7 13c-5.5-9-11.5-8.2-15-6.6-3.8-5.2-13.1-8.2-17.3-9-4.2-9.8-12.2-11-15.6-10.5l-15.7 3-4.3 30.9 17.4-7.9c1.7 5.4 3.9 18-1.3 25.2-5.2 7.3-11.2 8.3-13.5 7.8l-7.4-4.7Z'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M400.7 181.2c-3.5 1.6-10.7 5.1-15.7 4.3-6.3-1-12.7-13.1 5.9-25.9 18.5-12.7 33.7-2.9 35.7 37.2'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M421 166.5c3.7 0 10.7-1.5 16 6.8m0 0c3.2 5.2 5.8 14 6.5 29.4m-6.5-29.4c4-1 10.3.2 14.9 7.6m0 0a49.3 49.3 0 0 1 5.3 25.7m-5.3-25.7c2.6-7.4 11.2-26 22.4-22.2 16.2 5.3-13.7 36.6-14.1 73.3a571 571 0 0 0 4.4 73.8'/%3E%3Cpath fill='%23fff' stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m383.9 206-51.3-27.4c-.9-.5-.6-1.9.5-2l18.9-.6a1 1 0 0 0 1-1.1c0-.2-.2-.4-.3-.5l-6.9-9.9a1 1 0 0 1 1-1.5l8.3 2a1 1 0 0 0 1.2-1.1l-1.4-7.6a1 1 0 0 1 1.6-1l10.6 8.4a1 1 0 0 0 1.6-1l-5.1-18c-.3-1.1 1.1-1.8 1.8-1l8 11a1 1 0 0 0 1.8-.4l3.8-12a1 1 0 0 1 1.7-.4l5 4.9a1 1 0 0 0 1.1.1l.3-.2 9.4-11.2c.6-.8 2-.2 1.7.8l-12.9 69a1 1 0 0 1-.5.8 1 1 0 0 1-1 0Z'/%3E%3Cpath fill='%23fff' d='m370.1 177.8 4.4 4.4.4 8.7.9 10.8L380 215l4.4 13.2-30.4-10.4-.9-16.5 4-15.2 7.3-8.3h5.6Z'/%3E%3Cpath stroke='%231F292E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M398.7 175.8c3.7 7.6 9.4 27.5-4.9 35.6-10.3 6-20-2.9-18.6-20.5 1.5-17.6-13.6-17-19-2.4-12 32.7 13.7 58.6 19.5 72.3 5.9 13.7 8.8 23 10.8 51.3'/%3E%3Cpath fill='%23FF6161' fill-rule='evenodd' d='m410.9 110.5-1 2.7c-.3.8-2 2.2-3.7 2.7-.8 0 .2-.5 1-1.7l.9-1.8a22.7 22.7 0 0 0 1.7-6.1l.1-.3.2-.3.6-.3c.3 0 .6 0 .8.2.2.1.3.3.3.4l.1.4v.7a8.3 8.3 0 0 0 .3 1.8h.2c.4-.1 1-.5 2-1.3l.2-.3.4-.2a1 1 0 0 1 1 .2c.4.2.4.6.5.7l-.1.8a10.7 10.7 0 0 1-.4 1.1c-.3.9-.7 2-.8 2.8v1.2l.2.2 1.7-.2c.9-.3 2.1-.9 3.7-1.8.3-.2.5-.3.8-.3.3 0 .7-.1 1 .2.5.3.6.7.6 1 0 .4 0 .7-.2 1-.7 1.5-1.9 3.8-1.8 6.2.1 2.4 1.4 5 5.9 7.3.4.2.7.6 1 1v.3a1 1 0 0 1-.8 1.3h-.5l-1.1-.3c-2-.6-6-.4-9.4.8-1.3.5-1.4.4-.3-.4 1.9-1.2 5-2.9 8.2-2.5a7.9 7.9 0 0 1-5-7.4c0-2.2.6-4.3 1.3-5.8-1 .6-2 1-2.8 1.3a5 5 0 0 1-2.8.2 2 2 0 0 1-1.6-1.5c-.2-.7-.2-1.4 0-2 0-.7.2-1.3.4-2l-.5.3c-.8.3-1.6.3-2.3-.3Zm1.3-1.5Z' clip-rule='evenodd'/%3E%3Cmask id='b' fill='%23fff'%3E%3Cpath fill-rule='evenodd' d='m228.2 205.7-1.5-22.6-6.6.1 1.5 22.7 6.6-.2Zm-.8-23.4-8.1.2 1.6 24.2 8-.2-1.5-24.2Z' clip-rule='evenodd'/%3E%3C/mask%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='m228.2 205.7-1.5-22.6-6.6.1 1.5 22.7 6.6-.2Zm-.8-23.4-8.1.2 1.6 24.2 8-.2-1.5-24.2Z' clip-rule='evenodd'/%3E%3Cpath fill='%23000' d='M226.7 183h1.1v-1h-1.2v1.2Zm1.5 22.7v1.2h1.2v-1.2h-1.2Zm-8-22.5-.1-1.1h-1.2v1.2h1.2Zm1.4 22.7h-1.1v1.2h1.2v-1.2Zm5.8-23.6h1.2l-.1-1.2h-1.2v1.2Zm-8.1.2v-1.2H218l.1 1.2h1.2Zm1.6 24.2h-1.2l.1 1.2h1.2v-1.2Zm8-.2.2 1.2h1.1v-1.3H229Zm-3.4-23.4 1.5 22.7 2.3-.1-1.5-22.7-2.3.1Zm-5.3 1.3 6.5-.2-.1-2.3-6.5.2.1 2.3Zm2.6 21.5-1.5-22.7H219l1.5 22.7h2.3Zm5.3-1.3-6.5.1.1 2.4 6.5-.2-.1-2.3Zm-1.9-22.3 1.6 24.2h2.4l-1.6-24.3-2.4.1Zm-6.8 1.4 8-.3v-2.3l-8.2.2.2 2.4Zm2.7 23-1.6-24.2H218l1.6 24.2h2.4Zm6.8-1.4-8 .2v2.4l8.2-.2-.2-2.4Z' mask='url(%23b)'/%3E%3Cpath fill='%232E03A0' d='M225.2 210.6a4.2 4.2 0 0 1-4.3-4c-.1-2.1 1.5-4 3.8-4a4.3 4.3 0 0 1 4.3 3.9 4 4 0 0 1-3.8 4.1Z'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M221.7 206.7a3.4 3.4 0 0 0 3.5 3.1c1.8 0 3.1-1.5 3-3.3a3.4 3.4 0 0 0-3.5-3.2 3.1 3.1 0 0 0-3 3.4Zm-.8 0c.2 2.2 2 4 4.3 4a4 4 0 0 0 3.8-4.2c-.2-2.3-2-4-4.3-4-2.3.1-4 2-3.8 4.2Z' clip-rule='evenodd'/%3E%3Cpath fill='%23fff' d='m226.7 180.2 13.5 20.7-6.7 4.2-13.6-20.6 6.8-4.3Z'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='m239.1 200.6-12.6-19.3-5.5 3.4 12.7 19.3 5.4-3.4Zm-12.4-20.4-6.8 4.3 13.6 20.6 6.7-4.2-13.5-20.7Z' clip-rule='evenodd'/%3E%3Cpath fill='%23fff' d='M223.6 186.4a4.2 4.2 0 0 1-4.3-4c-.1-2.1 1.5-4 3.8-4a4.2 4.2 0 0 1 4.3 3.9 4 4 0 0 1-3.8 4.1Z'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M220 182.5a3.4 3.4 0 0 0 3.6 3.2c1.8 0 3.1-1.6 3-3.4a3.4 3.4 0 0 0-3.5-3.2 3.1 3.1 0 0 0-3 3.4Zm-.7 0c.2 2.2 2 4 4.3 4a4 4 0 0 0 3.8-4.2c-.2-2.3-2-4-4.3-4-2.3.1-4 2-3.8 4.2Z' clip-rule='evenodd'/%3E%3Cpath fill='%2313C1FF' d='m243.5 181.9 1.6 24.2 8.1-.3-1.6-24.2-8 .3Z'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='m245.8 205.3-1.5-22.7 6.6-.2 1.5 22.7-6.6.2Zm-2.3-23.4 8.1-.3 1.6 24.2-8 .3-1.7-24.2Z' clip-rule='evenodd'/%3E%3Cpath fill='%2306CF13' d='M249.4 210c2.3 0 4-2 3.8-4.2-.1-2.2-2-4-4.3-3.9-2.2 0-4 2-3.8 4.2.2 2.2 2 4 4.3 3.9Z'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M252.4 205.9a3.1 3.1 0 0 1-3 3.3 3.4 3.4 0 0 1-3.5-3.2 3.1 3.1 0 0 1 3-3.3c1.8 0 3.4 1.4 3.5 3.2Zm.8 0c.1 2.2-1.5 4-3.8 4a4.2 4.2 0 0 1-4.3-3.8 4 4 0 0 1 3.8-4.2c2.2 0 4.2 1.7 4.3 4Z' clip-rule='evenodd'/%3E%3Cpath fill='%23FA52D6' d='M244 179.8 233.2 201l7.3 3.8 10.7-21.3-7.2-3.8Z'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='m234.3 200.8 10-20 5.9 3.1-10 20-6-3.1Zm9.7-21 7.2 3.8-10.7 21.3-7.3-3.8 10.8-21.3Z' clip-rule='evenodd'/%3E%3Cpath fill='red' d='M235 206.5c2 1.1 4.5.4 5.5-1.6s.1-4.4-1.9-5.5a4 4 0 0 0-5.4 1.7 4 4 0 0 0 1.9 5.4Z'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M239.8 204.5a3.2 3.2 0 0 1-4.4 1.4 3.3 3.3 0 0 1-1.5-4.5 3.2 3.2 0 0 1 4.4-1.3c1.6.9 2.3 2.9 1.5 4.4Zm.7.4a4 4 0 0 1-5.4 1.6c-2-1-2.9-3.5-1.9-5.4a4 4 0 0 1 5.4-1.7c2 1.1 2.9 3.6 1.9 5.5Z' clip-rule='evenodd'/%3E%3Cpath fill='%23FFC400' d='M247.8 185.8c2.3 0 4-2 3.8-4.2-.2-2.2-2-4-4.3-3.9-2.2 0-4 2-3.8 4.2.2 2.2 2 4 4.3 3.9Z'/%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M250.8 181.7a3.1 3.1 0 0 1-3 3.3 3.4 3.4 0 0 1-3.5-3.2 3.1 3.1 0 0 1 3-3.3c1.9 0 3.4 1.3 3.5 3.2Zm.8 0c.1 2.2-1.5 4-3.8 4a4.2 4.2 0 0 1-4.3-3.8 4 4 0 0 1 3.8-4.2c2.2 0 4.1 1.7 4.3 4Z' clip-rule='evenodd'/%3E%3Cdefs%3E%3ClinearGradient id='a' x1='427.5' x2='219.7' y1='147.8' y2='310.6' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%23EDF8FF'/%3E%3Cstop offset='1' stop-color='%23FAEFFF'/%3E%3C/linearGradient%3E%3C/defs%3E%3C/svg%3E";function Y(y){const{className:N,source:R,rotate:S,width:B,height:U,onClick:ie}=y,L={msTransform:"rotate("+S+"deg)",transform:"rotate("+S+"deg)",width:B,height:U};return(0,H.jsx)("img",{className:N,src:R,style:L,onClick:ie})}Y.propTypes={className:f().string,source:f().string.isRequired,width:f().number,height:f().number,rotate:f().number,onClick:f().func};const J=Y,P=403,K=404,V=[500,501,502,503,504,505],l="link_expired";var C=n(80396);function b(y,N,R){return(N=x(N))in y?Object.defineProperty(y,N,{value:R,enumerable:!0,configurable:!0,writable:!0}):y[N]=R,y}function x(y){var N=d(y,"string");return typeof N=="symbol"?N:N+""}function d(y,N){if(typeof y!="object"||!y)return y;var R=y[Symbol.toPrimitive];if(R!==void 0){var S=R.call(y,N||"default");if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return(N==="string"?String:Number)(y)}class g extends M.PureComponent{constructor(){super(...arguments),b(this,"typeText",{title_403:{"zh-CN":"\u5BF9\u4E0D\u8D77\uFF0C\u4F60\u6CA1\u6709\u8BBF\u95EE\u6743\u9650",en:"Permission denied",jp:""},des_403_0:{"zh-CN":(0,H.jsx)(H.Fragment,{children:(0,H.jsxs)("p",{className:"proposal",children:["\u5F53\u524D\u8D26\u53F7\u662F ",(0,H.jsx)("span",{className:"count-detail",children:this.props.account}),"\uFF0C\u6CA1\u6709\u8BBF\u95EE\u8BE5\u6587\u6863\u7684\u6743\u9650"]})}),en:(0,H.jsx)(H.Fragment,{children:(0,H.jsxs)("p",{className:"proposal",children:["Current account ",(0,H.jsx)("span",{className:"count-detail",children:this.props.account}),", permission denied."]})}),jp:""},des_403_1:{"zh-CN":(0,H.jsx)(H.Fragment,{children:(0,H.jsxs)("p",{className:"proposal",children:["\u5F53\u524D\u8D26\u53F7\u662F ",(0,H.jsx)("span",{className:"count-detail",children:this.props.account}),"\uFF0C\u6CA1\u6709\u8BBF\u95EE\u8BE5\u6587\u6863\u7684\u6743\u9650\uFF0C\u8BF7\u8054\u7CFB\u5206\u4EAB\u8005\u4FEE\u6539\u8BBF\u95EE\u6743\u9650"]})}),en:(0,H.jsx)(H.Fragment,{children:(0,H.jsxs)("p",{className:"proposal",children:["Current account ",(0,H.jsx)("span",{className:"count-detail",children:this.props.account}),", permission denied. Please contact administrator."]})}),jp:""},des_403_2:{"zh-CN":"\u60A8\u8FD8\u6CA1\u6709\u767B\u5F55\uFF0C\u8BF7\u767B\u5F55\u540E\u5C1D\u8BD5\u8BBF\u95EE",en:"You are not logged in. Please log in and try again.",jp:""},des_403_3:{"zh-CN":"\u5F53\u524D\u8D26\u53F7\u662F "+this.props.account+"\uFF0C\u6587\u4EF6\u6570\u8D85\u9650\uFF0C\u5347\u7EA7\u540E\u5373\u53EF\u7F16\u8F91",en:"Current account "+this.props.account+", permission denied.",jp:""},des_403_4:{"zh-CN":"\u5F53\u524D\u8D26\u53F7\u662F "+this.props.account+"\uFF0C\u4F01\u4E1A\u7248\u8FC7\u671F\uFF0C\u5347\u7EA7\u540E\u5373\u53EF\u7F16\u8F91",en:"Current account "+this.props.account+", permission denied. Please contact administrator. ",jp:""},title_404:{"zh-CN":"\u5F88\u62B1\u6B49\uFF0C\u627E\u4E0D\u5230\u6587\u4EF6",en:"Sorry, there is no visible page.",jp:""},des_404:{"zh-CN":"\u6587\u4EF6\u53EF\u80FD\u5DF2\u88AB\u5220\u9664\uFF0C\u8BF7\u8054\u7CFB\u5206\u4EAB\u8005\u83B7\u53D6\u65B0\u7684\u5206\u4EAB\u94FE\u63A5",en:"The page may have been deleted. Please contact the sharer to inquire about the link status.",jp:""},title_link_expired:{"zh-CN":"\u5F88\u62B1\u6B49\uFF0C\u94FE\u63A5\u5931\u6548",en:"Sorry, the link is invalid",jp:""},des_link_expired:{"zh-CN":"\u94FE\u63A5\u53EF\u80FD\u5DF2\u88AB\u5220\u9664\u6216\u8005\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u8054\u7CFB\u5206\u4EAB\u8005\u83B7\u53D6\u6700\u65B0\u5206\u4EAB\u94FE\u63A5",en:"The link may have been deleted or set incorrectly. Please contact the sharer to obtain the latest link.",jp:""},title_5xx:{"zh-CN":"\u5F88\u62B1\u6B49\uFF0C\u65E0\u6CD5\u8FDE\u63A5\u58A8\u5200\u670D\u52A1\u5668",en:"Sorry, unable to connect to Mockitt server",jp:""},des_5xx:{"zh-CN":(0,H.jsxs)("div",{className:"proposal text-left",children:[(0,H.jsx)("p",{children:"\u8BF7\u5C1D\u8BD5\u4EE5\u4E0B\u65B9\u6CD5\uFF1A"}),(0,H.jsxs)("ul",{className:"text-list",children:[(0,H.jsx)("li",{children:"\u5982\u679C\u60A8\u5F00\u4E86\u7F51\u7EDC\u4EE3\u7406\uFF08VPN\uFF09\uFF0C\u5EFA\u8BAE\u60A8\u5B8C\u5168\u5173\u95ED\u540E\u518D\u5237\u65B0\u58A8\u5200"}),(0,H.jsx)("li",{children:"\u5982\u679C\u4E0D\u662F\u4E0A\u8FF0\u539F\u56E0\u5BFC\u81F4\u7684\uFF0C\u8BF7\u60A8\u8FDE\u63A5\u624B\u673A\u70ED\u70B9\u6216\u5207\u6362\u53E6\u4E00\u4E2A\u7F51\u7EDC"})]}),(0,H.jsx)("p",{children:"\u82E5\u4F9D\u65E7\u65E0\u6CD5\u6B63\u5E38\u8FDB\u5165\u58A8\u5200\uFF0C\u8BF7\u8054\u7CFB\u5BA2\u670D"})]}),en:(0,H.jsxs)("div",{className:"proposal text-left",children:[(0,H.jsx)("p",{children:"Please try the following methods:"}),(0,H.jsxs)("ul",{className:"text-list",children:[(0,H.jsx)("li",{children:"If your VPN is on, please turn it off then refresh Mockitt."}),(0,H.jsx)("li",{children:"If not, please switch to another network."})]}),(0,H.jsx)("p",{children:"If the problem stays, please contact support."})]}),jp:""},title_0:{"zh-CN":"\u5F88\u62B1\u6B49\uFF0C\u9875\u9762\u5D29\u6E83\u4E86",en:"Sorry, this page is corrupted",jp:""},des_0:{"zh-CN":"\u8BF7\u5C1D\u8BD5\u5237\u65B0\u9875\u9762\u6216\u5173\u95ED\u518D\u91CD\u65B0\u6253\u5F00\u58A8\u5200\uFF0C\u82E5\u65E0\u6CD5\u89E3\u51B3\u8BF7\u8054\u7CFB\u5BA2\u670D",en:"Please refresh this page or close this page and start Mockitt again. If the problem stays, please contact support.",jp:""},previewFile:{"zh-CN":"\u9884\u89C8\u6587\u4EF6",en:"Preview File",jp:""},goHome:{"zh-CN":"\u8FD4\u56DE\u58A8\u5200\u9996\u9875",en:"Back to Homepage",jp:""},reloadPage:{"zh-CN":"\u5237\u65B0\u9875\u9762",en:"Refresh this page",jp:""},contactUs:{"zh-CN":"\u8054\u7CFB\u5BA2\u670D",en:"Support",jp:""}}),b(this,"clickGoHome",()=>{let N="",{locale:R}=this.props;R==="zh-CN"?N="/":R==="jp"?N="https://mockitt.wondershare.jp":N="https://mockitt.wondershare.com",window.top!==window.self?window.top.location.replace(N):location.replace(N)}),b(this,"clickReloadPage",()=>{window.location.reload()}),b(this,"clickContactUs",()=>{let N="",{locale:R}=this.props;if(R==="zh-CN"){document.getElementById("mdOnlineSupport")&&document.getElementById("mdOnlineSupport").click();return}else R==="jp"?N="https://support.wondershare.jp":N="https://support.wondershare.com/product/mockitt.html";window.open(N)}),b(this,"getErrorConfig",()=>{const{errorType:N,primaryBtnText:R,primaryBtnClick:S,secondaryBtnText:B,secondaryBtnClick:U,locale:ie}=this.props,{typeText:L,clickGoHome:F,clickContactUs:X,clickReloadPage:le}=this;let oe,xe,Ee="",Oe=null,Be;const Ue={text:L.goHome[ie],click:F},Ve={text:L.reloadPage[ie],click:le},Ye={text:L.contactUs[ie],click:X};switch(!0){case N===P:oe=Ue.text,xe=Ue.click,Be=A;break;case N===K:oe=Ue.text,xe=Ue.click,Be=w;break;case N===l:oe=Ue.text,xe=Ue.click,Be=w;break;case V.includes(N):oe=Ve.text,xe=Ve.click,Ee=Ye.text,Oe=Ye.click,Be=q;break;default:oe=Ve.text,xe=Ve.click,Ee=Ye.text,Oe=Ye.click,Be=ie==="en"?ae:W;break}return R&&(oe=R),S&&(xe=S),B&&(Ee=B),U&&(Oe=U),{svgBg:Be,primaryText:oe,primaryClick:xe,secondaryText:Ee,secondaryClick:Oe}}),b(this,"getErrorInfo",()=>{const{errorType:N,identity:R,locale:S,customTitle:B,customDes:U,account:ie}=this.props,{typeText:L}=this;let F,X;if(B)F=B;else{const le=V.includes(N)?"title_5XX":"title_"+N;F=L[le]?L[le][S]:L.title_0[S]}if(U)X=U;else{let le="des_"+N;N===P?le=ie?"des_"+N+"_"+R:"des_"+N+"_2":V.includes(N)?le="des_5xx":N===l&&(le="des_link_expired"),X=L[le]?L[le][S]:L.des_link_expired[S]}return{title:F,desc:X}}),b(this,"handleClickLogo",()=>{let{isLogoClickable:N,logoUrl:R}=this.props;N&&(window.top!==window.self?window.top.location.href=R:window.location.href=R)})}render(){const{locale:N,isShowPrimaryBtn:R,isShowSecondaryBtn:S,isLogoClickable:B,previewFileBtnClick:U}=this.props,{typeText:ie}=this,{svgBg:L,primaryText:F,primaryClick:X,secondaryText:le,secondaryClick:oe}=this.getErrorConfig(),{title:xe,desc:Ee}=this.getErrorInfo();return(0,H.jsxs)(ee,{children:[(0,H.jsx)("div",{className:"logo",children:(0,H.jsx)("span",{className:B?"logo-clickable":"",onClick:this.handleClickLogo,children:(0,H.jsx)(J,{source:L})})}),(0,H.jsxs)("div",{className:"content",children:[(0,H.jsx)("p",{className:"title",children:xe}),typeof Ee=="string"?(0,H.jsx)("p",{className:"proposal",children:Ee}):Ee]}),(0,H.jsxs)("div",{className:"btn-list",children:[S&&oe&&le&&(0,H.jsx)("a",{className:"btn regular",onClick:oe,children:le}),U&&(0,H.jsx)("a",{className:"btn regular",onClick:U,children:ie.previewFile[N]}),R&&X&&F&&(0,H.jsx)("a",{className:"btn primary",onClick:X,children:F}),le===ie.contactUs[N]&&(0,H.jsx)(C.A,{})]})]})}}b(g,"propTypes",{locale:f().oneOf(["zh-CN","en","jp"]),identity:f().oneOf([0,1]),customTitle:f().string,customDes:f().string,isShowPrimaryBtn:f().bool,primaryBtnText:f().string,primaryBtnClick:f().func,isShowSecondaryBtn:f().bool,secondaryBtnText:f().string,secondaryBtnClick:f().func,errorType:f().oneOf([0,403,404,500,501,502,503,504,505,l]).isRequired,account:f().string,isLogoClickable:f().bool,logoUrl:f().string}),b(g,"defaultProps",{locale:"zh-CN",isShowPrimaryBtn:!0,isShowSecondaryBtn:!0,identity:0,errorType:0,isLogoClickable:!0,logoUrl:"/"})},80396:(we,de,n)=>{"use strict";n.d(de,{A:()=>E});var i=n(51044),f=n(66748),M=n.n(f),p=n(57464);E.propTypes={className:M().string,children:M().oneOfType([M().array,M().string]),isWonderShare:M().bool,id:M().string,onClick:M().func,disabled:M().bool,canClick:M().bool};function E(ee){let{className:H,children:A,isWonderShare:w=!1,id:q="mdOnlineSupport",onClick:W,disabled:ae,canClick:Y}=ee;const J="qd30090468111af7daaf09a6395b687fc3becd624cf3",P=w?"https://support.wondershare.com/":"";(0,i.useEffect)(()=>{if(!ae)return!w&&K(),()=>{const l=document.getElementById(J);l&&l.remove()}},[]);const K=()=>{n.g?(n.g.wpaShowItemId=window.wpaShowItemId="123",n.g.qidian_ex1=window.qidian_ex1="12"):(window.wpaShowItemId="123",window.qidian_ex1="12");let l=document.createElement("script");l.id=J,l.src="https://wp.qiye.qq.com/qidian/3009046811/1af7daaf09a6395b687fc3becd624cf3",l.charset="utf-8",l.async=!0,l.defer=!0,document.body.appendChild(l)},V=l=>{if(ae){Y&&W&&W();return}if(W&&W(),w){window.open(P);return}if(q!=="mdOnlineSupport"){l.preventDefault();const C=document.getElementById("mdOnlineSupport");C&&C.click()}};return(0,p.jsx)("div",{style:{cursor:"pointer"},id:q,className:H,onClick:V,children:A})}},29584:(we,de,n)=>{"use strict";n.d(de,{A:()=>y,d:()=>ae});var i=n(30108),f=n.n(i),M=n(98236),p=n.n(M),E=n(51044),ee=n(60185),H=n(66748),A=n.n(H),w=n(480),q=n(28149);const W=9;function ae(R){let{$opener:S,$menuBase:B,menuX:U="left",menuY:ie="bottom",menuBaseStyle:L={},inflexible:F=!1,shouldSetMaxHeight:X=!1}=R;if(!S||!B)return{};const le=B.querySelector("*"),oe={styleFor$menuBase:{},styleFor$menu:{}},xe=$e=>Object.assign(oe.styleFor$menuBase,$e),Ee=$e=>Object.assign(oe.styleFor$menu,$e),{offsetHeight:Oe}=le,Be=L.width||S.offsetWidth,Ue=L.height||S.offsetHeight,Ve=S.getBoundingClientRect(),{top:Ye,bottom:ve,left:Q}=Object.assign({top:Ve.top,right:Ve.right,bottom:Ve.bottom,left:Ve.left},L);xe({top:Ye+"px",left:Q+"px",width:Be+"px",height:Ue+"px"});const{innerHeight:$}=window,me=10,Se=$-10,Ce=ie==="top"?1/3:2/3,We=$*Ce,s=Ye+Ue/2,Ae=Ye+Ue;return(F&&ie==="bottom"||!F&&We>=s)&&Ae+Oe+W<$?(oe.isDownward=!0,X&&ve+Oe>Se&&Ee({maxHeight:Se-ve+"px"})):(oe.isDownward=!1,X&&Ye-Oe button{cursor:not-allowed;}}"]),P=Y.Ay.div.withConfig({displayName:"styled__StyledDropDownMenu",componentId:"sc-665wv9-1"})(["position:absolute;margin:0.25em 0;width:-moz-fit-content;width:-webkit-fit-content;width:fit-content;min-width:7em;font-size:12px;filter:drop-shadow(0 2px 10px rgba(39,54,78,0.12)) drop-shadow(4px 12px 40px rgba(39,54,78,0.12));pointer-events:none;opacity:0;transition:0.2s ease-in-out;transition-property:transform,opacity;transform-origin:50% 0;transform:scale(0.9);&.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;}&.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:0;left:calc(50% - 0.5em);width:1em;height:0.375em;font-size:14px;line-height:0;fill:currentColor;fill-rule:evenodd;color:#fff;svg{position:absolute;width:auto;height:5px;transform:translateY(-100%);}}&.dark .arrow{color:rgba(30,41,46,.9);}&.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:0;}.content{padding:0.75em 0.5em;min-height:32px;background-color:#fff;border-radius:4px;}&.dark .content{background-color:rgba(30,41,46,.9);color:#fff;}ul.MenuList{margin:0;padding:0;list-style:none;text-align:center;color:#5b6b73;li{line-height:32px;border-radius:2px;cursor:pointer;&:not(.is-disabled):hover{background-color:#f6f7f8;}&.is-active{color:#298df8;}&.is-disabled{cursor:not-allowed;opacity:0.5;}}}"]),K=Y.Ay.div.withConfig({displayName:"styled__StyledDropDownBase",componentId:"sc-665wv9-2"})(["position:fixed;z-index:1100;pointer-events:none;"]);var V=n(57464);function l(R,S,B){return(S=C(S))in R?Object.defineProperty(R,S,{value:B,enumerable:!0,configurable:!0,writable:!0}):R[S]=B,R}function C(R){var S=b(R,"string");return typeof S=="symbol"?S:S+""}function b(R,S){if(typeof R!="object"||!R)return R;var B=R[Symbol.toPrimitive];if(B!==void 0){var U=B.call(R,S||"default");if(typeof U!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(R)}const x="IBOT_DROPDOWN_MENU_ROOT",d=document.getElementById(x)||Object.assign(document.createElement("div"),{id:x}),g=document.body;g.contains(d)||g.appendChild(d);class y extends E.PureComponent{constructor(){super(...arguments),l(this,"state",{prevProps:this.props,isOpen:this.props.isOpen,$opener:null,currentMenuListItemIdx:this.props.currentMenuListItemIdx}),l(this,"leaveTimeoutList",[]),l(this,"createMenuRef",S=>this.$menuRef=S),l(this,"toggle",S=>this.setState({isOpen:f()(S)?S:!this.state.isOpen})),l(this,"open",()=>this.toggle(!0)),l(this,"close",()=>this.toggle(!1)),l(this,"onMouseEnter",()=>{const{shouldOpenOnHover:S}=this.props;S&&(clearTimeout(this.closeTimeout),Object.assign(this,{hoverTimeout:setTimeout(this.open,this.props.hoverDelay)}))}),l(this,"onMouseLeave",()=>{const{shouldOpenOnHover:S}=this.props;S&&clearTimeout(this.hoverTimeout)}),l(this,"onMouseMove",S=>{var B;let{clientX:U,clientY:ie}=S;const{shouldOpenOnHover:L,hoverDelay:F,hoverCloseDelay:X}=this.props,{$opener:le}=this.state;if(!L)return;clearTimeout(this.hoverTimeout);const oe=document.elementFromPoint(U,ie),xe=!le.contains(oe),Ee=!((B=this.$menuRef)!=null&&(B=B.menuBaseRef)!=null&&(B=B.current)!=null&&B.contains(oe));Ee?xe&&Ee&&this.leaveTimeoutList.push(setTimeout(this.close,X!==void 0?X:Math.max(F,300))):(this.leaveTimeoutList.map(clearTimeout),Object.assign(this,{leaveTimeoutList:[]}))}),l(this,"set$opener",S=>this.setState({$opener:S})),l(this,"onSelect",S=>{let{currentTarget:B}=S;const{menuList:U,onSelect:ie,shouldCloseOnSelect:L}=this.props;if(typeof ie!="function")return;const F=B.dataset.idx,X=U[F],le=typeof X=="string"?X:X&&X.value;ie(F,le),this.setState({currentMenuListItemIdx:F}),L&&this.close()})}static getDerivedStateFromProps(S,B){let{prevProps:U,isOpen:ie}=B;return p()(S,U)?null:f()(S.isOpen)?{prevProps:S,isOpen:S.isOpen}:{prevProps:S}}componentDidUpdate(S,B){let{isOpen:U}=B;const{onOpen:ie,onClose:L,onToggle:F}=this.props,{isOpen:X}=this.state;U!==X&&(X?(ie(),F(!0)):(L(),F(!1)))}render(){const{className:S,opener:B,openerType:U,openerClassName:ie,shouldCloseOnClickOutside:L}=this.props,{isOpen:F,$opener:X,currentMenuListItemIdx:le}=this.state,oe=this.props.isDisabled||this.props.disabled,xe=(0,q.Hn)(["Dropdown",F&&"is-open",oe&&"is-disabled",S]),Ee={onClick:this.toggle,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseMove:this.onMouseEnter,disabled:oe,className:ie};return(0,V.jsxs)(J,{ref:this.set$opener,className:xe,children:[U!=="button"&&(0,E.isValidElement)(B)?(0,E.cloneElement)(B,Ee):(0,V.jsx)("button",{type:"button",...Ee,children:B}),(0,V.jsx)(N,{ref:this.createMenuRef,...this.props,isOpen:F,$opener:X,onSelect:this.onSelect,onClose:this.close,shouldCloseOnClickOutside:L,currentMenuListItemIdx:le}),F&&(0,V.jsx)(w.A,{target:document,onMouseMove:this.onMouseMove})]})}}l(y,"positionMenu",ae),l(y,"propTypes",{isOpen:A().bool,mode:A().oneOf(["light","dark"]),opener:A().node,openerType:A().oneOf(["button","custom"]),className:A().string,portalClassName:A().string,menuBaseClassName:A().string,openerClassName:A().string,menuClassName:A().string,menuBaseStyle:A().shape({top:A().number,right:A().number,bottom:A().number,width:A().number,height:A().number}),menu:A().node,menuList:A().arrayOf(A().oneOfType([A().node,A().shape({label:A().node,value:A().any,isDisabled:A().bool})])),currentMenuListItemIdx:A().oneOfType([A().number,A().string]),shouldPreventScrollingPropagation:A().bool,shouldOpenOnHover:A().bool,shouldCloseOnClickOutside:A().bool,hoverDelay:A().oneOfType([A().number,A().string]),hoverCloseDelay:A().oneOfType([A().number,A().string]),arrowed:A().bool,inflexible:A().bool,menuX:A().oneOf(["left","center","right"]),menuY:A().oneOf(["top","bottom"]),menuBasedX:A().bool,isDisabled:A().bool,disabled:A().bool,onSelect:A().func,shouldCloseOnSelect:A().bool,onOpen:A().func.isRequired,onClose:A().func.isRequired,onToggle:A().func.isRequired}),l(y,"defaultProps",{arrowed:!1,openerType:"button",mode:"light",shouldPreventScrollingPropagation:!0,shouldCloseOnSelect:!0,shouldOpenOnHover:!1,shouldCloseOnClickOutside:!0,hoverDelay:200,menuX:"center",menuY:"bottom",inflexible:!1,menuBasedX:!1,onOpen:()=>null,onClose:()=>null,onToggle:()=>null});class N extends E.PureComponent{constructor(){super(...arguments),l(this,"state",{isDownward:this.props.position==="bottom"}),l(this,"portal",(0,q.ep)(d,(0,q.Hn)(["DropdownMenuPortal",this.props.portalClassName]))),l(this,"menuBaseRef",(0,E.createRef)()),l(this,"onResizeWindow",()=>this.props.isOpen&&this.position()),l(this,"onClickOutside",S=>{let{target:B}=S;const{$opener:U,onClose:ie,shouldCloseOnClickOutside:L}=this.props;if(!L)return;const F=!d.contains(B),X=B.closest("label"),le=X&&X.contains(U),oe=!!(0,q.$)(".SelectMenu.is-open");F&&!le&&!oe&&ie()}),l(this,"position",()=>{const{$opener:S,menuX:B,menuY:U,menuBaseStyle:ie,inflexible:L}=this.props,{menuBaseRef:{current:F}}=this,{isDownward:X}=ae({$menuBase:F,$opener:S,menuX:B,menuY:U,menuBaseStyle:ie,inflexible:L});this.setState({isDownward:X})})}componentDidMount(){const{isOpen:S,shouldPreventScrollingPropagation:B}=this.props,{menuBaseRef:{current:U}}=this;S&&setTimeout(this.position),B&&(0,q.sA)((0,q.$)(".content",U)),window.addEventListener("resize",this.onResizeWindow)}componentDidUpdate(S){let{isOpen:B}=S;const{isOpen:U}=this.props;!B&&U&&this.position()}componentWillUnmount(){this.portal&&this.portal.remove(),window.removeEventListener("resize",this.onResizeWindow)}render(){const{portal:S,menu:B}=this;return(0,ee.createPortal)(B,S)}get menu(){const{isOpen:S,mode:B,menuBaseClassName:U,menuClassName:ie,menu:L,menuList:F,arrowed:X,menuX:le,menuBasedX:oe,currentMenuListItemIdx:xe,onSelect:Ee}=this.props,{isDownward:Oe}=this.state,Be=(0,q.Hn)(["DropdownMenu",B,S&&"is-open",Oe?"is-downward":"is-upward","x-"+le,X&&"arrowed "+(oe?"x-menu-based":"x-arrow-based"),ie]);return(0,V.jsx)(K,{ref:this.menuBaseRef,className:(0,q.Hn)(["DropdownMenuBase",U]),children:(0,V.jsxs)(P,{className:Be,children:[X&&(0,V.jsx)("span",{className:"arrow",dangerouslySetInnerHTML:{__html:q.t4.mr}}),(0,V.jsx)("div",{className:"content",children:F?(0,V.jsx)("ul",{className:"MenuList",children:F.map((Ue,Ve)=>(0,V.jsx)("li",{role:"option","data-idx":Ve,className:(0,q.Hn)([Ue.isDisabled&&"is-disabled",Ve===Number(xe)&&"is-active"]),onClick:Ue.isDisabled?void 0:Ee,children:Ue.label||Ue},Ve))}):L}),S&&(0,V.jsx)(w.A,{target:document,onClick:(0,w.t)(this.onClickOutside,{capture:!0})}),S&&(0,V.jsx)(w.A,{target:document,onScroll:(0,w.t)(this.position,{capture:!0})})]})})}}l(N,"propTypes",{...y.propTypes,isOpen:A().bool,$opener:A().instanceOf(Element),onSelect:A().func,onClose:A().func})},22379:(we,de,n)=>{"use strict";n.d(de,{A:()=>ae});var i=n(51044),f=n(66748),M=n.n(f),p=n(23485),E=n(28149),ee=n(21676);const H=ee.Ay.span.withConfig({displayName:"styled__StyledEllipsis",componentId:"sc-z4nkzm-0"})(["null"]);var A=n(57464);function w(Y,J,P){return(J=q(J))in Y?Object.defineProperty(Y,J,{value:P,enumerable:!0,configurable:!0,writable:!0}):Y[J]=P,Y}function q(Y){var J=W(Y,"string");return typeof J=="symbol"?J:J+""}function W(Y,J){if(typeof Y!="object"||!Y)return Y;var P=Y[Symbol.toPrimitive];if(P!==void 0){var K=P.call(Y,J||"default");if(typeof K!="object")return K;throw new TypeError("@@toPrimitive must return a primitive value.")}return(J==="string"?String:Number)(Y)}class ae extends i.PureComponent{constructor(){var J;super(...arguments),J=this,w(this,"state",{isTruncated:!1,isDetected:!1}),w(this,"set$ellipsis",P=>Object.assign(this,{$ellipsis:P.current})),w(this,"detectTruncation",function(P){return P===void 0&&(P=J.$ellipsis),P.offsetWidth{"use strict";n.d(de,{eB:()=>L,Ay:()=>ie});var i=n(51044),f=n(60185),M=n(66748),p=n.n(M),E=n(480),ee=n(60260),H=n.n(ee),A=n(77017),w=n.n(A),q=n(98236),W=n.n(q),ae=n(17956),Y=n.n(ae),J=n(90503),P=n(22379),K=n(28149),V=n(29584),l=n(21676);const C=l.Ay.label.withConfig({displayName:"styles__StyledSelectLabel",componentId:"sc-grbgid-0"})(["display:inline-flex;justify-content:space-between;align-items:center;max-width:100%;min-width:3em;height:34px;color:#5b6b73;cursor:pointer;transition:all 0.2s ease-out;button{flex:1;width:calc(100% - 2em);height:100%;text-align:start;cursor:inherit;}.caret{margin:0 0.75em 0 1em;line-height:0;color:#8d9ea7;svg{display:block;width:6px;height:4px;fill:currentColor;fill-rule:evenodd;transform:rotate(180deg);transition:all 0.3s ease-out;}}&:not(.unstyled){padding-left:.5em;background-color:#f6f7f8;border:1px solid #f2f2f3;border-radius:2px;}&.small{height:22px;font-size:12px;.caret{margin-right:0.5em;}}&:not(.is-disabled):not(.readonly):not(.unstyled):hover,&:not(.unstyled).is-open{border-color:#298df8;}&.is-open{&:not(.unstyled){background-color:#fff;box-shadow:0 0 6px 0 rgba(41,141,248,.5);}.caret svg{transform:rotate(0deg);}}&.is-disabled{cursor:not-allowed;opacity:0.6;}&.readonly{cursor:default}&.CoreSelect:not(.unstyled){background-color:#fff;border:1px solid #c8cdd1;}"]),b=l.Ay.div.withConfig({displayName:"styles__StyledSelectMenuBase",componentId:"sc-grbgid-1"})(["position:fixed;pointer-events:none;z-index:1100;"]),x=l.Ay.ul.withConfig({displayName:"styles__StyledSelectMenu",componentId:"sc-grbgid-2"})(["position:absolute;margin:2px 0;padding:0;display:block;max-width:20em;min-width:100%;min-height:30px;max-height:300px;overflow-x:hidden;overflow-y:auto;pointer-events:none;font-size:12px;list-style:none;background-color:#fff;border-radius:3px;box-shadow:0 2px 10px 0 rgba(39,54,78,0.08),4px 12px 40px 0 rgba(39,54,78,0.1);color:#5b6b73;transition:0.2s ease-out;transition-property:transform,opacity;transform-origin:50% 0;&::-webkit-scrollbar{display:block;width:4px;height:4px;}&::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:2px;}&::-webkit-scrollbar-track{background-color:rgba(255,255,255,0.5);}&.is-empty{width:-moz-fit-content;width:-webkit-fit-content;width:fit-content;}&:not(.is-open){opacity:0;transform:scale(0.8);}&.x-center{left:50%;transform:translateX(-50%);&:not(.is-open){transform:scale(0.8) translateX(-50%);}}&.x-right{right:0;}&.is-downward{top:100%;bottom:initial;}&.is-upward{transform-origin:50% 100%;top:initial;bottom:100%;}&.is-open{opacity:1;pointer-events:initial;}&.cant-select .SelectOption{cursor:default;}.SelectGroup{> .title{padding:0 0.75em;width:100%;height:30px;line-height:30px;font-weight:bold;}> ul{margin:0;padding:0;}}.SelectOption{display:flex;align-items:center;height:30px;line-height:30px;cursor:pointer;> .Ellipsis{padding:0 0.75em;}> .svg-icon{margin-left:auto;margin-right:0.75em;&.check path{fill:#5b6b73;}}&.is-disabled{cursor:not-allowed;opacity:0.5;}&.is-active{color:#298df8;}&:not(.empty-msg):not(.is-disabled):hover,&.is-active{background-color:#f6f7f8;}&.empty-msg{padding:0 0.5em;color:#8d9ea7;cursor:not-allowed;}}&.CheckSelectMenu{&:not(.is-empty){padding:6px 0;}.SelectOption{height:32px;.Ellipsis{padding:0 16px;}.Ellipsis + .icon{margin-right:10px;}&:hover,&.is-active:hover{color:#298df8;}&.is-active{background:none;color:inherit;}}}&.CoreSelectMenu{margin:4px 0;&:not(.is-empty){padding:8px;min-height:48px;max-height:336px;}.SelectGroup > .title,.SelectOption{height:32px;line-height:32px;border-radius:2px;}}"]);var d=n(57464);function g(le,oe,xe){return(oe=y(oe))in le?Object.defineProperty(le,oe,{value:xe,enumerable:!0,configurable:!0,writable:!0}):le[oe]=xe,le}function y(le){var oe=N(le,"string");return typeof oe=="symbol"?oe:oe+""}function N(le,oe){if(typeof le!="object"||!le)return le;var xe=le[Symbol.toPrimitive];if(xe!==void 0){var Ee=xe.call(le,oe||"default");if(typeof Ee!="object")return Ee;throw new TypeError("@@toPrimitive must return a primitive value.")}return(oe==="string"?String:Number)(le)}const R="IBOT_SELECT_MENU_ROOT",S={"zh-CN":{select_placeholder:"\u9009\u62E9\u4E00\u4E2A...",select_empty_msg:"\u6682\u65E0\u5185\u5BB9..."},en:{select_placeholder:"Choose one\u2026",select_empty_msg:"Nothing to display\u2026"}},B=document.getElementById(R)||Object.assign(document.createElement("div"),{id:R}),U=document.body;U.contains(B)||U.appendChild(B);class ie extends i.PureComponent{constructor(){super(...arguments),g(this,"state",{isOpen:!1,prevProps:this.props,value:this.props.value}),g(this,"set$select",oe=>this.setState({$select:oe})),g(this,"open",()=>this.setState({isOpen:!0})),g(this,"close",()=>this.setState({isOpen:!1})),g(this,"toggle",()=>this.setState({isOpen:!this.state.isOpen})),g(this,"onResizeWindow",()=>this.state.isOpen&&this.close()),g(this,"onChange",async oe=>{const{onChange:xe,beforeOnChange:Ee}=this.props,Oe=()=>{this.close(),xe(oe)};if(!Ee){this.setState({value:oe},Oe);return}if(await Ee(oe)){this.setState({value:oe},Oe);return}Oe()}),g(this,"onSelect",async oe=>{let{currentTarget:xe}=oe;const{value:Ee}=this.props,{canSelect:Oe}=this;await this.onChange(Oe?xe.dataset.value:Ee)})}static getDerivedStateFromProps(oe,xe){let{prevProps:Ee,value:Oe}=xe;return W()(Ee,oe)?null:{prevProps:oe,value:oe.value}}componentDidMount(){window.addEventListener("resize",this.onResizeWindow)}componentWillUnmount(){window.removeEventListener("resize",this.onResizeWindow)}get isDisabled(){const{isDisabled:oe,disabled:xe}=this.props;return oe||xe}get readOnly(){return this.props.readOnly}get canSelect(){const{isDisabled:oe,readOnly:xe}=this;return!oe&&!xe}get displayText(){const{optionList:oe,placeholder:xe,optionLabelProp:Ee}=this.props,{value:Oe}=this.state,Ue=(oe.find(Ve=>w()(Ve)&&Ve.slice(0).some(Ye=>(0,K.o3)(Ye,Oe)))||oe).find(Ve=>!w()(Ve)&&(0,K.o3)(Ve,Oe));return Ue?(0,K.Oi)(Ue,Ee):xe||S[this.props.lang].select_placeholder}render(){const{size:oe,theme:xe,unstyled:Ee,className:Oe,menuX:Be}=this.props,{isOpen:Ue,$select:Ve,value:Ye}=this.state,{isDisabled:ve,readOnly:Q,canSelect:$}=this,me=(0,K.Hn)([xe==="core"?"CoreSelect":"Select",oe,Ee&&"unstyled",Oe,Ue&&"is-open",ve&&"is-disabled",Q&&"readonly"]);return(0,d.jsxs)(C,{className:me,role:"listbox",ref:this.set$select,children:[(0,d.jsx)("button",{type:"button",onClick:this.toggle,disabled:ve,children:(0,d.jsx)(P.A,{children:this.displayText})}),typeof this.props.arrowSvg=="string"?(0,d.jsx)("span",{className:"caret",dangerouslySetInnerHTML:{__html:this.props.arrowSvg}}):(0,d.jsx)("span",{className:"caret",children:this.props.arrowSvg}),(0,d.jsx)(L,{isOpen:Ue,...this.props,value:Ye,$select:Ve,canSelect:$,onChange:this.onSelect,onClose:this.close,menuX:Be})]})}}g(ie,"propTypes",{size:p().oneOf(["regular","small"]),theme:p().oneOf(["core","plain"]),menuTheme:p().oneOf(["core","plain","check"]),unstyled:p().bool,className:p().string,menuClassName:p().string,lang:p().string,placeholder:p().string,optionList:p().arrayOf(p().oneOfType([p().node,p().shape({label:p().node,value:p().any,isDisabled:p().bool}),p().arrayOf(p().oneOfType([p().node,p().shape({label:p().node,value:p().any,isDisabled:p().bool})]))])).isRequired,value:p().oneOfType([p().number,p().string]),isDisabled:p().bool,disabled:p().bool,readOnly:p().bool,onChange:p().func,menuX:p().oneOf(["left","center","right"]),optionLabelProp:p().string,arrowSvg:p().oneOfType([p().string,p().node])}),g(ie,"defaultProps",{size:"regular",theme:"plain",menuTheme:"plain",className:"",menuClassName:"",lang:"zh-CN",optionList:[],isDisabled:!1,onChange:()=>null,menuX:"left",arrowSvg:K.t4.rH});class L extends i.PureComponent{constructor(){super(...arguments),g(this,"state",{isDownward:!0}),g(this,"portal",(0,K.ep)(B,"SelectMenuPortal")),g(this,"menuBaseRef",(0,i.createRef)()),g(this,"position",oe=>{const{$select:xe,menuX:Ee}=this.props,{menuBaseRef:{current:Oe}}=this;if(oe){const Ue=H()(oe,"target");if(Ue&&Y()(Ue)&&Ue.matches(".SelectMenu"))return}const{isDownward:Be}=(0,V.d)({$menuBase:Oe,$opener:xe,menuX:Ee,shouldSetMaxHeight:!0});this.setState({isDownward:Be})}),g(this,"onChange",oe=>{const{onChange:xe}=this.props,{isDownward:Ee}=this.state,Oe=oe.currentTarget,Be=Oe.closest(".SelectMenu, .CoreSelectMenu, .CheckSelectMenu");if(!Oe||!Be)return this.onlose();const{top:Ue,bottom:Ve}=Oe.getBoundingClientRect(),{top:Ye,bottom:ve}=Be.getBoundingClientRect();return Ee&&Ue>=Ye||!Ee&&Ve<=ve?Oe.classList.contains("title")?void 0:xe(oe):this.onClose()}),g(this,"onClose",()=>{const{onClose:oe}=this.props;oe()}),g(this,"scrollIntoActive",()=>{const{menuBaseRef:{current:oe}}=this,xe=(0,K.$)("li[role=option].is-active",oe);xe&&xe.scrollIntoView({block:"start"})}),g(this,"onClickOutside",oe=>{let{target:xe}=oe;const{$select:Ee}=this.props,Oe=!B.contains(xe),Be=xe.closest("label"),Ue=Be&&Be.contains(Ee);Oe&&!Ue&&this.onClose()})}componentDidMount(){const{menuBaseRef:{current:oe}}=this;(0,K.sA)((0,K.$)(".SelectMenu",oe))}componentDidUpdate(oe){let{isOpen:xe}=oe;const{isOpen:Ee}=this.props;!xe&&Ee&&(this.position(),this.scrollIntoActive())}componentWillUnmount(){this.portal&&this.portal.remove()}render(){return(0,f.createPortal)(this.menu,this.portal)}get menu(){const{isOpen:oe,isDisabled:xe,menuTheme:Ee,menuClassName:Oe,menuX:Be,optionList:Ue,lang:Ve,emptyMsg:Ye,value:ve,canSelect:Q}=this.props,{isDownward:$}=this.state,me=Ue.length===0,Se=(0,K.Hn)([Ee==="core"?"CoreSelectMenu":Ee==="check"?"CheckSelectMenu":"SelectMenu",Oe,"x-"+Be,oe&&"is-open",$?"is-downward":"is-upward",xe&&"is-disabled",me&&"is-empty",Q?"can-select":"cant-select"]);return(0,d.jsx)(b,{ref:this.menuBaseRef,className:"SelectMenuBase",children:(0,d.jsxs)(x,{className:Se,onTransitionEnd:this.onTransitionEnd,children:[me?(0,d.jsx)("li",{className:"SelectOption empty-msg",children:Ye||S[Ve].select_empty_msg}):Ue.map((Ce,We)=>w()(Ce)?(0,d.jsx)(F,{menuTheme:Ee,optionList:Ce,value:ve,onChange:this.onChange},We):(0,d.jsx)(X,{menuTheme:Ee,isActive:(0,K.o3)(Ce,ve),option:Ce,isDisabled:Ce.isDisabled,onChange:this.onChange},We)),oe&&(0,d.jsx)(E.A,{target:document,onClick:(0,E.t)(this.onClickOutside,{capture:!0})}),oe&&(0,d.jsx)(E.A,{target:document,onScroll:(0,E.t)(this.position,{capture:!0})})]})})}}g(L,"propTypes",{...ie.propTypes,isOpen:p().bool,canSelect:p().bool,onChange:p().func,onClose:p().func,$select:p().instanceOf(Element)}),g(L,"defaultProps",{isOpen:!1});function F(le){let{value:oe,optionList:[xe,...Ee],menuTheme:Oe,onChange:Be}=le;return(0,d.jsxs)("li",{className:"SelectGroup",children:[(0,d.jsx)(P.A,{className:"title",onClick:Be,children:xe}),(0,d.jsx)("ul",{children:Ee.map((Ue,Ve)=>(0,d.jsx)(X,{menuTheme:Oe,option:Ue,isActive:(0,K.o3)(Ue,oe),isDisabled:Ue.isDisabled,onChange:Be},Ve))})]})}F.propTypes={optionList:p().array,onChange:p().func,menuTheme:p().string,value:p().string};function X(le){let{option:oe,isActive:xe,isDisabled:Ee,menuTheme:Oe,onChange:Be}=le;const Ue=(0,K.Hn)(["SelectOption",xe&&"is-active",Ee&&"is-disabled"]),Ve=(0,K.Oi)(oe),Ye=(0,K.nE)(oe);return(0,d.jsxs)("li",{role:"option","data-value":Ye,className:Ue,onClick:Ee?void 0:Be,children:[(0,d.jsx)(P.A,{children:Ve}),Oe==="check"&&xe&&(0,d.jsx)(J.A,{name:"check"})]})}X.propTypes={option:p().oneOfType([p().node,p().object]),isActive:p().bool,isDisabled:p().bool,menuTheme:p().string,onChange:p().func}},10481:(we,de,n)=>{"use strict";n.d(de,{eB:()=>Ve,Ay:()=>Ue});var i=n(51044),f=n(60185),M=n(66748),p=n.n(M),E=n(480),ee=n(60260),H=n.n(ee),A=n(77017),w=n.n(A),q=n(98236),W=n.n(q),ae=n(17956),Y=n.n(ae),J=n(22379),P=n(28149),K=n(67231),V=n.n(K),l=n(68431),C=n.n(l);const b=9;function x(Q){let{$opener:$,$menuBase:me,menuBaseStyle:Se={},inflexible:Ce=!1,shouldSetMaxHeight:We=!1,$menuContainer:s,$fontTip:Ae}=Q;if(!$||!me)return;const $e=me.querySelector("*"),dt=((0,P.$)("li[role=option].is-active",$e)||(0,P.$)("li[role=option]",$e)||(0,P.$)("li[role=empty-msg]",$e)).getBoundingClientRect(),ut=$e.getBoundingClientRect(),at={styleFor$menuBase:{},styleFor$menu:{},styleFor$menuContainer:{},styleFor$fontTip:{}},ft=mn=>Object.assign(at.styleFor$menuBase,mn),Pt=mn=>Object.assign(at.styleFor$menu,mn),Mt=mn=>Object.assign(at.styleFor$menuContainer,mn),Rt=mn=>Object.assign(at.styleFor$fontTip,mn),{offsetHeight:Bt}=$e,bt=Se.width||$.offsetWidth,Wt=Se.height||$.offsetHeight,en=$.getBoundingClientRect(),{top:Dt,bottom:Vt,left:Yt}=Object.assign({top:en.top,right:en.right,bottom:en.bottom,left:en.left},Se);ft({top:Dt+"px",left:Yt+"px",width:bt+"px",height:Wt+"px"});const{innerHeight:Gt}=window,Tn=10,jn=Gt-10,It=Dt+Wt;let hn=0,ln=0;const Cn=(dt.top-ut.top)/.8;B(ut,dt)?hn=-Math.min(Cn,Dt):(ln=dt.bottom/.8-ut.bottom/.8,hn=-Cn+ln);let An=0;return Ae&&(An=Ae.getBoundingClientRect().height),It+Bt+b+hn+Anjn&&Pt({maxHeight:jn-Vt+"px"})):(at.isDownward=!1,We&&Dt-Bt=Q.top/.8&&$.bottom/.8<=Q.bottom/.8}var U=n(21676);const ie=U.Ay.label.withConfig({displayName:"styles__StyledSelect",componentId:"sc-tgxfzg-0"})(["position:relative;display:inline-flex;align-items:center;max-width:100%;min-width:3em;height:28px;font-size:12px;color:#5b6b73;cursor:pointer;button{display:block;height:100%;color:#1F292E;text-align:start;cursor:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-left:8px;line-height:26px;}.caret{padding:0 11px;color:#7D8694;height:100%;display:inline-flex;align-items:center;svg{width:10px;height:10px;fill:currentColor;transition:transform 0.2s ease-out;}}&{padding-left:5px;border:1px solid transparent;border-radius:2px;}&.is-open{border-color:transparent;.caret{margin-left:auto;visibility:visible;svg{transform:rotate(180deg);}}}&:not(.is-disabled):not(.readonly):hover{border:1px solid transparent;.caret{padding:0 11px;}}&.is-disabled{cursor:not-allowed;opacity:0.6;}&.readonly{cursor:default;}"]),L=U.Ay.div.withConfig({displayName:"styles__StyledSelectMenu",componentId:"sc-tgxfzg-1"})(["position:fixed;pointer-events:none;z-index:1100;.WorkspaceSelectMenu{position:absolute;padding:8px 0;display:block;max-width:20em;min-width:100%;min-height:30px;max-height:300px;overflow-x:hidden;overflow-y:auto;list-style:none;box-shadow:0 2px 8px 0 rgba(0,0,0,0.1);color:#fff;border-radius:2px;background-color:#1f292e;pointer-events:all;transition-property:transform,opacity;transform-origin:50% 0;margin:0;&::-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:rgba(#fff,0.5);}&.is-empty{width:fit-content;}&:not(.is-open){opacity:0;transform:scale(0.8);}&.is-downward{top:100%;bottom:initial;}&.is-upward{transform-origin:50% 100%;top:initial;bottom:100%;}&.is-open{opacity:1;pointer-events:initial;border-radius:4px;background-color:#333;width:160px;padding:8px 0px;}> .divider{border-bottom:1px solid rgba(255,255,255,.1);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;}&.empty-msg{padding:0 0.5em;color:#8d9ea6;cursor:not-allowed;}}&.cant-select .SelectOption{cursor:default;}.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;}}}.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:#fff;margin-left:10px;text-decoration:underline;}&:not(.is-show){opacity:0;}&.is-show{opacity:1;color:rgba(255,255,255,1);}}"]);var F=n(90503),X=n(57464);function le(Q,$,me){return($=oe($))in Q?Object.defineProperty(Q,$,{value:me,enumerable:!0,configurable:!0,writable:!0}):Q[$]=me,Q}function oe(Q){var $=xe(Q,"string");return typeof $=="symbol"?$:$+""}function xe(Q,$){if(typeof Q!="object"||!Q)return Q;var me=Q[Symbol.toPrimitive];if(me!==void 0){var Se=me.call(Q,$||"default");if(typeof Se!="object")return Se;throw new TypeError("@@toPrimitive must return a primitive value.")}return($==="string"?String:Number)(Q)}const Ee="IBOT_SELECT_MENU_ROOT",Oe=document.getElementById(Ee)||Object.assign(document.createElement("div"),{id:Ee}),Be=document.body;Be.contains(Oe)||Be.appendChild(Oe);class Ue extends i.PureComponent{constructor(){super(...arguments),le(this,"state",{isOpen:!1,prevProps:this.props,value:this.props.value}),le(this,"set$select",$=>this.setState({$select:$})),le(this,"open",()=>this.setState({isOpen:!0})),le(this,"close",()=>this.setState({isOpen:!1})),le(this,"toggle",()=>{const $=!this.state.isOpen;this.setState({isOpen:$}),$?this.props.onOpen():this.props.onClose()}),le(this,"onResizeWindow",()=>this.state.isOpen&&this.close()),le(this,"onChange",$=>this.setState({value:$},()=>{this.close(),this.props.onChange($,this.props.attr)})),le(this,"onSelect",$=>{let{currentTarget:me}=$;const{value:Se}=this.props,{canSelect:Ce}=this;return this.onChange(Ce?me.dataset.value:Se)})}static getDerivedStateFromProps($,me){let{prevProps:Se,value:Ce}=me;return W()(Se,$)?null:{prevProps:$,value:$.value}}componentDidMount(){window.addEventListener("resize",this.onResizeWindow)}componentWillUnmount(){window.removeEventListener("resize",this.onResizeWindow)}get isDisabled(){const{isDisabled:$,disabled:me}=this.props;return $||me}get readOnly(){return this.props.readOnly}get canSelect(){const{isDisabled:$,readOnly:me}=this;return!$&&!me}get displayText(){const{optionList:$,placeholder:me,optionLabelProp:Se}=this.props,{value:Ce}=this.state,s=($.find(Ae=>w()(Ae)&&Ae.slice(0).some($e=>R($e,Ce)))||$).find(Ae=>!w()(Ae)&&R(Ae,Ce));return s?d(s,Se):me}render(){const{size:$,unstyled:me,className:Se,onMouseEnter:Ce,onMouseLeave:We,arrowSvg:s}=this.props,{isOpen:Ae,$select:$e,value:qe}=this.state,{isDisabled:dt,readOnly:ut,canSelect:at}=this,ft=(0,P.Hn)(["WorkspaceSelect",$,me&&"unstyled",Se,Ae&&"is-open",dt&&"is-disabled",ut&&"readonly"]);return(0,X.jsxs)(ie,{className:ft,role:"listbox",ref:this.set$select,children:[(0,X.jsx)("button",{onClick:this.toggle,disabled:dt,children:this.displayText}),typeof s=="string"?(0,X.jsx)("span",{className:"caret",dangerouslySetInnerHTML:{__html:s}}):(0,X.jsx)("span",{className:"caret",children:s}),Ae&&(0,X.jsx)(Ve,{isOpen:Ae,...this.props,value:qe,$select:$e,canSelect:at,onChange:this.onSelect,onMouseEnter:Ce,onMouseLeave:We,onClose:this.close})]})}}le(Ue,"propTypes",{size:p().oneOf(["regular","small"]),theme:p().oneOf(["core","plain"]),menuTheme:p().oneOf(["core","plain","check"]),unstyled:p().bool,className:p().string,menuClassName:p().string,placeholder:p().string,optionList:p().arrayOf(p().oneOfType([p().node,p().shape({label:p().node,shortcutKey:p().node,tooltipWrapper:p().func,ItemIcon:p().node,value:p().any,isDisabled:p().bool}),p().arrayOf(p().oneOfType([p().node,p().shape({label:p().node,ItemIcon:p().node,value:p().any,shortcutKey:p().node,tooltipWrapper:p().func,isDisabled:p().bool})]))])).isRequired,value:p().oneOfType([p().number,p().string]),isDisabled:p().bool,disabled:p().bool,readOnly:p().bool,onChange:p().func,onMouseEnter:p().func,onMouseLeave:p().func,onOpen:p().func,onClose:p().func,optionLabelProp:p().string,arrowSvg:p().oneOfType([p().string,p().node])}),le(Ue,"defaultProps",{size:"regular",theme:"plain",menuTheme:"plain",className:"",menuClassName:"",placeholder:"Choose one\u2026",emptyMsg:"Nothing to display\u2026",optionList:[],isDisabled:!1,arrowSvg:S,onChange:()=>null,onMouseEnter:()=>null,onMouseLeave:()=>null,onOpen:()=>null,onClose:()=>null});class Ve extends i.PureComponent{constructor(){super(...arguments),le(this,"state",{isDownward:!0}),le(this,"portal",(0,P.ep)(Oe,"SelectMenuPortal")),le(this,"menuBaseRef",(0,i.createRef)()),le(this,"menuContainerRef",(0,i.createRef)()),le(this,"position",$=>{const{$select:me}=this.props,{menuBaseRef:{current:Se},menuContainerRef:{current:Ce}}=this;if($){const s=H()($,"target");if(s&&Y()(s)&&s.matches(".WorkspaceSelectMenu"))return}const{isDownward:We}=x({$menuBase:Se,$opener:me,shouldSetMaxHeight:!1,$menuContainer:Ce});this.setState({isDownward:We,isTransform:!0})}),le(this,"onChange",$=>{const{onChange:me}=this.props,{isDownward:Se}=this.state,Ce=$.currentTarget,We=Ce.closest(".WorkspaceSelectMenu");if(!Ce||!We)return this.onlose();const{top:s,bottom:Ae}=Ce.getBoundingClientRect(),{top:$e,bottom:qe}=We.getBoundingClientRect();return Se&&s>=$e||!Se&&Ae<=qe?Ce.classList.contains("title")?void 0:me($):this.onClose()}),le(this,"onClose",()=>{const{onClose:$}=this.props;$()}),le(this,"onClickOutside",$=>{let{target:me}=$;const{$select:Se}=this.props,Ce=!Oe.contains(me),We=me.closest("label"),s=We&&We.contains(Se);Ce&&!s&&this.onClose()})}componentDidMount(){const{menuBaseRef:{current:$}}=this;(0,P.sA)((0,P.$)(".WorkspaceSelectMenu",$)),this.position()}componentWillUnmount(){this.portal&&this.portal.remove()}render(){return(0,f.createPortal)(this.menu,this.portal)}get menu(){const{isOpen:$,isDisabled:me,menuTheme:Se,menuClassName:Ce,optionList:We,emptyMsg:s,value:Ae,canSelect:$e,onMouseEnter:qe,onMouseLeave:dt}=this.props,{isDownward:ut,isTransform:at}=this.state,ft=We.length===0,Pt=(0,P.Hn)(["WorkspaceSelectMenu",Ce,at&&"is-open",ut?"is-downward":"is-upward",me&&"is-disabled",ft&&"is-empty",$e?"can-select":"cant-select"]);return(0,X.jsxs)(L,{ref:this.menuBaseRef,children:[(0,X.jsx)("ul",{className:Pt,ref:this.menuContainerRef,children:ft?(0,X.jsx)("li",{className:"SelectOption empty-msg",role:"empty-msg",children:s}):We.map((Mt,Rt)=>w()(Mt)?(0,X.jsx)(Ye,{menuTheme:Se,optionList:Mt,value:Ae,onChange:this.onChange,onMouseEnter:qe,onMouseLeave:dt},Rt):(0,X.jsx)(ve,{menuTheme:Se,isActive:R(Mt,Ae),option:Mt,isDisabled:Mt.isDisabled,onChange:this.onChange,onMouseEnter:qe,onMouseLeave:dt},Rt))}),$&&(0,X.jsx)(E.A,{target:document,onClick:this.onClickOutside})]})}}le(Ve,"propTypes",{...Ue.propTypes,isOpen:p().bool,canSelect:p().bool,onChange:p().func,onClose:p().func,$select:p().instanceOf(Element)}),le(Ve,"defaultProps",{isOpen:!1,isTransform:!1});function Ye(Q){let{value:$,optionList:[me,...Se],menuTheme:Ce,onChange:We,onMouseEnter:s,onMouseLeave:Ae}=Q;return(0,X.jsxs)("li",{className:"SelectGroup",children:[me==="HIDDELINE"?null:me==="DIVIDER"?(0,X.jsx)("div",{className:"divider"}):(0,X.jsx)(J.A,{className:"title",onClick:We,children:me}),(0,X.jsx)("ul",{children:Se.map(($e,qe)=>(0,X.jsx)(ve,{menuTheme:Ce,option:$e,isActive:R($e,$),isDisabled:$e.isDisabled,onChange:We,onMouseEnter:s,onMouseLeave:Ae},qe))})]})}Ye.propTypes={value:p().oneOfType([p().string,p().number]),optionList:p().array,onChange:p().func,menuTheme:p().string,onMouseEnter:p().func,onMouseLeave:p().func};function ve(Q){let{option:$,isActive:me,isDisabled:Se,menuTheme:Ce,onChange:We,onMouseEnter:s,onMouseLeave:Ae}=Q;const $e=(0,P.Hn)(["SelectOption",me&&"is-active",Se&&"is-disabled"]),qe=d($),dt=g($),ut=y($),at=N($),{tooltipWrapper:ft}=$;if($.type==="divider")return(0,X.jsx)("li",{className:"divider"});const Pt=(0,X.jsxs)("li",{role:"option","data-value":dt,className:$e,onClick:Se?void 0:We,onMouseEnter:s,onMouseLeave:Ae,children:[me&&(0,X.jsx)("span",{className:"svg-icon2",children:(0,X.jsx)(F.A,{name:"select_right"})}),(0,X.jsxs)(J.A,{children:[(0,X.jsxs)("span",{className:"svg-icon3",children:[(0,X.jsx)(F.A,{name:ut})," "]})," ",qe," ",(0,X.jsxs)("span",{className:"shortcutkey",children:[at," "]})]})]});return ft?ft(Pt):Pt}ve.propTypes={isActive:p().bool,option:p().oneOfType([p().node,p().object]),isDisabled:p().bool,menuTheme:p().string,onChange:p().func,onMouseEnter:p().func,onMouseLeave:p().func}},11334:(we,de,n)=>{"use strict";n.d(de,{Ay:()=>P});var i=n(51044),f=n(66748),M=n.n(f),p=n(70235),E=n.n(p),ee=n(90503),H=n(28149),A=n(21676);const w=A.Ay.button.withConfig({displayName:"styled__StyledButton",componentId:"sc-1p06iev-0"})(["&.RegularButton,&.PrimaryButton,&.PrimaryCoreButton,&.RegularCoreButton,&.SecondaryCoreButton,&.TertiaryCoreButton{padding:0 0.5em;height:2.125rem;font-size:0.875rem;border:1px solid;border-radius:2px;cursor:pointer;transition:all 0.2s ease-out;&:not(button){display:inline-flex;justify-content:center;align-items:center;}&:disabled{cursor:not-allowed;opacity:0.6;}.icon{margin-right:0.125em;}&.small{height:2em;font-size:0.75rem;}.svg-icon.loading{margin-right:0.5em;vertical-align:-.15em;animation:ibot-ani-spinning 1.5s infinite ease-out;}}&.PrimaryCoreButton,&.RegularCoreButton,&.SecondaryCoreButton,&.TertiaryCoreButton{padding:0 1em;height:2.375rem;&.small{height:2em;}&:disabled{background-color:#f6f7f8;border-color:#dedee4;color:#c8cdd1;opacity:1;}}&.PrimaryCoreButton{background-color:#eb5648;&,&:link,&:visited{border-color:transparent;color:#fff;}&:enabled:hover,a&:hover{background-color:#ef776c;color:#fff;}&:enabled:active,a&:active{background-color:#bc4439;color:#e4b4b0;}}&.RegularCoreButton,&.SecondaryCoreButton{background-color:#fff;&,&:link,&:visited{color:#eb5648;}&:enabled:hover,a&:hover{border-color:#ffa39e;color:#ef776c;}&:enabled:active,a&:active{border-color:#e84030;color:#bc4439;}}&.TertiaryCoreButton{background-color:#fff;border-color:#c8cdd1;&,&:link,&:visited{color:#415058;}&:enabled:hover,a&:hover{background-color:#8d9ea7;border-color:#7d8694;color:#fff;}&:enabled:active,a&:active{background-color:#5b6b73;border-color:#415058;}}&.RegularButton{&,&:link,&:visited{color:#8d9ea7;}&:enabled:hover,a&:hover{color:#5b6b73;}&:disabled{opacity:0.6;}}&.PrimaryButton{background-color:#8d9ea7;border-color:transparent;&,&:link,&:visited{color:#fff;}&:enabled:hover,a&:hover{background-color:#5b6b73;color:#fff;}&:enabled:active,a&:active{color:rgba(255,255,255,0.6);}}&.TextButton,&.TextCoreButton{transition:all 0.1s ease-out;&,&:link,&:visited{color:#298df8;}&:disabled{cursor:not-allowed;opacity:0.6;}&:enabled:hover,a&:hover{color:#0d7ef7;text-decoration:underline;}.svg-icon.loading{margin-right:0.25em;vertical-align:-.15em;animation:ibot-ani-spinning 1.5s infinite ease-out;}.icon{margin-right:0.125em;}&.small{height:2em;font-size:0.75rem;}}&.TextCoreButton{&,&:link,&:visited{color:#eb5648;}&:enabled:hover,a&:hover{color:#ef776c;text-decoration:none;}&:enabled:active,a&:active{color:#bc4439;}}"]);var q=n(57464);function W(C,b,x){return(b=ae(b))in C?Object.defineProperty(C,b,{value:x,enumerable:!0,configurable:!0,writable:!0}):C[b]=x,C}function ae(C){var b=Y(C,"string");return typeof b=="symbol"?b:b+""}function Y(C,b){if(typeof C!="object"||!C)return C;var x=C[Symbol.toPrimitive];if(x!==void 0){var d=x.call(C,b||"default");if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(C)}const J={primary:"Primary",regular:"Regular",secondary:"Regular",tertiary:"Tertiary",text:"Text"};class P extends i.PureComponent{get className(){const{type:b,theme:x,size:d,className:g}=this.props,{isDisabled:y,isLoading:N}=this;return(0,H.Hn)(["Button",""+J[b]+(x==="core"?"CoreButton":"Button"),d!=="regular"&&d,N&&"is-loading",y&&"is-disabled",g])}get isDisabled(){const{isDisabled:b,disabled:x}=this.props;return b||x}get isLoading(){const{isLoading:b,loading:x}=this.props;return b||x}render(){const{className:b,isLoading:x,isDisabled:d}=this,{iconType:g,icon:y,children:N,...R}=this.props;return(0,q.jsx)(w,{className:b,disabled:d,onClick:S=>d&&S.preventDefault(),type:"button",...E()(R,["className","type","theme","isDisabled","disabled","isLoading","loading"]),children:(0,q.jsxs)(q.Fragment,{children:[x&&(0,q.jsx)(ee.A,{name:"loading"}),y&&g==="svg"&&(0,q.jsx)(ee.A,{name:y}),N]})})}}W(P,"propTypes",{type:M().oneOf(["primary","regular","secondary","tertiary","text"]),size:M().oneOf(["regular","small"]),theme:M().oneOf(["core","plain"]),iconType:M().oneOf(["svg","dora","mb","icon","fa","md"]),icon:M().string,className:M().string,isDisabled:M().bool,disabled:M().bool,isLoading:M().bool,loading:M().bool,children:M().any,html:M().string}),W(P,"defaultProps",{type:"regular",size:"regular",theme:"plain",icon:"",className:"",isDisabled:!1});function K(C){return _jsx(P,{...C,theme:"core"})}function V(C){return _jsx(K,{...C,type:"primary"})}function l(C){return _jsx(K,{...C,type:"tertiary"})}},35736:function(we){(function(de,n){we.exports=n()})(this,function(){"use strict";return function(de,n,i){n.prototype.isBetween=function(f,M,p,E){var ee=i(f),H=i(M),A=(E=E||"()")[0]==="(",w=E[1]===")";return(A?this.isAfter(ee,p):!this.isBefore(ee,p))&&(w?this.isBefore(H,p):!this.isAfter(H,p))||(A?this.isBefore(ee,p):!this.isAfter(ee,p))&&(w?this.isAfter(H,p):!this.isBefore(H,p))}}})},54466:function(we){(function(de,n){we.exports=n()})(this,function(){"use strict";return function(de,n){n.prototype.isSameOrBefore=function(i,f){return this.isSame(i,f)||this.isBefore(i,f)}}})},36410:we=>{function de(n,i,f,M){var p=-1,E=n==null?0:n.length;for(M&&E&&(f=n[++p]);++p{var de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function n(i){return i.match(de)||[]}we.exports=n},52304:we=>{function de(n){return function(i){return n==null?void 0:n[i]}}we.exports=de},48843:(we,de,n)=>{var i=n(36410),f=n(76628),M=n(83453),p="['\u2019]",E=RegExp(p,"g");function ee(H){return function(A){return i(M(f(A).replace(E,"")),H,"")}}we.exports=ee},84394:(we,de,n)=>{var i=n(25627);function f(M){return i(M)?void 0:M}we.exports=f},32575:(we,de,n)=>{var i=n(52304),f={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},M=i(f);we.exports=M},95416:(we,de,n)=>{var i=n(66202),f=n(61965),M=n(29513);function p(E){return M(f(E,void 0,i),E+"")}we.exports=p},49298:we=>{var de=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function n(i){return de.test(i)}we.exports=n},32921:we=>{var de="\\ud800-\\udfff",n="\\u0300-\\u036f",i="\\ufe20-\\ufe2f",f="\\u20d0-\\u20ff",M=n+i+f,p="\\u2700-\\u27bf",E="a-z\\xdf-\\xf6\\xf8-\\xff",ee="\\xac\\xb1\\xd7\\xf7",H="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",A="\\u2000-\\u206f",w=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",q="A-Z\\xc0-\\xd6\\xd8-\\xde",W="\\ufe0e\\ufe0f",ae=ee+H+A+w,Y="['\u2019]",J="["+ae+"]",P="["+M+"]",K="\\d+",V="["+p+"]",l="["+E+"]",C="[^"+de+ae+K+p+E+q+"]",b="\\ud83c[\\udffb-\\udfff]",x="(?:"+P+"|"+b+")",d="[^"+de+"]",g="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",N="["+q+"]",R="\\u200d",S="(?:"+l+"|"+C+")",B="(?:"+N+"|"+C+")",U="(?:"+Y+"(?:d|ll|m|re|s|t|ve))?",ie="(?:"+Y+"(?:D|LL|M|RE|S|T|VE))?",L=x+"?",F="["+W+"]?",X="(?:"+R+"(?:"+[d,g,y].join("|")+")"+F+L+")*",le="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",oe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",xe=F+L+X,Ee="(?:"+[V,g,y].join("|")+")"+xe,Oe=RegExp([N+"?"+l+"+"+U+"(?="+[J,N,"$"].join("|")+")",B+"+"+ie+"(?="+[J,N+S,"$"].join("|")+")",N+"?"+S+"+"+U,N+"+"+ie,oe,le,K,Ee].join("|"),"g");function Be(Ue){return Ue.match(Oe)||[]}we.exports=Be},76628:(we,de,n)=>{var i=n(32575),f=n(67998),M=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,p="\\u0300-\\u036f",E="\\ufe20-\\ufe2f",ee="\\u20d0-\\u20ff",H=p+E+ee,A="["+H+"]",w=RegExp(A,"g");function q(W){return W=f(W),W&&W.replace(M,i).replace(w,"")}we.exports=q},66202:(we,de,n)=>{var i=n(72840);function f(M){var p=M==null?0:M.length;return p?i(M,1):[]}we.exports=f},17956:(we,de,n)=>{var i=n(23522),f=n(25627);function M(p){return i(p)&&p.nodeType===1&&!f(p)}we.exports=M},25627:(we,de,n)=>{var i=n(22256),f=n(41703),M=n(23522),p="[object Object]",E=Function.prototype,ee=Object.prototype,H=E.toString,A=ee.hasOwnProperty,w=H.call(Object);function q(W){if(!M(W)||i(W)!=p)return!1;var ae=f(W);if(ae===null)return!0;var Y=A.call(ae,"constructor")&&ae.constructor;return typeof Y=="function"&&Y instanceof Y&&H.call(Y)==w}we.exports=q},70235:(we,de,n)=>{var i=n(79228),f=n(99159),M=n(92547),p=n(86225),E=n(80167),ee=n(84394),H=n(95416),A=n(94397),w=1,q=2,W=4,ae=H(function(Y,J){var P={};if(Y==null)return P;var K=!1;J=i(J,function(l){return l=p(l,Y),K||(K=l.length>1),l}),E(Y,A(Y),P),K&&(P=f(P,w|q|W,ee));for(var V=J.length;V--;)M(P,J[V]);return P});we.exports=ae},63924:(we,de,n)=>{var i=n(48843),f=i(function(M,p,E){return M+(E?"_":"")+p.toLowerCase()});we.exports=f},83453:(we,de,n)=>{var i=n(38621),f=n(49298),M=n(67998),p=n(32921);function E(ee,H,A){return ee=M(ee),H=A?void 0:H,H===void 0?f(ee)?p(ee):i(ee):ee.match(H)||[]}we.exports=E},43441:(we,de,n)=>{"use strict";n.d(de,{A:()=>J});var i=n(18824),f=n(95211),M=n(7043);function p(P,K){return P.classList?!!K&&P.classList.contains(K):(" "+(P.className.baseVal||P.className)+" ").indexOf(" "+K+" ")!==-1}function E(P,K){P.classList?P.classList.add(K):p(P,K)||(typeof P.className=="string"?P.className=P.className+" "+K:P.setAttribute("class",(P.className&&P.className.baseVal||"")+" "+K))}function ee(P,K){return P.replace(new RegExp("(^|\\s)"+K+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function H(P,K){P.classList?P.classList.remove(K):typeof P.className=="string"?P.className=ee(P.className,K):P.setAttribute("class",ee(P.className&&P.className.baseVal||"",K))}var A=n(51044),w=n(93218),q=n(41083),W=function(K,V){return K&&V&&V.split(" ").forEach(function(l){return E(K,l)})},ae=function(K,V){return K&&V&&V.split(" ").forEach(function(l){return H(K,l)})},Y=function(P){(0,M.A)(K,P);function K(){for(var l,C=arguments.length,b=new Array(C),x=0;x{"use strict";n.d(de,{Ay:()=>P});var i=n(95211),f=n(7043),M=n(51044),p=n(60185);const E={disabled:!1},ee=M.createContext(null);var H=n(41083),A="unmounted",w="exited",q="entering",W="entered",ae="exiting",Y=function(K){(0,f.A)(V,K);function V(C,b){var x;x=K.call(this,C,b)||this;var d=b,g=d&&!d.isMounting?C.enter:C.appear,y;return x.appearStatus=null,C.in?g?(y=w,x.appearStatus=q):y=W:C.unmountOnExit||C.mountOnEnter?y=A:y=w,x.state={status:y},x.nextCallback=null,x}V.getDerivedStateFromProps=function(b,x){var d=b.in;return d&&x.status===A?{status:w}:null};var l=V.prototype;return l.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},l.componentDidUpdate=function(b){var x=null;if(b!==this.props){var d=this.state.status;this.props.in?d!==q&&d!==W&&(x=q):(d===q||d===W)&&(x=ae)}this.updateStatus(!1,x)},l.componentWillUnmount=function(){this.cancelNextCallback()},l.getTimeouts=function(){var b=this.props.timeout,x,d,g;return x=d=g=b,b!=null&&typeof b!="number"&&(x=b.exit,d=b.enter,g=b.appear!==void 0?b.appear:d),{exit:x,enter:d,appear:g}},l.updateStatus=function(b,x){if(b===void 0&&(b=!1),x!==null)if(this.cancelNextCallback(),x===q){if(this.props.unmountOnExit||this.props.mountOnEnter){var d=this.props.nodeRef?this.props.nodeRef.current:p.findDOMNode(this);d&&(0,H.F)(d)}this.performEnter(b)}else this.performExit();else this.props.unmountOnExit&&this.state.status===w&&this.setState({status:A})},l.performEnter=function(b){var x=this,d=this.props.enter,g=this.context?this.context.isMounting:b,y=this.props.nodeRef?[g]:[p.findDOMNode(this),g],N=y[0],R=y[1],S=this.getTimeouts(),B=g?S.appear:S.enter;if(!b&&!d||E.disabled){this.safeSetState({status:W},function(){x.props.onEntered(N)});return}this.props.onEnter(N,R),this.safeSetState({status:q},function(){x.props.onEntering(N,R),x.onTransitionEnd(B,function(){x.safeSetState({status:W},function(){x.props.onEntered(N,R)})})})},l.performExit=function(){var b=this,x=this.props.exit,d=this.getTimeouts(),g=this.props.nodeRef?void 0:p.findDOMNode(this);if(!x||E.disabled){this.safeSetState({status:w},function(){b.props.onExited(g)});return}this.props.onExit(g),this.safeSetState({status:ae},function(){b.props.onExiting(g),b.onTransitionEnd(d.exit,function(){b.safeSetState({status:w},function(){b.props.onExited(g)})})})},l.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},l.safeSetState=function(b,x){x=this.setNextCallback(x),this.setState(b,x)},l.setNextCallback=function(b){var x=this,d=!0;return this.nextCallback=function(g){d&&(d=!1,x.nextCallback=null,b(g))},this.nextCallback.cancel=function(){d=!1},this.nextCallback},l.onTransitionEnd=function(b,x){this.setNextCallback(x);var d=this.props.nodeRef?this.props.nodeRef.current:p.findDOMNode(this),g=b==null&&!this.props.addEndListener;if(!d||g){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var y=this.props.nodeRef?[this.nextCallback]:[d,this.nextCallback],N=y[0],R=y[1];this.props.addEndListener(N,R)}b!=null&&setTimeout(this.nextCallback,b)},l.render=function(){var b=this.state.status;if(b===A)return null;var x=this.props,d=x.children,g=x.in,y=x.mountOnEnter,N=x.unmountOnExit,R=x.appear,S=x.enter,B=x.exit,U=x.timeout,ie=x.addEndListener,L=x.onEnter,F=x.onEntering,X=x.onEntered,le=x.onExit,oe=x.onExiting,xe=x.onExited,Ee=x.nodeRef,Oe=(0,i.A)(x,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return M.createElement(ee.Provider,{value:null},typeof d=="function"?d(b,Oe):M.cloneElement(M.Children.only(d),Oe))},V}(M.Component);Y.contextType=ee,Y.propTypes={};function J(){}Y.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:J,onEntering:J,onEntered:J,onExit:J,onExiting:J,onExited:J},Y.UNMOUNTED=A,Y.EXITED=w,Y.ENTERING=q,Y.ENTERED=W,Y.EXITING=ae;const P=Y},41083:(we,de,n)=>{"use strict";n.d(de,{F:()=>i});var i=function(M){return M.scrollTop}},82928:(we,de)=>{"use strict";var n;n={value:!0};var i=Object.assign||function(ee){for(var H=1;H{"use strict";n.d(de,{Tw:()=>g,HY:()=>C,Zz:()=>d,y$:()=>J,Yl:()=>P});var i=n(74059);function f(y,N){var R=Object.keys(y);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(y);N&&(S=S.filter(function(B){return Object.getOwnPropertyDescriptor(y,B).enumerable})),R.push.apply(R,S)}return R}function M(y){for(var N=1;N"u"&&(R=N,N=void 0),typeof R<"u"){if(typeof R!="function")throw new Error(p(1));return R(J)(y,N)}if(typeof y!="function")throw new Error(p(2));var B=y,U=N,ie=[],L=ie,F=!1;function X(){L===ie&&(L=ie.slice())}function le(){if(F)throw new Error(p(3));return U}function oe(Be){if(typeof Be!="function")throw new Error(p(4));if(F)throw new Error(p(5));var Ue=!0;return X(),L.push(Be),function(){if(Ue){if(F)throw new Error(p(6));Ue=!1,X();var Ye=L.indexOf(Be);L.splice(Ye,1),ie=null}}}function xe(Be){if(!A(Be))throw new Error(p(7));if(typeof Be.type>"u")throw new Error(p(8));if(F)throw new Error(p(9));try{F=!0,U=B(U,Be)}finally{F=!1}for(var Ue=ie=L,Ve=0;Ve0)return"Unexpected "+(ie.length>1?"keys":"key")+" "+('"'+ie.join('", "')+'" found in '+U+". ")+"Expected to find one of the known reducer keys instead: "+('"'+B.join('", "')+'". Unexpected keys will be ignored.')}function l(y){Object.keys(y).forEach(function(N){var R=y[N],S=R(void 0,{type:H.INIT});if(typeof S>"u")throw new Error(p(12));if(typeof R(void 0,{type:H.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(p(13))})}function C(y){for(var N=Object.keys(y),R={},S=0;S"u"){var ve=le&&le.type;throw new Error(p(14))}Ee[Be]=Ye,xe=xe||Ye!==Ve}return xe=xe||U.length!==Object.keys(X).length,xe?Ee:X}}function b(y,N){return function(){return N(y.apply(this,arguments))}}function x(y,N){if(typeof y=="function")return b(y,N);if(typeof y!="object"||y===null)throw new Error(p(16));var R={};for(var S in y){var B=y[S];typeof B=="function"&&(R[S]=b(B,N))}return R}function d(){for(var y=arguments.length,N=new Array(y),R=0;R{"use strict";n.d(de,{A:()=>f});function i(M,p){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(E,ee){return E.__proto__=ee,E},i(M,p)}function f(M,p){M.prototype=Object.create(p.prototype),M.prototype.constructor=M,i(M,p)}}}]);
//# sourceMappingURL=4.n9fxu-vendor-f101272f4cb6b39e5f8f.js.map